(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const b of r.addedNodes)b.tagName==="LINK"&&b.rel==="modulepreload"&&o(b)}).observe(document,{childList:!0,subtree:!0});function s(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(n){if(n.ep)return;n.ep=!0;const r=s(n);fetch(n.href,r)}})();const I={cdnBaseUrl:"#",flagIconBaseUrl:"https://hatscripts.github.io/circle-flags/flags/",spriteUrl:"https://cdn.isonomy.app/v5/src/Frontend/assets/svgs/sprite.svg",cssPath:"https://cdn.isonomy.app/v5/src/Frontend/assets/css/widget.min.css",checkIconSvg:` `,resetSettingsSvg:'',toastContentSvg:' Settings Reset ',getSvg:(t,e="currentColor",s=42,o=42)=>{const n={CognitiveDisability:` `,ColorBlindness:` `,SecondAccessibility:` `,TechAccessibility:` `,Accessible:` `,UniversalAccess:` `};return`
${n[t]}
`},hexToRgb:t=>{t=t.replace(/^#/,"");let e=parseInt(t.substring(0,2),16),s=parseInt(t.substring(2,4),16),o=parseInt(t.substring(4,6),16);return`${e} ${s} ${o}`},languageOptions:[{code:"EN",name:"English (EN)",flag:"gb.svg"},{code:"DE",name:"Deutsch (DE)",flag:"de.svg"},{code:"FR",name:"Français (FR)",flag:"fr.svg"},{code:"RU",name:"Русский (РУС)",flag:"ru.svg"},{code:"PL",name:"Polski (PL)",flag:"pl.svg"},{code:"HE",name:"עברית (HE)",flag:"il.svg"},{code:"DK",name:"Dansk (DK)",flag:"dk.svg"},{code:"SE",name:"Svenska (SE)",flag:"se.svg"},{code:"RO",name:"Română (RO)",flag:"ro.svg"},{code:"MK",name:"Macedonian (MK)",flag:"mk.svg"},{code:"PT",name:"Português (PT)",flag:"pt.svg"},{code:"IT",name:"Italiano (IT)",flag:"it.svg"},{code:"NL",name:"Nederlands (NL)",flag:"nl.svg"},{code:"BG",name:"Български (BG)",flag:"bg.svg"},{code:"CZ",name:"Čeština (CZ)",flag:"cz.svg"},{code:"FI",name:"Suomi (FI)",flag:"fi.svg"},{code:"LT",name:"lietuvių (LT)",flag:"lt.svg"},{code:"GR",name:"Ελληνικά (GR)",flag:"gr.svg"},{code:"LV",name:"Latviešu (LV)",flag:"lv.svg"},{code:"MT",name:"Maltese (MT)",flag:"mt.svg"},{code:"AR",name:"Arabic (AR)",flag:"sa.svg"},{code:"SQ",name:"Albania (SQ)",flag:"al.svg"},{code:"JA",name:"Japanese (JA)",flag:"jp.svg"},{code:"KO",name:"Korean (KO)",flag:"kr.svg"},{code:"SL",name:"Slovenian (SL)",flag:"si.svg"},{code:"SK",name:"Slovak (SK)",flag:"sk.svg"}],adjustTextColors:[{color:"#101820",text:"Rich Black"},{color:"#007D3C",text:"Emerald Green"},{color:"#A62639",text:"Crimson Wine"},{color:"#E17000",text:"Golden Orange"},{color:"#1C3A63",text:"Deep Cerulean"},{color:"#5A3D31",text:"Chestnut Brown"},{color:"#2471A3",text:"Bright Blue"}],adjustTitleColors:[{color:"#0A0A0A",text:"Pitch Black"},{color:"#055A29",text:"Pine Green"},{color:"#9E1030",text:"Dark Red"},{color:"#B34700",text:"Burnt Sienna"},{color:"#1E2A3A",text:"Gunmetal"},{color:"#6A4A3C",text:"Walnut Brown"},{color:"#005A8F",text:"Marine Blue"}],adjustBackgroundColors:[{color:"#FDFEFE",text:"Pure White"},{color:"#E8F5E9",text:"Light Mint"},{color:"#FDEDEC",text:"Blush Pink"},{color:"#FFF3E0",text:"Light Apricot"},{color:"#E3F2FD",text:"Baby Blue"},{color:"#FDF6E3",text:"Ivory Beige"},{color:"#F0F4C3",text:"Soft Yellow"}]},w=(()=>{const t="accessibilityPrefs";return{getPreferences:(o=t)=>{const n={fontSize:100,fonts:"",brightness:1,lineHeight:1.5,contrast:"",invertColors:!1,grayscale:!1,highContrast:!1,underlineLinks:!1,underlineHeaders:!1,showMediaAltText:!1,hideImages:!1,pauseAnimations:!1,alignText:"left",bigWhiteCursor:!1,bigBlackCursor:!1,readingGuide:!1,readingMask:!1,textColor:"",titleColor:"",backgroundColor:"",guideWidth:30,guideHeight:15,guideColor:"black",highlightColor:"yellow",guideOpacity:1,highlightStyle:"fill",showPointer:!0,zoomLevelIndex:0,defaultZoomIndex:0,bigWhiteCursorUrl:"https://cdn.jsdelivr.net/gh/Dev-Waheed/svgs@main/Big_Cursor.svg",bigBlackCursorUrl:"https://cdn.jsdelivr.net/gh/Dev-Waheed/svgs@main/BigDark_Cursor.svg"};return o==="accessibilitySettings"?JSON.parse(localStorage.getItem(o)):JSON.parse(localStorage.getItem(o))||n},savePreferences:(o,n=t)=>{localStorage.setItem(n,JSON.stringify(o))}}})();class nt{constructor(){var n;this.languageCodes={english_usa:"en",french:"fr",hebrew:"he",german:"de",portuguese:"pt",spanish:"es"},this.translations={};const e=(n=window.AccessifyWidgetSettings)==null?void 0:n.interfaceLanguage,s=this.languageCodes[e],o=localStorage.getItem("language")||"en";this.currentLocale=s??e??o}async init(){try{const s=await fetch(`https://cdn.isonomy.app/v5/src/Languages/${this.currentLocale}.json`);this.translations=await s.json()}catch(e){console.error("Error loading translations:",e),this.translations={}}}t(e,s={}){let o=this.translations[e]||e;return Object.keys(s).forEach(n=>{o=o.replace(`{${n}}`,s[n])}),o}async setLocale(e){this.currentLocale=e,localStorage.setItem("language",e),await this.init(),document.dispatchEvent(new CustomEvent("localeChanged",{detail:{locale:e}}))}getCurrentLocale(){return this.currentLocale}}const f=new nt,C=(t,e,s,o,n,r={},b={},m=null)=>{const v=document.createElement(t);if(e){if(Array.isArray(e))v.classList.add(...e);else if(typeof e=="string"){const p=e.trim().split(/\s+/);v.classList.add(...p)}}n&&(v.id=n),o&&(v.innerHTML=o),m&&(v.href=m),s&&s.appendChild(v);for(const[p,g]of Object.entries(r))v.setAttribute(p,g);for(const[p,g]of Object.entries(b))v.addEventListener(p,g);return v},U=(t,e)=>C("div","Accessify_right_Arrow",t,``);function j(t,e,s="Accessify_Features_Button",o={}){e.forEach(n=>{const r=C("button",null,t,null,s);r.setAttribute("data-feature-name",n.featureName??n.text),r.setAttribute("data-click-count","0"),C("div",null,r,``);const b=C("div","Accessify_Feature_Text",r,n.text,null,{"data-i18n":n.featureKey??n.text}),m=C("div","Accessify_check-icon-container",r);if(n.includeSmallDivContainer){const v=C("div",null,r,null,"Accessify_smallDiv_container"),p=n.smallDivContainerCounter||n.settings.length;for(let g=0;g{c{_.style.backgroundColor="#ccc"}),oe(n.featureName,{active:!1,value:null,clickCount:p});else p%2===1?(n.applyFunction(),r.classList.add("Accessify_feature_active"),m.innerHTML=I.checkIconSvg,oe(n.featureName,{active:!0,value:!0,clickCount:p})):(n.resetFunction(),r.classList.remove("Accessify_feature_active"),m.innerHTML="",oe(n.featureName,{active:!1,value:null,clickCount:p}))}})}async function st(t){try{const e=await fetch(t);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return await e.text()}catch(e){return console.error("Failed to fetch SVG sprite:",e),null}}function oe(t,e){let s=JSON.parse(localStorage.getItem("accessibilitySettings"))||{};s[t]=e,localStorage.setItem("accessibilitySettings",JSON.stringify(s))}const _e=(()=>{let t=w.getPreferences();return{enable:o=>{document.body.style.textAlign=o,t.alignText=o,w.savePreferences(t)},disable:()=>{document.body.style.textAlign="",t.alignText="left",w.savePreferences(t)}}})(),we=(()=>{let t=w.getPreferences();const e={invertColors:()=>{document.documentElement.classList.add("Accessify_invert-colors"),document.documentElement.classList.remove("Accessify_dark-contrast","Accessify_light-contrast")},highContrast:()=>{document.body.classList.add("Accessify_dark-contrast"),document.body.classList.remove("Accessify_invert-colors","Accessify_light-contrast"),document.documentElement.classList.add("Accessify_dark-contrast"),document.documentElement.classList.remove("Accessify_invert-colors","Accessify_light-contrast"),document.querySelectorAll("body *:not(.Accessify_Container):not(.Accessify_Container *) *:not(.Accessify_Sidebar)").forEach(r=>{r.classList.add("Accessify_dark-contrast")})},lowContrast:()=>{document.documentElement.classList.add("Accessify_light-contrast"),document.documentElement.classList.remove("Accessify_invert-colors","Accessify_dark-contrast")}};return{enable:n=>{e[n]?(e[n](),t.contrast=n,w.savePreferences(t)):console.warn(`Contrast setting "${n}" is not defined.`)},disable:()=>{document.querySelectorAll("body *").forEach(b=>{b.classList.remove("Accessify_invert-colors","Accessify_dark-contrast","Accessify_light-contrast")}),document.body.classList.remove("Accessify_invert-colors","Accessify_dark-contrast","Accessify_light-contrast"),document.documentElement.classList.remove("Accessify_dark-contrast","Accessify_light-contrast","Accessify_invert-colors"),document.querySelectorAll(".Accessify_Container shadow-root").forEach(b=>{b.classList.remove("Accessify_invert-colors","Accessify_dark-contrast","Accessify_light-contrast")}),t.contrast="",w.savePreferences(t)}}})(),xe=(()=>{let t=w.getPreferences();const e={lowSaturation:()=>{document.documentElement.classList.add("Accessify_low-saturation"),document.documentElement.classList.remove("Accessify_high-saturation","Accessify_monochrome")},highSaturation:()=>{document.documentElement.classList.add("Accessify_high-saturation"),document.documentElement.classList.remove("Accessify_low-saturation","Accessify_monochrome")},monochrome:()=>{document.documentElement.classList.add("Accessify_monochrome"),document.documentElement.classList.remove("Accessify_low-saturation","Accessify_high-saturation")}};return{enable:n=>{e[n]?(e[n](),t.showMediaAltText=!1,w.savePreferences(t)):console.warn(`Saturation setting "${n}" is not defined.`)},disable:()=>{document.querySelectorAll("body *").forEach(r=>{r.classList.remove("Accessify_low-saturation","Accessify_high-saturation","Accessify_monochrome"),r.style.filter="none"}),document.body.classList.remove("Accessify_low-saturation","Accessify_high-saturation","Accessify_monochrome"),document.documentElement.classList.remove("Accessify_low-saturation","Accessify_high-saturation","Accessify_monochrome")}}})(),X=(()=>{let t=w.getPreferences(),e=null,s=null,o=null,n=!1;const r=document.body,b=document.documentElement;function m(L,c){return function(...a){o||(o=setTimeout(()=>{L.apply(this,a),o=null},c))}}function v(L){try{L.preventDefault();const a=L.type.startsWith("touch")?L.touches[0].clientY+window.scrollY:L.pageY,l=Math.max(r.scrollHeight,b.scrollHeight),u=e.offsetHeight,S=Math.max(0,Math.min(a-u/2,l-u));e.style.transform=`translate3d(0, ${S}px, 0)`,e.style.webkitTransform=`translate3d(0, ${S}px, 0)`}catch(c){console.error("Error moving ReadabilityBar:",c)}}function p(){e||(e=document.createElement("div"),e.className="Accessify_reading-mask",e.setAttribute("role","presentation"),e.style.position="absolute",e.style.width="100%",e.style.willChange="transform",e.style.touchAction="none",r.appendChild(e),s=m(v,16),document.addEventListener("mousemove",s,{passive:!1}),document.addEventListener("touchmove",s,{passive:!1}),document.addEventListener("touchstart",L=>{n=!0,s(L)},{passive:!1}),document.addEventListener("touchend",()=>{n=!1}),document.addEventListener("scroll",()=>{n&&e&&(e.style.display="none",setTimeout(()=>{e&&(e.style.display="block")},100))},{passive:!0}))}function g(){e&&(document.removeEventListener("mousemove",s),document.removeEventListener("touchmove",s),e.remove(),e=null,s=null)}return{enable:()=>{p(),t.readingMask=!0,w.savePreferences(t)},disable:()=>{t.readingMask=!1,w.savePreferences(t),g()}}})(),Ce=(()=>{let t=w.getPreferences();const e=(n,r)=>{if(n.parentNode.querySelector(".Accessify_media-alt-tooltip"))return;getComputedStyle(n.parentNode).position==="static"&&(n.parentNode.style.position="relative");const m=document.createElement("div");m.className="Accessify_media-alt-tooltip",m.textContent=r,Object.assign(m.style,{display:"block",position:"absolute",boxSizing:"border-box",border:"2px solid #fff",background:"#000",color:"#FFD700",borderRadius:"10px",padding:"2px 6px",height:"auto",zIndex:"2147483647",top:"0",left:"50%",transform:"translateX(-50%)",transition:"opacity 0.3s, top 0.3s"});const v=()=>{n.getBoundingClientRect(),n.parentNode.getBoundingClientRect(),m.offsetHeight,m.style.left="50%",m.style.transform="translateX(-50%)"};n.parentNode.appendChild(m),v(),m.updatePosition=v,window.addEventListener("resize",v);const p=()=>{m.style.display="block",setTimeout(()=>{m.style.opacity="1",m.style.top=`${n.offsetTop-m.offsetHeight-10}px`},10)},g=()=>{m.style.opacity="0",setTimeout(()=>{m.style.display="none"},300)};n.addEventListener("mouseenter",p),n.addEventListener("mouseleave",g),m.showTooltip=p,m.hideTooltip=g};return{enable:()=>{console.log("enable media alt text"),document.querySelectorAll("img, video, audio").forEach(r=>{var m;let b=r.alt||r.getAttribute("aria-label")||r.getAttribute("title");if(!b){const v=r.closest("modal-opener");if(v){const p=v.querySelector("button[data-media-id]");p&&(b=p.getAttribute("aria-label")||((m=p.querySelector(".visually-hidden"))==null?void 0:m.textContent.trim()))}}b&&e(r,b)}),t.showMediaAltText=!0,w.savePreferences(t)},disable:()=>{document.querySelectorAll(".Accessify_media-alt-tooltip").forEach(r=>{if(r.updatePosition&&window.removeEventListener("resize",r.updatePosition),r.showTooltip){const b=r.parentNode.querySelector("img, video, audio");b.removeEventListener("mouseenter",r.showTooltip),b.removeEventListener("mouseleave",r.hideTooltip)}r.remove()}),t.showMediaAltText=!1,w.savePreferences(t)}}})(),Q=(()=>{let t=w.getPreferences();const e={bigBlackCursor:()=>{s(`url("${t.bigBlackCursorUrl}"), auto`)},bigWhiteCursor:()=>{s(`url("${t.bigWhiteCursorUrl}"), auto`)}},s=r=>{document.body.style.cursor=r,document.documentElement.style.cursor=r,document.querySelectorAll("button, input, select, textarea, a, [tabindex]").forEach(m=>{m.style.cursor=r})};return{enable:r=>{e[r]?(e[r](),t.cursor=r,w.savePreferences(t)):console.warn(`Saturation setting "${saturationSetting}" is not defined.`)},disable:()=>{t.cursor="",w.savePreferences(t),document.body.style.cursor="",document.documentElement.style.cursor="",document.querySelectorAll("button, input, select, textarea, a, [tabindex]").forEach(b=>{b.style.cursor=""}),t.cursor="",w.savePreferences(t)}}})(),te=(()=>{let t;return{adjustFontSize:v=>{const p=document.documentElement;t||(t=parseFloat(getComputedStyle(p).fontSize));const x=(parseFloat(getComputedStyle(p).fontSize)*v).toFixed(2)+"px";p.style.setProperty("--base-font-size",x);let _=document.getElementById("accessify-font-styles");_||(_=document.createElement("style"),_.id="accessify-font-styles",document.head.appendChild(_)),_.textContent=` body, h1, h2, h3, h4, h5, h6, p, a, button, input, textarea, li, td, th, strong, span, blockquote, div { font-size: calc(var(--base-font-size) * var(--font-scale, 1)); } h1 { --font-scale: 2; } h2 { --font-scale: 1.5; } h3 { --font-scale: 1.17; } h4 { --font-scale: 1; } h5 { --font-scale: 0.83; } h6 { --font-scale: 0.67; } `},resetFontSize:()=>{if(t){document.documentElement.style.setProperty("--base-font-size",t+"px");const p=document.getElementById("accessify-font-styles");p&&p.remove()}},adjustBrightness:v=>{const p=parseFloat(getComputedStyle(document.body).getPropertyValue("filter").replace("brightness(","").replace(")",""))||1;document.documentElement.style.filter=`brightness(${Math.min(Math.max(p+v,.5),2)})`},resetBrightness:()=>{document.body.style.filter="brightness(1)",document.documentElement.style.filter="brightness(1)"},adjustLineHeight:v=>{document.querySelectorAll("body, h1, h2, h3, h4, h5, h6, p, a, button, input, textarea, li, td, th, strong, span, blockquote, div").forEach(g=>{const x=parseFloat(getComputedStyle(g).getPropertyValue("line-height"));g.style.lineHeight=(x+v).toFixed(1)})},resetLineHeight:()=>{document.querySelectorAll("body, h1, h2, h3, h4, h5, h6, p, a, button, input, textarea, li, td, th, strong, span, blockquote, div").forEach(p=>{p.style.lineHeight=""})},formatFunctionName:v=>v.replace(/([A-Z])/g," $1").toUpperCase()}})(),Le=(()=>{let t=w.getPreferences();return{enable:(o=.1)=>{te.adjustBrightness(o),t.brightness=Math.min(Math.max(t.brightness+o,.5),2),w.savePreferences(t)},disable:()=>{t.brightness=1,document.documentElement.style.filter=`brightness(${t.brightness})`,w.savePreferences(t)}}})(),Ee=(()=>{let t=w.getPreferences();const e=(r,b)=>{document.documentElement.classList.toggle("Accessify_dyslexia-font",r==="dyslexicFont"),document.body.classList.toggle("Accessify_dyslexia-font",r==="dyslexicFont"),document.body.classList.toggle("Accessify_readable-font",r==="readableFont"),document.body.style.setProperty("font-family",b,"important")},s={dyslexicFont:()=>e("dyslexicFont","OpenDyslexic, sans-serif"),readableFont:()=>e("readableFont","Nunito Sans, sans-serif")};return{enable:r=>{s[r]?(s[r](),t.fonts=r,w.savePreferences(t)):console.warn(`Fonts setting "${r}" is not defined.`)},disable:()=>{document.documentElement.classList.remove("Accessify_dyslexia-font","Accessify_readable-font"),document.body.classList.remove("Accessify_dyslexia-font","Accessify_readable-font"),document.body.style.removeProperty("font-family"),t.fonts="",w.savePreferences(t)}}})(),ke=(w.getPreferences(),{enable:()=>{console.log("Highlight on hover enabled."),document.body.classList.add("Accessify_highlight-hover");const s=document.querySelector(".Accessify_Container");if(s){s.classList.add("Accessify_highlight-hover");let o=s.shadowRoot;o||(o=s.attachShadow({mode:"open"}));const n=document.createElement("style");n.textContent=` :host(.Accessify_highlight-hover) *:not(:empty) { transition: outline 0.2s ease-in-out; } :host(.Accessify_highlight-hover) *:not(:empty):hover { outline: 2px solid var(--accessify-highlight-color, #00f); } :host(.Accessify-highlight-focus) button:focus, :host(.Accessify-highlight-focus) input:focus, :host(.Accessify-highlight-focus) textarea:focus, :host(.Accessify-highlight-focus) select:focus { outline: 2px solid var(--accessify-highlight-color, #f00); background-color: rgba(255, 0, 0, 0.1); } `;const r=o.querySelector("style");r?r.replaceWith(n):o.appendChild(n)}else console.warn("Accessify_Container not found.")},disable:()=>{console.log("Highlight on hover disabled."),document.body.classList.remove("Accessify_highlight-hover");const s=document.querySelector(".Accessify_Container");if(s){s.classList.remove("Accessify_highlight-hover");let o=s.shadowRoot;if(o){const n=o.querySelector("style");n&&n.remove()}}}}),ge=(()=>{const t=w.getPreferences(),e="accessify-paused-animations",s=window.matchMedia("(prefers-reduced-motion: reduce)").matches,o=()=>{console.log("Animations paused."),document.body.classList.add(e),document.querySelectorAll("video, audio").forEach(m=>{m.paused||(m.pause(),m.dataset.wasPlaying="true")}),t.pauseAnimations=!0,w.savePreferences(t)},n=()=>{console.log("Animations resumed."),document.body.classList.remove(e),document.querySelectorAll("video, audio").forEach(m=>{m.dataset.wasPlaying==="true"&&(m.play(),delete m.dataset.wasPlaying)}),t.pauseAnimations=!1,w.savePreferences(t)},r=()=>{(t.pauseAnimations||s)&&o()};return window.matchMedia("(prefers-reduced-motion: reduce)").addEventListener("change",b=>{b.matches?o():n()}),{enable:o,disable:n,init:r}})();document.addEventListener("DOMContentLoaded",ge.init);const Fe=(()=>{let t=w.getPreferences();return{enable:()=>{console.log("Highlight on focus enabled."),document.body.classList.add("Accessify-highlight-focus");const o=document.querySelector(".Accessify_Container");if(o){o.classList.add("Accessify-highlight-focus");let n=o.shadowRoot;n||(n=o.attachShadow({mode:"open"}));const r=document.createElement("style");r.textContent=` :host(.Accessify-highlight-focus) a:focus, :host(.Accessify-highlight-focus) input:focus, :host(.Accessify-highlight-focus) textarea:focus, :host(.Accessify-highlight-focus) select:focus { outline: 2px solid var(--accessify-highlight-color, #f00); background-color: rgba(255, 0, 0, 0.1); } `;const b=n.querySelector("style");b?b.replaceWith(r):n.appendChild(r)}else console.warn("Accessify_Container not found.");t.highlightFocus=!0,w.savePreferences(t)},disable:()=>{console.log("Highlight on focus disabled."),document.body.classList.remove("Accessify-highlight-focus");const o=document.querySelector(".Accessify_Container");if(o){o.classList.remove("Accessify-highlight-focus");let n=o.shadowRoot;if(n){const r=n.querySelector("style");r&&r.remove()}}t.highlightFocus=!1,w.savePreferences(t)}}})(),W=(()=>{let t=window.speechSynthesis,e=[],s=null,o=!1,n=null,r=null,b=1;const m=()=>{const i=()=>{e=t.getVoices(),e.length>0?v():(console.log("No voices available yet. Retrying..."),setTimeout(i,100))};t.onvoiceschanged!==void 0&&(t.onvoiceschanged=i),i()},v=()=>{var E;const i=e.filter(T=>T.name.toLowerCase().includes("female")||T.name.toLowerCase().includes("women"));i.length>0?r=i[0].name:r=((E=e.find(T=>T.default))==null?void 0:E.name)||e[0].name},p=i=>{if(!c()){console.error("Text-to-Speech is not supported in this browser.");return}t.speaking?(t.cancel(),setTimeout(()=>g(i),200)):g(i)},g=i=>{s=new SpeechSynthesisUtterance(i),s.voice=e.find(E=>E.name===r)||e[0],s.rate=b,s.pitch=1,s.onend=()=>{console.log("Speech synthesis completed.")},s.onerror=E=>{console.error("SpeechSynthesisUtterance.onerror:",E.error)},s.onboundary=E=>{E.name==="word"&&h(E.charIndex,E.charLength)},t.speak(s)},x=()=>{t.speaking&&!o&&(t.pause(),o=!0,S())},_=()=>{t.paused&&o&&(t.resume(),o=!1,S())},L=()=>{(t.speaking||o)&&(t.cancel(),o=!1)},c=()=>"speechSynthesis"in window,a=()=>e,l=i=>{i&&e.some(E=>E.name===i)?r=i:v()},u=i=>{i>=.5&&i<=2?b=i:console.warn("Speech rate should be between 0.5 and 2.")},S=()=>{const i=document.getElementById("Accessify_tts_controls");if(i){const E=i.querySelector("#Accessify_tts_pause_resume");E&&(E.textContent=o?"Resume":"Pause",E.setAttribute("aria-label",o?"Resume Text-to-Speech":"Pause Text-to-Speech"))}},h=(i,E)=>{const T=document.querySelector(".Accessify_highlighted_selection");if(T){const B=T.textContent,M=B.slice(0,i),D=B.slice(i,i+E),V=B.slice(i+E);T.innerHTML="";const Z=document.createTextNode(M),R=document.createElement("span");R.className="Accessify_current_word",R.textContent=D;const q=document.createTextNode(V);T.appendChild(Z),T.appendChild(R),T.appendChild(q)}},A=i=>{clearTimeout(n),n=setTimeout(()=>{const T=window.getSelection().toString().trim();T.length>0?p(T):L()},200)};return m(),{initiateSpeech:g,speak:p,pause:x,resume:_,cancel:L,isSupported:c,getVoices:a,setVoice:l,setRate:u,initializeSelectionListener:()=>{document.addEventListener("mouseup",A),document.addEventListener("keyup",A)},removeSelectionListener:()=>{document.removeEventListener("mouseup",A),document.removeEventListener("keyup",A)}}})(),Te=(()=>{let t=w.getPreferences();const e={textColor:n=>{document.querySelectorAll("p, span").forEach(r=>{r.style.setProperty("color",n,"important")})},backgroundColor:n=>{document.body.style.setProperty("background-color",n,"important")},titleColor:n=>{document.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(r=>{r.style.setProperty("color",n,"important")})}};return{enable:(n,r)=>{e[n]?(e[n](r),t[n]=r,w.savePreferences(t)):console.warn(`Color setting "${n}" is not defined.`)},disable:()=>{document.body.style.removeProperty("color"),document.body.style.removeProperty("background-color"),document.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(n=>{n.style.removeProperty("color")}),t.textColor="",t.backgroundColor="",t.titleColor="",w.savePreferences(t)}}})(),Pe=(()=>{let t=w.getPreferences();return{enable:o=>{te.adjustFontSize(o),t.fontSize*=o,w.savePreferences(t)},disable:()=>{te.resetFontSize(),t.fontSize=1,w.savePreferences(t)}}})(),Ne=(()=>{const t=w.getPreferences();return{enable:o=>{let n=document.getElementById("Accessify-letter-spacing");n||(n=document.createElement("style"),n.id="Accessify-letter-spacing",document.head.appendChild(n)),n.textContent=` body, h1, h2, h3, h4, h5, h6, p, a, button, input, textarea, li, td, th, strong, span, blockquote, div { letter-spacing: ${o}px !important; } `,t.letterSpacing=o,w.savePreferences(t)},disable:()=>{const o=document.getElementById("Accessify-letter-spacing");o&&o.remove(),t.letterSpacing=0,w.savePreferences(t)}}})(),Ie=(()=>{let t=w.getPreferences();return{execute:s=>{te.adjustLineHeight(s),t.lineHeight+=s,w.savePreferences(t)}}})(),He=(()=>{let t=w.getPreferences();return{execute:()=>{te.adjustLineHeight(-.2),t.lineHeight-=.2,w.savePreferences(t)}}})(),ae=(()=>{let t=w.getPreferences();const e=()=>{const m=document.createElement("div");return m.id="Accessify_reading-guide",m.setAttribute("aria-label","Reading Guide"),m.setAttribute("aria-hidden","true"),m.style.cssText=` position: fixed; width: ${t.guideWidth}vw; height: ${t.guideHeight}px; background-color: ${t.guideColor}; opacity: ${t.guideOpacity}; z-index: 999999999999 !important; pointer-events: none; transform: translate(-50%, -50%); display: none; box-shadow: 0 0 10px rgba(0,0,0,0.3); `,m},s=m=>{const v=document.createElement("div");switch(v.id="guide-line",v.style.cssText=` position: absolute; top: 50%; left: 50%; width: 90%; height: 80%; transform: translate(-50%, -50%); display: block !important; z-index: 999999 !important; `,m.highlightStyle){case"fill":v.style.backgroundColor=m.highlightColor;break;case"underline":v.style.borderBottom=`4px solid ${m.highlightColor}`,v.style.height="2px";break;case"outline":v.style.border=`2px solid ${m.highlightColor}`,v.style.backgroundColor="transparent";break}return v},o=m=>{const v=document.createElement("div");return v.id="triangle",v.style.cssText=` position: absolute; top: -10px; left: 50%; width: 0; height: 0; border-style: solid; border-width: 0 10px 10px 10px; border-color: transparent transparent ${m.guideColor} transparent; transform: translateX(-50%); display: block !important; `,v},n=m=>v=>{const p=v.touches?v.touches[0].clientX:v.clientX,g=v.touches?v.touches[0].clientY:v.clientY;m.style.left=`${p}px`,m.style.top=`${g}px`},r=()=>{let m=document.getElementById("Accessify_reading-guide");if(!m){m=e();const g=s(t);if(m.appendChild(g),t.showPointer){const x=o(t);m.appendChild(x)}document.body.appendChild(m)}const v=m.style.display!=="none";m.style.display=v?"none":"block",m.setAttribute("aria-hidden",v?"true":"false");const p=n(m);v?(document.removeEventListener("mousemove",p),document.removeEventListener("touchmove",p)):(document.addEventListener("mousemove",p),document.addEventListener("touchmove",p,{passive:!0})),t.readingGuide=!v,w.savePreferences(t)},b=()=>{const m=document.getElementById("Accessify_reading-guide");m&&m.remove(),t.readingGuide=!1,w.savePreferences(t)};return t.readingGuide&&(r(),t.readingGuide=!0,w.savePreferences(t)),{enable:r,disable:b}})(),Be=(()=>{let t=w.getPreferences();const e=[".Accessify_Container",".Accessify_Sidebar"],s=()=>"zoom"in document.documentElement.style,o=v=>{const p=parseFloat(v);return!isNaN(p)&&p>=.5&&p<=4},n=()=>parseFloat(document.documentElement.style.zoom)||1,r=v=>{try{if(!s())throw new Error("Zoom is not supported in this browser");if(!o(v))throw new Error("Invalid zoom level. Must be between 0.5 and 4");document.documentElement.style.zoom=v;const p=1/v,g=document.querySelector(".Accessify_Container");return g!=null&&g.shadowRoot&&e.forEach(x=>{g.shadowRoot.querySelectorAll(x).forEach(L=>{L.style.zoom=p})}),t.zoomLevelIndex=v,w.savePreferences(t),!0}catch(p){return console.error("Error enabling zoom:",p.message),!1}},b=()=>{try{const v=t.defaultZoomIndex||1;document.documentElement.style.zoom=v;const p=document.querySelector(".Accessify_Container");return p!=null&&p.shadowRoot&&e.forEach(g=>{p.shadowRoot.querySelectorAll(g).forEach(_=>{_.style.zoom="1.0"})}),t.zoomLevelIndex=v,w.savePreferences(t),!0}catch(v){return console.error("Error disabling zoom:",v.message),!1}};return{enable:r,disable:b,getCurrentZoom:n,cleanup:()=>{b(),t=w.getPreferences()}}})(),Me=(()=>{let t=w.getPreferences();return{execute:()=>{document.body.classList.toggle("underline-headers"),t.underlineHeaders=!t.underlineHeaders,w.savePreferences(t)}}})(),$e=(()=>{let t=w.getPreferences();return{execute:()=>{document.body.classList.toggle("Accessify_underline-links"),t.underlineLinks=!t.underlineLinks,w.savePreferences(t)}}})(),De={originalAudioContext:null,mutedElements:new WeakSet,muteOverlays:new WeakSet,observer:null,muteSounds:function(){console.log("Muting sounds..."),this.muteMediaElements(),this.muteIframes(),this.overrideWebAudioAPI(),this.addDynamicElementListeners()},unmuteSounds:function(){console.log("Unmuting sounds..."),this.unmuteMediaElements(),this.unmuteIframes(),this.restoreWebAudioAPI(),this.removeDynamicElementListeners()},muteMediaElements:function(){document.querySelectorAll("audio, video").forEach(t=>{t.muted||(t.muted=!0,this.mutedElements.add(t))})},unmuteMediaElements:function(){document.querySelectorAll("audio, video").forEach(t=>{this.mutedElements.has(t)&&(t.muted=!1,this.mutedElements.delete(t))})},muteIframes:function(){document.querySelectorAll("iframe").forEach(this.muteIframe.bind(this))},unmuteIframes:function(){document.querySelectorAll("iframe").forEach(this.unmuteIframe.bind(this))},muteIframe:function(t){const e=t.src||"";try{if(e.includes("youtube.com"))t.contentWindow.postMessage('{"event":"command","func":"mute","args":""}',"*");else if(e.includes("vimeo.com"))t.contentWindow.postMessage(JSON.stringify({method:"setVolume",value:0}),"*");else if(e.includes("soundcloud.com"))t.contentWindow.postMessage(JSON.stringify({method:"setVolume",value:0}),"*");else{const s=document.createElement("div");s.className="mute-overlay",s.style.cssText="position:absolute;top:0;left:0;width:100%;height:100%;z-index:9999;",t.parentNode.style.position="relative",t.parentNode.insertBefore(s,t.nextSibling),this.muteOverlays.add(s)}}catch(s){console.warn("Unable to mute iframe:",s)}},unmuteIframe:function(t){const e=t.src||"";try{if(e.includes("youtube.com"))t.contentWindow.postMessage('{"event":"command","func":"unMute","args":""}',"*");else if(e.includes("vimeo.com"))t.contentWindow.postMessage(JSON.stringify({method:"setVolume",value:1}),"*");else if(e.includes("soundcloud.com"))t.contentWindow.postMessage(JSON.stringify({method:"setVolume",value:1}),"*");else{const o=t.parentNode.querySelector(".mute-overlay");o&&this.muteOverlays.has(o)&&(o.remove(),this.muteOverlays.delete(o))}}catch(s){console.warn("Unable to unmute iframe:",s)}},overrideWebAudioAPI:function(){if(!this.originalAudioContext){this.originalAudioContext=window.AudioContext||window.webkitAudioContext;const t=this.originalAudioContext;window.AudioContext=window.webkitAudioContext=function(){const e=new t,s=e.createGain.bind(e);return e.createGain=function(){const o=s();return o.gain.value=0,o},e}}},restoreWebAudioAPI:function(){this.originalAudioContext&&(window.AudioContext=this.originalAudioContext,window.webkitAudioContext&&(window.webkitAudioContext=this.originalAudioContext),this.originalAudioContext=null)},handleNewElement:function(t){t.tagName==="AUDIO"||t.tagName==="VIDEO"?t.muted||(t.muted=!0,this.mutedElements.add(t)):t.tagName==="IFRAME"&&this.muteIframe(t)},addDynamicElementListeners:function(){this.observer||(this.observer=new MutationObserver(t=>{t.forEach(e=>{e.addedNodes.forEach(s=>{s.nodeType===Node.ELEMENT_NODE&&this.handleNewElement(s)})})}),this.observer.observe(document.body,{childList:!0,subtree:!0}))},removeDynamicElementListeners:function(){this.observer&&(this.observer.disconnect(),this.observer=null)}},qe=(()=>{let t=w.getPreferences();return{execute:()=>{document.body.classList.toggle("grayscale"),t.grayscale=!t.grayscale,w.savePreferences(t)}}})(),ze=(()=>{let t=w.getPreferences();return{enable:()=>{document.querySelectorAll("img").forEach(n=>{n.style.display=n.style.display==="none"?"block":"none"}),t.hideImages=!t.hideImages,w.savePreferences(t)},disable:()=>{document.querySelectorAll("img").forEach(n=>{n.style.display="block"}),t.hideImages=!1,w.savePreferences(t)}}})(),Re=(()=>{let t=w.getPreferences();return{execute:()=>{document.body.classList.toggle("Accessify_high-contrast"),t.highContrast=!t.highContrast,w.savePreferences(t)}}})(),Oe=(()=>{let t=w.getPreferences();return{execute:()=>{document.body.classList.toggle("invert-colors"),t.invertColors=!t.invertColors,w.savePreferences(t)}}})(),ot=(()=>{let t=w.getPreferences();return{enable:()=>{document.body.style.filter="",document.body.style.color="",document.body.style.backgroundColor="",document.body.style.textAlign="",document.body.style.cursor="auto",document.body.classList.remove("pause-animations","invert-colors","grayscale","Accessify_high-contrast","Accessify_underline-links","underline-headers","Accessify_big-white-cursor","Accessify_big-black-cursor"),document.querySelectorAll("body, h1, h2, h3, h4, h5, h6, p, a, button, input, textarea, li, td, th, strong, span, blockquote, div").forEach(r=>{r.style.fontSize="",r.style.textDecoration="",r.style.lineHeight=""}),document.querySelectorAll("img").forEach(r=>{r.removeAttribute("aria-label")});const n=document.getElementById("Accessify_reading-guide");n&&n.remove(),t=w.getPreferences(),w.savePreferences(t),w.savePreferences({},"accessibilitySettings")}}})(),J=(()=>{let t=!0;const e=()=>{const p=localStorage.getItem("Accessify_Session_Id");if(p)return p;const g=crypto.randomUUID();return localStorage.setItem("Accessify_Session_Id",g),g},s="https://production.isonomy.app/api/trackEvent",o=e(),n=new AbortController,{signal:r}=n,b=5e3,m=(p,g={})=>{var x,_;if(t)try{const L=setTimeout(()=>n.abort(),b);fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({eventName:p,shopDomain:(x=window.AccessifyShopifySettings)==null?void 0:x.shopDomain,shopName:(_=window.AccessifyShopifySettings)==null?void 0:_.shopName,...g,sessionId:o}),signal:r,keepalive:!0}).then(c=>{if(clearTimeout(L),!c.ok)throw new Error("Network response was not ok");return c.json()}).then(c=>{}).catch(c=>{c.name==="AbortError"?console.warn("Request timed out"):console.error("Error tracking event:",c)})}catch(L){console.error("Exception in trackEvent:",L)}};function v(p){t=p}return{trackEvent:m,setShouldTrackEvents:v}})(),Ke=(()=>{let t=!1,e=[],s=-1,o={h:-1,b:-1,m:-1,f:-1,g:-1,p:-1};const n=()=>{/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||(t=r(),c(),t&&v())},r=()=>{const a=localStorage.getItem("keyboardNavData");if(a){const{value:l,expiry:u}=JSON.parse(a);if(new Date().getTime(){const l=new Date().getTime()+864e5;localStorage.setItem("keyboardNavData",JSON.stringify({value:a,expiry:l}))},m=()=>{t=!t,b(t),t?v():(L(),sessionStorage.removeItem("promptDismissed"))};function v(){e=Array.from(document.querySelectorAll('a, button, [role="button"], .button, .btn, input, textarea, select, [tabindex]:not([tabindex="-1"])')).filter(a=>{const l=a.offsetParent!==null&&getComputedStyle(a).visibility!=="hidden"&&getComputedStyle(a).display!=="none",u=a.getAttribute("aria-hidden")==="true";return!a.disabled&&l&&!u}),s=-1}const p=a=>{if(!t||a.altKey||a.ctrlKey||a.metaKey)return;const l=a.key.toLowerCase();if(l==="escape"){L();return}switch(l){case"tab":a.preventDefault(),x(a.shiftKey?-1:1);break;case"m":a.preventDefault(),g("nav, [role='navigation'], .menu, .nav, .navbar, header nav, .main-navigation","m");break;case"h":a.preventDefault(),g("h1, h2, h3, h4, h5, h6","h");break;case"b":a.preventDefault(),g('button, [role="button"], .button, .btn, input[type="button"], input[type="submit"]',"b");break;case"p":a.preventDefault(),g("p, article, section, .paragraph","p");break;case"g":a.preventDefault(),g("img, svg, figure, picture, .image, [role='img']","g");break;case"f":a.preventDefault(),g("form, input, textarea, select, [role='form'], fieldset","f");break}},g=(a,l)=>{const u=Array.from(document.querySelectorAll(a)).filter(S=>S.offsetParent!==null&&getComputedStyle(S).visibility!=="hidden"&&getComputedStyle(S).display!=="none"&&S.getAttribute("aria-hidden")!=="true");u.length!==0&&(o[l]=(o[l]+1)%u.length,_(u[o[l]]))},x=a=>{e.length!==0&&(s=(s+a+e.length)%e.length,_(e[s]))},_=a=>{if(!a)return;L(),a.classList.add("keyboard-highlight");const l=a.style.outline,u=a.style.outlineOffset;a.style.outline="3px solid orange",a.style.outlineOffset="2px",a.setAttribute("data-original-outline",l||""),a.setAttribute("data-original-outline-offset",u||""),a.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),a.focus();const S=document.createElement("div");S.setAttribute("aria-live","polite"),S.style.position="absolute",S.style.width="1px",S.style.height="1px",S.style.overflow="hidden",S.textContent=`Focused on ${a.tagName.toLowerCase()}${a.id?" with ID "+a.id:""}`,document.body.appendChild(S),setTimeout(()=>{document.body.removeChild(S)},1e3)},L=()=>{document.querySelectorAll(".keyboard-highlight").forEach(a=>{a.classList.remove("keyboard-highlight");const l=a.getAttribute("data-original-outline"),u=a.getAttribute("data-original-outline-offset");l!==null&&(a.style.outline=l,a.removeAttribute("data-original-outline")),u!==null&&(a.style.outlineOffset=u,a.removeAttribute("data-original-outline-offset"))})},c=()=>{document.addEventListener("click",a=>{a.target.closest(".keyboard-highlight")||L()}),document.addEventListener("keydown",a=>{a.key==="CapsLock"&&m(),t&&p(a)})};return{init:n,enable:()=>{t=!0,b(!0),v()},disable:()=>{t=!1,b(!1),L(),sessionStorage.removeItem("promptDismissed")},toggle:m}})(),je=(()=>{let t,e=new Map,s=null,o=null,n=!1,r=0;const b=1e3;let m,v,p,g,x,_,L,c,a,l,u,S,h,A=localStorage.getItem("language")||"en";const i=y=>f.t(y)||y,E=()=>{h=document.createElement("input"),h.type="hidden",h.value="1",h.id="isStopBtnClicked",document.body.appendChild(h),g=document.createElement("div"),g.id="isonomyWidgetContainer",T()},T=y=>{_=document.createElement("div"),_.className="isonomy-voice-assistant",_.id="isonomy-voice-assistant",_.style.display="none",_.tabIndex=0,document.body.appendChild(_),_.innerHTML=`
${i("voice_assistant_paused")}
${i("say")}${i("help_me")}${i("or")} ${i("show_commands")}${i("to_see_available_commands")}
`,L=document.querySelector(".isonomy-hide-assistant"),c=document.querySelector(".isonomy-close-assistant"),a=document.querySelector(".isonomy-commands-list"),l=document.querySelector(".isonomy-voice-assistant"),u=document.querySelector(".isonomy_voice-assistant-icon"),S=document.querySelector(".isonomy-voice-assistant-text")},B=()=>{console.log("Voice Assistant Deactivated!"),l.classList.remove("isonomy-is-listening"),S.innerText=i("voice_assistant_paused"),u.setAttribute("aria-label",i("voice_assistant_aria_label_activate")),h.value="1",t.stop(),localStorage.removeItem("voiceStatus"),ce()},M=()=>{console.log("Voice Assistant Activated!"),l.classList.add("isonomy-is-listening"),S.innerText=i("voice_assistant_listening"),u.setAttribute("aria-label",i("voice_assistant_aria_label_deactivate")),h.value="0",t.start(),localStorage.setItem("voiceStatus","started"),pe()},D=()=>{L.addEventListener("click",function(){a.style.display==="block"?me():ue()}),c.addEventListener("click",function(){console.log("Voice Assistant Deactivated!"),l.classList.remove("isonomy-is-listening"),S.innerText=i("voice_assistant_paused"),h.value="1",t.stop(),localStorage.removeItem("voiceStatus"),ce(),l.style.display="none",_.style.display="none",console.log("Hide Widget..."),localStorage.removeItem("showWidget")}),u.addEventListener("click",function(){l.classList.contains("isonomy-is-listening")?B():M()})},V=()=>{_.addEventListener("mousedown",d=>{m=d.clientX-_.getBoundingClientRect().left,v=d.clientY-_.getBoundingClientRect().top,_.style.cursor="grabbing";const k=P=>{_.style.left=`${P.clientX-m}px`,_.style.top=`${P.clientY-v}px`};document.addEventListener("mousemove",k),document.addEventListener("mouseup",()=>{document.removeEventListener("mousemove",k),_.style.cursor="grab"},{once:!0})}),D();let y;window.addEventListener("scroll",()=>{y&&cancelAnimationFrame(y),y=requestAnimationFrame(G)})},Z=()=>{if(!("webkitSpeechRecognition"in window)&&!("SpeechRecognition"in window))return console.error("Speech recognition not supported in this browser"),!1;t=new webkitSpeechRecognition,t.continuous=!1,t.interimResults=!0,t.lang=A,t.onresult=y=>{let d="";for(let k=y.resultIndex;k{l.classList.contains("isonomy-is-listening")?k.innerText=i("voice_assistant_listening"):k.innerText=i("voice_assistant_paused")},2e3),et(d),t.stop()}},t.onerror=y=>{if(y.error==="no-speech"||y.error==="audio-capture"){console.log("Restarting recognition...");try{t.start()}catch{}}},t.onend=()=>{h.value=="0"&&t.start()}},R=()=>{s||(s=new IntersectionObserver(y=>{y.some(d=>d.isIntersecting||d.boundingClientRect.top<0)&&G()},{threshold:.1})),document.querySelectorAll("button, a, textarea, input, input[type='radio'], input[type='checkbox']").forEach(y=>{s.observe(y)}),o||(o=new MutationObserver(()=>{G()}),o.observe(document.body,{childList:!0,subtree:!0})),setInterval(G,b),G()},q=()=>{localStorage.getItem("showWidget")&&x.click(),localStorage.getItem("voiceStatus")?(u.click(),u.setAttribute("aria-label",i("voice_assistant_aria_label_deactivate"))):u.setAttribute("aria-label",i("voice_assistant_aria_label_activate"))},le=y=>{let d=y.getBoundingClientRect(),k=window.getComputedStyle(y);return d.width>0&&d.height>0&&d.top0&&k.display!=="none"&&k.visibility!=="hidden"&&k.opacity!=="0"},pe=()=>{document.getElementById("isonomyTooltipContainer")||(p=document.createElement("div"),p.id="isonomyTooltipContainer",document.body.appendChild(p)),p.innerHTML="",document.querySelectorAll(".isonomy_tooltip-element").forEach(y=>{let d=document.createElement("div");d.classList.add("isonomy_tooltip"),d.innerText=y.dataset.tooltipId,p.appendChild(d);let k=y.getBoundingClientRect();d.style.position="absolute",d.style.left=k.left+window.scrollX+"px",d.style.top=k.top+window.scrollY+k.height-13+"px",d.style.opacity="1"})},ce=()=>{document.querySelectorAll(".isonomy_tooltip").forEach(y=>y.remove())},et=y=>{var O,ie,z;let d=document.activeElement;y=y.toLowerCase().trim();let k=d.tagName.toLowerCase(),P=d.type?d.type.toLowerCase():null;if(y===i("help_me").toLowerCase().trim()||y===i("please_help").toLowerCase().trim()||y===i("show_commands").toLowerCase().trim()||y===i("available_commands").toLowerCase().trim()||y===i("list_commands").toLowerCase().trim()){ue();return}if(y===i("hide_help").toLowerCase().trim()||y===i("hide_commands").toLowerCase().trim()){me();return}if(y===i("scroll_down").toLowerCase().trim()||y===i("down").toLowerCase().trim()||y===i("page_down").toLowerCase().trim()||y===i("go_down").toLowerCase().trim()){window.scrollBy(0,window.innerHeight/2);return}if(y===i("scroll_up").toLowerCase().trim()||y===i("up").toLowerCase().trim()||y===i("page_up").toLowerCase().trim()||y===i("go_up").toLowerCase().trim()){window.scrollBy(0,-window.innerHeight/2);return}if(y===i("go_top").toLowerCase().trim()||y===i("scroll_top").toLowerCase().trim()){window.scrollTo(0,0);return}if(y===i("go_bottom").toLowerCase().trim()||y===i("scroll_bottom").toLowerCase().trim()){window.scrollTo(0,document.body.scrollHeight);return}if(y===i("tab").toLowerCase().trim()||y===i("next").toLowerCase().trim()){let F=Array.from(document.querySelectorAll("button, a, input, textarea, select, details, [tabindex]:not([tabindex='-1'])")),N=F.indexOf(d);(O=F[N+1])==null||O.focus();return}if(y===i("tab_back").toLowerCase().trim()||y===i("back").toLowerCase().trim()||y===i("previous").toLowerCase().trim()){let F=Array.from(document.querySelectorAll("button, a, input, textarea, select, details, [tabindex]:not([tabindex='-1'])")),N=F.indexOf(d);(ie=F[N-1])==null||ie.focus();return}if(y===i("move_up").toLowerCase().trim()||y===i("up").toLowerCase().trim())if(d&&d.tagName==="TEXTAREA"){let F=d.selectionStart,N=d.value,H=N.lastIndexOf(` `,F)+1,K=F-H,ne=H-1;if(ne>0){let se=N.lastIndexOf(` `,ne-1)+1,fe=Math.min(se+K,ne);d.setSelectionRange(fe,fe)}return}else{let F=new KeyboardEvent("keydown",{key:"ArrowUp",code:"ArrowUp",keyCode:38,which:38,bubbles:!0});d.dispatchEvent(F);return}if(y===i("move_left").toLowerCase().trim()||y===i("left").toLowerCase().trim())if(d&&(d.tagName==="TEXTAREA"||d.tagName==="INPUT")){if(P==="email")return;let F=d.selectionStart;d.focus(),d.setSelectionRange(Math.max(F-1,0),Math.max(F-1,0));return}else{let F=new KeyboardEvent("keydown",{key:"ArrowLeft",code:"ArrowLeft",keyCode:37,which:37,bubbles:!0});d.dispatchEvent(F);return}if(y===i("move_right").toLowerCase().trim()||y===i("right").toLowerCase().trim())if(d&&(d.tagName==="TEXTAREA"||d.tagName==="INPUT")){if(P==="email")return;let F=d.selectionStart;d.focus(),d.setSelectionRange(Math.min(F+1,d.value.length),Math.min(F+1,d.value.length));return}else{let F=new KeyboardEvent("keydown",{key:"ArrowRight",code:"ArrowRight",keyCode:39,which:39,bubbles:!0});d.dispatchEvent(F);return}if(y===i("move_down").toLowerCase().trim()||y===i("down").toLowerCase().trim())if(d&&d.tagName==="TEXTAREA"){const F=d.selectionStart,H=d.value.substring(0,F).lastIndexOf(` `),K=F-(H===-1?0:H+1),se=d.value.substring(F).indexOf(` `);if(se!==-1){const it=F+se+1+K,Ae=Math.min(it,d.value.length);d.focus(),d.setSelectionRange(Ae,Ae)}else d.focus(),d.setSelectionRange(d.value.length,d.value.length);return}else{let F=new KeyboardEvent("keydown",{key:"ArrowDown",code:"ArrowDown",keyCode:40,which:40,bubbles:!0});d.dispatchEvent(F);return}if((y===i("start_of_line").toLowerCase().trim()||y===i("go_start_line").toLowerCase().trim())&&d&&(d.tagName==="TEXTAREA"||d.tagName==="INPUT")&&P!=="radio"&&P!=="checkbox"){let F=d.selectionStart,H=d.value.lastIndexOf(` `,F-1)+1;d.setSelectionRange(H,H);return}if((y===i("end_of_line").toLowerCase().trim()||y===i("go_end_line").toLowerCase().trim())&&d&&(d.tagName==="TEXTAREA"||d.tagName==="INPUT")&&P!=="radio"&&P!=="checkbox"){let F=d.selectionStart,N=d.value,H=N.indexOf(` `,F),K=H!==-1?H:N.length;d.setSelectionRange(K,K);return}if(y===i("remove_all").toLowerCase().trim()||y===i("clear_all_input").toLowerCase().trim()||y===i("erase_all").toLowerCase().trim()||y===i("delete_all").toLowerCase().trim()){d.value="";return}if(y===i("remove").toLowerCase().trim()||y===i("clear").toLowerCase().trim()||y===i("erase").toLowerCase().trim()||y===i("delete").toLowerCase().trim()){let F=d.selectionStart;F>0&&(d.value=d.value.slice(0,F-1)+d.value.slice(F),d.setSelectionRange(F-1,F-1));return}if(y===i("remove_word").toLowerCase().trim()||y===i("clear_word").toLowerCase().trim()||y===i("erase_word").toLowerCase().trim()||y===i("delete_word").toLowerCase().trim()){if(P==="email")return;let F=d.selectionStart,N=d.value;if(F>0){let H=N.lastIndexOf(" ",F-1),K=N.slice(0,H<0?0:H)+N.slice(F);d.value=K,d.setSelectionRange(H<0?0:H,H<0?0:H)}return}if(y===i("add_space").toLowerCase().trim()||y===i("insert_space").toLowerCase().trim()){if(P==="email")return;let F=d.selectionStart,N=d.value;d.value=N.slice(0,F)+" "+N.slice(F),d.setSelectionRange(F+1,F+1);return}if(y===i("disable_dictation").toLowerCase().trim()){(z=document.activeElement)==null||z.blur();return}if(y===i("press_enter").toLowerCase().trim()||y===i("click_enter").toLowerCase().trim()){d.click(),G();return}if(y===i("stop_voice_navigation").toLowerCase().trim()||y===i("stop").toLowerCase().trim()){console.log("Voice Assistant Deactivated!"),l.classList.remove("isonomy-is-listening"),S.innerText=i("voice_assistant_paused"),h.value="1",t.stop(),localStorage.removeItem("voiceStatus"),ce();return}if(d){if(k==="input"||k==="textarea")if(P==="radio"||P==="checkbox")d.checked=!d.checked;else if(y.replace("at the rate","@")=="@"||d.value.slice(-1)=="@")de(d,y.replace("at the rate","@"));else if(P==="email"){let F=[" at the rate "," at the rate","at the rate "].reduce((N,H)=>N.replace(H,"@"),y);de(d," "+F)}else de(d," "+y);else if(tt(y)){y=Se(y);let F=[...e.entries()].find(([N,H])=>{let K=H.replace("element-","");return new RegExp(`\\b${K}\\b`).test(y)});if(F){F=F[1];let N=document.querySelector("."+F);if(N)if(N.tagName==="INPUT"||N.tagName==="TEXTAREA"){let H=N.type?N.type.toLowerCase():null;H==="radio"||H==="checkbox"?N.checked=!N.checked:N.focus()}else(N.tagName==="BUTTON"||N.tagName==="A")&&(N.click(),G())}}}},tt=y=>{y=Se(y);const d=[i("press"),i("open"),i("go"),i("click")],P=y.replace(/\d+/g,"").trim();return d.includes(P)},Se=y=>{if(A=="en"){const d={zero:0,one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9,ten:10,eleven:11,twelve:12,thirteen:13,fourteen:14,fifteen:15,sixteen:16,seventeen:17,eighteen:18,nineteen:19,twenty:20,thirty:30,forty:40,fifty:50,sixty:60,seventy:70,eighty:80,ninety:90,hundred:100,thousand:1e3};return y.replace(/\b(?:zero|one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen|twenty|thirty|forty|fifty|sixty|seventy|eighty|ninety|hundred|thousand)\b/gi,k=>d[k.toLowerCase()])}else if(A=="es"){const d={cero:0,uno:1,dos:2,tres:3,cuatro:4,cinco:5,seis:6,siete:7,ocho:8,nueve:9,diez:10,once:11,doce:12,trece:13,catorce:14,quince:15,dieciséis:16,diecisiete:17,dieciocho:18,diecinueve:19,veinte:20,veintiuno:21,veintidós:22,veintitrés:23,veinticuatro:24,veinticinco:25,veintiséis:26,veintisiete:27,veintiocho:28,veintinueve:29,treinta:30,cuarenta:40,cincuenta:50,sesenta:60,setenta:70,ochenta:80,noventa:90,cien:100,ciento:100,doscientos:200,trescientos:300,cuatrocientos:400,quinientos:500,seiscientos:600,setecientos:700,ochocientos:800,novecientos:900,mil:1e3};return y.replace(/\b(?:cero|uno|dos|tres|cuatro|cinco|seis|siete|ocho|nueve|diez|once|doce|trece|catorce|quince|dieciséis|diecisiete|dieciocho|diecinueve|veinte|veintiuno|veintidós|veintitrés|veinticuatro|veinticinco|veintiséis|veintisiete|veintiocho|veintinueve|treinta|cuarenta|cincuenta|sesenta|setenta|ochenta|noventa|cien|ciento|doscientos|trescientos|cuatrocientos|quinientos|seiscientos|setecientos|ochocientos|novecientos|mil)\b/gi,k=>d[k.toLowerCase()])}else if(A=="fr"){const d={zéro:0,un:1,deux:2,trois:3,quatre:4,cinq:5,six:6,sept:7,huit:8,neuf:9,dix:10,onze:11,douze:12,treize:13,quatorze:14,quinze:15,seize:16,"dix-sept":17,"dix-huit":18,"dix-neuf":19,vingt:20,trente:30,quarante:40,cinquante:50,soixante:60,"soixante-dix":70,"quatre-vingts":80,"quatre-vingt-dix":90,cent:100,cents:100,mille:1e3};return y.replace(/\b(?:zéro|un|deux|trois|quatre|cinq|six|sept|huit|neuf|dix|onze|douze|treize|quatorze|quinze|seize|dix-sept|dix-huit|dix-neuf|vingt|trente|quarante|cinquante|soixante|soixante-dix|quatre-vingts|quatre-vingt-dix|cent|cents|mille)\b/gi,k=>d[k.toLowerCase()])}else if(A=="pt"){const d={zero:0,um:1,uma:1,dois:2,duas:2,três:3,quatro:4,cinco:5,seis:6,sete:7,oito:8,nove:9,dez:10,onze:11,doze:12,treze:13,quatorze:14,quinze:15,dezesseis:16,dezessete:17,dezoito:18,dezenove:19,vinte:20,trinta:30,quarenta:40,cinquenta:50,sessenta:60,setenta:70,oitenta:80,noventa:90,cem:100,cento:100,duzentos:200,duzentas:200,trezentos:300,trezentas:300,quatrocentos:400,quatrocentas:400,quinhentos:500,quinhentas:500,seiscentos:600,seiscentas:600,setecentos:700,setecentas:700,oitocentos:800,oitocentas:800,novecentos:900,novecentas:900,mil:1e3};return y.toLowerCase().split(/\s+/).map(k=>d[k]!==void 0?d[k]:k).join(" ")}else if(A=="de"){const d={null:0,eins:1,eine:1,ein:1,zwei:2,drei:3,vier:4,fünf:5,sechs:6,sieben:7,acht:8,neun:9,zehn:10,elf:11,zwölf:12,dreizehn:13,vierzehn:14,fünfzehn:15,sechzehn:16,siebzehn:17,achtzehn:18,neunzehn:19,zwanzig:20,dreißig:30,vierzig:40,fünfzig:50,sechzig:60,siebzig:70,achtzig:80,neunzig:90,hundert:100,tausend:1e3};return y.split(/\s+/).map(k=>d[k.toLowerCase()]!==void 0?d[k.toLowerCase()]:k).join(" ")}else if(A=="zh"){const d={零:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10,百:100,千:1e3};return y.replace(/[零一二三四五六七八九十百千]/g,k=>d[k])}else if(A=="zh-TW"){const d={零:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10,百:100,千:1e3};return y.replace(/[零一二三四五六七八九十百千]/g,k=>d[k])}else if(A=="ja"){const d={零:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10,百:100,千:1e3};return y.replace(/[零一二三四五六七八九十百千]/g,k=>d[k])}else if(A=="ko"){const d={영:0,일:1,이:2,삼:3,사:4,오:5,육:6,칠:7,팔:8,구:9,십:10,백:100,천:1e3};return y.replace(/[영일이삼사오육칠팔구십백천]/g,k=>d[k])}else if(A=="th"){const d={ศูนย์:0,หนึ่ง:1,สอง:2,สาม:3,สี่:4,ห้า:5,หก:6,เจ็ด:7,แปด:8,เก้า:9,สิบ:10,ร้อย:100,พัน:1e3};return y.replace(/ศูนย์|หนึ่ง|สอง|สาม|สี่|ห้า|หก|เจ็ด|แปด|เก้า|สิบ|ร้อย|พัน/g,k=>d[k])}else if(A=="ar"){const d={صفر:0,واحد:1,اثنان:2,اثنين:2,ثلاثة:3,أربعة:4,خمسة:5,ستة:6,سبعة:7,ثمانية:8,تسعة:9,عشرة:10,"أحد عشر":11,"اثنا عشر":12,"اثني عشر":12,"ثلاثة عشر":13,"أربعة عشر":14,"خمسة عشر":15,"ستة عشر":16,"سبعة عشر":17,"ثمانية عشر":18,"تسعة عشر":19,عشرون:20,ثلاثون:30,أربعون:40,خمسون:50,ستون:60,سبعون:70,ثمانون:80,تسعون:90,مئة:100,مئتان:200,ثلاثمئة:300,أربعمئة:400,خمسمئة:500,ستمئة:600,سبعمئة:700,ثمانمئة:800,تسعمئة:900,ألف:1e3,ألفان:2e3,"ثلاثة آلاف":3e3,"أربعة آلاف":4e3,"خمسة آلاف":5e3,"ستة آلاف":6e3,"سبعة آلاف":7e3,"ثمانية آلاف":8e3,"تسعة آلاف":9e3};return y.replace(/صفر|واحد|اثنان|اثنين|ثلاثة|أربعة|خمسة|ستة|سبعة|ثمانية|تسعة|عشرة|أحد عشر|اثنا عشر|اثني عشر|ثلاثة عشر|أربعة عشر|خمسة عشر|ستة عشر|سبعة عشر|ثمانية عشر|تسعة عشر|عشرون|ثلاثون|أربعون|خمسون|ستون|سبعون|ثمانون|تسعون|مئة|مئتان|ثلاثمئة|أربعمئة|خمسمئة|ستمئة|سبعمئة|ثمانمئة|تسعمئة|ألف|ألفان|ثلاثة آلاف|أربعة آلاف|خمسة آلاف|ستة آلاف|سبعة آلاف|ثمانية آلاف|تسعة آلاف/g,k=>d[k])}else if(A=="he"){const d={אפס:0,אחד:1,שתיים:2,שניים:2,שלוש:3,ארבע:4,חמש:5,שש:6,שבע:7,שמונה:8,תשע:9,עשר:10,"אחת עשרה":11,"שתים עשרה":12,"שלוש עשרה":13,"ארבע עשרה":14,"חמש עשרה":15,"שש עשרה":16,"שבע עשרה":17,"שמונה עשרה":18,"תשע עשרה":19,עשרים:20,שלושים:30};return y.replace(new RegExp(Object.keys(d).join("|"),"g"),k=>d[k])}else if(A=="hi"){const d={शून्य:0,एक:1,दो:2,तीन:3,चार:4,पांच:5,छह:6,सात:7,आठ:8,नौ:9,दस:10,ग्यारह:11,बारह:12,तेरह:13,चौदह:14,पंद्रह:15,बीस:20};return y.replace(new RegExp(Object.keys(d).join("|"),"g"),k=>d[k])}else if(A=="ur"){const d={صفر:0,ایک:1,دو:2,تین:3,چار:4,پانچ:5,چھ:6,سات:7,آٹھ:8,نو:9,دس:10,گیارہ:11,بارہ:12,تیرہ:13,چودہ:14,پندرہ:15,بیس:20};return y.replace(new RegExp(Object.keys(d).join("|"),"g"),k=>d[k])}else return y},de=(y,d)=>{if(document.activeElement===y){let k=y.selectionStart,P=y.selectionEnd,O=y.value;y.value=(O.substring(0,k)+d+O.substring(P)).trim(),y.selectionStart=y.selectionEnd=k+d.length}else y.value+=d.trim()},ue=()=>{a.style.display="block",L.innerHTML=` `},me=()=>{a.style.display="none",L.innerHTML=` `},G=()=>{let y=performance.now();n||y-r{let d=new Set([document.body]);e.forEach((P,O)=>{O.classList.remove("isonomy_tooltip-element","isonomy_dynamic-element",P),e.delete(O)}),document.querySelectorAll("button, a, textarea, input, input[type='radio'], input[type='checkbox']").forEach(P=>{let O=le(P),ie=[...d].some(z=>z==null?void 0:z.contains(P));if(O&&ie){if(!e.has(P)){let z="element-"+(e.size+1);e.set(P,z),P.classList.add("isonomy_tooltip-element","isonomy_dynamic-element",z),P.dataset.tooltipId=z.replace("element-","")}}else if(e.has(P)){let z=e.get(P);P.classList.remove("isonomy_tooltip-element","isonomy_dynamic-element",z),e.delete(P)}}),h.value=="0"&&pe(),r=y,n=!1}))};return{init:()=>"webkitSpeechRecognition"in window?(E(),V(),Z(),R(),q(),!0):(console.log("Your browser does not support speech recognition. Please use Google Chrome."),!1),showCommands:ue,hideCommands:me,enable:()=>{console.log("Voice Assistant Enabled!"),_||(E(),Z(),R(),V(),q()),_&&(_.style.display="block"),localStorage.getItem("showWidget")&&x.click()},disable:()=>{console.log("Voice Assistant Disabled!"),l&&l.classList.contains("isonomy-is-listening")&&B(),_&&(_.style.display="none"),g&&(g.style.display="none"),localStorage.removeItem("showWidget"),localStorage.removeItem("voiceStatus")}}})(),$=(()=>{const t=w.getPreferences();function e(b,m,v){return function(...p){if(typeof b=="function"){const g=b.apply(this,p);return J.trackEvent(m,{featureName:v,parameters:p,isEnabled:m==="FeatureEnabled"}),g}else console.warn(`Expected a function for feature "${v}", but got ${typeof b}`)}}const s=()=>{var _;const b=(_=document.querySelector(".Accessify_Container"))==null?void 0:_.shadowRoot;if(!b){console.warn("Shadow root not found.");return}const m=b.querySelectorAll(".Accessify_Profiles_Button"),v=b.querySelectorAll("#Accessify_Features_Button");m.forEach(L=>{L.classList.remove("Accessify_profile_active");const c=L.querySelector(".Accessify_icon_active");c&&c.classList.remove("Accessify_icon_active")}),v.forEach(L=>{L.classList.remove("Accessify_feature_active"),L.setAttribute("data-click-count","0");const c=L.querySelector(".Accessify_check-icon-container");c&&(c.innerHTML=""),L.querySelectorAll(".Accessify_smallDivs").forEach(l=>{l.style.backgroundColor="#ccc"})});const p=b.querySelector(".TextColor_Selected");p&&p.classList.remove("TextColor_Selected");const g=b.querySelector(".TitleColor_Selected");g&&g.classList.remove("TitleColor_Selected");const x=b.querySelector(".BackgroundColor_Selected");x&&x.classList.remove("BackgroundColor_Selected")},o={enableAlignText:e(_e.enable,"FeatureEnabled","AlignText"),disableAlignText:e(_e.disable,"FeatureDisabled","AlignText"),enableContrast:e(we.enable,"FeatureEnabled","Contrast"),disableContrast:e(we.disable,"FeatureDisabled","Contrast"),enableSaturation:e(xe.enable,"FeatureEnabled","Saturation"),disableSaturation:e(xe.disable,"FeatureDisabled","Saturation"),enableReadingMask:e(X.enable,"FeatureEnabled","ReadingMask"),disableReadingMask:e(X.disable,"FeatureDisabled","ReadingMask"),enableMediaAltText:e(Ce.enable,"FeatureEnabled","MediaAltText"),disableMediaAltText:e(Ce.disable,"FeatureDisabled","MediaAltText"),enableVoiceNavigation:e(je.enable,"FeatureEnabled","VoiceNavigator"),disableVoiceNavigation:e(je.disable,"FeatureDisabled","VoiceNavigator"),enableCursor:e(Q.enable,"FeatureEnabled","Cursor"),disableCursor:e(Q.disable,"FeatureDisabled","Cursor"),enableBrightness:e(Le.enable,"FeatureEnabled","Brightness"),disableBrightness:e(Le.disable,"FeatureDisabled","Brightness"),enableFonts:e(Ee.enable,"FeatureEnabled","Fonts"),disableFonts:e(Ee.disable,"FeatureDisabled","Fonts"),enableHighlightHover:e(ke.enable,"FeatureEnabled","HighlightHover"),disableHighlightHover:e(ke.disable,"FeatureDisabled","HighlightHover"),enablePauseAnimations:e(ge.enable,"FeatureEnabled","PauseAnimations"),disablePauseAnimations:e(ge.disable,"FeatureDisabled","PauseAnimations"),enableHighlightFocus:e(Fe.enable,"FeatureEnabled","HighlightFocus"),disableHighlightFocus:e(Fe.disable,"FeatureDisabled","HighlightFocus"),enableTextToSpeech:e((b=1)=>{console.log("Text to speech enabled with speed:",b),typeof b=="number"&&W.setRate(b),W.initializeSelectionListener(),W.initiateSpeech("Text To speach enabled")},"FeatureEnabled","TextToSpeech"),disableTextToSpeech:e(()=>{console.log("Text to speech disabled."),W.cancel(),W.removeSelectionListener()},"FeatureDisabled","TextToSpeech"),pauseTextToSpeech:e(()=>{console.log("Text to speech paused."),W.pause()},"FeaturePaused","TextToSpeech"),resumeTextToSpeech:e(()=>{console.log("Text to speech resumed."),W.resume()},"FeatureResumed","TextToSpeech"),enableColorPalette:e(Te.enable,"FeatureEnabled","ColorPalette"),disableColorPalette:e(Te.disable,"FeatureDisabled","ColorPalette"),enableIncreaseFontSize:e(Pe.enable,"FeatureEnabled","IncreaseFontSize"),disableIncreaseFontSize:e(Pe.disable,"FeatureDisabled","IncreaseFontSize"),enableIncreaseLetterSpacing:e(Ne.enable,"FeatureEnabled","IncreaseLetterSpacing"),disableIncreaseLetterSpacing:e(Ne.disable,"FeatureDisabled","IncreaseLetterSpacing"),enableIncreaseLineHeight:e(Ie.enable,"FeatureEnabled","IncreaseLineHeight"),disableIncreaseLineHeight:e(Ie.disable,"FeatureDisabled","IncreaseLineHeight"),enableDecreaseLineHeight:e(He.enable,"FeatureEnabled","DecreaseLineHeight"),disableDecreaseLineHeight:e(He.disable,"FeatureDisabled","DecreaseLineHeight"),enableReadingGuide:e(b=>{console.log("Reading guide enabled with setting:",b),b==="readingGuide"&&(Q.disable(),ae.disable(),X.disable(),ae.enable()),b==="readingMask"&&(Q.disable(),ae.disable(),X.disable(),X.enable())},"FeatureEnabled","ReadingGuide"),disableReadingGuide:e(()=>{Q.disable(),ae.disable(),X.disable()},"FeatureDisabled","ReadingGuide"),enableZoomScreenIncrease:e(Be.enable,"FeatureEnabled","ZoomScreenIncrease"),disableZoomScreen:e(Be.disable,"FeatureDisabled","ZoomScreen"),enableUnderlineHeaders:e(Me.enable,"FeatureEnabled","UnderlineHeaders"),disableUnderlineHeaders:e(Me.disable,"FeatureDisabled","UnderlineHeaders"),enableUnderlineLinks:e($e.enable,"FeatureEnabled","UnderlineLinks"),disableUnderlineLinks:e($e.disable,"FeatureDisabled","UnderlineLinks"),enableMuteSounds:e(()=>{De.muteSounds(),console.log("All sounds muted.")},"FeatureEnabled","MuteSounds"),disableMuteSounds:e(()=>{De.unmuteSounds(),console.log("All sounds unmuted.")},"FeatureDisabled","MuteSounds"),enableGrayscale:e(qe.enable,"FeatureEnabled","Grayscale"),disableGrayscale:e(qe.disable,"FeatureDisabled","Grayscale"),enableHideImages:e(ze.enable,"FeatureEnabled","HideImages"),disableHideImages:e(ze.disable,"FeatureDisabled","HideImages"),enableHighContrast:e(Re.enable,"FeatureEnabled","HighContrast"),disableHighContrast:e(Re.disable,"FeatureDisabled","HighContrast"),enableInvertColors:e(Oe.enable,"FeatureEnabled","InvertColors"),disableInvertColors:e(Oe.disable,"FeatureDisabled","InvertColors"),disableKeyboardNavigation:e(Ke.disable,"FeatureDisabled","KeyboardNavigation"),enableKeyboardNavigation:()=>{Ke.init()}},n=e(()=>{for(const[b,m]of Object.entries(t))o[b]&&m&&o[b]()},"Initialization","AccessibilityFeatures"),r=e(()=>{for(const[b,m]of Object.entries(o))b.startsWith("disable")&&typeof m=="function"&&m();ot.enable(),s(),w.savePreferences({},"accessibilitySettings")},"ResetAllSettings","AccessibilityFeatures");return{...o,textToSpeech:W,initialize:n,resetAllSettings:r}})(),ye=(()=>{window.AccessibilityFeatures||(window.AccessibilityFeatures=$);let t=w.getPreferences("accessibilitySettings")||{};const e=async()=>(await f.init(),{[f.t("profile.Mi")]:{features:["Pause Animations","Show Tooltips"],icon:"Motor_Impaired",key:"profile.Mi"},[f.t("profile.Bl")]:{features:["Text-to-Speech"],icon:"Blind",key:"profile.Bl"},[f.t("profile.CB")]:{features:["Saturation"],icon:"Color_Blind",key:"profile.CB"},[f.t("profile.Dy")]:{features:["Dyslexic Font","Pause Animations"],icon:"Dyslexia",key:"profile.Dy"},[f.t("profile.Vi")]:{features:["Zoom Screen","Font Sizing","Saturation","Pause Animations","Show Tooltips","Dyslexic Font","Big Cursor"],icon:"Visually-Impaired",key:"profile.Vi"},[f.t("profile.Cl")]:{features:["Highlight Focus","Reading Guide","Show Tooltips","Pause Animations"],icon:"Cognitive&Learning",key:"profile.Cl"},[f.t("profile.Se")]:{features:["Pause Animations","Saturation"],icon:"Seizure&Epileptic",key:"profile.Se"},[f.t("profile.Adhd")]:{features:["Saturation","Reading Guide","Pause Animations"],icon:"ADHD",key:"profile.Adhd"}});let s={};e().then(x=>{s=x});const o={"Pause Animations":"disablePauseAnimations","Show Tooltips":"disableMediaAltText","Text-to-Speech":"disableTextToSpeech",Saturation:"disableSaturation","Dyslexic Font":"disableFonts","Big Cursor":"disableCursor","Readable Font":"disableFonts","Zoom Screen":"disableZoomScreen","Font Sizing":"disableIncreaseFontSize","Highlight Focus":"disableHighlightFocus","Reading Guide":"disableReadingGuide","Pause Animations":"disablePauseAnimations","Highlight Hover":"disableHighlightHover"},n=(x,_)=>{var c;m(_);const L=(c=s[x])==null?void 0:c.features;L&&(L.forEach(a=>{const l=v(a);if(l&&$[l.applyFunctionName]){let u=l.settings?l.settings[0]:!0,S=1;l.applyFunctionName==="enableSaturation"?(x==="Seizure & Epileptic"||x==="ADHD"?(u="lowSaturation",S=1):(u="highSaturation",S=2),$.enableSaturation(u)):l.applyFunctionName==="enableReadingGuide"?x==="ADHD"&&(u="readingMask",S=2,$.disableReadingGuide(),$.enableReadingGuide(u)):(l.applyFunctionName==="enableFonts"&&x==="Visually-Impaired"&&(u="dyslexicFont",S=2),$[l.applyFunctionName](u)),t[a]={active:!0,value:u,clickCount:S},b(a,!0,S,_)}}),t.activeProfile=x,w.savePreferences(t,"accessibilitySettings"))},r=(x,_)=>{var c;const L=(c=s[x])==null?void 0:c.features;L&&(L.forEach(a=>{const l=o[a];l&&$[l]&&($[l](),delete t[a],b(a,!1,0,_))}),t.activeProfile=null,w.savePreferences(t,"accessibilitySettings"))},b=(x,_,L,c)=>{const a=c.querySelector(`[data-feature-name="${x}"]`);if(a){if(_){a.classList.add("Accessify_feature_active"),a.setAttribute("data-click-count",L.toString());const u=a.querySelector(".Accessify_check-icon-container");u&&(u.innerHTML=I.checkIconSvg)}else{a.classList.remove("Accessify_feature_active"),a.setAttribute("data-click-count","0");const u=a.querySelector(".Accessify_check-icon-container");u&&(u.innerHTML="")}const l=a.querySelectorAll(".Accessify_smallDivs");l&&l.forEach((u,S)=>{_&&S{Object.keys(t).length!=0&&(Object.keys(t).forEach(_=>{if(_!=="activeProfile"&&t[_].active!==void 0){const L=o[_];L&&$[L]&&($[L](),t[_].active=!1,t[_].value=!1,t[_].clickCount=0,b(_,!1,0,x))}}),w.savePreferences(t,"accessibilitySettings"))},v=x=>window.allFeatureOptions.find(_=>_.text===x)||null;return{createProfilesFeatureUI:async(x,_)=>{const L=Object.entries(s).map(([T,B])=>({text:T,icon:B.icon,dataAttr:{"data-i18n":B.key},textClass:"",svgClass:"Accessify_svg_align"})),a=(f.init(),{[f.t("profile.Mi")]:["enabledTooltips","enabledStopAnimations"],[f.t("profile.Bl")]:["enabledTextToSpeech"],[f.t("profile.CB")]:["enabledSaturation"],[f.t("profile.Dy")]:["enabledDyslexicFont","enabledStopAnimations"],[f.t("profile.Vi")]:["enabledZoomScreen","enabledFontSizing","enabledSaturation","enabledContrast","enabledAdjustTextColor","enabledAdjustTitlesColor","enabledAdjustBackgroundColor","enabledLinkNavigator","enabledLetterSpacing","enabledTextAlignment","enabledReadingMode","enabledBigCursor"],[f.t("profile.Cl")]:["enabledHighlightFocus","enabledReadingMode","enabledTooltips","enabledStopAnimations","enabledHighlightHover","enabledHideImages","enabledMuteSounds"],[f.t("profile.Se")]:["enabledStopAnimations","enabledSaturation"],[f.t("profile.Adhd")]:["enabledSaturation","enabledReadingMode","enabledStopAnimations"]});function l(T,B,M){const D=[];for(let V in T)if(T[V].some(q=>B[q]==="false")){const q=M.findIndex(le=>le.text.replace(/[^a-zA-Z]/g,"")===V.replace(/[^a-zA-Z]/g,""));q!==-1&&D.push(q)}return D}function u(T,B){B.sort((M,D)=>D-M);for(let M of B)M>=0&&M');C("h4","h4",A,f.t("profiles.title"),null,{"data-i18n":"profiles.title"});const i=U(A,"rightArrow");C("hr",null,h);const E=C("div","Accessify_HideProfiles_Content",h,'
',null);E.style.display="none",A.onclick=()=>{E.style.display=E.style.display==="none"?"block":"none",i.style.transform=E.style.display==="block"?"rotate(90deg)":"rotate(0deg)"},L.forEach(T=>{const B=C("button","Accessify_Profiles_Button",E.firstChild,``),M=B.querySelector("svg");C("div",T.textClass,B,T.text,null,T.dataAttr);const D=C("div","Accessify_check-icon-container",B);t.activeProfile===T.text&&(B.classList.add("Accessify_profile_active"),D.innerHTML=I.checkIconSvg,M.classList.add("Accessify_icon_active")),B.addEventListener("click",()=>{B.classList.contains("Accessify_profile_active")?(B.classList.remove("Accessify_profile_active"),D.innerHTML="",M.classList.remove("Accessify_icon_active"),r(T.text,_)):(E.firstChild.querySelectorAll(".Accessify_Profiles_Button").forEach(R=>{R.classList.remove("Accessify_profile_active"),R.querySelector(".Accessify_check-icon-container").innerHTML="";const q=R.querySelector("svg");q&&q.classList.remove("Accessify_icon_active")}),B.classList.add("Accessify_profile_active"),D.innerHTML=I.checkIconSvg,M.classList.add("Accessify_icon_active"),n(T.text,_))})})},initialize:x=>{t.activeProfile&&n(t.activeProfile,x)},enableProfileFeatures:n,disableProfileFeatures:r}})();class at{constructor(e){this.shadowRoot=e,this.modal=C("div","Accessify_Settings_Modal",this.shadowRoot),this.modal.style.display="none",this.buildModal()}buildModal(){const e=C("div","Accessify_Settings_Modal_Content",this.modal),s=C("div","Accessify_Settings_Modal_header",e);C("h3","Accessify_Modal_Title",s,"Accessibility Statement for Isonomy – Web Accessibility"),C("button","Accessify_Settings_Modal_close",s,'').addEventListener("click",()=>this.hide());const n=C("div","Accessify_Settings_Modal_body",e);n.style.padding="16px",n.style.overflowY="auto",n.style.maxHeight="80vh",n.style.overflowX="hidden",this.createKeyboardNavigationSection(n),this.createAccessibilityStatementSection(n)}createKeyboardNavigationSection(e){C("div","Accessify_Section_Container",e)}createAccessibilityStatementSection(e){const s=C("div","Accessify_Statement_Section",e),o=C("div","Accessify_Statement_Content",s);o.innerHTML=`

Commitment to Accessibility

At Isonomy, we believe that the web should be inclusive and accessible to everyone. Our mission is to empower Shopify merchants with tools that make their online stores accessible to the widest possible audience—regardless of ability.

We are fully committed to ensuring digital equality and work to conform to the Web Content Accessibility Guidelines (WCAG) 2.1, at the AA level, established by the World Wide Web Consortium (W3C). These guidelines serve as a benchmark for making content accessible to individuals with disabilities, including visual, motor, auditory, speech, and cognitive impairments.

Accessibility Features Provided by Isonomy

Isonomy equips your store with an AI-powered accessibility layer and user-friendly customization interface. The app actively remediates accessibility gaps in real-time and enables individual users to personalize their experience through assistive profiles.

Screen Reader & Keyboard Support

ARIA Labels & Roles: Enhances semantic clarity for screen readers by applying ARIA attributes to key elements (buttons, forms, modals, navigation menus).

Screen Reader Mode: Activates via keyboard shortcut (Alt+1), triggering optimized accessibility behaviors compatible with JAWS, NVDA, VoiceOver, and TalkBack.

Keyboard Navigation Enhancements: Enables full keyboard operability including tab order management, dropdown control with arrow keys, and modal focus traps.

Disability Profiles Available

Isonomy supports multiple accessibility modes to accommodate various disabilities:

  • Epilepsy Safe Mode: Disables flashing animations and high-contrast sequences to prevent seizures.
  • Vision Impaired Mode: Enhances readability for users with cataracts, glaucoma, or partial blindness.
  • Cognitive Disability Mode: Simplifies page layouts and highlights key elements to reduce cognitive load.
  • ADHD Friendly Mode: Minimizes on-page distractions for easier concentration.
  • Blind Users Profile: Seamless compatibility with screen reader software.
  • Motor-Impaired Mode: Full website control using only keyboard inputs with skip links and shortcut keys (e.g., H for headings, F for forms, B for buttons).

UI and Content Customizations

Typography Controls: Adjust font size, family, spacing, and alignment.

Color Contrast Tools: Toggle between light/dark modes, inverted colors, and custom contrast schemes.

Content Highlighting: Emphasize links, buttons, and interactive elements on hover/focus.

Animation Control: Instantly stop autoplaying media and transitions for reduced motion sensitivity.

Audio Mute: Disable all site audio for users with auditory sensitivity or assistive hearing devices.

Virtual Keyboard: Assist users with limited physical input devices.

Technology and Compatibility

Isonomy is engineered for compatibility with all major browsers and assistive technologies, including:

  • Browsers: Chrome, Firefox, Safari, Microsoft Edge, Opera
  • Screen Readers: JAWS, NVDA, VoiceOver, TalkBack
  • Devices: Supports accessibility on desktops, tablets, and mobile phones

Feedback and Continuous Improvement

Accessibility is an ongoing process. We are continuously improving Isonomy to support new standards, technologies, and merchant needs. If you encounter accessibility issues or have suggestions, we welcome your feedback through our support form on the Shopify App Store listing.

`}toggleNavigation(e){const s=new CustomEvent("keyboardNavigationToggled",{detail:{enabled:e},bubbles:!0,composed:!0});this.shadowRoot.dispatchEvent(s)}show(){this.modal.style.display="block",this.modal.classList.add("show-Accessify_Settings_Modal")}hide(){this.modal.style.display="none",this.modal.classList.remove("show-Accessify_Settings_Modal")}}function rt(t){const{AccessibilityFeatures:e,AccessifyFeatureSettings:s}=window;function o(a){return a.querySelector('[data-feature-name="Big Cursor"]')||a.querySelector('[data-feature-name="Zoom Screen"]')||a.querySelector('[data-feature-name="Brightness"]')}function n(a,l,u={}){const S="Navigation",h=C("div",`Accessify_${S}_Main`,l),A=C("div",`Accessify_${S}_dropdown`,h,``);C("h4","h4",A,a,null,u);const i=U(A,"rightArrow");C("hr",null,h);const E=C("div",`Accessify_Hide${S}_Content`,h,`
`);return E.style.display="none",i.style.transform="rotate(0deg)",A.onclick=()=>{const T=E.style.display==="none";E.style.display=T?"block":"none",i.style.transform=T?"rotate(90deg)":"rotate(0deg)"},h}function r(a,l){const u=a.querySelector("#Accessify_HideNavigation_Area");return j(u,l,"Accessify_Features_Button",{checkIcon:I.checkIconSvg}),u}function b(a){var S;const l=(S=document.querySelector(".Accessify_Container"))==null?void 0:S.shadowRoot;if(!l)return;let u=l.querySelector(".Accessify_Navigation_Main");if(a==="true"){u||(u=n(f.t("features.navigation"),t,{"data-i18n":"features.navigation"})),u.style.display==="none"&&(u.style.display="block");const h=u.querySelector("#Accessify_HideNavigation_Area");if(!h.querySelector('[data-feature-name="Big Cursor"]')){const i={featureKey:"navigation.bigCursor.text",featureLabelKey:"navigation.bigCursor.featureLabel",text:f.t("navigation.bigCursor.text"),featureLabel:f.t("navigation.bigCursor.featureLabel"),icon:"Big_Cursor",includeSmallDivContainer:!0,smallDivContainerCounter:2,settings:["bigWhiteCursor","bigBlackCursor"],applyFunction:E=>{e.enableCursor(E)},resetFunction:()=>{e.disableCursor()},applyFunctionName:"enableCursor",featureName:"Big Cursor"};j(h,[i],"Accessify_Features_Button",{checkIcon:I.checkIconSvg})}}else if(a==="false"&&u){const h=u.querySelector('[data-feature-name="Big Cursor"]');h&&h.remove(),o(l)||(u.style.display="none")}}function m(a){var S;const l=(S=document.querySelector(".Accessify_Container"))==null?void 0:S.shadowRoot;if(!l)return;let u=l.querySelector(".Accessify_Navigation_Main");if(a==="true"){u||(u=n(f.t("features.navigation"),t,{"data-i18n":"features.navigation"})),u.style.display==="none"&&(u.style.display="block");const h=u.querySelector("#Accessify_HideNavigation_Area");if(!h.querySelector('[data-feature-name="Zoom Screen"]')){const i={featureKey:"navigation.zoomScreen.text",featureLabelKey:"navigation.zoomScreen.featureLabel",text:f.t("navigation.zoomScreen.text"),featureLabel:f.t("navigation.zoomScreen.featureLabel"),icon:"Zoom_Screen",includeSmallDivContainer:!0,smallDivContainerCounter:4,settings:[1.1,1.2,1.3,1.4],applyFunction:E=>{e.enableZoomScreenIncrease(E)},resetFunction:()=>{e.disableZoomScreen(1)},applyFunctionName:"enableZoomScreenIncrease",featureName:"Zoom Screen"};j(h,[i],"Accessify_Features_Button",{checkIcon:I.checkIconSvg})}}else if(a==="false"&&u){const h=u.querySelector('[data-feature-name="Zoom Screen"]');h&&h.remove(),o(l)||(u.style.display="none")}}function v(a){var S;const l=(S=document.querySelector(".Accessify_Container"))==null?void 0:S.shadowRoot;if(!l)return;let u=l.querySelector(".Accessify_Navigation_Main");if(a==="true"){u||(u=n(f.t("features.navigation"),t,{"data-i18n":"features.navigation"})),u.style.display==="none"&&(u.style.display="block");const h=u.querySelector("#Accessify_HideNavigation_Area");if(!h.querySelector('[data-feature-name="Brightness"]')){const i={featureKey:"navigation.brightness.text",featureLabelKey:"navigation.brightness.featureLabel",text:f.t("navigation.brightness.text"),featureLabel:f.t("navigation.brightness.featureLabel"),icon:"Light_Contrast",includeSmallDivContainer:!0,smallDivContainerCounter:3,settings:[-.1,.1,.2],applyFunction:E=>{e.enableBrightness(E)},resetFunction:()=>{e.disableBrightness()},applyFunctionName:"enableBrightness",featureName:"Brightness"};j(h,[i],"Accessify_Features_Button",{checkIcon:I.checkIconSvg})}}else if(a==="false"&&u){const h=u.querySelector('[data-feature-name="Brightness"]');h&&h.remove(),o(l)||(u.style.display="none")}}function p(a,l){return new Proxy(a,{set(u,S,h){const A=u[S];return A!==h&&(u[S]=h,l(S,A,h)),!0},get(u,S){return u[S]}})}function g(a,l,u){const h={enabledDisplayCursor:b,enabledZoomScreen:m,enabledBrightness:v}[a];h?h(u):console.warn(`No handler implemented for feature setting property: ${a}`)}function x(a){const l=[];return a.enabledVoiceNavigation==="true"&&l.push({featureKey:"navigation.voiceNavigation.text",featureLabelKey:"navigation.voiceNavigation.featureLabel",text:f.t("navigation.voiceNavigation.text"),featureLabel:f.t("navigation.voiceNavigation.featureLabel"),icon:"VoiceNav",includeSmallDivContainer:!1,settings:[!0],applyFunction:()=>{e.enableVoiceNavigation()},resetFunction:()=>{e.disableVoiceNavigation()},applyFunctionName:"enableVoiceNavigation",featureName:"Voice Navigation"}),a.enabledKeyboardNavigation==="true"&&l.push({featureKey:"readableExperience.keyboardnav.text",featureLabelKey:"readableExperience.keyboardnav.featureLabel",text:f.t("readableExperience.keyboardnav.text"),featureLabel:f.t("readableExperience.keyboardnav.featureLabel"),icon:"keyboardNavigation",includeSmallDivContainer:!1,settings:[!0],applyFunction:()=>{e.enableKeyboardNavigation()},resetFunction:()=>{e.disableKeyboardNavigation()},applyFunctionName:"enableKeyboardNavigation",featureName:"Keyboard Navigation"}),a.enabledDisplayCursor==="true"&&l.push({featureKey:"navigation.bigCursor.text",featureLabelKey:"navigation.bigCursor.featureLabel",text:f.t("navigation.bigCursor.text"),featureLabel:f.t("navigation.bigCursor.featureLabel"),icon:"Big_Cursor",includeSmallDivContainer:!0,smallDivContainerCounter:2,settings:["bigWhiteCursor","bigBlackCursor"],applyFunction:u=>{e.enableCursor(u)},resetFunction:()=>{e.disableCursor()},applyFunctionName:"enableCursor",featureName:"Big Cursor"}),a.enabledZoomScreen==="true"&&l.push({featureKey:"navigation.zoomScreen.text",featureLabelKey:"navigation.zoomScreen.featureLabel",text:f.t("navigation.zoomScreen.text"),featureLabel:f.t("navigation.zoomScreen.featureLabel"),icon:"Zoom_Screen",includeSmallDivContainer:!0,smallDivContainerCounter:4,settings:[1.1,1.2,1.3,1.4],applyFunction:u=>{e.enableZoomScreenIncrease(u)},resetFunction:()=>{e.disableZoomScreen(1)},applyFunctionName:"enableZoomScreenIncrease",featureName:"Zoom Screen"}),a.enabledBrightness==="true"&&l.push({featureKey:"navigation.brightness.text",featureLabelKey:"navigation.brightness.featureLabel",text:f.t("navigation.brightness.text"),featureLabel:f.t("navigation.brightness.featureLabel"),icon:"Light_Contrast",includeSmallDivContainer:!0,smallDivContainerCounter:3,settings:[-.1,.1,.2],applyFunction:u=>{e.enableBrightness(u)},resetFunction:()=>{e.disableBrightness()},applyFunctionName:"enableBrightness",featureName:"Brightness"}),l}const _=window.AccessifyFeatureSettings||{};window.AccessifyFeatureSettings=p(_,g);const L=x(s);if(L.length===0)return[];const c=n(f.t("features.navigation"),t,{"data-i18n":"features.navigation"});return r(c,L),L}function lt(t){function e(c){const a=[];return c.enabledTooltips==="true"&&a.push({featureKey:"readableExperience.tooltips.text",featureLabelKey:"readableExperience.tooltips.featureLabel",text:f.t("readableExperience.tooltips.text"),featureLabel:f.t("readableExperience.brightness.featureLabel"),icon:"Text_Magnifier",includeSmallDivContainer:!1,settings:[!0],applyFunction:()=>{g.enableMediaAltText()},resetFunction:()=>{g.disableMediaAltText()},applyFunctionName:"enableMediaAltText",featureName:"Show Tooltips"}),c.enabledFontSizing==="true"&&a.push({featureKey:"readableExperience.fontSize.text",featureLabelKey:"readableExperience.fontSize.featureLabel",text:f.t("readableExperience.fontSize.text"),featureLabel:f.t("readableExperience.fontSize.featureLabel"),icon:"Font_Sizing",includeSmallDivContainer:!0,smallDivContainerCounter:3,settings:[1.2,1.3,1.4],applyFunction:l=>{g.enableIncreaseFontSize(l)},resetFunction:()=>{g.disableIncreaseFontSize()},applyFunctionName:"enableIncreaseFontSize",featureName:"Font Sizing"}),c.enabledLetterSpacing==="true"&&a.push({featureKey:"readableExperience.letterSpacing.text",featureLabelKey:"readableExperience.letterSpacing.featureLabel",text:f.t("readableExperience.letterSpacing.text"),featureLabel:f.t("readableExperience.letterSpacing.featureLabel"),icon:"Letter_Spacing",includeSmallDivContainer:!0,smallDivContainerCounter:3,settings:[1,2,3],applyFunction:l=>{g.enableIncreaseLetterSpacing(l)},resetFunction:()=>{g.disableIncreaseLetterSpacing()},applyFunctionName:"enableIncreaseLetterSpacing",featureName:"Letter Spacing"}),c.enabledTextAlignment==="true"&&a.push({featureKey:"readableExperience.alignText.text",featureLabelKey:"readableExperience.alignText.featureLabel",text:f.t("readableExperience.alignText.text"),featureLabel:f.t("readableExperience.alignText.featureLabel"),icon:"Align_Text",includeSmallDivContainer:!0,smallDivContainerCounter:4,settings:["right","center","justify","left"],applyFunction:l=>{g.enableAlignText(l)},resetFunction:()=>{g.disableAlignText()},applyFunctionName:"enableAlignText",featureName:"Align Text"}),a}function s(c){return c.querySelector('[data-feature-name="Show Tooltips"]')||c.querySelector('[data-feature-name="Font Sizing"]')||c.querySelector('[data-feature-name="Letter Spacing"]')||c.querySelector('[data-feature-name="Align Text"]')}function o(c,a,l={}){const u="ReadableExperience",S=C("div",`Accessify_${u}_Main`,a),h=C("div",`Accessify_${u}_dropdown`,S,'');C("h4","h4",h,n(c),null,l);const A=U(h,"rightArrow");C("hr",null,S);const i=C("div",`Accessify_Hide${u}_Content`,S,`
`);return i.style.display="none",A.style.transform="rotate(0deg)",h.onclick=()=>{const E=i.style.display==="none";i.style.display=E?"block":"none",A.style.transform=E?"rotate(90deg)":"rotate(0deg)"},S}function n(c){return c.replace(/([A-Z])/g," $1").trim()}function r(c,a){const l=c.querySelector("#Accessify_HideReadableExperience_Area");return j(l,a,"Accessify_Features_Button",{checkIcon:I.checkIconSvg}),l}function b(c){var i;const{featureName:a,applyFunction:l,resetFunction:u,applyFunctionName:S}=c;console.log({featureOption:c});const h=(i=document.querySelector(".Accessify_Container"))==null?void 0:i.shadowRoot;if(!h)return;let A=h.querySelector(".Accessify_ReadableExperience_Main");if(c.enabled==="true"){A||(A=o(f.t("features.readableExperience"),t,{"data-i18n":"features.readableExperience"})),A.style.display==="none"&&(A.style.display="block");const E=A.querySelector("#Accessify_HideReadableExperience_Area");E.querySelector(`[data-feature-name="${a}"]`)||j(E,[c],"Accessify_Features_Button",{checkIcon:I.checkIconSvg})}else if(c.enabled==="false"&&A){const E=A.querySelector(`[data-feature-name="${a}"]`);E&&E.remove(),s(h)||(A.style.display="none")}}function m(c,a){return new Proxy(c,{set(l,u,S){const h=l[u];return h!==S&&(l[u]=S,a(u,h,S)),!0},get(l,u){return l[u]}})}function v(c,a,l){const S={enabledTooltips:h=>{const A={featureName:"Show Tooltips",featureKey:"readableExperience.tooltips.text",featureLabelKey:"readableExperience.tooltips.featureLabel",text:f.t("readableExperience.tooltips.text"),featureLabel:f.t("readableExperience.brightness.featureLabel"),icon:"Text_Magnifier",includeSmallDivContainer:!1,settings:[!0],enabled:h,applyFunction:()=>g.enableMediaAltText(),resetFunction:()=>g.disableMediaAltText(),applyFunctionName:"enableMediaAltText"};b(A)},enabledFontSizing:h=>{const A={featureName:"Font Sizing",featureKey:"readableExperience.fontSize.text",featureLabelKey:"readableExperience.fontSize.featureLabel",text:f.t("readableExperience.fontSize.text"),featureLabel:f.t("readableExperience.fontSize.featureLabel"),icon:"Font_Sizing",includeSmallDivContainer:!0,smallDivContainerCounter:3,settings:[1.2,1.3,1.4],enabled:h,applyFunction:i=>{g.enableIncreaseFontSize(i)},resetFunction:g.disableIncreaseFontSize,applyFunctionName:"enableIncreaseFontSize"};b(A)},enabledLetterSpacing:h=>{const A={featureName:"Letter Spacing",featureKey:"readableExperience.letterSpacing.text",featureLabelKey:"readableExperience.letterSpacing.featureLabel",text:f.t("readableExperience.letterSpacing.text"),featureLabel:f.t("readableExperience.letterSpacing.featureLabel"),icon:"Letter_Spacing",includeSmallDivContainer:!0,smallDivContainerCounter:3,settings:[1,2,3],enabled:h,applyFunction:i=>{g.enableIncreaseLetterSpacing(i)},resetFunction:g.disableIncreaseLetterSpacing,applyFunctionName:"enableIncreaseLetterSpacing"};b(A)},enabledTextAlignment:h=>{const A={featureName:"Align Text",featureKey:"readableExperience.alignText.text",featureLabelKey:"readableExperience.alignText.featureLabel",text:f.t("readableExperience.alignText.text"),featureLabel:f.t("readableExperience.alignText.featureLabel"),icon:"Align_Text",includeSmallDivContainer:!0,smallDivContainerCounter:4,settings:["right","center","justify","left"],enabled:h,applyFunction:i=>{g.enableAlignText(i)},resetFunction:g.disableAlignText,applyFunctionName:"enableAlignText"};b(A)}}[c];S?S(l):console.warn(`No handler implemented for feature setting property: ${c}`)}const p=window.AccessifyFeatureSettings||{};window.AccessifyFeatureSettings=m(p,v);const{AccessibilityFeatures:g,AccessifyFeatureSettings:x}=window,_=e(x);if(_.length===0)return[];const L=o(f.t("features.readableExperience"),t,{"data-i18n":"features.readableExperience"});return r(L,_),_}function ct(t){function e(c){const a=[];return c.enabledContrast==="true"&&a.push({featureKey:"pleasingExperience.invertColors.text",featureLabelKey:"pleasingExperience.invertColors.featureLabel",text:f.t("pleasingExperience.invertColors.text"),featureLabel:f.t("pleasingExperience.invertColors.featureLabel"),icon:"High_Contrast",includeSmallDivContainer:!1,settings:[!0],applyFunction:l=>{g.enableContrast("invertColors")},resetFunction:()=>{g.disableContrast()},applyFunctionName:"enableContrast",featureName:"Contrast"}),c.enabledSaturation==="true"&&a.push({featureKey:"pleasingExperience.saturation.text",featureLabelKey:"pleasingExperience.saturation.featureLabel",text:f.t("pleasingExperience.saturation.text"),featureLabel:f.t("pleasingExperience.saturation.featureLabel"),icon:"High_Saturation",includeSmallDivContainer:!0,smallDivContainerCounter:3,settings:["lowSaturation","highSaturation","monochrome"],applyFunction:l=>{l?g.enableSaturation(l):console.error("Invalid saturation setting")},resetFunction:()=>{g.disableSaturation()},applyFunctionName:"enableSaturation",featureName:"Saturation"}),c.enabledDyslexicFont==="true"&&a.push({featureKey:"pleasingExperience.dyslexia.text",featureLabelKey:"pleasingExperience.dyslexia.featureLabel",text:f.t("pleasingExperience.dyslexia.text"),featureLabel:f.t("pleasingExperience.dyslexia.featureLabel"),icon:"Dyslexia",includeSmallDivContainer:!0,smallDivContainerCounter:2,settings:["dyslexicFont","readableFont"],applyFunction:l=>{g.enableFonts(l)},resetFunction:()=>{g.disableFonts()},applyFunctionName:"enableFonts",featureName:"Dyslexic Font"}),a}function s(c){return c.querySelector('[data-feature-name="Contrast"]')||c.querySelector('[data-feature-name="Color Theme"]')||c.querySelector('[data-feature-name="Dyslexic Font"]')}function o(c,a,l={}){const u="PleasingExperience",S=C("div",`Accessify_${u}_Main`,a),h=C("div",`Accessify_${u}_dropdown`,S,'');C("h4","h4",h,n(c),null,l);const A=U(h,"rightArrow");C("hr",null,S);const i=C("div",`Accessify_Hide${u}_Content`,S,`
`);return i.style.display="none",A.style.transform="rotate(0deg)",h.onclick=()=>{const E=i.style.display==="none";i.style.display=E?"block":"none",A.style.transform=E?"rotate(90deg)":"rotate(0deg)"},S}function n(c){return c.replace(/([A-Z])/g," $1").trim()}function r(c,a){const l=c.querySelector("#Accessify_HidePleasingExperience_Area");return j(l,a,"Accessify_Features_Button",{checkIcon:I.checkIconSvg}),l}function b(c){var i;const{featureName:a,applyFunction:l,resetFunction:u,applyFunctionName:S}=c,h=(i=document.querySelector(".Accessify_Container"))==null?void 0:i.shadowRoot;if(!h)return;let A=h.querySelector(".Accessify_PleasingExperience_Main");if(c.enabled==="true"){A||(A=o(f.t("features.pleasingExperience"),t,{"data-i18n":"features.pleasingExperience"})),A.style.display==="none"&&(A.style.display="block");const E=A.querySelector("#Accessify_HidePleasingExperience_Area");E.querySelector(`[data-feature-name="${a}"]`)||j(E,[c],"Accessify_Features_Button",{checkIcon:I.checkIconSvg}),typeof l=="function"?l():console.warn(`applyFunction is not a function for feature: ${a}`)}else if(c.enabled==="false"&&A){const E=A.querySelector(`[data-feature-name="${a}"]`);E&&E.remove(),typeof u=="function"?u():console.warn(`resetFunction is not a function for feature: ${a}`),s(h)||(A.style.display="none")}}function m(c,a){return new Proxy(c,{set(l,u,S){const h=l[u];return h!==S&&(l[u]=S,a(u,h,S)),!0},get(l,u){return l[u]}})}function v(c,a,l){const S={enabledContrast:h=>{const A={featureName:"Contrast",featureKey:"pleasingExperience.invertColors.text",featureLabelKey:"pleasingExperience.invertColors.featureLabel",text:f.t("pleasingExperience.invertColors.text"),featureLabel:f.t("pleasingExperience.invertColors.featureLabel"),icon:"High_Contrast",includeSmallDivContainer:!0,smallDivContainerCounter:3,settings:["invertColors","highContrast","lowContrast"],enabled:h,applyFunction:i=>{i?g.enableContrast(i):console.error("Invalid contrast setting")},resetFunction:g.disableContrast,applyFunctionName:"enableContrast"};b(A)},enabledSaturation:h=>{const A={featureName:"Saturation",featureKey:"pleasingExperience.saturation.text",featureLabelKey:"pleasingExperience.saturation.featureLabel",text:f.t("pleasingExperience.saturation.text"),featureLabel:f.t("pleasingExperience.saturation.featureLabel"),icon:"High_Saturation",includeSmallDivContainer:!0,smallDivContainerCounter:4,settings:["lowSaturation","highSaturation","monochrome"],enabled:h,applyFunction:i=>{i?g.enableSaturation(i):console.error("Invalid saturation setting")},resetFunction:g.disableSaturation,applyFunctionName:"enableSaturation"};b(A)},enabledDyslexicFont:h=>{const A={featureName:"Dyslexic Font",featureKey:"pleasingExperience.dyslexia.text",featureLabelKey:"pleasingExperience.dyslexia.featureLabel",text:f.t("pleasingExperience.dyslexia.text"),featureLabel:f.t("pleasingExperience.dyslexia.featureLabel"),icon:"Dyslexia",includeSmallDivContainer:!0,smallDivContainerCounter:2,settings:["dyslexicFont","readableFont"],enabled:h,applyFunction:i=>{g.enableFonts(i)},resetFunction:g.disableFonts,applyFunctionName:"enableFonts"};b(A)}}[c];S?S(l):console.warn(`No handler implemented for feature setting property: ${c}`)}const p=window.AccessifyFeatureSettings||{};window.AccessifyFeatureSettings=m(p,v);const{AccessibilityFeatures:g,AccessifyFeatureSettings:x}=window,_=e(x);if(_.length===0)return[];const L=o(f.t("features.pleasingExperience"),t,{"data-i18n":"features.pleasingExperience"});return r(L,_),_}function dt(t){const{AccessibilityFeatures:e,AccessifyFeatureSettings:s}=window;function o(c){const a=[];return c.enabledReadingMode==="true"&&a.push({featureKey:"easyOrientation.readingMode.text",featureLabelKey:"easyOrientation.readingMode.featureLabel",text:f.t("easyOrientation.readingMode.text"),featureLabel:f.t("easyOrientation.readingMode.featureLabel"),icon:"Reading_Guide",includeSmallDivContainer:!0,smallDivContainerCounter:2,settings:["readingGuide","readingMask"],applyFunction:l=>{e.enableReadingGuide(l)},resetFunction:()=>{e.disableReadingGuide()},applyFunctionName:"enableReadingGuide",featureName:"Reading Guide"}),c.enabledTextToSpeech==="true"&&a.push({featureKey:"easyOrientation.textToSpeech.text",featureLabelKey:"easyOrientation.textToSpeech.featureLabel",text:f.t("easyOrientation.textToSpeech.text"),featureLabel:f.t("easyOrientation.textToSpeech.featureLabel"),icon:"Text_Speech",includeSmallDivContainer:!0,smallDivContainerCounter:3,settings:[.75,1,1.25],applyFunction:l=>{e.enableTextToSpeech(l)},resetFunction:()=>{e.disableTextToSpeech()},applyFunctionName:"enableTextToSpeech",featureName:"Text-to-Speech"}),c.enabledHighlightFocus==="true"&&a.push({featureKey:"easyOrientation.highlightFocus.text",featureLabelKey:"easyOrientation.highlightFocus.featureLabel",text:f.t("easyOrientation.highlightFocus.text"),featureLabel:f.t("easyOrientation.highlightFocus.featureLabel"),icon:"Highlight_Focus",includeSmallDivContainer:!1,settings:[!0,!1],applyFunction:()=>{e.enableHighlightFocus()},resetFunction:()=>{e.disableHighlightFocus()},applyFunctionName:"enableHighlightFocus",featureName:"Highlight Focus"}),c.enabledHighlightHover==="true"&&a.push({icon:"Highlight_Hover",featureKey:"easyOrientation.highlightHover.text",featureLabelKey:"easyOrientation.highlightHover.featureLabel",text:f.t("easyOrientation.highlightHover.text"),featureLabel:f.t("easyOrientation.highlightHover.featureLabel"),includeSmallDivContainer:!1,settings:[!0,!1],applyFunction:()=>{e.enableHighlightHover()},resetFunction:()=>{e.disableHighlightHover()},applyFunctionName:"enableHighlightHover",featureName:"Highlight Hover"}),c.enabledStopAnimations==="true"&&a.push({featureKey:"easyOrientation.pauseAnimations.text",featureLabelKey:"easyOrientation.pauseAnimations.featureLabel",text:f.t("easyOrientation.pauseAnimations.text"),featureLabel:f.t("easyOrientation.pauseAnimations.featureLabel"),icon:"Stop_Animations",includeSmallDivContainer:!1,settings:[!0,!1],applyFunction:()=>{e.enablePauseAnimations()},resetFunction:()=>{e.disablePauseAnimations()},applyFunctionName:"enablePauseAnimations",featureName:"Pause Animations"}),c.enabledHideImages==="true"&&a.push({icon:"Hide_Images",featureKey:"easyOrientation.hideImages.text",featureLabelKey:"easyOrientation.hideImages.featureLabel",text:f.t("easyOrientation.hideImages.text"),featureLabel:f.t("easyOrientation.hideImages.featureLabel"),includeSmallDivContainer:!1,settings:[!0,!1],applyFunction:()=>{e.enableHideImages()},resetFunction:()=>{e.disableHideImages()},applyFunctionName:"enableHideImages",featureName:"Hide Images"}),c.enabledMuteSounds==="true"&&a.push({featureKey:"easyOrientation.muteSounds.text",featureLabelKey:"easyOrientation.muteSounds.featureLabel",text:f.t("easyOrientation.muteSounds.text"),featureLabel:f.t("easyOrientation.muteSounds.featureLabel"),icon:"Mute_Sounds",includeSmallDivContainer:!1,settings:[!0,!1],applyFunction:()=>{e.enableMuteSounds()},resetFunction:()=>{e.disableMuteSounds()},applyFunctionName:"enableMuteSounds",featureName:"Mute Sounds"}),a}function n(c){return c.querySelector('[data-feature-name="Reading Guide"]')||c.querySelector('[data-feature-name="Text-to-Speech"]')||c.querySelector('[data-feature-name="Highlight Focus"]')||c.querySelector('[data-feature-name="Highlight Hover"]')||c.querySelector('[data-feature-name="Pause Animations"]')||c.querySelector('[data-feature-name="Hide Images"]')||c.querySelector('[data-feature-name="Mute Sounds"]')}function r(c,a,l={}){const u="EasyOrientation",S=C("div",`Accessify_${u}_Main`,a),h=C("div",`Accessify_${u}_dropdown`,S,``);C("h4","h4",h,b(c),null,l);const A=U(h,"rightArrow");C("hr",null,S);const i=C("div",`Accessify_Hide${u}_Content`,S,`
`);return i.style.display="none",A.style.transform="rotate(0deg)",h.onclick=()=>{const E=i.style.display==="none";i.style.display=E?"block":"none",A.style.transform=E?"rotate(90deg)":"rotate(0deg)"},S}function b(c){return c.replace(/([A-Z])/g," $1").trim()}function m(c,a){const l=c.querySelector("#Accessify_HideEasyOrientation_Area");return j(l,a,"Accessify_Features_Button",{checkIcon:I.checkIconSvg}),l}function v(c){var A;const{featureName:a,applyFunction:l,resetFunction:u}=c,S=(A=document.querySelector(".Accessify_Container"))==null?void 0:A.shadowRoot;if(!S)return;let h=S.querySelector(".Accessify_EasyOrientation_Main");if(c.enabled==="true"){h||(h=r(f.t("features.easyOrientation"),t,{"data-i18n":"features.easyOrientation"})),h&&(h.style.display="block");const i=h.querySelector("#Accessify_HideEasyOrientation_Area");i.querySelector(`[data-feature-name="${a}"]`)||j(i,[c],"Accessify_Features_Button",{checkIcon:I.checkIconSvg}),typeof l=="function"?l():console.warn(`applyFunction is not a function for feature: ${a}`)}else if(c.enabled==="false"&&h){const i=h.querySelector(`[data-feature-name="${a}"]`);i&&i.remove(),typeof u=="function"?u():console.warn(`resetFunction is not a function for feature: ${a}`),n(S)||(h.style.display="none")}}function p(c,a){let l=!0;function u(){l=!1}const S=new Proxy(c,{set(h,A,i){const E=h[A];return E!==i&&(h[A]=i,l||a(A,E,i)),!0},get(h,A){return h[A]}});return setTimeout(u,0),S}function g(c,a,l){const S={enabledReadingMode:h=>{const A={featureName:"Reading Guide",featureKey:"easyOrientation.readingMode.text",featureLabelKey:"easyOrientation.readingMode.featureLabel",text:f.t("easyOrientation.readingMode.text"),featureLabel:f.t("easyOrientation.readingMode.featureLabel"),icon:"Reading_Guide",includeSmallDivContainer:!0,smallDivContainerCounter:2,settings:["readingGuide","readingMask"],enabled:h,applyFunction:i=>{e.enableReadingGuide(i)},resetFunction:e.disableReadingGuide,applyFunctionName:"enableReadingGuide"};v(A)},enabledTextToSpeech:h=>{const A={featureName:"Text-to-Speech",featureKey:"easyOrientation.textToSpeech.text",featureLabelKey:"easyOrientation.textToSpeech.featureLabel",text:f.t("easyOrientation.textToSpeech.text"),featureLabel:f.t("easyOrientation.textToSpeech.featureLabel"),icon:"Text_Speech",includeSmallDivContainer:!0,smallDivContainerCounter:3,settings:[.75,1,1.25],enabled:h,applyFunction:i=>{e.enableTextToSpeech(i)},resetFunction:e.disableTextToSpeech,applyFunctionName:"enableTextToSpeech"};v(A)},enabledHighlightFocus:h=>{const A={featureName:"Highlight Focus",featureKey:"easyOrientation.highlightFocus.text",featureLabelKey:"easyOrientation.highlightFocus.featureLabel",text:f.t("easyOrientation.highlightFocus.text"),featureLabel:f.t("easyOrientation.highlightFocus.featureLabel"),icon:"Highlight_Focus",includeSmallDivContainer:!1,settings:[!0,!1],enabled:h,applyFunction:()=>{},resetFunction:e.disableHighlightFocus,applyFunctionName:"enableHighlightFocus"};v(A)},enabledHighlightHover:h=>{const A={featureName:"Highlight Hover",featureKey:"easyOrientation.highlightHover.text",featureLabelKey:"easyOrientation.highlightHover.featureLabel",text:f.t("easyOrientation.highlightHover.text"),featureLabel:f.t("easyOrientation.highlightHover.featureLabel"),icon:"Highlight_Hover",includeSmallDivContainer:!1,settings:[!0,!1],enabled:h,applyFunction:()=>{},resetFunction:e.disableHighlightHover,applyFunctionName:"enableHighlightHover"};v(A)},enabledStopAnimations:h=>{const A={featureName:"Pause Animations",featureKey:"easyOrientation.pauseAnimations.text",featureLabelKey:"easyOrientation.pauseAnimations.featureLabel",text:f.t("easyOrientation.pauseAnimations.text"),featureLabel:f.t("easyOrientation.pauseAnimations.featureLabel"),icon:"Stop_Animations",includeSmallDivContainer:!1,settings:[!0,!1],enabled:h,applyFunction:()=>{e.enablePauseAnimations()},resetFunction:e.disablePauseAnimations,applyFunctionName:"enablePauseAnimations"};v(A)},enabledHideImages:h=>{const A={featureName:"Hide Images",featureKey:"easyOrientation.hideImages.text",featureLabelKey:"easyOrientation.hideImages.featureLabel",text:f.t("easyOrientation.hideImages.text"),featureLabel:f.t("easyOrientation.hideImages.featureLabel"),icon:"Hide_Images",includeSmallDivContainer:!1,settings:[!0,!1],enabled:h,applyFunction:()=>{e.enableHideImages()},resetFunction:e.disableHideImages,applyFunctionName:"enableHideImages"};v(A)},enabledMuteSounds:h=>{const A={featureName:"Mute Sounds",featureKey:"easyOrientation.muteSounds.text",featureLabelKey:"easyOrientation.muteSounds.featureLabel",text:f.t("easyOrientation.muteSounds.text"),featureLabel:f.t("easyOrientation.muteSounds.featureLabel"),icon:"Mute_Sounds",includeSmallDivContainer:!1,settings:[!0,!1],enabled:h,applyFunction:()=>{e.enableMuteSounds()},resetFunction:e.disableMuteSounds,applyFunctionName:"enableMuteSounds"};v(A)}}[c];S?S(l):console.warn(`No handler implemented for feature setting property: ${c}`)}const x=window.AccessifyFeatureSettings||{};window.AccessifyFeatureSettings=p(x,g);const _=o(s);if(_.length===0)return[];const L=r(f.t("features.easyOrientation"),t,{"data-i18n":"features.easyOrientation"});return m(L,_),_}function he(t,e={},s,o){const{label:n,icon:r,mainClass:b,dropdownClass:m,hiddenContentClass:v,optionClass:p,activeClass:g}=s,x=C("div",b,o),_=C("div",m,x,``);C("h4","h4",_,`${t}`,null,e);const L=U(_,"rightArrow");C("hr",null,x);const c=C("div",v,x,`
`);c.style.display="none",_.onclick=()=>{c.style.display=c.style.display==="none"?"block":"none",L.style.transform=c.style.display==="block"?"rotate(90deg)":"rotate(0deg)"};const a=c.firstChild;return I[`adjust${n}Colors`].forEach(l=>{const u=C("button",p,a);u.style.backgroundColor=l.color,u.title=l.text,u.addEventListener("click",()=>{switch(a.querySelectorAll(`.${p}`).forEach(S=>{S.classList.remove(g)}),u.classList.add(g),n){case"Text":$.enableColorPalette("textColor",l.color);break;case"Title":$.enableColorPalette("titleColor",l.color);break;case"Background":$.enableColorPalette("backgroundColor",l.color);break}})}),s}function ut(t){{const e=C("div","Accessify_LinkNavigater_Main",t),s=C("div","Accessify_LinkNavigater_dropdown",e,'');C("h4","h4",s,f.t("features.linkNavigator"),null,{"data-i18n":"features.linkNavigator"});const o=U(s,"rightArrow");C("hr",null,e);const n=C("div","Accessify_HideLinkNavigater_Content",e,'
');n.style.display="none",s.onclick=()=>{n.style.display=n.style.display==="none"?"block":"none",o.style.transform=n.style.display==="block"?"rotate(90deg)":"rotate(0deg)"};const b=Array.from(document.querySelectorAll("a[href]")).map(g=>({href:g.getAttribute("href"),text:g.textContent.trim()||g.getAttribute("aria-label")||"Unnamed Link"})).filter((g,x,_)=>x===_.findIndex(L=>L.href===g.href));let m=[{value:"option1",text:"Home"}];m=[{value:"",text:"Select a link to navigate"},...b.map((g,x)=>({value:`link${x}`,text:g.text,href:g.href}))];const p=C("select","Accessify_link_navigator_select",n.firstChild);m.forEach(g=>{C("option","Accessify_link_navigator_options",p,g.text).value=g.value}),p.addEventListener("change",()=>{const g=p.selectedIndex;if(g===0)return;p.options[g];const x=m[g].href;x.startsWith("http://")||x.startsWith("https://")?window.open(x,"_blank","noopener noreferrer"):window.location.href=x})}}function mt(t){const{AccessibilityFeatures:e}=window,s=C("div","Accessify_footer",t),o=f.t("footer.button.text")??"Reset Setting",n=C("button","Accessify_Toaster",s,`${I.resetSettingsSvg} ${o}`,null),r=C("div","Accessify_widget_container_toaster",s),b=C("div","Accessify_ToastContent",r,I.toastContentSvg),m=C("div",null,s,null,"Accessify_footer_links");(window.AccessifyWidgetSettings.hideAppBranding==="false"||window.AccessifyWidgetSettings.hideAppBranding===!1)&&C("a",null,m,"Powered by Isonomy","Accessify_powered_by",{target:"_blank"},{},"https://apps.shopify.com/isonomy-web-accessibility"),C("a",null,m,"Accessibility statement","Accessify_statement",{target:"_blank"},{},"https://apps.shopify.com/isonomy-web-accessibility").addEventListener("click",p=>{var _;p.preventDefault();const g=(_=document.querySelector(".Accessify_Container"))==null?void 0:_.shadowRoot;if(!g)return;let x=g._settingsModalInstance;x||(x=new at(g),g._settingsModalInstance=x),x.show()}),n.onclick=()=>{b.className="Accessify_ToastContent show",e.resetAllSettings(),setTimeout(()=>{b.classList.remove("show")},3e3)}}const ee={topLeft:"Accessify_Trigger_topLeft",topRight:"Accessify_Trigger_topRight",middleLeft:"Accessify_Trigger_middleLeft",middleRight:"Accessify_Trigger_middleRight",bottomLeft:"Accessify_Trigger_bottomLeft",bottomRight:"Accessify_Trigger_bottomRight",topLeftSmall:"Accessify_Trigger_topLeft_small",topRightSmall:"Accessify_Trigger_topRight_small",middleLeftSmall:"Accessify_Trigger_middleLeft_small",middleRightSmall:"Accessify_Trigger_middleRight_small",bottomLeftSmall:"Accessify_Trigger_bottomLeft_small",bottomRightSmall:"Accessify_Trigger_bottomRight_small",topLeftLarge:"Accessify_Trigger_topLeft_large",topRightLarge:"Accessify_Trigger_topRight_large",middleLeftLarge:"Accessify_Trigger_middleLeft_large",middleRightLarge:"Accessify_Trigger_middleRight_large",bottomLeftLarge:"Accessify_Trigger_bottomLeft_large",bottomRightLarge:"Accessify_Trigger_bottomRight_large",topLeftXlarge:"Accessify_Trigger_topLeft_xlarge",topRightXlarge:"Accessify_Trigger_topRight_xlarge",middleLeftXlarge:"Accessify_Trigger_middleLeft_xlarge",middleRightXlarge:"Accessify_Trigger_middleRight_xlarge",bottomLeftXlarge:"Accessify_Trigger_bottomLeft_xlarge",bottomRightXlarge:"Accessify_Trigger_bottomRight_xlarge"},re={small:"small",medium:"medium",large:"large","x-large":"xlarge",xlarge:"xlarge"},Y={small:{height:42,width:42},medium:{height:52,width:52},large:{height:62,width:62},xlarge:{height:72,width:72}};window.allFeatureOptions=[];const ft=t=>{const e=w.getPreferences("accessibilitySettings");if(!e)return;const{activeProfile:s,...o}=e;s!==void 0&&ye.enableProfileFeatures(s,t),Object.entries(o).forEach(([n,r])=>{if(r!=null&&r.active){const b=ve(n);if(b){const m=b.featureLabel[r.clickCount-1];b.applyFunction(r.value),Ve(m,n,r,t)}}})},Ve=(t,e,s,o)=>{const n=o.querySelector(`[data-feature-name="${e}"]`);if(n){n.setAttribute("data-click-count",s.clickCount.toString()),n.classList.add("Accessify_feature_active");const r=n.querySelector(".Accessify_Feature_Text");r.textContent=t;const b=n.querySelector(".Accessify_check-icon-container");b&&(b.innerHTML=I.checkIconSvg);const m=ve(e);m&&m.includeSmallDivContainer&&n.querySelectorAll(".Accessify_smallDivs").forEach((v,p)=>{v.style.backgroundColor=ps.featureName===t)||null}function gt(t,e){return new Proxy(t,{set(s,o,n){const r=s[o];return r!==n&&(s[o]=n,e(o,r,n)),!0},get(s,o){return s[o]}})}function yt(t,e){return new Proxy(t,{set(s,o,n){const r=s[o];return r!==n&&(s[o]=n,e(o,r,n)),!0},get(s,o){return s[o]}})}function ht(t,e,s){const n={triggerPosition:pt,triggerButtonSize:vt,selectedIcon:Xe,triggerButtonColor:At,interfaceLeadColor:_t,interfaceBackgroundColor:wt,iconSize:xt,hideAppBranding:Ct,widgetHeight:Lt,alignPosition:Je,widgetMargin:Et}[t];n?n(s):console.warn(`No handler implemented for property: ${t}`)}function vt(t){St(t),Xe(window.AccessifyWidgetSettings.selectedIcon)}function bt(t,e,s){const n={enabledAdjustTextColor:We,enabledAdjustTitlesColor:Ge,enabledAdjustBackgroundColor:Ue,enabledLinkNavigator:Ze}[t];n?n(s):console.warn(`No handler implemented for feature setting property: ${t}`)}function We(t){var s;const e=(s=document.querySelector(".Accessify_Container"))==null?void 0:s.shadowRoot;if(e)if(t==="true")he(f.t("features.textColor"),{"data-i18n":"features.textColor"},be("Text"),e.querySelector(".Accessify_Main_Container"));else{const o=e.querySelector(".Accessify_TextColor_Main");o&&o.remove()}}function Ge(t){var s;const e=(s=document.querySelector(".Accessify_Container"))==null?void 0:s.shadowRoot;if(e)if(t==="true")he(f.t("features.titleColor"),{"data-i18n":"features.titleColor"},be("Title"),e.querySelector(".Accessify_Main_Container"));else{const o=e.querySelector(".Accessify_TitleColor_Main");o&&o.remove()}}function Ue(t){var s;const e=(s=document.querySelector(".Accessify_Container"))==null?void 0:s.shadowRoot;if(e)if(t==="true")he(f.t("features.bgColor"),{"data-i18n":"features.bgColor"},be("Background"),e.querySelector(".Accessify_Main_Container"));else{const o=e.querySelector(".Accessify_BackgroundColor_Main");o&&o.remove()}}function Ze(t){var s;const e=(s=document.querySelector(".Accessify_Container"))==null?void 0:s.shadowRoot;if(e)if(t==="true")ut(e.querySelector(".Accessify_Main_Container"));else{const o=e.querySelector(".Accessify_LinkNavigater_Main");o&&o.remove()}}function pt(t){var o;const e=(o=document.querySelector(".Accessify_Container"))==null?void 0:o.shadowRoot;if(!e)return;const s=e.querySelector(".Accessify_Trigger");s&&(Object.values(ee).forEach(n=>s.classList.remove(n)),s.classList.add(ee[t]||ee.bottomRight))}function St(t){var o;const e=(o=document.querySelector(".Accessify_Container"))==null?void 0:o.shadowRoot;if(!e)return;const s=e.querySelector(".Accessify_Trigger");if(s){s.setAttribute("aria-label","Accessibility Trigger Button"),s.style.width="",s.style.height="";const n=re[t.toLowerCase()]||"large",r=Y[n];r&&(s.style.width=`${r.width}px`,s.style.height=`${r.height}px`)}}function Xe(t){var o,n;const e=(o=document.querySelector(".Accessify_Container"))==null?void 0:o.shadowRoot;if(!e)return;const s=e.querySelector(".Accessify_Trigger");if(s){const r=((n=window.AccessifyWidgetSettings.triggerButtonSize)==null?void 0:n.toLowerCase())||"large",b=re[r]||"large",{width:m,height:v}=Y[b]||Y.large;s.innerHTML=I.getSvg(t,window.AccessifyWidgetSettings.triggerButtonColor,m,v)}}function At(t){var o,n;const e=(o=document.querySelector(".Accessify_Container"))==null?void 0:o.shadowRoot;if(!e)return;const s=e.querySelector(".Accessify_Trigger");if(s){const r=((n=window.AccessifyWidgetSettings.triggerButtonSize)==null?void 0:n.toLowerCase())||"large",b=re[r]||"large",{width:m,height:v}=Y[b]||Y.large,p=window.AccessifyWidgetSettings.selectedIcon||"accessify";s.innerHTML=I.getSvg(p,t,m,v)}}function _t(t){var s;const e=(s=document.querySelector(".Accessify_Container"))==null?void 0:s.shadowRoot;e&&(e.host.style.setProperty("--main-color-RgbValues",t),e.host.style.setProperty("--box-shadow-color-RgbValues",I.hexToRgb(t)))}function wt(t){var s;const e=(s=document.querySelector(".Accessify_Container"))==null?void 0:s.shadowRoot;e&&e.host.style.setProperty("--bg-model-primary",t)}function xt(t){var s;const e=(s=document.querySelector(".Accessify_Container"))==null?void 0:s.shadowRoot;e&&(e.host.style.setProperty("--icon-width",`${t}px`),e.host.style.setProperty("--icon-height",`${t}px`))}function Ct(t){var s;const e=(s=document.querySelector(".Accessify_Container"))==null?void 0:s.shadowRoot;if(e){const o=e.querySelector("#Accessify_powered_by");o&&(o.style.display=t==="true"||t===!0?"none":"block")}}function Lt(t){var s;const e=(s=document.querySelector(".Accessify_Container"))==null?void 0:s.shadowRoot;e&&e.host.style.setProperty("--widget-hight",`${t}vh`)}function Je(t){var s;const e=(s=document.querySelector(".Accessify_Container"))==null?void 0:s.shadowRoot;if(e){const o={left:{left:"0",right:"auto"},right:{left:"auto",right:"0"}},n=o[t]||o.right;e.host.style.setProperty("--widget-left-spacing",n.left),e.host.style.setProperty("--widget-right-spacing",n.right)}}function Et(t){var s;const e=(s=document.querySelector(".Accessify_Container"))==null?void 0:s.shadowRoot;e&&(e.host.style.setProperty("--widget-top-spacing",`${t.top}%`),e.host.style.setProperty("--widget-bottom-spacing",`${t.bottom}%`),e.host.style.setProperty("--widget-left-spacing",`${t.left}%`),e.host.style.setProperty("--widget-right-spacing",`${t.right}%`))}const kt=async()=>{try{await f.init();const s=window.AccessifyWidgetSettings||{};window.AccessifyWidgetSettings=gt(s,ht);const o=window.AccessifyFeatureSettings||{};window.AccessifyFeatureSettings=yt(o,bt);const{AccessifyWidgetSettings:n,AccessifyFeatureSettings:r}=window,m=C("div","Accessify_Container",document.body).attachShadow({mode:"open"}),v=await st(I.spriteUrl);if(!v)throw new Error("Failed to get SVG sprite");m.innerHTML=v;const p=document.createElement("link");p.rel="stylesheet",p.href=I.cssPath,m.appendChild(p),Ft(m,n);const g=C("div","Accessify_Sidebar",m),x=C("div","Accessify_Sidebar_content",g),_=C("div","Accessify_Main_Container",x),L=C("div","Accessify_header",_);if(Tt(L,g),Pt(_,m),mt(x),J.setShouldTrackEvents(!0),m){const c=m.querySelector('[data-feature-name="Keyboard Navigation"]');if(c){let S=function(){clearTimeout(u),l.classList.add("visible")},h=function(){u=setTimeout(()=>{l.matches(":hover")||l.classList.remove("visible")},150)};var t=S,e=h;const a=C("div","help-trigger",null,"⌘");c&&c.parentNode&&c.insertBefore(a,c.firstChild);const l=C("div","accessify-tooltip",c,`
${f.t("keyboardNav.title")}
Tab ${f.t("keyboardNav.shortcuts.nextElement")} Shift+Tab ${f.t("keyboardNav.shortcuts.prevElement")} M ${f.t("keyboardNav.shortcuts.jumpMenu")} H ${f.t("keyboardNav.shortcuts.jumpHeadings")} B ${f.t("keyboardNav.shortcuts.jumpButtons")} P ${f.t("keyboardNav.shortcuts.jumpParagraphs")} G ${f.t("keyboardNav.shortcuts.jumpImages")} F ${f.t("keyboardNav.shortcuts.jumpForms")} Esc ${f.t("keyboardNav.shortcuts.exitMode")}
`);c.parentNode.insertBefore(l,c.nextSibling);let u;a.addEventListener("mouseenter",S),a.addEventListener("mouseleave",h),a.addEventListener("focus",S),a.addEventListener("blur",h),l.addEventListener("mouseenter",S),l.addEventListener("mouseleave",h),document.addEventListener("click",function(A){!a.contains(A.target)&&!l.contains(A.target)&&l.classList.remove("visible")}),document.addEventListener("keydown",function(A){A.key==="Escape"&&l.classList.remove("visible")})}}if((n.hideTriggerButton==="false"||n.hideTriggerButton===!1)&&It(m,n).addEventListener("click",()=>{J.trackEvent("FeatureEnabled",{featureName:"TriggerButton",parameters:[],isEnabled:!0}),g.classList.toggle("show-Accessify_Sidebar")}),Ye(window.AccessifyWidgetSettings.accessibilityTriggerSelector))try{const c=window.AccessifyWidgetSettings.accessibilityTriggerSelector,a=document.querySelectorAll(c);if(a.length===0){console.warn(`No elements found with selector: ${c}`);return}a.forEach(l=>{l.addEventListener("click",()=>{J.trackEvent("FeatureEnabled",{featureName:"TriggerButton",parameters:[],isEnabled:!0}),g.classList.toggle("show-Accessify_Sidebar")})})}catch(c){console.error("Error setting up trigger buttons:",c)}J.setShouldTrackEvents(!1),ft(m),ye.initialize(m),Nt(m),J.setShouldTrackEvents(!0)}catch(s){console.error("Error initializing Accessify Widget:",s)}};function Ft(t,e){t.host.style.setProperty("--main-color-RgbValues",e.interfaceLeadColor),t.host.style.setProperty("--bg-model-primary",e.interfaceBackgroundColor),t.host.style.setProperty("--box-shadow-color-RgbValues",I.hexToRgb(e.interfaceLeadColor)),t.host.style.setProperty("--icon-width",`${e.iconSize}px`),t.host.style.setProperty("--icon-height",`${e.iconSize}px`),Je(e.alignPosition)}const Ye=t=>{if(!t||!t.trim()||t==='[""]')return!1;try{const e=JSON.parse(t);if(Array.isArray(e)&&e.length===1&&e[0]==="")return!1}catch{}return!0};function Tt(t,e){const s=C("select","Accessify_Language_Selector",t),o=[{code:"en",name:"English",native:"English"},{code:"es",name:"Spanish",native:"Español"},{code:"fr",name:"French",native:"Français"},{code:"pt",name:"Portuguese",native:"Português"},{code:"de",name:"German",native:"Deutsch"},{code:"it",name:"Italian",native:"Italiano"},{code:"zh",name:"Chinese (Simplified)",native:"简体中文"},{code:"zh-TW",name:"Chinese (Traditional)",native:"繁體中文"},{code:"ja",name:"Japanese",native:"日本語"},{code:"ko",name:"Korean",native:"한국어"},{code:"th",name:"Thai",native:"ไทย"},{code:"ar",name:"Arabic",native:"العربية"},{code:"he",name:"Hebrew",native:"עברית"},{code:"hi",name:"Hindi",native:"हिंदी"},{code:"ur",name:"Urdu",native:"اردو"}],n={Western:o.slice(0,6),Asian:o.slice(6,11),"Middle Eastern":o.slice(11,13),"South Asian":o.slice(13)};Object.entries(n).forEach(([b,m])=>{const v=document.createElement("optgroup");v.label=b,m.forEach(p=>{const g=document.createElement("option");g.value=p.code,g.textContent=`${p.native} (${p.name})`,p.code===f.getCurrentLocale()&&(g.selected=!0),v.appendChild(g)}),s.appendChild(v)}),s.addEventListener("change",async b=>{await f.setLocale(b.target.value),Qe(t.getRootNode())});const r=C("button","Accessify_close_button",t,'');r.setAttribute("aria-label",f.t("header.close")),r.addEventListener("click",()=>{t.parentElement.classList.remove("show-Accessify_Sidebar"),e.classList.remove("show-Accessify_Sidebar")})}function Qe(t){var o;const e=t.querySelector(".Accessify_Header_Title");e&&!Ye((o=window==null?void 0:window.AccessifyWidgetSettings)==null?void 0:o.headerText)&&(e.textContent=f.t("header.title")),t.querySelectorAll("[data-i18n]").forEach(n=>{const r=n.getAttribute("data-i18n");n.textContent=f.t(r)})}document.addEventListener("localeChanged",t=>{var s;const e=(s=document.querySelector(".Accessify_Container"))==null?void 0:s.shadowRoot;e&&Qe(e)});function Pt(t,e){ye.createProfilesFeatureUI(t,e),window.allFeatureOptions.push(...rt(t),...lt(t),...ct(t),...dt(t)),AccessifyFeatureSettings.enabledAdjustTextColor==="true"&&We("true"),AccessifyFeatureSettings.enabledAdjustTitlesColor==="true"&&Ge("true"),AccessifyFeatureSettings.enabledAdjustBackgroundColor==="true"&&Ue("true"),AccessifyFeatureSettings.enabledLinkNavigator==="true"&&Ze("true")}function Nt(t){const e=w.getPreferences("accessibilityFeatureSettings");e&&Object.entries(e).forEach(([s,o])=>{if(o!=null&&o.active){const n=ve(s);if(n){const r=n.featureLabel[o.clickCount-1];n.applyFunction(o.value),Ve(r,s,o,t)}}})}function be(t){return{label:t,icon:`Accessify_${t}Color_Main`,mainClass:`Accessify_${t}Color_Main`,dropdownClass:`Accessify_${t}Color_dropdown`,hiddenContentClass:`Accessify_Hide${t}Color_Content`,optionClass:`${t}Color_Option`,activeClass:`${t}Color_Selected`}}function It(t,e){var g;const s=ee.bottomRight,o=ee[e.triggerPosition]||s,n=((g=e.triggerButtonSize)==null?void 0:g.toLowerCase())||"large",r=re[n]||"large",{height:b,width:m}=Y[r],v=e.selectedIcon||"accessify";return C("button",`Accessify_Trigger ${o}`,t,`${I.getSvg(v,e.triggerButtonColor,m,b)}`,null,{"aria-label":f.t("header.title")})}function Ht(){return window.allFeatureOptions||[]}document.addEventListener("AccessifyLoaded",kt);