/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@axe-core/reporter-earl@4.11.1/dist/axeReporterEarl.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var r in t)__defProp(e,r,{get:t[r],enumerable:!0})},__copyProps=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of __getOwnPropNames(t))__hasOwnProp.call(e,a)||a===r||__defProp(e,a,{get:()=>t[a],enumerable:!(o=__getOwnPropDesc(t,a))||o.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),axeReporterEarl_exports={};__export(axeReporterEarl_exports,{createEarlReport:()=>createEarlReport,default:()=>axeReporterEarl}),module.exports=__toCommonJS(axeReporterEarl_exports);var context_default={"@vocab":"http://www.w3.org/ns/earl#",earl:"http://www.w3.org/ns/earl#",WCAG20:"http://www.w3.org/TR/WCAG20/#",WCAG21:"http://www.w3.org/TR/WCAG21/#","auto-wcag":"https://auto-wcag.github.io/auto-wcag/rules/",dct:"http://purl.org/dc/terms#",sch:"https://schema.org/",doap:"http://usefulinc.com/ns/doap#",foaf:"http://xmlns.com/foaf/spec/#",WebPage:"sch:WebPage",url:"dct:source",assertions:{"@reverse":"subject"},assertedBy:{"@type":"@id"},outcome:{"@type":"@id"},mode:{"@type":"@id"},pointer:{"@type":"ptr:CSSSelectorPointer"}};function cssToPointer(e){const t=e[0];return Array.isArray(t)?t[0]:t}function testResult({description:e},t=[]){return t.map((({node:t,result:r})=>({"@type":"TestResult",info:e,outcome:"earl:"+r,pointer:cssToPointer(t.selector)})))}function axeResultToEarl(e){return e.reduce(((e,t)=>{let r=[];r=r.concat(testResult(t,t.violations)),r=r.concat(testResult(t,t.passes)),r=r.concat(testResult(t,t.incomplete)),0===r.length&&r.push({"@type":"TestResult",outcome:"earl:inapplicable"});const o=r.map((e=>{const r=t.helpUrl.match(/axe\/([1-9][0-9]*\.[1-9][0-9]*)\//);return{"@type":"Assertion",mode:"earl:automatic",assertedBy:{"@id":`https://github.com/dequelabs/axe-core/releases/tag/${r&&r[1]||""}.0`,"@type":["earl:Assertor","earl:Software","doap:Project"],"doap:name":"Axe","doap:vendor":{"@id":"https://deque.com/","@type":"foaf:Organization","foaf:name":"Deque Systems"}},test:{"@type":"TestCase","@id":t.helpUrl},result:e}}));return e.concat(o)}),[])}function createEarlReport(e,t){return{"@context":context_default,"@type":"WebPage",url:t||window.location.href,assertions:axeResultToEarl(e)}}function axeReporterEarl(e,{},t){t(createEarlReport(e))}if(module.exports.default){var ___default_export=module.exports.default,___export_entries=Object.entries(module.exports);module.exports=___default_export,___export_entries.forEach((([e,t])=>{if(module.exports[e])throw new Error(`Export "${e}" already exists on default export`);module.exports[e]=t}))}
//# sourceMappingURL=/sm/1923fda70d459cc463bc5230a2094c7475fc3c99fba4d527ef9ddeb5cda8056b.map