import{bU as Ae,i as qe,r as ve,o as M,c as R,b as g,n as G,h as He,F as te,d as fe,g as Ce,t as me,a as pe,w as ze,B as je}from"./app-CBssobj-.js";import{S as Fe,M as De,B as Ne,C as Pe}from"./SearchModal-BTKERLZv.js";import{_ as Te}from"./_plugin-vue_export-helper-DlAUqK2U.js";var xe={exports:{}};/*! * Button visually impaired - v1.0.0 https://bvi.isvek.ru * Copyright 2014-2021 Oleg Korotenko . * Licensed MIT (https://github.com/veks/button-visually-impaired-javascript/blob/master/LICENSE.md) */(function(B,k){(function(F,V){B.exports=V()})(Ae,function(){function F(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),t.push.apply(t,n)}return t}function V(a){for(var e=1;ea.length)&&(e=a.length);for(var t=0,n=new Array(e);t=0;--v){var l=this.tryEntries[v],E=l.completion;if(l.tryLoc==="root")return c("end");if(l.tryLoc<=this.prev){var A=_.call(l,"catchLoc"),D=_.call(l,"finallyLoc");if(A&&D){if(this.prev=0;--c){var v=this.tryEntries[c];if(v.tryLoc<=this.prev&&_.call(v,"finallyLoc")&&this.prev=0;--i){var c=this.tryEntries[i];if(c.finallyLoc===r)return this.complete(c.completion,c.afterLoc),ce(c),p}},catch:function(r){for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i];if(c.tryLoc===r){var v=c.completion;if(v.type==="throw"){var l=v.arg;ce(c)}return l}}throw new Error("illegal catch attempt")},delegateYield:function(r,i,c){return this.delegate={iterator:de(r),resultName:i,nextLoc:c},this.method==="next"&&(this.arg=n),p}},t}({});try{regeneratorRuntime=e}catch{(typeof globalThis>"u"?"undefined":O(globalThis))==="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}})(),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(function(a){a.hasOwnProperty("prepend")||Object.defineProperty(a,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach(function(n){var s=n instanceof Node;t.appendChild(s?n:document.createTextNode(String(n)))}),this.insertBefore(t,this.firstChild)}})}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.HTMLCollection&&!HTMLCollection.prototype.forEach&&(HTMLCollection.prototype.forEach=Array.prototype.forEach);var q=function(a){switch(a){case"on":case"true":case"1":return!0;default:return!1}},N=function(a,e,t){for(typeof e=="string"&&(e=document.createElement(e)),a.appendChild(e).className=t;a.firstChild!==e;)e.appendChild(a.firstChild)},re=function(a){var e=document.createDocumentFragment();if(a){for(;a.firstChild;){var t=a.removeChild(a.firstChild);e.appendChild(t)}a.parentNode.replaceChild(e,a)}},Y=function(a,e){Object.keys(a).forEach(function(t){typeof e=="function"&&e(t)})},oe=function(a,e){Array.from(a).forEach(function(t){typeof e=="function"&&e(t)})},U=function(){return window.speechSynthesis},y=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=new Date,n=t.getTime();n+=864e5,t.setTime(n),document.cookie="bvi_".concat(a,"=").concat(e,";path=/;expires=").concat(t.toUTCString(),";domain=").concat(location.host)},x=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";a="bvi_".concat(a,"=");for(var e=decodeURIComponent(document.cookie),t=e.split(";"),n=0;n0&&arguments[0]!==void 0?arguments[0]:"";document.cookie="bvi_".concat(a,"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain=").concat(location.host)},ge={"ru-RU":{text:{fontSize:"Размер шрифта",siteColors:"Цвета сайта",images:"Изображения",speech:"Синтез речи",settings:"Настройки",regularVersionOfTheSite:"Обычная версия сайта",letterSpacing:"Межбуквенное расстояние",normal:"Стандартный",average:"Средний",big:"Большой",lineHeight:"Межстрочный интервал",font:"Шрифт",arial:"Без засечек",times:"С засечками",builtElements:"Встроенные элементы (Видео, карты и тд.)",on:"Включить",off:"Выключить",reset:"Сбросить настройки",plural_0:"пиксель",plural_1:"пекселя",plural_2:"пикселей"},voice:{fontSizePlus:"Размер шрифта увели́чен",fontSizeMinus:"Размер шрифта уме́ньшен",siteColorBlackOnWhite:"Цвет сайта черным по белому",siteColorWhiteOnBlack:"Цвет сайта белым по черному",siteColorDarkBlueOnBlue:"Цвет сайта тёмно-синим по голубому",siteColorBeigeBrown:"Цвет сайта кори́чневым по бе́жевому",siteColorGreenOnDarkBrown:"Цвет сайта зеленым по тёмно-коричневому",imagesOn:"Изображения включены",imagesOFF:"Изображения выключены",imagesGrayscale:"Изображения чёрно-белые",speechOn:"Синтез речи включён",speechOff:"Синтез речи вы́ключен",lineHeightNormal:"Межстрочный интервал стандартный",lineHeightAverage:"Межстрочный интервал средний",lineHeightBig:"Межстрочный интервал большой",LetterSpacingNormal:"Интервал между буквами стандартный",LetterSpacingAverage:"Интервал между буквами средний",LetterSpacingBig:"Интервал между буквами большой",fontArial:"Шрифт без засечек",fontTimes:"Шрифт с засечками",builtElementsOn:"Встроенные элементы включены",builtElementsOFF:"Встроенные элементы выключены",resetSettings:"Установлены настройки по умолча́нию",panelShow:"Панель открыта",panelHide:"Панель скрыта",panelOn:"Версия сайта для слабови́дящий",panelOff:"Обычная версия сайта"}},"en-US":{text:{fontSize:"Font size",siteColors:"Site colors",images:"Images",speech:"Speech synthesis",settings:"Settings",regularVersionOfTheSite:"Regular version Of The site",letterSpacing:"Letter spacing",normal:"Single",average:"One and a half",big:"Double",lineHeight:"Line spacing",font:"Font",arial:"Sans Serif - Arial",times:"Serif - Times New Roman",builtElements:"Include inline elements (Videos, maps, etc.)",on:"Enable",off:"Disabled",reset:"Reset settings",plural_0:"pixel",plural_1:"pixels",plural_2:"pixels"},voice:{fontSizePlus:"Font size increased",fontSizeMinus:"Font size reduced",siteColorBlackOnWhite:"Site color black on white",siteColorWhiteOnBlack:"Site color white on black",siteColorDarkBlueOnBlue:"Site color dark blue on cyan",siteColorBeigeBrown:"SiteColorBeigeBrown",siteColorGreenOnDarkBrown:"Site color green on dark brown",imagesOn:"Images enable",imagesOFF:"Images disabled",imagesGrayscale:"Images gray scale",speechOn:"Synthesis speech enable",speechOff:"Synthesis speech disabled",lineHeightNormal:"Line spacing single",lineHeightAverage:"Line spacing one and a half",lineHeightBig:"Line spacing double",LetterSpacingNormal:"Letter spacing single",LetterSpacingAverage:"Letter spacing one and a half",LetterSpacingBig:"Letter spacing letter double",fontArial:"Sans Serif - Arial",fontTimes:"Serif - Times New Roman",builtElementsOn:"Include inline elements are enabled",builtElementsOFF:"Include inline elements are disabled",resetSettings:"Default settings have been set",panelShow:"Panel show",panelHide:"Panel hide",panelOn:"Site version for visually impaired",panelOff:"Regular version of the site"}}},Le=function(){function a(e){J(this,a),this._config=e}return Q(a,[{key:"t",value:function(e){return ge[this._config.lang].text[e]}},{key:"v",value:function(e){return ge[this._config.lang].voice[e]}}]),a}(),be={target:".bvi-open",fontSize:16,theme:"white",images:"grayscale",letterSpacing:"normal",lineHeight:"normal",speech:!0,fontFamily:"arial",builtElements:!1,panelFixed:!0,panelHide:!1,reload:!1,lang:"ru-RU"},Be={target:"string",fontSize:"number",theme:"string",images:"(string|boolean)",letterSpacing:"string",lineHeight:"string",speech:"boolean",fontFamily:"string",builtElements:"boolean",panelFixed:"boolean",panelHide:"boolean",reload:"boolean",lang:"string"},Ee={target:"",fontSize:"(^[1-9]$|^[1-3][0-9]?$|^39$)",theme:"(white|black|blue|brown|green)",images:"(true|false|grayscale)",letterSpacing:"(normal|average|big)",lineHeight:"(normal|average|big)",speech:"(true|false)",fontFamily:"(arial|times)",builtElements:"(true|false)",panelFixed:"(true|false)",panelHide:"(true|false)",reload:"(true|false)",lang:"(ru-RU|en-US)"};return{Bvi:function(){function a(e){J(this,a),this._config=this._getConfig(e),this._elements=document.querySelectorAll(this._config.target),this._i18n=new Le({lang:this._config.lang}),this._addEventListeners(),this._init(),console.log("Bvi console: ready Button visually impaired v1.0.0")}return Q(a,[{key:"_init",value:function(){Y(this._config,function(e){x(e)===void 0&&ae("panelActive")}),q(x("panelActive"))?(this._set(),this._getPanel(),this._addEventListenersPanel(),this._images(),this._speechPlayer(),"speechSynthesis"in window&&q(x("speech"))&&setInterval(function(){if(U().pending===!1){var e=document.querySelectorAll(".bvi-speech-play"),t=document.querySelectorAll(".bvi-speech-pause"),n=document.querySelectorAll(".bvi-speech-resume"),s=document.querySelectorAll(".bvi-speech-stop"),_=function(o,w){o.forEach(function(f){return w(f)})};_(e,function(o){return o.classList.remove("disabled")}),_(t,function(o){return o.classList.add("disabled")}),_(n,function(o){return o.classList.add("disabled")}),_(s,function(o){return o.classList.add("disabled")})}},1e3)):this._remove()}},{key:"_addEventListeners",value:function(){var e=this;if(!this._elements)return!1;this._elements.forEach(function(t){t.addEventListener("click",function(n){n.preventDefault(),Y(e._config,function(s){return y(s,e._config[s])}),y("panelActive",!0),e._init(),e._speech("".concat(e._i18n.v("panelOn")))})})}},{key:"_addEventListenersPanel",value:function(){var e=this,t={fontSizeMinus:document.querySelector(".bvi-fontSize-minus"),fontSizePlus:document.querySelector(".bvi-fontSize-plus"),themeWhite:document.querySelector(".bvi-theme-white"),themeBlack:document.querySelector(".bvi-theme-black"),themeBlue:document.querySelector(".bvi-theme-blue"),themeBrown:document.querySelector(".bvi-theme-brown"),themeGreen:document.querySelector(".bvi-theme-green"),imagesOn:document.querySelector(".bvi-images-on"),imagesOff:document.querySelector(".bvi-images-off"),imagesGrayscale:document.querySelector(".bvi-images-grayscale"),speechOn:document.querySelector(".bvi-speech-on"),speechOff:document.querySelector(".bvi-speech-off"),lineHeightNormal:document.querySelector(".bvi-line-height-normal"),lineHeightAverage:document.querySelector(".bvi-line-height-average"),lineHeightBig:document.querySelector(".bvi-line-height-big"),letterSpacingNormal:document.querySelector(".bvi-letter-spacing-normal"),letterSpacingAverage:document.querySelector(".bvi-letter-spacing-average"),letterSpacingBig:document.querySelector(".bvi-letter-spacing-big"),fontFamilyArial:document.querySelector(".bvi-font-family-arial"),fontFamilyTimes:document.querySelector(".bvi-font-family-times"),builtElementsOn:document.querySelector(".bvi-built-elements-on"),builtElementsOff:document.querySelector(".bvi-built-elements-off"),reset:document.querySelector(".bvi-reset"),links:document.querySelectorAll(".bvi-link"),modal:document.querySelector(".bvi-modal")},n=function(o){var w,f=function(m,u){var d=typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(!d){if(Array.isArray(m)||(d=function(p,P){if(p){if(typeof p=="string")return $(p,P);var L=Object.prototype.toString.call(p).slice(8,-1);return L==="Object"&&p.constructor&&(L=p.constructor.name),L==="Map"||L==="Set"?Array.from(p):L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L)?$(p,P):void 0}}(m))||u){d&&(m=d);var h=0,b=function(){};return{s:b,n:function(){return h>=m.length?{done:!0}:{done:!1,value:m[h++]}},e:function(p){throw p},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H,z=!0,C=!1;return{s:function(){d=d.call(m)},n:function(){var p=d.next();return z=p.done,p},e:function(p){C=!0,H=p},f:function(){try{z||d.return==null||d.return()}finally{if(C)throw H}}}}(o.parentNode.children);try{for(f.s();!(w=f.n()).done;)w.value.classList.remove("active")}catch(m){f.e(m)}finally{f.f()}o.classList.add("active")},s=function(o,w){o.addEventListener("click",function(f){f.preventDefault(),typeof w=="function"&&w(f)})},_=function(){document.querySelectorAll(".bvi-link").forEach(function(o){o.classList.remove("active")}),Y(e._config,function(o){if(o==="theme"){var w=x(o);document.querySelector(".bvi-theme-".concat(w)).classList.add("active")}if(o==="images"){var f=x(o)==="grayscale"?"grayscale":q(x(o))?"on":"off";document.querySelector(".bvi-images-".concat(f)).classList.add("active")}if(o==="speech"){var m=q(x(o))?"on":"off";document.querySelector(".bvi-speech-".concat(m)).classList.add("active")}if(o==="lineHeight"){var u=x(o);document.querySelector(".bvi-line-height-".concat(u)).classList.add("active")}if(o==="letterSpacing"){var d=x(o);document.querySelector(".bvi-letter-spacing-".concat(d)).classList.add("active")}if(o==="fontFamily"){var h=x(o);document.querySelector(".bvi-font-family-".concat(h)).classList.add("active")}if(o==="builtElements"){var b=q(x(o))?"on":"off";document.querySelector(".bvi-built-elements-".concat(b)).classList.add("active")}})};_(),s(t.fontSizeMinus,function(){var o=parseFloat(x("fontSize"))-1;o!==0&&(e._setAttrDataBviBody("fontSize",o),y("fontSize",o),e._speech("".concat(e._i18n.v("fontSizeMinus"))),n(t.fontSizeMinus))}),s(t.fontSizePlus,function(){var o=parseFloat(x("fontSize"))+1;o!==40&&(e._setAttrDataBviBody("fontSize",o),y("fontSize",o),e._speech("".concat(e._i18n.v("fontSizePlus"))),n(t.fontSizePlus))}),s(t.themeWhite,function(){e._setAttrDataBviBody("theme","white"),y("theme","white"),e._speech("".concat(e._i18n.v("siteColorBlackOnWhite"))),n(t.themeWhite)}),s(t.themeBlack,function(){e._setAttrDataBviBody("theme","black"),y("theme","black"),e._speech("".concat(e._i18n.v("siteColorWhiteOnBlack"))),n(t.themeBlack)}),s(t.themeBlue,function(){e._setAttrDataBviBody("theme","blue"),y("theme","blue"),e._speech("".concat(e._i18n.v("siteColorDarkBlueOnBlue"))),n(t.themeBlue)}),s(t.themeBrown,function(){e._setAttrDataBviBody("theme","brown"),y("theme","brown"),e._speech("".concat(e._i18n.v("siteColorBeigeBrown"))),n(t.themeBrown)}),s(t.themeGreen,function(){e._setAttrDataBviBody("theme","green"),y("theme","green"),e._speech("".concat(e._i18n.v("siteColorGreenOnDarkBrown"))),n(t.themeGreen)}),s(t.imagesOn,function(){e._setAttrDataBviBody("images","true"),y("images","true"),e._speech("".concat(e._i18n.v("imagesOn"))),n(t.imagesOn)}),s(t.imagesOff,function(){e._setAttrDataBviBody("images","false"),y("images","false"),e._speech("".concat(e._i18n.v("imagesOFF"))),n(t.imagesOff)}),s(t.imagesGrayscale,function(){e._setAttrDataBviBody("images","grayscale"),y("images","grayscale"),e._speech("".concat(e._i18n.v("imagesGrayscale"))),n(t.imagesGrayscale)}),s(t.speechOn,function(){e._setAttrDataBviBody("speech","true"),y("speech","true"),e._speech("".concat(e._i18n.v("speechOn"))),n(t.speechOn),e._speechPlayer()}),s(t.speechOff,function(){e._speech("".concat(e._i18n.v("speechOff"))),e._setAttrDataBviBody("speech","false"),y("speech","false"),n(t.speechOff),e._speechPlayer()}),s(t.lineHeightNormal,function(){e._setAttrDataBviBody("lineHeight","normal"),y("lineHeight","normal"),e._speech("".concat(e._i18n.v("lineHeightNormal"))),n(t.lineHeightNormal)}),s(t.lineHeightAverage,function(){e._setAttrDataBviBody("lineHeight","average"),y("lineHeight","average"),e._speech("".concat(e._i18n.v("lineHeightAverage"))),n(t.lineHeightAverage)}),s(t.lineHeightBig,function(){e._setAttrDataBviBody("lineHeight","big"),y("lineHeight","big"),e._speech("".concat(e._i18n.v("lineHeightBig"))),n(t.lineHeightBig)}),s(t.letterSpacingNormal,function(){e._setAttrDataBviBody("letterSpacing","normal"),y("letterSpacing","normal"),e._speech("".concat(e._i18n.v("LetterSpacingNormal"))),n(t.letterSpacingNormal)}),s(t.letterSpacingAverage,function(){e._setAttrDataBviBody("letterSpacing","average"),y("letterSpacing","average"),e._speech("".concat(e._i18n.v("LetterSpacingAverage"))),n(t.letterSpacingAverage)}),s(t.letterSpacingBig,function(){e._setAttrDataBviBody("letterSpacing","big"),y("letterSpacing","big"),e._speech("".concat(e._i18n.v("LetterSpacingBig"))),n(t.letterSpacingBig)}),s(t.fontFamilyArial,function(){e._setAttrDataBviBody("fontFamily","arial"),y("fontFamily","arial"),e._speech("".concat(e._i18n.v("fontArial"))),n(t.fontFamilyArial)}),s(t.fontFamilyTimes,function(){e._setAttrDataBviBody("fontFamily","times"),y("fontFamily","times"),e._speech("".concat(e._i18n.v("fontTimes"))),n(t.fontFamilyTimes)}),s(t.builtElementsOn,function(){e._setAttrDataBviBody("builtElements","true"),y("builtElements","true"),e._speech("".concat(e._i18n.v("builtElementsOn"))),n(t.builtElementsOn)}),s(t.builtElementsOff,function(){e._setAttrDataBviBody("builtElements","false"),y("builtElements","false"),e._speech("".concat(e._i18n.v("builtElementsOFF"))),n(t.builtElementsOff)}),s(t.reset,function(){e._speech("".concat(e._i18n.v("resetSettings"))),Y(e._config,function(o){e._setAttrDataBviBody(o,e._config[o]),y(o,e._config[o]),_()})}),oe(t.links,function(o){s(o,function(w){var f=w.target.getAttribute("data-bvi");f==="close"&&(e._setAttrDataBviBody("panelActive","false"),y("panelActive","false"),e._init()),f==="modal"&&(document.body.style.overflow="hidden",document.body.classList.add("bvi-noscroll"),t.modal.classList.toggle("show")),f==="modal-close"&&(document.body.classList.remove("bvi-noscroll"),document.body.style.overflow="",t.modal.classList.remove("show")),f==="panel-hide"&&(document.querySelector(".bvi-panel").classList.add("bvi-panel-hide"),document.querySelector(".bvi-link-fixed-top").classList.remove("bvi-hide"),document.querySelector(".bvi-link-fixed-top").classList.add("bvi-show"),y("panelHide","true"),e._speech("".concat(e._i18n.v("panelHide")))),f==="panel-show"&&(document.querySelector(".bvi-link-fixed-top").classList.remove("bvi-show"),document.querySelector(".bvi-link-fixed-top").classList.add("bvi-hide"),document.querySelector(".bvi-panel").classList.remove("bvi-panel-hide"),y("panelHide","false"),e._speech("".concat(e._i18n.v("panelShow"))))})}),s(t.modal,function(o){o.target.contains(t.modal)&&(document.body.classList.remove("bvi-noscroll"),document.body.style.overflow="",t.modal.classList.remove("show"))})}},{key:"_getPanel",value:function(){var e=function(){var o=window.pageYOffset!==void 0?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;q(x("panelFixed"))&&(o>200?document.querySelector(".bvi-panel").classList.add("bvi-fixed-top"):document.querySelector(".bvi-panel").classList.remove("bvi-fixed-top"))},t=q(x("panelHide"))?" bvi-panel-hide":"",n=q(x("panelHide"))?"bvi-show":" bvi-hide",s=`
`).concat(this._i18n.t("fontSize"),`
А- А+
`).concat(this._i18n.t("siteColors"),`
Ц Ц Ц Ц Ц
`).concat(this._i18n.t("images"),`
`).concat(this._i18n.t("speech"),`
`),_='')+'';window.addEventListener("scroll",e),document.querySelector(".bvi-body").insertAdjacentHTML("beforebegin",s),document.querySelector(".bvi-body").insertAdjacentHTML("afterbegin",_),e()}},{key:"_set",value:function(){var e=this;document.body.classList.add("bvi-active"),N(document.body,"div","bvi-body"),Y(this._config,function(t){return e._setAttrDataBviBody(t,x(t))}),oe(this._elements,function(t){return t.style.display="none"}),document.querySelectorAll("img").forEach(function(t){t.classList.contains("bvi-img")&&t.classList.remove("bvi-img")}),document.querySelectorAll("body *").forEach(function(t){t.classList.contains("bvi-background-image")&&t.classList.remove("bvi-background-image")})}},{key:"_remove",value:function(){var e=document.querySelector(".bvi-panel"),t=document.querySelector(".bvi-body"),n=document.querySelector(".bvi-link-fixed-top");e&&e.remove(),t&&re(t),n&&n.remove(),this._speech("".concat(this._i18n.v("panelOff"))),document.body.classList.remove("bvi-active"),oe(this._elements,function(s){return s.style.display=""}),q(x("reload"))&&document.location.reload(),Y(this._config,function(s){ae(s)}),this._speechPlayer(),ae("panelActive")}},{key:"_images",value:function(){document.querySelectorAll("img").forEach(function(e){e.classList.contains("bvi-no-style")||e.classList.add("bvi-img")}),document.querySelectorAll(".bvi-body *").forEach(function(e){var t=getComputedStyle(e);t.backgroundImage==="none"||t.background==="none"||e.classList.contains("bvi-no-style")||e.classList.add("bvi-background-image")})}},{key:"_getConfig",value:function(e){e=V(V({},be),e);var t={};for(var n in be)t[n]=e[n];return function(s,_,o){Object.keys(_).forEach(function(w){var f,m=_[w],u=s[w],d=u&&(f=u)&&O(f)==="object"&&f.nodeType!==void 0?"element":function(h){return h==null?"".concat(h):{}.toString.call(h).match(/\s([a-z]+)/i)[1].toLowerCase()}(u);if(!new RegExp(m).test(d))throw new TypeError('Bvi console: Опция "'.concat(w,'" предоставленный тип "').concat(d,'", ожидаемый тип "').concat(m,'".'))}),Object.keys(o).forEach(function(w){var f=o[w],m=s[w];if(!new RegExp(f).test(m))throw new TypeError('Bvi console: Опция "'.concat(w,'" параметр "').concat(m,'", ожидаемый параметр "').concat(f,'".'))})}(t,Be,Ee),t}},{key:"_setAttrDataBviBody",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";document.querySelector(".bvi-body").setAttribute("data-bvi-".concat(e),t)}},{key:"_speechPlayer",value:function(){var e=this,t=document.querySelectorAll(".bvi-speech-text"),n=document.querySelectorAll(".bvi-speech-link"),s=document.querySelectorAll(".bvi-speech");if("speechSynthesis"in window&&q(x("speech"))){if(s){t&&t.forEach(function(u){return re(u)}),n&&n.forEach(function(u){return u.remove()}),s.forEach(function(u,d){var h="bvi-speech-text-id-".concat(d+1);N(u,"div","bvi-speech-text ".concat(h)),u.insertAdjacentHTML("afterbegin",` `)});var _=document.querySelectorAll(".bvi-speech-play"),o=document.querySelectorAll(".bvi-speech-pause"),w=document.querySelectorAll(".bvi-speech-resume"),f=document.querySelectorAll(".bvi-speech-stop"),m=function(u,d){u.forEach(function(h){h.addEventListener("click",function(b){if(b.preventDefault(),typeof d=="function")return d(h,b)},!1)})};m(_,function(u,d){var h=d.target,b=h.parentNode.nextElementSibling,H=d.target.closest(".bvi-speech-link"),z=document.querySelectorAll(".bvi-speech-play"),C=document.querySelectorAll(".bvi-speech-pause"),p=document.querySelectorAll(".bvi-speech-resume"),P=document.querySelectorAll(".bvi-speech-stop");e._speech(b.textContent,b,!0),z.forEach(function(L){return L.classList.remove("disabled")}),C.forEach(function(L){return L.classList.add("disabled")}),p.forEach(function(L){return L.classList.add("disabled")}),P.forEach(function(L){return L.classList.add("disabled")}),h.classList.add("disabled"),H.querySelector(".bvi-speech-pause").classList.remove("disabled"),H.querySelector(".bvi-speech-stop").classList.remove("disabled")}),m(o,function(u,d){var h=d.target,b=d.target.closest(".bvi-speech-link");h.classList.add("disabled"),b.querySelector(".bvi-speech-resume").classList.remove("disabled"),U().pause()}),m(w,function(u,d){var h=d.target,b=d.target.closest(".bvi-speech-link");h.classList.add("disabled"),b.querySelector(".bvi-speech-pause").classList.remove("disabled"),U().resume()}),m(f,function(u,d){var h=d.target,b=d.target.closest(".bvi-speech-link");h.classList.add("disabled"),b.querySelector(".bvi-speech-pause").classList.add("disabled"),b.querySelector(".bvi-speech-play").classList.remove("disabled"),U().cancel()})}}else t&&t.forEach(function(u){return re(u)}),n&&n.forEach(function(u){return u.remove()})}},{key:"_speech",value:function(e,t){var n=this,s=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if("speechSynthesis"in window&&q(x("speech"))){U().cancel();for(var _=function(d,h){d=String(d),h=Number(h)>>>0;var b=d.slice(0,h+1).search(/\S+$/),H=d.slice(h).search(/\s/);return H<0?d.slice(b):d.slice(b,H+h)},o=120,w=new RegExp("^[\\s\\S]{"+Math.floor(o/2)+","+o+"}[.!?,]{1}|^[\\s\\S]{1,"+o+"}$|^[\\s\\S]{1,"+o+"} "),f=[],m=e,u=U().getVoices();m.length>0;)f.push(m.match(w)[0]),m=m.substring(f[f.length-1].length);f.forEach(function(d){var h=new SpeechSynthesisUtterance(d.trim());h.volume=1,h.rate=1,h.pitch=1,h.lang=n._config.lang;for(var b=0;b]+>)*$1(<[^>]+>)*)"),P=new RegExp("("+p+")","gi");C=(C=C.replace(P,"$1")).replace(/([^<>]*)((<[^>]+>)+)([^<>]*<\/mark>)/,"$1$2$4"),t.innerHTML=C},h.onend=function(H){t.classList.remove("bvi-highlighting");var z=t.textContent;z=z.replace(/($1<\/mark>)/,"$1"),t.innerHTML=z}),U().speak(h)})}}}]),a}()}})})(xe);var Me=xe.exports;const Re={name:"MainPageNavBar",components:{SearchModal:Fe,MobileNavbar:De,BaseIcon:Ne,ClientGlobalSearch:Pe,Link:qe},props:{sections:{type:Object},sliderRef:{type:HTMLDivElement,default:!0}},data(){return{scrollPosition:0,headerFilter:!1,underSliderHeader:this.sliderRef,bvi:null}},methods:{isSameRoute(B){if(B===this.$page.props.ziggy.location)return!0;const k=this.$page.props.ziggy.location,F=this.$page.props.ziggy.url+"/"+B;return k===F},hasActivePage(B){if(B.pages)return B.pages.some(k=>this.isSameRoute(k.path));if(B.subSections)return B.subSections.some(k=>this.hasActivePage(k))},handleScroll(){if(typeof this.sliderRef=="object"){const B=this.sliderRef;this.underSliderHeader=B.getBoundingClientRect().bottom<50,this.scrollPosition=window.pageYOffset,this.headerFilter=this.scrollPosition>90}else this.headerFilter=!0},getCookie(B){let k=document.cookie.split(";");for(let F=0;F