1 line
61 KiB
JavaScript
1 line
61 KiB
JavaScript
(()=>{"use strict";var __webpack_modules__={525:(t,e,n)=>{n.d(e,{Z:()=>i});const i='<button class="april-fools__button">🎉</button>'},554:(t,e,n)=>{n.d(e,{Z:()=>i});const i='<style class="april-fools__styles">.april-fools__button{position:fixed;bottom:.2rem;right:.2rem;padding:0;font-size:3rem;border:0 solid;background:transparent none;opacity:.3;transition:.4s all;cursor:pointer}.april-fools__button:hover{opacity:1}</style>'},95:(t,e,n)=>{n.d(e,{Z:()=>i});const i='<div class="april-fools__content"> <div class="april-fools__jokes"> </div> </div> <template class="april-fools__template" id="april-fools__window-row"> <input type="checkbox" name="april-fools__joke-${joke.id}" style="display:none"/> <label class="april-fools__joke" for="april-fools__joke-${joke.id}"> <h4 class="april-fools__joke-title">${joke.title}</h4> <p class="april-fools__joke-description">${joke.description}</p> <p class="april-fools__joke-status">Шутка ${joke.settings.enabled ? \'включена\' : \'отключена\'}</p> </label> </template>'},562:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{d:()=>JokerUI});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(311),jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__),_html_button_html__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(525),_html_styles_html__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(554),_html_window_html__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(95),JokerUI=function(){function JokerUI(t){var e=this;this.joker=t,jquery__WEBPACK_IMPORTED_MODULE_0___default()('link[rel="stylesheet"]').eq(0).before(_html_styles_html__WEBPACK_IMPORTED_MODULE_1__.Z);var n=this.button;n.hide(),n.mybbModal({title:"Настройки первоапрельских шуток",content:function(){return e.render()},closer:!0,noscroll:!0,escClose:!0})}return Object.defineProperty(JokerUI.prototype,"button",{get:function(){var t=jquery__WEBPACK_IMPORTED_MODULE_0___default()(".april-fools__button");return 0===t.length&&(t=jquery__WEBPACK_IMPORTED_MODULE_0___default()(_html_button_html__WEBPACK_IMPORTED_MODULE_2__.Z).appendTo("body")),t},enumerable:!1,configurable:!0}),JokerUI.prototype.show=function(){this.button.show()},JokerUI.prototype.render=function(){for(var result=jquery__WEBPACK_IMPORTED_MODULE_0___default()("<div></div>").html(_html_window_html__WEBPACK_IMPORTED_MODULE_3__.Z),row_template=jquery__WEBPACK_IMPORTED_MODULE_0___default()("#april-fools__window-row",result).html(),joke_container=jquery__WEBPACK_IMPORTED_MODULE_0___default()(".april-fools__jokes",result),_i=0,_a=Object.values(this.joker.jokes);_i<_a.length;_i++){var joke=_a[_i],row=jquery__WEBPACK_IMPORTED_MODULE_0___default()(eval("`"+row_template+"`"));jquery__WEBPACK_IMPORTED_MODULE_0___default()('input[type="checkbox"]',row).prop("checked",joke.settings.enabled),joke_container.append(row)}return jquery__WEBPACK_IMPORTED_MODULE_0___default()(".april-fools__content",result)},JokerUI}()},311:t=>{t.exports=jQuery},442:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.bubbleCursor=function(t){let e,n,i,o=t&&t.element,r=o||document.body,s=window.innerWidth,c=window.innerHeight,a={x:s/2,y:s/2},l=[],h=[];const u=window.matchMedia("(prefers-reduced-motion: reduce)");function d(){if(u.matches)return console.log("This browser has prefers reduced motion turned on, so the cursor did not init"),!1;e=document.createElement("canvas"),n=e.getContext("2d"),e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",o?(e.style.position="absolute",r.appendChild(e),e.width=r.clientWidth,e.height=r.clientHeight):(e.style.position="fixed",document.body.appendChild(e),e.width=s,e.height=c),r.addEventListener("mousemove",g),r.addEventListener("touchmove",f,{passive:!0}),r.addEventListener("touchstart",f,{passive:!0}),window.addEventListener("resize",p),A()}function p(t){s=window.innerWidth,c=window.innerHeight,o?(e.width=r.clientWidth,e.height=r.clientHeight):(e.width=s,e.height=c)}function f(t){if(t.touches.length>0)for(let e=0;e<t.touches.length;e++)y(t.touches[e].clientX,t.touches[e].clientY,h[Math.floor(Math.random()*h.length)])}function g(t){if(o){const e=r.getBoundingClientRect();a.x=t.clientX-e.left,a.y=t.clientY-e.top}else a.x=t.clientX,a.y=t.clientY;y(a.x,a.y)}function y(t,e,n){l.push(new w(t,e,n))}function A(){!function(){if(0!=l.length){n.clearRect(0,0,s,c);for(let t=0;t<l.length;t++)l[t].update(n);for(let t=l.length-1;t>=0;t--)l[t].lifeSpan<0&&l.splice(t,1);0==l.length&&n.clearRect(0,0,s,c)}}(),i=requestAnimationFrame(A)}function m(){e.remove(),cancelAnimationFrame(i),r.removeEventListener("mousemove",g),r.removeEventListener("touchmove",f),r.removeEventListener("touchstart",f),window.addEventListener("resize",p)}function w(t,e,n){const i=Math.floor(60*Math.random()+60);this.initialLifeSpan=i,this.lifeSpan=i,this.velocity={x:(Math.random()<.5?-1:1)*(Math.random()/10),y:-1*Math.random()-.4},this.position={x:t,y:e},this.canv=n,this.baseDimension=4,this.update=function(t){this.position.x+=this.velocity.x,this.position.y+=this.velocity.y,this.velocity.x+=2*(Math.random()<.5?-1:1)/75,this.velocity.y-=Math.random()/600,this.lifeSpan--;const e=.2+(this.initialLifeSpan-this.lifeSpan)/this.initialLifeSpan;t.fillStyle="#e6f1f7",t.strokeStyle="#3a92c5",t.beginPath(),t.arc(this.position.x-this.baseDimension/2*e,this.position.y-this.baseDimension/2,this.baseDimension*e,0,2*Math.PI),t.stroke(),t.fill(),t.closePath()}}return u.onchange=()=>{u.matches?m():d()},d(),{destroy:m}},e.clockCursor=function(t){let e,n,i,o=t&&t.element,r=o||document.body,s=window.innerWidth,c=window.innerHeight,a={x:s/2,y:s/2};const l=t&&t.dateColor||"blue",h=t&&t.faceColor||"black",u=t&&t.secondsColor||"red",d=t&&t.minutesColor||"black",p=t&&t.hoursColor||"black",f=.4;let g=new Date,y=g.getDate(),A=g.getYear()+1900;const m=(" "+["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"][g.getDay()]+" "+y+" "+["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"][g.getMonth()]+" "+A).split(""),w=["3","4","5","6","7","8","9","10","11","12","1","2"],v=w.length,_=["•","•","•"],x=["•","•","•","•"],b=["•","•","•","•","•"],E=360/v,C=360/m.length,M=45/6.5,O=[],j=[],L=[],k=[],B=[],R=[],S=[],D=[],T=[];var P=parseInt(m.length+v+_.length+x.length+b.length)+1;const I=window.matchMedia("(prefers-reduced-motion: reduce)");function W(){if(I.matches)return console.log("This browser has prefers reduced motion turned on, so the cursor did not init"),!1;e=document.createElement("canvas"),n=e.getContext("2d"),e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",o?(e.style.position="absolute",r.appendChild(e),e.width=r.clientWidth,e.height=r.clientHeight):(e.style.position="fixed",document.body.appendChild(e),e.width=s,e.height=c),n.font="10px sans-serif",n.textAlign="center",n.textBaseline="middle";for(let t=0;t<P;t++)O[t]=0,j[t]=0,L[t]=0,k[t]=0;for(let t=0;t<m.length;t++)T[t]={color:l,value:m[t]};for(let t=0;t<w.length;t++)D[t]={color:h,value:w[t]};for(let t=0;t<_.length;t++)S[t]={color:p,value:_[t]};for(let t=0;t<x.length;t++)R[t]={color:d,value:x[t]};for(let t=0;t<b.length;t++)B[t]={color:u,value:b[t]};r.addEventListener("mousemove",F),r.addEventListener("touchmove",H,{passive:!0}),r.addEventListener("touchstart",H,{passive:!0}),window.addEventListener("resize",Y),X()}function Y(t){s=window.innerWidth,c=window.innerHeight,o?(e.width=r.clientWidth,e.height=r.clientHeight):(e.width=s,e.height=c)}function H(t){if(t.touches.length>0)if(o){const e=r.getBoundingClientRect();a.x=t.touches[0].clientX-e.left,a.y=t.touches[0].clientY-e.top}else a.x=t.touches[0].clientX,a.y=t.touches[0].clientY}function F(t){if(o){const e=r.getBoundingClientRect();a.x=t.clientX-e.left,a.y=t.clientY-e.top}else a.x=t.clientX,a.y=t.clientY}function X(){!function(){L[0]=Math.round(O[0]+=(a.y-O[0])*f),k[0]=Math.round(j[0]+=(a.x-j[0])*f);for(let t=1;t<P;t++)L[t]=Math.round(O[t]+=(L[t-1]-O[t])*f),k[t]=Math.round(j[t]+=(k[t-1]-j[t])*f),O[t-1]>=c-80&&(O[t-1]=c-80),j[t-1]>=s-80&&(j[t-1]=s-80)}(),function(){n.clearRect(0,0,s,c);const t=new Date,e=t.getSeconds(),i=Math.PI*(e-15)/30,o=t.getMinutes(),r=Math.PI*(o-15)/30,a=t.getHours(),l=Math.PI*(a-3)/6+Math.PI*parseInt(t.getMinutes())/360;for(let t=0;t<T.length;t++)T[t].y=O[t]+67.5*Math.sin(-i+t*C*Math.PI/180),T[t].x=j[t]+67.5*Math.cos(-i+t*C*Math.PI/180),n.fillStyle=T[t].color,n.fillText(T[t].value,T[t].x,T[t].y);for(let t=0;t<D.length;t++)D[t].y=O[T.length+t]+45*Math.sin(t*E*Math.PI/180),D[t].x=j[T.length+t]+45*Math.cos(t*E*Math.PI/180),n.fillStyle=D[t].color,n.fillText(D[t].value,D[t].x,D[t].y);for(let t=0;t<S.length;t++)S[t].y=O[T.length+v+t]+0+t*M*Math.sin(l),S[t].x=j[T.length+v+t]+0+t*M*Math.cos(l),n.fillStyle=S[t].color,n.fillText(S[t].value,S[t].x,S[t].y);for(let t=0;t<R.length;t++)R[t].y=O[T.length+v+S.length+t]+0+t*M*Math.sin(r),R[t].x=j[T.length+v+S.length+t]+0+t*M*Math.cos(r),n.fillStyle=R[t].color,n.fillText(R[t].value,R[t].x,R[t].y);for(let t=0;t<B.length;t++)B[t].y=O[T.length+v+S.length+R.length+t]+0+t*M*Math.sin(i),B[t].x=j[T.length+v+S.length+R.length+t]+0+t*M*Math.cos(i),n.fillStyle=B[t].color,n.fillText(B[t].value,B[t].x,B[t].y)}(),i=requestAnimationFrame(X)}function U(){e.remove(),cancelAnimationFrame(i),r.removeEventListener("mousemove",F),r.removeEventListener("touchmove",H),r.removeEventListener("touchstart",H),window.addEventListener("resize",Y)}return I.onchange=()=>{I.matches?U():W()},W(),{destroy:U}},e.emojiCursor=function(t){const e=t&&t.emoji||["😀","😂","😆","😊"];let n=t&&t.element,i=n||document.body,o=window.innerWidth,r=window.innerHeight;const s={x:o/2,y:o/2},c={x:o/2,y:o/2};let a=0;const l=[],h=[];let u,d,p;const f=window.matchMedia("(prefers-reduced-motion: reduce)");function g(){if(f.matches)return console.log("This browser has prefers reduced motion turned on, so the cursor did not init"),!1;u=document.createElement("canvas"),d=u.getContext("2d"),u.style.top="0px",u.style.left="0px",u.style.pointerEvents="none",n?(u.style.position="absolute",i.appendChild(u),u.width=i.clientWidth,u.height=i.clientHeight):(u.style.position="fixed",document.body.appendChild(u),u.width=o,u.height=r),d.font="21px serif",d.textBaseline="middle",d.textAlign="center",e.forEach((t=>{let e=d.measureText(t),n=document.createElement("canvas"),i=n.getContext("2d");n.width=e.width,n.height=2*e.actualBoundingBoxAscent,i.textAlign="center",i.font="21px serif",i.textBaseline="middle",i.fillText(t,n.width/2,e.actualBoundingBoxAscent),h.push(n)})),i.addEventListener("mousemove",m,{passive:!0}),i.addEventListener("touchmove",A,{passive:!0}),i.addEventListener("touchstart",A,{passive:!0}),window.addEventListener("resize",y),v()}function y(t){o=window.innerWidth,r=window.innerHeight,n?(u.width=i.clientWidth,u.height=i.clientHeight):(u.width=o,u.height=r)}function A(t){if(t.touches.length>0)for(let e=0;e<t.touches.length;e++)w(t.touches[e].clientX,t.touches[e].clientY,h[Math.floor(Math.random()*h.length)])}function m(t){t.timeStamp-a<16||window.requestAnimationFrame((()=>{if(n){const e=i.getBoundingClientRect();s.x=t.clientX-e.left,s.y=t.clientY-e.top}else s.x=t.clientX,s.y=t.clientY;Math.hypot(s.x-c.x,s.y-c.y)>1&&(w(s.x,s.y,h[Math.floor(Math.random()*e.length)]),c.x=s.x,c.y=s.y,a=t.timeStamp)}))}function w(t,e,n){l.push(new x(t,e,n))}function v(){!function(){if(0!=l.length){d.clearRect(0,0,o,r);for(let t=0;t<l.length;t++)l[t].update(d);for(let t=l.length-1;t>=0;t--)l[t].lifeSpan<0&&l.splice(t,1);0==l.length&&d.clearRect(0,0,o,r)}}(),p=requestAnimationFrame(v)}function _(){u.remove(),cancelAnimationFrame(p),i.removeEventListener("mousemove",m),i.removeEventListener("touchmove",A),i.removeEventListener("touchstart",A),window.addEventListener("resize",y)}function x(t,e,n){const i=Math.floor(60*Math.random()+80);this.initialLifeSpan=i,this.lifeSpan=i,this.velocity={x:(Math.random()<.5?-1:1)*(Math.random()/2),y:.4*Math.random()+.8},this.position={x:t,y:e},this.canv=n,this.update=function(t){this.position.x+=this.velocity.x,this.position.y+=this.velocity.y,this.lifeSpan--,this.velocity.y+=.05;const e=Math.max(this.lifeSpan/this.initialLifeSpan,0);t.drawImage(this.canv,this.position.x-this.canv.width/2*e,this.position.y-this.canv.height/2,this.canv.width*e,this.canv.height*e)}}return f.onchange=()=>{f.matches?_():g()},g(),{destroy:_}},e.fairyDustCursor=function(t){let e=t&&t.colors||["#D61C59","#E7D84B","#1B8798"],n=t&&t.element,i=n||document.body,o=window.innerWidth,r=window.innerHeight;const s={x:o/2,y:o/2},c={x:o/2,y:o/2},a=[],l=[];let h,u,d;const p=window.matchMedia("(prefers-reduced-motion: reduce)");function f(){if(p.matches)return console.log("This browser has prefers reduced motion turned on, so the cursor did not init"),!1;h=document.createElement("canvas"),u=h.getContext("2d"),h.style.top="0px",h.style.left="0px",h.style.pointerEvents="none",n?(h.style.position="absolute",i.appendChild(h),h.width=i.clientWidth,h.height=i.clientHeight):(h.style.position="fixed",i.appendChild(h),h.width=o,h.height=r),u.font="21px serif",u.textBaseline="middle",u.textAlign="center",e.forEach((t=>{let e=u.measureText("*"),n=document.createElement("canvas"),i=n.getContext("2d");n.width=e.width,n.height=e.actualBoundingBoxAscent+e.actualBoundingBoxDescent,i.fillStyle=t,i.textAlign="center",i.font="21px serif",i.textBaseline="middle",i.fillText("*",n.width/2,e.actualBoundingBoxAscent),l.push(n)})),i.addEventListener("mousemove",A),i.addEventListener("touchmove",y,{passive:!0}),i.addEventListener("touchstart",y,{passive:!0}),window.addEventListener("resize",g),w()}function g(t){o=window.innerWidth,r=window.innerHeight,n?(h.width=i.clientWidth,h.height=i.clientHeight):(h.width=o,h.height=r)}function y(t){if(t.touches.length>0)for(let e=0;e<t.touches.length;e++)m(t.touches[e].clientX,t.touches[e].clientY,l[Math.floor(Math.random()*l.length)])}function A(t){window.requestAnimationFrame((()=>{if(n){const e=i.getBoundingClientRect();s.x=t.clientX-e.left,s.y=t.clientY-e.top}else s.x=t.clientX,s.y=t.clientY;Math.hypot(s.x-c.x,s.y-c.y)>1.5&&(m(s.x,s.y,l[Math.floor(Math.random()*e.length)]),c.x=s.x,c.y=s.y)}))}function m(t,e,n){a.push(new _(t,e,n))}function w(){!function(){if(0!=a.length){u.clearRect(0,0,o,r);for(let t=0;t<a.length;t++)a[t].update(u);for(let t=a.length-1;t>=0;t--)a[t].lifeSpan<0&&a.splice(t,1);0==a.length&&u.clearRect(0,0,o,r)}}(),d=requestAnimationFrame(w)}function v(){h.remove(),cancelAnimationFrame(d),i.removeEventListener("mousemove",A),i.removeEventListener("touchmove",y),i.removeEventListener("touchstart",y),window.addEventListener("resize",g)}function _(t,e,n){const i=Math.floor(30*Math.random()+60);this.initialLifeSpan=i,this.lifeSpan=i,this.velocity={x:(Math.random()<.5?-1:1)*(Math.random()/2),y:.7*Math.random()+.9},this.position={x:t,y:e},this.canv=n,this.update=function(t){this.position.x+=this.velocity.x,this.position.y+=this.velocity.y,this.lifeSpan--,this.velocity.y+=.02;const e=Math.max(this.lifeSpan/this.initialLifeSpan,0);t.drawImage(this.canv,this.position.x-this.canv.width/2*e,this.position.y-this.canv.height/2,this.canv.width*e,this.canv.height*e)}}return p.onchange=()=>{p.matches?v():f()},f(),{destroy:v}},e.followingDotCursor=function(t){let e,n,i=t&&t.element,o=i||document.body,r=window.innerWidth,s=window.innerHeight,c={x:r/2,y:r/2},a=new function(t,e,n,i){this.position={x:t,y:e},this.width=10,this.lag=10,this.moveTowards=function(t,e,n){this.position.x+=(t-this.position.x)/this.lag,this.position.y+=(e-this.position.y)/this.lag,n.fillStyle=l,n.beginPath(),n.arc(this.position.x,this.position.y,this.width,0,2*Math.PI),n.fill(),n.closePath()}}(r/2,s/2,10,10),l=t?.color||"#323232a6";const h=window.matchMedia("(prefers-reduced-motion: reduce)");function u(){if(h.matches)return console.log("This browser has prefers reduced motion turned on, so the cursor did not init"),!1;e=document.createElement("canvas"),n=e.getContext("2d"),e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",i?(e.style.position="absolute",o.appendChild(e),e.width=o.clientWidth,e.height=o.clientHeight):(e.style.position="fixed",document.body.appendChild(e),e.width=r,e.height=s),o.addEventListener("mousemove",p),window.addEventListener("resize",d),f()}function d(t){r=window.innerWidth,s=window.innerHeight,i?(e.width=o.clientWidth,e.height=o.clientHeight):(e.width=r,e.height=s)}function p(t){if(i){const e=o.getBoundingClientRect();c.x=t.clientX-e.left,c.y=t.clientY-e.top}else c.x=t.clientX,c.y=t.clientY}function f(){n.clearRect(0,0,r,s),a.moveTowards(c.x,c.y,n),requestAnimationFrame(f)}function g(){e.remove(),cancelAnimationFrame(f),o.removeEventListener("mousemove",p),window.addEventListener("resize",d)}return h.onchange=()=>{h.matches?g():u()},u(),{destroy:g}},e.ghostCursor=function(t){let e,n,i,o=t&&t.element,r=o||document.body,s=window.innerWidth,c=window.innerHeight,a={x:s/2,y:s/2},l=[],h=new Image;h.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAATCAYAAACk9eypAAAAAXNSR0IArs4c6QAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAhGVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAh2kABAAAAAEAAABaAAAAAAAAAEgAAAABAAAASAAAAAEAA6ABAAMAAAABAAEAAKACAAQAAAABAAAADKADAAQAAAABAAAAEwAAAAAChpcNAAAACXBIWXMAAAsTAAALEwEAmpwYAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgpMwidZAAABqElEQVQoFY3SPUvDQBgH8BREpRHExYiDgmLFl6WC+AYmWeyLg4i7buJX8DMpOujgyxGvUYeCgzhUQUSKKLUS0+ZyptXh8Z5Ti621ekPyJHl+uftfomhaf9Ei5JyxXKfynyEA6EYcLHpwyflT958GAQ7DTABNHd8EbtDbEH2BD5QEQmi2mM8P/Iq+A0SzszEg+3sPjDnDdVEtQKQbMUidHD3xVzf6A9UDEmEm+8h9KTqTVUjT+vB53aHrCbAPiceYq1dQI1Aqv4EhMll0jzv+Y0yiRgCnLRSYyDQHVoqUXe4uKL9l+L7GXC4vkMhE6eW/AOJs9k583ORDUyXMZ8F5SVHVVnllmPNKSFagAJ5DofaqGXw/gHBYg51dIldkmknY3tguv3jOtHR4+MqAzaraJXbEhqHhcQlwGSOi5pytVQHZLN5s0WNe8HPrLYlFsO20RPHkImxsbmHdLJFI76th7Z4SeuF53hTeFLvhRCJRCTKZKxgdnRDbW+iozFJbBMw14/ElwGYc0egMBMFzT21f5Rog33Z7dX02GBm7WV5ZfT5Nn5bE3zuCDe9UxdTpNvK+5AAAAABJRU5ErkJggg==";const u=window.matchMedia("(prefers-reduced-motion: reduce)");function d(){if(u.matches)return console.log("This browser has prefers reduced motion turned on, so the cursor did not init"),!1;e=document.createElement("canvas"),n=e.getContext("2d"),e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",o?(e.style.position="absolute",r.appendChild(e),e.width=r.clientWidth,e.height=r.clientHeight):(e.style.position="fixed",document.body.appendChild(e),e.width=s,e.height=c),r.addEventListener("mousemove",g),r.addEventListener("touchmove",f,{passive:!0}),r.addEventListener("touchstart",f,{passive:!0}),window.addEventListener("resize",p),A()}function p(t){s=window.innerWidth,c=window.innerHeight,o?(e.width=r.clientWidth,e.height=r.clientHeight):(e.width=s,e.height=c)}function f(t){if(t.touches.length>0)for(let e=0;e<t.touches.length;e++)y(t.touches[e].clientX,t.touches[e].clientY,h)}function g(t){if(o){const e=r.getBoundingClientRect();a.x=t.clientX-e.left,a.y=t.clientY-e.top}else a.x=t.clientX,a.y=t.clientY;y(a.x,a.y,h)}function y(t,e,n){l.push(new w(t,e,n))}function A(){!function(){if(0!=l.length){n.clearRect(0,0,s,c);for(let t=0;t<l.length;t++)l[t].update(n);for(let t=l.length-1;t>=0;t--)l[t].lifeSpan<0&&l.splice(t,1);0==l.length&&n.clearRect(0,0,s,c)}}(),i=requestAnimationFrame(A)}function m(){e.remove(),cancelAnimationFrame(i),r.removeEventListener("mousemove",g),r.removeEventListener("touchmove",f),r.removeEventListener("touchstart",f),window.addEventListener("resize",p)}function w(t,e,n){this.initialLifeSpan=40,this.lifeSpan=40,this.position={x:t,y:e},this.image=n,this.update=function(t){this.lifeSpan--;const e=Math.max(this.lifeSpan/this.initialLifeSpan,0);t.globalAlpha=e,t.drawImage(this.image,this.position.x,this.position.y)}}return u.onchange=()=>{u.matches?m():d()},d(),{destroy:m}},e.rainbowCursor=function(t){let e,n,i,o=t&&t.element,r=o||document.body,s=window.innerWidth,c=window.innerHeight,a={x:s/2,y:s/2},l=[];const h=t?.length||20,u=t?.colors||["#FE0000","#FD8C00","#FFE500","#119F0B","#0644B3","#C22EDC"],d=t?.size||3;let p=!1;const f=window.matchMedia("(prefers-reduced-motion: reduce)");function g(){if(f.matches)return console.log("This browser has prefers reduced motion turned on, so the cursor did not init"),!1;e=document.createElement("canvas"),n=e.getContext("2d"),e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",o?(e.style.position="absolute",r.appendChild(e),e.width=r.clientWidth,e.height=r.clientHeight):(e.style.position="fixed",document.body.appendChild(e),e.width=s,e.height=c),r.addEventListener("mousemove",A),window.addEventListener("resize",y),m()}function y(t){s=window.innerWidth,c=window.innerHeight,o?(e.width=r.clientWidth,e.height=r.clientHeight):(e.width=s,e.height=c)}function A(t){if(o){const e=r.getBoundingClientRect();a.x=t.clientX-e.left,a.y=t.clientY-e.top}else a.x=t.clientX,a.y=t.clientY;if(!1===p){p=!0;for(let t=0;t<h;t++)e=a.x,n=a.y,l.push(new v(e,n))}var e,n}function m(){!function(){n.clearRect(0,0,s,c),n.lineJoin="round";let t=[],e=a.x,i=a.y;l.forEach((function(n,o,r){let s=r[o+1]||r[0];n.position.x=e,n.position.y=i,t.push({x:e,y:i}),e+=.4*(s.position.x-n.position.x),i+=.4*(s.position.y-n.position.y)})),u.forEach(((e,i)=>{n.beginPath(),n.strokeStyle=e,t.length&&n.moveTo(t[0].x,t[0].y+i*(d-1)),t.forEach(((t,e)=>{0!==e&&n.lineTo(t.x,t.y+i*d)})),n.lineWidth=d,n.lineCap="round",n.stroke()}))}(),i=requestAnimationFrame(m)}function w(){e.remove(),cancelAnimationFrame(i),r.removeEventListener("mousemove",A),window.addEventListener("resize",y)}function v(t,e){this.position={x:t,y:e}}return f.onchange=()=>{f.matches?w():g()},g(),{destroy:w}},e.snowflakeCursor=function(t){let e,n,i,o=t&&t.element,r=o||document.body,s=["❄️"],c=window.innerWidth,a=window.innerHeight,l={x:c/2,y:c/2},h=[],u=[];const d=window.matchMedia("(prefers-reduced-motion: reduce)");function p(){if(d.matches)return console.log("This browser has prefers reduced motion turned on, so the cursor did not init"),!1;e=document.createElement("canvas"),n=e.getContext("2d"),e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",o?(e.style.position="absolute",r.appendChild(e),e.width=r.clientWidth,e.height=r.clientHeight):(e.style.position="fixed",document.body.appendChild(e),e.width=c,e.height=a),n.font="12px serif",n.textBaseline="middle",n.textAlign="center",s.forEach((t=>{let e=n.measureText(t),i=document.createElement("canvas"),o=i.getContext("2d");i.width=e.width,i.height=2*e.actualBoundingBoxAscent,o.textAlign="center",o.font="12px serif",o.textBaseline="middle",o.fillText(t,i.width/2,e.actualBoundingBoxAscent),u.push(i)})),r.addEventListener("mousemove",y),r.addEventListener("touchmove",g,{passive:!0}),r.addEventListener("touchstart",g,{passive:!0}),window.addEventListener("resize",f),m()}function f(t){c=window.innerWidth,a=window.innerHeight,o?(e.width=r.clientWidth,e.height=r.clientHeight):(e.width=c,e.height=a)}function g(t){if(t.touches.length>0)for(let e=0;e<t.touches.length;e++)A(t.touches[e].clientX,t.touches[e].clientY,u[Math.floor(Math.random()*u.length)])}function y(t){if(o){const e=r.getBoundingClientRect();l.x=t.clientX-e.left,l.y=t.clientY-e.top}else l.x=t.clientX,l.y=t.clientY;A(l.x,l.y,u[Math.floor(Math.random()*s.length)])}function A(t,e,n){h.push(new v(t,e,n))}function m(){!function(){if(0!=h.length){n.clearRect(0,0,c,a);for(let t=0;t<h.length;t++)h[t].update(n);for(let t=h.length-1;t>=0;t--)h[t].lifeSpan<0&&h.splice(t,1);0==h.length&&n.clearRect(0,0,c,a)}}(),i=requestAnimationFrame(m)}function w(){e.remove(),cancelAnimationFrame(i),r.removeEventListener("mousemove",y),r.removeEventListener("touchmove",g),r.removeEventListener("touchstart",g),window.addEventListener("resize",f)}function v(t,e,n){const i=Math.floor(60*Math.random()+80);this.initialLifeSpan=i,this.lifeSpan=i,this.velocity={x:(Math.random()<.5?-1:1)*(Math.random()/2),y:1+Math.random()},this.position={x:t,y:e},this.canv=n,this.update=function(t){this.position.x+=this.velocity.x,this.position.y+=this.velocity.y,this.lifeSpan--,this.velocity.x+=2*(Math.random()<.5?-1:1)/75,this.velocity.y-=Math.random()/300;const e=Math.max(this.lifeSpan/this.initialLifeSpan,0),n=2*this.lifeSpan*.0174533;t.translate(this.position.x,this.position.y),t.rotate(n),t.drawImage(this.canv,-this.canv.width/2*e,-this.canv.height/2,this.canv.width*e,this.canv.height*e),t.rotate(-n),t.translate(-this.position.x,-this.position.y)}}return d.onchange=()=>{d.matches?w():p()},p(),{destroy:w}},e.springyEmojiCursor=function(t){let e,n,i,o,r=t&&t.emoji||"🤪",s=t&&t.element,c=s||document.body,a=window.innerWidth,l=window.innerHeight,h={x:a/2,y:a/2},u=[];const d=window.matchMedia("(prefers-reduced-motion: reduce)");function p(){if(d.matches)return console.log("This browser has prefers reduced motion turned on, so the cursor did not init"),!1;e=document.createElement("canvas"),n=e.getContext("2d"),e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",s?(e.style.position="absolute",c.appendChild(e),e.width=c.clientWidth,e.height=c.clientHeight):(e.style.position="fixed",document.body.appendChild(e),e.width=a,e.height=l),n.font="16px serif",n.textBaseline="middle",n.textAlign="center";let t=n.measureText(r),i=document.createElement("canvas"),h=i.getContext("2d");i.width=t.width,i.height=2*t.actualBoundingBoxAscent,h.textAlign="center",h.font="16px serif",h.textBaseline="middle",h.fillText(r,i.width/2,t.actualBoundingBoxAscent),o=i;let p=0;for(p=0;p<7;p++)u[p]=new _(o);c.addEventListener("mousemove",y),c.addEventListener("touchmove",g,{passive:!0}),c.addEventListener("touchstart",g,{passive:!0}),window.addEventListener("resize",f),A()}function f(t){a=window.innerWidth,l=window.innerHeight,s?(e.width=c.clientWidth,e.height=c.clientHeight):(e.width=a,e.height=l)}function g(t){if(t.touches.length>0)if(s){const e=c.getBoundingClientRect();h.x=t.touches[0].clientX-e.left,h.y=t.touches[0].clientY-e.top}else h.x=t.touches[0].clientX,h.y=t.touches[0].clientY}function y(t){if(s){const e=c.getBoundingClientRect();h.x=t.clientX-e.left,h.y=t.clientY-e.top}else h.x=t.clientX,h.y=t.clientY}function A(){!function(){e.width=e.width,u[0].position.x=h.x,u[0].position.y=h.y;for(let t=1;t<7;t++){let i=new w(0,0);t>0&&v(t-1,t,i),t<6&&v(t+1,t,i);let o,r,s=new w(10*-u[t].velocity.x,10*-u[t].velocity.y),c=new w((i.X+s.X)/1,(i.Y+s.Y)/1+50);u[t].velocity.x+=.01*c.X,u[t].velocity.y+=.01*c.Y,Math.abs(u[t].velocity.x)<.1&&Math.abs(u[t].velocity.y)<.1&&Math.abs(c.X)<.1&&Math.abs(c.Y)<.1&&(u[t].velocity.x=0,u[t].velocity.y=0),u[t].position.x+=u[t].velocity.x,u[t].position.y+=u[t].velocity.y,o=e.clientHeight,r=e.clientWidth,u[t].position.y>=o-11-1&&(u[t].velocity.y>0&&(u[t].velocity.y=.7*-u[t].velocity.y),u[t].position.y=o-11-1),u[t].position.x>=r-11&&(u[t].velocity.x>0&&(u[t].velocity.x=.7*-u[t].velocity.x),u[t].position.x=r-11-1),u[t].position.x<0&&(u[t].velocity.x<0&&(u[t].velocity.x=.7*-u[t].velocity.x),u[t].position.x=0),u[t].draw(n)}}(),i=requestAnimationFrame(A)}function m(){e.remove(),cancelAnimationFrame(i),c.removeEventListener("mousemove",y),c.removeEventListener("touchmove",g),c.removeEventListener("touchstart",g),window.addEventListener("resize",f)}function w(t,e){this.X=t,this.Y=e}function v(t,e,n){let i=u[t].position.x-u[e].position.x,o=u[t].position.y-u[e].position.y,r=Math.sqrt(i*i+o*o);if(r>10){let t=10*(r-10);n.X+=i/r*t,n.Y+=o/r*t}}function _(t){this.position={x:h.x,y:h.y},this.velocity={x:0,y:0},this.canv=t,this.draw=function(t){t.drawImage(this.canv,this.position.x-this.canv.width/2,this.position.y-this.canv.height/2,this.canv.width,this.canv.height)}}return d.onchange=()=>{d.matches?m():p()},p(),{destroy:m}},e.textFlag=function(t){let e,n,i,o=t||{},r=t&&t.element,s=r||document.body,c=o.text?" "+t.text:" Your Text Here",a=o.font||"monospace",l=o.textSize||12,h=l+"px "+a,u=o.gap||l+2,d=0,p=[],f=window.innerWidth,g=window.innerHeight,y={x:f/2,y:f/2};for(let t=0;t<c.length;t++)p[t]={letter:c.charAt(t),x:f/2,y:f/2};t?.size;const A=window.matchMedia("(prefers-reduced-motion: reduce)");function m(){if(A.matches)return console.log("This browser has prefers reduced motion turned on, so the cursor did not init"),!1;e=document.createElement("canvas"),n=e.getContext("2d"),e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",r?(e.style.position="absolute",s.appendChild(e),e.width=s.clientWidth,e.height=s.clientHeight):(e.style.position="fixed",document.body.appendChild(e),e.width=f,e.height=g),s.addEventListener("mousemove",v),window.addEventListener("resize",w),_()}function w(t){f=window.innerWidth,g=window.innerHeight,r?(e.width=s.clientWidth,e.height=s.clientHeight):(e.width=f,e.height=g)}function v(t){if(r){const e=s.getBoundingClientRect();y.x=t.clientX-e.left,y.y=t.clientY-e.top}else y.x=t.clientX,y.y=t.clientY}function _(){!function(){n.clearRect(0,0,f,g),d+=.15;let t=2*Math.cos(d),e=5*Math.sin(d);for(let t=p.length-1;t>0;t--)p[t].x=p[t-1].x+u,p[t].y=p[t-1].y,n.font=h,n.fillText(p[t].letter,p[t].x,p[t].y);let i=p[0].x,o=p[0].y;i+=(y.x-i)/5+t+2,o+=(y.y-o)/5+e,p[0].x=i,p[0].y=o}(),i=requestAnimationFrame(_)}function x(){e.remove(),cancelAnimationFrame(i),s.removeEventListener("mousemove",v),window.addEventListener("resize",w)}return A.onchange=()=>{A.matches?x():m()},m(),{destroy:x}},e.trailingCursor=function(t){let e,n,i,o=t&&t.element,r=o||document.body,s=window.innerWidth,c=window.innerHeight,a={x:s/2,y:s/2},l=[];const h=t?.particles||15,u=t?.rate||.4,d=t?.baseImageSrc||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAATCAYAAACk9eypAAAAAXNSR0IArs4c6QAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAhGVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAh2kABAAAAAEAAABaAAAAAAAAAEgAAAABAAAASAAAAAEAA6ABAAMAAAABAAEAAKACAAQAAAABAAAADKADAAQAAAABAAAAEwAAAAAChpcNAAAACXBIWXMAAAsTAAALEwEAmpwYAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgpMwidZAAABqElEQVQoFY3SPUvDQBgH8BREpRHExYiDgmLFl6WC+AYmWeyLg4i7buJX8DMpOujgyxGvUYeCgzhUQUSKKLUS0+ZyptXh8Z5Ti621ekPyJHl+uftfomhaf9Ei5JyxXKfynyEA6EYcLHpwyflT958GAQ7DTABNHd8EbtDbEH2BD5QEQmi2mM8P/Iq+A0SzszEg+3sPjDnDdVEtQKQbMUidHD3xVzf6A9UDEmEm+8h9KTqTVUjT+vB53aHrCbAPiceYq1dQI1Aqv4EhMll0jzv+Y0yiRgCnLRSYyDQHVoqUXe4uKL9l+L7GXC4vkMhE6eW/AOJs9k583ORDUyXMZ8F5SVHVVnllmPNKSFagAJ5DofaqGXw/gHBYg51dIldkmknY3tguv3jOtHR4+MqAzaraJXbEhqHhcQlwGSOi5pytVQHZLN5s0WNe8HPrLYlFsO20RPHkImxsbmHdLJFI76th7Z4SeuF53hTeFLvhRCJRCTKZKxgdnRDbW+iozFJbBMw14/ElwGYc0egMBMFzT21f5Rog33Z7dX02GBm7WV5ZfT5Nn5bE3zuCDe9UxdTpNvK+5AAAAABJRU5ErkJggg==";let p=!1,f=new Image;f.src=d;const g=window.matchMedia("(prefers-reduced-motion: reduce)");function y(){if(g.matches)return console.log("This browser has prefers reduced motion turned on, so the cursor did not init"),!1;e=document.createElement("canvas"),n=e.getContext("2d"),e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",o?(e.style.position="absolute",r.appendChild(e),e.width=r.clientWidth,e.height=r.clientHeight):(e.style.position="fixed",document.body.appendChild(e),e.width=s,e.height=c),r.addEventListener("mousemove",m),window.addEventListener("resize",A),w()}function A(t){s=window.innerWidth,c=window.innerHeight,o?(e.width=r.clientWidth,e.height=r.clientHeight):(e.width=s,e.height=c)}function m(t){if(o){const e=r.getBoundingClientRect();a.x=t.clientX-e.left,a.y=t.clientY-e.top}else a.x=t.clientX,a.y=t.clientY;if(!1===p){p=!0;for(let t=0;t<h;t++)e=a.x,n=a.y,i=f,l.push(new _(e,n,i))}var e,n,i}function w(){!function(){n.clearRect(0,0,s,c);let t=a.x,e=a.y;l.forEach((function(i,o,r){let s=r[o+1]||r[0];i.position.x=t,i.position.y=e,i.move(n),t+=(s.position.x-i.position.x)*u,e+=(s.position.y-i.position.y)*u}))}(),i=requestAnimationFrame(w)}function v(){e.remove(),cancelAnimationFrame(i),r.removeEventListener("mousemove",m),window.addEventListener("resize",A)}function _(t,e,n){this.position={x:t,y:e},this.image=n,this.move=function(t){t.drawImage(this.image,this.position.x,this.position.y)}}return g.onchange=()=>{g.matches?v():y()},y(),{destroy:v}}}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t](n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var __webpack_exports__={};(()=>{var t,e,n=(t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),i=function(){function t(){}return t.prototype.check=function(t){return Math.random()<.01*t},t.prototype.enable=function(){this.settings.enabled=!0},t.prototype.disable=function(){this.settings.enabled=!1},t.prototype.toggle=function(t){void 0===t&&(t=null),this.settings.enabled=null===t?!this.settings.enabled:t},t}(),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(i),r=__webpack_require__(562),s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(){function t(){this.ui=new r.d(this),this.core_settings=new a,this.jokes={}}return t.prototype.check=function(t){return Math.random()<.01*t},t.prototype.add=function(t){this.jokes[t.id]=t},t.prototype.addCustom=function(t,e,n){void 0===n&&(n=null);var o=new(function(n){function i(){var e=null!==n&&n.apply(this,arguments)||this;return e.id=t,e.title="Пользовательская шутка",e.description="Для шутки не определено описание",e.settings={chance:10,enabled:!0},e}return s(i,n),i.prototype.start=function(){e.call(this,this.settings)},i}(i));return Object.assign(o.settings,null!=n?n:{}),this.add(o),o},Object.defineProperty(t.prototype,"settings",{get:function(){var t={};t.core=this.core_settings;for(var e=0,n=Object.entries(this.jokes);e<n.length;e++){var i=n[e],o=i[0],r=i[1];t[o]=r.settings}return t},set:function(t){for(var e=0,n=Object.entries(t);e<n.length;e++){var i=n[e],o=i[0],r=i[1],s="core"===o?this.core_settings:this.jokes[o].settings;Object.assign(s,r)}},enumerable:!1,configurable:!0}),t.prototype.enable=function(){this.core_settings.enabled=!0},t.prototype.disable=function(){this.core_settings.enabled=!1},t.prototype.enableAll=function(){for(var t=0,e=Object.keys(this.jokes);t<e.length;t++){var n=e[t];this.jokes[n].enable()}},t.prototype.disableAll=function(){for(var t=0,e=Object.keys(this.jokes);t<e.length;t++){var n=e[t];this.jokes[n].disable()}},t.prototype.start=function(t,e){if(void 0===e&&(e=!1),t in this.jokes){var n=this.jokes[t];(e||n.settings.enabled&&this.check(n.settings.chance))&&n.start()}},t.prototype.startAll=function(t){void 0===t&&(t=!1);for(var e=0,n=Object.keys(this.jokes);e<n.length;e++){var i=n[e];this.start(i,t)}},t.prototype.regularCheck=function(){if(!this.core_settings.enabled)return!1;if(this.core_settings.testers.indexOf(window.UserID)>=0)return!0;var t=new Date,e=t.getMonth()+1,n=t.getDate();return 4===e&&1===n&&this.check(this.core_settings.chance)},t.prototype.regularStart=function(){this.regularCheck()&&(this.ui.show(),this.startAll())},t}(),a=function(){this.chance=100,this.enabled=!0,this.testers=[]},l=__webpack_require__(311),h=__webpack_require__.n(l),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.id="shake",e.title="Форумо-трясение",e.description="Страница форума начинает трястись",e.settings=new p,e.data_name="april-fools-shake",e}return u(e,t),e.prototype.rand=function(t){return t+this.settings.force*(2*Math.random()-1)},e.prototype.start=function(){var t=this;this.items=h()(this.settings.selector),this.items.each((function(e,n){var i={};t.settings.directions.forEach((function(t){i[t]=parseInt(h()(n).css("margin-"+t))})),h()(n).data(t.data_name,i)})),this.interval_id=setInterval((function(){t.items.each((function(e,n){for(var i=h()(n).data(t.data_name),o=0,r=Object.entries(i);o<r.length;o++){var s=r[o];h()(n).css("margin-"+s[0],t.rand(s[1]))}}))}),this.settings.interval)},e.prototype.stop=function(){var t=this;clearInterval(this.interval_id),this.items.each((function(e,n){var i={};t.settings.directions.forEach((function(t){h()(n).css("margin-"+t,i[t])})),h()(n).data(t.data_name,i)}))},e}(o),p=function(){this.enabled=!1,this.chance=1,this.directions=["top","left","bottom","left"],this.force=.5,this.selector="[id^=pun]",this.interval=100},f=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.id="humanitarian_hell",e.title="Ад гуманитария",e.description='Все "тся" заменяются на "ться", а все "ться" на "тся"',e.settings=new y,e}return f(e,t),e.prototype.start=function(){h()(this.settings.selector).each((function(){h()(this).html(h()(this).html().replace(/(ть?ся)/g,(function(t){return t.indexOf("ь")>0?"тся":"ться"})))}))},e}(i),y=function(){this.enabled=!0,this.chance=20,this.selector=".post-content"},A=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.id="mirror",e.title="Зеркало",e.description="Элементы форума отражаются (по крайней мере, пытаются)",e.settings=new w,e}return A(e,t),e.prototype.start=function(){h()(".post, .post h3, .post-links, .post-author, .post-content").css("transform","scaleX(-1)").css("-moz-transform","scaleX(-1)").css("-moz-transform","scaleX(-1)").css("filter","FlipH").css("-ms-filter",'"FlipH"'),h()(".post-links, .post-links ul, .post h3 span").css("margin-left","0"),h()(".post h3 span").css("margin-right","25em")},e}(i),w=function(){this.enabled=!1,this.chance=30},v=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.id="carnival",e.title="Карнавал",e.description="Аватарки приобретают интересные цвета",e.settings=new x,e}return v(e,t),e.prototype.start=function(){var t=this;h()(this.settings.selector).each((function(e,n){for(var i=[],o=0,r=Object.entries(t.settings.variants);o<r.length;o++){var s=r[o];t.check(t.settings.variant_chance)&&i.push(s[0].replace("{0}",Math.round(Math.random()*s[1]).toString()))}i.length>0&&h()(n).css({filter:i.join(" ")})}))},e}(i),x=function(){this.enabled=!0,this.chance=30,this.selector='img[src*="/avatars/"]',this.variant_chance=20,this.variants={"sepia({0}%)":100,"saturate({0}%)":100,"hue-rotate({0}deg)":360,"invert({0}%)":100}},b=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.id="crazy_letters",e.title="Мама, Я сОшЛа С уМа!",e.description="иМеНа ЗаБоРчИкОм",e.settings=new C,e}return b(e,t),e.prototype.start=function(){var t=this;h()(this.settings.selector).each((function(e,n){for(var i=h()(t).text(),o="",r=0;r<i.length;r++)o+=i[r][r%2?"toLowerCase":"toUpperCase"]();h()(t).text(o)}))},e}(i),C=function(){this.enabled=!0,this.chance=20,this.selector=".pa-author a"},M=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),O=function(t,e,n){if(n||2===arguments.length)for(var i,o=0,r=e.length;o<r;o++)!i&&o in e||(i||(i=Array.prototype.slice.call(e,0,o)),i[o]=e[o]);return t.concat(i||Array.prototype.slice.call(e))},j=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.id="letter_chaos",e.title="Буквенный хаос",e.description="Все буквы в словах, кроме первой и последней, перемешены.",e.settings=new L,e.punctuationSymbols=null,e}return M(e,t),e.prototype.shuffleLetters=function(t){var e;if(t.length<3||!this.check(this.settings.shuffle_chance))return t;for(var n=t.split(""),i=n.slice(1,-1),o=i.length-1;o>0;o--){var r=Math.floor(Math.random()*(o+1));e=[i[r],i[o]],i[o]=e[0],i[r]=e[1]}return O(O([n[0]],i,!0),[n[n.length-1]],!1).join("")},e.prototype.processNode=function(t){var e;t.textContent=null===(e=t.textContent)||void 0===e?void 0:e.replace(/([А-Яа-яA-Za-z]+)/gm,this.shuffleLetters)},e.prototype.start=function(){var t=this;h()(this.settings.selector).find("*").contents().filter((function(t,e){return e.nodeType===Node.TEXT_NODE})).each((function(e,n){return t.processNode(n)}))},e}(i),L=function(){this.enabled=!0,this.chance=20,this.selector=".post-content",this.shuffle_chance=50},k=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),B=__webpack_require__(442),R=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.id="cursor_effects",e.title="Красивый курсор",e.description="Эффекты, следующие за курсором",e.settings=new T,e}return k(n,t),n.prototype.enableAll=function(){for(var t=0,e=Object.keys(this.settings.effects);t<e.length;t++){var n=e[t];this.settings.effects[n].enabled=!0}},n.prototype.disableAll=function(){for(var t=0,e=Object.keys(this.settings.effects);t<e.length;t++){var n=e[t];this.settings.effects[n].enabled=!1}},n.prototype.weight=function(t){var e=this.settings.effects[t];return e.enabled?e.weight:0},n.prototype.getRandomEffect=function(){for(var t=this,n=Object.values(e).map((function(t){return t})),i=n.reduce((function(e,n){return e+t.weight(n)}),0),o=Math.random()*i,r=0,s=0,c=n;s<c.length;s++){var a=c[s];if(o<=(r+=this.weight(a)))return a}throw new Error("Тебя быть тут не должно...")},n.prototype.start=function(){var t=this.getRandomEffect(),n=this.settings.effects[t];this.active_cursor_effect=function(t,n){switch(t){case e.Rainbow:return B.rainbowCursor(n);case e.FairyDust:return B.fairyDustCursor(n);case e.SpringyEmoji:return B.springyEmojiCursor(n);case e.Emoji:return B.emojiCursor(n);case e.Ghost:return B.ghostCursor(n);case e.Trailing:return B.trailingCursor(n);case e.TextFlag:return B.textFlag(n);case e.FollowingDot:return B.followingDotCursor(n);case e.Bubbles:return B.bubbleCursor(n);case e.Snowflake:return B.snowflakeCursor(n);case e.Clock:return B.clockCursor(n)}}(t,n)},n.prototype.stop=function(){this.active_cursor_effect.destroy()},n}(o);!function(t){t.Rainbow="rainbow",t.FairyDust="fairy_dust",t.SpringyEmoji="springy_emoji",t.Emoji="emoji",t.Ghost="ghost",t.Trailing="trailing",t.TextFlag="text_flag",t.FollowingDot="following_dot",t.Bubbles="bubbles",t.Snowflake="snowflake",t.Clock="clock"}(e||(e={}));var S,D,T=function(){var t;this.enabled=!0,this.chance=100,this.effects=((t={})[e.Rainbow]=new(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.length=20,e.size=3,e.colors=["#9400D3","#4B0082","#0000FF","#00FF00","#FFFF00","#FF7F00","#FF0000"],e}return k(e,t),e}(P)),t[e.SpringyEmoji]=new(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.emoji="🤪",e}return k(e,t),e}(P)),t[e.Emoji]=new(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.emoji=["🔥","🐬","🦆"],e}return k(e,t),e}(P)),t[e.FairyDust]=new(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.colors=["#ff0000","#00ff00","#0000ff"],e}return k(e,t),e}(P)),t[e.Ghost]=new P,t[e.Trailing]=new(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.particles=15,e.rate=.4,e.baseImageSrc=null,e}return k(e,t),e}(P)),t[e.TextFlag]=new(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.text="С днём смеха!",e.color="#000000",e.font="monospace",e.textSize=12,e.gap=14,e.size=3,e}return k(e,t),e}(P)),t[e.FollowingDot]=new(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.color="#323232a6",e}return k(e,t),e}(P)),t[e.Bubbles]=new P,t[e.Snowflake]=new(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.weight=0,e}return k(e,t),e}(P)),t[e.Clock]=new(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dateColor="blue",e.faceColor="black",e.secondsColor="red",e.minutesColor="black",e.hoursColor="black",e}return k(e,t),e}(P)),t)},P=function(){this.enabled=!0,this.weight=50},I=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),W=function(){return W=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},W.apply(this,arguments)},Y=function(t,e,n,i){return new(n||(n=Promise))((function(o,r){function s(t){try{a(i.next(t))}catch(t){r(t)}}function c(t){try{a(i.throw(t))}catch(t){r(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,c)}a((i=i.apply(t,e||[])).next())}))},H=function(t,e){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function c(c){return function(a){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,c[0]&&(s=0)),s;)try{if(n=1,i&&(o=2&c[0]?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,i=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){s=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){s.label=c[1];break}if(6===c[0]&&s.label<o[1]){s.label=o[1],o=c;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(c);break}o[2]&&s.ops.pop(),s.trys.pop();continue}c=e.call(t,s)}catch(t){c=[6,t],i=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}},F=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.id="stupid_title",e.title="Глупые статусы",e.description="Каждому пользователю даётся новый глупый статус.",e.settings=new X,e.loadedGenders=null,e.seed=0,e}return I(e,t),e.prototype.loadGenders=function(){return Y(this,void 0,void 0,(function(){var t,e,n,i=this;return H(this,(function(o){switch(o.label){case 0:return t=h()(".pa-author a").map((function(t,e){return e.innerText})).toArray().reduce((function(t,e){return t.indexOf(e)<0&&t.push(e),t}),[]),e="/api.php?"+h().param({method:"users.get",fields:"username,sex",username:t}),[4,fetch(e)];case 1:return[4,o.sent().json()];case 2:return n=o.sent(),this.loadedGenders={},n.error||n.response.users.forEach((function(t){"0"!==t.sex&&(i.loadedGenders[t.username]="1"===t.sex)})),[2]}}))}))},e.prototype.resolveGender=function(t){return null!==this.settings.gender_resolver?!!this.settings.gender_resolver.call(this,t):t in this.loadedGenders?!!this.loadedGenders[t]:(this.resetSeed(),"m"===this.selectRandom(t,{m:1,f:1}))},e.prototype.start=function(){return Y(this,void 0,void 0,(function(){var t,e=this;return H(this,(function(n){switch(n.label){case 0:return[4,this.loadGenders()];case 1:return n.sent(),t={},h()(".post-author").each((function(n,i){var o=h()(".pa-author a",i).text();o&&(o in t||(e.resetSeed(),t[o]=e.generatePhrase(o)),h()(".pa-title",i).text(t[o]))})),[2]}}))}))},e.prototype.prng=function(t,e,n){for(var i=3735928559^e,o=1103547991^e,r=0,s=void 0;r<t.length;r++)s=t.charCodeAt(r),i=Math.imul(i^s,2654435761),o=Math.imul(o^s,1597334677);i=Math.imul(i^i>>>16,2246822507)^Math.imul(o^o>>>13,3266489909);var c=4294967296*(2097151&(o=Math.imul(o^o>>>16,2246822507)^Math.imul(i^i>>>13,3266489909)))+(i>>>0);return Math.floor(Math.pow(Math.sin(c),2)*n)%n},e.prototype.resetSeed=function(){new Date;var t=60*(new Date).getUTCHours()+(new Date).getUTCMinutes();this.seed=Math.floor(t/this.settings.change_frequency),console.log("Seed reset:",t,this.seed)},e.prototype.selectRandom=function(t,e){for(var n=Object.keys(e),i=n.reduce((function(t,n){return t+e[n]}),0),o=this.prng(t,this.seed++,i),r=0,s=0,c=n;s<c.length;s++){var a=c[s];if(o<=(r+=e[a]))return a}throw new Error("Тебя быть тут не должно...")},e.prototype.buildVariants=function(t,e){for(var n={},i=this.settings.variants[t],o=0,r=Object.entries(i);o<r.length;o++){var s=r[o],c=s[0],a=s[1];a.enabled&&a.gender!==!e&&(!this.settings.rude&&a.rude||(n[c]=a.weight))}return n},e.prototype.capitalizeFirst=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},e.prototype.generatePhrase=function(t){var e=this,n=this.resolveGender(t),i=this.selectRandom(t,this.settings.schemas);return this.capitalizeFirst(i.replace(/\{(.+?)\}/g,(function(i,o){var r=e.buildVariants(o,n);return e.selectRandom(t,r)})))},e}(i),X=function(){this.enabled=!0,this.chance=100,this.gender_resolver=null,this.rude=!1,this.change_frequency=5,this.schemas={"{adj} {noun}{p}":10,"{noun} {adj}{p}":3,"{adj}, {adj} {noun}{p}":10,"{adj} и очень {adj} {noun}{p}":10,"{adj} {noun} {verb}{p}":10,"{adj} {noun} {adv} {verb}{p}":5,"{adj} {noun} {verb} {place}{p}":5,"{adj} {noun} {adv} {verb} {place}{p}":5},this.variants={adj:W(W({},q(!0,"жесткий,^удачливый,низкий,знакомый,откровенный,^мирный,грамотный,вкусный,виртуальный,пышный,провинциальный,$жирный,заинтересованный,объективный,^оригинальный,пожилой,чистый,особенный,выгодный,громадный,обыкновенный,чужой,ударный,^солнечный,истинный,посторонний,южный,седой,$бесполезный,острый,пестрый,формальный,повседневный,невозможный,$жалкий,целый,$глупый,последний,выходной,серьезный,подземный,небесный,любимый,былой,семейный,далекий,северный,суровый,гигантский,иностранный,родной,конструктивный,показательный,нужный,чрезвычайный,гордый,банальный,открытый,независимый,запасной,мстительный,грубый,алчный,мелочный,хладнокровный,спокойный,терпеливый,креативный,активный,адекватный,застенчивый,опрятный,безнадёжный,уверенный в себе,доброжелательный,ласковый,робкий,воспитанный,самовлюблённый,деятельный,двуличный,верный")),q(!1,"жесткая,^удачливая,низкая,знакомая,откровенная,^мирная,грамотная,вкусная,виртуальная,пышная,провинциальная,$жирная,заинтересованная,объективная,^оригинальная,пожилая,чистая,особенная,выгодная,громадная,обыкновенная,чужая,ударная,^солнечная,истинная,посторонняя,южная,седая,$бесполезная,острая,пестрая,формальная,повседневная,невозможная,$жалкая,целая,$глупая,последняя,выходная,серьезная,подземная,небесная,любимая,былая,семейная,далекая,северная,суровая,гигантская,иностранная,родная,конструктивная,показательная,нужная,чрезвычайная,гордая,банальная,открытая,независимая,запасная,мстительная,грубая,алчная,мелочная,хладнокровная,спокаяная,терпеливая,креативная,активная,адекватная,застенчивая,опрятная,безнадёжная,уверенная в себе,доброжелательная,ласковая,робкая,воспитанная,самовлюблённая,деятельная,двуличная,верная")),noun:W(W(W({},q(null,"")),q(!0,"орёл, ниндзя, манекен, пузырь, бродяга, рыцарь, кентавр, зайц, диван, наследник, сын, джентльмен, басурманин, карасик, $злоумышленник, $раб, хоббит, одиночка, отец, кролик, бруталище, дворф, актёр, %дед, спортсмен, $балбес, %мальчег, лев, ёж, организм, монах, хоббит, борец, тигр, монстр, массажист, мачо, эльф, ледник, жук, кот, зомби, проказник, дракон, носорог, волк, лесоруб, кит, %дедушка, динозавр, бард, кулак, принц, %сынок, мальчик, товарищ, ёжик, сурикат")),q(!1,"заноза, волторна, $личинка, детка, %бабушка, простуда, черепашка, мышь, волчица, деревяшка, пиранья, каруселька, красотка, леди, %дочка, орлица, принцесса, $ведьма, травка, актриса, наследница, %деффачка, горгулья, белочка, акула, машинка, конфетка, знаменитость, косточка, спортсменка, панда, мать, львица, эльфийка, $злоумышленница, чертовка, дворфиха, кошка, $рабыня, скамеечка, дочь, монашка, бактерия, рыбка, бусинка, $бабка, девочка, валькирия, килька, бабочка, милашка, крышка, тигрица, рыбка, русалочка")),verb:W(W(W({},q(null,"встаёт, снимает, приказывает, указывает, собирается, чувствует опасность, орёт, болеет, поздравляет, освобождает, поздравляет, бежит, берёт и делает, молчит, радуется, прощает, читает, снимает, снимается в фильме, что-то скрывает, думает, имеет план и придерживается его, тянет, работает, меняется, ловит, отказаться куда-то идти, заходит, замирает, оформляет, нарушает, отказывается что-то делать, шепчет, снимается в сериале, скрывается, учит, спрашивает, идёт, отказывается вставать, прибывает, отказывается, забывает, получает, плывёт, отвечает, поглядывает, говорит, просыпается, соединяет, оглядывается")),q(!0,"женится, женился, успел, не успел, смог, скрылся, заработался, познал дзен, присел, обиделся, проснулся, взял и сделал, додумался, не спал")),q(!1,"выходит замуж, вышла замуж, успела, не успела, смогла, скрылась, заработалась, познала дзен, присела, обиделась, проснулась, взяла и сделала, додумалась, не спала")),place:W({},q(null,"где-то, в пустыне, на пляже, под дождём, %под проливным дождём, в квартире, %в тёплой и уютной квартире, в космосе, в театре, в филармонии, на заснеженной вершине, на конференции, на форуме, в очереди, в лесу, в джунглях, под водой")),adv:W({},q(null,"счастливо, уныло, грустно, позже, немедленно, регулярно, вновь, опять, уже, внезапно, предсказуемо, медленно, быстро, %молниеносно, $грубо, безрассудно, осмысленно, расчётливо")),p:{"":new U({weight:10}),".":new U({weight:10}),"...":new U({weight:5}),"!":new U({weight:5}),"!!!":new U({weight:2}),"?":new U({weight:2}),"?!":new U({weight:1})}}},U=function(t){void 0===t&&(t=new Object),this.weight=10,this.enabled=!0,this.rude=!1,this.gender=null;for(var e=0,n=Object.entries(t);e<n.length;e++){var i=n[e];i[0]in this&&(this[i[0]]=i[1])}};function q(t,e){var n={};return e.split(",").map((function(t){return t.trim()})).forEach((function(e){var i=e.replace(/[^А-ЯЁа-яёA-Za-z\- ]/g,"");""!==i&&(n[i]=new U({gender:t,rude:e.indexOf("$")>=0,enabled:e.indexOf("!")<0,weight:10*(e.indexOf("$")>=0?.5:1)*(e.indexOf("%")>=0?.5:1)*(e.indexOf("^")>=0?2:1)}))})),n}window.BuildStupdiTitleVariant=q,window.AprilJokes=(S=[d,g,m,_,E,j,R,F],D=new c,S.forEach((function(t){D.add(new t)})),$((function(){D.regularStart()})),D)})()})(); |