// ==UserScript==
// @name SuperMegaUltraScript
// @namespace http://tampermonkey.net/
// @version 0.36
// @description зачем оно нужно
// @author S30N1K
// @match https://dota2.ru/*
// @grant none
// ==/UserScript==
(()=>{"use strict";var A={772:(A,e,t)=>{t.d(e,{Z:()=>o});var i=t(645),n=t.n(i)()((function(A){return A[1]}));n.push([A.id,'body{font-family:Arial;background-color:#0b0b0d}#project-dota2{padding-top:0;background-color:#121215}.subtitle-global{border-radius:3px 3px 0px 0px;background-color:#2b2c32;display:block;min-height:40px !important;max-height:40px;padding:8px 0px 4px;text-align:center;border:none}.forum-customization,.news-customization{right:7px;top:7px;background:#28282d}.btn-global{padding:0;margin:0 6px;font-size:16px;background-color:#00000000}.btn-global--active{color:#00c0ff;background-color:#00000000}.component-block{background-color:#1b1c20}.component-block__list{padding-bottom:0}.component-block__link{padding:0 12px !important}.index__main{background-color:#1b1c20;margin-right:12px;margin-left:0;order:0}#news-categories{justify-content:left !important;max-height:40px !important;padding:4px !important;border-radius:3px 3px 0px 0px !important;background-color:#2b2c32 !important;margin-bottom:12px !important}#news-categories-blocks{padding:0px 12px !important}@media(max-width: 1023px){#news-categories-blocks{padding:0px !important}}.index__news-item{margin-bottom:12px}.index__news-name{margin-top:-4px}.index__left-bar{order:1;margin-right:12px}.forum__list .forum__item{background:#1b1c20}.forum__block{border:none;padding:7px 0 5px;flex-direction:row !important}.forum__list .forum__item:nth-of-type(2n){background:#222328}.forum .forum__item .component-block__img{display:none}.forum .forum__item:nth-child(1),.forum .forum__item:nth-child(2),.forum .forum__item:nth-child(3),.forum .forum__item:nth-child(4){margin-left:-2px;border-left:solid 2px #00beff}.forum__item .text-clip{width:calc(100% - 50px)}.forum__item .component-text-grey-11{white-space:nowrap}.index__right-bar>div,.index__left-bar>div{border:none;margin-top:0px;margin-bottom:12px}.index__right-bar{order:2}.memes__user{padding:8px 12px 7px}.streams .streams__item:nth-of-type(2n) a{background:#222328}.streams__item-component{min-height:48px;padding:4px 0;border:none !important}.streams__item .component-block__img{border-radius:18px !important;width:36px !important}.tournament .tournament__item:nth-of-type(2n) a{background:#222328}.tournament__item .component-block__block{border:none;padding:8px 0}.video .video__item:nth-of-type(2n) a{background:#222328}.video__item .component-block__block{border:none;font-size:12px !important;padding:0}.video__img{width:auto;height:56px;margin-top:4px}.video__item .streams__text{padding-top:4px;font-size:11px !important}.players .players__item:nth-of-type(2n) a{background:#222328}.players__item .component-block__block{border:none;font-size:12px !important;padding:8px}.players__item .component-block__img{height:36px !important}.global-main__wrap>div{margin-bottom:12px}.bg-main-block{padding:0;margin-bottom:12px;background:none}.forum-page__section{padding:0px}.forum-page__btn{background-color:#1b1b1f !important}.forum-page__title-block{border-radius:3px 3px 0 0;background-color:#2b2c32;padding:6px 6px 6px 12px}#chatFull{padding:0}.forum-page__chat-messager{padding:4px;resize:vertical;background-color:#1b1c20}.forum-page__chat-message-wrap{background-color:#252528}.forum-page__chat-message-name{font-weight:bold;font-size:14px}.forum-page__chat-message-name:hover{text-decoration:underline}.scroll-down{bottom:100px}.forum-page__list{padding:0}.forum-page__item:before,.forum-page__item:after{background:none !important}.forum-page__item-list{margin:-15px 0 0px 60px;padding-bottom:5px}.forum-page__item-list li{padding:0px 8px}.forum-page__item-title-block{padding:8px 12px;border-top:solid 2px #121215}.forum-page__item{background-color:#1b1c20 !important}.forum-section__list .forum-section__item:not(:first-child){background-color:#1b1c20}.forum-section__list .forum-section__item{padding:4px 12px;border-top:solid 2px #121215}.sticky{background-color:#222328 !important}#poll-form{background:#10101000 !important;padding:0}.poll-block__header-title{font-size:24px;margin-bottom:5px}.poll-block__body-item{border:solid 1px #121215;width:500px;height:40px}button.poll-block__body-item:last-child{background-color:#28282d}button.poll-block__body-item:last-child:hover{background-color:#28282d}.poll-block__body-item--count{color:#ababb2}.poll-block__body-item--name{color:#ccc}.poll-block__body-item--bar{background-color:#2e73a0}.forum-theme__item-dots--options .forum-theme__item-dots-block{background-color:#28282d}.forum-theme__block{border-radius:6px 6px 0 0;margin-bottom:20px}.forum-theme__item-left{background-color:#1b1c20;padding:6px;margin-right:12px;border-right:solid 2px #242424;border-bottom:solid 2px #242424;width:auto;height:min-content;border-radius:6px}.forum-theme__item-name{max-width:150px;text-align:center}.forum-theme__item-status{max-width:150px;display:flex;justify-content:center;align-items:normal}.forum-theme__item-status span{margin-top:6px}.forum-theme__item-avatar{width:150px;margin:0}.forum-theme__item-avatar>img{max-width:150px;padding:5px}.forum-theme__item-info-desk p{color:#888;padding:0 6px;height:14px}.forum-theme__item-info{white-space:nowrap}.forum-theme__item-block-mess{border-radius:6px 6px 0px 0px}.forum-theme__item-block-achiv{margin-top:0px;display:flex;flex-wrap:wrap;justify-content:center;height:min-content}.forum-theme__item-block-achiv div img{width:38px}.forum-theme__item-block-achiv div img[src="/img/dota_plus.png"]{margin-top:-3px;width:26px}.forum-theme__item-right>div{border-right:solid 2px #242424;padding:10px;background-color:#1b1c20}.forum-theme__item-right .forum-theme__item{order:1;padding:15px 10px 10px;height:30px}.forum-theme__item-right .forum-theme__item time{color:#666}.forum-theme__item-bottom{order:1;border-bottom:solid 2px #242424;border-radius:0 0 6px 6px;padding:6px 10px 10px !important;margin-top:0;border-top:solid 2px #333;align-items:normal}.forum-theme__item-bottom div,.forum-theme__item-bottom a,.forum-theme__item-bottom span{background-color:#303035}.forum-theme__item-bottom img{height:28px;margin-right:2px}.forum-theme__item-bottom li>span{padding:2px 4px;margin-top:6px}#rate-btn{height:32px;margin-top:6px;padding:0}.forum-theme__item-bottom .forum-theme__item-btn:hover{transition:0s}.forum-theme__item-bottom span span{margin-top:2px;font-size:16px}.forum-theme__item-like-item{margin-right:4px}.forum-theme__item-like-link:hover{background:#28282d}.forum-theme__item-btn{margin-top:6px;height:32px}.forum-theme__item-dots{background-color:transparent !important;margin-right:0px;margin-top:9px;padding:0px;display:flex;justify-content:right !important;align-items:center;width:auto}.forum-theme__item-dots span{display:none}.forum-theme__item-dots .forum-theme__item-dots-block{background-color:transparent;bottom:0;transform:none;position:relative;display:inline-flex;flex-direction:row;padding:0;margin:4px 0 0 0}.forum-theme__item-dots .forum-theme__item-dots-block a{height:32px;padding:0 7px;margin-right:5px}#quick-reply{width:calc(100% - 176px);margin-left:auto}@media(max-width: 900px){#quick-reply{width:100%}}#forumPost_ifr{padding:10px 10px}form:not(.global-content__edit-post) .tox-tbtn{margin:0 2px !important;width:26px !important}.tox-split-button *{margin:0 !important;padding:0 !important}.tox-split-button:hover{box-shadow:0 0 0 transparent !important}form:not(.global-content__edit-post) .tox-tbtn{width:26px}.tox .tox-split-button .tox-split-button__chevron{width:16px !important;margin-left:-5px !important;margin-right:5px}.tox-tinymce{padding:0 !important}.tox-tbtn:hover{background-color:transparent !important}.tox-tbtn svg{margin:0px -2px;cursor:pointer;filter:brightness(120%)}.tox-tbtn:hover svg{filter:brightness(250%)}.tox-tbtn[aria-disabled=true]{display:none}.tox-toolbar{border-bottom:solid 2px #333 !important}form:not(.global-content__edit-post) .tox-tbtn.tox-tbtn--bespoke{width:65px !important}.bbCodeQuote{margin-top:5px;padding:0;border:0;background-color:#00000000}.bbCodeQuote .attribution{border-radius:6px 6px 0 0;border-bottom:solid 2px #28282d;margin:0;padding:6px 12px 4px;background-color:#080808}.bbCodeQuote .quote{border-radius:0 0 6px 6px;background-color:#121212 !important;padding:8px 12px 6px}.quoteContainer .forum-theme__item-block-remess-btn{margin:0 !important;background:#080808 !important;border-radius:0 0 6px 6px}.forum-theme__item-block-mess .attribution abbr{font-weight:700}.spoiler-btn{padding:2px 14px 0;color:#bbb;font-weight:500;background-color:#080808 !important}.spoiler-content{background:#202227 !important}',""]);const o=n},211:(A,e,t)=>{t.d(e,{Z:()=>o});var i=t(645),n=t.n(i)()((function(A){return A[1]}));n.push([A.id,"",""]);const o=n},377:(A,e,t)=>{t.d(e,{Z:()=>o});var i=t(645),n=t.n(i)()((function(A){return A[1]}));n.push([A.id,"\n.search[data-v-efae728e] {\r\n padding: 10px;\n}\n.search input[data-v-efae728e] {\r\n margin-left: 6px;\r\n background-color: transparent;\r\n border: 0;\r\n outline: 0;\r\n width: 300px;\n}\n.favorites[data-v-efae728e] {\r\n padding: 30px;\r\n text-align: center;\n}\n.favorites span[data-v-efae728e] {\r\n color: darkred;\n}\r\n",""]);const o=n},275:(A,e,t)=>{t.d(e,{Z:()=>o});var i=t(645),n=t.n(i)()((function(A){return A[1]}));n.push([A.id,'\ncanvas[data-v-78830c6c] {\r\n border: 1px solid darkgray;\n}\ninput[type="color"][data-v-78830c6c] {\r\n height: 50px;\r\n width: 100px;\r\n display: inline-block;\n}\r\n',""]);const o=n},61:(A,e,t)=>{t.d(e,{Z:()=>o});var i=t(645),n=t.n(i)()((function(A){return A[1]}));n.push([A.id,"\n.settings h1[data-v-26c28905] {\r\n margin-bottom: 10px;\n}\n.settings label[data-v-26c28905] {\r\n padding: 10px;\r\n cursor: pointer;\n}\n.item div[data-v-26c28905] {\r\n padding: 10px;\r\n margin-left: 15px;\n}\n.item div[data-v-26c28905]:first-child {\r\n padding-top: 0 !important;\n}\n.donate[data-v-26c28905] {\r\n text-align: center;\r\n font-weight: bold;\n}\n.donate a[data-v-26c28905] {\r\n color: #ff004f;\n}\r\n\r\n",""]);const o=n},645:A=>{A.exports=function(A){var e=[];return e.toString=function(){return this.map((function(e){var t=A(e);return e[2]?"@media ".concat(e[2]," {").concat(t,"}"):t})).join("")},e.i=function(A,t,i){"string"==typeof A&&(A=[[null,A,""]]);var n={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(n[a]=!0)}for(var r=0;r<A.length;r++){var s=[].concat(A[r]);i&&n[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),e.push(s))}},e}},379:(A,e,t)=>{var i,n=function(){var A={};return function(e){if(void 0===A[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(A){t=null}A[e]=t}return A[e]}}(),o=[];function a(A){for(var e=-1,t=0;t<o.length;t++)if(o[t].identifier===A){e=t;break}return e}function r(A,e){for(var t={},i=[],n=0;n<A.length;n++){var r=A[n],s=e.base?r[0]+e.base:r[0],c=t[s]||0,l="".concat(s," ").concat(c);t[s]=c+1;var m=a(l),g={css:r[1],media:r[2],sourceMap:r[3]};-1!==m?(o[m].references++,o[m].updater(g)):o.push({identifier:l,updater:V(g,e),references:1}),i.push(l)}return i}function s(A){var e=document.createElement("style"),i=A.attributes||{};if(void 0===i.nonce){var o=t.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(A){e.setAttribute(A,i[A])})),"function"==typeof A.insert)A.insert(e);else{var a=n(A.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var c,l=(c=[],function(A,e){return c[A]=e,c.filter(Boolean).join("\n")});function m(A,e,t,i){var n=t?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(A.styleSheet)A.styleSheet.cssText=l(e,n);else{var o=document.createTextNode(n),a=A.childNodes;a[e]&&A.removeChild(a[e]),a.length?A.insertBefore(o,a[e]):A.appendChild(o)}}function g(A,e,t){var i=t.css,n=t.media,o=t.sourceMap;if(n?A.setAttribute("media",n):A.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),A.styleSheet)A.styleSheet.cssText=i;else{for(;A.firstChild;)A.removeChild(A.firstChild);A.appendChild(document.createTextNode(i))}}var d=null,p=0;function V(A,e){var t,i,n;if(e.singleton){var o=p++;t=d||(d=s(e)),i=m.bind(null,t,o,!1),n=m.bind(null,t,o,!0)}else t=s(e),i=g.bind(null,t,e),n=function(){!function(A){if(null===A.parentNode)return!1;A.parentNode.removeChild(A)}(t)};return i(A),function(e){if(e){if(e.css===A.css&&e.media===A.media&&e.sourceMap===A.sourceMap)return;i(A=e)}else n()}}A.exports=function(A,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=(void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i));var t=r(A=A||[],e);return function(A){if(A=A||[],"[object Array]"===Object.prototype.toString.call(A)){for(var i=0;i<t.length;i++){var n=a(t[i]);o[n].references--}for(var s=r(A,e),c=0;c<t.length;c++){var l=a(t[c]);0===o[l].references&&(o[l].updater(),o.splice(l,1))}t=s}}}}},e={};function t(i){var n=e[i];if(void 0!==n)return n.exports;var o=e[i]={id:i,exports:{}};return A[i](o,o.exports,t),o.exports}t.n=A=>{var e=A&&A.__esModule?()=>A.default:()=>A;return t.d(e,{a:e}),e},t.d=(A,e)=>{for(var i in e)t.o(e,i)&&!t.o(A,i)&&Object.defineProperty(A,i,{enumerable:!0,get:e[i]})},t.o=(A,e)=>Object.prototype.hasOwnProperty.call(A,e),(()=>{const A=async()=>{console.log("index")};var e=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"smiles-panel super"},[t("ul",{staticClass:"smiles-panel__tabs mt12"},A._l(A.categories,(function(e){return t("li",{class:{"tab-title":!0,active:e.id===A.active}},[t("a",{staticStyle:{padding:"3px 10px"},on:{click:function(t){return A.change(e)}}},[t("img",{staticStyle:{width:"24px","vertical-align":"middle"},attrs:{src:A.getSmileUrl(parseInt(e.img_tab_smile))}})])])})),0),A._v(" "),t("div",{staticClass:"search"},[t("i",{staticClass:"fa fa-search"}),A._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:A.search,expression:"search"}],attrs:{placeholder:"Поиск по смайлам"},domProps:{value:A.search},on:{input:[function(e){e.target.composing||(A.search=e.target.value)},A.onSearch]}})]),A._v(" "),t("div",{staticClass:"smiles-panel__tabs-content-block",staticStyle:{"background-color":"rgb(13, 14, 16)"}},[t("div",[A._l(A.currentSmiles,(function(e){return t("div",A._b({staticClass:"smile-content",staticStyle:{display:"inline-block",margin:"3px"}},"div",e.symbol,!1),[t("a",{on:{contextmenu:function(t){return t.preventDefault(),A.favoritesChange(e)},click:function(t){return t.preventDefault(),A.insertSmile(e)}}},[t("img",{staticStyle:{"max-height":"32px","max-width":"32px"},attrs:{src:A.getSmileUrl(e)}})])])})),A._v(" "),"favorites"!==A.active||A.currentSmiles.length?A._e():t("div",{staticClass:"favorites"},[A._v("\n Тут будут отображаться избранные смайлы. Для добавления в избранное нажми по смайлу\n "),t("span",[A._v("правой кнопкой")]),A._v(" мыши\n ")])],2)])])};e._withStripped=!0;const i={favoriteEmoticonsList:[],emoticonsActive:"6",soundAlert:!0,eventVolume:100,newSmiles:!0,notificationSmiles:!0,highlightIgnoreMe:!0,highlightTopicStarter:!0,highlightSubscribeMe:!0,superIndex:!0,keepIgnored:!0,ignoredMe:[],superIgnore:!1,superIgnoreList:[],superIgnoreRemoveMessage:!0,superIgnoreThemes:!1,superIgnoreChat:!1,superChat:!1,paint:!1,uploadImages:!1,uploadImagesToken:null,autoSave:!0,returnDesign:!1,...JSON.parse(localStorage.getItem("SuperMegaUltraScriptConfig"))||{}},n=()=>{localStorage.setItem("SuperMegaUltraScriptConfig",JSON.stringify(i))},o={"X-Requested-With":"XMLHttpRequest"},a=async(A,e,t=!1)=>await fetch(A,{method:e?"POST":"GET",headers:o,body:e?t?e:JSON.stringify(e):null}),r=async()=>await(await a("/replies/get_smiles")).json(),s=async A=>await(await a("/forum/api/user/subscribe",{uid:A})).json(),c=async(A=1,e=[],t=0)=>{const i=$(await(await a(`/forum/settings/ignorelist/page-${A}`)).text());t||(t=i.find(".pagination").data("pages")||1);const n=i.find(".member-list");for(const A of n.find("li"))e.push(parseInt(A.getAttribute("id").replace("user-","")));return A<t?c(A+1,e,t):e},l={async mounted(){const A=await r();this.categories=A.smiles.categories,this.categories.push({id:"ban",name:"Запрещенка",img_tab_smile:"1388",date_created:null}),this.categories.push({id:"bttv",name:"bttv",img_tab_smile:"1078",date_created:null}),this.categories.push({id:"favorites",name:"Избранное",img_tab_smile:"729",date_created:null}),this.smiles=A.smiles.smiles,this.all=Object.values(this.smiles).flat(),this.smiles.ban=[{symbol:":doprigalis:",filename:"doprigalis.gif"},{symbol:":facepalm2:",filename:"facepalm2.gif"},{symbol:":nyametal:",filename:"nyametal.gif"},{symbol:":search:",filename:"search.gif"},{symbol:":VeryLike:",filename:"SoHappy.gif"},{symbol:":nay:",filename:"nay.png"},{symbol:":Pog:",filename:"Pog.png"},{symbol:":RoflanBob:",filename:"RoflanBob.png"},{symbol:":TTours:",filename:"TTours.png"},{symbol:":yea:",filename:"yea.png"},{symbol:":valetLoss:",filename:"valetLoss.png"},{symbol:":valetWin:",filename:"valetWin.png"},{symbol:":bearth:",filename:"bearth.png"},{symbol:":bfire:",filename:"bfire.png"},{symbol:":bstorm:",filename:"bstorm.png"},{symbol:":cmArc:",filename:"cmArc.png"},{symbol:":ioarc:",filename:"ioarc.png"},{symbol:":juggarc:",filename:"juggarc.png"},{symbol:":legioncommanderarc:",filename:"legioncommanderarc.png"},{symbol:":linaarc:",filename:"linaarc.png"},{symbol:":monkeykingarc:",filename:"monkeykingarc.png"},{symbol:":Ogre Arcana:",filename:"OgreArcana.png"},{symbol:":phantomassassinarc:",filename:"phantomassassinarc.png"},{symbol:":pudgearc:",filename:"pudgearc.png"},{symbol:":queen_of_pain_arcana:",filename:"queenofpainarcana.png"},{symbol:":queen_of_pain_arcanastyle:",filename:"queenofpainarcanastyle.png"},{symbol:":RubickArcana:",filename:"RubickArcana.png"},{symbol:":shadowfiendarc:",filename:"shadowfiendarc.png"},{symbol:":Shaker Arcana:",filename:"ShakerArcana.png"},{symbol:":skeletonking:",filename:"skeletonking.png"},{symbol:":techiesarc:",filename:"techiesarc.png"},{symbol:":terrorbladearc:",filename:"terrorbladearc.png"},{symbol:":windranger_arcana:",filename:"WindrangerArcana.png"},{symbol:":windranger_arcanastyle:",filename:"WindrangerArcanaStyle.png"},{symbol:":zeusarc:",filename:"zeusarc.png"},{symbol:":AnimeHappy:",filename:"AnimeHappy.png"},{symbol:":AnimeRage2:",filename:"AnimeRage2.gif"},{symbol:":AnimeXD:",filename:"AnimeXD.png"},{symbol:":LaceShrug:",filename:"AnimeWhatever.png"},{symbol:":MiyanoWow:",filename:"MiyanoWow.png"},{symbol:":kamuicry:",filename:"kamuicry.png"},{symbol:":sagiridither:",filename:"sagiridither.png"},{symbol:":PepeDancer:",filename:"PepeDance.gif"},{symbol:":PepeHot:",filename:"PepeHot.gif"},{symbol:":PepeSuperRage:",filename:"PepeSuperRage.png"},{symbol:":PepeThink_2:",filename:"PepeThink2.gif"},{symbol:":pepeclap:",filename:"pepeclap.gif"},{symbol:":AYAYANEWYEAR:",filename:"AYAYANEWYEAR.png"},{symbol:":LULW:",filename:"LULW.png"},{symbol:":MaN:",filename:"MaN.png"},{symbol:":NoPadoru:",filename:"NoPadoru.png"},{symbol:":Okayge:",filename:"Okayge.png"},{symbol:":Padoru:",filename:"Padoru.png"},{symbol:":PadoruGif:",filename:"PadoruGif.gif"},{symbol:":PadoruZoom:",filename:"PadoruZoom.png"},{symbol:":PepeA:",filename:"PepeA.png"},{symbol:":PepeClownNY:",filename:"PepeClownNY.png"},{symbol:":PepeHandsNY:",filename:"PepeHandsNY.png"},{symbol:":PepePoggersNY:",filename:"PepePoggersNY.png"},{symbol:":PepeRunNY:",filename:"PepeRunNY.gif"},{symbol:":PepeSmooth:",filename:"PepeSmooth.png"},{symbol:":PogO:",filename:"PogO.png"},{symbol:":PogU:",filename:"PogU.png"},{symbol:":Sadge:",filename:"Sadge.png"},{symbol:":WTF:",filename:"WTF.png"},{symbol:":dankHug:",filename:"dankHug.png"}],this.smiles.bttv=[],this.smiles.favorites=i.favoriteEmoticonsList,await this.change(this.categories.find((A=>A.id===this.active)))},data:()=>({_active:i.emoticonsActive,active:i.emoticonsActive,categories:[],smiles:[],all:[],currentSmiles:[],search:"",bttvOffset:0}),methods:{async onSearch(A){if(this.search.length>2&&"search"!==this.active&&(this._active=this.active,this.active="search"),this.search.length>2&&"search"===this.active)if("bttv"===this._active)this.currentSmiles=await this.searchBttv();else{const A=await(async A=>await(await a("/forum/api/forum/getSmiles_textarea",{query:A})).json())(this.search);this.currentSmiles=A.map((A=>(A.filename=A.path,A.symbol=A.smile,A.forum_count=1,A)))}this.search.length<3&&"search"===this.active&&(this.active=this._active,this.bttvOffset=0,this.currentSmiles=this.smiles[this.active])},favoritesChange(A){const e=A.symbol,t=this.isSmileBttv(A)?A.filename:"/img/forum/emoticons/"+A.filename,o=i.favoriteEmoticonsList.findIndex((A=>A.f===t));o>-1?(Utils.notify("Смайл удален из избранного","success",1e3),i.favoriteEmoticonsList.splice(o,1),"favorites"===this.active&&this.currentSmiles.splice(o,1)):(Utils.notify("Смайл добавлен в избранное","success",1e3),i.favoriteEmoticonsList.push({s:e,f:t})),n()},async loadBttv(){const A=await(async(A=0)=>await(await a(`https://api.betterttv.net/3/emotes/shared/top?offset=${A}&limit=100`)).json())(this.bttvOffset);for(const e of A)this.smiles.bttv.push({symbol:1,filename:`https://cdn.betterttv.net/emote/${e.emote.id}/2x`});this.bttvOffset+=100},async searchBttv(){return(await(async(A,e=0)=>await(await a(`https://api.betterttv.net/3/emotes/shared/search?query=${A}&offset=${e}&limit=100`)).json())(this.search,0)).map((A=>(A.filename=`https://cdn.betterttv.net/emote/${A.id}/2x`,A.symbol=1,A)))},async change(A){"bttv"!==A.id||this.smiles.bttv.length||(await this.loadBttv(),await this.loadBttv(),await this.loadBttv()),"favorites"===A.id&&(this.smiles.favorites=i.favoriteEmoticonsList.map((A=>(A.symbol=A.s,A.filename=A.f,A)))),this.active=A.id,i.emoticonsActive=A.id,n(),this.currentSmiles=this.smiles[this.active]},isSmileBttv:A=>1===A.symbol,insertSmile(A){this.isSmileBttv(A)?tinyMCE.activeEditor.insertContent(`<img alt="Smiley face" height="32" width="42" src="${A.filename}"/>`):tinyMCE.activeEditor.plugins.smileys.insert(A.symbol,this.getSmileUrl(A))},getSmileUrl(A){return"number"==typeof A?"/img/forum/emoticons/"+this.findSmileById(A.toString()).filename:"object"==typeof A?this.isSmileBttv(A)?A.filename:"/img/forum/emoticons/"+A.filename:void 0},findSmileById(A){return this.all.find((e=>e.id===A))}}};var m=t(379),g=t.n(m),d=t(377);function p(A,e,t,i,n,o,a,r){var s,c="function"==typeof A?A.options:A;if(e&&(c.render=e,c.staticRenderFns=t,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(s=function(A){(A=A||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(A=__VUE_SSR_CONTEXT__),n&&n.call(this,A),A&&A._registeredComponents&&A._registeredComponents.add(a)},c._ssrRegister=s):n&&(s=r?function(){n.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:n),s)if(c.functional){c._injectStyles=s;var l=c.render;c.render=function(A,e){return s.call(e),l(A,e)}}else{var m=c.beforeCreate;c.beforeCreate=m?[].concat(m,s):[s]}return{exports:A,options:c}}g()(d.Z,{insert:"head",singleton:!1}),d.Z.locals;var V=p(l,e,[],!1,null,"efae728e",null);V.options.__file="src/vue/NewSmiles.vue";const u=V.exports,f=A=>document.createElement(A),h=($(".header__subitem-head a").attr("href").split("/")[3],(A,e,t)=>{const i=document.querySelector(A);i?t(i):setTimeout((()=>h(A,e,t)),e)});var v=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",[t("div",{directives:[{name:"show",rawName:"v-show",value:A.isShow,expression:"isShow"}],staticClass:"popup-overlay"},[t("div",{staticClass:"popup"},[t("div",{staticClass:"close"},[t("i",{staticClass:"fa fa-times",on:{click:A.cancel}})]),A._v(" "),t("div",{staticClass:"forum-customization-form"},[t("h2",[A._v("Добавить граффити")]),A._v(" "),t("div",{staticClass:"p-content p-text"},[t("canvas",{ref:"graffiti",attrs:{width:"600px",height:"300px"}}),A._v(" "),t("br"),A._v(" "),t("div",[t("button",{on:{click:A.back}},[A._v("Назад")]),A._v(" "),t("button",{on:{click:A.next}},[A._v("Вперед")])]),A._v(" "),t("div",[t("label",[t("b",[A._v("Ширина кисти")]),A._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:A.height,expression:"height"}],attrs:{type:"range",min:"1",max:"30"},domProps:{value:A.height},on:{__r:function(e){A.height=e.target.value}}})])]),A._v(" "),t("div",[t("label",[t("b",[A._v("Цвет кисти")]),A._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:A.color,expression:"color"}],attrs:{type:"color",value:"#333333"},domProps:{value:A.color},on:{input:function(e){e.target.composing||(A.color=e.target.value)}}})])])]),A._v(" "),t("div",{staticClass:"popup-buttons"},[t("button",{staticClass:"send",on:{click:A.reset}},[A._v("Сбросить")]),A._v(" "),t("button",{staticClass:"send",on:{click:A.cancel}},[A._v("Отмена")]),A._v(" "),t("button",{staticClass:"send",on:{click:A.save}},[A._v("Сохранить")])])])])])])};v._withStripped=!0;const b={mounted(){let A=this.$refs.graffiti,e=A.getContext("2d");this.canvas=A,this.w=A.width,this.h=A.height,this.ctx=e;let t={x:0,y:0},i=!1;this.reset(),A.addEventListener("mousedown",(function(A){t.x=A.layerX,t.y=A.layerY,i=!0,e.beginPath(),e.moveTo(t.x,t.y)})),A.addEventListener("mousemove",function(A){!0===i&&(t.x=A.layerX,t.y=A.layerY,e.lineWidth=this.height,e.strokeStyle=this.color,e.lineTo(t.x,t.y),e.stroke())}.bind(this)),A.addEventListener("mouseup",function(A){t.x=A.layerX,t.y=A.layerY,e.lineTo(t.x,t.y),e.stroke(),e.closePath(),i=!1,this.addHistory()}.bind(this)),this.addHistory()},data:()=>({uploadFn:null,isShow:!1,canvas:null,w:null,h:null,ctx:null,height:1,color:"#333333",image:null,history:[],historyIndex:0}),methods:{back(){this.historyIndex--,this.historyIndex<0&&(this.historyIndex=0);const A=new Image;A.onload=()=>{this.ctx.drawImage(A,0,0)},A.src=URL.createObjectURL(this.history[this.historyIndex])},next(){this.historyIndex++,this.historyIndex===this.history.length&&(this.historyIndex=this.history.length-1);const A=new Image;A.onload=()=>{this.ctx.drawImage(A,0,0)},A.src=URL.createObjectURL(this.history[this.historyIndex])},addHistory(){this.historyIndex,this.history.length,this.canvas.toBlob((A=>{this.historyIndex=this.history.push(A)}))},save(){this.canvas.toBlob((A=>{this.uploadFn(A)})),this.cancel()},cancel(){this.isShow=!1,this.reset()},open(){this.isShow=!0},reset(){this.ctx.fillStyle="#1B1C20",this.ctx.fillRect(0,0,this.w,this.h)}}};var _=t(275);g()(_.Z,{insert:"head",singleton:!1}),_.Z.locals;var y=p(b,v,[],!1,null,"78830c6c",null);y.options.__file="src/vue/Paint.vue",y.exports;const x=("div",$(f("div"))).css({background:"black",position:"absolute",width:"100%",height:"100%",zIndex:3,opacity:.8,color:"darkgray",display:"flex",alignItems:"center",justifyContent:"center"}).html("Пожалуйста подождите, идет загрузка изображения на imgbb");var k=t(211);g()(k.Z,{insert:"head",singleton:!1}),k.Z.locals;const w=async()=>{console.log(44),i.returnDesign&&console.log("returnDesign"),i.newSmiles&&$("body").on("DOMNodeInserted",(function(A){"smiles-panel"===A.target.className&&new Vue({el:A.target,render:A=>A(u)})})),i.uploadImages&&await(async()=>{if(!i.uploadImages||!i.uploadImagesToken)return;const A=window.location.pathname.match(/conversation/)?"#conversationPost_ifr":"#forumPost_ifr";h(A,100,(async A=>{const e=$(A).closest(".tox-editor-container");A.contentWindow.document.body.addEventListener("paste",(async A=>{if(A.clipboardData.types.includes("Files")){const t=A.clipboardData.files[0];await(async(A,e)=>{if("image/png"===e.type){A.append(x);const t=await(async A=>{const e=new FormData;return e.append("image",A),await(await a(`https://api.imgbb.com/1/upload?key=${i.uploadImagesToken}`,e,!0)).json()})(e);switch(t.status){case 200:window.tinymce.activeEditor.insertContent(`<img src="${t.data.url}"/>`);break;default:Utils.notify("Произошла ошибка. Проверь токен imgbb в настройках сайта")}x.remove()}else Utils.notify(`Не известный тип ${e.type}`)})(e,t)}}))}))})()},I="data:audio/mpeg;base64,SUQzAwAAAAAfdlRDT04AAAAFAAAAKDEyKVBSSVYAAAAOAABQZWFrVmFsdWUAIQAAAFBSSVYAAAARAABBd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VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVEFHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",S=new Audio,C=async()=>{},M=async()=>{},T=async()=>{};let P;const N=async(A,e)=>{if(!["Оценки","Все уведомления"].includes(A))return;const t=await(async(A=1,e="Все уведомления")=>await(await a("/forum/api/notices/preload",{page:A,name:e})).json())(e,A);for(const A of t.notices)if("forum_post_liked"===A.type){const e=$('[data-time="'+A.date_created+'"]').parent().find(".description"),t="/img/forum/emoticons/"+P.find((e=>parseInt(e.id)===A.smile_id)).filename;e.append(`<img src="${t}" style="margin-left: 10px"/>`)}},E=async()=>{if(i.notificationSmiles){P=Object.values((await r()).smiles.smiles).flat();let A=1,e="Все уведомления";await N(e,A),$("#pagination-vue").on("click","div",async function(t){A=parseInt(t.target.innerText),setTimeout((async()=>{await N(e,A)}),800)}.bind(void 0)),$(".notices-body__categories > .notices-body__categories--category:not(.label)").parent().on("click",async function(t){A=1,e=$(t.target).find(".notices-body__categories--category-name").html(),e||(e=$(t.target).closest(".notices-body__categories").find(".notices-body__categories--category-name").html()),setTimeout((async()=>{await N(e,A)}),800)}.bind(void 0))}};var U=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"settings"},[t("h1",[A._v("Супер Мега Ультра Скрипт")]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.returnDesign,expression:"config.returnDesign"}],attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(A.config.returnDesign)?A._i(A.config.returnDesign,null)>-1:A.config.returnDesign},on:{change:[function(e){var t=A.config.returnDesign,i=e.target,n=!!i.checked;if(Array.isArray(t)){var o=A._i(t,null);i.checked?o<0&&A.$set(A.config,"returnDesign",t.concat([null])):o>-1&&A.$set(A.config,"returnDesign",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"returnDesign",n)},A.save]}}),A._v("\n Вернуть все взад (оформление частично)\n ")])]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.newSmiles,expression:"config.newSmiles"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(A.config.newSmiles)?A._i(A.config.newSmiles,null)>-1:A.config.newSmiles},on:{change:[function(e){var t=A.config.newSmiles,i=e.target,n=!!i.checked;if(Array.isArray(t)){var o=A._i(t,null);i.checked?o<0&&A.$set(A.config,"newSmiles",t.concat([null])):o>-1&&A.$set(A.config,"newSmiles",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"newSmiles",n)},A.save]}}),A._v("\n Новая панель со смайлами\n ")])]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.uploadImages,expression:"config.uploadImages"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(A.config.uploadImages)?A._i(A.config.uploadImages,null)>-1:A.config.uploadImages},on:{change:[function(e){var t=A.config.uploadImages,i=e.target,n=!!i.checked;if(Array.isArray(t)){var o=A._i(t,null);i.checked?o<0&&A.$set(A.config,"uploadImages",t.concat([null])):o>-1&&A.$set(A.config,"uploadImages",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"uploadImages",n)},A.save]}}),A._v(" Выгрузка изображений на форум по ctrl+v\n ")]),A._v(" "),A.config.uploadImages?t("div",[t("label",[t("b",[A._v("Токен от imgbb")]),t("br"),A._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.uploadImagesToken,expression:"config.uploadImagesToken"}],attrs:{type:"text"},domProps:{value:A.config.uploadImagesToken},on:{change:A.save,input:function(e){e.target.composing||A.$set(A.config,"uploadImagesToken",e.target.value)}}})]),A._v(" "),A.config.uploadImagesToken?A._e():t("div",[t("h1",[A._v("Инструкция")]),t("br"),A._v("\n Идем сюда "),t("a",{attrs:{href:"https://imgbb.com/",target:"_blank"}},[A._v("https://imgbb.com/")]),t("br"),A._v("\n 1) Регаемся, или заходим под своей учеткой, если уже зареганы."),t("br"),A._v("\n 2) как авторизовались, идем сюда "),t("a",{attrs:{href:"https://api.imgbb.com/",target:"_blank"}},[A._v("https://api.imgbb.com/")]),t("br"),A._v('\n 3) жмем кнопку вверху "GET API KEY"'),t("br"),A._v("\n 4) получаем длинный ключ, копируем его."),t("br"),A._v("\n 5) вставляем его в поле выше\n ")])]):A._e()]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.paint,expression:"config.paint"}],attrs:{type:"checkbox",disabled:!A.config.uploadImages,disabled:""},domProps:{checked:Array.isArray(A.config.paint)?A._i(A.config.paint,null)>-1:A.config.paint},on:{change:[function(e){var t=A.config.paint,i=e.target,n=!!i.checked;if(Array.isArray(t)){var o=A._i(t,null);i.checked?o<0&&A.$set(A.config,"paint",t.concat([null])):o>-1&&A.$set(A.config,"paint",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"paint",n)},A.save]}}),A._v(" Граффити\n "),A.config.uploadImages?A._e():t("span",[A._v("(Работает только с выгрузкой изображений)")])])]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.notificationSmiles,expression:"config.notificationSmiles"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(A.config.notificationSmiles)?A._i(A.config.notificationSmiles,null)>-1:A.config.notificationSmiles},on:{change:[function(e){var t=A.config.notificationSmiles,i=e.target,n=!!i.checked;if(Array.isArray(t)){var o=A._i(t,null);i.checked?o<0&&A.$set(A.config,"notificationSmiles",t.concat([null])):o>-1&&A.$set(A.config,"notificationSmiles",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"notificationSmiles",n)},A.save]}}),A._v("\n Отображать смайлы, которыми меня оценили на странице уведомлений\n ")])]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.soundAlert,expression:"config.soundAlert"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(A.config.soundAlert)?A._i(A.config.soundAlert,null)>-1:A.config.soundAlert},on:{change:[function(e){var t=A.config.soundAlert,i=e.target,n=!!i.checked;if(Array.isArray(t)){var o=A._i(t,null);i.checked?o<0&&A.$set(A.config,"soundAlert",t.concat([null])):o>-1&&A.$set(A.config,"soundAlert",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"soundAlert",n)},A.save]}}),A._v("\n Звуковые уведомления\n ")]),A._v(" "),A.config.soundAlert?t("div",[t("div",[A._v("\n Громкость уведомлений\n "),t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.eventVolume,expression:"config.eventVolume"}],attrs:{type:"range",min:"1",max:"100",step:"1"},domProps:{value:A.config.eventVolume},on:{change:A.saveVolume,__r:function(e){return A.$set(A.config,"eventVolume",e.target.value)}}})]),A._v(" "),t("div",[A._v("\n Звук уведомлений\n "),t("input",{attrs:{type:"file",accept:"audio/*"},on:{change:A.changeAudioFile}}),A._v(" "),t("button",{on:{click:A.audioEventPlay}},[A._v("Воиспроизвести")]),A._v(" "),t("button",{on:{click:A.resetEventAudio}},[A._v("Сбросить на звук icq")])])]):A._e()]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.superIgnore,expression:"config.superIgnore"}],attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(A.config.superIgnore)?A._i(A.config.superIgnore,null)>-1:A.config.superIgnore},on:{change:[function(e){var t=A.config.superIgnore,i=e.target,n=!!i.checked;if(Array.isArray(t)){var o=A._i(t,null);i.checked?o<0&&A.$set(A.config,"superIgnore",t.concat([null])):o>-1&&A.$set(A.config,"superIgnore",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"superIgnore",n)},A.saveSuperIgnore]}}),A._v("\n Супер игнор\n ")]),A._v(" "),A.config.superIgnore?t("div",[t("div",[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.superIgnoreRemoveMessage,expression:"config.superIgnoreRemoveMessage"}],attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(A.config.superIgnoreRemoveMessage)?A._i(A.config.superIgnoreRemoveMessage,null)>-1:A.config.superIgnoreRemoveMessage},on:{change:[function(e){var t=A.config.superIgnoreRemoveMessage,i=e.target,n=!!i.checked;if(Array.isArray(t)){var o=A._i(t,null);i.checked?o<0&&A.$set(A.config,"superIgnoreRemoveMessage",t.concat([null])):o>-1&&A.$set(A.config,"superIgnoreRemoveMessage",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"superIgnoreRemoveMessage",n)},A.save]}}),A._v("\n Скрывать сообщения на форуме\n ")])]),A._v(" "),t("div",[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.superIgnoreThemes,expression:"config.superIgnoreThemes"}],attrs:{type:"checkbox",disabled:!A.config.superIndex,disabled:""},domProps:{checked:Array.isArray(A.config.superIgnoreThemes)?A._i(A.config.superIgnoreThemes,null)>-1:A.config.superIgnoreThemes},on:{change:[function(e){var t=A.config.superIgnoreThemes,i=e.target,n=!!i.checked;if(Array.isArray(t)){var o=A._i(t,null);i.checked?o<0&&A.$set(A.config,"superIgnoreThemes",t.concat([null])):o>-1&&A.$set(A.config,"superIgnoreThemes",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"superIgnoreThemes",n)},A.save]}}),A._v("\n Скрывать темы с главной\n "),A.config.superIndex?A._e():t("span",[A._v('(Работает только при включеной "супер главной")')])])]),A._v(" "),t("div",[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.superIgnoreChat,expression:"config.superIgnoreChat"}],attrs:{type:"checkbox",disabled:!A.config.superChat,disabled:""},domProps:{checked:Array.isArray(A.config.superIgnoreChat)?A._i(A.config.superIgnoreChat,null)>-1:A.config.superIgnoreChat},on:{change:[function(e){var t=A.config.superIgnoreChat,i=e.target,n=!!i.checked;if(Array.isArray(t)){var o=A._i(t,null);i.checked?o<0&&A.$set(A.config,"superIgnoreChat",t.concat([null])):o>-1&&A.$set(A.config,"superIgnoreChat",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"superIgnoreChat",n)},A.save]}}),A._v("\n Скрывать сообщения в чате "),A.config.superChat?A._e():t("span",[A._v('(Работает только со включены "супер чатом")')])])]),A._v(" "),A.superIgnoreStatus?t("div",[A._v("\n "+A._s(A.superIgnoreStatus)+"\n ")]):A._e()]):A._e()]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.highlightIgnoreMe,expression:"config.highlightIgnoreMe"}],attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(A.config.highlightIgnoreMe)?A._i(A.config.highlightIgnoreMe,null)>-1:A.config.highlightIgnoreMe},on:{change:[function(e){var t=A.config.highlightIgnoreMe,i=e.target,n=!!i.checked;if(Array.isArray(t)){var o=A._i(t,null);i.checked?o<0&&A.$set(A.config,"highlightIgnoreMe",t.concat([null])):o>-1&&A.$set(A.config,"highlightIgnoreMe",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"highlightIgnoreMe",n)},A.save]}}),A._v("\n Выделять рамкой тех, кто игнорирует меня\n ")]),A._v(" "),A.config.highlightIgnoreMe?t("div",[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.keepIgnored,expression:"config.keepIgnored"}],attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(A.config.keepIgnored)?A._i(A.config.keepIgnored,null)>-1:A.config.keepIgnored},on:{change:[function(e){var t=A.config.keepIgnored,i=e.target,n=!!i.checked;if(Array.isArray(t)){var o=A._i(t,null);i.checked?o<0&&A.$set(A.config,"keepIgnored",t.concat([null])):o>-1&&A.$set(A.config,"keepIgnored",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"keepIgnored",n)},A.save]}}),A._v("\n Сохранять список тех, кто игнорирует меня\n ")]),A._v(" "),A.config.keepIgnored?t("div",{staticClass:"ignoreMeList",domProps:{innerHTML:A._s(A.ignoreMeList)}}):A._e()]):A._e()]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.highlightTopicStarter,expression:"config.highlightTopicStarter"}],attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(A.config.highlightTopicStarter)?A._i(A.config.highlightTopicStarter,null)>-1:A.config.highlightTopicStarter},on:{change:[function(e){var t=A.config.highlightTopicStarter,i=e.target,n=!!i.checked;if(Array.isArray(t)){var o=A._i(t,null);i.checked?o<0&&A.$set(A.config,"highlightTopicStarter",t.concat([null])):o>-1&&A.$set(A.config,"highlightTopicStarter",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"highlightTopicStarter",n)},A.save]}}),A._v("\n Выделять рамкой автора темы\n ")])]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.highlightSubscribeMe,expression:"config.highlightSubscribeMe"}],attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(A.config.highlightSubscribeMe)?A._i(A.config.highlightSubscribeMe,null)>-1:A.config.highlightSubscribeMe},on:{change:[function(e){var t=A.config.highlightSubscribeMe,i=e.target,n=!!i.checked;if(Array.isArray(t)){var o=A._i(t,null);i.checked?o<0&&A.$set(A.config,"highlightSubscribeMe",t.concat([null])):o>-1&&A.$set(A.config,"highlightSubscribeMe",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"highlightSubscribeMe",n)},A.save]}}),A._v("\n Выделять рамкой тех, кто подписан на меня\n ")]),A._v(" "),A.config.highlightSubscribeMe?t("div",[A._v("Предупреждение: лучше не включать, если подписчиков очень много, возможны\n лаги\n ")]):A._e()]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.superIndex,expression:"config.superIndex"}],attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(A.config.superIndex)?A._i(A.config.superIndex,null)>-1:A.config.superIndex},on:{change:[function(e){var t=A.config.superIndex,i=e.target,n=!!i.checked;if(Array.isArray(t)){var o=A._i(t,null);i.checked?o<0&&A.$set(A.config,"superIndex",t.concat([null])):o>-1&&A.$set(A.config,"superIndex",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"superIndex",n)},A.save]}}),A._v("\n Супер главная\n ")])]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.superChat,expression:"config.superChat"}],attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(A.config.superChat)?A._i(A.config.superChat,null)>-1:A.config.superChat},on:{change:[function(e){var t=A.config.superChat,i=e.target,n=!!i.checked;if(Array.isArray(t)){var o=A._i(t,null);i.checked?o<0&&A.$set(A.config,"superChat",t.concat([null])):o>-1&&A.$set(A.config,"superChat",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"superChat",n)},A.save]}}),A._v("\n Супер чат\n ")])]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.autoSave,expression:"config.autoSave"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(A.config.autoSave)?A._i(A.config.autoSave,null)>-1:A.config.autoSave},on:{change:[function(e){var t=A.config.autoSave,i=e.target,n=!!i.checked;if(Array.isArray(t)){var o=A._i(t,null);i.checked?o<0&&A.$set(A.config,"autoSave",t.concat([null])):o>-1&&A.$set(A.config,"autoSave",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"autoSave",n)},A.save]}}),A._v("\n Автосохранение текста\n ")])]),A._v(" "),A._m(0),A._v(" "),A._m(1)])};U._withStripped=!0;const Q={mounted(){if(this.config=i,i.ignoredMe.length){const A=[];for(const e of i.ignoredMe)A.push(`<a href="/forum/members/.${e.i}/">${e.l}</a>`);this.ignoreMeList=A.join(", ")}i.superIgnoreList.length&&(this.superIgnoreStatus=`В супер игноре ${i.superIgnoreList.length} чел`)},data:()=>({config:[],superIgnoreStatus:null,ignoreMeList:"Тут будет отображатся список людей добавивших Вас в игнор лист. Список сформируется не сразу, загляни сюда чуть позже :)"}),methods:{audioEventPlay(){S.play()},resetEventAudio(){localStorage.removeItem("soundAlert"),S.src=I,S.play()},saveVolume(){this.save(),S.volume=i.eventVolume/100,S.play()},changeAudioFile(A){const e=new FileReader;e.readAsDataURL(A.target.files[0]),e.onload=function(){localStorage.setItem("soundAlert",e.result),S.src=e.result,S.play(),Utils.notify("Звуковое уведомление успешно изменено!")}},save(){n()},async saveSuperIgnore(){i.superIgnore?(this.superIgnoreStatus="Идет загрузка игнорлиста, ожидай..",i.superIgnoreList=await c(),this.superIgnoreStatus=`В супер игноре ${i.superIgnoreList.length} чел`):i.superIgnoreList=[],this.save()}},computed:{config:()=>i}};var B=t(61);g()(B.Z,{insert:"head",singleton:!1}),B.Z.locals;var R=p(Q,U,[function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"item"},[t("label",[t("input",{attrs:{type:"checkbox",checked:"",disabled:""}}),A._v(" Подписаться на разработчика, да бы не упускать уведомления о новых\n версиях\n ")])])},function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"item donate"},[A._v("\n Разработчику скрипта будет очень приятно если ты\n "),t("a",{attrs:{href:"https://my.qiwi.com/Aleksandr-BvB-zXY6cY",target:"_blank"}},[A._v("скинешь ему пару монет на еду (кликабельно)")]),A._v(" "),t("img",{attrs:{src:"https://dota2.ru/img/forum/emoticons/PepeWh.gif"}})])}],!1,null,"26c28905",null);R.options.__file="src/vue/Settings.vue";const Y=R.exports,L=async()=>{const A=f("div");$(".title-global").parent().prepend(A),new Vue({el:A,render:A=>A(Y)})};var W=t(772);g()(W.Z,{insert:"head",singleton:!1}),W.Z.locals;const z=parseInt(localStorage.getItem("subscribeAuthorTime"))||0;new class{constructor(){var e;return.36,(e="version")in this?Object.defineProperty(this,e,{value:.36,enumerable:!0,configurable:!0,writable:!0}):this[e]=.36,(async()=>{const e={"^/$":A,"/forum/conversation/":C,"/forum/forums/(.+?)/create-thread":M,"/forum/members/(.+?)/":T,"/forum/notifications/":E,"/forum/settings/":L,"/forum/threads/":w};for(const A of Object.keys(e))if(new RegExp(A).test(window.location.pathname)){console.log("init",A),e[A]();break}i.soundAlert&&(()=>{S.preload="auto",S.src=localStorage.getItem("soundAlert")||I,S.volume=i.eventVolume/100;const A=io("https://".concat(window.location.hostname),{reconnectionAttempts:10,reconnectionDelay:5e3});console.log("init sound alert"),A.on("notification",(A=>{S.play()}))})();const t=+new Date;z<t&&(await s(474212),await s(818100),localStorage.setItem("subscribeAuthorTime",(t+36e3).toString())),window.superMegaUltraScriptVersion=this.version,localStorage.setItem("superMegaUltraScriptVersion",this.version.toString());const n=document.createElement("span");return n.innerHTML=`<span style='color: #ff2121'>SuperMegaUltraScript v: ${this.version.toString()}</span>`,document.querySelector(".footer__bottom .footer__bottom-wrap.container").appendChild(n),this})()}}})()})();