cdn.userway.org Open in urlscan Pro
2a02:6ea0:c400::53  Public Scan

URL: https://cdn.userway.org/widgetapp/2024-11-15-13-47-25/remediation/remediation_1731678445949.js
Submission Tags: falconsandbox
Submission: On November 21 via api from US — Scanned from US

Form analysis 0 forms found in the DOM

Text Content

!function(){function e(e){setTimeout(function(){r.totalProcessed.AUTOFOCUS_ON_LOAD=0,t(e),window.addEventListener("popstate",t,!1)},1500)}function t(e){var t=document.activeElement;t&&["INPUT","TEXTAREA"].includes(t.tagName)?(t.blur(),t.setAttribute(r.DATA_ATTRIBUTE_NAME,"autofocus"),o=1):o=0,r.totalProcessed.AUTOFOCUS_ON_LOAD=o,0!==o&&UserWayWidgetApp.ContextHolder.config.services.siteId,e({postMessageAppData:o,backEndData:null,countFixed:o||0,countTodo:o||0})}var n=UserWayWidgetApp.addLib("REMEDIATION_AUTOFOCUS_ON_LOAD"),r=UserWayWidgetApp.getLib("remediation"),o=(UserWayWidgetApp.getLib("util"),0);n.filter=function(e){return[]},n.awaitForResources=function(e,t){return Promise.resolve()},n.doRemediation=function(t,n){return new Promise(function(t,n){try{e(t)}catch(e){n(e)}})}}();var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},__assign.apply(this,arguments)},__awaiter=this&&this.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function u(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?n(e.value):o(e.value).then(a,u)}l((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(o)throw new TypeError("Generator is already executing.");for(;u&&(u=0,n[0]&&(l=0)),l;)try{if(o=1,i&&(a=2&n[0]?i.return:n[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,n[1])).done)return a;switch(i=0,a&&(n=[2&n[0],a.value]),n[0]){case 0:case 1:a=n;break;case 4:return l.label++,{value:n[1],done:!1};case 5:l.label++,i=n[1],n=[0];continue;case 7:n=l.ops.pop(),l.trys.pop();continue;default:if(a=l.trys,!(a=a.length>0&&a[a.length-1])&&(6===n[0]||2===n[0])){l=0;continue}if(3===n[0]&&(!a||n[1]>a[0]&&n[1]<a[3])){l.label=n[1];break}if(6===n[0]&&l.label<a[1]){l.label=a[1],a=n;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(n);break}a[2]&&l.ops.pop(),l.trys.pop();continue}n=t.call(e,l)}catch(e){n=[6,e],i=0}finally{o=a=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,i,a,u,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return u={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u},__rest=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},__read=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};!function(){function e(e){var t=e.resolve,n=(e.reject,e.params);e.filteredElements;if(!n.reset)return t();_.isSmartContrastEnabled()||o(),E.config.autofix&&_.enable(),UserWayWidgetApp.ContextHolder.remediationResources?(D.acceptedFixes=UserWayWidgetApp.ContextHolder.remediationResources.Contrast||[],l().then(t)):t()}function t(){var e=function(e){return e.hasAttribute("data-uw-rm-ignore")},t=["SVG","SCRIPT","IMG","STYLE"],n=[],r=document.body,o=H(),i=function(e){return o.includes(w.xpath(e))},a=function(e){return e.hasAttribute(O)};c(r)&&a(r)&&n.push(r);var u=function(r){r.children&&Array.from(r.children).forEach(function(r){var o=r.tagName.toUpperCase(),l="INPUT"===o&&("radio"===r.getAttribute("type")||"checkbox"===r.getAttribute("type"));if(!(t.includes(o)||e(r)||l))return a(r)||!c(r)||i(r)||n.push(r),r.childNodes&&u(r)})};return u(r),n}function n(){[].slice.call(document.querySelectorAll("["+O+"="+C.AUTOFIX+"]")).forEach(function(e){e.setAttribute(O,C.PARSED),S.resetInlineStyles(e,O,W)}),E.config.autofix=!1}function r(){var e=Object.keys(C).map(function(e){return C[e]}).filter(function(e){return e!==C.SET}).map(function(e){return"["+O+"="+e+"]"}).join(", ");[].slice.call(document.querySelectorAll(e)).forEach(function(e){e.getAttribute(O)===C.AUTOFIX&&S.resetInlineStyles(e,O,W),e.removeAttribute(O)}),D.foundedIssues=[],D.contrastIssues=[]}function o(){[].slice.call(document.querySelectorAll("["+O+"]")).forEach(function(e){e.setAttribute(O,C.PARSED),S.resetInlineStyles(e,O,W)})}function i(){return D.foundedIssues.filter(function(e){var t=e.xpath;return!D.acceptedFixes.find(function(e){return e.xpath===t})})}function a(e){var t=e.callbackAggregator,n=e.items,r=e.resolve,o=e.reject;return __awaiter(this,void 0,void 0,function(){var e,i,a;return __generator(this,function(l){switch(l.label){case 0:E.enabled||r(),e=function(){t.onHelperRemediationStarted(v);var e=D.foundedIssues.concat(P());t.onHelperRemediationCompleted(A.of(v,{items:function(e){return e.map(function(e){return __assign(__assign({},e),{contrastData:__assign(__assign({},e.contrastData),{backgroundColorParentElement:null})})})}(e),acceptedFixes:H(),autofix:E.config.autofix},null,D.foundedIssues.length,0))},i=E.config.autofix||_.isSmartContrastEnabled(),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,u(n,i,e)];case 2:return l.sent(),[3,4];case 3:return a=l.sent(),o(a),[3,4];case 4:return r(),[2]}})})}function u(e,t,n){return __awaiter(this,void 0,void 0,function(){var r,o,i,a,u;return __generator(this,function(l){switch(l.label){case 0:r=H(),o=function(e){return r.includes(w.xpath(e))},i=0,l.label=1;case 1:if(!(i<e.length))return[3,6];a=e[i],l.label=2;case 2:return l.trys.push([2,4,,5]),[4,d(a)];case 3:return l.sent(),o(a)||a.setAttribute(O,C.PARSED),[3,5];case 4:throw u=l.sent(),console.error("Error in the Color Contrast helper:",u),u;case 5:return i++,[3,1];case 6:return s(),D.foundedIssues=D.foundedIssues.concat(D.contrastIssues.slice()),D.contrastIssues=[],n&&n(),t&&_.autofixAllIssues(),[2]}})})}function l(){return __awaiter(this,void 0,void 0,function(){var e,t,n,r;return __generator(this,function(o){switch(o.label){case 0:if(k||!D.acceptedFixes.length)return[3,6];e=[],o.label=1;case 1:return[4,new Promise(requestAnimationFrame)];case 2:return o.sent(),t=e.length,[4,y(D.acceptedFixes[t])];case 3:n=o.sent(),e.push(n),o.label=4;case 4:if(e.length!==D.acceptedFixes.length)return[3,1];o.label=5;case 5:r=e.filter(Boolean),T(r),_.fixIssues(D.acceptedFixes,!1),k=!0,o.label=6;case 6:return[2]}})})}function s(){var e=function(e,t,n){void 0===e&&(e=4.5);var r=0;return r=n?(e+.05)*(t+.05)-.05:(t+.05)/e-.05,r<0?0:r>1?1:r},t=function(t,n,r,o){void 0===o&&(o=!1);var i=new q,a=new F(t),u=new F(n),l=function(){var e=a.isLight(),t=u.isLight();if(e&&t||!e&&!t){if(a.luminance===u.luminance){var n=0===a.luminance,r=1===a.luminance;return!(!n||!o)||(!r||!o)&&e}return a.luminance>u.luminance}return e}(),s=e(r,u.luminance,l),c=t.slice(0,3).map(Number),d=i.rgbToXyz(c),f=__read(i.xyzToLab(d),3),p=(f[0],f[1]),h=f[2],m=i.findL(s)+(l?1:-1);return"rgb("+i.labToRgb([m,p,h]).join(",")+")"},n=[];(function(e,t){var n=function(e){return e[t]},r=t.split(".");return r.length>1&&(n=function(e){return r.reduce(function(e,t){return e[t]},e)}),e.reduce(function(e,t){var r=n(t),o=e.get(r)||[];return e.set(r,__spreadArray(__spreadArray([],__read(o),!1),[t],!1)),e},new Map)})(D.contrastIssues,"contrastData.backgroundColorParentElement").forEach(function(e,t){var r=__read(e),o=r[0],i=r.slice(1);!i.length||i.every(function(e){return e.contrastData.foreground[4]===o.contrastData.foreground[4]})?n.push(__assign(__assign({},o),{tagName:t.tagName,xpath:w.xpath(t),childrenIssues:e.map(function(e){return e.xpath})})):n=n.concat(e)}),D.contrastIssues=n.map(function(e){var n,r=e.expectedRatio,o=e.contrastData,i=o.foreground,a=o.background,u=a[4],l=new F(a);n=t(i,a,r);var s=f(n);return new F(s).contrast(l).ratio<r&&(u=t(a,s,r,!0)),__assign(__assign({},e),{suggestion:{foreground:n,background:u}})})}function c(e){var t=!1;return!!e&&(Array.from(e.childNodes).some(function(e){var n=e.nodeType,r=e.nodeValue;return 3===n&&r.length>0&&-1===r.search(/^\s+$/i)&&(t=!0)}),(e instanceof HTMLInputElement&&e.value.length>0||e instanceof HTMLSelectElement&&e.options.length>0)&&(t=!0),t)}function d(e){return __awaiter(this,void 0,void 0,function(){var t,n,r,o;return __generator(this,function(i){switch(i.label){case 0:return t=p(e),[4,h(e)];case 1:return n=i.sent(),(r=n.backgroundColor,o=n.targetElement,t.join("")===r.join(""))?[2]:("0"===r[3]&&(r=["255","255","255","1","rgb(255, 255, 255)"]),R(o)&&(o=e),1===parseFloat(r[3])&&g(e,t,r,o),[2])}})})}function f(e){if(!e)return["0","0","0","0","rgba(0,0,0,0)"];var t=e.replace(/[^\d,.]/g,"").split(",");return t[3]||(t[3]="1"),t[4]=e,t}function p(e){return f(getComputedStyle(e).color)}function h(e){return __awaiter(this,void 0,void 0,function(){var t,n,r,o,i,a,u,l,s,c,d,p;return __generator(this,function(g){switch(g.label){case 0:if(t=getComputedStyle(e),n=document.body===e,r=t.background.indexOf("linear-gradient")>-1,o=t.backgroundImage.indexOf("url")>-1||t.background.indexOf("url")>-1,i=new RegExp(/rgba?\(((25[0-5]|2[0-4]\d|1\d{1,2}|\d\d?)\s*,\s*?){2}(25[0-5]|2[0-4]\d|1\d{1,2}|\d\d?)\s*,?\s*([01]\.?\d*?)?\)/g),a=function(e){return"rgba(0, 0, 0, 0)"===e||"transparent"===e},!n&&a(t.backgroundColor)&&!r&&!o)return[2,h(e.parentElement)];if(r&&a(t.backgroundColor)&&(u=(t.background.match(i)||[]).find(function(e){return!a(e)})),!o||!a(t.backgroundColor))return[3,6];if(l=[".svg"],s=l.some(function(e){return-1!==t.backgroundImage.indexOf(e)||-1!==t.background.indexOf(e)}))return[2,h(e.parentElement)];c=t.backgroundImage.indexOf("url")>-1?t.backgroundImage.slice(4,-1).replace(/['"]/g,""):t.background.match(/url\(["']?([^"']*)["']?\)/)[1],g.label=1;case 1:return g.trys.push([1,3,,5]),[4,m(c)];case 2:return u=g.sent(),[3,5];case 3:return d=g.sent(),[4,h(e.parentElement)];case 4:return[2,g.sent()];case 5:if("rgb(0,0,0)"===u)return[2,h(e.parentElement)];g.label=6;case 6:return p=f(u||t.backgroundColor),(+t.opacity<1||"none"!==t.filter)&&(p[3]=".1"),[2,{backgroundColor:p,targetElement:e}]}})})}function m(e){return new Promise(function(t,n){var r=document.createElement("canvas").getContext("2d"),o=new Image,i=function(e){return"rgb("+e.join(",")+")"};o.setAttribute("crossOrigin",""),o.src=e,o.addEventListener("load",function(){var e;r.imageSmoothingEnabled=!0,r.drawImage(o,0,0),e=r.getImageData(0,0,1,1).data.slice(0,3),t(i(e))}),o.addEventListener("error",function(t){console.warn("Image color recognition error:",e),n(t)})})}function g(e,t,n,r){var o={ratio:null,contrastRatio:null},i=new F(t),a=new F(n),u=i.contrast(a),l=u.ratio;if(l){o.ratio=Number(l),o.contrastRatio=l+":1";var s=window.getComputedStyle(e),c=s.getPropertyValue("font-size"),d=s.getPropertyValue("font-weight"),f=72*Number(c.substring(0,c.length-2))/96,p=f>=18||f>=14&&("bold"===d||parseInt(d)>=700),h=function(e){if(N){if(e&&l<4.5)return 4.5;if(l<7)return 7}return e&&l<3?3:l<4.5?4.5:null}(p);if(!h)return;D.contrastIssues.push({contrastData:{passRatio:h,ratio:b(o.ratio),foreground:t,background:n,backgroundColorParentElement:r},isLightFg:i.isLight(),isLightBg:a.isLight(),expectedRatio:h,tagName:e.tagName,xpath:w.xpath(e),fontSize:f})}}function y(e){var t=e.background,n=e.foreground,r=e.xpath;return __awaiter(this,void 0,void 0,function(){var e,o,i,a,u,l,s,c,d,f,m;return __generator(this,function(g){switch(g.label){case 0:return(e=x.recursiveXpathSearch(r))&&"boolean"!=typeof e?(o=p(e),[4,h(e)]):[2];case 1:return i=g.sent(),a=i.backgroundColor,u=i.targetElement,R(u)&&(u=e),l=window.getComputedStyle(e),s=l.getPropertyValue("font-size"),c=l.getPropertyValue("font-weight"),d=72*Number(s.substring(0,s.length-2))/96,f=d>=18||d>=14&&("bold"===c||parseInt(c)>=700),m=f?3:4.5,[2,{contrastData:{passRatio:m,ratio:m,foreground:o,background:a,backgroundColorParentElement:u},suggestion:{foreground:n,background:t},expectedRatio:m,tagName:e.tagName,xpath:r,fontSize:d}]}})})}function b(e){if(-1!==(e=String(e)).indexOf(".")){var t=e.split(".");return 1===t.length?Number(e):Number(t[0]+"."+t[1].charAt(0)+t[1].charAt(1))}return Number(e)}var v="REMEDIATION_COLOR_CONTRAST",_=UserWayWidgetApp.addLib(v),A=UserWayWidgetApp.getLib("remediation_helper_outcome"),E=UserWayWidgetApp.getLib("remediationConfig").contrast,w=UserWayWidgetApp.getLib("util"),S=UserWayWidgetApp.getLib("inlineStyling"),x=UserWayWidgetApp.getLib("xpath_search"),O="data-uw-rm-color-contrast",C={SMART_CONTRAST:"smc",AUTOFIX:"afix",PARSED:"prs",SET:"set"},W={color:"",background:""},I=!1,k=!1,N=!1,R=function(e){var t=getComputedStyle(e);return t.backgroundImage.indexOf("url")>-1||t.background.indexOf("url")>-1},L={},T=function(e){e.forEach(function(e){L[e.xpath]=e})},P=function(e){return Object.keys(L).filter(function(t){return!e||e.includes(t)}).map(function(e){return L[e]})},U=function(){L={}},D={foundedIssues:[],contrastIssues:[],acceptedFixes:[]},H=function(){return D.acceptedFixes.map(function(e){return e.xpath})},M=function(e){return e.hasAttribute(O)&&[C.AUTOFIX,C.SET].includes(e.getAttribute(O))};_.isSmartContrastEnabled=function(){return!!N},_.isEnabled=function(){return I},_.enable=function(){I=!0},_.disable=function(){I=!1},_.enableSmartContrast=function(){r(),N=!0,_.enable()},_.disableSmartContrast=function(){r(),N=!1,_.disable()},_.filter=function(e,n){return E.enabled&&(I||E.config.autofix)?(n.reset&&!_.isSmartContrastEnabled()&&o(),t()):[]},_.awaitForResources=function(t,n){return new Promise(function(r,o){e({resolve:r,reject:o,params:n,filteredElements:t})})},_.doRemediation=function(e,t){return new Promise(function(n,r){if(!t.length)return n(null);setTimeout(function(){return a({callbackAggregator:e,items:t,resolve:n,reject:r})},w.DELAYS.LONG)})},_.fixIssues=function(e,t){void 0===t&&(t=!0);var n=[];if(e.forEach(function(e){var t=e.xpath&&x.recursiveXpathSearch(e.xpath);if(t&&"boolean"!=typeof t){var r=e.childrenIssues,o=void 0===r?[]:r,i=__rest(e,["childrenIssues"]),a=o.map(function(e){return x.recursiveXpathSearch(e)}).filter(function(e){return!!e&&"boolean"!=typeof e});if(a.length)S.applyInlineStyles(t,O,{background:e.background}),t.setAttribute(O,C.SET),a.forEach(function(t,r){S.applyInlineStyles(t,O,{color:e.foreground}),t.setAttribute(O,C.SET),n.push(__assign(__assign({},i),{xpath:e.childrenIssues[r]}))});else{var u={color:e.foreground,background:e.background};S.applyInlineStyles(t,O,u),t.setAttribute(O,C.SET),n.push(e)}}}),t){D.acceptedFixes=D.acceptedFixes.concat(n);var r=H(),o=D.foundedIssues.filter(function(e){var t=e.xpath;return r.includes(t)});T(o),D.foundedIssues=D.foundedIssues.filter(function(e){var t=e.xpath;return!r.includes(t)})}},_.autofixAllIssues=function(){i().forEach(function(e){var t=e.xpath&&x.recursiveXpathSearch(e.xpath);if(t){var n=e.childrenIssues,r=void 0===n?[]:n,o=r.map(function(e){return x.recursiveXpathSearch(e)}).filter(Boolean);if(!M(t))if(o.length)S.applyInlineStyles(t,O,{background:e.suggestion.background}),t.setAttribute(O,C.AUTOFIX),o.forEach(function(t,n){S.applyInlineStyles(t,O,{color:e.suggestion.foreground}),t.setAttribute(O,C.AUTOFIX)});else{var i={color:e.suggestion.foreground,background:e.suggestion.background};S.applyInlineStyles(t,O,i),t.setAttribute(O,C.AUTOFIX)}}}),_.isSmartContrastEnabled()||(E.config.autofix=!0)},_.resetAutofixed=n,_.resetIssuesFixes=function(){o(),D.acceptedFixes=[],D.foundedIssues=D.foundedIssues.concat(P()),U()},_.run=u;var F=function(){function e(e){if(this.rgba=null,"transparent"===e)this.rgba=[0,0,0,0];else if("string"==typeof e){var t=e.match(/rgba?\(([\d.]+), ([\d.]+), ([\d.]+)(?:, ([\d.]+))?\)/);if(!t)throw new Error("Invalid string: "+e);t.shift()}0===e[3]&&(e[3]=1),this.rgba=e.map(function(e){return j(e,3)})}return Object.defineProperty(e.prototype,"rgb",{get:function(){return this.rgba.slice(0,3)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this.rgba[3]},set:function(e){this.rgba[3]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"luminance",{get:function(){for(var e=this.rgba.slice(),t=0;t<3;t++){var n=e[t];n=(n/=255)<.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),e[t]=n}return.2126*e[0]+.7152*e[1]+.0722*e[2]},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this.rgba)},e.prototype.isLight=function(){var e=(this.luminance+.05)/.05;return 1.05/(this.luminance+.05)<e},e.prototype.overlayOn=function(e){var t=this.clone(),n=this.alpha;if(n>=1)return t;for(var r=0;r<3;r++)t.rgba[r]=t.rgba[r]*n+e.rgba[r]*e.rgba[3]*(1-n);return t.rgba[3]=n+e.rgba[3]*(1-n),t},e.prototype.contrast=function(e){var t={ratio:null};if(this.alpha<1)return t;e.alpha<1&&(e=e.overlayOn(this));var n=this.luminance+.05,r=e.luminance+.05,o=n/r;return t.ratio=r>n?1/o:o,t},e}(),j=function(e,t){var n=Math.pow(10,t||0);return Math.round(e*n)/n},q=function(){function e(){this.D65=[95.047,100,108.883]}return e.prototype.rgbToXyz=function(e){var t=__read(e.map(function(e){return e/255}).map(this.sRGBtoLinearRGB),3),n=t[0],r=t[1],o=t[2];return[.4124*n+.3576*r+.1805*o,.2126*n+.7152*r+.0722*o,.0193*n+.1192*r+.9505*o].map(function(e){return 100*e})},e.prototype.sRGBtoLinearRGB=function(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},e.prototype.xyzToLab=function(e){var t,n=this,r=__read(e,3),o=r[0],i=r[1],a=r[2];return t=__read([o,i,a].map(function(e,t){return e/=n.D65[t],e>.008856?Math.pow(e,1/3):7.787*e+16/116}),3),o=t[0],i=t[1],a=t[2],[116*i-16,500*(o-i),200*(i-a)]},e.prototype.findL=function(e){return 116*Math.pow(e,1/3)-16},e.prototype.labToRgb=function(e){var t,n,r,o=(e[0]+16)/116,i=e[1]/500+o,a=o-e[2]/200;return i=.95047*(i*i*i>.008856?i*i*i:(i-16/116)/7.787),o=1*(o*o*o>.008856?o*o*o:(o-16/116)/7.787),a=1.08883*(a*a*a>.008856?a*a*a:(a-16/116)/7.787),t=3.2406*i+-1.5372*o+-.4986*a,n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*Math.max(0,Math.min(1,t)),255*Math.max(0,Math.min(1,n)),255*Math.max(0,Math.min(1,r))].map(function(e){return j(e)})},e}()}(),function(){function e(){var e=UserWayWidgetApp.ContextHolder.config,t=e._userway_config.hasOwnProperty("ai_custom_focus_style_enabled");return t?t&&(!0===e._userway_config.ai_custom_focus_style_enabled||"true"===e._userway_config.ai_custom_focus_style_enabled):l.enabled}function t(e){var t={outline:l.outlineWidth+" "+l.outlineStyle+" "+l.outlineColor};return t["outline-offset"]="-"+l.outlineWidth,t}function n(e){if("function"==typeof e.hasAttribute&&e.hasAttribute(d)){var n=window.getComputedStyle(e),r=t(n);s.resetInlineStyles(e,d,r),e.removeAttribute(d)}}function r(e){e.target&&p&&u.addStyles(e.target)}function o(e){var t=e?"addEventListener":"removeEventListener";document[t]("mousedown",i),document[t]("keydown",a),document[t]("focusin",r),document[t]("focusout",h)}function i(){p=!1}function a(){p=!0}var u=UserWayWidgetApp.addLib("REMEDIATION_FOCUS_STYLE"),l=UserWayWidgetApp.getLib("remediationConfig").customFocus,s=UserWayWidgetApp.getLib("inlineStyling"),c=UserWayWidgetApp.getLib("remediation_utils"),d="data-uw-rm-outline",f={width:"2px",color:" #0018FF",style:"solid"},p=!1;u.apply=function(){var t,n,r,i;if(e()){var a=null===(r=null===(n=null===(t=UserWayWidgetApp.ContextHolder)||void 0===t?void 0:t.config)||void 0===n?void 0:n.tunings)||void 0===r?void 0:r.widget_color,u=(null===(i=UserWayWidgetApp.getLib("remediationConfig").customFocus.config)||void 0===i?void 0:i.style)?JSON.parse(UserWayWidgetApp.getLib("remediationConfig").customFocus.config.style):f;l.outlineWidth=u.width,l.outlineColor=u.color||a,l.outlineStyle=u.style,setTimeout(function(){o(!0)},500)}},u.getFocusStyle=function(){return{enabled:e(),outlineWidth:l.outlineWidth||f.width,outlineColor:l.outlineColor||f.color,outlineStyle:l.outlineStyle||f.style}},u.updateOutlineStyle=function(e){if(e.data&&(e.data.update||null!=e.data.enabled)){var t=e.data.update,r=e.data.enabled;l.outlineWidth=t.width,l.outlineStyle=t.style,l.outlineColor=t.color,l.enabled!==r&&(o(l.enabled),[].slice.call(document.querySelectorAll("["+d+"]")).forEach(function(e){n(e)}),l.enabled=r)}},u.addStyles=function(e){if(!e.hasAttribute(c.ignoreElementFromHelperProcessingAttr)){var n=window.getComputedStyle(e),r=t(n);s.applyInlineStyles(e,d,r),e.setAttribute(d,"")}};var h=function(e){e.target&&n(e.target)}}();var __read=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},__values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){var t=__spreadArray(__spreadArray(["a"],__read(s),!1),__read(s.map(function(e){return'[role="'+e+'"]'})),!1).join(",");return e.querySelectorAll(t).length>0}function t(t){return t.filter(function(t){var n,r,o,a,h,m,g,y;if("function"==typeof t.hasAttribute&&t.hasAttribute(u)||e(t))return!1;if(t.classList&&t.classList.contains("betterbot_botInfoText"))return t.setAttribute(u,l.BETTERBOT_CHAT),!0;if("function"==typeof t.getAttribute&&s.indexOf(t.getAttribute("role"))>-1&&!t.hasAttribute("tabindex"))return t.setAttribute(u,l.HAS_ROLE_NO_TABINDEX),!0;var b=!1,v=!1;if("function"==typeof t.hasAttribute)try{for(var _=__values(c),A=_.next();!A.done;A=_.next()){var E=A.value;if(t.hasAttribute(E)&&!i.isElementEditable(t)){v=!1,b=!0;try{for(var w=(o=void 0,__values(d)),S=w.next();!S.done;S=w.next()){var x=S.value;t.hasAttribute(x)&&(v=!0)}}catch(e){o={error:e}}finally{try{S&&!S.done&&(a=w.return)&&a.call(w)}finally{if(o)throw o.error}}}}}catch(e){n={error:e}}finally{try{A&&!A.done&&(r=_.return)&&r.call(_)}finally{if(n)throw n.error}}if(b&&!v)return t.setAttribute(u,l.HAS_ONCLICK_NO_ONKEYPRESS),!0;var O=!1,C=!1,W=!1,I=["drag-and-drop"];if("function"==typeof t.hasAttribute){W=t.hasAttribute("tabindex");try{for(var k=__values(f),N=k.next();!N.done;N=k.next()){var E=N.value;if(I.indexOf(t.nodeName.toLowerCase())<0&&t.hasAttribute(E)&&!i.isElementEditable(t)){C=!1,O=!0;try{for(var R=(g=void 0,__values(p)),L=R.next();!L.done;L=R.next()){var x=L.value;t.hasAttribute(x)&&(C=!0)}}catch(e){g={error:e}}finally{try{L&&!L.done&&(y=R.return)&&y.call(R)}finally{if(g)throw g.error}}}}}catch(e){h={error:e}}finally{try{N&&!N.done&&(m=k.return)&&m.call(k)}finally{if(h)throw h.error}}}return!O||C||W?!("A"!==t.tagName||t.href||t.hasAttribute("tabindex")||t.hasAttribute("role"))&&(t.setAttribute(u,l.ANCHOR_NO_HREF),!0):(t.setAttribute(u,l.HAS_NGCLICK_NO_NGKEYPRESS),!0)})}function n(e,t,n,r,a){try{e.onHelperRemediationStarted("REMEDIATION_KEYBOARD_NAVIGATION");var s=0;r.forEach(function(e){var t=e.getAttribute(u);if(t)return s++,t===l.BETTERBOT_CHAT?(e.setAttribute("tabindex","0"),e.setAttribute("role","button"),e.setAttribute("aria-label","Start chat with us"),void i.clickOnEnter(e)):t===l.HAS_ROLE_NO_TABINDEX?(e.setAttribute("tabindex","0"),void i.clickOnEnter(e)):t===l.OVERFLOW_HELPER?void e.setAttribute("tabindex","0"):t===l.HAS_ONCLICK_NO_ONKEYPRESS?void i.clickOnEnter(e):t&&e.getAttribute(u)===l.HAS_NGCLICK_NO_NGKEYPRESS?(e.setAttribute("role","button"),e.setAttribute("tabindex","0"),void i.clickOnEnter(e)):t===l.ANCHOR_NO_HREF?(e.setAttribute("tabindex","0"),void("pointer"===window.getComputedStyle(e).cursor&&i.clickOnEnter(e))):void 0}),e.onHelperRemediationCompleted(o.of("REMEDIATION_KEYBOARD_NAVIGATION",null,null,s,0)),t()}catch(e){n(e)}}var r=UserWayWidgetApp.addLib("REMEDIATION_KEYBOARD_NAVIGATION"),o=UserWayWidgetApp.getLib("remediation_helper_outcome"),i=UserWayWidgetApp.getLib("remediation_util"),a=UserWayWidgetApp.getLib("util"),u="data-uw-rm-kbnav",l={BETTERBOT_CHAT:"betterbot",HAS_ROLE_NO_TABINDEX:"role",HAS_ONCLICK_NO_ONKEYPRESS:"click",HAS_NGCLICK_NO_NGKEYPRESS:"ngclick",OVERFLOW_HELPER:"scrollTabIndex",ANCHOR_NO_HREF:"anohref"},s=["link","button","menuitem","checkbox"],c=["onclick"],d=["onkeydown","onkeyup","onkeypress"],f=["ng-click"],p=["ng-keypress","ng-keyup","ng-keydown"];r.filter=function(e,n){return n.reset,t([].concat.apply([],__spreadArray([],__read(e.map(function(e){return[].slice.call(a.findAllElements(e))})),!1)))},r.awaitForResources=function(e,t){return Promise.resolve()},r.doRemediation=function(e,t,r){return new Promise(function(o,i){n(e,o,i,t,r)})}}();var __values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){window.userwayLabs&&window.userwayLabs.remediate(e)}var t=UserWayWidgetApp.addLib("REMEDIATION_LABS"),n=UserWayWidgetApp.getLib("remediationConfig"),r=UserWayWidgetApp.getLib("util");t.apply=function(){var t,o,i;try{(null===(t=n.labs)||void 0===t?void 0:t.enabled)&&Object.keys(null!==(i=null===(o=n.labs)||void 0===o?void 0:o.config)&&void 0!==i?i:[]).length>0&&r.execJs("https://cdn.userway.org/widgetapp/2024-11-15-13-47-25/bundles/labs-02.js").finally(function(){setTimeout(function(){var t,r,o=n.labs.config;try{for(var i=__values(o),a=i.next();!a.done;a=i.next()){e(a.value)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},100)})}catch(e){console.info("LabsRemediationLoader",e)}}}();var __read=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},__values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){e.forEach(function(e){y[e.pdf_hash]=e})}function t(){[].slice.call(document.querySelectorAll("["+d+"]")).forEach(function(e){e.removeAttribute(d)})}function n(e){return i(e)}function r(e,t,n,r){try{e.onHelperRemediationStarted("REMEDIATION_PDF_DOCUMENTS");var i=[],a=[],l=[];r.forEach(function(e,t){var n,r=!!(null===(n=e.href.split("?")[1])||void 0===n?void 0:n.includes(".pdf")),s=r?e.href:e.href.split("?")[0],c=u.hashString(s),m=o(e.href),b=e.hasAttribute(f);if(y[c]){var v=y[c].rem_url;v&&!b&&(e.setAttribute(p,e.href),e.href=g+v),l.indexOf(s)<0&&(a.push(Object.assign({},y[c],{name:m,pdf_url:s,pdf_link:e.innerText,pdf_isDone:!!v||b})),l.push(s))}else{var _=e.hasAttribute(h)&&"1"===e.getAttribute(h),A=e.hasAttribute(h)&&"0"===e.getAttribute(h);_&&!b&&i.push({hash:c,url:s}),l.indexOf(s.toLowerCase())<0&&(a.push({pdf_url:e.href,pdf_hash:c,pdf_link:e.innerText,name:m,status:b?"DONE":null,validityCheckFailed:A,id:"not_created-"+t,pdf_isDone:b}),l.push(s.toLowerCase()))}e.setAttribute(d,"")}),e.onHelperRemediationCompleted(c.of("REMEDIATION_PDF_DOCUMENTS",{items:a},{items:i,path:m,props:{page:location.pathname}},a.length,a.length)),t()}catch(e){n(e)}}function o(e){return e.substring(e.lastIndexOf("/")+1)}function i(e){return e.filter(function(e){var t,n;if(!e||e.nodeType!==Node.ELEMENT_NODE||"A"!==e.nodeName)return!1;if(e.hasAttribute(d))return!1;if(e.hasAttribute(p))return!1;var r=e.href?e.href.split("?")[0]:null;if(!r)return!1;if(null===r||void 0===r?void 0:r.match(/\.pdf($|\?)/i))return!0;var o=new URLSearchParams(e.href);try{for(var i=__values(o.entries()),a=i.next();!a.done;a=i.next()){var u=__read(a.value,2),l=u[1];if(null===l||void 0===l?void 0:l.match(/\.pdf($|\?)/))return!0}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return!1})}var a=UserWayWidgetApp.addLib("REMEDIATION_PDF_DOCUMENTS"),u=UserWayWidgetApp.getLib("util"),l=UserWayWidgetApp.getLib("remediationConfig").pdf||{},s=UserWayWidgetApp.getLib("remediation_utils"),c=UserWayWidgetApp.getLib("remediation_helper_outcome"),d="data-uw-pdf-doc",f="data-uw-pdf-rem",p="data-uw-pdf-doc-original",h="data-uw-pdf-br",m="pdf",g="https://cdn.userway.org/",y={};a.filter=function(e,r){return l.enabled?(r.reset&&t(),n([].concat.apply([],__spreadArray([],__read(e.map(function(e){return[].slice.call(e.querySelectorAll("a[href]"))})),!1)))):[]},a.awaitForResources=function(t,n){return new Promise(function(n,r){var o,i;if(!l.enabled)return n(!0);UserWayWidgetApp.ContextHolder.remediationResources&&UserWayWidgetApp.ContextHolder.remediationResources.Pdfs&&e(UserWayWidgetApp.ContextHolder.remediationResources.Pdfs);var a=[];try{for(var u=__values(t),c=u.next();!c.done;c=u.next()){var d=c.value;!d.hasAttribute(h)&&a.indexOf(d)<0&&a.push(d)}}catch(e){o={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}return a.length?l.config.quotaExceeded?(a.forEach(function(e){e.setAttribute(h,"2")}),n(!0)):void s.sendBackEnd("/br-links/v0/pdf-links",null,{page:location.pathname,fullPage:location.href,links:a.map(function(e){return e.href})}).then(function(e){var t=e&&e.response&&JSON.parse(e.response);a.forEach(function(e,n){var r=t.statuses[n];[0,1,2].indexOf(r)>-1&&e.setAttribute(h,""+r)}),n(!0)}).catch(function(e){return r(e)}):n(!0)})},a.doRemediation=function(e,t,n){return new Promise(function(n,o){r(e,n,o,t)})}}(),function(){var e=UserWayWidgetApp.addLib("REMEDIATION_PER_SITE"),t=UserWayWidgetApp.getLib("remediationConfig"),n=UserWayWidgetApp.getLib("util");e.apply=function(){t.perSiteRemediation&&t.perSiteRemediation.enabled&&t.perSiteRemediation.resources&&n.execJs(t.perSiteRemediation.resources).finally(function(){n.fireUserWayLifeCycleEvent(n.LIFE_CYCLE_EVENT.REMEDIATION_CSR_LOADED)})}}();var __read=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o])
;return e.concat(r||Array.prototype.slice.call(t))};!function(){var e=UserWayWidgetApp.addLib("REMEDIATION_POPUP"),t=UserWayWidgetApp.getLib("remediation_util"),n=UserWayWidgetApp.getLib("event_emitter"),r=UserWayWidgetApp.getLib("util");e.apply=function(){n.on("UW_CER_POPUP_ON",function(e){var n=__read(e,2),o=n[0],i=n[1];!function(e,n){setTimeout(function(){var o,i;t.clickOnEnter(n);var a=Array.from(e.querySelectorAll(t.focusableElementsSelector)).filter(function(e){return n!==e&&t.isElementVisible(e,{skipParentCheck:!0})&&!e.hasAttribute("data-uw-rm-ignore")});try{for(var u=__values(a),l=u.next();!l.done;l=u.next()){var s=l.value;s.setAttribute("tabindex","0"),t.clickOnEnter(s)}}catch(e){o={error:e}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}if(a.length){null===n||void 0===n||n.setAttribute("tabindex","0");var c=n?__spreadArray([n],__read(a),!1):a;t.trapFocusPopupElements(c,e)}else n&&(n.addEventListener("keydown",function(e){t.keys.isTab(e)&&e.preventDefault()}),n.focus());if(e.addEventListener("keydown",function(e){t.keys.isEsc(e)&&n.click()}),n){r.customTrim(n.textContent).length<3&&!n.hasAttribute("aria-label")&&!n.hasAttribute("aria-labelledby")&&n.setAttribute("aria-label","Close dialog"),-1!==["INPUT","BUTTON","A"].indexOf(n.tagName)||n.hasAttribute("role")||(n.setAttribute("role","button"),n.setAttribute("tabindex","0"))}},1e3)}(o,i)})}}();var __read=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},__values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function t(e){var t=Array.from(e.children),n=t.filter(function(e){return"LI"===e.tagName&&!e.hasAttribute("role")});if(n.length)return n;var r=t.filter(function(e){return!e.hasAttribute("role")&&(["A","BUTTON"].includes(e.tagName)||e.hasAttribute("tabindex"))});return r.length?r:[]}function n(){var n,r,o=0,i=Array.from(document.querySelectorAll('*[role="menu"], *[role="menubar"]'));try{for(var a=__values(i),u=a.next();!u.done;u=a.next()){var l=u.value;!function(n){var r,i;if(!n.hasAttribute(g)){n.setAttribute(g,"");if(!Array.from(n.querySelectorAll('*[role="menuitem"], *[role="menuitemcheckbox"], *[role="menuitemradio"]')).length){o++;var a=t(n);try{for(var u=(r=void 0,__values(a)),l=u.next();!l.done;l=u.next()){var s=l.value;s.setAttribute("role","menuitem"),s.setAttribute(g,"menuitem")}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}if(!a.length&&!e(n)){var c=n.getAttribute("role");n.setAttribute(g+"-role",c),n.removeAttribute("role"),h.onElementVisible(n,function(){if(n.hasAttribute(g+"-role")){var e=n.getAttribute(g+"-role");n.removeAttribute(g+"-role"),n.setAttribute("role",e)}})}}}}(l)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}function r(){o("aria-labelledby"),o("aria-describedby")}function o(e){Array.from(document.querySelectorAll("*["+g+"-"+e+"]")).forEach(function(t){var n=t.getAttribute(g+"-"+e).split(" "),r=[],o=[];n.forEach(function(e){document.getElementById(e)?r.push(e):o.push(e)}),r.length&&t.setAttribute(e,r.join(" ")),o.length?o.length!==n.length&&t.setAttribute(g+"-"+e,o.join(" ")):t.removeAttribute(g+"-"+e)})}function i(){var e=0;return e+=a("aria-labelledby"),e+=a("aria-describedby")}function a(e){var t=0;return Array.from(document.querySelectorAll("*["+e+"]")).forEach(function(n){if(!n.hasAttribute(g)){var r=n.getAttribute(e).split(" "),o=[],i=[];r.forEach(function(e){document.getElementById(e)?o.push(e):i.push(e)}),i.length&&(n.setAttribute(g+"-"+e,i.join(" ")),o.length?n.setAttribute(e,o.join(" ")):n.removeAttribute(e)),t+=i.length}}),t}function u(e){var t=e.tagName.toLowerCase();if("s"===t||"strike"===t||"del"===t)return!0;var n=window.getComputedStyle(e);if(!!n.getPropertyValue("text-decoration")&&n.getPropertyValue("text-decoration").indexOf("line-through")>-1)return!0;var r=e.parentElement;return!(!r||"BODY"===r.tagName.toUpperCase())&&u(r)}function l(){var e,t,n=0,r=m.ElementsWithText.getElementsWithText(document,!1);try{for(var o=__values(r),i=o.next();!i.done;i=o.next()){var a=i.value;if(!a.hasAttribute(g)){var l=h.customTrim(a.innerText),s=l.match(/(?:[\$\xA2-\xA5\u058F\u060B\u09F2\u09F3\u09FB\u0AF1\u0BF9\u0E3F\u17DB\u20A0-\u20BD\uA838\uFDFC\uFE69\uFF04\uFFE0\uFFE1\uFFE5\uFFE6])(?:[^0-9.]*)([\d,.]+)/);l&&s&&s.length&&(a.setAttribute(g,""),u(a)&&(a.setAttribute("aria-label","Previous price was "+s[0]),a.setAttribute(g,"price"),n++))}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return n}function s(){[].slice.call(document.querySelectorAll("["+g+"]")).forEach(function(e){e.removeAttribute(g)})}function c(e){for(var t=e,n=!1;t&&"BODY"!==t.tagName.toUpperCase();){if(t.hasAttribute("contenteditable")){n=!0;break}t=t.parentElement}return n}function d(e){return e.filter(function(e){return!e.hasAttribute("role")&&(!c(e)&&!e.hasAttribute(g))})}var f=UserWayWidgetApp.addLib("REMEDIATION_SCREEN_READER_BASIC"),p=UserWayWidgetApp.getLib("remediation_helper_outcome"),h=UserWayWidgetApp.getLib("util"),m=UserWayWidgetApp.getLib("helpers"),g="data-uw-rm-sr";f.filter=function(e,t){return t.reset&&s(),d([].concat.apply([],__spreadArray([],__read(e.map(function(e){return[].slice.call(e.querySelectorAll("br,hr"))})),!1)))},f.awaitForResources=function(e,t){return Promise.resolve()},f.doRemediation=function(e,t,o){return new Promise(function(o,a){try{e.onHelperRemediationStarted("REMEDIATION_SCREEN_READER_BASIC"),t.forEach(function(e){e.setAttribute("role","presentation"),e.setAttribute(g,"")});var u=l();r();var s=i(),c=n();e.onHelperRemediationCompleted(p.of("REMEDIATION_SCREEN_READER_BASIC",null,null,t.length+u+s+c,0)),o(!0)}catch(e){a(e)}})}}();var __read=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};!function(){function e(e,t){var n=s.config.resources+UserWayWidgetApp.ContextHolder.config.services.siteId+"/"+d.hashString(p);d.request({method:"GET",url:n}).then(function(t){if(t&&t.response&&404!==JSON.parse(t.response).code){var n=JSON.parse(t.response);m=n.Dictionary,y=n.ContentModeration}e()},function(e){t(e)})}function t(){m={},y=[],[].slice.call(document.querySelectorAll("["+h+"]")).forEach(function(e){e.removeAttribute(h)})}function n(e){return new RegExp("([^A-Za-z0-9_-]|^)"+e.replace(/(\s)/g,"\\s+")+"([^A-Za-z0-9_-]|$)","gi")}function r(e){for(var t=Object.keys(m).length;t--;){var n=Object.keys(m)[t],r=m[n],o=r.t;if(e.trim().toLowerCase()===o.trim().toLowerCase())return n}throw"Unexpected term: "+e}function o(e,t,n){for(var r=y.length;r--;){var o=y[r];if(o.phraseId+""===e&&o.type===t&&o.xpath===n&&!o.ignored)return o.correction}return null}function i(e,t,n){for(var r=y.length;r--;){var o=y[r];if(o.phraseId+""===e&&o.type===t&&o.xpath===n&&o.ignored)return!0}return!1}function a(e,t,a,l,s){try{e.onHelperRemediationStarted("REMEDIATION_SOCIAL_SENSITIVITY"),l=l.filter(function(e){var t=e.parentNode;return t&&"function"!=typeof t.hasAttribute||!t.hasAttribute(h)});var f=0,p=[],y=Object.keys(m).map(function(e){return m[e].t});l.forEach(function(e){var t=" "+d.customTrim(e.textContent)+" ",a="INNER_TEXT",l=[];if(y.forEach(function(e){var r=t.match(n(e));r&&l.push.apply(l,__spreadArray([],__read(new Array(r.length).fill(e)),!1))}),l&&l.length){f+=l.length;for(var s=d.xpath(e.parentElement),c=0;c<l.length;c++){for(var m=l[c],b=0,v=0;v<c;v++){l[v].toLowerCase()===m.toLowerCase()&&b++}var _=d.hashString(s+m+b)+"",A=r(m),E=i(A,a,_),w=o(A,a,_),S=!!w||E;S&&g++,w&&!E&&u(e,m,w),e.parentElement.setAttribute(h,""),p.push({xpath:s,xpathHash:_,type:a,term:m,approved:S,ignored:E,phraseId:A,correction:S?w:null})}}}),e.onHelperRemediationCompleted(c.of("REMEDIATION_SOCIAL_SENSITIVITY",{items:p},null,f,p.filter(function(e){return!e.correction}).length)),t()}catch(e){a(e)}}function u(e,t,n){var r=new RegExp(t,"gi"),o=e.textContent;e.textContent=o.replace(r,n)}var l=UserWayWidgetApp.addLib("REMEDIATION_SOCIAL_SENSITIVITY"),s=UserWayWidgetApp.getLib("remediationConfig").moderator,c=UserWayWidgetApp.getLib("remediation_helper_outcome"),d=UserWayWidgetApp.getLib("util"),f=UserWayWidgetApp.getLib("helpers"),p=location.pathname,h="data-uw-rm-mod",m={},g=0,y=[];l.filter=function(e,n){return s.enabled?(n.reset&&t(),f.ElementsWithText.getTextNodes(document,!1)):[]},l.awaitForResources=function(t,n){return s.enabled&&s.config.resources&&t.length&&n.reset?new Promise(function(t,n){e(t,n)}):Promise.resolve()},l.doRemediation=function(e,t,n){return new Promise(function(r,o){a(e,r,o,t,n)})}}();var __values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){var t=e.checked,n=e.readOnly,r=e.required,o=e.disabled,i=e.hidden,a=e.getAttribute("aria-checked"),u=e.getAttribute("aria-readonly"),l=e.getAttribute("aria-required"),s=e.getAttribute("aria-disabled"),c=e.getAttribute("aria-hidden");t&&"true"!==a&&(e.ariaChecked=!0),t||"false"===a||(e.ariaChecked=!1),n&&"true"!==u&&(e.ariaReadOnly=!0),n||"false"===u||(e.ariaReadOnly=!1),r&&"true"!==l&&(e.ariaRequired=!0),r||"false"===l||(e.ariaRequired=!1),o&&"true"!==s&&(e.ariaDisabled=!0),o||"false"===s||(e.ariaDisabled=!1),i&&"true"!==c&&(e.ariaHidden=!0),i||"false"===c||(e.ariaHidden=!1)}function t(t){var n=function(n){var r,o;try{for(var i=__values(n),a=i.next();!a.done;a=i.next()){"attributes"===a.value.type&&e(t)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},r=new MutationObserver(n),o={attributes:!0,childList:!1,subtree:!1};r.observe(t,o)}var n=UserWayWidgetApp.addLib("REMEDIATION_ANGULAR_JS_ARIA");n.filter=function(e,t){return[]},n.awaitForResources=function(e,t){return Promise.resolve()},n.doRemediation=function(n,r,o){var i=document.querySelectorAll("[ng-show], [ng-hide], [ng-value], [ng-checked], [ng-readonly], [ng-required], [ng-model], [ng-disabled]");return new Promise(function(n){var r,o;try{for(var a=__values(Array.from(i)),u=a.next();!u.done;u=a.next()){var l=u.value;e(l),t(l)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}n(!0)})}}();var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},__assign.apply(this,arguments)},__values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){var e=UserWayWidgetApp.addLib("remediation_util"),t=UserWayWidgetApp.getLib("util");e.focusableElementsSelector="\n    a[href]:not([tabindex='-1']), \n    area[href]:not([tabindex='-1']), \n    audio[controls]:not([tabindex='-1']), \n    button:not([disabled], [tabindex='-1']), \n    details:not([tabindex='-1']) summary:not([tabindex='-1']), \n    input:not([disabled], [type=hidden], [tabindex='-1']), \n    iframe:not([tabindex='-1']), \n    select:not([disabled], [tabindex='-1']), \n    textarea:not([disabled], [tabindex='-1']), \n    video[controls]:not([tabindex='-1']), \n    [tabindex]:not([disabled], [tabindex='-1']), \n    [contenteditable='']:not([disabled], [tabindex='-1']),\n    [contenteditable='true']:not([disabled], [tabindex='-1'])\n  ",e.keys={isRightShift:function(e){return 16===e.keyCode||"Shift"===e.key||"ShiftRight"===e.code},isLeftShift:function(e){return 16===e.keyCode||"Shift"===e.key||"ShiftLeft"===e.code},isSpace:function(e){return 32===e.keyCode||" "===e.key||"Space"===e.code},isEnter:function(e){return 13===e.keyCode||"Enter"===e.key||"Enter"===e.code},isEsc:function(e){return 27===e.keyCode||"Escape"===e.key||"Escape"===e.code},isTab:function(e){return 9===e.keyCode||"Tab"===e.key||"Tab"===e.code},isHome:function(e){return 36===e.keyCode||"Home"===e.key||"Home"===e.code},isEnd:function(e){return 35===e.keyCode||"End"===e.key||"End"===e.code},isPageUp:function(e){return 33===e.keyCode||"PageUp"===e.key||"PageUp"===e.code},isPageDown:function(e){return 34===e.keyCode||"PageDown"===e.key||"PageDown"===e.code},isArrowLeft:function(e){return 37===e.keyCode||"ArrowLeft"===e.key||"ArrowLeft"===e.code},isArrowUp:function(e){return 38===e.keyCode||"ArrowUp"===e.key||"ArrowUp"===e.code},isArrowRight:function(e){return 39===e.keyCode||"ArrowRight"===e.key||"ArrowRight"===e.code},isArrowDown:function(e){return 40===e.keyCode||"ArrowDown"===e.key||"ArrowDown"===e.code},isPrintableChar:function(e){return 1===e.key.length&&e.key.match(/\S/)}},e.log=function(e,t,n){console.warn("UserWay remediation "+e+" - "+t+": "+n)},e.generateRandomId=t.generateRandomId,e.isElementEditable=function(e){function t(e){var t=e.nodeName.toLowerCase();return!!e.hasAttribute("contenteditable")||1===e.nodeType&&("textarea"===t||"input"===t&&/^(?:text|email|number|search|tel|url|password)$/i.test(e.type))}var n,r,o=t(e);if(o)return!0;try{for(var i=__values(Array.from(e.querySelectorAll("*"))),a=i.next();!a.done;a=i.next()){if(o=t(a.value))break}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o},e.waitUntil=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),n=__assign({timeout:8e3,frequency:1e3},n||{});var o=Date.now();!function i(){var a=e();if(a)return t(a);setTimeout(function(){if(n.timeout&&Date.now()-o>n.timeout)return void(r&&r());i()},n.frequency)}()},e.trapFocusBetweenElements=function(t,n,r){void 0===r&&(r=null);var o=!1;window.addEventListener("keydown",function(t){e.keys.isLeftShift(t)&&(o=!0)}),window.addEventListener("keyup",function(t){e.keys.isLeftShift(t)&&(o=!1)}),t.setAttribute("tabindex","0"),document.activeElement&&r.contains(document.activeElement)||t.focus(),t.addEventListener("keydown",function(t){e.keys.isTab(t)&&o&&(t.preventDefault(),n.focus())}),n.setAttribute("tabindex","0"),n.addEventListener("keydown",function(n){e.keys.isTab(n)&&(o||(n.preventDefault(),t.focus()))})},e.trapFocusPopupElements=function(t,n){void 0===n&&(n=null);var r=!1;window.addEventListener("keydown",function(t){e.keys.isLeftShift(t)&&(r=!0)}),window.addEventListener("keyup",function(t){e.keys.isLeftShift(t)&&(r=!1)});var o=t[0],i=t[t.length-1];document.activeElement&&n.contains(document.activeElement)||o.focus(),t.forEach(function(n,a){n.addEventListener("keydown",function(n){e.keys.isTab(n)&&(n.preventDefault(),r?(t[a-1]?t[a-1]:i).focus():(t[a+1]?t[a+1]:o).focus())})})},e.trapFocusBetween=function(e){function t(e,t,r){if(9===r.keyCode)return n?t&&t.focus():e&&e.focus(),r.preventDefault();16===r.keyCode&&(n=!0)}for(var n=!1,r=[],o=0;o<e.length;o++){var i=document.querySelector(e[o]);if(i){i.setAttribute("tabindex",0);var a=document.querySelector(e[o+1])||document.querySelector(e[0]),u=document.querySelector(e[o-1])||document.querySelector(e[e.length-1]),l=t.bind(event,a,u);r.push(l),i.addEventListener("keydown",l,!1),i.addEventListener("keyup",function(e){16===e.keyCode&&(n=!1)})}}return setTimeout(function(){var t=document.querySelector(e[0]);t&&t.focus()},100),{terminate:function(){for(var t=0;t<e.length;t++){document.querySelector(e[t]).removeEventListener("keydown",r[t])}}}},e.waitForDocumentReady=function(e){var t=setInterval(function(){"complete"===document.readyState&&(clearInterval(t),e())},10)},e.injectStylesheet=function(e){var t=document.createElement("style");return t.innerHTML=e,document.head.appendChild(t),t},e.setSrOnly=function(e){if(e.style){var t={overflow:"hidden",position:"absolute",margin:"0",padding:"0",width:"1px",height:"1px",border:"0",clip:"rect(1px, 1px, 1px, 1px)","-webkit-clip-path":"inset(50%)","clip-path":"inset(50%)","white-space":"nowrap"};for(var n in t)e.style.setProperty(n,t[n],"important")}},e.createSrOnlyElement=function(t,n){void 0===t&&(t=""),void 0===n&&(n="span");var r=document.createElement(n);return r.textContent=t,e.setSrOnly(r),r},e.isElementVisible=function(e,t){t=t||{},t.hasOwnProperty("skipParentCheck")||(t.skipParentCheck=!1),t.hasOwnProperty("shouldBeInViewport")||(t.shouldBeInViewport=!0);var n=function(e,t){if(!e)return!1;if(e===document)return!0;var n=getComputedStyle(e),r=e.getBoundingClientRect(),o=r.top>=0&&r.left>=0&&r.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&r.right<=(window.innerWidth||document.documentElement.clientWidth),i=0===r.width||0===r.height;return(e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0)&&(!t.shouldBeInViewport||o)&&!i&&"0"!==n.opacity&&"hidden"!==n.visibility&&"collapse"!==n.visibility},r=n(e,t);if(!t.skipParentCheck)for(;r&&e.parentNode&&e.parentNode!==document;)n(e.parentNode,{shouldBeInViewport:!1})?e=e.parentNode:r=!1;return r},e.fireEvent=function(e,t){if(e.fireEvent)e.fireEvent("on"+t);else{var n=document.createEvent("Events");n.initEvent(t,!0,!1),e.dispatchEvent(n)}},e.clickOnEnter=function(t){t&&"function"==typeof t.click&&!e.isElementEditable(t)&&t.addEventListener("keydown",function(n){e.keys.isEnter(n)&&(n.preventDefault(),t.click())})},e.clickOnSpace=function(t){t&&"function"==typeof t.click&&!e.isElementEditable(t)&&t.addEventListener("keydown",function(n){e.keys.isSpace(n)&&(n.preventDefault(),t.click())})},e.execOnPage=function(e,t){var n,r,o;if(Array.isArray(e))try{for(var i=__values(e),a=i.next();!a.done;a=i.next()){var u=a.value;if(o=new RegExp(u).test(window.location.href)){t();break}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}else(o=new RegExp(e).test(window.location.href))&&t();return o},e.getFocusableElement=function(t,n,r){t=t||"next",r=r||{},r.childrenOnly=r.childrenOnly||!1,r.canBeHidden=r.canBeHidden||!1;var o=Array.from((r.childrenOnly?n:document).querySelectorAll(e.focusableElementsSelector+(n?","+e.getCssPath(n):"")));r.canBeHidden||(o=o.filter(function(e){return!!e.offsetParent}));var i=o.findIndex(function(e){return!(!n||e!==n)||e===document.activeElement});return"next"===t?o[i+1]||o[0]:"prev"===t?o[i-1]||o[o.length-1]:void 0},e.getCssPath=function(e){for(var t=[];e.parentNode;){if(e.id){t.unshift("#"+e.id);break}if(e==e.ownerDocument.documentElement)t.unshift(e.tagName);else{for(var n=1,r=e;r.previousElementSibling;r=r.previousElementSibling,n++);t.unshift(e.tagName+":nth-child("+n+")")}e=e.parentNode}return t.join(" > ")},e.getElementPosition=function(e){for(var t=0,n=0;e;){if("BODY"==e.tagName){var r=e.scrollLeft||document.documentElement.scrollLeft,o=e.scrollTop||document.documentElement.scrollTop;t+=e.offsetLeft-r+e.clientLeft,n+=e.offsetTop-o+e.clientTop}else t+=e.offsetLeft-e.scrollLeft+e.clientLeft,n+=e.offsetTop-e.scrollTop+e.clientTop;e=e.offsetParent}return{x:t,y:n}};var n=[];e.onHistoryPushState=function(e,t){if(void 0===t&&(t={}),t=__assign({delay:300},t),n.push(e),1===n.length){if(window.history){var r=window.history.pushState;window.history.pushState=function(e){return"function"==typeof window.history.onpushstate&&window.history.onpushstate({state:e}),r.apply(window.history,arguments)}}var o;window.onpopstate=window.history.onpushstate=function(){clearTimeout(o),o=setTimeout(function(){return n.forEach(function(e){return e()})},t.delay)}}},e.announce=function(e){var t=document.createElement("div");t.setAttribute("aria-live","assertive"),t.style.width="0",t.style.height="0",t.style.overflow="hidden",document.body.insertAdjacentElement("afterbegin",t),setTimeout(function(){t.innerHTML=e},1e3),setTimeout(function(){t.remove()},1e4)},e.queryXPath=function(e,t){var n;void 0===t&&(t=null);var r=document.evaluate(e,t||document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null);return(null===r||void 0===r?void 0:r.singleNodeValue)&&(null===(n=null===r||void 0===r?void 0:r.singleNodeValue)||void 0===n?void 0:n.nodeType)===Node.ELEMENT_NODE?r.singleNodeValue:null},e.queryXPathAll=function(e,t){void 0===t&&(t=null);for(var n=document.evaluate(e,t||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),r=[],o=0,i=n.snapshotLength;o<i;++o)r.push(n.snapshotItem(o));return r},e.loopThroughElements=function(t,n,r,o){void 0===r&&(r=null),void 0===o&&(o=null),r=__assign({ancestor:document,useForEach:!0},r||{}),e.waitUntil(function(){if(r.ancestor){var n=[];try{n=r.ancestor.querySelectorAll(t)}catch(o){try{n=e.queryXPathAll(t,r.ancestor)}catch(e){throw new Error(t+" is invalid CSS and XPath selector")}}return(null===n||void 0===n?void 0:n.length)?n:void 0}},function(e){r.useForEach?e.forEach(n):n(e)},r,o)},e.waitForElement=function(t,n,r,o){void 0===r&&(r=null),void 0===o&&(o=null),r=__assign({ancestor:document},r||{}),e.waitUntil(function(){if(r.ancestor)try{return r.ancestor.querySelector(t)}catch(n){try{return e.queryXPath(t,r.ancestor)}catch(e){throw new Error(t+" is invalid CSS and XPath selector")}}},n,r,o)}}(),function(){function e(e,t,n,o){-1===l.indexOf(e)&&(l.push(e),r.execJs(a+t,n).then(function(){o&&window.postMessage({isUserWay:!0,action:"remediation",type:"add-dynamically",remediationHelperName:o},"*")}))}var t,n=UserWayWidgetApp.addLib("cpr_patterns_observer"),r=UserWayWidgetApp.getLib("util"),o=UserWayWidgetApp.getLib("remediation_util"),i=UserWayWidgetApp.getLib("remediationConfig"),a=(i&&i.complex&&i.complex,"https://cdn.userway.org/"),u="widgetapp/2024-11-15-13-47-25/remediation/nav_menu_helper_1731678445949.js",l=[],s=i.labs&&i.labs.enabled&&Object.keys(null!==(t=i.labs.config)&&void 0!==t?t:[]).length>0;n.apply=function(e){c.filter(function(e){return e.onPageLoad}).forEach(function(e){return e.observe()})},n.tick=function(e){c.filter(function(e){return e.onDomChanged}).forEach(function(e){return e.observe()})};var c=[{name:"PayoneerAccountSitesCommon",remediationHelperName:"",path:"widgetapp/2024-11-15-13-47-25/remediation/payoneer_account_1731678445949.js",onPageLoad:!0,onDomChanged:!1,observe:function(){var t=this;"m8nhTkGuMw"===UserWayWidgetApp.ContextHolder.config.account&&function(){e(t.name,t.path,"sha256-NJHPNbXQL8/yvJDyo23NXe1W44QtML+W756pkztQpYM=",t.remediationHelperName)}()}},{name:"SimplexAccountSitesCommon",remediationHelperName:"",path:"widgetapp/2024-11-15-13-47-25/remediation/simplex_account_1731678445949.js",onPageLoad:!0,onDomChanged:!1,observe:function(){var t=this;"DBnq3tIKbX"===UserWayWidgetApp.ContextHolder.config.account&&function(){e(t.name,t.path,"sha256-7a+7Xg3vciW+Mne1lJuwv2A4CANleNvKOmGD12pHInM=",t.remediationHelperName)}()}},{name:"JQueryUiDatepicker",remediationHelperName:"",path:"widgetapp/2024-11-15-13-47-25/remediation/jqueryui_datepicker_1731678445949.js",onPageLoad:!0,onDomChanged:!1,observe:function(){[].slice.call(document.querySelectorAll(".hasDatepicker")).filter(function(e){return!e.getAttribute("data-uw-rm-cpr-jqdp")}).length&&jQuery&&jQuery.ui&&jQuery.ui.datepicker&&e(this.name,this.path,"sha256-fzY74JVqYIY5N5yNkPCLVyawerLdVlcB7cdjZRcRfKs=",this.remediationHelperName)}},{name:"AngularJsAria",remediationHelperName:"ANGULAR_JS_ARIA",path:"widgetapp/2024-11-15-13-47-25/remediation/uw_aria_helper_1731678445949.ts",onPageLoad:!0,onDomChanged:!1,observe:function(){var t=this,n=function(){e(t.name,t.path,"sha256-skUcGYwV4ch6x37u65wVQrTZMuCIAUdYJOqbNwN54j0=",t.remediationHelperName)};o.waitUntil(function(){return!!document.querySelector("[ng-app]")},n,{timeout:6e4})}},{name:"slickSlider",remediationHelperName:"",path:"widgetapp/2024-11-15-13-47-25/remediation/slick_slider_1731678445949.js",onPageLoad:!0,onDomChanged:!1,observe:function(){document.querySelector(".slick-slider")&&e(this.name,this.path,"sha256-HzbaajCSXjYzpdPrxYVWGL41xitmsBp335XXFB2zyNI=",this.remediationHelperName)}},{name:"NavMenu",remediationHelperName:"",path:"//",onPageLoad:!0,onDomChanged:!1,observe:function(){var t=function(){s||(window.jQuery&&window.jQuery.ui&&window.jQuery.ui.version?(o.waitUntil(function(){return!!(window.jQuery&&window.jQuery.ui&&window.jQuery.ui.version&&window.jQuery.ui.menu)&&!!document.querySelector(".navigation .ui-menu-item")},function(){setTimeout(function(){e("JQueryUiMenu","widgetapp/2024-11-15-13-47-25/remediation/jqueryui_menu_helper_1731678445949.js","sha256-vvjYbKhSaii5P+3Ctik4H+LTSHLvHDnybHBFwUSL1uQ=","")},4e3)},{timeout:1e4}),setTimeout(function(){-1===l.indexOf("JQueryUiMenu")&&e("NavMenu",u,"sha256-SO73/mGj4sfIisHGomO9hRtqBTY2B+Uv0r5ORHLUIlU=","")},14100)):-1===l.indexOf("JQueryUiMenu")&&e("NavMenu",u,"sha256-SO73/mGj4sfIisHGomO9hRtqBTY2B+Uv0r5ORHLUIlU=",""))};"complete"===document.readyState?t():window.addEventListener("load",t,!1)}},{name:"OwlCarousel",remediationHelperName:"",path:"widgetapp/2024-11-15-13-47-25/remediation/owl_carousel_1731678445949.js",onPageLoad:!0,onDomChanged:!1,observe:function(){document.querySelector(".owl-carousel")&&e(this.name,this.path,"sha256-uURQpSwG3FAwlOtP33/NYxsGef08DBKWfqJwwNcAdU0=",this.remediationHelperName)}},{name:"yotpoWidget",remediationHelperName:"",path:"widgetapp/2024-11-15-13-47-25/remediation/yotpo_widget_1731678445949.js",onPageLoad:!0,onDomChanged:!1,observe:function(){document.querySelector(".yotpo")&&e(this.name,this.path,"sha256-GIuAq4nuA4gneXSAeZ/QDQug8Z/6Xbz2E9fOLGZV5Eg=",this.remediationHelperName)}},{name:"judgeMe",remediationHelperName:"",path:"widgetapp/2024-11-15-13-47-25/remediation/judgeme_widget_1731678445949.js",onPageLoad:!0,onDomChanged:!1,observe:function(){document.querySelector(".jdgm-star")&&e(this.name,this.path,"sha256-UbU25H+TzYB73LKY1BZpGepuOcR3Zq40WFZ/6Bf9s3s=",this.remediationHelperName)}},{name:"cycleSliderHelper",remediationHelperName:"",path:"widgetapp/2024-11-15-13-47-25/remediation/cycle_slider_helper_1731678445949.js",onPageLoad:!0,onDomChanged:!1,observe:function(){document.querySelector(".cycle-slide")&&e(this.name,this.path,"sha256-7d6M1UDXQDlMngKZI+asQoUOXwa4BMyeRqUCiDYsxas=",this.remediationHelperName)}},{name:"muiElementsRemediation",remediationHelperName:"",path:"widgetapp/2024-11-15-13-47-25/remediation/mui_elements_1731678445949.js",onPageLoad:!0,onDomChanged:!0,observe:function(){["mat-expansion-panel.mat-expansion-panel",".mat-option-text",".mat-option-ripple",".mat-form-field-label-wrapper",".mat-expansion-panel-header-title",".mat-expansion-indicator",".mat-autocomplete-panel",".mat-expansion-panel-header"].some(function(e){return document.querySelector(e)})&&e(this.name,this.path,"sha256-yXI4CdhFr5OhbD13f+WFeyHuPTtGa1K47eJRnqTztlI=",this.remediationHelperName)}},{name:"shortPointHelper",remediationHelperName:"",path:"widgetapp/2024-11-15-13-47-25/remediation/s_p_1731678445949.js",onPageLoad:!0,onDomChanged:!1,observe:function(){['[data-shortpoint-type="row"]'].some(function(e){return document.querySelector(e)})&&e(this.name,this.path,"sha256-wEsvu9mmG0N5053GtFHN4cn5qmr27+xhS3MMUa3MVBM=",this.remediationHelperName)}}]}();var __values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){var n=e.alt;if(n&&n.trim())return n.trim();var r=e.getAttribute("aria-label");if(r&&r.trim())return r.trim();var o=e.getAttribute("aria-describedby");if(o){var i=t(o);if(i)return i}var a=e.getAttribute("aria-labelledby");if(a){var i=t(a);if(i)return i}return null}function t(e){var t=e.split(" "),n="";return t.forEach(function(e){e=e.trim();var t=document.getElementById(e);n+=t&&t.textContent?t.textContent:""}),n}var n,r=UserWayWidgetApp.addLib("remediation_utils");r.ignoreElementFromHelperProcessingAttr="data-uw-rm-ignore";var o=UserWayWidgetApp.getLib("util"),i=UserWayWidgetApp.getLib("inlineStyling"),a=UserWayWidgetApp.getLib("xpath_search");r.PROCESS_ATTRIBUTES={CER:{popup:{wrapper:"data-uw-cer-popup-wrapper",close:"data-uw-cer-popup-close"}}};var u={attrMarker:"uw-remediation",className:"uw-remediation-highlighting",styles:(n={border:"dashed 2px #c00"},n["border-radius"]="3px",n["box-shadow"]="0 0 0 4px yellow, inset 0 0 0 4px yellow",n)};r.sendBackEnd=function(e,t,n){var r={method:"POST",url:"https://api.userway.org/api"+e,header:{"Content-Type":"application/json"},body:{userId:UserWayWidgetApp.ContextHolder.config.services.userId,siteId:UserWayWidgetApp.ContextHolder.config.services.siteId}};return t&&(r.body.elements=t),"object"==typeof n&&Object.keys(n).map(function(e){r.body[e]=n[e]}),o.request(r)},r.highlightElements=function(e,t,n){var r,o,l,s,c=document.querySelectorAll("."+u.className);c.length&&c.forEach(function(e){i.resetInlineStyles(e,u.attrMarker,u.styles),e.classList.remove(u.className)});var d=[];switch(e){case"xpath":var f=a.recursiveXpathSearch(t);d="boolean"!=typeof f?[f]:[];break;case"href":var p=Array.prototype.slice.call(document.querySelectorAll("[href]"));try{for(var h=__values(p),m=h.next();!m.done;m=h.next()){var g=m.value;g.href.toLowerCase().indexOf(t)>-1&&d.push(g)}}catch(e){r={error:e}}finally{try{m&&!m.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}break;case"src":var y=Array.prototype.slice.call(document.querySelectorAll("[src]"));try{for(var b=__values(y),v=b.next();!v.done;v=b.next()){var _=v.value;_.src.toLowerCase().indexOf(t)>-1&&d.push(_)}}catch(e){l={error:e}}finally{try{v&&!v.done&&(s=b.return)&&s.call(b)}finally{if(l)throw l.error}}break;case"attr":if(n.attrName){var A=document.querySelectorAll("["+n.attrName+'="'+t+'"]');d=Array.prototype.slice.call(A)}}for(var E=0;E<d.length;E++){var w=d[E];if(w&&"function"==typeof w.setAttribute&&(w.classList.add(u.className),i.applyInlineStyles(w,u.attrMarker,u.styles),!E&&n.scroll)){var S=w.getBoundingClientRect(),x=S.top+window.pageYOffset-document.documentElement.clientTop-window.innerHeight/2+S.height;window.scrollTo({top:x,behavior:"smooth"})}}},r.getElementAccessibleName=function(n){var r=n.getAttribute("aria-label"),o=n.getAttribute("aria-describedby");if(o&&(r+=t(o)),r&&r.trim())return r.trim().toLowerCase();var i=n.getAttribute("aria-labelledby");if(i&&(r+=t(i)),r&&r.trim())return r.trim().toLowerCase();if((r=n.textContent?n.textContent:null)&&r.trim())return r.trim().toLowerCase();if((r=n.value||"")&&r.trim()&&"INPUT"===n.tagName.toUpperCase()&&n.type&&-1!==["button","submit","reset"].indexOf(n.type.toLowerCase()))return r.trim().toLowerCase();var a=n.querySelector('img, *[role="img"]');return a&&(r=e(a))&&r.trim()?r.trim().toLowerCase():null}}(),function(){
var e=UserWayWidgetApp.addLib("remediation_helper_outcome"),t=UserWayWidgetApp.getLib("util");e.of=function(e,n,r,o,i){return n=n||{items:[]},r=r||{items:[],path:null},{helperName:e,postMessageAppData:n,backEndData:r,countFixed:o,countTodo:i,hash:t.hashString(e+JSON.stringify(n)+o+i)}}}();var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},__assign.apply(this,arguments)};!function(){var e=UserWayWidgetApp.addLib("remediation_results_holder"),t=UserWayWidgetApp.getLib("util"),n=["REMEDIATION_COLOR_CONTRAST"];e.instance=new function(){var e=this,r={};e.reset=function(){r={}},e.get=function(){return r},e.mergeHelperOutcomes=function(e,r){if(e.helperName!==r.helperName)throw"Inconsistent helpers! Unable to merge "+e.helperName+" with "+r.helperName;var o=e.postMessageAppData&&-1===n.indexOf(e.helperName),i=-1===n.indexOf(e.helperName);return e.postMessageAppData=o?{items:e.postMessageAppData.items.concat(r.postMessageAppData.items)}:__assign({},r.postMessageAppData),e.backEndData.items=r.backEndData.items,e.countFixed=i?e.countFixed+r.countFixed:r.countFixed,e.countTodo=e.countTodo+r.countTodo,e.hash=t.hashString(r.hash),e},e.put=function(t){var n=t.helperName,o=r[n]?e.mergeHelperOutcomes(r[n],t):t;r[n]=o},e.getCurrentHash=function(){var e="";return Object.keys(r).length?(Object.keys(r).forEach(function(t){e+=r[t].hash}),e):e},e.getHelperPostMessagePayload=function(e){var t=r[e];return t?t.postMessageAppData:{items:[]}},e.getHelpersOutcomeCounters=function(){var e={};return Object.keys(r).forEach(function(t){e[t]=r[t].countFixed}),e},e.getHelpersTodoOutcomeCounters=function(){var e={};return Object.keys(r).forEach(function(t){e[t]=r[t].countTodo}),e},e.toString=function(){return JSON.stringify(r)}}}(),function(){var e=UserWayWidgetApp.addLib("remediation_stopwatch"),t={};e.checkPointHelperStart=function(e,n){n.debugMode&&(t.hasOwnProperty(e)||(t[e]={start:[],"f-start":[],"f-end":[],"a-start":[],"a-end":[],"r-start":[],"r-end":[],end:[]}),t[e].start.push(performance.now()))},e.checkPointHelperEnd=function(e,n){n.debugMode&&t[e].end.push(performance.now())},e.checkPointHelperFilterStart=function(e,n){n.debugMode&&t[e]["f-start"].push(performance.now())},e.checkPointHelperFilterEnd=function(e,n){n.debugMode&&t[e]["f-end"].push(performance.now())},e.checkPointHelperAwaitForResourcesStart=function(e,n){n.debugMode&&t[e]["a-start"].push(performance.now())},e.checkPointHelperAwaitForResourcesEnd=function(e,n){n.debugMode&&t[e]["a-end"].push(performance.now())},e.checkPointHelperDoRemediationStart=function(e,n){n.debugMode&&t[e]["r-start"].push(performance.now())},e.checkPointHelperDoRemediationEnd=function(e,n){n.debugMode&&t[e]["r-end"].push(performance.now())},UserWayWidgetApp.getHelpersPerformance=function(){var e={};return Object.keys(t).forEach(function(n){var r=t[n];e[n]={"1_filter":[],"2_resources":[],"3_remediation":[],"4_total":[]};for(var o=0;o<r.start.length;o++)e[n]["1_filter"].push(r["f-end"][o]-r["f-start"][o]),e[n]["2_resources"].push(r["a-end"][o]-r["a-start"][o]),e[n]["3_remediation"].push(r["r-end"][o]-r["r-start"][o]),e[n]["4_total"].push(r.end[o]-r.start[o])}),t._aggregated=e,t}}(),function(){function e(e,t,r,o){return new Promise(function(i,a){var u=UserWayWidgetApp.getLib(e);n.checkPointHelperStart(u.name,o);var l=[];n.checkPointHelperFilterStart(u.name,o);try{l=u.filter?u.filter(t,o):null,n.checkPointHelperFilterEnd(u.name,o)}catch(e){return n.checkPointHelperFilterEnd(u.name,o),n.checkPointHelperEnd(u.name,o),o.debugMode&&console.error(e),i()}n.checkPointHelperAwaitForResourcesStart(u.name,o),u.awaitForResources(l,o).then(function(){n.checkPointHelperAwaitForResourcesEnd(u.name,o),n.checkPointHelperDoRemediationStart(u.name,o),u.doRemediation(r,l,o).then(function(){n.checkPointHelperDoRemediationEnd(u.name,o),n.checkPointHelperEnd(u.name,o),i()}).catch(function(e){n.checkPointHelperDoRemediationEnd(u.name,o),n.checkPointHelperEnd(u.name,o),o.debugMode&&console.error(e),i()})}).catch(function(e){n.checkPointHelperAwaitForResourcesEnd(u.name,o),n.checkPointHelperEnd(u.name,o),o.debugMode&&console.error(e),i()})})}var t=UserWayWidgetApp.addLib("remediation_processor"),n=UserWayWidgetApp.getLib("remediation_stopwatch");UserWayWidgetApp.getLib("remediation_utils");t.runHelper=function(t,n,r,o){return t.then?t:e(t,n,r,o)},t.parallel=function(e,t){return Promise.all(e.map(function(e){return t(e)}))},t.sequence=function(e,t){return e.reduce(function(e,n){return e.then(function(){return t(n)})},Promise.resolve())},t.series=function(e,n,r,o){return t.sequence(e,function(e){return t.parallel(e,function(e){return t.runHelper(e,n,r,o)})}).catch(function(e){o.debugMode&&console.error(e)})}}();var __values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){var t,n,r=[].slice.call(h.findAllElements(e)),o=r.filter(function(e){var t,n,r=Array.from(e.attributes),o=!1;try{for(var i=__values(r),a=i.next();!a.done;a=i.next()){var u=a.value,l=u.value.toLowerCase();if(-1!==l.indexOf("close")||-1!==l.indexOf("dismiss")){o=!0;break}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o}),i=null,a=l().vw,u=Math.round(a/20);try{for(var s=__values(o),c=s.next();!c.done;c=s.next()){var d=c.value,f=d.offsetWidth,p=d.offsetHeight;if(f&&p&&f<=5*u){i=d;break}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return i}function t(e,t){var n,r,o=null;try{for(var i=__values(e[0]),a=i.next();!a.done;a=i.next()){var l=a.value,s=new Array(e.length).fill(0);s[0]=1;for(var c=1;c<e.length;c++){e[c].indexOf(l)>-1&&(s[c]=1)}if(s.every(function(e){return!!e})){o=l;break}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o&&0===e[0].indexOf(o)&&u(o.offsetWidth,t)<5&&(o=null),o}function n(e,t){return e.classList.contains("tt-dropdown-menu")||/datepicker/.test(e.getAttribute("class"))||!!e.id&&"klevuSearchingArea"===e.id||e.hasAttribute("data-uw-rm-ignore")||!!Array.from(document.querySelectorAll("nav")).find(function(t){return e.contains(t)})||!!e.querySelector("[class*='search']")}function r(e){var t=window.getComputedStyle(e),r="none"===t.display,o="fixed"===t.position,i=parseFloat(t.width),a=parseFloat(t.height),l=u(i,document.body.offsetWidth),s=u(a,document.body.offsetHeight);return l>=10&&s>=10&&o&&!r&&i&&a&&!n(e,t)}function o(e){var t=null;if(!e)return t;for(;e&&"BODY"!==e.tagName;){if(r(e)){t=e;break}e=e.parentElement}return t}function i(){return/^([^.]+\.)?manage\..*userway\.(dev|org)$/.test(window.location.host)}function a(){if(114355===f.services.siteId||990479===f.services.siteId||i())return null;var e=l(),n=e.vw,r=e.vh,a=Math.round(n/2),u=Math.round(r/2),s=Math.round(3*n/4),c=Math.round(r/4),d=u+Math.round(r/4),p=Math.round(n/20),h=Math.round(r/20),m=[{x:a,y:u-h},{x:a+p,y:u},{x:a,y:u+h},{x:a-p,y:u}],g=[{x:s,y:u-h},{x:s+p,y:u},{x:s,y:u+h},{x:s-p,y:u}],y=[{x:a,y:c},{x:a-p,y:c+h},{x:a+p,y:c+h}],b=[{x:a,y:d},{x:a-p,y:d-h},{x:a+p,y:d-h}],v=document.elementsFromPoint(m[0].x,m[0].y),_=document.elementsFromPoint(m[1].x,m[1].y),A=document.elementsFromPoint(m[2].x,m[2].y),E=document.elementsFromPoint(m[3].x,m[3].y),w=o(t([v,_,A,E],n));if(w)return w;var S=document.elementsFromPoint(y[0].x,y[0].y),x=document.elementsFromPoint(y[1].x,y[1].y),O=document.elementsFromPoint(y[2].x,y[2].y),C=o(t([S,x,O],n));if(C)return C;var W=document.elementsFromPoint(b[0].x,b[0].y),I=document.elementsFromPoint(b[1].x,b[1].y),k=document.elementsFromPoint(b[2].x,b[2].y),N=o(t([W,I,k],n));if(N)return N;var R=document.elementsFromPoint(g[0].x,g[0].y),L=document.elementsFromPoint(g[1].x,g[1].y),T=document.elementsFromPoint(g[2].x,g[2].y),P=document.elementsFromPoint(g[3].x,g[3].y),U=o(t([R,L,T,P],n));return U||null}function u(e,t){return Math.abs(e-t)/((e+t)/2)*100}function l(){return{vw:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),vh:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}}var s=UserWayWidgetApp.addLib("cer_observer"),c=UserWayWidgetApp.getLib("event_emitter"),d=UserWayWidgetApp.getLib("remediation_utils"),f=UserWayWidgetApp.ContextHolder.config,p=UserWayWidgetApp.getLib("remediationConfig").popups,h=UserWayWidgetApp.getLib("util"),m=[];s.tick=function(t){var n=t.processParameters;n.debugMode&&console.log("CER observer: tick");var r,o=null;if(n.debugMode&&(r=performance.now()),p.enabled){var i=null;try{i=a()}catch(e){n.debugMode&&console.error(e)}if(i){i.setAttribute(d.PROCESS_ATTRIBUTES.CER.popup.wrapper,"");if(-1===m.indexOf(i)){c.emitEvent("UW_CER_POPUP_FOUND",[i]),m.push(i);var u=null;try{u=e(i)}catch(e){n.debugMode&&console.error(e)}u&&u.setAttribute(d.PROCESS_ATTRIBUTES.CER.popup.close,""),c.emitEvent("UW_CER_POPUP_ON",[[i,u]]),n.debugMode&&console.log("CER observer: POPUP found",i,u)}}else m.forEach(function(e){c.emitEvent("UW_CER_POPUP_OFF",[e]),n.debugMode&&console.log("CER observer: POPUP closed",e)}),m=[]}n.debugMode&&(o=performance.now(),console.log("CER observer tick: execution took "+(o-r)+" milliseconds."))}}();var __read=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};!function(){function e(e){U&&U.time(e)}function t(e){U&&U.timeEnd(e)}function n(){I.getMeasurements&&I.getMeasurements("Remediation")}function r(e){return e?__spreadArray([j,q,B],__read(Y.map(function(e){return[e]})),!1):__spreadArray([["REMEDIATION_KEYBOARD_NAVIGATION"]],__read(Y.map(function(e){return[e]})),!1)}function o(){F.completedEventFired||(F.completedEventFired=!0,E.fireUserWayRemediationCompletedEvent({enabled:!0,counters:W.getHelpersOutcomeCounters()}))}function i(){if(!F.iterationInProgress){var e=O.consolidated&&!UserWayWidgetApp.ContextHolder.remediationResources;if(O.consolidated||E.fireUserWayRemediationCompletedEvent({enabled:!1}),e||D())return void E.fireUserWayRemediationCompletedEvent({enabled:!1});var t=r(!F.domChangesEnqueued.length);F.iterationInProgress=!0,F.domChangesEnqueued=[],F.debugMode&&console.log("UserWay Remediation: tick started"),w.series(t,[document.body],b.HelperCallbackAggregator,{reset:F.locationChanged,debugMode:M}).catch(function(e){console.error(e)}).finally(function(){var e;F.debugMode&&console.log("UserWay Remediation: tick ended"),o(),H&&(S.tick({processParameters:F}),null===(e=null===x||void 0===x?void 0:x.tick)||void 0===e||e.call(x,{processParameters:F})),setTimeout(function(){n(),c(),d(),F.iterationInProgress=!1,F.domChangesEnqueued.length&&i()},1e3)}),F.locationChanged&&f(),F.locationChanged=!1}}function a(){var n;V.forEach(function(n){var r;e(n);var o=UserWayWidgetApp.getLib(n);F.debugMode&&console.log("UserWay Remediation: One-time helper applied %c"+n,"color:Red"),null===(r=null===o||void 0===o?void 0:o.apply)||void 0===r||r.call(o,F),t(n)}),null===(n=null===x||void 0===x?void 0:x.apply)||void 0===n||n.call(x,{processParameters:F})}function u(){setTimeout(function(){i(),H&&a(),F.debugMode&&console.log("UserWay Remediation: process started"),v.on(k,function(e,t){if(t&&(!t||t.length)){if(R)return void(F.debugMode&&console.log("UserWay Remediation: SKIP_DOM_CHANGES_REMEDIATION"));F.debugMode&&console.log("UserWay Remediation: tick resumed; initiator: DOM change"),D()||(F.domChangesEnqueued=F.domChangesEnqueued.concat(t),F.iterationInProgress||i())}})},N)}function l(e){var t=e.data.remediationHelperName;t&&(B.push("REMEDIATION_"+t),G.push("REMEDIATION_"+t),i())}function s(e){var t=UserWayWidgetApp.getLib("REMEDIATION_NAVIGATION_MENU");t&&"function"==typeof t.apply&&t.apply(F),L&&u()}function c(){p("remediation-count",W.getHelpersOutcomeCounters())}function d(){p("all-data",W.get())}function f(){p("get-site-info",{origin:location.origin,path:location.pathname})}function p(e,t){F.debugMode&&(console.log("UserWay Remediation PostMessage: %c[TYPE]: %c"+e,"color:Blue","color:Red"),console.group("%c[PAYLOAD]:","color:Blue"),console.log(t),console.groupEnd()),E.postMessage({action:"remediation",type:e,data:t})}var h,m,g,y,b=UserWayWidgetApp.addLib("remediation_manager"),v=UserWayWidgetApp.getLib("event_emitter"),_=UserWayWidgetApp.getLib("dom_observer"),A=UserWayWidgetApp.getLib("remediation_utils"),E=UserWayWidgetApp.getLib("util"),w=UserWayWidgetApp.getLib("remediation_processor"),S=UserWayWidgetApp.getLib("cer_observer"),x=UserWayWidgetApp.getLib("cpr_patterns_observer"),O=UserWayWidgetApp.getLib("remediationConfig"),C=UserWayWidgetApp.ContextHolder.config,W=UserWayWidgetApp.getLib("remediation_results_holder").instance,I=UserWayWidgetApp.getLib("performance_logger");b.ResultsHolder=W;var k=_.DOM_OBSERVER_DOM_CHANGED_EVENT,N=(null===(h=null===C||void 0===C?void 0:C.tunings)||void 0===h?void 0:h.tech_rem_in_throttle_ms)?Number(null===(m=null===C||void 0===C?void 0:C.tunings)||void 0===m?void 0:m.tech_rem_in_throttle_ms):1e3,R=null===(g=null===C||void 0===C?void 0:C.tunings)||void 0===g?void 0:g.tech_rem_dom,L=null===(y=null===C||void 0===C?void 0:C.tunings)||void 0===y?void 0:y.tech_rem_on_tab,T=document.querySelector("html"),P=E.isMobile(),U=I.getInstance?I.getInstance("Remediation"):null,D=function(){if(location.pathname&&location.pathname.indexOf("wp-admin")>-1)return!0;var e=O.commonSettings,t=e.enabled,n=e.config,r=n.mobile,o=n.disabledPages;return!t||(!(!UserWayWidgetApp.ContextHolder.config.isMobile||!r||r.enabled)||!(null===o||void 0===o||!o.some(function(e){var t;return(null===(t=window.location)||void 0===t?void 0:t.href.indexOf(e))>-1})))},H=!!C.remediation&&!D(),M=!1;try{UserWayWidgetApp.setDebugMode=function(e){e?(window.localStorage.setItem("userway-rm-debug","1"),console.log("UserWay Remediation: Debug mode enabled")):window.localStorage.removeItem("userway-rm-debug")},M=window.localStorage.getItem("userway-rm-debug")}catch(e){}var F={iterationInProgress:!1,locationChanged:!0,domChangesEnqueued:[],completedEventFired:!1,debugMode:M},j=H?["REMEDIATION_SCREEN_READER_BASIC"]:[],q=H?[function(e){return P?null:e}("REMEDIATION_KEYBOARD_NAVIGATION"),"REMEDIATION_PDF_DOCUMENTS"].filter(Boolean):[],B=[],Y=["REMEDIATION_COLOR_CONTRAST"],V=H?["REMEDIATION_FOCUS_STYLE","REMEDIATION_PER_SITE","REMEDIATION_LABS","REMEDIATION_POPUP"]:[];(function(){return[932691].includes(UserWayWidgetApp.ContextHolder.config.services.siteId)})()&&B.push("REMEDIATION_SOCIAL_SENSITIVITY");var G=[].concat(j,q,B,Y),X=function(){function n(){}return n.prototype.onHelperRemediationStarted=function(t){e(t)},n.prototype.onHelperRemediationCompleted=function(e){e.backEndData&&e.backEndData.items.length&&A.sendBackEnd("/remediation/"+e.backEndData.path,e.backEndData.items,e.backEndData.props),W.put(e),p(e.helperName,W.getHelperPostMessagePayload(e.helperName)),t(e.helperName)},n}();b.HelperCallbackAggregator=new X,(!L||function(){return T.hasAttribute("data-uw-w-kb")}()||UserWayWidgetApp.ContextHolder.config.isMobile)&&u();var K={"get-site-info":f,"remediation-count":c,"all-data":d,"element-is-visible":function(e){var t=JSON.parse(e.data.data),n=t.elements.map(function(e){return[e,A.isElementVisible(e)]});p("element-is-visible",{key:t.key,elements:n})},"element-highlight":function(e){var t=e.data.data.type,n=e.data.data.value?e.data.data.value.toLowerCase():"",r=Object.assign({scroll:!0},e.data.data.options||{});A.highlightElements(t,n,r)},"app-key-nav-enabled":function(e){s(e)},remediation:function(e){var t=e.data.type;W.get()[t]&&p(t,W.getHelperPostMessagePayload(t))},"remediation-check":function(){i()},"add-dynamically":l},J=UserWayWidgetApp.getLib("REMEDIATION_FOCUS_STYLE"),Q={"custom-focus-get":function(e){p("custom-focus-get",J.getFocusStyle())},"custom-focus-update":function(e){e.data&&e.data.data&&J.updateOutlineStyle(e.data)}},z=UserWayWidgetApp.getLib("REMEDIATION_COLOR_CONTRAST"),Z={"enable-color-contrast":function(){z.isSmartContrastEnabled()&&z.disableSmartContrast(),z.isEnabled()||(z.enable(),i())},"fix-color-contrast":function(e){e.data&&e.data.data&&(z.fixIssues(e.data.data),i())},"fix-all-color-contrast":function(){z.autofixAllIssues(),i()},"reset-all":function(){z.resetIssuesFixes(),i()},"reset-autofixed":function(){z.resetAutofixed(),i()}},$=Object.assign({},K,Q,Z),ee=function(t){var n=t.data||{};if(n.isUserWay&&("remediation"===n.action||"aria-editor"===n.action)){var r=t.data.type;if(-1!==Object.keys($).indexOf(r)){e(r);(0,$[r])(t),e(r)}else $.remediation(t)}};E.registerPostMessageListener(ee)}();