@brightspot/ui 1.0.1-1 → 1.0.1-2
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 -3
- package/dist/storybook/assets/Badge.stories-DwfG5f7M.js +9 -0
- package/dist/storybook/assets/Button.stories-DkvLsiV0.js +10 -0
- package/dist/storybook/assets/Color-AVL7NMMY-BIg4nOaS.js +1 -0
- package/dist/storybook/assets/Colors.stories-DrTye89i.js +79 -0
- package/dist/storybook/assets/DocsRenderer-PQXLIZUC-CFSKbvBi.js +1286 -0
- package/dist/storybook/assets/Heading.stories-DNzV_PFr.js +3 -0
- package/dist/storybook/assets/Icon.stories-DSVGZXEi.js +36503 -0
- package/dist/storybook/assets/Loader.stories-Bm78EJ3R.js +7 -0
- package/dist/storybook/assets/ScrollShadow.stories-wVkA59sk.js +17 -0
- package/dist/storybook/assets/iframe-0P_LP1rU.js +1057 -0
- package/dist/storybook/assets/iframe-C4xnS1ct.css +1 -0
- package/dist/storybook/assets/index-Cz0Nn1TR.js +1 -0
- package/dist/storybook/assets/preload-helper-PPVm8Dsz.js +1 -0
- package/dist/storybook/favicon-wrapper.svg +46 -0
- package/dist/storybook/favicon.svg +1 -1
- package/dist/storybook/iframe.html +221 -45
- package/dist/storybook/index.html +21 -42
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/dist/storybook/sb-addons/docs-1/manager-bundle.js +151 -0
- package/dist/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +971 -0
- package/dist/storybook/sb-common-assets/favicon-wrapper.svg +46 -0
- package/dist/storybook/sb-common-assets/favicon.svg +1 -1
- package/dist/storybook/sb-manager/globals-module-info.js +277 -532
- package/dist/storybook/sb-manager/globals-runtime.js +54678 -27126
- package/dist/storybook/sb-manager/globals.js +11 -25
- package/dist/storybook/sb-manager/runtime.js +6270 -5123
- package/dist/storybook/vite-inject-mocker-entry.js +18 -0
- package/dist/tailwind-plugin-button.js +1 -1
- package/dist/tailwind-plugin-button.ts +1 -1
- package/dist/tailwind.config.js +9 -2
- package/dist/tailwind.config.ts +10 -3
- package/package.json +7 -10
- package/dist/storybook/342.9186a774.iframe.bundle.js +0 -2
- package/dist/storybook/342.9186a774.iframe.bundle.js.LICENSE.txt +0 -6
- package/dist/storybook/364.84b2a293.iframe.bundle.js +0 -1
- package/dist/storybook/648.0f339b09.iframe.bundle.js +0 -1
- package/dist/storybook/689.bf58321f.iframe.bundle.js +0 -95
- package/dist/storybook/689.bf58321f.iframe.bundle.js.LICENSE.txt +0 -39
- package/dist/storybook/689.bf58321f.iframe.bundle.js.map +0 -1
- package/dist/storybook/906.a03add0d.iframe.bundle.js +0 -405
- package/dist/storybook/906.a03add0d.iframe.bundle.js.LICENSE.txt +0 -17
- package/dist/storybook/906.a03add0d.iframe.bundle.js.map +0 -1
- package/dist/storybook/936.31ecad10.iframe.bundle.js +0 -1
- package/dist/storybook/980.2bfde12a.iframe.bundle.js +0 -1
- package/dist/storybook/main.bf66fbbb.iframe.bundle.js +0 -1
- package/dist/storybook/runtime~main.7d6d5df6.iframe.bundle.js +0 -1
- package/dist/storybook/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
- package/dist/storybook/sb-addons/essentials-backgrounds-4/manager-bundle.js +0 -12
- package/dist/storybook/sb-addons/essentials-controls-1/manager-bundle.js +0 -402
- package/dist/storybook/sb-addons/essentials-docs-3/manager-bundle.js +0 -242
- package/dist/storybook/sb-addons/essentials-measure-7/manager-bundle.js +0 -3
- package/dist/storybook/sb-addons/essentials-outline-8/manager-bundle.js +0 -3
- package/dist/storybook/sb-addons/essentials-toolbars-6/manager-bundle.js +0 -3
- package/dist/storybook/sb-addons/essentials-viewport-5/manager-bundle.js +0 -3
- package/dist/storybook/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
- package/dist/storybook/sb-preview/globals.js +0 -33
- package/dist/storybook/sb-preview/runtime.js +0 -7745
- package/dist/storybook/stories-Badge-stories.52b61cf3.iframe.bundle.js +0 -8
- package/dist/storybook/stories-Badge-stories.52b61cf3.iframe.bundle.js.map +0 -1
- package/dist/storybook/stories-Button-stories.777d0529.iframe.bundle.js +0 -9
- package/dist/storybook/stories-Button-stories.777d0529.iframe.bundle.js.map +0 -1
- package/dist/storybook/stories-Colors-stories.927fecc8.iframe.bundle.js +0 -31
- package/dist/storybook/stories-Colors-stories.927fecc8.iframe.bundle.js.map +0 -1
- package/dist/storybook/stories-Heading-stories.b41961f8.iframe.bundle.js +0 -1
- package/dist/storybook/stories-Icon-stories.f2eb249f.iframe.bundle.js +0 -8
- package/dist/storybook/stories-Icon-stories.f2eb249f.iframe.bundle.js.map +0 -1
- package/dist/storybook/stories-Loader-stories.cd5e8fb5.iframe.bundle.js +0 -6
- package/dist/storybook/stories-Loader-stories.cd5e8fb5.iframe.bundle.js.map +0 -1
- package/dist/storybook/stories-ScrollShadow-stories.ddf1e99b.iframe.bundle.js +0 -16
- package/dist/storybook/stories-ScrollShadow-stories.ddf1e99b.iframe.bundle.js.map +0 -1
- /package/dist/storybook/{static/media/lucide.9ad12842.woff2 → assets/lucide-CCppEgWm.woff2} +0 -0
|
@@ -0,0 +1,1057 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Badge.stories-DwfG5f7M.js","./preload-helper-PPVm8Dsz.js","./Button.stories-DkvLsiV0.js","./Colors.stories-DrTye89i.js","./Heading.stories-DNzV_PFr.js","./Icon.stories-DSVGZXEi.js","./Loader.stories-Bm78EJ3R.js","./ScrollShadow.stories-wVkA59sk.js","./DocsRenderer-PQXLIZUC-CFSKbvBi.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as Sr}from"./preload-helper-PPVm8Dsz.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var Xu={},zq=Object.create,Xa=Object.defineProperty,Wq=Object.getOwnPropertyDescriptor,Gq=Object.getOwnPropertyNames,Kq=Object.getPrototypeOf,Yq=Object.prototype.hasOwnProperty,a=(e,t)=>Xa(e,"name",{value:t,configurable:!0}),Ti=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Xq=(e,t)=>()=>(e&&(t=e(e=0)),t),S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ut=(e,t)=>{for(var r in t)Xa(e,r,{get:t[r],enumerable:!0})},Mg=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Gq(t))!Yq.call(e,o)&&o!==r&&Xa(e,o,{get:()=>t[o],enumerable:!(n=Wq(t,o))||n.enumerable});return e},He=(e,t,r)=>(r=e!=null?zq(Kq(e)):{},Mg(t||!e||!e.__esModule?Xa(r,"default",{value:e,enumerable:!0}):r,e)),Qq=e=>Mg(Xa({},"__esModule",{value:!0}),e),Zq=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=(function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,i){return a(function s(l,c,u){var d,p,h,f=t.call(l),m=t.call(c);if(l===c)return!0;if(l==null||c==null)return!1;if(u.indexOf(l)>-1&&u.indexOf(c)>-1)return!0;if(u.push(l,c),f!=m||(d=n(l),p=n(c),d.length!=p.length||d.some(function(b){return!s(l[b],c[b],u)})))return!1;switch(f.slice(8,-1)){case"Symbol":return l.valueOf()==c.valueOf();case"Date":case"Number":return+l==+c||+l!=+l&&+c!=+c;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+c;case"Set":case"Map":d=l.entries(),p=c.entries();do if(!s((h=d.next()).value,p.next().value,u))return!1;while(!h.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),c=new Uint8Array(c);case"DataView":l=new Uint8Array(l.buffer),c=new Uint8Array(c.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=c.length)return!1;for(h=0;h<l.length;h++)if((h in l||h in c)&&(h in l!=h in c||!s(l[h],c[h],u)))return!1;return!0;case"Object":return s(r(l),r(c),u);default:return!1}},"n")(o,i,[])}})()}),eN=S((e,t)=>{t.exports=r=>{let n=r.match(/^[ \t]*(?=\S)/gm);return n?n.reduce((o,i)=>Math.min(o,i.length),1/0):0}}),tN=S((e,t)=>{var r=eN();t.exports=n=>{let o=r(n);if(o===0)return n;let i=new RegExp(`^[ \\t]{${o}}`,"gm");return n.replace(i,"")}}),rN=S((e,t)=>{t.exports=(r,n=1,o)=>{if(o={indent:" ",includeEmptyLines:!1,...o},typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof n!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof n}\``);if(typeof o.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof o.indent}\``);if(n===0)return r;let i=o.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return r.replace(i,o.indent.repeat(n))}}),$g=S((e,t)=>{var r=tN(),n=rN();t.exports=(o,i=0,s)=>n(r(o),i,s)}),nN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(){var r=this,n=0,o={"@@iterator":a(function(){return o},"iterator"),next:a(function(){if(n<r.length){var i=r[n];return n=n+1,{done:!1,value:i}}else return{done:!0}},"next")};return o}a(t,"iteratorProxy"),e.default=t}),Qa=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=r(nN());function r(i){return i&&i.__esModule?i:{default:i}}a(r,"_interopRequireDefault");function n(i){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},n(i)}a(n,"_typeof");function o(i,s){return typeof Symbol=="function"&&n(Symbol.iterator)==="symbol"&&Object.defineProperty(i,Symbol.iterator,{value:t.default.bind(s)}),i}a(o,"iterationDecorator")}),oN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Qa());function r(p){return p&&p.__esModule?p:{default:p}}a(r,"_interopRequireDefault");function n(p,h){return c(p)||l(p,h)||i(p,h)||o()}a(n,"_slicedToArray");function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}a(o,"_nonIterableRest");function i(p,h){if(p){if(typeof p=="string")return s(p,h);var f={}.toString.call(p).slice(8,-1);return f==="Object"&&p.constructor&&(f=p.constructor.name),f==="Map"||f==="Set"?Array.from(p):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?s(p,h):void 0}}a(i,"_unsupportedIterableToArray");function s(p,h){(h==null||h>p.length)&&(h=p.length);for(var f=0,m=Array(h);f<h;f++)m[f]=p[f];return m}a(s,"_arrayLikeToArray");function l(p,h){var f=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(f!=null){var m,b,g,v,w=[],P=!0,A=!1;try{if(g=(f=f.call(p)).next,h===0){if(Object(f)!==f)return;P=!1}else for(;!(P=(m=g.call(f)).done)&&(w.push(m.value),w.length!==h);P=!0);}catch(R){A=!0,b=R}finally{try{if(!P&&f.return!=null&&(v=f.return(),Object(v)!==v))return}finally{if(A)throw b}}return w}}a(l,"_iterableToArrayLimit");function c(p){if(Array.isArray(p))return p}a(c,"_arrayWithHoles");var u=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],d={entries:a(function(){return u},"entries"),forEach:a(function(p){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,f=0,m=u;f<m.length;f++){var b=n(m[f],2),g=b[0],v=b[1];p.call(h,v,g,u)}},"forEach"),get:a(function(p){var h=u.filter(function(f){return f[0]===p})[0];return h&&h[1]},"get"),has:a(function(p){return!!d.get(p)},"has"),keys:a(function(){return u.map(function(p){var h=n(p,1),f=h[0];return f})},"keys"),values:a(function(){return u.map(function(p){var h=n(p,2),f=h[1];return f})},"values")};e.default=(0,t.default)(d,d.entries())}),aN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Qa());function r(p){return p&&p.__esModule?p:{default:p}}a(r,"_interopRequireDefault");function n(p,h){return c(p)||l(p,h)||i(p,h)||o()}a(n,"_slicedToArray");function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}a(o,"_nonIterableRest");function i(p,h){if(p){if(typeof p=="string")return s(p,h);var f={}.toString.call(p).slice(8,-1);return f==="Object"&&p.constructor&&(f=p.constructor.name),f==="Map"||f==="Set"?Array.from(p):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?s(p,h):void 0}}a(i,"_unsupportedIterableToArray");function s(p,h){(h==null||h>p.length)&&(h=p.length);for(var f=0,m=Array(h);f<h;f++)m[f]=p[f];return m}a(s,"_arrayLikeToArray");function l(p,h){var f=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(f!=null){var m,b,g,v,w=[],P=!0,A=!1;try{if(g=(f=f.call(p)).next,h===0){if(Object(f)!==f)return;P=!1}else for(;!(P=(m=g.call(f)).done)&&(w.push(m.value),w.length!==h);P=!0);}catch(R){A=!0,b=R}finally{try{if(!P&&f.return!=null&&(v=f.return(),Object(v)!==v))return}finally{if(A)throw b}}return w}}a(l,"_iterableToArrayLimit");function c(p){if(Array.isArray(p))return p}a(c,"_arrayWithHoles");var u=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],d={entries:a(function(){return u},"entries"),forEach:a(function(p){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,f=0,m=u;f<m.length;f++){var b=n(m[f],2),g=b[0],v=b[1];p.call(h,v,g,u)}},"forEach"),get:a(function(p){var h=u.filter(function(f){return f[0]===p})[0];return h&&h[1]},"get"),has:a(function(p){return!!d.get(p)},"has"),keys:a(function(){return u.map(function(p){var h=n(p,1),f=h[0];return f})},"keys"),values:a(function(){return u.map(function(p){var h=n(p,2),f=h[1];return f})},"values")};e.default=(0,t.default)(d,d.entries())}),iN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}),sN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}),lN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}),uN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),cN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}),dN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};e.default=t}),pN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}),fN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}),hN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]};e.default=t}),mN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}),yN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}),bN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}),gN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=f(iN()),r=f(sN()),n=f(lN()),o=f(uN()),i=f(cN()),s=f(dN()),l=f(pN()),c=f(fN()),u=f(hN()),d=f(mN()),p=f(yN()),h=f(bN());function f(b){return b&&b.__esModule?b:{default:b}}a(f,"_interopRequireDefault");var m=[["command",t.default],["composite",r.default],["input",n.default],["landmark",o.default],["range",i.default],["roletype",s.default],["section",l.default],["sectionhead",c.default],["select",u.default],["structure",d.default],["widget",p.default],["window",h.default]];e.default=m}),vN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),wN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]};e.default=t}),EN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}),xN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]};e.default=t}),TN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),SN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),CN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};e.default=t}),PN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),ON=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),_N=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]};e.default=t}),AN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),RN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]};e.default=t}),qN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]};e.default=t}),NN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element","scoped to the main element"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),IN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),jN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),kN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),MN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]};e.default=t}),$N=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]};e.default=t}),LN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}),DN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),FN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]};e.default=t}),BN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),UN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),HN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}),VN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]};e.default=t}),JN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]};e.default=t}),zN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),WN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]};e.default=t}),GN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),KN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),YN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};e.default=t}),XN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),QN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}),ZN=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),eI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),tI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),rI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),nI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),oI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),aI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}),iI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]};e.default=t}),sI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};e.default=t}),lI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]};e.default=t}),uI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]};e.default=t}),cI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]};e.default=t}),dI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),pI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};e.default=t}),fI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),hI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]};e.default=t}),mI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),yI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}),bI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]};e.default=t}),gI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]};e.default=t}),vI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}),wI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),EI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]};e.default=t}),xI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}),TI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]};e.default=t}),SI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]};e.default=t}),CI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),PI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]};e.default=t}),OI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}),_I=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]};e.default=t}),AI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]};e.default=t}),RI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),qI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),NI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),II=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),jI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]};e.default=t}),kI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]};e.default=t}),MI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),$I=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]};e.default=t}),LI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),DI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),FI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]};e.default=t}),BI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),UI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]};e.default=t}),HI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]};e.default=t}),VI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),JI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}),zI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]};e.default=t}),WI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]};e.default=t}),GI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=H(vN()),r=H(wN()),n=H(EN()),o=H(xN()),i=H(TN()),s=H(SN()),l=H(CN()),c=H(PN()),u=H(ON()),d=H(_N()),p=H(AN()),h=H(RN()),f=H(qN()),m=H(NN()),b=H(IN()),g=H(jN()),v=H(kN()),w=H(MN()),P=H($N()),A=H(LN()),R=H(DN()),T=H(FN()),E=H(BN()),x=H(UN()),C=H(HN()),k=H(VN()),N=H(JN()),U=H(zN()),D=H(WN()),O=H(GN()),M=H(KN()),$=H(YN()),K=H(XN()),G=H(QN()),re=H(ZN()),ae=H(eI()),Z=H(tI()),W=H(rI()),z=H(nI()),Y=H(oI()),ne=H(aI()),X=H(iI()),se=H(sI()),ce=H(lI()),Me=H(uI()),Ve=H(cI()),F=H(dI()),Q=H(pI()),oe=H(fI()),ue=H(hI()),ie=H(mI()),de=H(yI()),pe=H(bI()),Pe=H(gI()),$e=H(vI()),st=H(wI()),St=H(EI()),nt=H(xI()),pt=H(TI()),ft=H(SI()),ht=H(CI()),jn=H(PI()),Do=H(OI()),kn=H(_I()),Fo=H(AI()),Bo=H(RI()),Uo=H(qI()),Mn=H(NI()),Ho=H(II()),Vo=H(jI()),Jo=H(kI()),zo=H(MI()),Wo=H($I()),Go=H(LI()),Ko=H(DI()),Yo=H(FI()),Xo=H(BI()),Kr=H(UI()),$n=H(HI()),Bt=H(VI()),Ue=H(JI()),Yr=H(zI()),tr=H(WI());function H(xr){return xr&&xr.__esModule?xr:{default:xr}}a(H,"_interopRequireDefault");var Xr=[["alert",t.default],["alertdialog",r.default],["application",n.default],["article",o.default],["banner",i.default],["blockquote",s.default],["button",l.default],["caption",c.default],["cell",u.default],["checkbox",d.default],["code",p.default],["columnheader",h.default],["combobox",f.default],["complementary",m.default],["contentinfo",b.default],["definition",g.default],["deletion",v.default],["dialog",w.default],["directory",P.default],["document",A.default],["emphasis",R.default],["feed",T.default],["figure",E.default],["form",x.default],["generic",C.default],["grid",k.default],["gridcell",N.default],["group",U.default],["heading",D.default],["img",O.default],["insertion",M.default],["link",$.default],["list",K.default],["listbox",G.default],["listitem",re.default],["log",ae.default],["main",Z.default],["mark",W.default],["marquee",z.default],["math",Y.default],["menu",ne.default],["menubar",X.default],["menuitem",se.default],["menuitemcheckbox",ce.default],["menuitemradio",Me.default],["meter",Ve.default],["navigation",F.default],["none",Q.default],["note",oe.default],["option",ue.default],["paragraph",ie.default],["presentation",de.default],["progressbar",pe.default],["radio",Pe.default],["radiogroup",$e.default],["region",st.default],["row",St.default],["rowgroup",nt.default],["rowheader",pt.default],["scrollbar",ft.default],["search",ht.default],["searchbox",jn.default],["separator",Do.default],["slider",kn.default],["spinbutton",Fo.default],["status",Bo.default],["strong",Uo.default],["subscript",Mn.default],["superscript",Ho.default],["switch",Vo.default],["tab",Jo.default],["table",zo.default],["tablist",Wo.default],["tabpanel",Go.default],["term",Ko.default],["textbox",Yo.default],["time",Xo.default],["timer",Kr.default],["toolbar",$n.default],["tooltip",Bt.default],["tree",Ue.default],["treegrid",Yr.default],["treeitem",tr.default]];e.default=Xr}),KI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),YI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),XI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),QI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),ZI=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}),ej=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]};e.default=t}),tj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),rj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}),nj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),oj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),aj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),ij=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]};e.default=t}),sj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),lj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),uj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),cj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]};e.default=t}),dj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),pj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),fj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),hj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),mj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),yj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),bj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),gj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),vj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}),wj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};e.default=t}),Ej=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),xj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}),Tj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]};e.default=t}),Sj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]};e.default=t}),Cj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),Pj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),Oj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};e.default=t}),_j=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),Aj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),Rj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),qj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]};e.default=t}),Nj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),Ij=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]};e.default=t}),jj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]};e.default=t}),kj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};e.default=t}),Mj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=X(KI()),r=X(YI()),n=X(XI()),o=X(QI()),i=X(ZI()),s=X(ej()),l=X(tj()),c=X(rj()),u=X(nj()),d=X(oj()),p=X(aj()),h=X(ij()),f=X(sj()),m=X(lj()),b=X(uj()),g=X(cj()),v=X(dj()),w=X(pj()),P=X(fj()),A=X(hj()),R=X(mj()),T=X(yj()),E=X(bj()),x=X(gj()),C=X(vj()),k=X(wj()),N=X(Ej()),U=X(xj()),D=X(Tj()),O=X(Sj()),M=X(Cj()),$=X(Pj()),K=X(Oj()),G=X(_j()),re=X(Aj()),ae=X(Rj()),Z=X(qj()),W=X(Nj()),z=X(Ij()),Y=X(jj()),ne=X(kj());function X(ce){return ce&&ce.__esModule?ce:{default:ce}}a(X,"_interopRequireDefault");var se=[["doc-abstract",t.default],["doc-acknowledgments",r.default],["doc-afterword",n.default],["doc-appendix",o.default],["doc-backlink",i.default],["doc-biblioentry",s.default],["doc-bibliography",l.default],["doc-biblioref",c.default],["doc-chapter",u.default],["doc-colophon",d.default],["doc-conclusion",p.default],["doc-cover",h.default],["doc-credit",f.default],["doc-credits",m.default],["doc-dedication",b.default],["doc-endnote",g.default],["doc-endnotes",v.default],["doc-epigraph",w.default],["doc-epilogue",P.default],["doc-errata",A.default],["doc-example",R.default],["doc-footnote",T.default],["doc-foreword",E.default],["doc-glossary",x.default],["doc-glossref",C.default],["doc-index",k.default],["doc-introduction",N.default],["doc-noteref",U.default],["doc-notice",D.default],["doc-pagebreak",O.default],["doc-pagefooter",M.default],["doc-pageheader",$.default],["doc-pagelist",K.default],["doc-part",G.default],["doc-preface",re.default],["doc-prologue",ae.default],["doc-pullquote",Z.default],["doc-qna",W.default],["doc-subtitle",z.default],["doc-tip",Y.default],["doc-toc",ne.default]];e.default=se}),$j=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]};e.default=t}),Lj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]};e.default=t}),Dj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]};e.default=t}),Fj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o($j()),r=o(Lj()),n=o(Dj());function o(s){return s&&s.__esModule?s:{default:s}}a(o,"_interopRequireDefault");var i=[["graphics-document",t.default],["graphics-object",r.default],["graphics-symbol",n.default]];e.default=i}),Kd=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=s(gN()),r=s(GI()),n=s(Mj()),o=s(Fj()),i=s(Qa());function s(g){return g&&g.__esModule?g:{default:g}}a(s,"_interopRequireDefault");function l(g,v){var w=typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(!w){if(Array.isArray(g)||(w=d(g))||v&&g&&typeof g.length=="number"){w&&(g=w);var P=0,A=a(function(){},"F");return{s:A,n:a(function(){return P>=g.length?{done:!0}:{done:!1,value:g[P++]}},"n"),e:a(function(x){throw x},"e"),f:A}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var R,T=!0,E=!1;return{s:a(function(){w=w.call(g)},"s"),n:a(function(){var x=w.next();return T=x.done,x},"n"),e:a(function(x){E=!0,R=x},"e"),f:a(function(){try{T||w.return==null||w.return()}finally{if(E)throw R}},"f")}}a(l,"_createForOfIteratorHelper");function c(g,v){return f(g)||h(g,v)||d(g,v)||u()}a(c,"_slicedToArray");function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}a(u,"_nonIterableRest");function d(g,v){if(g){if(typeof g=="string")return p(g,v);var w={}.toString.call(g).slice(8,-1);return w==="Object"&&g.constructor&&(w=g.constructor.name),w==="Map"||w==="Set"?Array.from(g):w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?p(g,v):void 0}}a(d,"_unsupportedIterableToArray");function p(g,v){(v==null||v>g.length)&&(v=g.length);for(var w=0,P=Array(v);w<v;w++)P[w]=g[w];return P}a(p,"_arrayLikeToArray");function h(g,v){var w=g==null?null:typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(w!=null){var P,A,R,T,E=[],x=!0,C=!1;try{if(R=(w=w.call(g)).next,v===0){if(Object(w)!==w)return;x=!1}else for(;!(x=(P=R.call(w)).done)&&(E.push(P.value),E.length!==v);x=!0);}catch(k){C=!0,A=k}finally{try{if(!x&&w.return!=null&&(T=w.return(),Object(T)!==T))return}finally{if(C)throw A}}return E}}a(h,"_iterableToArrayLimit");function f(g){if(Array.isArray(g))return g}a(f,"_arrayWithHoles");var m=[].concat(t.default,r.default,n.default,o.default);m.forEach(function(g){var v=c(g,2),w=v[1],P=l(w.superClass),A;try{for(P.s();!(A=P.n()).done;){var R=A.value,T=l(R),E;try{var x=a(function(){var C=E.value,k=m.filter(function(M){var $=c(M,1),K=$[0];return K===C})[0];if(k)for(var N=k[1],U=0,D=Object.keys(N.props);U<D.length;U++){var O=D[U];Object.prototype.hasOwnProperty.call(w.props,O)||(w.props[O]=N.props[O])}},"_loop");for(T.s();!(E=T.n()).done;)x()}catch(C){T.e(C)}finally{T.f()}}}catch(C){P.e(C)}finally{P.f()}});var b={entries:a(function(){return m},"entries"),forEach:a(function(g){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,w=l(m),P;try{for(w.s();!(P=w.n()).done;){var A=c(P.value,2),R=A[0],T=A[1];g.call(v,T,R,m)}}catch(E){w.e(E)}finally{w.f()}},"forEach"),get:a(function(g){var v=m.filter(function(w){return w[0]===g})[0];return v&&v[1]},"get"),has:a(function(g){return!!b.get(g)},"has"),keys:a(function(){return m.map(function(g){var v=c(g,1),w=v[0];return w})},"keys"),values:a(function(){return m.map(function(g){var v=c(g,2),w=v[1];return w})},"values")};e.default=(0,i.default)(b,b.entries())}),Bj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Qa()),r=n(Kd());function n(T){return T&&T.__esModule?T:{default:T}}a(n,"_interopRequireDefault");function o(T,E){return u(T)||c(T,E)||s(T,E)||i()}a(o,"_slicedToArray");function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}a(i,"_nonIterableRest");function s(T,E){if(T){if(typeof T=="string")return l(T,E);var x={}.toString.call(T).slice(8,-1);return x==="Object"&&T.constructor&&(x=T.constructor.name),x==="Map"||x==="Set"?Array.from(T):x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x)?l(T,E):void 0}}a(s,"_unsupportedIterableToArray");function l(T,E){(E==null||E>T.length)&&(E=T.length);for(var x=0,C=Array(E);x<E;x++)C[x]=T[x];return C}a(l,"_arrayLikeToArray");function c(T,E){var x=T==null?null:typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if(x!=null){var C,k,N,U,D=[],O=!0,M=!1;try{if(N=(x=x.call(T)).next,E===0){if(Object(x)!==x)return;O=!1}else for(;!(O=(C=N.call(x)).done)&&(D.push(C.value),D.length!==E);O=!0);}catch($){M=!0,k=$}finally{try{if(!O&&x.return!=null&&(U=x.return(),Object(U)!==U))return}finally{if(M)throw k}}return D}}a(c,"_iterableToArrayLimit");function u(T){if(Array.isArray(T))return T}a(u,"_arrayWithHoles");var d=[],p=r.default.keys();for(v=0;v<p.length;v++)if(h=p[v],f=r.default.get(h),f)for(m=[].concat(f.baseConcepts,f.relatedConcepts),b=a(function(){var T=m[g];if(T.module==="HTML"){var E=T.concept;if(E){var x=d.filter(function(U){return P(U[0],E)})[0],C;x?C=x[1]:C=[];for(var k=!0,N=0;N<C.length;N++)if(C[N]===h){k=!1;break}k&&C.push(h),x||d.push([E,C])}}},"_loop"),g=0;g<m.length;g++)b();var h,f,m,b,g,v,w={entries:a(function(){return d},"entries"),forEach:a(function(T){for(var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,x=0,C=d;x<C.length;x++){var k=o(C[x],2),N=k[0],U=k[1];T.call(E,U,N,d)}},"forEach"),get:a(function(T){var E=d.filter(function(x){return T.name===x[0].name&&R(T.attributes,x[0].attributes)})[0];return E&&E[1]},"get"),has:a(function(T){return!!w.get(T)},"has"),keys:a(function(){return d.map(function(T){var E=o(T,1),x=E[0];return x})},"keys"),values:a(function(){return d.map(function(T){var E=o(T,2),x=E[1];return x})},"values")};function P(T,E){return T.name===E.name&&A(T.constraints,E.constraints)&&R(T.attributes,E.attributes)}a(P,"ariaRoleRelationConceptEquals");function A(T,E){if(T===void 0&&E!==void 0||T!==void 0&&E===void 0)return!1;if(T!==void 0&&E!==void 0){if(T.length!==E.length)return!1;for(var x=0;x<T.length;x++)if(T[x]!==E[x])return!1}return!0}a(A,"ariaRoleRelationConstraintsEquals");function R(T,E){if(T===void 0&&E!==void 0||T!==void 0&&E===void 0)return!1;if(T!==void 0&&E!==void 0){if(T.length!==E.length)return!1;for(var x=0;x<T.length;x++){if(T[x].name!==E[x].name||T[x].value!==E[x].value||T[x].constraints===void 0&&E[x].constraints!==void 0||T[x].constraints!==void 0&&E[x].constraints===void 0)return!1;if(T[x].constraints!==void 0&&E[x].constraints!==void 0){if(T[x].constraints.length!==E[x].constraints.length)return!1;for(var C=0;C<T[x].constraints.length;C++)if(T[x].constraints[C]!==E[x].constraints[C])return!1}}}return!0}a(R,"ariaRoleRelationConceptAttributeEquals"),e.default=(0,t.default)(w,w.entries())}),Uj=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Qa()),r=n(Kd());function n(R){return R&&R.__esModule?R:{default:R}}a(n,"_interopRequireDefault");function o(R,T){return u(R)||c(R,T)||s(R,T)||i()}a(o,"_slicedToArray");function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}a(i,"_nonIterableRest");function s(R,T){if(R){if(typeof R=="string")return l(R,T);var E={}.toString.call(R).slice(8,-1);return E==="Object"&&R.constructor&&(E=R.constructor.name),E==="Map"||E==="Set"?Array.from(R):E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E)?l(R,T):void 0}}a(s,"_unsupportedIterableToArray");function l(R,T){(T==null||T>R.length)&&(T=R.length);for(var E=0,x=Array(T);E<T;E++)x[E]=R[E];return x}a(l,"_arrayLikeToArray");function c(R,T){var E=R==null?null:typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(E!=null){var x,C,k,N,U=[],D=!0,O=!1;try{if(k=(E=E.call(R)).next,T===0){if(Object(E)!==E)return;D=!1}else for(;!(D=(x=k.call(E)).done)&&(U.push(x.value),U.length!==T);D=!0);}catch(M){O=!0,C=M}finally{try{if(!D&&E.return!=null&&(N=E.return(),Object(N)!==N))return}finally{if(O)throw C}}return U}}a(c,"_iterableToArrayLimit");function u(R){if(Array.isArray(R))return R}a(u,"_arrayWithHoles");var d=[],p=r.default.keys();for(P=0;P<p.length;P++)if(h=p[P],f=r.default.get(h),m=[],f){for(b=[].concat(f.baseConcepts,f.relatedConcepts),w=0;w<b.length;w++)g=b[w],g.module==="HTML"&&(v=g.concept,v!=null&&m.push(v));m.length>0&&d.push([h,m])}var h,f,m,b,g,v,w,P,A={entries:a(function(){return d},"entries"),forEach:a(function(R){for(var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,E=0,x=d;E<x.length;E++){var C=o(x[E],2),k=C[0],N=C[1];R.call(T,N,k,d)}},"forEach"),get:a(function(R){var T=d.filter(function(E){return E[0]===R})[0];return T&&T[1]},"get"),has:a(function(R){return!!A.get(R)},"has"),keys:a(function(){return d.map(function(R){var T=o(R,1),E=T[0];return E})},"keys"),values:a(function(){return d.map(function(R){var T=o(R,2),E=T[1];return E})},"values")};e.default=(0,t.default)(A,A.entries())}),Lg=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var t=s(oN()),r=s(aN()),n=s(Kd()),o=s(Bj()),i=s(Uj());function s(l){return l&&l.__esModule?l:{default:l}}a(s,"_interopRequireDefault"),e.aria=t.default,e.dom=r.default,e.roles=n.default,e.elementRoles=o.default,e.roleElements=i.default}),Hj=S((e,t)=>{t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),Dg=S((e,t)=>{var r=Hj(),n={};for(let s of Object.keys(r))n[r[s]]=s;var o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=o;for(let s of Object.keys(o)){if(!("channels"in o[s]))throw new Error("missing channels property: "+s);if(!("labels"in o[s]))throw new Error("missing channel labels property: "+s);if(o[s].labels.length!==o[s].channels)throw new Error("channel and label counts mismatch: "+s);let{channels:l,labels:c}=o[s];delete o[s].channels,delete o[s].labels,Object.defineProperty(o[s],"channels",{value:l}),Object.defineProperty(o[s],"labels",{value:c})}o.rgb.hsl=function(s){let l=s[0]/255,c=s[1]/255,u=s[2]/255,d=Math.min(l,c,u),p=Math.max(l,c,u),h=p-d,f,m;p===d?f=0:l===p?f=(c-u)/h:c===p?f=2+(u-l)/h:u===p&&(f=4+(l-c)/h),f=Math.min(f*60,360),f<0&&(f+=360);let b=(d+p)/2;return p===d?m=0:b<=.5?m=h/(p+d):m=h/(2-p-d),[f,m*100,b*100]},o.rgb.hsv=function(s){let l,c,u,d,p,h=s[0]/255,f=s[1]/255,m=s[2]/255,b=Math.max(h,f,m),g=b-Math.min(h,f,m),v=a(function(w){return(b-w)/6/g+1/2},"diffc");return g===0?(d=0,p=0):(p=g/b,l=v(h),c=v(f),u=v(m),h===b?d=u-c:f===b?d=1/3+l-u:m===b&&(d=2/3+c-l),d<0?d+=1:d>1&&(d-=1)),[d*360,p*100,b*100]},o.rgb.hwb=function(s){let l=s[0],c=s[1],u=s[2],d=o.rgb.hsl(s)[0],p=1/255*Math.min(l,Math.min(c,u));return u=1-1/255*Math.max(l,Math.max(c,u)),[d,p*100,u*100]},o.rgb.cmyk=function(s){let l=s[0]/255,c=s[1]/255,u=s[2]/255,d=Math.min(1-l,1-c,1-u),p=(1-l-d)/(1-d)||0,h=(1-c-d)/(1-d)||0,f=(1-u-d)/(1-d)||0;return[p*100,h*100,f*100,d*100]};function i(s,l){return(s[0]-l[0])**2+(s[1]-l[1])**2+(s[2]-l[2])**2}a(i,"comparativeDistance"),o.rgb.keyword=function(s){let l=n[s];if(l)return l;let c=1/0,u;for(let d of Object.keys(r)){let p=r[d],h=i(s,p);h<c&&(c=h,u=d)}return u},o.keyword.rgb=function(s){return r[s]},o.rgb.xyz=function(s){let l=s[0]/255,c=s[1]/255,u=s[2]/255;l=l>.04045?((l+.055)/1.055)**2.4:l/12.92,c=c>.04045?((c+.055)/1.055)**2.4:c/12.92,u=u>.04045?((u+.055)/1.055)**2.4:u/12.92;let d=l*.4124+c*.3576+u*.1805,p=l*.2126+c*.7152+u*.0722,h=l*.0193+c*.1192+u*.9505;return[d*100,p*100,h*100]},o.rgb.lab=function(s){let l=o.rgb.xyz(s),c=l[0],u=l[1],d=l[2];c/=95.047,u/=100,d/=108.883,c=c>.008856?c**(1/3):7.787*c+16/116,u=u>.008856?u**(1/3):7.787*u+16/116,d=d>.008856?d**(1/3):7.787*d+16/116;let p=116*u-16,h=500*(c-u),f=200*(u-d);return[p,h,f]},o.hsl.rgb=function(s){let l=s[0]/360,c=s[1]/100,u=s[2]/100,d,p,h;if(c===0)return h=u*255,[h,h,h];u<.5?d=u*(1+c):d=u+c-u*c;let f=2*u-d,m=[0,0,0];for(let b=0;b<3;b++)p=l+1/3*-(b-1),p<0&&p++,p>1&&p--,6*p<1?h=f+(d-f)*6*p:2*p<1?h=d:3*p<2?h=f+(d-f)*(2/3-p)*6:h=f,m[b]=h*255;return m},o.hsl.hsv=function(s){let l=s[0],c=s[1]/100,u=s[2]/100,d=c,p=Math.max(u,.01);u*=2,c*=u<=1?u:2-u,d*=p<=1?p:2-p;let h=(u+c)/2,f=u===0?2*d/(p+d):2*c/(u+c);return[l,f*100,h*100]},o.hsv.rgb=function(s){let l=s[0]/60,c=s[1]/100,u=s[2]/100,d=Math.floor(l)%6,p=l-Math.floor(l),h=255*u*(1-c),f=255*u*(1-c*p),m=255*u*(1-c*(1-p));switch(u*=255,d){case 0:return[u,m,h];case 1:return[f,u,h];case 2:return[h,u,m];case 3:return[h,f,u];case 4:return[m,h,u];case 5:return[u,h,f]}},o.hsv.hsl=function(s){let l=s[0],c=s[1]/100,u=s[2]/100,d=Math.max(u,.01),p,h;h=(2-c)*u;let f=(2-c)*d;return p=c*d,p/=f<=1?f:2-f,p=p||0,h/=2,[l,p*100,h*100]},o.hwb.rgb=function(s){let l=s[0]/360,c=s[1]/100,u=s[2]/100,d=c+u,p;d>1&&(c/=d,u/=d);let h=Math.floor(6*l),f=1-u;p=6*l-h,(h&1)!==0&&(p=1-p);let m=c+p*(f-c),b,g,v;switch(h){default:case 6:case 0:b=f,g=m,v=c;break;case 1:b=m,g=f,v=c;break;case 2:b=c,g=f,v=m;break;case 3:b=c,g=m,v=f;break;case 4:b=m,g=c,v=f;break;case 5:b=f,g=c,v=m;break}return[b*255,g*255,v*255]},o.cmyk.rgb=function(s){let l=s[0]/100,c=s[1]/100,u=s[2]/100,d=s[3]/100,p=1-Math.min(1,l*(1-d)+d),h=1-Math.min(1,c*(1-d)+d),f=1-Math.min(1,u*(1-d)+d);return[p*255,h*255,f*255]},o.xyz.rgb=function(s){let l=s[0]/100,c=s[1]/100,u=s[2]/100,d,p,h;return d=l*3.2406+c*-1.5372+u*-.4986,p=l*-.9689+c*1.8758+u*.0415,h=l*.0557+c*-.204+u*1.057,d=d>.0031308?1.055*d**(1/2.4)-.055:d*12.92,p=p>.0031308?1.055*p**(1/2.4)-.055:p*12.92,h=h>.0031308?1.055*h**(1/2.4)-.055:h*12.92,d=Math.min(Math.max(0,d),1),p=Math.min(Math.max(0,p),1),h=Math.min(Math.max(0,h),1),[d*255,p*255,h*255]},o.xyz.lab=function(s){let l=s[0],c=s[1],u=s[2];l/=95.047,c/=100,u/=108.883,l=l>.008856?l**(1/3):7.787*l+16/116,c=c>.008856?c**(1/3):7.787*c+16/116,u=u>.008856?u**(1/3):7.787*u+16/116;let d=116*c-16,p=500*(l-c),h=200*(c-u);return[d,p,h]},o.lab.xyz=function(s){let l=s[0],c=s[1],u=s[2],d,p,h;p=(l+16)/116,d=c/500+p,h=p-u/200;let f=p**3,m=d**3,b=h**3;return p=f>.008856?f:(p-16/116)/7.787,d=m>.008856?m:(d-16/116)/7.787,h=b>.008856?b:(h-16/116)/7.787,d*=95.047,p*=100,h*=108.883,[d,p,h]},o.lab.lch=function(s){let l=s[0],c=s[1],u=s[2],d;d=Math.atan2(u,c)*360/2/Math.PI,d<0&&(d+=360);let p=Math.sqrt(c*c+u*u);return[l,p,d]},o.lch.lab=function(s){let l=s[0],c=s[1],u=s[2]/360*2*Math.PI,d=c*Math.cos(u),p=c*Math.sin(u);return[l,d,p]},o.rgb.ansi16=function(s,l=null){let[c,u,d]=s,p=l===null?o.rgb.hsv(s)[2]:l;if(p=Math.round(p/50),p===0)return 30;let h=30+(Math.round(d/255)<<2|Math.round(u/255)<<1|Math.round(c/255));return p===2&&(h+=60),h},o.hsv.ansi16=function(s){return o.rgb.ansi16(o.hsv.rgb(s),s[2])},o.rgb.ansi256=function(s){let l=s[0],c=s[1],u=s[2];return l===c&&c===u?l<8?16:l>248?231:Math.round((l-8)/247*24)+232:16+36*Math.round(l/255*5)+6*Math.round(c/255*5)+Math.round(u/255*5)},o.ansi16.rgb=function(s){let l=s%10;if(l===0||l===7)return s>50&&(l+=3.5),l=l/10.5*255,[l,l,l];let c=(~~(s>50)+1)*.5,u=(l&1)*c*255,d=(l>>1&1)*c*255,p=(l>>2&1)*c*255;return[u,d,p]},o.ansi256.rgb=function(s){if(s>=232){let p=(s-232)*10+8;return[p,p,p]}s-=16;let l,c=Math.floor(s/36)/5*255,u=Math.floor((l=s%36)/6)/5*255,d=l%6/5*255;return[c,u,d]},o.rgb.hex=function(s){let l=(((Math.round(s[0])&255)<<16)+((Math.round(s[1])&255)<<8)+(Math.round(s[2])&255)).toString(16).toUpperCase();return"000000".substring(l.length)+l},o.hex.rgb=function(s){let l=s.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!l)return[0,0,0];let c=l[0];l[0].length===3&&(c=c.split("").map(f=>f+f).join(""));let u=parseInt(c,16),d=u>>16&255,p=u>>8&255,h=u&255;return[d,p,h]},o.rgb.hcg=function(s){let l=s[0]/255,c=s[1]/255,u=s[2]/255,d=Math.max(Math.max(l,c),u),p=Math.min(Math.min(l,c),u),h=d-p,f,m;return h<1?f=p/(1-h):f=0,h<=0?m=0:d===l?m=(c-u)/h%6:d===c?m=2+(u-l)/h:m=4+(l-c)/h,m/=6,m%=1,[m*360,h*100,f*100]},o.hsl.hcg=function(s){let l=s[1]/100,c=s[2]/100,u=c<.5?2*l*c:2*l*(1-c),d=0;return u<1&&(d=(c-.5*u)/(1-u)),[s[0],u*100,d*100]},o.hsv.hcg=function(s){let l=s[1]/100,c=s[2]/100,u=l*c,d=0;return u<1&&(d=(c-u)/(1-u)),[s[0],u*100,d*100]},o.hcg.rgb=function(s){let l=s[0]/360,c=s[1]/100,u=s[2]/100;if(c===0)return[u*255,u*255,u*255];let d=[0,0,0],p=l%1*6,h=p%1,f=1-h,m=0;switch(Math.floor(p)){case 0:d[0]=1,d[1]=h,d[2]=0;break;case 1:d[0]=f,d[1]=1,d[2]=0;break;case 2:d[0]=0,d[1]=1,d[2]=h;break;case 3:d[0]=0,d[1]=f,d[2]=1;break;case 4:d[0]=h,d[1]=0,d[2]=1;break;default:d[0]=1,d[1]=0,d[2]=f}return m=(1-c)*u,[(c*d[0]+m)*255,(c*d[1]+m)*255,(c*d[2]+m)*255]},o.hcg.hsv=function(s){let l=s[1]/100,c=s[2]/100,u=l+c*(1-l),d=0;return u>0&&(d=l/u),[s[0],d*100,u*100]},o.hcg.hsl=function(s){let l=s[1]/100,c=s[2]/100*(1-l)+.5*l,u=0;return c>0&&c<.5?u=l/(2*c):c>=.5&&c<1&&(u=l/(2*(1-c))),[s[0],u*100,c*100]},o.hcg.hwb=function(s){let l=s[1]/100,c=s[2]/100,u=l+c*(1-l);return[s[0],(u-l)*100,(1-u)*100]},o.hwb.hcg=function(s){let l=s[1]/100,c=1-s[2]/100,u=c-l,d=0;return u<1&&(d=(c-u)/(1-u)),[s[0],u*100,d*100]},o.apple.rgb=function(s){return[s[0]/65535*255,s[1]/65535*255,s[2]/65535*255]},o.rgb.apple=function(s){return[s[0]/255*65535,s[1]/255*65535,s[2]/255*65535]},o.gray.rgb=function(s){return[s[0]/100*255,s[0]/100*255,s[0]/100*255]},o.gray.hsl=function(s){return[0,0,s[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(s){return[0,100,s[0]]},o.gray.cmyk=function(s){return[0,0,0,s[0]]},o.gray.lab=function(s){return[s[0],0,0]},o.gray.hex=function(s){let l=Math.round(s[0]/100*255)&255,c=((l<<16)+(l<<8)+l).toString(16).toUpperCase();return"000000".substring(c.length)+c},o.rgb.gray=function(s){return[(s[0]+s[1]+s[2])/3/255*100]}}),Vj=S((e,t)=>{var r=Dg();function n(){let l={},c=Object.keys(r);for(let u=c.length,d=0;d<u;d++)l[c[d]]={distance:-1,parent:null};return l}a(n,"buildGraph");function o(l){let c=n(),u=[l];for(c[l].distance=0;u.length;){let d=u.pop(),p=Object.keys(r[d]);for(let h=p.length,f=0;f<h;f++){let m=p[f],b=c[m];b.distance===-1&&(b.distance=c[d].distance+1,b.parent=d,u.unshift(m))}}return c}a(o,"deriveBFS");function i(l,c){return function(u){return c(l(u))}}a(i,"link");function s(l,c){let u=[c[l].parent,l],d=r[c[l].parent][l],p=c[l].parent;for(;c[p].parent;)u.unshift(c[p].parent),d=i(r[c[p].parent][p],d),p=c[p].parent;return d.conversion=u,d}a(s,"wrapConversion"),t.exports=function(l){let c=o(l),u={},d=Object.keys(c);for(let p=d.length,h=0;h<p;h++){let f=d[h];c[f].parent!==null&&(u[f]=s(f,c))}return u}}),Jj=S((e,t)=>{var r=Dg(),n=Vj(),o={},i=Object.keys(r);function s(c){let u=a(function(...d){let p=d[0];return p==null?p:(p.length>1&&(d=p),c(d))},"wrappedFn");return"conversion"in c&&(u.conversion=c.conversion),u}a(s,"wrapRaw");function l(c){let u=a(function(...d){let p=d[0];if(p==null)return p;p.length>1&&(d=p);let h=c(d);if(typeof h=="object")for(let f=h.length,m=0;m<f;m++)h[m]=Math.round(h[m]);return h},"wrappedFn");return"conversion"in c&&(u.conversion=c.conversion),u}a(l,"wrapRounded"),i.forEach(c=>{o[c]={},Object.defineProperty(o[c],"channels",{value:r[c].channels}),Object.defineProperty(o[c],"labels",{value:r[c].labels});let u=n(c);Object.keys(u).forEach(d=>{let p=u[d];o[c][d]=l(p),o[c][d].raw=s(p)})}),t.exports=o}),zj=S((e,t)=>{var r=a((p,h)=>(...f)=>`\x1B[${p(...f)+h}m`,"wrapAnsi16"),n=a((p,h)=>(...f)=>{let m=p(...f);return`\x1B[${38+h};5;${m}m`},"wrapAnsi256"),o=a((p,h)=>(...f)=>{let m=p(...f);return`\x1B[${38+h};2;${m[0]};${m[1]};${m[2]}m`},"wrapAnsi16m"),i=a(p=>p,"ansi2ansi"),s=a((p,h,f)=>[p,h,f],"rgb2rgb"),l=a((p,h,f)=>{Object.defineProperty(p,h,{get:a(()=>{let m=f();return Object.defineProperty(p,h,{value:m,enumerable:!0,configurable:!0}),m},"get"),enumerable:!0,configurable:!0})},"setLazyProperty"),c,u=a((p,h,f,m)=>{c===void 0&&(c=Jj());let b=m?10:0,g={};for(let[v,w]of Object.entries(c)){let P=v==="ansi16"?"ansi":v;v===h?g[P]=p(f,b):typeof w=="object"&&(g[P]=p(w[h],b))}return g},"makeDynamicStyles");function d(){let p=new Map,h={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};h.color.gray=h.color.blackBright,h.bgColor.bgGray=h.bgColor.bgBlackBright,h.color.grey=h.color.blackBright,h.bgColor.bgGrey=h.bgColor.bgBlackBright;for(let[f,m]of Object.entries(h)){for(let[b,g]of Object.entries(m))h[b]={open:`\x1B[${g[0]}m`,close:`\x1B[${g[1]}m`},m[b]=h[b],p.set(g[0],g[1]);Object.defineProperty(h,f,{value:m,enumerable:!1})}return Object.defineProperty(h,"codes",{value:p,enumerable:!1}),h.color.close="\x1B[39m",h.bgColor.close="\x1B[49m",l(h.color,"ansi",()=>u(r,"ansi16",i,!1)),l(h.color,"ansi256",()=>u(n,"ansi256",i,!1)),l(h.color,"ansi16m",()=>u(o,"rgb",s,!1)),l(h.bgColor,"ansi",()=>u(r,"ansi16",i,!0)),l(h.bgColor,"ansi256",()=>u(n,"ansi256",i,!0)),l(h.bgColor,"ansi16m",()=>u(o,"rgb",s,!0)),h}a(d,"assembleStyles"),Object.defineProperty(t,"exports",{enumerable:!0,get:d})}),Wj=S((e,t)=>{t.exports={stdout:!1,stderr:!1}}),Gj=S((e,t)=>{var r=a((o,i,s)=>{let l=o.indexOf(i);if(l===-1)return o;let c=i.length,u=0,d="";do d+=o.substr(u,l-u)+i+s,u=l+c,l=o.indexOf(i,u);while(l!==-1);return d+=o.substr(u),d},"stringReplaceAll"),n=a((o,i,s,l)=>{let c=0,u="";do{let d=o[l-1]==="\r";u+=o.substr(c,(d?l-1:l)-c)+i+(d?`\r
|
|
9
|
+
`:`
|
|
10
|
+
`)+s,c=l+1,l=o.indexOf(`
|
|
11
|
+
`,c)}while(l!==-1);return u+=o.substr(c),u},"stringEncaseCRLFWithFirstIndex");t.exports={stringReplaceAll:r,stringEncaseCRLFWithFirstIndex:n}}),Kj=S((e,t)=>{var r=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,o=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,i=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,s=new Map([["n",`
|
|
12
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function l(p){let h=p[0]==="u",f=p[1]==="{";return h&&!f&&p.length===5||p[0]==="x"&&p.length===3?String.fromCharCode(parseInt(p.slice(1),16)):h&&f?String.fromCodePoint(parseInt(p.slice(2,-1),16)):s.get(p)||p}a(l,"unescape");function c(p,h){let f=[],m=h.trim().split(/\s*,\s*/g),b;for(let g of m){let v=Number(g);if(!Number.isNaN(v))f.push(v);else if(b=g.match(o))f.push(b[2].replace(i,(w,P,A)=>P?l(P):A));else throw new Error(`Invalid Chalk template style argument: ${g} (in style '${p}')`)}return f}a(c,"parseArguments");function u(p){n.lastIndex=0;let h=[],f;for(;(f=n.exec(p))!==null;){let m=f[1];if(f[2]){let b=c(m,f[2]);h.push([m].concat(b))}else h.push([m])}return h}a(u,"parseStyle");function d(p,h){let f={};for(let b of h)for(let g of b.styles)f[g[0]]=b.inverse?null:g.slice(1);let m=p;for(let[b,g]of Object.entries(f))if(Array.isArray(g)){if(!(b in m))throw new Error(`Unknown Chalk style: ${b}`);m=g.length>0?m[b](...g):m[b]}return m}a(d,"buildStyle"),t.exports=(p,h)=>{let f=[],m=[],b=[];if(h.replace(r,(g,v,w,P,A,R)=>{if(v)b.push(l(v));else if(P){let T=b.join("");b=[],m.push(f.length===0?T:d(p,f)(T)),f.push({inverse:w,styles:u(P)})}else if(A){if(f.length===0)throw new Error("Found extraneous } in Chalk template literal");m.push(d(p,f)(b.join(""))),b=[],f.pop()}else b.push(R)}),m.push(b.join("")),f.length>0){let g=`Chalk template literal is missing ${f.length} closing bracket${f.length===1?"":"s"} (\`}\`)`;throw new Error(g)}return m.join("")}}),Fg=S((e,t)=>{var r=zj(),{stdout:n,stderr:o}=Wj(),{stringReplaceAll:i,stringEncaseCRLFWithFirstIndex:s}=Gj(),l=["ansi","ansi","ansi256","ansi16m"],c=Object.create(null),u=a((T,E={})=>{if(E.level>3||E.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let x=n?n.level:0;T.level=E.level===void 0?x:E.level},"applyOptions"),d=class{constructor(E){return h(E)}};a(d,"ChalkClass");var p=d,h=a(T=>{let E={};return u(E,T),E.template=(...x)=>A(E.template,...x),Object.setPrototypeOf(E,f.prototype),Object.setPrototypeOf(E.template,E),E.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},E.template.Instance=p,E.template},"chalkFactory");function f(T){return h(T)}a(f,"Chalk");for(let[T,E]of Object.entries(r))c[T]={get(){let x=v(this,g(E.open,E.close,this._styler),this._isEmpty);return Object.defineProperty(this,T,{value:x}),x}};c.visible={get(){let T=v(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:T}),T}};var m=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let T of m)c[T]={get(){let{level:E}=this;return function(...x){let C=g(r.color[l[E]][T](...x),r.color.close,this._styler);return v(this,C,this._isEmpty)}}};for(let T of m){let E="bg"+T[0].toUpperCase()+T.slice(1);c[E]={get(){let{level:x}=this;return function(...C){let k=g(r.bgColor[l[x]][T](...C),r.bgColor.close,this._styler);return v(this,k,this._isEmpty)}}}}var b=Object.defineProperties(()=>{},{...c,level:{enumerable:!0,get(){return this._generator.level},set(T){this._generator.level=T}}}),g=a((T,E,x)=>{let C,k;return x===void 0?(C=T,k=E):(C=x.openAll+T,k=E+x.closeAll),{open:T,close:E,openAll:C,closeAll:k,parent:x}},"createStyler"),v=a((T,E,x)=>{let C=a((...k)=>w(C,k.length===1?""+k[0]:k.join(" ")),"builder");return C.__proto__=b,C._generator=T,C._styler=E,C._isEmpty=x,C},"createBuilder"),w=a((T,E)=>{if(T.level<=0||!E)return T._isEmpty?"":E;let x=T._styler;if(x===void 0)return E;let{openAll:C,closeAll:k}=x;if(E.indexOf("\x1B")!==-1)for(;x!==void 0;)E=i(E,x.close,x.open),x=x.parent;let N=E.indexOf(`
|
|
13
|
+
`);return N!==-1&&(E=s(E,k,C,N)),C+E+k},"applyStyle"),P,A=a((T,...E)=>{let[x]=E;if(!Array.isArray(x))return E.join(" ");let C=E.slice(1),k=[x.raw[0]];for(let N=1;N<x.length;N++)k.push(String(C[N-1]).replace(/[{}\\]/g,"\\$&"),String(x.raw[N]));return P===void 0&&(P=Kj()),P(T,k.join(""))},"chalkTag");Object.defineProperties(f.prototype,c);var R=f();R.supportsColor=n,R.stderr=f({level:o?o.level:0}),R.stderr.supportsColor=o,R.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},t.exports=R}),Yj=S((e,t)=>{function r(){this.__data__=[],this.size=0}a(r,"listCacheClear"),t.exports=r}),Bg=S((e,t)=>{function r(n,o){return n===o||n!==n&&o!==o}a(r,"eq"),t.exports=r}),zs=S((e,t)=>{var r=Bg();function n(o,i){for(var s=o.length;s--;)if(r(o[s][0],i))return s;return-1}a(n,"assocIndexOf"),t.exports=n}),Xj=S((e,t)=>{var r=zs(),n=Array.prototype,o=n.splice;function i(s){var l=this.__data__,c=r(l,s);if(c<0)return!1;var u=l.length-1;return c==u?l.pop():o.call(l,c,1),--this.size,!0}a(i,"listCacheDelete"),t.exports=i}),Qj=S((e,t)=>{var r=zs();function n(o){var i=this.__data__,s=r(i,o);return s<0?void 0:i[s][1]}a(n,"listCacheGet"),t.exports=n}),Zj=S((e,t)=>{var r=zs();function n(o){return r(this.__data__,o)>-1}a(n,"listCacheHas"),t.exports=n}),ek=S((e,t)=>{var r=zs();function n(o,i){var s=this.__data__,l=r(s,o);return l<0?(++this.size,s.push([o,i])):s[l][1]=i,this}a(n,"listCacheSet"),t.exports=n}),Ws=S((e,t)=>{var r=Yj(),n=Xj(),o=Qj(),i=Zj(),s=ek();function l(c){var u=-1,d=c==null?0:c.length;for(this.clear();++u<d;){var p=c[u];this.set(p[0],p[1])}}a(l,"ListCache"),l.prototype.clear=r,l.prototype.delete=n,l.prototype.get=o,l.prototype.has=i,l.prototype.set=s,t.exports=l}),tk=S((e,t)=>{var r=Ws();function n(){this.__data__=new r,this.size=0}a(n,"stackClear"),t.exports=n}),rk=S((e,t)=>{function r(n){var o=this.__data__,i=o.delete(n);return this.size=o.size,i}a(r,"stackDelete"),t.exports=r}),nk=S((e,t)=>{function r(n){return this.__data__.get(n)}a(r,"stackGet"),t.exports=r}),ok=S((e,t)=>{function r(n){return this.__data__.has(n)}a(r,"stackHas"),t.exports=r}),Ug=S((e,t)=>{var r=typeof global=="object"&&global&&global.Object===Object&&global;t.exports=r}),gr=S((e,t)=>{var r=Ug(),n=typeof self=="object"&&self&&self.Object===Object&&self,o=r||n||Function("return this")();t.exports=o}),Yd=S((e,t)=>{var r=gr(),n=r.Symbol;t.exports=n}),ak=S((e,t)=>{var r=Yd(),n=Object.prototype,o=n.hasOwnProperty,i=n.toString,s=r?r.toStringTag:void 0;function l(c){var u=o.call(c,s),d=c[s];try{c[s]=void 0;var p=!0}catch{}var h=i.call(c);return p&&(u?c[s]=d:delete c[s]),h}a(l,"getRawTag"),t.exports=l}),ik=S((e,t)=>{var r=Object.prototype,n=r.toString;function o(i){return n.call(i)}a(o,"objectToString"),t.exports=o}),Gs=S((e,t)=>{var r=Yd(),n=ak(),o=ik(),i="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;function c(u){return u==null?u===void 0?s:i:l&&l in Object(u)?n(u):o(u)}a(c,"baseGetTag"),t.exports=c}),Hg=S((e,t)=>{function r(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}a(r,"isObject"),t.exports=r}),Vg=S((e,t)=>{var r=Gs(),n=Hg(),o="[object AsyncFunction]",i="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function c(u){if(!n(u))return!1;var d=r(u);return d==i||d==s||d==o||d==l}a(c,"isFunction"),t.exports=c}),sk=S((e,t)=>{var r=gr(),n=r["__core-js_shared__"];t.exports=n}),lk=S((e,t)=>{var r=sk(),n=(function(){var i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function o(i){return!!n&&n in i}a(o,"isMasked"),t.exports=o}),Jg=S((e,t)=>{var r=Function.prototype,n=r.toString;function o(i){if(i!=null){try{return n.call(i)}catch{}try{return i+""}catch{}}return""}a(o,"toSource"),t.exports=o}),uk=S((e,t)=>{var r=Vg(),n=lk(),o=Hg(),i=Jg(),s=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,d=c.toString,p=u.hasOwnProperty,h=RegExp("^"+d.call(p).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(m){if(!o(m)||n(m))return!1;var b=r(m)?h:l;return b.test(i(m))}a(f,"baseIsNative"),t.exports=f}),ck=S((e,t)=>{function r(n,o){return n?.[o]}a(r,"getValue"),t.exports=r}),Po=S((e,t)=>{var r=uk(),n=ck();function o(i,s){var l=n(i,s);return r(l)?l:void 0}a(o,"getNative"),t.exports=o}),Xd=S((e,t)=>{var r=Po(),n=gr(),o=r(n,"Map");t.exports=o}),Ks=S((e,t)=>{var r=Po(),n=r(Object,"create");t.exports=n}),dk=S((e,t)=>{var r=Ks();function n(){this.__data__=r?r(null):{},this.size=0}a(n,"hashClear"),t.exports=n}),pk=S((e,t)=>{function r(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}a(r,"hashDelete"),t.exports=r}),fk=S((e,t)=>{var r=Ks(),n="__lodash_hash_undefined__",o=Object.prototype,i=o.hasOwnProperty;function s(l){var c=this.__data__;if(r){var u=c[l];return u===n?void 0:u}return i.call(c,l)?c[l]:void 0}a(s,"hashGet"),t.exports=s}),hk=S((e,t)=>{var r=Ks(),n=Object.prototype,o=n.hasOwnProperty;function i(s){var l=this.__data__;return r?l[s]!==void 0:o.call(l,s)}a(i,"hashHas"),t.exports=i}),mk=S((e,t)=>{var r=Ks(),n="__lodash_hash_undefined__";function o(i,s){var l=this.__data__;return this.size+=this.has(i)?0:1,l[i]=r&&s===void 0?n:s,this}a(o,"hashSet"),t.exports=o}),yk=S((e,t)=>{var r=dk(),n=pk(),o=fk(),i=hk(),s=mk();function l(c){var u=-1,d=c==null?0:c.length;for(this.clear();++u<d;){var p=c[u];this.set(p[0],p[1])}}a(l,"Hash"),l.prototype.clear=r,l.prototype.delete=n,l.prototype.get=o,l.prototype.has=i,l.prototype.set=s,t.exports=l}),bk=S((e,t)=>{var r=yk(),n=Ws(),o=Xd();function i(){this.size=0,this.__data__={hash:new r,map:new(o||n),string:new r}}a(i,"mapCacheClear"),t.exports=i}),gk=S((e,t)=>{function r(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}a(r,"isKeyable"),t.exports=r}),Ys=S((e,t)=>{var r=gk();function n(o,i){var s=o.__data__;return r(i)?s[typeof i=="string"?"string":"hash"]:s.map}a(n,"getMapData"),t.exports=n}),vk=S((e,t)=>{var r=Ys();function n(o){var i=r(this,o).delete(o);return this.size-=i?1:0,i}a(n,"mapCacheDelete"),t.exports=n}),wk=S((e,t)=>{var r=Ys();function n(o){return r(this,o).get(o)}a(n,"mapCacheGet"),t.exports=n}),Ek=S((e,t)=>{var r=Ys();function n(o){return r(this,o).has(o)}a(n,"mapCacheHas"),t.exports=n}),xk=S((e,t)=>{var r=Ys();function n(o,i){var s=r(this,o),l=s.size;return s.set(o,i),this.size+=s.size==l?0:1,this}a(n,"mapCacheSet"),t.exports=n}),zg=S((e,t)=>{var r=bk(),n=vk(),o=wk(),i=Ek(),s=xk();function l(c){var u=-1,d=c==null?0:c.length;for(this.clear();++u<d;){var p=c[u];this.set(p[0],p[1])}}a(l,"MapCache"),l.prototype.clear=r,l.prototype.delete=n,l.prototype.get=o,l.prototype.has=i,l.prototype.set=s,t.exports=l}),Tk=S((e,t)=>{var r=Ws(),n=Xd(),o=zg(),i=200;function s(l,c){var u=this.__data__;if(u instanceof r){var d=u.__data__;if(!n||d.length<i-1)return d.push([l,c]),this.size=++u.size,this;u=this.__data__=new o(d)}return u.set(l,c),this.size=u.size,this}a(s,"stackSet"),t.exports=s}),Sk=S((e,t)=>{var r=Ws(),n=tk(),o=rk(),i=nk(),s=ok(),l=Tk();function c(u){var d=this.__data__=new r(u);this.size=d.size}a(c,"Stack"),c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,t.exports=c}),Ck=S((e,t)=>{var r="__lodash_hash_undefined__";function n(o){return this.__data__.set(o,r),this}a(n,"setCacheAdd"),t.exports=n}),Pk=S((e,t)=>{function r(n){return this.__data__.has(n)}a(r,"setCacheHas"),t.exports=r}),Ok=S((e,t)=>{var r=zg(),n=Ck(),o=Pk();function i(s){var l=-1,c=s==null?0:s.length;for(this.__data__=new r;++l<c;)this.add(s[l])}a(i,"SetCache"),i.prototype.add=i.prototype.push=n,i.prototype.has=o,t.exports=i}),_k=S((e,t)=>{function r(n,o){for(var i=-1,s=n==null?0:n.length;++i<s;)if(o(n[i],i,n))return!0;return!1}a(r,"arraySome"),t.exports=r}),Ak=S((e,t)=>{function r(n,o){return n.has(o)}a(r,"cacheHas"),t.exports=r}),Wg=S((e,t)=>{var r=Ok(),n=_k(),o=Ak(),i=1,s=2;function l(c,u,d,p,h,f){var m=d&i,b=c.length,g=u.length;if(b!=g&&!(m&&g>b))return!1;var v=f.get(c),w=f.get(u);if(v&&w)return v==u&&w==c;var P=-1,A=!0,R=d&s?new r:void 0;for(f.set(c,u),f.set(u,c);++P<b;){var T=c[P],E=u[P];if(p)var x=m?p(E,T,P,u,c,f):p(T,E,P,c,u,f);if(x!==void 0){if(x)continue;A=!1;break}if(R){if(!n(u,function(C,k){if(!o(R,k)&&(T===C||h(T,C,d,p,f)))return R.push(k)})){A=!1;break}}else if(!(T===E||h(T,E,d,p,f))){A=!1;break}}return f.delete(c),f.delete(u),A}a(l,"equalArrays"),t.exports=l}),Rk=S((e,t)=>{var r=gr(),n=r.Uint8Array;t.exports=n}),qk=S((e,t)=>{function r(n){var o=-1,i=Array(n.size);return n.forEach(function(s,l){i[++o]=[l,s]}),i}a(r,"mapToArray"),t.exports=r}),Nk=S((e,t)=>{function r(n){var o=-1,i=Array(n.size);return n.forEach(function(s){i[++o]=s}),i}a(r,"setToArray"),t.exports=r}),Ik=S((e,t)=>{var r=Yd(),n=Rk(),o=Bg(),i=Wg(),s=qk(),l=Nk(),c=1,u=2,d="[object Boolean]",p="[object Date]",h="[object Error]",f="[object Map]",m="[object Number]",b="[object RegExp]",g="[object Set]",v="[object String]",w="[object Symbol]",P="[object ArrayBuffer]",A="[object DataView]",R=r?r.prototype:void 0,T=R?R.valueOf:void 0;function E(x,C,k,N,U,D,O){switch(k){case A:if(x.byteLength!=C.byteLength||x.byteOffset!=C.byteOffset)return!1;x=x.buffer,C=C.buffer;case P:return!(x.byteLength!=C.byteLength||!D(new n(x),new n(C)));case d:case p:case m:return o(+x,+C);case h:return x.name==C.name&&x.message==C.message;case b:case v:return x==C+"";case f:var M=s;case g:var $=N&c;if(M||(M=l),x.size!=C.size&&!$)return!1;var K=O.get(x);if(K)return K==C;N|=u,O.set(x,C);var G=i(M(x),M(C),N,U,D,O);return O.delete(x),G;case w:if(T)return T.call(x)==T.call(C)}return!1}a(E,"equalByTag"),t.exports=E}),jk=S((e,t)=>{function r(n,o){for(var i=-1,s=o.length,l=n.length;++i<s;)n[l+i]=o[i];return n}a(r,"arrayPush"),t.exports=r}),Qd=S((e,t)=>{var r=Array.isArray;t.exports=r}),kk=S((e,t)=>{var r=jk(),n=Qd();function o(i,s,l){var c=s(i);return n(i)?c:r(c,l(i))}a(o,"baseGetAllKeys"),t.exports=o}),Mk=S((e,t)=>{function r(n,o){for(var i=-1,s=n==null?0:n.length,l=0,c=[];++i<s;){var u=n[i];o(u,i,n)&&(c[l++]=u)}return c}a(r,"arrayFilter"),t.exports=r}),$k=S((e,t)=>{function r(){return[]}a(r,"stubArray"),t.exports=r}),Lk=S((e,t)=>{var r=Mk(),n=$k(),o=Object.prototype,i=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(c){return c==null?[]:(c=Object(c),r(s(c),function(u){return i.call(c,u)}))}:n;t.exports=l}),Dk=S((e,t)=>{function r(n,o){for(var i=-1,s=Array(n);++i<n;)s[i]=o(i);return s}a(r,"baseTimes"),t.exports=r}),Xs=S((e,t)=>{function r(n){return n!=null&&typeof n=="object"}a(r,"isObjectLike"),t.exports=r}),Fk=S((e,t)=>{var r=Gs(),n=Xs(),o="[object Arguments]";function i(s){return n(s)&&r(s)==o}a(i,"baseIsArguments"),t.exports=i}),Bk=S((e,t)=>{var r=Fk(),n=Xs(),o=Object.prototype,i=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r((function(){return arguments})())?r:function(c){return n(c)&&i.call(c,"callee")&&!s.call(c,"callee")};t.exports=l}),Uk=S((e,t)=>{function r(){return!1}a(r,"stubFalse"),t.exports=r}),Gg=S((e,t)=>{var r=gr(),n=Uk(),o=typeof e=="object"&&e&&!e.nodeType&&e,i=o&&typeof t=="object"&&t&&!t.nodeType&&t,s=i&&i.exports===o,l=s?r.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||n;t.exports=u}),Hk=S((e,t)=>{var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function o(i,s){var l=typeof i;return s=s??r,!!s&&(l=="number"||l!="symbol"&&n.test(i))&&i>-1&&i%1==0&&i<s}a(o,"isIndex"),t.exports=o}),Kg=S((e,t)=>{var r=9007199254740991;function n(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=r}a(n,"isLength"),t.exports=n}),Vk=S((e,t)=>{var r=Gs(),n=Kg(),o=Xs(),i="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",p="[object Map]",h="[object Number]",f="[object Object]",m="[object RegExp]",b="[object Set]",g="[object String]",v="[object WeakMap]",w="[object ArrayBuffer]",P="[object DataView]",A="[object Float32Array]",R="[object Float64Array]",T="[object Int8Array]",E="[object Int16Array]",x="[object Int32Array]",C="[object Uint8Array]",k="[object Uint8ClampedArray]",N="[object Uint16Array]",U="[object Uint32Array]",D={};D[A]=D[R]=D[T]=D[E]=D[x]=D[C]=D[k]=D[N]=D[U]=!0,D[i]=D[s]=D[w]=D[l]=D[P]=D[c]=D[u]=D[d]=D[p]=D[h]=D[f]=D[m]=D[b]=D[g]=D[v]=!1;function O(M){return o(M)&&n(M.length)&&!!D[r(M)]}a(O,"baseIsTypedArray"),t.exports=O}),Jk=S((e,t)=>{function r(n){return function(o){return n(o)}}a(r,"baseUnary"),t.exports=r}),zk=S((e,t)=>{var r=Ug(),n=typeof e=="object"&&e&&!e.nodeType&&e,o=n&&typeof t=="object"&&t&&!t.nodeType&&t,i=o&&o.exports===n,s=i&&r.process,l=(function(){try{var c=o&&o.require&&o.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}})();t.exports=l}),Yg=S((e,t)=>{var r=Vk(),n=Jk(),o=zk(),i=o&&o.isTypedArray,s=i?n(i):r;t.exports=s}),Wk=S((e,t)=>{var r=Dk(),n=Bk(),o=Qd(),i=Gg(),s=Hk(),l=Yg(),c=Object.prototype,u=c.hasOwnProperty;function d(p,h){var f=o(p),m=!f&&n(p),b=!f&&!m&&i(p),g=!f&&!m&&!b&&l(p),v=f||m||b||g,w=v?r(p.length,String):[],P=w.length;for(var A in p)(h||u.call(p,A))&&!(v&&(A=="length"||b&&(A=="offset"||A=="parent")||g&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||s(A,P)))&&w.push(A);return w}a(d,"arrayLikeKeys"),t.exports=d}),Gk=S((e,t)=>{var r=Object.prototype;function n(o){var i=o&&o.constructor,s=typeof i=="function"&&i.prototype||r;return o===s}a(n,"isPrototype"),t.exports=n}),Kk=S((e,t)=>{function r(n,o){return function(i){return n(o(i))}}a(r,"overArg"),t.exports=r}),Yk=S((e,t)=>{var r=Kk(),n=r(Object.keys,Object);t.exports=n}),Xk=S((e,t)=>{var r=Gk(),n=Yk(),o=Object.prototype,i=o.hasOwnProperty;function s(l){if(!r(l))return n(l);var c=[];for(var u in Object(l))i.call(l,u)&&u!="constructor"&&c.push(u);return c}a(s,"baseKeys"),t.exports=s}),Qk=S((e,t)=>{var r=Vg(),n=Kg();function o(i){return i!=null&&n(i.length)&&!r(i)}a(o,"isArrayLike"),t.exports=o}),Zk=S((e,t)=>{var r=Wk(),n=Xk(),o=Qk();function i(s){return o(s)?r(s):n(s)}a(i,"keys"),t.exports=i}),eM=S((e,t)=>{var r=kk(),n=Lk(),o=Zk();function i(s){return r(s,o,n)}a(i,"getAllKeys"),t.exports=i}),tM=S((e,t)=>{var r=eM(),n=1,o=Object.prototype,i=o.hasOwnProperty;function s(l,c,u,d,p,h){var f=u&n,m=r(l),b=m.length,g=r(c),v=g.length;if(b!=v&&!f)return!1;for(var w=b;w--;){var P=m[w];if(!(f?P in c:i.call(c,P)))return!1}var A=h.get(l),R=h.get(c);if(A&&R)return A==c&&R==l;var T=!0;h.set(l,c),h.set(c,l);for(var E=f;++w<b;){P=m[w];var x=l[P],C=c[P];if(d)var k=f?d(C,x,P,c,l,h):d(x,C,P,l,c,h);if(!(k===void 0?x===C||p(x,C,u,d,h):k)){T=!1;break}E||(E=P=="constructor")}if(T&&!E){var N=l.constructor,U=c.constructor;N!=U&&"constructor"in l&&"constructor"in c&&!(typeof N=="function"&&N instanceof N&&typeof U=="function"&&U instanceof U)&&(T=!1)}return h.delete(l),h.delete(c),T}a(s,"equalObjects"),t.exports=s}),rM=S((e,t)=>{var r=Po(),n=gr(),o=r(n,"DataView");t.exports=o}),nM=S((e,t)=>{var r=Po(),n=gr(),o=r(n,"Promise");t.exports=o}),oM=S((e,t)=>{var r=Po(),n=gr(),o=r(n,"Set");t.exports=o}),aM=S((e,t)=>{var r=Po(),n=gr(),o=r(n,"WeakMap");t.exports=o}),iM=S((e,t)=>{var r=rM(),n=Xd(),o=nM(),i=oM(),s=aM(),l=Gs(),c=Jg(),u="[object Map]",d="[object Object]",p="[object Promise]",h="[object Set]",f="[object WeakMap]",m="[object DataView]",b=c(r),g=c(n),v=c(o),w=c(i),P=c(s),A=l;(r&&A(new r(new ArrayBuffer(1)))!=m||n&&A(new n)!=u||o&&A(o.resolve())!=p||i&&A(new i)!=h||s&&A(new s)!=f)&&(A=a(function(R){var T=l(R),E=T==d?R.constructor:void 0,x=E?c(E):"";if(x)switch(x){case b:return m;case g:return u;case v:return p;case w:return h;case P:return f}return T},"getTag")),t.exports=A}),sM=S((e,t)=>{var r=Sk(),n=Wg(),o=Ik(),i=tM(),s=iM(),l=Qd(),c=Gg(),u=Yg(),d=1,p="[object Arguments]",h="[object Array]",f="[object Object]",m=Object.prototype,b=m.hasOwnProperty;function g(v,w,P,A,R,T){var E=l(v),x=l(w),C=E?h:s(v),k=x?h:s(w);C=C==p?f:C,k=k==p?f:k;var N=C==f,U=k==f,D=C==k;if(D&&c(v)){if(!c(w))return!1;E=!0,N=!1}if(D&&!N)return T||(T=new r),E||u(v)?n(v,w,P,A,R,T):o(v,w,C,P,A,R,T);if(!(P&d)){var O=N&&b.call(v,"__wrapped__"),M=U&&b.call(w,"__wrapped__");if(O||M){var $=O?v.value():v,K=M?w.value():w;return T||(T=new r),R($,K,P,A,T)}}return D?(T||(T=new r),i(v,w,P,A,R,T)):!1}a(g,"baseIsEqualDeep"),t.exports=g}),lM=S((e,t)=>{var r=sM(),n=Xs();function o(i,s,l,c,u){return i===s?!0:i==null||s==null||!n(i)&&!n(s)?i!==i&&s!==s:r(i,s,l,c,o,u)}a(o,"baseIsEqual"),t.exports=o}),Xg=S((e,t)=>{var r=lM();function n(o,i,s){s=typeof s=="function"?s:void 0;var l=s?s(o,i):void 0;return l===void 0?r(o,i,void 0,s):!!l}a(n,"isEqualWith"),t.exports=n}),Qg=S((e,t)=>{(function(r,n){typeof e=="object"?t.exports=n(r):typeof define=="function"&&define.amd?define([],n.bind(r,r)):n(r)})(typeof global<"u"?global:e,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var n=a(function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var i=String(o),s=i.length,l=-1,c,u="",d=i.charCodeAt(0);++l<s;){if(c=i.charCodeAt(l),c==0){u+="�";continue}if(c>=1&&c<=31||c==127||l==0&&c>=48&&c<=57||l==1&&c>=48&&c<=57&&d==45){u+="\\"+c.toString(16)+" ";continue}if(l==0&&s==1&&c==45){u+="\\"+i.charAt(l);continue}if(c>=128||c==45||c==95||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122){u+=i.charAt(l);continue}u+="\\"+i.charAt(l)}return u},"cssEscape");return r.CSS||(r.CSS={}),r.CSS.escape=n,n})}),Zg=S((e,t)=>{var r=a((i=0)=>s=>`\x1B[${38+i};5;${s}m`,"wrapAnsi256"),n=a((i=0)=>(s,l,c)=>`\x1B[${38+i};2;${s};${l};${c}m`,"wrapAnsi16m");function o(){let i=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.gray=s.color.blackBright,s.bgColor.bgGray=s.bgColor.bgBlackBright,s.color.grey=s.color.blackBright,s.bgColor.bgGrey=s.bgColor.bgBlackBright;for(let[l,c]of Object.entries(s)){for(let[u,d]of Object.entries(c))s[u]={open:`\x1B[${d[0]}m`,close:`\x1B[${d[1]}m`},c[u]=s[u],i.set(d[0],d[1]);Object.defineProperty(s,l,{value:c,enumerable:!1})}return Object.defineProperty(s,"codes",{value:i,enumerable:!1}),s.color.close="\x1B[39m",s.bgColor.close="\x1B[49m",s.color.ansi256=r(),s.color.ansi16m=n(),s.bgColor.ansi256=r(10),s.bgColor.ansi16m=n(10),Object.defineProperties(s,{rgbToAnsi256:{value:a((l,c,u)=>l===c&&c===u?l<8?16:l>248?231:Math.round((l-8)/247*24)+232:16+36*Math.round(l/255*5)+6*Math.round(c/255*5)+Math.round(u/255*5),"value"),enumerable:!1},hexToRgb:{value:a(l=>{let c=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(l.toString(16));if(!c)return[0,0,0];let{colorString:u}=c.groups;u.length===3&&(u=u.split("").map(p=>p+p).join(""));let d=Number.parseInt(u,16);return[d>>16&255,d>>8&255,d&255]},"value"),enumerable:!1},hexToAnsi256:{value:a(l=>s.rgbToAnsi256(...s.hexToRgb(l)),"value"),enumerable:!1}}),s}a(o,"assembleStyles"),Object.defineProperty(t,"exports",{enumerable:!0,get:o})}),Qs=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.printIteratorEntries=r,e.printIteratorValues=n,e.printListItems=o,e.printObjectProperties=i;var t=a((s,l)=>{let c=Object.keys(s).sort(l);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(s).forEach(u=>{Object.getOwnPropertyDescriptor(s,u).enumerable&&c.push(u)}),c},"getKeysOfEnumerableProperties");function r(s,l,c,u,d,p,h=": "){let f="",m=s.next();if(!m.done){f+=l.spacingOuter;let b=c+l.indent;for(;!m.done;){let g=p(m.value[0],l,b,u,d),v=p(m.value[1],l,b,u,d);f+=b+g+h+v,m=s.next(),m.done?l.min||(f+=","):f+=","+l.spacingInner}f+=l.spacingOuter+c}return f}a(r,"printIteratorEntries");function n(s,l,c,u,d,p){let h="",f=s.next();if(!f.done){h+=l.spacingOuter;let m=c+l.indent;for(;!f.done;)h+=m+p(f.value,l,m,u,d),f=s.next(),f.done?l.min||(h+=","):h+=","+l.spacingInner;h+=l.spacingOuter+c}return h}a(n,"printIteratorValues");function o(s,l,c,u,d,p){let h="";if(s.length){h+=l.spacingOuter;let f=c+l.indent;for(let m=0;m<s.length;m++)h+=f,m in s&&(h+=p(s[m],l,f,u,d)),m<s.length-1?h+=","+l.spacingInner:l.min||(h+=",");h+=l.spacingOuter+c}return h}a(o,"printListItems");function i(s,l,c,u,d,p){let h="",f=t(s,l.compareKeys);if(f.length){h+=l.spacingOuter;let m=c+l.indent;for(let b=0;b<f.length;b++){let g=f[b],v=p(g,l,m,u,d),w=p(s[g],l,m,u,d);h+=m+v+": "+w,b<f.length-1?h+=","+l.spacingInner:l.min||(h+=",")}h+=l.spacingOuter+c}return h}a(i,"printObjectProperties")}),uM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Qs(),r=(function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),n=r["jest-symbol-do-not-touch"]||r.Symbol,o=typeof n=="function"&&n.for?n.for("jest.asymmetricMatcher"):1267621,i=" ",s=a((d,p,h,f,m,b)=>{let g=d.toString();return g==="ArrayContaining"||g==="ArrayNotContaining"?++f>p.maxDepth?"["+g+"]":g+i+"["+(0,t.printListItems)(d.sample,p,h,f,m,b)+"]":g==="ObjectContaining"||g==="ObjectNotContaining"?++f>p.maxDepth?"["+g+"]":g+i+"{"+(0,t.printObjectProperties)(d.sample,p,h,f,m,b)+"}":g==="StringMatching"||g==="StringNotMatching"||g==="StringContaining"||g==="StringNotContaining"?g+i+b(d.sample,p,h,f,m):d.toAsymmetricMatcher()},"serialize");e.serialize=s;var l=a(d=>d&&d.$$typeof===o,"test");e.test=l;var c={serialize:s,test:l},u=c;e.default=u}),cM=S((e,t)=>{t.exports=({onlyFirst:r=!1}={})=>{let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,r?void 0:"g")}}),dM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=n(cM()),r=n(Zg());function n(u){return u&&u.__esModule?u:{default:u}}a(n,"_interopRequireDefault");var o=a(u=>u.replace((0,t.default)(),d=>{switch(d){case r.default.red.close:case r.default.green.close:case r.default.cyan.close:case r.default.gray.close:case r.default.white.close:case r.default.yellow.close:case r.default.bgRed.close:case r.default.bgGreen.close:case r.default.bgYellow.close:case r.default.inverse.close:case r.default.dim.close:case r.default.bold.close:case r.default.reset.open:case r.default.reset.close:return"</>";case r.default.red.open:return"<red>";case r.default.green.open:return"<green>";case r.default.cyan.open:return"<cyan>";case r.default.gray.open:return"<gray>";case r.default.white.open:return"<white>";case r.default.yellow.open:return"<yellow>";case r.default.bgRed.open:return"<bgRed>";case r.default.bgGreen.open:return"<bgGreen>";case r.default.bgYellow.open:return"<bgYellow>";case r.default.inverse.open:return"<inverse>";case r.default.dim.open:return"<dim>";case r.default.bold.open:return"<bold>";default:return""}}),"toHumanReadableAnsi"),i=a(u=>typeof u=="string"&&!!u.match((0,t.default)()),"test");e.test=i;var s=a((u,d,p,h,f,m)=>m(o(u),d,p,h,f),"serialize");e.serialize=s;var l={serialize:s,test:i},c=l;e.default=c}),pM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Qs(),r=" ",n=["DOMStringMap","NamedNodeMap"],o=/^(HTML\w*Collection|NodeList)$/,i=a(p=>n.indexOf(p)!==-1||o.test(p),"testName"),s=a(p=>p&&p.constructor&&!!p.constructor.name&&i(p.constructor.name),"test");e.test=s;var l=a(p=>p.constructor.name==="NamedNodeMap","isNamedNodeMap"),c=a((p,h,f,m,b,g)=>{let v=p.constructor.name;return++m>h.maxDepth?"["+v+"]":(h.min?"":v+r)+(n.indexOf(v)!==-1?"{"+(0,t.printObjectProperties)(l(p)?Array.from(p).reduce((w,P)=>(w[P.name]=P.value,w),{}):{...p},h,f,m,b,g)+"}":"["+(0,t.printListItems)(Array.from(p),h,f,m,b,g)+"]")},"serialize");e.serialize=c;var u={serialize:c,test:s},d=u;e.default=d}),fM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return r.replace(/</g,"<").replace(/>/g,">")}a(t,"escapeHTML")}),Zd=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.printText=e.printProps=e.printElementAsLeaf=e.printElement=e.printComment=e.printChildren=void 0;var t=r(fM());function r(u){return u&&u.__esModule?u:{default:u}}a(r,"_interopRequireDefault");var n=a((u,d,p,h,f,m,b)=>{let g=h+p.indent,v=p.colors;return u.map(w=>{let P=d[w],A=b(P,p,g,f,m);return typeof P!="string"&&(A.indexOf(`
|
|
14
|
+
`)!==-1&&(A=p.spacingOuter+g+A+p.spacingOuter+h),A="{"+A+"}"),p.spacingInner+h+v.prop.open+w+v.prop.close+"="+v.value.open+A+v.value.close}).join("")},"printProps");e.printProps=n;var o=a((u,d,p,h,f,m)=>u.map(b=>d.spacingOuter+p+(typeof b=="string"?i(b,d):m(b,d,p,h,f))).join(""),"printChildren");e.printChildren=o;var i=a((u,d)=>{let p=d.colors.content;return p.open+(0,t.default)(u)+p.close},"printText");e.printText=i;var s=a((u,d)=>{let p=d.colors.comment;return p.open+"<!--"+(0,t.default)(u)+"-->"+p.close},"printComment");e.printComment=s;var l=a((u,d,p,h,f)=>{let m=h.colors.tag;return m.open+"<"+u+(d&&m.close+d+h.spacingOuter+f+m.open)+(p?">"+m.close+p+h.spacingOuter+f+m.open+"</"+u:(d&&!h.min?"":" ")+"/")+">"+m.close},"printElement");e.printElement=l;var c=a((u,d)=>{let p=d.colors.tag;return p.open+"<"+u+p.close+" …"+p.open+" />"+p.close},"printElementAsLeaf");e.printElementAsLeaf=c}),hM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Zd(),r=1,n=3,o=8,i=11,s=/^((HTML|SVG)\w*)?Element$/,l=a(g=>{try{return typeof g.hasAttribute=="function"&&g.hasAttribute("is")}catch{return!1}},"testHasAttribute"),c=a(g=>{let v=g.constructor.name,{nodeType:w,tagName:P}=g,A=typeof P=="string"&&P.includes("-")||l(g);return w===r&&(s.test(v)||A)||w===n&&v==="Text"||w===o&&v==="Comment"||w===i&&v==="DocumentFragment"},"testNode"),u=a(g=>{var v;return(g==null||(v=g.constructor)===null||v===void 0?void 0:v.name)&&c(g)},"test");e.test=u;function d(g){return g.nodeType===n}a(d,"nodeIsText");function p(g){return g.nodeType===o}a(p,"nodeIsComment");function h(g){return g.nodeType===i}a(h,"nodeIsFragment");var f=a((g,v,w,P,A,R)=>{if(d(g))return(0,t.printText)(g.data,v);if(p(g))return(0,t.printComment)(g.data,v);let T=h(g)?"DocumentFragment":g.tagName.toLowerCase();return++P>v.maxDepth?(0,t.printElementAsLeaf)(T,v):(0,t.printElement)(T,(0,t.printProps)(h(g)?[]:Array.from(g.attributes).map(E=>E.name).sort(),h(g)?{}:Array.from(g.attributes).reduce((E,x)=>(E[x.name]=x.value,E),{}),v,w+v.indent,P,A,R),(0,t.printChildren)(Array.prototype.slice.call(g.childNodes||g.children),v,w+v.indent,P,A,R),v,w)},"serialize");e.serialize=f;var m={serialize:f,test:u},b=m;e.default=b}),mM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Qs(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",o="@@__IMMUTABLE_KEYED__@@",i="@@__IMMUTABLE_MAP__@@",s="@@__IMMUTABLE_ORDERED__@@",l="@@__IMMUTABLE_RECORD__@@",c="@@__IMMUTABLE_SEQ__@@",u="@@__IMMUTABLE_SET__@@",d="@@__IMMUTABLE_STACK__@@",p=a(x=>"Immutable."+x,"getImmutableName"),h=a(x=>"["+x+"]","printAsLeaf"),f=" ",m="…",b=a((x,C,k,N,U,D,O)=>++N>C.maxDepth?h(p(O)):p(O)+f+"{"+(0,t.printIteratorEntries)(x.entries(),C,k,N,U,D)+"}","printImmutableEntries");function g(x){let C=0;return{next(){if(C<x._keys.length){let k=x._keys[C++];return{done:!1,value:[k,x.get(k)]}}return{done:!0,value:void 0}}}}a(g,"getRecordEntries");var v=a((x,C,k,N,U,D)=>{let O=p(x._name||"Record");return++N>C.maxDepth?h(O):O+f+"{"+(0,t.printIteratorEntries)(g(x),C,k,N,U,D)+"}"},"printImmutableRecord"),w=a((x,C,k,N,U,D)=>{let O=p("Seq");return++N>C.maxDepth?h(O):x[o]?O+f+"{"+(x._iter||x._object?(0,t.printIteratorEntries)(x.entries(),C,k,N,U,D):m)+"}":O+f+"["+(x._iter||x._array||x._collection||x._iterable?(0,t.printIteratorValues)(x.values(),C,k,N,U,D):m)+"]"},"printImmutableSeq"),P=a((x,C,k,N,U,D,O)=>++N>C.maxDepth?h(p(O)):p(O)+f+"["+(0,t.printIteratorValues)(x.values(),C,k,N,U,D)+"]","printImmutableValues"),A=a((x,C,k,N,U,D)=>x[i]?b(x,C,k,N,U,D,x[s]?"OrderedMap":"Map"):x[n]?P(x,C,k,N,U,D,"List"):x[u]?P(x,C,k,N,U,D,x[s]?"OrderedSet":"Set"):x[d]?P(x,C,k,N,U,D,"Stack"):x[c]?w(x,C,k,N,U,D):v(x,C,k,N,U,D),"serialize");e.serialize=A;var R=a(x=>x&&(x[r]===!0||x[l]===!0),"test");e.test=R;var T={serialize:A,test:R},E=T;e.default=E}),yM=S(e=>{var t=60103,r=60106,n=60107,o=60108,i=60114,s=60109,l=60110,c=60112,u=60113,d=60120,p=60115,h=60116,f=60121,m=60122,b=60117,g=60129,v=60131;typeof Symbol=="function"&&Symbol.for&&(w=Symbol.for,t=w("react.element"),r=w("react.portal"),n=w("react.fragment"),o=w("react.strict_mode"),i=w("react.profiler"),s=w("react.provider"),l=w("react.context"),c=w("react.forward_ref"),u=w("react.suspense"),d=w("react.suspense_list"),p=w("react.memo"),h=w("react.lazy"),f=w("react.block"),m=w("react.server.block"),b=w("react.fundamental"),g=w("react.debug_trace_mode"),v=w("react.legacy_hidden"));var w;function P(O){if(typeof O=="object"&&O!==null){var M=O.$$typeof;switch(M){case t:switch(O=O.type,O){case n:case i:case o:case u:case d:return O;default:switch(O=O&&O.$$typeof,O){case l:case c:case h:case p:case s:return O;default:return M}}case r:return M}}}a(P,"y");var A=s,R=t,T=c,E=n,x=h,C=p,k=r,N=i,U=o,D=u;e.ContextConsumer=l,e.ContextProvider=A,e.Element=R,e.ForwardRef=T,e.Fragment=E,e.Lazy=x,e.Memo=C,e.Portal=k,e.Profiler=N,e.StrictMode=U,e.Suspense=D,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(O){return P(O)===l},e.isContextProvider=function(O){return P(O)===s},e.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},e.isForwardRef=function(O){return P(O)===c},e.isFragment=function(O){return P(O)===n},e.isLazy=function(O){return P(O)===h},e.isMemo=function(O){return P(O)===p},e.isPortal=function(O){return P(O)===r},e.isProfiler=function(O){return P(O)===i},e.isStrictMode=function(O){return P(O)===o},e.isSuspense=function(O){return P(O)===u},e.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===n||O===i||O===g||O===o||O===u||O===d||O===v||typeof O=="object"&&O!==null&&(O.$$typeof===h||O.$$typeof===p||O.$$typeof===s||O.$$typeof===l||O.$$typeof===c||O.$$typeof===b||O.$$typeof===f||O[0]===m)},e.typeOf=P}),bM=S((e,t)=>{t.exports=yM()}),gM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=o(bM()),r=Zd();function n(h){if(typeof WeakMap!="function")return null;var f=new WeakMap,m=new WeakMap;return(n=a(function(b){return b?m:f},"_getRequireWildcardCache"))(h)}a(n,"_getRequireWildcardCache");function o(h,f){if(!f&&h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var m=n(f);if(m&&m.has(h))return m.get(h);var b={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in h)if(v!=="default"&&Object.prototype.hasOwnProperty.call(h,v)){var w=g?Object.getOwnPropertyDescriptor(h,v):null;w&&(w.get||w.set)?Object.defineProperty(b,v,w):b[v]=h[v]}return b.default=h,m&&m.set(h,b),b}a(o,"_interopRequireWildcard");var i=a((h,f=[])=>(Array.isArray(h)?h.forEach(m=>{i(m,f)}):h!=null&&h!==!1&&f.push(h),f),"getChildren"),s=a(h=>{let f=h.type;if(typeof f=="string")return f;if(typeof f=="function")return f.displayName||f.name||"Unknown";if(t.isFragment(h))return"React.Fragment";if(t.isSuspense(h))return"React.Suspense";if(typeof f=="object"&&f!==null){if(t.isContextProvider(h))return"Context.Provider";if(t.isContextConsumer(h))return"Context.Consumer";if(t.isForwardRef(h)){if(f.displayName)return f.displayName;let m=f.render.displayName||f.render.name||"";return m!==""?"ForwardRef("+m+")":"ForwardRef"}if(t.isMemo(h)){let m=f.displayName||f.type.displayName||f.type.name||"";return m!==""?"Memo("+m+")":"Memo"}}return"UNDEFINED"},"getType"),l=a(h=>{let{props:f}=h;return Object.keys(f).filter(m=>m!=="children"&&f[m]!==void 0).sort()},"getPropKeys"),c=a((h,f,m,b,g,v)=>++b>f.maxDepth?(0,r.printElementAsLeaf)(s(h),f):(0,r.printElement)(s(h),(0,r.printProps)(l(h),h.props,f,m+f.indent,b,g,v),(0,r.printChildren)(i(h.props.children),f,m+f.indent,b,g,v),f,m),"serialize");e.serialize=c;var u=a(h=>h!=null&&t.isElement(h),"test");e.test=u;var d={serialize:c,test:u},p=d;e.default=p}),vM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Zd(),r=(function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),n=r["jest-symbol-do-not-touch"]||r.Symbol,o=typeof n=="function"&&n.for?n.for("react.test.json"):245830487,i=a(d=>{let{props:p}=d;return p?Object.keys(p).filter(h=>p[h]!==void 0).sort():[]},"getPropKeys"),s=a((d,p,h,f,m,b)=>++f>p.maxDepth?(0,t.printElementAsLeaf)(d.type,p):(0,t.printElement)(d.type,d.props?(0,t.printProps)(i(d),d.props,p,h+p.indent,f,m,b):"",d.children?(0,t.printChildren)(d.children,p,h+p.indent,f,m,b):"",p,h),"serialize");e.serialize=s;var l=a(d=>d&&d.$$typeof===o,"test");e.test=l;var c={serialize:s,test:l},u=c;e.default=u}),wM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DEFAULT_OPTIONS=void 0,e.format=ce,e.plugins=void 0;var t=d(Zg()),r=Qs(),n=d(uM()),o=d(dM()),i=d(pM()),s=d(hM()),l=d(mM()),c=d(gM()),u=d(vM());function d(F){return F&&F.__esModule?F:{default:F}}a(d,"_interopRequireDefault");var p=Object.prototype.toString,h=Date.prototype.toISOString,f=Error.prototype.toString,m=RegExp.prototype.toString,b=a(F=>typeof F.constructor=="function"&&F.constructor.name||"Object","getConstructorName"),g=a(F=>typeof window<"u"&&F===window,"isWindow"),v=/^Symbol\((.*)\)(.*)$/,w=/\n/gi,P=class extends Error{constructor(Q,oe){super(Q),this.stack=oe,this.name=this.constructor.name}};a(P,"PrettyFormatPluginError");var A=P;function R(F){return F==="[object Array]"||F==="[object ArrayBuffer]"||F==="[object DataView]"||F==="[object Float32Array]"||F==="[object Float64Array]"||F==="[object Int8Array]"||F==="[object Int16Array]"||F==="[object Int32Array]"||F==="[object Uint8Array]"||F==="[object Uint8ClampedArray]"||F==="[object Uint16Array]"||F==="[object Uint32Array]"}a(R,"isToStringedArrayType");function T(F){return Object.is(F,-0)?"-0":String(F)}a(T,"printNumber");function E(F){return`${F}n`}a(E,"printBigInt");function x(F,Q){return Q?"[Function "+(F.name||"anonymous")+"]":"[Function]"}a(x,"printFunction");function C(F){return String(F).replace(v,"Symbol($1)")}a(C,"printSymbol");function k(F){return"["+f.call(F)+"]"}a(k,"printError");function N(F,Q,oe,ue){if(F===!0||F===!1)return""+F;if(F===void 0)return"undefined";if(F===null)return"null";let ie=typeof F;if(ie==="number")return T(F);if(ie==="bigint")return E(F);if(ie==="string")return ue?'"'+F.replace(/"|\\/g,"\\$&")+'"':'"'+F+'"';if(ie==="function")return x(F,Q);if(ie==="symbol")return C(F);let de=p.call(F);return de==="[object WeakMap]"?"WeakMap {}":de==="[object WeakSet]"?"WeakSet {}":de==="[object Function]"||de==="[object GeneratorFunction]"?x(F,Q):de==="[object Symbol]"?C(F):de==="[object Date]"?isNaN(+F)?"Date { NaN }":h.call(F):de==="[object Error]"?k(F):de==="[object RegExp]"?oe?m.call(F).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):m.call(F):F instanceof Error?k(F):null}a(N,"printBasicValue");function U(F,Q,oe,ue,ie,de){if(ie.indexOf(F)!==-1)return"[Circular]";ie=ie.slice(),ie.push(F);let pe=++ue>Q.maxDepth,Pe=Q.min;if(Q.callToJSON&&!pe&&F.toJSON&&typeof F.toJSON=="function"&&!de)return $(F.toJSON(),Q,oe,ue,ie,!0);let $e=p.call(F);return $e==="[object Arguments]"?pe?"[Arguments]":(Pe?"":"Arguments ")+"["+(0,r.printListItems)(F,Q,oe,ue,ie,$)+"]":R($e)?pe?"["+F.constructor.name+"]":(Pe||!Q.printBasicPrototype&&F.constructor.name==="Array"?"":F.constructor.name+" ")+"["+(0,r.printListItems)(F,Q,oe,ue,ie,$)+"]":$e==="[object Map]"?pe?"[Map]":"Map {"+(0,r.printIteratorEntries)(F.entries(),Q,oe,ue,ie,$," => ")+"}":$e==="[object Set]"?pe?"[Set]":"Set {"+(0,r.printIteratorValues)(F.values(),Q,oe,ue,ie,$)+"}":pe||g(F)?"["+b(F)+"]":(Pe||!Q.printBasicPrototype&&b(F)==="Object"?"":b(F)+" ")+"{"+(0,r.printObjectProperties)(F,Q,oe,ue,ie,$)+"}"}a(U,"printComplexValue");function D(F){return F.serialize!=null}a(D,"isNewPlugin");function O(F,Q,oe,ue,ie,de){let pe;try{pe=D(F)?F.serialize(Q,oe,ue,ie,de,$):F.print(Q,Pe=>$(Pe,oe,ue,ie,de),Pe=>{let $e=ue+oe.indent;return $e+Pe.replace(w,`
|
|
15
|
+
`+$e)},{edgeSpacing:oe.spacingOuter,min:oe.min,spacing:oe.spacingInner},oe.colors)}catch(Pe){throw new A(Pe.message,Pe.stack)}if(typeof pe!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof pe}".`);return pe}a(O,"printPlugin");function M(F,Q){for(let oe=0;oe<F.length;oe++)try{if(F[oe].test(Q))return F[oe]}catch(ue){throw new A(ue.message,ue.stack)}return null}a(M,"findPlugin");function $(F,Q,oe,ue,ie,de){let pe=M(Q.plugins,F);if(pe!==null)return O(pe,F,Q,oe,ue,ie);let Pe=N(F,Q.printFunctionName,Q.escapeRegex,Q.escapeString);return Pe!==null?Pe:U(F,Q,oe,ue,ie,de)}a($,"printer");var K={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},G=Object.keys(K),re={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:K};e.DEFAULT_OPTIONS=re;function ae(F){if(Object.keys(F).forEach(Q=>{if(!re.hasOwnProperty(Q))throw new Error(`pretty-format: Unknown option "${Q}".`)}),F.min&&F.indent!==void 0&&F.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(F.theme!==void 0){if(F.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof F.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof F.theme}".`)}}a(ae,"validateOptions");var Z=a(F=>G.reduce((Q,oe)=>{let ue=F.theme&&F.theme[oe]!==void 0?F.theme[oe]:K[oe],ie=ue&&t.default[ue];if(ie&&typeof ie.close=="string"&&typeof ie.open=="string")Q[oe]=ie;else throw new Error(`pretty-format: Option "theme" has a key "${oe}" whose value "${ue}" is undefined in ansi-styles.`);return Q},Object.create(null)),"getColorsHighlight"),W=a(()=>G.reduce((F,Q)=>(F[Q]={close:"",open:""},F),Object.create(null)),"getColorsEmpty"),z=a(F=>F&&F.printFunctionName!==void 0?F.printFunctionName:re.printFunctionName,"getPrintFunctionName"),Y=a(F=>F&&F.escapeRegex!==void 0?F.escapeRegex:re.escapeRegex,"getEscapeRegex"),ne=a(F=>F&&F.escapeString!==void 0?F.escapeString:re.escapeString,"getEscapeString"),X=a(F=>{var Q;return{callToJSON:F&&F.callToJSON!==void 0?F.callToJSON:re.callToJSON,colors:F&&F.highlight?Z(F):W(),compareKeys:F&&typeof F.compareKeys=="function"?F.compareKeys:re.compareKeys,escapeRegex:Y(F),escapeString:ne(F),indent:F&&F.min?"":se(F&&F.indent!==void 0?F.indent:re.indent),maxDepth:F&&F.maxDepth!==void 0?F.maxDepth:re.maxDepth,min:F&&F.min!==void 0?F.min:re.min,plugins:F&&F.plugins!==void 0?F.plugins:re.plugins,printBasicPrototype:(Q=F?.printBasicPrototype)!==null&&Q!==void 0?Q:!0,printFunctionName:z(F),spacingInner:F&&F.min?" ":`
|
|
16
|
+
`,spacingOuter:F&&F.min?"":`
|
|
17
|
+
`}},"getConfig");function se(F){return new Array(F+1).join(" ")}a(se,"createIndent");function ce(F,Q){if(Q&&(ae(Q),Q.plugins)){let ue=M(Q.plugins,F);if(ue!==null)return O(ue,F,X(Q),"",0,[])}let oe=N(F,z(Q),Y(Q),ne(Q));return oe!==null?oe:U(F,X(Q),"",0,[])}a(ce,"format");var Me={AsymmetricMatcher:n.default,ConvertAnsi:o.default,DOMCollection:i.default,DOMElement:s.default,Immutable:l.default,ReactElement:c.default,ReactTestComponent:u.default};e.plugins=Me;var Ve=ce;e.default=Ve}),EM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(){var n=this,o=0,i={"@@iterator":a(function(){return i},"iterator"),next:a(function(){if(o<n.length){var s=n[o];return o=o+1,{done:!1,value:s}}else return{done:!0}},"next")};return i}a(t,"iteratorProxy");var r=t;e.default=r}),Za=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=r(EM());function r(i){return i&&i.__esModule?i:{default:i}}a(r,"_interopRequireDefault");function n(i){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},n(i)}a(n,"_typeof");function o(i,s){return typeof Symbol=="function"&&n(Symbol.iterator)==="symbol"&&Object.defineProperty(i,Symbol.iterator,{value:t.default.bind(s)}),i}a(o,"iterationDecorator")}),xM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Za());function r(f){return f&&f.__esModule?f:{default:f}}a(r,"_interopRequireDefault");function n(f,m){return s(f)||i(f,m)||c(f,m)||o()}a(n,"_slicedToArray");function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}a(o,"_nonIterableRest");function i(f,m){var b=f==null?null:typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(b!=null){var g=[],v=!0,w=!1,P,A;try{for(b=b.call(f);!(v=(P=b.next()).done)&&(g.push(P.value),!(m&&g.length===m));v=!0);}catch(R){w=!0,A=R}finally{try{!v&&b.return!=null&&b.return()}finally{if(w)throw A}}return g}}a(i,"_iterableToArrayLimit");function s(f){if(Array.isArray(f))return f}a(s,"_arrayWithHoles");function l(f,m){var b=typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(!b){if(Array.isArray(f)||(b=c(f))||m&&f&&typeof f.length=="number"){b&&(f=b);var g=0,v=a(function(){},"F");return{s:v,n:a(function(){return g>=f.length?{done:!0}:{done:!1,value:f[g++]}},"n"),e:a(function(R){throw R},"e"),f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,P=!1,A;return{s:a(function(){b=b.call(f)},"s"),n:a(function(){var R=b.next();return w=R.done,R},"n"),e:a(function(R){P=!0,A=R},"e"),f:a(function(){try{!w&&b.return!=null&&b.return()}finally{if(P)throw A}},"f")}}a(l,"_createForOfIteratorHelper");function c(f,m){if(f){if(typeof f=="string")return u(f,m);var b=Object.prototype.toString.call(f).slice(8,-1);if(b==="Object"&&f.constructor&&(b=f.constructor.name),b==="Map"||b==="Set")return Array.from(f);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return u(f,m)}}a(c,"_unsupportedIterableToArray");function u(f,m){(m==null||m>f.length)&&(m=f.length);for(var b=0,g=new Array(m);b<m;b++)g[b]=f[b];return g}a(u,"_arrayLikeToArray");var d=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],p={entries:a(function(){return d},"entries"),forEach:a(function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,b=l(d),g;try{for(b.s();!(g=b.n()).done;){var v=n(g.value,2),w=v[0],P=v[1];f.call(m,P,w,d)}}catch(A){b.e(A)}finally{b.f()}},"forEach"),get:a(function(f){var m=d.find(function(b){return b[0]===f});return m&&m[1]},"get"),has:a(function(f){return!!p.get(f)},"has"),keys:a(function(){return d.map(function(f){var m=n(f,1),b=m[0];return b})},"keys"),values:a(function(){return d.map(function(f){var m=n(f,2),b=m[1];return b})},"values")},h=(0,t.default)(p,p.entries());e.default=h}),TM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Za());function r(f){return f&&f.__esModule?f:{default:f}}a(r,"_interopRequireDefault");function n(f,m){return s(f)||i(f,m)||c(f,m)||o()}a(n,"_slicedToArray");function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
20
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}a(o,"_nonIterableRest");function i(f,m){var b=f==null?null:typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(b!=null){var g=[],v=!0,w=!1,P,A;try{for(b=b.call(f);!(v=(P=b.next()).done)&&(g.push(P.value),!(m&&g.length===m));v=!0);}catch(R){w=!0,A=R}finally{try{!v&&b.return!=null&&b.return()}finally{if(w)throw A}}return g}}a(i,"_iterableToArrayLimit");function s(f){if(Array.isArray(f))return f}a(s,"_arrayWithHoles");function l(f,m){var b=typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(!b){if(Array.isArray(f)||(b=c(f))||m&&f&&typeof f.length=="number"){b&&(f=b);var g=0,v=a(function(){},"F");return{s:v,n:a(function(){return g>=f.length?{done:!0}:{done:!1,value:f[g++]}},"n"),e:a(function(R){throw R},"e"),f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
21
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,P=!1,A;return{s:a(function(){b=b.call(f)},"s"),n:a(function(){var R=b.next();return w=R.done,R},"n"),e:a(function(R){P=!0,A=R},"e"),f:a(function(){try{!w&&b.return!=null&&b.return()}finally{if(P)throw A}},"f")}}a(l,"_createForOfIteratorHelper");function c(f,m){if(f){if(typeof f=="string")return u(f,m);var b=Object.prototype.toString.call(f).slice(8,-1);if(b==="Object"&&f.constructor&&(b=f.constructor.name),b==="Map"||b==="Set")return Array.from(f);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return u(f,m)}}a(c,"_unsupportedIterableToArray");function u(f,m){(m==null||m>f.length)&&(m=f.length);for(var b=0,g=new Array(m);b<m;b++)g[b]=f[b];return g}a(u,"_arrayLikeToArray");var d=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],p={entries:a(function(){return d},"entries"),forEach:a(function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,b=l(d),g;try{for(b.s();!(g=b.n()).done;){var v=n(g.value,2),w=v[0],P=v[1];f.call(m,P,w,d)}}catch(A){b.e(A)}finally{b.f()}},"forEach"),get:a(function(f){var m=d.find(function(b){return b[0]===f});return m&&m[1]},"get"),has:a(function(f){return!!p.get(f)},"has"),keys:a(function(){return d.map(function(f){var m=n(f,1),b=m[0];return b})},"keys"),values:a(function(){return d.map(function(f){var m=n(f,2),b=m[1];return b})},"values")},h=(0,t.default)(p,p.entries());e.default=h}),SM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},r=t;e.default=r}),CM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},r=t;e.default=r}),PM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},r=t;e.default=r}),OM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),_M=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r}),AM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},r=t;e.default=r}),RM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r}),qM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r}),NM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]},r=t;e.default=r}),IM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},r=t;e.default=r}),jM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},r=t;e.default=r}),kM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},r=t;e.default=r}),MM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=f(SM()),r=f(CM()),n=f(PM()),o=f(OM()),i=f(_M()),s=f(AM()),l=f(RM()),c=f(qM()),u=f(NM()),d=f(IM()),p=f(jM()),h=f(kM());function f(g){return g&&g.__esModule?g:{default:g}}a(f,"_interopRequireDefault");var m=[["command",t.default],["composite",r.default],["input",n.default],["landmark",o.default],["range",i.default],["roletype",s.default],["section",l.default],["sectionhead",c.default],["select",u.default],["structure",d.default],["widget",p.default],["window",h.default]],b=m;e.default=b}),$M=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),LM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]},r=t;e.default=r}),DM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r}),FM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},r=t;e.default=r}),BM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),UM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),HM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},r=t;e.default=r}),VM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),JM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),zM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},r=t;e.default=r}),WM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),GM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},r=t;e.default=r}),KM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]},r=t;e.default=r}),YM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),XM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),QM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),ZM=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),e$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},r=t;e.default=r}),t$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},r=t;e.default=r}),r$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r}),n$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),o$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},r=t;e.default=r}),a$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),i$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),s$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r}),l$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]},r=t;e.default=r}),u$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]},r=t;e.default=r}),c$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),d$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]},r=t;e.default=r}),p$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),f$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),h$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},r=t;e.default=r}),m$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),y$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},r=t;e.default=r}),b$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),g$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),v$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),w$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),E$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),x$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),T$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},r=t;e.default=r}),S$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]},r=t;e.default=r}),C$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},r=t;e.default=r}),P$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]},r=t;e.default=r}),O$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]},r=t;e.default=r}),_$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]},r=t;e.default=r}),A$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),R$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},r=t;e.default=r}),q$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),N$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]},r=t;e.default=r}),I$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),j$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r}),k$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]},r=t;e.default=r}),M$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},r=t;e.default=r}),$$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},r=t;e.default=r}),L$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),D$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]},r=t;e.default=r}),F$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r}),B$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},r=t;e.default=r}),U$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]},r=t;e.default=r}),H$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),V$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]},r=t;e.default=r}),J$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r}),z$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]},r=t;e.default=r}),W$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]},r=t;e.default=r}),G$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),K$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),Y$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),X$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),Q$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]},r=t;e.default=r}),Z$=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]},r=t;e.default=r}),eL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),tL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]},r=t;e.default=r}),rL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),nL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),oL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]},r=t;e.default=r}),aL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),iL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},r=t;e.default=r}),sL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},r=t;e.default=r}),lL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),uL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},r=t;e.default=r}),cL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]},r=t;e.default=r}),dL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]},r=t;e.default=r}),pL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=H($M()),r=H(LM()),n=H(DM()),o=H(FM()),i=H(BM()),s=H(UM()),l=H(HM()),c=H(VM()),u=H(JM()),d=H(zM()),p=H(WM()),h=H(GM()),f=H(KM()),m=H(YM()),b=H(XM()),g=H(QM()),v=H(ZM()),w=H(e$()),P=H(t$()),A=H(r$()),R=H(n$()),T=H(o$()),E=H(a$()),x=H(i$()),C=H(s$()),k=H(l$()),N=H(u$()),U=H(c$()),D=H(d$()),O=H(p$()),M=H(f$()),$=H(h$()),K=H(m$()),G=H(y$()),re=H(b$()),ae=H(g$()),Z=H(v$()),W=H(w$()),z=H(E$()),Y=H(x$()),ne=H(T$()),X=H(S$()),se=H(C$()),ce=H(P$()),Me=H(O$()),Ve=H(_$()),F=H(A$()),Q=H(R$()),oe=H(q$()),ue=H(N$()),ie=H(I$()),de=H(j$()),pe=H(k$()),Pe=H(M$()),$e=H($$()),st=H(L$()),St=H(D$()),nt=H(F$()),pt=H(B$()),ft=H(U$()),ht=H(H$()),jn=H(V$()),Do=H(J$()),kn=H(z$()),Fo=H(W$()),Bo=H(G$()),Uo=H(K$()),Mn=H(Y$()),Ho=H(X$()),Vo=H(Q$()),Jo=H(Z$()),zo=H(eL()),Wo=H(tL()),Go=H(rL()),Ko=H(nL()),Yo=H(oL()),Xo=H(aL()),Kr=H(iL()),$n=H(sL()),Bt=H(lL()),Ue=H(uL()),Yr=H(cL()),tr=H(dL());function H(Qr){return Qr&&Qr.__esModule?Qr:{default:Qr}}a(H,"_interopRequireDefault");var Xr=[["alert",t.default],["alertdialog",r.default],["application",n.default],["article",o.default],["banner",i.default],["blockquote",s.default],["button",l.default],["caption",c.default],["cell",u.default],["checkbox",d.default],["code",p.default],["columnheader",h.default],["combobox",f.default],["complementary",m.default],["contentinfo",b.default],["definition",g.default],["deletion",v.default],["dialog",w.default],["directory",P.default],["document",A.default],["emphasis",R.default],["feed",T.default],["figure",E.default],["form",x.default],["generic",C.default],["grid",k.default],["gridcell",N.default],["group",U.default],["heading",D.default],["img",O.default],["insertion",M.default],["link",$.default],["list",K.default],["listbox",G.default],["listitem",re.default],["log",ae.default],["main",Z.default],["mark",W.default],["marquee",z.default],["math",Y.default],["menu",ne.default],["menubar",X.default],["menuitem",se.default],["menuitemcheckbox",ce.default],["menuitemradio",Me.default],["meter",Ve.default],["navigation",F.default],["none",Q.default],["note",oe.default],["option",ue.default],["paragraph",ie.default],["presentation",de.default],["progressbar",pe.default],["radio",Pe.default],["radiogroup",$e.default],["region",st.default],["row",St.default],["rowgroup",nt.default],["rowheader",pt.default],["scrollbar",ft.default],["search",ht.default],["searchbox",jn.default],["separator",Do.default],["slider",kn.default],["spinbutton",Fo.default],["status",Bo.default],["strong",Uo.default],["subscript",Mn.default],["superscript",Ho.default],["switch",Vo.default],["tab",Jo.default],["table",zo.default],["tablist",Wo.default],["tabpanel",Go.default],["term",Ko.default],["textbox",Yo.default],["time",Xo.default],["timer",Kr.default],["toolbar",$n.default],["tooltip",Bt.default],["tree",Ue.default],["treegrid",Yr.default],["treeitem",tr.default]],xr=Xr;e.default=xr}),fL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),hL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),mL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),yL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),bL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},r=t;e.default=r}),gL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},r=t;e.default=r}),vL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),wL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},r=t;e.default=r}),EL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),xL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),TL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),SL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},r=t;e.default=r}),CL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),PL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),OL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),_L=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},r=t;e.default=r}),AL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),RL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),qL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),NL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),IL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),jL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),kL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),ML=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),$L=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},r=t;e.default=r}),LL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},r=t;e.default=r}),DL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),FL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},r=t;e.default=r}),BL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},r=t;e.default=r}),UL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]},r=t;e.default=r}),HL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},r=t;e.default=r}),VL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),JL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),zL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),WL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]},r=t;e.default=r}),GL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),KL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]},r=t;e.default=r}),YL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},r=t;e.default=r}),XL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},r=t;e.default=r}),QL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Y(fL()),r=Y(hL()),n=Y(mL()),o=Y(yL()),i=Y(bL()),s=Y(gL()),l=Y(vL()),c=Y(wL()),u=Y(EL()),d=Y(xL()),p=Y(TL()),h=Y(SL()),f=Y(CL()),m=Y(PL()),b=Y(OL()),g=Y(_L()),v=Y(AL()),w=Y(RL()),P=Y(qL()),A=Y(NL()),R=Y(IL()),T=Y(jL()),E=Y(kL()),x=Y(ML()),C=Y($L()),k=Y(LL()),N=Y(DL()),U=Y(FL()),D=Y(BL()),O=Y(UL()),M=Y(HL()),$=Y(VL()),K=Y(JL()),G=Y(zL()),re=Y(WL()),ae=Y(GL()),Z=Y(KL()),W=Y(YL()),z=Y(XL());function Y(se){return se&&se.__esModule?se:{default:se}}a(Y,"_interopRequireDefault");var ne=[["doc-abstract",t.default],["doc-acknowledgments",r.default],["doc-afterword",n.default],["doc-appendix",o.default],["doc-backlink",i.default],["doc-biblioentry",s.default],["doc-bibliography",l.default],["doc-biblioref",c.default],["doc-chapter",u.default],["doc-colophon",d.default],["doc-conclusion",p.default],["doc-cover",h.default],["doc-credit",f.default],["doc-credits",m.default],["doc-dedication",b.default],["doc-endnote",g.default],["doc-endnotes",v.default],["doc-epigraph",w.default],["doc-epilogue",P.default],["doc-errata",A.default],["doc-example",R.default],["doc-footnote",T.default],["doc-foreword",E.default],["doc-glossary",x.default],["doc-glossref",C.default],["doc-index",k.default],["doc-introduction",N.default],["doc-noteref",U.default],["doc-notice",D.default],["doc-pagebreak",O.default],["doc-pagelist",M.default],["doc-part",$.default],["doc-preface",K.default],["doc-prologue",G.default],["doc-pullquote",re.default],["doc-qna",ae.default],["doc-subtitle",Z.default],["doc-tip",W.default],["doc-toc",z.default]],X=ne;e.default=X}),ZL=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},r=t;e.default=r}),eD=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},r=t;e.default=r}),tD=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},r=t;e.default=r}),rD=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(ZL()),r=o(eD()),n=o(tD());function o(l){return l&&l.__esModule?l:{default:l}}a(o,"_interopRequireDefault");var i=[["graphics-document",t.default],["graphics-object",r.default],["graphics-symbol",n.default]],s=i;e.default=s}),ep=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=s(MM()),r=s(pL()),n=s(QL()),o=s(rD()),i=s(Za());function s(w){return w&&w.__esModule?w:{default:w}}a(s,"_interopRequireDefault");function l(w,P,A){return P in w?Object.defineProperty(w,P,{value:A,enumerable:!0,configurable:!0,writable:!0}):w[P]=A,w}a(l,"_defineProperty");function c(w,P){var A=typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(!A){if(Array.isArray(w)||(A=p(w))||P&&w&&typeof w.length=="number"){A&&(w=A);var R=0,T=a(function(){},"F");return{s:T,n:a(function(){return R>=w.length?{done:!0}:{done:!1,value:w[R++]}},"n"),e:a(function(k){throw k},"e"),f:T}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
22
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,x=!1,C;return{s:a(function(){A=A.call(w)},"s"),n:a(function(){var k=A.next();return E=k.done,k},"n"),e:a(function(k){x=!0,C=k},"e"),f:a(function(){try{!E&&A.return!=null&&A.return()}finally{if(x)throw C}},"f")}}a(c,"_createForOfIteratorHelper");function u(w,P){return m(w)||f(w,P)||p(w,P)||d()}a(u,"_slicedToArray");function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
23
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}a(d,"_nonIterableRest");function p(w,P){if(w){if(typeof w=="string")return h(w,P);var A=Object.prototype.toString.call(w).slice(8,-1);if(A==="Object"&&w.constructor&&(A=w.constructor.name),A==="Map"||A==="Set")return Array.from(w);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return h(w,P)}}a(p,"_unsupportedIterableToArray");function h(w,P){(P==null||P>w.length)&&(P=w.length);for(var A=0,R=new Array(P);A<P;A++)R[A]=w[A];return R}a(h,"_arrayLikeToArray");function f(w,P){var A=w==null?null:typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(A!=null){var R=[],T=!0,E=!1,x,C;try{for(A=A.call(w);!(T=(x=A.next()).done)&&(R.push(x.value),!(P&&R.length===P));T=!0);}catch(k){E=!0,C=k}finally{try{!T&&A.return!=null&&A.return()}finally{if(E)throw C}}return R}}a(f,"_iterableToArrayLimit");function m(w){if(Array.isArray(w))return w}a(m,"_arrayWithHoles");var b=[].concat(t.default,r.default,n.default,o.default);b.forEach(function(w){var P=u(w,2),A=P[1],R=c(A.superClass),T;try{for(R.s();!(T=R.n()).done;){var E=T.value,x=c(E),C;try{var k=a(function(){var N=C.value,U=b.find(function(K){var G=u(K,1),re=G[0];return re===N});if(U)for(var D=U[1],O=0,M=Object.keys(D.props);O<M.length;O++){var $=M[O];Object.prototype.hasOwnProperty.call(A.props,$)||Object.assign(A.props,l({},$,D.props[$]))}},"_loop");for(x.s();!(C=x.n()).done;)k()}catch(N){x.e(N)}finally{x.f()}}}catch(N){R.e(N)}finally{R.f()}});var g={entries:a(function(){return b},"entries"),forEach:a(function(w){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,A=c(b),R;try{for(A.s();!(R=A.n()).done;){var T=u(R.value,2),E=T[0],x=T[1];w.call(P,x,E,b)}}catch(C){A.e(C)}finally{A.f()}},"forEach"),get:a(function(w){var P=b.find(function(A){return A[0]===w});return P&&P[1]},"get"),has:a(function(w){return!!g.get(w)},"has"),keys:a(function(){return b.map(function(w){var P=u(w,1),A=P[0];return A})},"keys"),values:a(function(){return b.map(function(w){var P=u(w,2),A=P[1];return A})},"values")},v=(0,i.default)(g,g.entries());e.default=v}),ev={};ut(ev,{dequal:()=>Wi});function Wi(e,t){var r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Wi(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Qu.call(e,r)&&++n&&!Qu.call(t,r)||!(r in t)||!Wi(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}var Qu,nD=Xq(()=>{Qu=Object.prototype.hasOwnProperty,a(Wi,"dequal")}),oD=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(nD(),Qq(ev)),r=o(Za()),n=o(ep());function o(T){return T&&T.__esModule?T:{default:T}}a(o,"_interopRequireDefault");function i(T,E){return c(T)||l(T,E)||d(T,E)||s()}a(i,"_slicedToArray");function s(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
24
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}a(s,"_nonIterableRest");function l(T,E){var x=T==null?null:typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if(x!=null){var C=[],k=!0,N=!1,U,D;try{for(x=x.call(T);!(k=(U=x.next()).done)&&(C.push(U.value),!(E&&C.length===E));k=!0);}catch(O){N=!0,D=O}finally{try{!k&&x.return!=null&&x.return()}finally{if(N)throw D}}return C}}a(l,"_iterableToArrayLimit");function c(T){if(Array.isArray(T))return T}a(c,"_arrayWithHoles");function u(T,E){var x=typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if(!x){if(Array.isArray(T)||(x=d(T))||E&&T&&typeof T.length=="number"){x&&(T=x);var C=0,k=a(function(){},"F");return{s:k,n:a(function(){return C>=T.length?{done:!0}:{done:!1,value:T[C++]}},"n"),e:a(function(O){throw O},"e"),f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
25
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N=!0,U=!1,D;return{s:a(function(){x=x.call(T)},"s"),n:a(function(){var O=x.next();return N=O.done,O},"n"),e:a(function(O){U=!0,D=O},"e"),f:a(function(){try{!N&&x.return!=null&&x.return()}finally{if(U)throw D}},"f")}}a(u,"_createForOfIteratorHelper");function d(T,E){if(T){if(typeof T=="string")return p(T,E);var x=Object.prototype.toString.call(T).slice(8,-1);if(x==="Object"&&T.constructor&&(x=T.constructor.name),x==="Map"||x==="Set")return Array.from(T);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return p(T,E)}}a(d,"_unsupportedIterableToArray");function p(T,E){(E==null||E>T.length)&&(E=T.length);for(var x=0,C=new Array(E);x<E;x++)C[x]=T[x];return C}a(p,"_arrayLikeToArray");var h=[],f=n.default.keys();for(P=0;P<f.length;P++)if(m=f[P],b=n.default.get(m),b)for(g=[].concat(b.baseConcepts,b.relatedConcepts),w=0;w<g.length;w++)v=g[w],v.module==="HTML"&&(function(){var T=v.concept;if(T){var E=h.find(function(N){return(0,t.dequal)(N,T)}),x;E?x=E[1]:x=[];for(var C=!0,k=0;k<x.length;k++)if(x[k]===m){C=!1;break}C&&x.push(m),h.push([T,x])}})();var m,b,g,v,w,P,A={entries:a(function(){return h},"entries"),forEach:a(function(T){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,x=u(h),C;try{for(x.s();!(C=x.n()).done;){var k=i(C.value,2),N=k[0],U=k[1];T.call(E,U,N,h)}}catch(D){x.e(D)}finally{x.f()}},"forEach"),get:a(function(T){var E=h.find(function(x){return T.name===x[0].name&&(0,t.dequal)(T.attributes,x[0].attributes)});return E&&E[1]},"get"),has:a(function(T){return!!A.get(T)},"has"),keys:a(function(){return h.map(function(T){var E=i(T,1),x=E[0];return x})},"keys"),values:a(function(){return h.map(function(T){var E=i(T,2),x=E[1];return x})},"values")},R=(0,r.default)(A,A.entries());e.default=R}),aD=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Za()),r=n(ep());function n(E){return E&&E.__esModule?E:{default:E}}a(n,"_interopRequireDefault");function o(E,x){return l(E)||s(E,x)||u(E,x)||i()}a(o,"_slicedToArray");function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
26
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}a(i,"_nonIterableRest");function s(E,x){var C=E==null?null:typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(C!=null){var k=[],N=!0,U=!1,D,O;try{for(C=C.call(E);!(N=(D=C.next()).done)&&(k.push(D.value),!(x&&k.length===x));N=!0);}catch(M){U=!0,O=M}finally{try{!N&&C.return!=null&&C.return()}finally{if(U)throw O}}return k}}a(s,"_iterableToArrayLimit");function l(E){if(Array.isArray(E))return E}a(l,"_arrayWithHoles");function c(E,x){var C=typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(!C){if(Array.isArray(E)||(C=u(E))||x&&E&&typeof E.length=="number"){C&&(E=C);var k=0,N=a(function(){},"F");return{s:N,n:a(function(){return k>=E.length?{done:!0}:{done:!1,value:E[k++]}},"n"),e:a(function(M){throw M},"e"),f:N}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
27
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var U=!0,D=!1,O;return{s:a(function(){C=C.call(E)},"s"),n:a(function(){var M=C.next();return U=M.done,M},"n"),e:a(function(M){D=!0,O=M},"e"),f:a(function(){try{!U&&C.return!=null&&C.return()}finally{if(D)throw O}},"f")}}a(c,"_createForOfIteratorHelper");function u(E,x){if(E){if(typeof E=="string")return d(E,x);var C=Object.prototype.toString.call(E).slice(8,-1);if(C==="Object"&&E.constructor&&(C=E.constructor.name),C==="Map"||C==="Set")return Array.from(E);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return d(E,x)}}a(u,"_unsupportedIterableToArray");function d(E,x){(x==null||x>E.length)&&(x=E.length);for(var C=0,k=new Array(x);C<x;C++)k[C]=E[C];return k}a(d,"_arrayLikeToArray");var p=[],h=r.default.keys();for(A=0;A<h.length;A++)if(f=h[A],m=r.default.get(f),b=[],m){for(g=[].concat(m.baseConcepts,m.relatedConcepts),P=0;P<g.length;P++)v=g[P],v.module==="HTML"&&(w=v.concept,w!=null&&b.push(w));b.length>0&&p.push([f,b])}var f,m,b,g,v,w,P,A,R={entries:a(function(){return p},"entries"),forEach:a(function(E){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,C=c(p),k;try{for(C.s();!(k=C.n()).done;){var N=o(k.value,2),U=N[0],D=N[1];E.call(x,D,U,p)}}catch(O){C.e(O)}finally{C.f()}},"forEach"),get:a(function(E){var x=p.find(function(C){return C[0]===E});return x&&x[1]},"get"),has:a(function(E){return!!R.get(E)},"has"),keys:a(function(){return p.map(function(E){var x=o(E,1),C=x[0];return C})},"keys"),values:a(function(){return p.map(function(E){var x=o(E,2),C=x[1];return C})},"values")},T=(0,t.default)(R,R.entries());e.default=T}),iD=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var t=s(xM()),r=s(TM()),n=s(ep()),o=s(oD()),i=s(aD());function s(h){return h&&h.__esModule?h:{default:h}}a(s,"_interopRequireDefault");var l=t.default;e.aria=l;var c=r.default;e.dom=c;var u=n.default;e.roles=u;var d=o.default;e.elementRoles=d;var p=i.default;e.roleElements=p}),sD=S((e,t)=>{var r=(function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function l(u,d){if(!s[u]){s[u]={};for(var p=0;p<u.length;p++)s[u][u.charAt(p)]=p}return s[u][d]}a(l,"getBaseValue");var c={compressToBase64:a(function(u){if(u==null)return"";var d=c._compress(u,6,function(p){return o.charAt(p)});switch(d.length%4){default:case 0:return d;case 1:return d+"===";case 2:return d+"==";case 3:return d+"="}},"compressToBase64"),decompressFromBase64:a(function(u){return u==null?"":u==""?null:c._decompress(u.length,32,function(d){return l(o,u.charAt(d))})},"decompressFromBase64"),compressToUTF16:a(function(u){return u==null?"":c._compress(u,15,function(d){return n(d+32)})+" "},"compressToUTF16"),decompressFromUTF16:a(function(u){return u==null?"":u==""?null:c._decompress(u.length,16384,function(d){return u.charCodeAt(d)-32})},"decompressFromUTF16"),compressToUint8Array:a(function(u){for(var d=c.compress(u),p=new Uint8Array(d.length*2),h=0,f=d.length;h<f;h++){var m=d.charCodeAt(h);p[h*2]=m>>>8,p[h*2+1]=m%256}return p},"compressToUint8Array"),decompressFromUint8Array:a(function(u){if(u==null)return c.decompress(u);for(var d=new Array(u.length/2),p=0,h=d.length;p<h;p++)d[p]=u[p*2]*256+u[p*2+1];var f=[];return d.forEach(function(m){f.push(n(m))}),c.decompress(f.join(""))},"decompressFromUint8Array"),compressToEncodedURIComponent:a(function(u){return u==null?"":c._compress(u,6,function(d){return i.charAt(d)})},"compressToEncodedURIComponent"),decompressFromEncodedURIComponent:a(function(u){return u==null?"":u==""?null:(u=u.replace(/ /g,"+"),c._decompress(u.length,32,function(d){return l(i,u.charAt(d))}))},"decompressFromEncodedURIComponent"),compress:a(function(u){return c._compress(u,16,function(d){return n(d)})},"compress"),_compress:a(function(u,d,p){if(u==null)return"";var h,f,m={},b={},g="",v="",w="",P=2,A=3,R=2,T=[],E=0,x=0,C;for(C=0;C<u.length;C+=1)if(g=u.charAt(C),Object.prototype.hasOwnProperty.call(m,g)||(m[g]=A++,b[g]=!0),v=w+g,Object.prototype.hasOwnProperty.call(m,v))w=v;else{if(Object.prototype.hasOwnProperty.call(b,w)){if(w.charCodeAt(0)<256){for(h=0;h<R;h++)E=E<<1,x==d-1?(x=0,T.push(p(E)),E=0):x++;for(f=w.charCodeAt(0),h=0;h<8;h++)E=E<<1|f&1,x==d-1?(x=0,T.push(p(E)),E=0):x++,f=f>>1}else{for(f=1,h=0;h<R;h++)E=E<<1|f,x==d-1?(x=0,T.push(p(E)),E=0):x++,f=0;for(f=w.charCodeAt(0),h=0;h<16;h++)E=E<<1|f&1,x==d-1?(x=0,T.push(p(E)),E=0):x++,f=f>>1}P--,P==0&&(P=Math.pow(2,R),R++),delete b[w]}else for(f=m[w],h=0;h<R;h++)E=E<<1|f&1,x==d-1?(x=0,T.push(p(E)),E=0):x++,f=f>>1;P--,P==0&&(P=Math.pow(2,R),R++),m[v]=A++,w=String(g)}if(w!==""){if(Object.prototype.hasOwnProperty.call(b,w)){if(w.charCodeAt(0)<256){for(h=0;h<R;h++)E=E<<1,x==d-1?(x=0,T.push(p(E)),E=0):x++;for(f=w.charCodeAt(0),h=0;h<8;h++)E=E<<1|f&1,x==d-1?(x=0,T.push(p(E)),E=0):x++,f=f>>1}else{for(f=1,h=0;h<R;h++)E=E<<1|f,x==d-1?(x=0,T.push(p(E)),E=0):x++,f=0;for(f=w.charCodeAt(0),h=0;h<16;h++)E=E<<1|f&1,x==d-1?(x=0,T.push(p(E)),E=0):x++,f=f>>1}P--,P==0&&(P=Math.pow(2,R),R++),delete b[w]}else for(f=m[w],h=0;h<R;h++)E=E<<1|f&1,x==d-1?(x=0,T.push(p(E)),E=0):x++,f=f>>1;P--,P==0&&(P=Math.pow(2,R),R++)}for(f=2,h=0;h<R;h++)E=E<<1|f&1,x==d-1?(x=0,T.push(p(E)),E=0):x++,f=f>>1;for(;;)if(E=E<<1,x==d-1){T.push(p(E));break}else x++;return T.join("")},"_compress"),decompress:a(function(u){return u==null?"":u==""?null:c._decompress(u.length,32768,function(d){return u.charCodeAt(d)})},"decompress"),_decompress:a(function(u,d,p){var h=[],f=4,m=4,b=3,g="",v=[],w,P,A,R,T,E,x,C={val:p(0),position:d,index:1};for(w=0;w<3;w+=1)h[w]=w;for(A=0,T=Math.pow(2,2),E=1;E!=T;)R=C.val&C.position,C.position>>=1,C.position==0&&(C.position=d,C.val=p(C.index++)),A|=(R>0?1:0)*E,E<<=1;switch(A){case 0:for(A=0,T=Math.pow(2,8),E=1;E!=T;)R=C.val&C.position,C.position>>=1,C.position==0&&(C.position=d,C.val=p(C.index++)),A|=(R>0?1:0)*E,E<<=1;x=n(A);break;case 1:for(A=0,T=Math.pow(2,16),E=1;E!=T;)R=C.val&C.position,C.position>>=1,C.position==0&&(C.position=d,C.val=p(C.index++)),A|=(R>0?1:0)*E,E<<=1;x=n(A);break;case 2:return""}for(h[3]=x,P=x,v.push(x);;){if(C.index>u)return"";for(A=0,T=Math.pow(2,b),E=1;E!=T;)R=C.val&C.position,C.position>>=1,C.position==0&&(C.position=d,C.val=p(C.index++)),A|=(R>0?1:0)*E,E<<=1;switch(x=A){case 0:for(A=0,T=Math.pow(2,8),E=1;E!=T;)R=C.val&C.position,C.position>>=1,C.position==0&&(C.position=d,C.val=p(C.index++)),A|=(R>0?1:0)*E,E<<=1;h[m++]=n(A),x=m-1,f--;break;case 1:for(A=0,T=Math.pow(2,16),E=1;E!=T;)R=C.val&C.position,C.position>>=1,C.position==0&&(C.position=d,C.val=p(C.index++)),A|=(R>0?1:0)*E,E<<=1;h[m++]=n(A),x=m-1,f--;break;case 2:return v.join("")}if(f==0&&(f=Math.pow(2,b),b++),h[x])g=h[x];else if(x===m)g=P+P.charAt(0);else return null;v.push(g),h[m++]=P+g.charAt(0),f--,P=g,f==0&&(f=Math.pow(2,b),b++)}},"_decompress")};return c})();typeof define=="function"&&define.amd?define(function(){return r}):typeof t<"u"&&t!=null?t.exports=r:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return r})}),tv=S((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return a(function r(n,o,i){function s(u,d){if(!o[u]){if(!n[u]){var p=typeof Ti=="function"&&Ti;if(!d&&p)return p(u,!0);if(l)return l(u,!0);var h=new Error("Cannot find module '"+u+"'");throw h.code="MODULE_NOT_FOUND",h}var f=o[u]={exports:{}};n[u][0].call(f.exports,function(m){var b=n[u][1][m];return s(b||m)},f,f.exports,r,n,o,i)}return o[u].exports}a(s,"s");for(var l=typeof Ti=="function"&&Ti,c=0;c<i.length;c++)s(i[c]);return s},"e")({1:[function(r,n,o){n.exports=function(i){if(typeof Map!="function"||i){var s=r("./similar");return new s}else return new Map}},{"./similar":2}],2:[function(r,n,o){function i(){return this.list=[],this.lastItem=void 0,this.size=0,this}a(i,"Similar"),i.prototype.get=function(s){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,s))return this.lastItem.val;if(l=this.indexOf(s),l>=0)return this.lastItem=this.list[l],this.list[l].val},i.prototype.set=function(s,l){var c;return this.lastItem&&this.isEqual(this.lastItem.key,s)?(this.lastItem.val=l,this):(c=this.indexOf(s),c>=0?(this.lastItem=this.list[c],this.list[c].val=l,this):(this.lastItem={key:s,val:l},this.list.push(this.lastItem),this.size++,this))},i.prototype.delete=function(s){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,s)&&(this.lastItem=void 0),l=this.indexOf(s),l>=0)return this.size--,this.list.splice(l,1)[0]},i.prototype.has=function(s){var l;return this.lastItem&&this.isEqual(this.lastItem.key,s)?!0:(l=this.indexOf(s),l>=0?(this.lastItem=this.list[l],!0):!1)},i.prototype.forEach=function(s,l){var c;for(c=0;c<this.size;c++)s.call(l||this,this.list[c].val,this.list[c].key,this)},i.prototype.indexOf=function(s){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,s))return l;return-1},i.prototype.isEqual=function(s,l){return s===l||s!==s&&l!==l},n.exports=i},{}],3:[function(r,n,o){var i=r("map-or-similar");n.exports=function(u){var d=new i(!1),p=[];return function(h){var f=a(function(){var m=d,b,g,v=arguments.length-1,w=Array(v+1),P=!0,A;if((f.numArgs||f.numArgs===0)&&f.numArgs!==v+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(A=0;A<v;A++){if(w[A]={cacheItem:m,arg:arguments[A]},m.has(arguments[A])){m=m.get(arguments[A]);continue}P=!1,b=new i(!1),m.set(arguments[A],b),m=b}return P&&(m.has(arguments[v])?g=m.get(arguments[v]):P=!1),P||(g=h.apply(null,arguments),m.set(arguments[v],g)),u>0&&(w[v]={cacheItem:m,arg:arguments[v]},P?s(p,w):p.push(w),p.length>u&&l(p.shift())),f.wasMemoized=P,f.numArgs=v+1,g},"memoizerific");return f.limit=u,f.wasMemoized=!1,f.cache=d,f.lru=p,f}};function s(u,d){var p=u.length,h=d.length,f,m,b;for(m=0;m<p;m++){for(f=!0,b=0;b<h;b++)if(!c(u[m][b].arg,d[b].arg)){f=!1;break}if(f)break}u.push(u.splice(m,1)[0])}a(s,"moveToMostRecentLru");function l(u){var d=u.length,p=u[d-1],h,f;for(p.cacheItem.delete(p.arg),f=d-2;f>=0&&(p=u[f],h=p.cacheItem.get(p.arg),!h||!h.size);f--)p.cacheItem.delete(p.arg)}a(l,"removeCachedResult");function c(u,d){return u===d||u!==u&&d!==d}a(c,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),rv=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,i)=>"%"+((i<16?"0":"")+i.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(o){let i=o.length;if(i===0)return"";let s="",l=0,c=0;e:for(;c<i;c++){let u=o.charCodeAt(c);for(;u<128;){if(r[u]!==1&&(l<c&&(s+=o.slice(l,c)),l=c+1,s+=t[u]),++c===i)break e;u=o.charCodeAt(c)}if(l<c&&(s+=o.slice(l,c)),u<2048){l=c+1,s+=t[192|u>>6]+t[128|u&63];continue}if(u<55296||u>=57344){l=c+1,s+=t[224|u>>12]+t[128|u>>6&63]+t[128|u&63];continue}if(++c,c>=i)throw new Error("URI malformed");let d=o.charCodeAt(c)&1023;l=c+1,u=65536+((u&1023)<<10|d),s+=t[240|u>>18]+t[128|u>>12&63]+t[128|u>>6&63]+t[128|u&63]}return l===0?o:l<i?s+o.slice(l):s}a(n,"encodeString")}),tp=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=rv(),r=a(i=>{switch(typeof i){case"string":return(0,t.encodeString)(i);case"bigint":case"boolean":return""+i;case"number":if(Number.isFinite(i))return i<1e21?""+i:(0,t.encodeString)(""+i);break}return i instanceof Date?(0,t.encodeString)(i.toISOString()):""},"defaultValueSerializer");e.defaultValueSerializer=r;var n=a(i=>i instanceof Date,"defaultShouldSerializeObject");e.defaultShouldSerializeObject=n;var o=a(i=>i,"identityFunc");e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}),nv=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=d;var t=tp(),r=rv();function n(p){return p==="__proto__"||p==="constructor"||p==="prototype"}a(n,"isPrototypeKey");function o(p,h,f,m,b){if(n(h))return p;let g=p[h];return typeof g=="object"&&g!==null?g:!m&&(b||typeof f=="number"||typeof f=="string"&&f*0===0&&f.indexOf(".")===-1)?p[h]=[]:p[h]={}}a(o,"getDeepObject");var i=20,s="[]",l="[",c="]",u=".";function d(p,h,f=0,m,b){let{nestingSyntax:g=t.defaultOptions.nestingSyntax,arrayRepeat:v=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:w=t.defaultOptions.arrayRepeatSyntax,nesting:P=t.defaultOptions.nesting,delimiter:A=t.defaultOptions.delimiter,valueSerializer:R=t.defaultOptions.valueSerializer,shouldSerializeObject:T=t.defaultOptions.shouldSerializeObject}=h,E=typeof A=="number"?String.fromCharCode(A):A,x=b===!0&&v,C=g==="dot"||g==="js"&&!b;if(f>i)return"";let k="",N=!0,U=!1;for(let D in p){let O=p[D],M;m?(M=m,x?w==="bracket"&&(M+=s):C?(M+=u,M+=D):(M+=l,M+=D,M+=c)):M=D,N||(k+=E),typeof O=="object"&&O!==null&&!T(O)?(U=O.pop!==void 0,(P||v&&U)&&(k+=d(O,h,f+1,M,U))):(k+=(0,r.encodeString)(M),k+="=",k+=R(O,D)),N&&(N=!1)}return k}a(d,"stringifyObject")}),lD=S((e,t)=>{var r=12,n=0,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function i(c){var u=c.indexOf("%");if(u===-1)return c;for(var d=c.length,p="",h=0,f=0,m=u,b=r;u>-1&&u<d;){var g=l(c[u+1],4),v=l(c[u+2],0),w=g|v,P=o[w];if(b=o[256+b+P],f=f<<6|w&o[364+P],b===r)p+=c.slice(h,m),p+=f<=65535?String.fromCharCode(f):String.fromCharCode(55232+(f>>10),56320+(f&1023)),f=0,h=u+3,u=m=c.indexOf("%",h);else{if(b===n)return null;if(u+=3,u<d&&c.charCodeAt(u)===37)continue;return null}}return p+c.slice(h)}a(i,"decodeURIComponent");var s={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function l(c,u){var d=s[c];return d===void 0?255:d<<u}a(l,"hexCodeToInt"),t.exports=i}),uD=S(e=>{var t=e&&e.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=d;var r=nv(),n=tp(),o=t(lD()),i=a(p=>{let h=Number(p);return Number.isNaN(h)?p:h},"numberKeyDeserializer");e.numberKeyDeserializer=i;var s=a(p=>{let h=Number(p);return Number.isNaN(h)?p:h},"numberValueDeserializer");e.numberValueDeserializer=s;var l=/\+/g,c=a(function(){},"Empty");c.prototype=Object.create(null);function u(p,h,f,m,b){let g=p.substring(h,f);return m&&(g=g.replace(l," ")),b&&(g=(0,o.default)(g)||g),g}a(u,"computeKeySlice");function d(p,h){let{valueDeserializer:f=n.defaultOptions.valueDeserializer,keyDeserializer:m=n.defaultOptions.keyDeserializer,arrayRepeatSyntax:b=n.defaultOptions.arrayRepeatSyntax,nesting:g=n.defaultOptions.nesting,arrayRepeat:v=n.defaultOptions.arrayRepeat,nestingSyntax:w=n.defaultOptions.nestingSyntax,delimiter:P=n.defaultOptions.delimiter}=h??{},A=typeof P=="string"?P.charCodeAt(0):P,R=w==="js",T=new c;if(typeof p!="string")return T;let E=p.length,x="",C=-1,k=-1,N=-1,U=T,D,O="",M="",$=!1,K=!1,G=!1,re=!1,ae=!1,Z=!1,W=!1,z=0,Y=-1,ne=-1,X=-1;for(let se=0;se<E+1;se++){if(z=se!==E?p.charCodeAt(se):A,z===A){if(W=k>C,W||(k=se),N!==k-1&&(M=u(p,N+1,Y>-1?Y:k,G,$),O=m(M),D!==void 0&&(U=(0,r.getDeepObject)(U,D,O,R&&ae,R&&Z))),W||O!==""){W&&(x=p.slice(k+1,se),re&&(x=x.replace(l," ")),K&&(x=(0,o.default)(x)||x));let ce=f(x,O);if(v){let Me=U[O];Me===void 0?Y>-1?U[O]=[ce]:U[O]=ce:Me.pop?Me.push(ce):U[O]=[Me,ce]}else U[O]=ce}x="",C=se,k=se,$=!1,K=!1,G=!1,re=!1,ae=!1,Z=!1,Y=-1,N=se,U=T,D=void 0,O=""}else z===93?(v&&b==="bracket"&&X===91&&(Y=ne),g&&(w==="index"||R)&&k<=C&&(N!==ne&&(M=u(p,N+1,se,G,$),O=m(M),D!==void 0&&(U=(0,r.getDeepObject)(U,D,O,void 0,R)),D=O,G=!1,$=!1),N=se,Z=!0,ae=!1)):z===46?g&&(w==="dot"||R)&&k<=C&&(N!==ne&&(M=u(p,N+1,se,G,$),O=m(M),D!==void 0&&(U=(0,r.getDeepObject)(U,D,O,R)),D=O,G=!1,$=!1),ae=!0,Z=!1,N=se):z===91?g&&(w==="index"||R)&&k<=C&&(N!==ne&&(M=u(p,N+1,se,G,$),O=m(M),R&&D!==void 0&&(U=(0,r.getDeepObject)(U,D,O,R)),D=O,G=!1,$=!1,ae=!1,Z=!0),N=se):z===61?k<=C?k=se:K=!0:z===43?k>C?re=!0:G=!0:z===37&&(k>C?K=!0:$=!0);ne=se,X=z}return T}a(d,"parse")}),cD=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=nv();function r(n,o){if(n===null||typeof n!="object")return"";let i=o??{};return(0,t.stringifyObject)(n,i)}a(r,"stringify")}),rp=S(e=>{var t=e&&e.__createBinding||(Object.create?function(i,s,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(s,l);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:a(function(){return s[l]},"get")}),Object.defineProperty(i,c,u)}:function(i,s,l,c){c===void 0&&(c=l),i[c]=s[l]}),r=e&&e.__exportStar||function(i,s){for(var l in i)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&t(s,i,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=uD();Object.defineProperty(e,"parse",{enumerable:!0,get:a(function(){return n.parse},"get")});var o=cD();Object.defineProperty(e,"stringify",{enumerable:!0,get:a(function(){return o.stringify},"get")}),r(tp(),e)}),ov=S((e,t)=>{t.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
28
|
+
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}}),dD=S((e,t)=>{t.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}}),av=S((e,t)=>{t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}),pD=S((e,t)=>{t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}),fD=S(e=>{var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(pD()),n=String.fromCodePoint||function(i){var s="";return i>65535&&(i-=65536,s+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),s+=String.fromCharCode(i),s};function o(i){return i>=55296&&i<=57343||i>1114111?"�":(i in r.default&&(i=r.default[i]),n(i))}a(o,"decodeCodePoint"),e.default=o}),Ny=S(e=>{var t=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(ov()),n=t(dD()),o=t(av()),i=t(fD()),s=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=l(o.default),e.decodeHTMLStrict=l(r.default);function l(d){var p=u(d);return function(h){return String(h).replace(s,p)}}a(l,"getStrictDecoder");var c=a(function(d,p){return d<p?1:-1},"sorter");e.decodeHTML=(function(){for(var d=Object.keys(n.default).sort(c),p=Object.keys(r.default).sort(c),h=0,f=0;h<p.length;h++)d[f]===p[h]?(p[h]+=";?",f++):p[h]+=";";var m=new RegExp("&(?:"+p.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),b=u(r.default);function g(v){return v.substr(-1)!==";"&&(v+=";"),b(v)}return a(g,"replacer"),function(v){return String(v).replace(m,g)}})();function u(d){return a(function(p){if(p.charAt(1)==="#"){var h=p.charAt(2);return h==="X"||h==="x"?i.default(parseInt(p.substr(3),16)):i.default(parseInt(p.substr(2),10))}return d[p.slice(1,-1)]||p},"replace")}a(u,"getReplacer")}),Iy=S(e=>{var t=e&&e.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(av()),n=c(r.default),o=u(n);e.encodeXML=v(n);var i=t(ov()),s=c(i.default),l=u(s);e.encodeHTML=f(s,l),e.encodeNonAsciiHTML=v(s);function c(w){return Object.keys(w).sort().reduce(function(P,A){return P[w[A]]="&"+A+";",P},{})}a(c,"getInverseObj");function u(w){for(var P=[],A=[],R=0,T=Object.keys(w);R<T.length;R++){var E=T[R];E.length===1?P.push("\\"+E):A.push(E)}P.sort();for(var x=0;x<P.length-1;x++){for(var C=x;C<P.length-1&&P[C].charCodeAt(1)+1===P[C+1].charCodeAt(1);)C+=1;var k=1+C-x;k<3||P.splice(x,k,P[x]+"-"+P[C])}return A.unshift("["+P.join("")+"]"),new RegExp(A.join("|"),"g")}a(u,"getInverseReplacer");var d=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,p=String.prototype.codePointAt!=null?(function(w){return w.codePointAt(0)}):(function(w){return(w.charCodeAt(0)-55296)*1024+w.charCodeAt(1)-56320+65536});function h(w){return"&#x"+(w.length>1?p(w):w.charCodeAt(0)).toString(16).toUpperCase()+";"}a(h,"singleCharReplacer");function f(w,P){return function(A){return A.replace(P,function(R){return w[R]}).replace(d,h)}}a(f,"getInverse");var m=new RegExp(o.source+"|"+d.source,"g");function b(w){return w.replace(m,h)}a(b,"escape"),e.escape=b;function g(w){return w.replace(o,h)}a(g,"escapeUTF8"),e.escapeUTF8=g;function v(w){return function(P){return P.replace(m,function(A){return w[A]||h(A)})}}a(v,"getASCIIEncoder")}),hD=S(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Ny(),r=Iy();function n(c,u){return(!u||u<=0?t.decodeXML:t.decodeHTML)(c)}a(n,"decode"),e.decode=n;function o(c,u){return(!u||u<=0?t.decodeXML:t.decodeHTMLStrict)(c)}a(o,"decodeStrict"),e.decodeStrict=o;function i(c,u){return(!u||u<=0?r.encodeXML:r.encodeHTML)(c)}a(i,"encode"),e.encode=i;var s=Iy();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:a(function(){return s.encodeXML},"get")}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:a(function(){return s.encodeHTML},"get")}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:a(function(){return s.encodeNonAsciiHTML},"get")}),Object.defineProperty(e,"escape",{enumerable:!0,get:a(function(){return s.escape},"get")}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:a(function(){return s.escapeUTF8},"get")}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:a(function(){return s.encodeHTML},"get")}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:a(function(){return s.encodeHTML},"get")});var l=Ny();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:a(function(){return l.decodeXML},"get")}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:a(function(){return l.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:a(function(){return l.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:a(function(){return l.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:a(function(){return l.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:a(function(){return l.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:a(function(){return l.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:a(function(){return l.decodeXML},"get")})}),mD=S((e,t)=>{function r(O,M){if(!(O instanceof M))throw new TypeError("Cannot call a class as a function")}a(r,"_classCallCheck");function n(O,M){for(var $=0;$<M.length;$++){var K=M[$];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(O,K.key,K)}}a(n,"_defineProperties");function o(O,M,$){return M&&n(O.prototype,M),$&&n(O,$),O}a(o,"_createClass");function i(O,M){var $=typeof Symbol<"u"&&O[Symbol.iterator]||O["@@iterator"];if(!$){if(Array.isArray(O)||($=s(O))||M&&O&&typeof O.length=="number"){$&&(O=$);var K=0,G=a(function(){},"F");return{s:G,n:a(function(){return K>=O.length?{done:!0}:{done:!1,value:O[K++]}},"n"),e:a(function(W){throw W},"e"),f:G}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
29
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var re=!0,ae=!1,Z;return{s:a(function(){$=$.call(O)},"s"),n:a(function(){var W=$.next();return re=W.done,W},"n"),e:a(function(W){ae=!0,Z=W},"e"),f:a(function(){try{!re&&$.return!=null&&$.return()}finally{if(ae)throw Z}},"f")}}a(i,"_createForOfIteratorHelper");function s(O,M){if(O){if(typeof O=="string")return l(O,M);var $=Object.prototype.toString.call(O).slice(8,-1);if($==="Object"&&O.constructor&&($=O.constructor.name),$==="Map"||$==="Set")return Array.from(O);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return l(O,M)}}a(s,"_unsupportedIterableToArray");function l(O,M){(M==null||M>O.length)&&(M=O.length);for(var $=0,K=new Array(M);$<M;$++)K[$]=O[$];return K}a(l,"_arrayLikeToArray");var c=hD(),u={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:d()};function d(){var O={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return w(0,5).forEach(function(M){w(0,5).forEach(function($){w(0,5).forEach(function(K){return p(M,$,K,O)})})}),w(0,23).forEach(function(M){var $=M+232,K=h(M*10+8);O[$]="#"+K+K+K}),O}a(d,"getDefaultColors");function p(O,M,$,K){var G=16+O*36+M*6+$,re=O>0?O*40+55:0,ae=M>0?M*40+55:0,Z=$>0?$*40+55:0;K[G]=f([re,ae,Z])}a(p,"setStyleColor");function h(O){for(var M=O.toString(16);M.length<2;)M="0"+M;return M}a(h,"toHexString");function f(O){var M=[],$=i(O),K;try{for($.s();!(K=$.n()).done;){var G=K.value;M.push(h(G))}}catch(re){$.e(re)}finally{$.f()}return"#"+M.join("")}a(f,"toColorHexString");function m(O,M,$,K){var G;return M==="text"?G=R($,K):M==="display"?G=g(O,$,K):M==="xterm256Foreground"?G=x(O,K.colors[$]):M==="xterm256Background"?G=C(O,K.colors[$]):M==="rgb"&&(G=b(O,$)),G}a(m,"generateOutput");function b(O,M){M=M.substring(2).slice(0,-1);var $=+M.substr(0,2),K=M.substring(5).split(";"),G=K.map(function(re){return("0"+Number(re).toString(16)).substr(-2)}).join("");return E(O,($===38?"color:#":"background-color:#")+G)}a(b,"handleRgb");function g(O,M,$){M=parseInt(M,10);var K={"-1":a(function(){return"<br/>"},"_"),0:a(function(){return O.length&&v(O)},"_"),1:a(function(){return T(O,"b")},"_"),3:a(function(){return T(O,"i")},"_"),4:a(function(){return T(O,"u")},"_"),8:a(function(){return E(O,"display:none")},"_"),9:a(function(){return T(O,"strike")},"_"),22:a(function(){return E(O,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:a(function(){return k(O,"i")},"_"),24:a(function(){return k(O,"u")},"_"),39:a(function(){return x(O,$.fg)},"_"),49:a(function(){return C(O,$.bg)},"_"),53:a(function(){return E(O,"text-decoration:overline")},"_")},G;return K[M]?G=K[M]():4<M&&M<7?G=T(O,"blink"):29<M&&M<38?G=x(O,$.colors[M-30]):39<M&&M<48?G=C(O,$.colors[M-40]):89<M&&M<98?G=x(O,$.colors[8+(M-90)]):99<M&&M<108&&(G=C(O,$.colors[8+(M-100)])),G}a(g,"handleDisplay");function v(O){var M=O.slice(0);return O.length=0,M.reverse().map(function($){return"</"+$+">"}).join("")}a(v,"resetStyles");function w(O,M){for(var $=[],K=O;K<=M;K++)$.push(K);return $}a(w,"range");function P(O){return function(M){return(O===null||M.category!==O)&&O!=="all"}}a(P,"notCategory");function A(O){O=parseInt(O,10);var M=null;return O===0?M="all":O===1?M="bold":2<O&&O<5?M="underline":4<O&&O<7?M="blink":O===8?M="hide":O===9?M="strike":29<O&&O<38||O===39||89<O&&O<98?M="foreground-color":(39<O&&O<48||O===49||99<O&&O<108)&&(M="background-color"),M}a(A,"categoryForCode");function R(O,M){return M.escapeXML?c.encodeXML(O):O}a(R,"pushText");function T(O,M,$){return $||($=""),O.push(M),"<".concat(M).concat($?' style="'.concat($,'"'):"",">")}a(T,"pushTag");function E(O,M){return T(O,"span",M)}a(E,"pushStyle");function x(O,M){return T(O,"span","color:"+M)}a(x,"pushForegroundColor");function C(O,M){return T(O,"span","background-color:"+M)}a(C,"pushBackgroundColor");function k(O,M){var $;if(O.slice(-1)[0]===M&&($=O.pop()),$)return"</"+M+">"}a(k,"closeTag");function N(O,M,$){var K=!1,G=3;function re(){return""}a(re,"remove");function ae(ie,de){return $("xterm256Foreground",de),""}a(ae,"removeXterm256Foreground");function Z(ie,de){return $("xterm256Background",de),""}a(Z,"removeXterm256Background");function W(ie){return M.newline?$("display",-1):$("text",ie),""}a(W,"newline");function z(ie,de){K=!0,de.trim().length===0&&(de="0"),de=de.trimRight(";").split(";");var pe=i(de),Pe;try{for(pe.s();!(Pe=pe.n()).done;){var $e=Pe.value;$("display",$e)}}catch(st){pe.e(st)}finally{pe.f()}return""}a(z,"ansiMess");function Y(ie){return $("text",ie),""}a(Y,"realText");function ne(ie){return $("rgb",ie),""}a(ne,"rgb");var X=[{pattern:/^\x08+/,sub:re},{pattern:/^\x1b\[[012]?K/,sub:re},{pattern:/^\x1b\[\(B/,sub:re},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:ne},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ae},{pattern:/^\x1b\[48;5;(\d+)m/,sub:Z},{pattern:/^\n/,sub:W},{pattern:/^\r+\n/,sub:W},{pattern:/^\r/,sub:W},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:z},{pattern:/^\x1b\[\d?J/,sub:re},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:re},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:re},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Y}];function se(ie,de){de>G&&K||(K=!1,O=O.replace(ie.pattern,ie.sub))}a(se,"process");var ce=[],Me=O,Ve=Me.length;e:for(;Ve>0;){for(var F=0,Q=0,oe=X.length;Q<oe;F=++Q){var ue=X[F];if(se(ue,F),O.length!==Ve){Ve=O.length;continue e}}if(O.length===Ve)break;ce.push(0),Ve=O.length}return ce}a(N,"tokenize");function U(O,M,$){return M!=="text"&&(O=O.filter(P(A($))),O.push({token:M,data:$,category:A($)})),O}a(U,"updateStickyStack");var D=(function(){function O(M){r(this,O),M=M||{},M.colors&&(M.colors=Object.assign({},u.colors,M.colors)),this.options=Object.assign({},u,M),this.stack=[],this.stickyStack=[]}return a(O,"Filter"),o(O,[{key:"toHtml",value:a(function(M){var $=this;M=typeof M=="string"?[M]:M;var K=this.stack,G=this.options,re=[];return this.stickyStack.forEach(function(ae){var Z=m(K,ae.token,ae.data,G);Z&&re.push(Z)}),N(M.join(""),G,function(ae,Z){var W=m(K,ae,Z,G);W&&re.push(W),G.stream&&($.stickyStack=U($.stickyStack,ae,Z))}),K.length&&re.push(v(K)),re.join("")},"toHtml")}]),O})();t.exports=D}),yD=S((e,t)=>{(function(r,n){typeof e=="object"&&typeof t<"u"?t.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self).BrowserDetector=n()})(e,function(){function r(c,u){for(var d=0;d<u.length;d++){var p=u[d];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(c,(h=p.key,f=void 0,typeof(f=(function(m,b){if(typeof m!="object"||m===null)return m;var g=m[Symbol.toPrimitive];if(g!==void 0){var v=g.call(m,b);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(m)})(h,"string"))=="symbol"?f:String(f)),p)}var h,f}a(r,"e");var n={chrome:"Google Chrome",brave:"Brave",crios:"Google Chrome",edge:"Microsoft Edge",edg:"Microsoft Edge",edgios:"Microsoft Edge",fennec:"Mozilla Firefox",jsdom:"JsDOM",mozilla:"Mozilla Firefox",fxios:"Mozilla Firefox",msie:"Microsoft Internet Explorer",opera:"Opera",opios:"Opera",opr:"Opera",opt:"Opera",rv:"Microsoft Internet Explorer",safari:"Safari",samsungbrowser:"Samsung Browser",electron:"Electron"},o={android:"Android",androidTablet:"Android Tablet",cros:"Chrome OS",fennec:"Android Tablet",ipad:"IPad",iphone:"IPhone",jsdom:"JsDOM",linux:"Linux",mac:"Macintosh",tablet:"Android Tablet",win:"Windows","windows phone":"Windows Phone",xbox:"Microsoft Xbox"},i=a(function(c){var u=new RegExp("^-?\\d+(?:.\\d{0,".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,"})?")),d=Number(c).toString().match(u);return d?d[0]:null},"n"),s=a(function(){return typeof window<"u"?window.navigator:null},"i"),l=(function(){function c(h){var f;(function(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")})(this,c),this.userAgent=h||((f=s())===null||f===void 0?void 0:f.userAgent)||null}a(c,"t");var u,d,p;return u=c,d=[{key:"parseUserAgent",value:a(function(h){var f,m,b,g={},v=h||this.userAgent||"",w=v.toLowerCase().replace(/\s\s+/g," "),P=/(edge)\/([\w.]+)/.exec(w)||/(edg)[/]([\w.]+)/.exec(w)||/(opr)[/]([\w.]+)/.exec(w)||/(opt)[/]([\w.]+)/.exec(w)||/(fxios)[/]([\w.]+)/.exec(w)||/(edgios)[/]([\w.]+)/.exec(w)||/(jsdom)[/]([\w.]+)/.exec(w)||/(samsungbrowser)[/]([\w.]+)/.exec(w)||/(electron)[/]([\w.]+)/.exec(w)||/(chrome)[/]([\w.]+)/.exec(w)||/(crios)[/]([\w.]+)/.exec(w)||/(opios)[/]([\w.]+)/.exec(w)||/(version)(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(w)||/(webkit)[/]([\w.]+).*(version)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(w)||/(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(w)||/(webkit)[/]([\w.]+)/.exec(w)||/(opera)(?:.*version|)[/]([\w.]+)/.exec(w)||/(msie) ([\w.]+)/.exec(w)||/(fennec)[/]([\w.]+)/.exec(w)||w.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(w)||w.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(w)||[],A=/(ipad)/.exec(w)||/(ipod)/.exec(w)||/(iphone)/.exec(w)||/(jsdom)/.exec(w)||/(windows phone)/.exec(w)||/(xbox)/.exec(w)||/(win)/.exec(w)||/(tablet)/.exec(w)||/(android)/.test(w)&&/(mobile)/.test(w)===!1&&["androidTablet"]||/(android)/.exec(w)||/(mac)/.exec(w)||/(linux)/.exec(w)||/(cros)/.exec(w)||[],R=P[5]||P[3]||P[1]||null,T=A[0]||null,E=P[4]||P[2]||null,x=s();R==="chrome"&&typeof(x==null||(f=x.brave)===null||f===void 0?void 0:f.isBrave)=="function"&&(R="brave"),R&&(g[R]=!0),T&&(g[T]=!0);var C=!!(g.tablet||g.android||g.androidTablet),k=!!(g.ipad||g.tablet||g.androidTablet),N=!!(g.android||g.androidTablet||g.tablet||g.ipad||g.ipod||g.iphone||g["windows phone"]),U=!!(g.cros||g.mac||g.linux||g.win),D=!!(g.brave||g.chrome||g.crios||g.opr||g.safari||g.edg||g.electron),O=!!(g.msie||g.rv);return{name:(m=n[R])!==null&&m!==void 0?m:null,platform:(b=o[T])!==null&&b!==void 0?b:null,userAgent:v,version:E,shortVersion:E?i(parseFloat(E),2):null,isAndroid:C,isTablet:k,isMobile:N,isDesktop:U,isWebkit:D,isIE:O}},"value")},{key:"getBrowserInfo",value:a(function(){var h=this.parseUserAgent();return{name:h.name,platform:h.platform,userAgent:h.userAgent,version:h.version,shortVersion:h.shortVersion}},"value")}],p=[{key:"VERSION",get:a(function(){return"3.4.0"},"get")}],d&&r(u.prototype,d),p&&r(u,p),Object.defineProperty(u,"prototype",{writable:!1}),c})();return l})}),np={};ut(np,{ARGTYPES_INFO_REQUEST:()=>Cv,ARGTYPES_INFO_RESPONSE:()=>rc,CHANNEL_CREATED:()=>gD,CHANNEL_WS_DISCONNECT:()=>iv,CONFIG_ERROR:()=>sv,CREATE_NEW_STORYFILE_REQUEST:()=>vD,CREATE_NEW_STORYFILE_RESPONSE:()=>wD,CURRENT_STORY_WAS_SET:()=>Zu,DOCS_PREPARED:()=>lv,DOCS_RENDERED:()=>ap,FILE_COMPONENT_SEARCH_REQUEST:()=>ED,FILE_COMPONENT_SEARCH_RESPONSE:()=>xD,FORCE_REMOUNT:()=>Gi,FORCE_RE_RENDER:()=>ip,GLOBALS_UPDATED:()=>Ca,NAVIGATE_URL:()=>TD,PLAY_FUNCTION_THREW_EXCEPTION:()=>uv,PRELOAD_ENTRIES:()=>dv,PREVIEW_BUILDER_PROGRESS:()=>SD,PREVIEW_KEYDOWN:()=>pv,REGISTER_SUBSCRIPTION:()=>CD,REQUEST_WHATS_NEW_DATA:()=>kD,RESET_STORY_ARGS:()=>sp,RESULT_WHATS_NEW_DATA:()=>MD,SAVE_STORY_REQUEST:()=>DD,SAVE_STORY_RESPONSE:()=>FD,SELECT_STORY:()=>PD,SET_CONFIG:()=>OD,SET_CURRENT_STORY:()=>lp,SET_FILTER:()=>_D,SET_GLOBALS:()=>fv,SET_INDEX:()=>AD,SET_STORIES:()=>RD,SET_WHATS_NEW_CACHE:()=>$D,SHARED_STATE_CHANGED:()=>qD,SHARED_STATE_SET:()=>ND,STORIES_COLLAPSE_ALL:()=>ID,STORIES_EXPAND_ALL:()=>jD,STORY_ARGS_UPDATED:()=>hv,STORY_CHANGED:()=>mv,STORY_ERRORED:()=>yv,STORY_FINISHED:()=>tc,STORY_HOT_UPDATED:()=>xv,STORY_INDEX_INVALIDATED:()=>bv,STORY_MISSING:()=>ec,STORY_PREPARED:()=>gv,STORY_RENDERED:()=>Ki,STORY_RENDER_PHASE_CHANGED:()=>mn,STORY_SPECIFIED:()=>vv,STORY_THREW_EXCEPTION:()=>wv,STORY_UNCHANGED:()=>Ev,TELEMETRY_ERROR:()=>Sv,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>LD,UNHANDLED_ERRORS_WHILE_PLAYING:()=>cv,UPDATE_GLOBALS:()=>up,UPDATE_QUERY_PARAMS:()=>Tv,UPDATE_STORY_ARGS:()=>cp,default:()=>bD});var op=(e=>(e.CHANNEL_WS_DISCONNECT="channelWSDisconnect",e.CHANNEL_CREATED="channelCreated",e.CONFIG_ERROR="configError",e.STORY_INDEX_INVALIDATED="storyIndexInvalidated",e.STORY_SPECIFIED="storySpecified",e.SET_CONFIG="setConfig",e.SET_STORIES="setStories",e.SET_INDEX="setIndex",e.SET_CURRENT_STORY="setCurrentStory",e.CURRENT_STORY_WAS_SET="currentStoryWasSet",e.FORCE_RE_RENDER="forceReRender",e.FORCE_REMOUNT="forceRemount",e.PRELOAD_ENTRIES="preloadStories",e.STORY_PREPARED="storyPrepared",e.DOCS_PREPARED="docsPrepared",e.STORY_CHANGED="storyChanged",e.STORY_UNCHANGED="storyUnchanged",e.STORY_RENDERED="storyRendered",e.STORY_FINISHED="storyFinished",e.STORY_MISSING="storyMissing",e.STORY_ERRORED="storyErrored",e.STORY_THREW_EXCEPTION="storyThrewException",e.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",e.STORY_HOT_UPDATED="storyHotUpdated",e.PLAY_FUNCTION_THREW_EXCEPTION="playFunctionThrewException",e.UNHANDLED_ERRORS_WHILE_PLAYING="unhandledErrorsWhilePlaying",e.UPDATE_STORY_ARGS="updateStoryArgs",e.STORY_ARGS_UPDATED="storyArgsUpdated",e.RESET_STORY_ARGS="resetStoryArgs",e.SET_FILTER="setFilter",e.SET_GLOBALS="setGlobals",e.UPDATE_GLOBALS="updateGlobals",e.GLOBALS_UPDATED="globalsUpdated",e.REGISTER_SUBSCRIPTION="registerSubscription",e.PREVIEW_KEYDOWN="previewKeydown",e.PREVIEW_BUILDER_PROGRESS="preview_builder_progress",e.SELECT_STORY="selectStory",e.STORIES_COLLAPSE_ALL="storiesCollapseAll",e.STORIES_EXPAND_ALL="storiesExpandAll",e.DOCS_RENDERED="docsRendered",e.SHARED_STATE_CHANGED="sharedStateChanged",e.SHARED_STATE_SET="sharedStateSet",e.NAVIGATE_URL="navigateUrl",e.UPDATE_QUERY_PARAMS="updateQueryParams",e.REQUEST_WHATS_NEW_DATA="requestWhatsNewData",e.RESULT_WHATS_NEW_DATA="resultWhatsNewData",e.SET_WHATS_NEW_CACHE="setWhatsNewCache",e.TOGGLE_WHATS_NEW_NOTIFICATIONS="toggleWhatsNewNotifications",e.TELEMETRY_ERROR="telemetryError",e.FILE_COMPONENT_SEARCH_REQUEST="fileComponentSearchRequest",e.FILE_COMPONENT_SEARCH_RESPONSE="fileComponentSearchResponse",e.SAVE_STORY_REQUEST="saveStoryRequest",e.SAVE_STORY_RESPONSE="saveStoryResponse",e.ARGTYPES_INFO_REQUEST="argtypesInfoRequest",e.ARGTYPES_INFO_RESPONSE="argtypesInfoResponse",e.CREATE_NEW_STORYFILE_REQUEST="createNewStoryfileRequest",e.CREATE_NEW_STORYFILE_RESPONSE="createNewStoryfileResponse",e))(op||{}),bD=op,{CHANNEL_WS_DISCONNECT:iv,CHANNEL_CREATED:gD,CONFIG_ERROR:sv,CREATE_NEW_STORYFILE_REQUEST:vD,CREATE_NEW_STORYFILE_RESPONSE:wD,CURRENT_STORY_WAS_SET:Zu,DOCS_PREPARED:lv,DOCS_RENDERED:ap,FILE_COMPONENT_SEARCH_REQUEST:ED,FILE_COMPONENT_SEARCH_RESPONSE:xD,FORCE_RE_RENDER:ip,FORCE_REMOUNT:Gi,GLOBALS_UPDATED:Ca,NAVIGATE_URL:TD,PLAY_FUNCTION_THREW_EXCEPTION:uv,UNHANDLED_ERRORS_WHILE_PLAYING:cv,PRELOAD_ENTRIES:dv,PREVIEW_BUILDER_PROGRESS:SD,PREVIEW_KEYDOWN:pv,REGISTER_SUBSCRIPTION:CD,RESET_STORY_ARGS:sp,SELECT_STORY:PD,SET_CONFIG:OD,SET_CURRENT_STORY:lp,SET_FILTER:_D,SET_GLOBALS:fv,SET_INDEX:AD,SET_STORIES:RD,SHARED_STATE_CHANGED:qD,SHARED_STATE_SET:ND,STORIES_COLLAPSE_ALL:ID,STORIES_EXPAND_ALL:jD,STORY_ARGS_UPDATED:hv,STORY_CHANGED:mv,STORY_ERRORED:yv,STORY_INDEX_INVALIDATED:bv,STORY_MISSING:ec,STORY_PREPARED:gv,STORY_RENDER_PHASE_CHANGED:mn,STORY_RENDERED:Ki,STORY_FINISHED:tc,STORY_SPECIFIED:vv,STORY_THREW_EXCEPTION:wv,STORY_UNCHANGED:Ev,STORY_HOT_UPDATED:xv,UPDATE_GLOBALS:up,UPDATE_QUERY_PARAMS:Tv,UPDATE_STORY_ARGS:cp,REQUEST_WHATS_NEW_DATA:kD,RESULT_WHATS_NEW_DATA:MD,SET_WHATS_NEW_CACHE:$D,TOGGLE_WHATS_NEW_NOTIFICATIONS:LD,TELEMETRY_ERROR:Sv,SAVE_STORY_REQUEST:DD,SAVE_STORY_RESPONSE:FD,ARGTYPES_INFO_REQUEST:Cv,ARGTYPES_INFO_RESPONSE:rc}=op,Pv={};ut(Pv,{global:()=>te});var te=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})(),Ov={"@storybook/global":"__STORYBOOK_MODULE_GLOBAL__","storybook/test":"__STORYBOOK_MODULE_TEST__","storybook/actions":"__STORYBOOK_MODULE_ACTIONS__","storybook/preview-api":"__STORYBOOK_MODULE_PREVIEW_API__","storybook/internal/channels":"__STORYBOOK_MODULE_CHANNELS__","storybook/internal/client-logger":"__STORYBOOK_MODULE_CLIENT_LOGGER__","storybook/internal/core-events":"__STORYBOOK_MODULE_CORE_EVENTS__","storybook/internal/preview-errors":"__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__","storybook/internal/types":"__STORYBOOK_MODULE_TYPES__","storybook/internal/preview-api":"__STORYBOOK_MODULE_PREVIEW_API__"},BD=Object.keys(Ov),_v={};ut(_v,{Channel:()=>Zs,HEARTBEAT_INTERVAL:()=>Dw,HEARTBEAT_MAX_LATENCY:()=>Fw,PostMessageTransport:()=>Lw,WebsocketTransport:()=>Uw,createBrowserChannel:()=>Hw,default:()=>fB});function ge(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(l,c){var u=c.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(d){var p,h;return(h=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&h!==void 0?h:0})):l},[]);if(o.length){var i=new RegExp(`
|
|
30
|
+
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(l){return l.replace(i,`
|
|
31
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var s=n[0];return t.forEach(function(l,c){var u=s.match(/(?:^|\n)( *)$/),d=u?u[1]:"",p=l;typeof l=="string"&&l.includes(`
|
|
32
|
+
`)&&(p=String(l).split(`
|
|
33
|
+
`).map(function(h,f){return f===0?h:""+d+h}).join(`
|
|
34
|
+
`)),s+=p+n[c+1]}),s}a(ge,"dedent");var UD=ge,jy=new Map,HD="UNIVERSAL_STORE:",Ct={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},Cr=class fe{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=a(()=>(this.debug("getState",{state:this.state}),this.state),"getState"),this.subscribe=a((n,o)=>{let i=typeof n=="function",s=i?"*":n,l=i?n:o;if(this.debug("subscribe",{eventType:s,listener:l}),!l)throw new TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(s)||this.listeners.set(s,new Set),this.listeners.get(s).add(l),()=>{this.debug("unsubscribe",{eventType:s,listener:l}),this.listeners.has(s)&&(this.listeners.get(s).delete(l),this.listeners.get(s)?.size===0&&this.listeners.delete(s))}},"subscribe"),this.send=a(n=>{if(this.debug("send",{event:n}),this.status!==fe.Status.READY)throw new TypeError(ge`Cannot send event before store is ready. You can get the current status with store.status,
|
|
35
|
+
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
36
|
+
${JSON.stringify({event:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(n,{actor:this.actor}),this.emitToChannel(n,{actor:this.actor})},"send"),this.debugging=t.debug??!1,!fe.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(fe.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?fe.ActorType.LEADER:fe.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${HD}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===fe.ActorType.LEADER)this.syncing={state:Ct.RESOLVED,promise:Promise.resolve()};else{let n,o,i=new Promise((s,l)=>{n=a(()=>{this.syncing.state===Ct.PENDING&&(this.syncing.state=Ct.RESOLVED,s())},"syncingResolve"),o=a(c=>{this.syncing.state===Ct.PENDING&&(this.syncing.state=Ct.REJECTED,l(c))},"syncingReject")});this.syncing={state:Ct.PENDING,promise:i,resolve:n,reject:o}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=r?.channel??fe.preparation.channel,this.environment=r?.environment??fe.preparation.environment,this.channel&&this.environment?(fe.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):fe.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((o,i)=>{t=a(s=>{o(s)},"resolveRef"),r=a((...s)=>{i(s)},"rejectRef")});fe.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??fe.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return fe.Status.UNPREPARED;switch(this.syncing?.state){case Ct.PENDING:case void 0:return fe.Status.SYNCING;case Ct.REJECTED:return fe.Status.ERROR;case Ct.RESOLVED:default:return fe.Status.READY}}untilReady(){return Promise.all([fe.preparation.promise,this.syncing?.promise])}static create(t){if(!t||typeof t?.id!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(ge`[UniversalStore]
|
|
37
|
+
create`,{options:t});let r=jy.get(t.id);if(r)return console.warn(ge`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
|
|
38
|
+
You should reuse the existing instance instead of trying to create a new one.`),r;fe.isInternalConstructing=!0;let n=new fe(t);return jy.set(t.id,n),n}static __prepare(t,r){fe.preparation.channel=t,fe.preparation.environment=r,fe.preparation.resolve({channel:t,environment:r})}setState(t){let r=this.state,n=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:n,previousState:r,updater:t}),this.status!==fe.Status.READY)throw new TypeError(ge`Cannot set state before store is ready. You can get the current status with store.status,
|
|
39
|
+
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
40
|
+
${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let o={type:fe.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(o,{actor:this.actor}),this.emitToListeners(o,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(fe.InternalEventType.SET_STATE,({payload:r},n)=>{t(r.state,r.previousState,n)})}emitToChannel(t,r){this.debug("emitToChannel",{event:t,eventInfo:r,channel:!!this.channel}),this.channel?.emit(this.channelEventName,{event:t,eventInfo:r})}prepareThis({channel:t,environment:r}){this.channel=t,this.environment=r,this.debug("prepared",{channel:!!t,environment:r}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===fe.ActorType.LEADER?this.emitToChannel({type:fe.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:fe.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:fe.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new TypeError(`No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`))},1e3))}emitToListeners(t,r){let n=this.listeners.get(t.type),o=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:o}),[...n??[],...o??[]].forEach(i=>i(t,r))}handleChannelEvents(t){let{event:r,eventInfo:n}=t;if([n.actor.id,n.forwardingActor?.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(this.syncing?.state===Ct.PENDING&&r.type!==fe.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===fe.ActorType.LEADER){let o=!0;switch(r.type){case fe.InternalEventType.EXISTING_STATE_REQUEST:o=!1;let i={type:fe.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:i}),this.emitToChannel(i,{actor:this.actor}),this.emitToListeners(i,{actor:this.actor});break;case fe.InternalEventType.LEADER_CREATED:o=!1,this.syncing.state=Ct.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(ge`Detected multiple UniversalStore leaders created with the same id "${this.id}".
|
|
41
|
+
Only one leader can exists at a time, your stores are now in an invalid state.
|
|
42
|
+
Leaders detected:
|
|
43
|
+
this: ${JSON.stringify(this.actor,null,2)}
|
|
44
|
+
other: ${JSON.stringify(n.actor,null,2)}`);break}o&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===fe.ActorType.FOLLOWER)switch(r.type){case fe.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==Ct.PENDING)break;this.syncing.resolve?.();let o={type:fe.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(o,n);break}switch(r.type){case fe.InternalEventType.SET_STATE:this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state;break}this.emitToListeners(r,{actor:n.actor})}debug(t,r){this.debugging&&console.debug(ge`[UniversalStore::${this.id}::${this.environment??fe.Environment.UNKNOWN}]
|
|
45
|
+
${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){fe.preparation.reject(new Error("reset")),fe.setupPreparationPromise(),fe.isInternalConstructing=!1}};a(Cr,"UniversalStore"),Cr.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},Cr.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},Cr.InternalEventType={EXISTING_STATE_REQUEST:"__EXISTING_STATE_REQUEST",EXISTING_STATE_RESPONSE:"__EXISTING_STATE_RESPONSE",SET_STATE:"__SET_STATE",LEADER_CREATED:"__LEADER_CREATED",FOLLOWER_CREATED:"__FOLLOWER_CREATED"},Cr.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},Cr.isInternalConstructing=!1,Cr.setupPreparationPromise();var Ou=Cr,VD=a(e=>e.transports!==void 0,"isMulti"),JD=a(()=>Math.random().toString(16).slice(2),"generateRandomId"),Av=class{constructor(t={}){this.sender=JD(),this.events={},this.data={},this.transports=[],this.isAsync=t.async||!1,VD(t)?(this.transports=t.transports||[],this.transports.forEach(r=>{r.setHandler(n=>this.handleEvent(n))})):this.transports=t.transport?[t.transport]:[],this.transports.forEach(r=>{r.setHandler(n=>this.handleEvent(n))})}get hasTransport(){return this.transports.length>0}addListener(t,r){this.events[t]=this.events[t]||[],this.events[t].push(r)}emit(t,...r){let n={type:t,args:r,from:this.sender},o={};r.length>=1&&r[0]&&r[0].options&&(o=r[0].options);let i=a(()=>{this.transports.forEach(s=>{s.send(n,o)}),this.handleEvent(n)},"handler");this.isAsync?setImmediate(i):i()}last(t){return this.data[t]}eventNames(){return Object.keys(this.events)}listenerCount(t){let r=this.listeners(t);return r?r.length:0}listeners(t){return this.events[t]||void 0}once(t,r){let n=this.onceListener(t,r);this.addListener(t,n)}removeAllListeners(t){t?this.events[t]&&delete this.events[t]:this.events={}}removeListener(t,r){let n=this.listeners(t);n&&(this.events[t]=n.filter(o=>o!==r))}on(t,r){this.addListener(t,r)}off(t,r){this.removeListener(t,r)}handleEvent(t){let r=this.listeners(t.type);r&&r.length&&r.forEach(n=>{n.apply(t,t.args)}),this.data[t.type]=t.args}onceListener(t,r){let n=a((...o)=>(this.removeListener(t,n),r(...o)),"onceListener");return n}};a(Av,"Channel");var Zs=Av,Rv={};ut(Rv,{deprecate:()=>dp,logger:()=>Ne,once:()=>Be,pretty:()=>Et});var{LOGLEVEL:zD}=te,Ar={trace:1,debug:2,info:3,warn:4,error:5,silent:10},WD=zD,Ln=Ar[WD]||Ar.info,Ne={trace:a((e,...t)=>{Ln<=Ar.trace&&console.trace(e,...t)},"trace"),debug:a((e,...t)=>{Ln<=Ar.debug&&console.debug(e,...t)},"debug"),info:a((e,...t)=>{Ln<=Ar.info&&console.info(e,...t)},"info"),warn:a((e,...t)=>{Ln<=Ar.warn&&console.warn(e,...t)},"warn"),error:a((e,...t)=>{Ln<=Ar.error&&console.error(e,...t)},"error"),log:a((e,...t)=>{Ln<Ar.silent&&console.log(e,...t)},"log")},nc=new Set,Be=a(e=>(t,...r)=>{if(!nc.has(t))return nc.add(t),Ne[e](t,...r)},"once");Be.clear=()=>nc.clear();Be.trace=Be("trace");Be.debug=Be("debug");Be.info=Be("info");Be.warn=Be("warn");Be.error=Be("error");Be.log=Be("log");var dp=Be("warn"),Et=a(e=>(...t)=>{let r=[];if(t.length){let n=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,o=/<\/span>/gi,i;for(r.push(t[0].replace(n,"%c").replace(o,"%c"));i=n.exec(t[0]);)r.push(i[2]),r.push("");for(let s=1;s<t.length;s++)r.push(t[s])}Ne[e].apply(Ne,r)},"pretty");Et.trace=Et("trace");Et.debug=Et("debug");Et.info=Et("info");Et.warn=Et("warn");Et.error=Et("error");var GD=Object.create,qv=Object.defineProperty,KD=Object.getOwnPropertyDescriptor,Nv=Object.getOwnPropertyNames,YD=Object.getPrototypeOf,XD=Object.prototype.hasOwnProperty,be=a((e,t)=>a(function(){return t||(0,e[Nv(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),QD=a((e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Nv(t))!XD.call(e,o)&&o!==r&&qv(e,o,{get:a(()=>t[o],"get"),enumerable:!(n=KD(t,o))||n.enumerable});return e},"__copyProps"),pp=a((e,t,r)=>(r=e!=null?GD(YD(e)):{},QD(t||!e||!e.__esModule?qv(r,"default",{value:e,enumerable:!0}):r,e)),"__toESM"),ZD=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],eF=["detail"];function Iv(e){let t=ZD.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of eF.filter(n=>e[n]!==void 0))t[r]=e[r];return t}a(Iv,"extractEventHiddenProperties");var jv=be({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),tF=be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),rF=be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),nF=be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),oF=be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),aF=be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),fp=be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),iF=be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),sF=be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),lF=be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),uF=be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),cF=be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),dF=be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),pF=be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),fF=be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||a(function(r){return r!==r},"isNaN2")}}),hF=be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=fF();t.exports=a(function(n){return r(n)||n===0?n:n<0?-1:1},"sign")}}),mF=be({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),hp=be({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=mF();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),yF=be({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),kv=be({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=a(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;r[n]=i;for(var s in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(r,n);if(c.value!==i||c.enumerable!==!0)return!1}return!0},"hasSymbols")}}),Mv=be({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=kv();t.exports=a(function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()},"hasNativeSymbols")}}),$v=be({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),Lv=be({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=jv();t.exports=r.getPrototypeOf||null}}),bF=be({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,i="[object Function]",s=a(function(u,d){for(var p=[],h=0;h<u.length;h+=1)p[h]=u[h];for(var f=0;f<d.length;f+=1)p[f+u.length]=d[f];return p},"concatty2"),l=a(function(u,d){for(var p=[],h=d||0,f=0;h<u.length;h+=1,f+=1)p[f]=u[h];return p},"slicy2"),c=a(function(u,d){for(var p="",h=0;h<u.length;h+=1)p+=u[h],h+1<u.length&&(p+=d);return p},"joiny");t.exports=a(function(u){var d=this;if(typeof d!="function"||n.apply(d)!==i)throw new TypeError(r+d);for(var p=l(arguments,1),h,f=a(function(){if(this instanceof h){var w=d.apply(this,s(p,arguments));return Object(w)===w?w:this}return d.apply(u,s(p,arguments))},"binder"),m=o(0,d.length-p.length),b=[],g=0;g<m;g++)b[g]="$"+g;if(h=Function("binder","return function ("+c(b,",")+"){ return binder.apply(this,arguments); }")(f),d.prototype){var v=a(function(){},"Empty2");v.prototype=d.prototype,h.prototype=new v,v.prototype=null}return h},"bind")}}),el=be({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=bF();t.exports=Function.prototype.bind||r}}),mp=be({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),Dv=be({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),gF=be({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),vF=be({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=el(),n=Dv(),o=mp(),i=gF();t.exports=i||r.call(o,n)}}),Fv=be({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=el(),n=fp(),o=mp(),i=vF();t.exports=a(function(s){if(s.length<1||typeof s[0]!="function")throw new n("a function is required");return i(r,o,s)},"callBindBasic")}}),wF=be({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=Fv(),n=hp(),o;try{o=[].__proto__===Array.prototype}catch(c){if(!c||typeof c!="object"||!("code"in c)||c.code!=="ERR_PROTO_ACCESS")throw c}var i=!!o&&n&&n(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;t.exports=i&&typeof i.get=="function"?r([i.get]):typeof l=="function"?a(function(c){return l(c==null?c:s(c))},"getDunder"):!1}}),EF=be({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=$v(),n=Lv(),o=wF();t.exports=r?a(function(i){return r(i)},"getProto"):n?a(function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return n(i)},"getProto"):o?a(function(i){return o(i)},"getProto"):null}}),Bv=be({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=el();t.exports=o.call(r,n)}}),xF=be({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=jv(),o=tF(),i=rF(),s=nF(),l=oF(),c=aF(),u=fp(),d=iF(),p=sF(),h=lF(),f=uF(),m=cF(),b=dF(),g=pF(),v=hF(),w=Function,P=a(function(F){try{return w('"use strict"; return ('+F+").constructor;")()}catch{}},"getEvalledConstructor"),A=hp(),R=yF(),T=a(function(){throw new u},"throwTypeError"),E=A?(function(){try{return arguments.callee,T}catch{try{return A(arguments,"callee").get}catch{return T}}})():T,x=Mv()(),C=EF(),k=Lv(),N=$v(),U=Dv(),D=mp(),O={},M=typeof Uint8Array>"u"||!C?r:C(Uint8Array),$={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":x&&C?C([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":O,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":x&&C?C(C([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!x||!C?r:C(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":A,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!x||!C?r:C(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":x&&C?C(""[Symbol.iterator]()):r,"%Symbol%":x?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":E,"%TypedArray%":M,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":U,"%Object.defineProperty%":R,"%Object.getPrototypeOf%":k,"%Math.abs%":p,"%Math.floor%":h,"%Math.max%":f,"%Math.min%":m,"%Math.pow%":b,"%Math.round%":g,"%Math.sign%":v,"%Reflect.getPrototypeOf%":N};if(C)try{null.error}catch(F){K=C(C(F)),$["%Error.prototype%"]=K}var K,G=a(function F(Q){var oe;if(Q==="%AsyncFunction%")oe=P("async function () {}");else if(Q==="%GeneratorFunction%")oe=P("function* () {}");else if(Q==="%AsyncGeneratorFunction%")oe=P("async function* () {}");else if(Q==="%AsyncGenerator%"){var ue=F("%AsyncGeneratorFunction%");ue&&(oe=ue.prototype)}else if(Q==="%AsyncIteratorPrototype%"){var ie=F("%AsyncGenerator%");ie&&C&&(oe=C(ie.prototype))}return $[Q]=oe,oe},"doEval2"),re={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ae=el(),Z=Bv(),W=ae.call(D,Array.prototype.concat),z=ae.call(U,Array.prototype.splice),Y=ae.call(D,String.prototype.replace),ne=ae.call(D,String.prototype.slice),X=ae.call(D,RegExp.prototype.exec),se=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ce=/\\(\\)?/g,Me=a(function(F){var Q=ne(F,0,1),oe=ne(F,-1);if(Q==="%"&&oe!=="%")throw new c("invalid intrinsic syntax, expected closing `%`");if(oe==="%"&&Q!=="%")throw new c("invalid intrinsic syntax, expected opening `%`");var ue=[];return Y(F,se,function(ie,de,pe,Pe){ue[ue.length]=pe?Y(Pe,ce,"$1"):de||ie}),ue},"stringToPath3"),Ve=a(function(F,Q){var oe=F,ue;if(Z(re,oe)&&(ue=re[oe],oe="%"+ue[0]+"%"),Z($,oe)){var ie=$[oe];if(ie===O&&(ie=G(oe)),typeof ie>"u"&&!Q)throw new u("intrinsic "+F+" exists, but is not available. Please file an issue!");return{alias:ue,name:oe,value:ie}}throw new c("intrinsic "+F+" does not exist!")},"getBaseIntrinsic2");t.exports=a(function(F,Q){if(typeof F!="string"||F.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Q!="boolean")throw new u('"allowMissing" argument must be a boolean');if(X(/^%?[^%]*%?$/,F)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var oe=Me(F),ue=oe.length>0?oe[0]:"",ie=Ve("%"+ue+"%",Q),de=ie.name,pe=ie.value,Pe=!1,$e=ie.alias;$e&&(ue=$e[0],z(oe,W([0,1],$e)));for(var st=1,St=!0;st<oe.length;st+=1){var nt=oe[st],pt=ne(nt,0,1),ft=ne(nt,-1);if((pt==='"'||pt==="'"||pt==="`"||ft==='"'||ft==="'"||ft==="`")&&pt!==ft)throw new c("property names with quotes must have matching quotes");if((nt==="constructor"||!St)&&(Pe=!0),ue+="."+nt,de="%"+ue+"%",Z($,de))pe=$[de];else if(pe!=null){if(!(nt in pe)){if(!Q)throw new u("base intrinsic for "+F+" exists, but the property is not available.");return}if(A&&st+1>=oe.length){var ht=A(pe,nt);St=!!ht,St&&"get"in ht&&!("originalValue"in ht.get)?pe=ht.get:pe=pe[nt]}else St=Z(pe,nt),pe=pe[nt];St&&!Pe&&($[de]=pe)}}return pe},"GetIntrinsic")}}),yp=be({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=xF(),n=Fv(),o=n([r("%String.prototype.indexOf%")]);t.exports=a(function(i,s){var l=r(i,!!s);return typeof l=="function"&&o(i,".prototype.")>-1?n([l]):l},"callBoundIntrinsic")}}),TF=be({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=kv();t.exports=a(function(){return r()&&!!Symbol.toStringTag},"hasToStringTagShams")}}),Uv=be({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=yp(),n=TF()(),o=Bv(),i=hp(),s;n?(l=r("RegExp.prototype.exec"),c={},u=a(function(){throw c},"throwRegexMarker"),d={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(d[Symbol.toPrimitive]=u),s=a(function(f){if(!f||typeof f!="object")return!1;var m=i(f,"lastIndex"),b=m&&o(m,"value");if(!b)return!1;try{l(f,d)}catch(g){return g===c}},"isRegex")):(p=r("Object.prototype.toString"),h="[object RegExp]",s=a(function(f){return!f||typeof f!="object"&&typeof f!="function"?!1:p(f)===h},"isRegex"));var l,c,u,d,p,h;t.exports=s}}),SF=be({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var i=r.call(o);return i==="[object Function]"||typeof o=="function"&&i!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}a(n,"isFunction3")}}),CF=be({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=yp(),n=Uv(),o=r("RegExp.prototype.exec"),i=fp();t.exports=a(function(s){if(!n(s))throw new i("`regex` must be a RegExp");return a(function(l){return o(s,l)!==null},"test")},"regexTester")}}),PF=be({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=yp(),n=r("Object.prototype.toString"),o=Mv()(),i=CF();o?(s=r("Symbol.prototype.toString"),l=i(/^Symbol\(.*\)$/),c=a(function(u){return typeof u.valueOf()!="symbol"?!1:l(s(u))},"isRealSymbolObject"),t.exports=a(function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return c(u)}catch{return!1}},"isSymbol3")):t.exports=a(function(u){return!1},"isSymbol3");var s,l,c}}),OF=pp(Uv()),_F=pp(SF()),AF=pp(PF());function Hv(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}a(Hv,"isObject");var RF=typeof global=="object"&&global&&global.Object===Object&&global,qF=RF,NF=typeof self=="object"&&self&&self.Object===Object&&self,IF=qF||NF||Function("return this")(),bp=IF,jF=bp.Symbol,oo=jF,Vv=Object.prototype,kF=Vv.hasOwnProperty,MF=Vv.toString,Zo=oo?oo.toStringTag:void 0;function Jv(e){var t=kF.call(e,Zo),r=e[Zo];try{e[Zo]=void 0;var n=!0}catch{}var o=MF.call(e);return n&&(t?e[Zo]=r:delete e[Zo]),o}a(Jv,"getRawTag");var $F=Jv,LF=Object.prototype,DF=LF.toString;function zv(e){return DF.call(e)}a(zv,"objectToString");var FF=zv,BF="[object Null]",UF="[object Undefined]",ky=oo?oo.toStringTag:void 0;function Wv(e){return e==null?e===void 0?UF:BF:ky&&ky in Object(e)?$F(e):FF(e)}a(Wv,"baseGetTag");var Gv=Wv;function Kv(e){return e!=null&&typeof e=="object"}a(Kv,"isObjectLike");var HF=Kv,VF="[object Symbol]";function Yv(e){return typeof e=="symbol"||HF(e)&&Gv(e)==VF}a(Yv,"isSymbol");var gp=Yv;function Xv(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}a(Xv,"arrayMap");var JF=Xv,zF=Array.isArray,vp=zF,My=oo?oo.prototype:void 0,$y=My?My.toString:void 0;function wp(e){if(typeof e=="string")return e;if(vp(e))return JF(e,wp)+"";if(gp(e))return $y?$y.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}a(wp,"baseToString");var WF=wp;function Qv(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}a(Qv,"isObject2");var Zv=Qv,GF="[object AsyncFunction]",KF="[object Function]",YF="[object GeneratorFunction]",XF="[object Proxy]";function ew(e){if(!Zv(e))return!1;var t=Gv(e);return t==KF||t==YF||t==GF||t==XF}a(ew,"isFunction");var QF=ew,ZF=bp["__core-js_shared__"],_u=ZF,Ly=(function(){var e=/[^.]+$/.exec(_u&&_u.keys&&_u.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function tw(e){return!!Ly&&Ly in e}a(tw,"isMasked");var e2=tw,t2=Function.prototype,r2=t2.toString;function rw(e){if(e!=null){try{return r2.call(e)}catch{}try{return e+""}catch{}}return""}a(rw,"toSource");var n2=rw,o2=/[\\^$.*+?()[\]{}|]/g,a2=/^\[object .+?Constructor\]$/,i2=Function.prototype,s2=Object.prototype,l2=i2.toString,u2=s2.hasOwnProperty,c2=RegExp("^"+l2.call(u2).replace(o2,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function nw(e){if(!Zv(e)||e2(e))return!1;var t=QF(e)?c2:a2;return t.test(n2(e))}a(nw,"baseIsNative");var d2=nw;function ow(e,t){return e?.[t]}a(ow,"getValue");var p2=ow;function aw(e,t){var r=p2(e,t);return d2(r)?r:void 0}a(aw,"getNative");var iw=aw;function sw(e,t){return e===t||e!==e&&t!==t}a(sw,"eq");var f2=sw,h2=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,m2=/^\w*$/;function lw(e,t){if(vp(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||gp(e)?!0:m2.test(e)||!h2.test(e)||t!=null&&e in Object(t)}a(lw,"isKey");var y2=lw,b2=iw(Object,"create"),Pa=b2;function uw(){this.__data__=Pa?Pa(null):{},this.size=0}a(uw,"hashClear");var g2=uw;function cw(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}a(cw,"hashDelete");var v2=cw,w2="__lodash_hash_undefined__",E2=Object.prototype,x2=E2.hasOwnProperty;function dw(e){var t=this.__data__;if(Pa){var r=t[e];return r===w2?void 0:r}return x2.call(t,e)?t[e]:void 0}a(dw,"hashGet");var T2=dw,S2=Object.prototype,C2=S2.hasOwnProperty;function pw(e){var t=this.__data__;return Pa?t[e]!==void 0:C2.call(t,e)}a(pw,"hashHas");var P2=pw,O2="__lodash_hash_undefined__";function fw(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Pa&&t===void 0?O2:t,this}a(fw,"hashSet");var _2=fw;function On(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a(On,"Hash");On.prototype.clear=g2;On.prototype.delete=v2;On.prototype.get=T2;On.prototype.has=P2;On.prototype.set=_2;var Dy=On;function hw(){this.__data__=[],this.size=0}a(hw,"listCacheClear");var A2=hw;function mw(e,t){for(var r=e.length;r--;)if(f2(e[r][0],t))return r;return-1}a(mw,"assocIndexOf");var tl=mw,R2=Array.prototype,q2=R2.splice;function yw(e){var t=this.__data__,r=tl(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():q2.call(t,r,1),--this.size,!0}a(yw,"listCacheDelete");var N2=yw;function bw(e){var t=this.__data__,r=tl(t,e);return r<0?void 0:t[r][1]}a(bw,"listCacheGet");var I2=bw;function gw(e){return tl(this.__data__,e)>-1}a(gw,"listCacheHas");var j2=gw;function vw(e,t){var r=this.__data__,n=tl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}a(vw,"listCacheSet");var k2=vw;function _n(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a(_n,"ListCache");_n.prototype.clear=A2;_n.prototype.delete=N2;_n.prototype.get=I2;_n.prototype.has=j2;_n.prototype.set=k2;var M2=_n,$2=iw(bp,"Map"),L2=$2;function ww(){this.size=0,this.__data__={hash:new Dy,map:new(L2||M2),string:new Dy}}a(ww,"mapCacheClear");var D2=ww;function Ew(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}a(Ew,"isKeyable");var F2=Ew;function xw(e,t){var r=e.__data__;return F2(t)?r[typeof t=="string"?"string":"hash"]:r.map}a(xw,"getMapData");var rl=xw;function Tw(e){var t=rl(this,e).delete(e);return this.size-=t?1:0,t}a(Tw,"mapCacheDelete");var B2=Tw;function Sw(e){return rl(this,e).get(e)}a(Sw,"mapCacheGet");var U2=Sw;function Cw(e){return rl(this,e).has(e)}a(Cw,"mapCacheHas");var H2=Cw;function Pw(e,t){var r=rl(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}a(Pw,"mapCacheSet");var V2=Pw;function An(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a(An,"MapCache");An.prototype.clear=D2;An.prototype.delete=B2;An.prototype.get=U2;An.prototype.has=H2;An.prototype.set=V2;var Ow=An,J2="Expected a function";function nl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(J2);var r=a(function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s},"memoized");return r.cache=new(nl.Cache||Ow),r}a(nl,"memoize");nl.Cache=Ow;var z2=nl,W2=500;function _w(e){var t=z2(e,function(n){return r.size===W2&&r.clear(),n}),r=t.cache;return t}a(_w,"memoizeCapped");var G2=_w,K2=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y2=/\\(\\)?/g,X2=G2(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(K2,function(r,n,o,i){t.push(o?i.replace(Y2,"$1"):n||r)}),t}),Q2=X2;function Aw(e){return e==null?"":WF(e)}a(Aw,"toString");var Z2=Aw;function Rw(e,t){return vp(e)?e:y2(e,t)?[e]:Q2(Z2(e))}a(Rw,"castPath");var eB=Rw;function qw(e){if(typeof e=="string"||gp(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}a(qw,"toKey");var tB=qw;function Nw(e,t){t=eB(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[tB(t[r++])];return r&&r==n?e:void 0}a(Nw,"baseGet");var rB=Nw;function Iw(e,t,r){var n=e==null?void 0:rB(e,t);return n===void 0?r:n}a(Iw,"get");var nB=Iw,Ep=Hv,oB=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,xp=a(e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/),"isJSON");function Tp(e){if(!Ep(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=Iv(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}a(Tp,"convertUnconventionalData");var aB=a(function(e){let t,r,n,o;return a(function(i,s){try{if(i==="")return o=[],t=new Map([[s,"[]"]]),r=new Map,n=[],s;let l=r.get(this)||this;for(;n.length&&l!==n[0];)n.shift(),o.pop();if(typeof s=="boolean")return s;if(s===void 0)return e.allowUndefined?"_undefined_":void 0;if(s===null)return null;if(typeof s=="number")return s===Number.NEGATIVE_INFINITY?"_-Infinity_":s===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(s)?"_NaN_":s;if(typeof s=="bigint")return`_bigint_${s.toString()}`;if(typeof s=="string")return oB.test(s)?e.allowDate?`_date_${s}`:void 0:s;if((0,OF.default)(s))return e.allowRegExp?`_regexp_${s.flags}|${s.source}`:void 0;if((0,_F.default)(s))return;if((0,AF.default)(s)){if(!e.allowSymbol)return;let u=Symbol.keyFor(s);return u!==void 0?`_gsymbol_${u}`:`_symbol_${s.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(s)?`[Array(${s.length})]`:"[Object]";if(s===this)return`_duplicate_${JSON.stringify(o)}`;if(s instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...s.cause?{cause:s.cause}:{},...s,name:s.name,message:s.message,stack:s.stack,"_constructor-name_":s.constructor.name}};if(s?.constructor?.name&&s.constructor.name!=="Object"&&!Array.isArray(s)){let u=t.get(s);if(!u){let d={__isClassInstance__:!0,__className__:s.constructor.name,...Object.getOwnPropertyNames(s).reduce((p,h)=>{try{p[h]=s[h]}catch{}return p},{})};return o.push(i),n.unshift(d),t.set(s,JSON.stringify(o)),s!==d&&r.set(s,d),d}return`_duplicate_${u}`}let c=t.get(s);if(!c){let u=Array.isArray(s)?s:Tp(s);return o.push(i),n.unshift(u),t.set(s,JSON.stringify(o)),s!==u&&r.set(s,u),u}return`_duplicate_${c}`}catch{return}},"replace")},"replacer2"),iB=a(function(e){let t=[],r;return a(function(n,o){if(n===""&&(r=o,t.forEach(({target:i,container:s,replacement:l})=>{let c=xp(l)?JSON.parse(l):l.split(".");c.length===0?s[i]=r:s[i]=nB(r,c)})),n==="_constructor-name_")return o;if(Ep(o)&&o.__isConvertedError__){let{message:i,...s}=o.errorProperties,l=new Error(i);return Object.assign(l,s),l}if(typeof o=="string"&&o.startsWith("_regexp_")&&e.allowRegExp){let[,i,s]=o.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(s,i)}return typeof o=="string"&&o.startsWith("_date_")&&e.allowDate?new Date(o.replace("_date_","")):typeof o=="string"&&o.startsWith("_duplicate_")?(t.push({target:n,container:this,replacement:o.replace(/^_duplicate_/,"")}),null):typeof o=="string"&&o.startsWith("_symbol_")&&e.allowSymbol?Symbol(o.replace("_symbol_","")):typeof o=="string"&&o.startsWith("_gsymbol_")&&e.allowSymbol?Symbol.for(o.replace("_gsymbol_","")):typeof o=="string"&&o==="_-Infinity_"?Number.NEGATIVE_INFINITY:typeof o=="string"&&o==="_Infinity_"?Number.POSITIVE_INFINITY:typeof o=="string"&&o==="_NaN_"?Number.NaN:typeof o=="string"&&o.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(o.replace("_bigint_","")):o},"revive")},"reviver2"),jw={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},kw=a((e,t={})=>{let r={...jw,...t};return JSON.stringify(Tp(e),aB(r),t.space)},"stringify"),sB=a(()=>{let e=new Map;return a(function t(r){Ep(r)&&Object.entries(r).forEach(([n,o])=>{o==="_undefined_"?r[n]=void 0:e.get(o)||(e.set(o,!0),t(o))}),Array.isArray(r)&&r.forEach((n,o)=>{n==="_undefined_"?(e.set(n,!0),r[o]=void 0):e.get(n)||(e.set(n,!0),t(n))})},"mutateUndefined")},"mutator"),Mw=a((e,t={})=>{let r={...jw,...t},n=JSON.parse(e,iB(r));return sB()(n),n},"parse"),lB="Invariant failed";function Kt(e,t){if(!e)throw new Error(lB)}a(Kt,"invariant");var uB=a(e=>{let t=Array.from(document.querySelectorAll("iframe[data-is-storybook]")),[r,...n]=t.filter(i=>{try{return i.contentWindow?.location.origin===e.source.location.origin&&i.contentWindow?.location.pathname===e.source.location.pathname}catch{}try{return i.contentWindow===e.source}catch{}let s=i.getAttribute("src"),l;try{if(!s)return!1;({origin:l}=new URL(s,document.location.toString()))}catch{return!1}return l===e.origin}),o=r?.getAttribute("src");if(o&&n.length===0){let{protocol:i,host:s,pathname:l}=new URL(o,document.location.toString());return`${i}//${s}${l}`}return n.length>0&&Ne.error("found multiple candidates for event source"),null},"getEventSourceUrl"),{document:Au,location:Ru}=te,Fy="storybook-channel",cB={maxDepth:25},$w=class{constructor(t){if(this.config=t,this.connected=!1,this.buffer=[],typeof te?.addEventListener=="function"&&te.addEventListener("message",this.handleEvent.bind(this),!1),t.page!=="manager"&&t.page!=="preview")throw new Error(`postmsg-channel: "config.page" cannot be "${t.page}"`)}setHandler(t){this.handler=(...r)=>{t.apply(this,r),!this.connected&&this.getLocalFrame().length&&(this.flush(),this.connected=!0)}}send(t,r){let{target:n,allowRegExp:o,allowSymbol:i,allowDate:s,allowError:l,allowUndefined:c,maxDepth:u,space:d}=r||{},p=Object.fromEntries(Object.entries({allowRegExp:o,allowSymbol:i,allowDate:s,allowError:l,allowUndefined:c,maxDepth:u,space:d}).filter(([g,v])=>typeof v<"u")),h={...cB,...te.CHANNEL_OPTIONS||{},...p},f=this.getFrames(n),m=new URLSearchParams(Ru?.search||""),b=kw({key:Fy,event:t,refId:m.get("refId")},h);return f.length?(this.buffer.length&&this.flush(),f.forEach(g=>{try{g.postMessage(b,"*")}catch{Ne.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((g,v)=>{this.buffer.push({event:t,resolve:g,reject:v})})}flush(){let{buffer:t}=this;this.buffer=[],t.forEach(r=>{this.send(r.event).then(r.resolve).catch(r.reject)})}getFrames(t){if(this.config.page==="manager"){let r=Array.from(Au.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")).flatMap(n=>{try{return n.contentWindow&&n.dataset.isStorybook!==void 0&&n.id===t?[n.contentWindow]:[]}catch{return[]}});return r?.length?r:this.getCurrentFrames()}return te&&te.parent&&te.parent!==te.self?[te.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from(Au.querySelectorAll('[data-is-storybook="true"]')).flatMap(t=>t.contentWindow?[t.contentWindow]:[]):te&&te.parent?[te.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from(Au.querySelectorAll("#storybook-preview-iframe")).flatMap(t=>t.contentWindow?[t.contentWindow]:[]):te&&te.parent?[te.parent]:[]}handleEvent(t){try{let{data:r}=t,{key:n,event:o,refId:i}=typeof r=="string"&&xp(r)?Mw(r,te.CHANNEL_OPTIONS||{}):r;if(n===Fy){let s=this.config.page==="manager"?'<span style="color: #37D5D3; background: black"> manager </span>':'<span style="color: #1EA7FD; background: black"> preview </span>',l=Object.values(np).includes(o.type)?`<span style="color: #FF4785">${o.type}</span>`:`<span style="color: #FFAE00">${o.type}</span>`;if(i&&(o.refId=i),o.source=this.config.page==="preview"?t.origin:uB(t),!o.source){Et.error(`${s} received ${l} but was unable to determine the source of the event`);return}let c=`${s} received ${l} (${r.length})`;Et.debug(Ru.origin!==o.source?c:`${c} <span style="color: gray">(on ${Ru.origin} from ${o.source})</span>`,...o.args),Kt(this.handler,"ChannelHandler should be set"),this.handler(o)}}catch(r){Ne.error(r)}}};a($w,"PostMessageTransport");var Lw=$w,{WebSocket:dB}=te,Dw=15e3,Fw=5e3,Bw=class{constructor({url:t,onError:r,page:n}){this.buffer=[],this.isReady=!1,this.isClosed=!1,this.pingTimeout=0,this.socket=new dB(t),this.socket.onopen=()=>{this.isReady=!0,this.heartbeat(),this.flush()},this.socket.onmessage=({data:o})=>{let i=typeof o=="string"&&xp(o)?Mw(o):o;Kt(this.handler),this.handler(i),i.type==="ping"&&(this.heartbeat(),this.send({type:"pong"}))},this.socket.onerror=o=>{r&&r(o)},this.socket.onclose=o=>{Kt(this.handler),this.handler({type:iv,args:[{reason:o.reason,code:o.code}],from:n||"preview"}),this.isClosed=!0,clearTimeout(this.pingTimeout)}}heartbeat(){clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{this.socket.close(3008,"timeout")},Dw+Fw)}setHandler(t){this.handler=t}send(t){this.isClosed||(this.isReady?this.sendNow(t):this.sendLater(t))}sendLater(t){this.buffer.push(t)}sendNow(t){let r=kw(t,{maxDepth:15,...te.CHANNEL_OPTIONS});this.socket.send(r)}flush(){let{buffer:t}=this;this.buffer=[],t.forEach(r=>this.send(r))}};a(Bw,"WebsocketTransport");var Uw=Bw,{CONFIG_TYPE:pB}=te,fB=Zs;function Hw({page:e,extraTransports:t=[]}){let r=[new Lw({page:e}),...t];if(pB==="DEVELOPMENT"){let o=window.location.protocol==="http:"?"ws":"wss",{hostname:i,port:s}=window.location,l=`${o}://${i}:${s}/storybook-server-channel`;r.push(new Uw({url:l,onError:a(()=>{},"onError"),page:e}))}let n=new Zs({transports:r});return Ou.__prepare(n,e==="manager"?Ou.Environment.MANAGER:Ou.Environment.PREVIEW),n}a(Hw,"createBrowserChannel");var Vw={};ut(Vw,{CalledExtractOnStoreError:()=>Zw,CalledPreviewMethodBeforeInitializationError:()=>gt,Category:()=>Ww,ElementA11yParameterError:()=>vB,EmptyIndexError:()=>lE,ImplicitActionsDuringRendering:()=>Xw,MdxFileWithNoCsfReferencesError:()=>iE,MissingRenderToCanvasError:()=>tE,MissingStoryAfterHmrError:()=>Kw,MissingStoryFromCsfFileError:()=>pE,MountMustBeDestructuredError:()=>Sp,NextJsSharpError:()=>mB,NextjsRouterMocksNotAvailable:()=>yB,NoRenderFunctionError:()=>bE,NoStoryMatchError:()=>cE,NoStoryMountedError:()=>vE,StatusTypeIdMismatchError:()=>hB,StoryIndexFetchError:()=>oE,StoryStoreAccessedBeforeInitializationError:()=>hE,UnknownArgTypesError:()=>bB,UnsupportedViewportDimensionError:()=>gB});function oc({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}a(oc,"parseErrorCode");function ac(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{let t=new URL(e);return t.searchParams.set("ref","error"),t.toString()}catch{return e}}a(ac,"appendErrorRef");var Jw=class zw extends Error{constructor(t){super(zw.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code}get fullErrorCode(){return oc({code:this.code,category:this.category})}get name(){let t=this.constructor.name;return`${this.fullErrorCode} (${t})`}static getFullMessage({documentation:t,code:r,category:n,message:o}){let i;return t===!0?i=`https://storybook.js.org/error/${oc({code:r,category:n})}?ref=error`:typeof t=="string"?i=ac(t):Array.isArray(t)&&(i=`
|
|
46
|
+
${t.map(s=>` - ${ac(s)}`).join(`
|
|
47
|
+
`)}`),`${o}${i!=null?`
|
|
48
|
+
|
|
49
|
+
More info: ${i}
|
|
50
|
+
`:""}`}};a(Jw,"StorybookError");var Je=Jw,Ww=(e=>(e.BLOCKS="BLOCKS",e.DOCS_TOOLS="DOCS-TOOLS",e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",e.ADDON_VITEST="ADDON_VITEST",e.ADDON_A11Y="ADDON_A11Y",e))(Ww||{}),Gw=class extends Je{constructor(t){super({category:"PREVIEW_API",code:1,message:ge`
|
|
51
|
+
Couldn't find story matching id '${t.storyId}' after HMR.
|
|
52
|
+
- Did you just rename a story?
|
|
53
|
+
- Did you remove it from your CSF file?
|
|
54
|
+
- Are you sure a story with the id '${t.storyId}' exists?
|
|
55
|
+
- Please check the values in the stories field of your main.js config and see if they would match your CSF File.
|
|
56
|
+
- Also check the browser console and terminal for potential error messages.`}),this.data=t}};a(Gw,"MissingStoryAfterHmrError");var Kw=Gw,Yw=class extends Je{constructor(t){super({category:"PREVIEW_API",code:2,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",message:ge`
|
|
57
|
+
We detected that you use an implicit action arg while ${t.phase} of your story.
|
|
58
|
+
${t.deprecated?`
|
|
59
|
+
This is deprecated and won't work in Storybook 8 anymore.
|
|
60
|
+
`:""}
|
|
61
|
+
Please provide an explicit spy to your args like this:
|
|
62
|
+
import { fn } from 'storybook/test';
|
|
63
|
+
...
|
|
64
|
+
args: {
|
|
65
|
+
${t.name}: fn()
|
|
66
|
+
}`}),this.data=t}};a(Yw,"ImplicitActionsDuringRendering");var Xw=Yw,Qw=class extends Je{constructor(){super({category:"PREVIEW_API",code:3,message:ge`
|
|
67
|
+
Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
|
|
68
|
+
|
|
69
|
+
You probably meant to call \`await preview.extract()\` which does the above for you.`})}};a(Qw,"CalledExtractOnStoreError");var Zw=Qw,eE=class extends Je{constructor(){super({category:"PREVIEW_API",code:4,message:ge`
|
|
70
|
+
Expected your framework's preset to export a \`renderToCanvas\` field.
|
|
71
|
+
|
|
72
|
+
Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}};a(eE,"MissingRenderToCanvasError");var tE=eE,rE=class extends Je{constructor(t){super({category:"PREVIEW_API",code:5,message:ge`
|
|
73
|
+
Called \`Preview.${t.methodName}()\` before initialization.
|
|
74
|
+
|
|
75
|
+
The preview needs to load the story index before most methods can be called. If you want
|
|
76
|
+
to call \`${t.methodName}\`, try \`await preview.initializationPromise;\` first.
|
|
77
|
+
|
|
78
|
+
If you didn't call the above code, then likely it was called by an addon that needs to
|
|
79
|
+
do the above.`}),this.data=t}};a(rE,"CalledPreviewMethodBeforeInitializationError");var gt=rE,nE=class extends Je{constructor(t){super({category:"PREVIEW_API",code:6,message:ge`
|
|
80
|
+
Error fetching \`/index.json\`:
|
|
81
|
+
|
|
82
|
+
${t.text}
|
|
83
|
+
|
|
84
|
+
If you are in development, this likely indicates a problem with your Storybook process,
|
|
85
|
+
check the terminal for errors.
|
|
86
|
+
|
|
87
|
+
If you are in a deployed Storybook, there may have been an issue deploying the full Storybook
|
|
88
|
+
build.`}),this.data=t}};a(nE,"StoryIndexFetchError");var oE=nE,aE=class extends Je{constructor(t){super({category:"PREVIEW_API",code:7,message:ge`
|
|
89
|
+
Tried to render docs entry ${t.storyId} but it is a MDX file that has no CSF
|
|
90
|
+
references, or autodocs for a CSF file that some doesn't refer to itself.
|
|
91
|
+
|
|
92
|
+
This likely is an internal error in Storybook's indexing, or you've attached the
|
|
93
|
+
\`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=t}};a(aE,"MdxFileWithNoCsfReferencesError");var iE=aE,sE=class extends Je{constructor(){super({category:"PREVIEW_API",code:8,message:ge`
|
|
94
|
+
Couldn't find any stories in your Storybook.
|
|
95
|
+
|
|
96
|
+
- Please check your stories field of your main.js config: does it match correctly?
|
|
97
|
+
- Also check the browser console and terminal for error messages.`})}};a(sE,"EmptyIndexError");var lE=sE,uE=class extends Je{constructor(t){super({category:"PREVIEW_API",code:9,message:ge`
|
|
98
|
+
Couldn't find story matching '${t.storySpecifier}'.
|
|
99
|
+
|
|
100
|
+
- Are you sure a story with that id exists?
|
|
101
|
+
- Please check your stories field of your main.js config.
|
|
102
|
+
- Also check the browser console and terminal for error messages.`}),this.data=t}};a(uE,"NoStoryMatchError");var cE=uE,dE=class extends Je{constructor(t){super({category:"PREVIEW_API",code:10,message:ge`
|
|
103
|
+
Couldn't find story matching id '${t.storyId}' after importing a CSF file.
|
|
104
|
+
|
|
105
|
+
The file was indexed as if the story was there, but then after importing the file in the browser
|
|
106
|
+
we didn't find the story. Possible reasons:
|
|
107
|
+
- You are using a custom story indexer that is misbehaving.
|
|
108
|
+
- You have a custom file loader that is removing or renaming exports.
|
|
109
|
+
|
|
110
|
+
Please check your browser console and terminal for errors that may explain the issue.`}),this.data=t}};a(dE,"MissingStoryFromCsfFileError");var pE=dE,fE=class extends Je{constructor(){super({category:"PREVIEW_API",code:11,message:ge`
|
|
111
|
+
Cannot access the Story Store until the index is ready.
|
|
112
|
+
|
|
113
|
+
It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
|
|
114
|
+
remove access to the store entirely`})}};a(fE,"StoryStoreAccessedBeforeInitializationError");var hE=fE,mE=class extends Je{constructor(t){super({category:"PREVIEW_API",code:12,message:ge`
|
|
115
|
+
Incorrect use of mount in the play function.
|
|
116
|
+
|
|
117
|
+
To use mount in the play function, you must satisfy the following two requirements:
|
|
118
|
+
|
|
119
|
+
1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function).
|
|
120
|
+
This makes sure that Storybook does not start rendering the story before the play function begins.
|
|
121
|
+
|
|
122
|
+
2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer.
|
|
123
|
+
This is because destructuring statements and async/await usages are otherwise transpiled away,
|
|
124
|
+
which prevents Storybook from recognizing your usage of \`mount\`.
|
|
125
|
+
|
|
126
|
+
Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill.
|
|
127
|
+
|
|
128
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#run-code-before-the-component-gets-rendered
|
|
129
|
+
|
|
130
|
+
Received the following play function:
|
|
131
|
+
${t.playFunction}`}),this.data=t}};a(mE,"MountMustBeDestructuredError");var Sp=mE,yE=class extends Je{constructor(t){super({category:"PREVIEW_API",code:14,message:ge`
|
|
132
|
+
No render function available for storyId '${t.id}'
|
|
133
|
+
`}),this.data=t}};a(yE,"NoRenderFunctionError");var bE=yE,gE=class extends Je{constructor(){super({category:"PREVIEW_API",code:15,message:ge`
|
|
134
|
+
No component is mounted in your story.
|
|
135
|
+
|
|
136
|
+
This usually occurs when you destructure mount in the play function, but forget to call it.
|
|
137
|
+
|
|
138
|
+
For example:
|
|
139
|
+
|
|
140
|
+
async play({ mount, canvasElement }) {
|
|
141
|
+
// 👈 mount should be called: await mount();
|
|
142
|
+
const canvas = within(canvasElement);
|
|
143
|
+
const button = await canvas.findByRole('button');
|
|
144
|
+
await userEvent.click(button);
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
Make sure to either remove it or call mount in your play function.
|
|
148
|
+
`})}};a(gE,"NoStoryMountedError");var vE=gE,wE=class extends Je{constructor(t){super({category:"PREVIEW_API",code:16,message:`Status has typeId "${t.status.typeId}" but was added to store with typeId "${t.typeId}". Full status: ${JSON.stringify(t.status,null,2)}`}),this.data=t}};a(wE,"StatusTypeIdMismatchError");var hB=wE,EE=class extends Je{constructor(){super({category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/nextjs#faq",message:ge`
|
|
149
|
+
You are importing avif images, but you don't have sharp installed.
|
|
150
|
+
|
|
151
|
+
You have to install sharp in order to use image optimization features in Next.js.
|
|
152
|
+
`})}};a(EE,"NextJsSharpError");var mB=EE,xE=class extends Je{constructor(t){super({category:"FRAMEWORK_NEXTJS",code:2,message:ge`
|
|
153
|
+
Tried to access router mocks from "${t.importType}" but they were not created yet. You might be running code in an unsupported environment.
|
|
154
|
+
`}),this.data=t}};a(xE,"NextjsRouterMocksNotAvailable");var yB=xE,TE=class extends Je{constructor(t){super({category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:ge`
|
|
155
|
+
There was a failure when generating detailed ArgTypes in ${t.language} for:
|
|
156
|
+
${JSON.stringify(t.type,null,2)}
|
|
157
|
+
|
|
158
|
+
Storybook will fall back to use a generic type description instead.
|
|
159
|
+
|
|
160
|
+
This type is either not supported or it is a bug in the docgen generation in Storybook.
|
|
161
|
+
If you think this is a bug, please detail it as much as possible in the Github issue.
|
|
162
|
+
`}),this.data=t}};a(TE,"UnknownArgTypesError");var bB=TE,SE=class extends Je{constructor(t){super({category:"ADDON_VITEST",code:1,message:ge`
|
|
163
|
+
Encountered an unsupported value "${t.value}" when setting the viewport ${t.dimension} dimension.
|
|
164
|
+
|
|
165
|
+
The Storybook plugin only supports values in the following units:
|
|
166
|
+
- px, vh, vw, em, rem and %.
|
|
167
|
+
|
|
168
|
+
You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://storybook.js.org/docs/writing-stories/tags
|
|
169
|
+
`}),this.data=t}};a(SE,"UnsupportedViewportDimensionError");var gB=SE,CE=class extends Je{constructor(){super({category:"ADDON_A11Y",code:1,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#a11y-addon-replace-element-parameter-with-context-parameter",message:'The "element" parameter in parameters.a11y has been removed. Use "context" instead.'})}};a(CE,"ElementA11yParameterError");var vB=CE,PE={};ut(PE,{Addon_TypesEnum:()=>OE});var OE=(e=>(e.TAB="tab",e.PANEL="panel",e.TOOL="tool",e.TOOLEXTRA="toolextra",e.PREVIEW="preview",e.experimental_PAGE="page",e.experimental_TEST_PROVIDER="test-provider",e))(OE||{}),_E={};ut(_E,{ADDON_ID:()=>ol,CLEAR_ID:()=>xB,CYCLIC_KEY:()=>TB,EVENT_ID:()=>AE,PANEL_ID:()=>EB,PARAM_KEY:()=>wB,action:()=>Lo,actions:()=>Gz,config:()=>Wa,configureActions:()=>Jz});var wB="actions",ol="storybook/actions",EB=`${ol}/panel`,AE=`${ol}/action-event`,xB=`${ol}/action-clear`,TB="$___storybook.isCyclic",ic={};ut(ic,{DocsContext:()=>sy,HooksContext:()=>Pp,Preview:()=>c1,PreviewWeb:()=>Fz,PreviewWithSelection:()=>w1,ReporterAPI:()=>oy,StoryStore:()=>a1,UrlStore:()=>O1,WebView:()=>R1,addons:()=>Rt,applyHooks:()=>IE,combineArgs:()=>$s,combineParameters:()=>Sn,composeConfigs:()=>Cn,composeStepRunners:()=>ty,composeStories:()=>t1,composeStory:()=>iy,createPlaywrightTest:()=>r1,decorateStory:()=>Gm,defaultDecorateStory:()=>Ym,emitTransformCode:()=>j1,filterArgTypes:()=>KR,getCsfFactoryAnnotations:()=>ay,inferControls:()=>ey,makeDecorator:()=>OB,mockChannel:()=>Cp,normalizeArrays:()=>_e,normalizeProjectAnnotations:()=>za,normalizeStory:()=>Ja,pauseAnimations:()=>Eu,prepareMeta:()=>Xm,prepareStory:()=>wu,sanitizeStoryContextUpdate:()=>Km,setDefaultProjectAnnotations:()=>QR,setProjectAnnotations:()=>e1,simulateDOMContentLoaded:()=>Bs,simulatePageLoad:()=>I1,sortStoriesV7:()=>Oz,useArgs:()=>BE,useCallback:()=>ao,useChannel:()=>DE,useEffect:()=>Fr,useGlobals:()=>UE,useMemo:()=>Ap,useParameter:()=>FE,useReducer:()=>LE,useRef:()=>kE,useState:()=>$E,useStoryContext:()=>ti,userOrAutoTitle:()=>Sz,userOrAutoTitleFromSpecifier:()=>s1,waitForAnimations:()=>xu});function Cp(){let e={setHandler:a(()=>{},"setHandler"),send:a(()=>{},"send")};return new Zs({transport:e})}a(Cp,"mockChannel");var RE=class{constructor(){this.getChannel=a(()=>{if(!this.channel){let t=Cp();return this.setChannel(t),t}return this.channel},"getChannel"),this.ready=a(()=>this.promise,"ready"),this.hasChannel=a(()=>!!this.channel,"hasChannel"),this.setChannel=a(t=>{this.channel=t,this.resolve()},"setChannel"),this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}};a(RE,"AddonStore");var SB=RE,qu="__STORYBOOK_ADDONS_PREVIEW";function qE(){return te[qu]||(te[qu]=new SB),te[qu]}a(qE,"getAddonsStore");var Rt=qE(),NE=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=a(t=>{t===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener"),this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),Rt.getChannel().on(Ki,this.renderListener)}removeRenderListeners(){Rt.getChannel().removeListener(Ki,this.renderListener)}};a(NE,"HooksContext");var Pp=NE;function sc(e){let t=a((...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],o=n.currentPhase,i=n.currentHooks,s=n.nextHookIndex,l=n.currentDecoratorName;n.currentDecoratorName=e.name,n.prevMountedDecorators.has(e)?(n.currentPhase="UPDATE",n.currentHooks=n.hookListsMap.get(e)||[]):(n.currentPhase="MOUNT",n.currentHooks=[],n.hookListsMap.set(e,n.currentHooks),n.prevMountedDecorators.add(e)),n.nextHookIndex=0;let c=te.STORYBOOK_HOOKS_CONTEXT;te.STORYBOOK_HOOKS_CONTEXT=n;let u=e(...r);if(te.STORYBOOK_HOOKS_CONTEXT=c,n.currentPhase==="UPDATE"&&n.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return n.currentPhase=o,n.currentHooks=i,n.nextHookIndex=s,n.currentDecoratorName=l,u},"hookified");return t.originalFn=e,t}a(sc,"hookify");var Nu=0,CB=25,IE=a(e=>(t,r)=>{let n=e(sc(t),r.map(o=>sc(o)));return o=>{let{hooks:i}=o;i.prevMountedDecorators??=new Set,i.mountedDecorators=new Set([t,...r]),i.currentContext=o,i.hasUpdates=!1;let s=n(o);for(Nu=1;i.hasUpdates;)if(i.hasUpdates=!1,i.currentEffects=[],s=n(o),Nu+=1,Nu>CB)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return i.addRenderListeners(),s}},"applyHooks"),PB=a((e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),"areDepsEqual"),Op=a(()=>new Error("Storybook preview hooks can only be called inside decorators and story functions."),"invalidHooksError");function _p(){return te.STORYBOOK_HOOKS_CONTEXT||null}a(_p,"getHooksContextOrNull");function al(){let e=_p();if(e==null)throw Op();return e}a(al,"getHooksContextOrThrow");function jE(e,t,r){let n=al();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&Ne.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let o={name:e,deps:r};return n.currentHooks.push(o),t(o),o}if(n.currentPhase==="UPDATE"){let o=n.getNextHook();if(o==null)throw new Error("Rendered more hooks than during the previous render.");return o.name!==e&&Ne.warn(`Storybook has detected a change in the order of Hooks${n.currentDecoratorName?` called by ${n.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&o.deps==null&&Ne.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&o.deps!=null&&r.length!==o.deps.length&&Ne.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
|
|
170
|
+
Previous: ${o.deps}
|
|
171
|
+
Incoming: ${r}`),(r==null||o.deps==null||!PB(r,o.deps))&&(t(o),o.deps=r),o}throw Op()}a(jE,"useHook");function ei(e,t,r){let{memoizedState:n}=jE(e,o=>{o.memoizedState=t()},r);return n}a(ei,"useMemoLike");function Ap(e,t){return ei("useMemo",e,t)}a(Ap,"useMemo");function ao(e,t){return ei("useCallback",()=>e,t)}a(ao,"useCallback");function Rp(e,t){return ei(e,()=>({current:t}),[])}a(Rp,"useRefLike");function kE(e){return Rp("useRef",e)}a(kE,"useRef");function ME(){let e=_p();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{Rt.getChannel().emit(ip)}catch{Ne.warn("State updates of Storybook preview hooks work only in browser")}}a(ME,"triggerUpdate");function qp(e,t){let r=Rp(e,typeof t=="function"?t():t),n=a(o=>{r.current=typeof o=="function"?o(r.current):o,ME()},"setState");return[r.current,n]}a(qp,"useStateLike");function $E(e){return qp("useState",e)}a($E,"useState");function LE(e,t,r){let n=r!=null?()=>r(t):t,[o,i]=qp("useReducer",n);return[o,a(s=>i(l=>e(l,s)),"dispatch")]}a(LE,"useReducer");function Fr(e,t){let r=al(),n=ei("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}a(Fr,"useEffect");function DE(e,t=[]){let r=Rt.getChannel();return Fr(()=>(Object.entries(e).forEach(([n,o])=>r.on(n,o)),()=>{Object.entries(e).forEach(([n,o])=>r.removeListener(n,o))}),[...Object.keys(e),...t]),ao(r.emit.bind(r),[r])}a(DE,"useChannel");function ti(){let{currentContext:e}=al();if(e==null)throw Op();return e}a(ti,"useStoryContext");function FE(e,t){let{parameters:r}=ti();if(e)return r[e]??t}a(FE,"useParameter");function BE(){let e=Rt.getChannel(),{id:t,args:r}=ti(),n=ao(i=>e.emit(cp,{storyId:t,updatedArgs:i}),[e,t]),o=ao(i=>e.emit(sp,{storyId:t,argNames:i}),[e,t]);return[r,n,o]}a(BE,"useArgs");function UE(){let e=Rt.getChannel(),{globals:t}=ti(),r=ao(n=>e.emit(up,{globals:n}),[e]);return[t,r]}a(UE,"useGlobals");var OB=a(({name:e,parameterName:t,wrapper:r,skipIfNoParametersOrOptions:n=!1})=>{let o=a(i=>(s,l)=>{let c=l.parameters&&l.parameters[t];return c&&c.disable||n&&!i&&!c?s(l):r(s,l,{options:i,parameters:c})},"decorator");return(...i)=>typeof i[0]=="function"?o()(...i):(...s)=>{if(s.length>1)return i.length>1?o(i)(...s):o(...i)(...s);throw new Error(`Passing stories directly into ${e}() is not allowed,
|
|
172
|
+
instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}},"makeDecorator");function HE(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,(t,r,n,o)=>`${r} ${n}${o}`).replace(/([a-z])([A-Z])/g,(t,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(t,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(t,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(t,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}a(HE,"toStartCaseStr");var By=He(Zq(),1),VE=a(e=>e.map(t=>typeof t<"u").filter(Boolean).length,"count"),_B=a((e,t)=>{let{exists:r,eq:n,neq:o,truthy:i}=e;if(VE([r,n,o,i])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,By.isEqual)(t,n);if(typeof o<"u")return!(0,By.isEqual)(t,o);if(typeof r<"u"){let s=typeof t<"u";return r?s:!s}return typeof i>"u"||i?!!t:!t},"testValue"),AB=a((e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(VE([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let i=n?t[n]:r[o];return _B(e.if,i)},"includeConditionalArg"),JE={};ut(JE,{argsEnhancers:()=>NB});var zE=a((e,t)=>typeof t[e]>"u"&&!(e in t),"isInInitialArgs"),RB=a(e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:o}}=e;if(!o||o.disable||!o.argTypesRegex||!r)return{};let i=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([s])=>!!i.test(s)).reduce((s,[l,c])=>(zE(l,t)&&(s[l]=Lo(l,{implicit:!0,id:n})),s),{})},"inferActionsFromArgTypesRegex"),qB=a(e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n?.disable||!r?{}:Object.entries(r).filter(([o,i])=>!!i.action).reduce((o,[i,s])=>(zE(i,t)&&(o[i]=Lo(typeof s.action=="string"?s.action:i)),o),{})},"addActionsFromArgTypes"),NB=[qB,RB],WE={};ut(WE,{loaders:()=>VV});var GE={};ut(GE,{buildQueries:()=>T3,clearAllMocks:()=>Uh,configure:()=>S3,createEvent:()=>C3,expect:()=>BV,findAllByAltText:()=>O3,findAllByDisplayValue:()=>_3,findAllByLabelText:()=>A3,findAllByPlaceholderText:()=>R3,findAllByRole:()=>q3,findAllByTestId:()=>N3,findAllByText:()=>I3,findAllByTitle:()=>j3,findByAltText:()=>k3,findByDisplayValue:()=>M3,findByLabelText:()=>$3,findByPlaceholderText:()=>L3,findByRole:()=>D3,findByTestId:()=>F3,findByText:()=>B3,findByTitle:()=>U3,fireEvent:()=>P3,fn:()=>Fh,getAllByAltText:()=>H3,getAllByDisplayValue:()=>V3,getAllByLabelText:()=>J3,getAllByPlaceholderText:()=>z3,getAllByRole:()=>W3,getAllByTestId:()=>G3,getAllByText:()=>K3,getAllByTitle:()=>Y3,getByAltText:()=>X3,getByDisplayValue:()=>Q3,getByLabelText:()=>Z3,getByPlaceholderText:()=>eV,getByRole:()=>tV,getByTestId:()=>rV,getByText:()=>nV,getByTitle:()=>oV,getConfig:()=>aV,getDefaultNormalizer:()=>iV,getElementError:()=>sV,getNodeText:()=>lV,getQueriesForElement:()=>uV,getRoles:()=>cV,getSuggestedQuery:()=>dV,isInaccessible:()=>pV,isMockFunction:()=>dn,logDOM:()=>fV,logRoles:()=>hV,mocked:()=>yC,mocks:()=>mi,onMockCall:()=>Dh,prettyDOM:()=>mV,prettyFormat:()=>DV,queries:()=>yV,queryAllByAltText:()=>bV,queryAllByAttribute:()=>gV,queryAllByDisplayValue:()=>vV,queryAllByLabelText:()=>wV,queryAllByPlaceholderText:()=>EV,queryAllByRole:()=>xV,queryAllByTestId:()=>TV,queryAllByText:()=>SV,queryAllByTitle:()=>CV,queryByAltText:()=>PV,queryByAttribute:()=>OV,queryByDisplayValue:()=>_V,queryByLabelText:()=>AV,queryByPlaceholderText:()=>RV,queryByRole:()=>qV,queryByTestId:()=>NV,queryByText:()=>IV,queryByTitle:()=>jV,queryHelpers:()=>kV,resetAllMocks:()=>Hh,restoreAllMocks:()=>Vh,sb:()=>UV,screen:()=>MV,spyOn:()=>y5,uninstrumentedUserEvent:()=>lR,userEvent:()=>FV,waitFor:()=>$V,waitForElementToBeRemoved:()=>LV,within:()=>sR});var IB={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},jB=Object.entries(IB);function il(e){return String(e)}a(il,"a");il.open="";il.close="";function KE(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}a(KE,"C");function YE(e=!1){let t=KE(e),r=a((s,l,c,u)=>{let d="",p=0;do d+=s.substring(p,u)+c,p=u+l.length,u=s.indexOf(l,p);while(~u);return d+s.substring(p)},"i"),n=a((s,l,c=s)=>{let u=a(d=>{let p=String(d),h=p.indexOf(l,s.length);return~h?s+r(p,l,c,h)+l:s+p+l},"o");return u.open=s,u.close=l,u},"g"),o={isColorSupported:t},i=a(s=>`\x1B[${s}m`,"d");for(let[s,l]of jB)o[s]=t?n(i(l[0]),i(l[1]),l[2]):il;return o}a(YE,"p");var Fe=YE();function Np(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:a(function(){return r[n]},"get")})}})}),Object.freeze(e)}a(Np,"_mergeNamespaces");function XE(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}a(XE,"getKeysOfEnumerableProperties");function Oo(e,t,r,n,o,i,s=": "){let l="",c=0,u=e.next();if(!u.done){l+=t.spacingOuter;let d=r+t.indent;for(;!u.done;){if(l+=d,c++===t.maxWidth){l+="…";break}let p=i(u.value[0],t,d,n,o),h=i(u.value[1],t,d,n,o);l+=p+s+h,u=e.next(),u.done?t.min||(l+=","):l+=`,${t.spacingInner}`}l+=t.spacingOuter+r}return l}a(Oo,"printIteratorEntries");function sl(e,t,r,n,o,i){let s="",l=0,c=e.next();if(!c.done){s+=t.spacingOuter;let u=r+t.indent;for(;!c.done;){if(s+=u,l++===t.maxWidth){s+="…";break}s+=i(c.value,t,u,n,o),c=e.next(),c.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}a(sl,"printIteratorValues");function Oa(e,t,r,n,o,i){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=a(u=>u instanceof DataView,"isDataView"),c=l(e)?e.byteLength:e.length;if(c>0){s+=t.spacingOuter;let u=r+t.indent;for(let d=0;d<c;d++){if(s+=u,d===t.maxWidth){s+="…";break}(l(e)||d in e)&&(s+=i(l(e)?e.getInt8(d):e[d],t,u,n,o)),d<c-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+r}return s}a(Oa,"printListItems");function ll(e,t,r,n,o,i){let s="",l=XE(e,t.compareKeys);if(l.length>0){s+=t.spacingOuter;let c=r+t.indent;for(let u=0;u<l.length;u++){let d=l[u],p=i(d,t,c,n,o),h=i(e[d],t,c,n,o);s+=`${c+p}: ${h}`,u<l.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+r}return s}a(ll,"printObjectProperties");var kB=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Iu=" ",MB=a((e,t,r,n,o,i)=>{let s=e.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return++n>t.maxDepth?`[${s}]`:`${s+Iu}[${Oa(e.sample,t,r,n,o,i)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return++n>t.maxDepth?`[${s}]`:`${s+Iu}{${ll(e.sample,t,r,n,o,i)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+Iu+i(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},"serialize$5"),$B=a(e=>e&&e.$$typeof===kB,"test$5"),LB={serialize:MB,test:$B},DB=" ",QE=new Set(["DOMStringMap","NamedNodeMap"]),FB=/^(?:HTML\w*Collection|NodeList)$/;function ZE(e){return QE.has(e)||FB.test(e)}a(ZE,"testName");var BB=a(e=>e&&e.constructor&&!!e.constructor.name&&ZE(e.constructor.name),"test$4");function e0(e){return e.constructor.name==="NamedNodeMap"}a(e0,"isNamedNodeMap");var UB=a((e,t,r,n,o,i)=>{let s=e.constructor.name;return++n>t.maxDepth?`[${s}]`:(t.min?"":s+DB)+(QE.has(s)?`{${ll(e0(e)?[...e].reduce((l,c)=>(l[c.name]=c.value,l),{}):{...e},t,r,n,o,i)}}`:`[${Oa([...e],t,r,n,o,i)}]`)},"serialize$4"),HB={serialize:UB,test:BB};function Ip(e){return e.replaceAll("<","<").replaceAll(">",">")}a(Ip,"escapeHTML");function ul(e,t,r,n,o,i,s){let l=n+r.indent,c=r.colors;return e.map(u=>{let d=t[u],p=s(d,r,l,o,i);return typeof d!="string"&&(p.includes(`
|
|
173
|
+
`)&&(p=r.spacingOuter+l+p+r.spacingOuter+n),p=`{${p}}`),`${r.spacingInner+n+c.prop.open+u+c.prop.close}=${c.value.open}${p}${c.value.close}`}).join("")}a(ul,"printProps");function cl(e,t,r,n,o,i){return e.map(s=>t.spacingOuter+r+(typeof s=="string"?jp(s,t):i(s,t,r,n,o))).join("")}a(cl,"printChildren");function jp(e,t){let r=t.colors.content;return r.open+Ip(e)+r.close}a(jp,"printText");function t0(e,t){let r=t.colors.comment;return`${r.open}<!--${Ip(e)}-->${r.close}`}a(t0,"printComment");function dl(e,t,r,n,o){let i=n.colors.tag;return`${i.open}<${e}${t&&i.close+t+n.spacingOuter+o+i.open}${r?`>${i.close}${r}${n.spacingOuter}${o}${i.open}</${e}`:`${t&&!n.min?"":" "}/`}>${i.close}`}a(dl,"printElement");function pl(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}a(pl,"printElementAsLeaf");var VB=1,r0=3,n0=8,o0=11,JB=/^(?:(?:HTML|SVG)\w*)?Element$/;function a0(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}a(a0,"testHasAttribute");function i0(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||a0(e);return r===VB&&(JB.test(t)||o)||r===r0&&t==="Text"||r===n0&&t==="Comment"||r===o0&&t==="DocumentFragment"}a(i0,"testNode");var zB=a(e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&i0(e)},"test$3");function s0(e){return e.nodeType===r0}a(s0,"nodeIsText");function l0(e){return e.nodeType===n0}a(l0,"nodeIsComment");function Ai(e){return e.nodeType===o0}a(Ai,"nodeIsFragment");var WB=a((e,t,r,n,o,i)=>{if(s0(e))return jp(e.data,t);if(l0(e))return t0(e.data,t);let s=Ai(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?pl(s,t):dl(s,ul(Ai(e)?[]:Array.from(e.attributes,l=>l.name).sort(),Ai(e)?{}:[...e.attributes].reduce((l,c)=>(l[c.name]=c.value,l),{}),t,r+t.indent,n,o,i),cl(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,i),t,r)},"serialize$3"),GB={serialize:WB,test:zB},KB="@@__IMMUTABLE_ITERABLE__@@",YB="@@__IMMUTABLE_LIST__@@",XB="@@__IMMUTABLE_KEYED__@@",QB="@@__IMMUTABLE_MAP__@@",Uy="@@__IMMUTABLE_ORDERED__@@",ZB="@@__IMMUTABLE_RECORD__@@",eU="@@__IMMUTABLE_SEQ__@@",tU="@@__IMMUTABLE_SET__@@",rU="@@__IMMUTABLE_STACK__@@",io=a(e=>`Immutable.${e}`,"getImmutableName"),fl=a(e=>`[${e}]`,"printAsLeaf"),_a=" ",Hy="…";function u0(e,t,r,n,o,i,s){return++n>t.maxDepth?fl(io(s)):`${io(s)+_a}{${Oo(e.entries(),t,r,n,o,i)}}`}a(u0,"printImmutableEntries");function c0(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}a(c0,"getRecordEntries");function d0(e,t,r,n,o,i){let s=io(e._name||"Record");return++n>t.maxDepth?fl(s):`${s+_a}{${Oo(c0(e),t,r,n,o,i)}}`}a(d0,"printImmutableRecord");function p0(e,t,r,n,o,i){let s=io("Seq");return++n>t.maxDepth?fl(s):e[XB]?`${s+_a}{${e._iter||e._object?Oo(e.entries(),t,r,n,o,i):Hy}}`:`${s+_a}[${e._iter||e._array||e._collection||e._iterable?sl(e.values(),t,r,n,o,i):Hy}]`}a(p0,"printImmutableSeq");function Ri(e,t,r,n,o,i,s){return++n>t.maxDepth?fl(io(s)):`${io(s)+_a}[${sl(e.values(),t,r,n,o,i)}]`}a(Ri,"printImmutableValues");var nU=a((e,t,r,n,o,i)=>e[QB]?u0(e,t,r,n,o,i,e[Uy]?"OrderedMap":"Map"):e[YB]?Ri(e,t,r,n,o,i,"List"):e[tU]?Ri(e,t,r,n,o,i,e[Uy]?"OrderedSet":"Set"):e[rU]?Ri(e,t,r,n,o,i,"Stack"):e[eU]?p0(e,t,r,n,o,i):d0(e,t,r,n,o,i),"serialize$2"),oU=a(e=>e&&(e[KB]===!0||e[ZB]===!0),"test$2"),aU={serialize:nU,test:oU};function kp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(kp,"getDefaultExportFromCjs");var Vy={exports:{}},Oe={},Jy;function f0(){if(Jy)return Oe;Jy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function m(b){if(typeof b=="object"&&b!==null){var g=b.$$typeof;switch(g){case e:switch(b=b.type,b){case r:case o:case n:case c:case u:case h:return b;default:switch(b=b&&b.$$typeof,b){case s:case l:case p:case d:return b;case i:return b;default:return g}}case t:return g}}}return a(m,"typeOf"),Oe.ContextConsumer=i,Oe.ContextProvider=s,Oe.Element=e,Oe.ForwardRef=l,Oe.Fragment=r,Oe.Lazy=p,Oe.Memo=d,Oe.Portal=t,Oe.Profiler=o,Oe.StrictMode=n,Oe.Suspense=c,Oe.SuspenseList=u,Oe.isContextConsumer=function(b){return m(b)===i},Oe.isContextProvider=function(b){return m(b)===s},Oe.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Oe.isForwardRef=function(b){return m(b)===l},Oe.isFragment=function(b){return m(b)===r},Oe.isLazy=function(b){return m(b)===p},Oe.isMemo=function(b){return m(b)===d},Oe.isPortal=function(b){return m(b)===t},Oe.isProfiler=function(b){return m(b)===o},Oe.isStrictMode=function(b){return m(b)===n},Oe.isSuspense=function(b){return m(b)===c},Oe.isSuspenseList=function(b){return m(b)===u},Oe.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===o||b===n||b===c||b===u||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===d||b.$$typeof===s||b.$$typeof===i||b.$$typeof===l||b.$$typeof===f||b.getModuleId!==void 0)},Oe.typeOf=m,Oe}a(f0,"requireReactIs_production");var zy;function h0(){return zy||(zy=1,Vy.exports=f0()),Vy.exports}a(h0,"requireReactIs$1");var m0=h0(),iU=kp(m0),sU=Np({__proto__:null,default:iU},[m0]),Wy={exports:{}},Se={},Gy;function y0(){if(Gy)return Se;Gy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function b(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case e:switch(g=g.type,g){case r:case o:case n:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case l:case s:case c:case h:case p:case i:return g;default:return v}}case t:return v}}}return a(b,"v"),Se.ContextConsumer=s,Se.ContextProvider=i,Se.Element=e,Se.ForwardRef=c,Se.Fragment=r,Se.Lazy=h,Se.Memo=p,Se.Portal=t,Se.Profiler=o,Se.StrictMode=n,Se.Suspense=u,Se.SuspenseList=d,Se.isAsyncMode=function(){return!1},Se.isConcurrentMode=function(){return!1},Se.isContextConsumer=function(g){return b(g)===s},Se.isContextProvider=function(g){return b(g)===i},Se.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Se.isForwardRef=function(g){return b(g)===c},Se.isFragment=function(g){return b(g)===r},Se.isLazy=function(g){return b(g)===h},Se.isMemo=function(g){return b(g)===p},Se.isPortal=function(g){return b(g)===t},Se.isProfiler=function(g){return b(g)===o},Se.isStrictMode=function(g){return b(g)===n},Se.isSuspense=function(g){return b(g)===u},Se.isSuspenseList=function(g){return b(g)===d},Se.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===u||g===d||g===f||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===p||g.$$typeof===i||g.$$typeof===s||g.$$typeof===c||g.$$typeof===m||g.getModuleId!==void 0)},Se.typeOf=b,Se}a(y0,"requireReactIs_production_min");var Ky;function b0(){return Ky||(Ky=1,Wy.exports=y0()),Wy.exports}a(b0,"requireReactIs");var g0=b0(),lU=kp(g0),uU=Np({__proto__:null,default:lU},[g0]),cU=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],rn=Object.fromEntries(cU.map(e=>[e,t=>uU[e](t)||sU[e](t)]));function Mp(e,t=[]){if(Array.isArray(e))for(let r of e)Mp(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}a(Mp,"getChildren");function lc(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(rn.isFragment(e))return"React.Fragment";if(rn.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(rn.isContextProvider(e))return"Context.Provider";if(rn.isContextConsumer(e))return"Context.Consumer";if(rn.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(rn.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}a(lc,"getType");function v0(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}a(v0,"getPropKeys$1");var dU=a((e,t,r,n,o,i)=>++n>t.maxDepth?pl(lc(e),t):dl(lc(e),ul(v0(e),e.props,t,r+t.indent,n,o,i),cl(Mp(e.props.children),t,r+t.indent,n,o,i),t,r),"serialize$1"),pU=a(e=>e!=null&&rn.isElement(e),"test$1"),fU={serialize:dU,test:pU},hU=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function w0(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}a(w0,"getPropKeys");var mU=a((e,t,r,n,o,i)=>++n>t.maxDepth?pl(e.type,t):dl(e.type,e.props?ul(w0(e),e.props,t,r+t.indent,n,o,i):"",e.children?cl(e.children,t,r+t.indent,n,o,i):"",t,r),"serialize"),yU=a(e=>e&&e.$$typeof===hU,"test"),bU={serialize:mU,test:yU},E0=Object.prototype.toString,gU=Date.prototype.toISOString,vU=Error.prototype.toString,Yy=RegExp.prototype.toString;function fa(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}a(fa,"getConstructorName");function x0(e){return typeof window<"u"&&e===window}a(x0,"isWindow");var wU=/^Symbol\((.*)\)(.*)$/,EU=/\n/g,T0=class extends Error{constructor(t,r){super(t),this.stack=r,this.name=this.constructor.name}};a(T0,"PrettyFormatPluginError");var S0=T0;function C0(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}a(C0,"isToStringedArrayType");function P0(e){return Object.is(e,-0)?"-0":String(e)}a(P0,"printNumber");function O0(e){return`${e}n`}a(O0,"printBigInt");function uc(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}a(uc,"printFunction");function cc(e){return String(e).replace(wU,"Symbol($1)")}a(cc,"printSymbol");function dc(e){return`[${vU.call(e)}]`}a(dc,"printError");function $p(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let o=typeof e;if(o==="number")return P0(e);if(o==="bigint")return O0(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return uc(e,t);if(o==="symbol")return cc(e);let i=E0.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?uc(e,t):i==="[object Symbol]"?cc(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":gU.call(e):i==="[object Error]"?dc(e):i==="[object RegExp]"?r?Yy.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Yy.call(e):e instanceof Error?dc(e):null}a($p,"printBasicValue");function Lp(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let s=++n>t.maxDepth,l=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON=="function"&&!i)return cr(e.toJSON(),t,r,n,o,!0);let c=E0.call(e);return c==="[object Arguments]"?s?"[Arguments]":`${l?"":"Arguments "}[${Oa(e,t,r,n,o,cr)}]`:C0(c)?s?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Oa(e,t,r,n,o,cr)}]`:c==="[object Map]"?s?"[Map]":`Map {${Oo(e.entries(),t,r,n,o,cr," => ")}}`:c==="[object Set]"?s?"[Set]":`Set {${sl(e.values(),t,r,n,o,cr)}}`:s||x0(e)?`[${fa(e)}]`:`${l||!t.printBasicPrototype&&fa(e)==="Object"?"":`${fa(e)} `}{${ll(e,t,r,n,o,cr)}}`}a(Lp,"printComplexValue");var xU={test:a(e=>e&&e instanceof Error,"test"),serialize(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o,e];let s=++n>t.maxDepth,{message:l,cause:c,...u}=e,d={message:l,...typeof c<"u"?{cause:c}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},p=e.name!=="Error"?e.name:fa(e);return s?`[${p}]`:`${p} {${Oo(Object.entries(d).values(),t,r,n,o,i)}}`}};function _0(e){return e.serialize!=null}a(_0,"isNewPlugin");function Dp(e,t,r,n,o,i){let s;try{s=_0(e)?e.serialize(t,r,n,o,i,cr):e.print(t,l=>cr(l,r,n,o,i),l=>{let c=n+r.indent;return c+l.replaceAll(EU,`
|
|
174
|
+
${c}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(l){throw new S0(l.message,l.stack)}if(typeof s!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}a(Dp,"printPlugin");function Fp(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new S0(n.message,n.stack)}return null}a(Fp,"findPlugin");function cr(e,t,r,n,o,i){let s=Fp(t.plugins,e);if(s!==null)return Dp(s,e,t,r,n,o);let l=$p(e,t.printFunctionName,t.escapeRegex,t.escapeString);return l!==null?l:Lp(e,t,r,n,o,i)}a(cr,"printer");var Bp={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},A0=Object.keys(Bp),kt={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Bp};function R0(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(kt,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}a(R0,"validateOptions");function q0(){return A0.reduce((e,t)=>{let r=Bp[t],n=r&&Fe[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}a(q0,"getColorsHighlight");function N0(){return A0.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}a(N0,"getColorsEmpty");function Up(e){return e?.printFunctionName??kt.printFunctionName}a(Up,"getPrintFunctionName");function Hp(e){return e?.escapeRegex??kt.escapeRegex}a(Hp,"getEscapeRegex");function Vp(e){return e?.escapeString??kt.escapeString}a(Vp,"getEscapeString");function pc(e){return{callToJSON:e?.callToJSON??kt.callToJSON,colors:e?.highlight?q0():N0(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:kt.compareKeys,escapeRegex:Hp(e),escapeString:Vp(e),indent:e?.min?"":I0(e?.indent??kt.indent),maxDepth:e?.maxDepth??kt.maxDepth,maxWidth:e?.maxWidth??kt.maxWidth,min:e?.min??kt.min,plugins:e?.plugins??kt.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:Up(e),spacingInner:e?.min?" ":`
|
|
175
|
+
`,spacingOuter:e?.min?"":`
|
|
176
|
+
`}}a(pc,"getConfig");function I0(e){return Array.from({length:e+1}).join(" ")}a(I0,"createIndent");function $t(e,t){if(t&&(R0(t),t.plugins)){let n=Fp(t.plugins,e);if(n!==null)return Dp(n,e,pc(t),"",0,[])}let r=$p(e,Up(t),Hp(t),Vp(t));return r!==null?r:Lp(e,pc(t),"",0,[])}a($t,"format");var Jp={AsymmetricMatcher:LB,DOMCollection:HB,DOMElement:GB,Immutable:aU,ReactElement:fU,ReactTestComponent:bU,Error:xU},Xy={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},TU={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},so="…";function j0(e,t){let r=Xy[TU[t]]||Xy[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}a(j0,"colorise");function k0({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:s=1/0,seen:l=[],truncate:c=1/0,stylize:u=String}={},d){let p={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(c),seen:l,inspect:d,stylize:u};return p.colors&&(p.stylize=j0),p}a(k0,"normaliseOptions");function M0(e){return e>="\uD800"&&e<="\uDBFF"}a(M0,"isHighSurrogate");function vr(e,t,r=so){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let i=t-n;return i>0&&M0(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}a(vr,"truncate");function qt(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,s="",l="",c="";for(let u=0;u<o;u+=1){let d=u+1===e.length,p=u+2===e.length;c=`${so}(${e.length-u})`;let h=e[u];t.truncate=i-s.length-(d?0:n.length);let f=l||r(h,t)+(d?"":n),m=s.length+f.length,b=m+c.length;if(d&&m>i&&s.length+c.length<=i||!d&&!p&&b>i||(l=d?"":r(e[u+1],t)+(p?"":n),!d&&p&&b>i&&m+l.length>i))break;if(s+=f,!d&&!p&&m+l.length>=i){c=`${so}(${e.length-u-1})`;break}c=""}return`${s}${c}`}a(qt,"inspectList");function $0(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}a($0,"quoteComplexKey");function lo([e,t],r){return r.truncate-=2,typeof e=="string"?e=$0(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}a(lo,"inspectProperty");function L0(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=qt(e,t);t.truncate-=n.length;let o="";return r.length&&(o=qt(r.map(i=>[i,e[i]]),t,lo)),`[ ${n}${o?`, ${o}`:""} ]`}a(L0,"inspectArray");var SU=a(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Ht(e,t){let r=SU(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let s=0;s<e.length;s++){let l=`${t.stylize(vr(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=l.length,e[s]!==e.length&&t.truncate<=3){o+=`${so}(${e.length-e[s]+1})`;break}o+=l}let i="";return n.length&&(i=qt(n.map(s=>[s,e[s]]),t,lo)),`${r}[ ${o}${i?`, ${i}`:""} ]`}a(Ht,"inspectTypedArray");function D0(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${vr(n[1],t.truncate-o.length-1)}`,"date")}a(D0,"inspectDate");function fc(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${vr(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}a(fc,"inspectFunction");function F0([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}a(F0,"inspectMapEntry");function B0(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}a(B0,"mapToEntries");function U0(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${qt(B0(e),t,F0)} }`)}a(U0,"inspectMap");var CU=Number.isNaN||(e=>e!==e);function hc(e,t){return CU(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(vr(String(e),t.truncate),"number")}a(hc,"inspectNumber");function mc(e,t){let r=vr(e.toString(),t.truncate-1);return r!==so&&(r+="n"),t.stylize(r,"bigint")}a(mc,"inspectBigInt");function H0(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${vr(o,n)}/${r}`,"regexp")}a(H0,"inspectRegExp");function V0(e){let t=[];return e.forEach(r=>{t.push(r)}),t}a(V0,"arrayFromSet");function J0(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${qt(V0(e),t)} }`)}a(J0,"inspectSet");var Qy=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),PU={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},OU=16;function z0(e){return PU[e]||`\\u${`0000${e.charCodeAt(0).toString(OU)}`.slice(-4)}`}a(z0,"escape");function yc(e,t){return Qy.test(e)&&(e=e.replace(Qy,z0)),t.stylize(`'${vr(e,t.truncate-2)}'`,"string")}a(yc,"inspectString");function bc(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}a(bc,"inspectSymbol");var W0=a(()=>"Promise{…}","getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(W0=a((n,o)=>{let[i,s]=e(n);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(s,o)}}`},"getPromiseValue"))}catch{}var _U=W0;function ha(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=qt(r.map(l=>[l,e[l]]),t,lo),i=qt(n.map(l=>[l,e[l]]),t,lo);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}a(ha,"inspectObject");var ju=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function G0(e,t){let r="";return ju&&ju in e&&(r=e[ju]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${ha(e,t)}`}a(G0,"inspectClass");function K0(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${qt(e,t)} ]`)}a(K0,"inspectArguments");var AU=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Y0(e,t){let r=Object.getOwnPropertyNames(e).filter(s=>AU.indexOf(s)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=vr(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=qt(r.map(s=>[s,e[s]]),t,lo);return`${n}${o}${i?` { ${i} }`:""}`}a(Y0,"inspectObject");function X0([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}a(X0,"inspectAttribute");function Yi(e,t){return qt(e,t,Q0,`
|
|
177
|
+
`)}a(Yi,"inspectNodeCollection");function Q0(e,t){switch(e.nodeType){case 1:return zp(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}a(Q0,"inspectNode");function zp(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let l="";r.length>0&&(l+=" ",l+=qt(r.map(d=>[d,e.getAttribute(d)]),t,X0," ")),t.truncate-=l.length;let c=t.truncate,u=Yi(e.children,t);return u&&u.length>c&&(u=`${so}(${e.children.length})`),`${o}${l}${i}${u}${s}`}a(zp,"inspectHTML");var RU=typeof Symbol=="function"&&typeof Symbol.for=="function",ku=RU?Symbol.for("chai/inspect"):"@@chai/inspect",Mu=Symbol.for("nodejs.util.inspect.custom"),Zy=new WeakMap,eb={},tb={undefined:a((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:a((e,t)=>t.stylize("null","null"),"null"),boolean:a((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:a((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:hc,Number:hc,bigint:mc,BigInt:mc,string:yc,String:yc,function:fc,Function:fc,symbol:bc,Symbol:bc,Array:L0,Date:D0,Map:U0,Set:J0,RegExp:H0,Promise:_U,WeakSet:a((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:a((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:K0,Int8Array:Ht,Uint8Array:Ht,Uint8ClampedArray:Ht,Int16Array:Ht,Uint16Array:Ht,Int32Array:Ht,Uint32Array:Ht,Float32Array:Ht,Float64Array:Ht,Generator:a(()=>"","Generator"),DataView:a(()=>"","DataView"),ArrayBuffer:a(()=>"","ArrayBuffer"),Error:Y0,HTMLCollection:Yi,NodeList:Yi},qU=a((e,t,r)=>ku in e&&typeof e[ku]=="function"?e[ku](t):Mu in e&&typeof e[Mu]=="function"?e[Mu](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Zy.has(e.constructor)?Zy.get(e.constructor)(e,t):eb[r]?eb[r](e,t):"","inspectCustom"),NU=Object.prototype.toString;function Xi(e,t={}){let r=k0(t,Xi),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=NU.call(e).slice(8,-1)),o in tb)return tb[o](e,r);if(n&&e){let s=qU(e,r,o);if(s)return typeof s=="string"?s:Xi(s,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?ha(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?zp(e,r):"constructor"in e?e.constructor!==Object?G0(e,r):ha(e,r):e===Object(e)?ha(e,r):r.stylize(String(e),o)}a(Xi,"inspect");var{AsymmetricMatcher:IU,DOMCollection:jU,DOMElement:kU,Immutable:MU,ReactElement:$U,ReactTestComponent:LU}=Jp,rb=[LU,$U,kU,jU,MU,IU];function ct(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,i;try{i=$t(e,{maxDepth:t,escapeString:!1,plugins:rb,...n})}catch{i=$t(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:rb,...n})}return i.length>=o&&t>1?ct(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):i}a(ct,"stringify");var DU=/%[sdjifoOc%]/g;function Z0(...e){if(typeof e[0]!="string"){let i=[];for(let s=0;s<e.length;s++)i.push(Fn(e[s],{depth:0,colors:!1}));return i.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(DU,i=>{if(i==="%%")return"%";if(r>=t)return i;switch(i){case"%s":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}n`:typeof s=="number"&&s===0&&1/s<0?"-0":typeof s=="object"&&s!==null?typeof s.toString=="function"&&s.toString!==Object.prototype.toString?s.toString():Fn(s,{depth:0,colors:!1}):String(s)}case"%d":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}n`:Number(s).toString()}case"%i":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}n`:Number.parseInt(String(s)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return Fn(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Fn(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(s){let l=s.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return"[Circular]";throw s}default:return i}});for(let i=e[r];r<t;i=e[++r])i===null||typeof i!="object"?o+=` ${i}`:o+=` ${Fn(i)}`;return o}a(Z0,"format");function Fn(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Xi(e,t)}a(Fn,"inspect");function ex(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(ex,"getDefaultExportFromCjs");function Vt(e,t,r){let n=typeof e;if(!r.includes(n))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${n}"`)}a(Vt,"assertTypes");function ma(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}a(ma,"isObject");function tx(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}a(tx,"isFinalObj");function Aa(e){return Object.prototype.toString.apply(e).slice(8,-1)}a(Aa,"getType");function rx(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}a(rx,"collectOwnProperties");function Wp(e){let t=new Set;return tx(e)?[]:(rx(e,t),Array.from(t))}a(Wp,"getOwnProperties");var nx={forceWritable:!1};function gc(e,t=nx){return Qi(e,new WeakMap,t)}a(gc,"deepClone");function Qi(e,t,r=nx){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:n=e.length}),t.set(e,o);n--;)o[n]=Qi(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=Wp(e);for(let s of i){let l=Object.getOwnPropertyDescriptor(e,s);if(!l)continue;let c=Qi(e[s],t,r);r.forceWritable?Object.defineProperty(o,s,{enumerable:l.enumerable,configurable:!0,writable:!0,value:c}):"get"in l?Object.defineProperty(o,s,{...l,get(){return c}}):Object.defineProperty(o,s,{...l,value:c})}return o}return e}a(Qi,"clone");function ox(){}a(ox,"noop");var it=-1,Ze=1,De=0,ax=class{0;1;constructor(t,r){this[0]=t,this[1]=r}};a(ax,"Diff");var ke=ax;function ix(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(i,o)===t.substring(i,o)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}a(ix,"diff_commonPrefix");function Gp(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}a(Gp,"diff_commonSuffix");function vc(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let o=Math.min(r,n);if(e===t)return o;let i=0,s=1;for(;;){let l=e.substring(o-s),c=t.indexOf(l);if(c===-1)return i;s+=c,(c===0||e.substring(o-s)===t.substring(0,s))&&(i=s,s++)}}a(vc,"diff_commonOverlap_");function sx(e){let t=!1,r=[],n=0,o=null,i=0,s=0,l=0,c=0,u=0;for(;i<e.length;)e[i][0]===De?(r[n++]=i,s=c,l=u,c=0,u=0,o=e[i][1]):(e[i][0]===Ze?c+=e[i][1].length:u+=e[i][1].length,o&&o.length<=Math.max(s,l)&&o.length<=Math.max(c,u)&&(e.splice(r[n-1],0,new ke(it,o)),e[r[n-1]+1][0]=Ze,n--,n--,i=n>0?r[n-1]:-1,s=0,l=0,c=0,u=0,o=null,t=!0)),i++;for(t&&Kp(e),lx(e),i=1;i<e.length;){if(e[i-1][0]===it&&e[i][0]===Ze){let d=e[i-1][1],p=e[i][1],h=vc(d,p),f=vc(p,d);h>=f?(h>=d.length/2||h>=p.length/2)&&(e.splice(i,0,new ke(De,p.substring(0,h))),e[i-1][1]=d.substring(0,d.length-h),e[i+1][1]=p.substring(h),i++):(f>=d.length/2||f>=p.length/2)&&(e.splice(i,0,new ke(De,d.substring(0,f))),e[i-1][0]=Ze,e[i-1][1]=p.substring(0,p.length-f),e[i+1][0]=it,e[i+1][1]=d.substring(f),i++),i++}i++}}a(sx,"diff_cleanupSemantic");var nb=/[^a-z0-9]/i,ob=/\s/,ab=/[\r\n]/,FU=/\n\r?\n$/,BU=/^\r?\n\r?\n/;function lx(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===De&&e[t+1][0]===De){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],i=Gp(r,n);if(i){let d=n.substring(n.length-i);r=r.substring(0,r.length-i),n=d+n.substring(0,n.length-i),o=d+o}let s=r,l=n,c=o,u=oa(r,n)+oa(n,o);for(;n.charAt(0)===o.charAt(0);){r+=n.charAt(0),n=n.substring(1)+o.charAt(0),o=o.substring(1);let d=oa(r,n)+oa(n,o);d>=u&&(u=d,s=r,l=n,c=o)}e[t-1][1]!==s&&(s?e[t-1][1]=s:(e.splice(t-1,1),t--),e[t][1]=l,c?e[t+1][1]=c:(e.splice(t+1,1),t--))}t++}}a(lx,"diff_cleanupSemanticLossless");function Kp(e){e.push(new ke(De,""));let t=0,r=0,n=0,o="",i="",s;for(;t<e.length;)switch(e[t][0]){case Ze:n++,i+=e[t][1],t++;break;case it:r++,o+=e[t][1],t++;break;case De:r+n>1?(r!==0&&n!==0&&(s=ix(i,o),s!==0&&(t-r-n>0&&e[t-r-n-1][0]===De?e[t-r-n-1][1]+=i.substring(0,s):(e.splice(0,0,new ke(De,i.substring(0,s))),t++),i=i.substring(s),o=o.substring(s)),s=Gp(i,o),s!==0&&(e[t][1]=i.substring(i.length-s)+e[t][1],i=i.substring(0,i.length-s),o=o.substring(0,o.length-s))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new ke(it,o)),t++),i.length&&(e.splice(t,0,new ke(Ze,i)),t++),t++):t!==0&&e[t-1][0]===De?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let l=!1;for(t=1;t<e.length-1;)e[t-1][0]===De&&e[t+1][0]===De&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),l=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),l=!0)),t++;l&&Kp(e)}a(Kp,"diff_cleanupMerge");function oa(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(nb),i=n.match(nb),s=o&&r.match(ob),l=i&&n.match(ob),c=s&&r.match(ab),u=l&&n.match(ab),d=c&&e.match(FU),p=u&&t.match(BU);return d||p?5:c||u?4:o&&!s&&l?3:s||l?2:o||i?1:0}a(oa,"diff_cleanupSemanticScore_");var ux="Compared values have no visual difference.",UU="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Si={},ib;function cx(){if(ib)return Si;ib=1,Object.defineProperty(Si,"__esModule",{value:!0}),Si.default=h;let e="diff-sequences",t=0,r=a((f,m,b,g,v)=>{let w=0;for(;f<m&&b<g&&v(f,b);)f+=1,b+=1,w+=1;return w},"countCommonItemsF"),n=a((f,m,b,g,v)=>{let w=0;for(;f<=m&&b<=g&&v(m,g);)m-=1,g-=1,w+=1;return w},"countCommonItemsR"),o=a((f,m,b,g,v,w,P)=>{let A=0,R=-f,T=w[A],E=T;w[A]+=r(T+1,m,g+T-R+1,b,v);let x=f<P?f:P;for(A+=1,R+=2;A<=x;A+=1,R+=2){if(A!==f&&E<w[A])T=w[A];else if(T=E+1,m<=T)return A-1;E=w[A],w[A]=T+r(T+1,m,g+T-R+1,b,v)}return P},"extendPathsF"),i=a((f,m,b,g,v,w,P)=>{let A=0,R=f,T=w[A],E=T;w[A]-=n(m,T-1,b,g+T-R-1,v);let x=f<P?f:P;for(A+=1,R-=2;A<=x;A+=1,R-=2){if(A!==f&&w[A]<E)T=w[A];else if(T=E-1,T<m)return A-1;E=w[A],w[A]=T-n(m,T-1,b,g+T-R-1,v)}return P},"extendPathsR"),s=a((f,m,b,g,v,w,P,A,R,T,E)=>{let x=g-m,C=b-m,k=v-g-C,N=-k-(f-1),U=-k+(f-1),D=t,O=f<A?f:A;for(let M=0,$=-f;M<=O;M+=1,$+=2){let K=M===0||M!==f&&D<P[M],G=K?P[M]:D,re=K?G:G+1,ae=x+re-$,Z=r(re+1,b,ae+1,v,w),W=re+Z;if(D=P[M],P[M]=W,N<=$&&$<=U){let z=(f-1-($+k))/2;if(z<=T&&R[z]-1<=W){let Y=x+G-(K?$+1:$-1),ne=n(m,G,g,Y,w),X=G-ne,se=Y-ne,ce=X+1,Me=se+1;E.nChangePreceding=f-1,f-1===ce+Me-m-g?(E.aEndPreceding=m,E.bEndPreceding=g):(E.aEndPreceding=ce,E.bEndPreceding=Me),E.nCommonPreceding=ne,ne!==0&&(E.aCommonPreceding=ce,E.bCommonPreceding=Me),E.nCommonFollowing=Z,Z!==0&&(E.aCommonFollowing=re+1,E.bCommonFollowing=ae+1);let Ve=W+1,F=ae+Z+1;return E.nChangeFollowing=f-1,f-1===b+v-Ve-F?(E.aStartFollowing=b,E.bStartFollowing=v):(E.aStartFollowing=Ve,E.bStartFollowing=F),!0}}}return!1},"extendOverlappablePathsF"),l=a((f,m,b,g,v,w,P,A,R,T,E)=>{let x=v-b,C=b-m,k=v-g-C,N=k-f,U=k+f,D=t,O=f<T?f:T;for(let M=0,$=f;M<=O;M+=1,$-=2){let K=M===0||M!==f&&R[M]<D,G=K?R[M]:D,re=K?G:G-1,ae=x+re-$,Z=n(m,re-1,g,ae-1,w),W=re-Z;if(D=R[M],R[M]=W,N<=$&&$<=U){let z=(f+($-k))/2;if(z<=A&&W-1<=P[z]){let Y=ae-Z;if(E.nChangePreceding=f,f===W+Y-m-g?(E.aEndPreceding=m,E.bEndPreceding=g):(E.aEndPreceding=W,E.bEndPreceding=Y),E.nCommonPreceding=Z,Z!==0&&(E.aCommonPreceding=W,E.bCommonPreceding=Y),E.nChangeFollowing=f-1,f===1)E.nCommonFollowing=0,E.aStartFollowing=b,E.bStartFollowing=v;else{let ne=x+G-(K?$-1:$+1),X=r(G,b,ne,v,w);E.nCommonFollowing=X,X!==0&&(E.aCommonFollowing=G,E.bCommonFollowing=ne);let se=G+X,ce=ne+X;f-1===b+v-se-ce?(E.aStartFollowing=b,E.bStartFollowing=v):(E.aStartFollowing=se,E.bStartFollowing=ce)}return!0}}}return!1},"extendOverlappablePathsR"),c=a((f,m,b,g,v,w,P,A,R)=>{let T=g-m,E=v-b,x=b-m,C=v-g,k=C-x,N=x,U=x;if(P[0]=m-1,A[0]=b,k%2===0){let D=(f||k)/2,O=(x+C)/2;for(let M=1;M<=O;M+=1)if(N=o(M,b,v,T,w,P,N),M<D)U=i(M,m,g,E,w,A,U);else if(l(M,m,b,g,v,w,P,N,A,U,R))return}else{let D=((f||k)+1)/2,O=(x+C+1)/2,M=1;for(N=o(M,b,v,T,w,P,N),M+=1;M<=O;M+=1)if(U=i(M-1,m,g,E,w,A,U),M<D)N=o(M,b,v,T,w,P,N);else if(s(M,m,b,g,v,w,P,N,A,U,R))return}throw new Error(`${e}: no overlap aStart=${m} aEnd=${b} bStart=${g} bEnd=${v}`)},"divide"),u=a((f,m,b,g,v,w,P,A,R,T)=>{if(v-g<b-m){if(w=!w,w&&P.length===1){let{foundSubsequence:z,isCommon:Y}=P[0];P[1]={foundSubsequence:a((ne,X,se)=>{z(ne,se,X)},"foundSubsequence"),isCommon:a((ne,X)=>Y(X,ne),"isCommon")}}let Z=m,W=b;m=g,b=v,g=Z,v=W}let{foundSubsequence:E,isCommon:x}=P[w?1:0];c(f,m,b,g,v,x,A,R,T);let{nChangePreceding:C,aEndPreceding:k,bEndPreceding:N,nCommonPreceding:U,aCommonPreceding:D,bCommonPreceding:O,nCommonFollowing:M,aCommonFollowing:$,bCommonFollowing:K,nChangeFollowing:G,aStartFollowing:re,bStartFollowing:ae}=T;m<k&&g<N&&u(C,m,k,g,N,w,P,A,R,T),U!==0&&E(U,D,O),M!==0&&E(M,$,K),re<b&&ae<v&&u(G,re,b,ae,v,w,P,A,R,T)},"findSubsequences"),d=a((f,m)=>{if(typeof m!="number")throw new TypeError(`${e}: ${f} typeof ${typeof m} is not a number`);if(!Number.isSafeInteger(m))throw new RangeError(`${e}: ${f} value ${m} is not a safe integer`);if(m<0)throw new RangeError(`${e}: ${f} value ${m} is a negative integer`)},"validateLength"),p=a((f,m)=>{let b=typeof m;if(b!=="function")throw new TypeError(`${e}: ${f} typeof ${b} is not a function`)},"validateCallback");function h(f,m,b,g){d("aLength",f),d("bLength",m),p("isCommon",b),p("foundSubsequence",g);let v=r(0,f,0,m,b);if(v!==0&&g(v,0,0),f!==v||m!==v){let w=v,P=v,A=n(w,f-1,P,m-1,b),R=f-A,T=m-A,E=v+A;f!==E&&m!==E&&u(0,w,R,P,T,!1,[{foundSubsequence:g,isCommon:b}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),A!==0&&g(A,R,T)}}return a(h,"diffSequence"),Si}a(cx,"requireBuild");var HU=cx(),dx=ex(HU);function px(e,t){return e.replace(/\s+$/,r=>t(r))}a(px,"formatTrailingSpaces");function hl(e,t,r,n,o,i){return e.length!==0?r(`${n} ${px(e,o)}`):n!==" "?r(n):t&&i.length!==0?r(`${n} ${i}`):""}a(hl,"printDiffLine");function Yp(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return hl(e,t,r,n,o,i)}a(Yp,"printDeleteLine");function Xp(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return hl(e,t,r,n,o,i)}a(Xp,"printInsertLine");function Qp(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return hl(e,t,r,n,o,i)}a(Qp,"printCommonLine");function wc(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}a(wc,"createPatchMark");function fx(e,t){let r=e.length,n=t.contextLines,o=n+n,i=r,s=!1,l=0,c=0;for(;c!==r;){let A=c;for(;c!==r&&e[c][0]===De;)c+=1;if(A!==c)if(A===0)c>n&&(i-=c-n,s=!0);else if(c===r){let R=c-A;R>n&&(i-=R-n,s=!0)}else{let R=c-A;R>o&&(i-=R-o,l+=1)}for(;c!==r&&e[c][0]!==De;)c+=1}let u=l!==0||s;l!==0?i+=l+1:s&&(i+=1);let d=i-1,p=[],h=0;u&&p.push("");let f=0,m=0,b=0,g=0,v=a(A=>{let R=p.length;p.push(Qp(A,R===0||R===d,t)),b+=1,g+=1},"pushCommonLine"),w=a(A=>{let R=p.length;p.push(Yp(A,R===0||R===d,t)),b+=1},"pushDeleteLine"),P=a(A=>{let R=p.length;p.push(Xp(A,R===0||R===d,t)),g+=1},"pushInsertLine");for(c=0;c!==r;){let A=c;for(;c!==r&&e[c][0]===De;)c+=1;if(A!==c)if(A===0){c>n&&(A=c-n,f=A,m=A,b=f,g=m);for(let R=A;R!==c;R+=1)v(e[R][1])}else if(c===r){let R=c-A>n?A+n:c;for(let T=A;T!==R;T+=1)v(e[T][1])}else{let R=c-A;if(R>o){let T=A+n;for(let x=A;x!==T;x+=1)v(e[x][1]);p[h]=wc(f,b,m,g,t),h=p.length,p.push("");let E=R-o;f=b+E,m=g+E,b=f,g=m;for(let x=c-n;x!==c;x+=1)v(e[x][1])}else for(let T=A;T!==c;T+=1)v(e[T][1])}for(;c!==r&&e[c][0]===it;)w(e[c][1]),c+=1;for(;c!==r&&e[c][0]===Ze;)P(e[c][1]),c+=1}return u&&(p[h]=wc(f,b,m,g,t)),p.join(`
|
|
178
|
+
`)}a(fx,"joinAlignedDiffsNoExpand");function hx(e,t){return e.map((r,n,o)=>{let i=r[1],s=n===0||n===o.length-1;switch(r[0]){case it:return Yp(i,s,t);case Ze:return Xp(i,s,t);default:return Qp(i,s,t)}}).join(`
|
|
179
|
+
`)}a(hx,"joinAlignedDiffsExpand");var $u=a(e=>e,"noColor"),mx=5,VU=0;function yx(){return{aAnnotation:"Expected",aColor:Fe.green,aIndicator:"-",bAnnotation:"Received",bColor:Fe.red,bIndicator:"+",changeColor:Fe.inverse,changeLineTrailingSpaceColor:$u,commonColor:Fe.dim,commonIndicator:" ",commonLineTrailingSpaceColor:$u,compareKeys:void 0,contextLines:mx,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Fe.yellow,printBasicPrototype:!1,truncateThreshold:VU,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:$u}}a(yx,"getDefaultOptions");function bx(e){return e&&typeof e=="function"?e:void 0}a(bx,"getCompareKeys");function gx(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:mx}a(gx,"getContextLines");function Jr(e={}){return{...yx(),...e,compareKeys:bx(e.compareKeys),contextLines:gx(e.contextLines)}}a(Jr,"normalizeDiffOptions");function nn(e){return e.length===1&&e[0].length===0}a(nn,"isEmptyString");function vx(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case it:t+=1;break;case Ze:r+=1;break}}),{a:t,b:r}}a(vx,"countChanges");function wx({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:i,includeChangeCounts:s,omitAnnotationLines:l},c){if(l)return"";let u="",d="";if(s){let f=String(c.a),m=String(c.b),b=n.length-e.length,g=" ".repeat(Math.max(0,b)),v=" ".repeat(Math.max(0,-b)),w=m.length-f.length,P=" ".repeat(Math.max(0,w)),A=" ".repeat(Math.max(0,-w));u=`${g} ${r} ${P}${f}`,d=`${v} ${i} ${A}${m}`}let p=`${r} ${e}${u}`,h=`${i} ${n}${d}`;return`${t(p)}
|
|
180
|
+
${o(h)}
|
|
181
|
+
|
|
182
|
+
`}a(wx,"printAnnotation");function ml(e,t,r){return wx(r,vx(e))+(r.expand?hx(e,r):fx(e,r))+(t?r.truncateAnnotationColor(`
|
|
183
|
+
${r.truncateAnnotation}`):"")}a(ml,"printDiffLines");function ri(e,t,r){let n=Jr(r),[o,i]=Zp(nn(e)?[]:e,nn(t)?[]:t,n);return ml(o,i,n)}a(ri,"diffLinesUnified");function Ex(e,t,r,n,o){if(nn(e)&&nn(r)&&(e=[],r=[]),nn(t)&&nn(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return ri(e,t,o);let[i,s]=Zp(r,n,o),l=0,c=0;return i.forEach(u=>{switch(u[0]){case it:u[1]=e[l],l+=1;break;case Ze:u[1]=t[c],c+=1;break;default:u[1]=t[c],l+=1,c+=1}}),ml(i,s,Jr(o))}a(Ex,"diffLinesUnified2");function Zp(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),i=n?Math.min(e.length,o):e.length,s=n?Math.min(t.length,o):t.length,l=i!==e.length||s!==t.length,c=a((h,f)=>e[h]===t[f],"isCommon"),u=[],d=0,p=0;for(dx(i,s,c,a((h,f,m)=>{for(;d!==f;d+=1)u.push(new ke(it,e[d]));for(;p!==m;p+=1)u.push(new ke(Ze,t[p]));for(;h!==0;h-=1,d+=1,p+=1)u.push(new ke(De,t[p]))},"foundSubsequence"));d!==i;d+=1)u.push(new ke(it,e[d]));for(;p!==s;p+=1)u.push(new ke(Ze,t[p]));return[u,l]}a(Zp,"diffLinesRaw");function Ec(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}a(Ec,"getType");function xc(e){return e.includes(`\r
|
|
184
|
+
`)?`\r
|
|
185
|
+
`:`
|
|
186
|
+
`}a(xc,"getNewLineSymbol");function xx(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),i=e.length,s=t.length;if(n){let h=e.includes(`
|
|
187
|
+
`),f=t.includes(`
|
|
188
|
+
`),m=xc(e),b=xc(t),g=h?`${e.split(m,o).join(m)}
|
|
189
|
+
`:e,v=f?`${t.split(b,o).join(b)}
|
|
190
|
+
`:t;i=g.length,s=v.length}let l=i!==e.length||s!==t.length,c=a((h,f)=>e[h]===t[f],"isCommon"),u=0,d=0,p=[];return dx(i,s,c,a((h,f,m)=>{u!==f&&p.push(new ke(it,e.slice(u,f))),d!==m&&p.push(new ke(Ze,t.slice(d,m))),u=f+h,d=m+h,p.push(new ke(De,t.slice(m,d)))},"foundSubsequence")),u!==i&&p.push(new ke(it,e.slice(u))),d!==s&&p.push(new ke(Ze,t.slice(d))),[p,l]}a(xx,"diffStrings");function Tx(e,t,r){return t.reduce((n,o)=>n+(o[0]===De?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}a(Tx,"concatenateRelevantDiffs");var Sx=class{op;line;lines;changeColor;constructor(t,r){this.op=t,this.line=[],this.lines=[],this.changeColor=r}pushSubstring(t){this.pushDiff(new ke(this.op,t))}pushLine(){this.lines.push(this.line.length!==1?new ke(this.op,Tx(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new ke(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(t){this.line.push(t)}align(t){let r=t[1];if(r.includes(`
|
|
191
|
+
`)){let n=r.split(`
|
|
192
|
+
`),o=n.length-1;n.forEach((i,s)=>{s<o?(this.pushSubstring(i),this.pushLine()):i.length!==0&&this.pushSubstring(i)})}else this.pushDiff(t)}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0}};a(Sx,"ChangeBuffer");var sb=Sx,Cx=class{deleteBuffer;insertBuffer;lines;constructor(t,r){this.deleteBuffer=t,this.insertBuffer=r,this.lines=[]}pushDiffCommonLine(t){this.lines.push(t)}pushDiffChangeLines(t){let r=t[1].length===0;(!r||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!r||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(t){let r=t[0],n=t[1];if(n.includes(`
|
|
193
|
+
`)){let o=n.split(`
|
|
194
|
+
`),i=o.length-1;o.forEach((s,l)=>{if(l===0){let c=new ke(r,s);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(c)):(this.pushDiffChangeLines(c),this.flushChangeLines())}else l<i?this.pushDiffCommonLine(new ke(r,s)):s.length!==0&&this.pushDiffChangeLines(new ke(r,s))})}else this.pushDiffChangeLines(t)}getLines(){return this.flushChangeLines(),this.lines}};a(Cx,"CommonBuffer");var JU=Cx;function Px(e,t){let r=new sb(it,t),n=new sb(Ze,t),o=new JU(r,n);return e.forEach(i=>{switch(i[0]){case it:r.align(i);break;case Ze:n.align(i);break;default:o.align(i)}}),o.getLines()}a(Px,"getAlignedDiffs");function Ox(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===De&&(o!==r||n[1]!==`
|
|
195
|
+
`))}return e.some(r=>r[0]===De)}a(Ox,"hasCommonDiff");function _x(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
|
|
196
|
+
`)||t.includes(`
|
|
197
|
+
`),[o,i]=ef(n?`${e}
|
|
198
|
+
`:e,n?`${t}
|
|
199
|
+
`:t,!0,r);if(Ox(o,n)){let s=Jr(r),l=Px(o,s.changeColor);return ml(l,i,s)}}return ri(e.split(`
|
|
200
|
+
`),t.split(`
|
|
201
|
+
`),r)}a(_x,"diffStringsUnified");function ef(e,t,r,n){let[o,i]=xx(e,t,n);return r&&sx(o),[o,i]}a(ef,"diffStringsRaw");function Zi(e,t){let{commonColor:r}=Jr(t);return r(e)}a(Zi,"getCommonMessage");var{AsymmetricMatcher:zU,DOMCollection:WU,DOMElement:GU,Immutable:KU,ReactElement:YU,ReactTestComponent:XU}=Jp,Ax=[XU,YU,GU,WU,KU,zU,Jp.Error],Tc={maxDepth:20,plugins:Ax},Rx={callToJSON:!1,maxDepth:8,plugins:Ax};function Rn(e,t,r){if(Object.is(e,t))return"";let n=Ec(e),o=n,i=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),i=o==="string"}if(o!==Ec(t)){let s=function(P){return P.length<=g?P:`${P.slice(0,g)}...`};a(s,"truncate");let{aAnnotation:l,aColor:c,aIndicator:u,bAnnotation:d,bColor:p,bIndicator:h}=Jr(r),f=es(Rx,r),m=$t(e,f),b=$t(t,f),g=1e5;m=s(m),b=s(b);let v=`${c(`${u} ${l}:`)}
|
|
202
|
+
${m}`,w=`${p(`${h} ${d}:`)}
|
|
203
|
+
${b}`;return`${v}
|
|
204
|
+
|
|
205
|
+
${w}`}if(!i)switch(n){case"string":return ri(e.split(`
|
|
206
|
+
`),t.split(`
|
|
207
|
+
`),r);case"boolean":case"number":return qx(e,t,r);case"map":return qi(Sc(e),Sc(t),r);case"set":return qi(Cc(e),Cc(t),r);default:return qi(e,t,r)}}a(Rn,"diff");function qx(e,t,r){let n=$t(e,Tc),o=$t(t,Tc);return n===o?"":ri(n.split(`
|
|
208
|
+
`),o.split(`
|
|
209
|
+
`),r)}a(qx,"comparePrimitive");function Sc(e){return new Map(Array.from(e.entries()).sort())}a(Sc,"sortMap");function Cc(e){return new Set(Array.from(e.values()).sort())}a(Cc,"sortSet");function qi(e,t,r){let n,o=!1;try{let s=es(Tc,r);n=Pc(e,t,s,r)}catch{o=!0}let i=Zi(ux,r);if(n===void 0||n===i){let s=es(Rx,r);n=Pc(e,t,s,r),n!==i&&!o&&(n=`${Zi(UU,r)}
|
|
210
|
+
|
|
211
|
+
${n}`)}return n}a(qi,"compareObjects");function es(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=Jr(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}a(es,"getFormatOptions");function Pc(e,t,r,n){let o={...r,indent:0},i=$t(e,o),s=$t(t,o);if(i===s)return Zi(ux,n);{let l=$t(e,r),c=$t(t,r);return Ex(l.split(`
|
|
212
|
+
`),c.split(`
|
|
213
|
+
`),i.split(`
|
|
214
|
+
`),s.split(`
|
|
215
|
+
`),n)}}a(Pc,"getObjectsDifference");var lb=2e4;function Oc(e){return Aa(e)==="Object"&&typeof e.asymmetricMatch=="function"}a(Oc,"isAsymmetricMatcher");function _c(e,t){let r=Aa(e),n=Aa(t);return r===n&&(r==="Object"||r==="Array")}a(_c,"isReplaceable");function tf(e,t,r){let{aAnnotation:n,bAnnotation:o}=Jr(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=lb&&e.length<=lb&&t!==e){if(t.includes(`
|
|
216
|
+
`)||e.includes(`
|
|
217
|
+
`))return _x(t,e,r);let[u]=ef(t,e,!0),d=u.some(m=>m[0]===De),p=Nx(n,o),h=p(n)+jx(Ac(u,it,d)),f=p(o)+Ix(Ac(u,Ze,d));return`${h}
|
|
218
|
+
${f}`}let i=gc(t,{forceWritable:!0}),s=gc(e,{forceWritable:!0}),{replacedExpected:l,replacedActual:c}=rf(s,i);return Rn(l,c,r)}a(tf,"printDiffOrStringify");function rf(e,t,r=new WeakSet,n=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):_c(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),Wp(t).forEach(o=>{let i=t[o],s=e[o];if(Oc(i))i.asymmetricMatch(s)&&(e[o]=i);else if(Oc(s))s.asymmetricMatch(i)&&(t[o]=s);else if(_c(s,i)){let l=rf(s,i,r,n);e[o]=l.replacedActual,t[o]=l.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}a(rf,"replaceAsymmetricMatcher");function Nx(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}a(Nx,"getLabelPrinter");var QU="·";function nf(e){return e.replace(/\s+$/gm,t=>QU.repeat(t.length))}a(nf,"replaceTrailingSpaces");function Ix(e){return Fe.red(nf(ct(e)))}a(Ix,"printReceived");function jx(e){return Fe.green(nf(ct(e)))}a(jx,"printExpected");function Ac(e,t,r){return e.reduce((n,o)=>n+(o[0]===De?o[1]:o[0]===t?r?Fe.inverse(o[1]):o[1]:""),"")}a(Ac,"getCommonAndChangedSubstrings");var ZU="@@__IMMUTABLE_RECORD__@@",eH="@@__IMMUTABLE_ITERABLE__@@";function kx(e){return e&&(e[eH]||e[ZU])}a(kx,"isImmutable");var tH=Object.getPrototypeOf({});function Rc(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}a(Rc,"getUnserializableMessage");function dr(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&aa(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&aa(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&aa(()=>r.name??(r.name=e.name)),e.cause!=null&&aa(()=>r.cause??(r.cause=dr(e.cause,t)))),dr(r,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(kx(e))return dr(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${Z0(e.sample)}`;if(typeof e.toJSON=="function")return dr(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=dr(n,t)}catch(i){r[o]=Rc(i)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==tH;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=dr(e[o],t)}catch(i){delete r[o],r[o]=Rc(i)}}),n=Object.getPrototypeOf(n);return r}}a(dr,"serializeValue");function aa(e){try{return e()}catch{}}a(aa,"safe");function Mx(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}a(Mx,"normalizeErrorMessage");function yl(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=tf(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=ct(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=ct(n.actual,10));try{typeof n.message=="string"&&(n.message=Mx(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=yl(n.cause,t,r))}catch{}try{return dr(n)}catch(o){return dr(new Error(`Failed to fully serialize error: ${o?.message}
|
|
219
|
+
Inner error message: ${n?.message}`))}}a(yl,"processError");var or={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},Lu=globalThis.__STORYBOOK_ADDONS_PREVIEW,rH=new Error("This function ran after the play function completed. Did you forget to `await` it?"),ub=a(e=>Object.prototype.toString.call(e)==="[object Object]","isObject"),nH=a(e=>Object.prototype.toString.call(e)==="[object Module]","isModule"),oH=a(e=>{if(!ub(e)&&!nH(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!ub(t)},"isInstrumentable"),aH=a(e=>{try{return new e.constructor}catch{return{}}},"construct"),Du=a(()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),"getInitialState"),cb=a((e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},"getRetainedState"),$x=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=a(()=>{try{this.state=te.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},"loadParentWindowState"),this.updateParentWindowState=a(()=>{try{te.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},"updateParentWindowState"),this.loadParentWindowState();let t=a(({storyId:c,renderPhase:u,isPlaying:d=!0,isDebugging:p=!1})=>{let h=this.getState(c);this.setState(c,{...Du(),...cb(h,p),renderPhase:u||h.renderPhase,shadowCalls:p?h.shadowCalls:[],chainedCallIds:p?h.chainedCallIds:new Set,playUntil:p?h.playUntil:void 0,isPlaying:d,isDebugging:p}),this.sync(c)},"resetState"),r=a(c=>({storyId:u,playUntil:d})=>{this.getState(u).isDebugging||this.setState(u,({calls:h})=>({calls:[],shadowCalls:h.map(f=>({...f,status:"waiting"})),isDebugging:!0}));let p=this.getLog(u);this.setState(u,({shadowCalls:h})=>{if(d||!p.length)return{playUntil:d};let f=h.findIndex(m=>m.id===p[0].callId);return{playUntil:h.slice(0,f).filter(m=>m.interceptable&&!m.ancestors?.length).slice(-1)[0]?.id}}),c.emit(Gi,{storyId:u,isDebugging:!0})},"start"),n=a(c=>({storyId:u})=>{let d=this.getLog(u).filter(h=>!h.ancestors?.length),p=d.reduceRight((h,f,m)=>h>=0||f.status==="waiting"?h:m,-1);r(c)({storyId:u,playUntil:d[p-1]?.callId})},"back"),o=a(c=>({storyId:u,callId:d})=>{let{calls:p,shadowCalls:h,resolvers:f}=this.getState(u),m=p.find(({id:g})=>g===d),b=h.find(({id:g})=>g===d);if(!m&&b&&Object.values(f).length>0){let g=this.getLog(u).find(v=>v.status==="waiting")?.callId;b.id!==g&&this.setState(u,{playUntil:b.id}),Object.values(f).forEach(v=>v())}else r(c)({storyId:u,playUntil:d})},"goto"),i=a(c=>({storyId:u})=>{let{resolvers:d}=this.getState(u);if(Object.values(d).length>0)Object.values(d).forEach(p=>p());else{let p=this.getLog(u).find(h=>h.status==="waiting")?.callId;p?r(c)({storyId:u,playUntil:p}):s({storyId:u})}},"next"),s=a(({storyId:c})=>{this.setState(c,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(c).resolvers).forEach(u=>u())},"end"),l=a(({storyId:c,newPhase:u})=>{let{isDebugging:d}=this.getState(c);if(u==="preparing"&&d)return t({storyId:c,renderPhase:u});if(u==="playing")return t({storyId:c,renderPhase:u,isDebugging:d});u==="played"?this.setState(c,{renderPhase:u,isLocked:!1,isPlaying:!1,isDebugging:!1}):u==="errored"?this.setState(c,{renderPhase:u,isLocked:!1,isPlaying:!1}):u==="aborted"?this.setState(c,{renderPhase:u,isLocked:!0,isPlaying:!1}):this.setState(c,{renderPhase:u}),this.sync(c)},"renderPhaseChanged");Lu&&Lu.ready().then(()=>{this.channel=Lu.getChannel(),this.channel.on(Gi,t),this.channel.on(mn,l),this.channel.on(lp,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(or.START,r(this.channel)),this.channel.on(or.BACK,n(this.channel)),this.channel.on(or.GOTO,o(this.channel)),this.channel.on(or.NEXT,i(this.channel)),this.channel.on(or.END,s)})}getState(t){return this.state[t]||Du()}setState(t,r){if(t){let n=this.getState(t),o=typeof r=="function"?r(n):r;this.state={...this.state,[t]:{...n,...o}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((r,[n,o])=>{let i=cb(o);return i&&(r[n]=Object.assign(Du(),i)),r},{});let t={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(or.SYNC,t),this.updateParentWindowState()}getLog(t){let{calls:r,shadowCalls:n}=this.getState(t),o=[...n];r.forEach((s,l)=>{o[l]=s});let i=new Set;return o.reduceRight((s,l)=>(l.args.forEach(c=>{c?.__callId__&&i.add(c.__callId__)}),l.path.forEach(c=>{c.__callId__&&i.add(c.__callId__)}),(l.interceptable||l.exception)&&!i.has(l.id)&&(s.unshift({callId:l.id,status:l.status,ancestors:l.ancestors}),i.add(l.id)),s),[])}instrument(t,r,n=0){if(!oH(t))return t;let{mutate:o=!1,path:i=[]}=r,s=r.getKeys?r.getKeys(t,n):Object.keys(t);return n+=1,s.reduce((l,c)=>{let u=Lx(t,c);if(typeof u?.get=="function"){if(u.configurable){let p=a(()=>u?.get?.bind(t)?.(),"getter");Object.defineProperty(l,c,{get:a(()=>this.instrument(p(),{...r,path:i.concat(c)},n),"get")})}return l}let d=t[c];return typeof d!="function"?(l[c]=this.instrument(d,{...r,path:i.concat(c)},n),l):"__originalFn__"in d&&typeof d.__originalFn__=="function"?(l[c]=d,l):(l[c]=(...p)=>this.track(c,d,t,p,r),l[c].__originalFn__=d,Object.defineProperty(l[c],"name",{value:c,writable:!1}),Object.keys(d).length>0&&Object.assign(l[c],this.instrument({...d},{...r,path:i.concat(c)},n)),l)},o?t:aH(t))}track(t,r,n,o,i){let s=o?.[0]?.__storyId__||te.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:l,ancestors:c}=this.getState(s);this.setState(s,{cursor:l+1});let u=`${c.slice(-1)[0]||s} [${l}] ${t}`,{path:d=[],intercept:p=!1,retain:h=!1}=i,f=typeof p=="function"?p(t,d):p,m={id:u,cursor:l,storyId:s,ancestors:c,path:d,method:t,args:o,interceptable:f,retain:h},b=(f&&!c.length?this.intercept:this.invoke).call(this,r,n,m,i);return this.instrument(b,{...i,mutate:!0,path:[{__callId__:m.id}]})}intercept(t,r,n,o){let{chainedCallIds:i,isDebugging:s,playUntil:l}=this.getState(n.storyId),c=i.has(n.id);return!s||c||l?(l===n.id&&this.setState(n.storyId,{playUntil:void 0}),this.invoke(t,r,n,o)):new Promise(u=>{this.setState(n.storyId,({resolvers:d})=>({isLocked:!1,resolvers:{...d,[n.id]:u}}))}).then(()=>(this.setState(n.storyId,u=>{let{[n.id]:d,...p}=u.resolvers;return{isLocked:!0,resolvers:p}}),this.invoke(t,r,n,o)))}invoke(t,r,n,o){let{callRefsByResult:i,renderPhase:s}=this.getState(n.storyId),l=25,c=a((p,h,f)=>{if(f.includes(p))return"[Circular]";if(f=[...f,p],h>l)return"...";if(i.has(p))return i.get(p);if(p instanceof Array)return p.map(m=>c(m,++h,f));if(p instanceof Date)return{__date__:{value:p.toISOString()}};if(p instanceof Error){let{name:m,message:b,stack:g}=p;return{__error__:{name:m,message:b,stack:g}}}if(p instanceof RegExp){let{flags:m,source:b}=p;return{__regexp__:{flags:m,source:b}}}if(p instanceof te.window?.HTMLElement){let{prefix:m,localName:b,id:g,classList:v,innerText:w}=p,P=Array.from(v);return{__element__:{prefix:m,localName:b,id:g,classNames:P,innerText:w}}}return typeof p=="function"?{__function__:{name:"getMockName"in p?p.getMockName():p.name}}:typeof p=="symbol"?{__symbol__:{description:p.description}}:typeof p=="object"&&p?.constructor?.name&&p?.constructor?.name!=="Object"?{__class__:{name:p.constructor.name}}:Object.prototype.toString.call(p)==="[object Object]"?Object.fromEntries(Object.entries(p).map(([m,b])=>[m,c(b,++h,f)])):p},"serializeValues"),u={...n,args:n.args.map(p=>c(p,0,[]))};n.path.forEach(p=>{p?.__callId__&&this.setState(n.storyId,({chainedCallIds:h})=>({chainedCallIds:new Set(Array.from(h).concat(p.__callId__))}))});let d=a(p=>{if(p instanceof Error){let{name:h,message:f,stack:m,callId:b=n.id}=p,{showDiff:g=void 0,diff:v=void 0,actual:w=void 0,expected:P=void 0}=p.name==="AssertionError"?yl(p):p,A={name:h,message:f,stack:m,callId:b,showDiff:g,diff:v,actual:w,expected:P};if(this.update({...u,status:"error",exception:A}),this.setState(n.storyId,R=>({callRefsByResult:new Map([...Array.from(R.callRefsByResult.entries()),[p,{__callId__:n.id,retain:n.retain}]])})),n.ancestors?.length)throw Object.prototype.hasOwnProperty.call(p,"callId")||Object.defineProperty(p,"callId",{value:n.id}),p}throw p},"handleException");try{if(s==="played"&&!n.retain)throw rH;let p=(o.getArgs?o.getArgs(n,this.getState(n.storyId)):n.args).map(f=>typeof f!="function"||Dx(f)||Object.keys(f).length?f:(...m)=>{let{cursor:b,ancestors:g}=this.getState(n.storyId);this.setState(n.storyId,{cursor:0,ancestors:[...g,n.id]});let v=a(()=>this.setState(n.storyId,{cursor:b,ancestors:g}),"restore"),w=!1;try{let P=f(...m);return P instanceof Promise?(w=!0,P.finally(v)):P}finally{w||v()}}),h=t.apply(r,p);return h&&["object","function","symbol"].includes(typeof h)&&this.setState(n.storyId,f=>({callRefsByResult:new Map([...Array.from(f.callRefsByResult.entries()),[h,{__callId__:n.id,retain:n.retain}]])})),this.update({...u,status:h instanceof Promise?"active":"done"}),h instanceof Promise?h.then(f=>(this.update({...u,status:"done"}),f),d):h}catch(p){return d(p)}}update(t){this.channel?.emit(or.CALL,t),this.setState(t.storyId,({calls:r})=>{let n=r.concat(t).reduce((o,i)=>Object.assign(o,{[i.id]:i}),{});return{calls:Object.values(n).sort((o,i)=>o.id.localeCompare(i.id,void 0,{numeric:!0}))}}),this.sync(t.storyId)}sync(t){let r=a(()=>{let{isLocked:n,isPlaying:o}=this.getState(t),i=this.getLog(t),s=i.filter(({ancestors:d})=>!d.length).find(d=>d.status==="waiting")?.callId,l=i.some(d=>d.status==="active");if(this.detached||n||l||i.length===0){let d={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:i};this.channel?.emit(or.SYNC,d);return}let c=i.some(d=>d.status==="done"||d.status==="error"),u={controlStates:{detached:this.detached,start:c,back:c,goto:!0,next:o,end:o},logItems:i,pausedAt:s};this.channel?.emit(or.SYNC,u)},"synchronize");this.setState(t,({syncTimeout:n})=>(clearTimeout(n),{syncTimeout:setTimeout(r,0)}))}};a($x,"Instrumenter");var iH=$x;function _o(e,t={}){try{let r=!1,n=!1;return te.window?.location?.search?.includes("instrument=true")?r=!0:te.window?.location?.search?.includes("instrument=false")&&(n=!0),te.window?.parent===te.window&&!r||n?e:(te.window&&!te.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(te.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new iH),(te.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return Be.warn(r),e}}a(_o,"instrument");function Lx(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}a(Lx,"getPropertyDescriptor");function Dx(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}a(Dx,"isClass");var Fx=Object.defineProperty,sH=Object.getOwnPropertyNames,V=a((e,t)=>Fx(e,"name",{value:t,configurable:!0}),"__name"),lH=a((e,t)=>a(function(){return t||(0,e[sH(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),of=a((e,t)=>{for(var r in t)Fx(e,r,{get:t[r],enumerable:!0})},"__export"),uH=lH({"(disabled):util"(){}}),zt={};of(zt,{addChainableMethod:a(()=>_l,"addChainableMethod"),addLengthGuard:a(()=>qo,"addLengthGuard"),addMethod:a(()=>Cl,"addMethod"),addProperty:a(()=>Sl,"addProperty"),checkError:a(()=>bt,"checkError"),compareByInspect:a(()=>Ia,"compareByInspect"),eql:a(()=>Hx,"eql"),expectTypes:a(()=>pf,"expectTypes"),flag:a(()=>he,"flag"),getActual:a(()=>oi,"getActual"),getMessage:a(()=>vl,"getMessage"),getName:a(()=>ii,"getName"),getOperator:a(()=>Nl,"getOperator"),getOwnEnumerableProperties:a(()=>ql,"getOwnEnumerableProperties"),getOwnEnumerablePropertySymbols:a(()=>Rl,"getOwnEnumerablePropertySymbols"),getPathInfo:a(()=>Tl,"getPathInfo"),hasProperty:a(()=>ai,"hasProperty"),inspect:a(()=>we,"inspect"),isNaN:a(()=>ms,"isNaN"),isNumeric:a(()=>Ge,"isNumeric"),isProxyEnabled:a(()=>Ro,"isProxyEnabled"),isRegExp:a(()=>ja,"isRegExp"),objDisplay:a(()=>jr,"objDisplay"),overwriteChainableMethod:a(()=>Al,"overwriteChainableMethod"),overwriteMethod:a(()=>Ol,"overwriteMethod"),overwriteProperty:a(()=>Pl,"overwriteProperty"),proxify:a(()=>qn,"proxify"),test:a(()=>bl,"test"),transferFlags:a(()=>Nt,"transferFlags"),type:a(()=>Ce,"type")});var bt={};of(bt,{compatibleConstructor:a(()=>lf,"compatibleConstructor"),compatibleInstance:a(()=>sf,"compatibleInstance"),compatibleMessage:a(()=>uf,"compatibleMessage"),getConstructorName:a(()=>cf,"getConstructorName"),getMessage:a(()=>df,"getMessage")});function ni(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}a(ni,"isErrorInstance");V(ni,"isErrorInstance");function af(e){return Object.prototype.toString.call(e)==="[object RegExp]"}a(af,"isRegExp");V(af,"isRegExp");function sf(e,t){return ni(t)&&e===t}a(sf,"compatibleInstance");V(sf,"compatibleInstance");function lf(e,t){return ni(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}a(lf,"compatibleConstructor");V(lf,"compatibleConstructor");function uf(e,t){let r=typeof e=="string"?e:e.message;return af(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}a(uf,"compatibleMessage");V(uf,"compatibleMessage");function cf(e){let t=e;return ni(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}a(cf,"getConstructorName");V(cf,"getConstructorName");function df(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}a(df,"getMessage");V(df,"getMessage");function he(e,t,r){var n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}a(he,"flag");V(he,"flag");function bl(e,t){var r=he(e,"negate"),n=t[0];return r?!n:n}a(bl,"test");V(bl,"test");function Ce(e){if(typeof e>"u")return"undefined";if(e===null)return"null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}a(Ce,"type");V(Ce,"type");var cH="captureStackTrace"in Error,ea,xe=(ea=class extends Error{message;get name(){return"AssertionError"}get ok(){return!1}constructor(e="Unspecified AssertionError",t,r){super(e),this.message=e,cH&&Error.captureStackTrace(this,r||ea);for(let n in t)n in this||(this[n]=t[n])}toJSON(e){return{...this,name:this.name,message:this.message,ok:!1,stack:e!==!1?this.stack:void 0}}},a(ea,"_AssertionError"),V(ea,"AssertionError"),ea);function pf(e,t){var r=he(e,"message"),n=he(e,"ssfi");r=r?r+": ":"",e=he(e,"object"),t=t.map(function(s){return s.toLowerCase()}),t.sort();var o=t.map(function(s,l){var c=~["a","e","i","o","u"].indexOf(s.charAt(0))?"an":"a",u=t.length>1&&l===t.length-1?"or ":"";return u+c+" "+s}).join(", "),i=Ce(e).toLowerCase();if(!t.some(function(s){return i===s}))throw new xe(r+"object tested must be "+o+", but "+i+" given",void 0,n)}a(pf,"expectTypes");V(pf,"expectTypes");function oi(e,t){return t.length>4?t[4]:e._obj}a(oi,"getActual");V(oi,"getActual");var db={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},dH={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},uo="…";function ff(e,t){let r=db[dH[t]]||db[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}a(ff,"colorise");V(ff,"colorise");function hf({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:s=1/0,seen:l=[],truncate:c=1/0,stylize:u=String}={},d){let p={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(c),seen:l,inspect:d,stylize:u};return p.colors&&(p.stylize=ff),p}a(hf,"normaliseOptions");V(hf,"normaliseOptions");function mf(e){return e>="\uD800"&&e<="\uDBFF"}a(mf,"isHighSurrogate");V(mf,"isHighSurrogate");function Qt(e,t,r=uo){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let i=t-n;return i>0&&mf(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}a(Qt,"truncate");V(Qt,"truncate");function xt(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,s="",l="",c="";for(let u=0;u<o;u+=1){let d=u+1===e.length,p=u+2===e.length;c=`${uo}(${e.length-u})`;let h=e[u];t.truncate=i-s.length-(d?0:n.length);let f=l||r(h,t)+(d?"":n),m=s.length+f.length,b=m+c.length;if(d&&m>i&&s.length+c.length<=i||!d&&!p&&b>i||(l=d?"":r(e[u+1],t)+(p?"":n),!d&&p&&b>i&&m+l.length>i))break;if(s+=f,!d&&!p&&m+l.length>=i){c=`${uo}(${e.length-u-1})`;break}c=""}return`${s}${c}`}a(xt,"inspectList");V(xt,"inspectList");function yf(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}a(yf,"quoteComplexKey");V(yf,"quoteComplexKey");function yn([e,t],r){return r.truncate-=2,typeof e=="string"?e=yf(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}a(yn,"inspectProperty");V(yn,"inspectProperty");function bf(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=xt(e,t);t.truncate-=n.length;let o="";return r.length&&(o=xt(r.map(i=>[i,e[i]]),t,yn)),`[ ${n}${o?`, ${o}`:""} ]`}a(bf,"inspectArray");V(bf,"inspectArray");var pH=V(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function jt(e,t){let r=pH(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let s=0;s<e.length;s++){let l=`${t.stylize(Qt(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=l.length,e[s]!==e.length&&t.truncate<=3){o+=`${uo}(${e.length-e[s]+1})`;break}o+=l}let i="";return n.length&&(i=xt(n.map(s=>[s,e[s]]),t,yn)),`${r}[ ${o}${i?`, ${i}`:""} ]`}a(jt,"inspectTypedArray");V(jt,"inspectTypedArray");function gf(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${Qt(n[1],t.truncate-o.length-1)}`,"date")}a(gf,"inspectDate");V(gf,"inspectDate");function ts(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Qt(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}a(ts,"inspectFunction");V(ts,"inspectFunction");function vf([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}a(vf,"inspectMapEntry");V(vf,"inspectMapEntry");function wf(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}a(wf,"mapToEntries");V(wf,"mapToEntries");function Ef(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${xt(wf(e),t,vf)} }`)}a(Ef,"inspectMap");V(Ef,"inspectMap");var fH=Number.isNaN||(e=>e!==e);function rs(e,t){return fH(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Qt(String(e),t.truncate),"number")}a(rs,"inspectNumber");V(rs,"inspectNumber");function ns(e,t){let r=Qt(e.toString(),t.truncate-1);return r!==uo&&(r+="n"),t.stylize(r,"bigint")}a(ns,"inspectBigInt");V(ns,"inspectBigInt");function xf(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Qt(o,n)}/${r}`,"regexp")}a(xf,"inspectRegExp");V(xf,"inspectRegExp");function Tf(e){let t=[];return e.forEach(r=>{t.push(r)}),t}a(Tf,"arrayFromSet");V(Tf,"arrayFromSet");function Sf(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${xt(Tf(e),t)} }`)}a(Sf,"inspectSet");V(Sf,"inspectSet");var pb=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),hH={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},mH=16;function Cf(e){return hH[e]||`\\u${`0000${e.charCodeAt(0).toString(mH)}`.slice(-4)}`}a(Cf,"escape");V(Cf,"escape");function os(e,t){return pb.test(e)&&(e=e.replace(pb,Cf)),t.stylize(`'${Qt(e,t.truncate-2)}'`,"string")}a(os,"inspectString");V(os,"inspectString");function as(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}a(as,"inspectSymbol");V(as,"inspectSymbol");var Bx=V(()=>"Promise{…}","getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(Bx=V((n,o)=>{let[i,s]=e(n);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(s,o)}}`},"getPromiseValue"))}catch{}var yH=Bx;function Qn(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=xt(r.map(l=>[l,e[l]]),t,yn),i=xt(n.map(l=>[l,e[l]]),t,yn);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}a(Qn,"inspectObject");V(Qn,"inspectObject");var Fu=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function Pf(e,t){let r="";return Fu&&Fu in e&&(r=e[Fu]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Qn(e,t)}`}a(Pf,"inspectClass");V(Pf,"inspectClass");function Of(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${xt(e,t)} ]`)}a(Of,"inspectArguments");V(Of,"inspectArguments");var bH=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function _f(e,t){let r=Object.getOwnPropertyNames(e).filter(s=>bH.indexOf(s)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Qt(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=xt(r.map(s=>[s,e[s]]),t,yn);return`${n}${o}${i?` { ${i} }`:""}`}a(_f,"inspectObject2");V(_f,"inspectObject");function Af([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}a(Af,"inspectAttribute");V(Af,"inspectAttribute");function Ra(e,t){return xt(e,t,gl,`
|
|
220
|
+
`)}a(Ra,"inspectHTMLCollection");V(Ra,"inspectHTMLCollection");function gl(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let l="";r.length>0&&(l+=" ",l+=xt(r.map(d=>[d,e.getAttribute(d)]),t,Af," ")),t.truncate-=l.length;let c=t.truncate,u=Ra(e.children,t);return u&&u.length>c&&(u=`${uo}(${e.children.length})`),`${o}${l}${i}${u}${s}`}a(gl,"inspectHTML");V(gl,"inspectHTML");var gH=typeof Symbol=="function"&&typeof Symbol.for=="function",Bu=gH?Symbol.for("chai/inspect"):"@@chai/inspect",zn=!1;try{let e=uH();zn=e.inspect?e.inspect.custom:!1}catch{zn=!1}var fb=new WeakMap,hb={},mb={undefined:a((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:a((e,t)=>t.stylize("null","null"),"null"),boolean:a((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:a((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:rs,Number:rs,bigint:ns,BigInt:ns,string:os,String:os,function:ts,Function:ts,symbol:as,Symbol:as,Array:bf,Date:gf,Map:Ef,Set:Sf,RegExp:xf,Promise:yH,WeakSet:a((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:a((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:Of,Int8Array:jt,Uint8Array:jt,Uint8ClampedArray:jt,Int16Array:jt,Uint16Array:jt,Int32Array:jt,Uint32Array:jt,Float32Array:jt,Float64Array:jt,Generator:a(()=>"","Generator"),DataView:a(()=>"","DataView"),ArrayBuffer:a(()=>"","ArrayBuffer"),Error:_f,HTMLCollection:Ra,NodeList:Ra},vH=V((e,t,r)=>Bu in e&&typeof e[Bu]=="function"?e[Bu](t):zn&&zn in e&&typeof e[zn]=="function"?e[zn](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&fb.has(e.constructor)?fb.get(e.constructor)(e,t):hb[r]?hb[r](e,t):"","inspectCustom"),wH=Object.prototype.toString;function qa(e,t={}){let r=hf(t,qa),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=wH.call(e).slice(8,-1)),o in mb)return mb[o](e,r);if(n&&e){let s=vH(e,r,o);if(s)return typeof s=="string"?s:qa(s,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?Qn(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?gl(e,r):"constructor"in e?e.constructor!==Object?Pf(e,r):Qn(e,r):e===Object(e)?Qn(e,r):r.stylize(String(e),o)}a(qa,"inspect");V(qa,"inspect");var lt={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function we(e,t,r,n){var o={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:lt.truncateThreshold?lt.truncateThreshold:1/0};return qa(e,o)}a(we,"inspect2");V(we,"inspect");function jr(e){var t=we(e),r=Object.prototype.toString.call(e);if(lt.truncateThreshold&&t.length>=lt.truncateThreshold){if(r==="[object Function]")return!e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(r==="[object Array]")return"[ Array("+e.length+") ]";if(r==="[object Object]"){var n=Object.keys(e),o=n.length>2?n.splice(0,2).join(", ")+", ...":n.join(", ");return"{ Object ("+o+") }"}else return t}else return t}a(jr,"objDisplay");V(jr,"objDisplay");function vl(e,t){var r=he(e,"negate"),n=he(e,"object"),o=t[3],i=oi(e,t),s=r?t[2]:t[1],l=he(e,"message");return typeof s=="function"&&(s=s()),s=s||"",s=s.replace(/#\{this\}/g,function(){return jr(n)}).replace(/#\{act\}/g,function(){return jr(i)}).replace(/#\{exp\}/g,function(){return jr(o)}),l?l+": "+s:s}a(vl,"getMessage2");V(vl,"getMessage");function Nt(e,t,r){var n=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),r=arguments.length===3?r:!0;for(var o in n)(r||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=n[o])}a(Nt,"transferFlags");V(Nt,"transferFlags");function is(e){if(typeof e>"u")return"undefined";if(e===null)return"null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}a(is,"type2");V(is,"type");function wl(){this._key="chai/deep-eql__"+Math.random()+Date.now()}a(wl,"FakeMap");V(wl,"FakeMap");wl.prototype={get:V(a(function(e){return e[this._key]},"get"),"get"),set:V(a(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},"set"),"set")};var Ux=typeof WeakMap=="function"?WeakMap:wl;function ss(e,t,r){if(!r||Br(e)||Br(t))return null;var n=r.get(e);if(n){var o=n.get(t);if(typeof o=="boolean")return o}return null}a(ss,"memoizeCompare");V(ss,"memoizeCompare");function Wn(e,t,r,n){if(!(!r||Br(e)||Br(t))){var o=r.get(e);o?o.set(t,n):(o=new Ux,o.set(t,n),r.set(e,o))}}a(Wn,"memoizeSet");V(Wn,"memoizeSet");var Hx=Ao;function Ao(e,t,r){if(r&&r.comparator)return ls(e,t,r);var n=El(e,t);return n!==null?n:ls(e,t,r)}a(Ao,"deepEqual");V(Ao,"deepEqual");function El(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:Br(e)||Br(t)?!1:null}a(El,"simpleEqual");V(El,"simpleEqual");function ls(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new Ux;var n=r&&r.comparator,o=ss(e,t,r.memoize);if(o!==null)return o;var i=ss(t,e,r.memoize);if(i!==null)return i;if(n){var s=n(e,t);if(s===!1||s===!0)return Wn(e,t,r.memoize,s),s;var l=El(e,t);if(l!==null)return l}var c=is(e);if(c!==is(t))return Wn(e,t,r.memoize,!1),!1;Wn(e,t,r.memoize,!0);var u=Rf(e,t,c,r);return Wn(e,t,r.memoize,u),u}a(ls,"extensiveDeepEqual");V(ls,"extensiveDeepEqual");function Rf(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return Ao(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return xl(e,t,["name","message","code"],n);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return mr(e,t,n);case"RegExp":return qf(e,t);case"Generator":return Nf(e,t,n);case"DataView":return mr(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return mr(new Uint8Array(e),new Uint8Array(t),n);case"Set":return us(e,t,n);case"Map":return us(e,t,n);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return e.equals(t);case"Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return e.toString()===t.toString();default:return jf(e,t,n)}}a(Rf,"extensiveDeepEqualByType");V(Rf,"extensiveDeepEqualByType");function qf(e,t){return e.toString()===t.toString()}a(qf,"regexpEqual");V(qf,"regexpEqual");function us(e,t,r){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var n=[],o=[];return e.forEach(V(a(function(i,s){n.push([i,s])},"gatherEntries"),"gatherEntries")),t.forEach(V(a(function(i,s){o.push([i,s])},"gatherEntries"),"gatherEntries")),mr(n.sort(),o.sort(),r)}a(us,"entriesEqual");V(us,"entriesEqual");function mr(e,t,r){var n=e.length;if(n!==t.length)return!1;if(n===0)return!0;for(var o=-1;++o<n;)if(Ao(e[o],t[o],r)===!1)return!1;return!0}a(mr,"iterableEqual");V(mr,"iterableEqual");function Nf(e,t,r){return mr(Na(e),Na(t),r)}a(Nf,"generatorEqual");V(Nf,"generatorEqual");function If(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}a(If,"hasIteratorFunction");V(If,"hasIteratorFunction");function cs(e){if(If(e))try{return Na(e[Symbol.iterator]())}catch{return[]}return[]}a(cs,"getIteratorEntries");V(cs,"getIteratorEntries");function Na(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}a(Na,"getGeneratorEntries");V(Na,"getGeneratorEntries");function ds(e){var t=[];for(var r in e)t.push(r);return t}a(ds,"getEnumerableKeys");V(ds,"getEnumerableKeys");function ps(e){for(var t=[],r=Object.getOwnPropertySymbols(e),n=0;n<r.length;n+=1){var o=r[n];Object.getOwnPropertyDescriptor(e,o).enumerable&&t.push(o)}return t}a(ps,"getEnumerableSymbols");V(ps,"getEnumerableSymbols");function xl(e,t,r,n){var o=r.length;if(o===0)return!0;for(var i=0;i<o;i+=1)if(Ao(e[r[i]],t[r[i]],n)===!1)return!1;return!0}a(xl,"keysEqual");V(xl,"keysEqual");function jf(e,t,r){var n=ds(e),o=ds(t),i=ps(e),s=ps(t);if(n=n.concat(i),o=o.concat(s),n.length&&n.length===o.length)return mr(fs(n).sort(),fs(o).sort())===!1?!1:xl(e,t,n,r);var l=cs(e),c=cs(t);return l.length&&l.length===c.length?(l.sort(),c.sort(),mr(l,c,r)):n.length===0&&l.length===0&&o.length===0&&c.length===0}a(jf,"objectEqual");V(jf,"objectEqual");function Br(e){return e===null||typeof e!="object"}a(Br,"isPrimitive");V(Br,"isPrimitive");function fs(e){return e.map(V(a(function(t){return typeof t=="symbol"?t.toString():t},"mapSymbol"),"mapSymbol"))}a(fs,"mapSymbols");V(fs,"mapSymbols");function ai(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}a(ai,"hasProperty");V(ai,"hasProperty");function kf(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(t=>{if(t==="constructor"||t==="__proto__"||t==="prototype")return{};let r=/^\[(\d+)\]$/.exec(t),n=null;return r?n={i:parseFloat(r[1])}:n={p:t.replace(/\\([.[\]])/g,"$1")},n})}a(kf,"parsePath");V(kf,"parsePath");function hs(e,t,r){let n=e,o=null;r=typeof r>"u"?t.length:r;for(let i=0;i<r;i++){let s=t[i];n&&(typeof s.p>"u"?n=n[s.i]:n=n[s.p],i===r-1&&(o=n))}return o}a(hs,"internalGetPathValue");V(hs,"internalGetPathValue");function Tl(e,t){let r=kf(t),n=r[r.length-1],o={parent:r.length>1?hs(e,r,r.length-1):e,name:n.p||n.i,value:hs(e,r)};return o.exists=ai(o.parent,o.name),o}a(Tl,"getPathInfo");V(Tl,"getPathInfo");function j(e,t,r,n){return he(this,"ssfi",r||j),he(this,"lockSsfi",n),he(this,"object",e),he(this,"message",t),he(this,"eql",lt.deepEqual||Hx),qn(this)}a(j,"Assertion");V(j,"Assertion");Object.defineProperty(j,"includeStack",{get:a(function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),lt.includeStack},"get"),set:a(function(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),lt.includeStack=e},"set")});Object.defineProperty(j,"showDiff",{get:a(function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),lt.showDiff},"get"),set:a(function(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),lt.showDiff=e},"set")});j.addProperty=function(e,t){Sl(this.prototype,e,t)};j.addMethod=function(e,t){Cl(this.prototype,e,t)};j.addChainableMethod=function(e,t,r){_l(this.prototype,e,t,r)};j.overwriteProperty=function(e,t){Pl(this.prototype,e,t)};j.overwriteMethod=function(e,t){Ol(this.prototype,e,t)};j.overwriteChainableMethod=function(e,t,r){Al(this.prototype,e,t,r)};j.prototype.assert=function(e,t,r,n,o,i){var s=bl(this,arguments);if(i!==!1&&(i=!0),n===void 0&&o===void 0&&(i=!1),lt.showDiff!==!0&&(i=!1),!s){t=vl(this,arguments);var l=oi(this,arguments),c={actual:l,expected:n,showDiff:i},u=Nl(this,arguments);throw u&&(c.operator=u),new xe(t,c,lt.includeStack?this.assert:he(this,"ssfi"))}};Object.defineProperty(j.prototype,"_obj",{get:a(function(){return he(this,"object")},"get"),set:a(function(e){he(this,"object",e)},"set")});function Ro(){return lt.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}a(Ro,"isProxyEnabled");V(Ro,"isProxyEnabled");function Sl(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:V(a(function n(){!Ro()&&!he(this,"lockSsfi")&&he(this,"ssfi",n);var o=r.call(this);if(o!==void 0)return o;var i=new j;return Nt(this,i),i},"propertyGetter"),"propertyGetter"),configurable:!0})}a(Sl,"addProperty");V(Sl,"addProperty");var EH=Object.getOwnPropertyDescriptor(function(){},"length");function qo(e,t,r){return EH.configurable&&Object.defineProperty(e,"length",{get:a(function(){throw Error(r?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')},"get")}),e}a(qo,"addLengthGuard");V(qo,"addLengthGuard");function Mf(e){var t=Object.getOwnPropertyNames(e);function r(o){t.indexOf(o)===-1&&t.push(o)}a(r,"addProperty2"),V(r,"addProperty");for(var n=Object.getPrototypeOf(e);n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}a(Mf,"getProperties");V(Mf,"getProperties");var yb=["__flags","__methods","_obj","assert"];function qn(e,t){return Ro()?new Proxy(e,{get:V(a(function r(n,o){if(typeof o=="string"&<.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(n,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');var i=null,s=4;throw Mf(n).forEach(function(l){if(!Object.prototype.hasOwnProperty(l)&&yb.indexOf(l)===-1){var c=$f(o,l,s);c<s&&(i=l,s=c)}}),Error(i!==null?"Invalid Chai property: "+o+'. Did you mean "'+i+'"?':"Invalid Chai property: "+o)}return yb.indexOf(o)===-1&&!he(n,"lockSsfi")&&he(n,"ssfi",r),Reflect.get(n,o)},"proxyGetter"),"proxyGetter")}):e}a(qn,"proxify");V(qn,"proxify");function $f(e,t,r){if(Math.abs(e.length-t.length)>=r)return r;var n=[];for(let i=0;i<=e.length;i++)n[i]=Array(t.length+1).fill(0),n[i][0]=i;for(let i=0;i<t.length;i++)n[0][i]=i;for(let i=1;i<=e.length;i++){var o=e.charCodeAt(i-1);for(let s=1;s<=t.length;s++){if(Math.abs(i-s)>=r){n[i][s]=r;continue}n[i][s]=Math.min(n[i-1][s]+1,n[i][s-1]+1,n[i-1][s-1]+(o===t.charCodeAt(s-1)?0:1))}}return n[e.length][t.length]}a($f,"stringDistanceCapped");V($f,"stringDistanceCapped");function Cl(e,t,r){var n=V(function(){he(this,"lockSsfi")||he(this,"ssfi",n);var o=r.apply(this,arguments);if(o!==void 0)return o;var i=new j;return Nt(this,i),i},"methodWrapper");qo(n,t,!1),e[t]=qn(n,t)}a(Cl,"addMethod");V(Cl,"addMethod");function Pl(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t),o=V(function(){},"_super");n&&typeof n.get=="function"&&(o=n.get),Object.defineProperty(e,t,{get:V(a(function i(){!Ro()&&!he(this,"lockSsfi")&&he(this,"ssfi",i);var s=he(this,"lockSsfi");he(this,"lockSsfi",!0);var l=r(o).call(this);if(he(this,"lockSsfi",s),l!==void 0)return l;var c=new j;return Nt(this,c),c},"overwritingPropertyGetter"),"overwritingPropertyGetter"),configurable:!0})}a(Pl,"overwriteProperty");V(Pl,"overwriteProperty");function Ol(e,t,r){var n=e[t],o=V(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(o=n);var i=V(function(){he(this,"lockSsfi")||he(this,"ssfi",i);var s=he(this,"lockSsfi");he(this,"lockSsfi",!0);var l=r(o).apply(this,arguments);if(he(this,"lockSsfi",s),l!==void 0)return l;var c=new j;return Nt(this,c),c},"overwritingMethodWrapper");qo(i,t,!1),e[t]=qn(i,t)}a(Ol,"overwriteMethod");V(Ol,"overwriteMethod");var xH=typeof Object.setPrototypeOf=="function",bb=V(function(){},"testFn"),TH=Object.getOwnPropertyNames(bb).filter(function(e){var t=Object.getOwnPropertyDescriptor(bb,e);return typeof t!="object"?!0:!t.configurable}),SH=Function.prototype.call,CH=Function.prototype.apply;function _l(e,t,r,n){typeof n!="function"&&(n=V(function(){},"chainingBehavior"));var o={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:V(a(function(){o.chainingBehavior.call(this);var i=V(function(){he(this,"lockSsfi")||he(this,"ssfi",i);var c=o.method.apply(this,arguments);if(c!==void 0)return c;var u=new j;return Nt(this,u),u},"chainableMethodWrapper");if(qo(i,t,!0),xH){var s=Object.create(this);s.call=SH,s.apply=CH,Object.setPrototypeOf(i,s)}else{var l=Object.getOwnPropertyNames(e);l.forEach(function(c){if(TH.indexOf(c)===-1){var u=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(i,c,u)}})}return Nt(this,i),qn(i)},"chainableMethodGetter"),"chainableMethodGetter"),configurable:!0})}a(_l,"addChainableMethod");V(_l,"addChainableMethod");function Al(e,t,r,n){var o=e.__methods[t],i=o.chainingBehavior;o.chainingBehavior=V(a(function(){var l=n(i).call(this);if(l!==void 0)return l;var c=new j;return Nt(this,c),c},"overwritingChainableMethodGetter"),"overwritingChainableMethodGetter");var s=o.method;o.method=V(a(function(){var l=r(s).apply(this,arguments);if(l!==void 0)return l;var c=new j;return Nt(this,c),c},"overwritingChainableMethodWrapper"),"overwritingChainableMethodWrapper")}a(Al,"overwriteChainableMethod");V(Al,"overwriteChainableMethod");function Ia(e,t){return we(e)<we(t)?-1:1}a(Ia,"compareByInspect");V(Ia,"compareByInspect");function Rl(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}a(Rl,"getOwnEnumerablePropertySymbols");V(Rl,"getOwnEnumerablePropertySymbols");function ql(e){return Object.keys(e).concat(Rl(e))}a(ql,"getOwnEnumerableProperties");V(ql,"getOwnEnumerableProperties");var ms=Number.isNaN;function Lf(e){var t=Ce(e),r=["Array","Object","Function"];return r.indexOf(t)!==-1}a(Lf,"isObjectType");V(Lf,"isObjectType");function Nl(e,t){var r=he(e,"operator"),n=he(e,"negate"),o=t[3],i=n?t[2]:t[1];if(r)return r;if(typeof i=="function"&&(i=i()),i=i||"",!!i&&!/\shave\s/.test(i)){var s=Lf(o);return/\snot\s/.test(i)?s?"notDeepStrictEqual":"notStrictEqual":s?"deepStrictEqual":"strictEqual"}}a(Nl,"getOperator");V(Nl,"getOperator");function ii(e){return e.name}a(ii,"getName");V(ii,"getName");function ja(e){return Object.prototype.toString.call(e)==="[object RegExp]"}a(ja,"isRegExp2");V(ja,"isRegExp");function Ge(e){return["Number","BigInt"].includes(Ce(e))}a(Ge,"isNumeric");V(Ge,"isNumeric");var{flag:B}=zt;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){j.addProperty(e)});j.addProperty("not",function(){B(this,"negate",!0)});j.addProperty("deep",function(){B(this,"deep",!0)});j.addProperty("nested",function(){B(this,"nested",!0)});j.addProperty("own",function(){B(this,"own",!0)});j.addProperty("ordered",function(){B(this,"ordered",!0)});j.addProperty("any",function(){B(this,"any",!0),B(this,"all",!1)});j.addProperty("all",function(){B(this,"all",!0),B(this,"any",!1)});var gb={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Il(e,t){t&&B(this,"message",t),e=e.toLowerCase();var r=B(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";let o=Ce(r).toLowerCase();gb.function.includes(e)?this.assert(gb[e].includes(o),"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e):this.assert(e===o,"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e)}a(Il,"an");V(Il,"an");j.addChainableMethod("an",Il);j.addChainableMethod("a",Il);function Df(e,t){return ms(e)&&ms(t)||e===t}a(Df,"SameValueZero");V(Df,"SameValueZero");function No(){B(this,"contains",!0)}a(No,"includeChainingBehavior");V(No,"includeChainingBehavior");function Io(e,t){t&&B(this,"message",t);var r=B(this,"object"),n=Ce(r).toLowerCase(),o=B(this,"message"),i=B(this,"negate"),s=B(this,"ssfi"),l=B(this,"deep"),c=l?"deep ":"",u=l?B(this,"eql"):Df;o=o?o+": ":"";var d=!1;switch(n){case"string":d=r.indexOf(e)!==-1;break;case"weakset":if(l)throw new xe(o+"unable to use .deep.include with WeakSet",void 0,s);d=r.has(e);break;case"map":r.forEach(function(m){d=d||u(m,e)});break;case"set":l?r.forEach(function(m){d=d||u(m,e)}):d=r.has(e);break;case"array":l?d=r.some(function(m){return u(m,e)}):d=r.indexOf(e)!==-1;break;default:if(e!==Object(e))throw new xe(o+"the given combination of arguments ("+n+" and "+Ce(e).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+Ce(e).toLowerCase(),void 0,s);var p=Object.keys(e),h=null,f=0;if(p.forEach(function(m){var b=new j(r);if(Nt(this,b,!0),B(b,"lockSsfi",!0),!i||p.length===1){b.property(m,e[m]);return}try{b.property(m,e[m])}catch(g){if(!bt.compatibleConstructor(g,xe))throw g;h===null&&(h=g),f++}},this),i&&p.length>1&&f===p.length)throw h;return}this.assert(d,"expected #{this} to "+c+"include "+we(e),"expected #{this} to not "+c+"include "+we(e))}a(Io,"include");V(Io,"include");j.addChainableMethod("include",Io,No);j.addChainableMethod("contain",Io,No);j.addChainableMethod("contains",Io,No);j.addChainableMethod("includes",Io,No);j.addProperty("ok",function(){this.assert(B(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});j.addProperty("true",function(){this.assert(B(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!B(this,"negate"))});j.addProperty("numeric",function(){let e=B(this,"object");this.assert(["Number","BigInt"].includes(Ce(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!B(this,"negate"))});j.addProperty("callable",function(){let e=B(this,"object"),t=B(this,"ssfi"),r=B(this,"message"),n=r?`${r}: `:"",o=B(this,"negate"),i=o?`${n}expected ${we(e)} not to be a callable function`:`${n}expected ${we(e)} to be a callable function`,s=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(Ce(e));if(s&&o||!s&&!o)throw new xe(i,void 0,t)});j.addProperty("false",function(){this.assert(B(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!B(this,"negate"))});j.addProperty("null",function(){this.assert(B(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});j.addProperty("undefined",function(){this.assert(B(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});j.addProperty("NaN",function(){this.assert(ms(B(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function jl(){var e=B(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}a(jl,"assertExist");V(jl,"assertExist");j.addProperty("exist",jl);j.addProperty("exists",jl);j.addProperty("empty",function(){var e=B(this,"object"),t=B(this,"ssfi"),r=B(this,"message"),n;switch(r=r?r+": ":"",Ce(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new xe(r+".empty was passed a weak collection",void 0,t);case"function":var o=r+".empty was passed a function "+ii(e);throw new xe(o.trim(),void 0,t);default:if(e!==Object(e))throw new xe(r+".empty was passed non-string primitive "+we(e),void 0,t);n=Object.keys(e).length}this.assert(n===0,"expected #{this} to be empty","expected #{this} not to be empty")});function kl(){var e=B(this,"object"),t=Ce(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}a(kl,"checkArguments");V(kl,"checkArguments");j.addProperty("arguments",kl);j.addProperty("Arguments",kl);function si(e,t){t&&B(this,"message",t);var r=B(this,"object");if(B(this,"deep")){var n=B(this,"lockSsfi");B(this,"lockSsfi",!0),this.eql(e),B(this,"lockSsfi",n)}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}a(si,"assertEqual");V(si,"assertEqual");j.addMethod("equal",si);j.addMethod("equals",si);j.addMethod("eq",si);function Ml(e,t){t&&B(this,"message",t);var r=B(this,"eql");this.assert(r(e,B(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}a(Ml,"assertEql");V(Ml,"assertEql");j.addMethod("eql",Ml);j.addMethod("eqls",Ml);function li(e,t){t&&B(this,"message",t);var r=B(this,"object"),n=B(this,"doLength"),o=B(this,"message"),i=o?o+": ":"",s=B(this,"ssfi"),l=Ce(r).toLowerCase(),c=Ce(e).toLowerCase();if(n&&l!=="map"&&l!=="set"&&new j(r,o,s,!0).to.have.property("length"),!n&&l==="date"&&c!=="date")throw new xe(i+"the argument to above must be a date",void 0,s);if(!Ge(e)&&(n||Ge(r)))throw new xe(i+"the argument to above must be a number",void 0,s);if(!n&&l!=="date"&&!Ge(r)){var u=l==="string"?"'"+r+"'":r;throw new xe(i+"expected "+u+" to be a number or a date",void 0,s)}if(n){var d="length",p;l==="map"||l==="set"?(d="size",p=r.size):p=r.length,this.assert(p>e,"expected #{this} to have a "+d+" above #{exp} but got #{act}","expected #{this} to not have a "+d+" above #{exp}",e,p)}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}a(li,"assertAbove");V(li,"assertAbove");j.addMethod("above",li);j.addMethod("gt",li);j.addMethod("greaterThan",li);function ui(e,t){t&&B(this,"message",t);var r=B(this,"object"),n=B(this,"doLength"),o=B(this,"message"),i=o?o+": ":"",s=B(this,"ssfi"),l=Ce(r).toLowerCase(),c=Ce(e).toLowerCase(),u,d=!0;if(n&&l!=="map"&&l!=="set"&&new j(r,o,s,!0).to.have.property("length"),!n&&l==="date"&&c!=="date")u=i+"the argument to least must be a date";else if(!Ge(e)&&(n||Ge(r)))u=i+"the argument to least must be a number";else if(!n&&l!=="date"&&!Ge(r)){var p=l==="string"?"'"+r+"'":r;u=i+"expected "+p+" to be a number or a date"}else d=!1;if(d)throw new xe(u,void 0,s);if(n){var h="length",f;l==="map"||l==="set"?(h="size",f=r.size):f=r.length,this.assert(f>=e,"expected #{this} to have a "+h+" at least #{exp} but got #{act}","expected #{this} to have a "+h+" below #{exp}",e,f)}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}a(ui,"assertLeast");V(ui,"assertLeast");j.addMethod("least",ui);j.addMethod("gte",ui);j.addMethod("greaterThanOrEqual",ui);function ci(e,t){t&&B(this,"message",t);var r=B(this,"object"),n=B(this,"doLength"),o=B(this,"message"),i=o?o+": ":"",s=B(this,"ssfi"),l=Ce(r).toLowerCase(),c=Ce(e).toLowerCase(),u,d=!0;if(n&&l!=="map"&&l!=="set"&&new j(r,o,s,!0).to.have.property("length"),!n&&l==="date"&&c!=="date")u=i+"the argument to below must be a date";else if(!Ge(e)&&(n||Ge(r)))u=i+"the argument to below must be a number";else if(!n&&l!=="date"&&!Ge(r)){var p=l==="string"?"'"+r+"'":r;u=i+"expected "+p+" to be a number or a date"}else d=!1;if(d)throw new xe(u,void 0,s);if(n){var h="length",f;l==="map"||l==="set"?(h="size",f=r.size):f=r.length,this.assert(f<e,"expected #{this} to have a "+h+" below #{exp} but got #{act}","expected #{this} to not have a "+h+" below #{exp}",e,f)}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}a(ci,"assertBelow");V(ci,"assertBelow");j.addMethod("below",ci);j.addMethod("lt",ci);j.addMethod("lessThan",ci);function di(e,t){t&&B(this,"message",t);var r=B(this,"object"),n=B(this,"doLength"),o=B(this,"message"),i=o?o+": ":"",s=B(this,"ssfi"),l=Ce(r).toLowerCase(),c=Ce(e).toLowerCase(),u,d=!0;if(n&&l!=="map"&&l!=="set"&&new j(r,o,s,!0).to.have.property("length"),!n&&l==="date"&&c!=="date")u=i+"the argument to most must be a date";else if(!Ge(e)&&(n||Ge(r)))u=i+"the argument to most must be a number";else if(!n&&l!=="date"&&!Ge(r)){var p=l==="string"?"'"+r+"'":r;u=i+"expected "+p+" to be a number or a date"}else d=!1;if(d)throw new xe(u,void 0,s);if(n){var h="length",f;l==="map"||l==="set"?(h="size",f=r.size):f=r.length,this.assert(f<=e,"expected #{this} to have a "+h+" at most #{exp} but got #{act}","expected #{this} to have a "+h+" above #{exp}",e,f)}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}a(di,"assertMost");V(di,"assertMost");j.addMethod("most",di);j.addMethod("lte",di);j.addMethod("lessThanOrEqual",di);j.addMethod("within",function(e,t,r){r&&B(this,"message",r);var n=B(this,"object"),o=B(this,"doLength"),i=B(this,"message"),s=i?i+": ":"",l=B(this,"ssfi"),c=Ce(n).toLowerCase(),u=Ce(e).toLowerCase(),d=Ce(t).toLowerCase(),p,h=!0,f=u==="date"&&d==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&c!=="map"&&c!=="set"&&new j(n,i,l,!0).to.have.property("length"),!o&&c==="date"&&(u!=="date"||d!=="date"))p=s+"the arguments to within must be dates";else if((!Ge(e)||!Ge(t))&&(o||Ge(n)))p=s+"the arguments to within must be numbers";else if(!o&&c!=="date"&&!Ge(n)){var m=c==="string"?"'"+n+"'":n;p=s+"expected "+m+" to be a number or a date"}else h=!1;if(h)throw new xe(p,void 0,l);if(o){var b="length",g;c==="map"||c==="set"?(b="size",g=n.size):g=n.length,this.assert(g>=e&&g<=t,"expected #{this} to have a "+b+" within "+f,"expected #{this} to not have a "+b+" within "+f)}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+f,"expected #{this} to not be within "+f)});function $l(e,t){t&&B(this,"message",t);var r=B(this,"object"),n=B(this,"ssfi"),o=B(this,"message");try{var i=r instanceof e}catch(l){throw l instanceof TypeError?(o=o?o+": ":"",new xe(o+"The instanceof assertion needs a constructor but "+Ce(e)+" was given.",void 0,n)):l}var s=ii(e);s==null&&(s="an unnamed constructor"),this.assert(i,"expected #{this} to be an instance of "+s,"expected #{this} to not be an instance of "+s)}a($l,"assertInstanceOf");V($l,"assertInstanceOf");j.addMethod("instanceof",$l);j.addMethod("instanceOf",$l);function Ll(e,t,r){r&&B(this,"message",r);var n=B(this,"nested"),o=B(this,"own"),i=B(this,"message"),s=B(this,"object"),l=B(this,"ssfi"),c=typeof e;if(i=i?i+": ":"",n){if(c!=="string")throw new xe(i+"the argument to property must be a string when using nested syntax",void 0,l)}else if(c!=="string"&&c!=="number"&&c!=="symbol")throw new xe(i+"the argument to property must be a string, number, or symbol",void 0,l);if(n&&o)throw new xe(i+'The "nested" and "own" flags cannot be combined.',void 0,l);if(s==null)throw new xe(i+"Target cannot be null or undefined.",void 0,l);var u=B(this,"deep"),d=B(this,"negate"),p=n?Tl(s,e):null,h=n?p.value:s[e],f=u?B(this,"eql"):(g,v)=>g===v,m="";u&&(m+="deep "),o&&(m+="own "),n&&(m+="nested "),m+="property ";var b;o?b=Object.prototype.hasOwnProperty.call(s,e):n?b=p.exists:b=ai(s,e),(!d||arguments.length===1)&&this.assert(b,"expected #{this} to have "+m+we(e),"expected #{this} to not have "+m+we(e)),arguments.length>1&&this.assert(b&&f(t,h),"expected #{this} to have "+m+we(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+m+we(e)+" of #{act}",t,h),B(this,"object",h)}a(Ll,"assertProperty");V(Ll,"assertProperty");j.addMethod("property",Ll);function Dl(e,t,r){B(this,"own",!0),Ll.apply(this,arguments)}a(Dl,"assertOwnProperty");V(Dl,"assertOwnProperty");j.addMethod("ownProperty",Dl);j.addMethod("haveOwnProperty",Dl);function Fl(e,t,r){typeof t=="string"&&(r=t,t=null),r&&B(this,"message",r);var n=B(this,"object"),o=Object.getOwnPropertyDescriptor(Object(n),e),i=B(this,"eql");o&&t?this.assert(i(t,o),"expected the own property descriptor for "+we(e)+" on #{this} to match "+we(t)+", got "+we(o),"expected the own property descriptor for "+we(e)+" on #{this} to not match "+we(t),t,o,!0):this.assert(o,"expected #{this} to have an own property descriptor for "+we(e),"expected #{this} to not have an own property descriptor for "+we(e)),B(this,"object",o)}a(Fl,"assertOwnPropertyDescriptor");V(Fl,"assertOwnPropertyDescriptor");j.addMethod("ownPropertyDescriptor",Fl);j.addMethod("haveOwnPropertyDescriptor",Fl);function Bl(){B(this,"doLength",!0)}a(Bl,"assertLengthChain");V(Bl,"assertLengthChain");function Ul(e,t){t&&B(this,"message",t);var r=B(this,"object"),n=Ce(r).toLowerCase(),o=B(this,"message"),i=B(this,"ssfi"),s="length",l;switch(n){case"map":case"set":s="size",l=r.size;break;default:new j(r,o,i,!0).to.have.property("length"),l=r.length}this.assert(l==e,"expected #{this} to have a "+s+" of #{exp} but got #{act}","expected #{this} to not have a "+s+" of #{act}",e,l)}a(Ul,"assertLength");V(Ul,"assertLength");j.addChainableMethod("length",Ul,Bl);j.addChainableMethod("lengthOf",Ul,Bl);function Hl(e,t){t&&B(this,"message",t);var r=B(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e)}a(Hl,"assertMatch");V(Hl,"assertMatch");j.addMethod("match",Hl);j.addMethod("matches",Hl);j.addMethod("string",function(e,t){t&&B(this,"message",t);var r=B(this,"object"),n=B(this,"message"),o=B(this,"ssfi");new j(r,n,o,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+we(e),"expected #{this} to not contain "+we(e))});function Vl(e){var t=B(this,"object"),r=Ce(t),n=Ce(e),o=B(this,"ssfi"),i=B(this,"deep"),s,l="",c,u=!0,d=B(this,"message");d=d?d+": ":"";var p=d+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(r==="Map"||r==="Set")l=i?"deeply ":"",c=[],t.forEach(function(w,P){c.push(P)}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(c=ql(t),n){case"Array":if(arguments.length>1)throw new xe(p,void 0,o);break;case"Object":if(arguments.length>1)throw new xe(p,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(w){return typeof w=="symbol"?w:String(w)})}if(!e.length)throw new xe(d+"keys required",void 0,o);var h=e.length,f=B(this,"any"),m=B(this,"all"),b=e,g=i?B(this,"eql"):(w,P)=>w===P;if(!f&&!m&&(m=!0),f&&(u=b.some(function(w){return c.some(function(P){return g(w,P)})})),m&&(u=b.every(function(w){return c.some(function(P){return g(w,P)})}),B(this,"contains")||(u=u&&e.length==c.length)),h>1){e=e.map(function(w){return we(w)});var v=e.pop();m&&(s=e.join(", ")+", and "+v),f&&(s=e.join(", ")+", or "+v)}else s=we(e[0]);s=(h>1?"keys ":"key ")+s,s=(B(this,"contains")?"contain ":"have ")+s,this.assert(u,"expected #{this} to "+l+s,"expected #{this} to not "+l+s,b.slice(0).sort(Ia),c.sort(Ia),!0)}a(Vl,"assertKeys");V(Vl,"assertKeys");j.addMethod("keys",Vl);j.addMethod("key",Vl);function pi(e,t,r){r&&B(this,"message",r);var n=B(this,"object"),o=B(this,"ssfi"),i=B(this,"message"),s=B(this,"negate")||!1;new j(n,i,o,!0).is.a("function"),(ja(e)||typeof e=="string")&&(t=e,e=null);let l,c=!1;try{n()}catch(w){c=!0,l=w}var u=e===void 0&&t===void 0,d=!!(e&&t),p=!1,h=!1;if(u||!u&&!s){var f="an error";e instanceof Error?f="#{exp}":e&&(f=bt.getConstructorName(e));let w=l;if(l instanceof Error)w=l.toString();else if(typeof l=="string")w=l;else if(l&&(typeof l=="object"||typeof l=="function"))try{w=bt.getConstructorName(l)}catch{}this.assert(c,"expected #{this} to throw "+f,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),w)}if(e&&l){if(e instanceof Error){var m=bt.compatibleInstance(l,e);m===s&&(d&&s?p=!0:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(l&&!s?" but #{act} was thrown":""),e.toString(),l.toString()))}var b=bt.compatibleConstructor(l,e);b===s&&(d&&s?p=!0:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(l?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&bt.getConstructorName(e),l instanceof Error?l.toString():l&&bt.getConstructorName(l)))}if(l&&t!==void 0&&t!==null){var g="including";ja(t)&&(g="matching");var v=bt.compatibleMessage(l,t);v===s&&(d&&s?h=!0:this.assert(s,"expected #{this} to throw error "+g+" #{exp} but got #{act}","expected #{this} to throw error not "+g+" #{exp}",t,bt.getMessage(l)))}p&&h&&this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(l?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&bt.getConstructorName(e),l instanceof Error?l.toString():l&&bt.getConstructorName(l)),B(this,"object",l)}a(pi,"assertThrows");V(pi,"assertThrows");j.addMethod("throw",pi);j.addMethod("throws",pi);j.addMethod("Throw",pi);function Jl(e,t){t&&B(this,"message",t);var r=B(this,"object"),n=B(this,"itself"),o=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof o=="function","expected #{this} to respond to "+we(e),"expected #{this} to not respond to "+we(e))}a(Jl,"respondTo");V(Jl,"respondTo");j.addMethod("respondTo",Jl);j.addMethod("respondsTo",Jl);j.addProperty("itself",function(){B(this,"itself",!0)});function zl(e,t){t&&B(this,"message",t);var r=B(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+jr(e),"expected #{this} to not satisfy"+jr(e),!B(this,"negate"),n)}a(zl,"satisfy");V(zl,"satisfy");j.addMethod("satisfy",zl);j.addMethod("satisfies",zl);function Wl(e,t,r){r&&B(this,"message",r);var n=B(this,"object"),o=B(this,"message"),i=B(this,"ssfi");new j(n,o,i,!0).is.numeric;let s="A `delta` value is required for `closeTo`";if(t==null)throw new xe(o?`${o}: ${s}`:s,void 0,i);if(new j(t,o,i,!0).is.numeric,s="A `expected` value is required for `closeTo`",e==null)throw new xe(o?`${o}: ${s}`:s,void 0,i);new j(e,o,i,!0).is.numeric;let l=V(u=>u<0n?-u:u,"abs"),c=V(u=>parseFloat(parseFloat(u).toPrecision(12)),"strip");this.assert(c(l(n-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}a(Wl,"closeTo");V(Wl,"closeTo");j.addMethod("closeTo",Wl);j.addMethod("approximately",Wl);function Ff(e,t,r,n,o){let i=Array.from(t),s=Array.from(e);if(!n){if(s.length!==i.length)return!1;i=i.slice()}return s.every(function(l,c){if(o)return r?r(l,i[c]):l===i[c];if(!r){var u=i.indexOf(l);return u===-1?!1:(n||i.splice(u,1),!0)}return i.some(function(d,p){return r(l,d)?(n||i.splice(p,1),!0):!1})})}a(Ff,"isSubsetOf");V(Ff,"isSubsetOf");j.addMethod("members",function(e,t){t&&B(this,"message",t);var r=B(this,"object"),n=B(this,"message"),o=B(this,"ssfi");new j(r,n,o,!0).to.be.iterable,new j(e,n,o,!0).to.be.iterable;var i=B(this,"contains"),s=B(this,"ordered"),l,c,u;i?(l=s?"an ordered superset":"a superset",c="expected #{this} to be "+l+" of #{exp}",u="expected #{this} to not be "+l+" of #{exp}"):(l=s?"ordered members":"members",c="expected #{this} to have the same "+l+" as #{exp}",u="expected #{this} to not have the same "+l+" as #{exp}");var d=B(this,"deep")?B(this,"eql"):void 0;this.assert(Ff(e,r,d,i,s),c,u,e,r,!0)});j.addProperty("iterable",function(e){e&&B(this,"message",e);var t=B(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function Bf(e,t){t&&B(this,"message",t);var r=B(this,"object"),n=B(this,"message"),o=B(this,"ssfi"),i=B(this,"contains"),s=B(this,"deep"),l=B(this,"eql");new j(e,n,o,!0).to.be.an("array"),i?this.assert(e.some(function(c){return r.indexOf(c)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,r):s?this.assert(e.some(function(c){return l(r,c)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,r):this.assert(e.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,r)}a(Bf,"oneOf");V(Bf,"oneOf");j.addMethod("oneOf",Bf);function Gl(e,t,r){r&&B(this,"message",r);var n=B(this,"object"),o=B(this,"message"),i=B(this,"ssfi");new j(n,o,i,!0).is.a("function");var s;t?(new j(e,o,i,!0).to.have.property(t),s=e[t]):(new j(e,o,i,!0).is.a("function"),s=e()),n();var l=t==null?e():e[t],c=t==null?s:"."+t;B(this,"deltaMsgObj",c),B(this,"initialDeltaValue",s),B(this,"finalDeltaValue",l),B(this,"deltaBehavior","change"),B(this,"realDelta",l!==s),this.assert(s!==l,"expected "+c+" to change","expected "+c+" to not change")}a(Gl,"assertChanges");V(Gl,"assertChanges");j.addMethod("change",Gl);j.addMethod("changes",Gl);function Kl(e,t,r){r&&B(this,"message",r);var n=B(this,"object"),o=B(this,"message"),i=B(this,"ssfi");new j(n,o,i,!0).is.a("function");var s;t?(new j(e,o,i,!0).to.have.property(t),s=e[t]):(new j(e,o,i,!0).is.a("function"),s=e()),new j(s,o,i,!0).is.a("number"),n();var l=t==null?e():e[t],c=t==null?s:"."+t;B(this,"deltaMsgObj",c),B(this,"initialDeltaValue",s),B(this,"finalDeltaValue",l),B(this,"deltaBehavior","increase"),B(this,"realDelta",l-s),this.assert(l-s>0,"expected "+c+" to increase","expected "+c+" to not increase")}a(Kl,"assertIncreases");V(Kl,"assertIncreases");j.addMethod("increase",Kl);j.addMethod("increases",Kl);function Yl(e,t,r){r&&B(this,"message",r);var n=B(this,"object"),o=B(this,"message"),i=B(this,"ssfi");new j(n,o,i,!0).is.a("function");var s;t?(new j(e,o,i,!0).to.have.property(t),s=e[t]):(new j(e,o,i,!0).is.a("function"),s=e()),new j(s,o,i,!0).is.a("number"),n();var l=t==null?e():e[t],c=t==null?s:"."+t;B(this,"deltaMsgObj",c),B(this,"initialDeltaValue",s),B(this,"finalDeltaValue",l),B(this,"deltaBehavior","decrease"),B(this,"realDelta",s-l),this.assert(l-s<0,"expected "+c+" to decrease","expected "+c+" to not decrease")}a(Yl,"assertDecreases");V(Yl,"assertDecreases");j.addMethod("decrease",Yl);j.addMethod("decreases",Yl);function Uf(e,t){t&&B(this,"message",t);var r=B(this,"deltaMsgObj"),n=B(this,"initialDeltaValue"),o=B(this,"finalDeltaValue"),i=B(this,"deltaBehavior"),s=B(this,"realDelta"),l;i==="change"?l=Math.abs(o-n)===Math.abs(e):l=s===Math.abs(e),this.assert(l,"expected "+r+" to "+i+" by "+e,"expected "+r+" to not "+i+" by "+e)}a(Uf,"assertDelta");V(Uf,"assertDelta");j.addMethod("by",Uf);j.addProperty("extensible",function(){var e=B(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")});j.addProperty("sealed",function(){var e=B(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")});j.addProperty("frozen",function(){var e=B(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")});j.addProperty("finite",function(e){var t=B(this,"object");this.assert(typeof t=="number"&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")});function ka(e,t){return e===t?!0:typeof t!=typeof e?!1:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(r){return t.some(function(n){return ka(r,n)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(r){var n=e[r],o=t[r];return typeof n=="object"&&n!==null&&o!==null?ka(n,o):typeof n=="function"?n(o):o===n}):!1}a(ka,"compareSubset");V(ka,"compareSubset");j.addMethod("containSubset",function(e){let t=he(this,"object"),r=lt.showDiff;this.assert(ka(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,r)});function kr(e,t){return new j(e,t)}a(kr,"expect");V(kr,"expect");kr.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new xe(r,{actual:e,expected:t,operator:n},kr.fail)};var Vx={};of(Vx,{Should:a(()=>OH,"Should"),should:a(()=>PH,"should")});function Xl(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new j(this.valueOf(),null,e):new j(this,null,e)}a(e,"shouldGetter"),V(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})}a(t,"shouldSetter"),V(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});var r={};return r.fail=function(n,o,i,s){throw arguments.length<2&&(i=n,n=void 0),i=i||"should.fail()",new xe(i,{actual:n,expected:o,operator:s},r.fail)},r.equal=function(n,o,i){new j(n,i).to.equal(o)},r.Throw=function(n,o,i,s){new j(n,s).to.Throw(o,i)},r.exist=function(n,o){new j(n,o).to.exist},r.not={},r.not.equal=function(n,o,i){new j(n,i).to.not.equal(o)},r.not.Throw=function(n,o,i,s){new j(n,s).to.not.Throw(o,i)},r.not.exist=function(n,o){new j(n,o).to.not.exist},r.throw=r.Throw,r.not.throw=r.not.Throw,r}a(Xl,"loadShould");V(Xl,"loadShould");var PH=Xl,OH=Xl;function I(e,t){var r=new j(null,null,I,!0);r.assert(e,t,"[ negation message unavailable ]")}a(I,"assert");V(I,"assert");I.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new xe(r,{actual:e,expected:t,operator:n},I.fail)};I.isOk=function(e,t){new j(e,t,I.isOk,!0).is.ok};I.isNotOk=function(e,t){new j(e,t,I.isNotOk,!0).is.not.ok};I.equal=function(e,t,r){var n=new j(e,r,I.equal,!0);n.assert(t==he(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};I.notEqual=function(e,t,r){var n=new j(e,r,I.notEqual,!0);n.assert(t!=he(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};I.strictEqual=function(e,t,r){new j(e,r,I.strictEqual,!0).to.equal(t)};I.notStrictEqual=function(e,t,r){new j(e,r,I.notStrictEqual,!0).to.not.equal(t)};I.deepEqual=I.deepStrictEqual=function(e,t,r){new j(e,r,I.deepEqual,!0).to.eql(t)};I.notDeepEqual=function(e,t,r){new j(e,r,I.notDeepEqual,!0).to.not.eql(t)};I.isAbove=function(e,t,r){new j(e,r,I.isAbove,!0).to.be.above(t)};I.isAtLeast=function(e,t,r){new j(e,r,I.isAtLeast,!0).to.be.least(t)};I.isBelow=function(e,t,r){new j(e,r,I.isBelow,!0).to.be.below(t)};I.isAtMost=function(e,t,r){new j(e,r,I.isAtMost,!0).to.be.most(t)};I.isTrue=function(e,t){new j(e,t,I.isTrue,!0).is.true};I.isNotTrue=function(e,t){new j(e,t,I.isNotTrue,!0).to.not.equal(!0)};I.isFalse=function(e,t){new j(e,t,I.isFalse,!0).is.false};I.isNotFalse=function(e,t){new j(e,t,I.isNotFalse,!0).to.not.equal(!1)};I.isNull=function(e,t){new j(e,t,I.isNull,!0).to.equal(null)};I.isNotNull=function(e,t){new j(e,t,I.isNotNull,!0).to.not.equal(null)};I.isNaN=function(e,t){new j(e,t,I.isNaN,!0).to.be.NaN};I.isNotNaN=function(e,t){new j(e,t,I.isNotNaN,!0).not.to.be.NaN};I.exists=function(e,t){new j(e,t,I.exists,!0).to.exist};I.notExists=function(e,t){new j(e,t,I.notExists,!0).to.not.exist};I.isUndefined=function(e,t){new j(e,t,I.isUndefined,!0).to.equal(void 0)};I.isDefined=function(e,t){new j(e,t,I.isDefined,!0).to.not.equal(void 0)};I.isCallable=function(e,t){new j(e,t,I.isCallable,!0).is.callable};I.isNotCallable=function(e,t){new j(e,t,I.isNotCallable,!0).is.not.callable};I.isObject=function(e,t){new j(e,t,I.isObject,!0).to.be.a("object")};I.isNotObject=function(e,t){new j(e,t,I.isNotObject,!0).to.not.be.a("object")};I.isArray=function(e,t){new j(e,t,I.isArray,!0).to.be.an("array")};I.isNotArray=function(e,t){new j(e,t,I.isNotArray,!0).to.not.be.an("array")};I.isString=function(e,t){new j(e,t,I.isString,!0).to.be.a("string")};I.isNotString=function(e,t){new j(e,t,I.isNotString,!0).to.not.be.a("string")};I.isNumber=function(e,t){new j(e,t,I.isNumber,!0).to.be.a("number")};I.isNotNumber=function(e,t){new j(e,t,I.isNotNumber,!0).to.not.be.a("number")};I.isNumeric=function(e,t){new j(e,t,I.isNumeric,!0).is.numeric};I.isNotNumeric=function(e,t){new j(e,t,I.isNotNumeric,!0).is.not.numeric};I.isFinite=function(e,t){new j(e,t,I.isFinite,!0).to.be.finite};I.isBoolean=function(e,t){new j(e,t,I.isBoolean,!0).to.be.a("boolean")};I.isNotBoolean=function(e,t){new j(e,t,I.isNotBoolean,!0).to.not.be.a("boolean")};I.typeOf=function(e,t,r){new j(e,r,I.typeOf,!0).to.be.a(t)};I.notTypeOf=function(e,t,r){new j(e,r,I.notTypeOf,!0).to.not.be.a(t)};I.instanceOf=function(e,t,r){new j(e,r,I.instanceOf,!0).to.be.instanceOf(t)};I.notInstanceOf=function(e,t,r){new j(e,r,I.notInstanceOf,!0).to.not.be.instanceOf(t)};I.include=function(e,t,r){new j(e,r,I.include,!0).include(t)};I.notInclude=function(e,t,r){new j(e,r,I.notInclude,!0).not.include(t)};I.deepInclude=function(e,t,r){new j(e,r,I.deepInclude,!0).deep.include(t)};I.notDeepInclude=function(e,t,r){new j(e,r,I.notDeepInclude,!0).not.deep.include(t)};I.nestedInclude=function(e,t,r){new j(e,r,I.nestedInclude,!0).nested.include(t)};I.notNestedInclude=function(e,t,r){new j(e,r,I.notNestedInclude,!0).not.nested.include(t)};I.deepNestedInclude=function(e,t,r){new j(e,r,I.deepNestedInclude,!0).deep.nested.include(t)};I.notDeepNestedInclude=function(e,t,r){new j(e,r,I.notDeepNestedInclude,!0).not.deep.nested.include(t)};I.ownInclude=function(e,t,r){new j(e,r,I.ownInclude,!0).own.include(t)};I.notOwnInclude=function(e,t,r){new j(e,r,I.notOwnInclude,!0).not.own.include(t)};I.deepOwnInclude=function(e,t,r){new j(e,r,I.deepOwnInclude,!0).deep.own.include(t)};I.notDeepOwnInclude=function(e,t,r){new j(e,r,I.notDeepOwnInclude,!0).not.deep.own.include(t)};I.match=function(e,t,r){new j(e,r,I.match,!0).to.match(t)};I.notMatch=function(e,t,r){new j(e,r,I.notMatch,!0).to.not.match(t)};I.property=function(e,t,r){new j(e,r,I.property,!0).to.have.property(t)};I.notProperty=function(e,t,r){new j(e,r,I.notProperty,!0).to.not.have.property(t)};I.propertyVal=function(e,t,r,n){new j(e,n,I.propertyVal,!0).to.have.property(t,r)};I.notPropertyVal=function(e,t,r,n){new j(e,n,I.notPropertyVal,!0).to.not.have.property(t,r)};I.deepPropertyVal=function(e,t,r,n){new j(e,n,I.deepPropertyVal,!0).to.have.deep.property(t,r)};I.notDeepPropertyVal=function(e,t,r,n){new j(e,n,I.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)};I.ownProperty=function(e,t,r){new j(e,r,I.ownProperty,!0).to.have.own.property(t)};I.notOwnProperty=function(e,t,r){new j(e,r,I.notOwnProperty,!0).to.not.have.own.property(t)};I.ownPropertyVal=function(e,t,r,n){new j(e,n,I.ownPropertyVal,!0).to.have.own.property(t,r)};I.notOwnPropertyVal=function(e,t,r,n){new j(e,n,I.notOwnPropertyVal,!0).to.not.have.own.property(t,r)};I.deepOwnPropertyVal=function(e,t,r,n){new j(e,n,I.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)};I.notDeepOwnPropertyVal=function(e,t,r,n){new j(e,n,I.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)};I.nestedProperty=function(e,t,r){new j(e,r,I.nestedProperty,!0).to.have.nested.property(t)};I.notNestedProperty=function(e,t,r){new j(e,r,I.notNestedProperty,!0).to.not.have.nested.property(t)};I.nestedPropertyVal=function(e,t,r,n){new j(e,n,I.nestedPropertyVal,!0).to.have.nested.property(t,r)};I.notNestedPropertyVal=function(e,t,r,n){new j(e,n,I.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)};I.deepNestedPropertyVal=function(e,t,r,n){new j(e,n,I.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)};I.notDeepNestedPropertyVal=function(e,t,r,n){new j(e,n,I.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)};I.lengthOf=function(e,t,r){new j(e,r,I.lengthOf,!0).to.have.lengthOf(t)};I.hasAnyKeys=function(e,t,r){new j(e,r,I.hasAnyKeys,!0).to.have.any.keys(t)};I.hasAllKeys=function(e,t,r){new j(e,r,I.hasAllKeys,!0).to.have.all.keys(t)};I.containsAllKeys=function(e,t,r){new j(e,r,I.containsAllKeys,!0).to.contain.all.keys(t)};I.doesNotHaveAnyKeys=function(e,t,r){new j(e,r,I.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};I.doesNotHaveAllKeys=function(e,t,r){new j(e,r,I.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};I.hasAnyDeepKeys=function(e,t,r){new j(e,r,I.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};I.hasAllDeepKeys=function(e,t,r){new j(e,r,I.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};I.containsAllDeepKeys=function(e,t,r){new j(e,r,I.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};I.doesNotHaveAnyDeepKeys=function(e,t,r){new j(e,r,I.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};I.doesNotHaveAllDeepKeys=function(e,t,r){new j(e,r,I.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};I.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);var o=new j(e,n,I.throws,!0).to.throw(t,r);return he(o,"object")};I.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new j(e,n,I.doesNotThrow,!0).to.not.throw(t,r)};I.operator=function(e,t,r,n){var o;switch(t){case"==":o=e==r;break;case"===":o=e===r;break;case">":o=e>r;break;case">=":o=e>=r;break;case"<":o=e<r;break;case"<=":o=e<=r;break;case"!=":o=e!=r;break;case"!==":o=e!==r;break;default:throw n=n&&n+": ",new xe(n+'Invalid operator "'+t+'"',void 0,I.operator)}var i=new j(o,n,I.operator,!0);i.assert(he(i,"object")===!0,"expected "+we(e)+" to be "+t+" "+we(r),"expected "+we(e)+" to not be "+t+" "+we(r))};I.closeTo=function(e,t,r,n){new j(e,n,I.closeTo,!0).to.be.closeTo(t,r)};I.approximately=function(e,t,r,n){new j(e,n,I.approximately,!0).to.be.approximately(t,r)};I.sameMembers=function(e,t,r){new j(e,r,I.sameMembers,!0).to.have.same.members(t)};I.notSameMembers=function(e,t,r){new j(e,r,I.notSameMembers,!0).to.not.have.same.members(t)};I.sameDeepMembers=function(e,t,r){new j(e,r,I.sameDeepMembers,!0).to.have.same.deep.members(t)};I.notSameDeepMembers=function(e,t,r){new j(e,r,I.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};I.sameOrderedMembers=function(e,t,r){new j(e,r,I.sameOrderedMembers,!0).to.have.same.ordered.members(t)};I.notSameOrderedMembers=function(e,t,r){new j(e,r,I.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};I.sameDeepOrderedMembers=function(e,t,r){new j(e,r,I.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};I.notSameDeepOrderedMembers=function(e,t,r){new j(e,r,I.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};I.includeMembers=function(e,t,r){new j(e,r,I.includeMembers,!0).to.include.members(t)};I.notIncludeMembers=function(e,t,r){new j(e,r,I.notIncludeMembers,!0).to.not.include.members(t)};I.includeDeepMembers=function(e,t,r){new j(e,r,I.includeDeepMembers,!0).to.include.deep.members(t)};I.notIncludeDeepMembers=function(e,t,r){new j(e,r,I.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};I.includeOrderedMembers=function(e,t,r){new j(e,r,I.includeOrderedMembers,!0).to.include.ordered.members(t)};I.notIncludeOrderedMembers=function(e,t,r){new j(e,r,I.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};I.includeDeepOrderedMembers=function(e,t,r){new j(e,r,I.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};I.notIncludeDeepOrderedMembers=function(e,t,r){new j(e,r,I.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};I.oneOf=function(e,t,r){new j(e,r,I.oneOf,!0).to.be.oneOf(t)};I.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${we(e)} to be an iterable`:`expected ${we(e)} to be an iterable`,new xe(t,void 0,I.isIterable)};I.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new j(e,n,I.changes,!0).to.change(t,r)};I.changesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new j(e,o,I.changesBy,!0).to.change(t,r).by(n)};I.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new j(e,n,I.doesNotChange,!0).to.not.change(t,r)};I.changesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new j(e,o,I.changesButNotBy,!0).to.change(t,r).but.not.by(n)};I.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new j(e,n,I.increases,!0).to.increase(t,r)};I.increasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new j(e,o,I.increasesBy,!0).to.increase(t,r).by(n)};I.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new j(e,n,I.doesNotIncrease,!0).to.not.increase(t,r)};I.increasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new j(e,o,I.increasesButNotBy,!0).to.increase(t,r).but.not.by(n)};I.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new j(e,n,I.decreases,!0).to.decrease(t,r)};I.decreasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new j(e,o,I.decreasesBy,!0).to.decrease(t,r).by(n)};I.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new j(e,n,I.doesNotDecrease,!0).to.not.decrease(t,r)};I.doesNotDecreaseBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);return new j(e,o,I.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)};I.decreasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new j(e,o,I.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n)};I.ifError=function(e){if(e)throw e};I.isExtensible=function(e,t){new j(e,t,I.isExtensible,!0).to.be.extensible};I.isNotExtensible=function(e,t){new j(e,t,I.isNotExtensible,!0).to.not.be.extensible};I.isSealed=function(e,t){new j(e,t,I.isSealed,!0).to.be.sealed};I.isNotSealed=function(e,t){new j(e,t,I.isNotSealed,!0).to.not.be.sealed};I.isFrozen=function(e,t){new j(e,t,I.isFrozen,!0).to.be.frozen};I.isNotFrozen=function(e,t){new j(e,t,I.isNotFrozen,!0).to.not.be.frozen};I.isEmpty=function(e,t){new j(e,t,I.isEmpty,!0).to.be.empty};I.isNotEmpty=function(e,t){new j(e,t,I.isNotEmpty,!0).to.not.be.empty};I.containsSubset=function(e,t,r){new j(e,r).to.containSubset(t)};I.doesNotContainSubset=function(e,t,r){new j(e,r).to.not.containSubset(t)};var _H=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(let[e,t]of _H)I[t]=I[e];var vb=[];function un(e){let t={use:un,AssertionError:xe,util:zt,config:lt,expect:kr,assert:I,Assertion:j,...Vx};return~vb.indexOf(e)||(e(t,zt),vb.push(e)),t}a(un,"use");V(un,"use");var Jx={};ut(Jx,{toBeChecked:()=>Ch,toBeDisabled:()=>bh,toBeEmpty:()=>rh,toBeEmptyDOMElement:()=>nh,toBeEnabled:()=>gh,toBeInTheDOM:()=>bs,toBeInTheDocument:()=>th,toBeInvalid:()=>Eh,toBePartiallyChecked:()=>Oh,toBeRequired:()=>vh,toBeValid:()=>xh,toBeVisible:()=>ph,toContainElement:()=>gs,toContainHTML:()=>oh,toHaveAccessibleDescription:()=>vs,toHaveAccessibleErrorMessage:()=>ih,toHaveAccessibleName:()=>Es,toHaveAttribute:()=>sh,toHaveClass:()=>lh,toHaveDescription:()=>_h,toHaveDisplayValue:()=>Sh,toHaveErrorMessage:()=>Ah,toHaveFocus:()=>uh,toHaveFormValues:()=>ch,toHaveRole:()=>ws,toHaveSelection:()=>Rh,toHaveStyle:()=>xs,toHaveTextContent:()=>ah,toHaveValue:()=>Th});var wb=He($g(),1);function Hf(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0})}a(Hf,"$parcel$defineInteropFlag");function Ql(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}a(Ql,"$parcel$export");var zx={};Hf(zx);Ql(zx,"default",()=>Gx);var Wx=class extends Error{constructor(t,r,n,o,i){super(t+":"+n+":"+o+": "+r),this.reason=r,this.filename=t,this.line=n,this.column=o,this.source=i}};a(Wx,"$009ddb00d3ec72b8$export$2e2bcd8739ae039");var Gx=Wx,Kx={};Hf(Kx);Ql(Kx,"default",()=>Xx);var Yx=class{constructor(t,r,n){this.start=t,this.end=r,this.source=n}};a(Yx,"$0865a9fb4cc365fe$export$2e2bcd8739ae039");var Xx=Yx,AH={};Ql(AH,"CssTypes",()=>Ye);var Ye=(function(e){return e.stylesheet="stylesheet",e.rule="rule",e.declaration="declaration",e.comment="comment",e.container="container",e.charset="charset",e.document="document",e.customMedia="custom-media",e.fontFace="font-face",e.host="host",e.import="import",e.keyframes="keyframes",e.keyframe="keyframe",e.layer="layer",e.media="media",e.namespace="namespace",e.page="page",e.startingStyle="starting-style",e.supports="supports",e})({}),Uu=/\/\*[^]*?(?:\*\/|$)/g,RH=a((e,t)=>{t=t||{};let r=1,n=1;function o(W){let z=W.match(/\n/g);z&&(r+=z.length);let Y=W.lastIndexOf(`
|
|
221
|
+
`);n=~Y?W.length-Y:n+W.length}a(o,"updatePosition");function i(){let W={line:r,column:n};return function(z){return z.position=new Xx(W,{line:r,column:n},t?.source||""),f(),z}}a(i,"position");let s=[];function l(W){let z=new Gx(t?.source||"",W,r,n,e);if(t?.silent)s.push(z);else throw z}a(l,"error");function c(){let W=p();return{type:Ye.stylesheet,stylesheet:{source:t?.source,rules:W,parsingErrors:s}}}a(c,"stylesheet");function u(){return h(/^{\s*/)}a(u,"open");function d(){return h(/^}/)}a(d,"close");function p(){let W,z=[];for(f(),m(z);e.length&&e.charAt(0)!=="}"&&(W=ae()||Z());)W&&(z.push(W),m(z));return z}a(p,"rules");function h(W){let z=W.exec(e);if(!z)return;let Y=z[0];return o(Y),e=e.slice(Y.length),z}a(h,"match");function f(){h(/^\s*/)}a(f,"whitespace");function m(W){let z;for(W=W||[];z=b();)z&&W.push(z);return W}a(m,"comments");function b(){let W=i();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;let z=h(/^\/\*[^]*?\*\//);return z?W({type:Ye.comment,comment:z[0].slice(2,-2)}):l("End of comment missing")}a(b,"comment");function g(W,z,Y){let ne=z+1,X=!1,se=W.indexOf(")",ne);for(;!X&&se!==-1;){let ce=W.indexOf("(",ne);ce!==-1&&ce<se?(ne=g(W,ce+1)+1,se=W.indexOf(")",ne)):X=!0}return X&&se!==-1?se:-1}a(g,"findClosingParenthese");function v(){let W=h(/^([^{]+)/);if(!W)return;let z=mt(W[0]).replace(Uu,"");if(z.indexOf(",")===-1)return[z];let Y=0,ne=z.indexOf("(",Y);for(;ne!==-1;){let X=g(z,ne);if(X===-1)break;Y=X+1,z=z.substring(0,ne)+z.substring(ne,X).replace(/,/g,"")+z.substring(X),ne=z.indexOf("(",Y)}return z=z.replace(/("|')(?:\\\1|.)*?\1/g,X=>X.replace(/,/g,"")),z.split(",").map(X=>mt(X.replace(/\u200C/g,",")))}a(v,"selector");function w(){let W=i(),z=h(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!z)return;let Y=mt(z[0]);if(!h(/^:\s*/))return l("property missing ':'");let ne=h(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)])*?\)|[^};])+)/),X=W({type:Ye.declaration,property:Y.replace(Uu,""),value:ne?mt(ne[0]).replace(Uu,""):""});return h(/^[;\s]*/),X}a(w,"declaration");function P(){let W=[];if(!u())return l("missing '{'");m(W);let z;for(;z=w();)z&&(W.push(z),m(W));return d()?W:l("missing '}'")}a(P,"declarations");function A(){let W,z=[],Y=i();for(;W=h(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)z.push(W[1]),h(/^,\s*/);if(z.length)return Y({type:Ye.keyframe,values:z,declarations:P()||[]})}a(A,"keyframe");function R(){let W=i(),z=h(/^@([-\w]+)?keyframes\s*/);if(!z)return;let Y=z[1],ne=h(/^([-\w]+)\s*/);if(!ne)return l("@keyframes missing name");let X=ne[1];if(!u())return l("@keyframes missing '{'");let se,ce=m();for(;se=A();)ce.push(se),ce=ce.concat(m());return d()?W({type:Ye.keyframes,name:X,vendor:Y,keyframes:ce}):l("@keyframes missing '}'")}a(R,"atkeyframes");function T(){let W=i(),z=h(/^@supports *([^{]+)/);if(!z)return;let Y=mt(z[1]);if(!u())return l("@supports missing '{'");let ne=m().concat(p());return d()?W({type:Ye.supports,supports:Y,rules:ne}):l("@supports missing '}'")}a(T,"atsupports");function E(){let W=i();if(!h(/^@host\s*/))return;if(!u())return l("@host missing '{'");let z=m().concat(p());return d()?W({type:Ye.host,rules:z}):l("@host missing '}'")}a(E,"athost");function x(){let W=i(),z=h(/^@container *([^{]+)/);if(!z)return;let Y=mt(z[1]);if(!u())return l("@container missing '{'");let ne=m().concat(p());return d()?W({type:Ye.container,container:Y,rules:ne}):l("@container missing '}'")}a(x,"atcontainer");function C(){let W=i(),z=h(/^@layer *([^{;@]+)/);if(!z)return;let Y=mt(z[1]);if(!u())return h(/^[;\s]*/),W({type:Ye.layer,layer:Y});let ne=m().concat(p());return d()?W({type:Ye.layer,layer:Y,rules:ne}):l("@layer missing '}'")}a(C,"atlayer");function k(){let W=i(),z=h(/^@media *([^{]+)/);if(!z)return;let Y=mt(z[1]);if(!u())return l("@media missing '{'");let ne=m().concat(p());return d()?W({type:Ye.media,media:Y,rules:ne}):l("@media missing '}'")}a(k,"atmedia");function N(){let W=i(),z=h(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(z)return W({type:Ye.customMedia,name:mt(z[1]),media:mt(z[2])})}a(N,"atcustommedia");function U(){let W=i();if(!h(/^@page */))return;let z=v()||[];if(!u())return l("@page missing '{'");let Y=m(),ne;for(;ne=w();)Y.push(ne),Y=Y.concat(m());return d()?W({type:Ye.page,selectors:z,declarations:Y}):l("@page missing '}'")}a(U,"atpage");function D(){let W=i(),z=h(/^@([-\w]+)?document *([^{]+)/);if(!z)return;let Y=mt(z[1]),ne=mt(z[2]);if(!u())return l("@document missing '{'");let X=m().concat(p());return d()?W({type:Ye.document,document:ne,vendor:Y,rules:X}):l("@document missing '}'")}a(D,"atdocument");function O(){let W=i();if(!h(/^@font-face\s*/))return;if(!u())return l("@font-face missing '{'");let z=m(),Y;for(;Y=w();)z.push(Y),z=z.concat(m());return d()?W({type:Ye.fontFace,declarations:z}):l("@font-face missing '}'")}a(O,"atfontface");function M(){let W=i();if(!h(/^@starting-style\s*/))return;if(!u())return l("@starting-style missing '{'");let z=m().concat(p());return d()?W({type:Ye.startingStyle,rules:z}):l("@starting-style missing '}'")}a(M,"atstartingstyle");let $=re("import"),K=re("charset"),G=re("namespace");function re(W){let z=new RegExp("^@"+W+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){let Y=i(),ne=h(z);if(!ne)return;let X={type:W};return X[W]=ne[1].trim(),Y(X)}}a(re,"_compileAtrule");function ae(){if(e[0]==="@")return R()||k()||N()||T()||$()||K()||G()||D()||U()||E()||O()||x()||M()||C()}a(ae,"atrule");function Z(){let W=i(),z=v();return z?(m(),W({type:Ye.rule,selectors:z,declarations:P()||[]})):l("selector missing")}return a(Z,"rule"),ys(c())},"$d708735ed1303b43$export$98e6a39c04603d36");function mt(e){return e?e.trim():""}a(mt,"$d708735ed1303b43$var$trim");function ys(e,t){let r=e&&typeof e.type=="string",n=r?e:t;for(let o in e){let i=e[o];Array.isArray(i)?i.forEach(s=>{ys(s,n)}):i&&typeof i=="object"&&ys(i,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}a(ys,"$d708735ed1303b43$var$addParent");var qH=RH,NH=qH,IH=Object.prototype.toString;function qc(e){return typeof e=="function"||IH.call(e)==="[object Function]"}a(qc,"isCallable");function Qx(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}a(Qx,"toInteger");var jH=Math.pow(2,53)-1;function Zx(e){var t=Qx(e);return Math.min(Math.max(t,0),jH)}a(Zx,"toLength");function Ot(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof t<"u"&&!qc(t))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var o=Zx(n.length),i=qc(r)?Object(new r(o)):new Array(o),s=0,l;s<o;)l=n[s],t?i[s]=t(l,s):i[s]=l,s+=1;return i.length=o,i}a(Ot,"arrayFrom");function co(e){"@babel/helpers - typeof";return co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},co(e)}a(co,"_typeof");function eT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}a(eT,"_classCallCheck");function Nc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Vf(n.key),n)}}a(Nc,"_defineProperties");function tT(e,t,r){return t&&Nc(e.prototype,t),r&&Nc(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}a(tT,"_createClass");function rT(e,t,r){return t=Vf(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a(rT,"_defineProperty");function Vf(e){var t=nT(e,"string");return co(t)==="symbol"?t:String(t)}a(Vf,"_toPropertyKey");function nT(e,t){if(co(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(co(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}a(nT,"_toPrimitive");var kH=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];eT(this,e),rT(this,"items",void 0),this.items=t}return a(e,"SetLike"),tT(e,[{key:"add",value:a(function(t){return this.has(t)===!1&&this.items.push(t),this},"add")},{key:"clear",value:a(function(){this.items=[]},"clear")},{key:"delete",value:a(function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length},"_delete")},{key:"forEach",value:a(function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})},"forEach")},{key:"has",value:a(function(t){return this.items.indexOf(t)!==-1},"has")},{key:"size",get:a(function(){return this.items.length},"get")}]),e})(),MH=typeof Set>"u"?Set:kH;function et(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}a(et,"getLocalName");var $H={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},LH={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),none:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function oT(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-description","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=LH[t])!==null&&n!==void 0&&n.has(r))})}a(oT,"hasGlobalAriaAttributes");function Jf(e,t){return oT(e,t)}a(Jf,"ignorePresentationalRole");function aT(e){var t=sT(e);if(t===null||Ic.indexOf(t)!==-1){var r=iT(e);if(Ic.indexOf(t||"")===-1||Jf(e,r||""))return r}return t}a(aT,"getRole");function iT(e){var t=$H[et(e)];if(t!==void 0)return t;switch(et(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!Jf(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}a(iT,"getImplicitRole");function sT(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}a(sT,"getExplicitRole");var Ic=["presentation","none"];function Re(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}a(Re,"isElement");function zf(e){return Re(e)&&et(e)==="caption"}a(zf,"isHTMLTableCaptionElement");function ya(e){return Re(e)&&et(e)==="input"}a(ya,"isHTMLInputElement");function lT(e){return Re(e)&&et(e)==="optgroup"}a(lT,"isHTMLOptGroupElement");function uT(e){return Re(e)&&et(e)==="select"}a(uT,"isHTMLSelectElement");function cT(e){return Re(e)&&et(e)==="table"}a(cT,"isHTMLTableElement");function dT(e){return Re(e)&&et(e)==="textarea"}a(dT,"isHTMLTextAreaElement");function pT(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}a(pT,"safeWindow");function fT(e){return Re(e)&&et(e)==="fieldset"}a(fT,"isHTMLFieldSetElement");function hT(e){return Re(e)&&et(e)==="legend"}a(hT,"isHTMLLegendElement");function mT(e){return Re(e)&&et(e)==="slot"}a(mT,"isHTMLSlotElement");function yT(e){return Re(e)&&e.ownerSVGElement!==void 0}a(yT,"isSVGElement");function bT(e){return Re(e)&&et(e)==="svg"}a(bT,"isSVGSVGElement");function gT(e){return yT(e)&&et(e)==="title"}a(gT,"isSVGTitleElement");function Ma(e,t){if(Re(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return[]}a(Ma,"queryIdRefs");function Wt(e,t){return Re(e)?t.indexOf(aT(e))!==-1:!1}a(Wt,"hasAnyConcreteRoles");function vT(e){return e.trim().replace(/\s\s+/g," ")}a(vT,"asFlatString");function wT(e,t){if(!Re(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}a(wT,"isHidden");function ET(e){return Wt(e,["button","combobox","listbox","textbox"])||Wf(e,"range")}a(ET,"isControl");function Wf(e,t){if(!Re(e))return!1;switch(t){case"range":return Wt(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}a(Wf,"hasAbstractRole");function jc(e,t){var r=Ot(e.querySelectorAll(t));return Ma(e,"aria-owns").forEach(function(n){r.push.apply(r,Ot(n.querySelectorAll(t)))}),r}a(jc,"querySelectorAllSubtree");function xT(e){return uT(e)?e.selectedOptions||jc(e,"[selected]"):jc(e,'[aria-selected="true"]')}a(xT,"querySelectedOptions");function TT(e){return Wt(e,Ic)}a(TT,"isMarkedPresentational");function ST(e){return zf(e)}a(ST,"isNativeHostLanguageTextAlternativeElement");function CT(e){return Wt(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}a(CT,"allowsNameFromContent");function PT(e){return!1}a(PT,"isDescendantOfNativeHostLanguageTextAlternativeElement");function OT(e){return ya(e)||dT(e)?e.value:e.textContent||""}a(OT,"getValueOfTextbox");function kc(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}a(kc,"getTextualContent");function Gf(e){var t=et(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}a(Gf,"isLabelableElement");function Kf(e){if(Gf(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&Re(r)){var n=Kf(r);n!==null&&(t=n)}}),t}a(Kf,"findLabelableElement");function _T(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):Kf(e)}a(_T,"getControlOfLabel");function AT(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Ot(t);if(!Gf(e))return null;var r=e.ownerDocument;return Ot(r.querySelectorAll("label")).filter(function(n){return _T(n)===e})}a(AT,"getLabels");function RT(e){var t=e.assignedNodes();return t.length===0?Ot(e.childNodes):t}a(RT,"getSlotContents");function Yf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new MH,n=pT(e),o=t.compute,i=o===void 0?"name":o,s=t.computedStyleSupportsPseudoElements,l=s===void 0?t.getComputedStyle!==void 0:s,c=t.getComputedStyle,u=c===void 0?n.getComputedStyle.bind(n):c,d=t.hidden,p=d===void 0?!1:d;function h(v,w){var P="";if(Re(v)&&l){var A=u(v,"::before"),R=kc(A);P="".concat(R," ").concat(P)}var T=mT(v)?RT(v):Ot(v.childNodes).concat(Ma(v,"aria-owns"));if(T.forEach(function(C){var k=g(C,{isEmbeddedInLabel:w.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),N=Re(C)?u(C).getPropertyValue("display"):"inline",U=N!=="inline"?" ":"";P+="".concat(U).concat(k).concat(U)}),Re(v)&&l){var E=u(v,"::after"),x=kc(E);P="".concat(P," ").concat(x)}return P.trim()}a(h,"computeMiscTextAlternative");function f(v,w){var P=v.getAttributeNode(w);return P!==null&&!r.has(P)&&P.value.trim()!==""?(r.add(P),P.value):null}a(f,"useAttribute");function m(v){return Re(v)?f(v,"title"):null}a(m,"computeTooltipAttributeValue");function b(v){if(!Re(v))return null;if(fT(v)){r.add(v);for(var w=Ot(v.childNodes),P=0;P<w.length;P+=1){var A=w[P];if(hT(A))return g(A,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(cT(v)){r.add(v);for(var R=Ot(v.childNodes),T=0;T<R.length;T+=1){var E=R[T];if(zf(E))return g(E,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(bT(v)){r.add(v);for(var x=Ot(v.childNodes),C=0;C<x.length;C+=1){var k=x[C];if(gT(k))return k.textContent}return null}else if(et(v)==="img"||et(v)==="area"){var N=f(v,"alt");if(N!==null)return N}else if(lT(v)){var U=f(v,"label");if(U!==null)return U}if(ya(v)&&(v.type==="button"||v.type==="submit"||v.type==="reset")){var D=f(v,"value");if(D!==null)return D;if(v.type==="submit")return"Submit";if(v.type==="reset")return"Reset"}var O=AT(v);if(O!==null&&O.length!==0)return r.add(v),Ot(O).map(function(G){return g(G,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(G){return G.length>0}).join(" ");if(ya(v)&&v.type==="image"){var M=f(v,"alt");if(M!==null)return M;var $=f(v,"title");return $!==null?$:"Submit Query"}if(Wt(v,["button"])){var K=h(v,{isEmbeddedInLabel:!1});if(K!=="")return K}return null}a(b,"computeElementTextAlternative");function g(v,w){if(r.has(v))return"";if(!p&&wT(v,u)&&!w.isReferenced)return r.add(v),"";var P=Re(v)?v.getAttributeNode("aria-labelledby"):null,A=P!==null&&!r.has(P)?Ma(v,"aria-labelledby"):[];if(i==="name"&&!w.isReferenced&&A.length>0)return r.add(P),A.map(function(N){return g(N,{isEmbeddedInLabel:w.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var R=w.recursion&&ET(v)&&i==="name";if(!R){var T=(Re(v)&&v.getAttribute("aria-label")||"").trim();if(T!==""&&i==="name")return r.add(v),T;if(!TT(v)){var E=b(v);if(E!==null)return r.add(v),E}}if(Wt(v,["menu"]))return r.add(v),"";if(R||w.isEmbeddedInLabel||w.isReferenced){if(Wt(v,["combobox","listbox"])){r.add(v);var x=xT(v);return x.length===0?ya(v)?v.value:"":Ot(x).map(function(N){return g(N,{isEmbeddedInLabel:w.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(Wf(v,"range"))return r.add(v),v.hasAttribute("aria-valuetext")?v.getAttribute("aria-valuetext"):v.hasAttribute("aria-valuenow")?v.getAttribute("aria-valuenow"):v.getAttribute("value")||"";if(Wt(v,["textbox"]))return r.add(v),OT(v)}if(CT(v)||Re(v)&&w.isReferenced||ST(v)||PT()){var C=h(v,{isEmbeddedInLabel:w.isEmbeddedInLabel});if(C!=="")return r.add(v),C}if(v.nodeType===v.TEXT_NODE)return r.add(v),v.textContent||"";if(w.recursion)return r.add(v),h(v,{isEmbeddedInLabel:w.isEmbeddedInLabel});var k=m(v);return k!==null?(r.add(v),k):(r.add(v),"")}return a(g,"computeTextAlternative"),vT(g(e,{isEmbeddedInLabel:!1,isReferenced:i==="description",recursion:!1}))}a(Yf,"computeTextAlternative");function po(e){"@babel/helpers - typeof";return po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},po(e)}a(po,"_typeof");function Mc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}a(Mc,"ownKeys");function $c(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mc(Object(r),!0).forEach(function(n){qT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}a($c,"_objectSpread");function qT(e,t,r){return t=NT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a(qT,"_defineProperty");function NT(e){var t=IT(e,"string");return po(t)==="symbol"?t:String(t)}a(NT,"_toPropertyKey");function IT(e,t){if(po(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(po(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}a(IT,"_toPrimitive");function jT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ma(e,"aria-describedby").map(function(i){return Yf(i,$c($c({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("aria-description");r=n===null?"":n}if(r===""){var o=e.getAttribute("title");r=o===null?"":o}return r}a(jT,"computeAccessibleDescription");function kT(e){return Wt(e,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}a(kT,"prohibitsNaming");function MT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return kT(e)?"":Yf(e,t)}a(MT,"computeAccessibleName");var Xf=He(Lg(),1),DH=He(Fg(),1),Qf=He(Xg(),1),FH=He(Qg(),1),$T=class extends Error{constructor(t,r,n,o){super(),Error.captureStackTrace&&Error.captureStackTrace(this,n);let i="";try{i=o.utils.printWithType("Received",r,o.utils.printReceived)}catch{}this.message=[o.utils.matcherHint(`${o.isNot?".not":""}.${n.name}`,"received",""),"",`${o.utils.RECEIVED_COLOR("received")} value must ${t}.`,i].join(`
|
|
222
|
+
`)}};a($T,"GenericTypeError");var LT=$T,DT=class extends LT{constructor(...t){super("be an HTMLElement or an SVGElement",...t)}};a(DT,"HtmlElementTypeError");var Eb=DT,FT=class extends LT{constructor(...t){super("be a Node",...t)}};a(FT,"NodeTypeError");var xb=FT;function Zf(e,t,...r){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...r)}a(Zf,"checkHasWindow");function BT(e,...t){Zf(e,xb,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.Node))throw new xb(e,...t)}a(BT,"checkNode");function Te(e,...t){Zf(e,Eb,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.HTMLElement)&&!(e instanceof r.SVGElement))throw new Eb(e,...t)}a(Te,"checkHtmlElement");var UT=class extends Error{constructor(t,r,n){super(),Error.captureStackTrace&&Error.captureStackTrace(this,r),this.message=[t.message,"",n.utils.RECEIVED_COLOR("Failing css:"),n.utils.RECEIVED_COLOR(`${t.css}`)].join(`
|
|
223
|
+
`)}};a(UT,"InvalidCSSError");var BH=UT;function HT(e,...t){let r=NH(`selector { ${e} }`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){let{reason:n,line:o}=r.parsingErrors[0];throw new BH({css:e,message:`Syntax error parsing expected css: ${n} on line: ${o}`},...t)}return r.rules[0].declarations.filter(n=>n.type==="declaration").reduce((n,{property:o,value:i})=>Object.assign(n,{[o]:i}),{})}a(HT,"parseCSS");function Lc(e,t){return typeof t=="string"?t:e.utils.stringify(t)}a(Lc,"display");function Qe(e,t,r,n,o,i){return[`${t}
|
|
224
|
+
`,`${r}:
|
|
225
|
+
${e.utils.EXPECTED_COLOR((0,wb.default)(Lc(e,n),2))}`,`${o}:
|
|
226
|
+
${e.utils.RECEIVED_COLOR((0,wb.default)(Lc(e,i),2))}`].join(`
|
|
227
|
+
`)}a(Qe,"getMessage");function VT(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}a(VT,"matches");function fi(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}a(fi,"deprecate");function hi(e){return e.replace(/\s+/g," ").trim()}a(hi,"normalize");function yr(e){return e.tagName&&e.tagName.toLowerCase()}a(yr,"getTag");function JT({multiple:e,options:t}){let r=[...t].filter(n=>n.selected);if(e)return[...r].map(n=>n.value);if(r.length!==0)return r[0].value}a(JT,"getSelectValue");function zT(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}a(zT,"getInputValue");var UH=["meter","progressbar","slider","spinbutton"];function WT(e){if(UH.includes(e.getAttribute("role")))return Number(e.getAttribute("aria-valuenow"))}a(WT,"getAccessibleValue");function eh(e){if(e)switch(e.tagName.toLowerCase()){case"input":return zT(e);case"select":return JT(e);default:return e.value??WT(e)}}a(eh,"getSingleElementValue");function GT(e,{wordConnector:t=", ",lastWordConnector:r=" and "}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?r:"")}a(GT,"toSentence");function Zl(e,t){if(Array.isArray(e)&&Array.isArray(t))return[...new Set(e)].every(r=>new Set(t).has(r))}a(Zl,"compareArraysAsSet");function bs(e,t){return fi("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),e&&Te(e,bs,this),t&&Te(t,bs,this),{pass:t?t.contains(e):!!e,message:a(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDOM`,"element",""),"","Received:",` ${this.utils.printReceived(e&&e.cloneNode(!1))}`].join(`
|
|
228
|
+
`),"message")}}a(bs,"toBeInTheDOM");function th(e){(e!==null||!this.isNot)&&Te(e,th,this);let t=e===null?!1:e.ownerDocument===e.getRootNode({composed:!0}),r=a(()=>`expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`,"errorFound"),n=a(()=>"element could not be found in the document","errorNotFound");return{pass:t,message:a(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDocument`,"element",""),"",this.utils.RECEIVED_COLOR(this.isNot?r():n())].join(`
|
|
229
|
+
`),"message")}}a(th,"toBeInTheDocument");function rh(e){return fi("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),Te(e,rh,this),{pass:e.innerHTML==="",message:a(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmpty`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
230
|
+
`),"message")}}a(rh,"toBeEmpty");function nh(e){return Te(e,nh,this),{pass:KT(e),message:a(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmptyDOMElement`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
231
|
+
`),"message")}}a(nh,"toBeEmptyDOMElement");function KT(e){return[...e.childNodes].filter(t=>t.nodeType!==8).length===0}a(KT,"isEmptyElement");function gs(e,t){return Te(e,gs,this),t!==null&&Te(t,gs,this),{pass:e.contains(t),message:a(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainElement`,"element","element"),"",this.utils.RECEIVED_COLOR(`${this.utils.stringify(e.cloneNode(!1))} ${this.isNot?"contains:":"does not contain:"} ${this.utils.stringify(t&&t.cloneNode(!1))}
|
|
232
|
+
`)].join(`
|
|
233
|
+
`),"message")}}a(gs,"toContainElement");function YT(e,t){let r=e.ownerDocument.createElement("div");return r.innerHTML=t,r.innerHTML}a(YT,"getNormalizedHtml");function oh(e,t){if(Te(e,oh,this),typeof t!="string")throw new Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(YT(e,t)),message:a(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainHTML`,"element",""),"Expected:",` ${this.utils.EXPECTED_COLOR(t)}`,"Received:",` ${this.utils.printReceived(e.cloneNode(!0))}`].join(`
|
|
234
|
+
`),"message")}}a(oh,"toContainHTML");function ah(e,t,r={normalizeWhitespace:!0}){BT(e,ah,this);let n=r.normalizeWhitespace?hi(e.textContent):e.textContent.replace(/\u00a0/g," "),o=n!==""&&t==="";return{pass:!o&&VT(n,t),message:a(()=>{let i=this.isNot?"not to":"to";return Qe(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveTextContent`,"element",""),o?"Checking with empty string will always match, use .toBeEmptyDOMElement() instead":`Expected element ${i} have text content`,t,"Received",n)},"message")}}a(ah,"toHaveTextContent");function vs(e,t){Te(e,vs,this);let r=jT(e),n=arguments.length===1,o=!1;return n?o=r!=="":o=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:o,message:a(()=>{let i=this.isNot?"not to":"to";return Qe(this,this.utils.matcherHint(`${this.isNot?".not":""}.${vs.name}`,"element",""),`Expected element ${i} have accessible description`,t,"Received",r)},"message")}}a(vs,"toHaveAccessibleDescription");var ta="aria-invalid",HH=["false"];function ih(e,t){Te(e,ih,this);let r=this.isNot?"not to":"to",n=this.isNot?".not.toHaveAccessibleErrorMessage":".toHaveAccessibleErrorMessage",o=e.getAttribute("aria-errormessage");if(o&&/\s+/.test(o))return{pass:!1,message:a(()=>Qe(this,this.utils.matcherHint(n,"element"),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID","","Received",`aria-errormessage="${o}"`),"message")};let i=e.getAttribute(ta);if(!e.hasAttribute(ta)||HH.includes(i))return{pass:!1,message:a(()=>Qe(this,this.utils.matcherHint(n,"element"),"Expected element to be marked as invalid with attribute",`${ta}="${String(!0)}"`,"Received",e.hasAttribute("aria-invalid")?`${ta}="${e.getAttribute(ta)}`:null),"message")};let s=hi(e.ownerDocument.getElementById(o)?.textContent??"");return{pass:t===void 0?!!s:t instanceof RegExp?t.test(s):this.equals(s,t),message:a(()=>Qe(this,this.utils.matcherHint(n,"element"),`Expected element ${r} have accessible error message`,t??"","Received",s),"message")}}a(ih,"toHaveAccessibleErrorMessage");var VH=ZT(Xf.elementRoles);function ws(e,t){Te(e,ws,this);let r=XT(e);return{pass:r.some(n=>n===t),message:a(()=>{let n=this.isNot?"not to":"to";return Qe(this,this.utils.matcherHint(`${this.isNot?".not":""}.${ws.name}`,"element",""),`Expected element ${n} have role`,t,"Received",r.join(", "))},"message")}}a(ws,"toHaveRole");function XT(e){return e.hasAttribute("role")?e.getAttribute("role").split(" ").filter(Boolean):QT(e)}a(XT,"getExplicitOrImplicitRoles");function QT(e){for(let{match:t,roles:r}of VH)if(t(e))return[...r];return[]}a(QT,"getImplicitAriaRoles");function ZT(e){function t({name:s,attributes:l}){return`${s}${l.map(({name:c,value:u,constraints:d=[]})=>d.indexOf("undefined")!==-1?`:not([${c}])`:u?`[${c}="${u}"]`:`[${c}]`).join("")}`}a(t,"makeElementSelector");function r({attributes:s=[]}){return s.length}a(r,"getSelectorSpecificity");function n({specificity:s},{specificity:l}){return l-s}a(n,"bySelectorSpecificity");function o(s){let{attributes:l=[]}=s,c=l.findIndex(d=>d.value&&d.name==="type"&&d.value==="text");c>=0&&(l=[...l.slice(0,c),...l.slice(c+1)]);let u=t({...s,attributes:l});return d=>c>=0&&d.type!=="text"?!1:d.matches(u)}a(o,"match");let i=[];for(let[s,l]of e.entries())i=[...i,{match:o(s),roles:Array.from(l),specificity:r(s)}];return i.sort(n)}a(ZT,"buildElementRoleList");function Es(e,t){Te(e,Es,this);let r=MT(e),n=arguments.length===1,o=!1;return n?o=r!=="":o=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:o,message:a(()=>{let i=this.isNot?"not to":"to";return Qe(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Es.name}`,"element",""),`Expected element ${i} have accessible name`,t,"Received",r)},"message")}}a(Es,"toHaveAccessibleName");function Dc(e,t,r){return r===void 0?t:`${t}=${e(r)}`}a(Dc,"printAttribute");function eS(e,t,r){return r===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(r)}`}a(eS,"getAttributeComment");function sh(e,t,r){Te(e,sh,this);let n=r!==void 0,o=e.hasAttribute(t),i=e.getAttribute(t);return{pass:n?o&&this.equals(i,r):o,message:a(()=>{let s=this.isNot?"not to":"to",l=o?Dc(this.utils.stringify,t,i):null,c=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveAttribute`,"element",this.utils.printExpected(t),{secondArgument:n?this.utils.printExpected(r):void 0,comment:eS(this.utils.stringify,t,r)});return Qe(this,c,`Expected the element ${s} have attribute`,Dc(this.utils.stringify,t,r),"Received",l)},"message")}}a(sh,"toHaveAttribute");function tS(e){let t=e.pop(),r,n;return typeof t=="object"&&!(t instanceof RegExp)?(r=e,n=t):(r=e.concat(t),n={exact:!1}),{expectedClassNames:r,options:n}}a(tS,"getExpectedClassNamesAndOptions");function Fc(e){return e?e.split(/\s+/).filter(t=>t.length>0):[]}a(Fc,"splitClassNames");function Bc(e,t){return e.every(r=>typeof r=="string"?t.includes(r):t.some(n=>r.test(n)))}a(Bc,"isSubset$1");function lh(e,...t){Te(e,lh,this);let{expectedClassNames:r,options:n}=tS(t),o=Fc(e.getAttribute("class")),i=r.reduce((l,c)=>l.concat(typeof c=="string"||!c?Fc(c):c),[]),s=i.some(l=>l instanceof RegExp);if(n.exact&&s)throw new Error("Exact option does not support RegExp expected class names");return n.exact?{pass:Bc(i,o)&&i.length===o.length,message:a(()=>{let l=this.isNot?"not to":"to";return Qe(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(i.join(" "))),`Expected the element ${l} have EXACTLY defined classes`,i.join(" "),"Received",o.join(" "))},"message")}:i.length>0?{pass:Bc(i,o),message:a(()=>{let l=this.isNot?"not to":"to";return Qe(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(i.join(" "))),`Expected the element ${l} have class`,i.join(" "),"Received",o.join(" "))},"message")}:{pass:this.isNot?o.length>0:!1,message:a(()=>this.isNot?Qe(this,this.utils.matcherHint(".not.toHaveClass","element",""),"Expected the element to have classes","(none)","Received",o.join(" ")):[this.utils.matcherHint(".toHaveClass","element"),"At least one expected class must be provided."].join(`
|
|
235
|
+
`),"message")}}a(lh,"toHaveClass");function rS(e,t){let r={},n=e.createElement("div");return Object.keys(t).forEach(o=>{n.style[o]=t[o],r[o]=n.style[o]}),r}a(rS,"getStyleDeclaration");function nS(e,t){return!!Object.keys(e).length&&Object.entries(e).every(([r,n])=>{let o=r.startsWith("--"),i=[r];return o||i.push(r.toLowerCase()),i.some(s=>t[s]===n||t.getPropertyValue(s)===n)})}a(nS,"isSubset");function Uc(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
|
|
236
|
+
`)}a(Uc,"printoutStyles");function oS(e,t,r){let n=Array.from(r).filter(o=>t[o]!==void 0).reduce((o,i)=>Object.assign(o,{[i]:r.getPropertyValue(i)}),{});return e(Uc(t),Uc(n)).replace(`${DH.default.red("+ Received")}
|
|
237
|
+
`,"")}a(oS,"expectedDiff");function xs(e,t){Te(e,xs,this);let r=typeof t=="object"?t:HT(t,xs,this),{getComputedStyle:n}=e.ownerDocument.defaultView,o=rS(e.ownerDocument,r),i=n(e);return{pass:nS(o,i),message:a(()=>{let s=`${this.isNot?".not":""}.toHaveStyle`;return[this.utils.matcherHint(s,"element",""),oS(this.utils.diff,o,i)].join(`
|
|
238
|
+
|
|
239
|
+
`)},"message")}}a(xs,"toHaveStyle");function uh(e){return Te(e,uh,this),{pass:e.ownerDocument.activeElement===e,message:a(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toHaveFocus`,"element",""),"",...this.isNot?["Received element is focused:",` ${this.utils.printReceived(e)}`]:["Expected element with focus:",` ${this.utils.printExpected(e)}`,"Received element with focus:",` ${this.utils.printReceived(e.ownerDocument.activeElement)}`]].join(`
|
|
240
|
+
`),"message")}}a(uh,"toHaveFocus");function aS(e){let t=[...new Set(e.map(r=>r.type))];if(t.length!==1)throw new Error("Multiple form elements with the same name must be of the same type");switch(t[0]){case"radio":{let r=e.find(n=>n.checked);return r?r.value:void 0}case"checkbox":return e.filter(r=>r.checked).map(r=>r.value);default:return e.map(r=>r.value)}}a(aS,"getMultiElementValue");function iS(e,t){let r=[...e.querySelectorAll(`[name="${(0,FH.default)(t)}"]`)];if(r.length!==0)switch(r.length){case 1:return eh(r[0]);default:return aS(r)}}a(iS,"getFormValue");function sS(e){return/\[\]$/.test(e)?e.slice(0,-2):e}a(sS,"getPureName");function lS(e){return Array.from(e.elements).map(t=>t.name).reduce((t,r)=>({...t,[sS(r)]:iS(e,r)}),{})}a(lS,"getAllFormValues");function ch(e,t){if(Te(e,ch,this),!e.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");let r=lS(e);return{pass:Object.entries(t).every(([n,o])=>(0,Qf.default)(r[n],o,Zl)),message:a(()=>{let n=this.isNot?"not to":"to",o=`${this.isNot?".not":""}.toHaveFormValues`,i=Object.keys(r).filter(s=>t.hasOwnProperty(s)).reduce((s,l)=>({...s,[l]:r[l]}),{});return[this.utils.matcherHint(o,"element",""),`Expected the element ${n} have form values`,this.utils.diff(t,i)].join(`
|
|
241
|
+
|
|
242
|
+
`)},"message")}}a(ch,"toHaveFormValues");function uS(e){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n,opacity:o}=t(e);return r!=="none"&&n!=="hidden"&&n!=="collapse"&&o!=="0"&&o!==0}a(uS,"isStyleVisible");function cS(e,t){let r;return t?r=e.nodeName==="DETAILS"&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0:r=e.nodeName==="DETAILS"?e.hasAttribute("open"):!0,!e.hasAttribute("hidden")&&r}a(cS,"isAttributeVisible");function dh(e,t){return uS(e)&&cS(e,t)&&(!e.parentElement||dh(e.parentElement,e))}a(dh,"isElementVisible");function ph(e){Te(e,ph,this);let t=e.ownerDocument===e.getRootNode({composed:!0}),r=t&&dh(e);return{pass:r,message:a(()=>{let n=r?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeVisible`,"element",""),"",`Received element ${n} visible${t?"":" (element is not in the document)"}:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
243
|
+
`)},"message")}}a(ph,"toBeVisible");var JH=["fieldset","input","select","optgroup","option","button","textarea"];function dS(e,t){return yr(e)==="legend"&&yr(t)==="fieldset"&&e.isSameNode(Array.from(t.children).find(r=>yr(r)==="legend"))}a(dS,"isFirstLegendChildOfFieldset");function pS(e,t){return hh(t)&&!dS(e,t)}a(pS,"isElementDisabledByParent");function fS(e){return e.includes("-")}a(fS,"isCustomElement");function fh(e){let t=yr(e);return JH.includes(t)||fS(t)}a(fh,"canElementBeDisabled");function hh(e){return fh(e)&&e.hasAttribute("disabled")}a(hh,"isElementDisabled");function mh(e){let t=e.parentElement;return!!t&&(pS(e,t)||mh(t))}a(mh,"isAncestorDisabled");function yh(e){return fh(e)&&(hh(e)||mh(e))}a(yh,"isElementOrAncestorDisabled");function bh(e){Te(e,bh,this);let t=yh(e);return{pass:t,message:a(()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeDisabled`,"element",""),"",`Received element ${r} disabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
244
|
+
`)},"message")}}a(bh,"toBeDisabled");function gh(e){Te(e,gh,this);let t=!yh(e);return{pass:t,message:a(()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEnabled`,"element",""),"",`Received element ${r} enabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
245
|
+
`)},"message")}}a(gh,"toBeEnabled");var zH=["select","textarea"],WH=["input","select","textarea"],GH=["color","hidden","range","submit","image","reset"],KH=["checkbox","combobox","gridcell","listbox","radiogroup","spinbutton","textbox","tree"];function hS(e){return zH.includes(yr(e))&&e.hasAttribute("required")}a(hS,"isRequiredOnFormTagsExceptInput");function mS(e){return yr(e)==="input"&&e.hasAttribute("required")&&(e.hasAttribute("type")&&!GH.includes(e.getAttribute("type"))||!e.hasAttribute("type"))}a(mS,"isRequiredOnSupportedInput");function yS(e){return e.hasAttribute("aria-required")&&e.getAttribute("aria-required")==="true"&&(WH.includes(yr(e))||e.hasAttribute("role")&&KH.includes(e.getAttribute("role")))}a(yS,"isElementRequiredByARIA");function vh(e){Te(e,vh,this);let t=hS(e)||mS(e)||yS(e);return{pass:t,message:a(()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeRequired`,"element",""),"",`Received element ${r} required:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
246
|
+
`)},"message")}}a(vh,"toBeRequired");var YH=["form","input","select","textarea"];function bS(e){return e.hasAttribute("aria-invalid")&&e.getAttribute("aria-invalid")!=="false"}a(bS,"isElementHavingAriaInvalid");function gS(e){return YH.includes(yr(e))}a(gS,"isSupportsValidityMethod");function wh(e){let t=bS(e);return gS(e)?t||!e.checkValidity():t}a(wh,"isElementInvalid");function Eh(e){Te(e,Eh,this);let t=wh(e);return{pass:t,message:a(()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInvalid`,"element",""),"",`Received element ${r} currently invalid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
247
|
+
`)},"message")}}a(Eh,"toBeInvalid");function xh(e){Te(e,xh,this);let t=!wh(e);return{pass:t,message:a(()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeValid`,"element",""),"",`Received element ${r} currently valid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
248
|
+
`)},"message")}}a(xh,"toBeValid");function Th(e,t){if(Te(e,Th,this),e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type))throw new Error("input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead");let r=eh(e),n=t!==void 0,o=t,i=r;return t==r&&t!==r&&(o=`${t} (${typeof t})`,i=`${r} (${typeof r})`),{pass:n?(0,Qf.default)(r,t,Zl):!!r,message:a(()=>{let s=this.isNot?"not to":"to",l=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return Qe(this,l,`Expected the element ${s} have value`,n?o:"(any)","Received",i)},"message")}}a(Th,"toHaveValue");function Sh(e,t){Te(e,Sh,this);let r=e.tagName.toLowerCase();if(!["select","input","textarea"].includes(r))throw new Error(".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.");if(r==="input"&&["radio","checkbox"].includes(e.type))throw new Error(`.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`);let n=vS(r,e),o=wS(t),i=o.filter(c=>n.some(u=>c instanceof RegExp?c.test(u):this.equals(u,String(c)))).length,s=i===n.length,l=i===o.length;return{pass:s&&l,message:a(()=>Qe(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,t,"Received",n),"message")}}a(Sh,"toHaveDisplayValue");function vS(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}a(vS,"getValues");function wS(e){return e instanceof Array?e:[e]}a(wS,"getExpectedValues");function Ch(e){Te(e,Ch,this);let t=a(()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),"isValidInput"),r=a(()=>Ph(e.getAttribute("role"))&&["true","false"].includes(e.getAttribute("aria-checked")),"isValidAriaElement");if(!t()&&!r())return{pass:!1,message:a(()=>`only inputs with type="checkbox" or type="radio" or elements with ${ES()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`,"message")};let n=a(()=>t()?e.checked:e.getAttribute("aria-checked")==="true","isChecked");return{pass:n(),message:a(()=>{let o=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeChecked`,"element",""),"",`Received element ${o} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
249
|
+
`)},"message")}}a(Ch,"toBeChecked");function ES(){return GT(xS().map(e=>`role="${e}"`),{lastWordConnector:" or "})}a(ES,"supportedRolesSentence");function xS(){return Xf.roles.keys().filter(Ph)}a(xS,"supportedRoles");function Ph(e){return Xf.roles.get(e)?.props["aria-checked"]!==void 0}a(Ph,"roleSupportsChecked");function Oh(e){Te(e,Oh,this);let t=a(()=>e.tagName.toLowerCase()==="input"&&e.type==="checkbox","isValidInput"),r=a(()=>e.getAttribute("role")==="checkbox","isValidAriaElement");if(!t()&&!r())return{pass:!1,message:a(()=>'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead',"message")};let n=a(()=>{let o=e.getAttribute("aria-checked")==="mixed";return t()&&e.indeterminate||o},"isPartiallyChecked");return{pass:n(),message:a(()=>{let o=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyChecked`,"element",""),"",`Received element ${o} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
250
|
+
`)},"message")}}a(Oh,"toBePartiallyChecked");function _h(e,t){fi("toHaveDescription","Please use toHaveAccessibleDescription."),Te(e,_h,this);let r=t!==void 0,n=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),o="";if(n.length>0){let i=e.ownerDocument,s=n.map(l=>i.getElementById(l)).filter(Boolean);o=hi(s.map(l=>l.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:a(()=>{let i=this.isNot?"not to":"to";return Qe(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${i} have description`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))},"message")}}a(_h,"toHaveDescription");function Ah(e,t){if(fi("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),Te(e,Ah,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){let i=this.isNot?".not":"";return{pass:!1,message:a(()=>Qe(this,this.utils.matcherHint(`${i}.toHaveErrorMessage`,"element",""),"Expected the element to have invalid state indicated by",'aria-invalid="true"',"Received",e.hasAttribute("aria-invalid")?`aria-invalid="${e.getAttribute("aria-invalid")}"`:this.utils.printReceived("")),"message")}}let r=t!==void 0,n=(e.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean),o="";if(n.length>0){let i=e.ownerDocument,s=n.map(l=>i.getElementById(l)).filter(Boolean);o=hi(s.map(l=>l.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:a(()=>{let i=this.isNot?"not to":"to";return Qe(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expected the element ${i} have error message`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))},"message")}}a(Ah,"toHaveErrorMessage");function TS(e){let t=e.ownerDocument.getSelection();if(["input","textarea"].includes(e.tagName.toLowerCase()))return["radio","checkbox"].includes(e.type)?"":e.value.toString().substring(e.selectionStart,e.selectionEnd);if(t.anchorNode===null||t.focusNode===null)return"";let r=t.getRangeAt(0),n=e.ownerDocument.createRange();if(t.containsNode(e,!1))n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n);else if(!(e.contains(t.anchorNode)&&e.contains(t.focusNode))){let i=e===r.startContainer||e.contains(r.startContainer),s=e===r.endContainer||e.contains(r.endContainer);t.removeAllRanges(),(i||s)&&(n.selectNodeContents(e),i&&n.setStart(r.startContainer,r.startOffset),s&&n.setEnd(r.endContainer,r.endOffset),t.addRange(n))}let o=t.toString();return t.removeAllRanges(),t.addRange(r),o}a(TS,"getSelection");function Rh(e,t){Te(e,Rh,this);let r=t!==void 0;if(r&&typeof t!="string")throw new Error("expected selection must be a string or undefined");let n=TS(e);return{pass:r?(0,Qf.default)(n,t,Zl):!!n,message:a(()=>{let o=this.isNot?"not to":"to",i=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveSelection`,"element",t);return Qe(this,i,`Expected the element ${o} have selection`,r?t:"(any)","Received",n)},"message")}}a(Rh,"toHaveSelection");He($g(),1);He(Lg(),1);He(Fg(),1);He(Xg(),1);He(Qg(),1);var Hu,Tb;function SS(){if(Tb)return Hu;Tb=1;var e,t,r,n,o,i,s,l,c,u,d,p,h,f,m,b,g,v,w;return h=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,p=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,m=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,d=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,b=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,w=/[\t\v\f\ufeff\p{Zs}]+/yu,l=/\r?\n|[\r\u2028\u2029]/y,c=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,f=/\/\/.*/y,r=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,n=/(['"])(?:(?!\1)[^])*(\1)?/y,o=/[^<>{}]+/y,v=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,g=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,i=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,s=/^(?:return|throw|yield)$/,u=RegExp(l.source),Hu=a(function*(P,{jsx:A=!1}={}){var R,T,E,x,C,k,N,U,D,O,M,$,K,G;for({length:k}=P,x=0,C="",G=[{tag:"JS"}],R=[],M=0,$=!1;x<k;){switch(U=G[G.length-1],U.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(P[x]==="/"&&(v.test(C)||i.test(C))&&(h.lastIndex=x,N=h.exec(P))){x=h.lastIndex,C=N[0],$=!0,yield{type:"RegularExpressionLiteral",value:N[0],closed:N[1]!==void 0&&N[1]!=="\\"};continue}if(p.lastIndex=x,N=p.exec(P)){switch(K=N[0],D=p.lastIndex,O=K,K){case"(":C==="?NonExpressionParenKeyword"&&G.push({tag:"JSNonExpressionParen",nesting:M}),M++,$=!1;break;case")":M--,$=!0,U.tag==="JSNonExpressionParen"&&M===U.nesting&&(G.pop(),O="?NonExpressionParenEnd",$=!1);break;case"{":p.lastIndex=0,E=!g.test(C)&&(v.test(C)||i.test(C)),R.push(E),$=!1;break;case"}":switch(U.tag){case"InterpolationInTemplate":if(R.length===U.nesting){b.lastIndex=x,N=b.exec(P),x=b.lastIndex,C=N[0],N[1]==="${"?(C="?InterpolationInTemplate",$=!1,yield{type:"TemplateMiddle",value:N[0]}):(G.pop(),$=!0,yield{type:"TemplateTail",value:N[0],closed:N[1]==="`"});continue}break;case"InterpolationInJSX":if(R.length===U.nesting){G.pop(),x+=1,C="}",yield{type:"JSXPunctuator",value:"}"};continue}}$=R.pop(),O=$?"?ExpressionBraceEnd":"}";break;case"]":$=!0;break;case"++":case"--":O=$?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(A&&(v.test(C)||i.test(C))){G.push({tag:"JSXTag"}),x+=1,C="<",yield{type:"JSXPunctuator",value:K};continue}$=!1;break;default:$=!1}x=D,C=O,yield{type:"Punctuator",value:K};continue}if(e.lastIndex=x,N=e.exec(P)){switch(x=e.lastIndex,O=N[0],N[0]){case"for":case"if":case"while":case"with":C!=="."&&C!=="?."&&(O="?NonExpressionParenKeyword")}C=O,$=!i.test(N[0]),yield{type:N[1]==="#"?"PrivateIdentifier":"IdentifierName",value:N[0]};continue}if(m.lastIndex=x,N=m.exec(P)){x=m.lastIndex,C=N[0],$=!0,yield{type:"StringLiteral",value:N[0],closed:N[2]!==void 0};continue}if(d.lastIndex=x,N=d.exec(P)){x=d.lastIndex,C=N[0],$=!0,yield{type:"NumericLiteral",value:N[0]};continue}if(b.lastIndex=x,N=b.exec(P)){x=b.lastIndex,C=N[0],N[1]==="${"?(C="?InterpolationInTemplate",G.push({tag:"InterpolationInTemplate",nesting:R.length}),$=!1,yield{type:"TemplateHead",value:N[0]}):($=!0,yield{type:"NoSubstitutionTemplate",value:N[0],closed:N[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=x,N=r.exec(P)){switch(x=r.lastIndex,O=N[0],N[0]){case"<":G.push({tag:"JSXTag"});break;case">":G.pop(),C==="/"||U.tag==="JSXTagEnd"?(O="?JSX",$=!0):G.push({tag:"JSXChildren"});break;case"{":G.push({tag:"InterpolationInJSX",nesting:R.length}),O="?InterpolationInJSX",$=!1;break;case"/":C==="<"&&(G.pop(),G[G.length-1].tag==="JSXChildren"&&G.pop(),G.push({tag:"JSXTagEnd"}))}C=O,yield{type:"JSXPunctuator",value:N[0]};continue}if(t.lastIndex=x,N=t.exec(P)){x=t.lastIndex,C=N[0],yield{type:"JSXIdentifier",value:N[0]};continue}if(n.lastIndex=x,N=n.exec(P)){x=n.lastIndex,C=N[0],yield{type:"JSXString",value:N[0],closed:N[2]!==void 0};continue}break;case"JSXChildren":if(o.lastIndex=x,N=o.exec(P)){x=o.lastIndex,C=N[0],yield{type:"JSXText",value:N[0]};continue}switch(P[x]){case"<":G.push({tag:"JSXTag"}),x++,C="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":G.push({tag:"InterpolationInJSX",nesting:R.length}),x++,C="?InterpolationInJSX",$=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(w.lastIndex=x,N=w.exec(P)){x=w.lastIndex,yield{type:"WhiteSpace",value:N[0]};continue}if(l.lastIndex=x,N=l.exec(P)){x=l.lastIndex,$=!1,s.test(C)&&(C="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:N[0]};continue}if(c.lastIndex=x,N=c.exec(P)){x=c.lastIndex,u.test(N[0])&&($=!1,s.test(C)&&(C="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:N[0],closed:N[1]!==void 0};continue}if(f.lastIndex=x,N=f.exec(P)){x=f.lastIndex,$=!1,yield{type:"SingleLineComment",value:N[0]};continue}T=String.fromCodePoint(P.codePointAt(x)),x+=T.length,C=T,$=!1,yield{type:U.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:T}}},"jsTokens_1"),Hu}a(SS,"requireJsTokens");SS();var CS={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(CS.keyword);new Set(CS.strict);function ba(e,t){if(!e)throw new Error(t)}a(ba,"assert");function on(e,t){return typeof t===e}a(on,"isType");function PS(e){return e instanceof Promise}a(PS,"isPromise");function fo(e,t,r){Object.defineProperty(e,t,r)}a(fo,"define");function cn(e,t,r){fo(e,t,{value:r,configurable:!0,writable:!0})}a(cn,"defineValue");var Mr=Symbol.for("tinyspy:spy"),XH=new Set,QH=a(e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},"reset"),ZH=a(e=>(fo(e,Mr,{value:{reset:a(()=>QH(e[Mr]),"reset")}}),e[Mr]),"defineState"),Hc=a(e=>e[Mr]||ZH(e),"getInternalState");function OS(e){ba(on("function",e)||on("undefined",e),"cannot spy on a non-function value");let t=a(function(...n){let o=Hc(t);o.called=!0,o.callCount++,o.calls.push(n);let i=o.next.shift();if(i){o.results.push(i);let[d,p]=i;if(d==="ok")return p;throw p}let s,l="ok",c=o.results.length;if(o.impl)try{new.target?s=Reflect.construct(o.impl,n,new.target):s=o.impl.apply(this,n),l="ok"}catch(d){throw s=d,l="error",o.results.push([l,d]),d}let u=[l,s];return PS(s)&&s.then(d=>o.resolves[c]=["ok",d],d=>o.resolves[c]=["error",d]),o.results.push(u),s},"fn");cn(t,"_isMockFunction",!0),cn(t,"length",e?e.length:0),cn(t,"name",e&&e.name||"spy");let r=Hc(t);return r.reset(),r.impl=e,t}a(OS,"createInternalSpy");function _S(e){return!!e&&e._isMockFunction===!0}a(_S,"isMockFunction");var AS=a((e,t)=>{let r=Object.getOwnPropertyDescriptor(e,t);if(r)return[e,r];let n=Object.getPrototypeOf(e);for(;n!==null;){let o=Object.getOwnPropertyDescriptor(n,t);if(o)return[n,o];n=Object.getPrototypeOf(n)}},"getDescriptor"),Sb=a((e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)},"setPototype");function qh(e,t,r){ba(!on("undefined",e),"spyOn could not find an object to spy upon"),ba(on("object",e)||on("function",e),"cannot spyOn on a primitive value");let[n,o]=(()=>{if(!on("object",t))return[t,"value"];if("getter"in t&&"setter"in t)throw new Error("cannot spy on both getter and setter");if("getter"in t)return[t.getter,"get"];if("setter"in t)return[t.setter,"set"];throw new Error("specify getter or setter to spy on")})(),[i,s]=AS(e,n)||[];ba(s||n in e,`${String(n)} does not exist`);let l=!1;o==="value"&&s&&!s.value&&s.get&&(o="get",l=!0,r=s.get());let c;s?c=s[o]:o!=="value"?c=a(()=>e[n],"original"):c=e[n],c&&NS(c)&&(c=c[Mr].getOriginal());let u=a(f=>{let{value:m,...b}=s||{configurable:!0,writable:!0};o!=="value"&&delete b.writable,b[o]=f,fo(e,n,b)},"reassign"),d=a(()=>{i!==e?Reflect.deleteProperty(e,n):s&&!c?fo(e,n,s):u(c)},"restore");r||(r=c);let p=qS(OS(r),r);o==="value"&&Sb(p,c);let h=p[Mr];return cn(h,"restore",d),cn(h,"getOriginal",()=>l?c():c),cn(h,"willCall",f=>(h.impl=f,p)),u(l?()=>(Sb(p,r),p):p),XH.add(p),p}a(qh,"internalSpyOn");var e5=new Set(["length","name","prototype"]);function RS(e){let t=new Set,r={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let n=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let o of n)r[o]||e5.has(o)||(t.add(o),r[o]=Object.getOwnPropertyDescriptor(e,o));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:r}}a(RS,"getAllProperties");function qS(e,t){if(!t||Mr in t)return e;let{properties:r,descriptors:n}=RS(t);for(let o of r){let i=n[o];AS(e,o)||fo(e,o,i)}return e}a(qS,"wrap");function NS(e){return _S(e)&&"getOriginal"in e[Mr]}a(NS,"isSpyFunction");var mi=new Set;function dn(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}a(dn,"isMockFunction");function IS(e,t,r){let n=r?{[{get:"getter",set:"setter"}[r]]:t}:t,o,i=jS(e,t),s=i&&i[r||"value"];dn(s)&&(o=s.mock._state());try{let l=qh(e,n),c=Nh(l);return o&&c.mock._state(o),c}catch(l){throw l instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]==="Module"&&(l.message.includes("Cannot redefine property")||l.message.includes("Cannot replace module namespace")||l.message.includes("can't redefine non-configurable property"))?new TypeError(`Cannot spy on export "${String(n)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:l}):l}}a(IS,"spyOn");var t5=0;function Nh(e){let t=e,r,n=[],o=!1,i=[],s=[],l=[],c=Hc(e),u={get calls(){return c.calls},get contexts(){return s},get instances(){return i},get invocationCallOrder(){return l},get results(){return c.results.map(([f,m])=>({type:f==="error"?"throw":"return",value:m}))},get settledResults(){return c.resolves.map(([f,m])=>({type:f==="error"?"rejected":"fulfilled",value:m}))},get lastCall(){return c.calls[c.calls.length-1]},_state(f){return f&&(r=f.implementation,n=f.onceImplementations,o=f.implementationChangedTemporarily),{implementation:r,onceImplementations:n,implementationChangedTemporarily:o}}};function d(...f){return i.push(this),s.push(this),l.push(++t5),(o?r:n.shift()||r||c.getOriginal()||(()=>{})).apply(this,f)}a(d,"mockCall");let p=t.name;t.getMockName=()=>p||"vi.fn()",t.mockName=f=>(p=f,t),t.mockClear=()=>(c.reset(),i=[],s=[],l=[],t),t.mockReset=()=>(t.mockClear(),r=void 0,n=[],t),t.mockRestore=()=>(t.mockReset(),c.restore(),t),Symbol.dispose&&(t[Symbol.dispose]=()=>t.mockRestore()),t.getMockImplementation=()=>o?r:n.at(0)||r,t.mockImplementation=f=>(r=f,c.willCall(d),t),t.mockImplementationOnce=f=>(n.push(f),t);function h(f,m){let b=r;r=f,c.willCall(d),o=!0;let g=a(()=>{r=b,o=!1},"reset"),v=m();return typeof v=="object"&&v&&typeof v.then=="function"?v.then(()=>(g(),t)):(g(),t)}return a(h,"withImplementation"),t.withImplementation=h,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=f=>t.mockImplementation(()=>f),t.mockReturnValueOnce=f=>t.mockImplementationOnce(()=>f),t.mockResolvedValue=f=>t.mockImplementation(()=>Promise.resolve(f)),t.mockResolvedValueOnce=f=>t.mockImplementationOnce(()=>Promise.resolve(f)),t.mockRejectedValue=f=>t.mockImplementation(()=>Promise.reject(f)),t.mockRejectedValueOnce=f=>t.mockImplementationOnce(()=>Promise.reject(f)),Object.defineProperty(t,"mock",{get:a(()=>u,"get")}),c.willCall(d),mi.add(t),t}a(Nh,"enhanceSpy");function Vc(e){let t=Nh(qh({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}a(Vc,"fn");function jS(e,t){let r=Object.getOwnPropertyDescriptor(e,t);if(r)return r;let n=Object.getPrototypeOf(e);for(;n!==null;){let o=Object.getOwnPropertyDescriptor(n,t);if(o)return o;n=Object.getPrototypeOf(n)}}a(jS,"getDescriptor");var $a=Symbol.for("matchers-object"),La=Symbol.for("$$jest-matchers-object-storybook"),Ih=Symbol.for("expect-global"),Jc=Symbol.for("asymmetric-matchers-object"),r5={toSatisfy(e,t,r){let{printReceived:n,printExpected:o,matcherHint:i}=this.utils,s=t(e);return{pass:s,message:a(()=>s?`${i(".not.toSatisfy","received","")}
|
|
251
|
+
|
|
252
|
+
Expected value to not satisfy:
|
|
253
|
+
${r||o(t)}
|
|
254
|
+
Received:
|
|
255
|
+
${n(e)}`:`${i(".toSatisfy","received","")}
|
|
256
|
+
|
|
257
|
+
Expected value to satisfy:
|
|
258
|
+
${r||o(t)}
|
|
259
|
+
|
|
260
|
+
Received:
|
|
261
|
+
${n(e)}`,"message")}},toBeOneOf(e,t){let{equals:r,customTesters:n}=this,{printReceived:o,printExpected:i,matcherHint:s}=this.utils;if(!Array.isArray(t))throw new TypeError(`You must provide an array to ${s(".toBeOneOf")}, not '${typeof t}'.`);let l=t.length===0||t.some(c=>r(c,e,n));return{pass:l,message:a(()=>l?`${s(".not.toBeOneOf","received","")}
|
|
262
|
+
|
|
263
|
+
Expected value to not be one of:
|
|
264
|
+
${i(t)}
|
|
265
|
+
Received:
|
|
266
|
+
${o(e)}`:`${s(".toBeOneOf","received","")}
|
|
267
|
+
|
|
268
|
+
Expected value to be one of:
|
|
269
|
+
${i(t)}
|
|
270
|
+
|
|
271
|
+
Received:
|
|
272
|
+
${o(e)}`,"message")}}},Ts=Fe.green,jh=Fe.red,n5=Fe.inverse,o5=Fe.bold,Pr=Fe.dim;function kS(e,t="received",r="expected",n={}){let{comment:o="",isDirectExpectCall:i=!1,isNot:s=!1,promise:l="",secondArgument:c="",expectedColor:u=Ts,receivedColor:d=jh,secondArgumentColor:p=Ts}=n,h="",f="expect";return!i&&t!==""&&(h+=Pr(`${f}(`)+d(t),f=")"),l!==""&&(h+=Pr(`${f}.`)+l,f=""),s&&(h+=`${Pr(`${f}.`)}not`,f=""),e.includes(".")?f+=e:(h+=Pr(`${f}.`)+e,f=""),r===""?f+="()":(h+=Pr(`${f}(`)+u(r),c&&(h+=Pr(", ")+p(c)),f=")"),o!==""&&(f+=` // ${o}`),f!==""&&(h+=Pr(f)),h}a(kS,"matcherHint");var a5="·";function kh(e){return e.replace(/\s+$/gm,t=>a5.repeat(t.length))}a(kh,"replaceTrailingSpaces");function MS(e){return jh(kh(ct(e)))}a(MS,"printReceived");function $S(e){return Ts(kh(ct(e)))}a($S,"printExpected");function Mh(){return{EXPECTED_COLOR:Ts,RECEIVED_COLOR:jh,INVERTED_COLOR:n5,BOLD_WEIGHT:o5,DIM_COLOR:Pr,diff:Rn,matcherHint:kS,printReceived:MS,printExpected:$S,printDiffOrStringify:tf,printWithType:LS}}a(Mh,"getMatcherUtils");function LS(e,t,r){let n=Aa(t),o=n!=="null"&&n!=="undefined"?`${e} has type: ${n}
|
|
273
|
+
`:"",i=`${e} has value: ${r(t)}`;return o+i}a(LS,"printWithType");function eu(){return globalThis[La].customEqualityTesters}a(eu,"getCustomEqualityTesters");function Ee(e,t,r,n){return r=r||[],Zn(e,t,[],[],r,n?$h:BS)}a(Ee,"equals");function zc(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&At("Function",e.asymmetricMatch)}a(zc,"isAsymmetric");function DS(e,t){let r=zc(e),n=zc(t);if(!(r&&n)){if(r)return e.asymmetricMatch(t);if(n)return t.asymmetricMatch(e)}}a(DS,"asymmetricMatch");function Zn(e,t,r,n,o,i){let s=!0,l=DS(e,t);if(l!==void 0)return l;let c={equals:Ee};for(let m=0;m<o.length;m++){let b=o[m].call(c,e,t,o);if(b!==void 0)return b}if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;let u=Object.prototype.toString.call(e);if(u!==Object.prototype.toString.call(t))return!1;switch(u){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof e!=typeof t?!1:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case"[object Date]":{let m=+e,b=+t;return m===b||Number.isNaN(m)&&Number.isNaN(b)}case"[object RegExp]":return e.source===t.source&&e.flags===t.flags;case"[object Temporal.Instant]":case"[object Temporal.ZonedDateTime]":case"[object Temporal.PlainDateTime]":case"[object Temporal.PlainDate]":case"[object Temporal.PlainTime]":case"[object Temporal.PlainYearMonth]":case"[object Temporal.PlainMonthDay]":return e.equals(t);case"[object Temporal.Duration]":return e.toString()===t.toString()}if(typeof e!="object"||typeof t!="object")return!1;if(Gc(e)&&Gc(t))return e.isEqualNode(t);let d=r.length;for(;d--;){if(r[d]===e)return n[d]===t;if(n[d]===t)return!1}if(r.push(e),n.push(t),u==="[object Array]"&&e.length!==t.length)return!1;if(e instanceof Error&&t instanceof Error)try{return FS(e,t,r,n,o,i)}finally{r.pop(),n.pop()}let p=Wc(e,i),h,f=p.length;if(Wc(t,i).length!==f)return!1;for(;f--;)if(h=p[f],s=i(t,h)&&Zn(e[h],t[h],r,n,o,i),!s)return!1;return r.pop(),n.pop(),s}a(Zn,"eq");function FS(e,t,r,n,o,i){let s=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<"u"&&s&&(s=Zn(e.cause,t.cause,r,n,o,i)),e instanceof AggregateError&&t instanceof AggregateError&&s&&(s=Zn(e.errors,t.errors,r,n,o,i)),s&&(s=Zn({...e},{...t},r,n,o,i)),s}a(FS,"isErrorEqual");function Wc(e,t){let r=[];for(let n in e)t(e,n)&&r.push(n);return r.concat(Object.getOwnPropertySymbols(e).filter(n=>Object.getOwnPropertyDescriptor(e,n).enumerable))}a(Wc,"keys");function BS(e,t){return $h(e,t)&&e[t]!==void 0}a(BS,"hasDefinedKey");function $h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}a($h,"hasKey");function At(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}a(At,"isA");function Gc(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}a(Gc,"isDomNode");var US="@@__IMMUTABLE_KEYED__@@",HS="@@__IMMUTABLE_SET__@@",i5="@@__IMMUTABLE_LIST__@@",tu="@@__IMMUTABLE_ORDERED__@@",s5="@@__IMMUTABLE_RECORD__@@";function VS(e){return!!(e&&e[US]&&!e[tu])}a(VS,"isImmutableUnorderedKeyed");function JS(e){return!!(e&&e[HS]&&!e[tu])}a(JS,"isImmutableUnorderedSet");function yi(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}a(yi,"isObjectLiteral");function zS(e){return!!(e&&yi(e)&&e[i5])}a(zS,"isImmutableList");function WS(e){return!!(e&&yi(e)&&e[US]&&e[tu])}a(WS,"isImmutableOrderedKeyed");function GS(e){return!!(e&&yi(e)&&e[HS]&&e[tu])}a(GS,"isImmutableOrderedSet");function KS(e){return!!(e&&yi(e)&&e[s5])}a(KS,"isImmutableRecord");var YS=Symbol.iterator;function Kc(e){return!!(e!=null&&e[YS])}a(Kc,"hasIterator");function wt(e,t,r=[],n=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!Kc(e)||!Kc(t))return;if(e.constructor!==t.constructor)return!1;let i=n.length;for(;i--;)if(n[i]===e)return o[i]===t;n.push(e),o.push(t);let s=[...r.filter(u=>u!==wt),l];function l(u,d){return wt(u,d,[...r],[...n],[...o])}if(a(l,"iterableEqualityWithStack"),e.size!==void 0){if(e.size!==t.size)return!1;if(At("Set",e)||JS(e)){let u=!0;for(let d of e)if(!t.has(d)){let p=!1;for(let h of t)Ee(d,h,s)===!0&&(p=!0);if(p===!1){u=!1;break}}return n.pop(),o.pop(),u}else if(At("Map",e)||VS(e)){let u=!0;for(let d of e)if(!t.has(d[0])||!Ee(d[1],t.get(d[0]),s)){let p=!1;for(let h of t){let f=Ee(d[0],h[0],s),m=!1;f===!0&&(m=Ee(d[1],h[1],s)),m===!0&&(p=!0)}if(p===!1){u=!1;break}}return n.pop(),o.pop(),u}}let c=t[YS]();for(let u of e){let d=c.next();if(d.done||!Ee(u,d.value,s))return!1}if(!c.next().done)return!1;if(!zS(e)&&!WS(e)&&!GS(e)&&!KS(e)){let u=Object.entries(e),d=Object.entries(t);if(!Ee(u,d,s))return!1}return n.pop(),o.pop(),!0}a(wt,"iterableEquality");function ru(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||ru(Object.getPrototypeOf(e),t)}a(ru,"hasPropertyInObject");function XS(e){return ma(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}a(XS,"isObjectWithKeys");function jo(e,t,r=[]){let n=r.filter(i=>i!==jo),o=a((i=new WeakMap)=>(s,l)=>{if(XS(l))return Object.keys(l).every(c=>{if(l[c]!=null&&typeof l[c]=="object"){if(i.has(l[c]))return Ee(s[c],l[c],n);i.set(l[c],!0)}let u=s!=null&&ru(s,c)&&Ee(s[c],l[c],[...n,o(i)]);return i.delete(l[c]),u})},"subsetEqualityWithContext");return o()(e,t)}a(jo,"subsetEquality");function Yc(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}a(Yc,"typeEquality");function Xc(e,t){let r=e,n=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{r=new DataView(e),n=new DataView(t)}catch{return}}if(r.byteLength!==n.byteLength)return!1;for(let o=0;o<r.byteLength;o++)if(r.getUint8(o)!==n.getUint8(o))return!1;return!0}a(Xc,"arrayBufferEquality");function Ss(e,t,r=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let n=Object.keys(e),o=Object.keys(t),i=r.filter(s=>s!==Ss);return Ee(e,t,i,!0)&&Ee(n,o)}a(Ss,"sparseArrayEquality");function QS(e,t="#{this}",r="#{exp}"){let n=`expected ${t} to be ${r} // Object.is equality`;return["toStrictEqual","toEqual"].includes(e)?`${n}
|
|
274
|
+
|
|
275
|
+
If it should pass with deep equality, replace "toBe" with "${e}"
|
|
276
|
+
|
|
277
|
+
Expected: ${t}
|
|
278
|
+
Received: serializes to the same string
|
|
279
|
+
`:n}a(QS,"generateToBeMessage");function ZS(e,t){return`${t} ${e}${t===1?"":"s"}`}a(ZS,"pluralize");function Ni(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var r;return(r=Object.getOwnPropertyDescriptor(e,t))===null||r===void 0?void 0:r.enumerable})]}a(Ni,"getObjectKeys");function eC(e,t,r){let n=0,o=a((i=new WeakMap)=>(s,l)=>{if(Array.isArray(s)){if(Array.isArray(l)&&l.length===s.length)return l.map((c,u)=>o(i)(s[u],c))}else{if(s instanceof Date)return s;if(ma(s)&&ma(l)){if(Ee(s,l,[...r,wt,jo]))return l;let c={};i.set(s,c),typeof s.constructor=="function"&&typeof s.constructor.name=="string"&&Object.defineProperty(c,"constructor",{enumerable:!1,value:s.constructor});for(let u of Ni(s))ru(l,u)?c[u]=i.has(s[u])?i.get(s[u]):o(i)(s[u],l[u]):i.has(s[u])||(n+=1,ma(s[u])&&(n+=Ni(s[u]).length),o(i)(s[u],l[u]));if(Ni(c).length>0)return c}}return s},"getObjectSubsetWithContext");return{subset:o()(e,t),stripped:n}}a(eC,"getObjectSubset");if(!Object.prototype.hasOwnProperty.call(globalThis,$a)){let e=new WeakMap;Object.defineProperty(globalThis,$a,{get:a(()=>e,"get")})}if(!Object.prototype.hasOwnProperty.call(globalThis,La)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,La,{configurable:!0,get:a(()=>({state:globalThis[$a].get(globalThis[Ih]),matchers:e,customEqualityTesters:t}),"get")})}if(!Object.prototype.hasOwnProperty.call(globalThis,Jc)){let e=Object.create(null);Object.defineProperty(globalThis,Jc,{get:a(()=>e,"get")})}function Da(e){return globalThis[$a].get(e)}a(Da,"getState");function Ii(e,t){let r=globalThis[$a],n=r.get(t)||{},o=Object.defineProperties(n,{...Object.getOwnPropertyDescriptors(n),...Object.getOwnPropertyDescriptors(e)});r.set(t,o)}a(Ii,"setState");var tC=class{$$typeof=Symbol.for("jest.asymmetricMatcher");constructor(t,r=!1){this.sample=t,this.inverse=r}getMatcherContext(t){return{...Da(t||globalThis[Ih]),equals:Ee,isNot:this.inverse,customTesters:eu(),utils:{...Mh(),diff:Rn,stringify:ct,iterableEquality:wt,subsetEquality:jo}}}};a(tC,"AsymmetricMatcher");var wr=tC;wr.prototype[Symbol.for("chai/inspect")]=function(e){let t=ct(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};var rC=class extends wr{constructor(t,r=!1){if(!At("String",t))throw new Error("Expected is not a string");super(t,r)}asymmetricMatch(t){let r=At("String",t)&&t.includes(this.sample);return this.inverse?!r:r}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}};a(rC,"StringContaining");var Cb=rC,nC=class extends wr{asymmetricMatch(t){return t!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}};a(nC,"Anything");var l5=nC,oC=class extends wr{constructor(t,r=!1){super(t,r)}getPrototype(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.constructor.prototype===t?null:t.constructor.prototype}hasProperty(t,r){return t?Object.prototype.hasOwnProperty.call(t,r)?!0:this.hasProperty(this.getPrototype(t),r):!1}asymmetricMatch(t){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let r=!0,n=this.getMatcherContext();for(let o in this.sample)if(!this.hasProperty(t,o)||!Ee(this.sample[o],t[o],n.customTesters)){r=!1;break}return this.inverse?!r:r}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}};a(oC,"ObjectContaining");var Pb=oC,aC=class extends wr{constructor(t,r=!1){super(t,r)}asymmetricMatch(t){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let r=this.getMatcherContext(),n=this.sample.length===0||Array.isArray(t)&&this.sample.every(o=>t.some(i=>Ee(o,i,r.customTesters)));return this.inverse?!n:n}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}};a(aC,"ArrayContaining");var Ob=aC,iC=class extends wr{constructor(t){if(typeof t>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(t)}fnNameFor(t){if(t.name)return t.name;let r=Function.prototype.toString.call(t).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return r?r[1]:"<anonymous>"}asymmetricMatch(t){return this.sample===String?typeof t=="string"||t instanceof String:this.sample===Number?typeof t=="number"||t instanceof Number:this.sample===Function?typeof t=="function"||typeof t=="function":this.sample===Boolean?typeof t=="boolean"||t instanceof Boolean:this.sample===BigInt?typeof t=="bigint"||t instanceof BigInt:this.sample===Symbol?typeof t=="symbol"||t instanceof Symbol:this.sample===Object?typeof t=="object":t instanceof this.sample}toString(){return"Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return`Any<${this.fnNameFor(this.sample)}>`}};a(iC,"Any");var u5=iC,sC=class extends wr{constructor(t,r=!1){if(!At("String",t)&&!At("RegExp",t))throw new Error("Expected is not a String or a RegExp");super(new RegExp(t),r)}asymmetricMatch(t){let r=At("String",t)&&this.sample.test(t);return this.inverse?!r:r}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}};a(sC,"StringMatching");var _b=sC,lC=class extends wr{precision;constructor(t,r=2,n=!1){if(!At("Number",t))throw new Error("Expected is not a Number");if(!At("Number",r))throw new Error("Precision is not a Number");super(t),this.inverse=n,this.precision=r}asymmetricMatch(t){if(!At("Number",t))return!1;let r=!1;return t===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?r=!0:r=Math.abs(this.sample-t)<10**-this.precision/2,this.inverse?!r:r}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${ZS("digit",this.precision)})`].join(" ")}};a(lC,"CloseTo");var Ab=lC,c5=a((e,t)=>{t.addMethod(e.expect,"anything",()=>new l5),t.addMethod(e.expect,"any",r=>new u5(r)),t.addMethod(e.expect,"stringContaining",r=>new Cb(r)),t.addMethod(e.expect,"objectContaining",r=>new Pb(r)),t.addMethod(e.expect,"arrayContaining",r=>new Ob(r)),t.addMethod(e.expect,"stringMatching",r=>new _b(r)),t.addMethod(e.expect,"closeTo",(r,n)=>new Ab(r,n)),e.expect.not={stringContaining:a(r=>new Cb(r,!0),"stringContaining"),objectContaining:a(r=>new Pb(r,!0),"objectContaining"),arrayContaining:a(r=>new Ob(r,!0),"arrayContaining"),stringMatching:a(r=>new _b(r,!0),"stringMatching"),closeTo:a((r,n)=>new Ab(r,n,!0),"closeTo")}},"JestAsymmetricMatchers");function Qc(e,t,r){let n=e.flag(t,"negate")?"not.":"",o=`${e.flag(t,"_name")}(${r?"expected":""})`,i=e.flag(t,"promise");return`expect(actual)${i?`.${i}`:""}.${n}${o}`}a(Qc,"createAssertionMessage");function Zc(e,t,r,n){let o=e;if(o&&t instanceof Promise){t=t.finally(()=>{if(!o.promises)return;let s=o.promises.indexOf(t);s!==-1&&o.promises.splice(s,1)}),o.promises||(o.promises=[]),o.promises.push(t);let i=!1;return o.onFinished??(o.onFinished=[]),o.onFinished.push(()=>{if(!i){var s;let l=(((s=globalThis.__vitest_worker__)===null||s===void 0?void 0:s.onFilterStackTrace)||(c=>c||""))(n.stack);console.warn([`Promise returned by \`${r}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",`Please remember to await the assertion.
|
|
280
|
+
`,l].join(""))}}),{then(s,l){return i=!0,t.then(s,l)},catch(s){return t.catch(s)},finally(s){return t.finally(s)},[Symbol.toStringTag]:"Promise"}}return t}a(Zc,"recordAsyncExpect");function ed(e,t){var r;e.result||(e.result={state:"fail"}),e.result.state="fail",(r=e.result).errors||(r.errors=[]),e.result.errors.push(yl(t))}a(ed,"handleTestError");function Lh(e,t,r){return function(...n){if(t!=="withTest"&&e.flag(this,"_name",t),!e.flag(this,"soft"))return r.apply(this,n);let o=e.flag(this,"vitest-test");if(!o)throw new Error("expect.soft() can only be used inside a test");try{let i=r.apply(this,n);return i&&typeof i=="object"&&typeof i.then=="function"?i.then(ox,s=>{ed(o,s)}):i}catch(i){ed(o,i)}}}a(Lh,"wrapAssertion");var d5=a((e,t)=>{let{AssertionError:r}=e,n=eu();function o(u,d){let p=a(h=>{let f=Lh(t,h,d);t.addMethod(e.Assertion.prototype,h,f),t.addMethod(globalThis[La].matchers,h,f)},"addMethod");Array.isArray(u)?u.forEach(h=>p(h)):p(u)}a(o,"def"),["throw","throws","Throw"].forEach(u=>{t.overwriteMethod(e.Assertion.prototype,u,d=>function(...p){let h=t.flag(this,"promise"),f=t.flag(this,"object"),m=t.flag(this,"negate");if(h==="rejects")t.flag(this,"object",()=>{throw f});else if(h==="resolves"&&typeof f!="function"){if(m)return;{let b=t.flag(this,"message")||"expected promise to throw an error, but it didn't",g={showDiff:!1};throw new r(b,g,t.flag(this,"ssfi"))}}d.apply(this,p)})}),o("withTest",function(u){return t.flag(this,"vitest-test",u),this}),o("toEqual",function(u){let d=t.flag(this,"object"),p=Ee(d,u,[...n,wt]);return this.assert(p,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",u,d)}),o("toStrictEqual",function(u){let d=t.flag(this,"object"),p=Ee(d,u,[...n,wt,Yc,Ss,Xc],!0);return this.assert(p,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",u,d)}),o("toBe",function(u){let d=this._obj,p=Object.is(d,u),h="";return p||(Ee(d,u,[...n,wt,Yc,Ss,Xc],!0)?h="toStrictEqual":Ee(d,u,[...n,wt])&&(h="toEqual")),this.assert(p,QS(h),"expected #{this} not to be #{exp} // Object.is equality",u,d)}),o("toMatchObject",function(u){let d=this._obj,p=Ee(d,u,[...n,wt,jo]),h=t.flag(this,"negate"),{subset:f,stripped:m}=eC(d,u,n);if(p&&h||!p&&!h){let b=t.getMessage(this,[p,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",u,f,!1]),g=m===0?b:`${b}
|
|
281
|
+
(${m} matching ${m===1?"property":"properties"} omitted from actual)`;throw new r(g,{showDiff:!0,expected:u,actual:f})}}),o("toMatch",function(u){let d=this._obj;if(typeof d!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof d}`);return this.assert(typeof u=="string"?d.includes(u):d.match(u),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",u,d)}),o("toContain",function(u){let d=this._obj;if(typeof Node<"u"&&d instanceof Node){if(!(u instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof u}`);return this.assert(d.contains(u),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",u,d)}if(typeof DOMTokenList<"u"&&d instanceof DOMTokenList){Vt(u,"class name",["string"]);let p=t.flag(this,"negate")?d.value.replace(u,"").trim():`${d.value} ${u}`;return this.assert(d.contains(u),`expected "${d.value}" to contain "${u}"`,`expected "${d.value}" not to contain "${u}"`,p,d.value)}return typeof d=="string"&&typeof u=="string"?this.assert(d.includes(u),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",u,d):(d!=null&&typeof d!="string"&&t.flag(this,"object",Array.from(d)),this.contain(u))}),o("toContainEqual",function(u){let d=t.flag(this,"object"),p=Array.from(d).findIndex(h=>Ee(h,u,n));this.assert(p!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",u)}),o("toBeTruthy",function(){let u=t.flag(this,"object");this.assert(!!u,"expected #{this} to be truthy","expected #{this} to not be truthy",!0,u)}),o("toBeFalsy",function(){let u=t.flag(this,"object");this.assert(!u,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,u)}),o("toBeGreaterThan",function(u){let d=this._obj;return Vt(d,"actual",["number","bigint"]),Vt(u,"expected",["number","bigint"]),this.assert(d>u,`expected ${d} to be greater than ${u}`,`expected ${d} to be not greater than ${u}`,u,d,!1)}),o("toBeGreaterThanOrEqual",function(u){let d=this._obj;return Vt(d,"actual",["number","bigint"]),Vt(u,"expected",["number","bigint"]),this.assert(d>=u,`expected ${d} to be greater than or equal to ${u}`,`expected ${d} to be not greater than or equal to ${u}`,u,d,!1)}),o("toBeLessThan",function(u){let d=this._obj;return Vt(d,"actual",["number","bigint"]),Vt(u,"expected",["number","bigint"]),this.assert(d<u,`expected ${d} to be less than ${u}`,`expected ${d} to be not less than ${u}`,u,d,!1)}),o("toBeLessThanOrEqual",function(u){let d=this._obj;return Vt(d,"actual",["number","bigint"]),Vt(u,"expected",["number","bigint"]),this.assert(d<=u,`expected ${d} to be less than or equal to ${u}`,`expected ${d} to be not less than or equal to ${u}`,u,d,!1)}),o("toBeNaN",function(){let u=t.flag(this,"object");this.assert(Number.isNaN(u),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,u)}),o("toBeUndefined",function(){let u=t.flag(this,"object");this.assert(u===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,u)}),o("toBeNull",function(){let u=t.flag(this,"object");this.assert(u===null,"expected #{this} to be null","expected #{this} not to be null",null,u)}),o("toBeDefined",function(){let u=t.flag(this,"object");this.assert(typeof u<"u","expected #{this} to be defined","expected #{this} to be undefined",u)}),o("toBeTypeOf",function(u){let d=typeof this._obj,p=u===d;return this.assert(p,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",u,d)}),o("toBeInstanceOf",function(u){return this.instanceOf(u)}),o("toHaveLength",function(u){return this.have.length(u)}),o("toHaveProperty",function(...u){Array.isArray(u[0])&&(u[0]=u[0].map(w=>String(w).replace(/([.[\]])/g,"\\$1")).join("."));let d=this._obj,[p,h]=u,f=a(()=>Object.prototype.hasOwnProperty.call(d,p)?{value:d[p],exists:!0}:t.getPathInfo(d,p),"getValue"),{value:m,exists:b}=f(),g=b&&(u.length===1||Ee(h,m,n)),v=u.length===1?"":` with value ${t.objDisplay(h)}`;return this.assert(g,`expected #{this} to have property "${p}"${v}`,`expected #{this} to not have property "${p}"${v}`,h,b?m:void 0)}),o("toBeCloseTo",function(u,d=2){let p=this._obj,h=!1,f=0,m=0;return u===Number.POSITIVE_INFINITY&&p===Number.POSITIVE_INFINITY||u===Number.NEGATIVE_INFINITY&&p===Number.NEGATIVE_INFINITY?h=!0:(f=10**-d/2,m=Math.abs(p-u),h=m<f),this.assert(h,`expected #{this} to be close to #{exp}, received difference is ${m}, but expected ${f}`,`expected #{this} to not be close to #{exp}, received difference is ${m}, but expected ${f}`,u,p,!1)});function i(u){if(!dn(u._obj))throw new TypeError(`${t.inspect(u._obj)} is not a spy or a call to a spy!`)}a(i,"assertIsMock");function s(u){return i(u),u._obj}a(s,"getSpy"),o(["toHaveBeenCalledTimes","toBeCalledTimes"],function(u){let d=s(this),p=d.getMockName(),h=d.mock.calls.length;return this.assert(h===u,`expected "${p}" to be called #{exp} times, but got ${h} times`,`expected "${p}" to not be called #{exp} times`,u,h,!1)}),o("toHaveBeenCalledOnce",function(){let u=s(this),d=u.getMockName(),p=u.mock.calls.length;return this.assert(p===1,`expected "${d}" to be called once, but got ${p} times`,`expected "${d}" to not be called once`,1,p,!1)}),o(["toHaveBeenCalled","toBeCalled"],function(){let u=s(this),d=u.getMockName(),p=u.mock.calls.length,h=p>0,f=t.flag(this,"negate"),m=t.getMessage(this,[h,`expected "${d}" to be called at least once`,`expected "${d}" to not be called at all, but actually been called ${p} times`,!0,h]);if(h&&f&&(m=ji(u,m)),h&&f||!h&&!f)throw new r(m)});function l(u,d){return u.length===d.length&&u.every((p,h)=>Ee(p,d[h],[...n,wt]))}a(l,"equalsArgumentArray"),o(["toHaveBeenCalledWith","toBeCalledWith"],function(...u){let d=s(this),p=d.getMockName(),h=d.mock.calls.some(b=>l(b,u)),f=t.flag(this,"negate"),m=t.getMessage(this,[h,`expected "${p}" to be called with arguments: #{exp}`,`expected "${p}" to not be called with arguments: #{exp}`,u]);if(h&&f||!h&&!f)throw new r(ji(d,m,u))}),o("toHaveBeenCalledExactlyOnceWith",function(...u){let d=s(this),p=d.getMockName(),h=d.mock.calls.length,f=d.mock.calls.some(g=>l(g,u))&&h===1,m=t.flag(this,"negate"),b=t.getMessage(this,[f,`expected "${p}" to be called once with arguments: #{exp}`,`expected "${p}" to not be called once with arguments: #{exp}`,u]);if(f&&m||!f&&!m)throw new r(ji(d,b,u))}),o(["toHaveBeenNthCalledWith","nthCalledWith"],function(u,...d){let p=s(this),h=p.getMockName(),f=p.mock.calls[u-1],m=p.mock.calls.length,b=u<=m;this.assert(f&&l(f,d),`expected ${eo(u)} "${h}" call to have been called with #{exp}${b?"":`, but called only ${m} times`}`,`expected ${eo(u)} "${h}" call to not have been called with #{exp}`,d,f,b)}),o(["toHaveBeenLastCalledWith","lastCalledWith"],function(...u){let d=s(this),p=d.getMockName(),h=d.mock.calls[d.mock.calls.length-1];this.assert(h&&l(h,u),`expected last "${p}" call to have been called with #{exp}`,`expected last "${p}" call to not have been called with #{exp}`,u,h)});function c(u,d,p){let h=u.mock.invocationCallOrder,f=d.mock.invocationCallOrder;return h.length===0?!p:f.length===0?!1:h[0]<f[0]}a(c,"isSpyCalledBeforeAnotherSpy"),o(["toHaveBeenCalledBefore"],function(u,d=!0){let p=s(this);if(!dn(u))throw new TypeError(`${t.inspect(u)} is not a spy or a call to a spy`);this.assert(c(p,u,d),`expected "${p.getMockName()}" to have been called before "${u.getMockName()}"`,`expected "${p.getMockName()}" to not have been called before "${u.getMockName()}"`,u,p)}),o(["toHaveBeenCalledAfter"],function(u,d=!0){let p=s(this);if(!dn(u))throw new TypeError(`${t.inspect(u)} is not a spy or a call to a spy`);this.assert(c(u,p,d),`expected "${p.getMockName()}" to have been called after "${u.getMockName()}"`,`expected "${p.getMockName()}" to not have been called after "${u.getMockName()}"`,u,p)}),o(["toThrow","toThrowError"],function(u){if(typeof u=="string"||typeof u>"u"||u instanceof RegExp)return this.throws(u===""?/^$/:u);let d=this._obj,p=t.flag(this,"promise"),h=t.flag(this,"negate"),f=null;if(p==="rejects")f=d;else if(p==="resolves"&&typeof d!="function"){if(h)return;{let m=t.flag(this,"message")||"expected promise to throw an error, but it didn't",b={showDiff:!1};throw new r(m,b,t.flag(this,"ssfi"))}}else{let m=!1;try{d()}catch(b){m=!0,f=b}if(!m&&!h){let b=t.flag(this,"message")||"expected function to throw an error, but it didn't",g={showDiff:!1};throw new r(b,g,t.flag(this,"ssfi"))}}if(typeof u=="function"){let m=u.name||u.prototype.constructor.name;return this.assert(f&&f instanceof u,`expected error to be instance of ${m}`,`expected error not to be instance of ${m}`,u,f)}if(u instanceof Error){let m=Ee(f,u,[...n,wt]);return this.assert(m,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",u,f)}if(typeof u=="object"&&"asymmetricMatch"in u&&typeof u.asymmetricMatch=="function"){let m=u;return this.assert(f&&m.asymmetricMatch(f),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",m,f)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof u}"`)}),[{name:"toHaveResolved",condition:a(u=>u.mock.settledResults.length>0&&u.mock.settledResults.some(({type:d})=>d==="fulfilled"),"condition"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:a(u=>u.mock.calls.length>0&&u.mock.results.some(({type:d})=>d!=="throw"),"condition"),action:"called"}].forEach(({name:u,condition:d,action:p})=>{o(u,function(){let h=s(this),f=h.getMockName(),m=d(h);this.assert(m,`expected "${f}" to be successfully ${p} at least once`,`expected "${f}" to not be successfully ${p}`,m,!m,!1)})}),[{name:"toHaveResolvedTimes",condition:a((u,d)=>u.mock.settledResults.reduce((p,{type:h})=>h==="fulfilled"?++p:p,0)===d,"condition"),action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:a((u,d)=>u.mock.results.reduce((p,{type:h})=>h==="throw"?p:++p,0)===d,"condition"),action:"called"}].forEach(({name:u,condition:d,action:p})=>{o(u,function(h){let f=s(this),m=f.getMockName(),b=d(f,h);this.assert(b,`expected "${m}" to be successfully ${p} ${h} times`,`expected "${m}" to not be successfully ${p} ${h} times`,`expected resolved times: ${h}`,`received resolved times: ${b}`,!1)})}),[{name:"toHaveResolvedWith",condition:a((u,d)=>u.mock.settledResults.some(({type:p,value:h})=>p==="fulfilled"&&Ee(d,h)),"condition"),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:a((u,d)=>u.mock.results.some(({type:p,value:h})=>p==="return"&&Ee(d,h)),"condition"),action:"return"}].forEach(({name:u,condition:d,action:p})=>{o(u,function(h){let f=s(this),m=d(f,h),b=t.flag(this,"negate");if(m&&b||!m&&!b){let g=f.getMockName(),v=t.getMessage(this,[m,`expected "${g}" to ${p} with: #{exp} at least once`,`expected "${g}" to not ${p} with: #{exp}`,h]),w=p==="return"?f.mock.results:f.mock.settledResults;throw new r(uC(f,w,v,h))}})}),[{name:"toHaveLastResolvedWith",condition:a((u,d)=>{let p=u.mock.settledResults[u.mock.settledResults.length-1];return p&&p.type==="fulfilled"&&Ee(p.value,d)},"condition"),action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:a((u,d)=>{let p=u.mock.results[u.mock.results.length-1];return p&&p.type==="return"&&Ee(p.value,d)},"condition"),action:"return"}].forEach(({name:u,condition:d,action:p})=>{o(u,function(h){let f=s(this),m=p==="return"?f.mock.results:f.mock.settledResults,b=m[m.length-1],g=f.getMockName();this.assert(d(f,h),`expected last "${g}" call to ${p} #{exp}`,`expected last "${g}" call to not ${p} #{exp}`,h,b?.value)})}),[{name:"toHaveNthResolvedWith",condition:a((u,d,p)=>{let h=u.mock.settledResults[d-1];return h&&h.type==="fulfilled"&&Ee(h.value,p)},"condition"),action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:a((u,d,p)=>{let h=u.mock.results[d-1];return h&&h.type==="return"&&Ee(h.value,p)},"condition"),action:"return"}].forEach(({name:u,condition:d,action:p})=>{o(u,function(h,f){let m=s(this),b=m.getMockName(),g=(p==="return"?m.mock.results:m.mock.settledResults)[h-1],v=`${eo(h)} call`;this.assert(d(m,h,f),`expected ${v} "${b}" call to ${p} #{exp}`,`expected ${v} "${b}" call to not ${p} #{exp}`,f,g?.value)})}),o("withContext",function(u){for(let d in u)t.flag(this,d,u[d]);return this}),t.addProperty(e.Assertion.prototype,"resolves",a(function(){let u=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",u);let d=t.flag(this,"vitest-test"),p=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof p?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof p}'.`);let h=new Proxy(this,{get:a((f,m,b)=>{let g=Reflect.get(f,m,b);return typeof g!="function"?g instanceof e.Assertion?h:g:(...v)=>{t.flag(this,"_name",m);let w=p.then(P=>(t.flag(this,"object",P),g.call(this,...v)),P=>{let A=new r(`promise rejected "${t.inspect(P)}" instead of resolving`,{showDiff:!1});throw A.cause=P,A.stack=u.stack.replace(u.message,A.message),A});return Zc(d,w,Qc(t,this,!!v.length),u)}},"get")});return h},"__VITEST_RESOLVES__")),t.addProperty(e.Assertion.prototype,"rejects",a(function(){let u=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",u);let d=t.flag(this,"vitest-test"),p=t.flag(this,"object"),h=typeof p=="function"?p():p;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof h?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof h}'.`);let f=new Proxy(this,{get:a((m,b,g)=>{let v=Reflect.get(m,b,g);return typeof v!="function"?v instanceof e.Assertion?f:v:(...w)=>{t.flag(this,"_name",b);let P=h.then(A=>{let R=new r(`promise resolved "${t.inspect(A)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:A});throw R.stack=u.stack.replace(u.message,R.message),R},A=>(t.flag(this,"object",A),v.call(this,...w)));return Zc(d,P,Qc(t,this,!!w.length),u)}},"get")});return f},"__VITEST_REJECTS__"))},"JestChaiExpect");function eo(e){let t=e%10,r=e%100;return t===1&&r!==11?`${e}st`:t===2&&r!==12?`${e}nd`:t===3&&r!==13?`${e}rd`:`${e}th`}a(eo,"ordinalOf");function ji(e,t,r){return e.mock.calls.length&&(t+=Fe.gray(`
|
|
282
|
+
|
|
283
|
+
Received:
|
|
284
|
+
|
|
285
|
+
${e.mock.calls.map((n,o)=>{let i=Fe.bold(` ${eo(o+1)} ${e.getMockName()} call:
|
|
286
|
+
|
|
287
|
+
`);return r?i+=Rn(r,n,{omitAnnotationLines:!0}):i+=ct(n).split(`
|
|
288
|
+
`).map(s=>` ${s}`).join(`
|
|
289
|
+
`),i+=`
|
|
290
|
+
`,i}).join(`
|
|
291
|
+
`)}`)),t+=Fe.gray(`
|
|
292
|
+
|
|
293
|
+
Number of calls: ${Fe.bold(e.mock.calls.length)}
|
|
294
|
+
`),t}a(ji,"formatCalls");function uC(e,t,r,n){return t.length&&(r+=Fe.gray(`
|
|
295
|
+
|
|
296
|
+
Received:
|
|
297
|
+
|
|
298
|
+
${t.map((o,i)=>{let s=Fe.bold(` ${eo(i+1)} ${e.getMockName()} call return:
|
|
299
|
+
|
|
300
|
+
`);return n?s+=Rn(n,o.value,{omitAnnotationLines:!0}):s+=ct(o).split(`
|
|
301
|
+
`).map(l=>` ${l}`).join(`
|
|
302
|
+
`),s+=`
|
|
303
|
+
`,s}).join(`
|
|
304
|
+
`)}`)),r+=Fe.gray(`
|
|
305
|
+
|
|
306
|
+
Number of calls: ${Fe.bold(e.mock.calls.length)}
|
|
307
|
+
`),r}a(uC,"formatReturns");function cC(e,t){let r=e._obj,n=zt.flag(e,"negate"),o=zt.flag(e,"promise")||"",i={...Mh(),diff:Rn,stringify:ct,iterableEquality:wt,subsetEquality:jo};return{state:{...Da(t),customTesters:eu(),isNot:n,utils:i,promise:o,equals:Ee,suppressedErrors:[],soft:zt.flag(e,"soft"),poll:zt.flag(e,"poll")},isNot:n,obj:r}}a(cC,"getMatcherState");var dC=class extends Error{constructor(t,r,n){super(t),this.actual=r,this.expected=n}};a(dC,"JestExtendError");var Rb=dC;function pC(e,t,r){return(n,o)=>{Object.entries(r).forEach(([i,s])=>{function l(...h){let{state:f,isNot:m,obj:b}=cC(this,t),g=s.call(f,b,...h);if(g&&typeof g=="object"&&typeof g.then=="function")return g.then(({pass:R,message:T,actual:E,expected:x})=>{if(R&&m||!R&&!m)throw new Rb(T(),E,x)});let{pass:v,message:w,actual:P,expected:A}=g;if(v&&m||!v&&!m)throw new Rb(w(),P,A)}a(l,"expectWrapper");let c=Lh(o,i,l);o.addMethod(globalThis[La].matchers,i,c),o.addMethod(e.Assertion.prototype,i,c);let u=class extends wr{constructor(f=!1,...m){super(m,f)}asymmetricMatch(f){let{pass:m}=s.call(this.getMatcherContext(t),f,...this.sample);return this.inverse?!m:m}toString(){return`${this.inverse?"not.":""}${i}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(f=>ct(f)).join(", ")}>`}};a(u,"CustomMatcher");let d=u,p=a((...h)=>new d(!1,...h),"customMatcher");Object.defineProperty(t,i,{configurable:!0,enumerable:!0,value:p,writable:!0}),Object.defineProperty(t.not,i,{configurable:!0,enumerable:!0,value:a((...h)=>new d(!0,...h),"value"),writable:!0}),Object.defineProperty(globalThis[Jc],i,{configurable:!0,enumerable:!0,value:p,writable:!0})})}}a(pC,"JestExtendPlugin");var p5=a((e,t)=>{t.addMethod(e.expect,"extend",(r,n)=>{un(pC(e,r,n))})},"JestExtend");function fC(){un(p5),un(d5),un(c5);let e=a((n,o)=>{let{assertionCalls:i}=Da(e);return Ii({assertionCalls:i+1,soft:!1},e),kr(n,o)},"expect");Object.assign(e,kr),e.getState=()=>Da(e),e.setState=n=>Ii(n,e),e.extend=n=>kr.extend(e,n),e.soft=(...n)=>{let o=e(...n);return e.setState({soft:!0}),o},e.extend(r5),e.unreachable=n=>{I.fail(`expected${n?` "${n}" `:" "}not to be reached`)};function t(n){let o=a(()=>new Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`),"errorGen");"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:o})}a(t,"assertions");function r(){let n=new Error("expected any number of assertion, but got none");"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(n,r),e.setState({isExpectingAssertions:!0,isExpectingAssertionsError:n})}return a(r,"hasAssertions"),Ii({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),zt.addMethod(e,"assertions",t),zt.addMethod(e,"hasAssertions",r),e.extend(Jx),e}a(fC,"createExpect");var hC=fC();Object.defineProperty(globalThis,Ih,{value:hC,writable:!0,configurable:!0});function mC(e,t,r){Object.defineProperty(e,t,r)}a(mC,"f");var ki=Symbol.for("tinyspy:spy"),f5=a(e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},"P"),h5=a(e=>(mC(e,ki,{value:{reset:a(()=>f5(e[ki]),"reset")}}),e[ki]),"K"),m5=a(e=>e[ki]||h5(e),"T"),td=new Set;function Dh(e){return td.add(e),()=>void td.delete(e)}a(Dh,"onMockCall");var y5=a((...e)=>{let t=IS(...e);return Bh(t)},"spyOn");function Fh(e){let t=e?Vc(e):Vc();return Bh(t)}a(Fh,"fn");function Bh(e){let t=rd(e),r=t.mockImplementation.bind(null);return t.mockImplementation=n=>rd(r(n)),t}a(Bh,"reactiveMock");function rd(e){let t=m5(e),r=t.impl;return t.willCall(function(...n){return td.forEach(o=>o(e,n)),r?.apply(this,n)}),e}a(rd,"listenWhenCalled");function Uh(){mi.forEach(e=>e.mockClear())}a(Uh,"clearAllMocks");function Hh(){mi.forEach(e=>e.mockReset())}a(Hh,"resetAllMocks");function Vh(){mi.forEach(e=>e.mockRestore())}a(Vh,"restoreAllMocks");function yC(e,t={}){return e}a(yC,"mocked");var bC={};ut(bC,{buildQueries:()=>er,configure:()=>mP,createEvent:()=>va,findAllByAltText:()=>uO,findAllByDisplayValue:()=>nO,findAllByLabelText:()=>MP,findAllByPlaceholderText:()=>JP,findAllByRole:()=>TO,findAllByTestId:()=>AO,findAllByText:()=>XP,findAllByTitle:()=>mO,findByAltText:()=>cO,findByDisplayValue:()=>oO,findByLabelText:()=>$P,findByPlaceholderText:()=>zP,findByRole:()=>SO,findByTestId:()=>RO,findByText:()=>QP,findByTitle:()=>yO,fireEvent:()=>bo,getAllByAltText:()=>sO,getAllByDisplayValue:()=>tO,getAllByLabelText:()=>LP,getAllByPlaceholderText:()=>HP,getAllByRole:()=>EO,getAllByTestId:()=>OO,getAllByText:()=>KP,getAllByTitle:()=>fO,getByAltText:()=>lO,getByDisplayValue:()=>rO,getByLabelText:()=>DP,getByPlaceholderText:()=>VP,getByRole:()=>xO,getByTestId:()=>_O,getByText:()=>YP,getByTitle:()=>hO,getConfig:()=>ve,getDefaultNormalizer:()=>au,getElementError:()=>gi,getMultipleElementsFoundError:()=>vi,getNodeText:()=>ko,getQueriesForElement:()=>Os,getRoles:()=>cm,getSuggestedQuery:()=>Ba,isInaccessible:()=>bi,logDOM:()=>ud,logRoles:()=>D5,makeFindQuery:()=>gn,makeGetAllQuery:()=>lu,makeSingleQuery:()=>bn,prettyDOM:()=>yo,prettyFormat:()=>Jh,queries:()=>Ps,queryAllByAltText:()=>aO,queryAllByAttribute:()=>Wr,queryAllByDisplayValue:()=>ZP,queryAllByLabelText:()=>FP,queryAllByPlaceholderText:()=>BP,queryAllByRole:()=>vO,queryAllByTestId:()=>CO,queryAllByText:()=>WP,queryAllByTitle:()=>dO,queryByAltText:()=>iO,queryByAttribute:()=>pm,queryByDisplayValue:()=>eO,queryByLabelText:()=>jP,queryByPlaceholderText:()=>UP,queryByRole:()=>wO,queryByTestId:()=>PO,queryByText:()=>GP,queryByTitle:()=>pO,queryHelpers:()=>F5,screen:()=>i3,waitFor:()=>su,waitForElementToBeRemoved:()=>NO,within:()=>Os,wrapAllByQueryWithSuggestion:()=>dt,wrapSingleQueryWithSuggestion:()=>$r});var Jh=He(wM()),b5=Object.prototype.toString;function nd(e){return typeof e=="function"||b5.call(e)==="[object Function]"}a(nd,"isCallable");function gC(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}a(gC,"toInteger");var g5=Math.pow(2,53)-1;function vC(e){var t=gC(e);return Math.min(Math.max(t,0),g5)}a(vC,"toLength");function _t(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof t<"u"&&!nd(t))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var o=vC(n.length),i=nd(r)?Object(new r(o)):new Array(o),s=0,l;s<o;)l=n[s],t?i[s]=t(l,s):i[s]=l,s+=1;return i.length=o,i}a(_t,"arrayFrom");function ho(e){"@babel/helpers - typeof";return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(e)}a(ho,"_typeof");function wC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}a(wC,"_classCallCheck");function od(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zh(n.key),n)}}a(od,"_defineProperties");function EC(e,t,r){return t&&od(e.prototype,t),r&&od(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}a(EC,"_createClass");function xC(e,t,r){return t=zh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a(xC,"_defineProperty");function zh(e){var t=TC(e,"string");return ho(t)==="symbol"?t:String(t)}a(zh,"_toPropertyKey");function TC(e,t){if(ho(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ho(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}a(TC,"_toPrimitive");var v5=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];wC(this,e),xC(this,"items",void 0),this.items=t}return a(e,"SetLike"),EC(e,[{key:"add",value:a(function(t){return this.has(t)===!1&&this.items.push(t),this},"add")},{key:"clear",value:a(function(){this.items=[]},"clear")},{key:"delete",value:a(function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length},"_delete")},{key:"forEach",value:a(function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})},"forEach")},{key:"has",value:a(function(t){return this.items.indexOf(t)!==-1},"has")},{key:"size",get:a(function(){return this.items.length},"get")}]),e})(),w5=typeof Set>"u"?Set:v5;function tt(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}a(tt,"getLocalName");var E5={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},x5={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function SC(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=x5[t])!==null&&n!==void 0&&n.has(r))})}a(SC,"hasGlobalAriaAttributes");function Wh(e,t){return SC(e,t)}a(Wh,"ignorePresentationalRole");function CC(e){var t=OC(e);if(t===null||t==="presentation"){var r=PC(e);if(t!=="presentation"||Wh(e,r||""))return r}return t}a(CC,"getRole");function PC(e){var t=E5[tt(e)];if(t!==void 0)return t;switch(tt(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!Wh(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}a(PC,"getImplicitRole");function OC(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}a(OC,"getExplicitRole");function qe(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}a(qe,"isElement");function Gh(e){return qe(e)&&tt(e)==="caption"}a(Gh,"isHTMLTableCaptionElement");function ga(e){return qe(e)&&tt(e)==="input"}a(ga,"isHTMLInputElement");function _C(e){return qe(e)&&tt(e)==="optgroup"}a(_C,"isHTMLOptGroupElement");function AC(e){return qe(e)&&tt(e)==="select"}a(AC,"isHTMLSelectElement");function RC(e){return qe(e)&&tt(e)==="table"}a(RC,"isHTMLTableElement");function qC(e){return qe(e)&&tt(e)==="textarea"}a(qC,"isHTMLTextAreaElement");function NC(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}a(NC,"safeWindow");function IC(e){return qe(e)&&tt(e)==="fieldset"}a(IC,"isHTMLFieldSetElement");function jC(e){return qe(e)&&tt(e)==="legend"}a(jC,"isHTMLLegendElement");function kC(e){return qe(e)&&tt(e)==="slot"}a(kC,"isHTMLSlotElement");function MC(e){return qe(e)&&e.ownerSVGElement!==void 0}a(MC,"isSVGElement");function $C(e){return qe(e)&&tt(e)==="svg"}a($C,"isSVGSVGElement");function LC(e){return MC(e)&&tt(e)==="title"}a(LC,"isSVGTitleElement");function Fa(e,t){if(qe(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return[]}a(Fa,"queryIdRefs");function Gt(e,t){return qe(e)?t.indexOf(CC(e))!==-1:!1}a(Gt,"hasAnyConcreteRoles");function DC(e){return e.trim().replace(/\s\s+/g," ")}a(DC,"asFlatString");function FC(e,t){if(!qe(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}a(FC,"isHidden");function BC(e){return Gt(e,["button","combobox","listbox","textbox"])||Kh(e,"range")}a(BC,"isControl");function Kh(e,t){if(!qe(e))return!1;switch(t){case"range":return Gt(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}a(Kh,"hasAbstractRole");function ad(e,t){var r=_t(e.querySelectorAll(t));return Fa(e,"aria-owns").forEach(function(n){r.push.apply(r,_t(n.querySelectorAll(t)))}),r}a(ad,"querySelectorAllSubtree");function UC(e){return AC(e)?e.selectedOptions||ad(e,"[selected]"):ad(e,'[aria-selected="true"]')}a(UC,"querySelectedOptions");function HC(e){return Gt(e,["none","presentation"])}a(HC,"isMarkedPresentational");function VC(e){return Gh(e)}a(VC,"isNativeHostLanguageTextAlternativeElement");function JC(e){return Gt(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}a(JC,"allowsNameFromContent");function zC(e){return!1}a(zC,"isDescendantOfNativeHostLanguageTextAlternativeElement");function WC(e){return ga(e)||qC(e)?e.value:e.textContent||""}a(WC,"getValueOfTextbox");function id(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}a(id,"getTextualContent");function Yh(e){var t=tt(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}a(Yh,"isLabelableElement");function Xh(e){if(Yh(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&qe(r)){var n=Xh(r);n!==null&&(t=n)}}),t}a(Xh,"findLabelableElement");function GC(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):Xh(e)}a(GC,"getControlOfLabel");function KC(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return _t(t);if(!Yh(e))return null;var r=e.ownerDocument;return _t(r.querySelectorAll("label")).filter(function(n){return GC(n)===e})}a(KC,"getLabels");function YC(e){var t=e.assignedNodes();return t.length===0?_t(e.childNodes):t}a(YC,"getSlotContents");function Qh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new w5,n=NC(e),o=t.compute,i=o===void 0?"name":o,s=t.computedStyleSupportsPseudoElements,l=s===void 0?t.getComputedStyle!==void 0:s,c=t.getComputedStyle,u=c===void 0?n.getComputedStyle.bind(n):c,d=t.hidden,p=d===void 0?!1:d;function h(v,w){var P="";if(qe(v)&&l){var A=u(v,"::before"),R=id(A);P="".concat(R," ").concat(P)}var T=kC(v)?YC(v):_t(v.childNodes).concat(Fa(v,"aria-owns"));if(T.forEach(function(C){var k=g(C,{isEmbeddedInLabel:w.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),N=qe(C)?u(C).getPropertyValue("display"):"inline",U=N!=="inline"?" ":"";P+="".concat(U).concat(k).concat(U)}),qe(v)&&l){var E=u(v,"::after"),x=id(E);P="".concat(P," ").concat(x)}return P.trim()}a(h,"computeMiscTextAlternative");function f(v,w){var P=v.getAttributeNode(w);return P!==null&&!r.has(P)&&P.value.trim()!==""?(r.add(P),P.value):null}a(f,"useAttribute");function m(v){return qe(v)?f(v,"title"):null}a(m,"computeTooltipAttributeValue");function b(v){if(!qe(v))return null;if(IC(v)){r.add(v);for(var w=_t(v.childNodes),P=0;P<w.length;P+=1){var A=w[P];if(jC(A))return g(A,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(RC(v)){r.add(v);for(var R=_t(v.childNodes),T=0;T<R.length;T+=1){var E=R[T];if(Gh(E))return g(E,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if($C(v)){r.add(v);for(var x=_t(v.childNodes),C=0;C<x.length;C+=1){var k=x[C];if(LC(k))return k.textContent}return null}else if(tt(v)==="img"||tt(v)==="area"){var N=f(v,"alt");if(N!==null)return N}else if(_C(v)){var U=f(v,"label");if(U!==null)return U}if(ga(v)&&(v.type==="button"||v.type==="submit"||v.type==="reset")){var D=f(v,"value");if(D!==null)return D;if(v.type==="submit")return"Submit";if(v.type==="reset")return"Reset"}var O=KC(v);if(O!==null&&O.length!==0)return r.add(v),_t(O).map(function(G){return g(G,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(G){return G.length>0}).join(" ");if(ga(v)&&v.type==="image"){var M=f(v,"alt");if(M!==null)return M;var $=f(v,"title");return $!==null?$:"Submit Query"}if(Gt(v,["button"])){var K=h(v,{isEmbeddedInLabel:!1});if(K!=="")return K}return null}a(b,"computeElementTextAlternative");function g(v,w){if(r.has(v))return"";if(!p&&FC(v,u)&&!w.isReferenced)return r.add(v),"";var P=qe(v)?v.getAttributeNode("aria-labelledby"):null,A=P!==null&&!r.has(P)?Fa(v,"aria-labelledby"):[];if(i==="name"&&!w.isReferenced&&A.length>0)return r.add(P),A.map(function(N){return g(N,{isEmbeddedInLabel:w.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var R=w.recursion&&BC(v)&&i==="name";if(!R){var T=(qe(v)&&v.getAttribute("aria-label")||"").trim();if(T!==""&&i==="name")return r.add(v),T;if(!HC(v)){var E=b(v);if(E!==null)return r.add(v),E}}if(Gt(v,["menu"]))return r.add(v),"";if(R||w.isEmbeddedInLabel||w.isReferenced){if(Gt(v,["combobox","listbox"])){r.add(v);var x=UC(v);return x.length===0?ga(v)?v.value:"":_t(x).map(function(N){return g(N,{isEmbeddedInLabel:w.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(Kh(v,"range"))return r.add(v),v.hasAttribute("aria-valuetext")?v.getAttribute("aria-valuetext"):v.hasAttribute("aria-valuenow")?v.getAttribute("aria-valuenow"):v.getAttribute("value")||"";if(Gt(v,["textbox"]))return r.add(v),WC(v)}if(JC(v)||qe(v)&&w.isReferenced||VC(v)||zC()){var C=h(v,{isEmbeddedInLabel:w.isEmbeddedInLabel});if(C!=="")return r.add(v),C}if(v.nodeType===v.TEXT_NODE)return r.add(v),v.textContent||"";if(w.recursion)return r.add(v),h(v,{isEmbeddedInLabel:w.isEmbeddedInLabel});var k=m(v);return k!==null?(r.add(v),k):(r.add(v),"")}return a(g,"computeTextAlternative"),DC(g(e,{isEmbeddedInLabel:!1,isReferenced:i==="description",recursion:!1}))}a(Qh,"computeTextAlternative");function mo(e){"@babel/helpers - typeof";return mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mo(e)}a(mo,"_typeof");function sd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}a(sd,"ownKeys");function ld(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sd(Object(r),!0).forEach(function(n){XC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}a(ld,"_objectSpread");function XC(e,t,r){return t=QC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a(XC,"_defineProperty");function QC(e){var t=ZC(e,"string");return mo(t)==="symbol"?t:String(t)}a(QC,"_toPropertyKey");function ZC(e,t){if(mo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(mo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}a(ZC,"_toPrimitive");function Zh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Fa(e,"aria-describedby").map(function(o){return Qh(o,ld(ld({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}a(Zh,"computeAccessibleDescription");function eP(e){return Gt(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}a(eP,"prohibitsNaming");function nu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return eP(e)?"":Qh(e,t)}a(nu,"computeAccessibleName");var Pt=He(iD()),T5=He(sD());function em(e){return e.replace(/</g,"<").replace(/>/g,">")}a(em,"escapeHTML");var S5=a((e,t,r,n,o,i,s)=>{let l=n+r.indent,c=r.colors;return e.map(u=>{let d=t[u],p=s(d,r,l,o,i);return typeof d!="string"&&(p.indexOf(`
|
|
308
|
+
`)!==-1&&(p=r.spacingOuter+l+p+r.spacingOuter+n),p="{"+p+"}"),r.spacingInner+n+c.prop.open+u+c.prop.close+"="+c.value.open+p+c.value.close}).join("")},"printProps"),C5=3,P5=a((e,t,r,n,o,i)=>e.map(s=>{let l=typeof s=="string"?tP(s,t):i(s,t,r,n,o);return l===""&&typeof s=="object"&&s!==null&&s.nodeType!==C5?"":t.spacingOuter+r+l}).join(""),"printChildren"),tP=a((e,t)=>{let r=t.colors.content;return r.open+em(e)+r.close},"printText"),O5=a((e,t)=>{let r=t.colors.comment;return r.open+"<!--"+em(e)+"-->"+r.close},"printComment"),_5=a((e,t,r,n,o)=>{let i=n.colors.tag;return i.open+"<"+e+(t&&i.close+t+n.spacingOuter+o+i.open)+(r?">"+i.close+r+n.spacingOuter+o+i.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+i.close},"printElement"),A5=a((e,t)=>{let r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},"printElementAsLeaf"),R5=1,rP=3,nP=8,oP=11,q5=/^((HTML|SVG)\w*)?Element$/,aP=a(e=>{let{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},"isCustomElement"),N5=a(e=>{let t=e.constructor.name,{nodeType:r}=e;return r===R5&&(q5.test(t)||aP(e))||r===rP&&t==="Text"||r===nP&&t==="Comment"||r===oP&&t==="DocumentFragment"},"testNode");function iP(e){return e.nodeType===rP}a(iP,"nodeIsText");function sP(e){return e.nodeType===nP}a(sP,"nodeIsComment");function Mi(e){return e.nodeType===oP}a(Mi,"nodeIsFragment");function lP(e){return{test:a(t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||aP(t))&&N5(t)},"test"),serialize:a((t,r,n,o,i,s)=>{if(iP(t))return tP(t.data,r);if(sP(t))return O5(t.data,r);let l=Mi(t)?"DocumentFragment":t.tagName.toLowerCase();return++o>r.maxDepth?A5(l,r):_5(l,S5(Mi(t)?[]:Array.from(t.attributes).map(c=>c.name).sort(),Mi(t)?{}:Array.from(t.attributes).reduce((c,u)=>(c[u.name]=u.value,c),{}),r,n+r.indent,o,i,s),P5(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,o,i,s),r,n)},"serialize")}}a(lP,"createDOMElementFilter");var uP=null,tm=null,rm=null;try{let e=module&&module.require;tm=e.call(module,"fs").readFileSync,rm=e.call(module,"@babel/code-frame").codeFrameColumns,uP=e.call(module,"chalk")}catch{}function cP(e){let t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),o=n.split(":"),[i,s,l]=[o[0],parseInt(o[1],10),parseInt(o[2],10)],c="";try{c=tm(i,"utf-8")}catch{return""}let u=rm(c,{start:{line:s,column:l}},{highlightCode:!0,linesBelow:0});return uP.dim(n)+`
|
|
309
|
+
`+u+`
|
|
310
|
+
`}a(cP,"getCodeFrame");function dP(){if(!tm||!rm)return"";let e=new Error().stack.split(`
|
|
311
|
+
`).slice(1).find(t=>!t.includes("node_modules/"));return cP(e)}a(dP,"getUserCodeFrame");var pP=3;function $i(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}a($i,"jestFakeTimersAreEnabled");function ou(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}a(ou,"getDocument");function nm(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof e+".")}a(nm,"getWindowFromNode");function Zt(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+t(e)+".");function t(r){return typeof r=="object"?r===null?"null":r.constructor.name:typeof r}a(t,"getTypeName")}a(Zt,"checkContainerType");var I5=a(()=>{if(typeof process>"u")return!1;let e;try{var t;let r=(t=Xu)==null?void 0:t.COLORS;r&&(e=JSON.parse(r))}catch{}return typeof e=="boolean"?e:process.versions!==void 0&&process.versions.node!==void 0},"shouldHighlight"),{DOMCollection:j5}=Jh.plugins,k5=1,M5=8;function fP(e){return e.nodeType!==M5&&(e.nodeType!==k5||!e.matches(ve().defaultIgnore))}a(fP,"filterCommentsAndDefaultIgnoreTagsTags");function yo(e,t,r){if(r===void 0&&(r={}),e||(e=ou().body),typeof t!="number"&&(t=typeof process<"u"&&typeof Xu<"u"&&Xu.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let n=typeof e;if(n==="object"?n=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+n);let{filterNode:o=fP,...i}=r,s=Jh.format(e,{plugins:[lP(o),j5],printFunctionName:!1,highlight:I5(),...i});return t!==void 0&&e.outerHTML.length>t?s.slice(0,t)+"...":s}a(yo,"prettyDOM");var ud=a(function(){let e=dP();console.log(e?yo(...arguments)+`
|
|
312
|
+
|
|
313
|
+
`+e:yo(...arguments))},"logDOM"),pn={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:a(e=>e(),"asyncWrapper"),unstable_advanceTimersWrapper:a(e=>e(),"unstable_advanceTimersWrapper"),eventWrapper:a(e=>e(),"eventWrapper"),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(e,t){let r=yo(t),n=new Error([e,"Ignored nodes: comments, "+pn.defaultIgnore+`
|
|
314
|
+
`+r].filter(Boolean).join(`
|
|
315
|
+
|
|
316
|
+
`));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function hP(e){try{return pn._disableExpensiveErrorDiagnostics=!0,e()}finally{pn._disableExpensiveErrorDiagnostics=!1}}a(hP,"runWithExpensiveErrorDiagnosticsDisabled");function mP(e){typeof e=="function"&&(e=e(pn)),pn={...pn,...e}}a(mP,"configure");function ve(){return pn}a(ve,"getConfig");var $5=["button","meter","output","progress","select","textarea","input"];function om(e){return $5.includes(e.nodeName.toLowerCase())?"":e.nodeType===pP?e.textContent:Array.from(e.childNodes).map(t=>om(t)).join("")}a(om,"getTextContent");function Cs(e){let t;return e.tagName.toLowerCase()==="label"?t=om(e):t=e.value||e.textContent,t}a(Cs,"getLabelContent");function am(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!yP(e))return[];let r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}a(am,"getRealLabels");function yP(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}a(yP,"isLabelable");function im(e,t,r){let{selector:n="*"}=r===void 0?{}:r,o=t.getAttribute("aria-labelledby"),i=o?o.split(" "):[];return i.length?i.map(s=>{let l=e.querySelector('[id="'+s+'"]');return l?{content:Cs(l),formControl:null}:{content:"",formControl:null}}):Array.from(am(t)).map(s=>{let l=Cs(s),c=Array.from(s.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(u=>u.matches(n))[0];return{content:l,formControl:c}})}a(im,"getLabels");function sm(e){if(e==null)throw new Error("It looks like "+e+" was passed instead of a matcher. Did you do something like getByText("+e+")?")}a(sm,"assertNotNullOrUndefined");function Nn(e,t,r,n){if(typeof e!="string")return!1;sm(r);let o=n(e);return typeof r=="string"||typeof r=="number"?o.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(o,t):lm(r,o)}a(Nn,"fuzzyMatches");function Yt(e,t,r,n){if(typeof e!="string")return!1;sm(r);let o=n(e);return r instanceof Function?r(o,t):r instanceof RegExp?lm(r,o):o===String(r)}a(Yt,"matches");function au(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return n=>{let o=n;return o=t?o.trim():o,o=r?o.replace(/\s+/g," "):o,o}}a(au,"getDefaultNormalizer");function zr(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return au({trim:t,collapseWhitespace:r});if(typeof t<"u"||typeof r<"u")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return n}a(zr,"makeNormalizer");function lm(e,t){let r=e.test(t);return e.global&&e.lastIndex!==0&&(console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."),e.lastIndex=0),r}a(lm,"matchRegExp");function ko(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===pP&&!!t.textContent).map(t=>t.textContent).join("")}a(ko,"getNodeText");var L5=bP(Pt.elementRoles);function um(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}a(um,"isSubtreeInaccessible");function bi(e,t){t===void 0&&(t={});let{isSubtreeInaccessible:r=um}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let n=e;for(;n;){if(r(n))return!0;n=n.parentElement}return!1}a(bi,"isInaccessible");function iu(e){for(let{match:t,roles:r}of L5)if(t(e))return[...r];return[]}a(iu,"getImplicitAriaRoles");function bP(e){function t(s){let{name:l,attributes:c}=s;return""+l+c.map(u=>{let{name:d,value:p,constraints:h=[]}=u,f=h.indexOf("undefined")!==-1,m=h.indexOf("set")!==-1;return typeof p<"u"?"["+d+'="'+p+'"]':f?":not(["+d+"])":m?"["+d+"]:not(["+d+'=""])':"["+d+"]"}).join("")}a(t,"makeElementSelector");function r(s){let{attributes:l=[]}=s;return l.length}a(r,"getSelectorSpecificity");function n(s,l){let{specificity:c}=s,{specificity:u}=l;return u-c}a(n,"bySelectorSpecificity");function o(s){let{attributes:l=[]}=s,c=l.findIndex(d=>d.value&&d.name==="type"&&d.value==="text");c>=0&&(l=[...l.slice(0,c),...l.slice(c+1)]);let u=t({...s,attributes:l});return d=>c>=0&&d.type!=="text"?!1:d.matches(u)}a(o,"match");let i=[];for(let[s,l]of e.entries())i=[...i,{match:o(s),roles:Array.from(l),specificity:r(s)}];return i.sort(n)}a(bP,"buildElementRoleList");function cm(e,t){let{hidden:r=!1}=t===void 0?{}:t;function n(o){return[o,...Array.from(o.children).reduce((i,s)=>[...i,...n(s)],[])]}return a(n,"flattenDOM"),n(e).filter(o=>r===!1?bi(o)===!1:!0).reduce((o,i)=>{let s=[];return i.hasAttribute("role")?s=i.getAttribute("role").split(" ").slice(0,1):s=iu(i),s.reduce((l,c)=>Array.isArray(l[c])?{...l,[c]:[...l[c],i]}:{...l,[c]:[i]},o)},{})}a(cm,"getRoles");function dm(e,t){let{hidden:r,includeDescription:n}=t,o=cm(e,{hidden:r});return Object.entries(o).filter(i=>{let[s]=i;return s!=="generic"}).map(i=>{let[s,l]=i,c="-".repeat(50),u=l.map(d=>{let p='Name "'+nu(d,{computedStyleSupportsPseudoElements:ve().computedStyleSupportsPseudoElements})+`":
|
|
317
|
+
`,h=yo(d.cloneNode(!1));if(n){let f='Description "'+Zh(d,{computedStyleSupportsPseudoElements:ve().computedStyleSupportsPseudoElements})+`":
|
|
318
|
+
`;return""+p+f+h}return""+p+h}).join(`
|
|
319
|
+
|
|
320
|
+
`);return s+`:
|
|
321
|
+
|
|
322
|
+
`+u+`
|
|
323
|
+
|
|
324
|
+
`+c}).join(`
|
|
325
|
+
`)}a(dm,"prettyRoles");var D5=a(function(e,t){let{hidden:r=!1}=t===void 0?{}:t;return console.log(dm(e,{hidden:r}))},"logRoles");function gP(e){return e.tagName==="OPTION"?e.selected:Mo(e,"aria-selected")}a(gP,"computeAriaSelected");function vP(e){return e.getAttribute("aria-busy")==="true"}a(vP,"computeAriaBusy");function wP(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:Mo(e,"aria-checked")}a(wP,"computeAriaChecked");function EP(e){return Mo(e,"aria-pressed")}a(EP,"computeAriaPressed");function xP(e){var t,r;return(t=(r=Mo(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}a(xP,"computeAriaCurrent");function TP(e){return Mo(e,"aria-expanded")}a(TP,"computeAriaExpanded");function Mo(e,t){let r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}a(Mo,"checkBooleanAttribute");function SP(e){let t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6};return e.getAttribute("aria-level")&&Number(e.getAttribute("aria-level"))||t[e.tagName]}a(SP,"computeHeadingLevel");function CP(e){let t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}a(CP,"computeAriaValueNow");function PP(e){let t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}a(PP,"computeAriaValueMax");function OP(e){let t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}a(OP,"computeAriaValueMin");function _P(e){let t=e.getAttribute("aria-valuetext");return t===null?void 0:t}a(_P,"computeAriaValueText");var qb=au();function AP(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}a(AP,"escapeRegExp");function cd(e){return new RegExp(AP(e.toLowerCase()),"i")}a(cd,"getRegExpMatcher");function ir(e,t,r,n){let{variant:o,name:i}=n,s="",l={},c=[["Role","TestId"].includes(e)?r:cd(r)];i&&(l.name=cd(i)),e==="Role"&&bi(t)&&(l.hidden=!0,s=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
326
|
+
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
327
|
+
`),Object.keys(l).length>0&&c.push(l);let u=o+"By"+e;return{queryName:e,queryMethod:u,queryArgs:c,variant:o,warning:s,toString(){s&&console.warn(s);let[d,p]=c;return d=typeof d=="string"?"'"+d+"'":d,p=p?", { "+Object.entries(p).map(h=>{let[f,m]=h;return f+": "+m}).join(", ")+" }":"",u+"("+d+p+")"}}}a(ir,"makeSuggestion");function sr(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}a(sr,"canSuggest");function Ba(e,t,r){var n,o;if(t===void 0&&(t="get"),e.matches(ve().defaultIgnore))return;let i=(n=e.getAttribute("role"))!=null?n:(o=iu(e))==null?void 0:o[0];if(i!=="generic"&&sr("Role",r,i))return ir("Role",e,i,{variant:t,name:nu(e,{computedStyleSupportsPseudoElements:ve().computedStyleSupportsPseudoElements})});let s=im(document,e).map(h=>h.content).join(" ");if(sr("LabelText",r,s))return ir("LabelText",e,s,{variant:t});let l=e.getAttribute("placeholder");if(sr("PlaceholderText",r,l))return ir("PlaceholderText",e,l,{variant:t});let c=qb(ko(e));if(sr("Text",r,c))return ir("Text",e,c,{variant:t});if(sr("DisplayValue",r,e.value))return ir("DisplayValue",e,qb(e.value),{variant:t});let u=e.getAttribute("alt");if(sr("AltText",r,u))return ir("AltText",e,u,{variant:t});let d=e.getAttribute("title");if(sr("Title",r,d))return ir("Title",e,d,{variant:t});let p=e.getAttribute(ve().testIdAttribute);if(sr("TestId",r,p))return ir("TestId",e,p,{variant:t})}a(Ba,"getSuggestedQuery");function ia(e,t){e.stack=t.stack.replace(t.message,e.message)}a(ia,"copyStackTrace");function RP(e,t){let{container:r=ou(),timeout:n=ve().asyncUtilTimeout,showOriginalStackTrace:o=ve().showOriginalStackTrace,stackTraceError:i,interval:s=50,onTimeout:l=a(u=>(Object.defineProperty(u,"message",{value:ve().getElementError(u.message,r).message}),u),"onTimeout"),mutationObserverOptions:c={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!="function")throw new TypeError("Received `callback` arg must be a function");return new Promise(async(u,d)=>{let p,h,f,m=!1,b="idle",g=setTimeout(R,n),v=$i();if(v){let{unstable_advanceTimersWrapper:T}=ve();for(A();!m;){if(!$i()){let E=new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");o||ia(E,i),d(E);return}if(await T(async()=>{jest.advanceTimersByTime(s)}),m)break;A()}}else{try{Zt(r)}catch(E){d(E);return}h=setInterval(P,s);let{MutationObserver:T}=nm(r);f=new T(P),f.observe(r,c),A()}function w(T,E){m=!0,clearTimeout(g),v||(clearInterval(h),f.disconnect()),T?d(T):u(E)}a(w,"onDone");function P(){if($i()){let T=new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return o||ia(T,i),d(T)}else return A()}a(P,"checkRealTimersCallback");function A(){if(b!=="pending")try{let T=hP(e);typeof T?.then=="function"?(b="pending",T.then(E=>{b="resolved",w(null,E)},E=>{b="rejected",p=E})):w(null,T)}catch(T){p=T}}a(A,"checkCallback");function R(){let T;p?(T=p,!o&&T.name==="TestingLibraryElementError"&&ia(T,i)):(T=new Error("Timed out in waitFor."),o||ia(T,i)),w(l(T),null)}a(R,"handleTimeout")})}a(RP,"waitFor");function su(e,t){let r=new Error("STACK_TRACE_MESSAGE");return ve().asyncWrapper(()=>RP(e,{stackTraceError:r,...t}))}a(su,"waitForWrapper");function gi(e,t){return ve().getElementError(e,t)}a(gi,"getElementError");function vi(e,t){return gi(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}a(vi,"getMultipleElementsFoundError");function Wr(e,t,r,n){let{exact:o=!0,collapseWhitespace:i,trim:s,normalizer:l}=n===void 0?{}:n,c=o?Yt:Nn,u=zr({collapseWhitespace:i,trim:s,normalizer:l});return Array.from(t.querySelectorAll("["+e+"]")).filter(d=>c(d.getAttribute(e),d,r,u))}a(Wr,"queryAllByAttribute");function pm(e,t,r,n){let o=Wr(e,t,r,n);if(o.length>1)throw vi("Found multiple elements by ["+e+"="+r+"]",t);return o[0]||null}a(pm,"queryByAttribute");function bn(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];let s=e(r,...o);if(s.length>1){let l=s.map(c=>gi(null,c).message).join(`
|
|
328
|
+
|
|
329
|
+
`);throw vi(t(r,...o)+`
|
|
330
|
+
|
|
331
|
+
Here are the matching elements:
|
|
332
|
+
|
|
333
|
+
`+l,r)}return s[0]||null}}a(bn,"makeSingleQuery");function fm(e,t){return ve().getElementError(`A better query is available, try this:
|
|
334
|
+
`+e.toString()+`
|
|
335
|
+
`,t)}a(fm,"getSuggestionError");function lu(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];let s=e(r,...o);if(!s.length)throw ve().getElementError(t(r,...o),r);return s}}a(lu,"makeGetAllQuery");function gn(e){return(t,r,n,o)=>su(()=>e(t,r,n),{container:t,...o})}a(gn,"makeFindQuery");var $r=a((e,t,r)=>function(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];let l=e(n,...i),[{suggest:c=ve().throwSuggestions}={}]=i.slice(-1);if(l&&c){let u=Ba(l,r);if(u&&!t.endsWith(u.queryName))throw fm(u.toString(),n)}return l},"wrapSingleQueryWithSuggestion"),dt=a((e,t,r)=>function(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];let l=e(n,...i),[{suggest:c=ve().throwSuggestions}={}]=i.slice(-1);if(l.length&&c){let u=[...new Set(l.map(d=>{var p;return(p=Ba(d,r))==null?void 0:p.toString()}))];if(u.length===1&&!t.endsWith(Ba(l[0],r).queryName))throw fm(u[0],n)}return l},"wrapAllByQueryWithSuggestion");function er(e,t,r){let n=$r(bn(e,t),e.name,"query"),o=lu(e,r),i=bn(o,t),s=$r(i,e.name,"get"),l=dt(o,e.name.replace("query","get"),"getAll"),c=gn(dt(o,e.name,"findAll")),u=gn($r(i,e.name,"find"));return[n,l,s,c,u]}a(er,"buildQueries");var F5=Object.freeze({__proto__:null,getElementError:gi,wrapAllByQueryWithSuggestion:dt,wrapSingleQueryWithSuggestion:$r,getMultipleElementsFoundError:vi,queryAllByAttribute:Wr,queryByAttribute:pm,makeSingleQuery:bn,makeGetAllQuery:lu,makeFindQuery:gn,buildQueries:er});function qP(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:Cs(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}a(qP,"queryAllLabels");var B5=a(function(e,t,r){let{exact:n=!0,trim:o,collapseWhitespace:i,normalizer:s}=r===void 0?{}:r,l=n?Yt:Nn,c=zr({collapseWhitespace:i,trim:o,normalizer:s});return qP(e).filter(u=>{let{node:d,textToMatch:p}=u;return l(p,d,t,c)}).map(u=>{let{node:d}=u;return d})},"queryAllLabelsByText"),Ua=a(function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:s,normalizer:l}=r===void 0?{}:r;Zt(e);let c=o?Yt:Nn,u=zr({collapseWhitespace:i,trim:s,normalizer:l}),d=Array.from(e.querySelectorAll("*")).filter(p=>am(p).length||p.hasAttribute("aria-labelledby")).reduce((p,h)=>{let f=im(e,h,{selector:n});f.filter(b=>!!b.formControl).forEach(b=>{c(b.content,b.formControl,t,u)&&b.formControl&&p.push(b.formControl)});let m=f.filter(b=>!!b.content).map(b=>b.content);return c(m.join(" "),h,t,u)&&p.push(h),m.length>1&&m.forEach((b,g)=>{c(b,h,t,u)&&p.push(h);let v=[...m];v.splice(g,1),v.length>1&&c(v.join(" "),h,t,u)&&p.push(h)}),p},[]).concat(Wr("aria-label",e,t,{exact:o,normalizer:u}));return Array.from(new Set(d)).filter(p=>p.matches(n))},"queryAllByLabelText"),vn=a(function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];let i=Ua(e,t,...n);if(!i.length){let s=B5(e,t,...n);if(s.length){let l=s.map(c=>NP(e,c)).filter(c=>!!c);throw l.length?ve().getElementError(l.map(c=>"Found a label with the text of: "+t+", however the element associated with this label (<"+c+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+c+" />, you can use aria-label or aria-labelledby instead.").join(`
|
|
336
|
+
|
|
337
|
+
`),e):ve().getElementError("Found a label with the text of: "+t+`, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,e)}else throw ve().getElementError("Unable to find a label with the text of: "+t,e)}return i},"getAllByLabelText");function NP(e,t){let r=t.getAttribute("for");if(!r)return null;let n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}a(NP,"getTagNameOfElementAssociatedWithLabelViaFor");var IP=a((e,t)=>"Found multiple elements with the text of: "+t,"getMultipleError$7"),jP=$r(bn(Ua,IP),Ua.name,"query"),kP=bn(vn,IP),MP=gn(dt(vn,vn.name,"findAll")),$P=gn($r(kP,vn.name,"find")),LP=dt(vn,vn.name,"getAll"),DP=$r(kP,vn.name,"get"),FP=dt(Ua,Ua.name,"queryAll"),dd=a(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Zt(t[0]),Wr("placeholder",...t)},"queryAllByPlaceholderText"),U5=a((e,t)=>"Found multiple elements with the placeholder text of: "+t,"getMultipleError$6"),H5=a((e,t)=>"Unable to find an element with the placeholder text of: "+t,"getMissingError$6"),BP=dt(dd,dd.name,"queryAll"),[UP,HP,VP,JP,zP]=er(dd,U5,H5),pd=a(function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:s,ignore:l=ve().defaultIgnore,normalizer:c}=r===void 0?{}:r;Zt(e);let u=o?Yt:Nn,d=zr({collapseWhitespace:i,trim:s,normalizer:c}),p=[];return typeof e.matches=="function"&&e.matches(n)&&(p=[e]),[...p,...Array.from(e.querySelectorAll(n))].filter(h=>!l||!h.matches(l)).filter(h=>u(ko(h),h,t,d))},"queryAllByText"),V5=a((e,t)=>"Found multiple elements with the text: "+t,"getMultipleError$5"),J5=a(function(e,t,r){r===void 0&&(r={});let{collapseWhitespace:n,trim:o,normalizer:i,selector:s}=r,l=zr({collapseWhitespace:n,trim:o,normalizer:i})(t.toString()),c=l!==t.toString(),u=(s??"*")!=="*";return"Unable to find an element with the text: "+(c?l+" (normalized from '"+t+"')":t)+(u?", which matches selector '"+s+"'":"")+". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."},"getMissingError$5"),WP=dt(pd,pd.name,"queryAll"),[GP,KP,YP,XP,QP]=er(pd,V5,J5),fd=a(function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:s}=r===void 0?{}:r;Zt(e);let l=n?Yt:Nn,c=zr({collapseWhitespace:o,trim:i,normalizer:s});return Array.from(e.querySelectorAll("input,textarea,select")).filter(u=>u.tagName==="SELECT"?Array.from(u.options).filter(d=>d.selected).some(d=>l(ko(d),d,t,c)):l(u.value,u,t,c))},"queryAllByDisplayValue"),z5=a((e,t)=>"Found multiple elements with the display value: "+t+".","getMultipleError$4"),W5=a((e,t)=>"Unable to find an element with the display value: "+t+".","getMissingError$4"),ZP=dt(fd,fd.name,"queryAll"),[eO,tO,rO,nO,oO]=er(fd,z5,W5),G5=/^(img|input|area|.+-.+)$/i,hd=a(function(e,t,r){return r===void 0&&(r={}),Zt(e),Wr("alt",e,t,r).filter(n=>G5.test(n.tagName))},"queryAllByAltText"),K5=a((e,t)=>"Found multiple elements with the alt text: "+t,"getMultipleError$3"),Y5=a((e,t)=>"Unable to find an element with the alt text: "+t,"getMissingError$3"),aO=dt(hd,hd.name,"queryAll"),[iO,sO,lO,uO,cO]=er(hd,K5,Y5),X5=a(e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},"isSvgTitle"),md=a(function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:s}=r===void 0?{}:r;Zt(e);let l=n?Yt:Nn,c=zr({collapseWhitespace:o,trim:i,normalizer:s});return Array.from(e.querySelectorAll("[title], svg > title")).filter(u=>l(u.getAttribute("title"),u,t,c)||X5(u)&&l(ko(u),u,t,c))},"queryAllByTitle"),Q5=a((e,t)=>"Found multiple elements with the title: "+t+".","getMultipleError$2"),Z5=a((e,t)=>"Unable to find an element with the title: "+t+".","getMissingError$2"),dO=dt(md,md.name,"queryAll"),[pO,fO,hO,mO,yO]=er(md,Q5,Z5),yd=a(function(e,t,r){let{hidden:n=ve().defaultHidden,name:o,description:i,queryFallbacks:s=!1,selected:l,busy:c,checked:u,pressed:d,current:p,level:h,expanded:f,value:{now:m,min:b,max:g,text:v}={}}=r===void 0?{}:r;if(Zt(e),l!==void 0){var w;if(((w=Pt.roles.get(t))==null?void 0:w.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(c!==void 0){var P;if(((P=Pt.roles.get(t))==null?void 0:P.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(u!==void 0){var A;if(((A=Pt.roles.get(t))==null?void 0:A.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(d!==void 0){var R;if(((R=Pt.roles.get(t))==null?void 0:R.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(p!==void 0){var T;if(((T=Pt.roles.get(t))==null?void 0:T.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(h!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(m!==void 0){var E;if(((E=Pt.roles.get(t))==null?void 0:E.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(g!==void 0){var x;if(((x=Pt.roles.get(t))==null?void 0:x.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(b!==void 0){var C;if(((C=Pt.roles.get(t))==null?void 0:C.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(v!==void 0){var k;if(((k=Pt.roles.get(t))==null?void 0:k.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(f!==void 0){var N;if(((N=Pt.roles.get(t))==null?void 0:N.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}let U=new WeakMap;function D(O){return U.has(O)||U.set(O,um(O)),U.get(O)}return a(D,"cachedIsSubtreeInaccessible"),Array.from(e.querySelectorAll(bO(t))).filter(O=>{if(O.hasAttribute("role")){let M=O.getAttribute("role");if(s)return M.split(" ").filter(Boolean).some(K=>K===t);let[$]=M.split(" ");return $===t}return iu(O).some(M=>M===t)}).filter(O=>{if(l!==void 0)return l===gP(O);if(c!==void 0)return c===vP(O);if(u!==void 0)return u===wP(O);if(d!==void 0)return d===EP(O);if(p!==void 0)return p===xP(O);if(f!==void 0)return f===TP(O);if(h!==void 0)return h===SP(O);if(m!==void 0||g!==void 0||b!==void 0||v!==void 0){let $=!0;if(m!==void 0&&$&&($=m===CP(O)),g!==void 0&&$&&($=g===PP(O)),b!==void 0&&$&&($=b===OP(O)),v!==void 0){var M;$&&($=Yt((M=_P(O))!=null?M:null,O,v,K=>K))}return $}return!0}).filter(O=>o===void 0?!0:Yt(nu(O,{computedStyleSupportsPseudoElements:ve().computedStyleSupportsPseudoElements}),O,o,M=>M)).filter(O=>i===void 0?!0:Yt(Zh(O,{computedStyleSupportsPseudoElements:ve().computedStyleSupportsPseudoElements}),O,i,M=>M)).filter(O=>n===!1?bi(O,{isSubtreeInaccessible:D})===!1:!0)},"queryAllByRole");function bO(e){var t;let r='*[role~="'+e+'"]',n=(t=Pt.roleElements.get(e))!=null?t:new Set,o=new Set(Array.from(n).map(i=>{let{name:s}=i;return s}));return[r].concat(Array.from(o)).join(",")}a(bO,"makeRoleSelector");var gO=a(e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},"getNameHint"),e3=a(function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+gO(n)},"getMultipleError$1"),t3=a(function(e,t,r){let{hidden:n=ve().defaultHidden,name:o,description:i}=r===void 0?{}:r;if(ve()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+gO(o);let s="";Array.from(e.children).forEach(d=>{s+=dm(d,{hidden:n,includeDescription:i!==void 0})});let l;s.length===0?n===!1?l="There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":l="There are no available roles.":l=(`
|
|
338
|
+
Here are the `+(n===!1?"accessible":"available")+` roles:
|
|
339
|
+
|
|
340
|
+
`+s.replace(/\n/g,`
|
|
341
|
+
`).replace(/\n\s\s\n/g,`
|
|
342
|
+
|
|
343
|
+
`)+`
|
|
344
|
+
`).trim();let c="";o===void 0?c="":typeof o=="string"?c=' and name "'+o+'"':c=" and name `"+o+"`";let u="";return i===void 0?u="":typeof i=="string"?u=' and description "'+i+'"':u=" and description `"+i+"`",(`
|
|
345
|
+
Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+c+u+`
|
|
346
|
+
|
|
347
|
+
`+l).trim()},"getMissingError$1"),vO=dt(yd,yd.name,"queryAll"),[wO,EO,xO,TO,SO]=er(yd,e3,t3),hm=a(()=>ve().testIdAttribute,"getTestIdAttribute"),bd=a(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Zt(t[0]),Wr(hm(),...t)},"queryAllByTestId"),r3=a((e,t)=>"Found multiple elements by: ["+hm()+'="'+t+'"]',"getMultipleError"),n3=a((e,t)=>"Unable to find an element by: ["+hm()+'="'+t+'"]',"getMissingError"),CO=dt(bd,bd.name,"queryAll"),[PO,OO,_O,AO,RO]=er(bd,r3,n3),Ps=Object.freeze({__proto__:null,queryAllByLabelText:FP,queryByLabelText:jP,getAllByLabelText:LP,getByLabelText:DP,findAllByLabelText:MP,findByLabelText:$P,queryByPlaceholderText:UP,queryAllByPlaceholderText:BP,getByPlaceholderText:VP,getAllByPlaceholderText:HP,findAllByPlaceholderText:JP,findByPlaceholderText:zP,queryByText:GP,queryAllByText:WP,getByText:YP,getAllByText:KP,findAllByText:XP,findByText:QP,queryByDisplayValue:eO,queryAllByDisplayValue:ZP,getByDisplayValue:rO,getAllByDisplayValue:tO,findAllByDisplayValue:nO,findByDisplayValue:oO,queryByAltText:iO,queryAllByAltText:aO,getByAltText:lO,getAllByAltText:sO,findAllByAltText:uO,findByAltText:cO,queryByTitle:pO,queryAllByTitle:dO,getByTitle:hO,getAllByTitle:fO,findAllByTitle:mO,findByTitle:yO,queryByRole:wO,queryAllByRole:vO,getAllByRole:EO,getByRole:xO,findAllByRole:TO,findByRole:SO,queryByTestId:PO,queryAllByTestId:CO,getByTestId:_O,getAllByTestId:OO,findAllByTestId:AO,findByTestId:RO});function Os(e,t,r){return t===void 0&&(t=Ps),r===void 0&&(r={}),Object.keys(t).reduce((n,o)=>{let i=t[o];return n[o]=i.bind(null,e),n},r)}a(Os,"getQueriesForElement");var qO=a(e=>!e||Array.isArray(e)&&!e.length,"isRemoved");function gd(e){if(qO(e))throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.")}a(gd,"initialCheck");async function NO(e,t){let r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){gd(e);let n=(Array.isArray(e)?e:[e]).map(o=>{let i=o.parentElement;if(i===null)return()=>null;for(;i.parentElement;)i=i.parentElement;return()=>i.contains(o)?o:null});e=a(()=>n.map(o=>o()).filter(Boolean),"callback")}return gd(e()),su(()=>{let n;try{n=e()}catch(o){if(o.name==="TestingLibraryElementError")return;throw o}if(!qO(n))throw r},t)}a(NO,"waitForElementToBeRemoved");var Nb={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},pageHide:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},pageShow:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}}},Ib={doubleClick:"dblClick"};function bo(e,t){return ve().eventWrapper(()=>{if(!t)throw new Error("Unable to fire an event - please provide an event object.");if(!e)throw new Error('Unable to fire a "'+t.type+'" event - please provide a DOM element.');return e.dispatchEvent(t)})}a(bo,"fireEvent");function va(e,t,r,n){let{EventType:o="Event",defaultInit:i={}}=n===void 0?{}:n;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');let s={...i,...r},{target:{value:l,files:c,...u}={}}=s;l!==void 0&&IO(t,l),c!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:c}),Object.assign(t,u);let d=nm(t),p=d[o]||d.Event,h;if(typeof p=="function")h=new p(e,s);else{h=d.document.createEvent(o);let{bubbles:f,cancelable:m,detail:b,...g}=s;h.initEvent(e,f,m,b),Object.keys(g).forEach(v=>{h[v]=g[v]})}return["dataTransfer","clipboardData"].forEach(f=>{let m=s[f];typeof m=="object"&&(typeof d.DataTransfer=="function"?Object.defineProperty(h,f,{value:Object.getOwnPropertyNames(m).reduce((b,g)=>(Object.defineProperty(b,g,{value:m[g]}),b),new d.DataTransfer)}):Object.defineProperty(h,f,{value:m}))}),h}a(va,"createEvent");Object.keys(Nb).forEach(e=>{let{EventType:t,defaultInit:r}=Nb[e],n=e.toLowerCase();va[e]=(o,i)=>va(n,o,i,{EventType:t,defaultInit:r}),bo[e]=(o,i)=>bo(o,va[e](o,i))});function IO(e,t){let{set:r}=Object.getOwnPropertyDescriptor(e,"value")||{},n=Object.getPrototypeOf(e),{set:o}=Object.getOwnPropertyDescriptor(n,"value")||{};if(o&&r!==o)o.call(e,t);else if(r)r.call(e,t);else throw new Error("The given element does not have a value setter")}a(IO,"setNativeValue");Object.keys(Ib).forEach(e=>{let t=Ib[e];bo[e]=function(){return bo[t](...arguments)}});function jO(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
|
348
|
+
`)}a(jO,"unindent");function kO(e){return T5.default.compressToEncodedURIComponent(jO(e))}a(kO,"encode");function MO(e){return"https://testing-playground.com/#markup="+kO(e)}a(MO,"getPlaygroundUrl");var o3=a((e,t,r)=>Array.isArray(e)?e.forEach(n=>ud(n,t,r)):ud(e,t,r),"debug"),a3=a(function(e){if(e===void 0&&(e=ou().body),!e||!("innerHTML"in e)){console.log("The element you're providing isn't a valid DOM element.");return}if(!e.innerHTML){console.log("The provided element doesn't have any children.");return}let t=MO(e.innerHTML);return console.log(`Open this URL in your browser
|
|
349
|
+
|
|
350
|
+
`+t),t},"logTestingPlaygroundURL"),jb={debug:o3,logTestingPlaygroundURL:a3},i3=typeof document<"u"&&document.body?Os(document.body,Ps,jb):Object.keys(Ps).reduce((e,t)=>(e[t]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e),jb);function ye(e,t,r){return e.namespaceURI&&e.namespaceURI!=="http://www.w3.org/1999/xhtml"||(t=Array.isArray(t)?t:[t],!t.includes(e.tagName.toLowerCase()))?!1:r?Object.entries(r).every(([n,o])=>e[n]===o):!0}a(ye,"isElementType");function Tt(e){var t;if($O(e)&&e.defaultView)return e.defaultView;if(!((t=e.ownerDocument)===null||t===void 0)&&t.defaultView)return e.ownerDocument.defaultView;throw new Error(`Could not determine window of node. Node was ${LO(e)}`)}a(Tt,"getWindow");function $O(e){return e.nodeType===9}a($O,"isDocument");function LO(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}a(LO,"describe");function mm(e,t){return new Promise((r,n)=>{let o=new t;o.onerror=n,o.onabort=n,o.onload=()=>{r(String(o.result))},o.readAsText(e)})}a(mm,"readBlobText");function uu(e,t){let r={...t,length:t.length,item:a(n=>r[n],"item"),[Symbol.iterator]:a(function*(){for(let n=0;n<r.length;n++)yield r[n]},"nextFile")};return r.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(r,e.FileList.prototype),Object.freeze(r),r}a(uu,"createFileList");function pr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a(pr,"_define_property");var DO=class{getAsFile(){return this.file}getAsString(t){typeof this.data=="string"&&t(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(t,r){pr(this,"kind",void 0),pr(this,"type",void 0),pr(this,"file",null),pr(this,"data",void 0),typeof t=="string"?(this.kind="string",this.type=String(r),this.data=t):(this.kind="file",this.type=t.type,this.file=t)}};a(DO,"DataTransferItemStub");var FO=DO,BO=class extends Array{add(...t){let r=new FO(t[0],t[1]);return this.push(r),r}clear(){this.splice(0,this.length)}remove(t){this.splice(t,1)}};a(BO,"DataTransferItemListStub");var s3=BO;function sa(e,t){let[r,n]=e.split("/"),o=!n||n==="*";return i=>t?i.type===(o?r:e):o?i.type.startsWith(`${r}/`):i.type===r}a(sa,"getTypeMatcher");function UO(e){var t;return new(t=class{getData(r){var n;let o=(n=this.items.find(sa(r,!0)))!==null&&n!==void 0?n:this.items.find(sa(r,!1)),i="";return o?.getAsString(s=>{i=s}),i}setData(r,n){let o=this.items.findIndex(sa(r,!0)),i=new FO(n,r);o>=0?this.items.splice(o,1,i):this.items.push(i)}clearData(r){if(r){let n=this.items.findIndex(sa(r,!0));n>=0&&this.items.remove(n)}else this.items.clear()}get types(){let r=[];return this.files.length&&r.push("Files"),this.items.forEach(n=>r.push(n.type)),Object.freeze(r),r}setDragImage(){}constructor(){pr(this,"dropEffect","none"),pr(this,"effectAllowed","uninitialized"),pr(this,"items",new s3),pr(this,"files",uu(e,[]))}},a(t,"DataTransferStub"),t)}a(UO,"createDataTransferStub");function cu(e,t=[]){let r=typeof e.DataTransfer>"u"?UO(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:a(()=>uu(e,t),"get")}),r}a(cu,"createDataTransfer");async function HO(e,t){return t.kind==="file"?t.getAsFile():new e.Blob([await new Promise(r=>t.getAsString(r))],{type:t.type})}a(HO,"getBlobFromDataTransferItem");function ym(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a(ym,"_define_property");function bm(e,...t){var r;let n=Object.fromEntries(t.map(o=>[typeof o=="string"?"text/plain":o.type,Promise.resolve(o)]));return typeof e.ClipboardItem<"u"?new e.ClipboardItem(n):new(r=class{get types(){return Array.from(Object.keys(this.data))}async getType(o){let i=await this.data[o];if(!i)throw new Error(`${o} is not one of the available MIME types on this item.`);return i instanceof e.Blob?i:new e.Blob([i],{type:o})}constructor(o){ym(this,"data",void 0),this.data=o}},a(r,"ClipboardItem"),r)(n)}a(bm,"createClipboardItem");var go=Symbol("Manage ClipboardSub");function vd(e,t){var r;return Object.assign(new(r=class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let n="";for(let o of this.items){let i=o.types.includes("text/plain")?"text/plain":o.types.find(s=>s.startsWith("text/"));i&&(n+=await o.getType(i).then(s=>mm(s,e.FileReader)))}return n}async write(n){this.items=n}async writeText(n){this.items=[bm(e,n)]}constructor(...n){super(...n),ym(this,"items",[])}},a(r,"Clipboard"),r),{[go]:t})}a(vd,"createClipboardStub");function du(e){return!!e?.[go]}a(du,"isClipboardStub");function VO(e){if(du(e.navigator.clipboard))return e.navigator.clipboard[go];let t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard"),r,n={resetClipboardStub:a(()=>{r=vd(e,n)},"resetClipboardStub"),detachClipboardStub:a(()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0})},"detachClipboardStub")};return r=vd(e,n),Object.defineProperty(e.navigator,"clipboard",{get:a(()=>r,"get"),configurable:!0}),r[go]}a(VO,"attachClipboardStubToView");function JO(e){du(e.navigator.clipboard)&&e.navigator.clipboard[go].resetClipboardStub()}a(JO,"resetClipboardStubOnView");function zO(e){du(e.navigator.clipboard)&&e.navigator.clipboard[go].detachClipboardStub()}a(zO,"detachClipboardStubFromView");async function WO(e){let t=e.defaultView,r=t?.navigator.clipboard,n=r&&await r.read();if(!n)throw new Error("The Clipboard API is unavailable.");let o=cu(t);for(let i of n)for(let s of i.types)o.setData(s,await i.getType(s).then(l=>mm(l,t.FileReader)));return o}a(WO,"readDataTransferFromClipboard");async function gm(e,t){let r=Tt(e),n=r.navigator.clipboard,o=[];for(let i=0;i<t.items.length;i++){let s=t.items[i],l=await HO(r,s);o.push(bm(r,l))}if(!(n&&await n.write(o).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}a(gm,"writeDataTransferToClipboard");var _s=globalThis;typeof _s.afterEach=="function"&&_s.afterEach(()=>{typeof globalThis.window<"u"&&JO(globalThis.window)});typeof _s.afterAll=="function"&&_s.afterAll(()=>{typeof globalThis.window<"u"&&zO(globalThis.window)});var GO=["input:not([type=hidden]):not([disabled])","button:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contenteditable=""]','[contenteditable="true"]',"a[href]","[tabindex]:not([disabled])"].join(", ");function pu(e){return e.matches(GO)}a(pu,"isFocusable");function KO(e){return new e.constructor(e.type,e)}a(KO,"cloneEvent");function Xt(e){for(let r=e;r;r=r.parentElement)if(ye(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if(ye(r,"fieldset")){var t;if(r.hasAttribute("disabled")&&!(!((t=r.querySelector(":scope > legend"))===null||t===void 0)&&t.contains(e)))return!0}else if(r.tagName.includes("-")&&r.constructor.formAssociated&&r.hasAttribute("disabled"))return!0;return!1}a(Xt,"isDisabled");function $o(e){let t=e.activeElement;return t?.shadowRoot?$o(t.shadowRoot):Xt(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}a($o,"getActiveElement");function Li(e){var t;return(t=$o(e))!==null&&t!==void 0?t:e.body}a(Li,"getActiveElementOrBody");function YO(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}a(YO,"findClosest");function Ur(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}a(Ur,"isContentEditable");function vo(e){let t=XO(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}a(vo,"getContentEditable");function XO(e){return e.nodeType===1?e:e.parentElement}a(XO,"getElement");var QO=(function(e){return e.button="button",e.color="color",e.file="file",e.image="image",e.reset="reset",e.submit="submit",e.checkbox="checkbox",e.radio="radio",e})(QO||{});function vm(e){return ye(e,"button")||ye(e,"input")&&e.type in QO}a(vm,"isClickableInput");function wn(e){return wm(e)&&!e.readOnly||Ur(e)}a(wn,"isEditable");var ZO=(function(e){return e.text="text",e.date="date",e["datetime-local"]="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url",e.week="week",e})(ZO||{});function wm(e){return ye(e,"textarea")||ye(e,"input")&&e.type in ZO}a(wm,"isEditableInputOrTextArea");function Dt(e){return Em(e)&&wm(e)}a(Dt,"hasOwnSelection");function e_(e){return Em(e)&&vm(e)}a(e_,"hasNoSelection");function Em(e){return e.nodeType===1}a(Em,"isElement");function t_(e){let t=e.ownerDocument.getSelection();if(t?.focusNode&&Dt(e)){let n=vo(t.focusNode);if(n){if(!t.isCollapsed){var r;let o=((r=n.firstChild)===null||r===void 0?void 0:r.nodeType)===3?n.firstChild:n;t.setBaseAndExtent(o,0,o,0)}}else t.setBaseAndExtent(e,0,e,0)}}a(t_,"updateSelectionOnFocus");function En(e,t){return ve().eventWrapper(e)}a(En,"wrapEvent");function br(e){let t=YO(e,pu),r=$o(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(En(t?()=>t.focus():()=>r?.blur()),t_(t??e.ownerDocument.body))}a(br,"focusElement");function r_(e){!pu(e)||$o(e.ownerDocument)!==e||En(()=>e.blur())}a(r_,"blurElement");var Hr={};Hr.click=(e,t,r)=>{let n=t.closest("button,input,label,select,textarea"),o=n&&ye(n,"label")&&n.control;if(o&&o!==t)return()=>{pu(o)&&(br(o),r.dispatchEvent(o,KO(e)))};if(ye(t,"input",{type:"file"}))return()=>{r_(t),t.dispatchEvent(new(Tt(t)).Event("fileDialog")),br(t)}};var wo=Symbol("Displayed value in UI"),fr=Symbol("Displayed selection in UI"),As=Symbol("Initial value to compare on blur");function n_(e){return typeof e=="object"&&wo in e}a(n_,"isUIValue");function o_(e){return!!e&&typeof e=="object"&&fr in e}a(o_,"isUISelectionStart");function a_(e,t){e[As]===void 0&&(e[As]=e.value),e[wo]=t,e.value=Object.assign(new String(t),{[wo]:!0})}a(a_,"setUIValue");function Ft(e){return e[wo]===void 0?e.value:String(e[wo])}a(Ft,"getUIValue");function fu(e){e[wo]=void 0}a(fu,"setUIValueClean");function xm(e){e[As]=void 0}a(xm,"clearInitialValue");function i_(e){return e[As]}a(i_,"getInitialValue");function s_(e,t){e[fr]=t}a(s_,"setUISelectionRaw");function In(e,{focusOffset:t,anchorOffset:r=t},n="replace"){let o=Ft(e).length,i=a(p=>Math.max(0,Math.min(o,p)),"sanitizeOffset"),s=n==="replace"||e[fr]===void 0?i(r):e[fr].anchorOffset,l=i(t),c=Math.min(s,l),u=Math.max(s,l);if(e[fr]={anchorOffset:s,focusOffset:l},e.selectionStart===c&&e.selectionEnd===u)return;let d=Object.assign(new Number(c),{[fr]:!0});try{e.setSelectionRange(d,u)}catch{}}a(In,"setUISelection");function Eo(e){var t,r,n;let o=(n=e[fr])!==null&&n!==void 0?n:{anchorOffset:(t=e.selectionStart)!==null&&t!==void 0?t:0,focusOffset:(r=e.selectionEnd)!==null&&r!==void 0?r:0};return{...o,startOffset:Math.min(o.anchorOffset,o.focusOffset),endOffset:Math.max(o.anchorOffset,o.focusOffset)}}a(Eo,"getUISelection");function l_(e){return!!e[fr]}a(l_,"hasUISelection");function wa(e){e[fr]=void 0}a(wa,"setUISelectionClean");var Rs=globalThis.parseInt;function u_(e){let t=e.replace(/\D/g,"");if(t.length<2)return e;let r=Rs(t[0],10),n=Rs(t[1],10);if(r>=3||r===2&&n>=4){let o;return r>=3?o=1:o=2,wd(t,o)}return e.length===2?e:wd(t,2)}a(u_,"buildTimeValue");function wd(e,t){let r=e.slice(0,t),n=Math.min(Rs(r,10),23),o=e.slice(t),i=Rs(o,10),s=Math.min(i,59);return`${n.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`}a(wd,"build");function Tm(e,t){let r=e.cloneNode();return r.value=t,r.value===t}a(Tm,"isValidDateOrTimeValue");var c_=(function(e){return e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url",e})(c_||{});function d_(e){var t;let r=(t=e.getAttribute("maxlength"))!==null&&t!==void 0?t:"";return/^\d+$/.test(r)&&Number(r)>=0?Number(r):void 0}a(d_,"getMaxLength");function p_(e){return ye(e,"textarea")||ye(e,"input")&&e.type in c_}a(p_,"supportsMaxLength");function Sm(e,t,r,n){if(Ea(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};let o=Ed(e,t,r);if(o){if(Ea(o))return{node:o,offset:r>0?Math.min(1,o.nodeValue.length):Math.max(o.nodeValue.length-1,0)};if(ye(o,"br")){let i=Ed(o,void 0,r);return i?Ea(i)?{node:i,offset:r>0?0:i.nodeValue.length}:r<0&&ye(i,"br")?{node:o.parentNode,offset:la(o)}:{node:i.parentNode,offset:la(i)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:o.parentNode,offset:la(o)}:void 0}else return{node:o.parentNode,offset:la(o)+(r>0?1:0)}}}a(Sm,"getNextCursorPosition");function Ed(e,t,r){let n=Number(t)+(r<0?-1:0);return t!==void 0&&hu(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),h_(e,r===1?"next":"previous",f_)}a(Ed,"getNextCharacterContentNode");function f_(e){if(Ea(e))return!0;if(hu(e)){if(ye(e,["input","textarea"]))return e.type!=="hidden";if(ye(e,"br"))return!0}return!1}a(f_,"isTreatedAsCharacterContent");function la(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}a(la,"getOffset");function hu(e){return e.nodeType===1}a(hu,"isElement");function Ea(e){return e.nodeType===3}a(Ea,"isTextNode");function h_(e,t,r){for(;;){var n;let o=e[`${t}Sibling`];if(o){if(e=m_(o,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!hu(e.parentNode)||!Ur(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}a(h_,"walkNodes");function m_(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}a(m_,"getDescendant");var Ha=Symbol("Track programmatic changes for React workaround");function y_(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&Tt(e).REACT_VERSION===17}a(y_,"isReact17Element");function b_(e){y_(e)&&(e[Ha]={previousValue:String(e.value),tracked:[]})}a(b_,"startTrackValue");function g_(e,t){var r,n;(n=e[Ha])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[Ha]||(fu(e),In(e,{focusOffset:t.length}))}a(g_,"trackOrSetValue");function v_(e,t){var r;let n=e[Ha];if(e[Ha]=void 0,!(!(n==null||(r=n.tracked)===null||r===void 0)&&r.length))return;let o=n.tracked.length===2&&n.tracked[0]===n.previousValue&&n.tracked[1]===e.value;o||fu(e),l_(e)&&In(e,{focusOffset:o?t:e.value.length})}a(v_,"commitValueAfterInput");function Cm(e){let t=w_(e);if(t&&Dt(t))return{type:"input",selection:Eo(t)};let r=t?.ownerDocument.getSelection();return{type:vo(e)&&r?.anchorNode&&vo(r.anchorNode)?"contenteditable":"default",selection:r}}a(Cm,"getTargetTypeAndSelection");function w_(e){return e.nodeType===1?e:e.parentElement}a(w_,"getElement");function E_(e){let t=Cm(e);if(t.type==="input")return t.selection;if(t.type==="contenteditable"){var r;return(r=t.selection)===null||r===void 0?void 0:r.getRangeAt(0)}}a(E_,"getInputRange");function Vr({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var o,i;if(Cm(e).type==="input")return In(e,{anchorOffset:n,focusOffset:t});(i=r.ownerDocument)===null||i===void 0||(o=i.getSelection())===null||o===void 0||o.setBaseAndExtent(r,n,e,t)}a(Vr,"setSelection");function Pm(e){return ye(e,"input")&&["date","time"].includes(e.type)}a(Pm,"isDateOrTime");function xn(e,t,r,n="insertText"){let o=E_(t);o&&(!Pm(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in o?x_(e,t,o,r,n):T_(e,t,o,r,n)))}a(xn,"input");function x_(e,t,r,n,o){let i=!1;if(!r.collapsed)i=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(o)){let s=Sm(r.startContainer,r.startOffset,o==="deleteContentBackward"?-1:1,o);if(s){i=!0;let l=r.cloneRange();l.comparePoint(s.node,s.offset)<0?l.setStart(s.node,s.offset):l.setEnd(s.node,s.offset),l.deleteContents()}}if(n)if(r.endContainer.nodeType===3){let s=r.endOffset;r.endContainer.insertData(s,n),r.setStart(r.endContainer,s+n.length),r.setEnd(r.endContainer,s+n.length)}else{let s=t.ownerDocument.createTextNode(n);r.insertNode(s),r.setStart(s,n.length),r.setEnd(s,n.length)}(i||n)&&e.dispatchUIEvent(t,"input",{inputType:o})}a(x_,"editContenteditable");function T_(e,t,r,n,o){let i=n;if(p_(t)){let u=d_(t);if(u!==void 0&&n.length>0){let d=u-t.value.length;if(d>0)i=n.substring(0,d);else return}}let{newValue:s,newOffset:l,oldValue:c}=S_(i,t,r,o);s===c&&l===r.startOffset&&l===r.endOffset||ye(t,"input",{type:"number"})&&!C_(s)||(a_(t,s),Vr({focusNode:t,anchorOffset:l,focusOffset:l}),Pm(t)?Tm(t,s)&&(xd(e,t,l,{}),e.dispatchUIEvent(t,"change"),xm(t)):xd(e,t,l,{data:n,inputType:o}))}a(T_,"editInputElement");function S_(e,t,{startOffset:r,endOffset:n},o){let i=Ft(t),s=Math.max(0,r===n&&o==="deleteContentBackward"?r-1:r),l=i.substring(0,s),c=Math.min(i.length,r===n&&o==="deleteContentForward"?r+1:n),u=i.substring(c,i.length),d=`${l}${e}${u}`,p=s+e.length;if(ye(t,"input",{type:"time"})){let h=u_(d);h!==""&&Tm(t,h)&&(d=h,p=h.length)}return{oldValue:i,newValue:d,newOffset:p}}a(S_,"calculateNewValue");function xd(e,t,r,n){e.dispatchUIEvent(t,"input",n),v_(t,r)}a(xd,"commitInput");function C_(e){var t,r;let n=e.split("e",2);return!(/[^\d.\-e]/.test(e)||Number((t=e.match(/-/g))===null||t===void 0?void 0:t.length)>2||Number((r=e.match(/\./g))===null||r===void 0?void 0:r.length)>1||n[1]&&!/^-?\d*$/.test(n[1]))}a(C_,"isValidNumberInput");Hr.cut=(e,t,r)=>()=>{wn(t)&&xn(r,t,"","deleteByCut")};function P_(e){return e?Ur(e)?e.textContent:Ft(e):null}a(P_,"getValueOrTextContent");function O_(e){let t=Tt(e);for(let r=e;r?.ownerDocument;r=r.parentElement){let{display:n,visibility:o}=t.getComputedStyle(r);if(n==="none"||o==="hidden")return!1}return!0}a(O_,"isVisible");function __(e,t){let r=e.ownerDocument,n=r.querySelectorAll(GO),o=Array.from(n).filter(c=>c===e||!(Number(c.getAttribute("tabindex"))<0||Xt(c)));Number(e.getAttribute("tabindex"))>=0&&o.sort((c,u)=>{let d=Number(c.getAttribute("tabindex")),p=Number(u.getAttribute("tabindex"));return d===p?0:d===0?1:p===0?-1:d-p});let i={},s=[r.body],l=ye(e,"input",{type:"radio"})?e.name:void 0;o.forEach(c=>{let u=c;if(ye(u,"input",{type:"radio"})&&u.name){if(u===e){s.push(u);return}else if(u.name===l)return;if(u.checked){s=s.filter(d=>!ye(d,"input",{type:"radio",name:u.name})),s.push(u),i[u.name]=u;return}if(typeof i[u.name]<"u")return}s.push(u)});for(let c=s.findIndex(u=>u===e);;)if(c+=t?-1:1,c===s.length?c=0:c===-1&&(c=s.length-1),s[c]===e||s[c]===r.body||O_(s[c]))return s[c]}a(__,"getTabDestination");function Td(e,t){if(Dt(e)){let r=Eo(e);Vr({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset})}else{let r=e.ownerDocument.getSelection();if(!r?.focusNode)return;if(r.isCollapsed){let n=Sm(r.focusNode,r.focusOffset,t);n&&Vr({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}a(Td,"moveSelection");function Om(e){if(Dt(e))return Vr({focusNode:e,anchorOffset:0,focusOffset:Ft(e).length});var t;let r=(t=vo(e))!==null&&t!==void 0?t:e.ownerDocument.body;Vr({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}a(Om,"selectAll");function A_(e){if(Dt(e))return Eo(e).startOffset===0&&Eo(e).endOffset===Ft(e).length;var t;let r=(t=vo(e))!==null&&t!==void 0?t:e.ownerDocument.body,n=e.ownerDocument.getSelection();return n?.anchorNode===r&&n.focusNode===r&&n.anchorOffset===0&&n.focusOffset===r.childNodes.length}a(A_,"isAllSelected");function Gn(e,t,r){var n;if(Dt(e))return Vr({focusNode:e,anchorOffset:t,focusOffset:r});if(Ur(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return Vr({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}a(Gn,"setSelectionRange");function ua(e,t,r){let n=Tt(t),o=Array.from(t.ownerDocument.querySelectorAll(t.name?`input[type="radio"][name="${n.CSS.escape(t.name)}"]`:'input[type="radio"][name=""], input[type="radio"]:not([name])'));for(let i=o.findIndex(s=>s===t)+r;;i+=r){if(o[i]||(i=r>0?0:o.length-1),o[i]===t)return;if(!Xt(o[i])){br(o[i]),e.dispatchUIEvent(o[i],"click");return}}}a(ua,"walkRadio");Hr.keydown=(e,t,r)=>{var n,o;return(o=(n=kb[e.key])===null||n===void 0?void 0:n.call(kb,e,t,r))!==null&&o!==void 0?o:l3(e,t,r)};var kb={ArrowDown:a((e,t,r)=>{if(ye(t,"input",{type:"radio"}))return()=>ua(r,t,1)},"ArrowDown"),ArrowLeft:a((e,t,r)=>ye(t,"input",{type:"radio"})?()=>ua(r,t,-1):()=>Td(t,-1),"ArrowLeft"),ArrowRight:a((e,t,r)=>ye(t,"input",{type:"radio"})?()=>ua(r,t,1):()=>Td(t,1),"ArrowRight"),ArrowUp:a((e,t,r)=>{if(ye(t,"input",{type:"radio"}))return()=>ua(r,t,-1)},"ArrowUp"),Backspace:a((e,t,r)=>{if(wn(t))return()=>{xn(r,t,"","deleteContentBackward")}},"Backspace"),Delete:a((e,t,r)=>{if(wn(t))return()=>{xn(r,t,"","deleteContentForward")}},"Delete"),End:a((e,t)=>{if(ye(t,["input","textarea"])||Ur(t))return()=>{var r,n;let o=(n=(r=P_(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;Gn(t,o,o)}},"End"),Home:a((e,t)=>{if(ye(t,["input","textarea"])||Ur(t))return()=>{Gn(t,0,0)}},"Home"),PageDown:a((e,t)=>{if(ye(t,["input"]))return()=>{let r=Ft(t).length;Gn(t,r,r)}},"PageDown"),PageUp:a((e,t)=>{if(ye(t,["input"]))return()=>{Gn(t,0,0)}},"PageUp"),Tab:a((e,t,r)=>()=>{let n=__(t,r.system.keyboard.modifiers.Shift);br(n),Dt(n)&&In(n,{anchorOffset:0,focusOffset:n.value.length})},"Tab")},l3=a((e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>Om(t)},"combinationBehavior");Hr.keypress=(e,t,r)=>{if(e.key==="Enter"){if(ye(t,"button")||ye(t,"input")&&u3.includes(t.type)||ye(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if(ye(t,"input")){let n=t.form,o=n?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return o?()=>r.dispatchUIEvent(o,"click"):n&&c3.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(wn(t)){let n=e.key==="Enter"?Ur(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",o=e.key==="Enter"?`
|
|
351
|
+
`:e.key;return()=>xn(r,t,o,n)}};var u3=["button","color","file","image","reset","submit"],c3=["email","month","password","search","tel","text","url","week"];Hr.keyup=(e,t,r)=>{var n;return(n=Mb[e.key])===null||n===void 0?void 0:n.call(Mb,e,t,r)};var Mb={" ":a((e,t,r)=>{if(vm(t))return()=>r.dispatchUIEvent(t,"click")}," ")};Hr.paste=(e,t,r)=>{if(wn(t))return()=>{var n;let o=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");o&&xn(r,t,o,"insertFromPaste")}};var R_={auxclick:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeinput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},click:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},contextmenu:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblclick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusin:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusout:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},keydown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keypress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyup:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},mousedown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseenter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseleave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mousemove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseout:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseover:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseup:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerover:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerenter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerdown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointermove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerup:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointercancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerout:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerleave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}}};function _m(e){return R_[e].EventType}a(_m,"getEventClass");var d3=["MouseEvent","PointerEvent"];function q_(e){return d3.includes(_m(e))}a(q_,"isMouseEvent");function N_(e){return _m(e)==="KeyboardEvent"}a(N_,"isKeyboardEvent");var p3={ClipboardEvent:[j_],Event:[],FocusEvent:[Bn,k_],InputEvent:[Bn,M_],MouseEvent:[Bn,Di,Sd],PointerEvent:[Bn,Di,Sd,L_],KeyboardEvent:[Bn,Di,$_]};function Am(e,t,r){let n=Tt(t),{EventType:o,defaultInit:i}=R_[e],s=new(I_(n))[o](e,i);return p3[o].forEach(l=>l(s,r??{})),s}a(Am,"createEvent");function I_(e){var t,r,n,o,i,s,l,c,u,d,p,h,f,m,b,g;let v=(g=e.Event)!==null&&g!==void 0?g:(t=class{},a(t,"Event"),t);var w;let P=(w=e.AnimationEvent)!==null&&w!==void 0?w:(r=class extends v{},a(r,"AnimationEvent"),r);var A;let R=(A=e.ClipboardEvent)!==null&&A!==void 0?A:(n=class extends v{},a(n,"ClipboardEvent"),n);var T;let E=(T=e.PopStateEvent)!==null&&T!==void 0?T:(o=class extends v{},a(o,"PopStateEvent"),o);var x;let C=(x=e.ProgressEvent)!==null&&x!==void 0?x:(i=class extends v{},a(i,"ProgressEvent"),i);var k;let N=(k=e.TransitionEvent)!==null&&k!==void 0?k:(s=class extends v{},a(s,"TransitionEvent"),s);var U;let D=(U=e.UIEvent)!==null&&U!==void 0?U:(l=class extends v{},a(l,"UIEvent"),l);var O;let M=(O=e.CompositionEvent)!==null&&O!==void 0?O:(c=class extends D{},a(c,"CompositionEvent"),c);var $;let K=($=e.FocusEvent)!==null&&$!==void 0?$:(u=class extends D{},a(u,"FocusEvent"),u);var G;let re=(G=e.InputEvent)!==null&&G!==void 0?G:(d=class extends D{},a(d,"InputEvent"),d);var ae;let Z=(ae=e.KeyboardEvent)!==null&&ae!==void 0?ae:(p=class extends D{},a(p,"KeyboardEvent"),p);var W;let z=(W=e.MouseEvent)!==null&&W!==void 0?W:(h=class extends D{},a(h,"MouseEvent"),h);var Y;let ne=(Y=e.DragEvent)!==null&&Y!==void 0?Y:(f=class extends z{},a(f,"DragEvent"),f);var X;let se=(X=e.PointerEvent)!==null&&X!==void 0?X:(m=class extends z{},a(m,"PointerEvent"),m);var ce;let Me=(ce=e.TouchEvent)!==null&&ce!==void 0?ce:(b=class extends D{},a(b,"TouchEvent"),b);return{Event:v,AnimationEvent:P,ClipboardEvent:R,PopStateEvent:E,ProgressEvent:C,TransitionEvent:N,UIEvent:D,CompositionEvent:M,FocusEvent:K,InputEvent:re,KeyboardEvent:Z,MouseEvent:z,DragEvent:ne,PointerEvent:se,TouchEvent:Me}}a(I_,"getEventConstructors");function Er(e,t){for(let[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:a(()=>n??null,"get")})}a(Er,"assignProps");function je(e){return Number(e??0)}a(je,"sanitizeNumber");function j_(e,{clipboardData:t}){Er(e,{clipboardData:t})}a(j_,"initClipboardEvent");function k_(e,{relatedTarget:t}){Er(e,{relatedTarget:t})}a(k_,"initFocusEvent");function M_(e,{data:t,inputType:r,isComposing:n}){Er(e,{data:t,isComposing:!!n,inputType:String(r)})}a(M_,"initInputEvent");function Bn(e,{view:t,detail:r}){Er(e,{view:t,detail:je(r??0)})}a(Bn,"initUIEvent");function Di(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,modifierAltGraph:i,modifierCapsLock:s,modifierFn:l,modifierFnLock:c,modifierNumLock:u,modifierScrollLock:d,modifierSymbol:p,modifierSymbolLock:h}){Er(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!o,getModifierState(f){return!!{Alt:t,AltGraph:i,CapsLock:s,Control:r,Fn:l,FnLock:c,Meta:n,NumLock:u,ScrollLock:d,Shift:o,Symbol:p,SymbolLock:h}[f]}})}a(Di,"initUIEventModifiers");function $_(e,{key:t,code:r,location:n,repeat:o,isComposing:i,charCode:s}){Er(e,{key:String(t),code:String(r),location:je(n),repeat:!!o,isComposing:!!i,charCode:s})}a($_,"initKeyboardEvent");function Sd(e,{x:t,y:r,screenX:n,screenY:o,clientX:i=t,clientY:s=r,button:l,buttons:c,relatedTarget:u,offsetX:d,offsetY:p,pageX:h,pageY:f}){Er(e,{screenX:je(n),screenY:je(o),clientX:je(i),x:je(i),clientY:je(s),y:je(s),button:je(l),buttons:je(c),relatedTarget:u,offsetX:je(d),offsetY:je(p),pageX:je(h),pageY:je(f)})}a(Sd,"initMouseEvent");function L_(e,{pointerId:t,width:r,height:n,pressure:o,tangentialPressure:i,tiltX:s,tiltY:l,twist:c,pointerType:u,isPrimary:d}){Er(e,{pointerId:je(t),width:je(r??1),height:je(n??1),pressure:je(o),tangentialPressure:je(i),tiltX:je(s),tiltY:je(l),twist:je(c),pointerType:String(u),isPrimary:!!d})}a(L_,"initPointerEvent");function D_(e,t,r,n=!1){(q_(t)||N_(t))&&(r={...r,...this.system.getUIEventModifiers()});let o=Am(t,e,r);return Rm.call(this,e,o,n)}a(D_,"dispatchUIEvent");function Rm(e,t,r=!1){var n;let o=t.type,i=r?()=>{}:(n=Hr[o])===null||n===void 0?void 0:n.call(Hr,t,e,this);if(i){t.preventDefault();let s=!1;return Object.defineProperty(t,"defaultPrevented",{get:a(()=>s,"get")}),Object.defineProperty(t,"preventDefault",{value:a(()=>{s=t.cancelable},"value")}),En(()=>e.dispatchEvent(t)),s||i(),!s}return En(()=>e.dispatchEvent(t))}a(Rm,"dispatchEvent");function Rr(e,t,r){let n=Am(t,e,r);En(()=>e.dispatchEvent(n))}a(Rr,"dispatchDOMEvent");var $b=Symbol("patched focus/blur methods");function qm(e){if(e.prototype[$b])return;let{focus:t,blur:r}=e.prototype;Object.defineProperties(e.prototype,{focus:{configurable:!0,get:a(()=>o,"get")},blur:{configurable:!0,get:a(()=>i,"get")},[$b]:{configurable:!0,get:a(()=>({focus:t,blur:r}),"get")}});let n;function o(s){if(this.ownerDocument.visibilityState!=="hidden")return t.call(this,s);let l=Cd(this.ownerDocument);if(l===this)return;let c=Symbol("focus call");n=c,l&&(r.call(l),Rr(l,"blur",{relatedTarget:this}),Rr(l,"focusout",{relatedTarget:n===c?this:null})),n===c&&(t.call(this,s),Rr(this,"focus",{relatedTarget:l})),n===c&&Rr(this,"focusin",{relatedTarget:l})}a(o,"patchedFocus");function i(){if(this.ownerDocument.visibilityState!=="hidden")return r.call(this);let s=Cd(this.ownerDocument);s===this&&(n=Symbol("blur call"),r.call(this),Rr(s,"blur",{relatedTarget:null}),Rr(s,"focusout",{relatedTarget:null}))}a(i,"patchedBlur")}a(qm,"patchFocus");function Cd(e){let t=$o(e);return t?.tagName==="BODY"?null:t}a(Cd,"getActiveTarget");var Vu=Symbol("Interceptor for programmatical calls");function an(e,t,r){let n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=Object.getOwnPropertyDescriptor(e,t),i=n?.set?"set":"value";if(typeof n?.[i]!="function"||n[i][Vu])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function s(...l){let{applyNative:c=!1,realArgs:u,then:d}=r.call(this,...l),p=(!c&&o||n)[i];i==="set"?p.call(this,u):p.call(this,...u),d?.()}a(s,"intercept"),s[Vu]=Vu,Object.defineProperty(e,t,{...o??n,[i]:s})}a(an,"prepareInterceptor");function F_(e){an(e,"value",a(function(t){let r=n_(t);return r&&b_(this),{applyNative:!!r,realArgs:B_(this,t),then:r?void 0:()=>g_(this,String(t))}},"interceptorImpl"))}a(F_,"prepareValueInterceptor");function B_(e,t){return ye(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}a(B_,"sanitizeValue");function U_(e){an(e,"setSelectionRange",a(function(t,...r){let n=o_(t);return{applyNative:!!n,realArgs:[Number(t),...r],then:a(()=>n?void 0:wa(e),"then")}},"interceptorImpl")),an(e,"selectionStart",a(function(t){return{realArgs:t,then:a(()=>wa(e),"then")}},"interceptorImpl")),an(e,"selectionEnd",a(function(t){return{realArgs:t,then:a(()=>wa(e),"then")}},"interceptorImpl")),an(e,"select",a(function(){return{realArgs:[],then:a(()=>s_(e,{anchorOffset:0,focusOffset:Ft(e).length}),"then")}},"interceptorImpl"))}a(U_,"prepareSelectionInterceptor");function H_(e){an(e,"setRangeText",a(function(...t){return{realArgs:t,then:a(()=>{fu(e),wa(e)},"then")}},"interceptorImpl"))}a(H_,"prepareRangeTextInterceptor");var to=Symbol("Node prepared with document state workarounds");function Nm(e){e[to]||(e.addEventListener("focus",t=>{let r=t.target;Pd(r)},{capture:!0,passive:!0}),e.activeElement&&Pd(e.activeElement),e.addEventListener("blur",t=>{let r=t.target,n=i_(r);n!==void 0&&(r.value!==n&&Rr(r,"change"),xm(r))},{capture:!0,passive:!0}),e[to]=to)}a(Nm,"prepareDocument");function Pd(e){e[to]||(ye(e,["input","textarea"])&&(F_(e),U_(e),H_(e)),e[to]=to)}a(Pd,"prepareElement");function V_(e){return J_(e)?e:e.ownerDocument}a(V_,"getDocumentFromNode");function J_(e){return e.nodeType===9}a(J_,"isDocument");var vt=(function(e){return e[e.Trigger=2]="Trigger",e[e.Call=1]="Call",e})({});function Kn(e,t){e.levelRefs[t]={}}a(Kn,"setLevelRef");function ca(e,t){return e.levelRefs[t]}a(ca,"getLevelRef");function Tn(e){let t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}a(Tn,"wait");var Fi=(function(e){return e[e.EachTrigger=4]="EachTrigger",e[e.EachApiCall=2]="EachApiCall",e[e.EachTarget=1]="EachTarget",e[e.Never=0]="Never",e})({});function Or(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a(Or,"_define_property");var Ut=(function(e){return e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD",e})({}),f3=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function Od(e){return f3.includes(e)}a(Od,"isModifierKey");var h3=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function _d(e){return h3.includes(e)}a(_d,"isModifierLock");var z_=class{isKeyPressed(t){return this.pressed.has(String(t.code))}getPressedKeys(){return this.pressed.values().map(t=>t.keyDef)}async keydown(t,r){let n=String(r.key),o=String(r.code),i=Li(t.config.document);this.setKeydownTarget(i),this.pressed.add(o,r),Od(n)&&(this.modifiers[n]=!0);let s=t.dispatchUIEvent(i,"keydown",{key:n,code:o});_d(n)&&!this.modifiers[n]&&(this.modifiers[n]=!0,this.modifierLockStart[n]=!0),s&&this.pressed.setUnprevented(o),s&&this.hasKeyPress(n)&&t.dispatchUIEvent(Li(t.config.document),"keypress",{key:n,code:o,charCode:r.key==="Enter"?13:String(r.key).charCodeAt(0)})}async keyup(t,r){let n=String(r.key),o=String(r.code),i=this.pressed.isUnprevented(o);this.pressed.delete(o),Od(n)&&!this.pressed.values().find(s=>s.keyDef.key===n)&&(this.modifiers[n]=!1),t.dispatchUIEvent(Li(t.config.document),"keyup",{key:n,code:o},!i),_d(n)&&this.modifiers[n]&&(this.modifierLockStart[n]?this.modifierLockStart[n]=!1:this.modifiers[n]=!1)}setKeydownTarget(t){t!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=t}hasKeyPress(t){return(t.length===1||t==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(t){Or(this,"system",void 0),Or(this,"modifiers",{Alt:!1,AltGraph:!1,CapsLock:!1,Control:!1,Fn:!1,FnLock:!1,Meta:!1,NumLock:!1,ScrollLock:!1,Shift:!1,Symbol:!1,SymbolLock:!1}),Or(this,"pressed",new class{add(r,n){var o,i,s;(s=(o=this.registry)[i=r])!==null&&s!==void 0||(o[i]={keyDef:n,unpreventedDefault:!1})}has(r){return!!this.registry[r]}setUnprevented(r){let n=this.registry[r];n&&(n.unpreventedDefault=!0)}isUnprevented(r){var n;return!!(!((n=this.registry[r])===null||n===void 0)&&n.unpreventedDefault)}delete(r){delete this.registry[r]}values(){return Object.values(this.registry)}constructor(){Or(this,"registry",{})}}),Or(this,"carryChar",""),Or(this,"lastKeydownTarget",void 0),Or(this,"modifierLockStart",{}),this.system=t}};a(z_,"KeyboardHost");var m3=z_,y3=[..."0123456789".split("").map(e=>({code:`Digit${e}`,key:e})),...")!@#$%^&*(".split("").map((e,t)=>({code:`Digit${t}`,key:e,shiftKey:!0})),..."abcdefghijklmnopqrstuvwxyz".split("").map(e=>({code:`Key${e.toUpperCase()}`,key:e})),..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map(e=>({code:`Key${e}`,key:e,shiftKey:!0})),{code:"BracketLeft",key:"["},{code:"BracketLeft",key:"{",shiftKey:!0},{code:"BracketRight",key:"]"},{code:"BracketRight",key:"}",shiftKey:!0},{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:Ut.LEFT},{code:"AltRight",key:"Alt",location:Ut.RIGHT},{code:"ShiftLeft",key:"Shift",location:Ut.LEFT},{code:"ShiftRight",key:"Shift",location:Ut.RIGHT},{code:"ControlLeft",key:"Control",location:Ut.LEFT},{code:"ControlRight",key:"Control",location:Ut.RIGHT},{code:"MetaLeft",key:"Meta",location:Ut.LEFT},{code:"MetaRight",key:"Meta",location:Ut.RIGHT},{code:"OSLeft",key:"OS",location:Ut.LEFT},{code:"OSRight",key:"OS",location:Ut.RIGHT},{code:"ContextMenu",key:"ContextMenu"},{code:"Tab",key:"Tab"},{code:"CapsLock",key:"CapsLock"},{code:"Backspace",key:"Backspace"},{code:"Enter",key:"Enter"},{code:"Escape",key:"Escape"},{code:"ArrowUp",key:"ArrowUp"},{code:"ArrowDown",key:"ArrowDown"},{code:"ArrowLeft",key:"ArrowLeft"},{code:"ArrowRight",key:"ArrowRight"},{code:"Home",key:"Home"},{code:"End",key:"End"},{code:"Delete",key:"Delete"},{code:"PageUp",key:"PageUp"},{code:"PageDown",key:"PageDown"},{code:"Fn",key:"Fn"},{code:"Symbol",key:"Symbol"},{code:"AltRight",key:"AltGraph"}],b3=[{name:"MouseLeft",pointerType:"mouse",button:"primary"},{name:"MouseRight",pointerType:"mouse",button:"secondary"},{name:"MouseMiddle",pointerType:"mouse",button:"auxiliary"},{name:"TouchA",pointerType:"touch"},{name:"TouchB",pointerType:"touch"},{name:"TouchC",pointerType:"touch"}];function W_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a(W_,"_define_property");var G_=class{getButtons(){let t=0;for(let r of Object.keys(this.pressed))t|=2**Number(r);return t}down(t){let r=qs(t.button);if(r in this.pressed){this.pressed[r].push(t);return}return this.pressed[r]=[t],r}up(t){let r=qs(t.button);if(r in this.pressed&&(this.pressed[r]=this.pressed[r].filter(n=>n.name!==t.name),this.pressed[r].length===0))return delete this.pressed[r],r}constructor(){W_(this,"pressed",{})}};a(G_,"Buttons");var K_=G_,Lb={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function qs(e=0){return e in Lb?Lb[e]:Number(e)}a(qs,"getMouseButtonId");var Db={1:2,2:1};function Ns(e){return e=qs(e),e in Db?Db[e]:e}a(Ns,"getMouseEventButton");function Y_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a(Y_,"_define_property");var X_=class{get countPressed(){return this.pressedKeys.size}isPressed(t){return this.pressedKeys.has(t.name)}addPressed(t){return this.pressedKeys.add(t.name)}removePressed(t){return this.pressedKeys.delete(t.name)}constructor(){Y_(this,"pressedKeys",new Set)}};a(X_,"Device");var g3=X_;function ro(e,t){let r=[];for(let i=e;i;i=i.parentElement)r.push(i);let n=[];for(let i=t;i;i=i.parentElement)n.push(i);let o=0;for(;!(o>=r.length||o>=n.length||r[r.length-1-o]!==n[n.length-1-o]);o++);return[r.slice(0,r.length-o),n.slice(0,n.length-o),n.slice(n.length-o)]}a(ro,"getTreeDiff");function Is({target:e,node:t,offset:r}){return Dt(e)?{node:e,offset:r??Ft(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:Im(e,r)}a(Is,"resolveCaretPosition");function Im(e,t,r=!0){let n=t===void 0?e.childNodes.length-1:0,o=t===void 0?-1:1;for(;t===void 0?n>=(r?Math.max(e.childNodes.length-1,0):0):n<=e.childNodes.length;){if(t&&n===e.childNodes.length)throw new Error("The given offset is out of bounds.");let i=e.childNodes.item(n),s=String(i.textContent);if(s.length)if(t!==void 0&&s.length<t)t-=s.length;else{if(i.nodeType===1)return Im(i,t,!1);if(i.nodeType===3)return{node:i,offset:t??i.nodeValue.length}}n+=o}return{node:e,offset:e.childNodes.length}}a(Im,"findNodeAtTextOffset");function Q_({document:e,target:t,clickCount:r,node:n,offset:o}){if(e_(t))return;let i=Dt(t),s=String(i?Ft(t):t.textContent),[l,c]=n?[o,o]:Z_(s,o,r);if(i)return In(t,{anchorOffset:l??s.length,focusOffset:c??s.length}),{node:t,start:l??0,end:c??s.length};{let{node:u,offset:d}=Is({target:t,node:n,offset:l}),{node:p,offset:h}=Is({target:t,node:n,offset:c}),f=t.ownerDocument.createRange();try{f.setStart(u,d),f.setEnd(p,h)}catch{throw new Error("The given offset is out of bounds.")}let m=e.getSelection();return m?.removeAllRanges(),m?.addRange(f.cloneRange()),f}}a(Q_,"setSelectionPerMouseDown");function Z_(e,t,r){if(r%3===1||e.length===0)return[t,t];let n=t??e.length;return r%3===2?[n-e.substr(0,t).match(/(\w+|\s+|\W)?$/)[0].length,t===void 0?t:t+e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length]:[n-e.substr(0,t).match(/[^\r\n]*$/)[0].length,t===void 0?t:t+e.substr(t).match(/^[^\r\n]*/)[0].length]}a(Z_,"getTextRange");function eA(e,{document:t,target:r,node:n,offset:o}){let i=Is({target:r,node:n,offset:o});if("node"in e){if(i.node===e.node){let s=i.offset<e.start?e.end:e.start,l=i.offset>e.end||i.offset<e.start?i.offset:e.end;In(e.node,{anchorOffset:s,focusOffset:l})}}else{let s=e.cloneRange(),l=s.comparePoint(i.node,i.offset);l<0?s.setStart(i.node,i.offset):l>0&&s.setEnd(i.node,i.offset);let c=t.getSelection();c?.removeAllRanges(),c?.addRange(s.cloneRange())}}a(eA,"modifySelectionPerMouseMove");function jm(e,t){var r,n,o,i,s,l,c,u,d,p,h,f,m,b,g,v,w,P,A,R,T,E,x,C;return e.target!==t.target||((r=e.coords)===null||r===void 0?void 0:r.x)!==((n=t.coords)===null||n===void 0?void 0:n.x)||((o=e.coords)===null||o===void 0?void 0:o.y)!==((i=t.coords)===null||i===void 0?void 0:i.y)||((s=e.coords)===null||s===void 0?void 0:s.clientX)!==((l=t.coords)===null||l===void 0?void 0:l.clientX)||((c=e.coords)===null||c===void 0?void 0:c.clientY)!==((u=t.coords)===null||u===void 0?void 0:u.clientY)||((d=e.coords)===null||d===void 0?void 0:d.offsetX)!==((p=t.coords)===null||p===void 0?void 0:p.offsetX)||((h=e.coords)===null||h===void 0?void 0:h.offsetY)!==((f=t.coords)===null||f===void 0?void 0:f.offsetY)||((m=e.coords)===null||m===void 0?void 0:m.pageX)!==((b=t.coords)===null||b===void 0?void 0:b.pageX)||((g=e.coords)===null||g===void 0?void 0:g.pageY)!==((v=t.coords)===null||v===void 0?void 0:v.pageY)||((w=e.coords)===null||w===void 0?void 0:w.screenX)!==((P=t.coords)===null||P===void 0?void 0:P.screenX)||((A=e.coords)===null||A===void 0?void 0:A.screenY)!==((R=t.coords)===null||R===void 0?void 0:R.screenY)||((T=e.caret)===null||T===void 0?void 0:T.node)!==((E=t.caret)===null||E===void 0?void 0:E.node)||((x=e.caret)===null||x===void 0?void 0:x.offset)!==((C=t.caret)===null||C===void 0?void 0:C.offset)}a(jm,"isDifferentPointerPosition");function _r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a(_r,"_define_property");var tA=class{move(t,r,n){let o=this.position,i=this.getTarget(t);if(this.position=r,!jm(o,r))return;let s=this.getTarget(t),l=this.getEventInit("mousemove"),[c,u]=ro(i,s);return{leave:a(()=>{i!==s&&(t.dispatchUIEvent(i,"mouseout",l),c.forEach(d=>t.dispatchUIEvent(d,"mouseleave",l)))},"leave"),enter:a(()=>{i!==s&&(t.dispatchUIEvent(s,"mouseover",l),u.forEach(d=>t.dispatchUIEvent(d,"mouseenter",l)))},"enter"),move:a(()=>{n||(t.dispatchUIEvent(s,"mousemove",l),this.modifySelecting(t))},"move")}}down(t,r,n){let o=this.buttons.down(r);if(o===void 0)return;let i=this.getTarget(t);this.buttonDownTarget[o]=i;let s=this.getEventInit("mousedown",r.button),l=Xt(i);!n&&(l||t.dispatchUIEvent(i,"mousedown",s))&&(this.startSelecting(t,s.detail),br(i)),!l&&Ns(r.button)===2&&t.dispatchUIEvent(i,"contextmenu",this.getEventInit("contextmenu",r.button))}up(t,r,n){let o=this.buttons.up(r);if(o===void 0)return;let i=this.getTarget(t);if(!Xt(i)){if(!n){let l=this.getEventInit("mouseup",r.button);t.dispatchUIEvent(i,"mouseup",l),this.endSelecting()}let s=ro(this.buttonDownTarget[o],i)[2][0];if(s){let l=this.getEventInit("click",r.button);l.detail&&(t.dispatchUIEvent(s,l.button===0?"click":"auxclick",l),l.button===0&&l.detail===2&&t.dispatchUIEvent(s,"dblclick",{...this.getEventInit("dblclick",r.button),detail:l.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(t,r){let n={...this.position.coords};return n.button=Ns(r),n.buttons=this.buttons.getButtons(),t==="mousedown"?n.detail=this.clickCount.getOnDown(n.button):t==="mouseup"?n.detail=this.clickCount.getOnUp(n.button):(t==="click"||t==="auxclick")&&(n.detail=this.clickCount.incOnClick(n.button)),n}getTarget(t){var r;return(r=this.position.target)!==null&&r!==void 0?r:t.config.document.body}startSelecting(t,r){var n,o;this.selecting=Q_({document:t.config.document,target:this.getTarget(t),node:(n=this.position.caret)===null||n===void 0?void 0:n.node,offset:(o=this.position.caret)===null||o===void 0?void 0:o.offset,clickCount:r})}modifySelecting(t){var r,n;this.selecting&&eA(this.selecting,{document:t.config.document,target:this.getTarget(t),node:(r=this.position.caret)===null||r===void 0?void 0:r.node,offset:(n=this.position.caret)===null||n===void 0?void 0:n.offset})}endSelecting(){this.selecting=void 0}constructor(){_r(this,"position",{}),_r(this,"buttons",new K_),_r(this,"selecting",void 0),_r(this,"buttonDownTarget",{}),_r(this,"clickCount",new class{incOnClick(t){let r=this.down[t]===void 0?void 0:Number(this.down[t])+1;return this.count=this.count[t]===void 0?{}:{[t]:Number(this.count[t])+1},r}getOnDown(t){var r;this.down={[t]:(r=this.count[t])!==null&&r!==void 0?r:0};var n;return this.count={[t]:(n=this.count[t])!==null&&n!==void 0?n:0},Number(this.count[t])+1}getOnUp(t){return this.down[t]===void 0?void 0:Number(this.down[t])+1}reset(){this.count={}}constructor(){_r(this,"down",{}),_r(this,"count",{})}})}};a(tA,"Mouse");var v3=tA;function Va(e,t){var r;return((r=km(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}a(Va,"hasPointerEvents");function rA(e){let t=Tt(e);for(let r=e,n=[];r?.ownerDocument;r=r.parentElement){n.push(r);let o=t.getComputedStyle(r).pointerEvents;if(o&&!["inherit","unset"].includes(o))return{pointerEvents:o,tree:n}}}a(rA,"closestPointerEventsDeclaration");var Fb=Symbol("Last check for pointer-events");function km(e,t){let r=t[Fb];if(!(e.config.pointerEventsCheck!==Fi.Never&&(!r||Ad(e.config.pointerEventsCheck,Fi.EachApiCall)&&r[vt.Call]!==ca(e,vt.Call)||Ad(e.config.pointerEventsCheck,Fi.EachTrigger)&&r[vt.Trigger]!==ca(e,vt.Trigger))))return r?.result;let n=rA(t);return t[Fb]={[vt.Call]:ca(e,vt.Call),[vt.Trigger]:ca(e,vt.Trigger),result:n},n}a(km,"checkPointerEvents");function Yn(e,t){let r=km(e,t);if(r?.pointerEvents==="none")throw new Error([`Unable to perform pointer interaction as the element ${r.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",nA(r.tree)].join(`
|
|
352
|
+
`))}a(Yn,"assertPointerEvents");function nA(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,oA(t),e.length>1&&r===0&&" <-- This element declared `pointer-events: none`",e.length>1&&r===e.length-1&&" <-- Asserted pointer events here"].filter(Boolean).join("")).join(`
|
|
353
|
+
`)}a(nA,"printTree");function oA(e){var t;let r;if(e.hasAttribute("aria-label"))r=e.getAttribute("aria-label");else if(e.hasAttribute("aria-labelledby")){var n,o;r=(o=e.ownerDocument.getElementById(e.getAttribute("aria-labelledby")))===null||o===void 0||(n=o.textContent)===null||n===void 0?void 0:n.trim()}else if(ye(e,["button","input","meter","output","progress","select","textarea"])&&!((t=e.labels)===null||t===void 0)&&t.length)r=Array.from(e.labels).map(s=>{var l;return(l=s.textContent)===null||l===void 0?void 0:l.trim()}).join("|");else if(ye(e,"button")){var i;r=(i=e.textContent)===null||i===void 0?void 0:i.trim()}return r=r?.replace(/\n/g," "),Number(r?.length)>30&&(r=`${r?.substring(0,29)}…`),r?`(label=${r})`:""}a(oA,"getLabelDescr");function Ad(e,t){return(e&t)>0}a(Ad,"hasBitFlag");function Jt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a(Jt,"_define_property");var aA=class{init(t){let r=this.getTarget(t),[,n]=ro(null,r),o=this.getEventInit();return Yn(t,r),t.dispatchUIEvent(r,"pointerover",o),n.forEach(i=>t.dispatchUIEvent(i,"pointerenter",o)),this}move(t,r){let n=this.position,o=this.getTarget(t);if(this.position=r,!jm(n,r))return;let i=this.getTarget(t),s=this.getEventInit(-1),[l,c]=ro(o,i);return{leave:a(()=>{Va(t,o)&&o!==i&&(t.dispatchUIEvent(o,"pointerout",s),l.forEach(u=>t.dispatchUIEvent(u,"pointerleave",s)))},"leave"),enter:a(()=>{Yn(t,i),o!==i&&(t.dispatchUIEvent(i,"pointerover",s),c.forEach(u=>t.dispatchUIEvent(u,"pointerenter",s)))},"enter"),move:a(()=>{t.dispatchUIEvent(i,"pointermove",s)},"move")}}down(t,r=0){if(this.isDown)return;let n=this.getTarget(t);Yn(t,n),this.isDown=!0,this.isPrevented=!t.dispatchUIEvent(n,"pointerdown",this.getEventInit(r))}up(t,r=0){if(!this.isDown)return;let n=this.getTarget(t);Yn(t,n),this.isPrevented=!1,this.isDown=!1,t.dispatchUIEvent(n,"pointerup",this.getEventInit(r))}release(t){let r=this.getTarget(t),[n]=ro(r,null),o=this.getEventInit();Va(t,r)&&(t.dispatchUIEvent(r,"pointerout",o),n.forEach(i=>t.dispatchUIEvent(i,"pointerleave",o))),this.isCancelled=!0}getTarget(t){var r;return(r=this.position.target)!==null&&r!==void 0?r:t.config.document.body}getEventInit(t){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary,button:Ns(t),buttons:this.buttons.getButtons()}}constructor({pointerId:t,pointerType:r,isPrimary:n},o){Jt(this,"pointerId",void 0),Jt(this,"pointerType",void 0),Jt(this,"isPrimary",void 0),Jt(this,"buttons",void 0),Jt(this,"isMultitouch",!1),Jt(this,"isCancelled",!1),Jt(this,"isDown",!1),Jt(this,"isPrevented",!1),Jt(this,"position",{}),this.pointerId=t,this.pointerType=r,this.isPrimary=n,this.isMultitouch=!n,this.buttons=o}};a(aA,"Pointer");var w3=aA;function lr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a(lr,"_define_property");var iA=class{isKeyPressed(t){return this.devices.get(t.pointerType).isPressed(t)}async press(t,r,n){this.devices.get(r.pointerType).addPressed(r),this.buttons.down(r);let o=this.getPointerName(r),i=r.pointerType==="touch"?this.pointers.new(o,r.pointerType,this.buttons):this.pointers.get(o);i.position=n,i.pointerType!=="touch"&&(this.mouse.position=n),i.pointerType==="touch"&&i.init(t),i.down(t,r.button),i.pointerType!=="touch"&&this.mouse.down(t,r,i.isPrevented)}async move(t,r,n){let o=this.pointers.get(r),i=o.move(t,n),s=o.pointerType==="touch"?void 0:this.mouse.move(t,n,o.isPrevented);i?.leave(),s?.leave(),i?.enter(),s?.enter(),i?.move(),s?.move()}async release(t,r,n){let o=this.devices.get(r.pointerType);o.removePressed(r),this.buttons.up(r);let i=this.pointers.get(this.getPointerName(r)),s=i.isPrevented;if(i.position=n,i.pointerType!=="touch"&&(this.mouse.position=n),o.countPressed===0&&i.up(t,r.button),i.pointerType==="touch"&&i.release(t),i.pointerType==="touch"&&!i.isMultitouch){let l=this.mouse.move(t,n,s);l?.leave(),l?.enter(),l?.move(),this.mouse.down(t,r,s)}if(!i.isMultitouch){let l=this.mouse.move(t,n,s);l?.leave(),l?.enter(),l?.move(),this.mouse.up(t,r,s)}}getPointerName(t){return t.pointerType==="touch"?t.name:t.pointerType}getPreviousPosition(t){return this.pointers.has(t)?this.pointers.get(t).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(t){var r;return(r=this.mouse.position.target)!==null&&r!==void 0?r:t.config.document.body}setMousePosition(t){this.mouse.position=t,this.pointers.get("mouse").position=t}constructor(t){lr(this,"system",void 0),lr(this,"mouse",void 0),lr(this,"buttons",void 0),lr(this,"devices",new class{get(r){var n,o,i;return(i=(n=this.registry)[o=r])!==null&&i!==void 0?i:n[o]=new g3}constructor(){lr(this,"registry",{})}}),lr(this,"pointers",new class{new(r,n,o){let i=n!=="touch"||!Object.values(this.registry).some(s=>s.pointerType==="touch"&&!s.isCancelled);return i||Object.values(this.registry).forEach(s=>{s.pointerType===n&&!s.isCancelled&&(s.isMultitouch=!0)}),this.registry[r]=new w3({pointerId:this.nextId++,pointerType:n,isPrimary:i},o),this.registry[r]}get(r){if(!this.has(r))throw new Error(`Trying to access pointer "${r}" which does not exist.`);return this.registry[r]}has(r){return r in this.registry}constructor(){lr(this,"registry",{}),lr(this,"nextId",1)}}),this.system=t,this.buttons=new K_,this.mouse=new v3,this.pointers.new("mouse","mouse",this.buttons)}};a(iA,"PointerHost");var E3=iA;function Rd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a(Rd,"_define_property");var sA=class{getUIEventModifiers(){return{altKey:this.keyboard.modifiers.Alt,ctrlKey:this.keyboard.modifiers.Control,metaKey:this.keyboard.modifiers.Meta,shiftKey:this.keyboard.modifiers.Shift,modifierAltGraph:this.keyboard.modifiers.AltGraph,modifierCapsLock:this.keyboard.modifiers.CapsLock,modifierFn:this.keyboard.modifiers.Fn,modifierFnLock:this.keyboard.modifiers.FnLock,modifierNumLock:this.keyboard.modifiers.NumLock,modifierScrollLock:this.keyboard.modifiers.ScrollLock,modifierSymbol:this.keyboard.modifiers.Symbol,modifierSymbolLock:this.keyboard.modifiers.SymbolLock}}constructor(){Rd(this,"keyboard",new m3(this)),Rd(this,"pointer",new E3(this))}};a(sA,"System");var lA=sA;async function uA(e){let t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}a(uA,"click");async function cA(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}a(cA,"dblClick");async function dA(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}a(dA,"tripleClick");async function pA(e){return this.pointer({target:e})}a(pA,"hover");async function fA(e){return Yn(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}a(fA,"unhover");async function hA({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}a(hA,"tab");var Mm=(function(e){return e["{"]="}",e["["]="]",e})(Mm||{});function $m(e,t){let r=0,n=e[r]in Mm?e[r]:"";r+=n.length;let o=new RegExp(`^\\${n}{2}`).test(e)?"":n;return{type:o,...o===""?mA(e,r,t):yA(e,r,o,t)}}a($m,"readNextDescriptor");function mA(e,t,r){let n=e[t];return Lm(n,e,t,r),t+=n.length,{consumedLength:t,descriptor:n,releasePrevious:!1,releaseSelf:!0,repeat:1}}a(mA,"readPrintableChar");function yA(e,t,r,n){var o,i;let s=e[t]==="/"?"/":"";t+=s.length;let l=r==="{"&&e[t]==="\\";t+=Number(l);let c=l?e[t]:(o=e.slice(t).match(r==="{"?/^\w+|^[^}>/]/:/^\w+/))===null||o===void 0?void 0:o[0];Lm(c,e,t,n),t+=c.length;var u;let d=(u=(i=e.slice(t).match(/^>\d+/))===null||i===void 0?void 0:i[0])!==null&&u!==void 0?u:"";t+=d.length;let p=e[t]==="/"||!d&&e[t]===">"?e[t]:"";t+=p.length;let h=Mm[r],f=e[t]===h?h:"";if(!f)throw new Error(Dm([!d&&"repeat modifier",!p&&"release modifier",`"${h}"`].filter(Boolean).join(" or "),e[t],e,n));return t+=f.length,{consumedLength:t,descriptor:c,releasePrevious:!!s,repeat:d?Math.max(Number(d.substr(1)),1):1,releaseSelf:bA(p,d)}}a(yA,"readTag");function Lm(e,t,r,n){if(!e)throw new Error(Dm("key descriptor",t[r],t,n))}a(Lm,"assertDescriptor");function bA(e,t){if(e)return e==="/";if(t)return!1}a(bA,"hasReleaseSelf");function Dm(e,t,r,n){return`Expected ${e} but found "${t??""}" in "${r}"
|
|
354
|
+
See ${n==="pointer"?"https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen":"https://testing-library.com/docs/user-event/keyboard"}
|
|
355
|
+
for more information about how userEvent parses your input.`}a(Dm,"getErrorMessage");function gA(e,t){let r=[];do{let{type:o,descriptor:i,consumedLength:s,releasePrevious:l,releaseSelf:c=!0,repeat:u}=$m(t,"keyboard");var n;let d=(n=e.find(p=>{if(o==="["){var h;return((h=p.code)===null||h===void 0?void 0:h.toLowerCase())===i.toLowerCase()}else if(o==="{"){var f;return((f=p.key)===null||f===void 0?void 0:f.toLowerCase())===i.toLowerCase()}return p.key===i}))!==null&&n!==void 0?n:{key:"Unknown",code:"Unknown",[o==="["?"code":"key"]:i};r.push({keyDef:d,releasePrevious:l,releaseSelf:c,repeat:u}),t=t.slice(s)}while(t);return r}a(gA,"parseKeyDef");async function vA(e){let t=gA(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await Tn(this.config),await wA(this,t[r])}a(vA,"keyboard");async function wA(e,{keyDef:t,releasePrevious:r,releaseSelf:n,repeat:o}){let{system:i}=e;if(i.keyboard.isKeyPressed(t)&&await i.keyboard.keyup(e,t),!r){for(let s=1;s<=o;s++)await i.keyboard.keydown(e,t),s<o&&await Tn(e.config);n&&await i.keyboard.keyup(e,t)}}a(wA,"keyboardAction");async function EA(e){for(let t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}a(EA,"releaseAllKeys");function Fm(e){let t=Dt(e)?{"text/plain":xA(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=cu(Tt(e));for(let n in t)t[n]&&r.setData(n,t[n]);return r}a(Fm,"copySelection");function xA(e){let t=Eo(e);return Ft(e).substring(t.startOffset,t.endOffset)}a(xA,"readSelectedValueFromInput");async function TA(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=Fm(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await gm(e,n),n}a(TA,"copy");async function SA(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=Fm(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await gm(r.ownerDocument,n),n}a(SA,"cut");async function CA(e){let t=this.config.document;var r;let n=(r=t.activeElement)!==null&&r!==void 0?r:t.body;var o;let i=(o=typeof e=="string"?PA(t,e):e)!==null&&o!==void 0?o:await WO(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:i})}a(CA,"paste");function PA(e,t){let r=cu(Tt(e));return r.setData("text",t),r}a(PA,"getClipboardDataFromString");function qd(e,t){let r=[];do{let{descriptor:n,consumedLength:o,releasePrevious:i,releaseSelf:s=!0}=$m(t,"pointer"),l=e.find(c=>c.name===n);l&&r.push({keyDef:l,releasePrevious:i,releaseSelf:s}),t=t.slice(o)}while(t);return r}a(qd,"parseKeyDef");async function OA(e){let{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...qd(t,n)):"keys"in n?r.push(...qd(t,n.keys).map(o=>({...n,...o}))):r.push(n)});for(let n=0;n<r.length;n++)await Tn(this.config),await _A(this,r[n]);this.system.pointer.resetClickCount()}a(OA,"pointer");async function _A(e,t){var r,n;let o="pointerName"in t&&t.pointerName?t.pointerName:"keyDef"in t?e.system.pointer.getPointerName(t.keyDef):"mouse",i=e.system.pointer.getPreviousPosition(o);var s,l,c,u;let d={target:(s=t.target)!==null&&s!==void 0?s:AA(e,i),coords:(l=t.coords)!==null&&l!==void 0?l:i?.coords,caret:{node:(c=t.node)!==null&&c!==void 0?c:Nd(t)||i==null||(r=i.caret)===null||r===void 0?void 0:r.node,offset:(u=t.offset)!==null&&u!==void 0?u:Nd(t)||i==null||(n=i.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(Kn(e,vt.Trigger),await e.system.pointer.release(e,t.keyDef,d)),t.releasePrevious||(Kn(e,vt.Trigger),await e.system.pointer.press(e,t.keyDef,d),t.releaseSelf&&(Kn(e,vt.Trigger),await e.system.pointer.release(e,t.keyDef,d)))):(Kn(e,vt.Trigger),await e.system.pointer.move(e,o,d))}a(_A,"pointerAction");function Nd(e){var t,r;return!!((r=(t=e.target)!==null&&t!==void 0?t:e.node)!==null&&r!==void 0?r:e.offset!==void 0)}a(Nd,"hasCaretPosition");function AA(e,t){if(!t)throw new Error("This pointer has no previous position. Provide a target property!");var r;return(r=t.target)!==null&&r!==void 0?r:e.config.document.body}a(AA,"getPrevTarget");async function RA(e){if(!wn(e)||Xt(e))throw new Error("clear()` is only supported on editable elements.");if(br(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(Om(e),!A_(e))throw new Error("The element content to be cleared could not be selected.");xn(this,e,"","deleteContentBackward")}a(RA,"clear");async function qA(e,t){return Bm.call(this,!0,e,t)}a(qA,"selectOptions");async function NA(e,t){return Bm.call(this,!1,e,t)}a(NA,"deselectOptions");async function Bm(e,t,r){if(!e&&!t.multiple)throw ve().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",t);let n=Array.isArray(r)?r:[r],o=Array.from(t.querySelectorAll('option, [role="option"]')),i=n.map(l=>{if(typeof l!="string"&&o.includes(l))return l;{let c=o.find(u=>u.value===l||u.innerHTML===l);if(c)return c;throw ve().getElementError(`Value "${String(l)}" not found in options`,t)}}).filter(l=>!Xt(l));if(Xt(t)||!i.length)return;let s=a(l=>{l.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change")},"selectOption");if(ye(t,"select"))if(t.multiple)for(let l of i){let c=this.config.pointerEventsCheck===0?!0:Va(this,l);c&&(this.dispatchUIEvent(l,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(l,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(l,"pointermove"),this.dispatchUIEvent(l,"mousemove"),this.dispatchUIEvent(l,"pointerdown"),this.dispatchUIEvent(l,"mousedown")),br(t),c&&(this.dispatchUIEvent(l,"pointerup"),this.dispatchUIEvent(l,"mouseup")),s(l),c&&this.dispatchUIEvent(l,"click"),await Tn(this.config)}else if(i.length===1){let l=this.config.pointerEventsCheck===0?!0:Va(this,t);l?await this.click(t):br(t),s(i[0]),l&&(this.dispatchUIEvent(t,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(t,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(t,"pointerup"),this.dispatchUIEvent(t,"mouseup"),this.dispatchUIEvent(t,"click")),await Tn(this.config)}else throw ve().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(let l of i)await this.click(l),await this.unhover(l);else throw ve().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}a(Bm,"selectOptionsBase");async function IA(e,t,{skipClick:r=this.config.skipClick,skipAutoClose:n=this.config.skipAutoClose,initialSelectionStart:o,initialSelectionEnd:i}={}){e.disabled||(r||await this.click(e),o!==void 0&&Gn(e,o,i??o),await this.keyboard(t),n||await EA(this))}a(IA,"type");var Bb=Symbol("files and value properties are mocked");function Bi(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}a(Bi,"restoreProperty");function jA(e,t){var r;(r=e[Bb])===null||r===void 0||r.restore();let n=Object.getOwnPropertyDescriptor(e,"type"),o=Object.getOwnPropertyDescriptor(e,"value"),i=Object.getOwnPropertyDescriptor(e,"files");function s(){Bi(e,"type",n),Bi(e,"value",o),Bi(e,"files",i)}a(s,"restore"),e[Bb]={restore:s},Object.defineProperties(e,{files:{configurable:!0,get:a(()=>t,"get")},value:{configurable:!0,get:a(()=>t.length?`C:\\fakepath\\${t[0].name}`:"","get"),set(l){if(l==="")s();else{var c;o==null||(c=o.set)===null||c===void 0||c.call(e,l)}}},type:{configurable:!0,get:a(()=>"file","get"),set(l){l!=="file"&&(s(),e.type=l)}}})}a(jA,"setFiles");async function kA(e,t){let r=ye(e,"label")?e.control:e;if(!r||!ye(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r?.tagName} element does not accept file uploads`);if(Xt(e))return;let n=(Array.isArray(t)?t:[t]).filter(i=>!this.config.applyAccept||MA(i,r.accept)).slice(0,r.multiple?void 0:1),o=a(()=>{var i;n.length===((i=r.files)===null||i===void 0?void 0:i.length)&&n.every((s,l)=>{var c;return s===((c=r.files)===null||c===void 0?void 0:c.item(l))})||(jA(r,uu(Tt(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))},"fileDialog");r.addEventListener("fileDialog",o),await this.click(e),r.removeEventListener("fileDialog",o)}a(kA,"upload");function da(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,"$1jpeg")}a(da,"normalize");function MA(e,t){if(!t)return!0;let r=["audio/*","image/*","video/*"];return da(t).trim().split(/\s*,\s*/).some(n=>n.startsWith(".")?da(e.name).endsWith(n):r.includes(n)?da(e.type).startsWith(n.replace("*","")):da(e.type)===n)}a(MA,"isAcceptableFile");var Ub={click:uA,dblClick:cA,tripleClick:dA,hover:pA,unhover:fA,tab:hA,keyboard:vA,copy:TA,cut:SA,paste:CA,pointer:OA,clear:RA,deselectOptions:NA,selectOptions:qA,type:IA,upload:kA};function $A(e){return ve().asyncWrapper(e)}a($A,"wrapAsync");var LA={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:y3,pointerMap:b3,pointerEventsCheck:Fi.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:a(()=>Promise.resolve(),"advanceTimers")},x3={...LA,writeToClipboard:!0};function Um(e={},t=x3,r){let n=UA(e,r,t);return{...t,...e,document:n}}a(Um,"createConfig");function DA(e={}){let t=Um(e);Nm(t.document),qm(Tt(t.document).HTMLElement);var r;let n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return VO(n),mu(t).api}a(DA,"setupMain");function rt({keyboardState:e,pointerState:t,...r}={},n){let o=Um(r,LA,n);Nm(o.document),qm(Tt(o.document).HTMLElement);var i;let s=(i=t??e)!==null&&i!==void 0?i:new lA;return{api:mu(o,s).api,system:s}}a(rt,"setupDirect");function FA(e){return mu({...this.config,...e},this.system).api}a(FA,"setupSub");function BA(e,t){function r(...n){return Kn(e,vt.Call),$A(()=>t.apply(e,n).then(async o=>(await Tn(e.config),o)))}return a(r,"method"),Object.defineProperty(r,"name",{get:a(()=>t.name,"get")}),r}a(BA,"wrapAndBindImpl");function mu(e,t=new lA){let r={};return Object.assign(r,{config:e,dispatchEvent:Rm.bind(r),dispatchUIEvent:D_.bind(r),system:t,levelRefs:{},...Ub}),{instance:r,api:{...Object.fromEntries(Object.entries(Ub).map(([n,o])=>[n,BA(r,o)])),setup:FA.bind(r)}}}a(mu,"createInstance");function UA(e,t,r){var n,o;return(o=(n=e.document)!==null&&n!==void 0?n:t&&V_(t))!==null&&o!==void 0?o:r.document}a(UA,"getDocument");var HA={};ut(HA,{clear:()=>VA,click:()=>JA,copy:()=>zA,cut:()=>WA,dblClick:()=>GA,deselectOptions:()=>KA,hover:()=>YA,keyboard:()=>XA,paste:()=>ZA,pointer:()=>QA,selectOptions:()=>eR,tab:()=>aR,tripleClick:()=>tR,type:()=>rR,unhover:()=>nR,upload:()=>oR});function VA(e){return rt().api.clear(e)}a(VA,"clear");function JA(e,t={}){return rt(t,e).api.click(e)}a(JA,"click");function zA(e={}){return rt(e).api.copy()}a(zA,"copy");function WA(e={}){return rt(e).api.cut()}a(WA,"cut");function GA(e,t={}){return rt(t).api.dblClick(e)}a(GA,"dblClick");function KA(e,t,r={}){return rt(r).api.deselectOptions(e,t)}a(KA,"deselectOptions");function YA(e,t={}){return rt(t).api.hover(e)}a(YA,"hover");async function XA(e,t={}){let{api:r,system:n}=rt(t);return r.keyboard(e).then(()=>n)}a(XA,"keyboard");async function QA(e,t={}){let{api:r,system:n}=rt(t);return r.pointer(e).then(()=>n)}a(QA,"pointer");function ZA(e,t){return rt(t).api.paste(e)}a(ZA,"paste");function eR(e,t,r={}){return rt(r).api.selectOptions(e,t)}a(eR,"selectOptions");function tR(e,t={}){return rt(t).api.tripleClick(e)}a(tR,"tripleClick");function rR(e,t,r={}){return rt(r,e).api.type(e,t,r)}a(rR,"type");function nR(e,t={}){let{api:r,system:n}=rt(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}a(nR,"unhover");function oR(e,t,r={}){return rt(r).api.upload(e,t)}a(oR,"upload");function aR(e={}){return rt().api.tab(e)}a(aR,"tab");var iR={...HA,setup:DA},Id=_o({...bC},{getKeys:a(e=>Object.keys(e).filter(t=>t!=="eventWrapper"),"getKeys"),intercept:a((e,t)=>t[0]==="fireEvent"||e.startsWith("find")||e.startsWith("waitFor"),"intercept")});Id.screen=new Proxy(Id.screen,{get(e,t,r){return Be.warn(UD`
|
|
356
|
+
You are using Testing Library's \`screen\` object. Use \`within(canvasElement)\` instead.
|
|
357
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error
|
|
358
|
+
`),Reflect.get(e,t,r)}});var{buildQueries:T3,configure:S3,createEvent:C3,fireEvent:P3,findAllByAltText:O3,findAllByDisplayValue:_3,findAllByLabelText:A3,findAllByPlaceholderText:R3,findAllByRole:q3,findAllByTestId:N3,findAllByText:I3,findAllByTitle:j3,findByAltText:k3,findByDisplayValue:M3,findByLabelText:$3,findByPlaceholderText:L3,findByRole:D3,findByTestId:F3,findByText:B3,findByTitle:U3,getAllByAltText:H3,getAllByDisplayValue:V3,getAllByLabelText:J3,getAllByPlaceholderText:z3,getAllByRole:W3,getAllByTestId:G3,getAllByText:K3,getAllByTitle:Y3,getByAltText:X3,getByDisplayValue:Q3,getByLabelText:Z3,getByPlaceholderText:eV,getByRole:tV,getByTestId:rV,getByText:nV,getByTitle:oV,getConfig:aV,getDefaultNormalizer:iV,getElementError:sV,getNodeText:lV,getQueriesForElement:uV,getRoles:cV,getSuggestedQuery:dV,isInaccessible:pV,logDOM:fV,logRoles:hV,prettyDOM:mV,queries:yV,queryAllByAltText:bV,queryAllByAttribute:gV,queryAllByDisplayValue:vV,queryAllByLabelText:wV,queryAllByPlaceholderText:EV,queryAllByRole:xV,queryAllByTestId:TV,queryAllByText:SV,queryAllByTitle:CV,queryByAltText:PV,queryByAttribute:OV,queryByDisplayValue:_V,queryByLabelText:AV,queryByPlaceholderText:RV,queryByRole:qV,queryByTestId:NV,queryByText:IV,queryByTitle:jV,queryHelpers:kV,screen:MV,waitFor:$V,waitForElementToBeRemoved:LV,within:sR,prettyFormat:DV}=Id,lR=iR,{userEvent:FV}=_o({userEvent:iR},{intercept:!0,getKeys:a(e=>Object.keys(e).filter(t=>t!=="eventWrapper"),"getKeys")}),{expect:BV}=_o({expect:hC},{getKeys:a((e,t)=>{if("constructor"in e&&e.constructor===j){let r=["assert","__methods","__flags","_obj"],n=Object.keys(Object.getPrototypeOf(e)).filter(o=>!r.includes(o));return t>2?n:[...n,"not"]}return"any"in e?Object.keys(e).filter(r=>r!=="any"):Object.keys(e)},"getKeys"),mutate:!0,intercept:a(e=>e!=="expect","intercept")}),UV={mock:a(()=>{},"mock")},Hb=!1,HV=a(e=>{let{parameters:t}=e;t?.actions?.disable||Hb||(Dh((r,n)=>{let o=r.getMockName();o!=="spy"&&(!/^next\/.*::/.test(o)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(i=>o.startsWith(i)))&&Lo(o)(n)}),Hb=!0)},"logActionsWhenMockCalled"),VV=[HV],Vb=a(()=>({...JE,...WE}),"default"),js="backgrounds",JV={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:Mt}=globalThis,zV=a(()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,"isReduceMotionEnabled"),Jb=a(e=>{(Array.isArray(e)?e:[e]).forEach(WV)},"clearStyles"),WV=a(e=>{if(!Mt)return;let t=Mt.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},"clearStyle"),GV=a((e,t)=>{if(!Mt)return;let r=Mt.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Mt.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Mt.head.appendChild(n)}},"addGridStyle"),KV=a((e,t,r)=>{if(!Mt)return;let n=Mt.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let o=Mt.createElement("style");o.setAttribute("id",e),o.innerHTML=t;let i=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,s=Mt.getElementById(i);s?s.parentElement?.insertBefore(o,s):Mt.head.appendChild(o)}},"addBackgroundStyle"),YV={cellSize:100,cellAmount:10,opacity:.8},zb="addon-backgrounds",Wb="addon-backgrounds-grid",XV=zV()?"":"transition: background-color 0.3s;",QV=a((e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:i}=t,{options:s=JV,disable:l,grid:c=YV}=n[js]||{},u=r[js]||{},d=typeof u=="string"?u:u?.value,p=d?s[d]:void 0,h=typeof p=="string"?p:p?.value||"transparent",f=typeof u=="string"?!1:u.grid||!1,m=!!p&&!l,b=o==="docs"?`#anchor--${i} .docs-story`:".sb-show-main",g=o==="docs"?`#anchor--${i} .docs-story`:".sb-show-main",v=n.layout===void 0||n.layout==="padded",w=o==="docs"?20:v?16:0,{cellAmount:P,cellSize:A,opacity:R,offsetX:T=w,offsetY:E=w}=c,x=o==="docs"?`${zb}-docs-${i}`:`${zb}-color`,C=o==="docs"?i:null;Fr(()=>{let N=`
|
|
359
|
+
${b} {
|
|
360
|
+
background: ${h} !important;
|
|
361
|
+
${XV}
|
|
362
|
+
}`;if(!m){Jb(x);return}KV(x,N,C)},[b,x,C,m,h]);let k=o==="docs"?`${Wb}-docs-${i}`:`${Wb}`;return Fr(()=>{if(!f){Jb(k);return}let N=[`${A*P}px ${A*P}px`,`${A*P}px ${A*P}px`,`${A}px ${A}px`,`${A}px ${A}px`].join(", "),U=`
|
|
363
|
+
${g} {
|
|
364
|
+
background-size: ${N} !important;
|
|
365
|
+
background-position: ${T}px ${E}px, ${T}px ${E}px, ${T}px ${E}px, ${T}px ${E}px !important;
|
|
366
|
+
background-blend-mode: difference !important;
|
|
367
|
+
background-image: linear-gradient(rgba(130, 130, 130, ${R}) 1px, transparent 1px),
|
|
368
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${R}) 1px, transparent 1px),
|
|
369
|
+
linear-gradient(rgba(130, 130, 130, ${R/2}) 1px, transparent 1px),
|
|
370
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${R/2}) 1px, transparent 1px) !important;
|
|
371
|
+
}
|
|
372
|
+
`;GV(k,U)},[P,A,g,k,f,T,E,R]),e()},"withBackgroundAndGrid"),ZV=globalThis.FEATURES?.backgrounds?[QV]:[],eJ={[js]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},tJ={[js]:{value:void 0,grid:!1}},Gb=a(()=>({decorators:ZV,parameters:eJ,initialGlobals:tJ}),"default"),{step:rJ}=_o({step:a(async(e,t,r)=>t(r),"step")},{intercept:!0}),Kb=a(()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:rJ}),"default"),yu="storybook/highlight",nJ=`${yu}/add`,oJ=`${yu}/remove`,aJ=`${yu}/reset`,iJ=`${yu}/scroll-into-view`,Yb=2147483647,qr=28,Xb={chevronLeft:["M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"],chevronRight:["M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"],info:["M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z","M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"],shareAlt:["M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z","M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"]},sJ="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),ze=a((e,t={},r)=>{let n=sJ.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([o,i])=>{/[A-Z]/.test(o)?(o==="onClick"&&(n.addEventListener("click",i),n.addEventListener("keydown",s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),i())})),o==="onMouseEnter"&&n.addEventListener("mouseenter",i),o==="onMouseLeave"&&n.addEventListener("mouseleave",i)):n.setAttribute(o,i)}),r?.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch{n.appendChild(document.createTextNode(String(o)))}}),n},"createElement"),Ci=a(e=>Xb[e]&&ze("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},Xb[e].map(t=>ze("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),"createIcon"),lJ=a(e=>{if("elements"in e){let{elements:n,color:o,style:i}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${i} ${o}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},"normalizeOptions"),uJ=a(e=>e instanceof Function,"isFunction"),ra=new Map,Zr=new Map,Pi=new Map,ar=a(e=>{let t=Symbol();return Zr.set(t,[]),ra.set(t,e),{get:a(()=>ra.get(t),"get"),set:a(r=>{let n=ra.get(t),o=uJ(r)?r(n):r;o!==n&&(ra.set(t,o),Zr.get(t)?.forEach(i=>{Pi.get(i)?.(),Pi.set(i,i(o))}))},"set"),subscribe:a(r=>(Zr.get(t)?.push(r),()=>{let n=Zr.get(t);n&&Zr.set(t,n.filter(o=>o!==r))}),"subscribe"),teardown:a(()=>{Zr.get(t)?.forEach(r=>{Pi.get(r)?.(),Pi.delete(r)}),Zr.delete(t),ra.delete(t)},"teardown")}},"useStore"),Qb=a(e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:o=0}=n;for(let i of n.selectors){let s=[...document.querySelectorAll(`:is(${i}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(i)||[]];for(let l of s){let c=r.get(l);(!c||c.priority<=o)&&r.set(l,{...n,priority:o,selectors:Array.from(new Set((c?.selectors||[]).concat(i)))})}}}return r},"mapElements"),cJ=a(e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:s}])=>{let{top:l,left:c,width:u,height:d}=t.getBoundingClientRect(),{position:p}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:s,top:p==="fixed"?l:l+window.scrollY,left:p==="fixed"?c:c+window.scrollX,width:u,height:d}}).sort((t,r)=>r.width*r.height-t.width*t.height),"mapBoxes"),Zb=a((e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:o}=t;return r?.top&&r?.left&&n>=r.left&&n<=r.left+r.width&&o>=r.top&&o<=r.top+r.height},"isOverMenu"),eg=a((e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:i,height:s}=e;s<qr&&(o=o-Math.round((qr-s)/2),s=qr),i<qr&&(n=n-Math.round((qr-i)/2),i=qr),t.style.position==="fixed"&&(n+=window.scrollX,o+=window.scrollY);let{x:l,y:c}=r;return l>=n&&l<=n+i&&c>=o&&c<=o+s},"isTargeted"),dJ=a((e,t,r={})=>{let{x:n,y:o}=t,{margin:i=5,topOffset:s=0,centered:l=!1}=r,{scrollX:c,scrollY:u,innerHeight:d,innerWidth:p}=window,h=Math.min(e.style.position==="fixed"?o-u:o,d-e.clientHeight-i-s+u),f=l?e.clientWidth/2:0,m=e.style.position==="fixed"?Math.max(Math.min(n-c,p-f-i),f+i):Math.max(Math.min(n,p-f-i+c),f+i+c);Object.assign(e.style,{...m!==n&&{left:`${m}px`},...h!==o&&{top:`${h}px`}})},"keepInViewport"),tg=a(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},"showPopover"),pJ=a(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},"hidePopover"),fJ=a(e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),"getEventDetails"),Ae="storybook-highlights-menu",rg="storybook-highlights-root",hJ="storybook-root",mJ=a(e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=ar([]),n=ar(new Map),o=ar([]),i=ar(),s=ar(),l=ar([]),c=ar([]),u=ar(),d=ar(),p=t.getElementById(rg);r.subscribe(()=>{p||(p=ze("div",{id:rg}),t.body.appendChild(p))}),r.subscribe(E=>{let x=t.getElementById(hJ);if(!x)return;n.set(Qb(E));let C=new MutationObserver(()=>n.set(Qb(E)));return C.observe(x,{subtree:!0,childList:!0}),()=>{C.disconnect()}}),n.subscribe(E=>{let x=a(()=>requestAnimationFrame(()=>o.set(cJ(E))),"updateBoxes"),C=new ResizeObserver(x);C.observe(t.body),Array.from(E.keys()).forEach(N=>C.observe(N));let k=Array.from(t.body.querySelectorAll("*")).filter(N=>{let{overflow:U,overflowX:D,overflowY:O}=window.getComputedStyle(N);return["auto","scroll"].some(M=>[U,D,O].includes(M))});return k.forEach(N=>N.addEventListener("scroll",x)),()=>{C.disconnect(),k.forEach(N=>N.removeEventListener("scroll",x))}}),n.subscribe(E=>{let x=Array.from(E.keys()).filter(({style:k})=>k.position==="sticky"),C=a(()=>requestAnimationFrame(()=>{o.set(k=>k.map(N=>{if(x.includes(N.element)){let{top:U,left:D}=N.element.getBoundingClientRect();return{...N,top:U+window.scrollY,left:D+window.scrollX}}return N}))}),"updateBoxes");return t.addEventListener("scroll",C),()=>t.removeEventListener("scroll",C)}),n.subscribe(E=>{l.set(x=>x.filter(({element:C})=>E.has(C)))}),l.subscribe(E=>{E.length?(d.set(x=>E.some(C=>C.element===x?.element)?x:void 0),u.set(x=>E.some(C=>C.element===x?.element)?x:void 0)):(d.set(void 0),u.set(void 0),i.set(void 0))});let h=new Map(new Map);r.subscribe(E=>{E.forEach(({keyframes:x})=>{if(x){let C=h.get(x);C||(C=t.createElement("style"),C.setAttribute("data-highlight","keyframes"),h.set(x,C),t.head.appendChild(C)),C.innerHTML=x}}),h.forEach((x,C)=>{E.some(k=>k.keyframes===C)||(x.remove(),h.delete(C))})});let f=new Map(new Map);o.subscribe(E=>{E.forEach(x=>{let C=f.get(x.element);if(p&&!C){let k={popover:"manual","data-highlight-dimensions":`w${x.width.toFixed(0)}h${x.height.toFixed(0)}`,"data-highlight-coordinates":`x${x.left.toFixed(0)}y${x.top.toFixed(0)}`};C=p.appendChild(ze("div",k,[ze("div")])),f.set(x.element,C)}}),f.forEach((x,C)=>{E.some(({element:k})=>k===C)||(x.remove(),f.delete(C))})}),o.subscribe(E=>{let x=E.filter(k=>k.menu);if(!x.length)return;let C=a(k=>{requestAnimationFrame(()=>{let N=t.getElementById(Ae),U={x:k.pageX,y:k.pageY};if(N&&!Zb(N,U)){let D=x.filter(O=>{let M=f.get(O.element);return eg(O,M,U)});i.set(D.length?U:void 0),l.set(D)}})},"onClick");return t.addEventListener("click",C),()=>t.removeEventListener("click",C)});let m=a(()=>{let E=t.getElementById(Ae),x=s.get();!x||E&&Zb(E,x)||c.set(C=>{let k=o.get().filter(O=>{let M=f.get(O.element);return eg(O,M,x)}),N=C.filter(O=>k.includes(O)),U=k.filter(O=>!C.includes(O)),D=C.length-N.length;return U.length||D?[...N,...U]:C})},"updateHovered");s.subscribe(m),o.subscribe(m);let b=a(()=>{let E=d.get(),x=E?[E]:l.get(),C=x.length===1?x[0]:u.get(),k=i.get()!==void 0;o.get().forEach(N=>{let U=f.get(N.element);if(U){let D=C===N,O=k?C?D:x.includes(N):c.get()?.includes(N);Object.assign(U.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...N.styles,...O?N.hoverStyles:{},...D?N.focusStyles:{},position:getComputedStyle(N.element).position==="fixed"?"fixed":"absolute",zIndex:Yb-10,top:`${N.top}px`,left:`${N.left}px`,width:`${N.width}px`,height:`${N.height}px`,margin:0,padding:0,cursor:N.menu&&O?"pointer":"default",pointerEvents:N.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(U.children[0].style,{width:"100%",height:"100%",minHeight:`${qr}px`,minWidth:`${qr}px`,boxSizing:"content-box",padding:U.style.outlineWidth||"0px"}),tg(U)}})},"updateBoxStyles");o.subscribe(b),l.subscribe(b),c.subscribe(b),u.subscribe(b),d.subscribe(b);let g=a(()=>{if(!p)return;let E=t.getElementById(Ae);if(E)E.innerHTML="";else{let N={id:Ae,popover:"manual"};E=p.appendChild(ze("div",N)),p.appendChild(ze("style",{},[`
|
|
373
|
+
#${Ae} {
|
|
374
|
+
position: absolute;
|
|
375
|
+
z-index: ${Yb};
|
|
376
|
+
width: 300px;
|
|
377
|
+
padding: 0px;
|
|
378
|
+
margin: 15px 0 0 0;
|
|
379
|
+
transform: translateX(-50%);
|
|
380
|
+
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
381
|
+
font-size: 12px;
|
|
382
|
+
background: white;
|
|
383
|
+
border: none;
|
|
384
|
+
border-radius: 6px;
|
|
385
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
|
|
386
|
+
color: #2E3438;
|
|
387
|
+
}
|
|
388
|
+
#${Ae} ul {
|
|
389
|
+
list-style: none;
|
|
390
|
+
margin: 0;
|
|
391
|
+
padding: 0;
|
|
392
|
+
}
|
|
393
|
+
#${Ae} > ul {
|
|
394
|
+
max-height: 300px;
|
|
395
|
+
overflow-y: auto;
|
|
396
|
+
padding: 4px 0;
|
|
397
|
+
}
|
|
398
|
+
#${Ae} li {
|
|
399
|
+
padding: 0 4px;
|
|
400
|
+
margin: 0;
|
|
401
|
+
}
|
|
402
|
+
#${Ae} li > :not(ul) {
|
|
403
|
+
display: flex;
|
|
404
|
+
padding: 8px;
|
|
405
|
+
margin: 0;
|
|
406
|
+
align-items: center;
|
|
407
|
+
gap: 8px;
|
|
408
|
+
border-radius: 4px;
|
|
409
|
+
}
|
|
410
|
+
#${Ae} button {
|
|
411
|
+
width: 100%;
|
|
412
|
+
border: 0;
|
|
413
|
+
background: transparent;
|
|
414
|
+
color: inherit;
|
|
415
|
+
text-align: left;
|
|
416
|
+
font-family: inherit;
|
|
417
|
+
font-size: inherit;
|
|
418
|
+
}
|
|
419
|
+
#${Ae} button:focus-visible {
|
|
420
|
+
outline-color: #029CFD;
|
|
421
|
+
}
|
|
422
|
+
#${Ae} button:hover {
|
|
423
|
+
background: rgba(2, 156, 253, 0.07);
|
|
424
|
+
color: #029CFD;
|
|
425
|
+
cursor: pointer;
|
|
426
|
+
}
|
|
427
|
+
#${Ae} li code {
|
|
428
|
+
white-space: nowrap;
|
|
429
|
+
overflow: hidden;
|
|
430
|
+
text-overflow: ellipsis;
|
|
431
|
+
line-height: 16px;
|
|
432
|
+
font-size: 11px;
|
|
433
|
+
}
|
|
434
|
+
#${Ae} li svg {
|
|
435
|
+
flex-shrink: 0;
|
|
436
|
+
margin: 1px;
|
|
437
|
+
color: #73828C;
|
|
438
|
+
}
|
|
439
|
+
#${Ae} li > button:hover svg, #${Ae} li > button:focus-visible svg {
|
|
440
|
+
color: #029CFD;
|
|
441
|
+
}
|
|
442
|
+
#${Ae} .element-list li svg {
|
|
443
|
+
display: none;
|
|
444
|
+
}
|
|
445
|
+
#${Ae} li.selectable svg, #${Ae} li.selected svg {
|
|
446
|
+
display: block;
|
|
447
|
+
}
|
|
448
|
+
#${Ae} .menu-list {
|
|
449
|
+
border-top: 1px solid rgba(38, 85, 115, 0.15);
|
|
450
|
+
}
|
|
451
|
+
#${Ae} .menu-list > li:not(:last-child) {
|
|
452
|
+
padding-bottom: 4px;
|
|
453
|
+
margin-bottom: 4px;
|
|
454
|
+
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
|
|
455
|
+
}
|
|
456
|
+
#${Ae} .menu-items, #${Ae} .menu-items li {
|
|
457
|
+
padding: 0;
|
|
458
|
+
}
|
|
459
|
+
#${Ae} .menu-item {
|
|
460
|
+
display: flex;
|
|
461
|
+
}
|
|
462
|
+
#${Ae} .menu-item-content {
|
|
463
|
+
display: flex;
|
|
464
|
+
flex-direction: column;
|
|
465
|
+
flex-grow: 1;
|
|
466
|
+
}
|
|
467
|
+
`]))}let x=d.get(),C=x?[x]:l.get();if(C.length&&(E.style.position=getComputedStyle(C[0].element).position==="fixed"?"fixed":"absolute",E.appendChild(ze("ul",{class:"element-list"},C.map(N=>{let U=C.length>1&&!!N.menu?.some(M=>M.some($=>!$.selectors||$.selectors.some(K=>N.selectors.includes(K)))),D=U?{class:"selectable",onClick:a(()=>d.set(N),"onClick"),onMouseEnter:a(()=>u.set(N),"onMouseEnter"),onMouseLeave:a(()=>u.set(void 0),"onMouseLeave")}:x?{class:"selected",onClick:a(()=>d.set(void 0),"onClick")}:{},O=U||x;return ze("li",D,[ze(O?"button":"div",O?{type:"button"}:{},[x?Ci("chevronLeft"):null,ze("code",{},[N.element.outerHTML]),U?Ci("chevronRight"):null])])})))),d.get()||l.get().length===1){let N=d.get()||l.get()[0],U=N.menu?.filter(D=>D.some(O=>!O.selectors||O.selectors.some(M=>N.selectors.includes(M))));U?.length&&E.appendChild(ze("ul",{class:"menu-list"},U.map(D=>ze("li",{},[ze("ul",{class:"menu-items"},D.map(({id:O,title:M,description:$,iconLeft:K,iconRight:G,clickEvent:re})=>{let ae=re&&(()=>e.emit(re,O,fJ(N)));return ze("li",{},[ze(ae?"button":"div",ae?{class:"menu-item",type:"button",onClick:ae}:{class:"menu-item"},[K?Ci(K):null,ze("div",{class:"menu-item-content"},[ze($?"strong":"span",{},[M]),$&&ze("span",{},[$])]),G?Ci(G):null])])}))]))))}let k=i.get();k?(Object.assign(E.style,{display:"block",left:`${E.style.position==="fixed"?k.x-window.scrollX:k.x}px`,top:`${E.style.position==="fixed"?k.y-window.scrollY:k.y}px`}),tg(E),requestAnimationFrame(()=>dJ(E,k,{topOffset:15,centered:!0}))):(pJ(E),Object.assign(E.style,{display:"none"}))},"renderMenu");l.subscribe(g),d.subscribe(g);let v=a(E=>{let x=lJ(E);r.set(C=>{let k=x.id?C.filter(N=>N.id!==x.id):C;return x.selectors?.length?[...k,x]:k})},"addHighlight"),w=a(E=>{E&&r.set(x=>x.filter(C=>C.id!==E))},"removeHighlight"),P=a(()=>{r.set([]),n.set(new Map),o.set([]),i.set(void 0),s.set(void 0),l.set([]),c.set([]),u.set(void 0),d.set(void 0)},"resetState"),A,R=a((E,x)=>{let C="scrollIntoView-highlight";clearTimeout(A),w(C);let k=t.querySelector(E);if(!k){console.warn(`Cannot scroll into view: ${E} not found`);return}k.scrollIntoView({behavior:"smooth",block:"center",...x});let N=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(U=>[...U,{id:C,priority:1e3,selectors:[E],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${N} 3s linear forwards`},keyframes:`@keyframes ${N} {
|
|
468
|
+
0% { outline: 2px solid #1EA7FD; }
|
|
469
|
+
20% { outline: 2px solid #1EA7FD00; }
|
|
470
|
+
40% { outline: 2px solid #1EA7FD; }
|
|
471
|
+
60% { outline: 2px solid #1EA7FD00; }
|
|
472
|
+
80% { outline: 2px solid #1EA7FD; }
|
|
473
|
+
100% { outline: 2px solid #1EA7FD00; }
|
|
474
|
+
}`}]),A=setTimeout(()=>w(C),3500)},"scrollIntoView"),T=a(E=>{requestAnimationFrame(()=>s.set({x:E.pageX,y:E.pageY}))},"onMouseMove");t.body.addEventListener("mousemove",T),e.on(nJ,v),e.on(oJ,w),e.on(aJ,P),e.on(iJ,R),e.on(mn,({newPhase:E})=>{E==="loading"&&P()})},"useHighlights");globalThis?.FEATURES?.highlight&&Rt?.ready&&Rt.ready().then(mJ);var ng=a(()=>({}),"default"),yJ="measureEnabled";function Hm(){let e=te.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}a(Hm,"getDocumentWidthAndHeight");function uR(){let e=te.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");Kt(t!=null);let{width:r,height:n}=Hm();return ks(e,t,{width:r,height:n}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",te.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}a(uR,"createCanvas");function ks(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=te.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}a(ks,"setCanvasWidthAndHeight");var We={};function cR(){We.canvas||(We=uR())}a(cR,"init");function Vm(){We.context&&We.context.clearRect(0,0,We.width??0,We.height??0)}a(Vm,"clear");function dR(e){Vm(),e(We.context)}a(dR,"draw");function pR(){Kt(We.canvas),Kt(We.context),ks(We.canvas,We.context,{width:0,height:0});let{width:e,height:t}=Hm();ks(We.canvas,We.context,{width:e,height:t}),We.width=e,We.height=t}a(pR,"rescale");function fR(){We.canvas&&(Vm(),We.canvas.parentNode?.removeChild(We.canvas),We={})}a(fR,"destroy");var Dn={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},hr=6;function jd(e,{x:t,y:r,w:n,h:o,r:i}){t=t-n/2,r=r-o/2,n<2*i&&(i=n/2),o<2*i&&(i=o/2),e.beginPath(),e.moveTo(t+i,r),e.arcTo(t+n,r,t+n,r+o,i),e.arcTo(t+n,r+o,t,r+o,i),e.arcTo(t,r+o,t,r,i),e.arcTo(t,r,t+n,r,i),e.closePath()}a(jd,"roundedRect");function hR(e,{padding:t,border:r,width:n,height:o,top:i,left:s}){let l=n-r.left-r.right-t.left-t.right,c=o-t.top-t.bottom-r.top-r.bottom,u=s+r.left+t.left,d=i+r.top+t.top;return e==="top"?u+=l/2:e==="right"?(u+=l,d+=c/2):e==="bottom"?(u+=l/2,d+=c):e==="left"?d+=c/2:e==="center"&&(u+=l/2,d+=c/2),{x:u,y:d}}a(hR,"positionCoordinate");function mR(e,t,{margin:r,border:n,padding:o},i,s){let l=a(h=>0,"shift"),c=0,u=0,d=s?1:.5,p=s?i*2:0;return e==="padding"?l=a(h=>o[h]*d+p,"shift"):e==="border"?l=a(h=>o[h]+n[h]*d+p,"shift"):e==="margin"&&(l=a(h=>o[h]+n[h]+r[h]*d+p,"shift")),t==="top"?u=-l("top"):t==="right"?c=l("right"):t==="bottom"?u=l("bottom"):t==="left"&&(c=-l("left")),{offsetX:c,offsetY:u}}a(mR,"offset");function yR(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}a(yR,"collide");function bR(e,t,r){return e==="top"?t.y=r.y-r.h-hr:e==="right"?t.x=r.x+r.w/2+hr+t.w/2:e==="bottom"?t.y=r.y+r.h+hr:e==="left"&&(t.x=r.x-r.w/2-hr-t.w/2),{x:t.x,y:t.y}}a(bR,"overlapAdjustment");function Jm(e,t,{x:r,y:n,w:o,h:i},s){return jd(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${Dn[t]}dd`,e.fill(),e.strokeStyle=Dn[t],e.stroke(),e.fillStyle=Dn.text,e.fillText(s,r,n),jd(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${Dn[t]}dd`,e.fill(),e.strokeStyle=Dn[t],e.stroke(),e.fillStyle=Dn.text,e.fillText(s,r,n),{x:r,y:n,w:o,h:i}}a(Jm,"textWithRect");function zm(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),n=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,o=r.width+hr*2,i=n+hr*2;return{w:o,h:i}}a(zm,"configureText");function gR(e,t,{type:r,position:n="center",text:o},i,s=!1){let{x:l,y:c}=hR(n,t),{offsetX:u,offsetY:d}=mR(r,n,t,hr+1,s);l+=u,c+=d;let{w:p,h}=zm(e,o);if(i&&yR({x:l,y:c,w:p,h},i)){let f=bR(n,{x:l,y:c,w:p},i);l=f.x,c=f.y}return Jm(e,r,{x:l,y:c,w:p,h},o)}a(gR,"drawLabel");function vR(e,{w:t,h:r}){let n=t*.5+hr,o=r*.5+hr;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}a(vR,"floatingOffset");function wR(e,t,{type:r,text:n}){let{floatingAlignment:o,extremities:i}=t,s=i[o.x],l=i[o.y],{w:c,h:u}=zm(e,n),{offsetX:d,offsetY:p}=vR(o,{w:c,h:u});return s+=d,l+=p,Jm(e,r,{x:s,y:l,w:c,h:u},n)}a(wR,"drawFloatingLabel");function Un(e,t,r,n){let o=[];r.forEach((i,s)=>{let l=n&&i.position==="center"?wR(e,t,i):gR(e,t,i,o[s-1],n);o[s]=l})}a(Un,"drawStack");function ER(e,t,r,n){let o=r.reduce((i,s)=>(Object.prototype.hasOwnProperty.call(i,s.position)||(i[s.position]=[]),i[s.position]?.push(s),i),{});o.top&&Un(e,t,o.top,n),o.right&&Un(e,t,o.right,n),o.bottom&&Un(e,t,o.bottom,n),o.left&&Un(e,t,o.left,n),o.center&&Un(e,t,o.center,n)}a(ER,"labelStacks");var bu={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},og=30;function yt(e){return parseInt(e.replace("px",""),10)}a(yt,"pxToNumber");function sn(e){return Number.isInteger(e)?e:e.toFixed(2)}a(sn,"round");function gu(e){return e.filter(t=>t.text!==0&&t.text!=="0")}a(gu,"filterZeroValues");function xR(e){let t={top:te.window.scrollY,bottom:te.window.scrollY+te.window.innerHeight,left:te.window.scrollX,right:te.window.scrollX+te.window.innerWidth},r={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:r.left>r.right?"left":"right",y:r.top>r.bottom?"top":"bottom"}}a(xR,"floatingAlignment");function TR(e){let t=te.getComputedStyle(e),{top:r,left:n,right:o,bottom:i,width:s,height:l}=e.getBoundingClientRect(),{marginTop:c,marginBottom:u,marginLeft:d,marginRight:p,paddingTop:h,paddingBottom:f,paddingLeft:m,paddingRight:b,borderBottomWidth:g,borderTopWidth:v,borderLeftWidth:w,borderRightWidth:P}=t;r=r+te.window.scrollY,n=n+te.window.scrollX,i=i+te.window.scrollY,o=o+te.window.scrollX;let A={top:yt(c),bottom:yt(u),left:yt(d),right:yt(p)},R={top:yt(h),bottom:yt(f),left:yt(m),right:yt(b)},T={top:yt(v),bottom:yt(g),left:yt(w),right:yt(P)},E={top:r-A.top,bottom:i+A.bottom,left:n-A.left,right:o+A.right};return{margin:A,padding:R,border:T,top:r,left:n,bottom:i,right:o,width:s,height:l,extremities:E,floatingAlignment:xR(E)}}a(TR,"measureElement");function SR(e,{margin:t,width:r,height:n,top:o,left:i,bottom:s,right:l}){let c=n+t.bottom+t.top;e.fillStyle=bu.margin,e.fillRect(i,o-t.top,r,t.top),e.fillRect(l,o-t.top,t.right,c),e.fillRect(i,s,r,t.bottom),e.fillRect(i-t.left,o-t.top,t.left,c);let u=[{type:"margin",text:sn(t.top),position:"top"},{type:"margin",text:sn(t.right),position:"right"},{type:"margin",text:sn(t.bottom),position:"bottom"},{type:"margin",text:sn(t.left),position:"left"}];return gu(u)}a(SR,"drawMargin");function CR(e,{padding:t,border:r,width:n,height:o,top:i,left:s,bottom:l,right:c}){let u=n-r.left-r.right,d=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=bu.padding,e.fillRect(s+r.left,i+r.top,u,t.top),e.fillRect(c-t.right-r.right,i+t.top+r.top,t.right,d),e.fillRect(s+r.left,l-t.bottom-r.bottom,u,t.bottom),e.fillRect(s+r.left,i+t.top+r.top,t.left,d);let p=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return gu(p)}a(CR,"drawPadding");function PR(e,{border:t,width:r,height:n,top:o,left:i,bottom:s,right:l}){let c=n-t.top-t.bottom;e.fillStyle=bu.border,e.fillRect(i,o,r,t.top),e.fillRect(i,s-t.bottom,r,t.bottom),e.fillRect(i,o+t.top,t.left,c),e.fillRect(l-t.right,o+t.top,t.right,c);let u=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return gu(u)}a(PR,"drawBorder");function OR(e,{padding:t,border:r,width:n,height:o,top:i,left:s}){let l=n-r.left-r.right-t.left-t.right,c=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=bu.content,e.fillRect(s+r.left+t.left,i+r.top+t.top,l,c),[{type:"content",position:"center",text:`${sn(l)} x ${sn(c)}`}]}a(OR,"drawContent");function _R(e){return t=>{if(e&&t){let r=TR(e),n=SR(t,r),o=CR(t,r),i=PR(t,r),s=OR(t,r),l=r.width<=og*3||r.height<=og;ER(t,r,[...s,...o,...i,...n],l)}}}a(_R,"drawBoxModel");function AR(e){dR(_R(e))}a(AR,"drawSelectedElement");var bJ=a((e,t)=>{let r=te.document.elementFromPoint(e,t),n=a(o=>{if(o&&o.shadowRoot){let i=o.shadowRoot.elementFromPoint(e,t);return o.isEqualNode(i)?o:i.shadowRoot?n(i):i}return o},"crawlShadows");return n(r)||r},"deepElementFromPoint"),ag,Oi={x:0,y:0};function kd(e,t){ag=bJ(e,t),AR(ag)}a(kd,"findAndDrawElement");var gJ=a((e,t)=>{let{measureEnabled:r}=t.globals||{};return Fr(()=>{if(typeof globalThis.document>"u")return;let n=a(o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),Oi.x=o.clientX,Oi.y=o.clientY})},"onPointerMove");return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),Fr(()=>{let n=a(i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),kd(i.clientX,i.clientY)})},"onPointerOver"),o=a(()=>{window.requestAnimationFrame(()=>{pR()})},"onResize");return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),cR(),globalThis.window.addEventListener("resize",o),kd(Oi.x,Oi.y)),()=>{globalThis.window.removeEventListener("resize",o),fR()}},[r,t.viewMode]),e()},"withMeasure"),vJ=globalThis.FEATURES?.measure?[gJ]:[],wJ={[yJ]:!1},ig=a(()=>({decorators:vJ,initialGlobals:wJ}),"default"),RR="outline",sg=a(e=>{(Array.isArray(e)?e:[e]).forEach(EJ)},"clearStyles"),EJ=a(e=>{let t=typeof e=="string"?e:e.join(""),r=te.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},"clearStyle"),xJ=a((e,t)=>{let r=te.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=te.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,te.document.head.appendChild(n)}},"addOutlineStyles");function qR(e){return ge`
|
|
475
|
+
${e} body {
|
|
476
|
+
outline: 1px solid #2980b9 !important;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
${e} article {
|
|
480
|
+
outline: 1px solid #3498db !important;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
${e} nav {
|
|
484
|
+
outline: 1px solid #0088c3 !important;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
${e} aside {
|
|
488
|
+
outline: 1px solid #33a0ce !important;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
${e} section {
|
|
492
|
+
outline: 1px solid #66b8da !important;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
${e} header {
|
|
496
|
+
outline: 1px solid #99cfe7 !important;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
${e} footer {
|
|
500
|
+
outline: 1px solid #cce7f3 !important;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
${e} h1 {
|
|
504
|
+
outline: 1px solid #162544 !important;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
${e} h2 {
|
|
508
|
+
outline: 1px solid #314e6e !important;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
${e} h3 {
|
|
512
|
+
outline: 1px solid #3e5e85 !important;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
${e} h4 {
|
|
516
|
+
outline: 1px solid #449baf !important;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
${e} h5 {
|
|
520
|
+
outline: 1px solid #c7d1cb !important;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
${e} h6 {
|
|
524
|
+
outline: 1px solid #4371d0 !important;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
${e} main {
|
|
528
|
+
outline: 1px solid #2f4f90 !important;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
${e} address {
|
|
532
|
+
outline: 1px solid #1a2c51 !important;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
${e} div {
|
|
536
|
+
outline: 1px solid #036cdb !important;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
${e} p {
|
|
540
|
+
outline: 1px solid #ac050b !important;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
${e} hr {
|
|
544
|
+
outline: 1px solid #ff063f !important;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
${e} pre {
|
|
548
|
+
outline: 1px solid #850440 !important;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
${e} blockquote {
|
|
552
|
+
outline: 1px solid #f1b8e7 !important;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
${e} ol {
|
|
556
|
+
outline: 1px solid #ff050c !important;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
${e} ul {
|
|
560
|
+
outline: 1px solid #d90416 !important;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
${e} li {
|
|
564
|
+
outline: 1px solid #d90416 !important;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
${e} dl {
|
|
568
|
+
outline: 1px solid #fd3427 !important;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
${e} dt {
|
|
572
|
+
outline: 1px solid #ff0043 !important;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
${e} dd {
|
|
576
|
+
outline: 1px solid #e80174 !important;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
${e} figure {
|
|
580
|
+
outline: 1px solid #ff00bb !important;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
${e} figcaption {
|
|
584
|
+
outline: 1px solid #bf0032 !important;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
${e} table {
|
|
588
|
+
outline: 1px solid #00cc99 !important;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
${e} caption {
|
|
592
|
+
outline: 1px solid #37ffc4 !important;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
${e} thead {
|
|
596
|
+
outline: 1px solid #98daca !important;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
${e} tbody {
|
|
600
|
+
outline: 1px solid #64a7a0 !important;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
${e} tfoot {
|
|
604
|
+
outline: 1px solid #22746b !important;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
${e} tr {
|
|
608
|
+
outline: 1px solid #86c0b2 !important;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
${e} th {
|
|
612
|
+
outline: 1px solid #a1e7d6 !important;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
${e} td {
|
|
616
|
+
outline: 1px solid #3f5a54 !important;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
${e} col {
|
|
620
|
+
outline: 1px solid #6c9a8f !important;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
${e} colgroup {
|
|
624
|
+
outline: 1px solid #6c9a9d !important;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
${e} button {
|
|
628
|
+
outline: 1px solid #da8301 !important;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
${e} datalist {
|
|
632
|
+
outline: 1px solid #c06000 !important;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
${e} fieldset {
|
|
636
|
+
outline: 1px solid #d95100 !important;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
${e} form {
|
|
640
|
+
outline: 1px solid #d23600 !important;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
${e} input {
|
|
644
|
+
outline: 1px solid #fca600 !important;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
${e} keygen {
|
|
648
|
+
outline: 1px solid #b31e00 !important;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
${e} label {
|
|
652
|
+
outline: 1px solid #ee8900 !important;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
${e} legend {
|
|
656
|
+
outline: 1px solid #de6d00 !important;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
${e} meter {
|
|
660
|
+
outline: 1px solid #e8630c !important;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
${e} optgroup {
|
|
664
|
+
outline: 1px solid #b33600 !important;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
${e} option {
|
|
668
|
+
outline: 1px solid #ff8a00 !important;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
${e} output {
|
|
672
|
+
outline: 1px solid #ff9619 !important;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
${e} progress {
|
|
676
|
+
outline: 1px solid #e57c00 !important;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
${e} select {
|
|
680
|
+
outline: 1px solid #e26e0f !important;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
${e} textarea {
|
|
684
|
+
outline: 1px solid #cc5400 !important;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
${e} details {
|
|
688
|
+
outline: 1px solid #33848f !important;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
${e} summary {
|
|
692
|
+
outline: 1px solid #60a1a6 !important;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
${e} command {
|
|
696
|
+
outline: 1px solid #438da1 !important;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
${e} menu {
|
|
700
|
+
outline: 1px solid #449da6 !important;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
${e} del {
|
|
704
|
+
outline: 1px solid #bf0000 !important;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
${e} ins {
|
|
708
|
+
outline: 1px solid #400000 !important;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
${e} img {
|
|
712
|
+
outline: 1px solid #22746b !important;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
${e} iframe {
|
|
716
|
+
outline: 1px solid #64a7a0 !important;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
${e} embed {
|
|
720
|
+
outline: 1px solid #98daca !important;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
${e} object {
|
|
724
|
+
outline: 1px solid #00cc99 !important;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
${e} param {
|
|
728
|
+
outline: 1px solid #37ffc4 !important;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
${e} video {
|
|
732
|
+
outline: 1px solid #6ee866 !important;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
${e} audio {
|
|
736
|
+
outline: 1px solid #027353 !important;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
${e} source {
|
|
740
|
+
outline: 1px solid #012426 !important;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
${e} canvas {
|
|
744
|
+
outline: 1px solid #a2f570 !important;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
${e} track {
|
|
748
|
+
outline: 1px solid #59a600 !important;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
${e} map {
|
|
752
|
+
outline: 1px solid #7be500 !important;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
${e} area {
|
|
756
|
+
outline: 1px solid #305900 !important;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
${e} a {
|
|
760
|
+
outline: 1px solid #ff62ab !important;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
${e} em {
|
|
764
|
+
outline: 1px solid #800b41 !important;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
${e} strong {
|
|
768
|
+
outline: 1px solid #ff1583 !important;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
${e} i {
|
|
772
|
+
outline: 1px solid #803156 !important;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
${e} b {
|
|
776
|
+
outline: 1px solid #cc1169 !important;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
${e} u {
|
|
780
|
+
outline: 1px solid #ff0430 !important;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
${e} s {
|
|
784
|
+
outline: 1px solid #f805e3 !important;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
${e} small {
|
|
788
|
+
outline: 1px solid #d107b2 !important;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
${e} abbr {
|
|
792
|
+
outline: 1px solid #4a0263 !important;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
${e} q {
|
|
796
|
+
outline: 1px solid #240018 !important;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
${e} cite {
|
|
800
|
+
outline: 1px solid #64003c !important;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
${e} dfn {
|
|
804
|
+
outline: 1px solid #b4005a !important;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
${e} sub {
|
|
808
|
+
outline: 1px solid #dba0c8 !important;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
${e} sup {
|
|
812
|
+
outline: 1px solid #cc0256 !important;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
${e} time {
|
|
816
|
+
outline: 1px solid #d6606d !important;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
${e} code {
|
|
820
|
+
outline: 1px solid #e04251 !important;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
${e} kbd {
|
|
824
|
+
outline: 1px solid #5e001f !important;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
${e} samp {
|
|
828
|
+
outline: 1px solid #9c0033 !important;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
${e} var {
|
|
832
|
+
outline: 1px solid #d90047 !important;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
${e} mark {
|
|
836
|
+
outline: 1px solid #ff0053 !important;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
${e} bdi {
|
|
840
|
+
outline: 1px solid #bf3668 !important;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
${e} bdo {
|
|
844
|
+
outline: 1px solid #6f1400 !important;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
${e} ruby {
|
|
848
|
+
outline: 1px solid #ff7b93 !important;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
${e} rt {
|
|
852
|
+
outline: 1px solid #ff2f54 !important;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
${e} rp {
|
|
856
|
+
outline: 1px solid #803e49 !important;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
${e} span {
|
|
860
|
+
outline: 1px solid #cc2643 !important;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
${e} br {
|
|
864
|
+
outline: 1px solid #db687d !important;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
${e} wbr {
|
|
868
|
+
outline: 1px solid #db175b !important;
|
|
869
|
+
}`}a(qR,"outlineCSS");var TJ=a((e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[RR]),o=t.viewMode==="docs",i=Ap(()=>qR(o?'[data-story-block="true"]':".sb-show-main"),[t]);return Fr(()=>{let s=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?xJ(s,i):sg(s),()=>{sg(s)}},[n,i,t]),e()},"withOutline"),SJ=globalThis.FEATURES?.outline?[TJ]:[],CJ={[RR]:!1},lg=a(()=>({decorators:SJ,initialGlobals:CJ}),"default"),PJ=a(({parameters:e})=>{e?.test?.mockReset===!0?Hh():e?.test?.clearMocks===!0?Uh():e?.test?.restoreMocks!==!1&&Vh()},"resetAllMocksLoader"),Md=a((e,t=0,r)=>{if(t>5||e==null)return e;if(dn(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let n=Fh(e);return r&&n.mockName(r),n}if(Array.isArray(e)){t++;for(let n=0;n<e.length;n++)Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=Md(e[n],t));return e}if(typeof e=="object"&&e.constructor===Object){t++;for(let[n,o]of Object.entries(e))Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=Md(o,t,n));return e}return e},"traverseArgs"),OJ=a(({initialArgs:e})=>{Md(e)},"nameSpiesAndWrapActionsInSpies"),ug=!1,_J=a(async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=sR(e.canvasElement));let t=globalThis.window?.navigator?.clipboard;if(t){e.userEvent=_o({userEvent:lR.setup()},{intercept:!0,getKeys:a(n=>Object.keys(n).filter(o=>o!=="eventWrapper"),"getKeys")}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:a(()=>t,"get"),configurable:!0});let r=HTMLElement.prototype.focus;ug||Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:a(n=>{r=n,ug=!0},"set"),get:a(()=>r,"get")}})}},"enhanceContext"),cg=a(()=>({loaders:[PJ,OJ,_J]}),"default"),AJ="viewport",RJ={[AJ]:{value:void 0,isRotated:!1}},dg=a(()=>({initialGlobals:RJ}),"default");function Wm(){return[(ig.default??ig)(),(Gb.default??Gb)(),(ng.default??ng)(),(lg.default??lg)(),(dg.default??dg)(),(Vb.default??Vb)(),(Kb.default??Kb)(),(cg.default??cg)()]}a(Wm,"getCoreAnnotations");function vu(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Story"}a(vu,"isStory");var NR=a(e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),"sanitize"),pg=a((e,t)=>{let r=NR(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},"sanitizeSafe"),qJ=a((e,t)=>`${pg(e,"kind")}${t?`--${pg(t,"name")}`:""}`,"toId"),NJ=a(e=>HE(e),"storyNameFromExport");function $d(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}a($d,"matches");function Ms(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||$d(e,t))&&(!r||!$d(e,r))}a(Ms,"isExportStory");var IJ=a((...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)},"combineTags");function IR(){}a(IR,"noop");function Ld(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}a(Ld,"getSymbols");function Dd(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}a(Dd,"getTag");var jJ="[object RegExp]",kJ="[object String]",MJ="[object Number]",$J="[object Boolean]",fg="[object Arguments]",LJ="[object Symbol]",DJ="[object Date]",FJ="[object Map]",BJ="[object Set]",UJ="[object Array]",HJ="[object Function]",VJ="[object ArrayBuffer]",Ju="[object Object]",JJ="[object Error]",zJ="[object DataView]",WJ="[object Uint8Array]",GJ="[object Uint8ClampedArray]",KJ="[object Uint16Array]",YJ="[object Uint32Array]",XJ="[object BigUint64Array]",QJ="[object Int8Array]",ZJ="[object Int16Array]",ez="[object Int32Array]",tz="[object BigInt64Array]",rz="[object Float32Array]",nz="[object Float64Array]";function Lt(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}a(Lt,"isPlainObject");function xo(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],s=e[i];r[i]=t(s,i,e)}return r}a(xo,"mapValues");function jR(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],s=e[i];t(s,i)&&(r[i]=s)}return r}a(jR,"pickBy");function kR(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}a(kR,"eq");function MR(e,t,r){return Xn(e,t,void 0,void 0,void 0,void 0,r)}a(MR,"isEqualWith");function Xn(e,t,r,n,o,i,s){let l=s(e,t,r,n,o,i);if(l!==void 0)return l;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return no(e,t,i,s)}return no(e,t,i,s)}a(Xn,"isEqualWithImpl");function no(e,t,r,n){if(Object.is(e,t))return!0;let o=Dd(e),i=Dd(t);if(o===fg&&(o=Ju),i===fg&&(i=Ju),o!==i)return!1;switch(o){case kJ:return e.toString()===t.toString();case MJ:{let c=e.valueOf(),u=t.valueOf();return kR(c,u)}case $J:case DJ:case LJ:return Object.is(e.valueOf(),t.valueOf());case jJ:return e.source===t.source&&e.flags===t.flags;case HJ:return e===t}r=r??new Map;let s=r.get(e),l=r.get(t);if(s!=null&&l!=null)return s===t;r.set(e,t),r.set(t,e);try{switch(o){case FJ:{if(e.size!==t.size)return!1;for(let[c,u]of e.entries())if(!t.has(c)||!Xn(u,t.get(c),c,e,t,r,n))return!1;return!0}case BJ:{if(e.size!==t.size)return!1;let c=Array.from(e.values()),u=Array.from(t.values());for(let d=0;d<c.length;d++){let p=c[d],h=u.findIndex(f=>Xn(p,f,void 0,e,t,r,n));if(h===-1)return!1;u.splice(h,1)}return!0}case UJ:case WJ:case GJ:case KJ:case YJ:case XJ:case QJ:case ZJ:case ez:case tz:case rz:case nz:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let c=0;c<e.length;c++)if(!Xn(e[c],t[c],c,e,t,r,n))return!1;return!0}case VJ:return e.byteLength!==t.byteLength?!1:no(new Uint8Array(e),new Uint8Array(t),r,n);case zJ:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:no(new Uint8Array(e),new Uint8Array(t),r,n);case JJ:return e.name===t.name&&e.message===t.message;case Ju:{if(!(no(e.constructor,t.constructor,r,n)||Lt(e)&&Lt(t)))return!1;let c=[...Object.keys(e),...Ld(e)],u=[...Object.keys(t),...Ld(t)];if(c.length!==u.length)return!1;for(let d=0;d<c.length;d++){let p=c[d],h=e[p];if(!Object.hasOwn(t,p))return!1;let f=t[p];if(!Xn(h,f,p,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}a(no,"areObjectsEqual");function $R(e,t){return MR(e,t,IR)}a($R,"isEqual");var zu=He(tv(),1),Hn=Symbol("incompatible"),Fd=a((e,t)=>{let r=t.type;if(e==null||!r||t.mapping)return e;switch(r.name){case"string":return String(e);case"enum":return e;case"number":return Number(e);case"boolean":return String(e)==="true";case"array":return!r.value||!Array.isArray(e)?Hn:e.reduce((n,o,i)=>{let s=Fd(o,{type:r.value});return s!==Hn&&(n[i]=s),n},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?Hn:Object.entries(e).reduce((n,[o,i])=>{let s=Fd(i,{type:r.value[o]});return s===Hn?n:Object.assign(n,{[o]:s})},{});default:return Hn}},"map"),oz=a((e,t)=>Object.entries(e).reduce((r,[n,o])=>{if(!t[n])return r;let i=Fd(o,t[n]);return i===Hn?r:Object.assign(r,{[n]:i})},{}),"mapArgsToTypes"),$s=a((e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,n,o)=>(r[o]=$s(e[o],t[o]),r),[...e]).filter(r=>r!==void 0):!Lt(e)||!Lt(t)?t:Object.keys({...e,...t}).reduce((r,n)=>{if(n in t){let o=$s(e[n],t[n]);o!==void 0&&(r[n]=o)}else r[n]=e[n];return r},{}),"combineArgs"),az=a((e,t)=>Object.entries(t).reduce((r,[n,{options:o}])=>{function i(){return n in e&&(r[n]=e[n]),r}if(a(i,"allowArg"),!o)return i();if(!Array.isArray(o))return Be.error(ge`
|
|
870
|
+
Invalid argType: '${n}.options' should be an array.
|
|
871
|
+
|
|
872
|
+
More info: https://storybook.js.org/docs/api/arg-types?ref=error
|
|
873
|
+
`),i();if(o.some(p=>p&&["object","function"].includes(typeof p)))return Be.error(ge`
|
|
874
|
+
Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values.
|
|
875
|
+
|
|
876
|
+
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#mapping-to-complex-arg-values
|
|
877
|
+
`),i();let s=Array.isArray(e[n]),l=s&&e[n].findIndex(p=>!o.includes(p)),c=s&&l===-1;if(e[n]===void 0||o.includes(e[n])||c)return i();let u=s?`${n}[${l}]`:n,d=o.map(p=>typeof p=="string"?`'${p}'`:String(p)).join(", ");return Be.warn(`Received illegal value for '${u}'. Supported options: ${d}`),r},{}),"validateOptions"),xa=Symbol("Deeply equal"),Ls=a((e,t)=>{if(typeof e!=typeof t)return t;if($R(e,t))return xa;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,i)=>{let s=Ls(e[i],o);return s!==xa&&(n[i]=s),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return Lt(e)&&Lt(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=Ls(e?.[n],t?.[n]);return o===xa?r:Object.assign(r,{[n]:o})},{}):t},"deepDiff"),LR="UNTARGETED";function DR({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,o])=>{let{target:i=LR}=t[n]||{};r[i]=r[i]||{},r[i][n]=o}),r}a(DR,"groupArgsByTarget");function FR(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}a(FR,"deleteUndefined");var BR=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(t){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);return this.argsByStoryId[t]}setInitial(t){if(!this.initialArgsByStoryId[t.id])this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs;else if(this.initialArgsByStoryId[t.id]!==t.initialArgs){let r=Ls(this.initialArgsByStoryId[t.id],this.argsByStoryId[t.id]);this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs,r!==xa&&this.updateFromDelta(t,r)}}updateFromDelta(t,r){let n=az(r,t.argTypes);this.argsByStoryId[t.id]=$s(this.argsByStoryId[t.id],n)}updateFromPersisted(t,r){let n=oz(r,t.argTypes);return this.updateFromDelta(t,n)}update(t,r){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);this.argsByStoryId[t]=FR({...this.argsByStoryId[t],...r})}};a(BR,"ArgsStore");var iz=BR,UR=a((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),"getValuesFromArgTypes"),HR=class{constructor({globals:t={},globalTypes:r={}}){this.set({globals:t,globalTypes:r})}set({globals:t={},globalTypes:r={}}){let n=this.initialGlobals&&Ls(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(t),...Object.keys(r)]);let o=UR(r);this.initialGlobals={...o,...t},this.globals=this.initialGlobals,n&&n!==xa&&this.updateFromPersisted(n)}filterAllowedGlobals(t){return Object.entries(t).reduce((r,[n,o])=>(this.allowedGlobalNames.has(n)?r[n]=o:Ne.warn(`Attempted to set a global (${n}) that is not defined in initial globals or globalTypes`),r),{})}updateFromPersisted(t){let r=this.filterAllowedGlobals(t);this.globals={...this.globals,...r}}get(){return this.globals}update(t){this.globals={...this.globals,...this.filterAllowedGlobals(t)};for(let r in t)t[r]===void 0&&(this.globals[r]=this.initialGlobals[r])}};a(HR,"GlobalsStore");var sz=HR,lz=He(tv(),1),uz=(0,lz.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),VR=class{constructor({entries:t}={v:5,entries:{}}){this.entries=t}entryFromSpecifier(t){let r=Object.values(this.entries);if(t==="*")return r[0];if(typeof t=="string")return this.entries[t]?this.entries[t]:r.find(i=>i.id.startsWith(t));let{name:n,title:o}=t;return r.find(i=>i.name===n&&i.title===o)}storyIdToEntry(t){let r=this.entries[t];if(!r)throw new Kw({storyId:t});return r}importPathToEntry(t){return uz(this.entries)[t]}};a(VR,"StoryIndexStore");var cz=VR,dz=a(e=>typeof e=="string"?{name:e}:e,"normalizeType"),pz=a(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),fz=a((e,t)=>{let{type:r,control:n,...o}=e,i={name:t,...o};return r&&(i.type=dz(r)),n?i.control=pz(n):n===!1&&(i.control={disable:!0}),i},"normalizeInputType"),Ds=a(e=>xo(e,fz),"normalizeInputTypes"),_e=a(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),hz=ge`
|
|
878
|
+
CSF .story annotations deprecated; annotate story functions directly:
|
|
879
|
+
- StoryFn.story.name => StoryFn.storyName
|
|
880
|
+
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
|
|
881
|
+
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
|
|
882
|
+
`;function Ja(e,t,r){let n=t,o=typeof t=="function"?t:null,{story:i}=n;i&&(Ne.debug("deprecated story",i),dp(hz));let s=NJ(e),l=typeof n!="function"&&n.name||n.storyName||i?.name||s,c=[..._e(n.decorators),..._e(i?.decorators)],u={...i?.parameters,...n.parameters},d={...i?.args,...n.args},p={...i?.argTypes,...n.argTypes},h=[..._e(n.loaders),..._e(i?.loaders)],f=[..._e(n.beforeEach),..._e(i?.beforeEach)],m=[..._e(n.afterEach),..._e(i?.afterEach)],{render:b,play:g,tags:v=[],globals:w={}}=n,P=u.__id||qJ(r.id,s);return{moduleExport:t,id:P,name:l,tags:v,decorators:c,parameters:u,args:d,argTypes:Ds(p),loaders:h,beforeEach:f,afterEach:m,globals:w,...b&&{render:b},...o&&{userStoryFn:o},...g&&{play:g}}}a(Ja,"normalizeStory");function Fs(e,t=e.title,r){let{id:n,argTypes:o}=e;return{id:NR(n||t),...e,title:t,...o&&{argTypes:Ds(o)},parameters:{fileName:r,...e.parameters}}}a(Fs,"normalizeComponentAnnotations");var mz=a(e=>{let{globals:t,globalTypes:r}=e;(t||r)&&Ne.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},"checkGlobals"),yz=a(e=>{let{options:t}=e;t?.storySort&&Ne.error("The storySort option parameter can only be set globally")},"checkStorySort"),_i=a(e=>{e&&(mz(e),yz(e))},"checkDisallowedParameters");function JR(e,t,r){let{default:n,__namedExportsOrder:o,...i}=e,s=Object.values(i)[0];if(vu(s)){let u=Fs(s.meta.input,r,t);_i(u.parameters);let d={meta:u,stories:{},moduleExports:e};return Object.keys(i).forEach(p=>{if(Ms(p,u)){let h=Ja(p,i[p].input,u);_i(h.parameters),d.stories[h.id]=h}}),d.projectAnnotations=s.meta.preview.composed,d}let l=Fs(n,r,t);_i(l.parameters);let c={meta:l,stories:{},moduleExports:e};return Object.keys(i).forEach(u=>{if(Ms(u,l)){let d=Ja(u,i[u],l);_i(d.parameters),c.stories[d.id]=d}}),c}a(JR,"processCSFFile");function zR(e){return e!=null&&WR(e).includes("mount")}a(zR,"mountDestructured");function WR(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=Bd(t[1]);if(!r.length)return[];let n=r[0];return n.startsWith("{")&&n.endsWith("}")?Bd(n.slice(1,-1).replace(/\s/g,"")).map(o=>o.replace(/:.*|=.*/g,"")):[]}a(WR,"getUsedProps");function Bd(e){let t=[],r=[],n=0;for(let i=0;i<e.length;i++)if(e[i]==="{"||e[i]==="[")r.push(e[i]==="{"?"}":"]");else if(e[i]===r[r.length-1])r.pop();else if(!r.length&&e[i]===","){let s=e.substring(n,i).trim();s&&t.push(s),n=i+1}let o=e.substring(n).trim();return o&&t.push(o),t}a(Bd,"splitByComma");function Gm(e,t,r){let n=r(e);return o=>t(n,o)}a(Gm,"decorateStory");function Km({componentId:e,title:t,kind:r,id:n,name:o,story:i,parameters:s,initialArgs:l,argTypes:c,...u}={}){return u}a(Km,"sanitizeStoryContextUpdate");function Ym(e,t){let r={},n=a(i=>s=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...Km(s)},i(r.value)},"bindWithContext"),o=t.reduce((i,s)=>Gm(i,s,n),e);return i=>(r.value=i,o(i))}a(Ym,"defaultDecorateStory");var Sn=a((...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,i)=>(Object.entries(i).forEach(([s,l])=>{let c=o[s];Array.isArray(l)||typeof c>"u"?o[s]=l:Lt(l)&&Lt(c)?t[s]=!0:typeof l<"u"&&(o[s]=l)}),o),{});return Object.keys(t).forEach(o=>{let i=r.filter(Boolean).map(s=>s[o]).filter(s=>typeof s<"u");i.every(s=>Lt(s))?n[o]=Sn(...i):n[o]=i[i.length-1]}),n},"combineParameters");function wu(e,t,r){let{moduleExport:n,id:o,name:i}=e||{},s=Qm(e,t,r),l=a(async T=>{let E={};for(let x of[_e(r.loaders),_e(t.loaders),_e(e.loaders)]){if(T.abortSignal.aborted)return E;let C=await Promise.all(x.map(k=>k(T)));Object.assign(E,...C)}return E},"applyLoaders"),c=a(async T=>{let E=new Array;for(let x of[..._e(r.beforeEach),..._e(t.beforeEach),..._e(e.beforeEach)]){if(T.abortSignal.aborted)return E;let C=await x(T);C&&E.push(C)}return E},"applyBeforeEach"),u=a(async T=>{let E=[..._e(r.afterEach),..._e(t.afterEach),..._e(e.afterEach)].reverse();for(let x of E){if(T.abortSignal.aborted)return;await x(T)}},"applyAfterEach"),d=a(T=>T.originalStoryFn(T.args,T),"undecoratedStoryFn"),{applyDecorators:p=Ym,runStep:h}=r,f=[..._e(e?.decorators),..._e(t?.decorators),..._e(r?.decorators)],m=e?.userStoryFn||e?.render||t.render||r.render,b=IE(p)(d,f),g=a(T=>b(T),"unboundStoryFn"),v=e?.play??t?.play,w=zR(v);if(!m&&!w)throw new bE({id:o});let P=a(T=>async()=>(await T.renderToCanvas(),T.canvas),"defaultMount"),A=e.mount??t.mount??r.mount??P,R=r.testingLibraryRender;return{storyGlobals:{},...s,moduleExport:n,id:o,name:i,story:i,originalStoryFn:m,undecoratedStoryFn:d,unboundStoryFn:g,applyLoaders:l,applyBeforeEach:c,applyAfterEach:u,playFunction:v,runStep:h,mount:A,testingLibraryRender:R,renderToCanvas:r.renderToCanvas,usesMount:w}}a(wu,"prepareStory");function Xm(e,t,r){return{...Qm(void 0,e,t),moduleExport:r}}a(Xm,"prepareMeta");function Qm(e,t,r){let n=["dev","test"],o=te.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],i=IJ(...n,...o,...r.tags??[],...t.tags??[],...e?.tags??[]),s=Sn(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:l=[],argsEnhancers:c=[]}=r,u=Sn(r.argTypes,t.argTypes,e?.argTypes);if(e){let v=e?.userStoryFn||e?.render||t.render||r.render;s.__isArgsStory=v&&v.length>0}let d={...r.args,...t.args,...e?.args},p={...t.globals,...e?.globals},h={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:i,parameters:s,initialArgs:d,argTypes:u,storyGlobals:p};h.argTypes=l.reduce((v,w)=>w({...h,argTypes:v}),h.argTypes);let f={...d};h.initialArgs=[...c].reduce((v,w)=>({...v,...w({...h,initialArgs:v})}),f);let{name:m,story:b,...g}=h;return g}a(Qm,"preparePartialAnnotations");function Zm(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(te.FEATURES?.argTypeTargetsV7){let i=DR(e);r={...e,allArgs:e.args,argsByTarget:i,args:i[LR]||{}}}let n=Object.entries(r.args).reduce((i,[s,l])=>{if(!r.argTypes[s]?.mapping)return i[s]=l,i;let c=a(u=>{let d=r.argTypes[s].mapping;return d&&u in d?d[u]:u},"mappingFn");return i[s]=Array.isArray(l)?l.map(c):c(l),i},{}),o=Object.entries(n).reduce((i,[s,l])=>{let c=r.argTypes[s]||{};return AB(c,n,r.globals)&&(i[s]=l),i},{});return{...r,unmappedArgs:t,args:o}}a(Zm,"prepareContext");var Ud=a((e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n}}return e?r.has(e)?(Ne.warn(ge`
|
|
883
|
+
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
|
|
884
|
+
|
|
885
|
+
Consider using the mapping feature or fully custom args:
|
|
886
|
+
- Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
|
|
887
|
+
- Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
|
|
888
|
+
`),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?Ud(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:xo(e,o=>Ud(o,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),GR=a(e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=xo(n,(s,l)=>({name:l,type:Ud(s,`${t}.${l}`,new Set)})),i=xo(r,(s,l)=>({name:l}));return Sn(o,i,r)},"inferArgTypes");GR.secondPass=!0;var hg=a((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),KR=a((e,t,r)=>!t&&!r?e:e&&jR(e,(n,o)=>{let i=n.name||o.toString();return!!(!t||hg(i,t))&&(!r||!hg(i,r))}),"filterArgTypes"),bz=a((e,t,r)=>{let{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){let i=n.name;if(i==="string")return{control:{type:"color"}};i!=="enum"&&Ne.warn(`Addon controls: Control of type color only supports string, received "${i}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:i}=n;return{control:{type:i?.length<=5?"radio":"select"},options:i}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},"inferControl"),ey=a(e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:i={}}={}}}=e;if(!r)return t;let s=KR(t,n,o),l=xo(s,(c,u)=>c?.type&&bz(c,u.toString(),i));return Sn(l,s)},"inferControls");ey.secondPass=!0;function za({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:n,loaders:o,beforeEach:i,afterEach:s,initialGlobals:l,...c}){return{...e&&{argTypes:Ds(e)},...t&&{globalTypes:Ds(t)},decorators:_e(n),loaders:_e(o),beforeEach:_e(i),afterEach:_e(s),argTypesEnhancers:[...r||[],GR,ey],initialGlobals:l,...c}}a(za,"normalizeProjectAnnotations");var gz=a(e=>async()=>{let t=[];for(let r of e){let n=await r();n&&t.unshift(n)}return async()=>{for(let r of t)await r()}},"composeBeforeAllHooks");function ty(e){return async(t,r,n)=>{await e.reduceRight((o,i)=>async()=>i(t,o,n),async()=>r(n))()}}a(ty,"composeStepRunners");function To(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}a(To,"getField");function ur(e,t,r={}){return To(e,t).reduce((n,o)=>{let i=_e(o);return r.reverseFileOrder?[...i,...n]:[...n,...i]},[])}a(ur,"getArrayField");function pa(e,t){return Object.assign({},...To(e,t))}a(pa,"getObjectField");function Vn(e,t){return To(e,t).pop()}a(Vn,"getSingletonField");function Cn(e){let t=ur(e,"argTypesEnhancers"),r=To(e,"runStep"),n=ur(e,"beforeAll");return{parameters:Sn(...To(e,"parameters")),decorators:ur(e,"decorators",{reverseFileOrder:!(te.FEATURES?.legacyDecoratorFileOrder??!1)}),args:pa(e,"args"),argsEnhancers:ur(e,"argsEnhancers"),argTypes:pa(e,"argTypes"),argTypesEnhancers:[...t.filter(o=>!o.secondPass),...t.filter(o=>o.secondPass)],initialGlobals:pa(e,"initialGlobals"),globalTypes:pa(e,"globalTypes"),loaders:ur(e,"loaders"),beforeAll:gz(n),beforeEach:ur(e,"beforeEach"),afterEach:ur(e,"afterEach"),render:Vn(e,"render"),renderToCanvas:Vn(e,"renderToCanvas"),applyDecorators:Vn(e,"applyDecorators"),runStep:ty(r),tags:ur(e,"tags"),mount:Vn(e,"mount"),testingLibraryRender:Vn(e,"testingLibraryRender")}}a(Cn,"composeConfigs");function ry(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}a(ry,"isTestEnvironment");function Eu(e=!0){if(!("document"in globalThis&&"createElement"in globalThis.document))return()=>{};let t=document.createElement("style");t.textContent=`*, *:before, *:after {
|
|
889
|
+
animation: none !important;
|
|
890
|
+
}`,document.head.appendChild(t);let r=document.createElement("style");return r.textContent=`*, *:before, *:after {
|
|
891
|
+
animation-delay: 0s !important;
|
|
892
|
+
animation-direction: ${e?"reverse":"normal"} !important;
|
|
893
|
+
animation-play-state: paused !important;
|
|
894
|
+
transition: none !important;
|
|
895
|
+
}`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{r.parentNode?.removeChild(r)}}a(Eu,"pauseAnimations");async function xu(e){if(!("document"in globalThis&&"getAnimations"in globalThis.document&&"querySelectorAll"in globalThis.document))return;let t=!1;await Promise.race([new Promise(r=>{setTimeout(()=>{let n=[globalThis.document,...ny(globalThis.document)],o=a(async()=>{if(t||e?.aborted)return;let i=n.flatMap(s=>s?.getAnimations?.()||[]).filter(s=>s.playState==="running"&&!YR(s));i.length>0&&(await Promise.all(i.map(s=>s.finished)),await o())},"checkAnimationsFinished");o().then(r)},100)}),new Promise(r=>setTimeout(()=>{t=!0,r(void 0)},5e3))])}a(xu,"waitForAnimations");function ny(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...ny(r.shadowRoot)),t),[])}a(ny,"getShadowRoots");function YR(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let t=getComputedStyle(e.effect.target,e.effect.pseudoElement),r=t.animationName?.split(", ").indexOf(e.animationName);return t.animationIterationCount.split(", ")[r]==="infinite"}return!1}a(YR,"isInfiniteAnimation");var XR=class{constructor(){this.reports=[]}async addReport(t){this.reports.push(t)}};a(XR,"ReporterAPI");var oy=XR;function ay(e,t,r){return vu(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:t,preview:r}}a(ay,"getCsfFactoryAnnotations");function QR(e){globalThis.defaultProjectAnnotations=e}a(QR,"setDefaultProjectAnnotations");var vz="ComposedStory",wz="Unnamed Story";function ZR(e){return e?Cn([e]):{}}a(ZR,"extractAnnotation");function e1(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=Cn([...Wm(),globalThis.defaultProjectAnnotations??{},Cn(t.map(ZR))]),globalThis.globalProjectAnnotations??{}}a(e1,"setProjectAnnotations");var Ir=[];function iy(e,t,r,n,o){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??vz;let i=Fs(t),s=o||e.storyName||e.story?.name||e.name||wz,l=Ja(s,e,i),c=za(Cn([n??globalThis.globalProjectAnnotations??{},r??{}])),u=wu(l,i,c),d={...UR(c.globalTypes),...c.initialGlobals,...u.storyGlobals},p=new oy,h=a(()=>{let v=Zm({hooks:new Pp,globals:d,args:{...u.initialArgs},viewMode:"story",reporting:p,loaded:{},abortSignal:new AbortController().signal,step:a((w,P)=>u.runStep(w,P,v),"step"),canvasElement:null,canvas:{},userEvent:{},globalTypes:c.globalTypes,...u,context:null,mount:null});return v.parameters.__isPortableStory=!0,v.context=v,u.renderToCanvas&&(v.renderToCanvas=async()=>{let w=await u.renderToCanvas?.({componentId:u.componentId,title:u.title,id:u.id,name:u.name,tags:u.tags,showMain:a(()=>{},"showMain"),showError:a(P=>{throw new Error(`${P.title}
|
|
896
|
+
${P.description}`)},"showError"),showException:a(P=>{throw P},"showException"),forceRemount:!0,storyContext:v,storyFn:a(()=>u.unboundStoryFn(v),"storyFn"),unboundStoryFn:u.unboundStoryFn},v.canvasElement);w&&Ir.push(w)}),v.mount=u.mount(v),v},"initializeContext"),f,m=a(async v=>{let w=h();return w.canvasElement??=globalThis?.document?.body,f&&(w.loaded=f.loaded),Object.assign(w,v),u.playFunction(w)},"play"),b=a(v=>{let w=h();return Object.assign(w,v),n1(u,w)},"run"),g=u.playFunction?m:void 0;return Object.assign(a(function(v){let w=h();return f&&(w.loaded=f.loaded),w.args={...w.initialArgs,...v},u.unboundStoryFn(w)},"storyFn"),{id:u.id,storyName:s,load:a(async()=>{for(let w of[...Ir].reverse())await w();Ir.length=0;let v=h();v.loaded=await u.applyLoaders(v),Ir.push(...(await u.applyBeforeEach(v)).filter(Boolean)),f=v},"load"),globals:d,args:u.initialArgs,parameters:u.parameters,argTypes:u.argTypes,play:g,run:b,reporting:p,tags:u.tags})}a(iy,"composeStory");var Ez=a((e,t,r,n)=>iy(e,t,r,{},n),"defaultComposeStory");function t1(e,t,r=Ez){let{default:n,__esModule:o,__namedExportsOrder:i,...s}=e,l=n;return Object.entries(s).reduce((c,[u,d])=>{let{story:p,meta:h}=ay(d);return!l&&h&&(l=h),Ms(u,l)?Object.assign(c,{[u]:r(p,l,t,u)}):c},{})}a(t1,"composeStories");function r1(e){return e.extend({mount:a(async({mount:t,page:r},n)=>{await n(async(o,...i)=>{if(!("__pw_type"in o)||"__pw_type"in o&&o.__pw_type!=="jsx")throw new Error(ge`
|
|
897
|
+
Portable stories in Playwright CT only work when referencing JSX elements.
|
|
898
|
+
Please use JSX format for your components such as:
|
|
899
|
+
|
|
900
|
+
instead of:
|
|
901
|
+
await mount(MyComponent, { props: { foo: 'bar' } })
|
|
902
|
+
|
|
903
|
+
do:
|
|
904
|
+
await mount(<MyComponent foo="bar"/>)
|
|
905
|
+
|
|
906
|
+
More info: https://storybook.js.org/docs/api/portable-stories/portable-stories-playwright?ref=error
|
|
907
|
+
`);let{props:s,...l}=o;await r.evaluate(async u=>{let d=await globalThis.__pwUnwrapObject?.(u);return("__pw_type"in d?d.type:d)?.load?.()},l);let c=await t(o,...i);return await r.evaluate(async u=>{let d=await globalThis.__pwUnwrapObject?.(u),p="__pw_type"in d?d.type:d,h=document.querySelector("#root");return p?.play?.({canvasElement:h})},l),c})},"mount")})}a(r1,"createPlaywrightTest");async function n1(e,t){for(let i of[...Ir].reverse())await i();if(Ir.length=0,!t.canvasElement){let i=document.createElement("div");globalThis?.document?.body?.appendChild(i),t.canvasElement=i,Ir.push(()=>{globalThis?.document?.body?.contains(i)&&globalThis?.document?.body?.removeChild(i)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;Ir.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;if(n||await t.mount(),t.abortSignal.aborted)return;r&&(n||(t.mount=async()=>{throw new Sp({playFunction:r.toString()})}),await r(t));let o;ry()?o=Eu():await xu(t.abortSignal),await e.applyAfterEach(t),await o?.()}a(n1,"runStory");var mg=1e3,xz=1e4,o1=class{constructor(t,r,n){this.importFn=r,this.storyIndex=new cz(t),this.projectAnnotations=za(Cn([...Wm(),n]));let{initialGlobals:o,globalTypes:i}=this.projectAnnotations;this.args=new iz,this.userGlobals=new sz({globals:o,globalTypes:i}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,zu.default)(mg)(JR),this.prepareMetaWithCache=(0,zu.default)(mg)(Xm),this.prepareStoryWithCache=(0,zu.default)(xz)(wu)}setProjectAnnotations(t){this.projectAnnotations=za(t);let{initialGlobals:r,globalTypes:n}=t;this.userGlobals.set({globals:r,globalTypes:n})}async onStoriesChanged({importFn:t,storyIndex:r}){t&&(this.importFn=t),r&&(this.storyIndex.entries=r.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(t){return this.storyIndex.storyIdToEntry(t)}async loadCSFFileByStoryId(t){let{importPath:r,title:n}=this.storyIndex.storyIdToEntry(t),o=await this.importFn(r);return this.processCSFFileWithCache(o,r,n)}async loadAllCSFFiles(){let t={};return Object.entries(this.storyIndex.entries).forEach(([r,{importPath:n}])=>{t[n]=r}),(await Promise.all(Object.entries(t).map(async([r,n])=>({importPath:r,csfFile:await this.loadCSFFileByStoryId(n)})))).reduce((r,{importPath:n,csfFile:o})=>(r[n]=o,r),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:t}){let r=t.meta;return this.prepareMetaWithCache(r,this.projectAnnotations,t.moduleExports.default)}async loadStory({storyId:t}){let r=await this.loadCSFFileByStoryId(t);return this.storyFromCSFFile({storyId:t,csfFile:r})}storyFromCSFFile({storyId:t,csfFile:r}){let n=r.stories[t];if(!n)throw new pE({storyId:t});let o=r.meta,i=this.prepareStoryWithCache(n,o,r.projectAnnotations??this.projectAnnotations);return this.args.setInitial(i),this.hooks[i.id]=this.hooks[i.id]||new Pp,i}componentStoriesFromCSFFile({csfFile:t}){return Object.keys(this.storyIndex.entries).filter(r=>!!t.stories[r]).map(r=>this.storyFromCSFFile({storyId:r,csfFile:t}))}async loadEntry(t){let r=await this.storyIdToEntry(t),n=r.type==="docs"?r.storiesImports:[],[o,...i]=await Promise.all([this.importFn(r.importPath),...n.map(s=>{let l=this.storyIndex.importPathToEntry(s);return this.loadCSFFileByStoryId(l.id)})]);return{entryExports:o,csfFiles:i}}getStoryContext(t,{forceInitialArgs:r=!1}={}){let n=this.userGlobals.get(),{initialGlobals:o}=this.userGlobals,i=new oy;return Zm({...t,args:r?t.initialArgs:this.args.get(t.id),initialGlobals:o,globalTypes:this.projectAnnotations.globalTypes,userGlobals:n,reporting:i,globals:{...n,...t.storyGlobals},hooks:this.hooks[t.id]})}addCleanupCallbacks(t,...r){this.cleanupCallbacks[t.id]=(this.cleanupCallbacks[t.id]||[]).concat(r)}async cleanupStory(t){this.hooks[t.id].clean();let r=this.cleanupCallbacks[t.id];if(r)for(let n of[...r].reverse())await n();delete this.cleanupCallbacks[t.id]}extract(t={includeDocsOnly:!1}){let{cachedCSFFiles:r}=this;if(!r)throw new Zw;return Object.entries(this.storyIndex.entries).reduce((n,[o,{type:i,importPath:s}])=>{if(i==="docs")return n;let l=r[s],c=this.storyFromCSFFile({storyId:o,csfFile:l});return!t.includeDocsOnly&&c.parameters.docsOnly||(n[o]=Object.entries(c).reduce((u,[d,p])=>d==="moduleExport"||typeof p=="function"?u:Array.isArray(p)?Object.assign(u,{[d]:p.slice().sort()}):Object.assign(u,{[d]:p}),{args:c.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...c.storyGlobals}})),n},{})}};a(o1,"StoryStore");var a1=o1;function i1(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}a(i1,"slash");var Tz=a(e=>{if(e.length===0)return e;let t=e[e.length-1],r=t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(e.length===1)return[r];let n=e[e.length-2];return r&&n&&r.toLowerCase()===n.toLowerCase()?[...e.slice(0,-2),r]:r&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(r))?e.slice(0,-1):[...e.slice(0,-1),r]},"sanitize");function Hd(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}a(Hd,"pathJoin");var s1=a((e,t,r)=>{let{directory:n,importPathMatcher:o,titlePrefix:i=""}=t||{};typeof e=="number"&&Be.warn(ge`
|
|
908
|
+
CSF Auto-title received a numeric fileName. This typically happens when
|
|
909
|
+
webpack is mis-configured in production mode. To force webpack to produce
|
|
910
|
+
filenames, set optimization.moduleIds = "named" in your webpack config.
|
|
911
|
+
`);let s=i1(String(e));if(o.exec(s)){if(!r){let l=s.replace(n,""),c=Hd([i,l]).split("/");return c=Tz(c),c.join("/")}return i?Hd([i,r]):r}},"userOrAutoTitleFromSpecifier"),Sz=a((e,t,r)=>{for(let n=0;n<t.length;n+=1){let o=s1(e,t[n],r);if(o)return o}return r||void 0},"userOrAutoTitle"),yg=/\s*\/\s*/,Cz=a((e={})=>(t,r)=>{if(t.title===r.title&&!e.includeNames)return 0;let n=e.method||"configure",o=e.order||[],i=t.title.trim().split(yg),s=r.title.trim().split(yg);e.includeNames&&(i.push(t.name),s.push(r.name));let l=0;for(;i[l]||s[l];){if(!i[l])return-1;if(!s[l])return 1;let c=i[l],u=s[l];if(c!==u){let p=o.indexOf(c),h=o.indexOf(u),f=o.indexOf("*");return p!==-1||h!==-1?(p===-1&&(f!==-1?p=f:p=o.length),h===-1&&(f!==-1?h=f:h=o.length),p-h):n==="configure"?0:c.localeCompare(u,e.locales?e.locales:void 0,{numeric:!0,sensitivity:"accent"})}let d=o.indexOf(c);d===-1&&(d=o.indexOf("*")),o=d!==-1&&Array.isArray(o[d+1])?o[d+1]:[],l+=1}return 0},"storySort"),Pz=a((e,t,r)=>{if(t){let n;typeof t=="function"?n=t:n=Cz(t),e.sort(n)}else e.sort((n,o)=>r.indexOf(n.importPath)-r.indexOf(o.importPath));return e},"sortStoriesCommon"),Oz=a((e,t,r)=>{try{return Pz(e,t,r)}catch(n){throw new Error(ge`
|
|
912
|
+
Error sorting stories with sort parameter ${t}:
|
|
913
|
+
|
|
914
|
+
> ${n.message}
|
|
915
|
+
|
|
916
|
+
Are you using a V6-style sort function in V7 mode?
|
|
917
|
+
|
|
918
|
+
More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort
|
|
919
|
+
`)}},"sortStoriesV7"),Tu=new Error("prepareAborted"),{AbortController:bg}=globalThis;function Vd(e){try{let{name:t="Error",message:r=String(e),stack:n}=e;return{name:t,message:r,stack:n}}catch{return{name:"Error",message:String(e)}}}a(Vd,"serializeError");var l1=class{constructor(t,r,n,o,i,s,l={autoplay:!0,forceInitialArgs:!1},c){this.channel=t,this.store=r,this.renderToScreen=n,this.callbacks=o,this.id=i,this.viewMode=s,this.renderOptions=l,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=a(()=>{},"teardownRender"),this.torndown=!1,this.abortController=new bg,this.renderId=Date.now(),c&&(this.story=c,this.phase="preparing")}async runPhase(t,r,n){this.phase=r,this.channel.emit(mn,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),n&&(await n(),this.checkIfAborted(t))}checkIfAborted(t){return t.aborted?(this.phase="aborted",this.channel.emit(mn,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),!0):!1}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),Tu}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing","afterEach"].includes(this.phase)}async renderToElement(t){return this.canvasElement=t,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:t}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:t})}async render({initial:t=!1,forceRemount:r=!1}={}){let{canvasElement:n}=this;if(!this.story)throw new Error("cannot render when not prepared");let o=this.story;if(!n)throw new Error("cannot render when canvasElement is unset");let{id:i,componentId:s,title:l,name:c,tags:u,applyLoaders:d,applyBeforeEach:p,applyAfterEach:h,unboundStoryFn:f,playFunction:m,runStep:b}=o;r&&!t&&(this.cancelRender(),this.abortController=new bg);let g=this.abortController.signal,v=!1,w=o.usesMount;try{let P={...this.storyContext(),viewMode:this.viewMode,abortSignal:g,canvasElement:n,loaded:{},step:a((D,O)=>b(D,O,P),"step"),context:null,canvas:{},userEvent:{},renderToCanvas:a(async()=>{let D=await this.renderToScreen(A,n);this.teardownRender=D||(()=>{}),v=!0},"renderToCanvas"),mount:a(async(...D)=>{this.callbacks.showStoryDuringRender?.();let O=null;return await this.runPhase(g,"rendering",async()=>{O=await o.mount(P)(...D)}),w&&await this.runPhase(g,"playing"),O},"mount")};P.context=P;let A={componentId:s,title:l,kind:l,id:i,name:c,story:c,tags:u,...this.callbacks,showError:a(D=>(this.phase="errored",this.callbacks.showError(D)),"showError"),showException:a(D=>(this.phase="errored",this.callbacks.showException(D)),"showException"),forceRemount:r||this.notYetRendered,storyContext:P,storyFn:a(()=>f(P),"storyFn"),unboundStoryFn:f};if(await this.runPhase(g,"loading",async()=>{P.loaded=await d(P)}),g.aborted)return;let R=await p(P);if(this.store.addCleanupCallbacks(o,...R),this.checkIfAborted(g)||(!v&&!w&&await P.mount(),this.notYetRendered=!1,g.aborted))return;let T=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,E=new Set,x=a(D=>{D.error&&E.add(D.error)},"onError"),C=a(D=>{D.reason&&E.add(D.reason)},"onUnhandledRejection");if(this.renderOptions.autoplay&&r&&m&&this.phase!=="errored"){window?.addEventListener?.("error",x),window?.addEventListener?.("unhandledrejection",C),this.disableKeyListeners=!0;try{if(w?await m(P):(P.mount=async()=>{throw new Sp({playFunction:m.toString()})},await this.runPhase(g,"playing",async()=>m(P))),!v)throw new vE;this.checkIfAborted(g),!T&&E.size>0?await this.runPhase(g,"errored"):await this.runPhase(g,"played")}catch(D){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(g,"errored",async()=>{this.channel.emit(uv,Vd(D))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw D;console.error(D)}if(!T&&E.size>0&&this.channel.emit(cv,Array.from(E).map(Vd)),this.disableKeyListeners=!1,window?.removeEventListener?.("unhandledrejection",C),window?.removeEventListener?.("error",x),g.aborted)return}await this.runPhase(g,"completing",async()=>{ry()?this.store.addCleanupCallbacks(o,Eu()):await xu(g)}),await this.runPhase(g,"completed",async()=>{this.channel.emit(Ki,i)}),this.phase!=="errored"&&await this.runPhase(g,"afterEach",async()=>{await h(P)});let k=!T&&E.size>0,N=P.reporting.reports.some(D=>D.status==="failed"),U=k||N;await this.runPhase(g,"finished",async()=>this.channel.emit(tc,{storyId:i,status:U?"error":"success",reporters:P.reporting.reports}))}catch(P){this.phase="errored",this.callbacks.showException(P),await this.runPhase(g,"finished",async()=>this.channel.emit(tc,{storyId:i,status:"error",reporters:[]}))}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController.abort()}cancelPlayFunction(){this.phase==="playing"&&(this.abortController.abort(),this.runPhase(this.abortController.signal,"aborted"))}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let t=0;t<3;t+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(r=>setTimeout(r,0))}window?.location?.reload?.(),await new Promise(()=>{})}};a(l1,"StoryRender");var Jd=l1,{fetch:_z}=te,Az="./index.json",u1=class{constructor(t,r,n=Rt.getChannel(),o=!0){this.importFn=t,this.getProjectAnnotations=r,this.channel=n,this.storyRenders=[],this.storeInitializationPromise=new Promise((i,s)=>{this.resolveStoreInitializationPromise=i,this.rejectStoreInitializationPromise=s}),o&&this.initialize()}get storyStore(){return new Proxy({},{get:a((t,r)=>{if(this.storyStoreValue)return dp("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[r];throw new hE},"get")})}async initialize(){this.setupListeners();try{let t=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(t),await this.initializeWithProjectAnnotations(t)}catch(t){this.rejectStoreInitializationPromise(t)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(bv,this.onStoryIndexChanged.bind(this)),this.channel.on(up,this.onUpdateGlobals.bind(this)),this.channel.on(cp,this.onUpdateArgs.bind(this)),this.channel.on(Cv,this.onRequestArgTypesInfo.bind(this)),this.channel.on(sp,this.onResetArgs.bind(this)),this.channel.on(ip,this.onForceReRender.bind(this)),this.channel.on(Gi,this.onForceRemount.bind(this)),this.channel.on(xv,this.onStoryHotUpdated.bind(this))}async getProjectAnnotationsOrRenderError(){try{let t=await this.getProjectAnnotations();if(this.renderToCanvas=t.renderToCanvas,!this.renderToCanvas)throw new tE;return t}catch(t){throw this.renderPreviewEntryError("Error reading preview.js:",t),t}}async initializeWithProjectAnnotations(t){this.projectAnnotationsBeforeInitialization=t;try{let r=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(r)}catch(r){throw this.renderPreviewEntryError("Error loading story index:",r),r}}async runBeforeAllHook(t){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await t.beforeAll?.()}catch(r){throw this.renderPreviewEntryError("Error in beforeAll hook:",r),r}}async getStoryIndexFromServer(){let t=await _z(Az);if(t.status===200)return t.json();throw new oE({text:await t.text()})}initializeWithStoryIndex(t){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new a1(t,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new gt({methodName:"emitGlobals"});let t={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(fv,t)}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){delete this.previewEntryError,this.getProjectAnnotations=t;let r=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(r),!this.storyStoreValue){await this.initializeWithProjectAnnotations(r);return}this.storyStoreValue.setProjectAnnotations(r),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let t=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(t);return}await this.onStoriesChanged({storyIndex:t})}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async onStoriesChanged({importFn:t,storyIndex:r}){if(!this.storyStoreValue)throw new gt({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:t,storyIndex:r})}async onUpdateGlobals({globals:t,currentStory:r}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new gt({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(t),r){let{initialGlobals:n,storyGlobals:o,userGlobals:i,globals:s}=this.storyStoreValue.getStoryContext(r);this.channel.emit(Ca,{initialGlobals:n,userGlobals:i,storyGlobals:o,globals:s})}else{let{initialGlobals:n,globals:o}=this.storyStoreValue.userGlobals;this.channel.emit(Ca,{initialGlobals:n,userGlobals:o,storyGlobals:{},globals:o})}await Promise.all(this.storyRenders.map(n=>n.rerender()))}async onUpdateArgs({storyId:t,updatedArgs:r}){if(!this.storyStoreValue)throw new gt({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(t,r),await Promise.all(this.storyRenders.filter(n=>n.id===t&&!n.renderOptions.forceInitialArgs).map(n=>n.story&&n.story.usesMount?n.remount():n.rerender())),this.channel.emit(hv,{storyId:t,args:this.storyStoreValue.args.get(t)})}async onRequestArgTypesInfo({id:t,payload:r}){try{await this.storeInitializationPromise;let n=await this.storyStoreValue?.loadStory(r);this.channel.emit(rc,{id:t,success:!0,payload:{argTypes:n?.argTypes||{}},error:null})}catch(n){this.channel.emit(rc,{id:t,success:!1,error:n?.message})}}async onResetArgs({storyId:t,argNames:r}){if(!this.storyStoreValue)throw new gt({methodName:"onResetArgs"});let n=this.storyRenders.find(i=>i.id===t)?.story||await this.storyStoreValue.loadStory({storyId:t}),o=(r||[...new Set([...Object.keys(n.initialArgs),...Object.keys(this.storyStoreValue.args.get(t))])]).reduce((i,s)=>(i[s]=n.initialArgs[s],i),{});await this.onUpdateArgs({storyId:t,updatedArgs:o})}async onForceReRender(){await Promise.all(this.storyRenders.map(t=>t.rerender()))}async onForceRemount({storyId:t}){await Promise.all(this.storyRenders.filter(r=>r.id===t).map(r=>r.remount()))}async onStoryHotUpdated(){await Promise.all(this.storyRenders.map(t=>t.cancelPlayFunction()))}renderStoryToElement(t,r,n,o){if(!this.renderToCanvas||!this.storyStoreValue)throw new gt({methodName:"renderStoryToElement"});let i=new Jd(this.channel,this.storyStoreValue,this.renderToCanvas,n,t.id,"docs",o,t);return i.renderToElement(r),this.storyRenders.push(i),async()=>{await this.teardownRender(i)}}async teardownRender(t,{viewModeChanged:r}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}async loadStory({storyId:t}){if(!this.storyStoreValue)throw new gt({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:t})}getStoryContext(t,{forceInitialArgs:r=!1}={}){if(!this.storyStoreValue)throw new gt({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(t,{forceInitialArgs:r})}async extract(t){if(!this.storyStoreValue)throw new gt({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(t)}renderPreviewEntryError(t,r){this.previewEntryError=r,Ne.error(t),Ne.error(r),this.channel.emit(sv,r)}};a(u1,"Preview");var c1=u1,d1=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.renderStoryToElement=n,this.storyIdByName=a(i=>{let s=this.nameToStoryId.get(i);if(s)return s;throw new Error(`No story found with that name: ${i}`)},"storyIdByName"),this.componentStories=a(()=>this.componentStoriesValue,"componentStories"),this.componentStoriesFromCSFFile=a(i=>this.store.componentStoriesFromCSFFile({csfFile:i}),"componentStoriesFromCSFFile"),this.storyById=a(i=>{if(!i){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}let s=this.storyIdToCSFFile.get(i);if(!s)throw new Error(`Called \`storyById\` for story that was never loaded: ${i}`);return this.store.storyFromCSFFile({storyId:i,csfFile:s})},"storyById"),this.getStoryContext=a(i=>({...this.store.getStoryContext(i),loaded:{},viewMode:"docs"}),"getStoryContext"),this.loadStory=a(i=>this.store.loadStory({storyId:i}),"loadStory"),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,o.forEach((i,s)=>{this.referenceCSFFile(i)})}referenceCSFFile(t){this.exportsToCSFFile.set(t.moduleExports,t),this.exportsToCSFFile.set(t.moduleExports.default,t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{let n=t.stories[r.id];this.storyIdToCSFFile.set(n.id,t),this.exportToStory.set(n.moduleExport,r)})}attachCSFFile(t){if(!this.exportsToCSFFile.has(t.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(t)||(this.attachedCSFFiles.add(t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{this.nameToStoryId.set(r.name,r.id),this.componentStoriesValue.push(r),this.primaryStory||(this.primaryStory=r)}))}referenceMeta(t,r){let n=this.resolveModuleExport(t);if(n.type!=="meta")throw new Error("<Meta of={} /> must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");r&&this.attachCSFFile(n.csfFile)}get projectAnnotations(){let{projectAnnotations:t}=this.store;if(!t)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return t}resolveAttachedModuleExportType(t){if(t==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use <Meta of={} />?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use <Meta of={} />?");let r=Array.from(this.attachedCSFFiles)[0];if(t==="meta")return{type:"meta",csfFile:r};let{component:n}=r.meta;if(!n)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:n}}resolveModuleExport(t){let r=this.exportsToCSFFile.get(t);if(r)return{type:"meta",csfFile:r};let n=this.exportToStory.get(vu(t)?t.input:t);return n?{type:"story",story:n}:{type:"component",component:t}}resolveOf(t,r=[]){let n;if(["component","meta","story"].includes(t)){let o=t;n=this.resolveAttachedModuleExportType(o)}else n=this.resolveModuleExport(t);if(r.length&&!r.includes(n.type)){let o=n.type==="component"?"component or unknown":n.type;throw new Error(ge`Invalid value passed to the 'of' prop. The value was resolved to a '${o}' type but the only types for this block are: ${r.join(", ")}.
|
|
920
|
+
- Did you pass a component to the 'of' prop when the block only supports a story or a meta?
|
|
921
|
+
- ... or vice versa?
|
|
922
|
+
- Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(n.type){case"component":return{...n,projectAnnotations:this.projectAnnotations};case"meta":return{...n,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:n.csfFile})};case"story":default:return n}}};a(d1,"DocsContext");var sy=d1,p1=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Tu;let{importPath:n,title:o}=this.entry,i=this.store.processCSFFileWithCache(t,n,o),s=Object.keys(i.stories)[0];this.story=this.store.storyFromCSFFile({storyId:s,csfFile:i}),this.csfFiles=[i,...r],this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=new sy(this.channel,this.store,t,this.csfFiles);return this.csfFiles.forEach(n=>r.attachCSFFile(n)),r}async renderToElement(t,r){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.story.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i=await o.renderer(),{render:s}=i,l=a(async()=>{try{await s(n,o,t),this.channel.emit(ap,this.id)}catch(c){this.callbacks.showException(c)}},"renderDocs");return this.rerender=async()=>l(),this.teardownRender=async({viewModeChanged:c})=>{!c||!t||i.unmount(t)},l()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};a(p1,"CsfDocsRender");var gg=p1,f1=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Tu;this.csfFiles=r,this.exports=t,this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.exports&&this.exports===t.exports)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new sy(this.channel,this.store,t,this.csfFiles)}async renderToElement(t,r){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.store.projectAnnotations.parameters??{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i={...o,page:this.exports.default},s=await o.renderer(),{render:l}=s,c=a(async()=>{try{await l(n,i,t),this.channel.emit(ap,this.id)}catch(u){this.callbacks.showException(u)}},"renderDocs");return this.rerender=async()=>c(),this.teardownRender=async({viewModeChanged:u}={})=>{!u||!t||(s.unmount(t),this.torndown=!0)},c()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};a(f1,"MdxDocsRender");var vg=f1,Rz=globalThis;function h1(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}a(h1,"focusInInput");var m1="attached-mdx",qz="unattached-mdx";function y1({tags:e}){return e?.includes(qz)||e?.includes(m1)}a(y1,"isMdxEntry");function Ui(e){return e.type==="story"}a(Ui,"isStoryRender");function b1(e){return e.type==="docs"}a(b1,"isDocsRender");function g1(e){return b1(e)&&e.subtype==="csf"}a(g1,"isCsfDocsRender");var v1=class extends c1{constructor(t,r,n,o){super(t,r,void 0,!1),this.importFn=t,this.getProjectAnnotations=r,this.selectionStore=n,this.view=o,this.initialize()}setupListeners(){super.setupListeners(),Rz.onkeydown=this.onKeydown.bind(this),this.channel.on(lp,this.onSetCurrentStory.bind(this)),this.channel.on(Tv,this.onUpdateQueryParams.bind(this)),this.channel.on(dv,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new gt({methodName:"setInitialGlobals"});let{globals:t}=this.selectionStore.selectionSpecifier||{};t&&this.storyStoreValue.userGlobals.updateFromPersisted(t),this.emitGlobals()}async initializeWithStoryIndex(t){return await super.initializeWithStoryIndex(t),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new gt({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:t,args:r}=this.selectionStore.selectionSpecifier,n=this.storyStoreValue.storyIndex.entryFromSpecifier(t);if(!n){t==="*"?this.renderStoryLoadingException(t,new lE):this.renderStoryLoadingException(t,new cE({storySpecifier:t.toString()}));return}let{id:o,type:i}=n;this.selectionStore.setSelection({storyId:o,viewMode:i}),this.channel.emit(vv,this.selectionStore.selection),this.channel.emit(Zu,this.selectionStore.selection),await this.renderSelection({persistedArgs:r})}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:t}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:t,storyIndex:r}){await super.onStoriesChanged({importFn:t,storyIndex:r}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(t){if(!this.storyRenders.find(r=>r.disableKeyListeners)&&!h1(t)){let{altKey:r,ctrlKey:n,metaKey:o,shiftKey:i,key:s,code:l,keyCode:c}=t;this.channel.emit(pv,{event:{altKey:r,ctrlKey:n,metaKey:o,shiftKey:i,key:s,code:l,keyCode:c}})}}async onSetCurrentStory(t){this.selectionStore.setSelection({viewMode:"story",...t}),await this.storeInitializationPromise,this.channel.emit(Zu,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(t){this.selectionStore.setQueryParams(t)}async onUpdateGlobals({globals:t}){let r=this.currentRender instanceof Jd&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:t,currentStory:r}),(this.currentRender instanceof vg||this.currentRender instanceof gg)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:t,updatedArgs:r}){super.onUpdateArgs({storyId:t,updatedArgs:r})}async onPreloadStories({ids:t}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(t.map(r=>this.storyStoreValue?.loadEntry(r)))}async renderSelection({persistedArgs:t}={}){let{renderToCanvas:r}=this;if(!this.storyStoreValue||!r)throw new gt({methodName:"renderSelection"});let{selection:n}=this.selectionStore;if(!n)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:o}=n,i;try{i=await this.storyStoreValue.storyIdToEntry(o)}catch(h){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(o,h);return}let s=this.currentSelection?.storyId!==o,l=this.currentRender?.type!==i.type;i.type==="story"?this.view.showPreparingStory({immediate:l}):this.view.showPreparingDocs({immediate:l}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let c;i.type==="story"?c=new Jd(this.channel,this.storyStoreValue,r,this.mainStoryCallbacks(o),o,"story"):y1(i)?c=new vg(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(o)):c=new gg(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(o));let u=this.currentSelection;this.currentSelection=n;let d=this.currentRender;this.currentRender=c;try{await c.prepare()}catch(h){d&&await this.teardownRender(d),h!==Tu&&this.renderStoryLoadingException(o,h);return}let p=!s&&d&&!c.isEqual(d);if(t&&Ui(c)&&(Kt(!!c.story),this.storyStoreValue.args.updateFromPersisted(c.story,t)),d&&!d.torndown&&!s&&!p&&!l){this.currentRender=d,this.channel.emit(Ev,o),this.view.showMain();return}if(d&&await this.teardownRender(d,{viewModeChanged:l}),u&&(s||l)&&this.channel.emit(mv,o),Ui(c)){Kt(!!c.story);let{parameters:h,initialArgs:f,argTypes:m,unmappedArgs:b,initialGlobals:g,userGlobals:v,storyGlobals:w,globals:P}=this.storyStoreValue.getStoryContext(c.story);this.channel.emit(gv,{id:o,parameters:h,initialArgs:f,argTypes:m,args:b}),this.channel.emit(Ca,{userGlobals:v,storyGlobals:w,globals:P,initialGlobals:g})}else{let{parameters:h}=this.storyStoreValue.projectAnnotations,{initialGlobals:f,globals:m}=this.storyStoreValue.userGlobals;if(this.channel.emit(Ca,{globals:m,initialGlobals:f,storyGlobals:{},userGlobals:m}),g1(c)||c.entry.tags?.includes(m1)){if(!c.csfFiles)throw new iE({storyId:o});({parameters:h}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:c.csfFiles[0]}))}this.channel.emit(lv,{id:o,parameters:h})}Ui(c)?(Kt(!!c.story),this.storyRenders.push(c),this.currentRender.renderToElement(this.view.prepareForStory(c.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(t,{viewModeChanged:r=!1}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}mainStoryCallbacks(t){return{showStoryDuringRender:a(()=>this.view.showStoryDuringRender(),"showStoryDuringRender"),showMain:a(()=>this.view.showMain(),"showMain"),showError:a(r=>this.renderError(t,r),"showError"),showException:a(r=>this.renderException(t,r),"showException")}}renderPreviewEntryError(t,r){super.renderPreviewEntryError(t,r),this.view.showErrorDisplay(r)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(ec)}renderStoryLoadingException(t,r){Ne.error(r),this.view.showErrorDisplay(r),this.channel.emit(ec,t)}renderException(t,r){let{name:n="Error",message:o=String(r),stack:i}=r,s=this.currentRender?.renderId;this.channel.emit(wv,{name:n,message:o,stack:i}),this.channel.emit(mn,{newPhase:"errored",renderId:s,storyId:t}),this.view.showErrorDisplay(r),Ne.error(`Error rendering story '${t}':`),Ne.error(r)}renderError(t,{title:r,description:n}){let o=this.currentRender?.renderId;this.channel.emit(yv,{title:r,description:n}),this.channel.emit(mn,{newPhase:"errored",renderId:o,storyId:t}),this.view.showErrorDisplay({message:r,stack:n}),Ne.error(`Error rendering story ${r}: ${n}`)}};a(v1,"PreviewWithSelection");var w1=v1,zd=He(rp(),1),Nz=He(rp(),1),wg=/^[a-zA-Z0-9 _-]*$/,E1=/^-?[0-9]+(\.[0-9]+)?$/,Iz=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,x1=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Wd=a((e="",t)=>e===null||e===""||!wg.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?wg.test(t)||E1.test(t)||Iz.test(t)||x1.test(t):Array.isArray(t)?t.every(r=>Wd(e,r)):Lt(t)?Object.entries(t).every(([r,n])=>Wd(r,n)):!1,"validateArgs"),jz={delimiter:";",nesting:!0,arrayRepeat:!0,arrayRepeatSyntax:"bracket",nestingSyntax:"js",valueDeserializer(e){if(e.startsWith("!")){if(e==="!undefined")return;if(e==="!null")return null;if(e==="!true")return!0;if(e==="!false")return!1;if(e.startsWith("!date(")&&e.endsWith(")"))return new Date(e.replaceAll(" ","+").slice(6,-1));if(e.startsWith("!hex(")&&e.endsWith(")"))return`#${e.slice(5,-1)}`;let t=e.slice(1).match(x1);if(t)return e.startsWith("!rgba")||e.startsWith("!RGBA")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]}, ${t[5]})`:e.startsWith("!hsla")||e.startsWith("!HSLA")?`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%, ${t[5]})`:e.startsWith("!rgb")||e.startsWith("!RGB")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]})`:`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%)`}return E1.test(e)?Number(e):e}},Eg=a(e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,Nz.parse)(t.join(";"),jz)).reduce((r,[n,o])=>Wd(n,o)?Object.assign(r,{[n]:o}):(Be.warn(ge`
|
|
923
|
+
Omitted potentially unsafe URL args.
|
|
924
|
+
|
|
925
|
+
More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url?ref=error
|
|
926
|
+
`),r),{})},"parseArgsParam"),{history:T1,document:Lr}=te;function S1(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}a(S1,"pathToId");var C1=a(({selection:e,extraParams:t})=>{let r=Lr?.location.search.slice(1),{path:n,selectedKind:o,selectedStory:i,...s}=(0,zd.parse)(r);return`?${(0,zd.stringify)({...s,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},"getQueryString"),kz=a(e=>{if(!e)return;let t=C1({selection:e}),{hash:r=""}=Lr.location;Lr.title=e.storyId,T1.replaceState({},"",`${Lr.location.pathname}${t}${r}`)},"setPath"),Mz=a(e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,"isObject"),Ta=a(e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return Ta(e[0]);if(Mz(e))return Ta(Object.values(e).filter(Boolean))}},"getFirstString"),$z=a(()=>{if(typeof Lr<"u"){let e=Lr.location.search.slice(1),t=(0,zd.parse)(e),r=typeof t.args=="string"?Eg(t.args):void 0,n=typeof t.globals=="string"?Eg(t.globals):void 0,o=Ta(t.viewMode);(typeof o!="string"||!o.match(/docs|story/))&&(o="story");let i=Ta(t.path),s=i?S1(i):Ta(t.id);if(s)return{storySpecifier:s,args:r,globals:n,viewMode:o}}return null},"getSelectionSpecifierFromPath"),P1=class{constructor(){this.selectionSpecifier=$z()}setSelection(t){this.selection=t,kz(this.selection)}setQueryParams(t){let r=C1({extraParams:t}),{hash:n=""}=Lr.location;T1.replaceState({},"",`${Lr.location.pathname}${r}${n}`)}};a(P1,"UrlStore");var O1=P1,Lz=He(mD(),1),Dz=He(rp(),1),{document:at}=te,xg=100,_1=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(_1||{}),Wu={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},Gu={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},Tg=new Lz.default({escapeXML:!0}),A1=class{constructor(){if(this.testing=!1,typeof at<"u"){let{__SPECIAL_TEST_PARAMETER__:t}=(0,Dz.parse)(at.location.search.slice(1));switch(t){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}}}}prepareForStory(t){return this.showStory(),this.applyLayout(t.parameters.layout),at.documentElement.scrollTop=0,at.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return at.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),at.documentElement.scrollTop=0,at.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return at.getElementById("storybook-docs")}applyLayout(t="padded"){if(t==="none"){at.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(t);let r=Gu[t];at.body.classList.remove(this.currentLayoutClass),at.body.classList.add(r),this.currentLayoutClass=r}checkIfLayoutExists(t){Gu[t]||Ne.warn(ge`
|
|
927
|
+
The desired layout: ${t} is not a valid option.
|
|
928
|
+
The possible options are: ${Object.keys(Gu).join(", ")}, none.
|
|
929
|
+
`)}showMode(t){clearTimeout(this.preparingTimeout),Object.keys(_1).forEach(r=>{r===t?at.body.classList.add(Wu[r]):at.body.classList.remove(Wu[r])})}showErrorDisplay({message:t="",stack:r=""}){let n=t,o=r,i=t.split(`
|
|
930
|
+
`);i.length>1&&([n]=i,o=i.slice(1).join(`
|
|
931
|
+
`).replace(/^\n/,"")),at.getElementById("error-message").innerHTML=Tg.toHtml(n),at.getElementById("error-stack").innerHTML=Tg.toHtml(o),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),xg)}showPreparingDocs({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),xg)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){at.body.classList.add(Wu.MAIN)}};a(A1,"WebView");var R1=A1,q1=class extends w1{constructor(t,r){super(t,r,new O1,new R1),this.importFn=t,this.getProjectAnnotations=r,te.__STORYBOOK_PREVIEW__=this}};a(q1,"PreviewWeb");var Fz=q1,{document:fn}=te,Bz=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],Uz="script",Sg="scripts-root";function Bs(){let e=fn.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),fn.dispatchEvent(e)}a(Bs,"simulateDOMContentLoaded");function N1(e,t,r){let n=fn.createElement("script");n.type=e.type==="module"?"module":"text/javascript",e.src?(n.onload=t,n.onerror=t,n.src=e.src):n.textContent=e.innerText,r?r.appendChild(n):fn.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}a(N1,"insertScript");function ly(e,t,r=0){e[r](()=>{r++,r===e.length?t():ly(e,t,r)})}a(ly,"insertScriptsSequentially");function I1(e){let t=fn.getElementById(Sg);t?t.innerHTML="":(t=fn.createElement("div"),t.id=Sg,fn.body.appendChild(t));let r=Array.from(e.querySelectorAll(Uz));if(r.length){let n=[];r.forEach(o=>{let i=o.getAttribute("type");(!i||Bz.includes(i))&&n.push(s=>N1(o,s,t))}),n.length&&ly(n,Bs,void 0)}else Bs()}a(I1,"simulatePageLoad");var Hz="storybook/docs",Vz=`${Hz}/snippet-rendered`;async function j1(e,t){let r=t.parameters?.docs?.source?.transform,{id:n,unmappedArgs:o}=t,i=r&&e?r?.(e,t):e,s=i?await i:void 0;Rt.getChannel().emit(Vz,{id:n,source:s,args:o})}a(j1,"emitTransformCode");var Wa={depth:10,clearOnStoryChange:!0,limit:50},Jz=a((e={})=>{Object.assign(Wa,e)},"configureActions"),k1=a((e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:k1(r,t)},"findProto"),zz=a(e=>!!(typeof e=="object"&&e&&k1(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),"isReactSyntheticEvent"),Wz=a(e=>{if(zz(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r?.value;return typeof n=="object"&&n?.constructor.name==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e},"serializeArg");function Lo(e,t={}){let r={...Wa,...t},n=a(function(...o){if(t.implicit){let p=("__STORYBOOK_PREVIEW__"in te?te.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(h=>h.phase==="playing"||h.phase==="rendering");if(p){let h=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,f=new Xw({phase:p.phase,name:e,deprecated:h});if(h)console.warn(f);else throw f}}let i=Rt.getChannel(),s=Date.now().toString(36)+Math.random().toString(36).substring(2),l=5,c=o.map(Wz),u=o.length>1?c:c[0],d={id:s,count:0,data:{name:e,args:u},options:{...r,maxDepth:l+(r.depth||3)}};i.emit(AE,d)},"actionHandler");return n.isAction=!0,n.implicit=t.implicit,n}a(Lo,"action");var Gz=a((...e)=>{let t=Wa,r=e;r.length===1&&Array.isArray(r[0])&&([r]=r),r.length!==1&&typeof r[r.length-1]!="string"&&(t={...Wa,...r.pop()});let n=r[0];(r.length!==1||typeof n=="string")&&(n={},r.forEach(i=>{n[i]=i}));let o={};return Object.keys(n).forEach(i=>{o[i]=Lo(n[i],t)}),o},"actions"),Kz={"@storybook/global":Pv,"storybook/test":GE,"storybook/actions":_E,"storybook/preview-api":ic,"storybook/internal/channels":_v,"storybook/internal/client-logger":Rv,"storybook/internal/core-events":np,"storybook/internal/types":PE,"storybook/internal/preview-errors":Vw,"storybook/internal/preview-api":ic};async function M1(){let e=new URL(window.location.href);if(e.searchParams.get("navigator")!=="true"||globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__)return;globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__=!0;let t=await(await fetch("/index.json")).json(),r=e.searchParams.get("id");if(!r){let n=Object.values(t.entries)[0];n&&(e.searchParams.set("id",n.id),e.searchParams.set("viewMode",n.type),window.location.href=e.toString());return}Yz(t,r)}a(M1,"maybeSetupPreviewNavigator");var Yz=a(async(e,t)=>{let r={entries:{}};for(let l of Object.values(e.entries)){let c=l.title.split("/"),u=r;for(let d of c)u.entries||(u.entries={}),u.entries[d]?t===l.id&&(u.entries[d].isActive=!0):u.entries[d]={title:d,isActive:t===l.id,entries:{}},u=u.entries[d];u.entries||(u.entries={}),u.entries[l.name]={id:l.id,name:l.name,href:`?id=${l.id}&viewMode=${l.type}&navigator=true`,isActive:t===l.id}}let n=a(l=>{if("entries"in l&&"title"in l){let u=l;return`
|
|
932
|
+
<li class="sb-navigator-branch">
|
|
933
|
+
<details${u.isActive?" open":""}>
|
|
934
|
+
<summary class="sb-navigator-title">
|
|
935
|
+
${u.title}
|
|
936
|
+
</summary>
|
|
937
|
+
<ul class="sb-navigator-entries" aria-label="${u.title}">
|
|
938
|
+
${Object.values(u.entries).map(n).join("")}
|
|
939
|
+
</ul>
|
|
940
|
+
</details>
|
|
941
|
+
</li>
|
|
942
|
+
`}let c=l;return`
|
|
943
|
+
<li class="sb-navigator-story-item">
|
|
944
|
+
<a href="${c.href}"
|
|
945
|
+
class="sb-navigator-story-link${c.isActive?" active":""}"
|
|
946
|
+
aria-current="${c.isActive?"location":"false"}">${c.name}</a>
|
|
947
|
+
</li>
|
|
948
|
+
`},"createHtmlForNode"),o=Object.values(r.entries).map(n).join(""),i=document.createElement("nav");i.id="sb-navigator-container",i.setAttribute("role","navigation"),i.setAttribute("aria-label","Story navigation"),i.innerHTML=`
|
|
949
|
+
<ul class="sb-navigator-list">${o}</ul>
|
|
950
|
+
`,document.body.insertBefore(i,document.body.firstChild);let s=document.createElement("style");s.id="sb-navigator-style",s.textContent=`
|
|
951
|
+
body {
|
|
952
|
+
display: grid !important;
|
|
953
|
+
grid-template-columns: 300px 1fr;
|
|
954
|
+
font-family: 'Nunito', sans-serif;
|
|
955
|
+
height: 100vh;
|
|
956
|
+
margin: 0;
|
|
957
|
+
|
|
958
|
+
--text-color: rgb(46, 52, 56);
|
|
959
|
+
--bg-color: rgb(246, 249, 252);
|
|
960
|
+
|
|
961
|
+
@media (prefers-color-scheme: dark) {
|
|
962
|
+
--text-color: rgb(201, 205, 207);
|
|
963
|
+
--bg-color: rgb(34, 36, 37);
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
#storybook-root, #storybook-docs {
|
|
967
|
+
overflow-y: auto;
|
|
968
|
+
max-height: 100vh;
|
|
969
|
+
max-width: 100%;
|
|
970
|
+
}
|
|
971
|
+
#sb-navigator-container, #sb-navigator-container * {
|
|
972
|
+
box-sizing: border-box;
|
|
973
|
+
}
|
|
974
|
+
#sb-navigator-container {
|
|
975
|
+
height: 100vh;
|
|
976
|
+
overflow-y: auto;
|
|
977
|
+
border-right: 1px solid #eee;
|
|
978
|
+
padding: 1rem;
|
|
979
|
+
font-size: 14px;
|
|
980
|
+
color: var(--text-color);
|
|
981
|
+
background-color: var(--bg-color);
|
|
982
|
+
align-self: start;
|
|
983
|
+
z-index: 1000;
|
|
984
|
+
}
|
|
985
|
+
.sb-main-padded #sb-navigator-container {
|
|
986
|
+
margin: -1rem 1rem -1rem -1rem;
|
|
987
|
+
}
|
|
988
|
+
.sb-navigator-list {
|
|
989
|
+
list-style-type: none;
|
|
990
|
+
padding: 0;
|
|
991
|
+
margin: 0;
|
|
992
|
+
}
|
|
993
|
+
.sb-navigator-branch {
|
|
994
|
+
list-style-type: none;
|
|
995
|
+
}
|
|
996
|
+
.sb-navigator-item {
|
|
997
|
+
margin-bottom: 15px;
|
|
998
|
+
}
|
|
999
|
+
.sb-navigator-title {
|
|
1000
|
+
color: var(--text-color);
|
|
1001
|
+
text-decoration: none;
|
|
1002
|
+
padding-block: 5px;
|
|
1003
|
+
cursor: pointer;
|
|
1004
|
+
}
|
|
1005
|
+
.sb-navigator-entries {
|
|
1006
|
+
padding-left: 15px;
|
|
1007
|
+
}
|
|
1008
|
+
.sb-navigator-story-item {
|
|
1009
|
+
margin-bottom: 8px;
|
|
1010
|
+
margin-left: 8px;
|
|
1011
|
+
}
|
|
1012
|
+
.sb-navigator-story-link {
|
|
1013
|
+
color: var(--text-color);
|
|
1014
|
+
}
|
|
1015
|
+
.sb-navigator-story-link.active {
|
|
1016
|
+
font-weight: bold;
|
|
1017
|
+
color: rgb(2, 156, 253);
|
|
1018
|
+
}
|
|
1019
|
+
`,document.head.appendChild(s),i.querySelector(".sb-navigator-story-link.active")?.closest("details")?.scrollIntoView({block:"center"})},"setupPreviewNavigator"),Xz=He(yD(),1),Ku;function $1(){return Ku||(Ku=new Xz.default(te.navigator?.userAgent).getBrowserInfo()),Ku}a($1,"getBrowserInfo");function L1(e){return e.browserInfo=$1(),e}a(L1,"prepareForTelemetry");function D1(e){let t=e.error||e;t.fromStorybook&&te.sendTelemetryError(t)}a(D1,"errorListener");function F1({reason:e}){e.fromStorybook&&te.sendTelemetryError(e)}a(F1,"unhandledRejectionListener");function uy(){BD.forEach(e=>{te[Ov[e]]=Kz[e]}),te.sendTelemetryError=e=>{te.__STORYBOOK_ADDONS_CHANNEL__.emit(Sv,L1(e))},te.addEventListener("error",D1),te.addEventListener("unhandledrejection",F1),M1()}a(uy,"setup");uy();const{createBrowserChannel:Qz}=__STORYBOOK_MODULE_CHANNELS__,{addons:Zz}=__STORYBOOK_MODULE_PREVIEW_API__,cy=Qz({page:"preview"});Zz.setChannel(cy);window.__STORYBOOK_ADDONS_CHANNEL__=cy;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=cy);const e4={"./src/stories/Badge.stories.ts":()=>Sr(()=>import("./Badge.stories-DwfG5f7M.js"),__vite__mapDeps([0,1]),import.meta.url),"./src/stories/Button.stories.ts":()=>Sr(()=>import("./Button.stories-DkvLsiV0.js"),__vite__mapDeps([2,1]),import.meta.url),"./src/stories/Colors.stories.ts":()=>Sr(()=>import("./Colors.stories-DrTye89i.js"),__vite__mapDeps([3,1]),import.meta.url),"./src/stories/Heading.stories.ts":()=>Sr(()=>import("./Heading.stories-DNzV_PFr.js"),__vite__mapDeps([4,1]),import.meta.url),"./src/stories/Icon.stories.ts":()=>Sr(()=>import("./Icon.stories-DSVGZXEi.js"),__vite__mapDeps([5,1]),import.meta.url),"./src/stories/Loader.stories.ts":()=>Sr(()=>import("./Loader.stories-Bm78EJ3R.js"),__vite__mapDeps([6,1]),import.meta.url),"./src/stories/ScrollShadow.stories.ts":()=>Sr(()=>import("./ScrollShadow.stories-wVkA59sk.js"),__vite__mapDeps([7,1]),import.meta.url)};async function t4(e){return await e4[e]()}var r4=Object.defineProperty,n4=(e,t)=>{for(var r in t)r4(e,r,{get:t[r],enumerable:!0})};/**
|
|
1020
|
+
* @license
|
|
1021
|
+
* Copyright 2019 Google LLC
|
|
1022
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1023
|
+
*/const Hi=globalThis,dy=Hi.ShadowRoot&&(Hi.ShadyCSS===void 0||Hi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,B1=Symbol(),Cg=new WeakMap;let o4=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==B1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o;const r=this.t;if(dy&&t===void 0){const n=r!==void 0&&r.length===1;n&&(t=Cg.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Cg.set(r,t))}return t}toString(){return this.cssText}};const a4=e=>new o4(typeof e=="string"?e:e+"",void 0,B1),i4=(e,t)=>{if(dy)e.adoptedStyleSheets=t.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(const r of t){const n=document.createElement("style"),o=Hi.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)}},Pg=dy?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const n of t.cssRules)r+=n.cssText;return a4(r)})(e):e;/**
|
|
1024
|
+
* @license
|
|
1025
|
+
* Copyright 2017 Google LLC
|
|
1026
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1027
|
+
*/const{is:s4,defineProperty:l4,getOwnPropertyDescriptor:u4,getOwnPropertyNames:c4,getOwnPropertySymbols:d4,getPrototypeOf:p4}=Object,Su=globalThis,Og=Su.trustedTypes,f4=Og?Og.emptyScript:"",h4=Su.reactiveElementPolyfillSupport,Sa=(e,t)=>e,Gd={toAttribute(e,t){switch(t){case Boolean:e=e?f4:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},U1=(e,t)=>!s4(e,t),_g={attribute:!0,type:String,converter:Gd,reflect:!1,useDefault:!1,hasChanged:U1};Symbol.metadata??=Symbol("metadata"),Su.litPropertyMetadata??=new WeakMap;let Jn=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=_g){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){const n=Symbol(),o=this.getPropertyDescriptor(t,n,r);o!==void 0&&l4(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){const{get:o,set:i}=u4(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get:o,set(s){const l=o?.call(this);i?.call(this,s),this.requestUpdate(t,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??_g}static _$Ei(){if(this.hasOwnProperty(Sa("elementProperties")))return;const t=p4(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Sa("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Sa("properties"))){const r=this.properties,n=[...c4(r),...d4(r)];for(const o of n)this.createProperty(o,r[o])}const t=this[Symbol.metadata];if(t!==null){const r=litPropertyMetadata.get(t);if(r!==void 0)for(const[n,o]of r)this.elementProperties.set(n,o)}this._$Eh=new Map;for(const[r,n]of this.elementProperties){const o=this._$Eu(r,n);o!==void 0&&this._$Eh.set(o,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const r=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const o of n)r.unshift(Pg(o))}else t!==void 0&&r.push(Pg(t));return r}static _$Eu(t,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,r=this.constructor.elementProperties;for(const n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return i4(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$ET(t,r){const n=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,n);if(o!==void 0&&n.reflect===!0){const i=(n.converter?.toAttribute!==void 0?n.converter:Gd).toAttribute(r,n.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,r){const n=this.constructor,o=n._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const i=n.getPropertyOptions(o),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:Gd;this._$Em=o;const l=s.fromAttribute(r,i.type);this[o]=l??this._$Ej?.get(o)??l,this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){const o=this.constructor,i=this[t];if(n??=o.getPropertyOptions(t),!((n.hasChanged??U1)(i,r)||n.useDefault&&n.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,n))))return;this.C(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:n,reflect:o,wrapped:i},s){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??r??this[t]),i!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(r=void 0),this._$AL.set(t,r)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[o,i]of n){const{wrapped:s}=i,l=this[o];s!==!0||this._$AL.has(o)||l===void 0||this.C(o,void 0,i,l)}}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach((n=>n.hostUpdate?.())),this.update(r)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach((r=>r.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((r=>this._$ET(r,this[r]))),this._$EM()}updated(t){}firstUpdated(t){}};Jn.elementStyles=[],Jn.shadowRootOptions={mode:"open"},Jn[Sa("elementProperties")]=new Map,Jn[Sa("finalized")]=new Map,h4?.({ReactiveElement:Jn}),(Su.reactiveElementVersions??=[]).push("2.1.1");/**
|
|
1028
|
+
* @license
|
|
1029
|
+
* Copyright 2017 Google LLC
|
|
1030
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1031
|
+
*/const py=globalThis,Us=py.trustedTypes,Ag=Us?Us.createPolicy("lit-html",{createHTML:e=>e}):void 0,H1="$lit$",Nr=`lit$${Math.random().toFixed(9).slice(2)}$`,V1="?"+Nr,m4=`<${V1}>`,Pn=document,Ga=()=>Pn.createComment(""),Ka=e=>e===null||typeof e!="object"&&typeof e!="function",fy=Array.isArray,y4=e=>fy(e)||typeof e?.[Symbol.iterator]=="function",Yu=`[
|
|
1032
|
+
\f\r]`,na=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rg=/-->/g,qg=/>/g,en=RegExp(`>|${Yu}(?:([^\\s"'>=/]+)(${Yu}*=${Yu}*(?:[^
|
|
1033
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ng=/'/g,Ig=/"/g,J1=/^(?:script|style|textarea|title)$/i,b4=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),g4=b4(1),So=Symbol.for("lit-noChange"),Xe=Symbol.for("lit-nothing"),jg=new WeakMap,ln=Pn.createTreeWalker(Pn,129);function z1(e,t){if(!fy(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ag!==void 0?Ag.createHTML(t):t}const v4=(e,t)=>{const r=e.length-1,n=[];let o,i=t===2?"<svg>":t===3?"<math>":"",s=na;for(let l=0;l<r;l++){const c=e[l];let u,d,p=-1,h=0;for(;h<c.length&&(s.lastIndex=h,d=s.exec(c),d!==null);)h=s.lastIndex,s===na?d[1]==="!--"?s=Rg:d[1]!==void 0?s=qg:d[2]!==void 0?(J1.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=en):d[3]!==void 0&&(s=en):s===en?d[0]===">"?(s=o??na,p=-1):d[1]===void 0?p=-2:(p=s.lastIndex-d[2].length,u=d[1],s=d[3]===void 0?en:d[3]==='"'?Ig:Ng):s===Ig||s===Ng?s=en:s===Rg||s===qg?s=na:(s=en,o=void 0);const f=s===en&&e[l+1].startsWith("/>")?" ":"";i+=s===na?c+m4:p>=0?(n.push(u),c.slice(0,p)+H1+c.slice(p)+Nr+f):c+Nr+(p===-2?l:f)}return[z1(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class Ya{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,s=0;const l=t.length-1,c=this.parts,[u,d]=v4(t,r);if(this.el=Ya.createElement(u,n),ln.currentNode=this.el.content,r===2||r===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=ln.nextNode())!==null&&c.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(const p of o.getAttributeNames())if(p.endsWith(H1)){const h=d[s++],f=o.getAttribute(p).split(Nr),m=/([.?@])?(.*)/.exec(h);c.push({type:1,index:i,name:m[2],strings:f,ctor:m[1]==="."?E4:m[1]==="?"?x4:m[1]==="@"?T4:Cu}),o.removeAttribute(p)}else p.startsWith(Nr)&&(c.push({type:6,index:i}),o.removeAttribute(p));if(J1.test(o.tagName)){const p=o.textContent.split(Nr),h=p.length-1;if(h>0){o.textContent=Us?Us.emptyScript:"";for(let f=0;f<h;f++)o.append(p[f],Ga()),ln.nextNode(),c.push({type:2,index:++i});o.append(p[h],Ga())}}}else if(o.nodeType===8)if(o.data===V1)c.push({type:2,index:i});else{let p=-1;for(;(p=o.data.indexOf(Nr,p+1))!==-1;)c.push({type:7,index:i}),p+=Nr.length-1}i++}}static createElement(t,r){const n=Pn.createElement("template");return n.innerHTML=t,n}}function Co(e,t,r=e,n){if(t===So)return t;let o=n!==void 0?r._$Co?.[n]:r._$Cl;const i=Ka(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(e),o._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=o:r._$Cl=o),o!==void 0&&(t=Co(e,o._$AS(e,t.values),o,n)),t}class w4{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:r},parts:n}=this._$AD,o=(t?.creationScope??Pn).importNode(r,!0);ln.currentNode=o;let i=ln.nextNode(),s=0,l=0,c=n[0];for(;c!==void 0;){if(s===c.index){let u;c.type===2?u=new wi(i,i.nextSibling,this,t):c.type===1?u=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(u=new S4(i,this,t)),this._$AV.push(u),c=n[++l]}s!==c?.index&&(i=ln.nextNode(),s++)}return ln.currentNode=Pn,o}p(t){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}}class wi{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,o){this.type=2,this._$AH=Xe,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Co(this,t,r),Ka(t)?t===Xe||t==null||t===""?(this._$AH!==Xe&&this._$AR(),this._$AH=Xe):t!==this._$AH&&t!==So&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):y4(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Xe&&Ka(this._$AH)?this._$AA.nextSibling.data=t:this.T(Pn.createTextNode(t)),this._$AH=t}$(t){const{values:r,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Ya.createElement(z1(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{const i=new w4(o,this),s=i.u(this.options);i.p(r),this.T(s),this._$AH=i}}_$AC(t){let r=jg.get(t.strings);return r===void 0&&jg.set(t.strings,r=new Ya(t)),r}k(t){fy(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,o=0;for(const i of t)o===r.length?r.push(n=new wi(this.O(Ga()),this.O(Ga()),this,this.options)):n=r[o],n._$AI(i),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class Cu{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,o,i){this.type=1,this._$AH=Xe,this._$AN=void 0,this.element=t,this.name=r,this._$AM=o,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Xe}_$AI(t,r=this,n,o){const i=this.strings;let s=!1;if(i===void 0)t=Co(this,t,r,0),s=!Ka(t)||t!==this._$AH&&t!==So,s&&(this._$AH=t);else{const l=t;let c,u;for(t=i[0],c=0;c<i.length-1;c++)u=Co(this,l[n+c],r,c),u===So&&(u=this._$AH[c]),s||=!Ka(u)||u!==this._$AH[c],u===Xe?t=Xe:t!==Xe&&(t+=(u??"")+i[c+1]),this._$AH[c]=u}s&&!o&&this.j(t)}j(t){t===Xe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class E4 extends Cu{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Xe?void 0:t}}class x4 extends Cu{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Xe)}}class T4 extends Cu{constructor(t,r,n,o,i){super(t,r,n,o,i),this.type=5}_$AI(t,r=this){if((t=Co(this,t,r,0)??Xe)===So)return;const n=this._$AH,o=t===Xe&&n!==Xe||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==Xe&&(n===Xe||o);o&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class S4{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Co(this,t)}}const C4=py.litHtmlPolyfillSupport;C4?.(Ya,wi),(py.litHtmlVersions??=[]).push("3.3.1");const Hs=(e,t,r)=>{const n=r?.renderBefore??t;let o=n._$litPart$;if(o===void 0){const i=r?.renderBefore??null;n._$litPart$=o=new wi(t.insertBefore(Ga(),i),i,void 0,r??{})}return o._$AI(e),o};/**
|
|
1034
|
+
* @license
|
|
1035
|
+
* Copyright 2017 Google LLC
|
|
1036
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1037
|
+
*/const hy=globalThis;class Vi extends Jn{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Hs(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return So}}Vi._$litElement$=!0,Vi.finalized=!0,hy.litElementHydrateSupport?.({LitElement:Vi});const P4=hy.litElementPolyfillSupport;P4?.({LitElement:Vi});(hy.litElementVersions??=[]).push("4.2.1");/**
|
|
1038
|
+
* @license
|
|
1039
|
+
* Copyright 2020 Google LLC
|
|
1040
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1041
|
+
*/const O4=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t;function _4(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(l,c){var u=c.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(d){var p,h;return(h=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&h!==void 0?h:0})):l},[]);if(o.length){var i=new RegExp(`
|
|
1042
|
+
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(l){return l.replace(i,`
|
|
1043
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var s=n[0];return t.forEach(function(l,c){var u=s.match(/(?:^|\n)( *)$/),d=u?u[1]:"",p=l;typeof l=="string"&&l.includes(`
|
|
1044
|
+
`)&&(p=String(l).split(`
|
|
1045
|
+
`).map(function(h,f){return f===0?h:""+d+h}).join(`
|
|
1046
|
+
`)),s+=p+n[c+1]}),s}const{global:A4}=__STORYBOOK_MODULE_GLOBAL__,{simulatePageLoad:kg,simulateDOMContentLoaded:R4}=__STORYBOOK_MODULE_PREVIEW_API__;var q4={};n4(q4,{parameters:()=>K1,render:()=>W1,renderToCanvas:()=>G1});var{Node:N4}=A4,W1=(e,t)=>{let{id:r,component:n}=t;if(!n)throw new Error(`Unable to render story ${r} as the component annotation is missing from the default export`);let o=document.createElement(n);return Object.entries(e).forEach(([i,s])=>{o[i]=s}),o};function G1({storyFn:e,kind:t,name:r,showMain:n,showError:o,forceRemount:i},s){let l=e();if(n(),O4(l)){(i||!s.querySelector('[id="root-inner"]'))&&(s.innerHTML='<div id="root-inner"></div>');let c=s.querySelector('[id="root-inner"]');Hs(l,c),kg(s)}else if(typeof l=="string")s.innerHTML=l,kg(s);else if(l instanceof N4){if(s.firstChild===l&&!i)return;s.innerHTML="",s.appendChild(l),R4()}else o({title:`Expecting an HTML snippet or DOM node from the story: "${r}" of "${t}".`,description:_4`
|
|
1047
|
+
Did you forget to return the HTML snippet from the story?
|
|
1048
|
+
Use "() => <your snippet or node>" or when defining the story.
|
|
1049
|
+
`})}var K1={renderer:"web-components"};const I4=Object.freeze(Object.defineProperty({__proto__:null,parameters:K1,render:W1,renderToCanvas:G1},Symbol.toStringTag,{value:"Module"})),{global:Vs}=__STORYBOOK_MODULE_GLOBAL__,{setDefaultProjectAnnotations:uG,setProjectAnnotations:cG}=__STORYBOOK_MODULE_PREVIEW_API__;var{window:j4}=Vs;j4.STORYBOOK_ENV="web-components";function Y1(e){if(!e)return!1;if(typeof e=="string")return!0;throw new Error('Provided component needs to be a string. e.g. component: "my-element"')}function X1(e){if(!e)return!1;if(e.tags&&Array.isArray(e.tags)||e.modules&&Array.isArray(e.modules))return!0;throw new Error(`You need to setup valid meta data in your config.js via setCustomElements().
|
|
1050
|
+
See the readme of addon-docs for web components for more details.`)}function Q1(){return Vs.__STORYBOOK_CUSTOM_ELEMENTS__||Vs.__STORYBOOK_CUSTOM_ELEMENTS_MANIFEST__}var{window:k4,EventSource:M4}=Vs;typeof module<"u"&&module?.hot?.decline&&(module.hot.decline(),new M4("__webpack_hmr").addEventListener("message",function(e){try{let{action:t}=JSON.parse(e.data);t==="built"&&k4.location.reload()}catch{}}));var $4=Object.create,my=Object.defineProperty,L4=Object.getOwnPropertyDescriptor,D4=Object.getOwnPropertyNames,F4=Object.getPrototypeOf,B4=Object.prototype.hasOwnProperty,q=(e,t)=>my(e,"name",{value:t,configurable:!0}),U4=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),H4=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of D4(t))!B4.call(e,o)&&o!==r&&my(e,o,{get:()=>t[o],enumerable:!(n=L4(t,o))||n.enumerable});return e},V4=(e,t,r)=>(r=e!=null?$4(F4(e)):{},H4(my(r,"default",{value:e,enumerable:!0}),e)),J4=U4((e,t)=>{(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.jtpp={}))})(e,function(r){function n(y){return y.text!==void 0&&y.text!==""?`'${y.type}' with value '${y.text}'`:`'${y.type}'`}q(n,"tokenToString");let o=class Z1 extends Error{constructor(_){super(`No parslet found for token: ${n(_)}`),this.token=_,Object.setPrototypeOf(this,Z1.prototype)}getToken(){return this.token}};q(o,"NoParsletFoundError");let i=o,s=class eq extends Error{constructor(_){super(`The parsing ended early. The next token was: ${n(_)}`),this.token=_,Object.setPrototypeOf(this,eq.prototype)}getToken(){return this.token}};q(s,"EarlyEndOfParseError");let l=s,c=class tq extends Error{constructor(_,L){let J=`Unexpected type: '${_.type}'.`;L!==void 0&&(J+=` Message: ${L}`),super(J),Object.setPrototypeOf(this,tq.prototype)}};q(c,"UnexpectedTypeError");let u=c;function d(y){return _=>_.startsWith(y)?{type:y,text:y}:null}q(d,"makePunctuationRule");function p(y){let _=0,L,J=y[0],ee=!1;if(J!=="'"&&J!=='"')return null;for(;_<y.length;){if(_++,L=y[_],!ee&&L===J){_++;break}ee=!ee&&L==="\\"}if(L!==J)throw new Error("Unterminated String");return y.slice(0,_)}q(p,"getQuoted");let h=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),f=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function m(y){let _=y[0];if(!h.test(_))return null;let L=1;do{if(_=y[L],!f.test(_))break;L++}while(L<y.length);return y.slice(0,L)}q(m,"getIdentifier");let b=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function g(y){var _,L;return(L=(_=b.exec(y))===null||_===void 0?void 0:_[0])!==null&&L!==void 0?L:null}q(g,"getNumber");let v=q(y=>{let _=m(y);return _==null?null:{type:"Identifier",text:_}},"identifierRule");function w(y){return _=>{if(!_.startsWith(y))return null;let L=_[y.length];return L!==void 0&&f.test(L)?null:{type:y,text:y}}}q(w,"makeKeyWordRule");let P=q(y=>{let _=p(y);return _==null?null:{type:"StringValue",text:_}},"stringValueRule"),A=q(y=>y.length>0?null:{type:"EOF",text:""},"eofRule"),R=q(y=>{let _=g(y);return _===null?null:{type:"Number",text:_}},"numberRule"),T=[A,d("=>"),d("("),d(")"),d("{"),d("}"),d("["),d("]"),d("|"),d("&"),d("<"),d(">"),d(","),d(";"),d("*"),d("?"),d("!"),d("="),d(":"),d("..."),d("."),d("#"),d("~"),d("/"),d("@"),w("undefined"),w("null"),w("function"),w("this"),w("new"),w("module"),w("event"),w("external"),w("typeof"),w("keyof"),w("readonly"),w("import"),w("is"),w("in"),w("asserts"),R,v,P],E=/^\s*\n\s*/,x=class Ji{static create(_){let L=this.read(_);_=L.text;let J=this.read(_);return _=J.text,new Ji(_,void 0,L.token,J.token)}constructor(_,L,J,ee){this.text="",this.text=_,this.previous=L,this.current=J,this.next=ee}static read(_,L=!1){L=L||E.test(_),_=_.trim();for(let J of T){let ee=J(_);if(ee!==null){let le=Object.assign(Object.assign({},ee),{startOfLine:L});return _=_.slice(le.text.length),{text:_,token:le}}}throw new Error("Unexpected Token "+_)}advance(){let _=Ji.read(this.text);return new Ji(_.text,this.current,this.next,_.token)}};q(x,"Lexer");let C=x;function k(y){if(y===void 0)throw new Error("Unexpected undefined");if(y.type==="JsdocTypeKeyValue"||y.type==="JsdocTypeParameterList"||y.type==="JsdocTypeProperty"||y.type==="JsdocTypeReadonlyProperty"||y.type==="JsdocTypeObjectField"||y.type==="JsdocTypeJsdocObjectField"||y.type==="JsdocTypeIndexSignature"||y.type==="JsdocTypeMappedType")throw new u(y);return y}q(k,"assertRootResult");function N(y){return y.type==="JsdocTypeKeyValue"?D(y):k(y)}q(N,"assertPlainKeyValueOrRootResult");function U(y){return y.type==="JsdocTypeName"?y:D(y)}q(U,"assertPlainKeyValueOrNameResult");function D(y){if(y.type!=="JsdocTypeKeyValue")throw new u(y);return y}q(D,"assertPlainKeyValueResult");function O(y){var _;if(y.type==="JsdocTypeVariadic"){if(((_=y.element)===null||_===void 0?void 0:_.type)==="JsdocTypeName")return y;throw new u(y)}if(y.type!=="JsdocTypeNumber"&&y.type!=="JsdocTypeName")throw new u(y);return y}q(O,"assertNumberOrVariadicNameResult");function M(y){return y.type==="JsdocTypeIndexSignature"||y.type==="JsdocTypeMappedType"}q(M,"isSquaredProperty");var $;(function(y){y[y.ALL=0]="ALL",y[y.PARAMETER_LIST=1]="PARAMETER_LIST",y[y.OBJECT=2]="OBJECT",y[y.KEY_VALUE=3]="KEY_VALUE",y[y.INDEX_BRACKETS=4]="INDEX_BRACKETS",y[y.UNION=5]="UNION",y[y.INTERSECTION=6]="INTERSECTION",y[y.PREFIX=7]="PREFIX",y[y.INFIX=8]="INFIX",y[y.TUPLE=9]="TUPLE",y[y.SYMBOL=10]="SYMBOL",y[y.OPTIONAL=11]="OPTIONAL",y[y.NULLABLE=12]="NULLABLE",y[y.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",y[y.FUNCTION=14]="FUNCTION",y[y.ARROW=15]="ARROW",y[y.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",y[y.GENERIC=17]="GENERIC",y[y.NAME_PATH=18]="NAME_PATH",y[y.PARENTHESIS=19]="PARENTHESIS",y[y.SPECIAL_TYPES=20]="SPECIAL_TYPES"})($||($={}));let K=class{constructor(_,L,J){this.grammar=_,typeof L=="string"?this._lexer=C.create(L):this._lexer=L,this.baseParser=J}get lexer(){return this._lexer}parse(){let _=this.parseType($.ALL);if(this.lexer.current.type!=="EOF")throw new l(this.lexer.current);return _}parseType(_){return k(this.parseIntermediateType(_))}parseIntermediateType(_){let L=this.tryParslets(null,_);if(L===null)throw new i(this.lexer.current);return this.parseInfixIntermediateType(L,_)}parseInfixIntermediateType(_,L){let J=this.tryParslets(_,L);for(;J!==null;)_=J,J=this.tryParslets(_,L);return _}tryParslets(_,L){for(let J of this.grammar){let ee=J(this,L,_);if(ee!==null)return ee}return null}consume(_){return Array.isArray(_)||(_=[_]),_.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(_){this._lexer=_.lexer}};q(K,"Parser");let G=K;function re(y){return y==="EOF"||y==="|"||y===","||y===")"||y===">"}q(re,"isQuestionMarkUnknownType");let ae=q((y,_,L)=>{let J=y.lexer.current.type,ee=y.lexer.next.type;return L==null&&J==="?"&&!re(ee)||L!=null&&J==="?"?(y.consume("?"),L==null?{type:"JsdocTypeNullable",element:y.parseType($.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:k(L),meta:{position:"suffix"}}):null},"nullableParslet");function Z(y){let _=q((L,J,ee)=>{let le=L.lexer.current.type,me=L.lexer.next.type;if(ee===null){if("parsePrefix"in y&&y.accept(le,me))return y.parsePrefix(L)}else if("parseInfix"in y&&y.precedence>J&&y.accept(le,me))return y.parseInfix(L,ee);return null},"parslet");return Object.defineProperty(_,"name",{value:y.name}),_}q(Z,"composeParslet");let W=Z({name:"optionalParslet",accept:q(y=>y==="=","accept"),precedence:$.OPTIONAL,parsePrefix:q(y=>(y.consume("="),{type:"JsdocTypeOptional",element:y.parseType($.OPTIONAL),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:q((y,_)=>(y.consume("="),{type:"JsdocTypeOptional",element:k(_),meta:{position:"suffix"}}),"parseInfix")}),z=Z({name:"numberParslet",accept:q(y=>y==="Number","accept"),parsePrefix:q(y=>{let _=parseFloat(y.lexer.current.text);return y.consume("Number"),{type:"JsdocTypeNumber",value:_}},"parsePrefix")}),Y=Z({name:"parenthesisParslet",accept:q(y=>y==="(","accept"),parsePrefix:q(y=>{if(y.consume("("),y.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let _=y.parseIntermediateType($.ALL);if(!y.consume(")"))throw new Error("Unterminated parenthesis");return _.type==="JsdocTypeParameterList"?_:_.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[_]}:{type:"JsdocTypeParenthesis",element:k(_)}},"parsePrefix")}),ne=Z({name:"specialTypesParslet",accept:q((y,_)=>y==="?"&&re(_)||y==="null"||y==="undefined"||y==="*","accept"),parsePrefix:q(y=>{if(y.consume("null"))return{type:"JsdocTypeNull"};if(y.consume("undefined"))return{type:"JsdocTypeUndefined"};if(y.consume("*"))return{type:"JsdocTypeAny"};if(y.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+y.lexer.current.text)},"parsePrefix")}),X=Z({name:"notNullableParslet",accept:q(y=>y==="!","accept"),precedence:$.NULLABLE,parsePrefix:q(y=>(y.consume("!"),{type:"JsdocTypeNotNullable",element:y.parseType($.NULLABLE),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:q((y,_)=>(y.consume("!"),{type:"JsdocTypeNotNullable",element:k(_),meta:{position:"suffix"}}),"parseInfix")});function se({allowTrailingComma:y}){return Z({name:"parameterListParslet",accept:q(_=>_===",","accept"),precedence:$.PARAMETER_LIST,parseInfix:q((_,L)=>{let J=[N(L)];_.consume(",");do try{let ee=_.parseIntermediateType($.PARAMETER_LIST);J.push(N(ee))}catch(ee){if(y&&ee instanceof i)break;throw ee}while(_.consume(","));if(J.length>0&&J.slice(0,-1).some(ee=>ee.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:J}},"parseInfix")})}q(se,"createParameterListParslet");let ce=Z({name:"genericParslet",accept:q((y,_)=>y==="<"||y==="."&&_==="<","accept"),precedence:$.GENERIC,parseInfix:q((y,_)=>{let L=y.consume(".");y.consume("<");let J=[];do J.push(y.parseType($.PARAMETER_LIST));while(y.consume(","));if(!y.consume(">"))throw new Error("Unterminated generic parameter list");return{type:"JsdocTypeGeneric",left:k(_),elements:J,meta:{brackets:"angle",dot:L}}},"parseInfix")}),Me=Z({name:"unionParslet",accept:q(y=>y==="|","accept"),precedence:$.UNION,parseInfix:q((y,_)=>{y.consume("|");let L=[];do L.push(y.parseType($.UNION));while(y.consume("|"));return{type:"JsdocTypeUnion",elements:[k(_),...L]}},"parseInfix")}),Ve=[ae,W,z,Y,ne,X,se({allowTrailingComma:!0}),ce,Me,W];function F({allowSquareBracketsOnAnyType:y,allowJsdocNamePaths:_,pathGrammar:L}){return q(function(J,ee,le){if(le==null||ee>=$.NAME_PATH)return null;let me=J.lexer.current.type,Ie=J.lexer.next.type;if(!(me==="."&&Ie!=="<"||me==="["&&(y||le.type==="JsdocTypeName")||_&&(me==="~"||me==="#")))return null;let Le,ot=!1;J.consume(".")?Le="property":J.consume("[")?(Le="property-brackets",ot=!0):J.consume("~")?Le="inner":(J.consume("#"),Le="instance");let nr=L!==null?new G(L,J.lexer,J):J,It=nr.parseIntermediateType($.NAME_PATH);J.acceptLexerState(nr);let Qo;switch(It.type){case"JsdocTypeName":Qo={type:"JsdocTypeProperty",value:It.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":Qo={type:"JsdocTypeProperty",value:It.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":Qo={type:"JsdocTypeProperty",value:It.value,meta:{quote:It.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(It.specialType==="event")Qo=It;else throw new u(It,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new u(It,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(ot&&!J.consume("]")){let qy=J.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${qy.type}' with text '${qy.text}'`)}return{type:"JsdocTypeNamePath",left:k(le),right:Qo,pathType:Le}},"namePathParslet")}q(F,"createNamePathParslet");function Q({allowedAdditionalTokens:y}){return Z({name:"nameParslet",accept:q(_=>_==="Identifier"||_==="this"||_==="new"||y.includes(_),"accept"),parsePrefix:q(_=>{let{type:L,text:J}=_.lexer.current;return _.consume(L),{type:"JsdocTypeName",value:J}},"parsePrefix")})}q(Q,"createNameParslet");let oe=Z({name:"stringValueParslet",accept:q(y=>y==="StringValue","accept"),parsePrefix:q(y=>{let _=y.lexer.current.text;return y.consume("StringValue"),{type:"JsdocTypeStringValue",value:_.slice(1,-1),meta:{quote:_[0]==="'"?"single":"double"}}},"parsePrefix")});function ue({pathGrammar:y,allowedTypes:_}){return Z({name:"specialNamePathParslet",accept:q(L=>_.includes(L),"accept"),parsePrefix:q(L=>{let J=L.lexer.current.type;if(L.consume(J),!L.consume(":"))return{type:"JsdocTypeName",value:J};let ee,le=L.lexer.current;if(L.consume("StringValue"))ee={type:"JsdocTypeSpecialNamePath",value:le.text.slice(1,-1),specialType:J,meta:{quote:le.text[0]==="'"?"single":"double"}};else{let Le="",ot=["Identifier","@","/"];for(;ot.some(nr=>L.consume(nr));)Le+=le.text,le=L.lexer.current;ee={type:"JsdocTypeSpecialNamePath",value:Le,specialType:J,meta:{quote:void 0}}}let me=new G(y,L.lexer,L),Ie=me.parseInfixIntermediateType(ee,$.ALL);return L.acceptLexerState(me),k(Ie)},"parsePrefix")})}q(ue,"createSpecialNamePathParslet");let ie=[Q({allowedAdditionalTokens:["external","module"]}),oe,z,F({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],de=[...ie,ue({allowedTypes:["event"],pathGrammar:ie})];function pe(y){let _;if(y.type==="JsdocTypeParameterList")_=y.elements;else if(y.type==="JsdocTypeParenthesis")_=[y.element];else throw new u(y);return _.map(L=>N(L))}q(pe,"getParameters");function Pe(y){let _=pe(y);if(_.some(L=>L.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return _}q(Pe,"getUnnamedParameters");function $e({allowNamedParameters:y,allowNoReturnType:_,allowWithoutParenthesis:L,allowNewAsFunctionKeyword:J}){return Z({name:"functionParslet",accept:q((ee,le)=>ee==="function"||J&&ee==="new"&&le==="(","accept"),parsePrefix:q(ee=>{let le=ee.consume("new");ee.consume("function");let me=ee.lexer.current.type==="(";if(!me){if(!L)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let Ie={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:le,parenthesis:me},Le=ee.parseIntermediateType($.FUNCTION);if(y===void 0)Ie.parameters=Pe(Le);else{if(le&&Le.type==="JsdocTypeFunction"&&Le.arrow)return Ie=Le,Ie.constructor=!0,Ie;Ie.parameters=pe(Le);for(let ot of Ie.parameters)if(ot.type==="JsdocTypeKeyValue"&&!y.includes(ot.key))throw new Error(`only allowed named parameters are ${y.join(", ")} but got ${ot.type}`)}if(ee.consume(":"))Ie.returnType=ee.parseType($.PREFIX);else if(!_)throw new Error("function is missing return type");return Ie},"parsePrefix")})}q($e,"createFunctionParslet");function st({allowPostfix:y,allowEnclosingBrackets:_}){return Z({name:"variadicParslet",accept:q(L=>L==="...","accept"),precedence:$.PREFIX,parsePrefix:q(L=>{L.consume("...");let J=_&&L.consume("[");try{let ee=L.parseType($.PREFIX);if(J&&!L.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:k(ee),meta:{position:"prefix",squareBrackets:J}}}catch(ee){if(ee instanceof i){if(J)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw ee}},"parsePrefix"),parseInfix:y?(L,J)=>(L.consume("..."),{type:"JsdocTypeVariadic",element:k(J),meta:{position:"suffix",squareBrackets:!1}}):void 0})}q(st,"createVariadicParslet");let St=Z({name:"symbolParslet",accept:q(y=>y==="(","accept"),precedence:$.SYMBOL,parseInfix:q((y,_)=>{if(_.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");y.consume("(");let L={type:"JsdocTypeSymbol",value:_.value};if(!y.consume(")")){let J=y.parseIntermediateType($.SYMBOL);if(L.element=O(J),!y.consume(")"))throw new Error("Symbol does not end after value")}return L},"parseInfix")}),nt=Z({name:"arrayBracketsParslet",precedence:$.ARRAY_BRACKETS,accept:q((y,_)=>y==="["&&_==="]","accept"),parseInfix:q((y,_)=>(y.consume("["),y.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[k(_)],meta:{brackets:"square",dot:!1}}),"parseInfix")});function pt({objectFieldGrammar:y,allowKeyTypes:_}){return Z({name:"objectParslet",accept:q(L=>L==="{","accept"),parsePrefix:q(L=>{L.consume("{");let J={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!L.consume("}")){let ee,le=new G(y,L.lexer,L);for(;;){le.acceptLexerState(L);let me=le.parseIntermediateType($.OBJECT);L.acceptLexerState(le),me===void 0&&_&&(me=L.parseIntermediateType($.OBJECT));let Ie=!1;if(me.type==="JsdocTypeNullable"&&(Ie=!0,me=me.element),me.type==="JsdocTypeNumber"||me.type==="JsdocTypeName"||me.type==="JsdocTypeStringValue"){let Le;me.type==="JsdocTypeStringValue"&&(Le=me.meta.quote),J.elements.push({type:"JsdocTypeObjectField",key:me.value.toString(),right:void 0,optional:Ie,readonly:!1,meta:{quote:Le}})}else if(me.type==="JsdocTypeObjectField"||me.type==="JsdocTypeJsdocObjectField")J.elements.push(me);else throw new u(me);if(L.lexer.current.startOfLine)ee="linebreak";else if(L.consume(","))ee="comma";else if(L.consume(";"))ee="semicolon";else break;if(L.lexer.current.type==="}")break}if(J.meta.separator=ee??"comma",!L.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return J},"parsePrefix")})}q(pt,"createObjectParslet");function ft({allowSquaredProperties:y,allowKeyTypes:_,allowReadonly:L,allowOptional:J}){return Z({name:"objectFieldParslet",precedence:$.KEY_VALUE,accept:q(ee=>ee===":","accept"),parseInfix:q((ee,le)=>{var me;let Ie=!1,Le=!1;J&&le.type==="JsdocTypeNullable"&&(Ie=!0,le=le.element),L&&le.type==="JsdocTypeReadonlyProperty"&&(Le=!0,le=le.element);let ot=(me=ee.baseParser)!==null&&me!==void 0?me:ee;if(ot.acceptLexerState(ee),le.type==="JsdocTypeNumber"||le.type==="JsdocTypeName"||le.type==="JsdocTypeStringValue"||M(le)){if(M(le)&&!y)throw new u(le);ot.consume(":");let nr;le.type==="JsdocTypeStringValue"&&(nr=le.meta.quote);let It=ot.parseType($.KEY_VALUE);return ee.acceptLexerState(ot),{type:"JsdocTypeObjectField",key:M(le)?le:le.value.toString(),right:It,optional:Ie,readonly:Le,meta:{quote:nr}}}else{if(!_)throw new u(le);ot.consume(":");let nr=ot.parseType($.KEY_VALUE);return ee.acceptLexerState(ot),{type:"JsdocTypeJsdocObjectField",left:k(le),right:nr}}},"parseInfix")})}q(ft,"createObjectFieldParslet");function ht({allowOptional:y,allowVariadic:_}){return Z({name:"keyValueParslet",precedence:$.KEY_VALUE,accept:q(L=>L===":","accept"),parseInfix:q((L,J)=>{let ee=!1,le=!1;if(y&&J.type==="JsdocTypeNullable"&&(ee=!0,J=J.element),_&&J.type==="JsdocTypeVariadic"&&J.element!==void 0&&(le=!0,J=J.element),J.type!=="JsdocTypeName")throw new u(J);L.consume(":");let me=L.parseType($.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:J.value,right:me,optional:ee,variadic:le}},"parseInfix")})}q(ht,"createKeyValueParslet");let jn=[...Ve,$e({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),oe,ue({allowedTypes:["module","external","event"],pathGrammar:de}),st({allowEnclosingBrackets:!0,allowPostfix:!0}),Q({allowedAdditionalTokens:["keyof"]}),St,nt,F({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:de})],Do=[...jn,pt({objectFieldGrammar:[Q({allowedAdditionalTokens:["module","in"]}),ft({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...jn],allowKeyTypes:!0}),ht({allowOptional:!0,allowVariadic:!0})],kn=Z({name:"typeOfParslet",accept:q(y=>y==="typeof","accept"),parsePrefix:q(y=>(y.consume("typeof"),{type:"JsdocTypeTypeof",element:k(y.parseType($.KEY_OF_TYPE_OF))}),"parsePrefix")}),Fo=[Q({allowedAdditionalTokens:["module","keyof","event","external","in"]}),ae,W,oe,z,ft({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Bo=[...Ve,pt({allowKeyTypes:!1,objectFieldGrammar:Fo}),Q({allowedAdditionalTokens:["event","external","in"]}),kn,$e({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),st({allowEnclosingBrackets:!1,allowPostfix:!1}),Q({allowedAdditionalTokens:["keyof"]}),ue({allowedTypes:["module"],pathGrammar:de}),F({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:de}),ht({allowOptional:!1,allowVariadic:!1}),St],Uo=Z({name:"assertsParslet",accept:q(y=>y==="asserts","accept"),parsePrefix:q(y=>{y.consume("asserts");let _=y.parseIntermediateType($.SYMBOL);if(_.type!=="JsdocTypeName")throw new u(_,"A typescript asserts always has to have a name on the left side.");return y.consume("is"),{type:"JsdocTypeAsserts",left:_,right:k(y.parseIntermediateType($.INFIX))}},"parsePrefix")});function Mn({allowQuestionMark:y}){return Z({name:"tupleParslet",accept:q(_=>_==="[","accept"),parsePrefix:q(_=>{_.consume("[");let L={type:"JsdocTypeTuple",elements:[]};if(_.consume("]"))return L;let J=_.parseIntermediateType($.ALL);if(J.type==="JsdocTypeParameterList"?J.elements[0].type==="JsdocTypeKeyValue"?L.elements=J.elements.map(D):L.elements=J.elements.map(k):J.type==="JsdocTypeKeyValue"?L.elements=[D(J)]:L.elements=[k(J)],!_.consume("]"))throw new Error("Unterminated '['");if(!y&&L.elements.some(ee=>ee.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return L},"parsePrefix")})}q(Mn,"createTupleParslet");let Ho=Z({name:"keyOfParslet",accept:q(y=>y==="keyof","accept"),parsePrefix:q(y=>(y.consume("keyof"),{type:"JsdocTypeKeyof",element:k(y.parseType($.KEY_OF_TYPE_OF))}),"parsePrefix")}),Vo=Z({name:"importParslet",accept:q(y=>y==="import","accept"),parsePrefix:q(y=>{if(y.consume("import"),!y.consume("("))throw new Error("Missing parenthesis after import keyword");let _=y.parseType($.PREFIX);if(_.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!y.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:_}},"parsePrefix")}),Jo=Z({name:"readonlyPropertyParslet",accept:q(y=>y==="readonly","accept"),parsePrefix:q(y=>(y.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:y.parseType($.KEY_VALUE)}),"parsePrefix")}),zo=Z({name:"arrowFunctionParslet",precedence:$.ARROW,accept:q(y=>y==="=>","accept"),parseInfix:q((y,_)=>(y.consume("=>"),{type:"JsdocTypeFunction",parameters:pe(_).map(U),arrow:!0,constructor:!1,parenthesis:!0,returnType:y.parseType($.OBJECT)}),"parseInfix")}),Wo=Z({name:"intersectionParslet",accept:q(y=>y==="&","accept"),precedence:$.INTERSECTION,parseInfix:q((y,_)=>{y.consume("&");let L=[];do L.push(y.parseType($.INTERSECTION));while(y.consume("&"));return{type:"JsdocTypeIntersection",elements:[k(_),...L]}},"parseInfix")}),Go=Z({name:"predicateParslet",precedence:$.INFIX,accept:q(y=>y==="is","accept"),parseInfix:q((y,_)=>{if(_.type!=="JsdocTypeName")throw new u(_,"A typescript predicate always has to have a name on the left side.");return y.consume("is"),{type:"JsdocTypePredicate",left:_,right:k(y.parseIntermediateType($.INFIX))}},"parseInfix")}),Ko=Z({name:"objectSquareBracketPropertyParslet",accept:q(y=>y==="[","accept"),parsePrefix:q(y=>{if(y.baseParser===void 0)throw new Error("Only allowed inside object grammar");y.consume("[");let _=y.lexer.current.text;y.consume("Identifier");let L;if(y.consume(":")){let J=y.baseParser;J.acceptLexerState(y),L={type:"JsdocTypeIndexSignature",key:_,right:J.parseType($.INDEX_BRACKETS)},y.acceptLexerState(J)}else if(y.consume("in")){let J=y.baseParser;J.acceptLexerState(y),L={type:"JsdocTypeMappedType",key:_,right:J.parseType($.ARRAY_BRACKETS)},y.acceptLexerState(J)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!y.consume("]"))throw new Error("Unterminated square brackets");return L},"parsePrefix")}),Yo=[Jo,Q({allowedAdditionalTokens:["module","event","keyof","event","external","in"]}),ae,W,oe,z,ft({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),Ko],Xo=[...Ve,pt({allowKeyTypes:!1,objectFieldGrammar:Yo}),kn,Ho,Vo,oe,$e({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Mn({allowQuestionMark:!1}),st({allowEnclosingBrackets:!1,allowPostfix:!1}),Uo,Q({allowedAdditionalTokens:["event","external","in"]}),ue({allowedTypes:["module"],pathGrammar:de}),nt,zo,F({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:de}),Wo,Go,ht({allowVariadic:!0,allowOptional:!0})];function Kr(y,_){switch(_){case"closure":return new G(Bo,y).parse();case"jsdoc":return new G(Do,y).parse();case"typescript":return new G(Xo,y).parse()}}q(Kr,"parse");function $n(y,_=["typescript","closure","jsdoc"]){let L;for(let J of _)try{return Kr(y,J)}catch(ee){L=ee}throw L}q($n,"tryParse");function Bt(y,_){let L=y[_.type];if(L===void 0)throw new Error(`In this set of transform rules exists no rule for type ${_.type}.`);return L(_,J=>Bt(y,J))}q(Bt,"transform");function Ue(y){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}q(Ue,"notAvailableTransform");function Yr(y){let _={params:[]};for(let L of y.parameters)L.type==="JsdocTypeKeyValue"?L.key==="this"?_.this=L.right:L.key==="new"?_.new=L.right:_.params.push(L):_.params.push(L);return _}q(Yr,"extractSpecialParams");function tr(y,_,L){return y==="prefix"?L+_:_+L}q(tr,"applyPosition");function H(y,_){switch(_){case"double":return`"${y}"`;case"single":return`'${y}'`;case void 0:return y}}q(H,"quote");function Xr(){return{JsdocTypeParenthesis:q((y,_)=>`(${y.element!==void 0?_(y.element):""})`,"JsdocTypeParenthesis"),JsdocTypeKeyof:q((y,_)=>`keyof ${_(y.element)}`,"JsdocTypeKeyof"),JsdocTypeFunction:q((y,_)=>{if(y.arrow){if(y.returnType===void 0)throw new Error("Arrow function needs a return type.");let L=`(${y.parameters.map(_).join(", ")}) => ${_(y.returnType)}`;return y.constructor&&(L="new "+L),L}else{let L=y.constructor?"new":"function";return y.parenthesis&&(L+=`(${y.parameters.map(_).join(", ")})`,y.returnType!==void 0&&(L+=`: ${_(y.returnType)}`)),L}},"JsdocTypeFunction"),JsdocTypeName:q(y=>y.value,"JsdocTypeName"),JsdocTypeTuple:q((y,_)=>`[${y.elements.map(_).join(", ")}]`,"JsdocTypeTuple"),JsdocTypeVariadic:q((y,_)=>y.meta.position===void 0?"...":tr(y.meta.position,_(y.element),"..."),"JsdocTypeVariadic"),JsdocTypeNamePath:q((y,_)=>{let L=_(y.left),J=_(y.right);switch(y.pathType){case"inner":return`${L}~${J}`;case"instance":return`${L}#${J}`;case"property":return`${L}.${J}`;case"property-brackets":return`${L}[${J}]`}},"JsdocTypeNamePath"),JsdocTypeStringValue:q(y=>H(y.value,y.meta.quote),"JsdocTypeStringValue"),JsdocTypeAny:q(()=>"*","JsdocTypeAny"),JsdocTypeGeneric:q((y,_)=>{if(y.meta.brackets==="square"){let L=y.elements[0],J=_(L);return L.type==="JsdocTypeUnion"||L.type==="JsdocTypeIntersection"?`(${J})[]`:`${J}[]`}else return`${_(y.left)}${y.meta.dot?".":""}<${y.elements.map(_).join(", ")}>`},"JsdocTypeGeneric"),JsdocTypeImport:q((y,_)=>`import(${_(y.element)})`,"JsdocTypeImport"),JsdocTypeObjectField:q((y,_)=>{let L="";return y.readonly&&(L+="readonly "),typeof y.key=="string"?L+=H(y.key,y.meta.quote):L+=_(y.key),y.optional&&(L+="?"),y.right===void 0?L:L+`: ${_(y.right)}`},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:q((y,_)=>`${_(y.left)}: ${_(y.right)}`,"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:q((y,_)=>{let L=y.key;return y.optional&&(L+="?"),y.variadic&&(L="..."+L),y.right===void 0?L:L+`: ${_(y.right)}`},"JsdocTypeKeyValue"),JsdocTypeSpecialNamePath:q(y=>`${y.specialType}:${H(y.value,y.meta.quote)}`,"JsdocTypeSpecialNamePath"),JsdocTypeNotNullable:q((y,_)=>tr(y.meta.position,_(y.element),"!"),"JsdocTypeNotNullable"),JsdocTypeNull:q(()=>"null","JsdocTypeNull"),JsdocTypeNullable:q((y,_)=>tr(y.meta.position,_(y.element),"?"),"JsdocTypeNullable"),JsdocTypeNumber:q(y=>y.value.toString(),"JsdocTypeNumber"),JsdocTypeObject:q((y,_)=>`{${y.elements.map(_).join((y.meta.separator==="comma"?",":";")+" ")}}`,"JsdocTypeObject"),JsdocTypeOptional:q((y,_)=>tr(y.meta.position,_(y.element),"="),"JsdocTypeOptional"),JsdocTypeSymbol:q((y,_)=>`${y.value}(${y.element!==void 0?_(y.element):""})`,"JsdocTypeSymbol"),JsdocTypeTypeof:q((y,_)=>`typeof ${_(y.element)}`,"JsdocTypeTypeof"),JsdocTypeUndefined:q(()=>"undefined","JsdocTypeUndefined"),JsdocTypeUnion:q((y,_)=>y.elements.map(_).join(" | "),"JsdocTypeUnion"),JsdocTypeUnknown:q(()=>"?","JsdocTypeUnknown"),JsdocTypeIntersection:q((y,_)=>y.elements.map(_).join(" & "),"JsdocTypeIntersection"),JsdocTypeProperty:q(y=>H(y.value,y.meta.quote),"JsdocTypeProperty"),JsdocTypePredicate:q((y,_)=>`${_(y.left)} is ${_(y.right)}`,"JsdocTypePredicate"),JsdocTypeIndexSignature:q((y,_)=>`[${y.key}: ${_(y.right)}]`,"JsdocTypeIndexSignature"),JsdocTypeMappedType:q((y,_)=>`[${y.key} in ${_(y.right)}]`,"JsdocTypeMappedType"),JsdocTypeAsserts:q((y,_)=>`asserts ${_(y.left)} is ${_(y.right)}`,"JsdocTypeAsserts")}}q(Xr,"stringifyRules");let xr=Xr();function Qr(y){return Bt(xr,y)}q(Qr,"stringify");let Hq=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function rr(y){let _={type:"NameExpression",name:y};return Hq.includes(y)&&(_.reservedWord=!0),_}q(rr,"makeName");let Vq={JsdocTypeOptional:q((y,_)=>{let L=_(y.element);return L.optional=!0,L},"JsdocTypeOptional"),JsdocTypeNullable:q((y,_)=>{let L=_(y.element);return L.nullable=!0,L},"JsdocTypeNullable"),JsdocTypeNotNullable:q((y,_)=>{let L=_(y.element);return L.nullable=!1,L},"JsdocTypeNotNullable"),JsdocTypeVariadic:q((y,_)=>{if(y.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let L=_(y.element);return L.repeatable=!0,L},"JsdocTypeVariadic"),JsdocTypeAny:q(()=>({type:"AllLiteral"}),"JsdocTypeAny"),JsdocTypeNull:q(()=>({type:"NullLiteral"}),"JsdocTypeNull"),JsdocTypeStringValue:q(y=>rr(H(y.value,y.meta.quote)),"JsdocTypeStringValue"),JsdocTypeUndefined:q(()=>({type:"UndefinedLiteral"}),"JsdocTypeUndefined"),JsdocTypeUnknown:q(()=>({type:"UnknownLiteral"}),"JsdocTypeUnknown"),JsdocTypeFunction:q((y,_)=>{let L=Yr(y),J={type:"FunctionType",params:L.params.map(_)};return L.this!==void 0&&(J.this=_(L.this)),L.new!==void 0&&(J.new=_(L.new)),y.returnType!==void 0&&(J.result=_(y.returnType)),J},"JsdocTypeFunction"),JsdocTypeGeneric:q((y,_)=>({type:"TypeApplication",applications:y.elements.map(L=>_(L)),expression:_(y.left)}),"JsdocTypeGeneric"),JsdocTypeSpecialNamePath:q(y=>rr(y.specialType+":"+H(y.value,y.meta.quote)),"JsdocTypeSpecialNamePath"),JsdocTypeName:q(y=>y.value!=="function"?rr(y.value):{type:"FunctionType",params:[]},"JsdocTypeName"),JsdocTypeNumber:q(y=>rr(y.value.toString()),"JsdocTypeNumber"),JsdocTypeObject:q((y,_)=>{let L={type:"RecordType",fields:[]};for(let J of y.elements)J.type!=="JsdocTypeObjectField"&&J.type!=="JsdocTypeJsdocObjectField"?L.fields.push({type:"FieldType",key:_(J),value:void 0}):L.fields.push(_(J));return L},"JsdocTypeObject"),JsdocTypeObjectField:q((y,_)=>{if(typeof y.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:rr(H(y.key,y.meta.quote)),value:y.right===void 0?void 0:_(y.right)}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:q((y,_)=>({type:"FieldType",key:_(y.left),value:_(y.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeUnion:q((y,_)=>({type:"TypeUnion",elements:y.elements.map(L=>_(L))}),"JsdocTypeUnion"),JsdocTypeKeyValue:q((y,_)=>({type:"FieldType",key:rr(y.key),value:y.right===void 0?void 0:_(y.right)}),"JsdocTypeKeyValue"),JsdocTypeNamePath:q((y,_)=>{let L=_(y.left),J;y.right.type==="JsdocTypeSpecialNamePath"?J=_(y.right).name:J=H(y.right.value,y.right.meta.quote);let ee=y.pathType==="inner"?"~":y.pathType==="instance"?"#":".";return rr(`${L.name}${ee}${J}`)},"JsdocTypeNamePath"),JsdocTypeSymbol:q(y=>{let _="",L=y.element,J=!1;return L?.type==="JsdocTypeVariadic"&&(L.meta.position==="prefix"?_="...":J=!0,L=L.element),L?.type==="JsdocTypeName"?_+=L.value:L?.type==="JsdocTypeNumber"&&(_+=L.value.toString()),J&&(_+="..."),rr(`${y.value}(${_})`)},"JsdocTypeSymbol"),JsdocTypeParenthesis:q((y,_)=>_(k(y.element)),"JsdocTypeParenthesis"),JsdocTypeMappedType:Ue,JsdocTypeIndexSignature:Ue,JsdocTypeImport:Ue,JsdocTypeKeyof:Ue,JsdocTypeTuple:Ue,JsdocTypeTypeof:Ue,JsdocTypeIntersection:Ue,JsdocTypeProperty:Ue,JsdocTypePredicate:Ue,JsdocTypeAsserts:Ue};function Cy(y){return Bt(Vq,y)}q(Cy,"catharsisTransform");function Tr(y){switch(y){case void 0:return"none";case"single":return"single";case"double":return"double"}}q(Tr,"getQuoteStyle");function Py(y){switch(y){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}q(Py,"getMemberType");function Ei(y,_){return _.length===2?{type:y,left:_[0],right:_[1]}:{type:y,left:_[0],right:Ei(y,_.slice(1))}}q(Ei,"nestResults");let Jq={JsdocTypeOptional:q((y,_)=>({type:"OPTIONAL",value:_(y.element),meta:{syntax:y.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),"JsdocTypeOptional"),JsdocTypeNullable:q((y,_)=>({type:"NULLABLE",value:_(y.element),meta:{syntax:y.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),"JsdocTypeNullable"),JsdocTypeNotNullable:q((y,_)=>({type:"NOT_NULLABLE",value:_(y.element),meta:{syntax:y.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),"JsdocTypeNotNullable"),JsdocTypeVariadic:q((y,_)=>{let L={type:"VARIADIC",meta:{syntax:y.meta.position==="prefix"?"PREFIX_DOTS":y.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return y.element!==void 0&&(L.value=_(y.element)),L},"JsdocTypeVariadic"),JsdocTypeName:q(y=>({type:"NAME",name:y.value}),"JsdocTypeName"),JsdocTypeTypeof:q((y,_)=>({type:"TYPE_QUERY",name:_(y.element)}),"JsdocTypeTypeof"),JsdocTypeTuple:q((y,_)=>({type:"TUPLE",entries:y.elements.map(_)}),"JsdocTypeTuple"),JsdocTypeKeyof:q((y,_)=>({type:"KEY_QUERY",value:_(y.element)}),"JsdocTypeKeyof"),JsdocTypeImport:q(y=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:Tr(y.element.meta.quote),string:y.element.value}}),"JsdocTypeImport"),JsdocTypeUndefined:q(()=>({type:"NAME",name:"undefined"}),"JsdocTypeUndefined"),JsdocTypeAny:q(()=>({type:"ANY"}),"JsdocTypeAny"),JsdocTypeFunction:q((y,_)=>{let L=Yr(y),J={type:y.arrow?"ARROW":"FUNCTION",params:L.params.map(ee=>{if(ee.type==="JsdocTypeKeyValue"){if(ee.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:ee.key,typeName:_(ee.right)}}else return _(ee)}),new:null,returns:null};return L.this!==void 0?J.this=_(L.this):y.arrow||(J.this=null),L.new!==void 0&&(J.new=_(L.new)),y.returnType!==void 0&&(J.returns=_(y.returnType)),J},"JsdocTypeFunction"),JsdocTypeGeneric:q((y,_)=>{let L={type:"GENERIC",subject:_(y.left),objects:y.elements.map(_),meta:{syntax:y.meta.brackets==="square"?"SQUARE_BRACKET":y.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return y.meta.brackets==="square"&&y.elements[0].type==="JsdocTypeFunction"&&!y.elements[0].parenthesis&&(L.objects[0]={type:"NAME",name:"function"}),L},"JsdocTypeGeneric"),JsdocTypeObjectField:q((y,_)=>{if(typeof y.key!="string")throw new Error("Index signatures and mapped types are not supported");if(y.right===void 0)return{type:"RECORD_ENTRY",key:y.key,quoteStyle:Tr(y.meta.quote),value:null,readonly:!1};let L=_(y.right);return y.optional&&(L={type:"OPTIONAL",value:L,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:y.key.toString(),quoteStyle:Tr(y.meta.quote),value:L,readonly:!1}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:q(()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:q((y,_)=>{if(y.right===void 0)return{type:"RECORD_ENTRY",key:y.key,quoteStyle:"none",value:null,readonly:!1};let L=_(y.right);return y.optional&&(L={type:"OPTIONAL",value:L,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:y.key,quoteStyle:"none",value:L,readonly:!1}},"JsdocTypeKeyValue"),JsdocTypeObject:q((y,_)=>{let L=[];for(let J of y.elements)(J.type==="JsdocTypeObjectField"||J.type==="JsdocTypeJsdocObjectField")&&L.push(_(J));return{type:"RECORD",entries:L}},"JsdocTypeObject"),JsdocTypeSpecialNamePath:q(y=>{if(y.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${y.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:Tr(y.meta.quote),path:y.value}}},"JsdocTypeSpecialNamePath"),JsdocTypeNamePath:q((y,_)=>{let L=!1,J,ee;y.right.type==="JsdocTypeSpecialNamePath"&&y.right.specialType==="event"?(L=!0,J=y.right.value,ee=Tr(y.right.meta.quote)):(J=y.right.value,ee=Tr(y.right.meta.quote));let le={type:Py(y.pathType),owner:_(y.left),name:J,quoteStyle:ee,hasEventPrefix:L};if(le.owner.type==="MODULE"){let me=le.owner;return le.owner=le.owner.value,me.value=le,me}else return le},"JsdocTypeNamePath"),JsdocTypeUnion:q((y,_)=>Ei("UNION",y.elements.map(_)),"JsdocTypeUnion"),JsdocTypeParenthesis:q((y,_)=>({type:"PARENTHESIS",value:_(k(y.element))}),"JsdocTypeParenthesis"),JsdocTypeNull:q(()=>({type:"NAME",name:"null"}),"JsdocTypeNull"),JsdocTypeUnknown:q(()=>({type:"UNKNOWN"}),"JsdocTypeUnknown"),JsdocTypeStringValue:q(y=>({type:"STRING_VALUE",quoteStyle:Tr(y.meta.quote),string:y.value}),"JsdocTypeStringValue"),JsdocTypeIntersection:q((y,_)=>Ei("INTERSECTION",y.elements.map(_)),"JsdocTypeIntersection"),JsdocTypeNumber:q(y=>({type:"NUMBER_VALUE",number:y.value.toString()}),"JsdocTypeNumber"),JsdocTypeSymbol:Ue,JsdocTypeProperty:Ue,JsdocTypePredicate:Ue,JsdocTypeMappedType:Ue,JsdocTypeIndexSignature:Ue,JsdocTypeAsserts:Ue};function Oy(y){return Bt(Jq,y)}q(Oy,"jtpTransform");function _y(){return{JsdocTypeIntersection:q((y,_)=>({type:"JsdocTypeIntersection",elements:y.elements.map(_)}),"JsdocTypeIntersection"),JsdocTypeGeneric:q((y,_)=>({type:"JsdocTypeGeneric",left:_(y.left),elements:y.elements.map(_),meta:{dot:y.meta.dot,brackets:y.meta.brackets}}),"JsdocTypeGeneric"),JsdocTypeNullable:q(y=>y,"JsdocTypeNullable"),JsdocTypeUnion:q((y,_)=>({type:"JsdocTypeUnion",elements:y.elements.map(_)}),"JsdocTypeUnion"),JsdocTypeUnknown:q(y=>y,"JsdocTypeUnknown"),JsdocTypeUndefined:q(y=>y,"JsdocTypeUndefined"),JsdocTypeTypeof:q((y,_)=>({type:"JsdocTypeTypeof",element:_(y.element)}),"JsdocTypeTypeof"),JsdocTypeSymbol:q((y,_)=>{let L={type:"JsdocTypeSymbol",value:y.value};return y.element!==void 0&&(L.element=_(y.element)),L},"JsdocTypeSymbol"),JsdocTypeOptional:q((y,_)=>({type:"JsdocTypeOptional",element:_(y.element),meta:{position:y.meta.position}}),"JsdocTypeOptional"),JsdocTypeObject:q((y,_)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:y.elements.map(_)}),"JsdocTypeObject"),JsdocTypeNumber:q(y=>y,"JsdocTypeNumber"),JsdocTypeNull:q(y=>y,"JsdocTypeNull"),JsdocTypeNotNullable:q((y,_)=>({type:"JsdocTypeNotNullable",element:_(y.element),meta:{position:y.meta.position}}),"JsdocTypeNotNullable"),JsdocTypeSpecialNamePath:q(y=>y,"JsdocTypeSpecialNamePath"),JsdocTypeObjectField:q((y,_)=>({type:"JsdocTypeObjectField",key:y.key,right:y.right===void 0?void 0:_(y.right),optional:y.optional,readonly:y.readonly,meta:y.meta}),"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:q((y,_)=>({type:"JsdocTypeJsdocObjectField",left:_(y.left),right:_(y.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:q((y,_)=>({type:"JsdocTypeKeyValue",key:y.key,right:y.right===void 0?void 0:_(y.right),optional:y.optional,variadic:y.variadic}),"JsdocTypeKeyValue"),JsdocTypeImport:q((y,_)=>({type:"JsdocTypeImport",element:_(y.element)}),"JsdocTypeImport"),JsdocTypeAny:q(y=>y,"JsdocTypeAny"),JsdocTypeStringValue:q(y=>y,"JsdocTypeStringValue"),JsdocTypeNamePath:q(y=>y,"JsdocTypeNamePath"),JsdocTypeVariadic:q((y,_)=>{let L={type:"JsdocTypeVariadic",meta:{position:y.meta.position,squareBrackets:y.meta.squareBrackets}};return y.element!==void 0&&(L.element=_(y.element)),L},"JsdocTypeVariadic"),JsdocTypeTuple:q((y,_)=>({type:"JsdocTypeTuple",elements:y.elements.map(_)}),"JsdocTypeTuple"),JsdocTypeName:q(y=>y,"JsdocTypeName"),JsdocTypeFunction:q((y,_)=>{let L={type:"JsdocTypeFunction",arrow:y.arrow,parameters:y.parameters.map(_),constructor:y.constructor,parenthesis:y.parenthesis};return y.returnType!==void 0&&(L.returnType=_(y.returnType)),L},"JsdocTypeFunction"),JsdocTypeKeyof:q((y,_)=>({type:"JsdocTypeKeyof",element:_(y.element)}),"JsdocTypeKeyof"),JsdocTypeParenthesis:q((y,_)=>({type:"JsdocTypeParenthesis",element:_(y.element)}),"JsdocTypeParenthesis"),JsdocTypeProperty:q(y=>y,"JsdocTypeProperty"),JsdocTypePredicate:q((y,_)=>({type:"JsdocTypePredicate",left:_(y.left),right:_(y.right)}),"JsdocTypePredicate"),JsdocTypeIndexSignature:q((y,_)=>({type:"JsdocTypeIndexSignature",key:y.key,right:_(y.right)}),"JsdocTypeIndexSignature"),JsdocTypeMappedType:q((y,_)=>({type:"JsdocTypeMappedType",key:y.key,right:_(y.right)}),"JsdocTypeMappedType"),JsdocTypeAsserts:q((y,_)=>({type:"JsdocTypeAsserts",left:_(y.left),right:_(y.right)}),"JsdocTypeAsserts")}}q(_y,"identityTransformRules");let Ay={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"]};function xi(y,_,L,J,ee){J?.(y,_,L);let le=Ay[y.type];for(let me of le){let Ie=y[me];if(Ie!==void 0)if(Array.isArray(Ie))for(let Le of Ie)xi(Le,y,me,J,ee);else xi(Ie,y,me,J,ee)}ee?.(y,_,L)}q(xi,"_traverse");function Ry(y,_,L){xi(y,void 0,void 0,_,L)}q(Ry,"traverse"),r.catharsisTransform=Cy,r.identityTransformRules=_y,r.jtpTransform=Oy,r.parse=Kr,r.stringify=Qr,r.stringifyRules=Xr,r.transform=Bt,r.traverse=Ry,r.tryParse=$n,r.visitorKeys=Ay})});const{UnknownArgTypesError:pG}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;function zi(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}q(zi,"isPlainObject");function z4(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],s=e[i];r[i]=t(s,i,e)}return r}q(z4,"mapValues");const{UnknownArgTypesError:fG}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var W4=["null","undefined"];function Pu(e){return W4.some(t=>t===e)}q(Pu,"isDefaultValueBlacklisted");var G4=q(e=>{if(!e)return"";if(typeof e=="string")return e;throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`)},"str");function yy(e){return!!e.__docgenInfo}q(yy,"hasDocgen");function K4(e){return e!=null&&Object.keys(e).length>0}q(K4,"isValidDocgenSection");function Y4(e,t){return yy(e)?e.__docgenInfo[t]:null}q(Y4,"getDocgenSection");function rq(e){return yy(e)?G4(e.__docgenInfo.description):""}q(rq,"getDocgenDescription");var Dr;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(Dr=Dr||(Dr={}));function nq(e){return/^\s+$/.test(e)}q(nq,"isSpace");function oq(e){let t=e.match(/\r+$/);return t==null?["",e]:[e.slice(-t[0].length),e.slice(0,-t[0].length)]}q(oq,"splitCR");function hn(e){let t=e.match(/^\s+/);return t==null?["",e]:[e.slice(0,t[0].length),e.slice(t[0].length)]}q(hn,"splitSpace");function aq(e){return e.split(/\n/)}q(aq,"splitLines");function iq(e={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},e)}q(iq,"seedSpec");function sq(e={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},e)}q(sq,"seedTokens");var X4=/^@\S+/;function lq({fence:e="```"}={}){let t=uq(e),r=q((n,o)=>t(n)?!o:o,"toggleFence");return q(function(n){let o=[[]],i=!1;for(let s of n)X4.test(s.tokens.description)&&!i?o.push([s]):o[o.length-1].push(s),i=r(s.tokens.description,i);return o},"parseBlock")}q(lq,"getParser");function uq(e){return typeof e=="string"?t=>t.split(e).length%2===0:e}q(uq,"getFencer");function cq({startLine:e=0,markers:t=Dr}={}){let r=null,n=e;return q(function(o){let i=o,s=sq();if([s.lineEnd,i]=oq(i),[s.start,i]=hn(i),r===null&&i.startsWith(t.start)&&!i.startsWith(t.nostart)&&(r=[],s.delimiter=i.slice(0,t.start.length),i=i.slice(t.start.length),[s.postDelimiter,i]=hn(i)),r===null)return n++,null;let l=i.trimRight().endsWith(t.end);if(s.delimiter===""&&i.startsWith(t.delim)&&!i.startsWith(t.end)&&(s.delimiter=t.delim,i=i.slice(t.delim.length),[s.postDelimiter,i]=hn(i)),l){let c=i.trimRight();s.end=i.slice(c.length-t.end.length),i=c.slice(0,-t.end.length)}if(s.description=i,r.push({number:n,source:o,tokens:s}),n++,l){let c=r.slice();return r=null,c}return null},"parseSource")}q(cq,"getParser");function dq({tokenizers:e}){return q(function(t){var r;let n=iq({source:t});for(let o of e)if(n=o(n),!((r=n.problems[n.problems.length-1])===null||r===void 0)&&r.critical)break;return n},"parseSpec")}q(dq,"getParser");function pq(){return e=>{let{tokens:t}=e.source[0],r=t.description.match(/\s*(@(\S+))(\s*)/);return r===null?(e.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:e.source[0].number,critical:!0}),e):(t.tag=r[1],t.postTag=r[3],t.description=t.description.slice(r[0].length),e.tag=r[2],e)}}q(pq,"tagTokenizer");function fq(e="compact"){let t=hq(e);return r=>{let n=0,o=[];for(let[l,{tokens:c}]of r.source.entries()){let u="";if(l===0&&c.description[0]!=="{")return r;for(let d of c.description)if(d==="{"&&n++,d==="}"&&n--,u+=d,n===0)break;if(o.push([c,u]),n===0)break}if(n!==0)return r.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:r.source[0].number,critical:!0}),r;let i=[],s=o[0][0].postDelimiter.length;for(let[l,[c,u]]of o.entries())c.type=u,l>0&&(c.type=c.postDelimiter.slice(s)+u,c.postDelimiter=c.postDelimiter.slice(0,s)),[c.postType,c.description]=hn(c.description.slice(u.length)),i.push(c.type);return i[0]=i[0].slice(1),i[i.length-1]=i[i.length-1].slice(0,-1),r.type=t(i),r}}q(fq,"typeTokenizer");var Q4=q(e=>e.trim(),"trim");function hq(e){return e==="compact"?t=>t.map(Q4).join(""):e==="preserve"?t=>t.join(`
|
|
1051
|
+
`):e}q(hq,"getJoiner");var Z4=q(e=>e&&e.startsWith('"')&&e.endsWith('"'),"isQuoted");function mq(){let e=q((t,{tokens:r},n)=>r.type===""?t:n,"typeEnd");return t=>{let{tokens:r}=t.source[t.source.reduce(e,0)],n=r.description.trimLeft(),o=n.split('"');if(o.length>1&&o[0]===""&&o.length%2===1)return t.name=o[1],r.name=`"${o[1]}"`,[r.postName,r.description]=hn(n.slice(r.name.length)),t;let i=0,s="",l=!1,c;for(let d of n){if(i===0&&nq(d))break;d==="["&&i++,d==="]"&&i--,s+=d}if(i!==0)return t.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:t.source[0].number,critical:!0}),t;let u=s;if(s[0]==="["&&s[s.length-1]==="]"){l=!0,s=s.slice(1,-1);let d=s.split("=");if(s=d[0].trim(),d[1]!==void 0&&(c=d.slice(1).join("=").trim()),s==="")return t.problems.push({code:"spec:name:empty-name",message:"empty name",line:t.source[0].number,critical:!0}),t;if(c==="")return t.problems.push({code:"spec:name:empty-default",message:"empty default value",line:t.source[0].number,critical:!0}),t;if(!Z4(c)&&/=(?!>)/.test(c))return t.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:t.source[0].number,critical:!0}),t}return t.optional=l,t.name=s,r.name=u,c!==void 0&&(t.default=c),[r.postName,r.description]=hn(n.slice(r.name.length)),t}}q(mq,"nameTokenizer");function yq(e="compact",t=Dr){let r=by(e);return n=>(n.description=r(n.source,t),n)}q(yq,"descriptionTokenizer");function by(e){return e==="compact"?bq:e==="preserve"?gq:e}q(by,"getJoiner");function bq(e,t=Dr){return e.map(({tokens:{description:r}})=>r.trim()).filter(r=>r!=="").join(" ")}q(bq,"compactJoiner");var e6=q((e,{tokens:t},r)=>t.type===""?e:r,"lineNo"),t6=q(({tokens:e})=>(e.delimiter===""?e.start:e.postDelimiter.slice(1))+e.description,"getDescription");function gq(e,t=Dr){if(e.length===0)return"";e[0].tokens.description===""&&e[0].tokens.delimiter===t.start&&(e=e.slice(1));let r=e[e.length-1];return r!==void 0&&r.tokens.description===""&&r.tokens.end.endsWith(t.end)&&(e=e.slice(0,-1)),e=e.slice(e.reduce(e6,0)),e.map(t6).join(`
|
|
1052
|
+
`)}q(gq,"preserveJoiner");function vq({startLine:e=0,fence:t="```",spacing:r="compact",markers:n=Dr,tokenizers:o=[pq(),fq(r),mq(),yq(r)]}={}){if(e<0||e%1>0)throw new Error("Invalid startLine");let i=cq({startLine:e,markers:n}),s=lq({fence:t}),l=dq({tokenizers:o}),c=by(r);return function(u){let d=[];for(let p of aq(u)){let h=i(p);if(h===null)continue;let f=s(h),m=f.slice(1).map(l);d.push({description:c(f[0],n),tags:m,source:h,problems:m.reduce((b,g)=>b.concat(g.problems),[])})}return d}}q(vq,"getParser");function wq(e){return e.start+e.delimiter+e.postDelimiter+e.tag+e.postTag+e.type+e.postType+e.name+e.postName+e.description+e.end+e.lineEnd}q(wq,"join");function r6(){return e=>e.source.map(({tokens:t})=>wq(t)).join(`
|
|
1053
|
+
`)}q(r6,"getStringifier");function Eq(e,t={}){return vq(t)(e)}q(Eq,"parse");var gy=V4(J4());function xq(e){return e!=null&&e.includes("@")}q(xq,"containsJsDoc");function Tq(e){let t=`/**
|
|
1054
|
+
`+(e??"").split(`
|
|
1055
|
+
`).map(n=>` * ${n}`).join(`
|
|
1056
|
+
`)+`
|
|
1057
|
+
*/`,r=Eq(t,{spacing:"preserve"});if(!r||r.length===0)throw new Error("Cannot parse JSDoc tags.");return r[0]}q(Tq,"parse");var n6={tags:["param","arg","argument","returns","ignore","deprecated"]},o6=q((e,t=n6)=>{if(!xq(e))return{includesJsDoc:!1,ignore:!1};let r=Tq(e),n=Sq(r,t.tags);return n.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description.trim(),extractedTags:n}},"parseJsDoc");function Sq(e,t){let r={params:null,deprecated:null,returns:null,ignore:!1};for(let n of e.tags)if(!(t!==void 0&&!t.includes(n.tag)))if(n.tag==="ignore"){r.ignore=!0;break}else switch(n.tag){case"param":case"arg":case"argument":{let o=Pq(n);o!=null&&(r.params==null&&(r.params=[]),r.params.push(o));break}case"deprecated":{let o=Oq(n);o!=null&&(r.deprecated=o);break}case"returns":{let o=_q(n);o!=null&&(r.returns=o);break}}return r}q(Sq,"extractJsDocTags");function Cq(e){return e.replace(/[\.-]$/,"")}q(Cq,"normaliseParamName");function Pq(e){if(!e.name||e.name==="-")return null;let t=Ey(e.type);return{name:e.name,type:t,description:wy(e.description),getPrettyName:q(()=>Cq(e.name),"getPrettyName"),getTypeName:q(()=>t?xy(t):null,"getTypeName")}}q(Pq,"extractParam");function Oq(e){return e.name?vy(e.name,e.description):null}q(Oq,"extractDeprecated");function vy(e,t){let r=e===""?t:`${e} ${t}`;return wy(r)}q(vy,"joinNameAndDescription");function wy(e){let t=e.replace(/^- /g,"").trim();return t===""?null:t}q(wy,"normaliseDescription");function _q(e){let t=Ey(e.type);return t?{type:t,description:vy(e.name,e.description),getTypeName:q(()=>xy(t),"getTypeName")}:null}q(_q,"extractReturns");var Gr=(0,gy.stringifyRules)(),a6=Gr.JsdocTypeObject;Gr.JsdocTypeAny=()=>"any";Gr.JsdocTypeObject=(e,t)=>`(${a6(e,t)})`;Gr.JsdocTypeOptional=(e,t)=>t(e.element);Gr.JsdocTypeNullable=(e,t)=>t(e.element);Gr.JsdocTypeNotNullable=(e,t)=>t(e.element);Gr.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");function Ey(e){try{return(0,gy.parse)(e,"typescript")}catch{return null}}q(Ey,"extractType");function xy(e){return(0,gy.transform)(Gr,e)}q(xy,"extractTypeName");function Ty(e){return e.length>90}q(Ty,"isTooLongForTypeSummary");function Aq(e){return e.length>50}q(Aq,"isTooLongForDefaultValueSummary");function Ke(e,t){return e===t?{summary:e}:{summary:e,detail:t}}q(Ke,"createSummaryValue");function i6(e,t){if(e!=null){let{value:r}=e;if(!Pu(r))return Aq(r)?Ke(t?.name,r):Ke(r)}return null}q(i6,"createDefaultValue");function Sy({name:e,value:t,elements:r,raw:n}){return t??(r!=null?r.map(Sy).join(" | "):n??e)}q(Sy,"generateUnionElement");function Rq({name:e,raw:t,elements:r}){return r!=null?Ke(r.map(Sy).join(" | ")):t!=null?Ke(t.replace(/^\|\s*/,"")):Ke(e)}q(Rq,"generateUnion");function qq({type:e,raw:t}){return t!=null?Ke(t):Ke(e)}q(qq,"generateFuncSignature");function Nq({type:e,raw:t}){return t!=null?Ty(t)?Ke(e,t):Ke(t):Ke(e)}q(Nq,"generateObjectSignature");function Iq(e){let{type:t}=e;return t==="object"?Nq(e):qq(e)}q(Iq,"generateSignature");function jq({name:e,raw:t}){return t!=null?Ty(t)?Ke(e,t):Ke(t):Ke(e)}q(jq,"generateDefault");function s6(e){if(e==null)return null;switch(e.name){case"union":return Rq(e);case"signature":return Iq(e);default:return jq(e)}}q(s6,"createType");function l6({defaultValue:e}){if(e!=null){let{value:t}=e;if(!Pu(t))return Ke(t)}return null}q(l6,"createDefaultValue");function u6({tsType:e,required:t}){if(e==null)return null;let r=e.name;return t||(r=r.replace(" | undefined","")),Ke(["Array","Record","signature"].includes(e.name)?e.raw:r)}q(u6,"createType");function kq(e){return e!=null?Ke(e.name):null}q(kq,"createType");function Mq(e){let{computed:t,func:r}=e;return typeof t>"u"&&typeof r>"u"}q(Mq,"isReactDocgenTypescript");function $q(e){return e?e.name==="string"?!0:e.name==="enum"?Array.isArray(e.value)&&e.value.every(({value:t})=>typeof t=="string"&&t[0]==='"'&&t[t.length-1]==='"'):!1:!1}q($q,"isStringValued");function Lq(e,t){if(e!=null){let{value:r}=e;if(!Pu(r))return Mq(e)&&$q(t)?Ke(JSON.stringify(r)):Ke(r)}return null}q(Lq,"createDefaultValue");function c6(e,t,r){let{description:n,required:o,defaultValue:i}=r;return{name:e,type:kq(t),required:o,description:n,defaultValue:Lq(i,t)}}q(c6,"createBasicPropDef");function d6(e,t){if(t?.includesJsDoc){let{description:r,extractedTags:n}=t;r!=null&&(e.description=t.description);let o={...n,params:n?.params?.map(i=>({name:i.getPrettyName(),description:i.description}))};Object.values(o).filter(Boolean).length>0&&(e.jsDocTags=o)}return e}q(d6,"applyJsDocResult");function p6(e,t,r,n){let o=o6(t.description);return o.includesJsDoc&&o.ignore?null:{propDef:n(e,t,o),jsDocTags:o.extractedTags,docgenInfo:t,typeSystem:r}}q(p6,"extractProp");function f6(e){return e!=null?rq(e):""}q(f6,"extractComponentDescription");var Dq=q((...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,i)=>(Object.entries(i).forEach(([s,l])=>{let c=o[s];Array.isArray(l)||typeof c>"u"?o[s]=l:zi(l)&&zi(c)?t[s]=!0:typeof l<"u"&&(o[s]=l)}),o),{});return Object.keys(t).forEach(o=>{let i=r.filter(Boolean).map(s=>s[o]).filter(s=>typeof s<"u");i.every(s=>zi(s))?n[o]=Dq(...i):n[o]=i[i.length-1]}),n},"combineParameters"),h6=q(e=>{let{component:t,argTypes:r,parameters:{docs:n={}}}=e,{extractArgTypes:o}=n;if(!o||!t)return r;let i=o(t);return i?Dq(i,r):r},"enhanceArgTypes"),m6="storybook/docs",hG=`${m6}/snippet-rendered`,Js=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(Js||{}),y6="Invariant failed";function b6(e,t){if(!e)throw new Error(y6)}const{logger:Fq}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function Bq(e,t){let r;switch(t){case"attributes":case"properties":r={name:e.type?.text||e.type};break;case"slots":r={name:"string"};break;default:r={name:"void"};break}return{name:e.name,required:!1,description:e.description,type:r,table:{category:t,type:{summary:e.type?.text||e.type},defaultValue:{summary:e.default!==void 0?e.default:e.defaultValue}}}}function g6(e){let t=e.name.replace(/(-|_|:|\.|\s)+(.)?/g,(r,n,o)=>o?o.toUpperCase():"").replace(/^([A-Z])/,r=>r.toLowerCase());return t=`on${t.charAt(0).toUpperCase()+t.substr(1)}`,[{name:t,action:{name:e.name},table:{disable:!0}},Bq(e,"events")]}function tn(e,t){return e&&e.filter(r=>r&&r.name).reduce((r,n)=>{if(n.kind==="method")return r;switch(t){case"events":g6(n).forEach(o=>{b6(o.name),r[o.name]=o});break;default:r[n.name]=Bq(n,t);break}return r},{})}var v6=(e,t)=>{if(!Y1(e)||!X1(t))return null;let r=t.tags.find(n=>n.name.toUpperCase()===e.toUpperCase());return r||Fq.warn(`Component not found in custom-elements.json: ${e}`),r},w6=(e,t)=>{if(!Y1(e)||!X1(t))return null;let r;return t?.modules?.forEach(n=>{n?.declarations?.forEach(o=>{o.tagName===e&&(r=o)})}),r||Fq.warn(`Component not found in custom-elements.json: ${e}`),r},Uq=(e,t)=>t?.version==="experimental"?v6(e,t):w6(e,t),E6=(e,t)=>{let r=Uq(e,t);return r&&{...tn(r.members??[],"properties"),...tn(r.properties??[],"properties"),...tn(r.attributes??[],"attributes"),...tn(r.events??[],"events"),...tn(r.slots??[],"slots"),...tn(r.cssProperties??[],"css custom properties"),...tn(r.cssParts??[],"css shadow parts")}},x6=e=>{let t=Q1();return E6(e,t)},T6=e=>{let t=Uq(e,Q1());return t&&t.description},S6={docs:{extractArgTypes:x6,extractComponentDescription:T6}},C6=[h6];const P6=Object.freeze(Object.defineProperty({__proto__:null,argTypesEnhancers:C6,parameters:S6},Symbol.toStringTag,{value:"Module"})),{useEffect:O6,emitTransformCode:_6}=__STORYBOOK_MODULE_PREVIEW_API__;var A6=/<!--\?lit\$[0-9]+\$-->|<!--\??-->/g;function R6(e){let t=e?.parameters.docs?.source,r=e?.parameters.__isArgsStory;return t?.type===Js.DYNAMIC?!1:!r||t?.code||t?.type===Js.CODE}function q6(e,t){let r=e(),n=t?.parameters.docs?.source?.excludeDecorators?t.originalStoryFn(t.args,t):r,o;if(O6(()=>{o&&_6(o,t)}),!R6(t)){let i=window.document.createElement("div");n instanceof DocumentFragment?Hs(n.cloneNode(!0),i):Hs(n,i),o=i.innerHTML.replace(A6,"")}return r}var N6=[q6],I6={docs:{source:{type:Js.DYNAMIC,language:"html"},story:{inline:!0}}};const j6=Object.freeze(Object.defineProperty({__proto__:null,decorators:N6,parameters:I6},Symbol.toStringTag,{value:"Module"}));var k6=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,t)=>{let[r,n]=t;return n.excludeFromDocsStories&&(e[r]=!0),e},{}),M6={docs:{renderer:async()=>{let{DocsRenderer:e}=await Sr(()=>import("./DocsRenderer-PQXLIZUC-CFSKbvBi.js").then(t=>t.D),__vite__mapDeps([8,1]),import.meta.url);return new e},stories:{filter:e=>(e.tags||[]).filter(t=>k6[t]).length===0&&!e.parameters.docs?.disable}}};const $6=Object.freeze(Object.defineProperty({__proto__:null,parameters:M6},Symbol.toStringTag,{value:"Module"})),L6={parameters:{controls:{matchers:{color:/(background|color)$/i,date:/Date$/i}}},globalTypes:{theme:{description:"Light/Dark mode for components",toolbar:{title:"Theme",icon:"circlehollow",items:[{value:"light",title:"Light mode",icon:"sun"},{value:"dark",title:"Dark mode",icon:"moon"}],dynamicTitle:!0}}},initialGlobals:{theme:"light"},decorators:[(e,t)=>{const r=t.globals.theme||"light";return g4`<div class="${r==="dark"?"is-dark":""}">${e()}</div>`}]},D6=Object.freeze(Object.defineProperty({__proto__:null,default:L6},Symbol.toStringTag,{value:"Module"}));uy();const{composeConfigs:F6,PreviewWeb:B6}=__STORYBOOK_MODULE_PREVIEW_API__,U6=(e=[])=>{const t=[e[0]??I4,e[1]??P6,e[2]??j6,e[3]??$6,e[4]??D6];return F6(t)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new B6(t4,U6);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{Js as T,_4 as d,hG as h,g4 as x};
|