axe-mcp-server 1.2.1-next.c4e5c114 → 1.2.1-next.ca930708

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- var t={298(t,o,e){e.r(o),e.d(o,{default:()=>a});var i=e(495),n=e.n(i),r=e(336),l=e.n(r)()(n());l.push([t.id,":host{--base-font-size:12px;pointer-events:none!important;position:absolute!important;top:0!important;left:0!important;height:0!important;width:100%!important;opacity:1!important;visibility:visible!important}:host(.highlight--hide){display:none!important}#axe-highlight{position:absolute;pointer-events:none;z-index:2147483647;display:flex;flex:1}#border{border-color:var(--theme--border-color,#0000);border-style:solid}#border,#margin{display:flex;flex:1}#margin{border-color:var(--theme--margin-color,#0000);border-style:solid}#content{background-color:var(--theme--content-color,#0000);background-clip:content-box;border-color:var(--theme--padding-color,#0000);border-style:solid;width:100%;height:100%;box-sizing:border-box;display:flex;flex:1}",""]);const a=l},940(t,o,e){e.r(o),e.d(o,{default:()=>c});var i=e(495),n=e.n(i),r=e(336),l=e.n(r),a=e(299),s=e.n(a),h=new URL(e(484),e.b),p=l()(n()),d=s()(h);p.push([t.id,`:host{--high-contrast-color-outline:#c11bde;--high-contrast-color-shadow:#e267ff}.theme--high-contrast{transform:translate(-6px,-6px);padding:3px;border:3px solid var(--high-contrast-color-outline);box-shadow:0 0 10px 4px var(--high-contrast-color-shadow);max-width:calc(100% - 6px)}.theme--high-contrast.highlight--fullpage{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:0!important;transform:none;border:3px solid var(--high-contrast-color-outline)}.theme--high-contrast:not(.highlight--offscreen):not(.highlight--fullpage)+#tooltip.tooltip--bottom{transform:translateY(6px)}.theme--high-contrast:not(.highlight--offscreen):not(.highlight--fullpage)+#tooltip.tooltip--top{transform:translateY(-6px)}.theme--devtools{--theme--border-color:#ffff3273;--theme--margin-color:#ff960080;--theme--padding-color:#23b45059;--theme--content-color:#1e3cff66}.theme--devtools.highlight--fullpage{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:0!important;transform:none}.theme--selection:before{position:absolute;content:"";display:block;top:0;bottom:0;left:0;right:0;border:3px dashed var(--high-contrast-color-outline)}.theme--selection.highlight--page{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:0!important;transform:none;border:3px dashed var(--high-contrast-color-outline)}.theme--selection.highlight--page:before{display:none}.theme--selected:before{position:absolute;content:"";display:block;top:0;bottom:0;left:0;right:0;border:3px solid var(--high-contrast-color-outline)}.theme--selected.highlight--page{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:0!important;transform:none;border:3px solid var(--high-contrast-color-outline)}.theme--selected.highlight--page:before{display:none}:host{--badge-color-outline:#3c7aae}.theme--badge:before{position:absolute;content:"";display:block;top:0;bottom:0;left:0;right:0;border:3px solid var(--badge-color-outline)}.theme--badge:after{counter-reset:badge var(--axe-highlight-counter);content:var(--axe-highlight-badge-content,counter(badge));position:absolute;top:3px;left:3px;border:3px solid #fff;color:#fff;font-weight:500;background-color:var(--badge-color-outline);display:flex;height:1.5em;min-width:1.5em;align-items:center;justify-content:center;font-family:monospace;font-size:13px}.theme--ml:before{position:absolute;content:"";display:block;top:0;bottom:0;left:0;right:0;border:3px solid var(--high-contrast-color-outline)}.theme--ml:after{content:"";position:absolute;top:-5px;left:-5px;background-image:url(${d});background-repeat:no-repeat;width:29px;height:29px}`,""]);const c=p},126(t,o,e){e.r(o),e.d(o,{default:()=>a});var i=e(495),n=e.n(i),r=e(336),l=e.n(r)()(n());l.push([t.id,':host{--tooltip-background-color:#f9f9f9;--tooltip-border-color:#333;--tooltip-shadow-color:#0003;--tooltip-tag-name-color:#2e40a0;--tooltip-tag-identifier-color:#c53406;--tooltip-text-color:#02101a;--tooltip-label-color:#666;--tooltip-text-accent-color:#4d4d4d}#tooltip{position:absolute;white-space:nowrap;margin:.5rem 0;font-family:monospace;font-size:var(--base-font-size);padding:.6rem;background:var(--tooltip-background-color);color:var(--tooltip-text-color);box-shadow:0 0 6px var(--tooltip-shadow-color);border:3px solid var(--tooltip-border-color);z-index:2147483647;max-width:20rem;border-radius:3px}#tooltip p{margin:0}#tooltip svg{height:13px;width:13px;margin-bottom:-2px}#tooltip:after,#tooltip:before{content:"";display:block;position:absolute;border:.5rem solid #0000;border-top:none;border-bottom:.5rem solid var(--tooltip-background-color)}#tooltip:after{z-index:2;top:0;transform:translateY(1px) translateY(-100%)}#tooltip:before{top:0;transform:translateY(-3px) translateY(-100%);border-bottom:.5rem solid var(--tooltip-border-color);z-index:1}#tooltip.tooltip--top:before{top:100%;transform:rotate(180deg) translateY(-3px)}#tooltip.tooltip--top:after{top:100%;transform:rotate(180deg) translateY(1px)}#tooltip.tooltip--right{margin-right:-1.3rem}#tooltip.tooltip--right:after,#tooltip.tooltip--right:before{right:.6rem}#tooltip.tooltip--left:after,#tooltip.tooltip--left:before{left:.6rem}#tooltip.tooltip--fullscreen{position:fixed!important;top:10px!important;left:10px!important;bottom:auto!important;transform:none;margin:0}#tooltip.tooltip--fullscreen:after,#tooltip.tooltip--fullscreen:before{display:none}#tag{display:grid;grid-template-columns:max-content auto 1fr min-content}#tag-name{color:var(--tooltip-tag-name-color)}#tag-identifier{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;white-space:normal;overflow:hidden;color:var(--tooltip-tag-identifier-color)}#tag-visibility{font-style:italic;color:var(--tooltip-text-accent-color);margin-left:1em}#tag-offscreen{margin-left:1em}#tag-dimensions{font-family:monospace;color:var(--tooltip-text-accent-color);margin-left:1em;justify-self:right}#hidden-eye{position:relative}#hidden-eye:before{position:absolute;content:"";display:block;height:1px;width:16px;background-color:#02101a;top:7px;left:-1px;z-index:1;transform:rotate(-45deg);border:1px solid #fff}#accessible-text{color:var(--tooltip-text-accent-color);white-space:normal}#attributes{display:grid;grid-template-columns:1fr auto;grid-column-gap:1rem;grid-row-gap:.2rem;grid-auto-rows:minmax(1.6em,auto);align-items:center;border-top:1px solid #ccc;padding:.6rem 0 0;margin:.6rem 0 0;font-family:sans-serif}#attributes :is(dd,dl){margin:0}#attributes dt{color:var(--tooltip-label-color)}#attributes dd{justify-self:right;text-align:right;white-space:normal;-webkit-line-clamp:3;-webkit-box-orient:vertical}.contrast-aa{color:#4d4d4d;line-height:1em;display:inline-block;padding:2px;border:1px solid #4d4d4d;font-size:9px;vertical-align:text-bottom;font-family:monospace}#tooltip.tooltip--offscreen.tooltip--top{margin-bottom:1.2rem}#tooltip.tooltip--offscreen.tooltip--right{margin-right:.6rem}#tooltip.tooltip--offscreen.tooltip--left{margin-left:.6rem}#tooltip.tooltip--offscreen.tooltip--right:before{top:.6rem;transform:rotate(90deg) translateY(-24px)}#tooltip.tooltip--offscreen.tooltip--right:after{top:.6rem;transform:rotate(90deg) translateY(-20px)}#tooltip.tooltip--offscreen.tooltip--left:before{top:.6rem;transform:rotate(-90deg) translateY(-24px)}#tooltip.tooltip--offscreen.tooltip--left:after{top:.6rem;transform:rotate(-90deg) translateY(-20px)}',""]);const a=l},336(t){t.exports=function(t){var o=[];return o.toString=function(){return this.map(function(o){var e="",i=void 0!==o[5];return o[4]&&(e+="@supports (".concat(o[4],") {")),o[2]&&(e+="@media ".concat(o[2]," {")),i&&(e+="@layer".concat(o[5].length>0?" ".concat(o[5]):""," {")),e+=t(o),i&&(e+="}"),o[2]&&(e+="}"),o[4]&&(e+="}"),e}).join("")},o.i=function(t,e,i,n,r){"string"==typeof t&&(t=[[null,t,void 0]]);var l={};if(i)for(var a=0;a<this.length;a++){var s=this[a][0];null!=s&&(l[s]=!0)}for(var h=0;h<t.length;h++){var p=[].concat(t[h]);i&&l[p[0]]||(void 0!==r&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=r),e&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=e):p[2]=e),n&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=n):p[4]="".concat(n)),o.push(p))}},o}},299(t){t.exports=function(t,o){return o||(o={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),o.hash&&(t+=o.hash),/["'() \t\n]|(%20)/.test(t)||o.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},495(t){t.exports=function(t){return t[1]}},120(t,o,e){var i=e(298);i&&i.__esModule&&(i=i.default),t.exports="string"==typeof i?i:i.toString()},726(t,o,e){var i=e(940);i&&i.__esModule&&(i=i.default),t.exports="string"==typeof i?i:i.toString()},632(t,o,e){var i=e(126);i&&i.__esModule&&(i=i.default),t.exports="string"==typeof i?i:i.toString()},484(t){t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOSIgaGVpZ2h0PSIyOSI+PGNpcmNsZSBjeD0iMTQuNSIgY3k9IjE0LjUiIHI9IjEzLjUiIGZpbGw9IiMwYjE0MWMiIHN0cm9rZT0iI2Q0ZGRlMCIgc3Ryb2tlLXdpZHRoPSIyIi8+PHBhdGggZmlsbD0iIzc2Y2ZlOCIgZD0iTTYuMjMgMTIuNThoLjkydjUuNTFoLS45MmEuOTEuOTEgMCAwIDEtLjkyLS45MVYxMy41YS45Mi45MiAwIDAgMSAuOTItLjkybTE0LjctMS4zOFYxOWExLjg0IDEuODQgMCAwIDEtMS44NCAxLjg0SDkuOTFBMS44NCAxLjg0IDAgMCAxIDguMDcgMTl2LTcuOGEyLjI5IDIuMjkgMCAwIDEgMi4yOS0yLjI5aDMuMjJWNy4wN2EuOTIuOTIgMCAwIDEgMS44NCAwdjEuODRoMy4yMmEyLjI5IDIuMjkgMCAwIDEgMi4yOSAyLjI5bS04IDIuM2ExLjE1IDEuMTUgMCAxIDAtMS4xNSAxLjE1IDEuMTUgMS4xNSAwIDAgMCAxLjE1LTEuMTVtLS4yMyAzLjY4aC0xLjg4di45MWgxLjg0em0yLjc2IDBoLTEuODh2LjkxaDEuODR6bTMtMy42OGExLjE1IDEuMTUgMCAxIDAtMS4xNSAxLjE1IDEuMTYgMS4xNiAwIDAgMCAxLjE1LTEuMTVtLS4yMyAzLjY4aC0xLjg5di45MWgxLjg0em01LjUxLTMuNjh2My42OGEuOTIuOTIgMCAwIDEtLjkyLjkxaC0uOTJ2LTUuNTFoLjkyYS45Mi45MiAwIDAgMSAuOTIuOTIiLz48L3N2Zz4="}},o={};function e(i){var n=o[i];if(void 0!==n)return n.exports;var r=o[i]={id:i,exports:{}};return t[i](r,r.exports,e),r.exports}e.m=t,e.n=t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},e.d=(t,o)=>{for(var i in o)e.o(o,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:o[i]})},e.o=(t,o)=>Object.prototype.hasOwnProperty.call(t,o),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.b=new URL("./",import.meta.url);const i=(t=window)=>window.top===t;function n(t,o=!0){const e=t.ownerDocument.defaultView,n=i(e),r=t,l=r.getBoundingClientRect(),a=!l.height||!l.width,s=e.getComputedStyle(r)||{};let h=e.frameElement,p=l,d=p.top+(n?e.pageYOffset:0),c=p.left+(n?e.pageXOffset:0),g=d,f=c;if(h)for(g=p.top,f=p.left,d=p.top,c=p.left;h&&o;){const{frameElement:t,pageYOffset:o,pageXOffset:e}=h.ownerDocument.defaultView,n=i(h.ownerDocument.defaultView),r=window.getComputedStyle(h),l=Math.max(parseFloat(r.borderLeftWidth),0),a=Math.max(parseFloat(r.borderTopWidth),0);p=h.getBoundingClientRect(),g+=p.top+a+(n?o:0),f+=p.left+l+(n?e:0),h=t}const m=e.frameElement?{top:g-window.pageYOffset,left:f-window.pageXOffset,height:l.height,width:l.width}:l,u=function(t,o=window.visualViewport||{width:window.innerWidth,height:window.innerWidth}){return{top:t.top+t.height<0,bottom:t.top>o.height,left:t.left+t.width<0,right:t.left>o.width}}(m),b=function(t,o={height:document.documentElement.scrollHeight,width:document.documentElement.scrollWidth}){return{top:t.top+t.height+(window.scrollY||window.pageYOffset)<0,bottom:t.top>o.height,left:t.left+t.width+(window.scrollX||window.pageXOffset)<0,right:t.left>o.width}}(m),x=t=>+t?.replace("px","")||0,{height:w,width:y}=e.visualViewport||{width:e.innerWidth,height:e.innerHeight};return{hidden:a,offViewport:u.top||u.bottom||u.left||u.right,offscreen:b.top||b.bottom||b.left||b.right,offscreenTop:b.top,offscreenBottom:b.bottom,offscreenLeft:b.left,offscreenRight:b.right,fullscreen:g<=0&&f<=0&&l.width>=y&&l.height>=w,top:g,left:f,offsetTop:d,offsetLeft:c,width:l.width,height:l.height,margin:{top:x(s.marginTop),right:x(s.marginRight),bottom:x(s.marginBottom),left:x(s.marginLeft)},border:{top:x(s.borderTopWidth),right:x(s.borderRightWidth),bottom:x(s.borderBottomWidth),left:x(s.borderLeftWidth)},padding:{top:x(s.paddingTop),right:x(s.paddingRight),bottom:x(s.paddingBottom),left:x(s.paddingLeft)}}}const r=new Map,l=t=>1===t.length?t[0]:t,a={isHidden:(...t)=>l(t.map(p)),name:(...t)=>l(t.map(h)),getRole:(...t)=>l(t.map(d)),getContrast:(...t)=>l(t.map(c))};function s(t=document.documentElement,o=!1){var e;const i=t.ownerDocument,n=i.defaultView;if(!n)throw new ReferenceError("no context was found for this node");const l=n.axe;if(!l)throw new ReferenceError("axe was not found in this context");const a=null===(e=r.get(l))||void 0===e?void 0:e[0];return(o||!r.has(l)||a&&!l.utils.getNodeFromTree(a,t))&&r.set(l,l.utils.getFlattenedTree(i)),l}function h(t){const o=s(t),e=function(t,o){let e=r.get(t);e||(e=t.utils.getFlattenedTree(o.ownerDocument),r.set(t,e));return t.utils.getNodeFromTree(e[0],o)}(o,t);return e?o.commons.text.accessibleTextVirtual(e):""}function p(t){return s(t).commons.utils.isHidden(t)}function d(t){const o=s(t);return function(t){return!!s(t).utils.getNodeFromTree(t)}(t)?o.commons.aria.getRole(t):null}function c(t){const o=s(t);let e;try{const i=o.commons.color.getForegroundColor(t),n=o.commons.color.getBackgroundColor(t);e=o.commons.color.getContrast(n,i)}catch(t){console.error(t)}return e}const{getRole:g,getContrast:f,name:m,isHidden:u}=a;function b(t){const o=new Map;try{const e=function(t){const o=f(t);if(!o)return;return{name:"Contrast",value:`\n <span class="contrast-aa">AA</span> ${Math.floor(100*o)/100}\n ${o<4.5?'<svg overflow="visible" preserveAspectRatio="none" viewBox="0 0 24 24" width="14" height="14"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31A7.902 7.902 0 0112 20zm6.31-3.1L7.1 5.69A7.902 7.902 0 0112 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z" vector-effect="non-scaling-stroke" fill="#d93251"></path></svg>':'<svg overflow="visible" preserveAspectRatio="none" viewBox="0 0 24 24" width="14" height="14"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" vector-effect="non-scaling-stroke" fill="#32a852"></path></svg>'}\n `}}(t),i=function(t){const o=g(t);if(o)return{name:"Role",value:o}}(t),n=i&&function(t){const o=m(t);return{name:"Accessible Text",value:u(t)?"<em>hidden</em>":o||"<em>empty</em>"}}(t);[e,i,n].filter(Boolean).forEach(({name:t,value:e})=>{o.set(t,e)})}catch(t){console.error(t)}return o}var x=e(120),w=e.n(x),y=e(632),v=e.n(y),M=e(726),L=e.n(M);const I=document.createElement("template");I.innerHTML=`\n <style>\n ${L()}\n ${w()}\n ${v()}\n </style>\n <style id="position"></style>\n <div id="axe-highlight" class="theme--high-contrast">\n <div id="margin">\n <div id="border">\n <div id="content"></div>\n </div>\n </div>\n </div>\n <div id="tooltip" style="display: none"></div>\n`;const T="tooltip--top",E="tooltip--bottom",j="tooltip--left",A="tooltip--right",S="tooltip--fullscreen",O={fullpage:"highlight--fullpage",offscreen:"highlight--offscreen"},k="highlight--hide",C=320,D=({top:t,right:o,bottom:e,left:i})=>`\n border-top-width: ${Math.max(t,0)}px;\n border-right-width: ${Math.max(o,0)}px;\n border-bottom-width: ${Math.max(e,0)}px;\n border-left-width: ${Math.max(i,0)}px;\n `.replace(/[\s\n]/g,""),$="axe-highlighter";const Y=new class{constructor(){this.target=new EventTarget}on(t,o){this.target.addEventListener(t,o)}remove(t,o){this.target.removeEventListener(t,o)}emit(t){this.target.dispatchEvent(new CustomEvent(t))}},z=function(t,o){let e;return function(...i){e||(e=setTimeout(()=>{t(...i),e=null},o))}}(Y.emit.bind(Y),50),H=t=>{"selection"!==t.theme&&t.theme&&z("highlighter:change")};class N{static tagName=$;constructor(t,o=null){if(!t)return;const e=t.ownerDocument||document;let i;this.target=t,this.selector=o,this.axeHighlighter=e.createElement(N.tagName);try{i=this.axeHighlighter.attachShadow({mode:"open"})}catch{i=this.axeHighlighter.shadowRoot}this.axeHighlighter.style.setProperty("--axe-highlight-counter",R.size+1),i.appendChild(I.content.cloneNode(!0)),this.position=i.getElementById("position"),this.highlight=i.getElementById("axe-highlight"),this.tooltip=i.getElementById("tooltip"),this.cachedLayout=t.layout||n(t)}updatePosition(){const{target:t}=this;if(!t.isConnected&&!t.frameId)return;const{width:o,height:e,margin:i,border:r,padding:l,hidden:a,offViewport:s,offscreen:h,fullscreen:p}=this.cachedLayout=t.layout||n(t);let{top:d,left:c}=this.cachedLayout;const{position:g}=this,{height:f,width:m,pageTop:u,pageLeft:b}=window.visualViewport||{width:window.innerWidth,height:window.innerHeight,pageTop:window.pageYOffset,pageLeft:window.pageXOffset},x=d+e/2>f/2+u,w=c>m-320+b,y=this.axeHighlighter.offsetParent;if(y&&"static"!==getComputedStyle(y).getPropertyValue("position")){const t=y.getBoundingClientRect();d-=t.top+u,c-=t.left+b}g.textContent=`\n #axe-highlight {\n top: ${d-Math.max(i.top,0)}px;\n left: ${c-Math.max(i.left,0)}px;\n }\n\n #tooltip {\n top: ${x?"auto":`${e+(d+Math.max(i.bottom,0))}px`};\n bottom: ${x?-(d-Math.max(i.top,0))+"px":"auto"};\n left: ${w?"auto":`${c}px`};\n right: ${w?m-c+"px":"auto"};\n }\n\n #margin {\n ${D(i)}\n height: ${e}px;\n width: ${o}px;\n }\n\n #border {\n ${D(r)}\n }\n\n #content {\n ${D(l)}\n }\n `;let v=s&&!p,M=h&&!p;if(t.frameId&&t.layout){const{layout:o}=t;v=o.top+o.height<u||o.top>u+f}this.highlight.classList.toggle(O.fullpage,p),this.highlight.classList.toggle(O.offscreen,v||M),this.showTooltip({offViewport:v,offscreen:M,showTooltip:!(!M&&!a)||this.options.showTooltip,hidden:a,flipY:x,flipX:w})}setTheme(t,o){const{classList:e}=this.highlight;e.remove(...e),e.add(`theme--${t}`);const{badgeContent:i}=o;i&&this.axeHighlighter.style.setProperty("--axe-highlight-badge-content",`'${i}'`),this.theme=t,H(this)}setOptions(t){this.options=t}showTooltip({hidden:t=!1,offViewport:o=!1,offscreen:e=!1,showTooltip:i=!1,flipX:n=!1,flipY:r=!1}={}){const{target:l,tooltip:a,cachedLayout:s,options:h}=this,{showMetadata:p}=h;if(!i)return a.innerHTML="",void(a.style.display="none");const{offscreenTop:d=!1,offscreenLeft:c=!1,offscreenBottom:g=!1,offscreenRight:f=!1,top:m,left:u,height:x,width:w,fullscreen:y}=s,v=m-(window.scrollY||window.pageYOffset)+"px",M=u-(window.scrollX||window.pageXOffset)+"px",L=l.tagName.toLowerCase(),I=l.getAttribute?.("id")||l.attributes?.id,O=Array.from(l.classList).join("."),k=I?`#${I}`:O.length?`.${O}`:"";!p||this.checks||l.frameId||(this.checks=b(l));const C=this.checks&&Array.from(this.checks.entries()).map(([t,o])=>`<dt>${t}</dt><dd>${o}</dd>`);a.innerHTML=`\n <div id="tag">\n <strong id="tag-name">${L}</strong><span id="tag-identifier">${k}</span>\n ${t?'<span id="tag-visibility">(hidden)</span>':""}\n <span id="tag-dimensions">${parseFloat(w.toFixed(2))} x ${parseFloat(x.toFixed(2))}</span>\n </div>\n ${C&&C.length?`<dl id="attributes">${C.join("")}</d>`:""}\n `,a.style.display="block";let D=E;requestAnimationFrame(()=>{e?(this.tooltip.style.position="fixed",d?(this.tooltip.style.top="0",this.tooltip.style.bottom="auto",D=E):(this.tooltip.style.top=v,this.tooltip.style.bottom="auto"),g&&(this.tooltip.style.bottom="0",this.tooltip.style.top="auto",D=T),c?(this.tooltip.style.left="0",this.tooltip.style.right="auto",D=j):(this.tooltip.style.left=M,this.tooltip.style.right="auto"),f&&(this.tooltip.style.right="0",this.tooltip.style.left="auto",D=A)):(o?(this.tooltip.style.position="fixed",r?(this.tooltip.style.top="auto",this.tooltip.style.bottom="0"):this.tooltip.style.top="0"):(this.tooltip.style.position="",this.tooltip.style.top="",this.tooltip.style.bottom=""),r&&(D=T),D+=` ${n?A:j}`),a.classList.toggle(S,y),a.classList.remove(T,E,j,A),a.classList.add(...D.split(" "))})}hide(){this.axeHighlighter.classList.add(k),H(this)}show(){this.axeHighlighter.classList.remove(k),H(this)}scrollIntoView({behavior:t="smooth"}={}){const o={block:"center",behavior:t,inline:"nearest"};this.target?.scrollIntoView?.(o)}destroy(){this.axeHighlighter.parentNode?.removeChild(this.axeHighlighter),R.delete(this.target),H(this)}}const R=new Map,V=t=>Array.from(R.keys()).find(o=>o.selector?.flat().join()===t.selector?.flat().join()),B=t=>R.has(t)||!(!t.selector||!V(t));let F=!1,P=!1;function W(){P||(window.requestAnimationFrame(()=>{R.forEach(t=>t.updatePosition()),P=!1}),P=!0)}function Z(){Array.from(R.values()).forEach(t=>t.destroy())}function _(){Array.from(R.values()).forEach(t=>t.show())}function X(){Array.from(R.values()).forEach(t=>t.hide())}function U(t,o=null){let e=null;return F||(window.addEventListener("resize",W),window.addEventListener("scroll",W,!0),window.addEventListener("beforeunload",()=>{window.removeEventListener("resize",W),window.removeEventListener("scroll",W,!0)}),F=!0),{highlight:function({theme:i="high-contrast",themeOptions:n={},showMetadata:r=!0,showTooltip:l=!0}={}){const a=R.get(t),s=V(t);if(e=a||new N(t,o),e.setTheme(i,n),e.setOptions({showTooltip:l,showMetadata:r}),s&&t.selector){R.get(s).destroy()}return a||(R.set(t,e),document.body.appendChild(e.axeHighlighter)),H(this||{theme:i}),e.updatePosition(),e},destroy:function(){e&&(e.destroy(),e=null)},scrollIntoView:t=>e?.scrollIntoView(t)}}export{C as TOOLTIP_MAX_WIDTH,Z as clearHighlights,U as createHighlighter,Y as emitter,V as findExistingHighlighterNode,X as hideHighlights,k as highlightHidden,O as highlightPosition,B as highlighterExists,R as highlighters,_ as showHighlights,$ as tagName,W as updateHighlighters};
1
+ var t={298(t,o,e){e.r(o),e.d(o,{default:()=>l});var i=e(495),r=e.n(i),n=e(336),a=e.n(n)()(r());a.push([t.id,":host{--base-font-size:12px;pointer-events:none!important;position:absolute!important;top:0!important;left:0!important;height:0!important;width:100%!important;opacity:1!important;visibility:visible!important}:host(.highlight--hide){display:none!important}:host(:popover-open){top:0!important;left:0!important;right:auto!important;bottom:auto!important;margin:0!important;padding:0!important;border:0!important;background:#0000!important;overflow:visible!important}#axe-highlight{position:absolute;pointer-events:none;z-index:2147483647;display:flex;flex:1}#border{border-color:var(--theme--border-color,#0000);border-style:solid}#border,#margin{display:flex;flex:1}#margin{border-color:var(--theme--margin-color,#0000);border-style:solid}#content{background-color:var(--theme--content-color,#0000);background-clip:content-box;border-color:var(--theme--padding-color,#0000);border-style:solid;width:100%;height:100%;box-sizing:border-box;display:flex;flex:1}",""]);const l=a},940(t,o,e){e.r(o),e.d(o,{default:()=>c});var i=e(495),r=e.n(i),n=e(336),a=e.n(n),l=e(299),s=e.n(l),h=new URL(e(484),e.b),p=a()(r()),d=s()(h);p.push([t.id,`:host{--high-contrast-color-outline:#c11bde;--high-contrast-color-shadow:#e267ff}.theme--high-contrast{transform:translate(-6px,-6px);padding:3px;border:3px solid var(--high-contrast-color-outline);box-shadow:0 0 10px 4px var(--high-contrast-color-shadow);max-width:calc(100% - 6px)}.theme--high-contrast.highlight--fullpage{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:0!important;transform:none;border:3px solid var(--high-contrast-color-outline)}.theme--high-contrast:not(.highlight--offscreen):not(.highlight--fullpage)+#tooltip.tooltip--bottom{transform:translateY(6px)}.theme--high-contrast:not(.highlight--offscreen):not(.highlight--fullpage)+#tooltip.tooltip--top{transform:translateY(-6px)}.theme--devtools{--theme--border-color:#ffff3273;--theme--margin-color:#ff960080;--theme--padding-color:#23b45059;--theme--content-color:#1e3cff66}.theme--devtools.highlight--fullpage{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:0!important;transform:none}.theme--selection:before{position:absolute;content:"";display:block;top:0;bottom:0;left:0;right:0;border:3px dashed var(--high-contrast-color-outline)}.theme--selection.highlight--page{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:0!important;transform:none;border:3px dashed var(--high-contrast-color-outline)}.theme--selection.highlight--page:before{display:none}.theme--selected:before{position:absolute;content:"";display:block;top:0;bottom:0;left:0;right:0;border:3px solid var(--high-contrast-color-outline)}.theme--selected.highlight--page{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:0!important;transform:none;border:3px solid var(--high-contrast-color-outline)}.theme--selected.highlight--page:before{display:none}:host{--badge-color-outline:#3c7aae}.theme--badge:before{position:absolute;content:"";display:block;top:0;bottom:0;left:0;right:0;border:3px solid var(--badge-color-outline)}.theme--badge:after{counter-reset:badge var(--axe-highlight-counter);content:var(--axe-highlight-badge-content,counter(badge));position:absolute;top:3px;left:3px;border:3px solid #fff;color:#fff;font-weight:500;background-color:var(--badge-color-outline);display:flex;height:1.5em;min-width:1.5em;align-items:center;justify-content:center;font-family:monospace;font-size:13px}.theme--ml:before{position:absolute;content:"";display:block;top:0;bottom:0;left:0;right:0;border:3px solid var(--high-contrast-color-outline)}.theme--ml:after{content:"";position:absolute;top:-5px;left:-5px;background-image:url(${d});background-repeat:no-repeat;width:29px;height:29px}`,""]);const c=p},126(t,o,e){e.r(o),e.d(o,{default:()=>l});var i=e(495),r=e.n(i),n=e(336),a=e.n(n)()(r());a.push([t.id,':host{--tooltip-background-color:#f9f9f9;--tooltip-border-color:#333;--tooltip-shadow-color:#0003;--tooltip-tag-name-color:#2e40a0;--tooltip-tag-identifier-color:#c53406;--tooltip-text-color:#02101a;--tooltip-label-color:#666;--tooltip-text-accent-color:#4d4d4d}#tooltip{position:absolute;white-space:nowrap;margin:.5rem 0;font-family:monospace;font-size:var(--base-font-size);padding:.6rem;background:var(--tooltip-background-color);color:var(--tooltip-text-color);box-shadow:0 0 6px var(--tooltip-shadow-color);border:3px solid var(--tooltip-border-color);z-index:2147483647;max-width:20rem;border-radius:3px}#tooltip p{margin:0}#tooltip svg{height:13px;width:13px;margin-bottom:-2px}#tooltip:after,#tooltip:before{content:"";display:block;position:absolute;border:.5rem solid #0000;border-top:none;border-bottom:.5rem solid var(--tooltip-background-color)}#tooltip:after{z-index:2;top:0;transform:translateY(1px) translateY(-100%)}#tooltip:before{top:0;transform:translateY(-3px) translateY(-100%);border-bottom:.5rem solid var(--tooltip-border-color);z-index:1}#tooltip.tooltip--top:before{top:100%;transform:rotate(180deg) translateY(-3px)}#tooltip.tooltip--top:after{top:100%;transform:rotate(180deg) translateY(1px)}#tooltip.tooltip--right{margin-right:-1.3rem}#tooltip.tooltip--right:after,#tooltip.tooltip--right:before{right:.6rem}#tooltip.tooltip--left:after,#tooltip.tooltip--left:before{left:.6rem}#tooltip.tooltip--fullscreen{position:fixed!important;top:10px!important;left:10px!important;bottom:auto!important;transform:none;margin:0}#tooltip.tooltip--fullscreen:after,#tooltip.tooltip--fullscreen:before{display:none}#tag{display:grid;grid-template-columns:max-content auto 1fr min-content}#tag-name{color:var(--tooltip-tag-name-color)}#tag-identifier{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;white-space:normal;overflow:hidden;color:var(--tooltip-tag-identifier-color)}#tag-visibility{font-style:italic;color:var(--tooltip-text-accent-color);margin-left:1em}#tag-offscreen{margin-left:1em}#tag-dimensions{font-family:monospace;color:var(--tooltip-text-accent-color);margin-left:1em;justify-self:right}#hidden-eye{position:relative}#hidden-eye:before{position:absolute;content:"";display:block;height:1px;width:16px;background-color:#02101a;top:7px;left:-1px;z-index:1;transform:rotate(-45deg);border:1px solid #fff}#accessible-text{color:var(--tooltip-text-accent-color);white-space:normal}#attributes{display:grid;grid-template-columns:1fr auto;grid-column-gap:1rem;grid-row-gap:.2rem;grid-auto-rows:minmax(1.6em,auto);align-items:center;border-top:1px solid #ccc;padding:.6rem 0 0;margin:.6rem 0 0;font-family:sans-serif}#attributes :is(dd,dl){margin:0}#attributes dt{color:var(--tooltip-label-color)}#attributes dd{justify-self:right;text-align:right;white-space:normal;-webkit-line-clamp:3;-webkit-box-orient:vertical}.contrast-aa{color:#4d4d4d;line-height:1em;display:inline-block;padding:2px;border:1px solid #4d4d4d;font-size:9px;vertical-align:text-bottom;font-family:monospace}#tooltip.tooltip--offscreen.tooltip--top{margin-bottom:1.2rem}#tooltip.tooltip--offscreen.tooltip--right{margin-right:.6rem}#tooltip.tooltip--offscreen.tooltip--left{margin-left:.6rem}#tooltip.tooltip--offscreen.tooltip--right:before{top:.6rem;transform:rotate(90deg) translateY(-24px)}#tooltip.tooltip--offscreen.tooltip--right:after{top:.6rem;transform:rotate(90deg) translateY(-20px)}#tooltip.tooltip--offscreen.tooltip--left:before{top:.6rem;transform:rotate(-90deg) translateY(-24px)}#tooltip.tooltip--offscreen.tooltip--left:after{top:.6rem;transform:rotate(-90deg) translateY(-20px)}',""]);const l=a},336(t){t.exports=function(t){var o=[];return o.toString=function(){return this.map(function(o){var e="",i=void 0!==o[5];return o[4]&&(e+="@supports (".concat(o[4],") {")),o[2]&&(e+="@media ".concat(o[2]," {")),i&&(e+="@layer".concat(o[5].length>0?" ".concat(o[5]):""," {")),e+=t(o),i&&(e+="}"),o[2]&&(e+="}"),o[4]&&(e+="}"),e}).join("")},o.i=function(t,e,i,r,n){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(i)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var h=0;h<t.length;h++){var p=[].concat(t[h]);i&&a[p[0]]||(void 0!==n&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=n),e&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=e):p[2]=e),r&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=r):p[4]="".concat(r)),o.push(p))}},o}},299(t){t.exports=function(t,o){return o||(o={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),o.hash&&(t+=o.hash),/["'() \t\n]|(%20)/.test(t)||o.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},495(t){t.exports=function(t){return t[1]}},120(t,o,e){var i=e(298);i&&i.__esModule&&(i=i.default),t.exports="string"==typeof i?i:i.toString()},726(t,o,e){var i=e(940);i&&i.__esModule&&(i=i.default),t.exports="string"==typeof i?i:i.toString()},632(t,o,e){var i=e(126);i&&i.__esModule&&(i=i.default),t.exports="string"==typeof i?i:i.toString()},484(t){t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOSIgaGVpZ2h0PSIyOSI+PGNpcmNsZSBjeD0iMTQuNSIgY3k9IjE0LjUiIHI9IjEzLjUiIGZpbGw9IiMwYjE0MWMiIHN0cm9rZT0iI2Q0ZGRlMCIgc3Ryb2tlLXdpZHRoPSIyIi8+PHBhdGggZmlsbD0iIzc2Y2ZlOCIgZD0iTTYuMjMgMTIuNThoLjkydjUuNTFoLS45MmEuOTEuOTEgMCAwIDEtLjkyLS45MVYxMy41YS45Mi45MiAwIDAgMSAuOTItLjkybTE0LjctMS4zOFYxOWExLjg0IDEuODQgMCAwIDEtMS44NCAxLjg0SDkuOTFBMS44NCAxLjg0IDAgMCAxIDguMDcgMTl2LTcuOGEyLjI5IDIuMjkgMCAwIDEgMi4yOS0yLjI5aDMuMjJWNy4wN2EuOTIuOTIgMCAwIDEgMS44NCAwdjEuODRoMy4yMmEyLjI5IDIuMjkgMCAwIDEgMi4yOSAyLjI5bS04IDIuM2ExLjE1IDEuMTUgMCAxIDAtMS4xNSAxLjE1IDEuMTUgMS4xNSAwIDAgMCAxLjE1LTEuMTVtLS4yMyAzLjY4aC0xLjg4di45MWgxLjg0em0yLjc2IDBoLTEuODh2LjkxaDEuODR6bTMtMy42OGExLjE1IDEuMTUgMCAxIDAtMS4xNSAxLjE1IDEuMTYgMS4xNiAwIDAgMCAxLjE1LTEuMTVtLS4yMyAzLjY4aC0xLjg5di45MWgxLjg0em01LjUxLTMuNjh2My42OGEuOTIuOTIgMCAwIDEtLjkyLjkxaC0uOTJ2LTUuNTFoLjkyYS45Mi45MiAwIDAgMSAuOTIuOTIiLz48L3N2Zz4="}},o={};function e(i){var r=o[i];if(void 0!==r)return r.exports;var n=o[i]={id:i,exports:{}};return t[i](n,n.exports,e),n.exports}e.m=t,e.n=t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},e.d=(t,o)=>{for(var i in o)e.o(o,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:o[i]})},e.o=(t,o)=>Object.prototype.hasOwnProperty.call(t,o),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.b=new URL("./",import.meta.url);const i=(t=window)=>window.top===t;function r(t,o=!0){const e=t.ownerDocument.defaultView,r=i(e),n=t,a=n.getBoundingClientRect(),l=!a.height||!a.width,s=e.getComputedStyle(n)||{};let h=e.frameElement,p=a,d=p.top+(r?e.pageYOffset:0),c=p.left+(r?e.pageXOffset:0),g=d,f=c;if(h)for(g=p.top,f=p.left,d=p.top,c=p.left;h&&o;){const{frameElement:t,pageYOffset:o,pageXOffset:e}=h.ownerDocument.defaultView,r=i(h.ownerDocument.defaultView),n=window.getComputedStyle(h),a=Math.max(parseFloat(n.borderLeftWidth),0),l=Math.max(parseFloat(n.borderTopWidth),0);p=h.getBoundingClientRect(),g+=p.top+l+(r?o:0),f+=p.left+a+(r?e:0),h=t}const m=e.frameElement?{top:g-window.pageYOffset,left:f-window.pageXOffset,height:a.height,width:a.width}:a,u=function(t,o=window.visualViewport||{width:window.innerWidth,height:window.innerWidth}){return{top:t.top+t.height<0,bottom:t.top>o.height,left:t.left+t.width<0,right:t.left>o.width}}(m),b=function(t,o={height:document.documentElement.scrollHeight,width:document.documentElement.scrollWidth}){return{top:t.top+t.height+(window.scrollY||window.pageYOffset)<0,bottom:t.top>o.height,left:t.left+t.width+(window.scrollX||window.pageXOffset)<0,right:t.left>o.width}}(m),x=t=>+t?.replace("px","")||0,{height:w,width:y}=e.visualViewport||{width:e.innerWidth,height:e.innerHeight};return{hidden:l,offViewport:u.top||u.bottom||u.left||u.right,offscreen:b.top||b.bottom||b.left||b.right,offscreenTop:b.top,offscreenBottom:b.bottom,offscreenLeft:b.left,offscreenRight:b.right,fullscreen:g<=0&&f<=0&&a.width>=y&&a.height>=w,top:g,left:f,offsetTop:d,offsetLeft:c,width:a.width,height:a.height,margin:{top:x(s.marginTop),right:x(s.marginRight),bottom:x(s.marginBottom),left:x(s.marginLeft)},border:{top:x(s.borderTopWidth),right:x(s.borderRightWidth),bottom:x(s.borderBottomWidth),left:x(s.borderLeftWidth)},padding:{top:x(s.paddingTop),right:x(s.paddingRight),bottom:x(s.paddingBottom),left:x(s.paddingLeft)}}}const n=new Map,a=t=>1===t.length?t[0]:t,l={isHidden:(...t)=>a(t.map(p)),name:(...t)=>a(t.map(h)),getRole:(...t)=>a(t.map(d)),getContrast:(...t)=>a(t.map(c))};function s(t=document.documentElement,o=!1){var e;const i=t.ownerDocument,r=i.defaultView;if(!r)throw new ReferenceError("no context was found for this node");const a=r.axe;if(!a)throw new ReferenceError("axe was not found in this context");const l=null===(e=n.get(a))||void 0===e?void 0:e[0];return(o||!n.has(a)||l&&!a.utils.getNodeFromTree(l,t))&&n.set(a,a.utils.getFlattenedTree(i)),a}function h(t){const o=s(t),e=function(t,o){let e=n.get(t);e||(e=t.utils.getFlattenedTree(o.ownerDocument),n.set(t,e));return t.utils.getNodeFromTree(e[0],o)}(o,t);return e?o.commons.text.accessibleTextVirtual(e):""}function p(t){return s(t).commons.utils.isHidden(t)}function d(t){const o=s(t);return function(t){return!!s(t).utils.getNodeFromTree(t)}(t)?o.commons.aria.getRole(t):null}function c(t){const o=s(t);let e;try{const i=o.commons.color.getForegroundColor(t),r=o.commons.color.getBackgroundColor(t);e=o.commons.color.getContrast(r,i)}catch(t){console.error(t)}return e}const{getRole:g,getContrast:f,name:m,isHidden:u}=l;function b(t){const o=new Map;try{const e=function(t){const o=f(t);if(!o)return;return{name:"Contrast",value:`\n <span class="contrast-aa">AA</span> ${Math.floor(100*o)/100}\n ${o<4.5?'<svg overflow="visible" preserveAspectRatio="none" viewBox="0 0 24 24" width="14" height="14"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31A7.902 7.902 0 0112 20zm6.31-3.1L7.1 5.69A7.902 7.902 0 0112 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z" vector-effect="non-scaling-stroke" fill="#d93251"></path></svg>':'<svg overflow="visible" preserveAspectRatio="none" viewBox="0 0 24 24" width="14" height="14"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" vector-effect="non-scaling-stroke" fill="#32a852"></path></svg>'}\n `}}(t),i=function(t){const o=g(t);if(o)return{name:"Role",value:o}}(t),r=i&&function(t){const o=m(t);return{name:"Accessible Text",value:u(t)?"<em>hidden</em>":o||"<em>empty</em>"}}(t);[e,i,r].filter(Boolean).forEach(({name:t,value:e})=>{o.set(t,e)})}catch(t){console.error(t)}return o}var x=e(120),w=e.n(x),y=e(632),v=e.n(y),M=e(726),L=e.n(M);const T=document.createElement("template");T.innerHTML=`\n <style>\n ${L()}\n ${w()}\n ${v()}\n </style>\n <style id="position"></style>\n <div id="axe-highlight" class="theme--high-contrast">\n <div id="margin">\n <div id="border">\n <div id="content"></div>\n </div>\n </div>\n </div>\n <div id="tooltip" style="display: none"></div>\n`;const I="tooltip--top",E="tooltip--bottom",j="tooltip--left",A="tooltip--right",S="tooltip--fullscreen",O={fullpage:"highlight--fullpage",offscreen:"highlight--offscreen"},k="highlight--hide",C=320,D=({top:t,right:o,bottom:e,left:i})=>`\n border-top-width: ${Math.max(t,0)}px;\n border-right-width: ${Math.max(o,0)}px;\n border-bottom-width: ${Math.max(e,0)}px;\n border-left-width: ${Math.max(i,0)}px;\n `.replace(/[\s\n]/g,""),$="axe-highlighter",H=()=>"undefined"!=typeof HTMLElement&&"popover"in HTMLElement.prototype;const Y=new class{constructor(){this.target=new EventTarget}on(t,o){this.target.addEventListener(t,o)}remove(t,o){this.target.removeEventListener(t,o)}emit(t){this.target.dispatchEvent(new CustomEvent(t))}},z=function(t,o){let e;return function(...i){e||(e=setTimeout(()=>{t(...i),e=null},o))}}(Y.emit.bind(Y),50),N=t=>{"selection"!==t.theme&&t.theme&&z("highlighter:change")};class R{static tagName=$;constructor(t,o=null){if(!t)return;const e=t.ownerDocument||document;let i;this.target=t,this.selector=o,this.axeHighlighter=e.createElement(R.tagName);try{i=this.axeHighlighter.attachShadow({mode:"open"})}catch{i=this.axeHighlighter.shadowRoot}this.axeHighlighter.style.setProperty("--axe-highlight-counter",V.size+1),i.appendChild(T.content.cloneNode(!0)),this.position=i.getElementById("position"),this.highlight=i.getElementById("axe-highlight"),this.tooltip=i.getElementById("tooltip"),this.cachedLayout=t.layout||r(t)}updatePosition(){const{target:t}=this;if(!t.isConnected&&!t.frameId)return;const{width:o,height:e,margin:i,border:n,padding:a,hidden:l,offViewport:s,offscreen:h,fullscreen:p}=this.cachedLayout=t.layout||r(t);let{top:d,left:c}=this.cachedLayout;const{position:g}=this,{height:f,width:m,pageTop:u,pageLeft:b}=window.visualViewport||{width:window.innerWidth,height:window.innerHeight,pageTop:window.pageYOffset,pageLeft:window.pageXOffset},x=d+e/2>f/2+u,w=c>m-320+b,y=this.axeHighlighter.offsetParent;if(y&&"static"!==getComputedStyle(y).getPropertyValue("position")){const t=y.getBoundingClientRect();d-=t.top+u,c-=t.left+b}g.textContent=`\n #axe-highlight {\n top: ${d-Math.max(i.top,0)}px;\n left: ${c-Math.max(i.left,0)}px;\n }\n\n #tooltip {\n top: ${x?"auto":`${e+(d+Math.max(i.bottom,0))}px`};\n bottom: ${x?-(d-Math.max(i.top,0))+"px":"auto"};\n left: ${w?"auto":`${c}px`};\n right: ${w?m-c+"px":"auto"};\n }\n\n #margin {\n ${D(i)}\n height: ${e}px;\n width: ${o}px;\n }\n\n #border {\n ${D(n)}\n }\n\n #content {\n ${D(a)}\n }\n `;let v=s&&!p,M=h&&!p;if(t.frameId&&t.layout){const{layout:o}=t;v=o.top+o.height<u||o.top>u+f}this.highlight.classList.toggle(O.fullpage,p),this.highlight.classList.toggle(O.offscreen,v||M),this.showTooltip({offViewport:v,offscreen:M,showTooltip:!(!M&&!l)||this.options.showTooltip,hidden:l,flipY:x,flipX:w})}setTheme(t,o){const{classList:e}=this.highlight;e.remove(...e),e.add(`theme--${t}`);const{badgeContent:i}=o;i&&this.axeHighlighter.style.setProperty("--axe-highlight-badge-content",`'${i}'`),this.theme=t,N(this)}setOptions(t){this.options=t}showTooltip({hidden:t=!1,offViewport:o=!1,offscreen:e=!1,showTooltip:i=!1,flipX:r=!1,flipY:n=!1}={}){const{target:a,tooltip:l,cachedLayout:s,options:h}=this,{showMetadata:p}=h;if(!i)return l.innerHTML="",void(l.style.display="none");const{offscreenTop:d=!1,offscreenLeft:c=!1,offscreenBottom:g=!1,offscreenRight:f=!1,top:m,left:u,height:x,width:w,fullscreen:y}=s,v=m-(window.scrollY||window.pageYOffset)+"px",M=u-(window.scrollX||window.pageXOffset)+"px",L=a.tagName.toLowerCase(),T=a.getAttribute?.("id")||a.attributes?.id,O=Array.from(a.classList).join("."),k=T?`#${T}`:O.length?`.${O}`:"";!p||this.checks||a.frameId||(this.checks=b(a));const C=this.checks&&Array.from(this.checks.entries()).map(([t,o])=>`<dt>${t}</dt><dd>${o}</dd>`);l.innerHTML=`\n <div id="tag">\n <strong id="tag-name">${L}</strong><span id="tag-identifier">${k}</span>\n ${t?'<span id="tag-visibility">(hidden)</span>':""}\n <span id="tag-dimensions">${parseFloat(w.toFixed(2))} x ${parseFloat(x.toFixed(2))}</span>\n </div>\n ${C&&C.length?`<dl id="attributes">${C.join("")}</dl>`:""}\n `,l.style.display="block";let D=E;requestAnimationFrame(()=>{e?(this.tooltip.style.position="fixed",d?(this.tooltip.style.top="0",this.tooltip.style.bottom="auto",D=E):(this.tooltip.style.top=v,this.tooltip.style.bottom="auto"),g&&(this.tooltip.style.bottom="0",this.tooltip.style.top="auto",D=I),c?(this.tooltip.style.left="0",this.tooltip.style.right="auto",D=j):(this.tooltip.style.left=M,this.tooltip.style.right="auto"),f&&(this.tooltip.style.right="0",this.tooltip.style.left="auto",D=A)):(o?(this.tooltip.style.position="fixed",n?(this.tooltip.style.top="auto",this.tooltip.style.bottom="0"):this.tooltip.style.top="0"):(this.tooltip.style.position="",this.tooltip.style.top="",this.tooltip.style.bottom=""),n&&(D=I),D+=` ${r?A:j}`),l.classList.toggle(S,y),l.classList.remove(I,E,j,A),l.classList.add(...D.split(" "))})}hide(){this.axeHighlighter.classList.add(k),N(this)}show(){this.axeHighlighter.classList.remove(k),this.showInTopLayer(),N(this)}scrollIntoView({behavior:t="smooth"}={}){const o={block:"center",behavior:t,inline:"nearest"};this.target?.scrollIntoView?.(o)}showInTopLayer(){if(H()&&!this.axeHighlighter.matches?.(":popover-open"))try{this.axeHighlighter.setAttribute("popover","manual"),this.axeHighlighter.showPopover()}catch{this.axeHighlighter.matches?.(":popover-open")||this.axeHighlighter.removeAttribute("popover")}}destroy(){try{this.axeHighlighter.matches?.(":popover-open")&&this.axeHighlighter.hidePopover()}catch{}this.axeHighlighter.parentNode?.removeChild(this.axeHighlighter),V.delete(this.target),N(this)}}const V=new Map,B=t=>Array.from(V.keys()).find(o=>o.selector?.flat().join()===t.selector?.flat().join()),P=t=>V.has(t)||!(!t.selector||!B(t));let F=!1,W=!1;function Z(){W||(window.requestAnimationFrame(()=>{V.forEach(t=>t.updatePosition()),W=!1}),W=!0)}function _(){Array.from(V.values()).forEach(t=>t.destroy())}function X(){Array.from(V.values()).forEach(t=>t.show())}function U(){Array.from(V.values()).forEach(t=>t.hide())}function G(t,o=null){let e=null;return F||(window.addEventListener("resize",Z),window.addEventListener("scroll",Z,!0),window.addEventListener("beforeunload",()=>{window.removeEventListener("resize",Z),window.removeEventListener("scroll",Z,!0)}),F=!0),{highlight:function({theme:i="high-contrast",themeOptions:r={},showMetadata:n=!0,showTooltip:a=!0}={}){const l=V.get(t),s=B(t);if(e=l||new R(t,o),e.setTheme(i,r),e.setOptions({showTooltip:a,showMetadata:n}),s&&t.selector){V.get(s).destroy()}return l||(V.set(t,e),document.body.appendChild(e.axeHighlighter),e.showInTopLayer()),N(this||{theme:i}),e.updatePosition(),e},destroy:function(){e&&(e.destroy(),e=null)},scrollIntoView:t=>e?.scrollIntoView(t)}}export{C as TOOLTIP_MAX_WIDTH,_ as clearHighlights,G as createHighlighter,Y as emitter,B as findExistingHighlighterNode,U as hideHighlights,k as highlightHidden,O as highlightPosition,P as highlighterExists,V as highlighters,X as showHighlights,H as supportsPopover,$ as tagName,Z as updateHighlighters};
@@ -63,6 +63,7 @@
63
63
  "offline_enabled": true,
64
64
  "minimum_chrome_version": "88",
65
65
  "incognito": "split",
66
+ "version_name": "4.131.3.17716 build 7a79000861",
66
67
  "externally_connectable": {
67
68
  "matches": [
68
69
  "http://local.axepro.com:3000/*"
@@ -78,5 +79,5 @@
78
79
  "default_title": "Axe Accessibility",
79
80
  "browser_style": true
80
81
  },
81
- "version": "4.131.1"
82
+ "version": "4.131.3.17716"
82
83
  }