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AAC,OAAOc,EAAM,CAAChB,EAAQ,KAAKF,EAAO,MAAMkB,CAAK,CAAE,QAAC,CAAQf,EAAO,EAAG,CAAC,EAAED,EAAQ,GAAGF,EAAO,QAAQM,CAAa,EAAEJ,EAAQ,GAAGF,EAAO,OAAOS,CAAG","names":["global","addons","ADDON_ID","RESULT","REQUEST","RUNNING","ERROR","MANUAL","EVENTS","document","channel","active","activeStoryId","defaultParameters","handleRequest","storyId","input","run","axe","__vitePreload","element","config","options","htmlElement","result","resultJson","error"],"ignoreList":[0],"sources":["../../node_modules/@storybook/addon-a11y/dist/preview.mjs"],"sourcesContent":["import { global } from '@storybook/global';\nimport { addons } from 'storybook/internal/preview-api';\n\nvar ADDON_ID=\"storybook/a11y\";var RESULT=`${ADDON_ID}/result`,REQUEST=`${ADDON_ID}/request`,RUNNING=`${ADDON_ID}/running`,ERROR=`${ADDON_ID}/error`,MANUAL=`${ADDON_ID}/manual`,EVENTS={RESULT,REQUEST,RUNNING,ERROR,MANUAL};var{document}=global,channel=addons.getChannel(),active=!1,activeStoryId,defaultParameters={config:{},options:{}},handleRequest=async(storyId,input)=>{input?.manual||await run(storyId,input??defaultParameters);},run=async(storyId,input=defaultParameters)=>{activeStoryId=storyId;try{if(!active){active=!0,channel.emit(EVENTS.RUNNING);let{default:axe}=await import('axe-core'),{element=\"#storybook-root\",config,options={}}=input,htmlElement=document.querySelector(element);if(!htmlElement)return;axe.reset(),config&&axe.configure(config);let result=await axe.run(htmlElement,options),resultJson=JSON.parse(JSON.stringify(result));activeStoryId===storyId?channel.emit(EVENTS.RESULT,resultJson):(active=!1,run(activeStoryId));}}catch(error){channel.emit(EVENTS.ERROR,error);}finally{active=!1;}};channel.on(EVENTS.REQUEST,handleRequest);channel.on(EVENTS.MANUAL,run);\n"],"file":"assets/preview-DWxpc2Uv.js"}