cypress-accessibility-checker
Version:
Accessibility Checker for Cypress
16 lines • 376 kB
JavaScript
/*!
* Copyright:: 2016,2017,2019,2020- IBM, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module.exports=function(e){var t={};function i(a){if(t[a])return t[a].exports;var l=t[a]={i:a,l:!1,exports:{}};return e[a].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=e,i.c=t,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)i.d(a,l,function(t){return e[t]}.bind(null,l));return a},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=8)}([function(e,t,i){"use strict";var a,l;Object.defineProperty(t,"__esModule",{value:!0}),t.RuleManual=t.RulePotential=t.RuleFail=t.RuleRender=t.RulePass=t.eRuleCategory=t.eRulePolicy=t.eRuleConfidence=void 0,function(e){e.PASS="PASS",e.FAIL="FAIL",e.POTENTIAL="POTENTIAL",e.MANUAL="MANUAL"}(a=t.eRuleConfidence||(t.eRuleConfidence={})),function(e){e.VIOLATION="VIOLATION",e.RECOMMENDATION="RECOMMENDATION",e.INFORMATION="INFORMATION"}(l=t.eRulePolicy||(t.eRulePolicy={})),function(e){e.ACCESSIBILITY="Accessibility",e.DESIGN="Design",e.OTHER="Other"}(t.eRuleCategory||(t.eRuleCategory={})),t.RulePass=function(e,t,i){if(null==e)throw new Error("Reason ID must be defined");return{value:[l.INFORMATION,a.PASS],reasonId:e,messageArgs:t||[],apiArgs:i||[]}},t.RuleRender=function(e,t,i){if(null==e)throw new Error("Reason ID must be defined");return{value:[l.INFORMATION,a.PASS],reasonId:0,messageArgs:t||[],apiArgs:i||[]}},t.RuleFail=function(e,t,i){if(null==e)throw new Error("Reason ID must be defined");return{value:[l.INFORMATION,a.FAIL],reasonId:e,messageArgs:t||[],apiArgs:i||[]}},t.RulePotential=function(e,t,i){if(null==e)throw new Error("Reason ID must be defined");return{value:[l.INFORMATION,a.POTENTIAL],reasonId:e,messageArgs:t||[],apiArgs:i||[]}},t.RuleManual=function(e,t,i){if(null==e)throw new Error("Reason ID must be defined");return{value:[l.INFORMATION,a.MANUAL],reasonId:e,messageArgs:t||[],apiArgs:i||[]}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeWalker=t.ColorObj=t.RPTUtilStyle=t.RPTUtil=void 0;var a=i(2),l=i(6),o=function(){function e(){}return e.isDefinedAriaAttributeAtIndex=function(t,i){var a=t.attributes[i].name;return e.isDefinedAriaAttribute(t,a)},e.getAriaAttribute=function(t,i){var a=t.getAttribute(i);if(t.hasAttribute(i)&&""==a.trim())return a;if(!a){var o=t.nodeName.toLowerCase();i in e.ariaAttributeImplicitMappings&&(o in e.ariaAttributeImplicitMappings[i]?"function"==typeof(a=e.ariaAttributeImplicitMappings[i][o])&&(a=a(t)):"*"in e.ariaAttributeImplicitMappings[i]&&"function"==typeof(a=e.ariaAttributeImplicitMappings[i]["*"])&&(a=a(t)))}if(!a){var n=l.ARIAMapper.nodeToRole(t);n in e.ariaAttributeRoleDefaults&&i in e.ariaAttributeRoleDefaults[n]&&"function"==typeof(a=e.ariaAttributeRoleDefaults[n][i])&&(a=a(t))}return!a&&i in e.ariaAttributeGlobalDefaults&&(a=e.ariaAttributeGlobalDefaults[i]),a},e.wordCount=function(e){return 0==(e=e.trim()).length?0:e.split(/\s+/g).length},e.isTabbable=function(t){if(!e.isNodeVisible(t))return!1;if(t.hasAttribute("tabindex"))return parseInt(t.getAttribute("tabindex"))>=0;var i=t.nodeName.toLowerCase();if(i in e.tabTagMap){var a=e.tabTagMap[i];return"function"==typeof a&&(a=a(t)),a}return!1},e.tabIndexLEZero=function(t){if(e.hasAttribute(t,"tabindex")&&t.getAttribute("tabindex").match(/^-?\d+$/)){var i=parseInt(t.getAttribute("tabindex"));return 0==i||-1==i}return!1},e.isHtmlEquiv=function(e,t){var i=!1;if(e&&"input"==e.nodeName.toLowerCase()){var a=e.getAttribute("type").toLowerCase();a&&(-1!=t.indexOf("checkbox")?i="checkbox"==a:-1!=t.indexOf("radio")&&(i="radio"==a))}return i},e.isDefinedAriaAttribute=function(e,t){var i=!1;return"aria-"==t.substring(0,5)&&(i=e.hasAttribute&&e.hasAttribute(t)),i},e.normalizeSpacing=function(e){return e.trim().replace(/\s+/g," ")},e.nonExistantIDs=function(t,i){var a="";if(e.normalizeSpacing(i).length<1)return a;for(var l=i.split(" "),o=t.ownerDocument,n=0;n<l.length;n++){var r="//*[@id='"+l[n]+"']";o.evaluate(r,t,o.defaultNSResolver,0,null).iterateNext()||(a+=l[n]+", ")}return a=e.normalizeSpacing(a).length>=2?a.substring(0,a.length-2):""},e.getDocElementsByTag=function(e,t){var i=e.ownerDocument;return t=t.toLowerCase(),i.RPT_DOCELEMSBYTAG||(i.RPT_DOCELEMSBYTAG={}),t in i.RPT_DOCELEMSBYTAG||(i.RPT_DOCELEMSBYTAG[t]=i.getElementsByTagName(t)),i.RPT_DOCELEMSBYTAG[t]},e.getChildByTag=function(t,i){return e.getChildByTagHidden(t,i,!1,!1)},e.getChildByTagHidden=function(t,i,a,l){for(var o=[],n=t.firstChild;null!=n;){if(n.nodeName.toLowerCase()==i){if((a||l&&!e.shouldCheckHiddenContent(n))&&!e.isNodeVisible(n)){n=n.nextSibling;continue}o.push(n)}n=n.nextSibling}return o},e.getElementsByRole=function(t,i){return e.getElementsByRoleHidden(t,i,!1,!1)},e.getElementsByRoleHidden=function(t,i,a,l){var o=null;if(null==(o=l?e.getCache(t,"RPTUtil_GETELEMENTSBY_ROLE_IMPLICIT",null):e.getCache(t,"RPTUtil_GETELEMENTSBY_ROLE",null))){o={};for(var n=t.body;null!=n.parentNode;)n=n.parentNode;for(var r=new s(n);r.nextNode();)if(!r.bEndTag){var u=[];if(r.node.hasAttribute&&r.node.hasAttribute("role")&&(u=r.node.getAttribute("role").split(" ")),0===u.length&&l){var d=e.getElementAriaProperty(r.node);d&&d.implicitRole&&(u=d.implicitRole)}if(0==u.length)continue;if(a&&e.shouldNodeBeSkippedHidden(r.node))continue;for(var c=0;c<u.length;++c)u[c]in o||(o[u[c]]=[]),o[u[c]].push(r.node)}l?e.setCache(t,"RPTUtil_GETELEMENTSBY_ROLE_IMPLICIT",o):e.setCache(t,"RPTUtil_GETELEMENTSBY_ROLE",o)}var m=[];if("string"==typeof i){var p=i;(i=[]).push(p)}if(i.length)for(c=0;c<i.length;++c){var _=o[i[c]];if(_)for(var h=0;h<_.length;++h)m.push(_[h])}return m},e.getRoles=function(t,i){var a=[];if(t&&t.hasAttribute&&t.hasAttribute("role"))for(var l=e.normalizeSpacing(t.getAttribute("role").trim()).split(" "),o=0;o<l.length;++o)a.push(l[o]);if(i){var n=e.getImplicitRole(t);n.length>0&&e.concatUniqueArrayItemList(n,a)}return a},e.getImplicitRole=function(t){var i=e.getElementAriaProperty(t);return i&&i.implicitRole?i.implicitRole:[]},e.getRoleRequiredProperties=function(t,i){return null==t?null:a.ARIADefinitions.designPatterns[t]?"separator"===t.toLowerCase()?e.isFocusable(i)?a.ARIADefinitions.designPatterns[t].reqProps:null:a.ARIADefinitions.designPatterns[t].reqProps:null},e.isFocusable=function(t){return"undefined"!==t&&null!=t&&e.isTabbable(t)},e.hasRole=function(t,i,a){var l=!1;if(t&&t.hasAttribute&&t.hasAttribute("role"))if("string"!=typeof i)for(var o=t.getAttribute("role").trim().split(" "),n=0;!l&&n<o.length;++n)l=o[n]in i;else for(o=t.getAttribute("role").trim().split(" "),n=0;!l&&n<o.length;++n)l=o[n]==i;if(!l&&a){var r=e.getElementAriaProperty(t),s=[];if(r&&null!==r.implicitRole)if(e.concatUniqueArrayItemList(r.implicitRole,s),"string"!=typeof i)for(n=0;!l&&n<s.length;++n)l=s[n]in i;else for(n=0;!l&&n<s.length;++n)l=s[n]==i}return l},e.hasRoleInSemantics=function(t,i){var a=!1,l=!1;if(t&&t.hasAttribute&&t.hasAttribute("role"))if("string"!=typeof i)for(var o=t.getAttribute("role").trim().toLowerCase().split(/\s+/),n=0;!a&&n<o.length;++n)l=!0,a=o[n]in i;else for(o=t.getAttribute("role").trim().toLowerCase().split(/\s+/),n=0;!a&&n<o.length;++n)l=!0,a=o[n]==i;if(l)return a;var r=e.getElementAriaProperty(t);if(r&&null!==r.implicitRole){var s=r.implicitRole;if("string"!=typeof i)for(n=0;!a&&n<s.length;++n)a=s[n]in i;else for(n=0;!a&&n<s.length;++n)a=s[n]==i}return a},e.hasAnyRole=function(t,i){var a=!1;if(t&&t.hasAttribute&&t.hasAttribute("role")&&(a=!0),!a&&i){var l=e.getElementAriaProperty(t);l&&null!==l.implicitRole&&l.implicitRole.length>0&&(a=!0)}return a},e.isDataTable=function(t){return!(e.hasRole(t,"none")||e.hasRole(t,"presentation"))},e.isComplexDataTable=function(t){if("RPTUtil_isComplexDataTable"in t)return!!t.RPTUtil_isComplexDataTable;var i=!1;if(t&&e.isDataTable(t)){for(var a=null,l=null,o=t.getElementsByTagName("tr"),n=o.length,r=0,s=0,u=0,d=0;!i&&d<n;++d)if(a=o[d].getElementsByTagName("th"),l=o[d].getElementsByTagName("td"),s=a.length,0!==(r=l.length)){i=s>1;for(var c=0;!i&&c<s;++c)i=(a[c].hasAttribute("rowspan")||a[c].hasAttribute("colspan"))&&e.getAncestor(a[c],"table")==t;for(var m=0;!i&&m<r;++m)i=(l[m].hasAttribute("rowspan")||l[m].hasAttribute("colspan")||l[m].hasAttribute("headers")&&e.normalizeSpacing(l[m].getAttribute("headers")).split(" ").length>2)&&e.getAncestor(l[m],"table")==t}else s>0&&++u,i=2==u;if(!i){var p=t.getElementsByTagName("thead"),_=p.length;_>0&&((i=_>1)||(i=p[0].getElementsByTagName("tr").length>1))}i||0===n||(i=s>0&&!e.isTableHeaderInFirstRowOrColumn(t))}return t.RPTUtil_isComplexDataTable=i,i},e.isTableHeaderInFirstRowOrColumn=function(t){var i=!1,a=t.rows;if(null!=a&&a.length>0){var l=a[0];if(!(i=l.cells.length>0&&0==e.getChildByTagHidden(l,"td",!1,!0).length)){i=!0;for(var o=0;i&&o<a.length;++o)i=!a[o].cells||0==a[o].cells.length||"td"!=a[o].cells[0].nodeName.toLowerCase()}if(!i){i=!0;for(o=1;i&&o<l.cells.length;++o)i="td"!=l.cells[o].nodeName.toLowerCase();for(o=1;i&&o<a.length;++o)i=!a[o].cells||0==a[o].cells.length||"td"!=a[o].cells[0].nodeName.toLowerCase()}}return i},e.isNodeInGrid=function(t){return null!=e.getAncestorWithRole(t,"grid")},e.isLayoutTable=function(t){return e.hasRole(t,"presentation")||e.hasRole(t,"none")},e.getFileExt=function(e){var t=e.match(/\.(([^;?#\.]|^$)+)([;?#]|$)/);return null!=t&&t.length>=2?"."+t[1]:""},e.getFileAnchor=function(e){var t=e.match(/#(([^;?\.]|^$)+)([;?]|$)/);return null!=t&&t.length>=2?t[1]:""},e.checkObjEmbed=function(t,i,a){var l=t.nodeName.toLowerCase();if("object"!=l&&"embed"!=l&&"a"!=l&&"area"!=l)return!1;var o=!1;!o&&t.hasAttribute("type")&&(o=a(t.getAttribute("type").toLowerCase()));!o&&t.hasAttribute("codetype")&&(o=a(t.getAttribute("codetype")));if(!o){var n="";"embed"==l?n=t.getAttribute("src"):"a"==l||"area"==l?n=t.getAttribute("href"):t.hasAttribute("data")&&(n=t.getAttribute("data")),null==n&&(n=""),o=i(e.getFileExt(n))}if(!o&&"object"==l)for(var r=e.getChildByTagHidden(t,"param",!1,!0),s=0;!o&&null!=r&&s<r.length;++s)o=r[s].hasAttribute("value")&&i(e.getFileExt(r[s].getAttribute("value")));return o},e.isAudioObjEmbedLink=function(t){return e.checkObjEmbed(t,e.isAudioExt,(function(e){return e.startsWith("audio")}))},e.isAudioExt=function(t){return e.valInArray(t.toLowerCase(),[".aif",".aifc",".aiff",".air",".asf",".au",".cda",".dsm",".dss",".dwd",".iff",".kar",".m1a",".med",".mp2",".mp3",".mpa",".pcm",".ra",".ram",".rm",".sam",".sf",".sf2",".smp",".snd",".svx",".ul",".voc",".wav",".wma",".wve"])},e.isVideoObjEmbedLink=function(t){return e.checkObjEmbed(t,e.isVideoExt,(function(e){return e.startsWith("video")||e.startsWith("application/x-shockwave-flash")}))},e.isVideoExt=function(t){return e.valInArray(t.toLowerCase(),[".asf",".avi",".divx",".dv",".m1v",".m2p",".m2v",".moov",".mov",".mp4",".mpeg",".mpg",".mpv",".ogm",".omf",".qt",".rm",".rv",".smi",".smil",".swf",".vob",".wmv",".rmvb",".mvb"])},e.isImageObjEmbedLink=function(t){return e.checkObjEmbed(t,e.isImgExt,(function(e){return e.startsWith("image")}))},e.isImgExt=function(t){return e.valInArray(t.toLowerCase(),[".bmp",".gif",".jpg",".jpeg",".pcx",".png"])},e.isHtmlExt=function(t){return e.valInArray(t.toLowerCase(),[".asp",".aspx",".cfm",".cfml",".cgi",".htm",".html",".shtm",".shtml",".php",".pl",".py",".shtm",".shtml",".xhtml"])},e.isPresentationalElement=function(t){return e.valInArray(t.nodeName.toLowerCase(),["abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","a","progress","meter","basefont","big","center","strike","tt","font","blink","h1","h2","h3","h4","h5","h6","hr","blockquote","p"])},e.hasTriggered=function(t,i){return e.getCache(t,i,!1)},e.triggerOnce=function(t,i,a){if(a)return!0;var l=e.getCache(t,i,!1);return e.setCache(t,i,!0),l},e.valInArray=function(e,t){for(var i in t)if(t[i]==e)return!0;return!1},e.getAncestor=function(e,t){for(var i=e;null!=i;){var a=i.nodeName.toLowerCase();if("string"==typeof t){if(a==t.toLowerCase())break}else if(t.length){for(var l in t)if(t[l]==a)return i}else if(a in t)break;i=i.parentNode}return i},e.isSibling=function(e,t){if(e&&t){var i=null;for(e.parentNode&&e.parentNode.firstChild&&(i=e.parentNode.firstChild);i;){if(i===t)return!0;i=i.nextSibling}}return!1},e.getAncestorWithRole=function(t,i,a){for(var l=t;null!=l;){if(a){if(e.hasRoleInSemantics(l,i))break}else if(e.hasRole(l,i,!1))break;l=l.parentNode}return l},e.getSiblingWithRole=function(t,i){return e.getSiblingWithRoleHidden(t,i,!1)},e.getSiblingWithRoleHidden=function(t,i,a,l){var o=null,n=!1;if(t&&i){for(o=t.nextSibling;null!=o&&!n;)a&&e.shouldNodeBeSkippedHidden(o)||(n=l?e.hasRoleInSemantics(o,i):e.hasRole(o,i,!1)),o=o.nextSibling;if(!o)for(o=t.previousSibling;null!=o&&!n;)a&&e.shouldNodeBeSkippedHidden(o)||(n=e.hasRole(o,i,l)),o=o.previousSibling}return o},e.isDescendant=function(e,t){for(var i=t.parentNode;null!=i;){if(i==e)return!0;i=i.parentNode}return!1},e.getDescendantWithRole=function(t,i){return e.getDescendantWithRoleHidden(t,i,!1)},e.getDescendantWithRoleHidden=function(t,i,a,l){for(var o=null,n=new s(t);n.nextNode()&&n.node!=t&&n.node!=t.nextSibling;)if((!a||!e.shouldNodeBeSkippedHidden(n.node))&&(l?e.hasRoleInSemantics(n.node,i):e.hasRole(n.node,i,!1))){o=n.node;break}return o},e.getAllDescendantsWithRoleHidden=function(t,i,a,l){for(var o=[],n=new s(t);n.nextNode()&&n.node!=t&&n.node!=t.nextSibling;)n.bEndTag||a&&e.shouldNodeBeSkippedHidden(n.node)||e.hasRole(n.node,i,l)&&o.push(n.node);return o},e.getAriaOwnsWithRole=function(t,i){return e.getAriaOwnsWithRoleHidden(t,i,!1)},e.getAriaOwnsWithRoleHidden=function(t,i,a,l){var o=null,n=!1;if(e.attributeNonEmpty(t,"aria-owns")){var r=t.getAttribute("aria-owns");o=t.ownerDocument.getElementById(r),n=a&&null!=o&&e.shouldNodeBeSkippedHidden(o)?null:e.hasRole(o,i,l)}return n?o:null},e.getInputLabel=function(t){return e.getLabelForElement(t)},e.getLabelForElement=function(t){return e.getLabelForElementHidden(t,!1)},e.getLabelForElementHidden=function(t,i){if(!e.getCache(t.ownerDocument,"RPTUtil_LABELS",null)){for(var a={},l=e.getDocElementsByTag(t,"label"),o=0;o<l.length;++o)if(l[o].hasAttribute("for")){if(i&&!e.isNodeVisible(l[o]))continue;a[l[o].getAttribute("for")]=l[o]}e.setCache(t.ownerDocument,"RPTUtil_LABELS",a)}if(t.hasAttribute("id")){var n=t.getAttribute("id");if(n.trim().length>0)return e.getCache(t.ownerDocument,"RPTUtil_LABELS",{})[n]}return null},e.getElementAttribute=function(e,t){return e&&e.hasAttribute&&e.hasAttribute(t)?e.getAttribute(t):null},e.hasAriaLabel=function(t){return e.attributeNonEmpty(t,"aria-label")||e.attributeNonEmpty(t,"aria-labelledby")},e.hasImplicitLabel=function(t){var i=e.getAncestor(t,"label");if(i&&"label"===i.tagName.toLowerCase()&&e.isFirstFormElement(i,t)){var a=i.cloneNode(!0);return a=e.removeAllFormElementsFromLabel(a),e.hasInnerContentHidden(a)}return!1},e.isFirstFormElement=function(e,t){var i=["input","textarea","select","keygen","progress","meter","output"];if(null!=e.firstChild)for(var a=new s(e);a.nextNode();)if(-1!==i.indexOf(a.node.nodeName.toLowerCase()))return a.node===t;return!1},e.removeAllFormElementsFromLabel=function(e){for(var t=["input","textarea","select","button","datalist","optgroup","option","keygen","output","progress","meter"],i=e.childNodes,a=0;a<i.length;a++)t.indexOf(i[a].nodeName.toLowerCase())>-1&&e.removeChild(i[a]);return e},e.hasUniqueAriaLabelsLocally=function(t,i){if(0===t.length)return!1;var a=t[0].ownerDocument,l=!1,o=null;i&&(o=e.getCache(a,"RPTUtil_HAS_UNIQUE_ARIA_LABELS",null)),null==o&&(o={});for(var n=0;!l&&n<t.length;++n)if(t[n].hasAttribute)if(t[n].hasAttribute("aria-label")){var r=e.normalizeSpacing(t[n].getAttribute("aria-label")).toLowerCase();l=r in o,o[r]=!0}else if(t[n].hasAttribute("aria-labelledby")){var s=t[n].getAttribute("aria-labelledby"),u=t[n].ownerDocument.getElementById(s),d=u?e.getInnerText(u):"",c=e.normalizeSpacing(d).toLowerCase();l=c in o,o[c]=!0}else l=!0;return i&&e.setCache(a,"RPTUtil_HAS_UNIQUE_ARIA_LABELS",o),!l},e.getAriaLabel=function(t){if(t.hasAttribute){if(t.hasAttribute("aria-labelledby")){for(var i=t.getAttribute("aria-labelledby").trim().split(" "),a="",l=0,o=i.length;l<o;++l){var n=i[l],r=t.ownerDocument.getElementById(n),s=r?e.getInnerText(r):"";a+=e.normalizeSpacing(s).toLowerCase()}return a.trim()}if(t.hasAttribute("aria-label"))return e.normalizeSpacing(t.getAttribute("aria-label")).toLowerCase().trim()}return"input"===t.nodeName.toLowerCase()&&(s=e.getLabelForElement(t))?(e.getAriaLabel(s)||s.innerText||"").trim():""},e.findAriaLabelDupes=function(t){var i={};return t.forEach((function(t){i[e.getAriaLabel(t)]=(i[e.getAriaLabel(t)]||0)+1})),i},e.hasUniqueAriaLabels=function(t){return e.hasUniqueAriaLabelsLocally(t,!0)},e.hasDuplicateAriaLabelsLocally=function(t,i){if(0===t.length)return!1;var a=t[0].ownerDocument,l=null,o=new Array;i&&(l=e.getCache(a,"RPTUtil_HAS_UNIQUE_ARIA_LABELS",null)),null==l&&(l={});for(var n=0;n<t.length;++n)if(t[n].hasAttribute)if(t[n].hasAttribute("aria-label")){var r=e.normalizeSpacing(t[n].getAttribute("aria-label")).toLowerCase();r in l,l[r]=!0,r in o||(o[r]=new Array),o[r].push(t[n].nodeName.toLowerCase())}else if(t[n].hasAttribute("aria-labelledby")){for(var s=t[n].getAttribute("aria-labelledby").trim().split(" "),u="",d=0,c=s.length;d<c;++d){var m=s[d],p=t[n].ownerDocument.getElementById(m),_=p?e.getInnerText(p):"";u+=e.normalizeSpacing(_).toLowerCase()}u in l,l[u]=!0,u in o||(o[u]=new Array),o[u].push(t[n].nodeName.toLowerCase())}return i&&e.setCache(a,"RPTUtil_HAS_UNIQUE_ARIA_LABELS",l),o},e.hasDuplicateAriaLabels=function(t){return e.hasDuplicateAriaLabelsLocally(t,!0)},e.hasUniqueAriaLabelledby=function(t){for(var i=!1,a={},l=0;!i&&l<t.length;++l)if(t[l].hasAttribute&&t[l].hasAttribute("aria-labelledby")){var o=e.normalizeSpacing(t[l].getAttribute("aria-labelledby"));i=o in a,a[o]=!0}else i=!0;return!i},e.nodeDepth=function(e){for(var t=0,i=e;null!=i;)i=i.parentNode,t+=1;return t},e.compareNodeOrder=function(t,i){if(t==i)return 0;var a=e.nodeDepth(t),l=e.nodeDepth(i);if(l>a){for(var o=0;o<l-a;++o)i=i.parentNode;if(t==i)return-2}else if(a>l){for(o=0;o<a-l;++o)t=t.parentNode;if(t==i)return 2}for(;null!=t&&null!=i&&t.parentNode!=i.parentNode;)t=t.parentNode,i=i.parentNode;if(null==t||null==i||t.parentNode!=i.parentNode)return null;for(;null!=i&&i!=t;)i=i.previousSibling;return null==i?1:-1},e.validLang=function(e){return/^(([a-zA-Z]{2,3}(-[a-zA-Z](-[a-zA-Z]{3}){0,2})?|[a-zA-Z]{4}|[a-zA-Z]{5,8})(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-([0-9a-zA-Z]{5,8}|[0-9][a-zA-Z]{3}))*(-[0-9a-wy-zA-WY-Z](-[a-zA-Z0-9]{2,8})+)*(-x(-[a-zA-Z0-9]{1,8})+)?|x(-[a-zA-Z0-9]{1,8})+|(en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE|art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang))$/.test(e)},e.attributeNonEmpty=function(e,t){return e.hasAttribute(t)&&e.getAttribute(t).trim().length>0},e.getCache=function(e,t,i){var a=(e.nodeType,e);return null==a.aceCache&&(a.aceCache={}),null==a.aceCache[t]&&(a.aceCache[t]=i),a.aceCache[t]},e.setCache=function(e,t,i){var a=(e.nodeType,e);return null==a.aceCache&&(a.aceCache={}),a.aceCache[t]=i,i},e.getFrameByName=function(e,t){for(var i=[e.ownerDocument.defaultView],a=0;a<i.length;){try{if(i[a].name==t)return i[a];for(var l=0;l<i[a].frames.length;++l)try{i[a].frames[l]&&!i.includes(i[a].frames[l])&&i.push(i[a].frames[l])}catch(e){}}catch(e){}++a}return null},e.defaultNSResolver=function(e){var t;switch(e){case"html":t="http://www.w3.org/1999/xhtml";case"x2":t="http://www.w3.org/TR/xhtml2";case"x":t="http://www.w3.org/1999/xhtml";case"xhtml":t="http://www.w3.org/1999/xhtml";default:t=null}return t},e.isInnerTextOnlyEmpty=function(e){var t=e.innerText;return void 0===t&&void 0!==e.textContent&&(t=e.textContent),!(null!=t&&t.trim().length>0)},e.getInnerText=function(e){var t=e.innerText;return null!=t&&""!=t.trim()||(t=e.textContent),t},e.isInnerTextEmpty=function(t){var i=e.getInnerText(t);return!(null!=i&&i.trim().length>0)},e.hasInnerContent=function(t){var i=e.getInnerText(t),a=null!=i&&i.trim().length>0;if(null!=t.firstChild)for(var l=new s(t);!a&&l.nextNode();)a="img"==l.node.nodeName.toLowerCase()&&e.attributeNonEmpty(l.node,"alt");return a},e.hasInnerContentHidden=function(t){return e.hasInnerContentHiddenHyperLink(t,!1)},e.hasInnerContentHiddenHyperLink=function(t,i){if(!t)return!1;var a=!1;if(null!=t.firstElementChild)for(var l=new s(t);!a&&l.nextNode()&&l.node!=t;){var o=l.node;if(!(a="img"==o.nodeName.toLowerCase()&&e.attributeNonEmpty(o,"alt")&&e.isNodeVisible(o))&&1==o.nodeType&&e.isNodeVisible(o)&&!(a=!e.isInnerTextOnlyEmpty(o))&&1==i){a=e.attributeNonEmpty(o,"aria-label")||e.attributeNonEmpty(o,"aria-labelledby");var n=o.ownerDocument;if(n){var r=n.defaultView;if(r){var u=r.getComputedStyle(o);a||null==u||(a=(u.backgroundImage&&u.backgroundImage.indexOf||u.content)&&e.attributeNonEmpty(o,"alt"))}}}3==o.nodeType&&o.parentElement==t&&(a=!e.isInnerTextEmpty(o))}else a=!e.isInnerTextEmpty(t);return a},e.hasInnerContentOrAlt=function(t){var i=e.getInnerText(t),a=null!=i&&i.trim().length>0||e.attributeNonEmpty(t,"alt");if(null!=t.firstChild)for(var l=new s(t);!a&&l.nextNode()&&l.node!=t;)a="img"==l.node.nodeName.toLowerCase()&&e.attributeNonEmpty(l.node,"alt");return a},e.concatUniqueArrayItem=function(e,t){return-1===t.indexOf(e)&&null!==e&&t.push(e),t},e.concatUniqueArrayItemList=function(t,i){for(var a=0;null!==t&&a<t.length;a++)i=e.concatUniqueArrayItem(t[a],i);return i},e.getElementAriaProperty=function(t){var i=null;t.tagName?i=t.tagName.toLowerCase():t.nodeName&&(i=t.nodeName.toLowerCase());var l=a.ARIADefinitions.documentConformanceRequirement[i];if(null==l){var o=a.ARIADefinitions.documentConformanceRequirementSpecialTags[i];switch(i){case"a":case"area":l=e.attributeNonEmpty(t,"href")?o["with-href"]:o["without-href"];break;case"button":l=e.attributeNonEmpty(t,"type")&&"menu"===t.getAttribute("type").trim().toLowerCase()?o["with-type-menu"]:o["without-type-menu"];break;case"footer":var n=e.getAncestor(t,"article");null===n&&(n=e.getAncestor(t,"aside")),null===n&&(n=e.getAncestor(t,"main")),null===n&&(n=e.getAncestor(t,"nav")),null===n&&(n=e.getAncestor(t,"section")),l=null!==n?o["des-section-article"]:o["not-des-section-article"];break;case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":o=a.ARIADefinitions.documentConformanceRequirementSpecialTags["h1-6"],l=e.attributeNonEmpty(t,"aria-level")&&t.getAttribute("aria-level")>0?o["h1-6-with-aria-level-positive-integer"]:o["h1-6-without-aria-level-positive-integer"];break;case"header":var r=e.getAncestor(t,"article");null===r&&(r=e.getAncestor(t,"aside")),null===r&&(r=e.getAncestor(t,"main")),null===r&&(r=e.getAncestor(t,"nav")),null===r&&(r=e.getAncestor(t,"section")),l=null!==r?o["des-section-article"]:o["not-des-section-article"];break;case"hgroup":l=e.attributeNonEmpty(t,"aria-level")?o["with-aria-level"]:o["without-aria-level"];break;case"img":l=t.hasAttribute("alt")&&""===t.getAttribute("alt").trim()?o["img-with-empty-alt"]:o["img-without-empty-alt"];break;case"input":if(e.attributeNonEmpty(t,"type")){var s=t.getAttribute("type").trim().toLowerCase();if(null==(l=o[s]))switch(s){case"search":l=e.attributeNonEmpty(t,"list")?o["search-list"]:o["search-no-list"];break;case"text":l=e.attributeNonEmpty(t,"list")?o["text-with-list"]:o["text-no-list"];break;case"tel":l=e.attributeNonEmpty(t,"list")?o["tel-with-list"]:o["tel-no-list"];break;case"url":l=e.attributeNonEmpty(t,"list")?o["url-with-list"]:o["url-no-list"];break;case"email":l=e.attributeNonEmpty(t,"list")?o["email-with-list"]:o["email-no-list"];break;case"checkbox":l=e.attributeNonEmpty(t,"aria-pressed")?o["checkbox-with-aria-pressed"]:o["checkbox-without-aria-pressed"];break;default:l=e.attributeNonEmpty(t,"list")?o["text-with-list"]:o["text-no-list"]}}else l=e.attributeNonEmpty(t,"list")?o["text-with-list"]:o["text-no-list"];break;case"li":var u=t.parentNode;l=null===u||"ol"!==u.tagName.toLowerCase()&&"ul"!==u.tagName.toLowerCase()?o["parent-not-ol-or-ul"]:o["parent-ol-or-ul"];break;case"link":l=e.attributeNonEmpty(t,"href")?o["with-href"]:o["without-href"];break;case"menu":l=e.attributeNonEmpty(t,"type")&&"context"===t.getAttribute("type").trim().toLowerCase()?o["type-context"]:l;break;case"menuitem":e.attributeNonEmpty(t,"type")&&("command"===t.getAttribute("type").trim().toLowerCase()?l=o["type-command"]:"checkbox"===t.getAttribute("type").trim().toLowerCase()?l=o["type-checkbox"]:"radio"===t.getAttribute("type").trim().toLowerCase()&&(l=o["type-radio"])),null==l&&(l=o.default);break;case"option":var d=t.parentNode;l="datalist"===d.tagName.toLowerCase()||"options"===d.tagName.toLowerCase()?o["list-suggestion-datalist"]:o["not-list-suggestion-datalist"];break;case"select":o=a.ARIADefinitions.documentConformanceRequirementSpecialTags.select,l=t.hasAttribute("multiple")||e.attributeNonEmpty(t,"size")&&t.getAttribute("size")>1?o["multiple-attr-size-gt1"]:o["no-multiple-attr-size-gt1"];break;default:l=a.ARIADefinitions.textLevelSemanticElements.indexOf(i)>-1?a.ARIADefinitions.documentConformanceRequirementSpecialTags["text-level-semantic-elements"]:a.ARIADefinitions.documentConformanceRequirementSpecialTags.default}}return l||null},e.getAllowedAriaRoles=function(t,i){t.tagName.toLowerCase();var a=[],l=null;return null!=(l=null!=i&&void 0!==i?i:e.getElementAriaProperty(t))&&(null!==l.implicitRole&&e.concatUniqueArrayItemList(l.implicitRole,a),null!==l.validRoles&&e.concatUniqueArrayItemList(l.validRoles,a)),a},e.getAllowedAriaAttributes=function(t,i,l){var o=t.tagName.toLowerCase(),n=[];t.hasAttribute("disabled")&&-1===a.ARIADefinitions.elementsAllowedDisabled.indexOf(o)&&(n=e.concatUniqueArrayItem("aria-disabled",n)),t.hasAttribute("required")&&a.ARIADefinitions.elementsAllowedRequired.indexOf(o)>-1&&(n=e.concatUniqueArrayItem("aria-required",n)),t.hasAttribute("readonly")&&-1===a.ARIADefinitions.elementsAllowedReadOnly.indexOf(o)&&(n=e.concatUniqueArrayItem("aria-readonly",n)),t.hasAttribute("hidden")&&(n=e.concatUniqueArrayItem("aria-hidden",n));var r=null;r=null!=l&&void 0!==l?l:e.getElementAriaProperty(t);var s=!1;if("form"!==o&&"section"!==o||(s=!t.hasAttribute("aria-label")&&!t.hasAttribute("aria-labelledby")&&!t.hasAttribute("title")),null!=r){if(null!==r.implicitRole&&(null==i||0==i.length)&&!s)for(var u=0;u<r.implicitRole.length;u++){var d=a.ARIADefinitions.designPatterns[r.implicitRole[u]];if(null!=d){var c=d.props;e.concatUniqueArrayItemList(c,n),c=e.getRoleRequiredProperties(r.implicitRole[u],t),e.concatUniqueArrayItemList(c,n),"separator"===r.implicitRole[u]&&e.isFocusable(t)&&e.concatUniqueArrayItemList(["aria-valuetext"],n)}}if(r.globalAriaAttributesValid){var m=a.ARIADefinitions.globalProperties;e.concatUniqueArrayItemList(m,n)}else"img"===o&&t.hasAttribute("alt")&&""===t.getAttribute("alt").trim()&&e.concatUniqueArrayItemList(["aria-hidden"],n)}for(u=0;null!==i&&u<i.length;u++){var p=a.ARIADefinitions.designPatterns[i[u]];if(null!=p){var _=p.props;e.concatUniqueArrayItemList(_,n),_=e.getRoleRequiredProperties(i[u],t),e.concatUniqueArrayItemList(_,n),"separator"===i[u]&&e.isFocusable(t)&&e.concatUniqueArrayItemList(["aria-valuetext"],n)}}return n},e.CSS=function(t){var i="";if(null==t)return[];if(t.IBM_CSS_THB)return t.IBM_CSS_THB;if("style"==t.nodeName.toLowerCase())i=e.getInnerText(t);else{if(!t.hasAttribute("style"))return[];i=t.getAttribute("style")}if(null==i||0==i.trim().length)return[];var a=/\s*([^:\s]+)\s*:\s*([^;$}]+)\s*(;|$)/g,l=/\s*([^{]*){([^}]*)}/g;if(-1==(i=i.replace(/(\/\*+(?:(?:(?:[^\*])+)|(?:[\*]+(?!\/)))[*]+\/)|\/\/.*/g," ")).indexOf("{")){for(var o={},n=void 0;null!=(n=a.exec(i));)o[n[1]]=n[2].trim().toLowerCase();var r=[{selector:null,values:o}];return t.IBM_CSS_THB=r,r}r=[],n=void 0;for(var s=void 0;null!=(n=l.exec(i));){o={};for(var u=n[1],d=n[2];null!=(s=a.exec(d));)o[s[1]]=s[2].trim().toLowerCase();r.push({selector:u,values:o})}return t.IBM_CSS_THB=r,r},e.isNodeVisible=function(t){if(e.setCache(t,"PT_NODE_HIDDEN",e.getCache(t,"PT_NODE_HIDDEN",!1)),3==t.nodeType)t=t.parentNode;else if(1!=t.nodeType)return!0;if(!t.ownerDocument)return!0;var i,a=t.nodeName.toLowerCase();if(null!=e.hiddenByDefaultElements&&null!=e.hiddenByDefaultElements&&e.hiddenByDefaultElements.indexOf(a)>-1)return!0;if(null==e.unhideableElements||null==e.unhideableElements||-1==e.unhideableElements.indexOf(a)){if(!t.ownerDocument.defaultView)return!0;i=t.ownerDocument.defaultView.getComputedStyle(t,null);var l=t.getAttribute("hidden"),o=e.getCache(t,"PT_NODE_HIDDEN",void 0),n="boolean"==typeof t.hidden&&t.hidden;if(!(i||n||null!=l&&null!=l||o))return!0;if(null!==i&&("none"==i.getPropertyValue("display")||!t.Visibility_Check_Parent&&"hidden"==i.getPropertyValue("visibility"))||n||null!=l||o)return e.setCache(t,"PT_NODE_HIDDEN",!0),!1}var r=t.parentNode;if(null!=r&&1==r.nodeType){r.Visibility_Check_Parent=!0;var s=e.isNodeVisible(r);return s||e.setCache(t,"PT_NODE_HIDDEN",!0),s}return!0},e.getControlOfLabel=function(t){var i=e.getAncestor(t,"label");if(i&&i.hasAttribute("for"))return t.ownerDocument.getElementById(i.getAttribute("for"));for(var a={},l=t;l;){if(1===l.nodeType){var o=l;o.hasAttribute("id")&&(a[o.getAttribute("id")]=!0)}l=l.parentNode}for(var n=t.ownerDocument.querySelectorAll("*[aria-labelledby]"),r=0;r<n.length;++r)for(var s=n[r],u=0,d=s.getAttribute("aria-labelledby").split(" ");u<d.length;u++){if(d[u]in a)return s}return null},e.isNodeDisabled=function(t){var i=e.getCache(t,"PT_NODE_DISABLED",!1);3==t.nodeType&&(t=t.parentNode);var l=t.nodeName.toLowerCase(),o=t.hasAttribute("disabled"),n=i,r=t.hasAttribute("aria-disabled")&&"true"===t.getAttribute("aria-disabled");if(n||o&&a.ARIADefinitions.elementsAllowedDisabled.indexOf(l)>-1||r)return i=!0,e.setCache(t,"PT_NODE_DISABLED",i),!0;var s=t.parentNode;if(null!=s&&1==s.nodeType){var u=e.isNodeDisabled(s);return u&&(i=!0),e.setCache(t,"PT_NODE_DISABLED",i),u}return!1},e.shouldCheckHiddenContent=function(e){return!1},e.shouldNodeBeSkippedHidden=function(t){return!e.shouldCheckHiddenContent(t)&&!e.isNodeVisible(t)},e.isfocusableByDefault=function(t){return!("a"!=t.nodeName.toLowerCase()||!e.hasAttribute(t,"href"))||(!("area"!=t.nodeName.toLowerCase()||!e.hasAttribute(t,"href"))||-1!=["input","select","button","textarea","option","area"].indexOf(t.nodeName.toLowerCase()))},e.nonTabableChildCheck=function(t){if(!t.hasAttribute("tabindex")||-1!=parseInt(t.getAttribute("tabindex")))return!1;for(var i=new s(t);i.nextNode();){var a=i.node;if(1===a.nodeType&&(a.hasAttribute("tabindex")&&-1!=parseInt(a.getAttribute("tabindex"))&&!e.hasInnerContent(a)))return!1}return!0},e.Color=function(t){if("transparent"==(t=t.toLowerCase()))return new r(255,255,255,0);if(t in e.CSSColorLookup&&(t=e.CSSColorLookup[t]),t.startsWith("rgb(")){var i=/\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/;return null==(a=t.match(i))?null:new r(a[1],a[2],a[3])}if(t.startsWith("rgba(")){var a;i=/\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(.+)\s*\)/;return null==(a=t.match(i))?null:new r(a[1],a[2],a[3],a[4])}if("#"!=t.charAt(0))return null;4==t.length&&(t="#"+t.charAt(1).repeat(2)+t.charAt(2).repeat(2)+t.charAt(3).repeat(2));var l=parseInt(t.substring(1,3),16),o=parseInt(t.substring(3,5),16),n=parseInt(t.substring(5,7),16);return new r(l,o,n)},e.ColorCombo=function(t){var i=t.ownerDocument;if(!i)return null;var a=i.defaultView;if(!a)return null;for(var l=[],o=t;o;)1==o.nodeType&&l.push(o),o=o.parentElement;var n={hasGradient:!1,hasBGImage:!1,fg:null,bg:null},r=a.getComputedStyle(t).color;r||(r="black");for(var s=e.Color(r),u=/transparent|rgba?\([^)]+\)/gi,d=function(e,t,i){try{if(void 0===e.length)return e;for(var a=null,l=null,o=1;o<e.length;++o){for(var n=e[o-1],r=i.contrastRatio(e[o-1]),s=.1,u=0;s>1e-4;){for(;u+s<=1&&r>i.contrastRatio(e[o].mix(e[o-1],u+s).getOverlayColor(t));)n=e[o].mix(e[o-1],u+s).getOverlayColor(t),r=i.contrastRatio(n),u+=s;for(;u-s>=0&&r>i.contrastRatio(e[o].mix(e[o-1],u-s).getOverlayColor(t));)n=e[o].mix(e[o-1],u-s).getOverlayColor(t),r=i.contrastRatio(n),u-=s;s/=10}(null==l||l>r)&&(l=r,a=n)}return a}catch(e){console.log(e)}return t},c=e.Color("white"),m=null,p=null,_=null;l.length>0;){var h=l.pop(),R=a.getComputedStyle(h);if(null!=R){var A=null;if(R.backgroundColor&&"transparent"!=R.backgroundColor&&"rgba(0, 0, 0, 0)"!=R.backgroundColor&&(A=e.Color(R.backgroundColor)),R.backgroundImage&&R.backgroundImage.indexOf&&-1!=R.backgroundImage.indexOf("gradient")){var g=R.backgroundImage.match(u);if(g){for(var f=[],b=0;b<g.length;++b)g[b].length?f.push(e.Color(g[b])):g.splice(b--,1);A=d(f,_||c,s)}}null==m||R.opacity&&R.opacity.length>0&&parseFloat(R.opacity)<1?(null!=_&&(_.alpha=m*p,c=_.getOverlayColor(c)),m=1,p=null,_=null,R.opacity&&R.opacity.length>0&&(m=parseFloat(R.opacity)),null!=A&&(p=(_=A).alpha||1,delete _.alpha,1==m&&1==p&&(n.hasBGImage=!1,n.hasGradient=!1))):null!=A&&(null==_?(p=(_=A).alpha||1,delete _.alpha):_=A.getOverlayColor(_),1==m&&1==p&&1==(_.alpha||1)&&0==(A.alpha||1)&&(n.hasBGImage=!1,n.hasGradient=!1)),R.backgroundImage&&"none"!=R.backgroundImage&&(R.backgroundImage.indexOf&&-1!=R.backgroundImage.indexOf("gradient")?n.hasGradient=!0:n.hasBGImage=!0)}}return null!=_&&delete(s=s.getOverlayColor(_)).alpha,s.alpha=(s.alpha||1)*m,s=s.getOverlayColor(c),null!=_&&(_.alpha=m*p,c=_.getOverlayColor(c)),n.fg=s,n.bg=c,n},e.hasAttribute=function(e,t){var i=!1;if(e.hasAttribute)i=e.hasAttribute(t);else if(e.attributes&&e.attributes.getNamedItem){var a=e.attributes.getNamedItem(t);i=a&&a.specified}return i},e.unhideableElements=["area","param","audio"],e.hiddenByDefaultElements=["script","link","style","head","title","meta","base","noscript","template","datalist"],e.navLinkKeywords=["start","next","prev","previous","contents","index"],e.rulesThatHaveToCheckHidden=["RPT_Elem_UniqueId"],e.ariaAttributeRoleDefaults={alert:{"aria-live":"assertive","aria-atomic":"true"},checkbox:{"aria-checked":"false"},combobox:{"aria-expanded":"false","aria-haspopup":"listbox"},heading:{"aria-level":"2"},listbox:{"aria-orientation":"vertical"},log:{"aria-live":"polite"},menu:{"aria-orientation":"vertical"},menubar:{"aria-orientation":"horizontal"},menuitemcheckbox:{"aria-checked":"false"},menuitemradio:{"aria-checked":"false"},option:{"aria-selected":"false"},radio:{"aria-checked":"false"},scrollbar:{"aria-orientation":"vertical","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":function(t){var i=e.getAriaAttribute(t,"aria-valuemax"),a=e.getAriaAttribute(t,"aria-valuemin");return""+((i-a)/2+a)}},separator:{"aria-orientation":"horizontal","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"50"},slider:{"aria-orientation":"horizontal","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":function(t){var i=e.getAriaAttribute(t,"aria-valuemax"),a=e.getAriaAttribute(t,"aria-valuemin");return""+((i-a)/2+a)}},spinbutton:{"aria-valuenow":"0"},status:{"aria-live":"polite","aria-atomic":"true"},switch:{"aria-checked":"false"},tab:{"aria-selected":"false"},tablist:{"aria-orientation":"horizontal"},toolbar:{"aria-orientation":"horizontal"},tree:{"aria-orientation":"vertical"}},e.ariaAttributeGlobalDefaults={"aria-atomic":"false","aria-autocomplete":"none","aria-busy":"false","aria-checked":void 0,"aria-current":"false","aria-disabled":"false","aria-dropeffect":"none","aria-expanded":void 0,"aria-grabbed":void 0,"aria-haspopup":"false","aria-hidden":void 0,"aria-invalid":"false","aria-live":"off","aria-modal":"false","aria-multiline":"false","aria-multiselectable":"false","aria-orientation":void 0,"aria-pressed":void 0,"aria-readonly":"false","aria-required":"false","aria-selected":void 0,"aria-sort":"none"},e.ariaAttributeImplicitMappings={"aria-autocomplete":{form:function(e){return"off"===e.getAttribute("autocomplete")?"none":"both"},input:function(e){return"off"===e.getAttribute("autocomplete")?"none":"both"},select:function(e){return"off"===e.getAttribute("autocomplete")?"none":"both"},textarea:function(e){return"off"===e.getAttribute("autocomplete")?"none":"both"}},"aria-checked":{input:function(e){return e.hasAttribute("indeterminate")?"mixed":""+e.hasAttribute("checked")},menuitem:function(e){return e.hasAttribute("indeterminate")?"mixed":""+e.hasAttribute("checked")},"*":function(e){if(e.hasAttribute("indeterminate"))return"mixed"}},"aria-haspopup":{"*":function(e){if(e.hasAttribute("contextmenu"))return"true"}},"aria-multiselectable":{input:function(e){if(e.hasAttribute("multiple"))return"true"}},"aria-expanded":{details:function(e){return e.getAttribute("open")},dialog:function(e){return e.getAttribute("open")}},"aria-placeholder":{input:function(e){return e.getAttribute("placeholder")},textarea:function(e){return e.getAttribute("placeholder")}},"aria-required":{input:function(e){return e.getAttribute("required")},select:function(e){return e.getAttribute("required")},textarea:function(e){return e.getAttribute("required")}},"aria-disabled":{button:function(e){return e.hasAttribute("disabled")?"true":"false"},fieldset:function(e){return e.hasAttribute("disabled")?"true":"false"},input:function(e){return e.hasAttribute("disabled")?"true":"false"},keygen:function(e){return e.hasAttribute("disabled")?"true":"false"},optgroup:function(e){return e.hasAttribute("disabled")?"true":"false"},option:function(e){return e.hasAttribute("disabled")?"true":"false"},select:function(e){return e.hasAttribute("disabled")?"true":"false"},textarea:function(e){return e.hasAttribute("disabled")?"true":"false"}}},e.tabTagMap={button:!0,input:function(e){return"hidden"!=e.getAttribute("type")},select:!0,textarea:!0,div:function(e){return e.hasAttribute("contenteditable")},a:function(e){return e.hasAttribute("href")},area:function(e){return e.hasAttribute("href")},audio:function(e){return e.hasAttribute("controls")},video:function(e){return e.hasAttribute("controls")}},e.CSSColorLookup={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",buttontext:"rgba(0, 0, 0, 0.847)",buttonface:"#ffffff",graytext:"rgba(0, 0, 0, 0.247)"},e}();t.RPTUtil=o;var n=function(){function e(){}return e.getWeightNumber=function(e){var t={light:100,bold:700},i=parseInt(e);return i||(e in t?t[e]:400)},e.getFontInPixels=function(e){var t=parseFloat(e);if(!t)return{"xx-small":16,"x-small":10,small:13,medium:16,large:18,"x-large":24,"xx-large":32}[e];var i=e.substring((""+t).length);return""==i||"px"==i?t:"em"==i?16*t:"%"==i?t/100*16:"pt"==i?4*t/3:Math.round(t)},e}();t.RPTUtilStyle=n;var r=function(){function e(e,t,i,a){function l(e){if("string"!=typeof e)return e;var t=e;return"%"!=(t=t.trim())[t.length-1]?parseInt(t):Math.round(2.55*parseFloat(t.substring(0,t.length-1)))}this.red=l(e),this.green=l(t),this.blue=l(i),void 0!==a&&(this.alpha="string"==typeof a?parseFloat(a):a)}return e.prototype.toHexHelp=function(e){var t=Math.round(e).toString(16);return 1==t.length?"0"+t:t},e.prototype.toHex=function(){return"#"+this.toHexHelp(this.red)+this.toHexHelp(this.green)+this.toHexHelp(this.blue)},e.prototype.contrastRatio=function(e){var t=this;void 0!==this.alpha&&(t=this.getOverlayColor(e));var i=t.relativeLuminance();if(!e.relativeLuminance){var a="";for(var l in e)a+=l+"\n";alert(e),alert(a)}var o=e.relativeLuminance();return i>o?(i+.05)/(o+.05):(o+.05)/(i+.05)},e.prototype.relativeLuminance=function(){var e=this.red/255,t=this.green/255,i=this.blue/255;return.2126*(e=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(i=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))},e.prototype.mix=function(t,i){if(void 0===this.alpha&&void 0===t.alpha)return new e(i*this.red+(1-i)*t.red,i*this.green+(1-i)*t.green,i*this.blue+(1-i)*t.blue);var a=this.alpha?this.alpha:1,l=t.alpha?t.alpha:1;return new e(i*this.red+(1-i)*t.red,i*this.green+(1-i)*t.green,i*this.blue+(1-i)*t.blue,i*a+(1-i)*l)},e.prototype.getOverlayColor=function(e){if(void 0===this.alpha||this.alpha>=1)return this;if(this.alpha<0)return null;if(void 0!==e.alpha&&e.alpha<1)return null;var t=this.mix(e,this.alpha);return delete t.alpha,t},e.fromCSSColor=function(t){var i=-1,a=-1,l=-1;if((t=t.toLowerCase()).startsWith("rgb(")){var n=/\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/;if(null==(r=t.match(n)))return null;i=r[1],a=r[2],l=r[3]}else if(t.startsWith("rgba(")){var r;n=/\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(.+)\s*\)/;if(null==(r=t.match(n)))return null;i=r[1],a=r[2],l=r[3]}else{if("#"!=t.charAt(0)){if(!(t in o.CSSColorLookup))return null;t=o.CSSColorLookup[t]}var s=function(e){for(var t={a:10,b:11,c:12,d:13,e:14,f:15},i=0,a=0;a<e.length;++a)i=16*i+parseInt(e.charAt(a)in t?t[e.charAt(a)]:e.charAt(a));return i};4==t.length&&(t="#"+t.charAt(1).repeat(2)+t.charAt(2).repeat(2)+t.charAt(3).repeat(2)),i=s(t.substring(1,3)),a=s(t.substring(3,5)),l=s(t.substring(5,7))}return new e(i,a,l)},e}();t.ColorObj=r;var s=function(){function e(e,t){this.node=e,this.bEndTag=null!=t&&1==t}return e.prototype.nextNode=function(){if(!this.bEndTag&&this.node.firstChild)this.node=this.node.firstChild;else if(this.node.nextSibling)this.node=this.node.nextSibling,this.bEndTag=!1;else{if(!this.node.parentNode)return!1;this.node=this.node.parentNode,this.bEndTag=!0}return!0},e.prototype.prevNode=function(){if(this.bEndTag&&this.node.lastChild)this.node=this.node.lastChild,this.bEndTag=!0;else if(this.node.previousSibling)this.node=this.node.previousSibling,this.bEndTag=!0;else{if(!this.node.parentNode)return!1;this.node=this.node.parentNode,this.bEndTag=!1}return!this.bEndTag||null!=this.node.firstChild&&void 0!==this.node.firstChild||(this.bEndTag=!1),!0},e}();t.NodeWalker=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ARIADefinitions=void 0;var a=function(){function e(){}return e.nameFromContent=function(t){return t in e.designPatterns&&e.designPatterns[t].nameFrom&&e.designPatterns[t].nameFrom.includes("contents")},e.globalProperties=["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-dropeffect","aria-errormessage","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"],e.propertyDataTypes={"aria-activedescendant":{type:"http://www.w3.org/2001/XMLSchema#idref",hiddenIDRefSupported:!0},"aria-atomic":{type:"http://www.w3.org/2001/XMLSchema#boolean"},"aria-autocomplete":{type:"http://www.w3.org/2001/XMLSchema#nmtoken",values:["inline","list","both","none","undefined"]},"aria-busy":{type:"http://www.w3.org/2001/XMLSchema#boolean"},"aria-checked":{type:"http://www.w3.org/2001/XMLSchema#nmtoken",values:["true","false","mixed","undefined"]},"aria-colcount":{type:"http://www.w3.org/2001/XMLSchema#int"},"aria-colindex":{type:"http://www.w3.org/2001/XMLSchema#int"},"aria-colspan":{type:"http://www.w3.org/2001/XMLSchema#int"},"aria-controls":{type:"http://www.w3.org/2001/XMLSchema#idrefs",hiddenIDRefSupported:!0},"aria-current":{type:"http://www.w3.org/2001/XMLSchema#nmtoken",values:["page","step","location","date","time","true","false","undefined"]},"aria-describedby":{type:"http://www.w3.org/2001/XMLSchema#idrefs",hiddenIDRefSupported:!0},"aria-details":{type:"http://www.w3.org/2001/XMLSchema#idrefs"},"aria-disabled":{type:"http://www.w3.org/2001/XMLSchema#boolean"},"aria-dropeffect":{type:"http://www.w3.org/2001/XMLSchema#nmtokens",values:["copy","move","link","execute","popup","none"]},"aria-errormessage":{type:"http://www.w3.org/2001/XMLSchema#idrefs",hiddenIDRefSupported:!0},"aria-expanded":{type:"http://www.w3.org/2001/XMLSchema#nmtoken",values:["true","false","undefined"]},"aria-flowto":{type:"http://www.w3.org/2001/XMLSchema#idrefs",hiddenIDRefSupported:!1},"aria-grabbed":{type:"http://www.w3.org/2001/XMLSchema#nmtoken",values:["true","false","undefined"]},"aria-haspopup":{type:"http://www.w3.org/2001/XMLSchema#nmtoken",values:["true","false","menu","listbox","tree","grid","dialog"]},"aria-hidden":{type:"http://www.w3.org/2001/XMLSchema#boolean"},"aria-invalid":{type:"http://www.w3.org/2001/XMLSchema#nmtoken",values:["true","false","spelling","grammar","undefined"]},"aria-keyshortcuts":{type:"http://www.w3.org/2001/XMLSchema#string"},"aria-label":{type:"http://www.w3.org/2001/XMLSchema#string"},"aria-labelledby":{type:"http://www.w3.org/2001/XMLSchema#idrefs",hiddenIDRefSupported:!0},"aria-level":{type:"http://www.w3.org/2001/XMLSchema#int"},"aria-live":{type:"http://www.w3.org/2001/XMLSchema#nmtoken",values:["off","polite","assertive"]},"aria-modal":{type:"http://www.w3.org/2001/XMLSchema#boolean"},"aria-multiline":{type:"http://www.w3.org/2001/XMLSchema#boolean"},"aria-multiselectable":{type:"http://www.w3.org/2001/XMLSchema#boolean"},"aria-orientation":{type:"http://www.w3.org/2001/XMLSchema#nmtoken",values:["horizontal","vertical","undefined"]},"aria-owns":{type:"http://www.w3.org/2001/XMLSchema#idrefs",hiddenIDRefSupported:!0},"aria-placeholder":{type:"http://www.w3.org/2001/XMLSchema#string"},"aria-posinset":{type:"http://www.w3.org/2001/XMLSchema#int"},"aria-pressed":{type:"http://www.w3.org/2001/XMLSchema#nmtoken",values:["true","false","mixed","undefined"]},"aria-readonly":{type:"http://www.w3.org/2001/XMLSchema#boolean"},"aria-relevant":{type:"http://www.w3.org/2001/XMLSchema#nmtokens",values:["additions","removals","text","all"]},"aria-required":{type:"http://www.w3.org/2001/XMLSchema#boolean"},"aria-roledescription":{type:"http://www.w3.org/2001/XMLSchema#string"},"aria-rowcount":{type:"http://www.w3.org/2001/XMLSchema#int"},"aria-rowindex":{type:"http://www.w3.org/2001/XMLSchema#int"},"aria-rowspan":{type:"http://www.w3.org/2001/XMLSchema#int"},"aria-selected":{type:"http://www.w3.org/2001/XMLSchema#nmtoken",values:["true","false","undefined"]},"aria-setsize":{type:"http://www.w3.org/2001/XMLSchema#int"},"aria-sort":{type:"http://www.w3.org/2001/XMLSchema#nmtoken",values:["ascending","descending","other","none"]},"aria-valuemax":{type:"http://www.w3.org/2001/XMLSchema#decimal"},"aria-valuemin":{type:"http://www.w3.org/2001/XMLSchema#decimal"},"aria-valuenow":{type:"http://