axe-mcp-server 1.7.0 → 1.7.1-next.02c2ea1f
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.
- package/README.md +2 -1
- package/credits.json +85 -52
- package/extension/assets/fonts/roboto-cyrillic-700-normal.woff2 +0 -0
- package/extension/assets/fonts/roboto-cyrillic-ext-700-normal.woff2 +0 -0
- package/extension/assets/fonts/roboto-greek-700-normal.woff2 +0 -0
- package/extension/assets/fonts/roboto-greek-ext-700-normal.woff2 +0 -0
- package/extension/assets/fonts/roboto-latin-700-normal.woff2 +0 -0
- package/extension/assets/fonts/roboto-latin-ext-700-normal.woff2 +0 -0
- package/extension/assets/fonts/roboto-math-700-normal.woff2 +0 -0
- package/extension/assets/fonts/roboto-symbols-700-normal.woff2 +0 -0
- package/extension/assets/fonts/roboto-vietnamese-700-normal.woff2 +0 -0
- package/extension/assets/styles/panel.bundle.css +6 -6
- package/extension/assets/styles/popup.bundle.css +1 -1
- package/extension/background.bundle.js +2 -2
- package/extension/content.bundle.js +5 -5
- package/extension/credits.json +65 -462
- package/extension/devtools.bundle.js +2 -1
- package/extension/devtools.bundle.js.LICENSE.txt +9 -0
- package/extension/gather-internals.js +219 -1
- package/extension/highlighter.js +1 -1
- package/extension/manifest.json +2 -2
- package/extension/panel.bundle.js +9 -9
- package/extension/popup.bundle.js +3 -3
- package/extension/vendor.bundle.js +1 -1
- package/extension/vendor.bundle.js.LICENSE.txt +3 -1
- package/index.js +17 -17
- package/package.json +14 -2
|
@@ -1 +1,2 @@
|
|
|
1
|
-
(()=>{var e={1924(e,t,r){"use strict";var n=r.cw(function(e,t){t._O=t.yS=void 0;var n=o(),i=l(s()),a=l(r(5226));function l(e){return e&&e.__esModule?e:{default:e}}const{background:c,devtools:u,content:d}=i.default,p=Object.values(i.default),f=(0,a.default)("bridge"),g=(0,a.default)("bridge:message"),b=(0,a.default)("bridge:response");t.yS=new class{constructor(){if(!p.includes(n.browser.context||""))throw new Error(`Unable to initialize web-extension bridge. Unsupported context: ${n.browser.context}`);this.messageListeners=new Map,this.attachListener()}get context(){return n.browser.context}attachListener=()=>{const{browserListener:e}=this;n.browser.hasListener(e)||(f("web-extension bridge initialized with context %s",n.browser.context),n.browser.addListener(e))};browserListener=(e,t)=>{const{origin:r,context:o,topic:s,message:i,options:a={}}=e,{tab:l,frameId:p}=t,f=l&&-1!==l.id?l.id:null==a?void 0:a.tabId;if(!r)return;if(n.browser.context===c&&o===d){const{frameId:e,allFrames:t}=a;return this.send(o,s,i,{tabId:(null==a?void 0:a.tabId)||f,frameId:e,allFrames:t})}const g=n.browser.context!==u||n.browser.tabId===f;if(o!==n.browser.context||!g)return;const b=this.getListeners(s),m=e=>{console.error(e)};try{for(const e of b){const t=e({context:o,topic:s,message:i,origin:r,tabId:f,frameId:p});if(!e.isGlobal&&void 0!==t)return Promise.resolve(t).catch(m)}}catch(e){m(e)}};async send(e,t,r,{tabId:o,frameId:s=0,allFrames:a=!1}={}){if(!n.browser.context)return;if(!e||!p.includes(e))throw new Error(`Cannot send web-extension bridge message without a valid destination context: ['${p.join("', '")}'].`);let l;o||n.browser.context!==u||(o=n.browser.tabId),l=n.browser.context===u?`${n.browser.context}:${o}`:n.browser.context;let c=e;[n.browser.context,e].includes(d)&&o&&(c+=`:${o}`),g(`[${t}] ${l} → ${c}: %O`,void 0!==r?r:"");const f={origin:l,context:e,topic:t,message:r,options:e===d?{tabId:o,frameId:s,allFrames:a}:{tabId:o}},m=e===i.default.content?{tabId:o,frameId:s,allFrames:a}:void 0;let v=null;try{v=await n.browser.sendMessage(f,m)}catch(e){let t;if(e instanceof Error&&(t=e.message),"Could not establish connection. Receiving end does not exist."!==t)throw e}return null!==v&&b(`[${t}] ${c} → ${l}: %O`,v),v}getListeners(e){const{messageListeners:t}=this;return e&&"*"!==e?[...t.get(e)||[],...t.get("*")||[]]:t.get("*")||[]}listen(e,t){if("function"==typeof e&&(t=e,e="*"),"function"!=typeof t)return;const{messageListeners:r}=this,n=r.get(e)||[];"*"===e&&(t.isGlobal=!0),n.length?r.set(e,[...n,t]):r.set(e,[t])}unlisten(e,t){if("function"==typeof e&&(t=e,e="*"),"function"!=typeof t)return;const{messageListeners:r}=this,n=(r.get(e)||[]).filter(e=>e!==t);n.length?r.set(e,n):r.delete(e)}},t._O=i.default}),o=r.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.browser=void 0;var r,n=(r=s())&&r.__esModule?r:{default:r};const o=e=>void 0!==globalThis.browser&&e in globalThis.browser;t.browser={hasApi:o,get tabId(){var e;return(null===(e=globalThis.browser)||void 0===e||null===(e=e.devtools)||void 0===e?void 0:e.inspectedWindow.tabId)??null},get context(){return o("devtools")?n.default.devtools:o("tabs")?n.default.background:o("extension")?n.default.content:null},addListener(e){globalThis.browser.runtime.onMessage.addListener(e)},hasListener:e=>globalThis.browser.runtime.onMessage.hasListener(e),removeListener(e){globalThis.browser.runtime.onMessage.removeListener(e)},async sendMessage(e,t={}){if(void 0===globalThis.browser)throw new Error("Cannot send bridge message in a non-browser context.");const{tabId:r,frameId:n,allFrames:o}=t;return r&&globalThis.browser.tabs&&"function"==typeof globalThis.browser.tabs.sendMessage?globalThis.browser.tabs.sendMessage(r,e,{frameId:o?void 0:n}):globalThis.browser.runtime.sendMessage(e)}}}),s=r.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={background:"background",devtools:"devtools",content:"content-script"}}),i=r(1616);const a=JSON.parse('{"rE":"4.137.1-next.0f089c89"}');n();var l=r(5500);const c={chrome:"extension-chrome",firefox:"extension-firefox",edge:"extension-edge"};let u,d;const p=async(e=!1,t)=>{let{usageServerURL:r}=await browser.storage.local.get("usageServerURL");return!e&&u&&r===d||(d=r,"default"===r&&(r="https://usage.dequelabs.com"),u=new l.Ay("axe-devtools-html",c[t||"chrome"]),u.url(r)),u},f=["organization","enterpriseId","keycloakId","userId"],g=(e,t)=>{return!(null==e||!e.id||null==t||!t.refresh_expires_at)&&t.refresh_expires_at>(r=new Date,Math.floor(new Date(r).getTime()/1e3));var r},b=async e=>{const{enableOffline:t,user:r,session:n}=await browser.storage.local.get(["enableOffline","user","session"]);return!t&&(!(e=>f.some(t=>!(null==e||!e[t])))(e)||g(r,n))};console;var m=r(7143);let v;async function h(){return(await y()).distinct_id}const y=async()=>{if(v)return v;const{axeServerURL:e,session:t}=await browser.storage.local.get(["axeServerURL","session"]);return v=await(0,m.getDistinctIdCookie)({host:"default"===e?"http://localhost:1234":e,origin:globalThis.location.origin,token:null==t?void 0:t.access_token}),v};let w,O;const x=e=>{w=e,O=void 0},I=e=>{var t;w?e(w):null===(t=O)||void 0===t||t.then(()=>{w&&e(w)})},{FIREFOX:P}={FIREFOX:"false"};let j;function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach(function(t){T(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function T(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const C=({originalError:e,message:t,level:r="error",additionalContext:n={},isSerialized:o=!1})=>{if(o)return void I(o=>o.logger[r](t,S(S({},e),n)));const s=(e=>e instanceof Error?e:new Error("Unknown error"+(e?`: ${e}`:"")))(e),i={error:s.message,stack:s.stack,original_error:e};I(e=>e.logger[r](t,S(S({},i),n)))};const _=["event"];function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach(function(t){R(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function R(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const{AMPLITUDE_API_KEY:N,DATADOG_CLIENT_TOKEN:D,NODE_ENV:M}={NODE_ENV:"production",AMPLITUDE_API_KEY:"5faf82a87f563be7741eca93a9cdef37",DATADOG_CLIENT_TOKEN:""};let U;try{var A;const e=r(6600);U=null!==(A=e.default)&&void 0!==A&&A.getInstance?e.default.getInstance():e.getInstance()}catch{}const F=()=>!!U&&!0,$="enterpriseId",z="conversion:install",V="conversion:uninstall",G="user:login",J="user:open",q="analysis:analyze",H="record:delete",K="record:rename",B="analysis:complete",X="analysis:ai:request:fail",Y="analysis:userCorrection",W="issues:export",Q="issue:inspected",Z="issue:relatedInspected",ee="issue:toggleHighlight",te="issue:moreInfo",re="ml:suggestedInteractiveElement",ne="ml:suggestedInteractiveElementRejected",oe="ml:missedInteractiveElement",se="ml:suggestedRole",ie="ml:suggestedRoleAccepted",ae="ml:suggestedRoleRejected",le="ml:suggestedTableHeader",ce="ml:suggestedTableHeaderRejected",ue="conversion:click:scanPart",de="conversion:click:saveTest",pe="conversion:click:export",fe="conversion:click:shareIssue",ge="analysis:startUFA",be=(e=[],t)=>e.filter(({impact:e})=>e===t).reduce((e,{nodes:t})=>e+((null==t?void 0:t.length)||1),0),me=e=>{try{const t=new URL(e);return"localhost"===t.hostname||!!t.port||"file://"===t.origin}catch{return!1}},ve=e=>{if(void 0===e)return;const t=Array.from(new Set(e.map(e=>e.rule||e.id))),r={failedRuleCount:t.length,failedRuleNames:t,criticalIssueCount:be(e,"critical"),seriousIssueCount:be(e,"serious"),moderateIssueCount:be(e,"moderate"),minorIssueCount:be(e,"minor")};if(e.length&&Array.isArray(e[0].nodes)){const t=e.reduce((e,t)=>e+t.nodes.length,0);r.failedItemCount=t}return r},he=async(e,{overrideProductInfo:t=!1}={})=>{const r=await p(),n=t?e.productName:r.productName,o=t?e.productComponent:r.productComponent,s=L(L({},e),{},{productName:n,productComponent:o}),i=!await b(s);if(F())try{let{event:e}=s,t=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(s,_);Ce(e,t)}catch(e){e.message,e.stack}if(i)s.event;else try{r.postEvent(s)}catch(e){e.message,e.stack}},ye=e=>{let t="anonymous";switch(null==e?void 0:e.status){case"trialing":t="trial";break;case"paid":case"paid_payment_failed":case"trial_ended":case"trial_payment_failed":case"free":case"free_payment_failed":t=e.status}return t},we=async(e=[])=>{var t;let r,o,s,l;if("devtools"in browser)try{({contentType:r,title:o,url:s,scoped:l}=await n().yS.send(n()._O.content,"get-document-metadata"))}catch(e){C({message:"Unable to get document metadata",originalError:e})}const{usageOrganization:c,usageDepartment:u,usageApplication:d,user:p,cachedUserCompany:f,axeSettings:g,userJobRole:b,cachedUserEmail:m}=await browser.storage.local.get(["usageOrganization","usageDepartment","usageApplication","user","cachedUserCompany","axeSettings","userJobRole","cachedUserEmail"]),v=!(!p||!p.id);return{distinctId:await h(),organization:c||((null==p?void 0:p.company)||f||""),department:u||"",application:d||"",userStatus:ye(p),loggedIn:v,devInstance:me(s),keycloakId:p&&p.id,userId:p&&p.username||m,userJobRole:b||"Anonymous",enterpriseId:null==p||null===(t=p.enterprise)||void 0===t?void 0:t.id,productName:"axe-pro",productComponent:"extension",productComponentVersion:a.rE,applicationProperties:L({engineVersion:i.rE,scoped:l,target:s,targetMedium:r,targetState:o,experimental:!1,rulesetName:(null==g?void 0:g.ruleset)||"all",bestPractices:!!g&&!!g.enableBestPractices},ve(e))}},Oe=e=>async function(t,r){const n=await we(t);if(!r)return he(L(L({},n),{},{event:e}));he(L(L({},n),{},{event:e,applicationProperties:L(L({},n.applicationProperties),r)}))},xe=e=>t=>Oe(e)(void 0,t),Ie=(Oe("issue:viewed"),xe(Q),xe(Z),xe(ee),xe(te),Oe(H),Oe(K),Oe(z),Oe(V),Oe(G),Oe(J),(e,t="interactive-elements")=>r=>Oe(e)(void 0,L({eventTool:t},r)));Ie(re),Ie(ne),Ie(oe),Ie(se),Ie(ie),Ie(ae),Ie(X),Ie(Y),Ie(le,"table"),Ie(ce,"table"),Oe(ue),Oe(de),Oe(pe),Oe(fe),Oe(ge);let Pe=!1,je=!1;const Ee=async()=>{if(Pe||!F())return;const e=await h();U.init(N,void 0,{deviceId:e,includeUtm:!0,saveParamsReferrerOncePerSession:!1,includeGclid:!0,includeReferrer:!0,secureCookie:!0,sameSiteCookie:"Lax"}),Pe=!0},Se=async()=>{if(!(void 0!==globalThis.document&&void 0!==globalThis.XMLHttpRequest))return;if(je)return!0;const e=(async e=>{let t;const r=new Promise(e=>{t=setTimeout(()=>e(void 0),1e4)});try{return await Promise.race([e,r])}finally{clearTimeout(t)}})((async()=>{if("true"!==P)return j??(j=(await r.e(413).then(()=>r(833))).datadogLogs),j})()).then(e=>{if(e)return e.init({clientToken:D,site:"datadoghq.com",service:"axe-extension",env:M,version:a.rE,beforeSend:e=>{var t;if(0===(null==e||null===(t=e.http)||void 0===t?void 0:t.status_code))return!1}}),je=!0,e});await(e=>{const t=e.catch(()=>{});return O=t,t.then(e=>{O===t&&x(e)})})(e)},Te=async()=>{await Promise.all([Ee(),Se()])},Ce=async(e,t={})=>{if(!F())return;await Te();let r={};switch(e){case q:r={analyze:1};break;case B:r={complete:1};break;case W:r={export:1}}await(async(e={})=>{var t;if(!F())return;const{user:r,userJobRole:n="",usageOrganization:o="",cachedUserCompany:s,axeSettings:i,highlightTheme:a,theme:l,locale:c,policySettings:u,axeServerURL:d,firstView:p,exportFormat:f}=await browser.storage.local.get(["user","userJobRole","usageOrganization","cachedUserCompany","axeSettings","highlightTheme","theme","locale","policySettings","axeServerURL","firstView","exportFormat"]);U.setUserId(r&&r.id);const g=r&&r.id,b=null==r||null===(t=r.enterprise)||void 0===t?void 0:t.id,m=(new U.Identify).set("role",n).set("userStatus",ye(r)).set("loggedIn",g).set("axeSettings",L(L({highlightTheme:a,theme:l,locale:c,axeServerURL:d},i),{},{ruleset:(null==i?void 0:i.ruleset)||"all"})).set("policySettings",u).set("firstView",p).set("exportSchema",f||"devtools");b&&m.set($,b);for(const[t,r]of Object.entries(e))isNaN(r)?m.set(t,r):m.add(t,r);U.identify(m),U.setGroup("organization",o||(null==r?void 0:r.company)||s)})(r);const{devInstance:n,productName:o,productComponent:s,productComponentVersion:i,engineVersion:a,enterpriseId:l,applicationProperties:c}=t,u=L(L({devInstance:n,productName:o,productComponent:s,productComponentVersion:i,engineVersion:a},l?{[$]:l}:{}),c);U.logEvent(e,u)};function _e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(r),!0).forEach(function(t){Le(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_e(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Le(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Re=browser.runtime.getManifest(),Ne=Re.name.split(" - ")[0];Te();browser.devtools.panels.create(Ne,"","panel.html").then(()=>{n().yS.send(n()._O.content,"init",{extension:Re.name,version:Re.version})}),n().yS.listen("mcp:analyze-analytics",async({message:e})=>{try{var t,r,n,o;if(null==e||!e.results)return;const{results:s,documentMetadata:i,experimental:l,hasCrossOriginIframes:c}=e,u={event:q,distinctId:"mcp",userStatus:"anonymous",loggedIn:!1,productName:"axe-mcp-server",productComponent:"mcp-server",productComponentVersion:a.rE,devInstance:me((null==i?void 0:i.url)??""),applicationProperties:ke(ke({engineVersion:null===(t=s.testEngine)||void 0===t?void 0:t.version,eventTool:"axe-core",target:null==i?void 0:i.url,targetState:null==i?void 0:i.title,targetMedium:null==i?void 0:i.contentType,scoped:(null==i?void 0:i.scoped)||!1,passedRuleCount:(null===(r=s.passes)||void 0===r?void 0:r.length)||0,incompleteRuleCount:(null===(n=s.incomplete)||void 0===n?void 0:n.length)||0,inapplicableRuleCount:(null===(o=s.inapplicable)||void 0===o?void 0:o.length)||0,experimental:l||!1,hasCrossOriginIframes:c||!1},ve(s.violations)||{}),{},{rulesetName:"all",reRun:!1,advancedDetectionEnabled:!1,isCrossOrigin:!1})};await(async e=>{await he(e,{overrideProductInfo:!0})})(u),await new Promise(e=>setTimeout(e,500))}catch(e){e.message,e.stack}})},3847(){}};const t={};function r(n){const o=t[n];if(void 0!==o)return o.exports;const s=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}r.m=e,r.amdO={},(()=>{const e=[];r.O=(t,n,o,s)=>{if(n){s||=0;for(var i=e.length;i>0&&e[i-1][2]>s;i--)e[i]=e[i-1];return void(e[i]=[n,o,s])}let a=1/0;for(i=0;i<e.length;i++){let[n,o,s]=e[i],c=!0;for(var l=0;l<n.length;l++)1&s&&!(a>=s)||!Object.keys(r.O).every(e=>r.O[e](n[l]))?(c=!1,s<a&&(a=s)):n.splice(l--,1);if(c){e.splice(i--,1);const r=o();void 0!==r&&(t=r)}}return t}})(),r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.cw=e=>{var t;return()=>{if(e){var r=e;e=0,t={exports:{}},r.call(t.exports,t,t.exports)}return t.exports}},r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var o=t[n++],s=t[n++],i=0===s?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:s};r.o(e,o)||Object.defineProperty(e,o,i)}else for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>"datadog-logs.bundle.js",r.miniCssF=e=>{},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={};r.l=(t,n,o,s)=>{if(e[t])return void e[t].push(n);let i,a;if(void 0!==o){const e=document.getElementsByTagName("script");for(var l=0;l<e.length;l++){const r=e[l];if(r.getAttribute("src")==t){i=r;break}}}i||(a=!0,i=document.createElement("script"),i.charset="utf-8",r.nc&&i.setAttribute("nonce",r.nc),i.src=t),e[t]=[n];const c=(r,n)=>{i.onerror=i.onload=null,clearTimeout(u);const o=e[t];if(delete e[t],i.parentNode?.removeChild(i),o?.forEach(e=>e(n)),r)return r(n)},u=setTimeout(c.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=c.bind(null,i.onerror),i.onload=c.bind(null,i.onload),a&&document.head.appendChild(i)}})(),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.j=869,(()=>{let e;globalThis.importScripts&&(e=globalThis.location+"");const t=globalThis.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{const e={869:0};r.f.j=(t,n)=>{let o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{const s=new Promise((r,n)=>o=e[t]=[r,n]);n.push(o[2]=s);const i=new Error,a=n=>{if(r.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){const e=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+e+": "+r+")",i.name="ChunkLoadError",i.type=e,i.request=r,i.event=n,o[1](i)}};r.l(r.p+r.u(t),a,"chunk-"+t,t)}},r.O.j=t=>0===e[t];const t=(t,n)=>{let[o,s,i]=n;var a,l,c=0;if(o.some(t=>0!==e[t])){for(a in s)r.o(s,a)&&(r.m[a]=s[a]);if(i)var u=i(r)}for(t&&t(n);c<o.length;c++)l=o[c],r.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return r.O(u)},n=this.webpackChunk||=[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();let n=r.O(void 0,[121],()=>r(1924));n=r.O(n)})();
|
|
1
|
+
/*! For license information please see devtools.bundle.js.LICENSE.txt */
|
|
2
|
+
(()=>{var e={3982(e,t,r){"use strict";var n=r.cw((e,t)=>{t._O=t.yS=void 0;var n=o(),i=l(s()),a=l(r(5226));function l(e){return e&&e.__esModule?e:{default:e}}const{background:c,devtools:u,content:d}=i.default,f=Object.values(i.default),p=(0,a.default)("bridge"),b=(0,a.default)("bridge:message"),m=(0,a.default)("bridge:response");t.yS=new class{constructor(){if(!f.includes(n.browser.context||""))throw new Error(`Unable to initialize web-extension bridge. Unsupported context: ${n.browser.context}`);this.messageListeners=new Map,this.attachListener()}get context(){return n.browser.context}attachListener=()=>{const{browserListener:e}=this;n.browser.hasListener(e)||(p("web-extension bridge initialized with context %s",n.browser.context),n.browser.addListener(e))};browserListener=(e,t)=>{const{origin:r,context:o,topic:s,message:i,options:a={}}=e,{tab:l,frameId:f}=t,p=l&&-1!==l.id?l.id:null==a?void 0:a.tabId;if(!r)return;if(n.browser.context===c&&o===d){const{frameId:e,allFrames:t}=a;return this.send(o,s,i,{tabId:(null==a?void 0:a.tabId)||p,frameId:e,allFrames:t})}const b=n.browser.context!==u||n.browser.tabId===p;if(o!==n.browser.context||!b)return;const m=this.getListeners(s),g=e=>{console.error(e)};try{for(const e of m){const t=e({context:o,topic:s,message:i,origin:r,tabId:p,frameId:f});if(!e.isGlobal&&void 0!==t)return Promise.resolve(t).catch(g)}}catch(e){g(e)}};async send(e,t,r,{tabId:o,frameId:s=0,allFrames:a=!1}={}){if(!n.browser.context)return;if(!e||!f.includes(e))throw new Error(`Cannot send web-extension bridge message without a valid destination context: ['${f.join("', '")}'].`);let l;o||n.browser.context!==u||(o=n.browser.tabId),l=n.browser.context===u?`${n.browser.context}:${o}`:n.browser.context;let c=e;[n.browser.context,e].includes(d)&&o&&(c+=`:${o}`),b(`[${t}] ${l} → ${c}: %O`,void 0!==r?r:"");const p={origin:l,context:e,topic:t,message:r,options:e===d?{tabId:o,frameId:s,allFrames:a}:{tabId:o}},g=e===i.default.content?{tabId:o,frameId:s,allFrames:a}:void 0;let v=null;try{v=await n.browser.sendMessage(p,g)}catch(e){let t;if(e instanceof Error&&(t=e.message),"Could not establish connection. Receiving end does not exist."!==t)throw e}return null!==v&&m(`[${t}] ${c} → ${l}: %O`,v),v}getListeners(e){const{messageListeners:t}=this;return e&&"*"!==e?[...t.get(e)||[],...t.get("*")||[]]:t.get("*")||[]}listen(e,t){if("function"==typeof e&&(t=e,e="*"),"function"!=typeof t)return;const{messageListeners:r}=this,n=r.get(e)||[];"*"===e&&(t.isGlobal=!0),n.length?r.set(e,[...n,t]):r.set(e,[t])}unlisten(e,t){if("function"==typeof e&&(t=e,e="*"),"function"!=typeof t)return;const{messageListeners:r}=this,n=(r.get(e)||[]).filter(e=>e!==t);n.length?r.set(e,n):r.delete(e)}},t._O=i.default}),o=r.cw((e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.browser=void 0;var r,n=(r=s())&&r.__esModule?r:{default:r};const o=e=>void 0!==globalThis.browser&&e in globalThis.browser;t.browser={hasApi:o,get tabId(){var e;return(null===(e=globalThis.browser)||void 0===e||null===(e=e.devtools)||void 0===e?void 0:e.inspectedWindow.tabId)??null},get context(){return o("devtools")?n.default.devtools:o("tabs")?n.default.background:o("extension")?n.default.content:null},addListener(e){globalThis.browser.runtime.onMessage.addListener(e)},hasListener:e=>globalThis.browser.runtime.onMessage.hasListener(e),removeListener(e){globalThis.browser.runtime.onMessage.removeListener(e)},async sendMessage(e,t={}){if(void 0===globalThis.browser)throw new Error("Cannot send bridge message in a non-browser context.");const{tabId:r,frameId:n,allFrames:o}=t;return r&&globalThis.browser.tabs&&"function"==typeof globalThis.browser.tabs.sendMessage?globalThis.browser.tabs.sendMessage(r,e,{frameId:o?void 0:n}):globalThis.browser.runtime.sendMessage(e)}}}),s=r.cw((e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={background:"background",devtools:"devtools",content:"content-script"}}),i=r(1616);const a=JSON.parse('{"rE":"4.140.1-next.201c6f7f"}');n();var l=r(3463);const c={chrome:"extension-chrome",firefox:"extension-firefox",edge:"extension-edge"};let u,d;const f=async(e=!1,t)=>{let{usageServerURL:r}=await browser.storage.local.get("usageServerURL");return!e&&u&&r===d||(d=r,"default"===r&&(r="https://usage.dequelabs.com"),u=new l.Ay("axe-devtools-html",c[t||"chrome"]),u.url(r)),u},p="incomplete",b="trialing",m="trial_ended",g="trial_payment_failed",v="paid_payment_failed",y="free_payment_failed",h={paid:"paid",[b]:"trial",free:"free",none:"free",[y]:"free",[v]:"free",[m]:"free",[g]:"free",[p]:"free"},w=e=>!(null==e||!e.id),O=e=>{return w(e)?!1===e.planLookupFailed&&(void 0!==(t=e.status)&&Object.prototype.hasOwnProperty.call(h,t))?h[e.status]:"unknown":"anonymous";var t},j=["organization","enterpriseId","keycloakId","userId"],S=(e,t)=>{return!(!w(e)||null==t||!t.refresh_expires_at)&&t.refresh_expires_at>(r=new Date,Math.floor(new Date(r).getTime()/1e3));var r},x=async e=>{if(navigator.userAgent.includes("axe-mcp-server/"))return!1;const{enableOffline:t,dataGather:r,user:n,session:o}=await browser.storage.local.get(["enableOffline","dataGather","user","session"]);return!t&&(!1!==r&&(!(e=>j.some(t=>!(null==e||!e[t])))(e)||S(n,o)))};console;var P=r(7143);let I;async function E(){return(await _()).distinct_id}const _=async()=>{if(I)return I;const{axeServerURL:e,session:t}=await browser.storage.local.get(["axeServerURL","session"]);return I=await(0,P.getDistinctIdCookie)({host:"default"===e?"http://localhost:1234":e,origin:globalThis.location.origin,token:null==t?void 0:t.access_token}),I};let k,T;const C=e=>{k=e,T=void 0},R=e=>{var t;k?e(k):null===(t=T)||void 0===t||t.then(()=>{k&&e(k)})},{FIREFOX:L}={FIREFOX:"false"};let U;function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach(function(t){N(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function N(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const D=({originalError:e,message:t,level:r="error",additionalContext:n={},isSerialized:o=!1})=>{if(o)return void R(o=>o.logger[r](t,$($({},e),n)));const s=(e=>e instanceof Error?e:new Error("Unknown error"+(e?`: ${e}`:"")))(e),i={error:s.message,stack:s.stack,original_error:e};R(e=>e.logger[r](t,$($({},i),n)))},M=e=>"object"==typeof e&&null!==e&&"id"in e&&"string"==typeof e.id&&"name"in e&&"string"==typeof e.name,z=e=>w(e)&&Array.isArray(e.teams)?e.teams.filter(M).map(({id:e,name:t})=>({id:e,name:t})):[],F=e=>e&&"default"!==e?e:"http://localhost:1234";r(6041);var V=r(5815);r(7378),r(3141);new Map;V.ProductSlugs.axeDevToolsExtension;const q="serverInfoForAnalytics",G="serverInfo.",H="routeSupported",J={isOnPrem:"boolean",mlServiceEnabled:"boolean",screenshotsEnabled:"boolean",billingServiceEnabled:"boolean",isSelfProvisioningEnabled:"boolean",aiCreditsEnabled:"boolean",version:"string","mlService.isEnabled":"boolean","mlService.llmHubEnabled":"boolean","mlService.advancedRulesEnabled":"boolean","mlService.modelRuntimeMode":"string","mlService.version":"string","llmHub.isEnabled":"boolean","jazzband.isEnabled":"boolean","jazzband.serverInfo.version":"string","billingService.version":"string"},K=[H,...Object.keys(J)].map(e=>`${G}${e}`);const B=["event"];function X(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?X(Object(r),!0).forEach(function(t){W(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function W(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const{AMPLITUDE_API_KEY:Q,DATADOG_CLIENT_TOKEN:Z,NODE_ENV:ee}={NODE_ENV:"production",AMPLITUDE_API_KEY:"5faf82a87f563be7741eca93a9cdef37",DATADOG_CLIENT_TOKEN:""};let te;try{var re;const e=r(7040);te=null!==(re=e.default)&&void 0!==re&&re.getInstance?e.default.getInstance():e.getInstance()}catch{}const ne=()=>!!te&&!0,oe="enterpriseId",se="axe-core",ie="conversion:install",ae="conversion:uninstall",le="user:login",ce="user:open",ue="analysis:analyze",de="record:delete",fe="record:rename",pe="analysis:complete",be="analysis:ai:request:fail",me="analysis:userCorrection",ge="issues:export",ve="issue:inspected",ye="issue:relatedInspected",he="issue:toggleHighlight",we="issue:moreInfo",Oe="ml:suggestedInteractiveElement",je="ml:suggestedInteractiveElementRejected",Se="ml:missedInteractiveElement",xe="ml:suggestedRole",Pe="ml:suggestedRoleAccepted",Ie="ml:suggestedRoleRejected",Ee="ml:suggestedTableHeader",_e="ml:suggestedTableHeaderRejected",ke="conversion:click:scanPart",Te="conversion:click:saveTest",Ce="conversion:click:export",Re="conversion:click:shareIssue",Le="analysis:startUFA",Ue=(e=[],t)=>e.filter(({impact:e})=>e===t).reduce((e,{nodes:t})=>e+((null==t?void 0:t.length)||1),0),Ae=e=>{try{const t=new URL(e);return"localhost"===t.hostname||!!t.port||"file://"===t.origin}catch{return!1}},$e=e=>{if(void 0===e)return;const t=Array.from(new Set(e.map(e=>e.rule||e.id))),r={failedRuleCount:t.length,failedRuleNames:t,criticalIssueCount:Ue(e,"critical"),seriousIssueCount:Ue(e,"serious"),moderateIssueCount:Ue(e,"moderate"),minorIssueCount:Ue(e,"minor")};if(e.length&&Array.isArray(e[0].nodes)){const t=e.reduce((e,t)=>e+t.nodes.length,0);r.failedItemCount=t}return r},Ne=async(e,{overrideProductInfo:t=!1}={})=>{const r=await f(),n=t?e.productName:r.productName,o=t?e.productComponent:r.productComponent,s=Y(Y({},e),{},{productName:n,productComponent:o}),i=!await x(s);if(ne())try{let{event:e}=s,t=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(s,B);Be(e,t)}catch(e){e.message,e.stack}if(i)s.event;else try{r.postEvent(s)}catch(e){e.message,e.stack}},De=async(e=[])=>{var t;let r,o,s,l;if("devtools"in browser)try{({contentType:r,title:o,url:s,scoped:l}=await n().yS.send(n()._O.content,"get-document-metadata"))}catch(e){D({message:"Unable to get document metadata",originalError:e})}const{usageOrganization:c,usageDepartment:u,usageApplication:d,user:f,cachedUserCompany:p,axeSettings:b,userJobRole:m,cachedUserEmail:g}=await browser.storage.local.get(["usageOrganization","usageDepartment","usageApplication","user","cachedUserCompany","axeSettings","userJobRole","cachedUserEmail"]),v=w(f);return{distinctId:await E(),organization:c||((null==f?void 0:f.company)||p||""),department:u||"",application:d||"",userStatus:O(f),teams:z(f),actor:"human",loggedIn:v,devInstance:Ae(s),keycloakId:f&&f.id,userId:f&&f.username||g,userJobRole:m||"Anonymous",enterpriseId:null==f||null===(t=f.enterprise)||void 0===t?void 0:t.id,productName:"axe-pro",productComponent:"extension",productComponentVersion:a.rE,applicationProperties:Y({engineVersion:i.rE,scoped:l,target:s,targetMedium:r,targetState:o,experimental:!1,rulesetName:(null==b?void 0:b.ruleset)||"all",bestPractices:!!b&&!!b.enableBestPractices},$e(e))}},Me=async(e={})=>{var t;if(!ne())return;const{user:r,userJobRole:n="",usageOrganization:o="",cachedUserCompany:s,axeSettings:i,highlightTheme:a,theme:l,locale:c,policySettings:u,axeServerURL:d,firstView:f,exportFormat:p,[q]:h}=await browser.storage.local.get(["user","userJobRole","usageOrganization","cachedUserCompany","axeSettings","highlightTheme","theme","locale","policySettings","axeServerURL","firstView","exportFormat",q]);te.setUserId(r&&r.id);const w=r&&r.id,O=null==r||null===(t=r.enterprise)||void 0===t?void 0:t.id,j=(new te.Identify).set("role",n).set("userStatus",(e=>{let t="anonymous";switch(null==e?void 0:e.status){case b:t="trial";break;case"paid":case v:case m:case g:case"free":case y:t=e.status}return t})(r)).set("loggedIn",w).set("axeSettings",Y(Y({highlightTheme:a,theme:l,locale:c,axeServerURL:d},i),{},{ruleset:(null==i?void 0:i.ruleset)||"all"})).set("policySettings",u).set("firstView",f).set("exportSchema",p||"devtools");O&&j.set(oe,O);for(const[t,r]of Object.entries(e))isNaN(r)?j.set(t,r):j.add(t,r);const S=(({stored:e,serverURL:t})=>{if(!e||!t)return{set:{},unset:[]};const r=e.serverURL===t?e.properties:{},n=Object.fromEntries(Object.entries(r).map(([e,t])=>[`${G}${e}`,t]));return{set:n,unset:K.filter(e=>!(e in n))}})({stored:h,serverURL:F(d)});for(const[e,t]of Object.entries(S.set))j.set(e,t);for(const e of S.unset)j.unset(e);te.identify(j),te.setGroup("organization",o||((null==r?void 0:r.company)||s))},ze=e=>async function(t,r){const n=await De(t);if(!r)return Ne(Y(Y({},n),{},{event:e}));Ne(Y(Y({},n),{},{event:e,applicationProperties:Y(Y({},n.applicationProperties),r)}))},Fe=e=>t=>ze(e)(void 0,t),Ve=(ze("issue:viewed"),Fe(ve),Fe(ye),Fe(he),Fe(we),ze(de),ze(fe),ze(ie),ze(ae),ze(le),ze(ce),(e,t="interactive-elements")=>r=>ze(e)(void 0,Y({eventTool:t},r)));Ve(Oe),Ve(je),Ve(Se),Ve(xe),Ve(Pe),Ve(Ie),Ve(be),Ve(me),Ve(Ee,"table"),Ve(_e,"table"),ze(ke),ze(Te),ze(Ce),ze(Re),ze(Le);let qe=!1,Ge=!1;const He=async()=>{if(qe||!ne())return;const e=await E();te.init(Q,void 0,{deviceId:e,includeUtm:!0,saveParamsReferrerOncePerSession:!1,includeGclid:!0,includeReferrer:!0,secureCookie:!0,sameSiteCookie:"Lax"}),qe=!0},Je=async()=>{if(!(void 0!==globalThis.document&&void 0!==globalThis.XMLHttpRequest))return;if(Ge)return!0;const e=(async e=>{let t;const r=new Promise(e=>{t=setTimeout(()=>e(void 0),1e4)});try{return await Promise.race([e,r])}finally{clearTimeout(t)}})((async()=>{if("true"!==L)return U??(U=(await r.e(413).then(()=>r(833))).datadogLogs),U})()).then(e=>{if(e)return e.init({clientToken:Z,site:"datadoghq.com",service:"axe-extension",env:ee,version:a.rE,beforeSend:e=>{var t;if(0===(null==e||null===(t=e.http)||void 0===t?void 0:t.status_code))return!1}}),Ge=!0,e});await(e=>{const t=e.catch(()=>{});return T=t,t.then(e=>{T===t&&C(e)})})(e)},Ke=async()=>{await Promise.all([He(),Je()])},Be=async(e,t={})=>{if(!ne())return;await Ke();let r={};switch(e){case ue:r={analyze:1};break;case pe:r={complete:1};break;case ge:r={export:1}}await Me(r);const{devInstance:n,productName:o,productComponent:s,productComponentVersion:i,engineVersion:a,enterpriseId:l,applicationProperties:c}=t,u=Y(Y({devInstance:n,productName:o,productComponent:s,productComponentVersion:i,engineVersion:a},l?{[oe]:l}:{}),c);te.logEvent(e,u)};function Xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach(function(t){We(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function We(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Qe=browser.runtime.getManifest(),Ze=Qe.name.split(" - ")[0];Ke();browser.devtools.panels.create(Ze,"","panel.html").then(()=>{n().yS.send(n()._O.content,"init",{extension:Qe.name,version:Qe.version})}),n().yS.listen("mcp:analyze-analytics",async({message:e})=>{try{var t,r,n,o;if(null==e||!e.results)return;const{results:s,documentMetadata:i,experimental:l,hasCrossOriginIframes:c}=e,u={event:ue,distinctId:"mcp",userStatus:"anonymous",teams:[],loggedIn:!1,productName:"axe-mcp-server",productComponent:"mcp-server",productComponentVersion:a.rE,devInstance:Ae((null==i?void 0:i.url)??""),applicationProperties:Ye(Ye({engineVersion:null===(t=s.testEngine)||void 0===t?void 0:t.version,eventTool:se,target:null==i?void 0:i.url,targetState:null==i?void 0:i.title,targetMedium:null==i?void 0:i.contentType,scoped:(null==i?void 0:i.scoped)||!1,passedRuleCount:(null===(r=s.passes)||void 0===r?void 0:r.length)||0,incompleteRuleCount:(null===(n=s.incomplete)||void 0===n?void 0:n.length)||0,inapplicableRuleCount:(null===(o=s.inapplicable)||void 0===o?void 0:o.length)||0,experimental:l||!1,hasCrossOriginIframes:c||!1},$e(s.violations)||{}),{},{rulesetName:"all",reRun:!1,advancedDetectionEnabled:!1,isCrossOrigin:!1})};await(async e=>{await Ne(e,{overrideProductInfo:!0})})(u),await new Promise(e=>setTimeout(e,500))}catch(e){e.message,e.stack}})},93(e,t){"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||b}function y(){}function h(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||b}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=h.prototype=new y;w.constructor=h,m(w,v.prototype),w.isPureReactComponent=!0;var O=Array.isArray,j=Object.prototype.hasOwnProperty,S={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function P(e,t,n){var o,s={},i=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)j.call(t,o)&&!x.hasOwnProperty(o)&&(s[o]=t[o]);var l=arguments.length-2;if(1===l)s.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];s.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===s[o]&&(s[o]=l[o]);return{$$typeof:r,type:e,key:i,ref:a,props:s,_owner:S.current}}function I(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var E=/\/+/g;function _(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function k(e,t,o,s,i){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case n:l=!0}}if(l)return i=i(l=e),e=""===s?"."+_(l,0):s,O(i)?(o="",null!=e&&(o=e.replace(E,"$&/")+"/"),k(i,t,o,"",function(e){return e})):null!=i&&(I(i)&&(i=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(E,"$&/")+"/")+e)),t.push(i)),1;if(l=0,s=""===s?".":s+":",O(e))for(var c=0;c<e.length;c++){var u=s+_(a=e[c],c);l+=k(a,t,o,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(a=e.next()).done;)l+=k(a=a.value,t,o,u=s+_(a,c++),i);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function T(e,t,r){if(null==e)return e;var n=[],o=0;return k(e,n,"","",function(e){return t.call(r,e,o++)}),n}function C(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},L={transition:null};function U(){throw Error("act(...) is not supported in production builds of React.")}},7378(e,t,r){"use strict";r(93)},3847(){}};const t={};function r(n){const o=t[n];if(void 0!==o)return o.exports;const s=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}r.m=e,r.amdO={},(()=>{const e=[];r.O=(t,n,o)=>{if(!n){for(var s=0;s<e.length;s++){let[n,o]=e[s],a=!0;for(var i=0;i<n.length;i++)Object.keys(r.O).every(e=>r.O[e](n[i]))?n.splice(i--,1):a=!1;if(a){e.splice(s--,1);const r=o();void 0!==r&&(t=r)}}return t}e.push([n,o])}})(),r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.cw=e=>{var t;return()=>{if(e){var r=e;e=0,t={exports:{}},r.call(t.exports,t,t.exports)}return t.exports}},r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var o=t[n++],s=t[n++],i=0===s?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:s};r.o(e,o)||Object.defineProperty(e,o,i)}else for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>"datadog-logs.bundle.js",r.miniCssF=e=>{},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={};r.l=(t,n,o,s)=>{if(e[t])return void e[t].push(n);let i,a;if(void 0!==o){const e=document.getElementsByTagName("script");for(var l=0;l<e.length;l++){const r=e[l];if(r.getAttribute("src")==t){i=r;break}}}i||(a=!0,i=document.createElement("script"),i.charset="utf-8",r.nc&&i.setAttribute("nonce",r.nc),i.src=t),e[t]=[n];const c=(r,n)=>{i.onerror=i.onload=null,clearTimeout(u);const o=e[t];if(delete e[t],i.parentNode?.removeChild(i),o?.forEach(e=>e(n)),r)return r(n)},u=setTimeout(c.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=c.bind(null,i.onerror),i.onload=c.bind(null,i.onload),a&&document.head.appendChild(i)}})(),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.j=869,(()=>{let e;globalThis.importScripts&&(e=globalThis.location+"");const t=globalThis.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{const e={869:0};r.f.j=(t,n)=>{let o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{const s=new Promise((r,n)=>o=e[t]=[r,n]);n.push(o[2]=s);const i=new Error,a=n=>{if(r.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){const e=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+e+": "+r+")",i.name="ChunkLoadError",i.type=e,i.request=r,i.event=n,o[1](i)}};r.l(r.p+r.u(t),a,"chunk-"+t,t)}},r.O.j=t=>0===e[t];const t=(t,n)=>{let[o,s,i]=n;var a,l,c=0;if(o.some(t=>0!==e[t])){for(a in s)r.o(s,a)&&(r.m[a]=s[a]);if(i)var u=i(r)}for(t&&t(n);c<o.length;c++)l=o[c],r.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return r.O(u)},n=this.webpackChunk||=[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();let n=r.O(void 0,[121],()=>r(3982));n=r.O(n)})();
|
|
@@ -1 +1,219 @@
|
|
|
1
|
-
(()
|
|
1
|
+
(() => {
|
|
2
|
+
var elementInternalsMap = (() => {
|
|
3
|
+
var __commonJS = (cb, mod) => () => (mod || cb((mod = {exports: {}}).exports, mod), mod.exports);
|
|
4
|
+
|
|
5
|
+
// lib/gather-internals/main.js
|
|
6
|
+
var require_main = __commonJS((exports, module) => {
|
|
7
|
+
walkTree();
|
|
8
|
+
module.exports = elementInternalsMap;
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
// lib/core/utils/is-valid-custom-element-name.js
|
|
12
|
+
var reservedNames = [
|
|
13
|
+
"annotation-xml",
|
|
14
|
+
"color-profile",
|
|
15
|
+
"font-face",
|
|
16
|
+
"font-face-src",
|
|
17
|
+
"font-face-uri",
|
|
18
|
+
"font-face-format",
|
|
19
|
+
"font-face-name",
|
|
20
|
+
"missing-glyph"
|
|
21
|
+
];
|
|
22
|
+
var validLocalNameRegex = /^(?:[A-Za-z][^\0\t\n\f\r\u0020/>]*|[:_\u0080-\u{10FFFF}][A-Za-z0-9-.:_\u0080-\u{10FFFF}]*)$/u;
|
|
23
|
+
var alphaLowerRegex = /[a-z]/;
|
|
24
|
+
var alphaUpperRegex = /[A-Z]/;
|
|
25
|
+
function isValidCustomElementName(nodeName) {
|
|
26
|
+
return !reservedNames.includes(nodeName) && validLocalNameRegex.test(nodeName) && alphaLowerRegex.test(nodeName[0]) && !alphaUpperRegex.test(nodeName) && nodeName.includes("-");
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// lib/core/utils/get-element-internals.js
|
|
30
|
+
var propNames = ["_internals", "internals", "internals_"];
|
|
31
|
+
var symbolNames = ["internals", "privateInternals"];
|
|
32
|
+
function getElementInternals(node) {
|
|
33
|
+
if (!isValidCustomElementName(node.nodeName.toLowerCase())) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const mapInternals = globalThis._elementInternals?.get(node);
|
|
37
|
+
if (mapInternals) {
|
|
38
|
+
return mapInternals;
|
|
39
|
+
}
|
|
40
|
+
if (!("ElementInternals" in window)) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
for (const propName of propNames) {
|
|
44
|
+
if (Object.getOwnPropertyDescriptor(node, propName)?.get) {
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
if (node[propName] instanceof window.ElementInternals) {
|
|
48
|
+
return node[propName];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const ownSymbols = Object.getOwnPropertySymbols(node);
|
|
52
|
+
if (!ownSymbols.length) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
for (const symbolName of symbolNames) {
|
|
56
|
+
const symbol = ownSymbols.find((s) => s.description === symbolName);
|
|
57
|
+
if (symbol) {
|
|
58
|
+
if (Object.getOwnPropertyDescriptor(node, symbol)?.get) {
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
if (node[symbol] instanceof window.ElementInternals) {
|
|
62
|
+
return node[symbol];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// lib/core/utils/escape-selector.js
|
|
69
|
+
function escapeSelector(value) {
|
|
70
|
+
const string = String(value);
|
|
71
|
+
const length = string.length;
|
|
72
|
+
let index = -1;
|
|
73
|
+
let codeUnit;
|
|
74
|
+
let result = "";
|
|
75
|
+
const firstCodeUnit = string.charCodeAt(0);
|
|
76
|
+
while (++index < length) {
|
|
77
|
+
codeUnit = string.charCodeAt(index);
|
|
78
|
+
if (codeUnit == 0) {
|
|
79
|
+
result += "\uFFFD";
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
if (codeUnit >= 1 && codeUnit <= 31 || codeUnit == 127 || index == 0 && codeUnit >= 48 && codeUnit <= 57 || index == 1 && codeUnit >= 48 && codeUnit <= 57 && firstCodeUnit == 45) {
|
|
83
|
+
result += "\\" + codeUnit.toString(16) + " ";
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
if (index == 0 && length == 1 && codeUnit == 45) {
|
|
87
|
+
result += "\\" + string.charAt(index);
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
if (codeUnit >= 128 || codeUnit == 45 || codeUnit == 95 || codeUnit >= 48 && codeUnit <= 57 || codeUnit >= 65 && codeUnit <= 90 || codeUnit >= 97 && codeUnit <= 122) {
|
|
91
|
+
result += string.charAt(index);
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
result += "\\" + string.charAt(index);
|
|
95
|
+
}
|
|
96
|
+
return result;
|
|
97
|
+
}
|
|
98
|
+
var escape_selector_default = escapeSelector;
|
|
99
|
+
|
|
100
|
+
// lib/core/utils/get-shadow-selector.js
|
|
101
|
+
function getShadowSelector(generateSelector, elm, options = {}) {
|
|
102
|
+
if (!elm) {
|
|
103
|
+
return "";
|
|
104
|
+
}
|
|
105
|
+
let doc = elm.getRootNode && elm.getRootNode() || document;
|
|
106
|
+
if (doc.nodeType !== 11) {
|
|
107
|
+
return generateSelector(elm, options, doc);
|
|
108
|
+
}
|
|
109
|
+
const stack = [];
|
|
110
|
+
while (doc.nodeType === 11) {
|
|
111
|
+
if (!doc.host) {
|
|
112
|
+
return "";
|
|
113
|
+
}
|
|
114
|
+
stack.unshift({elm, doc});
|
|
115
|
+
elm = doc.host;
|
|
116
|
+
doc = elm.getRootNode();
|
|
117
|
+
}
|
|
118
|
+
stack.unshift({elm, doc});
|
|
119
|
+
return stack.map((item) => generateSelector(item.elm, options, item.doc));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// lib/core/utils/get-ancestry.js
|
|
123
|
+
function generateAncestry(node) {
|
|
124
|
+
const nodeName = escape_selector_default(node.nodeName.toLowerCase());
|
|
125
|
+
const parentElement = node.parentElement;
|
|
126
|
+
const parentNode = node.parentNode;
|
|
127
|
+
let nthChild = "";
|
|
128
|
+
if (nodeName !== "head" && nodeName !== "body" && parentNode?.children.length > 1) {
|
|
129
|
+
const index = Array.prototype.indexOf.call(parentNode.children, node) + 1;
|
|
130
|
+
nthChild = `:nth-child(${index})`;
|
|
131
|
+
}
|
|
132
|
+
if (!parentElement) {
|
|
133
|
+
return nodeName + nthChild;
|
|
134
|
+
}
|
|
135
|
+
return generateAncestry(parentElement) + " > " + nodeName + nthChild;
|
|
136
|
+
}
|
|
137
|
+
function getAncestry(elm, options) {
|
|
138
|
+
return getShadowSelector(generateAncestry, elm, options);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// lib/core/utils/is-shadow-root.js
|
|
142
|
+
var possibleShadowRoots = [
|
|
143
|
+
"article",
|
|
144
|
+
"aside",
|
|
145
|
+
"blockquote",
|
|
146
|
+
"body",
|
|
147
|
+
"div",
|
|
148
|
+
"footer",
|
|
149
|
+
"h1",
|
|
150
|
+
"h2",
|
|
151
|
+
"h3",
|
|
152
|
+
"h4",
|
|
153
|
+
"h5",
|
|
154
|
+
"h6",
|
|
155
|
+
"header",
|
|
156
|
+
"main",
|
|
157
|
+
"nav",
|
|
158
|
+
"p",
|
|
159
|
+
"section",
|
|
160
|
+
"span"
|
|
161
|
+
];
|
|
162
|
+
function isShadowRoot(node) {
|
|
163
|
+
if (node.shadowRoot) {
|
|
164
|
+
const nodeName = node.nodeName.toLowerCase();
|
|
165
|
+
if (possibleShadowRoots.includes(nodeName) || isValidCustomElementName(nodeName)) {
|
|
166
|
+
return true;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return false;
|
|
170
|
+
}
|
|
171
|
+
var is_shadow_root_default = isShadowRoot;
|
|
172
|
+
|
|
173
|
+
// lib/gather-internals/walk-tree.js
|
|
174
|
+
var elementInternalsMap = [];
|
|
175
|
+
var ariaPropRegex = /^aria[A-Z]/;
|
|
176
|
+
var propsToCapture = ["role", "labels", "form"];
|
|
177
|
+
function walkTree(tree = document.body) {
|
|
178
|
+
const treeWalker = document.createTreeWalker(tree, globalThis.NodeFilter.SHOW_ELEMENT, null, false);
|
|
179
|
+
let node = treeWalker.currentNode;
|
|
180
|
+
while (node) {
|
|
181
|
+
const elementInternals = getElementInternals(node);
|
|
182
|
+
if (elementInternals) {
|
|
183
|
+
const ancestry = getAncestry(node);
|
|
184
|
+
const internals = {};
|
|
185
|
+
for (const prop in elementInternals) {
|
|
186
|
+
if (!ariaPropRegex.test(prop) && !propsToCapture.includes(prop)) {
|
|
187
|
+
continue;
|
|
188
|
+
}
|
|
189
|
+
try {
|
|
190
|
+
const value = elementInternals[prop];
|
|
191
|
+
if (value === null) {
|
|
192
|
+
continue;
|
|
193
|
+
}
|
|
194
|
+
if (value instanceof globalThis.Node) {
|
|
195
|
+
internals[prop] = value.isConnected ? {type: "HTMLElement", value: getAncestry(value)} : void 0;
|
|
196
|
+
} else if (Array.isArray(value) || value instanceof globalThis.NodeList) {
|
|
197
|
+
const array = Array.from(value).filter((n) => n.isConnected);
|
|
198
|
+
internals[prop] = array.length ? {type: "NodeList", value: array.map((n) => getAncestry(n))} : void 0;
|
|
199
|
+
} else if (typeof value === "string") {
|
|
200
|
+
internals[prop] = value;
|
|
201
|
+
}
|
|
202
|
+
} catch {
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
elementInternalsMap.push({
|
|
206
|
+
ancestry,
|
|
207
|
+
internals
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
if (is_shadow_root_default(node)) {
|
|
211
|
+
walkTree(node.shadowRoot);
|
|
212
|
+
}
|
|
213
|
+
node = treeWalker.nextNode();
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
return require_main();
|
|
217
|
+
})();
|
|
218
|
+
return elementInternalsMap;
|
|
219
|
+
})();
|
package/extension/highlighter.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var t={740(t,o,e){e.r(o);var i=e(93),r=e.n(i),n=e(350),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,#margin{border-style:solid;display:flex;flex:1}#margin{border-color:var(--theme--margin-color,#0000)}#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;e.d(o,["default",0,l])},514(t,o,e){e.r(o);var i=e(93),r=e.n(i),n=e(350),a=e.n(n),l=e(149),s=e.n(l),h=new URL("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOSIgaGVpZ2h0PSIyOSI+PGNpcmNsZSBjeD0iMTQuNSIgY3k9IjE0LjUiIHI9IjEzLjUiIGZpbGw9IiMwYjE0MWMiIHN0cm9rZT0iI2Q0ZGRlMCIgc3Ryb2tlLXdpZHRoPSIyIi8+PHBhdGggZmlsbD0iIzc2Y2ZlOCIgZD0iTTYuMjMgMTIuNThoLjkydjUuNTFoLS45MmEuOTEuOTEgMCAwIDEtLjkyLS45MVYxMy41YS45Mi45MiAwIDAgMSAuOTItLjkybTE0LjctMS4zOFYxOWExLjg0IDEuODQgMCAwIDEtMS44NCAxLjg0SDkuOTFBMS44NCAxLjg0IDAgMCAxIDguMDcgMTl2LTcuOGEyLjI5IDIuMjkgMCAwIDEgMi4yOS0yLjI5aDMuMjJWNy4wN2EuOTIuOTIgMCAwIDEgMS44NCAwdjEuODRoMy4yMmEyLjI5IDIuMjkgMCAwIDEgMi4yOSAyLjI5bS04IDIuM2ExLjE1IDEuMTUgMCAxIDAtMS4xNSAxLjE1IDEuMTUgMS4xNSAwIDAgMCAxLjE1LTEuMTVtLS4yMyAzLjY4aC0xLjg4di45MWgxLjg0em0yLjc2IDBoLTEuODh2LjkxaDEuODR6bTMtMy42OGExLjE1IDEuMTUgMCAxIDAtMS4xNSAxLjE1IDEuMTYgMS4xNiAwIDAgMCAxLjE1LTEuMTVtLS4yMyAzLjY4aC0xLjg5di45MWgxLjg0em01LjUxLTMuNjh2My42OGEuOTIuOTIgMCAwIDEtLjkyLjkxaC0uOTJ2LTUuNTFoLjkyYS45Mi45MiAwIDAgMSAuOTIuOTIiLz48L3N2Zz4=",import.meta.url),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;e.d(o,["default",0,c])},340(t,o,e){e.r(o);var i=e(93),r=e.n(i),n=e(350),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-width:.5rem;border-style:solid;border-color:#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;e.d(o,["default",0,l])},350(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}},149(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}},93(t){t.exports=function(t){return t[1]}},818(t,o,e){var i=e(740);i&&i.__esModule&&(i=i.default),t.exports="string"==typeof i?i:i.toString()},932(t,o,e){var i=e(514);i&&i.__esModule&&(i=i.default),t.exports="string"==typeof i?i:i.toString()},118(t,o,e){var i=e(340);i&&i.__esModule&&(i=i.default),t.exports="string"==typeof i?i:i.toString()}};const o={};function e(i){const r=o[i];if(void 0!==r)return r.exports;const n=o[i]={id:i,exports:{}};return t[i](n,n.exports,e),n.exports}e.n=t=>{const o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},e.d=(t,o)=>{if(Array.isArray(o))for(var i=0;i<o.length;){var r=o[i++],n=o[i++],a=0===n?{enumerable:!0,value:o[i++]}:{enumerable:!0,get:n};e.o(t,r)||Object.defineProperty(t,r,a)}else for(var r in o)e.o(o,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},e.o=(t,o)=>Object.prototype.hasOwnProperty.call(t,o),e.r=t=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};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(818),w=e.n(x),y=e(118),v=e.n(y),M=e(932),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",O="tooltip--fullscreen",k={fullpage:"highlight--fullpage",offscreen:"highlight--offscreen"},S="highlight--hide",C=320,D={block:"center",behavior:"smooth",inline:"nearest"},$=({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,""),H="axe-highlighter",Y=()=>"undefined"!=typeof HTMLElement&&"popover"in HTMLElement.prototype;const z=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))}},N=function(t,o){let e;return function(...i){e||(e=setTimeout(()=>{t(...i),e=null},o))}}(z.emit.bind(z),50),R=t=>{"selection"!==t.theme&&t.theme&&N("highlighter:change")};class V{static tagName=H;constructor(t,o=null){if(!t)return;const e=t.ownerDocument||document;let i;this.target=t,this.selector=o,this.axeHighlighter=e.createElement(V.tagName);try{i=this.axeHighlighter.attachShadow({mode:"open"})}catch{i=this.axeHighlighter.shadowRoot}this.axeHighlighter.style.setProperty("--axe-highlight-counter",B.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||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 ${$(i)}\n height: ${e}px;\n width: ${o}px;\n }\n\n #border {\n ${$(n)}\n }\n\n #content {\n ${$(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(k.fullpage,p),this.highlight.classList.toggle(k.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,R(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(),I=a.getAttribute?.("id")||a.attributes?.id,k=Array.from(a.classList).join("."),S=I?`#${I}`:k.length?`.${k}`:"";!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">${S}</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=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",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=T),D+=` ${r?A:j}`),l.classList.toggle(O,y),l.classList.remove(T,E,j,A),l.classList.add(...D.split(" "))})}hide(){this.axeHighlighter.classList.add(S),R(this)}show(){this.axeHighlighter.classList.remove(S),this.showInTopLayer(),R(this)}scrollIntoView({behavior:t=D.behavior}={}){this.target?.scrollIntoView?.({...D,behavior:t})}showInTopLayer(){if(Y()&&!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),B.delete(this.target),R(this)}}const B=new Map,P=t=>Array.from(B.keys()).find(o=>o.selector?.flat().join()===t.selector?.flat().join()),F=t=>B.has(t)||!(!t.selector||!P(t));let W=!1,Z=!1;function _(){Z||(window.requestAnimationFrame(()=>{B.forEach(t=>t.updatePosition()),Z=!1}),Z=!0)}function X(){Array.from(B.values()).forEach(t=>t.destroy())}function G(){Array.from(B.values()).forEach(t=>t.show())}function U(){Array.from(B.values()).forEach(t=>t.hide())}function Q(t,o=null){let e=null;return W||(window.addEventListener("resize",_),window.addEventListener("scroll",_,!0),window.addEventListener("beforeunload",()=>{window.removeEventListener("resize",_),window.removeEventListener("scroll",_,!0)}),W=!0),{highlight:function({theme:i="high-contrast",themeOptions:r={},showMetadata:n=!0,showTooltip:a=!0}={}){const l=B.get(t),s=P(t);if(e=l||new V(t,o),e.setTheme(i,r),e.setOptions({showTooltip:a,showMetadata:n}),s&&t.selector){B.get(s).destroy()}return l||(B.set(t,e),document.body.appendChild(e.axeHighlighter),e.showInTopLayer()),R(this||{theme:i}),e.updatePosition(),e},destroy:function(){e&&(e.destroy(),e=null)},scrollIntoView:t=>e?.scrollIntoView(t)}}export{D as SCROLL_INTO_VIEW_OPTIONS,C as TOOLTIP_MAX_WIDTH,X as clearHighlights,Q as createHighlighter,z as emitter,P as findExistingHighlighterNode,U as hideHighlights,S as highlightHidden,k as highlightPosition,F as highlighterExists,B as highlighters,G as showHighlights,Y as supportsPopover,H as tagName,_ as updateHighlighters};
|
|
1
|
+
var t={544(t,e,o){o.r(e);var i=o(335),n=o.n(i),r=o(248),l=o.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}:host(:popover-open){inset:0 auto auto 0!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}:host(.highlight--active) #axe-highlight{--active-ring-width:3px;--active-ring-gap:3px;outline:var(--active-ring-width) dashed var(--high-contrast-color-outline);outline-offset:var(--active-ring-gap)}:host(.highlight--active) #axe-highlight.highlight--fullpage{outline-offset:calc(-1 * (var(--active-ring-gap) + 2 * var(--active-ring-width)))}#border{border-color:var(--theme--border-color,#0000)}#border,#content,#margin{border-style:solid;display:flex;flex:1}#margin{border-color:var(--theme--margin-color,#0000)}#content{background-color:var(--theme--content-color,#0000);background-clip:content-box;border-color:var(--theme--padding-color,#0000);width:100%;height:100%;box-sizing:border-box}",""]);const a=l;o.d(e,["default",0,a])},398(t,e,o){o.r(e);var i=o(335),n=o.n(i),r=o(248),l=o.n(r),a=o(363),s=o.n(a),h=new URL("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjkiIGhlaWdodD0iMjkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQuNSIgY3k9IjE0LjUiIHI9IjEzLjUiIGZpbGw9IiMwYjE0MWMiIHN0cm9rZT0iI2Q0ZGRlMCIgc3Ryb2tlLXdpZHRoPSIyIi8+PHBhdGggZD0iTTYuMjMgMTIuNThoLjkydjUuNTFoLS45MmEuOTEuOTEgMCAwMS0uOTItLjkxVjEzLjVhLjkyLjkyIDAgMDEuOTItLjkyem0xNC43LTEuMzhWMTlhMS44NCAxLjg0IDAgMDEtMS44NCAxLjg0SDkuOTFBMS44NCAxLjg0IDAgMDE4LjA3IDE5di03LjhhMi4yOSAyLjI5IDAgMDEyLjI5LTIuMjloMy4yMlY3LjA3YS45Mi45MiAwIDAxMS44NCAwdjEuODRoMy4yMmEyLjI5IDIuMjkgMCAwMTIuMjkgMi4yOXptLTggMi4zYTEuMTUgMS4xNSAwIDEwLTEuMTUgMS4xNSAxLjE1IDEuMTUgMCAwMDEuMTUtMS4xNXptLS4yMyAzLjY4aC0xLjg4di45MWgxLjg0em0yLjc2IDBoLTEuODh2LjkxaDEuODR6bTMtMy42OGExLjE1IDEuMTUgMCAxMC0xLjE1IDEuMTUgMS4xNiAxLjE2IDAgMDAxLjE1LTEuMTV6bS0uMjMgMy42OGgtMS44OXYuOTFoMS44NHptNS41MS0zLjY4djMuNjhhLjkyLjkyIDAgMDEtLjkyLjkxaC0uOTJ2LTUuNTFoLjkyYS45Mi45MiAwIDAxLjkyLjkyeiIgZmlsbD0iIzc2Y2ZlOCIvPjwvc3ZnPg==",import.meta.url),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--overflow{max-width:none}.theme--high-contrast.highlight--fullpage{position:fixed!important;inset: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;inset:0!important;transform:none}.theme--selection:before{position:absolute;content:"";display:block;inset:0;border:3px dashed var(--high-contrast-color-outline)}.theme--selection.highlight--page{position:fixed!important;inset: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;inset:0;border:3px solid var(--high-contrast-color-outline)}.theme--selected.highlight--page{position:fixed!important;inset: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;inset: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;inset: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;o.d(e,["default",0,c])},744(t,e,o){o.r(e);var i=o(335),n=o.n(i),r=o(248),l=o.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-width:.5rem;border-style:solid;border-color:#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;o.d(e,["default",0,a])},248(t){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",i=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),i&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),i&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,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),o&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=o):p[2]=o),n&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=n):p[4]="".concat(n)),e.push(p))}},e}},363(t){t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},335(t){t.exports=function(t){return t[1]}},290(t,e,o){var i=o(544);i&&i.__esModule&&(i=i.default),t.exports="string"==typeof i?i:i.toString()},908(t,e,o){var i=o(398);i&&i.__esModule&&(i=i.default),t.exports="string"==typeof i?i:i.toString()},118(t,e,o){var i=o(744);i&&i.__esModule&&(i=i.default),t.exports="string"==typeof i?i:i.toString()}};const e={};function o(i){const n=e[i];if(void 0!==n)return n.exports;const r=e[i]={id:i,exports:{}};return t[i](r,r.exports,o),r.exports}o.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var n=e[i++],r=e[i++],l=0===r?{enumerable:!0,value:e[i++]}:{enumerable:!0,get:r};o.o(t,n)||Object.defineProperty(t,n,l)}else for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};const i=(t=window)=>window.top===t;function n(t,e=!0){const o=t.ownerDocument.defaultView,n=i(o),r=t,l=r.getBoundingClientRect(),a=!l.height||!l.width,s=o.getComputedStyle(r)||{};let h=o.frameElement,p=l,d=p.top+(n?o.pageYOffset:0),c=p.left+(n?o.pageXOffset:0),g=d,f=c;if(h)for(g=p.top,f=p.left,d=p.top,c=p.left;h&&e;){const{frameElement:t,pageYOffset:e,pageXOffset:o}=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?e:0),f+=p.left+l+(n?o:0),h=t}const m=o.frameElement?{top:g-window.pageYOffset,left:f-window.pageXOffset,height:l.height,width:l.width}:l,u=function(t,e=window.visualViewport||{width:window.innerWidth,height:window.innerWidth}){return{top:t.top+t.height<0,bottom:t.top>e.height,left:t.left+t.width<0,right:t.left>e.width}}(m),w=function(t,e={height:document.documentElement.scrollHeight,width:document.documentElement.scrollWidth}){return{top:t.top+t.height+(window.scrollY||window.pageYOffset)<0,bottom:t.top>e.height,left:t.left+t.width+(window.scrollX||window.pageXOffset)<0,right:t.left>e.width}}(m),x=t=>+t?.replace("px","")||0,{height:b,width:v}=o.visualViewport||{width:o.innerWidth,height:o.innerHeight};return{hidden:a,offViewport:u.top||u.bottom||u.left||u.right,offscreen:w.top||w.bottom||w.left||w.right,offscreenTop:w.top,offscreenBottom:w.bottom,offscreenLeft:w.left,offscreenRight:w.right,fullscreen:g<=0&&f<=0&&l.width>=v&&l.height>=b,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=t=>(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE,l=t=>{if(t.assignedSlot)return t.assignedSlot;const e=t.parentNode;return e?r(e)?e:e.host??null:null},a=t=>!(t.overflowX&&"visible"!==t.overflowX||t.overflowY&&"visible"!==t.overflowY),s=t=>{if(!r(t))return null;const e=t.ownerDocument.defaultView;if(!e||!i(e)||!((t,e)=>{const{body:o,documentElement:i}=t.ownerDocument,n=a(e.getComputedStyle(i))?o:i;for(let o=t;o&&o!==n&&o!==i;o=l(o)){const t=e.getComputedStyle(o);if(!a(t)||"fixed"===t.position)return!1}return"fixed"!==e.getComputedStyle(n).position})(t,e))return null;const o=t.ownerDocument.createRange();o.selectNodeContents(t);const n=o.getBoundingClientRect(),s=Array.from(o.getClientRects()).some(({left:t,right:o,width:i})=>i&&o>0&&t<e.innerWidth);if(!n.width||s)return null;const h=t.getBoundingClientRect(),p=n.width>e.innerWidth?n.left:n.left+n.width/2-e.innerWidth/2;return{left:e.scrollX+p,top:e.scrollY+h.top+h.height/2-e.innerHeight/2}};const h=new Map,p=t=>1===t.length?t[0]:t,d={isHidden:(...t)=>p(t.map(f)),name:(...t)=>p(t.map(g)),getRole:(...t)=>p(t.map(m)),getContrast:(...t)=>p(t.map(u))};function c(t=document.documentElement,e=!1){var o;const i=t.ownerDocument,n=i.defaultView;if(!n)throw new ReferenceError("no context was found for this node");const r=n.axe;if(!r)throw new ReferenceError("axe was not found in this context");const l=null===(o=h.get(r))||void 0===o?void 0:o[0];return(e||!h.has(r)||l&&!r.utils.getNodeFromTree(l,t))&&h.set(r,r.utils.getFlattenedTree(i)),r}function g(t){const e=c(t),o=function(t,e){let o=h.get(t);o||(o=t.utils.getFlattenedTree(e.ownerDocument),h.set(t,o));return t.utils.getNodeFromTree(o[0],e)}(e,t);return o?e.commons.text.accessibleTextVirtual(o):""}function f(t){return c(t).commons.utils.isHidden(t)}function m(t){const e=c(t);return function(t){return!!c(t).utils.getNodeFromTree(t)}(t)?e.commons.aria.getRole(t):null}function u(t){const e=c(t);let o;try{const i=e.commons.color.getForegroundColor(t),n=e.commons.color.getBackgroundColor(t);o=e.commons.color.getContrast(n,i)}catch(t){console.error(t)}return o}const{getRole:w,getContrast:x,name:b,isHidden:v}=d;function y(t){const e=new Map;try{const o=function(t){const e=x(t);if(!e)return;return{name:"Contrast",value:`\n <span class="contrast-aa">AA</span> ${Math.floor(100*e)/100}\n ${e<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 e=w(t);if(e)return{name:"Role",value:e}}(t),n=i&&function(t){const e=b(t);return{name:"Accessible Text",value:v(t)?"<em>hidden</em>":e||"<em>empty</em>"}}(t);[o,i,n].filter(Boolean).forEach(({name:t,value:o})=>{e.set(t,o)})}catch(t){console.error(t)}return e}var M=o(290),L=o.n(M),T=o(118),E=o.n(T),j=o(908),I=o.n(j);const k=document.createElement("template");k.innerHTML=`\n <style>\n ${I()}\n ${L()}\n ${E()}\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 A="tooltip--top",S="tooltip--bottom",C="tooltip--left",D="tooltip--right",O="tooltip--fullscreen",H={fullpage:"highlight--fullpage",offscreen:"highlight--offscreen"},$="highlight--hide",Y="highlight--active",N="highlight--overflow",R=320,z={block:"center",behavior:"smooth",inline:"nearest"},B=({top:t,right:e,bottom:o,left:i})=>`\n border-top-width: ${Math.max(t,0)}px;\n border-right-width: ${Math.max(e,0)}px;\n border-bottom-width: ${Math.max(o,0)}px;\n border-left-width: ${Math.max(i,0)}px;\n `.replace(/[\s\n]/g,""),P="axe-highlighter",V=()=>"undefined"!=typeof HTMLElement&&"popover"in HTMLElement.prototype;const W=new class{constructor(){this.target=new EventTarget}on(t,e){this.target.addEventListener(t,e)}remove(t,e){this.target.removeEventListener(t,e)}emit(t){this.target.dispatchEvent(new CustomEvent(t))}},F=function(t,e){let o;return function(...i){o||(o=setTimeout(()=>{t(...i),o=null},e))}}(W.emit.bind(W),50),X=t=>!!t.theme&&"selection"!==t.theme,_=t=>{X(t)&&F("highlighter:change")};class Z{static tagName=P;constructor(t,e=null){if(!t)return;const o=t.ownerDocument||document;let i;this.target=t,this.selector=e,this.axeHighlighter=o.createElement(Z.tagName);try{i=this.axeHighlighter.attachShadow({mode:"open"})}catch{i=this.axeHighlighter.shadowRoot}this.axeHighlighter.style.setProperty("--axe-highlight-counter",U.size+1),i.appendChild(k.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:e,height:o,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:w}=window.visualViewport||{width:window.innerWidth,height:window.innerHeight,pageTop:window.pageYOffset,pageLeft:window.pageXOffset},x=d+o/2>f/2+u,b=c>m-320+w,v=this.axeHighlighter.offsetParent;if(v&&"static"!==getComputedStyle(v).getPropertyValue("position")){const t=v.getBoundingClientRect();d-=t.top+u,c-=t.left+w}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":`${o+(d+Math.max(i.bottom,0))}px`};\n bottom: ${x?-(d-Math.max(i.top,0))+"px":"auto"};\n left: ${b?"auto":`${c}px`};\n right: ${b?m-c+"px":"auto"};\n }\n\n #margin {\n ${B(i)}\n height: ${o}px;\n width: ${e}px;\n }\n\n #border {\n ${B(r)}\n }\n\n #content {\n ${B(l)}\n }\n `;let y=s&&!p,M=h&&!p;if(t.frameId&&t.layout){const{layout:e}=t;y=e.top+e.height<u||e.top>u+f}this.highlight.classList.toggle(H.fullpage,p),this.highlight.classList.toggle(H.offscreen,y||M),this.showTooltip({offViewport:y,offscreen:M,showTooltip:!(!M&&!a)||this.options.showTooltip,hidden:a,flipY:x,flipX:b})}setTheme(t,e){const{classList:o}=this.highlight;o.remove(...o),o.add(`theme--${t}`);const{badgeContent:i}=e;i&&this.axeHighlighter.style.setProperty("--axe-highlight-badge-content",`'${i}'`),this.theme=t,_(this)}setOptions(t){this.options=t}showTooltip({hidden:t=!1,offViewport:e=!1,offscreen:o=!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:w,width:x,fullscreen:b}=s,v=m-(window.scrollY||window.pageYOffset)+"px",M=u-(window.scrollX||window.pageXOffset)+"px",L=l.tagName.toLowerCase(),T=l.getAttribute?.("id")||l.attributes?.id,E=Array.from(l.classList).join("."),j=T?`#${T}`:E.length?`.${E}`:"";!p||this.checks||l.frameId||(this.checks=y(l));const I=this.checks&&Array.from(this.checks.entries()).map(([t,e])=>`<dt>${t}</dt><dd>${e}</dd>`);a.innerHTML=`\n <div id="tag">\n <strong id="tag-name">${L}</strong><span id="tag-identifier">${j}</span>\n ${t?'<span id="tag-visibility">(hidden)</span>':""}\n <span id="tag-dimensions">${parseFloat(x.toFixed(2))} x ${parseFloat(w.toFixed(2))}</span>\n </div>\n ${I&&I.length?`<dl id="attributes">${I.join("")}</dl>`:""}\n `,a.style.display="block";let k=S;requestAnimationFrame(()=>{o?(this.tooltip.style.position="fixed",d?(this.tooltip.style.top="0",this.tooltip.style.bottom="auto",k=S):(this.tooltip.style.top=v,this.tooltip.style.bottom="auto"),g&&(this.tooltip.style.bottom="0",this.tooltip.style.top="auto",k=A),c?(this.tooltip.style.left="0",this.tooltip.style.right="auto",k=C):(this.tooltip.style.left=M,this.tooltip.style.right="auto"),f&&(this.tooltip.style.right="0",this.tooltip.style.left="auto",k=D)):(e?(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&&(k=A),k+=` ${n?D:C}`),a.classList.toggle(O,b),a.classList.remove(A,S,C,D),a.classList.add(...k.split(" "))})}hide(){this.axeHighlighter.classList.add($),_(this)}setActive(t){this.axeHighlighter.classList.toggle(Y,t)}show(){this.axeHighlighter.classList.remove($),this.showInTopLayer(),_(this)}scrollIntoView({behavior:t=z.behavior}={}){const e=this.highlight.classList.contains(N)&&s(this.target);e?window.scrollTo({...e,behavior:t}):this.target?.scrollIntoView?.({...z,behavior:t})}showInTopLayer(){if(V()&&!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),U.delete(this.target),_(this)}}const U=new Map,G=t=>Array.from(U.keys()).find(e=>e.selector?.flat().join()===t.selector?.flat().join()),Q=t=>U.has(t)?U.get(t):t.selector?U.get(G(t)):void 0,q=t=>!!Q(t);let J=!1,K=!1;function tt(){K||(window.requestAnimationFrame(()=>{U.forEach(t=>t.updatePosition()),K=!1}),K=!0)}function et(){Array.from(U.values()).forEach(t=>t.destroy())}function ot(){Array.from(U.values()).forEach(t=>t.show())}function it(){Array.from(U.values()).forEach(t=>t.hide())}function nt(t,e=null){let o=null;return J||(window.addEventListener("resize",tt),window.addEventListener("scroll",tt,!0),window.addEventListener("beforeunload",()=>{window.removeEventListener("resize",tt),window.removeEventListener("scroll",tt,!0)}),J=!0),{highlight:function({theme:i="high-contrast",themeOptions:n={},showMetadata:r=!0,showTooltip:l=!0,allowOverflow:a=!1}={}){const s=U.get(t),h=G(t);if(o=s||new Z(t,e),o.setTheme(i,n),o.highlight.classList.toggle(N,a),o.setOptions({showTooltip:l,showMetadata:r}),h&&t.selector){U.get(h).destroy()}return s||(U.set(t,o),document.body.appendChild(o.axeHighlighter),o.showInTopLayer()),_(this||{theme:i}),o.updatePosition(),o},destroy:function(){o&&(o.destroy(),o=null)},scrollIntoView:t=>o?.scrollIntoView(t)}}export{z as SCROLL_INTO_VIEW_OPTIONS,R as TOOLTIP_MAX_WIDTH,et as clearHighlights,nt as createHighlighter,W as emitter,G as findExistingHighlighterNode,Q as getExistingHighlighter,it as hideHighlights,Y as highlightActive,$ as highlightHidden,N as highlightOverflow,H as highlightPosition,q as highlighterExists,U as highlighters,X as isReportedHighlight,ot as showHighlights,V as supportsPopover,P as tagName,tt as updateHighlighters};
|
package/extension/manifest.json
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"offline_enabled": true,
|
|
64
64
|
"minimum_chrome_version": "88",
|
|
65
65
|
"incognito": "split",
|
|
66
|
-
"version_name": "4.
|
|
66
|
+
"version_name": "4.140.1.30718 build 201c6f7f2c",
|
|
67
67
|
"externally_connectable": {
|
|
68
68
|
"matches": [
|
|
69
69
|
"http://local.axepro.com:3000/*"
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"default_title": "Axe Accessibility",
|
|
80
80
|
"browser_style": true
|
|
81
81
|
},
|
|
82
|
-
"version": "4.
|
|
82
|
+
"version": "4.140.1.30718"
|
|
83
83
|
}
|