[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/media/plg_system_jooa11y/js/ -> jooa11y.min.js (source)

   1  var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce((function(e,t){return e.concat([t+"-"+start,t+"-"+end])}),[]),placements=[].concat(basePlacements,[auto]).reduce((function(e,t){return e.concat([t,t+"-"+start,t+"-"+end])}),[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function isElement$1(e){return e instanceof getWindow(e).Element||e instanceof Element}function isHTMLElement(e){return e instanceof getWindow(e).HTMLElement||e instanceof HTMLElement}function isShadowRoot(e){return"undefined"!=typeof ShadowRoot&&(e instanceof getWindow(e).ShadowRoot||e instanceof ShadowRoot)}function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];isHTMLElement(r)&&getNodeName(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))}function effect$2(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],r=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});isHTMLElement(o)&&getNodeName(o)&&(Object.assign(o.style,a),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}}var applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement$1(e){return e.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getBoundingClientRect(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),o=1,r=1;if(isHTMLElement(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(o=round(n.width)/i||1),a>0&&(r=round(n.height)/a||1)}return{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function getLayoutRect(e){var t=getBoundingClientRect(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function contains(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&isShadowRoot(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function getComputedStyle$1(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement$1(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){return"html"===getNodeName(e)?e:e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){return isHTMLElement(e)&&"fixed"!==getComputedStyle$1(e).position?e.offsetParent:null}function getContainingBlock(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&isHTMLElement(e)&&"fixed"===getComputedStyle$1(e).position)return null;for(var n=getParentNode(e);isHTMLElement(n)&&["html","body"].indexOf(getNodeName(n))<0;){var o=getComputedStyle$1(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}function getOffsetParent(e){for(var t=getWindow(e),n=getTrueOffsetParent(e);n&&isTableElement(n)&&"static"===getComputedStyle$1(n).position;)n=getTrueOffsetParent(n);return n&&("html"===getNodeName(n)||"body"===getNodeName(n)&&"static"===getComputedStyle$1(n).position)?t:n||getContainingBlock(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function within(e,t,n){return max(e,min(t,n))}function withinMaxClamp(e,t,n){var o=within(e,t,n);return o>n?n:o}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var toPaddingObject=function(e,t){return mergePaddingObject("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:expandToHashMap(e,basePlacements))};function arrow(e){var t,n=e.state,o=e.name,r=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=getBasePlacement$1(n.placement),l=getMainAxisFromPlacement(s),c=[left,right].indexOf(s)>=0?"height":"width";if(a&&i){var d=toPaddingObject(r.padding,n),u=getLayoutRect(a),f="y"===l?top:left,p="y"===l?bottom:right,g=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],h=i[l]-n.rects.reference[l],m=getOffsetParent(a),y=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=g/2-h/2,A=d[f],L=y-u[c]-d[p],E=y/2-u[c]/2+b,v=within(A,E,L),_=l;n.modifiersData[o]=((t={})[_]=v,t.centerOffset=v-E,t)}}function effect$1(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&contains(t.elements.popper,o)&&(t.elements.arrow=o)}var arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(e){return e.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:round(t*o)/o||0,y:round(n*o)/o||0}}function mapToStyles(e){var t,n=e.popper,o=e.popperRect,r=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,f=i.x,p=void 0===f?0:f,g=i.y,h=void 0===g?0:g,m="function"==typeof d?d({x:p,y:h}):{x:p,y:h};p=m.x,h=m.y;var y=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),A=left,L=top,E=window;if(c){var v=getOffsetParent(n),_="clientHeight",j="clientWidth";if(v===getWindow(n)&&"static"!==getComputedStyle$1(v=getDocumentElement(n)).position&&"absolute"===s&&(_="scrollHeight",j="scrollWidth"),v=v,r===top||(r===left||r===right)&&a===end)L=bottom,h-=(u&&E.visualViewport?E.visualViewport.height:v[_])-o.height,h*=l?1:-1;if(r===left||(r===top||r===bottom)&&a===end)A=right,p-=(u&&E.visualViewport?E.visualViewport.width:v[j])-o.width,p*=l?1:-1}var S,T=Object.assign({position:s},c&&unsetSides),I=!0===d?roundOffsetsByDPR({x:p,y:h}):{x:p,y:h};return p=I.x,h=I.y,l?Object.assign({},T,((S={})[L]=b?"0":"",S[A]=y?"0":"",S.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",S)):Object.assign({},T,((t={})[L]=b?h+"px":"",t[A]=y?p+"px":"",t.transform="",t))}function computeStyles(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,c={placement:getBasePlacement$1(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}},passive={passive:!0};function effect(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,a=void 0===r||r,i=o.resize,s=void 0===i||i,l=getWindow(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,passive)})),s&&l.addEventListener("resize",n.update,passive),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,passive)})),s&&l.removeEventListener("resize",n.update,passive)}}var eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:effect,data:{}},hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return hash$1[e]}))}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return hash[e]}))}function getWindowScroll(e){var t=getWindow(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function getViewportRect(e){var t=getWindow(e),n=getDocumentElement(e),o=t.visualViewport,r=n.clientWidth,a=n.clientHeight,i=0,s=0;return o&&(r=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=o.offsetLeft,s=o.offsetTop)),{width:r,height:a,x:i+getWindowScrollBarX(e),y:s}}function getDocumentRect(e){var t,n=getDocumentElement(e),o=getWindowScroll(e),r=null==(t=e.ownerDocument)?void 0:t.body,a=max(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=max(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+getWindowScrollBarX(e),l=-o.scrollTop;return"rtl"===getComputedStyle$1(r||n).direction&&(s+=max(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function isScrollParent(e){var t=getComputedStyle$1(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function getScrollParent(e){return["html","body","#document"].indexOf(getNodeName(e))>=0?e.ownerDocument.body:isHTMLElement(e)&&isScrollParent(e)?e:getScrollParent(getParentNode(e))}function listScrollParents(e,t){var n;void 0===t&&(t=[]);var o=getScrollParent(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),a=getWindow(o),i=r?[a].concat(a.visualViewport||[],isScrollParent(o)?o:[]):o,s=t.concat(i);return r?s:s.concat(listScrollParents(getParentNode(i)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getInnerBoundingClientRect(e){var t=getBoundingClientRect(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function getClientRectFromMixedType(e,t){return t===viewport?rectToClientRect(getViewportRect(e)):isElement$1(t)?getInnerBoundingClientRect(t):rectToClientRect(getDocumentRect(getDocumentElement(e)))}function getClippingParents(e){var t=listScrollParents(getParentNode(e)),n=["absolute","fixed"].indexOf(getComputedStyle$1(e).position)>=0&&isHTMLElement(e)?getOffsetParent(e):e;return isElement$1(n)?t.filter((function(e){return isElement$1(e)&&contains(e,n)&&"body"!==getNodeName(e)})):[]}function getClippingRect(e,t,n){var o="clippingParents"===t?getClippingParents(e):[].concat(t),r=[].concat(o,[n]),a=r[0],i=r.reduce((function(t,n){var o=getClientRectFromMixedType(e,n);return t.top=max(o.top,t.top),t.right=min(o.right,t.right),t.bottom=min(o.bottom,t.bottom),t.left=max(o.left,t.left),t}),getClientRectFromMixedType(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function computeOffsets(e){var t,n=e.reference,o=e.element,r=e.placement,a=r?getBasePlacement$1(r):null,i=r?getVariation(r):null,s=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(a){case top:t={x:s,y:n.y-o.height};break;case bottom:t={x:s,y:n.y+n.height};break;case right:t={x:n.x+n.width,y:l};break;case left:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?getMainAxisFromPlacement(a):null;if(null!=c){var d="y"===c?"height":"width";switch(i){case start:t[c]=t[c]-(n[d]/2-o[d]/2);break;case end:t[c]=t[c]+(n[d]/2-o[d]/2)}}return t}function detectOverflow(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,a=n.boundary,i=void 0===a?clippingParents:a,s=n.rootBoundary,l=void 0===s?viewport:s,c=n.elementContext,d=void 0===c?popper:c,u=n.altBoundary,f=void 0!==u&&u,p=n.padding,g=void 0===p?0:p,h=mergePaddingObject("number"!=typeof g?g:expandToHashMap(g,basePlacements)),m=d===popper?reference:popper,y=e.rects.popper,b=e.elements[f?m:d],A=getClippingRect(isElement$1(b)?b:b.contextElement||getDocumentElement(e.elements.popper),i,l),L=getBoundingClientRect(e.elements.reference),E=computeOffsets({reference:L,element:y,strategy:"absolute",placement:r}),v=rectToClientRect(Object.assign({},y,E)),_=d===popper?v:L,j={top:A.top-_.top+h.top,bottom:_.bottom-A.bottom+h.bottom,left:A.left-_.left+h.left,right:_.right-A.right+h.right},S=e.modifiersData.offset;if(d===popper&&S){var T=S[r];Object.keys(j).forEach((function(e){var t=[right,bottom].indexOf(e)>=0?1:-1,n=[top,bottom].indexOf(e)>=0?"y":"x";j[e]+=T[n]*t}))}return j}function computeAutoPlacement(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?placements:l,d=getVariation(o),u=d?s?variationPlacements:variationPlacements.filter((function(e){return getVariation(e)===d})):basePlacements,f=u.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=u);var p=f.reduce((function(t,n){return t[n]=detectOverflow(e,{placement:n,boundary:r,rootBoundary:a,padding:i})[getBasePlacement$1(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}function getExpandedFallbackPlacements(e){if(getBasePlacement$1(e)===auto)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}function flip(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,a=void 0===r||r,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,g=void 0===p||p,h=n.allowedAutoPlacements,m=t.options.placement,y=getBasePlacement$1(m),b=l||(y===m||!g?[getOppositePlacement(m)]:getExpandedFallbackPlacements(m)),A=[m].concat(b).reduce((function(e,n){return e.concat(getBasePlacement$1(n)===auto?computeAutoPlacement(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:g,allowedAutoPlacements:h}):n)}),[]),L=t.rects.reference,E=t.rects.popper,v=new Map,_=!0,j=A[0],S=0;S<A.length;S++){var T=A[S],I=getBasePlacement$1(T),O=getVariation(T)===start,N=[top,bottom].indexOf(I)>=0,w=N?"width":"height",x=detectOverflow(t,{placement:T,boundary:d,rootBoundary:u,altBoundary:f,padding:c}),C=N?O?right:left:O?bottom:top;L[w]>E[w]&&(C=getOppositePlacement(C));var R=getOppositePlacement(C),M=[];if(a&&M.push(x[I]<=0),s&&M.push(x[C]<=0,x[R]<=0),M.every((function(e){return e}))){j=T,_=!1;break}v.set(T,M)}if(_)for(var $=function(e){var t=A.find((function(t){var n=v.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return j=t,"break"},P=g?3:1;P>0;P--){if("break"===$(P))break}t.placement!==j&&(t.modifiersData[o]._skip=!0,t.placement=j,t.reset=!0)}}var flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function isAnySideFullyClipped(e){return[top,right,bottom,left].some((function(t){return e[t]>=0}))}function hide(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,i=detectOverflow(t,{elementContext:"reference"}),s=detectOverflow(t,{altBoundary:!0}),l=getSideOffsets(i,o),c=getSideOffsets(s,r,a),d=isAnySideFullyClipped(l),u=isAnySideFullyClipped(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}var hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(e,t,n){var o=getBasePlacement$1(e),r=[left,top].indexOf(o)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*r,[left,right].indexOf(o)>=0?{x:s,y:i}:{x:i,y:s}}function offset(e){var t=e.state,n=e.options,o=e.name,r=n.offset,a=void 0===r?[0,0]:r,i=placements.reduce((function(e,n){return e[n]=distanceAndSkiddingToXY(n,t.rects,a),e}),{}),s=i[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=i}var offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(e){var t=e.state,n=e.name;t.modifiersData[n]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(e){return"x"===e?"y":"x"}function preventOverflow(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,a=void 0===r||r,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,f=n.tether,p=void 0===f||f,g=n.tetherOffset,h=void 0===g?0:g,m=detectOverflow(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),y=getBasePlacement$1(t.placement),b=getVariation(t.placement),A=!b,L=getMainAxisFromPlacement(y),E=getAltAxis(L),v=t.modifiersData.popperOffsets,_=t.rects.reference,j=t.rects.popper,S="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,T="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(v){if(a){var N,w="y"===L?top:left,x="y"===L?bottom:right,C="y"===L?"height":"width",R=v[L],M=R+m[w],$=R-m[x],P=p?-j[C]/2:0,H=b===start?_[C]:j[C],D=b===start?-j[C]:-_[C],k=t.elements.arrow,B=p&&k?getLayoutRect(k):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject(),W=G[w],F=G[x],q=within(0,_[C],B[C]),U=A?_[C]/2-P-q-W-T.mainAxis:H-q-W-T.mainAxis,V=A?-_[C]/2+P+q+F+T.mainAxis:D+q+F+T.mainAxis,K=t.elements.arrow&&getOffsetParent(t.elements.arrow),Y=K?"y"===L?K.clientTop||0:K.clientLeft||0:0,z=null!=(N=null==I?void 0:I[L])?N:0,X=R+V-z,Q=within(p?min(M,R+U-z-Y):M,R,p?max($,X):$);v[L]=Q,O[L]=Q-R}if(s){var J,Z="x"===L?top:left,ee="x"===L?bottom:right,te=v[E],ne="y"===E?"height":"width",oe=te+m[Z],re=te-m[ee],ae=-1!==[top,left].indexOf(y),ie=null!=(J=null==I?void 0:I[E])?J:0,se=ae?oe:te-_[ne]-j[ne]-ie+T.altAxis,le=ae?te+_[ne]+j[ne]-ie-T.altAxis:re,ce=p&&ae?withinMaxClamp(se,te,le):within(p?se:oe,te,p?le:re);v[E]=ce,O[E]=ce-te}t.modifiersData[o]=O}}var preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function getNodeScroll(e){return e!==getWindow(e)&&isHTMLElement(e)?getHTMLElementScroll(e):getWindowScroll(e)}function isElementScaled(e){var t=e.getBoundingClientRect(),n=round(t.width)/e.offsetWidth||1,o=round(t.height)/e.offsetHeight||1;return 1!==n||1!==o}function getCompositeRect(e,t,n){void 0===n&&(n=!1);var o=isHTMLElement(t),r=isHTMLElement(t)&&isElementScaled(t),a=getDocumentElement(t),i=getBoundingClientRect(e,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&(("body"!==getNodeName(t)||isScrollParent(a))&&(s=getNodeScroll(t)),isHTMLElement(t)?((l=getBoundingClientRect(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=getWindowScrollBarX(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function order(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}function orderModifiers(e){var t=order(e);return modifierPhases.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}function debounce$1(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function mergeByName(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function popperGenerator(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,r=t.defaultOptions,a=void 0===r?DEFAULT_OPTIONS:r;return function(e,t,n){void 0===n&&(n=a);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},i=[],s=!1,l={state:r,setOptions:function(n){var s="function"==typeof n?n(r.options):n;c(),r.options=Object.assign({},a,r.options,s),r.scrollParents={reference:isElement$1(e)?listScrollParents(e):e.contextElement?listScrollParents(e.contextElement):[],popper:listScrollParents(t)};var d=orderModifiers(mergeByName([].concat(o,r.options.modifiers)));return r.orderedModifiers=d.filter((function(e){return e.enabled})),r.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,a=e.effect;if("function"==typeof a){var s=a({state:r,name:t,instance:l,options:o}),c=function(){};i.push(s||c)}})),l.update()},forceUpdate:function(){if(!s){var e=r.elements,t=e.reference,n=e.popper;if(areValidElements(t,n)){r.rects={reference:getCompositeRect(t,getOffsetParent(n),"fixed"===r.options.strategy),popper:getLayoutRect(n)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((function(e){return r.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<r.orderedModifiers.length;o++)if(!0!==r.reset){var a=r.orderedModifiers[o],i=a.fn,c=a.options,d=void 0===c?{}:c,u=a.name;"function"==typeof i&&(r=i({state:r,options:d,name:u,instance:l})||r)}else r.reset=!1,o=-1}}},update:debounce$1((function(){return new Promise((function(e){l.forceUpdate(),e(r)}))})),destroy:function(){c(),s=!0}};if(!areValidElements(e,t))return l;function c(){i.forEach((function(e){return e()})),i=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers:defaultModifiers}),BOX_CLASS="tippy-box",CONTENT_CLASS="tippy-content",BACKDROP_CLASS="tippy-backdrop",ARROW_CLASS="tippy-arrow",SVG_ARROW_CLASS="tippy-svg-arrow",TOUCH_OPTIONS={passive:!0,capture:!0},TIPPY_DEFAULT_APPEND_TO=function(){return document.body};function getValueAtIndexOrReturn(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}return e}function isType(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function invokeWithArgsOrReturn(e,t){return"function"==typeof e?e.apply(void 0,t):e}function debounce(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function splitBySpaces(e){return e.split(/\s+/).filter(Boolean)}function normalizeToArray(e){return[].concat(e)}function pushIfUnique(e,t){-1===e.indexOf(t)&&e.push(t)}function unique(e){return e.filter((function(t,n){return e.indexOf(t)===n}))}function getBasePlacement(e){return e.split("-")[0]}function arrayFrom(e){return[].slice.call(e)}function removeUndefinedProps(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function div(){return document.createElement("div")}function isElement(e){return["Element","Fragment"].some((function(t){return isType(e,t)}))}function isNodeList(e){return isType(e,"NodeList")}function isMouseEvent(e){return isType(e,"MouseEvent")}function isReferenceElement(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function getArrayOfElements(e){return isElement(e)?[e]:isNodeList(e)?arrayFrom(e):Array.isArray(e)?e:arrayFrom(document.querySelectorAll(e))}function setTransitionDuration(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function setVisibilityState(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function getOwnerDocument(e){var t,n=normalizeToArray(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function isCursorOutsideInteractiveBorder(e,t){var n=t.clientX,o=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,a=e.props.interactiveBorder,i=getBasePlacement(r.placement),s=r.modifiersData.offset;if(!s)return!0;var l="bottom"===i?s.top.y:0,c="top"===i?s.bottom.y:0,d="right"===i?s.left.x:0,u="left"===i?s.right.x:0,f=t.top-o+l>a,p=o-t.bottom-c>a,g=t.left-n+d>a,h=n-t.right-u>a;return f||p||g||h}))}function updateTransitionEndListener(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[o](t,n)}))}function actualContains(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var currentInput={isTouch:!1},lastMouseMoveTime=0;function onDocumentTouchStart(){currentInput.isTouch||(currentInput.isTouch=!0,window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var e=performance.now();e-lastMouseMoveTime<20&&(currentInput.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove)),lastMouseMoveTime=e}function onWindowBlur(){var e=document.activeElement;if(isReferenceElement(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function bindGlobalEventListeners(){document.addEventListener("touchstart",onDocumentTouchStart,TOUCH_OPTIONS),window.addEventListener("blur",onWindowBlur)}var isBrowser="undefined"!=typeof window&&"undefined"!=typeof document,isIE11=!!isBrowser&&!!window.msCrypto,pluginProps={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},renderProps={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},defaultProps=Object.assign({appendTo:TIPPY_DEFAULT_APPEND_TO,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},pluginProps,renderProps),defaultKeys=Object.keys(defaultProps),setDefaultProps=function(e){Object.keys(e).forEach((function(t){defaultProps[t]=e[t]}))};function getExtendedPassedProps(e){var t=(e.plugins||[]).reduce((function(t,n){var o,r=n.name,a=n.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(o=defaultProps[r])?o:a);return t}),{});return Object.assign({},e,t)}function getDataAttributeProps(e,t){return(t?Object.keys(getExtendedPassedProps(Object.assign({},defaultProps,{plugins:t}))):defaultKeys).reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t}),{})}function evaluateProps(e,t){var n=Object.assign({},t,{content:invokeWithArgsOrReturn(t.content,[e])},t.ignoreAttributes?{}:getDataAttributeProps(e,t.plugins));return n.aria=Object.assign({},defaultProps.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var innerHTML=function(){return"innerHTML"};function dangerouslySetInnerHTML(e,t){e[innerHTML()]=t}function createArrowElement(e){var t=div();return!0===e?t.className=ARROW_CLASS:(t.className=SVG_ARROW_CLASS,isElement(e)?t.appendChild(e):dangerouslySetInnerHTML(t,e)),t}function setContent(e,t){isElement(t.content)?(dangerouslySetInnerHTML(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?dangerouslySetInnerHTML(e,t.content):e.textContent=t.content)}function getChildren(e){var t=e.firstElementChild,n=arrayFrom(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(CONTENT_CLASS)})),arrow:n.find((function(e){return e.classList.contains(ARROW_CLASS)||e.classList.contains(SVG_ARROW_CLASS)})),backdrop:n.find((function(e){return e.classList.contains(BACKDROP_CLASS)}))}}function render(e){var t=div(),n=div();n.className=BOX_CLASS,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=div();function r(n,o){var r=getChildren(t),a=r.box,i=r.content,s=r.arrow;o.theme?a.setAttribute("data-theme",o.theme):a.removeAttribute("data-theme"),"string"==typeof o.animation?a.setAttribute("data-animation",o.animation):a.removeAttribute("data-animation"),o.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?a.setAttribute("role",o.role):a.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||setContent(i,e.props),o.arrow?s?n.arrow!==o.arrow&&(a.removeChild(s),a.appendChild(createArrowElement(o.arrow))):a.appendChild(createArrowElement(o.arrow)):s&&a.removeChild(s)}return o.className=CONTENT_CLASS,o.setAttribute("data-state","hidden"),setContent(o,e.props),t.appendChild(n),n.appendChild(o),r(e.props,e.props),{popper:t,onUpdate:r}}render.$$tippy=!0;var idCounter=1,mouseMoveListeners=[],mountedInstances=[];function createTippy(e,t){var n,o,r,a,i,s,l,c=evaluateProps(e,Object.assign({},defaultProps,getExtendedPassedProps(removeUndefinedProps(t)))),d=!1,u=!1,f=!1,p=!1,g=[],h=debounce(V,c.interactiveDebounce),m=idCounter++,y=unique(c.plugins),b={id:m,reference:e,popper:div(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(t){if(b.state.isDestroyed)return;C("onBeforeUpdate",[b,t]),q();var n=b.props,o=evaluateProps(e,Object.assign({},n,removeUndefinedProps(t),{ignoreAttributes:!0}));b.props=o,F(),n.interactiveDebounce!==o.interactiveDebounce&&($(),h=debounce(V,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?normalizeToArray(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded");M(),x(),E&&E(n,o);b.popperInstance&&(X(),J().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));C("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,o=currentInput.isTouch&&!b.props.touch,r=getValueAtIndexOrReturn(b.props.duration,0,defaultProps.duration);if(e||t||n||o)return;if(I().hasAttribute("disabled"))return;if(C("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,T()&&(L.style.visibility="visible");x(),k(),b.state.isMounted||(L.style.transition="none");if(T()){var a=N(),i=a.box,l=a.content;setTransitionDuration([i,l],0)}s=function(){var e;if(b.state.isVisible&&!p){if(p=!0,L.offsetHeight,L.style.transition=b.props.moveTransition,T()&&b.props.animation){var t=N(),n=t.box,o=t.content;setTransitionDuration([n,o],r),setVisibilityState([n,o],"visible")}R(),M(),pushIfUnique(mountedInstances,b),null==(e=b.popperInstance)||e.forceUpdate(),C("onMount",[b]),b.props.animation&&T()&&function(e,t){G(e,t)}(r,(function(){b.state.isShown=!0,C("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=I();e=b.props.interactive&&t===TIPPY_DEFAULT_APPEND_TO||"parent"===t?n.parentNode:invokeWithArgsOrReturn(t,[n]);e.contains(L)||e.appendChild(L);b.state.isMounted=!0,X()}()},hide:function(){var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,o=getValueAtIndexOrReturn(b.props.duration,1,defaultProps.duration);if(e||t||n)return;if(C("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,p=!1,d=!1,T()&&(L.style.visibility="hidden");if($(),B(),x(!0),T()){var r=N(),a=r.box,i=r.content;b.props.animation&&(setTransitionDuration([a,i],o),setVisibilityState([a,i],"hidden"))}R(),M(),b.props.animation?T()&&function(e,t){G(e,(function(){!b.state.isVisible&&L.parentNode&&L.parentNode.contains(L)&&t()}))}(o,b.unmount):b.unmount()},hideWithInteractivity:function(e){O().addEventListener("mousemove",h),pushIfUnique(mouseMoveListeners,h),h(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide();if(!b.state.isMounted)return;Q(),J().forEach((function(e){e._tippy.unmount()})),L.parentNode&&L.parentNode.removeChild(L);mountedInstances=mountedInstances.filter((function(e){return e!==b})),b.state.isMounted=!1,C("onHidden",[b])},destroy:function(){if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),q(),delete e._tippy,b.state.isDestroyed=!0,C("onDestroy",[b])}};if(!c.render)return b;var A=c.render(b),L=A.popper,E=A.onUpdate;L.setAttribute("data-tippy-root",""),L.id="tippy-"+b.id,b.popper=L,e._tippy=b,L._tippy=b;var v=y.map((function(e){return e.fn(b)})),_=e.hasAttribute("aria-expanded");return F(),M(),x(),C("onCreate",[b]),c.showOnCreate&&Z(),L.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),L.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&O().addEventListener("mousemove",h)})),b;function j(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function S(){return"hold"===j()[0]}function T(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function I(){return l||e}function O(){var e=I().parentNode;return e?getOwnerDocument(e):document}function N(){return getChildren(L)}function w(e){return b.state.isMounted&&!b.state.isVisible||currentInput.isTouch||a&&"focus"===a.type?0:getValueAtIndexOrReturn(b.props.delay,e?0:1,defaultProps.delay)}function x(e){void 0===e&&(e=!1),L.style.pointerEvents=b.props.interactive&&!e?"":"none",L.style.zIndex=""+b.props.zIndex}function C(e,t,n){var o;(void 0===n&&(n=!0),v.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(o=b.props)[e].apply(o,t)}function R(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,o=L.id;normalizeToArray(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var r=t&&t.replace(o,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function M(){!_&&b.props.aria.expanded&&normalizeToArray(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===I()?"true":"false"):e.removeAttribute("aria-expanded")}))}function $(){O().removeEventListener("mousemove",h),mouseMoveListeners=mouseMoveListeners.filter((function(e){return e!==h}))}function P(t){if(!currentInput.isTouch||!f&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!actualContains(L,n)){if(normalizeToArray(b.props.triggerTarget||e).some((function(e){return actualContains(e,n)}))){if(currentInput.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else C("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),u=!0,setTimeout((function(){u=!1})),b.state.isMounted||B())}}}function H(){f=!0}function D(){f=!1}function k(){var e=O();e.addEventListener("mousedown",P,!0),e.addEventListener("touchend",P,TOUCH_OPTIONS),e.addEventListener("touchstart",D,TOUCH_OPTIONS),e.addEventListener("touchmove",H,TOUCH_OPTIONS)}function B(){var e=O();e.removeEventListener("mousedown",P,!0),e.removeEventListener("touchend",P,TOUCH_OPTIONS),e.removeEventListener("touchstart",D,TOUCH_OPTIONS),e.removeEventListener("touchmove",H,TOUCH_OPTIONS)}function G(e,t){var n=N().box;function o(e){e.target===n&&(updateTransitionEndListener(n,"remove",o),t())}if(0===e)return t();updateTransitionEndListener(n,"remove",i),updateTransitionEndListener(n,"add",o),i=o}function W(t,n,o){void 0===o&&(o=!1),normalizeToArray(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,o),g.push({node:e,eventType:t,handler:n,options:o})}))}function F(){S()&&(W("touchstart",U,{passive:!0}),W("touchend",K,{passive:!0})),splitBySpaces(b.props.trigger).forEach((function(e){if("manual"!==e)switch(W(e,U),e){case"mouseenter":W("mouseleave",K);break;case"focus":W(isIE11?"focusout":"blur",Y);break;case"focusin":W("focusout",Y)}}))}function q(){g.forEach((function(e){var t=e.node,n=e.eventType,o=e.handler,r=e.options;t.removeEventListener(n,o,r)})),g=[]}function U(e){var t,n=!1;if(b.state.isEnabled&&!z(e)&&!u){var o="focus"===(null==(t=a)?void 0:t.type);a=e,l=e.currentTarget,M(),!b.state.isVisible&&isMouseEvent(e)&&mouseMoveListeners.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:Z(e),"click"===e.type&&(d=!n),n&&!o&&ee(e)}}function V(e){var t=e.target,n=I().contains(t)||L.contains(t);"mousemove"===e.type&&n||isCursorOutsideInteractiveBorder(J().concat(L).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null})).filter(Boolean),e)&&($(),ee(e))}function K(e){z(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):ee(e))}function Y(e){b.props.trigger.indexOf("focusin")<0&&e.target!==I()||b.props.interactive&&e.relatedTarget&&L.contains(e.relatedTarget)||ee(e)}function z(e){return!!currentInput.isTouch&&S()!==e.type.indexOf("touch")>=0}function X(){Q();var t=b.props,n=t.popperOptions,o=t.placement,r=t.offset,a=t.getReferenceClientRect,i=t.moveTransition,l=T()?getChildren(L).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||I()}:e,d=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!i}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(T()){var n=N().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];T()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),b.popperInstance=createPopper(c,L,Object.assign({},n,{placement:o,onFirstUpdate:s,modifiers:d}))}function Q(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function J(){return arrayFrom(L.querySelectorAll("[data-tippy-root]"))}function Z(e){b.clearDelayTimeouts(),e&&C("onTrigger",[b,e]),k();var t=w(!0),o=j(),r=o[0],a=o[1];currentInput.isTouch&&"hold"===r&&a&&(t=a),t?n=setTimeout((function(){b.show()}),t):b.show()}function ee(e){if(b.clearDelayTimeouts(),C("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=w(!1);t?o=setTimeout((function(){b.state.isVisible&&b.hide()}),t):r=requestAnimationFrame((function(){b.hide()}))}}else B()}}function tippy(e,t){void 0===t&&(t={});var n=defaultProps.plugins.concat(t.plugins||[]);bindGlobalEventListeners();var o=Object.assign({},t,{plugins:n}),r=getArrayOfElements(e).reduce((function(e,t){var n=t&&createTippy(t,o);return n&&e.push(n),e}),[]);return isElement(e)?r[0]:r}tippy.defaultProps=defaultProps,tippy.setDefaultProps=setDefaultProps,tippy.currentInput=currentInput,Object.assign({},applyStyles$1,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),tippy.setDefaultProps({render:render});const isElementHidden=e=>{if(e.getAttribute("hidden")||0===e.offsetWidth&&0===e.offsetHeight)return!0;return"none"===getComputedStyle(e).getPropertyValue("display")},escapeHTML=e=>{const t=document.createElement("div");return t.textContent=e,t.innerHTML.replaceAll('"',"&quot;").replaceAll("'","&#039;").replaceAll("`","&#x60;")},Lang={langStrings:{},addI18n:function(e){this.langStrings=e},_:function(e){return this.translate(e)},sprintf:function(e,...t){let n=this._(e);return t&&t.length&&t.forEach((e=>{n=n.replace(/%\([a-zA-z]+\)/,e)})),n},translate:function(e){return this.langStrings[e]||e}},defaultOptions={langCode:"en",checkRoot:"main",readabilityRoot:"main",readabilityLang:"en",containerIgnore:".jooa11y-ignore",outlineIgnore:"",headerIgnore:"",imageIgnore:"",linkIgnore:"",linkIgnoreSpan:"noscript, span.sr-only-example",linksToFlag:"",videoContent:"video, [src*='youtube.com'], [src*='vimeo.com'], [src*='yuja.com'], [src*='panopto.com']",audioContent:"audio, [src*='soundcloud.com'], [src*='simplecast.com'], [src*='podbean.com'], [src*='buzzsprout.com'], [src*='blubrry.com'], [src*='transistor.fm'], [src*='fusebox.fm'], [src*='libsyn.com']",embeddedContent:"",suspiciousAltWords:["image","graphic","picture","photo"],placeholderAltStopWords:["alt","image","photo","decorative","photo","placeholder","placeholder image","spacer","."],partialAltStopWords:["click","click here","click here for more","click here to learn more","click here to learn more.","check out","download","download here","download here.","find out","find out more","find out more.","form","here","here.","info","information","link","learn","learn more","learn more.","learn to","more","page","paper","read more","read","read this","this","this page","this page.","this website","this website.","view","view our","website","."],warningAltWords:["< "," >","click here"],newWindowPhrases:["external","new tab","new window","pop-up","pop up"],fileTypePhrases:["document","pdf","doc","docx","word","mp3","ppt","text","pptx","powerpoint","txt","exe","dmg","rtf","install","windows","macos","spreadsheet","worksheet","csv","xls","xlsx","video","mp4","mov","avi"]};defaultOptions.embeddedContent=`$defaultOptions.videoContent}, $defaultOptions.audioContent}`;const loadOptions=(e,t)=>{const n=t?Object.assign(defaultOptions,t):defaultOptions;if(["langCode","checkRoot"].forEach((e=>{if(!n[e])throw new Error(`Option [$e}] is required`)})),n.readabilityRoot||(n.readabilityRoot=n.checkRoot),n.containerIgnore){let e=n.containerIgnore.split(",").map((e=>`$e} *, $e}`));n.containerIgnore='[aria-hidden="true"], #jooa11y-container *, .jooa11y-instance *, '+e.join(", ")}else n.containerIgnore='[aria-hidden="true"], #jooa11y-container *, .jooa11y-instance *';return e.containerIgnore=n.containerIgnore,e.imageIgnore=e.containerIgnore+', [role="presentation"], [src^="https://trck.youvisit.com"]',n.imageIgnore&&(e.imageIgnore=n.imageIgnore+","+e.imageIgnore),e.headerIgnore=n.containerIgnore,n.headerIgnore&&(e.headerIgnore=n.headerIgnore+","+e.headerIgnore),e.linkIgnore=e.containerIgnore+', [aria-hidden="true"], .anchorjs-link',n.linkIgnore&&(e.linkIgnore=n.linkIgnore+","+e.linkIgnore),n};class Jooa11y{constructor(e){this.checkAll=async()=>{this.errorCount=0,this.warningCount=0,this.$root=document.querySelector(this.options.checkRoot),this.findElements(),this.checkHeaders(),this.checkLinkText(),this.checkUnderline(),this.checkAltText(),"On"===localStorage.getItem("jooa11y-remember-contrast")&&this.checkContrast(),"On"===localStorage.getItem("jooa11y-remember-labels")&&this.checkLabels(),"On"===localStorage.getItem("jooa11y-remember-links-advanced")&&this.checkLinksAdvanced(),"On"===localStorage.getItem("jooa11y-remember-readability")&&this.checkReadability(),this.checkEmbeddedContent(),this.checkQA(),this.panelActive?this.resetAll():this.updatePanel(),this.initializeTooltips(),this.detectOverflow(),this.nudge(),document.getElementsByClassName("jooa11y-on").length||this.updateBadge()},this.nudge=()=>{document.querySelectorAll(".jooa11y-instance, .jooa11y-instance-inline").forEach((e=>{const t=e.nextElementSibling;null!==t&&(t.classList.contains("jooa11y-instance")||t.classList.contains("jooa11y-instance-inline"))&&t.querySelector("button").setAttribute("style","margin: -10px -20px !important;")}))},this.buildPanel=()=>{const e=document.getElementById("jooa11y-outline-toggle"),t=document.getElementById("jooa11y-outline-panel"),n=document.getElementById("jooa11y-outline-list"),o=document.getElementById("jooa11y-settings-toggle"),r=document.getElementById("jooa11y-settings-panel"),a=document.getElementById("jooa11y-settings-content"),i=document.querySelectorAll(".jooa11y-heading-label");e.addEventListener("click",(()=>{"true"===e.getAttribute("aria-expanded")?(e.classList.remove("jooa11y-outline-active"),t.classList.remove("jooa11y-active"),e.textContent=Lang._("SHOW_OUTLINE"),e.setAttribute("aria-expanded","false"),localStorage.setItem("jooa11y-remember-outline","Closed")):(e.classList.add("jooa11y-outline-active"),t.classList.add("jooa11y-active"),e.textContent=Lang._("HIDE_OUTLINE"),e.setAttribute("aria-expanded","true"),localStorage.setItem("jooa11y-remember-outline","Opened")),document.querySelector("#jooa11y-outline-header > h2").focus(),i.forEach((e=>e.classList.toggle("jooa11y-label-visible"))),r.classList.remove("jooa11y-active"),o.classList.remove("jooa11y-settings-active"),o.setAttribute("aria-expanded","false"),o.textContent=Lang._("SHOW_SETTINGS"),n.clientHeight>250&&n.setAttribute("tabindex","0")})),"Opened"===localStorage.getItem("jooa11y-remember-outline")&&(e.classList.add("jooa11y-outline-active"),t.classList.add("jooa11y-active"),e.textContent=Lang._("HIDE_OUTLINE"),e.setAttribute("aria-expanded","true"),i.forEach((e=>e.classList.toggle("jooa11y-label-visible"))),n.clientHeight>250&&n.setAttribute("tabindex","0")),o.addEventListener("click",(()=>{"true"===o.getAttribute("aria-expanded")?(o.classList.remove("jooa11y-settings-active"),r.classList.remove("jooa11y-active"),o.textContent=Lang._("SHOW_SETTINGS"),o.setAttribute("aria-expanded","false")):(o.classList.add("jooa11y-settings-active"),r.classList.add("jooa11y-active"),o.textContent=Lang._("HIDE_SETTINGS"),o.setAttribute("aria-expanded","true")),document.querySelector("#jooa11y-settings-header > h2").focus(),t.classList.remove("jooa11y-active"),e.classList.remove("jooa11y-outline-active"),e.setAttribute("aria-expanded","false"),e.textContent=Lang._("SHOW_OUTLINE"),i.forEach((e=>e.classList.remove("jooa11y-label-visible"))),localStorage.setItem("jooa11y-remember-outline","Closed"),a.clientHeight>350&&a.setAttribute("tabindex","0")})),document.getElementById("jooa11y-panel-controls").addEventListener("keydown",(function(e){const t=document.querySelectorAll("#jooa11y-outline-toggle[role=tab], #jooa11y-settings-toggle[role=tab]");if("ArrowRight"===e.key)for(let n=0;n<t.length;n++)if("true"===t[n].getAttribute("aria-expanded")||"false"===t[n].getAttribute("aria-expanded")){t[n+1].focus(),e.preventDefault();break}if("ArrowDown"===e.key)for(let n=0;n<t.length;n++)if("true"===t[n].getAttribute("aria-expanded")||"false"===t[n].getAttribute("aria-expanded")){t[n+1].focus(),e.preventDefault();break}if("ArrowLeft"===e.key)for(let n=t.length-1;n>0;n--)if("true"===t[n].getAttribute("aria-expanded")||"false"===t[n].getAttribute("aria-expanded")){t[n-1].focus(),e.preventDefault();break}if("ArrowUp"===e.key)for(let n=t.length-1;n>0;n--)if("true"===t[n].getAttribute("aria-expanded")||"false"===t[n].getAttribute("aria-expanded")){t[n-1].focus(),e.preventDefault();break}}));const s=document.getElementById("jooa11y-close-alert"),l=document.getElementById("jooa11y-panel-alert"),c=document.getElementById("jooa11y-panel-alert-text"),d=document.getElementById("jooa11y-cycle-toggle");s.addEventListener("click",(()=>{for(l.classList.remove("jooa11y-active");c.firstChild;)c.removeChild(c.firstChild);document.querySelectorAll(".jooa11y-pulse-border").forEach((e=>e.classList.remove("jooa11y-pulse-border"))),d.focus()}))},this.skipToIssue=()=>{let e=0;const t=document.querySelectorAll(".jooa11y-btn").length;document.addEventListener("keyup",(e=>{(e.altKey&&"Period"===e.code||"KeyS"==e.code)&&(n(),e.preventDefault())}));document.getElementById("jooa11y-cycle-toggle").addEventListener("click",(e=>{n(),e.preventDefault()}));const n=function(){const n=document.querySelectorAll(".jooa11y-btn"),o=document.getElementById("jooa11y-panel-alert"),r=document.getElementById("jooa11y-panel-alert-text"),a=document.getElementById("jooa11y-panel-alert-preview"),i=(e,t,n)=>{for(;null!==e;){if(window.getComputedStyle(e).getPropertyValue(t)===n)return e;e=e.parentElement}return null},s=e=>{let t=e.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+n}};let l,c=n[e].offsetTop;if(0===c){let t=i(n[e],"display","none");l=s(t.previousElementSibling).top-50}else l=s(n[e]).top-50;c>=0?(setTimeout((function(){window.scrollTo({top:l,behavior:"smooth"})}),1),n.forEach((function(e){const t=i(e,"display","none");if(null!==t){t.previousElementSibling.classList.add("jooa11y-pulse-border")}})),n[e].focus()):n[e].focus(),0===c?(o.classList.add("jooa11y-active"),r.textContent=`$Lang._("PANEL_STATUS_HIDDEN")}`,a.innerHTML=n[e].getAttribute("data-tippy-content")):c<1&&(o.classList.remove("jooa11y-active"),document.querySelectorAll(".jooa11y-pulse-border").forEach((e=>e.classList.remove("jooa11y-pulse-border")))),e+=1,e>=t&&(e=0)}},this.containerIgnore="",this.imageIgnore="",this.headerIgnore="",this.linkIgnore="",this.options=loadOptions(this,e);const t=document.createElement("div");t.setAttribute("id","jooa11y-container"),t.setAttribute("role","region"),t.setAttribute("lang",this.options.langCode),t.setAttribute("aria-label",Lang._("CONTAINER_LABEL"));let n="On"===localStorage.getItem("jooa11y-remember-contrast"),o="On"===localStorage.getItem("jooa11y-remember-labels"),r="On"===localStorage.getItem("jooa11y-remember-links-advanced"),a="On"===localStorage.getItem("jooa11y-remember-readability");t.innerHTML=`<button type="button" aria-expanded="false" id="jooa11y-toggle" aria-describedby="jooa11y-notification-badge" aria-label="$Lang._("MAIN_TOGGLE_LABEL")}">\n                    <svg role='img' focusable='false' width='35px' height='35px' aria-hidden='true' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='#ffffff' d='M256 48c114.953 0 208 93.029 208 208 0 114.953-93.029 208-208 208-114.953 0-208-93.029-208-208 0-114.953 93.029-208 208-208m0-40C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 56C149.961 64 64 149.961 64 256s85.961 192 192 192 192-85.961 192-192S362.039 64 256 64zm0 44c19.882 0 36 16.118 36 36s-16.118 36-36 36-36-16.118-36-36 16.118-36 36-36zm117.741 98.023c-28.712 6.779-55.511 12.748-82.14 15.807.851 101.023 12.306 123.052 25.037 155.621 3.617 9.26-.957 19.698-10.217 23.315-9.261 3.617-19.699-.957-23.316-10.217-8.705-22.308-17.086-40.636-22.261-78.549h-9.686c-5.167 37.851-13.534 56.208-22.262 78.549-3.615 9.255-14.05 13.836-23.315 10.217-9.26-3.617-13.834-14.056-10.217-23.315 12.713-32.541 24.185-54.541 25.037-155.621-26.629-3.058-53.428-9.027-82.141-15.807-8.6-2.031-13.926-10.648-11.895-19.249s10.647-13.926 19.249-11.895c96.686 22.829 124.283 22.783 220.775 0 8.599-2.03 17.218 3.294 19.249 11.895 2.029 8.601-3.297 17.219-11.897 19.249z'/></svg>\n                    <div id="jooa11y-notification-badge">\n                        <span id="jooa11y-notification-count"></span>\n                    </div>\n                </button><div id="jooa11y-panel"><div id="jooa11y-outline-panel" role="tabpanel" aria-labelledby="jooa11y-outline-header">\n                <div id="jooa11y-outline-header" class="jooa11y-header-text">\n                    <h2 tabindex="-1">$Lang._("PAGE_OUTLINE")}</h2>\n                </div>\n                <div id="jooa11y-outline-content">\n                    <ul id="jooa11y-outline-list"></ul>\n                </div><div id="jooa11y-readability-panel">\n                    <div id="jooa11y-readability-content">\n                        <h2 class="jooa11y-header-text-inline">$Lang._("READABILITY")}</h2>\n                        <p id="jooa11y-readability-info"></p>\n                        <ul id="jooa11y-readability-details"></ul>\n                    </div>\n                </div>\n            </div><div id="jooa11y-settings-panel" role="tabpanel" aria-labelledby="jooa11y-settings-header">\n                <div id="jooa11y-settings-header" class="jooa11y-header-text">\n                    <h2 tabindex="-1">$Lang._("SETTINGS")}</h2>\n                </div>\n                <div id="jooa11y-settings-content">\n                    <ul id="jooa11y-settings-options">\n                        <li>\n                            <label id="check-contrast" for="jooa11y-contrast-toggle">$Lang._("CONTRAST")}</label>\n                            <button id="jooa11y-contrast-toggle"\n                            aria-labelledby="check-contrast"\n                            class="jooa11y-settings-switch"\n                            aria-pressed="$n?"true":"false"}">$n?Lang._("ON"):Lang._("OFF")}</button>\n                        </li>\n                        <li>\n                            <label id="check-labels" for="jooa11y-labels-toggle">$Lang._("FORM_LABELS")}</label>\n                            <button id="jooa11y-labels-toggle" aria-labelledby="check-labels" class="jooa11y-settings-switch"\n                            aria-pressed="$o?"true":"false"}">$o?Lang._("ON"):Lang._("OFF")}</button>\n                        </li>\n                        <li>\n                            <label id="check-changerequest" for="jooa11y-links-advanced-toggle">$Lang._("LINKS_ADVANCED")}<span class="jooa11y-badge">AAA</span></label>\n                            <button id="jooa11y-links-advanced-toggle" aria-labelledby="check-changerequest" class="jooa11y-settings-switch"\n                            aria-pressed="$r?"true":"false"}">$r?Lang._("ON"):Lang._("OFF")}</button>\n                        </li>\n                        <li>\n                            <label id="check-readability" for="jooa11y-readability-toggle">$Lang._("READABILITY")}<span class="jooa11y-badge">AAA</span></label>\n                            <button id="jooa11y-readability-toggle" aria-labelledby="check-readability" class="jooa11y-settings-switch"\n                            aria-pressed="$a?"true":"false"}">$a?Lang._("ON"):Lang._("OFF")}</button>\n                        </li>\n                        <li>\n                            <label id="dark-mode" for="jooa11y-theme-toggle">$Lang._("DARK_MODE")}</label>\n                            <button id="jooa11y-theme-toggle" aria-labelledby="dark-mode" class="jooa11y-settings-switch"></button>\n                        </li>\n                    </ul>\n                </div>\n            </div><div id="jooa11y-panel-alert">\n                <div class="jooa11y-header-text">\n                    <button id="jooa11y-close-alert" class="jooa11y-close-btn" aria-label="$Lang._("ALERT_CLOSE")}" aria-describedby="jooa11y-alert-heading jooa11y-panel-alert-text"></button>\n                    <h2 id="jooa11y-alert-heading">$Lang._("ALERT_TEXT")}</h2>\n                </div>\n                <p id="jooa11y-panel-alert-text"></p>\n                <div id="jooa11y-panel-alert-preview"></div>\n            </div><div id="jooa11y-panel-content">\n                <button id="jooa11y-cycle-toggle" type="button" aria-label="$Lang._("SHORTCUT_SR")}">\n                    <div class="jooa11y-panel-icon"></div>\n                </button>\n                <div id="jooa11y-panel-text"><p id="jooa11y-status" aria-live="polite"></p></div>\n            </div><div id="jooa11y-panel-controls" role="tablist" aria-orientation="horizontal">\n                <button type="button" role="tab" aria-expanded="false" id="jooa11y-outline-toggle" aria-controls="jooa11y-outline-panel">\n                    $Lang._("SHOW_OUTLINE")}\n                </button>\n                <button type="button" role="tab" aria-expanded="false" id="jooa11y-settings-toggle" aria-controls="jooa11y-settings-panel">\n                    $Lang._("SHOW_SETTINGS")}\n                </button>\n                <div style="width:35px"></div>\n            </div></div>`,document.body.append(t),this.settingPanelToggles(),this.jooa11yMainToggle(),this.sanitizeHTMLandComputeARIA(),this.initializeJumpToIssueTooltip()}jooa11yMainToggle(){const e=document.getElementById("jooa11y-toggle");e.addEventListener("click",(t=>{"Opened"===localStorage.getItem("jooa11y-remember-panel")?(localStorage.setItem("jooa11y-remember-panel","Closed"),e.classList.remove("jooa11y-on"),e.setAttribute("aria-expanded","false"),this.resetAll(),this.updateBadge(),t.preventDefault()):(localStorage.setItem("jooa11y-remember-panel","Opened"),e.classList.add("jooa11y-on"),e.setAttribute("aria-expanded","true"),this.checkAll(),document.getElementById("jooa11y-notification-badge").style.display="none",t.preventDefault())})),"Opened"===localStorage.getItem("jooa11y-remember-panel")&&(e.classList.add("jooa11y-on"),e.setAttribute("aria-expanded","true")),e.classList.contains("jooa11y-on")&&(e.classList.toggle("loading-jooa11y"),e.setAttribute("aria-expanded","true"),setTimeout(this.checkAll,800)),document.onkeydown=t=>{if(("key"in(t=t||window.event)?"Escape"===t.key||"Esc"===t.key:27===t.keyCode)&&document.getElementById("jooa11y-panel").classList.contains("jooa11y-active")&&(e.setAttribute("aria-expanded","false"),e.classList.remove("jooa11y-on"),e.click(),this.resetAll()),t.altKey&&"KeyA"==t.code){const e=document.getElementById("jooa11y-toggle");e.click(),e.focus(),t.preventDefault()}}}sanitizeHTMLandComputeARIA(){this.computeTextNodeWithImage=function(e){const t=Array.from(e.querySelectorAll("img"));let n="";if(0===t.length&&e.textContent.trim().length>1)n=e.textContent.trim();else if(t.length&&0===e.textContent.trim().length){let e=t[0].getAttribute("alt");e&&" "!==e?void 0!==e&&(n=e):n=" "}else t.length&&e.textContent.trim().length&&(t.forEach((e=>{e.insertAdjacentHTML("afterend"," <span class='jooa11y-clone-image-text' aria-hidden='true'>"+t[0].getAttribute("alt")+"</span> ")})),n=e.textContent.trim());return n},this.computeAriaLabel=function(e){if(e.matches("[aria-label]"))return e.getAttribute("aria-label");if(e.matches("[aria-labelledby]")){let t=e.getAttribute("aria-labelledby").split(/\s+/);if(t.length>0){let e="";return t.forEach((t=>{null===document.querySelector("#"+t)?e+=" ":e+=document.querySelector("#"+t).firstChild.nodeValue+" "})),e}return""}if(Array.from(e.children).filter((e=>e.matches("[aria-label]"))).length>0)return Array.from(e.children)[0].getAttribute("aria-label");if(Array.from(e.children).filter((e=>e.matches("[title]"))).length>0)return Array.from(e.children)[0].getAttribute("title");if(Array.from(e.children).filter((e=>e.matches("[aria-labelledby]"))).length>0){let t=Array.from(e.children)[0].getAttribute("aria-labelledby").split(/\s+/);if(t.length>0){let e="";return t.forEach((t=>{null===document.querySelector("#"+t)?e+=" ":e+=document.querySelector("#"+t).firstChild.nodeValue+" "})),e}return""}return"noAria"}}settingPanelToggles(){const e=document.getElementById("jooa11y-contrast-toggle");e.onclick=async()=>{"On"===localStorage.getItem("jooa11y-remember-contrast")?(localStorage.setItem("jooa11y-remember-contrast","Off"),e.textContent=Lang._("OFF"),e.setAttribute("aria-pressed","false"),this.resetAll(!1),await this.checkAll()):(localStorage.setItem("jooa11y-remember-contrast","On"),e.textContent=Lang._("ON"),e.setAttribute("aria-pressed","true"),this.resetAll(!1),await this.checkAll())};const t=document.getElementById("jooa11y-labels-toggle");t.onclick=async()=>{"On"===localStorage.getItem("jooa11y-remember-labels")?(localStorage.setItem("jooa11y-remember-labels","Off"),t.textContent=Lang._("OFF"),t.setAttribute("aria-pressed","false"),this.resetAll(!1),await this.checkAll()):(localStorage.setItem("jooa11y-remember-labels","On"),t.textContent=Lang._("ON"),t.setAttribute("aria-pressed","true"),this.resetAll(!1),await this.checkAll())};const n=document.getElementById("jooa11y-links-advanced-toggle");n.onclick=async()=>{"On"===localStorage.getItem("jooa11y-remember-links-advanced")?(localStorage.setItem("jooa11y-remember-links-advanced","Off"),n.textContent=Lang._("OFF"),n.setAttribute("aria-pressed","false"),this.resetAll(!1),await this.checkAll()):(localStorage.setItem("jooa11y-remember-links-advanced","On"),n.textContent=Lang._("ON"),n.setAttribute("aria-pressed","true"),this.resetAll(!1),await this.checkAll())};const o=document.getElementById("jooa11y-readability-toggle");o.onclick=async()=>{"On"===localStorage.getItem("jooa11y-remember-readability")?(localStorage.setItem("jooa11y-remember-readability","Off"),o.textContent=Lang._("OFF"),o.setAttribute("aria-pressed","false"),document.getElementById("jooa11y-readability-panel").classList.remove("jooa11y-active"),this.resetAll(!1),await this.checkAll()):(localStorage.setItem("jooa11y-remember-readability","On"),o.textContent=Lang._("ON"),o.setAttribute("aria-pressed","true"),document.getElementById("jooa11y-readability-panel").classList.add("jooa11y-active"),this.resetAll(!1),await this.checkAll())},"On"===localStorage.getItem("jooa11y-remember-readability")&&document.getElementById("jooa11y-readability-panel").classList.add("jooa11y-active");let r=window.matchMedia("(prefers-color-scheme: dark)");const a=document.getElementById("jooa11y-theme-toggle"),i=document.querySelector("html"),s=localStorage.getItem("jooa11y-remember-theme");r.matches?(a.textContent=Lang._("ON"),a.setAttribute("aria-pressed","true")):(a.textContent=Lang._("OFF"),a.setAttribute("aria-pressed","false")),r.addEventListener("change",(function(e){e.matches?(i.setAttribute("data-jooa11y-theme","dark"),a.textContent=Lang._("ON"),a.setAttribute("aria-pressed","true"),localStorage.setItem("jooa11y-remember-theme","")):(i.setAttribute("data-jooa11y-theme","light"),a.textContent=Lang._("OFF"),a.setAttribute("aria-pressed","false"),localStorage.setItem("jooa11y-remember-theme",""))})),a.onclick=async()=>{const e=localStorage.getItem("jooa11y-remember-theme");"dark"===e?(i.setAttribute("data-jooa11y-theme","light"),localStorage.setItem("jooa11y-remember-theme","light"),a.textContent=Lang._("OFF"),a.setAttribute("aria-pressed","false")):"light"===e?(i.setAttribute("data-jooa11y-theme","dark"),localStorage.setItem("jooa11y-remember-theme","dark"),a.textContent=Lang._("ON"),a.setAttribute("aria-pressed","true")):r.matches?(i.setAttribute("data-jooa11y-theme","light"),localStorage.setItem("jooa11y-remember-theme","light"),a.textContent=Lang._("OFF"),a.setAttribute("aria-pressed","false")):(i.setAttribute("data-jooa11y-theme","dark"),localStorage.setItem("jooa11y-remember-theme","dark"),a.textContent=Lang._("OFF"),a.setAttribute("aria-pressed","true"))},"dark"===s?(i.setAttribute("data-jooa11y-theme","dark"),localStorage.setItem("jooa11y-remember-theme","dark"),a.textContent=Lang._("ON"),a.setAttribute("aria-pressed","true")):"light"===s&&(i.setAttribute("data-jooa11y-theme","light"),localStorage.setItem("jooa11y-remember-theme","light"),a.textContent=Lang._("OFF"),a.setAttribute("aria-pressed","false"))}initializeJumpToIssueTooltip(){tippy("#jooa11y-cycle-toggle",{content:`<div style="text-align:center">$Lang._("SHORTCUT_TOOLTIP")} &raquo;<br><span class="jooa11y-shortcut-icon"></span></div>`,allowHTML:!0,delay:[900,0],trigger:"mouseenter focusin",arrow:!0,placement:"top",theme:"jooa11y-theme",aria:{content:null,expanded:!1},appendTo:document.body})}doInitialCheck(){"Closed"!==localStorage.getItem("jooa11y-remember-panel")&&localStorage.getItem("jooa11y-remember-panel")||(this.panelActive=!0,this.checkAll())}resetAll(e=!0){this.panelActive=!1,this.clearEverything();const t=document.getElementById("jooa11y-outline-toggle"),n=t.cloneNode(!0);t.parentNode.replaceChild(n,t);const o=document.getElementById("jooa11y-settings-toggle"),r=o.cloneNode(!0);o.parentNode.replaceChild(r,o),document.querySelectorAll(".jooa11y-error-border").forEach((e=>e.classList.remove("jooa11y-error-border"))),document.querySelectorAll(".jooa11y-error-text").forEach((e=>e.classList.remove("jooa11y-error-text"))),document.querySelectorAll(".jooa11y-warning-border").forEach((e=>e.classList.remove("jooa11y-warning-border"))),document.querySelectorAll(".jooa11y-warning-text").forEach((e=>e.classList.remove("jooa11y-warning-text"))),document.querySelectorAll("p").forEach((e=>e.classList.remove("jooa11y-fake-list"))),document.querySelectorAll(".jooa11y-warning-uppercase").forEach((e=>e.outerHTML=e.innerHTML)),document.querySelectorAll(".jooa11y-good-border").forEach((e=>e.classList.remove("jooa11y-good-border"))),document.querySelectorAll(".jooa11y-good-text").forEach((e=>e.classList.remove("jooa11y-good-text"))),document.querySelectorAll("\n                .jooa11y-instance,\n                .jooa11y-instance-inline,\n                .jooa11y-heading-label,\n                #jooa11y-outline-list li,\n                .jooa11y-readability-period,\n                #jooa11y-readability-info span,\n                #jooa11y-readability-details li,\n                .jooa11y-clone-image-text\n            ").forEach((e=>e.parentNode.removeChild(e))),document.querySelectorAll(".jooa11y-overflow").forEach((e=>e.classList.remove("jooa11y-overflow"))),document.querySelectorAll(".jooa11y-fake-heading").forEach((e=>e.classList.remove("jooa11y-fake-heading"))),document.querySelectorAll(".jooa11y-pulse-border").forEach((e=>e.classList.remove("jooa11y-pulse-border"))),document.querySelector("#jooa11y-panel-alert").classList.remove("jooa11y-active");for(var a=document.querySelector("#jooa11y-panel-alert-text");a.firstChild;)a.removeChild(a.firstChild);for(var i=document.querySelector("#jooa11y-status");i.firstChild;)i.removeChild(i.firstChild);e&&document.querySelector("#jooa11y-panel").classList.remove("jooa11y-active")}clearEverything(){}initializeTooltips(){tippy(".jooa11y-btn",{interactive:!0,trigger:"mouseenter click focusin",arrow:!0,delay:[200,0],theme:"jooa11y-theme",placement:"bottom",allowHTML:!0,aria:{content:"describedby"},appendTo:document.body})}detectOverflow(){document.querySelectorAll(".jooa11y-btn").forEach((function(e){const t=((e,t,n)=>{for(;null!==e;){if(window.getComputedStyle(e).getPropertyValue(t)===n)return e;e=e.parentElement}return null})(e,"overflow","hidden");null!==t&&t.classList.add("jooa11y-overflow")}))}updateBadge(){let e=this.errorCount+this.warningCount;const t=document.getElementById("jooa11y-notification-badge");0===e?t.style.display="none":(t.style.display="flex",document.getElementById("jooa11y-notification-count").innerHTML=Lang.sprintf("PANEL_STATUS_ICON",e))}updatePanel(){this.panelActive=!0,this.errorCount,this.warningCount,this.buildPanel(),this.skipToIssue();const e=document.getElementById("jooa11y-cycle-toggle");e.disabled=!1,e.setAttribute("style","cursor: pointer !important;");document.getElementById("jooa11y-panel").classList.add("jooa11y-active");const t=document.getElementById("jooa11y-panel-content"),n=document.getElementById("jooa11y-status"),o=document.querySelectorAll(".jooa11y-btn");this.errorCount>0&&this.warningCount>0?(t.setAttribute("class","jooa11y-errors"),n.textContent=Lang.sprintf("PANEL_STATUS_BOTH",this.errorCount,this.warningCount)):this.errorCount>0?(t.setAttribute("class","jooa11y-errors"),n.textContent=Lang.sprintf("PANEL_STATUS_ERRORS",this.errorCount)):this.warningCount>0?(t.setAttribute("class","jooa11y-warnings"),n.textContent=Lang.sprintf("PANEL_STATUS_WARNINGS",this.warningCount)):(t.setAttribute("class","jooa11y-good"),n.textContent=Lang._("PANEL_STATUS_NONE"),0===o.length&&(e.disabled=!0,e.setAttribute("style","cursor: default !important;")))}findElements(){const e=Array.from(this.$root.querySelectorAll("h1, h2, h3, h4, h5, h6, [role='heading'][aria-level]")),t=Array.from(this.$root.querySelectorAll("p"));this.$containerExclusions=Array.from(document.querySelectorAll(this.containerIgnore)),this.$h=e.filter((e=>!this.$containerExclusions.includes(e))),this.$p=t.filter((e=>!this.$containerExclusions.includes(e)))}checkHeaders(){let e;this.$h.forEach(((t,n)=>{let o,r=this.computeTextNodeWithImage(t),a=escapeHTML(r);o=t.getAttribute("aria-level")?+t.getAttribute("aria-level"):+t.tagName.slice(1);let i=t.textContent.trim().length,s=null,l=null;if(o-e>1&&0!==n)s=Lang.sprintf("HEADING_NON_CONSECUTIVE_LEVEL",e,o);else if(0===t.textContent.trim().length)if(t.querySelectorAll("img").length){const e=t.querySelector("img").getAttribute("alt");void 0!==e&&" "!==e&&""!==e||(s=Lang.sprintf("HEADING_EMPTY_WITH_IMAGE",o),t.classList.add("jooa11y-error-text"))}else s=Lang.sprintf("HEADING_EMPTY",o),t.classList.add("jooa11y-error-text");else 0===n&&1!==o&&2!==o?s=Lang._("HEADING_FIRST"):t.textContent.trim().length>170&&(l=`$Lang._("HEADING_LONG")} . $Lang.sprintf("HEADING_LONG_INFO",i)}`);e=o;let c=`<li class='jooa11y-outline-$o}'>\n                <span class='jooa11y-badge'>$o}</span>\n                <span class='jooa11y-outline-list-item'>$a}</span>\n            </li>`,d=`<li class='jooa11y-outline-$o}'>\n                <span class='jooa11y-badge jooa11y-error-badge'>\n                <span aria-hidden='true'>&#10007;</span>\n                <span class='jooa11y-visually-hidden'>$Lang._("ERROR")}</span> $o}</span>\n                <span class='jooa11y-outline-list-item jooa11y-red-text jooa11y-bold'>$a}</span>\n            </li>`,u=`<li class='jooa11y-outline-$o}'>\n                <span class='jooa11y-badge jooa11y-warning-badge'>\n                <span aria-hidden='true'>&#x3f;</span>\n                <span class='jooa11y-visually-hidden'>$Lang._("WARNING")}</span> $o}</span>\n                <span class='jooa11y-outline-list-item jooa11y-yellow-text jooa11y-bold'>$a}</span>\n            </li>`,f=[];this.options.outlineIgnore&&(f=Array.from(document.querySelectorAll(this.options.outlineIgnore))),f.includes(t)||(t.insertAdjacentHTML("beforeend",`<span class='jooa11y-heading-label'>H$o}</span>`),null!=s&&t.closest("a")?(this.errorCount++,t.classList.add("jooa11y-error-border"),t.closest("a").insertAdjacentHTML("afterend",this.annotate(Lang._("ERROR"),s,!0)),document.querySelector("#jooa11y-outline-list").insertAdjacentHTML("beforeend",d)):null!=s?(this.errorCount++,t.classList.add("jooa11y-error-border"),t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),s)),document.querySelector("#jooa11y-outline-list").insertAdjacentHTML("beforeend",d)):null!=l&&t.closest("a")?(this.warningCount++,t.closest("a").insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),l)),document.querySelector("#jooa11y-outline-list").insertAdjacentHTML("beforeend",u)):null!=l?(t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),l)),document.querySelector("#jooa11y-outline-list").insertAdjacentHTML("beforeend",u)):null!=s&&null!=l||document.querySelector("#jooa11y-outline-list").insertAdjacentHTML("beforeend",c))}));0===Array.from(this.$root.querySelectorAll('h1, [role="heading"][aria-level="1"]')).filter((e=>!this.$containerExclusions.includes(e))).length&&(this.errorCount++,document.querySelector("#jooa11y-outline-header").insertAdjacentHTML("afterend",`<div class='jooa11y-instance jooa11y-missing-h1'>\n                    <span class='jooa11y-badge jooa11y-error-badge'><span aria-hidden='true'>&#10007;</span><span class='jooa11y-visually-hidden'>$Lang._("ERROR")}</span></span>\n                    <span class='jooa11y-red-text jooa11y-bold'>$Lang._("PANEL_HEADING_MISSING_ONE")}</span>\n                </div>`),document.querySelector("#jooa11y-container").insertAdjacentHTML("afterend",this.annotateBanner(Lang._("ERROR"),Lang._("HEADING_MISSING_ONE"))))}checkLinkText(){const e=e=>{let t=[null,null,null];return this.options.partialAltStopWords.forEach((n=>{if(e.length===n.length&&e.toLowerCase().indexOf(n)>=0)return t[0]=n,!1})),this.options.warningAltWords.forEach((n=>{if(e.toLowerCase().indexOf(n)>=0)return t[1]=n,!1})),["http",".asp",".htm",".php",".edu/",".com/",".net/",".org/",".us/",".ca/",".de/",".icu/",".uk/",".ru/",".info/",".top/",".xyz/",".tk/",".cn/",".ga/",".cf/",".nl/",".io/"].forEach((n=>{if(e.toLowerCase().indexOf(n)>=0)return t[2]=n,!1})),t},t=Array.from(this.$root.querySelectorAll(this.linkIgnore));Array.from(this.$root.querySelectorAll("a[href]")).filter((e=>!t.includes(e))).forEach((t=>{let n=this.computeAriaLabel(t),o=t.getAttribute("aria-labelledby"),r=t.getAttribute("aria-label"),a=t.getAttribute("title"),i=null,s=null,l=null;if(t.children.length){let e=t.children[0];i=e.getAttribute("aria-labelledby"),s=e.getAttribute("aria-label"),l=e.getAttribute("title")}let c=e(((e,t)=>{const n=e.cloneNode(!0);return Array.from(t?n.querySelectorAll(t):n.children).forEach((e=>{e.parentElement.removeChild(e)})),n})(t,this.options.linkIgnoreSpan).textContent.trim());if("noAria"===n&&(n=t.textContent),t.getAttribute("href")&&!t.textContent.trim())if(t.querySelectorAll("img").length);else if(o||r)t.classList.add("jooa11y-good-border"),t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("GOOD"),Lang.sprintf("LINK_LABEL",n),!0));else if(a){let e=a;t.classList.add("jooa11y-good-border"),t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("GOOD"),Lang.sprintf("LINK_LABEL",e),!0))}else t.children.length?i||s||l?(t.classList.add("jooa11y-good-border"),t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("GOOD"),Lang.sprintf("LINK_LABEL",n),!0))):(this.errorCount++,t.classList.add("jooa11y-error-border"),t.insertAdjacentHTML("afterend",this.annotate(Lang._("ERROR"),Lang.sprintf("LINK_EMPTY_LINK_NO_LABEL"),!0))):(this.errorCount++,t.classList.add("jooa11y-error-border"),t.insertAdjacentHTML("afterend",this.annotate(Lang._("ERROR"),Lang._("LINK_EMPTY"),!0)));else null!==c[0]?o?t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("GOOD"),Lang.sprintf("LINK_LABEL",n),!0)):r?t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("GOOD"),Lang.sprintf("LINK_LABEL",r),!0)):"true"===t.getAttribute("aria-hidden")&&"-1"===t.getAttribute("tabindex")||(this.errorCount++,t.classList.add("jooa11y-error-text"),t.insertAdjacentHTML("afterend",this.annotate(Lang._("ERROR"),`$Lang.sprintf("LINK_STOPWORD",c[0])} <hr aria-hidden="true"> $Lang._("LINK_STOPWORD_TIP")}`,!0))):null!==c[1]?(this.warningCount++,t.classList.add("jooa11y-warning-text"),t.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),`$Lang.sprintf("LINK_BEST_PRACTICES",c[1])} <hr aria-hidden="true"> $Lang._("LINK_BEST_PRACTICES_DETAILS")}`,!0))):null!=c[2]&&n.length>40&&(this.warningCount++,t.classList.add("jooa11y-warning-text"),t.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),`$Lang._("LINK_URL")} <hr aria-hidden="true"> $Lang._("LINK_URL_TIP")}`,!0)))}))}checkLinksAdvanced(){const e=Array.from(this.$root.querySelectorAll(this.linkIgnore+", #jooa11y-container a, .jooa11y-exclude")),t=Array.from(this.$root.querySelectorAll("a[href]")).filter((t=>!e.includes(t)));let n={};t.forEach((e=>{let t=this.computeAriaLabel(e);"noAria"===t&&(t=e.textContent);const o=e.matches("\n                    a[href$='.pdf'],\n                    a[href$='.doc'],\n                    a[href$='.zip'],\n                    a[href$='.mp3'],\n                    a[href$='.txt'],\n                    a[href$='.exe'],\n                    a[href$='.dmg'],\n                    a[href$='.rtf'],\n                    a[href$='.pptx'],\n                    a[href$='.ppt'],\n                    a[href$='.xls'],\n                    a[href$='.xlsx'],\n                    a[href$='.csv'],\n                    a[href$='.mp4'],\n                    a[href$='.mov'],\n                    a[href$='.avi']\n                "),r=e.querySelector("img");let a=r&&r.getAttribute("alt")||"",i=t.trim().toLowerCase()+" "+a,s=e.getAttribute("href");0!==t.length&&(n[i]&&0!==i.length?n[s]||(this.warningCount++,e.classList.add("jooa11y-warning-text"),e.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),`$Lang._("LINK_IDENTICAL_NAME")} <hr aria-hidden="true"> $Lang.sprintf("LINK_IDENTICAL_NAME_TIP",t)}`,!0))):(n[i]=!0,n[s]=!0));const l=this.options.newWindowPhrases.some((function(e){return t.toLowerCase().indexOf(e)>=0})),c=this.options.fileTypePhrases.some((function(e){return t.toLowerCase().indexOf(e)>=0}));"_blank"!==e.getAttribute("target")||o||l||(this.warningCount++,e.classList.add("jooa11y-warning-text"),e.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),`$Lang._("NEW_TAB_WARNING")} <hr aria-hidden="true"> $Lang._("NEW_TAB_WARNING_TIP")}`,!0))),o&&!c&&(this.warningCount++,e.classList.add("jooa11y-warning-text"),e.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),`$Lang._("FILE_TYPE_WARNING")} <hr aria-hidden="true"> $Lang._("FILE_TYPE_WARNING_TIP")}`,!0)))}))}checkUnderline(){Array.from(this.$root.querySelectorAll("u")).forEach((e=>{this.warningCount++,e.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`$Lang._("TEXT_UNDERLINE_WARNING")} <hr aria-hidden="true"> $Lang._("TEXT_UNDERLINE_WARNING_TIP")}`,!0))}));Array.from(this.$root.querySelectorAll("h1, h2, h3, h4, h5, h6, p, div, span, li, blockquote")).forEach((e=>{"underline"===getComputedStyle(e).textDecorationLine&&(this.warningCount++,e.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`$Lang._("TEXT_UNDERLINE_WARNING")} <hr aria-hidden="true"> $Lang._("TEXT_UNDERLINE_WARNING_TIP")}`,!0)))}))}checkAltText(){const e=e=>{let t=[null,null,null];return[".png",".jpg",".jpeg",".gif",".tiff",".svg"].forEach((n=>{e.toLowerCase().indexOf(n)>=0&&(t[0]=n)})),this.options.suspiciousAltWords.forEach((n=>{e.toLowerCase().indexOf(n)>=0&&(t[1]=n)})),this.options.placeholderAltStopWords.forEach((n=>{e.length===n.length&&e.toLowerCase().indexOf(n)>=0&&(t[2]=n)})),t},t=Array.from(this.$root.querySelectorAll("img")),n=Array.from(this.$root.querySelectorAll(this.imageIgnore));t.filter((e=>!n.includes(e))).forEach((t=>{let n=t.getAttribute("alt");if(null===n)t.closest("a[href]")?t.closest("a[href]").textContent.trim().length>1?(t.classList.add("jooa11y-error-border"),t.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),Lang._("MISSING_ALT_LINK_BUT_HAS_TEXT_MESSAGE"),!1,!0))):0===t.closest("a[href]").textContent.trim().length&&(t.classList.add("jooa11y-error-border"),t.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),Lang._("MISSING_ALT_LINK_MESSAGE"),!1,!0))):(t.classList.add("jooa11y-error-border"),t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),Lang._("MISSING_ALT_MESSAGE"),!1,!0)));else{let o=escapeHTML(n),r=e(o),a=n.length;if(null!=r[0]&&t.closest("a[href]"))this.errorCount++,t.classList.add("jooa11y-error-border"),t.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),`$Lang.sprintf("LINK_IMAGE_BAD_ALT_MESSAGE",o,r[0])} <hr aria-hidden="true"> $Lang._("LINK_IMAGE_BAD_ALT_MESSAGE_INFO")}`,!1));else if(null!=r[2]&&t.closest("a[href]"))this.errorCount++,t.classList.add("jooa11y-error-border"),t.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),Lang.sprintf("LINK_IMAGE_PLACEHOLDER_ALT_MESSAGE",o),!1,!0));else if(null!=r[1]&&t.closest("a[href]"))this.warningCount++,t.classList.add("jooa11y-warning-border"),t.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`$Lang.sprintf("LINK_IMAGE_SUS_ALT_MESSAGE",o,r[1])} <hr aria-hidden="true"> $Lang.sprintf("LINK_IMAGE_SUS_ALT_MESSAGE_INFO",o)}`,!1));else if(null!=r[0])this.errorCount++,t.classList.add("jooa11y-error-border"),t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),`$Lang._("LINK_ALT_HAS_BAD_WORD_MESSAGE")} <hr aria-hidden="true"> $Lang.sprintf("LINK_ALT_HAS_BAD_WORD_MESSAGE_INFO",r[0],o)}`,!1));else if(null!=r[2])this.errorCount++,t.classList.add("jooa11y-error-border"),t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),Lang.sprintf("LINK_ALT_PLACEHOLDER_MESSAGE",o),!1));else if(null!=r[1])this.warningCount++,t.classList.add("jooa11y-warning-border"),t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`$Lang.sprintf("LINK_ALT_HAS_SUS_WORD_MESSAGE",o,r[1])} <hr aria-hidden="true"> $Lang.sprintf("LINK_ALT_HAS_SUS_WORD_MESSAGE_INFO",o)}`,!1));else if(""!==n&&" "!==n||!t.closest("a[href]")){if(n.length>250&&t.closest("a[href]"))this.warningCount++,t.classList.add("jooa11y-warning-border"),t.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`$Lang._("HYPERLINK_ALT_LENGTH_MESSAGE")} <hr aria-hidden="true"> $Lang.sprintf("HYPERLINK_ALT_LENGTH_MESSAGE_INFO",o,a)}`,!1));else if(""!==n&&t.closest("a[href]")&&0===t.closest("a[href]").textContent.trim().length)this.warningCount++,t.classList.add("jooa11y-warning-border"),t.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`$Lang._("LINK_IMAGE_LINK_ALT_TEXT_MESSAGE")} <hr aria-hidden="true"> $Lang.sprintf("LINK_IMAGE_LINK_ALT_TEXT_MESSAGE_INFO",o)}`,!1));else if(""!==n&&t.closest("a[href]")&&t.closest("a[href]").textContent.trim().length>1)this.warningCount++,t.classList.add("jooa11y-warning-border"),t.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`$Lang._("LINK_ANCHOR_LINK_AND_ALT_MESSAGE")} <hr aria-hidden="true"> $Lang.sprintf("LINK_ANCHOR_LINK_AND_ALT_MESSAGE_INFO",o)}`,!1));else if(""===n||" "===n)if(t.closest("figure")){const e=t.closest("figure").querySelector("figcaption");null!==e&&e.textContent.trim().length>=1&&(this.warningCount++,t.classList.add("jooa11y-warning-border"),t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`$Lang._("IMAGE_FIGURE_DECORATIVE")} <hr aria-hidden="true"> $Lang._("IMAGE_FIGURE_DECORATIVE_INFO")}`,!1,!0)))}else this.warningCount++,t.classList.add("jooa11y-warning-border"),t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),Lang._("LINK_DECORATIVE_MESSAGE"),!1,!0));else if(n.length>250)this.warningCount++,t.classList.add("jooa11y-warning-border"),t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`$Lang._("LINK_ALT_TOO_LONG_MESSAGE")} <hr aria-hidden="true"> $Lang.sprintf("LINK_ALT_TOO_LONG_MESSAGE_INFO",o,a)}`,!1));else if(""!==n)if(t.closest("figure")){const e=t.closest("figure").querySelector("figcaption");null!==e&&e.textContent.trim().toLowerCase===o.trim().toLowerCase&&(this.warningCount++,t.classList.add("jooa11y-warning-border"),t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`$Lang.sprintf("IMAGE_FIGURE_DUPLICATE_ALT",o)} <hr aria-hidden="true"> $Lang._("IMAGE_FIGURE_DECORATIVE_INFO")}`,!1,!0)))}else t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("GOOD"),`$Lang.sprintf("LINK_PASS_ALT",o)}`,!1,!0))}else"-1"===t.closest("a[href]").getAttribute("tabindex")&&"true"===t.closest("a[href]").getAttribute("aria-hidden")||("true"===t.closest("a[href]").getAttribute("aria-hidden")?(this.errorCount++,t.classList.add("jooa11y-error-border"),t.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),Lang._("LINK_HYPERLINKED_IMAGE_ARIA_HIDDEN"),!1,!0))):0===t.closest("a[href]").textContent.trim().length?(this.errorCount++,t.classList.add("jooa11y-error-border"),t.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),Lang._("LINK_IMAGE_LINK_NULL_ALT_NO_TEXT_MESSAGE"),!1,!0))):t.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("GOOD"),Lang._("LINK_LINK_HAS_ALT_MESSAGE"),!1,!0)))}}))}checkLabels(){Array.from(this.$root.querySelectorAll("input, select, textarea")).filter((e=>!this.$containerExclusions.includes(e)&&!isElementHidden(e))).forEach((e=>{let t=this.computeAriaLabel(e);const n=e.getAttribute("type");if("submit"===n||"button"===n||"hidden"===n);else if("image"===n){let t=e.getAttribute("alt");t&&" "!==t||e.getAttribute("aria-label")||(this.errorCount++,e.classList.add("jooa11y-error-border"),e.insertAdjacentHTML("afterend",this.annotate(Lang._("ERROR"),Lang._("LABELS_MISSING_IMAGE_INPUT_MESSAGE"),!0)))}else if("reset"===n)this.warningCount++,e.classList.add("jooa11y-warning-border"),e.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),`$Lang._("LABELS_INPUT_RESET_MESSAGE")} <hr aria-hidden="true"> $Lang._("LABELS_INPUT_RESET_MESSAGE_TIP")}`,!0));else if(e.getAttribute("aria-label")||e.getAttribute("aria-labelledby")||e.getAttribute("title"))if(e.getAttribute("title")){let t=e.getAttribute("title");this.warningCount++,e.classList.add("jooa11y-warning-border"),e.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),`$Lang._("LABELS_ARIA_LABEL_INPUT_MESSAGE")} <hr aria-hidden="true"> $Lang.sprintf("LABELS_ARIA_LABEL_INPUT_MESSAGE_INFO",t)}`,!0))}else this.warningCount++,e.classList.add("jooa11y-warning-border"),e.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),`$Lang._("LABELS_ARIA_LABEL_INPUT_MESSAGE")} <hr aria-hidden="true"> $Lang.sprintf("LABELS_ARIA_LABEL_INPUT_MESSAGE_INFO",t)}`,!0));else if(e.closest("label")&&e.closest("label").textContent.trim());else if(e.getAttribute("id")&&Array.from(e.parentElement.children).filter((e=>"LABEL"===e.nodeName)).length){const t=Array.from(e.parentElement.children).filter((e=>"LABEL"===e.nodeName));let n=!1;t.forEach((t=>{n||t.getAttribute("for")===e.getAttribute("id")&&(n=!0)})),n||(this.errorCount++,e.classList.add("jooa11y-error-border"),e.insertAdjacentHTML("afterend",this.annotate(Lang._("ERROR"),`$Lang._("LABELS_NO_FOR_ATTRIBUTE_MESSAGE")} <hr aria-hidden="true"> $Lang.sprintf("LABELS_NO_FOR_ATTRIBUTE_MESSAGE_INFO",e.getAttribute("id"))}`,!0)))}else this.errorCount++,e.classList.add("jooa11y-error-border"),e.insertAdjacentHTML("afterend",this.annotate(Lang._("ERROR"),Lang._("LABELS_MISSING_LABEL_MESSAGE"),!0))}))}checkEmbeddedContent(){const e=Array.from(this.$root.querySelectorAll("iframe, audio, video")).filter((e=>!this.$containerExclusions.includes(e)));e.filter((e=>e.matches(this.options.videoContent))).forEach((e=>{let t=e.getElementsByTagName("TRACK");"VIDEO"===e.tagName&&t.length||(this.warningCount++,e.classList.add("jooa11y-warning-border"),e.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),Lang._("EMBED_VIDEO"))))}));e.filter((e=>e.matches(this.options.audioContent))).forEach((e=>{this.warningCount++,e.classList.add("jooa11y-warning-border"),e.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),Lang._("EMBED_AUDIO")))})),e.forEach((e=>{"VIDEO"===e.tagName||"AUDIO"===e.tagName||"true"===e.getAttribute("aria-hidden")||null!==e.getAttribute("hidden")||"none"===e.style.display||"presentation"===e.getAttribute("role")||null!==e.getAttribute("title")&&""!==e.getAttribute("title")||null!==e.getAttribute("aria-label")&&""!==e.getAttribute("aria-label")||null===e.getAttribute("aria-labelledby")&&(e.classList.contains("jooa11y-warning-border")&&e.classList.remove("jooa11y-warning-border"),this.errorCount++,e.classList.add("jooa11y-error-border"),e.insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),Lang._("EMBED_MISSING_TITLE"))))}));e.filter((e=>!e.matches(this.options.embeddedContent))).forEach((e=>{"VIDEO"===e.tagName||"AUDIO"===e.tagName||"true"===e.getAttribute("aria-hidden")||null!==e.getAttribute("hidden")||"none"===e.style.display||"presentation"===e.getAttribute("role")||"-1"===e.getAttribute("tabindex")||(this.warningCount++,e.classList.add("jooa11y-warning-border"),e.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),Lang._("EMBED_GENERAL_WARNING"))))}))}checkQA(){(this.options.linksToFlag?Array.from(this.$root.querySelectorAll(this.options.linksToFlag)):[]).filter((e=>!this.$containerExclusions.includes(e))).forEach((e=>{this.errorCount++,e.classList.add("jooa11y-error-text"),e.insertAdjacentHTML("afterend",this.annotate(Lang._("ERROR"),Lang.sprintf("QA_BAD_LINK",e.getAttribute("href")),!0))}));let e=Array.from(this.$root.querySelectorAll('a[href$=".pdf"]')).filter((e=>!this.$containerExclusions.includes(e))),t=e[0],n=e.length;e.length>0&&(this.warningCount++,e.forEach((e=>{e.classList.add("jooa11y-warning-text"),e.querySelector("img")&&e.classList.remove("jooa11y-warning-text")})),t.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),Lang.sprintf("QA_PDF_COUNT",n),!0)));Array.from(this.$root.querySelectorAll("h1, h2, h3, h4, h5, h6, p, li:not([class^='jooa11y']), blockquote")).filter((e=>!this.$containerExclusions.includes(e))).forEach((function(e){let t=e.innerHTML;e.innerHTML=t.replace(/(?!<a[^>]*?>)(\b[A-Z][',!:A-Z\s]{15,}|\b[A-Z]{15,}\b)(?![^<]*?<\/a>)/g,"<span class='jooa11y-warning-uppercase'>$1</span>")}));const o=document.querySelectorAll(".jooa11y-warning-uppercase");o.forEach((e=>{e.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),Lang._("QA_UPPERCASE_WARNING"),!0))})),o.length>0&&this.warningCount++;Array.from(this.$root.querySelectorAll("table:not([role='presentation'])")).filter((e=>!this.$containerExclusions.includes(e))).forEach((e=>{let t=e.querySelectorAll("th"),n=e.querySelectorAll("h1, h2, h3, h4, h5, h6");0===t.length&&(this.errorCount++,e.classList.add("jooa11y-error-border"),e.insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),Lang._("TABLES_MISSING_HEADINGS")))),n.length>0&&(this.errorCount++,n.forEach((e=>{e.classList.add("jooa11y-error-border"),e.insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),`$Lang._("TABLES_SEMANTIC_HEADING")} <hr aria-hidden="true"> $Lang._("TABLES_SEMANTIC_HEADING_INFO")}`))}))),t.forEach((e=>{0===e.textContent.trim().length&&(this.errorCount++,e.classList.add("jooa11y-error-border"),e.innerHTML=this.annotate(Lang._("ERROR"),`$Lang._("TABLES_EMPTY_HEADING")} <hr aria-hidden="true"> $Lang._("TABLES_EMPTY_HEADING_INFO")}`))}))}));const r=document.querySelector("html").getAttribute("lang");if(!r||r.length<2){this.errorCount++;document.getElementById("jooa11y-container").insertAdjacentHTML("afterend",this.annotateBanner(Lang._("ERROR"),Lang._("QA_PAGE_LANGUAGE_MESSAGE")))}Array.from(this.$root.querySelectorAll("strong, em")).filter((e=>!this.$containerExclusions.includes(e))).forEach((e=>{e.textContent.trim().length>200&&(this.warningCount++,e.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),Lang._("QA_BAD_ITALICS"))))}));Array.from(this.$root.querySelectorAll("blockquote")).filter((e=>!this.$containerExclusions.includes(e))).forEach((e=>{let t=e.textContent;t.trim().length<25&&(this.warningCount++,e.classList.add("jooa11y-warning-border"),e.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`$Lang.sprintf("QA_BLOCKQUOTE_MESSAGE",t)} <hr aria-hidden="true"> $Lang._("QA_BLOCKQUOTE_MESSAGE_TIP")}`)))})),this.$p.forEach((e=>{let t=e.innerHTML.indexOf("</strong><br>"),n=e.innerHTML.indexOf("<br></strong>");if(e&&e.textContent.trim().length>=300){let o=e.firstChild;if("STRONG"===o.tagName&&(-1!==n||-1!==t)){let t=o.textContent;!e.closest("table")&&t.length<=120&&(o.classList.add("jooa11y-fake-heading","jooa11y-warning-border"),e.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`$Lang.sprintf("QA_FAKE_HEADING",t)} <hr aria-hidden="true"> $Lang._("QA_FAKE_HEADING_INFO")}`)))}}if(/^<(strong)>.+<\/\1>$/.test(e.innerHTML.trim())){const t=e.previousElementSibling;let n="";if(null!==t&&(n=t.tagName),!e.closest("table")&&e.textContent.length<=120&&"H"!==n.charAt(0)){let t=e.textContent;e.classList.add("jooa11y-fake-heading","jooa11y-warning-border"),e.firstChild.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),`$Lang.sprintf("QA_FAKE_HEADING",t)} <hr aria-hidden="true"> $Lang._("QA_FAKE_HEADING_INFO")}`))}}})),this.$root.querySelectorAll(".jooa11y-fake-heading").length>0&&this.warningCount++;const a=this.$root.querySelectorAll("[id]");let i={};a.forEach((e=>{let t=e.id;t&&(void 0===i[t]?i[t]=1:(e.classList.add("sa11y-error-border"),e.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`$Lang._("QA_DUPLICATE_ID")}\n\t\t\t\t\t\t\t\t<hr aria-hidden="true">\n\t\t\t\t\t\t\t\t$Lang.sprintf("QA_DUPLICATE_ID_TIP",t)}`,!0))))}));let s="",l={b:"a",B:"A",2:"1"},c=/a\.|a\)|A\.|A\)|1\.|1\)|\*\s|-\s|--|•\s|→\s|✓\s|✔\s|✗\s|✖\s|✘\s|❯\s|›\s|»\s/,d=function(e){return e.replace(/^b|^B|^2/,(function(e){return l[e]}))};this.$p.forEach((e=>{let t=!1,n=e.textContent.substring(0,2);if(n.trim().length>0&&n!==s&&n.match(c)){let o=e.innerHTML.indexOf("<br>");if(-1!==o){let r=e.innerHTML.substring(o+4).trim().substring(0,2);n===d(r)&&(t=!0)}if(!t){if("P"===e.nextElementSibling.nodeName?e.nextElementSibling:null){n===d(e.nextElementSibling.textContent.substring(0,2))&&(t=!0)}}t?(this.warningCount++,e.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`$Lang.sprintf("QA_SHOULD_BE_LIST",n)} <hr aria-hidden="true"> $Lang._("QA_SHOULD_BE_LIST_TIP")}`)),e.classList.add("jooa11y-fake-list"),s=n):s=""}else s=""})),this.$root.querySelectorAll(".jooa11y-fake-list").length>0&&this.warningCount++}checkContrast(){const e=Array.from(this.$root.querySelectorAll("* > :not(.jooa11y-heading-label)")).filter((e=>!this.$containerExclusions.includes(e)));var t={errors:[],warnings:[]};let n=e,o={parseRgb:function(e){let t,n,o,r,a;if(n=e.match(/rgb\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*\)/)){for(o=n.slice(1,4),t=r=0;r<=2;t=++r)o[t]=+o[t];o[3]=1}else if(n=e.match(/rgba\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*,\s*([01]|[01]?\.\d+)\)/))for(o=n.slice(1,5),t=a=0;a<=3;t=++a)o[t]=+o[t];return o},relativeLuminance:function(e){let t=[];for(let n=0;n<3;n++){let o=e[n]/255;t.push(o<.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrastRatio:function(e,t){let n=o.relativeLuminance(o.parseRgb(e)),r=o.relativeLuminance(o.parseRgb(t));return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},getBackground:function(e){let t=getComputedStyle(e),n=t.backgroundColor,r=t.backgroundImage,a=(o.parseRgb(n)+"").split(",");return a[3]<1&&a[3]>0?"alpha":"rgba(0, 0, 0, 0)"!==n&&"transparent"!==n&&"none"===r&&"0"!==a[3]?n:"none"!==r?"image":"HTML"===e.tagName?"rgb(255, 255, 255)":o.getBackground(e.parentNode)},check:function(){t={errors:[],warnings:[]};for(let e=0;e<n.length;e++)!function(e){if(o){let n,r,a,i=getComputedStyle(e),s=i.color,l=i.fill,c=3*parseInt(i.fontSize)/4,d=i.fontWeight,u=e.tagName,f=o.getBackground(e),p=[].reduce.call(e.childNodes,(function(e,t){return e+(3===t.nodeType?t.textContent:"")}),"").trim();"SVG"===u?(n=Math.round(100*o.contrastRatio(l,f))/100,n<3&&(r={elem:e,ratio:n+":1"},t.errors.push(r))):(p.length||"INPUT"===u||"SELECT"===u||"TEXTAREA"===u)&&("image"===f||"alpha"===f?(a={elem:e},t.warnings.push(a)):(n=Math.round(100*o.contrastRatio(s,f))/100,c>=18||c>=14&&d>=700?n<3&&(r={elem:e,ratio:n+":1"},t.errors.push(r)):n<4.5&&(r={elem:e,ratio:n+":1"},t.errors.push(r))))}}(n[e]);return t}};o.check(),t.errors.forEach((e=>{let t=e.elem,n=e.ratio,o=t.cloneNode(!0),r=o.querySelectorAll(".jooa11y-heading-label");for(let e=0;e<r.length;e++)o.removeChild(r[e]);let a=o.textContent;this.errorCount++,"INPUT"===t.tagName?t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),`$Lang._("CONTRAST_ERROR_INPUT_MESSAGE")}\n                         <hr aria-hidden="true">\n                         $Lang.sprintf("CONTRAST_ERROR_INPUT_MESSAGE_INFO",n)}`,!0)):t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),`$Lang.sprintf("CONTRAST_ERROR_MESSAGE",n,a)}\n                        <hr aria-hidden="true">\n                        $Lang.sprintf("CONTRAST_ERROR_MESSAGE_INFO",n,a)}`,!0))})),t.warnings.forEach((e=>{let t=e.elem,n=t.cloneNode(!0),o=n.querySelectorAll(".jooa11y-heading-label");for(let e=0;e<o.length;e++)n.removeChild(o[e]);let r=n.textContent;this.warningCount++,t.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`$Lang._("CONTRAST_WARNING_MESSAGE")} <hr aria-hidden="true"> $Lang.sprintf("CONTRAST_WARNING_MESSAGE_INFO",r)}`,!0))}))}checkReadability(){const e=document.querySelector(this.options.readabilityRoot),t=Array.from(e.querySelectorAll("p, li")).filter((e=>!this.$containerExclusions.includes(e)));function n(e){if((e=e.toLowerCase().replace(".","").replace("\n","")).length<=3)return 1;let t=(e=(e=e.replace(/(?:[^laeiouy]es|ed|[^laeiouy]e)$/,"")).replace(/^y/,"")).match(/[aeiouy]{1,2}/g),n=0;return t&&(n=t.length),n}t.forEach((e=>{let t=e.textContent;t.length>=120&&"."!==t.charAt(t.length-1)&&e.insertAdjacentHTML("beforeend","<span class='jooa11y-readability-period jooa11y-visually-hidden'>.</span>")}));let o=[];for(let e=0;e<t.length;e++){var r=t[e];""!==r.textContent.replace(/ |\n/g,"")&&o.push(r.textContent)}let a=o.join(" ").trim().toString(),i=a.replace(/[.!?-]+/g," ").split(" "),s=0;for(let e=0;e<i.length;e++)0!=i[e]&&(s+=1);let l=a.split(/[.!?]+/),c=0;for(let e=0;e<l.length;e++)""!==l[e]&&(c+=1);let d,u=0,f=0,p=0;for(let e=0;e<i.length;e++)if(0!=i[e]){var g=n(i[e]);1===g&&(f+=1),2===g&&(p+=1),u+=g}"en"===this.options.readabilityLang?d=206.835-1.015*s/c-84.6*u/s:"fr"===this.options.readabilityLang?d=207-1.015*s/c-73.6*u/s:"es"===this.options.readabilityLang&&(d=206.84-1.02*s/c-100*u/s*.6),d>100?d=100:d<0&&(d=0);const h=document.getElementById("jooa11y-readability-info");if(0===a.length)h.innerHTML=Lang._("READABILITY_NO_P_OR_LI_MESSAGE");else if(s>30){let e=d.toFixed(1),t=(s/c).toFixed(1),n=Math.round((s-(f+p))/s*100);h.innerHTML=e>=0&&e<30?`<span>$e}</span> <span class="jooa11y-readability-score">$Lang._("VERY_DIFFICULT_READABILITY")}</span>`:e>31&&e<49?`<span>$e}</span> <span class="jooa11y-readability-score">$Lang._("DIFFICULT_READABILITY")}</span>`:e>50&&e<60?`<span>$e}</span> <span class="jooa11y-readability-score">$Lang._("FAIRLY_DIFFICULT_READABILITY")}</span>`:`<span>$e}</span> <span class="jooa11y-readability-score">$Lang._("GOOD_READABILITY")}</span>`,document.getElementById("jooa11y-readability-details").innerHTML=`<li><span class='jooa11y-bold'>$Lang._("AVG_WORD_PER_SENTENCE")}</span> $t}</li>\n                <li><span class='jooa11y-bold'>$Lang._("COMPLEX_WORDS")}</span> $n}%</li>\n                <li><span class='jooa11y-bold'>$Lang._("TOTAL_WORDS")}</span> $s}</li>`}else h.textContent=Lang._("READABILITY_NOT_ENOUGH_CONTENT_MESSAGE")}annotate(e,t,n=!1){const o=[Lang._("ERROR"),Lang._("WARNING"),Lang._("GOOD")];if(-1===o.indexOf(e))throw Error(`Invalid type [$e}] for annotation`);const r={[o[0]]:"error",[o[1]]:"warning",[o[2]]:"good"};return t&&"[object Function]"==={}.toString.call(t)&&(t=t()),t=escapeHTML(t),`\n        <div class=$n?"jooa11y-instance-inline":"jooa11y-instance"}>\n            <button\n            type="button"\n            aria-label="${[e]}"\n            class="jooa11y-btn jooa11y-$r[e]}-btn$n?"-text":""}"\n            data-tippy-content="<div lang='$this.options.langCode}'>\n                <div class='jooa11y-header-text'>${[e]}</div>\n                $t}\n            </div>\n        ">\n        </button>\n        </div>`}annotateBanner(e,t){const n=[Lang._("ERROR"),Lang._("WARNING"),Lang._("GOOD")];if(-1===n.indexOf(e))throw Error(`Invalid type [$e}] for annotation`);const o={[n[0]]:"error",[n[1]]:"warning",[n[2]]:"good"};return t&&"[object Function]"==={}.toString.call(t)&&(t=t()),`<div class="jooa11y-instance jooa11y-$o[e]}-message-container">\n      <div role="region" aria-label="${[e]}" class="jooa11y-$o[e]}-message" lang="$this.options.langCode}">\n          $t}\n      </div>\n  </div>`}}if(!Joomla)throw new Error("Joomla API is not properly initialised");const stringPrefix="PLG_SYSTEM_JOOA11Y_";Lang.translate=e=>Joomla.Text._(stringPrefix+e,e);const options=Joomla.getOptions("jooa11yOptions");window.addEventListener("load",(()=>{new Jooa11y(options).doInitialCheck()}));


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer