1(self.webpackChunk=self.webpackChunk||[]).push([[8842],{88842:()=>{function t(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=r(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},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 a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,n)}function n(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=o(t);if(e){var r=o(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function i(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||r(t)||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 r(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(i=o.key,r=void 0,r=function(t,e){if("object"!==u(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===u(r)?r:String(r)),o)}var i,r}function c(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}!function(){"use strict";var o={406:function(t){var e=function(t){var e;return!!t&&"object"==u(t)&&"[object RegExp]"!==(e=Object.prototype.toString.call(t))&&"[object Date]"!==e&&t.$$typeof!==n},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(t,e){return!1!==e.clone&&e.isMergeableObject(t)?s(Array.isArray(t)?[]:{},t,e):t}function i(t,e,n){return t.concat(e).map((function(t){return o(t,n)}))}function r(t){return Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[])}function a(t,e){try{return e in t}catch(t){return!1}}function s(t,n,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||e,l.cloneUnlessOtherwiseSpecified=o;var c,u,d=Array.isArray(n);return d!==Array.isArray(t)?o(n,l):d?l.arrayMerge(t,n,l):(u={},(c=l).isMergeableObject(t)&&r(t).forEach((function(e){u[e]=o(t[e],c)}
1)),r(n).forEach((function(e){(!a(t,e)||Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))&&(a(t,e)&&c.isMergeableObject(n[e])?u[e]=function(t,e){if(!e.customMerge)return s;var n=e.customMerge(t);return"function"==typeof n?n:s}(e,c)(t[e],n[e],c):u[e]=o(n[e],c))})),u)}s.all=function(t,e){if(!Array.isArray(t))throw Error("first argument should be an array");return t.reduce((function(t,n){return s(t,n,e)}),{})},t.exports=s}},r={};function a(t){var e=r[t];if(void 0!==e)return e.exports;var n=r[t]={exports:{}};return o[t](n,n.exports,a),n.exports}a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){var o=a(406),r=a.n(o),l=function(){function t(){s(this,t)}return c(t,null,[{key:"ucFirst",value:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},{key:"lcFirst",value:function(t){return t.charAt(0).toLowerCase()+t.slice(1)}},{key:"toDashCase",value:function(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}},{key:"toLowerCamelCase",value:function(e,n){var o=t.toUpperCamelCase(e,n);return t.lcFirst(o)}},{key:"toUpperCamelCase",value:function(e,n){return n?e.split(n).map((function(e){return t.ucFirst(e.toLowerCase())})).join(""):t.ucFirst(e.toLowerCase())}},{key:"parsePrimitive",value:function(t){try{return/^\d+(.|,)\d+$/.test(t)&&(t=t.replace(",",".")),JSON.parse(t)}catch(e){return t.toString()}}}]),t}(),d=function(){function t(){s(this,t)}return c(t,null,[{key:"isNode",value:function(t){return"object"==u(t)&&null!==t&&(t===document||t===window||t instanceof Node)}},{key:"hasAttribute",value:function(e,n){if(!t.isNode(e))throw Error("The element must be a valid HTML Node!");return"function"==typeof e.hasAttribute&&e.hasAttribute(n)}},{key:"getAttribute",value:function(e,n){var o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(o&&!1===t.hasAttribute(e,n))throw Error('The required property "'.concat(n,'" does not exist!'));if("function"==typeof e.getAttribute)return e.getAttribute(n);if(o)throw Error("This node doesn't support the getAttribute function!")}},{key:"getDataAttribute",value:function(e,n){var o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=n.replace(/^data(|-)/,""),r=l.toLowerCamelCase(i,"-");if(t.isNode(e)){if(void 0!==e.dataset){var a=e.dataset[r];if(void 0===a){if(o)throw Error('The required data attribute "'.concat(n,'" does not exist on ').concat(e,"!"));return a}return l.parsePrimitive(a)}if(o)throw Error("This node doesn't support the dataset attribute!")}else if(o)throw Error("The passed node is not a valid HTML Node!")}},{key:"querySelector",value:function(e,n){var o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(o&&!t.isNode(e))throw Error("The parent node is not a valid HTML Node!");var i=e.querySelector(n)||!1;if(o&&!1===i)throw Error('The required element "'.concat(n,'" does not exist in parent node!'));return i}},{key:"querySelectorAll",value:function(e,n){var o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(o&&!t.isNode(e))throw Error("The parent node is not a valid HTML Node!");var i=e.querySelectorAll(n);if(0===i.length&&(i=!1),o&&!1===i)throw Error('At least one item of "'.concat(n,'" must exist in parent node!'));return i}},{key:"getFocusableElements",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body).querySelectorAll('\n input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),\n select:not([tabindex^="-"]):not([disabled]),\n textarea:not([tabindex^="-"]):not([disabled]),\n button:not([tabindex^="-"]):not([disabled]),\n a[href]:not([tabindex^="-"]):not([disabled]),\n [tabindex]:not([tabindex^="-"]):not([disabled])\n ')}},{key:"getFirstFocusableElement",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(t)[0]}},{key:"getLastFocusableElement",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=this.getFocusableElements(t);return e[e.length-1]}}]),t}(),h=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;s(this,t),this._el=e,e.$emitter=this,this._listeners=[]}return c(t,[{key:"publish",value:function(t){var e=new CustomEvent(t,{detail:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},cancelable:arguments.length>2&&void 0!==arguments[2]&&arguments[2]});return this.el.dispatchEvent(e),e}},{key:"subscribe",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this,i=t.split("."),r=n.scope?e.bind(n.scope):e;if(n.once&&!0===n.once){var a=r;r=function(e){o.unsubscribe(t),a(e)}}return this.el.addEventListener(i[0],r),this.listeners.push({splitEventName:i,opts:n,cb:r}),!0}},{key:"unsubscribe",value:function(t){var e=this,n=t.split(".");return this.listeners=this.listeners.reduce((function(t,o){return i(o.splitEventName).sort().toString()===n.sort().toString()?e.el.removeEventListener(o.splitEventName[0],o.cb):t.push(o),t}),[]),!0}},{key:"reset",value:function(){var t=this;
1return this.listeners.forEach((function(e){t.el.removeEventListener(e.splitEventName[0],e.cb)})),this.listeners=[],!0}},{key:"el",get:function(){return this._el},set:function(t){this._el=t}},{key:"listeners",get:function(){return this._listeners},set:function(t){this._listeners=t}}]),t}(),g=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(s(this,t),!d.isNode(e))throw Error("There is no valid element given.");this.el=e,this.$emitter=new h(this.el),this._pluginName=this._getPluginName(o),this.options=this._mergeOptions(n),this._initialized=!1,this._registerInstance(),this._init()}return c(t,[{key:"init",value:function(){throw Error('The "init" method for the plugin "'.concat(this._pluginName,'" is not defined.'))}},{key:"update",value:function(){}},{key:"_init",value:function(){this._initialized||(this.init(),this._initialized=!0)}},{key:"_update",value:function(){this._initialized&&this.update()}},{key:"_mergeOptions",value:function(t){var e=l.toDashCase(this._pluginName),n=d.getDataAttribute(this.el,"data-".concat(e,"-config"),!1),o=d.getAttribute(this.el,"data-".concat(e,"-options"),!1),i=[this.constructor.options,this.options,t];n&&i.push(window.PluginConfigManager.get(this._pluginName,n));try{o&&i.push(JSON.parse(o))}catch(t){throw console.error(this.el),Error('The data attribute "data-'.concat(e,'-options" could not be parsed to json: ').concat(t.message))}return r().all(i.filter((function(t){return t instanceof Object&&!(t instanceof Array)})).map((function(t){return t||{}})))}},{key:"_registerInstance",value:function(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}},{key:"_getPluginName",value:function(t){return t||(t=this.constructor.name),t}}]),t}();window.PluginManager.register("TcinnA11yToolbarPlugin",function(o){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)}(r,o);var i=n(r);function r(){return s(this,r),i.apply(this,arguments)}return c(r,[{key:"init",value:function(){var t=this;if(this.toolbar=document.getElementById("tcinn-a11y-toolbar"),this.toolbar){setTimeout((function(){t.toolbar.classList.add("visible")}),100);var e="tcinn-a11y-overlay";if(!document.getElementById(e)){var n=document.createElement("div");n.id=e,document.body.appendChild(n)}this.t=window.TcinnA11ySnippets||{},this.contrastLevel=this.toolbar.dataset.contrastLevel||"AA",this.excludedClasses=(this.toolbar.dataset.excludedClasses||"").split(",").map((function(t){return t.trim()})).filter((function(t){return""!==t})),this.threshold="AAA"===this.contrastLevel?7:4.5,this.minFontPx=12,this.showButton=document.getElementById("show-toolbar-button"),this.closeButton=document.getElementById("close-toolbar-button"),this.cookieGroup=this.toolbar.dataset.cookieGroup,this.cookieConsentMap={basic:"cookie-preference",comfort:"youtube-video"},this.consentCookieName=this.cookieConsentMap[this.cookieGroup],this.storageKey="tcinnA11y.contrastActive",this.contrastActive="true"===localStorage.getItem(this.storageKey),this.modifiedContrastElements=new Set,this.placeholderStyleElement=null,this.svgExcludeContainers=[".twt-communities-list"],this.a11yToggles=[{btnId:"underline-links-toggle-button",bodyClass:"tcinn-a11y-underline-links",storageKey:"tcinnA11y.underlineLinks"},{btnId:"readable-font-toggle-button",bodyClass:"tcinn-a11y-readable-font",storageKey:"tcinnA11y.readableFont"},{btnId:"no-animations-toggle-button",bodyClass:"tcinn-a11y-no-animations",storageKey:"tcinnA11y.noAnimations"},{btnId:"large-cursor-toggle-button",bodyClass:"tcinn-a11y-large-cursor",storageKey:"tcinnA11y.largeCursor"},{btnId:"inverted-toggle-button",bodyClass:"tcinn-a11y-inverted",storageKey:"tcinnA11y.inverted"},{btnId:"monochrome-toggle-button",bodyClass:"tcinn-a11y-monochrome",storageKey:"tcinnA11y.monochrome"},{btnId:"desaturate-toggle-button",bodyClass:"tcinn-a11y-desaturate",storageKey:"tcinnA11y.desaturate"},{btnId:"saturate-toggle-button",bodyClass:"tcinn-a11y-saturate",storageKey:"tcinnA11y.saturate"},{btnId:"headings-outline-toggle-button",bodyClass:"tcinn-a11y-headings-outline",storageKey:"tcinnA11y.headingsOutline"},{btnId:"reading-guide-toggle-button",bodyClass:"tcinn-a11y-reading-guide",storageKey:"tcinnA11y.readingGuide"}],this.a11yToggles.push({btnId:"reset-toggle-button",handler:"resetAll"}),this.initToolbarLogic(),this._initToolbarPlacement()}}},{key:"initToolbarLogic",value:function(){this.initToolbarToggle(),this.initFontSizeToggle(),this.initContrastToggle(),this.initA11yGenericToggles(),this.initNoImagesToggle(),this.initUniversalAccessibilityObserver(),"1"===this.toolbar.dataset.dev&&this.initDevTools(),this.initAriaSync()}},{key:"_initToolbarPlacement",value:function(){var t=this,e="has-moved",n=this.toolbar.parentNode,o=this.toolbar.nextSibling,i=document.createElement("div");i.id="tcinn-a11y-toolbar-placeholder",n.insertBefore(i,o);var r=function(){var o=document.querySelector("footer.footer-main");window.innerWidth<992?o&&t.toolbar.parentNode!==o.parentNode&&(o.insertAdjacentElement("afterend",t.toolbar),t.toolbar.classList.add(e)):t.toolbar.parentNode!==n&&(n.insertBefore(t.toolbar,i),t.toolbar.classList.remove(e))};window.addEventListener("resize",r),r()}},{key:"initToolbarToggle",value:function(){this.closeButton&&this.showButton&&(this.closeButton.addEventListener("click",this.toggleToolbar.bind(this)),this.showButton.addEventListener("click",this.toggleToolbar.bind(this)),"false"===localStorage.getItem("tcinnA11y.toolbarVisible")&&(this.toolbar.classList.add("hidden"),this.showButton.classList.remove("hidden")))}},{key:"initFontSizeToggle",value:function(){var t=document.getElementById("font-toggle-button");t&&(t.addEventListener("click",this.toggleFontSize.bind(this)),"true"===localStorage.getItem("tcinnA11y.fontSize16")&&(t.classList.add("active"),this.setFontSize()))}},{key:"initContrastToggle",value:function(){var t=this,e=document.getElementById("contrast-toggle-button");e&&(this.contrastActive&&(e.classList.add("active"),this.adjustPageTextContrast(),this.applyPlaceholderContrast()),e.addEventListener("click",(function(){t.contrastActive=!t.contrastActive,t.safeSetItem(t.storageKey,t.contrastActive),e.classList.toggle("active",t.contrastActive),t.contrastActive?(t.adjustPageTextContrast(),t.applyPlaceholderContrast()):(t.revertPlaceholderContrast(),t.revertContrastAdjustments())})))}},{key:"initA11yGenericToggles",value:function(){var t=this;
1this.a11yToggles.forEach((function(e){var n=e.btnId,o=e.bodyClass,i=e.storageKey,r=e.handler,a=document.getElementById(n);if(a){if(r)return void a.addEventListener("click",t[r].bind(t));"true"===localStorage.getItem(i)&&(document.body.classList.add(o),a.classList.add("active"),t.runSpecial(i,!0)),a.addEventListener("click",(function(){var e=!a.classList.contains("active");a.classList.toggle("active",e),document.body.classList.toggle(o,e),t.safeSetItem(i,e?"true":"false"),t.runSpecial(i,e)}))}}))}},{key:"initNoImagesToggle",value:function(){var t=this,e=document.getElementById("no-images-toggle-button");if(e){var n="true"===localStorage.getItem("tcinnA11y.noImagesActive");n&&(e.classList.add("active"),this.runNoImages(!0)),e.addEventListener("click",(function(){n=!n,t.safeSetItem("tcinnA11y.noImagesActive",n?"true":"false"),e.classList.toggle("active",n),t.runNoImages(n)}))}}},{key:"toggleToolbar",value:function(){var t=this.toolbar.classList.toggle("hidden");this.showButton.classList.toggle("hidden",!t),this.safeSetItem("tcinnA11y.toolbarVisible",t?"false":"true")}},{key:"isExcluded",value:function(e){if(!e)return!1;if("tcinn-a11y-toolbar"===e.id)return!0;for(;e;){if(e.classList){var n,o=t(this.excludedClasses);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(e.classList.contains(i))return!0}}catch(t){o.e(t)}finally{o.f()}}e=e.parentElement}return!1}},{key:"setFontSize",value:function(){document.querySelectorAll("*").forEach((function(t){16>parseFloat(window.getComputedStyle(t).fontSize)&&(t.hasAttribute("data-original-font-size")||t.setAttribute("data-original-font-size",t.style.fontSize||""),t.style.fontSize="16px")}))}},{key:"resetFontSize",value:function(){document.querySelectorAll("[data-original-font-size]").forEach((function(t){t.style.fontSize=t.getAttribute("data-original-font-size"),t.removeAttribute("data-original-font-size")}))}},{key:"toggleFontSize",value:function(){var t=document.getElementById("font-toggle-button");t&&(t.classList.contains("active")?(this.resetFontSize(),t.classList.remove("active"),this.safeRemoveItem("tcinnA11y.fontSize16")):(this.setFontSize(),t.classList.add("active"),this.safeSetItem("tcinnA11y.fontSize16","true")))}},{key:"adjustPageTextContrast",value:function(){var e=this;document.querySelectorAll("body *").forEach((function(n){var o,i=t(e.svgExcludeContainers);try{for(i.s();!(o=i.n()).done;){var r=o.value;if(n.closest(r))return}}catch(t){i.e(t)}finally{i.f()}if(!e.isExcluded(n)){var a=window.getComputedStyle(n),s=e.parseRGB(e.getEffectiveBackgroundColor(n)),l=e.parseRGB(a.color);if(s&&l&&e.getContrastRatio(l,s)<e.threshold){var c=e.adjustTextContrast(l,s,e.threshold);c&&(n.dataset.originalColor||(n.dataset.originalColor=a.color,e.modifiedContrastElements.add(n)),n.style.color=c)}}}))}},{key:"revertContrastAdjustments",value:function(){this.modifiedContrastElements.forEach((function(t){t.dataset.originalColor&&(t.style.color=t.dataset.originalColor,delete t.dataset.originalColor),t.dataset.originalBackgroundColor&&(t.style.backgroundColor=t.dataset.originalBackgroundColor,delete t.dataset.originalBackgroundColor)})),this.modifiedContrastElements.clear()}},{key:"adjustTextContrast",value:function(t,e,n){var o,i,r,a=this.rgbToHsl(t.r,t.g,t.b),s=this.getLuminance(t)>.5,l=0;do{a.l=s?Math.max(0,a.l-.05):Math.min(1,a.l+.05),i={r:(o=this.hslToRgb(a.h,a.s,a.l)).r,g:o.g,b:o.b},r=this.getContrastRatio(i,e),l++}while(r<n&&l<20);return r>=n?"rgb(".concat(i.r,", ").concat(i.g,", ").concat(i.b,")"):null}},{key:"adjustBackgroundColor",value:function(t,e,n){var o,i,r,a=this.rgbToHsl(e.r,e.g,e.b),s=this.getLuminance(t)>.5,l=0;do{a.l=s?Math.max(0,a.l-.05):Math.min(1,a.l+.05),i={r:(o=this.hslToRgb(a.h,a.s,a.l)).r,g:o.g,b:o.b},r=this.getContrastRatio(t,i),l++}while(r<n&&l<20);return r>=n?"rgb(".concat(i.r,", ").concat(i.g,", ").concat(i.b,")"):null}},{key:"getEffectiveBackgroundColor",value:function(t){var e=window.getComputedStyle(t);if(e.backgroundImage&&"none"!==e.backgroundImage)return t.parentElement?this.getEffectiveBackgroundColor(t.parentElement):"rgb(255, 255, 255)";var n=e.backgroundColor;
1return this.isTransparent(n)&&t.parentElement?this.getEffectiveBackgroundColor(t.parentElement):n||"rgb(255, 255, 255)"}},{key:"isTransparent",value:function(t){return!t||(t.startsWith("rgba")?0===parseFloat(t.split(",")[3]):"transparent"===t)}},{key:"parseRGB",value:function(t){var e=t.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);return e?{r:+e[1],g:+e[2],b:+e[3]}:null}},{key:"getLuminance",value:function(t){var e=["r","g","b"].map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}));return.2126*e[0]+.7152*e[1]+.0722*e[2]}},{key:"getContrastRatio",value:function(t,e){var n=this.getLuminance(t),o=this.getLuminance(e);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}},{key:"rgbToHsl",value:function(t,e,n){t/=255,e/=255,n/=255;var o,i,r=Math.max(t,e,n),a=Math.min(t,e,n),s=(r+a)/2;if(r===a)o=i=0;else{var l=r-a;switch(i=s>.5?l/(2-r-a):l/(r+a),r){case t:o=(e-n)/l+(e<n?6:0);break;case e:o=(n-t)/l+2;break;case n:o=(t-e)/l+4}o/=6}return{h:o,s:i,l:s}}},{key:"hslToRgb",value:function(t,e,n){var o,i,r;if(0===e)o=i=r=n;else{var a=function(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t},s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;o=a(l,s,t+1/3),i=a(l,s,t),r=a(l,s,t-1/3)}return{r:Math.round(255*o),g:Math.round(255*i),b:Math.round(255*r)}}},{key:"runSpecial",value:function(t,e){"noImages"===t&&this.runNoImages(e),"largeCursor"===t&&this.runLargeCursor(e),"tcinnA11y.readingGuide"===t&&this.runReadingGuide(e)}},{key:"moveCursorOverlay",value:function(t){var e=document.getElementById("tcinn-a11y-large-cursor-overlay");e&&(e.style.left="".concat(t.pageX,"px"),e.style.top="".concat(t.pageY,"px"))}},{key:"runLargeCursor",value:function(t){var e="tcinn-a11y-large-cursor-overlay",n=document.getElementById(e);t?n||((n=document.createElement("div")).id=e,document.body.appendChild(n),document.addEventListener("mousemove",this.moveCursorOverlay)):n&&(document.removeEventListener("mousemove",this.moveCursorOverlay),n.remove())}},{key:"highlightEmptyLinks",value:function(){var t=this;document.querySelectorAll("a").forEach((function(e){if(!e.closest("#tcinn-a11y-toolbar")&&!t.isExcluded(e)){var n=e.textContent.trim(),o=!!e.getAttribute("aria-label"),i=!!e.querySelector("img, svg");n||o||i||(e.style.boxShadow="0 0 0 3px purple",e.title="ð ".concat(window.TcinnA11ySnippets.emptyLinks))}}))}},{key:"highlightInputsWithoutLabel",value:function(){document.querySelectorAll("input, textarea, select").forEach((function(t){var e=t.id;e&&document.querySelector('label[for="'.concat(e,'"]'))||(t.style.boxShadow="0 0 0 3px teal",t.title="â ï¸ ".concat(window.TcinnA11ySnippets.inputsNoLabel))}))}},{key:"highlightMissingLangAttr",value:function(){var t=document.documentElement;t.hasAttribute("lang")&&""!==t.getAttribute("lang").trim()||(t.style.boxShadow="inset 0 0 0 5px crimson",t.title="â ".concat(window.TcinnA11ySnippets.missingLang))}},{key:"highlightImgsWithoutAlt",value:function(){document.querySelectorAll("img").forEach((function(t){t.alt&&""!==t.alt.trim()||(t.style.boxShadow="0 0 0 4px red",t.title="ð ".concat(window.TcinnA11ySnippets.imgsNoAlt))}))}},{key:"highlightSmallFonts",value:function(){var t=this;document.querySelectorAll("body *").forEach((function(e){if(!e.closest("#tcinn-a11y-toolbar")&&!t.isExcluded(e)){var n=parseFloat(getComputedStyle(e).fontSize),o=e.textContent.trim();n&&n<t.MIN_FONT_PX&&o&&(e.style.boxShadow="0 0 0 3px orange",e.title="â ï¸ ".concat(window.TcinnA11ySnippets.smallFonts," (").concat(n.toFixed(1),"px)"))}}))}},{key:"highlightLowContrastText",value:function(){var t=this;document.querySelectorAll("body *").forEach((function(e){if(!e.closest("#tcinn-a11y-toolbar")&&!t.isExcluded(e)){var n=window.getComputedStyle(e),o=n.backgroundImage,i=t.parseRGB(n.color);if(i&&!/url\(/.test(o)&&!e.querySelector("img")){var r=t.parseRGB(t.getEffectiveBackgroundColor(e));if(r){var a=t.getContrastRatio(i,r);a<t.THRESHOLD&&(e.style.boxShadow="0 0 0 2px blue",e.title="â ".concat(window.TcinnA11ySnippets.lowContrast," (").concat(a.toFixed(2),":1)"))}}}}))}},{key:"runNoImages",value:function(t){document.querySelectorAll("img").forEach((function(e){if(e.closest(".
1js-magnifier-container"))e.style.visibility=t?"hidden":"";else if(t){e.style.display="none";var n=document.createElement("div");n.className="tcinn-a11y-no-img-placeholder",n.textContent=e.alt||"",e.__a11yPh=n,e.parentNode.insertBefore(n,e.nextSibling)}else e.style.display="",e.__a11yPh&&(e.__a11yPh.remove(),delete e.__a11yPh)}))}},{key:"applyPlaceholderContrast",value:function(){if(!this.placeholderStyleElement){var t=document.createElement("style");t.id="tcinn-a11y-placeholder-styles";var e=window.getComputedStyle(document.body).backgroundColor,n=this.parseRGB(e)||{r:255,g:255,b:255},o=this.getContrastRatio({r:255,g:255,b:255},n)>=this.threshold?"rgb(255,255,255)":"rgb(0,0,0)";t.textContent="\n input::placeholder,\n textarea::placeholder {\n color: ".concat(o," !important;\n opacity: 1 !important;\n }\n "),document.head.appendChild(t),this.placeholderStyleElement=t}}},{key:"revertPlaceholderContrast",value:function(){this.placeholderStyleElement&&(this.placeholderStyleElement.remove(),this.placeholderStyleElement=null)}},{key:"hasConsentCookie",value:function(){var t=this;return document.cookie.split("; ").some((function(e){return e.split("=")[0]===t.consentCookieName}))}},{key:"safeSetItem",value:function(t,e){("basic"===this.cookieGroup||this.hasConsentCookie())&&localStorage.setItem(t,e)}},{key:"safeRemoveItem",value:function(t){("basic"===this.cookieGroup||this.hasConsentCookie())&&localStorage.removeItem(t)}},{key:"initAriaSync",value:function(){document.querySelectorAll('#tcinn-a11y-toolbar [role="switch"]').forEach((function(t){t.setAttribute("aria-checked",t.classList.contains("active")),t.addEventListener("click",(function(){t.setAttribute("aria-checked",t.classList.contains("active"))}))}))}},{key:"runReadingGuide",value:function(t){var e="tcinn-a11y-reading-guide-line",n=document.getElementById(e);t?(n||((n=document.createElement("div")).id=e,Object.assign(n.style,{position:"fixed",left:"0",width:"100vw",height:"2px",background:"var(--bs-focus-ring-color)",pointerEvents:"none",zIndex:"9999"}),document.body.appendChild(n)),document.addEventListener("mousemove",this.moveReadingGuide)):(document.removeEventListener("mousemove",this.moveReadingGuide),n&&n.remove())}},{key:"moveReadingGuide",value:function(t){var e=document.getElementById("tcinn-a11y-reading-guide-line");e&&(e.style.top="".concat(t.clientY,"px"))}},{key:"initDevTools",value:function(){this.highlightImgsWithoutAlt(),this.highlightSmallFonts(),this.highlightLowContrastText(),this.highlightEmptyLinks(),this.highlightInputsWithoutLabel(),this.highlightMissingLangAttr()}},{key:"resetAll",value:function(){var t=this;this.resetFontSize();var e=document.getElementById("font-toggle-button");e&&e.classList.remove("active"),this.safeRemoveItem("tcinnA11y.fontSize16"),this.revertPlaceholderContrast(),this.revertContrastAdjustments();var n=document.getElementById("contrast-toggle-button");n&&n.classList.remove("active"),this.safeRemoveItem(this.storageKey),this.runNoImages(!1);var o=document.getElementById("no-images-toggle-button");o&&o.classList.remove("active"),this.safeRemoveItem("tcinnA11y.noImagesActive"),this.runReadingGuide(!1);var i=document.getElementById("reading-guide-toggle-button");i&&i.classList.remove("active"),this.safeRemoveItem("tcinnA11y.readingGuide"),this.a11yToggles.forEach((function(e){var n=e.btnId,o=e.bodyClass,i=e.storageKey;if(!e.handler){document.body.classList.remove(o),t.safeRemoveItem(i);var r=document.getElementById(n);r&&r.classList.remove("active")}}))}},{key:"initUniversalAccessibilityObserver",value:function(){var e=this;new MutationObserver((function(n){var o,i=!1,r=t(n);try{for(r.s();!(o=r.n()).done;){var a,s=t(o.value.addedNodes);try{for(s.s();!(a=s.n()).done;){var l,c,u=a.value;if(1===u.nodeType&&((null===(l=u.matches)||void 0===l?void 0:l.call(u,'.modal, .offcanvas, .dropdown, .plugin, [class*="popup"], [data-modal], [data-plugin]'))||(null===(c=u.querySelectorAll)||void 0===c?void 0:c.call(u,"*").length)>10)){i=!0;break}}}catch(t){s.e(t)}finally{s.f()}if(i)break}}catch(t){r.e(t)}finally{r.f()}i&&(e.contrastActive&&e.adjustPageTextContrast(),"true"===localStorage.getItem("tcinnA11y.fontSize16")&&e.setFontSize())})).observe(document.body,{childList:!0,subtree:!0})}}]),r}(g),"#tcinn-a11y-toolbar")}()}()}}]);
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.