{"id":8189,"date":"2026-01-06T01:44:34","date_gmt":"2026-01-05T22:44:34","guid":{"rendered":"https:\/\/1.cbm.ua\/?p=8189"},"modified":"2026-01-07T20:19:14","modified_gmt":"2026-01-07T17:19:14","slug":"%f0%9f%93%9cjs-%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82-%d0%b4%d0%bb%d1%8f-%d0%b1%d1%8b%d1%81%d1%82%d1%80%d0%be%d0%b3%d0%be-%d1%81%d0%b2%d0%b0%d1%80%d0%b0%d1%87%d0%b8%d0%b2%d0%b0%d0%bd%d0%b8%d1%8f-2","status":"publish","type":"post","link":"https:\/\/1.cbm.ua\/?p=8189","title":{"rendered":"_new \ud83d\udcdcJS \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0441\u0432\u0430\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043c\u0435\u0436\u0434\u0443 \u043d\u0435\u043a\u0438\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438.  \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e."},"content":{"rendered":"\n<p><a href=\"https:\/\/claude.ai\/chat\/c2056fb3-6b05-431b-9607-3fec40cf848a\">https:\/\/claude.ai\/chat\/c2056fb3-6b05-431b-9607-3fec40cf848a<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u0412\u0430\u0440\u0438\u0430\u043d\u0442 \u0441\u0432\u0430\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u21162<\/p>\n\n\n\n<p>!&#8212; li \u041d\u0430\u0447\u0430\u043b\u043e \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 &#8212;!<\/p>\n\n\n\n<p>\u042d\u0442\u0430 \u0447\u0430\u0441\u0442\u044c \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u044c\u0441\u044f.<\/p>\n\n\n\n<p>!&#8212; li \u041a\u043e\u043d\u0435\u0446 \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 &#8212;!<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>!&#8212; li \u041d\u0430\u0447\u0430\u043b\u043e \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 &#8212;!<\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-nv-c-2-color\">Read Replicas<\/mark> (\u0420\u0435\u043f\u043b\u0438\u043a\u0438 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435):<\/strong>&nbsp;<span style=\"text-decoration: underline;\">\u0421\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u043a\u043e\u043f\u0438\u0438 \u0411\u0414. \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 (Master) \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0438, \u0430 \u0440\u0435\u043f\u043b\u0438\u043a\u0438 (Slaves) \u043e\u0442\u0434\u0430\u044e\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0447\u0442\u0435\u043d\u0438\u0439 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u044d\u0442\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u0443.<\/span><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-nv-c-2-color\">\u041a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/mark>:<\/strong>&nbsp;\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Redis \u0438\u043b\u0438 Memcached \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0442\u044f\u0436\u0435\u043b\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.\n<ul class=\"wp-block-list\">\n<li>!&#8212; li \u041d\u0430\u0447\u0430\u043b\u043e \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 &#8212;!\n<ul class=\"wp-block-list\">\n<li><strong>\u0422\u044f\u0436\u0451\u043b\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b<\/strong> \u2014 \u044d\u0442\u043e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438: \u0441\u043b\u043e\u0436\u043d\u044b\u0435 SQL-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043a \u0411\u0414, \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f, \u0430\u0433\u0440\u0435\u0433\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u0432\u044b\u0437\u043e\u0432\u044b \u0432\u043d\u0435\u0448\u043d\u0438\u0445 API \u0438 \u0442.\u0434. \u041f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0442\u0430\u043a\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. <strong>\u041a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/strong> \u2014 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u044d\u0442\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0431\u044b\u0441\u0442\u0440\u043e\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 (\u043a\u044d\u0448\u0435). \u041f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043a\u044d\u0448: \u0435\u0441\u043b\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0442\u0430\u043c \u0435\u0441\u0442\u044c \u0438 \u0430\u043a\u0442\u0443\u0430\u043b\u0435\u043d \u2014 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0435\u0433\u043e \u0441\u0440\u0430\u0437\u0443, \u0431\u0435\u0437 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u044f\u0436\u0451\u043b\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. <strong>Redis<\/strong> \u0438 <strong>Memcached<\/strong> \u2014 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 in-memory (\u0432 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438) \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f:\n<ul class=\"wp-block-list\">\n<li>\u0414\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 RAM, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043d\u0438\u043c \u0432 \u0434\u0435\u0441\u044f\u0442\u043a\u0438-\u0441\u043e\u0442\u043d\u0438 \u0440\u0430\u0437 \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0447\u0435\u043c \u043a \u0434\u0438\u0441\u043a\u0443 \u0438\u043b\u0438 \u0411\u0414.<\/li>\n\n\n\n<li>\u041e\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043a\u0430\u043a \u043a\u043b\u044e\u0447-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u043a\u043b\u044e\u0447 \u2014 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0445\u044d\u0448 \u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432), \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u2014 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 (JSON, \u0441\u0442\u0440\u043e\u043a\u0430, \u043e\u0431\u044a\u0435\u043a\u0442).<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u0445\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u043e:\n<ul class=\"wp-block-list\">\n<li>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/li>\n\n\n\n<li>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043a\u044d\u0448 (Redis\/Memcached) \u043f\u043e \u043a\u043b\u044e\u0447\u0443.<\/li>\n\n\n\n<li>\u0415\u0441\u043b\u0438 hit (\u0435\u0441\u0442\u044c \u0432 \u043a\u044d\u0448\u0435) \u2014 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e.<\/li>\n\n\n\n<li>\u0415\u0441\u043b\u0438 miss (\u043d\u0435\u0442) \u2014 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0442\u044f\u0436\u0451\u043b\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u043a\u044d\u0448 \u0441 TTL (\u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0436\u0438\u0437\u043d\u0438, \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0430\u043b\u0438), \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>!&#8212; li \u041a\u043e\u043d\u0435\u0446 \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 &#8212;!<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u0428\u0430\u0440\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (Sharding):<\/strong>&nbsp;\u0420\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0431\u0430\u0437\u0430\u043c (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0438\u0437 \u0415\u0432\u0440\u043e\u043f\u044b \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0438\u0437 \u0410\u0437\u0438\u0438 \u2014 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c).<\/li>\n<\/ul>\n\n\n\n<p>!&#8212; li \u041a\u043e\u043d\u0435\u0446 \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 &#8212;!<\/p>\n\n\n\n<script>\n\/\/ \u0421\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0431\u043b\u043e\u043a\u043e\u0432\ndocument.addEventListener('DOMContentLoaded', function() {\n    \/\/ ====== \u041c\u0410\u0420\u041a\u0415\u0420\u042b \u0414\u041b\u042f \u041f\u041e\u0418\u0421\u041a\u0410 ======\n    const MARKER_START = '!\u2014 li \u041d\u0430\u0447\u0430\u043b\u043e \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 \u2014!';\n    const MARKER_END = '!\u2014 li \u041a\u043e\u043d\u0435\u0446 \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 \u2014!';\n    \n    \/\/ ====== \u041d\u0410\u0421\u0422\u0420\u041e\u0419\u041a\u0418 \u0422\u0415\u041a\u0421\u0422\u0410 ======\n    const TEXT_EXPAND = '\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u044c \u0434\u0435\u0442\u0430\u043b\u0438';\n    const TEXT_COLLAPSE = '\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0447\u0442\u043e\u0431\u044b \u0441\u0432\u0435\u0440\u043d\u0443\u0442\u044c';\n    const TEXT_ERROR = '\u26a0\ufe0f \u041e\u0428\u0418\u0411\u041a\u0410: \u041d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u0431\u043b\u043e\u043a';\n    const ARROW_COLLAPSED = '\u25b6';\n    const ARROW_EXPANDED = '\u25bc';\n    \n    \/\/ ====== \u041d\u0410\u0421\u0422\u0420\u041e\u0419\u041a\u0418 \u0421\u0422\u0418\u041b\u0415\u0419 ======\n    const STYLE_BUTTON_BG = '#f0f0f0';\n    const STYLE_BUTTON_BORDER = '#ccc';\n    const STYLE_BUTTON_PADDING = '10px';\n    const STYLE_CONTENT_BORDER = '#ddd';\n    const STYLE_CONTENT_PADDING = '10px';\n    const STYLE_ERROR_COLOR = 'red';\n    \n    console.log('=== \u0421\u041a\u0420\u0418\u041f\u0422 \u0417\u0410\u041f\u0423\u0429\u0415\u041d ===');\n    \n    \/\/ \u0421\u041d\u0410\u0427\u0410\u041b\u0410 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u0441\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0443\u0437\u043b\u044b \u0441 \u043c\u0430\u0440\u043a\u0435\u0440\u0430\u043c\u0438\n    const walker = document.createTreeWalker(\n        document.querySelector('.nv-content-wrap'),\n        NodeFilter.SHOW_TEXT,\n        null,\n        false\n    );\n    \n    const startNodes = [];\n    const endNodes = [];\n    \n    let node;\n    while (node = walker.nextNode()) {\n        const text = node.textContent.trim();\n        if (text === MARKER_START) {\n            console.log('\u041d\u0430\u0439\u0434\u0435\u043d \u041d\u0410\u0427\u0410\u041b\u042c\u041d\u042b\u0419 \u043c\u0430\u0440\u043a\u0435\u0440 \u0432:', node.parentNode.tagName);\n            startNodes.push(node);\n        } else if (text === MARKER_END) {\n            console.log('\u041d\u0430\u0439\u0434\u0435\u043d \u041a\u041e\u041d\u0415\u0427\u041d\u042b\u0419 \u043c\u0430\u0440\u043a\u0435\u0440 \u0432:', node.parentNode.tagName);\n            endNodes.push(node);\n        }\n    }\n    \n    console.log('\u0412\u0441\u0435\u0433\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u0432:', startNodes.length);\n    console.log('\u0412\u0441\u0435\u0433\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0445 \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u0432:', endNodes.length);\n    \n    \/\/ \u0422\u0415\u041f\u0415\u0420\u042c \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438\u0445 \u0432 span'\u044b\n    function wrapTextNodeInSpan(textNode, markerText, className) {\n        const span = document.createElement('span');\n        span.className = className;\n        span.textContent = markerText;\n        span.style.display = 'block';\n        span.setAttribute('data-marker', 'true');\n        textNode.parentNode.replaceChild(span, textNode);\n        return span;\n    }\n    \n    const startMarkers = startNodes.map(node => wrapTextNodeInSpan(node, MARKER_START, 'collapse-marker-start'));\n    const endMarkers = endNodes.map(node => wrapTextNodeInSpan(node, MARKER_END, 'collapse-marker-end'));\n    \n    console.log('\u041e\u0431\u0451\u0440\u043d\u0443\u0442\u043e \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u0432:', startMarkers.length);\n    console.log('\u041e\u0431\u0451\u0440\u043d\u0443\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0445 \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u0432:', endMarkers.length);\n    \n    \/\/ \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u0430 \u0432\u0441\u0435\u0445 \u0443\u0437\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043c\u0430\u0440\u043a\u0435\u0440\u0430\u043c\u0438\n    function collectNodesBetween(startMarker, endMarker) {\n        const nodes = [];\n        let current = startMarker;\n        \n        \/\/ \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0443\u0437\u043b\u0430 \u0432 \u0434\u0435\u0440\u0435\u0432\u0435 DOM\n        function getNextNode(node) {\n            \/\/ \u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0434\u0435\u0442\u0438 - \u0431\u0435\u0440\u0451\u043c \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0440\u0435\u0431\u0451\u043d\u043a\u0430\n            if (node.firstChild) {\n                return node.firstChild;\n            }\n            \n            \/\/ \u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u043e\u0441\u0435\u0434 - \u0431\u0435\u0440\u0451\u043c \u0435\u0433\u043e\n            if (node.nextSibling) {\n                return node.nextSibling;\n            }\n            \n            \/\/ \u041f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c\u0441\u044f \u0432\u0432\u0435\u0440\u0445 \u0438 \u0438\u0449\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0441\u043e\u0441\u0435\u0434\u0430 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f\n            let parent = node.parentNode;\n            while (parent) {\n                if (parent.nextSibling) {\n                    return parent.nextSibling;\n                }\n                parent = parent.parentNode;\n            }\n            \n            return null;\n        }\n        \n        current = getNextNode(current);\n        \n        while (current && current !== endMarker) {\n            \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043b\u0438 \u0443\u0437\u0435\u043b \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u043c\u0430\u0440\u043a\u0435\u0440\n            if (current.nodeType === Node.ELEMENT_NODE) {\n                if (current.classList && current.classList.contains('collapse-marker-end')) {\n                    break;\n                }\n                if (current.querySelector('.collapse-marker-end')) {\n                    \/\/ \u0412\u043d\u0443\u0442\u0440\u0438 \u0435\u0441\u0442\u044c \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u043c\u0430\u0440\u043a\u0435\u0440 - \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e \u043d\u0435\u0433\u043e\n                    const childNodes = Array.from(current.childNodes);\n                    for (let child of childNodes) {\n                        if (child === endMarker || \n                            (child.classList && child.classList.contains('collapse-marker-end'))) {\n                            break;\n                        }\n                        nodes.push(child);\n                    }\n                    break;\n                }\n                nodes.push(current);\n            }\n            \n            current = getNextNode(current);\n        }\n        \n        return nodes;\n    }\n    \n    startMarkers.forEach((startMarker, index) => {\n        console.log(`\\n=== \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043c\u0430\u0440\u043a\u0435\u0440\u0430 #${index + 1} ===`);\n        \n        \/\/ \u041d\u0430\u0445\u043e\u0434\u0438\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u043c\u0430\u0440\u043a\u0435\u0440\n        const endMarker = endMarkers[index];\n        \n        if (!endMarker) {\n            startMarker.style.color = STYLE_ERROR_COLOR;\n            startMarker.style.fontWeight = 'bold';\n            startMarker.textContent = TEXT_ERROR;\n            console.error('\u041e\u0428\u0418\u0411\u041a\u0410: \u041a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u043c\u0430\u0440\u043a\u0435\u0440 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d!');\n            return;\n        }\n        \n        console.log('\u041a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u043c\u0430\u0440\u043a\u0435\u0440 \u043d\u0430\u0439\u0434\u0435\u043d');\n        \n        \/\/ \u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0443\u0437\u043b\u044b \u043c\u0435\u0436\u0434\u0443 \u043c\u0430\u0440\u043a\u0435\u0440\u0430\u043c\u0438\n        const contentNodes = collectNodesBetween(startMarker, endMarker);\n        console.log('\u0421\u043e\u0431\u0440\u0430\u043d\u043e \u0443\u0437\u043b\u043e\u0432:', contentNodes.length);\n        \n        \/\/ \u0421\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043c\u0430\u0440\u043a\u0435\u0440\u044b\n        startMarker.style.display = 'none';\n        endMarker.style.display = 'none';\n        \n        \/\/ \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u0431\u0451\u0440\u0442\u043a\u0443\n        const wrapper = document.createElement('div');\n        wrapper.className = 'details-wrapper';\n        wrapper.style.margin = '15px 0';\n        \n        \/\/ \u041a\u043d\u043e\u043f\u043a\u0430\n        const toggleButton = document.createElement('div');\n        toggleButton.className = 'details-toggle';\n        toggleButton.innerHTML = `<span class=\"details-arrow\">${ARROW_COLLAPSED}<\/span> <span class=\"details-title\">${TEXT_EXPAND}<\/span>`;\n        toggleButton.style.cursor = 'pointer';\n        toggleButton.style.padding = STYLE_BUTTON_PADDING;\n        toggleButton.style.backgroundColor = STYLE_BUTTON_BG;\n        toggleButton.style.border = `1px solid ${STYLE_BUTTON_BORDER}`;\n        toggleButton.style.borderRadius = '4px';\n        toggleButton.style.marginBottom = '5px';\n        toggleButton.style.userSelect = 'none';\n        \n        \/\/ \u041a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430\n        const contentContainer = document.createElement('div');\n        contentContainer.className = 'details-content';\n        contentContainer.style.display = 'none';\n        contentContainer.style.padding = STYLE_CONTENT_PADDING;\n        contentContainer.style.border = `1px solid ${STYLE_CONTENT_BORDER}`;\n        contentContainer.style.borderTop = 'none';\n        contentContainer.style.borderRadius = '0 0 4px 4px';\n        \n        \/\/ \u041f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u043d\u0442\n        contentNodes.forEach(node => {\n            contentContainer.appendChild(node);\n        });\n        \n        \/\/ \u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c wrapper\n        startMarker.parentNode.insertBefore(wrapper, startMarker.nextSibling);\n        wrapper.appendChild(toggleButton);\n        wrapper.appendChild(contentContainer);\n        \n        console.log('\u0421\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u0431\u043b\u043e\u043a \u0441\u043e\u0437\u0434\u0430\u043d \u0443\u0441\u043f\u0435\u0448\u043d\u043e!');\n        \n        \/\/ \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043a\u043b\u0438\u043a\u0430\n        toggleButton.addEventListener('click', function() {\n            const isHidden = contentContainer.style.display === 'none';\n            const arrow = toggleButton.querySelector('.details-arrow');\n            const title = toggleButton.querySelector('.details-title');\n            \n            if (isHidden) {\n                contentContainer.style.display = 'block';\n                arrow.textContent = ARROW_EXPANDED;\n                title.textContent = TEXT_COLLAPSE;\n            } else {\n                contentContainer.style.display = 'none';\n                arrow.textContent = ARROW_COLLAPSED;\n                title.textContent = TEXT_EXPAND;\n            }\n        });\n    });\n    \n    console.log('\\n=== \u0421\u041a\u0420\u0418\u041f\u0422 \u0417\u0410\u0412\u0415\u0420\u0428\u0401\u041d ===');\n});\n<\/script>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/claude.ai\/chat\/c2056fb3-6b05-431b-9607-3fec40cf848a \u0412\u0430\u0440\u0438\u0430\u043d\u0442 \u0441\u0432\u0430\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u21162 !&#8212; li \u041d\u0430\u0447\u0430\u043b\u043e \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 &#8212;! \u042d\u0442\u0430 \u0447\u0430\u0441\u0442\u044c \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u044c\u0441\u044f. !&#8212; li \u041a\u043e\u043d\u0435\u0446 \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 &#8212;! !&#8212; li \u041d\u0430\u0447\u0430\u043b\u043e \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 &#8212;! Read Replicas (\u0420\u0435\u043f\u043b\u0438\u043a\u0438 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435):&nbsp;\u0421\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u043a\u043e\u043f\u0438\u0438 \u0411\u0414. \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 (Master) \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0438, \u0430 \u0440\u0435\u043f\u043b\u0438\u043a\u0438 (Slaves) \u043e\u0442\u0434\u0430\u044e\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0447\u0442\u0435\u043d\u0438\u0439 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u044d\u0442\u043e \u0441\u0438\u043b\u044c\u043d\u043e&hellip;&nbsp;<a href=\"https:\/\/1.cbm.ua\/?p=8189\" rel=\"bookmark\">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 &raquo;<span class=\"screen-reader-text\">_new \ud83d\udcdcJS \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0441\u0432\u0430\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043c\u0435\u0436\u0434\u0443 \u043d\u0435\u043a\u0438\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438.  \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e.<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[184],"tags":[],"class_list":["post-8189","post","type-post","status-publish","format-standard","hentry","category--script"],"_links":{"self":[{"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/posts\/8189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8189"}],"version-history":[{"count":23,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/posts\/8189\/revisions"}],"predecessor-version":[{"id":8216,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/posts\/8189\/revisions\/8216"}],"wp:attachment":[{"href":"https:\/\/1.cbm.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}