(function(){"use strict";function Z(){Z=function(){return t};var r,t={},n=Object.prototype,e=n.hasOwnProperty,l=Object.defineProperty||function(b,y,_){b[y]=_.value},i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",f=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function u(b,y,_){return Object.defineProperty(b,y,{value:_,enumerable:!0,configurable:!0,writable:!0}),b[y]}try{u({},"")}catch{u=function(y,_,D){return y[_]=D}}function c(b,y,_,D){var T=y&&y.prototype instanceof C?y:C,B=Object.create(T.prototype),W=new q(D||[]);return l(B,"_invoke",{value:A(b,_,W)}),B}function p(b,y,_){try{return{type:"normal",arg:b.call(y,_)}}catch(D){return{type:"throw",arg:D}}}t.wrap=c;var v="suspendedStart",h="suspendedYield",L="executing",m="completed",j={};function C(){}function N(){}function R(){}var d={};u(d,s,function(){return this});var I=Object.getPrototypeOf,E=I&&I(I(V([])));E&&E!==n&&e.call(E,s)&&(d=E);var S=R.prototype=C.prototype=Object.create(d);function k(b){["next","throw","return"].forEach(function(y){u(b,y,function(_){return this._invoke(y,_)})})}function x(b,y){function _(T,B,W,K){var U=p(b[T],b,B);if(U.type!=="throw"){var $=U.arg,Y=$.value;return Y&&typeof Y=="object"&&e.call(Y,"__await")?y.resolve(Y.__await).then(function(J){_("next",J,W,K)},function(J){_("throw",J,W,K)}):y.resolve(Y).then(function(J){$.value=J,W($)},function(J){return _("throw",J,W,K)})}K(U.arg)}var D;l(this,"_invoke",{value:function(T,B){function W(){return new y(function(K,U){_(T,B,K,U)})}return D=D?D.then(W,W):W()}})}function A(b,y,_){var D=v;return function(T,B){if(D===L)throw new Error("Generator is already running");if(D===m){if(T==="throw")throw B;return{value:r,done:!0}}for(_.method=T,_.arg=B;;){var W=_.delegate;if(W){var K=M(W,_);if(K){if(K===j)continue;return K}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(D===v)throw D=m,_.arg;_.dispatchException(_.arg)}else _.method==="return"&&_.abrupt("return",_.arg);D=L;var U=p(b,y,_);if(U.type==="normal"){if(D=_.done?m:h,U.arg===j)continue;return{value:U.arg,done:_.done}}U.type==="throw"&&(D=m,_.method="throw",_.arg=U.arg)}}}function M(b,y){var _=y.method,D=b.iterator[_];if(D===r)return y.delegate=null,_==="throw"&&b.iterator.return&&(y.method="return",y.arg=r,M(b,y),y.method==="throw")||_!=="return"&&(y.method="throw",y.arg=new TypeError("The iterator does not provide a '"+_+"' method")),j;var T=p(D,b.iterator,y.arg);if(T.type==="throw")return y.method="throw",y.arg=T.arg,y.delegate=null,j;var B=T.arg;return B?B.done?(y[b.resultName]=B.value,y.next=b.nextLoc,y.method!=="return"&&(y.method="next",y.arg=r),y.delegate=null,j):B:(y.method="throw",y.arg=new TypeError("iterator result is not an object"),y.delegate=null,j)}function O(b){var y={tryLoc:b[0]};1 in b&&(y.catchLoc=b[1]),2 in b&&(y.finallyLoc=b[2],y.afterLoc=b[3]),this.tryEntries.push(y)}function H(b){var y=b.completion||{};y.type="normal",delete y.arg,b.completion=y}function q(b){this.tryEntries=[{tryLoc:"root"}],b.forEach(O,this),this.reset(!0)}function V(b){if(b||b===""){var y=b[s];if(y)return y.call(b);if(typeof b.next=="function")return b;if(!isNaN(b.length)){var _=-1,D=function T(){for(;++_<b.length;)if(e.call(b,_))return T.value=b[_],T.done=!1,T;return T.value=r,T.done=!0,T};return D.next=D}}throw new TypeError(typeof b+" is not iterable")}return N.prototype=R,l(S,"constructor",{value:R,configurable:!0}),l(R,"constructor",{value:N,configurable:!0}),N.displayName=u(R,a,"GeneratorFunction"),t.isGeneratorFunction=function(b){var y=typeof b=="function"&&b.constructor;return!!y&&(y===N||(y.displayName||y.name)==="GeneratorFunction")},t.mark=function(b){return Object.setPrototypeOf?Object.setPrototypeOf(b,R):(b.__proto__=R,u(b,a,"GeneratorFunction")),b.prototype=Object.create(S),b},t.awrap=function(b){return{__await:b}},k(x.prototype),u(x.prototype,f,function(){return this}),t.AsyncIterator=x,t.async=function(b,y,_,D,T){T===void 0&&(T=Promise);var B=new x(c(b,y,_,D),T);return t.isGeneratorFunction(y)?B:B.next().then(function(W){return W.done?W.value:B.next()})},k(S),u(S,a,"Generator"),u(S,s,function(){return this}),u(S,"toString",function(){return"[object Generator]"}),t.keys=function(b){var y=Object(b),_=[];for(var D in y)_.push(D);return _.reverse(),function T(){for(;_.length;){var B=_.pop();if(B in y)return T.value=B,T.done=!1,T}return T.done=!0,T}},t.values=V,q.prototype={constructor:q,reset:function(b){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(H),!b)for(var y in this)y.charAt(0)==="t"&&e.call(this,y)&&!isNaN(+y.slice(1))&&(this[y]=r)},stop:function(){this.done=!0;var b=this.tryEntries[0].completion;if(b.type==="throw")throw b.arg;return this.rval},dispatchException:function(b){if(this.done)throw b;var y=this;function _(U,$){return B.type="throw",B.arg=b,y.next=U,$&&(y.method="next",y.arg=r),!!$}for(var D=this.tryEntries.length-1;D>=0;--D){var T=this.tryEntries[D],B=T.completion;if(T.tryLoc==="root")return _("end");if(T.tryLoc<=this.prev){var W=e.call(T,"catchLoc"),K=e.call(T,"finallyLoc");if(W&&K){if(this.prev<T.catchLoc)return _(T.catchLoc,!0);if(this.prev<T.finallyLoc)return _(T.finallyLoc)}else if(W){if(this.prev<T.catchLoc)return _(T.catchLoc,!0)}else{if(!K)throw new Error("try statement without catch or finally");if(this.prev<T.finallyLoc)return _(T.finallyLoc)}}}},abrupt:function(b,y){for(var _=this.tryEntries.length-1;_>=0;--_){var D=this.tryEntries[_];if(D.tryLoc<=this.prev&&e.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var T=D;break}}T&&(b==="break"||b==="continue")&&T.tryLoc<=y&&y<=T.finallyLoc&&(T=null);var B=T?T.completion:{};return B.type=b,B.arg=y,T?(this.method="next",this.next=T.finallyLoc,j):this.complete(B)},complete:function(b,y){if(b.type==="throw")throw b.arg;return b.type==="break"||b.type==="continue"?this.next=b.arg:b.type==="return"?(this.rval=this.arg=b.arg,this.method="return",this.next="end"):b.type==="normal"&&y&&(this.next=y),j},finish:function(b){for(var y=this.tryEntries.length-1;y>=0;--y){var _=this.tryEntries[y];if(_.finallyLoc===b)return this.complete(_.completion,_.afterLoc),H(_),j}},catch:function(b){for(var y=this.tryEntries.length-1;y>=0;--y){var _=this.tryEntries[y];if(_.tryLoc===b){var D=_.completion;if(D.type==="throw"){var T=D.arg;H(_)}return T}}throw new Error("illegal catch attempt")},delegateYield:function(b,y,_){return this.delegate={iterator:V(b),resultName:y,nextLoc:_},this.method==="next"&&(this.arg=r),j}},t}function It(r,t,n,e,l,i,s){try{var f=r[i](s),a=f.value}catch(u){n(u);return}f.done?t(a):Promise.resolve(a).then(e,l)}function be(r){return function(){var t=this,n=arguments;return new Promise(function(e,l){var i=r.apply(t,n);function s(a){It(i,e,l,s,f,"next",a)}function f(a){It(i,e,l,s,f,"throw",a)}s(void 0)})}}var X="top",ee="bottom",te="right",Q="left",ct="auto",Ne=[X,ee,te,Q],Ae="start",Ce="end",ur="clippingParents",St="viewport",Re="popper",dr="reference",wt=Ne.reduce(function(r,t){return r.concat([t+"-"+Ae,t+"-"+Ce])},[]),Ot=[].concat(Ne,[ct]).reduce(function(r,t){return r.concat([t,t+"-"+Ae,t+"-"+Ce])},[]),fr="beforeRead",pr="read",hr="afterRead",vr="beforeMain",gr="main",yr="afterMain",mr="beforeWrite",br="write",Ar="afterWrite",Er=[fr,pr,hr,vr,gr,yr,mr,br,Ar];function ie(r){return r?(r.nodeName||"").toLowerCase():null}function ae(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var t=r.ownerDocument;return t&&t.defaultView||window}return r}function Ee(r){var t=ae(r).Element;return r instanceof t||r instanceof Element}function re(r){var t=ae(r).HTMLElement;return r instanceof t||r instanceof HTMLElement}function xt(r){if(typeof ShadowRoot>"u")return!1;var t=ae(r).ShadowRoot;return r instanceof t||r instanceof ShadowRoot}function Lr(r){var t=r.state;Object.keys(t.elements).forEach(function(n){var e=t.styles[n]||{},l=t.attributes[n]||{},i=t.elements[n];!re(i)||!ie(i)||(Object.assign(i.style,e),Object.keys(l).forEach(function(s){var f=l[s];f===!1?i.removeAttribute(s):i.setAttribute(s,f===!0?"":f)}))})}function _r(r){var t=r.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 l=t.elements[e],i=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),f=s.reduce(function(a,u){return a[u]="",a},{});!re(l)||!ie(l)||(Object.assign(l.style,f),Object.keys(i).forEach(function(a){l.removeAttribute(a)}))})}}var Nt={name:"applyStyles",enabled:!0,phase:"write",fn:Lr,effect:_r,requires:["computeStyles"]};function se(r){return r.split("-")[0]}var ve=Math.max,Ke=Math.min,Le=Math.round;function _e(r,t){t===void 0&&(t=!1);var n=r.getBoundingClientRect(),e=1,l=1;if(re(r)&&t){var i=r.offsetHeight,s=r.offsetWidth;s>0&&(e=Le(n.width)/s||1),i>0&&(l=Le(n.height)/i||1)}return{width:n.width/e,height:n.height/l,top:n.top/l,right:n.right/e,bottom:n.bottom/l,left:n.left/e,x:n.left/e,y:n.top/l}}function ut(r){var t=_e(r),n=r.offsetWidth,e=r.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-e)<=1&&(e=t.height),{x:r.offsetLeft,y:r.offsetTop,width:n,height:e}}function Ct(r,t){var n=t.getRootNode&&t.getRootNode();if(r.contains(t))return!0;if(n&&xt(n)){var e=t;do{if(e&&r.isSameNode(e))return!0;e=e.parentNode||e.host}while(e)}return!1}function ce(r){return ae(r).getComputedStyle(r)}function jr(r){return["table","td","th"].indexOf(ie(r))>=0}function fe(r){return((Ee(r)?r.ownerDocument:r.document)||window.document).documentElement}function Ve(r){return ie(r)==="html"?r:r.assignedSlot||r.parentNode||(xt(r)?r.host:null)||fe(r)}function Rt(r){return!re(r)||ce(r).position==="fixed"?null:r.offsetParent}function Tr(r){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&re(r)){var e=ce(r);if(e.position==="fixed")return null}for(var l=Ve(r);re(l)&&["html","body"].indexOf(ie(l))<0;){var i=ce(l);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return l;l=l.parentNode}return null}function Me(r){for(var t=ae(r),n=Rt(r);n&&jr(n)&&ce(n).position==="static";)n=Rt(n);return n&&(ie(n)==="html"||ie(n)==="body"&&ce(n).position==="static")?t:n||Tr(r)||t}function dt(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function ke(r,t,n){return ve(r,Ke(t,n))}function Ir(r,t,n){var e=ke(r,t,n);return e>n?n:e}function Mt(){return{top:0,right:0,bottom:0,left:0}}function kt(r){return Object.assign({},Mt(),r)}function Dt(r,t){return t.reduce(function(n,e){return n[e]=r,n},{})}var Sr=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,kt(typeof t!="number"?t:Dt(t,Ne))};function wr(r){var t,n=r.state,e=r.name,l=r.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,f=se(n.placement),a=dt(f),u=[Q,te].indexOf(f)>=0,c=u?"height":"width";if(!(!i||!s)){var p=Sr(l.padding,n),v=ut(i),h=a==="y"?X:Q,L=a==="y"?ee:te,m=n.rects.reference[c]+n.rects.reference[a]-s[a]-n.rects.popper[c],j=s[a]-n.rects.reference[a],C=Me(i),N=C?a==="y"?C.clientHeight||0:C.clientWidth||0:0,R=m/2-j/2,d=p[h],I=N-v[c]-p[L],E=N/2-v[c]/2+R,S=ke(d,E,I),k=a;n.modifiersData[e]=(t={},t[k]=S,t.centerOffset=S-E,t)}}function Or(r){var t=r.state,n=r.options,e=n.element,l=e===void 0?"[data-popper-arrow]":e;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||Ct(t.elements.popper,l)&&(t.elements.arrow=l))}var xr={name:"arrow",enabled:!0,phase:"main",fn:wr,effect:Or,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function je(r){return r.split("-")[1]}var Nr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cr(r){var t=r.x,n=r.y,e=window,l=e.devicePixelRatio||1;return{x:Le(t*l)/l||0,y:Le(n*l)/l||0}}function Ht(r){var t,n=r.popper,e=r.popperRect,l=r.placement,i=r.variation,s=r.offsets,f=r.position,a=r.gpuAcceleration,u=r.adaptive,c=r.roundOffsets,p=r.isFixed,v=s.x,h=v===void 0?0:v,L=s.y,m=L===void 0?0:L,j=typeof c=="function"?c({x:h,y:m}):{x:h,y:m};h=j.x,m=j.y;var C=s.hasOwnProperty("x"),N=s.hasOwnProperty("y"),R=Q,d=X,I=window;if(u){var E=Me(n),S="clientHeight",k="clientWidth";if(E===ae(n)&&(E=fe(n),ce(E).position!=="static"&&f==="absolute"&&(S="scrollHeight",k="scrollWidth")),E=E,l===X||(l===Q||l===te)&&i===Ce){d=ee;var x=p&&I.visualViewport?I.visualViewport.height:E[S];m-=x-e.height,m*=a?1:-1}if(l===Q||(l===X||l===ee)&&i===Ce){R=te;var A=p&&I.visualViewport?I.visualViewport.width:E[k];h-=A-e.width,h*=a?1:-1}}var M=Object.assign({position:f},u&&Nr),O=c===!0?Cr({x:h,y:m}):{x:h,y:m};if(h=O.x,m=O.y,a){var H;return Object.assign({},M,(H={},H[d]=N?"0":"",H[R]=C?"0":"",H.transform=(I.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",H))}return Object.assign({},M,(t={},t[d]=N?m+"px":"",t[R]=C?h+"px":"",t.transform="",t))}function Rr(r){var t=r.state,n=r.options,e=n.gpuAcceleration,l=e===void 0?!0:e,i=n.adaptive,s=i===void 0?!0:i,f=n.roundOffsets,a=f===void 0?!0:f,u={placement:se(t.placement),variation:je(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ht(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ht(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Mr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Rr,data:{}},$e={passive:!0};function kr(r){var t=r.state,n=r.instance,e=r.options,l=e.scroll,i=l===void 0?!0:l,s=e.resize,f=s===void 0?!0:s,a=ae(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,$e)}),f&&a.addEventListener("resize",n.update,$e),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,$e)}),f&&a.removeEventListener("resize",n.update,$e)}}var Dr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kr,data:{}},Hr={left:"right",right:"left",bottom:"top",top:"bottom"};function Ye(r){return r.replace(/left|right|bottom|top/g,function(t){return Hr[t]})}var Gr={start:"end",end:"start"};function Gt(r){return r.replace(/start|end/g,function(t){return Gr[t]})}function ft(r){var t=ae(r),n=t.pageXOffset,e=t.pageYOffset;return{scrollLeft:n,scrollTop:e}}function pt(r){return _e(fe(r)).left+ft(r).scrollLeft}function Br(r){var t=ae(r),n=fe(r),e=t.visualViewport,l=n.clientWidth,i=n.clientHeight,s=0,f=0;return e&&(l=e.width,i=e.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=e.offsetLeft,f=e.offsetTop)),{width:l,height:i,x:s+pt(r),y:f}}function Pr(r){var t,n=fe(r),e=ft(r),l=(t=r.ownerDocument)==null?void 0:t.body,i=ve(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),s=ve(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),f=-e.scrollLeft+pt(r),a=-e.scrollTop;return ce(l||n).direction==="rtl"&&(f+=ve(n.clientWidth,l?l.clientWidth:0)-i),{width:i,height:s,x:f,y:a}}function ht(r){var t=ce(r),n=t.overflow,e=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+e)}function Bt(r){return["html","body","#document"].indexOf(ie(r))>=0?r.ownerDocument.body:re(r)&&ht(r)?r:Bt(Ve(r))}function De(r,t){var n;t===void 0&&(t=[]);var e=Bt(r),l=e===((n=r.ownerDocument)==null?void 0:n.body),i=ae(e),s=l?[i].concat(i.visualViewport||[],ht(e)?e:[]):e,f=t.concat(s);return l?f:f.concat(De(Ve(s)))}function vt(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function Wr(r){var t=_e(r);return t.top=t.top+r.clientTop,t.left=t.left+r.clientLeft,t.bottom=t.top+r.clientHeight,t.right=t.left+r.clientWidth,t.width=r.clientWidth,t.height=r.clientHeight,t.x=t.left,t.y=t.top,t}function Pt(r,t){return t===St?vt(Br(r)):Ee(t)?Wr(t):vt(Pr(fe(r)))}function Fr(r){var t=De(Ve(r)),n=["absolute","fixed"].indexOf(ce(r).position)>=0,e=n&&re(r)?Me(r):r;return Ee(e)?t.filter(function(l){return Ee(l)&&Ct(l,e)&&ie(l)!=="body"}):[]}function qr(r,t,n){var e=t==="clippingParents"?Fr(r):[].concat(t),l=[].concat(e,[n]),i=l[0],s=l.reduce(function(f,a){var u=Pt(r,a);return f.top=ve(u.top,f.top),f.right=Ke(u.right,f.right),f.bottom=Ke(u.bottom,f.bottom),f.left=ve(u.left,f.left),f},Pt(r,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Wt(r){var t=r.reference,n=r.element,e=r.placement,l=e?se(e):null,i=e?je(e):null,s=t.x+t.width/2-n.width/2,f=t.y+t.height/2-n.height/2,a;switch(l){case X:a={x:s,y:t.y-n.height};break;case ee:a={x:s,y:t.y+t.height};break;case te:a={x:t.x+t.width,y:f};break;case Q:a={x:t.x-n.width,y:f};break;default:a={x:t.x,y:t.y}}var u=l?dt(l):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Ae:a[u]=a[u]-(t[c]/2-n[c]/2);break;case Ce:a[u]=a[u]+(t[c]/2-n[c]/2);break}}return a}function He(r,t){t===void 0&&(t={});var n=t,e=n.placement,l=e===void 0?r.placement:e,i=n.boundary,s=i===void 0?ur:i,f=n.rootBoundary,a=f===void 0?St:f,u=n.elementContext,c=u===void 0?Re:u,p=n.altBoundary,v=p===void 0?!1:p,h=n.padding,L=h===void 0?0:h,m=kt(typeof L!="number"?L:Dt(L,Ne)),j=c===Re?dr:Re,C=r.rects.popper,N=r.elements[v?j:c],R=qr(Ee(N)?N:N.contextElement||fe(r.elements.popper),s,a),d=_e(r.elements.reference),I=Wt({reference:d,element:C,strategy:"absolute",placement:l}),E=vt(Object.assign({},C,I)),S=c===Re?E:d,k={top:R.top-S.top+m.top,bottom:S.bottom-R.bottom+m.bottom,left:R.left-S.left+m.left,right:S.right-R.right+m.right},x=r.modifiersData.offset;if(c===Re&&x){var A=x[l];Object.keys(k).forEach(function(M){var O=[te,ee].indexOf(M)>=0?1:-1,H=[X,ee].indexOf(M)>=0?"y":"x";k[M]+=A[H]*O})}return k}function Ur(r,t){t===void 0&&(t={});var n=t,e=n.placement,l=n.boundary,i=n.rootBoundary,s=n.padding,f=n.flipVariations,a=n.allowedAutoPlacements,u=a===void 0?Ot:a,c=je(e),p=c?f?wt:wt.filter(function(L){return je(L)===c}):Ne,v=p.filter(function(L){return u.indexOf(L)>=0});v.length===0&&(v=p);var h=v.reduce(function(L,m){return L[m]=He(r,{placement:m,boundary:l,rootBoundary:i,padding:s})[se(m)],L},{});return Object.keys(h).sort(function(L,m){return h[L]-h[m]})}function Kr(r){if(se(r)===ct)return[];var t=Ye(r);return[Gt(r),t,Gt(t)]}function Vr(r){var t=r.state,n=r.options,e=r.name;if(!t.modifiersData[e]._skip){for(var l=n.mainAxis,i=l===void 0?!0:l,s=n.altAxis,f=s===void 0?!0:s,a=n.fallbackPlacements,u=n.padding,c=n.boundary,p=n.rootBoundary,v=n.altBoundary,h=n.flipVariations,L=h===void 0?!0:h,m=n.allowedAutoPlacements,j=t.options.placement,C=se(j),N=C===j,R=a||(N||!L?[Ye(j)]:Kr(j)),d=[j].concat(R).reduce(function(U,$){return U.concat(se($)===ct?Ur(t,{placement:$,boundary:c,rootBoundary:p,padding:u,flipVariations:L,allowedAutoPlacements:m}):$)},[]),I=t.rects.reference,E=t.rects.popper,S=new Map,k=!0,x=d[0],A=0;A<d.length;A++){var M=d[A],O=se(M),H=je(M)===Ae,q=[X,ee].indexOf(O)>=0,V=q?"width":"height",b=He(t,{placement:M,boundary:c,rootBoundary:p,altBoundary:v,padding:u}),y=q?H?te:Q:H?ee:X;I[V]>E[V]&&(y=Ye(y));var _=Ye(y),D=[];if(i&&D.push(b[O]<=0),f&&D.push(b[y]<=0,b[_]<=0),D.every(function(U){return U})){x=M,k=!1;break}S.set(M,D)}if(k)for(var T=L?3:1,B=function($){var Y=d.find(function(J){var ue=S.get(J);if(ue)return ue.slice(0,$).every(function(Se){return Se})});if(Y)return x=Y,"break"},W=T;W>0;W--){var K=B(W);if(K==="break")break}t.placement!==x&&(t.modifiersData[e]._skip=!0,t.placement=x,t.reset=!0)}}var $r={name:"flip",enabled:!0,phase:"main",fn:Vr,requiresIfExists:["offset"],data:{_skip:!1}};function Ft(r,t,n){return n===void 0&&(n={x:0,y:0}),{top:r.top-t.height-n.y,right:r.right-t.width+n.x,bottom:r.bottom-t.height+n.y,left:r.left-t.width-n.x}}function qt(r){return[X,te,ee,Q].some(function(t){return r[t]>=0})}function Yr(r){var t=r.state,n=r.name,e=t.rects.reference,l=t.rects.popper,i=t.modifiersData.preventOverflow,s=He(t,{elementContext:"reference"}),f=He(t,{altBoundary:!0}),a=Ft(s,e),u=Ft(f,l,i),c=qt(a),p=qt(u);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}var zr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Yr};function Xr(r,t,n){var e=se(r),l=[Q,X].indexOf(e)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:r})):n,s=i[0],f=i[1];return s=s||0,f=(f||0)*l,[Q,te].indexOf(e)>=0?{x:f,y:s}:{x:s,y:f}}function Qr(r){var t=r.state,n=r.options,e=r.name,l=n.offset,i=l===void 0?[0,0]:l,s=Ot.reduce(function(c,p){return c[p]=Xr(p,t.rects,i),c},{}),f=s[t.placement],a=f.x,u=f.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=u),t.modifiersData[e]=s}var Jr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Qr};function Zr(r){var t=r.state,n=r.name;t.modifiersData[n]=Wt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var en={name:"popperOffsets",enabled:!0,phase:"read",fn:Zr,data:{}};function tn(r){return r==="x"?"y":"x"}function rn(r){var t=r.state,n=r.options,e=r.name,l=n.mainAxis,i=l===void 0?!0:l,s=n.altAxis,f=s===void 0?!1:s,a=n.boundary,u=n.rootBoundary,c=n.altBoundary,p=n.padding,v=n.tether,h=v===void 0?!0:v,L=n.tetherOffset,m=L===void 0?0:L,j=He(t,{boundary:a,rootBoundary:u,padding:p,altBoundary:c}),C=se(t.placement),N=je(t.placement),R=!N,d=dt(C),I=tn(d),E=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,x=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,A=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(E){if(i){var H,q=d==="y"?X:Q,V=d==="y"?ee:te,b=d==="y"?"height":"width",y=E[d],_=y+j[q],D=y-j[V],T=h?-k[b]/2:0,B=N===Ae?S[b]:k[b],W=N===Ae?-k[b]:-S[b],K=t.elements.arrow,U=h&&K?ut(K):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Mt(),Y=$[q],J=$[V],ue=ke(0,S[b],U[b]),Se=R?S[b]/2-T-ue-Y-A.mainAxis:B-ue-Y-A.mainAxis,pe=R?-S[b]/2+T+ue+J+A.mainAxis:W+ue+J+A.mainAxis,we=t.elements.arrow&&Me(t.elements.arrow),Je=we?d==="y"?we.clientTop||0:we.clientLeft||0:0,Pe=(H=M?.[d])!=null?H:0,Ze=y+Se-Pe-Je,et=y+pe-Pe,We=ke(h?Ke(_,Ze):_,y,h?ve(D,et):D);E[d]=We,O[d]=We-y}if(f){var Fe,tt=d==="x"?X:Q,rt=d==="x"?ee:te,de=E[I],he=I==="y"?"height":"width",qe=de+j[tt],ye=de-j[rt],Ue=[X,Q].indexOf(C)!==-1,nt=(Fe=M?.[I])!=null?Fe:0,at=Ue?qe:de-S[he]-k[he]-nt+A.altAxis,ot=Ue?de+S[he]+k[he]-nt-A.altAxis:ye,it=h&&Ue?Ir(at,de,ot):ke(h?at:qe,de,h?ot:ye);E[I]=it,O[I]=it-de}t.modifiersData[e]=O}}var nn={name:"preventOverflow",enabled:!0,phase:"main",fn:rn,requiresIfExists:["offset"]};function an(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function on(r){return r===ae(r)||!re(r)?ft(r):an(r)}function sn(r){var t=r.getBoundingClientRect(),n=Le(t.width)/r.offsetWidth||1,e=Le(t.height)/r.offsetHeight||1;return n!==1||e!==1}function ln(r,t,n){n===void 0&&(n=!1);var e=re(t),l=re(t)&&sn(t),i=fe(t),s=_e(r,l),f={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(e||!e&&!n)&&((ie(t)!=="body"||ht(i))&&(f=on(t)),re(t)?(a=_e(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):i&&(a.x=pt(i))),{x:s.left+f.scrollLeft-a.x,y:s.top+f.scrollTop-a.y,width:s.width,height:s.height}}function cn(r){var t=new Map,n=new Set,e=[];r.forEach(function(i){t.set(i.name,i)});function l(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(f){if(!n.has(f)){var a=t.get(f);a&&l(a)}}),e.push(i)}return r.forEach(function(i){n.has(i.name)||l(i)}),e}function un(r){var t=cn(r);return Er.reduce(function(n,e){return n.concat(t.filter(function(l){return l.phase===e}))},[])}function dn(r){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(r())})})),t}}function fn(r){var t=r.reduce(function(n,e){var l=n[e.name];return n[e.name]=l?Object.assign({},l,e,{options:Object.assign({},l.options,e.options),data:Object.assign({},l.data,e.data)}):e,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ut={placement:"bottom",modifiers:[],strategy:"absolute"};function Kt(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect=="function")})}function pn(r){r===void 0&&(r={});var t=r,n=t.defaultModifiers,e=n===void 0?[]:n,l=t.defaultOptions,i=l===void 0?Ut:l;return function(f,a,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ut,i),modifiersData:{},elements:{reference:f,popper:a},attributes:{},styles:{}},p=[],v=!1,h={state:c,setOptions:function(C){var N=typeof C=="function"?C(c.options):C;m(),c.options=Object.assign({},i,c.options,N),c.scrollParents={reference:Ee(f)?De(f):f.contextElement?De(f.contextElement):[],popper:De(a)};var R=un(fn([].concat(e,c.options.modifiers)));return c.orderedModifiers=R.filter(function(d){return d.enabled}),L(),h.update()},forceUpdate:function(){if(!v){var C=c.elements,N=C.reference,R=C.popper;if(Kt(N,R)){c.rects={reference:ln(N,Me(R),c.options.strategy==="fixed"),popper:ut(R)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(A){return c.modifiersData[A.name]=Object.assign({},A.data)});for(var d=0;d<c.orderedModifiers.length;d++){if(c.reset===!0){c.reset=!1,d=-1;continue}var I=c.orderedModifiers[d],E=I.fn,S=I.options,k=S===void 0?{}:S,x=I.name;typeof E=="function"&&(c=E({state:c,options:k,name:x,instance:h})||c)}}}},update:dn(function(){return new Promise(function(j){h.forceUpdate(),j(c)})}),destroy:function(){m(),v=!0}};if(!Kt(f,a))return h;h.setOptions(u).then(function(j){!v&&u.onFirstUpdate&&u.onFirstUpdate(j)});function L(){c.orderedModifiers.forEach(function(j){var C=j.name,N=j.options,R=N===void 0?{}:N,d=j.effect;if(typeof d=="function"){var I=d({state:c,name:C,instance:h,options:R}),E=function(){};p.push(I||E)}})}function m(){p.forEach(function(j){return j()}),p=[]}return h}}var hn=[Dr,en,Mr,Nt,Jr,$r,nn,xr,zr],vn=pn({defaultModifiers:hn}),gn="tippy-box",Vt="tippy-content",yn="tippy-backdrop",$t="tippy-arrow",Yt="tippy-svg-arrow",ge={passive:!0,capture:!0},zt=function(){return document.body};function gt(r,t,n){if(Array.isArray(r)){var e=r[t];return e??(Array.isArray(n)?n[t]:n)}return r}function yt(r,t){var n={}.toString.call(r);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function Xt(r,t){return typeof r=="function"?r.apply(void 0,t):r}function Qt(r,t){if(t===0)return r;var n;return function(e){clearTimeout(n),n=setTimeout(function(){r(e)},t)}}function mn(r){return r.split(/\s+/).filter(Boolean)}function Te(r){return[].concat(r)}function Jt(r,t){r.indexOf(t)===-1&&r.push(t)}function bn(r){return r.filter(function(t,n){return r.indexOf(t)===n})}function An(r){return r.split("-")[0]}function ze(r){return[].slice.call(r)}function Zt(r){return Object.keys(r).reduce(function(t,n){return r[n]!==void 0&&(t[n]=r[n]),t},{})}function Ge(){return document.createElement("div")}function Xe(r){return["Element","Fragment"].some(function(t){return yt(r,t)})}function En(r){return yt(r,"NodeList")}function Ln(r){return yt(r,"MouseEvent")}function _n(r){return!!(r&&r._tippy&&r._tippy.reference===r)}function jn(r){return Xe(r)?[r]:En(r)?ze(r):Array.isArray(r)?r:ze(document.querySelectorAll(r))}function mt(r,t){r.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function er(r,t){r.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Tn(r){var t,n=Te(r),e=n[0];return e!=null&&(t=e.ownerDocument)!=null&&t.body?e.ownerDocument:document}function In(r,t){var n=t.clientX,e=t.clientY;return r.every(function(l){var i=l.popperRect,s=l.popperState,f=l.props,a=f.interactiveBorder,u=An(s.placement),c=s.modifiersData.offset;if(!c)return!0;var p=u==="bottom"?c.top.y:0,v=u==="top"?c.bottom.y:0,h=u==="right"?c.left.x:0,L=u==="left"?c.right.x:0,m=i.top-e+p>a,j=e-i.bottom-v>a,C=i.left-n+h>a,N=n-i.right-L>a;return m||j||C||N})}function bt(r,t,n){var e=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(l){r[e](l,n)})}function tr(r,t){for(var n=t;n;){var e;if(r.contains(n))return!0;n=n.getRootNode==null||(e=n.getRootNode())==null?void 0:e.host}return!1}var le={isTouch:!1},rr=0;function Sn(){le.isTouch||(le.isTouch=!0,window.performance&&document.addEventListener("mousemove",nr))}function nr(){var r=performance.now();r-rr<20&&(le.isTouch=!1,document.removeEventListener("mousemove",nr)),rr=r}function wn(){var r=document.activeElement;if(_n(r)){var t=r._tippy;r.blur&&!t.state.isVisible&&r.blur()}}function On(){document.addEventListener("touchstart",Sn,ge),window.addEventListener("blur",wn)}var xn=typeof window<"u"&&typeof document<"u",Nn=xn?!!window.msCrypto:!1,Cn={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Rn={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},oe=Object.assign({appendTo:zt,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},Cn,Rn),Mn=Object.keys(oe),kn=function(t){var n=Object.keys(t);n.forEach(function(e){oe[e]=t[e]})};function ar(r){var t=r.plugins||[],n=t.reduce(function(e,l){var i=l.name,s=l.defaultValue;if(i){var f;e[i]=r[i]!==void 0?r[i]:(f=oe[i])!=null?f:s}return e},{});return Object.assign({},r,n)}function Dn(r,t){var n=t?Object.keys(ar(Object.assign({},oe,{plugins:t}))):Mn,e=n.reduce(function(l,i){var s=(r.getAttribute("data-tippy-"+i)||"").trim();if(!s)return l;if(i==="content")l[i]=s;else try{l[i]=JSON.parse(s)}catch{l[i]=s}return l},{});return e}function or(r,t){var n=Object.assign({},t,{content:Xt(t.content,[r])},t.ignoreAttributes?{}:Dn(r,t.plugins));return n.aria=Object.assign({},oe.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var Hn=function(){return"innerHTML"};function At(r,t){r[Hn()]=t}function ir(r){var t=Ge();return r===!0?t.className=$t:(t.className=Yt,Xe(r)?t.appendChild(r):At(t,r)),t}function sr(r,t){Xe(t.content)?(At(r,""),r.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?At(r,t.content):r.textContent=t.content)}function Et(r){var t=r.firstElementChild,n=ze(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(Vt)}),arrow:n.find(function(e){return e.classList.contains($t)||e.classList.contains(Yt)}),backdrop:n.find(function(e){return e.classList.contains(yn)})}}function lr(r){var t=Ge(),n=Ge();n.className=gn,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var e=Ge();e.className=Vt,e.setAttribute("data-state","hidden"),sr(e,r.props),t.appendChild(n),n.appendChild(e),l(r.props,r.props);function l(i,s){var f=Et(t),a=f.box,u=f.content,c=f.arrow;s.theme?a.setAttribute("data-theme",s.theme):a.removeAttribute("data-theme"),typeof s.animation=="string"?a.setAttribute("data-animation",s.animation):a.removeAttribute("data-animation"),s.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?a.setAttribute("role",s.role):a.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&sr(u,r.props),s.arrow?c?i.arrow!==s.arrow&&(a.removeChild(c),a.appendChild(ir(s.arrow))):a.appendChild(ir(s.arrow)):c&&a.removeChild(c)}return{popper:t,onUpdate:l}}lr.$$tippy=!0;var Gn=1,Qe=[],Lt=[];function Bn(r,t){var n=or(r,Object.assign({},oe,ar(Zt(t)))),e,l,i,s=!1,f=!1,a=!1,u=!1,c,p,v,h=[],L=Qt(Ze,n.interactiveDebounce),m,j=Gn++,C=null,N=bn(n.plugins),R={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},d={id:j,reference:r,popper:Ge(),popperInstance:C,props:n,state:R,plugins:N,clearDelayTimeouts:at,setProps:ot,setContent:it,show:Kn,hide:Vn,hideWithInteractivity:$n,enable:Ue,disable:nt,unmount:Yn,destroy:zn};if(!n.render)return d;var I=n.render(d),E=I.popper,S=I.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+d.id,d.popper=E,r._tippy=d,E._tippy=d;var k=N.map(function(g){return g.fn(d)}),x=r.hasAttribute("aria-expanded");return we(),T(),y(),_("onCreate",[d]),n.showOnCreate&&qe(),E.addEventListener("mouseenter",function(){d.props.interactive&&d.state.isVisible&&d.clearDelayTimeouts()}),E.addEventListener("mouseleave",function(){d.props.interactive&&d.props.trigger.indexOf("mouseenter")>=0&&q().addEventListener("mousemove",L)}),d;function A(){var g=d.props.touch;return Array.isArray(g)?g:[g,0]}function M(){return A()[0]==="hold"}function O(){var g;return!!((g=d.props.render)!=null&&g.$$tippy)}function H(){return m||r}function q(){var g=H().parentNode;return g?Tn(g):document}function V(){return Et(E)}function b(g){return d.state.isMounted&&!d.state.isVisible||le.isTouch||c&&c.type==="focus"?0:gt(d.props.delay,g?0:1,oe.delay)}function y(g){g===void 0&&(g=!1),E.style.pointerEvents=d.props.interactive&&!g?"":"none",E.style.zIndex=""+d.props.zIndex}function _(g,w,G){if(G===void 0&&(G=!0),k.forEach(function(P){P[g]&&P[g].apply(P,w)}),G){var F;(F=d.props)[g].apply(F,w)}}function D(){var g=d.props.aria;if(g.content){var w="aria-"+g.content,G=E.id,F=Te(d.props.triggerTarget||r);F.forEach(function(P){var z=P.getAttribute(w);if(d.state.isVisible)P.setAttribute(w,z?z+" "+G:G);else{var ne=z&&z.replace(G,"").trim();ne?P.setAttribute(w,ne):P.removeAttribute(w)}})}}function T(){if(!(x||!d.props.aria.expanded)){var g=Te(d.props.triggerTarget||r);g.forEach(function(w){d.props.interactive?w.setAttribute("aria-expanded",d.state.isVisible&&w===H()?"true":"false"):w.removeAttribute("aria-expanded")})}}function B(){q().removeEventListener("mousemove",L),Qe=Qe.filter(function(g){return g!==L})}function W(g){if(!(le.isTouch&&(a||g.type==="mousedown"))){var w=g.composedPath&&g.composedPath()[0]||g.target;if(!(d.props.interactive&&tr(E,w))){if(Te(d.props.triggerTarget||r).some(function(G){return tr(G,w)})){if(le.isTouch||d.state.isVisible&&d.props.trigger.indexOf("click")>=0)return}else _("onClickOutside",[d,g]);d.props.hideOnClick===!0&&(d.clearDelayTimeouts(),d.hide(),f=!0,setTimeout(function(){f=!1}),d.state.isMounted||Y())}}}function K(){a=!0}function U(){a=!1}function $(){var g=q();g.addEventListener("mousedown",W,!0),g.addEventListener("touchend",W,ge),g.addEventListener("touchstart",U,ge),g.addEventListener("touchmove",K,ge)}function Y(){var g=q();g.removeEventListener("mousedown",W,!0),g.removeEventListener("touchend",W,ge),g.removeEventListener("touchstart",U,ge),g.removeEventListener("touchmove",K,ge)}function J(g,w){Se(g,function(){!d.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&w()})}function ue(g,w){Se(g,w)}function Se(g,w){var G=V().box;function F(P){P.target===G&&(bt(G,"remove",F),w())}if(g===0)return w();bt(G,"remove",p),bt(G,"add",F),p=F}function pe(g,w,G){G===void 0&&(G=!1);var F=Te(d.props.triggerTarget||r);F.forEach(function(P){P.addEventListener(g,w,G),h.push({node:P,eventType:g,handler:w,options:G})})}function we(){M()&&(pe("touchstart",Pe,{passive:!0}),pe("touchend",et,{passive:!0})),mn(d.props.trigger).forEach(function(g){if(g!=="manual")switch(pe(g,Pe),g){case"mouseenter":pe("mouseleave",et);break;case"focus":pe(Nn?"focusout":"blur",We);break;case"focusin":pe("focusout",We);break}})}function Je(){h.forEach(function(g){var w=g.node,G=g.eventType,F=g.handler,P=g.options;w.removeEventListener(G,F,P)}),h=[]}function Pe(g){var w,G=!1;if(!(!d.state.isEnabled||Fe(g)||f)){var F=((w=c)==null?void 0:w.type)==="focus";c=g,m=g.currentTarget,T(),!d.state.isVisible&&Ln(g)&&Qe.forEach(function(P){return P(g)}),g.type==="click"&&(d.props.trigger.indexOf("mouseenter")<0||s)&&d.props.hideOnClick!==!1&&d.state.isVisible?G=!0:qe(g),g.type==="click"&&(s=!G),G&&!F&&ye(g)}}function Ze(g){var w=g.target,G=H().contains(w)||E.contains(w);if(!(g.type==="mousemove"&&G)){var F=he().concat(E).map(function(P){var z,ne=P._tippy,Oe=(z=ne.popperInstance)==null?void 0:z.state;return Oe?{popperRect:P.getBoundingClientRect(),popperState:Oe,props:n}:null}).filter(Boolean);In(F,g)&&(B(),ye(g))}}function et(g){var w=Fe(g)||d.props.trigger.indexOf("click")>=0&&s;if(!w){if(d.props.interactive){d.hideWithInteractivity(g);return}ye(g)}}function We(g){d.props.trigger.indexOf("focusin")<0&&g.target!==H()||d.props.interactive&&g.relatedTarget&&E.contains(g.relatedTarget)||ye(g)}function Fe(g){return le.isTouch?M()!==g.type.indexOf("touch")>=0:!1}function tt(){rt();var g=d.props,w=g.popperOptions,G=g.placement,F=g.offset,P=g.getReferenceClientRect,z=g.moveTransition,ne=O()?Et(E).arrow:null,Oe=P?{getBoundingClientRect:P,contextElement:P.contextElement||H()}:r,cr={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(st){var xe=st.state;if(O()){var Xn=V(),Tt=Xn.box;["placement","reference-hidden","escaped"].forEach(function(lt){lt==="placement"?Tt.setAttribute("data-placement",xe.placement):xe.attributes.popper["data-popper-"+lt]?Tt.setAttribute("data-"+lt,""):Tt.removeAttribute("data-"+lt)}),xe.attributes.popper={}}}},me=[{name:"offset",options:{offset:F}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!z}},cr];O()&&ne&&me.push({name:"arrow",options:{element:ne,padding:3}}),me.push.apply(me,w?.modifiers||[]),d.popperInstance=vn(Oe,E,Object.assign({},w,{placement:G,onFirstUpdate:v,modifiers:me}))}function rt(){d.popperInstance&&(d.popperInstance.destroy(),d.popperInstance=null)}function de(){var g=d.props.appendTo,w,G=H();d.props.interactive&&g===zt||g==="parent"?w=G.parentNode:w=Xt(g,[G]),w.contains(E)||w.appendChild(E),d.state.isMounted=!0,tt()}function he(){return ze(E.querySelectorAll("[data-tippy-root]"))}function qe(g){d.clearDelayTimeouts(),g&&_("onTrigger",[d,g]),$();var w=b(!0),G=A(),F=G[0],P=G[1];le.isTouch&&F==="hold"&&P&&(w=P),w?e=setTimeout(function(){d.show()},w):d.show()}function ye(g){if(d.clearDelayTimeouts(),_("onUntrigger",[d,g]),!d.state.isVisible){Y();return}if(!(d.props.trigger.indexOf("mouseenter")>=0&&d.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(g.type)>=0&&s)){var w=b(!1);w?l=setTimeout(function(){d.state.isVisible&&d.hide()},w):i=requestAnimationFrame(function(){d.hide()})}}function Ue(){d.state.isEnabled=!0}function nt(){d.hide(),d.state.isEnabled=!1}function at(){clearTimeout(e),clearTimeout(l),cancelAnimationFrame(i)}function ot(g){if(!d.state.isDestroyed){_("onBeforeUpdate",[d,g]),Je();var w=d.props,G=or(r,Object.assign({},w,Zt(g),{ignoreAttributes:!0}));d.props=G,we(),w.interactiveDebounce!==G.interactiveDebounce&&(B(),L=Qt(Ze,G.interactiveDebounce)),w.triggerTarget&&!G.triggerTarget?Te(w.triggerTarget).forEach(function(F){F.removeAttribute("aria-expanded")}):G.triggerTarget&&r.removeAttribute("aria-expanded"),T(),y(),S&&S(w,G),d.popperInstance&&(tt(),he().forEach(function(F){requestAnimationFrame(F._tippy.popperInstance.forceUpdate)})),_("onAfterUpdate",[d,g])}}function it(g){d.setProps({content:g})}function Kn(){var g=d.state.isVisible,w=d.state.isDestroyed,G=!d.state.isEnabled,F=le.isTouch&&!d.props.touch,P=gt(d.props.duration,0,oe.duration);if(!(g||w||G||F)&&!H().hasAttribute("disabled")&&(_("onShow",[d],!1),d.props.onShow(d)!==!1)){if(d.state.isVisible=!0,O()&&(E.style.visibility="visible"),y(),$(),d.state.isMounted||(E.style.transition="none"),O()){var z=V(),ne=z.box,Oe=z.content;mt([ne,Oe],0)}v=function(){var me;if(!(!d.state.isVisible||u)){if(u=!0,E.offsetHeight,E.style.transition=d.props.moveTransition,O()&&d.props.animation){var jt=V(),st=jt.box,xe=jt.content;mt([st,xe],P),er([st,xe],"visible")}D(),T(),Jt(Lt,d),(me=d.popperInstance)==null||me.forceUpdate(),_("onMount",[d]),d.props.animation&&O()&&ue(P,function(){d.state.isShown=!0,_("onShown",[d])})}},de()}}function Vn(){var g=!d.state.isVisible,w=d.state.isDestroyed,G=!d.state.isEnabled,F=gt(d.props.duration,1,oe.duration);if(!(g||w||G)&&(_("onHide",[d],!1),d.props.onHide(d)!==!1)){if(d.state.isVisible=!1,d.state.isShown=!1,u=!1,s=!1,O()&&(E.style.visibility="hidden"),B(),Y(),y(!0),O()){var P=V(),z=P.box,ne=P.content;d.props.animation&&(mt([z,ne],F),er([z,ne],"hidden"))}D(),T(),d.props.animation?O()&&J(F,d.unmount):d.unmount()}}function $n(g){q().addEventListener("mousemove",L),Jt(Qe,L),L(g)}function Yn(){d.state.isVisible&&d.hide(),d.state.isMounted&&(rt(),he().forEach(function(g){g._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),Lt=Lt.filter(function(g){return g!==d}),d.state.isMounted=!1,_("onHidden",[d]))}function zn(){d.state.isDestroyed||(d.clearDelayTimeouts(),d.unmount(),Je(),delete r._tippy,d.state.isDestroyed=!0,_("onDestroy",[d]))}}function Ie(r,t){t===void 0&&(t={});var n=oe.plugins.concat(t.plugins||[]);On();var e=Object.assign({},t,{plugins:n}),l=jn(r),i=l.reduce(function(s,f){var a=f&&Bn(f,e);return a&&s.push(a),s},[]);return Xe(r)?i[0]:i}Ie.defaultProps=oe,Ie.setDefaultProps=kn,Ie.currentInput=le,Object.assign({},Nt,{effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow)}}),Ie.setDefaultProps({render:lr});var Pn=function(t){if(t.getAttribute("hidden")||t.offsetWidth===0&&t.offsetHeight===0)return!0;var n=getComputedStyle(t);return n.getPropertyValue("display")==="none"},_t=function(t){var n=document.createElement("div");return n.textContent=t,n.innerHTML.replaceAll('"',""").replaceAll("'","'").replaceAll("`","`")},o={langStrings:{},addI18n:function(t){this.langStrings=t},_:function(t){return this.translate(t)},sprintf:function(t){for(var n=this._(t),e=arguments.length,l=new Array(e>1?e-1:0),i=1;i<e;i++)l[i-1]=arguments[i];return l&&l.length&&l.forEach(function(s){n=n.replace(/%\([a-zA-z]+\)/,s)}),n},translate:function(t){return this.langStrings[t]||t}},Be={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"]};Be.embeddedContent=Be.videoContent+", "+Be.audioContent;var Wn=function(t,n){var e=n?Object.assign(Be,n):Be;if(["langCode","checkRoot"].forEach(function(i){if(!e[i])throw new Error("Option ["+i+"] is required")}),e.readabilityRoot||(e.readabilityRoot=e.checkRoot),e.containerIgnore){var l=e.containerIgnore.split(",").map(function(i){return i+" *, "+i});e.containerIgnore='[aria-hidden="true"], #jooa11y-container *, .jooa11y-instance *, '+l.join(", ")}else e.containerIgnore='[aria-hidden="true"], #jooa11y-container *, .jooa11y-instance *';return t.containerIgnore=e.containerIgnore,t.imageIgnore=t.containerIgnore+', [role="presentation"], [src^="https://trck.youvisit.com"]',e.imageIgnore&&(t.imageIgnore=e.imageIgnore+","+t.imageIgnore),t.headerIgnore=e.containerIgnore,e.headerIgnore&&(t.headerIgnore=e.headerIgnore+","+t.headerIgnore),t.linkIgnore=t.containerIgnore+', [aria-hidden="true"], .anchorjs-link',e.linkIgnore&&(t.linkIgnore=e.linkIgnore+","+t.linkIgnore),e},Fn=function(){function r(n){var e=this;this.checkAll=be(Z().mark(function c(){return Z().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:e.errorCount=0,e.warningCount=0,e.$root=document.querySelector(e.options.checkRoot),e.findElements(),e.checkHeaders(),e.checkLinkText(),e.checkUnderline(),e.checkAltText(),localStorage.getItem("jooa11y-remember-contrast")==="On"&&e.checkContrast(),localStorage.getItem("jooa11y-remember-labels")==="On"&&e.checkLabels(),localStorage.getItem("jooa11y-remember-links-advanced")==="On"&&e.checkLinksAdvanced(),localStorage.getItem("jooa11y-remember-readability")==="On"&&e.checkReadability(),e.checkEmbeddedContent(),e.checkQA(),e.panelActive?e.resetAll():e.updatePanel(),e.initializeTooltips(),e.detectOverflow(),e.nudge(),document.getElementsByClassName("jooa11y-on").length||e.updateBadge();case 19:case"end":return v.stop()}},c)})),this.nudge=function(){var c=document.querySelectorAll(".jooa11y-instance, .jooa11y-instance-inline");c.forEach(function(p){var v=p.nextElementSibling;v!==null&&(v.classList.contains("jooa11y-instance")||v.classList.contains("jooa11y-instance-inline"))&&v.querySelector("button").setAttribute("style","margin: -10px -20px !important;")})},this.buildPanel=function(){var c=document.getElementById("jooa11y-outline-toggle"),p=document.getElementById("jooa11y-outline-panel"),v=document.getElementById("jooa11y-outline-list"),h=document.getElementById("jooa11y-settings-toggle"),L=document.getElementById("jooa11y-settings-panel"),m=document.getElementById("jooa11y-settings-content"),j=document.querySelectorAll(".jooa11y-heading-label");c.addEventListener("click",function(){c.getAttribute("aria-expanded")==="true"?(c.classList.remove("jooa11y-outline-active"),p.classList.remove("jooa11y-active"),c.textContent=o._("SHOW_OUTLINE"),c.setAttribute("aria-expanded","false"),localStorage.setItem("jooa11y-remember-outline","Closed")):(c.classList.add("jooa11y-outline-active"),p.classList.add("jooa11y-active"),c.textContent=o._("HIDE_OUTLINE"),c.setAttribute("aria-expanded","true"),localStorage.setItem("jooa11y-remember-outline","Opened")),document.querySelector("#jooa11y-outline-header > h2").focus(),j.forEach(function(I){return I.classList.toggle("jooa11y-label-visible")}),L.classList.remove("jooa11y-active"),h.classList.remove("jooa11y-settings-active"),h.setAttribute("aria-expanded","false"),h.textContent=o._("SHOW_SETTINGS"),v.clientHeight>250&&v.setAttribute("tabindex","0")}),localStorage.getItem("jooa11y-remember-outline")==="Opened"&&(c.classList.add("jooa11y-outline-active"),p.classList.add("jooa11y-active"),c.textContent=o._("HIDE_OUTLINE"),c.setAttribute("aria-expanded","true"),j.forEach(function(I){return I.classList.toggle("jooa11y-label-visible")}),v.clientHeight>250&&v.setAttribute("tabindex","0")),h.addEventListener("click",function(){h.getAttribute("aria-expanded")==="true"?(h.classList.remove("jooa11y-settings-active"),L.classList.remove("jooa11y-active"),h.textContent=o._("SHOW_SETTINGS"),h.setAttribute("aria-expanded","false")):(h.classList.add("jooa11y-settings-active"),L.classList.add("jooa11y-active"),h.textContent=o._("HIDE_SETTINGS"),h.setAttribute("aria-expanded","true")),document.querySelector("#jooa11y-settings-header > h2").focus(),p.classList.remove("jooa11y-active"),c.classList.remove("jooa11y-outline-active"),c.setAttribute("aria-expanded","false"),c.textContent=o._("SHOW_OUTLINE"),j.forEach(function(I){return I.classList.remove("jooa11y-label-visible")}),localStorage.setItem("jooa11y-remember-outline","Closed"),m.clientHeight>350&&m.setAttribute("tabindex","0")}),document.getElementById("jooa11y-panel-controls").addEventListener("keydown",function(I){var E=document.querySelectorAll("#jooa11y-outline-toggle[role=tab], #jooa11y-settings-toggle[role=tab]");if(I.key==="ArrowRight"){for(var S=0;S<E.length;S++)if(E[S].getAttribute("aria-expanded")==="true"||E[S].getAttribute("aria-expanded")==="false"){E[S+1].focus(),I.preventDefault();break}}if(I.key==="ArrowDown"){for(var k=0;k<E.length;k++)if(E[k].getAttribute("aria-expanded")==="true"||E[k].getAttribute("aria-expanded")==="false"){E[k+1].focus(),I.preventDefault();break}}if(I.key==="ArrowLeft"){for(var x=E.length-1;x>0;x--)if(E[x].getAttribute("aria-expanded")==="true"||E[x].getAttribute("aria-expanded")==="false"){E[x-1].focus(),I.preventDefault();break}}if(I.key==="ArrowUp"){for(var A=E.length-1;A>0;A--)if(E[A].getAttribute("aria-expanded")==="true"||E[A].getAttribute("aria-expanded")==="false"){E[A-1].focus(),I.preventDefault();break}}});var C=document.getElementById("jooa11y-close-alert"),N=document.getElementById("jooa11y-panel-alert"),R=document.getElementById("jooa11y-panel-alert-text"),d=document.getElementById("jooa11y-cycle-toggle");C.addEventListener("click",function(){for(N.classList.remove("jooa11y-active");R.firstChild;)R.removeChild(R.firstChild);document.querySelectorAll(".jooa11y-pulse-border").forEach(function(I){return I.classList.remove("jooa11y-pulse-border")}),d.focus()})},this.skipToIssue=function(){var c=0,p=document.querySelectorAll(".jooa11y-btn").length;document.addEventListener("keyup",function(L){(L.altKey&&L.code==="Period"||L.code=="KeyS")&&(h(),L.preventDefault())});var v=document.getElementById("jooa11y-cycle-toggle");v.addEventListener("click",function(L){h(),L.preventDefault()});var h=function(){var m=document.querySelectorAll(".jooa11y-btn"),j=document.getElementById("jooa11y-panel-alert"),C=document.getElementById("jooa11y-panel-alert-text"),N=document.getElementById("jooa11y-panel-alert-preview"),R=function(x,A,M){for(;x!==null;){var O=window.getComputedStyle(x),H=O.getPropertyValue(A);if(H===M)return x;x=x.parentElement}return null},d=function(x){var A=x.getBoundingClientRect(),M=window.pageYOffset||document.documentElement.scrollTop;return{top:A.top+M}},I,E=m[c].offsetTop;if(E===0){var S=R(m[c],"display","none");I=d(S.previousElementSibling).top-50}else I=d(m[c]).top-50;E>=0&&(setTimeout(function(){window.scrollTo({top:I,behavior:"smooth"})},1),m.forEach(function(k){var x=R(k,"display","none");if(x!==null){var A=x.previousElementSibling;A.classList.add("jooa11y-pulse-border")}})),m[c].focus(),E===0?(j.classList.add("jooa11y-active"),C.textContent=""+o._("PANEL_STATUS_HIDDEN"),N.innerHTML=m[c].getAttribute("data-tippy-content")):E<1&&(j.classList.remove("jooa11y-active"),document.querySelectorAll(".jooa11y-pulse-border").forEach(function(k){return k.classList.remove("jooa11y-pulse-border")})),c+=1,c>=p&&(c=0)}},this.containerIgnore="",this.imageIgnore="",this.headerIgnore="",this.linkIgnore="",this.options=Wn(this,n);var l="<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>",i=document.createElement("div");i.setAttribute("id","jooa11y-container"),i.setAttribute("role","region"),i.setAttribute("lang",this.options.langCode),i.setAttribute("aria-label",o._("CONTAINER_LABEL"));var s=localStorage.getItem("jooa11y-remember-contrast")==="On",f=localStorage.getItem("jooa11y-remember-labels")==="On",a=localStorage.getItem("jooa11y-remember-links-advanced")==="On",u=localStorage.getItem("jooa11y-remember-readability")==="On";i.innerHTML='<button type="button" aria-expanded="false" id="jooa11y-toggle" aria-describedby="jooa11y-notification-badge" aria-label="'+o._("MAIN_TOGGLE_LABEL")+`"> `+l+` <div id="jooa11y-notification-badge"> <span id="jooa11y-notification-count"></span> </div> </button><div id="jooa11y-panel">`+(`<div id="jooa11y-outline-panel" role="tabpanel" aria-labelledby="jooa11y-outline-header"> <div id="jooa11y-outline-header" class="jooa11y-header-text"> <h2 tabindex="-1">`+o._("PAGE_OUTLINE")+`</h2> </div> <div id="jooa11y-outline-content"> <ul id="jooa11y-outline-list"></ul> </div>`)+(`<div id="jooa11y-readability-panel"> <div id="jooa11y-readability-content"> <h2 class="jooa11y-header-text-inline">`+o._("READABILITY")+`</h2> <p id="jooa11y-readability-info"></p> <ul id="jooa11y-readability-details"></ul> </div> </div> </div>`)+(`<div id="jooa11y-settings-panel" role="tabpanel" aria-labelledby="jooa11y-settings-header"> <div id="jooa11y-settings-header" class="jooa11y-header-text"> <h2 tabindex="-1">`+o._("SETTINGS")+`</h2> </div> <div id="jooa11y-settings-content"> <ul id="jooa11y-settings-options"> <li> <label id="check-contrast" for="jooa11y-contrast-toggle">`+o._("CONTRAST")+`</label> <button id="jooa11y-contrast-toggle" aria-labelledby="check-contrast" class="jooa11y-settings-switch" aria-pressed="`+(s?"true":"false")+'">'+(s?o._("ON"):o._("OFF"))+`</button> </li> <li> <label id="check-labels" for="jooa11y-labels-toggle">`+o._("FORM_LABELS")+`</label> <button id="jooa11y-labels-toggle" aria-labelledby="check-labels" class="jooa11y-settings-switch" aria-pressed="`+(f?"true":"false")+'">'+(f?o._("ON"):o._("OFF"))+`</button> </li> <li> <label id="check-changerequest" for="jooa11y-links-advanced-toggle">`+o._("LINKS_ADVANCED")+`<span class="jooa11y-badge">AAA</span></label> <button id="jooa11y-links-advanced-toggle" aria-labelledby="check-changerequest" class="jooa11y-settings-switch" aria-pressed="`+(a?"true":"false")+'">'+(a?o._("ON"):o._("OFF"))+`</button> </li> <li> <label id="check-readability" for="jooa11y-readability-toggle">`+o._("READABILITY")+`<span class="jooa11y-badge">AAA</span></label> <button id="jooa11y-readability-toggle" aria-labelledby="check-readability" class="jooa11y-settings-switch" aria-pressed="`+(u?"true":"false")+'">'+(u?o._("ON"):o._("OFF"))+`</button> </li> <li> <label id="dark-mode" for="jooa11y-theme-toggle">`+o._("DARK_MODE")+`</label> <button id="jooa11y-theme-toggle" aria-labelledby="dark-mode" class="jooa11y-settings-switch"></button> </li> </ul> </div> </div>`)+(`<div id="jooa11y-panel-alert"> <div class="jooa11y-header-text"> <button id="jooa11y-close-alert" class="jooa11y-close-btn" aria-label="`+o._("ALERT_CLOSE")+`" aria-describedby="jooa11y-alert-heading jooa11y-panel-alert-text"></button> <h2 id="jooa11y-alert-heading">`+o._("ALERT_TEXT")+`</h2> </div> <p id="jooa11y-panel-alert-text"></p> <div id="jooa11y-panel-alert-preview"></div> </div>`)+(`<div id="jooa11y-panel-content"> <button id="jooa11y-cycle-toggle" type="button" aria-label="`+o._("SHORTCUT_SR")+`"> <div class="jooa11y-panel-icon"></div> </button> <div id="jooa11y-panel-text"><p id="jooa11y-status" aria-live="polite"></p></div> </div>`)+(`<div id="jooa11y-panel-controls" role="tablist" aria-orientation="horizontal"> <button type="button" role="tab" aria-expanded="false" id="jooa11y-outline-toggle" aria-controls="jooa11y-outline-panel"> `+o._("SHOW_OUTLINE")+` </button> <button type="button" role="tab" aria-expanded="false" id="jooa11y-settings-toggle" aria-controls="jooa11y-settings-panel"> `+o._("SHOW_SETTINGS")+` </button> <div style="width:35px"></div> </div>`)+"</div>",document.body.append(i),this.settingPanelToggles(),this.jooa11yMainToggle(),this.sanitizeHTMLandComputeARIA(),this.initializeJumpToIssueTooltip()}var t=r.prototype;return t.jooa11yMainToggle=function(){var e=this,l=document.getElementById("jooa11y-toggle");l.addEventListener("click",function(i){localStorage.getItem("jooa11y-remember-panel")==="Opened"?(localStorage.setItem("jooa11y-remember-panel","Closed"),l.classList.remove("jooa11y-on"),l.setAttribute("aria-expanded","false"),e.resetAll(),e.updateBadge(),i.preventDefault()):(localStorage.setItem("jooa11y-remember-panel","Opened"),l.classList.add("jooa11y-on"),l.setAttribute("aria-expanded","true"),e.checkAll(),document.getElementById("jooa11y-notification-badge").style.display="none",i.preventDefault())}),localStorage.getItem("jooa11y-remember-panel")==="Opened"&&(l.classList.add("jooa11y-on"),l.setAttribute("aria-expanded","true")),l.classList.contains("jooa11y-on")&&(l.classList.toggle("loading-jooa11y"),l.setAttribute("aria-expanded","true"),setTimeout(this.checkAll,800)),document.onkeydown=function(i){i=i||window.event;var s=!1;if("key"in i?s=i.key==="Escape"||i.key==="Esc":s=i.keyCode===27,s&&document.getElementById("jooa11y-panel").classList.contains("jooa11y-active")&&(l.setAttribute("aria-expanded","false"),l.classList.remove("jooa11y-on"),l.click(),e.resetAll()),i.altKey&&i.code=="KeyA"){var f=document.getElementById("jooa11y-toggle");f.click(),f.focus(),i.preventDefault()}}},t.sanitizeHTMLandComputeARIA=function(){this.computeTextNodeWithImage=function(e){var l=Array.from(e.querySelectorAll("img")),i="";if(l.length===0&&e.textContent.trim().length>1)i=e.textContent.trim();else if(l.length&&e.textContent.trim().length===0){var s=l[0].getAttribute("alt");!s||s===" "?i=" ":s!==void 0&&(i=s)}else l.length&&e.textContent.trim().length&&(l.forEach(function(f){f.insertAdjacentHTML("afterend"," <span class='jooa11y-clone-image-text' aria-hidden='true'>"+l[0].getAttribute("alt")+"</span> ")}),i=e.textContent.trim());return i},this.computeAriaLabel=function(e){if(e.matches("[aria-label]"))return e.getAttribute("aria-label");if(e.matches("[aria-labelledby]")){var l=e.getAttribute("aria-labelledby").split(/\s+/);if(l.length>0){var i="";return l.forEach(function(a){document.querySelector("#"+a)===null?i+=" ":i+=document.querySelector("#"+a).firstChild.nodeValue+" "}),i}else return""}else{if(Array.from(e.children).filter(function(a){return a.matches("[aria-label]")}).length>0)return Array.from(e.children)[0].getAttribute("aria-label");if(Array.from(e.children).filter(function(a){return a.matches("[title]")}).length>0)return Array.from(e.children)[0].getAttribute("title");if(Array.from(e.children).filter(function(a){return a.matches("[aria-labelledby]")}).length>0){var s=Array.from(e.children)[0].getAttribute("aria-labelledby").split(/\s+/);if(s.length>0){var f="";return s.forEach(function(a){document.querySelector("#"+a)===null?f+=" ":f+=document.querySelector("#"+a).firstChild.nodeValue+" "}),f}else return""}else return"noAria"}}},t.settingPanelToggles=function(){var e=this,l=document.getElementById("jooa11y-contrast-toggle");l.onclick=be(Z().mark(function h(){return Z().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(localStorage.getItem("jooa11y-remember-contrast")!=="On"){m.next=9;break}return localStorage.setItem("jooa11y-remember-contrast","Off"),l.textContent=o._("OFF"),l.setAttribute("aria-pressed","false"),e.resetAll(!1),m.next=7,e.checkAll();case 7:m.next=15;break;case 9:return localStorage.setItem("jooa11y-remember-contrast","On"),l.textContent=o._("ON"),l.setAttribute("aria-pressed","true"),e.resetAll(!1),m.next=15,e.checkAll();case 15:case"end":return m.stop()}},h)}));var i=document.getElementById("jooa11y-labels-toggle");i.onclick=be(Z().mark(function h(){return Z().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(localStorage.getItem("jooa11y-remember-labels")!=="On"){m.next=9;break}return localStorage.setItem("jooa11y-remember-labels","Off"),i.textContent=o._("OFF"),i.setAttribute("aria-pressed","false"),e.resetAll(!1),m.next=7,e.checkAll();case 7:m.next=15;break;case 9:return localStorage.setItem("jooa11y-remember-labels","On"),i.textContent=o._("ON"),i.setAttribute("aria-pressed","true"),e.resetAll(!1),m.next=15,e.checkAll();case 15:case"end":return m.stop()}},h)}));var s=document.getElementById("jooa11y-links-advanced-toggle");s.onclick=be(Z().mark(function h(){return Z().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(localStorage.getItem("jooa11y-remember-links-advanced")!=="On"){m.next=9;break}return localStorage.setItem("jooa11y-remember-links-advanced","Off"),s.textContent=o._("OFF"),s.setAttribute("aria-pressed","false"),e.resetAll(!1),m.next=7,e.checkAll();case 7:m.next=15;break;case 9:return localStorage.setItem("jooa11y-remember-links-advanced","On"),s.textContent=o._("ON"),s.setAttribute("aria-pressed","true"),e.resetAll(!1),m.next=15,e.checkAll();case 15:case"end":return m.stop()}},h)}));var f=document.getElementById("jooa11y-readability-toggle");f.onclick=be(Z().mark(function h(){return Z().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(localStorage.getItem("jooa11y-remember-readability")!=="On"){m.next=10;break}return localStorage.setItem("jooa11y-remember-readability","Off"),f.textContent=o._("OFF"),f.setAttribute("aria-pressed","false"),document.getElementById("jooa11y-readability-panel").classList.remove("jooa11y-active"),e.resetAll(!1),m.next=8,e.checkAll();case 8:m.next=17;break;case 10:return localStorage.setItem("jooa11y-remember-readability","On"),f.textContent=o._("ON"),f.setAttribute("aria-pressed","true"),document.getElementById("jooa11y-readability-panel").classList.add("jooa11y-active"),e.resetAll(!1),m.next=17,e.checkAll();case 17:case"end":return m.stop()}},h)})),localStorage.getItem("jooa11y-remember-readability")==="On"&&document.getElementById("jooa11y-readability-panel").classList.add("jooa11y-active");var a=window.matchMedia("(prefers-color-scheme: dark)"),u=document.getElementById("jooa11y-theme-toggle"),c=document.querySelector("html"),p=localStorage.getItem("jooa11y-remember-theme");a.matches?(u.textContent=o._("ON"),u.setAttribute("aria-pressed","true")):(u.textContent=o._("OFF"),u.setAttribute("aria-pressed","false"));function v(h){h.matches?(c.setAttribute("data-jooa11y-theme","dark"),u.textContent=o._("ON"),u.setAttribute("aria-pressed","true"),localStorage.setItem("jooa11y-remember-theme","")):(c.setAttribute("data-jooa11y-theme","light"),u.textContent=o._("OFF"),u.setAttribute("aria-pressed","false"),localStorage.setItem("jooa11y-remember-theme",""))}a.addEventListener("change",v),u.onclick=be(Z().mark(function h(){var L;return Z().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:L=localStorage.getItem("jooa11y-remember-theme"),L==="dark"?(c.setAttribute("data-jooa11y-theme","light"),localStorage.setItem("jooa11y-remember-theme","light"),u.textContent=o._("OFF"),u.setAttribute("aria-pressed","false")):L==="light"?(c.setAttribute("data-jooa11y-theme","dark"),localStorage.setItem("jooa11y-remember-theme","dark"),u.textContent=o._("ON"),u.setAttribute("aria-pressed","true")):a.matches?(c.setAttribute("data-jooa11y-theme","light"),localStorage.setItem("jooa11y-remember-theme","light"),u.textContent=o._("OFF"),u.setAttribute("aria-pressed","false")):(c.setAttribute("data-jooa11y-theme","dark"),localStorage.setItem("jooa11y-remember-theme","dark"),u.textContent=o._("OFF"),u.setAttribute("aria-pressed","true"));case 2:case"end":return j.stop()}},h)})),p==="dark"?(c.setAttribute("data-jooa11y-theme","dark"),localStorage.setItem("jooa11y-remember-theme","dark"),u.textContent=o._("ON"),u.setAttribute("aria-pressed","true")):p==="light"&&(c.setAttribute("data-jooa11y-theme","light"),localStorage.setItem("jooa11y-remember-theme","light"),u.textContent=o._("OFF"),u.setAttribute("aria-pressed","false"))},t.initializeJumpToIssueTooltip=function(){Ie("#jooa11y-cycle-toggle",{content:'<div style="text-align:center">'+o._("SHORTCUT_TOOLTIP")+' »<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})},t.doInitialCheck=function(){(localStorage.getItem("jooa11y-remember-panel")==="Closed"||!localStorage.getItem("jooa11y-remember-panel"))&&(this.panelActive=!0,this.checkAll())},t.resetAll=function(e){e===void 0&&(e=!0),this.panelActive=!1,this.clearEverything();var l=document.getElementById("jooa11y-outline-toggle"),i=l.cloneNode(!0);l.parentNode.replaceChild(i,l);var s=document.getElementById("jooa11y-settings-toggle"),f=s.cloneNode(!0);s.parentNode.replaceChild(f,s),document.querySelectorAll(".jooa11y-error-border").forEach(function(p){return p.classList.remove("jooa11y-error-border")}),document.querySelectorAll(".jooa11y-error-text").forEach(function(p){return p.classList.remove("jooa11y-error-text")}),document.querySelectorAll(".jooa11y-warning-border").forEach(function(p){return p.classList.remove("jooa11y-warning-border")}),document.querySelectorAll(".jooa11y-warning-text").forEach(function(p){return p.classList.remove("jooa11y-warning-text")}),document.querySelectorAll("p").forEach(function(p){return p.classList.remove("jooa11y-fake-list")});var a=document.querySelectorAll(".jooa11y-warning-uppercase");a.forEach(function(p){return p.outerHTML=p.innerHTML}),document.querySelectorAll(".jooa11y-good-border").forEach(function(p){return p.classList.remove("jooa11y-good-border")}),document.querySelectorAll(".jooa11y-good-text").forEach(function(p){return p.classList.remove("jooa11y-good-text")}),document.querySelectorAll(` .jooa11y-instance, .jooa11y-instance-inline, .jooa11y-heading-label, #jooa11y-outline-list li, .jooa11y-readability-period, #jooa11y-readability-info span, #jooa11y-readability-details li, .jooa11y-clone-image-text `).forEach(function(p){return p.parentNode.removeChild(p)}),document.querySelectorAll(".jooa11y-overflow").forEach(function(p){return p.classList.remove("jooa11y-overflow")}),document.querySelectorAll(".jooa11y-fake-heading").forEach(function(p){return p.classList.remove("jooa11y-fake-heading")}),document.querySelectorAll(".jooa11y-pulse-border").forEach(function(p){return p.classList.remove("jooa11y-pulse-border")}),document.querySelector("#jooa11y-panel-alert").classList.remove("jooa11y-active");for(var u=document.querySelector("#jooa11y-panel-alert-text");u.firstChild;)u.removeChild(u.firstChild);for(var c=document.querySelector("#jooa11y-status");c.firstChild;)c.removeChild(c.firstChild);e&&document.querySelector("#jooa11y-panel").classList.remove("jooa11y-active")},t.clearEverything=function(){},t.initializeTooltips=function(){Ie(".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})},t.detectOverflow=function(){var e=function(s,f,a){for(;s!==null;){var u=window.getComputedStyle(s),c=u.getPropertyValue(f);if(c===a)return s;s=s.parentElement}return null},l=document.querySelectorAll(".jooa11y-btn");l.forEach(function(i){var s=e(i,"overflow","hidden");s!==null&&s.classList.add("jooa11y-overflow")})},t.updateBadge=function(){var e=this.errorCount+this.warningCount,l=document.getElementById("jooa11y-notification-badge");e===0?l.style.display="none":(l.style.display="flex",document.getElementById("jooa11y-notification-count").innerHTML=o.sprintf("PANEL_STATUS_ICON",e))},t.updatePanel=function(){this.panelActive=!0,this.errorCount+this.warningCount,this.buildPanel(),this.skipToIssue();var e=document.getElementById("jooa11y-cycle-toggle");e.disabled=!1,e.setAttribute("style","cursor: pointer !important;");var l=document.getElementById("jooa11y-panel");l.classList.add("jooa11y-active");var i=document.getElementById("jooa11y-panel-content"),s=document.getElementById("jooa11y-status"),f=document.querySelectorAll(".jooa11y-btn");this.errorCount>0&&this.warningCount>0?(i.setAttribute("class","jooa11y-errors"),s.textContent=o.sprintf("PANEL_STATUS_BOTH",this.errorCount,this.warningCount)):this.errorCount>0?(i.setAttribute("class","jooa11y-errors"),s.textContent=o.sprintf("PANEL_STATUS_ERRORS",this.errorCount)):this.warningCount>0?(i.setAttribute("class","jooa11y-warnings"),s.textContent=o.sprintf("PANEL_STATUS_WARNINGS",this.warningCount)):(i.setAttribute("class","jooa11y-good"),s.textContent=o._("PANEL_STATUS_NONE"),f.length===0&&(e.disabled=!0,e.setAttribute("style","cursor: default !important;")))},t.findElements=function(){var e=this,l=Array.from(this.$root.querySelectorAll("h1, h2, h3, h4, h5, h6, [role='heading'][aria-level]")),i=Array.from(this.$root.querySelectorAll("p"));this.$containerExclusions=Array.from(document.querySelectorAll(this.containerIgnore)),this.$h=l.filter(function(s){return!e.$containerExclusions.includes(s)}),this.$p=i.filter(function(s){return!e.$containerExclusions.includes(s)})},t.checkHeaders=function(){var e=this,l;this.$h.forEach(function(s,f){var a=e.computeTextNodeWithImage(s),u=_t(a),c;s.getAttribute("aria-level")?c=+s.getAttribute("aria-level"):c=+s.tagName.slice(1);var p=s.textContent.trim().length,v=null,h=null;if(c-l>1&&f!==0)v=o.sprintf("HEADING_NON_CONSECUTIVE_LEVEL",l,c);else if(s.textContent.trim().length===0)if(s.querySelectorAll("img").length){var L=s.querySelector("img").getAttribute("alt");(L===void 0||L===" "||L==="")&&(v=o.sprintf("HEADING_EMPTY_WITH_IMAGE",c),s.classList.add("jooa11y-error-text"))}else v=o.sprintf("HEADING_EMPTY",c),s.classList.add("jooa11y-error-text");else f===0&&c!==1&&c!==2?v=o._("HEADING_FIRST"):s.textContent.trim().length>170&&(h=o._("HEADING_LONG")+" . "+o.sprintf("HEADING_LONG_INFO",p));l=c;var m="<li class='jooa11y-outline-"+c+`'> <span class='jooa11y-badge'>`+c+`</span> <span class='jooa11y-outline-list-item'>`+u+`</span> </li>`,j="<li class='jooa11y-outline-"+c+`'> <span class='jooa11y-badge jooa11y-error-badge'> <span aria-hidden='true'>✗</span> <span class='jooa11y-visually-hidden'>`+o._("ERROR")+"</span> "+c+`</span> <span class='jooa11y-outline-list-item jooa11y-red-text jooa11y-bold'>`+u+`</span> </li>`,C="<li class='jooa11y-outline-"+c+`'> <span class='jooa11y-badge jooa11y-warning-badge'> <span aria-hidden='true'>?</span> <span class='jooa11y-visually-hidden'>`+o._("WARNING")+"</span> "+c+`</span> <span class='jooa11y-outline-list-item jooa11y-yellow-text jooa11y-bold'>`+u+`</span> </li>`,N=[];e.options.outlineIgnore&&(N=Array.from(document.querySelectorAll(e.options.outlineIgnore))),N.includes(s)||(s.insertAdjacentHTML("beforeend","<span class='jooa11y-heading-label'>H"+c+"</span>"),v!=null&&s.closest("a")?(e.errorCount++,s.classList.add("jooa11y-error-border"),s.closest("a").insertAdjacentHTML("afterend",e.annotate(o._("ERROR"),v,!0)),document.querySelector("#jooa11y-outline-list").insertAdjacentHTML("beforeend",j)):v!=null?(e.errorCount++,s.classList.add("jooa11y-error-border"),s.insertAdjacentHTML("beforebegin",e.annotate(o._("ERROR"),v)),document.querySelector("#jooa11y-outline-list").insertAdjacentHTML("beforeend",j)):h!=null&&s.closest("a")?(e.warningCount++,s.closest("a").insertAdjacentHTML("afterend",e.annotate(o._("WARNING"),h)),document.querySelector("#jooa11y-outline-list").insertAdjacentHTML("beforeend",C)):h!=null?(s.insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),h)),document.querySelector("#jooa11y-outline-list").insertAdjacentHTML("beforeend",C)):(v==null||h==null)&&document.querySelector("#jooa11y-outline-list").insertAdjacentHTML("beforeend",m))});var i=Array.from(this.$root.querySelectorAll('h1, [role="heading"][aria-level="1"]')).filter(function(s){return!e.$containerExclusions.includes(s)});i.length===0&&(this.errorCount++,document.querySelector("#jooa11y-outline-header").insertAdjacentHTML("afterend",`<div class='jooa11y-instance jooa11y-missing-h1'> <span class='jooa11y-badge jooa11y-error-badge'><span aria-hidden='true'>✗</span><span class='jooa11y-visually-hidden'>`+o._("ERROR")+`</span></span> <span class='jooa11y-red-text jooa11y-bold'>`+o._("PANEL_HEADING_MISSING_ONE")+`</span> </div>`),document.querySelector("#jooa11y-container").insertAdjacentHTML("afterend",this.annotateBanner(o._("ERROR"),o._("HEADING_MISSING_ONE"))))},t.checkLinkText=function(){var e=this,l=function(u){var c=["http",".asp",".htm",".php",".edu/",".com/",".net/",".org/",".us/",".ca/",".de/",".icu/",".uk/",".ru/",".info/",".top/",".xyz/",".tk/",".cn/",".ga/",".cf/",".nl/",".io/"],p=[null,null,null];return e.options.partialAltStopWords.forEach(function(v){if(u.length===v.length&&u.toLowerCase().indexOf(v)>=0)return p[0]=v,!1}),e.options.warningAltWords.forEach(function(v){if(u.toLowerCase().indexOf(v)>=0)return p[1]=v,!1}),c.forEach(function(v){if(u.toLowerCase().indexOf(v)>=0)return p[2]=v,!1}),p},i=function(u,c){var p=u.cloneNode(!0),v=Array.from(c?p.querySelectorAll(c):p.children);return v.forEach(function(h){h.parentElement.removeChild(h)}),p},s=Array.from(this.$root.querySelectorAll(this.linkIgnore)),f=Array.from(this.$root.querySelectorAll("a[href]")).filter(function(a){return!s.includes(a)});f.forEach(function(a){var u=e.computeAriaLabel(a),c=a.getAttribute("aria-labelledby"),p=a.getAttribute("aria-label"),v=a.getAttribute("title"),h=null,L=null,m=null;if(a.children.length){var j=a.children[0];h=j.getAttribute("aria-labelledby"),L=j.getAttribute("aria-label"),m=j.getAttribute("title")}var C=l(i(a,e.options.linkIgnoreSpan).textContent.trim());if(u==="noAria"&&(u=a.textContent),a.getAttribute("href")&&!a.textContent.trim()){if(!a.querySelectorAll("img").length)if(c||p)a.classList.add("jooa11y-good-border"),a.insertAdjacentHTML("beforebegin",e.annotate(o._("GOOD"),o.sprintf("LINK_LABEL",u),!0));else if(v){var N=v;a.classList.add("jooa11y-good-border"),a.insertAdjacentHTML("beforebegin",e.annotate(o._("GOOD"),o.sprintf("LINK_LABEL",N),!0))}else a.children.length?h||L||m?(a.classList.add("jooa11y-good-border"),a.insertAdjacentHTML("beforebegin",e.annotate(o._("GOOD"),o.sprintf("LINK_LABEL",u),!0))):(e.errorCount++,a.classList.add("jooa11y-error-border"),a.insertAdjacentHTML("afterend",e.annotate(o._("ERROR"),o.sprintf("LINK_EMPTY_LINK_NO_LABEL"),!0))):(e.errorCount++,a.classList.add("jooa11y-error-border"),a.insertAdjacentHTML("afterend",e.annotate(o._("ERROR"),o._("LINK_EMPTY"),!0)))}else C[0]!==null?c?a.insertAdjacentHTML("beforebegin",e.annotate(o._("GOOD"),o.sprintf("LINK_LABEL",u),!0)):p?a.insertAdjacentHTML("beforebegin",e.annotate(o._("GOOD"),o.sprintf("LINK_LABEL",p),!0)):a.getAttribute("aria-hidden")==="true"&&a.getAttribute("tabindex")==="-1"||(e.errorCount++,a.classList.add("jooa11y-error-text"),a.insertAdjacentHTML("afterend",e.annotate(o._("ERROR"),o.sprintf("LINK_STOPWORD",C[0])+' <hr aria-hidden="true"> '+o._("LINK_STOPWORD_TIP"),!0))):C[1]!==null?(e.warningCount++,a.classList.add("jooa11y-warning-text"),a.insertAdjacentHTML("afterend",e.annotate(o._("WARNING"),o.sprintf("LINK_BEST_PRACTICES",C[1])+' <hr aria-hidden="true"> '+o._("LINK_BEST_PRACTICES_DETAILS"),!0))):C[2]!=null&&u.length>40&&(e.warningCount++,a.classList.add("jooa11y-warning-text"),a.insertAdjacentHTML("afterend",e.annotate(o._("WARNING"),o._("LINK_URL")+' <hr aria-hidden="true"> '+o._("LINK_URL_TIP"),!0)))})},t.checkLinksAdvanced=function(){var e=this,l=Array.from(this.$root.querySelectorAll(this.linkIgnore+", #jooa11y-container a, .jooa11y-exclude")),i=Array.from(this.$root.querySelectorAll("a[href]")).filter(function(f){return!l.includes(f)}),s={};i.forEach(function(f){var a=e.computeAriaLabel(f);a==="noAria"&&(a=f.textContent);var u=f.matches(` a[href$='.pdf'], a[href$='.doc'], a[href$='.zip'], a[href$='.mp3'], a[href$='.txt'], a[href$='.exe'], a[href$='.dmg'], a[href$='.rtf'], a[href$='.pptx'], a[href$='.ppt'], a[href$='.xls'], a[href$='.xlsx'], a[href$='.csv'], a[href$='.mp4'], a[href$='.mov'], a[href$='.avi'] `),c=f.querySelector("img"),p=c&&c.getAttribute("alt")||"",v=a.trim().toLowerCase()+" "+p,h=f.getAttribute("href");a.length!==0&&(s[v]&&v.length!==0?s[h]||(e.warningCount++,f.classList.add("jooa11y-warning-text"),f.insertAdjacentHTML("afterend",e.annotate(o._("WARNING"),o._("LINK_IDENTICAL_NAME")+' <hr aria-hidden="true"> '+o.sprintf("LINK_IDENTICAL_NAME_TIP",a),!0))):(s[v]=!0,s[h]=!0));var L=e.options.newWindowPhrases.some(function(j){return a.toLowerCase().indexOf(j)>=0}),m=e.options.fileTypePhrases.some(function(j){return a.toLowerCase().indexOf(j)>=0});f.getAttribute("target")==="_blank"&&!u&&!L&&(e.warningCount++,f.classList.add("jooa11y-warning-text"),f.insertAdjacentHTML("afterend",e.annotate(o._("WARNING"),o._("NEW_TAB_WARNING")+' <hr aria-hidden="true"> '+o._("NEW_TAB_WARNING_TIP"),!0))),u&&!m&&(e.warningCount++,f.classList.add("jooa11y-warning-text"),f.insertAdjacentHTML("afterend",e.annotate(o._("WARNING"),o._("FILE_TYPE_WARNING")+' <hr aria-hidden="true"> '+o._("FILE_TYPE_WARNING_TIP"),!0)))})},t.checkUnderline=function(){var e=this,l=Array.from(this.$root.querySelectorAll("u"));l.forEach(function(s){e.warningCount++,s.insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o._("TEXT_UNDERLINE_WARNING")+' <hr aria-hidden="true"> '+o._("TEXT_UNDERLINE_WARNING_TIP"),!0))});var i=Array.from(this.$root.querySelectorAll("h1, h2, h3, h4, h5, h6, p, div, span, li, blockquote"));i.forEach(function(s){var f=getComputedStyle(s),a=f.textDecorationLine;a==="underline"&&(e.warningCount++,s.insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o._("TEXT_UNDERLINE_WARNING")+' <hr aria-hidden="true"> '+o._("TEXT_UNDERLINE_WARNING_TIP"),!0)))})},t.checkAltText=function(){var e=this,l=function(u){var c=[".png",".jpg",".jpeg",".gif",".tiff",".svg"],p=[null,null,null];return c.forEach(function(v){u.toLowerCase().indexOf(v)>=0&&(p[0]=v)}),e.options.suspiciousAltWords.forEach(function(v){u.toLowerCase().indexOf(v)>=0&&(p[1]=v)}),e.options.placeholderAltStopWords.forEach(function(v){u.length===v.length&&u.toLowerCase().indexOf(v)>=0&&(p[2]=v)}),p},i=Array.from(this.$root.querySelectorAll("img")),s=Array.from(this.$root.querySelectorAll(this.imageIgnore)),f=i.filter(function(a){return!s.includes(a)});f.forEach(function(a){var u=a.getAttribute("alt");if(u===null)a.closest("a[href]")?a.closest("a[href]").textContent.trim().length>1?(a.classList.add("jooa11y-error-border"),a.closest("a[href]").insertAdjacentHTML("beforebegin",e.annotate(o._("ERROR"),o._("MISSING_ALT_LINK_BUT_HAS_TEXT_MESSAGE"),!1,!0))):a.closest("a[href]").textContent.trim().length===0&&(a.classList.add("jooa11y-error-border"),a.closest("a[href]").insertAdjacentHTML("beforebegin",e.annotate(o._("ERROR"),o._("MISSING_ALT_LINK_MESSAGE"),!1,!0))):(a.classList.add("jooa11y-error-border"),a.insertAdjacentHTML("beforebegin",e.annotate(o._("ERROR"),o._("MISSING_ALT_MESSAGE"),!1,!0)));else{var c=_t(u),p=l(c),v=u.length;if(p[0]!=null&&a.closest("a[href]"))e.errorCount++,a.classList.add("jooa11y-error-border"),a.closest("a[href]").insertAdjacentHTML("beforebegin",e.annotate(o._("ERROR"),o.sprintf("LINK_IMAGE_BAD_ALT_MESSAGE",c,p[0])+' <hr aria-hidden="true"> '+o._("LINK_IMAGE_BAD_ALT_MESSAGE_INFO"),!1));else if(p[2]!=null&&a.closest("a[href]"))e.errorCount++,a.classList.add("jooa11y-error-border"),a.closest("a[href]").insertAdjacentHTML("beforebegin",e.annotate(o._("ERROR"),o.sprintf("LINK_IMAGE_PLACEHOLDER_ALT_MESSAGE",c),!1,!0));else if(p[1]!=null&&a.closest("a[href]"))e.warningCount++,a.classList.add("jooa11y-warning-border"),a.closest("a[href]").insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o.sprintf("LINK_IMAGE_SUS_ALT_MESSAGE",c,p[1])+' <hr aria-hidden="true"> '+o.sprintf("LINK_IMAGE_SUS_ALT_MESSAGE_INFO",c),!1));else if(p[0]!=null)e.errorCount++,a.classList.add("jooa11y-error-border"),a.insertAdjacentHTML("beforebegin",e.annotate(o._("ERROR"),o._("LINK_ALT_HAS_BAD_WORD_MESSAGE")+' <hr aria-hidden="true"> '+o.sprintf("LINK_ALT_HAS_BAD_WORD_MESSAGE_INFO",p[0],c),!1));else if(p[2]!=null)e.errorCount++,a.classList.add("jooa11y-error-border"),a.insertAdjacentHTML("beforebegin",e.annotate(o._("ERROR"),o.sprintf("LINK_ALT_PLACEHOLDER_MESSAGE",c),!1));else if(p[1]!=null)e.warningCount++,a.classList.add("jooa11y-warning-border"),a.insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o.sprintf("LINK_ALT_HAS_SUS_WORD_MESSAGE",c,p[1])+' <hr aria-hidden="true"> '+o.sprintf("LINK_ALT_HAS_SUS_WORD_MESSAGE_INFO",c),!1));else if((u===""||u===" ")&&a.closest("a[href]"))a.closest("a[href]").getAttribute("tabindex")==="-1"&&a.closest("a[href]").getAttribute("aria-hidden")==="true"||(a.closest("a[href]").getAttribute("aria-hidden")==="true"?(e.errorCount++,a.classList.add("jooa11y-error-border"),a.closest("a[href]").insertAdjacentHTML("beforebegin",e.annotate(o._("ERROR"),o._("LINK_HYPERLINKED_IMAGE_ARIA_HIDDEN"),!1,!0))):a.closest("a[href]").textContent.trim().length===0?(e.errorCount++,a.classList.add("jooa11y-error-border"),a.closest("a[href]").insertAdjacentHTML("beforebegin",e.annotate(o._("ERROR"),o._("LINK_IMAGE_LINK_NULL_ALT_NO_TEXT_MESSAGE"),!1,!0))):a.closest("a[href]").insertAdjacentHTML("beforebegin",e.annotate(o._("GOOD"),o._("LINK_LINK_HAS_ALT_MESSAGE"),!1,!0)));else if(u.length>250&&a.closest("a[href]"))e.warningCount++,a.classList.add("jooa11y-warning-border"),a.closest("a[href]").insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o._("HYPERLINK_ALT_LENGTH_MESSAGE")+' <hr aria-hidden="true"> '+o.sprintf("HYPERLINK_ALT_LENGTH_MESSAGE_INFO",c,v),!1));else if(u!==""&&a.closest("a[href]")&&a.closest("a[href]").textContent.trim().length===0)e.warningCount++,a.classList.add("jooa11y-warning-border"),a.closest("a[href]").insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o._("LINK_IMAGE_LINK_ALT_TEXT_MESSAGE")+' <hr aria-hidden="true"> '+o.sprintf("LINK_IMAGE_LINK_ALT_TEXT_MESSAGE_INFO",c),!1));else if(u!==""&&a.closest("a[href]")&&a.closest("a[href]").textContent.trim().length>1)e.warningCount++,a.classList.add("jooa11y-warning-border"),a.closest("a[href]").insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o._("LINK_ANCHOR_LINK_AND_ALT_MESSAGE")+' <hr aria-hidden="true"> '+o.sprintf("LINK_ANCHOR_LINK_AND_ALT_MESSAGE_INFO",c),!1));else if(u===""||u===" ")if(a.closest("figure")){var h=a.closest("figure").querySelector("figcaption");h!==null&&h.textContent.trim().length>=1&&(e.warningCount++,a.classList.add("jooa11y-warning-border"),a.insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o._("IMAGE_FIGURE_DECORATIVE")+' <hr aria-hidden="true"> '+o._("IMAGE_FIGURE_DECORATIVE_INFO"),!1,!0)))}else e.warningCount++,a.classList.add("jooa11y-warning-border"),a.insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o._("LINK_DECORATIVE_MESSAGE"),!1,!0));else if(u.length>250)e.warningCount++,a.classList.add("jooa11y-warning-border"),a.insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o._("LINK_ALT_TOO_LONG_MESSAGE")+' <hr aria-hidden="true"> '+o.sprintf("LINK_ALT_TOO_LONG_MESSAGE_INFO",c,v),!1));else if(u!=="")if(a.closest("figure")){var L=a.closest("figure").querySelector("figcaption");L!==null&&L.textContent.trim().toLowerCase===c.trim().toLowerCase&&(e.warningCount++,a.classList.add("jooa11y-warning-border"),a.insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o.sprintf("IMAGE_FIGURE_DUPLICATE_ALT",c)+' <hr aria-hidden="true"> '+o._("IMAGE_FIGURE_DECORATIVE_INFO"),!1,!0)))}else a.insertAdjacentHTML("beforebegin",e.annotate(o._("GOOD"),""+o.sprintf("LINK_PASS_ALT",c),!1,!0))}})},t.checkLabels=function(){var e=this,l=Array.from(this.$root.querySelectorAll("input, select, textarea")).filter(function(i){return!e.$containerExclusions.includes(i)&&!Pn(i)});l.forEach(function(i){var s=e.computeAriaLabel(i),f=i.getAttribute("type");if(!(f==="submit"||f==="button"||f==="hidden")){if(f==="image"){var a=i.getAttribute("alt");(!a||a===" ")&&(i.getAttribute("aria-label")||(e.errorCount++,i.classList.add("jooa11y-error-border"),i.insertAdjacentHTML("afterend",e.annotate(o._("ERROR"),o._("LABELS_MISSING_IMAGE_INPUT_MESSAGE"),!0))))}else if(f==="reset")e.warningCount++,i.classList.add("jooa11y-warning-border"),i.insertAdjacentHTML("afterend",e.annotate(o._("WARNING"),o._("LABELS_INPUT_RESET_MESSAGE")+' <hr aria-hidden="true"> '+o._("LABELS_INPUT_RESET_MESSAGE_TIP"),!0));else if(i.getAttribute("aria-label")||i.getAttribute("aria-labelledby")||i.getAttribute("title"))if(i.getAttribute("title")){var u=i.getAttribute("title");e.warningCount++,i.classList.add("jooa11y-warning-border"),i.insertAdjacentHTML("afterend",e.annotate(o._("WARNING"),o._("LABELS_ARIA_LABEL_INPUT_MESSAGE")+' <hr aria-hidden="true"> '+o.sprintf("LABELS_ARIA_LABEL_INPUT_MESSAGE_INFO",u),!0))}else e.warningCount++,i.classList.add("jooa11y-warning-border"),i.insertAdjacentHTML("afterend",e.annotate(o._("WARNING"),o._("LABELS_ARIA_LABEL_INPUT_MESSAGE")+' <hr aria-hidden="true"> '+o.sprintf("LABELS_ARIA_LABEL_INPUT_MESSAGE_INFO",s),!0));else if(!(i.closest("label")&&i.closest("label").textContent.trim()))if(i.getAttribute("id")&&Array.from(i.parentElement.children).filter(function(v){return v.nodeName==="LABEL"}).length){var c=Array.from(i.parentElement.children).filter(function(v){return v.nodeName==="LABEL"}),p=!1;c.forEach(function(v){p||v.getAttribute("for")===i.getAttribute("id")&&(p=!0)}),p||(e.errorCount++,i.classList.add("jooa11y-error-border"),i.insertAdjacentHTML("afterend",e.annotate(o._("ERROR"),o._("LABELS_NO_FOR_ATTRIBUTE_MESSAGE")+' <hr aria-hidden="true"> '+o.sprintf("LABELS_NO_FOR_ATTRIBUTE_MESSAGE_INFO",i.getAttribute("id")),!0)))}else e.errorCount++,i.classList.add("jooa11y-error-border"),i.insertAdjacentHTML("afterend",e.annotate(o._("ERROR"),o._("LABELS_MISSING_LABEL_MESSAGE"),!0))}})},t.checkEmbeddedContent=function(){var e=this,l=Array.from(this.$root.querySelectorAll("iframe, audio, video")),i=l.filter(function(u){return!e.$containerExclusions.includes(u)}),s=i.filter(function(u){return u.matches(e.options.videoContent)});s.forEach(function(u){var c=u.getElementsByTagName("TRACK");u.tagName==="VIDEO"&&c.length||(e.warningCount++,u.classList.add("jooa11y-warning-border"),u.insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o._("EMBED_VIDEO"))))});var f=i.filter(function(u){return u.matches(e.options.audioContent)});f.forEach(function(u){e.warningCount++,u.classList.add("jooa11y-warning-border"),u.insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o._("EMBED_AUDIO")))}),i.forEach(function(u){u.tagName==="VIDEO"||u.tagName==="AUDIO"||u.getAttribute("aria-hidden")==="true"||u.getAttribute("hidden")!==null||u.style.display==="none"||u.getAttribute("role")==="presentation"||(u.getAttribute("title")===null||u.getAttribute("title")==="")&&(u.getAttribute("aria-label")===null||u.getAttribute("aria-label")==="")&&u.getAttribute("aria-labelledby")===null&&(u.classList.contains("jooa11y-warning-border")&&u.classList.remove("jooa11y-warning-border"),e.errorCount++,u.classList.add("jooa11y-error-border"),u.insertAdjacentHTML("beforebegin",e.annotate(o._("ERROR"),o._("EMBED_MISSING_TITLE"))))});var a=i.filter(function(u){return!u.matches(e.options.embeddedContent)});a.forEach(function(u){u.tagName==="VIDEO"||u.tagName==="AUDIO"||u.getAttribute("aria-hidden")==="true"||u.getAttribute("hidden")!==null||u.style.display==="none"||u.getAttribute("role")==="presentation"||u.getAttribute("tabindex")==="-1"||(e.warningCount++,u.classList.add("jooa11y-warning-border"),u.insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o._("EMBED_GENERAL_WARNING"))))})},t.checkQA=function(){var e=this,l=this.options.linksToFlag?Array.from(this.$root.querySelectorAll(this.options.linksToFlag)):[],i=l.filter(function(A){return!e.$containerExclusions.includes(A)});i.forEach(function(A){e.errorCount++,A.classList.add("jooa11y-error-text"),A.insertAdjacentHTML("afterend",e.annotate(o._("ERROR"),o.sprintf("QA_BAD_LINK",A.getAttribute("href")),!0))});var s=Array.from(this.$root.querySelectorAll('a[href$=".pdf"]')).filter(function(A){return!e.$containerExclusions.includes(A)}),f=s[0],a=s.length;s.length>0&&(this.warningCount++,s.forEach(function(A){A.classList.add("jooa11y-warning-text"),A.querySelector("img")&&A.classList.remove("jooa11y-warning-text")}),f.insertAdjacentHTML("afterend",this.annotate(o._("WARNING"),o.sprintf("QA_PDF_COUNT",a),!0)));var u=Array.from(this.$root.querySelectorAll("h1, h2, h3, h4, h5, h6, p, li:not([class^='jooa11y']), blockquote")),c=u.filter(function(A){return!e.$containerExclusions.includes(A)});c.forEach(function(A){var M=/(?!<a[^>]*?>)(\b[A-Z][',!:A-Z\s]{15,}|\b[A-Z]{15,}\b)(?![^<]*?<\/a>)/g,O=A.innerHTML;A.innerHTML=O.replace(M,"<span class='jooa11y-warning-uppercase'>$1</span>")});var p=document.querySelectorAll(".jooa11y-warning-uppercase");p.forEach(function(A){A.insertAdjacentHTML("afterend",e.annotate(o._("WARNING"),o._("QA_UPPERCASE_WARNING"),!0))}),p.length>0&&this.warningCount++;var v=Array.from(this.$root.querySelectorAll("table:not([role='presentation'])")),h=v.filter(function(A){return!e.$containerExclusions.includes(A)});h.forEach(function(A){var M=A.querySelectorAll("th"),O=A.querySelectorAll("h1, h2, h3, h4, h5, h6");M.length===0&&(e.errorCount++,A.classList.add("jooa11y-error-border"),A.insertAdjacentHTML("beforebegin",e.annotate(o._("ERROR"),o._("TABLES_MISSING_HEADINGS")))),O.length>0&&(e.errorCount++,O.forEach(function(H){H.classList.add("jooa11y-error-border"),H.insertAdjacentHTML("beforebegin",e.annotate(o._("ERROR"),o._("TABLES_SEMANTIC_HEADING")+' <hr aria-hidden="true"> '+o._("TABLES_SEMANTIC_HEADING_INFO")))})),M.forEach(function(H){H.textContent.trim().length===0&&(e.errorCount++,H.classList.add("jooa11y-error-border"),H.innerHTML=e.annotate(o._("ERROR"),o._("TABLES_EMPTY_HEADING")+' <hr aria-hidden="true"> '+o._("TABLES_EMPTY_HEADING_INFO")))})});var L=document.querySelector("html").getAttribute("lang");if(!L||L.length<2){this.errorCount++;var m=document.getElementById("jooa11y-container");m.insertAdjacentHTML("afterend",this.annotateBanner(o._("ERROR"),o._("QA_PAGE_LANGUAGE_MESSAGE")))}var j=Array.from(this.$root.querySelectorAll("strong, em")),C=j.filter(function(A){return!e.$containerExclusions.includes(A)});C.forEach(function(A){A.textContent.trim().length>200&&(e.warningCount++,A.insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o._("QA_BAD_ITALICS"))))});var N=Array.from(this.$root.querySelectorAll("blockquote")),R=N.filter(function(A){return!e.$containerExclusions.includes(A)});R.forEach(function(A){var M=A.textContent;M.trim().length<25&&(e.warningCount++,A.classList.add("jooa11y-warning-border"),A.insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o.sprintf("QA_BLOCKQUOTE_MESSAGE",M)+' <hr aria-hidden="true"> '+o._("QA_BLOCKQUOTE_MESSAGE_TIP"))))}),this.$p.forEach(function(A){var M=A.innerHTML.indexOf("</strong><br>"),O=A.innerHTML.indexOf("<br></strong>");if(A&&A.textContent.trim().length>=300){var H=A.firstChild;if(H.tagName==="STRONG"&&(O!==-1||M!==-1)){var q=H.textContent;!A.closest("table")&&q.length<=120&&(H.classList.add("jooa11y-fake-heading","jooa11y-warning-border"),A.insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o.sprintf("QA_FAKE_HEADING",q)+' <hr aria-hidden="true"> '+o._("QA_FAKE_HEADING_INFO"))))}}if(/^<(strong)>.+<\/\1>$/.test(A.innerHTML.trim())){var V=A.previousElementSibling,b="";if(V!==null&&(b=V.tagName),!A.closest("table")&&A.textContent.length<=120&&b.charAt(0)!=="H"){var y=A.textContent;A.classList.add("jooa11y-fake-heading","jooa11y-warning-border"),A.firstChild.insertAdjacentHTML("afterend",e.annotate(o._("WARNING"),o.sprintf("QA_FAKE_HEADING",y)+' <hr aria-hidden="true"> '+o._("QA_FAKE_HEADING_INFO")))}}}),this.$root.querySelectorAll(".jooa11y-fake-heading").length>0&&this.warningCount++;var d=this.$root.querySelectorAll("[id]"),I={};d.forEach(function(A){var M=A.id;M&&(I[M]===void 0?I[M]=1:(A.classList.add("sa11y-error-border"),A.insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o._("QA_DUPLICATE_ID")+` <hr aria-hidden="true"> `+o.sprintf("QA_DUPLICATE_ID_TIP",M),!0))))});var E="",S={b:"a",B:"A",2:"1"},k=/a\.|a\)|A\.|A\)|1\.|1\)|\*\s|-\s|--|•\s|→\s|✓\s|✔\s|✗\s|✖\s|✘\s|❯\s|›\s|»\s/,x=function(M){return M.replace(/^b|^B|^2/,function(O){return S[O]})};this.$p.forEach(function(A){var M=!1,O=A.textContent.substring(0,2);if(O.trim().length>0&&O!==E&&O.match(k)){var H=A.innerHTML.indexOf("<br>");if(H!==-1){var q=A.innerHTML.substring(H+4).trim(),V=q.substring(0,2);O===x(V)&&(M=!0)}if(!M){var b=A.nextElementSibling.nodeName==="P"?A.nextElementSibling:null;if(b){var y=x(A.nextElementSibling.textContent.substring(0,2));O===y&&(M=!0)}}M?(e.warningCount++,A.insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o.sprintf("QA_SHOULD_BE_LIST",O)+' <hr aria-hidden="true"> '+o._("QA_SHOULD_BE_LIST_TIP"))),A.classList.add("jooa11y-fake-list"),E=O):E=""}else E=""}),this.$root.querySelectorAll(".jooa11y-fake-list").length>0&&this.warningCount++},t.checkContrast=function(){var e=this,l=Array.from(this.$root.querySelectorAll("* > :not(.jooa11y-heading-label)")),i=l.filter(function(u){return!e.$containerExclusions.includes(u)}),s={errors:[],warnings:[]},f=i,a={parseRgb:function(c){var p,v,h,L,m;if(v=c.match(/rgb\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*\)/)){for(h=v.slice(1,4),p=L=0;L<=2;p=++L)h[p]=+h[p];h[3]=1}else if(v=c.match(/rgba\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*,\s*([01]|[01]?\.\d+)\)/))for(h=v.slice(1,5),p=m=0;m<=3;p=++m)h[p]=+h[p];return h},relativeLuminance:function(c){for(var p=[],v=0;v<3;v++){var h=c[v]/255;p.push(h<.03928?h/12.92:Math.pow((h+.055)/1.055,2.4))}return .2126*p[0]+.7152*p[1]+.0722*p[2]},contrastRatio:function(c,p){var v=a.relativeLuminance(a.parseRgb(c)),h=a.relativeLuminance(a.parseRgb(p));return(Math.max(v,h)+.05)/(Math.min(v,h)+.05)},getBackground:function(c){var p=getComputedStyle(c),v=p.backgroundColor,h=p.backgroundImage,L=a.parseRgb(v)+"",m=L.split(",");return m[3]<1&&m[3]>0?"alpha":v!=="rgba(0, 0, 0, 0)"&&v!=="transparent"&&h==="none"&&m[3]!=="0"?v:h!=="none"?"image":c.tagName==="HTML"?"rgb(255, 255, 255)":a.getBackground(c.parentNode)},check:function(){s={errors:[],warnings:[]};for(var c=0;c<f.length;c++)(function(p){if(a){var v=getComputedStyle(p),h=v.color,L=v.fill,m=parseInt(v.fontSize),j=m*3/4,C=v.fontWeight,N=p.tagName,R=a.getBackground(p),d=[].reduce.call(p.childNodes,function(x,A){return x+(A.nodeType===3?A.textContent:"")},""),I=d.trim(),E,S,k;N==="SVG"?(E=Math.round(a.contrastRatio(L,R)*100)/100,E<3&&(S={elem:p,ratio:E+":1"},s.errors.push(S))):(I.length||N==="INPUT"||N==="SELECT"||N==="TEXTAREA")&&(R==="image"?(k={elem:p},s.warnings.push(k)):R==="alpha"?(k={elem:p},s.warnings.push(k)):(E=Math.round(a.contrastRatio(h,R)*100)/100,j>=18||j>=14&&C>=700?E<3&&(S={elem:p,ratio:E+":1"},s.errors.push(S)):E<4.5&&(S={elem:p,ratio:E+":1"},s.errors.push(S))))}})(f[c]);return s}};a.check(),s.errors.forEach(function(u){for(var c=u.elem,p=u.ratio,v=c.cloneNode(!0),h=v.querySelectorAll(".jooa11y-heading-label"),L=0;L<h.length;L++)v.removeChild(h[L]);var m=v.textContent;e.errorCount++,c.tagName==="INPUT"?c.insertAdjacentHTML("beforebegin",e.annotate(o._("ERROR"),o._("CONTRAST_ERROR_INPUT_MESSAGE")+` <hr aria-hidden="true"> `+o.sprintf("CONTRAST_ERROR_INPUT_MESSAGE_INFO",p),!0)):c.insertAdjacentHTML("beforebegin",e.annotate(o._("ERROR"),o.sprintf("CONTRAST_ERROR_MESSAGE",p,m)+` <hr aria-hidden="true"> `+o.sprintf("CONTRAST_ERROR_MESSAGE_INFO",p,m),!0))}),s.warnings.forEach(function(u){for(var c=u.elem,p=c.cloneNode(!0),v=p.querySelectorAll(".jooa11y-heading-label"),h=0;h<v.length;h++)p.removeChild(v[h]);var L=p.textContent;e.warningCount++,c.insertAdjacentHTML("beforebegin",e.annotate(o._("WARNING"),o._("CONTRAST_WARNING_MESSAGE")+' <hr aria-hidden="true"> '+o.sprintf("CONTRAST_WARNING_MESSAGE_INFO",L),!0))})},t.checkReadability=function(){var e=this,l=document.querySelector(this.options.readabilityRoot),i=Array.from(l.querySelectorAll("p, li")),s=i.filter(function(O){return!e.$containerExclusions.includes(O)});s.forEach(function(O){var H=O.textContent;H.length>=120&&H.charAt(H.length-1)!=="."&&O.insertAdjacentHTML("beforeend","<span class='jooa11y-readability-period jooa11y-visually-hidden'>.</span>")});function f(O){if(O=O.toLowerCase().replace(".","").replace(` `,""),O.length<=3)return 1;O=O.replace(/(?:[^laeiouy]es|ed|[^laeiouy]e)$/,""),O=O.replace(/^y/,"");var H=O.match(/[aeiouy]{1,2}/g),q=0;return H&&(q=H.length),q}for(var a=[],u=0;u<s.length;u++){var c=s[u];c.textContent.replace(/ |\n/g,"")!==""&&a.push(c.textContent)}for(var p=a.join(" ").trim().toString(),v=p.replace(/[.!?-]+/g," ").split(" "),h=0,L=0;L<v.length;L++)v[L]!=0&&(h=h+1);for(var m=p.split(/[.!?]+/),j=0,C=0;C<m.length;C++)m[C]!==""&&(j=j+1);for(var N=0,R=0,d=0,I=0;I<v.length;I++)if(v[I]!=0){var E=f(v[I]);E===1&&(R=R+1),E===2&&(d=d+1),N=N+E}var S;this.options.readabilityLang==="en"?S=206.835-1.015*h/j-84.6*N/h:this.options.readabilityLang==="fr"?S=207-1.015*h/j-73.6*N/h:this.options.readabilityLang==="es"&&(S=206.84-1.02*h/j-.6*(100*N/h)),S>100?S=100:S<0&&(S=0);var k=document.getElementById("jooa11y-readability-info");if(p.length===0)k.innerHTML=o._("READABILITY_NO_P_OR_LI_MESSAGE");else if(h>30){var x=S.toFixed(1),A=(h/j).toFixed(1),M=Math.round(100*((h-(R+d))/h));x>=0&&x<30?k.innerHTML="<span>"+x+'</span> <span class="jooa11y-readability-score">'+o._("VERY_DIFFICULT_READABILITY")+"</span>":x>31&&x<49?k.innerHTML="<span>"+x+'</span> <span class="jooa11y-readability-score">'+o._("DIFFICULT_READABILITY")+"</span>":x>50&&x<60?k.innerHTML="<span>"+x+'</span> <span class="jooa11y-readability-score">'+o._("FAIRLY_DIFFICULT_READABILITY")+"</span>":k.innerHTML="<span>"+x+'</span> <span class="jooa11y-readability-score">'+o._("GOOD_READABILITY")+"</span>",document.getElementById("jooa11y-readability-details").innerHTML="<li><span class='jooa11y-bold'>"+o._("AVG_WORD_PER_SENTENCE")+"</span> "+A+`</li> <li><span class='jooa11y-bold'>`+o._("COMPLEX_WORDS")+"</span> "+M+`%</li> <li><span class='jooa11y-bold'>`+o._("TOTAL_WORDS")+"</span> "+h+"</li>"}else k.textContent=o._("READABILITY_NOT_ENOUGH_CONTENT_MESSAGE")},t.annotate=function(e,l,i){var s;i===void 0&&(i=!1);var f=[o._("ERROR"),o._("WARNING"),o._("GOOD")];if(f.indexOf(e)===-1)throw Error("Invalid type ["+e+"] for annotation");var a=(s={},s[f[0]]="error",s[f[1]]="warning",s[f[2]]="good",s);return l&&{}.toString.call(l)==="[object Function]"&&(l=l()),l=_t(l),` <div class=`+(i?"jooa11y-instance-inline":"jooa11y-instance")+`> <button type="button" aria-label="`+[e]+`" class="jooa11y-btn jooa11y-`+a[e]+"-btn"+(i?"-text":"")+`" data-tippy-content="<div lang='`+this.options.langCode+`'> <div class='jooa11y-header-text'>`+[e]+`</div> `+l+` </div> "> </button> </div>`},t.annotateBanner=function(e,l){var i,s=[o._("ERROR"),o._("WARNING"),o._("GOOD")];if(s.indexOf(e)===-1)throw Error("Invalid type ["+e+"] for annotation");var f=(i={},i[s[0]]="error",i[s[1]]="warning",i[s[2]]="good",i);return l&&{}.toString.call(l)==="[object Function]"&&(l=l()),'<div class="jooa11y-instance jooa11y-'+f[e]+`-message-container"> <div role="region" aria-label="`+[e]+'" class="jooa11y-'+f[e]+'-message" lang="'+this.options.langCode+`"> `+l+` </div> </div>`},r}();if(!Joomla)throw new Error("Joomla API is not properly initialised");var qn="PLG_SYSTEM_JOOA11Y_";o.translate=function(r){return Joomla.Text._(qn+r,r)};var Un=Joomla.getOptions("jooa11yOptions");window.addEventListener("load",function(){var r=new Fn(Un);r.doInitialCheck()})})();