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

1 line
1.6 MiB

{"testsCollection":{"name":"Chapter - 15.2.3.6","numTests":"1115","tests":[{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNi0wLTEiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMC0xLmpzIiwKCmRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IG11c3QgZXhpc3QgYXMgYSBmdW5jdGlvbiIsCgp0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICB2YXIgZiA9IE9iamVjdC5kZWZpbmVQcm9wZXJ0eTsKICBpZiAodHlwZW9mKGYpID09PSAiZnVuY3Rpb24iKSB7CiAgICByZXR1cm4gdHJ1ZTsKICB9CiB9Cn0pOwo=","id":"15.2.3.6-0-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-0-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNi0wLTIiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMC0yLmpzIiwKCmRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IG11c3QgZXhpc3QgYXMgYSBmdW5jdGlvbiB0YWtpbmcgMyBwYXJhbWV0ZXJzIiwKCnRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogIGlmIChPYmplY3QuZGVmaW5lUHJvcGVydHkubGVuZ3RoID09PSAzKSB7CiAgICByZXR1cm4gdHJ1ZTsKICB9CiB9LAoKcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiB9Cn0pOwo=","id":"15.2.3.6-0-2","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-0-2.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0xLTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTEtMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgYXBwbGllZCB0byB1bmRlZmluZWQgdGhyb3dzIGEgVHlwZUVycm9yIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodW5kZWZpbmVkLCAiZm9vIiwge30pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-1-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-1-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0xLTIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTEtMi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgYXBwbGllZCB0byBudWxsIHRocm93cyBhIFR5cGVFcnJvciIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG51bGwsICJmb28iLCB7fSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-1-2","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-1-2.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0xLTMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTEtMy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgYXBwbGllZCB0byBudW1iZXIgcHJpbWl0aXZlIHRocm93cyBhIFR5cGVFcnJvciIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KDUsICJmb28iLCB7fSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-1-3","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-1-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0xLTQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTEtNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgYXBwbGllZCB0byBzdHJpbmcgcHJpbWl0aXZlIHRocm93cyBhIFR5cGVFcnJvciIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KCJoZWxsb1xud29ybGRcXCEiLCAiZm9vIiwge30pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-1-4","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-1-4.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNi0xIiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTEuanMiLAoKZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgdGhyb3dzIFR5cGVFcnJvciBpZiB0eXBlIG9mIGZpcnN0IHBhcmFtIGlzIG5vdCBPYmplY3QiLAoKdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICB0cnkgewogICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodHJ1ZSwgImZvbyIsIHt9KTsKICAgIH0KICAgIGNhdGNoIChlKSB7CiAgICAgIGlmIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKSB7CiAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgIH0KICAgIH0KIH0sCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKIH0KfSk7Cg==","id":"15.2.3.6-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTItMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSBhcmd1bWVudCAnUCcgaXMgdW5kZWZpbmVkIHRoYXQgY29udmVydHMgdG8gc3RyaW5nICd1bmRlZmluZWQnIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgdW5kZWZpbmVkLCB7fSk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInVuZGVmaW5lZCIpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-2-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTEwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTEwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhIG51bWJlciB0aGF0IGNvbnZlcnRzIHRvIGEgc3RyaW5nICh2YWx1ZSBpcyBhIG5lZ2F0aXZlIG51bWJlcikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAtMjAsIHt9KTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgiLTIwIik7CgogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-2-10","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-10.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTExIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTExLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhIG51bWJlciB0aGF0IGNvbnZlcnRzIHRvIGEgc3RyaW5nICh2YWx1ZSBpcyBJbmZpbml0eSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCBJbmZpbml0eSwge30pOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJJbmZpbml0eSIpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-2-11","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-11.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTEyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTEyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhIG51bWJlciB0aGF0IGNvbnZlcnRzIHRvIGEgc3RyaW5nICh2YWx1ZSBpcyArSW5maW5pdHkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgK0luZmluaXR5LCB7fSk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoIkluZmluaXR5Iik7CgogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-2-12","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-12.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTEzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTEzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhIG51bWJlciB0aGF0IGNvbnZlcnRzIHRvIGEgc3RyaW5nICh2YWx1ZSBpcyAtSW5maW5pdHkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgLUluZmluaXR5LCB7fSk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoIi1JbmZpbml0eSIpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-2-13","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-13.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTE0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTE0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZp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ge30pOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCIxZSsyMSIpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-2-15","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-15.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTE2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTE2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhIG51bWJlciB0aGF0IGNvbnZlcnRzIHRvIGEgc3RyaW5nICh2YWx1ZSBpcyAxKGZvbGxvd2luZyAyMiB6ZXJvcykpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgMTAwMDAwMDAwMDAwMDAwMDAwMDAwMDAsIHt9KTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgiMWUrMjIiKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-2-16","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-16.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAg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IHZhciBvYmogPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAxZSsyMCwge30pOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCIxMDAwMDAwMDAwMDAwMDAwMDAwMDAiKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-2-17","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-17.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTE4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTE4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhIG51bWJlciB0aGF0IGNvbnZlcnRzIHRvIHN0cmluZyAodmFsdWUgaXMgMWUrMjEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgMWUrMjEsIHt9KTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgiMWUrMjEiKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-2-18","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-18.js"},{"code":"RVM1S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ICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCBudWxsLCB7fSk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoIm51bGwiKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-2-2","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-2.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTIwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTIwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhIG51bWJlciB0aGF0IGNvbnZlcnRzIHRvIGEgc3RyaW5nICh2YWx1ZSBpcyAwLjAwMDAwMSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAwLjAwMDAwMSwge30pOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCIwLjAwMDAwMSIpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-2-20","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-20.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ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Ht9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosIDAuMDAwMDAwMDEsIHt9KTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgiMWUtOCIpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-2-22","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-22.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTIzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTIzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhIG51bWJlciB0aGF0IGNvbnZlcnRzIHRvIGEgc3RyaW5nICh2YWx1ZSBpcyAxZS03KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosIDFlLTcsIHt9KTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgiMWUtNyIpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-2-23","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-23.js"},{"code":"RVM1SGFyb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gICAgdmFyIG9iaiA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosIDFlLTUsIHt9KTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgiMC4wMDAwMSIpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-2-25","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-25.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTI2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTI2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhbiBpbnRlZ2VyIHRoYXQgY29udmVydHMgdG8gYSBzdHJpbmcgKHZhbHVlIGlzIDEyMykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAxMjMsIHt9KTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgiMTIzIik7CgogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-2-26","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-26.js"},{"code":"RVM1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1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAxMDAwMDAwMDAwMDAwMDAwMDAwMC4xLCB7fSk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoIjEwMDAwMDAwMDAwMDAwMDAwMDAwIik7CgogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-2-28","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-28.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTI5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTI5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhIG51bWJlciB0aGF0IGNvbnZlcnRzIHRvIGEgc3RyaW5nICh2YWx1ZSBpcyAxKGZvbGxvd2luZyAyMCB6ZXJvcykuMSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAxMDAwMDAwMDAwMDAwMDAwMDAwMDAuMSwge30pOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCIxMDAwMDAwMDAwMDAwMDAwMDAwMDAiKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-2-29","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-29.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTItMy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSBhcmd1bWVudCAnUCcgaXMgYSBib29sZWFuIHdob3NlIHZhbHVlIGlzIGZhbHNlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgZmFsc2UsIHt9KTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgiZmFsc2UiKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-2-3","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTMwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTMwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhIG51bWJlciB0aGF0IGNvbnZlcn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XRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-2-31","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-31.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTMyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTMyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhIG51bWJlciB0aGF0IGNvbnZlcnRzIHRvIGEgc3RyaW5nICh2YWx1ZSBpcyAxMjMuMTIzNDU2NykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAxMjMuMTIzNDU2Nywge30pOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCIxMjMuMTIzNDU2NyIpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-2-32","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-32.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTMzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTMzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhcHBsaWVkIHRvIGFuIGVtcHR5IHN0cmluZyAiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiIiwge30pOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCIiKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-2-33","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-33.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTM0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTM0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhcHBsaWVkIHRvIHN0cmluZyAnQUJcblxcY2QnICIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJBQlxuXFxjZCIsIHt9KTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgiQUJcblxcY2QiKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-2-34","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-34.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTM1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTM1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhcHBsaWVkIHRvIHN0cmluZyAndW5kZWZpbmVkJyAiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAidW5kZWZpbmVkIiwge30pOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJ1bmRlZmluZWQiKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-2-35","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-35.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTM2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTM2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhcHBsaWVkIHRvIHN0cmluZyAnbnVsbCcgIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgIm51bGwiLCB7fSk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoIm51bGwiKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-2-36","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-36.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTM3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTM3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhcHBsaWVkIHRvIHN0cmluZyAnMTIzzrHOss+AY2QnICIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIxMjPOsc6yz4BjZCIsIHt9KTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgiMTIzzrHOss+AY2QiKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-2-37","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-37.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTM4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTM4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhcHBsaWVkIHRvIHN0cmluZyAnMScgIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgIjEiLCB7fSk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoIjEiKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-2-38","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-38.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTM5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTM5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhbiBhcnJheSB0aGF0IGNvbnZlcnRzIHRvIGEgc3RyaW5nIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgWzEsIDJdLCB7fSk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoIjEsMiIpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-2-39","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-39.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTItNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSBhcmd1bWVudCAnUCcgaXMgYSBib29sZWFuIHdob3NlIHZhbHVlIGlzIHRydWUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCB0cnVlLCB7fSk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInRydWUiKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-2-4","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-4.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTQwIiwKCiAgICBw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bGVhbihmYWxzZSksIHt9KTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgiZmFsc2UiKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-2-41","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-41.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTQyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTQyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhIE51bWJlciBPYmplY3QgdGhhdCBjb252ZXJ0cyB0byBhIHN0cmluZyIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosIG5ldyBOdW1iZXIoMTIzKSwge30pOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCIxMjMiKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-2-42","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-42.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTQzIiwKCiAgICBwYXRoOiAiVGV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WxzZTsKICAgICAgICB2YXIgdmFsdWVPZkFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIHZhciBvd25Qcm9wID0gewogICAgICAgICAgICB0b1N0cmluZzogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgdG9TdHJpbmdBY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgICAgICByZXR1cm4ge307CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIHZhbHVlT2Y6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHZhbHVlT2ZBY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgICAgICByZXR1cm4gImFiYyI7CiAgICAgICAgICAgIH0KICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCBvd25Qcm9wLCB7fSk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoImFiYyIpICYmIHZhbHVlT2ZBY2Nlc3NlZCAmJiB0b1N0cmluZ0FjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-2-45","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-45.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTQ2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTQ2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFyZ3VtZW50ICdQJyBpcyBhbiBvYmplY3QgdGhhdCBoYXMgYW4gb3duIHRvU3RyaW5nIGFuZCB2YWx1ZU9mIG1ldGhvZCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciB0b1N0cmluZ0FjY2Vzc2VkID0gZmFsc2U7CiAgICAgICAgdmFyIHZhbHVlT2ZBY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICB2YXIgb3duUHJvcCA9IHsKICAgICAgICAgICAgdG9TdHJpbmc6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHRvU3RyaW5nQWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICAgICAgcmV0dXJuICJhYmMiOwogICAgICAgICAgICB9LAogICAgICAgICAgICB2YWx1ZU9mOiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICB2YWx1ZU9mQWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICAgICAgcmV0dXJuICJwcm9wIjsKICAgICAgICAgICAgfQogICAgICAgIH07CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgb3duUHJvcCwge30pOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJhYmMiKSAmJiAhdmFsdWVPZkFjY2Vzc2VkICYmIHRvU3RyaW5nQWNjZXNzZWQ7CgogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-2-46","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-46.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTQ3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTQ3LmpzIiwKCiA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lZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-2-47","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-47.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTQ4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0yLTQ4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGFuIGluaGVyaXRlZCB0b1N0cmluZyBtZXRob2QgIGlzIGludm9rZWQgd2hlbiAnUCcgaXMgYW4gb2JqZWN0IHdpdGggYW4gb3duIHZhbHVlT2YgYW5kIGFuIGluaGVyaXRlZCB0b1N0cmluZyBtZXRob2RzIiwKICAgICAKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgdG9TdHJpbmdBY2Nlc3NlZCA9IGZhbHNlOwogICAgICAgIHZhciB2YWx1ZU9mQWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgdmFyIHByb3RvID0gewogICAgICAgICAgICB0b1N0cmluZzogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgdG9TdHJpbmdBY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgICAgICByZXR1cm4gInRlc3QiOwogICAgICAgICAgICB9CiAgICAgICAgfTsKCiAgICAgICAgdmFyIENvbnN0cnVjdEZ1biA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb25zdHJ1Y3RGdW4ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb25zdHJ1Y3RGdW4oKTsKICAgICAgICBjaGlsZC52YWx1ZU9mID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICB2YWx1ZU9mQWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICByZXR1cm4gIjEwIjsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCBjaGlsZCwge30pOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJ0ZXN0IikgJiYgIXZhbHVlT2ZBY2Nlc3NlZCAmJiB0b1N0cmluZ0FjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-2-48","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-48.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTUiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTItNS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSBhcmd1bWVudCAnUCcgaXMgYSBudW1iZXIgdGhhdCBjb252ZXJ0cyB0byBhIHN0cmluZyAodmFsdWUgaXMgTmFOKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosIE5hTiwge30pOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJOYU4iKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-2-5","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-5.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTYiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTItNi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSBhcmd1bWVudCAnUCcgaXMgYSBudW1iZXIgdGhhdCBjb252ZXJ0cyB0byBhIHN0cmluZyAodmFsdWUgaXMgMCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAwLCB7fSk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoIjAiKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-2-6","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-6.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTItNy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSBhcmd1bWVudCAnUCcgaXMgYSBudW1iZXIgdGhhdCBjb252ZXJ0cyB0byBhIHN0cmluZyAodmFsdWUgaXMgKzApIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgKzAsIHt9KTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgiMCIpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-2-7","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-7.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0yLTgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTItOC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSBhcmd1bWVudCAnUCcgaXMgYSBudW1iZXIgdGhhdCBjb252ZXJ0cyB0byBhIHN0cmluZyAodmFsdWUgaXMgLTApIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgLTAsIHt9KTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgiMCIpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-2-8","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-8.js"},{"code":"RVM1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B9OwogICAgCiAgICB0cnkgewogICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkobywgImZvbyIsIGRlc2MpOwogICAgfQogICAgY2F0Y2ggKGUpIHsKICAgICAgaWYgKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgIChvLmhhc093blByb3BlcnR5KCJmb28iKSA9PT0gZmFsc2UpKSB7CiAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgIH0KICAgIH0KIH0sCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKIH0KfSk7Cg==","id":"15.2.3.6-3-10","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-10.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAiMTUuMi4zLjYtMy0xMDAiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTAwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdjb25maWd1cmFibGUnIHByb3BlcnR5IGluICdBdHRyaWJ1dGVzJyBpcyBudWxsICg4LjEwLjUgc3RlcCA0LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0geyB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7IGNvbmZpZ3VyYWJsZTogbnVsbCB9KTsKCiAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHZhciBhZnRlckRlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKCiAgICAgICAgcmV0dXJuIGJlZm9yZURlbGV0ZWQgPT09IHRydWUgJiYgYWZ0ZXJEZWxldGVkID09PSB0cnVlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-100","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-100.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTEwMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xMDEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ2NvbmZpZ3VyYWJsZScgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIHRydWUgKDguMTAuNSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgeyBjb25maWd1cmFibGU6IHRydWUgfSk7CgogICAgICAgIHZhciBiZWZvcmVEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICB2YXIgYWZ0ZXJEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICByZXR1cm4g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BhZnRlckRlbGV0ZWQgPT09IHRydWU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-102","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-102.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAiMTUuMi4zLjYtMy0xMDMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTAzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdjb25maWd1cmFibGUnIHByb3BlcnR5IGluICdBdHRyaWJ1dGVzJyBpcyAwICg4LjEwLjUgc3RlcCA0LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0geyB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7IGNvbmZpZ3VyYWJsZTogMCB9KTsKCiAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHZhciBhZnRlckRlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKCiAgICAgICAgcmV0dXJuIGJlZm9yZURlbGV0ZWQgPT09IHRydWUgJiYgYWZ0ZXJEZWxldGVkID09PSB0cnVlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-103","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-103.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAiMTUuMi4zLjYtMy0xMDQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTA0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdjb25maWd1cmFibGUnIHByb3BlcnR5IGluICdBdHRyaWJ1dGVzJyBpcyArMCAoOC4xMC41IHN0ZXAgNC5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7IGNvbmZpZ3VyYWJsZTogKzAgfSk7CgogICAgICAgIHZhciBiZWZvcmVEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICB2YXIgYWZ0ZXJEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIHR5cGVvZiAob2JqLnByb3BlcnR5KSA9PT0gInVuZGVmaW5lZCI7CgogICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkID09PSB0cnVlICYmIGFmdGVyRGVsZXRlZCA9PT0gdHJ1ZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZ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path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-105.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAiMTUuMi4zLjYtMy0xMDYiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTA2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdjb25maWd1cmFibGUnIHByb3BlcnR5IGluICdBdHRyaWJ1dGVzJyBpcyBOYU4gKDguMTAuNSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7IH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsgY29uZmlndXJhYmxlOiBOYU4gfSk7CgogICAgICAgIHZhciBiZWZvcmVEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICB2YXIgYWZ0ZXJEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIHR5cGVvZiAob2JqLnByb3BlcnR5KSA9PT0gInVuZGVmaW5lZCI7CgogICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkID09PSB0cnVlICYmIGFmdGVyRGVsZXRlZCA9PT0gdHJ1ZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-106","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-106.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAiMTUuMi4zLjYtMy0xMDciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTA3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdjb25maWd1cmFibGUnIHByb3BlcnR5IGluICdBdHRyaWJ1dGVzJyBpcyBhIHBvc2l0aXZlIG51bWJlciAoOC4xMC41IHN0ZXAgNC5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7IGNvbmZpZ3VyYWJsZTogMTIzNDUgfSk7CgogICAgICAgIHZhciBiZWZvcmVEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICB2YXIgYWZ0ZXJEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICByZXR1cm4gYmVmb3JlRGVsZXRlZCA9PT0gdHJ1ZSAmJiBhZnRlckRlbGV0ZWQgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-107","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-107.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAiMTUuMi4zLjYtMy0xMDgiLAoKICAgIHBhdGg6ICJUZXN0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zIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdjb25maWd1cmFibGUnIHByb3BlcnR5IGluICdBdHRyaWJ1dGVzJyBpcyBhbiBlbXB0eSBzdHJpbmcgKDguMTAuNSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7IH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsgY29uZmlndXJhYmxlOiAiIiB9KTsKCiAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHZhciBhZnRlckRlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKCiAgICAgICAgcmV0dXJuIGJlZm9yZURlbGV0ZWQgPT09IHRydWUgJiYgYWZ0ZXJEZWxldGVkID09PSB0cnVlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-109","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-109.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNi0zLTExIiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTEuanMiLAoKZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgdGhyb3dz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mN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgeyBjb25maWd1cmFibGU6ICIgICAgICAgIiB9KTsKCiAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHZhciBhZnRlckRlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkID09PSB0cnVlICYmIGFmdGVyRGVsZXRlZCA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-110","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-110.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTExMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xMTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ2NvbmZpZ3VyYWJsZScgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIGEgRnVuY3Rpb24gb2JqZWN0ICg4LjEwLjUgc3RlcCA0LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmdW5jdGlvbiAoKSB7IH0KICAgICAgICB9KTsKCiAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHZhciBhZnRlckRlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkID09PSB0cnVlICYmIGFmdGVyRGVsZXRlZCA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-111","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-111.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTExMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xMTIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ2NvbmZpZ3VyYWJsZScgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIGFuIEFycmF5IG9iamVjdCAoOC4xMC41IHN0ZXAgNC5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7IGNvbmZpZ3VyYWJsZTogWzEsIDIsIDNdIH0pOwoKICAg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BhZnRlckRlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkID09PSB0cnVlICYmIGFmdGVyRGVsZXRlZCA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-114","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-114.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAiMTUuMi4zLjYtMy0xMTUiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTE1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdjb25maWd1cmFibGUnIHByb3BlcnR5IGluICdBdHRyaWJ1dGVzJyBpcyBhIE51bWJlciBvYmplY3QgKDguMTAuNSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgeyBjb25maWd1cmFibGU6IG5ldyBOdW1iZXIoMCkgfSk7CgogICAgICAgIHZhciBiZWZvcmVEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICB2YXIgYWZ0ZXJEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICByZXR1cm4gYmVmb3JlRGVsZXRlZCA9PT0gdHJ1ZSAmJiBhZnRlckRlbGV0ZWQgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-115","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-115.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAiMTUuMi4zLjYtMy0xMTYiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTE2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdjb25maWd1cmFibGUnIHByb3BlcnR5IGluICdBdHRyaWJ1dGVzJyBpcyB0aGUgTWF0aCBvYmplY3QgKDguMTAuNSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgeyBjb25maWd1cmFibGU6IE1hdGggfSk7CgogICAgICAgIHZhciBiZWZvcmVEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICB2YXIgYWZ0ZXJEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICByZXR1cm4gYmVmb3JlRGVsZXRlZCA9PT0gdHJ1ZSAmJiBhZnRlckRlbGV0ZWQgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9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pOwo=","id":"15.2.3.6-3-118","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-118.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAiMTUuMi4zLjYtMy0xMTkiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTE5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdjb25maWd1cmFibGUnIHByb3BlcnR5IGluICdBdHRyaWJ1dGVzJyBpcyB0aGUgSlNPTiBvYmplY3QgICg4LjEwLjUgc3RlcCA0LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBhdHRyID0gewogICAgICAgICAgICBjb25maWd1cmFibGU6IEpTT04KICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBhdHRyKTsKCiAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHZhciBhZnRlckRlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkID09PSB0cnVlICYmIGFmdGVyRGVsZXRlZCA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-119","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-119.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNi0zLTEyIiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTIuanMiLAoKZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgdGhyb3dzIFR5cGVFcnJvciBpZiBzZXR0ZXIgaXMgbm90IGNhbGxhYmxlIGJ1dCBub3QgdW5kZWZpbmVkIChTdHJpbmcpKDguMTAuNSBzdGVwIDguYikiLAoKdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICB2YXIgbyA9IHt9OwogICAgCiAgICAvLyBkdW1teSBzZXR0ZXIKICAgIHZhciBzZXR0ZXIgPSAiYWJjIjsKICAgIHZhciBkZXNjID0geyBzZXQ6IHNldHRlciB9OwogICAgCiAgICB0cnkgewogICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkobywgImZvbyIsIGRlc2MpOwogICAgfQogICAgY2F0Y2ggKGUpIHsKICAgICAgaWYgKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgIChvLmhhc093blByb3BlcnR5KCJmb28iKSA9PT0gZmFsc2UpKSB7CiAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgIH0KICAgIH0KIH0sCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKIH0KfSk7Cg==","id":"15.2.3.6-3-12","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-12.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAiMTUuMi4zLjYtMy0xMjAiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTIwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdjb25maWd1cmFibGUnIHByb3BlcnR5IGluICdBdHRyaWJ1dGVzJyBpcyBhIEVycm9yIG9iamVjdCAgKDguMTAuNSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGF0dHIgPSB7CiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogbmV3IFN5bnRheEVycm9yKCkKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBhdHRyKTsKCiAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHZhciBhZnRlckRlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkID09PSB0cnVlICYmIGFmdGVyRGVsZXRlZCA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-120","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-120.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTEyMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xMjEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ2NvbmZpZ3VyYWJsZScgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIHRoZSBBcmd1bWVudCBvYmplY3QgICg4LjEwLjUgc3RlcCA0LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBhcmdPYmogPSAoZnVuY3Rpb24gKCkgeyByZXR1cm4gYXJndW1lbnRzOyB9KSgxLCB0cnVlLCAiYSIpOwoKICAgICAgICB2YXIgYXR0ciA9IHsKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBhcmdPYmoKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBhdHRyKTsKCiAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHZhciBhZnRlckRlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkID09PSB0cnVlICYmIGFmdGVyRGVsZXRlZCA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-121","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-121.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAiMTUuMi4zLjYtMy0xMjMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY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hcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTI0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdjb25maWd1cmFibGUnIHByb3BlcnR5IGluICdBdHRyaWJ1dGVzJyBpcyB0cmVhdGVkIGFzIHRydWUgd2hlbiBpdCBpcyBhIHN0cmluZyAodmFsdWUgaXMgJ2ZhbHNlJykgICg4LjEwLjUgc3RlcCA0LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBhdHRyID0gewogICAgICAgICAgICBjb25maWd1cmFibGU6ICJmYWxzZSIKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBhdHRyKTsKCiAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHZhciBhZnRlckRlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkID09PSB0cnVlICYmIGFmdGVyRGVsZXRlZCA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-124","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-124.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAiMTUuMi4zLjYtMy0xMjUiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTI1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdjb25maWd1cmFibGUnIHByb3BlcnR5IGluICdBdHRyaWJ1dGVzJyBpcyB0cmVhdGVkIGFzIHRydWUgd2hlbiBpdCBpcyBuZXcgQm9vbGVhbihmYWxzZSkgICg4LjEwLjUgc3RlcCA0LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBhdHRyID0gewogICAgICAgICAgICBjb25maWd1cmFibGU6IG5ldyBCb29sZWFuKGZhbHNlKQogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGF0dHIpOwoKICAgICAgICB2YXIgYmVmb3JlRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgZGVsZXRlIG9iai5wcm9wZXJ0eTsKCiAgICAgICAgdmFyIGFmdGVyRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgcmV0dXJuIGJlZm9yZURlbGV0ZWQgPT09IHRydWUgJiYgYWZ0ZXJEZWxldGVkID09PSBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-125","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-125.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTEyNiIsCgogIC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gIHZhciBhdHRyID0gewogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZQogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGF0dHIpOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIHR5cGVvZiAob2JqLnByb3BlcnR5KSA9PT0gInVuZGVmaW5lZCI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-127","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-127.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTEyOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xMjkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3ZhbHVlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYW4gaW5oZXJpdGVkIGRhdGEgcHJvcGVydHkgICg4LjEwLjUgc3RlcCA1LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0geyB9OwoKICAgICAgICB2YXIgcHJvdG8gPSB7CiAgICAgICAgICAgIHZhbHVlOiAiaW5oZXJpdGVkRGF0YVByb3BlcnR5IgogICAgICAgIH07CgogICAgICAgIHZhciBDb25zdHJ1Y3RGdW4gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uc3RydWN0RnVuLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uc3RydWN0RnVuKCk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGNoaWxkKTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gImluaGVyaXRlZERhdGFQcm9wZXJ0eSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-129","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-129.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNi0zLTEzIiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTMuanMiLAoKZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgdGhyb3dzIFR5cGVFcnJvciBpZiB0aGUgc2V0dGVyIGluIGRlc2MgaXMgbm90IGNhbGxhYmxlIChOdWxsKSg4LjEwLjUgc3RlcCA4LmIpIiwKCnRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgdmFyIG8gPSB7fTsKICAgIAogICAgLy8gZHVtbXkgc2V0dGVyCiAgICB2YXIgc2V0dGVyID0gbnVsbDsKICAgIHZhciBkZXNjID0geyBzZXQ6IHNldHRlciB9OwogICAgCiAgICB0cnkgewogICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkobywgImZvbyIsIGRlc2MpOwogICAgfQogICAgY2F0Y2ggKGUpIHsKICAgICAgaWYgKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgIChvLmhhc093blByb3BlcnR5KCJmb28iKSA9PT0gZmFsc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JuIG9iai5wcm9wZXJ0eSA9PT0gIm93bkRhdGFQcm9wZXJ0eSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-130","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-130.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTEzMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xMzEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3ZhbHVlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgb3duIGRhdGEgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5ICAoOC4xMC41IHN0ZXAgNS5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHsgfTsKCiAgICAgICAgdmFyIHByb3RvID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgInZhbHVlIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAiaW5oZXJpdGVkQWNjZXNzb3JQcm9wZXJ0eSI7CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbnN0cnVjdEZ1biA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb25zdHJ1Y3RGdW4ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb25zdHJ1Y3RGdW4oKTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoY2hpbGQsICJ2YWx1ZSIsIHsKICAgICAgICAgICAgdmFsdWU6ICJvd25EYXRhUHJvcGVydHkiCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGNoaWxkKTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gIm93bkRhdGFQcm9wZXJ0eSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-131","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-131.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTEzMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xMzIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3ZhbHVlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5ICAoOC4xMC41IHN0ZXAgNS5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHsgfTsKCiAgICAgICAgdmFyIGF0dHIgPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXR0ciwgInZhbHVlIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAib3duQWNjZXNzb3JQcm9wZXJ0eSI7CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgYXR0cik7CgogICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJvd25BY2Nlc3NvclByb3BlcnR5IjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-132","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-132.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTEzMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xMzMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3ZhbHVlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYW4gaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5ICAoOC4xMC41IHN0ZXAgNS5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHsgfTsKCiAgICAgICAgdmFyIHByb3RvID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAidmFsdWUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJpbmhlcml0ZWRBY2Nlc3NvclByb3BlcnR5IjsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uc3RydWN0RnVuID0gZnVuY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BmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uc3RydWN0RnVuLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uc3RydWN0RnVuKCk7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGNoaWxkLCAidmFsdWUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJvd25BY2Nlc3NvclByb3BlcnR5IjsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBjaGlsZCk7CgogICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJvd25BY2Nlc3NvclByb3BlcnR5IjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-134","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-134.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTEzNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xMzUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3ZhbHVlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSAgKDguMTAuNSBzdGVwIDUuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHByb3RvID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAidmFsdWUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJpbmhlcml0ZWRBY2Nlc3NvclByb3BlcnR5IjsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uc3RydWN0RnVuID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbnN0cnVjdEZ1bi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGNoaWxkID0gbmV3IENvbnN0cnVjdEZ1bigpOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShjaGlsZCwgInZhbHVlIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAib3duQWNjZXNzb3JQcm9wZXJ0eSI7CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgY2hpbGQpOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAib3duQWNjZXNzb3JQcm9wZXJ0eSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-135","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-135.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTEzNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xMzYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3ZhbHVlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHdpdGhvdXQgYSBnZXQgZnVuY3Rpb24gICg4LjEwLjUgc3RlcCA1LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBhdHRyID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGF0dHIsICJ2YWx1ZSIsIHsKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAoKSB7IH0KICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgYXR0cik7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-136","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-136.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTEzNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xMzcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3Bl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T09ICJ1bmRlZmluZWQiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-138","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-138.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTEzOS0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTEzOS0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIEZ1bmN0aW9uIG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAndmFsdWUnIHByb3BlcnR5IG9mIHByb3RvdHlwZSBvYmplY3QgICg4LjEwLjUgc3RlcCA1LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgRnVuY3Rpb24ucHJvdG90eXBlLnZhbHVlID0gIkZ1bmN0aW9uIjsKICAgICAgICAgICAgdmFyIGZ1bk9iaiA9IGZ1bmN0aW9uIChhLCBiKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gYSArIGI7CiAgICAgICAgICAgIH07CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBmdW5PYmopOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gIkZ1bmN0aW9uIjsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgRnVuY3Rpb24ucHJvdG90eXBlLnZhbHVlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-139-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-139-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAiMTUuMi4zLjYtMy0xMzkiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTM5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIEZ1bmN0aW9uIG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAndmFsdWUnIHByb3BlcnR5ICAoOC4xMC41IHN0ZXAgNS5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHsgfTsKCiAgICAgICAgdmFyIGZ1bk9iaiA9IGZ1bmN0aW9uIChhLCBiKSB7CiAgICAgICAgICAgIHJldHVybiBhICsgYjsKICAgICAgICB9OwoKICAgICAgICBmdW5PYmoudmFsdWUgPSAiRnVuY3Rpb24iOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBmdW5PYmopOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiRnVuY3Rpb24iOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-139","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-139.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNi0zLTE0IiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTQuanMiLAoKZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgdGhyb3dzIFR5cGVFcnJvciBpZiBzZXR0ZXIgaXMgbm90IGNhbGxhYmxlIGJ1dCBub3QgdW5kZWZpbmVkIChPYmplY3QpKDguMTAuNSBzdGVwIDguYikiLAoKdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICB2YXIgbyA9IHt9OwogICAgCiAgICAvLyBkdW1teSBnZXR0ZXIKICAgIHZhciBzZXR0ZXIgPSB7IGE6IDEgfTsKICAgIHZhciBkZXNjID0geyBzZXQ6IHNldHRlciB9OwogICAgCiAgICB0cnkgewogICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkobywgImZvbyIsIGRlc2MpOwogICAgfQogICAgY2F0Y2ggKGUpIHsKICAgICAgaWYgKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgIChvLmhhc093blByb3BlcnR5KCJmb28iKSA9PT0gZmFsc2UpKSB7CiAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgIH0KICAgIH0KIH0sCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKIH0KfSk7Cg==","id":"15.2.3.6-3-14","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-14.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE0MC0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTE0MC0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhbiBBcnJheSBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ3ZhbHVlJyBwcm9wZXJ0eSBvZiBwcm90b3R5cGUgb2JqZWN0ICAoOC4xMC41IHN0ZXAgNS5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIEFycmF5LnByb3RvdHlwZS52YWx1ZSA9ICJBcnJheSI7CiAgICAgICAgICAgIHZhciBhcnJPYmogPSBbMSwgMiwgM107CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBhcnJPYmopOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gIkFycmF5IjsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlLnZhbHVlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-140-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-140-1.js"},{"code":"RVM1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iamVjdCAgKDguMTAuNSBzdGVwIDUuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB0cnkgewogICAgICAgICAgICBCb29sZWFuLnByb3RvdHlwZS52YWx1ZSA9ICJCb29sZWFuIjsKICAgICAgICAgICAgdmFyIGJvb2xPYmogPSBuZXcgQm9vbGVhbih0cnVlKTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGJvb2xPYmopOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gIkJvb2xlYW4iOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBCb29sZWFuLnByb3RvdHlwZS52YWx1ZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-142-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-142-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE0MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNDIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGEgQm9vbGVhbiBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ3ZhbHVlJyBwcm9wZXJ0eSAgKDguMTAuNSBzdGVwIDUuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7IH07CgogICAgICAgIHZhciBib29sT2JqID0gbmV3IEJvb2xlYW4odHJ1ZSk7CgogICAgICAgIGJvb2xPYmoudmFsdWUgPSAiQm9vbGVhbiI7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGJvb2xPYmopOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiQm9vbGVhbiI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-142","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-142.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE0My0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTE0My0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIE51bWJlciBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ3ZhbHVlJyBwcm9wZXJ0eSBvZiBwcm90b3R5cGUgb2JqZWN0ICAoOC4xMC41IHN0ZXAgNS5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE51bWJlci5wcm90b3R5cGUudmFsdWUgPSAiTnVtYmVyIjsKICAgICAgIC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G9iaiwgInByb3BlcnR5IiwgbnVtT2JqKTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gIk51bWJlciI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-143","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-143.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE0NC0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTE0NC0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyB0aGUgTWF0aCBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ3ZhbHVlJyBwcm9wZXJ0eSBvZiBwcm90b3R5cGUgb2JqZWN0ICAoOC4xMC41IHN0ZXAgNS5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QucHJvdG90eXBlLnZhbHVlID0gIk1hdGgiOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgTWF0aCk7CgogICAgICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiTWF0aCI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE9iamVjdC5wcm90b3R5cGUudmFsdWU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-144-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-144-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE0NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNDQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIHRoZSBNYXRoIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAndmFsdWUnIHByb3BlcnR5ICAoOC4xMC41IHN0ZXAgNS5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBNYXRoLnZhbHVlID0gIk1hdGgiOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgTWF0aCk7CgogICAgICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiTWF0aCI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE1hdGgudmFsdWU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-144","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-144.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE0NS0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTE0NS0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIERhdGUgb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICd2YWx1ZScgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAgKDguMTAuNSBzdGVwIDUuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB0cnkgewogICAgICAgICAgICBEYXRlLnByb3RvdHlwZS52YWx1ZSA9ICJEYXRlIjsKICAgICAgICAgICAgdmFyIGRhdGVPYmogPSBuZXcgRGF0ZSgpOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgZGF0ZU9iaik7CgogICAgICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiRGF0ZSI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIERhdGUucHJvdG90eXBlLnZhbHVlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-145-1","path":"TestCases/chapter15/15.2/15.2.3/15.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eSBvZiBwcm90b3R5cGUgb2JqZWN0ICAoOC4xMC41IHN0ZXAgNS5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QucHJvdG90eXBlLnZhbHVlID0gIkpTT04iOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgSlNPTik7CgogICAgICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiSlNPTiI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE9iamVjdC5wcm90b3R5cGUudmFsdWU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-147-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-147-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE0NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNDcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIHRoZSBKU09OIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAndmFsdWUnIHByb3BlcnR5ICAoOC4xMC41IHN0ZXAgNS5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBKU09OLnZhbHVlID0gIkpTT04iOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgSlNPTik7CgogICAgICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiSlNPTiI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEpTT04udmFsdWU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-147","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-147.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE0OC0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTE0OC0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhbiBFcnJvciBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ3ZhbHVlJyBwcm9wZXJ0eSBvZiBwcm90b3R5cGUgb2JqZWN0ICAoOC4xMC41IHN0ZXAgNS5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIEVycm9yLnByb3RvdHlwZS52YWx1ZSA9ICJFcnJvciI7CiAgICAgICAgICAgIHZhciBlcnJPYmogPSBuZXcgRXJyb3IoKTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGVyck9iaik7CgogICAgICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiRXJyb3IiOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBFcnJvci5wcm90b3R5cGUudmFsdWU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-148-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-148-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE0OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNDguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGFuIEVycm9yIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAndmFsdWUnIHByb3BlcnR5ICAoOC4xMC41IHN0ZXAgNS5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgZXJyT2JqID0gbmV3IEVycm9yKCk7CgogICAgICAgIGVyck9iai52YWx1ZSA9ICJFcnJvciI7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGVyck9iaik7CgogICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJFcnJvciI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-148","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-148.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE0OS0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTE0OS0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhbiBBcmd1bWVudHMgb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICd2YWx1ZScgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgNS5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5wcm90b3R5cGUudmFsdWUgPSAiYXJndW1lbnRzIjsKICAgICAgICAgICAgdmFyIGFyZ09iaiA9IChmdW5jdGlvbiAoKSB7IHJldHVybiBhcmd1bWVudHM7IH0pKCk7CgoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgYXJnT2JqKTsKCiAgICAgICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJhcmd1bWVudHMiOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlb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RXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-149","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-149.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTE1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyB1bmRlZmluZWQgICg4LjEwLjUgc3RlcCAxKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgdW5kZWZpbmVkKTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-15","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-15.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE1MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0x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ICAoOC4xMC41IHN0ZXAgNikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGF0dHIgPSB7CiAgICAgICAgICAgIHZhbHVlOiAxMDAKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBhdHRyKTsKCiAgICAgICAgdmFyIGJlZm9yZVdyaXRlID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHZhciBhZnRlcldyaXRlID0gKG9iai5wcm9wZXJ0eSA9PT0gImlzV3JpdGFibGUiKTsKCiAgICAgICAgcmV0dXJuIGJlZm9yZVdyaXRlID09PSB0cnVlICYmIGFmdGVyV3JpdGUgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-153","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-153.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE1NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNTQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgb3duIGRhdGEgcHJvcGVydHkgICg4LjEwLjUgc3RlcCA2LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0geyB9OwoKICAgICAgICB2YXIgYXR0ciA9IHsKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBhdHRyKTsKCiAgICAgICAgdmFyIGJlZm9yZVdyaXRlID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHZhciBhZnRlcldyaXRlID0gKG9iai5wcm9wZXJ0eSA9PT0gImlzV3JpdGFibGUiKTsKCiAgICAgICAgcmV0dXJuIGJlZm9yZVdyaXRlID09PSB0cnVlICYmIGFmdGVyV3JpdGUgPT09IHRydWU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-154","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-154.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE1NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNTUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYW4gaW5oZXJpdGVkIGRhdGEgcHJvcGVydHkgICg4LjEwLjUgc3RlcCA2LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2Jq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AnQXR0cmlidXRlcycgaXMgb3duIGRhdGEgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGRhdGEgcHJvcGVydHkgICg4LjEwLjUgc3RlcCA2LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0geyB9OwoKICAgICAgICB2YXIgcHJvdG8gPSB7CiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSAKICAgICAgICB9OwoKICAgICAgICB2YXIgQ29uc3RydWN0RnVuID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbnN0cnVjdEZ1bi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGNoaWxkID0gbmV3IENvbnN0cnVjdEZ1bigpOwogICAgICAgIGNoaWxkLndyaXRhYmxlID0gdHJ1ZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgY2hpbGQpOwoKICAgICAgICB2YXIgYmVmb3JlV3JpdGUgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIG9iai5wcm9wZXJ0eSA9ICJpc1dyaXRhYmxlIjsKCiAgICAgICAgdmFyIGFmdGVyV3JpdGUgPSAob2JqLnByb3BlcnR5ID09PSAiaXNXcml0YWJsZSIpOwoKICAgICAgICByZXR1cm4gYmVmb3JlV3JpdGUgPT09IHRydWUgJiYgYWZ0ZXJXcml0ZSA9PT0gdHJ1ZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-156","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-156.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3R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BhdHRyKTsKCiAgICAgICAgdmFyIGJlZm9yZVdyaXRlID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHZhciBhZnRlcldyaXRlID0gKG9iai5wcm9wZXJ0eSA9PT0gImlzV3JpdGFibGUiKTsKCiAgICAgICAgcmV0dXJuIGJlZm9yZVdyaXRlID09PSB0cnVlICYmIGFmdGVyV3JpdGUgPT09IHRydWU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-158","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-158.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE1OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNTkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYW4gaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5ICAoOC4xMC41IHN0ZXAgNi5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJ3cml0YWJsZSIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uc3RydWN0RnVuID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbnN0cnVjdEZ1bi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGNoaWxkID0gbmV3IENvbnN0cnVjdEZ1bigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBjaGlsZCk7CgogICAgICAgIHZhciBiZWZvcmVXcml0ZSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICB2YXIgYWZ0ZXJXcml0ZSA9IChvYmoucHJvcGVydHkgPT09ICJpc1dyaXRhYmxlIik7CgogICAgICAgIHJldHVybiBiZWZvcmVXcml0ZSA9PT0gdHJ1ZSAmJiBhZnRlcldyaXRlID09PSB0cnVlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-159","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-159.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTE2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBudWxsICg4LjEwLjUgc3RlcCAxKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogIC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ICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uc3RydWN0RnVuKCk7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGNoaWxkLCAid3JpdGFibGUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgY2hpbGQpOwoKICAgICAgICB2YXIgYmVmb3JlV3JpdGUgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIG9iai5wcm9wZXJ0eSA9ICJpc1dyaXRhYmxlIjsKCiAgICAgICAgdmFyIGFmdGVyV3JpdGUgPSAob2JqLnByb3BlcnR5ID09PSAiaXNXcml0YWJsZSIpOwoKICAgICAgICByZXR1cm4gYmVmb3JlV3JpdGUgPT09IHRydWUgJiYgYWZ0ZXJXcml0ZSA9PT0gdHJ1ZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-160","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-160.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE2MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNjEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSAgKDguMTAuNSBzdGVwIDYuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHByb3RvID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAid3JpdGFibGUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb25zdHJ1Y3RGdW4gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uc3RydWN0RnVuLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uc3RydWN0RnVuKCk7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGNoaWxkLCAid3JpdGFibGUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgY2hpbGQpOwoKICAgICAgICB2YXIgYmVmb3JlV3JpdGUgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIG9iai5wcm9wZXJ0eSA9ICJpc1dyaXRhYmxlIjsKCiAgICAgICAgdmFyIGFmdGVyV3JpdGUgPSAob2JqLnByb3BlcnR5ID09PSAiaXNXcml0YWJsZSIpOwoKICAgICAgICByZXR1cm4gYmVmb3JlV3JpdGUgPT09IHRydWUgJiYgYWZ0ZXJXcml0ZSA9PT0gdHJ1ZTsKICAgIH0sCgogICAgc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gICAgcmV0dXJuIGJlZm9yZVdyaXRlID09PSB0cnVlICYmIGFmdGVyV3JpdGUgPT09IHRydWU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-162","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-162.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE2MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNjMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5KHdpdGhvdXQgYSBnZXQgZnVuY3Rpb24pIHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSAgKDguMTAuNSBzdGVwIDYuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHByb3RvID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAid3JpdGFibGUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbnN0cnVjdEZ1biA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb25zdHJ1Y3RGdW4ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb25zdHJ1Y3RGdW4oKTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoY2hpbGQsICJ3cml0YWJsZSIsIHsKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAoKSB7IH0KICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgY2hpbGQpOwoKICAgICAgICB2YXIgYmVmb3JlV3JpdGUgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIG9iai5wcm9wZXJ0eSA9ICJpc1dyaXRhYmxlIjsKCiAgICAgICAgdmFyIGFmdGVyV3JpdGUgPSAodHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIik7CgogICAgICAgIHJldHVybiBiZWZvcmVXcml0ZSA9PT0gdHJ1ZSAmJiBhZnRlcldyaXRlID09PSB0cnVlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-163","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-163.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE2NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNjQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYW4gaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5IHdpdGhvdXQgYSBnZXQgZnVuY3Rpb24gICg4LjEwLjUgc3RlcCA2LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBwcm90byA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgIndyaXRhYmxlIiwgewogICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICgpIHsgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uc3RydWN0RnVuID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbnN0cnVjdEZ1bi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGNoaWxkID0gbmV3IENvbnN0cnVjdEZ1bigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBjaGlsZCk7CgogICAgICAgIHZhciBiZWZvcmVXcml0ZSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICB2YXIgYWZ0ZXJXcml0ZSA9ICh0eXBlb2YgKG9iai5wcm9wZXJ0eSkgPT09ICJ1bmRlZmluZWQiKTsKCiAgICAgICAgcmV0dXJuIGJlZm9yZVdyaXRlID09PSB0cnVlICYmIGFmdGVyV3JpdGUgPT09IHRydWU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-164","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-164.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE2NS0xIiwKCiAg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AgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-165-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-165-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE2NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNjUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGEgRnVuY3Rpb24gb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICd3cml0YWJsZScgcHJvcGVydHkgICg4LjEwLjUgc3RlcCA2LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBmdW5PYmogPSBmdW5jdGlvbiAoYSwgYikgewogICAgICAgICAgICByZXR1cm4gYSArIGI7CiAgICAgICAgfTsKCiAgICAgICAgZnVuT2JqLndyaXRhYmxlID0gdHJ1ZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgZnVuT2JqKTsKCiAgICAgICAgdmFyIGJlZm9yZVdyaXRlID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHZhciBhZnRlcldyaXRlID0gKG9iai5wcm9wZXJ0eSA9PT0gImlzV3Jp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RyaW5nLnByb3RvdHlwZS53cml0YWJsZSA9IHRydWU7CiAgICAgICAgICAgIHZhciBzdHJPYmogPSBuZXcgU3RyaW5nKCJhYmMiKTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHN0ck9iaik7CgogICAgICAgICAgICB2YXIgYmVmb3JlV3JpdGUgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgICAgICB2YXIgYWZ0ZXJXcml0ZSA9IChvYmoucHJvcGVydHkgPT09ICJpc1dyaXRhYmxlIik7CgogICAgICAgICAgICByZXR1cm4gYmVmb3JlV3JpdGUgPT09IHRydWUgJiYgYWZ0ZXJXcml0ZSA9PT0gdHJ1ZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgU3RyaW5nLnByb3RvdHlwZS53cml0YWJsZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-167-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-167-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE2NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNjcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGEgU3RyaW5nIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnd3JpdGFibGUnIHByb3BlcnR5ICAoOC4xMC41IHN0ZXAgNi5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgc3RyT2JqID0gbmV3IFN0cmluZygiYWJjIik7CgogICAgICAgIHN0ck9iai53cml0YWJsZSA9IHRydWU7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHN0ck9iaik7CgogICAgICAgIHZhciBiZWZvcmVXcml0ZSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICB2YXIgYWZ0ZXJXcml0ZSA9IChvYmoucHJvcGVydHkgPT09ICJpc1dyaXRhYmxlIik7CgogICAgICAgIHJldHVybiBiZWZvcmVXcml0ZSA9PT0gdHJ1ZSAmJiBhZnRlcldyaXRlID09PSB0cnVlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-167","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-167.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE2OC0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTE2OC0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIEJvb2xlYW4gb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICd3cml0YWJsZScgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgNi5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIEJvb2xlYW4ucHJvdG90eXBlLndyaXRhYmxlID0gdHJ1ZTsKICAgICAgICAgICAgdmFyIGJvb2xPYmogPSBuZXcgQm9vbGVhbih0cnVlKTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGJvb2xPYmopOwoKICAgICAgICAgICAgdmFyIGJlZm9yZVdyaXRlID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICAgICAgdmFyIGFmdGVyV3JpdGUgPSAob2JqLnByb3BlcnR5ID09PSAiaXNXcml0YWJsZSIpOwoKICAgICAgICAgICAgcmV0dXJuIGJlZm9yZVdyaXRlID09PSB0cnVlICYmIGFmdGVyV3JpdGUgPT09IHRydWU7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEJvb2xlYW4ucHJvdG90eXBlLndyaXRhYmxlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-168-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-168-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE2OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNjguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGEgQm9vbGVhbiBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ3dyaXRhYmxlJyBwcm9wZXJ0eSAgKDguMTAuNSBzdGVwIDYuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7IH07CgogICAgICAgIHZhciBib29sT2JqID0gbmV3IEJvb2xlYW4odHJ1ZSk7CgogICAgICAgIGJvb2xPYmoud3JpdGFibGUgPSB0cnVlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBib29sT2JqKTsKCiAgICAgICAgdmFyIGJlZm9yZVdyaXRlID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHZhciBhZnRlcldyaXRlID0gKG9iai5wcm9wZXJ0eSA9PT0gImlzV3JpdGFibGUiKTsKCiAgICAgICAgcmV0dXJuIGJlZm9yZVdyaXRlID09PSB0cnVlICYmIGFmdGVyV3JpdGUgPT09IHRydWU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-168","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-168.js"},{"code":"RVM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gICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-169-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-169-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE2OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNjkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGEgTnVtYmVyIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnd3JpdGFibGUnIHByb3BlcnR5ICAoOC4xMC41IHN0ZXAgNi5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHsgfTsKCiAgICAgICAgdmFyIG51bU9iaiA9IG5ldyBOdW1iZXIoLTIpOwoKICAgICAgICBudW1PYmoud3JpdGFibGUgPSB0cnVlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBudW1PYmopOwoKICAgICAgICB2YXIgYmVmb3JlV3JpdGUgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIG9iai5wcm9wZXJ0eSA9ICJpc1dyaXRhYmxlIjsKCiAgICAgICAgdmFyIGFmdGVyV3JpdGUgPSAob2JqLnByb3BlcnR5ID09PSAiaXNXcml0YWJsZSIpOwoKICAgICAgICByZXR1cm4gYmVmb3JlV3JpdGUgPT09IHRydWUgJiYgYWZ0ZXJXcml0ZSA9PT0gdHJ1ZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-169","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-169.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTE3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIGJvb2xlYW4gcHJpbWl0aXZlICg4LjEwLjUgc3RlcCAxKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eSh7fSwgInByb3BlcnR5IiwgdHJ1ZSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-17","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-17.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS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YmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-170-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-170-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE3MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNzAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIHRoZSBNYXRoIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnd3JpdGFibGUnIHByb3BlcnR5ICAoOC4xMC41IHN0ZXAgNi5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBNYXRoLndyaXRhYmxlID0gdHJ1ZTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIE1hdGgpOwoKICAgICAgICAgICAgdmFyIGJlZm9yZVdyaXRlID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICAgICAgdmFyIGFmdGVyV3JpdGUgPSAob2JqLnByb3BlcnR5ID09PSAiaXNXcml0YWJsZSIpOwoKICAgICAgICAgICAgcmV0dXJuIGJlZm9yZVdyaXRlID09PSB0cnVlICYmIGFmdGVyV3JpdGUgPT09IHRydWU7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE1hdGgud3JpdGFibGU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-170","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-170.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE3MS0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTE3MS0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIERhdGUgb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICd3cml0YWJsZScgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgNi5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIERhdGUucHJvdG90eXBlLndyaXRhYmxlID0gdHJ1ZTsKCiAgICAgICAgICAgIGRhdGVPYmogPSBuZXcgRGF0ZSgpOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgZGF0ZU9iaik7CgogICAgICAgICAgICB2YXIgYmVmb3JlV3JpdGUgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgICAgICB2YXIgYWZ0ZXJXcml0ZSA9IChvYmoucHJvcGVydHkgPT09ICJpc1dyaXRhYmxlIik7CgogICAgICAgICAgICByZXR1cm4gYmVmb3JlV3JpdGUgPT09IHRydWUgJiYgYWZ0ZXJXcml0ZSA9PT0gdHJ1ZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgRGF0ZS5wcm90b3R5cGUud3JpdGFibGU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-171-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-171-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE3MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNzEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGEgRGF0ZSBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ3dyaXRhYmxlJyBwcm9wZXJ0eSAgKDguMTAuNSBzdGVwIDYuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7IH07CgogICAgICAgIHZhciBkYXRlT2JqID0gbmV3IERhdGUoKTsKCiAgICAgICAgZGF0ZU9iai53cml0YWJsZSA9IHRydWU7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGRhdGVPYmopOwoKICAgICAgICB2YXIgYmVmb3JlV3JpdGUg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UgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiBwcm90b3R5cGUgb2JqZWN0ICg4LjEwLjUgc3RlcCA2LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5wcm90b3R5cGUud3JpdGFibGUgPSB0cnVlOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgSlNPTik7CgogICAgICAgICAgICB2YXIgYmVmb3JlV3JpdGUgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgICAgICB2YXIgYWZ0ZXJXcml0ZSA9IChvYmoucHJvcGVydHkgPT09ICJpc1dyaXRhYmxlIik7CgogICAgICAgICAgICByZXR1cm4gYmVmb3JlV3JpdGUgPT09IHRydWUgJiYgYWZ0ZXJXcml0ZSA9PT0gdHJ1ZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgT2JqZWN0LnByb3RvdHlwZS53cml0YWJsZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-173-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-173-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE3MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNzMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIHRoZSBKU09OIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnd3JpdGFibGUnIHByb3BlcnR5ICAoOC4xMC41IHN0ZXAgNi5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBKU09OLndyaXRhYmxlID0gdHJ1ZTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIEpTT04pOwoKICAgICAgICAgICAgdmFyIGJlZm9yZVdyaXRlID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICAgICAgdmFyIGFmdGVyV3JpdGUgPSAob2JqLnByb3BlcnR5ID09PSAiaXNXcml0YWJsZSIpOwoKICAgICAgICAgICAgcmV0dXJuIGJlZm9yZVdyaXRlID09PSB0cnVlICYmIGFmdGVyV3JpdGUgPT09IHRydWU7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEpTT04ud3JpdGFibGU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-173","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-173.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE3NC0xIiwKCiAgICBwY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W9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-174","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-174.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE3NS0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTE3NS0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhbiBBcmd1bWVudHMgb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICd3cml0YWJsZScgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgNi5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5wcm90b3R5cGUud3JpdGFibGUgPSB0cnVlOwoKICAgICAgICAgICAgdmFyIGFyZ09iaiA9IChmdW5jdGlvbiAoKSB7IHJldHVybiBhcmd1bWVudHM7IH0pKCk7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBhcmdPYmopOwoKICAgICAgICAgICAgdmFyIGJlZm9yZVdyaXRlID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICAgICAgdmFyIGFmdGVyV3JpdGUgPSAob2JqLnByb3BlcnR5ID09PSAiaXNXcml0YWJsZSIpOwoKICAgICAgICAgICAgcmV0dXJuIGJlZm9yZVdyaXRlID09PSB0cnVlICYmIGFmdGVyV3JpdGUgPT09IHRydWU7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE9iamVjdC5wcm90b3R5cGUud3JpdGFibGU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-175-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-175-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE3NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNzUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGFuIEFyZ3VtZW50cyBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ3dyaXRhYmxlJyBwcm9wZXJ0eSAgKDguMTAuNSBzdGVwIDYuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGFyZ09iaiA9IChmdW5jdGlvbiAoKSB7IHJldHVybiBhcmd1bWVudHM7IH0pKCk7CgogICAgICAgIGFyZ09iai53cml0YWJsZSA9IHRydWU7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGFyZ09iaik7CgogICAgICAgIHZhciBiZWZvcmVXcml0ZSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICB2YXIgYWZ0ZXJXcml0ZSA9IChvYmoucHJvcGVydHkgPT09ICJpc1dyaXRhYmxlIik7CgogICAgICAgIHJldHVybiBiZWZvcmVXcml0ZSA9PT0gdHJ1ZSAmJiBhZnRlcldyaXRlID09PSB0cnVlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-175","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-175.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE3NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNzcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIHRoZSBnbG9iYWwgb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICd3cml0YWJsZScgcHJvcGVydHkgICg4LjEwLjUgc3RlcCA2LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIGZuR2xvYmFsT2JqZWN0KCkud3JpdGFibGUgPSB0cnVlOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgZm5HbG9iYWxPYmplY3QoKSk7CgogICAgICAgICAgICB2YXIgYmVmb3JlV3JpdGUgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgICAgICB2YXIgYWZ0ZXJXcml0ZSA9IChvYmoucHJvcGVydHkgPT09ICJpc1dyaXRhYmxlIik7CgogICAgICAgICAgICByZXR1cm4gYmVmb3JlV3JpdGUgPT09IHRydWUgJiYgYWZ0ZXJXcml0ZSA9PT0gdHJ1ZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgZm5HbG9iYWxPYmplY3QoKS53cml0YWJsZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-177","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-177.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE3OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xNzguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgdW5kZWZpbmVkICAoOC4xMC41IHN0ZXAgNi5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5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ICAgICB2YXIgYmVmb3JlV3JpdGUgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIG9iai5wcm9wZXJ0eSA9ICJpc1dyaXRhYmxlIjsKCiAgICAgICAgdmFyIGFmdGVyV3JpdGUgPSAodHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIik7CgogICAgICAgIHJldHVybiBiZWZvcmVXcml0ZSA9PT0gdHJ1ZSAmJiBhZnRlcldyaXRlID09PSB0cnVlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-179","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-179.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTE4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIG51bWJlciBwcmltaXRpdmUgKDguMTAuNSBzdGVwIDEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHt9LCAicHJvcGVydHkiLCAxMik7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-18","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-18.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE4MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xODAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgdHJ1ZSAgKDguMTAuNSBzdGVwIDYuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgeyB3cml0YWJsZTogdHJ1ZSB9KTsKCiAgICAgICAgdmFyIGJlZm9yZVdyaXRlID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHZhciBhZnRlcldyaXRlID0gKG9iai5wcm9wZXJ0eSA9PT0gImlzV3JpdGFibGUiKTsKCiAgICAgICAgcmV0dXJuIGJlZm9yZVdyaXRlID09PSB0cnVlICYmIGFmdGVyV3JpdGUgPT09IHRydWU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-180","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-180.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAiMTUuMi4zLjYtMy0xODEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTgxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICd3cml0YWJsZScgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIGZhbHNlICAoOC4xMC41IHN0ZXAgNi5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHsgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgeyB3cml0YWJsZTogZmFsc2UgfSk7CgogICAgICAgIHZhciBiZWZvcmVXcml0ZSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICB2YXIgYWZ0ZXJXcml0ZSA9ICh0eXBlb2YgKG9iai5wcm9wZXJ0eSkgPT09ICJ1bmRlZmluZWQiKTsKCiAgICAgICAgcmV0dXJuIGJlZm9yZVdyaXRlID09PSB0cnVlICYmIGFmdGVyV3JpdGUgPT09IHRydWU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-181","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-181.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAi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hYmxlOiAxMjM0NSB9KTsKCiAgICAgICAgdmFyIGJlZm9yZVdyaXRlID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHZhciBhZnRlcldyaXRlID0gKG9iai5wcm9wZXJ0eSA9PT0gImlzV3JpdGFibGUiKTsKCiAgICAgICAgcmV0dXJuIGJlZm9yZVdyaXRlID09PSB0cnVlICYmIGFmdGVyV3JpdGUgPT09IHRydWU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-186","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-186.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAiMTUuMi4zLjYtMy0xODciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTg3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICd3cml0YWJsZScgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIGEgbmVnYXRpdmUgbnVtYmVyICAoOC4xMC41IHN0ZXAgNi5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7IHdyaXRhYmxlOiAtMTIzNDUgfSk7CgogICAgICAgIHZhciBiZWZvcmVXcml0ZSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICB2YXIgYWZ0ZXJXcml0ZSA9IChvYmoucHJvcGVydHkgPT09ICJpc1dyaXRhYmxlIik7CgogICAgICAgIHJldHVybiBiZWZvcmVXcml0ZSA9PT0gdHJ1ZSAmJiBhZnRlcldyaXRlID09PSB0cnVlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-187","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-187.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAiMTUuMi4zLjYtMy0xODgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTg4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICd3cml0YWJsZScgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIGFuIGVtcHR5IHN0cmluZyAgKDguMTAuNSBzdGVwIDYuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgeyB3cml0YWJsZTogIiIgfSk7CgogICAgICAgIHZhciBiZWZvcmVXcml0ZSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICB2YXIgYWZ0ZXJXcml0ZSA9ICh0eXBlb2YgKG9iai5wcm9wZXJ0eSkgPT09ICJ1bmRlZmluZWQiKTsKCiAgICAgICAgcmV0dXJuIGJlZm9yZVdyaXRlID09PSB0cnVlICYmIGFmdGVyV3JpdGUgPT09IHRydWU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-188","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-188.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAiMTUuMi4zLjYtMy0xODkiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMTg5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICd3cml0YWJsZScgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIGEgbm9uLWVtcHR5IHN0cmluZyAgKDguMTAuNSBzdGVwIDYuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgeyB3cml0YWJsZTogIiAgICAgICIgfSk7CgogICAgICAgIHZhciBiZWZvcmVXcml0ZSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICB2YXIgYWZ0ZXJXcml0ZSA9IChvYmoucHJvcGVydHkgPT09ICJpc1dyaXRhYmxlIik7CgogICAgICAgIHJldHVybiBiZWZvcmVXcml0ZSA9PT0gdHJ1ZSAmJiBhZnRlcldyaXRlID09PSB0cnVlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-189","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-189.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTE5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIHN0cmluZyBwcmltaXRpdmUgKDguMTAuNSBzdGVwIDEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHt9LCAicHJvcGVydHkiLCAiYWJjIik7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-19","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-19.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE5MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xOTAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYSBGdW5jdGlvbiBvYmplY3QgKDguMTAuNSBzdGVwIDYuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgewogICAgICAgICAgICB3cml0YWJsZTogZnVuY3Rpb24gKCkgeyB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBiZWZvcmVXcml0ZSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICB2YXIgYWZ0ZXJXcml0ZSA9IChvYmoucHJvcGVydHkgPT09ICJpc1dyaXRhYmxlIik7CgogICAgICAgIHJldHVybiBiZWZvcmVXcml0ZSA9PT0gdHJ1ZSAmJiBhZnRlcldyaXRlID09PSB0cnVlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-190","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-190.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE5MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0x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aXNXcml0YWJsZSI7CgogICAgICAgIHZhciBhZnRlcldyaXRlID0gKG9iai5wcm9wZXJ0eSA9PT0gImlzV3JpdGFibGUiKTsKCiAgICAgICAgcmV0dXJuIGJlZm9yZVdyaXRlID09PSB0cnVlICYmIGFmdGVyV3JpdGUgPT09IHRydWU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-196","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-196.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTE5NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0xOTcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYSBSZWdFeHAgb2JqZWN0ICg4LjEwLjUgc3RlcCA2LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsKICAgICAgICAgICAgd3JpdGFibGU6IG5ldyBSZWdFeHAoKQogICAgICAgIH0pOwoKICAgICAgICB2YXIgYmVmb3JlV3JpdGUgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIG9iai5wcm9wZXJ0eSA9PT0gInVuZGVmaW5lZCI7CgogICAgICAgIG9iai5wcm9wZXJ0eSA9ICJpc1dyaXRhYmxlIjsKCiAg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Owo=","id":"15.2.3.6-3-2","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-2.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTIwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgcHJlc2VudCAoOC4xMC41IHN0ZXAgMykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3AgPT09ICJwcm9wZXJ0eSIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gIWFjY2Vzc2VkICYmIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-20","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-20.js"},{"code":"RVM1SGFybmVz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i0zLTIwMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMDMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgdHJlYXRlZCBhcyB0cnVlIHdoZW4gaXQgaXMgYSBzdHJpbmcodmFsdWUgaXMgJ2ZhbHNlJykgKDguMTAuNSBzdGVwIDYuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgeyB3cml0YWJsZTogImZhbHNlIiB9KTsKCiAgICAgICAgdmFyIGJlZm9yZVdyaXRlID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHZhciBhZnRlcldyaXRlID0gKG9iai5wcm9wZXJ0eSA9PT0gImlzV3JpdGFibGUiKTsKCiAgICAgICAgcmV0dXJuIGJlZm9yZVdyaXRlID09PSB0cnVlICYmIGFmdGVyV3JpdGUgPT09IHRydWU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-203","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-203.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIwNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvM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VydHkob2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKCkge30KICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIHR5cGVvZiBvYmoucHJvcGVydHkgPT09ICJ1bmRlZmluZWQiICYmIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-206","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-206.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIwNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMDcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ2dldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIG93biBkYXRhIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA3LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGF0dHJpYnV0ZXMgPSB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJvd25EYXRhUHJvcGVydHkiOwogICAgICAgICAgICB9CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgYXR0cmlidXRlcyk7CgogICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJvd25EYXRhUHJvcGVydHkiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-207","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-207.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIwOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMDguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ2dldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIGFuIGluaGVyaXRlZCBkYXRhIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA3LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIHByb3RvID0gewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAiaW5oZXJpdGVkRGF0YVByb3BlcnR5IjsKICAgICAgICAgICAgfQogICAgICAgIH07CgogICAgICAgIHZhciBDb25zdHJ1Y3RGdW4gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uc3RydWN0RnVuLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uc3RydWN0RnVuKCk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGNoaWxkKTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gImluaGVyaXRlZERhdGFQcm9wZXJ0eSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-208","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-208.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIwOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMDkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ2dldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIG93biBkYXRhIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBkYXRhIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA3LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIHByb3RvID0gewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAiaW5oZXJpdGVkRGF0YVByb3BlcnR5IjsKICAgICAgICAgICAgfQogICAgICAgIH07CgogICAgICAgIHZhciBDb25zdHJ1Y3RGdW4gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uc3RydWN0RnVuLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uc3RydWN0RnVuKCk7CiAgICAgICAgY2hpbGQuZ2V0ID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gIm93bkRhdGFQcm9wZXJ0eSI7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgY2hpbGQpOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAib3duRGF0YVByb3BlcnR5IjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-209","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-209.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTIxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgbm90IHByZXNlbnQgKDguMTAuNSBzdGVwIDMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgYXR0ciA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGF0dHIpOwoKICAgICAgICBmb3IgKHZhciBwcm9wIGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-21","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-21.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIxMCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMTAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ2dldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIG93biBkYXRhIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBwcm90byA9IHt9OwogICAgICAgIHZhciBmdW4gPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAiaW5oZXJpdGVkQWNjZXNzb3JQcm9wZXJ0eSI7CiAgICAgICAgfTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJnZXQiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZ1bjsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uc3RydWN0RnVuID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbnN0cnVjdEZ1bi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGNoaWxkID0gbmV3IENvbnN0cnVjdEZ1bigpOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShjaGlsZCwgImdldCIsIHsKICAgICAgICAgICAgdmFsdWU6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAib3duRGF0YVByb3BlcnR5IjsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBjaGlsZCk7CgogICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJvd25EYXRhUHJvcGVydHkiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-210","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-210.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIxMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ2dldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIG93biBhY2Nlc3NvciBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgYXR0cmlidXRlcyA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhdHRyaWJ1dGVzLCAiZ2V0IiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICJvd25BY2Nlc3NvclByb3BlcnR5IjsKICAgICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgYXR0cmlidXRlcyk7CgogICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJvd25BY2Nlc3NvclByb3BlcnR5IjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-211","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-211.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIxMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMTIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ2dldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIGFuIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBwcm90byA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgImdldCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAiaW5oZXJpdGVkQWNjZXNzb3JQcm9wZXJ0eSI7CiAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb25zdHJ1Y3RGdW4gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uc3RydWN0RnVuLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uc3RydWN0RnVuKCk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGNoaWxkKTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gImluaGVyaXRlZEFjY2Vzc29yUHJvcGVydHkiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-212","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-212.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIxMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMTMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ2dldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIG93biBhY2Nlc3NvciBwcm9wZXJ0eSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgZGF0YSBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBwcm90byA9IHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gImluaGVyaXRlZERhdGFQcm9wZXJ0eSI7CiAgICAgICAgICAgIH0KICAgICAgICB9OwoKICAgICAgICB2YXIgQ29uc3RydWN0RnVuID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbnN0cnVjdEZ1bi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGNoaWxkID0gbmV3IENvbnN0cnVjdEZ1bigpOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShjaGlsZCwgImdldCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAib3duQWNjZXNzb3JQcm9wZXJ0eSI7CiAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGNoaWxkKTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gIm93bkFjY2Vzc29yUHJvcGVydHkiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-213","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-213.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIxNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMTQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ2dldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIG93biBhY2Nlc3NvciBwcm9wZXJ0eSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkgKDguMTAuNSBzdGVwIDcuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJnZXQiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gImluaGVyaXRlZEFjY2Vzc29yUHJvcGVydHkiOwogICAgICAgICAgICAgICAgfTsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uc3RydWN0RnVuID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbnN0cnVjdEZ1bi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGNoaWxkID0gbmV3IENvbnN0cnVjdEZ1bigpOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShjaGlsZCwgImdldCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAib3duQWNjZXNzb3JQcm9wZXJ0eSI7CiAgICAgICAgICAgICAgICB9OwogICAgICAg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mIG9iai5wcm9wZXJ0eSA9PT0gInVuZGVmaW5lZCIgJiYgb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-215","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-215.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIxNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMTYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ2dldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIG93biBhY2Nlc3NvciBwcm9wZXJ0eSh3aXRob3V0IGEgZ2V0IGZ1bmN0aW9uKSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkgKDguMTAuNSBzdGVwIDcuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJnZXQiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gImluaGVyaXRlZEFjY2Vzc29yUHJvcGVydHkiOwogICAgICAgICAgICAgICAgfTsKICAgICAgICAgICAgfQogICAgICAgIH0p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0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIHByb3RvID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAiZ2V0IiwgewogICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICgpIHsgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uc3RydWN0RnVuID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbnN0cnVjdEZ1bi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGNoaWxkID0gbmV3IENvbnN0cnVjdEZ1bigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBjaGlsZCk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIG9iai5wcm9wZXJ0eSA9PT0gInVuZGVmaW5lZCI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-217","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-217.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIxOC0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTIxOC0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIEZ1bmN0aW9uIG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnZ2V0JyBwcm9wZXJ0eSBvZiBwcm90b3R5cGUgb2JqZWN0ICg4LjEwLjUgc3RlcCA3LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgRnVuY3Rpb24ucHJvdG90eXBlLmdldCA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAiZnVuY3Rpb25HZXRQcm9wZXJ0eSI7CiAgICAgICAgICAgIH07CiAgICAgICAgICAgIHZhciBmdW5PYmogPSBmdW5jdGlvbiAoKSB7IH07CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBmdW5PYmopOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gImZ1bmN0aW9uR2V0UHJvcGVydHkiOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBGdW5jdGlvbi5wcm90b3R5cGUuZ2V0OwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-218-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-218-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIxOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMTguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGEgRn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CcgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIEFycmF5LnByb3RvdHlwZS5nZXQgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gImFycmF5R2V0UHJvcGVydHkiOwogICAgICAgICAgICB9OwogICAgICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBhcnJPYmopOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gImFycmF5R2V0UHJvcGVydHkiOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBBcnJheS5wcm90b3R5cGUuZ2V0OwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-219-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-219-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIxOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMTkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGFuIEFycmF5IG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZX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CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgewogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIGZvciAodmFyIHByb3AgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIGFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-22","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-22.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIyMC0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTIyMC0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIFN0cmluZyBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ2dldCcgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIFN0cmluZy5wcm90b3R5cGUuZ2V0ID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJzdHJpbmdHZXRQcm9wZXJ0eSI7CiAgICAgICAgICAgIH07CiAgICAgICAgICAgIHZhciBzdHJPYmogPSBuZXcgU3RyaW5nKCk7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBzdHJPYmopOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gInN0cmluZ0dldFByb3BlcnR5IjsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgU3RyaW5nLnByb3RvdHlwZS5nZXQ7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-220-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-220-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIyMCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMjAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGEgU3RyaW5nIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnZ2V0JyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgc3RyT2JqID0gbmV3IFN0cmluZygpOwoKICAgICAgICBzdHJPYmouZ2V0ID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gInN0cmluZ0dldFByb3BlcnR5IjsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBzdHJPYmopOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAic3RyaW5nR2V0UHJvcGVydHkiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-220","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-220.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIyMS0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTIyMS0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIEJvb2xlYW4gb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdnZXQnIHByb3BlcnR5IG9mIHByb3RvdHlwZSBvYmplY3QgKDguMTAuNSBzdGVwIDcuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB0cnkgewogICAgICAgICAgICBCb29sZWFuLnByb3RvdHlwZS5nZXQgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gImJvb2xlYW5HZXRQcm9wZXJ0eSI7CiAgICAgICAgICAgIH07CiAgICAgICAgICAgIHZhciBib29sT2JqID0gbmV3IEJvb2xlYW4odHJ1ZSk7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBib29sT2JqKTsKCiAgICAgICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJib29sZWFuR2V0UHJvcGVydHkiOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBCb29sZWFuLnByb3RvdHlwZS5nZXQ7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-221-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-221-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIyMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMjEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGEgQm9vbGVhbiBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ2dldCcgcHJvcGVydHkgKDguMTAuNSBzdGVwIDcuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGJvb2xPYmogPSBuZXcgQm9vbGVhbih0cnVlKTsKCiAgICAgICAgYm9vbE9iai5nZXQgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAiYm9vbGVhbkdldFByb3BlcnR5IjsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBib29sT2JqKTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gImJvb2xlYW5HZXRQcm9wZXJ0eSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-221","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-221.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIyMi0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTIyMi0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIE51bWJlciBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ2dldCcgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE51bWJlci5wcm90b3R5cGUuZ2V0ID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJudW1iZXJHZXRQcm9wZXJ0eSI7CiAgICAgICAgICAgIH07CiAgICAgICAgICAgIHZhciBudW1PYmogPSBuZXcgTnVtYmVyKC0yKTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIG51bU9iaik7CgogICAgICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAibnVtYmVyR2V0UHJvcGVydHkiOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBOdW1iZXIucHJvdG90eXBlLmdldDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-222-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-222-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIyMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMjIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGEgTnVtYmVyIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnZ2V0JyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgbnVtT2JqID0gbmV3IE51bWJlcigtMik7CgogICAgICAgIG51bU9iai5nZXQgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAibnVtYmVyR2V0UHJvcGVydHkiOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIG51bU9iaik7CgogICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJudW1iZXJHZXRQcm9wZXJ0eSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-222","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-222.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIyMy0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTIyMy0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyB0aGUgTWF0aCBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ2dldCcgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QucHJvdG90eXBlLmdldCA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAibWF0aEdldFByb3BlcnR5IjsKICAgICAgICAgICAgfTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIE1hdGgpOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9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AgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE1hdGguZ2V0OwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-223","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-223.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIyNC0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTIyNC0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIERhdGUgb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdnZXQnIHByb3BlcnR5IG9mIHByb3RvdHlwZSBvYmplY3QgKDguMTAuNSBzdGVwIDcuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB0cnkgewogICAgICAgICAgICBEYXRlLnByb3RvdHlwZS5nZXQgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gImRhdGVHZXRQcm9wZXJ0eSI7CiAgICAgICAgICAgIH07CiAgICAgICAgICAgIHZhciBkYXRlT2JqID0gbmV3IERhdGUoKTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGRhdGVPYmopOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gImRhdGVHZXRQcm9wZXJ0eSI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIERhdGUucHJvdG90eXBlLmdldDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-224-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-224-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIyNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMjQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGEgRGF0ZSBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ2dldCcgcHJvcGVydHkgKDguMTAuNSBzdGVwIDcuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGRhdGVPYmogPSBuZXcgRGF0ZSgpOwoKICAgICAgICBkYXRlT2JqLmdldCA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuICJkYXRlR2V0UHJvcGVydHkiOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGRhdGVPYmopOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiZGF0ZUdldFByb3BlcnR5IjsKICAgIH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KICAgICAgICAgICAgZGVsZXRlIFJlZ0V4cC5wcm90b3R5cGUuZ2V0OwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-225-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-225-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIyNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMjUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGEgUmVnRXhwIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnZ2V0JyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgcmVnT2JqID0gbmV3IFJlZ0V4cCgpOwoKICAgICAgICByZWdPYmouZ2V0ID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gInJlZ0V4cEdldFByb3BlcnR5IjsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCByZWdPYmopOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAicmVnRXhwR2V0UHJvcGVydHkiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-225","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-225.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIyNi0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTIyNi0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyB0aGUgSlNPTiBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ2dldCcgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QucHJvdG90eXBlLmdldCA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAianNvbkdldFByb3BlcnR5IjsKICAgICAgICAgICAgfTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIEpTT04pOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gImpzb25HZXRQcm9wZXJ0eSI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE9iamVjdC5wcm90b3R5cGUuZ2V0OwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-226-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-226-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIyNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMjYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIHRoZSBKU09OIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnZ2V0JyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBKU09OLmdldCA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAianNvbkdldFByb3BlcnR5IjsKICAgICAgICAgICAgfTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIEpTT04pOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gImpzb25HZXRQcm9wZXJ0eSI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEpTT04uZ2V0OwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-226","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-226.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIyNy0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTIyNy0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhbiBFcnJvciBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ2dldCcgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIEVycm9yLnByb3RvdHlwZS5nZXQgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gImVycm9yR2V0UHJvcGVydHkiOwogICAgICAgICAgICB9OwogICAgICAgICAgICB2YXIgZXJyT2JqID0gbmV3IEVycm9yKCk7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBlcnJPYmopOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gImVycm9yR2V0UHJvcGVydHkiOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBFcnJvci5wcm90b3R5cGUuZ2V0OwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-227-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-227-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIyNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMjcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGFuIEVycm9yIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnZ2V0JyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgZXJyT2JqID0gbmV3IEVycm9yKCk7CgogICAgICAgIGVyck9iai5nZXQgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAiZXJyb3JHZXRQcm9wZXJ0eSI7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgZXJyT2JqKTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gImVycm9yR2V0UHJvcGVydHkiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-227","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-227.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIyOC0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTIyOC0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhbiBBcmd1bWVudHMgb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdnZXQnIHByb3BlcnR5IG9mIHByb3RvdHlwZSBvYmplY3QgKDguMTAuNSBzdGVwIDcuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QucHJvdG90eXBlLmdldCA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAiYXJndW1lbnRHZXRQcm9wZXJ0eSI7CiAgICAgICAgICAgIH07CiAgICAgICAgICAgIHZhciBhcmdPYmogPSAoZnVuY3Rpb24gKCkgeyByZXR1cm4gYXJndW1lbnRzOyB9KSgpOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgYXJnT2JqKTsKCiAgICAgICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJhcmd1bWVudEdldFByb3BlcnR5IjsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgT2JqZWN0LnByb3RvdHlwZS5nZXQ7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1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7Cg==","id":"15.2.3.6-3-228","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-228.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTIzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYW4gaW5oZXJpdGVkIGRhdGEgcHJvcGVydHkgKDguMTAuNSBzdGVwIDMuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgdmFyIHByb3RvID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAiZW51bWVyYWJsZSIsIHsKICAgICAgICAgICAgdmFsdWU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbnN0cnVjdEZ1biA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb25zdHJ1Y3RGdW4ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb25zdHJ1Y3RGdW4oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgY2hpbGQpOwoKICAgICAgICBmb3IgKHZhciBwcm9wIGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2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ogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-230","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-230.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIzMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMzEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gdmFsdWUgb2YgJ2dldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIHVuZGVmaW5lZCAoOC4xMC41IHN0ZXAgNy5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgIGdldDogdW5kZWZpbmVkCiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIG9iai5wcm9wZXJ0eSA9PT0gInVuZGVmaW5lZCI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-231","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-231.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIzMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMzIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gdmFsdWUgb2YgJ2dldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIGEgZnVuY3Rpb24gKDguMTAuNSBzdGVwIDcuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAiZ2V0RnVuY3Rpb24iOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgb2JqLnByb3BlcnR5ID09PSAiZ2V0RnVuY3Rpb24iOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-232","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-232.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIzNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMzUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3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oKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDExOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIG9iai5wcm9wZXJ0eSA9IDE0OwogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wZXJ0eSIpOwogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgb2JqLnByb3BlcnR5ID09PSAxMSAmJiB0eXBlb2YgZGVzYy5zZXQgPT09ICJ1bmRlZmluZWQiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-236","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-236.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIzNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMzcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3NldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIG93biBkYXRhIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA4LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGRhdGEgPSAiZGF0YSI7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgICAgIGRhdGEgPSB2YWx1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAib3ZlcnJpZGVEYXRhIjsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiBkYXRhID09PSAib3ZlcnJpZGVEYXRhIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-237","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-237.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTIzOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yMzguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3NldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIGFuIGluaGVyaXRlZCBkYXRhIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA4LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGRhdGEgPSAiZGF0YSI7CiAgICAgICAgdmFyIHByb3RvID0gewog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CA4LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGRhdGExID0gImRhdGEiOwogICAgICAgIHZhciBkYXRhMiA9ICJkYXRhIjsKICAgICAgICB2YXIgcHJvdG8gPSB7CiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICBkYXRhMSA9IHZhbHVlOwogICAgICAgICAgICB9CiAgICAgICAgfTsKCiAgICAgICAgdmFyIENvbnN0cnVjdEZ1biA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb25zdHJ1Y3RGdW4ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb25zdHJ1Y3RGdW4oKTsKICAgICAgICBjaGlsZC5zZXQgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgZGF0YTIgPSB2YWx1ZTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBjaGlsZCk7CgogICAgICAgIG9iai5wcm9wZXJ0eSA9ICJvdmVycmlkZURhdGEiOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIGRhdGExID09PSAiZGF0YSIgJiYgZGF0YTIgPT09ICJvdmVycmlkZURhdGEiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-239","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-239.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI0IiwKCiAgICBwY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4gYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-24","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-24.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI0MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yNDAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3NldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIG93biBkYXRhIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgOC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBwcm90byA9IHt9OwogICAgICAgIHZhciBkYXRhMSA9ICJkYXRhIjsKICAgICAgICB2YXIgZGF0YTIgPSAiZGF0YSI7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgInNldCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICAgICAgZGF0YTEgPSB2YWx1ZTsKICAgICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbnN0cnVjdEZ1biA9IGZ1bmN0aW9uICgpIHs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ogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBkYXRhID0gImRhdGEiOwogICAgICAgIHZhciBhdHRyaWJ1dGVzID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGF0dHJpYnV0ZXMsICJzZXQiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgICAgIGRhdGEgPSB2YWx1ZTsKICAgICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgYXR0cmlidXRlcyk7CiAgICAgICAgb2JqLnByb3BlcnR5ID0gIm93bkFjY2Vzc29yUHJvcGVydHkiOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIGRhdGEgPT09ICJvd25BY2Nlc3NvclByb3BlcnR5IjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-241","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-241.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI0MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yNDIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3NldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIGFuIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgOC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBwcm90byA9IHt9OwogICAgICAgIHZhciBkYXRhID0gImRhdGEiOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgInNldCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICAgICAgZGF0YSA9IHZhbHVlOwogICAgICAgICAgICAgICAgfTsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uc3RydWN0RnVuID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbnN0cnVjdEZ1bi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGNoaWxkID0gbmV3IENvbnN0cnVjdEZ1bigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBjaGlsZCk7CiAgICAgICAgb2JqLnByb3BlcnR5ID0gImluaGVyaXRlZEFjY2Vzc29yUHJvcGVydHkiOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIGRhdGEgPT09ICJpbmhlcml0ZWRBY2Nlc3NvclByb3BlcnR5IjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-242","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6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gICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgY2hpbGQpOwogICAgICAgIG9iai5wcm9wZXJ0eSA9ICJvd25BY2Nlc3NvclByb3BlcnR5IjsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiBkYXRhMSA9PT0gImRhdGEiICYmIGRhdGEyID09PSAib3duQWNjZXNzb3JQcm9wZXJ0eSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-243","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-243.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI0NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yNDQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3NldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIG93biBhY2Nlc3NvciBwcm9wZXJ0eSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkgKDguMTAuNSBzdGVwIDguYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKICAgICAgICB2YXIgZGF0YTEgPSAiZGF0YSI7CiAgICAgICAgdmFyIGRhdGEyID0gImRhdGEiOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgInNldCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICAgICAgZGF0YTEgPSB2YWx1ZTsKICAgICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbnN0cnVjdEZ1biA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb25zdHJ1Y3RGdW4ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb25zdHJ1Y3RGdW4oKTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoY2hpbGQsICJzZXQiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgICAgIGRhdGEyID0gdmFsdWU7CiAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGNoaWxkKTsKICAgICAgICBvYmoucHJvcGVydHkgPSAib3duQWNjZXNzb3JQcm9wZXJ0eSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgZGF0YTEgPT09ICJkYXRhIiAmJiBkYXRhMiA9PT0gIm93bkFjY2Vzc29yUHJvcGVydHkiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-244","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3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ByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-245","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-245.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI0NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yNDYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ3NldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIG93biBhY2Nlc3NvciBwcm9wZXJ0eSh3aXRob3V0IGEgZ2V0IGZ1bmN0aW9uKSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkgKDguMTAuNSBzdGVwIDguYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKICAgICAgICB2YXIgZGF0YSA9ICJkYXRhIjsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJzZXQiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgICAgIGRhdGEgPSB2YWx1ZTsKICAgICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbnN0cnVjdEZ1biA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb25zd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0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIHByb3RvID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAic2V0IiwgewogICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICgpIHsgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uc3RydWN0RnVuID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbnN0cnVjdEZ1bi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGNoaWxkID0gbmV3IENvbnN0cnVjdEZ1bigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBjaGlsZCk7CgogICAgICAgIG9iai5wcm9wZXJ0eSA9ICJvdmVycmlkZURhdGEiOwogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIG9iai5wcm9wZXJ0eSA9PT0gInVuZGVmaW5lZCI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-247","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-247.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI0OC0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTI0OC0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIEZ1bmN0aW9uIG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnc2V0JyBwcm9wZXJ0eSBvZiBwcm90b3R5cGUgb2JqZWN0ICg4LjEwLjUgc3RlcCA4LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGRhdGEgPSAiZGF0YSI7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgRnVuY3Rpb24ucHJvdG90eXBlLnNldCA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgZGF0YSA9IHZhbHVlOwogICAgICAgICAgICB9OwogICAgICAgICAgICB2YXIgZnVuT2JqID0gZnVuY3Rpb24gKCkgeyB9OwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgZnVuT2JqKTsKICAgICAgICAgICAgb2JqLnByb3BlcnR5ID0gIm92ZXJyaWRlRGF0YSI7CgogICAgICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIGRhdGEgPT09ICJvdmVycmlkZURhdGEiOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBGdW5jdGlvbi5wcm90b3R5cGUuc2V0OwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-248-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-248-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI0OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVy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chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-249-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI0OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yNDkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGFuIEFycmF5IG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnc2V0JyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgOC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBkYXRhID0gImRhdGEiOwogICAgICAgIHZhciBhcnJPYmogPSBbXTsKCiAgICAgICAgYXJyT2JqLnNldCA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICBkYXRhID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgYXJyT2JqKTsKICAgICAgICBvYmoucHJvcGVydHkgPSAib3ZlcnJpZGVEYXRhIjsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiBkYXRhID09PSAib3ZlcnJpZGVEYXRhIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-249","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15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gICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3AgPT09ICJwcm9wZXJ0eSIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIGFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-25","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-25.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI1MC0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTI1MC0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIFN0cmluZyBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ3NldCcgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgOC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIFN0cmluZy5wcm90b3R5cGUuc2V0ID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICBkYXRhID0gdmFsdWU7CiAgICAgICAgICAgIH07CiAgICAgICAgICAgIHZhciBzdHJPYmogPSBuZXcgU3RyaW5nKCk7CiAgICAgICAgICAgIHZhciBkYXRhID0gImRhdGEiOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5Iiwgc3RyT2JqKTsKICAgICAgICAgICAgb2JqLnByb3BlcnR5ID0gIm92ZXJyaWRlRGF0YSI7CgogICAgICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIGRhdGEgPT09ICJvdmVycmlkZURhdGEiOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBTdHJpbmcucHJvdG90eXBlLnNldDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-250-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-250-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI1MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yNTAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGEgU3RyaW5nIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnc2V0JyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgOC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBzdHJPYmogPSBuZXcgU3RyaW5nKCk7CiAgICAgICAgdmFyIGRhdGEgPSAiZGF0YSI7CgogICAgICAgIHN0ck9iai5zZXQgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgZGF0YSA9IHZhbHVlOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHN0ck9iaik7CiAgICAgICAgb2JqLnByb3BlcnR5ID0gIm92ZXJyaWRlRGF0YSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgZGF0YSA9PT0gIm92ZXJyaWRlRGF0YSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-250","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-250.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI1MS0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTI1MS0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIEJvb2xlYW4gb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdzZXQnIHByb3BlcnR5IG9mIHByb3RvdHlwZSBvYmplY3QgKDguMTAuNSBzdGVwIDguYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgZGF0YSA9ICJkYXRhIjsKICAgICAgICB0cnkgewogICAgICAgICAgICBCb29sZWFuLnByb3RvdHlwZS5zZXQgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgICAgIGRhdGEgPSB2YWx1ZTsKICAgICAgICAgICAgfTsKICAgICAgICAgICAgdmFyIGJvb2xPYmogPSBuZXcgQm9vbGVhbih0cnVlKTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGJvb2xPYmopOwogICAgICAgICAgICBvYmoucHJvcGVydHkgPSAib3ZlcnJpZGVEYXRhIjsKCiAgICAgICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgZGF0YSA9PT0gIm92ZXJyaWRlRGF0YSI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEJvb2xlYW4ucHJvdG90eXBlLnNldDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-251-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-251-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI1MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yNTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGEgQm9vbGVhbiBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ3NldCcgcHJvcGVydHkgKDguMTAuNSBzdGVwIDguYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgZGF0YSA9ICJkYXRhIjsKICAgICAgICB2YXIgYm9vbE9iaiA9IG5ldyBCb29sZWFuKHRydWUpOwoKICAgICAgICBib29sT2JqLnNldCA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICBkYXRhID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgYm9vbE9iaik7CiAgICAgICAgb2JqLnByb3BlcnR5ID0gIm92ZXJyaWRlRGF0YSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgZGF0YSA9PT0gIm92ZXJyaWRlRGF0YSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-251","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-251.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI1Mi0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTI1Mi0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIE51bWJlciBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ3NldCcgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgOC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBkYXRhID0gImRhdGEiOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE51bWJlci5wcm90b3R5cGUuc2V0ID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICBkYXRhID0gdmFsdWU7CiAgICAgICAgICAgIH07CiAgICAgICAgICAgIHZhciBudW1PYmogPSBuZXcgTnVtYmVyKC0yKTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIG51bU9iaik7CiAgICAgICAgICAgIG9iai5wcm9wZXJ0eSA9ICJvdmVycmlkZURhdGEiOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiBkYXRhID09PSAib3ZlcnJpZGVEYXRhIjsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgTnVtYmVyLnByb3RvdHlwZS5zZXQ7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-252-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-252-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI1MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yNTIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ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RyaWJ1dGVzJyBpcyB0aGUgTWF0aCBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ3NldCcgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgOC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBkYXRhID0gImRhdGEiOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QucHJvdG90eXBlLnNldCA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgZGF0YSA9IHZhbHVlOwogICAgICAgICAgICB9OwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgTWF0aCk7CiAgICAgICAgICAgIG9iai5wcm9wZXJ0eSA9ICJvdmVycmlkZURhdGEiOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiBkYXRhID09PSAib3ZlcnJpZGVEYXRhIjsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgT2JqZWN0LnByb3RvdHlwZS5zZXQ7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-253-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-253-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI1MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yNTMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIHRoZSBNYXRoIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnc2V0JyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgOC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBkYXRhID0gImRhdGEiOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBNYXRoLnNldCA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgZGF0YSA9IHZhbHVlOwogICAgICAgICAgICB9OwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgTWF0aCk7CiAgICAgICAgICAgIG9iai5wcm9wZXJ0eSA9ICJvdmVycmlkZURhdGEiOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiBkYXRhID09PSAib3ZlcnJpZGVEYXRhIjsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgTWF0aC5zZXQ7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-253","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-253.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI1NC0xIiwKCiAgICBwYXRoOiAiV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6-3-254","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-254.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI1NS0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTI1NS0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIFJlZ0V4cCBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ3NldCcgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgOC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBkYXRhID0gImRhdGEiOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIFJlZ0V4cC5wcm90b3R5cGUuc2V0ID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICBkYXRhID0gdmFsdWU7CiAgICAgICAgICAgIH07CiAgICAgICAgICAgIHZhciByZWdPYmogPSBuZXcgUmVnRXhwKCk7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCByZWdPYmopOwogICAgICAgICAgICBvYmoucHJvcGVydHkgPSAib3ZlcnJpZGVEYXRhIjsKCiAgICAgICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgZGF0YSA9PT0gIm92ZXJyaWRlRGF0YSI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIFJlZ0V4cC5wcm90b3R5cGUuc2V0OwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-255-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-255-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI1NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yNTUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGEgUmVnRXhwIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnc2V0JyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgOC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBkYXRhID0gImRhdGEiOwogICAgICAgIHZhciByZWdPYmogPSBuZXcgUmVnRXhwKCk7CgogICAgICAgIHJlZ09iai5zZXQgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgZGF0YSA9IHZhbHVlOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHJlZ09iaik7CiAgICAgICAgb2JqLnByb3BlcnR5ID0gIm92ZXJyaWRlRGF0YSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgZGF0YSA9PT0gIm92ZXJyaWRlRGF0YSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-255","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-255.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI1Ni0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTI1Ni0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyB0aGUgSlNPTiBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ3NldCcgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgOC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBkYXRhID0gImRhdGEiOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QucHJvdG90eXBlLnNldCA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgZGF0YSA9IHZhbHVlOwogICAgICAgICAgICB9OwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgSlNPTik7CiAgICAgICAgICAgIG9iai5wcm9wZXJ0eSA9ICJvdmVycmlkZURhdGEiOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiBkYXRhID09PSAib3ZlcnJpZGVEYXRhIjsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgT2JqZWN0LnByb3RvdHlwZS5zZXQ7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-256-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-256-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI1NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yNTYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIHRoZSBKU09OIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnc2V0JyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgOC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBkYXRhID0gImRhdGEiOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBKU09OLnNldCA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgZGF0YSA9IHZhbHVlOwogICAgICAgICAgICB9OwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgSlNPTik7CiAgICAgICAgICAgIG9iai5wcm9wZXJ0eSA9ICJvdmVycmlkZURhdGEiOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiBkYXRhID09PSAib3ZlcnJpZGVEYXRhIjsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgSlNPTi5zZXQ7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-256","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-256.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI1Ny0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTI1Ny0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhbiBFcnJvciBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ3NldCcgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgOC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBkYXRhID0gImRhdGEiOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBFcnJvci5wcm90b3R5cGUuc2V0ID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICBkYXRhID0gdmFsdWU7CiAgICAgICAgICAgIH07CiAgICAgICAgICAgIHZhciBlcnJPYmogPSBuZXcgRXJyb3IoKTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGVyck9iaik7CiAgICAgICAgICAgIG9iai5wcm9wZXJ0eSA9ICJvdmVycmlkZURhdGEiOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiBkYXRhID09PSAib3ZlcnJpZGVEYXRhIjsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgRXJyb3IucHJvdG90eXBlLnNldDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-257-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-257-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI1NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yNTcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGFuIEVycm9yIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnc2V0JyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgOC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBkYXRhID0gImRhdGEiOwogICAgICAgIHZhciBlcnJPYmogPSBuZXcgRXJyb3IoKTsKCiAgICAgICAgZXJyT2JqLnNldCA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICBkYXRhID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgZXJyT2JqKTsKICAgICAgICBvYmoucHJvcGVydHkgPSAib3ZlcnJpZGVEYXRhIjsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiBkYXRhID09PSAib3ZlcnJpZGVEYXRhIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-257","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-257.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI1OC0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTI1OC0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhbiBBcmd1bWVudHMgb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdzZXQnIHByb3BlcnR5IG9mIHByb3RvdHlwZSBvYmplY3QgKDguMTAuNSBzdGVwIDguYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgZGF0YSA9ICJkYXRhIjsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QucHJvdG90eXBlLnNldCA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgZGF0YSA9IHZhbHVlOwogICAgICAgICAgICB9OwogICAgICAgICAgICB2YXIgYXJnT2JqID0gKGZ1bmN0aW9uICgpIHsgcmV0dXJuIGFyZ3VtZW50czsgfSkoKTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGFyZ09iaik7CiAgICAgICAgICAgIG9iai5wcm9wZXJ0eSA9ICJvdmVycmlkZURhdGEiOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiBkYXRhID09PSAib3ZlcnJpZGVEYXRhIjsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgT2JqZWN0LnByb3RvdHlwZS5zZXQ7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-258-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-258-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI1OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yNTguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIGFuIEFyZ3VtZW50cyBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ3NldCcgcHJvcGVydHkgKDguMTAuNSBzdGVwIDguYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgZGF0YSA9ICJkYXRhIjsKICAgICAgICB2YXIgYXJnT2JqID0gKGZ1bmN0aW9uICgpIHsgcmV0dXJuIGFyZ3VtZW50czsgfSkoKTsKICAgICAgICBhcmdPYmouc2V0ID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIGRhdGEgPSB2YWx1ZTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBhcmdPYmopOwogICAgICAgIG9iai5wcm9wZXJ0eSA9ICJvdmVycmlkZURhdGEiOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIGRhdGEgPT09ICJvdmVycmlkZURhdGEiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-258","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-258.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTI2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5ICg4LjEwLjUgc3RlcCAzLmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIHZhciBhdHRyID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGF0dHIsICJlbnVtZXJhYmxlIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGF0dHIpOwoKICAgICAgICBmb3IgKHZhciBwcm9wIGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-26","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-26.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI2MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yNjAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ0F0dHJpYnV0ZXMnIGlzIHRoZSBnbG9iYWwgb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdzZXQnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA4LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGRhdGEgPSAiZGF0YSI7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIGZuR2xvYmFsT2JqZWN0KCkuc2V0ID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICBkYXRhID0gdmFsdWU7CiAgICAgICAgICAgIH07CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBmbkdsb2JhbE9iamVjdCgpKTsKICAgICAgICAgICAgb2JqLnByb3BlcnR5ID0gIm92ZXJyaWRlRGF0YSI7CgogICAgICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIGRhdGEgPT09ICJvdmVycmlkZURhdGEiOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBmbkdsb2JhbE9iamVjdCgpLnNldDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-260","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-260.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI2MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yNjEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gdmFsdWUgb2YgJ3NldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIHVuZGVmaW5lZCAoOC4xMC41IHN0ZXAgOC5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkCiAgICAgICAgfSk7CgogICAgICAgIG9iai5wcm9wZXJ0eSA9ICJvdmVycmlkZURhdGEiOwogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wZXJ0eSIpOwogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIG9iai5wcm9wZXJ0eSA9PT0gInVuZGVmaW5lZCIgJiYKICAgICAgICAgICAgdHlwZW9mIGRlc2Muc2V0ID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-261","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-261.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI2MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0yNjIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gdmFsdWUgb2YgJ3NldCcgcHJvcGVydHkgaW4gJ0F0dHJpYnV0ZXMnIGlzIGEgZnVuY3Rpb24gKDguMTAuNSBzdGVwIDguYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgZGF0YSA9ICJkYXRhIjsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgewogICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgZGF0YSA9IHZhbHVlOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgb2JqLnByb3BlcnR5ID0gIm92ZXJyaWRlRGF0YSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgZGF0YSA9PT0gIm92ZXJyaWRlRGF0YSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-262","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-262.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTI3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYW4gaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5ICg4LjEwLjUgc3RlcCAzLmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIHZhciBwcm90byA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgImVudW1lcmFibGUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbnN0cnVjdEZ1biA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb25zdHJ1Y3RGdW4ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb25zdHJ1Y3RGdW4oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgY2hpbGQpOwoKICAgICAgICBmb3IgKHZhciBwcm9wIGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-27","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-27.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTI4L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Zm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-28","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-28.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTI5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTI5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgMy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwogICAgICAgIHZhciBwcm90byA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJlbnVtZXJhYmxlIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uc3RydWN0RnVuID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbnN0cnVjdEZ1bi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGNoaWxkID0gbmV3IENvbnN0cnVjdEZ1bigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoY2hpbGQsICJlbnVtZXJhYmxlIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGNoaWxkKTsKCiAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3AgPT09ICJwcm9wZXJ0eSIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-29","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-29.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNi0zLTMiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy0zLmpzIiwKCmRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IHRocm93cyBUeXBlRXJyb3IgaWYgZGVzYyBoYXMgJ3NldCcgYW5kICd2YWx1ZScgcHJlc2VudCg4LjEwLjUgc3RlcCA5LmEpIiwKCnRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgdmFyIG8gPSB7fTsKCiAgICAvLyBkdW1teSBzZXR0ZXIKICAgIHZhciBzZXR0ZXIgPSBmdW5jdGlvbiAoKSB7IH0KICAgIHZhciBkZXNjID0geyBzZXQ6IHNldHRlciwgdmFsdWU6IDEwMX07CiAgICAKICAgIHRyeSB7CiAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvLCAiZm9vIiwgZGVzYyk7CiAgICB9CiAgICBjYXRjaCAoZSkgewogICAgICBpZiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJgogICAgICAgICAgKG8uaGFzT3duUHJvcGVydHkoImZvbyIpID09PSBmYWxzZSkpIHsKICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgfQogICAgfQogfSwKCnByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogfQp9KTsK","id":"15.2.3.6-3-3","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTMwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTMwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHdpdGhvdXQgYSBnZXQgZnVuY3Rpb24gKDguMTAuNSBzdGVwIDMuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgdmFyIGF0dHIgPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXR0ciwgImVudW1lcmFibGUiLCB7CiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKCkgeyB9CiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGF0dHIpOwoKICAgICAgICBmb3IgKHZhciBwcm9wIGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-30","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-30.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTMxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTMxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5KHdpdGhvdXQgYSBnZXQgZnVuY3Rpb24pIHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgMy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwogICAgICAgIHZhciBwcm90byA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJlbnVtZXJhYmxlIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb25zdHJ1Y3RGdW4gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uc3RydWN0RnVuLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uc3RydWN0RnVuKCk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShjaGlsZCwgImVudW1lcmFibGUiLCB7CiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKCkgeyB9CiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGNoaWxkKTsKCiAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3AgPT09ICJwcm9wZXJ0eSIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gIWFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-31","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-31.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTMyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTMyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYW4gaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5IHdpdGhvdXQgYSBnZXQgZnVuY3Rpb24gKDguMTAuNSBzdGVwIDMuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAiZW51bWVyYWJsZSIsIHsKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAoKSB7IH0KICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbnN0cnVjdEZ1biA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb25zdHJ1Y3RGdW4ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb25zdHJ1Y3RGdW4oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgY2hpbGQpOwoKICAgICAgICBmb3IgKHZhciBwcm9wIGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-32","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-32.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTMzLTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMzMtMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnQXR0cmlidXRlcycgaXMgYSBGdW5jdGlvbiBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ2VudW1lcmFibGUnIHByb3BlcnR5IG9mIHByb3RvdHlwZSBvYmplY3QgKDguMTAuNSBzdGVwIDMuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKICAgICAgICB0cnkgewogICAgICAgICAgICBGdW5jdGlvbi5wcm90b3R5cGUuZW51bWVyYWJsZSA9IHRydWU7CiAgICAgICAgICAgIHZhciBmdW4gPSBmdW5jdGlvbiAoKSB7IH07CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBmdW4pOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEZ1bmN0aW9uLnByb3RvdHlwZS5lbnVtZXJhYmxlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZX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CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-33","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-33.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTM0LTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMzQtMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnQXR0cmlidXRlcycgaXMgYW4gQXJyYXkgb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiBwcm90b3R5cGUgb2JqZWN0ICg4LjEwLjUgc3RlcCAzLmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgQXJyYXkucHJvdG90eXBlLmVudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBhcnJPYmopOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEFycmF5LnByb3RvdHlwZS5lbnVtZXJhYmxlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-34-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-34-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTM0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTM0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhbiBBcnJheSBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ2VudW1lcmFibGUnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCAzLmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIHZhciBhcnJPYmogPSBbXTsKICAgICAgICBhcnJPYmouZW51bWVyYWJsZSA9IHRydWU7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGFyck9iaik7CgogICAgICAgIGZvciAodmFyIHByb3AgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZ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gICAgICAgaWYgKHByb3AgPT09ICJwcm9wZXJ0eSIpIHsKICAgICAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgU3RyaW5nLnByb3RvdHlwZS5lbnVtZXJhYmxlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-35-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-35-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTM1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTM1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIFN0cmluZyBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ2VudW1lcmFibGUnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCAzLmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIHZhciBzdHJPYmogPSBuZXcgU3RyaW5nKCk7CiAgICAgICAgc3RyT2JqLmVudW1lcmFibGUgPSB0cnVlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBzdHJPYmopOwoKICAgICAgICBmb3IgKHZhciBwcm9wIGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-35","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-35.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTM2LTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMzYtMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnQXR0cmlidXRlcycgaXMgYSBCb29sZWFuIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnZW51bWVyYWJsZScgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgMy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIEJvb2xlYW4ucHJvdG90eXBlLmVudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICB2YXIgYm9vbE9iaiA9IG5ldyBCb29sZWFuKHRydWUpOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgYm9vbE9iaik7CgogICAgICAgICAgICBmb3IgKHZhciBwcm9wIGluIG9iaikgewogICAgICAgICAgICAgICAgaWYgKHByb3AgPT09ICJwcm9wZXJ0eSIpIHsKICAgICAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgQm9vbGVhbi5wcm90b3R5cGUuZW51bWVyYWJsZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-36-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-36-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTM2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTM2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIEJvb2xlYW4gb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgMy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICB2YXIgYm9vbE9iaiA9IG5ldyBCb29sZWFuKHRydWUpOwogICAgICAgIGJvb2xPYmouZW51bWVyYWJsZSA9IHRydWU7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGJvb2xPYmopOwoKICAgICAgICBmb3IgKHZhciBwcm9wIGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-36","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-36.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTM3LTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMzctMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnQXR0cmlidXRlcycgaXMgYSBOdW1iZXIgb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiBwcm90b3R5cGUgb2JqZWN0ICg4LjEwLjUgc3RlcCAzLmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgTnVtYmVyLnByb3RvdHlwZS5lbnVtZXJhYmxlID0gdHJ1ZTsKICAgICAgICAgICAgdmFyIG51bU9iaiA9IG5ldyBOdW1iZXIoLTIpOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgbnVtT2JqKTsKCiAgICAgICAgICAgIGZvciAodmFyIHByb3AgaW4gb2JqKSB7CiAgICAgICAgICAgICAgICBpZiAocHJvcCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgICAgcmV0dXJuIGFjY2Vzc2VkOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBOdW1iZXIucHJvdG90eXBlLmVudW1lcmFibGU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-37-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-37-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTM3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTM3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIE51bWJlciBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ2VudW1lcmFibGUnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCAzLmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIHZhciBudW1PYmogPSBuZXcgTnVtYmVyKC0yKTsKICAgICAgICBudW1PYmouZW51bWVyYWJsZSA9IHRydWU7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIG51bU9iaik7CgogICAgICAgIGZvciAodmFyIHByb3AgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-37","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-37.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTM4LTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMzgtMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnQXR0cmlidXRlcycgaXMgdGhlIE1hdGggb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiBwcm90b3R5cGUgb2JqZWN0ICg4LjEwLjUgc3RlcCAzLmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LnByb3RvdHlwZS5lbnVtZXJhYmxlID0gdHJ1ZTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIE1hdGgpOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgT2JqZWN0LnByb3RvdHlwZS5lbnVtZXJhYmxlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-38-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-38-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTM4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTM4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyB0aGUgTWF0aCBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ2VudW1lcmFibGUnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCAzLmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE1hdGguZW51bWVyYWJsZSA9IHRydWU7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBNYXRoKTsKCiAgICAgICAgICAgIGZvciAodmFyIHByb3AgaW4gb2JqKSB7CiAgICAgICAgICAgICAgICBpZiAocHJvcCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE1hdGguZW51bWVyYWJsZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-38","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-38.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTM5LTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtMzktMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnQXR0cmlidXRlcycgaXMgYSBEYXRlIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnZW51bWVyYWJsZScgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgMy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBEYXRlLnByb3RvdHlwZS5lbnVtZXJhYmxlID0gdHJ1ZTsKICAgICAgICAgICAgdmFyIGRhdGVPYmogPSBuZXcgRGF0ZSgpOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgZGF0ZU9iaik7CgogICAgICAgICAgICBmb3IgKHZhciBwcm9wIGluIG9iaikgewogICAgICAgICAgICAgICAgaWYgKHByb3AgPT09ICJwcm9wZXJ0eSIpIHsKICAgICAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgcmV0dXJuIGFjY2Vzc2VkOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBEYXRlLnByb3RvdHlwZS5lbnVtZXJhYmxlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-39-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-39-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTM5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTM5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIERhdGUgb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgMy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICB2YXIgZGF0ZU9iaiA9IG5ldyBEYXRlKCk7CiAgICAgICAgZGF0ZU9iai5lbnVtZXJhYmxlID0gdHJ1ZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgZGF0ZU9iaik7CgogICAgICAgIGZvciAodmFyIHByb3AgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIGFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-39","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-39.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNi0zLTQiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy00LmpzIiwKCmRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IHRocm93cyBUeXBlRXJyb3IgaWYgZGVzYyBoYXMgJ3NldCcgYW5kICd3cml0YWJsZScgcHJlc2VudCg4LjEwLjUgc3RlcCA5LmEpIiwKCnRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgdmFyIG8gPSB7fTsKICAgIAogICAgLy8gZHVtbXkgZ2V0dGVyCiAgICB2YXIgc2V0dGVyID0gZnVuY3Rpb24gKCkgeyB9CiAgICB2YXIgZGVzYyA9IHsgc2V0OiBzZXR0ZXIsIHdyaXRhYmxlOiBmYWxzZSB9OwogICAgCiAgICB0cnkgewogICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkobywgImZvbyIsIGRlc2MpOwogICAgfQogICAgY2F0Y2ggKGUpIHsKICAgICAgaWYgKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgIChvLmhhc093blByb3BlcnR5KCJmb28iKSA9PT0gZmFsc2UpKSB7CiAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgIH0KICAgIH0KIH0sCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKIH0KfSk7Cg==","id":"15.2.3.6-3-4","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-4.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTQwLTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtNDAtMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnQXR0cmlidXRlcycgaXMgYW4gUmVnRXhwIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnZW51bWVyYWJsZScgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgMy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIFJlZ0V4cC5wcm90b3R5cGUuZW51bWVyYWJsZSA9IHRydWU7CiAgICAgICAgICAgIHZhciByZWdPYmogPSBuZXcgUmVnRXhwKCk7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCByZWdPYmopOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIFJlZ0V4cC5wcm90b3R5cGUuZW51bWVyYWJsZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvc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5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-40","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-40.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTQxLTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtNDEtMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnQXR0cmlidXRlcycgaXMgdGhlIEpTT04gb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiBwcm90b3R5cGUgb2JqZWN0ICg4LjEwLjUgc3RlcCAzLmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LnByb3RvdHlwZS5lbnVtZXJhYmxlID0gdHJ1ZTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIEpTT04pOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE9iamVjdC5wcm90b3R5cGUuZW51bWVyYWJsZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-41-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-41-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTQxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTQxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyB0aGUgSlNPTiBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ2VudW1lcmFibGUnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCAzLmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIEpTT04uZW51bWVyYWJsZSA9IHRydWU7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBKU09OKTsKCiAgICAgICAgICAgIGZvciAodmFyIHByb3AgaW4gb2JqKSB7CiAgICAgICAgICAgICAgICBpZiAocHJvcCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgICAgcmV0dXJuIGFjY2Vzc2VkOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBKU09OLmVudW1lcmFibGU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-41","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-41.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTQyLTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtNDItMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnQXR0cmlidXRlcycgaXMgYW4gRXJyb3Igb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiBwcm90b3R5cGUgb2JqZWN0ICg4LjEwLjUgc3RlcCAzLmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgRXJyb3IucHJvdG90eXBlLmVudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICB2YXIgZXJyT2JqID0gbmV3IEVycm9yKCk7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBlcnJPYmopOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEVycm9yLnByb3RvdHlwZS5lbnVtZXJhYmxlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-42-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-42-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTQyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTQyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhbiBFcnJvciBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ2VudW1lcmFibGUnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCAzLmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIHZhciBlcnJPYmogPSBuZXcgRXJyb3IoKTsKICAgICAgICBlcnJPYmouZW51bWVyYWJsZSA9IHRydWU7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGVyck9iaik7CgogICAgICAgIGZvciAodmFyIHByb3AgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-42","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-42.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTQzLTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtNDMtMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnQXR0cmlidXRlcycgaXMgYW4gQXJndW1lbnRzIG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnZW51bWVyYWJsZScgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgMy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5wcm90b3R5cGUuZW51bWVyYWJsZSA9IHRydWU7CiAgICAgICAgICAgIHZhciBhcmdPYmogPSAoZnVuY3Rpb24gKCkgeyByZXR1cm4gYXJndW1lbnRzOyB9KSgpOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgYXJnT2JqKTsKCiAgICAgICAgICAgIGZvciAodmFyIHByb3AgaW4gb2JqKSB7CiAgICAgICAgICAgICAgICBpZiAocHJvcCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgICAgcmV0dXJuIGFjY2Vzc2VkOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBPYmplY3QucHJvdG90eXBlLmVudW1lcmFibGU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-43-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-43-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTQzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTQzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhbiBBcmd1bWVudHMgb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgMy5hKSIsCgogICAgdGVzdDogZnVuY3R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LAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgZm5HbG9iYWxPYmplY3QoKS5lbnVtZXJhYmxlID0gdHJ1ZTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGZuR2xvYmFsT2JqZWN0KCkpOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIGZuR2xvYmFsT2JqZWN0KCkuZW51bWVyYWJsZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-45","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-45.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTQ2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTQ2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbi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AgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7IGVudW1lcmFibGU6IG51bGwgfSk7CgogICAgICAgIGZvciAodmFyIHByb3AgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuICFhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-47","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-47.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTQ4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTQ4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgdHJ1ZSAoOC4xMC41IHN0ZXAgMy5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7IGVudW1lcmFibGU6IHRydWUgfSk7CgogICAgICAgIGZvciAodmFyIHByb3AgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIGFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-48","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-48.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTQ5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTQ5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgZmFsc2UgKDguMTAuNSBzdGVwIDMuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgeyBlbnVtZXJhYmxlOiBmYWxzZSB9KTsKCiAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3AgPT09ICJwcm9wZXJ0eSIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAg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c3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiB9Cn0pOwo=","id":"15.2.3.6-3-5","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-5.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTUwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTUwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgMCAoOC4xMC41IHN0ZXAgMy5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7IGVudW1lcmFibGU6IDAgfSk7CgogICAgICAgIGZvciAodmFyIHByb3AgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuICFhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-50","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-50.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogIC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BmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsgZW51bWVyYWJsZTogTmFOIH0pOwoKICAgICAgICBmb3IgKHZhciBwcm9wIGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-53","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-53.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTU0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTU0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYSBwb3NpdGl2ZSBudW1iZXIgKDguMTAuNSBzdGVwIDMuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgeyBlbnVtZXJhYmxlOiAxMiB9KTsKCiAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3AgPT09ICJwcm9wZXJ0eSIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-54","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-54.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTU1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTU1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYSBuZWdhdGl2ZSBudW1iZXIgKDguMTAuNSBzdGVwIDMuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgeyBlbnVtZXJhYmxlOiAtMiB9KTsKCiAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3AgPT09ICJwcm9wZXJ0eSIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-55","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-55.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTU2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTU2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYW4gZW1wdHkgc3RyaW5nICg4LjEwLjUgc3RlcCAzLmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsgZW51bWVyYWJsZTogIiIgfSk7CgogICAgICAgIGZvciAodmFyIHByb3AgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuICFhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-56","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-56.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTU3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTU3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYSBub24tZW1wdHkgc3RyaW5nICg4LjEwLjUgc3RlcCAzLmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsgZW51bWVyYWJsZTogIkFCXG5cXGNkIiB9KTsKCiAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3AgPT09ICJwcm9wZXJ0eSIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-57","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-57.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTU4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTU4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYSBGdW5jdGlvbiBvYmplY3QgKDguMTAuNSBzdGVwIDMuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgewogICAgICAgICAgICBlbnVtZXJhYmxlOiBmdW5jdGlvbiAoKSB7IH0KICAgICAgICB9KTsKCiAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3AgPT09ICJwcm9wZXJ0eSIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-58","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-58.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0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AzLmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsgZW51bWVyYWJsZTogbmV3IFN0cmluZygpIH0pOwoKICAgICAgICBmb3IgKHZhciBwcm9wIGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-60","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-60.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTYxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTYxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYSBCb29sZWFuIE9iamVjdCAoOC4xMC41IHN0ZXAgMy5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7IGVudW1lcmFibGU6IG5ldyBCb29sZWFuKCkgfSk7CgogICAgICAgIGZvciAodmFyIHByb3AgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIGFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-61","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-61.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTYyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTYyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYSBOdW1iZXIgT2JqZWN0ICg4LjEwLjUgc3RlcCAzLmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsgZW51bWVyYWJsZTogbmV3IE51bWJlcigpIH0pOwoKICAgICAgICBmb3IgKHZhciBwcm9wIGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-62","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-62.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTYzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTYzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgdGhlIE1hdGggT2JqZWN0ICg4LjEwLjUgc3RlcCAzLmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsgZW51bWVyYWJsZTogTWF0aCB9KTsKCiAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3AgPT09ICJwcm9wZXJ0eSIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-63","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-63.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTY0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTY0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYSBEYXRlIE9iamVjdCAoOC4xMC41IHN0ZXAgMy5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7IGVudW1lcmFibGU6IG5ldyBEYXRlKCkgfSk7CgogICAgICAgIGZvciAodmFyIHByb3AgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIGFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-64","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-64.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTY1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTY1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgYSBSZWdFeHAgT2JqZWN0ICg4LjEwLjUgc3RlcCAzLmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsgZW51bWVyYWJsZTogbmV3IFJlZ0V4cCgpIH0pOwoKICAgICAgICBmb3IgKHZhciBwcm9wIGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-65","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-65.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3Qoew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gYW4gQXJndW1lbnRzIE9iamVjdCAoOC4xMC41IHN0ZXAgMy5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwogICAgICAgIHZhciBhcmdPYmogPSAoZnVuY3Rpb24gKCkgeyByZXR1cm4gYXJndW1lbnRzOyB9KSgwLCAxLCAyKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgeyBlbnVtZXJhYmxlOiBhcmdPYmogfSk7CgogICAgICAgIGZvciAodmFyIHByb3AgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIGFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-68","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-68.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNi0zLTciLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy03LmpzIiwKCmRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IHRocm93cyBUeXBlRXJyb3IgaWYgZ2V0dGVyIGlzIG5vdCBjYWxsYWJsZSBidXQgbm90IHVuZGVmaW5lZCAoU3RyaW5nKSg4LjEwLjUgc3RlcCA3LmIpIiwKCnRlc3Q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JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgeyBlbnVtZXJhYmxlOiBmbkdsb2JhbE9iamVjdCgpIH0pOwoKICAgICAgICBmb3IgKHZhciBwcm9wIGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-70","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-70.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTcxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTcxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgdHJlYXRlZCBhcyB0cnVlIHdoZW4gaXQgaXMgYSBzdHJpbmcgKHZhbHVlIGlzICdmYWxzZScpICg4LjEwLjUgc3RlcCAzLmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsgZW51bWVyYWJsZTogIm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gaWYgKHByb3AgPT09ICJwcm9wZXJ0eSIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-72","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-72.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTczIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTczLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdjb25maWd1cmFibGUnIHByb3BlcnR5IGluICdBdHRyaWJ1dGVzJyBpcyBwcmVzZW50ICg4LjEwLjUgc3RlcCA0KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHZhciBhZnRlckRlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkID09PSB0cnV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Xhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOw==","id":"15.2.3.6-3-74","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-74.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTc1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTc1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdjb25maWd1cmFibGUnIHByb3BlcnR5IGluICdBdHRyaWJ1dGVzJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHsgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgewogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHZhciBhZnRlckRlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkID09PSB0cnVlICYmIGFmdGVyRGVsZXRlZCA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTs=","id":"15.2.3.6-3-75","path":"TestCases/chapter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ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICB2YXIgYWZ0ZXJEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICByZXR1cm4gYmVmb3JlRGVsZXRlZCA9PT0gdHJ1ZSAmJiBhZnRlckRlbGV0ZWQgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-77","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-77.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTc4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTc4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdjb25maWd1cmFibGUnIHByb3BlcnR5IGluICdBdHRyaWJ1dGVzJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkgKDguMTAuNSBzdGVwIDQuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHByb3RvID0geyB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJjb25maWd1cmFibGUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb25zdHJ1Y3RGdW4gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uc3RydWN0RnVuLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uc3RydWN0RnVuKCk7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGNoaWxkLCAiY29uZmlndXJhYmxlIiwgewogICAgICAgICAgICB2YWx1ZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBjaGlsZCk7CgogICAgICAgIHZhciBiZWZvcmVEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICB2YXIgYWZ0ZXJEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICByZXR1cm4gYmVmb3JlRGVsZXRlZCA9PT0gdHJ1ZSAmJiBhZnRlckRlbGV0ZWQgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-78","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-78.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTc5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTc5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdjb25maWd1cmFibGUnIHByb3BlcnR5IGluICdBdHRyaWJ1dGVzJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgKDguMTAuNSBzdGVwIDQuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7IH07CgogICAgICAgIHZhciBhdHRyID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGF0dHIsICJjb25maWd1cmFibGUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgYXR0cik7CgogICAgICAgIHZhciBiZWZvcmVEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICB2YXIgYWZ0ZXJEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICByZXR1cm4gYmVmb3JlRGVsZXRlZCA9PT0gdHJ1ZSAmJiBhZnRlckRlbGV0ZWQgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-79","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-79.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNi0zLTgiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjM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HRyaWJ1dGVzJyBpcyBhbiBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkgKDguMTAuNSBzdGVwIDQuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHByb3RvID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAiY29uZmlndXJhYmxlIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb25zdHJ1Y3RGdW4gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uc3RydWN0RnVuLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uc3RydWN0RnVuKCk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGNoaWxkKTsKCiAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHZhciBhZnRlckRlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkID09PSB0cnVlICYmIGFmdGVyRGVsZXRlZCA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-80","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-80.js"},{"code":"RVM1S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Z1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb25zdHJ1Y3RGdW4ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb25zdHJ1Y3RGdW4oKTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoY2hpbGQsICJjb25maWd1cmFibGUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgY2hpbGQpOwoKICAgICAgICB2YXIgYmVmb3JlRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgZGVsZXRlIG9iai5wcm9wZXJ0eTsKCiAgICAgICAgdmFyIGFmdGVyRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgcmV0dXJuIGJlZm9yZURlbGV0ZWQgPT09IHRydWUgJiYgYWZ0ZXJEZWxldGVkID09PSBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-82","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-82.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTgzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTgzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmV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gICAgIHZhciBDb25zdHJ1Y3RGdW4gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uc3RydWN0RnVuLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uc3RydWN0RnVuKCk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGNoaWxkKTsKCiAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHZhciBhZnRlckRlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKCiAgICAgICAgcmV0dXJuIGJlZm9yZURlbGV0ZWQgPT09IHRydWUgJiYgYWZ0ZXJEZWxldGVkID09PSB0cnVlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-85","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-85.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTg2LTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtODYtMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnQXR0cmlidXRlcycgaXMgYSBGdW5jdGlvbiBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ2NvbmZpZ3VyYWJsZScgcHJvcGVydHkgb2YgcHJvdG90eXBlIG9iamVjdCAoOC4xMC41IHN0ZXAgNC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIEZ1bmN0aW9uLnByb3RvdHlwZS5jb25maWd1cmFibGUgPSB0cnVlOwogICAgICAgICAgICB2YXIgZnVuT2JqID0gZnVuY3Rpb24gKGEsIGIpIHsKICAgICAgICAgICAgICAgIHJldHVybiBhICsgYjsKICAgICAgICAgICAgfTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGZ1bk9iaik7CgogICAgICAgICAgICB2YXIgYmVmb3JlRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgICAgICB2YXIgYWZ0ZXJEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICAgICAgcmV0dXJuIGJlZm9yZURlbGV0ZWQgPT09IHRydWUgJiYgYWZ0ZXJEZWxldGVkID09PSBmYWxzZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgRnVuY3Rpb24ucHJvdG90eXBlLmNvbmZpZ3VyYWJsZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-86-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-86-1.js"},{"code":"RVM1SGFybmVz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m9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-86","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-86.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTg3LTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtODctMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnQXR0cmlidXRlcycgaXMgYW4gQXJyYXkgb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdjb25maWd1cmFibGUnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA0LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgQXJyYXkucHJvdG90eXBlLmNvbmZpZ3VyYWJsZSA9IHRydWU7CiAgICAgICAgICAgIHZhciBhcnJPYmogPSBbMSwgMiwgM107CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBhcnJPYmopOwoKICAgICAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICAgICAgdmFyIGFmdGVyRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkID09PSB0cnVlICYmIGFmdGVyRGVsZXRlZCA9PT0gZmFsc2U7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEFycmF5LnByb3RvdHlwZS5jb25maWd1cmFibGU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-87-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-87-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTg3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTg3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhbiBBcnJheSBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ2NvbmZpZ3VyYWJsZScgcHJvcGVydHkgKDguMTAuNSBzdGVwIDQuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7IH07CgogICAgICAgIHZhciBhcnJPYmogPSBbMSwgMiwgM107CgogICAgICAgIGFyck9iai5jb25maWd1cmFibGUgPSB0cnVlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBhcnJPYmopOwoKICAgICAgICB2YXIgYmVmb3JlRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgZGVsZXRlIG9iai5wcm9wZXJ0eTsKCiAgICAgICAgdmFyIGFmdGVyRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgcmV0dXJuIGJlZm9yZURlbGV0ZWQgPT09IHRydWUgJiYgYWZ0ZXJEZWxldGVkID09PSBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-87","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-87.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTg4LTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtODgtMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnQXR0cmlidXRlcycgaXMgYSBTdHJpbmcgb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdjb25maWd1cmFibGUnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA0LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgU3RyaW5nLnByb3RvdHlwZS5jb25maWd1cmFibGUgPSB0cnVlOwogICAgICAgICAgICB2YXIgc3RyT2JqID0gbmV3IFN0cmluZygiYWJjIik7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBzdHJPYmopOwoKICAgICAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICA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JsZSA9IHRydWU7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHN0ck9iaik7CgogICAgICAgIHZhciBiZWZvcmVEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICB2YXIgYWZ0ZXJEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICByZXR1cm4gYmVmb3JlRGVsZXRlZCA9PT0gdHJ1ZSAmJiBhZnRlckRlbGV0ZWQgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-88","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-88.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTg5LTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtODktMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnQXR0cmlidXRlcycgaXMgYSBCb29sZWFuIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnY29uZmlndXJhYmxlJyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIEJvb2xlYW4ucHJvdG90eXBlLmNvbmZpZ3VyYWJsZSA9IHRydWU7CiAgICAgICAgICAgIHZhciBib29sT2JqID0gbmV3IEJvb2xlYW4odHJ1ZSk7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBib29sT2JqKTsKCiAgICAgICAgICAgIHZhciBiZWZvcmVEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICAgICAgZGVsZXRlIG9iai5wcm9wZXJ0eTsKCiAgICAgICAgICAgIHZhciBhZnRlckRlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgICAgICByZXR1cm4gYmVmb3JlRGVsZXRlZCA9PT0gdHJ1ZSAmJiBhZnRlckRlbGV0ZWQgPT09IGZhbHNlOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBCb29sZWFuLnByb3RvdHlwZS5jb25maWd1cmFibGU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-89-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-89-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTg5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTg5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIEJvb2xlYW4gb2JqZWN0IHRoYXQgdXNlcyBPYmplY3Q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lcnR5ICg4LjEwLjUgc3RlcCA0LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgTnVtYmVyLnByb3RvdHlwZS5jb25maWd1cmFibGUgPSB0cnVlOwogICAgICAgICAgICB2YXIgbnVtT2JqID0gbmV3IE51bWJlcigtMik7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBudW1PYmopOwoKICAgICAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICAgICAgdmFyIGFmdGVyRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkID09PSB0cnVlICYmIGFmdGVyRGVsZXRlZCA9PT0gZmFsc2U7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE51bWJlci5wcm90b3R5cGUuY29uZmlndXJhYmxlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-90-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-90-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTkwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTkwLm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1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtOTEtMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnQXR0cmlidXRlcycgaXMgdGhlIE1hdGggb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdjb25maWd1cmFibGUnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA0LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5wcm90b3R5cGUuY29uZmlndXJhYmxlID0gdHJ1ZTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIE1hdGgpOwoKICAgICAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICAgICAgdmFyIGFmdGVyRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkID09PSB0cnVlICYmIGFmdGVyRGVsZXRlZCA9PT0gZmFsc2U7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE9iamVjdC5wcm90b3R5cGUuY29uZmlndXJhYmxlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-91-1","path":"TestCases/chapter15/15.2/15.2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HsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-91","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-91.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTkyLTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtOTItMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnQXR0cmlidXRlcycgaXMgYSBEYXRlIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRdXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnY29uZmlndXJhYmxlJyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIERhdGUucHJvdG90eXBlLmNvbmZpZ3VyYWJsZSA9IHRydWU7CiAgICAgICAgICAgIHZhciBkYXRlT2JqID0gbmV3IERhdGUoKTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGRhdGVPYmopOwoKICAgICAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICAgICAgdmFyIGFmdGVyRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkID09PSB0cnVlICYmIGFmdGVyRGVsZXRlZCA9PT0gZmFsc2U7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIERhdGUucHJvdG90eXBlLmNvbmZpZ3VyYWJsZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-92-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-92-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTkyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTkyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhIERhdGUgb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdjb25maWd1cmFibGUnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA0LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0geyB9OwoKICAgICAgICB2YXIgZGF0ZU9iaiA9IG5ldyBEYXRlKCk7CgogICAgICAgIGRhdGVPYmouY29uZmlndXJhYmxlID0gdHJ1ZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgZGF0ZU9iaik7CgogICAgICAgIHZhciBiZWZvcmVEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBkZWxldGUgb2JqLnByb3Bl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gYmVmb3JlRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgICAgICB2YXIgYWZ0ZXJEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICAgICAgcmV0dXJuIGJlZm9yZURlbGV0ZWQgPT09IHRydWUgJiYgYWZ0ZXJEZWxldGVkID09PSBmYWxzZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgUmVnRXhwLnByb3RvdHlwZS5jb25maWd1cmFibGU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-93-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-93-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTkzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTkzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhbiBSZWdFeHAgb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdjb25maWd1cmFibGUnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA0LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0geyB9OwoKICAgICAgICB2YXIgcmVnT2JqID0gbmV3IFJlZ0V4cCgpOwoKICAgICAgICByZWdPYmouY29uZmlndXJhYmxlID0gdHJ1ZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgcmVnT2JqKTsKCiAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHZhciBhZnRlckRlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkID09PSB0cnVlICYmIGFmdGVyRGVsZXRlZCA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-93","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-93.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTk0LTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtOTQtMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnQXR0cmlidXRlcycgaXMgdGhlIEpTT04gb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdjb25maWd1cmFibGUnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA0LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5wcm90b3R5cGUuY29uZmlndXJhYmxlID0gdHJ1ZTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIEpTT04pOwoKICAgICAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICAgICAgdmFyIGFmdGVyRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkID09PSB0cnVlICYmIGFmdGVyRGVsZXRlZCA9PT0gZmFsc2U7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE9iamVjdC5wcm90b3R5cGUuY29uZmlndXJhYmxlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-3-94-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-94-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTk0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTk0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyB0aGUgSlNPTiBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ2NvbmZpZ3VyYWJsZScgcHJvcGVydHkgKDguMTAuNSBzdGVwIDQuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgSlNPTi5jb25maWd1cmFibGUgPSB0cnVlOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgSlNPTik7CgogICAgICAgICAgICB2YXIgYmVmb3JlRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgICAgICB2YXIgYWZ0ZXJEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICAgICAgcmV0dXJuIGJlZm9yZURlbGV0ZWQgPT09IHRydWUgJiYgYWZ0ZXJEZWxldGVkID09PSBmYWxzZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgSlNPTi5jb25maWd1cmFibGU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-3-94","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-94.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTk1LTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTMtOTUtMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnQXR0cmlidXRlcycgaXMgYW4gRXJyb3Igb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdjb25maWd1cmFibGUnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA0LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgRXJyb3IucHJvdG90eXBlLmNvbmZpZ3VyYWJsZSA9IHRydWU7CiAgICAgICAgICAgIHZhciBlcnJPYmogPSBuZXcgRXJyb3IoKTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIGVyck9iaik7CgogICAgICAgICAgICB2YXIgYmVmb3JlRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgICAgICB2YXIgYWZ0ZXJEZWxldGVkID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICAgICAgcmV0dXJuIGJlZm9yZURlbGV0ZWQgPT09IHRydWUgJiYgYWZ0ZXJEZWxldGVkID09PSBmYWxzZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgRXJyb3IucHJvdG90eXBlLmNvbmZpZ3VyYWJsZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-95-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-95-1.js"},{"code":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7CiAgICAgICAgICAgIGRlbGV0ZSBPYmplY3QucHJvdG90eXBlLmNvbmZpZ3VyYWJsZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-96-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-96-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi0zLTk2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi0zLTk2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdBdHRyaWJ1dGVzJyBpcyBhbiBBcmd1bWVudHMgb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldF1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICdjb25maWd1cmFibGUnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA0LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBhcmdPYmogPSAoZnVuY3Rpb24gKCkgeyByZXR1cm4gYXJndW1lbnRzOyB9KSgpOwogICAgICAgIGFyZ09iai5jb25maWd1cmFibGUgPSB0cnVlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCBhcmdPYmopOwoKICAgICAgICB2YXIgYmVmb3JlRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgZGVsZXRlIG9iai5wcm9wZXJ0eTsKCiAgIC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J0eSIpOwoKICAgICAgICAgICAgZGVsZXRlIG9iai5wcm9wZXJ0eTsKCiAgICAgICAgICAgIHZhciBhZnRlckRlbGV0ZWQgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgICAgICByZXR1cm4gYmVmb3JlRGVsZXRlZCA9PT0gdHJ1ZSAmJiBhZnRlckRlbGV0ZWQgPT09IGZhbHNlOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBmbkdsb2JhbE9iamVjdCgpLmNvbmZpZ3VyYWJsZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-3-98","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-98.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKICAgIGlkOiAiMTUuMi4zLjYtMy05OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtMy05OS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSAnY29uZmlndXJhYmxlJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgdW5kZWZpbmVkICg4LjEwLjUgc3RlcCA0LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0geyB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7IGNvbmZpZ3VyYWJsZTogdW5kZWZpbmVkIH0pOwoKICAgICAgICB2YXIgYmVmb3JlRGVsZXRlZCA9IG9iai5oYXNPd25Qc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aW5nIGVudW1lcmFibGUgdG8gdHJ1ZSBzaG91bGQgZmFpbCwgc2luY2UgW1tDb25maWd1cmFibGVdXQogIC8vIG9uIHRoZSBvcmlnaW5hbCBwcm9wZXJ0eSB3aWxsIGJlIGZhbHNlLgogIHZhciBkZXNjID0geyBnZXQ6IGdldHRlciwgZW51bWVyYWJsZTogdHJ1ZSB9OwoKICB0cnkgewogICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG8sICJmb28iLCBkZXNjKTsKICB9CiAgY2F0Y2ggKGUpIHsKICAgIGlmIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKSB7CiAgICAgIC8vIHRoZSBwcm9wZXJ0eSBzaG91bGQgcmVtYWluIHVuY2hhbmdlZC4KICAgICAgdmFyIGQyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvLCAiZm9vIik7CiAgICAgIGlmIChkMi5nZXQgPT09IGdldHRlciAmJgogICAgICAgICAgZDIuZW51bWVyYWJsZSA9PT0gZmFsc2UgJiYKICAgICAgICAgIGQyLmNvbmZpZ3VyYWJsZSA9PT0gZmFsc2UpIHsKICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgfQogICAgfQogIH0KIH0sCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKIH0KfSk7Cg==","id":"15.2.3.6-4-10","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-10.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTEwMCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xMDAuanMiLAoKICAg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OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCB1bmRlZmluZWQsIHRydWUsIGZhbHNlLCB0cnVlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-103","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-103.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTEwNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xMDQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ25hbWUnIGFuZCAnZGVzYycgYXJlIGRhdGEgcHJvcGVydGllcywgbmFtZS5lbnVtZXJhYmxlIGFuZCBkZXNjLmVudW1lcmFibGUgYXJlIGRpZmZlcmVudCB2YWx1ZXMgKDguMTIuOSBzdGVwIDEyKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIHVuZGVmaW5lZCwgZmFsc2UsIHRydWUsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-104","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-104.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTEwNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xMDUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ25hbWUnIGFuZCAnZGVzYycgYXJlIGRhdGEgcHJvcGVydGllcywgbmFtZS5jb25maWd1cmFibGUgPSB0cnVlIGFuZCBkZXNjLmNvbmZpZ3VyYWJsZSA9IGZhbHNlICg4LjEyLjkgc3RlcCAxMikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIHZhbHVlOiAyMDAsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUgCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICAKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgMjAwLCB0cnVlLCB0cnVlLCBmYWxzZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-105","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-105.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTEwNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xMDYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ25hbWUnIGFuZCAnZGVzYycgYXJlIGRhdGEgcHJvcGVydGllcywgc2V2ZXJhbCBhdHRyaWJ1dGVzIHZhbHVlcyBvZiBuYW1lIGFuZCBkZXNjIGFyZSBkaWZmZXJlbnQgKDguMTIuOSBzdGVwIDEyKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsgCiAgICAgICAgICAgIHZhbHVlOiAxMDAsIAogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwgCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsIAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUgCiAgICAgICAgfSk7CiAgICAgICAgCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsgCiAgICAgICAgICAgIHZhbHVlOiAyMDAsIAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsIAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSAKICAgICAgICB9KTsKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgMjAwLCBmYWxzZSwgZmFsc2UsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-106","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-106.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTEwNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xMDcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ25hbWUnIGFuZCAnZGVzYycgYXJlIGFjY2Vzc29yIHByb3BlcnRpZXMsIGJvdGggZGVzYy5bW0dldF1dIGFuZCBuYW1lLltbR2V0XV0gYXJlIHR3byBkaWZmZXJlbnQgdmFsdWVzICg4LjEyLjkgc3RlcCAxMikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIGZ1bmN0aW9uIGdldEZ1bmMoKSB7CiAgICAgICAgICAgIHJldHVybiAxMDsKICAgICAgICB9CgogICAgICAgIGZ1bmN0aW9uIHNldEZ1bmModmFsdWUpIHsKICAgICAgICAgICAgb2JqLnNldFZlcmlmeUhlbHBQcm9wID0gdmFsdWU7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIGZ1bmN0aW9uIGdldEZ1bmMyKCkgewogICAgICAgICAgICByZXR1cm4gMjA7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMyCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCBnZXRGdW5jMiwgc2V0RnVuYywgInNldFZlcmlmeUhlbHBQcm9wIiwgZmFsc2UsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-107","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-107.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTEwOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMT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1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-108","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-108.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTEwOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xMDkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ25hbWUnIGFuZCAnZGVzYycgYXJlIGFjY2Vzc29yIHByb3BlcnRpZXMsIG5hbWUuW1tHZXRdXSBpcyB1bmRlZmluZWQgYW5kIGRlc2MuW1tHZXRdXSBpcyBmdW5jdGlvbiAoOC4xMi45IHN0ZXAgMTIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIGZ1bmN0aW9uIHNldEZ1bmModmFsdWUpIHsKICAgICAgICAgICAgb2JqLnNldFZlcmlmeUhlbHBQcm9wID0gdmFsdWU7CiAgICAgICAgfQogICAgICAgCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBnZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIGZ1bmN0aW9uIGdldEZ1bmMoKSB7CiAgICAgICAgICAgIHJldHVybiAxMDsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ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xlOiBmYWxzZSB9OwogIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvLCAiZm9vIiwgZDEpOwoKICAvLyBub3csIHNldHRpbmcgZW51bWVyYWJsZSB0byB0cnVlIHNob3VsZCBmYWlsLCBzaW5jZSBbW0NvbmZpZ3VyYWJsZV1dCiAgLy8gb24gdGhlIG9yaWdpbmFsIHByb3BlcnR5IHdpbGwgYmUgZmFsc2UuCiAgdmFyIGRlc2MgPSB7IGdldDogZ2V0dGVyLCBlbnVtZXJhYmxlOiBmYWxzZSB9OwoKICB0cnkgewogICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG8sICJmb28iLCBkZXNjKTsKICB9CiAgY2F0Y2ggKGUpIHsKICAgIGlmIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKSB7CiAgICAgIC8vIHRoZSBwcm9wZXJ0eSBzaG91bGQgcmVtYWluIHVuY2hhbmdlZC4KICAgICAgdmFyIGQyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvLCAiZm9vIik7CiAgICAgIGlmIChkMi5nZXQgPT09IGdldHRlciAmJgogICAgICAgICAgZDIuZW51bWVyYWJsZSA9PT0gdHJ1ZSAmJgogICAgICAgICAgZDIuY29uZmlndXJhYmxlID09PSBmYWxzZSkgewogICAgICAgIHJldHVybiB0cnVlOwogICAgICB9CiAgICB9CiAgfQogfSwKCnByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogfQp9KTsK","id":"15.2.3.6-4-11","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-11.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTExMCIsCgogICAgcGF0aDogIlRlc3RDYXNl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c3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-110","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-110.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTExMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xMTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5ICAtICduYW1lJyBhbmQgJ2Rlc2MnIGFyZSBhY2Nlc3NvciBwcm9wZXJ0aWVzLCBuYW1lLltbU2V0XV0gaXMgcHJlc2VudCBhbmQgZGVzYy5bW1NldF1dIGlzIHVuZGVmaW5lZCAoOC4xMi45IHN0ZXAgMTIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBmdW5jdGlvbiBnZXRGdW5jKCkgewogICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgfQoKICAgICAgICBmdW5jdGlvbiBzZXRGdW5jKHZhbHVlKSB7CiAgICAgICAgICAgIG9iai5zZXRWZXJpZnlIZWxwUHJvcCA9IHZhbHVlOwogICAgICAgIH0KCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICBzZXQ6IHVuZGVmaW5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vcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgZnVuY3Rpb24gc2V0RnVuYyh2YWx1ZSkgewogICAgICAgICAgICBvYmouc2V0VmVyaWZ5SGVscFByb3AgPSB2YWx1ZTsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIHNldDogc2V0RnVuYwogICAgICAgIH0pOwogICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgZ2V0RnVuYywgc2V0RnVuYywgInNldFZlcmlmeUhlbHBQcm9wIiwgdHJ1ZSwgdHJ1ZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-112","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-112.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTExMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xMTMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ25hbWUnIGFuZCAnZGVzYycgYXJlIGFjY2Vzc29yIHByb3BlcnRpZXMsIG5hbWUuZW51bWVyYWJsZSBhbmQgZGVzYy5lbnVtZXJhYmxlIGFyZSBkaWZmZXJlbnQgdmFsdWVzICg4LjEyLjkgc3RlcCAxMikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIGZ1bmN0aW9uIGdldEZ1bmMoKSB7CiAgICAgICAgICAgIHJldHVybiAxMDsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCBnZXRGdW5jLCB1bmRlZmluZWQsIHVuZGVmaW5lZCwgZmFsc2UsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-113","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-113.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTExNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zL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mplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-114","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-114.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTExNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xMTUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ25hbWUnIGFuZCAnZGVzYycgYXJlIGFjY2Vzc29yIHByb3BlcnRpZXMsIHNldmVyYWwgYXR0cmlidXRlcyB2YWx1ZXMgb2YgJ25hbWUnIGFuZCAnZGVzYycgYXJlIGRpZmZlcmVudCAoOC4xMi45IHN0ZXAgMTIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBmdW5jdGlvbiBnZXRGdW5jMSgpIHsKICAgICAgICAgICAgcmV0dXJuIDEwOwogICAgICAgIH0KICAgICAgICBmdW5jdGlvbiBzZXRGdW5jMSgpIHt9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYzEsCiAgICAgICAgICAgIHNldDogc2V0RnVuYzEsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBmdW5jdGlvbiBnZXRGdW5jMigpIHsKICAgICAgICAgICAgcmV0dXJuIDIwOwogICAgICAgIH0KICAgICAgICBmdW5jdGlvbiBzZXRGdW5jMih2YWx1ZSkgewogICAgICAgICAgICBvYmouc2V0VmVyaWZ5SGVscFByb3AgPSB2YWx1ZTsKICAgICAgICB9CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jMiwKICAgICAgICAgICAgc2V0OiBzZXRGdW5jMiwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICByZXR1cm4gYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIGdldEZ1bmMyLCBzZXRGdW5jMiwgInNldFZlcmlmeUhlbHBQcm9wIiwgZmFsc2UsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-115","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-115.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xMTYiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTE2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgdGVzdCB0aGUgbGVuZ3RoIHByb3BlcnR5IG9mICdPJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSAoMTUuNC41LjEgc3RlcCAxKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnJPYmogPSBbMCwgMV07CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjEiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgImxlbmd0aCIsIHsgdmFsdWU6IDEgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihhcnJPYmosICJsZW5ndGgiKTsKCiAgICAgICAgICAgIHJldHVybiBPYmplY3QuaGFzT3duUHJvcGVydHkuY2FsbChhcnJPYmosICJsZW5ndGgiKSAmJiBkZXNjLnZhbHVlID09PSAyICYmCiAgICAgICAgICAgICAgICBkZXNjLndyaXRhYmxlID09PSB0cnVlICYmIGRlc2MuY29uZmlndXJhYmxlID09PSBmYWxzZSAmJiBkZXNjLmVudW1lcmFibGUgPT09IGZhbHNlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cgp9KTsK","id":"15.2.3.6-4-116","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-116.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xMTciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTE3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgdGVzdCB0aGUgbGVuZ3RoIHByb3BlcnR5IG9mICdPJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgZGF0YSBwcm9wZXJ0eSAoMTUuNC41LjEgc3RlcCAxKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyck9iaiA9IFswLCAxLCAyXTsKICAgICAgICB2YXIgYXJyUHJvdG9MZW47CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIGFyclByb3RvTGVuID0gQXJyYXkucHJvdG90eXBlLmxlbmd0aDsKICAgICAgICAgICAgQXJyYXkucHJvdG90eXBlLmxlbmd0aCA9IDA7CgogICAgICAgICAgICAKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjIiLCB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBhcnJPYmoubGVuZ3RoID09PSAzICYmIEFycmF5LnByb3RvdHlwZS5sZW5ndGggPT09IDA7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgQXJyYXkucHJvdG90eXBlLmxlbmd0aCA9IGFyclByb3RvTGVuOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cgp9KTsK","id":"15.2.3.6-4-117","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-117.js"},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qZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHZhciB2ZXJpZnlWYWx1ZSA9IGZhbHNlOwogICAgICAgIGlmIChhcnJPYmoubGVuZ3RoID09PSAwKSB7CiAgICAgICAgICAgIHZlcmlmeVZhbHVlID0gdHJ1ZTsKICAgICAgICB9CgogICAgICAgIGFyck9iai5sZW5ndGggPSAyOwogICAgICAgIHZhciB2ZXJpZnlXcml0YWJsZSA9IGFyck9iai5sZW5ndGggPT09IDIgPyB0cnVlIDogZmFsc2U7CgogICAgICAgIHZhciB2ZXJpZnlFbnVtZXJhYmxlID0gZmFsc2U7CiAgICAgICAgZm9yICh2YXIgcCBpbiBhcnJPYmopIHsKICAgICAgICAgICAgaWYgKHAgPT09ICJsZW5ndGgiICYmIGFyck9iai5oYXNPd25Qcm9wZXJ0eShwKSkgewogICAgICAgICAgICAgICAgdmVyaWZ5RW51bWVyYWJsZSA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIGRlbGV0ZSBhcnJPYmoubGVuZ3RoOwogICAgICAgIHZhciB2ZXJpZnlDb25maWd1cmFibGUgPSBhcnJPYmouaGFzT3duUHJvcGVydHkoImxlbmd0aCIpOwoKICAgICAgICByZXR1cm4gdmVyaWZ5VmFsdWUgJiYgdmVyaWZ5V3JpdGFibGUgJiYgIXZlcmlmeUVudW1lcmFibGUgJiYgdmVyaWZ5Q29uZmlndXJhYmxlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.6-4-119","path":"T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LAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAyOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.6-4-122","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-122.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xMjMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTIzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBhYnNlbnQsIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHVwZGF0aW5nIHRoZSBbW1dyaXRhYmxlXV0gYXR0cmlidXRlIG9mIHRoZSBsZW5ndGggcHJvcGVydHkgZnJvbSBmYWxzZSB0byB0cnVlICgxNS40LjUuMSBzdGVwIDMuYS5pKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnJPYmogPSBbXTsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAibGVuZ3RoIiwgewogICAgICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAibGVuZ3RoIiwgewogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cg==","id":"15.2.3.6-4-123","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-123.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xMjQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTI0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcy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GVzYycgaXMgdW5kZWZpbmVkICgxNS40LjUuMSBzdGVwIDMuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogdW5kZWZpbmVkCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFJhbmdlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.6-4-125","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-125.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xMjYiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTI2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIG51bGwgKDE1LjQuNS4xIHN0ZXAgMy5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnJPYmogPSBbMCwgMV07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgIHZhbHVlOiBudWxsCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFyck9iai5sZW5ndGggPT09IDA7CgogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.6-4-126","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-126.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xMjciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTI3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGEgYm9vbGVhbiB3aXRoIHZhbHVlIGZhbHNlICgxNS40LjUuMSBzdGVwIDMuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gWzAsIDFdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAibGVuZ3RoIiwgewogICAgICAgICAgICB2YWx1ZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICByZXR1cm4gYXJyT2JqLmxlbmd0aCA9PT0gMCAmJiAhYXJyT2JqLmhhc093blByb3BlcnR5KCIwIikgJiYgIWFyck9iai5oYXNPd25Qcm9wZXJ0eSgiMSIpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cgp9KTsK","id":"15.2.3.6-4-127","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-127.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xMjgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTI4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICAnTycgaXMgYW4gQXJyYXksICduYW1lJyBpcyB0aGUgbGVuZ3RoIHByb3BlcnR5IG9mICdPJywgdGVzdCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBhIGJvb2xlYW4gd2l0aCB2YWx1ZSB0cnVlICgxNS40LjUuMSBzdGVwIDMuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgIHZhbHVlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFyck9iai5sZW5ndGggPT09IDE7CgogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.6-4-128","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6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JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.6-4-130","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-130.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xMzEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTMxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IFJhbmdlRXJyb3IgZXhjZXB0aW9uIGlzIG5vdCB0aHJvd24gd2hlbiB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyAtMCAoMTUuNC41LjEgc3RlcCAzLmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyck9iaiA9IFswLCAxXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgdmFsdWU6IC0wCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFyck9iai5sZW5ndGggPT09IDA7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cg==","id":"15.2.3.6-4-131","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-131.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xMzIiLAoKICA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SwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IFJhbmdlRXJyb3IgZXhjZXB0aW9uIGlzIHRocm93biB3aGVuIHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGEgbmVnYXRpdmUgbnVtYmVyICgxNS40LjUuMSBzdGVwIDMuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogLTkKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgUmFuZ2VFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cg==","id":"15.2.3.6-4-133","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-133.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xMzQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTM0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IFJhbmdlRXJyb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gICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgIHZhbHVlOiAiMiIKICAgICAgICB9KTsKICAgICAgICByZXR1cm4gYXJyT2JqLmxlbmd0aCA9PT0gMjsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cg==","id":"15.2.3.6-4-137","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-137.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xMzgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTM4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IFJhbmdlRXJyb3IgZXhjZXB0aW9uIGlzIHRocm93biB3aGVuIHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGEgc3RyaW5nIGNvbnRhaW5pbmcgYSBuZWdhdGl2ZSBudW1iZXIgKDE1LjQuNS4xIHN0ZXAgMy5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnJPYmogPSBbXTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAiLTQyIgogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBSYW5nZUVycm9yOwogICAgICAgIH0KCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cg==","id":"15.2.3.6-4-138","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-138.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xMzkiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTM5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IFJhbmdlRXJyb3IgZXhjZXB0aW9uIGlzIHRocm93biB3aGVuIHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGEgc3RyaW5nIGNvbnRhaW5pbmcgYSBkZWNpbWFsIG51bWJlciAoMTUuNC41LjEgc3RlcCAzLmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyck9iaiA9IFtdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAibGVuZ3RoIiwgewogICAgICAgICAgICAgICAgdmFsdWU6ICIyMDAuNTkiCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4g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XB0aW9uIGlzIHRocm93biB3aGVuIHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGEgc3RyaW5nIGNvbnRhaW5pbmcgK0luZmluaXR5ICgxNS40LjUuMSBzdGVwIDMuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogIitJbmZpbml0eSIKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgUmFuZ2VFcnJvcjsKICAgICAgICB9CgogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOw==","id":"15.2.3.6-4-140","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-140.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNDEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTQxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IFJhbmdlRXJyb3IgZXhjZXB0aW9uIGlzIHRocm93biB3aGVuIHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGEgc3RyaW5nIGNvbnRhaW5pbmcgLUluZmluaXR5ICgxNS40LjUuMSBzdGVwIDMuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogIi1JbmZpbml0eSIKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgUmFuZ2VFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cgo=","id":"15.2.3.6-4-141","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-141.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNDIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTQyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGEgc3RyaW5nIGNvbnRhaW5pbmcgYW4gZXhwb25lbnRpYWwgbnVtYmVyICgxNS40LjUuMSBzdGVwIDMuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgIHZhbHVlOiAiMkUzIgogICAgICAgIH0pOwogICAgICAgIHJldHVybiBhcnJPYmoubGVuZ3RoID09PSAyRTM7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cg==","id":"15.2.3.6-4-142","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-142.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNDMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTQzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGEgc3RyaW5nIGNvbnRhaW5pbmcgYSBoZXggbnVtYmVyICgxNS40LjUuMSBzdGVwIDMuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgIHZhbHVlOiAiMHgwMEIiCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFyck9iai5sZW5ndGggPT09IDB4MDBCOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.6-4-143","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-143.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNDQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTQ0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGEgc3RyaW5nIGNvbnRhaW5pbmcgYSBudW1iZXIgd2l0aCBsZWFkaW5nIHplcm9zICgxNS40LjUuMSBzdGVwIDMuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgIHZhbHVlOiAiMDAwMi4wIgogICAgICAgIH0pOwogICAgICAgIHJldHVybiBhcnJPYmoubGVuZ3RoID09PSAyOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.6-4-144","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-144.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNDUiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTQ1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IFJhbmdlRXJyb3IgZXhjZXB0aW9uIGlzIHRocm93biB3aGVuIHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGEgc3RyaW5nIHdoaWNoIGRvZXNuJ3QgY29udmVydCB0byBhIG51bWJlciAoMTUuNC41LjEgc3RlcCAzLmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyck9iaiA9IFtdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAibGVuZ3RoIiwgewogICAgICAgICAgICAgICAgdmFsdWU6ICJ0d28iCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFJhbmdlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.6-4-145","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-145.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNDYiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTQ2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGFuIG9iamVjdCB3aGljaCBoYXMgYW4gb3duIHRvU3RyaW5nIG1ldGhvZCAoMTUuNC41LjEgc3RlcCAzLmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyck9iaiA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAibGVuZ3RoIiwgewogICAgICAgICAgICB2YWx1ZTogewogICAgICAgICAgICAgICAgdG9TdHJpbmc6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gJzInOwogICAgICAgICAgICAgICAgfSAKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBhcnJPYmoubGVuZ3RoID09PSAyOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cgp9KTsK","id":"15.2.3.6-4-146","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-146.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNDciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTQ3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGFuIE9iamVjdCB3aGljaCBoYXMgYW4gb3duIHZhbHVlT2YgbWV0aG9kICgxNS40LjUuMSBzdGVwIDMuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgIHZhbHVlOiB7CiAgICAgICAgICAgICAgICB2YWx1ZU9mOiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDI7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gYXJyT2JqLmxlbmd0aCA9PT0gMjsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cg==","id":"15.2.3.6-4-147","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-147.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNDgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcj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ICB0b1N0cmluZ0FjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gJzInOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICB2YWx1ZU9mOiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWVPZkFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gMzsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBhcnJPYmoubGVuZ3RoID09PSAzICYmICF0b1N0cmluZ0FjY2Vzc2VkICYmIHZhbHVlT2ZBY2Nlc3NlZDsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cg==","id":"15.2.3.6-4-149","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-149.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNi00LTE1IiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTUuanMiLAoKZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgcGVybWl0cyBjaGFuZ2luZyBhY2Nlc3NvciBwcm9wZXJ0eSB0byBkYXRhIHByb3BlcnR5IGZvciBjb25maWd1cmFibGUgcHJvcGVydGllcyIsCgp0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICB2YXIgbyA9IHt9OwoKICAvLyBkZWZpbmUgYW4gYWNjZXNzb3IgcHJvcGVydHkKICAvLyBkdW1teSBnZXR0ZXIKICB2YXIgZ2V0dGVyID0gZnVuY3Rpb24gKCkgey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CiAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlT2ZBY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB7fTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CgogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgdG9TdHJpbmdBY2Nlc3NlZCAmJiB2YWx1ZU9mQWNjZXNzZWQ7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.6-4-150","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-150.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTUxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCBhbmQgdGhlIFtbVmFsdWVdXSBmaWVsZCBvZiAnZGVzYycgaXMgYW4gT2JqZWN0IHdpdGggYW4gb3duIHRvU3RyaW5nIG1ldGhvZCBhbmQgYW4gaW5oZXJpdGVkIHZhbHVlT2YgbWV0aG9kICgxNS40LjUuMSBzdGVwIDMuYyksIHRlc3QgdGhhdCB0aGUgaW5oZXJpdGVkIHZhbHVlT2YgbWV0aG9kIGlzIHVzZWQiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CiAgICAgICAgdmFyIHRvU3RyaW5nQWNjZXNzZWQgPSBmYWxzZTsKICAgICAgICB2YXIgdmFsdWVPZkFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIHZhciBwcm90byA9IHsKICAgICAgICAgICAgdmFsdWVPZjogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgdmFsdWVPZkFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgICAgIHJldHVybiAyOwogICAgICAgICAgICB9CiAgICAgICAgfTsKCiAgICAgICAgdmFyIENvbnN0cnVjdEZ1biA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb25zdHJ1Y3RGdW4ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb25zdHJ1Y3RGdW4oKTsKICAgICAgICBjaGlsZC50b1N0cmluZyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgdG9TdHJpbmdBY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIHJldHVybiAzOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgIHZhbHVlOiBjaGlsZAogICAgICAgIH0pOwogICAgICAgIHJldHVybiBhcnJPYmoubGVuZ3RoID09PSAyICYmICF0b1N0cmluZ0FjY2Vzc2VkICYmIHZhbHVlT2ZBY2Nlc3NlZDsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cg==","id":"15.2.3.6-4-151","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-151.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNTIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTUyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCAgdGVzdCBSYW5nZUVycm9yIGlzIHRocm93biB3aGVuIHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGEgcG9zaXRpdmUgbm9uLWludGVnZXIgdmFsdWVzICgxNS40LjUuMSBzdGVwIDMuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTIzLjUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFJhbmdlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.6-4-152","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-152.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNTMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTUzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCAgdGVzdCBSYW5nZUVycm9yIGlzIHRocm93biB3aGVuIHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGEgbmVnYXRpdmUgbm9uLWludGVnZXIgdmFsdWVzICgxNS40LjUuMSBzdGVwIDMuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogLTQyOTQ5NjcyOTQuNQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgUmFuZ2VFcnJvcjsKICAgICAgICB9CgogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.6-4-153","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-153.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNTQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlc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gpIHsKCiAgICAgICAgdmFyIGFyck9iaiA9IFtdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAibGVuZ3RoIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDQyOTQ5NjcyOTYKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgUmFuZ2VFcnJvcjsKICAgICAgICB9CgogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.6-4-156","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-156.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNTciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTU3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IFJhbmdlRXJyb3IgaXMgdGhyb3duIHdoZW4gdGhlIFtbVmFsdWVdXSBmaWVsZCBvZiAnZGVzYycgaXMgYm91bmRhcnkgdmFsdWUgMl4zMiArIDEgKDE1LjQuNS4xIHN0ZXAgMy5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnJPYmogPSBbXTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT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ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBncmVhdGVyIHRoYW4gdmFsdWUgb2YgdGhlIGxlbmd0aCBwcm9wZXJ0eSwgdGVzdCBUeXBlRXJyb3IgaXMgdGhyb3duIHdoZW4gdGhlIGxlbmd0aCBwcm9wZXJ0eSBpcyBub3Qgd3JpdGFibGUgKDE1LjQuNS4xIHN0ZXAgMy5mLmkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyck9iaiA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAibGVuZ3RoIiwgewogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMgogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.6-4-162","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-162.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNjMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTYzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBlcXVhbHMgdG8gdmFsdWUgb2YgdGhlIGxlbmd0aCBwcm9wZXJ0eSwgdGVzdCBubyBUeXBlRXJyb3IgaXMgdGhyb3duIHdoZW4gdGhlIGxlbmd0aCBwcm9wZXJ0eSBpcyBub3Qgd3JpdGFibGUgKDE1LjQuNS4xIHN0ZXAgMy5mLmkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyck9iaiA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAibGVuZ3RoIiwgewogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAwCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cg==","id":"15.2.3.6-4-163","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-163.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNjQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTY0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBsZXNzIHRoYW4gdmFsdWUgb2YgIHRoZSBsZW5ndGggcHJvcGVydHksIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHRoZSBbW1dyaXRhYmxlXV0gYXR0cmlidXRlIG9mIHRoZSBsZW5ndGggcHJvcGVydHkgaXMgZmFsc2UgKDE1LjQuNS4xIHN0ZXAgMy5nKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnJPYmogPSBbMCwgMV07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAibGVuZ3RoIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDAKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cgp9KTsK","id":"15.2.3.6-4-164","path":"TestCases/chapter15/15.2/15.2.3/15.2.3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ICAgICAgICB2YXIgYXJyT2JqID0gWzAsIDFdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAibGVuZ3RoIiwgewogICAgICAgICAgICB2YWx1ZTogMSwKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBpbmRleERlbGV0ZWQgPSAhYXJyT2JqLmhhc093blByb3BlcnR5KCIxIik7CgogICAgICAgIGFyck9iai5sZW5ndGggPSAxMDsKCiAgICAgICAgcmV0dXJuIGluZGV4RGVsZXRlZCAmJiBhcnJPYmoubGVuZ3RoID09PSAxOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.6-4-167","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-167.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNjgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTY4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB3aG9zZSB3cml0YWJsZSBhdHRyaWJ1dGUgaXMgYmVpbmcgY2hhbmdlZCB0byBmYWxzZSBhbmQgdGhlIFtbVmFsdWVdXSBmaWVsZCBvZiAnZGVzYycgaXMgbGVzcyB0aGFuIHZhbHVlIG9mICB0aGUgbGVuZ3RoIHByb3BlcnR5IGFuZCBhbHNvIGxlc3NlciB0aGFuIGFuIGluZGV4IG9mIHRoZSBhcnJheSB3aGljaCBpcyBzZXQgdG8gY29uZmlndXJhYmxlOmZhbHNlLCB0ZXN0IHRoYXQgbmV3IGxlbmd0aCBpcyBzZXQgdG8gYSB2YWx1ZSBncmVhdGVyIHRoYW4gdGhlIG5vbi1kZWxldGFibGUgaW5kZXggYnkgMSwgd3JpdGFibGUgYXR0cmlidXRlIG9mIGxlbmd0aCBpcyBzZXQgdG8gZmFsc2UgYW5kIFR5cGVFcnJvciBleGNlcHRpb24gaXMgdGhyb3duICgxNS40LjUuMSBzdGVwIDMuaS5paWkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyck9iaiA9IFswLCAxLCAyXTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjEiLCB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAwLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBhcnJPYmoubGVuZ3RoID09PSAyOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cgp9KTsK","id":"15.2.3.6-4-168","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-168.js"},{"code":"RVM1SGFybmVzcy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AiZm9vIiBzaG91bGQgZmFpbCwgc2luY2UgYm90aAogIC8vIFtbQ29uZmlndXJhYmxlXV0gYW5kIFtbV3JpdGFibGVdXSBvbiB0aGUgb3JpZ2luYWwgcHJvcGVydHkgd2lsbCBiZSBmYWxzZS4KICB2YXIgZGVzYyA9IHsgdmFsdWU6IDEwMiB9OwoKICB0cnkgewogICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG8sICJmb28iLCBkZXNjKTsKICB9CiAgY2F0Y2ggKGUpIHsKICAgIGlmIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKSB7CiAgICAgIC8vIHRoZSBwcm9wZXJ0eSBzaG91bGQgcmVtYWluIHVuY2hhbmdlZC4KICAgICAgdmFyIGQyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvLCAiZm9vIik7CgogICAgICBpZiAoZDIudmFsdWUgPT09IDEwMSAmJgogICAgICAgICAgZDIud3JpdGFibGUgPT09IGZhbHNlICYmCiAgICAgICAgICBkMi5lbnVtZXJhYmxlID09PSBmYWxzZSAmJgogICAgICAgICAgZDIuY29uZmlndXJhYmxlID09PSBmYWxzZSkgewogICAgICAgIHJldHVybiB0cnVlOwogICAgICB9CiAgICB9CiAgfQogfSwKCnByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogfQp9KTsK","id":"15.2.3.6-4-17","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-17.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNzAiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTcw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HRyaWJ1dGUgb2YgcHJvcGVydHkgIjEiIHRvIGZhbHNlIGhlcmUsIHNpbmNlIEFycmF5LnByb3RvdHlwZSBpcyBhIGdsb2JhbCBvYmplY3QsIGFuZCBub24tY29uZmlndXJiYWxlIHByb3BlcnR5IGNhbid0IHJldmVydCB0byBjb25maWd1cmFibGUKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gYXJyT2JqLmxlbmd0aCA9PT0gMSAmJiAhYXJyT2JqLmhhc093blByb3BlcnR5KCIxIik7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEFycmF5LnByb3RvdHlwZVsxXTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cg==","id":"15.2.3.6-4-171","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-171.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNzIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTcyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBsZXNzIHRoYW4gdmFsdWUgb2YgIHRoZSBsZW5ndGggcHJvcGVydHksIHRlc3QgdGhlIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIG9mIG93biBkYXRhIHByb3BlcnR5IHdpdGggbGFyZ2UgaW5kZXggbmFtZWQgaW4gJ08nIHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBkYXRhIHByb3BlcnR5IGNhbiBzdG9wIGRlbGV0aW5nIGluZGV4IG5hbWVkIHByb3BlcnRpZXMgKDE1LjQuNS4xIHN0ZXAgMy5sLmlpKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnJPYmogPSBbMCwgMV07CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjEiLCB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICAKICAgICAgICAgICAgQXJyYXkucHJvdG90eXBlWzFdID0gMjsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBhcnJPYmoubGVuZ3RoID09PSAyICYmIGFyck9iai5oYXNPd25Qcm9wZXJ0eSgiMSIpOyAKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlWzFdOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cgp9KTsK","id":"15.2.3.6-4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ICAgICAgICAgcmV0dXJuIDI7CiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgYXJyT2JqLmxlbmd0aCA9PT0gMiAmJiBhcnJPYmouaGFzT3duUHJvcGVydHkoIjEiKTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlWzFdOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cgp9KTsK","id":"15.2.3.6-4-173","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-173.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNzQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTc0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBsZXNzIHRoYW4gdmFsdWUgb2YgIHRoZSBsZW5ndGggcHJvcGVydHksIHRlc3QgdGhlIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIG9mIG93biBhY2Nlc3NvciBwcm9wZXJ0eSB3aXRoIGxhcmdlIGluZGV4IG5hbWVkIGluICdPJyBjYW4gc3RvcCBkZWxldGluZyBpbmRleCBuYW1lZCBwcm9wZXJ0aWVzICgxNS40LjUuMSBzdGVwIDMubC5paSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gWzAsIDFdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMSIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAxOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAibGVuZ3RoIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDEKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBhcnJPYmoubGVuZ3RoID09PSAyICYmIGFyck9iai5oYXNPd25Qcm9wZXJ0eSgiMSIpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cgp9KTsK","id":"15.2.3.6-4-174","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-174.js"},{"code":"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SBnbG9iYWwgb2JqZWN0LCBhbmQgbm9uLWNvbmZpZ3VyYmFsZSBwcm9wZXJ0eSBjYW4ndCByZXZlcnQgdG8gY29uZmlndXJhYmxlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGFyck9iai5sZW5ndGggPT09IDEgJiYgIWFyck9iai5oYXNPd25Qcm9wZXJ0eSgiMSIpOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBBcnJheS5wcm90b3R5cGVbMV07CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.6-4-175","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-175.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNzYiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTc2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBsZXNzIHRoYW4gdmFsdWUgb2YgIHRoZSBsZW5ndGggcHJvcGVydHksIHRlc3QgdGhlIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIG9mIG93biBhY2Nlc3NvciBwcm9wZXJ0eSB3aXRoIGxhcmdlIGluZGV4IG5hbWVkIGluICdPJyB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgZGF0YSBwcm9wZXJ0eSBjYW4gc3RvcCBkZWxldGluZyBpbmRleCBuYW1lZCBwcm9wZXJ0aWVzICgxNS40LjUuMSBzdGVwIDMubC5paSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gWzAsIDFdOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIxIiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDI7CiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgCiAgICAgICAgICAgIEFycmF5LnByb3RvdHlwZVsxXSA9IDI7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgYXJyT2JqLmxlbmd0aCA9PT0gMiAmJiBhcnJPYmouaGFzT3duUHJvcGVydHkoIjEiKTsgCiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEFycmF5LnByb3RvdHlwZVsxXTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cg==","id":"15.2.3.6-4-176","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-176.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNzciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTc3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBsZXNzIHRoYW4gdmFsdWUgb2YgIHRoZSBsZW5ndGggcHJvcGVydHksIHRlc3QgdGhlIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIG9mIG93biBhY2Nlc3NvciBwcm9wZXJ0eSB3aXRoIGxhcmdlIGluZGV4IG5hbWVkIGluICdPJyB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkgY2FuIHN0b3AgZGVsZXRpbmcgaW5kZXggbmFtZWQgcHJvcGVydGllcyAoMTUuNC41LjEgc3RlcCAzLmwuaWkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyck9iaiA9IFswLCAxXTsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMSIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAxOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIAogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoQXJyYXkucHJvdG90eXBlLCAiMSIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAyOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgYXJyT2JqLmxlbmd0aCA9PT0gMiAmJiBhcnJPYmouaGFzT3duUHJvcGVydHkoIjEiKTsgCiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEFycmF5LnByb3RvdHlwZVsxXTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cg==","id":"15.2.3.6-4-177","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-177.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xNzgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTc4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVj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9mICdPJywgdGhlIFtbVmFsdWVdXSBmaWVsZCBvZiAnZGVzYycgaXMgZ3JlYXRlciB0aGFuIHZhbHVlIG9mICB0aGUgbGVuZ3RoIHByb3BlcnR5LCB0ZXN0IHZhbHVlIG9mIHRoZSBsZW5ndGggcHJvcGVydHkgaXMgc2FtZSBhcyBbW1ZhbHVlXV0gKDE1LjQuNS4xIHN0ZXAgMy5sLmlpaS4xKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyck9iaiA9IFswLCAxLCAyLCAzXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjEiLCB7CiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgdmFsdWU6IDMKICAgICAgICB9KTsgICAgICAgICAgCgogICAgICAgIHJldHVybiBhcnJPYmoubGVuZ3RoID09PSAzOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.6-4-179-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-179-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNi00LTE4IiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTguanMiLAoKZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgdGhyb3dzIFR5cGVFcnJvciB3aGVuIGNoYW5naW5nIHNldHRlciBvZiBub24tY29uZmlndXJhY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JPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgIHZhbHVlOiAwLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICAgICAgCiAgICAgICAgYXJyT2JqLmxlbmd0aCA9IDEwOyAvL3RyeSB0byBvdmVyd3JpdGUgbGVuZ3RoIHZhbHVlIG9mIGFycgogICAgICAgIHJldHVybiAhYXJyT2JqLmhhc093blByb3BlcnR5KCIxIikgJiYgYXJyT2JqLmxlbmd0aCA9PT0gMDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cgp9KTsK","id":"15.2.3.6-4-181","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-181.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjYtNC0xODIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMTgyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIGFuIGFycmF5IGluZGV4IG5hbWVkIHByb3BlcnR5LCAnbmFtZScgaXMgYXZhaWxhYmxlIFN0cmluZyB2YWx1ZXMgdGhhdCBjb252ZXJ0IHRvIG51bWJlcnMgKDE1LjQuNS4xIHN0ZXAgNC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnJPYmogPSBbXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjAiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMgogICAgICA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kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-183","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-183.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTE4NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xODQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBpcyBib3VuZGFyeSB2YWx1ZSAyXjMyIC0gMSAoMTUuNC41LjEgc3RlcCA0LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosIDQyOTQ5NjcyOTUsIHsKICAgICAgICAgICAgdmFsdWU6IDEwMAogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gYXJyT2JqLmhhc093blByb3BlcnR5KCI0Mjk0OTY3Mjk1IikgJiYgYXJyT2JqLmxlbmd0aCA9PT0gMCAmJiBhcnJPYmpbNDI5NDk2NzI5NV0gPT09IDEwMDsgOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-184","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-184.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTE4NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xODUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBpcyBib3VuZGFyeSB2YWx1ZSAyXjMyICgxNS40LjUuMSBzdGVwIDQuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcnJPYmogPSBbXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgNDI5NDk2NzI5NiwgewogICAgICAgICAgICB2YWx1ZTogMTAwCiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBhcnJPYmouaGFzT3duUHJvcGVydHkoIjQyOTQ5NjcyOTYiKSAmJiBhcnJPYmoubGVuZ3RoID09PSAwICYmIGFyck9ials0Mjk0OTY3Mjk2XSA9PT0gMTAwOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-185","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-185.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTE4NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xODYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEF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wZXJ0eSBpbiAnTycgaXMgZmFsc2UgYW5kIHZhbHVlIG9mICduYW1lJyBpcyBsZXNzIHRoYW4gdmFsdWUgb2YgdGhlIGxlbmd0aCBwcm9wZXJ0eSAoMTUuNC41LjEgc3RlcCA0LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyT2JqID0gWzEsIDIsIDNdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAibGVuZ3RoIiwgewogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgMSwgewogICAgICAgICAgICAgICAgdmFsdWU6ICJhYmMiCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-187","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-187.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTE4OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xODguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biBpZiB0aGUgW1tXcml0YWJsZV1dIGF0dHJpYnV0ZSBvZiB0aGUgbGVuZ3RoIHByb3BlcnR5IGluICdPJyBpcyBmYWxzZSBhbmQgdmFsdWUgb2YgJ25hbWUnIGVxdWFscyB0byB2YWx1ZSBvZiB0aGUgbGVuZ3RoIHByb3BlcnR5ICgxNS40LjUuMSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcnJPYmogPSBbMSwgMiwgM107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAzLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogImFiYyIKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-188","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-188.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTE4OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xODkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biBpZiB0aGUgW1tXcml0YWJsZV1dIGF0dHJpYnV0ZSBvZiB0aGUgbGVuZ3RoIHByb3BlcnR5IGluICdPJyBpcyBmYWxzZSBhbmQgdmFsdWUgb2YgJ25hbWUnIGlzIGdyZWF0ZXIgdGhhbiB2YWx1ZSBvZiB0aGUgbGVuZ3RoIHByb3BlcnR5ICgxNS40LjUuMSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcnJPYmogPSBbMSwgMiwgM107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCA0LCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogImFiYyIKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-189","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-189.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNi00LTE5Iiw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gICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJgogICAgICAgICAgICAgICAgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyT2JqLCAiMCIsICJvd25EYXRhUHJvcGVydHkiLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-190","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-190.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTE5MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xOTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBpcyBhbiBpbmhlcml0ZWQgZGF0YSBwcm9wZXJ0eSwgdGVzdCB0aGF0IGRlZmluaW5nIG93biBpbmRleCBuYW1lZCBwcm9wZXJ0eSBpcyBzdWNjZXNzZnVsICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShBcnJheS5wcm90b3R5cGUsICIwIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDExLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgdmFyIGFyck9iaiA9IFtdOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjAiLCB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gYXJyT2JqLmhhc093blByb3BlcnR5KCIwIikgJiYgQXJyYXkucHJvdG90eXBlWzBdID09PSAxMSAmJiB0eXBlb2YgYXJyT2JqWzBdID09PSAidW5kZWZpbmVkIjsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlWzBdOwogICAgICAgIH0KCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-191","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-191.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTE5MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xOTIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgZGF0YSBwcm9wZXJ0eSwgdGVzdCBUeXBlRXJyb3IgaXMgdGhyb3duIG9uIHVwZGF0aW5nIHRoZSBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSBmcm9tIGZhbHNlIHRvIHRydWUgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KEFycmF5LnByb3RvdHlwZSwgIjAiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTEsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICB2YXIgYXJyT2JqID0gW107CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIwIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDEyLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgIAogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMCIsIHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgQXJyYXkucHJvdG90eXBlWzBdID09PSAxMSAmJiBhcnJPYmpbMF0gPT09IDEyOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBBcnJheS5wcm90b3R5cGVbMF07CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-192","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-192.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTE5MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xOTMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHksIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHVwZGF0ZSB0aGUgW1tDb25maWd1cmFibGVdXSBhdHRyaWJ1dGUgdG8gdHJ1ZSBhbmQgdmFsdWUgb2YgW1tDb25maWd1cmFibGVdXSBhdHRyaWJ1dGUgb2Ygb3JpZ2luYWwgaXMgZmFsc2UgICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShBcnJheS5wcm90b3R5cGUsICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDExOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHZhciBhcnJPYmogPSBbXTsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjAiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTIsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjAiLCB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIEFycmF5LnByb3RvdHlwZVswXSA9PT0gMTEgJiYgYXJyT2JqWzBdID09PSAxMjsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlWzBdOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25BcnJheXMoKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-193","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-193.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTE5NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xOTQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHksIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biBvbiB1cGRhdGluZyB0aGUgY29uZmlndXJhYmxlIGF0dHJpYnV0ZSBmcm9tIGZhbHNlIHRvIHRydWUgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyck9iaiA9IFtdOwogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTE7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjAiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMCIsIHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgICAgICAgIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICIwIiwgZ2V0RnVuYywgdW5kZWZpbmVkLCB1bmRlZmluZWQsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQp9KTsK","id":"15.2.3.6-4-194","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-194.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTE5NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xOTUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBpcyBhbiBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KEFycmF5LnByb3RvdHlwZSwgIjAiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gMTE7CiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgdmFyIGFyck9iaiA9IFtdOwoKICAgICAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYygpIHsKICAgICAgICAgICAgICAgIHJldHVybiBhcnJPYmouaGVscFZlcmlmeVNldDsKICAgICAgICAgICAgfQogICAgICAgICAgICBmdW5jdGlvbiBzZXRGdW5jKHZhbHVlKSB7CiAgICAgICAgICAgICAgICBhcnJPYmouaGVscFZlcmlmeVNldCA9IHZhbHVlOwogICAgICAgICAgICB9CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMCIsIHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBhcnJPYmpbMF0gPSAxMzsKCiAgICAgICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyT2JqLCAiMCIsIGdldEZ1bmMsIHNldEZ1bmMsICJoZWxwVmVyaWZ5U2V0IiwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlWzBdOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25BcnJheXMoKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-195","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-195.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTE5NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xOTYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGRhdGEgcHJvcGVydHkgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KEFycmF5LnByb3RvdHlwZSwgIjAiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTEsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICB2YXIgYXJyT2JqID0gW107CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7IH0sCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjAiLCB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBBcnJheS5wcm90b3R5cGVbMF07CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQp9KTsK","id":"15.2.3.6-4-196","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-196.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTE5NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xOTcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5ICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShBcnJheS5wcm90b3R5cGUsICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7IH0sCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICB2YXIgYXJyT2JqID0gW107CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7IH0sCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjAiLCB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBBcnJheS5wcm90b3R5cGVbMF07CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQp9KTsK","id":"15.2.3.6-4-197","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-197.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTE5OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xOTguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBwcm9wZXJ0eSBkb2Vzbid0IGV4aXN0IGluICdPJywgdGVzdCBUeXBlRXJyb3IgaXMgdGhyb3duIHdoZW4gJ08nIGlzIG5vdCBleHRlbnNpYmxlICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcnJPYmogPSBbXTsKICAgICAgICBPYmplY3QucHJldmVudEV4dGVuc2lvbnMoYXJyT2JqKTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgdmFyIGRlc2MgPSB7IHZhbHVlOiAxIH07CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIwIiwgZGVzYyk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIChhcnJPYmouaGFzT3duUHJvcGVydHkoIjAiKSA9PT0gZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LnByZXZlbnRFeHRlbnNpb25zKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-198","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-198.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTE5OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0xOTkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBwcm9wZXJ0eSBkb2Vzbid0IGV4aXN0IGluICdPJywgdGVzdCAnbmFtZScgaXMgZGVmaW5lZCBhcyBkYXRhIHByb3BlcnR5IHdoZW4gJ2Rlc2MnIGlzIGdlbmVyaWMgZGVzY3JpcHRvciAoMTUuNC41LjEgc3RlcCA0LmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIwIiwgewogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlCiAgICAgICAgf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yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTIwMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yMDIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBwcm9wZXJ0eSBkb2Vzbid0IGV4aXN0IGluICdPJyBhbmQgW1tFbnVtZXJhYmxlXV0gaXMgYWJzZW50IGluIGRhdGEgZGVzY3JpcHRvciAnZGVzYycsIHRlc3QgW1tFbnVtZXJhYmxlXV0gb2YgcHJvcGVydHkgJ25hbWUnIGlzIHNldCB0byBmYWxzZSAoMTUuNC41LjEgc3RlcCA0LmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIwIiwgewogICAgICAgICAgICB2YWx1ZTogMTAwMSwKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICIwIiwgMTAwMSwgdHJ1ZSwgZmFsc2UsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-202","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-202.js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V0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-204","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-204.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTIwNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yMDUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBwcm9wZXJ0eSBkb2Vzbid0IGV4aXN0IGluICdPJyBhbmQgW1tHZXRdXSBpcyBhYnNlbnQgaW4gYWNjZXNzb3IgZGVzY3JpcHRvciAnZGVzYycsIHRlc3QgW1tHZXRdXSBhdHRyaWJ1dGUgb2YgcHJvcGVydHkgJ25hbWUnIGlzIHNldCB0byB1bmRlZmluZWQgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyck9iaiA9IFtdOwogICAgICAgIHZhciBzZXRGdW5jID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIGFyck9iai5zZXRWZXJpZnlIZWxwUHJvcCA9IHZhbHVlOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIwIiwgewogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gYWNj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ZWZpbmVQcm9wZXJ0eShhcnJPYmosICIwIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IoYXJyT2JqLCAiMCIpOwoKICAgICAgICByZXR1cm4gYXJyT2JqLmhhc093blByb3BlcnR5KCIwIikgJiYgZGVzYy5oYXNPd25Qcm9wZXJ0eSgic2V0IikgJiYgdHlwZW9mIGRlc2Muc2V0ID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25BcnJheXMoKSAmJgogICAgICAgICAgICBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-206","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-206.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTIwNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yMDcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBwcm9wZXJ0eSBkb2Vzbid0IGV4aXN0IGluICdPJy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BQcm9wIiwgdHJ1ZSwgZmFsc2UpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQp9KTsK","id":"15.2.3.6-4-208","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-208.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTIwOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yMDkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICdkZXNjJyBpcyBhY2Nlc3NvciBkZXNjcmlwdG9yLCB0ZXN0IHVwZGF0aW5nIGFsbCBhdHRyaWJ1dGUgdmFsdWVzIG9mICduYW1lJyAoMTUuNC41LjEgc3RlcCA0LmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyT2JqID0gW107CiAgICAgICAgdmFyIHNldEZ1bmMgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgYXJyT2JqLnNldFZlcmlmeUhlbHBQcm9wID0gdmFsdWU7CiAgICAgICAgfTsKICAgICAgICB2YXIgZ2V0RnVuYyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIDE0OwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIwIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAoKSB7IH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyT2JqLCAiMCIsIGdldEZ1bmMsIHNldEZ1bmMsICJzZXRWZXJpZnlIZWxwUHJvcCIsIGZhbHNlLCBmYWxzZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-209","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-209.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNi00LTIxIiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtMjEuanMiLAoKZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgcGVybWl0cyBzZXR0aW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ogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-210","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-210.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTIxMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yMTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBtYWtlcyBubyBjaGFuZ2UgaWYgZXZlcnkgZmllbGQgaW4gJ2Rlc2MnIGlzIGFic2VudChuYW1lIGlzIGFjY2Vzc29yIHByb3BlcnR5KSAoMTUuNC41LjEgc3RlcCA0LmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIGZ1bmN0aW9uIGdldEZ1bmMoKSB7CiAgICAgICAgICAgIHJldHVybiAxMTsKICAgICAgICB9CiAgICAgICAgZnVuY3Rpb24gc2V0RnVuYyh2YWx1ZSkgewogICAgICAgICAgICBhcnJPYmouc2V0VmVyaWZ5SGVscFByb3AgPSB2YWx1ZTsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIwIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICA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IHsKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIGFyck9ialswXSA9IDEwMDsgLy8gZGVmYXVsdCB2YWx1ZSBvZiBhdHRyaWJ1dGVzOiB3cml0YWJsZTogdHJ1ZSwgY29uZmlndXJhYmxlOiB0cnVlLCBlbnVtZXJhYmxlOiB0cnVlCgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIwIiwgewogICAgICAgICAgICB2YWx1ZTogMTAwLAogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICIwIiwgMTAwLCB0cnVlLCB0cnVlLCB0cnVlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-212","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-212.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTIxMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yMTMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBtYWtlcyBubyBjaGFuZ2UgaWYgdGhlIHZhbHVlIG9mIGV2ZXJ5I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gICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQp9KTsK","id":"15.2.3.6-4-213","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-213.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTIxNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yMTQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHkgYW5kIGl0cyBjb25maWd1cmFibGUgYW5kIHdyaXRhYmxlIGF0dHJpYnV0ZXMgYXJlIHNldCB0byBmYWxzZSwgdGVzdCBUeXBlRXJyb3IgaXMgdGhyb3duIHdoZW4gdGhlIHR5cGUgb2YgdGhlIFtbVmFsdWVdXSBmaWVsZCBvZiAnZGVzYycgaXMgZGlmZmVyZW50IGZyb20gdGhlIHR5cGUgb2YgdGhlIFtbVmFsdWVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ25hbWUnICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcnJPYmogPSBbXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgMCwgewogICAgICAgICAgICB2YWx1ZTogMTAxLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UgC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LCAiMCIsIHsgdmFsdWU6IE5hTiB9KTsKCiAgICAgICAgdmFyIGhhc1Byb3BlcnR5ID0gYXJyT2JqLmhhc093blByb3BlcnR5KCIwIik7CiAgICAgICAgdmFyIHZlcmlmeVZhbHVlID0gKGFyck9ialswXSAhPT0gYXJyT2JqWzBdKTsKCiAgICAgICAgdmFyIHZlcmlmeVdyaXRhYmxlID0gZmFsc2U7CiAgICAgICAgYXJyT2JqWzBdID0gMTAwMTsKICAgICAgICB2ZXJpZnlXcml0YWJsZSA9IGFyck9ialswXSAhPT0gMTAwMSAmJiBhcnJPYmpbMF0gIT09IGFyck9ialswXTsKCiAgICAgICAgdmFyIHZlcmlmeUVudW1lcmFibGUgPSBmYWxzZTsKICAgICAgICBmb3IgKHZhciBwIGluIGFyck9iaikgewogICAgICAgICAgICBpZiAocCA9PT0gIjAiKSB7CiAgICAgICAgICAgICAgICB2ZXJpZnlFbnVtZXJhYmxlID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgdmFyIHZlcmlmeUNvbmZpZ3VyYWJsZSA9IGZhbHNlOwogICAgICAgIGRlbGV0ZSBhcnJPYmpbMF07CiAgICAgICAgdmVyaWZ5Q29uZmlndXJhYmxlID0gYXJyT2JqLmhhc093blByb3BlcnR5KCIwIik7CgogICAgICAgIHJldHVybiBoYXNQcm9wZXJ0eSAmJiB2ZXJpZnlWYWx1ZSAmJiB2ZXJpZnlXcml0YWJsZSAmJiAhdmVyaWZ5RW51bWVyYWJsZSAmJiB2ZXJpZnlDb25maWd1cmFibGU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-217","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-217.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3Rlcl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3.6-4-218","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-218.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTIxOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yMTkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHksIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIC0wLCBhbmQgdGhlIFtbVmFsdWVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ25hbWUnIGlzICswICgxNS40LjUuMSBzdGVwIDQuYykiLAogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyck9iaiA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMCIsIHsgdmFsdWU6ICswIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMCIsIHsgdmFsdWU6IC0wIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICIwIiwgKzAsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-219","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-219.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTIyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTIyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICduYW1lJyBpcyBleGlzdGluZyBvd24gZGF0YSBwcm9wZXJ0eSAoOC4xMi45IHN0ZXAgMSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICB2YWx1ZTogMTEsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMiwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgb2JqLmZvbyA9PT0gMTE7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN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oKSB7CiAgICAgICAgdmFyIGFyck9iaiA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAwLCB7CiAgICAgICAgICAgIHZhbHVlOiB0cnVlLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjAiLCB7IHZhbHVlOiBmYWxzZSB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyT2JqLCAiMCIsIHRydWUsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-225","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-225.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTIyNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yMjYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHksIHRoZSBbW1ZhbHVlXV0gZm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3/15.2.3.6/15.2.3.6-4-229.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTIzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTIzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICduYW1lJyBpcyBleGlzdGluZyBhbiBpbmhlcml0ZWQgZGF0YSBwcm9wZXJ0eSAoOC4xMi45IHN0ZXAgMSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBwcm90byA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgImZvbyIsIHsKICAgICAgICAgICAgdmFsdWU6IDExLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb25zdHJ1Y3RGdW4gPSBmdW5jdGlvbiAoKSB7fTsKICAgICAgICBDb25zdHJ1Y3RGdW4ucHJvdG90eXBlID0gcHJvdG87CiAgICAgICAgdmFyIG9iaiA9IG5ldyBDb25zdHJ1Y3RGdW4oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgiZm9vIikgJiYgKHR5cGVvZiBvYmouZm9vKSA9PT0gInVuZGVmaW5lZCI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-23","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-23.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTIzMCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yMzAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHksIHRoZSBbW0dldF1dIGZpZWxkIG9mICdkZXNjJyBhbmQgdGhlIFtbR2V0XV0gYXR0cmlidXRlIHZhbHVlIG9mICduYW1lJyBhcmUgdHdvIG9iamVjdHMgd2hpY2ggcmVmZXIgdG8gdGhlIHNhbWUgb2JqZWN0ICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcnJPYmogPSBbXTsKICAgICAgICBhcnJPYmouaGVscFZlcmlmeVNldCA9IDEwOwoKICAgICAgICBmdW5jdGlvbiBnZXRGdW5jKCkgewogICAgICAgICAgICByZXR1cm4gYXJyT2JqLmhlbHBWZXJpZnlTZXQ7CiAgICAgICAgfQogICAgICAgIGZ1bmN0aW9uIHNldEZ1bmModmFsdWUpIHsKICAgICAgICAgICAgYXJyT2JqLmhlbHBWZXJpZnlTZXQgPSB2YWx1ZTsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIwIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogc2V0RnVuYwogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICIwIiwgZ2V0RnVuYywgc2V0RnVuYywgImhlbHBWZXJpZnlTZXQiLCBmYWxzZSwgZmFsc2UpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQp9KTsK","id":"15.2.3.6-4-230","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-230.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTIzMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yMzEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHksIHRoZSBbW0dldF1dIGZpZWxkIG9mICdkZXNjJyBhbmQgdGhlIFtbR2V0XV0gYXR0cmlidXRlIHZhbHVlIG9mICduYW1lJyBhcmUgdHdvIG9iamVjdHMgd2hpY2ggcmVmZXIgdG8gdGhlIGRpZmZlcmVudCBvYmplY3RzICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcnJPYmogPSBbXTsKICAgICAgICBhcnJPYmouaGVscFZlcmlmeVNldCA9IDEwOwoKICAgICAgICBmdW5jdGlvbiBnZXRGdW5jMSgpIHsKICAgICAgICAgICAgcmV0dXJuIDIwOwogICAgICAgIH0KICAgICAgICBmdW5jdGlvbiBnZXRGdW5jMigpIHsKICAgICAgICAgICAgcmV0dXJuIGFyck9iai5oZWxwVmVyaWZ5U2V0OwogICAgICAgIH0KICAgICAgICBmdW5jdGlvbiBzZXRGdW5jKHZhbHVlKSB7CiAgICAgICAgICAgIGFyck9iai5oZWxwVmVyaWZ5U2V0ID0gdmFsdWU7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jMSwKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICAKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jMgogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyck9iaiwgIjAiLCBnZXRGdW5jMiwgc2V0RnVuYywgImhlbHBWZXJpZnlTZXQiLCBmYWxzZSwgdHJ1ZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-231","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-231.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTIzMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvM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FibGU6IGZhbHNlIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICIwIiwgdW5kZWZpbmVkLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-237","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-237.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTIzOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yMzguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksIFR5cGVFcnJvciBpcyB0aHJvd24gaWYgdGhlIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIHZhbHVlIG9mICduYW1lJyBpcyBmYWxzZSAgYW5kIHRoZSBbW0NvbmZpZ3VyYWJsZV1dIGZpZWxkIG9mICdkZXNjJyBpcyB0cnVlICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIxIiwgewogICAgICAgICAgICB2YWx1ZTogMywKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjEiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTMsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwoKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyck9iaiwgIjEiLCAzLCB0cnVlLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-238","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-238.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTIzOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yMzkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksIFR5cGVFcnJvciBpcyB0aHJvd24gaWYgdGhlIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIHZhbHVlIG9mICduYW1lJyBpcyBmYWxzZSwgYW5kIFtbRW51bWVyYWJsZV1dIG9mICdkZXNjJyBpcyBwcmVzZW50IGFuZCBpdHMgdmFsdWUgaXMgZGlmZmVyZW50IGZyb20gdGhlIFtbRW51bWVyYWJsZV1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiAnbmFtZScgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnJPYmogPSBbXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjEiLCB7CiAgICAgICAgICAgIHZhbHVlOiAzLAogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjEiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTMsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKCiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICIxIiwgMywgdHJ1ZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-239","path":"TestCases/chapter15/15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ShhcnJPYmosICIxIiwgewogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjEiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTMKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKCiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyT2JqLCAiMSIsIHVuZGVmaW5lZCwgc2V0RnVuYywgInNldFZlcmlmeUhlbHBQcm9wIiwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-240","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-240.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI0MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yNDEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksIFR5cGVFcnJvciBpcyB0aHJvd24gaWYgICduYW1lJyBpcyBkYXRhIHByb3BlcnR5LCBhbmQnZGVzYycgaXMgYWNjZXNzb3IgZGVzY3JpcHRvciwgYW5kIHRoZSBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiAnbmFtZScgaXMgZmFsc2UgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnJPYmogPSBbXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjEiLCB7CiAgICAgICAgICAgIHZhbHVlOiAzLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIxIiwgewogICAgICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAoKSB7IH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKCiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICIxIiwgMywgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQp9KTsK","id":"15.2.3.6-4-241","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-241.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3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5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnJPYmogPSBbXTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYygpIHsKICAgICAgICAgICAgcmV0dXJuIDM7CiAgICAgICAgfQogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIxIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMSIsIHsKICAgICAgICAgICAgdmFsdWU6IDEyCiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICIxIiwgMTIsIGZhbHNlLCBmYWxzZSwgdHJ1ZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-243","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-243.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI0NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yNDQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHks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ICAgICAgIH0pOwoKICAgICAgICB0cnkgewoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjEiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogImFiYyIKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyck9iaiwgIjEiLCAzLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-245","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-245.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI0NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yNDYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBpcyBkYXRhIHByb3BlcnR5IGFuZCAnZGVzYycgaXMgZGF0YSBkZXNjcmlwdG9yLCBhbmQgdGhlIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIHZhbHVlIG9mICduYW1lJyBpcyBmYWxzZSwgdGVzdCBUeXBlRXJyb3IgaXMgdGhyb3duIGlmIHRoZSBbW1dyaXRhYmxlXV0gYXR0cmlidXRlIHZhbHVlIG9mICduYW1lJyBpcyBmYWxzZSwgYW5kIHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzICswLCBhbmQgdGhlIFtbVmFsdWVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ25hbWUnIGlzIC0wICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcnJPYmogPSBbXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjEiLCB7CiAgICAgICAgICAgIHZhbHVlOiAtMAoKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjEiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogKzAKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICIxIiwgLTAsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-246","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-246.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI0NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS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yT2JqID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIxIiwgewogICAgICAgICAgICB2YWx1ZTogMTIKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjEiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyck9iaiwgIjEiLCAxMiwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-248","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-248.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI0OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yNDkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBpcyBkYXRhIHByb3BlcnR5IGFuZCAnZGVzYycgaXMgZGF0YSBkZXNjcmlwdG9yLCBhbmQgdGhlIFtbQ29uZmlndXJhYmxlXV0g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IsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyck9iaiA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMSIsIHsKICAgICAgICAgICAgdmFsdWU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIxIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICIxIiwgZmFsc2UsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-250","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-250.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI1MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yNTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICduYW1lJyBpcyBkYXRhIHByb3Blc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gdmFsdWU7CiAgICAgICAgfQogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIxIiwgewogICAgICAgICAgICBzZXQ6IHNldEZ1bmMKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjEiLCB7CiAgICAgICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICgpIHsgfQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICIxIiwgdW5kZWZpbmVkLCBzZXRGdW5jLCAic2V0VmVyaWZ5SGVscFByb3AiLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25BcnJheXMoKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-252","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-252.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI1MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yNTMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkga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dGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyck9iaiA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMSIsIHsKICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQKICAgICAgICB9KTsKICAgICAgICB2YXIgaGFzUHJvcGVydHkgPSBhcnJPYmouaGFzT3duUHJvcGVydHkoIjEiKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjEiLCB7CiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkCiAgICAgICAgfSk7CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihhcnJPYmosICIxIik7CgogICAgICAgIHZhciB2ZXJpZnlHZXQgPSBkZXNjLmhhc093blByb3BlcnR5KCJnZXQiKSAmJiB0eXBlb2YgZGVzYy5nZXQgPT09ICJ1bmRlZmluZWQiOwoKICAgICAgICB2YXIgdmVyaWZ5U2V0ID0gZGVzYy5oYXNPd25Qcm9wZXJ0eSgic2V0IikgJiYgdHlwZW9mIGRlc2Muc2V0ID09PSAidW5kZWZpbmVkIjsKCiAgICAgICAgdmFyIHZlcmlmeUVudW1lcmFibGUgPSBmYWxzZTsKICAgICAgICBmb3IgKHZhciBwIGluIGFyck9iaikgewogICAgICAgICAgICBpZiAocCA9PT0gIjEiKSB7CiAgICAgICAgICAgICAgICB2ZXJpZnlFbnVtZXJhYmxlID0gdHJ1ZQogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB2YXIgdmVyaWZ5Q29uZmlndXJhYmxlID0gZmFsc2U7CiAgICAgICAgZGVsZXRlIGFyck9ialsxXTsKICAgICAgICB2ZXJpZnlDb25maWd1cmFibGUgPSBhcnJPYmouaGFzT3duUHJvcGVydHkoIjEiKTsKCiAgICAgICAgcmV0dXJuIGhhc1Byb3BlcnR5ICYmIHZlcmlmeUdldCAmJ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NC41LjEgc3RlcCA0LmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIGZ1bmN0aW9uIGdldEZ1bmMoKSB7CiAgICAgICAgICAgIHJldHVybiAxMjsKICAgICAgICB9CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjEiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYwogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMSIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAxNDsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgaGFzUHJvcGVydHkgPSBhcnJPYmouaGFzT3duUHJvcGVydHkoIjEiKTsKICAgICAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKGFyck9iaiwgIjEiKTsKCiAgICAgICAgICAgIHZhciB2ZXJpZnlHZXQgPSBhcnJPYmpbMV0gPT09IGdldEZ1bmMoKTsKCiAgICAgICAgICAgIHZhciB2ZXJpZnlTZXQgPSBkZXNjLmhhc093blByb3BlcnR5KCJzZXQiKSAmJiB0eXBlb2YgZGVzYy5zZXQgPT09ICJ1bmRlZmluZWQiOwoKICAgICAgICAgICAgdmFyIHZlcmlmeUVudW1lcmFibGUgPSBmYWxzZTsKICAgICAgICAgICAgZm9yICh2YXIgcCBpbiBhcnJPYmopIHsKICAgICAgICAgICAgICAgIGlmIChwID09PSAiMSIpIHsKICAgICAgICAgICAgICAgICAgICB2ZXJpZnlFbnVtZXJhYmxlID0gdHJ1ZQ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BlcnR5KCJzZXQiKSAmJiB0eXBlb2YgZGVzYy5zZXQgPT09ICJ1bmRlZmluZWQiOwoKICAgICAgICAgICAgdmFyIHZlcmlmeUVudW1lcmFibGUgPSBmYWxzZTsKICAgICAgICAgICAgZm9yICh2YXIgcCBpbiBhcnJPYmopIHsKICAgICAgICAgICAgICAgIGlmIChwID09PSAiMSIpIHsKICAgICAgICAgICAgICAgICAgICB2ZXJpZnlFbnVtZXJhYmxlID0gdHJ1ZQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICB2YXIgdmVyaWZ5Q29uZmlndXJhYmxlID0gZmFsc2U7CiAgICAgICAgICAgIGRlbGV0ZSBhcnJPYmpbMV07CiAgICAgICAgICAgIHZlcmlmeUNvbmZpZ3VyYWJsZSA9IGFyck9iai5oYXNPd25Qcm9wZXJ0eSgiMSIpOwoKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgaGFzUHJvcGVydHkgJiYgdmVyaWZ5R2V0ICYmCiAgICAgICAgICAgICAgICB2ZXJpZnlTZXQgJiYgIXZlcmlmeUVudW1lcmFibGUgJiYgdmVyaWZ5Q29uZmlndXJhYmxlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25BcnJheXMoKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-256","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-256.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI1NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLj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lOiB1bmRlZmluZWQKICAgICAgICB9KTsKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyT2JqLCAiMCIsIHVuZGVmaW5lZCwgdHJ1ZSwgdHJ1ZSwgdHJ1ZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-259","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-259.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTI2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICduYW1lJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgKDguMTIuOSBzdGVwIDEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMTE7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDEyOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgb2JqLnByb3BlcnR5ID09PSAxMTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-26","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-26.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI2MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yNjAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksIG5hbWUgaXMgZGF0YSBwcm9wZXJ0eSBhbmQgJ2Rlc2MnIGlzIGRhdGEgZGVzY3JpcHRvciwgdGVzdCBzZXR0aW5nIHRoZSBbW1ZhbHVlXV0gYXR0cmlidXRlIHZhbHVlIG9mICduYW1lJyBmcm9tIHVuZGVmaW5lZCB0byBudW1iZXIgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnJPYmogPSBbdW5kZWZpbmVkXTsKICAgICAgICBPYmplY3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mN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-264","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-264.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI2NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yNjUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksIG5hbWUgaXMgYWNjZXNzb3IgcHJvcGVydHkgYW5kICdkZXNjJyBpcyBhY2Nlc3NvciBkZXNjcmlwdG9yLCB0ZXN0IHVwZGF0aW5nIHRoZSBbW0dldF1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiAnbmFtZScgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnJPYmogPSBbXTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYygpIHsKICAgICAgICAgICAgcmV0dXJuIDEwMDsKICAgICAgICB9CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjAiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDEyOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMCIsIHsKICAgICAgICAgICAgZ2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MTI7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjAiLCB7CiAgICAgICAgICAgIGdldDogdW5kZWZpbmVkCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICIwIiwgdW5kZWZpbmVkLCB1bmRlZmluZWQsIHVuZGVmaW5lZCwgZmFsc2UsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQp9KTsK","id":"15.2.3.6-4-266","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-266.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI2NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yNjcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksIG5hbWUgaXMgYWNjZXNzb3IgcHJvcGVydHkgYW5kICdkZXNjJyBpcyBhY2Nlc3NvciBkZXNjcmlwdG9yLCB0ZXN0IHVwZGF0aW5nIHRoZSBbW0dldF1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiAnbmFtZScgZnJvbSB1bmRlZmluZWQgdG8gZnVuY3Rpb24gb2JqZWN0ICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIGZ1bmN0aW9uIGdldEZ1bmMoKSB7CiAgICAgICAgICAgIHJldHVybiAxMjsKICAgICAgICB9CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjAiLCB7CiAgICAgICAgICAgIGdldDogdW5kZWZpbmVkLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjAiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYwogICAgICAgIH0pOwogICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyT2JqLCAiMCIsIGdldEZ1bmMsIHVuZGVmaW5lZCwgdW5kZWZpbmVkLCBmYWxzZSwgdHJ1ZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-267","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-267.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI2OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLj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lJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQp9KTsK","id":"15.2.3.6-4-268","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-268.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI2OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yNjkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksIG5hbWUgaXMgYWNjZXNzb3IgcHJvcGVydHkgYW5kICdkZXNjJyBpcyBhY2Nlc3NvciBkZXNjcmlwdG9yLCB0ZXN0IHNldHRpbmcgdGhlIFtbU2V0XV0gYXR0cmlidXRlIHZhbHVlIG9mICduYW1lJyBhcyB1bmRlZmluZWQgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnJPYmogPSBbXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjAiLCB7CiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKCkgeyB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjAiLCB7CiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICIwIiwgdW5kZWZpbmVkLCB1bmRlZmluZWQsIHVuZGVmaW5lZCwgZmFsc2UsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQp9KTsK","id":"15.2.3.6-4-269","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-269.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTI3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICduYW1lJyBpcyBhbiBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkgKDguMTIuOSBzdGVwIDEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJwcm9wZXJ0eSIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMTE7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbnN0cnVjdEZ1biA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb25zdHJ1Y3RGdW4ucHJvdG90eXBlID0gcHJvdG87CiAgICAgICAgdmFyIG9iaiA9IG5ldyBDb25zdHJ1Y3RGdW4oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMjsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiBvYmoucHJvcGVydHkgPT09IDEyOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-27","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-27.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI3MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yNzAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksIG5hbWUgaXMgYWNjZXNzb3IgcHJvcGVydHkgYW5kICdkZXNjJyBpcyBhY2Nlc3NvciBkZXNjcmlwdG9yLCB0ZXN0IHVwZGF0aW5nIHRoZSBbW1NldF1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiAnbmFtZScgZnJvbSB1bmRlZmluZWQgdG8gZnVuY3Rpb24gb2JqZWN0ICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIGZ1bmN0aW9uIHNldEZ1bmModmFsdWUpIHsKICAgICAgICAgICAgYXJyT2JqLnNldFZlcmlmeUhlbHBQcm9wID0gdmFsdWU7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMCIsIHsKICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMCIsIHsKICAgICAgICAgICAgc2V0OiBzZXRGdW5jCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICIwIiwgdW5kZWZpbmVkLCBzZXRGdW5jLCAic2V0VmVyaWZ5SGVscFByb3AiLCBmYWxzZSwgdHJ1ZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-270","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-270.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI3MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yNzEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksIG5hbWUgaXMgYWNjZXNzb3IgcHJvcGVydHkgYW5kICdkZXNjJyBpcyBhY2Nlc3NvciBkZXNjcmlwdG9yLCB0ZXN0IHVwZGF0aW5nIHRoZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ25hbWUnICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIGZ1bmN0aW9uIHNldEZ1bmModmFsdWUpIHsKICAgICAgICAgICAgYXJyT2JqLnNldFZlcmlmeUhlbHBQcm9wID0gdmFsdWU7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiMCIsIHsKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjAiLCB7CiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICIwIiwgdW5kZWZpbmVkLCBzZXRGdW5jLCAic2V0VmVyaWZ5SGVscFByb3AiLCBmYWxzZSwgdHJ1ZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-271","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-271.js"},{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scFByb3AiLCBmYWxzZSwgZmFsc2UpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQp9KTsK","id":"15.2.3.6-4-272","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-272.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI3MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yNzMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksIG5hbWUgaXMgYWNjZXNzb3IgcHJvcGVydHkgYW5kICdkZXNjJyBpcyBhY2Nlc3NvciBkZXNjcmlwdG9yLCB0ZXN0IHVwZGF0aW5nIG11bHRpcGxlIGF0dHJpYnV0ZSB2YWx1ZXMgb2YgJ25hbWUnICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIGZ1bmN0aW9uIHNldEZ1bmModmFsdWUpIHsKICAgICAgICAgICAgYXJyT2JqLnNldFZlcmlmeUhlbHBQcm9wID0gdmFsdWU7CiAgICAgICAgfQogICAgICAgIGZ1bmN0aW9uIGdldEZ1bmMoKSB7CiAgICAgICAgICAgIHJldHVybiAxMjsKICAgICAgICB9CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgIjEiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDY7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICIxIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICIxIiwgZ2V0RnVuYywgc2V0RnVuYywgInNldFZlcmlmeUhlbHBQcm9wIiwgZmFsc2UsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25BcnJheXMoKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-273","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-273.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI3NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yNzQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFt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BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksIHRlc3QgdGhlIGxlbmd0aCBwcm9wZXJ0eSBvZiAnTycgaXMgc2V0IGFzIFRvVWludDMyKCduYW1lJykgKyAxIGlmIFRvVWludDMyKCduYW1lJykgaXMgZ3JlYXRlciB0aGFuIHZhbHVlIG9mIHRoZSBsZW5ndGggcHJvcGVydHkgaW4gJ08nICgxNS40LjUuMSBzdGVwIDQuZS5paSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICI1IiwgewogICAgICAgICAgICB2YWx1ZTogMwogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gYXJyT2JqLmxlbmd0aCA9PT0gNiAmJiBhcnJPYmpbNV0gPT09IDM7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-276","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-276.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI3NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yNzcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIGdlbmVyaWMgcHJvcGVydHkgdGhhdCB3b24ndCBleGlzdCBvbiAnTycsIGFuZCAnZGVzYycgaXMg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gaXMgYWNjZXNzb3IgZGVzY3JpcHRvciwgdGVzdCAnbmFtZScgaXMgZGVmaW5lZCBpbiAnTycgd2l0aCBhbGwgY29ycmVjdCBhdHRyaWJ1dGUgdmFsdWVzICgxNS40LjUuMSBzdGVwIDUpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyck9iaiA9IFtdOwoKICAgICAgICBmdW5jdGlvbiBnZXRGdW5jKCkgewogICAgICAgICAgICByZXR1cm4gMTI7CiAgICAgICAgfQogICAgICAgIGZ1bmN0aW9uIHNldEZ1bmModmFsdWUpIHsKICAgICAgICAgICAgYXJyT2JqLnNldFZlcmlmeUhlbHBQcm9wID0gdmFsdWU7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICJwcm9wZXJ0eSIsIGdldEZ1bmMsIHNldEZ1bmMsICJzZXRWZXJpZnlIZWxwUHJvcCIsIHRydWUsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-278","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-278.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI3OSIsCgogIC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HByb3RvOwogICAgICAgIHZhciBvYmogPSBuZXcgQ29uc3RydWN0RnVuKCk7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7IH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-28","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-28.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI4MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yODAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgZ2VuZXJpYyBvd24gZGF0YSBwcm9wZXJ0eSBvZiAnTycsIGFuZCAnZGVzYycgaXMgZGF0YSBkZXNjcmlwdG9yLCB0ZXN0IHVwZGF0aW5nIG11bHRpcGxlIGF0dHJp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Z2VuZXJpYyBvd24gZGF0YSBwcm9wZXJ0eSBvZiAnTycsIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHVwZGF0aW5nIHRoZSBbW1ZhbHVlXV0gYXR0cmlidXRlIHZhbHVlIG9mICduYW1lJyB3aGljaCBpcyBkZWZpbmVkIGFzIG5vbi13cml0YWJsZSBhbmQgbm9uLWNvbmZpZ3VyYWJsZSAoMTUuNC41LjEgc3RlcCA1KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnJPYmogPSBbXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgInByb3BlcnR5IiwgewogICAgICAgICAgICB2YWx1ZTogMTIKICAgICAgICB9KTsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMzYKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyck9iaiwgInByb3BlcnR5IiwgMTIsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-281","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-281.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI4MiIs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bkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-282","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-282.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI4MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yODMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgZ2VuZXJpYyBvd24gZGF0YSBwcm9wZXJ0eSBvZiAnTycsIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHVwZGF0aW5nIHRoZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ25hbWUnIHdoaWNoIGlzIGRlZmluZWQgYXMgbm9uLWNvbmZpZ3VyYWJsZSAoMTUuNC41LjEgc3RlcCA1KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyck9iaiA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMiwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5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dGNhc2UoKSB7CgogICAgICAgIHZhciBhcnJPYmogPSBbXTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYygpIHsKICAgICAgICAgICAgcmV0dXJuIDEyOwogICAgICAgIH0KICAgICAgICBmdW5jdGlvbiBzZXRGdW5jKHZhbHVlKSB7CiAgICAgICAgICAgIGFyck9iai5zZXRWZXJpZnlIZWxwUHJvcCA9IHZhbHVlOwogICAgICAgIH0KICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiBzZXRGdW5jCiAgICAgICAgfSk7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgInByb3BlcnR5IiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDM2OwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyck9iaiwgInByb3BlcnR5IiwgZ2V0RnVuYywgc2V0RnVuYywgInNldFZlcmlmeUhlbHBQcm9wIiwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-285","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-285.js"},{"code":"RVM1SGFyb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m9wZXJ0eShhcnJPYmosICJwcm9wZXJ0eSIsIHsKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJwcm9wZXJ0eSIsIHsKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICJwcm9wZXJ0eSIsIHVuZGVmaW5lZCwgc2V0RnVuYywgInNldFZlcmlmeUhlbHBQcm9wIiwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-287","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-287.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI4OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yODguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgZ2VuZXJpYyBvd24gYWNjZXNzb3IgcHJvcGVydHkgb2YgJ08nLCB0ZXN0IFR5cGVFcnJvciBpcyB0aHJvd24gd2hlbiB1cGRhdGluZyB0aGUgW1tDb25maWd1cmFibGVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ25hbWUnIHdoaWNoIGlzIGRlZmluZWQgYXMgbm9uLWNvbmZpZ3VyYWJsZSAoMTUuNC41LjEgc3RlcCA1KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnJPYmogPSBbXTsKCiAgICAgICAgZnVuY3Rpb24gc2V0RnVuYyh2YWx1ZSkgewogICAgICAgICAgICBhcnJPYmouc2V0VmVyaWZ5SGVscFByb3AgPSB2YWx1ZTsKICAgICAgICB9CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyck9iaiwgInByb3BlcnR5IiwgewogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnJPYmosICJwcm9wZXJ0eSIsIHVuZGVmaW5lZCwgc2V0RnVuYywgInNldFZlcmlmeUhlbHBQcm9wIiwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-288","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-288.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI4OS0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTI4OS0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcmd1bWVudHMgb2JqZWN0IG9mIGEgZnVuY3Rpb24gdGhhdCBoYXMgZm9ybWFsIHBhcmFtZXRlcnMsICduYW1lJyBpcyBvd24gcHJvcGVydHkgd2hpY2ggaXMgZGVmaW5lZCBpbiBib3RoIFtbUGFyYW1ldGVyTWFwXV0gb2YgJ08nIGFuZCAnTycsIGFuZCBpcyBkZWxldGVkIGFmdGVyd2FyZHMsIGFuZCAnZGVzYycgaXMgZGF0YSBkZXNjcmlwdG9yLCB0ZXN0ICduYW1lJyBpcyByZWRlZmluZWQgaW4gJ08nIHdpdGggYWxsIGNvcnJlY3QgYXR0cmlidXRlIHZhbHVlcyAoMTAuNiBbW0RlZmluZU93blByb3BlcnR5XV0gc3RlcCAzKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgcmV0dXJuIChmdW5jdGlvbiAoYSwgYiwgYykgewogICAgICAgICAgICBkZWxldGUgYXJndW1lbnRzWzBdOwogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMCwKICAgICAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9K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50c1swXTsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgIjAiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmd1bWVudHMsICIwIiwgMTAsIHRydWUsIHRydWUsIHRydWUpOwogICAgICAgIH0oMCwgMSwgMikpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-289","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-289.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTI5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICduYW1lJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5ICg4LjEyLjkgc3RlcCAxKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIHByb3RvID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAiZm9vIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb25zdHJ1Y3RGdW4gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uc3RydWN0RnVuLnByb3RvdHlwZSA9IHByb3RvOwogICAgICAgIHZhciBvYmogPSBuZXcgQ29uc3RydWN0RnVuKCk7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7IH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-29","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-29.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI5MC0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTI5MC0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogI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sKICAgICAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYzIoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMjA7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgIjAiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldEZ1bmMyLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICB2YXIgdmVyaWZ5Rm9ybWFsID0gYSA9PT0gMDsKICAgICAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmd1bWVudHMsICIwIiwgZ2V0RnVuYzIsIHVuZGVmaW5lZCwgdW5kZWZpbmVkLCBmYWxzZSwgZmFsc2UpICYmIHZlcmlmeUZvcm1hbDsKICAgICAgICB9KDAsIDEsIDIpKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25PYmplY3RzKCkgJiYKICAgICAgICAgICAgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-291-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-291-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI5MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yOTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICduYW1lJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgb2YgJ08nLCBhbmQgJ2Rlc2MnIGlzIGFjY2Vzc29yIGRlc2NyaXB0b3IsIHRlc3QgdXBkYXRpbmcgbXVsdGlwbGUgYXR0cmlidXRlIHZhbHVlcyBvZiAnbmFtZScgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXAgMykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHJldHVybiAoZnVuY3Rpb24gKCkgewogICAgICAgICAgICBmdW5jdGlvbiBnZXRGdW5jMSgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMDsKICAgICAgICAgICAgfQogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYzEsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICBmdW5jdGlvbiBnZXRGdW5jMigpIHsKICAgICAgICAgICAgICAgIHJldHVybiAyMDsKICAgICAgICAgICAgfQogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYzIsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiMCIsI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AgcmV0dXJuIChmdW5jdGlvbiAoYSwgYiwgYykgeyAKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgIjAiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMjAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHZhciB2ZXJpZnlGb3JtYWwgPSBhID09PSAyMDsKICAgICAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZ3VtZW50cywgIjAiLCAyMCwgZmFsc2UsIGZhbHNlLCBmYWxzZSkgJiYgdmVyaWZ5Rm9ybWFsOwogICAgICAgIH0oMCwgMSwgMikpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-292-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-292-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI5MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yOTIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICduYW1lJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSBvZiAnTycsIGFuZCAnZGVzYycgaXMgZGF0YSBkZXNjcmlwdG9yLCB0ZXN0IHVwZGF0aW5nIG11bHRpcGxlIGF0dHJpYnV0ZSB2YWx1ZXMgb2YgJ25hbWUnICgxMC42IFtbRGVmaW5lT3duUHJvcGVydHldXSBzdGVwIDMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICByZXR1cm4gKGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgIjAiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMjAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmd1bWVudHMsICIwIiwgMjAsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0oMCwgMSwgMikpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-292","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-292.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI5My0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTI5My0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcmd1bWVudHMgb2JqZWN0LCAnbmFtZScgaXMgb3duIGRhdGEgcHJvcGVydHkgb2YgJ08nLCB0ZXN0IFR5cGVFcnJvciBpcyBub3QgdGhyb3duIHdoZW4gdXBkYXRpbmcgdGhlIFtbVmFsdWVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ25hbWUnIHdoaWNoIGlzIGRlZmluZWQgYXMgbm9uLXdyaXRhYmxlIGFuZCBjb25maWd1cmFibGUgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXAgMyBhbmQgNWIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICByZXR1cm4gKGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgIjAiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDIwCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiMCIsIDIwLCBmYWxzZSwgdHJ1ZSwgdHJ1ZSk7CiAgICAgICAgfSgwLCAxLCAyKSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-293-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-293-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI5My0yIiwKCiAgICB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8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yOTMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICduYW1lJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSBvZiAnTycsIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHVwZGF0aW5nIHRoZSBbW1ZhbHVlXV0gYXR0cmlidXRlIHZhbHVlIG9mICduYW1lJyB3aGljaCBpcyBkZWZpbmVkIGFzIG5vbi13cml0YWJsZSBhbmQgbm9uLWNvbmZpZ3VyYWJsZSAoMTAuNiBbW0RlZmluZU93blByb3BlcnR5XV0gc3RlcCAzKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgcmV0dXJuIChmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDEwLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICB0cnkgewogICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgIjAiLCB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IDIwCiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiMCIsIDEwLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSgwLCAxLCAyKSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-293","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-293.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI5NC0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTI5NC0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcmd1bWVudHMgb2JqZWN0IG9mIGEgZnVuY3Rpb24gdGhhdCBoYXMgZm9ybWFsIHBhcmFtZXRlcnMsICduYW1lJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSBvZiAnTycgd2hpY2ggaXMgYWxzbyBkZWZpbmVkIGluIFtbUGFyYW1ldGVyTWFwXV0gb2YgJ08nLCB0ZXN0IFR5cGVFcnJvciBpcyB0aHJvd24gd2hlbiB1cGRhdGluZyB0aGUgW1tXcml0YWJsZV1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiAnbmFtZScgd2hpY2ggaXMgZGVmaW5lZCBhcyBub24tY29uZmlndXJhYmxlICgxMC42IFtbRGVmaW5lT3duUHJvcGVydHldXSBzdGVwIDQgYW5kIDViKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgcmV0dXJuIChmdW5jdGlvbiAoYSwgYiwgYykgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMCwKICAgICAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICAgICAgdmFyIHZlcmlmeUZvcm1hbCA9IGEgPT09IDEwOwogICAgICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiMCIsIDEwLCBmYWxzZSwgZmFsc2UsIGZhbHNlKSAmJiB2ZXJpZnlGb3JtYWw7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0oMCwgMSwgMikpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-294-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-294-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI5NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yOTQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICduYW1lJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSBvZiAnTycsIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHVwZGF0aW5nIHRoZSBbW1dyaXRhYmxlXV0gYXR0cmlidXRlIHZhbHVlIG9mICduYW1lJyB3aGljaCBpcyBkZWZpbmVkIGFzIG5vbi1jb25maWd1cmFibGUgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXAgNCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHJldHVybiAoZnVuY3Rpb24gKCkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMCwKICAgICAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiMCIsIDEwLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSg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AsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlCiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICAgICAgdmFyIHZlcmlmeUZvcm1hbCA9IGEgPT09IDEwOwogICAgICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiMCIsIDEwLCBmYWxzZSwgdHJ1ZSwgZmFsc2UpICYmIHZlcmlmeUZvcm1hbDsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSgwLCAxLCAyKSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-295-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-295-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI5NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yOTUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICduYW1lJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSBvZiAnTycsIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHVwZGF0aW5nIHRoZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ25hbWUnIHdoaWNoIGlzIGRlZmluZWQgYXMgbm9uLWNvbmZpZ3VyYWJsZSAoMTAuNiBbW0RlZmluZU93blByb3BlcnR5XV0gc3RlcCA0KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgcmV0dXJuIChmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDEwLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZQogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZ3VtZW50cywgIjAiLCAxMCwgZmFsc2UsIHRydWUsIGZhbHNlKTsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSgwLCAxLCAyKSk7CiAgICB9LAoKICAgIHByZWNvbmRpd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SwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgICAgIHZhciB2ZXJpZnlGb3JtYWwgPSBhID09PSAxMDsKICAgICAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZ3VtZW50cywgIjAiLCAxMCwgZmFsc2UsIGZhbHNlLCBmYWxzZSkgJiYgdmVyaWZ5Rm9ybWFsOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9KDAsIDEsIDIpKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-296-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-296-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI5NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yOTYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICduYW1lJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSBvZiAnTycsIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHVwZGF0aW5nIHRoZSBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiAnbmFtZScgd2hpY2ggaXMgZGVmaW5lZCBhcyBub24tY29uZmlndXJhYmxlICgxMC42IFtbRGVmaW5lT3duUHJvcGVydHldXSBzdGVwIDQpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICByZXR1cm4gKGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgIjAiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmd1bWVudHMsICIwIiwgMTAsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9KDAsIDEsIDIpKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbi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IjAiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldEZ1bmMxLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICBmdW5jdGlvbiBnZXRGdW5jMigpIHsKICAgICAgICAgICAgICAgIHJldHVybiAyMDsKICAgICAgICAgICAgfQogICAgICAgICAgICB0cnkgewogICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgIjAiLCB7CiAgICAgICAgICAgICAgICAgICAgZ2V0OiBnZXRGdW5jMgogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgICAgIHZhciB2ZXJpZnlGb3JtYWwgPSBhID09PSAwOwogICAgICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZ3VtZW50cywgIjAiLCBnZXRGdW5jMSwgdW5kZWZpbmVkLCB1bmRlZmluZWQsIGZhbHNlLCBmYWxzZSkgJiYgdmVyaWZ5Rm9ybWFsOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9KDAsIDEsIDIpKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25PYmplY3RzKCkgJiYKICAgICAgICAgICAgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-297-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-297-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI5NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yOTcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICduYW1lJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgb2YgJ08nLCB0ZXN0IFR5cGVFcnJvciBpcyB0aHJvd24gd2hlbiB1cGRhdGluZyB0aGUgW1tHZXRdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ25hbWUnIHdoaWNoIGlzIGRlZmluZWQgYXMgbm9uLWNvbmZpZ3VyYWJsZSAoMTAuNiBbW0RlZmluZU93blByb3BlcnR5XV0gc3RlcCA0KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgcmV0dXJuIChmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIGZ1bmN0aW9uIGdldEZ1bmMxKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDEwOwogICAgICAgICAgICB9CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBnZXRGdW5jMSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYzIoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMjA7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYzIKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiMCIsIGdldEZ1bmMxLCB1bmRlZmluZWQsIHVuZGVmaW5lZCwgZmFsc2UsIGZhbHNlKTsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSgwLCAxLCAyKSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uT2JqZWN0cygpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-297","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-297.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI5OC0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTI5OC0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcmd1bWVudHMgb2JqZWN0IG9mIGEgZnVuY3Rpb24gdGhhdCBoYXMgZm9ybWFsIHBhcmFtZXRlcnMsICduYW1lJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgb2YgJ08nIHdoaWNoIGlzIGFsc28gZGVmaW5lZCBpbiBbW1BhcmFtZXRlck1hcF1dIG9mICdPJywgdGVzdCBUeXBlRXJyb3IgaXMgdGhyb3duIHdoZW4gdXBkYXRpbmcgdGhlIFtbU2V0XV0gYXR0cmlidXRlIHZhbHVlIG9mICduYW1lJyB3aGljaCBpcyBkZWZpbmVkIGFzIG5vbi1jb25maWd1cmFibGUgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXBzIDQgYW5kIDVhKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgcmV0dXJuIChmdW5jdGlvbiAoYSwgYiwgYykgewogICAgICAgICAgICBmdW5jdGlvbiBnZXRGdW5jKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDEwOwogICAgICAgICAgICB9CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIGZ1bmN0aW9uIHNldEZ1bmModmFsdWUpIHsKICAgICAgICAgICAgICAgIHRoaXMuc2V0VmVyaWZ5SGVscFByb3AgPSB2YWx1ZTsKICAgICAgICAgICAgfQogICAgICAgICAgICB0cnkgewogICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgIjAiLCB7CiAgICAgICAgICAgICAgICAgICAgc2V0OiBzZXRGdW5jCiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICAgICAgdmFyIHZlcmlmeUZvc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dWUgb2YgJ25hbWUnIHdoaWNoIGlzIGRlZmluZWQgYXMgbm9uLWNvbmZpZ3VyYWJsZSAoMTAuNiBbW0RlZmluZU93blByb3BlcnR5XV0gc3RlcCA0KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgcmV0dXJuIChmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIGZ1bmN0aW9uIGdldEZ1bmMoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgIjAiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgZnVuY3Rpb24gc2V0RnVuYyh2YWx1ZSkgewogICAgICAgICAgICAgICAgdGhpcy5zZXRWZXJpZnlIZWxwUHJvcCA9IHZhbHVlOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgICAgICBzZXQ6IHNldEZ1bmMKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiMCIsIGdldEZ1bmMsIHVuZGVmaW5lZCwgdW5kZWZpbmVkLCBmYWxzZSwgZmFsc2UpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHJldH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ewogICAgICAgIHJldHVybiAoZnVuY3Rpb24gKGEsIGIsIGMpIHsKICAgICAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYygpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMDsKICAgICAgICAgICAgfQogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICB0cnkgewogICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgIjAiLCB7CiAgICAgICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgICAgICB2YXIgdmVyaWZ5Rm9ybWFsID0gYSA9PT0gMDsKICAgICAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmCiAgICAgICAgICAgICAgICAgICAgYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZ3VtZW50cywgIjAiLCBnZXRGdW5jLCB1bmRlZmluZWQsIHVuZGVmaW5lZCwgdHJ1ZSwgZmFsc2UpICYmIHZlcmlmeUZvcm1hbDsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSgwLCAxLCAyKSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uT2JqZWN0cygpICYmCiAgICAgICAgICAgIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-299-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-299-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTI5OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0yOTkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICduYW1lJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgb2YgJ08nLCB0ZXN0IFR5cGVFcnJvciBpcyB0aHJvd24gd2hlbiB1cGRhdGluZyB0aGUgW1tFbnVtZXJhYmxlXV0gYXR0cmlidXRlIHZhbHVlIG9mICduYW1lJyB3aGljaCBpcyBkZWZpbmVkIGFzIG5vbi1jb25maWd1cmFibGUgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXAgNCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHJldHVybiAoZnVuY3Rpb24gKCkgewogICAgICAgICAgICBmdW5jdGlvbiBnZXRGdW5jKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDEwOwogICAgICAgICAgICB9CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZQogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmd1bWVudHMsICIwIiwgZ2V0RnVuYywgdW5kZWZpbmVkLCB1bmRlZmluZWQsIHRydWUsIGZhbHNlKTsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSgwLCAxLCAyKSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uT2JqZWN0cygpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-299","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-299.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNi00LTMiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zLmpzIiwKCmRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IHNldHMgbWlzc2luZyBhdHRyaWJ1dGVzIHRvIHRoZWlyIGRlZmF1bHQgdmFsdWVzIChhY2Nlc3NvcikoOC4xMi45IHN0ZXAgNC5iLmkpIiwKCnRlc3Q6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kZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICduYW1lJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgd2l0aG91dCBhIGdldCBmdW5jdGlvbiAoOC4xMi45IHN0ZXAgMSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICgpIHsgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-30","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-30.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMwMC0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTMwMC0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcmd1bWVudHMgb2JqZWN0IG9mIGEgZnVuY3Rpb24gdGhhdCBoYXMgZm9ybWFsIHBhcmFtZXRlcnMsICduYW1lJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgb2YgJ08nIHdoaWNoIGlzIGFsc28gZGVmaW5lZCBpbiBbW1BhcmFtZXRlck1hcF1dIG9mICdPJywgdGVzdCBUeXBlRXJyb3IgaXMgdGhyb3duIHdoZW4gdXBkYXRpbmcgdGhlIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIHZhbHVlIG9mICduYW1lJyB3aGljaCBpcyBkZWZpbmVkIGFzIG5vbi1jb25maWd1cmFibGUgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXAgNCBhbmQgc3RlcCA1YSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHJldHVybiAoZnVuY3Rpb24gKGEsIGIsIGMpIHsKICAgICAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYygpIHsKICAgICAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgICAgICB9CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgICAgICB2YXIgdmVyaWZ5Rm9ybWFsID0gYSA9PT0gMDsKICAgICAgICAgICAgICAg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ZmluZWQgYXMgbm9uLWNvbmZpZ3VyYWJsZSAoMTAuNiBbW0RlZmluZU93blByb3BlcnR5XV0gc3RlcCA0KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgcmV0dXJuIChmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIGZ1bmN0aW9uIGdldEZ1bmMoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgIjAiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmd1bWVudHMsICIwIiwgZ2V0RnVuYywgdW5kZWZpbmVkLCB1bmRlZmluZWQsIHRydWUsIGZhbHNlKTsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSgwLCAxLCAyKSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0d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AgICAgICByZXR1cm4gKGZ1bmN0aW9uICgpIHsgCiAgICAgICAgICAgIGRlbGV0ZSBhcmd1bWVudHNbMF07CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDEwLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiMCIsIDEwLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9KDAsIDEsIDIpKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-301","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-301.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMwMi0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTMwMi0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcmd1bWVudHMgb2JqZWN0IG9mIGEgZnVuY3Rpb24gdGhhdCBoYXMgZm9ybWFsIHBhcmFtZXRlcnMsICduYW1lJyBpcyBhbiBpbmRleCBuYW1lZCBwcm9wZXJ0eSBvZiAnTycgYnV0IG5vdCBkZWZpbmVkIGluIFtbUGFyYW1ldGVyTWFwXV0gb2YgJ08nLCBhbmQgJ2Rlc2MnIGlzIGFjY2Vzc29yIGRlc2NyaXB0b3IsIHRlc3QgJ25hbWUnIGlzIGRlZmluZWQgaW4gJ08nIHdpdGggYWxsIGNvcnJlY3QgYXR0cmlidXRlIHZhbHVlcyAoMTAuNiBbW0RlZmluZU93blByb3BlcnR5XV0gc3RlcCAzIGFuZCBzdGVwIDVhKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgcmV0dXJuIChmdW5jdGlvbiAoYSwgYiwgYykgewogICAgICAgICAgICBkZWxldGUgYXJndW1lbnRzWzBdOwogICAgICAgICAgICBmdW5jdGlvbiBnZXRGdW5jKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDEwOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGZ1bmN0aW9uIHNldEZ1bmModmFsdWUpIHsKICAgICAgICAgICAgICAgIHRoaXMuc2V0VmVyaWZ5SGVscFByb3AgPSB2YWx1ZTsKICAgICAgICAgICAgfQogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdmFyIHZlcmlmeUZvcm1hbCA9IGEgPT09IDA7CiAgICAgICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiMCIsIGdldEZ1bmMsIHNldEZ1bmMsICJzZXRWZXJpZnlIZWxwUHJvcCIsIGZhbHNlLCBmYWxzZSkgJiYgdmVyaWZ5Rm9ybWFsOwogICAgICAgIH0oMC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B7CiAgICAgICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZnVuY3Rpb24gc2V0RnVuYyh2YWx1ZSkgewogICAgICAgICAgICAgICAgdGhpcy5zZXRWZXJpZnlIZWxwUHJvcCA9IHZhbHVlOwogICAgICAgICAgICB9CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZ3VtZW50cywgIjAiLCBnZXRGdW5jLCBzZXRGdW5jLCAic2V0VmVyaWZ5SGVscFByb3AiLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0oMCwgMSwgMikpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbk9iamVjdHMoKSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-302","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-302.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMwMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMDMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICduYW1lJyBpcyBhbiBpbmRleCBuYW1lZCBhY2Nlc3NvciBwcm9wZXJ0eSBvZiAnTycgYnV0IG5vdCBkZWZpbmVkIGluIFtbUGFyYW1ldGVyTWFwXV0gb2YgJ08nLCBhbmQgJ2Rlc2MnIGlzIGFjY2Vzc29yIGRlc2NyaXB0b3IsIHRlc3QgdXBkYXRpbmcgbXVsdGlwbGUgYXR0cmlidXRlIHZhbHVlcyBvZiAnbmFtZScgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXAgMykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHJldHVybiAoZnVuY3Rpb24gKCkgewogICAgICAgICAgICBmdW5jdGlvbiBnZXRGdW5jMSgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMDsKICAgICAgICAgICAgfQogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYzEsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICBmdW5jdGlvbiBnZXRGdW5jMigpIHsKICAgICAgICAgICAgICAgIHJldHVybiAyMDsKICAgICAgICAgICAgfQogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYzIsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgIC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ZXN0Y2FzZSgpIHsKICAgICAgICByZXR1cm4gKGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgIjAiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMjAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmd1bWVudHMsICIwIiwgMjAsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0oKSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-304","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-304.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMwNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMDUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICduYW1lJyBpcyBhbiBpbmRleCBuYW1lZCBkYXRhIHByb3BlcnR5IG9mICdPJyBidXQgbm90IGRlZmluZWQgaW4gW1tQYXJhbWV0ZXJNYXBdXSBvZiAnTycsIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHVwZGF0aW5nIHRoZSBbW1ZhbHVlXV0gYXR0cmlidXRlIHZhbHVlIG9mICduYW1lJyB3aGljaCBpcyBub3Qgd3JpdGFibGUgYW5kIG5vdCBjb25maWd1cmFibGUgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXAgNCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHJldHVybiAoZnVuY3Rpb24gKCkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAwLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMTAKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmd1bWVudHMsICIwIiwgMCwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0oKSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-305","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-305.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMwNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMDYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICduYW1lJyBpcyBhbiBpbmRleCBuYW1lZCBkYXRhIHByb3BlcnR5IG9mICdPJyBidXQgbm90IGRlZmluZWQgaW4gW1tQYXJhbWV0ZXJNYXBdXSBvZiAnTycsIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHVwZGF0aW5nIHRoZSBbW1dyaXRhYmxlXV0gYXR0cmlidXRlIHZhbHVlIG9mICduYW1lJyB3aGljaCBpcyBub3QgY29uZmlndXJhYmxlICgxMC42IFtbRGVmaW5lT3duUHJvcGVydHldXSBzdGVwIDQpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICByZXR1cm4gKGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgIjAiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMCwKICAgICAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICAgICAgcmV0dXJuIGUga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mplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAwLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZQogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZ3VtZW50cywgIjAiLCAwLCBmYWxzZSwgdHJ1ZSwgZmFsc2UpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9KCkpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-307","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-307.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMwOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMDguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICduYW1lJyBpcyBhbiBpbmRleCBuYW1lZCBkYXRhIHByb3BlcnR5IG9mICdPJyBidXQgbm90IGRlZmluZWQgaW4gW1tQYXJhbWV0ZXJNYXBdXSBvZiAnTycsIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHVwZGF0aW5nIHRoZSBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiAnbmFtZScgd2hpY2ggaXMgbm90IGNvbmZpZ3VyYWJsZSAoMTAuNiBbW0RlZmluZU93blByb3BlcnR5XV0gc3RlcCA0KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgcmV0dXJuIChmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmd1bWVudHMsICIwIiwgMCwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0oKSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-308","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-308.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMwOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMDkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICduYW1lJyBpcyBhbiBpbmRleCBuYW1lZCBhY2Nlc3NvciBwcm9wZXJ0eSBvZiAnTycgYnV0IG5vdCBkZWZpbmVkIGluIFtbUGFyYW1ldGVyTWFwXV0gb2YgJ08nLCB0ZXN0IFR5cGVFcnJvciBpcyB0aHJvd24gd2hlbiB1cGRhdGluZyB0aGUgW1tHZXRdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ25hbWUnIHdoaWNoIGlzIG5vdCBjb25maWd1cmFibGUgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXAgNCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHJldHVybiAoZnVuY3Rpb24gKCkgewogICAgICAgICAgICBmdW5jdGlvbiBnZXRGdW5jMSgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgICAgICB9CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBnZXRGdW5jMSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYzIoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYzIKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiMCIsIGdldEZ1bmMxLCB1bmRlZmluZWQsIHVuZGVmaW5lZCwgZmFsc2UsIGZhbHNlKTsKICAgICAgICAgICAgfQogICAgICAgIH0oKSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uT2JqZWN0cygpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-309","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-309.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTMxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICduYW1lJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgd2l0aG91dCBhIGdldCBmdW5jdGlvbiB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkoOC4xMi45IHN0ZXAgMSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBwcm90byA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgImZvbyIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7IH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uc3RydWN0RnVuID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbnN0cnVjdEZ1bi5wcm90b3R5cGUgPSBwcm90bzsKICAgICAgICB2YXIgb2JqID0gbmV3IENvbnN0cnVjdEZ1bigpOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKCkgeyB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZ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maW5lZCwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgZnVuY3Rpb24gc2V0RnVuYyh2YWx1ZSkgewogICAgICAgICAgICAgICAgdGhpcy5zZXRWZXJpZnlIZWxwUHJvcCA9IHZhbHVlOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiMCIsIHsKICAgICAgICAgICAgICAgICAgICBzZXQ6IHNldEZ1bmMKICAgICAgICAgICAgICAgIH0pOyAgICAgICAgICAgIAogICAgICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiMCIsIGdldEZ1bmMsIHVuZGVmaW5lZCwgdW5kZWZpbmVkLCBmYWxzZSwgZmFsc2UpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9KCkpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbk9iamVjdHMoKSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-310","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-310.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMxM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dmFsdWUgb2YgJ25hbWUnIHdoaWNoIGlzIG5vdCBjb25maWd1cmFibGUgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXAgNCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHJldHVybiAoZnVuY3Rpb24gKCkgewogICAgICAgICAgICBmdW5jdGlvbiBnZXRGdW5jKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDA7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgIjAiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICIwIiwgewogICAgICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmd1bWVudHMsICIwIiwgZ2V0RnVuYywgdW5kZWZpbmVkLCB1bmRlZmluZWQsIHRydWUsIGZhbHNlKTsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSgpKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5TdXBwb3J0c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ICAgICAgIHJldHVybiAoZnVuY3Rpb24gKGEsIGIsIGMpIHsKICAgICAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYygpIHsKICAgICAgICAgICAgICAgIHJldHVybiAiZ2V0RnVuY3Rpb25TdHJpbmciOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGZ1bmN0aW9uIHNldEZ1bmModmFsdWUpIHsKICAgICAgICAgICAgICAgIHRoaXMudGVzdGdldEZ1bmN0aW9uID0gdmFsdWU7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgImdlbmVyaWNQcm9wZXJ0eSIsIHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiZ2VuZXJpY1Byb3BlcnR5IiwgZ2V0RnVuYywgc2V0RnVuYywgInRlc3RnZXRGdW5jdGlvbiIsIHRydWUsIHRydWUpOwogICAgICAgICAgICB9KDEsIDIsIDMpKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-314-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-314-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMxNC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KGFyZ3VtZW50cywgImdlbmVyaWNQcm9wZXJ0eSIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAxMDAxOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICAgICAgdGhpcy50ZXN0Z2V0RnVuY3Rpb24xID0gdmFsdWU7CiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYygpIHsKICAgICAgICAgICAgICAgIHJldHVybiAiZ2V0RnVuY3Rpb25TdHJpbmciOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGZ1bmN0aW9uIHNldEZ1bmModmFsdWUpIHsKICAgICAgICAgICAgICAgIHRoaXMudGVzdGdldEZ1bmN0aW9uID0gdmFsdWU7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgImdlbmVyaWNQcm9wZXJ0eSIsIHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdmFyIHZlcmlmeUZvcm1hbCA9IGMgPT09IDM7CiAgICAgICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiZ2VuZXJpY1Byb3BlcnR5IiwgZ2V0RnVuYywgc2V0RnVuYywgInRlc3RnZXRGdW5jdG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sKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgICAgIHRoaXMudGVzdGdldEZ1bmN0aW9uMSA9IHZhbHVlOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIGZ1bmN0aW9uIGdldEZ1bmMoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gImdldEZ1bmN0aW9uU3RyaW5nIjsKICAgICAgICAgICAgfQogICAgICAgICAgICBmdW5jdGlvbiBzZXRGdW5jKHZhbHVlKSB7CiAgICAgICAgICAgICAgICB0aGlzLnRlc3RnZXRGdW5jdGlvbiA9IHZhbHVlOwogICAgICAgICAgICB9CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICJnZW5lcmljUHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiZ2VuZXJpY1Byb3BlcnR5IiwgZ2V0RnVuYywgc2V0RnVuYywgInRlc3RnZXRGdW5jdGlvbiIsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfSgxLCAyLCAzKSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUH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d25Qcm9wZXJ0eV1dIHN0ZXAgMykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHJldHVybiAoZnVuY3Rpb24gKCkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiZ2VuZXJpY1Byb3BlcnR5IiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDEwMDEsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICJnZW5lcmljUHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTAwMiwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZ3VtZW50cywgImdlbmVyaWNQcm9wZXJ0eSIsIDEwMDIsIHRydWUsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfSgxLCAyLCAzKSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-316","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-316.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMxNy0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0Z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W5jdGlvbiAoKSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICJnZW5lcmljUHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTAwMSwKICAgICAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiZ2VuZXJpY1Byb3BlcnR5IiwgewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAxMDAyCiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgICAgICAgICAgICBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmd1bWVudHMsICJnZW5lcmljUHJvcGVydHkiLCAxMDAxLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSgxLCAyLCAzKSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-317","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-317.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMxOC0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjM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mYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSgxLCAyLCAzKSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-318-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-318-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMxOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMTguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICduYW1lJyBpcyBnZW5lcmljIG93biBkYXRhIHByb3BlcnR5IG9mICdPJywgdGVzdCBUeXBlRXJyb3IgaXMgdGhyb3duIHdoZW4gdXBkYXRpbmcgdGhlIFtbV3JpdGFibGVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ25hbWUnIHdoaWNoIGlzIG5vdCBjb25maWd1cmFibGUgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXAgNCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHJldHVybiAoZnVuY3Rpb24gKCkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiZ2VuZXJpY1Byb3BlcnR5IiwgewogICAgICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICJnZW5lcmljUHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJgogICAgICAgICAgICAgICAgICAgIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZ3VtZW50cywgImdlbmVyaWNQcm9wZXJ0eSIsIHVuZGVmaW5lZCwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0oMSwgMiwgMykpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-318","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-318.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMxOS0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTMxOS0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcmd1bWVudHMgb2JqZWN0IG9mIGEgZnVuY3Rpb24gdGhhdCBoYXMgZm9ybWFsIHBhcmFtZXRlcnMsICdQJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSBvZiAnTycsIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHVwZGF0aW5nIHRoZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ1AnIHdoaWNoIGlzIG5vdCBjb25maWd1cmFibGUgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXAgNCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHJldHVybiAoZnVuY3Rpb24gKGEsIGIsIGMpIHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgImdlbmVyaWNQcm9wZXJ0eSIsIHsKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICB0cnkgewogICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgImdlbmVyaWNQcm9wZXJ0eSIsIHsKICAgICAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZQogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmCiAgICAgICAgICAgICAgICAgICAgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiZ2VuZXJpY1Byb3BlcnR5IiwgdW5kZWZpbmVkLCBmYWxzZSwgdHJ1ZSwgZmFsc2UpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9KDEsIDIsIDMpKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-319-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-319-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMxOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMTkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICdQJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSBvZiAnTycsIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHVwZGF0aW5nIHRoZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ1AnIHdoaWNoIGlzIG5vdCBjb25maWd1cmFibGUgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXAgNCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHJldHVybiAoZnVuY3Rpb24gKCkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiZ2VuZXJpY1Byb3BlcnR5IiwgewogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiZ2VuZXJpY1Byb3BlcnR5IiwgewogICAgICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlCiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgICAgICAgICAgICBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmd1bWVudHMsICJnZW5lcmljUHJvcGVydHkiLCB1bmRlZmluZWQsIGZhbHNlLCB0cnVlLCBmYWxzZSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0oMSwgMiwgMykpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-319","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-319.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTMyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICduYW1lJyBpcyBhbiBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkgd2l0aG91dCBhIGdldCBmdW5jdGlvbiAoOC4xMi45IHN0ZXAgMSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBwcm90byA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgImZvbyIsIHsKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAoKSB7IH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKC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m90IGNvbmZpZ3VyYWJsZSAoMTAuNiBbW0RlZmluZU93blByb3BlcnR5XV0gc3RlcCA0KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgcmV0dXJuIChmdW5jdGlvbiAoYSwgYiwgYykgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiZ2VuZXJpY1Byb3BlcnR5IiwgewogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICJnZW5lcmljUHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgICAgICAgICAgICBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmd1bWVudHMsICJnZW5lcmljUHJvcGVydHkiLCB1bmRlZmluZWQsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9KDEsIDIsIDMpKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-320-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-320-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMyM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ICAgICAgICBmdW5jdGlvbiBzZXRGdW5jKHZhbHVlKSB7CiAgICAgICAgICAgICAgICB0aGlzLmhlbHBWZXJpZnlHZXQgPSB2YWx1ZTsKICAgICAgICAgICAgfQogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJndW1lbnRzLCAiZ2VuZXJpY1Byb3BlcnR5IiwgewogICAgICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICJnZW5lcmljUHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAib3ZlcmlkZUdlbmVyaWNQcm9wZXJ0eVN0cmluZyI7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgICAgIHZhciB2ZXJpZnlGb3JtYWwgPSBhID09PSAxOwogICAgICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgICAgICAgICAgICBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiZ2VuZXJpY1Byb3BlcnR5IiwgZ2V0RnVuYywgc2V0RnVuYywgImhlbHBWZXJpZnlHZXQiLCBmYWxzZSwgZmFsc2UsIGZhbHNlKSAmJiB2ZXJpZnlGb3JtYWw7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0oMSwgMiwgMykpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-321-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-321-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMyMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMjEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICdQJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgb2YgJ08nLCB0ZXN0IFR5cGVFcnJvciBpcyB0aHJvd24gd2hlbiB1cGRhdGluZyB0aGUgW1tHZXRdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ1AnIHdoaWNoIGlzIG5vdCBjb25maWd1cmFibGUgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXAgNCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHJldHVybiAoZnVuY3Rpb24gKCkgewogICAgICAgICAgICBmdW5jdGlvbiBnZXRGdW5jKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJnZW5lcmljUHJvcGVydHlTdHJpbmciOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGZ1bmN0aW9uIHNldEZ1bmModmFsdWUpIHsKICAgICAgICAgICAgICAgIHRoaXMuaGVscFZlcmlmeUdldCA9IHZhbHVlOwogICAgICAgICAgICB9CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICJnZW5lcmljUHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICB0cnkgewogICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgImdlbmVyaWNQcm9wZXJ0eSIsIHsKICAgICAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICJvdmVyaWRlR2VuZXJpY1Byb3BlcnR5U3RyaW5nIjsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgICAgICAgICAgICBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiZ2VuZXJpY1Byb3BlcnR5IiwgZ2V0RnVuYywgc2V0RnVuYywgImhlbHBWZXJpZnlHZXQiLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSgxLCAyLCAzKSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-321","path":"TestCases/chapter15/15.2/15.2.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WVudHMsICJnZW5lcmljUHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5nZW5lcmljUHJvcGVydHlTdHJpbmcxID0gdmFsdWU7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmCiAgICAgICAgICAgICAgICAgICAgYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZ3VtZW50cywgImdlbmVyaWNQcm9wZXJ0eSIsIHVuZGVmaW5lZCwgc2V0RnVuYywgImdlbmVyaWNQcm9wZXJ0eVN0cmluZyIsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9KDEsIDIsIDMpKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-322-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-322-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMyMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMjIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnR5IC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICdQJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgb2YgJ08nLCB0ZXN0IFR5cGVFcnJvciBpcyB0aHJvd24gd2hlbiB1cGRhdGluZyB0aGUgW1tTZXRdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ1AnIHdoaWNoIGlzIG5vdCBjb25maWd1cmFibGUgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXAgNCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHJldHVybiAoZnVuY3Rpb24gKCkgewogICAgICAgICAgICBmdW5jdGlvbiBzZXRGdW5jKHZhbHVlKSB7CiAgICAgICAgICAgICAgICB0aGlzLmdlbmVyaWNQcm9wZXJ0eVN0cmluZyA9IHZhbHVlOwogICAgICAgICAgICB9CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICJnZW5lcmljUHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICB0cnkgewogICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgImdlbmVyaWNQcm9wZXJ0eSIsIHsKICAgICAgICAgICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmdlbmVyaWNQcm9wZXJ0eVN0cmluZzEgPSB2YWx1ZTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgICAgICAgICAgICB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BlcnR5XV0gc3RlcCA0KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgcmV0dXJuIChmdW5jdGlvbiAoYSwgYiwgYykgewogICAgICAgICAgICBmdW5jdGlvbiBzZXRGdW5jKHZhbHVlKSB7CiAgICAgICAgICAgICAgICB0aGlzLmdlbmVyaWNQcm9wZXJ0eVN0cmluZyA9IHZhbHVlOwogICAgICAgICAgICB9CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICJnZW5lcmljUHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICJnZW5lcmljUHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgICAgICB2ZXJpZnlGb3JtYWwgPSBjID09PSAzOwogICAgICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgICAgICAgICAgICBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJndW1lbnRzLCAiZ2VuZXJpY1Byb3BlcnR5IiwgdW5kZWZpbmVkLCBzZXRGdW5jLCAiZ2VuZXJpY1Byb3BlcnR5U3RyaW5nIiwgdHJ1ZSwgZmFsc2UpICYmIHZlcmlmeUZvcm1hbDsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSgxLCAyLCAzKS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sKICAgICAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICB0cnkgewogICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgImdlbmVyaWNQcm9wZXJ0eSIsIHsKICAgICAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZQogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmCiAgICAgICAgICAgICAgICAgICAgYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZ3VtZW50cywgImdlbmVyaWNQcm9wZXJ0eSIsIHVuZGVmaW5lZCwgc2V0RnVuYywgImdlbmVyaWNQcm9wZXJ0eVN0cmluZyIsIHRydWUsIGZhbHNlKTsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSgxLCAyLCAzKSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-323","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-323.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMyNC0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMu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eV1dIHN0ZXAgNCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHJldHVybiAoZnVuY3Rpb24gKCkgewogICAgICAgICAgICBmdW5jdGlvbiBzZXRGdW5jKHZhbHVlKSB7CiAgICAgICAgICAgICAgICB0aGlzLmdlbmVyaWNQcm9wZXJ0eVN0cmluZyA9IHZhbHVlOwogICAgICAgICAgICB9CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmd1bWVudHMsICJnZW5lcmljUHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICB0cnkgewogICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZ3VtZW50cywgImdlbmVyaWNQcm9wZXJ0eSIsIHsKICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJgogICAgICAgICAgICAgICAgICAgIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmd1bWVudHMsICJnZW5lcmljUHJvcGVydHkiLCB1bmRlZmluZWQsIHNldEZ1bmMsICJnZW5lcmljUHJvcGVydHlTdHJpbmciLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSgxLCAyLCAzKSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuR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mosIDAsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgICAgICByZXR1cm4gMTI7CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIGFyZ09ialswXSA9PT0gMTIgJiYgYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uT2JqZWN0cygpOwogICAgfQp9KTsK","id":"15.2.3.6-4-325","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-325.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMyNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMjYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIHRydWUsIFtbRW51bWVyYWJsZV1dIGlzIHRydWUsIFtbQ29uZmlndXJhYmxlXV0gaXMgdHJ1ZSkgaXMgd3JpdGFibGUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAyMDEwLAogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IChvYmoucHJvcCA9PT0gMjAxMCk7CiAgICAgICAgb2JqLnByb3AgPSAxMDAxOwoKICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIG9iai5wcm9wID09PSAxMDAxOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-326","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-326.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMyNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMjcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIHRydWUsIFtbRW51bWVyYWJsZV1dIGlzIHRydWUsIFtbQ29uZmlndXJhYmxlXV0gaXMgdHJ1ZSkgaXMgZW51bWVyYWJsZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IDIwMTAsCiAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICBmb3IgKHZhciBwcm9wZXJ0eSBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3BlcnR5ID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYy5lbnVtZXJhYmxlID09PSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-327","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-327.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMyOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMjguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIHRydWUsIFtbRW51bWVyYWJsZV1dIGlzIHRydWUsIFtbQ29uZmlndXJhYmxlXV0gaXMgdHJ1ZSkgaXMgZGVsZXRhYmxlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMjAxMCwKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHZhciBiZWZvcmVEZWxldGUgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICBkZWxldGUgb2JqLnByb3A7CiAgICAgICAgdmFyIGFmdGVyRGVsZXRlID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgcmV0dXJuIGJlZm9yZURlbGV0ZSAmJiAhYWZ0ZXJEZWxldGU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-328","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-328.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMyOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMjkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBzdWNjZXNzIHRvIHVwZGF0ZSBbW1dyaXRhYmxlXV0gYXR0cmlidXRlIG9mIGRhdGEgcHJvcGVydHkgKFtbV3JpdGFibGVdXSBpcyB0cnVlLCBbW0VudW1lcmFibGVdXSBpcyB0cnVlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIHRydWUpIHRvIGRpZmZlcmVudCB2YWx1ZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IDIwMTAsCiAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiBkZXNjMS53cml0YWJsZSA9PT0gdHJ1ZSAmJiBvYmoucHJvcCA9PT0gMjAxMCAmJiBkZXNjMi53cml0YWJsZSA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-329","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-329.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTMzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhIEZ1bmN0aW9uIG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRPd25Qcm9wZXJ0eV1dIG1ldGhvZCB0byBhY2Nlc3MgdGhlICduYW1lJyBwcm9wZXJ0eSAoOC4xMi45IHN0ZXAgMSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBmdW4gPSBmdW5jdGlvbiAoKSB7IH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShmdW4sICJmb28iLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMiwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoZnVuLCAiZm9vIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDExLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBmdW4uZm9vID09PSAxMjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-33","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-33.js"},{"code":"RVM1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J1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2MxLmNvbmZpZ3VyYWJsZSA9PT0gdHJ1ZSAmJiBvYmoucHJvcCA9PT0gMjAxMCAmJiBkZXNjMi5jb25maWd1cmFibGUgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-331","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-331.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMzMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMzIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBz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0eShvYmosICIwIiwgewogICAgICAgICAgICB2YWx1ZTogMTAwMgogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiMCIsIDEwMDIsIHRydWUsIGZhbHNlLCBmYWxzZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTs=","id":"15.2.3.6-4-333-8","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-333-8.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZCAKLy8vICAgICAgdGhlIGZvbGxvd2luZyBkaXNjbGFpbWVyIGluIHRoZSBkb2N1bWVudGF0aW9uIGFuZC9vciBv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9IChvYmoucHJvcCA9PT0gMjAxMCk7CiAgICAgICAgb2JqLnByb3AgPSAxMDAxOwoKICAgICAgICByZXR1cm4gdmVyaWZ5VmFsdWUgJiYgb2JqLnByb3AgPT09IDEwMDE7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-333-9","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-333-9.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMzMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMzMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIHRydWUsIFtbRW51bWVyYWJsZV1dIGlzIHRydWUsIFtbQ29uZmlndXJhYmxlXV0gaXMgZmFsc2UpIGlzIHdyaXRhYmxlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMjAxMCwKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gKG9iai5wcm9wID09PSAyMDEwKTsKICAgICAgICBvYmoucHJvcCA9IDEwMDE7CgogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgb2JqLnByb3AgPT09IDEwMDE7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-333","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-333.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMzNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMzQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIHRydWUsIFtbRW51bWVyYWJsZV1dIGlzIHRydWUsIFtbQ29uZmlndXJhYmxlXV0gaXMgZmFsc2UpIGlzIGVudW1lcmFibGUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAyMDEwLAogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgIGZvciAodmFyIHAgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYy5lbnVtZXJhYmxlID09PSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-334","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-334.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMzNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMzUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIHRydWUsIFtbRW51bWVyYWJsZV1dIGlzIHRydWUsIFtbQ29uZmlndXJhYmxlXV0gaXMgZmFsc2UpIGlzIHVuZGVsZXRhYmxlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMjAxMCwKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgYmVmb3JlRGVsZXRlID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgZGVsZXRlIG9iai5wcm9wOwogICAgICAgIHZhciBhZnRlckRlbGV0ZSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIHJldHVybiBiZWZvcmVEZWxldGUgJiYgb2JqLnByb3AgPT09IDIwMTAgJiYgYWZ0ZXJEZWxldGU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-335","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-335.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMzNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMzYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBTdWNjZXNzIHRvIHVwZGF0ZSBbW1dyaXRhYmxlXV0gYXR0cmlidXRlIG9mIGRhdGEgcHJvcGVydHkgKFtbV3JpdGFibGVdXSBpcyB0cnVlLCBbW0VudW1lcmFibGVdXSBpcyB0cnVlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIGZhbHNlKSB0byBkaWZmZXJlbnQgdmFsdWUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAyMDEwLAogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2MxLndyaXRhYmxlID09PSB0cnVlICYmIG9iai5wcm9wID09PSAyMDEwICYmIGRlc2MyLndyaXRhYmxlID09PSBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-336","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-336.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMzNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMzcuanMiLAoKICAgIGRlc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ZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiBkZXNjMS5jb25maWd1cmFibGUgPT09IGZhbHNlICYmIG9iai5wcm9wID09PSAyMDEwICYmIGRlc2MyLmNvbmZpZ3VyYWJsZSA9PT0gZmFsc2UgJiYgZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-338","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-338.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMzOS0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xN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EpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0gKGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIGFyZ3VtZW50czsKICAgICAgICB9KCkpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IDIwMTAsCiAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICBmdW5jdGlvbiBnZXRGdW5jKCkgewogICAgICAgICAgICByZXR1cm4gMjA7CiAgICAgICAgfQogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgZ2V0OiBnZXRGdW5jCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiBkZXNjMS52YWx1ZSA9PT0gMjAxMCAmJiBvYmoucHJvcCA9PT0gMjAxMCAmJiB0eXBlb2YgZGVzYzIuZ2V0ID09PSAidW5kZWZpbmVkIiAmJiBlIGluc3RhbmNlb2YgVHl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ogICAgICAgIH0pOwogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYygpIHsKICAgICAgICAgICAgcmV0dXJuIDIwOwogICAgICAgIH0KICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYwogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYzEudmFsdWUgPT09IDIwMTAgJiYgb2JqLnByb3AgPT09IDIwMTAgJiYKICAgICAgICAgICAgICAgIHR5cGVvZiBkZXNjMi5nZXQgPT09ICJ1bmRlZmluZWQiICYmIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-339-3","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-339-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yL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N0LmRlZmluZVByb3BlcnR5KG9iaiwgIjAiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldEZ1bmMKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAiMCIpOwogICAgICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2MxLnZhbHVlID09PSAyMDEwICYmIG9ialswXSA9PT0gMjAxMCAmJgogICAgICAgICAgICAgICAgdHlwZW9mIGRlc2MyLmdldCA9PT0gInVuZGVmaW5lZCIgJiYgZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-339-4","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-339-4.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTMzOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zMzkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSB0aGUgZGF0YSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIHRydWUsIFtbRW51bWVyYWJsZV1dIGlzIHRydWUsIFtbQ29uZmlndXJhYmxlXV0gaXMgZmFsc2UpIHRvIGFuIGFjY2Vzc29yIHByb3BlcnR5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMjAxMCwKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIGZ1bmN0aW9uIGdldEZ1bmMoKSB7CiAgICAgICAgICAgIHJldHVybiAyMDsKICAgICAgICB9CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldEZ1bmMKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2MxLnZhbHVlID09PSAyMDEwICYmIG9iai5wcm9wID09PSAyMDEwICYmIHR5cGVvZiBkZXNjMi5nZXQgPT09ICJ1bmRlZmluZWQiICYmIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-339","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-339.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTM0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcnJheSBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0T3duUHJvcGVydHldXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnbmFtZScgcHJvcGVydHkgKDguMTIuOSBzdGVwIDEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnJPYmosICJmb28iLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMiwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyT2JqLCAiZm9vIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDExLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBhcnJPYmouZm9vID09PSAxMjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-34","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-34.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM0MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNDAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIHRydWUsIFtbRW51bWVyYWJsZV1dIGlzIGZhbHNlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIHRydWUpIGlzIHdyaXRhYmxlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMjAxMCwKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gKG9iai5wcm9wID09PSAyMDEwKTsKICAgICAgICBvYmoucHJvcCA9IDEwMDE7CgogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgb2JqLnByb3AgPT09IDEwMDE7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-340","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-340.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM0MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNDEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIHRydWUsIFtbRW51bWVyYWJsZV1dIGlzIGZhbHNlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIHRydWUpIGlzIG5vbi1lbnVtZXJhYmxlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMjAxMCwKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICBmb3IgKHZhciBwIGluIG9iaikgewogICAgICAgICAgICBpZiAocCA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiBkZXNjLmVudW1lcmFibGUgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-341","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-341.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM0MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNDIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIHRydWUsIFtbRW51bWVyYWJsZV1dIGlzIGZhbHNlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIHRydWUpIGlzIGRlbGV0YWJsZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IDIwMTAsCiAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdm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ZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2MxLndyaXRhYmxlID09PSB0cnVlICYmIG9iai5wcm9wID09PSAyMDEwICYmIGRlc2MyLndyaXRhYmxlID09PSBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-343","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-343.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM0NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNDQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBzdWNjZXNzIHRvIHVwZGF0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0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-344","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-344.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM0NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNDUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBzdWNjZXNzIHRvIHVwZGF0ZSBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSBvZiBkYXRhIHByb3BlcnR5IChbW1dyaXRhYmxlXV0gaXMgdHJ1ZSwgW1tFbnVtZXJhYmxlXV0gaXMgZmFsc2UsIFtbQ29uZmlndXJhYmxlXV0gaXMgdHJ1ZSkgdG8gZGlmZmVyZW50IHZhbHVlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMjAxMCwKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYzEuY29uZmlndXJhYmxlID09PSB0cnVlICYmIG9iai5wcm9wID09PSAyMDEwICYmIGRlc2MyLmNvbmZpZ3VyYWJsZSA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-345","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-345.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM0NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNDYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBzdWNjZXNzIHRvIHVwZGF0ZSB0aGUgZGF0YSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIHRydWUsIFtbRW51bWVyYWJsZV1dIGlzIGZhbHNlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIHRydWUpIHRvIGFuIGFjY2Vzc29yIHByb3BlcnR5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMjAxMCwKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYygpIHsKICAgICAgICAgICAgcmV0dXJuIDIwOwogICAgICAgIH0KICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBkZXNjMS5oYXNPd25Qcm9wZXJ0eSgidmFsdWUiKSAmJiBkZXNjMi5oYXNPd25Qcm9wZXJ0eSgiZ2V0Iik7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-346","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-346.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM0NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNDcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIHRydWUsIFtbRW51bWVyYWJsZV1dIGlzIGZhbHNlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIGZhbHNlKSBpcyB3cml0YWJsZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IDIwMTAsCiAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSAob2JqLnByb3AgPT09IDIwMTApOwogICAgICAgIG9iai5wcm9wID0gMTAwMTsKCiAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiBvYmoucHJvcCA9PT0gMTAwMTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-347","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-347.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM0OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNDguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIHRydWUsIFtbRW51bWVyYWJsZV1dIGlzIGZhbHNlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIGZhbHNlKSBpcyBub24tZW51bWVyYWJsZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IDIwMTAsCiAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgIGZvciAodmFyIHAgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2MuZW51bWVyYWJsZSA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-348","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-348.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM0OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNDkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIHRydWUsIFtbRW51bWVyYWJsZV1dIGlzIGZhbHNlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIGZhbHNlKSBpcyB1bmRlbGV0YWJsZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IDIwMTAsCiAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBiZWZvcmVEZWxldGUgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICBkZWxldGUgb2JqLnByb3A7CiAgICAgICAgdmFyIGFmdGVyRGVsZXRlID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgcmV0dXJuIGJlZm9yZURlbGV0ZSAmJiBvYmoucHJvcCA9PT0gMjAxMCAmJiBhZnRlckRlbGV0ZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-349","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-349.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTM1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhIFN0cmluZyBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0T3duUHJvcGVydHldXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnbmFtZScgcHJvcGVydHkgKDguMTIuOSBzdGVwIDEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgc3RyID0gbmV3IFN0cmluZygiYWJjIik7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShzdHIsICJmb28iLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMiwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoc3RyLCAiZm9vIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDExLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBzdHIuZm9vID09PSAxMjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-35","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-35.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM1MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNTAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSBbW1dyaXRhYmxlXV0gYXR0cmlidXRlIG9mIGRhdGEgcHJvcGVydHkgKFtbV3JpdGFibGVdXSBpcyB0cnVlLCBbW0VudW1lcmFibGVdXSBpcyBmYWxzZSwgW1tDb25maWd1cmFibGVdXSBpcyBmYWxzZSkgdG8gZGlmZmVyZW50IHZhbHVlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMjAxMCwKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFy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ICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2MxLmVudW1lcmFibGUgPT09IGZhbHNlICYmIG9iai5wcm9wID09PSAyMDEwICYmIGRlc2MyLmVudW1lcmFibGUgPT09IGZhbHNlICYmIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-351","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-351.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogIC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AgdmFsdWU6IDIwMTAsCiAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYygpIHsKICAgICAgICAgICAgcmV0dXJuIDIwOwogICAgICAgIH0KICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYwogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYzEudmFsdWUgPT09IDIwMTAgJiYgb2JqLnByb3AgPT09IDIwMTAgJiYgdHlwZW9mIGRlc2MyLmdldCA9PT0gInVuZGVmaW5lZCIgJiYgZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-353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ogMTAwMgogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICIwIiwgMTAwMiwgZmFsc2UsIGZhbHNlLCB0cnVlKTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgb2JqWzBdOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOw==","id":"15.2.3.6-4-354-13","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-354-13.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZCAKLy8vICAgICAgdGhlIGZvbGxvd2luZyBkaXNjb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ZmFsc2UsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHZhciB2YWx1ZVZlcmlmeSA9IChvYmpbMF0gPT09IDIwMTApOwogICAgICAgIG9ialswXSA9IDEwMDE7CgogICAgICAgIHJldHVybiB2YWx1ZVZlcmlmeSAmJiBvYmpbMF0gPT09IDIwMTA7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTs=","id":"15.2.3.6-4-354-16","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-354-16.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZCAKLy8vICA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AicHJvcGVydHkiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMDAxLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMDAyCiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJwcm9wZXJ0eSIsIDEwMDIsIGZhbHNlLCBmYWxzZSwgdHJ1ZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTs=","id":"15.2.3.6-4-354-3","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-354-3.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnM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Ck7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMDAxLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDEwMDIKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAicHJvcGVydHkiLCAxMDAyLCBmYWxzZSwgZmFsc2UsIHRydWUpOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7","id":"15.2.3.6-4-354-4","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-354-4.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNv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JsZSB1c2luZyBzaW1wbGUgYXNzaWdubWVudCwgJ0EnIGlzIGFuIEFycmF5IG9iamVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiMCIsIHsKICAgICAgICAgICAgdmFsdWU6IDIwMTAsCiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIHZlcmlmeVZhbHVlID0gKG9ialswXSA9PT0gMjAxMCk7CiAgICAgICAgb2JqWzBdID0gMTAwMTsKCiAgICAgICAgcmV0dXJuIHZlcmlmeVZhbHVlICYmIG9ialswXSA9PT0gMjAxMDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOw==","id":"15.2.3.6-4-354-6","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-354-6.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3Z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XMgYW4gQXJndW1lbnRzIG9iamVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IChmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiBhcmd1bWVudHM7CiAgICAgICAgfSgpKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAyMDEwLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHZhciB2YWx1ZVZlcmlmeSA9IChvYmoucHJvcCA9PT0gMjAxMCk7CiAgICAgICAgb2JqLnByb3AgPSAxMDAxOwoKICAgICAgICByZXR1cm4gdmFsdWVWZXJpZnkgJiYgb2JqLnByb3AgPT09IDIwMTA7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTs=","id":"15.2.3.6-4-354-7","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-354-7.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZ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UgYXNzaWdubWVudCwgJ08nIGlzIHRoZSBnbG9iYWwgb2JqZWN0IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0gZm5HbG9iYWxPYmplY3QoKTsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAyMDEwLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdmFyIHZhbHVlVmVyaWZ5ID0gKG9iai5wcm9wID09PSAyMDEwKTsKICAgICAgICAgICAgb2JqLnByb3AgPSAxMDAxOwoKICAgICAgICAgICAgcmV0dXJuIHZhbHVlVmVyaWZ5ICYmIG9iai5wcm9wID09PSAyMDEwOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBvYmoucHJvcDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTs=","id":"15.2.3.6-4-354-8","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-354-8.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM1NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNTQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIGZhbHNlLCBbW0VudW1lcmFibGVdXSBpcyB0cnVlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIHRydWUpIGlzIHVud3JpdGFibGUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAyMDEwLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSAob2JqLnByb3AgPT09IDIwMTApOwogICAgICAgIG9iai5wcm9wID0gMTAwMTsKCiAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiBvYmoucHJvcCA9PT0gMjAxMDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-354","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-354.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM1NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNTUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIGZhbHNlLCBbW0VudW1lcmFibGVdXSBpcyB0cnVlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIHRydWUpIGlzIGVudW1lcmFibGUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAyMDEwLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiBkZXNjLmVudW1lcmFibGUgPT09IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-355","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-355.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4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YzEud3JpdGFibGUgPT09IGZhbHNlICYmIG9iai5wcm9wID09PSAyMDEwICYmIGRlc2MyLndyaXRhYmxlID09PSB0cnVlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-357","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-357.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM1OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNTguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBzdWNjZXNzIHRvIHVwZGF0ZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUgb2YgZGF0YSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIGZhbHNlLCBbW0VudW1lcmFibGVdXSBpcyB0cnVlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIHRydWUpIHRvIGRpZmZlcmVudCB2YWx1ZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IDIwMTAsCiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICA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lcnR5IChbW1dyaXRhYmxlXV0gaXMgZmFsc2UsIFtbRW51bWVyYWJsZV1dIGlzIHRydWUsIFtbQ29uZmlndXJhYmxlXV0gaXMgdHJ1ZSkgdG8gZGlmZmVyZW50IHZhbHVlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMjAxMCwKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYzEuY29uZmlndXJhYmxlID09PSB0cnVlICYmIG9iai5wcm9wID09PSAyMDEwICYmIGRlc2MyLmNvbmZpZ3VyYWJsZSA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-359","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-359.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTM2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhIEJvb2xlYW4gb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldE93blByb3BlcnR5XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ25hbWUnIHByb3BlcnR5ICg4LjEyLjkgc3RlcCAxKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IG5ldyBCb29sZWFuKHRydWUpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICB2YWx1ZTogMTIsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgb2JqLmZvbyA9PT0gMTI7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246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RlcyBhcmUgW1tXcml0YWJsZV1dOiBmYWxzZSwgW1tFbnVtZXJhYmxlXV06IHRydWUsIFtbQ29uZmlndXJhYmxlXV06IHRydWUgdG8gYW4gYWNjZXNzb3IgcHJvcGVydHksICdPJyBpcyBhbiBBcmd1bWVudHMgb2JqZWN0ICg4LjEyLjkgLSBzdGVwIDkuYi5pKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IChmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiBhcmd1bWVudHM7CiAgICAgICAgfSgpKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAyMDEwLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICBmdW5jdGlvbiBnZXRGdW5jKCkgewogICAgICAgICAgICByZXR1cm4gMjA7CiAgICAgICAgfQogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMKICAgICAgICB9KTsKICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIGRlc2MxLmhhc093blByb3BlcnR5KCJ2YWx1ZSIpICYmIGRlc2MyLmhhc093blByb3BlcnR5KCJnZXQiKSAmJgogICAgICAgICAgICBkZXNjMi5lbnVtZXJhYmxlID09PSB0cnVlICYmIGRlc2MyLmNvbmZpZ3VyYWJ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WU6IDIwMTAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgICAgIGZ1bmN0aW9uIGdldEZ1bmMoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMjA7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldEZ1bmMKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICAgICAgcmV0dXJuIGRlc2MxLmhhc093blByb3BlcnR5KCJ2YWx1ZSIpICYmIGRlc2MyLmhhc093blByb3BlcnR5KCJnZXQiKSAmJgogICAgICAgICAgICAgICAgZGVzYzIuZW51bWVyYWJsZSA9PT0gdHJ1ZSAmJiBkZXNjMi5jb25maWd1cmFibGUgPT09IHRydWUgJiYKICAgICAgICAgICAgICAgIG9iai5wcm9wID09PSAyMCAmJiB0eXBlb2YgZGVzYzIuc2V0ID09PSAidW5kZWZpbmVkIiAmJiBkZXNjMi5nZXQgPT09IGdldEZ1bmM7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIG9iai5wcm9wOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-360-3","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-360-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM2MC01IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTM2MC01LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkVTNSBBdHRyaWJ1dGVzIC0gVXBkYXRpbmcgbmFtZWQgZGF0YSBwcm9wZXJ0eSAnUCcgd2hvc2UgYXR0cmlidXRlcyBhcmUgW1tXcml0YWJsZV1dOiBmYWxzZSwgW1tFbnVtZXJhYmxlXV06IHRydWUsIFtbQ29uZmlndXJhYmxlXV06IHRydWUgdG8gYW4gYWNjZXNzb3IgcHJvcGVydHksICdBJyBpcyBhbiBBcnJheSBvYmplY3QgKDguMTIuOSAtIHN0ZXAgOS5iLmkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMjAxMCwKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYygpIHsKICAgICAgICAgICAgcmV0dXJuIDIwOwogICAgICAgIH0KICAgICAgICBPYmplY3QuZGV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NlLCBbW0VudW1lcmFibGVdXTogdHJ1ZSwgW1tDb25maWd1cmFibGVdXTogdHJ1ZSB0byBhbiBhY2Nlc3NvciBwcm9wZXJ0eSwgJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QgKDguMTIuOSAtIHN0ZXAgOS5iLmkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0gKGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIGFyZ3VtZW50czsKICAgICAgICB9KCkpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiMCIsIHsKICAgICAgICAgICAgdmFsdWU6IDIwMTAsCiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICIwIik7CgogICAgICAgIGZ1bmN0aW9uIGdldEZ1bmMoKSB7CiAgICAgICAgICAgIHJldHVybiAyMDsKICAgICAgICB9CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgIjAiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYwogICAgICAgIH0pOwogICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAiMCIpOwoKICAgICAgICByZXR1cm4gZGVzYzEuaGFzT3duUHJvcGVydHkoInZhbHVlIikgJiYgZGVzYzIuaGFzT3duUHJvcGVydHkoImdldCIpICYmCiAgICAgICAgICAgIGRlc2MyLmVudW1lcmFibGUgPT09IHRydWUgJiYgZGVzYzIuY29uZmlndXJhYmxlID09PSB0cnVlICYmCiAgICAgICAgICAgIG9ialswXSA9PT0g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RhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAiMCIpOwoKICAgICAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYygpIHsKICAgICAgICAgICAgICAgIHJldHVybiAyMDsKICAgICAgICAgICAgfQogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiMCIsIHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYwogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICIwIik7CgogICAgICAgICAgICByZXR1cm4gZGVzYzEuaGFzT3duUHJvcGVydHkoInZhbHVlIikgJiYgZGVzYzIuaGFzT3duUHJvcGVydHkoImdldCIpICYmCiAgICAgICAgICAgICAgICBkZXNjMi5lbnVtZXJhYmxlID09PSB0cnVlICYmIGRlc2MyLmNvbmZpZ3VyYWJsZSA9PT0gdHJ1ZSAmJgogICAgICAgICAgICAgICAgb2JqWzBdID09PSAyMCAmJiB0eXBlb2YgZGVzYzIuc2V0ID09PSAidW5kZWZpbmVkIiAmJiBkZXNjMi5nZXQgPT09IGdldEZ1bmM7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIG9ialswXTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-360-7","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-360-7.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM2MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNjAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBzdWNjZXNzIHRvIHVwZGF0ZSB0aGUgZGF0YSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIGZhbHNlLCBbW0VudW1lcmFibGVdXSBpcyB0cnVlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIHRydWUpIHRvIGFuIGFjY2Vzc29yIHByb3BlcnR5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMjAxMCwKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYygpIHsKICAgICAgICAgICAgcmV0dXJuIDIwOwogICAgICAgIH0KICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBkZXNjMS5oYXNPd25Qcm9wZXJ0eSgidmFsdWUiKSAmJiBkZXNjMi5oYXNPd25Qcm9wZXJ0eSgiZ2V0Iik7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-360","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-360.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM2MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNjEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIGZhbHNlLCBbW0VudW1lcmFibGVdXSBpcyB0cnVlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIGZhbHNlKSBpcyB1bndyaXRhYmxlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMjAxMCwKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IChvYmoucHJvcCA9PT0gMjAxMCk7CiAgICAgICAgb2JqLnByb3AgPSAxMDAxOwoKICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIG9iai5wcm9wID09PSAyMDEwOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-361","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-361.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM2MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNjIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIGZhbHNlLCBbW0VudW1lcmFibGVdXSBpcyB0cnVlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIGZhbHNlKSBpcyBlbnVtZXJhYmxlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAyMDEwLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICBmb3IgKHZhciBwcm9wZXJ0eSBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3BlcnR5ID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYy5lbnVtZXJhYmxlID09PSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-362","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-362.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM2MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNjMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIGZhbHNlLCBbW0VudW1lcmFibGVdXSBpcyB0cnVlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIGZhbHNlKSBpcyB1bmRlbGV0YWJsZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU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ICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMjAxMCwKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYzEud3JpdGFibGUgPT09IGZhbHNlICYmIG9iai5wcm9wID09PSAyMDEwICYmIGRlc2MyLndyaXRhYmxlID09PSBmYWxzZSAmJiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-364","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-364.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM2NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNjUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUgb2YgZGF0YSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIGZhbHNlLCBbW0VudW1lcmFibGVdXSBpcyB0cnVlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIGZhbHNlKSB0byBkaWZmZXJlbnQgdmFsdWUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAyMDEwLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZQogICAgICAgICA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b24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IDIwMTAsCiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiBkZXNjMS5jb25maWd1cmFibGUgPT09IGZhbHNlICYmIG9iai5wcm9wID09PSAyMDEwICYmIGRlc2MyLmNvbmZpZ3VyYWJsZSA9PT0gZmFsc2UgJiYgZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOyAKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-366","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-366.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM2NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNjcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSB0aGUgZGF0YSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIGZhbHNlLCBbW0VudW1lcmFibGVdXSBpcyB0cnVlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIGZhbHNlKSB0byBhbiBhY2Nlc3NvciBwcm9wZXJ0eSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IDIwMTAsCiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYygpIHsKICAgICAgICAgICAgcmV0dXJuIDIwOwogICAgICAgIH0KICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYwogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYzEudmFsdWUgPT09IDIwMTAgJiYgb2JqLnByb3AgPT09IDIwMTAgJiYgdHlwZW9mIGRlc2MyLmdldCA9PT0gInVuZGVmaW5lZCIgJiYgZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-367","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-367.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM2OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNjguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIGZhbHNlLCBbW0VudW1lcmFibGVdXSBpcyBmYWxzZSwgW1tDb25maWd1cmFibGVdXSBpcyB0cnVlKSBpcyB1bndyaXRhYmxlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMjAxMCwKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IChvYmoucHJvcCA9PT0gMjAxMCk7CiAgICAgICAgb2JqLnByb3AgPSAxMDAxOwoKICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIG9iai5wcm9wID09PSAyMDEwOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-368","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-368.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM2OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNjkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIGZhbHNlLCBbW0VudW1lcmFibGVdXSBpcyBmYWxzZSwgW1tDb25maWd1cmFibGVdXSBpcyB0cnVlKSBpcyBub24tZW51bWVyYWJsZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IDIwMTAsCiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgIGZvciAodmFyIHAgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2MuZW51bWVyYWJsZSA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-369","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-369.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTM3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhIE51bWJlciBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0T3duUHJvcGVydHldXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnbmFtZScgcHJvcGVydHkgKDguMTIuOSBzdGVwIDEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0gbmV3IE51bWJlcigtMik7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMiwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDExLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBvYmouZm9vID09PSAxMjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-37","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-37.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM3MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNzAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIGZhbHNlLCBbW0VudW1lcmFibGVdXSBpcyBmYWxzZSwgW1tDb25maWd1cmFibGVdXSBpcyB0cnVlKSBpcyBkZWxldGFibGUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAyMDEwLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgYmVmb3JlRGVsZXRlID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgZGVsZXRlIG9iai5wcm9wOwogICAgICAgIHZhciBhZnRlckRlbGV0ZSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIHJldHVybiBiZWZvcmVEZWxldGUgJiYgIWFmdGVyRGVsZXRlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-370","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-370.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM3MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNzEuanMiLAoKICAgIGRlc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vbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-371","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-371.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM3MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNzIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBzdWNjZXNzIHRvIHVwZGF0ZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUgb2YgZGF0YSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIGZhbHNlLCBbW0VudW1lcmFibGVdXSBpcyBmYWxzZSwgW1tDb25maWd1cmFibGVdXSBpcyB0cnVlKSB0byBkaWZmZXJlbnQgdmFsdWUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAyMDEwLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RG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ZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IDIwMTAsCiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiBkZXNjMS5jb25maWd1cmFibGUgPT09IHRydWUgJiYgb2JqLnByb3AgPT09IDIwMTAgJiYgZGVzYzIuY29uZmlndXJhYmxlID09PSBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-373","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-373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YzEuaGFzT3duUHJvcGVydHkoInZhbHVlIikgJiYgZGVzYzIuZ2V0ID09PSBnZXRGdW5jOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-374","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-374.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM3NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNzUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIGZhbHNlLCBbW0VudW1lcmFibGVdXSBpcyBmYWxzZSwgW1tDb25maWd1cmFibGVdXSBpcyBmYWxzZSkgaXMgdW53cml0YWJsZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IDIwMTAsCiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gKG9iai5wcm9wID09PSAyMDEwKTsKICAgICAgICBvYmoucHJvcCA9IDEwMDE7CgogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgb2JqLnByb3AgPT09IDIwMTA7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-375","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-375.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM3NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNzYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIGZhbHNlLCBbW0VudW1lcmFibGVdXSBpcyBmYWxzZSwgW1tDb25maWd1cmFibGVdXSBpcyBmYWxzZSkgaXMgbm9uLWVudW1lcmFibGUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAyMDEwLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgZm9yICh2YXIgcCBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHAgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYy5lbnVtZXJhYmxlID09PSBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-376","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-376.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM3NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNzcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIGZhbHNlLCBbW0VudW1lcmFibGVdXSBpcyBmYWxzZSwgW1tDb25maWd1cmFibGVdXSBpcyBmYWxzZSkgaXMgdW5kZWxldGFibGUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAyMDEwLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGJlZm9yZURlbGV0ZSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIGRlbGV0ZSBvYmoucHJvcDsKICAgICAgICB2YXIgYWZ0ZXJEZWxldGUgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICByZXR1cm4gYmVmb3JlRGVsZXRlICYmIG9iai5wcm9wID09PSAyMDEwICYmIGFmdGVyRGVsZXRlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-377","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-377.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM3OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNzguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSBbW1dyaXRhYmxlXV0gYXR0cmlidXRlIG9mIGRhdGEgcHJvcGVydHkgKFtbV3JpdGFibGVdXSBpcyBmYWxzZSwgW1tFbnVtZXJhYmxlXV0gaXMgZmFsc2UsIFtbQ29uZmlndXJhYmxlXV0gaXMgZmFsc2UpIHRvIGRpZmZlcmVudCB2YWx1ZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IDIwMTAsCiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYzEud3JpdGFibGUgPT09IGZhbHNlICYmIG9iai5wcm9wID09PSAyMDEwICYmIGRlc2MyLndyaXRhYmxlID09PSBmYWxzZSAmJiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-378","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-378.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM3OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zNzkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUgb2YgZGF0YSBwcm9wZXJ0eSAoW1tXcml0YWJsZV1dIGlzIGZhbHNlLCBbW0VudW1lcmFibGVdXSBpcyBmYWxzZSwgW1tDb25maWd1cmFibGVdXSBpcyBmYWxzZSkgdG8gZGlmZmVyZW50IHZhbHVlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMjAxMCwKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYzEuZW51bWVyYWJsZSA9PT0gZmFsc2UgJiYgb2JqLnByb3AgPT09IDIwMTAgJiYgZGVzYzIuZW51bWVyYWJsZSA9PT0gZmFsc2UgJiYgZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-379","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-379.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTM4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyB0aGUgTWF0aCBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0T3duUHJvcGVydHldXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnbmFtZScgcHJvcGVydHkgKDguMTIuOSBzdGVwIDEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoTWF0aCwgImZvbyIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMiwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAKICAgICAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KE1hdGgsICJmb28iLCAxMiwgZmFsc2UsIGZhbHNlLCB0cnVlKTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgTWF0aC5mb287CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-38","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-38.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM4MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zODAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSBvZiBkYXRhIHByb3BlcnR5IChbW1dyaXRhYmxlXV0gaXMgZmFsc2UsIFtbRW51bWVyYWJsZV1dIGlzIGZhbHNlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIGZhbHNlKSB0byBkaWZmZXJlbnQgdmFsdWUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAyMDEwLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiBkZXNjMS5jb25maWd1cmFibGUgPT09IGZhbHNlICYmIG9iai5wcm9wID09PSAyMDEwICYmIGRlc2MyLmNvbmZpZ3VyYWJsZSA9PT0gZmFsc2UgJiYgZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-380","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-380.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICA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CAoZSkgewogICAgICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiBkZXNjMS52YWx1ZSA9PT0gMjAxMCAmJiBvYmoucHJvcCA9PT0gMjAxMCAmJiB0eXBlb2YgZGVzYzIuZ2V0ID09PSAidW5kZWZpbmVkIiAmJiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-381","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-381.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM4MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zODIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1ZhbHVlXV0gYXR0cmlidXRlIG9mIGRhdGEgcHJvcGVydHkgaXMgYSBudW1iZXIiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMDAxCiAgICAgICAgfSk7CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBvYmoucHJvcCA9PT0gMTAwMSAmJiBkZXNjLnZhbHVlID09PSAxMDAxOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-382","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-382.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM4MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zODMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1ZhbHVlXV0gYXR0cmlidXRlIG9mIGRhdGEgcHJvcGVydHkgaXMgYSBzdHJpbmciLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAiVGhpc0lzQVN0cmluZyIKICAgICAgICB9KTsKCiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wID09PSAiVGhpc0lzQVN0cmluZyIgJiYgZGVzYy52YWx1ZSA9PT0gIlRoaXNJc0FTdHJpbmciOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-383","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-383.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM4NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zODQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1ZhbHVlXV0gYXR0cmlidXRlIG9mIGRhdGEgcHJvcGVydHkgaXMgYSBib29sZWFuIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wID09PSBmYWxzZSAmJiBkZXNjLnZhbHVlID09PSBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-384","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-384.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM4NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zODUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1ZhbHVlXV0gYXR0cmlidXRlIG9mIGRhdGEgcHJvcGVydHkgaXMgYSBnZW5lcmljIG9iamVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciB0ZW1wT2JqID0geyB0ZXN0cHJvcGVydHk6IDEwMCB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IHRlbXBPYmoKICAgICAgICB9KTsKCiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wID09PSB0ZW1wT2JqICYmIGRlc2MudmFsdWUgPT09IHRlbXBPYmo7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-385","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-385.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM4NiIsCgogIC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KICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIG51bU9iaiA9IG5ldyBOdW1iZXIoKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiBudW1PYmoKICAgICAgICB9KTsKCiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wID09PSBudW1PYmogJiYgZGVzYy52YWx1ZSA9PT0gbnVtT2JqOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-388","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-388.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM4OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zODkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1ZhbHVlXV0gYXR0cmlidXRlIG9mIGRhdGEgcHJvcGVydHkgaXMgYSBCb29sZWFuIE9iamVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBib29sT2JqID0gbmV3IEJvb2xlYW4oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiBib29sT2JqCiAgICAgICAgfSk7CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBvYmoucHJvcCA9PT0gYm9vbE9iaiAmJiBkZXNjLnZhbHVlID09PSBib29sT2JqOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-389","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-389.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTM5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhIERhdGUgb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldE93blByb3BlcnR5XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ25hbWUnIHByb3BlcnR5ICg4LjEyLjkgc3RlcCAxKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRlc2MgPSBuZXcgRGF0ZSgpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoZGVzYywgImZvbyIsIHsKICAgICAgICAgICAgdmFsdWU6IDEyLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShkZXNjLCAiZm9vIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDExLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBkZXNjLmZvbyA9PT0gMTI7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-39","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-39.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM5MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zOTAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1ZhbHVlXV0gYXR0cmlidXRlIG9mIGRhdGEgcHJvcGVydHkgaXMgYSBGdW5jdGlvbiBvYmplY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgZnVuT2JqID0gZnVuY3Rpb24gKCkgeyB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IGZ1bk9iagogICAgICAgIH0pOwoKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gb2JqLnByb3AgPT09IGZ1bk9iaiAmJiBkZXNjLnZhbHVlID09PSBmdW5PYmo7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-390","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-390.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM5MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zOTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1ZhbHVlXV0gYXR0cmlidXRlIG9mIGRhdGEgcHJvcGVydHkgaXMgYW4gRXJyb3Igb2JqZWN0IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGVyck9iaiA9IG5ldyBFcnJvcigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IGVyck9iagogICAgICAgIH0pOwoKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gb2JqLnByb3AgPT09IGVyck9iaiAmJiBkZXNjLnZhbHVlID09PSBlcnJPYmo7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-391","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-391.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM5MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zOTIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1ZhbHVlXV0gYXR0cmlidXRlIG9mIGRhdGEgcHJvcGVydHkgaXMgYSBEYXRlIG9iamVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBkYXRlT2JqID0gbmV3IERhdGUoKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiBkYXRlT2JqCiAgICAgICAgfSk7CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBvYmoucHJvcCA9PT0gZGF0ZU9iaiAmJiBkZXNjLnZhbHVlID09PSBkYXRlT2JqOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-392","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-392.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM5MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zOTMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1ZhbHVlXV0gYXR0cmlidXRlIG9mIGRhdGEgcHJvcGVydHkgaXMgYSBSZWdFeHAgb2JqZWN0IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIHJlZ09iaiA9IG5ldyBSZWdFeHAoKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiByZWdPYmoKICAgICAgICB9KTsKCiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wID09PSByZWdPYmogJiYgZGVzYy52YWx1ZSA9PT0gcmVnT2JqOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-393","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-393.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM5NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zOTQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1ZhbHVlXV0gYXR0cmlidXRlIG9mIGRhdGEgcHJvcGVydHkgaXMgdW5kZWZpbmVkIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogdW5kZWZpbmVkCiAgICAgICAgfSk7CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiB0eXBlb2Ygb2JqLnByb3AgPT09ICJ1bmRlZmluZWQiICYmIHR5cGVvZiBkZXNjLnZhbHVlID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-394","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-394.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM5NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8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gpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogTmFOCiAgICAgICAgfSk7CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBvYmoucHJvcCAhPT0gb2JqLnByb3AgJiYgZGVzYy52YWx1ZSAhPT0gZGVzYy52YWx1ZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-396","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-396.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM5NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zOTcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1ZhbHVlXV0gYXR0cmlidXRlIG9mIGRhdGEgcHJvcGVydHkgaXMgSW5maW5pdHkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiBJbmZpbml0eQogICAgICAgIH0pOwoKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gb2JqLnByb3AgPT09IEluZmluaXR5ICYmIGRlc2MudmFsdWUgPT09IEluZmluaXR5OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-397","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-397.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM5OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zOTguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1ZhbHVlXV0gYXR0cmlidXRlIG9mIGRhdGEgcHJvcGVydHkgaXMgLUluZmluaXR5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogLUluZmluaXR5CiAgICAgICAgfSk7CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBvYmoucHJvcCA9PT0gLUluZmluaXR5ICYmIGRlc2MudmFsdWUgPT09IC1JbmZpbml0eTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-398","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-398.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTM5OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC0zOTkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1ZhbHVlXV0gYXR0cmlidXRlIG9mIGRhdGEgcHJvcGVydHkgaXMgdGhlIGdsb2JhbCBvYmplY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiBmbkdsb2JhbE9iamVjdCgpCiAgICAgICAgfSk7CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBvYmoucHJvcCA9PT0gZm5HbG9iYWxPYmplY3QoKSAmJiBkZXNjLnZhbHVlID09PSBmbkdsb2JhbE9iamVjdCgpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":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JiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKIH0KfSk7Cg==","id":"15.2.3.6-4-4","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-4.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTQwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhIFJlZ0V4cCBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0T3duUHJvcGVydHldXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnbmFtZScgcHJvcGVydHkgKDguMTIuOSBzdGVwIDEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZGVzYyA9IG5ldyBSZWdFeHAoKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGRlc2MsICJmb28iLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMiwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoZGVzYywgImZvbyIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgZGVzYy5mb28gPT09IDEyOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-40","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-40.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQwMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MDIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1ZhbHVlXV0gYXR0cmlidXRlIG9mIGluaGVyaXRlZCBwcm9wZXJ0eSBvZiBbW1Byb3RvdHlwZV1dIGludGVybmFsIHByb3BlcnR5IGlzIGNvcnJlY3QgKFN0cmluZyBpbnN0YW5jZSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShTdHJpbmcucHJvdG90eXBlLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMDAxLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICB2YXIgc3RyT2JqID0gbmV3IFN0cmluZygpOwoKICAgICAgICAgICAgcmV0dXJuICFzdHJPYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBzdHJPYmoucHJvcCA9PT0gMTAwMTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgU3RyaW5nLnByb3RvdHlwZS5wcm9wOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-402","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-402.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQwMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MDMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBTdWNjZXNzZnVsbHkgYWRkIGEgcHJvcGVydHkgdG8gYW4gb2JqZWN0IHdoZW4gdGhlIG9iamVjdCdzIHByb3RvdHlwZSBoYXMgYSBwcm9wZXJ0eSB3aXRoIHNhbWUgbmFtZSBhbmQgW1tXcml0YWJsZV1dIGF0dHJpYnV0ZSBpcyBzZXQgdG8gdHJ1ZSAoQXJyYXkgaW5zdGFuY2UpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoQXJyYXkucHJvdG90eXBlLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMDAxLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICB2YXIgYXJyT2JqID0gW107CiAgICAgICAgICAgIGFyck9iai5wcm9wID0gMTAwMjsKCiAgICAgICAgICAgIHJldHVybiBhcnJPYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBhcnJPYmoucHJvcCA9PT0gMTAwMjsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlLnByb3A7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-403","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-403.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQwNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MDQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBJbmhlcml0ZWQgcHJvcGVydHkgd2hvc2UgW1tFbnVtZXJhYmxlXV0gYXR0cmlidXRlIGlzIHNldCB0byB0cnVlIGlzIGVudW1lcmFibGUgKEJvb2xlYW4gaW5zdGFuY2UpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoQm9vbGVhbi5wcm90b3R5cGUsICJwcm9wIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDEwMDEsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHZhciBib29sT2JqID0gbmV3IEJvb2xlYW4oKTsKCiAgICAgICAgICAgIHZhciB2ZXJpZnlFbnVtZXJhYmxlID0gZmFsc2U7CiAgICAgICAgICAgIGZvciAodmFyIHAgaW4gYm9vbE9iaikgewogICAgICAgICAgICAgICAgaWYgKHAgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgICAgIHZlcmlmeUVudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICByZXR1cm4gIWJvb2xPYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiB2ZXJpZnlFbnVtZXJhYmxlOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBCb29sZWFuLnByb3RvdHlwZS5wcm9wOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-404","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-404.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQwNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MDUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBGYWlsZWQgdG8gYWRkIGEgcHJvcGVydHkgdG8gYW4gb2JqZWN0IHdoZW4gdGhlIG9iamVjdCdzIG9iamVjdCBoYXMgYSBwcm9wZXJ0eSB3aXRoIHNhbWUgbmFtZSBhbmQgW1tXcml0YWJsZV1dIGF0dHJpYnV0ZSBpcyBzZXQgdG8gZmFsc2UgKE51bWJlciBpbnN0YW5jZSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShOdW1iZXIucHJvdG90eXBlLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMDAxLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHZhciBudW1PYmogPSBuZXcgTnVtYmVyKCk7CiAgICAgICAgICAgIG51bU9iai5wcm9wID0gMTAwMjsKCiAgICAgICAgICAgIHJldHVybiAhbnVtT2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgbnVtT2JqLnByb3AgPT09IDEwMDE7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE51bWJlci5wcm90b3R5cGUucHJvcDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-405","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-405.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQwNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MDYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBJbmhlcml0ZWQgcHJvcGVydHkgd2hvc2UgW1tFbnVtZXJhYmxlXV0gYXR0cmlidXRlIGlzIHNldCB0byBmYWxzZSBpcyBub24tZW51bWVyYWJsZSAoRnVuY3Rpb24gaW5zdGFuY2UpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoRnVuY3Rpb24ucHJvdG90eXBlLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMDAxLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHZhciBmdW5PYmogPSBmdW5jdGlvbiAoKSB7IH07CgogICAgICAgICAgICB2YXIgdmVyaWZ5RW51bWVyYWJsZSA9IGZhbHNlOwogICAgICAgICAgICBmb3IgKHZhciBwIGluIGZ1bk9iaikgewogICAgICAgICAgICAgICAgaWYgKHAgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgICAgIHZlcmlmeUVudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICByZXR1cm4gIWZ1bk9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmICF2ZXJpZnlFbnVtZXJhYmxlOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBGdW5jdGlvbi5wcm90b3R5cGUucHJvcDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-406","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-406.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQwNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MDcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1ZhbHVlXV0gYXR0cmlidXRlIG9mIGluaGVyaXRlZCBwcm9wZXJ0eSBvZiBbW1Byb3RvdHlwZV1dIGludGVybmFsIHByb3BlcnR5IGlzIGNvcnJlY3QgKEVycm9yIEluc3RhbmNlKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KEVycm9yLnByb3RvdHlwZSwgInByb3AiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTAwMSwKICAgICAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdmFyIGVyck9iaiA9IG5ldyBFcnJvcigpOwoKICAgICAgICAgICAgcmV0dXJuICFlcnJPYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBlcnJPYmoucHJvcCA9PT0gMTAwMTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgRXJyb3IucHJvdG90eXBlLnByb3A7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-407","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-407.js"},{"code":"RVM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gpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-408","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-408.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQwOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MDkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBJbmhlcml0ZWQgcHJvcGVydHkgd2hvc2UgW1tFbnVtZXJhYmxlXV0gYXR0cmlidXRlIGlzIHNldCB0byBmYWxzZSBpcyBlbnVtZXJhYmxlIChSZWdFeHAgaW5zdGFuY2UpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoUmVnRXhwLnByb3RvdHlwZSwgInByb3AiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTAwMSwKICAgICAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdmFyIHJlZ09iaiA9IG5ldyBSZWdFeHAoKTsKCiAgICAgICAgICAgIHZhciB2ZXJpZnlFbnVtZXJhYmxlID0gZmFsc2U7CiAgICAgICAgICAgIGZvciAodmFyIHAgaW4gcmVnT2JqKSB7CiAgICAgICAgICAgICAgICBpZiAocCA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICAgICAgdmVyaWZ5RW51bWVyYWJsZSA9IHRydWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHJldHVybiAhcmVnT2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgdmVyaWZ5RW51bWVyYWJsZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgUmVnRXhwLnByb3RvdHlwZS5wcm9wOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-409","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-409.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTQxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyB0aGUgSlNPTiBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0T3duUHJvcGVydHldXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnbmFtZScgcHJvcGVydHkgKDguMTIuOSBzdGVwIDEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KEpTT04sICJmb28iLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTIsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoSlNPTiwgImZvbyIsIDEyLCBmYWxzZSwgZmFsc2UsIHRydWUpOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBKU09OLmZvbzsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-41","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-41.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQxMCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MTAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBGYWlsZWQgdG8gYWRkIGEgcHJvcGVydHkgdG8gYW4gb2JqZWN0IHdoZW4gdGhlIG9iamVjdCdzIHByb3RvdHlwZSBoYXMgYSBwcm9wZXJ0eSB3aXRoIHRoZSBzYW1lIG5hbWUgYW5kIFtbV3JpdGFibGVdXSBzZXQgdG8gZmFsc2UgKEpTT04pIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoT2JqZWN0LnByb3RvdHlwZSwgInByb3AiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTAwMSwKICAgICAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICBKU09OLnByb3AgPSAxMDAyOwoKICAgICAgICAgICAgcmV0dXJuICFKU09OLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgSlNPTi5wcm9wID09PSAxMDAxOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBPYmplY3QucHJvdG90eXBlLnByb3A7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-410","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-410.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQxMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBJbmhlcml0ZWQgcHJvcGVydHkgd2hvc2UgW1tFbnVtZXJhYmxlXV0gYXR0cmlidXRlIGlzIHNldCB0byBmYWxzZSBpcyBub24tZW51bWVyYWJsZSAoTWF0aCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShPYmplY3QucHJvdG90eXBlLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMDAxLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICB2YXIgdmVyaWZ5RW51bWVyYWJsZSA9IGZhbHNlOwogICAgICAgICAgICBmb3IgKHZhciBwIGluIE1hdGgpIHsKICAgICAgICAgICAgICAgIGlmIChwID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgICAgICB2ZXJpZnlFbnVtZXJhYmxlID0gdHJ1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgICAgcmV0dXJuICFNYXRoLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgIXZlcmlmeUVudW1lcmFibGU7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE9iamVjdC5wcm90b3R5cGUucHJvcDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-411","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-411.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQxMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MTIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1ZhbHVlXV0gZmllbGQgb2YgaW5oZXJpdGVkIHByb3BlcnR5IG9mIFtbUHJvdG90eXBlXV0gaW50ZXJuYWwgcHJvcGVydHkgaXMgY29ycmVjdChPYmplY3QuY3JlYXRlKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFwcG9pbnRtZW50ID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcHBvaW50bWVudCwgInN0YXJ0VGltZSIsIHsKICAgICAgICAgICAgdmFsdWU6IDEwMDEsCiAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXBwb2ludG1lbnQsICJuYW1lIiwgewogICAgICAgICAgICB2YWx1ZTogIk5BTUUiLAogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBtZWV0aW5nID0gT2JqZWN0LmNyZWF0ZShhcHBvaW50bWVudCk7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG1lZXRpbmcsICJjb25mZXJlbmNlQ2FsbCIsIHsKICAgICAgICAgICAgdmFsdWU6ICJJbi1wZXJzb24gbWVldGluZyIsCiAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHRlYW1NZWV0aW5nID0gT2JqZWN0LmNyZWF0ZShtZWV0aW5nKTsKCiAgICAgICAgdmFyIGhhc093blByb3BlcnR5ID0gIXRlYW1NZWV0aW5nLmhhc093blByb3BlcnR5KCJuYW1lIikgJiYKICAgICAgICAgICAgIXRlYW1NZWV0aW5nLmhhc093blByb3BlcnR5KCJzdGFydFRpbWUiKSAmJgogICAgICAgICAgICAhdGVhbU1lZXRpbmcuaGFzT3duUHJvcGVydHkoJ2NvbmZlcmVuY2VDYWxsJyk7CgogICAgICAgIHJldHVybiBoYXNPd25Qcm9wZXJ0eSAmJiB0ZWFtTWVldGluZy5uYW1lID09PSAiTkFNRSIgJiYKICAgIC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Y29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFwcG9pbnRtZW50LCAibmFtZSIsIHsKICAgICAgICAgICAgdmFsdWU6ICJOQU1FIiwKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgbWVldGluZyA9IE9iamVjdC5jcmVhdGUoYXBwb2ludG1lbnQpOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShtZWV0aW5nLCAiY29uZmVyZW5jZUNhbGwiLCB7CiAgICAgICAgICAgIHZhbHVlOiAiSW4tcGVyc29uIG1lZXRpbmciLAogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciB0ZWFtTWVldGluZyA9IE9iamVjdC5jcmVhdGUobWVldGluZyk7CiAgICAgICAgdGVhbU1lZXRpbmcubmFtZSA9ICJUZWFtIE1lZXRpbmciOwogICAgICAgIHZhciBkYXRlT2JqID0gbmV3IERhdGUoIjEwLzMxLzIwMTAgMDg6MDAiKTsKICAgICAgICB0ZWFtTWVldGluZy5zdGFydFRpbWUgPSBkYXRlT2JqOwogICAgICAgIHRlYW1NZWV0aW5nLmNvbmZlcmVuY2VDYWxsID0gIjQyNTU1NTEyMTIiOwoKICAgICAgICB2YXIgaGFzT3duUHJvcGVydHkgPSB0ZWFtTWVldGluZy5oYXNPd25Qcm9wZXJ0eSgibmFtZSIpICYmCiAgICAgICAgICAgIHRlYW1NZWV0aW5nLmhhc093blByb3BlcnR5KCJzdGFydFRpbWUiKSAmJgogICAgICAgICAgICB0ZWFtTWVldGluZy5oYXNPd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ICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXBwb2ludG1lbnQsICJuYW1lIiwgewogICAgICAgICAgICB2YWx1ZTogIk5BTUUiLAogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBtZWV0aW5nID0gT2JqZWN0LmNyZWF0ZShhcHBvaW50bWVudCk7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG1lZXRpbmcsICJjb25mZXJlbmNlQ2FsbCIsIHsKICAgICAgICAgICAgdmFsdWU6ICJJbi1wZXJzb24gbWVldGluZyIsCiAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHRlYW1NZWV0aW5nID0gT2JqZWN0LmNyZWF0ZShtZWV0aW5nKTsKCiAgICAgICAgdmFyIHZlcmlmeVRpbWVQcm9wID0gZmFsc2U7CiAgICAgICAgdmFyIHZlcmlmeU5hbWVQcm9wID0gZmFsc2U7CiAgICAgICAgdmFyIHZlcmlmeUNhbGxQcm9wID0gZmFsc2U7CiAgICAgICAgZm9yICh2YXIgcCBpbiB0ZWFtTWVldGluZykgewogICAgICAgICAgICBpZiAocCA9PT0gInN0YXJ0VGltZSIpIHsKICAgICAgICAgICAgICAgIHZlcmlmeVRpbWVQcm9wID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgICAgICBpZiAocCA9PT0gIm5hbWUiKSB7CiAgICAgICAgICAgICAgICB2ZXJpZnlOYW1lUHJvcCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgaWYgKHAgPT09ICJjb25mZXJlbmNlQ2FsbCIpIHsKICAgICAgICAgICAgICAgIHZlcmlmeUNhbGxQcm9wID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgdmFyIGhhc093blByb3BlcnR5ID0gIXRlYW1NZWV0aW5nLmhhc093blByb3BlcnR5KCJuYW1lIikgJiYKICAgICAgICAgICAgIXRlYW1NZWV0aW5nLmhhc093blByb3BlcnR5KCJzdGFydFRpbWUiKSAmJgogICAgICAgICAgICAhdGVhbU1lZXRpbmcuaGFzT3duUHJvcGVydHkoImNvbmZlcmVuY2VDYWxsIik7CgogICAgICAgIHJldHVybiBoYXNPd25Qcm9wZXJ0eSAmJiB2ZXJpZnlUaW1lUHJvcCAmJiB2ZXJpZnlOYW1lUHJvcCAmJiB2ZXJpZnlDYWxsUHJvcDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmNyZWF0ZSk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-414","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-414.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQxNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MTUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBGYWlsZWQgdG8gYWRkIHByb3BlcnRpZXMgdG8gYW4gb2JqZWN0IHdoZW4gdGhlIG9iamVjdCdzIHByb3RvdHlwZSBoYXM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TsKCiAgICAgICAgdmFyIHRlYW1NZWV0aW5nID0gT2JqZWN0LmNyZWF0ZShtZWV0aW5nKTsKCiAgICAgICAgdmFyIHZlcmlmeVRpbWVQcm9wID0gZmFsc2U7CiAgICAgICAgdmFyIHZlcmlmeU5hbWVQcm9wID0gZmFsc2U7CiAgICAgICAgdmFyIHZlcmlmeUNhbGxQcm9wID0gZmFsc2U7CiAgICAgICAgZm9yICh2YXIgcCBpbiB0ZWFtTWVldGluZykgewogICAgICAgICAgICBpZiAocCA9PT0gInN0YXJ0VGltZSIpIHsKICAgICAgICAgICAgICAgIHZlcmlmeVRpbWVQcm9wID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgICAgICBpZiAocCA9PT0gIm5hbWUiKSB7CiAgICAgICAgICAgICAgICB2ZXJpZnlOYW1lUHJvcCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgaWYgKHAgPT09ICJjb25mZXJlbmNlQ2FsbCIpIHsKICAgICAgICAgICAgICAgIHZlcmlmeUNhbGxQcm9wID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgdmFyIGhhc093blByb3BlcnR5ID0gIXRlYW1NZWV0aW5nLmhhc093blByb3BlcnR5KCJuYW1lIikgJiYKICAgICAgICAgICAgIXRlYW1NZWV0aW5nLmhhc093blByb3BlcnR5KCJzdGFydFRpbWUiKSAmJgogICAgICAgICAgICAhdGVhbU1lZXRpbmcuaGFzT3duUHJvcGVydHkoImNvbmZlcmVuY2VDYWxsIik7CgogICAgICAgIHJldHVybiBoYXNPd25Qcm9wZXJ0eSAmJiAhdmVyaWZ5VGltZVByb3AgJiYgIXZlcmlmeU5hbWVQcm9wICYmICF2ZXJpZnlDYWxsUHJvcDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmNyZWF0ZSk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-416","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-416.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQxNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MTcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1ZhbHVlXV0gYXR0cmlidXRlIG9mIGluaGVyaXRlZCBwcm9wZXJ0eSBvZiBbW1Byb3RvdHlwZV1dIGludGVybmFsIHByb3BlcnR5IGlzIGNvcnJlY3QoRnVuY3Rpb24ucHJvdG90eXBlLmJpbmQpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZm9vID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShGdW5jdGlvbi5wcm90b3R5cGUsICJwcm9wIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDEwMDEsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICB2YXIgb2JqID0gZm9vLmJpbmQoe30pOwoKICAgICAgICAgICAgcmV0dXJuICFvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBvYmoucHJvcCA9PT0gMTAwMTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgRnVuY3Rpb24ucHJvdG90eXBlLnByb3A7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhGdW5jdGlvbi5wcm90b3R5cGUuYmluZCk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-417","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-417.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQxOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MTguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBTdWNjZXNzZnVsbHkgYWRkIGEgcHJvcGVydHkgdG8gYW4gb2JqZWN0IHdoZW4gdGhlIG9iamVjdCdzIHByb3RvdHlwZSBoYXMgYSBwcm9wZXJ0eSB3aXRoIHRoZSBzYW1lIG5hbWUgYW5kIFtbV3JpdGFibGVdXSBzZXQgdG8gdHJ1ZSAoRnVuY3Rpb24ucHJvdG90eXBlLmJpbmQpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZm9vID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShGdW5jdGlvbi5wcm90b3R5cGUsICJwcm9wIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDEwMDEsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICB2YXIgb2JqID0gZm9vLmJpbmQoe30pOwogICAgICAgICAgICBvYmoucHJvcCA9IDEwMDI7CgogICAgICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgb2JqLnByb3AgPT09IDEwMDI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEZ1bmN0aW9uLnByb3RvdHlwZS5wcm9wOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoRnVuY3Rpb24ucHJvdG90eXBlLmJpbmQpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-418","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-418.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQxOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MTkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBJbmhlcml0ZWQgcHJvcGVydHkgd2hvc2UgW1tFbnVtZXJhYmxlXV0gYXR0cmlidXRlIGlzIHNldCB0byB0cnVlIGlzIGVudW1lcmFibGUgKEZ1bmN0aW9uLnByb3RvdHlwZS5iaW5kKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGZvbyA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoRnVuY3Rpb24ucHJvdG90eXBlLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMDAxLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgdmFyIG9iaiA9IGZvby5iaW5kKHt9KTsKICAgICAgICAgICAgdmFyIHZlcmlmeUVudW1lcmFibGUgPSBmYWxzZTsKICAgICAgICAgICAgZm9yICh2YXIgcCBpbiBvYmopIHsKICAgICAgICAgICAgICAgIGlmIChwID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgICAgICB2ZXJpZnlFbnVtZXJhYmxlID0gdHJ1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgICAgcmV0dXJuICFvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiB2ZXJpZnlFbnVtZXJhYmxlOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBGdW5jdGlvbi5wcm90b3R5cGUucHJvcDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKEZ1bmN0aW9uLnByb3RvdHlwZS5iaW5kKTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-419","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-419.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTQyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBFcnJvciBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0T3duUHJvcGVydHldXSBtZXRob2QgdG8gYWNjZXNzIHRoZSAnbmFtZScgcHJvcGVydHkgKDguMTIuOSBzdGVwIDEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZGVzYyA9IG5ldyBFcnJvcigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoZGVzYywgImZvbyIsIHsKICAgICAgICAgICAgdmFsdWU6IDEyLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShkZXNjLCAiZm9vIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDExLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBkZXNjLmZvbyA9PT0gMTI7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-42","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-42.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQyMCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MjAuanMiLAoKICAgIGRlc2Ny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","id":"15.2.3.6-4-420","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-420.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQyMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MjEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBJbmhlcml0ZWQgcHJvcGVydHkgd2hvc2UgW1tFbnVtZXJhYmxlXV0gYXR0cmlidXRlIGlzIHNldCB0byBmYWxzZSBpcyBub24tZW51bWVyYWJsZSAoRnVuY3Rpb24ucHJvdG90eXBlLmJpbmQpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZm9vID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShGdW5jdGlvbi5wcm90b3R5cGUsICJwcm9wIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDEwMDEsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHZhciBvYmogPSBmb28uYmluZCh7fSk7CiAgICAgICAgICAgIHZhciB2ZXJpZnlFbnVtZXJhYmxlID0gZmFsc2U7CiAgICAgICAgICAgIGZvciAodmFyIHAgaW4gb2JqKSB7CiAgICAgICAgICAgICAgICBpZiAocCA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICAgICAgdmVyaWZ5RW51bWVyYWJsZSA9IHRydWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHJldHVybiAhb2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgIXZlcmlmeUVudW1lcmFibGU7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEZ1bmN0aW9uLnByb3RvdHlwZS5wcm9wOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoRnVuY3Rpb24ucHJvdG90eXBlLmJpbmQpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-421","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-421.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQyMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MjIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW0dldF1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgdW5kZWZpbmVkLCBbW0VudW1lcmFibGVdXSBpcyB0cnVlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIHRydWUpIGlzIHVuZGVmaW5lZCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkLAogICAgICAgICAgIC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gdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgdHlwZW9mIGRlc2Muc2V0ID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-423","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-423.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQyNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MjQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgdW5kZWZpbmVkLCBbW0VudW1lcmFibGVdXSBpcyB0cnVlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIHRydWUpIGlzIGVudW1lcmFibGUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogdW5kZWZpbmVkLAogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICBmb3IgKHZhciBwIGluIG9iaikgewogICAgICAgICAgICBpZiAocCA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2MuZW51bWVyYWJsZSA9PT0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-424","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-424.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQyNSIsC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25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-425","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-425.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQyNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MjYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBzdWNjZXNzIHRvIHVwZGF0ZSBbW0dldF1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgdW5kZWZpbmVkLCBbW0VudW1lcmFibGVdXSBpcyB0cnVlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIHRydWUpIHRvIGRpZmZlcmVudCB2YWx1ZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTAwMTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHJlc3VsdDEgPSB0eXBlb2Ygb2JqLnByb3AgPT09ICJ1bmRlZmluZWQiOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0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IHRvIGRpZmZlcmVudCB2YWx1ZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciB2ZXJpZnlTZXRGdW5jID0gImRhdGEiOwogICAgICAgIHZhciBzZXRGdW5jID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIHZlcmlmeVNldEZ1bmMgPSB2YWx1ZTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBzZXQ6IHNldEZ1bmMKICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3AgPSAib3ZlcnJpZGVEYXRhIjsKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgdHlwZW9mIGRlc2MxLnNldCA9PT0gInVuZGVmaW5lZCIgJiYgZGVzYzIuc2V0ID09PSBzZXRGdW5jICYmIHZlcmlmeVNldEZ1bmMgPT09ICJvdmVycmlkZURhdGEiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN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cmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICBmb3IgKHZhciBwMSBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHAxID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIHJlc3VsdDEgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgcmVzdWx0MiA9IGZhbHNlOwogICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgIGZvciAodmFyIHAyIGluIG9iaikgewogICAgICAgICAgICBpZiAocDIgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgcmVzdWx0MiA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHJldHVybiByZXN1bHQxICYmICFyZXN1bHQyICYmIGRlc2MxLmVudW1lcmFibGUgPT09IHRydWUgJiYgZGVzYzIuZW51bWVyYWJsZSA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-428","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-428.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQyOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00Mjkuan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GlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-429","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-429.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTQzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdPJyBpcyBhbiBBcmd1bWVudHMgb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldE93blByb3BlcnR5XV0gbWV0aG9kIHRvIGFjY2VzcyB0aGUgJ25hbWUnIHByb3BlcnR5ICg4LjEyLjkgc3RlcCAxKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyZ09iaiA9IChmdW5jdGlvbiAoKSB7IHJldHVybiBhcmd1bWVudHM7IH0pKCk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmdPYmosICJmb28iLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMiwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJnT2JqLCAiZm9vIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDExLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBhcmdPYmouZm9vID09PSAxMjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-43","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-43.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQzMCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MzAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBzdWNjZXNzIHRvIHVwZGF0ZSB0aGUgYWNjZXNzb3IgcHJvcGVydHkgKFtbR2V0XV0gaXMgdW5kZWZpbmVkLCBbW1NldF1dIGlzIHVuZGVmaW5lZCwgW1tFbnVtZXJhYmxlXV0gaXMgdHJ1ZSwgW1tDb25maWd1cmFibGVdXSBpcyB0cnVlKSB0byBhIGRhdGEgcHJvcGVydHkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogdW5kZWZpbmVkLAogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMTAwMQogICAgICAgIH0pOwogICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gZGVzYzEuaGFzT3duUHJvcGVydHkoImdldCIpICYmIGRlc2MyLmhhc093blByb3BlcnR5KCJ2YWx1ZSIpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-430","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-430.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQzMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MzEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW0dldF1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgdW5kZWZpbmVkLCBbW0VudW1lcmFibGVdXSBpcyB0cnVlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIGZhbHNlKSBpcyB1bmRlZmluZWQiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogdW5kZWZpbmVkLAogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiB0eXBlb2YgZGVzYy5nZXQgPT09ICJ1bmRlZmluZWQiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-431","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-431.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQzMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MzIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1NldF1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgdW5kZWZpbmVkLCBbW0VudW1lcmFibGVdXSBpcyB0cnVlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIGZhbHNlKSBpcyB1bmRlZmluZWQiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogdW5kZWZpbmVkLAogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiB0eXBlb2YgZGVzYy5zZXQgPT09ICJ1bmRlZmluZWQiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-432","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-432.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQzMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtN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aXB0b3IpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-433","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-433.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQzNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MzQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgdW5kZWZpbmVkLCBbW0VudW1lcmFibGVdXSBpcyB0cnVlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIGZhbHNlKSBpcyB1bmRlbGV0YWJsZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICBkZWxldGUgb2JqLnByb3A7CgogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYy5jb25maWd1cmFibGUgPT09IGZhbHNlICYmIG9iai5oYXNPd25Qcm9wZXJ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AgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgcmVzdWx0MSA9IHR5cGVvZiBvYmoucHJvcCA9PT0gInVuZGVmaW5lZCI7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgZ2V0OiBnZXRGdW5jCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIHJlc3VsdDIgPSB0eXBlb2Ygb2JqLnByb3AgPT09ICJ1bmRlZmluZWQiOwogICAgICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDEgJiYgcmVzdWx0MiAmJiB0eXBlb2YgZGVzYzEuZ2V0ID09PSAidW5kZWZpbmVkIiAmJiB0eXBlb2YgZGVzYzIuZ2V0ID09PSAidW5kZWZpbmVkIiAmJiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-435","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-435.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMu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IHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgcmVzdWx0MSA9IGZhbHNlOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgIGZvciAodmFyIHAxIGluIG9iaikgewogICAgICAgICAgICBpZiAocDEgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgcmVzdWx0MSA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgcmVzdWx0MiA9IGZhbHNlOwogICAgICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICAgICAgZm9yICh2YXIgcDIgaW4gb2JqKSB7CiAgICAgICAgICAgICAgICBpZiAocDIgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgICAgIHJlc3VsdDIgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICByZXR1cm4gcmVzdWx0MSAmJiByZXN1bHQyICYmIGRlc2MxLmVudW1lcmFibGUgPT09IHRydWUgJi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mlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgICAgICBkZWxldGUgb2JqLnByb3A7CgogICAgICAgICAgICByZXR1cm4gZGVzYzEuY29uZmlndXJhYmxlID09PSBmYWxzZSAmJiBkZXNjMi5jb25maWd1cmFibGUgPT09IGZhbHNlICYmIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-438","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-438.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQzOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00MzkuanMiLAoKICAgIGRlc2NyaXB0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mRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-439","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-439.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ0MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00NDAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW0dldF1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgdW5kZWZpbmVkLCBbW0VudW1lcmFibGVdXSBpcyBmYWxzZSwgW1tDb25maWd1cmFibGVdXSBpcyB0cnVlKSBpcyB1bmRlZmluZWQiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogdW5kZWZpbmVkLAogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3du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cCIsIHsKICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICBmb3IgKHZhciBwIGluIG9iaikgewogICAgICAgICAgICBpZiAocCA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYy5lbnVtZXJhYmxlID09PSBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-442","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-442.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ0MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00NDMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgdW5kZWZpbmVkLCBbW0VudW1lcmFibGVdXSBpcyBmYWxzZSwgW1tDb25maWd1cmFibGVdXSBpcyB0cnVlKSBpcyBkZWxldGFibGUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogdW5kZWZpbmVkLAogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgZGVsZXRlIG9iai5wcm9wOwoKICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2MuY29uZmlndXJhYmxlID09PSB0cnVlICYmICFvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-443","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-443.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ0NCIs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IHNldEZ1bmMgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgdmVyaWZ5U2V0RnVuYyA9IHZhbHVlOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgc2V0OiBzZXRGdW5jCiAgICAgICAgfSk7CgogICAgICAgIG9iai5wcm9wID0gIm92ZXJyaWRlRGF0YSI7CiAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiB0eXBlb2YgZGVzYzEuc2V0ID09PSAidW5kZWZpbmVkIiAmJiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYzIuc2V0ID09PSBzZXRGdW5jICYmIHZlcmlmeVNldEZ1bmMgPT09ICJvdmVycmlkZURhdGEiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-445","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-445.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ0NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00NDYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBzdWNjZXNzIHRvIHVwZGF0ZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUgb2YgYWNjZXNzb3IgcHJvcGVydHkgKFtbR2V0XV0gaXMgdW5kZWZpbmVkLCBbW1NldF1dIGlzIHVuZGVmaW5lZCwgW1tFbnVtZXJhYmxlXV0gaXMgZmFsc2UsIFtbQ29uZmlndXJhYmxlXV0gaXMgdHJ1ZSkgdG8gZGlmZmVyZW50IHZhbHVlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgcmVzdWx0MSA9IGZhbHNlOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgIGZvciAodmFyIHAxIGluIG9iaikgewogICAgICAgICAgICBpZiAocDEgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgcmVzdWx0MSA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIHJlc3VsdDIgPSBmYWxzZTsKICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICBmb3IgKHZhciBwMiBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHAyID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIHJlc3VsdDIgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gIXJlc3VsdDEgJiYgcmVzdWx0MiAmJiBkZXNjMS5lbnVtZXJhYmxlID09PSBmYWxzZSAmJiBkZXNjMi5lbnVtZXJhYmxlID09PSB0cnVlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-446","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-446.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ0NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00NDcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBzdWNjZXNzIHRvIHVwZGF0ZSBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwc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VydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-447","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-447.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ0OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00NDguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBzdWNjZXNzIHRvIHVwZGF0ZSB0aGUgYWNjZXNzb3IgcHJvcGVydHkgKFtbR2V0XV0gaXMgdW5kZWZpbmVkLCBbW1NldF1dIGlzIHVuZGVmaW5lZCwgW1tFbnVtZXJhYmxlXV0gaXMgZmFsc2UsIFtbQ29uZmlndXJhYmxlXV0gaXMgdHJ1ZSkgdG8gYSBkYXRhIHByb3BlcnR5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMDAxCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBkZXNjMS5oYXNPd25Qcm9wZXJ0eSgiZ2V0IikgJiYgZGVzYzIuaGFzT3duUHJvcGVydHkoInZhbHVlIik7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-448","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-448.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ0OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00NDkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW0dldF1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgdW5kZWZpbmVkLCBbW0VudW1lcmFibGVdXSBpcyBmYWxzZSwgW1tDb25maWd1cmFibGVdXSBpcyBmYWxzZSkgaXMgdW5kZWZpbmVkIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHN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gICAgICAgICAgICAgdmFsdWU6IDEyLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGZuR2xvYmFsT2JqZWN0KCksICJmb28iLCAxMiwgZmFsc2UsIGZhbHNlLCB0cnVlKTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgZm5HbG9iYWxPYmplY3QoKS5mb287CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-45","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-45.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ1MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00NTAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1NldF1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgdW5kZWZpbmVkLCBbW0VudW1lcmFibGVdXSBpcyBmYWxzZSwgW1tDb25maWd1cmFibGVdXSBpcyBmYWxzZSkgaXMgdW5kZWZpbmVkIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIHR5cGVvZiBkZXNjLnNldCA9PT0gInVuZGVmaW5lZCI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTs=","id":"15.2.3.6-4-450","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-450.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ1MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00NTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgdW5kZWZpbmVkLCBbW0VudW1lcmFibGVdXSBpcyBmYWxzZSwgW1tDb25maWd1cmFibGVdXSBpcyBmYWxzZSkgaXMgbm9uLWVudW1lcmFibGUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogdW5kZWZpbmVkLAogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIGZvciAodmFyIHAgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiBkZXNjLmVudW1lcmFibGUgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-451","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-451.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ1MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUu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ZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldEZ1bmMKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgcmVzdWx0MiA9IHR5cGVvZiBvYmoucHJvcCA9PT0gInVuZGVmaW5lZCI7CiAgICAgICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgICAgICByZXR1cm4gcmVzdWx0MSAmJiByZXN1bHQyICYmIHR5cGVvZiBkZXNjMS5nZXQgPT09ICJ1bmRlZmluZWQiICYmIHR5cGVvZiBkZXNjMi5nZXQgPT09ICJ1bmRlZmluZWQiICYmIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-453","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-453.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ1NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00NTQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSBbW1NldF1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgdW5kZWZpbmVkLCBbW0VudW1lcmFibGVdXSBpcyBmYWxzZSwgW1tDb25maWd1cmFibGVdXSBpcyBmYWxzZSkgdG8gZGlmZmVyZW50IHZhbHVlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciB2ZXJpZnlTZXRGdW5jID0gImRhdGEiOwogICAgICAgIHZhciBzZXRGdW5jID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIHZlcmlmeVNldEZ1bmMgPSB2YWx1ZTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBzZXQ6IHNldEZ1bmMKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICAgICAgcmV0dXJuIHR5cGVvZiBkZXNjMS5zZXQgPT09ICJ1bmRlZmluZWQiICYmIHR5cGVvZiBkZXNjMi5zZXQgPT09ICJ1bmRlZmluZWQiICYmIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-454","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-454.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ1NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00NTUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUgb2YgYWNjZXNzb3IgcHJvcGVydHkgKFtbR2V0XV0gaXMgdW5kZWZpbmVkLCBbW1NldF1dIGlzIHVuZGVmaW5lZCwgW1tFbnVtZXJhYmxlXV0gaXMgZmFsc2UsIFtbQ29uZmlndXJhYmxlXV0gaXMgZmFsc2UpIHRvIGRpZmZlcmVudCB2YWx1ZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciByZXN1bHQxID0gZmFsc2U7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgZm9yICh2YXIgcDEgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwMSA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICByZXN1bHQxID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIHJlc3VsdDIgPSBmYWxzZTsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgICAgIGZvciAodmFyIHAyIGluIG9iaikgewogICAgICAgICAgICAgICAgaWYgKHAyID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgICAgICByZXN1bHQyID0gdHJ1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgICAgcmV0dXJuICFyZXN1bHQxICYmICFyZXN1bHQyICYmIGRlc2MxLmVudW1lcmFibGUgPT09IGZhbHNlICYmIGRlc2MyLmVudW1lcmFibGUgPT09IGZhbHNlICYmIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-455","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-455.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ1NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00NTYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgdW5kZWZpbmVkLCBbW0VudW1lcmFibGVdXSBpcyBmYWxzZSwgW1tDb25maWd1cmFibGVdXSBpcyBmYWxzZSkgdG8gZGlmZmVyZW50IHZhbHVlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pO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GVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMDAxCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgICAgICByZXR1cm4gZGVzYzEuaGFzT3duUHJvcGVydHkoImdldCIpICYmICFkZXNjMi5oYXNPd25Qcm9wZXJ0eSgidmFsdWUiKSAmJiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-457","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-457.js"},{"code":"RVM1SGFybmVzcy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2VuZXJpYyBkZXNjcmlwdG9yICg4LjEyLjkgc3RlcCA0LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgaXNFbnVtZXJhYmxlID0gZmFsc2U7CiAgICAgICAgZm9yICh2YXIgaXRlbSBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKG9iai5oYXNPd25Qcm9wZXJ0eShpdGVtKSAmJiBpdGVtID09PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIGlzRW51bWVyYWJsZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-46","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-46.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ2MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00NjAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgYSBGdW5jdGlvbiwgW1tFbnVtZXJhYmxlXV0gaXMgdHJ1ZSwgW1tDb25maWd1cmFibGVdXSBpcyB0cnVlKSBpcyBlbnVtZXJhYmxlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciB2ZXJpZnlTZXRGdW5jID0gImRhdGEiOwogICAgICAgIHZhciBzZXRGdW5jID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIHZlcmlmeVNldEZ1bmMgPSB2YWx1ZTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICBmb3IgKHZhciBwIGluIG9iaikgewogICAgICAgICAgICBpZiAocCA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2MuZW51bWVyYWJsZSA9PT0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-460","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-460.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ2MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00NjEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgYSBGdW5jdGlvbiwgW1tFbnVtZXJhYmxlXV0gaXMgdHJ1ZSwgW1tDb25maWd1cmFibGVdXSBpcyB0cnVlKSBpcyBkZWxldGFibGUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHZlcmlmeVNldEZ1bmMgPSAiZGF0YSI7CiAgICAgICAgdmFyIHNldEZ1bmMgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgdmVyaWZ5U2V0RnVuYyA9IHZhbHVlOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcih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0pOwo=","id":"15.2.3.6-4-462","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-462.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ2MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00NjMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBzdWNjZXNzIHRvIHVwZGF0ZSBbW1NldF1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgYSBGdW5jdGlvbiwgW1tFbnVtZXJhYmxlXV0gaXMgdHJ1ZSwgW1tDb25maWd1cmFibGVdXSBpcyB0cnVlKSB0byBkaWZmZXJlbnQgdmFsdWUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHZlcmlmeVNldEZ1bmMgPSAiZGF0YSI7CiAgICAgICAgdmFyIHNldEZ1bmMgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgdmVyaWZ5U2V0RnVuYyA9IHZhbHVlOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIE9iamVjd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0ge307CgogICAgICAgIHZhciB2ZXJpZnlTZXRGdW5jID0gImRhdGEiOwogICAgICAgIHZhciBzZXRGdW5jID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIHZlcmlmeVNldEZ1bmMgPSB2YWx1ZTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciByZXN1bHQxID0gZmFsc2U7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgZm9yICh2YXIgcDEgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwMSA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICByZXN1bHQxID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIHJlc3VsdDIgPSBmYWxzZTsKICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICBmb3IgKHZhciBwMiBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHAyID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIHJlc3VsdDIgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gcmVzdWx0MSAmJiAhcmVzdWx0MiAmJiBkZXNjMS5lbnVt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ICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICBkZWxldGUgb2JqLnByb3A7CgogICAgICAgIHJldHVybiBkZXNjMS5jb25maWd1cmFibGUgPT09IHRydWUgJiYgZGVzYzIuY29uZmlndXJhYmxlID09PSBmYWxzZSAmJiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-465","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-465.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ2NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00NjYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF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AgICAgIHZhciB2ZXJpZnlTZXRGdW5jID0gImRhdGEiOwogICAgICAgIHZhciBzZXRGdW5jID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIHZlcmlmeVNldEZ1bmMgPSB2YWx1ZTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcCA9ICJvdmVycmlkZURhdGEiOwogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2Muc2V0ID09PSBzZXRGdW5jICYmIHZlcmlmeVNldEZ1bmMgPT09ICJvdmVycmlkZURhdGEiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-468","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-468.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ2OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTU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ICAgfQoKICAgICAgICByZXR1cm4gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-469","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-469.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTQ3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICduYW1lJyBwcm9wZXJ0eSBkb2Vzbid0IGV4aXN0IGluICdPJywgW1tWYWx1ZV1dIG9mICduYW1lJyBwcm9wZXJ0eSBpcyBzZXQgYXMgdW5kZWZpbmVkIGlmIGl0IGlzIGFic2VudCBpbiBkYXRhIGRlc2NyaXB0b3IgJ2Rlc2MnICg4LjEyLjkgc3RlcCA0LmEuaSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgewogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAicHJvcGVydHkiLCB1bmRl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0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTAwMTsKICAgICAgICB9OwoKICAgICAgICB2YXIgdmVyaWZ5U2V0RnVuYyA9ICJkYXRhIjsKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICB2ZXJpZnlTZXRGdW5jID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogdW5kZWZpbmVkLAogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHJlc3VsdDEgPSB0eXBlb2Ygb2JqLnByb3AgPT09ICJ1bmRlZmluZWQiOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYwogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciByZXN1bHQyID0gdHlwZW9mIG9iai5wcm9wID09PSAidW5kZWZpbmVkIjsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgICAgICByZXR1cm4gcmVzdWx0MSAmJiByZXN1bHQyICYmIHR5cGVvZiBkZX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ICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZAogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICAgICAgcmV0dXJuIGRlc2MxLnNldCA9PT0gc2V0RnVuYyAmJiBkZXNjMi5zZXQgPT09IHNldEZ1bmMgJiYgZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-472","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-472.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ3MyIsCgogICAgcGF0aDogIlRl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B9CiAgICAgICAgfQoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIHJlc3VsdDIgPSBmYWxzZTsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgICAgIGZvciAodmFyIHAyIGluIG9iaikgewogICAgICAgICAgICAgICAgaWYgKHAyID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgICAgICByZXN1bHQyID0gdHJ1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDEgJiYgcmVzdWx0MiAmJiBkZXNjMS5lbnVtZXJhYmxlID09PSB0cnVlICYmIGRlc2MyLmVudW1lcmFibGUgPT09IHRydWUgJiYgZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-473","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-473.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ3NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvM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gdmVyaWZ5U2V0RnVuYyA9ICJkYXRhIjsKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICB2ZXJpZnlTZXRGdW5jID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogdW5kZWZpbmVkLAogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTAwMQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICAgICAgcmV0dXJuIGRlc2MxLmhhc093blByb3BlcnR5KCJnZXQiKSAmJiAhZGVzYzIuaGFzT3duUHJvcGVydHkoInZhbHVlIikgJiYgZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":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ICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcCA9ICJvdmVycmlkZURhdGEiOwogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2Muc2V0ID09PSBzZXRGdW5jICYmIHZlcmlmeVNldEZ1bmMgPT09ICJvdmVycmlkZURhdGEiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-477","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-477.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ3OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00NzguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgYSBGdW5jdGlvbiwgW1tFbnVtZXJhYmxlXV0gaXMgZmFsc2UsIFtbQ29uZmlndXJhYmxlXV0gaXMgdHJ1ZSkgaXMgbm9uLWVudW1lcmFibGUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHZlcmlmeVNldEZ1bmMgPSAiZGF0YSI7CiAgICAgICAgdmFyIHNldEZ1bmMgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgdmVyaWZ5U2V0RnVuYyA9IHZhbHVlOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICBmb3IgKHZhciBwIGluIG9iaikgewogICAgICAgICAgICBpZiAocCA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYy5lbnVtZXJhYmxlID09PSBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-478","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-478.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ3OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00NzkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgYSBGdW5jdGlvbiwgW1tFbnVtZXJhYmxlXV0gaXMgZmFsc2UsIFtbQ29uZmlndXJhYmxlXV0gaXMgdHJ1ZSkgaXMgZGVsZXRhYmxlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciB2ZXJpZnlTZXRGdW5jID0gImRhdGEiOwogICAgICAgIHZhciBzZXRGdW5jID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIHZlcmlmeVNldEZ1bmMgPSB2YWx1ZTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAg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OwoKICAgICAgICB2YXIgdmVyaWZ5U2V0RnVuYyA9ICJkYXRhIjsKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICB2ZXJpZnlTZXRGdW5jID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogdW5kZWZpbmVkLAogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHJlc3VsdDEgPSB0eXBlb2Ygb2JqLnByb3AgPT09ICJ1bmRlZmluZWQiOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jCiAgICAgICAgfSk7CgogICAgICAgIHZhciByZXN1bHQyID0gb2JqLnByb3AgPT09IDEwMDE7CiAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiByZXN1bHQxICYmIHJlc3VsdDIgJiYgdHlwZW9mIGRlc2MxLmdldCA9PT0gInVuZGVmaW5lZCIgJiYgZGVzYzIuZ2V0ID09PSBnZXRGdW5jOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTs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gICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgdmVyaWZ5U2V0RnVuYyA9ICJkYXRhIjsKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICB2ZXJpZnlTZXRGdW5jID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogdW5kZWZpbmVkLAogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHJlc3VsdDEgPSBmYWxzZTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICBmb3IgKHZhciBwMSBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHAxID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIHJlc3VsdDEgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHZhciByZXN1bHQyID0gZmFsc2U7CiAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgZm9yICh2YXIgcDIgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwMiA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICByZXN1bHQyID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgcmV0dXJuICFyZXN1bHQxICYmIHJlc3VsdD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plY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgIGRlbGV0ZSBvYmoucHJvcDsKCiAgICAgICAgcmV0dXJuIGRlc2MxLmNvbmZpZ3VyYWJsZSA9PT0gdHJ1ZSAmJiBkZXNjMi5jb25maWd1cmFibGUgPT09IGZhbHNlICYmIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-483","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-483.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ4NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zL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b24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgdmVyaWZ5U2V0RnVuYyA9ICJkYXRhIjsKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICB2ZXJpZnlTZXRGdW5jID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogdW5kZWZpbmVkLAogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIG9iai5wcm9wID0gIm92ZXJyaWRlRGF0YSI7CiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYy5zZXQgPT09IHNldEZ1bmMgJiYgdmVyaWZ5U2V0RnVuYyA9PT0gIm92ZXJyaWRlRGF0YSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTs=","id":"15.2.3.6-4-486","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-486.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS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QsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcDsKCiAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiBkZXNjLmNvbmZpZ3VyYWJsZSA9PT0gZmFsc2UgJiYgb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-488","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-488.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ4OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00ODkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSBbW0dldF1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyB1bmRlZmluZWQsIFtbU2V0XV0gaXMgYSBGdW5jdGlvbiwgW1tFbnVtZXJhYmxlXV0gaXMgZmFsc2UsIFtbQ29uZmlndXJhYmxlXV0gaXMgZmFsc2UpIHRvIGRpZmZlcmVudCB2YWx1ZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgZ2V0RnVuYyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIDEwMDE7CiAgICAgICAgfTsKCiAgICAgICAgdmFyIHZlcmlmeVNldEZ1bmMgPSAiZGF0YSI7CiAgICAgICAgdmFyIHNldEZ1bmMgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgdmVyaWZ5U2V0RnVuYyA9IHZhbHVlOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgcmVzdWx0MSA9IHR5cGVvZiBvYmoucHJvcCA9PT0gInVuZGVmaW5lZCI7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgZ2V0OiBnZXRGdW5jCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIHJlc3VsdDIgPSB0eXBlb2Ygb2JqLnByb3AgPT09ICJ1bmRlZmluZWQiOwogICAgICA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KICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICB2ZXJpZnlTZXRGdW5jID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogdW5kZWZpbmVkLAogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIHNldDogdW5kZWZpbmVkCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgICAgICByZXR1cm4gZGVzYzEuc2V0ID09PSBzZXRGdW5jICYmIGRlc2MyLnNldCA9PT0gc2V0RnVuYyAmJiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-490","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3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GluIG9iaikgewogICAgICAgICAgICBpZiAocDEgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgcmVzdWx0MSA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciByZXN1bHQyID0gZmFsc2U7CiAgICAgICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgICAgICBmb3IgKHZhciBwMiBpbiBvYmopIHsKICAgICAgICAgICAgICAgIGlmIChwMiA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICAgICAgcmVzdWx0MiA9IHRydWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHJldHVybiAhcmVzdWx0MSAmJiAhcmVzdWx0MiAmJiBkZXNjMS5lbnVtZXJhYmxlID09PSBmYWxzZSAmJiBkZXNjMi5lbnVtZXJhYmxlID09PSBmYWxzZSAmJiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-491","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-491.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3Rlcl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lndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgICAgIGRlbGV0ZSBvYmoucHJvcDsKCiAgICAgICAgICAgIHJldHVybiBkZXNjMS5jb25maWd1cmFibGUgPT09IGZhbHNlICYmIGRlc2MyLmNvbmZpZ3VyYWJsZSA9PT0gZmFsc2UgJiYgb2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-492","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-492.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ5MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00OTMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSB0aGUgYWNjZXNzb3IgcHJvcGVydHkgKFtbR2V0XV0gaXMgdW5kZWZpbmVkLCBbW1NldF1dIGlzIGEgRnVuY3Rpb24sIFtbRW51bWVyYWJsZV1dIGlzIGZhbHNlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIGZhbHNlKSB0byBhIGRhdGEgcHJvcGVydHkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHZlcmlmeVNldEZ1bmMgPSAiZGF0YSI7CiAgICAgICAgdmFyIHNldEZ1bmMgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgdmVyaWZ5U2V0RnVuYyA9IHZhbHVlOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMDAxCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgICAgICByZXR1cm4gZGVzYzEuaGFzT3duUHJvcGVydHkoImdldCIpICYmICFkZXNjMi5oYXNPd25Qcm9wZXJ0eSgidmFsdWUiKSAmJiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc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cCIpOwogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYy5nZXQgPT09IGdldEZ1bmMgJiYgb2JqLnByb3AgPT09IDEwMDE7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-494","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-494.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ5NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00OTUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1NldF1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW1NldF1dIGlzIHVuZGVmaW5lZCwgW1tFbnVtZXJhYmxlXV0gaXMgdHJ1ZSwgW1tDb25maWd1cmFibGVdXSBpcyB0cnVlKSBpcyB1bmRlZmluZWQiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGdldEZ1bmMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAxMDAxOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgdHlwZW9mIGRlc2Muc2V0ID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOw==","id":"15.2.3.6-4-495","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-495.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTQ5NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC00OTYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tHZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW1NldF1dIGlzIHVuZGVmaW5lZCwgW1tFbnVtZXJhYmxlXV0gaXMgdHJ1ZSwgW1tDb25maWd1cmFibGVdXSBpcyB0cnVlKSBpcyBlbnVtZXJhYmxlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTAwMTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICBmb3IgKHZhciBwIGluIG9iaikgewogICAgICAgICAgICBpZiAocCA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2MuZW51bWVyYWJsZSA9PT0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-496","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-496.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAg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","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-5.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTUwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICduYW1lJyBwcm9wZXJ0eSBkb2Vzbid0IGV4aXN0IGluICdPJywgdGVzdCBbW0NvbmZpZ3VyYWJsZV1dIG9mICduYW1lJyBwcm9wZXJ0eSBpcyBzZXQgYXMgZmFsc2UgaWYgaXQgaXMgYWJzZW50IGluIGRhdGEgZGVzY3JpcHRvciAnZGVzYycgKDguMTIuOSBzdGVwIDQuYS5pKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMDAxLAogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJwcm9wZXJ0eSIsIDEwMDEsIHRydWUsIHRydWUsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-50","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-50.js"},{"code":"RVM1SG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ICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciByZXN1bHQyID0gZmFsc2U7CiAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgZm9yICh2YXIgcDIgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwMiA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICByZXN1bHQyID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIHJlc3VsdDEgJiYgIXJlc3VsdDIgJiYgZGVzYzEuZW51bWVyYWJsZSA9PT0gdHJ1ZSAmJiBkZXNjMi5lbnVtZXJhYmxlID09PSBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-500","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-500.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUwMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MDEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBzdWNjZXNzIHRvIHVwZGF0ZSBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW1NldF1dIGlzIHVuZGVmaW5lZCwgW1tFbnVtZXJhYmxlXV0gaXMgdHJ1ZSwgW1tDb25maWd1cmFibGVdXSBpcyB0cnVlKSB0byBkaWZmZXJlbnQgdmFsdWUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGdldEZ1bmMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAxMDAxOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICBkZWxldGUgb2JqLnByb3A7CgogICAgICAgIHJldHVybiBkZXNjMS5jb25maWd1cmFibGUgPT09IHRydWUgJiYgZGVzYzIuY29uZmlndXJhYmxlID09PSBmYWxzZSAmJiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-501","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-501.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUwMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MDIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBzdWNjZXNzIHRvIHVwZGF0ZSB0aGUgYWNjZXNzb3IgcHJvcGVydHkgKFtbR2V0XV0gaXMgYSBGdW5jdGlvbiwgW1tTZXRdXSBpcyB1bmRlZmluZWQsIFtbRW51bWVyYWJsZV1dIGlzIHRydWUsIFtbQ29uZmlndXJhYmxlXV0gaXMgdHJ1ZSkgdG8gYSBkYXRhIHByb3BlcnR5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTAwMTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgIC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ZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTAwMTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiBkZXNjLmdldCA9PT0gZ2V0RnVuYyAmJiBvYmoucHJvcCA9PT0gMTAwMTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-503","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-503.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUwNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MDQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1NldF1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW1NldF1dIGlzIHVuZGVmaW5lZCwgW1tFbnVtZXJhYmxlXV0gaXMgdHJ1ZSwgW1tDb25maWd1cmFibGVdXSBpcyBmYWxzZSkgaXMgdW5kZWZpbmVkIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTAwMTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiB0eXBlb2YgZGVzYy5zZXQgPT09ICJ1bmRlZmluZWQiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-504","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-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GVzYy5lbnVtZXJhYmxlID09PSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTs=","id":"15.2.3.6-4-505","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-505.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUwNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MDYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tHZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW1NldF1dIGlzIHVuZGVmaW5lZCwgW1tFbnVtZXJhYmxlXV0gaXMgdHJ1ZSwgW1tDb25maWd1cmFibGVdXSBpcyBmYWxzZSkgaXMgdW5kZWxldGFibGUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGdldEZ1bmMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAxMDAxOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd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IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGdldEZ1bmMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAxMDAxOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHZhciByZXN1bHQxID0gb2JqLnByb3AgPT09IDEwMDE7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgcmVzdWx0MiA9IG9iai5wcm9wID09PSAxMDAxOwogICAgICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgICAgIHJldHVybiByZXN1bHQxICYmIHJlc3VsdDIgJiYgZGVzYzEuZ2V0ID09PSBnZXRGdW5jICYmIGRlc2MyLmdldCA9PT0gZ2V0RnVuYyAmJiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgIC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ICAgc2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgc2V0OiBzZXRGdW5jCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgICAgICByZXR1cm4gdHlwZW9mIGRlc2MxLnNldCA9PT0gInVuZGVmaW5lZCIgJiYgdHlwZW9mIGRlc2MyLnNldCA9PT0gInVuZGVmaW5lZCIgJiYgZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-508","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-508.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUwOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MDkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUgb2YgYWNjZXNzb3IgcHJvcGVydHkgKFtbR2V0XV0gaXMgYSBGdW5jdGlvbiwgW1tTZXRdXSBpcyB1bmRlZmluZWQsIFtbRW51bWVyYWJsZV1dIGlzIHRydWUsIFtbQ29uZmlndXJhYmxlXV0gaXMgZmFsc2UpIHRvIGRpZmZlcmVudCB2YWx1ZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgZ2V0RnVuYyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIDEwMDE7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgcmVzdWx0MSA9IGZhbHNlOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgIGZvciAodmFyIHAxIGluIG9iaikgewogICAgICAgICAgICBpZiAocDEgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgcmVzdWx0MSA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgcmVzdWx0MiA9IGZhbHNlOwogICAgICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICAgICAgZm9yICh2YXIgcDIgaW4gb2JqKSB7CiAgICAgICAgICAgICAgICBpZiAocDIgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgICAgIHJlc3VsdDIgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICByZXR1cm4gcmVzdWx0MSAmJiByZXN1bHQyICYmIGRlc2MxLmVudW1lcmFibGUgPT09IHRydWUgJiYgZGVzYzIuZW51bWVyYWJsZSA9PT0gdHJ1ZSAmJiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-509","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-509.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTUxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGRlc2MgaXMgZGF0YSBkZXNjcmlwdG9yLCB0ZXN0IHVwZGF0aW5nIGFsbCBhdHRyaWJ1dGUgdmFsdWVzIG9mICduYW1lJyAoOC4xMi45IHN0ZXAgNC5hLmkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0geyAicHJvcGVydHkiOiAxIH07IC8vIGRlZmF1bHQgdmFsdWUgb2YgYXR0cmlidXRlczogd3JpdGFibGU6IHRydWUsIGNvbmZpZ3VyYWJsZTogdHJ1ZSwgZW51bWVyYWJsZTogdHJ1ZQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMDAxLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJwcm9wZXJ0eSIsIDEwMDEsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-51","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-51.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUxMCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MTAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW1NldF1dIGlzIHVuZGVmaW5lZCwgW1tFbnVtZXJhYmxlXV0gaXMgdHJ1ZSwgW1tDb25maWd1cmFibGVdXSBpcyBmYWxzZSkgdG8gZGlmZmVyZW50IHZhbHVlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTAwMTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgICAgICBkZWxldGUgb2JqLnByb3A7CgogICAgICAgICAgICByZXR1cm4gZGVzYzEuY29uZmlndXJhYmxlID09PSBmYWxzZSAmJiBkZXNjMi5jb25maWd1cmFibGUgPT09IG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WQsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTAwMQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICAgICAgcmV0dXJuIGRlc2MxLmhhc093blByb3BlcnR5KCJnZXQiKSAmJiAhZGVzYzIuaGFzT3duUHJvcGVydHkoInZhbHVlIikgJiYgZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-511","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-511.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUxMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MTIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0d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3JpcHRvcik7CiAgICB9Cn0pOw==","id":"15.2.3.6-4-512","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-512.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUxMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MTMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1NldF1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW1NldF1dIGlzIHVuZGVmaW5lZCwgW1tFbnVtZXJhYmxlXV0gaXMgZmFsc2UsIFtbQ29uZmlndXJhYmxlXV0gaXMgdHJ1ZSkgaXMgdW5kZWZpbmVkIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTAwMTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICA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gICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICBmb3IgKHZhciBwIGluIG9iaikgewogICAgICAgICAgICBpZiAocCA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYy5lbnVtZXJhYmxlID09PSBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOw==","id":"15.2.3.6-4-514","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-514.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUxNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MTUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tHZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW1NldF1dIGlzIHVuZGVmaW5lZCwgW1tFbnVtZXJhYmxlXV0gaXMgZmFsc2UsIFtbQ29uZmlndXJhYmxlXV0gaXMgdHJ1ZSkgaXMgZGVsZXRhYmxlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTAwMTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgZGVsZXRlIG9iai5wcm9wOwoKICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2MuY29uZmlndXJhYmxlID09PSB0cnVlICYmICFvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-515","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-515.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUxNiIsCgogICAgcGF0aDogIlRlc3RDYXNlc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gICAgICB2YXIgdmVyaWZ5U2V0RnVuYyA9ICJkYXRhIjsKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICB2ZXJpZnlTZXRGdW5jID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgc2V0OiBzZXRGdW5jCiAgICAgICAgfSk7CgogICAgICAgIG9iai5wcm9wID0gIm92ZXJyaWRlRGF0YSI7CiAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiB0eXBlb2YgZGVzYzEuc2V0ID09PSAidW5kZWZpbmVkIiAmJiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYzIuc2V0ID09PSBzZXRGdW5jICYmIHZlcmlmeVNldEZ1bmMgPT09ICJvdmVycmlkZURhdGEiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-517","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-517.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUxOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MTguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBzdWNjZXNzIHRvIHVwZGF0ZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUgb2YgYWNjZXNzb3IgcHJvcGVydHkgKFtbR2V0XV0gaXMgYSBGdW5jdGlvbiwgW1tTZXRdXSBpcyB1bmRlZmluZWQsIFtbRW51bWVyYWJsZV1dIGlzIGZhbHNlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIHRydWUpIHRvIGRpZmZlcmVudCB2YWx1ZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgZ2V0RnVuYyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIDEwMDE7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgcmVzdWx0MSA9IGZhbHNlOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgIGZvciAodmFyIHAxIGluIG9iaikgewogICAgICAgICAgICBpZiAocDEgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgcmVzdWx0MSA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIHJlc3VsdDIgPSBmYWxzZTsKICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICBmb3IgKHZhciBwMiBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHAyID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIHJlc3VsdDIgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gIXJlc3VsdDEgJiYgcmVzdWx0MiAmJiBkZXNjMS5lbnVtZXJhYmxlID09PSBmYWxzZSAmJiBkZXNjMi5lbnVtZXJhYmxlID09PSB0cnVlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-518","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-518.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUxOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MTk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YyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIDEwMDE7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2MuZ2V0ID09PSBnZXRGdW5jICYmIG9iai5wcm9wID09PSAxMDAxOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-521","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-521.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUyMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MjIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1NldF1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW1NldF1dIGlzIHVuZGVmaW5lZCwgW1tFbnVtZXJhYmxlXV0gaXMgZmFsc2UsIFtbQ29uZmlndXJhYmxlXV0gaXMgZmFsc2UpIGlzIHVuZGVmaW5lZCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgZ2V0RnVuYyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIDEwMDE7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIHR5cGVvZiBkZXNjLnNldCA9PT0gInVuZGVmaW5lZCI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTs=","id":"15.2.3.6-4-522","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-522.js"},{"code":"RV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AgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiBkZXNjLmVudW1lcmFibGUgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-523","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-523.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUyNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MjQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tHZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW1NldF1dIGlzIHVuZGVmaW5lZCwgW1tFbnVtZXJhYmxlXV0gaXMgZmFsc2UsIFtbQ29uZmlndXJhYmxlXV0gaXMgZmFsc2UpIGlzIHVuZGVsZXRhYmxlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTAwMTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ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1ZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTAwMTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHJlc3VsdDEgPSBvYmoucHJvcCA9PT0gMTAwMTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IHVuZGVmaW5lZAogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciByZXN1bHQyID0gb2JqLnByb3AgPT09IDEwMDE7CiAgICAgICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDEgJiYgcmVzdWx0MiAmJiBkZXNjMS5nZXQgPT09IGdldEZ1bmMgJiYgZGVzYzIuZ2V0ID09PSBnZXRGdW5jICYmIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9u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ICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBzZXQ6IHNldEZ1bmMKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgICAgIHJldHVybiB0eXBlb2YgZGVzYzEuc2V0ID09PSAidW5kZWZpbmVkIiAmJiB0eXBlb2YgZGVzYzIuc2V0ID09PSAidW5kZWZpbmVkIiAmJiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-526","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-526.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUyNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MjcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUgb2YgYWNjZXNzb3IgcHJvcGVydHkgKFtbR2V0XV0gaXMgYSBGdW5jdGlvbiwgW1tTZXRdXSBpcyB1bmRlZmluZWQsIFtbRW51bWVyYWJsZV1dIGlzIGZhbHNlLCBbW0NvbmZpZ3VyYWJsZV1dIGlzIGZhbHNlKSB0byBkaWZmZXJlbnQgdmFsdWUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGdldEZ1bmMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAxMDAxOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciByZXN1bHQxID0gZmFsc2U7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgZm9yICh2YXIgcDEgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwMSA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICByZXN1bHQxID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIHJlc3VsdDIgPSBmYWxzZTsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgICAgIGZvciAodmFyIHAyIGluIG9iaikgewogICAgICAgICAgICAgICAgaWYgKHAyID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgICAgICByZXN1bHQyID0gdHJ1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgICAgcmV0dXJuICFyZXN1bHQxICYmICFyZXN1bHQyICYmIGRlc2MxLmVudW1lcmFibGUgPT09IGZhbHNlICYmIGRlc2MyLmVudW1lcmFibGUgPT09IGZhbHNlICYmIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-527","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-527.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUyOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MjguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW1NldF1dIGlzIHVuZGVmaW5lZCwgW1tFbnVtZXJhYmxlXV0gaXMgZmFsc2UsIFtbQ29uZmlndXJhYmxlXV0gaXMgZmFsc2UpIHRvIGRpZmZlcmVudCB2YWx1ZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgZ2V0RnVuYyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIDEwMDE7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgICAgIGRlbGV0ZSBvYmoucHJvcDsKCiAgICAgICAgICAgIHJldHVybiBkZXNjMS5jb25maWd1cmFibGUgPT09IGZhbHNlICYmIGRlc2MyLmN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NldDogdW5kZWZpbmVkLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMDAxCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgICAgICByZXR1cm4gZGVzYzEuaGFzT3duUHJvcGVydHkoImdldCIpICYmICFkZXNjMi5oYXNPd25Qcm9wZXJ0eSgidmFsdWUiKSAmJiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-529","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-529.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTUzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICduYW1lJyBwcm9wZXJ0eSBkb2Vzbid0IGV4aXN0IGluICdPJywgdGVzdCBbW0dldF1dIG9mICduYW1lJyBwcm9wZXJ0eSBpcyBzZXQgYXMgdW5kZWZpbmVkIGlmIGl0IGlzIGFic2VudCBpbiBhY2Nlc3NvciBkZXNjcmlwdG9yICdkZXNjJyAoOC4xMi45IHN0ZXAgNC5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBzZXRGdW5jID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIG9iai5zZXRWZXJpZnlIZWxwUHJvcCA9IHZhbHVlOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJwcm9wZXJ0eSIsIHVuZGVmaW5lZCwgc2V0RnVuYywgInNldFZlcmlmeUhlbHBQcm9wIiwgdHJ1ZSwgdHJ1ZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-53","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-53.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUzMCIsCgogICAgcGF0aDogIlRlc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HZhbHVlKSB7CiAgICAgICAgICAgICAgICBvYmoudmVyaWZ5U2V0RnVuY3Rpb24gPSB2YWx1ZTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIG9iai52ZXJpZnlTZXRGdW5jdGlvbjEgPSAiZGF0YTEiOwogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gb2JqLnZlcmlmeVNldEZ1bmN0aW9uMTsKICAgICAgICB9OwogICAgICAgIHZhciBzZXRGdW5jID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIG9iai52ZXJpZnlTZXRGdW5jdGlvbjEgPSB2YWx1ZTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiBzZXRGdW5jCiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAicHJvcGVydHkiLCBnZXRGdW5jLCBzZXRGdW5jLCAidmVyaWZ5U2V0RnVuY3Rpb24xIiwgZmFsc2UsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-531-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-531-1.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8v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dHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBvYmoudmVyaWZ5U2V0RnVuY3Rpb24xID0gImRhdGExIjsKICAgICAgICB2YXIgZ2V0RnVuYyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIG9iai52ZXJpZnlTZXRGdW5jdGlvbjE7CiAgICAgICAgfTsKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICBvYmoudmVyaWZ5U2V0RnVuY3Rpb24xID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgIjAiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiBzZXRGdW5jCiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiMCIsIGdldEZ1bmMsIHNldEZ1bmMsICJ2ZXJpZnlTZXRGdW5jdGlvbjEiLCBmYWxzZSwgdHJ1ZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTs=","id":"15.2.3.6-4-531-12","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-531-12.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0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tTZXRdXSBhdHRyaWJ1dGVzIG9mIGluZGV4ZWQgYWNjZXNzb3IgcHJvcGVydHkgJ1AnIHN1Y2Nlc3NmdWxseSB3aGVuIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIGlzIHRydWUsICdPJyBpcyB0aGUgZ2xvYmFsIG9iamVjdCAoOC4xMi45IHN0ZXAgMTEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IGZuR2xvYmFsT2JqZWN0KCk7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgb2JqLnZlcmlmeVNldEZ1bmN0aW9uID0gImRhdGEiOwogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiMCIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiBvYmoudmVyaWZ5U2V0RnVuY3Rpb247CiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgICAgICAgICBvYmoudmVyaWZ5U2V0RnVuY3Rpb24gPSB2YWx1ZTsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBvYmoudmVyaWZ5U2V0RnVuY3Rpb24xID0gImRhdGExIjsKICAgICAgICAgICAgdmFyIGdldEZ1bmMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gb2JqLnZlcmlmeVNldEZ1bmN0aW9uMTsKICAgICAgICAgICAgfTsKICAgICAgICAgICAgdmFyIHNldEZ1bmMgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgICAgIG9iai52ZXJpZnlTZXRGdW5jdGlvbjEgPSB2YWx1ZTsKICAgICAgICAgICAgfTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICAgICAgc2V0OiBzZXRGdW5jCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICIwIiwgZ2V0RnVuYywgc2V0RnVuYywgInZlcmlmeVNldEZ1bmN0aW9uMSIsIGZhbHNlLCB0cnVlKTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgb2JqWzBdOwogICAgICAgICAgICBkZWxldGUgb2JqLnZlcmlmeVNldEZ1bmN0aW9uOwogICAgICAgICAgICBkZWxldGUgb2JqLnZlcmlmeVNldEZ1bmN0aW9uMTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTs=","id":"15.2.3.6-4-531-13","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-531-13.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbX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c3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSBbXTsKCiAgICAgICAgdmFyIHZlcmlmeVNldEZ1bmMgPSAiZGF0YSI7CiAgICAgICAgdmFyIHNldEZ1bmMgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgdmVyaWZ5U2V0RnVuYyA9IHZhbHVlOwogICAgICAgIH07CiAgICAgICAgdmFyIGdldEZ1bmMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiB2ZXJpZnlTZXRGdW5jOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIG9iai5wcm9wID0gIm92ZXJyaWRlRGF0YSI7CiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYy5zZXQgPT09IHNldEZ1bmMgJiYgb2JqLnByb3AgPT09ICJvdmVycmlkZURhdGEiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-531-15","path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V0RnVuYyA9IHZhbHVlOwogICAgICAgICAgICB9OwogICAgICAgICAgICB2YXIgZ2V0RnVuYyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiBvYmoudmVyaWZ5U2V0RnVuYzsKICAgICAgICAgICAgfTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIG9ialswXSA9ICJvdmVycmlkZURhdGEiOwogICAgICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCIwIik7CiAgICAgICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICIwIik7CgogICAgICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2Muc2V0ID09PSBzZXRGdW5jICYmIG9ialswXSA9PT0gIm92ZXJyaWRlRGF0YSI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIG9ialswXTsKICAgICAgICAgICAgZGVsZXRlIG9iai52ZXJpZnlTZXRGdW5jOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOw==","id":"15.2.3.6-4-531-17","path":"TestCases/chapter15/15.2/15.2.3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VyaWZ5U2V0RnVuY3Rpb247CiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgICAgICAgICBvYmoudmVyaWZ5U2V0RnVuY3Rpb24gPSB2YWx1ZTsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBvYmoudmVyaWZ5U2V0RnVuY3Rpb24xID0gImRhdGExIjsKICAgICAgICAgICAgdmFyIGdldEZ1bmMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gb2JqLnZlcmlmeVNldEZ1bmN0aW9uMTsKICAgICAgICAgICAgfTsKICAgICAgICAgICAgdmFyIHNldEZ1bmMgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgICAgIG9iai52ZXJpZnlTZXRGdW5jdGlvbjEgPSB2YWx1ZTsKICAgICAgICAgICAgfTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgICAgIHNldDogc2V0RnVuYwogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAicHJvcGVydHkiLCBnZXRGdW5jLCBzZXRGdW5jLCAidmVyaWZ5U2V0RnVuY3Rpb24xIiwgZmFsc2UsIHRydWUpOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CiAgICAgICAgICAgIGRlbGV0ZSBvYmoudmVyaWZ5U2V0RnVuY3Rpb247CiAgICAgICAgICAgIGRlbGV0ZSBvYmoudmVyaWZ5U2V0RnVuY3Rpb24xOwogICAgICAgIH0KIC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dldEZ1bmMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiB2ZXJpZnlTZXRGdW5jOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcCA9ICJvdmVycmlkZURhdGEiOwogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIHR5cGVvZiBkZXNjLnNldCA9PT0gInVuZGVmaW5lZCIgJiYgb2JqLnByb3AgPT09ICJkYXRhIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOw==","id":"15.2.3.6-4-531-7","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-531-7.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0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lcnR5ICdQJyB3aXRob3V0IFtbU2V0XV0gdXNpbmcgc2ltcGxlIGFzc2lnbm1lbnQgaXMgZmFpbGVkLCAnTycgaXMgdGhlIGdsb2JhbCBvYmplY3QgKDguMTIuNSBzdGVwIDUuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSBmbkdsb2JhbE9iamVjdCgpOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIG9iai52ZXJpZnlTZXRGdW5jID0gImRhdGEiOwogICAgICAgICAgICB2YXIgZ2V0RnVuYyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiBvYmoudmVyaWZ5U2V0RnVuYzsKICAgICAgICAgICAgfTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIG9iai5wcm9wID0gIm92ZXJyaWRlRGF0YSI7CiAgICAgICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgdHlwZW9mIGRlc2Muc2V0ID09PSAidW5kZWZpbmVkIiAmJiBvYmoucHJvcCA9PT0gImRhdGEiOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBvYmoucHJvcDsKICAgICAgICAgICAgZGVsZXRlIG9iai52ZXJpZnlTZX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LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3AgPSAib3ZlcnJpZGVEYXRhIjsKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiBkZXNjLnNldCA9PT0gc2V0RnVuYyAmJiB2ZXJpZnlTZXRGdW5jID09PSAib3ZlcnJpZGVEYXRhIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOw==","id":"15.2.3.6-4-531","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-531.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUzMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MzIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tHZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW1NldF1dIGlzIGEgRnVuY3Rpb24sIFtbRW51bWVyYWJsZV1dIGlzIHRydWUsIFtbQ29uZmlndXJhYmxlXV0gaXMgdHJ1ZSkgaXMgZW51bWVyYWJsZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgZ2V0RnVuYyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIDEwMDE7CiAgICAgICAgfTsKCiAgICAgICAgdmFyIHZlcmlmeVNldEZ1bmMgPSAiZGF0YSI7CiAgICAgICAgdmFyIHNldEZ1bmMgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgdmVyaWZ5U2V0RnVuYyA9IHZhbHVlOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICBmb3IgKHZhciBwIGluIG9iaikgewogICAgICAgICAgICBpZiAocCA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2MuZW51bWVyYWJsZSA9PT0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-532","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-532.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUzMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MzMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tHZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW1NldF1dIGlzIGEgRnVuY3Rpb24sIFtbRW51bWVyYWJsZV1dIGlzIHRydWUsIFtbQ29uZmlndXJhYmxlXV0gaXMgdHJ1ZSkgaXMgZGVsZXRhYmxlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTAwMTsKICAgICAgICB9OwoKICAgICAgICB2YXIgdmVyaWZ5U2V0RnVuYyA9ICJkYXRhIjsKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICB2ZXJpZnlTZXRGdW5jID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlO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J1ZSkgdG8gZGlmZmVyZW50IHZhbHVlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTAwMTsKICAgICAgICB9OwoKICAgICAgICB2YXIgdmVyaWZ5U2V0RnVuYyA9ICJkYXRhIjsKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICB2ZXJpZnlTZXRGdW5jID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHJlc3VsdDEgPSBvYmoucHJvcCA9PT0gMTAwMTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogdW5kZWZpbmVkCiAgICAgICAgfSk7CgogICAgICAgIHZhciByZXN1bHQyID0gdHlwZW9mIG9iai5wcm9wID09PSAidW5kZWZpbmVkIjsKICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIHJlc3VsdDEgJiYgcmVzdWx0MiAmJiBkZXNjMS5nZXQgPT09IGdldEZ1bmMgJiYgdHlwZW9mIGRlc2MyLmdldCA9PT0g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WN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZAogICAgICAgIH0pOwoKICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIGRlc2MxLnNldCA9PT0gc2V0RnVuYyAmJiB0eXBlb2YgZGVzYzIuc2V0ID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-535","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-535.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUzNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MzYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBzdWNjZXNzIHRvIHVwZGF0ZSBbW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IsIHsKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgcmVzdWx0MiA9IGZhbHNlOwogICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgIGZvciAodmFyIHAyIGluIG9iaikgewogICAgICAgICAgICBpZiAocDIgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgcmVzdWx0MiA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHJldHVybiByZXN1bHQxICYmICFyZXN1bHQyICYmIGRlc2MxLmVudW1lcmFibGUgPT09IHRydWUgJiYgZGVzYzIuZW51bWVyYWJsZSA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-536","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-536.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUzNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MzcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBzdWNjZXNzIHRvIHVwZGF0ZSBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW1NldF1dIGlzIGEgRnVuY3Rpb24sIFtbRW51bWVyYWJsZV1dIGlzIHRydWUsIFtbQ29uZmlndXJhYmxlXV0gaXMgdHJ1ZSkgdG8gZGlmZmVyZW50IHZhbHVlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTAwMTsKICAgICAgICB9OwoKICAgICAgICB2YXIgdmVyaWZ5U2V0RnVuYyA9ICJkYXRhIjsKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICB2ZXJpZnlTZXRGdW5jID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICBkZWxldGUgb2JqLnByb3A7CgogICAgICAgIHJldHVybiBkZXNjMS5jb25maWd1cmFibGUgPT09IHRydWUgJiYgZGVzYzIuY29uZmlndXJhYmxlID09PSBmYWxzZSAmJiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgIH0sCgog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wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICIwIik7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIwIiwgewogICAgICAgICAgICB2YWx1ZTogMTAwMQogICAgICAgIH0pOwogICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAiMCIpOwoKICAgICAgICByZXR1cm4gZGVzYzEuaGFzT3duUHJvcGVydHkoImdldCIpICYmIGRlc2MyLmhhc093blByb3BlcnR5KCJ2YWx1ZSIpICYmCiAgICAgICAgICAgIHR5cGVvZiBkZXNjMi5nZXQgPT09ICJ1bmRlZmluZWQiICYmIHR5cGVvZiBkZXNjMi5nZXQgPT09ICJ1bmRlZmluZWQiICYmCiAgICAgICAgICAgIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgIjAiLCAxMDAxLCBmYWxzZSwgdHJ1ZSwgdHJ1ZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-538-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-538-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUzOC0yIiw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lzIGFuIEFycmF5IG9iamVjdCAoOC4xMi45IC0gc3RlcCA5LmMuaSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSBbXTsKCiAgICAgICAgb2JqLnZlcmlmeVNldEZ1bmMgPSAiZGF0YSI7CiAgICAgICAgdmFyIGdldEZ1bmMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiBvYmoudmVyaWZ5U2V0RnVuYzsKICAgICAgICB9OwoKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICBvYmoudmVyaWZ5U2V0RnVuYyA9IHZhbHVlOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMTAwMQogICAgICAgIH0pOwogICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOyAKCiAgICAgICAgcmV0dXJuIGRlc2MxLmhhc093blByb3BlcnR5KCJnZXQiKSAmJiBkZXNjMi5oYXNPd25Qcm9wZXJ0eSgidmFsdWUiKSAmJgogICAgICAgICAgICB0eXBlb2YgZGVzYzIuZ2V0ID09PSAidW5kZWZpbmVkIiAmJiB0eXBlb2YgZGVzYzIuZ2V0ID09PSAidW5kZWZpbmVkIiAmJgogICAgICAgICAgICBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJwcm9wIiwgMTAwMSwgZmFsc2UsIHRydWUsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-538-5","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-538-5.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUzOC02IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTUzOC02LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkVTNSBBdHRyaWJ1dGVzIC0gVXBkYXRpbmcgYW4gaW5kZXhlZCBhY2Nlc3NvciBwcm9wZXJ0eSAnUCcgd2hvc2UgW1tDb25maWd1cmFibGVdXSBhdHRyaWJ1dGUgaXMgdHJ1ZSB0byBhIGRhdGEgcHJvcGVydHkgaXMgc3VjY2Vzc2Z1bCwgJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSAoZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gYXJndW1lbnRzOwogICAgICAgIH0oKSk7CgogICAgICAgIG9iai52ZXJpZnlTZXRGdW5jID0gImRhdGEiOwogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gb2JqLn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zY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMTAwMQogICAgICAgIH0pOwogICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gZGVzYzEuaGFzT3duUHJvcGVydHkoImdldCIpICYmIGRlc2MyLmhhc093blByb3BlcnR5KCJ2YWx1ZSIpICYmCiAgICAgICAgICAgIHR5cGVvZiBkZXNjMi5nZXQgPT09ICJ1bmRlZmluZWQiICYmIHR5cGVvZiBkZXNjMi5nZXQgPT09ICJ1bmRlZmluZWQiICYmCiAgICAgICAgICAgIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgInByb3AiLCAxMDAxLCBmYWxzZSwgdHJ1ZSwgdHJ1ZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-538","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-538.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTUzOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01MzkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW0dldF1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAo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KE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-539","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-539.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTU0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICduYW1lJyBwcm9wZXJ0eSBkb2Vzbid0IGV4aXN0IGluICdPJywgdGVzdCBbW1NldF1dIG9mICduYW1lJyBwcm9wZXJ0eSBvZiAnQXR0cmlidXRlcycgaXMgc2V0IGFzIHVuZGVmaW5lZCB2YWx1ZSBpZiBhYnNlbnQgaW4gYWNjZXNzb3IgZGVzY3JpcHRvciAnZGVzYycgKDguMTIuOSBzdGVwIDQuYi5pKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJwcm9wZXJ0eSI7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgoKICAgICAgICBpZiAob2JqLnByb3BlcnR5ICE9PSAicHJvcGVydHkiKSB7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3BlcnR5Iik7CiAgICAgICAgaWYgKHR5cGVvZiBkZXNjLnNldCAhPT0gInVuZGVmaW5lZCIpIHsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0KICAgICAgICBmb3IgKHZhciBwIGluIG9iaikgewogICAgICAgICAgICBpZiAocCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CiAgICAgICAgaWYgKCFvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikpIHsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIHRydWU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-54","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-54.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXR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ocm93cyBUeXBlRXJyb3IgZXhjZXB0aW9uLCAnTycgaXMgYW4gT2JqZWN0IG9iamVjdCAoOC4xMi45IHN0ZXAgMTEuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgb2JqLnZlcmlmeVNldEZ1bmN0aW9uID0gImRhdGEiOwogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gb2JqLnZlcmlmeVNldEZ1bmN0aW9uOwogICAgICAgIH07CiAgICAgICAgdmFyIHNldEZ1bmMgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgb2JqLnZlcmlmeVNldEZ1bmN0aW9uID0gdmFsdWU7CiAgICAgICAgfTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gMTAwOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJlc3VsdCA9IGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgICAgICAgIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJwcm9wZXJ0eSIsIGdldEZ1bmMsIHNldEZ1bmMsICJ2ZXJpZnlTZXRGdW5jdGlvbiIsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgICAgIG9iai52ZXJpZnlTZXRGdW5jdGlvbjEgPSB2YWx1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgfSBjYXRjaCAoZTEpIHsKICAgICAgICAgICAgcmV0dXJuIHJlc3VsdCAmJiBlMSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJgogICAgICAgICAgICAgICAgYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgInByb3BlcnR5IiwgZ2V0RnVuYywgc2V0RnVuYywgInZlcmlmeVNldEZ1bmN0aW9uIiwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTs=","id":"15.2.3.6-4-540-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-540-1.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxv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eShvYmosICIwIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgcmVzdWx0ID0gZmFsc2U7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgIjAiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gMTAwOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJlc3VsdCA9IGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgICAgICAgIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICIwIiwgZ2V0RnVuYywgc2V0RnVuYywgInZlcmlmeVNldEZ1bmN0aW9uIiwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIwIiwgewogICAgICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgICAgICAgICBvYmoudmVyaWZ5U2V0RnVuY3Rpb24xID0gdmFsdWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgIH0gY2F0Y2ggKGUxKSB7CiAgICAgICAgICAgIHJldHVybiByZXN1bHQgJiYgZTEgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgICAgICAgIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICIwIiwgZ2V0RnVuYywgc2V0RnVuYywgInZlcmlmeVNldEZ1bmN0aW9uIiw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cmlmeVNldEZ1bmN0aW9uID0gdmFsdWU7CiAgICAgICAgfTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gMTAwOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJlc3VsdCA9IGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgICAgICAgIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJwcm9wZXJ0eSIsIGdldEZ1bmMsIHNldEZ1bmMsICJ2ZXJpZnlTZXRGdW5jdGlvbiIsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgICAgIG9iai52ZXJpZnlTZXRGdW5jdGlvbjEgPSB2YWx1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgfSBjYXRjaCAoZTEpIHsKICAgICAgICAgICAgcmV0dXJuIHJlc3VsdCAmJiBlMSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJgogICAgICAgICAgICAgIC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YWx1ZTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiMCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgb2JqWzBdID0gIm92ZXJyaWRlRGF0YSI7CiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgiMCIpOwogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICIwIik7CgogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYy5zZXQgPT09IHNldEZ1bmMgJiYgb2JqLnZlcmlmeVNldEZ1bmMgPT09ICJvdmVycmlkZURhdGEiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-540-4","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-540-4.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd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pcyBzdWNjZXNzZnVsLCAnTycgaXMgYW4gQXJndW1lbnRzIG9iamVjdCAoOC4xMi41IHN0ZXAgNS5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IChmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiBhcmd1bWVudHM7CiAgICAgICAgfSgpKTsKCiAgICAgICAgb2JqLnZlcmlmeVNldEZ1bmMgPSAiZGF0YSI7CiAgICAgICAgdmFyIGdldEZ1bmMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiBvYmoudmVyaWZ5U2V0RnVuYzsKICAgICAgICB9OwoKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICBvYmoudmVyaWZ5U2V0RnVuYyA9IHZhbHVlOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcCA9ICJvdmVycmlkZURhdGEiOwogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2Muc2V0ID09PSBzZXRGdW5jICYmIG9iai52ZXJpZnlTZXRGdW5jID09PSAib3ZlcnJpZGVEYXRhIjsKICAgIH0sCgogICAgcHJlY29uZGl0a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ydHkob2JqLCAiMCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHJlc3VsdCA9IGZhbHNlOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDEwMDsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXN1bHQgPSBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmCiAgICAgICAgICAgICAgICBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiMCIsIGdldEZ1bmMsIHNldEZ1bmMsICJ2ZXJpZnlTZXRGdW5jdGlvbiIsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiMCIsIHsKICAgICAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICAgICAgb2JqLnZlcmlmeVNldEZ1bmN0aW9uMSA9IHZhbHVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICB9IGNhdGNoIChlMSkgewogICAgICAgICAgICByZXR1cm4gcmVzdWx0ICYmIGUxIGluc3RhbmNlb2YgVHlwZUVycm9yICYmCiAgICAgICAgICAgICAgICBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiMCIsIGdldEZ1bmMsIHNldEZ1bmMsICJ2ZXJpZnlTZXRGdW5jdG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ZTsKICAgICAgICB9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgcmVzdWx0ID0gZmFsc2U7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gMTAwOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJlc3VsdCA9IGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgICAgICAgIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJwcm9wIiwgZ2V0RnVuYywgc2V0RnVuYywgInZlcmlmeVNldEZ1bmN0aW9uIiwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgICAgICAgICBvYmoudmVyaWZ5U2V0RnVuY3Rpb24xID0gdmFsdWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgIH0gY2F0Y2ggKGUxKSB7CiAgICAgICAgICAgIHJldHVybiByZXN1bHQgJiYgZTEgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgICAgICAgIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29yc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iAgICAgICAgdmFyIHNldEZ1bmMgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgb2JqLnZlcmlmeVNldEZ1bmN0aW9uID0gdmFsdWU7CiAgICAgICAgfTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiMCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHJlc3VsdCA9IGZhbHNlOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDEwMDsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXN1bHQgPSBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmCiAgICAgICAgICAgICAgICBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiMCIsIGdldEZ1bmMsIHNldEZ1bmMsICJ2ZXJpZnlTZXRGdW5jdGlvbiIsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiMCIsIHsKICAgICAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICAgICAgb2JqLnZlcmlmeVNldEZ1bmN0aW9uMSA9IHZhbHVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICB9IGNhdGNoIChlMSkgewogICAgICAgICAgICByZXR1cm4gcmVzdWx0ICYmIGUxIGluc3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gb2JqLnZlcmlmeVNldEZ1bmMgPSB2YWx1ZTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3AgPSAib3ZlcnJpZGVEYXRhIjsKICAgICAgICB2YXIgcHJvcGVydHlEZWZpbmVDb3JyZWN0ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiBkZXNjLnNldCA9PT0gc2V0RnVuYyAmJiBvYmoudmVyaWZ5U2V0RnVuYyA9PT0gIm92ZXJyaWRlRGF0YSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTs=","id":"15.2.3.6-4-540-9","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-540-9.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU0MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NDAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiR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YmIHZlcmlmeVNldEZ1bmMgPT09ICJvdmVycmlkZURhdGEiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-540","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-540.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU0MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NDEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tHZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW1NldF1dIGlzIGEgRnVuY3Rpb24sIFtbRW51bWVyYWJsZV1dIGlzIHRydWUsIFtbQ29uZmlndXJhYmxlXV0gaXMgZmFsc2UpIGlzIGVudW1lcmFibGUiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGdldEZ1bmMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAxMDAxOwogICAgICAgIH07CgogICAgICAgIHZhciB2ZXJpZnlTZXRGdW5jID0gImRhdGEiOwogICAgICAgIHZhciBzZXRGdW5jID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIHZlcmlmeVNldEZ1bmMgPSB2YWx1ZTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIGZvciAodmFyIHAgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYy5lbnVtZXJhYmxlID09PSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTs=","id":"15.2.3.6-4-541","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-541.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU0MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NDIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBwcm9wZXJ0eSAoW1tHZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW1NldF1dIGlzIGEgRnVuY3Rpb24sIFtbRW51bWVyYWJsZV1dIGlzIHRydWUsIFtbQ29uZmlndXJhYmxlXV0gaXMgZmFsc2UpIGlzIHVuZGVsZXRhYmxlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTAwMTsKICAgICAgICB9OwoKICAgICAgICB2YXIgdmVyaWZ5U2V0RnVuYyA9ICJkYXRhIjsKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICB2ZXJpZnlTZXRGdW5jID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICBkZWxldGUgb2JqLnByb3A7CgogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYy5jb25maWd1cmFibGUgPT09IGZhbHNlICYmIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3Bl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VyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgcmVzdWx0MSA9IG9iai5wcm9wID09PSAxMDAxOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGdldDogdW5kZWZpbmVkCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIHJlc3VsdDIgPSBvYmoucHJvcCA9PT0gMTAwMTsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgICAgICByZXR1cm4gcmVzdWx0MSAmJiByZXN1bHQyICYmIGRlc2MxLmdldCA9PT0gZ2V0RnVuYyAmJiBkZXNjMi5nZXQgPT09IGdldEZ1bmMgJiYgZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-543","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-543.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU0NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdG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W9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGdldEZ1bmMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAxMDAxOwogICAgICAgIH07CgogICAgICAgIHZhciB2ZXJpZnlTZXRGdW5jID0gImRhdGEiOwogICAgICAgIHZhciBzZXRGdW5jID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIHZlcmlmeVNldEZ1bmMgPSB2YWx1ZTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgcmVzdWx0MSA9IGZhbHNlOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgIGZvciAodmFyIHAxIGluIG9iaikgewogICAgICAgICAgICBpZiAocDEgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgcmVzdWx0MSA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgcmVzdWx0MiA9IGZhbHNlOwogICAgICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICAgICAgZm9yICh2YXIgcDIgaW4gb2JqKSB7CiAgICAgICAgICAgICAgICBpZiAocDIgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgICAgIHJlc3VsdDIgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICByZXR1cm4gcmVzdWx0MSAmJiByZXN1bHQyICYmIGRlc2MxLmVudW1lcmFibGUgPT09IHRydWUgJiYgZGVzYzIuZW51bWVyYWJsZSA9PT0gdHJ1ZSAmJiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-545","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-545.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU0NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NDYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSBvZiBhY2Nlc3NvciBwcm9wZXJ0eSAoW1tHZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW1NldF1dIGlzIGEgRnVuY3Rpb24sIFtbRW51bWVyYWJsZV1dIGlzIHRydWUsIFtbQ29uZmlndXJhYmxlXV0gaXMgZmFsc2UpIHRvIGRpZmZlcmVudCB2YWx1ZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgZ2V0RnVuYyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIDEwMDE7CiAgICAgICAgfTsKCiAgICAgICAgdmFyIHZlcmlmeVNldEZ1bmMgPSAiZGF0YSI7CiAgICAgICAgdmFyIHNldEZ1bmMgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgdmVyaWZ5U2V0RnVuYyA9IHZhbHVlOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgICAgICBkZWxldGUgb2JqLnByb3A7CgogICAgICAgICAgICByZXR1cm4gZGVzYzEuY29uZmlndXJhYmxlID09PSBmYWxzZSAmJiBkZXNjMi5jb25maWd1cmFibGUgPT09IGZhbHNlICYmIG9iai5oYXNPd25Q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gICAgICAgIG9iai52ZXJpZnlTZXRGdW5jID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgIjAiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICIwIik7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIwIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDEwMDEKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgIjAiKTsKCiAgICAgICAgICAgIHJldHVybiBkZXNjMS5oYXNPd25Qcm9wZXJ0eSgiZ2V0IikgJiYgIWRlc2MyLmhhc093blByb3BlcnR5KCJ2YWx1ZSIpICYmIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgICAgICAgIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICIwIiwgZ2V0RnVuYywgc2V0RnVuYywgInZlcmlmeVNldEZ1bmMiLCB0cnVlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJv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AgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDEwMDEKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgICAgIHJldHVybiBkZXNjMS5oYXNPd25Qcm9wZXJ0eSgiZ2V0IikgJiYgIWRlc2MyLmhhc093blByb3BlcnR5KCJ2YWx1ZSIpICYmIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgICAgICAgIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJwcm9wIiwgZ2V0RnVuYywgc2V0RnVuYywgInZlcmlmeVNldEZ1bmMiLCB0cnVlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-547-2","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-547-2.js"},{"code":"RVM1SGFybmVzcy5yZWdp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HRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDEwMDEKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgICAgIHJldHVybiBkZXNjMS5oYXNPd25Qcm9wZXJ0eSgiZ2V0IikgJiYgIWRlc2MyLmhhc093blByb3BlcnR5KCJ2YWx1ZSIpICYmIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYKICAgICAgICAgICAgICAgIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJwcm9wIiwgZ2V0RnVuYywgc2V0RnVuYywgInZlcmlmeVNldEZ1bmMiLCB0cnVlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-547-3","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-547-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU0Ny00IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTU0Ny00LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkVTNSBBdHRyaWJ1dGVzIC0gVXBkYXRpbmcgYW4gaW5kZXhlZCBhY2Nlc3NvciBwcm9wZXJ0eSAnUCcgd2hvc2UgW1tDb25maWd1cmFibGVdXSBhdHRyaWJ1dGUgaXMgZmFsc2UgdG8gYSBkYXRhIHByb3BlcnR5IGRvZXMgbm90IHN1Y2NlZWQsICdBJyBpcyBhbiBBcmd1bWVudHMgb2JqZWN0ICg4LjEyLjkgc3RlcCA5LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0gKGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIGFyZ3VtZW50czsKICAgICAgICB9KCkpOwoKICAgICAgICBvYmoudmVyaWZ5U2V0RnVuYyA9ICJkYXRhIjsKICAgICAgICB2YXIgZ2V0RnVuYyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIG9iai52ZXJpZnlTZXRGdW5jOwogICAgICAgIH07CgogICAgICAgIHZhciBzZXRGdW5jID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIG9iai52ZXJpZnlTZXRGdW5jID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgIjAiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICIwIik7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIwIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDEwMDEKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4g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Z3VyYWJsZV1dIGlzIGZhbHNlKSB0byBhIGRhdGEgcHJvcGVydHkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGdldEZ1bmMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAxMDAxOwogICAgICAgIH07CgogICAgICAgIHZhciB2ZXJpZnlTZXRGdW5jID0gImRhdGEiOwogICAgICAgIHZhciBzZXRGdW5jID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIHZlcmlmeVNldEZ1bmMgPSB2YWx1ZTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTAwMQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICAgICAgcmV0dXJuIGRlc2MxLmhhc093blByb3BlcnR5KCJnZXQiKSAmJiAhZGVzYzIuaGFzT3duUHJvcGVydHkoInZhbHVlIikgJiYgZSBpbnN0YW5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lzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-549","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-549.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTU1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICduYW1lJyBwcm9wZXJ0eSBkb2Vzbid0IGV4aXN0IGluICdPJywgdGVzdCBbW0VudW1lcmFibGVdXSBvZiAnbmFtZScgcHJvcGVydHkgb2YgJ0F0dHJpYnV0ZXMnIGlzIHNldCBhcyBmYWxzZSB2YWx1ZSBpZiBhYnNlbnQgaW4gYWNjZXNzb3IgZGVzY3JpcHRvciAnZGVzYycgKDguMTIuOSBzdGVwIDQuYi5pKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICBvYmouc2V0VmVyaWZ5SGVscFByb3AgPSB2YWx1ZTsKICAgICAgICB9OwogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgewogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB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TZXRGdW5jID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICBmb3IgKHZhciBwIGluIG9iaikgewogICAgICAgICAgICBpZiAocCA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHJldHVybiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYgZGVzYy5lbnVtZXJhYmxlID09PSBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOw==","id":"15.2.3.6-4-550","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-550.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU1MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NTEuanMiLAoKICAgIGRl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kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgcmVzdWx0MSA9IG9iai5wcm9wID09PSAxMDAxOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHJlc3VsdDIgPSB0eXBlb2Ygb2JqLnByb3AgPT09ICJ1bmRlZmluZWQiOwogICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gcmVzdWx0MSAmJiByZXN1bHQyICYmIGRlc2MxLmdldCA9PT0gZ2V0RnVuYyAmJiB0eXBlb2YgZGVzYzIuZ2V0ID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-552","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-552.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU1MyIsCgogICAgcGF0aDog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iAgICAgICAgICAgIHJldHVybiAxMDAxOwogICAgICAgIH07CgogICAgICAgIHZhciB2ZXJpZnlTZXRGdW5jID0gImRhdGEiOwogICAgICAgIHZhciBzZXRGdW5jID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIHZlcmlmeVNldEZ1bmMgPSB2YWx1ZTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHJlc3VsdDEgPSBmYWxzZTsKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICBmb3IgKHZhciBwMSBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHAxID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIHJlc3VsdDEgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHZhciByZXN1bHQyID0gZmFsc2U7CiAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgZm9yICh2YXIgcDIgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwMiA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICByZXN1bHQyID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgcmV0dXJuICFyZXN1bHQxICYmI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Z1bmMgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgdmVyaWZ5U2V0RnVuYyA9IHZhbHVlOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgZGVzYzEgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKICAgICAgICBkZWxldGUgb2JqLnByb3A7CgogICAgICAgIHJldHVybiBkZXNjMS5jb25maWd1cmFibGUgPT09IHRydWUgJiYgZGVzYzIuY29uZmlndXJhYmxlID09PSBmYWxzZSAmJiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-555","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-555.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi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AgIHZhciB2ZXJpZnlTZXRGdW5jID0gImRhdGEiOwogICAgICAgIHZhciBzZXRGdW5jID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIHZlcmlmeVNldEZ1bmMgPSB2YWx1ZTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBwcm9wZXJ0eURlZmluZUNvcnJlY3QgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gcHJvcGVydHlEZWZpbmVDb3JyZWN0ICYmIGRlc2MuZ2V0ID09PSBnZXRGdW5jICYmIG9iai5wcm9wID09PSAxMDAxOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-557","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-557.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU1OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NTguanMiLAoKICAgIGR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ZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIGZvciAodmFyIHAgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIHByb3BlcnR5RGVmaW5lQ29ycmVjdCAmJiBkZXNjLmVudW1lcmFibGUgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-559","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-559.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTU2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICduYW1lJyBwcm9wZXJ0eSBkb2Vzbid0IGV4aXN0IGluICdPJywgdGVzdCBbW0NvbmZpZ3VyYWJsZV1dIG9mICduYW1lJyBwcm9wZXJ0eSBpcyBzZXQgYXMgZmFsc2UgaWYgaXQgaXMgYWJzZW50IGluIGFjY2Vzc29yIGRlc2NyaXB0b3IgJ2Rlc2MnICg4LjEyLjkgc3RlcCA0LmIuaSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICBvYmouc2V0VmVyaWZ5SGVscFByb3AgPSB2YWx1ZTsKICAgICAgICB9OwogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3BlcnR5IiwgewogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAicHJvcGVydHkiLCBnZXRGdW5jLCBzZXRGdW5jLCAic2V0VmVyaWZ5SGVscFByb3AiLCB0cnVlLCBmYWxzZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-56","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-56.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLj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zZXRGdW5jID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIHZlcmlmeVNldEZ1bmMgPSB2YWx1ZTsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHZhciByZXN1bHQxID0gb2JqLnByb3AgPT09IDEwMDE7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgcmVzdWx0MiA9IG9iai5wcm9wID09PSAxMDAxOwogICAgICAgICAgICB2YXIgZGVzYzIgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgICAgIHJldHVybiByZXN1bHQxICYmIHJlc3VsdDIgJiYgZGVzYzEuZ2V0ID09PSBnZXRGdW5jICYmIGRlc2MyLmdldCA9PT0gZ2V0RnVuYyAmJiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeG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ICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIHNldDogdW5kZWZpbmVkCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgICAgICByZXR1cm4gZGVzYzEuc2V0ID09PSBzZXRGdW5jICYmIGRlc2MyLnNldCA9PT0gc2V0RnVuYyAmJiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-562","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-562.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU2MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NjMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUgb2YgYWNjZXNzb3IgcHJvcGVydHkgKFtbR2V0XV0gaXMgYSBGdW5jdGlvbiwgW1tTZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW0VudW1lcmFibGVdXSBpcyBmYWxzZSwgW1tDb25maWd1cmFibGVdXSBpcyBmYWxzZSkgdG8gZGlmZmVyZW50IHZhbHVlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTAwMTsKICAgICAgICB9OwoKICAgICAgICB2YXIgdmVyaWZ5U2V0RnVuYyA9ICJkYXRhIjsKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICB2ZXJpZnlTZXRGdW5jID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciByZXN1bHQxID0gZmFsc2U7CiAgICAgICAgdmFyIGRlc2MxID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgZm9yICh2YXIgcDEgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwMSA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICByZXN1bHQxID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIHJlc3VsdDIgPSBmYWxzZTsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgICAgIGZvciAodmFyIHAyIGluIG9iaikgewogICAgICAgICAgICAgICAgaWYgKHAyID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgICAgICByZXN1bHQyID0gdHJ1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgICAgcmV0dXJuICFyZXN1bHQxICYmICFyZXN1bHQyICYmIGRlc2MxLmVudW1lcmFibGUgPT09IGZhbHNlICYmIGRlc2MyLmVudW1lcmFibGUgPT09IGZhbHNlICYmIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-563","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-563.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU2NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NjQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIH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mFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CiAgICAgICAgICAgIGRlbGV0ZSBvYmoucHJvcDsKCiAgICAgICAgICAgIHJldHVybiBkZXNjMS5jb25maWd1cmFibGUgPT09IGZhbHNlICYmIGRlc2MyLmNvbmZpZ3VyYWJsZSA9PT0gZmFsc2UgJiYgb2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTs=","id":"15.2.3.6-4-564","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-564.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU2NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NjUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBmYWlsIHRvIHVwZGF0ZSB0aGUgYWNjZXNzb3IgcHJvcGVydHkgKFtbR2V0XV0gaXMgYSBGdW5jdGlvbiwgW1tTZXRdXSBpcyBhIEZ1bmN0aW9uLCBbW0VudW1lcmFibGVdXSBpcyBmYWxzZSwgW1tDb25maWd1cmFibGVdXSBpcyBmYWxzZSkgdG8gYSBkYXRhIHByb3BlcnR5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTAwMTsKICAgICAgICB9OwoKICAgICAgICB2YXIgdmVyaWZ5U2V0RnVuYyA9ICJkYXRhIjsKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICB2ZXJpZnlTZXRGdW5jID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMDAxCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIGRlc2MyID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgICAgICByZXR1cm4gZGVzYzEuaGFzT3duUHJvcGVydHkoImdldCIpICYmICFkZXNjMi5oYXNPd25Qcm9wZXJ0eSgidmFsdWUiKSAmJiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-565","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-565.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU2NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NjYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW0dldF1dIGF0dHJpYnV0ZSBpcyBhIGZ1bmN0aW9uIHdoaWNoIGhhcyB6ZXJvIGFyZ3VtZW50IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGdldEZ1bmMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAyMDEwOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMKICAgICAgICB9KTsKCiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIG9iai5wcm9wID09PSAyMDEwICYmIGRlc2MuZ2V0ID09PSBnZXRGdW5jOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-566","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-566.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU2NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NjcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW0dldF1dIGF0dHJpYnV0ZSBpcyBhIGZ1bmN0aW9uIHdoaWNoIGhhcyBvbmUgYXJndW1lbnQiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgZ2V0RnVuYyA9IGZ1bmN0aW9uIChhcmcxKSB7CiAgICAgICAgICAgIHJldHVybiAyMDEwOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMKICAgICAgICB9KTsKCiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIG9iai5wcm9wID09PSAyMDEwICYmIGRlc2MuZ2V0ID09PSBnZXRGdW5jOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-567","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-567.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU2OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NjguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW0dldF1dIGF0dHJpYnV0ZSBpcyBhIGZ1bmN0aW9uIHdoaWNoIGhhcyB0d28gYXJndW1lbnRzIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGdldEZ1bmMgPSBmdW5jdGlvbiAoYXJnMSwgYXJnMikgewogICAgICAgICAgICByZXR1cm4gMjAxMDsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jCiAgICAgICAgfSk7CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBvYmoucHJvcCA9PT0gMjAxMCAmJiBkZXNjLmdldCA9PT0gZ2V0RnVuYzsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOw==","id":"15.2.3.6-4-568","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-568.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ZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-569","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-569.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTU3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICdkZXNjJyBpcyBhY2Nlc3NvciBkZXNjcmlwdG9yLCB0ZXN0IHVwZGF0aW5nIGFsbCBhdHRyaWJ1dGUgdmFsdWVzIG9mICduYW1lJyAoOC4xMi45IHN0ZXAgNC5iLmkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIHNldEZ1bmMgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgb2JqLnNldFZlcmlmeUhlbHBQcm9wID0gdmFsdWU7CiAgICAgICAgfTsKICAgICAgICB2YXIgZ2V0RnVuYyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIDE0OwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMTE7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7IH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob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VlOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMKICAgICAgICB9KTsKCiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIGRlc2MuZ2V0ID09PSBnZXRGdW5jICYmIHR5cGVvZiBvYmoucHJvcCA9PT0gInVuZGVmaW5lZCIgJiYgdmVyaWZ5RXhlY3V0ZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOw==","id":"15.2.3.6-4-570","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-570.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU3MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NzEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW0dldF1dIGF0dHJpYnV0ZSBpcyBhIGZ1bmN0aW9uIHdoaWNoIGludm9sdmVzICd0aGlzJyBvYmplY3QgaW50byBzdGF0ZW1lbnQocykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7CiAgICAgICAgICAgIGxlbjogMjAxMAogICAgICAgIH07CiAgICAgICAgdmFyIGdldEZ1bmMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiB0aGlzOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMKICAgICAgICB9KTsKCiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIG9iai5wcm9wID09PSBvYmogJiYgZGVzYy5nZXQgPT09IGdldEZ1bmM7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTs=","id":"15.2.3.6-4-571","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-571.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU3MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NzIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1NldF1dIGF0dHJpYnV0ZSBpcyBhIGZ1bmN0aW9uIHdoaWNoIGhhcyB6ZXJvIGFyZ3VtZW50IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBzZXRGdW5jID0gZnVuY3Rpb24gKCkgeyB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgc2V0OiBzZXRGdW5jCiAgICAgICAgfSk7CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBkZXNjLnNldCA9PT0gc2V0RnVuYzsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOw==","id":"15.2.3.6-4-572","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-572.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU3MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NzMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1NldF1dIGF0dHJpYnV0ZSBpcyBhIGZ1bmN0aW9uIHdoaWNoIGhhcyBvbmUgYXJndW1lbnQiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHZlcmlmeVNldEZ1bmMgPSAyMDsKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICB2ZXJpZnlTZXRGdW5jID0gdmFsdWU7CiAgICAgICAgfTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgc2V0OiBzZXRGdW5jCiAgICAgICAgfSk7CiAgICAgICAgb2JqLnByb3AgPSAyMDEwOwogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBkZXNjLnNldCA9PT0gc2V0RnVuYyAmJiB2ZXJpZnlTZXRGdW5jID09PSAyMDEwOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-573","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-573.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU3NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NzQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1NldF1dIGF0dHJpYnV0ZSBpcyBhIGZ1bmN0aW9uIHdoaWNoIGhhcyB0d28gYXJndW1lbnRzIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGZpcnN0QXJnID0gMTI7CiAgICAgICAgdmFyIHNlY29uZEFyZyA9IDEyOwoKICAgICAgICB2YXIgc2V0RnVuYyA9IGZ1bmN0aW9uIChhLCBiKSB7CiAgICAgICAgICAgIGZpcnN0QXJnID0gYTsKICAgICAgICAgICAgc2Vjb25kQXJnID0gYjsKICAgICAgICB9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBzZXQ6IHNldEZ1bmMKICAgICAgICB9KTsKICAgICAgICBvYmoucHJvcCA9IDEwMDsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgZGVzYy5zZXQgPT09IHNldEZ1bmMgJiYgZmlyc3RBcmcgPT09IDEwMCAmJiB0eXBlb2Ygc2Vjb25kQXJnID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOw==","id":"15.2.3.6-4-574","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-574.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU3NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NzUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1NldF1dIGF0dHJpYnV0ZSBpcyBhIGZ1bmN0aW9uIHdoaWNoIGNvbnRhaW5zIGdsb2JhbCB2YXJpYWJsZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBnbG9iYWxWYXJpYWJsZSA9IDIwOwogICAgICAgIHZhciBzZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICBnbG9iYWxWYXJpYWJsZSA9IDIwMTA7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHNldDogc2V0RnVuYwogICAgICAgIH0pOwogICAgICAgIG9iai5wcm9wID0gMTA7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIGRlc2Muc2V0ID09PSBzZXRGdW5jICYmIGdsb2JhbFZhcmlhYmxlID09PSAyMDEwOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-575","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-575.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU3NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NzYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1NldF1dIGF0dHJpYnV0ZSBpcyBhIGZ1bmN0aW9uIHdoaWNoIGNvbnRhaW5zIHJldHVybiBzdGF0ZW1lbnQiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHNldEZ1bmMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAyMDEwOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBzZXQ6IHNldEZ1bmMKICAgICAgICB9KTsKCiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIGRlc2Muc2V0ID09PSBzZXRGdW5jOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.6-4-576","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-576.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU3NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NzcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW1NldF1dIGF0dHJpYnV0ZSBpcyBhIGZ1bmN0aW9uIHdoaWNoIGludm9sdmVzICd0aGlzJyBvYmplY3QgaW50byBzdGF0ZW1lbnQocykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICA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0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBkYXRhID0gImRhdGEiOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShTdHJpbmcucHJvdG90eXBlLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICAgICAgZGF0YSA9IHZhbHVlOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHZhciBzdHJPYmogPSBuZXcgU3RyaW5nKCk7CgogICAgICAgICAgICByZXR1cm4gIXN0ck9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIHN0ck9iai5wcm9wID09PSAiZGF0YSI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIFN0cmluZy5wcm90b3R5cGUucHJvcDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-578","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-578.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU3OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01NzkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBTdWNjZXNzIHRvIGFkZCBwcm9wZXJ0eSBpbnRvIG9iamVjdCAoQXJyYXkgaW5zdGFuY2UpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZGF0YSA9ICJkYXRhIjsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoQXJyYXkucHJvdG90eXBlLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICAgICAgZGF0YSA9IHZhbHVlOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHZhciBhcnJPYmogPSBbXTsKICAgICAgICAgICAgYXJyT2JqLnByb3AgPSAibXlPd25Qcm9wZXJ0eSI7CgogICAgICAgICAgICByZXR1cm4gIWFyck9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIGFyck9iai5wcm9wID09PSAibXlPd25Qcm9wZXJ0eSIgJiYgZGF0YSA9PT0gIm15T3duUHJvcGVydHkiOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBBcnJheS5wcm90b3R5cGUucHJvcDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-579","path":"TestCases/chapter15/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aGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01ODAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBJbmhlcml0ZWQgcHJvcGVydHkgaXMgZW51bWVyYWJsZSAoQm9vbGVhbiBpbnN0YW5jZSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBkYXRhID0gImRhdGEiOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShCb29sZWFuLnByb3RvdHlwZSwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YTsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgICAgIGRhdGEgPSB2YWx1ZTsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICB2YXIgYm9vbE9iaiA9IG5ldyBCb29sZWFuKCk7CiAgICAgICAgICAgIHZhciB2ZXJpZnlFbnVtZXJhYmxlID0gZmFsc2U7CiAgICAgICAgICAgIGZvciAodmFyIHAgaW4gYm9vbE9iaikgewogICAgICAgICAgICAgICAgaWYocCA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICAgICAgdmVyaWZ5RW51bWVyYWJsZSA9IHRydWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHJldHVybiAhYm9vbE9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIHZlcmlmeUVudW1lcmFibGU7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEJvb2xlYW4ucHJvdG90eXBlLnByb3A7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-580","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-580.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU4MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01ODEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBGYWlsIHRvIGFkZCBwcm9wZXJ0eSBpbnRvIG9iamVjdCAoTnVtYmVyIGluc3RhbmNlKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRhdGEgPSAiZGF0YSI7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KE51bWJlci5wcm90b3R5cGUsICJwcm9wIiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGE7CiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHZhciBudW1PYmogPSBuZXcgTnVtYmVyKCk7CiAgICAgICAgICAgIG51bU9iai5wcm9wID0gIm15T3duUHJvcGVydHkiOwoKICAgICAgICAgICAgcmV0dXJuICFudW1PYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBudW1PYmoucHJvcCA9PT0gImRhdGEiICYmIGRhdGEgPT09ICJkYXRhIjsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgTnVtYmVyLnByb3RvdHlwZS5wcm9wOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-581","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-581.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU4MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01ODIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBJbmhlcml0ZWQgcHJvcGVydHkgaXMgbm9uLWVudW1lcmFibGUgKEZ1bmN0aW9uIGluc3RhbmNlKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRhdGEgPSAiZGF0YSI7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KEZ1bmN0aW9uLnByb3RvdHlwZSwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YTsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdmFyIGZ1bk9iaiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICAgICAgdmFyIHZlcmlmeUVudW1lcmFibGUgPSBmYWxzZTsKICAgICAgICAgICAgZm9yICh2YXIgcCBpbiBmdW5PYmopIHsKICAgICAgICAgICAgICAgIGlmIChwID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgICAgICB2ZXJpZnlFbnVtZXJhYmxlID0gdHJ1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgICAgcmV0dXJuICFmdW5PYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiAhdmVyaWZ5RW51bWVyYWJsZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgRnVuY3Rpb24ucHJvdG90eXBlLnByb3A7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-582","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-582.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU4MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01ODMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW0dldF1dIGZpZWxkIG9mIGluaGVyaXRlZCBwcm9wZXJ0eSBvZiBbW1Byb3RvdHlwZV1dIGludGVybmFsIHByb3BlcnR5IGlzIGNvcnJlY3QgKEVycm9yIEluc3RhbmNlKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRhdGEgPSAiZGF0YSI7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KEVycm9yLnByb3RvdHlwZSwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YTsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgICAgIGRhdGEgPSB2YWx1ZTsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICB2YXIgZXJyT2JqID0gbmV3IEVycm9yKCk7CgogICAgICAgICAgICByZXR1cm4gIWVyck9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIGVyck9iai5wcm9wID09PSAiZGF0YSI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEVycm9yLnByb3RvdHlwZS5wcm9wOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-583","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-583.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU4NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01ODQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBGYWlsZWQgdG8gYWRkIHByb3BlcnR5IGludG8gb2JqZWN0IChEYXRlIGluc3RhbmNlKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRhdGEgPSAiZGF0YSI7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KERhdGUucHJvdG90eXBlLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICAgICAgZGF0YSA9IHZhbHVlOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHZhciBkYXRlT2JqID0gbmV3IERhdGUoKTsKICAgICAgICAgICAgZGF0ZU9iai5wcm9wID0gIm15T3duUHJvcGVydHkiOwoKICAgICAgICAgICAgcmV0dXJuICFkYXRlT2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgZGF0ZU9iai5wcm9wID09PSAibXlPd25Qcm9wZXJ0eSIgJiYgZGF0YSA9PT0gIm15T3duUHJvcGVydHkiOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBEYXRlLnByb3RvdHlwZS5wcm9wOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-584","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-584.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU4NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01ODUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBJbmhlcml0ZWQgcHJvcGVydHkgaXMgZW51bWVyYWJsZSAoUmVnRXhwIGluc3RhbmNlKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRhdGEgPSAiZGF0YSI7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KFJlZ0V4cC5wcm90b3R5cGUsICJwcm9wIiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGE7CiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgICAgICAgICBkYXRhID0gdmFsdWU7CiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdmFyIHJlZ09iaiA9IG5ldyBSZWdFeHAoKTsKICAgICAgICAgICAgdmFyIHZlcmlmeUVudW1lcmFibGUgPSBmYWxzZTsKICAgICAgICAgICAgZm9yICh2YXIgcCBpbiByZWdPYmopIHsKICAgICAgICAgICAgICAgIGlmIChwID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgICAgICB2ZXJpZnlFbnVtZXJhYmxlID0gdHJ1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgICAgcmV0dXJuICFyZWdPYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiB2ZXJpZnlFbnVtZXJhYmxlOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBSZWdFeHAucHJvdG90eXBlLnByb3A7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-585","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-585.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU4NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01ODYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBGYWlsIHRvIHVwZGF0ZSB2YWx1ZSBvZiBwcm9wZXJ0eSBpbnRvIG9mIFtbUHJvcHRvdHlwZV1dIGludGVybmFsIHByb3BlcnR5ICAoSlNPTikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBkYXRhID0gImRhdGEiOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShPYmplY3QucHJvdG90eXBlLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICBKU09OLnByb3AgPSAibXlPd25Qcm9wZXJ0eSI7CgogICAgICAgICAgICByZXR1cm4gIUpTT04uaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBKU09OLnByb3AgPT09ICJkYXRhIiAmJiBkYXRhID09PSAiZGF0YSI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE9iamVjdC5wcm90b3R5cGUucHJvcDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-586","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-586.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU4NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01ODcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBJbmhlcml0ZWQgcHJvcGVydHkgaXMgbm9uLWVudW1lcmFibGUgKE1hdGgpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZGF0YSA9ICJkYXRhIjsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoT2JqZWN0LnByb3RvdHlwZSwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YTsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdmFyIHZlcmlmeUVudW1lcmFibGUgPSBmYWxzZTsKICAgICAgICAgICAgZm9yICh2YXIgcCBpbiBNYXRoKSB7CiAgICAgICAgICAgICAgICBpZiAocCA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICAgICAgdmVyaWZ5RW51bWVyYWJsZSA9IHRydWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHJldHVybiAhTWF0aC5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmICF2ZXJpZnlFbnVtZXJhYmxlOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBPYmplY3QucHJvdG90eXBlLnByb3A7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-587","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-587.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU4OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01ODguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW0dldF1dIGZpZWxkIG9mIGluaGVyaXRlZCBwcm9wZXJ0eSBvZiBbW1Byb3RvdHlwZV1dIGludGVybmFsIHByb3BlcnR5IGlzIGNvcnJlY3QgKE9iamVjdC5jcmVhdGUpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXBwb2ludG1lbnQgPSB7fTsKCiAgICAgICAgdmFyIGRhdGExID0gMTAwMTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXBwb2ludG1lbnQsICJzdGFydFRpbWUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGRhdGExOwogICAgICAgICAgICB9LAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGRhdGEyID0gIk5BTUUiOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcHBvaW50bWVudCwgIm5hbWUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGRhdGEyOwogICAgICAgICAgICB9LAogICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgZGF0YTIgPSB2YWx1ZTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBtZWV0aW5nID0gT2JqZWN0LmNyZWF0ZShhcHBvaW50bWVudCk7CiAgICAgICAgdmFyIGRhdGEzID0gIkluLXBlcnNvbiBtZWV0aW5nIjsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkobWVldGluZywgImNvbmZlcmVuY2VDYWxsIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiBkYXRhMzsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgdGVhbU1lZXRpbmcgPSBPYmplY3QuY3JlYXRlKG1lZXRpbmcpOwoKICAgICAgICB2YXIgaGFzT3duUHJvcGVydHkgPSAhdGVhbU1lZXRpbmcuaGFzT3duUHJvcGVydHkoIm5hbWUiKSAmJgogICAgICAgICAgICAhdGVhbU1lZXRpbmcuaGFzT3duUHJvcGVydHkoInN0YXJ0VGltZSIpICYmCiAgICAgICAgICAgICF0ZWFtTWVldGluZy5oYXNPd25Qcm9wZXJ0eSgnY29uZmVyZW5jZUNhbGwnKTsKCiAgICAgICAgcmV0dXJuIGhhc093blByb3BlcnR5ICYmIHRlYW1NZWV0aW5nLm5hbWUgPT09ICJOQU1FIiAmJgogICAgICAgICAgICB0ZWFtTWVldGluZy5zdGFydFRpbWUgPT09IDEwMDEgJiYKICAgICAgICAgICAgdGVhbU1lZXRpbmcuY29uZmVyZW5jZUNhbGwgPT09ICJJbi1wZXJzb24gbWVldGluZyI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-588","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-588.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU4OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01ODkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBTdWNjZXNzIHRvIHVwZGF0ZSB2YWx1ZSBvZiBwcm9wZXJ0eSBpbnRvIG9mIFtbUHJvcHRvdHlwZV1dIGludGVybmFsIHByb3BlcnR5IChPYmplY3QuY3JlYXRlKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFwcG9pbnRtZW50ID0ge307CgogICAgICAgIHZhciBkYXRhMSA9IDEwMDE7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFwcG9pbnRtZW50LCAic3RhcnRUaW1lIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiBkYXRhMTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgICAgIGRhdGExID0gdmFsdWU7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHZhciBkYXRhMiA9ICJOQU1FIjsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXBwb2ludG1lbnQsICJuYW1lIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiBkYXRhMjsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgICAgIGRhdGEyID0gdmFsdWU7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdmFyIG1lZXRpbmcgPSBPYmplY3QuY3JlYXRlKGFwcG9pbnRtZW50KTsKICAgICAgICB2YXIgZGF0YTMgPSAiSW4tcGVyc29uIG1lZXRpbmciOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShtZWV0aW5nLCAiY29uZmVyZW5jZUNhbGwiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGRhdGEzOwogICAgICAgICAgICB9LAogICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgZGF0YTMgPSB2YWx1ZTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgdGVhbU1lZXRpbmcgPSBPYmplY3QuY3JlYXRlKG1lZXRpbmcpOwogICAgICAgIHRlYW1NZWV0aW5nLm5hbWUgPSAiVGVhbSBNZWV0aW5nIjsKICAgICAgICB2YXIgZGF0ZU9iaiA9IG5ldyBEYXRlKCIxMC8zMS8yMDEwIDA4OjAwIik7CiAgICAgICAgdGVhbU1lZXRpbmcuc3RhcnRUaW1lID0gZGF0ZU9iajsKICAgICAgICB0ZWFtTWVldGluZy5jb25mZXJlbmNlQ2FsbCA9ICI0MjU1NTUxMjEyIjsKCiAgICAgICAgdmFyIGhhc093blByb3BlcnR5ID0gIXRlYW1NZWV0aW5nLmhhc093blByb3BlcnR5KCJuYW1lIikgJiYKICAgICAgICAgICAgIXRlYW1NZWV0aW5nLmhhc093blByb3BlcnR5KCJzdGFydFRpbWUiKSAmJgogICAgICAgICAgICAhdGVhbU1lZXRpbmcuaGFzT3duUHJvcGVydHkoJ2NvbmZlcmVuY2VDYWxsJyk7CgogICAgICAgIHJldHVybiBoYXNPd25Qcm9wZXJ0eSAmJiB0ZWFtTWVldGluZy5uYW1lID09PSAiVGVhbSBNZWV0aW5nIiAmJgogICAgICAgICAgICB0ZWFtTWVldGluZy5zdGFydFRpbWUgPT09IGRhdGVPYmogJiYKICAgICAgICAgICAgdGVhbU1lZXRpbmcuY29uZmVyZW5jZUNhbGwgPT09ICI0MjU1NTUxMjEyIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-589","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-589.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTU5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtICduYW1lJyBpcyBhY2Nlc3NvciBkZXNjcmlwdG9yIGFuZCBldmVyeSBmaWVsZHMgaW4gJ2Rlc2MnIGlzIGFic2VudCAoOC4xMi45IHN0ZXAgNSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIGZ1bmN0aW9uIGdldEZ1bmMoKSB7CiAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgIH0KICAgICAgICBmdW5jdGlvbiBzZXRGdW5jKHZhbHVlKSB7CiAgICAgICAgICAgIG9iai5oZWxwVmVyaWZ5U2V0ID0gdmFsdWU7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgIHNldDogc2V0RnVuYwogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwge30pOwogICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgZ2V0RnVuYywgc2V0RnVuYywgImhlbHBWZXJpZnlTZXQiLCBmYWxzZSwgZmFsc2UpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-59","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-59.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU5MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01OTAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBJbmhlcml0ZWQgcHJvcGVydHkgaXMgZW51bWVyYWJsZSAoT2JqZWN0LmNyZWF0ZSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcHBvaW50bWVudCA9IHt9OwoKICAgICAgICB2YXIgZGF0YTEgPSAxMDAxOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcHBvaW50bWVudCwgInN0YXJ0VGltZSIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZGF0YTE7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICBkYXRhMSA9IHZhbHVlOwogICAgICAgICAgICB9LAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgZGF0YTIgPSAiTkFNRSI7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFwcG9pbnRtZW50LCAibmFtZSIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZGF0YTI7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICBkYXRhMiA9IHZhbHVlOwogICAgICAgICAgICB9LAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBtZWV0aW5nID0gT2JqZWN0LmNyZWF0ZShhcHBvaW50bWVudCk7CiAgICAgICAgdmFyIGRhdGEzID0gIkluLXBlcnNvbiBtZWV0aW5nIjsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkobWVldGluZywgImNvbmZlcmVuY2VDYWxsIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiBkYXRhMzsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgICAgIGRhdGEzID0gdmFsdWU7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHRlYW1NZWV0aW5nID0gT2JqZWN0LmNyZWF0ZShtZWV0aW5nKTsKCiAgICAgICAgdmFyIHZlcmlmeVRpbWVQcm9wID0gZmFsc2U7CiAgICAgICAgdmFyIHZlcmlmeU5hbWVQcm9wID0gZmFsc2U7CiAgICAgICAgdmFyIHZlcmlmeUNhbGxQcm9wID0gZmFsc2U7CiAgICAgICAgZm9yICh2YXIgcCBpbiB0ZWFtTWVldGluZykgewogICAgICAgICAgICBpZiAocCA9PT0gInN0YXJ0VGltZSIpIHsKICAgICAgICAgICAgICAgIHZlcmlmeVRpbWVQcm9wID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgICAgICBpZiAocCA9PT0gIm5hbWUiKSB7CiAgICAgICAgICAgICAgICB2ZXJpZnlOYW1lUHJvcCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgaWYgKHAgPT09ICJjb25mZXJlbmNlQ2FsbCIpIHsKICAgICAgICAgICAgICAgIHZlcmlmeUNhbGxQcm9wID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgdmFyIGhhc093blByb3BlcnR5ID0gIXRlYW1NZWV0aW5nLmhhc093blByb3BlcnR5KCJuYW1lIikgJiYKICAgICAgICAgICAgIXRlYW1NZWV0aW5nLmhhc093blByb3BlcnR5KCJzdGFydFRpbWUiKSAmJgogICAgICAgICAgICAhdGVhbU1lZXRpbmcuaGFzT3duUHJvcGVydHkoJ2NvbmZlcmVuY2VDYWxsJyk7CgogICAgICAgIHJldHVybiBoYXNPd25Qcm9wZXJ0eSAmJiB2ZXJpZnlUaW1lUHJvcCAmJiB2ZXJpZnlOYW1lUHJvcCAmJiB2ZXJpZnlDYWxsUHJvcDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-590","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-590.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU5MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01OTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBGYWlsIHRvIHVwZGF0ZSB2YWx1ZSBvZiBwcm9wZXJ0eSBvZiBbW1Byb3B0b3R5cGVdXSBpbnRlcm5hbCBwcm9wZXJ0eSAoT2JqZWN0LmNyZWF0ZSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcHBvaW50bWVudCA9IHt9OwoKICAgICAgICB2YXIgZGF0YTEgPSAxMDAxOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcHBvaW50bWVudCwgInN0YXJ0VGltZSIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZGF0YTE7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGRhdGEyID0gIk5BTUUiOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcHBvaW50bWVudCwgIm5hbWUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGRhdGEyOwogICAgICAgICAgICB9LAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBtZWV0aW5nID0gT2JqZWN0LmNyZWF0ZShhcHBvaW50bWVudCk7CiAgICAgICAgdmFyIGRhdGEzID0gIkluLXBlcnNvbiBtZWV0aW5nIjsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkobWVldGluZywgImNvbmZlcmVuY2VDYWxsIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiBkYXRhMzsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHRlYW1NZWV0aW5nID0gT2JqZWN0LmNyZWF0ZShtZWV0aW5nKTsKICAgICAgICB0ZWFtTWVldGluZy5uYW1lID0gIklFIFRlYW0gTWVldGluZyI7CiAgICAgICAgdmFyIGRhdGVPYmogPSBuZXcgRGF0ZSgiMTAvMzEvMjAxMCAwODowMCIpOwogICAgICAgIHRlYW1NZWV0aW5nLnN0YXJ0VGltZSA9IGRhdGVPYmo7CiAgICAgICAgdGVhbU1lZXRpbmcuY29uZmVyZW5jZUNhbGwgPSAiNDI1NTU1MTIxMiI7CgogICAgICAgIHZhciBoYXNPd25Qcm9wZXJ0eSA9ICF0ZWFtTWVldGluZy5oYXNPd25Qcm9wZXJ0eSgibmFtZSIpICYmCiAgICAgICAgICAgICF0ZWFtTWVldGluZy5oYXNPd25Qcm9wZXJ0eSgic3RhcnRUaW1lIikgJiYKICAgICAgICAgICAgIXRlYW1NZWV0aW5nLmhhc093blByb3BlcnR5KCdjb25mZXJlbmNlQ2FsbCcpOwoKICAgICAgICByZXR1cm4gaGFzT3duUHJvcGVydHkgJiYgdGVhbU1lZXRpbmcubmFtZSA9PT0gIk5BTUUiICYmCiAgICAgICAgICAgIHRlYW1NZWV0aW5nLnN0YXJ0VGltZSA9PT0gMTAwMSAmJgogICAgICAgICAgICB0ZWFtTWVldGluZy5jb25mZXJlbmNlQ2FsbCA9PT0gIkluLXBlcnNvbiBtZWV0aW5nIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-591","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-591.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU5MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01OTIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBJbmhlcml0ZWQgcHJvcGVydHkgaXMgbm9uLWVudW1lcmFibGUgKE9iamVjdC5jcmVhdGUpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXBwb2ludG1lbnQgPSB7fTsKCiAgICAgICAgdmFyIGRhdGExID0gMTAwMTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXBwb2ludG1lbnQsICJzdGFydFRpbWUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGRhdGExOwogICAgICAgICAgICB9LAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIGRhdGEyID0gIk5BTUUiOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcHBvaW50bWVudCwgIm5hbWUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGRhdGEyOwogICAgICAgICAgICB9LAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgbWVldGluZyA9IE9iamVjdC5jcmVhdGUoYXBwb2ludG1lbnQpOwogICAgICAgIHZhciBkYXRhMyA9ICJJbi1wZXJzb24gbWVldGluZyI7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG1lZXRpbmcsICJjb25mZXJlbmNlQ2FsbCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZGF0YTM7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHRlYW1NZWV0aW5nID0gT2JqZWN0LmNyZWF0ZShtZWV0aW5nKTsKCiAgICAgICAgdmFyIHZlcmlmeVRpbWVQcm9wID0gZmFsc2U7CiAgICAgICAgdmFyIHZlcmlmeU5hbWVQcm9wID0gZmFsc2U7CiAgICAgICAgdmFyIHZlcmlmeUNhbGxQcm9wID0gZmFsc2U7CiAgICAgICAgZm9yICh2YXIgcCBpbiB0ZWFtTWVldGluZykgewogICAgICAgICAgICBpZiAocCA9PT0gInN0YXJ0VGltZSIpIHsKICAgICAgICAgICAgICAgIHZlcmlmeVRpbWVQcm9wID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgICAgICBpZiAocCA9PT0gIm5hbWUiKSB7CiAgICAgICAgICAgICAgICB2ZXJpZnlOYW1lUHJvcCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgaWYgKHAgPT09ICJjb25mZXJlbmNlQ2FsbCIpIHsKICAgICAgICAgICAgICAgIHZlcmlmeUNhbGxQcm9wID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgdmFyIGhhc093blByb3BlcnR5ID0gIXRlYW1NZWV0aW5nLmhhc093blByb3BlcnR5KCJuYW1lIikgJiYKICAgICAgICAgICAgIXRlYW1NZWV0aW5nLmhhc093blByb3BlcnR5KCJzdGFydFRpbWUiKSAmJgogICAgICAgICAgICAhdGVhbU1lZXRpbmcuaGFzT3duUHJvcGVydHkoJ2NvbmZlcmVuY2VDYWxsJyk7CgogICAgICAgIHJldHVybiBoYXNPd25Qcm9wZXJ0eSAmJiAhdmVyaWZ5VGltZVByb3AgJiYgIXZlcmlmeU5hbWVQcm9wICYmICF2ZXJpZnlDYWxsUHJvcDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-592","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-592.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU5MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01OTMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBbW0dldF1dIGZpZWxkIG9mIGluaGVyaXRlZCBwcm9wZXJ0eSBvZiBbW1Byb3RvdHlwZV1dIGludGVybmFsIHByb3BlcnR5IGlzIGNvcnJlY3QgKEZ1bmN0aW9uLnByb3RvdHlwZS5iaW5kKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGZvbyA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICB2YXIgZGF0YSA9ICJkYXRhIjsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoRnVuY3Rpb24ucHJvdG90eXBlLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICAgICAgZGF0YSA9IHZhbHVlOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICB2YXIgb2JqID0gZm9vLmJpbmQoe30pOwoKICAgICAgICAgICAgcmV0dXJuICFvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBvYmoucHJvcCA9PT0gZGF0YTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgRnVuY3Rpb24ucHJvdG90eXBlLnByb3A7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-593","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-593.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU5NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01OTQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBTdWNjZXNzIHRvIHVwZGF0ZSB2YWx1ZSBvZiBwcm9wZXJ0eSBpbnRvIG9mIFtbUHJvcHRvdHlwZV1dIGludGVybmFsIHByb3BlcnR5IChGdW5jdGlvbi5wcm90b3R5cGUuYmluZCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBmb28gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgdmFyIGRhdGEgPSAiZGF0YSI7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KEZ1bmN0aW9uLnByb3RvdHlwZSwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YTsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgICAgIGRhdGEgPSB2YWx1ZTsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgdmFyIG9iaiA9IGZvby5iaW5kKHt9KTsKICAgICAgICAgICAgb2JqLnByb3AgPSAib3ZlcnJpZGVEYXRhIjsKCiAgICAgICAgICAgIHJldHVybiAhb2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgb2JqLnByb3AgPT09ICJvdmVycmlkZURhdGEiOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBGdW5jdGlvbi5wcm90b3R5cGUucHJvcDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-594","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-594.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU5NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01OTUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBJbmhlcml0ZWQgcHJvcGVydHkgaXMgZW51bWVyYWJsZSAoRnVuY3Rpb24ucHJvdG90eXBlLmJpbmQpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZm9vID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIHZhciBkYXRhID0gImRhdGEiOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShGdW5jdGlvbi5wcm90b3R5cGUsICJwcm9wIiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGE7CiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgICAgICAgICBkYXRhID0gdmFsdWU7CiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHZhciBvYmogPSBmb28uYmluZCh7fSk7CgogICAgICAgICAgICB2YXIgdmVyaWZ5RW51bWVyYWJsZSA9IGZhbHNlOwogICAgICAgICAgICBmb3IgKHZhciBwIGluIG9iaikgewogICAgICAgICAgICAgICAgaWYgKHAgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgICAgIHZlcmlmeUVudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICByZXR1cm4gIW9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIHZlcmlmeUVudW1lcmFibGU7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEZ1bmN0aW9uLnByb3RvdHlwZS5wcm9wOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-595","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-595.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU5NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01OTYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBGYWlsIHRvIHVwZGF0ZSB2YWx1ZSBvZiBwcm9wZXJ0eSBpbnRvIG9mIFtbUHJvcHRvdHlwZV1dIGludGVybmFsIHByb3BlcnR5IChGdW5jdGlvbi5wcm90b3R5cGUuYmluZCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBmb28gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgdmFyIGRhdGEgPSAiZGF0YSI7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KEZ1bmN0aW9uLnByb3RvdHlwZSwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YTsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHZhciBvYmogPSBmb28uYmluZCh7fSk7CiAgICAgICAgICAgIG9iai5wcm9wID0gIm92ZXJyaWRlRGF0YSI7CgogICAgICAgICAgICByZXR1cm4gIW9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIG9iai5wcm9wID09PSAiZGF0YSI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEZ1bmN0aW9uLnByb3RvdHlwZS5wcm9wOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-596","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-596.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU5NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01OTcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBJbmhlcml0ZWQgcHJvcGVydHkgaXMgbm9uLWVudW1lcmFibGUgKEZ1bmN0aW9uLnByb3RvdHlwZS5iaW5kKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGZvbyA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICB2YXIgZGF0YSA9ICJkYXRhIjsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoRnVuY3Rpb24ucHJvdG90eXBlLCAicHJvcCIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgdmFyIG9iaiA9IGZvby5iaW5kKHt9KTsKCiAgICAgICAgICAgIHZhciB2ZXJpZnlFbnVtZXJhYmxlID0gZmFsc2U7CiAgICAgICAgICAgIGZvciAodmFyIHAgaW4gb2JqKSB7CiAgICAgICAgICAgICAgICBpZiAocCA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICAgICAgdmVyaWZ5RW51bWVyYWJsZSA9IHRydWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHJldHVybiAhb2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgIXZlcmlmeUVudW1lcmFibGU7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEZ1bmN0aW9uLnByb3RvdHlwZS5wcm9wOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-597","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-597.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTU5OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC01OTguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBPYmplY3QuZ2V0UHJvdG90eXBlT2YgYXJlIGNvcnJlY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihPYmplY3QsICJnZXRQcm90b3R5cGVPZiIpOwoKICAgICAgICB2YXIgcHJvcGVydHlBcmVDb3JyZWN0ID0gKGRlc2Mud3JpdGFibGUgPT09IHRydWUgJiYgZGVzYy5lbnVtZXJhYmxlID09PSBmYWxzZSAmJiBkZXNjLmNvbmZpZ3VyYWJsZSA9PT0gdHJ1ZSk7CgogICAgICAgIHZhciB0ZW1wID0gT2JqZWN0LmdldFByb3RvdHlwZU9mOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZ2V0UHJvdG90eXBlT2YgPSAiMjAxMCI7CgogICAgICAgICAgICB2YXIgaXNXcml0YWJsZSA9IChPYmplY3QuZ2V0UHJvdG90eXBlT2YgPT09ICIyMDEwIik7CgogICAgICAgICAgICB2YXIgaXNFbnVtZXJhYmxlID0gZmFsc2U7CgogICAgICAgICAgICBmb3IgKHZhciBwcm9wIGluIE9iamVjdCkgewogICAgICAgICAgICAgICAgaWYgKHByb3AgPT09ICJnZXRQcm90b3R5cGVPZiIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgCiAgICAgICAgICAgIGRlbGV0ZSBPYmplY3QuZ2V0UHJvdG90eXBlT2Y7CgogICAgICAgICAgICB2YXIgaXNDb25maWd1cmFibGUgPSAhT2JqZWN0Lmhhc093blByb3BlcnR5KCJnZXRQcm90b3R5cGVPZiIpOwoKICAgICAgICAgICAgcmV0dXJuIHByb3BlcnR5QXJlQ29ycmVjdCAmJiBpc1dyaXRhYmxlICYmICFpc0VudW1lcmFibGUgJiYgaXNDb25maWd1cmFibGU7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KE9iamVjdCwgImdldFByb3RvdHlwZU9mIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IH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ndXJhYmxlID09PSB0cnVlKTsKCiAgICAgICAgdmFyIHRlbXAgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yID0gIjIwMTAiOwoKICAgICAgICAgICAgdmFyIGlzV3JpdGFibGUgPSAoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvciA9PT0gIjIwMTAiKTsKCiAgICAgICAgICAgIHZhciBpc0VudW1lcmFibGUgPSBmYWxzZTsKCiAgICAgICAgICAgIGZvciAodmFyIHByb3AgaW4gT2JqZWN0KSB7CiAgICAgICAgICAgICAgICBpZiAocHJvcCA9PT0gImdldE93blByb3BlcnR5RGVzY3JpcHRvciIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICBkZWxldGUgT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcjsKCiAgICAgICAgICAgIHZhciBpc0NvbmZpZ3VyYWJsZSA9ICFPYmplY3QuaGFzT3duUHJvcGVydHkoImdldE93blByb3BlcnR5RGVzY3JpcHRvciIpOwoKICAgICAgICAgICAgcmV0dXJuIHByb3BlcnR5QXJlQ29ycmVjdCAmJiBpc1dyaXRhYmxlICYmICFpc0VudW1lcmFibGUgJiYgaXNDb25maWd1cmFibGU7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KE9iamVjdCwgImdldE93blByb3BlcnR5RGVzY3JpcHRvciIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiB0ZW1wLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ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C02MDAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBPYmplY3QuZ2V0T3duUHJvcGVydHlOYW1lcyBhcmUgY29ycmVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKE9iamVjdCwgImdldE93blByb3BlcnR5TmFtZXMiKTsKCiAgICAgICAgdmFyIHByb3BlcnR5QXJlQ29ycmVjdCA9IChkZXNjLndyaXRhYmxlID09PSB0cnVlICYmIGRlc2MuZW51bWVyYWJsZSA9PT0gZmFsc2UgJiYgZGVzYy5jb25maWd1cmFibGUgPT09IHRydWUpOwoKICAgICAgICB2YXIgdGVtcCA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eU5hbWVzOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZ2V0T3duUHJvcGVydHlOYW1lcyA9ICIyMDEwIjsKCiAgICAgICAgICAgIHZhciBpc1dyaXRhYmxlID0gKE9iamVjdC5nZXRPd25Qcm9wZXJ0eU5hbWVzID09PSAiMjAxMCIpOwoKICAgICAgICAgICAgdmFyIGlzRW51bWVyYWJsZSA9IGZhbHNlOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBPYmplY3QpIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wID09PSAiZ2V0T3duUHJvcGVydHlOYW1lcyIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgCiAgICAgICAgICAgIGRlbGV0ZSBPYmplY3QuZ2V0T3duUHJvcGVydHlOYW1lczsKCiAgICAgICAgICAgIHZhciBpc0NvbmZpZ3VyYWJsZSA9ICFPYmplY3QuaGFzT3duUHJvcGVydHkoImdldE93blByb3BlcnR5TmFtZXMiKTsKCiAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eUFyZUNvcnJlY3QgJiYgaXNXcml0YWJsZSAmJiAhaXNFbnVtZXJhYmxlICYmIGlzQ29uZmlndXJhYmxlOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShPYmplY3QsICJnZXRPd25Qcm9wZXJ0eU5hbWVzIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IHRlbXAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcikgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5TmFtZXMpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-600","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-600.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYwMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MDEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBPYmplY3QuY3JlYXRlIGFyZSBjb3JyZWN0IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IoT2JqZWN0LCAiY3JlYXRlIik7CgogICAgICAgIHZhciBwcm9wZXJ0eUFyZUNvcnJlY3QgPSAoZGVzYy53cml0YWJsZSA9PT0gdHJ1ZSAmJiBkZXNjLmVudW1lcmFibGUgPT09IGZhbHNlICYmIGRlc2MuY29uZmlndXJhYmxlID09PSB0cnVlKTsKCiAgICAgICAgdmFyIHRlbXAgPSBPYmplY3QuY3JlYXRlOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuY3JlYXRlID0gIjIwMTAiOwoKICAgICAgICAgICAgdmFyIGlzV3JpdGFibGUgPSAoT2JqZWN0LmNyZWF0ZSA9PT0gIjIwMTAiKTsKCiAgICAgICAgICAgIHZhciBpc0VudW1lcmFibGUgPSBmYWxzZTsKCiAgICAgICAgICAgIGZvciAodmFyIHByb3AgaW4gT2JqZWN0KSB7CiAgICAgICAgICAgICAgICBpZiAocHJvcCA9PT0gImNyZWF0ZSIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgCiAgICAgICAgICAgIGRlbGV0ZSBPYmplY3QuY3JlYXRlOwoKICAgICAgICAgICAgdmFyIGlzQ29uZmlndXJhYmxlID0gIU9iamVjdC5oYXNPd25Qcm9wZXJ0eSgiY3JlYXRlIik7CgogICAgICAgICAgICByZXR1cm4gcHJvcGVydHlBcmVDb3JyZWN0ICYmIGlzV3JpdGFibGUgJiYgIWlzRW51bWVyYWJsZSAmJiBpc0NvbmZpZ3VyYWJsZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoT2JqZWN0LCAiY3JlYXRlIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IHRlbXAsCiAgICAgICAgICAgICAgICB3cml0YWJs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Hk7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5ID0gIjIwMTAiOwoKICAgICAgICAgICAgdmFyIGlzV3JpdGFibGUgPSAoT2JqZWN0LmRlZmluZVByb3BlcnR5ID09PSAiMjAxMCIpOwoKICAgICAgICAgICAgdmFyIGlzRW51bWVyYWJsZSA9IGZhbHNlOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBPYmplY3QpIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wID09PSAiZGVmaW5lUHJvcGVydHkiKSB7CiAgICAgICAgICAgICAgICAgICAgaXNFbnVtZXJhYmxlID0gdHJ1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgICAgZGVsZXRlIE9iamVjdC5kZWZpbmVQcm9wZXJ0eTsKCiAgICAgICAgICAgIHZhciBpc0NvbmZpZ3VyYWJsZSA9ICFPYmplY3QuaGFzT3duUHJvcGVydHkoImRlZmluZVByb3BlcnR5Iik7CgogICAgICAgICAgICByZXR1cm4gcHJvcGVydHlBcmVDb3JyZWN0ICYmIGlzV3JpdGFibGUgJiYgIWlzRW51bWVyYWJsZSAmJiBpc0NvbmZpZ3VyYWJsZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkgPSB0ZW1wOwogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoT2JqZWN0LCAiZGVmaW5lUHJvcGVydHkiLCB7CiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-602","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-602.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYwMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MDMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBPYmplY3QuZGVmaW5lUHJvcGVydGllcyBhcmUgY29ycmVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKE9iamVjdCwgImRlZmluZVByb3BlcnRpZXMiKTsKCiAgICAgICAgdmFyIHByb3BlcnR5QXJlQ29ycmVjdCA9IChkZXNjLndyaXRhYmxlID09PSB0cnVlICYmIGRlc2MuZW51bWVyYWJsZSA9PT0gZmFsc2UgJiYgZGVzYy5jb25maWd1cmFibGUgPT09IHRydWUpOwoKICAgICAgICB2YXIgdGVtcCA9IE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyA9ICIyMDEwIjsKCiAgICAgICAgICAgIHZhciBpc1dyaXRhYmxlID0gKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzID09PSAiMjAxMCIpOwoKICAgICAgICAgICAgdmFyIGlzRW51bWVyYWJsZSA9IGZhbHNlOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBPYmplY3QpIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wID09PSAiZGVmaW5lUHJvcGVydGllcyIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgCiAgICAgICAgICAgIGRlbGV0ZSBPYmplY3QuZGVmaW5lUHJvcGVydGllczsKCiAgICAgICAgICAgIHZhciBpc0NvbmZpZ3VyYWJsZSA9ICFPYmplY3QuaGFzT3duUHJvcGVydHkoImRlZmluZVByb3BlcnRpZXMiKTsKCiAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eUFyZUNvcnJlY3QgJiYgaXNXcml0YWJsZSAmJiAhaXNFbnVtZXJhYmxlICYmIGlzQ29uZmlndXJhYmxlOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShPYmplY3QsICJkZWZpbmVQcm9wZXJ0aWVzIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IHRlbXAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcikgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-603","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-603.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYwNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MDQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBPYmplY3Quc2VhbCBhcmUgY29ycmVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKE9iamVjdCwgInNlYWwiKTsKCiAgICAgICAgdmFyIHByb3BlcnR5QXJlQ29ycmVjdCA9IChkZXNjLndyaXRhYmxlID09PSB0cnVlICYmIGRlc2MuZW51bWVyYWJsZSA9PT0gZmFsc2UgJiYgZGVzYy5jb25maWd1cmFibGUgPT09IHRydWUpOwoKICAgICAgICB2YXIgdGVtcCA9IE9iamVjdC5zZWFsOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3Quc2VhbCA9ICIyMDEwIjsKCiAgICAgICAgICAgIHZhciBpc1dyaXRhYmxlID0gKE9iamVjdC5zZWFsID09PSAiMjAxMCIpOwoKICAgICAgICAgICAgdmFyIGlzRW51bWVyYWJsZSA9IGZhbHNlOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBPYmplY3QpIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wID09PSAic2VhbCIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgCiAgICAgICAgICAgIGRlbGV0ZSBPYmplY3Quc2VhbDsKCiAgICAgICAgICAgIHZhciBpc0NvbmZpZ3VyYWJsZSA9ICFPYmplY3QuaGFzT3duUHJvcGVydHkoInNlYWwiKTsKCiAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eUFyZUNvcnJlY3QgJiYgaXNXcml0YWJsZSAmJiAhaXNFbnVtZXJhYmxlICYmIGlzQ29uZmlndXJhYmxlOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShPYmplY3QsICJzZWFsIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IHRlbXAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcikgJiYgZm5FeGlzdHMoT2JqZWN0LnNlYWwpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-604","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-604.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYwNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MDUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBPYmplY3QuZnJlZXplIGFyZSBjb3JyZWN0IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IoT2JqZWN0LCAiZnJlZXplIik7CgogICAgICAgIHZhciBwcm9wZXJ0eUFyZUNvcnJlY3QgPSAoZGVzYy53cml0YWJsZSA9PT0gdHJ1ZSAmJiBkZXNjLmVudW1lcmFibGUgPT09IGZhbHNlICYmIGRlc2MuY29uZmlndXJhYmxlID09PSB0cnVlKTsKCiAgICAgICAgdmFyIHRlbXAgPSBPYmplY3QuZnJlZXplOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZnJlZXplID0gIjIwMTAiOwoKICAgICAgICAgICAgdmFyIGlzV3JpdGFibGUgPSAoT2JqZWN0LmZyZWV6ZSA9PT0gIjIwMTAiKTsKCiAgICAgICAgICAgIHZhciBpc0VudW1lcmFibGUgPSBmYWxzZTsKCiAgICAgICAgICAgIGZvciAodmFyIHByb3AgaW4gT2JqZWN0KSB7CiAgICAgICAgICAgICAgICBpZiAocHJvcCA9PT0gImZyZWV6ZSIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgCiAgICAgICAgICAgIGRlbGV0ZSBPYmplY3QuZnJlZXplOwoKICAgICAgICAgICAgdmFyIGlzQ29uZmlndXJhYmxlID0gIU9iamVjdC5oYXNPd25Qcm9wZXJ0eSgiZnJlZXplIik7CgogICAgICAgICAgICByZXR1cm4gcHJvcGVydHlBcmVDb3JyZWN0ICYmIGlzV3JpdGFibGUgJiYgIWlzRW51bWVyYWJsZSAmJiBpc0NvbmZpZ3VyYWJsZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoT2JqZWN0LCAiZnJlZXplIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IHRlbXAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcikgJiYgZm5FeGlzdHMoT2JqZWN0LmZyZWV6ZSk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-605","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-605.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYwNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MDYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBPYmplY3QucHJldmVudEV4dGVuc2lvbnMgYXJlIGNvcnJlY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihPYmplY3QsICJwcmV2ZW50RXh0ZW5zaW9ucyIpOwoKICAgICAgICB2YXIgcHJvcGVydHlBcmVDb3JyZWN0ID0gKGRlc2Mud3JpdGFibGUgPT09IHRydWUgJiYgZGVzYy5lbnVtZXJhYmxlID09PSBmYWxzZSAmJiBkZXNjLmNvbmZpZ3VyYWJsZSA9PT0gdHJ1ZSk7CgogICAgICAgIHZhciB0ZW1wID0gT2JqZWN0LnByZXZlbnRFeHRlbnNpb25zOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QucHJldmVudEV4dGVuc2lvbnMgPSAiMjAxMCI7CgogICAgICAgICAgICB2YXIgaXNXcml0YWJsZSA9IChPYmplY3QucHJldmVudEV4dGVuc2lvbnMgPT09ICIyMDEwIik7CgogICAgICAgICAgICB2YXIgaXNFbnVtZXJhYmxlID0gZmFsc2U7CgogICAgICAgICAgICBmb3IgKHZhciBwcm9wIGluIE9iamVjdCkgewogICAgICAgICAgICAgICAgaWYgKHByb3AgPT09ICJwcmV2ZW50RXh0ZW5zaW9ucyIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgCiAgICAgICAgICAgIGRlbGV0ZSBPYmplY3QucHJldmVudEV4dGVuc2lvbnM7CgogICAgICAgICAgICB2YXIgaXNDb25maWd1cmFibGUgPSAhT2JqZWN0Lmhhc093blByb3BlcnR5KCJwcmV2ZW50RXh0ZW5zaW9ucyIpOwoKICAgICAgICAgICAgcmV0dXJuIHByb3BlcnR5QXJlQ29ycmVjdCAmJiBpc1dyaXRhYmxlICYmICFpc0VudW1lcmFibGUgJiYgaXNDb25maWd1cmFibGU7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KE9iamVjdCwgInByZXZlbnRFeHRlbnNpb25zIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IHRlbXAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcikgJiYgZm5FeGlzdHMoT2JqZWN0LnByZXZlbnRFeHRlbnNpb25zKTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-606","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-606.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYwNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MDcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBPYmplY3QuaXNTZWFsZWQgYXJlIGNvcnJlY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihPYmplY3QsICJpc1NlYWxlZCIpOwoKICAgICAgICB2YXIgcHJvcGVydHlBcmVDb3JyZWN0ID0gKGRlc2Mud3JpdGFibGUgPT09IHRydWUgJiYgZGVzYy5lbnVtZXJhYmxlID09PSBmYWxzZSAmJiBkZXNjLmNvbmZpZ3VyYWJsZSA9PT0gdHJ1ZSk7CgogICAgICAgIHZhciB0ZW1wID0gT2JqZWN0LmlzU2VhbGVkOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuaXNTZWFsZWQgPSAiMjAxMCI7CgogICAgICAgICAgICB2YXIgaXNXcml0YWJsZSA9IChPYmplY3QuaXNTZWFsZWQgPT09ICIyMDEwIik7CgogICAgICAgICAgICB2YXIgaXNFbnVtZXJhYmxlID0gZmFsc2U7CgogICAgICAgICAgICBmb3IgKHZhciBwcm9wIGluIE9iamVjdCkgewogICAgICAgICAgICAgICAgaWYgKHByb3AgPT09ICJpc1NlYWxlZCIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgCiAgICAgICAgICAgIGRlbGV0ZSBPYmplY3QuaXNTZWFsZWQ7CgogICAgICAgICAgICB2YXIgaXNDb25maWd1cmFibGUgPSAhT2JqZWN0Lmhhc093blByb3BlcnR5KCJpc1NlYWxlZCIpOwoKICAgICAgICAgICAgcmV0dXJuIHByb3BlcnR5QXJlQ29ycmVjdCAmJiBpc1dyaXRhYmxlICYmICFpc0VudW1lcmFibGUgJiYgaXNDb25maWd1cmFibGU7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KE9iamVjdCwgImlzU2VhbGVkIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IHRlbXAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcikgJiYgZm5FeGlzdHMoT2JqZWN0LmlzU2VhbGVkKTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-607","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-607.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYwOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MDguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBPYmplY3QuaXNGcm96ZW4gYXJlIGNvcnJlY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihPYmplY3QsICJpc0Zyb3plbiIpOwoKICAgICAgICB2YXIgcHJvcGVydHlBcmVDb3JyZWN0ID0gKGRlc2Mud3JpdGFibGUgPT09IHRydWUgJiYgZGVzYy5lbnVtZXJhYmxlID09PSBmYWxzZSAmJiBkZXNjLmNvbmZpZ3VyYWJsZSA9PT0gdHJ1ZSk7CgogICAgICAgIHZhciB0ZW1wID0gT2JqZWN0LmlzRnJvemVuOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuaXNGcm96ZW4gPSAiMjAxMCI7CgogICAgICAgICAgICB2YXIgaXNXcml0YWJsZSA9IChPYmplY3QuaXNGcm96ZW4gPT09ICIyMDEwIik7CgogICAgICAgICAgICB2YXIgaXNFbnVtZXJhYmxlID0gZmFsc2U7CgogICAgICAgICAgICBmb3IgKHZhciBwcm9wIGluIE9iamVjdCkgewogICAgICAgICAgICAgICAgaWYgKHByb3AgPT09ICJpc0Zyb3plbiIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgCiAgICAgICAgICAgIGRlbGV0ZSBPYmplY3QuaXNGcm96ZW47CgogICAgICAgICAgICB2YXIgaXNDb25maWd1cmFibGUgPSAhT2JqZWN0Lmhhc093blByb3BlcnR5KCJpc0Zyb3plbiIpOwoKICAgICAgICAgICAgcmV0dXJuIHByb3BlcnR5QXJlQ29ycmVjdCAmJiBpc1dyaXRhYmxlICYmICFpc0VudW1lcmFibGUgJiYgaXNDb25maWd1cmFibGU7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KE9iamVjdCwgImlzRnJvemVuIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IHRlbXAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcikgJiYgZm5FeGlzdHMoT2JqZWN0LmlzRnJvemVuKTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-608","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-608.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYwOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MDkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBPYmplY3QuaXNFeHRlbnNpYmxlIGFyZSBjb3JyZWN0IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IoT2JqZWN0LCAiaXNFeHRlbnNpYmxlIik7CgogICAgICAgIHZhciBwcm9wZXJ0eUFyZUNvcnJlY3QgPSAoZGVzYy53cml0YWJsZSA9PT0gdHJ1ZSAmJiBkZXNjLmVudW1lcmFibGUgPT09IGZhbHNlICYmIGRlc2MuY29uZmlndXJhYmxlID09PSB0cnVlKTsKCiAgICAgICAgdmFyIHRlbXAgPSBPYmplY3QuaXNFeHRlbnNpYmxlOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuaXNFeHRlbnNpYmxlID0gIjIwMTAiOwoKICAgICAgICAgICAgdmFyIGlzV3JpdGFibGUgPSAoT2JqZWN0LmlzRXh0ZW5zaWJsZSA9PT0gIjIwMTAiKTsKCiAgICAgICAgICAgIHZhciBpc0VudW1lcmFibGUgPSBmYWxzZTsKCiAgICAgICAgICAgIGZvciAodmFyIHByb3AgaW4gT2JqZWN0KSB7CiAgICAgICAgICAgICAgICBpZiAocHJvcCA9PT0gImlzRXh0ZW5zaWJsZSIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgCiAgICAgICAgICAgIGRlbGV0ZSBPYmplY3QuaXNFeHRlbnNpYmxlOwoKICAgICAgICAgICAgdmFyIGlzQ29uZmlndXJhYmxlID0gIU9iamVjdC5oYXNPd25Qcm9wZXJ0eSgiaXNFeHRlbnNpYmxlIik7CgogICAgICAgICAgICByZXR1cm4gcHJvcGVydHlBcmVDb3JyZWN0ICYmIGlzV3JpdGFibGUgJiYgIWlzRW51bWVyYWJsZSAmJiBpc0NvbmZpZ3VyYWJsZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoT2JqZWN0LCAiaXNFeHRlbnNpYmxlIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IHRlbXAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVy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cn0pOwo=","id":"15.2.3.6-4-61","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-61.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYxMCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MTAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBPYmplY3Qua2V5cyBhcmUgY29ycmVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKE9iamVjdCwgImtleXMiKTsKCiAgICAgICAgdmFyIHByb3BlcnR5QXJlQ29ycmVjdCA9IChkZXNjLndyaXRhYmxlID09PSB0cnVlICYmIGRlc2MuZW51bWVyYWJsZSA9PT0gZmFsc2UgJiYgZGVzYy5jb25maWd1cmFibGUgPT09IHRydWUpOwoKICAgICAgICB2YXIgdGVtcCA9IE9iamVjdC5rZXlzOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3Qua2V5cyA9ICIyMDEwIjsKCiAgICAgICAgICAgIHZhciBpc1dyaXRhYmxlID0gKE9iamVjdC5rZXlzID09PSAiMjAxMCIpOwoKICAgICAgICAgICAgdmFyIGlzRW51bWVyYWJsZSA9IGZhbHNlOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBPYmplY3QpIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wID09PSAia2V5cyIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgCiAgICAgICAgICAgIGRlbGV0ZSBPYmplY3Qua2V5czsKCiAgICAgICAgICAgIHZhciBpc0NvbmZpZ3VyYWJsZSA9ICFPYmplY3QuaGFzT3duUHJvcGVydHkoImtleXMiKTsKCiAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eUFyZUNvcnJlY3QgJiYgaXNXcml0YWJsZSAmJiAhaXNFbnVtZXJhYmxlICYmIGlzQ29uZmlndXJhYmxlOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShPYmplY3QsICJrZXlzIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IHRlbXAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcikgJiYgZm5FeGlzdHMoT2JqZWN0LmtleXMpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-610","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-610.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYxMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBGdW5jdGlvbi5wcm90b3R5cGUuYmluZCBhcmUgY29ycmVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKEZ1bmN0aW9uLnByb3RvdHlwZSwgImJpbmQiKTsKCiAgICAgICAgdmFyIHByb3BlcnR5QXJlQ29ycmVjdCA9IChkZXNjLndyaXRhYmxlID09PSB0cnVlICYmIGRlc2MuZW51bWVyYWJsZSA9PT0gZmFsc2UgJiYgZGVzYy5jb25maWd1cmFibGUgPT09IHRydWUpOwoKICAgICAgICB2YXIgdGVtcCA9IEZ1bmN0aW9uLnByb3RvdHlwZS5iaW5kOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBGdW5jdGlvbi5wcm90b3R5cGUuYmluZCA9ICIyMDEwIjsKCiAgICAgICAgICAgIHZhciBpc1dyaXRhYmxlID0gKEZ1bmN0aW9uLnByb3RvdHlwZS5iaW5kID09PSAiMjAxMCIpOwoKICAgICAgICAgICAgdmFyIGlzRW51bWVyYWJsZSA9IGZhbHNlOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBGdW5jdGlvbi5wcm90b3R5cGUpIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wID09PSAiYmluZCIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgCiAgICAgICAgICAgIGRlbGV0ZSBGdW5jdGlvbi5wcm90b3R5cGUuYmluZDsKCiAgICAgICAgICAgIHZhciBpc0NvbmZpZ3VyYWJsZSA9ICFGdW5jdGlvbi5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkoImJpbmQiKTsKCiAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eUFyZUNvcnJlY3QgJiYgaXNXcml0YWJsZSAmJiAhaXNFbnVtZXJhYmxlICYmIGlzQ29uZmlndXJhYmxlOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShGdW5jdGlvbi5wcm90b3R5cGUsICJiaW5kIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IHRlbXAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcikgJiYgZm5FeGlzdHMoRnVuY3Rpb24ucHJvdG90eXBlLmJpbmQpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-611","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-611.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYxMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MTIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBBcnJheS5wcm90b3R5cGUuaW5kZXhPZiBhcmUgY29ycmVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKEFycmF5LnByb3RvdHlwZSwgImluZGV4T2YiKTsKCiAgICAgICAgdmFyIHByb3BlcnR5QXJlQ29ycmVjdCA9IChkZXNjLndyaXRhYmxlID09PSB0cnVlICYmIGRlc2MuZW51bWVyYWJsZSA9PT0gZmFsc2UgJiYgZGVzYy5jb25maWd1cmFibGUgPT09IHRydWUpOwoKICAgICAgICB2YXIgdGVtcCA9IEFycmF5LnByb3RvdHlwZS5pbmRleE9mOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBBcnJheS5wcm90b3R5cGUuaW5kZXhPZiA9ICIyMDEwIjsKCiAgICAgICAgICAgIHZhciBpc1dyaXRhYmxlID0gKEFycmF5LnByb3RvdHlwZS5pbmRleE9mID09PSAiMjAxMCIpOwoKICAgICAgICAgICAgdmFyIGlzRW51bWVyYWJsZSA9IGZhbHNlOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBBcnJheS5wcm90b3R5cGUpIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wID09PSAiaW5kZXhPZiIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlLmluZGV4T2Y7CgogICAgICAgICAgICB2YXIgaXNDb25maWd1cmFibGUgPSAhQXJyYXkucHJvdG90eXBlLmhhc093blByb3BlcnR5KCJpbmRleE9mIik7CgogICAgICAgICAgICByZXR1cm4gcHJvcGVydHlBcmVDb3JyZWN0ICYmIGlzV3JpdGFibGUgJiYgIWlzRW51bWVyYWJsZSAmJiBpc0NvbmZpZ3VyYWJsZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoQXJyYXkucHJvdG90eXBlLCAiaW5kZXhPZiIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiB0ZW1wLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5pbmRleE9mKTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-612","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-612.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYxMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MTMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBPYmplY3QubGFzdEluZGV4T2YgYXJlIGNvcnJlY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihBcnJheS5wcm90b3R5cGUsICJsYXN0SW5kZXhPZiIpOwoKICAgICAgICB2YXIgcHJvcGVydHlBcmVDb3JyZWN0ID0gKGRlc2Mud3JpdGFibGUgPT09IHRydWUgJiYgZGVzYy5lbnVtZXJhYmxlID09PSBmYWxzZSAmJiBkZXNjLmNvbmZpZ3VyYWJsZSA9PT0gdHJ1ZSk7CgogICAgICAgIHZhciB0ZW1wID0gQXJyYXkucHJvdG90eXBlLmxhc3RJbmRleE9mOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBBcnJheS5wcm90b3R5cGUubGFzdEluZGV4T2YgPSAiMjAxMCI7CgogICAgICAgICAgICB2YXIgaXNXcml0YWJsZSA9IChBcnJheS5wcm90b3R5cGUubGFzdEluZGV4T2YgPT09ICIyMDEwIik7CgogICAgICAgICAgICB2YXIgaXNFbnVtZXJhYmxlID0gZmFsc2U7CgogICAgICAgICAgICBmb3IgKHZhciBwcm9wIGluIEFycmF5LnByb3RvdHlwZSkgewogICAgICAgICAgICAgICAgaWYgKHByb3AgPT09ICJsYXN0SW5kZXhPZiIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlLmxhc3RJbmRleE9mOwoKICAgICAgICAgICAgdmFyIGlzQ29uZmlndXJhYmxlID0gIUFycmF5LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eSgibGFzdEluZGV4T2YiKTsKCiAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eUFyZUNvcnJlY3QgJiYgaXNXcml0YWJsZSAmJiAhaXNFbnVtZXJhYmxlICYmIGlzQ29uZmlndXJhYmxlOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShBcnJheS5wcm90b3R5cGUsICJsYXN0SW5kZXhPZiIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiB0ZW1wLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5sYXN0SW5kZXhPZik7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-613","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-613.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYxNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MTQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBBcnJheS5wcm90b3R5cGUuZXZlcnkgYXJlIGNvcnJlY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihBcnJheS5wcm90b3R5cGUsICJldmVyeSIpOwoKICAgICAgICB2YXIgcHJvcGVydHlBcmVDb3JyZWN0ID0gKGRlc2Mud3JpdGFibGUgPT09IHRydWUgJiYgZGVzYy5lbnVtZXJhYmxlID09PSBmYWxzZSAmJiBkZXNjLmNvbmZpZ3VyYWJsZSA9PT0gdHJ1ZSk7CgogICAgICAgIHZhciB0ZW1wID0gQXJyYXkucHJvdG90eXBlLmV2ZXJ5OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBBcnJheS5wcm90b3R5cGUuZXZlcnkgPSAiMjAxMCI7CgogICAgICAgICAgICB2YXIgaXNXcml0YWJsZSA9IChBcnJheS5wcm90b3R5cGUuZXZlcnkgPT09ICIyMDEwIik7CgogICAgICAgICAgICB2YXIgaXNFbnVtZXJhYmxlID0gZmFsc2U7CgogICAgICAgICAgICBmb3IgKHZhciBwcm9wIGluIEFycmF5LnByb3RvdHlwZSkgewogICAgICAgICAgICAgICAgaWYgKHByb3AgPT09ICJldmVyeSIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlLmV2ZXJ5OwoKICAgICAgICAgICAgdmFyIGlzQ29uZmlndXJhYmxlID0gIUFycmF5LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eSgiZXZlcnkiKTsKCiAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eUFyZUNvcnJlY3QgJiYgaXNXcml0YWJsZSAmJiAhaXNFbnVtZXJhYmxlICYmIGlzQ29uZmlndXJhYmxlOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShBcnJheS5wcm90b3R5cGUsICJldmVyeSIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiB0ZW1wLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5ldmVyeSk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-614","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-614.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYxNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MTUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBBcnJheS5wcm90b3R5cGUuc29tZSBhcmUgY29ycmVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKEFycmF5LnByb3RvdHlwZSwgInNvbWUiKTsKCiAgICAgICAgdmFyIHByb3BlcnR5QXJlQ29ycmVjdCA9IChkZXNjLndyaXRhYmxlID09PSB0cnVlICYmIGRlc2MuZW51bWVyYWJsZSA9PT0gZmFsc2UgJiYgZGVzYy5jb25maWd1cmFibGUgPT09IHRydWUpOwoKICAgICAgICB2YXIgdGVtcCA9IEFycmF5LnByb3RvdHlwZS5zb21lOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBBcnJheS5wcm90b3R5cGUuc29tZSA9ICIyMDEwIjsKCiAgICAgICAgICAgIHZhciBpc1dyaXRhYmxlID0gKEFycmF5LnByb3RvdHlwZS5zb21lID09PSAiMjAxMCIpOwoKICAgICAgICAgICAgdmFyIGlzRW51bWVyYWJsZSA9IGZhbHNlOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBBcnJheS5wcm90b3R5cGUpIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wID09PSAic29tZSIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlLnNvbWU7CgogICAgICAgICAgICB2YXIgaXNDb25maWd1cmFibGUgPSAhQXJyYXkucHJvdG90eXBlLmhhc093blByb3BlcnR5KCJzb21lIik7CgogICAgICAgICAgICByZXR1cm4gcHJvcGVydHlBcmVDb3JyZWN0ICYmIGlzV3JpdGFibGUgJiYgIWlzRW51bWVyYWJsZSAmJiBpc0NvbmZpZ3VyYWJsZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoQXJyYXkucHJvdG90eXBlLCAic29tZSIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiB0ZW1wLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5zb21lKTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-615","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-615.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYxNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MTYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBBcnJheS5wcm90b3R5cGUuZm9yRWFjaCBhcmUgY29ycmVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKEFycmF5LnByb3RvdHlwZSwgImZvckVhY2giKTsKCiAgICAgICAgdmFyIHByb3BlcnR5QXJlQ29ycmVjdCA9IChkZXNjLndyaXRhYmxlID09PSB0cnVlICYmIGRlc2MuZW51bWVyYWJsZSA9PT0gZmFsc2UgJiYgZGVzYy5jb25maWd1cmFibGUgPT09IHRydWUpOwoKICAgICAgICB2YXIgdGVtcCA9IEFycmF5LnByb3RvdHlwZS5mb3JFYWNoOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaCA9ICIyMDEwIjsKCiAgICAgICAgICAgIHZhciBpc1dyaXRhYmxlID0gKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoID09PSAiMjAxMCIpOwoKICAgICAgICAgICAgdmFyIGlzRW51bWVyYWJsZSA9IGZhbHNlOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBBcnJheS5wcm90b3R5cGUpIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wID09PSAiZm9yRWFjaCIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlLmZvckVhY2g7CgogICAgICAgICAgICB2YXIgaXNDb25maWd1cmFibGUgPSAhQXJyYXkucHJvdG90eXBlLmhhc093blByb3BlcnR5KCJmb3JFYWNoIik7CgogICAgICAgICAgICByZXR1cm4gcHJvcGVydHlBcmVDb3JyZWN0ICYmIGlzV3JpdGFibGUgJiYgIWlzRW51bWVyYWJsZSAmJiBpc0NvbmZpZ3VyYWJsZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoQXJyYXkucHJvdG90eXBlLCAiZm9yRWFjaCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiB0ZW1wLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-616","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-616.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYxNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MTcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBBcnJheS5wcm90b3R5cGUubWFwIGFyZSBjb3JyZWN0IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IoQXJyYXkucHJvdG90eXBlLCAibWFwIik7CgogICAgICAgIHZhciBwcm9wZXJ0eUFyZUNvcnJlY3QgPSAoZGVzYy53cml0YWJsZSA9PT0gdHJ1ZSAmJiBkZXNjLmVudW1lcmFibGUgPT09IGZhbHNlICYmIGRlc2MuY29uZmlndXJhYmxlID09PSB0cnVlKTsKCiAgICAgICAgdmFyIHRlbXAgPSBBcnJheS5wcm90b3R5cGUubWFwOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBBcnJheS5wcm90b3R5cGUubWFwID0gIjIwMTAiOwoKICAgICAgICAgICAgdmFyIGlzV3JpdGFibGUgPSAoQXJyYXkucHJvdG90eXBlLm1hcCA9PT0gIjIwMTAiKTsKCiAgICAgICAgICAgIHZhciBpc0VudW1lcmFibGUgPSBmYWxzZTsKCiAgICAgICAgICAgIGZvciAodmFyIHByb3AgaW4gQXJyYXkucHJvdG90eXBlKSB7CiAgICAgICAgICAgICAgICBpZiAocHJvcCA9PT0gIm1hcCIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlLm1hcDsKCiAgICAgICAgICAgIHZhciBpc0NvbmZpZ3VyYWJsZSA9ICFBcnJheS5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkoIm1hcCIpOwoKICAgICAgICAgICAgcmV0dXJuIHByb3BlcnR5QXJlQ29ycmVjdCAmJiBpc1dyaXRhYmxlICYmICFpc0VudW1lcmFibGUgJiYgaXNDb25maWd1cmFibGU7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KEFycmF5LnByb3RvdHlwZSwgIm1hcCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiB0ZW1wLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5tYXApOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-617","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-617.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYxOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MTguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBBcnJheS5wcm90b3R5cGUuZmlsdGVyIGFyZSBjb3JyZWN0IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IoQXJyYXkucHJvdG90eXBlLCAiZmlsdGVyIik7CgogICAgICAgIHZhciBwcm9wZXJ0eUFyZUNvcnJlY3QgPSAoZGVzYy53cml0YWJsZSA9PT0gdHJ1ZSAmJiBkZXNjLmVudW1lcmFibGUgPT09IGZhbHNlICYmIGRlc2MuY29uZmlndXJhYmxlID09PSB0cnVlKTsKCiAgICAgICAgdmFyIHRlbXAgPSBBcnJheS5wcm90b3R5cGUuZmlsdGVyOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBBcnJheS5wcm90b3R5cGUuZmlsdGVyID0gIjIwMTAiOwoKICAgICAgICAgICAgdmFyIGlzV3JpdGFibGUgPSAoQXJyYXkucHJvdG90eXBlLmZpbHRlciA9PT0gIjIwMTAiKTsKCiAgICAgICAgICAgIHZhciBpc0VudW1lcmFibGUgPSBmYWxzZTsKCiAgICAgICAgICAgIGZvciAodmFyIHByb3AgaW4gQXJyYXkucHJvdG90eXBlKSB7CiAgICAgICAgICAgICAgICBpZiAocHJvcCA9PT0gImZpbHRlciIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlLmZpbHRlcjsKCiAgICAgICAgICAgIHZhciBpc0NvbmZpZ3VyYWJsZSA9ICFBcnJheS5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkoImZpbHRlciIpOwoKICAgICAgICAgICAgcmV0dXJuIHByb3BlcnR5QXJlQ29ycmVjdCAmJiBpc1dyaXRhYmxlICYmICFpc0VudW1lcmFibGUgJiYgaXNDb25maWd1cmFibGU7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KEFycmF5LnByb3RvdHlwZSwgImZpbHRlciIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiB0ZW1wLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5maWx0ZXIpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-618","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-618.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYxOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MTkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBBcnJheS5wcm90b3R5cGUucmVkdWNlIGFyZSBjb3JyZWN0IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IoQXJyYXkucHJvdG90eXBlLCAicmVkdWNlIik7CgogICAgICAgIHZhciBwcm9wZXJ0eUFyZUNvcnJlY3QgPSAoZGVzYy53cml0YWJsZSA9PT0gdHJ1ZSAmJiBkZXNjLmVudW1lcmFibGUgPT09IGZhbHNlICYmIGRlc2MuY29uZmlndXJhYmxlID09PSB0cnVlKTsKCiAgICAgICAgdmFyIHRlbXAgPSBBcnJheS5wcm90b3R5cGUucmVkdWNlOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBBcnJheS5wcm90b3R5cGUucmVkdWNlID0gIjIwMTAiOwoKICAgICAgICAgICAgdmFyIGlzV3JpdGFibGUgPSAoQXJyYXkucHJvdG90eXBlLnJlZHVjZSA9PT0gIjIwMTAiKTsKCiAgICAgICAgICAgIHZhciBpc0VudW1lcmFibGUgPSBmYWxzZTsKCiAgICAgICAgICAgIGZvciAodmFyIHByb3AgaW4gQXJyYXkucHJvdG90eXBlKSB7CiAgICAgICAgICAgICAgICBpZiAocHJvcCA9PT0gInJlZHVjZSIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlLnJlZHVjZTsKCiAgICAgICAgICAgIHZhciBpc0NvbmZpZ3VyYWJsZSA9ICFBcnJheS5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkoInJlZHVjZSIpOwoKICAgICAgICAgICAgcmV0dXJuIHByb3BlcnR5QXJlQ29ycmVjdCAmJiBpc1dyaXRhYmxlICYmICFpc0VudW1lcmFibGUgJiYgaXNDb25maWd1cmFibGU7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KEFycmF5LnByb3RvdHlwZSwgInJlZHVjZSIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiB0ZW1wLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5yZWR1Y2UpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-619","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-619.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTYyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGJvdGggZGVzYy52YWx1ZSBhbmQgbmFtZS52YWx1ZSBhcmUgbnVsbCAoOC4xMi45IHN0ZXAgNikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7IHZhbHVlOiBudWxsIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgeyB2YWx1ZTogbnVsbCB9KTsKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgbnVsbCwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsKCg==","id":"15.2.3.6-4-62","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-62.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYyMCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MjAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBBcnJheS5wcm90b3R5cGUucmVkdWNlUmlnaHQgYXJlIGNvcnJlY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihBcnJheS5wcm90b3R5cGUsICJyZWR1Y2VSaWdodCIpOwoKICAgICAgICB2YXIgcHJvcGVydHlBcmVDb3JyZWN0ID0gKGRlc2Mud3JpdGFibGUgPT09IHRydWUgJiYgZGVzYy5lbnVtZXJhYmxlID09PSBmYWxzZSAmJiBkZXNjLmNvbmZpZ3VyYWJsZSA9PT0gdHJ1ZSk7CgogICAgICAgIHZhciB0ZW1wID0gQXJyYXkucHJvdG90eXBlLnJlZHVjZVJpZ2h0OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBBcnJheS5wcm90b3R5cGUucmVkdWNlUmlnaHQgPSAiMjAxMCI7CgogICAgICAgICAgICB2YXIgaXNXcml0YWJsZSA9IChBcnJheS5wcm90b3R5cGUucmVkdWNlUmlnaHQgPT09ICIyMDEwIik7CgogICAgICAgICAgICB2YXIgaXNFbnVtZXJhYmxlID0gZmFsc2U7CgogICAgICAgICAgICBmb3IgKHZhciBwcm9wIGluIEFycmF5LnByb3RvdHlwZSkgewogICAgICAgICAgICAgICAgaWYgKHByb3AgPT09ICJyZWR1Y2VSaWdodCIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlLnJlZHVjZVJpZ2h0OwoKICAgICAgICAgICAgdmFyIGlzQ29uZmlndXJhYmxlID0gIUFycmF5LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eSgicmVkdWNlUmlnaHQiKTsKCiAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eUFyZUNvcnJlY3QgJiYgaXNXcml0YWJsZSAmJiAhaXNFbnVtZXJhYmxlICYmIGlzQ29uZmlndXJhYmxlOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShBcnJheS5wcm90b3R5cGUsICJyZWR1Y2VSaWdodCIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiB0ZW1wLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5yZWR1Y2VSaWdodCk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-620","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-620.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYyMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MjEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBTdHJpbmcucHJvdG90eXBlLnRyaW0gYXJlIGNvcnJlY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihTdHJpbmcucHJvdG90eXBlLCAidHJpbSIpOwoKICAgICAgICB2YXIgcHJvcGVydHlBcmVDb3JyZWN0ID0gKGRlc2Mud3JpdGFibGUgPT09IHRydWUgJiYgZGVzYy5lbnVtZXJhYmxlID09PSBmYWxzZSAmJiBkZXNjLmNvbmZpZ3VyYWJsZSA9PT0gdHJ1ZSk7CgogICAgICAgIHZhciB0ZW1wID0gU3RyaW5nLnByb3RvdHlwZS50cmltOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBTdHJpbmcucHJvdG90eXBlLnRyaW0gPSAiMjAxMCI7CgogICAgICAgICAgICB2YXIgaXNXcml0YWJsZSA9IChTdHJpbmcucHJvdG90eXBlLnRyaW0gPT09ICIyMDEwIik7CgogICAgICAgICAgICB2YXIgaXNFbnVtZXJhYmxlID0gZmFsc2U7CgogICAgICAgICAgICBmb3IgKHZhciBwcm9wIGluIFN0cmluZy5wcm90b3R5cGUpIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wID09PSAidHJpbSIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICBkZWxldGUgU3RyaW5nLnByb3RvdHlwZS50cmltOwoKICAgICAgICAgICAgdmFyIGlzQ29uZmlndXJhYmxlID0gIVN0cmluZy5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkoInRyaW0iKTsKCiAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eUFyZUNvcnJlY3QgJiYgaXNXcml0YWJsZSAmJiAhaXNFbnVtZXJhYmxlICYmIGlzQ29uZmlndXJhYmxlOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShTdHJpbmcucHJvdG90eXBlLCAidHJpbSIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiB0ZW1wLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKFN0cmluZy5wcm90b3R5cGUudHJpbSk7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-621","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-621.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYyMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MjIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBEYXRlLm5vdyBhcmUgY29ycmVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKERhdGUsICJub3ciKTsKCiAgICAgICAgdmFyIHByb3BlcnR5QXJlQ29ycmVjdCA9IChkZXNjLndyaXRhYmxlID09PSB0cnVlICYmIGRlc2MuZW51bWVyYWJsZSA9PT0gZmFsc2UgJiYgZGVzYy5jb25maWd1cmFibGUgPT09IHRydWUpOwoKICAgICAgICB2YXIgdGVtcCA9IERhdGUubm93OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBEYXRlLm5vdyA9ICIyMDEwIjsKCiAgICAgICAgICAgIHZhciBpc1dyaXRhYmxlID0gKERhdGUubm93ID09PSAiMjAxMCIpOwoKICAgICAgICAgICAgdmFyIGlzRW51bWVyYWJsZSA9IGZhbHNlOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBEYXRlKSB7CiAgICAgICAgICAgICAgICBpZiAocHJvcCA9PT0gIm5vdyIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICBkZWxldGUgRGF0ZS5ub3c7CgogICAgICAgICAgICB2YXIgaXNDb25maWd1cmFibGUgPSAhRGF0ZS5oYXNPd25Qcm9wZXJ0eSgibm93Iik7CgogICAgICAgICAgICByZXR1cm4gcHJvcGVydHlBcmVDb3JyZWN0ICYmIGlzV3JpdGFibGUgJiYgIWlzRW51bWVyYWJsZSAmJiBpc0NvbmZpZ3VyYWJsZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoRGF0ZSwgIm5vdyIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiB0ZW1wLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKERhdGUubm93KTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-622","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-622.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYyMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MjMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBEYXRlLnByb3RvdHlwZS50b0lTT1N0cmluZyBhcmUgY29ycmVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKERhdGUucHJvdG90eXBlLCAidG9JU09TdHJpbmciKTsKCiAgICAgICAgdmFyIHByb3BlcnR5QXJlQ29ycmVjdCA9IChkZXNjLndyaXRhYmxlID09PSB0cnVlICYmIGRlc2MuZW51bWVyYWJsZSA9PT0gZmFsc2UgJiYgZGVzYy5jb25maWd1cmFibGUgPT09IHRydWUpOwoKICAgICAgICB2YXIgdGVtcCA9IERhdGUucHJvdG90eXBlLnRvSVNPU3RyaW5nOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBEYXRlLnByb3RvdHlwZS50b0lTT1N0cmluZyA9ICIyMDEwIjsKCiAgICAgICAgICAgIHZhciBpc1dyaXRhYmxlID0gKERhdGUucHJvdG90eXBlLnRvSVNPU3RyaW5nID09PSAiMjAxMCIpOwoKICAgICAgICAgICAgdmFyIGlzRW51bWVyYWJsZSA9IGZhbHNlOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBEYXRlLnByb3RvdHlwZSkgewogICAgICAgICAgICAgICAgaWYgKHByb3AgPT09ICJ0b0lTT1N0cmluZyIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICBkZWxldGUgRGF0ZS5wcm90b3R5cGUudG9JU09TdHJpbmc7CgogICAgICAgICAgICB2YXIgaXNDb25maWd1cmFibGUgPSAhRGF0ZS5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkoInRvSVNPU3RyaW5nIik7CgogICAgICAgICAgICByZXR1cm4gcHJvcGVydHlBcmVDb3JyZWN0ICYmIGlzV3JpdGFibGUgJiYgIWlzRW51bWVyYWJsZSAmJiBpc0NvbmZpZ3VyYWJsZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoRGF0ZS5wcm90b3R5cGUsICJ0b0lTT1N0cmluZyIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiB0ZW1wLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKERhdGUucHJvdG90eXBlLnRvSVNPU3RyaW5nKTsKICAgIH0KfSk7Cgo=","id":"15.2.3.6-4-623","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-623.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYyNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjYvMTUuMi4zLjYtNC02MjQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiRVM1IEF0dHJpYnV0ZXMgLSBhbGwgYXR0cmlidXRlcyBpbiBEYXRlLnByb3RvdHlwZS50b0pTT04gYXJlIGNvcnJlY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihEYXRlLnByb3RvdHlwZSwgInRvSlNPTiIpOwoKICAgICAgICB2YXIgcHJvcGVydHlBcmVDb3JyZWN0ID0gKGRlc2Mud3JpdGFibGUgPT09IHRydWUgJiYgZGVzYy5lbnVtZXJhYmxlID09PSBmYWxzZSAmJiBkZXNjLmNvbmZpZ3VyYWJsZSA9PT0gdHJ1ZSk7CgogICAgICAgIHZhciB0ZW1wID0gRGF0ZS5wcm90b3R5cGUudG9KU09OOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBEYXRlLnByb3RvdHlwZS50b0pTT04gPSAiMjAxMCI7CgogICAgICAgICAgICB2YXIgaXNXcml0YWJsZSA9IChEYXRlLnByb3RvdHlwZS50b0pTT04gPT09ICIyMDEwIik7CgogICAgICAgICAgICB2YXIgaXNFbnVtZXJhYmxlID0gZmFsc2U7CgogICAgICAgICAgICBmb3IgKHZhciBwcm9wIGluIERhdGUucHJvdG90eXBlKSB7CiAgICAgICAgICAgICAgICBpZiAocHJvcCA9PT0gInRvSlNPTiIpIHsKICAgICAgICAgICAgICAgICAgICBpc0VudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICBkZWxldGUgRGF0ZS5wcm90b3R5cGUudG9KU09OOwoKICAgICAgICAgICAgdmFyIGlzQ29uZmlndXJhYmxlID0gIURhdGUucHJvdG90eXBlLmhhc093blByb3BlcnR5KCJ0b0pTT04iKTsKCiAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eUFyZUNvcnJlY3QgJiYgaXNXcml0YWJsZSAmJiAhaXNFbnVtZXJhYmxlICYmIGlzQ29uZmlndXJhYmxlOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShEYXRlLnByb3RvdHlwZSwgInRvSlNPTiIsIHsKICAgICAgICAgICAgICAgIHZhbHVlOiB0ZW1wLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKERhdGUucHJvdG90eXBlLnRvSlNPTik7CiAgICB9Cn0pOwoK","id":"15.2.3.6-4-624","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-624.js"},{"code":"T2JqZWN0LmRlZmluZVByb3BlcnR5KE9iamVjdC5wcm90b3R5cGUsIAogICAgICAgICAgICAgICAgICAgICAgInByb3AiLCAKICAgICAgICAgICAgICAgICAgICAgIHsgdmFsdWU6IDEwMDEsIHdyaXRhYmxlOiBmYWxzZSwgZW51bWVyYWJsZTogZmFsc2UsIGNvbmZpZ3VyYWJsZTogZmFsc2V9IAogICAgICAgICAgICAgICAgICAgICAgKTsKdmFyIHByb3AgPSAxMDAyOwoKaWYgKCEgKHRoaXMuaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBwcm9wID09PSAxMDAyKSkgewogICAgdGhyb3cgInRoaXMucHJvcCBzaG91bGQgdGFrZSBwcmVjZWRlbmNlIG92ZXIgT2JqZWN0LnByb3RvdHlwZS5wcm9wIjsKfQ==","id":"15.2.3.6-4-625gs","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-625gs.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTYzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTYzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGJvdGggZGVzYy52YWx1ZSBhbmQgbmFtZS52YWx1ZSBhcmUgTmFOICg4LjEyLjkgc3RlcCA2KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsgdmFsdWU6IE5hTiB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsgdmFsdWU6IE5hTiB9KTsKCiAgICAgICAgaWYgKCFpc05hTihvYmouZm9vKSkgewogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQoKICAgICAgICBvYmouZm9vID0gInZlcmlmeVZhbHVlIjsKICAgICAgICBpZiAob2JqLmZvbyA9PT0gInZlcmlmeVZhbHVlIikgewogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQoKICAgICAgICBmb3IgKHZhciBwcm9wIGluIG9iaikgewogICAgICAgICAgICBpZiAob2JqLmhhc093blByb3BlcnR5KHByb3ApICYmIHByb3AgPT09ICJmb28iKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIGRlbGV0ZSBvYmouZm9vOwogICAgICAgIGlmICghb2JqLmhhc093blByb3BlcnR5KCJmb28iKSkgewogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gdHJ1ZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOw==","id":"15.2.3.6-4-63","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-63.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTY0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTY0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGRlc2MudmFsdWUgPSArMCBhbmQgbmFtZS52YWx1ZSA9IC0wICg4LjEyLjkgc3RlcCA2KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsgdmFsdWU6IC0wIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgeyB2YWx1ZTogKzAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIC0wLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-64","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-64.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTY1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTY1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGRlc2MudmFsdWUgPSAtMCBhbmQgbmFtZS52YWx1ZSA9ICswICg4LjEyLjkgc3RlcCA2KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsgdmFsdWU6ICswIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgeyB2YWx1ZTogLTAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsICswLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-65","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-65.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTY2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTY2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQc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JlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-73","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-73.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTc0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTc0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGRlc2Mud3JpdGFibGUgYW5kIG5hbWUud3JpdGFibGUgYXJlIHR3byBib29sZWFuIHZhbHVlcyB3aXRoIGRpZmZlcmVudCB2YWx1ZXMgKDguMTIuOSBzdGVwIDYpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgIAogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsgd3JpdGFibGU6IGZhbHNlLCBjb25maWd1cmFibGU6IHRydWUgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7IHdyaXRhYmxlOiB0cnVlIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCB1bmRlZmluZWQsIHRydWUsIGZhbHNlLCB0cnVlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-74","path":"TestCases/chapter15/15.2/15.2.3/15.2.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gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-75","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-75.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTc2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTc2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIGRlc2MuW1tHZXRdXSBhbmQgbmFtZS5bW0dldF1dIGFyZSB0d28gb2JqZWN0cyB3aGljaCByZWZlciB0byB0aGUgZGlmZmVyZW50IG9iamVjdHMgKDguMTIuOSBzdGVwIDYpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBmdW5jdGlvbiBnZXRGdW5jMSgpIHsKICAgICAgICAgICAgcmV0dXJuIDEwOwogICAgICAgIH0KICAgICAgICBmdW5jdGlvbiBzZXRGdW5jMSh2YWx1ZSkgewogICAgICAgICAgICBvYmouaGVscFZlcmlmeVNldCA9IHZhbHVlOwogICAgICAgIH0KCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jMSwKICAgICAgICAgICAgc2V0OiBzZXRGdW5jMSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIGZ1bmN0aW9uIGdldEZ1bmMyKCkgewogICAgICAgICAgICByZXR1cm4gMjA7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgeyBnZXQ6IGdldEZ1b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FibGVdXSBhdHRyaWJ1dGUgYXMgZmFsc2UsICduYW1lJyBwcm9wZXJ0eSBpcyBhIGRhdGEgcHJvcGVydHkgKDguMTIuOSBzdGVwIDgpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgIAogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgdmFsdWU6IDEwMDEsCiAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICAKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgMTAwMSwgdHJ1ZSwgZmFsc2UsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-82-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-82-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTgyLTEwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTgyLTEwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIFVwZGF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iAgICAgICAgICAgIHJldHVybiBvYmoudmVyaWZ5U2V0RnVuY3Rpb247CiAgICAgICAgfTsKICAgICAgICB2YXIgc2V0X2Z1bmMgPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgb2JqLnZlcmlmeVNldEZ1bmN0aW9uID0gdmFsdWU7CiAgICAgICAgfTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICBnZXQ6IGdldF9mdW5jLAogICAgICAgICAgICBzZXQ6IHNldF9mdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCBnZXRfZnVuYywgc2V0X2Z1bmMsICJ2ZXJpZnlTZXRGdW5jdGlvbiIsIHRydWUsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-82-12","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-82-12.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTgyLTEzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi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RydWUsICduYW1lJyBwcm9wZXJ0eSBpcyBhbiBpbmRleCBkYXRhIHByb3BlcnR5ICg4LjEyLjkgc3RlcCA4KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIwIiwgewogICAgICAgICAgICB2YWx1ZTogMTAwMSwKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgIjAiLCB7CiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgIjAiLCAxMDAxLCB0cnVlLCB0cnVlLCB0cnVlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-82-18","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-82-18.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTgyLTE5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTgyLTE5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIFVwZGF0ZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUg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g4LjEyLjkgc3RlcCA4KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMDAxLAogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICAKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgMTAwMSwgdHJ1ZSwgZmFsc2UsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-82-2","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-82-2.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTgyLTIwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTgyLTIwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSAtIFVwZGF0ZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUgb2YgJ25hbWUnIH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24gKHZhbHVlKSB7CiAgICAgICAgICAgIG9iai52ZXJpZnlTZXRGdW5jdGlvbiA9IHZhbHVlOwogICAgICAgIH07CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgIjAiLCB7CiAgICAgICAgICAgIGdldDogZ2V0X2Z1bmMsCiAgICAgICAgICAgIHNldDogc2V0X2Z1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiMCIsIHsKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgIjAiLCBnZXRfZnVuYywgc2V0X2Z1bmMsICJ2ZXJpZnlTZXRGdW5jdGlvbiIsIHRydWUsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-82-22","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-82-22.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTgyLTIzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTgyLTIzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogI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XJ0eSBpcyBhIGRhdGEgcHJvcGVydHkgKDguMTIuOSBzdGVwIDgpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgIAogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgdmFsdWU6IDEwMDEsCiAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwgCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIDEwMDEsIHRydWUsIHRydWUsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-82-4","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-82-4.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTgyLTUiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtODItNS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSBVcGRhdGUgW1tFbnVtZXJ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Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICBvYmoudmVyaWZ5U2V0RnVuY3Rpb24gPSAiZGF0YSI7CiAgICAgICAgdmFyIGdldF9mdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gb2JqLnZlcmlmeVNldEZ1bmN0aW9uOwogICAgICAgIH07CiAgICAgICAgdmFyIHNldF9mdW5jID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIG9iai52ZXJpZnlTZXRGdW5jdGlvbiA9IHZhbHVlOwogICAgICAgIH07CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRfZnVuYywKICAgICAgICAgICAgc2V0OiBzZXRfZnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgZ2V0X2Z1bmMsIHNldF9mdW5jLCAidmVyaWZ5U2V0RnVuY3Rpb24iLCBmYWxzZSwgdHJ1ZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.6-4-82-7","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-82-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cnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRfZnVuYywKICAgICAgICAgICAgc2V0OiBzZXRfZnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCBnZXRfZnVuYywgc2V0X2Z1bmMsICJ2ZXJpZnlTZXRGdW5jdGlvbiIsIGZhbHNlLCB0cnVlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-82-8","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-82-8.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTgyLTkiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy42LzE1LjIuMy42LTQtODItOS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgLSBVcGRhdGUgW1tDb25maWd1cmFibGVdXSBhdHRyaWJ1dGUgb2YgJ25hbWUnIHByb3BlcnR5IHRvIGZhbHNlIHN1Y2Nlc3N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ZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCB1bmRlZmluZWQsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-83","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-83.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTg0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTg0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSB3aWxsIG5vdCB0aHJvdyBUeXBlRXJyb3IgaWYgbmFtZS5jb25maWd1cmFibGUgPSBmYWxzZSwgbmFtZS53cml0YWJsZSA9IGZhbHNlLCBuYW1lLnZhbHVlID0gbnVsbCBhbmQgZGVzYy52YWx1ZSA9IG51bGwgKDguMTIuOSBzdGVwIDEwLmEuaWkuMSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7IAogICAgICAgICAgICB2YWx1ZTogbnVsbCwgCiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwgCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UgCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7IAogICAgICAgICAgICB2YWx1ZTogbnVsbCwgIAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsIAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlIAogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCBudWxsLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-84","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-84.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTg1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTg1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSB3aWxsIG5vdCB0aHJvdyBUeXBlRXJyb3IgaWYgbmFtZS5jb25maWd1cmFibGUgPSBmYWxzZSwgbmFtZS53cml0YWJsZSA9IGZhbHNlLCBuYW1lLnZhbHVlID0gTmFOIGFuZCBkZXNjLnZhbHVlID0gTmFOICg4LjEyLjkgc3RlcCAxMC5hLmlpLjEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICB2YWx1ZTogTmFOLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgdmFsdWU6IE5hTiwKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIGlmICghaXNOYU4ob2JqLmZvbykpIHsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0KCiAgICAgICAgb2JqLmZvbyA9ICJ2ZXJpZnlWYWx1ZSI7CiAgICAgICAgaWYgKG9iai5mb28gPT09ICJ2ZXJpZnlWYWx1ZSIpIHsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0KCiAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKG9iai5oYXNPd25Qcm9wZXJ0eShwcm9wKSAmJiBwcm9wID09PSAiZm9vIikgewogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICBkZWxldGUgb2JqLmZvbzsKICAgICAgICBpZiAoIW9iai5oYXNPd25Qcm9wZXJ0eSgiZm9vIikpIHsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIHRydWU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-85","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-85.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTg2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTg2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSB3aWxsIHRocm93IFR5cGVFcnJvciB3aGVuIG5hbWUuY29uZmlndXJhYmxlID0gZmFsc2UsIG5hbWUud3JpdGFibGUgPSBmYWxzZSwgZGVzYy52YWx1ZSA9ICswIGFuZCBuYW1lLnZhbHVlID0gLTAgKDguMTIuOSBzdGVwIDEwLmEuaWkuMSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7IAogICAgICAgICAgICB2YWx1ZTogLTAsIAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsIAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlIAogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgeyB2YWx1ZTogKzAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIC0wLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsKCgo=","id":"15.2.3.6-4-86","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-86.js"},{"code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ZhbHNlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-88","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-88.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTg5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTg5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSB3aWxsIHRocm93IFR5cGVFcnJvciB3aGVuIG5hbWUuY29uZmlndXJhYmxlID0gZmFsc2UsIG5hbWUud3JpdGFibGUgPSBmYWxzZSwgZGVzYy52YWx1ZSBhbmQgbmFtZS52YWx1ZSBhcmUgdHdvIG51bWJlcnMgd2l0aCBkaWZmZXJlbnQgdmFsdWVzICg4LjEyLjkgc3RlcCAxMC5hLmlpLjEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgeyAKICAgICAgICAgICAgdmFsdWU6IDEwLCAKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLCAKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZSAKICAgICAgICB9KTsKICAgICAgICAKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgeyB2YWx1ZTogMjAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IG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Ni8xNS4yLjMuNi00LTkwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSB3aWxsIG5vdCB0aHJvdyBUeXBlRXJyb3Igd2hlbiBuYW1lLmNvbmZpZ3VyYWJsZSA9IGZhbHNlLCBuYW1lLndyaXRhYmxlID0gZmFsc2UsIGRlc2MudmFsdWUgYW5kIG5hbWUudmFsdWUgYXJlIHR3byBzdHJpbmdzIHdpdGggdGhlIHNhbWUgdmFsdWUgKDguMTIuOSBzdGVwIDEwLmEuaWkuMSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIHZhbHVlOiAiYWJjZCIsCiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZSAKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsgdmFsdWU6ICJhYmNkIiB9KTsKICAgICAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsICJhYmNkIiwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.6-4-90","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-90.js"},{"code":"RV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ZmFsc2UpOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.6-4-92","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-92.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTkzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTkzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSB3aWxsIHRocm93IFR5cGVFcnJvciB3aGVuIG5hbWUuY29uZmlndXJhYmxlID0gZmFsc2UsIG5hbWUud3JpdGFibGUgPSBmYWxzZSwgZGVzYy52YWx1ZSBhbmQgbmFtZS52YWx1ZSBhcmUgdHdvIGJvb2xlYW5zIHdpdGggZGlmZmVyZW50IHZhbHVlcyAoOC4xMi45IHN0ZXAgMTAuYS5paS4xKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgdmFsdWU6IGZhbHNlLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UgCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7IHZhbHVlOiB0cnVlIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCBmYWxzZSwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7","id":"15.2.3.6-4-93","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-93.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTk0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTk0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSB3aWxsIG5vdCB0aHJvdyBUeXBlRXJyb3Igd2hlbiBuYW1lLmNvbmZpZ3VyYWJsZSA9IGZhbHNlLCBuYW1lLndyaXRhYmxlID0gZmFsc2UsIGRlc2MudmFsdWUgYW5kIG5hbWUudmFsdWUgYXJlIHR3byBPYmplY3RzIHJlZmVyIHRvIHRoZSBzYW1lIG9iamVjdCAoOC4xMi45IHN0ZXAgMTAuYS5paS4xKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIG9iajEgPSB7IGxlbmd0aDogMTAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgdmFsdWU6IG9iajEsCiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZSAKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsgdmFsdWU6IG9iajEgfSk7CiAgICAgICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCBvYmoxLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.6-4-94","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-94.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTk1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTk1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSB3aWxsIHRocm93IFR5cGVFcnJvciB3aGVuIG5hbWUuY29uZmlndXJhYmxlID0gZmFsc2UsIG5hbWUud3JpdGFibGUgPSBmYWxzZSwgZGVzYy52YWx1ZSBhbmQgbmFtZS52YWx1ZSBhcmUgdHdvIG9iamVjdHMgd2hpY2ggcmVmZXIgdG8gdGhlIGRpZmZlcmVudCBvYmplY3RzICg4LjEyLjkgc3RlcCAxMC5hLmlpLjEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgb2JqMSA9IHsgbGVuZ3RoOiAxMCB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICB2YWx1ZTogb2JqMSwKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlIAogICAgICAgIH0pOwoKICAgICAgICB2YXIgb2JqMiA9IHsgbGVuZ3RoOiAyMCB9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgeyB2YWx1ZTogb2JqMiB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgb2JqMSwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7","id":"15.2.3.6-4-95","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-95.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTk2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTk2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSB3aWxsIG5vdCB0aHJvdyBUeXBlRXJyb3Igd2hlbiBuYW1lLmNvbmZpZ3VyYWJsZSA9IGZhbHNlLCBib3RoIGRlc2MuW1tTZXRdXSBhbmQgbmFtZS5bW1NldF1dIGFyZSB0d28gb2JqZWN0cyB3aGljaCByZWZlciB0byB0aGUgc2FtZSBvYmplY3QgKDguMTIuOSBzdGVwIDExLmEuaSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIGZ1bmN0aW9uIHNldEZ1bmModmFsdWUpIHsKICAgICAgICAgICAgb2JqLnNldFZlcmlmeUhlbHBQcm9wID0gdmFsdWU7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICBzZXQ6IHNldEZ1bmMsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsgc2V0OiBzZXRGdW5jIH0pOwogICAgICAgICAgICByZXR1cm4gYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIHVuZGVmaW5lZCwgc2V0RnVuYywgInNldFZlcmlmeUhlbHBQcm9wIiwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTs=","id":"15.2.3.6-4-96","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-96.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTk3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTk3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSB3aWxsIHRocm93IFR5cGVFcnJvciB3aGVuIG5hbWUuY29uZmlndXJhYmxlID0gZmFsc2UsIG5hbWUuW1tTZXRdXSBpcyB1bmRlZmluZWQsIGRlc2MuW1tTZXRdXSByZWZlcnMgdG8gYW4gb2JqZWN0ICg4LjEyLjkgc3RlcCAxMS5hLmkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBmdW5jdGlvbiBnZXRGdW5jKCkgewogICAgICAgICAgICByZXR1cm4gInByb3BlcnR5IjsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKCkgeyB9LAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmCiAgIC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nZlcmlmeUdldEhlbHBNZXRob2QgPSB2YWx1ZTsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgc2V0OiBzZXRGdW5jLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7IGdldDogZ2V0RnVuYyB9KTsKICAgICAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCBnZXRGdW5jLCBzZXRGdW5jLCAidmVyaWZ5R2V0SGVscE1ldGhvZCIsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7","id":"15.2.3.6-4-98","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-98.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNi00LTk5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNi8xNS4yLjMuNi00LTk5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0eSB3aWxsIHRocm93IFR5cGVFcnJvciB3aGVuIG5hbWUuY29uZmlndXJhYmxlID0gZmFsc2UsIG5hbWUuW1tHZXRdXSBpcyB1bmRlZmluZWQsIGRlc2MuW1tHZXRdXSByZWZlcnMgdG8gYW4gb2JqZWN0ICg4LjEyLjkgc3RlcCAxMS5hLmlpKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgZnVuY3Rpb24gc2V0RnVuYyh2YWx1ZSkgewogICAgICAgICAgICBvYmouc2V0VmVyaWZ5SGVscFByb3AgPSB2YWx1ZTsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIHNldDogc2V0RnVuYywKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICBmdW5jdGlvbiBnZXRGdW5jKCkgewogICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgfQoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICAgICAgc2V0OiBzZXRGdW5jCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgdW5kZWZpbmVkLCBzZXRGdW5jLCAic2V0VmVyaWZ5SGVscFByb3AiLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOw==","id":"15.2.3.6-4-99","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-99.js"}]}}