1/*! For license information please see text-to-audio-button.min.js.LICENSE.txt */ 2(()=>{"use strict";var u={1111:(u,t,e)=>{e.d(t,{PC:()=>i,cs:()=>o,ho:()=>r});var n=e(6756);var i=n.P,o=function(){var u,t="#ffffff",e=ttsObj.settings;return null!=e&&null!==(u=e.customize)&&void 0!==u&&u.color&&(t=e.customize.color),window.wp?wp.hooks.applyFilters("ttsPlayerCustomizations",{1:{play:"<svg width='15px' height='15px' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 8' aria-hidden='true'><polygon fill='".concat(t,"' points='0 0 0 8 7 4'/> </svg>"),pause:"<svg width='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><g id='SVGRepo_bgCarrier' stroke-width='1.5'></g><g id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'></g><g id='SVGRepo_iconCarrier'><path opacity='0.1' d='M3 12C3 4.5885 4.5885 3 12 3C19.4115 3 21 4.5885 21 12C21 19.4115 19.4115 21 12 21C4.5885 21 3 19.4115 3 12Z' fill='none'></path><path d='M14 9L14 15' stroke='".concat(t,"' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'></path><path d='M10 9L10 15' stroke='").concat(t,"' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'></path><path d='M3 12C3 4.5885 4.5885 3 12 3C19.4115 3 21 4.5885 21 12C21 19.4115 19.4115 21 12 21C4.5885 21 3 19.4115 3 12Z' stroke='").concat(t,"' stroke-width='2'></path></g></svg>"),replay:"<svg width='20px' height='20px' viewBox='0 0 24.00 24.00' fill='none' xmlns='http://www.w3.org/2000/svg' stroke='".concat(t,"' stroke-width='1'><g id='SVGRepo_bgCarrier' stroke-width='0'></g><g id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'></g><g id='SVGRepo_iconCarrier'> <path d='M12 20.75C10.078 20.7474 8.23546 19.9827 6.8764 18.6236C5.51733 17.2645 4.75265 15.422 4.75 13.5C4.75 13.3011 4.82902 13.1103 4.96967 12.9697C5.11032 12.829 5.30109 12.75 5.5 12.75C5.69891 12.75 5.88968 12.829 6.03033 12.9697C6.17098 13.1103 6.25 13.3011 6.25 13.5C6.25 14.6372 6.58723 15.7489 7.21905 16.6945C7.85087 17.6401 8.74889 18.3771 9.79957 18.8123C10.8502 19.2475 12.0064 19.3614 13.1218 19.1395C14.2372 18.9177 15.2617 18.37 16.0659 17.5659C16.87 16.7617 17.4177 15.7372 17.6395 14.6218C17.8614 13.5064 17.7475 12.3502 17.3123 11.2996C16.8771 10.2489 16.1401 9.35087 15.1945 8.71905C14.2489 8.08723 13.1372 7.75 12 7.75H9.5C9.30109 7.75 9.11032 7.67098 8.96967 7.53033C8.82902 7.38968 8.75 7.19891 8.75 7C8.75 6.80109 8.82902 6.61032 8.96967 6.46967C9.11032 6.32902 9.30109 6.25 9.5 6.25H12C13.9228 6.25 15.7669 7.01384 17.1265 8.37348C18.4862 9.73311 19.25 11.5772 19.25 13.5C19.25 15.4228 18.4862 17.2669 17.1265 18.6265C15.7669 19.9862 13.9228 20.75 12 20.75Z' fill='").concat(t,"'></path> <path d='M12 10.75C11.9015 10.7505 11.8038 10.7313 11.7128 10.6935C11.6218 10.6557 11.5392 10.6001 11.47 10.53L8.47 7.53003C8.32955 7.38941 8.25066 7.19878 8.25066 7.00003C8.25066 6.80128 8.32955 6.61066 8.47 6.47003L11.47 3.47003C11.5387 3.39634 11.6215 3.33724 11.7135 3.29625C11.8055 3.25526 11.9048 3.23322 12.0055 3.23144C12.1062 3.22966 12.2062 3.24819 12.2996 3.28591C12.393 3.32363 12.4778 3.37977 12.549 3.45099C12.6203 3.52221 12.6764 3.60705 12.7141 3.70043C12.7518 3.79382 12.7704 3.89385 12.7686 3.99455C12.7668 4.09526 12.7448 4.19457 12.7038 4.28657C12.6628 4.37857 12.6037 4.46137 12.53 4.53003L10.06 7.00003L12.53 9.47003C12.6704 9.61066 12.7493 9.80128 12.7493 10C12.7493 10.1988 12.6704 10.3894 12.53 10.53C12.4608 10.6001 12.3782 10.6557 12.2872 10.6935C12.1962 10.7313 12.0985 10.7505 12 10.75Z' fill='").concat(t,"'></path> </g></svg>"),resume:"<svg width='20px' height='20px' viewBox='0 0 24.00 24.00' fill='none' xmlns='http://www.w3.org/2000/svg' stroke='".concat(t,"' stroke-width='1'><g id='SVGRepo_bgCarrier' stroke-width='0'></g><g id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'></g><g id='SVGRepo_iconCarrier'> <path d='M12 20.75C10.078 20.7474 8.23546 19.9827 6.8764 18.6236C5.51733 17.2645 4.75265 15.422 4.75 13.5C4.75 13.3011 4.82902 13.1103 4.96967 12.9697C5.11032 12.829 5.30109 12.75 5.5 12.75C5.69891 12.75 5.88968 12.829 6.03033 12.9697C6.17098 13.1103 6.25 13.3011 6.25 13.5C6.25 14.6372 6.58723 15.7489 7.21905 16.6945C7.85087 17.6401 8.74889 18.3771 9.79957 18.8123C10.8502 19.2475 12.0064 19.3614 13.1218 19.1395C14.2372 18.9177 15.2617 18.37 16.0659 17.5659C16.87 16.7617 17.4177 15.7372 17.6395 14.6218C17.8614 13.5064 17.7475 12.3502 17.3123 11.2996C16.8771 10.2489 16.1401 9.35087 15.1945 8.71905C14.2489 8.08723 13.1372 7.75 12 7.75H9.5C9.30109 7.75 9.11032 7.67098 8.96967 7.53033C8.82902 7.38968 8.75 7.19891 8.75 7C8.75 6.80109 8.82902 6.61032 8.96967 6.46967C9.11032 6.32902 9.30109 6.25 9.5 6.25H12C13.9228 6.25 15.7669 7.01384 17.1265 8.37348C18.4862 9.73311 19.25 11.5772 19.25 13.5C19.25 15.4228 18.4862 17.2669 17.1265 18.6265C15.7669 19.9862 13.9228 20.75 12 20.75Z' fill='").concat(t,"'></path> <path d='M12 10.75C11.9015 10.7505 11.8038 10.7313 11.7128 10.6935C11.6218 10.6557 11.5392 10.6001 11.47 10.53L8.47 7.53003C8.32955 7.38941 8.25066 7.19878 8.25066 7.00003C8.25066 6.80128 8.32955 6.61066 8.47 6.47003L11.47 3.47003C11.5387 3.39634
211.6215 3.33724 11.7135 3.29625C11.8055 3.25526 11.9048 3.23322 12.0055 3.23144C12.1062 3.22966 12.2062 3.24819 12.2996 3.28591C12.393 3.32363 12.4778 3.37977 12.549 3.45099C12.6203 3.52221 12.6764 3.60705 12.7141 3.70043C12.7518 3.79382 12.7704 3.89385 12.7686 3.99455C12.7668 4.09526 12.7448 4.19457 12.7038 4.28657C12.6628 4.37857 12.6037 4.46137 12.53 4.53003L10.06 7.00003L12.53 9.47003C12.6704 9.61066 12.7493 9.80128 12.7493 10C12.7493 10.1988 12.6704 10.3894 12.53 10.53C12.4608 10.6001 12.3782 10.6557 12.2872 10.6935C12.1962 10.7313 12.0985 10.7505 12 10.75Z' fill='").concat(t,"'></path> </g></svg>")}}):{1:{play:"<svg width='15px' height='15px' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 8' aria-hidden='true'><polygon fill='".concat(t,"' points='0 0 0 8 7 4'/> </svg>"),pause:"<svg width='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><g id='SVGRepo_bgCarrier' stroke-width='1.5'></g><g id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'></g><g id='SVGRepo_iconCarrier'><path opacity='0.1' d='M3 12C3 4.5885 4.5885 3 12 3C19.4115 3 21 4.5885 21 12C21 19.4115 19.4115 21 12 21C4.5885 21 3 19.4115 3 12Z' fill='none'></path><path d='M14 9L14 15' stroke='".concat(t,"' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'></path><path d='M10 9L10 15' stroke='").concat(t,"' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'></path><path d='M3 12C3 4.5885 4.5885 3 12 3C19.4115 3 21 4.5885 21 12C21 19.4115 19.4115 21 12 21C4.5885 21 3 19.4115 3 12Z' stroke='").concat(t,"' stroke-width='2'></path></g></svg>"),replay:"<svg width='20px' height='20px' viewBox='0 0 24.00 24.00' fill='none' xmlns='http://www.w3.org/2000/svg' stroke='".concat(t,"' stroke-width='1'><g id='SVGRepo_bgCarrier' stroke-width='0'></g><g id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'></g><g id='SVGRepo_iconCarrier'> <path d='M12 20.75C10.078 20.7474 8.23546 19.9827 6.8764 18.6236C5.51733 17.2645 4.75265 15.422 4.75 13.5C4.75 13.3011 4.82902 13.1103 4.96967 12.9697C5.11032 12.829 5.30109 12.75 5.5 12.75C5.69891 12.75 5.88968 12.829 6.03033 12.9697C6.17098 13.1103 6.25 13.3011 6.25 13.5C6.25 14.6372 6.58723 15.7489 7.21905 16.6945C7.85087 17.6401 8.74889 18.3771 9.79957 18.8123C10.8502 19.2475 12.0064 19.3614 13.1218 19.1395C14.2372 18.9177 15.2617 18.37 16.0659 17.5659C16.87 16.7617 17.4177 15.7372 17.6395 14.6218C17.8614 13.5064 17.7475 12.3502 17.3123 11.2996C16.8771 10.2489 16.1401 9.35087 15.1945 8.71905C14.2489 8.08723 13.1372 7.75 12 7.75H9.5C9.30109 7.75 9.11032 7.67098 8.96967 7.53033C8.82902 7.38968 8.75 7.19891 8.75 7C8.75 6.80109 8.82902 6.61032 8.96967 6.46967C9.11032 6.32902 9.30109 6.25 9.5 6.25H12C13.9228 6.25 15.7669 7.01384 17.1265 8.37348C18.4862 9.73311 19.25 11.5772 19.25 13.5C19.25 15.4228 18.4862 17.2669 17.1265 18.6265C15.7669 19.9862 13.9228 20.75 12 20.75Z' fill='").concat(t,"'></path> <path d='M12 10.75C11.9015 10.7505 11.8038 10.7313 11.7128 10.6935C11.6218 10.6557 11.5392 10.6001 11.47 10.53L8.47 7.53003C8.32955 7.38941 8.25066 7.19878 8.25066 7.00003C8.25066 6.80128 8.32955 6.61066 8.47 6.47003L11.47 3.47003C11.5387 3.39634 11.6215 3.33724 11.7135 3.29625C11.8055 3.25526 11.9048 3.23322 12.0055 3.23144C12.1062 3.22966 12.2062 3.24819 12.2996 3.28591C12.393 3.32363 12.4778 3.37977 12.549 3.45099C12.6203 3.52221 12.6764 3.60705 12.7141 3.70043C12.7518 3.79382 12.7704 3.89385 12.7686 3.99455C12.7668 4.09526 12.7448 4.19457 12.7038 4.28657C12.6628 4.37857 12.6037 4.46137 12.53 4.53003L10.06 7.00003L12.53 9.47003C12.6704 9.61066 12.7493 9.80128 12.7493 10C12.7493 10.1988 12.6704 10.3894 12.53 10.53C12.4608 10.6001 12.3782 10.6557 12.2872 10.6935C12.1962 10.7313 12.0985 10.7505 12 10.75Z' fill='").concat(t,"'></path> </g></svg>"),resume:"<svg width='20px' height='20px' viewBox='0 0 24.00 24.00' fill='none' xmlns='http://www.w3.org/2000/svg' stroke='".concat(t,"' stroke-width='1'><g id='SVGRepo_bgCarrier' stroke-width='0'></g><g id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'></g><g id='SVGRepo_iconCarrier'> <path d='M12 20.75C10.078 20.7474 8.23546 19.9827 6.8764 18.6236C5.51733 17.2645 4.75265 15.422 4.7
25 13.5C4.75 13.3011 4.82902 13.1103 4.96967 12.9697C5.11032 12.829 5.30109 12.75 5.5 12.75C5.69891 12.75 5.88968 12.829 6.03033 12.9697C6.17098 13.1103 6.25 13.3011 6.25 13.5C6.25 14.6372 6.58723 15.7489 7.21905 16.6945C7.85087 17.6401 8.74889 18.3771 9.79957 18.8123C10.8502 19.2475 12.0064 19.3614 13.1218 19.1395C14.2372 18.9177 15.2617 18.37 16.0659 17.5659C16.87 16.7617 17.4177 15.7372 17.6395 14.6218C17.8614 13.5064 17.7475 12.3502 17.3123 11.2996C16.8771 10.2489 16.1401 9.35087 15.1945 8.71905C14.2489 8.08723 13.1372 7.75 12 7.75H9.5C9.30109 7.75 9.11032 7.67098 8.96967 7.53033C8.82902 7.38968 8.75 7.19891 8.75 7C8.75 6.80109 8.82902 6.61032 8.96967 6.46967C9.11032 6.32902 9.30109 6.25 9.5 6.25H12C13.9228 6.25 15.7669 7.01384 17.1265 8.37348C18.4862 9.73311 19.25 11.5772 19.25 13.5C19.25 15.4228 18.4862 17.2669 17.1265 18.6265C15.7669 19.9862 13.9228 20.75 12 20.75Z' fill='").concat(t,"'></path> <path d='M12 10.75C11.9015 10.7505 11.8038 10.7313 11.7128 10.6935C11.6218 10.6557 11.5392 10.6001 11.47 10.53L8.47 7.53003C8.32955 7.38941 8.25066 7.19878 8.25066 7.00003C8.25066 6.80128 8.32955 6.61066 8.47 6.47003L11.47 3.47003C11.5387 3.39634 11.6215 3.33724 11.7135 3.29625C11.8055 3.25526 11.9048 3.23322 12.0055 3.23144C12.1062 3.22966 12.2062 3.24819 12.2996 3.28591C12.393 3.32363 12.4778 3.37977 12.549 3.45099C12.6203 3.52221 12.6764 3.60705 12.7141 3.70043C12.7518 3.79382 12.7704 3.89385 12.7686 3.99455C12.7668 4.09526 12.7448 4.19457 12.7038 4.28657C12.6628 4.37857 12.6037 4.46137 12.53 4.53003L10.06 7.00003L12.53 9.47003C12.6704 9.61066 12.7493 9.80128 12.7493 10C12.7493 10.1988 12.6704 10.3894 12.53 10.53C12.4608 10.6001 12.3782 10.6557 12.2872 10.6935C12.1962 10.7313 12.0985 10.7505 12 10.75Z' fill='").concat(t,"'></path> </g></svg>")}}},r=function(u){var t,e,n="#000000",i="#000000",o=ttsObj.settings;null!=o&&null!==(t=o.customize)&&void 0!==t&&t.color&&(i=o.customize.color),n=null!=o&&null!==(e=o.customize)&&void 0!==e&&e.hoverTextColor?o.customize.hoverTextColor:i;var r=u.querySelector("svg");r&&(r.querySelectorAll("[fill]").forEach((function(u){"none"!==u.getAttribute("fill")&&u.setAttribute("fill",n)})),r.hasAttribute("stroke")&&r.setAttribute("stroke",n),r.querySelectorAll("[stroke]").forEach((function(u){"none"!==u.getAttribute("stroke")&&u.setAttribute("stroke",n)})))}},1522:(u,t,e)=>{e.d(t,{A:()=>l});var n=e(6756).P,i=/^(?:(en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|n
2o-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang))$|^((?:[a-z]{2,3}(?:(?:-[a-z]{3}){1,3})?)|[a-z]{4}|[a-z]{5,8})(?:-([a-z]{4}))?(?:-([a-z]{2}|\d{3}))?((?:-(?:[\da-z]{5,8}|\d[\da-z]{3}))*)?((?:-[\da-wy-z](?:-[\da-z]{2,8})+)*)?(-x(?:-[\da-z]{1,8})+)?$|^(x(?:-[\da-z]{1,8})+)$/i,o=function(u){return"string"==typeof u||u instanceof String};const r={trim:function(u){return o(u)?u.trim():""},isNan:function(u){return"number"==typeof u&&isNaN(u)},isNil:function(u){return null==u},isObject:function(u){return"[object Object]"===Object.prototype.toString.call(u)},size:function(u){return u&&Array.isArray(u)&&u.length?u.length:0},isString:o,splitSentences:n,validateLocale:function(u){return"string"==typeof u&&i.test(u)}};var D={};function a(u,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(u,n.key,n)}}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var s=function(){function u(){!function(u,t){if(!(u instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),this.browserSupport="speechSynthesis"in window&&"SpeechSynthesisUtterance"in window,this.synthesisVoice=null}var t,e,n;return t=u,e=[{key:"init",value:function(){var u=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(e,n){u.browserSupport||n("Your browser does not support Speech Synthesis");var i=(0,r.isNil)(t.listeners)?{}:t.listeners,o=!!(0,r.isNil)(t.splitSentences)||t.splitSentences,D=(0,r.isNil)(t.lang)?void 0:t.lang,a=(0,r.isNil)(t.volume)?1:t.volume,s=(0,r.isNil)(t.rate)?1:t.rate,l=(0,r.isNil)(t.pitch)?1:t.pitch,F=(0,r.isNil)(t.voice)?void 0:t.voice;
2Object.keys(i).forEach((function(u){var t=i[u];"onvoiceschanged"!==u&&(speechSynthesis[u]=function(u){t&&t(u)})})),u._loadVoices().then((function(t){i.onvoiceschanged&&i.onvoiceschanged(t),!(0,r.isNil)(D)&&u.setLanguage(D),!(0,r.isNil)(F)&&u.setVoice(F),!(0,r.isNil)(a)&&u.setVolume(a),!(0,r.isNil)(s)&&u.setRate(s),!(0,r.isNil)(l)&&u.setPitch(l),!(0,r.isNil)(o)&&u.setSplitSentences(o),e({voices:t,lang:u.lang,voice:u.voice,volume:u.volume,rate:u.rate,pitch:u.pitch,splitSentences:u.splitSentences,browserSupport:u.browserSupport})})).catch((function(u){n(u)}))}))}},{key:"_fetchVoices",value:function(){return new Promise((function(u,t){setTimeout((function(){var e=speechSynthesis.getVoices();return(0,r.size)(e)>0?u(e):t("Could not fetch voices")}),100)}))}},{key:"_loadVoices",value:function(){var u=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this._fetchVoices().catch((function(e){if(0===t)throw e;return u._loadVoices(t-1)}))}},{key:"hasBrowserSupport",value:function(){return this.browserSupport}},{key:"setVoice",value:function(u){var t,e=speechSynthesis.getVoices();if((0,r.isString)(u)&&(t=e.find((function(t){return t.name===u}))),(0,r.isObject)(u)&&(t=u),!t)throw"Error setting voice. The voice you passed is not valid or the voices have not been loaded yet.";this.synthesisVoice=t}},{key:"setLanguage",value:function(u){if(u=u.replace("_","-"),!(0,r.validateLocale)(u))throw"Error setting language. Please verify your locale is BCP47 format (http://schneegans.de/lv/?tags=es-FR&format=text)";this.lang=u}},{key:"setVolume",value:function(u){if(u=parseFloat(u),!(!(0,r.isNan)(u)&&u>=0&&u<=1))throw"Error setting volume. Please verify your volume value is a number between 0 and 1.";this.volume=u}},{key:"setRate",value:function(u){if(u=parseFloat(u),!(!(0,r.isNan)(u)&&u>=0&&u<=10))throw"Error setting rate. Please verify your volume value is a number between 0 and 10.";this.rate=u}},{key:"setPitch",value:function(u){if(u=parseFloat(u),!(!(0,r.isNan)(u)&&u>=0&&u<=2))throw"Error setting pitch. Please verify your pitch value is a number between 0 and 2.";this.pitch=u}},{key:"setSplitSentences",value:function(u){this.splitSentences=u}},{key:"speak",value:function(u){var t=this;return new Promise((function(e,n){var i=u.text,o=u.listeners,D=void 0===o?{}:o,a=u.queue,s=void 0===a||a,l=(0,r.trim)(i);(0,r.isNil)(l)&&e(),!s&&t.cancel();var F=[],c=t.splitSentences?(0,r.splitSentences)(l):[l];c.forEach((function(u,i){var o=i===(0,r.size)(c)-1,a=new SpeechSynthesisUtterance;t.synthesisVoice&&(a.voice=t.synthesisVoice),t.lang&&(a.lang=t.lang),t.volume&&(a.volume=t.volume),t.rate&&(a.rate=t.rate),t.pitch&&(a.pitch=t.pitch),a.text=u,Object.keys(D).forEach((function(u){var t=D[u];a[u]=function(i){t&&t(i),"onerror"===u&&n({utterances:F,lastUtterance:a,error:i}),"onend"===u&&o&&e({utterances:F,lastUtterance:a})}})),F.push(a),speechSynthesis.speak(a)}))}))}},{key:"pending",value:function(){return speechSynthesis.pending}},{key:"paused",value:function(){return speechSynthesis.paused}},{key:"speaking",value:function(){return speechSynthesis.speaking}},{key:"pause",value:function(){speechSynthesis.pause()}},{key:"resume",value:function(){speechSynthesis.resume()}},{key:"cancel",value:function(){speechSynthesis.cancel()}}],e&&a(t.prototype,e),n&&a(t,n),u}();const l=s},4060:(u,t,e)=>{e.d(t,{A:()=>Su});var n=e(1522);function i(u){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},i(u)}function o(u,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(u,r(n.key),n)}}function r(u){var t=function(u,t){if("object"!=i(u)||!u)return u;var e=u[Symbol.toPrimitive];if(void 0!==e){var n=e.call(u,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(u)}(u,"string");return"symbol"==i(t)?t:t+""}function D(u,t,e){a(u,t),t.set(u,e)}function a(u,t){if(t.has(u))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(u,t){return u.get(F(u,t))}function l(u,t,e){return u.set(F(u,t),e),e}function F(u,t,e){if("function"==typeof u?u===t:u.has(t))return arguments.length<3?t:e;throw new TypeError("Private element is not present on this object")}var c=new WeakMap,d=new WeakMap,C=new WeakMap,h=new WeakMap,E=new WeakMap,A=new WeakMap,v=new WeakMap,f=new WeakSet,p=function(){return u=function u(t,e,n,i){var o,s;!function(u,t){if(!(u instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a(o=this,s=f),s.add(o),D(this,c,""),D(this,d,{}),function(u,t,e){(t=r(t))in u?Object.defineProperty(u,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):u[t]=e}(this,"voices",[]),D(this,C,"Google UK English Female"),D(this,h,"en-GB"),D(this,E,"en-GB"),D(this,A,"Google UK English Female"),D(this,v,[]),l(d,this,t),this.voices=e,n&&l(E,this,n),i&&l(A,this,i),this.defineVoiceAndLang(i,n)},t=[{key:"isAndroid",value:function(){var u=navigator.userAgent.toLowerCase().indexOf("android")>-1;return!!u}},{key:"getLanguage",value:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s(C,this),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s(h,this);return s(h,this)===t||this.defineVoiceAndLang(u,t),s(h,this)}},{key:"getVoice",value:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s(C,this),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s(h,this);return s(C,this)===u||this.defineVoiceAndLang(u,t),s(C,this)}},{key:"setLanguage",value:function(u,t){var e=this,n=!1;return this.voices.length?(Object.values(this.voices).map((function(t){var i=new RegExp(u,"gi");null!==t.lang.match(i)&&t.name&&(l(h,e,t.lang),n=!0)})),{lang:s(h,this),isSupported:n}):{lang:s(h,this),isSupported:n}}},{key:"setVoice",value:function(u){l(C,this,u)}},{key:"getVoiceByLangCode",value:function(u){for(var t=0;t<this.voices.length;t++){var e=this.voices[t];if(e.lang===u)return e.name}return!1}},{key:"defineVoiceAndLang",value:function(u,t){var e,n="",i=u||s(A,this),o=t||s(E,this),r=F(f,this,g).call(this,o),D=F(f,this,m).call(this,r);if(D.length>1)for(var a=0;a<D.length;a++){if(n=D[a].lang,e=D[a].name,i===D[a].name){l(C,this,e),l(h,this,n);break}l(C,this,e),l(h,this,n)}else 1===D.length?(l(C,this,D[0].name),l(h,this,D[0].lang)):(l(C,this,u),l(h,this,t))}},{key:"getVoices",value:function(){return this.voices}},{key:"validateCountryCode",value:function(u){for(var t=this.voices,e=0;e<t.length;e++){var n=t[e].lang;if((n=F(f,this,g).call(this,n))==u||this.aliasCountryCode(u))return!0}return!1}},{key:"aliasCountryCode",value:function(u){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e={es:["es","ca"]};for(var n in e)if(e[n].includes(u))return!!t||n;return!t&&u}}],t&&o(u.prototype,t),e&&o(u,e),Object.defineProperty(u,"prototype",{writable:!1}),u;var u,t,e}();function g(u){return u&&-1!==u.indexOf("-")?u.split("-")[0]:u&&-1!==u.indexOf("_")?u.split("_")[0]:u}function m(u){var t=this;return l(v,this,[]),Object.values(this.voices).map((function(e){var n=new RegExp("^"+u,"i");null!==e.lang.match(n)&&e.name&&s(v,t).push(e)})),s(v,this)}window.BrowserSupport=p;var B=e(1111),y=e(6379),b=e(6756);function w(u){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},w(u)}function _(u,t){var e=Object.keys(u);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(u);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(u,t).enumerable}))),e.push.apply(e,n)}return e}function S(u){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};
2t%2?_(Object(e),!0).forEach((function(t){k(u,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(e)):_(Object(e)).forEach((function(t){Object.defineProperty(u,t,Object.getOwnPropertyDescriptor(e,t))}))}return u}function k(u,t,e){return(t=function(u){var t=function(u,t){if("object"!=w(u)||!u)return u;var e=u[Symbol.toPrimitive];if(void 0!==e){var n=e.call(u,t||"default");if("object"!=w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(u)}(u,"string");return"symbol"==w(t)?t:t+""}(t))in u?Object.defineProperty(u,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):u[t]=e,u}var x=("undefined"!=typeof wp&&wp.i18n?wp.i18n:{__:function(u){return u}}).__,T="atlasvoice-selection-control",L="atlasvoice-selection-tip",j="atlasvoice-selection-badge",O="atlasvoice-selection-styles",M="atlasvoice_selection_tip_seen",V="atlasvoice_selection_badge_hidden";function I(){return window.ttsObj&&window.ttsObj.settings&&window.ttsObj.settings.highlight||{}}function P(){return!!I().tta__selection_listen_enabled}function R(){var u=I().tta__selection_announce;return-1!==["tip","badge","both","off"].indexOf(u)?u:"tip"}function W(){var u=window.ttsObj&&window.ttsObj.settings&&window.ttsObj.settings.customize||{};return{background:u.backgroundColor||"#184c53",color:u.color||"#ffffff"}}function N(){var u={listen:x("Listen","text-to-audio"),fromHere:x("From here","text-to-audio"),listenTitle:x("Listen to the selected text","text-to-audio"),fromHereTitle:x("Listen from here to the end","text-to-audio"),tip:x("Tip: select any text in the article to listen to just that part.","text-to-audio"),badge:x("Select any text to listen to it","text-to-audio"),dismiss:x("Dismiss","text-to-audio")};return window.wp&&window.wp.hooks?S(S({},u),wp.hooks.applyFilters("tts_selection_control_labels",u)||{}):u}function H(){return!(!window.matchMedia||!window.matchMedia("(pointer: coarse)").matches)}function Z(){if(!document.getElementById(O)){var u=H()?"12px 16px":"8px 12px",t="#"+T+"{position:absolute;z-index:2147483000;display:flex;align-items:center;gap:2px;padding:4px;border-radius:22px;box-shadow:0 2px 10px rgba(0,0,0,.28);font-size:13px;line-height:1;user-select:none;-webkit-user-select:none;opacity:0;transform:scale(.96);transition:opacity .12s ease-out,transform .12s ease-out;}#"+T+".atlasvoice-sel-in{opacity:1;transform:scale(1);}#"+T+" button{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:"+u+";border-radius:18px;white-space:nowrap;}#"+T+' button[data-action="listen"]{background:rgba(255,255,255,.16);font-weight:600;}#'+T+" button:hover,#"+T+" button:focus-visible{background:rgba(255,255,255,.26);outline:none;}#"+T+" .atlasvoice-sel-divider{width:1px;height:18px;background:rgba(255,255,255,.25);margin:0 2px;flex:0 0 auto;}#"+T+" svg{flex:0 0 auto;}#"+L+"{position:absolute;z-index:2147483000;display:flex;align-items:flex-start;gap:9px;max-width:300px;padding:11px 12px;border-radius:10px;box-shadow:0 2px 10px rgba(0,0,0,.28);font-size:13px;line-height:1.45;opacity:0;transition:opacity .15s ease-out;}#"+L+".atlasvoice-sel-in{opacity:1;}#"+L+" button{border:0;background:transparent;color:inherit;cursor:pointer;padding:2px;line-height:0;opacity:.75;}#"+L+" button:hover,#"+L+" button:focus-visible{opacity:1;outline:none;}#"+j+"{position:fixed;left:0;top:50%;transform:translateY(-50%);z-index:2147482999;display:flex;align-items:center;border-radius:0 22px 22px 0;box-shadow:0 2px 8px rgba(0,0,0,.22);font-size:13px;line-height:1.35;overflow:hidden;user-select:none;-webkit-user-select:none;}#"+j+" .atlasvoice-badge-main{display:inline-flex;align-items:center;gap:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:11px 12px;min-height:44px;}#"+j+" .atlasvoice-badge-text{max-width:0;opacity:0;white-space:nowrap;overflow:hidden;transition:max-width .18s ease-out,opacity .18s ease-out,margin .18s ease-out;}#"+j+".atlasvoice-badge-open .atlasvoice-badge-text,#"+j+":hover .atlasvoice-badge-text,#"+j+":focus-within .atlasvoice-badge-text{max-width:180px;opacity:1;margin-left:9px;}#"+j+" .atlasvoice-badge-close{display:none;border:0;background:transparent;color:inherit;cursor:pointer;padding:6px 10px 6px 2px;line-height:0;opacity:.75;}#"+j+".atlasvoice-badge-open .atlasvoice-badge-close,#"+j+":hover .atlasvoice-badge-close,#"+j+":focus-within .atlasvoice-badge-close{display:inline-flex;}#"+j+" .atlasvoice-badge-close:hover,#"+j+" .atlasvoice-badge-close:focus-visible{opacity:1;outline:none;}@media (prefers-reduced-motion: reduce){#"+T+",#"+L+"{transition:none;transform:none;}#"+j+" .atlasvoice-badge-text{transition:none;}}@media (forced-colors: active){#"+T+",#"+L+",#"+j+"{border:1px solid ButtonText;}}",e=document.createElement("style");e.id=O,e.textContent=t,(document.head||document.documentElement).appendChild(e)}}var G='<svg width="12" height="12" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
2<path fill="currentColor" d="M18.3 5.7L12 12l6.3 6.3-1.4 1.4L10.6 13.4 4.3 19.7 2.9 18.3 9.2 12 2.9 5.7l1.4-1.4 6.3 6.3 6.3-6.3z"/></svg>',z='<svg width="18" height="18" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" d="M4 7h16M4 12h10"/><polygon fill="currentColor" points="14 14 14 23 16.6 20.2 19.1 23 20.6 21.5 18 18.8 21 16"/></svg>';function Y(u){var t=u?1===u.nodeType?u:u.parentElement:null;return t?t.closest('[class*="tts_content_wrapper_"]'):null}function X(u,t){try{return window[u].getItem(t)}catch(u){return null}}function J(u,t,e){try{window[u].setItem(t,e)}catch(u){}}function U(u){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},U(u)}function q(u,t){var e="undefined"!=typeof Symbol&&u[Symbol.iterator]||u["@@iterator"];if(!e){if(Array.isArray(u)||(e=function(u,t){if(u){if("string"==typeof u)return Q(u,t);var e={}.toString.call(u).slice(8,-1);return"Object"===e&&u.constructor&&(e=u.constructor.name),"Map"===e||"Set"===e?Array.from(u):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Q(u,t):void 0}}(u))||t&&u&&"number"==typeof u.length){e&&(u=e);var n=0,i=function(){};return{s:i,n:function(){return n>=u.length?{done:!0}:{done:!1,value:u[n++]}},e:function(u){throw u},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,D=!1;return{s:function(){e=e.call(u)},n:function(){var u=e.next();return r=u.done,u},e:function(u){D=!0,o=u},f:function(){try{r||null==e.return||e.return()}finally{if(D)throw o}}}}function Q(u,t){(null==t||t>u.length)&&(t=u.length);for(var e=0,n=Array(t);e<t;e++)n[e]=u[e];return n}function K(u,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(u,$(n.key),n)}}function $(u){var t=function(u,t){if("object"!=U(u)||!u)return u;var e=u[Symbol.toPrimitive];if(void 0!==e){var n=e.call(u,t||"default");if("object"!=U(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(u)}(u,"string");return"symbol"==U(t)?t:t+""}var uu="atlasvoice-word",tu="atlasvoice-sentence",eu="atlasvoice-reading-dim",nu=!1,iu="sentence",ou="#a5abf0",ru="#202124",Du="#e8e7fe",au=!0,su=.7,lu=!0;function Fu(){return window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth"}var cu=!0;function du(){cu=!1}function Cu(u){if(u&&"function"==typeof u.getBoundingClientRect){var t=u.getBoundingClientRect(),e=window.innerHeight||document.documentElement.clientHeight||0;if(e){var n=.82*e;if(!cu&&t.top>=0&&t.top<=n&&(cu=!0),cu&&(t.top<0||t.top>n)){var i=t.top-.3*e;Math.abs(i)>4&&window.scrollBy({top:i,behavior:Fu()})}}}}if("undefined"!=typeof window&&!window.__ttsAutoScrollGuard){window.__ttsAutoScrollGuard=!0;var hu={passive:!0,capture:!0};window.addEventListener("wheel",du,hu),window.addEventListener("touchmove",du,hu),window.addEventListener("keydown",(function(u){var t=u.target;t&&("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)||-1!==["PageUp","PageDown","Home","End","ArrowUp","ArrowDown"," ","Spacebar"].indexOf(u.key)&&du()}),!0)}function Eu(u){return(u||"").toLowerCase().replace(/[â-â]/g,"-").replace(/[ââââ]/g,"'").replace(/[ââââ]/g,'"').replace(/Â /g," ")}function Au(u){return(u||"").replace(/^(listen|pause|resume|replay)\s+/,"")}var vu=function(){function u(t){var e,n;!function(u,t){if(!(u instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),this.buttonId=t,this.cfg=(e=window.ttsObj&&window.ttsObj.settings&&window.ttsObj.settings.highlight||{},(n={enabled:void 0!==e.tta__highlight_enabled?!!e.tta__highlight_enabled:nu,mode:e.tta__highlight_mode||iu,wordBg:e.tta__highlight_word_bg||ou,wordColor:e.tta__highlight_word_color||ru,sentenceBg:e.tta__highlight_sentence_bg||Du,dimEnabled:void 0!==e.tta__highlight_dim_enabled?!!e.tta__highlight_dim_enabled:au,dimOpacity:void 0!==e.tta__highlight_dim_opacity?parseFloat(e.tta__highlight_dim_opacity):su,autoscroll:void 0!==e.tta__highlight_autoscroll?!!e.tta__highlight_autoscroll:lu}).wantWord="sentence"!==n.mode,n.wantSentence="word"!==n.mode,n),this.root=document.querySelector(".tts_content_wrapper_"+t),this.title=this._resolveTitle(),this.supported="undefined"!=typeof Highlight&&window.CSS&&CSS.highlights,this.nodes=[],this.text="",this.lower="",this.cursor=0,this.gotWordEvent=!1,this.fallbackActive=!1,this.fallbackTimer=null,this._lastSentence=null,this._wordCursor=0,this.cfg.enabled&&(function(){if(!document.getElementById("atlasvoice-highlight-styles")){var u=[""," p"," li"," span"," a"," h1"," h2"," h3"," h4"," h5"," h6"," blockquote"," td"," th"].map((function(u){return".atlasvoice-reading-dim"+u})).join(","),t="::highlight(atlasvoice-sentence){background-color:var(--atlasvoice-hl-sentence-bg,#e8e7fe);}::highlight(atlasvoice-word){background-color:var(--atlasvoice-hl-word-bg,#a5abf0);color:var(--atlasvoice-hl-word-color,#202124);}"+u+"{color:var(--atlasvoice-dim-color,rgba(60,64,67,0.7)) !important;transition:color .25s ease;}@media (forced-colors: active){::highlight(atlasvoice-sentence){background-color:Highlight;color:HighlightText;}::highlight(atlasvoice-word){background-color:Highlight;color:HighlightText;}"+u+"{color:CanvasText !important;}}",e=document.createElement("style");e.id="atlasvoice-highlight-styles",e.textContent=t,(document.head||document.documentElement).appendChild(e)}}(),function(u){var t=document.documentElement;if(t&&t.style){t.style.setProperty("--atlasvoice-hl-word-bg",u.wordBg),t.style.setProperty("--atlasvoice-hl-word-color",u.wordColor),t.style.setProperty("--atlasvoice-hl-sentence-bg",u.sentenceBg);var e=isNaN(u.dimOpacity)?su:Math.max(.1,Math.min(.85,u.dimOpacity));t.style.setProperty("--atlasvoice-dim-color","rgba(60, 64, 67, "+e+")")}}(this.cfg)),this.root&&this._index(),this.supported&&(this._word=CSS.highlights.get(uu)||new Highlight,CSS.highlights.set(uu,this._word),this._sentence=CSS.highlights.get(tu)||new Highlight,CSS.highlights.set(tu,this._sentence))}return t=u,n=[{key:"splitSentences",value:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,b.P)(u)}},{key:"get",value:function(u){return pu(u)}},{key:"registerSentenceRenderer",value:function(t){u._sentenceRenderer=t||null}}],(e=[{key:"_resolveTitle",value:function(){return Au(Eu(((window.TTS&&window.TTS.extra&&window.TTS.extra[this.buttonId]||{}).title||"").trim())).replace(/(?:[\0-\(\*-\/:-@\[\\\^-`\{-\xA9\xAB-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u
20530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u065F\u066A-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07BF\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u088F-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0965\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09E5\u09F2\u09F3\u09FA\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A65\u0A70\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AE5\u0AF0-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B65\u0B70\u0B78-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0BE5\u0BF3-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5C\u0C5E\u0C5F\u0C62-\u0C65\u0C70-\u0C77\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDC\u0CDF\u0CE2-\u0CE5\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57\u0D62-\u0D65\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DE5\u0DF0-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F1F\u0F34-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u104A-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u1368\u137D-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u17DF\u17EA-\u17EF\u17FA-\u180F\u181A-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19FF\u1A17-\u1A1F\u1A55-\u1A7F\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B4F\u1B5A-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BFF\u1C24-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C8B-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u206F\u2072\u2073\u207A-\u207E\u208A-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A-\u245F\u249C-\u24E9\u2500-\u2775\u2794-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFC\u2CFE\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u3004\u3008-\u3020\u302A-\u3030\u3036\u3037\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u3191\u3196-\u319F\u31C0-\u31EF\u3200-\u321F\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA66F-\uA67E\uA69E\uA69F\uA6F0-\uA716\uA720\uA721\uA789\uA78A\uA7CE\uA7CF\uA7D2\uA7D4\uA7DD-\uA7F1\uA802\uA806\uA80B\u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uDEEF\uDEFA-\uDFFF]|\uD839[\uDC00-\uDCCF\uDCEC-\uDCEF\uDCFA-\uDDCF\uDDEE\uDDEF\uDDFB-\uDFDF\uDFE7\uDFEC\uDFEF\uDFFF]|\uD83A[\uDCC5\uDCC6\uDCD0-\uDCFF\uDD44-\uDD4A\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDC70\uDCAC\uDCB0\uDCB5-\uDD00\uDD2E\uDD3E-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEE0-\uDEFF]|\uD86D[\uDF3A-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFEF]|\uD87B[\uDE5E-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDF4F]|\uD888[\uDFB0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+$/,"")}},{key:"_index",value:function(){this.nodes=[];for(var u,t=0,e=document.createTreeWalker(this.root,NodeFilter.SHOW_TEXT,{acceptNode:function(u){return u.parentElement&&u.parentElement.closest("tts-play-button, .tts__listent_content, script, style")?NodeFilter.FILTER_REJECT:u.nodeValue?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});u=e.nextNode();){var n=u.nodeValue.length;this.nodes.push({node:u,start:t,end:t+n}),t+=n}this.text=this.nodes.map((function(u){return u.node.nodeValue})).join(""),this.lower=Eu(this.text)}},{key:"spanForRange",value:function(u){if(!u||!this.nodes.length)return null;var t,e=-1,n=-1,i=q(this.nodes);try{for(i.s();!(t=i.n()).done;){var o=t.value,r=o.node.nodeValue.length,D=void 0,a=void 0;try{D=-1===u.comparePoint(o.node,r),a=1===u.comparePoint(o.node,0)}catch(u){continue}
2if(!D){if(a)break;-1===e&&(e=o.start+(u.startContainer===o.node?u.startOffset:0)),n=o.start+(u.endContainer===o.node?u.endOffset:r)}}}catch(u){i.e(u)}finally{i.f()}return-1===e||n<=e?null:{start:e,end:n,text:this.text.slice(e,n)}}},{key:"snapSpanToWords",value:function(u){for(var t=u.start,e=u.end,n=function(u){return!!u&&!/\s/.test(u)};t>0&&n(this.text[t-1])&&n(this.text[t]);)t--;for(;e<this.text.length&&n(this.text[e-1])&&n(this.text[e]);)e++;return{start:t,end:e,text:this.text.slice(t,e)}}},{key:"estimateTimeRange",value:function(u,t,e){var n=this.text.length;return n&&e&&isFinite(e)?{tStart:Math.max(0,Math.min(u,n)/n*e),tEnd:Math.min(e,Math.min(t,n)/n*e),estimated:!0}:null}},{key:"_rangeAt",value:function(u,t){var e=this.nodes.find((function(t){return u>=t.start&&u<t.end})),n=this.nodes.find((function(u){return t>u.start&&t<=u.end}))||e;if(!e||!n)return null;var i=document.createRange();return i.setStart(e.node,u-e.start),i.setEnd(n.node,Math.min(t-n.start,n.node.nodeValue.length)),i}},{key:"syncSentence",value:function(u){var t=this;if(this.cfg.enabled&&this.root){this.cfg.dimEnabled&&this.root.classList.add(eu);var e=Au(Eu((u||"").trim()));if(e){if(this.title||(this.title=this._resolveTitle()),this.title&&e.replace(/(?:[\0-\(\*-\/:-@\[\\\^-`\{-\xA9\xAB-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u0530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u065F\u066A-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07BF\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u088F-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0965\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09E5\u09F2\u09F3\u09FA\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A65\u0A70\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AE5\u0AF0-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B65\u0B70\u0B78-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0BE5\u0BF3-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5C\u0C5E\u0C5F\u0C62-\u0C65\u0C70-\u0C77\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDC\u0CDF\u0CE2-\u0CE5\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57\u0D62-\u0D65\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DE5\u0DF0-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F1F\u0F34-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u104A-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u1368\u137D-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u17DF\u17EA-\u17EF\u17FA-\u180F\u181A-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19FF\u1A17-\u1A1F\u1A55-\u1A7F\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B4F\u1B5A-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BFF\u1C24-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C8B-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u206F\u2072\u2073\u207A-\u207E\u208A-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A-\u245F\u249C-\u24E9\u2500-\u2775\u2794-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFC\u2CFE\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D
27F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u3004\u3008-\u3020\u302A-\u3030\u3036\u3037\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u3191\u3196-\u319F\u31C0-\u31EF\u3200-\u321F\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA66F-\uA67E\uA69E\uA69F\uA6F0-\uA716\uA720\uA721\uA789\uA78A\uA7CE\uA7CF\uA7D2\uA7D4\uA7DD-\uA7F1\uA802\uA806\uA80B\uA823-\uA82F\uA836-\uA83F\uA874-\uA881\uA8B4-\uA8CF\uA8DA-\uA8F1\uA8F8-\uA8FA\uA8FC\uA8FF\uA926-\uA92F\uA947-\uA95F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\uDFEF\uDFFF]|\uD83A[\uDCC5\uDCC6\uDCD0-\uDCFF\uDD44-\uDD4A\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDC70\uDCAC\uDCB0\uDCB5-\uDD00\uDD2E\uDD3E-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEE0-\uDEFF]|\uD86D[\uDF3A-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFEF]|\uD87B[\uDE5E-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDF4F]|\uD888[\uDFB0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+$/,"")===this.title)return this._lastSentence=null,void this.clear();var n=e.slice(0,Math.min(24,e.length)).replace(/(?:[\0-\(\*-\/:-@\[\\\^-`\{-\xA9\xAB-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u
20530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u065F\u066A-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07BF\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u088F-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0965\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09E5\u09F2\u09F3\u09FA\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A65\u0A70\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AE5\u0AF0-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B65\u0B70\u0B78-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0BE5\u0BF3-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5C\u0C5E\u0C5F\u0C62-\u0C65\u0C70-\u0C77\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDC\u0CDF\u0CE2-\u0CE5\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57\u0D62-\u0D65\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DE5\u0DF0-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F1F\u0F34-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u104A-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u1368\u137D-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u17DF\u17EA-\u17EF\u17FA-\u180F\u181A-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19FF\u1A17-\u1A1F\u1A55-\u1A7F\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B4F\u1B5A-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BFF\u1C24-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C8B-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u206F\u2072\u2073\u207A-\u207E\u208A-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A-\u245F\u249C-\u24E9\u2500-\u2775\u2794-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFC\u2CFE\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u3004\u3008-\u3020\u302A-\u3030\u3036\u3037\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u3191\u3196-\u319F\u31C0-\u31EF\u3200-\u321F\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA66F-\uA67E\uA69E\uA69F\uA6F0-\uA716\uA720\uA721\uA789\uA78A\uA7CE\uA7CF\uA7D2\uA7D4\uA7DD-\uA7F1\uA802\uA806\uA80B\uA823-\uA82F\uA836-\uA83F\uA874-\uA881\uA8B4-\uA8CF\uA8DA-\uA8F1\uA8F8-\uA8FA\uA8FC\uA8FF\uA926-\uA92F\uA947-\uA95F\uA97D-\uA983\uA9B3-\uA9CE\uA9DA-\uA9DF\uA9E5\uA9FF\uAA29-\uAA3F\uAA43\uAA4C-\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAA7B-\uAA7D\uAAB0\uAAB2-\uAA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2E\uDD3E-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEE0-\uDEFF]|\uD86D[\uDF3A-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFEF]|\uD87B[\uDE5E-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDF4F]|\uD888[\uDFB0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+$/,"");if(n){var i=this.lower.indexOf(n,Math.max(0,this.cursor-4));if(-1===i&&(i=this.lower.indexOf(n)),-1===i)return this._lastSentence=null,void this.clear();this.cursor=i,this._lastSentence={start:i,end:Math.min(i+e.length,this.text.length)},this._wordCursor=i,(this.cfg.wantSentence||this.fallbackActive)&&this._paintSentence(),!this.cfg.wantWord||this.gotWordEvent||this.fallbackActive||(clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout((function(){t.gotWordEvent||(t.fallbackActive=!0,t._paintSentence())}),1200))}}}}},{key:"_paintSentence",value:function(){if(this._lastSentence){var t=this._rangeAt(this._lastSentence.start,this._lastSentence.end);if(t){this._sentenceRange=t;var e=!1,n=u._sentenceRenderer;if(n)try{e=!!n.paint(this,t)}catch(u){e=!1}this.supported&&this._sentence&&(this._sentence.clear(),e||this._sentence.add(t)),!this.cfg.autoscroll||this.cfg.wantWord&&!this.fallbackActive||Cu(t.
2startContainer.parentElement)}}}},{key:"highlightWord",value:function(u){if(this.cfg.enabled&&this.cfg.wantWord&&this.supported&&this.root&&this._word){this.gotWordEvent=!0,this.fallbackTimer&&(clearTimeout(this.fallbackTimer),this.fallbackTimer=null);var t=(u||"").trim().replace(/^(?:[\0-\/:-@\[-`\{-\xA9\xAB-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u0530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u065F\u066A-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07BF\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u088F-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0965\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09E5\u09F2\u09F3\u09FA\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A65\u0A70\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AE5\u0AF0-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B65\u0B70\u0B78-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0BE5\u0BF3-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5C\u0C5E\u0C5F\u0C62-\u0C65\u0C70-\u0C77\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDC\u0CDF\u0CE2-\u0CE5\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57\u0D62-\u0D65\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DE5\u0DF0-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F1F\u0F34-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u104A-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u1368\u137D-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u17DF\u17EA-\u17EF\u17FA-\u180F\u181A-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19FF\u1A17-\u1A1F\u1A55-\u1A7F\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B4F\u1B5A-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BFF\u1C24-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C8B-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u206F\u2072\u2073\u207A-\u207E\u208A-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A-\u245F\u249C-\u24E9\u2500-\u2775\u2794-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFC\u2CFE\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u3004\u3008-\u3020\u302A-\u3030\u3036\u3037\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u3191\u3196-\u319F\u31C0-\u31EF\u3200-\u321F\u322A-\u3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xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u
20530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u065F\u066A-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07BF\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u088F-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0965\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09E5\u09F2\u09F3\u09FA\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A65\u0A70\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AE5\u0AF0-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B65\u0B70\u0B78-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0BE5\u0BF3-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5C\u0C5E\u0C5F\u0C62-\u0C65\u0C70-\u0C77\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDC\u0CDF\u0CE2-\u0CE5\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57\u0D62-\u0D65\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DE5\u0DF0-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F1F\u0F34-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u104A-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u1368\u137D-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u17DF\u17EA-\u17EF\u17FA-\u180F\u181A-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19FF\u1A17-\u1A1F\u1A55-\u1A7F\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B4F\u1B5A-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BFF\u1C24-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C8B-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u206F\u2072\u2073\u207A-\u207E\u208A-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A-\u245F\u249C-\u24E9\u2500-\u2775\u2794-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFC\u2CFE\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u3004\u3008-\u3020\u302A-\u3030\u3036\u3037\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u3191\u3196-\u319F\u31C0-\u31EF\u3200-\u321F\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA66F-\uA67E\uA69E\uA69F\uA6F0-\uA716\uA720\uA721\uA789\uA78A\uA7CE\uA7CF\uA7D2\uA7D4\uA7DD-\uA7F1\uA802\uA806\uA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EC-\uDEEF\uDEFA-\uDFFF]|\uD839[\uDC00-\uDCCF\uDCEC-\uDCEF\uDCFA-\uDDCF\uDDEE\uDDEF\uDDFB-\uDFDF\uDFE7\uDFEC\uDFEF\uDFFF]|\uD83A[\uDCC5\uDCC6\uDCD0-\uDCFF\uDD44-\uDD4A\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDC70\uDCAC\uDCB0\uDCB5-\uDD00\uDD2E\uDD3E-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEE0-\uDEFF]|\uD86D[\uDF3A-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFEF]|\uD87B[\uDE5E-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDF4F]|\uD888[\uDFB0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+$/g,"");if(t&&this._lastSentence){var e=Eu(t),n=this._lastSentence.start,i=Math.min(this._lastSentence.end+20,this.text.length),o=this.lower.indexOf(e,Math.max(n,this._wordCursor));if((-1===o||o>=i)&&(o=this.lower.indexOf(e,n)),!(-1===o||o>=i)){var r=this._rangeAt(o,o+t.length);r&&(this._word.clear(),this._word.add(r),this._wordCursor=o+t.length,this.cfg.autoscroll&&Cu(r.startContainer.parentElement))}}}}},{key:"clear",value:function(){this.supported&&(this._word&&this._word.clear(),this._sentence&&this._sentence.clear());var t=u._sentenceRenderer;if(t&&"function"==typeof t.clear)try{t.clear(this)}catch(u){}this._sentenceRange=null}},{key:"stop",value:function(){this.clear(),this.root&&this.root.classList.remove(eu),this.cursor=0,this.gotWordEvent=!1,this.fallbackActive=!1,this.fallbackTimer&&(clearTimeout(this.fallbackTimer),this.fallbackTimer=null),this._lastSentence=null,this._wordCursor=0}}])&&K(t.prototype,e),n&&K(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),fu={};function pu(u){return fu[u]||(fu[u]=new vu(u)),fu[u]}"undefined"!=typeof window&&(window.AtlasVoiceHighlighter=vu),window.wp&&window.wp.hooks&&!window.__ttsHighlighterReady&&(window.__ttsHighlighterReady=!0,wp.hooks.addAction("tts_high_light_sentence","tts/highlighter",(function(u,t){pu(t).syncSentence(u)})),wp.hooks.addAction("tts_highlight_word","tts/highlighter",(function(u){u&&null!=u.buttonId&&pu(u.buttonId).highlightWord(u.word)})),wp.hooks.addAction("tts_highlight_clear","tts/highlighter",(function(u){pu(u).stop()}))),"undefined"!=typeof window&&"undefined"!=typeof document&&function(u){if("undefined"!=typeof window&&!window.__ttsSelectionControlReady){window.__ttsSelectionControlReady=!0;var t=null,e=null,n=null;document.addEventListener("selectionchange",(function(){clearTimeout(n),n=setTimeout(s,180)})),document.addEventListener("keydown",(function(u){"Escape"===u.key&&e&&a()}));var i=!1;document.addEventListener("click",(function u(t){if(P()&&("tip"===R()||"both"===R()))if(X("localStorage",M))document.removeEventListener("click",u,!0);
2else{var e=t.target&&t.target.closest?t.target.closest('tts-play-button, .tts__listent_content, [id^="player_content_"], .plyr'):null;e&&(document.removeEventListener("click",u,!0),function(u){if(!i){i=!0,J("localStorage",M,"1"),Z();var t=N(),e=W(),n=document.createElement("div");n.id=L,n.setAttribute("role","status"),n.setAttribute("aria-live","polite"),n.style.background=e.background,n.style.color=e.color,n.innerHTML=z+"<span>"+t.tip+'</span><button type="button" aria-label="'+t.dismiss+'">'+G+"</button>",n.querySelector("button").addEventListener("click",l),document.body.appendChild(n);var o=u.getBoundingClientRect(),r=Math.min(300,document.documentElement.clientWidth-16),D=o.left+window.scrollX;D=Math.max(window.scrollX+8,Math.min(D,window.scrollX+document.documentElement.clientWidth-r-8)),n.style.top=o.bottom+window.scrollY+10+"px",n.style.left=D+"px",requestAnimationFrame((function(){return n.classList.add("atlasvoice-sel-in")})),setTimeout((function(){return n.classList.add("atlasvoice-sel-in")}),80),setTimeout(l,1e4)}}(e))}}),!0);var o=0,r=setInterval((function(){o++,(P()||o>10)&&(clearInterval(r),P()&&F())}),500)}function D(){if(t)return t;Z();var n=N(),i=W();(t=document.createElement("div")).id=T,t.setAttribute("role","toolbar"),t.setAttribute("aria-label",n.listenTitle),t.style.background=i.background,t.style.color=i.color,t.style.display="none";var o=H()?"":"<span>"+n.fromHere+"</span>";return t.innerHTML='<button type="button" data-action="listen" title="'+n.listenTitle+'">
2<svg width="11" height="11" viewBox="0 0 7 8" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><polygon fill="currentColor" points="0 0 0 8 7 4"/></svg><span>'+n.listen+'</span></button><span class="atlasvoice-sel-divider" aria-hidden="true"></span><button type="button" data-action="from-here" title="'+n.fromHereTitle+'" aria-label="'+n.fromHereTitle+'"><svg width="12" height="12" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path fill="currentColor" d="M4 4l8 8-8 8V4zm9 0l8 8-8 8V4z"/></svg>'+o+"</button>",t.addEventListener("mousedown",(function(u){return u.preventDefault()})),t.addEventListener("click",(function(t){var n=t.target.closest("button[data-action]");n&&function(t){if(e){var n=u(e.buttonId),i=e.span,o={buttonId:e.buttonId,text:t?n.text.slice(i.start):i.text,start:i.start,end:t?n.text.length:i.end,fromHere:!!t};a();try{window.getSelection().removeAllRanges()}catch(u){}window.wp&&window.wp.hooks&&wp.hooks.doAction("tts_listen_selection",o)}}("from-here"===n.getAttribute("data-action"))})),document.body.appendChild(t),t}function a(){t&&(t.classList.remove("atlasvoice-sel-in"),t.style.display="none"),e=null}function s(){if(P()){var t=window.getSelection();if(t&&!t.isCollapsed&&t.rangeCount){var n=t.getRangeAt(0),i=(s=Y(n.startContainer)||Y(n.endContainer),(l=s&&"string"==typeof s.className?s.className.match(/(?:^|\s)tts_content_wrapper_(\S+)/):null)?l[1]:null);if(null!=i){var o=u(i);if(o&&o.root&&"function"==typeof o.spanForRange){var r=o.spanForRange(n);r&&r.text.trim()?(e={buttonId:i,span:o.snapSpanToWords(r)},function(u){var t=D();t.style.display="flex";var e,n=t.offsetWidth||180,i=t.offsetHeight||38;H()?e=u.bottom+window.scrollY+10:(e=u.top+window.scrollY-i-8)<window.scrollY+4&&(e=u.bottom+window.scrollY+8);var o=u.left+window.scrollX+u.width/2-n/2;o=Math.max(window.scrollX+4,Math.min(o,window.scrollX+document.documentElement.clientWidth-n-4)),t.style.top=e+"px",t.style.left=o+"px",requestAnimationFrame((function(){return t.classList.add("atlasvoice-sel-in")})),setTimeout((function(){return t.classList.add("atlasvoice-sel-in")}),80)}(n.getBoundingClientRect())):a()}else a()}else a()}else a()}else a();var s,l}function l(){var u=document.getElementById(L);u&&u.remove()}function F(){if(P()&&("badge"===R()||"both"===R())&&!X("sessionStorage",V)&&document.querySelector('[class*="tts_content_wrapper_"]')){Z();var u=N(),t=W(),e=document.createElement("div");e.id=j,e.style.background=t.background,e.style.color=t.color,e.innerHTML='<button type="button" class="atlasvoice-badge-main" aria-label="'+u.badge+'">'+z+'<span class="atlasvoice-badge-text">'+u.badge+'</span></button><button type="button" class="atlasvoice-badge-close" aria-label="'+u.dismiss+'">'+G+"</button>",e.querySelector(".atlasvoice-badge-main").addEventListener("click",(function(){e.classList.toggle("atlasvoice-badge-open")})),e.querySelector(".atlasvoice-badge-close").addEventListener("click",(function(){J("sessionStorage",V,"1"),e.remove()})),document.body.appendChild(e)}}}(pu);var gu;function mu(u,t){var e="undefined"!=typeof Symbol&&u[Symbol.iterator]||u["@@iterator"];if(!e){if(Array.isArray(u)||(e=function(u,t){if(u){if("string"==typeof u)return Bu(u,t);var e={}.toString.call(u).slice(8,-1);return"Object"===e&&u.constructor&&(e=u.constructor.name),"Map"===e||"Set"===e?Array.from(u):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Bu(u,t):void 0}}(u))||t&&u&&"number"==typeof u.length){e&&(u=e);var n=0,i=function(){};return{s:i,n:function(){return n>=u.length?{done:!0}:{done:!1,value:u[n++]}},e:function(u){throw u},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,D=!1;return{s:function(){e=e.call(u)},n:function(){var u=e.next();return r=u.done,u},e:function(u){D=!0,o=u},f:function(){try{r||null==e.return||e.return()}finally{if(D)throw o}}}}function Bu(u,t){(null==t||t>u.length)&&(t=u.length);for(var e=0,n=Array(t);e<t;e++)n[e]=u[e];return n}function yu(u){return yu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},yu(u)}function bu(u,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(u,_u(n.key),n)}}function wu(u,t,e){return(t=_u(t))in u?Object.defineProperty(u,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):u[t]=e,u}function _u(u){var t=function(u,t){if("object"!=yu(u)||!u)return u;var e=u[Symbol.toPrimitive];if(void 0!==e){var n=e.call(u,t||"default");if("object"!=yu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(u)}(u,"string");return"symbol"==yu(t)?t:t+""}var Su=function(){return u=function u(t){var e,i,o,r,D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.TTS;if(function(u,t){if(!(u instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),wu(this,"TTS",window.TTS),wu(this,"browser",null),wu(this,"speech",null),wu(this,"speechSynthesis",window.speechSynthesis),wu(this,"utterence",new SpeechSynthesisUtterance),wu(this,"speechRecognitionIsActive",!0),wu(this,"speechRecognition",window.speechRecognition||window.webkitSpeechRecognition),wu(this,"recordStatus","re
2cord"),wu(this,"listenStatus","listen"),wu(this,"noticeClass","tta_notice"),wu(this,"cofiguration",{}),wu(this,"timer",null),wu(this,"buttonId",null),wu(this,"speakButton",null),wu(this,"content",null),wu(this,"ttsListeningSettings",null),wu(this,"languages",[]),wu(this,"voices",{}),wu(this,"voice","Google UK English Female"),wu(this,"language","en-GB"),wu(this,"buttonTextArr",null),wu(this,"splittedSentances",""),wu(this,"isCanceled",!1),wu(this,"shouldCancelTimer",null),wu(this,"callBackAfterEnd",null),wu(this,"splitSentences",null),wu(this,"playButtonNo",1),wu(this,"analytics",null),wu(this,"playButtonIcon",null),wu(this,"_activeSentence",""),this.TTS=s,this.content=D||window.TTS.contents[t],this.splittedSentances=(0,B.PC)(D),this.buttonId=t,this.buttonTextArr=(null===(e=this.TTS)||void 0===e||null===(e=e.buttons)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.textArr)||this.TTS.settings.textArr,this.speakButton=a||document.getElementById(t),this.ttsListeningSettings=this.TTS.settings.listening,this.speech=new n.A,this.splitSentences=B.PC,this.playButtonNo=null!==(i=null===(o=window)||void 0===o||null===(o=o.TTS)||void 0===o||null===(o=o.extra)||void 0===o?void 0:o.player_id)&&void 0!==i?i:1,this.analytics=new y.A(this.TTS.settings.postId),this.playButtonIcon=(0,B.cs)(),"function"==typeof NoSleep&&null!==(r=ttsObj)&&void 0!==r&&r.is_mobile){var l=new NoSleep;window.onload=function(){l.enable(),console.log("NoSleep enabled")}}},t=[{key:"getData",value:function(){return(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(window.TextToSpeech=this),this}},{key:"getStateText",value:function(u,t){var e,n,i,o=null==this?void 0:this.playButtonNo,r=null==this||null===(e=this.buttonTextArr)||void 0===e||null===(e=e.players)||void 0===e||null===(e=e[o])||void 0===e||null===(e=e[u])||void 0===e?void 0:e.text;if(r&&r.length)return r;var D=u+"_text";return null!==(n=null==this||null===(i=this.buttonTextArr)||void 0===i?void 0:i[D])&&void 0!==n?n:t}},{key:"getStateHover",value:function(u,t){var e,n,i,o=null==this?void 0:this.playButtonNo,r=null==this||null===(e=this.buttonTextArr)||void 0===e||null===(e=e.players)||void 0===e||null===(e=e[o])||void 0===e||null===(e=e[u])||void 0===e?void 0:e.hover;if(r&&r.length)return r;var D=u+"_hover_title";return null!==(n=null==this||null===(i=this.buttonTextArr)||void 0===i?void 0:i[D])&&void 0!==n?n:t}},{key:"playButtonText",value:function(){return this.getStateText("listen","Listen")}},{key:"_renderStateContent",value:function(u,t,e){var n,i,o=null!==(n=null==this?void 0:this.playButtonNo)&&void 0!==n?n:1,r=null===(i=this.playButtonIcon)||void 0===i||null===(i=i[o])||void 0===i?void 0:i[u],D="";return r?D=(new DOMParser).parseFromString(r,"image/svg+xml").documentElement.outerHTML:t&&(D='<span class="dashicons '.concat(t,'"></span>')),'<div class="tts_button" aria-hidden="true">'.concat(D,'<span class="tts_button_label">').concat(e,"</span></div>")}},{key:"playButtonContent",value:function(){return this._renderStateContent("play","dashicons-controls-play",this.playButtonText())}},{key:"replayButtonText",value:function(){return this.getStateText("replay","Replay")}},{key:"replayButtonContent",value:function(){return this._renderStateContent("replay","dashicons-image-rotate",this.replayButtonText())}},{key:"pauseButtonText",value:function(){return this.getStateText("pause","Pause")}},{key:"pauseButtonContent",value:function(){return this._renderStateContent("pause","dashicons-controls-pause",this.pauseButtonText())}},{key:"resumeButtonText",value:function(){return this.getStateText("resume","Resume")}},{key:"resumeButtonContent",value:function(){return this._renderStateContent("resume","dashicons-controls-play",this.resumeButtonText())}},{key:"recordStartButtonContent",value:function(){return'<span class="dashicons dashicons-controls-volumeoff"></span> '+this.buttonTextArr.start_text}},{key:"recordStopButtonConten",value:function(){return'<span class="dashicons dashicons-controls-volumeon"></span> '+this.buttonTextArr.stop_text}},{key:"displayApiMissing",value:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e="",n="";if(this.speechRecognitionIsActive||(e+="Text To Audio: Please enable speechRecognition"),this.speechSynthesis||(e+=e?" , speechSynthesis.":"Text To Audio: Please enable speechSynthesis."),u){var i,o=null===(i=document.getElementById(u))||void 0===i?void 0:i.previousSibling;o?(e+=' Click here to <a href="https://wordpress.org/plugins/text-to-audio/#how%20to%20enable%20%60%60speechsynthesis%60%60%20on%20firefox%3F" target="_blank">enable</a>',o.style.display="block",o.innerHTML=e,setTimeout((function(){document.querySelector(".tta_notice").style.display="none",o.innerHTML=""}),5e3)):(e+="\nFollow this link to enable: \n".concat(n+="This browser not supports speechSynthesis API"),alert(e))}else t||"?page=text-to-audio"===location.search&&"#/customize"===location.hash?n+=ttsObj.admin_url+"admin.php?page=text-to-audio#/faq":n+="https://wordpress.org/plugins/text-to-audio/#how%20to%20enable%20%60%60speechsynthesis%60%60%20on%20firefox%3F",e+="\nFollow this link to enable: \n".concat(n),alert(e);return!0}},{key:"displayButtonText",value:function(u){var t,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];1===Number(null==this?void 0:this.playButtonNo)&&null!=this&&null!==(t=this.speakButton)&&void 0!==t&&t.innerHTML&&("listen"===u?(this.speakButton.innerHTML=this.replayButtonContent(),this.speakButton.setAttribute("title","Text To Audio : "+this.getStateHover("replay","Click to listen post."))):"pause"===u?(this.speakButton.innerHTML=this.pauseButtonContent(),this.speakButton.setAttribute("title","Text To Audio : "+this.getStateHover("pause",this.pauseButtonText()))):"resume"===u&&(this.speakButton.innerHTML=this.resumeButtonContent(),this.speakButton.setAttribute("title","Text To Audio : "+this.getStateHover("resume",this.resumeButtonText()))),e&&(0,B.ho)(this.speakButton))}},{key:"finishedSpeaking",value:function(u){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.speech.speaking()&&!e||(console.log("End utterance "+this.speech.speaking()),this.listenStatus="listen",this.displayButtonText(this.listenStatus),this.splittedSentances=(0,B.PC)(window.TTS.c
2ontents[this.buttonId]),u.cancel(),wp.hooks.doAction("tts_highlight_clear",this.buttonId)),console.log("Success !",t),this.analytics.trackEnd(),this.callBackAfterEnd&&this.callBackAfterEnd(),this.browser.isAndroid()||(clearTimeout(this.timer),this.timer=null,clearTimeout(this.shouldCancelTimer),this.shouldCancelTimer=null),window.sessionStorage.setItem("tts_paused_by_intention",!1)}},{key:"speak",value:function(u){var t=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.content,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e||(e=this.content),this.speech.hasBrowserSupport()){try{window.speechSynthesis&&window.speechSynthesis.paused&&(window.speechSynthesis.resume(),window.speechSynthesis.cancel())}catch(u){}if(u.setLanguage(this.browser.getLanguage()),u.setVoice(this.browser.getVoice()),console.log(e),u.speak({text:e,queue:!1,listeners:{onstart:function(u){var e,n;console.log("Start utterance"),t.utterence=u,t._activeSentence=(null==u||null===(e=u.currentTarget)||void 0===e?void 0:e.text)||(null==u||null===(n=u.target)||void 0===n?void 0:n.text)||"",wp.hooks.doAction("tts_high_light_sentence",t._activeSentence,t.buttonId,B.PC)},onend:function(u){console.log("End utterance")},onpause:function(u){console.log("Pause utterance")},onresume:function(u){console.log("Resume utterance")},onboundary:function(u){var e,n;if(!u||!u.name||"word"===u.name){var i=(null==u||null===(e=u.target)||void 0===e?void 0:e.text)||(null==u||null===(n=u.currentTarget)||void 0===n?void 0:n.text)||t._activeSentence||"",o=u&&"number"==typeof u.charIndex?u.charIndex:0,r=u&&u.charLength?u.charLength:0;if(!r){var D=i.slice(o),a=D.search(/\s|$/);r=-1===a?D.length:a}var s=i.slice(o,o+r);s&&s.trim()&&wp.hooks.doAction("tts_highlight_word",{buttonId:t.buttonId,sentence:i,word:s,charIndex:o,charLength:r})}}}}).then((function(e){t.finishedSpeaking(u,e)})).catch((function(u){console.error("An error occurred :",u)})),this.listenStatus="pause",this.displayButtonText(this.listenStatus,n),this.analytics.trackPlay(),!this.browser.isAndroid()){var i=this;this.timer=setTimeout((function t(){u.pause(),console.log(u),setTimeout((function(){u.resume()}),0),i.timer=setTimeout(t,13e3),u.speaking()||(clearTimeout(i.timer),i.timer=null)}),13e3)}}else this.displayApiMissing("tts__listent_content_"+this.buttonId)}},{key:"pause",value:function(u){var t,e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.browser.isAndroid())u.cancel(),this.isCanceled=!0;else{u.pause();var i=0;this.shouldCancelTimer=setInterval((function(){u.cancel(),e.isCanceled=!0,i++,(!u.speaking()||i>=20)&&(clearInterval(e.shouldCancelTimer),e.shouldCancelTimer=null)}),50)}var o=this.splittedSentances.indexOf((null===(t=this.utterence)||void 0===t||null===(t=t.target)||void 0===t?void 0:t.text)||"");this.splittedSentances=this.splittedSentances.slice(o),this.content=this.splittedSentances.join(" "),this.listenStatus="resume",this.displayButtonText(this.listenStatus,n),this.analytics.trackPause(),this.browser.isAndroid()||clearTimeout(this.timer)}},{key:"resume",value:function(u){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.isCanceled?(this.speak(u,this.content),clearTimeout(this.shouldCancelTimer),this.browser.isAndroid()||clearTimeout(this.timer)):(u.resume(),clearTimeout(this.shouldCancelTimer)),this.listenStatus="pause",this.displayButtonText(this.listenStatus,t),!this.browser.isAndroid()){var e=this;this.timer=setTimeout((function t(){u.pause(),console.log(u),setTimeout((function(){u.resume()}),0),e.timer=setTimeout(t,13e3),u.speaking()||(clearTimeout(e.timer),e.timer=null)}),13e3)}}},{key:"_init",value:function(){var u=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.callBackAfterEnd=t,void 0!==this.ttsListeningSettings&&this.speech.init({volume:this.ttsListeningSettings.tta__listening_volume?this.ttsListeningSettings.tta__listening_volume:1,rate:this.ttsListeningSettings.tta__listening_rate?this.ttsListeningSettings.tta__listening_rate:1,pitch:this.ttsListeningSettings.tta__listening_pitch?this.tt
2sListeningSettings.tta__listening_pitch:1,splitSentences:!0,listeners:{onvoiceschanged:function(u){}}}).then((function(t){var n,i;u.voices=t.voices,u.browser=new p(ttsObj,t.voices,null===(n=u.ttsListeningSettings)||void 0===n?void 0:n.tta__listening_lang,null===(i=u.ttsListeningSettings)||void 0===i?void 0:i.tta__listening_voice),u._prepareSpeakButton(u.speech,e),window.sessionStorage.setItem("tts_paused_by_intention",!1)})).catch((function(u){console.error("An error occured while initializing : ",u)}))}},{key:"_prepareSpeakButton",value:function(u){var t=this,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"listen"==this.listenStatus?this.speak(u,null,e):"pause"==this.listenStatus?this.pause(u,e):"resume"==this.listenStatus&&this.resume(u,e),document.addEventListener("visibilitychange",(function(){var e,n,i=null!==(e=null===(n=window)||void 0===n||null===(n=n.ttsObj)||void 0===n||null===(n=n.settings)||void 0===n||null===(n=n.settings)||void 0===n?void 0:n.tta__settings_stop_auto_pause_after_switching_tab)&&void 0!==e&&e;if(i=wp.hooks.applyFilters("tta__settings_stop_auto_pause_after_switching_tab",i),"hidden"!==document.visibilityState||"pause"!==t.listenStatus||i||(t.pause(u),t.callBackAfterEnd&&t.callBackAfterEnd()),"visible"===document.visibilityState&&"resume"===t.listenStatus&&!i){var o,r,D=JSON.parse(window.sessionStorage.getItem("tts_paused_by_intention")),a=null!==(o=null===(r=window)||void 0===r||null===(r=r.ttsObj)||void 0===r||null===(r=r.settings)||void 0===r||null===(r=r.settings)||void 0===r?void 0:r.tta__settings_stop_auto_playing_after_switching_tab)&&void 0!==o&&o;D||a||(window.sessionStorage.setItem("tts_paused_by_intention",!1),t.resume(u)),t.callBackAfterEnd&&t.callBackAfterEnd()}}))}}],t&&bu(u.prototype,t),e&&bu(u,e),Object.defineProperty(u,"prototype",{writable:!1}),u;var u,t,e}();if("undefined"!=typeof window&&window.wp&&window.wp.hooks&&!window.__ttsSelectionSpeakReady){window.__ttsSelectionSpeakReady=!0;var ku={};wp.hooks.addAction("tts_listen_selection","tts/selection-speak",(function(u){var t,e,n,i,o,r=parseInt(null!==(t=null!==(e=null===(n=window)||void 0===n||null===(n=n.ttsObj)||void 0===n?void 0:n.player_id)&&void 0!==e?e:null===(i=window)||void 0===i||null===(i=i.TTS)||void 0===i||null===(i=i.extra)||void 0===i?void 0:i.player_id)&&void 0!==t?t:1,10);if((1===r||2===r)&&u&&u.text&&u.text.trim()){var D,a=u.text,s=null===(o=window)||void 0===o||null===(o=o.ttsObj)||void 0===o||null===(o=o.settings)||void 0===o?void 0:o.aliases,l=mu(s?Object.values(s):[]);try{for(l.s();!(D=l.n()).done;){var F,c=D.value;if(c&&c.actual_text)a=a.split(c.actual_text).join(null!==(F=c.to_read)&&void 0!==F?F:"")}}catch(u){l.e(u)}finally{l.f()}var d=window.TextToSpeech;if(d instanceof Su&&d.speech&&d.listenStatus&&"listen"!==d.listenStatus){var C;try{d.speech.cancel()}catch(u){}clearTimeout(d.timer),clearInterval(d.shouldCancelTimer),d.timer=null,d.shouldCancelTimer=null,d.listenStatus="listen",d.displayButtonText("listen");var h=null===(C=window.TTS)||void 0===C||null===(C=C.contents)||void 0===C?void 0:C[d.buttonId];h&&(d.content=h,d.splittedSentances=(0,B.PC)(h))}var E=ku[u.buttonId];E&&E.browser?(E.content=a,E.splittedSentances=(0,B.PC)(a),E.listenStatus="listen",E.speak(E.speech,a,!1)):(E=new Su(u.buttonId,a,document.createElement("button"),window.TTS),ku[u.buttonId]=E,E._init(null,!1))}}))}if(null!==(gu=window)&&void 0!==gu&&null!==(gu=gu.ttsObj)&&void 0!==gu&&gu.is_atlasvoice_addon_functional?window.TextToSpeech=Su:window.document.addEventListener("DOMContentLoaded",(function(){window.TextToSpeech=Su})),"page=text-to-audio"===new URLSearchParams("page=text-to-audio").toString()){var xu;xu=setInterval((function(){window.hasOwnProperty("ttsObj")&&ttsObj.is_dashboard&&(window.hasOwnProperty("TTS")?""!==window.TTS.contents[0]&&(window.TTS.contents[1]=""):(window.TTS={}
2,window.TTS.contents={},window.TTS.contents[1]=""),window.TTS.hasOwnProperty("settings")||(window.TTS.settings={listening:{tta__listening_lang:"en-GB",tta__listening_voice:"Google UK English Female",tta__listening_pitch:"1",tta__listening_rate:"1",tta__listening_volume:"1"},cssClass:"",btnStyle:"background-color:#ee6d6d;color:#ffffff;width:100%;border:0;display:block;border-radius:4px;text-decoration:none;cursor:pointer;",textArr:{listen_text:"Listen",pause_text:"Pause",resume_text:"Resume",replay_text:"Replay",start_text:"Start",stop_text:"Start"},shouldDisplayIcon:"inline-block"},window.TTS.settings.readingTime=1),clearInterval(xu),xu=null)}),1e3)}},6379:(u,t,e)=>{e.d(t,{A:()=>zu});e(1522);function n(u){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},n(u)}var i=function(){return i=Object.assign||function(u){for(var t,e=1,n=arguments.length;e<n;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(u[i]=t[i]);return u},i.apply(this,arguments)};function o(u,t,e,n){return new(e||(e=Promise))((function(i,o){function r(u){try{a(n.next(u))}catch(u){o(u)}}function D(u){try{a(n.throw(u))}catch(u){o(u)}}function a(u){var t;u.done?i(u.value):(t=u.value,t instanceof e?t:new e((function(u){u(t)}))).then(r,D)}a((n=n.apply(u,t||[])).next())}))}function r(u,t){var e,n,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:D(0),throw:D(1),return:D(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function D(D){return function(a){return function(D){if(e)throw new TypeError("Generator is already executing.");for(;o&&(o=0,D[0]&&(r=0)),r;)try{if(e=1,n&&(i=2&D[0]?n.return:D[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,D[1])).done)return i;switch(n=0,i&&(D=[2&D[0],i.value]),D[0]){case 0:case 1:i=D;break;case 4:return r.label++,{value:D[1],done:!1};case 5:r.label++,n=D[1],D=[0];continue;case 7:D=r.ops.pop(),r.trys.pop();continue;default:if(!((i=(i=r.trys).length>0&&i[i.length-1])||6!==D[0]&&2!==D[0])){r=0;continue}if(3===D[0]&&(!i||D[1]>i[0]&&D[1]<i[3])){r.label=D[1];break}if(6===D[0]&&r.label<i[1]){r.label=i[1],i=D;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(D);break}i[2]&&r.ops.pop(),r.trys.pop();continue}D=t.call(u,r)}catch(u){D=[6,u],n=0}finally{e=i=0}if(5&D[0])throw D[1];return{value:D[0]?D[1]:void 0,done:!0}}([D,a])}}}function D(u,t,e){if(e||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return u.concat(n||Array.prototype.slice.call(t))}function a(u,t){return new Promise((function(e){return setTimeout(e,u,t)}))}function s(u){return!!u&&"function"==typeof u.then}function l(u,t){try{var e=u();s(e)?e.then((function(u){return t(!0,u)}),(function(u){return t(!1,u)})):t(!0,e)}catch(u){t(!1,u)}}function F(u,t,e){return void 0===e&&(e=16),o(this,void 0,void 0,(function(){var n,i,o,D;return r(this,(function(r){switch(r.label){case 0:n=Array(u.length),i=Date.now(),o=0,r.label=1;case 1:return o<u.length?(n[o]=t(u[o],o),(D=Date.now())>=i+e?(i=D,[4,new Promise((function(u){var t=new MessageChannel;t.port1.onmessage=function(){return u()},t.port2.postMessage(null)}))]):[3,3]):[3,4];case 2:r.sent(),r.label=3;case 3:return++o,[3,1];case 4:return[2,n]}}))}))}function c(u){u.then(void 0,(function(){}))}function d(u){return parseInt(u)}function C(u){return parseFloat(u)}function h(u,t){return"number"==typeof u&&isNaN(u)?t:u}function E(u){return u.reduce((function(u,t){return u+(t?1:0)}),0)}function A(u,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(u/t)*t;var e=1/t;return Math.round(u*e)/e}function v(u,t){var e=u[0]>>>16,n=65535&u[0],i=u[1]>>>16,o=65535&u[1],r=t[0]>>>16,D=65535&t[0],a=t[1]>>>16,s=0,l=0,F=0,c=0;F+=(c+=o+(65535&t[1]))>>>16,c&=65535,l+=(F+=i+a)>>>16,F&=65535,s+=(l+=n+D)>>>16,l&=65535,s+=e+r,s&=65535,u[0]=s<<16|l,u[1]=F<<16|c}function f(u,t){var e=u[0]>>>16,n=65535&u[0],i=u[1]>>>16,o=65535&u[1],r=t[0]>>>16,D=65535&t[0],a=t[1]>>>16,s=65535&t[1],l=0,F=0,c=0,d=0;c+=(d+=o*s)>>>16,d&=65535,F+=(c+=i*s)>>>16,c&=65535,F+=(c+=o*a)>>>16,c&=65535,l+=(F+=n*s)>>>16,F&=65535,l+=(F+=i*a)>>>16,F&=65535,l+=(F+=o*D)>>>16,F&=65535,l+=e*s+n*a+i*D+o*r,l&=65535,u[0]=l<<16|F,u[1]=c<<16|d}function p(u,t){var e=u[0];32==(t%=64)?(u[0]=u[1],u[1]=e):t<32?(u[0]=e<<t|u[1]>>>32-t,u[1]=u[1]<<t|e>>>32-t):(t-=32,u[0]=u[1]<<t|e>>>32-t,u[1]=e<<t|u[1]>>>32-t)}function g(u,t){0!=(t%=64)&&(t<32?(u[0]=u[1]>>>32-t,u[1]=u[1]<<t):(u[0]=u[1]<<t-32,u[1]=0))}function m(u,t){u[0]^=t[0],u[1]^=t[1]}var B=[4283543511,3981806797],y=[3301882366,444984403];function b(u){var t=[0,u[0]>>>1];m(u,t),f(u,B),t[1]=u[0]>>>1,m(u,t),f(u,y),t[1]=u[0]>>>1,m(u,t)}var w=[2277735313,289559509],_=[1291169091,658871167],S=[0,5],k=[0,1390208809],x=[0,944331445];function T(u,t){var e=function(u){for(var t=new Uint8Array(u.length),e=0;e<u.length;e++){var n=u.charCodeAt(e);if(n>127)return(new TextEncoder).encode(u);t[e]=n}return t}(u);t=t||0;var n,i=[0,e.length],o=i[1]%16,r=i[1]-o,D=[0,t],a=[0,t],s=[0,0],l=[0,0];for(n=0;n<r;n+=16)s[0]=e[n+4]|e[n+5]<<8|e[n+6]<<16|e[n+7]<<24,s[1]=e[n]|e[n+1]<<8|e[n+2]<<16|e[n+3]<<24,l[0]=e[n+12]|e[n+13]<<8|e[n+14]<<16|e[n+15]<<24,l[1]=e[n+8]|e[n+9]<<8|e[n+10]<<16|e[n+11]<<24,f(s,w),p(s,31),f(s,_),m(D,s),p(D,27),v(D,a),f(D,S),v(D,k),f(l,_),p(l,33),f(l,w),m(a,l),p(a,31
2),v(a,D),f(a,S),v(a,x);s[0]=0,s[1]=0,l[0]=0,l[1]=0;var F=[0,0];switch(o){case 15:F[1]=e[n+14],g(F,48),m(l,F);case 14:F[1]=e[n+13],g(F,40),m(l,F);case 13:F[1]=e[n+12],g(F,32),m(l,F);case 12:F[1]=e[n+11],g(F,24),m(l,F);case 11:F[1]=e[n+10],g(F,16),m(l,F);case 10:F[1]=e[n+9],g(F,8),m(l,F);case 9:F[1]=e[n+8],m(l,F),f(l,_),p(l,33),f(l,w),m(a,l);case 8:F[1]=e[n+7],g(F,56),m(s,F);case 7:F[1]=e[n+6],g(F,48),m(s,F);case 6:F[1]=e[n+5],g(F,40),m(s,F);case 5:F[1]=e[n+4],g(F,32),m(s,F);case 4:F[1]=e[n+3],g(F,24),m(s,F);case 3:F[1]=e[n+2],g(F,16),m(s,F);case 2:F[1]=e[n+1],g(F,8),m(s,F);case 1:F[1]=e[n],m(s,F),f(s,w),p(s,31),f(s,_),m(D,s)}return m(D,i),m(a,i),v(D,a),v(a,D),b(D),b(a),v(D,a),v(a,D),("00000000"+(D[0]>>>0).toString(16)).slice(-8)+("00000000"+(D[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}function L(u){return"function"!=typeof u}function j(u,t,e,n){var i=Object.keys(u).filter((function(u){return!function(u,t){for(var e=0,n=u.length;e<n;++e)if(u[e]===t)return!0;return!1}(e,u)})),D=F(i,(function(e){return function(u,t){var e=new Promise((function(e){var n=Date.now();l(u.bind(null,t),(function(){for(var u=[],t=0;t<arguments.length;t++)u[t]=arguments[t];var i=Date.now()-n;if(!u[0])return e((function(){return{error:u[1],duration:i}}));var o=u[1];if(L(o))return e((function(){return{value:o,duration:i}}));e((function(){return new Promise((function(u){var t=Date.now();l(o,(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=i+Date.now()-t;if(!e[0])return u({error:e[1],duration:o});u({value:e[1],duration:o})}))}))}))}))}));return c(e),function(){return e.then((function(u){return u()}))}}(u[e],t)}),n);return c(D),function(){return o(this,void 0,void 0,(function(){var u,t,e,o;return r(this,(function(r){switch(r.label){case 0:return[4,D];case 1:return[4,F(r.sent(),(function(u){var t=u();return c(t),t}),n)];case 2:return u=r.sent(),[4,Promise.all(u)];case 3:for(t=r.sent(),e={},o=0;o<i.length;++o)e[i[o]]=t[o];return[2,e]}}))}))}}function O(){var u=window,t=navigator;return E(["MSCSSMatrix"in u,"msSetImmediate"in u,"msIndexedDB"in u,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function M(){var u=window,t=navigator;return E(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===t.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in u,"BatteryManager"in u,"webkitMediaStream"in u,"webkitSpeechGrammar"in u])>=5}function V(){var u=window,t=navigator;return E(["ApplePayError"in u,"CSSPrimitiveValue"in u,"Counter"in u,0===t.vendor.indexOf("Apple"),"getStorageUpdates"in t,"WebKitMediaKeys"in u])>=4}function I(){var u=window,t=u.HTMLElement,e=u.Document;return E(["safari"in u,!("ongestureend"in u),!("TouchEvent"in u),!("orientation"in u),t&&!("autocapitalize"in t.prototype),e&&"pointerLockElement"in e.prototype])>=4}function P(){var u,t=window;return u=t.print,!!/^function\s.*?\{\s*\[native code]\s*}$/.test(String(u))&&E(["[object WebPageNamespace]"===String(t.browser),"MicrodataExtractor"in t])>=1}function R(){var u,t,e=window;return E(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(u=document.documentElement)||void 0===u?void 0:u.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in e,"mozInnerScreenX"in e,"CSSMozDocumentRule"in e,"CanvasCaptureMediaStream"in e])>=4}function W(){var u=window,t=navigator,e=u.CSS,n=u.HTMLButtonElement;return E([!("getStorageUpdates"in t),n&&"popover"in n.prototype,"CSSCounterStyleRule"in u,e.supports("font-size-adjust: ex-height 0.5"),e.supports("text-transform: full-width")])>=4}function N(){var u=M(),t=R(),e=window,n=navigator,i="connection";return u?E([!("SharedWorker"in e),n[i]&&"ontypechange"in n[i],!("sinkId"in new window.Audio)])>=2:!!t&&E(["onorientationchange"in e,"orientation"in e,/android/i.test(navigator.appVersion)])>=2}function H(u){var t=new Error(u);return t.name=u,t}function Z(u,t,e){var n,i,D;return void 0===e&&(e=50),o(this,void 0,void 0,(function(){var o,s;return r(this,(function(r){switch(r.label){case 0:o=document,r.label=1;case 1:return o.body?[3,3]:[4,a(e)];case 2:return r.sent(),[3,1];case 3:s=o.createElement("iframe"),r.label=4;case 4:return r.trys.push([4,,10,11]),[4,new Promise((function(u,e){var n=!1,i=function(){n=!0,u()};s.onload=i,s.onerror=function(u){n=!0,e(u)};var r=s.style;r.setProperty("display","block","important"),r.position="absolute",r.top="0",r.left="0",r.visibility="hidden",t&&"srcdoc"in s?s.srcdoc=t:s.src="about:blank",o.body.appendChild(s);var D=function(){var u,t;n||("complete"===(null===(t=null===(u=s.contentWindow)||void 0===u?void 0:u.document)||void 0===t?void 0:t.readyState)?i():setTimeout(D,10))};D()}))];case 5:r.sent(),r.label=6;case 6:return(null===(i=null===(n=s.contentWindow)||void 0===n?void 0:n.document)||void 0===i?void 0:i.body)?[3,8]:[4,a(e)];case 7:return r.sent(),[3,6];case 8:return[4,u(s,s.contentWindow)];case 9:return[2,r.sent()];case 10:return null===(D=s.parentNode)||void 0===D||D.removeChild(s),[7];case 11:return[2]}}
2))}))}function G(u){for(var t=function(u){for(var t,e,n="Unexpected syntax '".concat(u,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(u),o=i[1]||void 0,r={},D=/([.:#][\w-]+|\[.+?\])/gi,a=function(u,t){r[u]=r[u]||[],r[u].push(t)};;){var s=D.exec(i[2]);if(!s)break;var l=s[0];switch(l[0]){case".":a("class",l.slice(1));break;case"#":a("id",l.slice(1));break;case"[":var F=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(!F)throw new Error(n);a(F[1],null!==(e=null!==(t=F[4])&&void 0!==t?t:F[5])&&void 0!==e?e:"");break;default:throw new Error(n)}}return[o,r]}(u),e=t[0],n=t[1],i=document.createElement(null!=e?e:"div"),o=0,r=Object.keys(n);o<r.length;o++){var D=r[o],a=n[D].join(" ");"style"===D?z(i.style,a):i.setAttribute(D,a)}return i}function z(u,t){for(var e=0,n=t.split(";");e<n.length;e++){var i=n[e],o=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(i);if(o){var r=o[1],D=o[2],a=o[4];u.setProperty(r,D,a||"")}}}var Y,X,J=["monospace","sans-serif","serif"],U=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function q(u){return u.toDataURL()}function Q(){var u=this;return function(){if(void 0===X){var u=function(){var t=K();$(t)?X=setTimeout(u,2500):(Y=t,X=void 0)};u()}}(),function(){return o(u,void 0,void 0,(function(){var u;return r(this,(function(t){switch(t.label){case 0:return $(u=K())?Y?[2,D([],Y,!0)]:function(){var u=document;return u.fullscreenElement||u.msFullscreenElement||u.mozFullScreenElement||u.webkitFullscreenElement||null}()?[4,(e=document,(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e))]:[3,2]:[3,2];case 1:t.sent(),u=K(),t.label=2;case 2:return $(u)||(Y=u),[2,u]}var e}))}))}}function K(){var u=screen;return[h(C(u.availTop),null),h(C(u.width)-C(u.availWidth)-h(C(u.availLeft),0),null),h(C(u.height)-C(u.availHeight)-h(C(u.availTop),0),null),h(C(u.availLeft),null)]}function $(u){for(var t=0;t<4;++t)if(u[t])return!1;return!0}function uu(u){var t;return o(this,void 0,void 0,(function(){var e,n,i,o,D,s,l;return r(this,(function(r){switch(r.label){case 0:for(e=document,n=e.createElement("div"),i=new Array(u.length),o={},tu(n),l=0;l<u.length;++l)"DIALOG"===(D=G(u[l])).tagName&&D.show(),tu(s=e.createElement("div")),s.appendChild(D),n.appendChild(s),i[l]=D;r.label=1;case 1:return e.body?[3,3]:[4,a(50)];case 2:return r.sent(),[3,1];case 3:e.body.appendChild(n);try{for(l=0;l<u.length;++l)i[l].offsetParent||(o[u[l]]=!0)}finally{null===(t=n.parentNode)||void 0===t||t.removeChild(n)}return[2,o]}}))}))}function tu(u){u.style.setProperty("visibility","hidden","important"),u.style.setProperty("display","block","important")}function eu(u){return matchMedia("(inverted-colors: ".concat(u,")")).matches}function nu(u){return matchMedia("(forced-colors: ".concat(u,")")).matches}function iu(u){return matchMedia("(prefers-contrast: ".concat(u,")")).matches}function ou(u){return matchMedia("(prefers-reduced-motion: ".concat(u,")")).matches}function ru(u){return matchMedia("(prefers-reduced-transparency: ".concat(u,")")).matches}function Du(u){return matchMedia("(dynamic-range: ".concat(u,")")).matches}var au=Math,su=function(){return 0},lu={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},Fu=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),cu=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),du=["FRAGMENT_SHADER","VERTEX_SHADER"],Cu=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"];function hu(u){if(u.webgl)return u.webgl.context;var t,e=document.createElement("canvas");e.addEventListener("webglCreateContextError",(function(){return t=void 0}));for(var n=0,i=["webgl","experimental-webgl"];n<i.length;n++){var o=i[n];try{t=e.getContext(o)}catch(u){}if(t)break}return u.webgl={context:t},t}function Eu(u,t,e){var n=u.getShaderPrecisionFormat(u[t],u[e]);return n?[n.rangeMin,n.rangeMax,n.precision]:[]}function Au(u){return Object.keys(u.__proto__).filter(vu)}function vu(u){return"string"==typeof u&&!u.match(/[^A-Z0-9_x]/)}function fu(){return R()}function pu(u){return"function"==typeof u.getParameter}var gu={fonts:function(){var u=this;return Z((function(t,e){var n=e.document;return o(u,void 0,void 0,(function(){var u,t,e,i,o,D,a,s,l,F,c;return r(this,(function(r){for((u=n.body).style.fontSize="48px",(t=n.createElement("div")).style.setProperty("visibility","hidden","important"),e={},i={},o=function(u){var e=n.createElement("span"),i=e.style;return i.position="absolute",i.top="0",i.left="0",i.fontFamily=u,e.textContent="mmMwWLliI0O&1",t.appendChild(e),e},D=function(u,t){return o("'".concat(u,"',").concat(t))},a=function(){for(var u={},t=function(t){u[t]=J.map((function(u){return D(t,u)}))},e=0,n=U;e<n.length;e++)t(n[e]);return u},s=function(u){return J.some((function(t,n){return u[n].offsetWidth!==e[t]||u[n].offsetHeight!==i[t]}))},l=J.map(o),F=a(),u.appendChild(t),c=0;c<J.length;c++)e[J[c]]=l[c].offsetWidth,i[J[c]]=l[c].offsetHeight;return[2,U.filter((function(u){return s(F[u])}))]}))}))}))},domBlockers:function(u){var t=(void 0===u?{}:u).debug;return o(this,void 0,void 0,(function(){var u,e,n,i,o;return r(this,(function(r){switch(r.label){case 0:return V()||N()?(D=atob,u={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',D("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",D("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",D("LnNwb25zb3JpdA=="),".ylamainos",D("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),D("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZH
2BlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",D("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",D("LmhlYWRlci1ibG9ja2VkLWFk"),D("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",D("I2FkXzMwMFgyNTA="),D("I2Jhbm5lcmZsb2F0MjI="),D("I2NhbXBhaWduLWJhbm5lcg=="),D("I0FkLUNvbnRlbnQ=")],adGuardChinese:[D("LlppX2FkX2FfSA=="),D("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",D("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),D("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",D("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",D("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",D("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),D("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),D("LmFkZ29vZ2xl"),D("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[D("YW1wLWF1dG8tYWRz"),D("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",D("I2FkX2ludmlld19hcmVh")],adGuardRussian:[D("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),D("LnJlY2xhbWE="),'div[id^="smi2adblock"]',D("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[D("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),D("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",D("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),D("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),D("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",D("I3Jla2xhbWk="),D("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),D("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),D("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[D("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",D("LndpZGdldF9wb19hZHNfd2lkZ2V0"),D("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",D("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[D("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),D("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",D("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",D("I3Jla2xhbW5pLWJveA=="),D("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",D("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[D("I2FkdmVydGVudGll"),D("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",D("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",D("LnNwb25zb3JsaW5rZ3J1ZW4="),D("I3dlcmJ1bmdza3k="),D("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),D("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[D("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",D("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),D("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),D("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[D("LnJla2xhbW9zX3RhcnBhcw=="),D("LnJla2xhbW9zX251b3JvZG9z"),D("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),D("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),D("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[D("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[D("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),D("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiX
2Q=="),"article.category-samarbete",D("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[D("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),D("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),D("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",D("LmFkX19tYWlu"),D("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[D("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[D("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),D("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[D("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),D("I2xpdmVyZUFkV3JhcHBlcg=="),D("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),D("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[D("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",D("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),D("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),D("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[D("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),D("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),D("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",D("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),D("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),D("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiX
2Q=="),D("ZGl2I3NrYXBpZWNfYWQ=")],ro:[D("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),D("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),D("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),D("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[D("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),D("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),D("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",D("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),D("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",D("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},e=Object.keys(u),[4,uu((o=[]).concat.apply(o,e.map((function(t){return u[t]}))))]):[2,void 0];case 1:return n=r.sent(),t&&function(u,t){for(var e="DOM blockers debug:\n```",n=0,i=Object.keys(u);n<i.length;n++){var o=i[n];e+="\n".concat(o,":");for(var r=0,D=u[o];r<D.length;r++){var a=D[r];e+="\n ".concat(t[a]?"ð«":"â¡ï¸"," ").concat(a)}}console.log("".concat(e,"\n```"))}(u,n),(i=e.filter((function(t){var e=u[t];return E(e.map((function(u){return n[u]})))>.6*e.length}))).sort(),[2,i]}var D}))}))},fontPreferences:function(){return function(u,t){return void 0===t&&(t=4e3),Z((function(u,e){var n=e.document,i=n.body,o=i.style;o.width="".concat(t,"px"),o.webkitTextSizeAdjust=o.textSizeAdjust="none",M()?i.style.zoom="".concat(1/e.devicePixelRatio):V()&&(i.style.zoom="reset");var r=n.createElement("div");return r.textContent=D([],Array(t/20|0),!0).map((function(){return"word"})).join(" "),i.appendChild(r),function(u,t){for(var e={},n={},i=0,o=Object.keys(lu);i<o.length;i++){var r=o[i],D=lu[r],a=D[0],s=void 0===a?{}:a,l=D[1],F=void 0===l?"mmMwWLliI0fiflO&1":l,c=u.createElement("span");c.textContent=F,c.style.whiteSpace="nowrap";for(var d=0,C=Object.keys(s);d<C.length;d++){var h=C[d],E=s[h];void 0!==E&&(c.style[h]=E)}e[r]=c,t.append(u.createElement("br"),c)}for(var A=0,v=Object.keys(lu);A<v.length;A++)n[r=v[A]]=e[r].getBoundingClientRect().width;return n}(n,i)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}()},audio:function(){return V()&&W()&&P()?-4:function(){var u=window,t=u.OfflineAudioContext||u.webkitOfflineAudioContext;if(!t)return-2;if(V()&&!I()&&!function(){var u=window;return E(["DOMRectList"in u,"RTCPeerConnectionIceEvent"in u,"SVGGeometryElement"in u,"ontransitioncancel"in u])>=3}())return-1;var e=new t(1,5e3,44100),n=e.createOscillator();n.type="triangle",n.frequency.value=1e4;var i=e.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.25,n.connect(i),i.connect(e.destination),n.start(0);var o=function(u){var t=function(){};return[new Promise((function(e,n){var i=!1,o=0,r=0;u.oncomplete=function(u){return e(u.renderedBuffer)};var D=function(){setTimeout((function(){return n(H("timeout"))}),Math.min(500,r+5e3-Date.now()))},a=function(){try{var t=u.startRendering();switch(s(t)&&c(t),u.state){case"running":r=Date.now(),i&&D();break;case"suspended":document.hidden||o++,i&&o>=3?n(H("suspended")):setTimeout(a,500)}}catch(u){n(u)}};a(),t=function(){i||(i=!0,r>0&&D())}})),t]}(e),r=o[0],D=o[1],a=r.then((function(u){return function(u){for(var t=0,e=0;e<u.length;++e)t+=Math.abs(u[e]);return t}(u.getChannelData(0).subarray(4500))}),(function(u){if("timeout"===u.name||"suspended"===u.name)return-3;throw u}));return c(a),function(){return D(),a}}()},screenFrame:function(){var u=this;if(V()&&W()&&P())return function(){return Promise.resolve(void 0)};var t=Q();return function(){return o(u,void 0,void 0,(function(){var u,e;return r(this,(function(n){switch(n.label){case 0:return[4,t()];case 1:return u=n.sent(),[2,[(e=function(u){return null===u?null:A(u,10)})(u[0]),e(u[1]),e(u[2]),e(u[3])]]}}))}))}},canvas:function(){return function(u){var t,e,n,i=!1,o=function(){var u=document.createElement("canvas");return u.width=1,u.height=1,[u,u.getContext("2d")]}(),r=o[0],D=o[1];return function(u,t){return!(!t||!u.toDataURL)}(r,D)?(i=function(u){return u.rect(0,0,10,10),u.rect(2,2,6,6),!u.isPointInPath(
25,5,"evenodd")}(D),u?e=n="skipped":(t=function(u,t){!function(u,t){u.width=240,u.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';var e="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));t.fillText(e,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(e,4,45)}(u,t);var e=q(u);return e!==q(u)?["unstable","unstable"]:(function(u,t){u.width=122,u.height=110,t.globalCompositeOperation="multiply";for(var e=0,n=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];e<n.length;e++){var i=n[e],o=i[0],r=i[1],D=i[2];t.fillStyle=o,t.beginPath(),t.arc(r,D,40,0,2*Math.PI,!0),t.closePath(),t.fill()}t.fillStyle="#f9c",t.arc(60,60,60,0,2*Math.PI,!0),t.arc(60,60,20,0,2*Math.PI,!0),t.fill("evenodd")}(u,t),[q(u),e])}(r,D),e=t[0],n=t[1])):e=n="unsupported",{winding:i,geometry:e,text:n}}(V()&&W()&&P())},osCpu:function(){return navigator.oscpu},languages:function(){var u,t=navigator,e=[],n=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(void 0!==n&&e.push([n]),Array.isArray(t.languages))M()&&E([!("MediaSettingsRange"in(u=window)),"RTCEncodedAudioFrame"in u,""+u.Intl=="[object Intl]",""+u.Reflect=="[object Reflect]"])>=3||e.push(t.languages);else if("string"==typeof t.languages){var i=t.languages;i&&e.push(i.split(","))}return e},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return h(C(navigator.deviceMemory),void 0)},screenResolution:function(){if(!(V()&&W()&&P()))return function(){var u=screen,t=function(u){return h(d(u),null)},e=[t(u.width),t(u.height)];return e.sort().reverse(),e}()},hardwareConcurrency:function(){return h(d(navigator.hardwareConcurrency),void 0)},timezone:function(){var u,t=null===(u=window.Intl)||void 0===u?void 0:u.DateTimeFormat;if(t){var e=(new t).resolvedOptions().timeZone;if(e)return e}var n,i=(n=(new Date).getFullYear(),-Math.max(C(new Date(n,0,1).getTimezoneOffset()),C(new Date(n,6,1).getTimezoneOffset())));return"UTC".concat(i>=0?"+":"").concat(i)},sessionStorage:function(){try{return!!window.sessionStorage}catch(u){return!0}},localStorage:function(){try{return!!window.localStorage}catch(u){return!0}},indexedDB:function(){if(!O()&&!function(){var u=window,t=navigator;return E(["msWriteProfilerMark"in u,"MSStream"in u,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!O()}())try{return!!window.indexedDB}catch(u){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var u=navigator.platform;return"MacIntel"===u&&V()&&!I()?function(){if("iPad"===navigator.platform)return!0;var u=screen,t=u.width/u.height;return E(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone":u},plugins:function(){var u=navigator.plugins;if(u){for(var t=[],e=0;e<u.length;++e){var n=u[e];if(n){for(var i=[],o=0;o<n.length;++o){var r=n[o];i.push({type:r.type,suffixes:r.suffixes})}t.push({name:n.name,description:n.description,mimeTypes:i})}}return t}},touchSupport:function(){var u,t=navigator,e=0;void 0!==t.maxTouchPoints?e=d(t.maxTouchPoints):void 0!==t.msMaxTouchPoints&&(e=t.msMaxTouchPoints);try{document.createEvent("TouchEvent"),u=!0}catch(t){u=!1}return{maxTouchPoints:e,touchEvent:u,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var u=[],t=0,e=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<e.length;t++){var i=e[t],o=window[i];o&&"object"==n(o)&&u.push(i)}return u.sort()},cookiesEnabled:function(){var u=document;try{u.cookie="cookietest=1; SameSite=Strict;";var t=-1!==u.cookie.indexOf("cookietest=");return u.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(u){return!1}},colorGamut:function(){for(var u=0,t=["rec2020","p3","srgb"];u<t.length;u++){var e=t[u];if(matchMedia("(color-gamut: ".concat(e,")")).matches)return e}},invertedColors:function(){return!!eu("inverted")||!eu("none")&&void 0},forcedColors:function(){return!!nu("active")||!nu("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var u=0;u<=100;++u)if(matchMedia("(max-monochrome: ".concat(u,")")).matches)return u;throw new Error("Too high value")}},contrast:function(){return iu("no-preference")?0:iu("high")||iu("more")?1:iu("low")||iu("less")?-1:iu("forced")?10:void 0},reducedMotion:function(){return!!ou("reduce")||!ou("no-preference")&&void 0},reducedTransparency:function(){return!!ru("reduce")||!ru("no-preference")&&void 0},hdr:function(){return!!Du("high")||!Du("standard")&&void 0},math:function(){var u,t=au.acos||su,e=au.acosh||su,n=au.asin||su,i=au.asinh||su,o=au.atanh||su,r=au.atan||su,D=au.sin||su,a=au.sinh||su,s=au.cos||su,l=au.cosh||su,F=au.tan||su,c=au.tan
2h||su,d=au.exp||su,C=au.expm1||su,h=au.log1p||su;return{acos:t(.12312423423423424),acosh:e(1e308),acoshPf:(u=1e154,au.log(u+au.sqrt(u*u-1))),asin:n(.12312423423423424),asinh:i(1),asinhPf:au.log(1+au.sqrt(2)),atanh:o(.5),atanhPf:au.log(3)/2,atan:r(.5),sin:D(-1e300),sinh:a(1),sinhPf:au.exp(1)-1/au.exp(1)/2,cos:s(10.000000000123),cosh:l(1),coshPf:(au.exp(1)+1/au.exp(1))/2,tan:F(-1e300),tanh:c(1),tanhPf:(au.exp(2)-1)/(au.exp(2)+1),exp:d(1),expm1:C(1),expm1Pf:au.exp(1)-1,log1p:h(10),log1pPf:au.log(11),powPI:au.pow(au.PI,-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var u=new Float32Array(1),t=new Uint8Array(u.buffer);return u[0]=1/0,u[0]=u[0]-u[0],t[3]},applePay:function(){var u=window.ApplePaySession;if("function"!=typeof(null==u?void 0:u.canMakePayments))return-1;try{return u.canMakePayments()?1:0}catch(u){return function(u){if(u instanceof Error){if("InvalidAccessError"===u.name){if(/\bfrom\b.*\binsecure\b/i.test(u.message))return-2;if(/\bdifferent\b.*\borigin\b.*top.level\b.*\bframe\b/i.test(u.message))return-3}if("SecurityError"===u.name&&/\bthird.party iframes?.*\bnot.allowed\b/i.test(u.message))return-3}throw u}(u)}},privateClickMeasurement:function(){var u,t=document.createElement("a"),e=null!==(u=t.attributionSourceId)&&void 0!==u?u:t.attributionsourceid;return void 0===e?void 0:String(e)},audioBaseLatency:function(){var u;return N()||V()?window.AudioContext&&null!==(u=(new AudioContext).baseLatency)&&void 0!==u?u:-1:-2},webGlBasics:function(u){var t,e,n,i,o,r,D=hu(u.cache);if(!D)return-1;if(!pu(D))return-2;var a=fu()?null:D.getExtension("WEBGL_debug_renderer_info");return{version:(null===(t=D.getParameter(D.VERSION))||void 0===t?void 0:t.toString())||"",vendor:(null===(e=D.getParameter(D.VENDOR))||void 0===e?void 0:e.toString())||"",vendorUnmasked:a?null===(n=D.getParameter(a.UNMASKED_VENDOR_WEBGL))||void 0===n?void 0:n.toString():"",renderer:(null===(i=D.getParameter(D.RENDERER))||void 0===i?void 0:i.toString())||"",rendererUnmasked:a?null===(o=D.getParameter(a.UNMASKED_RENDERER_WEBGL))||void 0===o?void 0:o.toString():"",shadingLanguageVersion:(null===(r=D.getParameter(D.SHADING_LANGUAGE_VERSION))||void 0===r?void 0:r.toString())||""}},webGlExtensions:function(u){var t=hu(u.cache);if(!t)return-1;if(!pu(t))return-2;var e=t.getSupportedExtensions(),n=t.getContextAttributes(),i=[],o=[],r=[],D=[];if(n)for(var a=0,s=Object.keys(n);a<s.length;a++){var l=s[a];i.push("".concat(l,"=").concat(n[l]))}for(var F=0,c=Au(t);F<c.length;F++){var d=t[p=c[F]];o.push("".concat(p,"=").concat(d).concat(Fu.has(d)?"=".concat(t.getParameter(d)):""))}if(e)for(var C=0,h=e;C<h.length;C++){var E=h[C];if(!("WEBGL_debug_renderer_info"===E&&fu()||"WEBGL_polygon_mode"===E&&(M()||V()))){var A=t.getExtension(E);if(A)for(var v=0,f=Au(A);v<f.length;v++){var p;d=A[p=f[v]],r.push("".concat(p,"=").concat(d).concat(cu.has(d)?"=".concat(t.getParameter(d)):""))}}}for(var g=0,m=du;g<m.length;g++)for(var B=m[g],y=0,b=Cu;y<b.length;y++){var w=b[y],_=Eu(t,B,w);D.push("".concat(B,".").concat(w,"=").concat(_.join(",")))}return r.sort(),o.sort(),{contextAttributes:i,parameters:o,shaderPrecisions:D,extensions:e,extensionParameters:r}}};function mu(u){var t=function(u){if(N())return.4;if(V())return!I()||W()&&P()?.3:.5;var t="value"in u.platform?u.platform.value:"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}(u),e=function(u){return A(.99+.01*u,1e-4)}(t);return{score:t,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(e))}}function Bu(u){return JSON.stringify(u,(function(u,t){return t instanceof Error?i({name:(e=t).name,message:e.message,stack:null===(n=e.stack)||void 0===n?void 0:n.split("\n")},e):t;var e,n}),2)}function yu(u){return T(function(u){for(var t="",e=0,n=Object.keys(u).sort();e<n.length;e++){var i=n[e],o=u[i],r="error"in o?"error":JSON.stringify(o.value);t+="".concat(t?"|":"").concat(i.replace(/([:|\\])/g,"\\$1"),":").concat(r)}return t}(u))}function bu(u){return void 0===u&&(u=50),function(u,t){void 0===t&&(t=1/0);var e=window.requestIdleCallback;return e?new Promise((function(u){return e.call(window,(function(){return u()}),{timeout:t})})):a(Math.min(u,t))}(u,2*u)}function wu(u,t){var e=Date.now();return{get:function(n){return o(this,void 0,void 0,(function(){var i,o,D;return r(this,(function(r){switch(r.label){case 0:return i=Date.now(),[4,u()];case 1:return o=r.sent(),D=function(u){var t;return{get visitorId(){return void 0===t&&(t=yu(this.components)),t},set visitorId(u){t=u},confidence:mu(u),components:u,version:"4.4.2"}}(o),(t||(null==n?void 0:n.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(D.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(i-e,"\nvisitorId: ").concat(D.visitorId,"\ncomponents: ").concat(Bu(o),"\n```")),[2,D]}}))}))}}}function _u(u){return void 0===u&&(u={}),o(this,void 0,void 0,(function(){var t,e,n;return r(this,(function(i){switch(i.label){case 0:return u.monitoring,t=u.delayFallback,e=u.debug,[4,bu(t)];case 1:return i.sent(),n=function(u){return j(gu,u,[])}({cache:{},debug:e}),[2,wu(n,e)]}}))}))}e(1111);function Su(u){return Su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},Su(u)}function ku(u,t){var e=Object.keys(u);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(u);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(u,t).enumerable}))),e.push.apply(e,n)}return e}function xu(u){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};
vendor: 4,579 bytes, line 2
2t%2?ku(Object(e),!0).forEach((function(t){Tu(u,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(e)):ku(Object(e)).forEach((function(t){Object.defineProperty(u,t,Object.getOwnPropertyDescriptor(e,t))}))}return u}function Tu(u,t,e){return(t=Vu(t))in u?Object.defineProperty(u,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):u[t]=e,u}function Lu(){Lu=function(){return t};var u,t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",r=i.asyncIterator||"@@asyncIterator",D=i.toStringTag||"@@toStringTag";function a(u,t,e,n){return Object.defineProperty(u,t,{value:e,enumerable:!n,configurable:!n,writable:!n})}try{a({},"")}catch(u){a=function(u,t,e){return u[t]=e}}function s(t,e,n,i){var o=e&&e.prototype instanceof c?e:c,r=Object.create(o.prototype);return a(r,"_invoke",function(t,e,n){var i=1;return function(o,r){if(3===i)throw Error("Generator is already running");if(4===i){if("throw"===o)throw r;return{value:u,done:!0}}for(n.method=o,n.arg=r;;){var D=n.delegate;if(D){var a=g(D,n);if(a){if(a===F)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===i)throw i=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=3;var s=l(t,e,n);if("normal"===s.type){if(i=n.done?4:2,s.arg===F)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i=4,n.method="throw",n.arg=s.arg)}}}(t,n,new y(i||[])),!0),r}function l(u,t,e){try{return{type:"normal",arg:u.call(t,e)}}catch(u){return{type:"throw",arg:u}}}t.wrap=s;var F={};function c(){}function d(){}function C(){}var h={};a(h,o,(function(){return this}));var E=Object.getPrototypeOf,A=E&&E(E(b([])));A&&A!==e&&n.call(A,o)&&(h=A);var v=C.prototype=c.prototype=Object.create(h);function f(u){["next","throw","return"].forEach((function(t){a(u,t,(function(u){return this._invoke(t,u)}))}))}function p(u,t){function e(i,o,r,D){var a=l(u[i],u,o);if("throw"!==a.type){var s=a.arg,F=s.value;return F&&"object"==Su(F)&&n.call(F,"__await")?t.resolve(F.__await).then((function(u){e("next",u,r,D)}),(function(u){e("throw",u,r,D)})):t.resolve(F).then((function(u){s.value=u,r(s)}),(function(u){return e("throw",u,r,D)}))}D(a.arg)}var i;a(this,"_invoke",(function(u,n){function o(){return new t((function(t,i){e(u,n,t,i)}))}return i=i?i.then(o,o):o()}),!0)}function g(t,e){var n=e.method,i=t.i[n];if(i===u)return e.delegate=null,"throw"===n&&t.i.return&&(e.method="return",e.arg=u,g(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),F;var o=l(i,t.i,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,F;var r=o.arg;return r?r.done?(e[t.r]=r.value,e.next=t.n,"return"!==e.method&&(e.method="next",e.arg=u),e.delegate=null,F):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,F)}function m(u){this.tryEntries.push(u)}function B(t){var e=t[4]||{};e.type="normal",e.arg=u,t[4]=e}function y(u){this.tryEntries=[[-1]],u.forEach(m,this),this.reset(!0)}function b(t){if(null!=t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=u,e.done=!0,e};return r.next=r}}throw new TypeError(Su(t)+" is not iterable")}return d.prototype=C,a(v,"constructor",C),a(C,"constructor",d),d.displayName=a(C,D,"GeneratorFunction"),t.isGeneratorFunction=function(u){var t="function"==typeof u&&u.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(u){return Object.setPrototypeOf?Object.setPrototypeOf(u,C):(u.__proto__=C,a(u,D,"GeneratorFunction")),u.prototype=Object.create(v),u},t.awrap=function(u){return{__await:u}},f(p.prototype),a(p.prototype,r,(function(){return this})),t.AsyncIterator=p,t.async=function(u,e,n,i,o){void 0===o&&(o=Promise);var r=new p(s(u,e,n,i),o);return t.isGeneratorFunction(e)?r:r.next().then((function(u){return u.done?u.value:r.next()}))},f(v),a(v,D,"Generator"),a(v,o,(function(){return this})),a(v,"toString",(function(){return"[object Generator]"})),t.keys=function(u){var t=Object(u),e=[];for(var n in t)e.unshift(n);return function u(){for(;e.length;)if((n=e.pop())in t)return u.value=n,u.done=!1,u;return u.done=!0,u}},t.values=b,y.prototype={constructor:y,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEac
2h(B),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=u)},stop:function(){this.done=!0;var u=this.tryEntries[0][4];if("throw"===u.type)throw u.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(u){r.type="throw",r.arg=t,e.next=u}for(var i=e.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],r=o[4],D=this.prev,a=o[1],s=o[2];if(-1===o[0])return n("end"),!1;if(!a&&!s)throw Error("try statement without catch or finally");if(null!=o[0]&&o[0]<=D){if(D<a)return this.method="next",this.arg=u,n(a),!0;if(D<s)return n(s),!1}}},abrupt:function(u,t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var i=n;break}}i&&("break"===u||"continue"===u)&&i[0]<=t&&t<=i[2]&&(i=null);var o=i?i[4]:{};return o.type=u,o.arg=t,i?(this.method="next",this.next=i[2],F):this.complete(o)},complete:function(u,t){if("throw"===u.type)throw u.arg;return"break"===u.type||"continue"===u.type?this.next=u.arg:"return"===u.type?(this.rval=this.arg=u.arg,this.method="return",this.next="end"):"normal"===u.type&&t&&(this.next=t),F},finish:function(u){for(var t=this.tryEntries.length-1;t>=0;--t){var e=this.tryEntries[t];if(e[2]===u)return this.complete(e[4],e[3]),B(e),F}},catch:function(u){for(var t=this.tryEntries.length-1;t>=0;--t){var e=this.tryEntries[t];if(e[0]===u){var n=e[4];if("throw"===n.type){var i=n.arg;B(e)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={i:b(t),r:e,n},"next"===this.method&&(this.arg=u),F}},t}function ju(u,t,e,n,i,o,r){try{var D=u[o](r),a=D.value}catch(u){return void e(u)}D.done?t(a):Promise.resolve(a).then(n,i)}function Ou(u){return function(){var t=this,e=arguments;return new Promise((function(n,i){var o=u.apply(t,e);function r(u){ju(o,n,i,r,D,"next",u)}function D(u){ju(o,n,i,r,D,"throw",u)}r(void 0)}))}}function Mu(u,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(u,Vu(n.key),n)}}function Vu(u){var t=function(u,t){if("object"!=Su(u)||!u)return u;var e=u[Symbol.toPrimitive];if(void 0!==e){var n=e.call(u,t||"default");if("object"!=Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(u)}(u,"string");return"symbol"==Su(t)?t:t+""}function Iu(u,t){(function(u,t){if(t.has(u))throw new TypeError("Cannot initialize the same private elements twice on an object")})(u,t),t.add(u)}function Pu(u,t,e){if("function"==typeof u?u===t:u.has(t))return arguments.length<3?t:e;throw new TypeError("Private element is not present on this object")}var Ru=new WeakSet,Wu=function(){return function(u,t,e){return t&&Mu(u.prototype,t),e&&Mu(u,e),Object.defineProperty(u,"prototype",{writable:!1}),u}((function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";!function(u,t){if(!(u instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),Iu(this,Ru),this.userId=ttsObj.user_id,"0"==this.userId&&this.getUniqueUserId(),this.apiUrl=ttsObj.api_url+ttsObj.api_namespace+"/"+ttsObj.api_version+"/track",this.postId=t,this.sessionData=this.getSessionData(),this._startTimeTracking=!1,this.listeningLengthInterval=null,this._audioDuration=0,this._currentTime=0,this._milestones={"25_percent":!1,"50_percent":!1,"75_percent":!1},window.__tta_active_analytics=this,window.__tta_beforeunload_attached||(window.__tta_beforeunload_attached=!0,window.addEventListener("beforeunload",(function(){window.__tta_active_analytics&&window.__tta_active_analytics.sendSessionData()}))),this.trackDeviceInfo()}),[{key:"startTimeTracking",get:function(){return this._startTimeTracking},set:function(u){this._startTimeTracking=u,this.trackListeningLength()}},{key:"handleStartTimeTracking",value:function(u){this.trackListeningLength()}},{key:"trackInit",value:function(){"0"==this.userId&&this.getUniqueUserId(),this.addEvent("init")}},{key:"trackPlay",value:function(){this.startTimeTracking=!0,this.addEvent("play")}},{key:"trackPause",value:function(){this.startTimeTracking=!1,this.addEvent("pause")}},{key:"trackResume",value:function(){this.startTimeTracking=!0,this.addEvent("resume")}},{key:"trackEnd",value:function(){this.startTimeTracking=!1,this.addEvent("end"),this.resetMilestones()}},{key:"setAudioDuration",value:function(u){this._audioDuration=u}},{key:"trackProgress",value:function(u){if(this._audioDuration&&!(this._audioDuration<=0)){this._currentTime=u;var t=u/this._audioDuration*100;t>=25&&!this._milestones["25_percent"]&&(this._milestones["25_percent"]=!0,this.addEvent("25_percent")),t>=50&&!this._milestones["50_percent"]&&(this._milestones["50_percent"]=!0,this.addEvent("50_percent")),t>=75&&!this._milestones["75_percent"]&&(this._milestones["75_percent"]=!0,this.addEvent("75_percent"))}}},{key:"resetMilestones",value:function(){this._milestones={"25_percent":!1,"50_percent":!1,"75_percent":!1}}},{key:"trackDownload",value:function(){this.addEvent("download")}},{key:"trackListeningLength",value:function(){var u=this;this.startTimeTracking?this.listeningLengthInterval||(this.listeningLengthInterval=setInterval((function(){var t,e=u.getSessionData();null!=e&&e.listening_length&&(u.listeningLength=null==e||null===(t=e.listening_length)||void 0===t?void 0:t.length);u.listeningLength+=1,u.addEvent("time")}
2),1e3)):(clearInterval(this.listeningLengthInterval),this.listeningLengthInterval=null,this.startTimeTracking&&this.addEvent("time"),this.listeningLength=0)}},{key:"getSessionData",value:function(){var u=sessionStorage.getItem("atlasVoice_analytics_data");return u?JSON.parse(u):{}}},{key:"saveSessionData",value:function(){sessionStorage.setItem("atlasVoice_analytics_data",JSON.stringify(this.sessionData))}},{key:"sendSessionData_old",value:function(){var u,t;this.shouldTrackAnalyticsData()&&(this.sessionData=this.getSessionData(),0!==(null===(u=Object.keys(this.sessionData))||void 0===u?void 0:u.length)&&(fetch(this.apiUrl,{method:"POST",headers:{"Content-Type":"application/json","X-WP-NONCE":null===(t=window)||void 0===t||null===(t=t.ttsObj)||void 0===t?void 0:t.rest_nonce},body:JSON.stringify({analytics:this.sessionData,post_id:this.postId,user_id:this.userId,other_data:{}})}),sessionStorage.removeItem("atlasVoice_analytics_data"),sessionStorage.removeItem("atlasVoice_analytics_is_initiated"),window.hasAtlasVoiceAnalyticsBeforeUnloadListener=!1))}},{key:"sendSessionData",value:function(){var u;if(this.shouldTrackAnalyticsData()){var t=this.getSessionData();if(0!==Object.keys(t).length){var e={analytics:t,post_id:this.postId,user_id:this.userId,other_data:{},rest_nonce:null===(u=window)||void 0===u||null===(u=u.ttsObj)||void 0===u?void 0:u.rest_nonce},n=JSON.stringify(e),i=navigator.userAgent.toLowerCase().includes("firefox"),o=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);if(navigator.sendBeacon&&(i||o))try{var r=new Blob([n],{type:"application/json"});navigator.sendBeacon(this.apiUrl,r)&&(sessionStorage.removeItem("atlasVoice_analytics_data"),sessionStorage.removeItem("atlasVoice_analytics_is_initiated"))}catch(u){console.warn("sendBeacon failed, fallback to fetch()",u),this._sendSessionDataWithFetch(n)}else this._sendSessionDataWithFetch(n);window.hasAtlasVoiceAnalyticsBeforeUnloadListener=!1}}}},{key:"_sendSessionDataWithFetch",value:function(u){var t;fetch(this.apiUrl,{method:"POST",headers:{"Content-Type":"application/json","X-WP-NONCE":(null===(t=window)||void 0===t||null===(t=t.ttsObj)||void 0===t?void 0:t.rest_nonce)||""},body:u,keepalive:!0}).catch((function(u){return console.error("Fetch error:",u)})).finally((function(){sessionStorage.removeItem("atlasVoice_analytics_data"),sessionStorage.removeItem("atlasVoice_analytics_is_initiated")}))}},{key:"getUniqueUserId",value:(e=Ou(Lu().mark((function u(){var t,e;return Lu().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(t=this.userId,"0"!=this.userId){u.next=5;break}return e=_u(),u.next=5,e.then((function(u){return u.get()})).then((function(u){t=u.visitorId}));case 5:this.userId=t;case 6:case"end":return u.stop()}}),u,this)}))),function(){return e.apply(this,arguments)})},{key:"addEvent",value:function(u){var t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldTrackAnalyticsData()){var n,i={};if("device_info"===u)return this.sessionData[u]=e,void this.saveSessionData();if(null!==(t=this.sessionData)&&void 0!==t&&t[u])i=xu({count:(null===(n=this.sessionData)||void 0===n||null===(n=n[u])||void 0===n?void 0:n.count)+1,timestamp:(new Date).toISOString()},e);else i=xu({count:1,timestamp:(new Date).toISOString()},e);this.sessionData[u]=i,this.saveSessionData()}}},{key:"addEvent_new",value:function(u){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.sessionData[this.postId]||(this.sessionData[this.postId]={}),this.sessionData[this.postId][u]||(this.sessionData[this.postId][u]={count:0}),this.sessionData[this.postId][u].count+=1,this.sessionData[this.postId][u]=xu(xu({},this.sessionData[this.postId][u]),t),this.saveSessionData()}},{key:"trackDeviceInfo",value:(t=Ou(Lu().mark((function u(){var t,e,n,i,o;return Lu().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(t="undefined"!=typeof ttsObj&&ttsObj.settings&&ttsObj.settings.analytics&&ttsObj.settings.analytics.tts_show_listener_location,e=function(u){return u&&"object"===Su(u)&&(u.country=null,u.city=null,u.region=null),u},n=localStorage.getItem("atlasVoice_stored_device_info"),!(n=JSON.parse(n))){u.next=14;break}if(t){u.next=10;break}return e(n),localStorage.setItem("atlasVoice_stored_device_info",JSON.stringify(n)),this.addEvent("device_info",n),u.abrupt("return");case 10:if(!(n.country||n.city||n.region)){u.next=14;break}return this.addEvent("device_info",n),u.abrupt("return");case 14:return u.next=16,this.getDeviceData().then((function(u){return u}));case 16:if(i=u.sent,!t){u.next=24;break}return u.next=20,Pu(Ru,this,Zu).call(this);case 20:(o=u.sent)&&(o.city&&"Unknown"!==o.city&&(i.city=o.city),o.country&&"Unknown"!==o.country&&(i.country=o.country),o.region&&(i.region=o.region)),u.next=25;break;case 24:e(i);case 25:localStorage.setItem("atlasVoice_stored_device_info",JSON.stringify(i)),this.addEvent("device_info",i);case 27:case"end":return u.stop()}}),u,this)}))),function(){return t.apply(this,arguments)})},{key:"getDeviceData",value:(u=Ou(Lu().mark((function u(){var t,e,n,i,o,r;return Lu().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return o=function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,t="Unknown",e="Desktop",n="";if((u=u.toLowerCase()).includes("windows"))t=u.includes("windows nt 10.0")?"Windows 10":u.includes("windows nt 11.0")?"Windows 11":u.includes("windows nt 6.3")?"Windows 8.1":u.includes("windows nt 6.2")?"Windows 8":u.includes("windows nt 6.1")?"Windows 7":"Windows",u.includes("win64")||u.includes("x64")||u.includes("wow64")?n="64-bit":(u.includes("win32")||u.includes("x86"))&&(n="32
2-bit");else if(u.includes("macintosh")||u.includes("mac os"))t="macOS",n=u.includes("arm")||u.includes("apple")?"Apple Silicon":"Intel";else if(/iphone|ipad|ipod/.test(u))t="iOS",e=/ipad/.test(u)?"Tablet":"Mobile";else if(u.includes("android")){var i=u.match(/android\s([\d\.]+)/);t=i?"Android ".concat(i[1]):"Android",e=u.includes("mobile")?"Mobile":"Tablet"}else u.includes("linux")&&(t="Linux",u.includes("x86_64")?n="64-bit":u.includes("i686")&&(n="32-bit"));return/mobi|android|iphone|ipod/i.test(u)?e="Mobile":/ipad|tablet/i.test(u)&&(e="Tablet"),{platform:t,architecture:n,deviceType:e}},n=function(){return(n=Ou(Lu().mark((function u(){var t;return Lu().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if("permissions"in navigator&&"geolocation"in navigator){u.next=2;break}return u.abrupt("return",null);case 2:return u.prev=2,u.next=5,navigator.permissions.query({name:"geolocation"});case 5:if(!(t=u.sent)||"granted"!==t.state){u.next=10;break}return u.abrupt("return",new Promise((function(u){navigator.geolocation.getCurrentPosition((function(t){u({latitude:t.coords.latitude,longitude:t.coords.longitude,accuracy:t.coords.accuracy,timestamp:t.timestamp})}),(function(t){u(null)}),{enableHighAccuracy:!1,maximumAge:3e5,timeout:5e3})})));case 10:return u.abrupt("return",null);case 11:u.next=16;break;case 13:return u.prev=13,u.t0=u.catch(2),u.abrupt("return",null);case 16:case"end":return u.stop()}}),u,null,[[2,13]])})))).apply(this,arguments)},e=function(){return n.apply(this,arguments)},t={browserName:null,browserVersion:null,browser:null,platform:navigator.platform||null,deviceType:null,architecture:null,language:navigator.language||null,timeZone:Pu(Ru,this,Nu).call(this),location:null,country:Pu(Ru,this,Hu).call(this),city:null,region:null},function(){if(!t.browserName)for(var u,e=null===(u=window)||void 0===u||null===(u=u.navigator)||void 0===u?void 0:u.userAgent,n=0,i=[{name:"Edge",re:/Edg\/([0-9._]+)/},{name:"Chrome",re:/Chrome\/([0-9._]+)/},{name:"Firefox",re:/Firefox\/([0-9._]+)/},{name:"Safari",re:/Version\/([0-9._]+).*Safari/},{name:"Opera",re:/OPR\/([0-9._]+)/},{name:"IE",re:/MSIE\s([0-9._]+)|Trident\/.*rv:([0-9._]+)/}];n<i.length;n++){var o=i[n],r=e.match(o.re);if(r){t.browser=o.name+"_"+r[1]||r[2]||null;break}}}(),u.prev=5,u.next=8,e();case 8:(i=u.sent)&&(t.location=i),u.next=14;break;case 12:u.prev=12,u.t0=u.catch(5);case 14:return null!=(r=o())&&r.deviceType&&(t.deviceType=r.deviceType),null!=r&&r.platform&&(t.platform=r.platform),null!=r&&r.architecture&&(t.architecture=r.architecture),u.abrupt("return",t);case 19:case"end":return u.stop()}}),u,this,[[5,12]])}))),function(){return u.apply(this,arguments)})},{key:"getReport",value:function(u){var t="".concat(this.apiUrl,"/report"),e=t+(t.includes("?")?"&":"?")+"period=".concat(encodeURIComponent(u));return fetch(e).then((function(u){return u.json()}))}},{key:"shouldTrackAnalyticsData",value:function(){var u,t;if(null===(u=window)||void 0===u||null===(u=u.ttsObj)||void 0===u||null===(u=u.settings)||void 0===u||null===(u=u.analytics)||void 0===u||!u.tts_enable_analytics)return!1;var e=null===(t=window)||void 0===t||null===(t=t.ttsObj)||void 0===t||null===(t=t.settings)||void 0===t||null===(t=t.analytics)||void 0===t?void 0:t.tts_trackable_post_ids;if(!e||!e.length)return!0;var n=e.map((function(u){return String(u)}));return n.includes("all")||n.includes(String(this.postId))}}]);var u,t,e}();function Nu(){return"object"===("undefined"==typeof Intl?"undefined":Su(Intl))&&Intl.DateTimeFormat?Intl.DateTimeFormat().resolvedOptions().timeZone:null}function Hu(){var u,t=Pu(Ru,this,Nu).call(this),e=null;null!==(u=window)&&void 0!==u&&u.ct&&(e=ct.getTimezone(t));var n=e?ct.getCountry(e.countries[0]):null;return n?n.name:"Unknown"}function Zu(){return Gu.apply(this,arguments)}function Gu(){return(Gu=Ou(Lu().mark((function u(){var t,e,n;return Lu().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,fetch("".concat(ttsObj.api_url).concat(ttsObj.api_namespace,"/").concat(ttsObj.api_version,"/geolocation"),{method:"GET",headers:{"Content-Type":"application/json","X-WP-NONCE":(null===(t=window)||void 0===t||null===(t=t.ttsObj)||void 0===t?void 0:t.rest_nonce)||""}});case 3:if((e=u.sent).ok){u.next=6;break}throw new Error("Geolocation API request failed");case 6:return u.next=8,e.json();case 8:if(!(n=u.sent).status||!n.data){u.next=11;break}return u.abrupt("return",n.data);case 11:u.next=16;break;case 13:u.prev=13,u.t0=u.catch(0),console.warn("Failed to fetch geolocation:",u.t0);case 16:return u.abrupt("return",{city:"Unknown",country:Pu(Ru,this,Hu).call(this),region:""});case 17:case"end":return u.stop()}}),u,this,[[0,13]])})))).apply(this,arguments)}const zu=Wu;window.AtlasVoiceAnalytics=Wu},6756:(u,t,e)=>{e.d(t,{P:()=>o});var n=new Set(["mr","mrs","ms","dr","prof","sr","jr","st","ave","rd","blvd","inc","ltd","co","corp","vs","etc","no","vol","fig","dept","est","approx","min","max","jan","feb","mar","apr","jun","jul","aug","sep","sept","oct","nov","dec","mon","tue","wed","thu","fri","sat","sun","eg","ie","am","pm","us","uk","eu","ph","phd","mit","usa"]);function i(u){if(!u)return!1;var t=u.toLowerCase().replace(/[^a-z.]/g,"").replace(/\./g,"");return!!t&&(/^[a-z]$/.test(t)?!/[0-9]/.test(u):n.has(t))}var o=function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!u||"string"!=typeof u)return[];for(var t,e=[],n=0,o=/([.!?]+)(["'ââ)\]]*)(\s+)/g;null!==(t=o.exec(u));){var r=t[1],D=o.lastIndex,a=u.slice(n,t.index),s=u.charAt(D);
2if(""===s||/[A-Z0-9"'ââ(\[¿¡]/.test(s)){if("."===r)if(i((a.match(/(\S+)$/)||[null,""])[1]))continue;var l=u.slice(n,D).trim();l&&e.push(l),n=D}}var F=u.slice(n).trim();return F&&e.push(F),e}}},t={};function e(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return u[n](o,o.exports,e),o.exports}e.d=(u,t)=>{for(var n in t)e.o(t,n)&&!e.o(u,n)&&Object.defineProperty(u,n,{enumerable:!0,get:t[n]})},e.o=(u,t)=>Object.prototype.hasOwnProperty.call(u,t);var n=e(4060),i=e(1111),o=e(6379);function r(u){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},r(u)}function D(u,t){var e="undefined"!=typeof Symbol&&u[Symbol.iterator]||u["@@iterator"];if(!e){if(Array.isArray(u)||(e=A(u))||t&&u&&"number"==typeof u.length){e&&(u=e);var n=0,i=function(){};return{s:i,n:function(){return n>=u.length?{done:!0}:{done:!1,value:u[n++]}},e:function(u){throw u},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,D=!1;return{s:function(){e=e.call(u)},n:function(){var u=e.next();return r=u.done,u},e:function(u){D=!0,o=u},f:function(){try{r||null==e.return||e.return()}finally{if(D)throw o}}}}function a(u,t,e){return t=c(t),function(u,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(u){if(void 0===u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}(u)}(u,l()?Reflect.construct(t,e||[],c(u).constructor):t.apply(u,e))}function s(u){var t="function"==typeof Map?new Map:void 0;return s=function(u){if(null===u||!function(u){try{return-1!==Function.toString.call(u).indexOf("[native code]")}catch(t){return"function"==typeof u}}(u))return u;if("function"!=typeof u)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(u))return t.get(u);t.set(u,e)}function e(){return function(u,t,e){if(l())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(u.bind.apply(u,n));return e&&F(i,e.prototype),i}(u,arguments,c(this).constructor)}return e.prototype=Object.create(u.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),F(e,u)},s(u)}function l(){try{var u=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(u){}return(l=function(){return!!u})()}function F(u,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,t){return u.__proto__=t,u},F(u,t)}function c(u){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)},c(u)}function d(u,t){(function(u,t){if(t.has(u))throw new TypeError("Cannot initialize the same private elements twice on an object")})(u,t),t.add(u)}function C(u,t){var e=Object.keys(u);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(u);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(u,t).enumerable}))),e.push.apply(e,n)}return e}function h(u){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?C(Object(e),!0).forEach((function(t){m(u,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(e)):C(Object(e)).forEac
2h((function(t){Object.defineProperty(u,t,Object.getOwnPropertyDescriptor(e,t))}))}return u}function E(u){return function(u){if(Array.isArray(u))return v(u)}(u)||function(u){if("undefined"!=typeof Symbol&&null!=u[Symbol.iterator]||null!=u["@@iterator"])return Array.from(u)}(u)||A(u)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(u,t){if(u){if("string"==typeof u)return v(u,t);var e={}.toString.call(u).slice(8,-1);return"Object"===e&&u.constructor&&(e=u.constructor.name),"Map"===e||"Set"===e?Array.from(u):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?v(u,t):void 0}}function v(u,t){(null==t||t>u.length)&&(t=u.length);for(var e=0,n=Array(t);e<t;e++)n[e]=u[e];return n}function f(u,t){if(!(u instanceof t))throw new TypeError("Cannot call a class as a function")}function p(u,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(u,B(n.key),n)}}function g(u,t,e){return t&&p(u.prototype,t),e&&p(u,e),Object.defineProperty(u,"prototype",{writable:!1}),u}function m(u,t,e){return(t=B(t))in u?Object.defineProperty(u,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):u[t]=e,u}function B(u){var t=function(u,t){if("object"!=r(u)||!u)return u;var e=u[Symbol.toPrimitive];if(void 0!==e){var n=e.call(u,t||"default");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(u)}(u,"string");return"symbol"==r(t)?t:t+""}var y=["bottom_fixed","bottom_left","bottom_right","sticky_top"],b={bottom_center:"bottom_fixed"},w=function(){return g((function u(){f(this,u)}),null,[{key:"init",value:function(){this.modalContainer||(this.modalContainer=document.createElement("div"),this.modalContainer.id="tts-settings-modal-container",document.body.appendChild(this.modalContainer),this.injectStyles(),this.loadBrowserVoices(),this.loadSettingsFromStorage())}},{key:"injectStyles",value:function(){}},{key:"getColors",value:function(){var u,t=(null===(u=window)||void 0===u||null===(u=u.ttsObj)||void 0===u||null===(u=u.settings)||void 0===u?void 0:u.customize)||{};return{backgroundColor:t.backgroundColor||"#184c53",color:t.color||"#ffffff"}}},{key:"getCountryCode",value:function(u){return u?-1!==u.indexOf("-")?u.split("-")[0]:-1!==u.indexOf("_")?u.split("_")[0]:u:""}},{key:"loadBrowserVoices",value:function(){var u=this,t=function(){var t=window.speechSynthesis.getVoices();if(t.length>0){var e,n;u.availableVoices=t;var i=(null===(e=window)||void 0===e||null===(e=e.TTS)||void 0===e||null===(e=e.settings)||void 0===e||null===(e=e.listening)||void 0===e?void 0:e.tta__listening_lang)||"en",o=(null===(n=window)||void 0===n||null===(n=n.TTS)||void 0===n||null===(n=n.settings)||void 0===n||null===(n=n.listening)||void 0===n?void 0:n.tta__listening_voice)||"",r=u.getCountryCode(i),D=t.filter((function(t){return u.getCountryCode(t.lang).toLowerCase()===r.toLowerCase()})),a=E(new Set(D.map((function(u){return u.lang}))));u.availableLanguages=a,u.filteredVoices=D;var s=u.loadSettingsFromStorage();if(s){var l;if(!D.some((function(u){return u.name===s.voice}))&&D.length>0&&(u.currentVoice=o||D[0].name),!a.includes(s.language)&&a.length>0)u.currentLanguage=(null===(l=D[0])||void 0===l?void 0:l.lang)||i}else{var F;if(D.length>0){var c=D.find((function(u){return u.name===o}))||D[0];u.currentLanguage=c.lang,u.currentVoice=c.name}var d=(null===(F=window)||void 0===F||null===(F=F.TTS)||void 0===F||null===(F=F.settings)||void 0===F?void 0:F.listening)||{};u.currentRate=parseFloat(d.tta__listening_rate)||1,u.currentPitch=parseFloat(d.tta__listening_pitch)||1,u.currentVolume=parseFloat(d.tta__listening_volume)||1}return!0}return!1};t()||(window.speechSynthesis.onvoiceschanged=t)}},{key:"loadSettingsFromStorage",value:function(){var u=localStorage.getItem("tts_player_settings");if(u)try{var t=JSON.parse(u);return t.rate&&(this.currentRate=parseFloat(t.rate)),t.pitch&&(this.currentPitch=parseFloat(t.pitch)),t.volume&&(this.currentVolume=parseFloat(t.volume)),t.language&&(this.currentLanguage=t.language),t.voice&&(this.currentVoice=t.voice),void 0!==t.isMuted&&(this.isMuted=t.isMuted),t}catch(u){console.error("Error loading TTS settings from localStorage:",u)}return null}},{key:"saveSettingsToStorage",value:function(u){try{var t=h(h({},JSON.parse(localStorage.getItem("tts_player_settings")||"{}")),u);localStorage.setItem("tts_player_settings",JSON.stringify(t))}catch(u){console.error("Error saving TTS settings to localStorage:",u)}}},{key:"filterVoicesByLanguage",value:function(u){var t=this,e=this.getCountryCode(u),n=this.availableV
2oices.filter((function(u){return t.getCountryCode(u.lang).toLowerCase()===e.toLowerCase()}));return this.filteredVoices=n,n}},{key:"openModal",value:function(u){var t=this;this.currentButtonInstance=u,this.isOpen=!0,this._previousFocus=document.activeElement,this.renderModal(),this.startAutoCloseTimer(),requestAnimationFrame((function(){var u=t.modalContainer.querySelector(".tts__settings-modal-backdrop");u&&u.classList.add("tts__modal-visible");var e=t.modalContainer.querySelector(".tts__settings-modal-close");e&&e.focus()})),this._keyHandler=function(u){if("Escape"===u.key&&t.isOpen)t.closeModal();else if("Tab"===u.key&&t.isOpen){var e=t.modalContainer.querySelector(".tts__settings-modal");if(!e)return;var n=e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(0===n.length)return;var i=n[0],o=n[n.length-1];u.shiftKey?document.activeElement===i&&(u.preventDefault(),o.focus()):document.activeElement===o&&(u.preventDefault(),i.focus())}},document.addEventListener("keydown",this._keyHandler)}},{key:"closeModal",value:function(){var u=this,t=this.modalContainer.querySelector(".tts__settings-modal-backdrop");t&&(t.classList.remove("tts__modal-visible"),t.classList.add("tts__modal-closing"),setTimeout((function(){u.isOpen=!1,u.modalContainer.innerHTML="",u.currentButtonInstance=null}),200)),this.clearAutoCloseTimer(),this._keyHandler&&(document.removeEventListener("keydown",this._keyHandler),this._keyHandler=null),this._previousFocus&&(this._previousFocus.focus(),this._previousFocus=null)}},{key:"startAutoCloseTimer",value:function(){var u=this;this.clearAutoCloseTimer(),this.autoCloseTimer=setTimeout((function(){u.isOpen&&u.closeModal()}),15e3)}},{key:"clearAutoCloseTimer",value:function(){this.autoCloseTimer&&(clearTimeout(this.autoCloseTimer),this.autoCloseTimer=null)}},{key:"resetAutoCloseTimer",value:function(){this.isOpen&&this.startAutoCloseTimer()}},{key:"handleLanguageChange",value:function(u){var t=u.target.value;this.currentLanguage=t,this.saveSettingsToStorage({language:t}),this.resetAutoCloseTimer();var e=this.filterVoicesByLanguage(t);if(e.length>0){var n=e[0].name;this.currentVoice=n,this.saveSettingsToStorage({voice:n})}this.renderModal(),this.currentButtonInstance&&this.currentButtonInstance.speech&&this.applySettingsAndRestart()}},{key:"handleVoiceChange",value:function(u){var t=u.target.value;this.currentVoice=t,this.saveSettingsToStorage({voice:t}),this.resetAutoCloseTimer();var e=this.availableVoices.find((function(u){return u.name===t}));e&&e.lang!==this.currentLanguage&&(this.currentLanguage=e.lang,this.saveSettingsToStorage({language:e.lang})),this.currentButtonInstance&&this.currentButtonInstance.speech&&this.applySettingsAndRestart()}},{key:"handleRateChange",value:function(u){var t=parseFloat(u.target.value);this.currentRate=t,this.saveSettingsToStorage({rate:t}),this.resetAutoCloseTimer();var e=this.modalContainer.querySelector("#tts-rate-value");e&&(e.textContent="".concat(t,"x")),this.currentButtonInstance&&this.currentButtonInstance.speech&&this.applySettingsAndRestart()}},{key:"handlePitchChange",value:function(u){var t=parseFloat(u.target.value);this.currentPitch=t,this.saveSettingsToStorage({pitch:t}),this.resetAutoCloseTimer();var e=this.modalContainer.querySelector("#tts-pitch-value");e&&(e.textContent=t.toFixed(1)),this.currentButtonInstance&&this.currentButtonInstance.speech&&this.applySettingsAndRestart()}},{key:"handleVolumeChange",value:function(u){var t=parseFloat(u.target.value);this.currentVolume=t,this.isMuted=0===t,this.saveSettingsToStorage({volume:t,isMuted:0===t}),this.resetAutoCloseTimer();var e=this.modalContainer.querySelector("#tts-volume-value");e&&(e.textContent="".concat(Math.round(100*t),"%"));var n=this.modalContainer.querySelector(".tts__mute-btn");n&&(n.classList.toggle("muted",this.isMuted),this.updateMuteButtonIcon(n)),this.currentButtonInstance&&this.currentButtonInstance.speech&&this.applySettingsAndRestart()}},{key:"handleMuteToggle",value:function(){this.resetAutoCloseTimer(),this.isMuted?(this.currentVolume=this.previousVolume,this.isMuted=!1,this.saveSettingsToStorage({volume:this.previousVolume,isMuted:!1})):(this.previousVolume=this.currentVolume,this.currentVolume=0,this.isMuted=!0,this.saveSettingsToStorage({volume:0,isMuted:!0}));var u=this.modalContainer.querySelector("#tts-volume-slider"),t=this.modalContainer.querySelector("#tts-volume-value"),e=this.modalContainer.querySelector(".tts__mute-btn");u&&(u.value=this.currentVolume),t&&(t.textContent="".concat(Math.round(100*this.currentVolume),"%")),e&&(e.classList.toggle("muted",this.isMuted),this.updateMuteButtonIcon(e)),this.currentButtonInstance&&this.currentButtonInstance.speech&&this.applySettingsAndRestart()}},{key:"updateMuteButtonIcon",value:function(u){var t=this.getColors();this.isMuted?u.innerHTML='\n <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="'.concat(t.color,'" stroke-width="2">\n <polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>\n <line x1="23" y1="9" x2="17" y2="15"></line>\n <line x1="17" y1="9" x2="23" y2="15"></line>\n </svg>\n '):u.innerHTML='\n <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="'.concat(t.color,'" stroke-width="2">\n <polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>\n <path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path>\n </svg>\n ')}},{key:"splitSentencesForSeek",value:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,i.PC)(u)}},{key:"applySettingsAndRestart",value:function(){var u=this.currentButtonInstance;if(u&&u.speech&&u.speech.speech){var t=u.speech,e=this.modalContainer.querySelector(".tts__settings-loader-overlay");e&&(e.style.display="flex");
2var n=window.TTS.contents[u.buttonId],i=t.content,o=this.splitSentencesForSeek(n);if(0!==o.length){for(var r=n.length,D=(r-i.length)/r*100,a=o.reduce((function(u,t){return u+t.length}),0),s=0,l=0,F=0;F<o.length;F++){if((s+=o[F].length/a*100)>=D){l=F;break}}var c=o.slice(l).join(" ");t.speech.cancel(),t.content=c,t.splittedSentances=o.slice(l),t.speech.setRate(this.currentRate),t.speech.setPitch(this.currentPitch),t.speech.setVolume(this.currentVolume),t.speech.setLanguage(this.currentLanguage),t.speech.setVoice(this.currentVoice),t.browser&&t.browser.defineVoiceAndLang(this.currentVoice,this.currentLanguage),window.TTS&&window.TTS.settings&&window.TTS.settings.listening&&(window.TTS.settings.listening.tta__listening_rate=this.currentRate,window.TTS.settings.listening.tta__listening_pitch=this.currentPitch,window.TTS.settings.listening.tta__listening_volume=this.currentVolume,window.TTS.settings.listening.tta__listening_lang=this.currentLanguage,window.TTS.settings.listening.tta__listening_voice=this.currentVoice),setTimeout((function(){t.speak(t.speech,c,!0),t.listenStatus="pause",e&&(e.style.display="none")}),100)}else e&&(e.style.display="none")}}},{key:"renderModal",value:function(){var u=this,t=this.getColors();this.modalContainer.style.setProperty("--tts-modal-bg",t.backgroundColor),this.modalContainer.style.setProperty("--tts-modal-color",t.color),this.modalContainer.innerHTML='\n <div class="tts__settings-modal-backdrop" onclick="TTSSettingsModalManager.handleBackdropClick(event)">\n <div class="tts__settings-modal" role="dialog" aria-modal="true" aria-labelledby="tts-settings-modal-title" onclick="event.stopPropagation()">\n \x3c!-- Loading overlay --\x3e\n <div class="tts__settings-loader-overlay" style="display: none;" role="status" aria-label="Loading">\n <div class="tts__settings-loader"></div>\n </div>\n\n \x3c!-- Modal Header --\x3e\n <div class="tts__settings-modal-header">\n <h3 id="tts-settings-modal-title" class="tts__settings-modal-title">Player Settings</h3>\n <button class="tts__settings-modal-close" onclick="TTSSettingsModalManager.closeModal()" title="Close" aria-label="Close settings">\n <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="'.concat(t.color,'" stroke-width="2" aria-hidden="true">\n <line x1="18" y1="6" x2="6" y2="18"></line>\n <line x1="6" y1="6" x2="18" y2="18"></line>\n </svg>\n </button>\n </div>\n\n \x3c!-- Language Selection --\x3e\n <div class="tts__setting-row">\n <label class="tts__setting-label" for="tts-language-select">Language</label>\n <select id="tts-language-select" class="tts__settings-select" onchange="TTSSettingsModalManager.handleLanguageChange(event)" style="\n width: 100%;\n padding: 10px 12px;\n border-radius: 6px;\n border: 1px solid ').concat(t.color,"30;\n background-color: ").concat(t.backgroundColor,";\n color: ").concat(t.color,';\n font-size: 13px;\n cursor: pointer;\n ">\n ').concat(this.availableLanguages.map((function(e){return'\n <option value="'.concat(e,'" ').concat(e===u.currentLanguage?"selected":"",' style="background-color: ').concat(t.backgroundColor,"; color: ").concat(t.color,';">\n ').concat(e,"\n </option>\n ")})).join(""),'\n </select>\n </div>\n\n \x3c!-- Voice Selection --\x3e\n <div class="tts__setting-row">\n <label class="tts__setting-label" for="tts-voice-select">Voice</label>\n <select id="tts-voice-select" class="tts__settings-select" onchange="TTSSett
2ingsModalManager.handleVoiceChange(event)" style="\n width: 100%;\n padding: 10px 12px;\n border-radius: 6px;\n border: 1px solid ').concat(t.color,";\n background-color: ").concat(t.backgroundColor,";\n color: ").concat(t.color,';\n font-size: 13px;\n cursor: pointer;\n ">\n ').concat(this.filteredVoices.map((function(e){return'\n <option value="'.concat(e.name,'" ').concat(e.name===u.currentVoice?"selected":"",' style="background-color: ').concat(t.backgroundColor,"; color: ").concat(t.color,';">\n ').concat(e.name," (").concat(e.lang,")\n </option>\n ")})).join(""),'\n </select>\n </div>\n\n \x3c!-- Speed Control --\x3e\n <div class="tts__setting-row">\n <div class="tts__setting-header">\n <label class="tts__setting-label" for="tts-rate-slider" style="margin-bottom: 0;">Speed</label>\n <span id="tts-rate-value" class="tts__setting-value">').concat(this.currentRate,'x</span>\n </div>\n <input type="range" id="tts-rate-slider" class="tts__settings-slider" min="0.5" max="2" step="0.1" value="').concat(this.currentRate,'" aria-label="Playback speed" aria-valuemin="0.5" aria-valuemax="2" aria-valuenow="').concat(this.currentRate,'" aria-valuetext="').concat(this.currentRate,'x" oninput="TTSSettingsModalManager.handleRateChange(event)" style="width: 100%; cursor: pointer;" />\n </div>\n\n \x3c!-- Pitch Control --\x3e\n <div class="tts__setting-row">\n <div class="tts__setting-header">\n <label class="tts__setting-label" for="tts-pitch-slider" style="margin-bottom: 0;">Pitch</label>\n <span id="tts-pitch-value" class="tts__setting-value">').concat(this.currentPitch.toFixed(1),'</span>\n </div>\n <input type="range" id="tts-pitch-slider" class="tts__settings-slider" min="0" max="2" step="0.1" value="').concat(this.currentPitch,'" aria-label="Voice pitch" aria-valuemin="0" aria-valuemax="2" aria-valuenow="').concat(this.currentPitch,'" aria-valuetext="').concat(this.currentPitch.toFixed(1),'" oninput="TTSSettingsModalManager.handlePitchChange(event)" style="width: 100%; cursor: pointer;" />\n </div>\n\n \x3c!-- Volume Control with Mute Button --\x3e\n <div class="tts__setting-row">\n <div class="tts__setting-header">\n <label class="tts__setting-label" for="tts-volume-slider" style="margin-bottom: 0;">Volume</label>\n <div style="display: flex; align-items: center; gap: 10px;">\n <span id="tts-volume-value" class="tts__setting-value">').concat(Math.round(100*this.currentVolume),'%</span>\n <button class="tts__mute-btn ').concat(this.isMuted?"muted":"",'" onclick="TTSSettingsModalManager.handleMuteToggle()" title="').concat(this.isMuted?"Unmute":"Mute",'" aria-label="').concat(this.isMuted?"Unmute audio":"Mute audio",'" aria-pressed="').concat(this.isMuted,'">\n ').concat(this.isMuted?'\n <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="'.concat(t.color,'" stroke-width="2">\n <polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>\n <line x1="23" y1="9" x2="17" y2="15"></line>\n <line x1="17" y1="9" x2="23" y2="15"></line>\n </svg>\n '):'\n <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="'.concat(t.color,'" stroke-width="2">\n <polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>\n <path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path>\n </svg>\n '),'\n </button>\n </div>\n </div>\n <input type="range" id="tts-volume-slider" class="tts__settings-slider" min="0" max="1" step="0.05" value="').concat(this.currentVolume,'" aria-label="Volume" aria-valuemin="0" aria-valuemax="1" aria-valuenow="').concat(this.currentVolume,'" aria-valuetext="').concat(Math.round(100*this.currentVolume),'%" oninput="TTSSett
2ingsModalManager.handleVolumeChange(event)" style="width: 100%; cursor: pointer;" />\n </div>\n </div>\n </div>\n ')}},{key:"handleBackdropClick",value:function(u){u.target===u.currentTarget&&this.closeModal()}}])}();m(w,"instance",null),m(w,"modalContainer",null),m(w,"currentButtonInstance",null),m(w,"autoCloseTimer",null),m(w,"isOpen",!1),m(w,"availableVoices",[]),m(w,"filteredVoices",[]),m(w,"availableLanguages",[]),m(w,"currentLanguage",""),m(w,"currentVoice",""),m(w,"currentRate",1),m(w,"currentPitch",1),m(w,"currentVolume",1),m(w,"isMuted",!1),m(w,"previousVolume",1),m(w,"_keyHandler",null),m(w,"_previousFocus",null),window.TTSSettingsModalManager=w;var _=new WeakSet,S=function(u){function t(){var u,e,n,i;if(f(this,t),d(i=a(this,t),_),m(i,"speech",null),m(i,"isProLicenseActive",!1),m(i,"analytics",null),m(i,"buttonId",null),m(i,"useNewPlayer",!0),m(i,"listenStatus","listen"),m(i,"settingsIconVisible",!1),"function"==typeof NoSleep&&null!==(u=ttsObj)&&void 0!==u&&u.is_mobile){var r=new NoSleep;window.onload=function(){r.enable(),console.log("NoSleep enabled")}}i.isProLicenseActive=null===(e=window)||void 0===e||null===(e=e.ttsObj)||void 0===e?void 0:e.is_atlasvoice_addon_functional;var D=parseInt((null===(n=window)||void 0===n||null===(n=n.ttsObj)||void 0===n?void 0:n.player_id)||1,10);i.useLightDom=1===D;var s=i.useLightDom?i:i.attachShadow({mode:"open"});if(window.hasOwnProperty("TTS")){var l=window.TTS.contents,F=window.TTS.settings,c=Object.keys(l);i.analytics=new o.A(window.TTS.settings.postId);for(var C=0,h=c;C<h.length;C++){var E=h[C];if(E==i.getAttribute("data-id")){i.buttonId=E,i.initNewPlayer(s,E,l,F);break}}}return i}return function(u,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(t&&t.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),t&&F(u,t)}(t,u),g(t,[{key:"initNewPlayer",value:function(u,t,e,i){var o,r=this;console.log(e[t]),w.init();var D=(null===(o=ttsObj)||void 0===o||null===(o=o.settings)||void 0===o?void 0:o.customize)||{},a=(D.backgroundColor,D.color||"#ffffff"),s=D.hoverBackgroundColor||"#000000",l=D.hoverTextColor||"#ffffff",F=this.useLightDom?this:u,c=this.getNewButtonContent(t,i,"listen");F.innerHTML=c,this.initFloatingPosition(),this.analytics.trackInit();this.addEventListener("click",(function(u){if(!u.target.closest(".tts-settings-icon")){var o=F.querySelector("#tts__listent_content_".concat(t));if(null!=r.speech&&"listen"==r.speech.listenStatus&&(r.speech=null,r.listenStatus="listen"),null===r.speech){var D=new n.A(t,e[t],o,window.TTS);D._init(null,!0),r.speech=D.getData(),r.speech.callBackAfterEnd=function(){r.callBackAfterEndNew()},r.listenStatus="pause",r.updateButtonUI(F,t,i)}else r.speech=r.speech.getData(),"pause"==r.speech.listenStatus?(r.speech.pause(r.speech.speech,!0),window.sessionStorage.setItem("tts_paused_by_intention",!0),r.listenStatus="resume"):"resume"==r.speech.listenStatus&&(r.speech.resume(r.speech.speech,!0),r.listenStatus="pause"),r.updateButtonUI(F,t,i)}})),this.applyButtonStyles(u,F,t,i,{base:"".concat(i.btnStyle," display:flex;align-items:center;justify-content:space-between;padding:8px 12px;"),hoverBg:s,hoverColor:l,color:a})}},{key:"getNewButtonContent",value:function(u,t,e){var n,i,o,r,D=((null===(n=ttsObj)||void 0===n||null===(n=n.settings)||void 0===n?void 0:n.customize)||{}).color||"#ffffff",a=(null===(i=window)||void 0===i||null===(i=i.ttsObj)||void 0===i?void 0:i.player_id)||1,s=(null===(o=window)||void 0===o||null===(o=o.TTS)||void 0===o||null===(o=o.buttons)||void 0===o||null===(o=o[u])||void 0===o?void 0:o.textArr)||null,l=(null===(r=window)||void 0===r||null===(r=r.ttsObj)||void 0===r||null===(r=r.buttonTextArr)||void 0===r?void 0:r.players)||{},F=function(u){return l[a]&&l[a][u]||null},c=function(u,t,e){var n;if(s&&s[t])return s[t];var i=F(u);return i&&i.text?i.text:(null===(n=window)||void 0===n||null===(n=n.ttsObj)||void 0===n||null===(n=n.buttonTextArr)||void 0===n?void 0:n[t])||e},d=function(u,t,e){var n;if(s&&s[t])return"Text To Audio : "+s[t];var i=F(u);if(i&&i.hover)return"Text To Audio : "+i.hover;var o=null===(n=window)||void 0===n||null===(n=n.ttsObj)||void 0===n||null===(n=n.buttonTextArr)||void 0===n?void 0:n[t];return o?"Text To Audio : "+o:e},C=function(u){var t,e;return(null===(t=window)||void 0===t||null===(t=t.ttsObj)||void 0===t||null===(t=t.player_customizations)||void 0===t||null===(t=t[a])||void 0===t?void 0:t[u])||(null===(e=window)||void 0===e||null===(e=e.ttsObj)||void 0===e||null===(e=e.player_customizations)||void 0===e||null===(e=e[1])||void 0===e?void 0:e[u])||null},h=c("listen","listen_text","Listen"),E=d("listen","listen_hover_title","Text To Audio: Click to listen post."),A="",v=C("play");
2v?A=(new DOMParser).parseFromString(v,"image/svg+xml").documentElement.outerHTML:A="<svg width='15px' height='15px' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 8'><polygon fill='".concat(D,"' points='0 0 0 8 7 4'/></svg>");if("pause"===e){h=c("pause","pause_text","Pause"),E=d("pause","pause_hover_title","Text To Audio: Click to pause.");var f=C("pause");if(f)A=(new DOMParser).parseFromString(f,"image/svg+xml").documentElement.outerHTML;else A="<svg width='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M14 9L14 15' stroke='".concat(D,"' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'></path><path d='M10 9L10 15' stroke='").concat(D,"' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'></path><path d='M3 12C3 4.5885 4.5885 3 12 3C19.4115 3 21 4.5885 21 12C21 19.4115 19.4115 21 12 21C4.5885 21 3 19.4115 3 12Z' stroke='").concat(D,"' stroke-width='2'></path></svg>")}else if("resume"===e){h=c("resume","resume_text","Resume"),E=d("resume","resume_hover_title","Text To Audio: Click to resume.");var p=C("resume");if(p)A=(new DOMParser).parseFromString(p,"image/svg+xml").documentElement.outerHTML;else A="<svg width='20px' height='20px' viewBox='0 0 24.00 24.00' fill='none' xmlns='http://www.w3.org/2000/svg' stroke='".concat(D,"' stroke-width='1'><path d='M12 20.75C10.078 20.7474 8.23546 19.9827 6.8764 18.6236C5.51733 17.2645 4.75265 15.422 4.75 13.5C4.75 13.3011 4.82902 13.1103 4.96967 12.9697C5.11032 12.829 5.30109 12.75 5.5 12.75C5.69891 12.75 5.88968 12.829 6.03033 12.9697C6.17098 13.1103 6.25 13.3011 6.25 13.5C6.25 14.6372 6.58723 15.7489 7.21905 16.6945C7.85087 17.6401 8.74889 18.3771 9.79957 18.8123C10.8502 19.2475 12.0064 19.3614 13.1218 19.1395C14.2372 18.9177 15.2617 18.37 16.0659 17.5659C16.87 16.7617 17.4177 15.7372 17.6395 14.6218C17.8614 13.5064 17.7475 12.3502 17.3123 11.2996C16.8771 10.2489 16.1401 9.35087 15.1945 8.71905C14.2489 8.08723 13.1372 7.75 12 7.75H9.5C9.30109 7.75 9.11032 7.67098 8.96967 7.53033C8.82902 7.38968 8.75 7.19891 8.75 7C8.75 6.80109 8.82902 6.61032 8.96967 6.46967C9.11032 6.32902 9.30109 6.25 9.5 6.25H12C13.9228 6.25 15.7669 7.01384 17.1265 8.37348C18.4862 9.73311 19.25 11.5772 19.25 13.5C19.25 15.4228 18.4862 17.2669 17.1265 18.6265C15.7669 19.9862 13.9228 20.75 12 20.75Z' fill='").concat(D,"'></path><path d='M12 10.75C11.9015 10.7505 11.8038 10.7313 11.7128 10.6935C11.6218 10.6557 11.5392 10.6001 11.47 10.53L8.47 7.53003C8.32955 7.38941 8.25066 7.19878 8.25066 7.00003C8.25066 6.80128 8.32955 6.61066 8.47 6.47003L11.47 3.47003C11.5387 3.39634 11.6215 3.33724 11.7135 3.29625C11.8055 3.25526 11.9048 3.23322 12.0055 3.23144C12.1062 3.22966 12.2062 3.24819 12.2996 3.28591C12.393 3.32363 12.4778 3.37977 12.549 3.45099C12.6203 3.52221 12.6764 3.60705 12.7141 3.70043C12.7518 3.79382 12.7704 3.89385 12.7686 3.99455C12.7668 4.09526 12.7448 4.19457 12.7038 4.28657C12.6628 4.37857 12.6037 4.46137 12.53 4.53003L10.06 7.00003L12.53 9.47003C12.6704 9.61066 12.7493 9.80128 12.7493 10C12.7493 10.1988 12.6704 10.3894 12.53 10.53C12.4608 10.6001 12.3782 10.6557 12.2872 10.6935C12.1962 10.7313 12.0985 10.7505 12 10.75Z' fill='").concat(D,"'></path></svg>")}else if("listen"===e&&this.speech&&"listen"===this.speech.listenStatus){h=c("replay","replay_text","Replay"),E=d("replay","replay_hover_title","Text To Audio: Click to replay.");var g=C("replay");if(g)A=(new DOMParser).parseFromString(g,"image/svg+xml").documentElement.outerHTML;else A="<svg width='20px' height='20px' viewBox='0 0 24.00 24.00' fill='none' xmlns='http://www.w3.org/2000/svg' stroke='".concat(D,"' stroke-width='1'><path d='M12 20.75C10.078 20.7474 8.23546 19.9827 6.8764 18.6236C5.51733 17.2645 4.75265 15.422 4.75 13.5C4.75 13.3011 4.82902 13.1103 4.96967 12.9697C5.11032 12.829 5.30109 12.75 5.5 12.75C5.69891 12.75 5.88968 12.829 6.03033 12.9697C6.17098 13.1103 6.25 13.3011 6.25 13.5C6.25 14.6372 6.58723 15.7489 7.21905 16.6945C7.85087 17.6401 8.74889 18.3771 9.79957 18.8123C10.8502 19.2475 12.0064 19.3614 13.1218 19.1395C14.2372 18.9177 15.2617 18.37 16.0659 17.5659C16.87 16.7617 17.4177 15.7372 17.6395 14.6218C17.8614 13.5064 17.7475 12.3502 17.3123 11.2996C16.8771 10.2489 16.1401 9.35087 15.1945 8.71905C14.2489 8.08723 13.1372 7.75 12 7.75H9.5C9.30109 7.75 9.11032 7.67098 8.96967 7.53033C8.82902 7.38968 8.75 7.19891 8.75 7C8.75 6.80109 8.82902 6.61032 8.96967 6.46967C9.11032 6.32902 9.30109 6.25 9.5 6.25H12C13.9228 6.25 15.7669 7.01384 17.1265 8.37348C18.4862 9.73311 19.25 11.5772 19.25 13.5C19.25 15.4228 18.4862 17.2669 17.1265 18.6265C15.7669 19.9862 13.9228 20.75 12 20.75Z' fill='").concat(D,"'></path><path d='M12 10.75C11.9015 10.7505 11.8038 10.7313 11.7128 10.6935C11.6218 10.6557 11.5392 10.6001 11.47 10.53L8.47 7.53003C8.32955 7.38941 8.25066 7.19878 8.25066 7.00003C8.25066 6.80128 8.32955 6.61066 8.47 6.47003L11.47 3.47003C11.5387 3.39634
211.6215 3.33724 11.7135 3.29625C11.8055 3.25526 11.9048 3.23322 12.0055 3.23144C12.1062 3.22966 12.2062 3.24819 12.2996 3.28591C12.393 3.32363 12.4778 3.37977 12.549 3.45099C12.6203 3.52221 12.6764 3.60705 12.7141 3.70043C12.7518 3.79382 12.7704 3.89385 12.7686 3.99455C12.7668 4.09526 12.7448 4.19457 12.7038 4.28657C12.6628 4.37857 12.6037 4.46137 12.53 4.53003L10.06 7.00003L12.53 9.47003C12.6704 9.61066 12.7493 9.80128 12.7493 10C12.7493 10.1988 12.6704 10.3894 12.53 10.53C12.4608 10.6001 12.3782 10.6557 12.2872 10.6935C12.1962 10.7313 12.0985 10.7505 12 10.75Z' fill='").concat(D,"'></path></svg>")}var m="pause"===e||"resume"===e,B='\n <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="'.concat(D,'" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <circle cx="12" cy="12" r="3"></circle>\n <path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>\n </svg>\n '),y=h;return"listen"===e?y=(this.speech&&this.speech.listenStatus,h):("pause"===e||"resume"===e)&&(y=h),'\n <button id="tts__listent_content_'.concat(u,'" class="tts__listent_content ').concat(t.cssClass,'" type="button" title="').concat(E,'" aria-label="').concat(y,' audio">\n <div class="tts-button-left" aria-hidden="true">\n ').concat(A,"\n <span>").concat(h,'</span>\n </div>\n <div class="tts-button-right">\n ').concat(m?'\n <div class="tts-settings-icon" role="button" tabindex="0" aria-label="Player settings" title="Settings" data-button-id="'.concat(u,'">\n ').concat(B,"\n </div>\n "):"",'\n </div>\n </button>\n <div class="tts-sr-only tts-live-region" role="status" aria-live="polite" aria-atomic="true"></div>\n ')}},{key:"updateButtonUI",value:function(u,t,e){var n=this,i=u.querySelector("#tts__listent_content_".concat(t));if(i){var o=this.getNewButtonContent(t,e,this.listenStatus),r=document.createElement("template");r.innerHTML=o.trim();var D=r.content.querySelector("#tts__listent_content_".concat(t));D&&i.replaceWith(D);var a=u.querySelector(".tts-live-region"),s=r.content.querySelector(".tts-live-region");!a&&s&&u.appendChild(s);var l=u.querySelector(".tts-live-region");if(l){var F="";"pause"===this.listenStatus?F="Audio playing":"resume"===this.listenStatus?F="Audio paused":"listen"===this.listenStatus&&(F="Audio stopped"),l.textContent="",setTimeout((function(){l.textContent=F}),50)}var c=u.querySelector(".tts-settings-icon");c&&(c.addEventListener("click",(function(u){u.stopPropagation(),n.openSettingsModal()})),c.addEventListener("keydown",(function(u){"Enter"!==u.key&&" "!==u.key||(u.preventDefault(),u.stopPropagation(),n.openSettingsModal())})))}}},{key:"openSettingsModal",value:function(){w.openModal(this)}},{key:"initFloatingPosition",value:function(){var u,t,e,n=this;if(this.useLightDom&&!this._floatListeners){var i=(null===(u=window)||void 0===u||null===(u=u.ttsObj)||void 0===u?void 0:u.settings)||{};if(null==i||null===(t=i.settings)||void 0===t||!t.tta__settings_stop_floating_button){var o=(null==i||null===(e=i.customize)||void 0===e?void 0:e.buttonSettings)||{},r=function(u){return b[u]||u},D=r(o.float_position);if(-1===y.indexOf(D)){var a=r(o.button_position);D=-1!==y.indexOf(a)?a:"bottom_right"}var s="tts__custom-position_"+D,l="sticky_top"===D,F=null,c=function(){if(null===F&&function(){if(!n.classList.contains(s)){var u=n.getBoundingClientRect();u.height&&(F=u.top+window.scrollY)}}(),null!==F){var u=window.scrollY>F;n.classList.toggle(s,u),l&&(u?n.style.setProperty("--tts-sticky-top",n.topChromeOffset()+"px"):n.style.removeProperty("--tts-sticky-top"))}},d=function(){F=null,c()};this._floatListeners={sync:c,onResize:d},window.addEventListener("scroll",c,{passive:!0}),window.addEventListener("resize",d,{passive:!0}),requestAnimationFrame(c),window.addEventListener("load",c,{once:!0})}}}},{key:"topChromeOffset",value:function(){for(var u=Math.round(window.innerWidth/2),t=0,e=0;e<5;e++){var n,i=!1,o=D(document.elementsFromPoint(u,t+1)||[]);try{for(o.s();!(n=o.n()).done;){var r=n.value;if(r!==this&&!this.contains(r)){var a=getComputedStyle(r).position;if("fixed"===a||"sticky"===a){var s=Math.ceil(r.getBoundingClientRect().bottom);s>t&&s<window.innerHeight/2&&(t=s,i=!0)}}}}catch(u){o.e(u)}finally{o.f()}if(!i)break}return t}},{key:"disconnectedCallback",value:function(){var u=this._floatListeners;u&&(this._floatListeners=null,window.removeEventListener("scroll",u.sync),window.removeEventListener("resize",u.onResize))}},{key:"callBackAfterEndNew",value:function(){this.listenStatus="listen",this.speech=this.speech.getData();var u=this.useLightDom?this:this.shadowRoot;u&&this.updateButtonUI(u,this.buttonId,window.TTS.settings)}},{key:"callBackAfterEnd",value:function(){"listen"===this.listenStatus&&this.displayButtonText()}},{key:"applyButtonStyles",value:function(u,t,e,n,i){t.querySelector("#tts__listent_content_".concat(e));if(!this.useLightDom){var o=document.createElement("style");o.setAttribute("id","tts_style"),o.textContent="\n :host(:focus), :host(:focus-visible), :host(:focus-within) {\n outline: none !important;\n box-shadow: none !important;\n }\n #tts__listent_content_".concat(e,".tts__listent_content{ ").concat(i.base," transition: all 0.5s ease-in-out; }\n #tts__listent_content_").concat(e,".tts__listent_content:hover{ ").concat(i.base," background-color:").concat(i.hoverBg,"; color:").concat(i.hoverColor,"; }\n #tts__listent_content_").concat(e,".tts__listent_content .tts_button{ display: inline-flex; align-items: center; gap: 8px; }\n #tts__listent_content_").concat(e,".tts__listent_content .tts_button_label{ display: inline-block; color:").concat(i.hoverColor,"; }\n #tts__listent_content_").concat(e,".tts__listent_content .tts-button-left{ display:flex; align-items:center; gap:8px; }\n #tts__listent_content_").concat(e,".tts__listent_content .tts-button-right{ display:flex; align-items:center; }\n #tts__listent_content_").concat(e,".tts__listent_content svg,\n #tts__listent_content_").concat(e,".tts__listent_content .tts-button-left svg{ display:").concat(n.shouldDisplayIcon,"; flex: 0 0 auto; }\n #tts__listent_content_").concat(e,".tts__listent_content:hover svg polygon,\n #tts__listent_content_").concat(e,".tts__listent_content:hover svg path{ fill:").concat(i.hoverColor,"; }\n #tts__listent_content_").concat(e,".tts__listent_content:hover svg[stroke] path,\n #tts__listent_content_").concat(e,".tts__listent_content:hover svg[stroke] line{ stroke:").concat(i.hoverColor,"; }\n .tts-settings-icon{ cursor:pointer; padding:4px; border-radius:50%; display:flex; align-items:center; justify-content:center; transition: background-color 0.2s ease; }\n .tts-settings-icon:hover, .tts-settings-icon:focus-visible{ background-color: rgba(255,255,255,0.2); }\n #tts__listent_content_").concat(e,".tts__listent_content:focus,\n #tts__listent_content_").concat(e,".tts__listent_content:focus-visible{ outline: none; box-shadow: none; }\n .tts-sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }\n "),u.appendChild(o)}}}])}(s(HTMLElement));document.addEventListener("DOMContentLoaded",(function(){customElements.get("tts-play-button")?console.log({foun
2dcustomElements:customElements.get("tts-play-button")}):customElements.define("tts-play-button",S)}))})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.