PageSourceSearch

https://www.condom.org/wp-content/plugins/website-accessibility-pr…/helpers/index.js?ver=e4a5259277f7ef6e7bc9

js condom.org collected 2026-09-24 21:11:00 UTC 97,215 bytes, 4 lines download raw bytes

1(()=>{"use strict";const e=window.wp.i18n,t=["Google","Microsoft","Samantha","Alex","Daniel"],n=[{lang:"bn",pattern:/[ঀ-৿]/g,shared:["as"]},{lang:"hi",pattern:/[ऀ-ॿ]/g,shared:["mr","ne","sa","kok","brx","mai"]},{lang:"pa",pattern:/[਀-੿]/g},{lang:"gu",pattern:/[઀-૿]/g},{lang:"ta",pattern:/[஀-௿]/g},{lang:"te",pattern:/[ఀ-౿]/g},{lang:"kn",pattern:/[ಀ-೿]/g},{lang:"ml",pattern:/[ഀ-ൿ]/g},{lang:"si",pattern:/[඀-෿]/g},{lang:"th",pattern:/[฀-๿]/g},{lang:"my",pattern:/[က-႟]/g},{lang:"km",pattern:/[ក-៿]/g},{lang:"ar",pattern:/[؀-ۿݐ-ݿ]/g,shared:["fa","ur","ps","ku","sd","ug"]},{lang:"he",pattern:/[֐-׿]/g,shared:["yi"]},{lang:"el",pattern:/[Ͱ-Ͽ]/g},{lang:"ru",pattern:/[Ѐ-ӿ]/g,shared:["uk","bg","sr","mk","be","kk","ky","mn","tg","tt"]},{lang:"ka",pattern:/[Ⴀ-ჿ]/g},{lang:"hy",pattern:/[԰-֏]/g},{lang:"ko",pattern:/[가-힯ᄀ-ᇿ]/g},{lang:"ja",pattern:/[぀-ヿ]/g},{lang:"zh",pattern:/[一-鿿]/g,shared:["ja","ko","yue"]}],i=e=>String(e||"").toLowerCase().replace("_","-"),a={in:"id",iw:"he",ji:"yi",ua:"uk",nb:"no",nn:"no","zh-tw":"zh-hant","zh-hk":"zh-hant","zh-cn":"zh-hans"},o=e=>{const t=i(e).trim();return t?a[t]||a[t.split("-")[0]]||t:""};class s{static instance=null;constructor(){if(s.instance)return s.instance;this.screenReaderConfig={rate:1,pitch:1,lang:"en-US",voiceURI:"Google US English"},this.screenReaderClickHandler=null,this.screenReaderFocusHandler=null,this.currentHighlightedElement=null,this.previousStyle=null,this.voicesPrimed=!1,this.voicesChangedHandler=null,this.attachTimer=null,this.pendingSpeakTimer=null,this.keepAliveTimer=null,this.lastAnnounced={element:null,at:0},s.instance=this}static getInstance(){return s.instance||(s.instance=new s),s.instance}highlight(e){this.clearHighlight(),e?.style&&(this.previousStyle={backgroundColor:e.style.backgroundColor,color:e.style.color,outline:e.style.outline},Object.assign(e.style,{backgroundColor:"#fffae6",color:"#000",outline:"2px dashed #f0c040"}),this.currentHighlightedElement=e)}clearHighlight(){this.currentHighlightedElement&&this.previousStyle&&Object.assign(this.currentHighlightedElement.style,this.previousStyle),this.currentHighlightedElement=null,this.previousStyle=null}isSupported(){return"undefined"!=typeof window&&!!window.speechSynthesis&&"undefined"!=typeof SpeechSynthesisUtterance}primeVoices(){!this.voicesPrimed&&this.isSupported()&&(this.voicesPrimed=!0,window.speechSynthesis.getVoices(),this.voicesChangedHandler=()=>window.speechSynthesis.getVoices(),window.speechSynthesis.addEventListener("voiceschanged",this.voicesChangedHandler))}resolveLang(e,t=null){const n=t?.closest?.("[lang], [xml\\:lang]"),i=n?.getAttribute("lang")||n?.getAttribute("xml:lang")||"",a=document.documentElement,s=a?.getAttribute("lang")||a?.getAttribute("xml:lang")||"",r=o(i)||o(this.screenReaderConfig?.lang)||o(s)||"en-US",l=this.detectScript(e);if(!l)return r;const c=r.split("-")[0];return(c===l.lang||l.shared?.includes(c))&&this.hasVoiceFor(r)?r:l.lang}hasVoiceFor(e){const t=o(e).split("-")[0];return!!t&&window.speechSynthesis.getVoices().some(e=>o(e.lang).startsWith(t))}detectScript(e){const t=String(e||"").slice(0,400);if(!t)return null;const i=t.match(/\p{L}/gu)?.length||0;if(!i)return null;for(const e of n){const n=t.match(e.pattern)?.length||0;if(n>=4&&n/i>=.3)return e}return null}resolveVoice(e,n){const a=window.speechSynthesis.getVoices();if(!a.length)return null;const s=o(e),r=s.split("-")[0],l=n?a.find(e=>e.voiceURI===n||e.name===n):null;if(l&&(!r||i(l.lang).startsWith(r)))return l;const c=a.filter(e=>o(e.lang)===s),d=r?a.filter(e=>o(e.lang).startsWith(r)):[],u=e=>{for(const n of t){const t=e.find(e=>e.name.startsWith(n));if(t)return t}return e.find(e=>e.default)||e[0]||null};return u(c)||u(d)||null}apply(e,t){const{rate:n=1,pitch:i=1,voiceURI:a=null}=t,o=document.documentElement.getAttribute("lang")||"",s=t.lang||o||"en-US";this.screenReaderConfig={rate:n,pitch:i,lang:s,voiceURI:a},this.primeVoices(),this.destroy(),this.screenReaderClickHandler=e=>this.announceTarget(e.target),this.screenReaderFocusHandler=e=>this.announceTarget(e.target);const r=this.screenReaderClickHandler,l=this.screenReaderFocusHandler;window.clearTimeout(this.attachTimer),this.attachTimer=window.setTimeout(()=>{this.attachTimer=null,this.screenReaderClickHandler===r&&(document.addEventListener("click",r),document.addEventListener("focusin",l))},0)}announceTarget(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return;if(this.isInsidePreviewDrawer(e)||this.isAccessibilityButton(e))return;const t=Date.now();this.lastAnnounced.element===e&&t-this.lastAnnounced.at<400||(this.lastAnnounced={element:e,at:t},this.hasReadableContent(e)?this.speak(this.getElementDescription(e),e,this.getElementRolePrefix(e)):this.isContainer(e)&&this.speakSequentially(this.getReadableTextFromChildren(e)))}speak(e,t=null,n=""){e&&this.isSupported()&&this.speakNow(e,t,n)}buildUtterance(e,t){const n=new SpeechSynthesisUtterance(e),{rate:i,pitch:a,voiceURI:o}=this.screenReaderConfig||{},s=this.resolveVoice(t,o),r=s?.localService&&this.detectScript(e);return n.rate=r?.88*i:i,n.pitch=a,n.lang=s?.lang||t,n.voice=s,n.onerror=e=>{"interrupted"!==e?.error&&"canceled"!==e?.error&&console.warn("One Acce
1ssibility: speech synthesis failed —",e?.error)},n}buildParts(e,t=null,n=""){const i=String(e||"").replace(/\s+/g," ").trim(),a=String(n||"").replace(/\s+/g," ").trim(),o=this.resolveLang(i,t),s=[];if(a){const e=this.detectScript(a)?.lang||"en";if(e===o.split("-")[0])return s.push(this.buildUtterance(`${a} ${i}`,o)),s;s.push(this.buildUtterance(a,e))}return s.push(this.buildUtterance(i,o)),s}speakNow(e,t=null,n=""){const i=this.buildParts(e,t,n);this.highlight(t);const a=i[i.length-1],o=()=>this.clearHighlight();a.onend=o,a.addEventListener("error",o),this.dispatch(i)}dispatch(e){const t=window.speechSynthesis,n=Array.isArray(e)?e:[e];if(!n.length)return;const i=()=>{n.forEach(e=>t.speak(e)),t.resume(),this.keepAlive()},a=n[n.length-1];if(a.addEventListener("end",()=>this.stopKeepAlive()),a.addEventListener("error",()=>this.stopKeepAlive()),t.speaking||t.pending)return t.cancel(),window.clearTimeout(this.pendingSpeakTimer),void(this.pendingSpeakTimer=window.setTimeout(()=>{this.pendingSpeakTimer=null,i()},60));i()}keepAlive(){this.stopKeepAlive(),this.keepAliveTimer=window.setInterval(()=>{const e=window.speechSynthesis;e.speaking?(e.pause(),e.resume()):this.stopKeepAlive()},1e4)}stopKeepAlive(){this.keepAliveTimer&&(window.clearInterval(this.keepAliveTimer),this.keepAliveTimer=null)}speakSequentially(e){Array.isArray(e)&&0!==e.length&&this.isSupported()&&this.speakSequentiallyNow(e)}speakSequentiallyNow(e){let t=0;const n=()=>
1{if(t>=e.length)return;const{text:i,element:a}=e[t];if(!a||!a.isConnected)return t++,void n();const o=this.buildParts(i,a,this.getElementRolePrefix(a)),s=o[o.length-1];this.highlight(a),s.onend=()=>{this.clearHighlight(),t++,n()},s.addEventListener("error",e=>{"interrupted"!==e?.error&&"canceled"!==e?.error&&(this.clearHighlight(),t++,n())}),this.dispatch(o)};n()}getElementDescription(t){if(t.hasAttribute("aria-label"))return t.getAttribute("aria-label");if(t.hasAttribute("aria-labelledby")){const e=document.getElementById(t.getAttribute("aria-labelledby"));if(e)return e.innerText.trim()}if(t.hasAttribute("aria-describedby")){const e=document.getElementById(t.getAttribute("aria-describedby"));if(e)return e.innerText.trim()}const n=t.tagName;if("IMG"===n&&t.alt)return t.alt;if("INPUT"===n&&"hidden"!==t.type||"TEXTAREA"===n||"SELECT"===n){return this.getLabelTextForInput(t)||(t.placeholder?t.placeholder:"SELECT"===n?(0,e.__)("Drop-down list","website-accessibility-pro"):"TEXTAREA"===n?(0,e.__)("Text area","website-accessibility-pro"):(0,e.__)("Input field","website-accessibility-pro"))}if("VIDEO"===n||"AUDIO"===n){const i=t.querySelector('track[kind="captions"], track[kind="subtitles"]');if(i&&i.label)
2/* translators: %s: caption track label */
3return(0,e.sprintf)((0,e.__)("Media with captions: %s","website-accessibility-pro"),i.label);if(t.hasAttribute("aria-describedby")){const e=document.getElementById(t.getAttribute("aria-describedby"));if(e)return e.innerText.trim()}return t.hasAttribute("aria-label")?t.getAttribute("aria-label"):"VIDEO"===n?(0,e.__)("Video","website-accessibility-pro"):(0,e.__)("Audio","website-accessibility-pro")}return t.innerText?.trim()||""}getElementRolePrefix(t){const n=t.getAttribute("role")?.toLowerCase(),i=t.tagName,a={button:(0,e.__)("Button","website-accessibility-pro"),link:(0,e.__)("Link","website-accessibility-pro"),heading:(0,e.__)("Heading","website-accessibility-pro"),checkbox:(0,e.__)("Checkbox","website-accessibility-pro"),radio:(0,e.__)("Radio button","website-accessibility-pro"),switch:(0,e.__)("Switch","website-accessibility-pro"),dialog:(0,e.__)("Dialog","website-accessibility-pro"),tab:(0,e.__)("Tab","website-accessibility-pro"),tabpanel:(0,e.__)("Tab panel","website-accessibility-pro"),slider:(0,e.__)("Slider","website-accessibility-pro"),combobox:(0,e.__)("Combo box","website-accessibility-pro"),listbox:(0,e.__)("List box","website-accessibility-pro"),option:(0,e.__)("Option","website-accessibility-pro"),img:(0,e.__)("Image","website-accessibility-pro"),video:(0,e.__)("Video","website-accessibility-pro"),audio:(0,e.__)("Audio","website-accessibility-pro"),caption:(0,e.__)("Caption","website-accessibility-pro"),canvas:(0,e.__)("Canvas","website-accessibility-pro"),menu:(0,e.__)("Menu","website-accessibility-pro"),menubar:(0,e.__)("Menu bar","website-accessibility-pro"),menuitem:(0,e.__)("Menu item","website-accessibility-pro"),menuitemcheckbox:(0,e.__)("Menu checkbox","website-accessibility-pro"),menuitemradio:(0,e.__)("Menu radio item","website-accessibility-pro"),navigation:(0,e.__)("Navigation","website-accessibility-pro"),main:(0,e.__)("Main content","website-accessibility-pro"),banner:(0,e.__)("Banner","website-accessibility-pro"),contentinfo:(0,e.__)("Footer","website-accessibility-pro"),complementary:(0,e.__)("Complementary section","website-accessibility-pro"),form:(0,e.__)("Form","website-accessibility-pro"),region:(0,e.__)("Region","website-accessibility-pro"),search:(0,e.__)("Search","website-accessibility-pro")};return n?Object.prototype.hasOwnProperty.call(a,n)?`${a[n]}: `:(0,e.sprintf)((0,e.__)("Role %s: ","website-accessibility-pro"),n)
4/* translators: %s: an ARIA role name the reader has no label for */:"BUTTON"===i?`${a.button}: `:"A"===i?`${a.link}: `:/^H[1-6]$/.test(i)?(0,e.sprintf)((0,e.__)("Heading level %d: ","website-accessibility-pro"),Number(i[1])):"INPUT"===i?"checkbox"===t.type?`${a.checkbox}: `:"radio"===t.type?`${a.radio}: `:`${(0,e.__)("Input","website-accessibility-pro")}: `:"TEXTAREA"===i||"SELECT"===i?`${(0,e.__)("Input","website-accessibility-pro")}: `:"IMG"===i?`${a.img}: `:"NAV"===i?`${a.navigation}: `:"MAIN"===i?`${a.main}: `:"FOOTER"===i?`${a.contentinfo}: `:""}_isVisible(e){if(!e||1!==e.nodeType)return!1;try{let t=e;for(;t&&t!==document.body;){if("true"===t.getAttribute("aria-hidden"))return!1;const e=window.getComputedStyle(t);if("none"===e.display)return!1;if("hidden"===e.visibility||"collapse"===e.visibility)return!1;if("0"===e.opacity)return!1;t=t.parentElement}const n=e.getBoundingClientRect();return 0!==n.width||0!==n.height}catch{return!1}}hasReadableContent(e){if(!e||!this._isVisible(e))return!1;const t=e.tagName;if(e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")||e.hasAttribute("aria-describedby"))return!0;
4if("IMG"===t&&e.alt?.trim())return!0;if("INPUT"===t&&"hidden"!==e.type||"TEXTAREA"===t||"SELECT"===t)return!0;if("BUTTON"===t){if(e.innerText?.trim())return!0;if(e.querySelector('[aria-hidden="false"], .sr-only'))return!0}if("A"===t&&e.innerText?.trim())return!0;if("VIDEO"===t||"AUDIO"===t)return!0;for(let t of e.childNodes)if(t.nodeType===Node.TEXT_NODE&&t.textContent.trim().length>0)return!0;return!1}isContainer(e){return["SECTION","MAIN","ARTICLE","NAV","ASIDE","FOOTER","HEADER"].includes(e.tagName)}getReadableTextFromChildren(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null,!1);let i,a=null;for(;i=n.nextNode();)if((!a||!a.contains(i))&&this.hasReadableContent(i)){const e=this.getElementDescription(i);if(e&&(t.push({text:e,element:i}),a=i,t.length>=40))break}return t}getLabelTextForInput(e){if(e.id){const t=document.querySelector(`label[for="${CSS.escape(e.id)}"]`),n=t?.innerText.trim();if(n)return n}const t=e.closest("label");if(!t)return"";const n=t.cloneNode(!0);return n.querySelectorAll("input, select, textarea, button").forEach(e=>e.remove()),n.textContent.replace(/\s+/g," ").trim()}isInsidePreviewDrawer(e){return!!e.closest(".wap-preset__preview-drawer, #website-accessibility-app, .wap-panel-customization__panel, #website-accessibility-checker")}isAccessibilityButton(e){return!!e.closest(".wap-preview-button")}destroy(){this.screenReaderClickHandler&&(document.removeEventListener("click",this.screenReaderClickHandler),this.screenReaderClickHandler=null),this.screenReaderFocusHandler&&(document.removeEventListener("focusin",this.screenReaderFocusHandler),this.screenReaderFocusHandler=null),window.clearTimeout(this.attachTimer),this.attachTimer=null,window.clearTimeout(this.pendingSpeakTimer),this.pendingSpeakTimer=null,this.clearHighlight(),this.stopKeepAlive(),this.isSupported()&&(this.voicesChangedHandler&&(window.speechSynthesis.removeEventListener("voiceschanged",this.voicesChangedHandler),this.voicesChangedHandler=null,this.voicesPrimed=!1),window.speechSynthesis.cancel())}}const r=()=>s.getInstance(),l=window.ReactJSXRuntime,c=window?.wapHelpers?.features||[],d=c?.filter(e=>{if(!e?.isDummy)return e}),u=[...d,{key:"screenReader",label:(0,e.__)("Screen Reader","website-accessibility-pro"),disableAnnouncement:(0,e.__)("The screen reader setting has been disabled.","website-accessibility-pro"),description:(0,e.__)("Activates screen reader mode to read content aloud with Normal, Slow, and Fast modes.","website-accessibility-pro"),icon:(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M18.0918 9.9248C18.0918 9.61234 17.8388 9.35843 17.5264 9.3584C17.2139 9.3584 16.9609 9.61233 16.9609 9.9248V15.3818C16.9609 16.3773 16.1536 17.1844 15.1582 17.1846C14.1626 17.1846 13.3555 16.3774 13.3555 15.3818V7.31543C13.3553 7.00312 13.1014 6.75 12.7891 6.75C12.4769 6.75022 12.2238 7.00326 12.2236 7.31543V16.9473C12.2236 17.9428 11.4165 18.75 10.4209 18.75C9.4254 18.7499 8.61816 17.9428 8.61816 16.9473V10.1875C8.61809 9.72975 8.24683 9.3584 7.78906 9.3584C7.33148 9.35862 6.96102 9.72989 6.96094 10.1875V12.7822C6.96094 13.1963 6.62496 13.532 6.21094 13.5322H2C1.58579 13.5322 1.25 13.1964 1.25 12.7822C1.25021 12.3682 1.58591 12.0322 2 12.0322H5.46094V10.1875C5.46102 8.90146 6.50306 7.85862 7.78906 7.8584C9.07526 7.8584 10.1181 8.90132 10.1182 10.1875V16.9473C10.1182 17.1144 10.2538 17.2499 10.4209 17.25C10.588 17.25 10.7236 17.1144 10.7236 16.9473V7.31543C10.7238 6.17483 11.6485 5.25022 12.7891 5.25C13.9298 5.25 14.8553 6.17469 14.8555 7.31543V15.3818C14.8555 15.549 14.9911 15.6846 15.1582 15.6846C15.3252 15.6844 15.4609 15.5489 15.4609 15.3818V9.9248C15.4609 8.7839 16.3855 7.8584 17.5264 7.8584C18.6672 7.85843 19.5918 8.78392 19.5918 9.9248V12.0322H22C22.4141 12.0322 22.7498 12.3682 22.75 12.7822C22.75 13.1964 22.4142 13.5322 22 13.5322H18.8418C18.4277 13.5321 18.0918 13.1963 18.0918 12.7822V9.9248Z",fill:"black"})}),attributes:[{name:(0,e.__)("Normal","website-accessibility-pro"),value:"normal",rate:1,pitch:1,lang:"en-US",voiceURI:"Google US 
4English",css:[],enableAnnouncement:(0,e.__)("Enable Screen Reader, set to Normal.","website-accessibility-pro")},{name:(0,e.__)("Slow","website-accessibility-pro"),value:"slow",rate:.8,pitch:1,lang:"en-US",voiceURI:"Google US English",css:[],enableAnnouncement:(0,e.__)("Screen Reader, set to Slow.","website-accessibility-pro")},{name:(0,e.__)("Fast","website-accessibility-pro"),value:"fast",rate:1.2,pitch:1,lang:"en-US",voiceURI:"Google US English",css:[],enableAnnouncement:(0,e.__)("Screen Reader, set to Fast","website-accessibility-pro")}]},{key:"smartContrast",label:(0,e.__)("Smart Contrast","website-accessibility-pro"),disableAnnouncement:(0,e.__)("The smart contrast setting has been disabled.","website-accessibility-pro"),description:(0,e.__)("Automatically adjusts contrast based on surrounding colors for optimal readability.","website-accessibility-pro"),icon:(0,l.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M17.6338 13.2266L17.6318 13.2256C17.5679 13.4833 17.3845 13.7224 17.1045 13.832L17.1055 13.833C17.1036 13.8338 17.1015 13.8342 17.0996 13.835C17.0905 13.8385 17.0816 13.8435 17.0723 13.8467L17.0713 13.8447C16.8035 13.9463 16.5144 13.907 16.292 13.7764L16.2881 13.7734L15.6523 13.3916L15.4014 13.6436L15.7822 14.2852L15.7861 14.292C15.92 14.5249 15.9609 14.8235 15.8428 15.1045C15.728 15.3772 15.498 15.5627 15.2295 15.6357L15.2197 15.6377L14.5 15.8174V16.1816L15.209 16.3594C15.4581 16.4167 15.6712 16.5813 15.7949 16.7988L15.8428 16.8955L15.8799 17.001C15.9495 17.2498 15.9033 17.5041 15.7861 17.708L15.7822 17.7148L15.4014 18.3555L15.6523 18.6074L16.2881 18.2266L16.292 18.2236L16.3828 18.1777C16.5692 18.0945 16.7892 18.0698 17.001 18.1299L17.1055 18.167L17.1982 18.2129C17.3772 18.3146 17.5151 18.4721 17.5938 18.6582L17.6279 18.7529L17.6309 18.7637L17.6338 18.7734L17.8184 19.5H18.1816L18.3662 18.7734C18.4327 18.506 18.6295 18.2563 18.9277 18.1533C19.1607 18.0647 19.4097 18.0851 19.6172 18.1777L19.708 18.2236L19.7119 18.2266L20.3467 18.6074L20.5977 18.3555L20.2178 17.7148L20.2139 17.708C20.08 17.4751 20.0391 17.1765 20.1572 16.8955L20.2061 16.7969C20.3306 16.5779 20.5356 16.4281 20.7705 16.3643L20.7803 16.3623L21.5 16.1816V15.8301L21.3398 15.7949V15.7705L20.7803 15.6309C20.4827 15.5606 20.2631 15.3493 20.1572 15.0977C20.0406 14.8204 20.0756 14.5159 20.2207 14.2793L20.5977 13.6436L20.3467 13.3916L19.7119 13.7734L19.708 13.7764C19.4763 13.9124 19.1714 13.9515 18.8945 13.833C18.6585 13.732 18.4403 13.5208 18.3672 13.2256L18.3662 13.2266L18.1816 12.5H17.8184L17.6338 13.2266ZM18.8379 15.9932C18.8379 15.527 18.4631 15.1553 18.0068 15.1553C17.5507 15.1555 17.1768 15.5271 17.1768 15.9932C17.1769 16.4591 17.5508 16.8308 18.0068 16.8311C18.463 16.8311 18.8377 16.4592 18.8379 15.9932ZM19.8379 15.9932C19.8377 17.0073 19.0195 17.8311 18.0068 17.8311C16.9943 17.8308 16.1769 17.0071 16.1768 15.9932C16.1768 14.9791 16.9942 14.1555 18.0068 14.1553C19.0196 14.1553 19.8379 14.9789 19.8379 15.9932ZM22.5 16.4131C22.4999 16.7316 22.2811 17.018 21.9609 17.0957L21.9619 17.0967L21.1357 17.3037L21.5713 18.0361L21.625 18.1465C21.7262 18.4079 21.6592 18.6924 21.4805 18.8867L21.4736 18.8936L21.4668 18.9014L20.8926 19.4775L20.8877 19.4814C20.6641 19.7003 20.3069 19.7507 20.0264 19.5801V19.582L19.3027 19.1465L19.0957 19.9658L19.0879 19.9932C19.0004 20.2715 18.7429 20.5 18.4072 20.5H17.5928C17.2862 20.5 16.9858 20.2961 16.9043 19.9648L16.6963 19.1465L15.9736 19.582L15.9727 19.5801C15.7214 19.7323 15.3559 19.7308 15.1084 19.4756L15.1074 19.4775L14.5332 18.9014L14.5264 18.8936L14.5195 18.8867C14.3153 18.6646 14.2568 18.3248 14.4287 18.0361L14.8633 17.3037L14.0381 17.0967L14.0273 17.0947L14.0156 17.0908C13.725 17.0032 13.5 16.7336 13.5 16.4053V15.5869C13.5001 15.2686 13.7183 14.9813 14.0381 14.9033L14.8633 14.6953L14.4287 13.9639C14.2568 13.6752 14.3153 13.3354 14.5195 13.1133L14.5264 13.1064L14.5332 13.0986L15.1074 12.5225L15.1123 12.5186C15.3356 12.3 15.6923 12.2491 15.9727 12.4189L15.9736 12.418L16.6963 12.8525L16.9043 12.0342C16.9861 11.7035 17.2865 11.5 17.5928 11.5H18.4072C18.7311 11.5 19.0153 
411.7133 19.0947 12.0342L19.3027 12.8525L20.0264 12.418C20.2773 12.2658 20.6431 12.2691 20.8906 12.5234L20.8926 12.5225L21.4668 13.0986L21.4736 13.1064L21.4805 13.1133C21.6592 13.3076 21.7262 13.5921 21.625 13.8535L21.5713 13.9639L21.1396 14.6895L22.3398 14.9902V15.1484C22.4411 15.2722 22.5 15.4295 22.5 15.5947V16.4131Z",fill:"black"}),(0,l.jsx)("path",{d:"M1.25 12C1.25 6.61522 5.61522 2.25 11 2.25C15.4461 2.25 19.1956 5.2253 20.3691 9.29199C20.4839 9.68989 20.2543 10.1058 19.8564 10.2207C19.4585 10.3355 19.0426 10.1059 18.9277 9.70801C17.9345 6.26613 14.7601 3.75 11 3.75C6.44365 3.75 2.75 7.44365 2.75 12C2.75 16.5563 6.44365 20.25 11 20.25C11.7964 20.25 12.5652 20.1375 13.292 19.9277C13.69 19.8129 14.1059 20.0425 14.2207 20.4404C14.3354 20.8384 14.1059 21.2543 13.708 21.3691C12.8474 21.6175 11.9385 21.75 11 21.75C5.61522 21.75 1.25 17.3848 1.25 12Z",fill:"black"}),(0,l.jsx)("path",{d:"M11.75 3.5V20.5H10.25V3.5H11.75Z",fill:"black"}),(0,l.jsx)("path",{d:"M10.5 15.25V16.75H3V15.25H10.5ZM10.5 11.25V12.75H2V11.25H10.5ZM10.5 7.25V8.75H3V7.25H10.5Z",fill:"black"})]}),attributes:[{name:(0,e.__)("Enable","website-accessibility-pro"),value:"enable",css:[],enableAnnouncement:(0,e.__)("Smart Contrast Mode Enable.","website-accessibility-pro")},{name:(0,e.__)("Disable","website-accessibility-pro"),value:"disable",css:[]}]},{key:"dyslexiaFriendly",label:(0,e.__)("Dyslexia Friendly","website-accessibility-pro"),disableAnnouncement:(0,e.__)("The dyslexia friendly setting has been disabled.","website-accessibility-pro"),description:(0,e.__)("Adjusts text style and spacing to improve readability for users with dyslexia.","website-accessibility-pro"),icon:(0,l.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M10.5205 12.5C10.5205 10.4803 9.85788 9.3191 9.125 8.65625C8.36852 7.97214 7.46081 7.75 6.8916 7.75H3.75V16.75H6.40527C7.00326 16.75 8.05851 16.5352 8.94434 15.8926C9.79181 15.2777 10.5205 14.2498 10.5205 12.5ZM12.0205 12.5C12.0205 14.7502 11.0453 16.2223 9.8252 17.1074C8.64356 17.9645 7.26663 18.25 6.40527 18.25H3C2.58579 18.25 2.25 17.9142 2.25 17.5V7C2.25 6.58579 2.58579 6.25 3 6.25H6.8916C7.78181 6.25 9.06402 6.57817 10.1318 7.54395C11.2231 8.53112 12.0205 10.1199 12.0205 12.5Z",fill:"black"}),(0,l.jsx)("path",{d:"M14.4122 18V7C14.4122 6.58579 14.748 6.25 15.1622 6.25H21.0001C21.4143 6.25003 21.7501 6.5858 21.7501 7C21.7501 7.4142 21.4143 7.74997 21.0001 7.75H15.9122V11.25H19.5401C19.9543 11.25 20.2901 11.5858 20.2901 12C20.2901 12.4142 19.9543 12.75 19.5401 12.75H15.9122V18C15.9122 18.4142 15.5764 18.75 15.1622 18.75C14.748 18.75 14.4122 18.4142 14.4122 18Z",fill:"black"})]}),attributes:[{name:(0,e.__)("Enable","website-accessibility-pro"),value:"enable",css:[{selector:"body, p, div, span, li, td, th, h1, h2, h3, h4, h5, h6",properties:{fontFamily:"OpenDyslexic, Arial, sans-serif",lineHeight:"1.8",letterSpacing:"1px"}}],enableAnnouncement:(0,e.__)("Dyslexia Friendly Enable.","website-accessibility-pro")},{name:(0,e.__)("Disable","website-accessibility-pro"),value:"disable",css:[]}]},{key:"grayscale",label:(0,e.__)("Grayscale","website-accessibility-pro"),disableAnnouncement:(0,e.__)("The grayscale setting has been disabled.","website-accessibility-pro"),description:(0,e.__)("Converts the website to grayscale, removing all colors for simpler visual focus.","website-accessibility-pro"),icon:(0,l.jsx)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M9.37988 1C12.9297 1 15.9696 3.22065 17.1885 6.34473C20.2949 7.57215 22.4998 10.6026 22.5 14.1396C22.5 18.7596 18.7401 22.5195 14.1201 22.5195C10.5745 22.5195 7.53719 20.3048 6.31543 17.1865C3.20687 15.96 1 12.9283 1 9.38965C1.00019 4.76985 4.76005 1.00006 9.37988 1ZM17.6807 8.24609C17.7311 8.61708 17.7598 8.99531 17.7598 9.37988C17.7598 13.9999 13.9999 17.7598 9.37988 17.7598V17.7695C8.99161 17.7695 8.60976 17.7409 8.23535 17.6895C9.44363 19.6777 11.6312 21.0098 14.1201 21.0098C17.9101 21.0097 21 17.9198 21 14.1299C21 11.6416 19.6682 9.45451 17.6807 8.24609ZM7.56152 12.0479C7.35251 12.705 7.24025 13.4047 7.24023 14.1299C7.24023 14.7763 7.33108 15.4022 7.49902 15.9961C8.09733 16.1668 8.728 16.2598 9.37988 16.2598C10.1179 16.2598 10.8288 16.1405 11.4961 15.9238L7.56152 12.0479ZM9.37988 2.5C
45.57998 2.50006 2.50006 5.58998 2.5 9.37988C2.5 11.8673 3.8311 14.053 5.81738 15.2617C5.76802 14.8946 5.74023 14.52 5.74023 14.1396C5.74043 9.51981 9.50024 5.75977 14.1201 5.75977C14.5121 5.75977 14.8976 5.78846 15.2754 5.84082C14.0696 3.84171 11.8769 2.5 9.37988 2.5ZM11.0352 7.98145C9.86843 8.56893 8.89101 9.47784 8.2207 10.5918L12.9531 15.2549C14.0526 14.5831 14.9491 13.6113 15.5303 12.4551L11.0352 7.98145ZM14.1201 7.25C13.5969 7.25 13.0874 7.30996 12.5977 7.4209L16.0889 10.8955C16.1993 10.4075 16.2598 9.90051 16.2598 9.37988C16.2598 8.73329 16.168 8.10765 16 7.51367C15.402 7.34317 14.7717 7.25001 14.1201 7.25Z",fill:"black"})}),attributes:[{name:(0,e.__)("Low","website-accessibility-pro"),value:"low",css:[],enableAnnouncement:(0,e.__)("Grayscale set to Low.","website-accessibility-pro")},{name:(0,e.__)("Medium","website-accessibility-pro"),value:"medium",css:[],enableAnnouncement:(0,e.__)("Grayscale set to Medium.","website-accessibility-pro")},{name:(0,e.__)("High","website-accessibility-pro"),value:"high",css:[],enableAnnouncement:(0,e.__)("Grayscale set to High.","website-accessibility-pro")}]},{key:"brightness",label:(0,e.__)("Brightness","website-accessibility-pro"),disableAnnouncement:(0,e.__)("The brightness setting has been disabled.","website-accessibility-pro"),description:(0,e.__)("Improves visibility by changing the website’s brightness.","website-accessibility-pro"),icon:(0,l.jsxs)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_1533_365)",children:[(0,l.jsx)("rect",{width:24,height:24,fill:"white"}),(0,l.jsx)("path",{d:"M11.5605 18.4404C11.9703 18.4407 12.3105 18.7806 12.3105 19.1904V22.3799C12.3105 22.7897 11.9703 23.1296 11.5605 23.1299C11.1505 23.1299 10.8105 22.7899 10.8105 22.3799V19.1904C10.8105 18.7804 11.1505 18.4404 11.5605 18.4404ZM5.63965 16.4199C5.92963 16.1299 6.41019 16.13 6.7002 16.4199C6.9902 16.7099 6.9902 17.1905 6.7002 17.4805L4.44043 19.7402C4.29045 19.8902 4.10014 19.9599 3.91016 19.96C3.72016 19.96 3.52988 19.8902 3.37988 19.7402C3.08994 19.4502 3.0899 18.9697 3.37988 18.6797L5.63965 16.4199ZM16.4199 16.4199C16.7099 16.1299 17.1905 16.1299 17.4805 16.4199L19.7402 18.6797C20.0302 18.9697 20.0302 19.4502 19.7402 19.7402C19.5902 19.8902 19.4 19.96 19.21 19.96C19.02 19.9599 18.8296 19.8902 18.6797 19.7402L16.4199 17.4805C16.1299 17.1905 16.1299 16.7099 16.4199 16.4199ZM11.5596 6.91016C14.1296 6.91016 16.2295 9.00031 16.2295 11.5703C16.2294 14.1402 14.1395 16.2305 11.5596 16.2305C8.98977 16.2303 6.90048 14.1401 6.90039 11.5703C6.90039 9.00042 8.98972 6.91034 11.5596 6.91016ZM11.5596 8.40039C9.80972 8.40057 8.40039 9.82066 8.40039 11.5605C8.4006 13.3003 9.81985 14.7195 11.5596 14.7197C13.2994 14.7197 14.7293 13.3004 14.7295 11.5605C14.7295 9.82055 13.3096 8.40039 11.5596 8.40039ZM3.94043 10.8203C4.35024 10.8205 4.69043 11.1605 4.69043 11.5703C4.69043 11.9802 4.35024 12.3201 3.94043 12.3203H0.75C0.34 12.3203 0 11.9803 0 11.5703C0 11.1603 0.34 10.8203 0.75 10.8203H3.94043ZM22.3701 10.8203C22.7801 10.8203 23.1201 11.1603 23.1201 11.5703C23.1201 11.9803 22.7801 12.3203 22.3701 12.3203H19.1807C18.7707 12.3203 18.4307 11.9803 18.4307 11.5703C18.4307 11.1603 18.7707 10.8203 19.1807 10.8203H22.3701ZM3.37988 3.38965C3.66988 3.09965 4.15043 3.09965 4.44043 3.38965L6.7002 5.64941C6.9902 5.93941 6.9902 6.41996 6.7002 6.70996C6.5502 6.85996 6.35992 6.92969 6.16992 6.92969C5.97998 6.92964 5.7896 6.85991 5.63965 6.70996L3.37988 4.4502C3.08988 4.1602 3.08988 3.67965 3.37988 3.38965ZM18.6797 3.38965C18.9697 3.09967 19.4502 3.09971 19.7402 3.38965C20.0302 3.67965 20.0302 4.1602 19.7402 4.4502L17.4805 6.70996C17.3305 6.85995 17.1402 6.92967 16.9502 6.92969C16.7602 6.92969 16.5699 6.85996 16.4199 6.70996C16.13 6.41995 16.1299 5.93939 16.4199 5.64941L18.6797 3.38965ZM11.5605 0C11.9703 0.000269813 12.3105 0.340163 12.3105 0.75V3.94043C12.3103 4.35008 11.9702 4.69016 11.5605 4.69043C11.1507 4.69043 10.8108 4.35024 10.8105 3.94043V0.75C10.8105 0.34 11.1505 0 11.5605 0Z",fill:"black"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_1533_365",children:(0,l.jsx)("rect",{width:24,height:24,fill:"white"})})})]}),attributes:[{name:(0,e.__)("Low","website-accessibility-pro"),value:"low",css:[],enableAnnouncement:(0,e.__)("Brightness set to Low.","website-accessibility-pro")},{name:(0,e.__)("Medium","website-accessibility-pro"),value:"medium",css:[],enableAnnouncement:(0,e.__)("Brightness set to Medium.","website-accessibility-pro")},{name:(0,e.__)("High","website-accessibility-pro"),value:"high",css:[],enableAnnouncement:(0,e.__)("Brightness set to High.","website-accessibility-pro")}]},{key:"muteSounds",label:(0,e.__)("Mute Sounds","website-accessibility-pro"),disableAnnouncement:(0,e.__)("The mute sounds setting has been disabled.","website-accessibility-pro"),description:(0,e.__)("Silences all website sounds and audio effects for a distraction-free experience.","website-accessibility-pro"),icon:(0,l.jsxs)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{width:24,height:24,fill:"white"}),(0,l.jsx)("path",{d:"M10.6201 4.35461C11.1901 3.94468 11.9403 3.88424 12.5703 4.20422C13.2002 4.52419 13.5897 5.16451 13.5898 5.86438V17.7042C13.5898 18.4242 13.19 19.0649 12.54 19.3849C12.2801 19.5149 11.9899 19.5743 11.71 19.5743V19.5851C11.31 19.5851 10.9103 19.4544 10.5703 19.1945L6.55957 16.0948C6.49961 16.0449 6.41997 16.0148 6.33008 16.0148H2.87012C1.84012 16.0148 1 15.1747 1 14.1447V9.47473C1 8.44473 1.84012 7.60461 2.87012 7.60461H6.00977C6.08977 7.60461 6.16047 7.5843 6.23047 7.5343L10.6201 4.35461ZM11.8799 5.54504C11.8199 5.51505 11.6599 5.45449 11.5 5.57434L7.11035 8.755C6.79035 8.985 6.40977 9.10461 6.00977 9.10461H2.87012C2.67012 9.10461 2.5 9.27473 2.5 9.47473V14.1447C2.5 14.3447 2.67012 14.5148 2.87012 14.5148H6.33008C6.73993 14.5148 7.14979 14.6546 7.46973 14.9044L11.4805 18.005C11.6403 18.1345 11.8101 18.075 11.8701 18.045C11.9301 18.0151 12.0799 17.9247 12.0801 17.715V5.87512C12.0801 5.67518 11.9399 5.57508 11.8799 5.54504ZM15.3203 8.48449C15.6103 8.1948 16.08 8.18476 16.3799 8.48449L18.6494 10.7335L20.9199 8.48449C21.2098 8.1948 21.6895 8.19494 21.9795 8.48449C22.2695 8.77449 22.2695 9.25504 21.9795 9.54504L19.7148 11.7892L21.9805 14.0343C22.2704 14.3242 22.2803 14.8048 21.9805 15.0948C21.8305 15.2448 21.6401 15.3145 21.4502 15.3146C21.2602 15.3146 21.0699 15.2448 20.9199 15.0948L18.6494 12.8448L16.3799 15.0948C16.2299 15.2448 16.0396 15.3146 15.8496 15.3146C1
45.6598 15.3145 15.4602 15.2446 15.3203 15.0948C15.0303 14.8049 15.0303 14.3253 15.3203 14.0353L17.585 11.7892L15.3203 9.54504C15.0303 9.25504 15.0203 8.77449 15.3203 8.48449Z",fill:"black"})]}),attributes:[{name:(0,e.__)("Enable","website-accessibility-pro"),value:"enable",css:[],enableAnnouncement:(0,e.__)("Mute Sounds Enable.","website-accessibility-pro")},{name:(0,e.__)("Disable","website-accessibility-pro"),value:"disable",css:[]}]},{key:"keyboardNavigation",label:(0,e.__)("Keyboard Navigation","website-accessibility-pro"),disableAnnouncement:(0,e.__)("The keyboard navigation setting has been disabled.","website-accessibility-pro"),description:(0,e.__)("Tab: navigate elements. B/F/G/H: jump to Buttons/Forms/Graphics/Headings. Shift + any key: move backward.","website-accessibility-pro"),icon:(0,l.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M8.14 14.94v4.53h4.53v-4.53Zm6.8 0v4.53h4.53v-4.53Zm6.79 0v4.53h4.54v-4.53Zm6.8 0v4.53h4.53v-4.53Zm6.8 0v4.53h4.53v-4.53ZM8.14 21.73v4.54h4.53v-4.54Zm6.8 0v4.54h4.53v-4.54Zm6.79 0v4.54h4.54v-4.54Zm6.8 0v4.54h4.53v-4.54Zm6.8 0v4.54h4.53v-4.54Zm-27.19 6.8v4.53h4.53v-4.53Zm6.8 0v4.53h18.12v-4.53Zm20.39 0v4.53h4.53v-4.53Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M43.5 35.5v-23a2 2 0 0 0-2-2h-35a2 2 0 0 0-2 2v23a2 2 0 0 0 2 2h35a2 2 0 0 0 2-2Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]}),attributes:[{name:(0,e.__)("Enable","website-accessibility-pro"),value:"enable",css:[],enableAnnouncement:(0,e.__)("Keyboard Navigation Enable.","website-accessibility-pro")},{name:(0,e.__)("Disable","website-accessibility-pro"),value:"disable",css:[]}]},{key:"virtualKeyboard",label:(0,e.__)("Virtual Keyboard","website-accessibility-pro"),disableAnnouncement:(0,e.__)("The virtual keyboard has been disabled.","website-accessibility-pro"),description:(0,e.__)("Shows an on-screen keyboard for typing without a physical keyboard.","website-accessibility-pro"),icon:(0,l.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M8.14 14.94v4.53h4.53v-4.53Zm6.8 0v4.53h4.53v-4.53Zm6.79 0v4.53h4.54v-4.53Zm6.8 0v4.53h4.53v-4.53Zm6.8 0v4.53h4.53v-4.53ZM8.14 21.73v4.54h4.53v-4.54Zm6.8 0v4.54h4.53v-4.54Zm6.79 0v4.54h4.54v-4.54Zm6.8 0v4.54h4.53v-4.54Zm6.8 0v4.54h4.53v-4.54Zm-27.19 6.8v4.53h4.53v-4.53Zm6.8 0v4.53h18.12v-4.53Zm20.39 0v4.53h4.53v-4.53Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M43.5 35.5v-23a2 2 0 0 0-2-2h-35a2 2 0 0 0-2 2v23a2 2 0 0 0 2 2h35a2 2 0 0 0 2-2Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]}),attributes:[{name:(0,e.__)("Enable","website-accessibility-pro"),value:"enable",css:[],enableAnnouncement:(0,e.__)("Virtual Keyboard Enable.","website-accessibility-pro")},{name:(0,e.__)("Disable","website-accessibility-pro"),value:"disable",css:[]}]},{key:"skipLinks",label:(0,e.__)("Skip Links","website-accessibility-pro"),disableAnnouncement:(0,e.__)("Skip links have been disabled.","website-accessibility-pro"),description:(0,e.__)("Adds keyboard skip links to jump past navigation to main content and footer (WCAG 2.4.1).","website-accessibility-pro"),icon:(0,l.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M3.75 4.5h12.5a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1 0-1.5Z",fill:"black"}),(0,l.jsx)("path",{d:"M3.75 8.5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5Z",fill:"black"}),(0,l.jsx)("path",{d:"M11.25 12a.75.75 0 0 1 .75-.75h.001a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V12Z",fill:"black"})]}),attributes:[{name:(0,e.__)("Enable","website-accessibility-pro"),value:"enable",css:[],enableAnnouncement:(0,e.__)("Skip Links Enable.","website-accessibility-pro")},{name:(0,e.__)("Disable","website-accessibility-pro"),value:"disable",css:[]}]},{key:"focusIndicators",label:(0,e.__)("Focus Indicators","website-accessibility-pro"),disableAnnouncement:(0,e.__)("Focus indicators have been disabled.","website-accessibility-pro"),description:(0,e.__)("Shows a high-visibility focus ring on links, buttons, and form fields (WCAG 2.4.7).","
4website-accessibility-pro"),icon:(0,l.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M7 2.25h10A4.75 4.75 0 0 1 21.75 7v10A4.75 4.75 0 0 1 17 21.75H7A4.75 4.75 0 0 1 2.25 17V7A4.75 4.75 0 0 1 7 2.25Zm0 1.5A3.25 3.25 0 0 0 3.75 7v10c0 1.795 1.455 3.25 3.25 3.25h10c1.795 0 3.25-1.455 3.25-3.25V7c0-1.795-1.455-3.25-3.25-3.25H7Z",fill:"black"}),(0,l.jsx)("path",{d:"M8.5 8.5h7v7h-7v-7Z",fill:"black"})]}),attributes:[{name:(0,e.__)("Enable","website-accessibility-pro"),value:"enable",css:[],enableAnnouncement:(0,e.__)("Focus Indicators Enable.","website-accessibility-pro")},{name:(0,e.__)("Disable","website-accessibility-pro"),value:"disable",css:[]}]}];class h{static instance=null;constructor(e={}){if(h.instance)return h.instance;this.minimumContrast=e.minimumContrast||4.5,this.dataAttribute="data-smart-contrast",h.instance=this}static getInstance(e){return h.instance||(h.instance=new h(e)),h.instance}apply(){this.fixBodyContrast(),this.applySiteContrast()}isActuallyVisible(e){let t=e;for(;t&&1===t.nodeType;){const e=window.getComputedStyle(t);if("none"===e.display||"hidden"===e.visibility||0===parseFloat(e.opacity))return!1;t=t.parentElement}return!0}async fixBodyContrast(){const e=window.getComputedStyle(document.body),t=await this.getBackgroundInfo(e.backgroundImage);let n=e.color;e.backgroundColor?(n=this.getTextColorForBackground(e.backgroundColor,n),this.applyColor(n,document.body)):t.color&&(n=this.getTextColorForBackground(t.color,n),this.applyColor(n,document.body))}async applySiteContrast(e=document.body){const t=await this.collectBackgroundElements(e),n=this.collectImageElements(e),i=this.collectTextElements(e);for(let e=0;e<i.length;e++){const a=i[e],o=this.findNearestBackground(a,t),s=this.findNearestImage(a,n),r=window.getComputedStyle(o),l=r.backgroundColor,c=r.backgroundImage;if(o===document.body){const e=this.getTextColorForBackground(l,window.getComputedStyle(a).color);this.applyColor(e,a);continue}if(s&&a!==o){const e=await this.getImageInfo(s),t=this.getTextColorForBackground(e.color,window.getComputedStyle(a).color);this.applyColor(t,a);continue}if(l&&"transparent"!==l&&"rgba(0, 0, 0, 0)"!==l){const e=this.getTextColorForBackground(l,window.getComputedStyle(a).color);this.applyColor(e,a)}else if(c&&"none"!==c){const e=await this.getBackgroundInfo(c),t=this.getTextColorForBackground(e.color,window.getComputedStyle(a).color);this.applyColor(t,a)}}}async collectBackgroundElements(e=document.body){const t=Array.from(e.querySelectorAll("*")),n=[],i=window.location.origin,a=["#wpadminbar",".ant-drawer-content-wrapper","link","script","style",".screen-reader-text"].map(e=>Array.from(document.querySelectorAll(e))).flat();for(let e=0;e<t.length;e++){const o=t[e];if(o===document.body)continue;if(a.some(e=>e===o||e.contains(o)))continue;const s=window.getComputedStyle(o);if(!1===this.isActuallyVisible(o))continue;const r=o.getBoundingClientRect();if(0===r.width||0===r.height)continue;if("img"===o.tagName.toLowerCase())continue;if(0===o.children.length&&!o.TEXT_NODE)continue;const l=s.backgroundImage,c=s.backgroundColor;let d={};if(l&&"none"!==l){const e=l.match(/url\(["']?(.*?)["']?\)/i);if(e||this.isGradient(l)){const t=e?e[1]:"",n=new URL(t,window.location.href);let a=t&&n.origin===i?t:l;try{d=await this.getBackgroundInfo(a)}catch(e){console.error(e)}}}c&&"rgba(0, 0, 0, 0)"!==c&&"transparent"!==c&&(d={type:"color",color:c}),Object.keys(d).length>0&&n.push({el:o,backgroundInfo:d})}return n}collectImageElements(e=document.body){const t=Array.from(e.querySelectorAll("img")),n=[];for(const e of t){const t=getComputedStyle(e);if(!1===this.isActuallyVisible(e))continue;const i=e.getBoundingClientRect();if(i.width<150||i.height<150)continue;const a=t.position;if(!["absolute","static"].includes(a))continue;const o=e.parentNode;let s;for(const t of o.children){if(t===e)continue;const n=getComputedStyle(t);if(!this.isActuallyVisible(t))continue;if(!t.textContent.trim()||n.backgroundColor||n.backgroundImage)continue;const a=t.getBoundingClientRect();if(a.top>=i.top&&a.left>=i.left&&a.bottom<=i.bottom&&a.right<=i.right){s=t;break}}s?n.push(s):n.push(e)}return n}collectTextElements(e=document.body){const t=Array.from(e.querySelectorAll("*")),n=[],i=["#wpadminbar",".ant-drawer-content-wrapper","link","script","style",".screen-reader-text"].map(e=>Array.from(document.querySelectorAll(e))).flat();for(let e of t){if(e===document.body)continue;if(i.some(t=>t===e||t.contains(e)))continue;if(!Array.from(e.childNodes).some(e=>e.nodeType===Node.TEXT_NODE&&e.textContent.trim().length>0))continue;const t=window.getComputedStyle(e);
4if(!1===this.isActuallyVisible(e))continue;const a=e.getBoundingClientRect();0!==a.width&&0!==a.height&&"rgba(0, 0, 0, 0)"!==t.color&&n.push(e)}return n}hasBackground(e){const t=getComputedStyle(e);return{bgImage:t.backgroundImage,bgColor:t.backgroundColor}}isGradient(e){return e.startsWith("linear-gradient")||e.startsWith("radial-gradient")}findInnerBackgroundOverlay(e){let t=null;for(let n of e.children){const e=getComputedStyle(n),i=e.backgroundImage,a=e.backgroundColor,o=e.position;if(n.textContent.trim().length>0||n.children.length>0)continue;const s=this.isGradient(i),r=i&&"none"!==i&&!s,l=a&&"transparent"!==a&&"rgba(0, 0, 0, 0)"!==a;if(("absolute"===o||"fixed"===o||"relative"===o)&&(l||s||r)){if(s)return n;l&&!t?t=n:r&&!t&&(t=t||n)}}return t}isRectIntersecting(e,t){return!(e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}getValidBackgroundElement(e,t,n){if(!n.get(e))return null;const{bgImage:i,bgColor:a}=this.hasBackground(e),o=e.getBoundingClientRect();if(!this.isRectIntersecting(o,t))return null;if(a&&"transparent"!==a&&(!i||"none"===i))return e;if(this.isGradient(i))return e;if(i&&"none"!==i)return this.findInnerBackgroundOverlay(e)||e;const s=getComputedStyle(e);return"none"!==s.backdropFilter||"normal"!==s.backgroundBlendMode?e:null}findNearestBackground(e,t){if(!e||!t?.length)return document.body;const n=new WeakMap(t.map(e=>[e.el,e])),i=e.getBoundingClientRect();let a=e;for(;a&&a!==document.body;){const e=this.getValidBackgroundElement(a,i,n);if(e)return e;const t=a.parentElement;if(t)for(const e of t.children)if(e!==a){const t=this.getValidBackgroundElement(e,i,n);if(t)return t}a=t}return document.body}findNearestImage(e,t){let n;for(const i of t){const t=i.parentElement;if(t.contains(e)){for(const e of t.children){if(e===i)continue;const t=getComputedStyle(e).position;if(!(e.textContent.trim().length>0||e.children.length>0)&&"absolute"===t){n=e;break}}n||(n=i)}}return n}applyColor(e,t){t.setAttribute(this.dataAttribute,JSON.stringify({value:t.style.getPropertyValue("color"),priority:t.style.getPropertyPriority("color")})),t.style.color=e}parseColorMarker(e){if(!e)return null;try{const t=JSON.parse(e);return t&&"object"==typeof t?t:null}catch(e){return null}}getTextColorForBackground(e,t=null){if(!e)return"#000";const n=this.parseColorToRGB(e);if(!n)return"#000";const[i,a,o]=n,s=(299*i+587*a+114*o)/1e3>125?"#000":"#fff";if(t){const e=this.parseColorToRGB(t);if(e&&this.colorDistance(s,e)<128)return t}return s}parseColorToRGB(e){if(!e)return null;if("string"==typeof e&&e.startsWith("rgb")){const t=e.match(/\d+/g);if(t&&t.length>=3)return t.slice(0,3).map(Number)}else if("string"==typeof e&&e.startsWith("#"))return this.hexToRgb(e);return null}hexToRgb(e){if(!e)return null;let t=e.replace("#","");
43===t.length&&(t=t.split("").map(e=>e+e).join(""));const n=parseInt(t,16);return[n>>16&255,n>>8&255,255&n]}colorDistance(e,t){const[n,i,a]=e,[o,s,r]=t;return Math.sqrt(Math.pow(n-o,2)+Math.pow(i-s,2)+Math.pow(a-r,2))}async getBackgroundInfo(e,t=100,n=100){let i=null,a=null;if(!e||"none"===e)return{type:i,value:a,color:null};const o=String(e).trim();if(/^linear-gradient|^radial-gradient/i.test(o))i="gradient",a=o;else{const e=o.match(/url\(["']?(.*?)["']?\)/i);e&&(i="image",a=e[1])}if(!i||!a)return{type:null,value:null,color:null};let s=null;try{"gradient"===i?s=this.getDominantColorFromGradient(a,t,n):"image"===i&&(s=await this.getDominantColorFromImage(a,t,n))}catch(e){s=null}return{type:i,value:a,color:s}}async getImageInfo(e){if(!e)return null;try{const t=window.getComputedStyle(e);if("IMG"===e.tagName){let t=null;try{t=await this.getDominantColorFromImage(e.src,e.width,e.height)}catch(e){t=null}return{type:"image",value:e.src,color:t}}if(t.backgroundImage&&"none"!==t.backgroundImage)return this.getBackgroundInfo(t.backgroundImage);if(t.backgroundColor&&"transparent"!==t.backgroundColor&&"rgba(0, 0, 0, 0)"!==t.backgroundColor)return{type:"color",value:t.backgroundColor,color:t.backgroundColor}}catch(e){return null}return null}getDominantColorFromGradient(e,t=100,n=100){const i=document.createElement("canvas");i.width=t,i.height=n;const a=i.getContext("2d"),o=e.startsWith("linear-gradient"),s=e.startsWith("radial-gradient");if(!o&&!s)return"rgb(0, 0, 0)";const r=e.match(/rgba?\([^)]+\)/g);if(!r||r.length<2)return"rgb(0, 0, 0)";let l;if(o){const i=e.match(/linear-gradient\((\d+)(deg)?/),o=(i?parseFloat(i[1]):180)*Math.PI/180,s=t/2-Math.cos(o)*t/2,r=n/2-Math.sin(o)*n/2,c=t/2+Math.cos(o)*t/2,d=n/2+Math.sin(o)*n/2;l=a.createLinearGradient(s,r,c,d)}else if(s){const e=Math.max(t,n)/2;l=a.createRadialGradient(t/2,n/2,0,t/2,n/2,e)}const c=1/(r.length-1);r.forEach((e,t)=>l.addColorStop(t*c,e)),a.fillStyle=l,a.fillRect(0,0,t,n);const d=a.getImageData(0,0,t,n).data;let u=0,h=0,p=0;const m=t*n;for(let e=0;e<d.length;e+=4)u+=d[e],h+=d[e+1],p+=d[e+2];return`rgb(${Math.round(u/m)}, ${Math.round(h/m)}, ${Math.round(p/m)})`}getDominantColorFromImage(e,t=100,n=100){return new Promise((i,a)=>{const o="string"==typeof e?new Image:e;"string"==typeof e&&(o.crossOrigin="anonymous",o.src=e),o.onload=()=>{try{const e=document.createElement("canvas");e.width=t,e.height=n;const a=e.getContext("2d");a.drawImage(o,0,0,t,n);const s=a.getImageData(0,0,t,n).data;let r=0,l=0,c=0;const d=t*n;for(let e=0;e<s.length;e+=4)r+=s[e],l+=s[e+1],c+=s[e+2];i(`rgb(${Math.round(r/d)}, ${Math.round(l/d)}, ${Math.round(c/d)})`)}catch(e){a(e)}},o.onerror=a})}remove(){const e=document.querySelectorAll(`[${this.dataAttribute}]`);for(let t=0;t<e.length;t++){const n=e[t],i=this.parseColorMarker(n.getAttribute(this.dataAttribute));i&&i.value?n.style.setProperty("color",i.value,i.priority||""):n.style.removeProperty("color"),n.removeAttribute(this.dataAttribute)}}}const p=e=>h.getInstance(e);class m{static instance=null;constructor(){if(m.instance)return m.instance;this.audioContexts=[],this.isApplied=!1,this._hooked=!1,this.originalMedia=new WeakMap,this.observer=null,this.onPlay=null,m.instance=this}static getInstance(){return m.instance||(m.instance=new m),m.instance}apply(){this.isApplied||(this.muteAllMedia(),this.hookAudioContext(),this.watchForNewMedia(),this.isApplied=!0)}remove(){this.isApplied&&(this.stopWatching(),this.unmuteAllMedia(),this.restoreAudioContexts(),this.isApplied=!1)}muteAllMedia(){document.querySelectorAll("video, audio").forEach(e=>this.muteMediaElement(e)),window.mejs&&mejs.players&&Object.values(mejs.players).forEach(e=>{try{e.setMuted(!0)}catch{}}),document.querySelectorAll("iframe").forEach(e=>{const t=e.src||"";try{if(t.includes("youtube.com")||t.includes("youtu.be")){if(t.includes("enablejsapi=1"))e.contentWindow?.postMessage(JSON.stringify({event:"command",func:"mute",args:[]}),"*");else{const n=t.includes("?")?"&":"?";e.src=t+n+"enablejsapi=1",e.addEventListener("load",()=>{e.contentWindow?.postMessage(JSON.stringify({event:"command",func:"mute",args:[]}),"*")},{once:!0})}e.dataset.mutedApplied="true"}else if(t.includes("vimeo.com"))e.contentWindow?.postMessage({method:"setVolume",value:0},"*"),e.dataset.mutedApplied="true";else if(t.includes("soundcloud.com"))e.contentWindow?.postMessage({method:"setVolume",value:0},"*"),e.dataset.mutedApplied="true";else if(t.includes("dailymotion.com")){const n=new URL(t,window.location.href);"1"!==n.searchParams.get("mute")&&(n.searchParams.set("mute","1"),e.src=n.toString()),e.dataset.mutedApplied="true"}else if(t.includes("video.wordpress.com/embed/")||t.includes("videopress.com/embed/")){const n=new URL(t,window.location.href);"1"!==n.searchParams.get("muted")&&(n.searchParams.set("muted","1"),e.src=n.toString()),e.dataset.mutedApplied="true"}else if(t.includes("embed.animoto.com")){const n=new URL(t,window.location.href);"0"!==n.searchParams.get("volume")&&(n.searchParams.set("volume","0"),e.src=n.toString()),e.dataset.mutedApplied="true"}else e.contentWindow?.postMessage({event:"mute",value:!0},"*"),e.dataset.mutedApplied="true"}catch{}}
4),this.audioContexts.forEach(e=>this.muteAudioContext(e))}muteMediaElement(e){try{this.originalMedia.has(e)||this.originalMedia.set(e,{muted:e.muted,volume:e.volume}),e.muted=!0,e.setAttribute("muted","muted"),e.volume=0}catch{}}watchForNewMedia(){this.observer||(this.observer=new MutationObserver(e=>{for(const t of e)for(const e of t.addedNodes)1===e.nodeType&&(e.matches?.("video, audio")&&this.muteMediaElement(e),e.querySelectorAll?.("video, audio").forEach(e=>this.muteMediaElement(e)))}),this.observer.observe(document.documentElement,{childList:!0,subtree:!0}),this.onPlay=e=>{const t=e.target;t instanceof HTMLMediaElement&&this.muteMediaElement(t)},document.addEventListener("play",this.onPlay,!0))}stopWatching(){this.observer?.disconnect(),this.observer=null,this.onPlay&&(document.removeEventListener("play",this.onPlay,!0),this.onPlay=null)}unmuteAllMedia(){document.querySelectorAll("video, audio").forEach(e=>{try{const t=this.originalMedia.get(e);if(!t)return;e.muted=t.muted,t.muted||e.removeAttribute("muted"),e.volume=t.volume,this.originalMedia.delete(e)}catch{}}),window.mejs&&mejs.players&&Object.values(mejs.players).forEach(e=>{try{e.media&&e.media.muted&&e.setMuted(!1)}catch{}}),document.querySelectorAll("iframe").forEach(e=>{const t=e.src||"";try{if(!e.dataset.mutedApplied)return;if(t.includes("youtube.com")||t.includes("youtu.be"))e.contentWindow?.postMessage(JSON.stringify({event:"command",func:"unMute",args:[]}),"*");else if(t.includes("vimeo.com"))e.contentWindow?.postMessage({method:"setVolume",value:1},"*");else if(t.includes("soundcloud.com"))e.contentWindow?.postMessage({method:"setVolume",value:1},"*");else if(t.includes("dailymotion.com")){const n=new URL(t,window.location.href);"1"===n.searchParams.get("mute")&&(n.searchParams.delete("mute"),e.src=n.toString())}else if(t.includes("video.wordpress.com/embed/")||t.includes("videopress.com/embed/")){const n=new URL(t,window.location.href);"1"===n.searchParams.get("muted")&&(n.searchParams.delete("muted"),e.src=n.toString())}else if(t.includes("embed.animoto.com")){const n=new URL(t,window.location.href);"0"===n.searchParams.get("volume")&&(n.searchParams.delete("volume"),e.src=n.toString())}delete e.dataset.mutedApplied}catch{}})}hookAudioContext(){if(this._hooked)return;this._hooked=!0;const e=window.AudioContext||window.webkitAudioContext;if(!e)return;const t=this;window.AudioContext=function(...n){const i=new e(...n);return t.audioContexts.push(i),t.isApplied&&t.muteAudioContext(i),i},window.webkitAudioContext=window.AudioContext}muteAudioContext(e){try{if(e._muteGainNode)return;const t=e.createGain();t.gain.value=0,t.connect(e.destination),e._muteGainNode=t}catch(e){console.warn("[MuteSounds] AudioContext mute failed:",e)}}
4restoreAudioContexts(){this.audioContexts.forEach(e=>{try{e._muteGainNode&&(e._muteGainNode.disconnect(),e._muteGainNode=null)}catch{}})}}const b=()=>m.getInstance();class g{static instance=null;constructor(){if(g.instance)return g.instance;g.instance=this}static getInstance(){return g.instance||(g.instance=new g),g.instance}applyGrayScale(e){if(!e?.value)return;let t=document.documentElement;switch(e.value){case"low":t.style.setProperty("--wap-grayscale","33%");break;case"medium":t.style.setProperty("--wap-grayscale","66%");break;case"high":t.style.setProperty("--wap-grayscale","100%")}}applyBrightness(e){if(!e?.value)return;let t=document.documentElement;switch(e.value){case"low":t.style.setProperty("--wap-brightness","50%");break;case"medium":t.style.setProperty("--wap-brightness","80%");break;case"high":t.style.setProperty("--wap-brightness","110%")}}removeGrayScale(){document.documentElement.style.removeProperty("--wap-grayscale")}removeBrightness(){document.documentElement.style.removeProperty("--wap-brightness")}}const y=()=>g.getInstance(),f=()=>(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M18.6625 4.21289C18.955 3.9291 19.4109 3.92903 19.6948 4.21289V4.2041C19.9784 4.49654 19.9784 4.95248 19.6948 5.23633L5.13812 19.793C4.8456 20.0765 4.38107 20.0678 4.1059 19.7754C3.82201 19.4829 3.83098 19.0185 4.12347 18.7432L6.11957 16.7471C5.50876 16.3857 4.9229 15.9817 4.36371 15.543C3.17673 14.6312 2.10189 13.59 1.1557 12.4375C0.949231 12.1794 0.949231 11.8087 1.1557 11.542C1.35859 11.2948 6.00197 5.45151 11.9086 5.45996C12.4764 5.45996 13.036 5.512 13.5952 5.61523C14.55 5.7959 15.4707 6.10487 16.3481 6.52637L18.6625 4.21289ZM18.4213 8.57422C18.6708 8.25607 19.1265 8.19602 19.4448 8.44531C20.6233 9.35717 21.7075 10.3981 22.6537 11.5508V11.5596C22.8602 11.8176 22.8602 12.1874 22.6537 12.4541C22.4559 12.695 17.81 18.5449 11.8998 18.5449C11.3408 18.5449 10.7813 18.4938 10.2309 18.3906C9.87838 18.3388 9.62054 18.0284 9.62054 17.6758C9.6208 17.2718 9.96458 16.9533 10.3686 16.9531C10.403 16.9531 10.4465 16.9619 10.4809 16.9619C10.9539 17.0565 11.4268 17.0996 11.8998 17.0996C16.2013 17.0996 19.9439 13.3231 21.1225 12.0068C20.3397 11.1294 19.4793 10.3203 18.5502 9.59766C18.2322 9.34812 18.1719 8.89243 18.4213 8.57422ZM11.8998 6.90527C7.59882 6.90551 3.85695 10.6816 2.67816 11.998C3.46102 12.8755 4.32132 13.6846 5.25043 14.4072C5.86112 14.8803 6.50629 15.3188 7.17719 15.6973L8.8725 14.0029C8.07243 12.7899 8.07244 11.2071 8.8725 9.99414C9.9821 8.31684 12.2351 7.85183 13.9125 8.96094L15.2465 7.62793C14.6273 7.36132 13.9908 7.17199 13.3286 7.04297C12.8554 6.94834 12.3816 6.90527 11.8998 6.90527ZM12.8295 10.0371C12.0037 9.65859 11.0232 9.8222 10.3608 10.4502C9.95654 10.863 9.72417 11.413 9.72406 11.9893C9.72406 12.3162 9.80126 12.6352 9.9389 12.9277L12.8295 10.0371Z",fill:"#161616"})}),_=()=>(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 18V5.59608H7.3455C11.4285 5.59608 14.313 8.15915 14.313 11.7888C14.313 15.4177 11.4285 18 7.3455 18H3ZM4.461 15.4532H7.3455C10.5668 15.4532 12.8333 13.7617 12.8333 11.1573C12.8333 8.56835 10.5668 6.87761 7.3455 6.87761H4.461V15.4532ZM18.4635 7.38358L18.471 8.66511H20.8785V9.875H18.4777L18.762 18H16.641L16.968 9.875H15.513V8.66511H17.049L17.094 7.38358C17.1427 5.99273 18.0607 5 19.3185 5C19.914 5 20.5065 5.21642 21 5.59608L20.4225 6.58881C20.2132 6.37239 19.8517 6.20989 19.446 6.20989C18.9165 6.20989 18.4605 6.69739 18.4635 7.38358Z",fill:"#161616"})}),v=window?.wapHelpers?.defaultProfiles||[],w={motor:{keyboardNavigation:"enable",skipLinks:"enable",focusIndicators:"enable"},"color-blind":{smartContrast:"enable",grayscale:"medium"},"low-vision":{focusIndicators:"enable",brightness:"high"},cognitive:{smartContrast:"enable"},seizure:{smartContrast:"enable",brightness:"medium"}},k=[...v.map(e=>{const t=w[e?.id];return t?{...e,features:{...e.features||{},...t}}:e}),{id:"blind",title:{rendered:(0,e.__)("Blind","website-accessibility-pro"),raw:(0,e.__)("Blind","website-accessibility-pro")},slug:"blind",icon:(0,l.jsx)(f,{}),features:{screenReader:"normal"}},{id:"dyslexia",title:{rendered:(0,e.__)("Dyslexia","website-accessibility-pro"),raw:(0,e.__)("Dyslexia","website-accessibility-pro")},slug:"dyslexia",icon:(0,l.jsx)(_,{}),features:{dyslexiaFriendly:"enable"}}];class C{static instance=null;constructor(){if(C.instance)return C.instance;this._enabled=!1,this._boundKeydown=this._handleKeydown.bind(this),this._boundFocusin=this._handleFocusin.bind(this),this._lastOutlined=null,this._tempTabindexSet=new Set,this.outlineClass="kbd-focus-outline",C.instance=this}static getInstance(){return C.instance||(C.instance=new C),C.instance}apply(){this._enabled||(this._enabled=!0,this._injectStyles(),document.addEventListener("keydown",this._boundKeydown,!0),document.addEventListener("focusin",this._boundFocusin,!0))}remove(){if(this._enabled){this._enabled=!1,document.removeEventListener("keydown",this._boundKeydown,!0),document.removeEventListener("focusin",this._boundFocusin,!0),this._lastOutlined&&this._lastOutlined.classList.remove(this.outlineClass),this._lastOutlined=null;for(const e of this._tempTabindexSet)"-1"===e.getAttribute("tabindex")&&e.removeAttribute("tabindex");this._tempTabindexSet.clear(),this._styleEl&&this._styleEl.parentNode&&(this._styleEl.parentNode.removeChild(this._styleEl),this._styleEl=null)}}_injectStyles(){if(this._styleEl)return;const e=document.createElement("style");e.textContent=`\n        .${this.outlineClass} {\n            outline: 3px solid #005fcc !important;\n            outline-offset: 3px;\n            border-radius: 4px;\n            box-shadow: 0 0 0 3px rgba(0,0,0,0.06) !important;\n        }`,document.head.appendChild(e),this._styleEl=e}_handleFocusin(e){const t=e.target;t&&t.classList&&(this._lastOutlined&&this._lastOutlined!==t&&this._lastOutlined.classList.remove(this.outlineClass),t.classList.add(this.outlineClass),this._lastOutlined=t)}_handleKeydown(e){if(!this._enabled)return;const t=document.activeElement;if(this._isTypingTarget(t))return;const n=(e.key||"").toLowerCase();if(!["h","g","b","m","f"].includes(n))return;e.preventDefault(),e.stopPropagation();const i=e.shiftKey;this._focusNext(n,i)}_getCategoryElements(e){return"h"===e?Array.from(document.querySelectorAll("h1,h2,h3,h4,h5,h6")):"g"===e?Array.from(document.querySelectorAll('img, [role="img"], svg[role="img"],svg image, video')):"b"===e?Array.from(document.querySelectorAll('button, [role="button"], input[type="button"], input[type="submit"], input[type="reset"]')):"m"===e?Array.from(document.querySelectorAll('nav, [role="navigation"]')):"f"===e?Array.from(document.querySelectorAll('form, [role="form"]')):[]}
4_focusNext(e,t){const n=this._getCategoryElements(e).filter(e=>this._isVisible(e));if(!n.length)return;const i=document.activeElement;let a,o=n.indexOf(i);a=t?-1===o?n.length-1:(o-1+n.length)%n.length:-1===o?0:(o+1)%n.length,this._safeFocus(n[a])}_safeFocus(e){if(e){this._isFocusable(e)||(e.setAttribute("tabindex","-1"),this._tempTabindexSet.add(e));try{e.focus(),this._lastOutlined&&this._lastOutlined!==e&&this._lastOutlined.classList.remove(this.outlineClass),e.classList.add(this.outlineClass),this._lastOutlined=e}catch(e){}}}_isFocusable(e){if(!e)return!1;const t=e.tagName?.toLowerCase();if("a"===t&&e.hasAttribute("href"))return!0;if(["input","select","textarea","button"].includes(t))return!e.disabled;const n=e.getAttribute?.("role");return!(!n||!["button","link","textbox","searchbox"].includes(n))||!!e.hasAttribute("tabindex")}_isTypingTarget(e){if(!e)return!1;const t=e.tagName?.toLowerCase();return"input"===t||"textarea"===t||!!e.isContentEditable}_isVisible(e){if(!e||1!==e.nodeType)return!1;try{let t=e;for(;t&&t!==document.body;){const e=window.getComputedStyle(t);if("none"===e.display)return!1;if("hidden"===e.visibility||"collapse"===e.visibility)return!1;if("0"===e.opacity)return!1;t=t.parentElement}const n=e.getBoundingClientRect();return 0!==n.width||0!==n.height}catch{return!1}}}const x=()=>C.getInstance();class E{static instance=null;static MIN_WIDTH=320;static MAX_WIDTH=860;static DEFAULT_WIDTH=560;static HINT_DEFAULT="Focus a text field to type · Drag the top bar to move · Pull the corner to resize · × to minimize";static HINT_NO_FIELD="Please click a text field first, then type with this keyboard.";constructor(){if(E.instance)return E.instance;this._enabled=!1,this._root=null,this._styleEl=null,this._hintEl=null,this._hintTimer=null,this._shift=!1,this._caps=!1,this._lastTarget=null,this._collapsed=!1,this._pos=null,this._width=E.DEFAULT_WIDTH,this._dragging=!1,this._resizing=!1,this._dragMoved=!1,this._dragOffset={x:0,y:0},this._resizeStart={x:0,width:0},this._boundFocusIn=this._handleFocusIn.bind(this),this._boundKeyClick=this._handleKeyClick.bind(this),this._boundDragStart=this._handleDragStart.bind(this),this._boundDragMove=this._handleDragMove.bind(this),this._boundDragEnd=this._handleDragEnd.bind(this),this._boundResizeStart=this._handleResizeStart.bind(this),this._boundResizeMove=this._handleResizeMove.bind(this),this._boundResizeEnd=this._handleResizeEnd.bind(this),E.instance=this}static getInstance(){return E.instance||(E.instance=new E),E.instance}apply(){this._enabled||(this._enabled=!0,this._injectStyles(),this._render(),document.addEventListener("focusin",this._boundFocusIn,!0))}remove(){this._enabled&&(this._enabled=!1,document.removeEventListener("focusin",this._boundFocusIn,!0),this._unbindDragListeners(),this._unbindResizeListeners(),this._hintTimer&&(clearTimeout(this._hintTimer),this._hintTimer=null),this._destroy(),this._shift=!1,this._caps=!1,this._lastTarget=null,this._collapsed=!1,this._pos=null,this._width=E.DEFAULT_WIDTH,this._dragging=!1,this._resizing=!1,this._hintEl=null)}_handleFocusIn(e){const t=e.target;t&&!this._root?.contains(t)&&this._isEditable(t)&&(this._lastTarget=t,this._clearNoFieldMessage())}_isEditable(e){if(!(e instanceof HTMLElement))return!1;if(e.isContentEditable)return!0;const t=e.tagName;if("TEXTAREA"===t)return!e.disabled&&!e.readOnly;if("INPUT"===t){const t=(e.type||"text").toLowerCase();return["text","search","email","url","tel","password","number",""].includes(t)&&!e.disabled&&!e.readOnly}return!1}_injectStyles(){if(this._styleEl)return;const e=document.createElement("style");e.id="one-accessibility-virtual-keyboard-style",e.textContent='\n.oa-virtual-keyboard,\n.oa-virtual-keyboard *,\n.oa-virtual-keyboard *::before,\n.oa-virtual-keyboard *::after {\n\tbox-sizing: border-box !important;\n}\n.oa-virtual-keyboard {\n\t--oa-vk-width: 560px;\n\t--oa-vk-gap: calc(var(--oa-vk-width) * 0.01);\n\t--oa-vk-key-h: clamp(32px, calc(var(--oa-vk-width) * 0.072), 46px);\n\t--oa-vk-font: clamp(12px, calc(var(--oa-vk-width) * 0.026), 15px);
4\n\t--oa-vk-pad: clamp(8px, calc(var(--oa-vk-width) * 0.02), 14px);\n\t--oa-vk-radius: 12px;\n\t--oa-vk-key-radius: 8px;\n\t--oa-vk-bg: #f4f4f5;\n\t--oa-vk-key: #ffffff;\n\t--oa-vk-key-special: #e4e4e7;\n\t--oa-vk-key-active: #18181b;\n\t--oa-vk-border: rgba(24, 24, 27, 0.08);\n\t--oa-vk-text: #18181b;\n\t--oa-vk-muted: #71717a;\n\tposition: fixed;\n\tleft: 50%;\n\tbottom: 24px;\n\ttransform: translateX(-50%);\n\tz-index: 1000005;\n\twidth: min(var(--oa-vk-width), calc(100vw - 16px));\n\tpadding: 0;\n\tmargin: 0;\n\tborder-radius: var(--oa-vk-radius);\n\tbackground: var(--oa-vk-bg);\n\tborder: 1px solid var(--oa-vk-border);\n\tbox-shadow:\n\t\t0 1px 2px rgba(24, 24, 27, 0.04),\n\t\t0 12px 32px rgba(24, 24, 27, 0.12);\n\tfont-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;\n\tcolor: var(--oa-vk-text);\n\tuser-select: none;\n\toverflow: hidden;\n\tisolation: isolate;\n}\n.oa-virtual-keyboard.is-positioned {\n\tleft: 0;\n\tbottom: auto;\n\ttransform: none;\n}\n.oa-virtual-keyboard.is-dragging,\n.oa-virtual-keyboard.is-resizing {\n\topacity: 0.98;\n}\n.oa-virtual-keyboard__bar {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tgap: 8px;\n\tpadding: 8px 10px 6px;\n\tmargin: 0;\n\tcursor: grab;\n\ttouch-action: none;\n\tposition: relative;\n\twidth: 100%;\n\tmin-height: 0;\n}\n.oa-virtual-keyboard.is-dragging .oa-virtual-keyboard__bar {\n\tcursor: grabbing;\n}\n.oa-virtual-keyboard__title {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tgap: 6px;\n\tmin-width: 0;\n\tflex: 1 1 auto;\n\tfont-size: 11px;\n\tfont-weight: 500;\n\tletter-spacing: 0.01em;\n\tcolor: var(--oa-vk-muted);\n\tpointer-events: none;\n}\n.oa-virtual-keyboard__grip {\n\tdisplay: inline-flex;\n\tflex-direction: column;\n\tgap: 2px;\n\topacity: 0.45;\n\tflex: 0 0 auto;\n}\n.oa-virtual-keyboard__grip i {\n\tdisplay: block;\n\twidth: 12px;\n\theight: 1.5px;\n\tborder-radius: 1px;\n\tbackground: currentColor;\n}\n/* Hard reset so theme button styles cannot shift/clip the close control */\n.oa-virtual-keyboard button.oa-virtual-keyboard__close {\n\tappearance: none !important;\n\t-webkit-appearance: none !important;\n\tdisplay: inline-flex !important;\n\talign-items: center !important;\n\tjustify-content: center !important;\n\tflex: 0 0 auto !important;\n\tposition: relative !important;\n\tfloat: none !important;\n\tinset: auto !important;\n\ttop: auto !important;\n\tright: auto !important;\n\tbottom: auto !important;\n\tleft: auto !important;\n\tmargin: 0 0 0 auto !important;\n\tpadding: 0 !important;\n\tborder: 0 !important;\n\tborder-radius: 6px !important;\n\twidth: 28px !important;\n\theight: 28px !important;\n\tmin-width: 28px !important;\n\tmin-height: 28px !important;\n\tmax-width: 28px !important;\n\tmax-height: 28px !important;\n\tbackground: transparent !important;\n\tbackground-image: none !important;\n\tcolor: var(--oa-vk-muted) !important;\n\tfont: 400 16px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;\n\tletter-spacing: normal !important;\n\ttext-align: center !important;\n\ttext-indent: 0 !important;\n\ttext-transform: none !important;\n\ttext-decoration: none !important;\n\ttext-shadow: none !important;\n\tbox-shadow: none !important;\n\toutline: none !important;\n\tcursor: pointer !important;\n\tvertical-align: middle !important;\n\ttransform: none !important;\n\ttranslate: none !important;\n\tscale: none !important;\n\trotate: none !important;\n\topacity: 1 !important;\n\tz-index: 2 !important;\n}\n.oa-virtual-keyboard button.oa-virtual-keyboard__close svg {\n\tdisplay: block !important;\n\twidth: 14px !important;\n\theight: 14px !important;\n\tflex: 0 0 auto !important;\n\tpointer-events: none !important;\n}\n.oa-virtual-keyboard button.oa-virtual-keyboard__close:hover {\n\tbackground: rgba(24, 24, 27, 0.06) !important;\n\tcolor: var(--oa-vk-text) !important;\n\toutline: none !important;\n\tbox-shadow: none !important;\n}\n.oa-virtual-keyboard button.oa-virtual-keyboard__close:focus,\n.oa-virtual-keyboard button.oa-virtual-keyboard__close:focus-visible {\n\tbackground: rgba(24, 24, 27, 0.06) !important;\n\tcolor: var(--oa-vk-text) !important;\n\toutline: none !important;\n\t/* inset ring avoids overflow:hidden clipping theme/focus outlines */\n\tbox-shadow: inset 0 0 0 2px #3b82f6 !important;\n}\n.oa-virtual-keyboard__body {\n\tpadding: 2px var(--oa-vk-pad) var(--oa-vk-pad);\n}\n.oa-virtual-keyboard__rows {\n\tdisplay: grid;\n\tgap: var(--oa-vk-gap);\n}\n.oa-virtual-keyboard__row {\n\tdisplay: flex;\n\tgap: var(--oa-vk-gap);\n}\n.oa-virtual-keyboard button.oa-virtual-keyboard__key {\n\tappearance: none !important;\n\t-webkit-appearance: none !important;\n\tborder: 0 !important;\n\tflex: 1 1 0 !important;\n\theight: var(--oa-vk-key-h) !important;\n\tmin-width: 0 !important;\n\tmin-height: 0 !important;\n\tmargin: 0 !important;\n\tpadding: 0 1px !important;\n\tborder-radius: var(--oa-vk-key-radius) !important;\n\tbackground: var(--oa-vk-key) !important;\n\tbackground-image: none !important;\n\tcolor: var(--oa-vk-text) !important;\n\tfont-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;\n\tfont-size: var(--oa-vk-font) !important;\n\tfont-weight: 500 !important;\n\tfont-style: normal !important;\n\tline-height: 1 !important;\n\tletter-spacing: normal !important;\n\ttext-align: center !important;\n\ttext-decoration: none !important;\n\ttext-shadow: none !important;\n\ttext-transform: none !important;\n\tcursor: pointer !important;\n\tbox-shadow: 0 1px 0 rgba(24, 24, 27, 0.08) !important;\n\toutline: none !important;\n\ttransition: background 0.1s ease, transform 0.06s ease, color 0.1s ease !important;\n\toverflow: hidden !important;\n\twhite-space: nowrap !important;\n\ttext-overflow: clip !important;\n\topacity: 1 !important;\n}\n.oa-virtual-keyboard button.oa-virtual-keyboard__key:hover,\n.oa-virtual-keyboard button.oa-virtual-keyboard__key:focus,\n.oa-virtual-keyboard button.oa-virtual-keyboard__key:focus-visible {\n\tbackground: #fafafa !important;\n\tbackground-image: none !important;\n\tcolor: var(--oa-vk-text) !important;\n\toutline: none !important;\n\tbox-shadow: inset 0 0 0 2px #3b82f6, 0 1px 0 rgba(24, 24, 27, 0.08) !important;\n\topacity: 1 !important;\n\ttext-shadow: none !important;\n}\n.oa-virtual-keyboard button.oa-virtual-keyboard__key:active {\n\ttransform: scale(0.97) !important;\n\tbackground: #f4f4f5 !important;\n\tcolor: var(--oa-vk-text) !important;\n}\n.oa-virtual-keyboard button.oa-virtual-keyboard__key.is-special {\n\tflex: 1.45 1 0 !important;\n\tbackground: var(--oa-vk-key-special) !important;\n\tfont-weight: 550 !important;
4\n\tfont-size: clamp(8px, calc(var(--oa-vk-width) * 0.017), 11px) !important;\n\tletter-spacing: 0 !important;\n\ttext-transform: lowercase !important;\n\tcolor: #3f3f46 !important;\n\tpadding: 0 !important;\n}\n.oa-virtual-keyboard button.oa-virtual-keyboard__key.is-special:hover,\n.oa-virtual-keyboard button.oa-virtual-keyboard__key.is-special:focus,\n.oa-virtual-keyboard button.oa-virtual-keyboard__key.is-special:focus-visible {\n\tbackground: #dcdce0 !important;\n\tcolor: #3f3f46 !important;\n}\n.oa-virtual-keyboard button.oa-virtual-keyboard__key.is-active {\n\tbackground: var(--oa-vk-key-active) !important;\n\tcolor: #fafafa !important;\n\tbox-shadow: none !important;\n}\n.oa-virtual-keyboard button.oa-virtual-keyboard__key.is-active:hover,\n.oa-virtual-keyboard button.oa-virtual-keyboard__key.is-active:focus,\n.oa-virtual-keyboard button.oa-virtual-keyboard__key.is-active:focus-visible {\n\tbackground: var(--oa-vk-key-active) !important;\n\tcolor: #fafafa !important;\n}\n.oa-virtual-keyboard button.oa-virtual-keyboard__key--space {\n\tflex: 4 1 0 !important;\n\tfont-size: clamp(9px, calc(var(--oa-vk-width) * 0.018), 12px) !important;\n\tfont-weight: 500 !important;\n\tletter-spacing: 0.04em !important;\n\tcolor: var(--oa-vk-muted) !important;\n\ttext-transform: lowercase !important;\n}\n.oa-virtual-keyboard button.oa-virtual-keyboard__key--space:hover,\n.oa-virtual-keyboard button.oa-virtual-keyboard__key--space:focus,\n.oa-virtual-keyboard button.oa-virtual-keyboard__key--space:focus-visible {\n\tcolor: var(--oa-vk-muted) !important;\n}\n.oa-virtual-keyboard.is-compact button.oa-virtual-keyboard__key.is-special {\n\tfont-size: clamp(7px, calc(var(--oa-vk-width) * 0.015), 9px) !important;\n}\n.oa-virtual-keyboard__hint {\n\tmargin-top: calc(var(--oa-vk-gap) + 4px);\n\tpadding: 6px 8px;\n\tborder-radius: 8px;\n\tbackground: rgba(24, 24, 27, 0.04);\n\tfont-size: clamp(10px, calc(var(--oa-vk-width) * 0.02), 11px);\n\tline-height: 1.4;\n\tcolor: var(--oa-vk-muted);\n\ttext-align: center;\n\ttransition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;\n\tborder: 1px solid transparent;\n}\n.oa-virtual-keyboard__hint.is-warning {\n\tbackground: #fff7ed;\n\tborder-color: #fdba74;\n\tcolor: #c2410c;\n\tfont-weight: 550;\n}\n.oa-virtual-keyboard__resize {\n\tposition: absolute;\n\tright: 2px;\n\tbottom: 2px;\n\twidth: 18px;\n\theight: 18px;\n\tcursor: nwse-resize;\n\ttouch-action: none;\n\tborder: 0;\n\tpadding: 0;\n\tbackground: transparent;\n\tappearance: none;\n}\n.oa-virtual-keyboard__resize::before {\n\tcontent: "";\n\tposition: absolute;\n\tright: 4px;\n\tbottom: 4px;\n\twidth: 8px;\n\theight: 8px;\n\tborder-right: 1.5px solid #a1a1aa;\n\tborder-bottom: 1.5px solid #a1a1aa;\n\tborder-radius: 0 0 2px 0;\n\topacity: 0.7;\n}\n.oa-virtual-keyboard__resize:hover::before,\n.oa-virtual-keyboard__resize:focus-visible::before {\n\tborder-color: #3b82f6;\n\topacity: 1;\n}\n.oa-virtual-keyboard.is-collapsed {\n\twidth: auto;\n\t--oa-vk-width: auto;\n\tborder-radius: 999px;\n\toverflow: visible;\n}\n.oa-virtual-keyboard.is-collapsed .oa-virtual-keyboard__bar,\n.oa-virtual-keyboard.is-collapsed .oa-virtual-keyboard__body,\n.oa-virtual-keyboard.is-collapsed .oa-virtual-keyboard__resize {\n\tdisplay: none;\n}\n.oa-virtual-keyboard__reopen {\n\tdisplay: none;\n\tappearance: none;\n\tborder: 0;
4\n\tbackground: var(--wap-header-bg, #2e6cf6);\n\tcolor: var(--wap-header-color, #ffffff);\n\tborder-radius: 999px;\n\tpadding: 10px 14px;\n\tfont-size: 12px;\n\tfont-weight: 500;\n\tcursor: grab;\n\ttouch-action: none;\n\tbox-shadow: 0 8px 20px color-mix(in srgb, var(--wap-header-bg, #2e6cf6) 35%, transparent);\n\talign-items: center;\n\tgap: 8px;\n}\n.oa-virtual-keyboard__reopen-icon {\n\tdisplay: block;\n\twidth: 16px;\n\theight: 16px;\n\tflex: 0 0 auto;\n}\n.oa-virtual-keyboard.is-collapsed .oa-virtual-keyboard__reopen {\n\tdisplay: inline-flex;\n}\n.oa-virtual-keyboard__reopen:hover,\n.oa-virtual-keyboard__reopen:focus-visible {\n\toutline: 2px solid #3b82f6;\n\toutline-offset: 2px;\n}\n',document.head.appendChild(e),this._styleEl=e}_layout(){const e=this._shift||this._caps,t=t=>e?t.toUpperCase():t.toLowerCase();return[["1","2","3","4","5","6","7","8","9","0",{id:"backspace",label:"del",labelFull:"delete",special:!0}],[t("q"),t("w"),t("e"),t("r"),t("t"),t("y"),t("u"),t("i"),t("o"),t("p")],[t("a"),t("s"),t("d"),t("f"),t("g"),t("h"),t("j"),t("k"),t("l"),{id:"enter",label:"↵",labelFull:"enter",special:!0}],[{id:"shift",label:"⇧",labelFull:"shift",special:!0,active:this._shift},t("z"),t("x"),t("c"),t("v"),t("b"),t("n"),t("m"),{id:"caps",label:"caps",labelFull:"caps",special:!0,active:this._caps}],[{id:"space",label:"space",space:!0},{id:".",label:"."},{id:",",label:","},{id:"?",label:"?"},{id:"@",label:"@"}]]}_render(){this._destroyRootOnly();const e=document.createElement("div");e.className="oa-virtual-keyboard",e.setAttribute("role","group"),e.setAttribute("aria-label","Virtual keyboard"),e.setAttribute("data-font-manipulator-skip","true");const t=document.createElement("div");t.className="oa-virtual-keyboard__bar",t.setAttribute("aria-label","Drag to move keyboard");const n=document.createElement("div");n.className="oa-virtual-keyboard__title";const i=document.createElement("span");i.className="oa-virtual-keyboard__grip",i.setAttribute("aria-hidden","true"),i.appendChild(document.createElement("i")),i.appendChild(document.createElement("i")),i.appendChild(document.createElement("i"));const a=document.createElement("span");a.textContent="Keyboard",n.appendChild(i),n.appendChild(a);const o=document.createElement("button");o.type="button",o.className="oa-virtual-keyboard__close",o.setAttribute("aria-label","Minimize virtual keyboard"),o.innerHTML='<svg viewBox="0 0 24 24" width="14" height="14" aria-hidden="true" focusable="false"><path d="M6 6l12 12M18 6L6 18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>',o.addEventListener("mousedown",e=>e.preventDefault()),o.addEventListener("click",e=>{e.stopPropagation(),this._collapse()}),t.appendChild(n),t.appendChild(o),t.addEventListener("mousedown",this._boundDragStart),t.addEventListener("touchstart",this._boundDragStart,{passive:!1}),e.appendChild(t);const s=document.createElement("div");s.className="oa-virtual-keyboard__body";const r=document.createElement("div");r.className="oa-virtual-keyboard__rows",this._layout().forEach(e=>{const t=document.createElement("div");t.className="oa-virtual-keyboard__row",e.forEach(e=>{const n="string"==typeof e?{id:e,label:e}:e,i=document.createElement("button");i.type="button",i.className="oa-virtual-keyboard__key",n.space&&(i.classList.add("oa-virtual-keyboard__key--space"),i.setAttribute("aria-label","Space")),n.special&&i.classList.add("is-special"),n.active&&i.classList.add("is-active"),i.dataset.keyId=n.id;const a=this._width<460?n.label:n.labelFull||n.label;i.textContent=a,(n.labelFull||n.space)&&(i.setAttribute("aria-label",n.labelFull||n.label||"Space"),i.title=n.labelFull||n.label||"Space"),i.addEventListener("mousedown",e=>e.preventDefault()),i.addEventListener("click",this._boundKeyClick),t.appendChild(i)}),r.appendChild(t)}),s.appendChild(r);const l=document.createElement("div");l.className="oa-virtual-keyboard__hint",l.setAttribute("role","status"),l.setAttribute("aria-live","polite"),l.textContent=E.HINT_DEFAULT,s.appendChild(l),e.appendChild(s),this._hintEl=l;const c=document.createElement("button");c.type="button",c.className="oa-virtual-keyboard__resize",c.setAttribute("aria-label","Resize keyboard"),
4c.title="Drag to resize",c.addEventListener("mousedown",this._boundResizeStart),c.addEventListener("touchstart",this._boundResizeStart,{passive:!1}),e.appendChild(c);const d=document.createElement("button");d.type="button",d.className="oa-virtual-keyboard__reopen",d.setAttribute("aria-label","Show virtual keyboard"),d.innerHTML='<svg class="oa-virtual-keyboard__reopen-icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect x="2.75" y="6.75" width="18.5" height="10.5" rx="2.25" stroke="currentColor" stroke-width="1.5"/><path d="M6 10h1.5M9.25 10H10.75M12.5 10H14M15.75 10H17.25M6 13h1.5M9.25 13h5.5M15.75 13H17.25" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg><span>Keyboard</span>',d.addEventListener("mousedown",this._boundDragStart),d.addEventListener("touchstart",this._boundDragStart,{passive:!1}),d.addEventListener("click",e=>{this._dragMoved?e.preventDefault():this._expand()}),e.appendChild(d),document.body.appendChild(e),this._root=e,this._collapsed&&e.classList.add("is-collapsed"),this._applySize(),this._applyPosition()}_applySize(){if(!this._root||this._collapsed)return;const e=Math.min(E.MAX_WIDTH,window.innerWidth-16);this._width=Math.min(Math.max(E.MIN_WIDTH,this._width),e),this._root.style.setProperty("--oa-vk-width",`${this._width}px`),this._root.classList.toggle("is-compact",this._width<460),this._syncKeyLabels()}_syncKeyLabels(){if(!this._root)return;const e=this._width<460;this._root.querySelectorAll(".oa-virtual-keyboard__key[data-key-id]").forEach(t=>{const n={backspace:{short:"del",full:"delete"},enter:{short:"↵",full:"enter"},shift:{short:"⇧",full:"shift"},caps:{short:"caps",full:"caps"},space:{short:"space",full:"space"}}[t.dataset.keyId];n&&(t.textContent=e?n.short:n.full)})}_applyPosition(){if(!this._root||!this._pos)return;const e=this._clampPosition(this._pos.left,this._pos.top);this._pos=e,this._root.classList.add("is-positioned"),this._root.style.left=`${e.left}px`,this._root.style.top=`${e.top}px`}_clampPosition(e,t){const n=this._root,i=n?.offsetWidth||this._width,a=n?.offsetHeight||200,o=Math.max(8,window.innerWidth-i-8),s=Math.max(8,window.innerHeight-a-8);return{left:Math.min(Math.max(8,e),o),top:Math.min(Math.max(8,t),s)}}_eventPoint(e){return e.touches&&e.touches[0]?{x:e.touches[0].clientX,y:e.touches[0].clientY}:e.changedTouches&&e.changedTouches[0]?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:{x:e.clientX,y:e.clientY}}_handleDragStart(e){if(!this._root||this._resizing)return;if("mousedown"===e.type&&0!==e.button)return;const t=e.target;if(t instanceof Element&&t.closest(".oa-virtual-keyboard__close"))return;if(t instanceof Element&&t.closest(".oa-virtual-keyboard__resize"))return;const n=this._eventPoint(e),i=this._root.getBoundingClientRect();this._pos||(this._pos={left:i.left,top:i.top},this._root.classList.add("is-positioned"),this._root.style.left=`${i.left}px`,this._root.style.top=`${i.top}px`),this._dragging=!0,this._dragMoved=!1,this._dragOffset={x:n.x-this._pos.left,y:n.y-this._pos.top},this._root.classList.add("is-dragging"),document.addEventListener("mousemove",this._boundDragMove),document.addEventListener("mouseup",this._boundDragEnd),document.addEventListener("touchmove",this._boundDragMove,{passive:!1}),document.addEventListener("touchend",this._boundDragEnd),document.addEventListener("touchcancel",this._boundDragEnd),e.preventDefault()}_handleDragMove(e){if(!this._dragging||!this._root||!this._pos)return;const t=this._eventPoint(e),n=this._clampPosition(t.x-this._dragOffset.x,t.y-this._dragOffset.y);(Math.abs(n.left-this._pos.left)>2||Math.abs(n.top-this._pos.top)>2)&&(this._dragMoved=!0),this._pos=n,this._root.style.left=`${n.left}px`,this._root.style.top=`${n.top}px`,e.preventDefault()}_handleDragEnd(){this._dragging&&(this._dragging=!1,this._root?.classList.remove("is-dragging"),this._unbindDragListeners())}_unbindDragListeners(){document.removeEventListener("mousemove",this._boundDragMove),document.removeEventListener("mouseup",this._boundDragEnd),document.removeEventListener("touchmove",this._boundDragMove),document.removeEventListener("touchend",this._boundDragEnd),document.removeEventListener("touchcancel",this._boundDragEnd)}_handleResizeStart(e){if(!this._root||this._collapsed)return;if("mousedown"===e.type&&0!==e.button)return;const t=this._eventPoint(e),n=this._root.getBoundingClientRect();this._pos||(this._pos={left:n.left,top:n.top},this._root.classList.add("is-positioned"),this._root.style.left=`${n.left}px`,this._root.style.top=`${n.top}px`),this._resizing=!0,this._resizeStart={x:t.x,width:this._width},this._root.classList.add("is-resizing"),document.addEventListener("mousemove",this._boundResizeMove),document.addEventListener("mouseup",this._boundResizeEnd),document.addEventListener("touchmove",this._boundResizeMove,{passive:!1}),document.addEventListener("touchend",this._boundResizeEnd),document.addEventListener("touchcancel",this._boundResizeEnd),e.preventDefault(),e.stopPropagation()}_handleResizeMove(e){if(!this._resizing||!this._root)return;const t=this._eventPoint(e).x-this._resizeStart.x,n=Math.min(E.MAX_WIDTH,window.innerWidth-16);this._width=Math.min(Math.max(E.MIN_WIDTH,this._resizeStart.width+t),n),this._applySize(),this._pos&&this._applyPosition(),e.preventDefault()}_handleResizeEnd(){this._resizing&&(this._resizing=!1,this._root?.classList.remove("is-resizing"),this._unbindResizeListeners())}_unbindResizeListeners(){document.removeEventListener("mousemove",this._boundResizeMove),document.removeEventListener("mouseup",this._boundResizeEnd),document.removeEventListener("touchmove",this._boundResizeMove),document.removeEventListener("touchend",this._boundResizeEnd),document.removeEventListener("touchcancel",this._boundResizeEnd)}_collapse(){this._collapsed=!0,this._root?.classList.add("is-collapsed"),this._pos&&requestAnimationFrame(()=>this._applyPosition())}_expand(){this._collapsed=!1,this._root?.classList.remove("is-collapsed"),this._applySize(),this._pos&&requestAnimationFrame(()=>this._applyPosition())}_handleKeyClick(e){const t=e.currentTarget?.dataset?.keyId;if(t)return"shift"===t?(this._shift=!this._shift,void this._render()):"caps"===t?(this._caps=!this._caps,void this._render()):void("backspace"!==t?"enter"!==t?"space"!==t?(this._insert(t),this._shift&&(this._shift=!1,this._render())):this._insert(" "):this._insert("\n"):this._backspace())}_getTarget(){const e=document.activeElement;return this._isEditable(e)&&!this._root?.contains(e)?(this._lastTarget=e,e):this._lastTarget&&document.contains(this._lastTarget)&&this._isEditable(this._lastTarget)?this._lastTarget:null}_showNoFieldMessage(){this._hintEl&&(this._hintEl.textContent=E.HINT_NO_FIELD,this._hintEl.classList.add("is-warning"),this._hintTimer&&clearTimeout(this._hintTimer),this._hintTimer=setTimeout(()=>{this._clearNoFieldMessage()},3200))}_clearNoFieldMessage(){this._hintTimer&&(clearTimeout(this._hintTimer),this._hintTimer=null),this._hintEl&&(this._hintEl.classList.remove("is-warning"),this._hintEl.textContent=E.HINT_DEFAULT)}_insert(e){const t=this._getTarget();if(!t)return void this._showNoFieldMessage();if(this._clearNoFieldMessage(),t.focus(),t.isContentEditable)return document.execCommand("insertText",!1,e),void t.dispatchEvent(new Event("input",{bubbles:!0}));const n=t.selectionStart??t.value.length,i=t.selectionEnd??t.value.length,a=t.value||"",o=a.slice(0,n)+e+a.slice(i),s="TEXTAREA"===t.tagName?window.HTMLTextAreaElement.prototype:window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(s,"value");r?.set?r.set.call(t,o):t.value=o;const l=n+e.length;try{t.setSelectionRange(l,l)}catch(e){}t.dispatchEvent(new Event("input",{bubbles:!0}
4)),t.dispatchEvent(new Event("change",{bubbles:!0}))}_backspace(){const e=this._getTarget();if(!e)return void this._showNoFieldMessage();if(this._clearNoFieldMessage(),e.focus(),e.isContentEditable)return document.execCommand("delete"),void e.dispatchEvent(new Event("input",{bubbles:!0}));const t=e.selectionStart??e.value.length,n=e.selectionEnd??e.value.length,i=e.value||"";let a,o;if(t!==n)a=i.slice(0,t)+i.slice(n),o=t;else{if(!(t>0))return;a=i.slice(0,t-1)+i.slice(n),o=t-1}const s="TEXTAREA"===e.tagName?window.HTMLTextAreaElement.prototype:window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(s,"value");r?.set?r.set.call(e,a):e.value=a;try{e.setSelectionRange(o,o)}catch(e){}e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0}))}_destroyRootOnly(){this._unbindDragListeners(),this._unbindResizeListeners(),this._root?.parentNode&&this._root.parentNode.removeChild(this._root),this._root=null,this._hintEl=null}_destroy(){this._destroyRootOnly(),this._styleEl?.parentNode&&this._styleEl.parentNode.removeChild(this._styleEl),this._styleEl=null}}const L=()=>E.getInstance();class A{static instance=null;constructor(){if(A.instance)return A.instance;this._enabled=!1,this._root=null,this._styleEl=null,this._createdIds=[],A.instance=this}static getInstance(){return A.instance||(A.instance=new A),A.instance}apply(){this._enabled||(this._enabled=!0,this._injectStyles(),this._render())}remove(){this._enabled&&(this._enabled=!1,this._destroy())}_injectStyles(){if(this._styleEl)return;const e=document.createElement("style");e.id="one-accessibility-skip-links-style",e.textContent='\n.oa-skip-links {\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\tz-index: 1000010;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n}\n.oa-skip-links__link {\n\tposition: absolute;\n\tleft: -9999px;\n\ttop: 0;\n\tdisplay: inline-block;\n\tpadding: 10px 16px;
4\n\tbackground: var(--wap-header-bg, #2e6cf6);\n\tcolor: var(--wap-header-color, #ffffff);\n\tfont-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;\n\tfont-size: 14px;\n\tfont-weight: 600;\n\tline-height: 1.3;\n\ttext-decoration: none;\n\tborder-radius: 0 0 8px 0;\n\tbox-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);\n\twhite-space: nowrap;\n}\n.oa-skip-links__link:focus,\n.oa-skip-links__link:focus-visible {\n\tleft: 0;\n\toutline: 3px solid #fbbf24;\n\toutline-offset: 2px;\n}\n',document.head.appendChild(e),this._styleEl=e}_findTarget(e){for(const t of e)try{const e=document.querySelector(t);if(e&&e instanceof HTMLElement&&!this._isHidden(e))return e}catch(e){}return null}_isHidden(e){const t=window.getComputedStyle(e);return"none"===t.display||"hidden"===t.visibility||"true"===e.getAttribute("aria-hidden")}_ensureId(e,t){if(e.id)return e.id;let n=t,i=1;for(;document.getElementById(n);)n=`${t}-${i}`,i+=1;return e.id=n,this._createdIds.push({el:e,id:n}),n}_render(){this._destroyRootOnly();const e=[],t=this._findTarget(["main",'[role="main"]',"#main","#main-content","#content","#primary",".site-main",".entry-content","#site-content",".wp-site-blocks > main"]);t&&e.push({id:this._ensureId(t,"oa-skip-main"),label:"Skip to main content"});const n=this._findTarget(["footer",'[role="contentinfo"]',"#colophon","#footer",".site-footer"]);if(n&&e.push({id:this._ensureId(n,"oa-skip-footer"),label:"Skip to footer"}),!e.length){const t=this._findTarget(["article",'[role="article"]',".hentry","#page",".site","body > div"]);t&&e.push({id:this._ensureId(t,"oa-skip-main"),label:"Skip to main content"})}if(!e.length)return;const i=document.createElement("nav");i.className="oa-skip-links",i.setAttribute("aria-label","Skip links"),i.setAttribute("data-font-manipulator-skip","true"),e.forEach((e,t)=>{const n=document.createElement("a");
4n.className="oa-skip-links__link",n.href=`#${e.id}`,n.textContent=e.label,n.addEventListener("click",t=>{const n=document.getElementById(e.id);n&&(t.preventDefault(),n.hasAttribute("tabindex")||n.setAttribute("tabindex","-1"),n.focus({preventScroll:!1}),n.scrollIntoView({behavior:"smooth",block:"start"}))}),t>0&&(n.style.top=44*t+"px"),i.appendChild(n)}),document.body.insertBefore(i,document.body.firstChild),this._root=i}_destroyRootOnly(){this._root?.parentNode&&this._root.parentNode.removeChild(this._root),this._root=null}_destroy(){this._destroyRootOnly(),this._createdIds.forEach(({el:e,id:t})=>{e&&e.id===t&&e.removeAttribute("id")}),this._createdIds=[],this._styleEl?.parentNode&&this._styleEl.parentNode.removeChild(this._styleEl),this._styleEl=null}}const S=()=>A.getInstance();class M{static instance=null;constructor(){if(M.instance)return M.instance;this._enabled=!1,this._styleEl=null,M.instance=this}static getInstance(){return M.instance||(M.instance=new M),M.instance}apply(){this._enabled||(this._enabled=!0,this._injectStyles(),document.documentElement.classList.add("oa-focus-indicators"))}remove(){this._enabled&&(this._enabled=!1,document.documentElement.classList.remove("oa-focus-indicators"),this._styleEl&&(this._styleEl.remove(),this._styleEl=null))}_injectStyles(){if(this._styleEl)return;const e=document.createElement("style");e.id="one-accessibility-focus-indicators-style",e.textContent="\nhtml.oa-focus-indicators :focus {\n\toutline: 3px solid #005fcc !important;\n\toutline-offset: 3px !important;\n\tbox-shadow: 0 0 0 3px rgba(0, 95, 204, 0.35) !important;\n}\n",document.head.appendChild(e),this._styleEl=e}}const T=()=>M.getInstance(),I=(window.wp.element,JSON.parse('[{"code":"af","name":"Afrikaans","flag":"🇿🇦"},{"code":"sq","name":"Albanian","flag":"🇦🇱"},{"code":"am","name":"Amharic","flag":"🇪🇹"},{"code":"ar","name":"Arabic","flag":"🇸🇦"},{"code":"hy","name":"Armenian","flag":"🇦🇲"},{"code":"az","name":"Azerbaijani","flag":"🇦🇿"},{"code":"eu","name":"Basque","flag":"🇪🇸"},{"code":"be","name":"Belarusian","flag":"🇧🇾"},{"code":"bn","name":"Bengali","flag":"🇧🇩"},{"code":"bs","name":"Bosnian","flag":"🇧🇦"},{"code":"bg","name":"Bulgarian","flag":"🇧🇬"},{"code":"ca","name":"Catalan","flag":"🇪🇸"},{"code":"ceb","name":"Cebuano","flag":"🇵🇭"},{"code":"ny","name":"Chichewa","flag":"🇲🇼"}
4,{"code":"zh-CN","name":"Chinese (Simplified)","flag":"🇨🇳"},{"code":"zh-TW","name":"Chinese (Traditional)","flag":"🇹🇼"},{"code":"co","name":"Corsican","flag":"🇫🇷"},{"code":"hr","name":"Croatian","flag":"🇭🇷"},{"code":"cs","name":"Czech","flag":"🇨🇿"},{"code":"da","name":"Danish","flag":"🇩🇰"},{"code":"nl","name":"Dutch","flag":"🇳🇱"},{"code":"en","name":"English","flag":"🇺🇸"},{"code":"eo","name":"Esperanto","flag":"🌍"},{"code":"et","name":"Estonian","flag":"🇪🇪"},{"code":"tl","name":"Filipino","flag":"🇵🇭"},{"code":"fi","name":"Finnish","flag":"🇫🇮"},{"code":"fr","name":"French","flag":"🇫🇷"},{"code":"fy","name":"Frisian","flag":"🇳🇱"},{"code":"gl","name":"Galician","flag":"🇪🇸"},{"code":"ka","name":"Georgian","flag":"🇬🇪"},{"code":"de","name":"German","flag":"🇩🇪"},{"code":"el","name":"Greek","flag":"🇬🇷"},{"code":"gu","name":"Gujarati","flag":"🇮🇳"},{"code":"ht","name":"Haitian Creole","flag":"🇭🇹"},{"code":"ha","name":"Hausa","flag":"🇳🇬"},{"code":"haw","name":"Hawaiian","flag":"🇺🇸"},{"code":"he","name":"Hebrew","flag":"🇮🇱"},{"code":"hi","name":"Hindi","flag":"🇮🇳"},{"code":"hmn","name":"Hmong","flag":"🌏"},{"code":"hu","name":"Hungarian","flag":"🇭🇺"},{"code":"is","name":"Icelandic","flag":"🇮🇸"},{"code":"ig","name":"Igbo","flag":"🇳🇬"},{"code":"id","name":"Indonesian","flag":"🇮🇩"},{"code":"ga","name":"Irish","flag":"🇮🇪"},{"code":"it","name":"Italian","flag":"🇮🇹"},{"code":"ja","name":"Japanese","flag":"🇯🇵"},{"code":"jw","name":"Javanese","flag":"🇮🇩"},{"code":"kn","name":"Kannada","flag":"🇮🇳"},{"code":"kk","name":"Kazakh","flag":"🇰🇿"},{"code":"km","name":"Khmer","flag":"🇰🇭"},{"code":"ko","name":"Korean","flag":"🇰🇷"},{"code":"ku","name":"Kurdish (Kurmanji)","flag":"🇮🇶"},{"code":"ky","name":"Kyrgyz","flag":"🇰🇬"},{"code":"lo","name":"Lao","flag":"🇱🇦"},{"code":"la","name":"Latin","flag":"🏛️"},{"code":"lv","name":"Latvian","flag":"🇱🇻"},{"code":"lt","name":"Lithuanian","flag":"🇱🇹"},{"code":"lb","name":"Luxembourgish","flag":"🇱🇺"},{"code":"mk","name":"Macedonian","flag":"🇲🇰"},{"code":"mg","name":"Malagasy","flag":"🇲🇬"},{"code":"ms","name":"Malay","flag":"🇲🇾"},{"code":"ml","name":"Malayalam","flag":"🇮🇳"},{"code":"mt","name":"Maltese","flag":"🇲🇹"},{"code":"mi","name":"Maori","flag":"🇳🇿"},{"code":"mr","name":"Marathi","flag":"🇮🇳"},{"code":"mn","name":"Mongolian","flag":"🇲🇳"},{"code":"my","name":"Myanmar (Burmese)","flag":"🇲🇲"},{"code":"ne","name":"Nepali","flag":"🇳🇵"},{"code":"no","name":"Norwegian","flag":"🇳🇴"},{"code":"ps","name":"Pashto","flag":"🇦🇫"},{"code":"fa","name":"Persian","flag":"🇮🇷"},{"code":"pl","name":"Polish","flag":"🇵🇱"},{"code":"pt","name":"Portuguese","flag":"🇵🇹"},{"code":"pa","name":"Punjabi","flag":"🇮🇳"},{"code":"ro","name":"Romanian","flag":"🇷🇴"},{"code":"ru","name":"Russian","flag":"🇷🇺"},{"code":"sm","name":"Samoan","flag":"🇼🇸"},{"code":"gd","name":"Scots Gaelic","flag":"🏴"},{"code":"sr","name":"Serbian","flag":"🇷🇸"},{"code":"st","name":"Sesotho","flag":"🇱🇸"},{"code":"sn","name":"Shona","flag":"🇿🇼"},{"code":"sd","name":"Sindhi","flag":"🇵🇰"},{"code":"si","name":"Sinhala","flag":"🇱🇰"},{"code":"sk","name":"Slovak","flag":"🇸🇰"},{"code":"sl","name":"Slovenian","flag":"🇸🇮"},{"code":"so","name":"Somali","flag":"🇸🇴"},{"code":"es","name":"Spanish","flag":"🇪🇸"},{"code":"su","name":"Sundanese","flag":"🇮🇩"},{"code":"sw","name":"Swahili","flag":"🇰🇪"},{"code":"sv","name":"Swedish","flag":"🇸🇪"},{"code":"tg","name":"Tajik","flag":"🇹🇯"},{"code":"ta","name":"Tamil","flag":"🇮🇳"},{"code":"te","name":"Telugu","flag":"🇮🇳"},{"code":"th","name":"Thai","flag":"🇹🇭"},{"code":"tr","name":"Turkish","flag":"🇹🇷"},{"code":"uk","name":"Ukrainian","flag":"🇺🇦"},{"code":"ur","name":"Urdu","flag":"🇵🇰"},{"code":"uz","name":"Uzbek","flag":"🇺🇿"},{"code":"vi","name":"Vietnamese","flag":"🇻🇳"},{"code":"cy","name":"Welsh","flag":"🏴"},{"code":"xh","name":"Xhosa","flag":"🇿🇦"},{"code":"yi","name":"Yiddish","flag":"🇮🇱"},{"code":"yo","name":"Yoruba","flag":"🇳🇬"},{"code":"zu","name":"Zulu","flag":"🇿🇦"}]')),H=e=>{if(!e)return null;const t=String(e).trim().replace("_","-"),n=I.find(e=>e.code===t);if(n)return n.code;
4const i=t.split("-")[0];return I.find(e=>e.code===i)?.code||i},R={screenReader:{apply:(e,t)=>{e&&r()?.apply(t,e)},remove:()=>r()?.destroy()},smartContrast:{apply:e=>{e&&p()?.apply()},remove:()=>p()?.remove()},muteSounds:{apply:e=>{e&&b()?.apply()},remove:()=>b()?.remove()},grayscale:{apply:e=>y()?.applyGrayScale(e),remove:()=>y()?.removeGrayScale()},brightness:{apply:e=>y()?.applyBrightness(e),remove:()=>y()?.removeBrightness()},keyboardNavigation:{apply:()=>x()?.apply(),remove:()=>x()?.remove()},virtualKeyboard:{apply:()=>L()?.apply(),remove:()=>L()?.remove()},skipLinks:{apply:()=>S()?.apply(),remove:()=>S()?.remove()},focusIndicators:{apply:()=>T()?.apply(),remove:()=>T()?.remove()}},N=["screenReader","smartContrast","dyslexiaFriendly","grayscale","brightness","muteSounds","keyboardNavigation","virtualKeyboard","skipLinks","focusIndicators"],D=["blind","dyslexia"],F={text:["dyslexiaFriendly"],color:["smartContrast","brightness","grayscale"],behavior:["muteSounds","screenReader","keyboardNavigation","virtualKeyboard","skipLinks","focusIndicators"]},j=window.wapHelpers||{};window.wapHelpers={...j,screenReader:r,smartContrast:p,muteSounds:b,filterFeatures:y,keyboardNavigation:x,virtualKeyboard:L,skipLinks:S,focusIndicators:T,clickRestoreButtonInTranslateIframe:function(){for(const e in frames)try{const t=frames[e]?.document;if(t&&!t.querySelector("body")?.classList.contains("wap-frontend")){const e=t.querySelector('button[id$=".restore"]');if(e)return e.click(),!0}}catch(e){}return!1},getTranslationLanguageData:e=>{if(!e)return null;const t=H(e);return I.find(e=>e.code===t)||null},getTranslationLanguageLabel:t=>{if(!t)return(0,e.__)("Language","website-accessibility");const n=H(t);return I.find(e=>e.code===n)?.name||t},announce:(e,t={})=>{const{key:n,attribute:i,settings:a}=t||{};return"screenReader"===n&&i?(r()?.apply(n,i),e&&r()?.speak(e),!0):!(!(e=>e?.screenReader?.currentStep>0)(a)||e&&(r()?.speak(e),0))},features:u.sort((e,t)=>e.label.localeCompare(t.label)),defaultProfiles:k.sort((e,t)=>e.title.rendered.localeCompare(t.title.rendered)),panelItems:((e=[])=>Array.isArray(e)?e.map(e=>{if("features"===e?.slug){const t=Array.isArray(e?.attributes?.widgets)?[...e.attributes.widgets]:[];return N.forEach(e=>{((e,t)=>e.some(e=>e&&Object.prototype.hasOwnProperty.call(e,t)))(t,e)||t.push({[e]:{active:!0}})}),{...e,attributes:{...e.attributes||{},widgets:t}}}if("profiles"===e?.slug){const t=Array.isArray(e?.attributes?.profiles)?[...e.attributes.profiles]:[];return D.forEach(e=>{t.includes(e)||t.push(e)}),{...e,attributes:{...e.attributes||{},profiles:t}}}return e}):e)(j.panelItems||[]),featureCategoryDefinitions:((e=[])=>Array.isArray(e)?e.map(e=>{const t=F[e?.slug];if(!t)return e;const n=[...e.keys||[]];return t.forEach(e=>{n.includes(e)||n.push(e)}),{...e,keys:n}}):e)(j.featureCategoryDefinitions||[])},(()=>{const e=window?.wapHelpers?.registerFeatureHandler;"function"==typeof e&&Object.keys(R).forEach(t=>e(t,R[t]))})()})();

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.