1(window.webpackJsonp=window.webpackJsonp||[]).push([[4],[,,,,,,,,,,,,function(t,e,n){"use strict";var i=n(7),r=n.n(i);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){r()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}e.a={data:function(){return{hoverData:{}}},methods:{enter:function(t){this.hoverData=s(s({},this.hoverData),{},r()({},t,!0))},leave:function(t){this.hoverData=s(s({},this.hoverData),{},r()({},t,!1))},hover:function(t,e){switch(t.type){case"mouseenter":this.enter(e);break;case"mouseleave":this.leave(e)}},isHover:function(t){return!!this.hoverData[t]}}}},,,,,,function(t,e,n){"use strict";e.a={computed:{mediaBreakpoints:function(){var t=this.$goharu.config.adaptive;return[t.desktop,t.laptop,t.tablet,t.phone]}},methods:{mediaOnly:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.indexOf(this.$mq)>=0},mediaLower:function(t){var e=this.mediaBreakpoints.indexOf(t),n=this.mediaBreakpoints.indexOf(this.$mq);if(e<0||n<0)throw new Error("no media query found");return n>=e},mediaGreater:function(t){var e=this.mediaBreakpoints.indexOf(t),n=this.mediaBreakpoints.indexOf(this.$mq);if(e<0||n<0)throw new Error("no media query found");return n<=e},mediaTablet:function(){return this.$mq===this.$goharu.config.adaptive.tablet},mediaPhone:function(){return this.$mq===this.$goharu.config.adaptive.phone},mediaLaptop:function(){return this.$mq===this.$goharu.config.adaptive.laptop},mediaDesktop:function(){return this.$mq===this.$goharu.config.adaptive.desktop}}}},,function(t,e,n){"use strict";e.a={methods:{metrikaReachGoal:function(t){window.ym&&ym(20608438,"reachGoal",t)}}}},function(t,e,n){"use strict";var i=n(7),r=n.n(i),a=(n(556),{name:"index",props:{size:{type:String,default:"large"},type:{type:String,default:"neutral"},disabled:{type:Boolean,default:!1}},computed:{classList:function(){return r()(r()({"form-button--disabled":this.disabled},"form-button--type_"+this.type,!0),"form-button--size_"+this.size,!0)}},methods:{click:function(t){this.$emit("click",t)},isActiveListener:function(t){return!(!this.$listeners[t]||this.disabled)||null}}}),s=n(0),o=Object(s.a)(a,function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"form-button",class:this.classList,on:this._d({},[this.isActiveListener("click")&&"click",this.click])},[this._t("default")],2)},[],!1,null,null,null);e.a=o.exports},,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var i={};n.r(i),n.d(i,"twitch",function(){return T}),n.d(i,"youtube",function(){return R});var r={};n.r(r),n.d(r,"desktop",function(){return B}),n.d(r,"laptop",function(){return U}),n.d(r,"tablet",function(){return Z}),n.d(r,"phone",function(){return q}),n.d(r,"breakpoints",function(){return N});var a={};n.r(a),n.d(a,"url",function(){return F}),n.d(a,"mimes",function(){return z}),n.d(a,"sizes",function(){return W});var s=n(5),o=n.n(s),l=n(137),c=n(4),u=n.n(c),d=n(7),h=n.n(d),p=n(8),m=n.n(p),f=n(9),v=n.n(f),g=function(){return v()(function t(){m()(this,t),this.events={}},[{key:"$on",value:function(t,e){var n=this;return e?(this.events[t]||(this.events[t]=[]),-1===this.events[t].indexOf(e)&&this.events[t].push(e),function(){n.remove(t,e)}):null}},{key:"$off",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.events[t]){var n=this.events[t].indexOf(e);for(var i in n>=0&&this.events[t].splice(n,1),this.events[t])return;delete this.events[t]}}},{key:"$emit",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.events[t]&&this.events[t].forEach(function(t){return t.apply(void 0,n)})}}])}(),_=n(11),y=n.n(_),b="goharu_token",C=function(){return localStorage.getItem(b)||null},w=function(){return v()(function t(e){m()(this,t),this.app=e,this.cache={}},[{key:"attempt",value:function(){var t=this,e=new URL(this.app.$route["auth.login"]);e.searchParams.append("domain",location.hostname);var n=this.popup(e.toString()),i=setInterval(function(){n.closed&&(clearInterval(i),t.app.$emit("app.auth:attempt"))},200);return n}},{key:"logout",value:function(){localStorage.removeItem(b),this.app.$emit("app.auth:logout")}},{key:"popup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:600,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:600,i=void 0!==window.screenLeft?window.screenLeft:window.screenX,r=void 0!==window.screenTop?window.screenTop:window.screenY,a=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,s=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height,o=a/window.screen.availWi
1dth,l=(a-e)/2/o+i,c=(s-n)/2/o+r-100,u=e/o<e?e:e/o,d=n/o<n?n:n/o;return window.open(t,"Authorization","width=".concat(u,", height=").concat(d,", top=").concat(c,", left=").concat(l,", scrollbars=no"))}},{key:"user",value:function(){try{var t=C();if(!t)throw new Error;var e=JSON.parse(atob(t.split(".")[1]));return Date.now()>=1e3*e.exp?null:e.user}catch(t){return null}}},{key:"noAds",value:function(){return this.user()&&this.user().no_ads}},{key:"axios",value:function(){var t=C(),e=t||"axios";return this.cache[e]||(this.cache[e]=y.a.create({headers:t?{Authorization:"Bearer "+t}:{}})),this.cache[e]}}])}(),x=function(t){localStorage.setItem("app.theme.v2",t)},L=function(){return localStorage.getItem("app.theme.v2")||"light"},k=function(t){document.documentElement.setAttribute("theme",t)},$=function(){return v()(function t(e){var n=this;m()(this,t),this.app=e,this.app.$on("app:created",function(){n.track()})},[{key:"track",value:function(){k(L())}},{key:"dark",value:function(){x("dark"),k("dark"),this.app.$emit("app.theme:change")}},{key:"light",value:function(){x("light"),k("light"),this.app.$emit("app.theme:change")}},{key:"current",value:function(){return L()}},{key:"isDark",value:function(){return"dark"===this.current()}},{key:"toggle",value:function(){this[this.isDark()?"light":"dark"]()}}])}(),O=n(17),E=n.n(O),M=n(75),j=function(t){var e=document.createElement("style");e.type="text/css";var n=[];for(var i in t){var r=t[i];for(var a in n.push("".concat(i," {\n")),r){var s=r[a];n.push("".concat(a,": ").concat(s,"\n"))}n.push("}")}return e.innerHTML=n.join("\n"),document.head.append(e),[e,function(){e&&e.remove&&e.parentNode&&e.remove()}]},P=function(){return v()(function t(e){var n=this;m()(this,t),this.app=e,this.app.$on("app:created",function(){n.track()});var i=Object(M.a)(),r=E()(i,1);this.useBrandingEffect=r[0]},[{key:"track",value:function(){var t=function(){try{return JSON.parse(localStorage.getItem("app.branding"))}catch(t){}return null}(),e=t&&t.expire&&t.expire>=(new Date).getTime();this.useBrandingEffect(function(){if(e){var t=j({":root":{"--layout-body-offset":"200px"}}),n=E()(t,2),i=(n[0],n[1]);return function(){i&&i()}}},[e])}},{key:"update",value:function(){var t;t={expire:(new Date).getTime()+36e4},localStorage.setItem("app.branding",JSON.stringify(t)),this.track()}}])}(),S=n(3),I=n.n(S);function V(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function D(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?V(Object(n),!0).forEach(function(e){h()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var A=function(){return v()(function t(e){m()(this,t),this.app=e,this.state={width:null,list:[],uid:1};var n=Object(M.a)(),i=E()(n,1);this.useTrackEffect=i[0]},[{key:"list",set:function(t){var e=this;this.state.list=t;var n=[function(){return e.track()},function(){return e.app.$emit("app.layer:change",t)}];(t.length?n:n.reverse()).forEach(function(t){return t()})}},{key:"useWidth",value:function(t){this.state.width=t,this.track()}},{key:"track",value:function(){var t=this;this.useTrackEffect(function(){if(t.state.list.length>0){var e=null!==t.state.width?j({":root":{"--visible-width":t.state.width}}):[null,null],n=E()(e,2),i=(n[0],n[1]);document.body.style.overflow="hidden";var r=function(e){"Escape"===e.key&&t.close()};return document.addEventListener("keydown",r),function(){document.body.style.overflow="visible",i&&i(),document.removeEventListener("keydown",r)}}},[this.state.list.length>0,this.state.width])}},{key:"open",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=this.state.uid++,a={},s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=D(D({},e.props||{}),{},{layer:a});return[t,D(D({},e),{},{key:"layer-".concat(r),props:i}),n]},o=s(t,n,i);return a.isOpened=function(){return e.state.list.indexOf(o)>=0},a.close=function(){e.list=function(t,e){var n=t.indexOf(e);if(n>=0){var i=I()(t);return i.splice(n,1),i}return t}(e.state.list,o)},a.replace=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=I()(e.state.list),a=r.indexOf(o);a<0||(r[a]=s(t,n,i),o=r[a],e.list=r)},this.list=[].concat(I()(this.state.list),[o]),a}},{key:"close",value:function(){if(this.state.list.length){var t=I()(this.state.list),e=t[t.length-1]&&t[t.length-1][1]&&t[t.length-1][1].on&&t[t.length-1][1].on.close;e&&"function"==typeof e?e():(t.splice(t.length-1,1),this.list=t)}}},{key:"closeAll",value:function(){this.list=[]}}])}(),H=n(97),T={url:"https://www.twitch.tv/gohamedia"},R={url:"https://www.youtube.com/gohamedia"},B="desktop",U="laptop",Z="tablet",q="phone",N=h()(h()(h()(h()({}
1,q,768),Z,1e3),U,1280),B,1/0),F="https://www.goha.ru/s/{size}:{path}.{ext}",z={svg:["image/svg+xml"],jpg:["image/jpeg","image/pjpeg","image/jpg"],png:["image/png","image/x-png"],gif:["image/gif"],webp:["image/webp"],bmp:["image/bmp","image/x-bmp","image/x-bitmap","image/x-xbitmap","image/x-win-bitmap","image/x-windows-bmp","image/ms-bmp","image/x-ms-bmp","application/bmp","application/x-bmp","application/x-win-bitmap"]},W={f144:"F144",f240:"F240",f360:"F360",f480:"F480",f720:"F720"},G=function(){return v()(function t(e){m()(this,t),this.app=e},[{key:"embed",get:function(){return H}},{key:"services",get:function(){return i}},{key:"adaptive",get:function(){return r}},{key:"images",get:function(){return a}}])}(),K=function(){return v()(function t(e){m()(this,t),this.app=e},[{key:"createUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"A",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"assets/game_preview_2",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"image/jpeg",i=this.app.config.images;return i.url.replace("{size}",i.sizes[t]||i.sizes[t.toLowerCase()]||"A").replace("{path}",e||"assets/game_preview_2").replace("{ext}",function(t,e){for(var n in e)if(e[n].indexOf(t)>=0)return n;return"jpg"}(n||"image/jpeg",i.mimes))}}])}();function Q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(n),!0).forEach(function(e){h()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var J=function(){return v()(function t(){m()(this,t),this.event=new g,this.config=new G(this),this.auth=new w(this),this.layer=new A(this),this.theme=new $(this),this.branding=new P(this),this.image=new K(this),this.state={app:{},route:{},refs:{},data:{}},this.$emit("app:created")},[{key:"useState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.useApp(t.app||{}),this.useRoute(t.route||{}),this.useRefs(t.refs||{}),this.useData(t.data||{})}},{key:"useApp",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.state.app=Y(Y({},this.state.app),t),this.$emit("app.$app:change")}},{key:"useRoute",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.state.route=Y(Y({},this.state.route),t),this.$emit("app.$route:change")}},{key:"useRefs",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.state.refs=Y(Y({},this.state.refs),t),this.$emit("app.$refs:change")}},{key:"useData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.state.data=Y(Y({},this.state.data),t),this.$emit("app.$data:change")}},{key:"$app",get:function(){return this.state.app}},{key:"$route",get:function(){return this.state.route}},{key:"$refs",get:function(){return this.state.refs}},{key:"$data",get:function(){return this.state.data}},{key:"$on",value:function(){var t;(t=this.event).$on.apply(t,arguments)}},{key:"$off",value:function(){var t;(t=this.event).$off.apply(t,arguments)}},{key:"$emit",value:function(){var t;(t=this.event).$emit.apply(t,arguments)}}])}();window.Goharu instanceof J||(window.Goharu=new J);var X=window.Goharu;e.a=function(t){var e=X.config.adaptive.breakpoints;o.a.use(l.a,{breakpoints:e}),o.a.use({install:function(t,e){t.prototype.$goharu=X}}),u()(function(){X.useRefs({app:new o.a(t)})})}},function(t,e,n){"use strict";var i=n(0),r=Object(i.a)({name:"Close"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg",height:"20",width:"20",viewBox:"0 0 20 20"}},[e("path",{attrs:{d:"M5.375 15.854 4.146 14.625 8.771 10 4.146 5.375 5.375 4.146 10 8.771 14.625 4.146 15.854 5.375 11.229 10 15.854 14.625 14.625 15.854 10 11.229Z"}})])},[],!1,null,null,null);e.a=r.exports},function(t,e,n){"use strict";var i=n(7),r=n.n(i),a=(n(495),n(12)),s=n(20),o=n(52),l=(n(509),{name:"layout-menu-submenu",mixins:[a.a],components:{},props:{links:{type:Array,default:[]},opened:{type:Boolean,default:!1}},data:function(){return{dropbox:!1}},created:function(){var t=this;this.outClickEvent=function(e){t.$refs.dropbox&&t.$refs.dropbox.contains(e.target)||(t.dropbox=!1)}},mounted:function(){this.$goharu.$on("layout.menu:toggle",this.handleToggle)},beforeDestroy:function(){this.$goharu.$off("layout.menu:toggle",this.handleToggle)},watch:{opened:function(t){this.dropbox=t},dropbox:function(t){this.$goharu.$emit("layout.menu:toggle",t,this),t?(this.$goharu.layer.closeAll(),window.addEventListener("click",this.outClickEvent)):(this.$emit("close"),window.removeEventListener("click",this.outClickEvent))}},methods:{handleToggle:function(t,e){e!==this&&(!t&&e||(this.dropbox=!1))},toggleDropbox:function(t){this.dropbox=!this.dropbox}}}),c=n(0),u=Object(c.a)(l,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"layout-menu-submenu"},[n("transition",{attrs:{name:"layout-menu-submenu__dropbox-"}},[t.dropbox?n("div",{ref:"dropbox",staticClass:"layout-menu-submenu__dropbox"},[n("div",{staticClass:"layout-menu-submenu__items"},t._l(t.links,function(e){return n("a",{staticClass:"layout-menu-submenu__item",attrs:{href:e.url}},[t._v("\n "+t._s(e.title)+"\n ")])}),0)]):t._e()])],1)},[],!1,null,null,null).exports,d=Object(c.a)({name:"icon-login"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"20",height:"18",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M9 4L7.6 5.4L10.2 8H0V10H10.2L7.6 12.6L9 14L14 9L9 4ZM18 16H10V18H18C19.1 18 20 17.1 20 16V2C20 0.9 19.1 0 18 0H10V2H18V16Z"}})])},[],!1,null,null,null).exports,h=(n(511),{name:"layout-menu-user",mixins:[a.a],components:{IconLogin:d},data:function(){return{user:null,dropbox:!1}},created:function(){var t=this;this.login(),this.$goharu.$on("app.auth:logout",function(){t.login()}),this.$goharu.$on("app.auth:attempt",function(){t.login()}),this.outClickEvent=function(e){t.$refs.dropbox&&t.$refs.dropbox.contains(e.target)||(t.dropbox=!1)}},mounted:function(){this.$goharu.$on("layout.menu:toggle",this.handleToggle)},beforeDestroy:function(){this.$goharu.$off("layout.menu:toggle",this.handleToggle)},watch:{dropbox:function(t){this.$goharu.$emit("layout.menu:toggle",t,this),t?(this.$goharu.layer.closeAll(),window.addEventListener("click",this.outClickEvent)):window.removeEventListener("click",this.outClickEvent)}},methods:{handleToggle:function(t,e){e!==this&&(!t&&e||(this.dropbox=!1))},login:function(){this.user=this.$goharu.auth.user()},logout:function(){this.$goharu.auth.logout(),this.user=null,this.dropbox=!1},attempt:function(){this.$goharu.auth.attempt()},avatar:function(){return"https://www.goha.ru/avatar/"+this.user.id},forumUrl:function(){var t=this.$goharu.$route["layout.links"].forum.url;return"".concat(t,"/member.php?u=").concat(this.user.id)},toggleDropbox:function(t){this.dropbox=!this.dropbox}}}),p=Object(c.a)(h,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"layout-menu-user"},[t.user?t._e():n("div",{staticClass:"layout-menu-user__login",attrs:{title:"ÐойÑи"},on:{click:function(e){return e.stopPropagation(),t.attempt(e)},mouseenter:function(e){return t.hover(e,"login")},mouseleave:function(e){return t.hover(e,"login")}}},[n("icon-login",{staticClass:"layout-menu-user__icon",class:{"layout-menu-user__icon--hover":t.isHover("login")}})],1),t._v(" "),t.user?n("div",{staticClass:"layout-menu-user__avatar",class:{"layout-menu-user__avatar--opened":t.dropbox},attrs:{title:t.user.name},on:{click:function(e){return e.stopPropagation(),t.toggleDropbox(e)}}},[n("img",{staticClass:"layout-menu-user__avatar-img",attrs:{src:t.avatar(),alt:""}})]):t._e(),t._v(" "),n("transition",{attrs:{name:"layout-menu-user__dropbox-"}},[t.dropbox?n("div",{ref:"dropbox",staticClass:"layout-menu-user__dropbox"},[n("div",{staticClass:"layout-menu-user__welcome"},[t._v("ÐÑивеÑ, "+t._s(t.user.name)+"!")]),t._v(" "),n("div",{staticClass:"layout-menu-user__items"},[n("a",{staticClass:"layout-menu-user__item",attrs:{href:t.forumUrl(),target:"_blank"}},[n("div",{staticClass:"layout-menu-user__item-label"},[t._v("ФоÑÑмнÑй пÑоÑайл")])]),t._v(" "),n("div",{staticClass:"layout-menu-user__item",on:{click:t.logout}},[n("div",{staticClass:"layout-menu-user__item-label"},[t._v("ÐÑйÑи")])])])]):t._e()])],1)},[],!1,null,null,null).exports,m=Object(c.a)({name:"icon-theme-light"},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{staticClass:"icon",attrs:{fill:"none",width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M15 20.7273C15.4519 20.7273 15.8182 21.0936 15.8182 21.5455V23.1818C15.8182 23.6337 15.4519 24 15 24C14.5481 24 14.1818 23.6337 14.1818 23.1818V21.5455C14.1818 21.0936 14.5481 20.7273 15 20.7273Z"}}),t._v(" "),n("path",{attrs:{d:"M9.92152 18.9215C10.241 18.602 10.759 18.602 11.0785 18.9215C11.398 19.241 11.398 19.759 11.0785 20.0785L9.85121 21.3058C9.53169 21.6253 9.01377 21.6253 8.69425 21.3058C8.37473 20.9862 8.37473 20.4683 8.69425 20.1488L9.92152 18.9215Z"}}),t._v(" "),n("path",{attrs:{d:"M18.9215 18.9215C19.241 18.602 19.759 18.602 20.0785 18.9215L21.3058 20.1488C21.6253 20.4683 21.6253 20.9862 21.3058 21.3058C20.9862 21.6253 20.4683 21.6253 20.1488 21.3058L18.9215 20.0785C18.602 19.759 18.602 19.241 18.9215 18.9215Z"}}),t._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 10.9091C17.2593 10.9091 19.0909 12.7407 19.0909 15C19.0909 17.2593 17.2593 19.0909 15 19.0909C12.7407 19.0909 10.9091 17.2593 10.9091 15C10.9091 12.7407 12.7407 10.9091 15 10.9091ZM15 12.5455C13.6444 12.5455 12.5455 13.6444 12.5455 15C12.5455 16.3556 13.6444 17.4545 15 17.4545C16.3556 17.4545 17.4545 16.3556 17.4545 15C17.4545 13.6444 16.3556 12.5455 15 12.5455Z"}}),t._v(" "),n("path",{attrs:{d:"M8.45455 14.1818C8.90641 14.1818 9.27273 14.5481 9.27273 15C9.27273 15.4519 8.90641 15.8182 8.45455 15.8182H6.81818C6.36631 15.8182 6 15.4519 6 15C6 14.5481 6.36631 14.1818 6.81818 14.1818H8.45455Z"}}),t._v(" "),n("path",{attrs:{d:"M23.1818 14.1818C23.6337 14.1818 24 14.5481 24 15C24 15.4519 23.6337 15.8182 23.1818 15.8182H21.5455C21.0936 15.8182 20.7273 15.4519 20.7273 15C20.7273 14.5481 21.0936 14.1818 21.5455 14.1818H23.1818Z"}}),t._v(" "),n("path",{attrs:{d:"M8.69425 8.69425C9.01377 8.37473 9.53169 8.37473 9.85121 8.69425L11.0785 9.92152C11.398 10.241 11.398 10.759 11.0785 11.0785C10.759 11.398 10.241 11.398 9.92152 11.0785L8.69425 9.85121C8.37473 9.53169 8.37473 9.01377 8.69425 8.69425Z"}}),t._v(" "),n("path",{attrs:{d:"M20.1488 8.69425C20.4683 8.37473 20.9862 8.37473 21.3058 8.69425C21.6253 9.01377 21.6253 9.53169 21.3058 9.85121L20.0785 11.0785C19.759 11.398 19.241 11.398 18.9215 11.0785C18.602 10.759 18.602 10.241 18.9215 9.92152L20.1488 8.69425Z"}}),t._v(" "),n("path",{attrs:{d:"M15 6C15.4519 6 15.8182 6.36631 15.8182 6.81818V8.45455C15.8182 8.90641 15.4519 9.27273 15 9.27273C14.5481 9.27273 14.1818 8.90641 14.1818 8.45455V6.81818C14.1818 6.36631 14.5481 6 15 6Z"}})])},[],!1,null,null,null).exports,f=Object(c.a)({name:"icon-theme-dark"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{fill:"none",width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.075 6.43991C15.2495 6.74954 15.2259 7.1328 15.0146 7.41862C14.2443 8.4607 13.8737 9.74464 13.97 11.0369C14.0664 12.3292 14.6234 13.5439 15.5397 14.4602C16.456 15.3765 17.6708 15.9335 18.963
116.0299C20.2553 16.1263 21.5392 15.7556 22.5813 14.9853L22.827 14.9105C23.4192 14.73 24.0171 15.1743 24.0152 15.7935C23.8576 17.4989 23.2175 19.1242 22.1699 20.4792C21.1223 21.8342 19.7105 22.8627 18.0996 23.4446C16.4888 24.0265 14.7455 24.1375 13.0738 23.7648C11.4022 23.392 9.87121 22.5509 8.66013 21.3398C7.44904 20.1287 6.60792 18.5978 6.23518 16.9261C5.86243 15.2544 5.97349 13.5112 6.55534 11.9003C7.1372 10.2895 8.16579 8.87762 9.52076 7.83001C10.8757 6.7824 12.501 6.14234 14.2065 5.98474C14.5604 5.95203 14.9005 6.13027 15.075 6.43991ZM21.8197 17.418C20.8701 17.7616 19.8514 17.9046 18.8289 17.8283C17.1059 17.6999 15.4862 16.9572 14.2645 15.7355C13.0427 14.5137 12.3001 12.894 12.1716 11.171C12.0953 10.1485 12.2384 9.12988 12.582 8.18026C11.8808 8.43396 11.2196 8.79611 10.6239 9.25675C9.53988 10.0948 8.71701 11.2243 8.25153 12.513C7.78604 13.8017 7.6972 15.1963 7.99539 16.5336C8.29359 17.871 8.96649 19.0957 9.93535 20.0646C10.9042 21.0335 12.129 21.7064 13.4663 22.0045C14.8037 22.3027 16.1983 22.2139 17.4869 21.7484C18.7756 21.2829 19.9051 20.4601 20.7432 19.3761C21.2038 18.7803 21.566 18.1192 21.8197 17.418Z"}})])},[],!1,null,null,null).exports,v=(n(513),{name:"layout-menu-theme",components:{IconThemeDark:f,IconThemeLight:m},props:{icon:{type:Boolean,default:!1}},data:function(){return{isDark:!1}},created:function(){var t=this;this.isDark=this.$goharu.theme.isDark(),this.$goharu.$on("app.theme:change",function(){t.isDark=t.$goharu.theme.isDark()})},methods:{toggle:function(){this.$goharu.theme.toggle()},clickActive:function(){return!this.icon||null}}}),g=Object(c.a)(v,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"layout-menu-theme",class:{"layout-menu-theme__dark":this.isDark},attrs:{title:"ÐÑÐ±Ð¾Ñ ÑемÑ"},on:this._d({},[this.clickActive()&&"click",this.toggle])},[e("icon-theme-light",{staticClass:"layout-menu-theme__icon-light"}),this._v(" "),e("icon-theme-dark",{staticClass:"layout-menu-theme__icon-dark"})],1)},[],!1,null,null,null).exports,_=(n(515),{name:"layout-menu-create",data:function(){return{user:null,pendingCreate:!1}},computed:{title:function(){return this.user?"ÐоÑÑÑпно Ñоздание пÑбликаÑии":"ÐвÑоÑизÑйÑеÑÑ, ÑÑÐ¾Ð±Ñ ÑоздаÑÑ Ð¿ÑбликаÑиÑ"}},created:function(){this.user=this.$goharu.auth.user(),this.$goharu.$on("app.auth:attempt",this.handleAttempt),this.$goharu.$on("app.auth:logout",this.handleLogout)},beforeDestroy:function(){this.$goharu.$off("app.auth:attempt",this.handleAttempt),this.$goharu.$off("app.auth:logout",this.handleLogout)},methods:{handleAttempt:function(){this.user=this.$goharu.auth.user(),this.pendingCreate&&this.user&&(this.pendingCreate=!1,window.location.href="/my/create")},handleLogout:function(){this.user=null,this.pendingCreate=!1},handleClick:function(t){this.user||(t.preventDefault(),this.pendingCreate=!0,this.$goharu.auth.attempt())}}}),y=Object(c.a)(_,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"layout-menu-create"},[e("a",{staticClass:"layout-menu-create__button",attrs:{href:"/my/create",title:this.title},on:{click:this.handleClick}},[this._v("ÐапиÑаÑÑ")])])},[],!1,null,null,null).exports,b=(n(517),{components:{LayoutMenuSubmenu:u,LayoutMenuUser:p,LayoutMenuTheme:g,LayoutMenuCreate:y},mixins:[s.a],mounted:function(){this.$refs.layoutMenu.addEventListener("click",this.layoutMenuClick)},beforeDestroy:function(){this.$refs.layoutMenu.removeEventListener("click",this.layoutMenuClick)},methods:{layoutMenuWatchStream:function(t){this.metrikaReachGoal("live"),this.$goharu.layer.closeAll(),this.$goharu.layer.open(o.a,{props:{url:t||this.$goharu.config.services.twitch.url}})},layoutMenuClick:function(t){t.target&&t.target.tagName&&"DIV"===t.target.tagName&&this.$goharu.layer.closeAll()}}}),C=(n(519),n(521),n(523),{mixins:[{},{}]}),w=n(155),x=(n(529),n(249),{mixins:[{},{}]}),L=n(55),k=n(65),O=n(18),E=Object(c.a)({name:"icon-plus"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",height:"14",width:"14"}},[e("path",{attrs:{d:"M7 1.16648L7 12.8331","stroke-width":"2","stroke-linecap":"round"}}),this._v(" "),e("path",{attrs:{d:"M1.1665 7L12.8332 7","stroke-width":"2","stroke-linecap":"round"}})])},[],!1,null,null,null).exports,M=Object(c.a)({name:"icon-telegram"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 17",width:"21",height:"17"}},[e("path",{attrs:{d:"M20.1641 2.00391C20.4219 0.800781 19.7344 0.328125 18.9609 0.628906L1.85938 7.20312C0.699219 7.67578 0.742188 8.32031 1.6875 8.62109L6.02734 9.95312L16.168 3.59375C16.6406 3.25 17.1133 3.46484 16.7266 3.76562L8.51953 11.1562L8.21875 15.668C8.69141 15.668 8.86328 15.4961 9.12109 15.2383L11.2266 13.1758L15.6523 16.4414C16.4688 16.9141 17.0703 16.6562 17.2852 15.7109L20.1641 2.00391Z"}})])},[],!1,null,null,null).exports,j=Object(c.a)({name:"icon-youtube"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 17",width:"25",height:"17"}},[e("path",{attrs:{d:"M23.5898 3.12109C23.332 2.08984 22.5156 1.27344 21.5273 1.01562C19.6797 0.5 12.375 0.5 12.375 0.5C12.375 0.5 5.02734 0.5 3.17969 1.01562C2.19141 1.27344 1.375 2.08984 1.11
1719 3.12109C0.601562 4.92578 0.601562 8.79297 0.601562 8.79297C0.601562 8.79297 0.601562 12.6172 1.11719 14.4648C1.375 15.4961 2.19141 16.2695 3.17969 16.5273C5.02734 17 12.375 17 12.375 17C12.375 17 19.6797 17 21.5273 16.5273C22.5156 16.2695 23.332 15.4961 23.5898 14.4648C24.1055 12.6172 24.1055 8.79297 24.1055 8.79297C24.1055 8.79297 24.1055 4.92578 23.5898 3.12109ZM9.96875 12.2734V5.3125L16.0703 8.79297L9.96875 12.2734Z"}})])},[],!1,null,null,null).exports,P=Object(c.a)({name:"Twitch"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"19",height:"20",viewBox:"0 0 19 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M1.71875 0.125L0.429688 3.43359V16.9688H5.02734V19.375H7.60547L10.0547 16.9688H13.793L18.8203 11.9414V0.125H1.71875ZM17.0586 11.082L14.2227 13.918H9.625L7.17578 16.3672V13.918H3.26562V1.88672H17.0586V11.082ZM14.2227 5.15234H12.4609V10.1797H14.2227V5.15234ZM9.625 5.15234H7.86328V10.1797H9.625V5.15234Z"}})])},[],!1,null,null,null).exports,S=Object(c.a)({name:"icon-vkvideo"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:"20",height:"20"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.8242 4.333C19.6485 3.02594 19.297 2.10881 18.5941 1.40589C17.8912 0.702961 16.9741 0.35149 15.667 0.17575C15.5445 0.159273 15.4185 0.144342 15.289 0.13081C14.0368 0 12.4508 0 10.4 0H9.6C7.3978 0 5.7316 0 4.4392 0.161961C3.07538 0.332856 2.1277 0.684075 1.40589 1.40589C0.702961 2.10881 0.35149 3.02594 0.17575 4.333C0.159273 4.45553 0.144342 4.58149 0.13081 4.71102C0 5.96316 0 7.54916 0 9.6V10.4C0 12.6022 0 14.2684 0.161961 15.5608C0.332856 16.9246 0.684075 17.8723 1.40589 18.5941C2.01014 19.1984 2.77268 19.5429 3.80514 19.7394C5.1747 20 7.01932 20 9.6 20H10.4C12.663 20 14.36 20 15.667 19.8242C16.9741 19.6485 17.8912 19.297 18.5941 18.5941C19.1984 17.9899 19.5429 17.2273 19.7394 16.1949C20 14.8253 20 12.9807 20 10.4V9.6C20 7.337 20 5.64 19.8242 4.333ZM8.506 6.312C8.26 6.648 8.26 7.232 8.26 8.4V11.6C8.26 12.766 8.26 13.35 8.506 13.688C8.72 13.982 9.048 14.172 9.41 14.21C9.82432 14.2538 10.3259 13.9644 11.3297 13.3851L14.139 11.7624C15.131 11.1888 15.6295 10.9006 15.798 10.522C15.946 10.19 15.946 9.81 15.798 9.478C15.628 9.098 15.124 8.806 14.112 8.222L11.342 6.622C10.33 6.038 9.824 5.746 9.41 5.79C9.048 5.828 8.72 6.018 8.506 6.312ZM5.42692 19.1268C5.07174 19.1033 4.74394 19.0723 4.43969 19.0314C3.2213 18.8676 2.5011 18.558 1.97157 18.0284C1.44204 17.4989 1.13241 16.7787 0.968602 15.5603C0.801699 14.3189 0.8 12.6854 0.8 10.4V9.6C0.8 7.31464 0.801699 5.6811 0.968602 4.43969C1.13241 3.2213 1.44204 2.5011 1.97157 1.97157C2.5011 1.44204 3.2213 1.13241 4.43969 0.968602C4.74135 0.928046 5.06615 0.897244 5.41784 0.873851C5.17041 1.02318 4.9457 1.1983 4.74 1.404C3.334 2.81 3.334 5.072 3.334 9.598V10.398C3.334 14.924 3.334 17.186 4.74 18.592C4.94782 18.7998 5.17588 18.9764 5.42692 19.1268Z"}})])},[],!1,null,null,null).exports,I=Object(c.a)({name:"icon-vk"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 15",width:"25",height:"15"}},[e("path",{attrs:{d:"M23.418 1.82031C23.5469 1.30469 23.418 0.875 22.6445 0.875H20.1094C19.4648 0.875 19.1641 1.21875 18.9922 1.60547C18.9922 1.60547 17.7031 4.74219 15.8984 6.80469C15.2969 7.36328 15.0391 7.57812 14.6953 7.57812C14.5664 7.57812 14.3086 7.36328 14.3086 6.84766V1.82031C14.3086 1.17578 14.1367 0.875 13.5781 0.875H9.625C9.19531 0.875 8.98047 1.17578 8.98047 1.47656C8.98047 2.07812 9.88281 2.20703 9.96875 3.92578V7.66406C9.96875 8.48047 9.83984 8.65234 9.49609 8.65234C8.63672 8.65234 6.57422 5.47266 5.32812 1.86328C5.07031 1.17578 4.8125 0.875 4.16797 0.875H1.63281C0.945312 0.875 0.773438 1.21875 0.773438 1.60547C0.773438 2.29297 1.63281 5.60156 4.76953 10.0273C6.875 13.0352 9.83984 14.625 12.5039 14.625C14.0938 14.625 14.3086 14.2812 14.3086 13.6797C14.3086 10.8008 14.1797 10.5 14.9531 10.5C15.3398 10.5 15.9844 10.7148 17.4883 12.1758C19.207 13.8945 19.5078 14.625 20.4531 14.625H22.9883C23.7188 14.625 24.0625 14.2812 23.8477 13.5508C23.375 12.0898 20.1523 8.99609 19.9805 8.78125C19.5938 8.30859 19.7227 8.09375 19.9805 7.66406C19.9805 7.66406 23.0742 3.28125 23.418 1.82031Z"}})])},[],!1,null,null,null).exports,V=Object(c.a)({name:"icon-discord"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 23",width:"20",height:"23"}},[e("path",{attrs:{d:"M12.7617 11.2344C12.7617 10.5469 12.2461 9.98828 11.6445 9.98828C11 9.98828 10.4844 10.5469 10.4844 11.2344C10.4844 11.8789 11 12.4375 11.6445 12.4375C12.2461 12.4375 12.7617 11.8789 12.7617 11.2344ZM7.60547 9.98828C7.00391 9.98828 6.48828 10.5469 6.48828 11.2344C6.48828 11.8789 7.00391 12.4375 7.60547 12.4375C8.25 12.4375 8.72266 11.8789 8.72266 11.2344C8.76562 10.5469 8.25 9.98828 7.60547 9.98828ZM19.25 3.02734C19.25 1.78125 18.2188 0.75 16.9727 0.75H2.23438C0.988281 0.75 0 1.78125 0 3.02734V17.8945C0 19.1836 0.988281 20.1719 2.23438 20.1719H14.6953L14.1367 18.1523C17.3594 21.1172 16.457 20.3438 19.25 22.75V3.02734ZM16.1133 13.4688C16.1133 13.4688 15.168 15.0586 12.7188 15.1445C12.7188 15.1445 12.332 14.6719 11.9883 14.2422C13.4492 13.8555 14.0078 12.9531 14.0078 12.9531C13.5352 13.2539 13.1055 13.4258 12.7188 13.5977C10.3555 14.5859 7.73438 14.2422 5.84375 13.2109C5.84375 13.168 5.58594 13.0391 5.41406 12.9102C5.41406 12.9102 5.92969 13.8125 7.34766 14.2422C7.00391 14.6289 6.61719 15.1445 6.61719 15.1445C4.16797 15.0586 3.26562 13.4688 3.26562 13.4688C3.26562 9.90234 4.8125 7.06641 4.8125 7.06641C6.40234 5.86328 7.90625 5.90625 7.90625 5.90625L8.03516 6.03516C6.05859 6.59375 5.15625 7.45312 5.15625 7.45312C5.15625 7.45312 5.37109 7.32422 5.80078 7.15234C8.33594 6.03516 11.3867 6.03516 14.0078 7.45312C14.0078 7.45312 13.1484 6.63672 11.2578 6.07812L11.4297 5.90625C11.4297 5.90625 12.9336 5.86328 14.5234 7.06641C14.5234 7.06641 16.1133 9.90234 16.1133 13.4688Z"}})])},[],!1,null,null,null).exports,D=Object(c.a)({name:"icon-steam"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",width:"22",height:"22"}},[e("path",{attrs:{d:"M21.3125 10.75C21.3125 4.86328 16.5 0.09375 10.6133 0.09375C5.02734 0.09375 0.429688 4.43359 0 9.93359L5.71484 12.2969C6.23
1047 11.9102 6.91797 11.7383 7.5625 11.7383L10.0977 8.08594V8.04297C10.0977 5.80859 11.9023 4.00391 14.1367 4.00391C16.3711 4.00391 18.1758 5.80859 18.1758 8.04297C18.1758 10.2773 16.2852 12.082 14.0508 12.0391L10.3984 14.6172C10.4844 16.3789 9.06641 17.7969 7.39062 17.7969C5.92969 17.7969 4.72656 16.7227 4.42578 15.3477L0.34375 13.6719C1.63281 18.1406 5.71484 21.4062 10.6133 21.4062C16.5 21.4062 21.3125 16.6367 21.3125 10.75ZM6.66016 16.293L5.37109 15.7344C5.58594 16.1641 6.10156 16.6797 6.53125 16.8516C7.69141 17.3242 9.02344 16.7656 9.49609 15.6484C9.71094 15.0898 9.71094 14.4453 9.49609 13.8867C9.28125 13.3281 8.85156 12.8984 8.29297 12.6836C7.73438 12.4258 7.13281 12.4258 6.61719 12.6406L7.94922 13.1992C8.80859 13.543 9.19531 14.5312 8.85156 15.3906C8.50781 16.25 7.51953 16.6367 6.66016 16.293ZM14.1367 10.707C15.6406 10.707 16.8008 9.50391 16.8008 8.04297C16.8008 6.53906 15.5977 5.33594 14.1367 5.33594C12.6758 5.33594 11.4727 6.53906 11.4727 8.04297C11.4727 9.50391 12.6758 10.707 14.1367 10.707ZM14.1367 10.0195C13.0195 10.0195 12.1172 9.11719 12.1172 8C12.1172 6.92578 13.0195 6.02344 14.1367 6.02344C15.2539 6.02344 16.1562 6.92578 16.1562 8C16.1562 9.11719 15.2539 10.0195 14.1367 10.0195Z"}})])},[],!1,null,null,null).exports,A=Object(c.a)({name:"icon-zen"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 21",width:"21",height:"21"}},[e("path",{attrs:{d:"M12.525 12.525C10.875 14.2275 10.7625 16.35 10.6125 21C14.9475 21 17.94 20.985 19.485 19.485C20.985 17.94 21 14.805 21 10.6125C16.35 10.7625 14.2275 10.875 12.525 12.525Z"}}),this._v(" "),e("path",{attrs:{d:"M10.3875 21C6.0525 21 3.06 20.985 1.515 19.485C0.015 17.94 0 14.805 0 10.6125C4.65 10.7625 6.7725 10.875 8.475 12.525C10.125 14.2275 10.2375 16.35 10.3875 21Z"}}),this._v(" "),e("path",{attrs:{d:"M8.475 8.475C6.7725 10.125 4.65 10.2375 0 10.3875C0 6.195 0.015 3.06 1.515 1.515C3.06 0.015 6.06 0 10.3875 0C10.2375 4.65 10.125 6.7725 8.475 8.475Z"}}),this._v(" "),e("path",{attrs:{d:"M10.6125 0C10.755 4.65 10.875 6.7725 12.525 8.475C14.2275 10.125 16.35 10.2375 21 10.3875C21 6.195 20.985 3.06 19.485 1.515C17.94 0.015 14.9475 0 10.6125 0Z"}})])},[],!1,null,null,null).exports;n(532);function H(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}var T={name:"layer-menu",mixins:[a.a,s.a,O.a],components:{LayerContainer:L.a,LayerWrapper:k.a,LayoutMenuTheme:g,IconPlus:E,IconTelegram:M,IconYoutube:j,IconTwitch:P,IconVkvideo:S,IconVk:I,IconDiscord:V,IconSteam:D,IconZen:A},props:{layer:{type:Object,default:null}},data:function(){return{sub:{},socialData:this.$goharu.$data.social_icons||{},eventsButton:this.$goharu.$data.events_button||{}}},computed:{links:function(){return this.$goharu.$route["layout.links"]||{}}},mounted:function(){var t=document.querySelector(".layout-menu"),e=t?t.getBoundingClientRect().top:0;this.$el.style.setProperty("--top-header","".concat(e,"px"))},methods:{socials:function(t){return"icon-"+t},close:function(){this.layer.close()},isSubOpened:function(t){return!!this.sub[t]},toggleSub:function(t,e){if(!this.links[t]||!this.links[t].submenu)return!0;e.preventDefault(),e.stopPropagation();var n=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?H(Object(n),!0).forEach(function(e){r()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},this.sub);n[t]=!n[t],this.sub=n,$(this.$refs[t]).slideToggle({duration:"fast",start:function(){jQuery(this).css("display","grid")}})},toggleTheme:function(){return this.$goharu.theme.toggle()}}},R=Object(c.a)(T,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("layer-container",{staticClass:"layer-menu"},[n("layer-wrapper",{staticClass:"layer-menu__wrapper"},[n("div",{staticClass:"layer-menu__content"},[n("div",{staticClass:"layer-menu__mainmenu"},[t._l(t.links,function(e,i){return n("div",[n("a",{staticClass:"layer-menu__mainmenu-link",class:{"layer-menu__mainmenu-link-parent":!!e.submenu,"layer-menu__mainmenu-link-opened":t.isSubOpened(i)},attrs:{href:e.url},on:{click:function(e){return t.toggleSub(i,e)}}},[e.submenu?n("icon-plus"):t._e(),t._v("\n "+t._s(e.title)+"\n ")],1),t._v(" "),e.submenu?n("div",{ref:i,refInFor:!0,staticClass:"layer-menu__mainmenu-submenu",class:{"layer-menu__mainmenu-submenu-opened":t.isSubOpened(i)}},t._l(e.submenu,function(e,i){return n("a",{staticClass:"layer-menu__mainmenu-link",attrs:{href:e.url}},[t._v(t._s(e.title))])}),0):t._e()])}),t._v(" "),t.mediaPhone()&&t.eventsButton.enabled?n("div",[t.eventsButton.url?n("a",{staticClass:"layer-menu__mainmenu-link layer-menu__mainmenu-link-events-button events-button",attrs:{href:t.eventsButton.url,target:t.eventsButton.target}},[t._v("\n "+t._s(t.eventsButton.text)+"\n ")]):t._e(),t._v(" "),t.eventsButton.url?t._e():n("span",{staticClass:"layer-menu__mainmenu-link layer-menu__mainmenu-link-events-button events-button"},[t._v("\n "+t._s(t.eventsButton.text)+"\n ")])]):t._e(),t._v(" "),t.mediaPhone()?n("div",[n("span",{staticClass:"layer-menu__mainmenu-link",on:{click:t.toggleTheme}},[t._v("\n ÐеÑеклÑÑиÑÑ ÑемÑ\n "),n("layout-menu-theme",{attrs:{icon:!0}})],1)]):t._e()],2),t._v(" "),n("div",{staticClass:"layer-menu__footer"},[n("div",{staticClass:"layer-menu__socials"},t._l(t.socialData,function(e,i){return n("a",{attrs:{href:e,rel:"noopener nofollow",target:"_blank"},on:{click:t.close}},[n(t.socials(i),{tag:"component"})],1)}),0),t._v(" "),n("div",{staticClass:"layer-menu__links"},[n("a",{staticClass:"layer-menu__link",attrs:{href:t.links.forum.url+"/forumdisplay.php?f=15"}},[t._v("ÐоддеÑжка")]),t._v(" "),n("a",{staticClass:"layer-menu__link",attrs:{href:"/feeds/rss"}},[t._v("RSS")]),t._v(" "),n("a",{staticClass:"layer-menu__link",attrs:{href:"/contests"}},[t._v("СпеÑпÑоекÑÑ")]),t._v(" "),n("a",{staticClass:"layer-menu__link",attrs:{href:t.links.forum.url+"/showthread.php?t=1608"}},[t._v("ÐÑавила\n коммÑниÑи")]),t._v(" "),n("a",{staticClass:"layer-menu__link",attrs:{href:"/adv"}},[t._v("Реклама")]),t._v(" "),n("a",{staticClass:"layer-menu__link",attrs:{href:"/vacancy"}}
1,[t._v("ÐаканÑии")])])])])])],1)},[],!1,null,null,null).exports,B=(n(534),n(57)),U=(n(536),{name:"ads-adfox-box",mixins:[B.a],props:{type:{type:String,required:!0},header:{type:String,default:null},width:{type:Number,default:null},height:{type:Number,default:null}},watch:{isRendered:function(t){t&&this.$el&&this.$el.classList.remove("ads-adfox-box__not-rendered")}},methods:{renderStyles:function(){var t={overflow:"hidden",width:"100%"};switch(this.type){case"240x400":t.maxWidth="240px";break;case"300x600":case"300x250":t.maxWidth="300px",t.marginLeft="auto",t.marginRight="auto";break;case"728x90":t.maxWidth="728px";break;case"1280x200":t.maxWidth="1280px";break;case"970x250":case"b970x200":t.maxWidth="970px";break;case"b738x160":t.maxWidth="738px"}return this.width&&(t.maxWidth=this.width+"px"),t},renderBodyStyles:function(){var t={};return this.height&&(t.maxHeight=this.height+"px"),t}}}),Z=Object(c.a)(U,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isVisible?n("div",{staticClass:"ads-adfox-box ads-adfox-box__not-rendered",style:t.renderStyles(),attrs:{"data-is":t.type}},[t.header&&t.isRendered?n("div",{staticClass:"ads-adfox-box__header"},[t._v(t._s(t.header))]):t._e(),t._v(" "),n("div",{ref:"banner",staticClass:"ads-adfox-box__body",style:t.renderBodyStyles()})]):t._e()},[],!1,null,null,null).exports,q={name:"ads-adfox-section",mixins:[O.a],components:{AdsAdfoxBox:Z},computed:{component:function(){return"ads-adfox-box"},styles:function(){switch(!0){case this.mediaDesktop():return{marginTop:"40px"};case this.mediaLaptop():return{margin:"15px auto 0px"};case this.mediaTablet():case this.mediaPhone():return{margin:"20px auto 0px"}}},type:function(){switch(!0){case this.mediaDesktop():return"1280x200";case this.mediaLaptop():return"970x250";case this.mediaTablet():return"728x90";case this.mediaPhone():return"300x250"}},height:function(){switch(!0){case this.mediaDesktop():return 200;case this.mediaLaptop():return 250;case this.mediaTablet():return 90;case this.mediaPhone():return 250}}}},N=Object(c.a)(q,function(){var t=this.$createElement;return(this._self._c||t)(this.component,{key:this.type,tag:"component",style:this.styles,attrs:{height:this.height,type:this.type}})},[],!1,null,null,null).exports,F=(n(538),{name:"ads-adfox-branding",mixins:[B.a],computed:{type:function(){return"Background"}},watch:{isRendered:function(t){t&&this.$goharu.branding.update()}},methods:{renderStyles:function(){var t={};return this.data&&this.data.bundleParams&&this.data.bundleParams.bodyBackgroundColor&&(t.backgroundColor="#"+this.data.bundleParams.bodyBackgroundColor),t}}}),z=Object(c.a)(F,function(){var t=this.$createElement,e=this._self._c||t;return this.isVisible?e("div",{staticClass:"ads-adfox-branding foxybg",style:this.renderStyles(),attrs:{"data-is":this.type}},[e("div",{ref:"banner",staticClass:"ads-adfox-branding__body"})]):this._e()},[],!1,null,null,null).exports,W=(n(540),{name:"ads-adfox-rollup",mixins:[B.a],computed:{type:function(){return"Rollup"}},watch:{},methods:{}}),G=Object(c.a)(W,function(){var t=this.$createElement,e=this._self._c||t;return this.isVisible?e("div",{ref:"banner",staticClass:"ads-adfox-rollup",attrs:{"data-is":this.type}}):this._e()},[],!1,null,null,null).exports,K=(n(542),{name:"ads-adfox-fullscreen",mixins:[B.a],computed:{type:function(){return"Fullscreen"}},methods:{close:function(){this.isVisible=!1}}}),Q=Object(c.a)(K,function(){var t=this.$createElement,e=this._self._c||t;return this.isVisible?e("div",{ref:"banner",staticClass:"ads-adfox-fullscreen",attrs:{"data-is":this.type},on:{click:this.close}}):this._e()},[],!1,null,null,null).exports,Y=(n(544),{name:"ads-adfox-flyroll",mixins:[B.a],computed:{type:function(){return"Flyroll"}}}),J=Object(c.a)(Y,function(){var t=this.$createElement,e=this._self._c||t;return this.isVisible?e("div",{ref:"banner",staticClass:"ads-adfox-flyroll",attrs:{"data-is":this.type}}):this._e()},[],!1,null,null,null).exports,X=(n(548),{name:"ads-adfox-billboard",mixins:[B.a],computed:{type:function(){return"Billboard"}}});var tt=function(t){n(546)},et=Object(c.a)(X,function(){var t=this.$createElement,e=this._self._c||t;return this.isVisible?e("div",{staticClass:"ads-adfox-billboard",attrs:{"data-is":this.type}},[e("div",{ref:"banner",staticClass:"ads-adfox-billboard__body"})]):this._e()},[],!1,tt,"data-v-c0092a96",null).exports,nt=n(49),it=(n(550),{name:"ads-adfox-video",mixins:[B.a,a.a],components:{IconClose:nt.a},computed:{type:function(){return"Video"}},methods:{close:function(){this.isVisible=!1}}}),rt=Object(c.a)(it,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isVisible?n("div",{staticClass:"ads-adfox-video",attrs:{"data-is":t.type}},[t.isRendered?n("div",{staticClass:"ads-adfox-video__close",on:{click:t.close,mouseenter:function(e){return t.enter("close")},mouseleave:function(e){return t.leave("close")}}},[n("icon-close",{staticClass:"ads-adfox-video__close-icon",class:{"ads-adfox-video__close-icon--hover":t.isHover("close")}})],1):t._e(),t._v(" "),n("div",{ref:"banner",staticClass:"ads-adfox-video__container"})]):t._e()},[],!1,null,null,null).exports,at=n(15),st=n.n(at),ot=n(3),lt=n.n(ot),ct=n(10),ut=n.n(ct),dt=n(11),ht=n.n(dt),pt=n(6),mt=n.n(pt),ft=n(111),vt=n(80),gt=(n(
1552),{name:"search-tile",mixins:[a.a,vt.a,O.a,s.a],components:{IconComments:ft.a},props:{article:{type:Object,required:!0},loading:{type:Boolean,default:!1},comments:{type:Boolean,default:!0}},data:function(){return{title:this.article.title,shortly:this.article.shortly,shortlyVisible:!1}},computed:{preview:function(){return this.article.preview.url||"https://www.goha.ru/s/f/assets/article_preview.jpg"}},watch:{},mounted:function(){},methods:{getTitle:function(){return this.mediaPhone()?this.textTruncate(this.article.title,70):this.article.title},getCommentsUrl:function(){return this.article.url+"#comments"}}}),_t=Object(c.a)(gt,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"search-tile",class:{"search-tile--loading":t.loading}},[n("div",{staticClass:"search-tile__image"},[n("div",{staticClass:"search-tile__image-ratio"},[n("div",{staticClass:"search-tile__image-wrapper"},[n("a",{staticClass:"search-tile__image-link",attrs:{href:t.article.url}},[n("img",{staticClass:"search-tile__image-img",attrs:{loading:"lazy",src:t.preview,alt:""}})])])])]),t._v(" "),n("div",{staticClass:"search-tile__body"},[n("a",{staticClass:"search-tile__overlay",attrs:{href:t.article.url},on:{mouseenter:function(e){return t.enter("title")},mouseleave:function(e){return t.leave("title")}}}),t._v(" "),n("div",{staticClass:"search-tile__shadow"}),t._v(" "),n("a",{staticClass:"search-tile__title",class:{"search-tile__title--hover":t.isHover("title")},attrs:{href:t.article.url},domProps:{textContent:t._s(t.getTitle())}}),t._v(" "),n("div",{staticClass:"search-tile__date"},[t._v(t._s(t.article.published_at_str))]),t._v(" "),t.comments?n("a",{staticClass:"search-tile__comments",attrs:{href:t.getCommentsUrl()},on:{click:function(e){return t.metrikaReachGoal("article_tile_comments_click")},mouseenter:function(e){return t.enter("comments")},mouseleave:function(e){return t.leave("comments")}}},[n("icon-comments",{staticClass:"search-tile__comments-icon",class:{"search-tile__comments-icon--hover":t.isHover("comments")}}),t._v(" "),n("span",{staticClass:"search-tile__comments-label",class:{"search-tile__comments-label--hover":t.isHover("comments")}},[t._v(t._s(t.article.comments||0))])],1):t._e()])])},[],!1,null,null,null).exports,yt=n(156),bt=n(21),Ct=n(109);n(560);function wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function xt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wt(Object(n),!0).forEach(function(e){r()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Lt={name:"layer-search",mixins:[O.a],props:{layer:{type:Object},refInput:{type:HTMLInputElement}},components:{LayerContainer:L.a,ArticleTile:_t,FormButton:bt.a,GameTile:yt.a,FilterOrder:Ct.a},data:function(){return{isFocused:!1,isLoading:!1,isMoreLoading:!1,isAlreadyRequested:!1,search:"",locations:this.$goharu.$data.searchLocations||[],location:"",orderOptions:[],order:"date-desc",attributes:null,total:{},articles:[],games:[],more:!1,page:1}},watch:{attributes:function(t,e){t&&e&&JSON.stringify(t)!==JSON.stringify(e)&&this.handleAttributesChange()},search:function(t){this.refInput&&(this.refInput.value=t,this.refInput.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!1})))}},created:function(){this.loadingSync=0,this.dispatchSearch=mt.a.debounce(this.dispatchSearch,300)},mounted:function(){window.addEventListener("resize",this.handleResize),this.handleResize(),this.refInput&&(this.refInput.addEventListener("focus",this.handleAreaFocus),this.refInput.addEventListener("blur",this.handleAreaBlur),this.refInput.value=""),this.location="news",this.search="",this.checkFocus(),this.$goharu.$on("app.search:input",this.handleSearchInput)},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize),this.refInput&&(this.refInput.removeEventListener("focus",this.handleAreaFocus),this.refInput.removeEventListener("blur",this.handleAreaBlur)),this.$goharu.$off("app.search:input",this.handleSearchInput)},updated:function(){this.collectAttributes()},methods:{checkFocus:function(){this.refInput&&this.refInput.focus()},handleSearchInput:function(t){this.search=t},close:function(){this.layer&&this.layer.close&&this.layer.close()},locationCount:function(t){return this.search&&this.isAlreadyRequested?this.total[t]||0:""},isLocation:function(t){return this.location===t},setLocation:function(t){this.location=t,this.setOrder(1)},setOrder:function(t){var e=this.order,n=lt()(this.orderOptions).map(function(n,i){return t===i?(e=n.value,xt(xt({},n),{},{selected:!0})):n.selected?xt(xt({},n),{},{selected:!1}):n});this.orderOptions=n,this.order=e},collectAttributes:function(){this.attributes=[this.search,this.location,this.order]},hasNoResults:function(){var t=!(this.isLoading||!this.search||this.games.length||this.articles.length);return this.$emit("hasNoResults",t),t},hasResults:function(){return this.games.length||this.articles.length},createEndpoint:function(){var t=new URL(this.$goharu.$route["api.search.query"]);return t.searchParams.append("str",this.search),t.searchParams.append("location",this.location),t.searchParams.append("order",this.order),t.searchParams.append("count",25),t},sendRequest:function(t){return ht.a.get(t).then(function(t){return t.data}).catch(function(t){return{}})},dispatchSearch:function(){var t=st()(ut.a.mark(function t(e){var n,i;return ut.a.wrap(function(t){for(;;
1)switch(t.prev=t.next){case 0:return this.$refs.scroll.scrollTo(0,0),(n=this.createEndpoint()).searchParams.append("page",1),t.next=1,this.sendRequest(n);case 1:if(i=t.sent,e===this.loadingSync){t.next=2;break}return t.abrupt("return");case 2:this.isAlreadyRequested=!0,this.total=i.total||{},this.articles=i.articles||[],this.games=i.games||[],this.page=1,this.more=!!i.more,this.orderOptions=i.orderOptions,this.isLoading=!1;case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),dispatchSearchMore:function(){var t=st()(ut.a.mark(function t(e){var n,i,r;return ut.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.createEndpoint(),i=this.page+1,n.searchParams.append("page",i),t.next=1,this.sendRequest(n);case 1:if(r=t.sent,e===this.loadingSync){t.next=2;break}return t.abrupt("return");case 2:this.articles=[].concat(lt()(this.articles),lt()(r.articles||[])),this.games=[].concat(lt()(this.games),lt()(r.games||[])),this.page=i,this.more=!!r.more,this.isMoreLoading=!1;case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),handleAttributesChange:function(){this.search&&(this.loadingSync++,this.isLoading=!0,this.dispatchSearch(this.loadingSync))},handleButtonClick:function(){this.loadingSync++,this.isMoreLoading=!0,this.dispatchSearchMore(this.loadingSync)},handleAreaFocus:function(){this.isFocused=!0},handleAreaBlur:function(){this.isFocused=!1},handleClear:function(){this.search="",this.checkFocus()},handleResize:function(t){var e=document.querySelector(".layout-menu"),n=e?e.getBoundingClientRect().top:0;this.$el.style.setProperty("--top-header","".concat(n,"px"))}}},kt=Object(c.a)(Lt,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("layer-container",{ref:"container",staticClass:"layer-search"},[n("div",{staticClass:"layer-search__menu",class:{"layer-search__menu--focused":t.isFocused}},[n("div",{staticClass:"layer-search__menu-suggests"},[n("div",{staticClass:"layer-search__menu-suggests-match"},[n("span",{staticClass:"layer-search__menu-suggests-search"},[t._v(t._s(t.search))])]),t._v(" "),t.hasNoResults()?n("div",{staticClass:"layer-search__menu-suggests-suffix"},[t._v("ниÑего не найдено")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],ref:"input",staticClass:"layer-search__menu-input",attrs:{placeholder:"ÐоиÑк",type:"text"},domProps:{value:t.search},on:{blur:t.handleAreaBlur,focus:t.handleAreaFocus,input:function(e){e.target.composing||(t.search=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"layer-search__filter"},[n("div",{staticClass:"layer-search__filter-wrapper"},[n("div",{staticClass:"layer-search__filter-body"},[n("div",{staticClass:"layer-search__filter-buttons"},t._l(t.locations,function(e,i){return n("div",{staticClass:"layer-search__filter-button",class:{"layer-search__filter-button--selected":t.isLocation(i)},on:{click:function(e){e.preventDefault(),e.stopPropagation(),t.setLocation(i),t.checkFocus()}}},[t._v("\n "+t._s(e)+"\n "),n("span",[t._v(t._s(t.locationCount(i)))])])}),0)])])]),t._v(" "),n("div",{ref:"scroll",staticClass:"layer-search__body-scroll"},[n("div",{staticClass:"layer-search__body-wrapper"},[n("div",{staticClass:"layer-search__overlay",on:{click:t.close}}),t._v(" "),t.hasNoResults()?n("div",{staticClass:"layer-search__body layer-search__body--grow"},[n("div",{staticClass:"layer-search__body-column"},[n("div",{staticClass:"layer-search__empty"},[n("div",{staticClass:"layer-search__empty-title"},[t._v("\n РвÑбÑанном Ñазделе ниÑего не найдено\n ")]),t._v(" "),n("div",{staticClass:"layer-search__empty-description"},[n("div",[t._v("Ð ÑожалениÑ, Ð¼Ñ Ð½Ð¸Ñего не наÑли в вÑбÑанном Ñазделе по ваÑÐµÐ¼Ñ Ð·Ð°Ð¿ÑоÑÑ.")]),t._v(" "),n("div",[t._v("ÐопÑобÑйÑе измениÑÑ Ð·Ð°Ð¿ÑÐ¾Ñ Ð¸Ð»Ð¸ пеÑеклÑÑиÑеÑÑ Ð½Ð° дÑÑгой Ñаздел.")])])])])]):t._e(),t._v(" "),n("div",{staticClass:"layer-search__body",class:{"layer-search__body--grow":t.hasResults()}},[t.hasResults()?n("div",{staticClass:"layer-search__body-column"},[n("div",{staticClass:"layer-search__header"},[n("div",{staticClass:"layer-search__header-title"},[t._v("СоÑÑиÑовка:")]),t._v(" "),n("filter-order",{staticClass:"layer-search__header-sorting",attrs:{options:t.orderOptions},on:{select:t.setOrder}})],1),t._v(" "),t.games.length?n("div",{staticClass:"layer-search__games",class:{"layer-search__games-loading":t.isLoading}},[n("div",{staticClass:"layer-search__games-items"},t._l(t.games,function(t){return n("game-tile",{key:t.id,staticClass:"layer-search__games-item",attrs:{fullDate:!0,game:t}})}),1)]):t._e(),t._v(" "),t.articles.length?n("div",{staticClass:"layer-search__articles",class:{"layer-search__articles-loading":t.isLoading}},[n("div",{staticClass:"layer-search__articles-items"},t._l(t.articles,function(t,e){return n("article-tile",{key:t.hashid,staticClass:"layer-search__articles-item",attrs:{article:t}})}),1)]):t._e(),t._v(" "),t.more&&!t.isLoading?n("form-button",{staticClass:"layer-search__button",attrs:{disabled:t.isMoreLoading},on:{click:t.handleButtonClick}},[t._v(t._s(t.isMoreLoading?"ÐагÑÑзка...":"ÐоказаÑÑ ÐµÑе")+"\n ")]):t._e()],1):t._e()])])])])},[],!1,null,null,null).exports,$t=Object(c.a)({name:"icon-live"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M4.10783 2.44141L5.28617 3.61974C4.66619 4.23814 4.17454 4.97296 3.83946 5.78197C3.50439 6.59099 3.3325 7.45825 3.33367 8.33391C3.33367 10.1756 4.0795 11.8422 5.28617 13.0481L4.10867 14.2256C3.33364 13.4528 2.71896 12.5345 2.29994 11.5234C1.88092 10.5123 1.66582 9.42838 1.667 8.33391C1.6656 7.23935 1.88052 6.15531 2.2994 5.14408C2.71828 4.13285 3.33286 3.21437 4.10783 2.44141ZM15.8928 2.44141C16.6678 3.21437 17.2824 4.13285 17.7013 5.14408C18.1201 6.15531 18.3351 7.23935 18.3337 8.33391C18.3351 9.42846 18.1201 10.5125 17.7013 11.5237C17.2824 12.535 16.6678 13.4534 15.8928 14.2264L14.7145 13.0481C15.3345 12.4297 15.8261 11.6949 16.1612 10.8858C16.4963 10.0768 16.6682 9.20957 16.66
17 8.33391C16.667 6.49224 15.9212 4.82557 14.7145 3.61974L15.892 2.44224L15.8928 2.44141ZM6.4645 4.79807L7.64367 5.97724C7.33363 6.28634 7.08775 6.65367 6.92014 7.0581C6.75253 7.46254 6.6665 7.89611 6.667 8.33391C6.667 9.25474 7.04033 10.0881 7.64367 10.6906L6.4645 11.8697C5.99952 11.4059 5.6308 10.8548 5.37953 10.248C5.12826 9.64115 4.99939 8.99067 5.00033 8.33391C5.00033 6.95307 5.56033 5.70307 6.4645 4.79807ZM13.5362 4.79807C14.0011 5.26191 14.3699 5.81306 14.6211 6.41986C14.8724 7.02666 15.0013 7.67714 15.0003 8.33391C15.0013 8.99067 14.8724 9.64115 14.6211 10.248C14.3699 10.8548 14.0011 11.4059 13.5362 11.8697L12.357 10.6906C12.667 10.3815 12.9129 10.0141 13.0805 9.60971C13.2481 9.20527 13.3342 8.7717 13.3337 8.33391C13.3342 7.89611 13.2481 7.46254 13.0805 7.0581C12.9129 6.65367 12.667 6.28634 12.357 5.97724L13.5362 4.79807ZM10.0003 10.0006C9.5583 10.0006 9.13438 9.82498 8.82182 9.51242C8.50926 9.19986 8.33366 8.77593 8.33366 8.33391C8.33366 7.89188 8.50926 7.46796 8.82182 7.1554C9.13438 6.84283 9.5583 6.66724 10.0003 6.66724C10.4424 6.66724 10.8663 6.84283 11.1788 7.1554C11.4914 7.46796 11.667 7.89188 11.667 8.33391C11.667 8.77593 11.4914 9.19986 11.1788 9.51242C10.8663 9.82498 10.4424 10.0006 10.0003 10.0006ZM9.167 11.6672H10.8337V18.3339H9.167V11.6672Z"}})])},[],!1,null,null,null).exports,Ot=Object(c.a)({name:"Twitch"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"19",height:"20",viewBox:"0 0 19 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M1.71875 0.125L0.429688 3.43359V16.9688H5.02734V19.375H7.60547L10.0547 16.9688H13.793L18.8203 11.9414V0.125H1.71875ZM17.0586 11.082L14.2227 13.918H9.625L7.17578 16.3672V13.918H3.26562V1.88672H17.0586V11.082ZM14.2227 5.15234H12.4609V10.1797H14.2227V5.15234ZM9.625 5.15234H7.86328V10.1797H9.625V5.15234Z"}})])},[],!1,null,null,null).exports,Et=n(113),Mt=(n(562),{name:"twitch-tile",mixins:[a.a,s.a],components:{IconLive:$t,IconTwitch:Ot,TwitchEmbed:Et.a},data:function(){return{isDelayed:!1}},mounted:function(){var t=this;setTimeout(function(){t.isDelayed=!0},1e3)},computed:{stream_url:function(){return this.$goharu.config.services.twitch.url}},props:{stream:{type:[Object,Array],default:null}},methods:{getImageUrl:function(){return this.stream&&this.stream.user&&this.stream.user.offline_image_url||"https://www.goha.ru/s/f/assets/stream_offline.jpg"},getDisplayName:function(){return this.stream&&this.stream.user&&this.stream.user.display_name||"GohaMedia"},isOnline:function(){return!localStorage.getItem("stream-force-disabled")&&(this.stream&&this.stream.id)},getStreamUrl:function(){return this.stream_url},openTwitch:function(){this.metrikaReachGoal("twitch-online"),this.$goharu.layer.open(o.a,{props:{url:this.stream_url}})}}}),jt=Object(c.a)(Mt,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"twitch-tile"},[n("div",{staticClass:"twitch-tile__ratio"},[n("div",{staticClass:"twitch-tile__video"},[t.isDelayed&&t.isOnline()&&t.getStreamUrl()?n("twitch-embed",{staticClass:"twitch-tile__iframe",class:{"twitch-tile__iframe--hover":t.isHover("stream")},attrs:{url:t.getStreamUrl(),autoplay:!0,controls:!1,muted:!0}}):t._e(),t._v(" "),t.isDelayed&&t.isOnline()||!t.getImageUrl()?t._e():n("img",{staticClass:"twitch-tile__img",class:{"twitch-tile__img--hover":t.isHover("stream")},attrs:{src:t.getImageUrl()}}),t._v(" "),n("div",{staticClass:"twitch-tile__overlay",on:{click:t.openTwitch,mouseenter:function(e){return t.enter("stream")},mouseleave:function(e){return t.leave("stream")}}})],1)]),t._v(" "),n("div",{staticClass:"twitch-tile__body",on:{click:function(e){return t.metrikaReachGoal("twitch-out")}}},[n("a",{staticClass:"twitch-tile__body-overlay",attrs:{href:t.getStreamUrl(),target:"_blank",rel:"nofollow noopener"},on:{mouseenter:function(e){return t.enter("body")},mouseleave:function(e){return t.leave("body")}}}),t._v(" "),n("div",{staticClass:"twitch-tile__status"},[t._v(t._s(t.isOnline()?"СейÑÐ°Ñ Ð² ÑÑиÑе":"ТÑанÑлÑÑÐ¸Ñ offline"))]),t._v(" "),n("div",{staticClass:"twitch-tile__title",class:{"twitch-tile__title--hover":t.isHover("body")}},[t._v(t._s(t.isOnline()?t.stream.title||"":"ÐоÑеÑиÑе Ð½Ð°Ñ ÐºÐ°Ð½Ð°Ð», ÑÑÐ¾Ð±Ñ ÑзнаÑÑ Ð±Ð¾Ð»ÑÑе!")+"\
1n ")]),t._v(" "),n("div",{staticClass:"twitch-tile__footer"},[t.isOnline()?n("div",{staticClass:"twitch-tile__game"},[t._v(t._s(t.stream.game_name||""))]):t._e(),t._v(" "),t.isOnline()?n("div",{staticClass:"twitch-tile__watchers"},[n("icon-live",{staticClass:"twitch-tile__watchers-icon"}),t._v(" "),n("span",{staticClass:"twitch-tile__watchers-label"},[t._v(t._s(t.stream.viewer_count||0))])],1):t._e(),t._v(" "),t.isOnline()?t._e():n("div",{staticClass:"twitch-tile__channel"},[n("icon-twitch",{staticClass:"twitch-tile__channel-icon"}),t._v(" "),n("span",{staticClass:"twitch-tile__channel-label"},[t._v(t._s(t.getDisplayName()))])],1)])])])},[],!1,null,null,null).exports,Pt=Object(c.a)({name:"icon-vklive"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M12.9992 10.1002C12.9992 9.60271 13.4025 9.19943 13.9 9.19943C14.3975 9.19943 14.8008 9.60271 14.8008 10.1002C14.8008 10.5977 14.3975 11.001 13.9 11.001C13.4025 11.001 12.9992 10.5977 12.9992 10.1002Z"}}),this._v(" "),e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.34466e-08 10.4734C4.58911e-06 11.6499 0.000302484 12.6532 0.02 13.539C0.0218101 13.5399 0.0236207 13.5408 0.0254317 13.5417C0.0967445 16.0688 0.368025 17.568 1.4 18.6C2.8 20 5.06 20 9.58 20H10.42C14.94 20 17.2 20 18.6 18.6C19.6319 17.5681 19.9032 16.0691 19.9746 13.5422C19.9764 13.5413 19.9782 13.5404 19.98 13.5396C20 12.6396 20 11.5996 20 10.4201V9.58007C20 9.5801 20 9.58005 20 9.58007C20 9.15632 20 8.75236 19.9988 8.36719C19.9964 7.55168 19.9888 6.82003 19.9651 6.16132C19.9582 5.96871 19.9499 5.78191 19.94 5.60059C19.8283 3.5817 19.5094 2.30941 18.6 1.4C17.2 0 14.94 0 10.42 0H9.58C5.06 0 2.8 0 1.4 1.4C0.490536 2.30946 0.171875 3.58163 0.0602222 5.60059L0.06 5.60461C0.00354924 6.62839 0.000209952 7.84408 1.24195e-05 9.30168C0 9.39332 0 9.48592 0 9.57949M10.42 1C12.7082 1 14.324 1.00211 15.5471 1.16613C16.7418 1.32634 17.4101 1.62432 17.8929 2.10711C18.3757 2.5899 18.6737 3.25817 18.8339 4.45291C18.8806 4.80142 18.9142 5.18183 18.9383 5.60059H1.06164C1.08578 5.18172 1.11938 4.80124 1.16613 4.45267C1.32633 3.2581 1.62429 2.58992 2.10711 2.10711C2.5899 1.62432 3.25817 1.32634 4.45291 1.16613C5.67599 1.00211 7.29178 1 9.58 1H10.42ZM18.9583 13.995C18.9339 14.5771 18.8952 15.0896 18.8339 15.5471C18.6737 16.7418 18.3757 17.4101 17.8929 17.8929C17.4101 18.3757 16.7418 18.6737 15.5471 18.8339C14.324 18.9979 12.7082 19 10.42 19H9.58C7.29178 19 5.67599 18.9979 4.45291 18.8339C3.25817 18.6737 2.5899 18.3757 2.10711 17.8929C1.62432 17.4101 1.32634 16.7418 1.16613 15.5471C1.10475 15.0895 1.06605 14.5769 1.04164 13.9946C3.5234 15.0025 6.63914 15.5996 10 15.5996C13.3609 15.5996 16.4766 15.0025 18.9583 13.995ZM13.9 7.20096C12.2988 7.20096 11.0008 8.49899 11.0008 10.1002C11.0008 11.7014 12.2988 12.9994 13.9 12.9994C15.5012 12.9994 16.7992 11.7014 16.7992 10.1002C16.7992 8.49899 15.5012 7.20096 13.9 7.20096ZM7.61313 10.2L9.10656 11.6934L7.69344 13.1066L6.2 11.6131L4.70656 13.1066L3.29344 11.6934L4.78687 10.2L3.29344 8.70656L4.70656 7.29344L6.2 8.78687L7.69344 7.29344L9.10656 8.70656L7.61313 10.2Z"}}),this._v(" "),e("path",{attrs:{d:"M0 10.419V10.4205C0 10.4382 8.34466e-08 10.4558 8.34466e-08 10.4734C8.34466e-08 10.4553 0 10.4372 0 10.419Z"}})])},[],!1,null,null,null).exports,St=n(162),It=(n(564),{name:"vklive-tile",mixins:[a.a,s.a],components:{IconVklive:Pt,VkliveEmbed:St.a},props:{stream:{type:[Object,Array],default:null}},data:function(){return{isLoaded:!1,isDelayed:!1}},mounted:function(){var t=this;setTimeout(function(){t.isDelayed=!0},1e3)},methods:{getImageUrl:function(){return"https://www.goha.ru/s/f/assets/stream_offline.jpg"},getDisplayName:function(){return this.stream&&this.stream.display_name||"GohaMedia"},isOnline:function(){return!localStorage.getItem("stream-force-disabled")&&(this.stream&&this.stream.id)},getStreamUrl:function(){return this.stream.url},openVklive:function(){this.metrikaReachGoal("vklive-online"),this.$goharu.layer.open(o.a,{props:{url:this.stream.url}})},load:function(t){this.isLoaded=!0}}}),Vt=Object(c.a)(It,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vklive-tile"},[n("div",{staticClass:"vklive-tile__ratio"},[n("div",{staticClass:"vklive-tile__video"},[t.isDelayed&&t.isOnline()||!t.getImageUrl()?t._e():n("img",{staticClass:"vklive-tile__img",class:{"vklive-tile__img--hover":t.isHover("stream")},attrs:{src:t.getImageUrl()}}),t._v(" "),t.isDelayed&&t.isOnline()&&t.getStreamUrl()?n("vklive-embed",{staticClass:"vklive-tile__iframe",class:{"vklive-tile__iframe--hover":t.isHover("stream")},attrs:{autoplay:!0,controls:!1,muted:!0,url:t.getStreamUrl()},on:{load:t.load}}):t._e(),t._v(" "),t.isOnline()&&!t.isLoaded?n("div",{staticClass:"vklive-tile__waiting"}):t._e(),t._v(" "),n("div",{staticClass:"vklive-tile__overlay",on:{click:t.openVklive,mouseenter:function(e){return t.enter("stream")},mouseleave:function(e){return t.leave("stream")}}})],1)]),t._v(" "),n("div",{staticClass:"vklive-tile__body",on:{click:function(e){return t.metrikaReachGoal("vklive-out")}}},[n("a",{staticClass:"vklive-tile__body-overlay",attrs:{href:t.stream.url,rel:"nofollow noopener",target:"_blank"},on:{mouseenter:function(e){return t.enter("body")},mouseleave:function(e){return t.leave("body")}}}),t._v(" "),n("div",{staticClass:"vklive-tile__status"},[t._v(t._s(t.isOnline()?"СейÑÐ°Ñ Ð² ÑÑиÑе":"ТÑанÑлÑÑÐ¸Ñ offline"))]),t._v(" "),n("div",{staticClass:"vklive-tile__title",class:{"vklive-tile__title--hover":t.isHover("body")}},[t._v("\n "+t._s(t.isOnline()&&t.stream.title?t.stream.title:"ÐоÑеÑиÑе Ð½Ð°Ñ ÐºÐ°Ð½Ð°Ð», ÑÑÐ¾Ð±Ñ ÑзнаÑÑ Ð±Ð¾Ð»ÑÑе!")+"\
1n ")]),t._v(" "),n("div",{staticClass:"vklive-tile__footer"},[t.isOnline()&&t.stream.game_name?n("div",{staticClass:"vklive-tile__game"},[t._v(t._s(t.stream.game_name))]):t._e(),t._v(" "),t.isOnline()&&t.stream.game_name?t._e():n("div",{staticClass:"vklive-tile__channel"},[n("icon-vklive",{staticClass:"vklive-tile__channel-icon"}),t._v(" "),n("span",{staticClass:"vklive-tile__channel-label"},[t._v(t._s(t.getDisplayName()))])],1)])])])},[],!1,null,null,null).exports,Dt=Object(c.a)({name:"icon-youtube"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M19.3008 5.64453C19.7227 7.12109 19.7227 10.2852 19.7227 10.2852C19.7227 10.2852 19.7227 13.4141 19.3008 14.9258C19.0898 15.7695 18.4219 16.4023 17.6133 16.6133C16.1016 17 10.125 17 10.125 17C10.125 17 4.11328 17 2.60156 16.6133C1.79297 16.4023 1.125 15.7695 0.914062 14.9258C0.492188 13.4141 0.492188 10.2852 0.492188 10.2852C0.492188 10.2852 0.492188 7.12109 0.914062 5.64453C1.125 4.80078 1.79297 4.13281 2.60156 3.92188C4.11328 3.5 10.125 3.5 10.125 3.5C10.125 3.5 16.1016 3.5 17.6133 3.92188C18.4219 4.13281 19.0898 4.80078 19.3008 5.64453ZM8.15625 13.1328L13.1484 10.2852L8.15625 7.4375V13.1328Z"}})])},[],!1,null,null,null).exports,At=n(91),Ht=(n(566),{name:"youtube-tile",mixins:[a.a,s.a],components:{IconYoutube:Dt,YoutubeEmbed:At.a},props:{stream:{type:[Object,Array],default:null}},data:function(){return{isDelayed:!1}},mounted:function(){var t=this;setTimeout(function(){t.isDelayed=!0},1e3)},methods:{getImageUrl:function(){return"https://www.goha.ru/s/f/assets/stream_offline.jpg"},getDisplayName:function(){return this.stream&&this.stream.display_name||"GohaMedia"},isOnline:function(){return!localStorage.getItem("stream-force-disabled")&&(this.stream&&this.stream.id)},getStreamUrl:function(){return this.stream.url},openYoutube:function(){this.metrikaReachGoal("youtube-online"),this.$goharu.layer.open(o.a,{props:{url:this.stream.url}})}}}),Tt=Object(c.a)(Ht,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"youtube-tile"},[n("div",{staticClass:"youtube-tile__ratio"},[n("div",{staticClass:"youtube-tile__video"},[t.isDelayed&&t.isOnline()||!t.getImageUrl()?t._e():n("img",{staticClass:"youtube-tile__img",class:{"youtube-tile__img--hover":t.isHover("stream")},attrs:{src:t.getImageUrl()}}),t._v(" "),t.isDelayed&&t.isOnline()&&t.getStreamUrl()?n("youtube-embed",{staticClass:"youtube-tile__iframe",class:{"youtube-tile__iframe--hover":t.isHover("stream")},attrs:{autoplay:!0,controls:!1,muted:!0,url:t.getStreamUrl()}}):t._e(),t._v(" "),n("div",{staticClass:"youtube-tile__overlay",on:{click:t.openYoutube,mouseenter:function(e){return t.enter("stream")},mouseleave:function(e){return t.leave("stream")}}})],1)]),t._v(" "),n("div",{staticClass:"youtube-tile__body",on:{click:function(e){return t.metrikaReachGoal("youtube-out")}}},[n("a",{staticClass:"youtube-tile__body-overlay",attrs:{href:t.stream.url,rel:"nofollow noopener",target:"_blank"},on:{mouseenter:function(e){return t.enter("body")},mouseleave:function(e){return t.leave("body")}}}),t._v(" "),n("div",{staticClass:"youtube-tile__status"},[t._v(t._s(t.isOnline()?"СейÑÐ°Ñ Ð² ÑÑиÑе":"ТÑанÑлÑÑÐ¸Ñ offline"))]),t._v(" "),n("div",{staticClass:"youtube-tile__title",class:{"youtube-tile__title--hover":t.isHover("body")}},[t._v("\n "+t._s(t.isOnline()&&t.stream.title?t.stream.title:"ÐоÑеÑиÑе Ð½Ð°Ñ ÐºÐ°Ð½Ð°Ð», ÑÑÐ¾Ð±Ñ ÑзнаÑÑ Ð±Ð¾Ð»ÑÑе!")+"\n ")]),t._v(" "),n("div",{staticClass:"youtube-tile__footer"},[t.isOnline()&&t.stream.game_name?n("div",{staticClass:"youtube-tile__game"},[t._v(t._s(t.stream.game_name))]):t._e(),t._v(" "),t.isOnline()&&t.stream.game_name?t._e():n("div",{staticClass:"youtube-tile__channel"},[n("icon-youtube",{staticClass:"youtube-tile__channel-icon"}),t._v(" "),n("span",{staticClass:"youtube-tile__channel-label"},[t._v(t._s(t.getDisplayName()))])],1)])])])},[],!1,null,null,null).exports,Rt=(n(568),{name:"button-to-top",data:function(){return{breakpoints:{top:100,width:1360}}},mounted:function(){var t=this,e=this.$el.querySelector(".button-to-top-marker");e&&void 0!==window.IntersectionObserver?(e.style.top=this.breakpoints.top+"px",document.body.appendChild(e),new IntersectionObserver(function(){return t.checkVisible()},{threshold:1}).observe(e)):window.addEventListener("scroll",function(e){return t.checkVisible()});window.addEventListener("resize",function(e){return t.checkVisible()}),this.checkVisible()},methods:{checkVisible:function(){this.$el&&this.$el.classList&&this.$el.classList.toggle("button-to-top__visible",window.scrollY>this.breakpoints.top&&window.innerWidth>=this.breakpoints.width)},scrollToTop:function(){window.scrollTo({top:0,behavior:"smooth"})}}}),Bt=Object(c.a)(Rt,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"button-to-top",on:{click:this.scrollToTop}},[e("div",{staticClass:"button-to-top-marker"}),this._v(" "),e("div",{staticClass:"button-to-top__bg"}),this._v(" "),e("div",{staticClass:"button-to-top__label"},[e("svg",{attrs:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M12 6.00098L11.6464 5.64742L12 5.29387L12.3536 5.64742L12 6.00098ZM12.5 18.001C12.5 18.2771 12.2761 18.501 12 18.501C11.7239 18.501 11.5 18.2771 11.5 18.001L12.5 18.001ZM7.64645 9.64742L11.6464 5.64742L12.3536 6.35453L8.35355 10.3545L7.64645 9.64742ZM12.3536 5.64742L16.3536 9.64742L15.6464 10.3545L11.6464 6.35453
1L12.3536 5.64742ZM12.5 6.00098L12.5 18.001L11.5 18.001L11.5 6.00098L12.5 6.00098Z"}})]),this._v(" "),e("span",[this._v("ÐавеÑÑ
")])])])},[],!1,null,null,null).exports,Ut=Object(c.a)({name:"icon-submenu-arrow"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 6",height:"6",width:"6"}},[e("path",{attrs:{d:"M3.00295 0H4.25556C5.80842 0 6.44646 1.17573 5.66768 2.61163L5.03903 3.76735L4.41038 4.92308C3.6316 6.35897 2.36022 6.35897 1.58145 4.92308L0.952796 3.76735L0.324145 2.61163C-0.440558 1.17573 0.192785 0 1.75034 0H3.00295Z"}})])},[],!1,null,null,null).exports;function Zt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function qt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zt(Object(n),!0).forEach(function(e){r()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}e.a={components:{AdsAdfoxBox:Z,AdsAdfoxSection:N,AdsAdfoxBranding:z,AdsAdfoxRollup:G,AdsAdfoxFullscreen:Q,AdsAdfoxFlyroll:J,AdsAdfoxBillboard:et,AdsAdfoxVideo:rt,TwitchTile:jt,VkliveTile:Vt,YoutubeTile:Tt,ButtonToTop:Bt,IconSubMenu:Ut},mixins:[a.a,b,C,w.a,x,{},O.a,s.a],data:function(){return{mobileMenuLayer:null,searchLayer:null,layoutLayerOpened:{mobile:!1,search:!1},layoutSearchValue:"",layoutSubmenuOpenData:{}}},mounted:function(){this.$goharu.$on("app.layer:change",this.handleLayoutLayerChange)},beforeDestroy:function(){this.$goharu.$off("app.layer:change",this.handleLayoutLayerChange)},computed:{isTouchScreen:function(){return"ontouchstart"in window}},methods:{layoutSubmenuClose:function(t){if(!this.isTouchScreen)return!0;this.layoutSubmenuOpenData=qt(qt({},this.layoutSubmenuOpenData),{},r()({},t,!1))},layoutSubmenuToggle:function(t,e){if(!this.isTouchScreen)return!0;e.stopPropagation(),e.preventDefault();var n=!!this.layoutSubmenuOpenData[t];this.layoutSubmenuOpenData={},this.layoutSubmenuOpenData=qt(qt({},this.layoutSubmenuOpenData),{},r()({},t,!n))},layoutSubmenuOpened:function(t){return this.isTouchScreen?!!this.layoutSubmenuOpenData[t]:this.isHover(t)},handleLayoutLayerChange:function(t){var e=this;this.$nextTick(function(){e.layoutLayerOpened.mobile=e.layoutMenuMobileOpened(),e.layoutLayerOpened.search=e.layoutSearchOpened(),e.$refs.layoutSearchInput.classList.toggle("layout-menu-header__links-search-opened",e.layoutLayerOpened.search),e.$refs.layoutHeaderButtons.classList.toggle("layout-menu-header__buttons-search-opened",e.layoutLayerOpened.search)})},layoutMenuMobileOpened:function(){return this.mobileMenuLayer&&this.mobileMenuLayer.isOpened()},layoutSearchOpened:function(){return this.searchLayer&&this.searchLayer.isOpened()},layoutMenuMobileOpen:function(){this.layoutMenuMobileOpened()?this.mobileMenuLayer.close():(this.metrikaReachGoal("mobile_menu_open"),this.$goharu.layer.closeAll(),this.$goharu.$emit("layout.menu:toggle",!1),delete this.mobileMenuLayer,this.mobileMenuLayer=this.$goharu.layer.open(R,{}))},layoutSearchInput:function(t){var e=t.currentTarget.value;this.layoutSearchValue=e,this.$goharu.$emit("app.search:input",e)},layoutSearchNoResults:function(t){this.$refs.layoutSearchInput.classList.toggle("layout-menu-header__links-search-no-results",t)},layoutSearchOpen:function(){this.layoutSearchOpened()?this.searchLayer.close():(this.metrikaReachGoal("search"),this.$goharu.layer.closeAll(),this.$goharu.$emit("layout.menu:toggle",!1),delete this.searchLayer,this.searchLayer=this.$goharu.layer.open(kt,{on:{hasNoResults:this.layoutSearchNoResults},props:{refInput:this.$refs.layoutSearchInput.querySelector("input")}}))}}}},function(t,e,n){"use strict";n(646);var i={name:"icon-g",props:{animated:{type:Boolean,default:!1}}},r=n(0),a=Object(r.a)(i,function(){var t=this.$createElement,e=this._self._c||t;
1return e("svg",{staticClass:"icon-g",class:{"icon-g--animated":this.animated},attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500.28 500.57",width:"32"}},[e("polygon",{staticClass:"icon-g__shape icon-g__shape--primary icon-g__shape--animation_01",attrs:{points:"250 90.57 455 295.57 500.28 250 250.28 0 250 90.57"}}),this._v(" "),e("polygon",{staticClass:"icon-g__shape icon-g__shape--primary icon-g__shape--animation_02",attrs:{points:"250.28 90.57 90.57 250.28 0 250 250 0 250.28 90.57"}}),this._v(" "),e("polygon",{staticClass:"icon-g__shape icon-g__shape--primary icon-g__shape--animation_03",attrs:{points:"250.57 410 90.85 250.28 0.28 250.57 250.28 500.57 250.57 410"}}),this._v(" "),e("polygon",{staticClass:"icon-g__shape icon-g__shape--secondary icon-g__shape--animation_04",attrs:{points:"250 410 309.72 350.28 400.28 350.57 250.28 500.57 250 410"}}),this._v(" "),e("polygon",{staticClass:"icon-g__shape icon-g__shape--secondary icon-g__shape--animation_05",attrs:{points:"250 290.57 309.72 350.28 400.28 350 250.28 200 250 290.57"}}),this._v(" "),e("polygon",{staticClass:"icon-g__shape icon-g__shape--inner",attrs:{points:"250.28 90.28 91.28 250.28 250.28 410.28 250.28 90.28"}})])},[],!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var i=n(49),r=n(12),a=n(113),s=n(91),o=n(162),l=n(85),c=n(55),u=n(65),d=(n(507),{name:"layer-video",components:{CloseIcon:i.a,EmbedTwitch:a.a,EmbedYoutube:s.a,EmbedVklive:o.a,EmbedVkvideo:l.a,LayerContainer:c.a,LayerWrapper:u.a},props:{layer:{type:Object,default:null},url:{type:String,required:!0},provider:{type:String,default:""},autoplay:{type:Boolean,default:!0}},computed:{embed:function(){var t=this.$goharu.config.embed;return{twitch:t.twitch,youtube:t.youtube,vklive:t.vklive,vkvideo:t.vkvideo}},service:function(){var t=this.embed,e=t.twitch,n=t.youtube,i=t.vklive,r=t.vkvideo;switch(!0){case this.provider===e.provider:case this.provider===n.provider:case this.provider===i.provider:case this.provider===r.provider:return this.provider;case e.channel.regexp.test(this.url):case e.video.regexp.test(this.url):case e.clip.regexp.test(this.url):case e.clipAlt.regexp.test(this.url):return e.provider;case n.regexp.test(this.url):return n.provider;case i.regexp.test(this.url):return i.provider;case r.regexp.test(this.url):return r.provider;default:return null}}},mixins:[r.a],methods:{close:function(){this.$emit("close"),this.layer&&this.layer.close&&this.layer.close()},isTwitch:function(){var t=this.embed.twitch;return this.service===t.provider},isYoutube:function(){var t=this.embed.youtube;return this.service===t.provider},isVklive:function(){var t=this.embed.vklive;return this.service===t.provider},isVkvideo:function(){var t=this.embed.vkvideo;return this.service===t.provider}}}),h=n(0),p=Object(h.a)(d,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("layer-container",{staticClass:"layer-video"},[n("layer-wrapper",{attrs:{padding:"static"}},[n("div",{staticClass:"layer-video__overlay",on:{click:t.close,mouseenter:function(e){return t.enter("close")},mouseleave:function(e){return t.leave("close")}}}),t._v(" "),n("div",{staticClass:"layer-video__box"},[n("close-icon",{staticClass:"layer-video__close",class:{"layer-video__close--hover":t.isHover("close")}}),t._v(" "),n("div",{staticClass:"layer-video__ratio"},[t.isTwitch()?n("embed-twitch",{staticClass:"layer-video__embed",attrs:{url:t.url,autoplay:t.autoplay,muted:!1}}):t._e(),t._v(" "),t.isYoutube()?n("embed-youtube",{staticClass:"layer-video__embed",attrs:{url:t.url,autoplay:t.autoplay,muted:!1}}):t._e(),t._v(" "),t.isVklive()?n("embed-vklive",{staticClass:"layer-video__embed",attrs:{url:t.url,autoplay:t.autoplay,muted:!1}}):t._e(),t._v(" "),t.isVkvideo()?n("embed-vkvideo",{staticClass:"layer-video__embed",attrs:{url:t.url,autoplay:t.autoplay,muted:!1}}):t._e()],1)],1)])],1)},[],!1,null,null,null);e.a=p.exports},function(t,e,n){"use strict";var i=n(4),r=n.n(i);e.a={methods:{scrollTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t&&t.parentNode?t:document.querySelector(t);n&&window.scrollTo({top:r()(n).offset().top-e,behavior:"smooth"})},scrollIntoView:function(t){var e=document.querySelector(t);e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}}}},function(t,e,n){"use strict";var i=n(7),r=n.n(i),a=n(8),s=n.n(a),o=n(9),l=n.n(o),c=n(6),u=n.n(c);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?d(Object(n),!0).forEach(function(e){r()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var p,m=(p=function(t,e){var n=document.createElement(t);return u.a.each(e,function(t,e){n[e]=t}),n},new(l()(function t(){s()(this,t),this.scripts={},this.loaded={},this.loading={}},[{key:"add",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return u.a.isArray(e)||(e=[e]),u.a.each(e,function(e){t.isAdded(e)||(t.scripts[t.file(e)]=e)}),this}},{key:"load",value:function(){var t=this,e=[];return u.a.each(this.scripts,function(n){if(!t.isLoaded(n))if(t.isLoading(n)){var i=t.loading[t.file(n)],r=new Promise(function(t,e){i.addEventListener("load",function(){return t()}),i.addEventListener("error",function(){return e()})});e.push(r)}else{var a={id:t.file(n)},s=null;if(/(\.|\?|&)css/.test(n))s=p("link",h(h({},a),{href:n,rel:"stylesheet"}));else{if(!/(\.|\?|&)js/.test(n))return;s=p("script",h(h({},a),{src:n}))}var o=new Promise(function(e,n){s.addEventListener("load",function(){return e()}),s.addEventListener("error",function(){return n()}),document.getElementsByTagName("head")[0].appendChild(s),t.loading[a.id]=s}).then(function(){t.loaded[a.id]=s,t.loading[a.id]=null,delete t.loading[a.id]});e.push(o)}}),Promise.all(e)}},{key:"isLoading",value:function(t){return this.loading[this.file(t)]||null}},{key:"isLoaded",value:function(t){return this.loaded[this.file(t)]||null}},{key:"isAdded",value:function(t){return this.scripts[this.file(t)]||null}},{key:"file",value:function(t){return btoa(t)}}])));e.a=m},function(t,e,n){"use strict";n(503);var i=n(0),r=Object(i.a)({name:"layer-container",methods:{click:function(t){this.$emit("click",t)},isActiveListener:function(t){return!!this.$listeners[t]||null}}},function(){var t=this.$createElement;return(this._self._c||t)("div",{ref:"container",staticClass:"layer-container",on:this._d({},[this.isActiveListener("click")&&"click",this.click])},[this._t("default")],2)},[],!1,null,null,null);e.a=r.exports},,function(t,e,n){"use strict";var i=n(122);e.a={props:{owner:{type:Number,default:382171}},data:function(){return{data:{},isVisible:!1,isRendered:!1}},mounted:function(){var t=this;this.$goharu.auth.noAds()?this.isVisible=!1:(this.isVisible=!0,this.$nextTick(function(){try{window.yaContextCb.push(function(){window.Ya.adfoxCode.create({ownerId:t.owner,element:t.$refs.banner,params:i.a[t.type].params,lazyLoad:{fetchMargin:i.a[t.type].fetchMargin,mobileScaling:1},onLoad:function(e){return t.handleLoad(e)},onError:function(e){return t.handleError(e)},onRender:function(){return t.handleRender()},onStub:function(){return t.handleStub()}})})}catch(e){t.isVisible=!1}}))},methods:{handleLoad:function(t){this.data=t},handleRender:function(){this.isRendered=!0},handleError:function(t){this.isVisible=!1},handleStub:function(){this.isVisible=!1}}}},function(t,e,n){"use strict";var i=n(12);n(755);e.a={mixins:[i.a]}},function(t,e,n){"use strict";e.a={methods:{apiURL:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new URL(t,this.$goharu.$route.api);for(var i in e){null!==e[i]&&n.searchParams.append(i,e[i])}return n}}}},,,function(t,e,n){"use strict";n(598);e.a={}},,function(t,e,n){"use strict";var i=n(3),r=n.n(i),a=n(55),s=n(51),o=n(49),l=n(0),c=Object(l.a)({name:"icon-download"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",height:"20",width:"20",fill:"none"}},[e("path",{attrs:{d:"M5.5 17Q4.875 17 4.438 16.562Q4 16.125 4 15.5V14H5.5V15.5Q5.5 15.5 5.5 15.5Q5.5 15.5 5.5 15.5H14.5Q14.5 15.5 14.5 15.5Q14.5 15.5 14.5 15.5V14H16V15.5Q16 16.125 15.562 16.562Q15.125 17 14.5 17ZM10 14 6 10 7.062 8.938 9.25 11.125V4H10.75V11.125L12.938 8.938L14 10Z"}})])},[],!1,null,null,null).exports,u=n(83),d=n(84),h=n(12),p=n(70),m=(n(668),{name:"layer-gallery",components:{LayerContainer:a.a,IconClose:o.a,IconDownload:c,IconChevronRight:u.a,IconChevronLeft:d.a,IconG:s.a},mixins:[h.a],props:{images:{type:Array,required:!0},position:{type:Number,default:0},layer:{type:Object}},data:function(){return{current:this.position,dir:1,loading:!1}},computed:{media:function(){return r()(this.images)},currentMedia:function(){return this.media[this.current]},currentCaption:function(){return this.currentMedia.caption||this.currentMedia.alt||null},prevMedia:function(){var t=(this.current-1+this.media.length)%this.media.length;return this.media[t]},nextMedia:function(){var t=(this.current+1)%this.media.length;return this.media[t]},mediaCount:function(){return this.media.length},mediaNum:function(){return this.current+1},mediaLastIndex:function(){return this.media.length-1},isGallery:function(){return this.mediaCount>1}},watch:{current:function(t,e){0===t&&e===this.mediaLastIndex?this.dir=1:t===this.mediaLastIndex&&0===e?this.dir=0:this.dir=t>e?1:0,this.loading=!0},loading:function(t){var e=this;this.loadingInterval&&clearInterval(this.loadingInterval),t&&(this.loadingInterval=setInterval(function(){(e.$refs.img.width||e.$refs.img.height)&&(e.loadingInterval&&clearInterval(e.loadingInterval),e.loading=!1)},50))}},created:function(){var t=this;this.cache={},this.handleKeyDown=function(e){"ArrowRight"===e.key?t.next():"ArrowLeft"===e.key&&t.prev()}},mounted:function(){this.loading=!0,this.preloadImages(),this.isGallery&&window.addEventListener("keydown",this.handleKeyDown)},updated:function(){this.preloadImages()},beforeDestroy:function(){this.handleKeyDown&&window.removeEventListener("keydown",this.handleKeyDown)},methods:{preloadImages:function(){this.cache[this.nextMedia.url]||(this.cache[this.nextMedia.url]=!0,Object(p.a)(this.nextMedia.url)),this.cache[this.prevMedia.url]||(this.cache[this.prevMedia.url]=!0,Object(p.a)(this.prevMedia.url))},next:function(){this.current=(this.current+1)%this.media.length},prev:function(){this.current=(this.current-1+this.media.length)%this.media.length},move:function(t){this.current=t}}}),f=Object(l.a)(m,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("layer-container",{staticClass:"layer-gallery"},[n("div",{staticClass:"layer-gallery__wrapper"},[n("div",{staticClass:"layer-gallery__box"},[n("div",{staticClass:"layer-gallery__box-area"},[n("transition",{attrs:{name:t.dir?"n":"p"}},[n("div",{key:t.currentMedia.id+t.currentMedia.url,staticClass:"layer-gallery__image"},[t.loading?n("div",{staticClass:"layer-gallery__loading"},[n("icon-g",{staticClass:"layer-gallery__loading-icon",attrs:{animated:!0}})],1):t._e(),t._v(" "),n("img",{ref:"img",staticClass:"layer-gallery__image-img",attrs:{src:t.currentMedia.url}})])]),t._v(" "),n("div",{staticClass:"layer-gallery__box-overlay"}),t._v(" "),t.isGallery?n("div",{staticClass:"layer-gallery__box-prev",class:{"layer-gallery__box-prev--hover":t.isHover("prev")},on:{click:t.prev}},[n("icon-chevron-left",{staticClass:"layer-gallery__box-next-icon"})],1):t._e(),t._v(" "),t.isGallery?n("div",{staticClass:"layer-gallery__box-next",on:{click:t.next}},[n("icon-chevron-right",{staticClass:"layer-gallery__box-next-icon"})],1):t._e()],1),t._v(" "),n("div",{staticClass:"layer-gallery__box-close"},[n("icon-close",{staticClass:"layer-gallery__box-close-icon",class:{"layer-gallery__box-close-icon--hover":t.isHover("close")}})],1),t._v(" "),n("a",{staticClass:"layer-gallery__box-download",attrs:{href:t.currentMedia.url,target:"_blank"}},[n("icon-download",{staticClass:"layer-gallery__box-download-icon"})],1),t._v(" "),t.isGallery?n("div",{staticClass:"layer-gallery__box-navigation"},[n("p",{staticClass:"layer-gallery__box-navigation-label"},[t._v("ÐзобÑажение "+t._s(t.mediaNum)+" из "+t._s(t.mediaCount))])]):t._e(),t._v(" "),t.currentCaption?n("div",{staticClass:"layer-gallery__box-caption"},[t._v(t._s(t.currentCaption))]):t._e()]),t._v(" "),t.isGallery?n("div",{staticClass:"layer-gallery__prev-overlay",on:{click:t.prev,mouseenter:function(e){return t.enter("prev")},mouseleave:function(e){return t.leave("prev")}}}):t._e(),t._v(" "),n("div",{staticClass:"layer-gallery__close-overlay",class:{"layer-gallery__close-overlay--wide":!t.isGallery},on:{click:t.layer.close,mouseenter:function(e){return t.enter("close")},mouseleave:function(e){return t.leave("close")}}})])])},[],!1,null,null,null);e.a=f.exports},function(t,e,n){"use strict";n(505);var i={static:"layer-wrapper--padding_static",percent:"layer-wrapper--padding_percent"},r={name:"index",props:{padding:{type:String,validator:function(t){for(var e in i)if(e===t)return!0;return!1},default:null}},methods:{getClassNames:function(){var t={};return this.padding&&i[this.padding]&&(t[i[this.padding]]=!0),t}}},a=n(0),s=Object(a.a)(r,function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"layer-wrapper",class:this.getClassNames()},[this._t("default")],2)},[],!1,null,null,null);e.a=s.exports},,,,,function(t,e,n){"use strict";e.a=function(t){return new Promise(function(e,n){var i;t instanceof Image?i=t:(i=new Image).src=t;var r=setInterval(function(){i.width&&i.height&&a()}
1,25),a=function(){clearInterval(r),e({ref:i,width:i.naturalWidth||i.width,height:i.naturalHeight||i.height})};i.onload=function(){a()},i.onerror=function(){n(null)}})}},function(t,e,n){"use strict";var i=n(3),r=n.n(i),a=n(6),s=n.n(a),o=n(74),l=n(149),c=(n(743),{name:"filter-section",props:{title:{type:String,default:null},expandTitle:{type:String,default:null},options:{type:Array},optionsLimit:{type:Number,default:6}},mixins:[l.a],components:{IconChevronDown:o.a},computed:{optionsLimited:function(){return this.expanded?this.options:r()(this.options).splice(0,this.optionsLimit)}},data:function(){return{expanded:!!s.a.where(this.options,{selected:!0}).length}},methods:{expand:function(){this.expanded=!0},hasHiddenOptions:function(){return this.options.length>this.optionsLimited.length},handleClick:function(t){var e=this.closest(t.target,".filter-section__list-item",this.$refs.container);if(e){var n=+e.dataset.key;this.$emit("select",n)}}}}),u=n(0),d=Object(u.a)(c,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"container",staticClass:"filter-section",on:{click:t.handleClick}},[t.title?n("div",{staticClass:"filter-section__header"},[t._v(t._s(t.title))]):t._e(),t._v(" "),n("transition-group",{staticClass:"filter-section__list",attrs:{tag:"div",appear:""}},t._l(t.optionsLimited,function(e,i){return n("p",{key:e.id,staticClass:"filter-section__list-item",class:{"filter-section__list-item--selected":e.selected},attrs:{"data-key":i}},[t._v(t._s(e.title))])}),0),t._v(" "),t.hasHiddenOptions()?n("div",{staticClass:"filter-section__expand",on:{click:t.expand}},[n("span",{staticClass:"filter-section__expand-label"},[t._v(t._s(t.expandTitle))]),t._v(" "),n("icon-chevron-down",{staticClass:"filter-section__expand-icon"})],1):t._e()],1)},[],!1,null,null,null);e.a=d.exports},,function(t,e,n){"use strict";n(666);e.a={}},function(t,e,n){"use strict";var i=n(0),r=Object(i.a)({name:"icon-chevron-down"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M6.0006 4.97656L1.8756 0.851563L0.697266 2.0299L6.0006 7.33323L11.3039 2.0299L10.1256 0.851563L6.0006 4.97656Z",fill:"currentColor"}})])},[],!1,null,null,null);e.a=r.exports},function(t,e,n){"use strict";e.a=function(){var t=t={dependencies:[]};return[function(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=null===(n=i)||n.splice?n:[n];if(e&&e.call)switch(!0){case null===r:case!t.effect:case!function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t.dependencies,r):t.effect&&t.effect.call&&t.effect(),t.dependencies=r,t.effect=e()||!0}},function(){t.effect&&t.effect.call&&t.effect(),t={dependencies:[]}}]}},,,,,function(t,e,n){"use strict";e.a={methods:{textTruncate:function(t,e){return e?t.toString().length<=e?t:t.toString().slice(0,e).trim().replace(/([\-â,. ]+)$/g,"")+"...":""}}}},function(t,e,n){"use strict";var i=n(145);n(816);e.a={mixins:[i.a]}},function(t,e,n){"use strict";var i=n(17),r=n.n(i),a=n(164),s=n(91),o={name:"embed-viqeo",props:{url:{type:String,required:!0}}},l=n(0),c=Object(l.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"viqeo-external_link_player",staticStyle:{width:"100%",height:"0","padding-bottom":"56.25%"},attrs:{"data-videoSrc":this.url,"data-playerId":"5566","data-profile":"19524"}})},[],!1,null,null,null).exports,u=n(114),d=n(49),h=(n(624),{name:"ratio-container",props:{ratio:{type:Number,default:16/9}},computed:{style:function(){return{paddingTop:"".concat((100/this.ratio).toFixed(4),"%")}}}}),p=Object(l.a)(h,function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"ratio-container",style:this.style},[this._t("default")],2)},[],!1,null,null,null).exports,m=(n(626),Object(l.a)({name:"ratio-box"},function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"ratio-box"},[this._t("default")],2)},[],!1,null,null,null).exports),f=n(52),v=n(12),g=n(54),_=(n(628),{name:"editor-body-youtube",mixins:[v.a],components:{EmbedYoutube:s.a,EmbedViqeo:c,IconPlayCircle:u.a,IconClose:d.a,AdsAdfoxPreroll:a.a,RatioContainer:p,RatioBox:m},props:{url:{type:String},title:{type:String},data:{type:[Object,Array],default:null},popup:{type:Boolean,default:!1}},data:function(){return{isPlaying:!1,isPrerollPlaying:!1,useAltPreview:!1,isClicked:!1,useViqeoTv:parseInt(this.$goharu.$data.use_viqeo_tv||0,10),viqeoTvLoaded:!1}},computed:{previewUrl:function(){if(this.data&&this.data.preview_url&&!this.useAltPreview)return this.data.preview_url;var t=this.$goharu.config.embed.youtube,e=this.url.match(t.regexp),n=r()(e,2),i=(n[0],n[1]);return this.useAltPreview?t.preview_url_alt.replace("{video_id}",i):t.preview_url.replace("{video_id}",i)}},mounted:function(){var t=this;this.useViqeoTv&&g.a.add("https://cdn.viqeo.tv/js/vq_starter.js").load().then(function(){try{t.viqeoTvLoaded=!0}catch(t){}}).catch(function(t){}),this.handleMediaPlay=function(e){e!==t&&t.stop()},this.$goharu.$on("app.media:play",this.handleMediaPlay)},beforeDestroy:function(){this.$goharu.$off("app.media:play",this.handleMediaPlay)},methods:{play:function(){return this.popup?this.$goharu.layer.open(f.a,{props:{url:this.url}}):this.isClicked?this.handleComplete():(this.isPrerollPlaying=!0,this.isClicked=!0,void this.$goharu.$emit("app.media:play",this))},stop:function(){this.isPrerollPlaying=!1,this.isPlaying=!1},handleComplete:function(){this.isPrerollPlaying=!1,this.isPlaying=!0},handlePreviewError:function(){this.useAltPreview=!0},handlePreviewLoad:function(t){t.currentTarget&&t.currentTarget.naturalWi
1dth<200&&(this.useAltPreview=!0)}}}),y=Object(l.a)(_,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"editor-body-youtube"},[t.useViqeoTv?t._e():n("div",{staticClass:"editor-body-youtube__ratio"},[t.isPrerollPlaying?n("div",{staticClass:"editor-body-youtube__preclose",on:{click:t.handleComplete}},[n("icon-close",{staticClass:"editor-body-youtube__preclose-close"})],1):t._e(),t._v(" "),t.isPrerollPlaying?n("ads-adfox-preroll",{staticClass:"editor-body-youtube__prevideo",on:{complete:t.handleComplete}}):t._e(),t._v(" "),t.isPlaying||t.isPrerollPlaying?t._e():n("div",{staticClass:"editor-body-youtube__preview"},[n("img",{staticClass:"editor-body-youtube__preview-img",attrs:{alt:t.title,src:t.previewUrl,loading:"lazy"},on:{error:t.handlePreviewError,load:t.handlePreviewLoad}}),t._v(" "),n("div",{staticClass:"editor-body-youtube__preview-shadow"}),t._v(" "),n("div",{staticClass:"editor-body-youtube__preview-body"},[t.title?n("div",{staticClass:"editor-body-youtube__preview-title"},[t._v(t._s(t.title))]):t._e(),t._v(" "),n("div",{staticClass:"editor-body-youtube__preview-play"},[n("ratio-container",{attrs:{ratio:1}},[n("ratio-box",[n("icon-play-circle",{staticClass:"editor-body-youtube__preview-play-icon",class:{"editor-body-youtube__preview-play-icon--hover":t.isHover("hover")}})],1)],1)],1)]),t._v(" "),n("div",{staticClass:"editor-body-youtube__preview-overlay",on:{click:t.play,mouseenter:function(e){return t.enter("hover")},mouseleave:function(e){return t.leave("hover")}}})]),t._v(" "),t.isPlaying?n("embed-youtube",{staticClass:"editor-body-youtube__iframe",attrs:{autoplay:!0,url:t.url}}):t._e()],1),t._v(" "),t.useViqeoTv&&t.viqeoTvLoaded?n("embed-viqeo",{attrs:{url:t.url}}):t._e()],1)},[],!1,null,null,null);e.a=y.exports},function(t,e,n){"use strict";var i=n(0),r=Object(i.a)({name:"icon-chevron-right"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"8",height:"14",viewBox:"0 0 8 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M5.17168 7.00072L0.22168 2.05072L1.63568 0.636719L7.99968 7.00072L1.63568 13.3647L0.22168 11.9507L5.17168 7.00072Z"}})])},[],!1,null,null,null);e.a=r.exports},function(t,e,n){"use strict";var i=n(0),r=Object(i.a)({name:"icon-chevron-left"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"8",height:"14",viewBox:"0 0 8 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M2.82832 7.00072L7.77832 2.05072L6.36432 0.636719L0.000320435 7.00072L6.36432 13.3647L7.77832 11.9507L2.82832 7.00072Z"}})])},[],!1,null,null,null);e.a=r.exports},function(t,e,n){"use strict";var i=n(17),r=n.n(i),a={name:"embed-vkvideo",props:{url:{type:String,required:!0}},computed:{embedUrl:function(){var t=this.$goharu.config.embed.vkvideo,e=this.url.match(t.regexp),n=r()(e,5),i=(n[0],n[1]),a=n[2],s=n[3],o=n[4],l=new URL(t.url.replace("{domain}",i).replace("{oid}",a).replace("{id}",s).replace("{hash}",o||""));return l.searchParams.append("js_api","1"),l}}},s=n(0),o=Object(s.a)(a,function(){var t=this.$createElement;return(this._self._c||t)("iframe",{staticClass:"embed-vkvideo",attrs:{loading:"lazy",src:this.embedUrl,allowfullscreen:"",frameborder:"0"}})},[],!1,null,null,null);e.a=o.exports},,,function(t,e,n){"use strict";var i=n(7),r=n.n(i),a=n(18);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach(function(e){r()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}e.a={mixins:[a.a],data:function(){return{sliderPage:{},sliderPerPage:{},sliderItems:{}}},watch:{$mq:function(){var t={},e={};for(var n in this.sliderRefs){t[n]=1;var i=this.sliderFetchPerPage(n),r=+(this.sliderRefs[n].slider.dataset.pp||i);e[n]=r<i?r:i}this.sliderPage=t,this.sliderPerPage=e},sliderPage:function(t,e){for(var n in t){var i=this.sliderRefs[n].wrapper,r=this.sliderRefs[n].items,a=(this.sliderPerPage[n]||this.sliderFetchPerPage(n))*(t[n]-1);i.scrollTo({left:r.children[a].offsetLeft,behavior:"smooth"})}}},created:function(){this.sliderMoveData={key:"",point:{},movement:{x:0},direction:{x:0,directionX:""}}},mounted:function(){this.sliderRefs={},this.sliderAddSlider()},methods:{sliderAddSlider:function(t){var e=this;if(!t||!this.sliderRefs[t]){var n=o({},this.sliderPage),i=o({},this.sliderPerPage),r=o({}
1,this.sliderItems),a=t?'[data-slider="'+t+'"]':"[data-slider]";document.querySelectorAll(a).forEach(function(t){var a=t.dataset.slider,s=t.querySelector('[data-slider-ref="wrapper"]'),o=t.querySelector('[data-slider-ref="items"]');e.sliderRefs[a]={slider:t,wrapper:s,items:o},n[a]=1,r[a]=o.children.length;var l=e.sliderFetchPerPage(a),c=+(t.dataset.pp||l);i[a]=c<l?c:l,s.dataset.sliderKey=a,s.addEventListener("mousedown",e.sliderMouseDown),s.addEventListener("click",e.sliderClick,!0)}),this.sliderPage=n,this.sliderPerPage=i,this.sliderItems=r}},sliderVisibleControls:function(t){return this.sliderItems[t]>this.sliderPerPage[t]},sliderClick:function(t){0!==this.sliderMoveData.movement.x&&(t.preventDefault(),t.stopPropagation()),this.sliderMoveData.movement.x=0},sliderMouseDown:function(t){if(0===t.button){t.preventDefault();var e=this.sliderMoveData,n=t.currentTarget;e.key=n.dataset.sliderKey,e.point={x:t.clientX,left:n.scrollLeft},document.addEventListener("mousemove",this.sliderMouseMove),document.addEventListener("mouseup",this.sliderMouseUp)}},sliderMouseMove:function(t){var e=this.sliderMoveData,n=this.sliderRefs[e.key].wrapper,i=t.clientX;e.direction.x!==i-e.point.x&&(e.direction.directionX=e.direction.x>i-e.point.x?"left":"right",e.direction.x=i-e.point.x),e.movement.x=-(e.point.x-t.clientX),n.scrollLeft=e.point.left+(e.point.x-t.clientX)},sliderMouseUp:function(t){var e=this.sliderMoveData;0!==e.movement.x&&this.sliderActionMove(e.key,"left"===e.direction.directionX?1:-1),e.key="",document.removeEventListener("mousemove",this.sliderMouseMove),document.removeEventListener("mouseup",this.sliderMouseUp)},sliderFetchPerPage:function(t){var e=this.sliderRefs[t];return Math.floor(e.wrapper.offsetWidth/e.items.firstElementChild.offsetWidth)},sliderActionMove:function(t,e){var n=this.sliderPage[t]+e;switch(!0){case n<=1:n=1;break;case n>=this.getSliderPages(t):n=this.getSliderPages(t)}this.sliderPage=o(o({},this.sliderPage),{},r()({},t,n))},sliderActionPage:function(t,e){switch(!0){case e<=1:e=1;break;case e>=this.getSliderPages(t):e=this.getSliderPages(t)}this.sliderPage=o(o({},this.sliderPage),{},r()({},t,e))},getSliderPages:function(t){var e=this.sliderFetchPerPage(t)-this.sliderPerPage[t],n=Math.floor((this.sliderItems[t]-e)/this.sliderPerPage[t]);return this.sliderItems[t]%this.sliderPerPage[t]>0&&(n+=1),n},getCurrentPage:function(t){return this.sliderPage[t]}}}},function(t,e,n){"use strict";var i=n(64),r=(n(670),n(672),n(146)),a=(n(676),n(678),n(680),{mixins:[{},{}]}),s=(n(682),n(684),n(686),n(688),n(690),{mixins:[{},{}]}),o=n(12),l=(n(692),{mixins:[o.a]}),c=n(7),u=n.n(c),d=n(3),h=n.n(d),p=n(70),m=n(147),f=n(18);n(694);function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach(function(e){u()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var _={name:"editor-body-album",mixins:[f.a],components:{},props:{images:{type:Array,required:!0}},data:function(){return{hiddenCount:null,visibleCount:0}},computed:{loaded:function(){return h()(this.media).map(function(t,e){return g(g({},t),{},{key:e})})},media:function(){var t=this.$goharu.image;return this.images.map(function(e){var n=(e.width||0)>=(e.height||0)?"f360":"f720";return g(g({},e),{},{preview:t.createUrl(n,e.path,e.mime)})})},imageHeight:function(){return 150},moreLabel:function(){return Object(m.a)(this.hiddenCount,["изобÑажение","изобÑажениÑ","изобÑажений"])}},watch:{},created:function(){var t=this;this.handleResize=function(){t.handleImages()},window.addEventListener("resize",this.handleResize)},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)},mounted:function(){this.handleImages()},methods:{handleImages:function(){var t=this;
1h()(this.$refs.wrapper.childNodes).forEach(function(t){t.remove()});var e=0;this.getImagesLines().forEach(function(n){var i=document.createElement("div");i.classList.add("editor-body-album__line");var r=100*t.imageHeight/n.width,a=document.createElement("div");a.classList.add("editor-body-album__line-ratio"),a.style.paddingTop="".concat(r,"%");var s=document.createElement("div");s.classList.add("editor-body-album__line-wrapper");var o=[];n.items.forEach(function(i){var r=document.createElement("div");r.classList.add("editor-body-album__image");var a=new Image;a.src=i.preview,a.classList.add("editor-body-album__image-img"),a.dataset.key=i.key;var l=100*(i.width*t.imageHeight/i.height)/n.width;o.push("minmax(0, ".concat(l,"%)")),e++,r.append(a),s.append(r)}),s.style.gridTemplateColumns=o.join(" "),a.appendChild(s),i.appendChild(a),t.$refs.wrapper.append(i)}),this.visibleCount=e,this.hiddenCount=e<this.media.length?this.media.length-e:0},getImagesLines:function(){var t=this,e=this.$refs.wrapper.offsetWidth,n=[],i=function(){n.push({width:0,balance:e,items:[]})},r=function(){return n[n.length-1]};i(),this.loaded.forEach(function(e){var n=e.width*t.imageHeight/e.height;r().items.length&&r().balance<n/2&&r().items.length>1&&i(),r().width+=n,r().items.push(e),r().balance=r().balance-n});var a=[];return n.forEach(function(t,e){(0===e||t.items.length>1)&&a.push(t)}),a.slice(0,3)},click:function(t){var e=null;if("img"===t.target.nodeName.toLowerCase())e=+t.target.dataset.key;else{if(t.target!==this.$refs.more)return;e=this.visibleCount}this.$goharu.layer.open(i.a,{props:{images:this.media,position:e}})}}},y=n(0),b=Object(y.a)(_,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"editor-body-album",on:{click:t.click}},[n("div",{ref:"wrapper",staticClass:"editor-body-album__wrapper"}),t._v(" "),t.hiddenCount?n("div",{ref:"more",staticClass:"editor-body-album__count"},[t._v("+"+t._s(t.hiddenCount)+" "+t._s(t.moreLabel))]):t._e()])},[],!1,null,null,null).exports,C=n(158),w=n(82),x=n(17),L=n.n(x),k=n(54),$=(n(696),{name:"editor-body-twitter",props:{url:{type:String,required:!0}},data:function(){return{rendered:!1}},mounted:function(){var t=this;k.a.add("https://platform.twitter.com/widgets.js").load().then(function(){if(twttr&&twttr.widgets&&twttr.widgets.createTweet){var e=t.$goharu.config.embed.twitter,n=t.url.match(e.regexp),i=L()(n,3),r=(i[0],i[1],i[2]);twttr.widgets.createTweet(r,t.$refs.tweet,{theme:t.$goharu.theme.isDark()?"dark":"light",align:"center"}).then(function(){t.rendered=!0})}})}}),O=Object(y.a)($,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"editor-body-twitter",class:{"editor-body-twitter--rendered":this.rendered}},[e("div",{ref:"tweet",staticClass:"editor-body-twitter__tweet"})])},[],!1,null,null,null).exports,E={name:"navigation-breadcrumbs",mixins:[n(62).a],props:{links:{type:Array}},methods:{isLast:function(t){return this.links.length-1===t}}},M=Object(y.a)(E,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"navigation-breadcrumbs"},t._l(t.links,function(e,i){return n("div",{staticClass:"navigation-breadcrumbs__item"},[e.url?n("a",{staticClass:"navigation-breadcrumbs__url",class:{"navigation-breadcrumbs__url--focused":t.isLast(i)},attrs:{href:e.url}},[t._v(t._s(e.title))]):t._e(),t._v(" "),e.url?t._e():n("span",{staticClass:"navigation-breadcrumbs__label"},[t._v(t._s(e.title))])])}),0)},[],!1,null,null,null).exports,j=(n(698),{name:"editor-body-thread",components:{NavigationBreadcrumbs:M},props:{url:{type:String,required:!0},title:{type:String},data:{type:[Array,Object],default:function(){}}},computed:{nav:function(){return[{url:"https://forums.goha.ru",title:"ФоÑÑм"},{url:"https://forums.goha.ru/forumdisplay.php?f="+this.data.forum_id,title:this.data.forum_title}]}}}),P=Object(y.a)(j,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"editor-body-thread"},[n("div",{staticClass:"editor-body-thread__user"},[n("div",{staticClass:"editor-body-thread__user-avatar"},[n("img",{staticClass:"editor-body-thread__user-avatar-img",attrs:{src:"https://www.goha.ru/avatar/"+t.data.user_id,title:t.data.user_name}})])]),t._v(" "),n("div",{staticClass:"editor-body-thread__topic"},[n("navigation-breadcrumbs",{attrs:{links:t.nav}}),t._v(" "),n("a",{staticClass:"editor-body-thread__topic-title",attrs:{href:t.url}},[t._v(t._s(t.title))])],1)])},[],!1,null,null,null).exports,S=n(11),I=n.n(S),V={name:"editor-body-thread-loader",components:{EditorBodyThread:P},props:{url:{type:String,required:!0}},data:function(){return{embed:null}},created:function(){var t=this,e=new URL("embed.compose",this.$goharu.$route.api);e.searchParams.append("url",this.url),I.a.get(e).then(function(t){return t.data}).then(function(e){t.embed=e}).catch(function(){})}},D=Object(y.a)(V,function(){var t=this.$createElement,e=this._self._c||t;return this.embed?e("editor-body-thread",{attrs:{url:this.url,title:this.embed.title,data:this.embed.data}}):this._e()},[],!1,null,null,null).exports,A=n(21),H=n(163);n(700);function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?T(Object(n),!0).forEach(function(e){u()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var B={name:"editor-body-poll",components:{FormButton:A.a,IconCheck:H.a},props:{id:{type:String,required:!0}},data:function(){return{poll:null,isVoted:!1,chosen:{},isLoading:!1}},computed:{title:function(){return this.poll.title},description:function(){return this.poll.description},votes:function(){return this.poll.votes},answers:function(){var t=this;return this.poll.answers.data.map(function(e){var n=(100*e.votes/t.votes).toFixed(0);return R(R({},e),{},{percent:n})})},isMultiple:function(){return this.poll.is_multiple}},created:function(){var t=this,e=localStorage.getItem("qa_"+this.id);if(e)try{this.chosen=JSON.parse(e),this.isVoted=!0}catch(t){}var n=new URL("polls.get",this.$goharu.$route.api);n.searchParams.append("id",this.id),I.a.get(n).then(function(t){return t.data.data}).then(function(e){t.poll=e})},methods:{isChosen:function(t){return!!this.chosen[t]},chose:function(t){if(!this.isLoading&&!this.isVoted){var e=this.isMultiple?R({},this.chosen):{};e[t]?delete e[t]:e[t]=!0,this.chosen=e}},hasChosen:function(){for(var t in this.chosen)return!0;return!1},saveChosen:function(t){localStorage.setItem("qa_"+this.id,JSON.stringify(t))},handleVote:function(){var t=this;if(this.hasChosen()){this.isLoading=!0;var e=R({},this.chosen),n=new URL("polls.addVote",this.$goharu.$route.api);I.a.post(n,{votes:e,poll_id:this.id}).then(function(n){200===n.status&&(t.isVoted=!0,t.saveChosen(e),t.loading=!1,t.poll=n.data.data)})}}}},U=Object(y.a)(B,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.poll?n("div",{staticClass:"editor-body-poll"},[t.poll?n("div",{staticClass:"editor-body-poll__box"},[n("div",{staticClass:"editor-body-poll__title"},[t._v(t._s(t.title))]),t._v(" "),t.description?n("div",{staticClass:"editor-body-poll__description"},[t._v(t._s(t.description))]):t._e(),t._v(" "),n("div",{staticClass:"editor-body-poll__answers"},t._l(t.answers,function(e,i){return n("div",{staticClass:"editor-body-poll__answer",class:{"editor-body-poll__answer--active":!t.isVoted&&!t.isLoading},on:{click:function(n){return t.chose(e.id)}}},[t.isVoted?n("div",{staticClass:"editor-body-poll__answer-progress",style:{width:e.percent+"%"}}):t._e(),t._v(" "),n("div",{staticClass:"editor-body-poll__answer-title"},[t._v(t._s(e.title))]),t._v(" "),t.isChosen(e.id)?n("div",{staticClass:"editor-body-poll__answer-check"},[n("icon-check",{staticClass:"editor-body-poll__answer-check-icon"})],1):t._e(),t._v(" "),t.isVoted?n("div",{staticClass:"editor-body-poll__answer-label"},[t._v(t._s(e.percent)+"%")]):t._e()])}),0),t._v(" "),t.isVoted?t._e():n("div",{staticClass:"editor-body-poll__vote"},[n("form-button",{staticClass:"editor-body-poll__vote-button",attrs:{disabled:!t.hasChosen()||t.isLoading},on:{click:t.handleVote}},[t._v(t._s(t.isLoading?"ÐÑпÑавка...":"ÐÑоголоÑоваÑÑ"))])],1)]):t._e()]):t._e()},[],!1,null,null,null).exports,Z=(n(702),{name:"editor-body-vk",mixins:[f.a],props:{id:{type:String,required:!0},hash:{type:String,required:!0}},computed:{uid:function(){return h()(Array(10)).map(function(){return Math.random().toString(36)[2]}).join("")},refId:function(){return["vk-",this.uid,this.id].join("")}},mounted:function(){var t=this;k.a.add("https://vk.ru/js/api/openapi.js?169").load().then(function(){if(VK&&VK.Widgets&&VK.Widgets.Post){var e=t.mediaOnly("phone")?{width:300}:{width:600};VK.Widgets.Post(t.refId,t.id.split("_")[0],t.id.split("_")[1],t.hash,e)}})}}),q=Object(y.a)(Z,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{ref:"wrapper",staticClass:"editor-body-vk"},[e("div",{attrs:{id:this.refId}})])},[],!1,null,null,null).exports,N={name:"embed-coub",props:{url:{type:String,required:!0},autoplay:{type:Boolean,default:!1},muted:{type:Boolean,default:!1}},computed:{embedUrl:function(){var t=this.$goharu.config.embed.coub,e=this.url.match(t.regexp),n=L()(e,3),i=(n[0],n[1],n[2]),r=new
1URL(t.url.replace("{id}",i));return r.searchParams.append("autostart",this.autoplay?"true":"false"),r.searchParams.append("muted",this.muted?"true":"false"),r.searchParams.append("startWithHD","true"),r.searchParams.append("originalSize","false"),r}}},F=Object(y.a)(N,function(){var t=this.$createElement;return(this._self._c||t)("iframe",{staticClass:"embed-coub",attrs:{src:this.embedUrl,frameborder:"0",scrolling:"no",allowfullscreen:"allowfullscreen"}})},[],!1,null,null,null).exports,z=(n(704),{name:"index",props:{url:{type:String,required:!0}},components:{EmbedCoub:F}}),W=Object(y.a)(z,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"editor-body-coub"},[e("div",{staticClass:"editor-body-coub__ratio"},[e("embed-coub",{staticClass:"editor-body-coub__iframe",attrs:{url:this.url}})],1)])},[],!1,null,null,null).exports,G=(n(706),{name:"editor-body-instagram",props:{url:{type:String,required:!0}},mounted:function(){k.a.add("//www.instagram.com/embed.js?omitscript=true").load().then(function(){instgrm&&instgrm.Embeds&&instgrm.Embeds.process()})}}),K=Object(y.a)(G,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"editor-body-instagram"},[e("blockquote",{staticClass:"instagram-media",attrs:{"data-instgrm-permalink":this.url,"data-instgrm-version":"14"}})])},[],!1,null,null,null).exports,Q=(n(708),{name:"editor-body-facebook",mixins:[f.a],props:{url:{type:String,required:!0}},computed:{isVideo:function(){return/videos/.test(this.url)},width:function(){return this.mediaOnly("phone")?300:600}},mounted:function(){k.a.add("https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2").load().then(function(){})}}),Y=Object(y.a)(Q,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"editor-body-facebook"},[t.isVideo?t._e():n("div",{staticClass:"fb-post",attrs:{"data-href":t.url,"data-width":t.width,"data-show-text":"true"}}),t._v(" "),t.isVideo?n("div",{staticClass:"fb-video",attrs:{"data-href":t.url,"data-allowfullscreen":"true","data-width":t.width,"data-show-text":"true"}}):t._e()])},[],!1,null,null,null).exports,J={name:"embed-vimeo",props:{url:{type:String,required:!0},autoplay:{type:Boolean,default:!1}},computed:{embedUrl:function(){var t=this.$goharu.config.embed.vimeo,e=this.url.match(t.regexp),n=L()(e,2),i=(n[0],n[1]),r=new URL(t.url.replace("{id}",i));return this.autoplay&&r.searchParams.append("autoplay","1"),r}}},X=Object(y.a)(J,function(){var t=this.$createElement;return(this._self._c||t)("iframe",{staticClass:"embed-vimeo",attrs:{src:this.embedUrl,frameborder:"0",allowfullscreen:""}})},[],!1,null,null,null).exports,tt=(n(710),{name:"editor-body-vimeo",props:{url:{type:String}},components:{EmbedVimeo:X}}),et=Object(y.a)(tt,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"editor-body-vimeo"},[e("div",{staticClass:"editor-body-vimeo__ratio"},[e("embed-vimeo",{staticClass:"editor-body-vimeo__iframe",attrs:{url:this.url}})],1)])},[],!1,null,null,null).exports,nt={name:"embed-reddit",props:{url:{type:String,required:!0},dark:{type:Boolean,default:!1}},data:function(){return{height:200}},computed:{embedUrl:function(){var t=this.$goharu.config.embed.reddit,e=this.url.match(t.regexp),n=L()(e,2),i=(n[0],n[1]),r=new URL(t.url.replace("{path}",i));return r.searchParams.append("embed","true"),this.dark&&r.searchParams.append("theme","dark"),r}},mounted:function(){var t=this;window.addEventListener("message",function(e){if(/reddit/.test(e.origin)&&t.$refs.iframe.contentWindow===e.source)try{var n=JSON.parse(e.data);"resize.embed"===n.type&&n.data&&(t.height=n.data)}catch(e){}})}},it=Object(y.a)(nt,function(){var t=this.$createElement;return(this._self._c||t)("iframe",{ref:"iframe",staticClass:"embed-reddit",attrs:{src:this.embedUrl,frameborder:"0",allowfullscreen:"",scrolling:"no",sandbox:"allow-scripts allow-same-origin allow-popups",height:this.height}})},[],!1,null,null,null).exports,rt=(n(712),{name:"editor-body-reddit",components:{EmbedReddit:it},props:{url:{type:String,required:!0}},computed:{isDark:function(){return this.$goharu.theme.isDark()}}}),at=Object(y.a)(rt,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"editor-body-reddit"},[e("embed-reddit",{staticClass:"editor-body-reddit__iframe",attrs:{url:this.url,dark:this.isDark}})],1)},[],!1,null,null,null).exports,st=(n(714),{name:"editor-body-imgur",mixins:[f.a],props:{url:{type:String,required:!0},id:{type:String}},computed:{hash:function(){return this.id}},mounted:function(){k.a.add("//s.imgur.com/min/embed.js").load().then(function(){window.imgurEmbed&&(window.imgurEmbed.createIframe?imgurEmbed.createIframe():imgurEmbed.tasks++)})}}),ot=Object(y.a)(st,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"editor-body-imgur"},[e("blockquote",{staticClass:"imgur-embed-pub",attrs:{lang:"en","data-id":this.hash,"data-context":"false"}})])},[],!1,null,null,null).exports,lt=(n(716),{name:"embed-gfycat",props:{url:{type:String,required:!0}},computed:{embedUrl:function(){var t=this.$goharu.config.embed.gfycat,e=this.url.match(t.regexp),n=L()(e,2),i=(n[0],n[1]);return new URL(t.url.replace("{id}",i))}}}),ct=Object(y.a)(lt,function(){var t=this.$createElement;return(this._self._c||t)("iframe",{staticClass:"embed-gfycat",attrs:{src:this.embedUrl,frameborder:"0",allowfullscreen:""}})},[],!1,null,null,null).exports,ut=(n(718),{name:"editor-body-gfycat",props:{url:{type:String}},components:{EmbedGfycat:ct}}),dt=Object(y.a)(ut,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"editor-body-gfycat"},[e("div",{staticClass:"editor-body-gfycat__ratio"},[e("embed-gfycat",{staticClass:"editor-body-gfycat__iframe",attrs:{url:this.url}})],1)])},[],!1,null,null,null).exports,ht=(n(720),{name:"embed-challonge",props:{url:{type:String,required:!0}},computed:{embedUrl:function(){var t=this.$goharu.config.embed.challonge,e=this.url.match(t.regexp),n=L()(e,2),i=(n[0],n[1]),r=new
1URL(t.url.replace("{id}",i));return r.searchParams.append("theme",7563),r.searchParams.append("scale_to_fit",1),r.searchParams.append("show_live_status",1),r}}}),pt=Object(y.a)(ht,function(){var t=this.$createElement;return(this._self._c||t)("iframe",{staticClass:"embed-challonge",attrs:{src:this.embedUrl,frameborder:"0",allowfullscreen:""}})},[],!1,null,null,null).exports,mt=(n(722),{name:"editor-body-challonge",props:{url:{type:String}},components:{EmbedChallonge:pt}}),ft=Object(y.a)(mt,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"editor-body-challonge"},[e("div",{staticClass:"editor-body-challonge__ratio"},[e("embed-challonge",{staticClass:"editor-body-challonge__iframe",attrs:{url:this.url}})],1)])},[],!1,null,null,null).exports;n(724);function vt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}var gt={name:"editor-body-yandex-market",props:{attributes:{type:[Array,Object],default:function(){}}},data:function(){return{isVisible:!0}},mounted:function(){var t=this;k.a.add("https://aflt.market.yandex.ru/widget/script/api?js").load().then(function(){window.YaMarketAffiliate&&window.YaMarketAffiliate.createWidget&&window.YaMarketAffiliate.createWidget({type:"offers",containerId:t.$refs.body,params:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vt(Object(n),!0).forEach(function(e){u()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({clid:2571928,themeId:2},t.attributes)}).catch(function(t){this.isVisible=!1})})}},_t=Object(y.a)(gt,function(){var t=this.$createElement,e=this._self._c||t;return this.isVisible?e("div",{staticClass:"editor-body-yandex-market"},[e("div",{ref:"body",staticClass:"editor-body-yandex-market__body"})]):this._e()},[],!1,null,null,null).exports,yt=n(165),bt=(n(726),{name:"editor-body-rutube",components:{EmbedRutube:yt.a},props:{url:{type:String}}}),Ct=Object(y.a)(bt,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"editor-body-rutube"},[e("div",{staticClass:"editor-body-rutube__ratio"},[e("embed-rutube",{staticClass:"editor-body-rutube__iframe",attrs:{url:this.url}})],1)])},[],!1,null,null,null).exports,wt=n(90),xt=n(83),Lt=n(84);n(728);function kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function $t(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?kt(Object(n),!0).forEach(function(e){u()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Ot={name:"editor-body-gallery",mixins:[o.a,f.a],props:{images:{type:Array,default:function(){return[]}}},components:{IconChevronRight:xt.a,IconChevronLeft:Lt.a},data:function(){return{current:0,dir:1}},computed:{media:function(){var t=this.$goharu.image,e=this.mediaPhone()?"f360":"f720";return this.images.map(function(n){return $t($t({},n),{},{preview:t.createUrl(e,n.path,n.mime)})})},currentMedia:function(){return this.media[this.current]},prevMedia:function(){var t=(this.current-1+this.media.length)%this.media.length;return this.media[t]},nextMedia:function(){var t=(this.current+1)%this.media.length;return this.media[t]},mediaLastIndex:function(){return this.media.length-1},navigationMedia:function(){var t=this.current-2,e=this.current+2;e>this.mediaLastIndex&&(t-=e-this.mediaLastIndex,e=this.mediaLastIndex),t<0&&(e+=-1*t,t=0),e=e>this.mediaLastIndex?this.mediaLastIndex:e;for(var n=[],i=t;i<=e;i++)n.push({index:i,current:i===this.current});return n},mediaHasPages:function(){return this.media.length>1},mediaHasAlt:function(){for(var t in this.images){var e=this.images[t];if(e&&e.alt)return!0}return!1}},watch:{current:function(t,e){0===t&&e===this.mediaLastIndex?this.dir=1:t===this.mediaLastIndex&&0===e?this.dir=0:this.dir=t>e?1:0}},created:function(){this.cache={preview:{}}},mounted:function(){this.preloadImages()},updated:function(){this.preloadImages()},methods:{preloadImages:function(){this.cache.preview[this.nextMedia.preview]||(this.cache.preview[this.nextMedia.preview]=!0,Object(p.a)(this.nextMedia.preview)),this.cache.preview[this.prevMedia.preview]||(this.cache.preview[this.prevMedia.preview]=!0,Object(p.a)(this.prevMedia.preview))},next:function(){this.current=(this.current+1)%this.media.length},prev:function(){this.current=(this.current-1+this.media.length)%this.media.length},move:function(t){this.current=t},touch:function(t){var e=this,n=t.changedTouches[0].clientX,i=0,r=function(t){i++;var r=t.changedTouches[0].clientX-n;r>10?(e.prev(),a()):r<-10&&(e.next(),a())},a=function(t){document.removeEventListener("touchmove",r),document.removeEventListener("touchend",a),i&&t.preventDefault()};document.addEventListener("touchmove",r),document.addEventListener("touchend",a)},view:function(t){var e=this,n=[],r=0;
1this.media.forEach(function(t,i){t.video_id||(n.push(t),e.current===i&&(r=n.length-1))}),this.$goharu.layer.open(i.a,{props:{images:n,position:r}})},navigationWidthStyle:function(){var t=20*this.navigationMedia.length;return{width:"".concat(t,"px")}},navigationOffsetStyle:function(t){return{left:"".concat(20*t,"px")}}}},Et=Object(y.a)(Ot,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"editor-body-gallery"},[n("div",{staticClass:"editor-body-gallery__current"},[n("div",{staticClass:"editor-body-gallery__current-ratio"},[n("div",{staticClass:"editor-body-gallery__current-box"},[t.mediaHasPages&&!t.mediaPhone()?n("div",{staticClass:"editor-body-gallery__current-box-move editor-body-gallery__current-box-move--prev",on:{click:t.prev,mouseenter:function(e){return t.enter("prev")},mouseleave:function(e){return t.leave("prev")}}},[n("div",{staticClass:"editor-body-gallery__current-box-circle",class:{"editor-body-gallery__current-box-circle--hover":t.isHover("prev")}},[n("icon-chevron-left",{staticClass:"editor-body-gallery__current-box-icon"})],1)]):t._e(),t._v(" "),t.mediaHasPages&&!t.mediaPhone()?n("div",{staticClass:"editor-body-gallery__current-box-move editor-body-gallery__current-box-move--next",on:{click:t.next,mouseenter:function(e){return t.enter("next")},mouseleave:function(e){return t.leave("next")}}},[n("div",{staticClass:"editor-body-gallery__current-box-circle",class:{"editor-body-gallery__current-box-circle--hover":t.isHover("next")}},[n("icon-chevron-right",{staticClass:"editor-body-gallery__current-box-icon"})],1)]):t._e(),t._v(" "),n("transition",{attrs:{name:t.dir?"n":"p"}},[n("div",{key:t.currentMedia.id,staticClass:"editor-body-gallery__current-wrapper"},[n("img",{staticClass:"editor-body-gallery__current-image",attrs:{src:t.currentMedia.preview}})])]),t._v(" "),n("div",{staticClass:"editor-body-gallery__current-box-view",on:{click:t.view,touchstart:t.touch}}),t._v(" "),t.mediaHasPages?n("transition-group",{staticClass:"editor-body-gallery__navigation",style:t.navigationWidthStyle(),attrs:{tag:"div",name:t.dir?"n":"p"}},t._l(t.navigationMedia,function(e,i){return n("div",{key:e.index,staticClass:"editor-body-gallery__navigation-wrapper",style:t.navigationOffsetStyle(i),on:{click:function(n){return t.move(e.index)}}},[n("div",{staticClass:"editor-body-gallery__navigation-item",class:{"editor-body-gallery__navigation-item--current":e.current}})])}),0):t._e()],1)])]),t._v(" "),t.mediaHasAlt?n("div",{staticClass:"editor-body-gallery__alt"},[t._v(t._s(t.currentMedia.alt))]):t._e()])},[],!1,null,null,null).exports,Mt={name:"editor-body-images",props:{type:{type:[Number,String],default:1},images:{type:Array,default:[]}},mixins:[f.a],computed:{component:function(){if(this.mediaPhone())return Et;switch(+this.type){case 1:return b;case 2:return Et}return Et}}},jt=Object(y.a)(Mt,function(){var t=this.$createElement;return(this._self._c||t)(this.component,{tag:"component",attrs:{images:this.images}})},[],!1,null,null,null).exports;n(730),e.a={components:{EditorBodyAlbum:b,EditorBodyYoutube:w.a,EditorBodyTwitter:O,EditorBodyTwitch:C.a,EditorBodyThread:P,EditorBodyThreadLoader:D,EditorBodyPoll:U,EditorBodyVk:q,EditorBodyCoub:W,EditorBodyInstagram:K,EditorBodyFacebook:Y,EditorBodyVimeo:et,EditorBodyReddit:at,EditorBodyImgur:ot,EditorBodyGfycat:dt,EditorBodyChallonge:ft,EditorBodyYandexMarket:_t,EditorBodyRutube:Ct,EditorBodyVkvideo:wt.a,EditorBodyGallery:Et,EditorBodyImages:jt},mixins:[{},{},r.a,a,{},{},{},s,l],methods:{handleEditorBodyClick:function(t){var e=t.target.closest(".editor-body-image");if(e){var n=e.querySelector("img"),r=e.querySelector("a");r&&r.getAttribute("href")||t.target!==n||this.$goharu.layer.open(i.a,{props:{images:[{url:n.getAttribute("src"),width:n.naturalWidth,height:n.naturalHeight,caption:n.getAttribute("alt")}]}})}}}}},function(t,e,n){"use strict";var i=n(85),r=n(49),a=n(164),s=n(54),o=n(52),l=(n(630),{name:"editor-body-vkvideo",components:{EmbedVkvideo:i.a,IconClose:r.a,AdsAdfoxPreroll:a.a},props:{url:{type:String},popup:{type:Boolean,default:!1}},data:function(){return{isPrerollPlaying:!1,playerObj:null}},mounted:function(){var t=this;this.handleMediaPlay=function(e){e!==t&&t.stop()},this.$goharu.$on("app.media:play",this.handleMediaPlay),s.a.add("https://vk.ru/js/api/videoplayer.js").load().then(function(){try{t.playerObj=new VK.VideoPlayer(t.$refs.vkvideo.$el),t.playerObj.on(VK.VideoPlayer.Events.STARTED,t.start)}catch(e){t.handleComplete()}}).catch(function(e){t.handleComplete()})},beforeDestroy:function(){this.$goharu.$off("app.media:play",this.handleMediaPlay)},methods:{checkPopup:function(){if(this.popup)return this.$goharu.layer.open(o.a,{props:{url:this.url}})},start:function(){this.playerObj.pause(),this.playerObj.on(VK.VideoPlayer.Events.RESUMED,this.resume),this.isPrerollPlaying=!0,this.$goharu.$emit("app.media:play",this)},resume:function(){this.playerObj&&this.playerObj.pause()},stop:function(){this.playerObj&&this.playerObj.pause(),this.isPrerollPlaying=!1},handleComplete:function(){this.playerObj&&this.playerObj.off(VK.VideoPlayer.Events.RESUMED,this.resume),this.playerObj&&this.playerObj.play(),this.isPrerollPlaying=!1}}}),c=n(0),u=Object(c.a)(l,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"editor-body-vkvideo"},[n("div",{staticClass:"editor-body-vkvideo__ratio"},[t.isPrerollPlaying?n("div",{staticClass:"editor-body-vkvideo__preclose",on:{click:t.handleComplete}},[n("icon-close",{staticClass:"editor-body-vkvideo__preclose-close"})],1):t._e(),t._v(" "),t.isPrerollPlaying?n("ads-adfox-preroll",{staticClass:"editor-body-vkvideo__prevideo",on:{complete:t.handleComplete}}):t._e(),t._v(" "),t.popup&&!t.isPrerollPlaying?n("div",{staticClass:"editor-body-vkvideo__overlay",on:{click:t.checkPopup}}):t._e(),t._v(" "),n("embed-vkvideo",{ref:"vkvideo",staticClass:"editor-body-vkvideo__iframe",attrs:{url:t.url}})],1)])},[],!1,null,null,null);e.a=u.exports},function(t,e,n){"use strict";var i=n(17),r=n.n(i),a=(n(499),{name:"embed-youtube",props:{url:{type:String,required:!0},autoplay:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},muted:{type:Boolean,default:!0}},computed:{embedUrl:function(){var t=this.$goharu.config.embed.youtube,e=this.url.match(t.regexp),n=r()(e,2),i=(n[0],n[1]),a=new URL(t.url.replace("{video_id}",i));return a.searchParams.append("mute",this.muted?"true":"false"),this.autoplay&&a.searchParams.append("autoplay","true"),this.controls||a.searchParams.append("controls","0"),a}}}),s=n(0),o=Object(s.a)(a,function(){var t=this.$createElement;return(this._self._c||t)("iframe",{staticClass:"embed-youtube",attrs:{src:this.embedUrl,allowfullscreen:"",frameborder:"0"}})},[],!1,null,null,null);e.a=o.exports},,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"twitch",function(){return i}),n.d(e,"youtube",function(){return r}),n.d(e,"album",function(){return a}),n.d(e,"twitter",function(){return s}),n.d(e,"coub",function(){return o}
1),n.d(e,"vimeo",function(){return l}),n.d(e,"reddit",function(){return c}),n.d(e,"gfycat",function(){return u}),n.d(e,"challonge",function(){return d}),n.d(e,"rutube",function(){return h}),n.d(e,"vkvideo",function(){return p}),n.d(e,"vklive",function(){return m}),n.d(e,"image",function(){return f});var i={provider:"twitch",video:{regexp:/https?:\/\/www\.twitch\.tv\/(?:[^\/\?\&]*\/v|videos)\/([0-9]*)/i,url:"https://player.twitch.tv"},clip:{regexp:/^https?:\/\/.*twitch\.tv\/([^\/\?\&]*)\/clip\/([^\/\?\&]*)/i,url:"https://clips.twitch.tv/embed"},clipAlt:{regexp:/^https?:\/\/clips\.twitch\.tv\/([^\/\?\&]*)/i,url:"https://clips.twitch.tv/embed"},channel:{regexp:/https?:\/\/www\.twitch\.tv\/([^\/\?\&]*)\/?$/i,url:"https://player.twitch.tv"}},r={provider:"youtube",regexp:/(?:https?:\/\/)?(?:www\.)?(?:(?:youtu\.be\/)|(?:youtube\.com)\/(?:v\/|u\/\w\/|embed\/|watch|live))(?:(?:\?v=)?([^#&?=]*))?((?:[?&]\w*=\w*)*)/,url:"https://www.youtube.com/embed/{video_id}",link:"https://www.youtube.com/watch?v={video_id}",preview_url:"https://i.ytimg.com/vi/{video_id}/maxresdefault.jpg",preview_url_alt:"https://i.ytimg.com/vi/{video_id}/hqdefault.jpg"},a={provider:"album",regexp:/^https?:\/\/.*?(?:goha|gh)\.(?:lh|ru)\/albums\/([A-Za-z0-9]+)/i,url:"https://www.goha.ru/albums/{album_id}?embed=true"},s={provider:"twitter",regexp:/^https?:\/\/twitter\.com\/(?:#!\/)?(\w+)\/status(?:es)?\/(\d+?.*)?$/},o={provider:"coub",regexp:/^https?:\/\/.*coub\.com\/(view|embed|stories)\/([^\/\?\&]*)/i,url:"https://coub.com/embed/{id}"},l={provider:"vimeo",regexp:/^https?:\/\/.*vimeo\.com\/([^\/\?\&]*)/i,url:"https://player.vimeo.com/video/{id}"},c={provider:"reddit",regexp:/^https?:\/\/.*reddit\.com\/r\/([^?\&]+)/i,url:"https://www.redditmedia.com/r/{path}"},u={provider:"gfycat",regexp:/https?:\/\/gfycat\.com(?:\/[^\/\?&]*)?\/([a-zA-Z]+)/,url:"https://gfycat.com/ifr/{id}"},d={provider:"challonge",regexp:/https?:\/\/challonge\.com(?:\/[^\/\?&]*)?\/([^\/\?&]+)/,url:"https://challonge.com/ru/{id}/module"},h={provider:"rutube",regexp:/^https?:\/\/.*rutube\.ru\/video\/([^\/\?\&]*)/i,url:"https://rutube.ru/play/embed/{id}"},p={provider:"vkvideo",regexp:/^https?:\/\/.*(vk\.com|vk\.ru|vkvideo\.ru)\/(?:video|clip)(-?[^/?#_]+)_([^/?#_]+)(#([^/?#]+))?/i,url:"https://vkvideo.ru/video_ext.php?oid={oid}&id={id}&hash={hash}&hd=2"},m={provider:"vklive",regexp:/^https?:\/\/live\.vk(play|video)\.ru\/([^\/\?\&]*)/i,url:"https://live.vk{domain}.ru/app/embed/{id}"},f={provider:"image",regexp:/^https?:\/\/(.+\.(jpg|png|gif)|forums\.goha\.ru\/picture\/[a-z0-9]+)$/i}},,,,,,,,function(t,e,n){"use strict";var i=n(12);n(554);e.a={mixins:[i.a]}},,,,function(t,e,n){"use strict";var i=n(74),r=(n(558),{name:"filter-order",components:{IconChevronDown:i.a},props:{options:{type:Array,default:function(){return[]}}},data:function(){return{dropbox:!1}},computed:{currentOption:function(){var t=null;return this.options.forEach(function(e){e.selected&&(t=e)}),t}},methods:{toggleDropbox:function(){this.dropbox=!this.dropbox},handleSort:function(t){this.$emit("select",t),this.dropbox=!1}},watch:{options:function(){this.dropbox=!1},dropbox:function(t){var e=this;t?(this.$nextTick(function(){e.$refs.root.offsetLeft<150?e.$refs.dropbox.setAttribute("data-to-right",1):e.$refs.dropbox.removeAttribute("data-to-right")}),window.addEventListener("click",this.outClickEvent)):window.removeEventListener("click",this.outClickEvent)}},created:function(){var t=this;this.outClickEvent=function(e){t.$refs.root&&t.$refs.root.contains(e.target)||(t.dropbox=!1)}},destroyed:function(){window.removeEventListener("click",this.outClickEvent)}}),a=n(0),s=Object(a.a)(r,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"root",staticClass:"filter-order"},[n("div",{staticClass:"filter-order__button",class:{"filter-order__button--opened":t.dropbox},on:{click:t.toggleDropbox}},[t._v("\n "+t._s(t.currentOption&&t.currentOption.title||"УпоÑÑдоÑиÑÑ")+"\
1n "),n("icon-chevron-down",{staticClass:"filter-order__current-icon"})],1),t._v(" "),n("transition",{attrs:{name:"filter-order__dropbox-"}},[t.dropbox?n("div",{ref:"dropbox",staticClass:"filter-order__dropbox"},t._l(t.options,function(e,i){return n("div",{key:e.title,staticClass:"filter-order__action",class:{"filter-order__action-current":e.selected},on:{click:function(e){return t.handleSort(i)}}},[t._v("\n "+t._s(e.title)+"\n ")])}),0):t._e()])],1)},[],!1,null,null,null);e.a=s.exports},function(t,e,n){"use strict";var i=n(0),r=Object(i.a)({name:"icon-chevron-up"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M6.0006 3.02344L1.8756 7.14844L0.697266 5.9701L6.0006 0.666771L11.3039 5.9701L10.1256 7.14844L6.0006 3.02344Z",fill:"currentColor"}})])},[],!1,null,null,null);e.a=r.exports},function(t,e,n){"use strict";var i=n(0),r=Object(i.a)({name:"Comments"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M8.33366 2.5H11.667C13.4351 2.5 15.1308 3.20238 16.381 4.45262C17.6313 5.70286 18.3337 7.39856 18.3337 9.16667C18.3337 10.9348 17.6313 12.6305 16.381 13.8807C15.1308 15.131 13.4351 15.8333 11.667 15.8333V18.75C7.50033 17.0833 1.66699 14.5833 1.66699 9.16667C1.66699 7.39856 2.36937 5.70286 3.61961 4.45262C4.86986 3.20238 6.56555 2.5 8.33366 2.5ZM10.0003 14.1667H11.667C12.3236 14.1667 12.9738 14.0373 13.5804 13.7861C14.187 13.5348 14.7382 13.1665 15.2025 12.7022C15.6668 12.2379 16.0351 11.6867 16.2864 11.0801C16.5377 10.4735 16.667 9.82328 16.667 9.16667C16.667 8.51006 16.5377 7.85988 16.2864 7.25325C16.0351 6.64662 15.6668 6.09543 15.2025 5.63113C14.7382 5.16684 14.187 4.79854 13.5804 4.54727C12.9738 4.296 12.3236 4.16667 11.667 4.16667H8.33366C7.00758 4.16667 5.73581 4.69345 4.79813 5.63113C3.86044 6.56881 3.33366 7.84058 3.33366 9.16667C3.33366 12.175 5.38533 14.1383 10.0003 16.2333V14.1667Z"}})])},[],!1,null,null,null);e.a=r.exports},function(t,e,n){"use strict";var i=n(58),r=n(84),a=n(83),s={name:"navigation-pages",mixins:[i.a],components:{IconChevronLeft:r.a,IconChevronRight:a.a},props:{pages:{type:Object,required:!0},appends:{type:Object,default:null},noHistory:{type:Boolean,default:!1}},data:function(){return{cleanUrl:new URL(window.location)}},computed:{vars:function(){for(var t=+this.pages.total,e=+this.pages.per_page,n=+this.pages.current_page,i=Math.max(Math.ceil(t/e),1),r=n>1,a=n<i,s=[],o=n-2;o<=n+2;o++)o<1||o>i||s.push(o);return{total:t,perPage:e,currentPage:n,lastPage:i,hasPrev:r,hasNext:a,numbers:s}}},watch:{pages:function(t,e){this.noHistory||JSON.stringify(t)===JSON.stringify(e)||this.replaceHistory(t.current_page)},appends:function(t,e){JSON.stringify(t)!==JSON.stringify(e)&&this.prepareUrl()}},created:function(){this.prepareUrl()},methods:{replaceHistory:function(t){var e=new URL(this.cleanUrl.origin+this.cleanUrl.pathname);t>1&&e.searchParams.set("page",+t),history.replaceState({},"",e)},handleClick:function(t){this.$emit("change",t)},prepareUrl:function(){if(this.cleanUrl=new URL(this.cleanUrl.origin+this.cleanUrl.pathname),this.appends)for(var t in this.appends)this.cleanUrl.searchParams.set(t,this.appends[t]);return this.cleanUrl},url:function(t){var e=new URL(this.cleanUrl);return t>1&&e.searchParams.set("page",+t),e}}},o=n(0),l=Object(o.a)(s,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.vars.hasPrev||t.vars.hasNext?n("div",{staticClass:"navigation-pages"},[n("div",{staticClass:"navigation-pages__wrapper"},[t.vars.hasPrev?n("a",{staticClass:"navigation-pages__prev",attrs:{href:t.url(t.vars.currentPage-1),rel:"prev"},on:{click:function(e){return e.preventDefault(),t.handleClick(t.vars.currentPage-1)}}},[n("icon-chevron-left")],1):t._e(),t._v(" "),t._l(t.vars.numbers,function(e){return n("a",{staticClass:"navigation-pages__link",class:{"navigation-pages__current":e===t.vars.currentPage},attrs:{href:t.url(e)},on:{click:function(n){return n.preventDefault(),t.handleClick(e)}}},[t._v(t._s(e))])}),t._v(" "),t.vars.hasNext?n("a",{staticClass:"navigation-pages__next",attrs:{href:t.url(t.vars.currentPage+1),rel:"next"},on:{click:function(e){return e.preventDefault(),t.handleClick(t.vars.currentPage+1)}}},[n("icon-chevron-right")],1):t._e()],2)]):t._e()},[],!1,null,null,null);e.a=l.exports},function(t,e,n){"use strict";var i=n(17),r=n.n(i),a=(n(497),{name:"embed-twitch",props:{url:{type:String,required:!0},autoplay:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},muted:{type:Boolean,default:!0}},computed:{embedUrl:function(){var t,e=this.$goharu.config.embed.twitch;switch(!0){case e.channel.regexp.test(this.url):var n=this.url.match(e.channel.regexp),i=r()(n,2),a=(i[0],i[1]);(t=new URL(e.channel.url)).searchParams.append("channel",a);break;case e.video.regexp.test(this.url):var s=this.url.match(e.video.regexp),o=r()(s,2),l=(o[0],o[1]);(t=new URL(e.video.url)).searchParams.append("video",l);break;case e.clip.regexp.test(this.url):var c=this.url.match(e.clip.regexp),u=r()(c,3),d=(u[0],u[1],u[2]);
1(t=new URL(e.clip.url)).searchParams.append("clip",d);break;case e.clipAlt.regexp.test(this.url):var h=this.url.match(e.clipAlt.regexp),p=r()(h,2),m=(p[0],p[1]);(t=new URL(e.clipAlt.url)).searchParams.append("clip",m)}return t.searchParams.append("parent",location.host),t.searchParams.append("muted",this.muted),t.searchParams.append("autoplay",this.autoplay?"true":"false"),this.controls||t.searchParams.append("controls","false"),t}}}),s=n(0),o=Object(s.a)(a,function(){var t=this.$createElement;return(this._self._c||t)("iframe",{staticClass:"embed-twitch",attrs:{src:this.embedUrl,frameborder:"0",scrolling:"no",allowfullscreen:"allowfullscreen"}})},[],!1,null,null,null);e.a=o.exports},function(t,e,n){"use strict";var i=n(0),r=Object(i.a)({name:"icon-play-circle"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M9.00033 17.3327C4.39783 17.3327 0.666992 13.6018 0.666992 8.99935C0.666992 4.39685 4.39783 0.666016 9.00033 0.666016C13.6028 0.666016 17.3337 4.39685 17.3337 8.99935C17.3337 13.6018 13.6028 17.3327 9.00033 17.3327ZM7.85199 6.01185C7.80184 5.97839 7.74355 5.95916 7.68333 5.9562C7.62311 5.95324 7.56322 5.96668 7.51003 5.99507C7.45684 6.02346 7.41235 6.06574 7.38129 6.11742C7.35023 6.16909 7.33377 6.22822 7.33366 6.28852V11.7102C7.33377 11.7705 7.35023 11.8296 7.38129 11.8813C7.41235 11.933 7.45684 11.9752 7.51003 12.0036C7.56322 12.032 7.62311 12.0455 7.68333 12.0425C7.74355 12.0395 7.80184 12.0203 7.85199 11.9868L11.9178 9.27685C11.9635 9.24642 12.001 9.20517 12.027 9.15675C12.0529 9.10834 12.0665 9.05427 12.0665 8.99935C12.0665 8.94443 12.0529 8.89036 12.027 8.84194C12.001 8.79353 11.9635 8.75228 11.9178 8.72185L7.85116 6.01185H7.85199Z"}})])},[],!1,null,null,null);e.a=r.exports},,,,,,,,function(t,e,n){"use strict";e.a={Billboard:{params:{pp:"g",ps:"fbsa",p2:"hhie"},fetchMargin:2e3},Interscroller:{params:{pp:"g",ps:"fbsa",p2:"hhih"},fetchMargin:20},Fullscreen:{params:{pp:"g",ps:"fbsa",p2:"hhix"},fetchMargin:2e3},Preroll:{params:{pp:"g",ps:"fbsa",p2:"hhmi"},fetchMargin:2e3},Readroll:{params:{pp:"g",ps:"fbsa",p2:"hhjs"},fetchMargin:20},Background:{params:{pp:"g",ps:"fbsa",p2:"hhmb"},fetchMargin:2e3},"240x400":{params:{pp:"g",ps:"fbsa",p2:"hhmc"},fetchMargin:20},"728x90":{params:{pp:"g",ps:"fbsa",p2:"hhmd"},fetchMargin:20},"300x600":{params:{pp:"g",ps:"fbsa",p2:"hipc"},fetchMargin:20},Rollup:{params:{pp:"g",ps:"fbsa",p2:"hhme"},fetchMargin:2e3},Native:{params:{pp:"g",ps:"fbsa",p2:"gqqe"},fetchMargin:20},Red:{params:{pp:"g",ps:"bjpa",p2:"gsem"},fetchMargin:20},"1280x200":{params:{pp:"g",ps:"fbsa",p2:"hszz"},fetchMargin:20},"970x250":{params:{pp:"g",ps:"fbsa",p2:"htct"},fetchMargin:20},"300x250":{params:{pp:"g",ps:"fbsa",p2:"htcu"},fetchMargin:20},b970x200:{params:{pp:"g",ps:"fbsa",p2:"htcw"},fetchMargin:20},b738x160:{params:{pp:"g",ps:"fbsa",p2:"htcy"},fetchMargin:20},Video:{params:{pp:"g",ps:"fbsa",p2:"hwqu"},fetchMargin:20},Intext:{params:{p1:"djtfx",p2:"jodj"},fetchMargin:20},Flyroll:{params:{p1:"djwta",p2:"johm"},fetchMargin:2e3}}},,,,,,,,,,,,,,,,function(t,e,n){"use strict";var i=n(12);n(578);e.a={mixins:[i.a]}},function(t,e,n){"use strict";var i=n(12);n(600);e.a={mixins:[i.a]}},function(t,e,n){"use strict";var i=n(12);n(602);e.a={mixins:[i.a]}},function(t,e,n){"use strict";n(604);e.a={}},function(t,e,n){"use strict";n(612);e.a={}},function(t,e,n){"use strict";n(614);e.a={}},function(t,e,n){"use strict";var i=n(12);n(660);e.a={mixins:[i.a]}},function(t,e,n){"use strict";var i=n(12);n(662);e.a={mixins:[i.a]}},function(t,e,n){"use strict";n(674);e.a={}},function(t,e,n){"use strict";e.a=function(){function t(t,e){return+t.toString().substr(-1*e)}return function(e,n){var i=e>=10?t(e,2):e;return(i<11||i>14)&&(i=t(i,1)),1===i?n[0]||"":i>=2&&i<=4?n[1]||"":n[2]||""}}()},function(t,e,n){"use strict";n(732);e.a={}},function(t,e,n){"use strict";e.a={methods:{closest:function(t,e,n){var i=t.closest(e);return i&&n.contains(i)?i:null}}}},function(t,e,n){"use strict";e.a={data:function(){return{defaultSort:"datenew",sortOptions:{datenew:{type:"datenew",title:"СнаÑала новÑе",sort:"date",order:"desc"},dateold:{type:"dateold",title:"СнаÑала ÑÑаÑÑе",sort:"date",order:"asc"},comments:{type:"comments",title:"СнаÑала попÑлÑÑнÑе",sort:"comments",order:"desc"}}}},methods:{saveSorting:function(t){t&&t!==this.defaultSort?localStorage.setItem("comments-sorting",t):localStorage.removeItem("comments-sorting")},loadSorting:function(){var t=localStorage.getItem("comments-sorting");return this.sortOptions[t]||this.sortOptions[this.defaultSort]}}}},function(t,e,n){"use strict";var i=n(7),r=n.n(i),a=n(3),s=n.n(a),o=n(20),l=n(21),c=n(17),u=n.n(c),d=n(75),h=n(18),p=n(49),m=n(0),f=Object(m.a)({name:"icon-quote"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.2688 14.8044C14.2735 14.773 14.276 14.741 14.276 14.7083V9.81144C14.276 8.26282 13.0243 7 11.4894 7H8.78655C7.14211 7 6 8.28077 6 9.81144V12.5301C6 14.0607 7.14209 15.3416 8.78655 15.3416H13.0083C12.97 17.4803 12.7285 18.6729 12.2658 19.5035C11.7664 20.3999 10.9644 20.9625 9.53003 21.8223C9.23204 22.0009 9.134 22.3895 9.31104 22.6901C9.48808 22.9908 9.87317 23.0897 10.1712 22.9111C11.5819 22.0654 12.6753 21.3531 13.36 20.1241C14.0291 18.9229 14.2631 17.315 14.2688 14.8044ZM7.2552 9.81144C7.2552 8.94433 7.87037 8.26643 8.78655 8.26643H11.4894C12.3311 8.26643 13.0208 8.96228 13.0208 9.81144V14.0751H8.78655C7.87039 14.0751 7.2552 13.3972 7.2552 12.5301V9.81144Z"}}),this._v(" "),e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.7311 9.81144C15.7311 8.28077 16.8732 7 18.5176 7H21.2121C22.747 7 23.9987 8.26282 23.9987 9.81144V14.6679C23.9996 14.6815 24 14.6952 24 14.7091C24 17.2745 23.7686 18.9078 23.0911 20.1241C22.4064 21.3531 21.313 22.0654 19.9022 22.9111C19.6043 23.0897 19.2192 22.9908 19.0421 22.6901C18.8651 22.3895 18.9631 22.0009 19.2611 21.8223C20.6955 20.9625 21.4975 20.3999 21.9969 19.5035C22.4596 18.6729 22.7011 17.4803 22.7394 15.3416H18.5176C16.8732 15.3416 15.7311 14.0607 15.7311 12.5301V9.81144ZM18.5176 8.26643C17.6015 8.26643 16.9863 8.94433 16.9863 9.81144V12.5301C16.9863
113.3972 17.6015 14.0751 18.5176 14.0751H22.7435V9.81144C22.7435 8.96228 22.0538 8.26643 21.2121 8.26643H18.5176Z"}})])},[],!1,null,null,null).exports,v=Object(m.a)({name:"reply02"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.912 7.74408C12.2375 7.41864 12.7651 7.41864 13.0906 7.74408L17.2572 11.9107C17.5827 12.2362 17.5827 12.7638 17.2572 13.0893L13.0906 17.2559C12.7651 17.5814 12.2375 17.5814 11.912 17.2559C11.5866 16.9305 11.5866 16.4028 11.912 16.0774L15.4895 12.5L11.912 8.92259C11.5866 8.59715 11.5866 8.06951 11.912 7.74408Z",fill:"currentColor"}}),this._v(" "),e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.33333 2.5C3.79357 2.5 4.16667 2.8731 4.16667 3.33333V9.16667C4.16667 9.82971 4.43006 10.4656 4.8989 10.9344C5.36774 11.4033 6.00363 11.6667 6.66667 11.6667H16.6667C17.1269 11.6667 17.5 12.0398 17.5 12.5C17.5 12.9602 17.1269 13.3333 16.6667 13.3333H6.66667C5.5616 13.3333 4.50179 12.8943 3.72039 12.1129C2.93899 11.3315 2.5 10.2717 2.5 9.16667V3.33333C2.5 2.8731 2.8731 2.5 3.33333 2.5Z",fill:"currentColor"}})])},[],!1,null,null,null).exports,g=n(64),_=n(82),y=n(90),b={name:"editor-body-image",mixins:[n(146).a],props:{url:{type:String}},methods:{error:function(t){this.$emit("error",t)}}},C=Object(m.a)(b,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"editor-body-image"},[e("img",{staticClass:"editor-body-image__img",attrs:{loading:"lazy",src:this.url,alt:""},on:{error:this.error}})])},[],!1,null,null,null).exports,w=(n(759),{name:"editor-comment",mixins:[h.a],components:{ReplyIcon:v,FormButton:l.a,CloseIcon:p.a,QuoteIcon:f,Youtube:_.a,VKVideo:y.a,ImageComponent:C},props:{placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},waiting:{type:Boolean,default:!1}},data:function(){return{html:"",attach:[],isExpanded:!1,maxAttachCount:3}},computed:{attachIndex:function(){return this.attach.map(function(t){return t.url})},embed:function(){var t=this.$goharu.config.embed;return{youtube:t.youtube,vkvideo:t.vkvideo,image:t.image}},isFilled:function(){return!(!this.attach.length&&!this.html)},provider:function(){return{youtube:"Youtube",vkvideo:"VKVideo",image:"ImageComponent"}}},created:function(){var t=Object(d.a)(),e=u()(t,2);this.onChangeEffect=e[0],this.destroyChangeEffect=e[1]},mounted:function(){var t=this;this.$nextTick(function(){t.handleInput()}),this.$refs.area.addEventListener("keydown",this.handleEvents),this.$refs.area.addEventListener("paste",this.handleEvents),this.$refs.area.addEventListener("drop",this.handleEvents)},updated:function(){var t=this;this.onChangeEffect(function(){t.$emit("change",{version:"[email protected]",html:t.html,attach:t.attach})},[this.html,this.attach])},beforeDestroy:function(){this.destroyChangeEffect(),this.$refs.area.removeEventListener("keydown",this.handleEvents),this.$refs.area.removeEventListener("paste",this.handleEvents),this.$refs.area.removeEventListener("drop",this.handleEvents)},methods:{StringToNode:function(t){var e=document.createElement("div");e.innerHTML=t;for(var n=e.firstChild;n&&1!==n.nodeType;)n=n.nextSibling;return n?n.cloneNode(!0):e.firstChild.cloneNode(!0)},trimText:function(t){return t.replace(/^(\s|<br>|<br \/>|<div><br><\/div>| )+/gim,"").replace(/(\s|<br>|<br \/>|<div><br><\/div>| )+$/gim,"").replace(/(<br>|<br \/>|<div><br><\/div>){3,}/gim,"$1$1")},isTextEmpty:function(t){return!t.replace(/<(\/?div|br\/?)>/gim," ").trim()},setCursorPos:function(){var t=this.$refs.area.querySelector("[data-editor-cursor]"),e=window.getSelection();if(t&&e.rangeCount){var n=new Range;n.setStartBefore(t),n.setEndBefore(t),e.removeAllRanges(),e.addRange(n),t.remove()}},isQuote:function(t){return!(!t||!t.tagName||"I"!==t.tagName)},addQuote:function(){this.$refs.area.focus();var t=window.getSelection();t.deleteFromDocument();var e=t.getRangeAt(0),n=/iphone|ipad|ipod/gi.test(navigator.userAgent),i=this.StringToNode("<i><span data-editor-cursor></span><br /></i>"),r=this.StringToNode("<br />");n||this.isQuote(e.startContainer)||this.isQuote(e.startContainer.parentElement)?(this.$refs.area.appendChild(i),this.$refs.area.appendChild(r)):(e.insertN
1ode(r),e.insertNode(i),t.collapseToEnd()),this.setCursorPos(),this.handleInput()},removeEmptyQuote:function(t){if(this.isTextEmpty(t.innerHTML)){var e=t.nextElementSibling;e&&e.tagName&&"BR"===e.tagName&&e.remove(),t.remove()}},handleEnterKey:function(t){if(t.ctrlKey)t.preventDefault(),this.handleSend();else{var e=window.getSelection(),n=e.getRangeAt(0),i=1===n.startContainer.nodeType?n.startContainer:n.startContainer.parentElement,r=i.closest("i");if(r&&(/(<br>|<br \/>|<div><br><\/div>){3,}$/gi.test(r.innerHTML)||this.isTextEmpty(r.innerHTML)))return t.preventDefault(),r.nextSibling&&!this.isQuote(r.nextSibling)||r.parentNode.insertBefore(this.StringToNode("<br />"),r.nextSibling),r.parentNode.insertBefore(this.StringToNode("<span data-editor-cursor></span>"),r.nextSibling),r.innerHTML=this.trimText(r.innerHTML),this.removeEmptyQuote(r),void this.setCursorPos();if(/(WebKit|Chrome)\//.test(navigator.userAgent)&&(this.isQuote(n.startContainer)||this.isQuote(n.startContainer.parentElement))){t.preventDefault();var a=i.offsetHeight;n.insertNode(this.StringToNode("<br />")),a===i.offsetHeight&&n.insertNode(this.StringToNode("<br />")),e.collapseToEnd()}}},handleEvents:function(t){var e=this;switch(t.type){case"keydown":switch(t.key){case"Enter":this.handleEnterKey(t);break;case"Backspace":case"Delete":var n=window.getSelection().getRangeAt(0);this.isQuote(n.startContainer)?/^(<br>|<br \/>|<div><br><\/div>)$/gi.test(n.startContainer.innerHTML)&&(t.preventDefault(),this.removeEmptyQuote(n.startContainer)):this.isQuote(n.startContainer.parentElement)&&("Backspace"!==t.key||0!==n.startOffset&&0!==n.endOffset||t.preventDefault()),this.handleInput()}break;case"paste":if($(t.target).closest(this.$refs.area)){t.preventDefault();var i=(t.clipboardData.getData("text/plain")||"").trim();if(!i)return!1;if(this.attach.length<this.maxAttachCount&&this.urlAttach(i))return;var r=window.getSelection();if(!r.rangeCount)return;var a=r.getRangeAt(0);r.deleteFromDocument(),i.split(/(\r\n|\r|\n)/).reverse().forEach(function(t){t.length>0&&(/(\r\n|\r|\n)/.test(t)?a.insertNode(e.StringToNode("<br />")):a.insertNode(document.createTextNode(t)))}),r.collapseToEnd(),this.handleInput()}break;case"drop":if($(t.target).closest(this.$refs.area))return t.preventDefault(),!1}},handleAttachError:function(t){"IMG"===t.target.tagName&&(t.target.src="/s/f/assets/noimage.jpg")},handleAttachClick:function(t){var e=t.target.closest(".editor-body-image");if(e){var n=e.querySelector("img"),i=e.querySelector("a");i&&i.getAttribute("href")||t.target!==n||this.$goharu.layer.open(g.a,{props:{images:[{url:n.getAttribute("src"),width:n.naturalWidth,height:n.naturalHeight,caption:n.getAttribute("alt")}]}})}},urlAttach:function(t){if(!t||this.attachIndex.indexOf(t)>=0)return!1;var e=this.embed,n=e.youtube,i=e.vkvideo,r=e.image;switch(!0){case n.regexp.test(t):return this.attach=[].concat(s()(this.attach),[{provider:n.provider,url:t}]),!0;case i.regexp.test(t):return this.attach=[].concat(s()(this.attach),[{provider:i.provider,url:t}]),!0;case r.regexp.test(t):return this.attach=[].concat(s()(this.attach),[{provider:r.provider,url:t}]),!0}return!1},handleInput:function(){var t=this.$refs.area;t.innerHTML.replace(/<(\/?div|br\/?)>/gim," ").trim()||(t.innerHTML=""),t.classList.toggle("first-quote",t.childNodes&&this.isQuote(t.childNodes[0])),this.html=t.innerHTML},handleAttachRm:function(t){var e=s()(this.attach);e.splice(t,1),this.attach=e},handleSend:function(){var t=this;this.$refs.area.querySelectorAll("i").forEach(function(e){e.innerHTML=t.trimText(e.innerHTML),t.removeEmptyQuote(e)}),this.html=this.trimText(this.$refs.area.innerHTML),0===this.html.length&&0===this.attach.length||this.$emit("post",{version:"1.0.0",html:this.html,attach:this.attach})},focus:function(){this.$refs.area.focus()},focusWith:function(t){this.$refs.area.innerHTML=t+"<span data-editor-cursor></span><br />",this.$refs.area.focus(),this.setCursorPos(),this.html=this.$refs.area.innerHTML},clear:function(){this.$refs.area.innerHTML="",this.html="",this.attach=[]},close:function(){this.clear(),this.isExpanded=!1},handleFocus:function(){this.isExpanded=!0},handleCancel:function(){this.isExpanded=!1,this.clear(),this.$emit("cancel",this)}}}),x=Object(m.a)(w,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"editor-comment",class:{"editor-comment__active":t.isExpanded}},[n("p",{ref:"area",staticClass:"editor-comment__area",attrs:{contenteditable:!t.disabled,"data-placeholder":t.placeholder}
1,on:{focus:t.handleFocus,input:t.handleInput}}),t._v(" "),t.attach.length?n("div",{staticClass:"editor-comment__attachments"},[n("div",{staticClass:"editor-comment__attachments-limiter",on:{click:t.handleAttachClick}},t._l(t.attach,function(e,i){return n("div",{staticClass:"editor-comment__attachments-limiter-attach"},[t.provider[e.provider]?n(t.provider[e.provider],{key:e.url,tag:"div",staticClass:"thread-comment-body__provider",attrs:{popup:!0,url:e.url},on:{error:t.handleAttachError}},[t._v("\n "+t._s(e.url)+"\n ")]):t._e(),t._v(" "),n("span",{staticClass:"editor-comment__attachments-limiter-attach-rm",on:{click:function(e){return t.handleAttachRm(i)}}},[n("close-icon",{staticClass:"editor-comment__attachments-limiter-attach-rm-icon"})],1)],1)}),0)]):t._e(),t._v(" "),t.isExpanded?n("div",{staticClass:"editor-comment__buttons"},[n("form-button",{staticClass:"editor-comment__buttons-send",class:{"editor-comment__buttons-send-waiting":t.waiting},attrs:{disabled:t.disabled,size:"small",type:"neutral2"},on:{click:t.handleSend}},[n("div",[t.mediaPhone()?n("reply-icon"):t._e(),t._v(" "),t.mediaPhone()?t._e():n("span",[t._v("ÐÑпÑавиÑÑ")])],1),t._v(" "),t.waiting?n("div",[n("span"),t._v(" "),n("span"),t._v(" "),n("span")]):t._e()]),t._v(" "),n("form-button",{staticClass:"editor-comment__buttons-cancel",attrs:{disabled:t.disabled,size:"small",type:"text"},on:{click:t.handleCancel}},[t.mediaPhone()?n("close-icon"):t._e(),t._v(" "),t.mediaPhone()?t._e():n("span",[t._v("ÐÑмена")])],1),t._v(" "),t.isExpanded?n("div",{staticClass:"editor-comment__icons"},[n("div",{attrs:{title:"ÐÑÑавиÑÑ ÑиÑаÑÑ"},on:{click:t.addQuote}},[n("quote-icon")],1)]):t._e()],1):t._e(),t._v(" "),t.isExpanded?t._e():n("div",{staticClass:"editor-comment__icons"},[n("div",{attrs:{title:"ÐÑÑавиÑÑ ÑиÑаÑÑ"},on:{click:t.addQuote}},[n("quote-icon")],1)])])},[],!1,null,null,null).exports,L=n(15),k=n.n(L),O=n(10),E=n.n(O),M=n(59),j={mixins:[M.a],methods:{loadReplies:function(){var t=k()(E.a.mark(function t(){var e,n,i,r=arguments;return E.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},n=this.apiURL("threads.comments",e),t.next=1,this.$goharu.auth.axios().get(n);case 1:return i=t.sent,t.abrupt("return",i.data);case 2:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),loadComments:function(){var t=k()(E.a.mark(function t(e){var n,i;return E.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.apiURL("threads.comments",e),t.next=1,this.$goharu.auth.axios().get(n);case 1:return i=t.sent,t.abrupt("return",i.data);case 2:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),deleteComment:function(){var t=k()(E.a.mark(function t(e){var n,i;return E.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.apiURL("threads.deleteComment"),t.next=1,this.$goharu.auth.axios().post(n,{comment_id:e});case 1:return i=t.sent,t.abrupt("return",i.data);case 2:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),reportComment:function(){var t=k()(E.a.mark(function t(e,n){var i,r;return E.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=this.apiURL("threads.reportComment"),t.next=1,this.$goharu.auth.axios().post(i,{comment_id:e,reason:n});case 1:return r=t.sent,t.abrupt("return",r.data);case 2:case"end":return t.stop()}},t,this)}));return function(e,n){return t.apply(this,arguments)}}(),postComment:function(){var t=k()(E.a.mark(function t(e,n){var i,r;return E.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=this.apiURL("threads.postComment"),t.next=1,this.$goharu.auth.axios().post(i,{thread_id:e,body:n});case 1:return r=t.sent,t.abrupt("return",r.data);case 2:case"end":return t.stop()}},t,this)}));return function(e,n){return t.apply(this,arguments)}}(),postReply:function(){var t=k()(E.a.mark(function t(e,n,i){var r,a;return E.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.apiURL("threads.postComment"),t.next=1,this.$goharu.auth.axios().post(r,{thread_id:e,parent_id:n,body:i});case 1:return a=t.sent,t.abrupt("return",a.data);case 2:case"end":return t.stop()}},t,this)}));return function(e,n,i){return t.apply(this,arguments)}}(),postEdit:function(){var t=k()(E.a.mark(function t(e,n){var i,r;return E.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=this.apiURL("threads.editComment"),t.next=1,this.$goharu.auth.axios().post(i,{comment_id:e,body:n});case 1:return r=t.sent,t.abrupt("return",r.data);case 2:case"end":return t.stop()}},t,this)}));return function(e,n){return t.apply(this,arguments)}}(),createThread:function(){var t=k()(E.a.mark(function t(e,n){var i,r;return E.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=this.apiURL("threads.create"),t.next=1,this.$goharu.auth.axios().post(i,{entity_id:e,entity_type:n});case 1:return r=t.sent,t.abrupt("return",r.data);case 2:case"end":return t.stop()}},t,this)}));return function(e,n){return t.apply(this,arguments)}}()}},P=n(51),S=n(66),I=n.n(S),V=n(80),D=Object(m.a)({name:"icon-zoom-in"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M24.7522 19.3103C24.7522 18.6168 24.1899 18.0545 23.4964 18.0545C22.8028 18.0545 22.2406 18.6168 22.2406 19.3103V22.2406H19.3103C18.6168 22.2406 18.0545 22.8028 18.0545 23.4964C18.0545 24.1899 18.6168 24.7522 19.3103 24.7522H22.2406V27.6824C22.2406 28.376 22.8028 28.9382 23.4964 28.9382C24.1899 28.9382 24.7522 28.376 24.7522 27.
16824V24.7522H27.6824C28.376 24.7522 28.9382 24.1899 28.9382 23.4964C28.9382 22.8028 28.376 22.2406 27.6824 22.2406H24.7522V19.3103Z"}}),this._v(" "),e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 23.1628C6 13.684 13.684 6 23.1628 6C32.6415 6 40.3256 13.684 40.3256 23.1628C40.3256 32.6415 32.6415 40.3256 23.1628 40.3256C13.684 40.3256 6 32.6415 6 23.1628ZM23.1628 8.51163C15.0712 8.51163 8.51163 15.0712 8.51163 23.1628C8.51163 31.2544 15.0712 37.814 23.1628 37.814C31.2544 37.814 37.814 31.2544 37.814 23.1628C37.814 15.0712 31.2544 8.51163 23.1628 8.51163Z"}}),this._v(" "),e("path",{attrs:{d:"M38.2833 36.5074C37.7929 36.0169 36.9978 36.0169 36.5074 36.5074C36.0169 36.9978 36.0169 37.7929 36.5074 38.2833L39.8562 41.6322C40.3466 42.1226 41.1418 42.1226 41.6322 41.6322C42.1226 41.1418 42.1226 40.3466 41.6322 39.8562L38.2833 36.5074Z"}})])},[],!1,null,null,null).exports,A=n(74),H=(n(761),{name:"thread-comment-body",mixins:[j,V.a],components:{ChevronDown:A.a,Youtube:_.a,VKVideo:y.a,ImageComponent:C,Commenter:x,ZoomInIcon:D},props:{comment:{type:Object},body:{type:Object}},data:function(){return{isBodyCollapsed:!1,isEditorVisible:!1,isPostLoading:!1,images:[]}},watch:{isEditorVisible:function(t){var e=this;this.$emit("visible",t),this.$nextTick(function(){e.eventsEnable()})},html:function(t){var e=this;this.$nextTick(function(){e.checkFirstQuote()})}},computed:{html:function(){return this.body.html.replace(/(https?:\/\/[^"'<>\s]+)/gim,'<a class="thread-comment-body__link" href="$1" target="_blank" rel="nofollow">$1</a>')},provider:function(){return{youtube:"Youtube",vkvideo:"VKVideo",image:"ImageComponent"}}},mounted:function(){var t=this;this.$nextTick(function(){t.checkFirstQuote()}),this.eventsEnable()},methods:{checkFirstQuote:function(){var t=this.$refs.bodyHtml;t&&t.classList.toggle("first-quote",t.childNodes&&"I"===t.childNodes[0].tagName)},eventsEnable:function(){this.eventsDisable(),!this.isEditorVisible&&this.body.html.length>200&&(this.$refs.body.classList.add("thread-comment-body__body-cut"),this.checkHeight(),window.addEventListener("resize",this.checkHeight))},eventsDisable:function(){this.isBodyCollapsed=!1,this.$refs.body&&(this.$refs.body.style.removeProperty("max-height"),this.$refs.body.classList.remove("thread-comment-body__body-cut")),window.removeEventListener("resize",this.checkHeight)},checkHeight:function(t){this.$refs.body&&(this.isBodyCollapsed=$(this.$refs.bodyHtml).height()>$(this.$refs.body).height(),this.$refs.body.classList.toggle("thread-comment-body__body-collapsed",this.isBodyCollapsed))},expandBody:function(){var t=this;$(this.$refs.body).css("max-height",$(this.$refs.bodyHtml).height()),setTimeout(function(){t.checkHeight(),t.eventsDisable()},600)},handleAttachError:function(t){"IMG"===t.target.tagName&&(t.target.src="/s/f/assets/noimage.jpg")},handleAttachClick:function(t){var e=this,n=t.currentTarget.closest('[class$="attachments"]').querySelectorAll(".editor-body-image img");if(0===this.images.length&&n.forEach(function(t){e.images.push({url:t.getAttribute("src"),width:t.naturalWidth,height:t.naturalHeight,caption:t.getAttribute("alt")})}),0!==this.images.length){var i=t.currentTarget.closest('[class$="attach"]').querySelector(".editor-body-image img");if(i){var r=this.images.findIndex(function(t){if(t.url===i.getAttribute("src"))return!0});this.$goharu.layer.open(g.a,{props:{images:this.images,position:Math.max(0,r)}})}}},edit:function(){var t=this;this.isEditorVisible=!0,this.$nextTick(function(){t.$refs.editor.focusWith(t.body.html),t.body.attach.forEach(function(e){t.$refs.editor.urlAttach(e.url)})})},handleEditorSend:function(t){var e=this;if(!this.$goharu.auth.user())return this.$goharu.auth.attempt();this.isPostLoading=!0,this.postEdit(this.comment.id,t).then(function(t){e.$emit("update",t),e.$refs.editor.clear(),e.isEditorVisible=!1}).catch(function(t){e.$goharu.$emit("comments:message",t.response.data)}).finally(function(){e.isPostLoading=!1})},handleEditorCancel:function(){this.isEditorVisible=!1}}}),T=Object(m.a)(H,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"thread-comment-body"},[t.isEditorVisible?n("div",{staticClass:"thread-comment__editor"},[n("commenter",{ref:"editor",staticClass:"thread-comment__editor-area",attrs:{disabled:t.isPostLoading,waiting:t.isPostLoading,placeholder:"Твой комменÑаÑий"},on:{cancel:t.handleEditorCancel,post:t.handleEditorSend}})],1):t._e(),t._v(" "),t.body.html&&!t.isEditorVisible?n("div",{ref:"body",
1staticClass:"thread-comment-body__body"},[n("div",{ref:"bodyHtml",staticClass:"thread-comment-body__body-html",domProps:{innerHTML:t._s(t.html)}})]):t._e(),t._v(" "),t.isBodyCollapsed?n("div",{staticClass:"thread-comment-body__expand",on:{click:t.expandBody}},[t._v("\n ÐоказаÑÑ Ð¿Ð¾Ð»Ð½Ð¾ÑÑÑÑ\n "),n("chevron-down")],1):t._e(),t._v(" "),t.body.attach&&t.body.attach.length&&!t.isEditorVisible?n("div",{staticClass:"thread-comment-body__attachments"},[n("div",{staticClass:"thread-comment-body__attachments-limiter"},t._l(t.body.attach,function(e){return n("div",{staticClass:"thread-comment-body__attachments-limiter-attach"},[t.provider[e.provider]?n(t.provider[e.provider],{key:e.url,tag:"div",staticClass:"thread-comment-body__provider",attrs:{popup:!0,url:e.url},on:{error:t.handleAttachError}},[t._v("\n "+t._s(e.url)+"\n ")]):t._e(),t._v(" "),n("span",{staticClass:"thread-comment-body__attachments-limiter-attach-overlay",on:{click:t.handleAttachClick}},[n("zoom-in-icon")],1)],1)}),0)]):t._e()])},[],!1,null,null,null).exports,R=Object(m.a)({name:"icon-thumbs-up"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"clip-rule":"evenodd",d:"M10.7066 4.37791C10.8102 4.1481 11.0415 4 11.2966 4C11.9816 4 12.6385 4.26818 13.1229 4.74554C13.6072 5.2229 13.8793 5.87035 13.8793 6.54544V8.45452H16.8849C17.1643 8.45197 17.441 8.50903 17.696 8.62181C17.9521 8.73513 18.1803 8.90199 18.3645 9.11082C18.5488 9.31965 18.6847 9.56547 18.763 9.83125C18.8413 10.097 18.86 10.3764 18.8179 10.65L17.9269 16.3772C17.9269 16.3773 17.9269 16.377 17.9269 16.3772C17.8567 16.8322 17.6221 17.2474 17.2663 17.5455C16.9113 17.8429 16.4596 18.0042 15.9938 17.9999H6.77688C6.26314 17.9999 5.77045 17.7988 5.40719 17.4408C5.04392 17.0827 4.83984 16.5972 4.83984 16.0908V11.6363C4.83984 11.13 5.04392 10.6444 5.40719 10.2864C5.77045 9.92837 6.26314 9.72724 6.77688 9.72724H8.2943L10.7066 4.37791ZM9.35959 10.4986L11.6891 5.33292C11.8837 5.39411 12.0626 5.5005 12.2097 5.64549C12.4519 5.88417 12.588 6.20789 12.588 6.54544V9.09088C12.588 9.44233 12.8771 9.72724 13.2337 9.72724H16.8882L16.8955 9.7272C16.9891 9.72615 17.0818 9.74518 17.1672 9.78295C17.2526 9.82072 17.3286 9.87634 17.39 9.94595C17.4515 10.0156 17.4968 10.0975 17.5229 10.1861C17.549 10.2746 17.5552 10.3676 17.5412 10.4588C17.5412 10.4587 17.5412 10.4588 17.5412 10.4588L16.6501 16.1863C16.6268 16.3381 16.5486 16.4764 16.4299 16.5758C16.3113 16.6752 16.1602 16.729 16.0045 16.7272L9.35959 16.7272V10.4986ZM8.06823 16.7272V11H6.77688C6.60563 11 6.4414 11.067 6.32031 11.1863C6.19923 11.3057 6.1312 11.4675 6.1312 11.6363V16.0908C6.1312 16.2596 6.19923 16.4215 6.32031 16.5408C6.4414 16.6602 6.60563 16.7272 6.77688 16.7272H8.06823Z","fill-rule":"evenodd"}})])},[],!1,null,null,null).exports,B=Object(m.a)({name:"icon-thumbs-down"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"clip-rule":"evenodd",d:"M17.4272 7.47378C17.2699 7.34073 17.0685 7.26922 16.8613 7.27284L16.8499 7.27294H15.7716V13.0001H16.8499L16.8613 13.0002C17.0685 13.0038 17.2699 12.9323 17.4272 12.7993C17.575 12.6742 17.6742 12.503 17.7086 12.3148V7.9582C17.6742 7.77002 17.575 7.59881 17.4272 7.47378ZM14.4803 13.5014L12.1508 18.6671C11.9562 18.6059 11.7772 18.4995 11.6301 18.3545C11.3879 18.1158 11.2519 17.7921 11.2519 17.4546V14.9092C11.2519 14.5577 10.9628 14.2728 10.6062 14.2728H6.95166L6.94434 14.2729C6.85075 14.2739 6.75805 14.2549 6.67265 14.2171C6.58726 14.1793 6.51122 14.1237 6.4498 14.0541C6.38838 13.9845 6.34306 13.9026 6.31696 13.814C6.2909 13.7255 6.28464 13.6325 6.29861 13.5414C6.29859 13.5415 6.29863 13.5413 6.29861 13.5414L7.18971 7.8138C7.21306 7.66206 7.29127 7.52374 7.40992 7.42435C7.52857 7.32495 7.67968 7.27116 7.83539 7.2729L14.4803 7.27294V13.5014ZM16.8447 6.00023C17.3661 5.99264 17.8725 6.17321 18.2683 6.50805C18.6657 6.84423 18.924 7.31251 18.9942 7.82399C18.9981 7.85226 19 7.88076 19 7.90929V12.3638C19 12.3923 18.9981 12.4208 18.9942 12.4491C18.924 12.9605 18.6657 13.4288 18.2683 13.765C17.8725 14.0998 17.3661 14.2804 16.8447 14.2728H15.5455L13.1333 19.6221C13.0296 19.8519 12.7984 20 12.5432 20C11.8582 20 11.2013 19.7318 10.717 19.2545C10.2326 18.7771 9.96051 18.1297 9.96051 17.4546V15.5455H6.95496C6.67554 15.5481 6.39885 15.491 6.14389 15.3782C5.88771 15.2649 5.65959 15.0981 5.47534 14.8892C5.29108 14.6804 5.1551 14.4346 5.07681 14.1688C4.99852 13.903 4.9798 13.6237 5.02193 13.3501L5.91296 7.62297C5.91299 7.62278 5.91293 7.62316 5.91296 7.62297C5.98311 7.16798 6.21777 6.75269 6.57358 6.45462C6.92851 6.15728 7.38025 5.99599 7.84597 6.00023H16.8447Z","fill-rule":"evenodd"}})])},[],!1,null,null,null).exports,U=(n(763),{name:"thread-comment-actions",mixins:[M.a],components:{ThumbsUpIcon:R,ThumbsDownIcon:B},props:{comment:{type:Object}},data:function(){return{isLoading:!1,positive:this.comment.positive,negative:this.comment.
1negative,action_type:this.comment.action_type}},computed:{calc:function(){return this.positive-this.negative}},methods:{react:function(t){var e=this;if(!this.$goharu.auth.user())return this.$goharu.auth.attempt();if(!this.isLoading){this.isLoading=!0;var n=this.apiURL("threads.react");return this.$goharu.auth.axios().post(n,{comment_id:this.comment.id,action:t}).then(function(t){var n=t.data.type;"positive"===e.action_type?e.positive-=1:"negative"===e.action_type&&(e.negative-=1),"positive"===n?e.positive+=1:"negative"===n&&(e.negative+=1),e.action_type=n||null}).catch(function(t){e.$goharu.$emit("comments:message",t.response.data)}).finally(function(){e.isLoading=!1})}}},mounted:function(){}}),Z=Object(m.a)(U,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"action",staticClass:"thread-comment-actions"},[n("div",t._b({staticClass:"thread-comment-actions__action thread-comment-actions__action-positive",class:{"thread-comment-actions__action-selected":"positive"===t.action_type},on:{click:function(e){return t.react("positive")}}},"div",t._d({},[t.comment.isOwner||t.comment.isMod?"title":null,"ÐÑавиÑÑÑ: "+this.positive])),[n("div",{staticClass:"thread-comment-actions__action-icon"}),t._v(" "),n("thumbs-up-icon")],1),t._v(" "),n("div",{staticClass:"thread-comment-actions__value",class:{"thread-comment-actions__value-positive":t.calc>0,"thread-comment-actions__value-negative":t.calc<0}},[t._v("\n "+t._s(t.calc)+"\n ")]),t._v(" "),n("div",t._b({staticClass:"thread-comment-actions__action thread-comment-actions__action-negative",class:{"thread-comment-actions__action-selected":"negative"===t.action_type},on:{click:function(e){return t.react("negative")}}},"div",t._d({},[t.comment.isOwner||t.comment.isMod?"title":null,"Ðе нÑавиÑÑÑ: "+this.negative])),[n("div",{staticClass:"thread-comment-actions__action-icon"}),t._v(" "),n("thumbs-down-icon")],1)])},[],!1,null,null,null).exports,q=n(110),N=Object(m.a)({name:"icon-options"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M16 8C16 6.9 15.1 6 14 6C12.9 6 12 6.9 12 8C12 9.1 12.9 10 14 10C15.1 10 16 9.1 16 8Z"}}),this._v(" "),e("path",{attrs:{d:"M16 20C16 18.9 15.1 18 14 18C12.9 18 12 18.9 12 20C12 21.1 12.9 22 14 22C15.1 22 16 21.1 16 20Z"}}),this._v(" "),e("path",{attrs:{d:"M16 14C16 12.9 15.1 12 14 12C12.9 12 12 12.9 12 14C12 15.1 12.9 16 14 16C15.1 16 16 15.1 16 14Z"}})])},[],!1,null,null,null).exports,F=n(160),z=n(161),W=(n(765),{name:"thread-comment-options",mixins:[],components:{OptionsIcon:N,EditIcon:F.a,DeleteIcon:z.a},props:{comment:{type:Object}},data:function(){return{dropbox:!1,currentAction:{}}},methods:{toggleDropbox:function(){this.dropbox=!this.dropbox},waitAction:function(t,e){var n=this;if(e&&"mousedown"===e.type&&0!==e.button)return!0;this.cancelAction();var i=e.currentTarget;this.currentAction={timer_id:0,action:t,obj:i},this.currentAction.timer_id=setTimeout(function(){i.removeAttribute("data-wait"),n.handleAction(n.currentAction.action)},1e3),this.currentAction.obj.setAttribute("data-wait",1)},cancelAction:function(){var t=this.currentAction.obj||null;if(!t)return!0;clearTimeout(this.currentAction.timer_id),t.removeAttribute("data-wait"),this.currentAction={}},handleAction:function(t){switch(t){case"edit":this.$emit("edit");break;case"delete":this.$emit("delete")}this.dropbox=!1}},watch:{dropbox:function(t){t?window.addEventListener("click",this.outClickEvent):window.removeEventListener("click",this.outClickEvent)}},created:function(){var t=this;this.outClickEvent=function(e){t.$refs.root&&t.$refs.root.contains(e.target)||(t.dropbox=!1)}},destroyed:function(){window.removeEventListener("click",this.outClickEvent)}}),G=Object(m.a)(W,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"root",staticClass:"thread-comment-options"},[n("div",{staticClass:"thread-comment-options__icon",class:{"thread-comment-options__icon--opened":t.dropbox},on:{click:t.toggleDropbox}},[n("options-icon",{staticClass:"thread-comment-options__icon-img"})],1),t._v(" "),n("transition",{attrs:{name:"thread-comment-options__dropbox-"}},[t.dropbox?n("div",{staticClass:"thread-comment-options__dropbox"},[n("div",{staticClass:"thread-comment-options__action",on:{click:function(e){return t.handleAction("edit")}}},[n("div",[n("edit-icon"),t._v("\n РедакÑиÑоваÑÑ\n ")],1)]),t._v(" "),n("div",{staticClass:"thread-comment-options__action",on:{mousedown:function(e){return t.waitAction("delete",e)}
1,mouseup:function(e){return t.cancelAction()},mouseout:function(e){return t.cancelAction()},touchstart:function(e){return t.waitAction("delete",e)},touchend:function(e){return t.cancelAction()},touchmove:function(e){return t.cancelAction()}}},[n("div",[n("delete-icon"),t._v("\n УдалиÑÑ\n ")],1)])]):t._e()])],1)},[],!1,null,null,null).exports,K=Object(m.a)({name:"icon-report"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.4137 6.43604C14.3918 5.85409 15.6004 5.85567 16.5835 6.43468L16.5859 6.43606L21.4312 9.31951C22.4016 9.9072 22.9995 10.9681 22.9995 12.127V17.8724C22.9995 19.0219 22.4025 20.0917 21.4312 20.6799L21.4273 20.6823L16.5859 23.5634C15.6078 24.1453 14.3991 24.1438 13.416 23.5648L13.4136 23.5634L8.57227 20.6823C7.59568 20.1012 7 19.0284 7 17.8724V12.127C7 10.9775 7.59698 9.90775 8.56829 9.31953L8.57222 9.31715L13.4137 6.43604ZM14.0184 7.4695L9.1792 10.3493C8.57038 10.7189 8.19005 11.3957 8.19005 12.127V17.8724C8.19005 18.6148 8.57246 19.2891 9.17704 19.6489L14.0161 22.5286L14.0172 22.5292C14.6313 22.8903 15.3783 22.8886 15.981 22.53L20.8185 19.6512L20.8203 19.6501C21.4291 19.2805 21.8095 18.6037 21.8095 17.8724V12.127C21.8095 11.3884 21.43 10.7194 20.8203 10.3493L20.8185 10.3482L15.9834 7.47086L15.9823 7.47024C15.3682 7.10911 14.6212 7.11092 14.0184 7.4695Z"}}),this._v(" "),e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 10C15.5523 10 16 10.4477 16 11V15C16 15.5523 15.5523 16 15 16C14.4477 16 14 15.5523 14 15V11C14 10.4477 14.4477 10 15 10Z"}}),this._v(" "),e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 19C14 18.4477 14.4477 18 15 18H15.01C15.5623 18 16.01 18.4477 16.01 19C16.01 19.5523 15.5623 20 15.01 20H15C14.4477 20 14 19.5523 14 19Z"}})])},[],!1,null,null,null).exports,Q=(n(767),{name:"thread-comment-reports",mixins:[],components:{ReportIcon:K},props:{comment:{type:Object},loggedIn:{type:Boolean,default:!1},reportIconKey:{type:Number,default:0}},computed:{title:function(){return this.comment.reported?"Ðалоба на комменÑаÑий оÑпÑавлена":"ÐожаловаÑÑÑÑ Ð½Ð° комменÑаÑий"}},data:function(){return{dropbox:!1,currentAction:{},reasons:this.$goharu.$data.reportReasons}},methods:{toggleDropbox:function(){this.loggedIn&&(this.dropbox=!this.dropbox)},waitAction:function(t,e){var n=this;if(e&&"mousedown"===e.type&&0!==e.button)return!0;this.cancelAction();var i=e.currentTarget;this.currentAction={timer_id:0,action:t,obj:i},this.currentAction.timer_id=setTimeout(function(){i.removeAttribute("data-wait"),n.handleAction(n.currentAction.action)},1e3),this.currentAction.obj.setAttribute("data-wait",1)},cancelAction:function(){var t=this.currentAction.obj||null;if(!t)return!0;clearTimeout(this.currentAction.timer_id),t.removeAttribute("data-wait"),this.currentAction={}},handleAction:function(t){this.$emit("report",t),this.dropbox=!1}},watch:{dropbox:function(t){t?window.addEventListener("click",this.outClickEvent):window.removeEventListener("click",this.outClickEvent)}},created:function(){var t=this;this.outClickEvent=function(e){t.$refs.root&&t.$refs.root.contains(e.target)||(t.dropbox=!1)}},destroyed:function(){window.removeEventListener("click",this.outClickEvent)}}),Y=Object(m.a)(Q,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"root",staticClass:"thread-comment-reports"},[n("transition",{attrs:{name:"thread-comment-reports__reported-"}},[n("div",{key:t.reportIconKey,staticClass:"thread-comment-reports__icon",class:{"thread-comment-reports__icon-opened":t.dropbox,"thread-comment-reports__icon-reported":t.comment.reported,"thread-comment-reports__icon-disabled":!t.loggedIn},attrs:{title:t.title},on:{click:t.toggleDropbox}},[n("report-icon")],1)]),t._v(" "),t.loggedIn?n("transition",{attrs:{name:"thread-comment-reports__dropbox-"}},[t.dropbox?n("div",{ref:"dropbox",staticClass:"thread-comment-reports__dropbox"},t._l(t.reasons,function(e,i){return n("div",[n("div",{staticClass:"thread-comment-reports__action",on:{mousedown:function(e){return t.waitAction(i,e)},mouseout:function(e){return t.cancelAction()},mouseup:function(e){return t.cancelAction()},touchend:function(e){return t.cancelAction()},touchmove:function(e){return t.cancelAction()},touchstart:function(e){return t.waitAction(i,e)}}},[n("div",[n("report-icon"),t._v("\n "+t._s(e)+"\n ")],1)])])}),0):t._e()]):t._e()],1)},[],!1,null,null,null).exports,J=(n(769),{name:"threads-comment-reply-reply",mixins:[h.a,M.a],components:{ReportIcon:K,CommentBody:T,Youtube:_.a,ImageComponent:C,EditorCommenter:x,ReplyIcon:v,FormButton:l.a,IconG:P.a,ChevronDown:A.a,ChevronUp:q.a,CommentActions:Z,CommentOptions:G,CommentReports:Y},props:{comment:{type:Object}},computed:{avatarUrl:function(){return"https://www.goha.ru/avatar/"+this.comment.author_id},isUpdated:function(){var t=this.comment.created_at?new Date(this.comment.created_at).getTime():0;return(this.comment.updated_at?new Date(this.comment.updated_at).getTime():0)-t>0},dateCreated:function(){return this.date(this.comment.created_at)},dateUpdated:function(){return this.date(this.comment.updated_at)}},created:function(){var t=this;this.$goharu.$on("app.auth:attempt",function(){t.loggedIn=!!t.$goharu.auth.user(),t.comment.isOwner=t.comment.author_id===t.$goharu.auth.user().id})},data:function(){return{loggedIn:!1,isPostLoading:!1,isEditorVisible:!1,isEditing:!1,children:[],childrenLoadedCount:0,nextChildren:this.comment.comments>0,isChildrenLoading:!1,isChildrenVisible:!1,isFirstToggleLoaded:!1,reportIconKey:0}},mounted:function(){this.loggedIn=!!this.$goharu.auth.user()},methods:{date:function(t){var e=I.a.tz(t,"UTC");return new Date(e.tz("Europe/Moscow").format()).toLocaleDateString("ru-RU",{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"})},handleEditVisible:function(t){this.isEditing=!!t},edit:function(){this.$refs.commentBody.edit()},handleAnswerTo:function(t){this.$emit("reply",t)},handleEdit:function(t){this.$emit("update",t)},handleDelete:function(){this.$emit("delete")},handleReport:function(t){this.$emit("report",this.comment.id,t)}}}),X=Object(m.a)(J,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"threads-comment-reply",attrs:{"data-id":t.comment.id}},[n("div",{staticClass:"threads-comment-reply__header"},[n("div",{staticClass:"threads-comment-reply__header-avatar"},[n("img",{staticClass:"threads-comment-reply__header-avatar-img",attrs:{src:t.avatarUrl}})]),t._v(" "),n("div",{staticClass:"threads-comment-reply__header-user"},[n("div",{staticClass:"threads-comment-reply__header-user-name"},[t._v(t._s(t.comment.author_name))]),t._v(" "),n("div",{staticClass:"threads-comment-reply__header-user-date"},[t._v(t._s(t.dateCreated))])]),t._v(" "),n("div",{staticClass:"threads-comment__header-manage"},[t.comment.deleted_at||!t.loggedIn&&!t.comment.reported?t._e():n("div",{staticClass:"threads-comment__header-reports"},[n("comment-reports",{attrs:{comment:t.comment,loggedIn:t.loggedIn,reportIconKey:t.reportIconKey},on:{report:t.handleReport}})],1),t._v(" "),t.comment.deleted_at||!t.comment.isOwner&&!t.comment.isMod?t._e():n("div",{staticClass:"threads-comment-reply__header-options"},[n("comment-options",{attrs:{comment:t.comment},on:{delete:t.handleDelete,edit:t.edit}})],1)])]),t._v(" "),n("comment-body",{ref:"commentBody",attrs:{body:t.comment.body,comment:t.comment},on:{update:function(e){return t.handleEdit(e)},visible:t.handleEditVisible}}),t._v(" "),t.isUpdated?n("div",{staticClass:"threads-comment__updated"},[t._v("ÐомменÑаÑий оÑÑедакÑиÑован "+t._s(t.dateUpdated))]):t._e(),t._v(" "),t.isEditing?t._e():n("div",{staticClass:"threads-comment-reply__footer"},[n("div",{staticClass:"threads-comment-reply__reply",on:{click:function(e){return t.handleAnswerTo(t.comment)}}},[t.mediaPhone()?n("reply-icon"):t._e(),t._v(" "),t.mediaPhone()?t._e():n("span",[t._v("ÐÑвеÑиÑÑ")])],1),t._v(" "),n("CommentActions",{staticClass:"threads-comment-reply__actions",attrs:{comment:t.comment}})],1)],1)},[],!1,null,null,null).exports,tt=(n(771),Object(m.a)({name:"thread-comment-deleted"},function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"thread-comment-deleted"},[this._v("ÐомменÑаÑий Ñдален")])}
1,[],!1,null,null,null).exports),et=n(147),nt=n(111),it=(n(773),{name:"threads-comment-replies",mixins:[h.a],components:{IconComments:nt.a,ChevronDown:A.a},props:{replier:{type:Object},comments:{type:Number,default:0}},methods:{handleClick:function(){this.$emit("click")},getAvatarUrl:function(t){return"https://www.goha.ru/avatar/".concat(t)},decline:function(t,e){return Object(et.a)(t,e)}}}),rt=Object(m.a)(it,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"threads-comment-replies"},[n("div",{staticClass:"threads-comment-replies__body",on:{click:t.handleClick}},[t.mediaPhone()?n("div",{staticClass:"threads-comment-replies__count"},[n("icon-comments",{staticClass:"threads-comment-replies__count-icon"}),t._v("\n "+t._s(t.comments)+"\n ")],1):t._e(),t._v(" "),t.mediaPhone()?t._e():n("div",{staticClass:"threads-comment-replies__count"},[t._v("\n "+t._s(t.comments)+"\n "+t._s(t.decline(t.comments,["оÑвеÑ","оÑвеÑа","оÑвеÑов"]))+"\n "),n("chevron-down",{staticClass:"threads-comment-replies__count-chevron"})],1)])])},[],!1,null,null,null).exports,at=(n(775),{name:"threads-comment",mixins:[h.a,o.a,j],components:{CommentBody:T,Commenter:x,CommentActions:Z,CommentReply:X,CommentOptions:G,CommentReports:Y,CommentDeleted:tt,CommentReplies:rt,ReplyIcon:v,ReportIcon:K},props:{thread:{type:Object},comment:{type:Object}},computed:{isUpdated:function(){var t=this.comment.created_at?new Date(this.comment.created_at).getTime():0;return(this.comment.updated_at?new Date(this.comment.updated_at).getTime():0)-t>0},dateCreated:function(){return this.date(this.comment.created_at)},dateUpdated:function(){return this.date(this.comment.updated_at)}},created:function(){var t=this;this.$goharu.$on("app.auth:attempt",function(){t.loggedIn=!!t.$goharu.auth.user(),t.comment.isOwner=t.comment.author_id===t.$goharu.auth.user().id})},data:function(){return{loggedIn:!1,isPostLoading:!1,isEditorVisible:!1,isEditing:!1,children:[],nextChildren:this.comment.comments>0,isChildrenLoading:!1,replier:this.comment.replier_id?{id:this.comment.replier_id,name:this.comment.replier_name}:null,reportIconKey:0}},mounted:function(){this.loggedIn=!!this.$goharu.auth.user()},methods:{date:function(t){var e=I.a.tz(t,"UTC");return new Date(e.tz("Europe/Moscow").format()).toLocaleDateString("ru-RU",{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"})},handleDelete:function(){this.$emit("delete")},handleReport:function(t){this.$emit("report",this.comment.id,t)},getAvatarUrl:function(t){return"https://www.goha.ru/avatar/".concat(t)},handleEditVisible:function(t){this.isEditing=!!t,this.isEditorVisible=!1},edit:function(){this.$refs.commentBody.edit()},handleAnswerTo:function(t){var e=this;this.isEditorVisible=!0,this.$nextTick(function(){e.$refs.editor.$el.scrollIntoView({behavior:"smooth",block:"center"}),e.$refs.editor.isFilled?e.$refs.editor.focus():e.$refs.editor.focusWith("".concat(t.author_name,", "))})},handleChildrenLoad:function(){var t=this;this.nextChildren&&!this.isChildrenLoading&&(this.isChildrenLoading=!0,this.loadReplies({thread_id:this.thread.id,parent_id:this.comment.id,skip:this.children.length,order:"asc"}).then(function(e){var n=e.comments,i=e.next,r=e.replier,a=e.parent;t.children=[].concat(s()(t.children),s()(n)),t.nextChildren=i,t.replier=r?{id:r.replier_id,name:r.replier_name}:null,t.$emit("update",a)}).catch(function(){}).finally(function(){t.isChildrenLoading=!1}))},handleEditorSend:function(t){var e=this;if(!this.$goharu.auth.user())return this.$goharu.auth.attempt();this.isPostLoading=!0,this.postReply(this.thread.id,this.comment.id,t).then(function(){e.metrikaReachGoal("games:addcomment"),e.$refs.editor.clear(),e.isEditorVisible=!1,e.nextChildren=!0,e.handleChildrenLoad()}).catch(function(t){e.$goharu.$emit("comments:message",t.response.data)}).finally(function(){e.isPostLoading=!1})},handleEditorCancel:function(){this.isEditorVisible=!1},handleEdit:function(t){this.$emit("edit",t)},replyEdit:function(t){var e=s()(this.children),n=e.findIndex(function(e){return e.id===t.id});n>-1&&(e[n]=t,this.children=e)},replyDelete:function(t,e){var n=this;this.deleteComment(t).then(function(t){var i=s()(n.children);i[e]=t,n.children=i})},replySetReported:function(t){var e=this.children.findIndex(function(e){return+e.id===t});e>-1&&(this.children[e].reported=!0)},replyReport:function(t,e){var n=this;this.reportComment(t,e).then(function(){var e=n.$refs.commentReply.findIndex(function(e){return+e.$el.getAttribute("data-id")===t});e>-1&&(n.$refs.commentReply[e].reportIconKey=Date.now()),n.replySetReported(t)}).catch(function(t){n.$goharu.$emit("comments:message",t.response.data)})}}}),st=Object(m.a)(at,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"threads-comment",attrs:{"data-id":t.comment.id}},[n("div",{staticClass:"threads-comment__header"},[n("div",{staticClass:"threads-comment__header-avatar"},[n("img",{staticClass:"threads-comment__header-avatar-img",attrs:{alt:t.comment.author_name,src:t.getAvatarUrl(t.comment.author_id)}})]),t._v(" "),n("div",{staticClass:"threads-comment__header-user"},[n("div",{staticClass:"threads-comment__header-user-name"},[t._v(t._s(t.comment.author_name))]),t._v(" "),n("div",{staticClass:"threads-comment__header-user-date"},[t._v(t._s(t.dateCreated))])]),t._v(" "),n("div",{staticClass:"threads-comment__header-manage"},[t.comment.deleted_at||!t.loggedIn&&!t.comment.reported?t._e():n("div",{staticClass:"threads-comment__header-reports"},[n("comment-reports",{attrs:{comment:t.comment,loggedIn:t.loggedIn,reportIconKey:t.reportIconKey},on:{report:t.handleReport}})],1),t._v(" "),t.comment.deleted_at||!t.comment.isOwner&&!t.comment.isMod?t._e():n("div",{staticClass:"threads-comment__header-options"},[n("comment-options",{attrs:{comment:t.comment},on:{delete:t.handleDelete,edit:t.edit}})],1)])]),t._v(" "),t.comment.deleted_at?t._e():n("comment-body",{ref:"commentBody",attrs:{body:t.comment.body,comment:t.comment},on:{update:function(e){return t.handleEdit(e)},visible:t.handleEditVisible}}),t._v(" "),t.comment.deleted_at?n("div",{staticClass:"threads-comment__deleted"},[t._v("\n ÐомменÑаÑий Ñдален полÑзоваÑелем или админиÑÑÑаÑией.\n ")]):t._e(),t._v(" "),t.isUpdated&&!t.comment.deleted_at?n("div",{staticClass:"threads-comment__updated"},[t._v("\n ÐомменÑаÑий оÑÑедакÑиÑован "+t._s(t.dateUpdated)+"\n ")]):t._e(),t._v(" "),t.isEditing?t._e():n("div",{staticClass:"threads-comment__footer"},[n("div",{staticClass:"threads-comment__footer-reply",on:{click:function(e){return t.handleAnswerTo(t.comment)}}},[t.mediaPhone()?n("reply-icon"):t._e(),t._v(" "),t.mediaPhone()?t._e():n("span",[t._v("ÐÑвеÑиÑÑ")])],1),t._v(" "),t.replier&&!t.isEditing?n("comment-replies",{staticClass:"threads-comment__footer-replies",attrs:{comments:t.comment.comments-t.children.length,replier:t.replier},on:{click:t.handleChildrenLoad}}):t._e(),t._v(" "),t.comment.deleted_at?t._e():n("CommentActions",{staticClass:"threads-comment__actions",attrs:{comment:t.comment}})],1),t._v(" "),t.children.length?n("div",{staticClass:"threads-comment__children"},[t._l(t.children,function(e,i){return[e.deleted_at?t._e():n("comment-reply",{key:e.id,ref:"commentReply",refInFor:!0,attrs:{comment:e},on:{delete:function(n){return t.replyDelete(e.id,i)},reply:t.handleAnswerTo,report:t.replyReport,update:function(e){return t.replyEdit(e)}}}),t._v(" "),e.deleted_at?n("comment-deleted",{key:e.id,class:{"thread-comment-deleted-child":!0}}):t._e()]})],2):t._e(),t._v(" "),t.replier&&!t.isEditing&&t.children.length>0?n("comment-replies",{staticClass:"threads-comment__replies",attrs:{comments:t.comment.comments-t.children.length,replier:t.replier},on:{click:t.handleChildrenLoad}}):t._e(),t._v(" "),t.isEditorVisible?n("div",{staticClass:"thread-comment__editor"},[n("commenter",{ref:"editor",staticClass:"thread-comment__editor-area",attrs:{disabled:t.isPostLoading,waiting:t.isPostLoading,placeholder:"Твой комменÑаÑий"},on:{cancel:t.handleEditorCancel,post:t.handleEditorSend}})],1):t._e()],1)},[],!1,null,null,null).exports,ot=n(150),lt=n(55),ct=n(65),ut=(n(777),{name:"threads-comments-message-box",props:{layer:{type:Object,default:null},title:{type:String,default:""},message:{type:String,default:""}},components:{LayerContainer:lt.a,LayerWrapper:ct.a,FormButton:l.a},data:function(){return{visible:!0,timerId:0}},computed:{html:function(){return this.message.replace(/\n/,"<br />")}},mounted:function(){document.addEventListener("keydown",this.handleClose,!0)},beforeDestroy:function(){document.removeEventListener("keydown",this.handleClose,!0)},methods:{handleClose:function(t){"Escape"===t.key&&(t.stopPropagation(),this.close())},close:function(){var t=this;
1this.visible=!1,clearTimeout(this.timerId),this.timerId=setTimeout(function(){t.layer.close(),t.$emit("close")},250)}}}),dt=Object(m.a)(ut,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("layer-container",{staticClass:"threads-comments-message-box"},[n("layer-wrapper",{staticClass:"threads-comments-message-box__wrapper"},[n("div",{staticClass:"threads-comments-message-box__overlay",on:{click:t.close}}),t._v(" "),n("transition",{attrs:{appear:"",name:"threads-comments-message-box__content-"}},[t.visible?n("div",{staticClass:"threads-comments-message-box__content"},[t.title?n("div",{staticClass:"threads-comments-message-box__title"},[t._v("\n "+t._s(t.title)+"\n ")]):t._e(),t._v(" "),t.message?n("div",{staticClass:"threads-comments-message-box__message",domProps:{innerHTML:t._s(t.html)}}):t._e(),t._v(" "),n("div",{staticClass:"threads-comments-message-box__buttons"},[n("form-button",{attrs:{size:"small"},on:{click:t.close}},[t._v("ÐакÑÑÑÑ")])],1)]):t._e()])],1)],1)},[],!1,null,null,null).exports;n(779);function ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function pt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ht(Object(n),!0).forEach(function(e){r()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var mt={name:"threads-comments",mixins:[o.a,j,ot.a],components:{FormButton:l.a,Commenter:x,IconG:P.a,Comment:st,CommentDeleted:tt},props:{thread:{type:[Object,null]},entityId:{type:Number},entityType:{type:String}},data:function(){return{currentThread:this.thread,next:!!this.thread,isPreLoaded:!this.thread,isPreLoading:!!this.thread,isCommentsLoading:!1,isPostLoading:!1,comments:[],commentsLoadedLength:0,sortingData:{}}},mounted:function(){this.sortingData=this.loadSorting(),this.$goharu.$on("comments:sorting",this.handleSorting),this.$goharu.$on("comments:message",this.showMessage),this.currentThread&&this.handleCommentsLoad()},beforeDestroy:function(){this.$goharu.$off("comments:sorting",this.handleSorting),this.$goharu.$off("comments:message",this.showMessage)},methods:{showMessage:function(t){var e=t.title||"",n=t.message||"";(e||n)&&this.$goharu.layer.open(dt,{props:{title:e,message:n}})},handleEditorSend:function(t){var e=this;if(!this.$goharu.auth.user())return this.$goharu.auth.attempt();this.isPostLoading=!0,this.currentThread?this.handlePostComment(t):this.handleCreateThread().then(function(){e.handlePostComment(t)})},handleCreateThread:function(){var t=this;return new Promise(function(e){t.createThread(t.entityId,t.entityType).then(function(n){var i=n.thread;t.currentThread=i,e(i)})})},handlePostComment:function(t){var e=this;this.postComment(this.currentThread.id,t).then(function(t){var n=t.comment;e.metrikaReachGoal("games:addcomment"),e.comments=[n].concat(s()(e.comments)),e.$refs.editor.close()}).catch(function(t){e.$goharu.$emit("comments:message",t.response.data)}).finally(function(){e.isPostLoading=!1})},handleSorting:function(t){this.sortingData=this.sortOptions[t],this.comments=[],this.next=!!this.currentThread,this.handleCommentsLoad()},handleCommentsLoad:function(){var t=this;this.next&&!this.isCommentsLoading&&(this.isCommentsLoading=!0,this.loadComments({thread_id:this.currentThread.id,skip:this.comments.length,sort:this.sortingData.sort,order:this.sortingData.order}).then(function(e){var n=e.comments,i=e.next;t.comments=[].concat(s()(t.comments),s()(n)),t.next=i,t.$refs.comment.forEach(function(t){t.reportIconKey=t.reportIconKey||Date.now()})}).catch(function(){}).finally(function(){t.isCommentsLoading=!1,t.isPreLoading=!1,t.isPreLoaded=!0}))},handleDelete:function(t,e){var n=this;this.deleteComment(t).then(function(t){n.handleUpdate(e,t)}).catch(function(t){n.$goharu.$emit("comments:message",t.response.data)})},setReported:function(t){var e=this.comments.findIndex(function(e){return+e.id===t});e>-1&&(this.comments[e].reported=!0)},handleReport:function(t,e){var n=this;this.reportComment(t,e).then(function(){var e=n.$refs.comment.findIndex(function(e){return+e.$el.getAttribute("data-id")===t});e>-1&&(n.$refs.comment[e].reportIconKey=Date.now()),n.setReported(t)}).catch(function(t){n.$goharu.$emit("comments:message",t.response.data)})},handleEdit:function(t){var e=s()(this.comments),n=e.findIndex(function(e){return e.id===t.id});n>-1&&(e[n]=t,this.comments=e)},handleUpdate:function(t,e){var n=s()(this.comments);n[t]=pt(pt({},n[t]),e),this.comments=n}}},ft=Object(m.a)(mt,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"threads-comments"},[t.isPreLoading&&!t.isPreLoaded?n("div",{staticClass:"threads-comments__loader"},[n("icon-g",{attrs:{animated:!0}})],1):t._e(),t._v(" "),!t.isPreLoading&&t.isPreLoaded?n("div",{staticClass:"threads-comments__wrapper"},[n("commenter",{ref:"editor",staticClass:"threads-comments__editor",attrs:{disabled:t.isPostLoading,waiting:t.isPostLoading,placeholder:"Твой комменÑаÑий"},on:{post:t.handleEditorSend}}),t._v(" "),t._l(t.comments,function(e,i){return[!e.deleted_at||e.comments>0?n("comment",{key:e.id,ref:"comment",refInFor:!0,attrs:{comment:e,thread:t.currentThread},on:{delete:function(n){return t.handleDelete(e.id,i)},edit:function(e){return t.handleEdit(e)},report:t.handleReport,update:function(e){return t.handleUpdate(i,e)}}}):t._e(),t._v(" "),e.deleted_at&&e.comments<1?n("comment-deleted",{key:e.id}):t._e()]}),t._v(" "),t.next?n("form-button",{attrs:{disabled:t.isCommentsLoading},on:{click:t.handleCommentsLoad}},[t.isCommentsLoading?n("icon-g",{attrs:{animated:!0}}):n("span",[t._v("ÐоказаÑÑ ÐµÑе")])],1):t._e()],2):t._e()])},[],!1,null,null,null);e.a=ft.exports},function(t,e,n){"use strict";var i=n(15),r=n.n(i),a=n(10),s=n.n(a),o=n(51),l=n(49),c=n(12),u=n(55),d=n(65),h={name:"Star",props:{type:{type:String,default:"fill"}},computed:{isFill:function(){return"fill"===this.type},isHalf:function(){return"half"===this.type},isEmpty:function(){return"empty"===this.type}}},p=n(0),m=Object(p.a)(h,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{staticClass:"icon",attrs:{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"}},[t.isFill?n("path",{attrs:{d:"M9.99911 15.218L4.12161 18.508L5.43411 11.9013L0.488281 7.32797L7.17745 6.53464L9.99911 0.417969L12.8208 6.53464L19.5099 7.32797L14.5641 11.9013L15.8766 18.508L9.99911 15.218Z"}}):t._e(),t._v(" "),t.isHalf?n("path",{attrs:{d:"M9.99911 13.308L13.5383 15.2888L12.7474 11.3113L15.7249 8.55714L11.6974 8.07964L9.99911 4.39714V13.308ZM9.99911 15.218L4.12161 18.508L5.43411 11.9013L0.488281 7.32797L7.17745 6.53464L9.99911 0.417969L12.8208 6.53464L19.5099 7.32797L14.5641 11.9013L15.8766 18.508L9.99911 15.218Z"}}):t._e(),t._v(" "),t.isEmpty?n("path",{attrs:{d:"M9.99911 15.218L4.12161 18.508L5.43411 11.9013L0.488281 7.32797L7.17745 6.53464L9.99911 0.417969L12.8208 6.53464L19.5099 7.32797L14.5641 11.9013L15.8766 18.508L9.99911 15.218ZM9.99911 13.308L13.5383 15.2888L12.7474 11.3113L15.7249 8.55714L11.6974 8.07964L9.99911 4.39714L8.30078 8.08047L4.27328 8.55714L7.25078 11.3113L6.45995 15.2888L9.99911 13.308Z"}}):t._e()])},[],!1,null,null,null).exports,f=(n(648),{name:"index",mixins:[c.a],components:{IconStar:m},props:{rating:{type:Number,default:0}},data:function(){return{innerRating:10*this.rating}},watch:{rating:function(t){this.innerRating=10*t}},methods:{getType:function(t){if(this.innerRating<=5)return"empty";var e=20*(t-1),n=20*t-10,i=20*t;return this.innerRating>i?"fill":this.innerRating>e&&this.innerRating<=n?"half":this.innerRating>n&&this.innerRating<=i?"fill":"empty"},getRating:function(t){var e=this.$refs.container.getBoundingClientRect();return+(100*(t.clientX-e.left)/(e.right-e.left)).toFixed(0)},move:function(t){this.innerRating=this.getRating(t)},handleClick:function(t){var e=this.getRating(t),n=e<=5?0:Math.ceil((e/10).toFixed(2));this.$emit("choose",n)},selfLeave:function(t){this.leave(t),this.innerRating=10*this.rating},selfEnter:function(t){this.enter(t)}}}),v=Object(p.a)(f,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"container",staticClass:"rating-choose",on:{click:t.handleClick,mousemove:t.move,mouseenter:function(e){return t.selfEnter("container")},mouseleave:function(e){return t.selfLeave("container")}}},t._l(5,function(e){return n("icon-star",{key:e,staticClass:"rating-choose__star",class:{"rating-choose__star--active":t.isHover("container")},attrs:{type:t.getType(e)}})}),1)},[],!1,null,null,null).exports,g=(n(650),{name:"layer-game-rating",mixins:[c.a],components:{IconG:o.a,CloseIcon:l.a,LayerContainer:u.a,LayerWrapper:d.a,RatingChoose:v},props:{layer:{type:Object,default:null},id:{type:Number,required:!0}},data:function(){return{isLoading:!0,game:null,stats:null,vote:null,count:null}},computed:{rank:function(){return this.game.rating/100},user:function(){return this.$goharu.auth.user()},avatar:function(){return this.user&&"https://www.goha.ru/avatar/"+this.user.id}},created:function(){var t=r()(s.a.mark(function t(){var e,n,i;return s.a.wrap(function(t){for(;;
1)switch(t.prev=t.next){case 0:return(e=new URL("games.rating",this.$goharu.$route.api)).searchParams.append("game_id",this.id),t.next=1,this.$goharu.auth.axios().get(e);case 1:n=t.sent,i=n.data,this.game=i.game||null,this.stats=i.stats||null,this.vote=i.vote||null,this.count=i.count||null,this.isLoading=!1,this.leave("close");case 2:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),methods:{close:function(){this.layer&&this.layer.close&&this.layer.close()},handleChoose:function(){var t=r()(s.a.mark(function t(e){var n;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.vote=e,(n=new URL("games.vote",this.$goharu.$route.api)).searchParams.append("game_id",this.game.id),n.searchParams.append("rating",e),t.next=1,this.$goharu.auth.axios().post(n);case 1:t.sent;case 2:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()}}),_=Object(p.a)(g,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("layer-container",{staticClass:"layer-game-rating"},[n("layer-wrapper",[t.isLoading?n("div",{staticClass:"layer-game-rating__loading"},[n("icon-g",{attrs:{animated:""}})],1):t._e(),t._v(" "),n("div",{staticClass:"layer-game-rating__overlay",on:{click:t.close,mouseenter:function(e){return t.enter("close")},mouseleave:function(e){return t.leave("close")}}}),t._v(" "),!t.isLoading&&t.game?n("div",{staticClass:"layer-game-rating__box"},[n("div",{staticClass:"layer-game-rating__header"},[n("div",{staticClass:"layer-game-rating__header-user"},[n("img",{staticClass:"layer-game-rating__header-avatar",attrs:{src:t.avatar,vif:"avatar"}}),t._v(" "),n("span",{staticClass:"layer-game-rating__header-title"},[t._v("ÐÐ¾Ñ Ð¾Ñенка")])]),t._v(" "),n("div",{staticClass:"layer-game-rating__header-close",on:{click:t.close,mouseenter:function(e){return t.enter("close")},mouseleave:function(e){return t.leave("close")}}},[n("close-icon",{staticClass:"layer-game-rating__header-close-icon",class:{"layer-game-rating__header-close-icon--hover":t.isHover("close")}})],1)]),t._v(" "),n("div",{staticClass:"layer-game-rating__body"},[n("div",{staticClass:"layer-game-rating__rating"},[n("div",{staticClass:"layer-game-rating__rating-image"},[n("img",{staticClass:"layer-game-rating__rating-image-img",attrs:{src:t.game.image}})]),t._v(" "),n("div",{staticClass:"layer-game-rating__rating-body"},[n("div",{staticClass:"layer-game-rating__rating-body-title"},[t._v(t._s(t.game.title))]),t._v(" "),n("rating-choose",{staticClass:"layer-game-rating__rating-body-choose",attrs:{rating:+t.vote},on:{choose:t.handleChoose}}),t._v(" "),n("div",{staticClass:"layer-game-rating__rating-body-vote"},[t._v(t._s(t.vote?"ÐÐ¾Ñ ÑекÑÑÐ°Ñ Ð¾Ñенка: "+t.vote:"ÐÐµÑ Ð¾Ñенки"))])],1)])])]):t._e()])],1)},[],!1,null,null,null).exports,y=n(20),b=(n(652),{name:"activity-game-rating",mixins:[c.a,y.a],components:{IconStar:m},props:{game:{type:Number},title:{type:String,default:""}},methods:{rate:function(){if(this.metrikaReachGoal("gamerate"),!this.$goharu.auth.user())return this.$goharu.auth.attempt();this.$goharu.layer.open(_,{props:{id:this.game}})}}}),C=Object(p.a)(b,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"activity-game-rating",on:{click:t.rate,mouseenter:function(e){return t.enter("hover")},mouseleave:function(e){return t.leave("hover")}}},[n("icon-star",{staticClass:"activity-game-rating__icon",class:{"activity-game-rating__icon--hover":t.isHover("hover")},attrs:{type:"empty"}}),t._v(" "),t.title?n("span",{staticClass:"activity-game-rating__label",class:{"activity-game-rating__label--hover":t.isHover("hover")}},[t._v(t._s(t.title))]):t._e()],1)},[],!1,null,null,null);e.a=C.exports},function(t,e,n){"use strict";n(11);var i=n(12),r=n(0),a=Object(r.a)({name:"icon-battle"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M13.0921 2.25L15.7493 2.25225L15.7508 4.8945L11.6506 8.994L13.7716 11.1157L14.8328 10.0552L15.8933 11.1157L14.0378 12.972L16.1588 15.0937L15.0983 16.1542L12.9766 14.0325L11.1203 15.8887L10.0598 14.8282L11.1203 13.767L8.99859 11.646L6.87759 13.767L7.93884 14.8282L6.87834 15.8887L5.02209 14.0325L2.90034 16.1542L1.83984 15.0937L3.96159 12.9712L2.10534 11.1157L3.16584 10.0552L4.22634 11.115L6.34659 8.994L2.25159 4.899L2.24934 2.25L4.90884 2.25225L8.99859 6.34275L13.0921 2.25ZM7.40709 10.0545L5.28684 12.1755L5.81784
112.7057L7.93809 10.5847L7.40784 10.0545H7.40709ZM14.2501 3.75075H13.7123L10.0598 7.4025L10.5893 7.93275L14.2501 4.2735V3.75075ZM3.75009 3.75075V4.27575L12.1808 12.7065L12.7111 12.1762L4.28634 3.7515L3.75009 3.75075Z"}})])},[],!1,null,null,null).exports,s=Object(r.a)({name:"icon-gamepad"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M12.75 3C13.9435 3 15.0881 3.47411 15.932 4.31802C16.7759 5.16193 17.25 6.30653 17.25 7.5V10.5C17.25 11.6935 16.7759 12.8381 15.932 13.682C15.0881 14.5259 13.9435 15 12.75 15H5.25C4.05653 15 2.91193 14.5259 2.06802 13.682C1.22411 12.8381 0.75 11.6935 0.75 10.5V7.5C0.75 6.30653 1.22411 5.16193 2.06802 4.31802C2.91193 3.47411 4.05653 3 5.25 3H12.75ZM12.75 4.5H5.25C4.48032 4.5 3.74008 4.79583 3.18239 5.32629C2.6247 5.85676 2.29223 6.58128 2.25375 7.35L2.25 7.5V10.5C2.25 11.2697 2.54583 12.0099 3.07629 12.5676C3.60676 13.1253 4.33128 13.4578 5.1 13.4962L5.25 13.5H12.75C13.5197 13.5 14.2599 13.2042 14.8176 12.6737C15.3753 12.1432 15.7078 11.4187 15.7463 10.65L15.75 10.5V7.5C15.75 6.73032 15.4542 5.99008 14.9237 5.43239C14.3932 4.8747 13.6687 4.54223 12.9 4.50375L12.75 4.5ZM7.5 6.75V8.25H9V9.75H7.49925L7.5 11.25H6L5.99925 9.75H4.5V8.25H6V6.75H7.5ZM13.5 9.75V11.25H12V9.75H13.5ZM12 6.75V8.25H10.5V6.75H12Z"}})])},[],!1,null,null,null).exports,o=n(20),l=(n(644),{name:"activity-game-button",mixins:[i.a,o.a],components:{IconBattle:a,IconGamepad:s},props:{activity:{type:[Object,Array],required:!0},title:{type:String,default:""},actionType:{type:String,default:""}},data:function(){return{count:+this.activity[this.actionType].value}},computed:{icon:function(){return{100:"icon-gamepad",101:"icon-battle",102:"icon-gamepad"}[this.activity[this.actionType].action]||null},colorClass:function(){return this.count<=0?null:{100:"activity-game-button__count--orange",101:"activity-game-button__count--green",102:"activity-game-button__count--orange"}[this.activity[this.actionType].action]||null}},mounted:function(){"playing"==this.actionType&&(this.count+=+this.activity.waiting.value)},methods:{toggle:function(){var t=this;null!==this.metrikaname()&&this.metrikaReachGoal(this.metrikaname());var e=new URL("activity.toggle",this.$goharu.$route.api);e.searchParams.append("action",this.activity[this.actionType].action),e.searchParams.append("entity_id",this.activity[this.actionType].entity_id),this.$goharu.auth.axios().get(e).then(function(t){return t.data}).then(function(e){var n=t.count+ +e.diff;t.count=n<0?+e.activity.value:n})},metrikaname:function(){return{100:"igame",101:"completedgame",102:"waitgame"}[this.activity[this.actionType].action]||null}}}),c=Object(r.a)(l,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"activity-game-button",on:{click:t.toggle,mouseenter:function(e){return t.enter("hover")},mouseleave:function(e){return t.leave("hover")}}},[t.icon?n(t.icon,{tag:"component",staticClass:"activity-game-button__icon",class:{"activity-game-button__icon--hover":t.isHover("hover")}}):t._e(),t._v(" "),n("span",{staticClass:"activity-game-button__label",class:{"activity-game-button__label--hover":t.isHover("hover")}},[t._v(t._s(t.title))]),t._v(" "),n("span",{staticClass:"activity-game-button__count",class:[{"activity-game-button__count--hover":t.isHover("hover")},t.colorClass]},[t._v("("+t._s(t.count)+")")])],1)},[],!1,null,null,null);e.a=c.exports},function(t,e,n){"use strict";var i=n(0),r=Object(i.a)({name:"icon-sort"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M2 5.99922C2 5.55739 2.46863 5.19922 2.8 5.19922H17.2C17.5314 5.19922 18 5.55739 18 5.99922C18 6.44105 17.5314 6.79922 17.2 6.79922H2.8C2.46863 6.79922 2 6.44105 2 5.99922Z"}}),this._v(" "),e("path",{attrs:{d:"M4 9.99922C4 9.55739 4.46863 9.19922 4.8 9.19922L14.2 9.2C14.5314 9.2 15 9.55817 15 10C15 10.4418 14.5314 10.8 14.2 10.8L4.8 10.7992C4.46863 10.7992 4 10.441 4 9.99922Z"}}),this._v(" "),e("path",{attrs:{d:"M7.8 13.1992C7.46863 13.1992 7 13.5574 7 13.9992C7 14.441 7.46863 14.7992 7.8 14.7992H11.2C11.5314 14.7992 12 14.441 12 13.9992C12 13.5574 11.5314 13.1992 11.2 13.1992H7.8Z"}})])},[],!1,null,null,null).exports,a=n(161),s=n(160),o=n(150),l=(n(781),{name:"threads-comments-sorting",mixins:[o.a],components:{EditIcon:s.a,DeleteIcon:a.a,SortIcon:r},props:{},data:function(){return{dropbox:!1,sortingData:{}}},computed:{},methods:{toggleDropbox:function(){this.dropbox=!this.dropbox},handleSort:function(t){this.dropbox=!1,this.sortingData.type!==t&&(this.saveSorting(t),this.sortingData=this.sortOptions[t],this.$goharu.$emit("comments:sorting",t))}},mounted:function(){this.sortingData=this.loadSorting()},watch:{dropbox:function(t){var e=this;t?(this.$nextTick(function(){e.$refs.dropbox.classList.toggle("threads-comments-sorting__dropbox-to-right",e.$refs.root.offsetLeft<250)}),window.addEventListener("click",this.outClickEvent)):window.removeEventListener("click",this.outClickEvent)}},created:function(){var t=this;this.outClickEvent=function(e){t.$refs.root&&t.$refs.root.contains(e.target)||(t.dropbox=!1)}},destroyed:function(){window.removeEventListener("click",this.outClickEvent)}}),c=Object(i.a)(l,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"root",staticClass:"threads-comments-sorting"},[n("div",{staticClass:"threads-comments-sorting__button",class:{"threads-comments-sorting__button--opened":t.dropbox},on:{click:t.toggleDropbox}},[n("sort-icon"),t._v("\n УпоÑÑдоÑиÑÑ\n ")],1),t._v(" "),n("transition",{attrs:{name:"threads-comments-sorting__dropbox-"}},[t.dropbox?n("div",{ref:"dropbox",staticClass:"threads-comments-sorting__dropbox"},t._l(t.sortOptions,function(e,i){return n("div",{key:e.title,staticClass:"threads-comments-sorting__action",class:{"threads-comments-sorting__action-current":i===t.sortingData.type},on:{click:function(e){return t.handleSort(i)}}},[t._v("\n "+t._s(e.title)+"\n ")])}),0):t._e()])],1)},[],!1,null,null,null);e.a=c.exports},function(t,e,n){"use strict";n(525);var i={name:"util-scrollbar-tracker",created:function(){var t=this;this.handleResize=function(){var e=t.$refs.wrapper.offsetWidth-t.$refs.wrapper.scrollWidth;t.$goharu.layer.useWidth(window.innerWidth-e+"px")}},mounted:function(){this.handleResize(),window.addEventListener("resize",this.handleResize)},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize),this.$goharu.layer.useWidth(null)}},r=n(0),a=Object(r.a)(i,function(){var t=this.$createElement;return(this._self._c||t)("div",{ref:"wrapper",staticClass:"util-scrollbar-tracker"})},[],!1,null,null,null).exports,s=n(7),o=n.n(s),l=n(17),c=n.n(l),u=n(3),d=n.n(u);function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?h(Object(n),!0).forEach(function(e){o()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var m={name:"util-layer-manager",data:function(){return{list:[]}},created:function(){var t=this;this.$goharu.$on("app.layer:change",function(e){t.list=d()(e)})},render:function(t){var e=1,n=function(i){return(i||[]).map(function(i){var r=c()(i,3),a=r[0],s=r[1],o=r[2];return t(a,p(p({},s||{}),{},{name:e++}),n(o||[]))})};return t("transition-group",{tag:"div",appear:!0,class:{"util-layer-manager":!0}},n(this.list))}};n(527),e.a={components:{UtilScrollbarTracker:a,UtilLayerManager:m},data:function(){},created:function(){},mounted:function(){},beforeUpdate:function(){},methods:{}}},function(t,e,n){"use strict";var i={name:"game-tile",mixins:[n(105).a],props:{game:{type:Object,required:!0},fullDate:{type:Boolean,default:!1}}},r=n(0),a=Object(r.a)(i,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"game-tile"},[n("a",{staticClass:"game-tile__image",attrs:{href:t.game.url}},[n("div",{staticClass:"game-tile__image-ratio"},[t.game.logo&&t.game.logo.url?n("img",{staticClass:"game-tile__image-img",attrs:{loading:"lazy",src:t.game.logo.url}}):t._e()])]),t._v(" "),n("div",{staticClass:"game-tile__body"},[n("a",{staticClass:"game-tile__overlay",attrs:{href:t.game.url},on:{mouseenter:function(e){return t.enter("tile")},mouseleave:function(e){return t.leave("tile")}}}),t._v(" "),n("a",{staticClass:"game-tile__title",class:{"game-tile__title--hover":t.isHover("tile")},attrs:{href:t.game.url}},[t._v(t._s(t.game.title))]),t._v(" "),!t.fullDate&&t.game.year?n("p",{staticClass:"game-tile__year"},[t._v(t._s(t.game.year))]):t._e(),t._v(" "),t.fullDate&&t.game.release_date_str?n("p",{staticClass:"game-tile__year"},[t._v(t._s(t.game.release_date_str))]):t._e()])])},[],!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var i=n(55),r=n(65),a=n(49),s=n(12),o=(n(741),{name:"filter-layer",mixins:[s.a],components:{LayerContainer:i.a,LayerWrapper:r.a,IconClose:a.a},props:{layer:{type:Object}},methods:{close:function(){this.layer.close()}}}),l=n(0),c=Object(l.a)(o,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("layer-container",{staticClass:"filter-layer"},[n("layer-wrapper",{staticClass:"filter-layer__wrapper"},[n("div",{staticClass:"filter-layer__overlay",on:{click:t.close,mouseenter:function(e){return t.enter()},mouseleave:function(e){return t.leave()}}}),t._v(" "),n("div",{ref:"content",staticClass:"filter-layer__filter"},[n("div",{staticClass:"filter-layer__close",on:{click:t.close,mouseenter:function(e){return t.enter()},mouseleave:function(e){return t.leave()}}},[n("icon-close",{staticClass:"filter-layer__close-icon",class:{"filter-layer__close-icon--hover":t.isHover()}})],1),t._v(" "),n("div",{staticClass:"filter-layer__content"},[t._t("default")],2)])])],1)},[],!1,null,null,null);e.a=c.exports},function(t,e,n){"use strict";var i=n(113),r=(n(620),{name:"editor-body-youtube",components:{EmbedTwitch:i.a},props:{url:{type:String}},methods:{}}),a=n(0),s=Object(a.a)(r,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"editor-body-twitch"},[e("div",{staticClass:"editor-body-twitch__ratio"},[e("embed-twitch",{staticClass:"editor-body-twitch__iframe",attrs:{url:this.url,autoplay:!1}})],1)])},[],!1,null,null,null);e.a=s.exports},function(t,e,n){"use strict";n(656);var i={name:"popup-hint-lite",props:{obj:{type:HTMLAnchorElement},text:{type:Array,required:!0}},data:function(){return{dropbox:!1}},watch:{text:function(){this.dropbox=this.obj&&this.text.length>0},dropbox:function(t){var e=this;t&&this.$nextTick(function(){var t=e.$refs.dropbox;document.body.append(t);var n=e.obj.getBoundingClientRect(),i=window.scrollX+n.left+n.width,r=window.scrollY+n.top+n.height;r>window.scrollY+document.documentElement.clientHeight-t.offsetHeight&&(r=window.scrollY+document.documentElement.clientHeight-t.offsetHeight),t.style.setProperty("z-index",1e3),t.style.setProperty("--positionLeft",i+"px"),t.style.setProperty("--positionTop",r+"px")})}}},r=n(0),a=Object(r.a)(i,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"popup-hint-lite__dropbox-"}},[t.dropbox?n("div",{ref:"dropbox",staticClass:"popup-hint-lite__dropbox"},t._l(t.text,function(e){return n("div",{domProps:{innerHTML:t._s(e)}})}),0):t._e()])},[],!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var i=n(0),r=Object(i.a)({name:"icon-edit"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.531 7.01081C20.3476 6.93165 21.147 7.28789 21.9277 8.05879C22.7085 8.82971 23.0692 9.6189 22.9891 10.4252C22.9121 11.1996 22.4401 11.8344 21.9277 12.3403L16.3916 17.8066C16.2253 17.9655 16.0105 18.1022 15.8058
118.2037C15.6025 18.3046 15.3597 18.3954 15.1245 18.4286L13.0094 18.727C12.4652 18.8009 11.9379 18.6546 11.5659 18.2888C11.193 17.9221 11.0436 17.401 11.1236 16.8604L11.1238 16.8591L11.4249 14.7781L11.4251 14.777C11.4585 14.542 11.5499 14.3006 11.6529 14.0982C11.7562 13.8954 11.8966 13.6816 12.0623 13.518L17.5913 8.05879C18.1036 7.55292 18.7466 7.08683 19.531 7.01081ZM19.6512 8.22006C19.2919 8.25488 18.9035 8.48158 18.4616 8.91791L18.1152 9.25997C18.5246 10.4641 19.4846 11.4127 20.7119 11.8223L21.0574 11.4812C21.4993 11.0449 21.7289 10.6613 21.7642 10.3065C21.7963 9.98349 21.6799 9.53258 21.0574 8.91791C20.4348 8.30323 19.9782 8.18836 19.6512 8.22006ZM19.7668 12.7555C18.6219 12.2288 17.7013 11.3212 17.1695 10.1937L12.9326 14.3771C12.8879 14.4213 12.8178 14.5159 12.7526 14.6438C12.6874 14.7719 12.6527 14.8834 12.6439 14.946L12.6436 14.9479L12.3419 17.0333L12.3415 17.0356C12.3097 17.2496 12.3744 17.3688 12.4345 17.4279C12.4956 17.488 12.6204 17.5529 12.8401 17.5234L12.8416 17.5232L14.9504 17.2258C15.0099 17.2174 15.1213 17.1835 15.2531 17.1181C15.3811 17.0546 15.4808 16.9849 15.5328 16.9361L19.7668 12.7555Z"}}),this._v(" "),e("path",{attrs:{d:"M8.38023 8.56684C9.38286 7.577 10.8777 7.20421 12.7846 7.20421H14.2615C14.6013 7.20421 14.8769 7.47621 14.8769 7.81174C14.8769 8.14727 14.6013 8.41927 14.2615 8.41927H12.7846C10.9991 8.41927 9.9094 8.77553 9.25051 9.42602C8.59162 10.0765 8.23076 11.1523 8.23076 12.915V17.2892C8.23076 19.0519 8.59162 20.1277 9.25051 20.7782C9.9094 21.4287 10.9991 21.7849 12.7846 21.7849H17.2153C19.0007 21.7849 20.0905 21.4287 20.7494 20.7782C21.4083 20.1277 21.7691 19.0519 21.7691 17.2892V15.8311C21.7691 15.4956 22.0446 15.2236 22.3845 15.2236C22.7244 15.2236 22.9999 15.4956 22.9999 15.8311V17.2892C22.9999 19.1717 22.6223 20.6475 21.6196 21.6374C20.617 22.6272 19.1221 23 17.2153 23H12.7846C10.8777 23 9.38286 22.6272 8.38023 21.6374C7.3776 20.6475 7 19.1717 7 17.2892V12.915C7 11.0325 7.3776 9.55668 8.38023 8.56684Z"}})])},[],!1,null,null,null);e.a=r.exports},function(t,e,n){"use strict";var i=n(0),r=Object(i.a)({name:"icon-delete"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M13.6 13.5455C13.9866 13.5455 14.3 13.8711 14.3 14.2727V18.6364C14.3 19.038 13.9866 19.3636 13.6 19.3636C13.2134 19.3636 12.9 19.038 12.9 18.6364V14.2727C12.9 13.8711 13.2134 13.5455 13.6 13.5455Z"}}),this._v(" "),e("path",{attrs:{d:"M17.1 18.6364V14.2727C17.1 13.8711 16.7866 13.5455 16.4 13.5455C16.0134 13.5455 15.7 13.8711 15.7 14.2727V18.6364C15.7 19.038 16.0134 19.3636 16.4 19.3636C16.7866 19.3636 17.1 19.038 17.1 18.6364Z"}}),this._v(" "),e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.5 9.90909V9.18182C11.5 8.60316 11.7213 8.04821 12.1151 7.63904C12.5089 7.22987 13.043 7 13.6 7H16.4C16.957 7 17.4911 7.22987 17.8849 7.63904C18.2787 8.04821 18.5 8.60316 18.5 9.18182V9.90909H21.3C21.6866 9.90909 22 10.2347 22 10.6364C22 11.038 21.6866 11.3636 21.3 11.3636H20.6V20.8182C20.6 21.3968 20.3788 21.9518 19.9849 22.361C19.5911 22.7701 19.057 23 18.5 23H11.5C10.943 23 10.4089 22.7701 10.0151 22.361C9.62125 21.9518 9.4 21.3968 9.4 20.8182V11.3636H8.7C8.3134 11.3636 8 11.038 8 10.6364C8 10.2347 8.3134 9.90909 8.7 9.90909H11.5ZM13.105 8.66756C13.2363 8.53117 13.4143 8.45455 13.6 8.45455H16.4C16.5857 8.45455 16.7637 8.53117 16.895 8.66756C17.0262 8.80395 17.1 8.98893 17.1 9.18182V9.90909H12.9V9.18182C12.9 8.98893 12.9737 8.80395 13.105 8.66756ZM10.8 11.3636V20.8182C10.8 21.0111 10.8737 21.1961 11.005 21.3324C11.1363 21.4688 11.3143 21.5455 11.5 21.5455H18.5C18.6857 21.5455 18.8637 21.4688 18.995 21.3324C19.1263 21.1961 19.2 21.0111 19.2 20.8182V11.3636H10.8Z"}})])},[],!1,null,null,null);e.a=r.exports},function(t,e,n){"use strict";var i=n(17),r=n.n(i),a=(n(501),{name:"embed-vklive",props:{url:{type:String,required:!0},autoplay:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},muted:{type:Boolean,default:!0}},computed:{embedUrl:function(){var t=this.$goharu.config.embed.vklive,e=this.url.match(t.regexp),n=r()(e,3),i=(n[0],n[1]),a=n[2],s=new URL(t.url.replace("{domain}",i).replace("{id}",a));return s.searchParams.append("muted",this.muted?"true":"false"),s.searchParams.append("autoplay",this.autoplay?"true":"false"),this.controls||s.searchParams.append("controls","false"),s}},methods:{onLoad:function(t){this.$emit("load")}}}),s=n(0),o=Object(s.a)(a,function(){var t=this.$createElement;return(this._self._c||t)("iframe",{staticClass:"embed-vklive",attrs:{src:this.embedUrl,allowfullscreen:"allowfullscreen",frameborder:"0",scrolling:"no"},on:{load:this.onLoad}})},[],!1,null,null,null);e.a=o.exports},function(t,e,n){"use strict";var i=n(0),r=Object(i.a)({name:"icon-check"},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"icon",attrs:{width:"14",height:"10",viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M4.8172 10L0 5.23404L0.924731 4.31915L4.8172 8.17021L13.0753 0L14 0.914894L4.8172 10Z"}})])},[],!1,null,null,null);e.a=r.exports},function(t,e,n){"use strict";var i=n(103),r=n(54),a=n(122),s=(n(622),{name:"ads-adfox-preroll",props:{owner:{type:String,default:"382171"}}
1,computed:{type:function(){return"Preroll"},passAdblockUrl:function(){return"/api/mediacomments?h="+encodeURIComponent(window.btoa(JSON.stringify(this.prerollUrl)))},prerollUrl:function(){return"https://yandex.ru/ads/adfox/382171/getCode?pp=g&ps=fbsa&p2=hhmi"}},mounted:function(){var t=this;if(this.$goharu.auth.noAds())return this.handleComplete();this.timeout=setTimeout(function(){t.handleComplete()},3e3),r.a.add("https://yandex.ru/ads/system/header-bidding.js").add("https://yandex.ru/ads/system/context.js").add("https://yandex.ru/ads/system/adsdk.js").load().then(function(){try{t.playAd()}catch(e){t.handleComplete()}}).catch(function(e){t.handleComplete()})},methods:{playAd:function(){var t=this;ya.videoAd.loadModule("AdLoader").then(function(e){return e.AdLoader.create({adFoxParameters:{ownerId:t.owner,params:a.a[t.type].params}})}).then(function(t){return t.loadAd()}).then(function(e){var n=e.createPlaybackController(t.$refs.video,t.$refs.container);n.subscribe("AdStarted",function(){clearTimeout(t.timeout)}),n.subscribe("AdClickThru",function(){t.handleComplete()}),n.subscribe("AdStopped",function(){t.handleComplete()}),n.playAd()}).catch(function(e){t.handleComplete()});try{var e=new i.VASTClient;setTimeout(function(){return e.get(t.passAdblockUrl).catch(function(t){})},200),setTimeout(function(){return e.get(t.passAdblockUrl).catch(function(t){})},400)}catch(t){}},handleComplete:function(){clearTimeout(this.timeout),this.$emit("complete")}}}),o=n(0),l=Object(o.a)(s,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{ref:"container",staticClass:"ads-adfox-preroll"},[e("video",{ref:"video",staticClass:"ads-adfox-preroll__video",attrs:{src:"https://s.goha.ru/static/blank.mp4"}})])},[],!1,null,null,null);e.a=l.exports},function(t,e,n){"use strict";var i=n(17),r=n.n(i),a={name:"embed-rutube",props:{url:{type:String,required:!0}},computed:{embedUrl:function(){var t=this.$goharu.config.embed.rutube,e=this.url.match(t.regexp),n=r()(e,2),i=(n[0],n[1]);return new URL(t.url.replace("{id}",i))}}},s=n(0),o=Object(s.a)(a,function(){var t=this.$createElement;return(this._self._c||t)("iframe",{staticClass:"embed-rutube",attrs:{src:this.embedUrl,frameborder:"0",allowfullscreen:""}})},[],!1,null,null,null);e.a=o.exports},function(t,e,n){"use strict";var i=n(12),r=(n(582),{mixins:[i.a]});n(584),e.a={mixins:[r]}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var i=n(2),r=n(531);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},,function(t,e,n){var i=n(2),r=n(849);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var i=n(2),r=n(496);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(498);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(500);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(502);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(504);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(506);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(508);
1"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(510);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(512);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(514);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(516);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(518);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(520);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(522);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(524);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(526);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(528);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(530);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){},function(t,e,n){var i=n(2),r=n(533);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(535);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(537);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(539);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(541);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(543);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(545);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(547);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,n(14).default)("2f725bef",i,!0,{})},function(t,e,n){(t.exports=n(13)(!1)).push([t.i,"",""])},function(t,e,n){var i=n(2),r=n(549);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(551);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(553);
1"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(555);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(557);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(559);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(561);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(563);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(565);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(567);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(569);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},,,,,,,,,function(t,e,n){var i=n(2),r=n(579);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},,,function(t,e,n){var i=n(2),r=n(583);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(585);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},,,,,,,,,,,,,function(t,e,n){var i=n(2),r=n(599);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(601);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(603);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(605);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},,,,,,,function(t,e,n){var i=n(2),r=n(613);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(615);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},,,,,function(t,e,n){var i=n(2),r=n(621);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(623);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(625);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(627);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(629);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(631);
1"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},,,,,,,,,,,,,function(t,e,n){var i=n(2),r=n(645);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(647);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(649);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(651);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(653);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},,,function(t,e,n){var i=n(2),r=n(657);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},,,function(t,e,n){var i=n(2),r=n(661);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(663);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},,,function(t,e,n){var i=n(2),r=n(667);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(669);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(671);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(673);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(675);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(677);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(679);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(681);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(683);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(685);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(687);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(689);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(691);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(693);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(695);
1"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(697);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(699);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(701);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(703);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(705);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(707);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(709);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(711);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(713);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(715);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(717);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(719);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(721);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(723);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(725);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(727);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(729);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(731);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(733);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},,,,,,,,function(t,e,n){var i=n(2),r=n(742);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(744);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},,,,,,,,,,,function(t,e,n){var i=n(2),r=n(756);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},,,function(t,e,n){var i=n(2),r=n(760);
1"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(762);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(764);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(766);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(768);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(770);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(772);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(774);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(776);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(778);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(780);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},function(t,e,n){var i=n(2),r=n(782);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var i=n(2),r=n(817);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){}]]);
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.