(()=>{var e,t={95137(e,t,r){"use strict";const n="update",a="remove";class o{constructor(e,t){this.dom=e,this.data=t}run(){throw new Error(`Action type '${this.data.type}' - not implemented`)}incrementBodyDivIndex(e){const t=/(\/body\[\d+\]\/div\[)(\d+)/;return e.match(t)?e.replace(t,(e,t,r)=>`${t}${parseInt(r,10)+1}`):e}getElementByXPath(e){let t=e.replace("svg","*[name()='svg']");return document.getElementById("wpadminbar")&&(t=this.incrementBodyDivIndex(t)),this.dom.evaluate(t,this.dom,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}getElementByXPathFallbackSnippet(e,t=null){if(t){const r=this.getElementByXPath(t);if(r){const t=e.replace(/\s+/g," ").trim().toLowerCase();if(r.outerHTML.replace(/\s+/g," ").trim().toLowerCase().includes(t))return r}}const r=(new DOMParser).parseFromString(e.trim(),"text/html").body.firstElementChild;if(!r)return null;const n=[r.tagName.toLowerCase()];r.id&&n.push(`#${r.id}`),r.classList.length&&n.push(`.${Array.from(r.classList).join(".")}`);const a=n.join("");return document.querySelector(a)}createElement(e,t=[],r=""){const n=document.createElement(e);return t.forEach(e=>{n.setAttribute(e.name,e.value)}),r&&(n.textContent=r),n}}class i extends o{run(){const{xpath:e,action:t,attribute_name:r,attribute_value:o,global:i}=this.data,l=e.replace("svg","*[name()='svg']"),s="1"===i?this.getElementByXPathFallbackSnippet(find,l):this.getElementByXPath(l);if(!s)return!1;switch(t){case"add":case n:s.setAttribute(r,o);const e={alt:["role","title"],role:["alt","title"]};e[r]&&e[r].forEach(e=>s.removeAttribute(e));break;case a:s.removeAttribute(r);break;case"clear":s.setAttribute(r,"")}return!0}}class l extends o{run(){const{xpath:e,action:t,content:r,child:o}=this.data,i=this.getElementByXPath(e);if(!i)return!1;let l=null;if(o)try{l=this.createElement(o.tag,o.attributes||[],o.content||"")}catch(e){return}switch(t){case n:i.nodeValue=r;break;case a:i.remove();break;case"add_child":l&&i.appendChild(l);break;case"remove_child":l&&i.removeChild(l);break;case"add_before":l&&i.parentNode&&i.parentNode.insertBefore(l,i);break;case"add_after":l&&i.parentNode&&i.parentNode.insertBefore(l,i.nextSibling)}return!0}}class s extends o{replaceIgnoreCase(e,t,r,n,a){const o=n.indexOf(a);return-1===o?e:e.substring(0,o)+r+e.substring(o+t.length)}run(){const{xpath:e,find:t,replace:r,global:n}=this.data,a="1"===n?this.getElementByXPathFallbackSnippet(t,e):this.getElementByXPath(e);if(!a)return!1;const o=a.outerHTML;if("string"!=typeof t||"string"!=typeof r)return!1;const i=o.toLowerCase(),l=t.toLowerCase();if(!i.includes(l))return!1;const s=this.replaceIgnoreCase(o,t,r,i,l);if(s===o)return!1;const c=document.createElement("div");c.innerHTML=s;const d=c.firstElementChild;return d&&a.parentNode&&a.parentNode.replaceChild(d,a),!0}}var c=r(76105),d=r.n(c),u=r(37347);const h=e=>{try{return!(!e||"string"!=typeof e||(u.Ay.parse(e),0))}catch(e){return!1}},g=e=>{const t=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/i);if(!t)return null;const r=parseInt(t[1]).toString(16).padStart(2,"0"),n=parseInt(t[2]).toString(16).padStart(2,"0"),a=parseInt(t[3]).toString(16).padStart(2,"0");return void 0!==t[4]&&parseFloat(t[4])<1?`#${r}${n}${a}${Math.round(255*parseFloat(t[4])).toString(16).padStart(2,"0")}`.toUpperCase():`#${r}${n}${a}`.toUpperCase()};class m extends o{constructor(e,t){super(e,t),this.maybeAddStyleTag()}maybeAddStyleTag(){let e=this.dom.querySelector("style#ea11y-remediation-styles");e||(e=this.dom.createElement("style"),e.id="ea11y-remediation-styles",this.dom.body.appendChild(e))}getStyleTag(){return this.dom.querySelector("style#ea11y-remediation-styles")}getElementCSSSelector(e){let t=this.getElementByXPath(e);if(!(t&&t instanceof Element))return null;const r=[];for(;t&&t.nodeType===Node.ELEMENT_NODE;){let e=t.tagName.toLowerCase();if(t.id){e+=`#${t.id}`,r.unshift(e);break}if(t.className&&"body"!==t.tagName.toLowerCase()){const r=t.className.trim().split(/\s+/);r.length&&(e+="."+r.join("."))}const n=t.parentNode;if(n&&("body"!==n.tagName?.toLowerCase()||"div"!==t.tagName?.toLowerCase())){const r=Array.from(n.children).filter(e=>e.tagName===t.tagName);r.length>1&&(e+=`:nth-of-type(${r.indexOf(t)+1})`)}r.unshift(e),t=t.parentElement}return r.join(" > ")}getCssRulesForContrast(e=null,t=null,r=null,n=null){try{const a=e?this.getElementCSSSelector(e):null,o=r?this.getElementCSSSelector(r):null,i=`${a&&t?`${a} {color: ${t} !important;}`:""}${o&&n?`${o} {background-color: ${n} !important;}`:""}`;return h(i)?i:""}catch(e){return console.warn("Failed to convert XPath to CSS selector",e),""}}run(){const e=this.getStyleTag();if(!e)return!1;let t=this.data.rule;if("1"===this.data.global){const e=(()=>{const e={color:null,background:null},t=this.data.rule.matchAll(/([^{]+)\s*\{([^}]+)\}/g);for(const[,r,n]of t){let t;try{t=document.querySelector(r.trim())}catch{continue}const a=n.match(/(?<!background-)color\s*:\s*([^;!]+)/i),o=n.match(/background-color\s*:\s*([^;!]+)/i),i=a?a[1].trim():null,l=o?o[1].trim():null;if(i&&!e.color&&(e.color={item:t,value:i}),l&&!e.background&&(e.background={item:t,value:l}),e.color&&e.background)break}const r=e.color?.item||e.background?.item;if(r){const t=window.getComputedStyle(r);e.color||(e.color={item:r,value:g(t.getPropertyValue("color"))}),e.background||(e.background={item:r,value:g(t.getPropertyValue("background-color"))})}return e})(),r=d()(this.getElementByXPathFallbackSnippet(this.data.xpath,this.data.find)),n=d()(this.getElementByXPathFallbackSnippet(this.data.parentXPath,this.data.parentFind));t=this.getCssRulesForContrast(r,e.color.value,n,e.background.value)}return h(this.data.rule)&&(e.innerText+=t),!0}}class p{constructor(e){this.remediations=e,this.classMap={attribute:i,element:l,replace:s,styles:m,global:s},this.checkTimeout=null,this.runAll()}runAll(){this.remediations=this.remediations.filter(e=>!this.runRemediation(e))}runRemediation(e){const t=("1"===e.global?"global":e.type).toLowerCase(),r=this.classMap[t];if(r)try{return new r(document,e).run()}catch(t){window.AllyRemediations?.debug&&window.AllyRemediations.debug&&console.error("Remediation failed",t,e)}return!1}checkRemediations(){this.isComplete()||this.runAll()}isComplete(){return 0===this.remediations.length}}if(window?.AllyRemediations&&Array.isArray(window.AllyRemediations?.remediations)){let b=null,y=null,f=!1;function v(){f?b.runAll():(f=!0,b=new p(window.AllyRemediations.remediations),window.MutationObserver&&b.remediations.length>0&&(y=new MutationObserver(e=>{let t=!1;for(const r of e)if("childList"===r.type&&r.addedNodes.length>0){t=!0;break}t&&(clearTimeout(b.checkTimeout),b.checkTimeout=setTimeout(()=>{b.checkRemediations(),b.isComplete()&&y&&(y.disconnect(),y=null)},100))}),y.observe(document.body,{childList:!0,subtree:!0})))}window.addEventListener("DOMContentLoaded",function(){setTimeout(()=>{v()},400)}),"loading"!==document.readyState&&setTimeout(()=>{v()},400)}},76105(e){e.exports=function(){function e(){return(e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var t={ignoreId:!1},r="undefined"!=typeof Node,n=r?Node.ELEMENT_NODE:1,a=r?Node.TEXT_NODE:3,o=r?Node.DOCUMENT_TYPE_NODE:10;return function(r,i){var l=e({},t,i),s=r;if(s&&s.id&&!l.ignoreId)return'//*[@id="'+s.id+'"]';for(var c=[];s&&(n===s.nodeType||a===s.nodeType);){for(var d=0,u=!1,h=s.previousSibling;h;)h.nodeType!==o&&h.nodeName===s.nodeName&&d++,h=h.previousSibling;for(h=s.nextSibling;h;){if(h.nodeName===s.nodeName){u=!0;break}h=h.nextSibling}var g=d||u?"["+(d+1)+"]":"";c.push(s.nodeType!=a?(s.prefix?s.prefix+":":"")+s.localName+g:"text()"+(g||"[1]")),s=s.parentNode}return c.length?"/"+c.reverse().join("/"):""}}()},48633(e){var t=String,r=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=r(),e.exports.createColors=r},49746(){},19977(){},197(){},21866(){},52739(){},95042(e){e.exports={nanoid:(e=21)=>{let t="",r=0|e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let n="",a=0|r;for(;a--;)n+=e[Math.random()*e.length|0];return n}}}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}};return t[e].call(o.exports,o,o.exports,n),o.exports}n.m=t,e=[],n.O=(t,r,a,o)=>{if(!r){var i=1/0;for(d=0;d<e.length;d++){for(var[r,a,o]=e[d],l=!0,s=0;s<r.length;s++)(!1&o||i>=o)&&Object.keys(n.O).every(e=>n.O[e](r[s]))?r.splice(s--,1):(l=!1,o<i&&(i=o));if(l){e.splice(d--,1);var c=a();void 0!==c&&(t=c)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[r,a,o]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={1275:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var a,o,[i,l,s]=r,c=0;if(i.some(t=>0!==e[t])){for(a in l)n.o(l,a)&&(n.m[a]=l[a]);if(s)var d=s(n)}for(t&&t(r);c<i.length;c++)o=i[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(d)},r=globalThis.webpackChunkpojo_accessibility=globalThis.webpackChunkpojo_accessibility||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a=n.O(void 0,[5168],()=>n(95137));a=n.O(a)})();