1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[88293],{5611:e=>{e.exports={screenMobileMax:"760px",screenTabletMax:"1225px",screenDesktopMin:"1226px",mediaMobile:'"max-width: 760px"',mediaMobileAndTablet:'"max-width: 1225px"',mediaTablet:'"min-width: 761px) and (max-width: 1225px"',mediaTabletAndDesktop:'"min-width: 761px"',mediaDesktop:'"min-width: 1226px"',mediaNarrowDesktop:'"(min-width: 1226px) and (max-width: 1388px)"',gridGap:"var(--grid-gap)",gridColumnsDefault:"12",contentContainer:"courseItem_contentContainer__sthbX",title:"courseItem_title__Ydexz",description:"courseItem_description__O7ikt",videoWrapper:"courseItem_videoWrapper__jWDhT",button:"courseItem_button__HURGa"}},6405:e=>{e.exports={screenMobileMax:"760px",screenTabletMax:"1225px",screenDesktopMin:"1226px",mediaMobile:'"max-width: 760px"',mediaMobileAndTablet:'"max-width: 1225px"',mediaTablet:'"min-width: 761px) and (max-width: 1225px"',mediaTabletAndDesktop:'"min-width: 761px"',mediaDesktop:'"min-width: 1226px"',mediaNarrowDesktop:'"(min-width: 1226px) and (max-width: 1388px)"',gridGap:"var(--grid-gap)",gridColumnsDefault:"12",text_default:"text_text_default__x3RTB",text_small:"text_text_small__NIyrw",text:"text_text__G8tAs"}},10435:e=>{e.exports={screenMobileMax:"760px",screenTabletMax:"1225px",screenDesktopMin:"1226px",mediaMobile:'"max-width: 760px"',mediaMobileAndTablet:'"max-width: 1225px"',mediaTablet:'"min-width: 761px) and (max-width: 1225px"',mediaTabletAndDesktop:'"min-width: 761px"',mediaDesktop:'"min-width: 1226px"',mediaNarrowDesktop:'"(min-width: 1226px) and (max-width: 1388px)"',gridGap:"var(--grid-gap)",gridColumnsDefault:"12",wrapper:"CopyToClipboard_wrapper__FmL9T",button:"CopyToClipboard_button__sId4G"}},13113:e=>{e.exports={image:"imageS3_image__XlgGw"}},24539:(e,a,t)=>{"use strict";t.d(a,{A:()=>L});var r=t(96677),o=t(39033),i=t(40464),l=t(27492),n=t.n(l),d=t(10435),s=t.n(d),_=t(17646);let c=({children:e,showCopyImage:a,className:t})=>{let[i,l]=(0,o.useState)(!1),d=e=>"string"==typeof e||"number"==typeof e?String(e):Array.isArray(e)?e.map(d).join(""):(0,o.isValidElement)(e)&&!e.props["aria-hidden"]&&e.props.children?d(e.props.children):"",c=async e=>{await navigator.clipboard.writeText(e),l(!0)},m=async()=>{let a=d(e);try{await c(a)}catch(e){try{let e=document.createElement("textarea");e.value=a,document.body.appendChild(e),e.select();try{l(document.execCommand("copy"))}finally{document.body.removeChild(e)}}catch{l(!1)}}};return(0,o.useEffect)(()=>{if(i){let e=setTimeout(()=>l(!1),3e3);return()=>clearTimeout(e)}},[i]),(0,r.jsxs)("div",{className:n()(s().wrapper),children:[(0,r.jsx)("button",{type:"button",onClick:m,className:n()(s().button,t),"aria-label":i?"Copied":"Copy code",title:i?"Copied":"Copy code",children:a&&i?(0,r.jsx)(_.KDk,{size:27}):(0,r.jsx)(_.SD3,{size:27})}),e]})};var m=t(96909),p=t.n(m);let u=(e,a)=>e.map((e,t)=>{if("string"==typeof e)return e;let{className:r,line:i}=a[e[0]];return(0,o.createElement)("span",{className:r,...void 0===i?{}:{line:i},key:t},u(e[1],a))});var x=t(74064),h=t(74258),g=t(33522),w=t(93146),b=t(22648),k=t.n(b),v=t(83113),y=t(5611),f=t.n(y),j=t(96775),A=t(27820),C=t(66374),N=t(83494),T=t(46555),M=t(17521),S=t(35825),D=t(99300);let I=k()(()=>Promise.all([t.e(88103),t.e(6573),t.e(68302),t.e(52017),t.e(30510),t.e(47003),t.e(32487),t.e(19690),t.e(85205),t.e(14739),t.e(25148)]).then(t.bind(t,25148)).then(e=>e.CustomDiv),{loadableGenerated:{webpack:()=>[25148]},ssr:!1}),P=({className:e,children:a,...t})=>(0,r.jsx)("code",{className:n()(p().inlineCode,e),...t,children:a}),$=e=>({children:a,...t})=>(0,r.jsx)(x.A,{variant:`h${e+2}`,tag:`h${e}`,className:n()("mdxHeading",t.className),...t,children:a}),L={img:e=>{let{l10n:a}=(0,h.A)(),{id:l}=(0,w.A)(),d="ru"===a,s=l.startsWith("blog"),[_,c]=(0,o.useState)(!1),[m,u]=(0,o.useState)(null),g=(0,o.useRef)(!1),b=(0,o.useRef)(null),k=(0,o.useCallback)(()=>{g.current||m||(g.current=!0,b.current=Promise.resolve().then(t.bind(t,46555)).then(({default:e})=>(u(()=>e),e)))},[m]),y=(0,o.useCallback)(()=>{m?c(!0):b.current?b.current.then(()=>{c(!0)}):Promise.resolve().then(t.bind(t,46555)).then(({default:e})=>{u(()=>e),c(!0)})},[m]),f=(0,o.useCallback)(()=>{c(!1)},[]);return s?(0,r.jsxs)(r.Fragment,{children:[m&&_&&(0,i.createPortal)((0,r.jsxs)(m,{open:_,onClose:f,noPadding:!0,children:[(0,r.jsx)("img",{src:e.src,alt:e.alt||e.title||"",sizes:"55vw",className:n()(p().modalImage)}
1),e?.title&&(0,r.jsx)(x.A,{tag:"span",variant:"extra-small",align:"center",color:"gray-50",className:p().imageTitle,children:e.title})]}),document.body),(0,r.jsx)(v.A,{src:e.src,alt:e.alt||"",width:"0",height:"0",sizes:s?"(max-width: 760px) calc(100vw - 32px), (max-width: 1225px) calc(100vw - 40px), 624px":"100vw",className:n()(p().image,{[p().imageMaxHeight]:!d}),quality:e.quality,...e,onClick:y,onMouseEnter:k,style:{cursor:"zoom-in"}}),e?.title&&(0,r.jsx)(x.A,{tag:"span",variant:"extra-small",align:"center",color:"gray-50",className:p().imageTitle,children:e.title})]}):(0,r.jsx)(v.A,{src:e.src,alt:e.alt||"",width:"0",height:"0",sizes:"100vw",className:n()(p().image,{[p().imageMaxHeight]:!d}),quality:e.quality,...e})},pre:({children:e,...a})=>{if(!o.isValidElement(e)||e.type!==P)return(0,r.jsx)("pre",{...a,children:e});let{className:t,children:i,"data-code-tokens":l}=e.props,d=l?(e=>{let[a,t]=JSON.parse(e);return u(t,a)})(l):i,s=/language-([\w-]+)/.exec(t||"")?.[1]??"text",_={py:"Python",python:"Python",js:"JavaScript",javascript:"JavaScript",ts:"TypeScript",typescript:"TypeScript",tsx:"TSX",jsx:"JSX",bash:"Bash",sh:"Shell",shell:"Shell",json:"JSON",css:"CSS",html:"HTML",markup:"HTML",sql:"SQL",text:"Plain text"}[s]||s;return(0,r.jsx)("div",{className:p().codeBlockWrapper,children:(0,r.jsxs)(c,{showCopyImage:!0,className:p().codeCopyButton,children:[(0,r.jsxs)("header",{className:p().codeHeader,"aria-hidden":"true",children:[(0,r.jsx)("span",{className:p().codeLanguageIcon,children:"</>"}),_]}),(0,r.jsx)("pre",{...a,className:n()(p().codePre,a.className),tabIndex:0,"aria-label":`${_} code`,children:(0,r.jsx)("code",{className:t,children:d})})]})})},code:P,a:({...e})=>{let{id:a}=(0,w.A)();return a.startsWith("blog")?(0,r.jsx)(g.A,{...e,target:"_blank"}):(0,r.jsx)(g.A,{...e})},h1:$(1),h2:$(2),h3:$(3),h4:$(4),h5:$(5),div:I,CourseItem:({title:e,description:a,videoLink:t})=>{let[i,l]=(0,o.useState)(!1),d=(0,o.useMemo)(()=>e.toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),[e]),{embedUrl:s,isVk:_,isRutube:c}=(0,o.useMemo)(()=>({embedUrl:(e=>{try{let a=new URL(e),{hostname:t,pathname:r}=a;if(t.includes("youtube.com")||t.includes("youtu.be")){let e=a.searchParams.get("v")||r.split("/").pop();return`https://www.youtube.com/embed/${e}?controls=1&autoplay=0`}if(t.includes("vk.com")||t.includes("vkvideo.ru")){let e=r.match(/video-?(\d+)_(\d+)/);if(e){let a=`-${e[1]}`,t=e[2];return`https://vkvideo.ru/video_ext.php?oid=${a}&id=${t}&hd=2`}}if(t.includes("rutube.ru")){let e=null,t=null,o=r.match(/\/video\/private\/([a-f0-9]+)\/?/);if(o)e=o[1],t=a.searchParams.get("p");else{let a=r.match(/\/video\/([a-f0-9]+)\/?/);a&&(e=a[1])}if(e){let a=`https://rutube.ru/play/embed/${e}/`;return t&&(a+=`?p=${t}`),a}}}catch(e){return console.error("Invalid URL for video",e),null}return e})(t),isVk:t.includes("vk.com")||t.includes("vkvideo.ru"),isRutube:t.includes("rutube.ru")}),[t]),m=(0,o.useCallback)(()=>{l(!0)},[]),p=(0,o.useCallback)(()=>{l(!1)},[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(M.A,{padding:[0,0,1],children:(0,r.jsx)(N.A,{padding:[1.5],children:(0,r.jsxs)(j.A.Container,{columns:{desktop:5,mobile:1,tablet:1},gap:3,children:[(0,r.jsx)(j.A.Item,{size:{desktop:2,mobile:1,tablet:1},alignSelf:"center",children:s&&(0,r.jsx)("div",{className:n()(f().videoWrapper,{[f().vkVideoWrapper]:_||c}),style:{cursor:"pointer"},children:(0,r.jsx)("iframe",{loading:"lazy",src:s,allow:c?"clipboard-write; autoplay":_?"encrypted-media; fullscreen; picture-in-picture; screen-wake-lock;":"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen;",allowFullScreen:!0,title:e})})}),(0,r.jsx)(j.A.Item,{size:{desktop:3,tablet:1,mobile:1},children:(0,r.jsxs)(A.A.Container,{direction:"column",className:f().contentContainer,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(x.A,{variant:"h4",tag:"h2",className:f().title,...{id:d},children:e}),a&&(0,r.jsx)(x.A,{className:f().description,children:a})]}),s&&(0,r.jsx)(A.A.Item,{children:(0,r.jsx)(C.A,{onClick:m,size:"xs",variant:"accent",className:f().button,children:"СмоÑÑеÑÑ Ð²Ð¸Ð´ÐµÐ¾"})})]})})]})})}),(0,r.jsx)(T.default,{open:i,onClose:p,width:"90vw",height:"80vh",noPadding:!0,noScroll:!0,
1children:i&&s&&(0,r.jsx)("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,right:0,bottom:0},children:(0,r.jsx)("iframe",{src:s,style:{width:"100%",height:"100%",border:"none"},allow:c?"clipboard-write; autoplay":_?"encrypted-media; fullscreen; picture-in-picture; screen-wake-lock;":"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen;",allowFullScreen:!0,title:e})})})]})},TelegramBanner:()=>(0,r.jsx)(S.A,{}),RegBanner:()=>(0,r.jsx)(D.A,{})}},35053:e=>{e.exports={screenMobileMax:"760px",screenTabletMax:"1225px",screenDesktopMin:"1226px",mediaMobile:'"max-width: 760px"',mediaMobileAndTablet:'"max-width: 1225px"',mediaTablet:'"min-width: 761px) and (max-width: 1225px"',mediaTabletAndDesktop:'"min-width: 761px"',mediaDesktop:'"min-width: 1226px"',mediaNarrowDesktop:'"(min-width: 1226px) and (max-width: 1388px)"',gridGap:"var(--grid-gap)",gridColumnsDefault:"12",selector:"jv-theme",modal:"modal_modal__6hgig",modal_visible:"modal_modal_visible__emGxY",modal__window:"modal_modal__window__9skcS",modal__window_noPadding:"modal_modal__window_noPadding__kLmtU",modal__window_noScroll:"modal_modal__window_noScroll__IpKG2","modal__window_background_gray-10":"modal_modal__window_background_gray-10__q97kg","modal__window_background_gray-15":"modal_modal__window_background_gray-15__S7d3h","modal__window_background_gray-25":"modal_modal__window_background_gray-25__mPnSM","modal__window_background_gray-35":"modal_modal__window_background_gray-35__UyGtC","modal__window_background_gray-50":"modal_modal__window_background_gray-50__Y8wlI","modal__window_background_gray-60":"modal_modal__window_background_gray-60__phwk9","modal__window_background_gray-75":"modal_modal__window_background_gray-75__qohIq","modal__window_background_gray-85":"modal_modal__window_background_gray-85__SXNqH","modal__window_background_gray-90":"modal_modal__window_background_gray-90__J4JG1",modal__window_background_white:"modal_modal__window_background_white__odOPm",modal__window_background_black:"modal_modal__window_background_black__QVxVI","modal__window_background_green-1":"modal_modal__window_background_green-1__hPeFG","modal__window_background_green-2":"modal_modal__window_background_green-2__kCur9",modal__window_background_blue:"modal_modal__window_background_blue__ZEHsJ",modal__window_background_orange:"modal_modal__window_background_orange__TWvS9",modal__window_background_none:"modal_modal__window_background_none__wN5bK",modal__title:"modal_modal__title__1oNsv",modal__close:"modal_modal__close__J9N_S"}},35825:(e,a,t)=>{"use strict";t.d(a,{A:()=>_});var r=t(96677);t(39033);var o=t(33522),i=t(88443),l=t(47333),n=t(74258),d=t(67392),s=t(66868);let _=()=>{let e=(0,l.A)(),a=(0,n.A)(),t=(0,d.getImageBaseUrl)(a),_="mobile"===e?`${t}/tg-banner-mobile.webp`:`${t}/tg-banner.webp`;return(0,r.jsx)(o.A,{href:"https://t.me/jivosite",target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,s.Vp)("reachGoal","telegram-banner"),children:(0,r.jsx)(i.A,{src:_,alt:"ÐодпиÑиÑеÑÑ Ð½Ð° Telegram-канал Jivo",width:"0",height:"0",sizes:"100vw",style:{width:"100%",height:"auto",borderRadius:"8px"}})})}},46555:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>c});var r=t(96677),o=t(39033),i=t(35053),l=t.n(i),n=t(27492),d=t.n(n),s=t(74064),_=t(17646);let c=e=>{let{children:a,title:t,open:i=!1,noPadding:n=!1,noScroll:c=!1,width:m=null,height:p=null,background:u="white",onClose:x,...h}=e,[g,w]=(0,o.useState)(i),b=(0,o.useRef)(null),k=(0,o.useCallback)(()=>{w(!1),x?.()},[x]);return(0,o.useEffect)(()=>{w(i)},[i]),(0,o.useEffect)(()=>{if(!g)return;let e=e=>{b.current&&!b.current.contains(e.target)&&k()},a=e=>{"Escape"===e.key&&k()};return document.addEventListener("mousedown",e,{passive:!0}),document.addEventListener("keydown",a,{passive:!0}),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",a)}},[g,k]),(0,r.jsx)("div",{...h,className:d()(l().modal,{[l().modal_visible]:g}),children:(0,r.jsxs)("div",{className:d()(l().modal__window,l()[`modal__window_background_${u}`],{[l().modal__window_noPadding]:n,[l().modal__window_noScroll]:c}),style:m||p?{width:m??void 0,height:p??void 0}:void 0,ref:b,role:"dialog","aria-modal":"true",children:[(0,r.jsx)("button",{type:"button",className:d()(l().modal__close),onClick:k,"aria-label":"Close modal",children:(0,r.jsx)(_.lr4,{size:"1.3em"})}),t&&(0,r.jsx)(s.A,{variant:"h4",className:d()(l().modal__title),children:t}),(0,r.jsx)("div",{className:d()(l().modal__inner),children:a})]})})}},83113:(e,a,t)=>{"use strict";t.d(a,{A:()=>h});var r=t(96677),o=t(14868),i=t.n(o),l=t(74258),n=t(67392),d=t(27492),s=t.n(d),_=t
1(13113),c=t.n(_);let m="x-image-process",p=(e,a)=>{if(/^https?:\/\//i.test(e))return e;let t=a.replace(/\/$/,""),r=e.replace(/^\//,"");return`${t}/${r}`},u=e=>{let a=e.split("?")[0].match(/\.([^.]+)$/);return a?a[1].toLowerCase():""},x=e=>{let a=u(e);return"svg"===a||"gif"===a},h=({src:e,className:a,sizes:t="100vw",quality:o=85,format:d="auto",progressive:_=!0,sharpen:h=!0,autoOrient:g=!0,antiAlias:w=!0,cdnHost:b,processParamKey:k=m,...v})=>{let y=(0,l.A)(),f=b??(0,n.getImageBaseUrl)(y),j=p(e,f),A=s()(c().image,a);if(x(e))return(0,r.jsx)(i(),{...v,src:j,className:A,unoptimized:"gif"===u(e)});let C=({src:e,width:a,quality:t})=>{let r=p(e,f);return x(e)?r:((e,a,t,r,o,i,l,n,d)=>{let s=[];if(l&&s.push("auto-orient,1"),s.push(`resize,m_lfit,w_${a}`),!1!==i){let e="number"==typeof i?Math.min(399,Math.max(50,Math.round(i))):100;s.push(`sharpen,${e}`)}s.push(`format,${r}`),"jpg"===r&&(s.push(`quality,Q_${t}`),o&&s.push("interlace,1"),s.push("imageslim")),n&&s.push("marker,u_plus");let _=`image/${s.join("/")}`,c=new URL(e);return c.searchParams.set(d,_),c.toString()})(r,a,t??o,"auto"===d?"webp":d,_,h,g,w,k)};return(0,r.jsx)(i(),{...v,src:j,className:A,sizes:t,quality:o,loader:C})}},91423:(e,a,t)=>{"use strict";t.d(a,{A:()=>d});var r=t(96677),o=t(27492),i=t.n(o),l=t(6405),n=t.n(l);let d=({variant:e="small",className:a=null,children:t})=>{let o=i()(n().text,n()[`text_${e}`],a);return(0,r.jsx)("div",{className:o,children:t})}},96909:e=>{e.exports={screenMobileMax:"760px",screenTabletMax:"1225px",screenDesktopMin:"1226px",mediaMobile:'"max-width: 760px"',mediaMobileAndTablet:'"max-width: 1225px"',mediaTablet:'"min-width: 761px) and (max-width: 1225px"',mediaTabletAndDesktop:'"min-width: 761px"',mediaDesktop:'"min-width: 1226px"',mediaNarrowDesktop:'"(min-width: 1226px) and (max-width: 1388px)"',gridGap:"var(--grid-gap)",gridColumnsDefault:"12",image:"mdx_image__ApD9K",modalImage:"mdx_modalImage__3Sus_",imageMaxHeight:"mdx_imageMaxHeight__qXxzB",codeBlockWrapper:"mdx_codeBlockWrapper__ABWK9",codeHeader:"mdx_codeHeader__0a8A4",codeLanguageIcon:"mdx_codeLanguageIcon__K8pRa",codeCopyButton:"mdx_codeCopyButton__4R50A",codePre:"mdx_codePre___2By0",inlineCode:"mdx_inlineCode__VYQb9",copyContainer:"mdx_copyContainer__uDGJ7",faqTitle:"mdx_faqTitle__jcSmp",blockquoteAuthorText:"mdx_blockquoteAuthorText__sZZFX",formTextItem:"mdx_formTextItem__fgZrS","color-container":"mdx_color-container__FJz13","color-container_transparent":"mdx_color-container_transparent__VfDgA","color-container_green":"mdx_color-container_green__7Nv9i","color-container_acid":"mdx_color-container_acid__OSVIy","color-container_blue":"mdx_color-container_blue__Y_PFm","color-container_yellow":"mdx_color-container_yellow__dFJPJ","color-container__title":"mdx_color-container__title__MO80h","color-container__content":"mdx_color-container__content__8Ecs3",testimonialAuthorPhoto:"mdx_testimonialAuthorPhoto__m8f5V",articleLinkImage:"mdx_articleLinkImage__wRb__",articleLinkContent:"mdx_articleLinkContent__3M8wQ",imageTitle:"mdx_imageTitle__Xrv_8",dividerSvg:"mdx_dividerSvg__IsEOn"}},99300:(e,a,t)=>{"use strict";t.d(a,{A:()=>d});var r=t(96677);t(39033);var o=t(22492),i=t(88443),l=t(47333),n=t(66868);let d=()=>{let e=(0,l.A)();return(0,r.jsx)("div",{style:{display:"block",margin:"24px 0"},children:(0,r.jsx)(o.A,{reg:!0,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,n.Vp)("reachGoal","reg-banner"),children:(0,r.jsx)(i.A,{src:`${"mobile"===e?"/images/pages/blog/reg-banner-mobile.webp":"/images/pages/blog/reg-banner.webp"}?v1`,alt:"ÐаÑегиÑÑÑиÑоваÑÑÑÑ Ð² Jivo",width:"0",height:"0",sizes:"100vw",style:{width:"100%",height:"auto",borderRadius:"8px"}})})})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.