allyward 0.0.0 → 1.2.0

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.
@@ -0,0 +1,6 @@
1
+ import { createRequire as __createRequire } from 'module'; const require = __createRequire(import.meta.url);
2
+ import{h as x}from"./chunk-7UDH5BXX.mjs";var F=/<!--\s*ally(?:ward|proof)-ignore\b([\s\S]*?)-->/g,k=/\/\*\s*ally(?:ward|proof)-ignore\b([\s\S]*?)\*\//g,y=["javascriptreact","typescriptreact"],v=e=>e.replace(/^allyproof\//,"allyward/");function m(e,t){let n=x(e.text),o=a=>n.filter(i=>i<=a).length,r=[...e.text.matchAll(y.includes(e.languageId)?k:F)].map(a=>({startLine:o(a.index),target:o(a.index+a[0].length)+1,rules:a[1].split(/[\s,]+/).filter(Boolean).map(v)}));for(let a of[...r].reverse())a.target=r.find(i=>i.startLine===a.target)?.target??a.target;return t.filter(a=>!r.some(i=>i.target===o(a.range.start)&&i.rules.includes(a.ruleId)))}var A=[...y,"typescript"];async function W(e,t,n){let{languageId:o,text:r}=e,a=r.lastIndexOf(`
3
+ `,t.range.start-1)+1,i=/^[ \t]*/.exec(r.slice(a))[0],c=r.includes(`\r
4
+ `)?`\r
5
+ `:`
6
+ `,l=y.includes(o)?[`{/* allyward-ignore ${t.ruleId} */}`,`/* allyward-ignore ${t.ruleId} */`]:[`<!-- allyward-ignore ${t.ruleId} -->`];for(let p of l){let u={offset:a,text:`${i}${p}${c}`};if(!A.includes(o))return u;let g=await n({languageId:o,text:r.slice(0,a)+u.text+r.slice(a)}),s=t.range.start+u.text.length;if(g?.every(d=>d.ruleId!==t.ruleId||d.range.start!==s))return u}}var S=[E,P];function h(e,t){return t.map(n=>{for(let o of S){let r=o(e,n);if(r)return{...n,...r}}return n})}function E(e,t){let n=j(e,t,"html","3.1.1");if(!n||n.some(({name:r})=>r==="lang"))return;let o=t.range.start+5;return{fix:[{range:{start:o,end:o},newText:' lang="en"'}],quickFixOnly:!0}}function P(e,t){let n=j(e,t,"body","1.3.1")?.filter(({name:o})=>o==="aria-hidden");if(n?.length)return{fix:n.map(({range:o})=>({range:o,newText:""}))}}function j(e,t,n,o){if(t.criteria[0]!==o)return;let r=t.range.start;if(!new RegExp(`^<${n}(?=[\\s/>])`,"iy").test(e.slice(r,r+n.length+2)))return;r+=1+n.length;let a=[];for(;;){let i=r;if(r=f(e,r,/\s*/y),e[r]===">"||e.startsWith("/>",r))return a;let c=e[r]==="{"?B(e,r):f(e,r,/[^\s"'<>/={}]+/y);if(c===void 0||c===r)return;let l=e.slice(r,c).toLowerCase();r=c;let p=f(e,r,/\s*=\s*/y);if(p!==r){r=p;let u=e[r],g=u==='"'||u==="'"?e.indexOf(u,r+1)+1:u==="{"?B(e,r):f(e,r,/[^\s>]+/y);if(!g||g===r)return;r=g}a.push({name:l,range:{start:i,end:r}})}}function f(e,t,n){return n.lastIndex=t,n.exec(e)?n.lastIndex:t}function B(e,t){let n=0;for(let o=t;o<e.length;o++){let r=e[o];if(r==='"'||r==="'"||r==="`"){let a=e.indexOf(r,o+1);if(a===-1)return;o=a}else if(r==="{")n++;else if(r==="}"&&--n===0)return o+1}}var b={confidence:.95,threshold:.95,rules:{"@angular-eslint/template/alt-text":{angular:{correct:108,wrong:0,lowerBound:.972,proven:!0}},"@angular-eslint/template/click-events-have-key-events":{angular:{correct:20,wrong:10,lowerBound:.5,proven:!1}},"@angular-eslint/template/elements-content":{angular:{correct:166,wrong:0,lowerBound:.982,proven:!0}},"@angular-eslint/template/interactive-supports-focus":{angular:{correct:21,wrong:16,lowerBound:.419,proven:!1}},"@angular-eslint/template/label-has-associated-control":{angular:{correct:84,wrong:1,lowerBound:.945,proven:!1}},"@angular-eslint/template/no-positive-tabindex":{angular:{correct:80,wrong:0,lowerBound:.963,proven:!1}},"@angular-eslint/template/role-has-required-aria":{angular:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"@angular-eslint/template/valid-aria":{angular:{correct:0,wrong:1,lowerBound:0,proven:!1}},"@html-eslint/no-positive-tabindex":{html:{correct:0,wrong:1,lowerBound:0,proven:!1}},"@html-eslint/require-li-container":{html:{correct:1,wrong:0,lowerBound:.05,proven:!1}},"allyward/autocomplete-valid":{angular:{correct:78,wrong:0,lowerBound:.962,proven:!0},vue:{correct:8,wrong:0,lowerBound:.687,proven:!1}},"allyward/button-name":{astro:{correct:88,wrong:0,lowerBound:.966,proven:!0},javascriptreact:{correct:86,wrong:0,lowerBound:.965,proven:!0},typescriptreact:{correct:80,wrong:1,lowerBound:.942,proven:!1}},"allyward/non-text-contrast":{astro:{correct:6,wrong:0,lowerBound:.606,proven:!1},javascriptreact:{correct:1,wrong:0,lowerBound:.05,proven:!1}},"allyward/password-autocomplete":{javascriptreact:{correct:0,wrong:1,lowerBound:0,proven:!1}},"allyward/text-contrast":{astro:{correct:18,wrong:2,lowerBound:.717,proven:!1},html:{correct:4,wrong:0,lowerBound:.472,proven:!1},javascriptreact:{correct:19,wrong:0,lowerBound:.854,proven:!1},svelte:{correct:5,wrong:0,lowerBound:.549,proven:!1},typescriptreact:{correct:1,wrong:0,lowerBound:.05,proven:!1}},"area-alt":{html:{correct:1,wrong:0,lowerBound:.05,proven:!1}},"aria-allowed-attr":{html:{correct:78,wrong:0,lowerBound:.962,proven:!0}},"aria-command-name":{html:{correct:1,wrong:0,lowerBound:.05,proven:!1}},"aria-hidden-body":{html:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"aria-input-field-name":{html:{correct:3,wrong:0,lowerBound:.368,proven:!1}},"aria-required-attr":{html:{correct:0,wrong:1,lowerBound:0,proven:!1}},"aria-required-children":{html:{correct:12,wrong:0,lowerBound:.779,proven:!1}},"aria-required-parent":{html:{correct:12,wrong:0,lowerBound:.779,proven:!1}},"aria-roles":{html:{correct:0,wrong:1,lowerBound:0,proven:!1}},"aria-valid-attr":{html:{correct:77,wrong:0,lowerBound:.961,proven:!0}},"aria-valid-attr-value":{html:{correct:0,wrong:1,lowerBound:0,proven:!1}},"astro/jsx-a11y/alt-text":{astro:{correct:109,wrong:0,lowerBound:.972,proven:!0}},"astro/jsx-a11y/anchor-ambiguous-text":{astro:{correct:26,wrong:3,lowerBound:.753,proven:!1}},"astro/jsx-a11y/anchor-has-content":{astro:{correct:105,wrong:0,lowerBound:.971,proven:!0}},"astro/jsx-a11y/aria-props":{astro:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"astro/jsx-a11y/aria-proptypes":{astro:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"astro/jsx-a11y/aria-role":{astro:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"astro/jsx-a11y/autocomplete-valid":{astro:{correct:47,wrong:1,lowerBound:.904,proven:!1}},"astro/jsx-a11y/click-events-have-key-events":{astro:{correct:1,wrong:1,lowerBound:.025,proven:!1}},"astro/jsx-a11y/heading-has-content":{astro:{correct:78,wrong:0,lowerBound:.962,proven:!0}},"astro/jsx-a11y/html-has-lang":{astro:{correct:4,wrong:0,lowerBound:.472,proven:!1}},"astro/jsx-a11y/iframe-has-title":{astro:{correct:7,wrong:0,lowerBound:.651,proven:!1}},"astro/jsx-a11y/img-redundant-alt":{astro:{correct:0,wrong:1,lowerBound:0,proven:!1}},"astro/jsx-a11y/label-has-associated-control":{astro:{correct:41,wrong:4,lowerBound:.808,proven:!1}},"astro/jsx-a11y/no-aria-hidden-on-focusable":{astro:{correct:80,wrong:4,lowerBound:.894,proven:!1}},"astro/jsx-a11y/no-noninteractive-element-interactions":{astro:{correct:0,wrong:6,lowerBound:0,proven:!1}},"astro/jsx-a11y/no-noninteractive-element-to-interactive-role":{astro:{correct:0,wrong:4,lowerBound:0,proven:!1}},"astro/jsx-a11y/no-static-element-interactions":{astro:{correct:1,wrong:1,lowerBound:.025,proven:!1}},"astro/jsx-a11y/role-has-required-aria-props":{astro:{correct:81,wrong:0,lowerBound:.963,proven:!0}},"astro/jsx-a11y/role-supports-aria-props":{astro:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"astro/jsx-a11y/tabindex-no-positive":{astro:{correct:80,wrong:0,lowerBound:.963,proven:!1}},"autocomplete-valid":{html:{correct:85,wrong:0,lowerBound:.965,proven:!0}},"button-name":{html:{correct:74,wrong:0,lowerBound:.96,proven:!0}},dlitem:{html:{correct:2,wrong:0,lowerBound:.223,proven:!1}},"document-title":{html:{correct:84,wrong:6,lowerBound:.872,proven:!1}},"frame-title":{html:{correct:2,wrong:0,lowerBound:.223,proven:!1}},"html-has-lang":{html:{correct:88,wrong:6,lowerBound:.877,proven:!1}},"html-lang-valid":{html:{correct:85,wrong:0,lowerBound:.965,proven:!0}},"image-alt":{html:{correct:205,wrong:0,lowerBound:.985,proven:!0}},"input-image-alt":{html:{correct:5,wrong:0,lowerBound:.549,proven:!1}},"jsx-a11y-x/alt-text":{javascriptreact:{correct:89,wrong:0,lowerBound:.966,proven:!0},typescriptreact:{correct:103,wrong:0,lowerBound:.971,proven:!0}},"jsx-a11y-x/anchor-ambiguous-text":{typescriptreact:{correct:1,wrong:4,lowerBound:.01,proven:!1}},"jsx-a11y-x/anchor-has-content":{javascriptreact:{correct:84,wrong:0,lowerBound:.964,proven:!0},typescriptreact:{correct:78,wrong:1,lowerBound:.941,proven:!1}},"jsx-a11y-x/aria-props":{javascriptreact:{correct:80,wrong:0,lowerBound:.963,proven:!0},typescriptreact:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"jsx-a11y-x/aria-proptypes":{javascriptreact:{correct:80,wrong:0,lowerBound:.963,proven:!0},typescriptreact:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"jsx-a11y-x/aria-role":{javascriptreact:{correct:80,wrong:0,lowerBound:.963,proven:!0},typescriptreact:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"jsx-a11y-x/autocomplete-valid":{javascriptreact:{correct:80,wrong:0,lowerBound:.963,proven:!0},typescriptreact:{correct:65,wrong:0,lowerBound:.954,proven:!0}},"jsx-a11y-x/click-events-have-key-events":{javascriptreact:{correct:68,wrong:10,lowerBound:.792,proven:!1},typescriptreact:{correct:29,wrong:33,lowerBound:.358,proven:!1}},"jsx-a11y-x/heading-has-content":{javascriptreact:{correct:76,wrong:0,lowerBound:.961,proven:!0},typescriptreact:{correct:63,wrong:0,lowerBound:.953,proven:!0}},"jsx-a11y-x/html-has-lang":{javascriptreact:{correct:1,wrong:0,lowerBound:.05,proven:!1},typescriptreact:{correct:1,wrong:1,lowerBound:.025,proven:!1}},"jsx-a11y-x/iframe-has-title":{javascriptreact:{correct:2,wrong:0,lowerBound:.223,proven:!1},typescriptreact:{correct:9,wrong:0,lowerBound:.716,proven:!1}},"jsx-a11y-x/img-redundant-alt":{javascriptreact:{correct:2,wrong:0,lowerBound:.223,proven:!1},typescriptreact:{correct:0,wrong:1,lowerBound:0,proven:!1}},"jsx-a11y-x/interactive-supports-focus":{javascriptreact:{correct:0,wrong:1,lowerBound:0,proven:!1},typescriptreact:{correct:0,wrong:4,lowerBound:0,proven:!1}},"jsx-a11y-x/label-has-associated-control":{javascriptreact:{correct:113,wrong:2,lowerBound:.946,proven:!1},typescriptreact:{correct:48,wrong:0,lowerBound:.939,proven:!1}},"jsx-a11y-x/media-has-caption":{javascriptreact:{correct:0,wrong:1,lowerBound:0,proven:!1},typescriptreact:{correct:0,wrong:4,lowerBound:0,proven:!1}},"jsx-a11y-x/mouse-events-have-key-events":{typescriptreact:{correct:1,wrong:0,lowerBound:.05,proven:!1}},"jsx-a11y-x/no-aria-hidden-on-focusable":{javascriptreact:{correct:80,wrong:1,lowerBound:.942,proven:!1},typescriptreact:{correct:79,wrong:1,lowerBound:.942,proven:!1}},"jsx-a11y-x/no-interactive-element-to-noninteractive-role":{javascriptreact:{correct:1,wrong:0,lowerBound:.05,proven:!1},typescriptreact:{correct:0,wrong:1,lowerBound:0,proven:!1}},"jsx-a11y-x/no-noninteractive-element-interactions":{javascriptreact:{correct:11,wrong:3,lowerBound:.534,proven:!1},typescriptreact:{correct:2,wrong:9,lowerBound:.033,proven:!1}},"jsx-a11y-x/no-static-element-interactions":{javascriptreact:{correct:46,wrong:6,lowerBound:.784,proven:!1},typescriptreact:{correct:30,wrong:31,lowerBound:.38,proven:!1}},"jsx-a11y-x/role-has-required-aria-props":{javascriptreact:{correct:81,wrong:0,lowerBound:.963,proven:!0},typescriptreact:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"jsx-a11y-x/role-supports-aria-props":{javascriptreact:{correct:80,wrong:0,lowerBound:.963,proven:!0},typescriptreact:{correct:81,wrong:0,lowerBound:.963,proven:!0}},"jsx-a11y-x/tabindex-no-positive":{javascriptreact:{correct:80,wrong:0,lowerBound:.963,proven:!1},typescriptreact:{correct:79,wrong:3,lowerBound:.908,proven:!1}},label:{html:{correct:85,wrong:0,lowerBound:.965,proven:!0}},"link-name":{html:{correct:108,wrong:0,lowerBound:.972,proven:!0}},list:{html:{correct:2,wrong:0,lowerBound:.223,proven:!1}},listitem:{html:{correct:1,wrong:0,lowerBound:.05,proven:!1}},marquee:{html:{correct:1,wrong:0,lowerBound:.05,proven:!1}},"meta-refresh":{html:{correct:4,wrong:1,lowerBound:.342,proven:!1}},"meta-viewport":{html:{correct:4,wrong:0,lowerBound:.472,proven:!1}},"nested-interactive":{html:{correct:5,wrong:0,lowerBound:.549,proven:!1}},"select-name":{html:{correct:6,wrong:0,lowerBound:.606,proven:!1}},"summary-name":{html:{correct:3,wrong:0,lowerBound:.368,proven:!1}},"svelte/a11y_autocomplete_valid":{svelte:{correct:13,wrong:0,lowerBound:.794,proven:!1}},"svelte/a11y_click_events_have_key_events":{svelte:{correct:0,wrong:2,lowerBound:0,proven:!1}},"svelte/a11y_consider_explicit_label":{svelte:{correct:119,wrong:0,lowerBound:.975,proven:!0}},"svelte/a11y_incorrect_aria_attribute_type_token":{svelte:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"svelte/a11y_interactive_supports_focus":{svelte:{correct:0,wrong:1,lowerBound:0,proven:!1}},"svelte/a11y_label_has_associated_control":{svelte:{correct:3,wrong:0,lowerBound:.368,proven:!1}},"svelte/a11y_missing_attribute":{svelte:{correct:81,wrong:0,lowerBound:.963,proven:!0}},"svelte/a11y_missing_content":{svelte:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"svelte/a11y_no_static_element_interactions":{svelte:{correct:1,wrong:2,lowerBound:.016,proven:!1}},"svelte/a11y_positive_tabindex":{svelte:{correct:80,wrong:0,lowerBound:.963,proven:!1}},"svelte/a11y_role_has_required_aria_props":{svelte:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"svelte/a11y_role_supports_aria_props_implicit":{svelte:{correct:79,wrong:0,lowerBound:.962,proven:!0}},"svelte/a11y_unknown_aria_attribute":{svelte:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"svelte/a11y_unknown_role":{svelte:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"svg-img-alt":{html:{correct:4,wrong:0,lowerBound:.472,proven:!1}},"td-headers-attr":{html:{correct:4,wrong:0,lowerBound:.472,proven:!1}},"valid-lang":{html:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"vuejs-accessibility/alt-text":{vue:{correct:134,wrong:0,lowerBound:.977,proven:!0}},"vuejs-accessibility/anchor-has-content":{vue:{correct:86,wrong:0,lowerBound:.965,proven:!0}},"vuejs-accessibility/aria-props":{vue:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"vuejs-accessibility/aria-role":{vue:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"vuejs-accessibility/click-events-have-key-events":{vue:{correct:11,wrong:6,lowerBound:.419,proven:!1}},"vuejs-accessibility/form-control-has-label":{vue:{correct:15,wrong:12,lowerBound:.381,proven:!1}},"vuejs-accessibility/heading-has-content":{vue:{correct:79,wrong:0,lowerBound:.962,proven:!0}},"vuejs-accessibility/iframe-has-title":{vue:{correct:69,wrong:0,lowerBound:.957,proven:!0}},"vuejs-accessibility/label-has-for":{vue:{correct:85,wrong:1,lowerBound:.946,proven:!1}},"vuejs-accessibility/mouse-events-have-key-events":{vue:{correct:0,wrong:4,lowerBound:0,proven:!1}},"vuejs-accessibility/no-aria-hidden-on-focusable":{vue:{correct:82,wrong:0,lowerBound:.964,proven:!0}},"vuejs-accessibility/no-role-presentation-on-focusable":{vue:{correct:2,wrong:0,lowerBound:.223,proven:!1}},"vuejs-accessibility/no-static-element-interactions":{vue:{correct:17,wrong:12,lowerBound:.417,proven:!1}},"vuejs-accessibility/role-has-required-aria-props":{vue:{correct:80,wrong:0,lowerBound:.963,proven:!0}},"vuejs-accessibility/tabindex-no-positive":{vue:{correct:80,wrong:0,lowerBound:.963,proven:!1}}}};var _={angular:["@angular-eslint/template/no-positive-tabindex"],astro:["astro/jsx-a11y/anchor-ambiguous-text","astro/jsx-a11y/img-redundant-alt","astro/jsx-a11y/tabindex-no-positive"],html:["@html-eslint/no-positive-tabindex"],javascriptreact:["jsx-a11y-x/anchor-ambiguous-text","jsx-a11y-x/img-redundant-alt","jsx-a11y-x/tabindex-no-positive"],svelte:["svelte/a11y_img_redundant_alt","svelte/a11y_positive_tabindex"],typescript:["@angular-eslint/template/no-positive-tabindex"],typescriptreact:["jsx-a11y-x/anchor-ambiguous-text","jsx-a11y-x/img-redundant-alt","jsx-a11y-x/tabindex-no-positive"],vue:["vuejs-accessibility/tabindex-no-positive"]};var ee={html:["html"],jsx:["javascriptreact","typescriptreact"],vue:["vue"],svelte:["svelte"],astro:["astro"],angular:["angular","typescript"]};function re(e,t){return e==="html"&&/\.component\.html$/i.test(t)?"angular":e}function C(e){return e.languageId!=="typescript"||e.text.includes("@Component(")}var R=class extends Error{constructor(n,o){super(`Parse error at ${n}: ${o}`);this.position=n;this.name="ParseError"}},T=b.rules;function $(e,t){return T[e]?.[t]}var L=_;function I(e,t){return L[t]?.includes(e)===!0}function D(e,t){return!I(e,t)&&$(e,t)?.proven===!0}async function te(e,t={}){let{findings:n,needsReview:o}=await N(e,t.components),r=M(t.rules??{}),a=m(e,n),i=s=>r[s.ruleId]!=="off",c=a.filter(i),l=t.proven??D,p=s=>i(s)&&l(s.ruleId,e.languageId),u=c.filter(p),g=c.filter(s=>!u.includes(s));return{findings:h(e.text,u).map(s=>{let d=r[s.ruleId];return d&&d!=="off"?{...s,severity:d}:s}),needsReview:[...o,...g.flatMap(s=>s.criteria.map(d=>({criterion:d,reason:I(s.ruleId,e.languageId)?`Convention, verify: ${s.message} (${s.ruleId} is a Best-practice rule: it flags a coding convention, not a WCAG failure)`:`Likely failure, verify: ${s.message} (${s.ruleId} is not yet a Proven rule)`,range:s.range,ruleId:s.ruleId})))],ignored:n.filter(s=>!a.includes(s)&&p(s)).length}}function M(e){let t=Object.entries(e),n=t.filter(([o])=>v(o)!==o);return Object.fromEntries([...n.map(([o,r])=>[v(o),r]),...t.filter(o=>!n.includes(o))])}async function N(e,t){if(!e.text.trim())return{findings:[],needsReview:[]};if(e.languageId==="javascriptreact"||e.languageId==="typescriptreact"){let{checkJsx:i}=await import("./engine-TPXDCC2K.mjs"),{findings:c,needsReview:l}=i(e.text,e.languageId==="typescriptreact",t);return{findings:w(c),needsReview:l}}if(e.languageId==="vue"){let{checkVue:i}=await import("./engine-2IR2XTU3.mjs"),{findings:c,needsReview:l}=i(e.text,t);return{findings:w(c),needsReview:l}}if(e.languageId==="svelte"){let{checkSvelte:i}=await import("./engine-6ZXXNROB.mjs"),{findings:c,needsReview:l}=i(e.text,t);return{findings:w(c),needsReview:l}}if(e.languageId==="astro"){let{checkAstro:i}=await import("./engine-EIRLRZJL.mjs"),{findings:c,needsReview:l}=i(e.text,t);return{findings:w(c),needsReview:l}}if(!C(e))return{findings:[],needsReview:[]};if(e.languageId==="angular"||e.languageId==="typescript"){let{checkAngularTemplate:i,checkAngularComponents:c}=await import("./engine-BIE3PYS6.mjs"),l=e.languageId==="angular"?i:c,{findings:p,needsReview:u}=l(e.text,t);return{findings:w(p),needsReview:u}}if(e.languageId!=="html")return{findings:[],needsReview:[]};let{checkHtmlWithAxe:n,checkHtmlWithEslint:o}=await import("./engine-BXEHUF3N.mjs"),r=await n(e.text),a=o(e.text);return{findings:w([...r.findings,...G(r.findings,a)]),needsReview:r.needsReview}}function G(e,t){return t.filter(n=>!e.some(o=>H(o.range,n.range)&&o.criteria.some(r=>n.criteria.includes(r))))}function H(e,t){return e.start<t.end&&t.start<e.end||e.start===t.start}function w(e){return e.sort((t,n)=>t.range.start-n.range.start||t.range.end-n.range.end)}export{v as a,W as b,b as c,_ as d,ee as e,re as f,C as g,R as h,$ as i,te as j};
@@ -0,0 +1,2 @@
1
+ import { createRequire as __createRequire } from 'module'; const require = __createRequire(import.meta.url);
2
+ function f(n,c,t,d=!1){if(!t)return;let o=t.polymorphicPropName?c(t.polymorphicPropName):void 0,e=typeof o=="string"&&o?o:n,r=t.components??{},i=d&&/[A-Z-]/.test(e)?Object.keys(r).find(a=>p(a)===p(e)):Object.prototype.hasOwnProperty.call(r,e)?e:void 0,s=i===void 0?e:r[i];return s===n?void 0:s}function p(n){return n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}var m=new WeakMap;export{f as a,m as b};