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Q,EAAE,CAAC,EAAO,OAAO,CAAC,GAAe,EAAQ,EAAE,CAAC,EAAO,MAAM,CAAC,E,E,C,oB,Q,yB,Q,mB,O,E,C,M,C,S,C,C,C,C,C,C,C,ECH1uC,EAAO,OAAO,CAAI,EAAQ,mBAA+B,EAAQ,oBAA6B,OAAO,CAAC,UAAW,IAAI,CAAC,IAAM,EAAA,MAAA,CAAA,IAAA,CAAc,S,E,C,gB,Q,mB,O,E,E,E,C,E","sources":["<anon>","node_modules/@storybook/addon-a11y/preview.js","node_modules/@storybook/addon-a11y/dist/preview.js","node_modules/@parcel/runtime-js/lib/runtime-542c78bde24a38e8.js"],"sourcesContent":["// modules are defined as an array\n// [ module function, map of requires ]\n//\n// map of requires is short require name -> numeric require\n//\n// anything defined in a previous bundle is accessed via the\n// orig method which is the require for previous bundles\n\n(function (modules, entry, mainEntry, parcelRequireName, globalName) {\n /* eslint-disable no-undef */\n var globalObject =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\n /* eslint-enable no-undef */\n\n // Save the require from previous bundle to this closure if any\n var previousRequire =\n typeof globalObject[parcelRequireName] === 'function' &&\n globalObject[parcelRequireName];\n\n var cache = previousRequire.cache || {};\n // Do not use `require` to prevent Webpack from trying to bundle this call\n var nodeRequire =\n typeof module !== 'undefined' &&\n typeof module.require === 'function' &&\n module.require.bind(module);\n\n function newRequire(name, jumped) {\n if (!cache[name]) {\n if (!modules[name]) {\n // if we cannot find the module within our internal map or\n // cache jump to the current global require ie. the last bundle\n // that was added to the page.\n var currentRequire =\n typeof globalObject[parcelRequireName] === 'function' &&\n globalObject[parcelRequireName];\n if (!jumped && currentRequire) {\n return currentRequire(name, true);\n }\n\n // If there are other bundles on this page the require from the\n // previous one is saved to 'previousRequire'. Repeat this as\n // many times as there are bundles until the module is found or\n // we exhaust the require chain.\n if (previousRequire) {\n return previousRequire(name, true);\n }\n\n // Try the node require function if it exists.\n if (nodeRequire && typeof name === 'string') {\n return nodeRequire(name);\n }\n\n var err = new Error(\"Cannot find module '\" + name + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n }\n\n localRequire.resolve = resolve;\n localRequire.cache = {};\n\n var module = (cache[name] = new newRequire.Module(name));\n\n modules[name][0].call(\n module.exports,\n localRequire,\n module,\n module.exports,\n globalObject\n );\n }\n\n return cache[name].exports;\n\n function localRequire(x) {\n var res = localRequire.resolve(x);\n return res === false ? {} : newRequire(res);\n }\n\n function resolve(x) {\n var id = modules[name][1][x];\n return id != null ? id : x;\n }\n }\n\n function Module(moduleName) {\n this.id = moduleName;\n this.bundle = newRequire;\n this.exports = {};\n }\n\n newRequire.isParcelRequire = true;\n newRequire.Module = Module;\n newRequire.modules = modules;\n newRequire.cache = cache;\n newRequire.parent = previousRequire;\n newRequire.register = function (id, exports) {\n modules[id] = [\n function (require, module) {\n module.exports = exports;\n },\n {},\n ];\n };\n\n Object.defineProperty(newRequire, 'root', {\n get: function () {\n return globalObject[parcelRequireName];\n },\n });\n\n globalObject[parcelRequireName] = newRequire;\n\n for (var i = 0; i < entry.length; i++) {\n newRequire(entry[i]);\n }\n\n if (mainEntry) {\n // Expose entry point to Node, AMD or browser globals\n // Based on https://github.com/ForbesLindesay/umd/blob/master/template.js\n var mainExports = newRequire(mainEntry);\n\n // CommonJS\n if (typeof exports === 'object' && typeof module !== 'undefined') {\n module.exports = mainExports;\n\n // RequireJS\n } else if (typeof define === 'function' && define.amd) {\n define(function () {\n return mainExports;\n });\n\n // <script>\n } else if (globalName) {\n this[globalName] = mainExports;\n }\n }\n})({\"hEqeo\":[function(require,module,exports,__globalThis) {\nvar _preview = require(\"./dist/preview\");\n\n},{\"./dist/preview\":\"6MOiN\"}],\"6MOiN\":[function(require,module,exports,__globalThis) {\nvar _global = require(\"@storybook/global\");\nvar _previewApi = require(\"@storybook/preview-api\");\nvar ADDON_ID = \"storybook/a11y\";\nvar RESULT = `${ADDON_ID}/result`, REQUEST = `${ADDON_ID}/request`, RUNNING = `${ADDON_ID}/running`, ERROR = `${ADDON_ID}/error`, MANUAL = `${ADDON_ID}/manual`, EVENTS = {\n RESULT,\n REQUEST,\n RUNNING,\n ERROR,\n MANUAL\n};\nvar { document, window: globalWindow } = (0, _global.global), channel = (0, _previewApi.addons).getChannel(), active = !1, activeStoryId, handleRequest = async (storyId)=>{\n let { manual } = await getParams(storyId);\n manual || await run(storyId);\n}, run = async (storyId)=>{\n activeStoryId = storyId;\n try {\n let input = await getParams(storyId);\n if (!active) {\n active = !0, channel.emit(EVENTS.RUNNING);\n let axe = (await require(\"89abf3a7c3a87096\")).default || await require(\"89abf3a7c3a87096\"), { element = \"#storybook-root\", config, options = {} } = input, htmlElement = document.querySelector(element);\n if (!htmlElement) return;\n axe.reset(), config && axe.configure(config);\n let result = await axe.run(htmlElement, options), resultJson = JSON.parse(JSON.stringify(result));\n activeStoryId === storyId ? channel.emit(EVENTS.RESULT, resultJson) : (active = !1, run(activeStoryId));\n }\n } catch (error) {\n channel.emit(EVENTS.ERROR, error);\n } finally{\n active = !1;\n }\n}, getParams = async (storyId)=>{\n let { parameters } = await globalWindow.__STORYBOOK_STORY_STORE__.loadStory({\n storyId\n }) || {};\n return parameters.a11y || {\n config: {},\n options: {}\n };\n};\nchannel.on(EVENTS.REQUEST, handleRequest);\nchannel.on(EVENTS.MANUAL, run);\n\n},{\"@storybook/global\":\"4g4co\",\"@storybook/preview-api\":\"uDWyg\",\"89abf3a7c3a87096\":\"VUULW\"}],\"VUULW\":[function(require,module,exports,__globalThis) {\nmodule.exports = require(\"abce95a39e388d5\")(require(\"33bdd0cd44be8db4\").resolve(\"4XQMl\")).then(()=>module.bundle.root('d0iPb'));\n\n},{\"abce95a39e388d5\":\"bvDWj\",\"33bdd0cd44be8db4\":\"kK08P\"}]},[], null, \"parcelRequire94c2\")\n\n//# sourceMappingURL=preview.977feb29.js.map\n","import './dist/preview';\n","import { global } from '@storybook/global';\nimport { addons } from '@storybook/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,window:globalWindow}=global,channel=addons.getChannel(),active=!1,activeStoryId,handleRequest=async storyId=>{let{manual}=await getParams(storyId);manual||await run(storyId);},run=async storyId=>{activeStoryId=storyId;try{let input=await getParams(storyId);if(!active){active=!0,channel.emit(EVENTS.RUNNING);let axe=(await import('axe-core')).default || (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;}},getParams=async storyId=>{let{parameters}=await globalWindow.__STORYBOOK_STORY_STORE__.loadStory({storyId})||{};return parameters.a11y||{config:{},options:{}}};channel.on(EVENTS.REQUEST,handleRequest);channel.on(EVENTS.MANUAL,run);\n","module.exports = (require(\"./helpers/browser/js-loader\")(require('./helpers/bundle-manifest').resolve(\"4XQMl\"))).then(() => parcelRequire('d0iPb'));"],"names":["modules","entry","mainEntry","parcelRequireName","globalName","globalObject","globalThis","self","window","global","previousRequire","cache","nodeRequire","module","require","bind","newRequire","name","jumped","currentRequire","err","Error","code","localRequire","resolve","x","id","Module","call","exports","res","isParcelRequire","moduleName","bundle","parent","register","Object","defineProperty","get","i","length","__globalThis","activeStoryId","_global","_previewApi","ADDON_ID","RESULT","REQUEST","EVENTS","RUNNING","ERROR","MANUAL","document","globalWindow","channel","addons","getChannel","active","handleRequest","storyId","manual","getParams","run","input","emit","axe","default","element","config","options","htmlElement","querySelector","reset","configure","result","resultJson","JSON","parse","stringify","error","parameters","__STORYBOOK_STORY_STORE__","loadStory","a11y","on","then","root"],"version":3,"file":"preview.977feb29.js.map"}