@prozorro/prozorro-ui 0.0.7-beta → 0.0.8
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/dist/app/assets/{Color-FRDS63T2-D7DceWd3.js → Color-FRDS63T2-C5bQ2Iuy.js} +1 -1
- package/dist/app/assets/{Colors.stories-oSXYJENR.js → Colors.stories-B6EPF0nC.js} +1 -1
- package/dist/app/assets/{DocsRenderer-LL677BLK-CSnojeph.js → DocsRenderer-LL677BLK-6m2x0Slf.js} +200 -200
- package/dist/app/assets/{Grid.stories-Bs3kySs1.js → Grid.stories-DCpTvq1h.js} +1 -1
- package/dist/app/assets/PzArrayClamp-K4ObvvOV.css +1 -0
- package/dist/app/assets/PzArrayClamp.stories-DYjTyM_w.js +148 -0
- package/dist/app/assets/PzBreadcrumb-Dcs3weae.css +1 -0
- package/dist/app/assets/PzBreadcrumb.stories-b4V3GARM.js +120 -0
- package/dist/app/assets/PzBtn-Brjbpw1b.js +1 -0
- package/dist/app/assets/PzBtn-CzokGN-c.css +1 -0
- package/dist/app/assets/PzBtn-L_RpjK-U.css +1 -0
- package/dist/app/assets/PzBtn.stories-Bu5qPhtp.js +84 -0
- package/dist/app/assets/PzDomHandler-CRMzxUFs.css +1 -0
- package/dist/app/assets/PzDomHandler.stories-DqW3Mfem.js +170 -0
- package/dist/app/assets/PzDropdown-BnwR1ooa.css +1 -0
- package/dist/app/assets/PzDropdown.stories-CPjzWBvH.js +59 -0
- package/dist/app/assets/{PzGrid.stories-DHYDe1eo.js → PzGrid.stories-C1Y3nz5O.js} +2 -2
- package/dist/app/assets/PzHint-BSVVXtVq.css +1 -0
- package/dist/app/assets/PzHint-BwKGDkUu.js +1 -0
- package/dist/app/assets/PzHint-kEBemRXE.css +1 -0
- package/dist/app/assets/PzHint.stories-B6l3Ocr8.js +75 -0
- package/dist/app/assets/PzIcon-Don8TXO3.js +1 -0
- package/dist/app/assets/PzIcon.stories-DE4e2be_.js +63 -0
- package/dist/app/assets/{PzImage.stories-3xf5vq8I.js → PzImage.stories-DoGwhzIO.js} +2 -2
- package/dist/app/assets/PzInfoHint-CtK7BZOs.css +1 -0
- package/dist/app/assets/PzInfoHint.stories-CWDV-k9d.js +38 -0
- package/dist/app/assets/PzLink-BkfNrG4H.js +1 -0
- package/dist/app/assets/PzLink-CLsit3uW.css +1 -0
- package/dist/app/assets/PzLink-pGUmpCAv.css +1 -0
- package/dist/app/assets/PzLink.stories-D1DLILnY.js +99 -0
- package/dist/app/assets/PzModal-X71wpoOT.css +1 -0
- package/dist/app/assets/PzModal.stories-GJIUTcxR.js +168 -0
- package/dist/app/assets/PzNav-DRAXqlz0.css +1 -0
- package/dist/app/assets/PzNav.stories-vqArvp6y.js +197 -0
- package/dist/app/assets/PzPagination-DJVeW9lu.css +1 -0
- package/dist/app/assets/PzPagination.stories-D-kZtPzf.js +83 -0
- package/dist/app/assets/PzRouterLink.stories-CRcNmODE.js +54 -0
- package/dist/app/assets/PzScrollTo-GAEPiQFO.css +1 -0
- package/dist/app/assets/PzScrollTo.stories-C0m8oG4O.js +81 -0
- package/dist/app/assets/PzStatus-DlvKjmG7.css +1 -0
- package/dist/app/assets/PzStatus.stories-u5QAVco_.js +95 -0
- package/dist/app/assets/PzTabs-Cko9ewqz.css +1 -0
- package/dist/app/assets/PzTabs.stories-CEoVVF4Z.js +594 -0
- package/dist/app/assets/PzTag-rwtmuhv6.css +1 -0
- package/dist/app/assets/PzTag.stories-B2WKURWu.js +70 -0
- package/dist/app/assets/{PzText-B1cefxtz.js → PzText-LfRr6NF7.js} +1 -1
- package/dist/app/assets/{PzText.stories-BFfwzgRO.js → PzText.stories-CJhqWJtS.js} +6 -6
- package/dist/app/assets/PzTextClamp-BnSHv0R0.css +1 -0
- package/dist/app/assets/PzTextClamp.stories-B-2pPs9u.js +149 -0
- package/dist/app/assets/PzValidatorXSS-B6WBrYex.css +1 -0
- package/dist/app/assets/PzValidatorXSS.stories-DqA_mla7.js +163 -0
- package/dist/app/assets/{Spacing.stories-DhCjLNK2.js → Spacing.stories-55zVSJ08.js} +1 -1
- package/dist/app/assets/{Typography.stories-CSj6NWZS.js → Typography.stories-DEgPTqUk.js} +1 -1
- package/dist/app/assets/{WithTooltip-65CFNBJE-CXtzAlgs.js → WithTooltip-65CFNBJE-D3ytr0gE.js} +1 -1
- package/dist/app/assets/floating-vue-ydzBnlRK.js +1 -0
- package/dist/app/assets/formatter-EIJCOSYU-Ca5EM9Pa.js +1 -0
- package/dist/app/assets/iframe-B97zFSkg.css +1 -0
- package/dist/app/assets/iframe-XnrfGA2g.js +1115 -0
- package/dist/app/assets/{syntaxhighlighter-OH4MV7E3-C5g7sJvt.js → syntaxhighlighter-OH4MV7E3-meijqKce.js} +1 -1
- package/dist/app/iframe.html +2 -2
- package/dist/app/index.json +1 -1
- package/dist/app/project.json +1 -1
- package/dist/components/PzArrayClamp/PzArrayClamp.vue.d.ts +36 -0
- package/dist/components/PzArrayClamp/index.d.ts +2 -0
- package/dist/components/PzArrayClamp/types.d.ts +8 -0
- package/dist/components/PzBreadcrumb/PzBreadcrumb.vue.d.ts +35 -0
- package/dist/components/PzBreadcrumb/constants.d.ts +4 -0
- package/dist/components/PzBreadcrumb/index.d.ts +2 -0
- package/dist/components/PzBreadcrumb/types.d.ts +8 -0
- package/dist/components/PzBtn/PzBtn.vue.d.ts +24 -0
- package/dist/components/PzBtn/configs.d.ts +3 -0
- package/dist/components/PzBtn/index.d.ts +2 -0
- package/dist/components/PzBtn/types.d.ts +7 -0
- package/dist/components/PzDropdown/PzDropdown.vue.d.ts +18 -0
- package/dist/components/PzDropdown/index.d.ts +2 -0
- package/dist/components/PzDropdown/types.d.ts +1 -0
- package/dist/components/PzGrid/PzGrid.vue.d.ts +1 -1
- package/dist/components/PzGrid/PzGridItem.vue.d.ts +1 -1
- package/dist/components/PzGrid/configs.d.ts +2 -2
- package/dist/components/PzHint/PzHint.vue.d.ts +24 -0
- package/dist/components/PzHint/index.d.ts +2 -0
- package/dist/components/PzHint/types.d.ts +8 -0
- package/dist/components/PzIcon/PzIcon.vue.d.ts +1 -1
- package/dist/components/PzImage/configs.d.ts +1 -1
- package/dist/components/PzInfoHint/PzInfoHint.vue.d.ts +7 -0
- package/dist/components/PzInfoHint/index.d.ts +2 -0
- package/dist/components/PzInfoHint/types.d.ts +12 -0
- package/dist/components/PzLink/PzLink.vue.d.ts +29 -0
- package/dist/components/PzLink/configs.d.ts +2 -0
- package/dist/components/PzLink/constants.d.ts +1 -0
- package/dist/components/PzLink/index.d.ts +2 -0
- package/dist/components/PzLink/types.d.ts +13 -0
- package/dist/components/PzModal/PzModal.vue.d.ts +36 -0
- package/dist/components/PzModal/configs.d.ts +1 -0
- package/dist/components/PzModal/constants.d.ts +10 -0
- package/dist/components/PzModal/index.d.ts +2 -0
- package/dist/components/PzModal/types.d.ts +11 -0
- package/dist/components/PzNav/PzNav.vue.d.ts +23 -0
- package/dist/components/PzNav/index.d.ts +2 -0
- package/dist/components/PzNav/types.d.ts +9 -0
- package/dist/components/PzPagination/PzPagination.vue.d.ts +9 -0
- package/dist/components/PzPagination/index.d.ts +2 -0
- package/dist/components/PzPagination/types.d.ts +6 -0
- package/dist/components/PzRouterLink/PzRouterLink.vue.d.ts +30 -0
- package/dist/components/PzRouterLink/index.d.ts +2 -0
- package/dist/components/PzRouterLink/types.d.ts +7 -0
- package/dist/components/PzStatus/PzStatus.vue.d.ts +21 -0
- package/dist/components/PzStatus/configs.d.ts +2 -0
- package/dist/components/PzStatus/constants.d.ts +2 -0
- package/dist/components/PzStatus/index.d.ts +2 -0
- package/dist/components/PzStatus/types.d.ts +6 -0
- package/dist/components/PzTabs/PzTab.vue.d.ts +22 -0
- package/dist/components/PzTabs/PzTabs.vue.d.ts +21 -0
- package/dist/components/PzTabs/configs.d.ts +1 -0
- package/dist/components/PzTabs/constants.d.ts +5 -0
- package/dist/components/PzTabs/index.d.ts +3 -0
- package/dist/components/PzTabs/types.d.ts +14 -0
- package/dist/components/PzTag/PzTag.vue.d.ts +23 -0
- package/dist/components/PzTag/configs.d.ts +2 -0
- package/dist/components/PzTag/index.d.ts +2 -0
- package/dist/components/PzTag/types.d.ts +6 -0
- package/dist/components/PzText/configs.d.ts +1 -1
- package/dist/components/PzTextClamp/PzTextClamp.vue.d.ts +36 -0
- package/dist/components/PzTextClamp/constants.d.ts +2 -0
- package/dist/components/PzTextClamp/index.d.ts +2 -0
- package/dist/components/PzTextClamp/types.d.ts +10 -0
- package/dist/floating-vue.d.ts +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/package.json +8 -2
- package/dist/prozorro-ui.cjs +1 -1
- package/dist/prozorro-ui.js +3379 -75
- package/dist/style.css +1 -1
- package/dist/utils/PzDomHandler/PzDomHandler.d.ts +19 -0
- package/dist/utils/PzDomHandler/constants.d.ts +1 -0
- package/dist/utils/PzDomHandler/index.d.ts +2 -0
- package/dist/utils/PzDomHandler/types.d.ts +4 -0
- package/dist/utils/PzScrollTo/PzScrollTo.d.ts +9 -0
- package/dist/utils/PzScrollTo/configs.d.ts +1 -0
- package/dist/utils/PzScrollTo/constants.d.ts +3 -0
- package/dist/utils/PzScrollTo/index.d.ts +2 -0
- package/dist/utils/PzScrollTo/types.d.ts +8 -0
- package/dist/utils/PzValidatorXSS/PzValidatorXSS.d.ts +20 -0
- package/dist/utils/PzValidatorXSS/index.d.ts +2 -0
- package/dist/utils/PzValidatorXSS/types.d.ts +1 -0
- package/package.json +8 -2
- package/src/styles/abstract/_variables.scss +8 -2
- package/src/styles/main.scss +1 -0
- package/src/styles/vendors/_floating-vue.scss +59 -0
- package/dist/app/assets/PzIcon.stories-DnSfvny_.js +0 -63
- package/dist/app/assets/formatter-EIJCOSYU-BiTxXm4h.js +0 -1
- package/dist/app/assets/iframe-AHEBgGuT.js +0 -1107
- package/dist/app/assets/iframe-C7ls-B1-.css +0 -1
|
@@ -0,0 +1,1115 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Typography.stories-DEgPTqUk.js","./PzText-LfRr6NF7.js","./PzText-DsC8c6AJ.css","./preload-helper-C1FmrZbK.js","./Typography-Bgal0fkk.css","./Colors.stories-B6EPF0nC.js","./Colors-fhEnNkJK.css","./Spacing.stories-55zVSJ08.js","./Spacing-B5TnfKCB.css","./Grid.stories-DCpTvq1h.js","./Grid-B7NVrFKF.css","./PzBtn.stories-Bu5qPhtp.js","./PzIcon-Don8TXO3.js","./PzBtn-Brjbpw1b.js","./PzBtn-L_RpjK-U.css","./PzBtn-CzokGN-c.css","./PzLink.stories-D1DLILnY.js","./PzLink-BkfNrG4H.js","./PzLink-CLsit3uW.css","./PzLink-pGUmpCAv.css","./PzRouterLink.stories-CRcNmODE.js","./PzIcon.stories-DE4e2be_.js","./PzIcon-CyZkl7-f.css","./PzImage.stories-DoGwhzIO.js","./PzImage-BNrbMHP9.css","./PzTag.stories-B2WKURWu.js","./PzTag-rwtmuhv6.css","./PzStatus.stories-u5QAVco_.js","./PzStatus-DlvKjmG7.css","./PzGrid.stories-C1Y3nz5O.js","./PzGrid-DES6s5R0.css","./PzTabs.stories-CEoVVF4Z.js","./PzTabs-Cko9ewqz.css","./PzBreadcrumb.stories-b4V3GARM.js","./PzBreadcrumb-Dcs3weae.css","./PzNav.stories-vqArvp6y.js","./PzNav-DRAXqlz0.css","./PzPagination.stories-D-kZtPzf.js","./PzPagination-DJVeW9lu.css","./PzDropdown.stories-CPjzWBvH.js","./floating-vue-ydzBnlRK.js","./PzDropdown-BnwR1ooa.css","./PzHint.stories-B6l3Ocr8.js","./PzHint-BwKGDkUu.js","./PzHint-kEBemRXE.css","./PzHint-BSVVXtVq.css","./PzInfoHint.stories-CWDV-k9d.js","./PzInfoHint-CtK7BZOs.css","./PzModal.stories-GJIUTcxR.js","./PzModal-X71wpoOT.css","./PzText.stories-CJhqWJtS.js","./PzTextClamp.stories-B-2pPs9u.js","./PzTextClamp-BnSHv0R0.css","./PzArrayClamp.stories-DYjTyM_w.js","./PzArrayClamp-K4ObvvOV.css","./PzDomHandler.stories-DqW3Mfem.js","./PzDomHandler-CRMzxUFs.css","./PzScrollTo.stories-C0m8oG4O.js","./PzScrollTo-GAEPiQFO.css","./PzValidatorXSS.stories-DqA_mla7.js","./PzValidatorXSS-B6WBrYex.css","./DocsRenderer-LL677BLK-6m2x0Slf.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var o1=Object.defineProperty;var i1=(e,t,r)=>t in e?o1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var hr=(e,t,r)=>i1(e,typeof t!="symbol"?t+"":t,r);import{_ as tt}from"./preload-helper-C1FmrZbK.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 pf={},s1=Object.create,Zh=Object.defineProperty,a1=Object.getOwnPropertyDescriptor,K_=Object.getOwnPropertyNames,l1=Object.getPrototypeOf,u1=Object.prototype.hasOwnProperty,ru=(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')}),J=(e,t)=>function(){return t||(0,e[K_(e)[0]])((t={exports:{}}).exports,t),t.exports},wr=(e,t)=>{for(var r in t)Zh(e,r,{get:t[r],enumerable:!0})},c1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of K_(t))!u1.call(e,o)&&o!==r&&Zh(e,o,{get:()=>t[o],enumerable:!(n=a1(t,o))||n.enumerable});return e},Ot=(e,t,r)=>(r=e!=null?s1(l1(e)):{},c1(t||!e||!e.__esModule?Zh(r,"default",{value:e,enumerable:!0}):r,e)),d1=J({"../../node_modules/@ngard/tiny-isequal/index.js"(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 function s(a,l,u){var d,p,f,h=t.call(a),y=t.call(l);if(a===l)return!0;if(a==null||l==null)return!1;if(u.indexOf(a)>-1&&u.indexOf(l)>-1)return!0;if(u.push(a,l),h!=y||(d=n(a),p=n(l),d.length!=p.length||d.some(function(g){return!s(a[g],l[g],u)})))return!1;switch(h.slice(8,-1)){case"Symbol":return a.valueOf()==l.valueOf();case"Date":case"Number":return+a==+l||+a!=+a&&+l!=+l;case"RegExp":case"Function":case"String":case"Boolean":return""+a==""+l;case"Set":case"Map":d=a.entries(),p=l.entries();do if(!s((f=d.next()).value,p.next().value,u))return!1;while(!f.done);return!0;case"ArrayBuffer":a=new Uint8Array(a),l=new Uint8Array(l);case"DataView":a=new Uint8Array(a.buffer),l=new Uint8Array(l.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(a.length!=l.length)return!1;for(f=0;f<a.length;f++)if((f in a||f in l)&&(f in a!=f in l||!s(a[f],l[f],u)))return!1;return!0;case"Object":return s(r(a),r(l),u);default:return!1}}(o,i,[])}}()}}),p1=J({"../../node_modules/min-indent/index.js"(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}}}),f1=J({"../../node_modules/strip-indent/index.js"(e,t){var r=p1();t.exports=n=>{let o=r(n);if(o===0)return n;let i=new RegExp(`^[ \\t]{${o}}`,"gm");return n.replace(i,"")}}}),h1=J({"../../node_modules/indent-string/index.js"(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))}}}),Y_=J({"../../node_modules/redent/index.js"(e,t){var r=f1(),n=h1();t.exports=(o,i=0,s)=>n(r(o),i,s)}}),m1=J({"../../node_modules/aria-query/lib/util/iteratorProxy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(){var r=this,n=0,o={"@@iterator":function(){return o},next:function(){if(n<r.length){var i=r[n];return n=n+1,{done:!1,value:i}}else return{done:!0}}};return o}e.default=t}}),Nl=J({"../../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=r(m1());function r(i){return i&&i.__esModule?i:{default:i}}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)}function o(i,s){return typeof Symbol=="function"&&n(Symbol.iterator)==="symbol"&&Object.defineProperty(i,Symbol.iterator,{value:t.default.bind(s)}),i}}}),y1=J({"../../node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Nl());function r(p){return p&&p.__esModule?p:{default:p}}function n(p,f){return l(p)||a(p,f)||i(p,f)||o()}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.`)}function i(p,f){if(p){if(typeof p=="string")return s(p,f);var h={}.toString.call(p).slice(8,-1);return h==="Object"&&p.constructor&&(h=p.constructor.name),h==="Map"||h==="Set"?Array.from(p):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?s(p,f):void 0}}function s(p,f){(f==null||f>p.length)&&(f=p.length);for(var h=0,y=Array(f);h<f;h++)y[h]=p[h];return y}function a(p,f){var h=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(h!=null){var y,g,v,b,E=[],T=!0,A=!1;try{if(v=(h=h.call(p)).next,f===0){if(Object(h)!==h)return;T=!1}else for(;!(T=(y=v.call(h)).done)&&(E.push(y.value),E.length!==f);T=!0);}catch(P){A=!0,g=P}finally{try{if(!T&&h.return!=null&&(b=h.return(),Object(b)!==b))return}finally{if(A)throw g}}return E}}function l(p){if(Array.isArray(p))return p}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:function(){return u},forEach:function(p){for(var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,h=0,y=u;h<y.length;h++){var g=n(y[h],2),v=g[0],b=g[1];p.call(f,b,v,u)}},get:function(p){var f=u.filter(function(h){return h[0]===p})[0];return f&&f[1]},has:function(p){return!!d.get(p)},keys:function(){return u.map(function(p){var f=n(p,1),h=f[0];return h})},values:function(){return u.map(function(p){var f=n(p,2),h=f[1];return h})}};e.default=(0,t.default)(d,d.entries())}}),g1=J({"../../node_modules/aria-query/lib/domMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Nl());function r(p){return p&&p.__esModule?p:{default:p}}function n(p,f){return l(p)||a(p,f)||i(p,f)||o()}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.`)}function i(p,f){if(p){if(typeof p=="string")return s(p,f);var h={}.toString.call(p).slice(8,-1);return h==="Object"&&p.constructor&&(h=p.constructor.name),h==="Map"||h==="Set"?Array.from(p):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?s(p,f):void 0}}function s(p,f){(f==null||f>p.length)&&(f=p.length);for(var h=0,y=Array(f);h<f;h++)y[h]=p[h];return y}function a(p,f){var h=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(h!=null){var y,g,v,b,E=[],T=!0,A=!1;try{if(v=(h=h.call(p)).next,f===0){if(Object(h)!==h)return;T=!1}else for(;!(T=(y=v.call(h)).done)&&(E.push(y.value),E.length!==f);T=!0);}catch(P){A=!0,g=P}finally{try{if(!T&&h.return!=null&&(b=h.return(),Object(b)!==b))return}finally{if(A)throw g}}return E}}function l(p){if(Array.isArray(p))return p}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:function(){return u},forEach:function(p){for(var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,h=0,y=u;h<y.length;h++){var g=n(y[h],2),v=g[0],b=g[1];p.call(f,b,v,u)}},get:function(p){var f=u.filter(function(h){return h[0]===p})[0];return f&&f[1]},has:function(p){return!!d.get(p)},keys:function(){return u.map(function(p){var f=n(p,1),h=f[0];return h})},values:function(){return u.map(function(p){var f=n(p,2),h=f[1];return h})}};e.default=(0,t.default)(d,d.entries())}}),b1=J({"../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js"(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}}),v1=J({"../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js"(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}}),E1=J({"../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js"(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}}),T1=J({"../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js"(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}}),_1=J({"../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js"(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}}),w1=J({"../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js"(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}}),S1=J({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js"(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}}),R1=J({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js"(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}}),A1=J({"../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js"(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}}),O1=J({"../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js"(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}}),P1=J({"../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js"(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}}),C1=J({"../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js"(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}}),N1=J({"../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=h(b1()),r=h(v1()),n=h(E1()),o=h(T1()),i=h(_1()),s=h(w1()),a=h(S1()),l=h(R1()),u=h(A1()),d=h(O1()),p=h(P1()),f=h(C1());function h(g){return g&&g.__esModule?g:{default:g}}var y=[["command",t.default],["composite",r.default],["input",n.default],["landmark",o.default],["range",i.default],["roletype",s.default],["section",a.default],["sectionhead",l.default],["select",u.default],["structure",d.default],["widget",p.default],["window",f.default]];e.default=y}}),x1=J({"../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js"(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}}),I1=J({"../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js"(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}}),M1=J({"../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js"(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}}),q1=J({"../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js"(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}}),j1=J({"../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js"(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}}),k1=J({"../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js"(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}}),D1=J({"../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js"(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}}),L1=J({"../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js"(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}}),F1=J({"../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js"(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}}),B1=J({"../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js"(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}}),$1=J({"../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js"(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}}),V1=J({"../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js"(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}}),U1=J({"../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js"(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}}),J1=J({"../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js"(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}}),H1=J({"../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js"(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}}),G1=J({"../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js"(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}}),W1=J({"../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js"(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}}),z1=J({"../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js"(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}}),K1=J({"../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js"(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}}),Y1=J({"../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js"(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}}),X1=J({"../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js"(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}}),Q1=J({"../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js"(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}}),Z1=J({"../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js"(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}}),eM=J({"../../node_modules/aria-query/lib/etc/roles/literal/formRole.js"(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}}),tM=J({"../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js"(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}}),rM=J({"../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js"(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}}),nM=J({"../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js"(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}}),oM=J({"../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js"(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}}),iM=J({"../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js"(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}}),sM=J({"../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js"(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}}),aM=J({"../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js"(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}}),lM=J({"../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js"(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}}),uM=J({"../../node_modules/aria-query/lib/etc/roles/literal/listRole.js"(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}}),cM=J({"../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js"(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}}),dM=J({"../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js"(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}}),pM=J({"../../node_modules/aria-query/lib/etc/roles/literal/logRole.js"(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}}),fM=J({"../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js"(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}}),hM=J({"../../node_modules/aria-query/lib/etc/roles/literal/markRole.js"(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}}),mM=J({"../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js"(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}}),yM=J({"../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js"(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}}),gM=J({"../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js"(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}}),bM=J({"../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js"(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}}),vM=J({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js"(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}}),EM=J({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js"(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}}),TM=J({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js"(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}}),_M=J({"../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js"(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}}),wM=J({"../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js"(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}}),SM=J({"../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js"(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}}),RM=J({"../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js"(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}}),AM=J({"../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js"(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}}),OM=J({"../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js"(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}}),PM=J({"../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js"(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}}),CM=J({"../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js"(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}}),NM=J({"../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js"(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}}),xM=J({"../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js"(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}}),IM=J({"../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js"(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}}),MM=J({"../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js"(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}}),qM=J({"../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js"(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}}),jM=J({"../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js"(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}}),kM=J({"../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js"(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}}),DM=J({"../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js"(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}}),LM=J({"../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js"(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}}),FM=J({"../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js"(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}}),BM=J({"../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js"(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}}),$M=J({"../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js"(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}}),VM=J({"../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js"(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}}),UM=J({"../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js"(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}}),JM=J({"../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js"(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}}),HM=J({"../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js"(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}}),GM=J({"../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js"(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}}),WM=J({"../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js"(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}}),zM=J({"../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js"(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}}),KM=J({"../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js"(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}}),YM=J({"../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js"(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}}),XM=J({"../../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(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}}),QM=J({"../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js"(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}}),ZM=J({"../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js"(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}}),eq=J({"../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js"(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}}),tq=J({"../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js"(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}}),rq=J({"../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js"(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}}),nq=J({"../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js"(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}}),oq=J({"../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js"(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}}),iq=J({"../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js"(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}}),sq=J({"../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=he(x1()),r=he(I1()),n=he(M1()),o=he(q1()),i=he(j1()),s=he(k1()),a=he(D1()),l=he(L1()),u=he(F1()),d=he(B1()),p=he($1()),f=he(V1()),h=he(U1()),y=he(J1()),g=he(H1()),v=he(G1()),b=he(W1()),E=he(z1()),T=he(K1()),A=he(Y1()),P=he(X1()),R=he(Q1()),S=he(Z1()),w=he(eM()),O=he(tM()),q=he(rM()),M=he(nM()),k=he(oM()),x=he(iM()),C=he(sM()),j=he(aM()),F=he(lM()),V=he(uM()),G=he(cM()),se=he(dM()),me=he(pM()),be=he(fM()),Q=he(hM()),ee=he(mM()),ve=he(yM()),pe=he(gM()),ie=he(bM()),Y=he(vM()),oe=he(EM()),le=he(TM()),$=he(_M()),te=he(wM()),ce=he(SM()),I=he(RM()),D=he(AM()),U=he(OM()),X=he(PM()),K=he(CM()),re=he(NM()),fe=he(xM()),ue=he(IM()),ae=he(MM()),ne=he(qM()),_e=he(jM()),ye=he(kM()),Te=he(DM()),we=he(LM()),qe=he(FM()),Ve=he(BM()),He=he($M()),rt=he(VM()),it=he(UM()),$t=he(JM()),Ct=he(HM()),Kr=he(GM()),ho=he(WM()),Nt=he(zM()),Kt=he(KM()),mo=he(YM()),yo=he(XM()),Qs=he(QM()),Yo=he(ZM()),Zs=he(eq()),Sr=he(tq()),Se=he(rq()),Xo=he(nq()),Yr=he(oq()),xt=he(iq());function he(go){return go&&go.__esModule?go:{default:go}}var ea=[["alert",t.default],["alertdialog",r.default],["application",n.default],["article",o.default],["banner",i.default],["blockquote",s.default],["button",a.default],["caption",l.default],["cell",u.default],["checkbox",d.default],["code",p.default],["columnheader",f.default],["combobox",h.default],["complementary",y.default],["contentinfo",g.default],["definition",v.default],["deletion",b.default],["dialog",E.default],["directory",T.default],["document",A.default],["emphasis",P.default],["feed",R.default],["figure",S.default],["form",w.default],["generic",O.default],["grid",q.default],["gridcell",M.default],["group",k.default],["heading",x.default],["img",C.default],["insertion",j.default],["link",F.default],["list",V.default],["listbox",G.default],["listitem",se.default],["log",me.default],["main",be.default],["mark",Q.default],["marquee",ee.default],["math",ve.default],["menu",pe.default],["menubar",ie.default],["menuitem",Y.default],["menuitemcheckbox",oe.default],["menuitemradio",le.default],["meter",$.default],["navigation",te.default],["none",ce.default],["note",I.default],["option",D.default],["paragraph",U.default],["presentation",X.default],["progressbar",K.default],["radio",re.default],["radiogroup",fe.default],["region",ue.default],["row",ae.default],["rowgroup",ne.default],["rowheader",_e.default],["scrollbar",ye.default],["search",Te.default],["searchbox",we.default],["separator",qe.default],["slider",Ve.default],["spinbutton",He.default],["status",rt.default],["strong",it.default],["subscript",$t.default],["superscript",Ct.default],["switch",Kr.default],["tab",ho.default],["table",Nt.default],["tablist",Kt.default],["tabpanel",mo.default],["term",yo.default],["textbox",Qs.default],["time",Yo.default],["timer",Zs.default],["toolbar",Sr.default],["tooltip",Se.default],["tree",Xo.default],["treegrid",Yr.default],["treeitem",xt.default]];e.default=ea}}),aq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js"(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}}),lq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js"(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}}),uq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js"(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}}),cq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js"(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}}),dq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js"(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}}),pq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js"(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}}),fq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js"(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}}),hq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js"(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}}),mq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(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}}),yq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js"(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}}),gq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js"(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}}),bq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js"(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}}),vq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js"(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}}),Eq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js"(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}}),Tq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js"(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}}),_q=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js"(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}}),wq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js"(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}}),Sq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js"(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}}),Rq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js"(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}}),Aq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js"(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}}),Oq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js"(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}}),Pq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js"(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}}),Cq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js"(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}}),Nq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js"(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}}),xq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js"(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}}),Iq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js"(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}}),Mq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js"(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}}),qq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js"(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}}),jq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js"(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}}),kq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js"(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}}),Dq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js"(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}}),Lq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js"(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}}),Fq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js"(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}}),Bq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js"(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}}),$q=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js"(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}}),Vq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js"(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}}),Uq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js"(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}}),Jq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js"(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}}),Hq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js"(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}}),Gq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js"(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}}),Wq=J({"../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js"(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}}),zq=J({"../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=ie(aq()),r=ie(lq()),n=ie(uq()),o=ie(cq()),i=ie(dq()),s=ie(pq()),a=ie(fq()),l=ie(hq()),u=ie(mq()),d=ie(yq()),p=ie(gq()),f=ie(bq()),h=ie(vq()),y=ie(Eq()),g=ie(Tq()),v=ie(_q()),b=ie(wq()),E=ie(Sq()),T=ie(Rq()),A=ie(Aq()),P=ie(Oq()),R=ie(Pq()),S=ie(Cq()),w=ie(Nq()),O=ie(xq()),q=ie(Iq()),M=ie(Mq()),k=ie(qq()),x=ie(jq()),C=ie(kq()),j=ie(Dq()),F=ie(Lq()),V=ie(Fq()),G=ie(Bq()),se=ie($q()),me=ie(Vq()),be=ie(Uq()),Q=ie(Jq()),ee=ie(Hq()),ve=ie(Gq()),pe=ie(Wq());function ie(oe){return oe&&oe.__esModule?oe:{default:oe}}var Y=[["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",a.default],["doc-biblioref",l.default],["doc-chapter",u.default],["doc-colophon",d.default],["doc-conclusion",p.default],["doc-cover",f.default],["doc-credit",h.default],["doc-credits",y.default],["doc-dedication",g.default],["doc-endnote",v.default],["doc-endnotes",b.default],["doc-epigraph",E.default],["doc-epilogue",T.default],["doc-errata",A.default],["doc-example",P.default],["doc-footnote",R.default],["doc-foreword",S.default],["doc-glossary",w.default],["doc-glossref",O.default],["doc-index",q.default],["doc-introduction",M.default],["doc-noteref",k.default],["doc-notice",x.default],["doc-pagebreak",C.default],["doc-pagefooter",j.default],["doc-pageheader",F.default],["doc-pagelist",V.default],["doc-part",G.default],["doc-preface",se.default],["doc-prologue",me.default],["doc-pullquote",be.default],["doc-qna",Q.default],["doc-subtitle",ee.default],["doc-tip",ve.default],["doc-toc",pe.default]];e.default=Y}}),Kq=J({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js"(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}}),Yq=J({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js"(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}}),Xq=J({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js"(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}}),Qq=J({"../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(Kq()),r=o(Yq()),n=o(Xq());function o(s){return s&&s.__esModule?s:{default:s}}var i=[["graphics-document",t.default],["graphics-object",r.default],["graphics-symbol",n.default]];e.default=i}}),em=J({"../../node_modules/aria-query/lib/rolesMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=s(N1()),r=s(sq()),n=s(zq()),o=s(Qq()),i=s(Nl());function s(v){return v&&v.__esModule?v:{default:v}}function a(v,b){var E=typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(!E){if(Array.isArray(v)||(E=d(v))||b){E&&(v=E);var T=0,A=function(){};return{s:A,n:function(){return T>=v.length?{done:!0}:{done:!1,value:v[T++]}},e:function(w){throw w},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 P,R=!0,S=!1;return{s:function(){E=E.call(v)},n:function(){var w=E.next();return R=w.done,w},e:function(w){S=!0,P=w},f:function(){try{R||E.return==null||E.return()}finally{if(S)throw P}}}}function l(v,b){return h(v)||f(v,b)||d(v,b)||u()}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.`)}function d(v,b){if(v){if(typeof v=="string")return p(v,b);var E={}.toString.call(v).slice(8,-1);return E==="Object"&&v.constructor&&(E=v.constructor.name),E==="Map"||E==="Set"?Array.from(v):E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E)?p(v,b):void 0}}function p(v,b){(b==null||b>v.length)&&(b=v.length);for(var E=0,T=Array(b);E<b;E++)T[E]=v[E];return T}function f(v,b){var E=v==null?null:typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(E!=null){var T,A,P,R,S=[],w=!0,O=!1;try{if(P=(E=E.call(v)).next,b===0){if(Object(E)!==E)return;w=!1}else for(;!(w=(T=P.call(E)).done)&&(S.push(T.value),S.length!==b);w=!0);}catch(q){O=!0,A=q}finally{try{if(!w&&E.return!=null&&(R=E.return(),Object(R)!==R))return}finally{if(O)throw A}}return S}}function h(v){if(Array.isArray(v))return v}var y=[].concat(t.default,r.default,n.default,o.default);y.forEach(function(v){var b=l(v,2),E=b[1],T=a(E.superClass),A;try{for(T.s();!(A=T.n()).done;){var P=A.value,R=a(P),S;try{var w=function(){var O=S.value,q=y.filter(function(j){var F=l(j,1),V=F[0];return V===O})[0];if(q)for(var M=q[1],k=0,x=Object.keys(M.props);k<x.length;k++){var C=x[k];Object.prototype.hasOwnProperty.call(E.props,C)||(E.props[C]=M.props[C])}};for(R.s();!(S=R.n()).done;)w()}catch(O){R.e(O)}finally{R.f()}}}catch(O){T.e(O)}finally{T.f()}});var g={entries:function(){return y},forEach:function(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,E=a(y),T;try{for(E.s();!(T=E.n()).done;){var A=l(T.value,2),P=A[0],R=A[1];v.call(b,R,P,y)}}catch(S){E.e(S)}finally{E.f()}},get:function(v){var b=y.filter(function(E){return E[0]===v})[0];return b&&b[1]},has:function(v){return!!g.get(v)},keys:function(){return y.map(function(v){var b=l(v,1),E=b[0];return E})},values:function(){return y.map(function(v){var b=l(v,2),E=b[1];return E})}};e.default=(0,i.default)(g,g.entries())}}),Zq=J({"../../node_modules/aria-query/lib/elementRoleMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Nl()),r=n(em());function n(R){return R&&R.__esModule?R:{default:R}}function o(R,S){return u(R)||l(R,S)||s(R,S)||i()}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.`)}function s(R,S){if(R){if(typeof R=="string")return a(R,S);var w={}.toString.call(R).slice(8,-1);return w==="Object"&&R.constructor&&(w=R.constructor.name),w==="Map"||w==="Set"?Array.from(R):w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?a(R,S):void 0}}function a(R,S){(S==null||S>R.length)&&(S=R.length);for(var w=0,O=Array(S);w<S;w++)O[w]=R[w];return O}function l(R,S){var w=R==null?null:typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(w!=null){var O,q,M,k,x=[],C=!0,j=!1;try{if(M=(w=w.call(R)).next,S===0){if(Object(w)!==w)return;C=!1}else for(;!(C=(O=M.call(w)).done)&&(x.push(O.value),x.length!==S);C=!0);}catch(F){j=!0,q=F}finally{try{if(!C&&w.return!=null&&(k=w.return(),Object(k)!==k))return}finally{if(j)throw q}}return x}}function u(R){if(Array.isArray(R))return R}var d=[],p=r.default.keys();for(b=0;b<p.length;b++)if(f=p[b],h=r.default.get(f),h)for(y=[].concat(h.baseConcepts,h.relatedConcepts),g=function(){var R=y[v];if(R.module==="HTML"){var S=R.concept;if(S){var w=d.filter(function(k){return T(k[0],S)})[0],O;w?O=w[1]:O=[];for(var q=!0,M=0;M<O.length;M++)if(O[M]===f){q=!1;break}q&&O.push(f),w||d.push([S,O])}}},v=0;v<y.length;v++)g();var f,h,y,g,v,b,E={entries:function(){return d},forEach:function(R){for(var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,w=0,O=d;w<O.length;w++){var q=o(O[w],2),M=q[0],k=q[1];R.call(S,k,M,d)}},get:function(R){var S=d.filter(function(w){return R.name===w[0].name&&P(R.attributes,w[0].attributes)})[0];return S&&S[1]},has:function(R){return!!E.get(R)},keys:function(){return d.map(function(R){var S=o(R,1),w=S[0];return w})},values:function(){return d.map(function(R){var S=o(R,2),w=S[1];return w})}};function T(R,S){return R.name===S.name&&A(R.constraints,S.constraints)&&P(R.attributes,S.attributes)}function A(R,S){if(R===void 0&&S!==void 0||R!==void 0&&S===void 0)return!1;if(R!==void 0&&S!==void 0){if(R.length!==S.length)return!1;for(var w=0;w<R.length;w++)if(R[w]!==S[w])return!1}return!0}function P(R,S){if(R===void 0&&S!==void 0||R!==void 0&&S===void 0)return!1;if(R!==void 0&&S!==void 0){if(R.length!==S.length)return!1;for(var w=0;w<R.length;w++){if(R[w].name!==S[w].name||R[w].value!==S[w].value||R[w].constraints===void 0&&S[w].constraints!==void 0||R[w].constraints!==void 0&&S[w].constraints===void 0)return!1;if(R[w].constraints!==void 0&&S[w].constraints!==void 0){if(R[w].constraints.length!==S[w].constraints.length)return!1;for(var O=0;O<R[w].constraints.length;O++)if(R[w].constraints[O]!==S[w].constraints[O])return!1}}}return!0}e.default=(0,t.default)(E,E.entries())}}),ej=J({"../../node_modules/aria-query/lib/roleElementMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Nl()),r=n(em());function n(P){return P&&P.__esModule?P:{default:P}}function o(P,R){return u(P)||l(P,R)||s(P,R)||i()}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.`)}function s(P,R){if(P){if(typeof P=="string")return a(P,R);var S={}.toString.call(P).slice(8,-1);return S==="Object"&&P.constructor&&(S=P.constructor.name),S==="Map"||S==="Set"?Array.from(P):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?a(P,R):void 0}}function a(P,R){(R==null||R>P.length)&&(R=P.length);for(var S=0,w=Array(R);S<R;S++)w[S]=P[S];return w}function l(P,R){var S=P==null?null:typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(S!=null){var w,O,q,M,k=[],x=!0,C=!1;try{if(q=(S=S.call(P)).next,R===0){if(Object(S)!==S)return;x=!1}else for(;!(x=(w=q.call(S)).done)&&(k.push(w.value),k.length!==R);x=!0);}catch(j){C=!0,O=j}finally{try{if(!x&&S.return!=null&&(M=S.return(),Object(M)!==M))return}finally{if(C)throw O}}return k}}function u(P){if(Array.isArray(P))return P}var d=[],p=r.default.keys();for(T=0;T<p.length;T++)if(f=p[T],h=r.default.get(f),y=[],h){for(g=[].concat(h.baseConcepts,h.relatedConcepts),E=0;E<g.length;E++)v=g[E],v.module==="HTML"&&(b=v.concept,b!=null&&y.push(b));y.length>0&&d.push([f,y])}var f,h,y,g,v,b,E,T,A={entries:function(){return d},forEach:function(P){for(var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,S=0,w=d;S<w.length;S++){var O=o(w[S],2),q=O[0],M=O[1];P.call(R,M,q,d)}},get:function(P){var R=d.filter(function(S){return S[0]===P})[0];return R&&R[1]},has:function(P){return!!A.get(P)},keys:function(){return d.map(function(P){var R=o(P,1),S=R[0];return S})},values:function(){return d.map(function(P){var R=o(P,2),S=R[1];return S})}};e.default=(0,t.default)(A,A.entries())}}),tm=J({"../../node_modules/aria-query/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var t=s(y1()),r=s(g1()),n=s(em()),o=s(Zq()),i=s(ej());function s(a){return a&&a.__esModule?a:{default:a}}e.aria=t.default,e.dom=r.default,e.roles=n.default,e.elementRoles=o.default,e.roleElements=i.default}}),X_=J({"../../node_modules/picocolors/picocolors.browser.js"(e,t){var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};t.exports=n(),t.exports.createColors=n}}),Q_=J({"../../node_modules/css.escape/css.escape.js"(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=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var i=String(o),s=i.length,a=-1,l,u="",d=i.charCodeAt(0);++a<s;){if(l=i.charCodeAt(a),l==0){u+="�";continue}if(l>=1&&l<=31||l==127||a==0&&l>=48&&l<=57||a==1&&l>=48&&l<=57&&d==45){u+="\\"+l.toString(16)+" ";continue}if(a==0&&s==1&&l==45){u+="\\"+i.charAt(a);continue}if(l>=128||l==45||l==95||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122){u+=i.charAt(a);continue}u+="\\"+i.charAt(a)}return u};return r.CSS||(r.CSS={}),r.CSS.escape=n,n})}}),Z_=J({"../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js"(e,t){var r=(i=0)=>s=>`\x1B[${38+i};5;${s}m`,n=(i=0)=>(s,a,l)=>`\x1B[${38+i};2;${s};${a};${l}m`;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[a,l]of Object.entries(s)){for(let[u,d]of Object.entries(l))s[u]={open:`\x1B[${d[0]}m`,close:`\x1B[${d[1]}m`},l[u]=s[u],i.set(d[0],d[1]);Object.defineProperty(s,a,{value:l,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,u)=>a===l&&l===u?a<8?16:a>248?231:Math.round((a-8)/247*24)+232:16+36*Math.round(a/255*5)+6*Math.round(l/255*5)+Math.round(u/255*5),enumerable:!1},hexToRgb:{value:a=>{let l=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(a.toString(16));if(!l)return[0,0,0];let{colorString:u}=l.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]},enumerable:!1},hexToAnsi256:{value:a=>s.rgbToAnsi256(...s.hexToRgb(a)),enumerable:!1}}),s}Object.defineProperty(t,"exports",{enumerable:!0,get:o})}}),Yc=J({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printIteratorEntries=r,e.printIteratorValues=n,e.printListItems=o,e.printObjectProperties=i;var t=(s,a)=>{let l=Object.keys(s).sort(a);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(s).forEach(u=>{Object.getOwnPropertyDescriptor(s,u).enumerable&&l.push(u)}),l};function r(s,a,l,u,d,p,f=": "){let h="",y=s.next();if(!y.done){h+=a.spacingOuter;let g=l+a.indent;for(;!y.done;){let v=p(y.value[0],a,g,u,d),b=p(y.value[1],a,g,u,d);h+=g+v+f+b,y=s.next(),y.done?a.min||(h+=","):h+=","+a.spacingInner}h+=a.spacingOuter+l}return h}function n(s,a,l,u,d,p){let f="",h=s.next();if(!h.done){f+=a.spacingOuter;let y=l+a.indent;for(;!h.done;)f+=y+p(h.value,a,y,u,d),h=s.next(),h.done?a.min||(f+=","):f+=","+a.spacingInner;f+=a.spacingOuter+l}return f}function o(s,a,l,u,d,p){let f="";if(s.length){f+=a.spacingOuter;let h=l+a.indent;for(let y=0;y<s.length;y++)f+=h,y in s&&(f+=p(s[y],a,h,u,d)),y<s.length-1?f+=","+a.spacingInner:a.min||(f+=",");f+=a.spacingOuter+l}return f}function i(s,a,l,u,d,p){let f="",h=t(s,a.compareKeys);if(h.length){f+=a.spacingOuter;let y=l+a.indent;for(let g=0;g<h.length;g++){let v=h[g],b=p(v,a,y,u,d),E=p(s[v],a,y,u,d);f+=y+b+": "+E,g<h.length-1?f+=","+a.spacingInner:a.min||(f+=",")}f+=a.spacingOuter+l}return f}}}),tj=J({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Yc(),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=(d,p,f,h,y,g)=>{let v=d.toString();return v==="ArrayContaining"||v==="ArrayNotContaining"?++h>p.maxDepth?"["+v+"]":v+i+"["+(0,t.printListItems)(d.sample,p,f,h,y,g)+"]":v==="ObjectContaining"||v==="ObjectNotContaining"?++h>p.maxDepth?"["+v+"]":v+i+"{"+(0,t.printObjectProperties)(d.sample,p,f,h,y,g)+"}":v==="StringMatching"||v==="StringNotMatching"||v==="StringContaining"||v==="StringNotContaining"?v+i+g(d.sample,p,f,h,y):d.toAsymmetricMatcher()};e.serialize=s;var a=d=>d&&d.$$typeof===o;e.test=a;var l={serialize:s,test:a},u=l;e.default=u}}),rj=J({"../../node_modules/@testing-library/dom/node_modules/ansi-regex/index.js"(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")}}}),nj=J({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=n(rj()),r=n(Z_());function n(u){return u&&u.__esModule?u:{default:u}}var o=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""}}),i=u=>typeof u=="string"&&!!u.match((0,t.default)());e.test=i;var s=(u,d,p,f,h,y)=>y(o(u),d,p,f,h);e.serialize=s;var a={serialize:s,test:i},l=a;e.default=l}}),oj=J({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Yc(),r=" ",n=["DOMStringMap","NamedNodeMap"],o=/^(HTML\w*Collection|NodeList)$/,i=p=>n.indexOf(p)!==-1||o.test(p),s=p=>p&&p.constructor&&!!p.constructor.name&&i(p.constructor.name);e.test=s;var a=p=>p.constructor.name==="NamedNodeMap",l=(p,f,h,y,g,v)=>{let b=p.constructor.name;return++y>f.maxDepth?"["+b+"]":(f.min?"":b+r)+(n.indexOf(b)!==-1?"{"+(0,t.printObjectProperties)(a(p)?Array.from(p).reduce((E,T)=>(E[T.name]=T.value,E),{}):{...p},f,h,y,g,v)+"}":"["+(0,t.printListItems)(Array.from(p),f,h,y,g,v)+"]")};e.serialize=l;var u={serialize:l,test:s},d=u;e.default=d}}),ij=J({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return r.replace(/</g,"<").replace(/>/g,">")}}}),rm=J({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printText=e.printProps=e.printElementAsLeaf=e.printElement=e.printComment=e.printChildren=void 0;var t=r(ij());function r(u){return u&&u.__esModule?u:{default:u}}var n=(u,d,p,f,h,y,g)=>{let v=f+p.indent,b=p.colors;return u.map(E=>{let T=d[E],A=g(T,p,v,h,y);return typeof T!="string"&&(A.indexOf(`
|
|
9
|
+
`)!==-1&&(A=p.spacingOuter+v+A+p.spacingOuter+f),A="{"+A+"}"),p.spacingInner+f+b.prop.open+E+b.prop.close+"="+b.value.open+A+b.value.close}).join("")};e.printProps=n;var o=(u,d,p,f,h,y)=>u.map(g=>d.spacingOuter+p+(typeof g=="string"?i(g,d):y(g,d,p,f,h))).join("");e.printChildren=o;var i=(u,d)=>{let p=d.colors.content;return p.open+(0,t.default)(u)+p.close};e.printText=i;var s=(u,d)=>{let p=d.colors.comment;return p.open+"<!--"+(0,t.default)(u)+"-->"+p.close};e.printComment=s;var a=(u,d,p,f,h)=>{let y=f.colors.tag;return y.open+"<"+u+(d&&y.close+d+f.spacingOuter+h+y.open)+(p?">"+y.close+p+f.spacingOuter+h+y.open+"</"+u:(d&&!f.min?"":" ")+"/")+">"+y.close};e.printElement=a;var l=(u,d)=>{let p=d.colors.tag;return p.open+"<"+u+p.close+" …"+p.open+" />"+p.close};e.printElementAsLeaf=l}}),sj=J({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=rm(),r=1,n=3,o=8,i=11,s=/^((HTML|SVG)\w*)?Element$/,a=v=>{try{return typeof v.hasAttribute=="function"&&v.hasAttribute("is")}catch{return!1}},l=v=>{let b=v.constructor.name,{nodeType:E,tagName:T}=v,A=typeof T=="string"&&T.includes("-")||a(v);return E===r&&(s.test(b)||A)||E===n&&b==="Text"||E===o&&b==="Comment"||E===i&&b==="DocumentFragment"},u=v=>{var b;return(v==null||(b=v.constructor)===null||b===void 0?void 0:b.name)&&l(v)};e.test=u;function d(v){return v.nodeType===n}function p(v){return v.nodeType===o}function f(v){return v.nodeType===i}var h=(v,b,E,T,A,P)=>{if(d(v))return(0,t.printText)(v.data,b);if(p(v))return(0,t.printComment)(v.data,b);let R=f(v)?"DocumentFragment":v.tagName.toLowerCase();return++T>b.maxDepth?(0,t.printElementAsLeaf)(R,b):(0,t.printElement)(R,(0,t.printProps)(f(v)?[]:Array.from(v.attributes).map(S=>S.name).sort(),f(v)?{}:Array.from(v.attributes).reduce((S,w)=>(S[w.name]=w.value,S),{}),b,E+b.indent,T,A,P),(0,t.printChildren)(Array.prototype.slice.call(v.childNodes||v.children),b,E+b.indent,T,A,P),b,E)};e.serialize=h;var y={serialize:h,test:u},g=y;e.default=g}}),aj=J({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Yc(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",o="@@__IMMUTABLE_KEYED__@@",i="@@__IMMUTABLE_MAP__@@",s="@@__IMMUTABLE_ORDERED__@@",a="@@__IMMUTABLE_RECORD__@@",l="@@__IMMUTABLE_SEQ__@@",u="@@__IMMUTABLE_SET__@@",d="@@__IMMUTABLE_STACK__@@",p=w=>"Immutable."+w,f=w=>"["+w+"]",h=" ",y="…",g=(w,O,q,M,k,x,C)=>++M>O.maxDepth?f(p(C)):p(C)+h+"{"+(0,t.printIteratorEntries)(w.entries(),O,q,M,k,x)+"}";function v(w){let O=0;return{next(){if(O<w._keys.length){let q=w._keys[O++];return{done:!1,value:[q,w.get(q)]}}return{done:!0,value:void 0}}}}var b=(w,O,q,M,k,x)=>{let C=p(w._name||"Record");return++M>O.maxDepth?f(C):C+h+"{"+(0,t.printIteratorEntries)(v(w),O,q,M,k,x)+"}"},E=(w,O,q,M,k,x)=>{let C=p("Seq");return++M>O.maxDepth?f(C):w[o]?C+h+"{"+(w._iter||w._object?(0,t.printIteratorEntries)(w.entries(),O,q,M,k,x):y)+"}":C+h+"["+(w._iter||w._array||w._collection||w._iterable?(0,t.printIteratorValues)(w.values(),O,q,M,k,x):y)+"]"},T=(w,O,q,M,k,x,C)=>++M>O.maxDepth?f(p(C)):p(C)+h+"["+(0,t.printIteratorValues)(w.values(),O,q,M,k,x)+"]",A=(w,O,q,M,k,x)=>w[i]?g(w,O,q,M,k,x,w[s]?"OrderedMap":"Map"):w[n]?T(w,O,q,M,k,x,"List"):w[u]?T(w,O,q,M,k,x,w[s]?"OrderedSet":"Set"):w[d]?T(w,O,q,M,k,x,"Stack"):w[l]?E(w,O,q,M,k,x):b(w,O,q,M,k,x);e.serialize=A;var P=w=>w&&(w[r]===!0||w[a]===!0);e.test=P;var R={serialize:A,test:P},S=R;e.default=S}}),lj=J({"../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=60103,r=60106,n=60107,o=60108,i=60114,s=60109,a=60110,l=60112,u=60113,d=60120,p=60115,f=60116,h=60121,y=60122,g=60117,v=60129,b=60131;typeof Symbol=="function"&&Symbol.for&&(E=Symbol.for,t=E("react.element"),r=E("react.portal"),n=E("react.fragment"),o=E("react.strict_mode"),i=E("react.profiler"),s=E("react.provider"),a=E("react.context"),l=E("react.forward_ref"),u=E("react.suspense"),d=E("react.suspense_list"),p=E("react.memo"),f=E("react.lazy"),h=E("react.block"),y=E("react.server.block"),g=E("react.fundamental"),v=E("react.debug_trace_mode"),b=E("react.legacy_hidden"));var E;function T(C){if(typeof C=="object"&&C!==null){var j=C.$$typeof;switch(j){case t:switch(C=C.type,C){case n:case i:case o:case u:case d:return C;default:switch(C=C&&C.$$typeof,C){case a:case l:case f:case p:case s:return C;default:return j}}case r:return j}}}var A=s,P=t,R=l,S=n,w=f,O=p,q=r,M=i,k=o,x=u;e.ContextConsumer=a,e.ContextProvider=A,e.Element=P,e.ForwardRef=R,e.Fragment=S,e.Lazy=w,e.Memo=O,e.Portal=q,e.Profiler=M,e.StrictMode=k,e.Suspense=x,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(C){return T(C)===a},e.isContextProvider=function(C){return T(C)===s},e.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},e.isForwardRef=function(C){return T(C)===l},e.isFragment=function(C){return T(C)===n},e.isLazy=function(C){return T(C)===f},e.isMemo=function(C){return T(C)===p},e.isPortal=function(C){return T(C)===r},e.isProfiler=function(C){return T(C)===i},e.isStrictMode=function(C){return T(C)===o},e.isSuspense=function(C){return T(C)===u},e.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===i||C===v||C===o||C===u||C===d||C===b||typeof C=="object"&&C!==null&&(C.$$typeof===f||C.$$typeof===p||C.$$typeof===s||C.$$typeof===a||C.$$typeof===l||C.$$typeof===g||C.$$typeof===h||C[0]===y)},e.typeOf=T}}),uj=J({"../../node_modules/@testing-library/dom/node_modules/react-is/index.js"(e,t){t.exports=lj()}}),cj=J({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=o(uj()),r=rm();function n(f){if(typeof WeakMap!="function")return null;var h=new WeakMap,y=new WeakMap;return(n=function(g){return g?y:h})(f)}function o(f,h){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var y=n(h);if(y&&y.has(f))return y.get(f);var g={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in f)if(b!=="default"&&Object.prototype.hasOwnProperty.call(f,b)){var E=v?Object.getOwnPropertyDescriptor(f,b):null;E&&(E.get||E.set)?Object.defineProperty(g,b,E):g[b]=f[b]}return g.default=f,y&&y.set(f,g),g}var i=(f,h=[])=>(Array.isArray(f)?f.forEach(y=>{i(y,h)}):f!=null&&f!==!1&&h.push(f),h),s=f=>{let h=f.type;if(typeof h=="string")return h;if(typeof h=="function")return h.displayName||h.name||"Unknown";if(t.isFragment(f))return"React.Fragment";if(t.isSuspense(f))return"React.Suspense";if(typeof h=="object"&&h!==null){if(t.isContextProvider(f))return"Context.Provider";if(t.isContextConsumer(f))return"Context.Consumer";if(t.isForwardRef(f)){if(h.displayName)return h.displayName;let y=h.render.displayName||h.render.name||"";return y!==""?"ForwardRef("+y+")":"ForwardRef"}if(t.isMemo(f)){let y=h.displayName||h.type.displayName||h.type.name||"";return y!==""?"Memo("+y+")":"Memo"}}return"UNDEFINED"},a=f=>{let{props:h}=f;return Object.keys(h).filter(y=>y!=="children"&&h[y]!==void 0).sort()},l=(f,h,y,g,v,b)=>++g>h.maxDepth?(0,r.printElementAsLeaf)(s(f),h):(0,r.printElement)(s(f),(0,r.printProps)(a(f),f.props,h,y+h.indent,g,v,b),(0,r.printChildren)(i(f.props.children),h,y+h.indent,g,v,b),h,y);e.serialize=l;var u=f=>f!=null&&t.isElement(f);e.test=u;var d={serialize:l,test:u},p=d;e.default=p}}),dj=J({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=rm(),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=d=>{let{props:p}=d;return p?Object.keys(p).filter(f=>p[f]!==void 0).sort():[]},s=(d,p,f,h,y,g)=>++h>p.maxDepth?(0,t.printElementAsLeaf)(d.type,p):(0,t.printElement)(d.type,d.props?(0,t.printProps)(i(d),d.props,p,f+p.indent,h,y,g):"",d.children?(0,t.printChildren)(d.children,p,f+p.indent,h,y,g):"",p,f);e.serialize=s;var a=d=>d&&d.$$typeof===o;e.test=a;var l={serialize:s,test:a},u=l;e.default=u}}),pj=J({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DEFAULT_OPTIONS=void 0,e.format=Y,e.plugins=void 0;var t=d(Z_()),r=Yc(),n=d(tj()),o=d(nj()),i=d(oj()),s=d(sj()),a=d(aj()),l=d(cj()),u=d(dj());function d($){return $&&$.__esModule?$:{default:$}}var p=Object.prototype.toString,f=Date.prototype.toISOString,h=Error.prototype.toString,y=RegExp.prototype.toString,g=$=>typeof $.constructor=="function"&&$.constructor.name||"Object",v=$=>typeof window<"u"&&$===window,b=/^Symbol\((.*)\)(.*)$/,E=/\n/gi,T=class extends Error{constructor($,te){super($),this.stack=te,this.name=this.constructor.name}};function A($){return $==="[object Array]"||$==="[object ArrayBuffer]"||$==="[object DataView]"||$==="[object Float32Array]"||$==="[object Float64Array]"||$==="[object Int8Array]"||$==="[object Int16Array]"||$==="[object Int32Array]"||$==="[object Uint8Array]"||$==="[object Uint8ClampedArray]"||$==="[object Uint16Array]"||$==="[object Uint32Array]"}function P($){return Object.is($,-0)?"-0":String($)}function R($){return`${$}n`}function S($,te){return te?"[Function "+($.name||"anonymous")+"]":"[Function]"}function w($){return String($).replace(b,"Symbol($1)")}function O($){return"["+h.call($)+"]"}function q($,te,ce,I){if($===!0||$===!1)return""+$;if($===void 0)return"undefined";if($===null)return"null";let D=typeof $;if(D==="number")return P($);if(D==="bigint")return R($);if(D==="string")return I?'"'+$.replace(/"|\\/g,"\\$&")+'"':'"'+$+'"';if(D==="function")return S($,te);if(D==="symbol")return w($);let U=p.call($);return U==="[object WeakMap]"?"WeakMap {}":U==="[object WeakSet]"?"WeakSet {}":U==="[object Function]"||U==="[object GeneratorFunction]"?S($,te):U==="[object Symbol]"?w($):U==="[object Date]"?isNaN(+$)?"Date { NaN }":f.call($):U==="[object Error]"?O($):U==="[object RegExp]"?ce?y.call($).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):y.call($):$ instanceof Error?O($):null}function M($,te,ce,I,D,U){if(D.indexOf($)!==-1)return"[Circular]";D=D.slice(),D.push($);let X=++I>te.maxDepth,K=te.min;if(te.callToJSON&&!X&&$.toJSON&&typeof $.toJSON=="function"&&!U)return j($.toJSON(),te,ce,I,D,!0);let re=p.call($);return re==="[object Arguments]"?X?"[Arguments]":(K?"":"Arguments ")+"["+(0,r.printListItems)($,te,ce,I,D,j)+"]":A(re)?X?"["+$.constructor.name+"]":(K||!te.printBasicPrototype&&$.constructor.name==="Array"?"":$.constructor.name+" ")+"["+(0,r.printListItems)($,te,ce,I,D,j)+"]":re==="[object Map]"?X?"[Map]":"Map {"+(0,r.printIteratorEntries)($.entries(),te,ce,I,D,j," => ")+"}":re==="[object Set]"?X?"[Set]":"Set {"+(0,r.printIteratorValues)($.values(),te,ce,I,D,j)+"}":X||v($)?"["+g($)+"]":(K||!te.printBasicPrototype&&g($)==="Object"?"":g($)+" ")+"{"+(0,r.printObjectProperties)($,te,ce,I,D,j)+"}"}function k($){return $.serialize!=null}function x($,te,ce,I,D,U){let X;try{X=k($)?$.serialize(te,ce,I,D,U,j):$.print(te,K=>j(K,ce,I,D,U),K=>{let re=I+ce.indent;return re+K.replace(E,`
|
|
10
|
+
`+re)},{edgeSpacing:ce.spacingOuter,min:ce.min,spacing:ce.spacingInner},ce.colors)}catch(K){throw new T(K.message,K.stack)}if(typeof X!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof X}".`);return X}function C($,te){for(let ce=0;ce<$.length;ce++)try{if($[ce].test(te))return $[ce]}catch(I){throw new T(I.message,I.stack)}return null}function j($,te,ce,I,D,U){let X=C(te.plugins,$);if(X!==null)return x(X,$,te,ce,I,D);let K=q($,te.printFunctionName,te.escapeRegex,te.escapeString);return K!==null?K:M($,te,ce,I,D,U)}var F={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},V=Object.keys(F),G={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:F};e.DEFAULT_OPTIONS=G;function se($){if(Object.keys($).forEach(te=>{if(!G.hasOwnProperty(te))throw new Error(`pretty-format: Unknown option "${te}".`)}),$.min&&$.indent!==void 0&&$.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if($.theme!==void 0){if($.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof $.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof $.theme}".`)}}var me=$=>V.reduce((te,ce)=>{let I=$.theme&&$.theme[ce]!==void 0?$.theme[ce]:F[ce],D=I&&t.default[I];if(D&&typeof D.close=="string"&&typeof D.open=="string")te[ce]=D;else throw new Error(`pretty-format: Option "theme" has a key "${ce}" whose value "${I}" is undefined in ansi-styles.`);return te},Object.create(null)),be=()=>V.reduce(($,te)=>($[te]={close:"",open:""},$),Object.create(null)),Q=$=>$&&$.printFunctionName!==void 0?$.printFunctionName:G.printFunctionName,ee=$=>$&&$.escapeRegex!==void 0?$.escapeRegex:G.escapeRegex,ve=$=>$&&$.escapeString!==void 0?$.escapeString:G.escapeString,pe=$=>{var te;return{callToJSON:$&&$.callToJSON!==void 0?$.callToJSON:G.callToJSON,colors:$&&$.highlight?me($):be(),compareKeys:$&&typeof $.compareKeys=="function"?$.compareKeys:G.compareKeys,escapeRegex:ee($),escapeString:ve($),indent:$&&$.min?"":ie($&&$.indent!==void 0?$.indent:G.indent),maxDepth:$&&$.maxDepth!==void 0?$.maxDepth:G.maxDepth,min:$&&$.min!==void 0?$.min:G.min,plugins:$&&$.plugins!==void 0?$.plugins:G.plugins,printBasicPrototype:(te=$==null?void 0:$.printBasicPrototype)!==null&&te!==void 0?te:!0,printFunctionName:Q($),spacingInner:$&&$.min?" ":`
|
|
11
|
+
`,spacingOuter:$&&$.min?"":`
|
|
12
|
+
`}};function ie($){return new Array($+1).join(" ")}function Y($,te){if(te&&(se(te),te.plugins)){let I=C(te.plugins,$);if(I!==null)return x(I,$,pe(te),"",0,[])}let ce=q($,Q(te),ee(te),ve(te));return ce!==null?ce:M($,pe(te),"",0,[])}var oe={AsymmetricMatcher:n.default,ConvertAnsi:o.default,DOMCollection:i.default,DOMElement:s.default,Immutable:a.default,ReactElement:l.default,ReactTestComponent:u.default};e.plugins=oe;var le=Y;e.default=le}}),fj=J({"../../node_modules/lz-string/libs/lz-string.js"(e,t){var r=function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function a(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]}var l={compressToBase64:function(u){if(u==null)return"";var d=l._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+"="}},decompressFromBase64:function(u){return u==null?"":u==""?null:l._decompress(u.length,32,function(d){return a(o,u.charAt(d))})},compressToUTF16:function(u){return u==null?"":l._compress(u,15,function(d){return n(d+32)})+" "},decompressFromUTF16:function(u){return u==null?"":u==""?null:l._decompress(u.length,16384,function(d){return u.charCodeAt(d)-32})},compressToUint8Array:function(u){for(var d=l.compress(u),p=new Uint8Array(d.length*2),f=0,h=d.length;f<h;f++){var y=d.charCodeAt(f);p[f*2]=y>>>8,p[f*2+1]=y%256}return p},decompressFromUint8Array:function(u){if(u==null)return l.decompress(u);for(var d=new Array(u.length/2),p=0,f=d.length;p<f;p++)d[p]=u[p*2]*256+u[p*2+1];var h=[];return d.forEach(function(y){h.push(n(y))}),l.decompress(h.join(""))},compressToEncodedURIComponent:function(u){return u==null?"":l._compress(u,6,function(d){return i.charAt(d)})},decompressFromEncodedURIComponent:function(u){return u==null?"":u==""?null:(u=u.replace(/ /g,"+"),l._decompress(u.length,32,function(d){return a(i,u.charAt(d))}))},compress:function(u){return l._compress(u,16,function(d){return n(d)})},_compress:function(u,d,p){if(u==null)return"";var f,h,y={},g={},v="",b="",E="",T=2,A=3,P=2,R=[],S=0,w=0,O;for(O=0;O<u.length;O+=1)if(v=u.charAt(O),Object.prototype.hasOwnProperty.call(y,v)||(y[v]=A++,g[v]=!0),b=E+v,Object.prototype.hasOwnProperty.call(y,b))E=b;else{if(Object.prototype.hasOwnProperty.call(g,E)){if(E.charCodeAt(0)<256){for(f=0;f<P;f++)S=S<<1,w==d-1?(w=0,R.push(p(S)),S=0):w++;for(h=E.charCodeAt(0),f=0;f<8;f++)S=S<<1|h&1,w==d-1?(w=0,R.push(p(S)),S=0):w++,h=h>>1}else{for(h=1,f=0;f<P;f++)S=S<<1|h,w==d-1?(w=0,R.push(p(S)),S=0):w++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)S=S<<1|h&1,w==d-1?(w=0,R.push(p(S)),S=0):w++,h=h>>1}T--,T==0&&(T=Math.pow(2,P),P++),delete g[E]}else for(h=y[E],f=0;f<P;f++)S=S<<1|h&1,w==d-1?(w=0,R.push(p(S)),S=0):w++,h=h>>1;T--,T==0&&(T=Math.pow(2,P),P++),y[b]=A++,E=String(v)}if(E!==""){if(Object.prototype.hasOwnProperty.call(g,E)){if(E.charCodeAt(0)<256){for(f=0;f<P;f++)S=S<<1,w==d-1?(w=0,R.push(p(S)),S=0):w++;for(h=E.charCodeAt(0),f=0;f<8;f++)S=S<<1|h&1,w==d-1?(w=0,R.push(p(S)),S=0):w++,h=h>>1}else{for(h=1,f=0;f<P;f++)S=S<<1|h,w==d-1?(w=0,R.push(p(S)),S=0):w++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)S=S<<1|h&1,w==d-1?(w=0,R.push(p(S)),S=0):w++,h=h>>1}T--,T==0&&(T=Math.pow(2,P),P++),delete g[E]}else for(h=y[E],f=0;f<P;f++)S=S<<1|h&1,w==d-1?(w=0,R.push(p(S)),S=0):w++,h=h>>1;T--,T==0&&(T=Math.pow(2,P),P++)}for(h=2,f=0;f<P;f++)S=S<<1|h&1,w==d-1?(w=0,R.push(p(S)),S=0):w++,h=h>>1;for(;;)if(S=S<<1,w==d-1){R.push(p(S));break}else w++;return R.join("")},decompress:function(u){return u==null?"":u==""?null:l._decompress(u.length,32768,function(d){return u.charCodeAt(d)})},_decompress:function(u,d,p){var f=[],h=4,y=4,g=3,v="",b=[],E,T,A,P,R,S,w,O={val:p(0),position:d,index:1};for(E=0;E<3;E+=1)f[E]=E;for(A=0,R=Math.pow(2,2),S=1;S!=R;)P=O.val&O.position,O.position>>=1,O.position==0&&(O.position=d,O.val=p(O.index++)),A|=(P>0?1:0)*S,S<<=1;switch(A){case 0:for(A=0,R=Math.pow(2,8),S=1;S!=R;)P=O.val&O.position,O.position>>=1,O.position==0&&(O.position=d,O.val=p(O.index++)),A|=(P>0?1:0)*S,S<<=1;w=n(A);break;case 1:for(A=0,R=Math.pow(2,16),S=1;S!=R;)P=O.val&O.position,O.position>>=1,O.position==0&&(O.position=d,O.val=p(O.index++)),A|=(P>0?1:0)*S,S<<=1;w=n(A);break;case 2:return""}for(f[3]=w,T=w,b.push(w);;){if(O.index>u)return"";for(A=0,R=Math.pow(2,g),S=1;S!=R;)P=O.val&O.position,O.position>>=1,O.position==0&&(O.position=d,O.val=p(O.index++)),A|=(P>0?1:0)*S,S<<=1;switch(w=A){case 0:for(A=0,R=Math.pow(2,8),S=1;S!=R;)P=O.val&O.position,O.position>>=1,O.position==0&&(O.position=d,O.val=p(O.index++)),A|=(P>0?1:0)*S,S<<=1;f[y++]=n(A),w=y-1,h--;break;case 1:for(A=0,R=Math.pow(2,16),S=1;S!=R;)P=O.val&O.position,O.position>>=1,O.position==0&&(O.position=d,O.val=p(O.index++)),A|=(P>0?1:0)*S,S<<=1;f[y++]=n(A),w=y-1,h--;break;case 2:return b.join("")}if(h==0&&(h=Math.pow(2,g),g++),f[w])v=f[w];else if(w===y)v=T+T.charAt(0);else return null;b.push(v),f[y++]=T+v.charAt(0),h--,T=v,h==0&&(h=Math.pow(2,g),g++)}}};return l}();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})}}),ew=J({"../../node_modules/memoizerific/memoizerific.js"(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 function r(n,o,i){function s(u,d){if(!o[u]){if(!n[u]){var p=typeof ru=="function"&&ru;if(!d&&p)return p(u,!0);if(a)return a(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var h=o[u]={exports:{}};n[u][0].call(h.exports,function(y){var g=n[u][1][y];return s(g||y)},h,h.exports,r,n,o,i)}return o[u].exports}for(var a=typeof ru=="function"&&ru,l=0;l<i.length;l++)s(i[l]);return s}({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}i.prototype.get=function(s){var a;if(this.lastItem&&this.isEqual(this.lastItem.key,s))return this.lastItem.val;if(a=this.indexOf(s),a>=0)return this.lastItem=this.list[a],this.list[a].val},i.prototype.set=function(s,a){var l;return this.lastItem&&this.isEqual(this.lastItem.key,s)?(this.lastItem.val=a,this):(l=this.indexOf(s),l>=0?(this.lastItem=this.list[l],this.list[l].val=a,this):(this.lastItem={key:s,val:a},this.list.push(this.lastItem),this.size++,this))},i.prototype.delete=function(s){var a;if(this.lastItem&&this.isEqual(this.lastItem.key,s)&&(this.lastItem=void 0),a=this.indexOf(s),a>=0)return this.size--,this.list.splice(a,1)[0]},i.prototype.has=function(s){var a;return this.lastItem&&this.isEqual(this.lastItem.key,s)?!0:(a=this.indexOf(s),a>=0?(this.lastItem=this.list[a],!0):!1)},i.prototype.forEach=function(s,a){var l;for(l=0;l<this.size;l++)s.call(a||this,this.list[l].val,this.list[l].key,this)},i.prototype.indexOf=function(s){var a;for(a=0;a<this.size;a++)if(this.isEqual(this.list[a].key,s))return a;return-1},i.prototype.isEqual=function(s,a){return s===a||s!==s&&a!==a},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(f){var h=function(){var y=d,g,v,b=arguments.length-1,E=Array(b+1),T=!0,A;if((h.numArgs||h.numArgs===0)&&h.numArgs!==b+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(A=0;A<b;A++){if(E[A]={cacheItem:y,arg:arguments[A]},y.has(arguments[A])){y=y.get(arguments[A]);continue}T=!1,g=new i(!1),y.set(arguments[A],g),y=g}return T&&(y.has(arguments[b])?v=y.get(arguments[b]):T=!1),T||(v=f.apply(null,arguments),y.set(arguments[b],v)),u>0&&(E[b]={cacheItem:y,arg:arguments[b]},T?s(p,E):p.push(E),p.length>u&&a(p.shift())),h.wasMemoized=T,h.numArgs=b+1,v};return h.limit=u,h.wasMemoized=!1,h.cache=d,h.lru=p,h}};function s(u,d){var p=u.length,f=d.length,h,y,g;for(y=0;y<p;y++){for(h=!0,g=0;g<f;g++)if(!l(u[y][g].arg,d[g].arg)){h=!1;break}if(h)break}u.push(u.splice(y,1)[0])}function a(u){var d=u.length,p=u[d-1],f,h;for(p.cacheItem.delete(p.arg),h=d-2;h>=0&&(p=u[h],f=p.cacheItem.get(p.arg),!f||!f.size);h--)p.cacheItem.delete(p.arg)}function l(u,d){return u===d||u!==u&&d!==d}},{"map-or-similar":1}]},{},[3])(3)})}}),tw=J({"../../node_modules/picoquery/lib/string-util.js"(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="",a=0,l=0;e:for(;l<i;l++){let u=o.charCodeAt(l);for(;u<128;){if(r[u]!==1&&(a<l&&(s+=o.slice(a,l)),a=l+1,s+=t[u]),++l===i)break e;u=o.charCodeAt(l)}if(a<l&&(s+=o.slice(a,l)),u<2048){a=l+1,s+=t[192|u>>6]+t[128|u&63];continue}if(u<55296||u>=57344){a=l+1,s+=t[224|u>>12]+t[128|u>>6&63]+t[128|u&63];continue}if(++l,l>=i)throw new Error("URI malformed");let d=o.charCodeAt(l)&1023;a=l+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 a===0?o:a<i?s+o.slice(a):s}}}),nm=J({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=tw(),r=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()):""};e.defaultValueSerializer=r;var n=i=>i instanceof Date;e.defaultShouldSerializeObject=n;var o=i=>i;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}}),rw=J({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=d;var t=nm(),r=tw();function n(p){return p==="__proto__"||p==="constructor"||p==="prototype"}function o(p,f,h,y,g){if(n(f))return p;let v=p[f];return typeof v=="object"&&v!==null?v:!y&&(g||typeof h=="number"||typeof h=="string"&&h*0===0&&h.indexOf(".")===-1)?p[f]=[]:p[f]={}}var i=20,s="[]",a="[",l="]",u=".";function d(p,f,h=0,y,g){let{nestingSyntax:v=t.defaultOptions.nestingSyntax,arrayRepeat:b=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:E=t.defaultOptions.arrayRepeatSyntax,nesting:T=t.defaultOptions.nesting,delimiter:A=t.defaultOptions.delimiter,valueSerializer:P=t.defaultOptions.valueSerializer,shouldSerializeObject:R=t.defaultOptions.shouldSerializeObject}=f,S=typeof A=="number"?String.fromCharCode(A):A,w=g===!0&&b,O=v==="dot"||v==="js"&&!g;if(h>i)return"";let q="",M=!0,k=!1;for(let x in p){let C=p[x];if(C===void 0)continue;let j;y?(j=y,w?E==="bracket"&&(j+=s):O?(j+=u,j+=x):(j+=a,j+=x,j+=l)):j=x,M||(q+=S),typeof C=="object"&&C!==null&&!R(C)?(k=C.pop!==void 0,(T||b&&k)&&(q+=d(C,f,h+1,j,k))):(q+=(0,r.encodeString)(j),q+="=",q+=P(C,x)),M&&(M=!1)}return q}}}),hj=J({"../../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=o;var t=12,r=0,n=[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 o(a){let l=a.indexOf("%");if(l===-1)return a;let u=a.length,d="",p=0,f=0,h=l,y=t;for(;l>-1&&l<u;){let g=s(a[l+1],4),v=s(a[l+2],0),b=g|v,E=n[b];if(y=n[256+y+E],f=f<<6|b&n[364+E],y===t)d+=a.slice(p,h),d+=f<=65535?String.fromCharCode(f):String.fromCharCode(55232+(f>>10),56320+(f&1023)),f=0,p=l+3,l=h=a.indexOf("%",p);else{if(y===r)return null;if(l+=3,l<u&&a.charCodeAt(l)===37)continue;return null}}return d+a.slice(p)}var i={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 s(a,l){let u=i[a];return u===void 0?255:u<<l}}}),mj=J({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=u;var t=rw(),r=nm(),n=hj(),o=d=>{let p=Number(d);return Number.isNaN(p)?d:p};e.numberKeyDeserializer=o;var i=d=>{let p=Number(d);return Number.isNaN(p)?d:p};e.numberValueDeserializer=i;var s=/\+/g,a=function(){};a.prototype=Object.create(null);function l(d,p,f,h,y){let g=d.substring(p,f);return h&&(g=g.replace(s," ")),y&&(g=(0,n.decodeURIComponent)(g)||g),g}function u(d,p){let{valueDeserializer:f=r.defaultOptions.valueDeserializer,keyDeserializer:h=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:y=r.defaultOptions.arrayRepeatSyntax,nesting:g=r.defaultOptions.nesting,arrayRepeat:v=r.defaultOptions.arrayRepeat,nestingSyntax:b=r.defaultOptions.nestingSyntax,delimiter:E=r.defaultOptions.delimiter}=p??{},T=typeof E=="string"?E.charCodeAt(0):E,A=b==="js",P=new a;if(typeof d!="string")return P;let R=d.length,S="",w=-1,O=-1,q=-1,M=P,k,x="",C="",j=!1,F=!1,V=!1,G=!1,se=!1,me=!1,be=0,Q=-1,ee=-1,ve=-1;for(let pe=0;pe<R+1;pe++){if(be=pe!==R?d.charCodeAt(pe):T,be===T){if(me=O>w,me||(O=pe),q!==O-1&&(C=l(d,q+1,Q>-1?Q:O,V,j),x=h(C),k!==void 0&&(M=(0,t.getDeepObject)(M,k,x,A&&se,void 0))),me||x!==""){me&&(S=d.slice(O+1,pe),G&&(S=S.replace(s," ")),F&&(S=(0,n.decodeURIComponent)(S)||S));let ie=f(S,x);if(v){let Y=M[x];Y===void 0?Q>-1?M[x]=[ie]:M[x]=ie:Y.pop?Y.push(ie):M[x]=[Y,ie]}else M[x]=ie}S="",w=pe,O=pe,j=!1,F=!1,V=!1,G=!1,se=!1,Q=-1,q=pe,M=P,k=void 0,x=""}else be===93?(v&&y==="bracket"&&ve===91&&(Q=ee),g&&(b==="index"||A)&&O<=w&&(q!==ee&&(C=l(d,q+1,pe,V,j),x=h(C),k!==void 0&&(M=(0,t.getDeepObject)(M,k,x,void 0,void 0)),k=x,V=!1,j=!1),q=pe,se=!1)):be===46?g&&(b==="dot"||A)&&O<=w&&(q!==ee&&(C=l(d,q+1,pe,V,j),x=h(C),k!==void 0&&(M=(0,t.getDeepObject)(M,k,x,A)),k=x,V=!1,j=!1),se=!0,q=pe):be===91?g&&(b==="index"||A)&&O<=w&&(q!==ee&&(C=l(d,q+1,pe,V,j),x=h(C),A&&k!==void 0&&(M=(0,t.getDeepObject)(M,k,x,A)),k=x,V=!1,j=!1,se=!1),q=pe):be===61?O<=w?O=pe:F=!0:be===43?O>w?G=!0:V=!0:be===37&&(O>w?F=!0:j=!0);ee=pe,ve=be}return P}}}),yj=J({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=rw();function r(n,o){if(n===null||typeof n!="object")return"";let i=o??{};return(0,t.stringifyObject)(n,i)}}}),om=J({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?function(i,s,a,l){l===void 0&&(l=a);var u=Object.getOwnPropertyDescriptor(s,a);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[a]}}),Object.defineProperty(i,l,u)}:function(i,s,a,l){l===void 0&&(l=a),i[l]=s[a]}),r=e&&e.__exportStar||function(i,s){for(var a in i)a!=="default"&&!Object.prototype.hasOwnProperty.call(s,a)&&t(s,i,a)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=mj();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var o=yj();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),r(nm(),e)}}),nw=J({"../../node_modules/entities/lib/maps/entities.json"(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:`
|
|
13
|
+
`,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:""}}}),gj=J({"../../node_modules/entities/lib/maps/legacy.json"(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:"ÿ"}}}),ow=J({"../../node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),bj=J({"../../node_modules/entities/lib/maps/decode.json"(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}}}),vj=J({"../../node_modules/entities/lib/decode_codepoint.js"(e){var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(bj()),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))}e.default=o}}),ib=J({"../../node_modules/entities/lib/decode.js"(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(nw()),n=t(gj()),o=t(ow()),i=t(vj()),s=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=a(o.default),e.decodeHTMLStrict=a(r.default);function a(d){var p=u(d);return function(f){return String(f).replace(s,p)}}var l=function(d,p){return d<p?1:-1};e.decodeHTML=function(){for(var d=Object.keys(n.default).sort(l),p=Object.keys(r.default).sort(l),f=0,h=0;f<p.length;f++)d[h]===p[f]?(p[f]+=";?",h++):p[f]+=";";var y=new RegExp("&(?:"+p.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),g=u(r.default);function v(b){return b.substr(-1)!==";"&&(b+=";"),g(b)}return function(b){return String(b).replace(y,v)}}();function u(d){return function(p){if(p.charAt(1)==="#"){var f=p.charAt(2);return f==="X"||f==="x"?i.default(parseInt(p.substr(3),16)):i.default(parseInt(p.substr(2),10))}return d[p.slice(1,-1)]||p}}}}),sb=J({"../../node_modules/entities/lib/encode.js"(e){var t=e&&e.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(ow()),n=l(r.default),o=u(n);e.encodeXML=b(n);var i=t(nw()),s=l(i.default),a=u(s);e.encodeHTML=h(s,a),e.encodeNonAsciiHTML=b(s);function l(E){return Object.keys(E).sort().reduce(function(T,A){return T[E[A]]="&"+A+";",T},{})}function u(E){for(var T=[],A=[],P=0,R=Object.keys(E);P<R.length;P++){var S=R[P];S.length===1?T.push("\\"+S):A.push(S)}T.sort();for(var w=0;w<T.length-1;w++){for(var O=w;O<T.length-1&&T[O].charCodeAt(1)+1===T[O+1].charCodeAt(1);)O+=1;var q=1+O-w;q<3||T.splice(w,q,T[w]+"-"+T[O])}return A.unshift("["+T.join("")+"]"),new RegExp(A.join("|"),"g")}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(E){return E.codePointAt(0)}:function(E){return(E.charCodeAt(0)-55296)*1024+E.charCodeAt(1)-56320+65536};function f(E){return"&#x"+(E.length>1?p(E):E.charCodeAt(0)).toString(16).toUpperCase()+";"}function h(E,T){return function(A){return A.replace(T,function(P){return E[P]}).replace(d,f)}}var y=new RegExp(o.source+"|"+d.source,"g");function g(E){return E.replace(y,f)}e.escape=g;function v(E){return E.replace(o,f)}e.escapeUTF8=v;function b(E){return function(T){return T.replace(y,function(A){return E[A]||f(A)})}}}}),Ej=J({"../../node_modules/entities/lib/index.js"(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=ib(),r=sb();function n(l,u){return(!u||u<=0?t.decodeXML:t.decodeHTML)(l)}e.decode=n;function o(l,u){return(!u||u<=0?t.decodeXML:t.decodeHTMLStrict)(l)}e.decodeStrict=o;function i(l,u){return(!u||u<=0?r.encodeXML:r.encodeHTML)(l)}e.encode=i;var s=sb();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return s.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return s.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return s.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return s.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return s.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return s.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return s.encodeHTML}});var a=ib();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return a.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return a.decodeXML}})}}),Tj=J({"../../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function r(C,j){if(!(C instanceof j))throw new TypeError("Cannot call a class as a function")}function n(C,j){for(var F=0;F<j.length;F++){var V=j[F];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(C,V.key,V)}}function o(C,j,F){return j&&n(C.prototype,j),C}function i(C,j){var F=typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(!F){if(Array.isArray(C)||(F=s(C))||j){F&&(C=F);var V=0,G=function(){};return{s:G,n:function(){return V>=C.length?{done:!0}:{done:!1,value:C[V++]}},e:function(Q){throw Q},f:G}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var se=!0,me=!1,be;return{s:function(){F=F.call(C)},n:function(){var Q=F.next();return se=Q.done,Q},e:function(Q){me=!0,be=Q},f:function(){try{!se&&F.return!=null&&F.return()}finally{if(me)throw be}}}}function s(C,j){if(C){if(typeof C=="string")return a(C,j);var F=Object.prototype.toString.call(C).slice(8,-1);if(F==="Object"&&C.constructor&&(F=C.constructor.name),F==="Map"||F==="Set")return Array.from(C);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return a(C,j)}}function a(C,j){(j==null||j>C.length)&&(j=C.length);for(var F=0,V=new Array(j);F<j;F++)V[F]=C[F];return V}var l=Ej(),u={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:d()};function d(){var C={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 E(0,5).forEach(function(j){E(0,5).forEach(function(F){E(0,5).forEach(function(V){return p(j,F,V,C)})})}),E(0,23).forEach(function(j){var F=j+232,V=f(j*10+8);C[F]="#"+V+V+V}),C}function p(C,j,F,V){var G=16+C*36+j*6+F,se=C>0?C*40+55:0,me=j>0?j*40+55:0,be=F>0?F*40+55:0;V[G]=h([se,me,be])}function f(C){for(var j=C.toString(16);j.length<2;)j="0"+j;return j}function h(C){var j=[],F=i(C),V;try{for(F.s();!(V=F.n()).done;){var G=V.value;j.push(f(G))}}catch(se){F.e(se)}finally{F.f()}return"#"+j.join("")}function y(C,j,F,V){var G;return j==="text"?G=P(F,V):j==="display"?G=v(C,F,V):j==="xterm256Foreground"?G=w(C,V.colors[F]):j==="xterm256Background"?G=O(C,V.colors[F]):j==="rgb"&&(G=g(C,F)),G}function g(C,j){j=j.substring(2).slice(0,-1);var F=+j.substr(0,2),V=j.substring(5).split(";"),G=V.map(function(se){return("0"+Number(se).toString(16)).substr(-2)}).join("");return S(C,(F===38?"color:#":"background-color:#")+G)}function v(C,j,F){j=parseInt(j,10);var V={"-1":function(){return"<br/>"},0:function(){return C.length&&b(C)},1:function(){return R(C,"b")},3:function(){return R(C,"i")},4:function(){return R(C,"u")},8:function(){return S(C,"display:none")},9:function(){return R(C,"strike")},22:function(){return S(C,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return q(C,"i")},24:function(){return q(C,"u")},39:function(){return w(C,F.fg)},49:function(){return O(C,F.bg)},53:function(){return S(C,"text-decoration:overline")}},G;return V[j]?G=V[j]():4<j&&j<7?G=R(C,"blink"):29<j&&j<38?G=w(C,F.colors[j-30]):39<j&&j<48?G=O(C,F.colors[j-40]):89<j&&j<98?G=w(C,F.colors[8+(j-90)]):99<j&&j<108&&(G=O(C,F.colors[8+(j-100)])),G}function b(C){var j=C.slice(0);return C.length=0,j.reverse().map(function(F){return"</"+F+">"}).join("")}function E(C,j){for(var F=[],V=C;V<=j;V++)F.push(V);return F}function T(C){return function(j){return(C===null||j.category!==C)&&C!=="all"}}function A(C){C=parseInt(C,10);var j=null;return C===0?j="all":C===1?j="bold":2<C&&C<5?j="underline":4<C&&C<7?j="blink":C===8?j="hide":C===9?j="strike":29<C&&C<38||C===39||89<C&&C<98?j="foreground-color":(39<C&&C<48||C===49||99<C&&C<108)&&(j="background-color"),j}function P(C,j){return j.escapeXML?l.encodeXML(C):C}function R(C,j,F){return F||(F=""),C.push(j),"<".concat(j).concat(F?' style="'.concat(F,'"'):"",">")}function S(C,j){return R(C,"span",j)}function w(C,j){return R(C,"span","color:"+j)}function O(C,j){return R(C,"span","background-color:"+j)}function q(C,j){var F;if(C.slice(-1)[0]===j&&(F=C.pop()),F)return"</"+j+">"}function M(C,j,F){var V=!1,G=3;function se(){return""}function me(U,X){return F("xterm256Foreground",X),""}function be(U,X){return F("xterm256Background",X),""}function Q(U){return j.newline?F("display",-1):F("text",U),""}function ee(U,X){V=!0,X.trim().length===0&&(X="0"),X=X.trimRight(";").split(";");var K=i(X),re;try{for(K.s();!(re=K.n()).done;){var fe=re.value;F("display",fe)}}catch(ue){K.e(ue)}finally{K.f()}return""}function ve(U){return F("text",U),""}function pe(U){return F("rgb",U),""}var ie=[{pattern:/^\x08+/,sub:se},{pattern:/^\x1b\[[012]?K/,sub:se},{pattern:/^\x1b\[\(B/,sub:se},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:pe},{pattern:/^\x1b\[38;5;(\d+)m/,sub:me},{pattern:/^\x1b\[48;5;(\d+)m/,sub:be},{pattern:/^\n/,sub:Q},{pattern:/^\r+\n/,sub:Q},{pattern:/^\r/,sub:Q},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:ee},{pattern:/^\x1b\[\d?J/,sub:se},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:se},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:se},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:ve}];function Y(U,X){X>G&&V||(V=!1,C=C.replace(U.pattern,U.sub))}var oe=[],le=C,$=le.length;e:for(;$>0;){for(var te=0,ce=0,I=ie.length;ce<I;te=++ce){var D=ie[te];if(Y(D,te),C.length!==$){$=C.length;continue e}}if(C.length===$)break;oe.push(0),$=C.length}return oe}function k(C,j,F){return j!=="text"&&(C=C.filter(T(A(F))),C.push({token:j,data:F,category:A(F)})),C}var x=function(){function C(j){r(this,C),j=j||{},j.colors&&(j.colors=Object.assign({},u.colors,j.colors)),this.options=Object.assign({},u,j),this.stack=[],this.stickyStack=[]}return o(C,[{key:"toHtml",value:function(j){var F=this;j=typeof j=="string"?[j]:j;var V=this.stack,G=this.options,se=[];return this.stickyStack.forEach(function(me){var be=y(V,me.token,me.data,G);be&&se.push(be)}),M(j.join(""),G,function(me,be){var Q=y(V,me,be,G);Q&&se.push(Q),G.stream&&(F.stickyStack=k(F.stickyStack,me,be))}),V.length&&se.push(b(V)),se.join("")}}]),C}();t.exports=x}}),_j=J({"../../node_modules/jsdoc-type-pratt-parser/dist/index.js"(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(c){return c.text!==void 0&&c.text!==""?`'${c.type}' with value '${c.text}'`:`'${c.type}'`}class o extends Error{constructor(m){super(`No parslet found for token: ${n(m)}`),this.token=m,Object.setPrototypeOf(this,o.prototype)}getToken(){return this.token}}class i extends Error{constructor(m){super(`The parsing ended early. The next token was: ${n(m)}`),this.token=m,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class s extends Error{constructor(m,_){let N=`Unexpected type: '${m.type}'.`;_!==void 0&&(N+=` Message: ${_}`),super(N),Object.setPrototypeOf(this,s.prototype)}}function a(c){return m=>m.startsWith(c)?{type:c,text:c}:null}function l(c){let m=0,_,N=c[0],H=!1;if(N!=="'"&&N!=='"')return null;for(;m<c.length;){if(m++,_=c[m],!H&&_===N){m++;break}H=!H&&_==="\\"}if(_!==N)throw new Error("Unterminated String");return c.slice(0,m)}let u=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),d=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 p(c){let m=c[0];if(!u.test(m))return null;let _=1;do{if(m=c[_],!d.test(m))break;_++}while(_<c.length);return c.slice(0,_)}let f=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function h(c){var m,_;return(_=(m=f.exec(c))===null||m===void 0?void 0:m[0])!==null&&_!==void 0?_:null}let y=c=>{let m=p(c);return m==null?null:{type:"Identifier",text:m}};function g(c){return m=>{if(!m.startsWith(c))return null;let _=m[c.length];return _!==void 0&&d.test(_)?null:{type:c,text:c}}}let v=c=>{let m=l(c);return m==null?null:{type:"StringValue",text:m}},b=c=>c.length>0?null:{type:"EOF",text:""},E=c=>{let m=h(c);return m===null?null:{type:"Number",text:m}},T=[b,a("=>"),a("("),a(")"),a("{"),a("}"),a("["),a("]"),a("|"),a("&"),a("<"),a(">"),a(","),a(";"),a("*"),a("?"),a("!"),a("="),a(":"),a("..."),a("."),a("#"),a("~"),a("/"),a("@"),g("undefined"),g("null"),g("function"),g("this"),g("new"),g("module"),g("event"),g("extends"),g("external"),g("infer"),g("typeof"),g("keyof"),g("readonly"),g("import"),g("is"),g("in"),g("asserts"),E,y,v],A=/^\s*\n\s*/;class P{static create(m){let _=this.read(m);m=_.text;let N=this.read(m);return m=N.text,new P(m,void 0,_.token,N.token)}constructor(m,_,N,H){this.text="",this.text=m,this.previous=_,this.current=N,this.next=H}static read(m,_=!1){_=_||A.test(m),m=m.trim();for(let N of T){let H=N(m);if(H!==null){let Z=Object.assign(Object.assign({},H),{startOfLine:_});return m=m.slice(Z.text.length),{text:m,token:Z}}}throw new Error("Unexpected Token "+m)}advance(){let m=P.read(this.text);return new P(m.text,this.current,this.next,m.token)}}function R(c){if(c===void 0)throw new Error("Unexpected undefined");if(c.type==="JsdocTypeKeyValue"||c.type==="JsdocTypeParameterList"||c.type==="JsdocTypeProperty"||c.type==="JsdocTypeReadonlyProperty"||c.type==="JsdocTypeObjectField"||c.type==="JsdocTypeJsdocObjectField"||c.type==="JsdocTypeIndexSignature"||c.type==="JsdocTypeMappedType"||c.type==="JsdocTypeTypeParameter")throw new s(c);return c}function S(c){return c.type==="JsdocTypeKeyValue"?O(c):R(c)}function w(c){return c.type==="JsdocTypeName"?c:O(c)}function O(c){if(c.type!=="JsdocTypeKeyValue")throw new s(c);return c}function q(c){var m;if(c.type==="JsdocTypeVariadic"){if(((m=c.element)===null||m===void 0?void 0:m.type)==="JsdocTypeName")return c;throw new s(c)}if(c.type!=="JsdocTypeNumber"&&c.type!=="JsdocTypeName")throw new s(c);return c}function M(c){if(c.type==="JsdocTypeTuple"||c.type==="JsdocTypeGeneric"&&c.meta.brackets==="square")return c;throw new s(c)}function k(c){return c.type==="JsdocTypeIndexSignature"||c.type==="JsdocTypeMappedType"}var x;(function(c){c[c.ALL=0]="ALL",c[c.PARAMETER_LIST=1]="PARAMETER_LIST",c[c.OBJECT=2]="OBJECT",c[c.KEY_VALUE=3]="KEY_VALUE",c[c.INDEX_BRACKETS=4]="INDEX_BRACKETS",c[c.UNION=5]="UNION",c[c.INTERSECTION=6]="INTERSECTION",c[c.PREFIX=7]="PREFIX",c[c.INFIX=8]="INFIX",c[c.TUPLE=9]="TUPLE",c[c.SYMBOL=10]="SYMBOL",c[c.OPTIONAL=11]="OPTIONAL",c[c.NULLABLE=12]="NULLABLE",c[c.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",c[c.FUNCTION=14]="FUNCTION",c[c.ARROW=15]="ARROW",c[c.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",c[c.GENERIC=17]="GENERIC",c[c.NAME_PATH=18]="NAME_PATH",c[c.PARENTHESIS=19]="PARENTHESIS",c[c.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(x||(x={}));class C{constructor(m,_,N){this.grammar=m,typeof _=="string"?this._lexer=P.create(_):this._lexer=_,this.baseParser=N}get lexer(){return this._lexer}parse(){let m=this.parseType(x.ALL);if(this.lexer.current.type!=="EOF")throw new i(this.lexer.current);return m}parseType(m){return R(this.parseIntermediateType(m))}parseIntermediateType(m){let _=this.tryParslets(null,m);if(_===null)throw new o(this.lexer.current);return this.parseInfixIntermediateType(_,m)}parseInfixIntermediateType(m,_){let N=this.tryParslets(m,_);for(;N!==null;)m=N,N=this.tryParslets(m,_);return m}tryParslets(m,_){for(let N of this.grammar){let H=N(this,_,m);if(H!==null)return H}return null}consume(m){return Array.isArray(m)||(m=[m]),m.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(m){this._lexer=m.lexer}}function j(c){return c==="}"||c==="EOF"||c==="|"||c===","||c===")"||c===">"}let F=(c,m,_)=>{let N=c.lexer.current.type,H=c.lexer.next.type;return _==null&&N==="?"&&!j(H)||_!=null&&N==="?"?(c.consume("?"),_==null?{type:"JsdocTypeNullable",element:c.parseType(x.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:R(_),meta:{position:"suffix"}}):null};function V(c){let m=(_,N,H)=>{let Z=_.lexer.current.type,de=_.lexer.next.type;if(H===null){if("parsePrefix"in c&&c.accept(Z,de))return c.parsePrefix(_)}else if("parseInfix"in c&&c.precedence>N&&c.accept(Z,de))return c.parseInfix(_,H);return null};return Object.defineProperty(m,"name",{value:c.name}),m}let G=V({name:"optionalParslet",accept:c=>c==="=",precedence:x.OPTIONAL,parsePrefix:c=>(c.consume("="),{type:"JsdocTypeOptional",element:c.parseType(x.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(c,m)=>(c.consume("="),{type:"JsdocTypeOptional",element:R(m),meta:{position:"suffix"}})}),se=V({name:"numberParslet",accept:c=>c==="Number",parsePrefix:c=>{let m=parseFloat(c.lexer.current.text);return c.consume("Number"),{type:"JsdocTypeNumber",value:m}}}),me=V({name:"parenthesisParslet",accept:c=>c==="(",parsePrefix:c=>{if(c.consume("("),c.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let m=c.parseIntermediateType(x.ALL);if(!c.consume(")"))throw new Error("Unterminated parenthesis");return m.type==="JsdocTypeParameterList"?m:m.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[m]}:{type:"JsdocTypeParenthesis",element:R(m)}}}),be=V({name:"specialTypesParslet",accept:(c,m)=>c==="?"&&j(m)||c==="null"||c==="undefined"||c==="*",parsePrefix:c=>{if(c.consume("null"))return{type:"JsdocTypeNull"};if(c.consume("undefined"))return{type:"JsdocTypeUndefined"};if(c.consume("*"))return{type:"JsdocTypeAny"};if(c.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+c.lexer.current.text)}}),Q=V({name:"notNullableParslet",accept:c=>c==="!",precedence:x.NULLABLE,parsePrefix:c=>(c.consume("!"),{type:"JsdocTypeNotNullable",element:c.parseType(x.NULLABLE),meta:{position:"prefix"}}),parseInfix:(c,m)=>(c.consume("!"),{type:"JsdocTypeNotNullable",element:R(m),meta:{position:"suffix"}})});function ee({allowTrailingComma:c}){return V({name:"parameterListParslet",accept:m=>m===",",precedence:x.PARAMETER_LIST,parseInfix:(m,_)=>{let N=[S(_)];m.consume(",");do try{let H=m.parseIntermediateType(x.PARAMETER_LIST);N.push(S(H))}catch(H){if(H instanceof o)break;throw H}while(m.consume(","));if(N.length>0&&N.slice(0,-1).some(H=>H.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:N}}})}let ve=V({name:"genericParslet",accept:(c,m)=>c==="<"||c==="."&&m==="<",precedence:x.GENERIC,parseInfix:(c,m)=>{let _=c.consume(".");c.consume("<");let N=[],H=!1;if(c.consume("infer")){H=!0;let Z=c.parseIntermediateType(x.SYMBOL);if(Z.type!=="JsdocTypeName")throw new s(Z,"A typescript asserts always has to have a name on the left side.");N.push(Z)}else do N.push(c.parseType(x.PARAMETER_LIST));while(c.consume(","));if(!c.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:R(m),elements:N},H?{infer:!0}:{}),{meta:{brackets:"angle",dot:_}})}}),pe=V({name:"unionParslet",accept:c=>c==="|",precedence:x.UNION,parseInfix:(c,m)=>{c.consume("|");let _=[];do _.push(c.parseType(x.UNION));while(c.consume("|"));return{type:"JsdocTypeUnion",elements:[R(m),..._]}}}),ie=[F,G,se,me,be,Q,ee({allowTrailingComma:!0}),ve,pe,G];function Y({allowSquareBracketsOnAnyType:c,allowJsdocNamePaths:m,pathGrammar:_}){return function(N,H,Z){if(Z==null||H>=x.NAME_PATH)return null;let de=N.lexer.current.type,Ae=N.lexer.next.type;if(!(de==="."&&Ae!=="<"||de==="["&&(c||Z.type==="JsdocTypeName")||m&&(de==="~"||de==="#")))return null;let Oe,Ue=!1;N.consume(".")?Oe="property":N.consume("[")?(Oe="property-brackets",Ue=!0):N.consume("~")?Oe="inner":(N.consume("#"),Oe="instance");let It=_!==null?new C(_,N.lexer,N):N,ht=It.parseIntermediateType(x.NAME_PATH);N.acceptLexerState(It);let Xr;switch(ht.type){case"JsdocTypeName":Xr={type:"JsdocTypeProperty",value:ht.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":Xr={type:"JsdocTypeProperty",value:ht.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":Xr={type:"JsdocTypeProperty",value:ht.value,meta:{quote:ht.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(ht.specialType==="event")Xr=ht;else throw new s(ht,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new s(ht,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(Ue&&!N.consume("]")){let ra=N.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${ra.type}' with text '${ra.text}'`)}return{type:"JsdocTypeNamePath",left:R(Z),right:Xr,pathType:Oe}}}function oe({allowedAdditionalTokens:c}){return V({name:"nameParslet",accept:m=>m==="Identifier"||m==="this"||m==="new"||c.includes(m),parsePrefix:m=>{let{type:_,text:N}=m.lexer.current;return m.consume(_),{type:"JsdocTypeName",value:N}}})}let le=V({name:"stringValueParslet",accept:c=>c==="StringValue",parsePrefix:c=>{let m=c.lexer.current.text;return c.consume("StringValue"),{type:"JsdocTypeStringValue",value:m.slice(1,-1),meta:{quote:m[0]==="'"?"single":"double"}}}});function $({pathGrammar:c,allowedTypes:m}){return V({name:"specialNamePathParslet",accept:_=>m.includes(_),parsePrefix:_=>{let N=_.lexer.current.type;if(_.consume(N),!_.consume(":"))return{type:"JsdocTypeName",value:N};let H,Z=_.lexer.current;if(_.consume("StringValue"))H={type:"JsdocTypeSpecialNamePath",value:Z.text.slice(1,-1),specialType:N,meta:{quote:Z.text[0]==="'"?"single":"double"}};else{let Oe="",Ue=["Identifier","@","/"];for(;Ue.some(It=>_.consume(It));)Oe+=Z.text,Z=_.lexer.current;H={type:"JsdocTypeSpecialNamePath",value:Oe,specialType:N,meta:{quote:void 0}}}let de=new C(c,_.lexer,_),Ae=de.parseInfixIntermediateType(H,x.ALL);return _.acceptLexerState(de),R(Ae)}})}let te=[oe({allowedAdditionalTokens:["external","module"]}),le,se,Y({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],ce=[...te,$({allowedTypes:["event"],pathGrammar:te})];function I(c){let m;if(c.type==="JsdocTypeParameterList")m=c.elements;else if(c.type==="JsdocTypeParenthesis")m=[c.element];else throw new s(c);return m.map(_=>S(_))}function D(c){let m=I(c);if(m.some(_=>_.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return m}function U({allowNamedParameters:c,allowNoReturnType:m,allowWithoutParenthesis:_,allowNewAsFunctionKeyword:N}){return V({name:"functionParslet",accept:(H,Z)=>H==="function"||N&&H==="new"&&Z==="(",parsePrefix:H=>{let Z=H.consume("new");H.consume("function");let de=H.lexer.current.type==="(";if(!de){if(!_)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let Ae={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:Z,parenthesis:de},Oe=H.parseIntermediateType(x.FUNCTION);if(c===void 0)Ae.parameters=D(Oe);else{if(Z&&Oe.type==="JsdocTypeFunction"&&Oe.arrow)return Ae=Oe,Ae.constructor=!0,Ae;Ae.parameters=I(Oe);for(let Ue of Ae.parameters)if(Ue.type==="JsdocTypeKeyValue"&&!c.includes(Ue.key))throw new Error(`only allowed named parameters are ${c.join(", ")} but got ${Ue.type}`)}if(H.consume(":"))Ae.returnType=H.parseType(x.PREFIX);else if(!m)throw new Error("function is missing return type");return Ae}})}function X({allowPostfix:c,allowEnclosingBrackets:m}){return V({name:"variadicParslet",accept:_=>_==="...",precedence:x.PREFIX,parsePrefix:_=>{_.consume("...");let N=m&&_.consume("[");try{let H=_.parseType(x.PREFIX);if(N&&!_.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:R(H),meta:{position:"prefix",squareBrackets:N}}}catch(H){if(H instanceof o){if(N)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw H}},parseInfix:c?(_,N)=>(_.consume("..."),{type:"JsdocTypeVariadic",element:R(N),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let K=V({name:"symbolParslet",accept:c=>c==="(",precedence:x.SYMBOL,parseInfix:(c,m)=>{if(m.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");c.consume("(");let _={type:"JsdocTypeSymbol",value:m.value};if(!c.consume(")")){let N=c.parseIntermediateType(x.SYMBOL);if(_.element=q(N),!c.consume(")"))throw new Error("Symbol does not end after value")}return _}}),re=V({name:"arrayBracketsParslet",precedence:x.ARRAY_BRACKETS,accept:(c,m)=>c==="["&&m==="]",parseInfix:(c,m)=>(c.consume("["),c.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[R(m)],meta:{brackets:"square",dot:!1}})});function fe({objectFieldGrammar:c,allowKeyTypes:m}){return V({name:"objectParslet",accept:_=>_==="{",parsePrefix:_=>{_.consume("{");let N={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!_.consume("}")){let H,Z=new C(c,_.lexer,_);for(;;){Z.acceptLexerState(_);let de=Z.parseIntermediateType(x.OBJECT);_.acceptLexerState(Z),de===void 0&&m&&(de=_.parseIntermediateType(x.OBJECT));let Ae=!1;if(de.type==="JsdocTypeNullable"&&(Ae=!0,de=de.element),de.type==="JsdocTypeNumber"||de.type==="JsdocTypeName"||de.type==="JsdocTypeStringValue"){let Oe;de.type==="JsdocTypeStringValue"&&(Oe=de.meta.quote),N.elements.push({type:"JsdocTypeObjectField",key:de.value.toString(),right:void 0,optional:Ae,readonly:!1,meta:{quote:Oe}})}else if(de.type==="JsdocTypeObjectField"||de.type==="JsdocTypeJsdocObjectField")N.elements.push(de);else throw new s(de);if(_.lexer.current.startOfLine)H="linebreak",_.consume(",")||_.consume(";");else if(_.consume(","))H="comma";else if(_.consume(";"))H="semicolon";else break;if(_.lexer.current.type==="}")break}if(N.meta.separator=H??"comma",H==="linebreak"&&(N.meta.propertyIndent=" "),!_.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return N}})}function ue({allowSquaredProperties:c,allowKeyTypes:m,allowReadonly:_,allowOptional:N}){return V({name:"objectFieldParslet",precedence:x.KEY_VALUE,accept:H=>H===":",parseInfix:(H,Z)=>{var de;let Ae=!1,Oe=!1;N&&Z.type==="JsdocTypeNullable"&&(Ae=!0,Z=Z.element),_&&Z.type==="JsdocTypeReadonlyProperty"&&(Oe=!0,Z=Z.element);let Ue=(de=H.baseParser)!==null&&de!==void 0?de:H;if(Ue.acceptLexerState(H),Z.type==="JsdocTypeNumber"||Z.type==="JsdocTypeName"||Z.type==="JsdocTypeStringValue"||k(Z)){if(k(Z)&&!c)throw new s(Z);Ue.consume(":");let It;Z.type==="JsdocTypeStringValue"&&(It=Z.meta.quote);let ht=Ue.parseType(x.KEY_VALUE);return H.acceptLexerState(Ue),{type:"JsdocTypeObjectField",key:k(Z)?Z:Z.value.toString(),right:ht,optional:Ae,readonly:Oe,meta:{quote:It}}}else{if(!m)throw new s(Z);Ue.consume(":");let It=Ue.parseType(x.KEY_VALUE);return H.acceptLexerState(Ue),{type:"JsdocTypeJsdocObjectField",left:R(Z),right:It}}}})}function ae({allowOptional:c,allowVariadic:m}){return V({name:"keyValueParslet",precedence:x.KEY_VALUE,accept:_=>_===":",parseInfix:(_,N)=>{let H=!1,Z=!1;if(c&&N.type==="JsdocTypeNullable"&&(H=!0,N=N.element),m&&N.type==="JsdocTypeVariadic"&&N.element!==void 0&&(Z=!0,N=N.element),N.type!=="JsdocTypeName")throw new s(N);_.consume(":");let de=_.parseType(x.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:N.value,right:de,optional:H,variadic:Z}}})}let ne=[...ie,U({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),le,$({allowedTypes:["module","external","event"],pathGrammar:ce}),X({allowEnclosingBrackets:!0,allowPostfix:!0}),oe({allowedAdditionalTokens:["keyof"]}),K,re,Y({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ce})],_e=[...ne,fe({objectFieldGrammar:[oe({allowedAdditionalTokens:["typeof","module","in"]}),ue({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...ne],allowKeyTypes:!0}),ae({allowOptional:!0,allowVariadic:!0})],ye=V({name:"typeOfParslet",accept:c=>c==="typeof",parsePrefix:c=>(c.consume("typeof"),{type:"JsdocTypeTypeof",element:c.parseType(x.KEY_OF_TYPE_OF)})}),Te=[oe({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),F,G,le,se,ue({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],we=[...ie,fe({allowKeyTypes:!1,objectFieldGrammar:Te}),oe({allowedAdditionalTokens:["event","external","in"]}),ye,U({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),X({allowEnclosingBrackets:!1,allowPostfix:!1}),oe({allowedAdditionalTokens:["keyof"]}),$({allowedTypes:["module"],pathGrammar:ce}),Y({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ce}),ae({allowOptional:!1,allowVariadic:!1}),K],qe=V({name:"assertsParslet",accept:c=>c==="asserts",parsePrefix:c=>{c.consume("asserts");let m=c.parseIntermediateType(x.SYMBOL);if(m.type!=="JsdocTypeName")throw new s(m,"A typescript asserts always has to have a name on the left side.");return c.consume("is")?{type:"JsdocTypeAsserts",left:m,right:R(c.parseIntermediateType(x.INFIX))}:{type:"JsdocTypeAssertsPlain",element:m}}});function Ve({allowQuestionMark:c}){return V({name:"tupleParslet",accept:m=>m==="[",parsePrefix:m=>{m.consume("[");let _={type:"JsdocTypeTuple",elements:[]};if(m.consume("]"))return _;let N=m.parseIntermediateType(x.ALL);if(N.type==="JsdocTypeParameterList"?N.elements[0].type==="JsdocTypeKeyValue"?_.elements=N.elements.map(O):_.elements=N.elements.map(R):N.type==="JsdocTypeKeyValue"?_.elements=[O(N)]:_.elements=[R(N)],!m.consume("]"))throw new Error("Unterminated '['");if(_.elements.some(H=>H.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return _}})}let He=V({name:"keyOfParslet",accept:c=>c==="keyof",parsePrefix:c=>(c.consume("keyof"),{type:"JsdocTypeKeyof",element:R(c.parseType(x.KEY_OF_TYPE_OF))})}),rt=V({name:"importParslet",accept:c=>c==="import",parsePrefix:c=>{if(c.consume("import"),!c.consume("("))throw new Error("Missing parenthesis after import keyword");let m=c.parseType(x.PREFIX);if(m.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!c.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:m}}}),it=V({name:"readonlyPropertyParslet",accept:c=>c==="readonly",parsePrefix:c=>(c.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:c.parseIntermediateType(x.KEY_VALUE)})}),$t=V({name:"arrowFunctionParslet",precedence:x.ARROW,accept:c=>c==="=>",parseInfix:(c,m)=>(c.consume("=>"),{type:"JsdocTypeFunction",parameters:I(m).map(w),arrow:!0,constructor:!1,parenthesis:!0,returnType:c.parseType(x.OBJECT)})}),Ct=V({name:"genericArrowFunctionParslet",accept:c=>c==="<",parsePrefix:c=>{let m=[];c.consume("<");do{let N,H=c.parseIntermediateType(x.SYMBOL);if(H.type==="JsdocTypeOptional"&&(H=H.element,N=c.parseType(x.SYMBOL)),H.type!=="JsdocTypeName")throw new s(H);let Z;c.consume("extends")&&(Z=c.parseType(x.SYMBOL),Z.type==="JsdocTypeOptional"&&(Z=Z.element,N=c.parseType(x.SYMBOL)));let de={type:"JsdocTypeTypeParameter",name:H};if(Z!==void 0&&(de.constraint=Z),N!==void 0&&(de.defaultValue=N),m.push(de),c.consume(">"))break}while(c.consume(","));let _=c.parseIntermediateType(x.SYMBOL);return _.typeParameters=m,_}}),Kr=V({name:"intersectionParslet",accept:c=>c==="&",precedence:x.INTERSECTION,parseInfix:(c,m)=>{c.consume("&");let _=[];do _.push(c.parseType(x.INTERSECTION));while(c.consume("&"));return{type:"JsdocTypeIntersection",elements:[R(m),..._]}}}),ho=V({name:"predicateParslet",precedence:x.INFIX,accept:c=>c==="is",parseInfix:(c,m)=>{if(m.type!=="JsdocTypeName")throw new s(m,"A typescript predicate always has to have a name on the left side.");return c.consume("is"),{type:"JsdocTypePredicate",left:m,right:R(c.parseIntermediateType(x.INFIX))}}}),Nt=V({name:"objectSquareBracketPropertyParslet",accept:c=>c==="[",parsePrefix:c=>{if(c.baseParser===void 0)throw new Error("Only allowed inside object grammar");c.consume("[");let m=c.lexer.current.text;c.consume("Identifier");let _;if(c.consume(":")){let N=c.baseParser;N.acceptLexerState(c),_={type:"JsdocTypeIndexSignature",key:m,right:N.parseType(x.INDEX_BRACKETS)},c.acceptLexerState(N)}else if(c.consume("in")){let N=c.baseParser;N.acceptLexerState(c),_={type:"JsdocTypeMappedType",key:m,right:N.parseType(x.ARRAY_BRACKETS)},c.acceptLexerState(N)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!c.consume("]"))throw new Error("Unterminated square brackets");return _}}),Kt=V({name:"readonlyArrayParslet",accept:c=>c==="readonly",parsePrefix:c=>(c.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:M(c.parseIntermediateType(x.ALL))})}),mo=V({name:"conditionalParslet",precedence:x.INFIX,accept:c=>c==="extends",parseInfix:(c,m)=>{c.consume("extends");let _=c.parseType(x.KEY_OF_TYPE_OF).element,N=c.parseType(x.INFIX);return c.consume(":"),{type:"JsdocTypeConditional",checksType:R(m),extendsType:_,trueType:N,falseType:c.parseType(x.INFIX)}}}),yo=[it,oe({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),F,G,le,se,ue({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),Nt],Qs=[...ie,fe({allowKeyTypes:!1,objectFieldGrammar:yo}),Kt,ye,He,rt,le,U({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Ve({allowQuestionMark:!1}),X({allowEnclosingBrackets:!1,allowPostfix:!1}),qe,mo,oe({allowedAdditionalTokens:["event","external","in"]}),$({allowedTypes:["module"],pathGrammar:ce}),re,$t,Ct,Y({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:ce}),Kr,ho,ae({allowVariadic:!0,allowOptional:!0})];function Yo(c,m){switch(m){case"closure":return new C(we,c).parse();case"jsdoc":return new C(_e,c).parse();case"typescript":return new C(Qs,c).parse()}}function Zs(c,m=["typescript","closure","jsdoc"]){let _;for(let N of m)try{return Yo(c,N)}catch(H){_=H}throw _}function Sr(c,m){let _=c[m.type];if(_===void 0)throw new Error(`In this set of transform rules exists no rule for type ${m.type}.`);return _(m,N=>Sr(c,N))}function Se(c){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function Xo(c){let m={params:[]};for(let _ of c.parameters)_.type==="JsdocTypeKeyValue"?_.key==="this"?m.this=_.right:_.key==="new"?m.new=_.right:m.params.push(_):m.params.push(_);return m}function Yr(c,m,_){return c==="prefix"?_+m:m+_}function xt(c,m){switch(m){case"double":return`"${c}"`;case"single":return`'${c}'`;case void 0:return c}}function he(){return{JsdocTypeParenthesis:(c,m)=>`(${c.element!==void 0?m(c.element):""})`,JsdocTypeKeyof:(c,m)=>`keyof ${m(c.element)}`,JsdocTypeFunction:(c,m)=>{var _;if(c.arrow){if(c.returnType===void 0)throw new Error("Arrow function needs a return type.");let N=`${c.typeParameters!==void 0?`<${(_=c.typeParameters.map(m).join(", "))!==null&&_!==void 0?_:""}>`:""}(${c.parameters.map(m).join(", ")}) => ${m(c.returnType)}`;return c.constructor&&(N="new "+N),N}else{let N=c.constructor?"new":"function";return c.parenthesis&&(N+=`(${c.parameters.map(m).join(", ")})`,c.returnType!==void 0&&(N+=`: ${m(c.returnType)}`)),N}},JsdocTypeName:c=>c.value,JsdocTypeTuple:(c,m)=>`[${c.elements.map(m).join(", ")}]`,JsdocTypeVariadic:(c,m)=>c.meta.position===void 0?"...":Yr(c.meta.position,m(c.element),"..."),JsdocTypeNamePath:(c,m)=>{let _=m(c.left),N=m(c.right);switch(c.pathType){case"inner":return`${_}~${N}`;case"instance":return`${_}#${N}`;case"property":return`${_}.${N}`;case"property-brackets":return`${_}[${N}]`}},JsdocTypeStringValue:c=>xt(c.value,c.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(c,m)=>{if(c.meta.brackets==="square"){let _=c.elements[0],N=m(_);return _.type==="JsdocTypeUnion"||_.type==="JsdocTypeIntersection"?`(${N})[]`:`${N}[]`}else return`${m(c.left)}${c.meta.dot?".":""}<${c.infer===!0?"infer ":""}${c.elements.map(m).join(", ")}>`},JsdocTypeImport:(c,m)=>`import(${m(c.element)})`,JsdocTypeObjectField:(c,m)=>{let _="";return c.readonly&&(_+="readonly "),typeof c.key=="string"?_+=xt(c.key,c.meta.quote):_+=m(c.key),c.optional&&(_+="?"),c.right===void 0?_:_+`: ${m(c.right)}`},JsdocTypeJsdocObjectField:(c,m)=>`${m(c.left)}: ${m(c.right)}`,JsdocTypeKeyValue:(c,m)=>{let _=c.key;return c.optional&&(_+="?"),c.variadic&&(_="..."+_),c.right===void 0?_:_+`: ${m(c.right)}`},JsdocTypeSpecialNamePath:c=>`${c.specialType}:${xt(c.value,c.meta.quote)}`,JsdocTypeNotNullable:(c,m)=>Yr(c.meta.position,m(c.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(c,m)=>Yr(c.meta.position,m(c.element),"?"),JsdocTypeNumber:c=>c.value.toString(),JsdocTypeObject:(c,m)=>{var _,N;return`{${(c.meta.separator==="linebreak"&&c.elements.length>1?`
|
|
15
|
+
`+((_=c.meta.propertyIndent)!==null&&_!==void 0?_:""):"")+c.elements.map(m).join(c.meta.separator==="comma"?", ":c.meta.separator==="linebreak"?`
|
|
16
|
+
`+((N=c.meta.propertyIndent)!==null&&N!==void 0?N:""):"; ")+(c.meta.separator==="linebreak"&&c.elements.length>1?`
|
|
17
|
+
`:"")}}`},JsdocTypeOptional:(c,m)=>Yr(c.meta.position,m(c.element),"="),JsdocTypeSymbol:(c,m)=>`${c.value}(${c.element!==void 0?m(c.element):""})`,JsdocTypeTypeof:(c,m)=>`typeof ${m(c.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(c,m)=>c.elements.map(m).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(c,m)=>c.elements.map(m).join(" & "),JsdocTypeProperty:c=>xt(c.value,c.meta.quote),JsdocTypePredicate:(c,m)=>`${m(c.left)} is ${m(c.right)}`,JsdocTypeIndexSignature:(c,m)=>`[${c.key}: ${m(c.right)}]`,JsdocTypeMappedType:(c,m)=>`[${c.key} in ${m(c.right)}]`,JsdocTypeAsserts:(c,m)=>`asserts ${m(c.left)} is ${m(c.right)}`,JsdocTypeReadonlyArray:(c,m)=>`readonly ${m(c.element)}`,JsdocTypeAssertsPlain:(c,m)=>`asserts ${m(c.element)}`,JsdocTypeConditional:(c,m)=>`${m(c.checksType)} extends ${m(c.extendsType)} ? ${m(c.trueType)} : ${m(c.falseType)}`,JsdocTypeTypeParameter:(c,m)=>`${m(c.name)}${c.constraint!==void 0?` extends ${m(c.constraint)}`:""}${c.defaultValue!==void 0?` = ${m(c.defaultValue)}`:""}`}}let ea=he();function go(c){return Sr(ea,c)}let tp=["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 Vt(c){let m={type:"NameExpression",name:c};return tp.includes(c)&&(m.reservedWord=!0),m}let rp={JsdocTypeOptional:(c,m)=>{let _=m(c.element);return _.optional=!0,_},JsdocTypeNullable:(c,m)=>{let _=m(c.element);return _.nullable=!0,_},JsdocTypeNotNullable:(c,m)=>{let _=m(c.element);return _.nullable=!1,_},JsdocTypeVariadic:(c,m)=>{if(c.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let _=m(c.element);return _.repeatable=!0,_},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:c=>Vt(xt(c.value,c.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(c,m)=>{let _=Xo(c),N={type:"FunctionType",params:_.params.map(m)};return _.this!==void 0&&(N.this=m(_.this)),_.new!==void 0&&(N.new=m(_.new)),c.returnType!==void 0&&(N.result=m(c.returnType)),N},JsdocTypeGeneric:(c,m)=>({type:"TypeApplication",applications:c.elements.map(_=>m(_)),expression:m(c.left)}),JsdocTypeSpecialNamePath:c=>Vt(c.specialType+":"+xt(c.value,c.meta.quote)),JsdocTypeName:c=>c.value!=="function"?Vt(c.value):{type:"FunctionType",params:[]},JsdocTypeNumber:c=>Vt(c.value.toString()),JsdocTypeObject:(c,m)=>{let _={type:"RecordType",fields:[]};for(let N of c.elements)N.type!=="JsdocTypeObjectField"&&N.type!=="JsdocTypeJsdocObjectField"?_.fields.push({type:"FieldType",key:m(N),value:void 0}):_.fields.push(m(N));return _},JsdocTypeObjectField:(c,m)=>{if(typeof c.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:Vt(xt(c.key,c.meta.quote)),value:c.right===void 0?void 0:m(c.right)}},JsdocTypeJsdocObjectField:(c,m)=>({type:"FieldType",key:m(c.left),value:m(c.right)}),JsdocTypeUnion:(c,m)=>({type:"TypeUnion",elements:c.elements.map(_=>m(_))}),JsdocTypeKeyValue:(c,m)=>({type:"FieldType",key:Vt(c.key),value:c.right===void 0?void 0:m(c.right)}),JsdocTypeNamePath:(c,m)=>{let _=m(c.left),N;c.right.type==="JsdocTypeSpecialNamePath"?N=m(c.right).name:N=xt(c.right.value,c.right.meta.quote);let H=c.pathType==="inner"?"~":c.pathType==="instance"?"#":".";return Vt(`${_.name}${H}${N}`)},JsdocTypeSymbol:c=>{let m="",_=c.element,N=!1;return(_==null?void 0:_.type)==="JsdocTypeVariadic"&&(_.meta.position==="prefix"?m="...":N=!0,_=_.element),(_==null?void 0:_.type)==="JsdocTypeName"?m+=_.value:(_==null?void 0:_.type)==="JsdocTypeNumber"&&(m+=_.value.toString()),N&&(m+="..."),Vt(`${c.value}(${m})`)},JsdocTypeParenthesis:(c,m)=>m(R(c.element)),JsdocTypeMappedType:Se,JsdocTypeIndexSignature:Se,JsdocTypeImport:Se,JsdocTypeKeyof:Se,JsdocTypeTuple:Se,JsdocTypeTypeof:Se,JsdocTypeIntersection:Se,JsdocTypeProperty:Se,JsdocTypePredicate:Se,JsdocTypeAsserts:Se,JsdocTypeReadonlyArray:Se,JsdocTypeAssertsPlain:Se,JsdocTypeConditional:Se,JsdocTypeTypeParameter:Se};function np(c){return Sr(rp,c)}function lr(c){switch(c){case void 0:return"none";case"single":return"single";case"double":return"double"}}function op(c){switch(c){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function Qo(c,m){return m.length===2?{type:c,left:m[0],right:m[1]}:{type:c,left:m[0],right:Qo(c,m.slice(1))}}let ip={JsdocTypeOptional:(c,m)=>({type:"OPTIONAL",value:m(c.element),meta:{syntax:c.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(c,m)=>({type:"NULLABLE",value:m(c.element),meta:{syntax:c.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(c,m)=>({type:"NOT_NULLABLE",value:m(c.element),meta:{syntax:c.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(c,m)=>{let _={type:"VARIADIC",meta:{syntax:c.meta.position==="prefix"?"PREFIX_DOTS":c.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return c.element!==void 0&&(_.value=m(c.element)),_},JsdocTypeName:c=>({type:"NAME",name:c.value}),JsdocTypeTypeof:(c,m)=>({type:"TYPE_QUERY",name:m(c.element)}),JsdocTypeTuple:(c,m)=>({type:"TUPLE",entries:c.elements.map(m)}),JsdocTypeKeyof:(c,m)=>({type:"KEY_QUERY",value:m(c.element)}),JsdocTypeImport:c=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:lr(c.element.meta.quote),string:c.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(c,m)=>{let _=Xo(c),N={type:c.arrow?"ARROW":"FUNCTION",params:_.params.map(H=>{if(H.type==="JsdocTypeKeyValue"){if(H.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:H.key,typeName:m(H.right)}}else return m(H)}),new:null,returns:null};return _.this!==void 0?N.this=m(_.this):c.arrow||(N.this=null),_.new!==void 0&&(N.new=m(_.new)),c.returnType!==void 0&&(N.returns=m(c.returnType)),N},JsdocTypeGeneric:(c,m)=>{let _={type:"GENERIC",subject:m(c.left),objects:c.elements.map(m),meta:{syntax:c.meta.brackets==="square"?"SQUARE_BRACKET":c.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return c.meta.brackets==="square"&&c.elements[0].type==="JsdocTypeFunction"&&!c.elements[0].parenthesis&&(_.objects[0]={type:"NAME",name:"function"}),_},JsdocTypeObjectField:(c,m)=>{if(typeof c.key!="string")throw new Error("Index signatures and mapped types are not supported");if(c.right===void 0)return{type:"RECORD_ENTRY",key:c.key,quoteStyle:lr(c.meta.quote),value:null,readonly:!1};let _=m(c.right);return c.optional&&(_={type:"OPTIONAL",value:_,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:c.key.toString(),quoteStyle:lr(c.meta.quote),value:_,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(c,m)=>{if(c.right===void 0)return{type:"RECORD_ENTRY",key:c.key,quoteStyle:"none",value:null,readonly:!1};let _=m(c.right);return c.optional&&(_={type:"OPTIONAL",value:_,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:c.key,quoteStyle:"none",value:_,readonly:!1}},JsdocTypeObject:(c,m)=>{let _=[];for(let N of c.elements)(N.type==="JsdocTypeObjectField"||N.type==="JsdocTypeJsdocObjectField")&&_.push(m(N));return{type:"RECORD",entries:_}},JsdocTypeSpecialNamePath:c=>{if(c.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${c.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:lr(c.meta.quote),path:c.value}}},JsdocTypeNamePath:(c,m)=>{let _=!1,N,H;c.right.type==="JsdocTypeSpecialNamePath"&&c.right.specialType==="event"?(_=!0,N=c.right.value,H=lr(c.right.meta.quote)):(N=c.right.value,H=lr(c.right.meta.quote));let Z={type:op(c.pathType),owner:m(c.left),name:N,quoteStyle:H,hasEventPrefix:_};if(Z.owner.type==="MODULE"){let de=Z.owner;return Z.owner=Z.owner.value,de.value=Z,de}else return Z},JsdocTypeUnion:(c,m)=>Qo("UNION",c.elements.map(m)),JsdocTypeParenthesis:(c,m)=>({type:"PARENTHESIS",value:m(R(c.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:c=>({type:"STRING_VALUE",quoteStyle:lr(c.meta.quote),string:c.value}),JsdocTypeIntersection:(c,m)=>Qo("INTERSECTION",c.elements.map(m)),JsdocTypeNumber:c=>({type:"NUMBER_VALUE",number:c.value.toString()}),JsdocTypeSymbol:Se,JsdocTypeProperty:Se,JsdocTypePredicate:Se,JsdocTypeMappedType:Se,JsdocTypeIndexSignature:Se,JsdocTypeAsserts:Se,JsdocTypeReadonlyArray:Se,JsdocTypeAssertsPlain:Se,JsdocTypeConditional:Se,JsdocTypeTypeParameter:Se};function sp(c){return Sr(ip,c)}function ap(){return{JsdocTypeIntersection:(c,m)=>({type:"JsdocTypeIntersection",elements:c.elements.map(m)}),JsdocTypeGeneric:(c,m)=>({type:"JsdocTypeGeneric",left:m(c.left),elements:c.elements.map(m),meta:{dot:c.meta.dot,brackets:c.meta.brackets}}),JsdocTypeNullable:c=>c,JsdocTypeUnion:(c,m)=>({type:"JsdocTypeUnion",elements:c.elements.map(m)}),JsdocTypeUnknown:c=>c,JsdocTypeUndefined:c=>c,JsdocTypeTypeof:(c,m)=>({type:"JsdocTypeTypeof",element:m(c.element)}),JsdocTypeSymbol:(c,m)=>{let _={type:"JsdocTypeSymbol",value:c.value};return c.element!==void 0&&(_.element=m(c.element)),_},JsdocTypeOptional:(c,m)=>({type:"JsdocTypeOptional",element:m(c.element),meta:{position:c.meta.position}}),JsdocTypeObject:(c,m)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:c.elements.map(m)}),JsdocTypeNumber:c=>c,JsdocTypeNull:c=>c,JsdocTypeNotNullable:(c,m)=>({type:"JsdocTypeNotNullable",element:m(c.element),meta:{position:c.meta.position}}),JsdocTypeSpecialNamePath:c=>c,JsdocTypeObjectField:(c,m)=>({type:"JsdocTypeObjectField",key:c.key,right:c.right===void 0?void 0:m(c.right),optional:c.optional,readonly:c.readonly,meta:c.meta}),JsdocTypeJsdocObjectField:(c,m)=>({type:"JsdocTypeJsdocObjectField",left:m(c.left),right:m(c.right)}),JsdocTypeKeyValue:(c,m)=>({type:"JsdocTypeKeyValue",key:c.key,right:c.right===void 0?void 0:m(c.right),optional:c.optional,variadic:c.variadic}),JsdocTypeImport:(c,m)=>({type:"JsdocTypeImport",element:m(c.element)}),JsdocTypeAny:c=>c,JsdocTypeStringValue:c=>c,JsdocTypeNamePath:c=>c,JsdocTypeVariadic:(c,m)=>{let _={type:"JsdocTypeVariadic",meta:{position:c.meta.position,squareBrackets:c.meta.squareBrackets}};return c.element!==void 0&&(_.element=m(c.element)),_},JsdocTypeTuple:(c,m)=>({type:"JsdocTypeTuple",elements:c.elements.map(m)}),JsdocTypeName:c=>c,JsdocTypeFunction:(c,m)=>{let _={type:"JsdocTypeFunction",arrow:c.arrow,parameters:c.parameters.map(m),constructor:c.constructor,parenthesis:c.parenthesis};return c.returnType!==void 0&&(_.returnType=m(c.returnType)),_},JsdocTypeKeyof:(c,m)=>({type:"JsdocTypeKeyof",element:m(c.element)}),JsdocTypeParenthesis:(c,m)=>({type:"JsdocTypeParenthesis",element:m(c.element)}),JsdocTypeProperty:c=>c,JsdocTypePredicate:(c,m)=>({type:"JsdocTypePredicate",left:m(c.left),right:m(c.right)}),JsdocTypeIndexSignature:(c,m)=>({type:"JsdocTypeIndexSignature",key:c.key,right:m(c.right)}),JsdocTypeMappedType:(c,m)=>({type:"JsdocTypeMappedType",key:c.key,right:m(c.right)}),JsdocTypeAsserts:(c,m)=>({type:"JsdocTypeAsserts",left:m(c.left),right:m(c.right)}),JsdocTypeReadonlyArray:(c,m)=>({type:"JsdocTypeReadonlyArray",element:m(c.element)}),JsdocTypeAssertsPlain:(c,m)=>({type:"JsdocTypeAssertsPlain",element:m(c.element)}),JsdocTypeConditional:(c,m)=>({type:"JsdocTypeConditional",checksType:m(c.checksType),extendsType:m(c.extendsType),trueType:m(c.trueType),falseType:m(c.falseType)}),JsdocTypeTypeParameter:(c,m)=>({type:"JsdocTypeTypeParameter",name:m(c.name),constraint:c.constraint!==void 0?m(c.constraint):void 0,defaultValue:c.defaultValue!==void 0?m(c.defaultValue):void 0})}}let ta={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"],JsdocTypeReadonlyArray:["element"],JsdocTypeAssertsPlain:["element"],JsdocTypeConditional:["checksType","extendsType","trueType","falseType"],JsdocTypeTypeParameter:["name","constraint","defaultValue"]};function Zo(c,m,_,N,H){N==null||N(c,m,_);let Z=ta[c.type];for(let de of Z){let Ae=c[de];if(Ae!==void 0)if(Array.isArray(Ae))for(let Oe of Ae)Zo(Oe,c,de,N,H);else Zo(Ae,c,de,N,H)}H==null||H(c,m,_)}function lp(c,m,_){Zo(c,void 0,void 0,m,_)}r.catharsisTransform=np,r.identityTransformRules=ap,r.jtpTransform=sp,r.parse=Yo,r.stringify=go,r.stringifyRules=he,r.transform=Sr,r.traverse=lp,r.tryParse=Zs,r.visitorKeys=ta})}}),wj=J({"../../node_modules/browser-dtector/browser-dtector.umd.min.js"(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(l,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(l,(f=p.key,h=void 0,typeof(h=function(y,g){if(typeof y!="object"||y===null)return y;var v=y[Symbol.toPrimitive];if(v!==void 0){var b=v.call(y,g);if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(y)}(f,"string"))=="symbol"?h:String(h)),p)}var f,h}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=function(l){var u=new RegExp("^-?\\d+(?:.\\d{0,".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,"})?")),d=Number(l).toString().match(u);return d?d[0]:null},s=function(){return typeof window<"u"?window.navigator:null},a=function(){function l(f){var h;(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,l),this.userAgent=f||((h=s())===null||h===void 0?void 0:h.userAgent)||null}var u,d,p;return u=l,d=[{key:"parseUserAgent",value:function(f){var h,y,g,v={},b=f||this.userAgent||"",E=b.toLowerCase().replace(/\s\s+/g," "),T=/(edge)\/([\w.]+)/.exec(E)||/(edg)[/]([\w.]+)/.exec(E)||/(opr)[/]([\w.]+)/.exec(E)||/(opt)[/]([\w.]+)/.exec(E)||/(fxios)[/]([\w.]+)/.exec(E)||/(edgios)[/]([\w.]+)/.exec(E)||/(jsdom)[/]([\w.]+)/.exec(E)||/(samsungbrowser)[/]([\w.]+)/.exec(E)||/(electron)[/]([\w.]+)/.exec(E)||/(chrome)[/]([\w.]+)/.exec(E)||/(crios)[/]([\w.]+)/.exec(E)||/(opios)[/]([\w.]+)/.exec(E)||/(version)(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(E)||/(webkit)[/]([\w.]+).*(version)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(E)||/(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(E)||/(webkit)[/]([\w.]+)/.exec(E)||/(opera)(?:.*version|)[/]([\w.]+)/.exec(E)||/(msie) ([\w.]+)/.exec(E)||/(fennec)[/]([\w.]+)/.exec(E)||E.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(E)||E.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(E)||[],A=/(ipad)/.exec(E)||/(ipod)/.exec(E)||/(iphone)/.exec(E)||/(jsdom)/.exec(E)||/(windows phone)/.exec(E)||/(xbox)/.exec(E)||/(win)/.exec(E)||/(tablet)/.exec(E)||/(android)/.test(E)&&/(mobile)/.test(E)===!1&&["androidTablet"]||/(android)/.exec(E)||/(mac)/.exec(E)||/(linux)/.exec(E)||/(cros)/.exec(E)||[],P=T[5]||T[3]||T[1]||null,R=A[0]||null,S=T[4]||T[2]||null,w=s();P==="chrome"&&typeof(w==null||(h=w.brave)===null||h===void 0?void 0:h.isBrave)=="function"&&(P="brave"),P&&(v[P]=!0),R&&(v[R]=!0);var O=!!(v.tablet||v.android||v.androidTablet),q=!!(v.ipad||v.tablet||v.androidTablet),M=!!(v.android||v.androidTablet||v.tablet||v.ipad||v.ipod||v.iphone||v["windows phone"]),k=!!(v.cros||v.mac||v.linux||v.win),x=!!(v.brave||v.chrome||v.crios||v.opr||v.safari||v.edg||v.electron),C=!!(v.msie||v.rv);return{name:(y=n[P])!==null&&y!==void 0?y:null,platform:(g=o[R])!==null&&g!==void 0?g:null,userAgent:b,version:S,shortVersion:S?i(parseFloat(S),2):null,isAndroid:O,isTablet:q,isMobile:M,isDesktop:k,isWebkit:x,isIE:C}}},{key:"getBrowserInfo",value:function(){var f=this.parseUserAgent();return{name:f.name,platform:f.platform,userAgent:f.userAgent,version:f.version,shortVersion:f.shortVersion}}}],p=[{key:"VERSION",get:function(){return"3.4.0"}}],d&&r(u.prototype,d),p&&r(u,p),Object.defineProperty(u,"prototype",{writable:!1}),l}();return a})}}),im={};wr(im,{ARGTYPES_INFO_REQUEST:()=>Rw,ARGTYPES_INFO_RESPONSE:()=>yf,CHANNEL_CREATED:()=>Rj,CHANNEL_WS_DISCONNECT:()=>iw,CONFIG_ERROR:()=>sw,CREATE_NEW_STORYFILE_REQUEST:()=>Aj,CREATE_NEW_STORYFILE_RESPONSE:()=>Oj,CURRENT_STORY_WAS_SET:()=>ff,DOCS_PREPARED:()=>aw,DOCS_RENDERED:()=>am,FILE_COMPONENT_SEARCH_REQUEST:()=>Pj,FILE_COMPONENT_SEARCH_RESPONSE:()=>Cj,FORCE_REMOUNT:()=>Xu,FORCE_RE_RENDER:()=>lm,GHOST_STORIES_REQUEST:()=>zj,GHOST_STORIES_RESPONSE:()=>Kj,GLOBALS_UPDATED:()=>Ha,MANAGER_INERT_ATTRIBUTE_CHANGED:()=>Aw,NAVIGATE_URL:()=>Nj,OPEN_IN_EDITOR_REQUEST:()=>Yj,OPEN_IN_EDITOR_RESPONSE:()=>Xj,PLAY_FUNCTION_THREW_EXCEPTION:()=>lw,PRELOAD_ENTRIES:()=>cw,PREVIEW_BUILDER_PROGRESS:()=>xj,PREVIEW_INITIALIZED:()=>dw,PREVIEW_KEYDOWN:()=>pw,REGISTER_SUBSCRIPTION:()=>Ij,REQUEST_WHATS_NEW_DATA:()=>Vj,RESET_STORY_ARGS:()=>um,RESULT_WHATS_NEW_DATA:()=>Uj,SAVE_STORY_REQUEST:()=>Gj,SAVE_STORY_RESPONSE:()=>Wj,SELECT_STORY:()=>Mj,SET_CONFIG:()=>qj,SET_CURRENT_STORY:()=>cm,SET_FILTER:()=>jj,SET_GLOBALS:()=>fw,SET_INDEX:()=>kj,SET_STORIES:()=>Dj,SET_WHATS_NEW_CACHE:()=>Jj,SHARED_STATE_CHANGED:()=>Lj,SHARED_STATE_SET:()=>Fj,SHARE_ISOLATE_MODE:()=>Zj,SHARE_POPOVER_OPENED:()=>ek,SHARE_STORY_LINK:()=>Qj,STORIES_COLLAPSE_ALL:()=>Bj,STORIES_EXPAND_ALL:()=>$j,STORY_ARGS_UPDATED:()=>hw,STORY_CHANGED:()=>mw,STORY_ERRORED:()=>yw,STORY_FINISHED:()=>mf,STORY_HOT_UPDATED:()=>_w,STORY_INDEX_INVALIDATED:()=>gw,STORY_MISSING:()=>hf,STORY_PREPARED:()=>bw,STORY_RENDERED:()=>Qu,STORY_RENDER_PHASE_CHANGED:()=>Ai,STORY_SPECIFIED:()=>vw,STORY_THREW_EXCEPTION:()=>Ew,STORY_UNCHANGED:()=>Tw,TELEMETRY_ERROR:()=>Sw,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>Hj,UNHANDLED_ERRORS_WHILE_PLAYING:()=>uw,UPDATE_GLOBALS:()=>dm,UPDATE_QUERY_PARAMS:()=>ww,UPDATE_STORY_ARGS:()=>pm,default:()=>Sj});var sm=(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_INITIALIZED="previewInitialized",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.GHOST_STORIES_REQUEST="ghostStoriesRequest",e.GHOST_STORIES_RESPONSE="ghostStoriesResponse",e.OPEN_IN_EDITOR_REQUEST="openInEditorRequest",e.OPEN_IN_EDITOR_RESPONSE="openInEditorResponse",e.MANAGER_INERT_ATTRIBUTE_CHANGED="managerInertAttributeChanged",e.SHARE_STORY_LINK="shareStoryLink",e.SHARE_ISOLATE_MODE="shareIsolateMode",e.SHARE_POPOVER_OPENED="sharePopoverOpened",e))(sm||{}),Sj=sm,{CHANNEL_WS_DISCONNECT:iw,CHANNEL_CREATED:Rj,CONFIG_ERROR:sw,CREATE_NEW_STORYFILE_REQUEST:Aj,CREATE_NEW_STORYFILE_RESPONSE:Oj,CURRENT_STORY_WAS_SET:ff,DOCS_PREPARED:aw,DOCS_RENDERED:am,FILE_COMPONENT_SEARCH_REQUEST:Pj,FILE_COMPONENT_SEARCH_RESPONSE:Cj,FORCE_RE_RENDER:lm,FORCE_REMOUNT:Xu,GLOBALS_UPDATED:Ha,NAVIGATE_URL:Nj,PLAY_FUNCTION_THREW_EXCEPTION:lw,UNHANDLED_ERRORS_WHILE_PLAYING:uw,PRELOAD_ENTRIES:cw,PREVIEW_INITIALIZED:dw,PREVIEW_BUILDER_PROGRESS:xj,PREVIEW_KEYDOWN:pw,REGISTER_SUBSCRIPTION:Ij,RESET_STORY_ARGS:um,SELECT_STORY:Mj,SET_CONFIG:qj,SET_CURRENT_STORY:cm,SET_FILTER:jj,SET_GLOBALS:fw,SET_INDEX:kj,SET_STORIES:Dj,SHARED_STATE_CHANGED:Lj,SHARED_STATE_SET:Fj,STORIES_COLLAPSE_ALL:Bj,STORIES_EXPAND_ALL:$j,STORY_ARGS_UPDATED:hw,STORY_CHANGED:mw,STORY_ERRORED:yw,STORY_INDEX_INVALIDATED:gw,STORY_MISSING:hf,STORY_PREPARED:bw,STORY_RENDER_PHASE_CHANGED:Ai,STORY_RENDERED:Qu,STORY_FINISHED:mf,STORY_SPECIFIED:vw,STORY_THREW_EXCEPTION:Ew,STORY_UNCHANGED:Tw,STORY_HOT_UPDATED:_w,UPDATE_GLOBALS:dm,UPDATE_QUERY_PARAMS:ww,UPDATE_STORY_ARGS:pm,REQUEST_WHATS_NEW_DATA:Vj,RESULT_WHATS_NEW_DATA:Uj,SET_WHATS_NEW_CACHE:Jj,TOGGLE_WHATS_NEW_NOTIFICATIONS:Hj,TELEMETRY_ERROR:Sw,SAVE_STORY_REQUEST:Gj,SAVE_STORY_RESPONSE:Wj,ARGTYPES_INFO_REQUEST:Rw,ARGTYPES_INFO_RESPONSE:yf,GHOST_STORIES_REQUEST:zj,GHOST_STORIES_RESPONSE:Kj,OPEN_IN_EDITOR_REQUEST:Yj,OPEN_IN_EDITOR_RESPONSE:Xj,MANAGER_INERT_ATTRIBUTE_CHANGED:Aw,SHARE_STORY_LINK:Qj,SHARE_ISOLATE_MODE:Zj,SHARE_POPOVER_OPENED:ek}=sm,Ow={};wr(Ow,{global:()=>ge});var ge=(()=>{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})(),Pw={"@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__"},tk=Object.keys(Pw),Cw={};wr(Cw,{Channel:()=>Xc,HEARTBEAT_INTERVAL:()=>Zw,HEARTBEAT_MAX_LATENCY:()=>eS,PostMessageTransport:()=>Qw,WebsocketTransport:()=>tS,createBrowserChannel:()=>yF,default:()=>mF});function Le(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(a,l){var u=l.match(/\n([\t ]+|(?!\s).)/g);return u?a.concat(u.map(function(d){var p,f;return(f=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&f!==void 0?f:0})):a},[]);if(o.length){var i=new RegExp(`
|
|
18
|
+
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(a){return a.replace(i,`
|
|
19
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var s=n[0];return t.forEach(function(a,l){var u=s.match(/(?:^|\n)( *)$/),d=u?u[1]:"",p=a;typeof a=="string"&&a.includes(`
|
|
20
|
+
`)&&(p=String(a).split(`
|
|
21
|
+
`).map(function(f,h){return h===0?f:""+d+f}).join(`
|
|
22
|
+
`)),s+=p+n[l+1]}),s}var ab=new Map,rk="UNIVERSAL_STORE:",jr={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},si=class Ce{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=()=>(this.debug("getState",{state:this.state}),this.state),this.subscribe=(n,o)=>{let i=typeof n=="function",s=i?"*":n,a=i?n:o;if(this.debug("subscribe",{eventType:s,listener:a}),!a)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(a),()=>{var l;this.debug("unsubscribe",{eventType:s,listener:a}),this.listeners.has(s)&&(this.listeners.get(s).delete(a),((l=this.listeners.get(s))==null?void 0:l.size)===0&&this.listeners.delete(s))}},this.send=n=>{if(this.debug("send",{event:n}),this.status!==Ce.Status.READY)throw new TypeError(Le`Cannot send event before store is ready. You can get the current status with store.status,
|
|
23
|
+
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
24
|
+
${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})},this.debugging=t.debug??!1,!Ce.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(Ce.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?Ce.ActorType.LEADER:Ce.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${rk}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===Ce.ActorType.LEADER)this.syncing={state:jr.RESOLVED,promise:Promise.resolve()};else{let n,o,i=new Promise((s,a)=>{n=()=>{this.syncing.state===jr.PENDING&&(this.syncing.state=jr.RESOLVED,s())},o=l=>{this.syncing.state===jr.PENDING&&(this.syncing.state=jr.REJECTED,a(l))}});this.syncing={state:jr.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==null?void 0:r.channel)??Ce.preparation.channel,this.environment=(r==null?void 0:r.environment)??Ce.preparation.environment,this.channel&&this.environment?(Ce.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):Ce.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((o,i)=>{t=s=>{o(s)},r=(...s)=>{i(s)}});Ce.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??Ce.Environment.UNKNOWN})}get status(){var t;if(!this.channel||!this.environment)return Ce.Status.UNPREPARED;switch((t=this.syncing)==null?void 0:t.state){case jr.PENDING:case void 0:return Ce.Status.SYNCING;case jr.REJECTED:return Ce.Status.ERROR;case jr.RESOLVED:default:return Ce.Status.READY}}untilReady(){var t;return Promise.all([Ce.preparation.promise,(t=this.syncing)==null?void 0:t.promise])}static create(t){if(!t||typeof(t==null?void 0:t.id)!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(Le`[UniversalStore]
|
|
25
|
+
create`,{options:t});let r=ab.get(t.id);if(r)return console.warn(Le`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
|
|
26
|
+
You should reuse the existing instance instead of trying to create a new one.`),r;Ce.isInternalConstructing=!0;let n=new Ce(t);return ab.set(t.id,n),n}static __prepare(t,r){Ce.preparation.channel=t,Ce.preparation.environment=r,Ce.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!==Ce.Status.READY)throw new TypeError(Le`Cannot set state before store is ready. You can get the current status with store.status,
|
|
27
|
+
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
28
|
+
${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let o={type:Ce.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(Ce.InternalEventType.SET_STATE,({payload:r},n)=>{t(r.state,r.previousState,n)})}emitToChannel(t,r){var n;this.debug("emitToChannel",{event:t,eventInfo:r,channel:!!this.channel}),(n=this.channel)==null||n.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===Ce.ActorType.LEADER?this.emitToChannel({type:Ce.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:Ce.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:Ce.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){var o,i,s,a,l;let{event:r,eventInfo:n}=t;if([n.actor.id,(o=n.forwardingActor)==null?void 0:o.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(((i=this.syncing)==null?void 0:i.state)===jr.PENDING&&r.type!==Ce.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===Ce.ActorType.LEADER){let u=!0;switch(r.type){case Ce.InternalEventType.EXISTING_STATE_REQUEST:u=!1;let d={type:Ce.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:d}),this.emitToChannel(d,{actor:this.actor}),this.emitToListeners(d,{actor:this.actor});break;case Ce.InternalEventType.LEADER_CREATED:u=!1,this.syncing.state=jr.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(Le`Detected multiple UniversalStore leaders created with the same id "${this.id}".
|
|
29
|
+
Only one leader can exists at a time, your stores are now in an invalid state.
|
|
30
|
+
Leaders detected:
|
|
31
|
+
this: ${JSON.stringify(this.actor,null,2)}
|
|
32
|
+
other: ${JSON.stringify(n.actor,null,2)}`);break}u&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===Ce.ActorType.FOLLOWER)switch(r.type){case Ce.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),((s=this.syncing)==null?void 0:s.state)!==jr.PENDING)break;(l=(a=this.syncing).resolve)==null||l.call(a);let u={type:Ce.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(u,n);break}switch(r.type){case Ce.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(Le`[UniversalStore::${this.id}::${this.environment??Ce.Environment.UNKNOWN}]
|
|
33
|
+
${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){Ce.preparation.reject(new Error("reset")),Ce.setupPreparationPromise(),Ce.isInternalConstructing=!1}};si.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},si.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},si.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"},si.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},si.isInternalConstructing=!1,si.setupPreparationPromise();var up=si,nk=e=>e.transports!==void 0,ok=()=>Math.random().toString(16).slice(2),Xc=class{constructor(e={}){this.sender=ok(),this.events={},this.data={},this.transports=[],this.isAsync=e.async||!1,nk(e)?(this.transports=e.transports||[],this.transports.forEach(t=>{t.setHandler(r=>this.handleEvent(r))})):this.transports=e.transport?[e.transport]:[],this.transports.forEach(t=>{t.setHandler(r=>this.handleEvent(r))})}get hasTransport(){return this.transports.length>0}addListener(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)}emit(e,...t){let r={type:e,args:t,from:this.sender},n={};t.length>=1&&t[0]&&t[0].options&&(n=t[0].options);let o=()=>{this.transports.forEach(i=>{i.send(r,n)}),this.handleEvent(r)};this.isAsync?setImmediate(o):o()}last(e){return this.data[e]}eventNames(){return Object.keys(this.events)}listenerCount(e){let t=this.listeners(e);return t?t.length:0}listeners(e){return this.events[e]||void 0}once(e,t){let r=this.onceListener(e,t);this.addListener(e,r)}removeAllListeners(e){e?this.events[e]&&delete this.events[e]:this.events={}}removeListener(e,t){let r=this.listeners(e);r&&(this.events[e]=r.filter(n=>n!==t))}on(e,t){this.addListener(e,t)}off(e,t){this.removeListener(e,t)}handleEvent(e){let t=this.listeners(e.type);t&&t.length&&t.forEach(r=>{r.apply(e,e.args)}),this.data[e.type]=e.args}onceListener(e,t){let r=(...n)=>(this.removeListener(e,r),t(...n));return r}},Nw={};wr(Nw,{deprecate:()=>fm,logger:()=>ut,once:()=>Et,pretty:()=>xr});var{LOGLEVEL:ik}=ge,Oo={trace:1,debug:2,info:3,warn:4,error:5,silent:10},sk=ik,Ji=Oo[sk]||Oo.info,ut={trace:(e,...t)=>{Ji<=Oo.trace&&console.trace(e,...t)},debug:(e,...t)=>{Ji<=Oo.debug&&console.debug(e,...t)},info:(e,...t)=>{Ji<=Oo.info&&console.info(e,...t)},warn:(e,...t)=>{Ji<=Oo.warn&&console.warn(e,...t)},error:(e,...t)=>{Ji<=Oo.error&&console.error(e,...t)},log:(e,...t)=>{Ji<Oo.silent&&console.log(e,...t)}},gf=new Set,Et=e=>(t,...r)=>{if(!gf.has(t))return gf.add(t),ut[e](t,...r)};Et.clear=()=>gf.clear();Et.trace=Et("trace");Et.debug=Et("debug");Et.info=Et("info");Et.warn=Et("warn");Et.error=Et("error");Et.log=Et("log");var fm=Et("warn"),xr=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])}ut[e].apply(ut,r)};xr.trace=xr("trace");xr.debug=xr("debug");xr.info=xr("info");xr.warn=xr("warn");xr.error=xr("error");var ak=Object.create,xw=Object.defineProperty,lk=Object.getOwnPropertyDescriptor,Iw=Object.getOwnPropertyNames,uk=Object.getPrototypeOf,ck=Object.prototype.hasOwnProperty,Ie=(e,t)=>function(){return t||(0,e[Iw(e)[0]])((t={exports:{}}).exports,t),t.exports},dk=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Iw(t))!ck.call(e,o)&&o!==r&&xw(e,o,{get:()=>t[o],enumerable:!(n=lk(t,o))||n.enumerable});return e},hm=(e,t,r)=>(r=e!=null?ak(uk(e)):{},dk(!e||!e.__esModule?xw(r,"default",{value:e,enumerable:!0}):r,e)),pk=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],fk=["detail"];function hk(e){let t=pk.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of fk.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var Mw=Ie({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),mk=Ie({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),yk=Ie({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),gk=Ie({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),bk=Ie({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),vk=Ie({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),mm=Ie({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),Ek=Ie({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),Tk=Ie({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),_k=Ie({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),wk=Ie({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),Sk=Ie({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),Rk=Ie({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),Ak=Ie({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),Ok=Ie({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),Pk=Ie({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=Ok();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),Ck=Ie({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),ym=Ie({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=Ck();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),Nk=Ie({"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}}),qw=Ie({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=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 a=Object.getOwnPropertySymbols(r);if(a.length!==1||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,n);if(l.value!==i||l.enumerable!==!0)return!1}return!0}}}),jw=Ie({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=qw();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),kw=Ie({"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}}),Dw=Ie({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=Mw();t.exports=r.getPrototypeOf||null}}),xk=Ie({"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=function(u,d){for(var p=[],f=0;f<u.length;f+=1)p[f]=u[f];for(var h=0;h<d.length;h+=1)p[h+u.length]=d[h];return p},a=function(u,d){for(var p=[],f=d,h=0;f<u.length;f+=1,h+=1)p[h]=u[f];return p},l=function(u,d){for(var p="",f=0;f<u.length;f+=1)p+=u[f],f+1<u.length&&(p+=d);return p};t.exports=function(u){var d=this;if(typeof d!="function"||n.apply(d)!==i)throw new TypeError(r+d);for(var p=a(arguments,1),f,h=function(){if(this instanceof f){var E=d.apply(this,s(p,arguments));return Object(E)===E?E:this}return d.apply(u,s(p,arguments))},y=o(0,d.length-p.length),g=[],v=0;v<y;v++)g[v]="$"+v;if(f=Function("binder","return function ("+l(g,",")+"){ return binder.apply(this,arguments); }")(h),d.prototype){var b=function(){};b.prototype=d.prototype,f.prototype=new b,b.prototype=null}return f}}}),Qc=Ie({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=xk();t.exports=Function.prototype.bind||r}}),gm=Ie({"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}}),Lw=Ie({"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}}),Ik=Ie({"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}}),Mk=Ie({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Qc(),n=Lw(),o=gm(),i=Ik();t.exports=i||r.call(o,n)}}),Fw=Ie({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Qc(),n=mm(),o=gm(),i=Mk();t.exports=function(s){if(s.length<1||typeof s[0]!="function")throw new n("a function is required");return i(r,o,s)}}}),qk=Ie({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=Fw(),n=ym(),o;try{o=[].__proto__===Array.prototype}catch(l){if(!l||typeof l!="object"||!("code"in l)||l.code!=="ERR_PROTO_ACCESS")throw l}var i=!!o&&n&&n(Object.prototype,"__proto__"),s=Object,a=s.getPrototypeOf;t.exports=i&&typeof i.get=="function"?r([i.get]):typeof a=="function"?function(l){return a(l==null?l:s(l))}:!1}}),jk=Ie({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=kw(),n=Dw(),o=qk();t.exports=r?function(i){return r(i)}:n?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return n(i)}:o?function(i){return o(i)}:null}}),Bw=Ie({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=Qc();t.exports=o.call(r,n)}}),kk=Ie({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=Mw(),o=mk(),i=yk(),s=gk(),a=bk(),l=vk(),u=mm(),d=Ek(),p=Tk(),f=_k(),h=wk(),y=Sk(),g=Rk(),v=Ak(),b=Pk(),E=Function,T=function(te){try{return E('"use strict"; return ('+te+").constructor;")()}catch{}},A=ym(),P=Nk(),R=function(){throw new u},S=A?function(){try{return arguments.callee,R}catch{try{return A(arguments,"callee").get}catch{return R}}}():R,w=jw()(),O=jk(),q=Dw(),M=kw(),k=Lw(),x=gm(),C={},j=typeof Uint8Array>"u"||!O?r:O(Uint8Array),F={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":w&&O?O([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":C,"%AsyncGenerator%":C,"%AsyncGeneratorFunction%":C,"%AsyncIteratorPrototype%":C,"%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%":E,"%GeneratorFunction%":C,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&O?O(O([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!w||!O?r:O(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%":a,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!w||!O?r:O(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&O?O(""[Symbol.iterator]()):r,"%Symbol%":w?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":S,"%TypedArray%":j,"%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%":x,"%Function.prototype.apply%":k,"%Object.defineProperty%":P,"%Object.getPrototypeOf%":q,"%Math.abs%":p,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":y,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":b,"%Reflect.getPrototypeOf%":M};if(O)try{null.error}catch(te){V=O(O(te)),F["%Error.prototype%"]=V}var V,G=function te(ce){var I;if(ce==="%AsyncFunction%")I=T("async function () {}");else if(ce==="%GeneratorFunction%")I=T("function* () {}");else if(ce==="%AsyncGeneratorFunction%")I=T("async function* () {}");else if(ce==="%AsyncGenerator%"){var D=te("%AsyncGeneratorFunction%");D&&(I=D.prototype)}else if(ce==="%AsyncIteratorPrototype%"){var U=te("%AsyncGenerator%");U&&O&&(I=O(U.prototype))}return F[ce]=I,I},se={__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"]},me=Qc(),be=Bw(),Q=me.call(x,Array.prototype.concat),ee=me.call(k,Array.prototype.splice),ve=me.call(x,String.prototype.replace),pe=me.call(x,String.prototype.slice),ie=me.call(x,RegExp.prototype.exec),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oe=/\\(\\)?/g,le=function(te){var ce=pe(te,0,1),I=pe(te,-1);if(ce==="%"&&I!=="%")throw new l("invalid intrinsic syntax, expected closing `%`");if(I==="%"&&ce!=="%")throw new l("invalid intrinsic syntax, expected opening `%`");var D=[];return ve(te,Y,function(U,X,K,re){D[D.length]=K?ve(re,oe,"$1"):X||U}),D},$=function(te,ce){var I=te,D;if(be(se,I)&&(D=se[I],I="%"+D[0]+"%"),be(F,I)){var U=F[I];if(U===C&&(U=G(I)),typeof U>"u"&&!ce)throw new u("intrinsic "+te+" exists, but is not available. Please file an issue!");return{alias:D,name:I,value:U}}throw new l("intrinsic "+te+" does not exist!")};t.exports=function(te,ce){if(typeof te!="string"||te.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ce!="boolean")throw new u('"allowMissing" argument must be a boolean');if(ie(/^%?[^%]*%?$/,te)===null)throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var I=le(te),D=I.length>0?I[0]:"",U=$("%"+D+"%",ce),X=U.name,K=U.value,re=!1,fe=U.alias;fe&&(D=fe[0],ee(I,Q([0,1],fe)));for(var ue=1,ae=!0;ue<I.length;ue+=1){var ne=I[ue],_e=pe(ne,0,1),ye=pe(ne,-1);if((_e==='"'||_e==="'"||_e==="`"||ye==='"'||ye==="'"||ye==="`")&&_e!==ye)throw new l("property names with quotes must have matching quotes");if((ne==="constructor"||!ae)&&(re=!0),D+="."+ne,X="%"+D+"%",be(F,X))K=F[X];else if(K!=null){if(!(ne in K)){if(!ce)throw new u("base intrinsic for "+te+" exists, but the property is not available.");return}if(A&&ue+1>=I.length){var Te=A(K,ne);ae=!!Te,ae&&"get"in Te&&!("originalValue"in Te.get)?K=Te.get:K=K[ne]}else ae=be(K,ne),K=K[ne];ae&&!re&&(F[X]=K)}}return K}}}),bm=Ie({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=kk(),n=Fw(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(i,s){var a=r(i,!!s);return typeof a=="function"&&o(i,".prototype.")>-1?n([a]):a}}}),Dk=Ie({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=qw();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),$w=Ie({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=bm(),n=Dk()(),o=Bw(),i=ym(),s;n?(a=r("RegExp.prototype.exec"),l={},u=function(){throw l},d={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(d[Symbol.toPrimitive]=u),s=function(h){if(!h||typeof h!="object")return!1;var y=i(h,"lastIndex"),g=y&&o(y,"value");if(!g)return!1;try{a(h,d)}catch(v){return v===l}}):(p=r("Object.prototype.toString"),f="[object RegExp]",s=function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:p(h)===f});var a,l,u,d,p,f;t.exports=s}}),Lk=Ie({"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)}}}),Fk=Ie({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=bm(),n=$w(),o=r("RegExp.prototype.exec"),i=mm();t.exports=function(s){if(!n(s))throw new i("`regex` must be a RegExp");return function(a){return o(s,a)!==null}}}}),Bk=Ie({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=bm(),n=r("Object.prototype.toString"),o=jw()(),i=Fk();o?(s=r("Symbol.prototype.toString"),a=i(/^Symbol\(.*\)$/),l=function(u){return typeof u.valueOf()!="symbol"?!1:a(s(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return l(u)}catch{return!1}}):t.exports=function(u){return!1};var s,a,l}}),$k=hm($w()),Vk=hm(Lk()),Uk=hm(Bk());function Jk(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var Hk=typeof global=="object"&&global&&global.Object===Object&&global,Gk=Hk,Wk=typeof self=="object"&&self&&self.Object===Object&&self,zk=Gk||Wk||Function("return this")(),vm=zk,Kk=vm.Symbol,bs=Kk,Vw=Object.prototype,Yk=Vw.hasOwnProperty,Xk=Vw.toString,na=bs?bs.toStringTag:void 0;function Qk(e){var t=Yk.call(e,na),r=e[na];try{e[na]=void 0;var n=!0}catch{}var o=Xk.call(e);return n&&(t?e[na]=r:delete e[na]),o}var Zk=Qk,eD=Object.prototype,tD=eD.toString;function rD(e){return tD.call(e)}var nD=rD,oD="[object Null]",iD="[object Undefined]",lb=bs?bs.toStringTag:void 0;function sD(e){return e==null?e===void 0?iD:oD:lb&&lb in Object(e)?Zk(e):nD(e)}var Uw=sD;function aD(e){return e!=null&&typeof e=="object"}var lD=aD,uD="[object Symbol]";function cD(e){return typeof e=="symbol"||lD(e)&&Uw(e)==uD}var Em=cD;function dD(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}var pD=dD,fD=Array.isArray,Tm=fD,ub=bs?bs.prototype:void 0,cb=ub?ub.toString:void 0;function Jw(e){if(typeof e=="string")return e;if(Tm(e))return pD(e,Jw)+"";if(Em(e))return cb?cb.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var hD=Jw;function mD(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Hw=mD,yD="[object AsyncFunction]",gD="[object Function]",bD="[object GeneratorFunction]",vD="[object Proxy]";function ED(e){if(!Hw(e))return!1;var t=Uw(e);return t==gD||t==bD||t==yD||t==vD}var TD=ED,_D=vm["__core-js_shared__"],cp=_D,db=function(){var e=/[^.]+$/.exec(cp&&cp.keys&&cp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function wD(e){return!!db&&db in e}var SD=wD,RD=Function.prototype,AD=RD.toString;function OD(e){if(e!=null){try{return AD.call(e)}catch{}try{return e+""}catch{}}return""}var PD=OD,CD=/[\\^$.*+?()[\]{}|]/g,ND=/^\[object .+?Constructor\]$/,xD=Function.prototype,ID=Object.prototype,MD=xD.toString,qD=ID.hasOwnProperty,jD=RegExp("^"+MD.call(qD).replace(CD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kD(e){if(!Hw(e)||SD(e))return!1;var t=TD(e)?jD:ND;return t.test(PD(e))}var DD=kD;function LD(e,t){return e==null?void 0:e[t]}var FD=LD;function BD(e,t){var r=FD(e,t);return DD(r)?r:void 0}var Gw=BD;function $D(e,t){return e===t||e!==e&&t!==t}var VD=$D,UD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,JD=/^\w*$/;function HD(e,t){if(Tm(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Em(e)?!0:JD.test(e)||!UD.test(e)||t!=null&&e in Object(t)}var GD=HD,WD=Gw(Object,"create"),Ga=WD;function zD(){this.__data__=Ga?Ga(null):{},this.size=0}var KD=zD;function YD(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var XD=YD,QD="__lodash_hash_undefined__",ZD=Object.prototype,eL=ZD.hasOwnProperty;function tL(e){var t=this.__data__;if(Ga){var r=t[e];return r===QD?void 0:r}return eL.call(t,e)?t[e]:void 0}var rL=tL,nL=Object.prototype,oL=nL.hasOwnProperty;function iL(e){var t=this.__data__;return Ga?t[e]!==void 0:oL.call(t,e)}var sL=iL,aL="__lodash_hash_undefined__";function lL(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ga&&t===void 0?aL:t,this}var uL=lL;function Vs(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])}}Vs.prototype.clear=KD;Vs.prototype.delete=XD;Vs.prototype.get=rL;Vs.prototype.has=sL;Vs.prototype.set=uL;var pb=Vs;function cL(){this.__data__=[],this.size=0}var dL=cL;function pL(e,t){for(var r=e.length;r--;)if(VD(e[r][0],t))return r;return-1}var Zc=pL,fL=Array.prototype,hL=fL.splice;function mL(e){var t=this.__data__,r=Zc(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():hL.call(t,r,1),--this.size,!0}var yL=mL;function gL(e){var t=this.__data__,r=Zc(t,e);return r<0?void 0:t[r][1]}var bL=gL;function vL(e){return Zc(this.__data__,e)>-1}var EL=vL;function TL(e,t){var r=this.__data__,n=Zc(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var _L=TL;function Us(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])}}Us.prototype.clear=dL;Us.prototype.delete=yL;Us.prototype.get=bL;Us.prototype.has=EL;Us.prototype.set=_L;var wL=Us,SL=Gw(vm,"Map"),RL=SL;function AL(){this.size=0,this.__data__={hash:new pb,map:new(RL||wL),string:new pb}}var OL=AL;function PL(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var CL=PL;function NL(e,t){var r=e.__data__;return CL(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ed=NL;function xL(e){var t=ed(this,e).delete(e);return this.size-=t?1:0,t}var IL=xL;function ML(e){return ed(this,e).get(e)}var qL=ML;function jL(e){return ed(this,e).has(e)}var kL=jL;function DL(e,t){var r=ed(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var LL=DL;function Js(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])}}Js.prototype.clear=OL;Js.prototype.delete=IL;Js.prototype.get=qL;Js.prototype.has=kL;Js.prototype.set=LL;var Ww=Js,FL="Expected a function";function _m(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(FL);var r=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};return r.cache=new(_m.Cache||Ww),r}_m.Cache=Ww;var BL=_m,$L=500;function VL(e){var t=BL(e,function(n){return r.size===$L&&r.clear(),n}),r=t.cache;return t}var UL=VL,JL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,HL=/\\(\\)?/g,GL=UL(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(JL,function(r,n,o,i){t.push(o?i.replace(HL,"$1"):n||r)}),t}),WL=GL;function zL(e){return e==null?"":hD(e)}var KL=zL;function YL(e,t){return Tm(e)?e:GD(e,t)?[e]:WL(KL(e))}var XL=YL;function QL(e){if(typeof e=="string"||Em(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var ZL=QL;function eF(e,t){t=XL(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ZL(t[r++])];return r&&r==n?e:void 0}var tF=eF;function rF(e,t,r){var n=e==null?void 0:tF(e,t);return n===void 0?r:n}var nF=rF,wm=Jk,oF=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Sm=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function zw(e){if(!wm(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=hk(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}var iF=function(e){let t,r,n,o;return function(i,s){var a;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 oF.test(s)?e.allowDate?`_date_${s}`:void 0:s;if((0,$k.default)(s))return e.allowRegExp?`_regexp_${s.flags}|${s.source}`:void 0;if((0,Vk.default)(s))return;if((0,Uk.default)(s)){if(!e.allowSymbol)return;let d=Symbol.keyFor(s);return d!==void 0?`_gsymbol_${d}`:`_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((a=s==null?void 0:s.constructor)!=null&&a.name&&s.constructor.name!=="Object"&&!Array.isArray(s)){let d=t.get(s);if(!d){let p={__isClassInstance__:!0,__className__:s.constructor.name,...Object.getOwnPropertyNames(s).reduce((f,h)=>{try{f[h]=s[h]}catch{}return f},{})};return o.push(i),n.unshift(p),t.set(s,JSON.stringify(o)),s!==p&&r.set(s,p),p}return`_duplicate_${d}`}let u=t.get(s);if(!u){let d=Array.isArray(s)?s:zw(s);return o.push(i),n.unshift(d),t.set(s,JSON.stringify(o)),s!==d&&r.set(s,d),d}return`_duplicate_${u}`}catch{return}}},sF=function(e){let t=[],r;return function(n,o){if(n===""&&(r=o,t.forEach(({target:i,container:s,replacement:a})=>{let l=Sm(a)?JSON.parse(a):a.split(".");l.length===0?s[i]=r:s[i]=nF(r,l)})),n==="_constructor-name_")return o;if(wm(o)&&o.__isConvertedError__){let{message:i,...s}=o.errorProperties,a=new Error(i);return Object.assign(a,s),a}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}},Kw={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},Yw=(e,t={})=>{let r={...Kw,...t};return JSON.stringify(zw(e),iF(r),t.space)},aF=()=>{let e=new Map;return function t(r){wm(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))})}},Xw=(e,t={})=>{let r={...Kw,...t},n=JSON.parse(e,sF(r));return aF()(n),n},lF="Invariant failed";function Yn(e,t){if(!e)throw new Error(lF)}var uF=(e,t)=>{if(e.length===1)return e[0];if(!(e.length===0||!t))return e.find(r=>(r.getAttribute("src")??"").includes(`refId=${encodeURIComponent(t)}`))},cF=(e,t)=>{var o;let r=Array.from(document.querySelectorAll("iframe[data-is-storybook]")).filter(i=>{var l,u;try{return((l=i.contentWindow)==null?void 0:l.location.origin)===e.source.location.origin&&((u=i.contentWindow)==null?void 0:u.location.pathname)===e.source.location.pathname}catch{}try{return i.contentWindow===e.source}catch{}let s=i.getAttribute("src"),a;try{if(!s)return!1;({origin:a}=new URL(s,document.location.toString()))}catch{return!1}return a===e.origin}),n=(o=uF(r,t))==null?void 0:o.getAttribute("src");if(n){let{protocol:i,host:s,pathname:a}=new URL(n,document.location.toString());return`${i}//${s}${a}`}return r.length>1&&ut.error("found multiple candidates for event source"),null},{document:dp,location:oa}=ge,fb="storybook-channel",dF={maxDepth:25},Qw=class{constructor(e){if(this.config=e,this.connected=!1,this.buffer=[],typeof(ge==null?void 0:ge.addEventListener)=="function"&&ge.addEventListener("message",this.handleEvent.bind(this),!1),e.page!=="manager"&&e.page!=="preview")throw new Error(`postmsg-channel: "config.page" cannot be "${e.page}"`)}setHandler(e){this.handler=(...t)=>{e.apply(this,t),!this.connected&&this.getLocalFrame().length&&(this.flush(),this.connected=!0)}}send(e,t){let{target:r,allowRegExp:n,allowSymbol:o,allowDate:i,allowError:s,allowUndefined:a,maxDepth:l,space:u}=t||{},d=Object.fromEntries(Object.entries({allowRegExp:n,allowSymbol:o,allowDate:i,allowError:s,allowUndefined:a,maxDepth:l,space:u}).filter(([g,v])=>typeof v<"u")),p={...dF,...ge.CHANNEL_OPTIONS||{},...d},f=this.getFrames(r),h=new URLSearchParams((oa==null?void 0:oa.search)||""),y=Yw({key:fb,event:e,refId:h.get("refId")},p);return f.length?(this.buffer.length&&this.flush(),f.forEach(g=>{try{g.postMessage(y,"*")}catch{ut.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((g,v)=>{this.buffer.push({event:e,resolve:g,reject:v})})}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(t=>{this.send(t.event).then(t.resolve).catch(t.reject)})}getFrames(e){if(this.config.page==="manager"){let t=Array.from(dp.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")).flatMap(r=>{try{return r.contentWindow&&r.dataset.isStorybook!==void 0&&r.id===e?[r.contentWindow]:[]}catch{return[]}});return t!=null&&t.length?t:this.getCurrentFrames()}return ge&&ge.parent&&ge.parent!==ge.self?[ge.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from(dp.querySelectorAll('[data-is-storybook="true"]')).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):ge&&ge.parent?[ge.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from(dp.querySelectorAll("#storybook-preview-iframe")).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):ge&&ge.parent?[ge.parent]:[]}handleEvent(e){try{let{data:t}=e,{key:r,event:n,refId:o}=typeof t=="string"&&Sm(t)?Xw(t,ge.CHANNEL_OPTIONS||{}):t;if(r===fb){let i=this.config.page==="manager"?'<span style="color: #37D5D3; background: black"> manager </span>':'<span style="color: #1EA7FD; background: black"> preview </span>',s=Object.values(im).includes(n.type)?`<span style="color: #FF4785">${n.type}</span>`:`<span style="color: #FFAE00">${n.type}</span>`;if(o&&(n.refId=o),n.source=this.config.page==="preview"?e.origin:cF(e,o),!n.source){xr.error(`${i} received ${s} but was unable to determine the source of the event`);return}let a=`${i} received ${s} (${t.length})`;xr.debug(oa.origin!==n.source?a:`${a} <span style="color: gray">(on ${oa.origin} from ${n.source})</span>`,...n.args),Yn(this.handler,"ChannelHandler should be set"),this.handler(n)}}catch(t){ut.error(t)}}},{WebSocket:pF}=ge,Zw=15e3,eS=5e3,tS=class{constructor({url:e,onError:t,page:r}){this.buffer=[],this.isReady=!1,this.isClosed=!1,this.pingTimeout=0,this.socket=new pF(e),this.socket.onopen=()=>{this.isReady=!0,this.heartbeat(),this.flush()},this.socket.onmessage=({data:n})=>{let o=typeof n=="string"&&Sm(n)?Xw(n):n;Yn(this.handler),this.handler(o),o.type==="ping"&&(this.heartbeat(),this.send({type:"pong"}))},this.socket.onerror=n=>{t&&t(n)},this.socket.onclose=n=>{Yn(this.handler),this.handler({type:iw,args:[{reason:n.reason,code:n.code}],from:r||"preview"}),this.isClosed=!0,clearTimeout(this.pingTimeout)}}heartbeat(){clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{this.socket.close(3008,"timeout")},Zw+eS)}setHandler(e){this.handler=e}send(e){this.isClosed||(this.isReady?this.sendNow(e):this.sendLater(e))}sendLater(e){this.buffer.push(e)}sendNow(e){let t=Yw(e,{maxDepth:15,...ge.CHANNEL_OPTIONS});this.socket.send(t)}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(t=>this.send(t))}},{CHANNEL_OPTIONS:fF,CONFIG_TYPE:hF}=ge,mF=Xc;function yF({page:e,extraTransports:t=[]}){let r=[new Qw({page:e}),...t];if(hF==="DEVELOPMENT"){let o=window.location.protocol==="http:"?"ws":"wss",{hostname:i,port:s}=window.location,{wsToken:a}=fF||{},l=`${o}://${i}:${s}/storybook-server-channel?token=${a}`;r.push(new tS({url:l,onError:()=>{},page:e}))}let n=new Xc({transports:r});return up.__prepare(n,e==="manager"?up.Environment.MANAGER:up.Environment.PREVIEW),n}var rS={};wr(rS,{CalledExtractOnStoreError:()=>aS,CalledPreviewMethodBeforeInitializationError:()=>Ar,Category:()=>oS,ElementA11yParameterError:()=>_F,EmptyIndexError:()=>dS,ImplicitActionsDuringRendering:()=>sS,MdxFileWithNoCsfReferencesError:()=>cS,MissingRenderToCanvasError:()=>lS,MissingStoryAfterHmrError:()=>iS,MissingStoryFromCsfFileError:()=>fS,MountMustBeDestructuredError:()=>Rm,NextJsSharpError:()=>bF,NextjsRouterMocksNotAvailable:()=>vF,NoRenderFunctionError:()=>mS,NoStoryMatchError:()=>pS,NoStoryMountedError:()=>yS,StatusTypeIdMismatchError:()=>gF,StoryIndexFetchError:()=>uS,StoryStoreAccessedBeforeInitializationError:()=>hS,UnknownArgTypesError:()=>EF,UnsupportedViewportDimensionError:()=>TF});function hb({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function mb(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}}var Pt=class nS extends Error{constructor(t){super(nS.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code,this.isHandledError=t.isHandledError??!1,this.name=t.name,this.subErrors=t.subErrors??[]}get fullErrorCode(){return hb({code:this.code,category:this.category})}get name(){let t=this._name||this.constructor.name;return`${this.fullErrorCode} (${t})`}set name(t){this._name=t}static getFullMessage({documentation:t,code:r,category:n,message:o}){let i;return t===!0?i=`https://storybook.js.org/error/${hb({code:r,category:n})}?ref=error`:typeof t=="string"?i=mb(t):Array.isArray(t)&&(i=`
|
|
34
|
+
${t.map(s=>` - ${mb(s)}`).join(`
|
|
35
|
+
`)}`),`${o}${i!=null?`
|
|
36
|
+
|
|
37
|
+
More info: ${i}
|
|
38
|
+
`:""}`}},oS=(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))(oS||{}),iS=class extends Pt{constructor(e){super({name:"MissingStoryAfterHmrError",category:"PREVIEW_API",code:1,message:Le`
|
|
39
|
+
Couldn't find story matching id '${e.storyId}' after HMR.
|
|
40
|
+
- Did you just rename a story?
|
|
41
|
+
- Did you remove it from your CSF file?
|
|
42
|
+
- Are you sure a story with the id '${e.storyId}' exists?
|
|
43
|
+
- Please check the values in the stories field of your main.js config and see if they would match your CSF File.
|
|
44
|
+
- Also check the browser console and terminal for potential error messages.`}),this.data=e}},sS=class extends Pt{constructor(e){super({name:"ImplicitActionsDuringRendering",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:Le`
|
|
45
|
+
We detected that you use an implicit action arg while ${e.phase} of your story.
|
|
46
|
+
${e.deprecated?`
|
|
47
|
+
This is deprecated and won't work in Storybook 8 anymore.
|
|
48
|
+
`:""}
|
|
49
|
+
Please provide an explicit spy to your args like this:
|
|
50
|
+
import { fn } from 'storybook/test';
|
|
51
|
+
...
|
|
52
|
+
args: {
|
|
53
|
+
${e.name}: fn()
|
|
54
|
+
}`}),this.data=e}},aS=class extends Pt{constructor(){super({name:"CalledExtractOnStoreError",category:"PREVIEW_API",code:3,message:Le`
|
|
55
|
+
Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
|
|
56
|
+
|
|
57
|
+
You probably meant to call \`await preview.extract()\` which does the above for you.`})}},lS=class extends Pt{constructor(){super({name:"MissingRenderToCanvasError",category:"PREVIEW_API",code:4,message:Le`
|
|
58
|
+
Expected your framework's preset to export a \`renderToCanvas\` field.
|
|
59
|
+
|
|
60
|
+
Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}},Ar=class extends Pt{constructor(e){super({name:"CalledPreviewMethodBeforeInitializationError",category:"PREVIEW_API",code:5,message:Le`
|
|
61
|
+
Called \`Preview.${e.methodName}()\` before initialization.
|
|
62
|
+
|
|
63
|
+
The preview needs to load the story index before most methods can be called. If you want
|
|
64
|
+
to call \`${e.methodName}\`, try \`await preview.initializationPromise;\` first.
|
|
65
|
+
|
|
66
|
+
If you didn't call the above code, then likely it was called by an addon that needs to
|
|
67
|
+
do the above.`}),this.data=e}},uS=class extends Pt{constructor(e){super({name:"StoryIndexFetchError",category:"PREVIEW_API",code:6,message:Le`
|
|
68
|
+
Error fetching \`/index.json\`:
|
|
69
|
+
|
|
70
|
+
${e.text}
|
|
71
|
+
|
|
72
|
+
If you are in development, this likely indicates a problem with your Storybook process,
|
|
73
|
+
check the terminal for errors.
|
|
74
|
+
|
|
75
|
+
If you are in a deployed Storybook, there may have been an issue deploying the full Storybook
|
|
76
|
+
build.`}),this.data=e}},cS=class extends Pt{constructor(e){super({name:"MdxFileWithNoCsfReferencesError",category:"PREVIEW_API",code:7,message:Le`
|
|
77
|
+
Tried to render docs entry ${e.storyId} but it is a MDX file that has no CSF
|
|
78
|
+
references, or autodocs for a CSF file that some doesn't refer to itself.
|
|
79
|
+
|
|
80
|
+
This likely is an internal error in Storybook's indexing, or you've attached the
|
|
81
|
+
\`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=e}},dS=class extends Pt{constructor(){super({name:"EmptyIndexError",category:"PREVIEW_API",code:8,message:Le`
|
|
82
|
+
Couldn't find any stories in your Storybook.
|
|
83
|
+
|
|
84
|
+
- Please check your stories field of your main.js config: does it match correctly?
|
|
85
|
+
- Also check the browser console and terminal for error messages.`})}},pS=class extends Pt{constructor(e){super({name:"NoStoryMatchError",category:"PREVIEW_API",code:9,message:Le`
|
|
86
|
+
Couldn't find story matching '${e.storySpecifier}'.
|
|
87
|
+
|
|
88
|
+
- Are you sure a story with that id exists?
|
|
89
|
+
- Please check your stories field of your main.js config.
|
|
90
|
+
- Also check the browser console and terminal for error messages.`}),this.data=e}},fS=class extends Pt{constructor(e){super({name:"MissingStoryFromCsfFileError",category:"PREVIEW_API",code:10,message:Le`
|
|
91
|
+
Couldn't find story matching id '${e.storyId}' after importing a CSF file.
|
|
92
|
+
|
|
93
|
+
The file was indexed as if the story was there, but then after importing the file in the browser
|
|
94
|
+
we didn't find the story. Possible reasons:
|
|
95
|
+
- You are using a custom story indexer that is misbehaving.
|
|
96
|
+
- You have a custom file loader that is removing or renaming exports.
|
|
97
|
+
|
|
98
|
+
Please check your browser console and terminal for errors that may explain the issue.`}),this.data=e}},hS=class extends Pt{constructor(){super({name:"StoryStoreAccessedBeforeInitializationError",category:"PREVIEW_API",code:11,message:Le`
|
|
99
|
+
Cannot access the Story Store until the index is ready.
|
|
100
|
+
|
|
101
|
+
It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
|
|
102
|
+
remove access to the store entirely`})}},Rm=class extends Pt{constructor(e){super({name:"MountMustBeDestructuredError",category:"PREVIEW_API",code:12,message:Le`
|
|
103
|
+
Incorrect use of mount in the play function.
|
|
104
|
+
|
|
105
|
+
To use mount in the play function, you must satisfy the following two requirements:
|
|
106
|
+
|
|
107
|
+
1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function).
|
|
108
|
+
This makes sure that Storybook does not start rendering the story before the play function begins.
|
|
109
|
+
|
|
110
|
+
2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer.
|
|
111
|
+
This is because destructuring statements and async/await usages are otherwise transpiled away,
|
|
112
|
+
which prevents Storybook from recognizing your usage of \`mount\`.
|
|
113
|
+
|
|
114
|
+
Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill.
|
|
115
|
+
|
|
116
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#run-code-before-the-component-gets-rendered
|
|
117
|
+
|
|
118
|
+
Received the following play function:
|
|
119
|
+
${e.playFunction}`}),this.data=e}},mS=class extends Pt{constructor(e){super({name:"NoRenderFunctionError",category:"PREVIEW_API",code:14,message:Le`
|
|
120
|
+
No render function available for storyId '${e.id}'
|
|
121
|
+
`}),this.data=e}},yS=class extends Pt{constructor(){super({name:"NoStoryMountedError",category:"PREVIEW_API",code:15,message:Le`
|
|
122
|
+
No component is mounted in your story.
|
|
123
|
+
|
|
124
|
+
This usually occurs when you destructure mount in the play function, but forget to call it.
|
|
125
|
+
|
|
126
|
+
For example:
|
|
127
|
+
|
|
128
|
+
async play({ mount, canvasElement }) {
|
|
129
|
+
// 👈 mount should be called: await mount();
|
|
130
|
+
const canvas = within(canvasElement);
|
|
131
|
+
const button = await canvas.findByRole('button');
|
|
132
|
+
await userEvent.click(button);
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
Make sure to either remove it or call mount in your play function.
|
|
136
|
+
`})}},gF=class extends Pt{constructor(e){super({name:"StatusTypeIdMismatchError",category:"PREVIEW_API",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},bF=class extends Pt{constructor(){super({name:"NextJsSharpError",category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/frameworks/nextjs#error-you-are-importing-avif-images-but-you-dont-have-sharp-installed-you-have-to-install-sharp-in-order-to-use-image-optimization-features-in-nextjs",message:Le`
|
|
137
|
+
You are importing avif images, but you don't have sharp installed.
|
|
138
|
+
|
|
139
|
+
You have to install sharp in order to use image optimization features in Next.js.
|
|
140
|
+
`})}},vF=class extends Pt{constructor(e){super({name:"NextjsRouterMocksNotAvailable",category:"FRAMEWORK_NEXTJS",code:2,message:Le`
|
|
141
|
+
Tried to access router mocks from "${e.importType}" but they were not created yet. You might be running code in an unsupported environment.
|
|
142
|
+
`}),this.data=e}},EF=class extends Pt{constructor(t){super({name:"UnknownArgTypesError",category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:Le`
|
|
143
|
+
There was a failure when generating detailed ArgTypes in ${t.language} for:
|
|
144
|
+
${JSON.stringify(t.type,null,2)}
|
|
145
|
+
|
|
146
|
+
Storybook will fall back to use a generic type description instead.
|
|
147
|
+
|
|
148
|
+
This type is either not supported or it is a bug in the docgen generation in Storybook.
|
|
149
|
+
If you think this is a bug, please detail it as much as possible in the Github issue.
|
|
150
|
+
`}),this.data=t}},TF=class extends Pt{constructor(e){super({name:"UnsupportedViewportDimensionError",category:"ADDON_VITEST",code:1,message:Le`
|
|
151
|
+
Encountered an unsupported value "${e.value}" when setting the viewport ${e.dimension} dimension.
|
|
152
|
+
|
|
153
|
+
The Storybook plugin only supports values in the following units:
|
|
154
|
+
- px, vh, vw, em, rem and %.
|
|
155
|
+
|
|
156
|
+
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
|
|
157
|
+
`}),this.data=e}},_F=class extends Pt{constructor(){super({name:"ElementA11yParameterError",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.'})}},gS={};wr(gS,{Addon_TypesEnum:()=>bS,CoreWebpackCompiler:()=>TS,Feature:()=>wS,SupportedBuilder:()=>_S,SupportedFramework:()=>vS,SupportedLanguage:()=>SS,SupportedRenderer:()=>ES});var bS=(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))(bS||{}),vS=(e=>(e.ANGULAR="angular",e.EMBER="ember",e.HTML_VITE="html-vite",e.NEXTJS="nextjs",e.NEXTJS_VITE="nextjs-vite",e.PREACT_VITE="preact-vite",e.REACT_NATIVE_WEB_VITE="react-native-web-vite",e.REACT_VITE="react-vite",e.REACT_WEBPACK5="react-webpack5",e.SERVER_WEBPACK5="server-webpack5",e.SVELTE_VITE="svelte-vite",e.SVELTEKIT="sveltekit",e.VUE3_VITE="vue3-vite",e.WEB_COMPONENTS_VITE="web-components-vite",e.HTML_RSBUILD="html-rsbuild",e.NUXT="nuxt",e.QWIK="qwik",e.REACT_RSBUILD="react-rsbuild",e.SOLID="solid",e.VUE3_RSBUILD="vue3-rsbuild",e.WEB_COMPONENTS_RSBUILD="web-components-rsbuild",e))(vS||{}),ES=(e=>(e.REACT="react",e.REACT_NATIVE="react-native",e.VUE3="vue3",e.ANGULAR="angular",e.EMBER="ember",e.PREACT="preact",e.SVELTE="svelte",e.QWIK="qwik",e.HTML="html",e.WEB_COMPONENTS="web-components",e.SERVER="server",e.SOLID="solid",e.NUXT="nuxt",e))(ES||{}),TS=(e=>(e.Babel="babel",e.SWC="swc",e))(TS||{}),_S=(e=>(e.WEBPACK5="webpack5",e.VITE="vite",e.RSBUILD="rsbuild",e))(_S||{}),wS=(e=>(e.DOCS="docs",e.TEST="test",e.ONBOARDING="onboarding",e.A11Y="a11y",e))(wS||{}),SS=(e=>(e.JAVASCRIPT="javascript",e.TYPESCRIPT="typescript",e))(SS||{}),RS={};wr(RS,{ADDON_ID:()=>td,CLEAR_ID:()=>RF,CYCLIC_KEY:()=>AF,EVENT_ID:()=>AS,PANEL_ID:()=>SF,PARAM_KEY:()=>wF,action:()=>Ul,actions:()=>iY,config:()=>dl,configureActions:()=>rY});var wF="actions",td="storybook/actions",SF=`${td}/panel`,AS=`${td}/action-event`,RF=`${td}/action-clear`,AF="$___storybook.isCyclic",bf={};wr(bf,{DocsContext:()=>tg,HooksContext:()=>Am,Preview:()=>pC,PreviewWeb:()=>G8,PreviewWithSelection:()=>fC,ReporterAPI:()=>eg,StoryStore:()=>cC,Tag:()=>vn,UrlStore:()=>bC,WebView:()=>EC,addons:()=>vr,applyHooks:()=>PS,combineArgs:()=>Ec,combineParameters:()=>Ii,composeConfigs:()=>xs,composeStepRunners:()=>iC,composeStories:()=>E8,composeStory:()=>uC,createPlaywrightTest:()=>T8,decorateStory:()=>XP,defaultDecorateStory:()=>ZP,emitTransformCode:()=>tY,filterArgTypes:()=>oC,getCsfFactoryAnnotations:()=>lC,inferControls:()=>Xy,makeDecorator:()=>BF,mockChannel:()=>OS,normalizeArrays:()=>ot,normalizeProjectAnnotations:()=>_c,normalizeStory:()=>Ma,pauseAnimations:()=>Qy,prepareMeta:()=>eC,prepareStory:()=>Yy,sanitizeStoryContextUpdate:()=>QP,setDefaultProjectAnnotations:()=>h8,setProjectAnnotations:()=>b8,simulateDOMContentLoaded:()=>_h,simulatePageLoad:()=>Y8,sortStoriesV7:()=>C8,useArgs:()=>LF,useCallback:()=>Wa,useChannel:()=>kF,useEffect:()=>Oi,useGlobals:()=>FF,useMemo:()=>NS,useParameter:()=>DF,useReducer:()=>jF,useRef:()=>IF,useState:()=>qF,useStoryContext:()=>nd,userOrAutoTitle:()=>A8,userOrAutoTitleFromSpecifier:()=>dC,waitForAnimations:()=>Zy});function OS(){let e={setHandler:()=>{},send:()=>{}};return new Xc({transport:e})}var OF=class{constructor(){this.getChannel=()=>{if(!this.channel){let e=OS();return this.setChannel(e),e}return this.channel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.setChannel=e=>{this.channel=e,this.resolve()},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}},pp="__STORYBOOK_ADDONS_PREVIEW";function PF(){return ge[pp]||(ge[pp]=new OF),ge[pp]}var vr=PF(),Am=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=e=>{var t;e===((t=this.currentContext)==null?void 0:t.id)&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},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(e=>{e.destroy&&e.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let e=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,e}triggerEffects(){this.prevEffects.forEach(e=>{!this.currentEffects.includes(e)&&e.destroy&&e.destroy()}),this.currentEffects.forEach(e=>{this.prevEffects.includes(e)||(e.destroy=e.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),vr.getChannel().on(Qu,this.renderListener)}removeRenderListeners(){vr.getChannel().removeListener(Qu,this.renderListener)}};function yb(e){let t=(...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],o=n.currentPhase,i=n.currentHooks,s=n.nextHookIndex,a=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 l=ge.STORYBOOK_HOOKS_CONTEXT;ge.STORYBOOK_HOOKS_CONTEXT=n;let u=e(...r);if(ge.STORYBOOK_HOOKS_CONTEXT=l,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=a,u};return t.originalFn=e,t}var fp=0,CF=25,PS=e=>(t,r)=>{let n=e(yb(t),r.map(o=>yb(o)));return o=>{let{hooks:i}=o;i.prevMountedDecorators??(i.prevMountedDecorators=new Set),i.mountedDecorators=new Set([t,...r]),i.currentContext=o,i.hasUpdates=!1;let s=n(o);for(fp=1;i.hasUpdates;)if(i.hasUpdates=!1,i.currentEffects=[],s=n(o),fp+=1,fp>CF)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return i.addRenderListeners(),s}},NF=(e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),Om=()=>new Error(`Storybook preview hooks can only be called inside decorators and story functions.
|
|
158
|
+
|
|
159
|
+
When combining Storybook hooks (e.g. useArgs) with framework hooks (e.g. React's useState, useEffect, useRef) in the same render function, use Storybook's equivalents from 'storybook/preview-api' instead: useState, useEffect, useRef, useMemo, useCallback, useReducer.`);function CS(){return ge.STORYBOOK_HOOKS_CONTEXT||null}function Pm(){let e=CS();if(e==null)throw Om();return e}function xF(e,t,r){let n=Pm();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&ut.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&&ut.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&&ut.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&&ut.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
|
|
160
|
+
Previous: ${o.deps}
|
|
161
|
+
Incoming: ${r}`),(r==null||o.deps==null||!NF(r,o.deps))&&(t(o),o.deps=r),o}throw Om()}function rd(e,t,r){let{memoizedState:n}=xF(e,o=>{o.memoizedState=t()},r);return n}function NS(e,t){return rd("useMemo",e,t)}function Wa(e,t){return rd("useCallback",()=>e,t)}function xS(e,t){return rd(e,()=>({current:t}),[])}function IF(e){return xS("useRef",e)}function MF(){let e=CS();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{vr.getChannel().emit(lm)}catch{ut.warn("State updates of Storybook preview hooks work only in browser")}}function IS(e,t){let r=xS(e,typeof t=="function"?t():t),n=o=>{r.current=typeof o=="function"?o(r.current):o,MF()};return[r.current,n]}function qF(e){return IS("useState",e)}function jF(e,t,r){let n=r!=null?()=>r(t):t,[o,i]=IS("useReducer",n);return[o,s=>i(a=>e(a,s))]}function Oi(e,t){let r=Pm(),n=rd("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}function kF(e,t=[]){let r=vr.getChannel();return Oi(()=>(Object.entries(e).forEach(([n,o])=>r.on(n,o)),()=>{Object.entries(e).forEach(([n,o])=>r.removeListener(n,o))}),[...Object.keys(e),...t]),Wa(r.emit.bind(r),[r])}function nd(){let{currentContext:e}=Pm();if(e==null)throw Om();return e}function DF(e,t){let{parameters:r}=nd();if(e)return r[e]??t}function LF(){let e=vr.getChannel(),{id:t,args:r}=nd(),n=Wa(i=>e.emit(pm,{storyId:t,updatedArgs:i}),[e,t]),o=Wa(i=>e.emit(um,{storyId:t,argNames:i}),[e,t]);return[r,n,o]}function FF(){let e=vr.getChannel(),{globals:t}=nd(),r=Wa(n=>e.emit(dm,{globals:n}),[e]);return[t,r]}var BF=({name:e,parameterName:t,wrapper:r,skipIfNoParametersOrOptions:n=!1})=>{let o=i=>(s,a)=>{let l=a.parameters&&a.parameters[t];return l&&l.disable||n&&!i&&!l?s(a):r(s,a,{options:i,parameters:l})};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,
|
|
162
|
+
instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}};function $F(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()}var gb=Ot(d1(),1),MS=e=>e.map(t=>typeof t<"u").filter(Boolean).length,VF=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:i}=e;if(MS([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,gb.isEqual)(t,n);if(typeof o<"u")return!(0,gb.isEqual)(t,o);if(typeof r<"u"){let s=typeof t<"u";return r?s:!s}return typeof i>"u"||i?!!t:!t},UF=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(MS([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let i=n?t[n]:r[o];return VF(e.if,i)};function JF(e){return e!=null&&HF(e).includes("mount")}function HF(e){var a;let[,t,r]=e.toString().match(/[^(]*\(([^)]+)\)(?:.*{([^]+)})?/)||[];if(!t)return[];let[n]=hp(t);if(!n)return[];let[,o]=n.match(/^{([^]+)}$/)||[];if(o)return hp(bb(o)).map(l=>l.replace(/:.*|=.*/g,"").trim());if(!n.match(/^[a-z_$][0-9a-z_$]*$/i))return[];let i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),[,s]=((a=r==null?void 0:r.trim())==null?void 0:a.match(new RegExp(`^(?:const|let|var)\\s*{([^}]+)}\\s*=\\s*${i};`)))||[];return s?hp(bb(s)).map(l=>l.replace(/:.*|=.*/g,"").trim()):[]}function bb(e){return e=e.replace(/\/\/.*$/gm,""),e=e.replace(/\/\*[\s\S]*?\*\//g,""),e}function hp(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}var vn={AUTODOCS:"autodocs",ATTACHED_MDX:"attached-mdx",UNATTACHED_MDX:"unattached-mdx",PLAY_FN:"play-fn",TEST_FN:"test-fn",DEV:"dev",TEST:"test",MANIFEST:"manifest"},qS={};wr(qS,{argsEnhancers:()=>zF});var jS=(e,t)=>typeof t[e]>"u"&&!(e in t),GF=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,[a,l])=>(jS(a,t)&&(s[a]=Ul(a,{implicit:!0,id:n})),s),{})},WF=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n!=null&&n.disable||!r?{}:Object.entries(r).filter(([o,i])=>!!i.action).reduce((o,[i,s])=>(jS(i,t)&&(o[i]=Ul(typeof s.action=="string"?s.action:i)),o),{})},zF=[WF,GF],kS={};wr(kS,{loaders:()=>nK});var DS={};wr(DS,{buildQueries:()=>kz,clearAllMocks:()=>OA,configure:()=>Dz,createEvent:()=>Lz,expect:()=>eK,findAllByAltText:()=>Bz,findAllByDisplayValue:()=>$z,findAllByLabelText:()=>Vz,findAllByPlaceholderText:()=>Uz,findAllByRole:()=>Jz,findAllByTestId:()=>Hz,findAllByText:()=>Gz,findAllByTitle:()=>Wz,findByAltText:()=>zz,findByDisplayValue:()=>Kz,findByLabelText:()=>Yz,findByPlaceholderText:()=>Xz,findByRole:()=>Qz,findByTestId:()=>Zz,findByText:()=>e6,findByTitle:()=>t6,fireEvent:()=>Fz,fn:()=>RA,getAllByAltText:()=>r6,getAllByDisplayValue:()=>n6,getAllByLabelText:()=>o6,getAllByPlaceholderText:()=>i6,getAllByRole:()=>s6,getAllByTestId:()=>a6,getAllByText:()=>l6,getAllByTitle:()=>u6,getByAltText:()=>c6,getByDisplayValue:()=>d6,getByLabelText:()=>p6,getByPlaceholderText:()=>f6,getByRole:()=>h6,getByTestId:()=>m6,getByText:()=>y6,getByTitle:()=>g6,getConfig:()=>b6,getDefaultNormalizer:()=>v6,getElementError:()=>E6,getNodeText:()=>T6,getQueriesForElement:()=>_6,getRoles:()=>w6,getSuggestedQuery:()=>S6,isInaccessible:()=>R6,isMockFunction:()=>ss,logDOM:()=>A6,logRoles:()=>O6,mocked:()=>u3,mocks:()=>Ll,onMockCall:()=>SA,prettyDOM:()=>P6,prettyFormat:()=>Q6,queries:()=>C6,queryAllByAltText:()=>N6,queryAllByAttribute:()=>x6,queryAllByDisplayValue:()=>I6,queryAllByLabelText:()=>M6,queryAllByPlaceholderText:()=>q6,queryAllByRole:()=>j6,queryAllByTestId:()=>k6,queryAllByText:()=>D6,queryAllByTitle:()=>L6,queryByAltText:()=>F6,queryByAttribute:()=>B6,queryByDisplayValue:()=>$6,queryByLabelText:()=>V6,queryByPlaceholderText:()=>U6,queryByRole:()=>J6,queryByTestId:()=>H6,queryByText:()=>G6,queryByTitle:()=>W6,queryHelpers:()=>z6,resetAllMocks:()=>PA,restoreAllMocks:()=>CA,sb:()=>tK,screen:()=>K6,spyOn:()=>l3,uninstrumentedUserEvent:()=>$P,userEvent:()=>Z6,waitFor:()=>Y6,waitForElementToBeRemoved:()=>X6,within:()=>BP});var KF={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]},LS=Object.entries(KF);function od(e){return String(e)}od.open="";od.close="";LS.reduce((e,[t])=>(e[t]=od,e),{isColorSupported:!1});function YF(e=!1){let t=typeof process<"u"?process:void 0,r=(t==null?void 0:t.env)||{},n=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function XF(e=!1){let t=YF(e),r=(s,a,l,u)=>{let d="",p=0;do d+=s.substring(p,u)+l,p=u+a.length,u=s.indexOf(a,p);while(~u);return d+s.substring(p)},n=(s,a,l=s)=>{let u=d=>{let p=String(d),f=p.indexOf(a,s.length);return~f?s+r(p,a,l,f)+a:s+p+a};return u.open=s,u.close=a,u},o={isColorSupported:t},i=s=>`\x1B[${s}m`;for(let[s,a]of LS)o[s]=t?n(i(a[0]),i(a[1]),a[2]):od;return o}var $n=XF();function FS(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:function(){return r[n]}})}})}),Object.freeze(e)}function QF(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}function xl(e,t,r,n,o,i,s=": "){let a="",l=0,u=e.next();if(!u.done){a+=t.spacingOuter;let d=r+t.indent;for(;!u.done;){if(a+=d,l++===t.maxWidth){a+="…";break}let p=i(u.value[0],t,d,n,o),f=i(u.value[1],t,d,n,o);a+=p+s+f,u=e.next(),u.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+r}return a}function Cm(e,t,r,n,o,i){let s="",a=0,l=e.next();if(!l.done){s+=t.spacingOuter;let u=r+t.indent;for(;!l.done;){if(s+=u,a++===t.maxWidth){s+="…";break}s+=i(l.value,t,u,n,o),l=e.next(),l.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}function Zu(e,t,r,n,o,i){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;let a=u=>u instanceof DataView,l=a(e)?e.byteLength:e.length;if(l>0){s+=t.spacingOuter;let u=r+t.indent;for(let d=0;d<l;d++){if(s+=u,d===t.maxWidth){s+="…";break}(a(e)||d in e)&&(s+=i(a(e)?e.getInt8(d):e[d],t,u,n,o)),d<l-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+r}return s}function Nm(e,t,r,n,o,i){let s="",a=QF(e,t.compareKeys);if(a.length>0){s+=t.spacingOuter;let l=r+t.indent;for(let u=0;u<a.length;u++){let d=a[u],p=i(d,t,l,n,o),f=i(e[d],t,l,n,o);s+=`${l+p}: ${f}`,u<a.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+r}return s}var ZF=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,mp=" ",eB=(e,t,r,n,o,i)=>{let s=e.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return++n>t.maxDepth?`[${s}]`:`${s+mp}[${Zu(e.sample,t,r,n,o,i)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return++n>t.maxDepth?`[${s}]`:`${s+mp}{${Nm(e.sample,t,r,n,o,i)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+mp+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()},tB=e=>e&&e.$$typeof===ZF,rB={serialize:eB,test:tB},nB=" ",BS=new Set(["DOMStringMap","NamedNodeMap"]),oB=/^(?:HTML\w*Collection|NodeList)$/;function iB(e){return BS.has(e)||oB.test(e)}var sB=e=>e&&e.constructor&&!!e.constructor.name&&iB(e.constructor.name);function aB(e){return e.constructor.name==="NamedNodeMap"}var lB=(e,t,r,n,o,i)=>{let s=e.constructor.name;return++n>t.maxDepth?`[${s}]`:(t.min?"":s+nB)+(BS.has(s)?`{${Nm(aB(e)?[...e].reduce((a,l)=>(a[l.name]=l.value,a),{}):{...e},t,r,n,o,i)}}`:`[${Zu([...e],t,r,n,o,i)}]`)},uB={serialize:lB,test:sB};function $S(e){return e.replaceAll("<","<").replaceAll(">",">")}function xm(e,t,r,n,o,i,s){let a=n+r.indent,l=r.colors;return e.map(u=>{let d=t[u],p=s(d,r,a,o,i);return typeof d!="string"&&(p.includes(`
|
|
163
|
+
`)&&(p=r.spacingOuter+a+p+r.spacingOuter+n),p=`{${p}}`),`${r.spacingInner+n+l.prop.open+u+l.prop.close}=${l.value.open}${p}${l.value.close}`}).join("")}function Im(e,t,r,n,o,i){return e.map(s=>t.spacingOuter+r+(typeof s=="string"?VS(s,t):i(s,t,r,n,o))).join("")}function VS(e,t){let r=t.colors.content;return r.open+$S(e)+r.close}function cB(e,t){let r=t.colors.comment;return`${r.open}<!--${$S(e)}-->${r.close}`}function Mm(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}`}function qm(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var dB=1,US=3,JS=8,HS=11,pB=/^(?:(?:HTML|SVG)\w*)?Element$/;function fB(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function hB(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||fB(e);return r===dB&&(pB.test(t)||o)||r===US&&t==="Text"||r===JS&&t==="Comment"||r===HS&&t==="DocumentFragment"}var mB=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&hB(e)};function yB(e){return e.nodeType===US}function gB(e){return e.nodeType===JS}function yp(e){return e.nodeType===HS}var bB=(e,t,r,n,o,i)=>{if(yB(e))return VS(e.data,t);if(gB(e))return cB(e.data,t);let s=yp(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?qm(s,t):Mm(s,xm(yp(e)?[]:Array.from(e.attributes,a=>a.name).sort(),yp(e)?{}:[...e.attributes].reduce((a,l)=>(a[l.name]=l.value,a),{}),t,r+t.indent,n,o,i),Im(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,i),t,r)},vB={serialize:bB,test:mB},EB="@@__IMMUTABLE_ITERABLE__@@",TB="@@__IMMUTABLE_LIST__@@",_B="@@__IMMUTABLE_KEYED__@@",wB="@@__IMMUTABLE_MAP__@@",vb="@@__IMMUTABLE_ORDERED__@@",SB="@@__IMMUTABLE_RECORD__@@",RB="@@__IMMUTABLE_SEQ__@@",AB="@@__IMMUTABLE_SET__@@",OB="@@__IMMUTABLE_STACK__@@",vs=e=>`Immutable.${e}`,id=e=>`[${e}]`,za=" ",Eb="…";function PB(e,t,r,n,o,i,s){return++n>t.maxDepth?id(vs(s)):`${vs(s)+za}{${xl(e.entries(),t,r,n,o,i)}}`}function CB(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}}}}function NB(e,t,r,n,o,i){let s=vs(e._name||"Record");return++n>t.maxDepth?id(s):`${s+za}{${xl(CB(e),t,r,n,o,i)}}`}function xB(e,t,r,n,o,i){let s=vs("Seq");return++n>t.maxDepth?id(s):e[_B]?`${s+za}{${e._iter||e._object?xl(e.entries(),t,r,n,o,i):Eb}}`:`${s+za}[${e._iter||e._array||e._collection||e._iterable?Cm(e.values(),t,r,n,o,i):Eb}]`}function gp(e,t,r,n,o,i,s){return++n>t.maxDepth?id(vs(s)):`${vs(s)+za}[${Cm(e.values(),t,r,n,o,i)}]`}var IB=(e,t,r,n,o,i)=>e[wB]?PB(e,t,r,n,o,i,e[vb]?"OrderedMap":"Map"):e[TB]?gp(e,t,r,n,o,i,"List"):e[AB]?gp(e,t,r,n,o,i,e[vb]?"OrderedSet":"Set"):e[OB]?gp(e,t,r,n,o,i,"Stack"):e[RB]?xB(e,t,r,n,o,i):NB(e,t,r,n,o,i),MB=e=>e&&(e[EB]===!0||e[SB]===!0),qB={serialize:IB,test:MB};function GS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tb={exports:{}},Qe={},_b;function jB(){if(_b)return Qe;_b=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"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function y(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 l:case u:case f:return g;default:switch(g=g&&g.$$typeof,g){case s:case a:case p:case d:return g;case i:return g;default:return v}}case t:return v}}}return Qe.ContextConsumer=i,Qe.ContextProvider=s,Qe.Element=e,Qe.ForwardRef=a,Qe.Fragment=r,Qe.Lazy=p,Qe.Memo=d,Qe.Portal=t,Qe.Profiler=o,Qe.StrictMode=n,Qe.Suspense=l,Qe.SuspenseList=u,Qe.isContextConsumer=function(g){return y(g)===i},Qe.isContextProvider=function(g){return y(g)===s},Qe.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Qe.isForwardRef=function(g){return y(g)===a},Qe.isFragment=function(g){return y(g)===r},Qe.isLazy=function(g){return y(g)===p},Qe.isMemo=function(g){return y(g)===d},Qe.isPortal=function(g){return y(g)===t},Qe.isProfiler=function(g){return y(g)===o},Qe.isStrictMode=function(g){return y(g)===n},Qe.isSuspense=function(g){return y(g)===l},Qe.isSuspenseList=function(g){return y(g)===u},Qe.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===l||g===u||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===d||g.$$typeof===s||g.$$typeof===i||g.$$typeof===a||g.$$typeof===h||g.getModuleId!==void 0)},Qe.typeOf=y,Qe}var wb;function kB(){return wb||(wb=1,Tb.exports=jB()),Tb.exports}var WS=kB(),DB=GS(WS),LB=FS({__proto__:null,default:DB},[WS]),Sb={exports:{}},Xe={},Rb;function FB(){if(Rb)return Xe;Rb=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"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function g(v){if(typeof v=="object"&&v!==null){var b=v.$$typeof;switch(b){case e:switch(v=v.type,v){case r:case o:case n:case u:case d:return v;default:switch(v=v&&v.$$typeof,v){case a:case s:case l:case f:case p:case i:return v;default:return b}}case t:return b}}}return Xe.ContextConsumer=s,Xe.ContextProvider=i,Xe.Element=e,Xe.ForwardRef=l,Xe.Fragment=r,Xe.Lazy=f,Xe.Memo=p,Xe.Portal=t,Xe.Profiler=o,Xe.StrictMode=n,Xe.Suspense=u,Xe.SuspenseList=d,Xe.isAsyncMode=function(){return!1},Xe.isConcurrentMode=function(){return!1},Xe.isContextConsumer=function(v){return g(v)===s},Xe.isContextProvider=function(v){return g(v)===i},Xe.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Xe.isForwardRef=function(v){return g(v)===l},Xe.isFragment=function(v){return g(v)===r},Xe.isLazy=function(v){return g(v)===f},Xe.isMemo=function(v){return g(v)===p},Xe.isPortal=function(v){return g(v)===t},Xe.isProfiler=function(v){return g(v)===o},Xe.isStrictMode=function(v){return g(v)===n},Xe.isSuspense=function(v){return g(v)===u},Xe.isSuspenseList=function(v){return g(v)===d},Xe.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===o||v===n||v===u||v===d||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===f||v.$$typeof===p||v.$$typeof===i||v.$$typeof===s||v.$$typeof===l||v.$$typeof===y||v.getModuleId!==void 0)},Xe.typeOf=g,Xe}var Ab;function BB(){return Ab||(Ab=1,Sb.exports=FB()),Sb.exports}var zS=BB(),$B=GS(zS),VB=FS({__proto__:null,default:$B},[zS]),UB=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],ai=Object.fromEntries(UB.map(e=>[e,t=>VB[e](t)||LB[e](t)]));function KS(e,t=[]){if(Array.isArray(e))for(let r of e)KS(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function Ob(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(ai.isFragment(e))return"React.Fragment";if(ai.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(ai.isContextProvider(e))return"Context.Provider";if(ai.isContextConsumer(e))return"Context.Consumer";if(ai.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(ai.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function JB(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var HB=(e,t,r,n,o,i)=>++n>t.maxDepth?qm(Ob(e),t):Mm(Ob(e),xm(JB(e),e.props,t,r+t.indent,n,o,i),Im(KS(e.props.children),t,r+t.indent,n,o,i),t,r),GB=e=>e!=null&&ai.isElement(e),WB={serialize:HB,test:GB},zB=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function KB(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var YB=(e,t,r,n,o,i)=>++n>t.maxDepth?qm(e.type,t):Mm(e.type,e.props?xm(KB(e),e.props,t,r+t.indent,n,o,i):"",e.children?Im(e.children,t,r+t.indent,n,o,i):"",t,r),XB=e=>e&&e.$$typeof===zB,QB={serialize:YB,test:XB},YS=Object.prototype.toString,ZB=Date.prototype.toISOString,e$=Error.prototype.toString,Pb=RegExp.prototype.toString;function xu(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function t$(e){return typeof window<"u"&&e===window}var r$=/^Symbol\((.*)\)(.*)$/,n$=/\n/g,XS=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function o$(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]"}function i$(e){return Object.is(e,-0)?"-0":String(e)}function s$(e){return`${e}n`}function Cb(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function Nb(e){return String(e).replace(r$,"Symbol($1)")}function xb(e){return`[${e$.call(e)}]`}function QS(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 i$(e);if(o==="bigint")return s$(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Cb(e,t);if(o==="symbol")return Nb(e);let i=YS.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?Cb(e,t):i==="[object Symbol]"?Nb(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":ZB.call(e):i==="[object Error]"?xb(e):i==="[object RegExp]"?r?Pb.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Pb.call(e):e instanceof Error?xb(e):null}function ZS(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let s=++n>t.maxDepth,a=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON=="function"&&!i)return Po(e.toJSON(),t,r,n,o,!0);let l=YS.call(e);return l==="[object Arguments]"?s?"[Arguments]":`${a?"":"Arguments "}[${Zu(e,t,r,n,o,Po)}]`:o$(l)?s?`[${e.constructor.name}]`:`${a||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Zu(e,t,r,n,o,Po)}]`:l==="[object Map]"?s?"[Map]":`Map {${xl(e.entries(),t,r,n,o,Po," => ")}}`:l==="[object Set]"?s?"[Set]":`Set {${Cm(e.values(),t,r,n,o,Po)}}`:s||t$(e)?`[${xu(e)}]`:`${a||!t.printBasicPrototype&&xu(e)==="Object"?"":`${xu(e)} `}{${Nm(e,t,r,n,o,Po)}}`}var a$={test:e=>e&&e instanceof Error,serialize(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o,e];let s=++n>t.maxDepth,{message:a,cause:l,...u}=e,d={message:a,...typeof l<"u"?{cause:l}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},p=e.name!=="Error"?e.name:xu(e);return s?`[${p}]`:`${p} {${xl(Object.entries(d).values(),t,r,n,o,i)}}`}};function l$(e){return e.serialize!=null}function e0(e,t,r,n,o,i){let s;try{s=l$(e)?e.serialize(t,r,n,o,i,Po):e.print(t,a=>Po(a,r,n,o,i),a=>{let l=n+r.indent;return l+a.replaceAll(n$,`
|
|
164
|
+
${l}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(a){throw new XS(a.message,a.stack)}if(typeof s!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}function t0(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new XS(n.message,n.stack)}return null}function Po(e,t,r,n,o,i){let s=t0(t.plugins,e);if(s!==null)return e0(s,e,t,r,n,o);let a=QS(e,t.printFunctionName,t.escapeRegex,t.escapeString);return a!==null?a:ZS(e,t,r,n,o,i)}var jm={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},r0=Object.keys(jm),Qr={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:jm};function u$(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Qr,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.')}function c$(){return r0.reduce((e,t)=>{let r=jm[t],n=r&&$n[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))}function d$(){return r0.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function n0(e){return(e==null?void 0:e.printFunctionName)??Qr.printFunctionName}function o0(e){return(e==null?void 0:e.escapeRegex)??Qr.escapeRegex}function i0(e){return(e==null?void 0:e.escapeString)??Qr.escapeString}function Ib(e){return{callToJSON:(e==null?void 0:e.callToJSON)??Qr.callToJSON,colors:e!=null&&e.highlight?c$():d$(),compareKeys:typeof(e==null?void 0:e.compareKeys)=="function"||(e==null?void 0:e.compareKeys)===null?e.compareKeys:Qr.compareKeys,escapeRegex:o0(e),escapeString:i0(e),indent:e!=null&&e.min?"":p$((e==null?void 0:e.indent)??Qr.indent),maxDepth:(e==null?void 0:e.maxDepth)??Qr.maxDepth,maxWidth:(e==null?void 0:e.maxWidth)??Qr.maxWidth,min:(e==null?void 0:e.min)??Qr.min,plugins:(e==null?void 0:e.plugins)??Qr.plugins,printBasicPrototype:(e==null?void 0:e.printBasicPrototype)??!0,printFunctionName:n0(e),spacingInner:e!=null&&e.min?" ":`
|
|
165
|
+
`,spacingOuter:e!=null&&e.min?"":`
|
|
166
|
+
`}}function p$(e){return Array.from({length:e+1}).join(" ")}function En(e,t){if(t&&(u$(t),t.plugins)){let n=t0(t.plugins,e);if(n!==null)return e0(n,e,Ib(t),"",0,[])}let r=QS(e,n0(t),o0(t),i0(t));return r!==null?r:ZS(e,Ib(t),"",0,[])}var km={AsymmetricMatcher:rB,DOMCollection:uB,DOMElement:vB,Immutable:qB,ReactElement:WB,ReactTestComponent:QB,Error:a$},Mb={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"]},f$={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Es="…";function h$(e,t){let r=Mb[f$[t]]||Mb[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function m$({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:s=1/0,seen:a=[],truncate:l=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(l),seen:a,inspect:d,stylize:u};return p.colors&&(p.stylize=h$),p}function y$(e){return e>="\uD800"&&e<="\uDBFF"}function Wo(e,t,r=Es){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&&y$(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}function an(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,s="",a="",l="";for(let u=0;u<o;u+=1){let d=u+1===e.length,p=u+2===e.length;l=`${Es}(${e.length-u})`;let f=e[u];t.truncate=i-s.length-(d?0:n.length);let h=a||r(f,t)+(d?"":n),y=s.length+h.length,g=y+l.length;if(d&&y>i&&s.length+l.length<=i||!d&&!p&&g>i||(a=d?"":r(e[u+1],t)+(p?"":n),!d&&p&&g>i&&y+a.length>i))break;if(s+=h,!d&&!p&&y+a.length>=i){l=`${Es}(${e.length-u-1})`;break}l=""}return`${s}${l}`}function g$(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Ka([e,t],r){return r.truncate-=2,typeof e=="string"?e=g$(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function b$(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=an(e,t);t.truncate-=n.length;let o="";return r.length&&(o=an(r.map(i=>[i,e[i]]),t,Ka)),`[ ${n}${o?`, ${o}`:""} ]`}var v$=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Nn(e,t){let r=v$(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 a=`${t.stylize(Wo(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=a.length,e[s]!==e.length&&t.truncate<=3){o+=`${Es}(${e.length-e[s]+1})`;break}o+=a}let i="";return n.length&&(i=an(n.map(s=>[s,e[s]]),t,Ka)),`${r}[ ${o}${i?`, ${i}`:""} ]`}function E$(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${Wo(n[1],t.truncate-o.length-1)}`,"date")}function qb(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Wo(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function T$([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function _$(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function w$(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${an(_$(e),t,T$)} }`)}var S$=Number.isNaN||(e=>e!==e);function jb(e,t){return S$(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(Wo(String(e),t.truncate),"number")}function kb(e,t){let r=Wo(e.toString(),t.truncate-1);return r!==Es&&(r+="n"),t.stylize(r,"bigint")}function R$(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Wo(o,n)}/${r}`,"regexp")}function A$(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function O$(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${an(A$(e),t)} }`)}var Db=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),P$={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},C$=16;function N$(e){return P$[e]||`\\u${`0000${e.charCodeAt(0).toString(C$)}`.slice(-4)}`}function Lb(e,t){return Db.test(e)&&(e=e.replace(Db,N$)),t.stylize(`'${Wo(e,t.truncate-2)}'`,"string")}function Fb(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var s0=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(s0=(n,o)=>{let[i,s]=e(n);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(s,o)}}`})}catch{}var x$=s0;function Iu(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=an(r.map(a=>[a,e[a]]),t,Ka),i=an(n.map(a=>[a,e[a]]),t,Ka);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}var bp=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function I$(e,t){let r="";return bp&&bp in e&&(r=e[bp]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Iu(e,t)}`}function M$(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${an(e,t)} ]`)}var q$=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function j$(e,t){let r=Object.getOwnPropertyNames(e).filter(s=>q$.indexOf(s)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Wo(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=an(r.map(s=>[s,e[s]]),t,Ka);return`${n}${o}${i?` { ${i} }`:""}`}function k$([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function vf(e,t){return an(e,t,D$,`
|
|
167
|
+
`)}function D$(e,t){switch(e.nodeType){case 1:return a0(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function a0(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 a="";r.length>0&&(a+=" ",a+=an(r.map(d=>[d,e.getAttribute(d)]),t,k$," ")),t.truncate-=a.length;let l=t.truncate,u=vf(e.children,t);return u&&u.length>l&&(u=`${Es}(${e.children.length})`),`${o}${a}${i}${u}${s}`}var L$=typeof Symbol=="function"&&typeof Symbol.for=="function",vp=L$?Symbol.for("chai/inspect"):"@@chai/inspect",Ep=Symbol.for("nodejs.util.inspect.custom"),Bb=new WeakMap,$b={},Vb={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:jb,Number:jb,bigint:kb,BigInt:kb,string:Lb,String:Lb,function:qb,Function:qb,symbol:Fb,Symbol:Fb,Array:b$,Date:E$,Map:w$,Set:O$,RegExp:R$,Promise:x$,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:M$,Int8Array:Nn,Uint8Array:Nn,Uint8ClampedArray:Nn,Int16Array:Nn,Uint16Array:Nn,Int32Array:Nn,Uint32Array:Nn,Float32Array:Nn,Float64Array:Nn,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:j$,HTMLCollection:vf,NodeList:vf},F$=(e,t,r)=>vp in e&&typeof e[vp]=="function"?e[vp](t):Ep in e&&typeof e[Ep]=="function"?e[Ep](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Bb.has(e.constructor)?Bb.get(e.constructor)(e,t):$b[r]?$b[r](e,t):"",B$=Object.prototype.toString;function Ef(e,t={}){let r=m$(t,Ef),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=B$.call(e).slice(8,-1)),o in Vb)return Vb[o](e,r);if(n&&e){let s=F$(e,r,o);if(s)return typeof s=="string"?s:Ef(s,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?Iu(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?a0(e,r):"constructor"in e?e.constructor!==Object?I$(e,r):Iu(e,r):e===Object(e)?Iu(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:$$,DOMCollection:V$,DOMElement:U$,Immutable:J$,ReactElement:H$,ReactTestComponent:G$}=km,Ub=[G$,H$,U$,V$,J$,$$];function Ir(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,i;try{i=En(e,{maxDepth:t,escapeString:!1,plugins:Ub,...n})}catch{i=En(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Ub,...n})}return i.length>=o&&t>1?Ir(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):i}var W$=/%[sdjifoOc%]/g;function z$(...e){if(typeof e[0]!="string"){let i=[];for(let s=0;s<e.length;s++)i.push(ia(e[s],{depth:0,colors:!1}));return i.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(W$,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():ia(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 ia(e[r++],{showHidden:!0,showProxy:!0});case"%O":return ia(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(s){let a=s.message;if(a.includes("circular structure")||a.includes("cyclic structures")||a.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+=` ${ia(i)}`;return o}function ia(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Ef(e,t)}function l0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xn(e,t,r){let n=typeof e;if(!r.includes(n))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${n}"`)}function Mu(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function K$(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function ec(e){return Object.prototype.toString.apply(e).slice(8,-1)}function Y$(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function u0(e){let t=new Set;return K$(e)?[]:(Y$(e,t),Array.from(t))}var c0={forceWritable:!1};function Jb(e,t=c0){return Tf(e,new WeakMap,t)}function Tf(e,t,r=c0){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]=Tf(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=u0(e);for(let s of i){let a=Object.getOwnPropertyDescriptor(e,s);if(!a)continue;let l=Tf(e[s],t,r);r.forceWritable?Object.defineProperty(o,s,{enumerable:a.enumerable,configurable:!0,writable:!0,value:l}):"get"in a?Object.defineProperty(o,s,{...a,get(){return l}}):Object.defineProperty(o,s,{...a,value:l})}return o}return e}function X$(){}var rr=-1,Gt=1,bt=0,mt=class{constructor(e,t){hr(this,0);hr(this,1);this[0]=e,this[1]=t}};function Q$(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}function d0(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}function Hb(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 a=e.substring(o-s),l=t.indexOf(a);if(l===-1)return i;s+=l,(l===0||e.substring(o-s)===t.substring(0,s))&&(i=s,s++)}}function Z$(e){let t=!1,r=[],n=0,o=null,i=0,s=0,a=0,l=0,u=0;for(;i<e.length;)e[i][0]===bt?(r[n++]=i,s=l,a=u,l=0,u=0,o=e[i][1]):(e[i][0]===Gt?l+=e[i][1].length:u+=e[i][1].length,o&&o.length<=Math.max(s,a)&&o.length<=Math.max(l,u)&&(e.splice(r[n-1],0,new mt(rr,o)),e[r[n-1]+1][0]=Gt,n--,n--,i=n>0?r[n-1]:-1,s=0,a=0,l=0,u=0,o=null,t=!0)),i++;for(t&&p0(e),rV(e),i=1;i<e.length;){if(e[i-1][0]===rr&&e[i][0]===Gt){let d=e[i-1][1],p=e[i][1],f=Hb(d,p),h=Hb(p,d);f>=h?(f>=d.length/2||f>=p.length/2)&&(e.splice(i,0,new mt(bt,p.substring(0,f))),e[i-1][1]=d.substring(0,d.length-f),e[i+1][1]=p.substring(f),i++):(h>=d.length/2||h>=p.length/2)&&(e.splice(i,0,new mt(bt,d.substring(0,h))),e[i-1][0]=Gt,e[i-1][1]=p.substring(0,p.length-h),e[i+1][0]=rr,e[i+1][1]=d.substring(h),i++),i++}i++}}var Gb=/[^a-z0-9]/i,Wb=/\s/,zb=/[\r\n]/,eV=/\n\r?\n$/,tV=/^\r?\n\r?\n/;function rV(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===bt&&e[t+1][0]===bt){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],i=d0(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,a=n,l=o,u=nu(r,n)+nu(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=nu(r,n)+nu(n,o);d>=u&&(u=d,s=r,a=n,l=o)}e[t-1][1]!==s&&(s?e[t-1][1]=s:(e.splice(t-1,1),t--),e[t][1]=a,l?e[t+1][1]=l:(e.splice(t+1,1),t--))}t++}}function p0(e){e.push(new mt(bt,""));let t=0,r=0,n=0,o="",i="",s;for(;t<e.length;)switch(e[t][0]){case Gt:n++,i+=e[t][1],t++;break;case rr:r++,o+=e[t][1],t++;break;case bt:r+n>1?(r!==0&&n!==0&&(s=Q$(i,o),s!==0&&(t-r-n>0&&e[t-r-n-1][0]===bt?e[t-r-n-1][1]+=i.substring(0,s):(e.splice(0,0,new mt(bt,i.substring(0,s))),t++),i=i.substring(s),o=o.substring(s)),s=d0(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 mt(rr,o)),t++),i.length&&(e.splice(t,0,new mt(Gt,i)),t++),t++):t!==0&&e[t-1][0]===bt?(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 a=!1;for(t=1;t<e.length-1;)e[t-1][0]===bt&&e[t+1][0]===bt&&(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),a=!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),a=!0)),t++;a&&p0(e)}function nu(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(Gb),i=n.match(Gb),s=o&&r.match(Wb),a=i&&n.match(Wb),l=s&&r.match(zb),u=a&&n.match(zb),d=l&&e.match(eV),p=u&&t.match(tV);return d||p?5:l||u?4:o&&!s&&a?3:s||a?2:o||i?1:0}var f0="Compared values have no visual difference.",nV="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",ou={},Kb;function oV(){if(Kb)return ou;Kb=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.default=f;let e="diff-sequences",t=0,r=(h,y,g,v,b)=>{let E=0;for(;h<y&&g<v&&b(h,g);)h+=1,g+=1,E+=1;return E},n=(h,y,g,v,b)=>{let E=0;for(;h<=y&&g<=v&&b(y,v);)y-=1,v-=1,E+=1;return E},o=(h,y,g,v,b,E,T)=>{let A=0,P=-h,R=E[A],S=R;E[A]+=r(R+1,y,v+R-P+1,g,b);let w=h<T?h:T;for(A+=1,P+=2;A<=w;A+=1,P+=2){if(A!==h&&S<E[A])R=E[A];else if(R=S+1,y<=R)return A-1;S=E[A],E[A]=R+r(R+1,y,v+R-P+1,g,b)}return T},i=(h,y,g,v,b,E,T)=>{let A=0,P=h,R=E[A],S=R;E[A]-=n(y,R-1,g,v+R-P-1,b);let w=h<T?h:T;for(A+=1,P-=2;A<=w;A+=1,P-=2){if(A!==h&&E[A]<S)R=E[A];else if(R=S-1,R<y)return A-1;S=E[A],E[A]=R-n(y,R-1,g,v+R-P-1,b)}return T},s=(h,y,g,v,b,E,T,A,P,R,S)=>{let w=v-y,O=g-y,q=b-v-O,M=-q-(h-1),k=-q+(h-1),x=t,C=h<A?h:A;for(let j=0,F=-h;j<=C;j+=1,F+=2){let V=j===0||j!==h&&x<T[j],G=V?T[j]:x,se=V?G:G+1,me=w+se-F,be=r(se+1,g,me+1,b,E),Q=se+be;if(x=T[j],T[j]=Q,M<=F&&F<=k){let ee=(h-1-(F+q))/2;if(ee<=R&&P[ee]-1<=Q){let ve=w+G-(V?F+1:F-1),pe=n(y,G,v,ve,E),ie=G-pe,Y=ve-pe,oe=ie+1,le=Y+1;S.nChangePreceding=h-1,h-1===oe+le-y-v?(S.aEndPreceding=y,S.bEndPreceding=v):(S.aEndPreceding=oe,S.bEndPreceding=le),S.nCommonPreceding=pe,pe!==0&&(S.aCommonPreceding=oe,S.bCommonPreceding=le),S.nCommonFollowing=be,be!==0&&(S.aCommonFollowing=se+1,S.bCommonFollowing=me+1);let $=Q+1,te=me+be+1;return S.nChangeFollowing=h-1,h-1===g+b-$-te?(S.aStartFollowing=g,S.bStartFollowing=b):(S.aStartFollowing=$,S.bStartFollowing=te),!0}}}return!1},a=(h,y,g,v,b,E,T,A,P,R,S)=>{let w=b-g,O=g-y,q=b-v-O,M=q-h,k=q+h,x=t,C=h<R?h:R;for(let j=0,F=h;j<=C;j+=1,F-=2){let V=j===0||j!==h&&P[j]<x,G=V?P[j]:x,se=V?G:G-1,me=w+se-F,be=n(y,se-1,v,me-1,E),Q=se-be;if(x=P[j],P[j]=Q,M<=F&&F<=k){let ee=(h+(F-q))/2;if(ee<=A&&Q-1<=T[ee]){let ve=me-be;if(S.nChangePreceding=h,h===Q+ve-y-v?(S.aEndPreceding=y,S.bEndPreceding=v):(S.aEndPreceding=Q,S.bEndPreceding=ve),S.nCommonPreceding=be,be!==0&&(S.aCommonPreceding=Q,S.bCommonPreceding=ve),S.nChangeFollowing=h-1,h===1)S.nCommonFollowing=0,S.aStartFollowing=g,S.bStartFollowing=b;else{let pe=w+G-(V?F-1:F+1),ie=r(G,g,pe,b,E);S.nCommonFollowing=ie,ie!==0&&(S.aCommonFollowing=G,S.bCommonFollowing=pe);let Y=G+ie,oe=pe+ie;h-1===g+b-Y-oe?(S.aStartFollowing=g,S.bStartFollowing=b):(S.aStartFollowing=Y,S.bStartFollowing=oe)}return!0}}}return!1},l=(h,y,g,v,b,E,T,A,P)=>{let R=v-y,S=b-g,w=g-y,O=b-v,q=O-w,M=w,k=w;if(T[0]=y-1,A[0]=g,q%2===0){let x=(h||q)/2,C=(w+O)/2;for(let j=1;j<=C;j+=1)if(M=o(j,g,b,R,E,T,M),j<x)k=i(j,y,v,S,E,A,k);else if(a(j,y,g,v,b,E,T,M,A,k,P))return}else{let x=((h||q)+1)/2,C=(w+O+1)/2,j=1;for(M=o(j,g,b,R,E,T,M),j+=1;j<=C;j+=1)if(k=i(j-1,y,v,S,E,A,k),j<x)M=o(j,g,b,R,E,T,M);else if(s(j,y,g,v,b,E,T,M,A,k,P))return}throw new Error(`${e}: no overlap aStart=${y} aEnd=${g} bStart=${v} bEnd=${b}`)},u=(h,y,g,v,b,E,T,A,P,R)=>{if(b-v<g-y){if(E=!E,E&&T.length===1){let{foundSubsequence:ee,isCommon:ve}=T[0];T[1]={foundSubsequence:(pe,ie,Y)=>{ee(pe,Y,ie)},isCommon:(pe,ie)=>ve(ie,pe)}}let be=y,Q=g;y=v,g=b,v=be,b=Q}let{foundSubsequence:S,isCommon:w}=T[E?1:0];l(h,y,g,v,b,w,A,P,R);let{nChangePreceding:O,aEndPreceding:q,bEndPreceding:M,nCommonPreceding:k,aCommonPreceding:x,bCommonPreceding:C,nCommonFollowing:j,aCommonFollowing:F,bCommonFollowing:V,nChangeFollowing:G,aStartFollowing:se,bStartFollowing:me}=R;y<q&&v<M&&u(O,y,q,v,M,E,T,A,P,R),k!==0&&S(k,x,C),j!==0&&S(j,F,V),se<g&&me<b&&u(G,se,g,me,b,E,T,A,P,R)},d=(h,y)=>{if(typeof y!="number")throw new TypeError(`${e}: ${h} typeof ${typeof y} is not a number`);if(!Number.isSafeInteger(y))throw new RangeError(`${e}: ${h} value ${y} is not a safe integer`);if(y<0)throw new RangeError(`${e}: ${h} value ${y} is a negative integer`)},p=(h,y)=>{let g=typeof y;if(g!=="function")throw new TypeError(`${e}: ${h} typeof ${g} is not a function`)};function f(h,y,g,v){d("aLength",h),d("bLength",y),p("isCommon",g),p("foundSubsequence",v);let b=r(0,h,0,y,g);if(b!==0&&v(b,0,0),h!==b||y!==b){let E=b,T=b,A=n(E,h-1,T,y-1,g),P=h-A,R=y-A,S=b+A;h!==S&&y!==S&&u(0,E,P,T,R,!1,[{foundSubsequence:v,isCommon:g}],[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&&v(A,P,R)}}return ou}var iV=oV(),h0=l0(iV);function sV(e,t){return e.replace(/\s+$/,r=>t(r))}function Dm(e,t,r,n,o,i){return e.length!==0?r(`${n} ${sV(e,o)}`):n!==" "?r(n):t&&i.length!==0?r(`${n} ${i}`):""}function m0(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Dm(e,t,r,n,o,i)}function y0(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Dm(e,t,r,n,o,i)}function g0(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Dm(e,t,r,n,o,i)}function Yb(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function aV(e,t){let r=e.length,n=t.contextLines,o=n+n,i=r,s=!1,a=0,l=0;for(;l!==r;){let A=l;for(;l!==r&&e[l][0]===bt;)l+=1;if(A!==l)if(A===0)l>n&&(i-=l-n,s=!0);else if(l===r){let P=l-A;P>n&&(i-=P-n,s=!0)}else{let P=l-A;P>o&&(i-=P-o,a+=1)}for(;l!==r&&e[l][0]!==bt;)l+=1}let u=a!==0||s;a!==0?i+=a+1:s&&(i+=1);let d=i-1,p=[],f=0;u&&p.push("");let h=0,y=0,g=0,v=0,b=A=>{let P=p.length;p.push(g0(A,P===0||P===d,t)),g+=1,v+=1},E=A=>{let P=p.length;p.push(m0(A,P===0||P===d,t)),g+=1},T=A=>{let P=p.length;p.push(y0(A,P===0||P===d,t)),v+=1};for(l=0;l!==r;){let A=l;for(;l!==r&&e[l][0]===bt;)l+=1;if(A!==l)if(A===0){l>n&&(A=l-n,h=A,y=A,g=h,v=y);for(let P=A;P!==l;P+=1)b(e[P][1])}else if(l===r){let P=l-A>n?A+n:l;for(let R=A;R!==P;R+=1)b(e[R][1])}else{let P=l-A;if(P>o){let R=A+n;for(let w=A;w!==R;w+=1)b(e[w][1]);p[f]=Yb(h,g,y,v,t),f=p.length,p.push("");let S=P-o;h=g+S,y=v+S,g=h,v=y;for(let w=l-n;w!==l;w+=1)b(e[w][1])}else for(let R=A;R!==l;R+=1)b(e[R][1])}for(;l!==r&&e[l][0]===rr;)E(e[l][1]),l+=1;for(;l!==r&&e[l][0]===Gt;)T(e[l][1]),l+=1}return u&&(p[f]=Yb(h,g,y,v,t)),p.join(`
|
|
168
|
+
`)}function lV(e,t){return e.map((r,n,o)=>{let i=r[1],s=n===0||n===o.length-1;switch(r[0]){case rr:return m0(i,s,t);case Gt:return y0(i,s,t);default:return g0(i,s,t)}}).join(`
|
|
169
|
+
`)}var Tp=e=>e,b0=5,uV=0;function cV(){return{aAnnotation:"Expected",aColor:$n.green,aIndicator:"-",bAnnotation:"Received",bColor:$n.red,bIndicator:"+",changeColor:$n.inverse,changeLineTrailingSpaceColor:Tp,commonColor:$n.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Tp,compareKeys:void 0,contextLines:b0,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:$n.yellow,printBasicPrototype:!1,truncateThreshold:uV,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Tp}}function dV(e){return e&&typeof e=="function"?e:void 0}function pV(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:b0}function ki(e={}){return{...cV(),...e,compareKeys:dV(e.compareKeys),contextLines:pV(e.contextLines)}}function Qi(e){return e.length===1&&e[0].length===0}function fV(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case rr:t+=1;break;case Gt:r+=1;break}}),{a:t,b:r}}function hV({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:i,includeChangeCounts:s,omitAnnotationLines:a},l){if(a)return"";let u="",d="";if(s){let h=String(l.a),y=String(l.b),g=n.length-e.length,v=" ".repeat(Math.max(0,g)),b=" ".repeat(Math.max(0,-g)),E=y.length-h.length,T=" ".repeat(Math.max(0,E)),A=" ".repeat(Math.max(0,-E));u=`${v} ${r} ${T}${h}`,d=`${b} ${i} ${A}${y}`}let p=`${r} ${e}${u}`,f=`${i} ${n}${d}`;return`${t(p)}
|
|
170
|
+
${o(f)}
|
|
171
|
+
|
|
172
|
+
`}function Lm(e,t,r){return hV(r,fV(e))+(r.expand?lV(e,r):aV(e,r))+(t?r.truncateAnnotationColor(`
|
|
173
|
+
${r.truncateAnnotation}`):"")}function sd(e,t,r){let n=ki(r),[o,i]=v0(Qi(e)?[]:e,Qi(t)?[]:t,n);return Lm(o,i,n)}function mV(e,t,r,n,o){if(Qi(e)&&Qi(r)&&(e=[],r=[]),Qi(t)&&Qi(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return sd(e,t,o);let[i,s]=v0(r,n,o),a=0,l=0;return i.forEach(u=>{switch(u[0]){case rr:u[1]=e[a],a+=1;break;case Gt:u[1]=t[l],l+=1;break;default:u[1]=t[l],a+=1,l+=1}}),Lm(i,s,ki(o))}function v0(e,t,r){let n=(r==null?void 0:r.truncateThreshold)??!1,o=Math.max(Math.floor((r==null?void 0:r.truncateThreshold)??0),0),i=n?Math.min(e.length,o):e.length,s=n?Math.min(t.length,o):t.length,a=i!==e.length||s!==t.length,l=(f,h)=>e[f]===t[h],u=[],d=0,p=0;for(h0(i,s,l,(f,h,y)=>{for(;d!==h;d+=1)u.push(new mt(rr,e[d]));for(;p!==y;p+=1)u.push(new mt(Gt,t[p]));for(;f!==0;f-=1,d+=1,p+=1)u.push(new mt(bt,t[p]))});d!==i;d+=1)u.push(new mt(rr,e[d]));for(;p!==s;p+=1)u.push(new mt(Gt,t[p]));return[u,a]}function Xb(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}`)}function Qb(e){return e.includes(`\r
|
|
174
|
+
`)?`\r
|
|
175
|
+
`:`
|
|
176
|
+
`}function yV(e,t,r){let n=(r==null?void 0:r.truncateThreshold)??!1,o=Math.max(Math.floor((r==null?void 0:r.truncateThreshold)??0),0),i=e.length,s=t.length;if(n){let f=e.includes(`
|
|
177
|
+
`),h=t.includes(`
|
|
178
|
+
`),y=Qb(e),g=Qb(t),v=f?`${e.split(y,o).join(y)}
|
|
179
|
+
`:e,b=h?`${t.split(g,o).join(g)}
|
|
180
|
+
`:t;i=v.length,s=b.length}let a=i!==e.length||s!==t.length,l=(f,h)=>e[f]===t[h],u=0,d=0,p=[];return h0(i,s,l,(f,h,y)=>{u!==h&&p.push(new mt(rr,e.slice(u,h))),d!==y&&p.push(new mt(Gt,t.slice(d,y))),u=h+f,d=y+f,p.push(new mt(bt,t.slice(y,d)))}),u!==i&&p.push(new mt(rr,e.slice(u))),d!==s&&p.push(new mt(Gt,t.slice(d))),[p,a]}function gV(e,t,r){return t.reduce((n,o)=>n+(o[0]===bt?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var Zb=class{constructor(e,t){hr(this,"op");hr(this,"line");hr(this,"lines");hr(this,"changeColor");this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new mt(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new mt(this.op,gV(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new mt(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
|
|
181
|
+
`)){let r=t.split(`
|
|
182
|
+
`),n=r.length-1;r.forEach((o,i)=>{i<n?(this.pushSubstring(o),this.pushLine()):o.length!==0&&this.pushSubstring(o)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},bV=class{constructor(e,t){hr(this,"deleteBuffer");hr(this,"insertBuffer");hr(this,"lines");this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],r=e[1];if(r.includes(`
|
|
183
|
+
`)){let n=r.split(`
|
|
184
|
+
`),o=n.length-1;n.forEach((i,s)=>{if(s===0){let a=new mt(t,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(a)):(this.pushDiffChangeLines(a),this.flushChangeLines())}else s<o?this.pushDiffCommonLine(new mt(t,i)):i.length!==0&&this.pushDiffChangeLines(new mt(t,i))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function vV(e,t){let r=new Zb(rr,t),n=new Zb(Gt,t),o=new bV(r,n);return e.forEach(i=>{switch(i[0]){case rr:r.align(i);break;case Gt:n.align(i);break;default:o.align(i)}}),o.getLines()}function EV(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===bt&&(o!==r||n[1]!==`
|
|
185
|
+
`))}return e.some(r=>r[0]===bt)}function TV(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
|
|
186
|
+
`)||t.includes(`
|
|
187
|
+
`),[o,i]=E0(n?`${e}
|
|
188
|
+
`:e,n?`${t}
|
|
189
|
+
`:t,!0,r);if(EV(o,n)){let s=ki(r),a=vV(o,s.changeColor);return Lm(a,i,s)}}return sd(e.split(`
|
|
190
|
+
`),t.split(`
|
|
191
|
+
`),r)}function E0(e,t,r,n){let[o,i]=yV(e,t,n);return Z$(o),[o,i]}function _f(e,t){let{commonColor:r}=ki(t);return r(e)}var{AsymmetricMatcher:_V,DOMCollection:wV,DOMElement:SV,Immutable:RV,ReactElement:AV,ReactTestComponent:OV}=km,T0=[OV,AV,SV,wV,RV,_V,km.Error],wf={maxDepth:20,plugins:T0},_0={callToJSON:!1,maxDepth:8,plugins:T0};function Hs(e,t,r){if(Object.is(e,t))return"";let n=Xb(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!==Xb(t)){let s=function(T){return T.length<=v?T:`${T.slice(0,v)}...`},{aAnnotation:a,aColor:l,aIndicator:u,bAnnotation:d,bColor:p,bIndicator:f}=ki(r),h=Sf(_0,r),y=En(e,h),g=En(t,h),v=1e5;y=s(y),g=s(g);let b=`${l(`${u} ${a}:`)}
|
|
192
|
+
${y}`,E=`${p(`${f} ${d}:`)}
|
|
193
|
+
${g}`;return`${b}
|
|
194
|
+
|
|
195
|
+
${E}`}if(!i)switch(n){case"string":return sd(e.split(`
|
|
196
|
+
`),t.split(`
|
|
197
|
+
`),r);case"boolean":case"number":return PV(e,t,r);case"map":return _p(ev(e),ev(t),r);case"set":return _p(tv(e),tv(t),r);default:return _p(e,t,r)}}function PV(e,t,r){let n=En(e,wf),o=En(t,wf);return n===o?"":sd(n.split(`
|
|
198
|
+
`),o.split(`
|
|
199
|
+
`),r)}function ev(e){return new Map(Array.from(e.entries()).sort())}function tv(e){return new Set(Array.from(e.values()).sort())}function _p(e,t,r){let n,o=!1;try{let s=Sf(wf,r);n=rv(e,t,s,r)}catch{o=!0}let i=_f(f0,r);if(n===void 0||n===i){let s=Sf(_0,r);n=rv(e,t,s,r),n!==i&&!o&&(n=`${_f(nV,r)}
|
|
200
|
+
|
|
201
|
+
${n}`)}return n}function Sf(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=ki(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}function rv(e,t,r,n){let o={...r,indent:0},i=En(e,o),s=En(t,o);if(i===s)return _f(f0,n);{let a=En(e,r),l=En(t,r);return mV(a.split(`
|
|
202
|
+
`),l.split(`
|
|
203
|
+
`),i.split(`
|
|
204
|
+
`),s.split(`
|
|
205
|
+
`),n)}}var nv=2e4;function ov(e){return ec(e)==="Object"&&typeof e.asymmetricMatch=="function"}function iv(e,t){let r=ec(e),n=ec(t);return r===n&&(r==="Object"||r==="Array")}function w0(e,t,r){let{aAnnotation:n,bAnnotation:o}=ki(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=nv&&e.length<=nv&&t!==e){if(t.includes(`
|
|
206
|
+
`)||e.includes(`
|
|
207
|
+
`))return TV(t,e,r);let[u]=E0(t,e),d=u.some(y=>y[0]===bt),p=CV(n,o),f=p(n)+IV(sv(u,rr,d)),h=p(o)+xV(sv(u,Gt,d));return`${f}
|
|
208
|
+
${h}`}let i=Jb(t,{forceWritable:!0}),s=Jb(e,{forceWritable:!0}),{replacedExpected:a,replacedActual:l}=S0(s,i);return Hs(a,l,r)}function S0(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}):iv(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),u0(t).forEach(o=>{let i=t[o],s=e[o];if(ov(i))i.asymmetricMatch(s)&&(e[o]=i);else if(ov(s))s.asymmetricMatch(i)&&(t[o]=s);else if(iv(s,i)){let a=S0(s,i,r,n);e[o]=a.replacedActual,t[o]=a.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function CV(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var NV="·";function R0(e){return e.replace(/\s+$/gm,t=>NV.repeat(t.length))}function xV(e){return $n.red(R0(Ir(e)))}function IV(e){return $n.green(R0(Ir(e)))}function sv(e,t,r){return e.reduce((n,o)=>n+(o[0]===bt?o[1]:o[0]===t?r?$n.inverse(o[1]):o[1]:""),"")}var MV="@@__IMMUTABLE_RECORD__@@",qV="@@__IMMUTABLE_ITERABLE__@@";function jV(e){return e&&(e[qV]||e[MV])}var kV=Object.getPrototypeOf({});function av(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function Co(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"&&iu(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&iu(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&iu(()=>r.name??(r.name=e.name)),e.cause!=null&&iu(()=>r.cause??(r.cause=Co(e.cause,t)))),Co(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(jV(e))return Co(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()} ${z$(e.sample)}`;if(typeof e.toJSON=="function")return Co(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]=Co(n,t)}catch(i){r[o]=av(i)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==kV;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=Co(e[o],t)}catch(i){delete r[o],r[o]=av(i)}}),n=Object.getPrototypeOf(n);return r}}function iu(e){try{return e()}catch{}}function DV(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function Fm(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=w0(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=Ir(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=Ir(n.actual,10));try{typeof n.message=="string"&&(n.message=DV(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=Fm(n.cause,t,r))}catch{}try{return Co(n)}catch(o){return Co(new Error(`Failed to fully serialize error: ${o==null?void 0:o.message}
|
|
209
|
+
Inner error message: ${n==null?void 0:n.message}`))}}var In={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"},wp=globalThis.__STORYBOOK_ADDONS_PREVIEW,LV=new Error("This function ran after the play function completed. Did you forget to `await` it?"),lv=e=>Object.prototype.toString.call(e)==="[object Object]",FV=e=>Object.prototype.toString.call(e)==="[object Module]",BV=e=>{if(!lv(e)&&!FV(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!lv(t)},$V=e=>{try{return new e.constructor}catch{return{}}},Sp=()=>({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}),uv=(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}},VV=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{var a,l;try{this.state=((l=(a=ge.window)==null?void 0:a.parent)==null?void 0:l.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__)||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{ge.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:a,renderPhase:l,isPlaying:u=!0,isDebugging:d=!1})=>{let p=this.getState(a);this.setState(a,{...Sp(),...uv(p,d),renderPhase:l||p.renderPhase,shadowCalls:d?p.shadowCalls:[],chainedCallIds:d?p.chainedCallIds:new Set,playUntil:d?p.playUntil:void 0,isPlaying:u,isDebugging:d}),this.sync(a)},t=a=>({storyId:l,playUntil:u})=>{this.getState(l).isDebugging||this.setState(l,({calls:p})=>({calls:[],shadowCalls:p.map(f=>({...f,status:"waiting"})),isDebugging:!0}));let d=this.getLog(l);this.setState(l,({shadowCalls:p})=>{var h;if(u||!d.length)return{playUntil:u};let f=p.findIndex(y=>y.id===d[0].callId);return{playUntil:(h=p.slice(0,f).filter(y=>{var g;return y.interceptable&&!((g=y.ancestors)!=null&&g.length)}).slice(-1)[0])==null?void 0:h.id}}),a.emit(Xu,{storyId:l,isDebugging:!0})},r=a=>({storyId:l})=>{var p;let u=this.getLog(l).filter(f=>{var h;return!((h=f.ancestors)!=null&&h.length)}),d=u.reduceRight((f,h,y)=>f>=0||h.status==="waiting"?f:y,-1);t(a)({storyId:l,playUntil:(p=u[d-1])==null?void 0:p.callId})},n=a=>({storyId:l,callId:u})=>{var g;let{calls:d,shadowCalls:p,resolvers:f}=this.getState(l),h=d.find(({id:v})=>v===u),y=p.find(({id:v})=>v===u);if(!h&&y&&Object.values(f).length>0){let v=(g=this.getLog(l).find(b=>b.status==="waiting"))==null?void 0:g.callId;y.id!==v&&this.setState(l,{playUntil:y.id}),Object.values(f).forEach(b=>b())}else t(a)({storyId:l,playUntil:u})},o=a=>({storyId:l})=>{var d;let{resolvers:u}=this.getState(l);if(Object.values(u).length>0)Object.values(u).forEach(p=>p());else{let p=(d=this.getLog(l).find(f=>f.status==="waiting"))==null?void 0:d.callId;p?t(a)({storyId:l,playUntil:p}):i({storyId:l})}},i=({storyId:a})=>{this.setState(a,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(a).resolvers).forEach(l=>l())},s=({storyId:a,newPhase:l})=>{let{isDebugging:u}=this.getState(a);if(l==="preparing"&&u)return e({storyId:a,renderPhase:l,isDebugging:u});if(l==="playing")return e({storyId:a,renderPhase:l,isDebugging:u});l==="played"?this.setState(a,{renderPhase:l,isLocked:!1,isPlaying:!1,isDebugging:!1}):l==="errored"?this.setState(a,{renderPhase:l,isLocked:!1,isPlaying:!1}):l==="aborted"?this.setState(a,{renderPhase:l,isLocked:!0,isPlaying:!1}):this.setState(a,{renderPhase:l}),this.sync(a)};wp&&wp.ready().then(()=>{this.channel=wp.getChannel(),this.channel.on(Xu,e),this.channel.on(Ai,s),this.channel.on(cm,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(In.START,t(this.channel)),this.channel.on(In.BACK,r(this.channel)),this.channel.on(In.GOTO,n(this.channel)),this.channel.on(In.NEXT,o(this.channel)),this.channel.on(In.END,i)})}getState(e){return this.state[e]||Sp()}setState(e,t){if(e){let r=this.getState(e),n=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,...n}},this.updateParentWindowState()}}cleanup(){var t;this.state=Object.entries(this.state).reduce((r,[n,o])=>{let i=uv(o);return i&&(r[n]=Object.assign(Sp(),i)),r},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};(t=this.channel)==null||t.emit(In.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((i,s)=>{n[s]=i});let o=new Set;return n.reduceRight((i,s)=>(s.args.forEach(a=>{a!=null&&a.__callId__&&o.add(a.__callId__)}),s.path.forEach(a=>{a.__callId__&&o.add(a.__callId__)}),(s.interceptable||s.exception)&&!o.has(s.id)&&(i.unshift({callId:s.id,status:s.status,ancestors:s.ancestors}),o.add(s.id)),i),[])}instrument(e,t,r=0){if(!BV(e))return e;let{mutate:n=!1,path:o=[]}=t,i=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,i.reduce((s,a)=>{let l=UV(e,a);if(typeof(l==null?void 0:l.get)=="function"){if(l.configurable){let d=()=>{var p,f;return(f=(p=l==null?void 0:l.get)==null?void 0:p.bind(e))==null?void 0:f()};Object.defineProperty(s,a,{get:()=>this.instrument(d(),{...t,path:o.concat(a)},r)})}return s}let u=e[a];return typeof u!="function"?(s[a]=this.instrument(u,{...t,path:o.concat(a)},r),s):"__originalFn__"in u&&typeof u.__originalFn__=="function"?(s[a]=u,s):(s[a]=(...d)=>this.track(a,u,e,d,t),s[a].__originalFn__=u,Object.defineProperty(s[a],"name",{value:a,writable:!1}),Object.keys(u).length>0&&Object.assign(s[a],this.instrument({...u},{...t,path:o.concat(a)},r)),s)},n?e:$V(e))}track(e,t,r,n,o){var g,v,b,E;let i=((g=n==null?void 0:n[0])==null?void 0:g.__storyId__)||((E=(b=(v=ge.__STORYBOOK_PREVIEW__)==null?void 0:v.selectionStore)==null?void 0:b.selection)==null?void 0:E.storyId),{cursor:s,ancestors:a}=this.getState(i);this.setState(i,{cursor:s+1});let l=`${a.slice(-1)[0]||i} [${s}] ${e}`,{path:u=[],intercept:d=!1,retain:p=!1}=o,f=typeof d=="function"?d(e,u):d,h={id:l,cursor:s,storyId:i,ancestors:a,path:u,method:e,args:n,interceptable:f,retain:p},y=(f&&!a.length?this.intercept:this.invoke).call(this,t,r,h,o);return this.instrument(y,{...o,mutate:!0,path:[{__callId__:h.id}]})}intercept(e,t,r,n){let{chainedCallIds:o,isDebugging:i,playUntil:s}=this.getState(r.storyId),a=o.has(r.id);return!i||a||s?(s===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(l=>{this.setState(r.storyId,({resolvers:u})=>({isLocked:!1,resolvers:{...u,[r.id]:l}}))}).then(()=>(this.setState(r.storyId,l=>{let{[r.id]:u,...d}=l.resolvers;return{isLocked:!0,resolvers:d}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:o,renderPhase:i}=this.getState(r.storyId),s=25,a=(d,p,f)=>{var h,y,g;if(f.includes(d))return"[Circular]";if(f=[...f,d],p>s)return"...";if(o.has(d))return o.get(d);if(d instanceof Array)return d.map(v=>a(v,++p,f));if(d instanceof Date)return{__date__:{value:d.toISOString()}};if(d instanceof Error){let{name:v,message:b,stack:E}=d;return{__error__:{name:v,message:b,stack:E}}}if(d instanceof RegExp){let{flags:v,source:b}=d;return{__regexp__:{flags:v,source:b}}}if(d instanceof((h=ge.window)==null?void 0:h.HTMLElement)){let{prefix:v,localName:b,id:E,classList:T,innerText:A}=d,P=Array.from(T);return{__element__:{prefix:v,localName:b,id:E,classNames:P,innerText:A}}}return typeof d=="function"?{__function__:{name:"getMockName"in d?d.getMockName():d.name}}:typeof d=="symbol"?{__symbol__:{description:d.description}}:typeof d=="object"&&((y=d==null?void 0:d.constructor)!=null&&y.name)&&((g=d==null?void 0:d.constructor)==null?void 0:g.name)!=="Object"?{__class__:{name:d.constructor.name}}:Object.prototype.toString.call(d)==="[object Object]"?Object.fromEntries(Object.entries(d).map(([v,b])=>[v,a(b,++p,f)])):d},l={...r,args:r.args.map(d=>a(d,0,[]))};r.path.forEach(d=>{d!=null&&d.__callId__&&this.setState(r.storyId,({chainedCallIds:p})=>({chainedCallIds:new Set(Array.from(p).concat(d.__callId__))}))});let u=d=>{var p;if(d instanceof Error){let{name:f,message:h,stack:y,callId:g=r.id}=d,{showDiff:v=void 0,diff:b=void 0,actual:E=void 0,expected:T=void 0}=d.name==="AssertionError"?Fm(d):d,A={name:f,message:h,stack:y,callId:g,showDiff:v,diff:b,actual:E,expected:T};if(this.update({...l,status:"error",exception:A}),this.setState(r.storyId,P=>({callRefsByResult:new Map([...Array.from(P.callRefsByResult.entries()),[d,{__callId__:r.id,retain:r.retain}]])})),(p=r.ancestors)==null?void 0:p.length)throw Object.prototype.hasOwnProperty.call(d,"callId")||Object.defineProperty(d,"callId",{value:r.id}),d}throw d};try{if(i==="played"&&!r.retain)throw LV;let d=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(f=>typeof f!="function"||JV(f)||Object.keys(f).length?f:(...h)=>{let{cursor:y,ancestors:g}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...g,r.id]});let v=()=>this.setState(r.storyId,{cursor:y,ancestors:g}),b=!1;try{let E=f(...h);return E instanceof Promise?(b=!0,E.finally(v)):E}finally{b||v()}}),p=e.apply(t,d);return p&&["object","function","symbol"].includes(typeof p)&&this.setState(r.storyId,f=>({callRefsByResult:new Map([...Array.from(f.callRefsByResult.entries()),[p,{__callId__:r.id,retain:r.retain}]])})),this.update({...l,status:p instanceof Promise?"active":"done"}),p instanceof Promise?p.then(f=>(this.update({...l,status:"done"}),f),u):p}catch(d){return u(d)}}update(e){var t;(t=this.channel)==null||t.emit(In.CALL,e),this.setState(e.storyId,({calls:r})=>{let n=r.concat(e).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(e.storyId)}sync(e){let t=()=>{var u,d,p;let{isLocked:r,isPlaying:n}=this.getState(e),o=this.getLog(e),i=(u=o.filter(({ancestors:f})=>!f.length).find(f=>f.status==="waiting"))==null?void 0:u.callId,s=o.some(f=>f.status==="active");if(this.detached||r||s||o.length===0){let f={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:o};(d=this.channel)==null||d.emit(In.SYNC,f);return}let a=o.some(f=>f.status==="done"||f.status==="error"),l={controlStates:{detached:this.detached,start:a,back:a,goto:!0,next:n,end:n},logItems:o,pausedAt:i};(p=this.channel)==null||p.emit(In.SYNC,l)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function Il(e,t={}){var r,n,o,i,s,a,l,u;try{let d=!1,p=!1;return(o=(n=(r=ge.window)==null?void 0:r.location)==null?void 0:n.search)!=null&&o.includes("instrument=true")?d=!0:(a=(s=(i=ge.window)==null?void 0:i.location)==null?void 0:s.search)!=null&&a.includes("instrument=false")&&(p=!0),((l=ge.window)==null?void 0:l.parent)===ge.window&&!d||p?e:(ge.window&&!ge.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(ge.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new VV),((u=ge.window)==null?void 0:u.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(d){return Et.warn(d),e}}function UV(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function JV(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var A0=Object.defineProperty,z=(e,t)=>A0(e,"name",{value:t,configurable:!0}),Bm=(e,t)=>{for(var r in t)A0(e,r,{get:t[r],enumerable:!0})},Tn={};Bm(Tn,{addChainableMethod:()=>Qm,addLengthGuard:()=>jl,addMethod:()=>Km,addProperty:()=>zm,checkError:()=>Rr,compareByInspect:()=>oc,eql:()=>Z0,expectTypes:()=>M0,flag:()=>Ne,getActual:()=>ld,getMessage:()=>Um,getName:()=>cd,getOperator:()=>ry,getOwnEnumerableProperties:()=>ty,getOwnEnumerablePropertySymbols:()=>ey,getPathInfo:()=>Wm,hasProperty:()=>ud,inspect:()=>Je,isNaN:()=>ic,isNumeric:()=>Ft,isProxyEnabled:()=>ql,isRegExp:()=>sc,objDisplay:()=>mi,overwriteChainableMethod:()=>Zm,overwriteMethod:()=>Xm,overwriteProperty:()=>Ym,proxify:()=>Gs,test:()=>$m,transferFlags:()=>ln,type:()=>Ze});var Rr={};Bm(Rr,{compatibleConstructor:()=>C0,compatibleInstance:()=>P0,compatibleMessage:()=>N0,getConstructorName:()=>x0,getMessage:()=>I0});function ad(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}z(ad,"isErrorInstance");function O0(e){return Object.prototype.toString.call(e)==="[object RegExp]"}z(O0,"isRegExp");function P0(e,t){return ad(t)&&e===t}z(P0,"compatibleInstance");function C0(e,t){return ad(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}z(C0,"compatibleConstructor");function N0(e,t){let r=typeof e=="string"?e:e.message;return O0(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}z(N0,"compatibleMessage");function x0(e){let t=e;return ad(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}z(x0,"getConstructorName");function I0(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}z(I0,"getMessage");function Ne(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}z(Ne,"flag");function $m(e,t){let r=Ne(e,"negate"),n=t[0];return r?!n:n}z($m,"test");function Ze(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)}z(Ze,"type");var HV="captureStackTrace"in Error,su,Ge=(su=class extends Error{constructor(t="Unspecified AssertionError",r,n){super(t);hr(this,"message");this.message=t,HV&&Error.captureStackTrace(this,n||su);for(let o in r)o in this||(this[o]=r[o])}get name(){return"AssertionError"}get ok(){return!1}toJSON(t){return{...this,name:this.name,message:this.message,ok:!1,stack:t!==!1?this.stack:void 0}}},z(su,"AssertionError"),su);function M0(e,t){let r=Ne(e,"message"),n=Ne(e,"ssfi");r=r?r+": ":"",e=Ne(e,"object"),t=t.map(function(s){return s.toLowerCase()}),t.sort();let o=t.map(function(s,a){let l=~["a","e","i","o","u"].indexOf(s.charAt(0))?"an":"a";return(t.length>1&&a===t.length-1?"or ":"")+l+" "+s}).join(", "),i=Ze(e).toLowerCase();if(!t.some(function(s){return i===s}))throw new Ge(r+"object tested must be "+o+", but "+i+" given",void 0,n)}z(M0,"expectTypes");function ld(e,t){return t.length>4?t[4]:e._obj}z(ld,"getActual");var cv={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"]},GV={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Ts="…";function q0(e,t){let r=cv[GV[t]]||cv[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}z(q0,"colorise");function j0({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:s=1/0,seen:a=[],truncate:l=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(l),seen:a,inspect:d,stylize:u};return p.colors&&(p.stylize=q0),p}z(j0,"normaliseOptions");function k0(e){return e>="\uD800"&&e<="\uDBFF"}z(k0,"isHighSurrogate");function ao(e,t,r=Ts){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&&k0(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}z(ao,"truncate");function Gr(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,s="",a="",l="";for(let u=0;u<o;u+=1){let d=u+1===e.length,p=u+2===e.length;l=`${Ts}(${e.length-u})`;let f=e[u];t.truncate=i-s.length-(d?0:n.length);let h=a||r(f,t)+(d?"":n),y=s.length+h.length,g=y+l.length;if(d&&y>i&&s.length+l.length<=i||!d&&!p&&g>i||(a=d?"":r(e[u+1],t)+(p?"":n),!d&&p&&g>i&&y+a.length>i))break;if(s+=h,!d&&!p&&y+a.length>=i){l=`${Ts}(${e.length-u-1})`;break}l=""}return`${s}${l}`}z(Gr,"inspectList");function D0(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}z(D0,"quoteComplexKey");function _s([e,t],r){return r.truncate-=2,typeof e=="string"?e=D0(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}z(_s,"inspectProperty");function L0(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Gr(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Gr(r.map(i=>[i,e[i]]),t,_s)),`[ ${n}${o?`, ${o}`:""} ]`}z(L0,"inspectArray");var WV=z(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function fn(e,t){let r=WV(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 a=`${t.stylize(ao(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=a.length,e[s]!==e.length&&t.truncate<=3){o+=`${Ts}(${e.length-e[s]+1})`;break}o+=a}let i="";return n.length&&(i=Gr(n.map(s=>[s,e[s]]),t,_s)),`${r}[ ${o}${i?`, ${i}`:""} ]`}z(fn,"inspectTypedArray");function F0(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${ao(n[1],t.truncate-o.length-1)}`,"date")}z(F0,"inspectDate");function Rf(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${ao(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}z(Rf,"inspectFunction");function B0([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}z(B0,"inspectMapEntry");function $0(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}z($0,"mapToEntries");function V0(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Gr($0(e),t,B0)} }`)}z(V0,"inspectMap");var zV=Number.isNaN||(e=>e!==e);function Af(e,t){return zV(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(ao(String(e),t.truncate),"number")}z(Af,"inspectNumber");function Of(e,t){let r=ao(e.toString(),t.truncate-1);return r!==Ts&&(r+="n"),t.stylize(r,"bigint")}z(Of,"inspectBigInt");function U0(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${ao(o,n)}/${r}`,"regexp")}z(U0,"inspectRegExp");function J0(e){let t=[];return e.forEach(r=>{t.push(r)}),t}z(J0,"arrayFromSet");function H0(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Gr(J0(e),t)} }`)}z(H0,"inspectSet");var dv=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),KV={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},YV=16;function G0(e){return KV[e]||`\\u${`0000${e.charCodeAt(0).toString(YV)}`.slice(-4)}`}z(G0,"escape");function Pf(e,t){return dv.test(e)&&(e=e.replace(dv,G0)),t.stylize(`'${ao(e,t.truncate-2)}'`,"string")}z(Pf,"inspectString");function Cf(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}z(Cf,"inspectSymbol");var XV=z(()=>"Promise{…}","getPromiseValue"),QV=XV;function Oa(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=Gr(r.map(a=>[a,e[a]]),t,_s),i=Gr(n.map(a=>[a,e[a]]),t,_s);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}z(Oa,"inspectObject");var Rp=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function W0(e,t){let r="";return Rp&&Rp in e&&(r=e[Rp]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Oa(e,t)}`}z(W0,"inspectClass");function z0(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Gr(e,t)} ]`)}z(z0,"inspectArguments");var ZV=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function K0(e,t){let r=Object.getOwnPropertyNames(e).filter(s=>ZV.indexOf(s)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=ao(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=Gr(r.map(s=>[s,e[s]]),t,_s);return`${n}${o}${i?` { ${i} }`:""}`}z(K0,"inspectObject");function Y0([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}z(Y0,"inspectAttribute");function tc(e,t){return Gr(e,t,X0,`
|
|
210
|
+
`)}z(tc,"inspectNodeCollection");function X0(e,t){switch(e.nodeType){case 1:return Vm(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}z(X0,"inspectNode");function Vm(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 a="";r.length>0&&(a+=" ",a+=Gr(r.map(d=>[d,e.getAttribute(d)]),t,Y0," ")),t.truncate-=a.length;let l=t.truncate,u=tc(e.children,t);return u&&u.length>l&&(u=`${Ts}(${e.children.length})`),`${o}${a}${i}${u}${s}`}z(Vm,"inspectHTML");var eU=typeof Symbol=="function"&&typeof Symbol.for=="function",Ap=eU?Symbol.for("chai/inspect"):"@@chai/inspect",Op=Symbol.for("nodejs.util.inspect.custom"),pv=new WeakMap,fv={},hv={undefined:z((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:z((e,t)=>t.stylize("null","null"),"null"),boolean:z((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:z((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Af,Number:Af,bigint:Of,BigInt:Of,string:Pf,String:Pf,function:Rf,Function:Rf,symbol:Cf,Symbol:Cf,Array:L0,Date:F0,Map:V0,Set:H0,RegExp:U0,Promise:QV,WeakSet:z((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:z((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:z0,Int8Array:fn,Uint8Array:fn,Uint8ClampedArray:fn,Int16Array:fn,Uint16Array:fn,Int32Array:fn,Uint32Array:fn,Float32Array:fn,Float64Array:fn,Generator:z(()=>"","Generator"),DataView:z(()=>"","DataView"),ArrayBuffer:z(()=>"","ArrayBuffer"),Error:K0,HTMLCollection:tc,NodeList:tc},tU=z((e,t,r)=>Ap in e&&typeof e[Ap]=="function"?e[Ap](t):Op in e&&typeof e[Op]=="function"?e[Op](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&pv.has(e.constructor)?pv.get(e.constructor)(e,t):fv[r]?fv[r](e,t):"","inspectCustom"),rU=Object.prototype.toString;function rc(e,t={}){let r=j0(t,rc),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=rU.call(e).slice(8,-1)),o in hv)return hv[o](e,r);if(n&&e){let s=tU(e,r,o);if(s)return typeof s=="string"?s:rc(s,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?Oa(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Vm(e,r):"constructor"in e?e.constructor!==Object?W0(e,r):Oa(e,r):e===Object(e)?Oa(e,r):r.stylize(String(e),o)}z(rc,"inspect");var dr={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function Je(e,t,r,n){let o={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:dr.truncateThreshold?dr.truncateThreshold:1/0};return rc(e,o)}z(Je,"inspect");function mi(e){let t=Je(e),r=Object.prototype.toString.call(e);if(dr.truncateThreshold&&t.length>=dr.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]"){let n=Object.keys(e);return"{ Object ("+(n.length>2?n.splice(0,2).join(", ")+", ...":n.join(", "))+") }"}else return t}else return t}z(mi,"objDisplay");function Um(e,t){let r=Ne(e,"negate"),n=Ne(e,"object"),o=t[3],i=ld(e,t),s=r?t[2]:t[1],a=Ne(e,"message");return typeof s=="function"&&(s=s()),s=s||"",s=s.replace(/#\{this\}/g,function(){return mi(n)}).replace(/#\{act\}/g,function(){return mi(i)}).replace(/#\{exp\}/g,function(){return mi(o)}),a?a+": "+s:s}z(Um,"getMessage");function ln(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),r=arguments.length===3?r:!0;for(let o in n)(r||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=n[o])}z(ln,"transferFlags");function Nf(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)}z(Nf,"type");function Jm(){this._key="chai/deep-eql__"+Math.random()+Date.now()}z(Jm,"FakeMap");Jm.prototype={get:z(function(e){return e[this._key]},"get"),set:z(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},"set")};var Q0=typeof WeakMap=="function"?WeakMap:Jm;function xf(e,t,r){if(!r||Pi(e)||Pi(t))return null;var n=r.get(e);if(n){var o=n.get(t);if(typeof o=="boolean")return o}return null}z(xf,"memoizeCompare");function ga(e,t,r,n){if(!(!r||Pi(e)||Pi(t))){var o=r.get(e);o?o.set(t,n):(o=new Q0,o.set(t,n),r.set(e,o))}}z(ga,"memoizeSet");var Z0=Ml;function Ml(e,t,r){if(r&&r.comparator)return If(e,t,r);var n=Hm(e,t);return n!==null?n:If(e,t,r)}z(Ml,"deepEqual");function Hm(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:Pi(e)||Pi(t)?!1:null}z(Hm,"simpleEqual");function If(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new Q0;var n=r&&r.comparator,o=xf(e,t,r.memoize);if(o!==null)return o;var i=xf(t,e,r.memoize);if(i!==null)return i;if(n){var s=n(e,t);if(s===!1||s===!0)return ga(e,t,r.memoize,s),s;var a=Hm(e,t);if(a!==null)return a}var l=Nf(e);if(l!==Nf(t))return ga(e,t,r.memoize,!1),!1;ga(e,t,r.memoize,!0);var u=eR(e,t,l,r);return ga(e,t,r.memoize,u),u}z(If,"extensiveDeepEqual");function eR(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return Ml(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return Gm(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 Do(e,t,n);case"RegExp":return tR(e,t);case"Generator":return rR(e,t,n);case"DataView":return Do(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return Do(new Uint8Array(e),new Uint8Array(t),n);case"Set":return Mf(e,t,n);case"Map":return Mf(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 oR(e,t,n)}}z(eR,"extensiveDeepEqualByType");function tR(e,t){return e.toString()===t.toString()}z(tR,"regexpEqual");function Mf(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(z(function(i,s){n.push([i,s])},"gatherEntries")),t.forEach(z(function(i,s){o.push([i,s])},"gatherEntries")),Do(n.sort(),o.sort(),r)}z(Mf,"entriesEqual");function Do(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(Ml(e[o],t[o],r)===!1)return!1;return!0}z(Do,"iterableEqual");function rR(e,t,r){return Do(nc(e),nc(t),r)}z(rR,"generatorEqual");function nR(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}z(nR,"hasIteratorFunction");function qf(e){if(nR(e))try{return nc(e[Symbol.iterator]())}catch{return[]}return[]}z(qf,"getIteratorEntries");function nc(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}z(nc,"getGeneratorEntries");function jf(e){var t=[];for(var r in e)t.push(r);return t}z(jf,"getEnumerableKeys");function kf(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}z(kf,"getEnumerableSymbols");function Gm(e,t,r,n){var o=r.length;if(o===0)return!0;for(var i=0;i<o;i+=1)if(Ml(e[r[i]],t[r[i]],n)===!1)return!1;return!0}z(Gm,"keysEqual");function oR(e,t,r){var n=jf(e),o=jf(t),i=kf(e),s=kf(t);if(n=n.concat(i),o=o.concat(s),n.length&&n.length===o.length)return Do(Df(n).sort(),Df(o).sort())===!1?!1:Gm(e,t,n,r);var a=qf(e),l=qf(t);return a.length&&a.length===l.length?(a.sort(),l.sort(),Do(a,l,r)):n.length===0&&a.length===0&&o.length===0&&l.length===0}z(oR,"objectEqual");function Pi(e){return e===null||typeof e!="object"}z(Pi,"isPrimitive");function Df(e){return e.map(z(function(t){return typeof t=="symbol"?t.toString():t},"mapSymbol"))}z(Df,"mapSymbols");function ud(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}z(ud,"hasProperty");function iR(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})}z(iR,"parsePath");function Lf(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}z(Lf,"internalGetPathValue");function Wm(e,t){let r=iR(t),n=r[r.length-1],o={parent:r.length>1?Lf(e,r,r.length-1):e,name:n.p||n.i,value:Lf(e,r)};return o.exists=ud(o.parent,o.name),o}z(Wm,"getPathInfo");var au,B=(au=class{constructor(e,t,r,n){hr(this,"__flags",{});return Ne(this,"ssfi",r||au),Ne(this,"lockSsfi",n),Ne(this,"object",e),Ne(this,"message",t),Ne(this,"eql",dr.deepEqual||Z0),Gs(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),dr.includeStack}static set includeStack(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),dr.includeStack=e}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),dr.showDiff}static set showDiff(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),dr.showDiff=e}static addProperty(e,t){zm(this.prototype,e,t)}static addMethod(e,t){Km(this.prototype,e,t)}static addChainableMethod(e,t,r){Qm(this.prototype,e,t,r)}static overwriteProperty(e,t){Ym(this.prototype,e,t)}static overwriteMethod(e,t){Xm(this.prototype,e,t)}static overwriteChainableMethod(e,t,r){Zm(this.prototype,e,t,r)}assert(e,t,r,n,o,i){let s=$m(this,arguments);if(i!==!1&&(i=!0),n===void 0&&o===void 0&&(i=!1),dr.showDiff!==!0&&(i=!1),!s){t=Um(this,arguments);let a={actual:ld(this,arguments),expected:n,showDiff:i},l=ry(this,arguments);throw l&&(a.operator=l),new Ge(t,a,dr.includeStack?this.assert:Ne(this,"ssfi"))}}get _obj(){return Ne(this,"object")}set _obj(e){Ne(this,"object",e)}},z(au,"Assertion"),au);function ql(){return dr.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}z(ql,"isProxyEnabled");function zm(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:z(function n(){!ql()&&!Ne(this,"lockSsfi")&&Ne(this,"ssfi",n);let o=r.call(this);if(o!==void 0)return o;let i=new B;return ln(this,i),i},"propertyGetter"),configurable:!0})}z(zm,"addProperty");var nU=Object.getOwnPropertyDescriptor(function(){},"length");function jl(e,t,r){return nU.configurable&&Object.defineProperty(e,"length",{get:z(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}z(jl,"addLengthGuard");function sR(e){let t=Object.getOwnPropertyNames(e);function r(o){t.indexOf(o)===-1&&t.push(o)}z(r,"addProperty");let n=Object.getPrototypeOf(e);for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}z(sR,"getProperties");var mv=["__flags","__methods","_obj","assert"];function Gs(e,t){return ql()?new Proxy(e,{get:z(function r(n,o){if(typeof o=="string"&&dr.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(n,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');let i=null,s=4;throw sR(n).forEach(function(a){if(!Object.prototype.hasOwnProperty(a)&&mv.indexOf(a)===-1){let l=aR(o,a,s);l<s&&(i=a,s=l)}}),Error(i!==null?"Invalid Chai property: "+o+'. Did you mean "'+i+'"?':"Invalid Chai property: "+o)}return mv.indexOf(o)===-1&&!Ne(n,"lockSsfi")&&Ne(n,"ssfi",r),Reflect.get(n,o)},"proxyGetter")}):e}z(Gs,"proxify");function aR(e,t,r){if(Math.abs(e.length-t.length)>=r)return r;let n=[];for(let o=0;o<=e.length;o++)n[o]=Array(t.length+1).fill(0),n[o][0]=o;for(let o=0;o<t.length;o++)n[0][o]=o;for(let o=1;o<=e.length;o++){let i=e.charCodeAt(o-1);for(let s=1;s<=t.length;s++){if(Math.abs(o-s)>=r){n[o][s]=r;continue}n[o][s]=Math.min(n[o-1][s]+1,n[o][s-1]+1,n[o-1][s-1]+(i===t.charCodeAt(s-1)?0:1))}}return n[e.length][t.length]}z(aR,"stringDistanceCapped");function Km(e,t,r){let n=z(function(){Ne(this,"lockSsfi")||Ne(this,"ssfi",n);let o=r.apply(this,arguments);if(o!==void 0)return o;let i=new B;return ln(this,i),i},"methodWrapper");jl(n,t,!1),e[t]=Gs(n,t)}z(Km,"addMethod");function Ym(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t),o=z(function(){},"_super");n&&typeof n.get=="function"&&(o=n.get),Object.defineProperty(e,t,{get:z(function i(){!ql()&&!Ne(this,"lockSsfi")&&Ne(this,"ssfi",i);let s=Ne(this,"lockSsfi");Ne(this,"lockSsfi",!0);let a=r(o).call(this);if(Ne(this,"lockSsfi",s),a!==void 0)return a;let l=new B;return ln(this,l),l},"overwritingPropertyGetter"),configurable:!0})}z(Ym,"overwriteProperty");function Xm(e,t,r){let n=e[t],o=z(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(o=n);let i=z(function(){Ne(this,"lockSsfi")||Ne(this,"ssfi",i);let s=Ne(this,"lockSsfi");Ne(this,"lockSsfi",!0);let a=r(o).apply(this,arguments);if(Ne(this,"lockSsfi",s),a!==void 0)return a;let l=new B;return ln(this,l),l},"overwritingMethodWrapper");jl(i,t,!1),e[t]=Gs(i,t)}z(Xm,"overwriteMethod");var oU=typeof Object.setPrototypeOf=="function",yv=z(function(){},"testFn"),iU=Object.getOwnPropertyNames(yv).filter(function(e){let t=Object.getOwnPropertyDescriptor(yv,e);return typeof t!="object"?!0:!t.configurable}),sU=Function.prototype.call,aU=Function.prototype.apply;function Qm(e,t,r,n){typeof n!="function"&&(n=z(function(){},"chainingBehavior"));let o={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:z(function(){o.chainingBehavior.call(this);let i=z(function(){Ne(this,"lockSsfi")||Ne(this,"ssfi",i);let s=o.method.apply(this,arguments);if(s!==void 0)return s;let a=new B;return ln(this,a),a},"chainableMethodWrapper");if(jl(i,t,!0),oU){let s=Object.create(this);s.call=sU,s.apply=aU,Object.setPrototypeOf(i,s)}else Object.getOwnPropertyNames(e).forEach(function(s){if(iU.indexOf(s)!==-1)return;let a=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(i,s,a)});return ln(this,i),Gs(i)},"chainableMethodGetter"),configurable:!0})}z(Qm,"addChainableMethod");function Zm(e,t,r,n){let o=e.__methods[t],i=o.chainingBehavior;o.chainingBehavior=z(function(){let a=n(i).call(this);if(a!==void 0)return a;let l=new B;return ln(this,l),l},"overwritingChainableMethodGetter");let s=o.method;o.method=z(function(){let a=r(s).apply(this,arguments);if(a!==void 0)return a;let l=new B;return ln(this,l),l},"overwritingChainableMethodWrapper")}z(Zm,"overwriteChainableMethod");function oc(e,t){return Je(e)<Je(t)?-1:1}z(oc,"compareByInspect");function ey(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}z(ey,"getOwnEnumerablePropertySymbols");function ty(e){return Object.keys(e).concat(ey(e))}z(ty,"getOwnEnumerableProperties");var ic=Number.isNaN;function lR(e){let t=Ze(e);return["Array","Object","Function"].indexOf(t)!==-1}z(lR,"isObjectType");function ry(e,t){let r=Ne(e,"operator"),n=Ne(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))return;let s=lR(o);return/\snot\s/.test(i)?s?"notDeepStrictEqual":"notStrictEqual":s?"deepStrictEqual":"strictEqual"}z(ry,"getOperator");function cd(e){return e.name}z(cd,"getName");function sc(e){return Object.prototype.toString.call(e)==="[object RegExp]"}z(sc,"isRegExp");function Ft(e){return["Number","BigInt"].includes(Ze(e))}z(Ft,"isNumeric");var{flag:W}=Tn;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){B.addProperty(e)});B.addProperty("not",function(){W(this,"negate",!0)});B.addProperty("deep",function(){W(this,"deep",!0)});B.addProperty("nested",function(){W(this,"nested",!0)});B.addProperty("own",function(){W(this,"own",!0)});B.addProperty("ordered",function(){W(this,"ordered",!0)});B.addProperty("any",function(){W(this,"any",!0),W(this,"all",!1)});B.addProperty("all",function(){W(this,"all",!0),W(this,"any",!1)});var gv={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function ny(e,t){t&&W(this,"message",t),e=e.toLowerCase();let r=W(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ",o=Ze(r).toLowerCase();gv.function.includes(e)?this.assert(gv[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)}z(ny,"an");B.addChainableMethod("an",ny);B.addChainableMethod("a",ny);function uR(e,t){return ic(e)&&ic(t)||e===t}z(uR,"SameValueZero");function kl(){W(this,"contains",!0)}z(kl,"includeChainingBehavior");function Dl(e,t){t&&W(this,"message",t);let r=W(this,"object"),n=Ze(r).toLowerCase(),o=W(this,"message"),i=W(this,"negate"),s=W(this,"ssfi"),a=W(this,"deep"),l=a?"deep ":"",u=a?W(this,"eql"):uR;o=o?o+": ":"";let d=!1;switch(n){case"string":d=r.indexOf(e)!==-1;break;case"weakset":if(a)throw new Ge(o+"unable to use .deep.include with WeakSet",void 0,s);d=r.has(e);break;case"map":r.forEach(function(p){d=d||u(p,e)});break;case"set":a?r.forEach(function(p){d=d||u(p,e)}):d=r.has(e);break;case"array":a?d=r.some(function(p){return u(p,e)}):d=r.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new Ge(o+"the given combination of arguments ("+n+" and "+Ze(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 "+Ze(e).toLowerCase(),void 0,s);let p=Object.keys(e),f=null,h=0;if(p.forEach(function(y){let g=new B(r);if(ln(this,g,!0),W(g,"lockSsfi",!0),!i||p.length===1){g.property(y,e[y]);return}try{g.property(y,e[y])}catch(v){if(!Rr.compatibleConstructor(v,Ge))throw v;f===null&&(f=v),h++}},this),i&&p.length>1&&h===p.length)throw f;return}}this.assert(d,"expected #{this} to "+l+"include "+Je(e),"expected #{this} to not "+l+"include "+Je(e))}z(Dl,"include");B.addChainableMethod("include",Dl,kl);B.addChainableMethod("contain",Dl,kl);B.addChainableMethod("contains",Dl,kl);B.addChainableMethod("includes",Dl,kl);B.addProperty("ok",function(){this.assert(W(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});B.addProperty("true",function(){this.assert(W(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!W(this,"negate"))});B.addProperty("numeric",function(){let e=W(this,"object");this.assert(["Number","BigInt"].includes(Ze(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!W(this,"negate"))});B.addProperty("callable",function(){let e=W(this,"object"),t=W(this,"ssfi"),r=W(this,"message"),n=r?`${r}: `:"",o=W(this,"negate"),i=o?`${n}expected ${Je(e)} not to be a callable function`:`${n}expected ${Je(e)} to be a callable function`,s=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(Ze(e));if(s&&o||!s&&!o)throw new Ge(i,void 0,t)});B.addProperty("false",function(){this.assert(W(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!W(this,"negate"))});B.addProperty("null",function(){this.assert(W(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});B.addProperty("undefined",function(){this.assert(W(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});B.addProperty("NaN",function(){this.assert(ic(W(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function oy(){let e=W(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}z(oy,"assertExist");B.addProperty("exist",oy);B.addProperty("exists",oy);B.addProperty("empty",function(){let e=W(this,"object"),t=W(this,"ssfi"),r=W(this,"message"),n;switch(r=r?r+": ":"",Ze(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new Ge(r+".empty was passed a weak collection",void 0,t);case"function":{let o=r+".empty was passed a function "+cd(e);throw new Ge(o.trim(),void 0,t)}default:if(e!==Object(e))throw new Ge(r+".empty was passed non-string primitive "+Je(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 iy(){let e=W(this,"object"),t=Ze(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}z(iy,"checkArguments");B.addProperty("arguments",iy);B.addProperty("Arguments",iy);function dd(e,t){t&&W(this,"message",t);let r=W(this,"object");if(W(this,"deep")){let n=W(this,"lockSsfi");W(this,"lockSsfi",!0),this.eql(e),W(this,"lockSsfi",n)}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}z(dd,"assertEqual");B.addMethod("equal",dd);B.addMethod("equals",dd);B.addMethod("eq",dd);function sy(e,t){t&&W(this,"message",t);let r=W(this,"eql");this.assert(r(e,W(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}z(sy,"assertEql");B.addMethod("eql",sy);B.addMethod("eqls",sy);function pd(e,t){t&&W(this,"message",t);let r=W(this,"object"),n=W(this,"doLength"),o=W(this,"message"),i=o?o+": ":"",s=W(this,"ssfi"),a=Ze(r).toLowerCase(),l=Ze(e).toLowerCase();if(n&&a!=="map"&&a!=="set"&&new B(r,o,s,!0).to.have.property("length"),!n&&a==="date"&&l!=="date")throw new Ge(i+"the argument to above must be a date",void 0,s);if(!Ft(e)&&(n||Ft(r)))throw new Ge(i+"the argument to above must be a number",void 0,s);if(!n&&a!=="date"&&!Ft(r)){let u=a==="string"?"'"+r+"'":r;throw new Ge(i+"expected "+u+" to be a number or a date",void 0,s)}if(n){let u="length",d;a==="map"||a==="set"?(u="size",d=r.size):d=r.length,this.assert(d>e,"expected #{this} to have a "+u+" above #{exp} but got #{act}","expected #{this} to not have a "+u+" above #{exp}",e,d)}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}z(pd,"assertAbove");B.addMethod("above",pd);B.addMethod("gt",pd);B.addMethod("greaterThan",pd);function fd(e,t){t&&W(this,"message",t);let r=W(this,"object"),n=W(this,"doLength"),o=W(this,"message"),i=o?o+": ":"",s=W(this,"ssfi"),a=Ze(r).toLowerCase(),l=Ze(e).toLowerCase(),u,d=!0;if(n&&a!=="map"&&a!=="set"&&new B(r,o,s,!0).to.have.property("length"),!n&&a==="date"&&l!=="date")u=i+"the argument to least must be a date";else if(!Ft(e)&&(n||Ft(r)))u=i+"the argument to least must be a number";else if(!n&&a!=="date"&&!Ft(r)){let p=a==="string"?"'"+r+"'":r;u=i+"expected "+p+" to be a number or a date"}else d=!1;if(d)throw new Ge(u,void 0,s);if(n){let p="length",f;a==="map"||a==="set"?(p="size",f=r.size):f=r.length,this.assert(f>=e,"expected #{this} to have a "+p+" at least #{exp} but got #{act}","expected #{this} to have a "+p+" below #{exp}",e,f)}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}z(fd,"assertLeast");B.addMethod("least",fd);B.addMethod("gte",fd);B.addMethod("greaterThanOrEqual",fd);function hd(e,t){t&&W(this,"message",t);let r=W(this,"object"),n=W(this,"doLength"),o=W(this,"message"),i=o?o+": ":"",s=W(this,"ssfi"),a=Ze(r).toLowerCase(),l=Ze(e).toLowerCase(),u,d=!0;if(n&&a!=="map"&&a!=="set"&&new B(r,o,s,!0).to.have.property("length"),!n&&a==="date"&&l!=="date")u=i+"the argument to below must be a date";else if(!Ft(e)&&(n||Ft(r)))u=i+"the argument to below must be a number";else if(!n&&a!=="date"&&!Ft(r)){let p=a==="string"?"'"+r+"'":r;u=i+"expected "+p+" to be a number or a date"}else d=!1;if(d)throw new Ge(u,void 0,s);if(n){let p="length",f;a==="map"||a==="set"?(p="size",f=r.size):f=r.length,this.assert(f<e,"expected #{this} to have a "+p+" below #{exp} but got #{act}","expected #{this} to not have a "+p+" below #{exp}",e,f)}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}z(hd,"assertBelow");B.addMethod("below",hd);B.addMethod("lt",hd);B.addMethod("lessThan",hd);function md(e,t){t&&W(this,"message",t);let r=W(this,"object"),n=W(this,"doLength"),o=W(this,"message"),i=o?o+": ":"",s=W(this,"ssfi"),a=Ze(r).toLowerCase(),l=Ze(e).toLowerCase(),u,d=!0;if(n&&a!=="map"&&a!=="set"&&new B(r,o,s,!0).to.have.property("length"),!n&&a==="date"&&l!=="date")u=i+"the argument to most must be a date";else if(!Ft(e)&&(n||Ft(r)))u=i+"the argument to most must be a number";else if(!n&&a!=="date"&&!Ft(r)){let p=a==="string"?"'"+r+"'":r;u=i+"expected "+p+" to be a number or a date"}else d=!1;if(d)throw new Ge(u,void 0,s);if(n){let p="length",f;a==="map"||a==="set"?(p="size",f=r.size):f=r.length,this.assert(f<=e,"expected #{this} to have a "+p+" at most #{exp} but got #{act}","expected #{this} to have a "+p+" above #{exp}",e,f)}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}z(md,"assertMost");B.addMethod("most",md);B.addMethod("lte",md);B.addMethod("lessThanOrEqual",md);B.addMethod("within",function(e,t,r){r&&W(this,"message",r);let n=W(this,"object"),o=W(this,"doLength"),i=W(this,"message"),s=i?i+": ":"",a=W(this,"ssfi"),l=Ze(n).toLowerCase(),u=Ze(e).toLowerCase(),d=Ze(t).toLowerCase(),p,f=!0,h=u==="date"&&d==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&l!=="map"&&l!=="set"&&new B(n,i,a,!0).to.have.property("length"),!o&&l==="date"&&(u!=="date"||d!=="date"))p=s+"the arguments to within must be dates";else if((!Ft(e)||!Ft(t))&&(o||Ft(n)))p=s+"the arguments to within must be numbers";else if(!o&&l!=="date"&&!Ft(n)){let y=l==="string"?"'"+n+"'":n;p=s+"expected "+y+" to be a number or a date"}else f=!1;if(f)throw new Ge(p,void 0,a);if(o){let y="length",g;l==="map"||l==="set"?(y="size",g=n.size):g=n.length,this.assert(g>=e&&g<=t,"expected #{this} to have a "+y+" within "+h,"expected #{this} to not have a "+y+" within "+h)}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+h,"expected #{this} to not be within "+h)});function ay(e,t){t&&W(this,"message",t);let r=W(this,"object"),n=W(this,"ssfi"),o=W(this,"message"),i;try{i=r instanceof e}catch(a){throw a instanceof TypeError?(o=o?o+": ":"",new Ge(o+"The instanceof assertion needs a constructor but "+Ze(e)+" was given.",void 0,n)):a}let s=cd(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)}z(ay,"assertInstanceOf");B.addMethod("instanceof",ay);B.addMethod("instanceOf",ay);function ly(e,t,r){r&&W(this,"message",r);let n=W(this,"nested"),o=W(this,"own"),i=W(this,"message"),s=W(this,"object"),a=W(this,"ssfi"),l=typeof e;if(i=i?i+": ":"",n){if(l!=="string")throw new Ge(i+"the argument to property must be a string when using nested syntax",void 0,a)}else if(l!=="string"&&l!=="number"&&l!=="symbol")throw new Ge(i+"the argument to property must be a string, number, or symbol",void 0,a);if(n&&o)throw new Ge(i+'The "nested" and "own" flags cannot be combined.',void 0,a);if(s==null)throw new Ge(i+"Target cannot be null or undefined.",void 0,a);let u=W(this,"deep"),d=W(this,"negate"),p=n?Wm(s,e):null,f=n?p.value:s[e],h=u?W(this,"eql"):(v,b)=>v===b,y="";u&&(y+="deep "),o&&(y+="own "),n&&(y+="nested "),y+="property ";let g;o?g=Object.prototype.hasOwnProperty.call(s,e):n?g=p.exists:g=ud(s,e),(!d||arguments.length===1)&&this.assert(g,"expected #{this} to have "+y+Je(e),"expected #{this} to not have "+y+Je(e)),arguments.length>1&&this.assert(g&&h(t,f),"expected #{this} to have "+y+Je(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+y+Je(e)+" of #{act}",t,f),W(this,"object",f)}z(ly,"assertProperty");B.addMethod("property",ly);function uy(e,t,r){W(this,"own",!0),ly.apply(this,arguments)}z(uy,"assertOwnProperty");B.addMethod("ownProperty",uy);B.addMethod("haveOwnProperty",uy);function cy(e,t,r){typeof t=="string"&&(r=t,t=null),r&&W(this,"message",r);let n=W(this,"object"),o=Object.getOwnPropertyDescriptor(Object(n),e),i=W(this,"eql");o&&t?this.assert(i(t,o),"expected the own property descriptor for "+Je(e)+" on #{this} to match "+Je(t)+", got "+Je(o),"expected the own property descriptor for "+Je(e)+" on #{this} to not match "+Je(t),t,o,!0):this.assert(o,"expected #{this} to have an own property descriptor for "+Je(e),"expected #{this} to not have an own property descriptor for "+Je(e)),W(this,"object",o)}z(cy,"assertOwnPropertyDescriptor");B.addMethod("ownPropertyDescriptor",cy);B.addMethod("haveOwnPropertyDescriptor",cy);function dy(){W(this,"doLength",!0)}z(dy,"assertLengthChain");function py(e,t){t&&W(this,"message",t);let r=W(this,"object"),n=Ze(r).toLowerCase(),o=W(this,"message"),i=W(this,"ssfi"),s="length",a;switch(n){case"map":case"set":s="size",a=r.size;break;default:new B(r,o,i,!0).to.have.property("length"),a=r.length}this.assert(a==e,"expected #{this} to have a "+s+" of #{exp} but got #{act}","expected #{this} to not have a "+s+" of #{act}",e,a)}z(py,"assertLength");B.addChainableMethod("length",py,dy);B.addChainableMethod("lengthOf",py,dy);function fy(e,t){t&&W(this,"message",t);let r=W(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e)}z(fy,"assertMatch");B.addMethod("match",fy);B.addMethod("matches",fy);B.addMethod("string",function(e,t){t&&W(this,"message",t);let r=W(this,"object"),n=W(this,"message"),o=W(this,"ssfi");new B(r,n,o,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+Je(e),"expected #{this} to not contain "+Je(e))});function hy(e){let t=W(this,"object"),r=Ze(t),n=Ze(e),o=W(this,"ssfi"),i=W(this,"deep"),s,a="",l,u=!0,d=W(this,"message");d=d?d+": ":"";let 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")a=i?"deeply ":"",l=[],t.forEach(function(b,E){l.push(E)}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(l=ty(t),n){case"Array":if(arguments.length>1)throw new Ge(p,void 0,o);break;case"Object":if(arguments.length>1)throw new Ge(p,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(b){return typeof b=="symbol"?b:String(b)})}if(!e.length)throw new Ge(d+"keys required",void 0,o);let f=e.length,h=W(this,"any"),y=W(this,"all"),g=e,v=i?W(this,"eql"):(b,E)=>b===E;if(!h&&!y&&(y=!0),h&&(u=g.some(function(b){return l.some(function(E){return v(b,E)})})),y&&(u=g.every(function(b){return l.some(function(E){return v(b,E)})}),W(this,"contains")||(u=u&&e.length==l.length)),f>1){e=e.map(function(E){return Je(E)});let b=e.pop();y&&(s=e.join(", ")+", and "+b),h&&(s=e.join(", ")+", or "+b)}else s=Je(e[0]);s=(f>1?"keys ":"key ")+s,s=(W(this,"contains")?"contain ":"have ")+s,this.assert(u,"expected #{this} to "+a+s,"expected #{this} to not "+a+s,g.slice(0).sort(oc),l.sort(oc),!0)}z(hy,"assertKeys");B.addMethod("keys",hy);B.addMethod("key",hy);function yd(e,t,r){r&&W(this,"message",r);let n=W(this,"object"),o=W(this,"ssfi"),i=W(this,"message"),s=W(this,"negate")||!1;new B(n,i,o,!0).is.a("function"),(sc(e)||typeof e=="string")&&(t=e,e=null);let a,l=!1;try{n()}catch(h){l=!0,a=h}let u=e===void 0&&t===void 0,d=!!(e&&t),p=!1,f=!1;if(u||!u&&!s){let h="an error";e instanceof Error?h="#{exp}":e&&(h=Rr.getConstructorName(e));let y=a;if(a instanceof Error)y=a.toString();else if(typeof a=="string")y=a;else if(a&&(typeof a=="object"||typeof a=="function"))try{y=Rr.getConstructorName(a)}catch{}this.assert(l,"expected #{this} to throw "+h,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),y)}if(e&&a&&(e instanceof Error&&Rr.compatibleInstance(a,e)===s&&(d&&s?p=!0:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a&&!s?" but #{act} was thrown":""),e.toString(),a.toString())),Rr.compatibleConstructor(a,e)===s&&(d&&s?p=!0:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&Rr.getConstructorName(e),a instanceof Error?a.toString():a&&Rr.getConstructorName(a)))),a&&t!==void 0&&t!==null){let h="including";sc(t)&&(h="matching"),Rr.compatibleMessage(a,t)===s&&(d&&s?f=!0:this.assert(s,"expected #{this} to throw error "+h+" #{exp} but got #{act}","expected #{this} to throw error not "+h+" #{exp}",t,Rr.getMessage(a)))}p&&f&&this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&Rr.getConstructorName(e),a instanceof Error?a.toString():a&&Rr.getConstructorName(a)),W(this,"object",a)}z(yd,"assertThrows");B.addMethod("throw",yd);B.addMethod("throws",yd);B.addMethod("Throw",yd);function my(e,t){t&&W(this,"message",t);let r=W(this,"object"),n=W(this,"itself"),o=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof o=="function","expected #{this} to respond to "+Je(e),"expected #{this} to not respond to "+Je(e))}z(my,"respondTo");B.addMethod("respondTo",my);B.addMethod("respondsTo",my);B.addProperty("itself",function(){W(this,"itself",!0)});function yy(e,t){t&&W(this,"message",t);let r=W(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+mi(e),"expected #{this} to not satisfy"+mi(e),!W(this,"negate"),n)}z(yy,"satisfy");B.addMethod("satisfy",yy);B.addMethod("satisfies",yy);function gy(e,t,r){r&&W(this,"message",r);let n=W(this,"object"),o=W(this,"message"),i=W(this,"ssfi");new B(n,o,i,!0).is.numeric;let s="A `delta` value is required for `closeTo`";if(t==null)throw new Ge(o?`${o}: ${s}`:s,void 0,i);if(new B(t,o,i,!0).is.numeric,s="A `expected` value is required for `closeTo`",e==null)throw new Ge(o?`${o}: ${s}`:s,void 0,i);new B(e,o,i,!0).is.numeric;let a=z(u=>u<0n?-u:u,"abs"),l=z(u=>parseFloat(parseFloat(u).toPrecision(12)),"strip");this.assert(l(a(n-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}z(gy,"closeTo");B.addMethod("closeTo",gy);B.addMethod("approximately",gy);function cR(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(a,l){if(o)return r?r(a,i[l]):a===i[l];if(!r){let u=i.indexOf(a);return u===-1?!1:(n||i.splice(u,1),!0)}return i.some(function(u,d){return r(a,u)?(n||i.splice(d,1),!0):!1})})}z(cR,"isSubsetOf");B.addMethod("members",function(e,t){t&&W(this,"message",t);let r=W(this,"object"),n=W(this,"message"),o=W(this,"ssfi");new B(r,n,o,!0).to.be.iterable,new B(e,n,o,!0).to.be.iterable;let i=W(this,"contains"),s=W(this,"ordered"),a,l,u;i?(a=s?"an ordered superset":"a superset",l="expected #{this} to be "+a+" of #{exp}",u="expected #{this} to not be "+a+" of #{exp}"):(a=s?"ordered members":"members",l="expected #{this} to have the same "+a+" as #{exp}",u="expected #{this} to not have the same "+a+" as #{exp}");let d=W(this,"deep")?W(this,"eql"):void 0;this.assert(cR(e,r,d,i,s),l,u,e,r,!0)});B.addProperty("iterable",function(e){e&&W(this,"message",e);let t=W(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function dR(e,t){t&&W(this,"message",t);let r=W(this,"object"),n=W(this,"message"),o=W(this,"ssfi"),i=W(this,"contains"),s=W(this,"deep"),a=W(this,"eql");new B(e,n,o,!0).to.be.an("array"),i?this.assert(e.some(function(l){return r.indexOf(l)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,r):s?this.assert(e.some(function(l){return a(r,l)}),"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)}z(dR,"oneOf");B.addMethod("oneOf",dR);function by(e,t,r){r&&W(this,"message",r);let n=W(this,"object"),o=W(this,"message"),i=W(this,"ssfi");new B(n,o,i,!0).is.a("function");let s;t?(new B(e,o,i,!0).to.have.property(t),s=e[t]):(new B(e,o,i,!0).is.a("function"),s=e()),n();let a=t==null?e():e[t],l=t==null?s:"."+t;W(this,"deltaMsgObj",l),W(this,"initialDeltaValue",s),W(this,"finalDeltaValue",a),W(this,"deltaBehavior","change"),W(this,"realDelta",a!==s),this.assert(s!==a,"expected "+l+" to change","expected "+l+" to not change")}z(by,"assertChanges");B.addMethod("change",by);B.addMethod("changes",by);function vy(e,t,r){r&&W(this,"message",r);let n=W(this,"object"),o=W(this,"message"),i=W(this,"ssfi");new B(n,o,i,!0).is.a("function");let s;t?(new B(e,o,i,!0).to.have.property(t),s=e[t]):(new B(e,o,i,!0).is.a("function"),s=e()),new B(s,o,i,!0).is.a("number"),n();let a=t==null?e():e[t],l=t==null?s:"."+t;W(this,"deltaMsgObj",l),W(this,"initialDeltaValue",s),W(this,"finalDeltaValue",a),W(this,"deltaBehavior","increase"),W(this,"realDelta",a-s),this.assert(a-s>0,"expected "+l+" to increase","expected "+l+" to not increase")}z(vy,"assertIncreases");B.addMethod("increase",vy);B.addMethod("increases",vy);function Ey(e,t,r){r&&W(this,"message",r);let n=W(this,"object"),o=W(this,"message"),i=W(this,"ssfi");new B(n,o,i,!0).is.a("function");let s;t?(new B(e,o,i,!0).to.have.property(t),s=e[t]):(new B(e,o,i,!0).is.a("function"),s=e()),new B(s,o,i,!0).is.a("number"),n();let a=t==null?e():e[t],l=t==null?s:"."+t;W(this,"deltaMsgObj",l),W(this,"initialDeltaValue",s),W(this,"finalDeltaValue",a),W(this,"deltaBehavior","decrease"),W(this,"realDelta",s-a),this.assert(a-s<0,"expected "+l+" to decrease","expected "+l+" to not decrease")}z(Ey,"assertDecreases");B.addMethod("decrease",Ey);B.addMethod("decreases",Ey);function pR(e,t){t&&W(this,"message",t);let r=W(this,"deltaMsgObj"),n=W(this,"initialDeltaValue"),o=W(this,"finalDeltaValue"),i=W(this,"deltaBehavior"),s=W(this,"realDelta"),a;i==="change"?a=Math.abs(o-n)===Math.abs(e):a=s===Math.abs(e),this.assert(a,"expected "+r+" to "+i+" by "+e,"expected "+r+" to not "+i+" by "+e)}z(pR,"assertDelta");B.addMethod("by",pR);B.addProperty("extensible",function(){let e=W(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")});B.addProperty("sealed",function(){let e=W(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")});B.addProperty("frozen",function(){let e=W(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")});B.addProperty("finite",function(e){let t=W(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 ac(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 ac(r,n)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(r){let n=e[r],o=t[r];return typeof n=="object"&&n!==null&&o!==null?ac(n,o):typeof n=="function"?n(o):o===n}):!1}z(ac,"compareSubset");B.addMethod("containSubset",function(e){let t=Ne(this,"object"),r=dr.showDiff;this.assert(ac(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,r)});function yi(e,t){return new B(e,t)}z(yi,"expect");yi.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new Ge(r,{actual:e,expected:t,operator:n},yi.fail)};var fR={};Bm(fR,{Should:()=>uU,should:()=>lU});function Ty(){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 B(this.valueOf(),null,e):new B(this,null,e)}z(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})}z(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});let r={};return r.fail=function(n,o,i,s){throw arguments.length<2&&(i=n,n=void 0),i=i||"should.fail()",new Ge(i,{actual:n,expected:o,operator:s},r.fail)},r.equal=function(n,o,i){new B(n,i).to.equal(o)},r.Throw=function(n,o,i,s){new B(n,s).to.Throw(o,i)},r.exist=function(n,o){new B(n,o).to.exist},r.not={},r.not.equal=function(n,o,i){new B(n,i).to.not.equal(o)},r.not.Throw=function(n,o,i,s){new B(n,s).to.not.Throw(o,i)},r.not.exist=function(n,o){new B(n,o).to.not.exist},r.throw=r.Throw,r.not.throw=r.not.Throw,r}z(Ty,"loadShould");var lU=Ty,uU=Ty;function L(e,t){new B(null,null,L,!0).assert(e,t,"[ negation message unavailable ]")}z(L,"assert");L.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new Ge(r,{actual:e,expected:t,operator:n},L.fail)};L.isOk=function(e,t){new B(e,t,L.isOk,!0).is.ok};L.isNotOk=function(e,t){new B(e,t,L.isNotOk,!0).is.not.ok};L.equal=function(e,t,r){let n=new B(e,r,L.equal,!0);n.assert(t==Ne(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};L.notEqual=function(e,t,r){let n=new B(e,r,L.notEqual,!0);n.assert(t!=Ne(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};L.strictEqual=function(e,t,r){new B(e,r,L.strictEqual,!0).to.equal(t)};L.notStrictEqual=function(e,t,r){new B(e,r,L.notStrictEqual,!0).to.not.equal(t)};L.deepEqual=L.deepStrictEqual=function(e,t,r){new B(e,r,L.deepEqual,!0).to.eql(t)};L.notDeepEqual=function(e,t,r){new B(e,r,L.notDeepEqual,!0).to.not.eql(t)};L.isAbove=function(e,t,r){new B(e,r,L.isAbove,!0).to.be.above(t)};L.isAtLeast=function(e,t,r){new B(e,r,L.isAtLeast,!0).to.be.least(t)};L.isBelow=function(e,t,r){new B(e,r,L.isBelow,!0).to.be.below(t)};L.isAtMost=function(e,t,r){new B(e,r,L.isAtMost,!0).to.be.most(t)};L.isTrue=function(e,t){new B(e,t,L.isTrue,!0).is.true};L.isNotTrue=function(e,t){new B(e,t,L.isNotTrue,!0).to.not.equal(!0)};L.isFalse=function(e,t){new B(e,t,L.isFalse,!0).is.false};L.isNotFalse=function(e,t){new B(e,t,L.isNotFalse,!0).to.not.equal(!1)};L.isNull=function(e,t){new B(e,t,L.isNull,!0).to.equal(null)};L.isNotNull=function(e,t){new B(e,t,L.isNotNull,!0).to.not.equal(null)};L.isNaN=function(e,t){new B(e,t,L.isNaN,!0).to.be.NaN};L.isNotNaN=function(e,t){new B(e,t,L.isNotNaN,!0).not.to.be.NaN};L.exists=function(e,t){new B(e,t,L.exists,!0).to.exist};L.notExists=function(e,t){new B(e,t,L.notExists,!0).to.not.exist};L.isUndefined=function(e,t){new B(e,t,L.isUndefined,!0).to.equal(void 0)};L.isDefined=function(e,t){new B(e,t,L.isDefined,!0).to.not.equal(void 0)};L.isCallable=function(e,t){new B(e,t,L.isCallable,!0).is.callable};L.isNotCallable=function(e,t){new B(e,t,L.isNotCallable,!0).is.not.callable};L.isObject=function(e,t){new B(e,t,L.isObject,!0).to.be.a("object")};L.isNotObject=function(e,t){new B(e,t,L.isNotObject,!0).to.not.be.a("object")};L.isArray=function(e,t){new B(e,t,L.isArray,!0).to.be.an("array")};L.isNotArray=function(e,t){new B(e,t,L.isNotArray,!0).to.not.be.an("array")};L.isString=function(e,t){new B(e,t,L.isString,!0).to.be.a("string")};L.isNotString=function(e,t){new B(e,t,L.isNotString,!0).to.not.be.a("string")};L.isNumber=function(e,t){new B(e,t,L.isNumber,!0).to.be.a("number")};L.isNotNumber=function(e,t){new B(e,t,L.isNotNumber,!0).to.not.be.a("number")};L.isNumeric=function(e,t){new B(e,t,L.isNumeric,!0).is.numeric};L.isNotNumeric=function(e,t){new B(e,t,L.isNotNumeric,!0).is.not.numeric};L.isFinite=function(e,t){new B(e,t,L.isFinite,!0).to.be.finite};L.isBoolean=function(e,t){new B(e,t,L.isBoolean,!0).to.be.a("boolean")};L.isNotBoolean=function(e,t){new B(e,t,L.isNotBoolean,!0).to.not.be.a("boolean")};L.typeOf=function(e,t,r){new B(e,r,L.typeOf,!0).to.be.a(t)};L.notTypeOf=function(e,t,r){new B(e,r,L.notTypeOf,!0).to.not.be.a(t)};L.instanceOf=function(e,t,r){new B(e,r,L.instanceOf,!0).to.be.instanceOf(t)};L.notInstanceOf=function(e,t,r){new B(e,r,L.notInstanceOf,!0).to.not.be.instanceOf(t)};L.include=function(e,t,r){new B(e,r,L.include,!0).include(t)};L.notInclude=function(e,t,r){new B(e,r,L.notInclude,!0).not.include(t)};L.deepInclude=function(e,t,r){new B(e,r,L.deepInclude,!0).deep.include(t)};L.notDeepInclude=function(e,t,r){new B(e,r,L.notDeepInclude,!0).not.deep.include(t)};L.nestedInclude=function(e,t,r){new B(e,r,L.nestedInclude,!0).nested.include(t)};L.notNestedInclude=function(e,t,r){new B(e,r,L.notNestedInclude,!0).not.nested.include(t)};L.deepNestedInclude=function(e,t,r){new B(e,r,L.deepNestedInclude,!0).deep.nested.include(t)};L.notDeepNestedInclude=function(e,t,r){new B(e,r,L.notDeepNestedInclude,!0).not.deep.nested.include(t)};L.ownInclude=function(e,t,r){new B(e,r,L.ownInclude,!0).own.include(t)};L.notOwnInclude=function(e,t,r){new B(e,r,L.notOwnInclude,!0).not.own.include(t)};L.deepOwnInclude=function(e,t,r){new B(e,r,L.deepOwnInclude,!0).deep.own.include(t)};L.notDeepOwnInclude=function(e,t,r){new B(e,r,L.notDeepOwnInclude,!0).not.deep.own.include(t)};L.match=function(e,t,r){new B(e,r,L.match,!0).to.match(t)};L.notMatch=function(e,t,r){new B(e,r,L.notMatch,!0).to.not.match(t)};L.property=function(e,t,r){new B(e,r,L.property,!0).to.have.property(t)};L.notProperty=function(e,t,r){new B(e,r,L.notProperty,!0).to.not.have.property(t)};L.propertyVal=function(e,t,r,n){new B(e,n,L.propertyVal,!0).to.have.property(t,r)};L.notPropertyVal=function(e,t,r,n){new B(e,n,L.notPropertyVal,!0).to.not.have.property(t,r)};L.deepPropertyVal=function(e,t,r,n){new B(e,n,L.deepPropertyVal,!0).to.have.deep.property(t,r)};L.notDeepPropertyVal=function(e,t,r,n){new B(e,n,L.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)};L.ownProperty=function(e,t,r){new B(e,r,L.ownProperty,!0).to.have.own.property(t)};L.notOwnProperty=function(e,t,r){new B(e,r,L.notOwnProperty,!0).to.not.have.own.property(t)};L.ownPropertyVal=function(e,t,r,n){new B(e,n,L.ownPropertyVal,!0).to.have.own.property(t,r)};L.notOwnPropertyVal=function(e,t,r,n){new B(e,n,L.notOwnPropertyVal,!0).to.not.have.own.property(t,r)};L.deepOwnPropertyVal=function(e,t,r,n){new B(e,n,L.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)};L.notDeepOwnPropertyVal=function(e,t,r,n){new B(e,n,L.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)};L.nestedProperty=function(e,t,r){new B(e,r,L.nestedProperty,!0).to.have.nested.property(t)};L.notNestedProperty=function(e,t,r){new B(e,r,L.notNestedProperty,!0).to.not.have.nested.property(t)};L.nestedPropertyVal=function(e,t,r,n){new B(e,n,L.nestedPropertyVal,!0).to.have.nested.property(t,r)};L.notNestedPropertyVal=function(e,t,r,n){new B(e,n,L.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)};L.deepNestedPropertyVal=function(e,t,r,n){new B(e,n,L.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)};L.notDeepNestedPropertyVal=function(e,t,r,n){new B(e,n,L.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)};L.lengthOf=function(e,t,r){new B(e,r,L.lengthOf,!0).to.have.lengthOf(t)};L.hasAnyKeys=function(e,t,r){new B(e,r,L.hasAnyKeys,!0).to.have.any.keys(t)};L.hasAllKeys=function(e,t,r){new B(e,r,L.hasAllKeys,!0).to.have.all.keys(t)};L.containsAllKeys=function(e,t,r){new B(e,r,L.containsAllKeys,!0).to.contain.all.keys(t)};L.doesNotHaveAnyKeys=function(e,t,r){new B(e,r,L.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};L.doesNotHaveAllKeys=function(e,t,r){new B(e,r,L.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};L.hasAnyDeepKeys=function(e,t,r){new B(e,r,L.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};L.hasAllDeepKeys=function(e,t,r){new B(e,r,L.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};L.containsAllDeepKeys=function(e,t,r){new B(e,r,L.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};L.doesNotHaveAnyDeepKeys=function(e,t,r){new B(e,r,L.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};L.doesNotHaveAllDeepKeys=function(e,t,r){new B(e,r,L.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};L.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);let o=new B(e,n,L.throws,!0).to.throw(t,r);return Ne(o,"object")};L.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new B(e,n,L.doesNotThrow,!0).to.not.throw(t,r)};L.operator=function(e,t,r,n){let 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 Ge(n+'Invalid operator "'+t+'"',void 0,L.operator)}let i=new B(o,n,L.operator,!0);i.assert(Ne(i,"object")===!0,"expected "+Je(e)+" to be "+t+" "+Je(r),"expected "+Je(e)+" to not be "+t+" "+Je(r))};L.closeTo=function(e,t,r,n){new B(e,n,L.closeTo,!0).to.be.closeTo(t,r)};L.approximately=function(e,t,r,n){new B(e,n,L.approximately,!0).to.be.approximately(t,r)};L.sameMembers=function(e,t,r){new B(e,r,L.sameMembers,!0).to.have.same.members(t)};L.notSameMembers=function(e,t,r){new B(e,r,L.notSameMembers,!0).to.not.have.same.members(t)};L.sameDeepMembers=function(e,t,r){new B(e,r,L.sameDeepMembers,!0).to.have.same.deep.members(t)};L.notSameDeepMembers=function(e,t,r){new B(e,r,L.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};L.sameOrderedMembers=function(e,t,r){new B(e,r,L.sameOrderedMembers,!0).to.have.same.ordered.members(t)};L.notSameOrderedMembers=function(e,t,r){new B(e,r,L.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};L.sameDeepOrderedMembers=function(e,t,r){new B(e,r,L.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};L.notSameDeepOrderedMembers=function(e,t,r){new B(e,r,L.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};L.includeMembers=function(e,t,r){new B(e,r,L.includeMembers,!0).to.include.members(t)};L.notIncludeMembers=function(e,t,r){new B(e,r,L.notIncludeMembers,!0).to.not.include.members(t)};L.includeDeepMembers=function(e,t,r){new B(e,r,L.includeDeepMembers,!0).to.include.deep.members(t)};L.notIncludeDeepMembers=function(e,t,r){new B(e,r,L.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};L.includeOrderedMembers=function(e,t,r){new B(e,r,L.includeOrderedMembers,!0).to.include.ordered.members(t)};L.notIncludeOrderedMembers=function(e,t,r){new B(e,r,L.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};L.includeDeepOrderedMembers=function(e,t,r){new B(e,r,L.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};L.notIncludeDeepOrderedMembers=function(e,t,r){new B(e,r,L.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};L.oneOf=function(e,t,r){new B(e,r,L.oneOf,!0).to.be.oneOf(t)};L.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${Je(e)} to be an iterable`:`expected ${Je(e)} to be an iterable`,new Ge(t,void 0,L.isIterable)};L.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new B(e,n,L.changes,!0).to.change(t,r)};L.changesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new B(e,o,L.changesBy,!0).to.change(t,r).by(n)};L.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new B(e,n,L.doesNotChange,!0).to.not.change(t,r)};L.changesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new B(e,o,L.changesButNotBy,!0).to.change(t,r).but.not.by(n)};L.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new B(e,n,L.increases,!0).to.increase(t,r)};L.increasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new B(e,o,L.increasesBy,!0).to.increase(t,r).by(n)};L.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new B(e,n,L.doesNotIncrease,!0).to.not.increase(t,r)};L.increasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new B(e,o,L.increasesButNotBy,!0).to.increase(t,r).but.not.by(n)};L.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new B(e,n,L.decreases,!0).to.decrease(t,r)};L.decreasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new B(e,o,L.decreasesBy,!0).to.decrease(t,r).by(n)};L.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new B(e,n,L.doesNotDecrease,!0).to.not.decrease(t,r)};L.doesNotDecreaseBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);return new B(e,o,L.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)};L.decreasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new B(e,o,L.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n)};L.ifError=function(e){if(e)throw e};L.isExtensible=function(e,t){new B(e,t,L.isExtensible,!0).to.be.extensible};L.isNotExtensible=function(e,t){new B(e,t,L.isNotExtensible,!0).to.not.be.extensible};L.isSealed=function(e,t){new B(e,t,L.isSealed,!0).to.be.sealed};L.isNotSealed=function(e,t){new B(e,t,L.isNotSealed,!0).to.not.be.sealed};L.isFrozen=function(e,t){new B(e,t,L.isFrozen,!0).to.be.frozen};L.isNotFrozen=function(e,t){new B(e,t,L.isNotFrozen,!0).to.not.be.frozen};L.isEmpty=function(e,t){new B(e,t,L.isEmpty,!0).to.be.empty};L.isNotEmpty=function(e,t){new B(e,t,L.isNotEmpty,!0).to.not.be.empty};L.containsSubset=function(e,t,r){new B(e,r).to.containSubset(t)};L.doesNotContainSubset=function(e,t,r){new B(e,r).to.not.containSubset(t)};var cU=[["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 cU)L[t]=L[e];var bv=[];function os(e){let t={use:os,AssertionError:Ge,util:Tn,config:dr,expect:yi,assert:L,Assertion:B,...fR};return~bv.indexOf(e)||(e(t,Tn),bv.push(e)),t}z(os,"use");var hR={};wr(hR,{toAppearAfter:()=>aH,toAppearBefore:()=>Wf,toBeChecked:()=>eA,toBeDisabled:()=>GR,toBeEmpty:()=>xR,toBeEmptyDOMElement:()=>IR,toBeEnabled:()=>WR,toBeInTheDOM:()=>$f,toBeInTheDocument:()=>NR,toBeInvalid:()=>YR,toBePartiallyChecked:()=>rA,toBePartiallyPressed:()=>aA,toBePressed:()=>sA,toBeRequired:()=>zR,toBeValid:()=>XR,toBeVisible:()=>$R,toContainElement:()=>Vf,toContainHTML:()=>MR,toHaveAccessibleDescription:()=>Uf,toHaveAccessibleErrorMessage:()=>jR,toHaveAccessibleName:()=>Hf,toHaveAttribute:()=>kR,toHaveClass:()=>DR,toHaveDescription:()=>nA,toHaveDisplayValue:()=>ZR,toHaveErrorMessage:()=>oA,toHaveFocus:()=>LR,toHaveFormValues:()=>FR,toHaveRole:()=>Jf,toHaveSelection:()=>iA,toHaveStyle:()=>Gf,toHaveTextContent:()=>qR,toHaveValue:()=>QR});var vv=Ot(Y_(),1);function mR(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0})}function _y(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var yR={};mR(yR);_y(yR,"default",()=>gR);var gR=class extends Error{constructor(e,t,r,n,o){super(e+":"+r+":"+n+": "+t),this.reason=t,this.filename=e,this.line=r,this.column=n,this.source=o}},bR={};mR(bR);_y(bR,"default",()=>vR);var vR=class{constructor(e,t,r){this.start=e,this.end=t,this.source=r}},dU={};_y(dU,"CssTypes",()=>wt);var wt;(function(e){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"})(wt||(wt={}));var Pp=/\/\*[^]*?(?:\*\/|$)/g,pU=(e,t)=>{t=t||{};let r=1,n=1;function o(Q){let ee=Q.match(/\n/g);ee&&(r+=ee.length);let ve=Q.lastIndexOf(`
|
|
211
|
+
`);n=~ve?Q.length-ve:n+Q.length}function i(){let Q={line:r,column:n};return function(ee){return ee.position=new vR(Q,{line:r,column:n},(t==null?void 0:t.source)||""),h(),ee}}let s=[];function a(Q){let ee=new gR((t==null?void 0:t.source)||"",Q,r,n,e);if(t!=null&&t.silent)s.push(ee);else throw ee}function l(){let Q=p();return{type:wt.stylesheet,stylesheet:{source:t==null?void 0:t.source,rules:Q,parsingErrors:s}}}function u(){return f(/^{\s*/)}function d(){return f(/^}/)}function p(){let Q,ee=[];for(h(),y(ee);e.length&&e.charAt(0)!=="}"&&(Q=me()||be());)Q&&(ee.push(Q),y(ee));return ee}function f(Q){let ee=Q.exec(e);if(!ee)return;let ve=ee[0];return o(ve),e=e.slice(ve.length),ee}function h(){f(/^\s*/)}function y(Q){let ee;for(Q=Q||[];ee=g();)ee&&Q.push(ee);return Q}function g(){let Q=i();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;let ee=f(/^\/\*[^]*?\*\//);return ee?Q({type:wt.comment,comment:ee[0].slice(2,-2)}):a("End of comment missing")}function v(Q,ee,ve){let pe=ee+1,ie=!1,Y=Q.indexOf(")",pe);for(;!ie&&Y!==-1;){let oe=Q.indexOf("(",pe);oe!==-1&&oe<Y?(pe=v(Q,oe+1)+1,Y=Q.indexOf(")",pe)):ie=!0}return ie&&Y!==-1?Y:-1}function b(){let Q=f(/^([^{]+)/);if(!Q)return;let ee=kr(Q[0]).replace(Pp,"");if(ee.indexOf(",")===-1)return[ee];let ve=0,pe=ee.indexOf("(",ve);for(;pe!==-1;){let ie=v(ee,pe);if(ie===-1)break;ve=ie+1,ee=ee.substring(0,pe)+ee.substring(pe,ie).replace(/,/g,"")+ee.substring(ie),pe=ee.indexOf("(",ve)}return ee=ee.replace(/("|')(?:\\\1|.)*?\1/g,ie=>ie.replace(/,/g,"")),ee.split(",").map(ie=>kr(ie.replace(/\u200C/g,",")))}function E(){let Q=i(),ee=f(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!ee)return;let ve=kr(ee[0]);if(!f(/^:\s*/))return a("property missing ':'");let pe=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),ie=Q({type:wt.declaration,property:ve.replace(Pp,""),value:pe?kr(pe[0]).replace(Pp,""):""});return f(/^[;\s]*/),ie}function T(){let Q=[];if(!u())return a("missing '{'");y(Q);let ee;for(;ee=E();)ee&&(Q.push(ee),y(Q));return d()?Q:a("missing '}'")}function A(){let Q,ee=[],ve=i();for(;Q=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)ee.push(Q[1]),f(/^,\s*/);if(ee.length)return ve({type:wt.keyframe,values:ee,declarations:T()||[]})}function P(){let Q=i(),ee=f(/^@([-\w]+)?keyframes\s*/);if(!ee)return;let ve=ee[1],pe=f(/^([-\w]+)\s*/);if(!pe)return a("@keyframes missing name");let ie=pe[1];if(!u())return a("@keyframes missing '{'");let Y,oe=y();for(;Y=A();)oe.push(Y),oe=oe.concat(y());return d()?Q({type:wt.keyframes,name:ie,vendor:ve,keyframes:oe}):a("@keyframes missing '}'")}function R(){let Q=i(),ee=f(/^@supports *([^{]+)/);if(!ee)return;let ve=kr(ee[1]);if(!u())return a("@supports missing '{'");let pe=y().concat(p());return d()?Q({type:wt.supports,supports:ve,rules:pe}):a("@supports missing '}'")}function S(){let Q=i();if(!f(/^@host\s*/))return;if(!u())return a("@host missing '{'");let ee=y().concat(p());return d()?Q({type:wt.host,rules:ee}):a("@host missing '}'")}function w(){let Q=i(),ee=f(/^@container *([^{]+)/);if(!ee)return;let ve=kr(ee[1]);if(!u())return a("@container missing '{'");let pe=y().concat(p());return d()?Q({type:wt.container,container:ve,rules:pe}):a("@container missing '}'")}function O(){let Q=i(),ee=f(/^@layer *([^{;@]+)/);if(!ee)return;let ve=kr(ee[1]);if(!u())return f(/^[;\s]*/),Q({type:wt.layer,layer:ve});let pe=y().concat(p());return d()?Q({type:wt.layer,layer:ve,rules:pe}):a("@layer missing '}'")}function q(){let Q=i(),ee=f(/^@media *([^{]+)/);if(!ee)return;let ve=kr(ee[1]);if(!u())return a("@media missing '{'");let pe=y().concat(p());return d()?Q({type:wt.media,media:ve,rules:pe}):a("@media missing '}'")}function M(){let Q=i(),ee=f(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(ee)return Q({type:wt.customMedia,name:kr(ee[1]),media:kr(ee[2])})}function k(){let Q=i();if(!f(/^@page */))return;let ee=b()||[];if(!u())return a("@page missing '{'");let ve=y(),pe;for(;pe=E();)ve.push(pe),ve=ve.concat(y());return d()?Q({type:wt.page,selectors:ee,declarations:ve}):a("@page missing '}'")}function x(){let Q=i(),ee=f(/^@([-\w]+)?document *([^{]+)/);if(!ee)return;let ve=kr(ee[1]),pe=kr(ee[2]);if(!u())return a("@document missing '{'");let ie=y().concat(p());return d()?Q({type:wt.document,document:pe,vendor:ve,rules:ie}):a("@document missing '}'")}function C(){let Q=i();if(!f(/^@font-face\s*/))return;if(!u())return a("@font-face missing '{'");let ee=y(),ve;for(;ve=E();)ee.push(ve),ee=ee.concat(y());return d()?Q({type:wt.fontFace,declarations:ee}):a("@font-face missing '}'")}function j(){let Q=i();if(!f(/^@starting-style\s*/))return;if(!u())return a("@starting-style missing '{'");let ee=y().concat(p());return d()?Q({type:wt.startingStyle,rules:ee}):a("@starting-style missing '}'")}let F=se("import"),V=se("charset"),G=se("namespace");function se(Q){let ee=new RegExp("^@"+Q+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){let ve=i(),pe=f(ee);if(!pe)return;let ie={type:Q};return ie[Q]=pe[1].trim(),ve(ie)}}function me(){if(e[0]==="@")return P()||q()||M()||R()||F()||V()||G()||x()||k()||S()||C()||w()||j()||O()}function be(){let Q=i(),ee=b();return ee?(y(),Q({type:wt.rule,selectors:ee,declarations:T()||[]})):a("selector missing")}return Ff(l())};function kr(e){return e?e.trim():""}function Ff(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=>{Ff(s,n)}):i&&typeof i=="object"&&Ff(i,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var fU=pU,hU=fU,mU=Object.prototype.toString;function yU(e){return typeof e=="function"||mU.call(e)==="[object Function]"}function gU(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var bU=Math.pow(2,53)-1;function vU(e){var t=gU(e);return Math.min(Math.max(t,0),bU)}function Zr(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");for(var o=vU(n.length),i=yU(r)?Object(new r(o)):new Array(o),s=0,a;s<o;)a=n[s],i[s]=a,s+=1;return i.length=o,i}function Ya(e){"@babel/helpers - typeof";return Ya=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},Ya(e)}function EU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TU(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,ER(n.key),n)}}function _U(e,t,r){return t&&TU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wU(e,t,r){return t=ER(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ER(e){var t=SU(e,"string");return Ya(t)==="symbol"?t:String(t)}function SU(e,t){if(Ya(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ya(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var RU=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];EU(this,e),wU(this,"items",void 0),this.items=t}return _U(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e}(),AU=typeof Set>"u"?Set:RU;function or(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var OU={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"},PU={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 CU(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=PU[t])!==null&&n!==void 0&&n.has(r))})}function TR(e,t){return CU(e,t)}function NU(e){var t=IU(e);if(t===null||Bf.indexOf(t)!==-1){var r=xU(e);if(Bf.indexOf(t||"")===-1||TR(e,r||""))return r}return t}function xU(e){var t=OU[or(e)];if(t!==void 0)return t;switch(or(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!TR(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}function IU(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}var Bf=["presentation","none"];function dt(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function _R(e){return dt(e)&&or(e)==="caption"}function qu(e){return dt(e)&&or(e)==="input"}function MU(e){return dt(e)&&or(e)==="optgroup"}function qU(e){return dt(e)&&or(e)==="select"}function jU(e){return dt(e)&&or(e)==="table"}function kU(e){return dt(e)&&or(e)==="textarea"}function DU(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function LU(e){return dt(e)&&or(e)==="fieldset"}function FU(e){return dt(e)&&or(e)==="legend"}function BU(e){return dt(e)&&or(e)==="slot"}function $U(e){return dt(e)&&e.ownerSVGElement!==void 0}function VU(e){return dt(e)&&or(e)==="svg"}function UU(e){return $U(e)&&or(e)==="title"}function lc(e,t){if(dt(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[]}function Gn(e,t){return dt(e)?t.indexOf(NU(e))!==-1:!1}function JU(e){return e.trim().replace(/\s\s+/g," ")}function HU(e,t){if(!dt(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"}function GU(e){return Gn(e,["button","combobox","listbox","textbox"])||wR(e,"range")}function wR(e,t){if(!dt(e))return!1;switch(t){case"range":return Gn(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function Ev(e,t){var r=Zr(e.querySelectorAll(t));return lc(e,"aria-owns").forEach(function(n){r.push.apply(r,Zr(n.querySelectorAll(t)))}),r}function WU(e){return qU(e)?e.selectedOptions||Ev(e,"[selected]"):Ev(e,'[aria-selected="true"]')}function zU(e){return Gn(e,Bf)}function KU(e){return _R(e)}function YU(e){return Gn(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function XU(e){return!1}function QU(e){return qu(e)||kU(e)?e.value:e.textContent||""}function Tv(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function SR(e){var t=or(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function RR(e){if(SR(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&dt(r)){var n=RR(r);n!==null&&(t=n)}}),t}function ZU(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):RR(e)}function eJ(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Zr(t);if(!SR(e))return null;var r=e.ownerDocument;return Zr(r.querySelectorAll("label")).filter(function(n){return ZU(n)===e})}function tJ(e){var t=e.assignedNodes();return t.length===0?Zr(e.childNodes):t}function AR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new AU,n=DU(e),o=t.compute,i=o===void 0?"name":o,s=t.computedStyleSupportsPseudoElements,a=s===void 0?t.getComputedStyle!==void 0:s,l=t.getComputedStyle,u=l===void 0?n.getComputedStyle.bind(n):l,d=t.hidden,p=d===void 0?!1:d;function f(b,E){var T="";if(dt(b)&&a){var A=u(b,"::before"),P=Tv(A);T="".concat(P," ").concat(T)}var R=BU(b)?tJ(b):Zr(b.childNodes).concat(lc(b,"aria-owns"));if(R.forEach(function(O){var q=v(O,{isEmbeddedInLabel:E.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),M=dt(O)?u(O).getPropertyValue("display"):"inline",k=M!=="inline"?" ":"";T+="".concat(k).concat(q).concat(k)}),dt(b)&&a){var S=u(b,"::after"),w=Tv(S);T="".concat(T," ").concat(w)}return T.trim()}function h(b,E){var T=b.getAttributeNode(E);return T!==null&&!r.has(T)&&T.value.trim()!==""?(r.add(T),T.value):null}function y(b){return dt(b)?h(b,"title"):null}function g(b){if(!dt(b))return null;if(LU(b)){r.add(b);for(var E=Zr(b.childNodes),T=0;T<E.length;T+=1){var A=E[T];if(FU(A))return v(A,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(jU(b)){r.add(b);for(var P=Zr(b.childNodes),R=0;R<P.length;R+=1){var S=P[R];if(_R(S))return v(S,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(VU(b)){r.add(b);for(var w=Zr(b.childNodes),O=0;O<w.length;O+=1){var q=w[O];if(UU(q))return q.textContent}return null}else if(or(b)==="img"||or(b)==="area"){var M=h(b,"alt");if(M!==null)return M}else if(MU(b)){var k=h(b,"label");if(k!==null)return k}if(qu(b)&&(b.type==="button"||b.type==="submit"||b.type==="reset")){var x=h(b,"value");if(x!==null)return x;if(b.type==="submit")return"Submit";if(b.type==="reset")return"Reset"}var C=eJ(b);if(C!==null&&C.length!==0)return r.add(b),Zr(C).map(function(G){return v(G,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(G){return G.length>0}).join(" ");if(qu(b)&&b.type==="image"){var j=h(b,"alt");if(j!==null)return j;var F=h(b,"title");return F!==null?F:"Submit Query"}if(Gn(b,["button"])){var V=f(b,{isEmbeddedInLabel:!1});if(V!=="")return V}return null}function v(b,E){if(r.has(b))return"";if(!p&&HU(b,u)&&!E.isReferenced)return r.add(b),"";var T=dt(b)?b.getAttributeNode("aria-labelledby"):null,A=T!==null&&!r.has(T)?lc(b,"aria-labelledby"):[];if(i==="name"&&!E.isReferenced&&A.length>0)return r.add(T),A.map(function(M){return v(M,{isEmbeddedInLabel:E.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var P=E.recursion&&GU(b)&&i==="name";if(!P){var R=(dt(b)&&b.getAttribute("aria-label")||"").trim();if(R!==""&&i==="name")return r.add(b),R;if(!zU(b)){var S=g(b);if(S!==null)return r.add(b),S}}if(Gn(b,["menu"]))return r.add(b),"";if(P||E.isEmbeddedInLabel||E.isReferenced){if(Gn(b,["combobox","listbox"])){r.add(b);var w=WU(b);return w.length===0?qu(b)?b.value:"":Zr(w).map(function(M){return v(M,{isEmbeddedInLabel:E.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(wR(b,"range"))return r.add(b),b.hasAttribute("aria-valuetext")?b.getAttribute("aria-valuetext"):b.hasAttribute("aria-valuenow")?b.getAttribute("aria-valuenow"):b.getAttribute("value")||"";if(Gn(b,["textbox"]))return r.add(b),QU(b)}if(YU(b)||dt(b)&&E.isReferenced||KU(b)||XU()){var O=f(b,{isEmbeddedInLabel:E.isEmbeddedInLabel});if(O!=="")return r.add(b),O}if(b.nodeType===b.TEXT_NODE)return r.add(b),b.textContent||"";if(E.recursion)return r.add(b),f(b,{isEmbeddedInLabel:E.isEmbeddedInLabel});var q=y(b);return q!==null?(r.add(b),q):(r.add(b),"")}return JU(v(e,{isEmbeddedInLabel:!1,isReferenced:i==="description",recursion:!1}))}function Xa(e){"@babel/helpers - typeof";return Xa=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},Xa(e)}function _v(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}function wv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_v(Object(r),!0).forEach(function(n){rJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_v(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rJ(e,t,r){return t=nJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nJ(e){var t=oJ(e,"string");return Xa(t)==="symbol"?t:String(t)}function oJ(e,t){if(Xa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iJ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=lc(e,"aria-describedby").map(function(i){return AR(i,wv(wv({},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}function sJ(e){return Gn(e,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}function aJ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return sJ(e)?"":AR(e,t)}var wy=Ot(tm(),1),lJ=Ot(X_(),1),uJ=Ot(Q_(),1),OR=class extends Error{constructor(e,t,r,n){super(),Error.captureStackTrace&&Error.captureStackTrace(this,r);let o="";try{o=n.utils.printWithType("Received",t,n.utils.printReceived)}catch{}this.message=[n.utils.matcherHint(`${n.isNot?".not":""}.${r.name}`,"received",""),"",`${n.utils.RECEIVED_COLOR("received")} value must ${e}.`,o].join(`
|
|
212
|
+
`)}},Sv=class extends OR{constructor(...e){super("be an HTMLElement or an SVGElement",...e)}},Rv=class extends OR{constructor(...e){super("be a Node",...e)}};function PR(e,t,...r){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...r)}function cJ(e,...t){PR(e,Rv,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.Node))throw new Rv(e,...t)}function $e(e,...t){PR(e,Sv,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.HTMLElement)&&!(e instanceof r.SVGElement))throw new Sv(e,...t)}var dJ=class extends Error{constructor(e,t,r){super(),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.message=[e.message,"",r.utils.RECEIVED_COLOR("Failing css:"),r.utils.RECEIVED_COLOR(`${e.css}`)].join(`
|
|
213
|
+
`)}};function pJ(e,...t){let r=hU(`selector { ${e} }`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){let{reason:n,line:o}=r.parsingErrors[0];throw new dJ({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}),{})}function Av(e,t){return typeof t=="string"?t:e.utils.stringify(t)}function Dt(e,t,r,n,o,i){return[`${t}
|
|
214
|
+
`,`${r}:
|
|
215
|
+
${e.utils.EXPECTED_COLOR((0,vv.default)(Av(e,n),2))}`,`${o}:
|
|
216
|
+
${e.utils.RECEIVED_COLOR((0,vv.default)(Av(e,i),2))}`].join(`
|
|
217
|
+
`)}function fJ(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}function gd(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}function bd(e){return e.replace(/\s+/g," ").trim()}function Lo(e){return e.tagName&&e.tagName.toLowerCase()}function hJ({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}function mJ(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}var yJ=["meter","progressbar","slider","spinbutton"];function gJ(e){if(yJ.includes(e.getAttribute("role")))return Number(e.getAttribute("aria-valuenow"))}function CR(e){if(e)switch(e.tagName.toLowerCase()){case"input":return mJ(e);case"select":return hJ(e);default:return e.value??gJ(e)}}function bJ(e,{wordConnector:t=", ",lastWordConnector:r=" and "}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?r:"")}function Sy(e,t){return Array.isArray(e)&&Array.isArray(t)?[...new Set(e)].every(r=>new Set(t).has(r)):e===t}function $f(e,t){return gd("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),e&&$e(e,$f,this),t&&$e(t,$f,this),{pass:t?t.contains(e):!!e,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDOM`,"element",""),"","Received:",` ${this.utils.printReceived(e&&e.cloneNode(!1))}`].join(`
|
|
218
|
+
`)}}function NR(e){(e!==null||!this.isNot)&&$e(e,NR,this);let t=e===null?!1:e.ownerDocument===e.getRootNode({composed:!0}),r=()=>`expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`,n=()=>"element could not be found in the document";return{pass:t,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDocument`,"element",""),"",this.utils.RECEIVED_COLOR(this.isNot?r():n())].join(`
|
|
219
|
+
`)}}function xR(e){return gd("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),$e(e,xR,this),{pass:e.innerHTML==="",message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmpty`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
220
|
+
`)}}function IR(e){return $e(e,IR,this),{pass:vJ(e),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmptyDOMElement`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
221
|
+
`)}}function vJ(e){return[...e.childNodes].filter(t=>t.nodeType!==8).length===0}function Vf(e,t){return $e(e,Vf,this),t!==null&&$e(t,Vf,this),{pass:e.contains(t),message:()=>[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))}
|
|
222
|
+
`)].join(`
|
|
223
|
+
`)}}function EJ(e,t){let r=e.ownerDocument.createElement("div");return r.innerHTML=t,r.innerHTML}function MR(e,t){if($e(e,MR,this),typeof t!="string")throw new Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(EJ(e,t)),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainHTML`,"element",""),"Expected:",` ${this.utils.EXPECTED_COLOR(t)}`,"Received:",` ${this.utils.printReceived(e.cloneNode(!0))}`].join(`
|
|
224
|
+
`)}}function qR(e,t,r={normalizeWhitespace:!0}){cJ(e,qR,this);let n=r.normalizeWhitespace?bd(e.textContent):e.textContent.replace(/\u00a0/g," "),o=n!==""&&t==="";return{pass:!o&&fJ(n,t),message:()=>{let i=this.isNot?"not to":"to";return Dt(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)}}}function Uf(e,t){$e(e,Uf,this);let r=iJ(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:()=>{let i=this.isNot?"not to":"to";return Dt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Uf.name}`,"element",""),`Expected element ${i} have accessible description`,t,"Received",r)}}}var sa="aria-invalid",TJ=["false"];function jR(e,t){var a;$e(e,jR,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:()=>Dt(this,this.utils.matcherHint(n,"element"),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID","","Received",`aria-errormessage="${o}"`)};let i=e.getAttribute(sa);if(!e.hasAttribute(sa)||TJ.includes(i))return{pass:!1,message:()=>Dt(this,this.utils.matcherHint(n,"element"),"Expected element to be marked as invalid with attribute",`${sa}="${String(!0)}"`,"Received",e.hasAttribute("aria-invalid")?`${sa}="${e.getAttribute(sa)}`:null)};let s=bd(((a=e.ownerDocument.getElementById(o))==null?void 0:a.textContent)??"");return{pass:t===void 0?!!s:t instanceof RegExp?t.test(s):this.equals(s,t),message:()=>Dt(this,this.utils.matcherHint(n,"element"),`Expected element ${r} have accessible error message`,t??"","Received",s)}}var _J=RJ(wy.elementRoles);function Jf(e,t){$e(e,Jf,this);let r=wJ(e);return{pass:r.some(n=>n===t),message:()=>{let n=this.isNot?"not to":"to";return Dt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Jf.name}`,"element",""),`Expected element ${n} have role`,t,"Received",r.join(", "))}}}function wJ(e){return e.hasAttribute("role")?e.getAttribute("role").split(" ").filter(Boolean):SJ(e)}function SJ(e){for(let{match:t,roles:r}of _J)if(t(e))return[...r];return[]}function RJ(e){function t({name:s,attributes:a}){return`${s}${a.map(({name:l,value:u,constraints:d=[]})=>d.indexOf("undefined")!==-1?`:not([${l}])`:u?`[${l}="${u}"]`:`[${l}]`).join("")}`}function r({attributes:s=[]}){return s.length}function n({specificity:s},{specificity:a}){return a-s}function o(s){let{attributes:a=[]}=s,l=a.findIndex(d=>d.value&&d.name==="type"&&d.value==="text");l>=0&&(a=[...a.slice(0,l),...a.slice(l+1)]);let u=t({...s,attributes:a});return d=>l>=0&&d.type!=="text"?!1:d.matches(u)}let i=[];for(let[s,a]of e.entries())i=[...i,{match:o(s),roles:Array.from(a),specificity:r(s)}];return i.sort(n)}function Hf(e,t){$e(e,Hf,this);let r=aJ(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:()=>{let i=this.isNot?"not to":"to";return Dt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Hf.name}`,"element",""),`Expected element ${i} have accessible name`,t,"Received",r)}}}function Ov(e,t,r){return r===void 0?t:`${t}=${e(r)}`}function AJ(e,t,r){return r===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(r)}`}function kR(e,t,r){$e(e,kR,this);let n=r!==void 0,o=e.hasAttribute(t),i=e.getAttribute(t);return{pass:n?o&&this.equals(i,r):o,message:()=>{let s=this.isNot?"not to":"to",a=o?Ov(this.utils.stringify,t,i):null,l=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveAttribute`,"element",this.utils.printExpected(t),{secondArgument:n?this.utils.printExpected(r):void 0,comment:AJ(this.utils.stringify,t,r)});return Dt(this,l,`Expected the element ${s} have attribute`,Ov(this.utils.stringify,t,r),"Received",a)}}}function OJ(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}}function Pv(e){return e?e.split(/\s+/).filter(t=>t.length>0):[]}function Cv(e,t){return e.every(r=>typeof r=="string"?t.includes(r):t.some(n=>r.test(n)))}function DR(e,...t){$e(e,DR,this);let{expectedClassNames:r,options:n}=OJ(t),o=Pv(e.getAttribute("class")),i=r.reduce((a,l)=>a.concat(typeof l=="string"||!l?Pv(l):l),[]),s=i.some(a=>a instanceof RegExp);if(n.exact&&s)throw new Error("Exact option does not support RegExp expected class names");return n.exact?{pass:Cv(i,o)&&i.length===o.length,message:()=>{let a=this.isNot?"not to":"to";return Dt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(i.join(" "))),`Expected the element ${a} have EXACTLY defined classes`,i.join(" "),"Received",o.join(" "))}}:i.length>0?{pass:Cv(i,o),message:()=>{let a=this.isNot?"not to":"to";return Dt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(i.join(" "))),`Expected the element ${a} have class`,i.join(" "),"Received",o.join(" "))}}:{pass:this.isNot?o.length>0:!1,message:()=>this.isNot?Dt(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(`
|
|
225
|
+
`)}}function PJ(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}function CJ(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)})}function Nv(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
|
|
226
|
+
`)}function NJ(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(Nv(t),Nv(n)).replace(`${lJ.default.red("+ Received")}
|
|
227
|
+
`,"")}function Gf(e,t){$e(e,Gf,this);let r=typeof t=="object"?t:pJ(t,Gf,this),{getComputedStyle:n}=e.ownerDocument.defaultView,o=PJ(e.ownerDocument,r),i=n(e);return{pass:CJ(o,i),message:()=>{let s=`${this.isNot?".not":""}.toHaveStyle`;return[this.utils.matcherHint(s,"element",""),NJ(this.utils.diff,o,i)].join(`
|
|
228
|
+
|
|
229
|
+
`)}}}function LR(e){return $e(e,LR,this),{pass:e.ownerDocument.activeElement===e,message:()=>[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(`
|
|
230
|
+
`)}}function xJ(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)}}function IJ(e,t){let r=[...e.querySelectorAll(`[name="${(0,uJ.default)(t)}"]`)];if(r.length!==0)switch(r.length){case 1:return CR(r[0]);default:return xJ(r)}}function MJ(e){return/\[\]$/.test(e)?e.slice(0,-2):e}function qJ(e){return Array.from(e.elements).map(t=>t.name).reduce((t,r)=>({...t,[MJ(r)]:IJ(e,r)}),{})}function FR(e,t){if($e(e,FR,this),!e.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");let r=qJ(e);return{pass:Object.entries(t).every(([n,o])=>Sy(r[n],o)),message:()=>{let n=this.isNot?"not to":"to",o=`${this.isNot?".not":""}.toHaveFormValues`,i=Object.keys(r).filter(s=>t.hasOwnProperty(s)).reduce((s,a)=>({...s,[a]:r[a]}),{});return[this.utils.matcherHint(o,"element",""),`Expected the element ${n} have form values`,this.utils.diff(t,i)].join(`
|
|
231
|
+
|
|
232
|
+
`)}}}function jJ(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}function kJ(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}function BR(e,t){return jJ(e)&&kJ(e,t)&&(!e.parentElement||BR(e.parentElement,e))}function $R(e){$e(e,$R,this);let t=e.ownerDocument===e.getRootNode({composed:!0}),r=t&&BR(e);return{pass:r,message:()=>{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(`
|
|
233
|
+
`)}}}var DJ=["fieldset","input","select","optgroup","option","button","textarea"];function LJ(e,t){return Lo(e)==="legend"&&Lo(t)==="fieldset"&&e.isSameNode(Array.from(t.children).find(r=>Lo(r)==="legend"))}function FJ(e,t){return UR(t)&&!LJ(e,t)}function BJ(e){return e.includes("-")}function VR(e){let t=Lo(e);return DJ.includes(t)||BJ(t)}function UR(e){return VR(e)&&e.hasAttribute("disabled")}function JR(e){let t=e.parentElement;return!!t&&(FJ(e,t)||JR(t))}function HR(e){return VR(e)&&(UR(e)||JR(e))}function GR(e){$e(e,GR,this);let t=HR(e);return{pass:t,message:()=>{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(`
|
|
234
|
+
`)}}}function WR(e){$e(e,WR,this);let t=!HR(e);return{pass:t,message:()=>{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(`
|
|
235
|
+
`)}}}var $J=["select","textarea"],VJ=["input","select","textarea"],UJ=["color","hidden","range","submit","image","reset"],JJ=["checkbox","combobox","gridcell","listbox","radiogroup","spinbutton","textbox","tree"];function HJ(e){return $J.includes(Lo(e))&&e.hasAttribute("required")}function GJ(e){return Lo(e)==="input"&&e.hasAttribute("required")&&(e.hasAttribute("type")&&!UJ.includes(e.getAttribute("type"))||!e.hasAttribute("type"))}function WJ(e){return e.hasAttribute("aria-required")&&e.getAttribute("aria-required")==="true"&&(VJ.includes(Lo(e))||e.hasAttribute("role")&&JJ.includes(e.getAttribute("role")))}function zR(e){$e(e,zR,this);let t=HJ(e)||GJ(e)||WJ(e);return{pass:t,message:()=>{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(`
|
|
236
|
+
`)}}}var zJ=["form","input","select","textarea"];function KJ(e){return e.hasAttribute("aria-invalid")&&e.getAttribute("aria-invalid")!=="false"}function YJ(e){return zJ.includes(Lo(e))}function KR(e){let t=KJ(e);return YJ(e)?t||!e.checkValidity():t}function YR(e){$e(e,YR,this);let t=KR(e);return{pass:t,message:()=>{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(`
|
|
237
|
+
`)}}}function XR(e){$e(e,XR,this);let t=!KR(e);return{pass:t,message:()=>{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(`
|
|
238
|
+
`)}}}function QR(e,t){if($e(e,QR,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=CR(e),n=t!==void 0,o=t,i=r;return t==r&&t!==r&&(o=`${t} (${typeof t})`,i=`${r} (${typeof r})`),{pass:n?Sy(r,t):!!r,message:()=>{let s=this.isNot?"not to":"to",a=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return Dt(this,a,`Expected the element ${s} have value`,n?o:"(any)","Received",i)}}}function ZR(e,t){$e(e,ZR,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=XJ(r,e),o=QJ(t),i=o.filter(l=>n.some(u=>l instanceof RegExp?l.test(u):this.equals(u,String(l)))).length,s=i===n.length,a=i===o.length;return{pass:s&&a,message:()=>Dt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,t,"Received",n)}}function XJ(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}function QJ(e){return e instanceof Array?e:[e]}function eA(e){$e(e,eA,this);let t=()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),r=()=>tA(e.getAttribute("role"))&&["true","false"].includes(e.getAttribute("aria-checked"));if(!t()&&!r())return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${ZJ()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let n=()=>t()?e.checked:e.getAttribute("aria-checked")==="true";return{pass:n(),message:()=>{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(`
|
|
239
|
+
`)}}}function ZJ(){return bJ(eH().map(e=>`role="${e}"`),{lastWordConnector:" or "})}function eH(){return wy.roles.keys().filter(tA)}function tA(e){var t;return((t=wy.roles.get(e))==null?void 0:t.props["aria-checked"])!==void 0}function rA(e){$e(e,rA,this);let t=()=>e.tagName.toLowerCase()==="input"&&e.type==="checkbox",r=()=>e.getAttribute("role")==="checkbox";if(!t()&&!r())return{pass:!1,message:()=>'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead'};let n=()=>{let o=e.getAttribute("aria-checked")==="mixed";return t()&&e.indeterminate||o};return{pass:n(),message:()=>{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(`
|
|
240
|
+
`)}}}function nA(e,t){gd("toHaveDescription","Please use toHaveAccessibleDescription."),$e(e,nA,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(a=>i.getElementById(a)).filter(Boolean);o=bd(s.map(a=>a.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:()=>{let i=this.isNot?"not to":"to";return Dt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${i} have description`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))}}}function oA(e,t){if(gd("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),$e(e,oA,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){let i=this.isNot?".not":"";return{pass:!1,message:()=>Dt(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(""))}}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(a=>i.getElementById(a)).filter(Boolean);o=bd(s.map(a=>a.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:()=>{let i=this.isNot?"not to":"to";return Dt(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))}}}function tH(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}function iA(e,t){$e(e,iA,this);let r=t!==void 0;if(r&&typeof t!="string")throw new Error("expected selection must be a string or undefined");let n=tH(e);return{pass:r?Sy(n,t):!!n,message:()=>{let o=this.isNot?"not to":"to",i=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveSelection`,"element",t);return Dt(this,i,`Expected the element ${o} have selection`,r?t:"(any)","Received",n)}}}function sA(e){$e(e,sA,this);let t=(e.getAttribute("role")||"").split(" ").map(o=>o.trim()),r=e.tagName.toLowerCase()==="button"||e.tagName.toLowerCase()==="input"&&e.type==="button"||t.includes("button"),n=e.getAttribute("aria-pressed");return!r||!(n==="true"||n==="false")?{pass:!1,message:()=>'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePressed()'}:{pass:r&&n==="true",message:()=>{let o=this.utils.matcherHint(`${this.isNot?".not":""}.toBePressed`,"element","");return Dt(this,o,"Expected element to have",`aria-pressed="${this.isNot?"false":"true"}"`,"Received",`aria-pressed="${n}"`)}}}function aA(e){$e(e,aA,this);let t=(e.getAttribute("role")||"").split(" ").map(o=>o.trim()),r=e.tagName.toLowerCase()==="button"||e.tagName.toLowerCase()==="input"&&e.type==="button"||t.includes("button"),n=e.getAttribute("aria-pressed");return!r||!(n==="true"||n==="false"||n==="mixed")?{pass:!1,message:()=>'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePartiallyPressed()'}:{pass:r&&n==="mixed",message:()=>{let o=this.isNot?"not to":"to",i=this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyPressed`,"element","");return Dt(this,i,`Expected element ${o} have`,'aria-pressed="mixed"',"Received",`aria-pressed="${n}"`)}}}var rH=1,lA=2,uA=4,nH=8,oH=16,iH=32,xv={[rH]:"Node.DOCUMENT_POSITION_DISCONNECTED",[lA]:"Node.DOCUMENT_POSITION_PRECEDING",[uA]:"Node.DOCUMENT_POSITION_FOLLOWING",[nH]:"Node.DOCUMENT_POSITION_CONTAINS",[oH]:"Node.DOCUMENT_POSITION_CONTAINED_BY",[iH]:"Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC"};function sH(e){return e in xv?`${xv[e]} (${e})`:`Unknown document position (${e})`}function cA(e,t){return function(r,n){$e(r,Wf,this),$e(n,Wf,this);let o=r.compareDocumentPosition(n);return{pass:o===t,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.${e}`,"element","secondElement"),"",`Received: ${sH(o)}`].join(`
|
|
241
|
+
`)}}}function Wf(e,t){return cA("toAppearBefore",uA).apply(this,[e,t])}function aH(e,t){return cA("toAppearAfter",lA).apply(this,[e,t])}Ot(Y_(),1);Ot(tm(),1);Ot(X_(),1);Ot(Q_(),1);var Cp,Iv;function lH(){if(Iv)return Cp;Iv=1;var e,t,r,n,o,i,s,a,l,u,d,p,f,h,y,g,v,b,E;return f=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\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,y=/(['"])(?:(?!\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,g=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,E=/[\t\v\f\ufeff\p{Zs}]+/yu,a=/\r?\n|[\r\u2028\u2029]/y,l=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,h=/\/\/.*/y,r=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,n=/(['"])(?:(?!\1)[^])*(\1)?/y,o=/[^<>{}]+/y,b=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,v=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,i=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,s=/^(?:return|throw|yield)$/,u=RegExp(a.source),Cp=function*(T,{jsx:A=!1}={}){var P,R,S,w,O,q,M,k,x,C,j,F,V,G;for({length:q}=T,w=0,O="",G=[{tag:"JS"}],P=[],j=0,F=!1;w<q;){switch(k=G[G.length-1],k.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(T[w]==="/"&&(b.test(O)||i.test(O))&&(f.lastIndex=w,M=f.exec(T))){w=f.lastIndex,O=M[0],F=!0,yield{type:"RegularExpressionLiteral",value:M[0],closed:M[1]!==void 0&&M[1]!=="\\"};continue}if(p.lastIndex=w,M=p.exec(T)){switch(V=M[0],x=p.lastIndex,C=V,V){case"(":O==="?NonExpressionParenKeyword"&&G.push({tag:"JSNonExpressionParen",nesting:j}),j++,F=!1;break;case")":j--,F=!0,k.tag==="JSNonExpressionParen"&&j===k.nesting&&(G.pop(),C="?NonExpressionParenEnd",F=!1);break;case"{":p.lastIndex=0,S=!v.test(O)&&(b.test(O)||i.test(O)),P.push(S),F=!1;break;case"}":switch(k.tag){case"InterpolationInTemplate":if(P.length===k.nesting){g.lastIndex=w,M=g.exec(T),w=g.lastIndex,O=M[0],M[1]==="${"?(O="?InterpolationInTemplate",F=!1,yield{type:"TemplateMiddle",value:M[0]}):(G.pop(),F=!0,yield{type:"TemplateTail",value:M[0],closed:M[1]==="`"});continue}break;case"InterpolationInJSX":if(P.length===k.nesting){G.pop(),w+=1,O="}",yield{type:"JSXPunctuator",value:"}"};continue}}F=P.pop(),C=F?"?ExpressionBraceEnd":"}";break;case"]":F=!0;break;case"++":case"--":C=F?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(A&&(b.test(O)||i.test(O))){G.push({tag:"JSXTag"}),w+=1,O="<",yield{type:"JSXPunctuator",value:V};continue}F=!1;break;default:F=!1}w=x,O=C,yield{type:"Punctuator",value:V};continue}if(e.lastIndex=w,M=e.exec(T)){switch(w=e.lastIndex,C=M[0],M[0]){case"for":case"if":case"while":case"with":O!=="."&&O!=="?."&&(C="?NonExpressionParenKeyword")}O=C,F=!i.test(M[0]),yield{type:M[1]==="#"?"PrivateIdentifier":"IdentifierName",value:M[0]};continue}if(y.lastIndex=w,M=y.exec(T)){w=y.lastIndex,O=M[0],F=!0,yield{type:"StringLiteral",value:M[0],closed:M[2]!==void 0};continue}if(d.lastIndex=w,M=d.exec(T)){w=d.lastIndex,O=M[0],F=!0,yield{type:"NumericLiteral",value:M[0]};continue}if(g.lastIndex=w,M=g.exec(T)){w=g.lastIndex,O=M[0],M[1]==="${"?(O="?InterpolationInTemplate",G.push({tag:"InterpolationInTemplate",nesting:P.length}),F=!1,yield{type:"TemplateHead",value:M[0]}):(F=!0,yield{type:"NoSubstitutionTemplate",value:M[0],closed:M[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=w,M=r.exec(T)){switch(w=r.lastIndex,C=M[0],M[0]){case"<":G.push({tag:"JSXTag"});break;case">":G.pop(),O==="/"||k.tag==="JSXTagEnd"?(C="?JSX",F=!0):G.push({tag:"JSXChildren"});break;case"{":G.push({tag:"InterpolationInJSX",nesting:P.length}),C="?InterpolationInJSX",F=!1;break;case"/":O==="<"&&(G.pop(),G[G.length-1].tag==="JSXChildren"&&G.pop(),G.push({tag:"JSXTagEnd"}))}O=C,yield{type:"JSXPunctuator",value:M[0]};continue}if(t.lastIndex=w,M=t.exec(T)){w=t.lastIndex,O=M[0],yield{type:"JSXIdentifier",value:M[0]};continue}if(n.lastIndex=w,M=n.exec(T)){w=n.lastIndex,O=M[0],yield{type:"JSXString",value:M[0],closed:M[2]!==void 0};continue}break;case"JSXChildren":if(o.lastIndex=w,M=o.exec(T)){w=o.lastIndex,O=M[0],yield{type:"JSXText",value:M[0]};continue}switch(T[w]){case"<":G.push({tag:"JSXTag"}),w++,O="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":G.push({tag:"InterpolationInJSX",nesting:P.length}),w++,O="?InterpolationInJSX",F=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(E.lastIndex=w,M=E.exec(T)){w=E.lastIndex,yield{type:"WhiteSpace",value:M[0]};continue}if(a.lastIndex=w,M=a.exec(T)){w=a.lastIndex,F=!1,s.test(O)&&(O="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:M[0]};continue}if(l.lastIndex=w,M=l.exec(T)){w=l.lastIndex,u.test(M[0])&&(F=!1,s.test(O)&&(O="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:M[0],closed:M[1]!==void 0};continue}if(h.lastIndex=w,M=h.exec(T)){w=h.lastIndex,F=!1,yield{type:"SingleLineComment",value:M[0]};continue}R=String.fromCodePoint(T.codePointAt(w)),w+=R.length,O=R,F=!1,yield{type:k.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:R}}},Cp}var uH=lH();l0(uH);var dA={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(dA.keyword);new Set(dA.strict);var cH={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]},pA=Object.entries(cH);function vd(e){return String(e)}vd.open="";vd.close="";pA.reduce((e,[t])=>(e[t]=vd,e),{isColorSupported:!1});function dH(e=!1){let t=typeof process<"u"?process:void 0,r=(t==null?void 0:t.env)||{},n=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function pH(e=!1){let t=dH(e),r=(s,a,l,u)=>{let d="",p=0;do d+=s.substring(p,u)+l,p=u+a.length,u=s.indexOf(a,p);while(~u);return d+s.substring(p)},n=(s,a,l=s)=>{let u=d=>{let p=String(d),f=p.indexOf(a,s.length);return~f?s+r(p,a,l,f)+a:s+p+a};return u.open=s,u.close=a,u},o={isColorSupported:t},i=s=>`\x1B[${s}m`;for(let[s,a]of pA)o[s]=t?n(i(a[0]),i(a[1]),a[2]):vd;return o}var Cr=pH();function ju(e,t){if(!e)throw new Error(t)}function Zi(e,t){return typeof t===e}function fH(e){return e instanceof Promise}function Qa(e,t,r){Object.defineProperty(e,t,r)}function is(e,t,r){Qa(e,t,{value:r,configurable:!0,writable:!0})}var Fo=Symbol.for("tinyspy:spy"),hH=new Set,mH=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},yH=e=>(Qa(e,Fo,{value:{reset:()=>mH(e[Fo])}}),e[Fo]),zf=e=>e[Fo]||yH(e);function gH(e){ju(Zi("function",e)||Zi("undefined",e),"cannot spy on a non-function value");let t=function(...n){let o=zf(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,a="ok",l=o.results.length;if(o.impl)try{new.target?s=Reflect.construct(o.impl,n,new.target):s=o.impl.apply(this,n),a="ok"}catch(d){throw s=d,a="error",o.results.push([a,d]),d}let u=[a,s];return fH(s)&&s.then(d=>o.resolves[l]=["ok",d],d=>o.resolves[l]=["error",d]),o.results.push(u),s};is(t,"_isMockFunction",!0),is(t,"length",e?e.length:0),is(t,"name",e&&e.name||"spy");let r=zf(t);return r.reset(),r.impl=e,t}function bH(e){return!!e&&e._isMockFunction===!0}var fA=(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)}},Mv=(e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)};function hA(e,t,r){ju(!Zi("undefined",e),"spyOn could not find an object to spy upon"),ju(Zi("object",e)||Zi("function",e),"cannot spyOn on a primitive value");let[n,o]=(()=>{if(!Zi("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]=fA(e,n)||[];ju(s||n in e,`${String(n)} does not exist`);let a=!1;o==="value"&&s&&!s.value&&s.get&&(o="get",a=!0,r=s.get());let l;s?l=s[o]:o!=="value"?l=()=>e[n]:l=e[n],l&&_H(l)&&(l=l[Fo].getOriginal());let u=h=>{let{value:y,...g}=s||{configurable:!0,writable:!0};o!=="value"&&delete g.writable,g[o]=h,Qa(e,n,g)},d=()=>{i!==e?Reflect.deleteProperty(e,n):s&&!l?Qa(e,n,s):u(l)};r||(r=l);let p=TH(gH(r),r);o==="value"&&Mv(p,l);let f=p[Fo];return is(f,"restore",d),is(f,"getOriginal",()=>a?l():l),is(f,"willCall",h=>(f.impl=h,p)),u(a?()=>(Mv(p,r),p):p),hH.add(p),p}var vH=new Set(["length","name","prototype"]);function EH(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]||vH.has(o)||(t.add(o),r[o]=Object.getOwnPropertyDescriptor(e,o));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:r}}function TH(e,t){if(!t||Fo in t)return e;let{properties:r,descriptors:n}=EH(t);for(let o of r){let i=n[o];fA(e,o)||Qa(e,o,i)}return e}function _H(e){return bH(e)&&"getOriginal"in e[Fo]}var Ll=new Set;function ss(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}function wH(e,t,r){let n=r?{[{get:"getter",set:"setter"}[r]]:t}:t,o,i=RH(e,t),s=i&&i[r||"value"];ss(s)&&(o=s.mock._state());try{let a=hA(e,n),l=mA(a);return o&&l.mock._state(o),l}catch(a){throw a instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]==="Module"&&(a.message.includes("Cannot redefine property")||a.message.includes("Cannot replace module namespace")||a.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:a}):a}}var SH=0;function mA(e){let t=e,r,n=[],o=!1,i=[],s=[],a=[],l=zf(e),u={get calls(){return l.calls},get contexts(){return s},get instances(){return i},get invocationCallOrder(){return a},get results(){return l.results.map(([h,y])=>({type:h==="error"?"throw":"return",value:y}))},get settledResults(){return l.resolves.map(([h,y])=>({type:h==="error"?"rejected":"fulfilled",value:y}))},get lastCall(){return l.calls[l.calls.length-1]},_state(h){return h&&(r=h.implementation,n=h.onceImplementations,o=h.implementationChangedTemporarily),{implementation:r,onceImplementations:n,implementationChangedTemporarily:o}}};function d(...h){return i.push(this),s.push(this),a.push(++SH),(o?r:n.shift()||r||l.getOriginal()||(()=>{})).apply(this,h)}let p=t.name;t.getMockName=()=>p||"vi.fn()",t.mockName=h=>(p=h,t),t.mockClear=()=>(l.reset(),i=[],s=[],a=[],t),t.mockReset=()=>(t.mockClear(),r=void 0,n=[],t),t.mockRestore=()=>(t.mockReset(),l.restore(),t),Symbol.dispose&&(t[Symbol.dispose]=()=>t.mockRestore()),t.getMockImplementation=()=>o?r:n.at(0)||r,t.mockImplementation=h=>(r=h,l.willCall(d),t),t.mockImplementationOnce=h=>(n.push(h),t);function f(h,y){let g=r;r=h,l.willCall(d),o=!0;let v=()=>{r=g,o=!1},b=y();return typeof b=="object"&&b&&typeof b.then=="function"?b.then(()=>(v(),t)):(v(),t)}return t.withImplementation=f,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=h=>t.mockImplementation(()=>h),t.mockReturnValueOnce=h=>t.mockImplementationOnce(()=>h),t.mockResolvedValue=h=>t.mockImplementation(()=>Promise.resolve(h)),t.mockResolvedValueOnce=h=>t.mockImplementationOnce(()=>Promise.resolve(h)),t.mockRejectedValue=h=>t.mockImplementation(()=>Promise.reject(h)),t.mockRejectedValueOnce=h=>t.mockImplementationOnce(()=>Promise.reject(h)),Object.defineProperty(t,"mock",{get:()=>u}),l.willCall(d),Ll.add(t),t}function qv(e){let t=mA(hA({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}function RH(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)}}var Za=Symbol.for("matchers-object"),el=Symbol.for("$$jest-matchers-object-storybook"),Ry=Symbol.for("expect-global"),Kf=Symbol.for("asymmetric-matchers-object"),AH={toSatisfy(e,t,r){let{printReceived:n,printExpected:o,matcherHint:i}=this.utils,s=t(e);return{pass:s,message:()=>s?`${i(".not.toSatisfy","received","")}
|
|
242
|
+
|
|
243
|
+
Expected value to not satisfy:
|
|
244
|
+
${r||o(t)}
|
|
245
|
+
Received:
|
|
246
|
+
${n(e)}`:`${i(".toSatisfy","received","")}
|
|
247
|
+
|
|
248
|
+
Expected value to satisfy:
|
|
249
|
+
${r||o(t)}
|
|
250
|
+
|
|
251
|
+
Received:
|
|
252
|
+
${n(e)}`}},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 a=t.length===0||t.some(l=>r(l,e,n));return{pass:a,message:()=>a?`${s(".not.toBeOneOf","received","")}
|
|
253
|
+
|
|
254
|
+
Expected value to not be one of:
|
|
255
|
+
${i(t)}
|
|
256
|
+
Received:
|
|
257
|
+
${o(e)}`:`${s(".toBeOneOf","received","")}
|
|
258
|
+
|
|
259
|
+
Expected value to be one of:
|
|
260
|
+
${i(t)}
|
|
261
|
+
|
|
262
|
+
Received:
|
|
263
|
+
${o(e)}`}}},uc=Cr.green,Ay=Cr.red,OH=Cr.inverse,PH=Cr.bold,Ro=Cr.dim;function CH(e,t="received",r="expected",n={}){let{comment:o="",isDirectExpectCall:i=!1,isNot:s=!1,promise:a="",secondArgument:l="",expectedColor:u=uc,receivedColor:d=Ay,secondArgumentColor:p=uc}=n,f="",h="expect";return!i&&t!==""&&(f+=Ro(`${h}(`)+d(t),h=")"),a!==""&&(f+=Ro(`${h}.`)+a,h=""),s&&(f+=`${Ro(`${h}.`)}not`,h=""),e.includes(".")?h+=e:(f+=Ro(`${h}.`)+e,h=""),r===""?h+="()":(f+=Ro(`${h}(`)+u(r),l&&(f+=Ro(", ")+p(l)),h=")"),o!==""&&(h+=` // ${o}`),h!==""&&(f+=Ro(h)),f}var NH="·";function yA(e){return e.replace(/\s+$/gm,t=>NH.repeat(t.length))}function xH(e){return Ay(yA(Ir(e)))}function IH(e){return uc(yA(Ir(e)))}function gA(){return{EXPECTED_COLOR:uc,RECEIVED_COLOR:Ay,INVERTED_COLOR:OH,BOLD_WEIGHT:PH,DIM_COLOR:Ro,diff:Hs,matcherHint:CH,printReceived:xH,printExpected:IH,printDiffOrStringify:w0,printWithType:MH}}function MH(e,t,r){let n=ec(t),o=n!=="null"&&n!=="undefined"?`${e} has type: ${n}
|
|
264
|
+
`:"",i=`${e} has value: ${r(t)}`;return o+i}function Oy(){return globalThis[el].customEqualityTesters}function ze(e,t,r,n){return r=r||[],Pa(e,t,[],[],r,n?bA:kH)}function jv(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&nn("Function",e.asymmetricMatch)}function qH(e,t){let r=jv(e),n=jv(t);if(!(r&&n)){if(r)return e.asymmetricMatch(t);if(n)return t.asymmetricMatch(e)}}function Pa(e,t,r,n,o,i){let s=!0,a=qH(e,t);if(a!==void 0)return a;let l={equals:ze};for(let y=0;y<o.length;y++){let g=o[y].call(l,e,t,o);if(g!==void 0)return g}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 y=+e,g=+t;return y===g||Number.isNaN(y)&&Number.isNaN(g)}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(Dv(e)&&Dv(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 jH(e,t,r,n,o,i)}finally{r.pop(),n.pop()}let p=kv(e,i),f,h=p.length;if(kv(t,i).length!==h)return!1;for(;h--;)if(f=p[h],s=i(t,f)&&Pa(e[f],t[f],r,n,o,i),!s)return!1;return r.pop(),n.pop(),s}function jH(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=Pa(e.cause,t.cause,r,n,o,i)),e instanceof AggregateError&&t instanceof AggregateError&&s&&(s=Pa(e.errors,t.errors,r,n,o,i)),s&&(s=Pa({...e},{...t},r,n,o,i)),s}function kv(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))}function kH(e,t){return bA(e,t)&&e[t]!==void 0}function bA(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nn(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function Dv(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"}var vA="@@__IMMUTABLE_KEYED__@@",EA="@@__IMMUTABLE_SET__@@",DH="@@__IMMUTABLE_LIST__@@",Ed="@@__IMMUTABLE_ORDERED__@@",LH="@@__IMMUTABLE_RECORD__@@";function FH(e){return!!(e&&e[vA]&&!e[Ed])}function BH(e){return!!(e&&e[EA]&&!e[Ed])}function Td(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function $H(e){return!!(e&&Td(e)&&e[DH])}function VH(e){return!!(e&&Td(e)&&e[vA]&&e[Ed])}function UH(e){return!!(e&&Td(e)&&e[EA]&&e[Ed])}function JH(e){return!!(e&&Td(e)&&e[LH])}var TA=Symbol.iterator;function Lv(e){return!!(e!=null&&e[TA])}function Br(e,t,r=[],n=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!Lv(e)||!Lv(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!==Br),a];function a(u,d){return Br(u,d,[...r],[...n],[...o])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(nn("Set",e)||BH(e)){let u=!0;for(let d of e)if(!t.has(d)){let p=!1;for(let f of t)ze(d,f,s)===!0&&(p=!0);if(p===!1){u=!1;break}}return n.pop(),o.pop(),u}else if(nn("Map",e)||FH(e)){let u=!0;for(let d of e)if(!t.has(d[0])||!ze(d[1],t.get(d[0]),s)){let p=!1;for(let f of t){let h=ze(d[0],f[0],s),y=!1;h===!0&&(y=ze(d[1],f[1],s)),y===!0&&(p=!0)}if(p===!1){u=!1;break}}return n.pop(),o.pop(),u}}let l=t[TA]();for(let u of e){let d=l.next();if(d.done||!ze(u,d.value,s))return!1}if(!l.next().done)return!1;if(!$H(e)&&!VH(e)&&!UH(e)&&!JH(e)){let u=Object.entries(e),d=Object.entries(t);if(!ze(u,d,s))return!1}return n.pop(),o.pop(),!0}function Py(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||Py(Object.getPrototypeOf(e),t)}function HH(e){return Mu(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function Fl(e,t,r=[]){let n=r.filter(i=>i!==Fl),o=(i=new WeakMap)=>(s,a)=>{if(HH(a))return Object.keys(a).every(l=>{if(a[l]!=null&&typeof a[l]=="object"){if(i.has(a[l]))return ze(s[l],a[l],n);i.set(a[l],!0)}let u=s!=null&&Py(s,l)&&ze(s[l],a[l],[...n,o(i)]);return i.delete(a[l]),u})};return o()(e,t)}function Fv(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function Bv(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}function Yf(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!==Yf);return ze(e,t,i,!0)&&ze(n,o)}function GH(e,t="#{this}",r="#{exp}"){let n=`expected ${t} to be ${r} // Object.is equality`;return["toStrictEqual","toEqual"].includes(e)?`${n}
|
|
265
|
+
|
|
266
|
+
If it should pass with deep equality, replace "toBe" with "${e}"
|
|
267
|
+
|
|
268
|
+
Expected: ${t}
|
|
269
|
+
Received: serializes to the same string
|
|
270
|
+
`:n}function WH(e,t){return`${t} ${e}${t===1?"":"s"}`}function Np(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})]}function zH(e,t,r){let n=0,o=(i=new WeakMap)=>(s,a)=>{if(Array.isArray(s)){if(Array.isArray(a)&&a.length===s.length)return a.map((l,u)=>o(i)(s[u],l))}else{if(s instanceof Date)return s;if(Mu(s)&&Mu(a)){if(ze(s,a,[...r,Br,Fl]))return a;let l={};i.set(s,l),typeof s.constructor=="function"&&typeof s.constructor.name=="string"&&Object.defineProperty(l,"constructor",{enumerable:!1,value:s.constructor});for(let u of Np(s))Py(a,u)?l[u]=i.has(s[u])?i.get(s[u]):o(i)(s[u],a[u]):i.has(s[u])||(n+=1,Mu(s[u])&&(n+=Np(s[u]).length),o(i)(s[u],a[u]));if(Np(l).length>0)return l}}return s};return{subset:o()(e,t),stripped:n}}if(!Object.prototype.hasOwnProperty.call(globalThis,Za)){let e=new WeakMap;Object.defineProperty(globalThis,Za,{get:()=>e})}if(!Object.prototype.hasOwnProperty.call(globalThis,el)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,el,{configurable:!0,get:()=>({state:globalThis[Za].get(globalThis[Ry]),matchers:e,customEqualityTesters:t})})}if(!Object.prototype.hasOwnProperty.call(globalThis,Kf)){let e=Object.create(null);Object.defineProperty(globalThis,Kf,{get:()=>e})}function cc(e){return globalThis[Za].get(e)}function xp(e,t){let r=globalThis[Za],n=r.get(t)||{},o=Object.defineProperties(n,{...Object.getOwnPropertyDescriptors(n),...Object.getOwnPropertyDescriptors(e)});r.set(t,o)}var lo=class{constructor(e,t=!1){hr(this,"$$typeof",Symbol.for("jest.asymmetricMatcher"));this.sample=e,this.inverse=t}getMatcherContext(e){return{...cc(e||globalThis[Ry]),equals:ze,isNot:this.inverse,customTesters:Oy(),utils:{...gA(),diff:Hs,stringify:Ir,iterableEquality:Br,subsetEquality:Fl}}}};lo.prototype[Symbol.for("chai/inspect")]=function(e){let t=Ir(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};var $v=class extends lo{constructor(e,t=!1){if(!nn("String",e))throw new Error("Expected is not a string");super(e,t)}asymmetricMatch(e){let t=nn("String",e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}},KH=class extends lo{asymmetricMatch(e){return e!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}},Vv=class extends lo{constructor(e,t=!1){super(e,t)}getPrototype(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.constructor.prototype===e?null:e.constructor.prototype}hasProperty(e,t){return e?Object.prototype.hasOwnProperty.call(e,t)?!0:this.hasProperty(this.getPrototype(e),t):!1}asymmetricMatch(e){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let t=!0,r=this.getMatcherContext();for(let n in this.sample)if(!this.hasProperty(e,n)||!ze(this.sample[n],e[n],r.customTesters)){t=!1;break}return this.inverse?!t:t}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}},Uv=class extends lo{constructor(e,t=!1){super(e,t)}asymmetricMatch(e){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let t=this.getMatcherContext(),r=this.sample.length===0||Array.isArray(e)&&this.sample.every(n=>e.some(o=>ze(n,o,t.customTesters)));return this.inverse?!r:r}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}},YH=class extends lo{constructor(e){if(typeof e>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(e)}fnNameFor(e){if(e.name)return e.name;let t=Function.prototype.toString.call(e).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return t?t[1]:"<anonymous>"}asymmetricMatch(e){return this.sample===String?typeof e=="string"||e instanceof String:this.sample===Number?typeof e=="number"||e instanceof Number:this.sample===Function?typeof e=="function"||typeof e=="function":this.sample===Boolean?typeof e=="boolean"||e instanceof Boolean:this.sample===BigInt?typeof e=="bigint"||e instanceof BigInt:this.sample===Symbol?typeof e=="symbol"||e instanceof Symbol:this.sample===Object?typeof e=="object":e 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)}>`}},Jv=class extends lo{constructor(e,t=!1){if(!nn("String",e)&&!nn("RegExp",e))throw new Error("Expected is not a String or a RegExp");super(new RegExp(e),t)}asymmetricMatch(e){let t=nn("String",e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}},Hv=class extends lo{constructor(t,r=2,n=!1){if(!nn("Number",t))throw new Error("Expected is not a Number");if(!nn("Number",r))throw new Error("Precision is not a Number");super(t);hr(this,"precision");this.inverse=n,this.precision=r}asymmetricMatch(t){if(!nn("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,`(${WH("digit",this.precision)})`].join(" ")}},XH=(e,t)=>{t.addMethod(e.expect,"anything",()=>new KH),t.addMethod(e.expect,"any",r=>new YH(r)),t.addMethod(e.expect,"stringContaining",r=>new $v(r)),t.addMethod(e.expect,"objectContaining",r=>new Vv(r)),t.addMethod(e.expect,"arrayContaining",r=>new Uv(r)),t.addMethod(e.expect,"stringMatching",r=>new Jv(r)),t.addMethod(e.expect,"closeTo",(r,n)=>new Hv(r,n)),e.expect.not={stringContaining:r=>new $v(r,!0),objectContaining:r=>new Vv(r,!0),arrayContaining:r=>new Uv(r,!0),stringMatching:r=>new Jv(r,!0),closeTo:(r,n)=>new Hv(r,n,!0)}};function Gv(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}`}function Wv(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 a=(((s=globalThis.__vitest_worker__)===null||s===void 0?void 0:s.onFilterStackTrace)||(l=>l||""))(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.
|
|
271
|
+
`,a].join(""))}}),{then(s,a){return i=!0,t.then(s,a)},catch(s){return t.catch(s)},finally(s){return t.finally(s)},[Symbol.toStringTag]:"Promise"}}return t}function zv(e,t){var r;e.result||(e.result={state:"fail"}),e.result.state="fail",(r=e.result).errors||(r.errors=[]),e.result.errors.push(Fm(t))}function _A(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(X$,s=>{zv(o,s)}):i}catch(i){zv(o,i)}}}var QH=(e,t)=>{let{AssertionError:r}=e,n=Oy();function o(u,d){let p=f=>{let h=_A(t,f,d);t.addMethod(e.Assertion.prototype,f,h),t.addMethod(globalThis[el].matchers,f,h)};Array.isArray(u)?u.forEach(f=>p(f)):p(u)}["throw","throws","Throw"].forEach(u=>{t.overwriteMethod(e.Assertion.prototype,u,d=>function(...p){let f=t.flag(this,"promise"),h=t.flag(this,"object"),y=t.flag(this,"negate");if(f==="rejects")t.flag(this,"object",()=>{throw h});else if(f==="resolves"&&typeof h!="function"){if(y)return;{let g=t.flag(this,"message")||"expected promise to throw an error, but it didn't",v={showDiff:!1};throw new r(g,v,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=ze(d,u,[...n,Br]);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=ze(d,u,[...n,Br,Fv,Yf,Bv],!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),f="";return p||(ze(d,u,[...n,Br,Fv,Yf,Bv],!0)?f="toStrictEqual":ze(d,u,[...n,Br])&&(f="toEqual")),this.assert(p,GH(f),"expected #{this} not to be #{exp} // Object.is equality",u,d)}),o("toMatchObject",function(u){let d=this._obj,p=ze(d,u,[...n,Br,Fl]),f=t.flag(this,"negate"),{subset:h,stripped:y}=zH(d,u,n);if(p&&f||!p&&!f){let g=t.getMessage(this,[p,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",u,h,!1]),v=y===0?g:`${g}
|
|
272
|
+
(${y} matching ${y===1?"property":"properties"} omitted from actual)`;throw new r(v,{showDiff:!0,expected:u,actual:h})}}),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){xn(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(f=>ze(f,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 xn(d,"actual",["number","bigint"]),xn(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 xn(d,"actual",["number","bigint"]),xn(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 xn(d,"actual",["number","bigint"]),xn(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 xn(d,"actual",["number","bigint"]),xn(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(E=>String(E).replace(/([.[\]])/g,"\\$1")).join("."));let d=this._obj,[p,f]=u,h=()=>Object.prototype.hasOwnProperty.call(d,p)?{value:d[p],exists:!0}:t.getPathInfo(d,p),{value:y,exists:g}=h(),v=g&&(u.length===1||ze(f,y,n)),b=u.length===1?"":` with value ${t.objDisplay(f)}`;return this.assert(v,`expected #{this} to have property "${p}"${b}`,`expected #{this} to not have property "${p}"${b}`,f,g?y:void 0)}),o("toBeCloseTo",function(u,d=2){let p=this._obj,f=!1,h=0,y=0;return u===Number.POSITIVE_INFINITY&&p===Number.POSITIVE_INFINITY||u===Number.NEGATIVE_INFINITY&&p===Number.NEGATIVE_INFINITY?f=!0:(h=10**-d/2,y=Math.abs(p-u),f=y<h),this.assert(f,`expected #{this} to be close to #{exp}, received difference is ${y}, but expected ${h}`,`expected #{this} to not be close to #{exp}, received difference is ${y}, but expected ${h}`,u,p,!1)});function i(u){if(!ss(u._obj))throw new TypeError(`${t.inspect(u._obj)} is not a spy or a call to a spy!`)}function s(u){return i(u),u._obj}o(["toHaveBeenCalledTimes","toBeCalledTimes"],function(u){let d=s(this),p=d.getMockName(),f=d.mock.calls.length;return this.assert(f===u,`expected "${p}" to be called #{exp} times, but got ${f} times`,`expected "${p}" to not be called #{exp} times`,u,f,!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,f=p>0,h=t.flag(this,"negate"),y=t.getMessage(this,[f,`expected "${d}" to be called at least once`,`expected "${d}" to not be called at all, but actually been called ${p} times`,!0,f]);if(f&&h&&(y=Ip(u,y)),f&&h||!f&&!h)throw new r(y)});function a(u,d){return u.length===d.length&&u.every((p,f)=>ze(p,d[f],[...n,Br]))}o(["toHaveBeenCalledWith","toBeCalledWith"],function(...u){let d=s(this),p=d.getMockName(),f=d.mock.calls.some(g=>a(g,u)),h=t.flag(this,"negate"),y=t.getMessage(this,[f,`expected "${p}" to be called with arguments: #{exp}`,`expected "${p}" to not be called with arguments: #{exp}`,u]);if(f&&h||!f&&!h)throw new r(Ip(d,y,u))}),o("toHaveBeenCalledExactlyOnceWith",function(...u){let d=s(this),p=d.getMockName(),f=d.mock.calls.length,h=d.mock.calls.some(v=>a(v,u))&&f===1,y=t.flag(this,"negate"),g=t.getMessage(this,[h,`expected "${p}" to be called once with arguments: #{exp}`,`expected "${p}" to not be called once with arguments: #{exp}`,u]);if(h&&y||!h&&!y)throw new r(Ip(d,g,u))}),o(["toHaveBeenNthCalledWith","nthCalledWith"],function(u,...d){let p=s(this),f=p.getMockName(),h=p.mock.calls[u-1],y=p.mock.calls.length,g=u<=y;this.assert(h&&a(h,d),`expected ${Ca(u)} "${f}" call to have been called with #{exp}${g?"":`, but called only ${y} times`}`,`expected ${Ca(u)} "${f}" call to not have been called with #{exp}`,d,h,g)}),o(["toHaveBeenLastCalledWith","lastCalledWith"],function(...u){let d=s(this),p=d.getMockName(),f=d.mock.calls[d.mock.calls.length-1];this.assert(f&&a(f,u),`expected last "${p}" call to have been called with #{exp}`,`expected last "${p}" call to not have been called with #{exp}`,u,f)});function l(u,d,p){let f=u.mock.invocationCallOrder,h=d.mock.invocationCallOrder;return f.length===0?!p:h.length===0?!1:f[0]<h[0]}o(["toHaveBeenCalledBefore"],function(u,d=!0){let p=s(this);if(!ss(u))throw new TypeError(`${t.inspect(u)} is not a spy or a call to a spy`);this.assert(l(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(!ss(u))throw new TypeError(`${t.inspect(u)} is not a spy or a call to a spy`);this.assert(l(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"),f=t.flag(this,"negate"),h=null;if(p==="rejects")h=d;else if(p==="resolves"&&typeof d!="function"){if(f)return;{let y=t.flag(this,"message")||"expected promise to throw an error, but it didn't",g={showDiff:!1};throw new r(y,g,t.flag(this,"ssfi"))}}else{let y=!1;try{d()}catch(g){y=!0,h=g}if(!y&&!f){let g=t.flag(this,"message")||"expected function to throw an error, but it didn't",v={showDiff:!1};throw new r(g,v,t.flag(this,"ssfi"))}}if(typeof u=="function"){let y=u.name||u.prototype.constructor.name;return this.assert(h&&h instanceof u,`expected error to be instance of ${y}`,`expected error not to be instance of ${y}`,u,h)}if(u instanceof Error){let y=ze(h,u,[...n,Br]);return this.assert(y,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",u,h)}if(typeof u=="object"&&"asymmetricMatch"in u&&typeof u.asymmetricMatch=="function"){let y=u;return this.assert(h&&y.asymmetricMatch(h),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",y,h)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof u}"`)}),[{name:"toHaveResolved",condition:u=>u.mock.settledResults.length>0&&u.mock.settledResults.some(({type:d})=>d==="fulfilled"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:u=>u.mock.calls.length>0&&u.mock.results.some(({type:d})=>d!=="throw"),action:"called"}].forEach(({name:u,condition:d,action:p})=>{o(u,function(){let f=s(this),h=f.getMockName(),y=d(f);this.assert(y,`expected "${h}" to be successfully ${p} at least once`,`expected "${h}" to not be successfully ${p}`,y,!y,!1)})}),[{name:"toHaveResolvedTimes",condition:(u,d)=>u.mock.settledResults.reduce((p,{type:f})=>f==="fulfilled"?++p:p,0)===d,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(u,d)=>u.mock.results.reduce((p,{type:f})=>f==="throw"?p:++p,0)===d,action:"called"}].forEach(({name:u,condition:d,action:p})=>{o(u,function(f){let h=s(this),y=h.getMockName(),g=d(h,f);this.assert(g,`expected "${y}" to be successfully ${p} ${f} times`,`expected "${y}" to not be successfully ${p} ${f} times`,`expected resolved times: ${f}`,`received resolved times: ${g}`,!1)})}),[{name:"toHaveResolvedWith",condition:(u,d)=>u.mock.settledResults.some(({type:p,value:f})=>p==="fulfilled"&&ze(d,f)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(u,d)=>u.mock.results.some(({type:p,value:f})=>p==="return"&&ze(d,f)),action:"return"}].forEach(({name:u,condition:d,action:p})=>{o(u,function(f){let h=s(this),y=d(h,f),g=t.flag(this,"negate");if(y&&g||!y&&!g){let v=h.getMockName(),b=t.getMessage(this,[y,`expected "${v}" to ${p} with: #{exp} at least once`,`expected "${v}" to not ${p} with: #{exp}`,f]),E=p==="return"?h.mock.results:h.mock.settledResults;throw new r(ZH(h,E,b,f))}})}),[{name:"toHaveLastResolvedWith",condition:(u,d)=>{let p=u.mock.settledResults[u.mock.settledResults.length-1];return p&&p.type==="fulfilled"&&ze(p.value,d)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(u,d)=>{let p=u.mock.results[u.mock.results.length-1];return p&&p.type==="return"&&ze(p.value,d)},action:"return"}].forEach(({name:u,condition:d,action:p})=>{o(u,function(f){let h=s(this),y=p==="return"?h.mock.results:h.mock.settledResults,g=y[y.length-1],v=h.getMockName();this.assert(d(h,f),`expected last "${v}" call to ${p} #{exp}`,`expected last "${v}" call to not ${p} #{exp}`,f,g==null?void 0:g.value)})}),[{name:"toHaveNthResolvedWith",condition:(u,d,p)=>{let f=u.mock.settledResults[d-1];return f&&f.type==="fulfilled"&&ze(f.value,p)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(u,d,p)=>{let f=u.mock.results[d-1];return f&&f.type==="return"&&ze(f.value,p)},action:"return"}].forEach(({name:u,condition:d,action:p})=>{o(u,function(f,h){let y=s(this),g=y.getMockName(),v=(p==="return"?y.mock.results:y.mock.settledResults)[f-1],b=`${Ca(f)} call`;this.assert(d(y,f,h),`expected ${b} "${g}" call to ${p} #{exp}`,`expected ${b} "${g}" call to not ${p} #{exp}`,h,v==null?void 0:v.value)})}),o("withContext",function(u){for(let d in u)t.flag(this,d,u[d]);return this}),t.addProperty(e.Assertion.prototype,"resolves",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==null?void 0:p.then)!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof p}'.`);let f=new Proxy(this,{get:(h,y,g)=>{let v=Reflect.get(h,y,g);return typeof v!="function"?v instanceof e.Assertion?f:v:(...b)=>{t.flag(this,"_name",y);let E=p.then(T=>(t.flag(this,"object",T),v.call(this,...b)),T=>{let A=new r(`promise rejected "${t.inspect(T)}" instead of resolving`,{showDiff:!1});throw A.cause=T,A.stack=u.stack.replace(u.message,A.message),A});return Wv(d,E,Gv(t,this,!!b.length),u)}}});return f}),t.addProperty(e.Assertion.prototype,"rejects",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"),f=typeof p=="function"?p():p;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof(f==null?void 0:f.then)!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof f}'.`);let h=new Proxy(this,{get:(y,g,v)=>{let b=Reflect.get(y,g,v);return typeof b!="function"?b instanceof e.Assertion?h:b:(...E)=>{t.flag(this,"_name",g);let T=f.then(A=>{let P=new r(`promise resolved "${t.inspect(A)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:A});throw P.stack=u.stack.replace(u.message,P.message),P},A=>(t.flag(this,"object",A),b.call(this,...E)));return Wv(d,T,Gv(t,this,!!E.length),u)}}});return h})};function Ca(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`}function Ip(e,t,r){return e.mock.calls.length&&(t+=Cr.gray(`
|
|
273
|
+
|
|
274
|
+
Received:
|
|
275
|
+
|
|
276
|
+
${e.mock.calls.map((n,o)=>{let i=Cr.bold(` ${Ca(o+1)} ${e.getMockName()} call:
|
|
277
|
+
|
|
278
|
+
`);return r?i+=Hs(r,n,{omitAnnotationLines:!0}):i+=Ir(n).split(`
|
|
279
|
+
`).map(s=>` ${s}`).join(`
|
|
280
|
+
`),i+=`
|
|
281
|
+
`,i}).join(`
|
|
282
|
+
`)}`)),t+=Cr.gray(`
|
|
283
|
+
|
|
284
|
+
Number of calls: ${Cr.bold(e.mock.calls.length)}
|
|
285
|
+
`),t}function ZH(e,t,r,n){return t.length&&(r+=Cr.gray(`
|
|
286
|
+
|
|
287
|
+
Received:
|
|
288
|
+
|
|
289
|
+
${t.map((o,i)=>{let s=Cr.bold(` ${Ca(i+1)} ${e.getMockName()} call return:
|
|
290
|
+
|
|
291
|
+
`);return n?s+=Hs(n,o.value,{omitAnnotationLines:!0}):s+=Ir(o).split(`
|
|
292
|
+
`).map(a=>` ${a}`).join(`
|
|
293
|
+
`),s+=`
|
|
294
|
+
`,s}).join(`
|
|
295
|
+
`)}`)),r+=Cr.gray(`
|
|
296
|
+
|
|
297
|
+
Number of calls: ${Cr.bold(e.mock.calls.length)}
|
|
298
|
+
`),r}function e3(e,t){let r=e._obj,n=Tn.flag(e,"negate"),o=Tn.flag(e,"promise")||"",i={...gA(),diff:Hs,stringify:Ir,iterableEquality:Br,subsetEquality:Fl};return{state:{...cc(t),customTesters:Oy(),isNot:n,utils:i,promise:o,equals:ze,suppressedErrors:[],soft:Tn.flag(e,"soft"),poll:Tn.flag(e,"poll")},isNot:n,obj:r}}var Kv=class extends Error{constructor(e,t,r){super(e),this.actual=t,this.expected=r}};function t3(e,t,r){return(n,o)=>{Object.entries(r).forEach(([i,s])=>{function a(...p){let{state:f,isNot:h,obj:y}=e3(this,t),g=s.call(f,y,...p);if(g&&typeof g=="object"&&typeof g.then=="function")return g.then(({pass:A,message:P,actual:R,expected:S})=>{if(A&&h||!A&&!h)throw new Kv(P(),R,S)});let{pass:v,message:b,actual:E,expected:T}=g;if(v&&h||!v&&!h)throw new Kv(b(),E,T)}let l=_A(o,i,a);o.addMethod(globalThis[el].matchers,i,l),o.addMethod(e.Assertion.prototype,i,l);class u extends lo{constructor(f=!1,...h){super(h,f)}asymmetricMatch(f){let{pass:h}=s.call(this.getMatcherContext(t),f,...this.sample);return this.inverse?!h:h}toString(){return`${this.inverse?"not.":""}${i}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(f=>Ir(f)).join(", ")}>`}}let d=(...p)=>new u(!1,...p);Object.defineProperty(t,i,{configurable:!0,enumerable:!0,value:d,writable:!0}),Object.defineProperty(t.not,i,{configurable:!0,enumerable:!0,value:(...p)=>new u(!0,...p),writable:!0}),Object.defineProperty(globalThis[Kf],i,{configurable:!0,enumerable:!0,value:d,writable:!0})})}}var r3=(e,t)=>{t.addMethod(e.expect,"extend",(r,n)=>{os(t3(e,r,n))})};function n3(){os(r3),os(QH),os(XH);let e=(n,o)=>{let{assertionCalls:i}=cc(e);return xp({assertionCalls:i+1,soft:!1},e),yi(n,o)};Object.assign(e,yi),e.getState=()=>cc(e),e.setState=n=>xp(n,e),e.extend=n=>yi.extend(e,n),e.soft=(...n)=>{let o=e(...n);return e.setState({soft:!0}),o},e.extend(AH),e.unreachable=n=>{L.fail(`expected${n?` "${n}" `:" "}not to be reached`)};function t(n){let o=()=>new Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`);"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:o})}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 xp({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),Tn.addMethod(e,"assertions",t),Tn.addMethod(e,"hasAssertions",r),e.extend(hR),e}var wA=n3();Object.defineProperty(globalThis,Ry,{value:wA,writable:!0,configurable:!0});function o3(e,t,r){Object.defineProperty(e,t,r)}var ku=Symbol.for("tinyspy:spy"),i3=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},s3=e=>(o3(e,ku,{value:{reset:()=>i3(e[ku])}}),e[ku]),a3=e=>e[ku]||s3(e),Cy=globalThis.__STORYBOOK_MODULE_MOCK_SPIES__??(globalThis.__STORYBOOK_MODULE_MOCK_SPIES__=new Set),Xf=new Set;function SA(e){return Xf.add(e),()=>void Xf.delete(e)}var l3=(...e)=>{let t=wH(...e);return AA(t)};function RA(e){let t=e?qv(e):qv();return AA(t)}function AA(e){let t=Yv(e),r=t.mockImplementation.bind(null);return t.mockImplementation=n=>Yv(r(n)),t}function Yv(e){let t=a3(e),r=t.impl;return t.willCall(function(...n){return Xf.forEach(o=>o(e,n)),r==null?void 0:r.apply(this,n)}),e}function OA(){Ll.forEach(e=>e.mockClear()),Cy.forEach(e=>e.mockClear())}function PA(){Ll.forEach(e=>e.mockReset()),Cy.forEach(e=>e.mockReset())}function CA(){Ll.forEach(e=>e.mockRestore()),Cy.forEach(e=>e.mockClear())}function u3(e,t={}){return e}var NA={};wr(NA,{buildQueries:()=>co,configure:()=>_G,createEvent:()=>Lu,findAllByAltText:()=>qO,findAllByDisplayValue:()=>PO,findAllByLabelText:()=>aO,findAllByPlaceholderText:()=>yO,findAllByRole:()=>WO,findAllByTestId:()=>ZO,findAllByText:()=>_O,findAllByTitle:()=>BO,findByAltText:()=>jO,findByDisplayValue:()=>CO,findByLabelText:()=>lO,findByPlaceholderText:()=>gO,findByRole:()=>zO,findByTestId:()=>eP,findByText:()=>wO,findByTitle:()=>$O,fireEvent:()=>il,getAllByAltText:()=>IO,getAllByDisplayValue:()=>AO,getAllByLabelText:()=>uO,getAllByPlaceholderText:()=>hO,getAllByRole:()=>HO,getAllByTestId:()=>XO,getAllByText:()=>EO,getAllByTitle:()=>LO,getByAltText:()=>MO,getByDisplayValue:()=>OO,getByLabelText:()=>cO,getByPlaceholderText:()=>mO,getByRole:()=>GO,getByTestId:()=>QO,getByText:()=>TO,getByTitle:()=>FO,getConfig:()=>Be,getDefaultNormalizer:()=>jy,getElementError:()=>wd,getMultipleElementsFoundError:()=>Sd,getNodeText:()=>Bl,getQueriesForElement:()=>ah,getRoles:()=>eO,getSuggestedQuery:()=>pc,isInaccessible:()=>_d,logDOM:()=>Qf,logRoles:()=>OG,makeFindQuery:()=>Ss,makeGetAllQuery:()=>Ly,makeSingleQuery:()=>ws,prettyDOM:()=>nl,prettyFormat:()=>Ny,queries:()=>fc,queryAllByAltText:()=>NO,queryAllByAttribute:()=>Li,queryAllByDisplayValue:()=>SO,queryAllByLabelText:()=>dO,queryAllByPlaceholderText:()=>pO,queryAllByRole:()=>UO,queryAllByTestId:()=>KO,queryAllByText:()=>bO,queryAllByTitle:()=>kO,queryByAltText:()=>xO,queryByAttribute:()=>rO,queryByDisplayValue:()=>RO,queryByLabelText:()=>iO,queryByPlaceholderText:()=>fO,queryByRole:()=>JO,queryByTestId:()=>YO,queryByText:()=>vO,queryByTitle:()=>DO,queryHelpers:()=>$G,screen:()=>mW,waitFor:()=>Dy,waitForElementToBeRemoved:()=>lW,within:()=>ah,wrapAllByQueryWithSuggestion:()=>_r,wrapSingleQueryWithSuggestion:()=>Bo});var Ny=Ot(pj()),c3=Object.prototype.toString;function d3(e){return typeof e=="function"||c3.call(e)==="[object Function]"}function p3(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var f3=Math.pow(2,53)-1;function h3(e){var t=p3(e);return Math.min(Math.max(t,0),f3)}function en(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");for(var o=h3(n.length),i=d3(r)?Object(new r(o)):new Array(o),s=0,a;s<o;)a=n[s],i[s]=a,s+=1;return i.length=o,i}function tl(e){"@babel/helpers - typeof";return tl=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},tl(e)}function m3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y3(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,xA(n.key),n)}}function g3(e,t,r){return t&&y3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function b3(e,t,r){return t=xA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xA(e){var t=v3(e,"string");return tl(t)==="symbol"?t:String(t)}function v3(e,t){if(tl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var E3=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];m3(this,e),b3(this,"items",void 0),this.items=t}return g3(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e}(),T3=typeof Set>"u"?Set:E3;function ir(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var _3={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"},w3={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 S3(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=w3[t])!==null&&n!==void 0&&n.has(r))})}function IA(e,t){return S3(e,t)}function R3(e){var t=O3(e);if(t===null||t==="presentation"){var r=A3(e);if(t!=="presentation"||IA(e,r||""))return r}return t}function A3(e){var t=_3[ir(e)];if(t!==void 0)return t;switch(ir(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!IA(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}function O3(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function pt(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function MA(e){return pt(e)&&ir(e)==="caption"}function Du(e){return pt(e)&&ir(e)==="input"}function P3(e){return pt(e)&&ir(e)==="optgroup"}function C3(e){return pt(e)&&ir(e)==="select"}function N3(e){return pt(e)&&ir(e)==="table"}function x3(e){return pt(e)&&ir(e)==="textarea"}function I3(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function M3(e){return pt(e)&&ir(e)==="fieldset"}function q3(e){return pt(e)&&ir(e)==="legend"}function j3(e){return pt(e)&&ir(e)==="slot"}function k3(e){return pt(e)&&e.ownerSVGElement!==void 0}function D3(e){return pt(e)&&ir(e)==="svg"}function L3(e){return k3(e)&&ir(e)==="title"}function dc(e,t){if(pt(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[]}function Wn(e,t){return pt(e)?t.indexOf(R3(e))!==-1:!1}function F3(e){return e.trim().replace(/\s\s+/g," ")}function B3(e,t){if(!pt(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"}function $3(e){return Wn(e,["button","combobox","listbox","textbox"])||qA(e,"range")}function qA(e,t){if(!pt(e))return!1;switch(t){case"range":return Wn(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function Xv(e,t){var r=en(e.querySelectorAll(t));return dc(e,"aria-owns").forEach(function(n){r.push.apply(r,en(n.querySelectorAll(t)))}),r}function V3(e){return C3(e)?e.selectedOptions||Xv(e,"[selected]"):Xv(e,'[aria-selected="true"]')}function U3(e){return Wn(e,["none","presentation"])}function J3(e){return MA(e)}function H3(e){return Wn(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function G3(e){return!1}function W3(e){return Du(e)||x3(e)?e.value:e.textContent||""}function Qv(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function jA(e){var t=ir(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function kA(e){if(jA(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&pt(r)){var n=kA(r);n!==null&&(t=n)}}),t}function z3(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):kA(e)}function K3(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return en(t);if(!jA(e))return null;var r=e.ownerDocument;return en(r.querySelectorAll("label")).filter(function(n){return z3(n)===e})}function Y3(e){var t=e.assignedNodes();return t.length===0?en(e.childNodes):t}function DA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new T3,n=I3(e),o=t.compute,i=o===void 0?"name":o,s=t.computedStyleSupportsPseudoElements,a=s===void 0?t.getComputedStyle!==void 0:s,l=t.getComputedStyle,u=l===void 0?n.getComputedStyle.bind(n):l,d=t.hidden,p=d===void 0?!1:d;function f(b,E){var T="";if(pt(b)&&a){var A=u(b,"::before"),P=Qv(A);T="".concat(P," ").concat(T)}var R=j3(b)?Y3(b):en(b.childNodes).concat(dc(b,"aria-owns"));if(R.forEach(function(O){var q=v(O,{isEmbeddedInLabel:E.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),M=pt(O)?u(O).getPropertyValue("display"):"inline",k=M!=="inline"?" ":"";T+="".concat(k).concat(q).concat(k)}),pt(b)&&a){var S=u(b,"::after"),w=Qv(S);T="".concat(T," ").concat(w)}return T.trim()}function h(b,E){var T=b.getAttributeNode(E);return T!==null&&!r.has(T)&&T.value.trim()!==""?(r.add(T),T.value):null}function y(b){return pt(b)?h(b,"title"):null}function g(b){if(!pt(b))return null;if(M3(b)){r.add(b);for(var E=en(b.childNodes),T=0;T<E.length;T+=1){var A=E[T];if(q3(A))return v(A,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(N3(b)){r.add(b);for(var P=en(b.childNodes),R=0;R<P.length;R+=1){var S=P[R];if(MA(S))return v(S,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(D3(b)){r.add(b);for(var w=en(b.childNodes),O=0;O<w.length;O+=1){var q=w[O];if(L3(q))return q.textContent}return null}else if(ir(b)==="img"||ir(b)==="area"){var M=h(b,"alt");if(M!==null)return M}else if(P3(b)){var k=h(b,"label");if(k!==null)return k}if(Du(b)&&(b.type==="button"||b.type==="submit"||b.type==="reset")){var x=h(b,"value");if(x!==null)return x;if(b.type==="submit")return"Submit";if(b.type==="reset")return"Reset"}var C=K3(b);if(C!==null&&C.length!==0)return r.add(b),en(C).map(function(G){return v(G,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(G){return G.length>0}).join(" ");if(Du(b)&&b.type==="image"){var j=h(b,"alt");if(j!==null)return j;var F=h(b,"title");return F!==null?F:"Submit Query"}if(Wn(b,["button"])){var V=f(b,{isEmbeddedInLabel:!1});if(V!=="")return V}return null}function v(b,E){if(r.has(b))return"";if(!p&&B3(b,u)&&!E.isReferenced)return r.add(b),"";var T=pt(b)?b.getAttributeNode("aria-labelledby"):null,A=T!==null&&!r.has(T)?dc(b,"aria-labelledby"):[];if(i==="name"&&!E.isReferenced&&A.length>0)return r.add(T),A.map(function(M){return v(M,{isEmbeddedInLabel:E.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var P=E.recursion&&$3(b)&&i==="name";if(!P){var R=(pt(b)&&b.getAttribute("aria-label")||"").trim();if(R!==""&&i==="name")return r.add(b),R;if(!U3(b)){var S=g(b);if(S!==null)return r.add(b),S}}if(Wn(b,["menu"]))return r.add(b),"";if(P||E.isEmbeddedInLabel||E.isReferenced){if(Wn(b,["combobox","listbox"])){r.add(b);var w=V3(b);return w.length===0?Du(b)?b.value:"":en(w).map(function(M){return v(M,{isEmbeddedInLabel:E.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(qA(b,"range"))return r.add(b),b.hasAttribute("aria-valuetext")?b.getAttribute("aria-valuetext"):b.hasAttribute("aria-valuenow")?b.getAttribute("aria-valuenow"):b.getAttribute("value")||"";if(Wn(b,["textbox"]))return r.add(b),W3(b)}if(H3(b)||pt(b)&&E.isReferenced||J3(b)||G3()){var O=f(b,{isEmbeddedInLabel:E.isEmbeddedInLabel});if(O!=="")return r.add(b),O}if(b.nodeType===b.TEXT_NODE)return r.add(b),b.textContent||"";if(E.recursion)return r.add(b),f(b,{isEmbeddedInLabel:E.isEmbeddedInLabel});var q=y(b);return q!==null?(r.add(b),q):(r.add(b),"")}return F3(v(e,{isEmbeddedInLabel:!1,isReferenced:i==="description",recursion:!1}))}function rl(e){"@babel/helpers - typeof";return rl=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},rl(e)}function Zv(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}function eE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zv(Object(r),!0).forEach(function(n){X3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X3(e,t,r){return t=Q3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q3(e){var t=Z3(e,"string");return rl(t)==="symbol"?t:String(t)}function Z3(e,t){if(rl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=dc(e,"aria-describedby").map(function(o){return DA(o,eE(eE({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function eG(e){return Wn(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function xy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return eG(e)?"":DA(e,t)}var Fr=Ot(tm()),tG=Ot(fj());function FA(e){return e.replace(/</g,"<").replace(/>/g,">")}var rG=(e,t,r,n,o,i,s)=>{let a=n+r.indent,l=r.colors;return e.map(u=>{let d=t[u],p=s(d,r,a,o,i);return typeof d!="string"&&(p.indexOf(`
|
|
299
|
+
`)!==-1&&(p=r.spacingOuter+a+p+r.spacingOuter+n),p="{"+p+"}"),r.spacingInner+n+l.prop.open+u+l.prop.close+"="+l.value.open+p+l.value.close}).join("")},nG=3,oG=(e,t,r,n,o,i)=>e.map(s=>{let a=typeof s=="string"?BA(s,t):i(s,t,r,n,o);return a===""&&typeof s=="object"&&s!==null&&s.nodeType!==nG?"":t.spacingOuter+r+a}).join(""),BA=(e,t)=>{let r=t.colors.content;return r.open+FA(e)+r.close},iG=(e,t)=>{let r=t.colors.comment;return r.open+"<!--"+FA(e)+"-->"+r.close},sG=(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},aG=(e,t)=>{let r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},lG=1,$A=3,VA=8,UA=11,uG=/^((HTML|SVG)\w*)?Element$/,JA=e=>{let{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},cG=e=>{let t=e.constructor.name,{nodeType:r}=e;return r===lG&&(uG.test(t)||JA(e))||r===$A&&t==="Text"||r===VA&&t==="Comment"||r===UA&&t==="DocumentFragment"};function dG(e){return e.nodeType===$A}function pG(e){return e.nodeType===VA}function Mp(e){return e.nodeType===UA}function fG(e){return{test:t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||JA(t))&&cG(t)},serialize:(t,r,n,o,i,s)=>{if(dG(t))return BA(t.data,r);if(pG(t))return iG(t.data,r);let a=Mp(t)?"DocumentFragment":t.tagName.toLowerCase();return++o>r.maxDepth?aG(a,r):sG(a,rG(Mp(t)?[]:Array.from(t.attributes).map(l=>l.name).sort(),Mp(t)?{}:Array.from(t.attributes).reduce((l,u)=>(l[u.name]=u.value,l),{}),r,n+r.indent,o,i,s),oG(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,o,i,s),r,n)}}}var HA=null,Iy=null,My=null;try{let e=module&&module.require;Iy=e.call(module,"fs").readFileSync,My=e.call(module,"@babel/code-frame").codeFrameColumns,HA=e.call(module,"picocolors")}catch{}function hG(e){let t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),o=n.split(":"),[i,s,a]=[o[0],parseInt(o[1],10),parseInt(o[2],10)],l="";try{l=Iy(i,"utf-8")}catch{return""}let u=My(l,{start:{line:s,column:a}},{highlightCode:!0,linesBelow:0});return HA.dim(n)+`
|
|
300
|
+
`+u+`
|
|
301
|
+
`}function mG(){if(!Iy||!My)return"";let e=new Error().stack.split(`
|
|
302
|
+
`).slice(1).find(t=>!t.includes("node_modules/"));return hG(e)}var GA=3;function qp(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function qy(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function WA(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+".")}function uo(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}}var yG=()=>{if(typeof process>"u")return!1;let e;try{var t;let r=(t=pf)==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},{DOMCollection:gG}=Ny.plugins,bG=1,vG=8;function EG(e){return e.nodeType!==vG&&(e.nodeType!==bG||!e.matches(Be().defaultIgnore))}function nl(e,t,r){if(r===void 0&&(r={}),e||(e=qy().body),typeof t!="number"&&(t=typeof process<"u"&&typeof pf<"u"&&pf.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=EG,...i}=r,s=Ny.format(e,{plugins:[fG(o),gG],printFunctionName:!1,highlight:yG(),...i});return t!==void 0&&e.outerHTML.length>t?s.slice(0,t)+"...":s}var Qf=function(){let e=mG();console.log(e?nl(...arguments)+`
|
|
303
|
+
|
|
304
|
+
`+e:nl(...arguments))},gi={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:e=>e(),unstable_advanceTimersWrapper:e=>e(),eventWrapper:e=>e(),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(e,t){let r=nl(t),n=new Error([e,"Ignored nodes: comments, "+gi.defaultIgnore+`
|
|
305
|
+
`+r].filter(Boolean).join(`
|
|
306
|
+
|
|
307
|
+
`));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function TG(e){try{return gi._disableExpensiveErrorDiagnostics=!0,e()}finally{gi._disableExpensiveErrorDiagnostics=!1}}function _G(e){typeof e=="function"&&(e=e(gi)),gi={...gi,...e}}function Be(){return gi}var wG=["button","meter","output","progress","select","textarea","input"];function zA(e){return wG.includes(e.nodeName.toLowerCase())?"":e.nodeType===GA?e.textContent:Array.from(e.childNodes).map(t=>zA(t)).join("")}function Zf(e){let t;return e.tagName.toLowerCase()==="label"?t=zA(e):t=e.value||e.textContent,t}function KA(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!SG(e))return[];let r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}function SG(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function YA(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 a=e.querySelector('[id="'+s+'"]');return a?{content:Zf(a),formControl:null}:{content:"",formControl:null}}):Array.from(KA(t)).map(s=>{let a=Zf(s),l=Array.from(s.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(u=>u.matches(n))[0];return{content:a,formControl:l}})}function XA(e){if(e==null)throw new Error("It looks like "+e+" was passed instead of a matcher. Did you do something like getByText("+e+")?")}function Ws(e,t,r,n){if(typeof e!="string")return!1;XA(r);let o=n(e);return typeof r=="string"||typeof r=="number"?o.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(o,t):QA(r,o)}function Xn(e,t,r,n){if(typeof e!="string")return!1;XA(r);let o=n(e);return r instanceof Function?r(o,t):r instanceof RegExp?QA(r,o):o===String(r)}function jy(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}}function Di(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return jy({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}function QA(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}function Bl(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===GA&&!!t.textContent).map(t=>t.textContent).join("")}var RG=AG(Fr.elementRoles);function ZA(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function _d(e,t){t===void 0&&(t={});let{isSubtreeInaccessible:r=ZA}=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}function ky(e){for(let{match:t,roles:r}of RG)if(t(e))return[...r];return[]}function AG(e){function t(s){let{name:a,attributes:l}=s;return""+a+l.map(u=>{let{name:d,value:p,constraints:f=[]}=u,h=f.indexOf("undefined")!==-1,y=f.indexOf("set")!==-1;return typeof p<"u"?"["+d+'="'+p+'"]':h?":not(["+d+"])":y?"["+d+"]:not(["+d+'=""])':"["+d+"]"}).join("")}function r(s){let{attributes:a=[]}=s;return a.length}function n(s,a){let{specificity:l}=s,{specificity:u}=a;return u-l}function o(s){let{attributes:a=[]}=s,l=a.findIndex(d=>d.value&&d.name==="type"&&d.value==="text");l>=0&&(a=[...a.slice(0,l),...a.slice(l+1)]);let u=t({...s,attributes:a});return d=>l>=0&&d.type!=="text"?!1:d.matches(u)}let i=[];for(let[s,a]of e.entries())i=[...i,{match:o(s),roles:Array.from(a),specificity:r(s)}];return i.sort(n)}function eO(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 n(e).filter(o=>r===!1?_d(o)===!1:!0).reduce((o,i)=>{let s=[];return i.hasAttribute("role")?s=i.getAttribute("role").split(" ").slice(0,1):s=ky(i),s.reduce((a,l)=>Array.isArray(a[l])?{...a,[l]:[...a[l],i]}:{...a,[l]:[i]},o)},{})}function tO(e,t){let{hidden:r,includeDescription:n}=t,o=eO(e,{hidden:r});return Object.entries(o).filter(i=>{let[s]=i;return s!=="generic"}).map(i=>{let[s,a]=i,l="-".repeat(50),u=a.map(d=>{let p='Name "'+xy(d,{computedStyleSupportsPseudoElements:Be().computedStyleSupportsPseudoElements})+`":
|
|
308
|
+
`,f=nl(d.cloneNode(!1));if(n){let h='Description "'+LA(d,{computedStyleSupportsPseudoElements:Be().computedStyleSupportsPseudoElements})+`":
|
|
309
|
+
`;return""+p+h+f}return""+p+f}).join(`
|
|
310
|
+
|
|
311
|
+
`);return s+`:
|
|
312
|
+
|
|
313
|
+
`+u+`
|
|
314
|
+
|
|
315
|
+
`+l}).join(`
|
|
316
|
+
`)}var OG=function(e,t){let{hidden:r=!1}=t===void 0?{}:t;return console.log(tO(e,{hidden:r}))};function PG(e){return e.tagName==="OPTION"?e.selected:$l(e,"aria-selected")}function CG(e){return e.getAttribute("aria-busy")==="true"}function NG(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:$l(e,"aria-checked")}function xG(e){return $l(e,"aria-pressed")}function IG(e){var t,r;return(t=(r=$l(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}function MG(e){return $l(e,"aria-expanded")}function $l(e,t){let r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}function qG(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]}function jG(e){let t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function kG(e){let t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function DG(e){let t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function LG(e){let t=e.getAttribute("aria-valuetext");return t===null?void 0:t}var tE=jy();function FG(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function rE(e){return new RegExp(FG(e.toLowerCase()),"i")}function bo(e,t,r,n){let{variant:o,name:i}=n,s="",a={},l=[["Role","TestId"].includes(e)?r:rE(r)];i&&(a.name=rE(i)),e==="Role"&&_d(t)&&(a.hidden=!0,s=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
317
|
+
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
318
|
+
`),Object.keys(a).length>0&&l.push(a);let u=o+"By"+e;return{queryName:e,queryMethod:u,queryArgs:l,variant:o,warning:s,toString(){s&&console.warn(s);let[d,p]=l;return d=typeof d=="string"?"'"+d+"'":d,p=p?", { "+Object.entries(p).map(f=>{let[h,y]=f;return h+": "+y}).join(", ")+" }":"",u+"("+d+p+")"}}}function vo(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}function pc(e,t,r){var n,o;if(t===void 0&&(t="get"),e.matches(Be().defaultIgnore))return;let i=(n=e.getAttribute("role"))!=null?n:(o=ky(e))==null?void 0:o[0];if(i!=="generic"&&vo("Role",r,i))return bo("Role",e,i,{variant:t,name:xy(e,{computedStyleSupportsPseudoElements:Be().computedStyleSupportsPseudoElements})});let s=YA(document,e).map(f=>f.content).join(" ");if(vo("LabelText",r,s))return bo("LabelText",e,s,{variant:t});let a=e.getAttribute("placeholder");if(vo("PlaceholderText",r,a))return bo("PlaceholderText",e,a,{variant:t});let l=tE(Bl(e));if(vo("Text",r,l))return bo("Text",e,l,{variant:t});if(vo("DisplayValue",r,e.value))return bo("DisplayValue",e,tE(e.value),{variant:t});let u=e.getAttribute("alt");if(vo("AltText",r,u))return bo("AltText",e,u,{variant:t});let d=e.getAttribute("title");if(vo("Title",r,d))return bo("Title",e,d,{variant:t});let p=e.getAttribute(Be().testIdAttribute);if(vo("TestId",r,p))return bo("TestId",e,p,{variant:t})}function lu(e,t){e.stack=t.stack.replace(t.message,e.message)}function BG(e,t){let{container:r=qy(),timeout:n=Be().asyncUtilTimeout,showOriginalStackTrace:o=Be().showOriginalStackTrace,stackTraceError:i,interval:s=50,onTimeout:a=u=>(Object.defineProperty(u,"message",{value:Be().getElementError(u.message,r).message}),u),mutationObserverOptions:l={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,f,h,y=!1,g="idle",v=setTimeout(P,n),b=qp();if(b){let{unstable_advanceTimersWrapper:R}=Be();for(A();!y;){if(!qp()){let S=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||lu(S,i),d(S);return}if(await R(async()=>{jest.advanceTimersByTime(s)}),y)break;A()}}else{try{uo(r)}catch(S){d(S);return}f=setInterval(T,s);let{MutationObserver:R}=WA(r);h=new R(T),h.observe(r,l),A()}function E(R,S){y=!0,clearTimeout(v),b||(clearInterval(f),h.disconnect()),R?d(R):u(S)}function T(){if(qp()){let R=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||lu(R,i),d(R)}else return A()}function A(){if(g!=="pending")try{let R=TG(e);typeof(R==null?void 0:R.then)=="function"?(g="pending",R.then(S=>{g="resolved",E(null,S)},S=>{g="rejected",p=S})):E(null,R)}catch(R){p=R}}function P(){let R;p?(R=p,!o&&R.name==="TestingLibraryElementError"&&lu(R,i)):(R=new Error("Timed out in waitFor."),o||lu(R,i)),E(a(R),null)}})}function Dy(e,t){let r=new Error("STACK_TRACE_MESSAGE");return Be().asyncWrapper(()=>BG(e,{stackTraceError:r,...t}))}function wd(e,t){return Be().getElementError(e,t)}function Sd(e,t){return wd(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function Li(e,t,r,n){let{exact:o=!0,collapseWhitespace:i,trim:s,normalizer:a}=n===void 0?{}:n,l=o?Xn:Ws,u=Di({collapseWhitespace:i,trim:s,normalizer:a});return Array.from(t.querySelectorAll("["+e+"]")).filter(d=>l(d.getAttribute(e),d,r,u))}function rO(e,t,r,n){let o=Li(e,t,r,n);if(o.length>1)throw Sd("Found multiple elements by ["+e+"="+r+"]",t);return o[0]||null}function ws(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 a=s.map(l=>wd(null,l).message).join(`
|
|
319
|
+
|
|
320
|
+
`);throw Sd(t(r,...o)+`
|
|
321
|
+
|
|
322
|
+
Here are the matching elements:
|
|
323
|
+
|
|
324
|
+
`+a,r)}return s[0]||null}}function nO(e,t){return Be().getElementError(`A better query is available, try this:
|
|
325
|
+
`+e.toString()+`
|
|
326
|
+
`,t)}function Ly(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 Be().getElementError(t(r,...o),r);return s}}function Ss(e){return(t,r,n,o)=>Dy(()=>e(t,r,n),{container:t,...o})}var Bo=(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 a=e(n,...i),[{suggest:l=Be().throwSuggestions}={}]=i.slice(-1);if(a&&l){let u=pc(a,r);if(u&&!t.endsWith(u.queryName))throw nO(u.toString(),n)}return a},_r=(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 a=e(n,...i),[{suggest:l=Be().throwSuggestions}={}]=i.slice(-1);if(a.length&&l){let u=[...new Set(a.map(d=>{var p;return(p=pc(d,r))==null?void 0:p.toString()}))];if(u.length===1&&!t.endsWith(pc(a[0],r).queryName))throw nO(u[0],n)}return a};function co(e,t,r){let n=Bo(ws(e,t),e.name,"query"),o=Ly(e,r),i=ws(o,t),s=Bo(i,e.name,"get"),a=_r(o,e.name.replace("query","get"),"getAll"),l=Ss(_r(o,e.name,"findAll")),u=Ss(Bo(i,e.name,"find"));return[n,a,s,l,u]}var $G=Object.freeze({__proto__:null,getElementError:wd,wrapAllByQueryWithSuggestion:_r,wrapSingleQueryWithSuggestion:Bo,getMultipleElementsFoundError:Sd,queryAllByAttribute:Li,queryByAttribute:rO,makeSingleQuery:ws,makeGetAllQuery:Ly,makeFindQuery:Ss,buildQueries:co});function VG(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:Zf(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}var UG=function(e,t,r){let{exact:n=!0,trim:o,collapseWhitespace:i,normalizer:s}=r===void 0?{}:r,a=n?Xn:Ws,l=Di({collapseWhitespace:i,trim:o,normalizer:s});return VG(e).filter(u=>{let{node:d,textToMatch:p}=u;return a(p,d,t,l)}).map(u=>{let{node:d}=u;return d})},ol=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:s,normalizer:a}=r===void 0?{}:r;uo(e);let l=o?Xn:Ws,u=Di({collapseWhitespace:i,trim:s,normalizer:a}),d=Array.from(e.querySelectorAll("*")).filter(p=>KA(p).length||p.hasAttribute("aria-labelledby")).reduce((p,f)=>{let h=YA(e,f,{selector:n});h.filter(g=>!!g.formControl).forEach(g=>{l(g.content,g.formControl,t,u)&&g.formControl&&p.push(g.formControl)});let y=h.filter(g=>!!g.content).map(g=>g.content);return l(y.join(" "),f,t,u)&&p.push(f),y.length>1&&y.forEach((g,v)=>{l(g,f,t,u)&&p.push(f);let b=[...y];b.splice(v,1),b.length>1&&l(b.join(" "),f,t,u)&&p.push(f)}),p},[]).concat(Li("aria-label",e,t,{exact:o,normalizer:u}));return Array.from(new Set(d)).filter(p=>p.matches(n))},Ci=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=ol(e,t,...n);if(!i.length){let s=UG(e,t,...n);if(s.length){let a=s.map(l=>JG(e,l)).filter(l=>!!l);throw a.length?Be().getElementError(a.map(l=>"Found a label with the text of: "+t+", however the element associated with this label (<"+l+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+l+" />, you can use aria-label or aria-labelledby instead.").join(`
|
|
327
|
+
|
|
328
|
+
`),e):Be().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 Be().getElementError("Unable to find a label with the text of: "+t,e)}return i};function JG(e,t){let r=t.getAttribute("for");if(!r)return null;let n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}var oO=(e,t)=>"Found multiple elements with the text of: "+t,iO=Bo(ws(ol,oO),ol.name,"query"),sO=ws(Ci,oO),aO=Ss(_r(Ci,Ci.name,"findAll")),lO=Ss(Bo(sO,Ci.name,"find")),uO=_r(Ci,Ci.name,"getAll"),cO=Bo(sO,Ci.name,"get"),dO=_r(ol,ol.name,"queryAll"),eh=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return uo(t[0]),Li("placeholder",...t)},HG=(e,t)=>"Found multiple elements with the placeholder text of: "+t,GG=(e,t)=>"Unable to find an element with the placeholder text of: "+t,pO=_r(eh,eh.name,"queryAll"),[fO,hO,mO,yO,gO]=co(eh,HG,GG),th=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:s,ignore:a=Be().defaultIgnore,normalizer:l}=r===void 0?{}:r;uo(e);let u=o?Xn:Ws,d=Di({collapseWhitespace:i,trim:s,normalizer:l}),p=[];return typeof e.matches=="function"&&e.matches(n)&&(p=[e]),[...p,...Array.from(e.querySelectorAll(n))].filter(f=>!a||!f.matches(a)).filter(f=>u(Bl(f),f,t,d))},WG=(e,t)=>"Found multiple elements with the text: "+t,zG=function(e,t,r){r===void 0&&(r={});let{collapseWhitespace:n,trim:o,normalizer:i,selector:s}=r,a=Di({collapseWhitespace:n,trim:o,normalizer:i})(t.toString()),l=a!==t.toString(),u=(s??"*")!=="*";return"Unable to find an element with the text: "+(l?a+" (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."},bO=_r(th,th.name,"queryAll"),[vO,EO,TO,_O,wO]=co(th,WG,zG),rh=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:s}=r===void 0?{}:r;uo(e);let a=n?Xn:Ws,l=Di({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=>a(Bl(d),d,t,l)):a(u.value,u,t,l))},KG=(e,t)=>"Found multiple elements with the display value: "+t+".",YG=(e,t)=>"Unable to find an element with the display value: "+t+".",SO=_r(rh,rh.name,"queryAll"),[RO,AO,OO,PO,CO]=co(rh,KG,YG),XG=/^(img|input|area|.+-.+)$/i,nh=function(e,t,r){return r===void 0&&(r={}),uo(e),Li("alt",e,t,r).filter(n=>XG.test(n.tagName))},QG=(e,t)=>"Found multiple elements with the alt text: "+t,ZG=(e,t)=>"Unable to find an element with the alt text: "+t,NO=_r(nh,nh.name,"queryAll"),[xO,IO,MO,qO,jO]=co(nh,QG,ZG),eW=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},oh=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:s}=r===void 0?{}:r;uo(e);let a=n?Xn:Ws,l=Di({collapseWhitespace:o,trim:i,normalizer:s});return Array.from(e.querySelectorAll("[title], svg > title")).filter(u=>a(u.getAttribute("title"),u,t,l)||eW(u)&&a(Bl(u),u,t,l))},tW=(e,t)=>"Found multiple elements with the title: "+t+".",rW=(e,t)=>"Unable to find an element with the title: "+t+".",kO=_r(oh,oh.name,"queryAll"),[DO,LO,FO,BO,$O]=co(oh,tW,rW),ih=function(e,t,r){let{hidden:n=Be().defaultHidden,name:o,description:i,queryFallbacks:s=!1,selected:a,busy:l,checked:u,pressed:d,current:p,level:f,expanded:h,value:{now:y,min:g,max:v,text:b}={}}=r===void 0?{}:r;if(uo(e),a!==void 0){var E;if(((E=Fr.roles.get(t))==null?void 0:E.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(l!==void 0){var T;if(((T=Fr.roles.get(t))==null?void 0:T.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(u!==void 0){var A;if(((A=Fr.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 P;if(((P=Fr.roles.get(t))==null?void 0:P.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(p!==void 0){var R;if(((R=Fr.roles.get(t))==null?void 0:R.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(f!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(y!==void 0){var S;if(((S=Fr.roles.get(t))==null?void 0:S.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(v!==void 0){var w;if(((w=Fr.roles.get(t))==null?void 0:w.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(g!==void 0){var O;if(((O=Fr.roles.get(t))==null?void 0:O.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(b!==void 0){var q;if(((q=Fr.roles.get(t))==null?void 0:q.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(h!==void 0){var M;if(((M=Fr.roles.get(t))==null?void 0:M.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}let k=new WeakMap;function x(C){return k.has(C)||k.set(C,ZA(C)),k.get(C)}return Array.from(e.querySelectorAll(nW(t))).filter(C=>{if(C.hasAttribute("role")){let j=C.getAttribute("role");if(s)return j.split(" ").filter(Boolean).some(V=>V===t);let[F]=j.split(" ");return F===t}return ky(C).some(j=>j===t)}).filter(C=>{if(a!==void 0)return a===PG(C);if(l!==void 0)return l===CG(C);if(u!==void 0)return u===NG(C);if(d!==void 0)return d===xG(C);if(p!==void 0)return p===IG(C);if(h!==void 0)return h===MG(C);if(f!==void 0)return f===qG(C);if(y!==void 0||v!==void 0||g!==void 0||b!==void 0){let F=!0;if(y!==void 0&&F&&(F=y===jG(C)),v!==void 0&&F&&(F=v===kG(C)),g!==void 0&&F&&(F=g===DG(C)),b!==void 0){var j;F&&(F=Xn((j=LG(C))!=null?j:null,C,b,V=>V))}return F}return!0}).filter(C=>o===void 0?!0:Xn(xy(C,{computedStyleSupportsPseudoElements:Be().computedStyleSupportsPseudoElements}),C,o,j=>j)).filter(C=>i===void 0?!0:Xn(LA(C,{computedStyleSupportsPseudoElements:Be().computedStyleSupportsPseudoElements}),C,i,j=>j)).filter(C=>n===!1?_d(C,{isSubtreeInaccessible:x})===!1:!0)};function nW(e){var t;let r='*[role~="'+e+'"]',n=(t=Fr.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(",")}var VO=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},oW=function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+VO(n)},iW=function(e,t,r){let{hidden:n=Be().defaultHidden,name:o,description:i}=r===void 0?{}:r;if(Be()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+VO(o);let s="";Array.from(e.children).forEach(d=>{s+=tO(d,{hidden:n,includeDescription:i!==void 0})});let a;s.length===0?n===!1?a="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":a="There are no available roles.":a=(`
|
|
329
|
+
Here are the `+(n===!1?"accessible":"available")+` roles:
|
|
330
|
+
|
|
331
|
+
`+s.replace(/\n/g,`
|
|
332
|
+
`).replace(/\n\s\s\n/g,`
|
|
333
|
+
|
|
334
|
+
`)+`
|
|
335
|
+
`).trim();let l="";o===void 0?l="":typeof o=="string"?l=' and name "'+o+'"':l=" and name `"+o+"`";let u="";return i===void 0?u="":typeof i=="string"?u=' and description "'+i+'"':u=" and description `"+i+"`",(`
|
|
336
|
+
Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+l+u+`
|
|
337
|
+
|
|
338
|
+
`+a).trim()},UO=_r(ih,ih.name,"queryAll"),[JO,HO,GO,WO,zO]=co(ih,oW,iW),Fy=()=>Be().testIdAttribute,sh=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return uo(t[0]),Li(Fy(),...t)},sW=(e,t)=>"Found multiple elements by: ["+Fy()+'="'+t+'"]',aW=(e,t)=>"Unable to find an element by: ["+Fy()+'="'+t+'"]',KO=_r(sh,sh.name,"queryAll"),[YO,XO,QO,ZO,eP]=co(sh,sW,aW),fc=Object.freeze({__proto__:null,queryAllByLabelText:dO,queryByLabelText:iO,getAllByLabelText:uO,getByLabelText:cO,findAllByLabelText:aO,findByLabelText:lO,queryByPlaceholderText:fO,queryAllByPlaceholderText:pO,getByPlaceholderText:mO,getAllByPlaceholderText:hO,findAllByPlaceholderText:yO,findByPlaceholderText:gO,queryByText:vO,queryAllByText:bO,getByText:TO,getAllByText:EO,findAllByText:_O,findByText:wO,queryByDisplayValue:RO,queryAllByDisplayValue:SO,getByDisplayValue:OO,getAllByDisplayValue:AO,findAllByDisplayValue:PO,findByDisplayValue:CO,queryByAltText:xO,queryAllByAltText:NO,getByAltText:MO,getAllByAltText:IO,findAllByAltText:qO,findByAltText:jO,queryByTitle:DO,queryAllByTitle:kO,getByTitle:FO,getAllByTitle:LO,findAllByTitle:BO,findByTitle:$O,queryByRole:JO,queryAllByRole:UO,getAllByRole:HO,getByRole:GO,findAllByRole:WO,findByRole:zO,queryByTestId:YO,queryAllByTestId:KO,getByTestId:QO,getAllByTestId:XO,findAllByTestId:ZO,findByTestId:eP});function ah(e,t,r){return t===void 0&&(t=fc),r===void 0&&(r={}),Object.keys(t).reduce((n,o)=>{let i=t[o];return n[o]=i.bind(null,e),n},r)}var tP=e=>!e||Array.isArray(e)&&!e.length;function nE(e){if(tP(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.")}async function lW(e,t){let r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){nE(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=()=>n.map(o=>o()).filter(Boolean)}return nE(e()),Dy(()=>{let n;try{n=e()}catch(o){if(o.name==="TestingLibraryElementError")return;throw o}if(!tP(n))throw r},t)}var oE={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}}},iE={doubleClick:"dblClick"};function il(e,t){return Be().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)})}function Lu(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:a,files:l,...u}={}}=s;a!==void 0&&uW(t,a),l!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:l}),Object.assign(t,u);let d=WA(t),p=d[o]||d.Event,f;if(typeof p=="function")f=new p(e,s);else{f=d.document.createEvent(o);let{bubbles:h,cancelable:y,detail:g,...v}=s;f.initEvent(e,h,y,g),Object.keys(v).forEach(b=>{f[b]=v[b]})}return["dataTransfer","clipboardData"].forEach(h=>{let y=s[h];typeof y=="object"&&(typeof d.DataTransfer=="function"?Object.defineProperty(f,h,{value:Object.getOwnPropertyNames(y).reduce((g,v)=>(Object.defineProperty(g,v,{value:y[v]}),g),new d.DataTransfer)}):Object.defineProperty(f,h,{value:y}))}),f}Object.keys(oE).forEach(e=>{let{EventType:t,defaultInit:r}=oE[e],n=e.toLowerCase();Lu[e]=(o,i)=>Lu(n,o,i,{EventType:t,defaultInit:r}),il[e]=(o,i)=>il(o,Lu[e](o,i))});function uW(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")}Object.keys(iE).forEach(e=>{let t=iE[e];il[e]=function(){return il[t](...arguments)}});function cW(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
|
339
|
+
`)}function dW(e){return tG.default.compressToEncodedURIComponent(cW(e))}function pW(e){return"https://testing-playground.com/#markup="+dW(e)}var fW=(e,t,r)=>Array.isArray(e)?e.forEach(n=>Qf(n,t,r)):Qf(e,t,r),hW=function(e){if(e===void 0&&(e=qy().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=pW(e.innerHTML);return console.log(`Open this URL in your browser
|
|
340
|
+
|
|
341
|
+
`+t),t},sE={debug:fW,logTestingPlaygroundURL:hW},mW=typeof document<"u"&&document.body?ah(document.body,fc,sE):Object.keys(fc).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),sE);function Me(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}function zr(e){var t;if(yW(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 ${gW(e)}`)}function yW(e){return e.nodeType===9}function gW(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}function rP(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)})}function By(e,t){let r={...t,length:t.length,item:n=>r[n],[Symbol.iterator]:function*(){for(let n=0;n<r.length;n++)yield r[n]}};return r.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(r,e.FileList.prototype),Object.freeze(r),r}function jo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nP=class{getAsFile(){return this.file}getAsString(e){typeof this.data=="string"&&e(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(e,t){jo(this,"kind",void 0),jo(this,"type",void 0),jo(this,"file",null),jo(this,"data",void 0),typeof e=="string"?(this.kind="string",this.type=String(t),this.data=e):(this.kind="file",this.type=e.type,this.file=e)}},bW=class extends Array{add(...e){let t=new nP(e[0],e[1]);return this.push(t),t}clear(){this.splice(0,this.length)}remove(e){this.splice(e,1)}};function uu(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}function vW(e){return new class{getData(t){var r;let n=(r=this.items.find(uu(t,!0)))!==null&&r!==void 0?r:this.items.find(uu(t,!1)),o="";return n==null||n.getAsString(i=>{o=i}),o}setData(t,r){let n=this.items.findIndex(uu(t,!0)),o=new nP(r,t);n>=0?this.items.splice(n,1,o):this.items.push(o)}clearData(t){if(t){let r=this.items.findIndex(uu(t,!0));r>=0&&this.items.remove(r)}else this.items.clear()}get types(){let t=[];return this.files.length&&t.push("Files"),this.items.forEach(r=>t.push(r.type)),Object.freeze(t),t}setDragImage(){}constructor(){jo(this,"dropEffect","none"),jo(this,"effectAllowed","uninitialized"),jo(this,"items",new bW),jo(this,"files",By(e,[]))}}}function $y(e,t=[]){let r=typeof e.DataTransfer>"u"?vW(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:()=>By(e,t)}),r}async function EW(e,t){return t.kind==="file"?t.getAsFile():new e.Blob([await new Promise(r=>t.getAsString(r))],{type:t.type})}function oP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iP(e,...t){let r=Object.fromEntries(t.map(n=>[typeof n=="string"?"text/plain":n.type,Promise.resolve(n)]));return typeof e.ClipboardItem<"u"?new e.ClipboardItem(r):new class{get types(){return Array.from(Object.keys(this.data))}async getType(n){let o=await this.data[n];if(!o)throw new Error(`${n} is not one of the available MIME types on this item.`);return o instanceof e.Blob?o:new e.Blob([o],{type:n})}constructor(n){oP(this,"data",void 0),this.data=n}}(r)}var Rs=Symbol("Manage ClipboardSub");function aE(e,t){return Object.assign(new class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let r="";for(let n of this.items){let o=n.types.includes("text/plain")?"text/plain":n.types.find(i=>i.startsWith("text/"));o&&(r+=await n.getType(o).then(i=>rP(i,e.FileReader)))}return r}async write(r){this.items=r}async writeText(r){this.items=[iP(e,r)]}constructor(...r){super(...r),oP(this,"items",[])}},{[Rs]:t})}function Vy(e){return!!(e!=null&&e[Rs])}function TW(e){if(Vy(e.navigator.clipboard))return e.navigator.clipboard[Rs];let t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard"),r,n={resetClipboardStub:()=>{r=aE(e,n)},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0})}};return r=aE(e,n),Object.defineProperty(e.navigator,"clipboard",{get:()=>r,configurable:!0}),r[Rs]}function _W(e){Vy(e.navigator.clipboard)&&e.navigator.clipboard[Rs].resetClipboardStub()}function wW(e){Vy(e.navigator.clipboard)&&e.navigator.clipboard[Rs].detachClipboardStub()}async function SW(e){let t=e.defaultView,r=t==null?void 0:t.navigator.clipboard,n=r&&await r.read();if(!n)throw new Error("The Clipboard API is unavailable.");let o=$y(t);for(let i of n)for(let s of i.types)o.setData(s,await i.getType(s).then(a=>rP(a,t.FileReader)));return o}async function sP(e,t){let r=zr(e),n=r.navigator.clipboard,o=[];for(let i=0;i<t.items.length;i++){let s=t.items[i],a=await EW(r,s);o.push(iP(r,a))}if(!(n&&await n.write(o).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}var hc=globalThis;typeof hc.afterEach=="function"&&hc.afterEach(()=>{typeof globalThis.window<"u"&&_W(globalThis.window)});typeof hc.afterAll=="function"&&hc.afterAll(()=>{typeof globalThis.window<"u"&&wW(globalThis.window)});var aP=["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 Uy(e){return e.matches(aP)}function RW(e){return new e.constructor(e.type,e)}function ro(e){for(let r=e;r;r=r.parentElement)if(Me(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if(Me(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}function Vl(e){let t=e.activeElement;return t!=null&&t.shadowRoot?Vl(t.shadowRoot):ro(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function jp(e){var t;return(t=Vl(e))!==null&&t!==void 0?t:e.body}function AW(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}function Ni(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}function sl(e){let t=OW(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}function OW(e){return e.nodeType===1?e:e.parentElement}var lP=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}(lP||{});function uP(e){return Me(e,"button")||Me(e,"input")&&e.type in lP}function As(e){return dP(e)&&!e.readOnly||Ni(e)}var cP=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}(cP||{});function dP(e){return Me(e,"textarea")||Me(e,"input")&&e.type in cP}function Pn(e){return pP(e)&&dP(e)}function PW(e){return pP(e)&&uP(e)}function pP(e){return e.nodeType===1}function CW(e){let t=e.ownerDocument.getSelection();if(t!=null&&t.focusNode&&Pn(e)){let n=sl(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)}}function Os(e,t){return Be().eventWrapper(e)}function Jo(e){let t=AW(e,Uy),r=Vl(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(Os(t?()=>t.focus():()=>r==null?void 0:r.blur()),CW(t??e.ownerDocument.body))}function NW(e){!Uy(e)||Vl(e.ownerDocument)!==e||Os(()=>e.blur())}var Ho={};Ho.click=(e,t,r)=>{let n=t.closest("button,input,label,select,textarea"),o=n&&Me(n,"label")&&n.control;if(o&&o!==t)return()=>{Uy(o)&&(Jo(o),r.dispatchEvent(o,RW(e)))};if(Me(t,"input",{type:"file"}))return()=>{NW(t),t.dispatchEvent(new(zr(t)).Event("fileDialog")),Jo(t)}};var Ps=Symbol("Displayed value in UI"),zn=Symbol("Displayed selection in UI"),mc=Symbol("Initial value to compare on blur");function xW(e){return typeof e=="object"&&Ps in e}function IW(e){return!!e&&typeof e=="object"&&zn in e}function MW(e,t){e[mc]===void 0&&(e[mc]=e.value),e[Ps]=t,e.value=Object.assign(new String(t),{[Ps]:!0})}function Cn(e){return e[Ps]===void 0?e.value:String(e[Ps])}function Jy(e){e[Ps]=void 0}function fP(e){e[mc]=void 0}function qW(e){return e[mc]}function jW(e,t){e[zn]=t}function zs(e,{focusOffset:t,anchorOffset:r=t},n="replace"){let o=Cn(e).length,i=p=>Math.max(0,Math.min(o,p)),s=n==="replace"||e[zn]===void 0?i(r):e[zn].anchorOffset,a=i(t),l=Math.min(s,a),u=Math.max(s,a);if(e[zn]={anchorOffset:s,focusOffset:a},e.selectionStart===l&&e.selectionEnd===u)return;let d=Object.assign(new Number(l),{[zn]:!0});try{e.setSelectionRange(d,u)}catch{}}function al(e){var t,r,n;let o=(n=e[zn])!==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)}}function kW(e){return!!e[zn]}function Fu(e){e[zn]=void 0}var yc=globalThis.parseInt;function DW(e){let t=e.replace(/\D/g,"");if(t.length<2)return e;let r=yc(t[0],10),n=yc(t[1],10);if(r>=3||r===2&&n>=4){let o;return r>=3?o=1:o=2,lE(t,o)}return e.length===2?e:lE(t,2)}function lE(e,t){let r=e.slice(0,t),n=Math.min(yc(r,10),23),o=e.slice(t),i=yc(o,10),s=Math.min(i,59);return`${n.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`}function hP(e,t){let r=e.cloneNode();return r.value=t,r.value===t}var mP=function(e){return e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url",e}(mP||{});function LW(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}function FW(e){return Me(e,"textarea")||Me(e,"input")&&e.type in mP}function yP(e,t,r,n){if(Bu(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};let o=uE(e,t,r);if(o){if(Bu(o))return{node:o,offset:r>0?Math.min(1,o.nodeValue.length):Math.max(o.nodeValue.length-1,0)};if(Me(o,"br")){let i=uE(o,void 0,r);return i?Bu(i)?{node:i,offset:r>0?0:i.nodeValue.length}:r<0&&Me(i,"br")?{node:o.parentNode,offset:cu(o)}:{node:i.parentNode,offset:cu(i)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:o.parentNode,offset:cu(o)}:void 0}else return{node:o.parentNode,offset:cu(o)+(r>0?1:0)}}}function uE(e,t,r){let n=Number(t)+(r<0?-1:0);return t!==void 0&&Hy(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),$W(e,r===1?"next":"previous",BW)}function BW(e){if(Bu(e))return!0;if(Hy(e)){if(Me(e,["input","textarea"]))return e.type!=="hidden";if(Me(e,"br"))return!0}return!1}function cu(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function Hy(e){return e.nodeType===1}function Bu(e){return e.nodeType===3}function $W(e,t,r){for(;;){var n;let o=e[`${t}Sibling`];if(o){if(e=VW(o,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!Hy(e.parentNode)||!Ni(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}function VW(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}var ll=Symbol("Track programmatic changes for React workaround");function UW(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&zr(e).REACT_VERSION===17}function JW(e){UW(e)&&(e[ll]={previousValue:String(e.value),tracked:[]})}function HW(e,t){var r,n;(n=e[ll])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[ll]||(Jy(e),zs(e,{focusOffset:t.length}))}function GW(e,t){var r;let n=e[ll];if(e[ll]=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||Jy(e),kW(e)&&zs(e,{focusOffset:o?t:e.value.length})}function gP(e){let t=WW(e);if(t&&Pn(t))return{type:"input",selection:al(t)};let r=t==null?void 0:t.ownerDocument.getSelection();return{type:sl(e)&&(r!=null&&r.anchorNode)&&sl(r.anchorNode)?"contenteditable":"default",selection:r}}function WW(e){return e.nodeType===1?e:e.parentElement}function zW(e){let t=gP(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)}}function xi({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var o,i;if(gP(e).type==="input")return zs(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)}function bP(e){return Me(e,"input")&&["date","time"].includes(e.type)}function Cs(e,t,r,n="insertText"){let o=zW(t);o&&(!bP(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in o?KW(e,t,o,r,n):YW(e,t,o,r,n)))}function KW(e,t,r,n,o){let i=!1;if(!r.collapsed)i=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(o)){let s=yP(r.startContainer,r.startOffset,o==="deleteContentBackward"?-1:1,o);if(s){i=!0;let a=r.cloneRange();a.comparePoint(s.node,s.offset)<0?a.setStart(s.node,s.offset):a.setEnd(s.node,s.offset),a.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})}function YW(e,t,r,n,o){let i=n;if(FW(t)){let u=LW(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:a,oldValue:l}=XW(i,t,r,o);s===l&&a===r.startOffset&&a===r.endOffset||Me(t,"input",{type:"number"})&&!QW(s)||(MW(t,s),xi({focusNode:t,anchorOffset:a,focusOffset:a}),bP(t)?hP(t,s)&&(cE(e,t,a,{}),e.dispatchUIEvent(t,"change"),fP(t)):cE(e,t,a,{data:n,inputType:o}))}function XW(e,t,{startOffset:r,endOffset:n},o){let i=Cn(t),s=Math.max(0,r===n&&o==="deleteContentBackward"?r-1:r),a=i.substring(0,s),l=Math.min(i.length,r===n&&o==="deleteContentForward"?r+1:n),u=i.substring(l,i.length),d=`${a}${e}${u}`,p=s+e.length;if(Me(t,"input",{type:"time"})){let f=DW(d);f!==""&&hP(t,f)&&(d=f,p=f.length)}return{oldValue:i,newValue:d,newOffset:p}}function cE(e,t,r,n){e.dispatchUIEvent(t,"input",n),GW(t,r)}function QW(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]))}Ho.cut=(e,t,r)=>()=>{As(t)&&Cs(r,t,"","deleteByCut")};function ZW(e){return e?Ni(e)?e.textContent:Cn(e):null}function e2(e){let t=zr(e);for(let r=e;r!=null&&r.ownerDocument;r=r.parentElement){let{display:n,visibility:o}=t.getComputedStyle(r);if(n==="none"||o==="hidden")return!1}return!0}function t2(e,t){let r=e.ownerDocument,n=r.querySelectorAll(aP),o=Array.from(n).filter(l=>l===e||!(Number(l.getAttribute("tabindex"))<0||ro(l)));Number(e.getAttribute("tabindex"))>=0&&o.sort((l,u)=>{let d=Number(l.getAttribute("tabindex")),p=Number(u.getAttribute("tabindex"));return d===p?0:d===0?1:p===0?-1:d-p});let i={},s=[r.body],a=Me(e,"input",{type:"radio"})?e.name:void 0;o.forEach(l=>{let u=l;if(Me(u,"input",{type:"radio"})&&u.name){if(u===e){s.push(u);return}else if(u.name===a)return;if(u.checked){s=s.filter(d=>!Me(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 l=s.findIndex(u=>u===e);;)if(l+=t?-1:1,l===s.length?l=0:l===-1&&(l=s.length-1),s[l]===e||s[l]===r.body||e2(s[l]))return s[l]}function dE(e,t){if(Pn(e)){let r=al(e);xi({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset})}else{let r=e.ownerDocument.getSelection();if(!(r!=null&&r.focusNode))return;if(r.isCollapsed){let n=yP(r.focusNode,r.focusOffset,t);n&&xi({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}function vP(e){if(Pn(e))return xi({focusNode:e,anchorOffset:0,focusOffset:Cn(e).length});var t;let r=(t=sl(e))!==null&&t!==void 0?t:e.ownerDocument.body;xi({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}function r2(e){if(Pn(e))return al(e).startOffset===0&&al(e).endOffset===Cn(e).length;var t;let r=(t=sl(e))!==null&&t!==void 0?t:e.ownerDocument.body,n=e.ownerDocument.getSelection();return(n==null?void 0:n.anchorNode)===r&&n.focusNode===r&&n.anchorOffset===0&&n.focusOffset===r.childNodes.length}function ba(e,t,r){var n;if(Pn(e))return xi({focusNode:e,anchorOffset:t,focusOffset:r});if(Ni(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return xi({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}function du(e,t,r){let n=zr(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(!ro(o[i])){Jo(o[i]),e.dispatchUIEvent(o[i],"click");return}}}Ho.keydown=(e,t,r)=>{var n,o;return(o=(n=pE[e.key])===null||n===void 0?void 0:n.call(pE,e,t,r))!==null&&o!==void 0?o:n2(e,t,r)};var pE={ArrowDown:(e,t,r)=>{if(Me(t,"input",{type:"radio"}))return()=>du(r,t,1)},ArrowLeft:(e,t,r)=>Me(t,"input",{type:"radio"})?()=>du(r,t,-1):()=>dE(t,-1),ArrowRight:(e,t,r)=>Me(t,"input",{type:"radio"})?()=>du(r,t,1):()=>dE(t,1),ArrowUp:(e,t,r)=>{if(Me(t,"input",{type:"radio"}))return()=>du(r,t,-1)},Backspace:(e,t,r)=>{if(As(t))return()=>{Cs(r,t,"","deleteContentBackward")}},Delete:(e,t,r)=>{if(As(t))return()=>{Cs(r,t,"","deleteContentForward")}},End:(e,t)=>{if(Me(t,["input","textarea"])||Ni(t))return()=>{var r,n;let o=(n=(r=ZW(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;ba(t,o,o)}},Home:(e,t)=>{if(Me(t,["input","textarea"])||Ni(t))return()=>{ba(t,0,0)}},PageDown:(e,t)=>{if(Me(t,["input"]))return()=>{let r=Cn(t).length;ba(t,r,r)}},PageUp:(e,t)=>{if(Me(t,["input"]))return()=>{ba(t,0,0)}},Tab:(e,t,r)=>()=>{let n=t2(t,r.system.keyboard.modifiers.Shift);Jo(n),Pn(n)&&zs(n,{anchorOffset:0,focusOffset:n.value.length})}},n2=(e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>vP(t)};Ho.keypress=(e,t,r)=>{if(e.key==="Enter"){if(Me(t,"button")||Me(t,"input")&&o2.includes(t.type)||Me(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if(Me(t,"input")){let n=t.form,o=n==null?void 0:n.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return o?()=>r.dispatchUIEvent(o,"click"):n&&i2.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(As(t)){let n=e.key==="Enter"?Ni(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",o=e.key==="Enter"?`
|
|
342
|
+
`:e.key;return()=>Cs(r,t,o,n)}};var o2=["button","color","file","image","reset","submit"],i2=["email","month","password","search","tel","text","url","week"];Ho.keyup=(e,t,r)=>{var n;return(n=fE[e.key])===null||n===void 0?void 0:n.call(fE,e,t,r)};var fE={" ":(e,t,r)=>{if(uP(t))return()=>r.dispatchUIEvent(t,"click")}};Ho.paste=(e,t,r)=>{if(As(t))return()=>{var n;let o=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");o&&Cs(r,t,o,"insertFromPaste")}};var EP={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 TP(e){return EP[e].EventType}var s2=["MouseEvent","PointerEvent"];function a2(e){return s2.includes(TP(e))}function l2(e){return TP(e)==="KeyboardEvent"}var u2={ClipboardEvent:[d2],Event:[],FocusEvent:[aa,p2],InputEvent:[aa,f2],MouseEvent:[aa,kp,hE],PointerEvent:[aa,kp,hE,m2],KeyboardEvent:[aa,kp,h2]};function _P(e,t,r){let n=zr(t),{EventType:o,defaultInit:i}=EP[e],s=new(c2(n))[o](e,i);var a={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(a[l]=r[l]);return a.view=n,u2[o].forEach(function(u){u(s,a)}),s}function c2(e){var t;let r=(t=e.Event)!==null&&t!==void 0?t:class{};var n;let o=(n=e.AnimationEvent)!==null&&n!==void 0?n:class extends r{};var i;let s=(i=e.ClipboardEvent)!==null&&i!==void 0?i:class extends r{};var a;let l=(a=e.PopStateEvent)!==null&&a!==void 0?a:class extends r{};var u;let d=(u=e.ProgressEvent)!==null&&u!==void 0?u:class extends r{};var p;let f=(p=e.TransitionEvent)!==null&&p!==void 0?p:class extends r{};var h;let y=(h=e.UIEvent)!==null&&h!==void 0?h:class extends r{};var g;let v=(g=e.CompositionEvent)!==null&&g!==void 0?g:class extends y{};var b;let E=(b=e.FocusEvent)!==null&&b!==void 0?b:class extends y{};var T;let A=(T=e.InputEvent)!==null&&T!==void 0?T:class extends y{};var P;let R=(P=e.KeyboardEvent)!==null&&P!==void 0?P:class extends y{};var S;let w=(S=e.MouseEvent)!==null&&S!==void 0?S:class extends y{};var O;let q=(O=e.DragEvent)!==null&&O!==void 0?O:class extends w{};var M;let k=(M=e.PointerEvent)!==null&&M!==void 0?M:class extends w{};var x;let C=(x=e.TouchEvent)!==null&&x!==void 0?x:class extends y{};return{Event:r,AnimationEvent:o,ClipboardEvent:s,PopStateEvent:l,ProgressEvent:d,TransitionEvent:f,UIEvent:y,CompositionEvent:v,FocusEvent:E,InputEvent:A,KeyboardEvent:R,MouseEvent:w,DragEvent:q,PointerEvent:k,TouchEvent:C}}function zo(e,t){for(let[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:()=>n??null})}function gt(e){return Number(e??0)}function d2(e,{clipboardData:t}){zo(e,{clipboardData:t})}function p2(e,{relatedTarget:t}){zo(e,{relatedTarget:t})}function f2(e,{data:t,inputType:r,isComposing:n}){zo(e,{data:t,isComposing:!!n,inputType:String(r)})}function aa(e,{view:t,detail:r}){zo(e,{view:t,detail:gt(r??0)})}function kp(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,modifierAltGraph:i,modifierCapsLock:s,modifierFn:a,modifierFnLock:l,modifierNumLock:u,modifierScrollLock:d,modifierSymbol:p,modifierSymbolLock:f}){zo(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!o,getModifierState(h){return!!{Alt:t,AltGraph:i,CapsLock:s,Control:r,Fn:a,FnLock:l,Meta:n,NumLock:u,ScrollLock:d,Shift:o,Symbol:p,SymbolLock:f}[h]}})}function h2(e,{key:t,code:r,location:n,repeat:o,isComposing:i,charCode:s}){zo(e,{key:String(t),code:String(r),location:gt(n),repeat:!!o,isComposing:!!i,charCode:s})}function hE(e,{x:t,y:r,screenX:n,screenY:o,clientX:i=t,clientY:s=r,button:a,buttons:l,relatedTarget:u,offsetX:d,offsetY:p,pageX:f,pageY:h}){zo(e,{screenX:gt(n),screenY:gt(o),clientX:gt(i),x:gt(i),clientY:gt(s),y:gt(s),button:gt(a),buttons:gt(l),relatedTarget:u,offsetX:gt(d),offsetY:gt(p),pageX:gt(f),pageY:gt(h)})}function m2(e,{pointerId:t,width:r,height:n,pressure:o,tangentialPressure:i,tiltX:s,tiltY:a,twist:l,pointerType:u,isPrimary:d}){zo(e,{pointerId:gt(t),width:gt(r??1),height:gt(n??1),pressure:gt(o),tangentialPressure:gt(i),tiltX:gt(s),tiltY:gt(a),twist:gt(l),pointerType:String(u),isPrimary:!!d})}function y2(e,t,r,n=!1){(a2(t)||l2(t))&&(r={...r,...this.system.getUIEventModifiers()});let o=_P(t,e,r);return wP.call(this,e,o,n)}function wP(e,t,r=!1){var n;let o=t.type,i=r?()=>{}:(n=Ho[o])===null||n===void 0?void 0:n.call(Ho,t,e,this);if(i){t.preventDefault();let s=!1;return Object.defineProperty(t,"defaultPrevented",{get:()=>s}),Object.defineProperty(t,"preventDefault",{value:()=>{s=t.cancelable}}),Os(()=>e.dispatchEvent(t)),s||i(),!s}return Os(()=>e.dispatchEvent(t))}function li(e,t,r){let n=_P(t,e,r);Os(()=>e.dispatchEvent(n))}var mE=Symbol("patched focus/blur methods");function SP(e){if(e.prototype[mE])return;let{focus:t,blur:r}=e.prototype;Object.defineProperties(e.prototype,{focus:{configurable:!0,get:()=>o},blur:{configurable:!0,get:()=>i},[mE]:{configurable:!0,get:()=>({focus:t,blur:r})}});let n;function o(s){if(this.ownerDocument.visibilityState!=="hidden")return t.call(this,s);let a=yE(this.ownerDocument);if(a===this)return;let l=Symbol("focus call");n=l,a&&(r.call(a),li(a,"blur",{relatedTarget:this}),li(a,"focusout",{relatedTarget:n===l?this:null})),n===l&&(t.call(this,s),li(this,"focus",{relatedTarget:a})),n===l&&li(this,"focusin",{relatedTarget:a})}function i(){if(this.ownerDocument.visibilityState!=="hidden")return r.call(this);let s=yE(this.ownerDocument);s===this&&(n=Symbol("blur call"),r.call(this),li(s,"blur",{relatedTarget:null}),li(s,"focusout",{relatedTarget:null}))}}function yE(e){let t=Vl(e);return(t==null?void 0:t.tagName)==="BODY"?null:t}var Dp=Symbol("Interceptor for programmatical calls");function es(e,t,r){let n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=Object.getOwnPropertyDescriptor(e,t),i=n!=null&&n.set?"set":"value";if(typeof(n==null?void 0:n[i])!="function"||n[i][Dp])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function s(...a){let{applyNative:l=!1,realArgs:u,then:d}=r.call(this,...a),p=(!l&&o||n)[i];i==="set"?p.call(this,u):p.call(this,...u),d==null||d()}s[Dp]=Dp,Object.defineProperty(e,t,{...o??n,[i]:s})}function g2(e){es(e,"value",function(t){let r=xW(t);return r&&JW(this),{applyNative:!!r,realArgs:b2(this,t),then:r?void 0:()=>HW(this,String(t))}})}function b2(e,t){return Me(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function v2(e){es(e,"setSelectionRange",function(t,...r){let n=IW(t);return{applyNative:!!n,realArgs:[Number(t),...r],then:()=>n?void 0:Fu(e)}}),es(e,"selectionStart",function(t){return{realArgs:t,then:()=>Fu(e)}}),es(e,"selectionEnd",function(t){return{realArgs:t,then:()=>Fu(e)}}),es(e,"select",function(){return{realArgs:[],then:()=>jW(e,{anchorOffset:0,focusOffset:Cn(e).length})}})}function E2(e){es(e,"setRangeText",function(...t){return{realArgs:t,then:()=>{Jy(e),Fu(e)}}})}var as=Symbol("Node prepared with document state workarounds");function RP(e){e[as]||(e.addEventListener("focus",t=>{let r=t.target;gE(r)},{capture:!0,passive:!0}),e.activeElement&&gE(e.activeElement),e.addEventListener("blur",t=>{let r=t.target,n=qW(r);n!==void 0&&(r.value!==n&&li(r,"change"),fP(r))},{capture:!0,passive:!0}),e[as]=as)}function gE(e){e[as]||(Me(e,["input","textarea"])&&(g2(e),v2(e),E2(e)),e[as]=as)}function T2(e){return _2(e)?e:e.ownerDocument}function _2(e){return e.nodeType===9}var Or=function(e){return e[e.Trigger=2]="Trigger",e[e.Call=1]="Call",e}({});function va(e,t){e.levelRefs[t]={}}function pu(e,t){return e.levelRefs[t]}function Ns(e){let t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}var $u=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 ei(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pn=function(e){return e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD",e}({}),w2=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function bE(e){return w2.includes(e)}var S2=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function vE(e){return S2.includes(e)}var R2=class{isKeyPressed(e){return this.pressed.has(String(e.code))}getPressedKeys(){return this.pressed.values().map(e=>e.keyDef)}async keydown(e,t){let r=String(t.key),n=String(t.code),o=jp(e.config.document);this.setKeydownTarget(o),this.pressed.add(n,t),bE(r)&&(this.modifiers[r]=!0);let i=e.dispatchUIEvent(o,"keydown",{key:r,code:n});vE(r)&&!this.modifiers[r]&&(this.modifiers[r]=!0,this.modifierLockStart[r]=!0),i&&this.pressed.setUnprevented(n),i&&this.hasKeyPress(r)&&e.dispatchUIEvent(jp(e.config.document),"keypress",{key:r,code:n,charCode:t.key==="Enter"?13:String(t.key).charCodeAt(0)})}async keyup(e,t){let r=String(t.key),n=String(t.code),o=this.pressed.isUnprevented(n);this.pressed.delete(n),bE(r)&&!this.pressed.values().find(i=>i.keyDef.key===r)&&(this.modifiers[r]=!1),e.dispatchUIEvent(jp(e.config.document),"keyup",{key:r,code:n},!o),vE(r)&&this.modifiers[r]&&(this.modifierLockStart[r]?this.modifierLockStart[r]=!1:this.modifiers[r]=!1)}setKeydownTarget(e){e!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=e}hasKeyPress(e){return(e.length===1||e==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(e){ei(this,"system",void 0),ei(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}),ei(this,"pressed",new class{add(t,r){var n,o,i;(i=(n=this.registry)[o=t])!==null&&i!==void 0||(n[o]={keyDef:r,unpreventedDefault:!1})}has(t){return!!this.registry[t]}setUnprevented(t){let r=this.registry[t];r&&(r.unpreventedDefault=!0)}isUnprevented(t){var r;return!!(!((r=this.registry[t])===null||r===void 0)&&r.unpreventedDefault)}delete(t){delete this.registry[t]}values(){return Object.values(this.registry)}constructor(){ei(this,"registry",{})}}),ei(this,"carryChar",""),ei(this,"lastKeydownTarget",void 0),ei(this,"modifierLockStart",{}),this.system=e}},A2=[..."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:pn.LEFT},{code:"AltRight",key:"Alt",location:pn.RIGHT},{code:"ShiftLeft",key:"Shift",location:pn.LEFT},{code:"ShiftRight",key:"Shift",location:pn.RIGHT},{code:"ControlLeft",key:"Control",location:pn.LEFT},{code:"ControlRight",key:"Control",location:pn.RIGHT},{code:"MetaLeft",key:"Meta",location:pn.LEFT},{code:"MetaRight",key:"Meta",location:pn.RIGHT},{code:"OSLeft",key:"OS",location:pn.LEFT},{code:"OSRight",key:"OS",location:pn.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"}],O2=[{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 P2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var AP=class{getButtons(){let e=0;for(let t of Object.keys(this.pressed))e|=2**Number(t);return e}down(e){let t=lh(e.button);if(t in this.pressed){this.pressed[t].push(e);return}return this.pressed[t]=[e],t}up(e){let t=lh(e.button);if(t in this.pressed&&(this.pressed[t]=this.pressed[t].filter(r=>r.name!==e.name),this.pressed[t].length===0))return delete this.pressed[t],t}constructor(){P2(this,"pressed",{})}},EE={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function lh(e=0){return e in EE?EE[e]:Number(e)}var TE={1:2,2:1};function uh(e){return e=lh(e),e in TE?TE[e]:e}function C2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var N2=class{get countPressed(){return this.pressedKeys.size}isPressed(e){return this.pressedKeys.has(e.name)}addPressed(e){return this.pressedKeys.add(e.name)}removePressed(e){return this.pressedKeys.delete(e.name)}constructor(){C2(this,"pressedKeys",new Set)}};function Na(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)]}function ch({target:e,node:t,offset:r}){return Pn(e)?{node:e,offset:r??Cn(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:OP(e,r)}function OP(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 OP(i,t,!1);if(i.nodeType===3)return{node:i,offset:t??i.nodeValue.length}}n+=o}return{node:e,offset:e.childNodes.length}}function x2({document:e,target:t,clickCount:r,node:n,offset:o}){if(PW(t))return;let i=Pn(t),s=String(i?Cn(t):t.textContent),[a,l]=n?[o,o]:I2(s,o,r);if(i)return zs(t,{anchorOffset:a??s.length,focusOffset:l??s.length}),{node:t,start:a??0,end:l??s.length};{let{node:u,offset:d}=ch({target:t,node:n,offset:a}),{node:p,offset:f}=ch({target:t,node:n,offset:l}),h=t.ownerDocument.createRange();try{h.setStart(u,d),h.setEnd(p,f)}catch{throw new Error("The given offset is out of bounds.")}let y=e.getSelection();return y==null||y.removeAllRanges(),y==null||y.addRange(h.cloneRange()),h}}function I2(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]}function M2(e,{document:t,target:r,node:n,offset:o}){let i=ch({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,a=i.offset>e.end||i.offset<e.start?i.offset:e.end;zs(e.node,{anchorOffset:s,focusOffset:a})}}else{let s=e.cloneRange(),a=s.comparePoint(i.node,i.offset);a<0?s.setStart(i.node,i.offset):a>0&&s.setEnd(i.node,i.offset);let l=t.getSelection();l==null||l.removeAllRanges(),l==null||l.addRange(s.cloneRange())}}function PP(e,t){var r,n,o,i,s,a,l,u,d,p,f,h,y,g,v,b,E,T,A,P,R,S,w,O;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)!==((a=t.coords)===null||a===void 0?void 0:a.clientX)||((l=e.coords)===null||l===void 0?void 0:l.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)||((f=e.coords)===null||f===void 0?void 0:f.offsetY)!==((h=t.coords)===null||h===void 0?void 0:h.offsetY)||((y=e.coords)===null||y===void 0?void 0:y.pageX)!==((g=t.coords)===null||g===void 0?void 0:g.pageX)||((v=e.coords)===null||v===void 0?void 0:v.pageY)!==((b=t.coords)===null||b===void 0?void 0:b.pageY)||((E=e.coords)===null||E===void 0?void 0:E.screenX)!==((T=t.coords)===null||T===void 0?void 0:T.screenX)||((A=e.coords)===null||A===void 0?void 0:A.screenY)!==((P=t.coords)===null||P===void 0?void 0:P.screenY)||((R=e.caret)===null||R===void 0?void 0:R.node)!==((S=t.caret)===null||S===void 0?void 0:S.node)||((w=e.caret)===null||w===void 0?void 0:w.offset)!==((O=t.caret)===null||O===void 0?void 0:O.offset)}function ti(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var q2=class{move(e,t,r){let n=this.position,o=this.getTarget(e);if(this.position=t,!PP(n,t))return;let i=this.getTarget(e),s=this.getEventInit("mousemove"),[a,l]=Na(o,i);return{leave:()=>{o!==i&&(e.dispatchUIEvent(o,"mouseout",s),a.forEach(u=>e.dispatchUIEvent(u,"mouseleave",s)))},enter:()=>{o!==i&&(e.dispatchUIEvent(i,"mouseover",s),l.forEach(u=>e.dispatchUIEvent(u,"mouseenter",s)))},move:()=>{r||(e.dispatchUIEvent(i,"mousemove",s),this.modifySelecting(e))}}}down(e,t,r){let n=this.buttons.down(t);if(n===void 0)return;let o=this.getTarget(e);this.buttonDownTarget[n]=o;let i=this.getEventInit("mousedown",t.button),s=ro(o);!r&&(s||e.dispatchUIEvent(o,"mousedown",i))&&(this.startSelecting(e,i.detail),Jo(o)),!s&&uh(t.button)===2&&e.dispatchUIEvent(o,"contextmenu",this.getEventInit("contextmenu",t.button))}up(e,t,r){let n=this.buttons.up(t);if(n===void 0)return;let o=this.getTarget(e);if(!ro(o)){if(!r){let s=this.getEventInit("mouseup",t.button);e.dispatchUIEvent(o,"mouseup",s),this.endSelecting()}let i=Na(this.buttonDownTarget[n],o)[2][0];if(i){let s=this.getEventInit("click",t.button);s.detail&&(e.dispatchUIEvent(i,s.button===0?"click":"auxclick",s),s.button===0&&s.detail===2&&e.dispatchUIEvent(i,"dblclick",{...this.getEventInit("dblclick",t.button),detail:s.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(e,t){let r={...this.position.coords};return r.button=uh(t),r.buttons=this.buttons.getButtons(),e==="mousedown"?r.detail=this.clickCount.getOnDown(r.button):e==="mouseup"?r.detail=this.clickCount.getOnUp(r.button):(e==="click"||e==="auxclick")&&(r.detail=this.clickCount.incOnClick(r.button)),r}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}startSelecting(e,t){var r,n;this.selecting=x2({document:e.config.document,target:this.getTarget(e),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,clickCount:t})}modifySelecting(e){var t,r;this.selecting&&M2(this.selecting,{document:e.config.document,target:this.getTarget(e),node:(t=this.position.caret)===null||t===void 0?void 0:t.node,offset:(r=this.position.caret)===null||r===void 0?void 0:r.offset})}endSelecting(){this.selecting=void 0}constructor(){ti(this,"position",{}),ti(this,"buttons",new AP),ti(this,"selecting",void 0),ti(this,"buttonDownTarget",{}),ti(this,"clickCount",new class{incOnClick(e){let t=this.down[e]===void 0?void 0:Number(this.down[e])+1;return this.count=this.count[e]===void 0?{}:{[e]:Number(this.count[e])+1},t}getOnDown(e){var t;this.down={[e]:(t=this.count[e])!==null&&t!==void 0?t:0};var r;return this.count={[e]:(r=this.count[e])!==null&&r!==void 0?r:0},Number(this.count[e])+1}getOnUp(e){return this.down[e]===void 0?void 0:Number(this.down[e])+1}reset(){this.count={}}constructor(){ti(this,"down",{}),ti(this,"count",{})}})}};function gc(e,t){var r;return((r=CP(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}function j2(e){let t=zr(e);for(let r=e,n=[];r!=null&&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}}}var _E=Symbol("Last check for pointer-events");function CP(e,t){let r=t[_E];if(!(e.config.pointerEventsCheck!==$u.Never&&(!r||wE(e.config.pointerEventsCheck,$u.EachApiCall)&&r[Or.Call]!==pu(e,Or.Call)||wE(e.config.pointerEventsCheck,$u.EachTrigger)&&r[Or.Trigger]!==pu(e,Or.Trigger))))return r==null?void 0:r.result;let n=j2(t);return t[_E]={[Or.Call]:pu(e,Or.Call),[Or.Trigger]:pu(e,Or.Trigger),result:n},n}function Ea(e,t){let r=CP(e,t);if((r==null?void 0:r.pointerEvents)==="none")throw new Error([`Unable to perform pointer interaction as the element ${r.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",k2(r.tree)].join(`
|
|
343
|
+
`))}function k2(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,D2(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(`
|
|
344
|
+
`)}function D2(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(Me(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 a;return(a=s.textContent)===null||a===void 0?void 0:a.trim()}).join("|");else if(Me(e,"button")){var i;r=(i=e.textContent)===null||i===void 0?void 0:i.trim()}return r=r==null?void 0:r.replace(/\n/g," "),Number(r==null?void 0:r.length)>30&&(r=`${r==null?void 0:r.substring(0,29)}…`),r?`(label=${r})`:""}function wE(e,t){return(e&t)>0}function Mn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var L2=class{init(e){let t=this.getTarget(e),[,r]=Na(null,t),n=this.getEventInit();return Ea(e,t),e.dispatchUIEvent(t,"pointerover",n),r.forEach(o=>e.dispatchUIEvent(o,"pointerenter",n)),this}move(e,t){let r=this.position,n=this.getTarget(e);if(this.position=t,!PP(r,t))return;let o=this.getTarget(e),i=this.getEventInit(-1),[s,a]=Na(n,o);return{leave:()=>{gc(e,n)&&n!==o&&(e.dispatchUIEvent(n,"pointerout",i),s.forEach(l=>e.dispatchUIEvent(l,"pointerleave",i)))},enter:()=>{Ea(e,o),n!==o&&(e.dispatchUIEvent(o,"pointerover",i),a.forEach(l=>e.dispatchUIEvent(l,"pointerenter",i)))},move:()=>{e.dispatchUIEvent(o,"pointermove",i)}}}down(e,t=0){if(this.isDown)return;let r=this.getTarget(e);Ea(e,r),this.isDown=!0,this.isPrevented=!e.dispatchUIEvent(r,"pointerdown",this.getEventInit(t))}up(e,t=0){if(!this.isDown)return;let r=this.getTarget(e);Ea(e,r),this.isPrevented=!1,this.isDown=!1,e.dispatchUIEvent(r,"pointerup",this.getEventInit(t))}release(e){let t=this.getTarget(e),[r]=Na(t,null),n=this.getEventInit();gc(e,t)&&(e.dispatchUIEvent(t,"pointerout",n),r.forEach(o=>e.dispatchUIEvent(o,"pointerleave",n))),this.isCancelled=!0}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}getEventInit(e){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary,button:uh(e),buttons:this.buttons.getButtons()}}constructor({pointerId:e,pointerType:t,isPrimary:r},n){Mn(this,"pointerId",void 0),Mn(this,"pointerType",void 0),Mn(this,"isPrimary",void 0),Mn(this,"buttons",void 0),Mn(this,"isMultitouch",!1),Mn(this,"isCancelled",!1),Mn(this,"isDown",!1),Mn(this,"isPrevented",!1),Mn(this,"position",{}),this.pointerId=e,this.pointerType=t,this.isPrimary=r,this.isMultitouch=!r,this.buttons=n}};function Eo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var F2=class{isKeyPressed(e){return this.devices.get(e.pointerType).isPressed(e)}async press(e,t,r){this.devices.get(t.pointerType).addPressed(t),this.buttons.down(t);let n=this.getPointerName(t),o=t.pointerType==="touch"?this.pointers.new(n,t.pointerType,this.buttons):this.pointers.get(n);o.position=r,o.pointerType!=="touch"&&(this.mouse.position=r),o.pointerType==="touch"&&o.init(e),o.down(e,t.button),o.pointerType!=="touch"&&this.mouse.down(e,t,o.isPrevented)}async move(e,t,r){let n=this.pointers.get(t),o=n.move(e,r),i=n.pointerType==="touch"?void 0:this.mouse.move(e,r,n.isPrevented);o==null||o.leave(),i==null||i.leave(),o==null||o.enter(),i==null||i.enter(),o==null||o.move(),i==null||i.move()}async release(e,t,r){let n=this.devices.get(t.pointerType);n.removePressed(t),this.buttons.up(t);let o=this.pointers.get(this.getPointerName(t)),i=o.isPrevented;if(o.position=r,o.pointerType!=="touch"&&(this.mouse.position=r),n.countPressed===0&&o.up(e,t.button),o.pointerType==="touch"&&o.release(e),o.pointerType==="touch"&&!o.isMultitouch){let s=this.mouse.move(e,r,i);s==null||s.leave(),s==null||s.enter(),s==null||s.move(),this.mouse.down(e,t,i)}if(!o.isMultitouch){let s=this.mouse.move(e,r,i);s==null||s.leave(),s==null||s.enter(),s==null||s.move(),this.mouse.up(e,t,i)}}getPointerName(e){return e.pointerType==="touch"?e.name:e.pointerType}getPreviousPosition(e){return this.pointers.has(e)?this.pointers.get(e).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(e){var t;return(t=this.mouse.position.target)!==null&&t!==void 0?t:e.config.document.body}setMousePosition(e){this.mouse.position=e,this.pointers.get("mouse").position=e}constructor(e){Eo(this,"system",void 0),Eo(this,"mouse",void 0),Eo(this,"buttons",void 0),Eo(this,"devices",new class{get(t){var r,n,o;return(o=(r=this.registry)[n=t])!==null&&o!==void 0?o:r[n]=new N2}constructor(){Eo(this,"registry",{})}}),Eo(this,"pointers",new class{new(t,r,n){let o=r!=="touch"||!Object.values(this.registry).some(i=>i.pointerType==="touch"&&!i.isCancelled);return o||Object.values(this.registry).forEach(i=>{i.pointerType===r&&!i.isCancelled&&(i.isMultitouch=!0)}),this.registry[t]=new L2({pointerId:this.nextId++,pointerType:r,isPrimary:o},n),this.registry[t]}get(t){if(!this.has(t))throw new Error(`Trying to access pointer "${t}" which does not exist.`);return this.registry[t]}has(t){return t in this.registry}constructor(){Eo(this,"registry",{}),Eo(this,"nextId",1)}}),this.system=e,this.buttons=new AP,this.mouse=new q2,this.pointers.new("mouse","mouse",this.buttons)}};function SE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var NP=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(){SE(this,"keyboard",new R2(this)),SE(this,"pointer",new F2(this))}};async function B2(e){let t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}async function $2(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}async function V2(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}async function U2(e){return this.pointer({target:e})}async function J2(e){return Ea(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function H2({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}var Gy=function(e){return e["{"]="}",e["["]="]",e}(Gy||{});function xP(e,t){let r=0,n=e[r]in Gy?e[r]:"";r+=n.length;let o=new RegExp(`^\\${n}{2}`).test(e)?"":n;return{type:o,...o===""?G2(e,r,t):W2(e,r,o,t)}}function G2(e,t,r){let n=e[t];return IP(n,e,t,r),t+=n.length,{consumedLength:t,descriptor:n,releasePrevious:!1,releaseSelf:!0,repeat:1}}function W2(e,t,r,n){var o,i;let s=e[t]==="/"?"/":"";t+=s.length;let a=r==="{"&&e[t]==="\\";t+=Number(a);let l=a?e[t]:(o=e.slice(t).match(r==="{"?/^\w+|^[^}>/]/:/^\w+/))===null||o===void 0?void 0:o[0];IP(l,e,t,n),t+=l.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 f=Gy[r],h=e[t]===f?f:"";if(!h)throw new Error(MP([!d&&"repeat modifier",!p&&"release modifier",`"${f}"`].filter(Boolean).join(" or "),e[t],e,n));return t+=h.length,{consumedLength:t,descriptor:l,releasePrevious:!!s,repeat:d?Math.max(Number(d.substr(1)),1):1,releaseSelf:z2(p,d)}}function IP(e,t,r,n){if(!e)throw new Error(MP("key descriptor",t[r],t,n))}function z2(e,t){if(e)return e==="/";if(t)return!1}function MP(e,t,r,n){return`Expected ${e} but found "${t??""}" in "${r}"
|
|
345
|
+
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"}
|
|
346
|
+
for more information about how userEvent parses your input.`}function K2(e,t){let r=[];do{let{type:o,descriptor:i,consumedLength:s,releasePrevious:a,releaseSelf:l=!0,repeat:u}=xP(t,"keyboard");var n;let d=(n=e.find(p=>{if(o==="["){var f;return((f=p.code)===null||f===void 0?void 0:f.toLowerCase())===i.toLowerCase()}else if(o==="{"){var h;return((h=p.key)===null||h===void 0?void 0:h.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:a,releaseSelf:l,repeat:u}),t=t.slice(s)}while(t);return r}async function Y2(e){let t=K2(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await Ns(this.config),await X2(this,t[r])}async function X2(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 Ns(e.config);n&&await i.keyboard.keyup(e,t)}}async function Q2(e){for(let t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function qP(e){let t=Pn(e)?{"text/plain":Z2(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=$y(zr(e));for(let n in t)t[n]&&r.setData(n,t[n]);return r}function Z2(e){let t=al(e);return Cn(e).substring(t.startOffset,t.endOffset)}async function ez(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=qP(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await sP(e,n),n}async function tz(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=qP(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await sP(r.ownerDocument,n),n}async function rz(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"?nz(t,e):e)!==null&&o!==void 0?o:await SW(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:i})}function nz(e,t){let r=$y(zr(e));return r.setData("text",t),r}function RE(e,t){let r=[];do{let{descriptor:n,consumedLength:o,releasePrevious:i,releaseSelf:s=!0}=xP(t,"pointer"),a=e.find(l=>l.name===n);a&&r.push({keyDef:a,releasePrevious:i,releaseSelf:s}),t=t.slice(o)}while(t);return r}async function oz(e){let{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...RE(t,n)):"keys"in n?r.push(...RE(t,n.keys).map(o=>({...n,...o}))):r.push(n)});for(let n=0;n<r.length;n++)await Ns(this.config),await iz(this,r[n]);this.system.pointer.resetClickCount()}async function iz(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,a,l,u;let d={target:(s=t.target)!==null&&s!==void 0?s:sz(e,i),coords:(a=t.coords)!==null&&a!==void 0?a:i==null?void 0:i.coords,caret:{node:(l=t.node)!==null&&l!==void 0?l:AE(t)||i==null||(r=i.caret)===null||r===void 0?void 0:r.node,offset:(u=t.offset)!==null&&u!==void 0?u:AE(t)||i==null||(n=i.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(va(e,Or.Trigger),await e.system.pointer.release(e,t.keyDef,d)),t.releasePrevious||(va(e,Or.Trigger),await e.system.pointer.press(e,t.keyDef,d),t.releaseSelf&&(va(e,Or.Trigger),await e.system.pointer.release(e,t.keyDef,d)))):(va(e,Or.Trigger),await e.system.pointer.move(e,o,d))}function AE(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)}function sz(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}async function az(e){if(!As(e)||ro(e))throw new Error("clear()` is only supported on editable elements.");if(Jo(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(vP(e),!r2(e))throw new Error("The element content to be cleared could not be selected.");Cs(this,e,"","deleteContentBackward")}async function lz(e,t){return jP.call(this,!0,e,t)}async function uz(e,t){return jP.call(this,!1,e,t)}async function jP(e,t,r){if(!e&&!t.multiple)throw Be().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(a=>{if(typeof a!="string"&&o.includes(a))return a;{let l=o.find(u=>u.value===a||u.innerHTML===a);if(l)return l;throw Be().getElementError(`Value "${String(a)}" not found in options`,t)}}).filter(a=>!ro(a));if(ro(t)||!i.length)return;let s=a=>{a.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change")};if(Me(t,"select"))if(t.multiple)for(let a of i){let l=this.config.pointerEventsCheck===0?!0:gc(this,a);l&&(this.dispatchUIEvent(a,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(a,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(a,"pointermove"),this.dispatchUIEvent(a,"mousemove"),this.dispatchUIEvent(a,"pointerdown"),this.dispatchUIEvent(a,"mousedown")),Jo(t),l&&(this.dispatchUIEvent(a,"pointerup"),this.dispatchUIEvent(a,"mouseup")),s(a),l&&this.dispatchUIEvent(a,"click"),await Ns(this.config)}else if(i.length===1){let a=this.config.pointerEventsCheck===0?!0:gc(this,t);a?await this.click(t):Jo(t),s(i[0]),a&&(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 Ns(this.config)}else throw Be().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(let a of i)await this.click(a),await this.unhover(a);else throw Be().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}async function cz(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&&ba(e,o,i??o),await this.keyboard(t),n||await Q2(this))}var OE=Symbol("files and value properties are mocked");function Lp(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}function dz(e,t){var r;(r=e[OE])===null||r===void 0||r.restore();let n=Object.getOwnPropertyDescriptor(e,"type"),o=Object.getOwnPropertyDescriptor(e,"value"),i=Object.getOwnPropertyDescriptor(e,"files");function s(){Lp(e,"type",n),Lp(e,"value",o),Lp(e,"files",i)}e[OE]={restore:s},Object.defineProperties(e,{files:{configurable:!0,get:()=>t},value:{configurable:!0,get:()=>t.length?`C:\\fakepath\\${t[0].name}`:"",set(a){if(a==="")s();else{var l;o==null||(l=o.set)===null||l===void 0||l.call(e,a)}}},type:{configurable:!0,get:()=>"file",set(a){a!=="file"&&(s(),e.type=a)}}})}async function pz(e,t){let r=Me(e,"label")?e.control:e;if(!r||!Me(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r==null?void 0:r.tagName} element does not accept file uploads`);if(ro(e))return;let n=(Array.isArray(t)?t:[t]).filter(i=>!this.config.applyAccept||fz(i,r.accept)).slice(0,r.multiple?void 0:1),o=()=>{var i;n.length===((i=r.files)===null||i===void 0?void 0:i.length)&&n.every((s,a)=>{var l;return s===((l=r.files)===null||l===void 0?void 0:l.item(a))})||(dz(r,By(zr(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))};r.addEventListener("fileDialog",o),await this.click(e),r.removeEventListener("fileDialog",o)}function fu(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,"$1jpeg")}function fz(e,t){if(!t)return!0;let r=["audio/*","image/*","video/*"];return fu(t).trim().split(/\s*,\s*/).some(n=>n.startsWith(".")?fu(e.name).endsWith(n):r.includes(n)?fu(e.type).startsWith(n.replace("*","")):fu(e.type)===n)}var PE={click:B2,dblClick:$2,tripleClick:V2,hover:U2,unhover:J2,tab:H2,keyboard:Y2,copy:ez,cut:tz,paste:rz,pointer:oz,clear:az,deselectOptions:uz,selectOptions:lz,type:cz,upload:pz};function hz(e){return Be().asyncWrapper(e)}var kP={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:A2,pointerMap:O2,pointerEventsCheck:$u.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},mz={...kP,writeToClipboard:!0};function DP(e={},t=mz,r){let n=vz(e,r,t);return{...t,...e,document:n}}function yz(e={}){let t=DP(e);RP(t.document),SP(zr(t.document).HTMLElement);var r;let n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return TW(n),Wy(t).api}function ar({keyboardState:e,pointerState:t,...r}={},n){let o=DP(r,kP,n);RP(o.document),SP(zr(o.document).HTMLElement);var i;let s=(i=t??e)!==null&&i!==void 0?i:new NP;return{api:Wy(o,s).api,system:s}}function gz(e){return Wy({...this.config,...e},this.system).api}function bz(e,t){function r(...n){return va(e,Or.Call),hz(()=>t.apply(e,n).then(async o=>(await Ns(e.config),o)))}return Object.defineProperty(r,"name",{get:()=>t.name}),r}function Wy(e,t=new NP){let r={};return Object.assign(r,{config:e,dispatchEvent:wP.bind(r),dispatchUIEvent:y2.bind(r),system:t,levelRefs:{},...PE}),{instance:r,api:{...Object.fromEntries(Object.entries(PE).map(([n,o])=>[n,bz(r,o)])),setup:gz.bind(r)}}}function vz(e,t,r){var n,o;return(o=(n=e.document)!==null&&n!==void 0?n:t&&T2(t))!==null&&o!==void 0?o:r.document}var LP={};wr(LP,{clear:()=>Ez,click:()=>Tz,copy:()=>_z,cut:()=>wz,dblClick:()=>Sz,deselectOptions:()=>Rz,hover:()=>Az,keyboard:()=>Oz,paste:()=>Cz,pointer:()=>Pz,selectOptions:()=>Nz,tab:()=>jz,tripleClick:()=>xz,type:()=>Iz,unhover:()=>Mz,upload:()=>qz});function Ez(e){return ar().api.clear(e)}function Tz(e,t={}){return ar(t,e).api.click(e)}function _z(e={}){return ar(e).api.copy()}function wz(e={}){return ar(e).api.cut()}function Sz(e,t={}){return ar(t).api.dblClick(e)}function Rz(e,t,r={}){return ar(r).api.deselectOptions(e,t)}function Az(e,t={}){return ar(t).api.hover(e)}async function Oz(e,t={}){let{api:r,system:n}=ar(t);return r.keyboard(e).then(()=>n)}async function Pz(e,t={}){let{api:r,system:n}=ar(t);return r.pointer(e).then(()=>n)}function Cz(e,t){return ar(t).api.paste(e)}function Nz(e,t,r={}){return ar(r).api.selectOptions(e,t)}function xz(e,t={}){return ar(t).api.tripleClick(e)}function Iz(e,t,r={}){return ar(r,e).api.type(e,t,r)}function Mz(e,t={}){let{api:r,system:n}=ar(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}function qz(e,t,r={}){return ar(r).api.upload(e,t)}function jz(e={}){return ar().api.tab(e)}var FP={...LP,setup:yz},dh=Il({...NA},{getKeys:e=>Object.keys(e).filter(t=>t!=="eventWrapper"),intercept:(e,t)=>t[0]==="fireEvent"||e.startsWith("find")||e.startsWith("waitFor")});dh.screen=new Proxy(dh.screen,{get(e,t,r){var n,o;return typeof window<"u"&&((o=(n=globalThis.location)==null?void 0:n.href)!=null&&o.includes("viewMode=docs"))&&Et.warn(Le`
|
|
347
|
+
You are using Testing Library's \`screen\` object while the story is rendered in docs mode. This will likely lead to issues, as multiple stories are rendered in the same page and therefore screen will potentially find multiple elements. Use the \`canvas\` utility from the story context instead, which will scope the queries to each story's canvas.
|
|
348
|
+
|
|
349
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas
|
|
350
|
+
`),Reflect.get(e,t,r)}});var{buildQueries:kz,configure:Dz,createEvent:Lz,fireEvent:Fz,findAllByAltText:Bz,findAllByDisplayValue:$z,findAllByLabelText:Vz,findAllByPlaceholderText:Uz,findAllByRole:Jz,findAllByTestId:Hz,findAllByText:Gz,findAllByTitle:Wz,findByAltText:zz,findByDisplayValue:Kz,findByLabelText:Yz,findByPlaceholderText:Xz,findByRole:Qz,findByTestId:Zz,findByText:e6,findByTitle:t6,getAllByAltText:r6,getAllByDisplayValue:n6,getAllByLabelText:o6,getAllByPlaceholderText:i6,getAllByRole:s6,getAllByTestId:a6,getAllByText:l6,getAllByTitle:u6,getByAltText:c6,getByDisplayValue:d6,getByLabelText:p6,getByPlaceholderText:f6,getByRole:h6,getByTestId:m6,getByText:y6,getByTitle:g6,getConfig:b6,getDefaultNormalizer:v6,getElementError:E6,getNodeText:T6,getQueriesForElement:_6,getRoles:w6,getSuggestedQuery:S6,isInaccessible:R6,logDOM:A6,logRoles:O6,prettyDOM:P6,queries:C6,queryAllByAltText:N6,queryAllByAttribute:x6,queryAllByDisplayValue:I6,queryAllByLabelText:M6,queryAllByPlaceholderText:q6,queryAllByRole:j6,queryAllByTestId:k6,queryAllByText:D6,queryAllByTitle:L6,queryByAltText:F6,queryByAttribute:B6,queryByDisplayValue:$6,queryByLabelText:V6,queryByPlaceholderText:U6,queryByRole:J6,queryByTestId:H6,queryByText:G6,queryByTitle:W6,queryHelpers:z6,screen:K6,waitFor:Y6,waitForElementToBeRemoved:X6,within:BP,prettyFormat:Q6}=dh,$P=FP,{userEvent:Z6}=Il({userEvent:FP},{intercept:!0,getKeys:e=>Object.keys(e).filter(t=>t!=="eventWrapper")}),{expect:eK}=Il({expect:wA},{getKeys:(e,t)=>{if("constructor"in e&&e.constructor===B){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)},mutate:!0,intercept:e=>e!=="expect"}),tK={mock:()=>{}},CE=!1,rK=e=>{var r;let{parameters:t}=e;(r=t==null?void 0:t.actions)!=null&&r.disable||CE||(SA((n,o)=>{let i=n.getMockName();i!=="spy"&&i!=="vi.fn()"&&(!/^next\/.*::/.test(i)||["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(s=>i.startsWith(s)))&&Ul(i)(o)}),CE=!0)},nK=[rK],NE=()=>({...qS,...kS}),bc="backgrounds",oK={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:tn}=globalThis,iK=()=>{var e;return globalThis!=null&&globalThis.matchMedia?!!((e=globalThis.matchMedia("(prefers-reduced-motion: reduce)"))!=null&&e.matches):!1},xE=e=>{(Array.isArray(e)?e:[e]).forEach(sK)},sK=e=>{if(!tn)return;let t=tn.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},aK=(e,t)=>{if(!tn)return;let r=tn.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=tn.createElement("style");n.setAttribute("id",e),n.innerHTML=t,tn.head.appendChild(n)}},lK=(e,t,r)=>{var o;if(!tn)return;let n=tn.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let i=tn.createElement("style");i.setAttribute("id",e),i.innerHTML=t;let s=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,a=tn.getElementById(s);a?(o=a.parentElement)==null||o.insertBefore(i,a):tn.head.appendChild(i)}},uK={cellSize:100,cellAmount:10,opacity:.8},IE="addon-backgrounds",ME="addon-backgrounds-grid",cK=iK()?"":"transition: background-color 0.3s;",dK=(e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:i}=t,{options:s=oK,disable:a,grid:l=uK}=n[bc]||{},u=r[bc]||{},d=typeof u=="string"?u:u==null?void 0:u.value,p=d?s[d]:void 0,f=typeof p=="string"?p:(p==null?void 0:p.value)||"transparent",h=typeof u=="string"?!1:u.grid||!1,y=!!p&&!a,g=o==="docs"?`#anchor--${i} .docs-story, #anchor--primary--${i} .docs-story`:".sb-show-main",v=o==="docs"?`#anchor--${i} .docs-story, #anchor--primary--${i} .docs-story`:".sb-show-main",b=n.layout===void 0||n.layout==="padded",E=o==="docs"?20:b?16:0,{cellAmount:T,cellSize:A,opacity:P,offsetX:R=E,offsetY:S=E}=l,w=o==="docs"?`${IE}-docs-${i}`:`${IE}-color`,O=o==="docs"?i:null;Oi(()=>{let M=`
|
|
351
|
+
${g} {
|
|
352
|
+
background: ${f} !important;
|
|
353
|
+
${cK}
|
|
354
|
+
}`;if(!y){xE(w);return}lK(w,M,O)},[g,w,O,y,f]);let q=o==="docs"?`${ME}-docs-${i}`:`${ME}`;return Oi(()=>{if(!h){xE(q);return}let M=[`${A*T}px ${A*T}px`,`${A*T}px ${A*T}px`,`${A}px ${A}px`,`${A}px ${A}px`].join(", "),k=`
|
|
355
|
+
${v} {
|
|
356
|
+
background-size: ${M} !important;
|
|
357
|
+
background-position: ${R}px ${S}px, ${R}px ${S}px, ${R}px ${S}px, ${R}px ${S}px !important;
|
|
358
|
+
background-blend-mode: difference !important;
|
|
359
|
+
background-image: linear-gradient(rgba(130, 130, 130, ${P}) 1px, transparent 1px),
|
|
360
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${P}) 1px, transparent 1px),
|
|
361
|
+
linear-gradient(rgba(130, 130, 130, ${P/2}) 1px, transparent 1px),
|
|
362
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${P/2}) 1px, transparent 1px) !important;
|
|
363
|
+
}
|
|
364
|
+
`;aK(q,k)},[T,A,v,q,h,R,S,P]),e()},H_,pK=(H_=globalThis.FEATURES)!=null&&H_.backgrounds?[dK]:[],fK={[bc]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},hK={[bc]:{value:void 0,grid:!1}},qE=()=>({decorators:pK,parameters:fK,initialGlobals:hK}),{step:mK}=Il({step:async(e,t,r)=>t(r)},{intercept:!0}),jE=()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:mK}),yK=e=>{let t=getComputedStyle(e),r=e.getBoundingClientRect();return!(r.width>0&&r.height>0&&t.visibility!=="hidden"&&Number(t.opacity)>0&&t.display!=="none")},gK=async({reporting:e,canvasElement:t,globals:r})=>{try{if(!r.ghostStories)return;let n=yK(t.firstElementChild??t);n&&e.addReport({type:"render-analysis",version:1,result:{emptyRender:n},status:"warning"})}catch{}},kE=()=>({afterEach:gK}),Rd="storybook/highlight",bK=`${Rd}/add`,vK=`${Rd}/remove`,EK=`${Rd}/reset`,TK=`${Rd}/scroll-into-view`,DE=2147483647,No=28,LE={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"]},_K="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),qt=(e,t={},r)=>{let n=_K.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==null||r.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch{n.appendChild(document.createTextNode(String(o)))}}),n},hu=e=>LE[e]&&qt("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},LE[e].map(t=>qt("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),wK=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}},SK=e=>e instanceof Function,la=new Map,ri=new Map,mu=new Map,qn=e=>{let t=Symbol();return ri.set(t,[]),la.set(t,e),{get:()=>la.get(t),set:r=>{var i;let n=la.get(t),o=SK(r)?r(n):r;o!==n&&(la.set(t,o),(i=ri.get(t))==null||i.forEach(s=>{var a;(a=mu.get(s))==null||a(),mu.set(s,s(o))}))},subscribe:r=>{var n;return(n=ri.get(t))==null||n.push(r),()=>{let o=ri.get(t);o&&ri.set(t,o.filter(i=>i!==r))}},teardown:()=>{var r;(r=ri.get(t))==null||r.forEach(n=>{var o;(o=mu.get(n))==null||o(),mu.delete(n)}),ri.delete(t),la.delete(t)}}},FE=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==null?void 0:t.querySelectorAll(i))||[]];for(let a of s){let l=r.get(a);(!l||l.priority<=o)&&r.set(a,{...n,priority:o,selectors:Array.from(new Set(((l==null?void 0:l.selectors)||[]).concat(i)))})}}}return r},RK=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:s}])=>{let{top:a,left:l,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"?a:a+window.scrollY,left:p==="fixed"?l:l+window.scrollX,width:u,height:d}}).sort((t,r)=>r.width*r.height-t.width*t.height),BE=(e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:o}=t;return(r==null?void 0:r.top)&&(r==null?void 0:r.left)&&n>=r.left&&n<=r.left+r.width&&o>=r.top&&o<=r.top+r.height},$E=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:i,height:s}=e;s<No&&(o=o-Math.round((No-s)/2),s=No),i<No&&(n=n-Math.round((No-i)/2),i=No),t.style.position==="fixed"&&(n+=window.scrollX,o+=window.scrollY);let{x:a,y:l}=r;return a>=n&&a<=n+i&&l>=o&&l<=o+s},AK=(e,t,r={})=>{let{x:n,y:o}=t,{margin:i=5,topOffset:s=0,centered:a=!1}=r,{scrollX:l,scrollY:u,innerHeight:d,innerWidth:p}=window,f=Math.min(e.style.position==="fixed"?o-u:o,d-e.clientHeight-i-s+u),h=a?e.clientWidth/2:0,y=e.style.position==="fixed"?Math.max(Math.min(n-l,p-h-i),h+i):Math.max(Math.min(n,p-h-i+l),h+i+l);Object.assign(e.style,{...y!==n&&{left:`${y}px`},...f!==o&&{top:`${f}px`}})},VE=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},OK=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},PK=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}}),st="storybook-highlights-menu",UE="storybook-highlights-root",CK="storybook-root",NK=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=qn([]),n=qn(new Map),o=qn([]),i=qn(),s=qn(),a=qn([]),l=qn([]),u=qn(),d=qn(),p=t.getElementById(UE);r.subscribe(()=>{p||(p=qt("div",{id:UE}),t.body.appendChild(p))}),r.subscribe(S=>{let w=t.getElementById(CK);if(!w)return;n.set(FE(S));let O=new MutationObserver(()=>n.set(FE(S)));return O.observe(w,{subtree:!0,childList:!0}),()=>{O.disconnect()}}),n.subscribe(S=>{let w=()=>requestAnimationFrame(()=>o.set(RK(S))),O=new ResizeObserver(w);O.observe(t.body),Array.from(S.keys()).forEach(M=>O.observe(M));let q=Array.from(t.body.querySelectorAll("*")).filter(M=>{let{overflow:k,overflowX:x,overflowY:C}=window.getComputedStyle(M);return["auto","scroll"].some(j=>[k,x,C].includes(j))});return q.forEach(M=>M.addEventListener("scroll",w)),()=>{O.disconnect(),q.forEach(M=>M.removeEventListener("scroll",w))}}),n.subscribe(S=>{let w=Array.from(S.keys()).filter(({style:q})=>q.position==="sticky"),O=()=>requestAnimationFrame(()=>{o.set(q=>q.map(M=>{if(w.includes(M.element)){let{top:k,left:x}=M.element.getBoundingClientRect();return{...M,top:k+window.scrollY,left:x+window.scrollX}}return M}))});return t.addEventListener("scroll",O),()=>t.removeEventListener("scroll",O)}),n.subscribe(S=>{a.set(w=>w.filter(({element:O})=>S.has(O)))}),a.subscribe(S=>{S.length?(d.set(w=>S.some(O=>O.element===(w==null?void 0:w.element))?w:void 0),u.set(w=>S.some(O=>O.element===(w==null?void 0:w.element))?w:void 0)):(d.set(void 0),u.set(void 0),i.set(void 0))});let f=new Map(new Map);r.subscribe(S=>{S.forEach(({keyframes:w})=>{if(w){let O=f.get(w);O||(O=t.createElement("style"),O.setAttribute("data-highlight","keyframes"),f.set(w,O),t.head.appendChild(O)),O.innerHTML=w}}),f.forEach((w,O)=>{S.some(q=>q.keyframes===O)||(w.remove(),f.delete(O))})});let h=new Map(new Map);o.subscribe(S=>{S.forEach(w=>{let O=h.get(w.element);if(p&&!O){let q={popover:"manual","data-highlight-dimensions":`w${w.width.toFixed(0)}h${w.height.toFixed(0)}`,"data-highlight-coordinates":`x${w.left.toFixed(0)}y${w.top.toFixed(0)}`};O=p.appendChild(qt("div",q,[qt("div")])),h.set(w.element,O)}}),h.forEach((w,O)=>{S.some(({element:q})=>q===O)||(w.remove(),h.delete(O))})}),o.subscribe(S=>{let w=S.filter(q=>q.menu);if(!w.length)return;let O=q=>{requestAnimationFrame(()=>{let M=t.getElementById(st),k={x:q.pageX,y:q.pageY};if(M&&!BE(M,k)){let x=w.filter(C=>{let j=h.get(C.element);return $E(C,j,k)});i.set(x.length?k:void 0),a.set(x)}})};return t.addEventListener("click",O),()=>t.removeEventListener("click",O)});let y=()=>{let S=t.getElementById(st),w=s.get();!w||S&&BE(S,w)||l.set(O=>{let q=o.get().filter(C=>{let j=h.get(C.element);return $E(C,j,w)}),M=O.filter(C=>q.includes(C)),k=q.filter(C=>!O.includes(C)),x=O.length-M.length;return k.length||x?[...M,...k]:O})};s.subscribe(y),o.subscribe(y);let g=()=>{let S=d.get(),w=S?[S]:a.get(),O=w.length===1?w[0]:u.get(),q=i.get()!==void 0;o.get().forEach(M=>{var x;let k=h.get(M.element);if(k){let C=O===M,j=q?O?C:w.includes(M):(x=l.get())==null?void 0:x.includes(M);Object.assign(k.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...M.styles,...j?M.hoverStyles:{},...C?M.focusStyles:{},position:getComputedStyle(M.element).position==="fixed"?"fixed":"absolute",zIndex:DE-10,top:`${M.top}px`,left:`${M.left}px`,width:`${M.width}px`,height:`${M.height}px`,margin:0,padding:0,cursor:M.menu&&j?"pointer":"default",pointerEvents:M.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(k.children[0].style,{width:"100%",height:"100%",minHeight:`${No}px`,minWidth:`${No}px`,boxSizing:"content-box",padding:k.style.outlineWidth||"0px"}),VE(k)}})};o.subscribe(g),a.subscribe(g),l.subscribe(g),u.subscribe(g),d.subscribe(g);let v=()=>{var M;if(!p)return;let S=t.getElementById(st);if(S)S.innerHTML="";else{let k={id:st,popover:"manual"};S=p.appendChild(qt("div",k)),p.appendChild(qt("style",{},[`
|
|
365
|
+
#${st} {
|
|
366
|
+
position: absolute;
|
|
367
|
+
z-index: ${DE};
|
|
368
|
+
width: 300px;
|
|
369
|
+
padding: 0px;
|
|
370
|
+
margin: 15px 0 0 0;
|
|
371
|
+
transform: translateX(-50%);
|
|
372
|
+
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
373
|
+
font-size: 12px;
|
|
374
|
+
background: white;
|
|
375
|
+
border: none;
|
|
376
|
+
border-radius: 6px;
|
|
377
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
|
|
378
|
+
color: #2E3438;
|
|
379
|
+
}
|
|
380
|
+
#${st} ul {
|
|
381
|
+
list-style: none;
|
|
382
|
+
margin: 0;
|
|
383
|
+
padding: 0;
|
|
384
|
+
}
|
|
385
|
+
#${st} > ul {
|
|
386
|
+
max-height: 300px;
|
|
387
|
+
overflow-y: auto;
|
|
388
|
+
padding: 4px 0;
|
|
389
|
+
}
|
|
390
|
+
#${st} li {
|
|
391
|
+
padding: 0 4px;
|
|
392
|
+
margin: 0;
|
|
393
|
+
}
|
|
394
|
+
#${st} li > :not(ul) {
|
|
395
|
+
display: flex;
|
|
396
|
+
padding: 8px;
|
|
397
|
+
margin: 0;
|
|
398
|
+
align-items: center;
|
|
399
|
+
gap: 8px;
|
|
400
|
+
border-radius: 4px;
|
|
401
|
+
}
|
|
402
|
+
#${st} button {
|
|
403
|
+
width: 100%;
|
|
404
|
+
border: 0;
|
|
405
|
+
background: transparent;
|
|
406
|
+
color: inherit;
|
|
407
|
+
text-align: left;
|
|
408
|
+
font-family: inherit;
|
|
409
|
+
font-size: inherit;
|
|
410
|
+
}
|
|
411
|
+
#${st} button:focus-visible {
|
|
412
|
+
outline-color: #029CFD;
|
|
413
|
+
}
|
|
414
|
+
#${st} button:hover {
|
|
415
|
+
background: rgba(2, 156, 253, 0.07);
|
|
416
|
+
color: #029CFD;
|
|
417
|
+
cursor: pointer;
|
|
418
|
+
}
|
|
419
|
+
#${st} li code {
|
|
420
|
+
white-space: nowrap;
|
|
421
|
+
overflow: hidden;
|
|
422
|
+
text-overflow: ellipsis;
|
|
423
|
+
line-height: 16px;
|
|
424
|
+
font-size: 11px;
|
|
425
|
+
}
|
|
426
|
+
#${st} li svg {
|
|
427
|
+
flex-shrink: 0;
|
|
428
|
+
margin: 1px;
|
|
429
|
+
color: #73828C;
|
|
430
|
+
}
|
|
431
|
+
#${st} li > button:hover svg, #${st} li > button:focus-visible svg {
|
|
432
|
+
color: #029CFD;
|
|
433
|
+
}
|
|
434
|
+
#${st} .element-list li svg {
|
|
435
|
+
display: none;
|
|
436
|
+
}
|
|
437
|
+
#${st} li.selectable svg, #${st} li.selected svg {
|
|
438
|
+
display: block;
|
|
439
|
+
}
|
|
440
|
+
#${st} .menu-list {
|
|
441
|
+
border-top: 1px solid rgba(38, 85, 115, 0.15);
|
|
442
|
+
}
|
|
443
|
+
#${st} .menu-list > li:not(:last-child) {
|
|
444
|
+
padding-bottom: 4px;
|
|
445
|
+
margin-bottom: 4px;
|
|
446
|
+
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
|
|
447
|
+
}
|
|
448
|
+
#${st} .menu-items, #${st} .menu-items li {
|
|
449
|
+
padding: 0;
|
|
450
|
+
}
|
|
451
|
+
#${st} .menu-item {
|
|
452
|
+
display: flex;
|
|
453
|
+
}
|
|
454
|
+
#${st} .menu-item-content {
|
|
455
|
+
display: flex;
|
|
456
|
+
flex-direction: column;
|
|
457
|
+
flex-grow: 1;
|
|
458
|
+
}
|
|
459
|
+
`]))}let w=d.get(),O=w?[w]:a.get();if(O.length&&(S.style.position=getComputedStyle(O[0].element).position==="fixed"?"fixed":"absolute",S.appendChild(qt("ul",{class:"element-list"},O.map(k=>{var F;let x=O.length>1&&!!((F=k.menu)!=null&&F.some(V=>V.some(G=>!G.selectors||G.selectors.some(se=>k.selectors.includes(se))))),C=x?{class:"selectable",onClick:()=>d.set(k),onMouseEnter:()=>u.set(k),onMouseLeave:()=>u.set(void 0)}:w?{class:"selected",onClick:()=>d.set(void 0)}:{},j=x||w;return qt("li",C,[qt(j?"button":"div",j?{type:"button"}:{},[w?hu("chevronLeft"):null,qt("code",{},[k.element.outerHTML]),x?hu("chevronRight"):null])])})))),d.get()||a.get().length===1){let k=d.get()||a.get()[0],x=(M=k.menu)==null?void 0:M.filter(C=>C.some(j=>!j.selectors||j.selectors.some(F=>k.selectors.includes(F))));x!=null&&x.length&&S.appendChild(qt("ul",{class:"menu-list"},x.map(C=>qt("li",{},[qt("ul",{class:"menu-items"},C.map(({id:j,title:F,description:V,iconLeft:G,iconRight:se,clickEvent:me})=>{let be=me&&(()=>e.emit(me,j,PK(k)));return qt("li",{},[qt(be?"button":"div",be?{class:"menu-item",type:"button",onClick:be}:{class:"menu-item"},[G?hu(G):null,qt("div",{class:"menu-item-content"},[qt(V?"strong":"span",{},[F]),V&&qt("span",{},[V])]),se?hu(se):null])])}))]))))}let q=i.get();q?(Object.assign(S.style,{display:"block",left:`${S.style.position==="fixed"?q.x-window.scrollX:q.x}px`,top:`${S.style.position==="fixed"?q.y-window.scrollY:q.y}px`}),VE(S),requestAnimationFrame(()=>AK(S,q,{topOffset:15,centered:!0}))):(OK(S),Object.assign(S.style,{display:"none"}))};a.subscribe(v),d.subscribe(v);let b=S=>{let w=wK(S);r.set(O=>{var M;let q=w.id?O.filter(k=>k.id!==w.id):O;return(M=w.selectors)!=null&&M.length?[...q,w]:q})},E=S=>{S&&r.set(w=>w.filter(O=>O.id!==S))},T=()=>{r.set([]),n.set(new Map),o.set([]),i.set(void 0),s.set(void 0),a.set([]),l.set([]),u.set(void 0),d.set(void 0)},A,P=(S,w)=>{let O="scrollIntoView-highlight";clearTimeout(A),E(O);let q=t.querySelector(S);if(!q){console.warn(`Cannot scroll into view: ${S} not found`);return}q.scrollIntoView({behavior:"smooth",block:"center",...w});let M=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(k=>[...k,{id:O,priority:1e3,selectors:[S],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${M} 3s linear forwards`},keyframes:`@keyframes ${M} {
|
|
460
|
+
0% { outline: 2px solid #1EA7FD; }
|
|
461
|
+
20% { outline: 2px solid #1EA7FD00; }
|
|
462
|
+
40% { outline: 2px solid #1EA7FD; }
|
|
463
|
+
60% { outline: 2px solid #1EA7FD00; }
|
|
464
|
+
80% { outline: 2px solid #1EA7FD; }
|
|
465
|
+
100% { outline: 2px solid #1EA7FD00; }
|
|
466
|
+
}`}]),A=setTimeout(()=>E(O),3500)},R=S=>{requestAnimationFrame(()=>s.set({x:S.pageX,y:S.pageY}))};t.body.addEventListener("mousemove",R),e.on(bK,b),e.on(vK,E),e.on(EK,T),e.on(TK,P),e.on(Ai,({newPhase:S})=>{S==="loading"&&T()})},G_;(G_=globalThis==null?void 0:globalThis.FEATURES)!=null&&G_.highlight&&(vr!=null&&vr.ready)&&vr.ready().then(NK);var JE=()=>({}),xK="measureEnabled";function VP(){let e=ge.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function IK(){let e=ge.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");Yn(t!=null);let{width:r,height:n}=VP();return ph(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",ge.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function ph(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=ge.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}var jt={};function MK(){jt.canvas||(jt=IK())}function UP(){jt.context&&jt.context.clearRect(0,0,jt.width??0,jt.height??0)}function qK(e){UP(),e(jt.context)}function jK(){Yn(jt.canvas),Yn(jt.context),ph(jt.canvas,jt.context,{width:0,height:0});let{width:e,height:t}=VP();ph(jt.canvas,jt.context,{width:e,height:t}),jt.width=e,jt.height=t}function kK(){var e;jt.canvas&&(UP(),(e=jt.canvas.parentNode)==null||e.removeChild(jt.canvas),jt={})}var Hi={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},Kn=6;function HE(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()}function DK(e,{padding:t,border:r,width:n,height:o,top:i,left:s}){let a=n-r.left-r.right-t.left-t.right,l=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+=a/2:e==="right"?(u+=a,d+=l/2):e==="bottom"?(u+=a/2,d+=l):e==="left"?d+=l/2:e==="center"&&(u+=a/2,d+=l/2),{x:u,y:d}}function LK(e,t,{margin:r,border:n,padding:o},i,s){let a=f=>0,l=0,u=0,d=s?1:.5,p=s?i*2:0;return e==="padding"?a=f=>o[f]*d+p:e==="border"?a=f=>o[f]+n[f]*d+p:e==="margin"&&(a=f=>o[f]+n[f]+r[f]*d+p),t==="top"?u=-a("top"):t==="right"?l=a("right"):t==="bottom"?u=a("bottom"):t==="left"&&(l=-a("left")),{offsetX:l,offsetY:u}}function FK(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}function BK(e,t,r){return e==="top"?t.y=r.y-r.h-Kn:e==="right"?t.x=r.x+r.w/2+Kn+t.w/2:e==="bottom"?t.y=r.y+r.h+Kn:e==="left"&&(t.x=r.x-r.w/2-Kn-t.w/2),{x:t.x,y:t.y}}function JP(e,t,{x:r,y:n,w:o,h:i},s){return HE(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${Hi[t]}dd`,e.fill(),e.strokeStyle=Hi[t],e.stroke(),e.fillStyle=Hi.text,e.fillText(s,r,n),HE(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${Hi[t]}dd`,e.fill(),e.strokeStyle=Hi[t],e.stroke(),e.fillStyle=Hi.text,e.fillText(s,r,n),{x:r,y:n,w:o,h:i}}function HP(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+Kn*2,i=n+Kn*2;return{w:o,h:i}}function $K(e,t,{type:r,position:n="center",text:o},i,s=!1){let{x:a,y:l}=DK(n,t),{offsetX:u,offsetY:d}=LK(r,n,t,Kn+1,s);a+=u,l+=d;let{w:p,h:f}=HP(e,o);if(i&&FK({x:a,y:l,w:p,h:f},i)){let h=BK(n,{x:a,y:l,w:p},i);a=h.x,l=h.y}return JP(e,r,{x:a,y:l,w:p,h:f},o)}function VK(e,{w:t,h:r}){let n=t*.5+Kn,o=r*.5+Kn;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}function UK(e,t,{type:r,text:n}){let{floatingAlignment:o,extremities:i}=t,s=i[o.x],a=i[o.y],{w:l,h:u}=HP(e,n),{offsetX:d,offsetY:p}=VK(o,{w:l,h:u});return s+=d,a+=p,JP(e,r,{x:s,y:a,w:l,h:u},n)}function ua(e,t,r,n){let o=[];r.forEach((i,s)=>{let a=n&&i.position==="center"?UK(e,t,i):$K(e,t,i,o[s-1],n);o[s]=a})}function JK(e,t,r,n){let o=r.reduce((i,s)=>{var a;return Object.prototype.hasOwnProperty.call(i,s.position)||(i[s.position]=[]),(a=i[s.position])==null||a.push(s),i},{});o.top&&ua(e,t,o.top,n),o.right&&ua(e,t,o.right,n),o.bottom&&ua(e,t,o.bottom,n),o.left&&ua(e,t,o.left,n),o.center&&ua(e,t,o.center,n)}var Ad={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},GE=30;function Dr(e){return parseInt(e.replace("px",""),10)}function ts(e){return Number.isInteger(e)?e:e.toFixed(2)}function zy(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function HK(e){let t={top:ge.window.scrollY,bottom:ge.window.scrollY+ge.window.innerHeight,left:ge.window.scrollX,right:ge.window.scrollX+ge.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"}}function GK(e){let t=ge.getComputedStyle(e),{top:r,left:n,right:o,bottom:i,width:s,height:a}=e.getBoundingClientRect(),{marginTop:l,marginBottom:u,marginLeft:d,marginRight:p,paddingTop:f,paddingBottom:h,paddingLeft:y,paddingRight:g,borderBottomWidth:v,borderTopWidth:b,borderLeftWidth:E,borderRightWidth:T}=t;r=r+ge.window.scrollY,n=n+ge.window.scrollX,i=i+ge.window.scrollY,o=o+ge.window.scrollX;let A={top:Dr(l),bottom:Dr(u),left:Dr(d),right:Dr(p)},P={top:Dr(f),bottom:Dr(h),left:Dr(y),right:Dr(g)},R={top:Dr(b),bottom:Dr(v),left:Dr(E),right:Dr(T)},S={top:r-A.top,bottom:i+A.bottom,left:n-A.left,right:o+A.right};return{margin:A,padding:P,border:R,top:r,left:n,bottom:i,right:o,width:s,height:a,extremities:S,floatingAlignment:HK(S)}}function WK(e,{margin:t,width:r,height:n,top:o,left:i,bottom:s,right:a}){let l=n+t.bottom+t.top;e.fillStyle=Ad.margin,e.fillRect(i,o-t.top,r,t.top),e.fillRect(a,o-t.top,t.right,l),e.fillRect(i,s,r,t.bottom),e.fillRect(i-t.left,o-t.top,t.left,l);let u=[{type:"margin",text:ts(t.top),position:"top"},{type:"margin",text:ts(t.right),position:"right"},{type:"margin",text:ts(t.bottom),position:"bottom"},{type:"margin",text:ts(t.left),position:"left"}];return zy(u)}function zK(e,{padding:t,border:r,width:n,height:o,top:i,left:s,bottom:a,right:l}){let u=n-r.left-r.right,d=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=Ad.padding,e.fillRect(s+r.left,i+r.top,u,t.top),e.fillRect(l-t.right-r.right,i+t.top+r.top,t.right,d),e.fillRect(s+r.left,a-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 zy(p)}function KK(e,{border:t,width:r,height:n,top:o,left:i,bottom:s,right:a}){let l=n-t.top-t.bottom;e.fillStyle=Ad.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,l),e.fillRect(a-t.right,o+t.top,t.right,l);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 zy(u)}function YK(e,{padding:t,border:r,width:n,height:o,top:i,left:s}){let a=n-r.left-r.right-t.left-t.right,l=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=Ad.content,e.fillRect(s+r.left+t.left,i+r.top+t.top,a,l),[{type:"content",position:"center",text:`${ts(a)} x ${ts(l)}`}]}function XK(e){return t=>{if(e&&t){let r=GK(e),n=WK(t,r),o=zK(t,r),i=KK(t,r),s=YK(t,r),a=r.width<=GE*3||r.height<=GE;JK(t,r,[...s,...o,...i,...n],a)}}}function QK(e){qK(XK(e))}var ZK=(e,t)=>{let r=ge.document.elementFromPoint(e,t),n=o=>{if(o&&o.shadowRoot){let i=o.shadowRoot.elementFromPoint(e,t);return o.isEqualNode(i)?o:i.shadowRoot?n(i):i}return o};return n(r)||r},WE,yu={x:0,y:0};function zE(e,t){WE=ZK(e,t),QK(WE)}var e5=(e,t)=>{let{measureEnabled:r}=t.globals||{};return Oi(()=>{if(typeof globalThis.document>"u")return;let n=o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),yu.x=o.clientX,yu.y=o.clientY})};return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),Oi(()=>{let n=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),zE(i.clientX,i.clientY)})},o=()=>{window.requestAnimationFrame(()=>{jK()})};return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),MK(),globalThis.window.addEventListener("resize",o),zE(yu.x,yu.y)),()=>{globalThis.window.removeEventListener("resize",o),kK()}},[r,t.viewMode]),e()},W_,t5=(W_=globalThis.FEATURES)!=null&&W_.measure?[e5]:[],r5={[xK]:!1},KE=()=>({decorators:t5,initialGlobals:r5}),GP="outline",YE=e=>{(Array.isArray(e)?e:[e]).forEach(n5)},n5=e=>{let t=typeof e=="string"?e:e.join(""),r=ge.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},o5=(e,t)=>{let r=ge.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=ge.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,ge.document.head.appendChild(n)}};function i5(e){return Le`
|
|
467
|
+
${e} body {
|
|
468
|
+
outline: 1px solid #2980b9 !important;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
${e} article {
|
|
472
|
+
outline: 1px solid #3498db !important;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
${e} nav {
|
|
476
|
+
outline: 1px solid #0088c3 !important;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
${e} aside {
|
|
480
|
+
outline: 1px solid #33a0ce !important;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
${e} section {
|
|
484
|
+
outline: 1px solid #66b8da !important;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
${e} header {
|
|
488
|
+
outline: 1px solid #99cfe7 !important;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
${e} footer {
|
|
492
|
+
outline: 1px solid #cce7f3 !important;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
${e} h1 {
|
|
496
|
+
outline: 1px solid #162544 !important;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
${e} h2 {
|
|
500
|
+
outline: 1px solid #314e6e !important;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
${e} h3 {
|
|
504
|
+
outline: 1px solid #3e5e85 !important;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
${e} h4 {
|
|
508
|
+
outline: 1px solid #449baf !important;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
${e} h5 {
|
|
512
|
+
outline: 1px solid #c7d1cb !important;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
${e} h6 {
|
|
516
|
+
outline: 1px solid #4371d0 !important;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
${e} main {
|
|
520
|
+
outline: 1px solid #2f4f90 !important;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
${e} address {
|
|
524
|
+
outline: 1px solid #1a2c51 !important;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
${e} div {
|
|
528
|
+
outline: 1px solid #036cdb !important;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
${e} p {
|
|
532
|
+
outline: 1px solid #ac050b !important;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
${e} hr {
|
|
536
|
+
outline: 1px solid #ff063f !important;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
${e} pre {
|
|
540
|
+
outline: 1px solid #850440 !important;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
${e} blockquote {
|
|
544
|
+
outline: 1px solid #f1b8e7 !important;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
${e} ol {
|
|
548
|
+
outline: 1px solid #ff050c !important;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
${e} ul {
|
|
552
|
+
outline: 1px solid #d90416 !important;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
${e} li {
|
|
556
|
+
outline: 1px solid #d90416 !important;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
${e} dl {
|
|
560
|
+
outline: 1px solid #fd3427 !important;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
${e} dt {
|
|
564
|
+
outline: 1px solid #ff0043 !important;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
${e} dd {
|
|
568
|
+
outline: 1px solid #e80174 !important;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
${e} figure {
|
|
572
|
+
outline: 1px solid #ff00bb !important;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
${e} figcaption {
|
|
576
|
+
outline: 1px solid #bf0032 !important;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
${e} table {
|
|
580
|
+
outline: 1px solid #00cc99 !important;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
${e} caption {
|
|
584
|
+
outline: 1px solid #37ffc4 !important;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
${e} thead {
|
|
588
|
+
outline: 1px solid #98daca !important;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
${e} tbody {
|
|
592
|
+
outline: 1px solid #64a7a0 !important;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
${e} tfoot {
|
|
596
|
+
outline: 1px solid #22746b !important;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
${e} tr {
|
|
600
|
+
outline: 1px solid #86c0b2 !important;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
${e} th {
|
|
604
|
+
outline: 1px solid #a1e7d6 !important;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
${e} td {
|
|
608
|
+
outline: 1px solid #3f5a54 !important;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
${e} col {
|
|
612
|
+
outline: 1px solid #6c9a8f !important;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
${e} colgroup {
|
|
616
|
+
outline: 1px solid #6c9a9d !important;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
${e} button {
|
|
620
|
+
outline: 1px solid #da8301 !important;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
${e} datalist {
|
|
624
|
+
outline: 1px solid #c06000 !important;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
${e} fieldset {
|
|
628
|
+
outline: 1px solid #d95100 !important;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
${e} form {
|
|
632
|
+
outline: 1px solid #d23600 !important;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
${e} input {
|
|
636
|
+
outline: 1px solid #fca600 !important;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
${e} keygen {
|
|
640
|
+
outline: 1px solid #b31e00 !important;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
${e} label {
|
|
644
|
+
outline: 1px solid #ee8900 !important;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
${e} legend {
|
|
648
|
+
outline: 1px solid #de6d00 !important;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
${e} meter {
|
|
652
|
+
outline: 1px solid #e8630c !important;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
${e} optgroup {
|
|
656
|
+
outline: 1px solid #b33600 !important;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
${e} option {
|
|
660
|
+
outline: 1px solid #ff8a00 !important;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
${e} output {
|
|
664
|
+
outline: 1px solid #ff9619 !important;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
${e} progress {
|
|
668
|
+
outline: 1px solid #e57c00 !important;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
${e} select {
|
|
672
|
+
outline: 1px solid #e26e0f !important;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
${e} textarea {
|
|
676
|
+
outline: 1px solid #cc5400 !important;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
${e} details {
|
|
680
|
+
outline: 1px solid #33848f !important;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
${e} summary {
|
|
684
|
+
outline: 1px solid #60a1a6 !important;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
${e} command {
|
|
688
|
+
outline: 1px solid #438da1 !important;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
${e} menu {
|
|
692
|
+
outline: 1px solid #449da6 !important;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
${e} del {
|
|
696
|
+
outline: 1px solid #bf0000 !important;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
${e} ins {
|
|
700
|
+
outline: 1px solid #400000 !important;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
${e} img {
|
|
704
|
+
outline: 1px solid #22746b !important;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
${e} iframe {
|
|
708
|
+
outline: 1px solid #64a7a0 !important;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
${e} embed {
|
|
712
|
+
outline: 1px solid #98daca !important;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
${e} object {
|
|
716
|
+
outline: 1px solid #00cc99 !important;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
${e} param {
|
|
720
|
+
outline: 1px solid #37ffc4 !important;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
${e} video {
|
|
724
|
+
outline: 1px solid #6ee866 !important;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
${e} audio {
|
|
728
|
+
outline: 1px solid #027353 !important;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
${e} source {
|
|
732
|
+
outline: 1px solid #012426 !important;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
${e} canvas {
|
|
736
|
+
outline: 1px solid #a2f570 !important;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
${e} track {
|
|
740
|
+
outline: 1px solid #59a600 !important;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
${e} map {
|
|
744
|
+
outline: 1px solid #7be500 !important;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
${e} area {
|
|
748
|
+
outline: 1px solid #305900 !important;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
${e} a {
|
|
752
|
+
outline: 1px solid #ff62ab !important;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
${e} em {
|
|
756
|
+
outline: 1px solid #800b41 !important;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
${e} strong {
|
|
760
|
+
outline: 1px solid #ff1583 !important;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
${e} i {
|
|
764
|
+
outline: 1px solid #803156 !important;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
${e} b {
|
|
768
|
+
outline: 1px solid #cc1169 !important;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
${e} u {
|
|
772
|
+
outline: 1px solid #ff0430 !important;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
${e} s {
|
|
776
|
+
outline: 1px solid #f805e3 !important;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
${e} small {
|
|
780
|
+
outline: 1px solid #d107b2 !important;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
${e} abbr {
|
|
784
|
+
outline: 1px solid #4a0263 !important;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
${e} q {
|
|
788
|
+
outline: 1px solid #240018 !important;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
${e} cite {
|
|
792
|
+
outline: 1px solid #64003c !important;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
${e} dfn {
|
|
796
|
+
outline: 1px solid #b4005a !important;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
${e} sub {
|
|
800
|
+
outline: 1px solid #dba0c8 !important;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
${e} sup {
|
|
804
|
+
outline: 1px solid #cc0256 !important;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
${e} time {
|
|
808
|
+
outline: 1px solid #d6606d !important;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
${e} code {
|
|
812
|
+
outline: 1px solid #e04251 !important;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
${e} kbd {
|
|
816
|
+
outline: 1px solid #5e001f !important;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
${e} samp {
|
|
820
|
+
outline: 1px solid #9c0033 !important;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
${e} var {
|
|
824
|
+
outline: 1px solid #d90047 !important;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
${e} mark {
|
|
828
|
+
outline: 1px solid #ff0053 !important;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
${e} bdi {
|
|
832
|
+
outline: 1px solid #bf3668 !important;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
${e} bdo {
|
|
836
|
+
outline: 1px solid #6f1400 !important;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
${e} ruby {
|
|
840
|
+
outline: 1px solid #ff7b93 !important;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
${e} rt {
|
|
844
|
+
outline: 1px solid #ff2f54 !important;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
${e} rp {
|
|
848
|
+
outline: 1px solid #803e49 !important;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
${e} span {
|
|
852
|
+
outline: 1px solid #cc2643 !important;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
${e} br {
|
|
856
|
+
outline: 1px solid #db687d !important;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
${e} wbr {
|
|
860
|
+
outline: 1px solid #db175b !important;
|
|
861
|
+
}`}var s5=(e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[GP]),o=t.viewMode==="docs",i=NS(()=>i5(o?'[data-story-block="true"]':".sb-show-main"),[t]);return Oi(()=>{let s=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?o5(s,i):YE(s),()=>{YE(s)}},[n,i,t]),e()},z_,a5=(z_=globalThis.FEATURES)!=null&&z_.outline?[s5]:[],l5={[GP]:!1},XE=()=>({decorators:a5,initialGlobals:l5}),u5=({parameters:e})=>{var t,r,n;((t=e==null?void 0:e.test)==null?void 0:t.mockReset)===!0?PA():((r=e==null?void 0:e.test)==null?void 0:r.clearMocks)===!0?OA():((n=e==null?void 0:e.test)==null?void 0:n.restoreMocks)!==!1&&CA()},fh=(e,t=0,r)=>{var n,o;if(t>5||e==null)return e;if(ss(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let i=RA(e);return r&&i.mockName(r),i}if(Array.isArray(e)){t++;for(let i=0;i<e.length;i++)(n=Object.getOwnPropertyDescriptor(e,i))!=null&&n.writable&&(e[i]=fh(e[i],t));return e}if(typeof e=="object"&&e.constructor===Object){t++;for(let[i,s]of Object.entries(e))(o=Object.getOwnPropertyDescriptor(e,i))!=null&&o.writable&&(e[i]=fh(s,t,i));return e}return e},c5=({initialArgs:e})=>{fh(e)},QE=!1,d5=async e=>{var t,r;globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=BP(e.canvasElement));try{let n=(r=(t=globalThis.window)==null?void 0:t.navigator)==null?void 0:r.clipboard;if(n&&(e.userEvent=Il({userEvent:$P.setup()},{intercept:!0,getKeys:o=>Object.keys(o).filter(i=>i!=="eventWrapper")}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:()=>n,configurable:!0}),!QE)){let o=HTMLElement.prototype.focus,i=HTMLElement.prototype.focus,s=new Set;Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:a=>{i=a},get(){return s.has(this)?o:(s.add(this),setTimeout(()=>s.delete(this),0),i)}}}),QE=!0}}catch{}},ZE=()=>({loaders:[u5,c5,d5]}),p5="viewport",f5={[p5]:{value:void 0,isRotated:!1}},eT=()=>({initialGlobals:f5});function WP(){return[(KE.default??KE)(),(qE.default??qE)(),(JE.default??JE)(),(XE.default??XE)(),(eT.default??eT)(),(NE.default??NE)(),(jE.default??jE)(),(ZE.default??ZE)(),(kE.default??kE)()]}function h5(e){return e!=null&&typeof e=="object"&&"_tag"in e&&(e==null?void 0:e._tag)==="Meta"}function vc(e){return e!=null&&typeof e=="object"&&"_tag"in e&&(e==null?void 0:e._tag)==="Story"}function m5(e){return"__children"in e?e.__children:[]}var zP=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),hh=(e,t)=>{let r=zP(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},y5=(e,t)=>`${hh(e,"kind")}${t?`--${hh(t,"name")}`:""}`,g5=(e,t)=>`${e}:${hh(t,"test")}`,b5=e=>$F(e);function tT(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}function mh(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||tT(e,t))&&(!r||!tT(e,r))}var v5=(...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)};function rT(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function nT(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var E5="[object RegExp]",T5="[object String]",_5="[object Number]",w5="[object Boolean]",oT="[object Arguments]",S5="[object Symbol]",R5="[object Date]",A5="[object Map]",O5="[object Set]",P5="[object Array]",C5="[object Function]",N5="[object ArrayBuffer]",Fp="[object Object]",x5="[object Error]",I5="[object DataView]",M5="[object Uint8Array]",q5="[object Uint8ClampedArray]",j5="[object Uint16Array]",k5="[object Uint32Array]",D5="[object BigUint64Array]",L5="[object Int8Array]",F5="[object Int16Array]",B5="[object Int32Array]",$5="[object BigInt64Array]",V5="[object Float32Array]",U5="[object Float64Array]";function _n(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}function ul(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}function J5(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}var Bp=Ot(ew(),1);function H5(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function G5(e,t,r){return Ta(e,t,void 0,void 0,void 0,void 0,r)}function Ta(e,t,r,n,o,i,s){let a=s(e,t,r,n,o,i);if(a!==void 0)return a;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 xa(e,t,i,s)}return xa(e,t,i,s)}function xa(e,t,r,n){if(Object.is(e,t))return!0;let o=nT(e),i=nT(t);if(o===oT&&(o=Fp),i===oT&&(i=Fp),o!==i)return!1;switch(o){case T5:return e.toString()===t.toString();case _5:{let l=e.valueOf(),u=t.valueOf();return H5(l,u)}case w5:case R5:case S5:return Object.is(e.valueOf(),t.valueOf());case E5:return e.source===t.source&&e.flags===t.flags;case C5:return e===t}r=r??new Map;let s=r.get(e),a=r.get(t);if(s!=null&&a!=null)return s===t;r.set(e,t),r.set(t,e);try{switch(o){case A5:{if(e.size!==t.size)return!1;for(let[l,u]of e.entries())if(!t.has(l)||!Ta(u,t.get(l),l,e,t,r,n))return!1;return!0}case O5:{if(e.size!==t.size)return!1;let l=Array.from(e.values()),u=Array.from(t.values());for(let d=0;d<l.length;d++){let p=l[d],f=u.findIndex(h=>Ta(p,h,void 0,e,t,r,n));if(f===-1)return!1;u.splice(f,1)}return!0}case P5:case M5:case q5:case j5:case k5:case D5:case L5:case F5:case B5:case $5:case V5:case U5:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let l=0;l<e.length;l++)if(!Ta(e[l],t[l],l,e,t,r,n))return!1;return!0}case N5:return e.byteLength!==t.byteLength?!1:xa(new Uint8Array(e),new Uint8Array(t),r,n);case I5:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:xa(new Uint8Array(e),new Uint8Array(t),r,n);case x5:return e.name===t.name&&e.message===t.message;case Fp:{if(!(xa(e.constructor,t.constructor,r,n)||_n(e)&&_n(t)))return!1;let l=[...Object.keys(e),...rT(e)],u=[...Object.keys(t),...rT(t)];if(l.length!==u.length)return!1;for(let d=0;d<l.length;d++){let p=l[d],f=e[p];if(!Object.hasOwn(t,p))return!1;let h=t[p];if(!Ta(f,h,p,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function W5(){}function z5(e,t){return G5(e,t,W5)}var ui=Symbol("incompatible"),yh=(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)?ui:e.reduce((n,o,i)=>{let s=yh(o,{type:r.value});return s!==ui&&(n[i]=s),n},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?ui:Object.entries(e).reduce((n,[o,i])=>{let s=yh(i,{type:r.value[o]});return s===ui?n:Object.assign(n,{[o]:s})},{});case"other":{let n=typeof e=="string"||typeof e=="number"||typeof e=="boolean";return r.value==="ReactNode"&&n?e:ui}default:return ui}},K5=(e,t)=>Object.entries(e).reduce((r,[n,o])=>{if(!t[n])return r;let i=yh(o,t[n]);return i===ui?r:Object.assign(r,{[n]:i})},{}),Ec=(e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,n,o)=>(r[o]=Ec(e[o],t[o]),r),[...e]).filter(r=>r!==void 0):!_n(e)||!_n(t)?t:Object.keys({...e,...t}).reduce((r,n)=>{if(n in t){let o=Ec(e[n],t[n]);o!==void 0&&(r[n]=o)}else r[n]=e[n];return r},{}),Y5=(e,t)=>Object.entries(t).reduce((r,[n,{options:o}])=>{function i(){return n in e&&(r[n]=e[n]),r}if(!o)return i();if(!Array.isArray(o))return Et.error(Le`
|
|
862
|
+
Invalid argType: '${n}.options' should be an array.
|
|
863
|
+
|
|
864
|
+
More info: https://storybook.js.org/docs/api/arg-types?ref=error
|
|
865
|
+
`),i();if(o.some(p=>p&&["object","function"].includes(typeof p)))return Et.error(Le`
|
|
866
|
+
Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values.
|
|
867
|
+
|
|
868
|
+
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#mapping-to-complex-arg-values
|
|
869
|
+
`),i();let s=Array.isArray(e[n]),a=s&&e[n].findIndex(p=>!o.includes(p)),l=s&&a===-1;if(e[n]===void 0||o.includes(e[n])||l)return i();let u=s?`${n}[${a}]`:n,d=o.map(p=>typeof p=="string"?`'${p}'`:String(p)).join(", ");return Et.warn(`Received illegal value for '${u}'. Supported options: ${d}`),r},{}),Ia=Symbol("Deeply equal"),Tc=(e,t)=>{if(typeof e!=typeof t)return t;if(z5(e,t))return Ia;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,i)=>{let s=Tc(e[i],o);return s!==Ia&&(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 _n(e)&&_n(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=Tc(e==null?void 0:e[n],t==null?void 0:t[n]);return o===Ia?r:Object.assign(r,{[n]:o})},{}):t},KP="UNTARGETED";function X5({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,o])=>{let{target:i=KP}=t[n]||{};r[i]=r[i]||{},r[i][n]=o}),r}function Q5(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}var Z5=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(e){if(!(e in this.argsByStoryId))throw new Error(`No args known for ${e} -- has it been rendered yet?`);return this.argsByStoryId[e]}setInitial(e){if(!this.initialArgsByStoryId[e.id])this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs;else if(this.initialArgsByStoryId[e.id]!==e.initialArgs){let t=Tc(this.initialArgsByStoryId[e.id],this.argsByStoryId[e.id]);this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs,t!==Ia&&this.updateFromDelta(e,t)}}updateFromDelta(e,t){let r=Y5(t,e.argTypes);this.argsByStoryId[e.id]=Ec(this.argsByStoryId[e.id],r)}updateFromPersisted(e,t){let r=K5(t,e.argTypes);return this.updateFromDelta(e,r)}update(e,t){if(!(e in this.argsByStoryId))throw new Error(`No args known for ${e} -- has it been rendered yet?`);this.argsByStoryId[e]=Q5({...this.argsByStoryId[e],...t})}},YP=(e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),e8=class{constructor({globals:e={},globalTypes:t={}}){this.set({globals:e,globalTypes:t})}set({globals:e={},globalTypes:t={}}){let r=this.initialGlobals&&Tc(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(e),...Object.keys(t)]);let n=YP(t);this.initialGlobals={...n,...e},this.globals=this.initialGlobals,r&&r!==Ia&&this.updateFromPersisted(r)}filterAllowedGlobals(e){return Object.entries(e).reduce((t,[r,n])=>(this.allowedGlobalNames.has(r)?t[r]=n:ut.warn(`Attempted to set a global (${r}) that is not defined in initial globals or globalTypes`),t),{})}updateFromPersisted(e){let t=this.filterAllowedGlobals(e);this.globals={...this.globals,...t}}get(){return this.globals}update(e){this.globals={...this.globals,...this.filterAllowedGlobals(e)};for(let t in e)e[t]===void 0&&(this.globals[t]=this.initialGlobals[t])}},t8=Ot(ew(),1),r8=(0,t8.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),n8=class{constructor({entries:e}={v:5,entries:{}}){this.entries=e}entryFromSpecifier(e){let t=Object.values(this.entries);if(e==="*")return t[0];if(typeof e=="string")return this.entries[e]?this.entries[e]:t.find(o=>o.id.startsWith(e));let{name:r,title:n}=e;return t.find(o=>o.name===r&&o.title===n)}storyIdToEntry(e){let t=this.entries[e];if(!t)throw new iS({storyId:e});return t}importPathToEntry(e){return r8(this.entries)[e]}},o8=e=>typeof e=="string"?{name:e}:e,i8=e=>typeof e=="string"?{type:e,disable:!1}:e&&typeof e=="object"&&"type"in e&&!("disable"in e)?{...e,disable:!1}:e,s8=(e,t)=>{let{type:r,control:n,...o}=e,i={name:t,...o};return r&&(i.type=o8(r)),n?i.control=i8(n):n===!1&&(i.control={disable:!0}),i},Ky=e=>ul(e,s8),ot=e=>Array.isArray(e)?e:e?[e]:[],a8=Le`
|
|
870
|
+
CSF .story annotations deprecated; annotate story functions directly:
|
|
871
|
+
- StoryFn.story.name => StoryFn.storyName
|
|
872
|
+
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
|
|
873
|
+
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
|
|
874
|
+
`;function Ma(e,t,r){let n=t,o=typeof t=="function"?t:null,{story:i}=n;i&&(ut.debug("deprecated story",i),fm(a8));let s=b5(e),a=typeof n!="function"&&n.name||n.storyName||(i==null?void 0:i.name)||s,l=[...ot(n.decorators),...ot(i==null?void 0:i.decorators)],u={...i==null?void 0:i.parameters,...n.parameters},d={...i==null?void 0:i.args,...n.args},p={...i==null?void 0:i.argTypes,...n.argTypes},f=[...ot(n.loaders),...ot(i==null?void 0:i.loaders)],h=[...ot(n.beforeEach),...ot(i==null?void 0:i.beforeEach)],y=[...ot(n.afterEach),...ot(i==null?void 0:i.afterEach)],{render:g,play:v,tags:b=[],globals:E={}}=n,T=u.__id||y5(r.id,s);return{moduleExport:t,id:T,name:a,tags:b,decorators:l,parameters:u,args:d,argTypes:Ky(p),loaders:f,beforeEach:h,afterEach:y,globals:E,...g&&{render:g},...o&&{userStoryFn:o},...v&&{play:v}}}function gh(e,t=e.title,r){let{id:n,argTypes:o}=e;return{id:zP(n||t),...e,title:t,...o&&{argTypes:Ky(o)},parameters:{fileName:r,...e.parameters}}}var l8=e=>{let{globals:t,globalTypes:r}=e;(t||r)&&ut.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},u8=e=>{let{options:t}=e;t!=null&&t.storySort&&ut.error("The storySort option parameter can only be set globally")},gu=e=>{e&&(l8(e),u8(e))};function c8(e,t,r){let{default:n,__namedExportsOrder:o,...i}=e,s=Object.values(i).find(u=>vc(u));if(s){let u=gh(s.meta.input,r,t);gu(u.parameters);let d={meta:u,stories:{},moduleExports:e};return Object.keys(i).forEach(p=>{if(mh(p,u)&&vc(i[p])){let f=i[p],h=Ma(p,f.input,u);gu(h.parameters),d.stories[h.id]=h,m5(f).forEach(y=>{var b;let g=y.input.name,v=g5(h.id,g);(b=y.input).parameters??(b.parameters={}),y.input.parameters.__id=v,d.stories[v]=Ma(g,y.input,u)})}}),d.projectAnnotations=s.meta.preview.composed,d}let a=gh(n,r,t);gu(a.parameters);let l={meta:a,stories:{},moduleExports:e};return Object.keys(i).forEach(u=>{if(mh(u,a)){let d=Ma(u,i[u],a);gu(d.parameters),l.stories[d.id]=d}}),l}function XP(e,t,r){let n=r(e);return o=>t(n,o)}function QP({componentId:e,title:t,kind:r,id:n,name:o,story:i,parameters:s,initialArgs:a,argTypes:l,...u}={}){return u}function ZP(e,t){let r={},n=i=>s=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...QP(s)},i(r.value)},o=t.reduce((i,s)=>XP(i,s,n),e);return i=>(r.value=i,o(i))}var Ii=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,i)=>(Object.entries(i).forEach(([s,a])=>{let l=o[s];Array.isArray(a)||typeof l>"u"?o[s]=a:_n(a)&&_n(l)?t[s]=!0:typeof a<"u"&&(o[s]=a)}),o),{});return Object.keys(t).forEach(o=>{let i=r.filter(Boolean).map(s=>s[o]).filter(s=>typeof s<"u");i.every(s=>_n(s))?n[o]=Ii(...i):n[o]=i[i.length-1]}),n};function Yy(e,t,r){let{moduleExport:n,id:o,name:i}=e||{},s=tC(e,t,r),a=async R=>{let S={};for(let w of[ot(r.loaders),ot(t.loaders),ot(e.loaders)]){if(R.abortSignal.aborted)return S;let O=await Promise.all(w.map(q=>q(R)));Object.assign(S,...O)}return S},l=async R=>{let S=new Array;for(let w of[...ot(r.beforeEach),...ot(t.beforeEach),...ot(e.beforeEach)]){if(R.abortSignal.aborted)return S;let O=await w(R);O&&S.push(O)}return S},u=async R=>{let S=[...ot(r.afterEach),...ot(t.afterEach),...ot(e.afterEach)].reverse();for(let w of S){if(R.abortSignal.aborted)return;await w(R)}},d=R=>R.originalStoryFn(R.args,R),{applyDecorators:p=ZP,runStep:f}=r,h=[...ot(e==null?void 0:e.decorators),...ot(t==null?void 0:t.decorators),...ot(r==null?void 0:r.decorators)],y=(e==null?void 0:e.userStoryFn)||(e==null?void 0:e.render)||t.render||r.render,g=PS(p)(d,h),v=R=>g(R),b=(e==null?void 0:e.play)??(t==null?void 0:t.play),E=JF(b);if(!y&&!E)throw new mS({id:o});let T=R=>async()=>(await R.renderToCanvas(),R.canvas),A=e.mount??t.mount??r.mount??T,P=r.testingLibraryRender;return{storyGlobals:{},...s,moduleExport:n,id:o,name:i,story:i,originalStoryFn:y,undecoratedStoryFn:d,unboundStoryFn:v,applyLoaders:a,applyBeforeEach:l,applyAfterEach:u,playFunction:b,runStep:f,mount:A,testingLibraryRender:P,renderToCanvas:r.renderToCanvas,usesMount:E}}function eC(e,t,r){return{...tC(void 0,e,t),moduleExport:r}}function tC(e,t,r){var E,T;let n=[vn.DEV,vn.TEST],o=((E=ge.DOCS_OPTIONS)==null?void 0:E.autodocs)===!0?[vn.AUTODOCS]:[],i=(T=e==null?void 0:e.tags)!=null&&T.includes(vn.TEST_FN)?[`!${vn.AUTODOCS}`]:[],s=v5(...n,...o,...r.tags??[],...t.tags??[],...i,...(e==null?void 0:e.tags)??[]),a=Ii(r.parameters,t.parameters,e==null?void 0:e.parameters),{argTypesEnhancers:l=[],argsEnhancers:u=[]}=r,d=Ii(r.argTypes,t.argTypes,e==null?void 0:e.argTypes);if(e){let A=(e==null?void 0:e.userStoryFn)||(e==null?void 0:e.render)||t.render||r.render;a.__isArgsStory=A&&A.length>0}let p={...r.args,...t.args,...e==null?void 0:e.args},f={...t.globals,...e==null?void 0:e.globals},h={componentId:t.id,title:t.title,kind:t.title,id:(e==null?void 0:e.id)||t.id,name:(e==null?void 0:e.name)||"__meta",story:(e==null?void 0:e.name)||"__meta",component:t.component,subcomponents:t.subcomponents,tags:s,parameters:a,initialArgs:p,argTypes:d,storyGlobals:f};h.argTypes=l.reduce((A,P)=>P({...h,argTypes:A}),h.argTypes);let y={...p};h.initialArgs=[...u].reduce((A,P)=>({...A,...P({...h,initialArgs:A})}),y);let{name:g,story:v,...b}=h;return b}function rC(e){var i;let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if((i=ge.FEATURES)!=null&&i.argTypeTargetsV7){let s=X5(e);r={...e,allArgs:e.args,argsByTarget:s,args:s[KP]||{}}}let n=Object.entries(r.args).reduce((s,[a,l])=>{var d;if(!((d=r.argTypes[a])!=null&&d.mapping))return s[a]=l,s;let u=p=>{let f=r.argTypes[a].mapping;return f&&p in f?f[p]:p};return s[a]=Array.isArray(l)?l.map(u):u(l),s},{}),o=Object.entries(n).reduce((s,[a,l])=>{let u=r.argTypes[a]||{};return UF(u,n,r.globals)&&(s[a]=l),s},{});return{...r,unmappedArgs:t,args:o}}var bh=(e,t,r,n)=>{let o=typeof e;switch(o){case"boolean":case"string":case"number":case"function":case"symbol":return{name:o}}if(e){if(n.has(e))return n.get(e);if(r.has(e))return ut.warn(Le`
|
|
875
|
+
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
|
|
876
|
+
|
|
877
|
+
Consider using the mapping feature or fully custom args:
|
|
878
|
+
- Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
|
|
879
|
+
- Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
|
|
880
|
+
`),{name:"other",value:"cyclic object"};r.add(e);let i;return Array.isArray(e)?i={name:"array",value:e.length>0?bh(e[0],t,r,n):{name:"other",value:"unknown"}}:i={name:"object",value:ul(e,s=>bh(s,t,r,n))},r.delete(e),n.set(e,i),i}return{name:"object",value:{}}},nC=e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=new Map,i=ul(n,(a,l)=>({name:l,type:bh(a,`${t}.${l}`,new Set,o)})),s=ul(r,(a,l)=>({name:l}));return Ii(i,s,r)};nC.secondPass=!0;var iT=(e,t)=>Array.isArray(t)?t.includes(e):e.match(t),oC=(e,t,r)=>!t&&!r?e:e&&J5(e,(n,o)=>{let i=n.name||o.toString();return!!(!t||iT(i,t))&&(!r||!iT(i,r))}),d8=(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"&&ut.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==null?void 0:i.length)<=5?"radio":"select"},options:i}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},Xy=e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:i={}}={}}}=e;if(!r)return t;let s=oC(t,n,o),a=ul(s,(l,u)=>(l==null?void 0:l.type)&&d8(l,u.toString(),i));return Ii(a,s)};Xy.secondPass=!0;function _c({argTypes:e,argTypesEnhancers:t,decorators:r,loaders:n,beforeEach:o,afterEach:i,initialGlobals:s,...a}){return{...e&&{argTypes:Ky(e)},decorators:ot(r),loaders:ot(n),beforeEach:ot(o),afterEach:ot(i),argTypesEnhancers:[...t||[],nC,Xy],initialGlobals:s,...a}}var p8=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()}};function iC(e){return async(t,r,n)=>{await e.reduceRight((o,i)=>async()=>i(t,o,n),async()=>r(n))()}}function cl(e,t){return e.map(r=>{var n;return((n=r.default)==null?void 0:n[t])??r[t]}).filter(Boolean)}function To(e,t,r={}){return cl(e,t).reduce((n,o)=>{let i=ot(o);return r.reverseFileOrder?[...i,...n]:[...n,...i]},[])}function bu(e,t){return Object.assign({},...cl(e,t))}function ca(e,t){return cl(e,t).pop()}function xs(e){var o;let t=To(e,"argTypesEnhancers"),r=cl(e,"runStep"),n=To(e,"beforeAll");return{parameters:Ii(...cl(e,"parameters")),decorators:To(e,"decorators",{reverseFileOrder:!(((o=ge.FEATURES)==null?void 0:o.legacyDecoratorFileOrder)??!1)}),args:bu(e,"args"),argsEnhancers:To(e,"argsEnhancers"),argTypes:bu(e,"argTypes"),argTypesEnhancers:[...t.filter(i=>!i.secondPass),...t.filter(i=>i.secondPass)],initialGlobals:bu(e,"initialGlobals"),globalTypes:bu(e,"globalTypes"),loaders:To(e,"loaders"),beforeAll:p8(n),beforeEach:To(e,"beforeEach"),afterEach:To(e,"afterEach"),render:ca(e,"render"),renderToCanvas:ca(e,"renderToCanvas"),applyDecorators:ca(e,"applyDecorators"),runStep:iC(r),tags:To(e,"tags"),mount:ca(e,"mount"),testingLibraryRender:ca(e,"testingLibraryRender")}}function sC(){var e,t,r;try{return!!globalThis.__vitest_browser__||!!((r=(t=(e=globalThis.window)==null?void 0:e.navigator)==null?void 0:t.userAgent)!=null&&r.match(/StorybookTestRunner/))}catch{return!1}}function Qy(e=!0){if(!("document"in globalThis&&"createElement"in globalThis.document))return()=>{};let t=document.createElement("style");t.textContent=`*, *:before, *:after {
|
|
881
|
+
animation: none !important;
|
|
882
|
+
}`,document.head.appendChild(t);let r=document.createElement("style");return r.textContent=`*, *:before, *:after {
|
|
883
|
+
animation-delay: 0s !important;
|
|
884
|
+
animation-direction: ${e?"reverse":"normal"} !important;
|
|
885
|
+
animation-play-state: paused !important;
|
|
886
|
+
transition: none !important;
|
|
887
|
+
}`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{var n;(n=r.parentNode)==null||n.removeChild(r)}}async function Zy(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,...aC(globalThis.document)],o=async()=>{if(t||e!=null&&e.aborted)return;let i=n.flatMap(s=>{var a;return((a=s==null?void 0:s.getAnimations)==null?void 0:a.call(s))||[]}).filter(s=>s.playState==="running"&&!f8(s));i.length>0&&(await Promise.allSettled(i.map(async s=>s.finished)),await o())};o().then(r)},100)}),new Promise(r=>setTimeout(()=>{t=!0,r(void 0)},5e3))])}function aC(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...aC(r.shadowRoot)),t),[])}function f8(e){var t;if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let r=getComputedStyle(e.effect.target,e.effect.pseudoElement),n=(t=r.animationName)==null?void 0:t.split(", ").indexOf(e.animationName);return r.animationIterationCount.split(", ")[n]==="infinite"}return!1}var eg=class{constructor(){this.reports=[]}async addReport(e){this.reports.push(e)}};function lC(e,t,r){return vc(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:h5(t)?t.input:t,preview:r}}function h8(e){globalThis.defaultProjectAnnotations=e}var m8="ComposedStory",y8="Unnamed Story";function g8(e){return e?xs([e]):{}}function b8(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=xs([...WP(),globalThis.defaultProjectAnnotations??{},xs(t.map(g8))]),globalThis.globalProjectAnnotations??{}}var ko=[];function uC(e,t,r,n,o){var b;if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??m8;let i=gh(t),s=o||e.storyName||((b=e.story)==null?void 0:b.name)||e.name||y8,a=Ma(s,e,i),l=_c(xs([n??globalThis.globalProjectAnnotations??{},r??{}])),u=Yy(a,i,l),d={...YP(l.globalTypes),...l.initialGlobals,...u.storyGlobals},p=new eg,f=()=>{let E=rC({hooks:new Am,globals:d,args:{...u.initialArgs},viewMode:"story",reporting:p,loaded:{},abortSignal:new AbortController().signal,step:(T,A)=>u.runStep(T,A,E),canvasElement:null,canvas:{},userEvent:{},globalTypes:l.globalTypes,...u,context:null,mount:null});return E.parameters.__isPortableStory=!0,E.context=E,u.renderToCanvas&&(E.renderToCanvas=async()=>{var A;let T=await((A=u.renderToCanvas)==null?void 0:A.call(u,{componentId:u.componentId,title:u.title,id:u.id,name:u.name,tags:u.tags,showMain:()=>{},showError:P=>{throw new Error(`${P.title}
|
|
888
|
+
${P.description}`)},showException:P=>{throw P},forceRemount:!0,storyContext:E,storyFn:()=>u.unboundStoryFn(E),unboundStoryFn:u.unboundStoryFn},E.canvasElement));T&&ko.push(T)}),E.mount=u.mount(E),E},h,y=async E=>{var A;let T=f();return T.canvasElement??(T.canvasElement=(A=globalThis==null?void 0:globalThis.document)==null?void 0:A.body),h&&(T.loaded=h.loaded),Object.assign(T,E),u.playFunction(T)},g=E=>{let T=f();return Object.assign(T,E),_8(u,T)},v=u.playFunction?y:void 0;return Object.assign(function(E){let T=f();return h&&(T.loaded=h.loaded),T.args={...T.initialArgs,...E},u.unboundStoryFn(T)},{id:u.id,storyName:s,load:async()=>{for(let T of[...ko].reverse())await T();ko.length=0;let E=f();E.loaded=await u.applyLoaders(E),ko.push(...(await u.applyBeforeEach(E)).filter(Boolean)),h=E},globals:d,args:u.initialArgs,parameters:u.parameters,argTypes:u.argTypes,play:v,run:g,reporting:p,tags:u.tags})}var v8=(e,t,r,n)=>uC(e,t,r,{},n);function E8(e,t,r=v8){let{default:n,__esModule:o,__namedExportsOrder:i,...s}=e,a=n;return Object.entries(s).reduce((l,[u,d])=>{let{story:p,meta:f}=lC(d);return!a&&f&&(a=f),mh(u,a)?Object.assign(l,{[u]:r(p,a,t,u)}):l},{})}function T8(e){return e.extend({mount: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(Le`
|
|
889
|
+
Portable stories in Playwright CT only work when referencing JSX elements.
|
|
890
|
+
Please use JSX format for your components such as:
|
|
891
|
+
|
|
892
|
+
instead of:
|
|
893
|
+
await mount(MyComponent, { props: { foo: 'bar' } })
|
|
894
|
+
|
|
895
|
+
do:
|
|
896
|
+
await mount(<MyComponent foo="bar"/>)
|
|
897
|
+
|
|
898
|
+
More info: https://storybook.js.org/docs/api/portable-stories/portable-stories-playwright?ref=error
|
|
899
|
+
`);let{props:s,...a}=o;await r.evaluate(async u=>{var p,f,h;let d=await((p=globalThis.__pwUnwrapObject)==null?void 0:p.call(globalThis,u));return(h=(f="__pw_type"in d?d.type:d)==null?void 0:f.load)==null?void 0:h.call(f)},a);let l=await t(o,...i);return await r.evaluate(async u=>{var h,y;let d=await((h=globalThis.__pwUnwrapObject)==null?void 0:h.call(globalThis,u)),p="__pw_type"in d?d.type:d,f=document.querySelector("#root");return(y=p==null?void 0:p.play)==null?void 0:y.call(p,{canvasElement:f})},a),l})}})}async function _8(e,t){var i,s;for(let a of[...ko].reverse())await a();if(ko.length=0,!t.canvasElement){let a=document.createElement("div");(s=(i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body)==null||s.appendChild(a),t.canvasElement=a,ko.push(()=>{var l,u,d,p;(u=(l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body)!=null&&u.contains(a)&&((p=(d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body)==null||p.removeChild(a))})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;ko.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 Rm({playFunction:r.toString()})}),await r(t));let o;sC()?o=Qy():await Zy(t.abortSignal),await e.applyAfterEach(t),await(o==null?void 0:o())}var sT=1e3,w8=1e4,cC=class{constructor(e,t,r){this.importFn=t,this.storyIndex=new n8(e),this.projectAnnotations=_c(xs([...WP(),r]));let{initialGlobals:n,globalTypes:o}=this.projectAnnotations;this.args=new Z5,this.userGlobals=new e8({globals:n,globalTypes:o}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,Bp.default)(sT)(c8),this.prepareMetaWithCache=(0,Bp.default)(sT)(eC),this.prepareStoryWithCache=(0,Bp.default)(w8)(Yy)}setProjectAnnotations(e){this.projectAnnotations=_c(e);let{initialGlobals:t,globalTypes:r}=e;this.userGlobals.set({globals:t,globalTypes:r})}async onStoriesChanged({importFn:e,storyIndex:t}){e&&(this.importFn=e),t&&(this.storyIndex.entries=t.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(e){return this.storyIndex.storyIdToEntry(e)}async loadCSFFileByStoryId(e){let{importPath:t,title:r}=this.storyIndex.storyIdToEntry(e),n=await this.importFn(t);return this.processCSFFileWithCache(n,t,r)}async loadAllCSFFiles(){let e={};return Object.entries(this.storyIndex.entries).forEach(([t,{importPath:r}])=>{e[r]=t}),(await Promise.all(Object.entries(e).map(async([t,r])=>({importPath:t,csfFile:await this.loadCSFFileByStoryId(r)})))).reduce((t,{importPath:r,csfFile:n})=>(t[r]=n,t),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:e}){let t=e.meta;return this.prepareMetaWithCache(t,this.projectAnnotations,e.moduleExports.default)}async loadStory({storyId:e}){let t=await this.loadCSFFileByStoryId(e);return this.storyFromCSFFile({storyId:e,csfFile:t})}storyFromCSFFile({storyId:e,csfFile:t}){let r=t.stories[e];if(!r)throw new fS({storyId:e});let n=t.meta,o=this.prepareStoryWithCache(r,n,t.projectAnnotations??this.projectAnnotations);return this.args.setInitial(o),this.hooks[o.id]=this.hooks[o.id]||new Am,o}componentStoriesFromCSFFile({csfFile:e}){return Object.keys(this.storyIndex.entries).filter(t=>!!e.stories[t]).map(t=>this.storyFromCSFFile({storyId:t,csfFile:e}))}async loadEntry(e){let t=await this.storyIdToEntry(e),r=t.type==="docs"?t.storiesImports:[],[n,...o]=await Promise.all([this.importFn(t.importPath),...r.map(i=>{let s=this.storyIndex.importPathToEntry(i);return this.loadCSFFileByStoryId(s.id)})]);return{entryExports:n,csfFiles:o}}getStoryContext(e,{forceInitialArgs:t=!1}={}){let r=this.userGlobals.get(),{initialGlobals:n}=this.userGlobals,o=new eg;return rC({...e,args:t?e.initialArgs:this.args.get(e.id),initialGlobals:n,globalTypes:this.projectAnnotations.globalTypes,userGlobals:r,reporting:o,globals:{...r,...e.storyGlobals},hooks:this.hooks[e.id]})}addCleanupCallbacks(e,...t){this.cleanupCallbacks[e.id]=(this.cleanupCallbacks[e.id]||[]).concat(t)}async cleanupStory(e){this.hooks[e.id].clean();let t=this.cleanupCallbacks[e.id];if(t)for(let r of[...t].reverse())await r();delete this.cleanupCallbacks[e.id]}extract(e={includeDocsOnly:!1}){let{cachedCSFFiles:t}=this;if(console.log("extract: extracting stories",t),!t)throw new aS;let r=Object.entries(this.storyIndex.entries).reduce((n,[o,i])=>{if(i.type==="docs")return n;let s=t[i.importPath],a=this.storyFromCSFFile({storyId:o,csfFile:s});return!e.includeDocsOnly&&a.parameters.docsOnly||(n[o]=Object.entries(a).reduce((l,[u,d])=>u==="story"&&i.subtype==="test"?{...l,story:i.parentName}:u==="moduleExport"||typeof d=="function"?l:Array.isArray(d)?Object.assign(l,{[u]:d.slice().sort()}):Object.assign(l,{[u]:d}),{args:a.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...a.storyGlobals},storyId:i.parent?i.parent:o})),n},{});return console.log("extract: stories",r),r}};function S8(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}var R8=e=>{if(e.length===0)return e;let t=e[e.length-1],r=t==null?void 0: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]};function aT(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}var dC=(e,t,r)=>{let{directory:n,importPathMatcher:o,titlePrefix:i=""}=t||{};typeof e=="number"&&Et.warn(Le`
|
|
900
|
+
CSF Auto-title received a numeric fileName. This typically happens when
|
|
901
|
+
webpack is mis-configured in production mode. To force webpack to produce
|
|
902
|
+
filenames, set optimization.moduleIds = "named" in your webpack config.
|
|
903
|
+
`);let s=S8(String(e));if(o.exec(s)){if(!r){let a=s.replace(n,""),l=aT([i,a]).split("/");return l=R8(l),l.join("/")}return i?aT([i,r]):r}},A8=(e,t,r)=>{for(let n=0;n<t.length;n+=1){let o=dC(e,t[n],r);if(o)return o}return r||void 0},lT=/\s*\/\s*/,O8=(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(lT),s=r.title.trim().split(lT);e.includeNames&&(i.push(t.name),s.push(r.name));let a=0;for(;i[a]||s[a];){if(!i[a])return-1;if(!s[a])return 1;let l=i[a],u=s[a];if(l!==u){let p=o.indexOf(l),f=o.indexOf(u),h=o.indexOf("*");return p!==-1||f!==-1?(p===-1&&(h!==-1?p=h:p=o.length),f===-1&&(h!==-1?f=h:f=o.length),p-f):n==="configure"?0:l.localeCompare(u,e.locales?e.locales:void 0,{numeric:!0,sensitivity:"accent"})}let d=o.indexOf(l);d===-1&&(d=o.indexOf("*")),o=d!==-1&&Array.isArray(o[d+1])?o[d+1]:[],a+=1}return 0},P8=(e,t,r)=>{if(t){let n;typeof t=="function"?n=t:n=O8(t),e.sort(n)}else e.sort((n,o)=>r.indexOf(n.importPath)-r.indexOf(o.importPath));return e},C8=(e,t,r)=>{try{return P8(e,t,r)}catch(n){throw new Error(Le`
|
|
904
|
+
Error sorting stories with sort parameter ${t}:
|
|
905
|
+
|
|
906
|
+
> ${n.message}
|
|
907
|
+
|
|
908
|
+
Are you using a V6-style sort function in V7 mode?
|
|
909
|
+
|
|
910
|
+
More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort
|
|
911
|
+
`)}},Od=new Error("prepareAborted"),{AbortController:uT}=globalThis;function cT(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)}}}var vh=class{constructor(e,t,r,n,o,i,s={autoplay:!0,forceInitialArgs:!1},a){this.channel=e,this.store=t,this.renderToScreen=r,this.callbacks=n,this.id=o,this.viewMode=i,this.renderOptions=s,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=()=>{},this.torndown=!1,this.abortController=new uT,this.renderId=Date.now(),a&&(this.story=a,this.phase="preparing")}async runPhase(e,t,r){this.phase=t,this.channel.emit(Ai,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),r&&(await r(),this.checkIfAborted(e))}checkIfAborted(e){return e.aborted&&!["finished","aborted","errored"].includes(this.phase)&&(this.phase="aborted",this.channel.emit(Ai,{newPhase:this.phase,renderId:this.renderId,storyId:this.id})),e.aborted}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),Od}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing","afterEach"].includes(this.phase)}async renderToElement(e){return this.canvasElement=e,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:e}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:e})}async render({initial:e=!1,forceRemount:t=!1}={}){var E,T,A,P,R,S,w,O;let{canvasElement:r}=this;if(!this.story)throw new Error("cannot render when not prepared");let n=this.story;if(!r)throw new Error("cannot render when canvasElement is unset");let{id:o,componentId:i,title:s,name:a,tags:l,applyLoaders:u,applyBeforeEach:d,applyAfterEach:p,unboundStoryFn:f,playFunction:h,runStep:y}=n;t&&!e&&(this.cancelRender(),this.abortController=new uT);let g=this.abortController.signal,v=!1,b=n.usesMount;try{let q={...this.storyContext(),viewMode:this.viewMode,abortSignal:g,canvasElement:r,loaded:{},step:(me,be)=>y(me,be,q),context:null,canvas:{},userEvent:{},renderToCanvas:async()=>{let me=await this.renderToScreen(M,r);this.teardownRender=me||(()=>{}),v=!0},mount:async(...me)=>{var Q,ee;(ee=(Q=this.callbacks).showStoryDuringRender)==null||ee.call(Q);let be=null;return await this.runPhase(g,"rendering",async()=>{be=await n.mount(q)(...me)}),b&&await this.runPhase(g,"playing"),be}};q.context=q;let M={componentId:i,title:s,kind:s,id:o,name:a,story:a,tags:l,...this.callbacks,showError:me=>(this.phase="errored",this.callbacks.showError(me)),showException:me=>(this.phase="errored",this.callbacks.showException(me)),forceRemount:t||this.notYetRendered,storyContext:q,storyFn:()=>f(q),unboundStoryFn:f};if(await this.runPhase(g,"loading",async()=>{q.loaded=await u(q)}),g.aborted)return;let k=await d(q);if(this.store.addCleanupCallbacks(n,...k),this.checkIfAborted(g)||(!v&&!b&&await q.mount(),this.notYetRendered=!1,g.aborted))return;let x=((T=(E=this.story.parameters)==null?void 0:E.test)==null?void 0:T.dangerouslyIgnoreUnhandledErrors)===!0,C=new Set,j=me=>{me.error&&C.add(me.error)},F=me=>{me.reason&&C.add(me.reason)};if(this.renderOptions.autoplay&&t&&h&&this.phase!=="errored"){(A=window==null?void 0:window.addEventListener)==null||A.call(window,"error",j),(P=window==null?void 0:window.addEventListener)==null||P.call(window,"unhandledrejection",F),this.disableKeyListeners=!0;try{if(b?await h(q):(q.mount=async()=>{throw new Rm({playFunction:h.toString()})},await this.runPhase(g,"playing",async()=>h(q))),!v)throw new yS;this.checkIfAborted(g),!x&&C.size>0?await this.runPhase(g,"errored"):await this.runPhase(g,"played")}catch(me){if((S=(R=this.callbacks).showStoryDuringRender)==null||S.call(R),await this.runPhase(g,"errored",async()=>{this.channel.emit(lw,cT(me))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw me;console.error(me)}if(!x&&C.size>0&&this.channel.emit(uw,Array.from(C).map(cT)),this.disableKeyListeners=!1,(w=window==null?void 0:window.removeEventListener)==null||w.call(window,"unhandledrejection",F),(O=window==null?void 0:window.removeEventListener)==null||O.call(window,"error",j),g.aborted)return}await this.runPhase(g,"completing",async()=>{sC()?this.store.addCleanupCallbacks(n,Qy()):await Zy(g)}),await this.runPhase(g,"completed",async()=>{this.channel.emit(Qu,o)}),this.phase!=="errored"&&await this.runPhase(g,"afterEach",async()=>{await p(q)});let V=!x&&C.size>0,G=q.reporting.reports.some(me=>me.status==="failed"),se=V||G;await this.runPhase(g,"finished",async()=>this.channel.emit(mf,{storyId:o,status:se?"error":"success",reporters:q.reporting.reports}))}catch(q){this.phase="errored",this.callbacks.showException(q),await this.runPhase(g,"finished",async()=>this.channel.emit(mf,{storyId:o,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(){var e,t;this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let r=0;r<3;r+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(n=>setTimeout(n,0))}(t=(e=window==null?void 0:window.location)==null?void 0:e.reload)==null||t.call(e),await new Promise(()=>{})}},{fetch:N8}=ge,x8="./index.json",pC=class{constructor(e,t,r=vr.getChannel(),n=!0){this.importFn=e,this.getProjectAnnotations=t,this.channel=r,this.storyRenders=[],this.storeInitializationPromise=new Promise((o,i)=>{this.resolveStoreInitializationPromise=o,this.rejectStoreInitializationPromise=i}),n&&this.initialize()}get storyStore(){return new Proxy({},{get:(e,t)=>{if(this.storyStoreValue)return fm("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[t];throw new hS}})}async initialize(){var e;this.setupListeners();try{let t=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(t),await this.initializeWithProjectAnnotations(t);let r=(e=globalThis==null?void 0:globalThis.navigator)==null?void 0:e.userAgent;await this.channel.emit(dw,{userAgent:r})}catch(t){this.rejectStoreInitializationPromise(t)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(gw,this.onStoryIndexChanged.bind(this)),this.channel.on(dm,this.onUpdateGlobals.bind(this)),this.channel.on(pm,this.onUpdateArgs.bind(this)),this.channel.on(Rw,this.onRequestArgTypesInfo.bind(this)),this.channel.on(um,this.onResetArgs.bind(this)),this.channel.on(lm,this.onForceReRender.bind(this)),this.channel.on(Xu,this.onForceRemount.bind(this)),this.channel.on(_w,this.onStoryHotUpdated.bind(this))}async getProjectAnnotationsOrRenderError(){try{let e=await this.getProjectAnnotations();if(this.renderToCanvas=e.renderToCanvas,!this.renderToCanvas)throw new lS;return e}catch(e){throw this.renderPreviewEntryError("Error reading preview.js:",e),e}}async initializeWithProjectAnnotations(e){this.projectAnnotationsBeforeInitialization=e;try{let t=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(t)}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async runBeforeAllHook(e){var t,r;try{await((t=this.beforeAllCleanup)==null?void 0:t.call(this)),this.beforeAllCleanup=await((r=e.beforeAll)==null?void 0:r.call(e))}catch(n){throw this.renderPreviewEntryError("Error in beforeAll hook:",n),n}}async getStoryIndexFromServer(){let e=await N8(x8);if(e.status===200)return e.json();throw new uS({text:await e.text()})}initializeWithStoryIndex(e){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new cC(e,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new Ar({methodName:"emitGlobals"});let e={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(fw,e)}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){delete this.previewEntryError,this.getProjectAnnotations=e;let t=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(t),!this.storyStoreValue){await this.initializeWithProjectAnnotations(t);return}this.storyStoreValue.setProjectAnnotations(t),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let e=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(e);return}await this.onStoriesChanged({storyIndex:e})}catch(e){throw this.renderPreviewEntryError("Error loading story index:",e),e}}async onStoriesChanged({importFn:e,storyIndex:t}){if(!this.storyStoreValue)throw new Ar({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:e,storyIndex:t})}async onUpdateGlobals({globals:e,currentStory:t}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new Ar({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(e),t){let{initialGlobals:r,storyGlobals:n,userGlobals:o,globals:i}=this.storyStoreValue.getStoryContext(t);this.channel.emit(Ha,{initialGlobals:r,userGlobals:o,storyGlobals:n,globals:i})}else{let{initialGlobals:r,globals:n}=this.storyStoreValue.userGlobals;this.channel.emit(Ha,{initialGlobals:r,userGlobals:n,storyGlobals:{},globals:n})}await Promise.all(this.storyRenders.map(r=>r.rerender()))}async onUpdateArgs({storyId:e,updatedArgs:t}){if(!this.storyStoreValue)throw new Ar({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(e,t),await Promise.all(this.storyRenders.filter(r=>r.id===e&&!r.renderOptions.forceInitialArgs).map(r=>r.story&&r.story.usesMount?r.remount():r.rerender())),this.channel.emit(hw,{storyId:e,args:this.storyStoreValue.args.get(e)})}async onRequestArgTypesInfo({id:e,payload:t}){var r;try{await this.storeInitializationPromise;let n=await((r=this.storyStoreValue)==null?void 0:r.loadStory(t));this.channel.emit(yf,{id:e,success:!0,payload:{argTypes:(n==null?void 0:n.argTypes)||{}},error:null})}catch(n){this.channel.emit(yf,{id:e,success:!1,error:n==null?void 0:n.message})}}async onResetArgs({storyId:e,argNames:t}){var o;if(!this.storyStoreValue)throw new Ar({methodName:"onResetArgs"});let r=((o=this.storyRenders.find(i=>i.id===e))==null?void 0:o.story)||await this.storyStoreValue.loadStory({storyId:e}),n=(t||[...new Set([...Object.keys(r.initialArgs),...Object.keys(this.storyStoreValue.args.get(e))])]).reduce((i,s)=>(i[s]=r.initialArgs[s],i),{});await this.onUpdateArgs({storyId:e,updatedArgs:n})}async onForceReRender(){await Promise.all(this.storyRenders.map(e=>e.rerender()))}async onForceRemount({storyId:e}){await Promise.all(this.storyRenders.filter(t=>t.id===e).map(t=>t.remount()))}async onStoryHotUpdated(){await Promise.all(this.storyRenders.map(e=>e.cancelPlayFunction()))}renderStoryToElement(e,t,r,n){if(!this.renderToCanvas||!this.storyStoreValue)throw new Ar({methodName:"renderStoryToElement"});let o=new vh(this.channel,this.storyStoreValue,this.renderToCanvas,r,e.id,"docs",n,e);return o.renderToElement(t),this.storyRenders.push(o),async()=>{await this.teardownRender(o)}}async teardownRender(e,{viewModeChanged:t}={}){var r;this.storyRenders=this.storyRenders.filter(n=>n!==e),await((r=e==null?void 0:e.teardown)==null?void 0:r.call(e,{viewModeChanged:t}))}async loadStory({storyId:e}){if(!this.storyStoreValue)throw new Ar({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:e})}getStoryContext(e,{forceInitialArgs:t=!1}={}){if(!this.storyStoreValue)throw new Ar({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(e,{forceInitialArgs:t})}async extract(e){if(!this.storyStoreValue)throw new Ar({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(e)}renderPreviewEntryError(e,t){this.previewEntryError=t,ut.error(e),ut.error(t),this.channel.emit(sw,t)}},tg=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.renderStoryToElement=r,this.storyIdByName=o=>{let i=this.nameToStoryId.get(o);if(i)return i;throw new Error(`No story found with that name: ${o}`)},this.componentStories=()=>this.componentStoriesValue,this.componentStoriesFromCSFFile=o=>this.store.componentStoriesFromCSFFile({csfFile:o}),this.storyById=o=>{if(!o){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}let i=this.storyIdToCSFFile.get(o);if(!i)throw new Error(`Called \`storyById\` for story that was never loaded: ${o}`);return this.store.storyFromCSFFile({storyId:o,csfFile:i})},this.getStoryContext=o=>({...this.store.getStoryContext(o),loaded:{},viewMode:"docs"}),this.loadStory=o=>this.store.loadStory({storyId:o}),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,n.forEach((o,i)=>{this.referenceCSFFile(o)})}referenceCSFFile(e){this.exportsToCSFFile.set(e.moduleExports,e),this.exportsToCSFFile.set(e.moduleExports.default,e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(t=>{let r=e.stories[t.id];this.storyIdToCSFFile.set(r.id,e),this.exportToStory.set(r.moduleExport,t)})}attachCSFFile(e){if(!this.exportsToCSFFile.has(e.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(e)||(this.attachedCSFFiles.add(e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(t=>{this.nameToStoryId.set(t.name,t.id),this.componentStoriesValue.push(t),this.primaryStory||(this.primaryStory=t)}))}referenceMeta(e,t){let r=this.resolveModuleExport(e);if(r.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?");t&&this.attachCSFFile(r.csfFile)}get projectAnnotations(){let{projectAnnotations:e}=this.store;if(!e)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return e}resolveAttachedModuleExportType(e){if(e==="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 t=Array.from(this.attachedCSFFiles)[0];if(e==="meta")return{type:"meta",csfFile:t};let{component:r}=t.meta;if(!r)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:r}}resolveModuleExport(e){let t=this.exportsToCSFFile.get(e);if(!t&&e&&typeof e=="object"&&"default"in e&&(t=this.exportsToCSFFile.get(e.default)),t)return{type:"meta",csfFile:t};let r=this.exportToStory.get(vc(e)?e.input:e);return r?{type:"story",story:r}:{type:"component",component:e}}resolveOf(e,t=[]){let r;if(["component","meta","story"].includes(e)){let n=e;r=this.resolveAttachedModuleExportType(n)}else r=this.resolveModuleExport(e);if(t.length&&!t.includes(r.type)){let n=r.type==="component"?"component or unknown":r.type;throw new Error(Le`Invalid value passed to the 'of' prop. The value was resolved to a '${n}' type but the only types for this block are: ${t.join(", ")}.
|
|
912
|
+
- Did you pass a component to the 'of' prop when the block only supports a story or a meta?
|
|
913
|
+
- ... or vice versa?
|
|
914
|
+
- 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(r.type){case"component":return{...r,projectAnnotations:this.projectAnnotations};case"meta":return{...r,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:r.csfFile})};case"story":default:return r}}},dT=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.entry=r,this.callbacks=n,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=r.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Od;let{importPath:r,title:n}=this.entry,o=this.store.processCSFFileWithCache(e,r,n),i=Object.keys(o.stories)[0];this.story=this.store.storyFromCSFFile({storyId:i,csfFile:o}),this.csfFiles=[o,...t],this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}docsContext(e){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let t=new tg(this.channel,this.store,e,this.csfFiles);return this.csfFiles.forEach(r=>t.attachCSFFile(r)),t}async renderToElement(e,t){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=this.docsContext(t),{docs:n}=this.story.parameters||{};if(!n)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let o=await n.renderer(),{render:i}=o,s=async()=>{try{await i(r,n,e),this.channel.emit(am,this.id)}catch(a){this.callbacks.showException(a)}};return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:a})=>{!a||!e||o.unmount(e)},s()}async teardown({viewModeChanged:e}={}){var t;(t=this.teardownRender)==null||t.call(this,{viewModeChanged:e}),this.torndown=!0}},pT=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.entry=r,this.callbacks=n,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=r.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){var r;this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Od;if(this.csfFiles=t,this.exports=e,this.attachedCsfFile=void 0,this.attachedStory=void 0,(r=this.entry.tags)==null?void 0:r.includes(vn.ATTACHED_MDX)){this.attachedCsfFile=t[0];let n=this.attachedCsfFile&&Object.keys(this.attachedCsfFile.stories)[0];this.attachedCsfFile&&n&&(this.attachedStory=this.store.storyFromCSFFile({storyId:n,csfFile:this.attachedCsfFile}))}this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.exports&&this.exports===e.exports)}docsContext(e){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let t=new tg(this.channel,this.store,e,this.csfFiles);return this.attachedCsfFile&&t.attachCSFFile(this.attachedCsfFile),t}async renderToElement(e,t){var u,d;if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let r=this.docsContext(t),{docs:n}=this.store.projectAnnotations.parameters??{},o=((d=(u=this.attachedStory)==null?void 0:u.parameters)==null?void 0:d.docs)??n;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:a}=s,l=async()=>{try{await a(r,i,e),this.channel.emit(am,this.id)}catch(p){this.callbacks.showException(p)}};return this.rerender=async()=>l(),this.teardownRender=async({viewModeChanged:p}={})=>{!p||!e||(s.unmount(e),this.torndown=!0)},l()}async teardown({viewModeChanged:e}={}){var t;(t=this.teardownRender)==null||t.call(this,{viewModeChanged:e}),this.torndown=!0}},I8=globalThis;function M8(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}function q8({tags:e}){return(e==null?void 0:e.includes(vn.UNATTACHED_MDX))||(e==null?void 0:e.includes(vn.ATTACHED_MDX))}function $p(e){return e.type==="story"}function j8(e){return e.type==="docs"}function k8(e){return j8(e)&&e.subtype==="csf"}var fC=class extends pC{constructor(e,t,r,n){super(e,t,void 0,!1),this.importFn=e,this.getProjectAnnotations=t,this.selectionStore=r,this.view=n,this.initialize()}setupListeners(){super.setupListeners(),I8.onkeydown=this.onKeydown.bind(this),this.channel.on(cm,this.onSetCurrentStory.bind(this)),this.channel.on(ww,this.onUpdateQueryParams.bind(this)),this.channel.on(cw,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new Ar({methodName:"setInitialGlobals"});let{globals:e}=this.selectionStore.selectionSpecifier||{};e&&this.storyStoreValue.userGlobals.updateFromPersisted(e),this.emitGlobals()}async initializeWithStoryIndex(e){return await super.initializeWithStoryIndex(e),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new Ar({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:e,args:t}=this.selectionStore.selectionSpecifier,r=this.storyStoreValue.storyIndex.entryFromSpecifier(e);if(!r){e==="*"?this.renderStoryLoadingException(e,new dS):this.renderStoryLoadingException(e,new pS({storySpecifier:e.toString()}));return}let{id:n,type:o}=r;this.selectionStore.setSelection({storyId:n,viewMode:o}),this.channel.emit(vw,this.selectionStore.selection),this.channel.emit(ff,this.selectionStore.selection),await this.renderSelection({persistedArgs:t})}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:e}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:e,storyIndex:t}){await super.onStoriesChanged({importFn:e,storyIndex:t}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(e){if(!this.storyRenders.find(t=>t.disableKeyListeners)&&!M8(e)){let{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,key:i,code:s,keyCode:a}=e;this.channel.emit(pw,{event:{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,key:i,code:s,keyCode:a}})}}async onSetCurrentStory(e){this.selectionStore.setSelection({viewMode:"story",...e}),await this.storeInitializationPromise,this.channel.emit(ff,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(e){this.selectionStore.setQueryParams(e)}async onUpdateGlobals({globals:e}){var r,n;let t=this.currentRender instanceof vh&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:e,currentStory:t}),(this.currentRender instanceof pT||this.currentRender instanceof dT)&&await((n=(r=this.currentRender).rerender)==null?void 0:n.call(r))}async onUpdateArgs({storyId:e,updatedArgs:t}){super.onUpdateArgs({storyId:e,updatedArgs:t})}async onPreloadStories({ids:e}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(e.map(t=>{var r;return(r=this.storyStoreValue)==null?void 0:r.loadEntry(t)}))}async renderSelection({persistedArgs:e}={}){var p,f,h,y;let{renderToCanvas:t}=this;if(!this.storyStoreValue||!t)throw new Ar({methodName:"renderSelection"});let{selection:r}=this.selectionStore;if(!r)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:n}=r,o;try{o=await this.storyStoreValue.storyIdToEntry(n)}catch(g){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(n,g);return}let i=((p=this.currentSelection)==null?void 0:p.storyId)!==n,s=((f=this.currentRender)==null?void 0:f.type)!==o.type;o.type==="story"?this.view.showPreparingStory({immediate:s}):this.view.showPreparingDocs({immediate:s}),(h=this.currentRender)!=null&&h.isPreparing()&&await this.teardownRender(this.currentRender);let a;o.type==="story"?a=new vh(this.channel,this.storyStoreValue,t,this.mainStoryCallbacks(n),n,"story"):q8(o)?a=new pT(this.channel,this.storyStoreValue,o,this.mainStoryCallbacks(n)):a=new dT(this.channel,this.storyStoreValue,o,this.mainStoryCallbacks(n));let l=this.currentSelection;this.currentSelection=r;let u=this.currentRender;this.currentRender=a;try{await a.prepare()}catch(g){u&&await this.teardownRender(u),g!==Od&&this.renderStoryLoadingException(n,g);return}let d=!i&&u&&!a.isEqual(u);if(e&&$p(a)&&(Yn(!!a.story),this.storyStoreValue.args.updateFromPersisted(a.story,e)),u&&!u.torndown&&!i&&!d&&!s){this.currentRender=u,this.channel.emit(Tw,n),this.view.showMain();return}if(u&&await this.teardownRender(u,{viewModeChanged:s}),l&&(i||s)&&this.channel.emit(mw,n),$p(a)){Yn(!!a.story);let{parameters:g,initialArgs:v,argTypes:b,unmappedArgs:E,initialGlobals:T,userGlobals:A,storyGlobals:P,globals:R}=this.storyStoreValue.getStoryContext(a.story);this.channel.emit(bw,{id:n,parameters:g,initialArgs:v,argTypes:b,args:E}),this.channel.emit(Ha,{userGlobals:A,storyGlobals:P,globals:R,initialGlobals:T})}else{let{parameters:g}=this.storyStoreValue.projectAnnotations,{initialGlobals:v,globals:b}=this.storyStoreValue.userGlobals;if(this.channel.emit(Ha,{globals:b,initialGlobals:v,storyGlobals:{},userGlobals:b}),k8(a)||((y=a.entry.tags)==null?void 0:y.includes(vn.ATTACHED_MDX))){if(!a.csfFiles)throw new cS({storyId:n});({parameters:g}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:a.csfFiles[0]}))}this.channel.emit(aw,{id:n,parameters:g})}$p(a)?(Yn(!!a.story),this.storyRenders.push(a),this.currentRender.renderToElement(this.view.prepareForStory(a.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(e,{viewModeChanged:t=!1}={}){var r;this.storyRenders=this.storyRenders.filter(n=>n!==e),await((r=e==null?void 0:e.teardown)==null?void 0:r.call(e,{viewModeChanged:t}))}mainStoryCallbacks(e){return{showStoryDuringRender:()=>this.view.showStoryDuringRender(),showMain:()=>this.view.showMain(),showError:t=>this.renderError(e,t),showException:t=>this.renderException(e,t)}}renderPreviewEntryError(e,t){super.renderPreviewEntryError(e,t),this.view.showErrorDisplay(t)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(hf)}renderStoryLoadingException(e,t){ut.error(t),this.view.showErrorDisplay(t),this.channel.emit(hf,e)}renderException(e,t){var s;let{name:r="Error",message:n=String(t),stack:o}=t,i=(s=this.currentRender)==null?void 0:s.renderId;this.channel.emit(Ew,{name:r,message:n,stack:o}),this.channel.emit(Ai,{newPhase:"errored",renderId:i,storyId:e}),this.view.showErrorDisplay(t),ut.error(`Error rendering story '${e}':`),ut.error(t)}renderError(e,{title:t,description:r}){var o;let n=(o=this.currentRender)==null?void 0:o.renderId;this.channel.emit(yw,{title:t,description:r}),this.channel.emit(Ai,{newPhase:"errored",renderId:n,storyId:e}),this.view.showErrorDisplay({message:t,stack:r}),ut.error(`Error rendering story ${t}: ${r}`)}},Eh=Ot(om(),1),D8=Ot(om(),1),fT=/^[a-zA-Z0-9 _-]*$/,hC=/^-?[0-9]+(\.[0-9]+)?$/,L8=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,mC=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Th=(e="",t)=>e===null||e===""||!fT.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?fT.test(t)||hC.test(t)||L8.test(t)||mC.test(t):Array.isArray(t)?t.every(r=>Th(e,r)):_n(t)?Object.entries(t).every(([r,n])=>Th(r,n)):!1,F8={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(mC);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 hC.test(e)?Number(e):e}},hT=e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,D8.parse)(t.join(";"),F8)).reduce((r,[n,o])=>Th(n,o)?Object.assign(r,{[n]:o}):(Et.warn(Le`
|
|
915
|
+
Omitted potentially unsafe URL args.
|
|
916
|
+
|
|
917
|
+
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
|
|
918
|
+
`),r),{})},{history:yC,document:wn}=ge;function B8(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}var gC=({selection:e,extraParams:t})=>{let r=wn==null?void 0:wn.location.search.slice(1),{path:n,selectedKind:o,selectedStory:i,...s}=(0,Eh.parse)(r);return`?${(0,Eh.stringify)({...s,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},$8=e=>{if(!e)return;let t=gC({selection:e}),{hash:r=""}=wn.location;wn.title=e.storyId,yC.replaceState({},"",`${wn.location.pathname}${t}${r}`)},V8=e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,qa=e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return qa(e[0]);if(V8(e))return qa(Object.values(e).filter(Boolean))}},U8=()=>{if(typeof wn<"u"){let e=wn.location.search.slice(1),t=(0,Eh.parse)(e),r=typeof t.args=="string"?hT(t.args):void 0,n=typeof t.globals=="string"?hT(t.globals):void 0,o=qa(t.viewMode);if(typeof o!="string"||!o)o="story";else if(!o.match(/docs|story/))return null;let i=qa(t.path),s=i?B8(i):qa(t.id);if(s)return{storySpecifier:s,args:r,globals:n,viewMode:o}}return null},bC=class{constructor(){this.selectionSpecifier=U8()}setSelection(e){this.selection=e,$8(this.selection)}setQueryParams(e){let t=gC({extraParams:e}),{hash:r=""}=wn.location;yC.replaceState({},"",`${wn.location.pathname}${t}${r}`)}},J8=Ot(Tj(),1),H8=Ot(om(),1),{document:Yt}=ge,mT=100,vC=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(vC||{}),Vp={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},Up={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},yT=new J8.default({escapeXML:!0}),EC=class{constructor(){if(this.testing=!1,typeof Yt<"u"){let{__SPECIAL_TEST_PARAMETER__:e}=(0,H8.parse)(Yt.location.search.slice(1));switch(e){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}}}}prepareForStory(e){return this.showStory(),this.applyLayout(e.parameters.layout),Yt.documentElement.scrollTop=0,Yt.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return Yt.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),Yt.documentElement.scrollTop=0,Yt.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return Yt.getElementById("storybook-docs")}applyLayout(e="padded"){if(e==="none"){Yt.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(e);let t=Up[e];Yt.body.classList.remove(this.currentLayoutClass),Yt.body.classList.add(t),this.currentLayoutClass=t}checkIfLayoutExists(e){Up[e]||ut.warn(Le`
|
|
919
|
+
The desired layout: ${e} is not a valid option.
|
|
920
|
+
The possible options are: ${Object.keys(Up).join(", ")}, none.
|
|
921
|
+
`)}showMode(e){clearTimeout(this.preparingTimeout),Object.keys(vC).forEach(t=>{t===e?Yt.body.classList.add(Vp[t]):Yt.body.classList.remove(Vp[t])})}showErrorDisplay({message:e="",stack:t=""}){let r=e,n=t,o=e.split(`
|
|
922
|
+
`);o.length>1&&([r]=o,n=o.slice(1).join(`
|
|
923
|
+
`).replace(/^\n/,"")),Yt.getElementById("error-message").innerHTML=yT.toHtml(r),Yt.getElementById("error-stack").innerHTML=yT.toHtml(n),this.showMode("ERROR")}showNoPreview(){var e,t;this.testing||(this.showMode("NOPREVIEW"),(e=this.storyRoot())==null||e.setAttribute("hidden","true"),(t=this.docsRoot())==null||t.setAttribute("hidden","true"))}showPreparingStory({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),mT)}showPreparingDocs({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),mT)}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(){Yt.body.classList.add(Vp.MAIN)}},G8=class extends fC{constructor(t,r){super(t,r,new bC,new EC),this.importFn=t,this.getProjectAnnotations=r,ge.__STORYBOOK_PREVIEW__=this}},{document:bi}=ge,W8=["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"],z8="script",gT="scripts-root";function _h(){let e=bi.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),bi.dispatchEvent(e)}function K8(e,t,r){let n=bi.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):bi.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}function TC(e,t,r=0){e[r](()=>{r++,r===e.length?t():TC(e,t,r)})}function Y8(e){let t=bi.getElementById(gT);t?t.innerHTML="":(t=bi.createElement("div"),t.id=gT,bi.body.appendChild(t));let r=Array.from(e.querySelectorAll(z8));if(r.length){let n=[];r.forEach(o=>{let i=o.getAttribute("type");(!i||W8.includes(i))&&n.push(s=>K8(o,s,t))}),n.length&&TC(n,_h,void 0)}else _h()}var Jp;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(Jp=Jp||(Jp={}));var X8=Ot(_j(),1),Fi=(0,X8.stringifyRules)(),Q8=Fi.JsdocTypeObject;Fi.JsdocTypeAny=()=>"any";Fi.JsdocTypeObject=(e,t)=>`(${Q8(e,t)})`;Fi.JsdocTypeOptional=(e,t)=>t(e.element);Fi.JsdocTypeNullable=(e,t)=>t(e.element);Fi.JsdocTypeNotNullable=(e,t)=>t(e.element);Fi.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");var Z8="storybook/docs",eY=`${Z8}/snippet-rendered`;async function tY(e,t){var a,l,u;let r=(u=(l=(a=t.parameters)==null?void 0:a.docs)==null?void 0:l.source)==null?void 0:u.transform,{id:n,unmappedArgs:o}=t,i=r&&e?r==null?void 0:r(e,t):e,s=i?await i:void 0;vr.getChannel().emit(eY,{id:n,source:s,args:o})}var dl={depth:10,clearOnStoryChange:!0,limit:50},rY=(e={})=>{Object.assign(dl,e)},_C=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:_C(r,t)},nY=e=>!!(typeof e=="object"&&e&&_C(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),oY=e=>{if(nY(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r==null?void 0:r.value;return typeof n=="object"&&(n==null?void 0:n.constructor.name)==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e};function Ul(e,t={}){let r={...dl,...t},n=function(...o){var p,f;if(t.implicit){let h=(p="__STORYBOOK_PREVIEW__"in ge?ge.__STORYBOOK_PREVIEW__:void 0)==null?void 0:p.storyRenders.find(y=>y.phase==="playing"||y.phase==="rendering");if(h){let y=!((f=globalThis==null?void 0:globalThis.FEATURES)!=null&&f.disallowImplicitActionsInRenderV8),g=new sS({phase:h.phase,name:e,deprecated:y});if(y)console.warn(g);else throw g}}let i=vr.getChannel(),s=Date.now().toString(36)+Math.random().toString(36).substring(2),a=5,l=o.map(oY),u=o.length>1?l:l[0],d={id:s,count:0,data:{name:e,args:u},options:{...r,maxDepth:a+(r.depth||3)}};i.emit(AS,d)};return n.isAction=!0,n.implicit=t.implicit,n}var iY=(...e)=>{let t=dl,r=e;r.length===1&&Array.isArray(r[0])&&([r]=r),r.length!==1&&typeof r[r.length-1]!="string"&&(t={...dl,...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]=Ul(n[i],t)}),o},sY={"@storybook/global":Ow,"storybook/test":DS,"storybook/actions":RS,"storybook/preview-api":bf,"storybook/internal/channels":Cw,"storybook/internal/client-logger":Nw,"storybook/internal/core-events":im,"storybook/internal/types":gS,"storybook/internal/preview-errors":rS,"storybook/internal/preview-api":bf};async function aY(){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}lY(t,r)}var lY=async(e,t)=>{var a,l;let r={entries:{}};for(let u of Object.values(e.entries)){let d=u.title.split("/"),p=r;for(let f of d)p.entries||(p.entries={}),p.entries[f]?t===u.id&&(p.entries[f].isActive=!0):p.entries[f]={title:f,isActive:t===u.id,entries:{}},p=p.entries[f];p.entries||(p.entries={}),p.entries[u.name]={id:u.id,name:u.name,href:`?id=${u.id}&viewMode=${u.type}&navigator=true`,isActive:t===u.id}}let n=u=>{if("entries"in u&&"title"in u){let p=u;return`
|
|
924
|
+
<li class="sb-navigator-branch">
|
|
925
|
+
<details${p.isActive?" open":""}>
|
|
926
|
+
<summary class="sb-navigator-title">
|
|
927
|
+
${p.title}
|
|
928
|
+
</summary>
|
|
929
|
+
<ul class="sb-navigator-entries" aria-label="${p.title}">
|
|
930
|
+
${Object.values(p.entries).map(n).join("")}
|
|
931
|
+
</ul>
|
|
932
|
+
</details>
|
|
933
|
+
</li>
|
|
934
|
+
`}let d=u;return`
|
|
935
|
+
<li class="sb-navigator-story-item">
|
|
936
|
+
<a href="${d.href}"
|
|
937
|
+
class="sb-navigator-story-link${d.isActive?" active":""}"
|
|
938
|
+
aria-current="${d.isActive?"location":"false"}">${d.name}</a>
|
|
939
|
+
</li>
|
|
940
|
+
`},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=`
|
|
941
|
+
<ul class="sb-navigator-list">${o}</ul>
|
|
942
|
+
`,document.body.insertBefore(i,document.body.firstChild);let s=document.createElement("style");s.id="sb-navigator-style",s.textContent=`
|
|
943
|
+
body {
|
|
944
|
+
display: grid !important;
|
|
945
|
+
grid-template-columns: 300px 1fr;
|
|
946
|
+
font-family: 'Nunito', sans-serif;
|
|
947
|
+
height: 100vh;
|
|
948
|
+
margin: 0;
|
|
949
|
+
|
|
950
|
+
--text-color: rgb(46, 52, 56);
|
|
951
|
+
--bg-color: rgb(246, 249, 252);
|
|
952
|
+
|
|
953
|
+
@media (prefers-color-scheme: dark) {
|
|
954
|
+
--text-color: rgb(201, 205, 207);
|
|
955
|
+
--bg-color: rgb(34, 36, 37);
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
#storybook-root, #storybook-docs {
|
|
959
|
+
overflow-y: auto;
|
|
960
|
+
max-height: 100vh;
|
|
961
|
+
max-width: 100%;
|
|
962
|
+
}
|
|
963
|
+
#sb-navigator-container, #sb-navigator-container * {
|
|
964
|
+
box-sizing: border-box;
|
|
965
|
+
}
|
|
966
|
+
#sb-navigator-container {
|
|
967
|
+
height: 100vh;
|
|
968
|
+
overflow-y: auto;
|
|
969
|
+
border-right: 1px solid #eee;
|
|
970
|
+
padding: 1rem;
|
|
971
|
+
font-size: 14px;
|
|
972
|
+
color: var(--text-color);
|
|
973
|
+
background-color: var(--bg-color);
|
|
974
|
+
align-self: start;
|
|
975
|
+
z-index: 1000;
|
|
976
|
+
}
|
|
977
|
+
.sb-main-padded #sb-navigator-container {
|
|
978
|
+
margin: -1rem 1rem -1rem -1rem;
|
|
979
|
+
}
|
|
980
|
+
.sb-navigator-list {
|
|
981
|
+
list-style-type: none;
|
|
982
|
+
padding: 0;
|
|
983
|
+
margin: 0;
|
|
984
|
+
}
|
|
985
|
+
.sb-navigator-branch {
|
|
986
|
+
list-style-type: none;
|
|
987
|
+
}
|
|
988
|
+
.sb-navigator-item {
|
|
989
|
+
margin-bottom: 15px;
|
|
990
|
+
}
|
|
991
|
+
.sb-navigator-title {
|
|
992
|
+
color: var(--text-color);
|
|
993
|
+
text-decoration: none;
|
|
994
|
+
padding-block: 5px;
|
|
995
|
+
cursor: pointer;
|
|
996
|
+
}
|
|
997
|
+
.sb-navigator-entries {
|
|
998
|
+
padding-left: 15px;
|
|
999
|
+
}
|
|
1000
|
+
.sb-navigator-story-item {
|
|
1001
|
+
margin-bottom: 8px;
|
|
1002
|
+
margin-left: 8px;
|
|
1003
|
+
}
|
|
1004
|
+
.sb-navigator-story-link {
|
|
1005
|
+
color: var(--text-color);
|
|
1006
|
+
}
|
|
1007
|
+
.sb-navigator-story-link.active {
|
|
1008
|
+
font-weight: bold;
|
|
1009
|
+
color: hsl(212 100 46);
|
|
1010
|
+
}
|
|
1011
|
+
`,document.head.appendChild(s),(l=(a=i.querySelector(".sb-navigator-story-link.active"))==null?void 0:a.closest("details"))==null||l.scrollIntoView({block:"center"})},uY=Ot(wj(),1),Hp;function cY(){var e;return Hp||(Hp=new uY.default((e=ge.navigator)==null?void 0:e.userAgent).getBrowserInfo()),Hp}function dY(e){return e.browserInfo=cY(),e}function pY(e){let t=e.error||e;t.fromStorybook&&ge.sendTelemetryError(t)}function fY({reason:e}){e.fromStorybook&&ge.sendTelemetryError(e)}function wC(){tk.forEach(e=>{ge[Pw[e]]=sY[e]}),ge.sendTelemetryError=e=>{ge.__STORYBOOK_ADDONS_CHANNEL__.emit(Sw,dY(e))},document.addEventListener("DOMContentLoaded",()=>{ge.__STORYBOOK_ADDONS_CHANNEL__.on(Aw,e=>{e?document.body.setAttribute("inert","true"):document.body.removeAttribute("inert")})}),ge.addEventListener("error",pY),ge.addEventListener("unhandledrejection",fY),aY()}wC();const{createBrowserChannel:hY}=__STORYBOOK_MODULE_CHANNELS__,{addons:mY}=__STORYBOOK_MODULE_PREVIEW_API__,rg=hY({page:"preview"});mY.setChannel(rg);window.__STORYBOOK_ADDONS_CHANNEL__=rg;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=rg);const yY={"./src/foundation/Typography/Typography.stories.ts":()=>tt(()=>import("./Typography.stories-DEgPTqUk.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),"./src/foundation/Colors/Colors.stories.ts":()=>tt(()=>import("./Colors.stories-B6EPF0nC.js"),__vite__mapDeps([5,1,2,3,6]),import.meta.url),"./src/foundation/Spacing/Spacing.stories.ts":()=>tt(()=>import("./Spacing.stories-55zVSJ08.js"),__vite__mapDeps([7,1,2,3,8]),import.meta.url),"./src/foundation/Grid/Grid.stories.ts":()=>tt(()=>import("./Grid.stories-DCpTvq1h.js"),__vite__mapDeps([9,1,2,3,10]),import.meta.url),"./src/components/PzBtn/PzBtn.stories.ts":()=>tt(()=>import("./PzBtn.stories-Bu5qPhtp.js"),__vite__mapDeps([11,12,1,2,13,14,3,15]),import.meta.url),"./src/components/PzLink/PzLink.stories.ts":()=>tt(()=>import("./PzLink.stories-D1DLILnY.js"),__vite__mapDeps([16,12,1,2,17,18,3,19]),import.meta.url),"./src/components/PzRouterLink/PzRouterLink.stories.ts":()=>tt(()=>import("./PzRouterLink.stories-CRcNmODE.js"),__vite__mapDeps([20,17,1,2,18,12,3,19]),import.meta.url),"./src/components/PzIcon/PzIcon.stories.ts":()=>tt(()=>import("./PzIcon.stories-DE4e2be_.js"),__vite__mapDeps([21,1,2,12,3,22]),import.meta.url),"./src/components/PzImage/PzImage.stories.ts":()=>tt(()=>import("./PzImage.stories-DoGwhzIO.js"),__vite__mapDeps([23,1,2,3,24]),import.meta.url),"./src/components/PzTag/PzTag.stories.ts":()=>tt(()=>import("./PzTag.stories-B2WKURWu.js"),__vite__mapDeps([25,12,1,2,3,26]),import.meta.url),"./src/components/PzStatus/PzStatus.stories.ts":()=>tt(()=>import("./PzStatus.stories-u5QAVco_.js"),__vite__mapDeps([27,1,2,3,28]),import.meta.url),"./src/components/PzGrid/PzGrid.stories.ts":()=>tt(()=>import("./PzGrid.stories-C1Y3nz5O.js"),__vite__mapDeps([29,1,2,3,30]),import.meta.url),"./src/components/PzTabs/PzTabs.stories.ts":()=>tt(()=>import("./PzTabs.stories-CEoVVF4Z.js"),__vite__mapDeps([31,1,2,3,32]),import.meta.url),"./src/components/PzBreadcrumb/PzBreadcrumb.stories.ts":()=>tt(()=>import("./PzBreadcrumb.stories-b4V3GARM.js"),__vite__mapDeps([33,1,2,3,34]),import.meta.url),"./src/components/PzNav/PzNav.stories.ts":()=>tt(()=>import("./PzNav.stories-vqArvp6y.js"),__vite__mapDeps([35,1,2,3,36]),import.meta.url),"./src/components/PzPagination/PzPagination.stories.ts":()=>tt(()=>import("./PzPagination.stories-D-kZtPzf.js"),__vite__mapDeps([37,1,2,12,3,38]),import.meta.url),"./src/components/PzDropdown/PzDropdown.stories.ts":()=>tt(()=>import("./PzDropdown.stories-CPjzWBvH.js"),__vite__mapDeps([39,13,1,2,14,12,40,3,41]),import.meta.url),"./src/components/PzHint/PzHint.stories.ts":()=>tt(()=>import("./PzHint.stories-B6l3Ocr8.js"),__vite__mapDeps([42,12,1,2,43,40,44,3,45]),import.meta.url),"./src/components/PzInfoHint/PzInfoHint.stories.ts":()=>tt(()=>import("./PzInfoHint.stories-CWDV-k9d.js"),__vite__mapDeps([46,1,2,12,43,40,44,3,47]),import.meta.url),"./src/components/PzModal/PzModal.stories.ts":()=>tt(()=>import("./PzModal.stories-GJIUTcxR.js"),__vite__mapDeps([48,1,2,12,3,49]),import.meta.url),"./src/components/PzText/PzText.stories.ts":()=>tt(()=>import("./PzText.stories-CJhqWJtS.js"),__vite__mapDeps([50,1,2,3,4]),import.meta.url),"./src/components/PzTextClamp/PzTextClamp.stories.ts":()=>tt(()=>import("./PzTextClamp.stories-B-2pPs9u.js"),__vite__mapDeps([51,1,2,3,52]),import.meta.url),"./src/components/PzArrayClamp/PzArrayClamp.stories.ts":()=>tt(()=>import("./PzArrayClamp.stories-DYjTyM_w.js"),__vite__mapDeps([53,1,2,3,54]),import.meta.url),"./src/utils/PzDomHandler/PzDomHandler.stories.ts":()=>tt(()=>import("./PzDomHandler.stories-DqW3Mfem.js"),__vite__mapDeps([55,1,2,3,56]),import.meta.url),"./src/utils/PzScrollTo/PzScrollTo.stories.ts":()=>tt(()=>import("./PzScrollTo.stories-C0m8oG4O.js"),__vite__mapDeps([57,1,2,3,58]),import.meta.url),"./src/utils/PzValidatorXSS/PzValidatorXSS.stories.ts":()=>tt(()=>import("./PzValidatorXSS.stories-DqA_mla7.js"),__vite__mapDeps([59,1,2,3,60]),import.meta.url)};async function gY(e){return await yY[e]()}var bY=Object.defineProperty,SC=(e,t)=>{for(var r in t)bY(e,r,{get:t[r],enumerable:!0})};function vi(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}function vY(e){return e==null||typeof e!="object"&&typeof e!="function"}function EY(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Bre(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function $re(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var Vre="[object RegExp]",Ure="[object String]",Jre="[object Number]",Hre="[object Boolean]",Gre="[object Arguments]",Wre="[object Symbol]",zre="[object Date]",Kre="[object Map]",Yre="[object Set]",Xre="[object Array]",Qre="[object Function]",Zre="[object ArrayBuffer]",ene="[object Object]",tne="[object Error]",rne="[object DataView]",nne="[object Uint8Array]",one="[object Uint8ClampedArray]",ine="[object Uint16Array]",sne="[object Uint32Array]",ane="[object BigUint64Array]",lne="[object Int8Array]",une="[object Int16Array]",cne="[object Int32Array]",dne="[object BigInt64Array]",pne="[object Float32Array]",fne="[object Float64Array]";function TY(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}function _Y(e){return e==="__proto__"}function Vn(e,t,r){let n=Object.keys(t);for(let o=0;o<n.length;o++){let i=n[o];if(_Y(i))continue;let s=t[i],a=e[i],l=r(a,s,i,e,t);l!==void 0?e[i]=l:Array.isArray(s)?Array.isArray(a)?e[i]=Vn(a,s,r):e[i]=Vn([],s,r):vi(s)?vi(a)?e[i]=Vn(a,s,r):e[i]=Vn({},s,r):(a===void 0||s!==void 0)&&(e[i]=s)}return e}function hne(e,t){let r={};for(let n=0;n<t.length;n++){let o=t[n];Object.hasOwn(e,o)&&(r[o]=e[o])}return r}function Gp(e){if(vY(e))return e;if(Array.isArray(e)||EY(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e),r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){let n=new r(e);return n.lastIndex=e.lastIndex,n}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let n=new r(e.message);return n.stack=e.stack,n.name=e.name,n.cause=e.cause,n}if(typeof File<"u"&&e instanceof File)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e=="object"){let n=Object.create(t);return Object.assign(n,e)}return e}function mne(e,t){let r={...e};for(let n=0;n<t.length;n++){let o=t[n];delete r[o]}return r}function yne(e,t){return Vn(Gp(e),t,function r(n,o){if(Array.isArray(o))return Array.isArray(n)?Vn(Gp(n),o,r):Vn([],o,r);if(vi(o))return vi(n)?Vn(Gp(n),o,r):Vn({},o,r)})}var wY=Object.create,ng=Object.defineProperty,SY=Object.getOwnPropertyDescriptor,RC=Object.getOwnPropertyNames,RY=Object.getPrototypeOf,AY=Object.prototype.hasOwnProperty,gne=(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')}),OY=(e,t)=>function(){return t||(0,e[RC(e)[0]])((t={exports:{}}).exports,t),t.exports},bne=(e,t)=>{for(var r in t)ng(e,r,{get:t[r],enumerable:!0})},PY=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of RC(t))!AY.call(e,o)&&o!==r&&ng(e,o,{get:()=>t[o],enumerable:!(n=SY(t,o))||n.enumerable});return e},CY=(e,t,r)=>(r=e!=null?wY(RY(e)):{},PY(t||!e||!e.__esModule?ng(r,"default",{value:e,enumerable:!0}):r,e)),NY=OY({"../../node_modules/jsdoc-type-pratt-parser/dist/index.js"(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(c){return c.text!==void 0&&c.text!==""?`'${c.type}' with value '${c.text}'`:`'${c.type}'`}class o extends Error{constructor(m){super(`No parslet found for token: ${n(m)}`),this.token=m,Object.setPrototypeOf(this,o.prototype)}getToken(){return this.token}}class i extends Error{constructor(m){super(`The parsing ended early. The next token was: ${n(m)}`),this.token=m,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class s extends Error{constructor(m,_){let N=`Unexpected type: '${m.type}'.`;_!==void 0&&(N+=` Message: ${_}`),super(N),Object.setPrototypeOf(this,s.prototype)}}function a(c){return m=>m.startsWith(c)?{type:c,text:c}:null}function l(c){let m=0,_,N=c[0],H=!1;if(N!=="'"&&N!=='"')return null;for(;m<c.length;){if(m++,_=c[m],!H&&_===N){m++;break}H=!H&&_==="\\"}if(_!==N)throw new Error("Unterminated String");return c.slice(0,m)}let u=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),d=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 p(c){let m=c[0];if(!u.test(m))return null;let _=1;do{if(m=c[_],!d.test(m))break;_++}while(_<c.length);return c.slice(0,_)}let f=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function h(c){var m,_;return(_=(m=f.exec(c))===null||m===void 0?void 0:m[0])!==null&&_!==void 0?_:null}let y=c=>{let m=p(c);return m==null?null:{type:"Identifier",text:m}};function g(c){return m=>{if(!m.startsWith(c))return null;let _=m[c.length];return _!==void 0&&d.test(_)?null:{type:c,text:c}}}let v=c=>{let m=l(c);return m==null?null:{type:"StringValue",text:m}},b=c=>c.length>0?null:{type:"EOF",text:""},E=c=>{let m=h(c);return m===null?null:{type:"Number",text:m}},T=[b,a("=>"),a("("),a(")"),a("{"),a("}"),a("["),a("]"),a("|"),a("&"),a("<"),a(">"),a(","),a(";"),a("*"),a("?"),a("!"),a("="),a(":"),a("..."),a("."),a("#"),a("~"),a("/"),a("@"),g("undefined"),g("null"),g("function"),g("this"),g("new"),g("module"),g("event"),g("extends"),g("external"),g("infer"),g("typeof"),g("keyof"),g("readonly"),g("import"),g("is"),g("in"),g("asserts"),E,y,v],A=/^\s*\n\s*/;class P{static create(m){let _=this.read(m);m=_.text;let N=this.read(m);return m=N.text,new P(m,void 0,_.token,N.token)}constructor(m,_,N,H){this.text="",this.text=m,this.previous=_,this.current=N,this.next=H}static read(m,_=!1){_=_||A.test(m),m=m.trim();for(let N of T){let H=N(m);if(H!==null){let Z=Object.assign(Object.assign({},H),{startOfLine:_});return m=m.slice(Z.text.length),{text:m,token:Z}}}throw new Error("Unexpected Token "+m)}advance(){let m=P.read(this.text);return new P(m.text,this.current,this.next,m.token)}}function R(c){if(c===void 0)throw new Error("Unexpected undefined");if(c.type==="JsdocTypeKeyValue"||c.type==="JsdocTypeParameterList"||c.type==="JsdocTypeProperty"||c.type==="JsdocTypeReadonlyProperty"||c.type==="JsdocTypeObjectField"||c.type==="JsdocTypeJsdocObjectField"||c.type==="JsdocTypeIndexSignature"||c.type==="JsdocTypeMappedType"||c.type==="JsdocTypeTypeParameter")throw new s(c);return c}function S(c){return c.type==="JsdocTypeKeyValue"?O(c):R(c)}function w(c){return c.type==="JsdocTypeName"?c:O(c)}function O(c){if(c.type!=="JsdocTypeKeyValue")throw new s(c);return c}function q(c){var m;if(c.type==="JsdocTypeVariadic"){if(((m=c.element)===null||m===void 0?void 0:m.type)==="JsdocTypeName")return c;throw new s(c)}if(c.type!=="JsdocTypeNumber"&&c.type!=="JsdocTypeName")throw new s(c);return c}function M(c){if(c.type==="JsdocTypeTuple"||c.type==="JsdocTypeGeneric"&&c.meta.brackets==="square")return c;throw new s(c)}function k(c){return c.type==="JsdocTypeIndexSignature"||c.type==="JsdocTypeMappedType"}var x;(function(c){c[c.ALL=0]="ALL",c[c.PARAMETER_LIST=1]="PARAMETER_LIST",c[c.OBJECT=2]="OBJECT",c[c.KEY_VALUE=3]="KEY_VALUE",c[c.INDEX_BRACKETS=4]="INDEX_BRACKETS",c[c.UNION=5]="UNION",c[c.INTERSECTION=6]="INTERSECTION",c[c.PREFIX=7]="PREFIX",c[c.INFIX=8]="INFIX",c[c.TUPLE=9]="TUPLE",c[c.SYMBOL=10]="SYMBOL",c[c.OPTIONAL=11]="OPTIONAL",c[c.NULLABLE=12]="NULLABLE",c[c.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",c[c.FUNCTION=14]="FUNCTION",c[c.ARROW=15]="ARROW",c[c.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",c[c.GENERIC=17]="GENERIC",c[c.NAME_PATH=18]="NAME_PATH",c[c.PARENTHESIS=19]="PARENTHESIS",c[c.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(x||(x={}));class C{constructor(m,_,N){this.grammar=m,typeof _=="string"?this._lexer=P.create(_):this._lexer=_,this.baseParser=N}get lexer(){return this._lexer}parse(){let m=this.parseType(x.ALL);if(this.lexer.current.type!=="EOF")throw new i(this.lexer.current);return m}parseType(m){return R(this.parseIntermediateType(m))}parseIntermediateType(m){let _=this.tryParslets(null,m);if(_===null)throw new o(this.lexer.current);return this.parseInfixIntermediateType(_,m)}parseInfixIntermediateType(m,_){let N=this.tryParslets(m,_);for(;N!==null;)m=N,N=this.tryParslets(m,_);return m}tryParslets(m,_){for(let N of this.grammar){let H=N(this,_,m);if(H!==null)return H}return null}consume(m){return Array.isArray(m)||(m=[m]),m.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(m){this._lexer=m.lexer}}function j(c){return c==="}"||c==="EOF"||c==="|"||c===","||c===")"||c===">"}let F=(c,m,_)=>{let N=c.lexer.current.type,H=c.lexer.next.type;return _==null&&N==="?"&&!j(H)||_!=null&&N==="?"?(c.consume("?"),_==null?{type:"JsdocTypeNullable",element:c.parseType(x.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:R(_),meta:{position:"suffix"}}):null};function V(c){let m=(_,N,H)=>{let Z=_.lexer.current.type,de=_.lexer.next.type;if(H===null){if("parsePrefix"in c&&c.accept(Z,de))return c.parsePrefix(_)}else if("parseInfix"in c&&c.precedence>N&&c.accept(Z,de))return c.parseInfix(_,H);return null};return Object.defineProperty(m,"name",{value:c.name}),m}let G=V({name:"optionalParslet",accept:c=>c==="=",precedence:x.OPTIONAL,parsePrefix:c=>(c.consume("="),{type:"JsdocTypeOptional",element:c.parseType(x.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(c,m)=>(c.consume("="),{type:"JsdocTypeOptional",element:R(m),meta:{position:"suffix"}})}),se=V({name:"numberParslet",accept:c=>c==="Number",parsePrefix:c=>{let m=parseFloat(c.lexer.current.text);return c.consume("Number"),{type:"JsdocTypeNumber",value:m}}}),me=V({name:"parenthesisParslet",accept:c=>c==="(",parsePrefix:c=>{if(c.consume("("),c.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let m=c.parseIntermediateType(x.ALL);if(!c.consume(")"))throw new Error("Unterminated parenthesis");return m.type==="JsdocTypeParameterList"?m:m.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[m]}:{type:"JsdocTypeParenthesis",element:R(m)}}}),be=V({name:"specialTypesParslet",accept:(c,m)=>c==="?"&&j(m)||c==="null"||c==="undefined"||c==="*",parsePrefix:c=>{if(c.consume("null"))return{type:"JsdocTypeNull"};if(c.consume("undefined"))return{type:"JsdocTypeUndefined"};if(c.consume("*"))return{type:"JsdocTypeAny"};if(c.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+c.lexer.current.text)}}),Q=V({name:"notNullableParslet",accept:c=>c==="!",precedence:x.NULLABLE,parsePrefix:c=>(c.consume("!"),{type:"JsdocTypeNotNullable",element:c.parseType(x.NULLABLE),meta:{position:"prefix"}}),parseInfix:(c,m)=>(c.consume("!"),{type:"JsdocTypeNotNullable",element:R(m),meta:{position:"suffix"}})});function ee({allowTrailingComma:c}){return V({name:"parameterListParslet",accept:m=>m===",",precedence:x.PARAMETER_LIST,parseInfix:(m,_)=>{let N=[S(_)];m.consume(",");do try{let H=m.parseIntermediateType(x.PARAMETER_LIST);N.push(S(H))}catch(H){if(H instanceof o)break;throw H}while(m.consume(","));if(N.length>0&&N.slice(0,-1).some(H=>H.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:N}}})}let ve=V({name:"genericParslet",accept:(c,m)=>c==="<"||c==="."&&m==="<",precedence:x.GENERIC,parseInfix:(c,m)=>{let _=c.consume(".");c.consume("<");let N=[],H=!1;if(c.consume("infer")){H=!0;let Z=c.parseIntermediateType(x.SYMBOL);if(Z.type!=="JsdocTypeName")throw new s(Z,"A typescript asserts always has to have a name on the left side.");N.push(Z)}else do N.push(c.parseType(x.PARAMETER_LIST));while(c.consume(","));if(!c.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:R(m),elements:N},H?{infer:!0}:{}),{meta:{brackets:"angle",dot:_}})}}),pe=V({name:"unionParslet",accept:c=>c==="|",precedence:x.UNION,parseInfix:(c,m)=>{c.consume("|");let _=[];do _.push(c.parseType(x.UNION));while(c.consume("|"));return{type:"JsdocTypeUnion",elements:[R(m),..._]}}}),ie=[F,G,se,me,be,Q,ee({allowTrailingComma:!0}),ve,pe,G];function Y({allowSquareBracketsOnAnyType:c,allowJsdocNamePaths:m,pathGrammar:_}){return function(N,H,Z){if(Z==null||H>=x.NAME_PATH)return null;let de=N.lexer.current.type,Ae=N.lexer.next.type;if(!(de==="."&&Ae!=="<"||de==="["&&(c||Z.type==="JsdocTypeName")||m&&(de==="~"||de==="#")))return null;let Oe,Ue=!1;N.consume(".")?Oe="property":N.consume("[")?(Oe="property-brackets",Ue=!0):N.consume("~")?Oe="inner":(N.consume("#"),Oe="instance");let It=_!==null?new C(_,N.lexer,N):N,ht=It.parseIntermediateType(x.NAME_PATH);N.acceptLexerState(It);let Xr;switch(ht.type){case"JsdocTypeName":Xr={type:"JsdocTypeProperty",value:ht.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":Xr={type:"JsdocTypeProperty",value:ht.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":Xr={type:"JsdocTypeProperty",value:ht.value,meta:{quote:ht.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(ht.specialType==="event")Xr=ht;else throw new s(ht,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new s(ht,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(Ue&&!N.consume("]")){let ra=N.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${ra.type}' with text '${ra.text}'`)}return{type:"JsdocTypeNamePath",left:R(Z),right:Xr,pathType:Oe}}}function oe({allowedAdditionalTokens:c}){return V({name:"nameParslet",accept:m=>m==="Identifier"||m==="this"||m==="new"||c.includes(m),parsePrefix:m=>{let{type:_,text:N}=m.lexer.current;return m.consume(_),{type:"JsdocTypeName",value:N}}})}let le=V({name:"stringValueParslet",accept:c=>c==="StringValue",parsePrefix:c=>{let m=c.lexer.current.text;return c.consume("StringValue"),{type:"JsdocTypeStringValue",value:m.slice(1,-1),meta:{quote:m[0]==="'"?"single":"double"}}}});function $({pathGrammar:c,allowedTypes:m}){return V({name:"specialNamePathParslet",accept:_=>m.includes(_),parsePrefix:_=>{let N=_.lexer.current.type;if(_.consume(N),!_.consume(":"))return{type:"JsdocTypeName",value:N};let H,Z=_.lexer.current;if(_.consume("StringValue"))H={type:"JsdocTypeSpecialNamePath",value:Z.text.slice(1,-1),specialType:N,meta:{quote:Z.text[0]==="'"?"single":"double"}};else{let Oe="",Ue=["Identifier","@","/"];for(;Ue.some(It=>_.consume(It));)Oe+=Z.text,Z=_.lexer.current;H={type:"JsdocTypeSpecialNamePath",value:Oe,specialType:N,meta:{quote:void 0}}}let de=new C(c,_.lexer,_),Ae=de.parseInfixIntermediateType(H,x.ALL);return _.acceptLexerState(de),R(Ae)}})}let te=[oe({allowedAdditionalTokens:["external","module"]}),le,se,Y({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],ce=[...te,$({allowedTypes:["event"],pathGrammar:te})];function I(c){let m;if(c.type==="JsdocTypeParameterList")m=c.elements;else if(c.type==="JsdocTypeParenthesis")m=[c.element];else throw new s(c);return m.map(_=>S(_))}function D(c){let m=I(c);if(m.some(_=>_.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return m}function U({allowNamedParameters:c,allowNoReturnType:m,allowWithoutParenthesis:_,allowNewAsFunctionKeyword:N}){return V({name:"functionParslet",accept:(H,Z)=>H==="function"||N&&H==="new"&&Z==="(",parsePrefix:H=>{let Z=H.consume("new");H.consume("function");let de=H.lexer.current.type==="(";if(!de){if(!_)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let Ae={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:Z,parenthesis:de},Oe=H.parseIntermediateType(x.FUNCTION);if(c===void 0)Ae.parameters=D(Oe);else{if(Z&&Oe.type==="JsdocTypeFunction"&&Oe.arrow)return Ae=Oe,Ae.constructor=!0,Ae;Ae.parameters=I(Oe);for(let Ue of Ae.parameters)if(Ue.type==="JsdocTypeKeyValue"&&!c.includes(Ue.key))throw new Error(`only allowed named parameters are ${c.join(", ")} but got ${Ue.type}`)}if(H.consume(":"))Ae.returnType=H.parseType(x.PREFIX);else if(!m)throw new Error("function is missing return type");return Ae}})}function X({allowPostfix:c,allowEnclosingBrackets:m}){return V({name:"variadicParslet",accept:_=>_==="...",precedence:x.PREFIX,parsePrefix:_=>{_.consume("...");let N=m&&_.consume("[");try{let H=_.parseType(x.PREFIX);if(N&&!_.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:R(H),meta:{position:"prefix",squareBrackets:N}}}catch(H){if(H instanceof o){if(N)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw H}},parseInfix:c?(_,N)=>(_.consume("..."),{type:"JsdocTypeVariadic",element:R(N),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let K=V({name:"symbolParslet",accept:c=>c==="(",precedence:x.SYMBOL,parseInfix:(c,m)=>{if(m.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");c.consume("(");let _={type:"JsdocTypeSymbol",value:m.value};if(!c.consume(")")){let N=c.parseIntermediateType(x.SYMBOL);if(_.element=q(N),!c.consume(")"))throw new Error("Symbol does not end after value")}return _}}),re=V({name:"arrayBracketsParslet",precedence:x.ARRAY_BRACKETS,accept:(c,m)=>c==="["&&m==="]",parseInfix:(c,m)=>(c.consume("["),c.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[R(m)],meta:{brackets:"square",dot:!1}})});function fe({objectFieldGrammar:c,allowKeyTypes:m}){return V({name:"objectParslet",accept:_=>_==="{",parsePrefix:_=>{_.consume("{");let N={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!_.consume("}")){let H,Z=new C(c,_.lexer,_);for(;;){Z.acceptLexerState(_);let de=Z.parseIntermediateType(x.OBJECT);_.acceptLexerState(Z),de===void 0&&m&&(de=_.parseIntermediateType(x.OBJECT));let Ae=!1;if(de.type==="JsdocTypeNullable"&&(Ae=!0,de=de.element),de.type==="JsdocTypeNumber"||de.type==="JsdocTypeName"||de.type==="JsdocTypeStringValue"){let Oe;de.type==="JsdocTypeStringValue"&&(Oe=de.meta.quote),N.elements.push({type:"JsdocTypeObjectField",key:de.value.toString(),right:void 0,optional:Ae,readonly:!1,meta:{quote:Oe}})}else if(de.type==="JsdocTypeObjectField"||de.type==="JsdocTypeJsdocObjectField")N.elements.push(de);else throw new s(de);if(_.lexer.current.startOfLine)H="linebreak",_.consume(",")||_.consume(";");else if(_.consume(","))H="comma";else if(_.consume(";"))H="semicolon";else break;if(_.lexer.current.type==="}")break}if(N.meta.separator=H??"comma",H==="linebreak"&&(N.meta.propertyIndent=" "),!_.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return N}})}function ue({allowSquaredProperties:c,allowKeyTypes:m,allowReadonly:_,allowOptional:N}){return V({name:"objectFieldParslet",precedence:x.KEY_VALUE,accept:H=>H===":",parseInfix:(H,Z)=>{var de;let Ae=!1,Oe=!1;N&&Z.type==="JsdocTypeNullable"&&(Ae=!0,Z=Z.element),_&&Z.type==="JsdocTypeReadonlyProperty"&&(Oe=!0,Z=Z.element);let Ue=(de=H.baseParser)!==null&&de!==void 0?de:H;if(Ue.acceptLexerState(H),Z.type==="JsdocTypeNumber"||Z.type==="JsdocTypeName"||Z.type==="JsdocTypeStringValue"||k(Z)){if(k(Z)&&!c)throw new s(Z);Ue.consume(":");let It;Z.type==="JsdocTypeStringValue"&&(It=Z.meta.quote);let ht=Ue.parseType(x.KEY_VALUE);return H.acceptLexerState(Ue),{type:"JsdocTypeObjectField",key:k(Z)?Z:Z.value.toString(),right:ht,optional:Ae,readonly:Oe,meta:{quote:It}}}else{if(!m)throw new s(Z);Ue.consume(":");let It=Ue.parseType(x.KEY_VALUE);return H.acceptLexerState(Ue),{type:"JsdocTypeJsdocObjectField",left:R(Z),right:It}}}})}function ae({allowOptional:c,allowVariadic:m}){return V({name:"keyValueParslet",precedence:x.KEY_VALUE,accept:_=>_===":",parseInfix:(_,N)=>{let H=!1,Z=!1;if(c&&N.type==="JsdocTypeNullable"&&(H=!0,N=N.element),m&&N.type==="JsdocTypeVariadic"&&N.element!==void 0&&(Z=!0,N=N.element),N.type!=="JsdocTypeName")throw new s(N);_.consume(":");let de=_.parseType(x.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:N.value,right:de,optional:H,variadic:Z}}})}let ne=[...ie,U({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),le,$({allowedTypes:["module","external","event"],pathGrammar:ce}),X({allowEnclosingBrackets:!0,allowPostfix:!0}),oe({allowedAdditionalTokens:["keyof"]}),K,re,Y({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ce})],_e=[...ne,fe({objectFieldGrammar:[oe({allowedAdditionalTokens:["typeof","module","in"]}),ue({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...ne],allowKeyTypes:!0}),ae({allowOptional:!0,allowVariadic:!0})],ye=V({name:"typeOfParslet",accept:c=>c==="typeof",parsePrefix:c=>(c.consume("typeof"),{type:"JsdocTypeTypeof",element:c.parseType(x.KEY_OF_TYPE_OF)})}),Te=[oe({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),F,G,le,se,ue({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],we=[...ie,fe({allowKeyTypes:!1,objectFieldGrammar:Te}),oe({allowedAdditionalTokens:["event","external","in"]}),ye,U({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),X({allowEnclosingBrackets:!1,allowPostfix:!1}),oe({allowedAdditionalTokens:["keyof"]}),$({allowedTypes:["module"],pathGrammar:ce}),Y({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ce}),ae({allowOptional:!1,allowVariadic:!1}),K],qe=V({name:"assertsParslet",accept:c=>c==="asserts",parsePrefix:c=>{c.consume("asserts");let m=c.parseIntermediateType(x.SYMBOL);if(m.type!=="JsdocTypeName")throw new s(m,"A typescript asserts always has to have a name on the left side.");return c.consume("is")?{type:"JsdocTypeAsserts",left:m,right:R(c.parseIntermediateType(x.INFIX))}:{type:"JsdocTypeAssertsPlain",element:m}}});function Ve({allowQuestionMark:c}){return V({name:"tupleParslet",accept:m=>m==="[",parsePrefix:m=>{m.consume("[");let _={type:"JsdocTypeTuple",elements:[]};if(m.consume("]"))return _;let N=m.parseIntermediateType(x.ALL);if(N.type==="JsdocTypeParameterList"?N.elements[0].type==="JsdocTypeKeyValue"?_.elements=N.elements.map(O):_.elements=N.elements.map(R):N.type==="JsdocTypeKeyValue"?_.elements=[O(N)]:_.elements=[R(N)],!m.consume("]"))throw new Error("Unterminated '['");if(_.elements.some(H=>H.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return _}})}let He=V({name:"keyOfParslet",accept:c=>c==="keyof",parsePrefix:c=>(c.consume("keyof"),{type:"JsdocTypeKeyof",element:R(c.parseType(x.KEY_OF_TYPE_OF))})}),rt=V({name:"importParslet",accept:c=>c==="import",parsePrefix:c=>{if(c.consume("import"),!c.consume("("))throw new Error("Missing parenthesis after import keyword");let m=c.parseType(x.PREFIX);if(m.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!c.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:m}}}),it=V({name:"readonlyPropertyParslet",accept:c=>c==="readonly",parsePrefix:c=>(c.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:c.parseIntermediateType(x.KEY_VALUE)})}),$t=V({name:"arrowFunctionParslet",precedence:x.ARROW,accept:c=>c==="=>",parseInfix:(c,m)=>(c.consume("=>"),{type:"JsdocTypeFunction",parameters:I(m).map(w),arrow:!0,constructor:!1,parenthesis:!0,returnType:c.parseType(x.OBJECT)})}),Ct=V({name:"genericArrowFunctionParslet",accept:c=>c==="<",parsePrefix:c=>{let m=[];c.consume("<");do{let N,H=c.parseIntermediateType(x.SYMBOL);if(H.type==="JsdocTypeOptional"&&(H=H.element,N=c.parseType(x.SYMBOL)),H.type!=="JsdocTypeName")throw new s(H);let Z;c.consume("extends")&&(Z=c.parseType(x.SYMBOL),Z.type==="JsdocTypeOptional"&&(Z=Z.element,N=c.parseType(x.SYMBOL)));let de={type:"JsdocTypeTypeParameter",name:H};if(Z!==void 0&&(de.constraint=Z),N!==void 0&&(de.defaultValue=N),m.push(de),c.consume(">"))break}while(c.consume(","));let _=c.parseIntermediateType(x.SYMBOL);return _.typeParameters=m,_}}),Kr=V({name:"intersectionParslet",accept:c=>c==="&",precedence:x.INTERSECTION,parseInfix:(c,m)=>{c.consume("&");let _=[];do _.push(c.parseType(x.INTERSECTION));while(c.consume("&"));return{type:"JsdocTypeIntersection",elements:[R(m),..._]}}}),ho=V({name:"predicateParslet",precedence:x.INFIX,accept:c=>c==="is",parseInfix:(c,m)=>{if(m.type!=="JsdocTypeName")throw new s(m,"A typescript predicate always has to have a name on the left side.");return c.consume("is"),{type:"JsdocTypePredicate",left:m,right:R(c.parseIntermediateType(x.INFIX))}}}),Nt=V({name:"objectSquareBracketPropertyParslet",accept:c=>c==="[",parsePrefix:c=>{if(c.baseParser===void 0)throw new Error("Only allowed inside object grammar");c.consume("[");let m=c.lexer.current.text;c.consume("Identifier");let _;if(c.consume(":")){let N=c.baseParser;N.acceptLexerState(c),_={type:"JsdocTypeIndexSignature",key:m,right:N.parseType(x.INDEX_BRACKETS)},c.acceptLexerState(N)}else if(c.consume("in")){let N=c.baseParser;N.acceptLexerState(c),_={type:"JsdocTypeMappedType",key:m,right:N.parseType(x.ARRAY_BRACKETS)},c.acceptLexerState(N)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!c.consume("]"))throw new Error("Unterminated square brackets");return _}}),Kt=V({name:"readonlyArrayParslet",accept:c=>c==="readonly",parsePrefix:c=>(c.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:M(c.parseIntermediateType(x.ALL))})}),mo=V({name:"conditionalParslet",precedence:x.INFIX,accept:c=>c==="extends",parseInfix:(c,m)=>{c.consume("extends");let _=c.parseType(x.KEY_OF_TYPE_OF).element,N=c.parseType(x.INFIX);return c.consume(":"),{type:"JsdocTypeConditional",checksType:R(m),extendsType:_,trueType:N,falseType:c.parseType(x.INFIX)}}}),yo=[it,oe({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),F,G,le,se,ue({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),Nt],Qs=[...ie,fe({allowKeyTypes:!1,objectFieldGrammar:yo}),Kt,ye,He,rt,le,U({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Ve({allowQuestionMark:!1}),X({allowEnclosingBrackets:!1,allowPostfix:!1}),qe,mo,oe({allowedAdditionalTokens:["event","external","in"]}),$({allowedTypes:["module"],pathGrammar:ce}),re,$t,Ct,Y({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:ce}),Kr,ho,ae({allowVariadic:!0,allowOptional:!0})];function Yo(c,m){switch(m){case"closure":return new C(we,c).parse();case"jsdoc":return new C(_e,c).parse();case"typescript":return new C(Qs,c).parse()}}function Zs(c,m=["typescript","closure","jsdoc"]){let _;for(let N of m)try{return Yo(c,N)}catch(H){_=H}throw _}function Sr(c,m){let _=c[m.type];if(_===void 0)throw new Error(`In this set of transform rules exists no rule for type ${m.type}.`);return _(m,N=>Sr(c,N))}function Se(c){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function Xo(c){let m={params:[]};for(let _ of c.parameters)_.type==="JsdocTypeKeyValue"?_.key==="this"?m.this=_.right:_.key==="new"?m.new=_.right:m.params.push(_):m.params.push(_);return m}function Yr(c,m,_){return c==="prefix"?_+m:m+_}function xt(c,m){switch(m){case"double":return`"${c}"`;case"single":return`'${c}'`;case void 0:return c}}function he(){return{JsdocTypeParenthesis:(c,m)=>`(${c.element!==void 0?m(c.element):""})`,JsdocTypeKeyof:(c,m)=>`keyof ${m(c.element)}`,JsdocTypeFunction:(c,m)=>{var _;if(c.arrow){if(c.returnType===void 0)throw new Error("Arrow function needs a return type.");let N=`${c.typeParameters!==void 0?`<${(_=c.typeParameters.map(m).join(", "))!==null&&_!==void 0?_:""}>`:""}(${c.parameters.map(m).join(", ")}) => ${m(c.returnType)}`;return c.constructor&&(N="new "+N),N}else{let N=c.constructor?"new":"function";return c.parenthesis&&(N+=`(${c.parameters.map(m).join(", ")})`,c.returnType!==void 0&&(N+=`: ${m(c.returnType)}`)),N}},JsdocTypeName:c=>c.value,JsdocTypeTuple:(c,m)=>`[${c.elements.map(m).join(", ")}]`,JsdocTypeVariadic:(c,m)=>c.meta.position===void 0?"...":Yr(c.meta.position,m(c.element),"..."),JsdocTypeNamePath:(c,m)=>{let _=m(c.left),N=m(c.right);switch(c.pathType){case"inner":return`${_}~${N}`;case"instance":return`${_}#${N}`;case"property":return`${_}.${N}`;case"property-brackets":return`${_}[${N}]`}},JsdocTypeStringValue:c=>xt(c.value,c.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(c,m)=>{if(c.meta.brackets==="square"){let _=c.elements[0],N=m(_);return _.type==="JsdocTypeUnion"||_.type==="JsdocTypeIntersection"?`(${N})[]`:`${N}[]`}else return`${m(c.left)}${c.meta.dot?".":""}<${c.infer===!0?"infer ":""}${c.elements.map(m).join(", ")}>`},JsdocTypeImport:(c,m)=>`import(${m(c.element)})`,JsdocTypeObjectField:(c,m)=>{let _="";return c.readonly&&(_+="readonly "),typeof c.key=="string"?_+=xt(c.key,c.meta.quote):_+=m(c.key),c.optional&&(_+="?"),c.right===void 0?_:_+`: ${m(c.right)}`},JsdocTypeJsdocObjectField:(c,m)=>`${m(c.left)}: ${m(c.right)}`,JsdocTypeKeyValue:(c,m)=>{let _=c.key;return c.optional&&(_+="?"),c.variadic&&(_="..."+_),c.right===void 0?_:_+`: ${m(c.right)}`},JsdocTypeSpecialNamePath:c=>`${c.specialType}:${xt(c.value,c.meta.quote)}`,JsdocTypeNotNullable:(c,m)=>Yr(c.meta.position,m(c.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(c,m)=>Yr(c.meta.position,m(c.element),"?"),JsdocTypeNumber:c=>c.value.toString(),JsdocTypeObject:(c,m)=>{var _,N;return`{${(c.meta.separator==="linebreak"&&c.elements.length>1?`
|
|
1012
|
+
`+((_=c.meta.propertyIndent)!==null&&_!==void 0?_:""):"")+c.elements.map(m).join(c.meta.separator==="comma"?", ":c.meta.separator==="linebreak"?`
|
|
1013
|
+
`+((N=c.meta.propertyIndent)!==null&&N!==void 0?N:""):"; ")+(c.meta.separator==="linebreak"&&c.elements.length>1?`
|
|
1014
|
+
`:"")}}`},JsdocTypeOptional:(c,m)=>Yr(c.meta.position,m(c.element),"="),JsdocTypeSymbol:(c,m)=>`${c.value}(${c.element!==void 0?m(c.element):""})`,JsdocTypeTypeof:(c,m)=>`typeof ${m(c.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(c,m)=>c.elements.map(m).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(c,m)=>c.elements.map(m).join(" & "),JsdocTypeProperty:c=>xt(c.value,c.meta.quote),JsdocTypePredicate:(c,m)=>`${m(c.left)} is ${m(c.right)}`,JsdocTypeIndexSignature:(c,m)=>`[${c.key}: ${m(c.right)}]`,JsdocTypeMappedType:(c,m)=>`[${c.key} in ${m(c.right)}]`,JsdocTypeAsserts:(c,m)=>`asserts ${m(c.left)} is ${m(c.right)}`,JsdocTypeReadonlyArray:(c,m)=>`readonly ${m(c.element)}`,JsdocTypeAssertsPlain:(c,m)=>`asserts ${m(c.element)}`,JsdocTypeConditional:(c,m)=>`${m(c.checksType)} extends ${m(c.extendsType)} ? ${m(c.trueType)} : ${m(c.falseType)}`,JsdocTypeTypeParameter:(c,m)=>`${m(c.name)}${c.constraint!==void 0?` extends ${m(c.constraint)}`:""}${c.defaultValue!==void 0?` = ${m(c.defaultValue)}`:""}`}}let ea=he();function go(c){return Sr(ea,c)}let tp=["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 Vt(c){let m={type:"NameExpression",name:c};return tp.includes(c)&&(m.reservedWord=!0),m}let rp={JsdocTypeOptional:(c,m)=>{let _=m(c.element);return _.optional=!0,_},JsdocTypeNullable:(c,m)=>{let _=m(c.element);return _.nullable=!0,_},JsdocTypeNotNullable:(c,m)=>{let _=m(c.element);return _.nullable=!1,_},JsdocTypeVariadic:(c,m)=>{if(c.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let _=m(c.element);return _.repeatable=!0,_},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:c=>Vt(xt(c.value,c.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(c,m)=>{let _=Xo(c),N={type:"FunctionType",params:_.params.map(m)};return _.this!==void 0&&(N.this=m(_.this)),_.new!==void 0&&(N.new=m(_.new)),c.returnType!==void 0&&(N.result=m(c.returnType)),N},JsdocTypeGeneric:(c,m)=>({type:"TypeApplication",applications:c.elements.map(_=>m(_)),expression:m(c.left)}),JsdocTypeSpecialNamePath:c=>Vt(c.specialType+":"+xt(c.value,c.meta.quote)),JsdocTypeName:c=>c.value!=="function"?Vt(c.value):{type:"FunctionType",params:[]},JsdocTypeNumber:c=>Vt(c.value.toString()),JsdocTypeObject:(c,m)=>{let _={type:"RecordType",fields:[]};for(let N of c.elements)N.type!=="JsdocTypeObjectField"&&N.type!=="JsdocTypeJsdocObjectField"?_.fields.push({type:"FieldType",key:m(N),value:void 0}):_.fields.push(m(N));return _},JsdocTypeObjectField:(c,m)=>{if(typeof c.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:Vt(xt(c.key,c.meta.quote)),value:c.right===void 0?void 0:m(c.right)}},JsdocTypeJsdocObjectField:(c,m)=>({type:"FieldType",key:m(c.left),value:m(c.right)}),JsdocTypeUnion:(c,m)=>({type:"TypeUnion",elements:c.elements.map(_=>m(_))}),JsdocTypeKeyValue:(c,m)=>({type:"FieldType",key:Vt(c.key),value:c.right===void 0?void 0:m(c.right)}),JsdocTypeNamePath:(c,m)=>{let _=m(c.left),N;c.right.type==="JsdocTypeSpecialNamePath"?N=m(c.right).name:N=xt(c.right.value,c.right.meta.quote);let H=c.pathType==="inner"?"~":c.pathType==="instance"?"#":".";return Vt(`${_.name}${H}${N}`)},JsdocTypeSymbol:c=>{let m="",_=c.element,N=!1;return(_==null?void 0:_.type)==="JsdocTypeVariadic"&&(_.meta.position==="prefix"?m="...":N=!0,_=_.element),(_==null?void 0:_.type)==="JsdocTypeName"?m+=_.value:(_==null?void 0:_.type)==="JsdocTypeNumber"&&(m+=_.value.toString()),N&&(m+="..."),Vt(`${c.value}(${m})`)},JsdocTypeParenthesis:(c,m)=>m(R(c.element)),JsdocTypeMappedType:Se,JsdocTypeIndexSignature:Se,JsdocTypeImport:Se,JsdocTypeKeyof:Se,JsdocTypeTuple:Se,JsdocTypeTypeof:Se,JsdocTypeIntersection:Se,JsdocTypeProperty:Se,JsdocTypePredicate:Se,JsdocTypeAsserts:Se,JsdocTypeReadonlyArray:Se,JsdocTypeAssertsPlain:Se,JsdocTypeConditional:Se,JsdocTypeTypeParameter:Se};function np(c){return Sr(rp,c)}function lr(c){switch(c){case void 0:return"none";case"single":return"single";case"double":return"double"}}function op(c){switch(c){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function Qo(c,m){return m.length===2?{type:c,left:m[0],right:m[1]}:{type:c,left:m[0],right:Qo(c,m.slice(1))}}let ip={JsdocTypeOptional:(c,m)=>({type:"OPTIONAL",value:m(c.element),meta:{syntax:c.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(c,m)=>({type:"NULLABLE",value:m(c.element),meta:{syntax:c.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(c,m)=>({type:"NOT_NULLABLE",value:m(c.element),meta:{syntax:c.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(c,m)=>{let _={type:"VARIADIC",meta:{syntax:c.meta.position==="prefix"?"PREFIX_DOTS":c.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return c.element!==void 0&&(_.value=m(c.element)),_},JsdocTypeName:c=>({type:"NAME",name:c.value}),JsdocTypeTypeof:(c,m)=>({type:"TYPE_QUERY",name:m(c.element)}),JsdocTypeTuple:(c,m)=>({type:"TUPLE",entries:c.elements.map(m)}),JsdocTypeKeyof:(c,m)=>({type:"KEY_QUERY",value:m(c.element)}),JsdocTypeImport:c=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:lr(c.element.meta.quote),string:c.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(c,m)=>{let _=Xo(c),N={type:c.arrow?"ARROW":"FUNCTION",params:_.params.map(H=>{if(H.type==="JsdocTypeKeyValue"){if(H.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:H.key,typeName:m(H.right)}}else return m(H)}),new:null,returns:null};return _.this!==void 0?N.this=m(_.this):c.arrow||(N.this=null),_.new!==void 0&&(N.new=m(_.new)),c.returnType!==void 0&&(N.returns=m(c.returnType)),N},JsdocTypeGeneric:(c,m)=>{let _={type:"GENERIC",subject:m(c.left),objects:c.elements.map(m),meta:{syntax:c.meta.brackets==="square"?"SQUARE_BRACKET":c.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return c.meta.brackets==="square"&&c.elements[0].type==="JsdocTypeFunction"&&!c.elements[0].parenthesis&&(_.objects[0]={type:"NAME",name:"function"}),_},JsdocTypeObjectField:(c,m)=>{if(typeof c.key!="string")throw new Error("Index signatures and mapped types are not supported");if(c.right===void 0)return{type:"RECORD_ENTRY",key:c.key,quoteStyle:lr(c.meta.quote),value:null,readonly:!1};let _=m(c.right);return c.optional&&(_={type:"OPTIONAL",value:_,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:c.key.toString(),quoteStyle:lr(c.meta.quote),value:_,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(c,m)=>{if(c.right===void 0)return{type:"RECORD_ENTRY",key:c.key,quoteStyle:"none",value:null,readonly:!1};let _=m(c.right);return c.optional&&(_={type:"OPTIONAL",value:_,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:c.key,quoteStyle:"none",value:_,readonly:!1}},JsdocTypeObject:(c,m)=>{let _=[];for(let N of c.elements)(N.type==="JsdocTypeObjectField"||N.type==="JsdocTypeJsdocObjectField")&&_.push(m(N));return{type:"RECORD",entries:_}},JsdocTypeSpecialNamePath:c=>{if(c.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${c.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:lr(c.meta.quote),path:c.value}}},JsdocTypeNamePath:(c,m)=>{let _=!1,N,H;c.right.type==="JsdocTypeSpecialNamePath"&&c.right.specialType==="event"?(_=!0,N=c.right.value,H=lr(c.right.meta.quote)):(N=c.right.value,H=lr(c.right.meta.quote));let Z={type:op(c.pathType),owner:m(c.left),name:N,quoteStyle:H,hasEventPrefix:_};if(Z.owner.type==="MODULE"){let de=Z.owner;return Z.owner=Z.owner.value,de.value=Z,de}else return Z},JsdocTypeUnion:(c,m)=>Qo("UNION",c.elements.map(m)),JsdocTypeParenthesis:(c,m)=>({type:"PARENTHESIS",value:m(R(c.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:c=>({type:"STRING_VALUE",quoteStyle:lr(c.meta.quote),string:c.value}),JsdocTypeIntersection:(c,m)=>Qo("INTERSECTION",c.elements.map(m)),JsdocTypeNumber:c=>({type:"NUMBER_VALUE",number:c.value.toString()}),JsdocTypeSymbol:Se,JsdocTypeProperty:Se,JsdocTypePredicate:Se,JsdocTypeMappedType:Se,JsdocTypeIndexSignature:Se,JsdocTypeAsserts:Se,JsdocTypeReadonlyArray:Se,JsdocTypeAssertsPlain:Se,JsdocTypeConditional:Se,JsdocTypeTypeParameter:Se};function sp(c){return Sr(ip,c)}function ap(){return{JsdocTypeIntersection:(c,m)=>({type:"JsdocTypeIntersection",elements:c.elements.map(m)}),JsdocTypeGeneric:(c,m)=>({type:"JsdocTypeGeneric",left:m(c.left),elements:c.elements.map(m),meta:{dot:c.meta.dot,brackets:c.meta.brackets}}),JsdocTypeNullable:c=>c,JsdocTypeUnion:(c,m)=>({type:"JsdocTypeUnion",elements:c.elements.map(m)}),JsdocTypeUnknown:c=>c,JsdocTypeUndefined:c=>c,JsdocTypeTypeof:(c,m)=>({type:"JsdocTypeTypeof",element:m(c.element)}),JsdocTypeSymbol:(c,m)=>{let _={type:"JsdocTypeSymbol",value:c.value};return c.element!==void 0&&(_.element=m(c.element)),_},JsdocTypeOptional:(c,m)=>({type:"JsdocTypeOptional",element:m(c.element),meta:{position:c.meta.position}}),JsdocTypeObject:(c,m)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:c.elements.map(m)}),JsdocTypeNumber:c=>c,JsdocTypeNull:c=>c,JsdocTypeNotNullable:(c,m)=>({type:"JsdocTypeNotNullable",element:m(c.element),meta:{position:c.meta.position}}),JsdocTypeSpecialNamePath:c=>c,JsdocTypeObjectField:(c,m)=>({type:"JsdocTypeObjectField",key:c.key,right:c.right===void 0?void 0:m(c.right),optional:c.optional,readonly:c.readonly,meta:c.meta}),JsdocTypeJsdocObjectField:(c,m)=>({type:"JsdocTypeJsdocObjectField",left:m(c.left),right:m(c.right)}),JsdocTypeKeyValue:(c,m)=>({type:"JsdocTypeKeyValue",key:c.key,right:c.right===void 0?void 0:m(c.right),optional:c.optional,variadic:c.variadic}),JsdocTypeImport:(c,m)=>({type:"JsdocTypeImport",element:m(c.element)}),JsdocTypeAny:c=>c,JsdocTypeStringValue:c=>c,JsdocTypeNamePath:c=>c,JsdocTypeVariadic:(c,m)=>{let _={type:"JsdocTypeVariadic",meta:{position:c.meta.position,squareBrackets:c.meta.squareBrackets}};return c.element!==void 0&&(_.element=m(c.element)),_},JsdocTypeTuple:(c,m)=>({type:"JsdocTypeTuple",elements:c.elements.map(m)}),JsdocTypeName:c=>c,JsdocTypeFunction:(c,m)=>{let _={type:"JsdocTypeFunction",arrow:c.arrow,parameters:c.parameters.map(m),constructor:c.constructor,parenthesis:c.parenthesis};return c.returnType!==void 0&&(_.returnType=m(c.returnType)),_},JsdocTypeKeyof:(c,m)=>({type:"JsdocTypeKeyof",element:m(c.element)}),JsdocTypeParenthesis:(c,m)=>({type:"JsdocTypeParenthesis",element:m(c.element)}),JsdocTypeProperty:c=>c,JsdocTypePredicate:(c,m)=>({type:"JsdocTypePredicate",left:m(c.left),right:m(c.right)}),JsdocTypeIndexSignature:(c,m)=>({type:"JsdocTypeIndexSignature",key:c.key,right:m(c.right)}),JsdocTypeMappedType:(c,m)=>({type:"JsdocTypeMappedType",key:c.key,right:m(c.right)}),JsdocTypeAsserts:(c,m)=>({type:"JsdocTypeAsserts",left:m(c.left),right:m(c.right)}),JsdocTypeReadonlyArray:(c,m)=>({type:"JsdocTypeReadonlyArray",element:m(c.element)}),JsdocTypeAssertsPlain:(c,m)=>({type:"JsdocTypeAssertsPlain",element:m(c.element)}),JsdocTypeConditional:(c,m)=>({type:"JsdocTypeConditional",checksType:m(c.checksType),extendsType:m(c.extendsType),trueType:m(c.trueType),falseType:m(c.falseType)}),JsdocTypeTypeParameter:(c,m)=>({type:"JsdocTypeTypeParameter",name:m(c.name),constraint:c.constraint!==void 0?m(c.constraint):void 0,defaultValue:c.defaultValue!==void 0?m(c.defaultValue):void 0})}}let ta={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"],JsdocTypeReadonlyArray:["element"],JsdocTypeAssertsPlain:["element"],JsdocTypeConditional:["checksType","extendsType","trueType","falseType"],JsdocTypeTypeParameter:["name","constraint","defaultValue"]};function Zo(c,m,_,N,H){N==null||N(c,m,_);let Z=ta[c.type];for(let de of Z){let Ae=c[de];if(Ae!==void 0)if(Array.isArray(Ae))for(let Oe of Ae)Zo(Oe,c,de,N,H);else Zo(Ae,c,de,N,H)}H==null||H(c,m,_)}function lp(c,m,_){Zo(c,void 0,void 0,m,_)}r.catharsisTransform=np,r.identityTransformRules=ap,r.jtpTransform=sp,r.parse=Yo,r.stringify=go,r.stringifyRules=he,r.transform=Sr,r.traverse=lp,r.tryParse=Zs,r.visitorKeys=ta})}});const{UnknownArgTypesError:xY}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var IY=e=>e.name==="literal",MY=e=>e.value.replace(/['|"]/g,""),qY=e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=ja(r.value)}),{name:"object",value:t};default:throw new xY({type:e,language:"Flow"})}},ja=e=>{var o,i,s,a;let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"literal":return{...n,name:"other",value:e.value};case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(ja)};case"signature":return{...n,...qY(e)};case"union":return(o=e.elements)!=null&&o.every(IY)?{...n,name:"enum",value:(i=e.elements)==null?void 0:i.map(MY)}:{...n,name:t,value:(s=e.elements)==null?void 0:s.map(ja)};case"intersection":return{...n,name:t,value:(a=e.elements)==null?void 0:a.map(ja)};default:return{...n,name:"other",value:t}}},AC=/^['"]|['"]$/g,jY=e=>e.replace(AC,""),kY=e=>AC.test(e),OC=e=>{let t=jY(e);return kY(e)||Number.isNaN(Number(t))?t:Number(t)},DY=/^\(.*\) => /,_a=e=>{let{name:t,raw:r,computed:n,value:o}=e,i={};switch(typeof r<"u"&&(i.raw=r),t){case"enum":{let a=n?o:o.map(l=>OC(l.value));return{...i,name:t,value:a}}case"string":case"number":case"symbol":return{...i,name:t};case"func":return{...i,name:"function"};case"bool":case"boolean":return{...i,name:"boolean"};case"arrayOf":case"array":return{...i,name:"array",value:o&&_a(o)};case"object":return{...i,name:t};case"objectOf":return{...i,name:t,value:_a(o)};case"shape":case"exact":let s=TY(o,a=>_a(a));return{...i,name:"object",value:s};case"union":return{...i,name:"union",value:o.map(a=>_a(a))};case"instanceOf":case"element":case"elementType":default:{if((t==null?void 0:t.indexOf("|"))>0)try{let u=t.split("|").map(d=>JSON.parse(d));return{...i,name:"enum",value:u}}catch{}let a=o?`${t}(${o})`:t,l=DY.test(t)?"function":"other";return{...i,name:l,value:a}}}};const{UnknownArgTypesError:LY}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var bT=e=>e.name==="literal",FY=e=>e.name==="undefined",BY=e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=ka(r.value)}),{name:"object",value:t};default:throw new LY({type:e,language:"Typescript"})}},ka=e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(ka)};case"signature":return{...n,...BY(e)};case"union":{let o=e.elements.filter(i=>!FY(i));if(o.length>0&&o.every(bT)){let i=o.filter(bT);return{...n,name:"enum",value:i.map(s=>OC(s.value))}}return{...n,name:t,value:e.elements.map(ka)}}case"intersection":return{...n,name:t,value:e.elements.map(ka)};default:return{...n,name:"other",value:t}}},Pd=e=>{let{type:t,tsType:r,flowType:n}=e;try{if(t!=null)return _a(t);if(r!=null)return ka(r);if(n!=null)return ja(n)}catch(o){console.error(o)}return null},$Y=["null","undefined"];function og(e){return $Y.some(t=>t===e)}var VY=e=>{if(!e)return"";if(typeof e=="string")return e;throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`)};function ig(e){return!!e.__docgenInfo}function UY(e){return e!=null&&Object.keys(e).length>0}function JY(e,t){return ig(e)?e.__docgenInfo[t]:null}function HY(e){return ig(e)?VY(e.__docgenInfo.description):""}var $o;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})($o=$o||($o={}));function GY(e){return/^\s+$/.test(e)}function WY(e){let t=e.match(/\r+$/);return t==null?["",e]:[e.slice(-t[0].length),e.slice(0,-t[0].length)]}function ls(e){let t=e.match(/^\s+/);return t==null?["",e]:[e.slice(0,t[0].length),e.slice(t[0].length)]}function zY(e){return e.split(/\n/)}function KY(e={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},e)}function YY(e={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},e)}var XY=/^@\S+/;function QY({fence:e="```"}={}){let t=ZY(e),r=(n,o)=>t(n)?!o:o;return function(n){let o=[[]],i=!1;for(let s of n)XY.test(s.tokens.description)&&!i?o.push([s]):o[o.length-1].push(s),i=r(s.tokens.description,i);return o}}function ZY(e){return typeof e=="string"?t=>t.split(e).length%2===0:e}function e9({startLine:e=0,markers:t=$o}={}){let r=null,n=e;return function(o){let i=o,s=YY();if([s.lineEnd,i]=WY(i),[s.start,i]=ls(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]=ls(i)),r===null)return n++,null;let a=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]=ls(i)),a){let l=i.trimRight();s.end=i.slice(l.length-t.end.length),i=l.slice(0,-t.end.length)}if(s.description=i,r.push({number:n,source:o,tokens:s}),n++,a){let l=r.slice();return r=null,l}return null}}function t9({tokenizers:e}){return function(t){var r;let n=KY({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}}function r9(){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)}}function n9(e="compact"){let t=i9(e);return r=>{let n=0,o=[];for(let[a,{tokens:l}]of r.source.entries()){let u="";if(a===0&&l.description[0]!=="{")return r;for(let d of l.description)if(d==="{"&&n++,d==="}"&&n--,u+=d,n===0)break;if(o.push([l,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[a,[l,u]]of o.entries())l.type=u,a>0&&(l.type=l.postDelimiter.slice(s)+u,l.postDelimiter=l.postDelimiter.slice(0,s)),[l.postType,l.description]=ls(l.description.slice(u.length)),i.push(l.type);return i[0]=i[0].slice(1),i[i.length-1]=i[i.length-1].slice(0,-1),r.type=t(i),r}}var o9=e=>e.trim();function i9(e){return e==="compact"?t=>t.map(o9).join(""):e==="preserve"?t=>t.join(`
|
|
1015
|
+
`):e}var s9=e=>e&&e.startsWith('"')&&e.endsWith('"');function a9(){let e=(t,{tokens:r},n)=>r.type===""?t:n;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]=ls(n.slice(r.name.length)),t;let i=0,s="",a=!1,l;for(let d of n){if(i===0&&GY(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]==="]"){a=!0,s=s.slice(1,-1);let d=s.split("=");if(s=d[0].trim(),d[1]!==void 0&&(l=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(l==="")return t.problems.push({code:"spec:name:empty-default",message:"empty default value",line:t.source[0].number,critical:!0}),t;if(!s9(l)&&/=(?!>)/.test(l))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=a,t.name=s,r.name=u,l!==void 0&&(t.default=l),[r.postName,r.description]=ls(n.slice(r.name.length)),t}}function l9(e="compact",t=$o){let r=PC(e);return n=>(n.description=r(n.source,t),n)}function PC(e){return e==="compact"?u9:e==="preserve"?p9:e}function u9(e,t=$o){return e.map(({tokens:{description:r}})=>r.trim()).filter(r=>r!=="").join(" ")}var c9=(e,{tokens:t},r)=>t.type===""?e:r,d9=({tokens:e})=>(e.delimiter===""?e.start:e.postDelimiter.slice(1))+e.description;function p9(e,t=$o){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(c9,0)),e.map(d9).join(`
|
|
1016
|
+
`)}function f9({startLine:e=0,fence:t="```",spacing:r="compact",markers:n=$o,tokenizers:o=[r9(),n9(r),a9(),l9(r)]}={}){if(e<0||e%1>0)throw new Error("Invalid startLine");let i=e9({startLine:e,markers:n}),s=QY({fence:t}),a=t9({tokenizers:o}),l=PC(r);return function(u){let d=[];for(let p of zY(u)){let f=i(p);if(f===null)continue;let h=s(f),y=h.slice(1).map(a);d.push({description:l(h[0],n),tags:y,source:f,problems:y.reduce((g,v)=>g.concat(v.problems),[])})}return d}}function h9(e,t={}){return f9(t)(e)}var sg=CY(NY(),1);function m9(e){return e!=null&&e.includes("@")}function y9(e){let t=`/**
|
|
1017
|
+
`+(e??"").split(`
|
|
1018
|
+
`).map(n=>` * ${n}`).join(`
|
|
1019
|
+
`)+`
|
|
1020
|
+
*/`,r=h9(t,{spacing:"preserve"});if(!r||r.length===0)throw new Error("Cannot parse JSDoc tags.");return r[0]}var g9={tags:["param","arg","argument","returns","ignore","deprecated"]},b9=(e,t=g9)=>{if(!m9(e))return{includesJsDoc:!1,ignore:!1};let r=y9(e),n=v9(r,t.tags);return n.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description.trim(),extractedTags:n}};function v9(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=T9(n);o!=null&&(r.params==null&&(r.params=[]),r.params.push(o));break}case"deprecated":{let o=_9(n);o!=null&&(r.deprecated=o);break}case"returns":{let o=w9(n);o!=null&&(r.returns=o);break}}return r}function E9(e){return e.replace(/[\.-]$/,"")}function T9(e){if(!e.name||e.name==="-")return null;let t=xC(e.type);return{name:e.name,type:t,description:NC(e.description),getPrettyName:()=>E9(e.name),getTypeName:()=>t?IC(t):null}}function _9(e){return e.name?CC(e.name,e.description):null}function CC(e,t){let r=e===""?t:`${e} ${t}`;return NC(r)}function NC(e){let t=e.replace(/^- /g,"").trim();return t===""?null:t}function w9(e){let t=xC(e.type);return t?{type:t,description:CC(e.name,e.description),getTypeName:()=>IC(t)}:null}var Ko=(0,sg.stringifyRules)(),S9=Ko.JsdocTypeObject;Ko.JsdocTypeAny=()=>"any";Ko.JsdocTypeObject=(e,t)=>`(${S9(e,t)})`;Ko.JsdocTypeOptional=(e,t)=>t(e.element);Ko.JsdocTypeNullable=(e,t)=>t(e.element);Ko.JsdocTypeNotNullable=(e,t)=>t(e.element);Ko.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");function xC(e){try{return(0,sg.parse)(e,"typescript")}catch{return null}}function IC(e){return(0,sg.transform)(Ko,e)}function MC(e){return e.length>90}function R9(e){return e.length>50}function Bt(e,t){return e===t?{summary:e}:{summary:e,detail:t}}function A9(e,t){if(e!=null){let{value:r}=e;if(!og(r))return R9(r)?Bt(t==null?void 0:t.name,r):Bt(r)}return null}function qC({name:e,value:t,elements:r,raw:n}){return t??(r!=null?r.map(qC).join(" | "):n??e)}function O9({name:e,raw:t,elements:r}){return r!=null?Bt(r.map(qC).join(" | ")):t!=null?Bt(t.replace(/^\|\s*/,"")):Bt(e)}function P9({type:e,raw:t}){return t!=null?Bt(t):Bt(e)}function C9({type:e,raw:t}){return t!=null?MC(t)?Bt(e,t):Bt(t):Bt(e)}function N9(e){let{type:t}=e;return t==="object"?C9(e):P9(e)}function x9({name:e,raw:t}){return t!=null?MC(t)?Bt(e,t):Bt(t):Bt(e)}function I9(e){if(e==null)return null;switch(e.name){case"union":return O9(e);case"signature":return N9(e);default:return x9(e)}}var M9=(e,t)=>{let{flowType:r,description:n,required:o,defaultValue:i}=t;return{name:e,type:I9(r),required:o,description:n,defaultValue:A9(i??null,r??null)}};function q9({defaultValue:e}){if(e!=null){let{value:t}=e;if(!og(t))return Bt(t)}return null}function j9({tsType:e,required:t}){if(e==null)return null;let r=e.name;return t||(r=r.replace(" | undefined","")),Bt(["Array","Record","signature"].includes(e.name)?e.raw:r)}var k9=(e,t)=>{let{description:r,required:n}=t;return{name:e,type:j9(t),required:n,description:r,defaultValue:q9(t)}};function D9(e){return e!=null?Bt(e.name):null}function L9(e){let{computed:t,func:r}=e;return typeof t>"u"&&typeof r>"u"}function F9(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}function B9(e,t){if(e!=null){let{value:r}=e;if(!og(r))return L9(e)&&F9(t)?Bt(JSON.stringify(r)):Bt(r)}return null}function jC(e,t,r){let{description:n,required:o,defaultValue:i}=r;return{name:e,type:D9(t),required:o,description:n,defaultValue:B9(i,t)}}function Cd(e,t){var r;if(t!=null&&t.includesJsDoc){let{description:n,extractedTags:o}=t;n!=null&&(e.description=t.description);let i={...o,params:(r=o==null?void 0:o.params)==null?void 0:r.map(s=>({name:s.getPrettyName(),description:s.description}))};Object.values(i).filter(Boolean).length>0&&(e.jsDocTags=i)}return e}var $9=(e,t,r)=>{let n=jC(e,t.type,t);return n.sbType=Pd(t),Cd(n,r)},V9=(e,t,r)=>{let n=k9(e,t);return n.sbType=Pd(t),Cd(n,r)},U9=(e,t,r)=>{let n=M9(e,t);return n.sbType=Pd(t),Cd(n,r)},J9=(e,t,r)=>{let n=jC(e,{name:"unknown"},t);return Cd(n,r)},kC=e=>{switch(e){case"JavaScript":return $9;case"TypeScript":return V9;case"Flow":return U9;default:return J9}},DC=e=>e.type!=null?"JavaScript":e.flowType!=null?"Flow":e.tsType!=null?"TypeScript":"Unknown",H9=e=>{let t=DC(e[0]),r=kC(t);return e.map(n=>{var i;let o=n;return(i=n.type)!=null&&i.elements&&(o={...n,type:{...n.type,value:n.type.elements}}),LC(o.name,o,t,r)})},G9=e=>{let t=Object.keys(e),r=DC(e[t[0]]),n=kC(r);return t.map(o=>{let i=e[o];return i!=null?LC(o,i,r,n):null}).filter(Boolean)},W9=(e,t)=>{let r=JY(e,t);return UY(r)?Array.isArray(r)?H9(r):G9(r):[]};function LC(e,t,r,n){let o=b9(t.description);return o.includesJsDoc&&o.ignore?null:{propDef:n(e,t,o),jsDocTags:o.extractedTags,docgenInfo:t,typeSystem:r}}function z9(e){return e!=null?HY(e):""}var FC=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,i)=>(Object.entries(i).forEach(([s,a])=>{let l=o[s];Array.isArray(a)||typeof l>"u"?o[s]=a:vi(a)&&vi(l)?t[s]=!0:typeof a<"u"&&(o[s]=a)}),o),{});return Object.keys(t).forEach(o=>{let i=r.filter(Boolean).map(s=>s[o]).filter(s=>typeof s<"u");i.every(s=>vi(s))?n[o]=FC(...i):n[o]=i[i.length-1]}),n},K9=e=>{let{component:t,argTypes:r,parameters:{docs:n={}}}=e,{extractArgTypes:o}=n;if(!o||!t)return r;let i=o(t);return i?FC(i,r):r},Y9="storybook/docs",vne=`${Y9}/snippet-rendered`,wh=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(wh||{});/**
|
|
1021
|
+
* @vue/shared v3.5.32
|
|
1022
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1023
|
+
* @license MIT
|
|
1024
|
+
**/function Mr(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const De={},us=[],zt=()=>{},rs=()=>!1,Bi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Nd=e=>e.startsWith("onUpdate:"),je=Object.assign,ag=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},X9=Object.prototype.hasOwnProperty,Ke=(e,t)=>X9.call(e,t),Ee=Array.isArray,cs=e=>Ks(e)==="[object Map]",$i=e=>Ks(e)==="[object Set]",vT=e=>Ks(e)==="[object Date]",Q9=e=>Ks(e)==="[object RegExp]",Re=e=>typeof e=="function",Pe=e=>typeof e=="string",sr=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",lg=e=>(We(e)||Re(e))&&Re(e.then)&&Re(e.catch),BC=Object.prototype.toString,Ks=e=>BC.call(e),Z9=e=>Ks(e).slice(8,-1),xd=e=>Ks(e)==="[object Object]",Id=e=>Pe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Qn=Mr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),e4=Mr("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Md=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},t4=/-\w/g,et=Md(e=>e.replace(t4,t=>t.slice(1).toUpperCase())),r4=/\B([A-Z])/g,br=Md(e=>e.replace(r4,"-$1").toLowerCase()),Vi=Md(e=>e.charAt(0).toUpperCase()+e.slice(1)),ds=Md(e=>e?`on${Vi(e)}`:""),Jt=(e,t)=>!Object.is(e,t),ps=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},$C=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},qd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},wc=e=>{const t=Pe(e)?Number(e):NaN;return isNaN(t)?e:t};let ET;const jd=()=>ET||(ET=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function n4(e,t){return e+JSON.stringify(t,(r,n)=>typeof n=="function"?n.toString():n)}const o4="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",i4=Mr(o4);function Jl(e){if(Ee(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],o=Pe(n)?VC(n):Jl(n);if(o)for(const i in o)t[i]=o[i]}return t}else if(Pe(e)||We(e))return e}const s4=/;(?![^(]*\))/g,a4=/:([^]+)/,l4=/\/\*[^]*?\*\//g;function VC(e){const t={};return e.replace(l4,"").split(s4).forEach(r=>{if(r){const n=r.split(a4);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Hl(e){let t="";if(Pe(e))t=e;else if(Ee(e))for(let r=0;r<e.length;r++){const n=Hl(e[r]);n&&(t+=n+" ")}else if(We(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function u4(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Pe(t)&&(e.class=Hl(t)),r&&(e.style=Jl(r)),e}const c4="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",d4="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",p4="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",f4="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",h4=Mr(c4),m4=Mr(d4),y4=Mr(p4),g4=Mr(f4),b4="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",v4=Mr(b4);function UC(e){return!!e||e===""}function E4(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=no(e[n],t[n]);return r}function no(e,t){if(e===t)return!0;let r=vT(e),n=vT(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=sr(e),n=sr(t),r||n)return e===t;if(r=Ee(e),n=Ee(t),r||n)return r&&n?E4(e,t):!1;if(r=We(e),n=We(t),r||n){if(!r||!n)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const s in e){const a=e.hasOwnProperty(s),l=t.hasOwnProperty(s);if(a&&!l||!a&&l||!no(e[s],t[s]))return!1}}return String(e)===String(t)}function kd(e,t){return e.findIndex(r=>no(r,t))}const JC=e=>!!(e&&e.__v_isRef===!0),HC=e=>Pe(e)?e:e==null?"":Ee(e)||We(e)&&(e.toString===BC||!Re(e.toString))?JC(e)?HC(e.value):JSON.stringify(e,GC,2):String(e),GC=(e,t)=>JC(t)?GC(e,t.value):cs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,o],i)=>(r[Wp(n,i)+" =>"]=o,r),{})}:$i(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Wp(r))}:sr(t)?Wp(t):We(t)&&!Ee(t)&&!xd(t)?String(t):t,Wp=(e,t="")=>{var r;return sr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};function T4(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}/**
|
|
1025
|
+
* @vue/reactivity v3.5.32
|
|
1026
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1027
|
+
* @license MIT
|
|
1028
|
+
**/let Qt;class ug{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Qt,!t&&Qt&&(this.index=(Qt.scopes||(Qt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=Qt;try{return Qt=this,t()}finally{Qt=r}}}on(){++this._on===1&&(this.prevScope=Qt,Qt=this)}off(){this._on>0&&--this._on===0&&(Qt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function _4(e){return new ug(e)}function WC(){return Qt}function w4(e,t=!1){Qt&&Qt.cleanups.push(e)}let nt;const zp=new WeakSet;class pl{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Qt&&Qt.active&&Qt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,zp.has(this)&&(zp.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||KC(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,TT(this),YC(this);const t=nt,r=on;nt=this,on=!0;try{return this.fn()}finally{XC(this),nt=t,on=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)pg(t);this.deps=this.depsTail=void 0,TT(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?zp.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Sh(this)&&this.run()}get dirty(){return Sh(this)}}let zC=0,Da,La;function KC(e,t=!1){if(e.flags|=8,t){e.next=La,La=e;return}e.next=Da,Da=e}function cg(){zC++}function dg(){if(--zC>0)return;if(La){let t=La;for(La=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Da;){let t=Da;for(Da=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function YC(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function XC(e){let t,r=e.depsTail,n=r;for(;n;){const o=n.prevDep;n.version===-1?(n===r&&(r=o),pg(n),S4(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=r}function Sh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(QC(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function QC(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===fl)||(e.globalVersion=fl,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Sh(e))))return;e.flags|=2;const t=e.dep,r=nt,n=on;nt=e,on=!0;try{YC(e);const o=e.fn(e._value);(t.version===0||Jt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{nt=r,on=n,XC(e),e.flags&=-3}}function pg(e,t=!1){const{dep:r,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let i=r.computed.deps;i;i=i.nextDep)pg(i,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function S4(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}function R4(e,t){e.effect instanceof pl&&(e=e.effect.fn);const r=new pl(e);t&&je(r,t);try{r.run()}catch(o){throw r.stop(),o}const n=r.run.bind(r);return n.effect=r,n}function A4(e){e.effect.stop()}let on=!0;const ZC=[];function oo(){ZC.push(on),on=!1}function io(){const e=ZC.pop();on=e===void 0?!0:e}function TT(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=nt;nt=void 0;try{t()}finally{nt=r}}}let fl=0;class O4{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Dd{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!nt||!on||nt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==nt)r=this.activeLink=new O4(nt,this),nt.deps?(r.prevDep=nt.depsTail,nt.depsTail.nextDep=r,nt.depsTail=r):nt.deps=nt.depsTail=r,eN(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=nt.depsTail,r.nextDep=void 0,nt.depsTail.nextDep=r,nt.depsTail=r,nt.deps===r&&(nt.deps=n)}return r}trigger(t){this.version++,fl++,this.notify(t)}notify(t){cg();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{dg()}}}function eN(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)eN(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Sc=new WeakMap,Ei=Symbol(""),Rh=Symbol(""),hl=Symbol("");function er(e,t,r){if(on&&nt){let n=Sc.get(e);n||Sc.set(e,n=new Map);let o=n.get(r);o||(n.set(r,o=new Dd),o.map=n,o.key=r),o.track()}}function Un(e,t,r,n,o,i){const s=Sc.get(e);if(!s){fl++;return}const a=l=>{l&&l.trigger()};if(cg(),t==="clear")s.forEach(a);else{const l=Ee(e),u=l&&Id(r);if(l&&r==="length"){const d=Number(n);s.forEach((p,f)=>{(f==="length"||f===hl||!sr(f)&&f>=d)&&a(p)})}else switch((r!==void 0||s.has(void 0))&&a(s.get(r)),u&&a(s.get(hl)),t){case"add":l?u&&a(s.get("length")):(a(s.get(Ei)),cs(e)&&a(s.get(Rh)));break;case"delete":l||(a(s.get(Ei)),cs(e)&&a(s.get(Rh)));break;case"set":cs(e)&&a(s.get(Ei));break}}dg()}function P4(e,t){const r=Sc.get(e);return r&&r.get(t)}function Gi(e){const t=Fe(e);return t===e?t:(er(t,"iterate",hl),Tr(e)?t:t.map(un))}function Ld(e){return er(e=Fe(e),"iterate",hl),e}function bn(e,t){return An(e)?Is(Sn(e)?un(t):t):un(t)}const C4={__proto__:null,[Symbol.iterator](){return Kp(this,Symbol.iterator,e=>bn(this,e))},concat(...e){return Gi(this).concat(...e.map(t=>Ee(t)?Gi(t):t))},entries(){return Kp(this,"entries",e=>(e[1]=bn(this,e[1]),e))},every(e,t){return jn(this,"every",e,t,void 0,arguments)},filter(e,t){return jn(this,"filter",e,t,r=>r.map(n=>bn(this,n)),arguments)},find(e,t){return jn(this,"find",e,t,r=>bn(this,r),arguments)},findIndex(e,t){return jn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return jn(this,"findLast",e,t,r=>bn(this,r),arguments)},findLastIndex(e,t){return jn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return jn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Yp(this,"includes",e)},indexOf(...e){return Yp(this,"indexOf",e)},join(e){return Gi(this).join(e)},lastIndexOf(...e){return Yp(this,"lastIndexOf",e)},map(e,t){return jn(this,"map",e,t,void 0,arguments)},pop(){return da(this,"pop")},push(...e){return da(this,"push",e)},reduce(e,...t){return _T(this,"reduce",e,t)},reduceRight(e,...t){return _T(this,"reduceRight",e,t)},shift(){return da(this,"shift")},some(e,t){return jn(this,"some",e,t,void 0,arguments)},splice(...e){return da(this,"splice",e)},toReversed(){return Gi(this).toReversed()},toSorted(e){return Gi(this).toSorted(e)},toSpliced(...e){return Gi(this).toSpliced(...e)},unshift(...e){return da(this,"unshift",e)},values(){return Kp(this,"values",e=>bn(this,e))}};function Kp(e,t,r){const n=Ld(e),o=n[t]();return n!==e&&!Tr(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.done||(i.value=r(i.value)),i}),o}const N4=Array.prototype;function jn(e,t,r,n,o,i){const s=Ld(e),a=s!==e&&!Tr(e),l=s[t];if(l!==N4[t]){const p=l.apply(e,i);return a?un(p):p}let u=r;s!==e&&(a?u=function(p,f){return r.call(this,bn(e,p),f,e)}:r.length>2&&(u=function(p,f){return r.call(this,p,f,e)}));const d=l.call(s,u,n);return a&&o?o(d):d}function _T(e,t,r,n){const o=Ld(e),i=o!==e&&!Tr(e);let s=r,a=!1;o!==e&&(i?(a=n.length===0,s=function(u,d,p){return a&&(a=!1,u=bn(e,u)),r.call(this,u,bn(e,d),p,e)}):r.length>3&&(s=function(u,d,p){return r.call(this,u,d,p,e)}));const l=o[t](s,...n);return a?bn(e,l):l}function Yp(e,t,r){const n=Fe(e);er(n,"iterate",hl);const o=n[t](...r);return(o===-1||o===!1)&&Gl(r[0])?(r[0]=Fe(r[0]),n[t](...r)):o}function da(e,t,r=[]){oo(),cg();const n=Fe(e)[t].apply(e,r);return dg(),io(),n}const x4=Mr("__proto__,__v_isRef,__isVue"),tN=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(sr));function I4(e){sr(e)||(e=String(e));const t=Fe(this);return er(t,"has",e),t.hasOwnProperty(e)}class rN{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(r==="__v_isReactive")return!o;if(r==="__v_isReadonly")return o;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(o?i?lN:aN:i?sN:iN).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const s=Ee(t);if(!o){let l;if(s&&(l=C4[r]))return l;if(r==="hasOwnProperty")return I4}const a=Reflect.get(t,r,At(t)?t:n);if((sr(r)?tN.has(r):x4(r))||(o||er(t,"get",r),i))return a;if(At(a)){const l=s&&Id(r)?a:a.value;return o&&We(l)?Rc(l):l}return We(a)?o?Rc(a):Zn(a):a}}class nN extends rN{constructor(t=!1){super(!1,t)}set(t,r,n,o){let i=t[r];const s=Ee(t)&&Id(r);if(!this._isShallow){const u=An(i);if(!Tr(n)&&!An(n)&&(i=Fe(i),n=Fe(n)),!s&&At(i)&&!At(n))return u||(i.value=n),!0}const a=s?Number(r)<t.length:Ke(t,r),l=Reflect.set(t,r,n,At(t)?t:o);return t===Fe(o)&&(a?Jt(n,i)&&Un(t,"set",r,n):Un(t,"add",r,n)),l}deleteProperty(t,r){const n=Ke(t,r);t[r];const o=Reflect.deleteProperty(t,r);return o&&n&&Un(t,"delete",r,void 0),o}has(t,r){const n=Reflect.has(t,r);return(!sr(r)||!tN.has(r))&&er(t,"has",r),n}ownKeys(t){return er(t,"iterate",Ee(t)?"length":Ei),Reflect.ownKeys(t)}}class oN extends rN{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const M4=new nN,q4=new oN,j4=new nN(!0),k4=new oN(!0),Ah=e=>e,vu=e=>Reflect.getPrototypeOf(e);function D4(e,t,r){return function(...n){const o=this.__v_raw,i=Fe(o),s=cs(i),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=o[e](...n),d=r?Ah:t?Is:un;return!t&&er(i,"iterate",l?Rh:Ei),je(Object.create(u),{next(){const{value:p,done:f}=u.next();return f?{value:p,done:f}:{value:a?[d(p[0]),d(p[1])]:d(p),done:f}}})}}function Eu(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function L4(e,t){const r={get(o){const i=this.__v_raw,s=Fe(i),a=Fe(o);e||(Jt(o,a)&&er(s,"get",o),er(s,"get",a));const{has:l}=vu(s),u=t?Ah:e?Is:un;if(l.call(s,o))return u(i.get(o));if(l.call(s,a))return u(i.get(a));i!==s&&i.get(o)},get size(){const o=this.__v_raw;return!e&&er(Fe(o),"iterate",Ei),o.size},has(o){const i=this.__v_raw,s=Fe(i),a=Fe(o);return e||(Jt(o,a)&&er(s,"has",o),er(s,"has",a)),o===a?i.has(o):i.has(o)||i.has(a)},forEach(o,i){const s=this,a=s.__v_raw,l=Fe(a),u=t?Ah:e?Is:un;return!e&&er(l,"iterate",Ei),a.forEach((d,p)=>o.call(i,u(d),u(p),s))}};return je(r,e?{add:Eu("add"),set:Eu("set"),delete:Eu("delete"),clear:Eu("clear")}:{add(o){const i=Fe(this),s=vu(i),a=Fe(o),l=!t&&!Tr(o)&&!An(o)?a:o;return s.has.call(i,l)||Jt(o,l)&&s.has.call(i,o)||Jt(a,l)&&s.has.call(i,a)||(i.add(l),Un(i,"add",l,l)),this},set(o,i){!t&&!Tr(i)&&!An(i)&&(i=Fe(i));const s=Fe(this),{has:a,get:l}=vu(s);let u=a.call(s,o);u||(o=Fe(o),u=a.call(s,o));const d=l.call(s,o);return s.set(o,i),u?Jt(i,d)&&Un(s,"set",o,i):Un(s,"add",o,i),this},delete(o){const i=Fe(this),{has:s,get:a}=vu(i);let l=s.call(i,o);l||(o=Fe(o),l=s.call(i,o)),a&&a.call(i,o);const u=i.delete(o);return l&&Un(i,"delete",o,void 0),u},clear(){const o=Fe(this),i=o.size!==0,s=o.clear();return i&&Un(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{r[o]=D4(o,e,t)}),r}function Fd(e,t){const r=L4(e,t);return(n,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(Ke(r,o)&&o in n?r:n,o,i)}const F4={get:Fd(!1,!1)},B4={get:Fd(!1,!0)},$4={get:Fd(!0,!1)},V4={get:Fd(!0,!0)},iN=new WeakMap,sN=new WeakMap,aN=new WeakMap,lN=new WeakMap;function U4(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function J4(e){return e.__v_skip||!Object.isExtensible(e)?0:U4(Z9(e))}function Zn(e){return An(e)?e:Bd(e,!1,M4,F4,iN)}function fg(e){return Bd(e,!1,j4,B4,sN)}function Rc(e){return Bd(e,!0,q4,$4,aN)}function H4(e){return Bd(e,!0,k4,V4,lN)}function Bd(e,t,r,n,o){if(!We(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=J4(e);if(i===0)return e;const s=o.get(e);if(s)return s;const a=new Proxy(e,i===2?n:r);return o.set(e,a),a}function Sn(e){return An(e)?Sn(e.__v_raw):!!(e&&e.__v_isReactive)}function An(e){return!!(e&&e.__v_isReadonly)}function Tr(e){return!!(e&&e.__v_isShallow)}function Gl(e){return e?!!e.__v_raw:!1}function Fe(e){const t=e&&e.__v_raw;return t?Fe(t):e}function uN(e){return!Ke(e,"__v_skip")&&Object.isExtensible(e)&&$C(e,"__v_skip",!0),e}const un=e=>We(e)?Zn(e):e,Is=e=>We(e)?Rc(e):e;function At(e){return e?e.__v_isRef===!0:!1}function fs(e){return cN(e,!1)}function hg(e){return cN(e,!0)}function cN(e,t){return At(e)?e:new G4(e,t)}class G4{constructor(t,r){this.dep=new Dd,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Fe(t),this._value=r?t:un(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Tr(t)||An(t);t=n?t:Fe(t),Jt(t,r)&&(this._rawValue=t,this._value=n?t:un(t),this.dep.trigger())}}function W4(e){e.dep&&e.dep.trigger()}function Rn(e){return At(e)?e.value:e}function z4(e){return Re(e)?e():Rn(e)}const K4={get:(e,t,r)=>t==="__v_raw"?e:Rn(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const o=e[t];return At(o)&&!At(r)?(o.value=r,!0):Reflect.set(e,t,r,n)}};function mg(e){return Sn(e)?e:new Proxy(e,K4)}class Y4{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Dd,{get:n,set:o}=t(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function dN(e){return new Y4(e)}function X4(e){const t=Ee(e)?new Array(e.length):{};for(const r in e)t[r]=pN(e,r);return t}class Q4{constructor(t,r,n){this._object=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=sr(r)?r:String(r),this._raw=Fe(t);let o=!0,i=t;if(!Ee(t)||sr(this._key)||!Id(this._key))do o=!Gl(i)||Tr(i);while(o&&(i=i.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=Rn(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&At(this._raw[this._key])){const r=this._object[this._key];if(At(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return P4(this._raw,this._key)}}class Z4{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function e7(e,t,r){return At(e)?e:Re(e)?new Z4(e):We(e)&&arguments.length>1?pN(e,t,r):fs(e)}function pN(e,t,r){return new Q4(e,t,r)}class t7{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Dd(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=fl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&nt!==this)return KC(this,!0),!0}get value(){const t=this.dep.track();return QC(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function r7(e,t,r=!1){let n,o;return Re(e)?n=e:(n=e.get,o=e.set),new t7(n,o,r)}const n7={GET:"get",HAS:"has",ITERATE:"iterate"},o7={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Tu={},Ac=new WeakMap;let xo;function i7(){return xo}function fN(e,t=!1,r=xo){if(r){let n=Ac.get(r);n||Ac.set(r,n=[]),n.push(e)}}function s7(e,t,r=De){const{immediate:n,deep:o,once:i,scheduler:s,augmentJob:a,call:l}=r,u=A=>o?A:Tr(A)||o===!1||o===0?Jn(A,1):Jn(A);let d,p,f,h,y=!1,g=!1;if(At(e)?(p=()=>e.value,y=Tr(e)):Sn(e)?(p=()=>u(e),y=!0):Ee(e)?(g=!0,y=e.some(A=>Sn(A)||Tr(A)),p=()=>e.map(A=>{if(At(A))return A.value;if(Sn(A))return u(A);if(Re(A))return l?l(A,2):A()})):Re(e)?t?p=l?()=>l(e,2):e:p=()=>{if(f){oo();try{f()}finally{io()}}const A=xo;xo=d;try{return l?l(e,3,[h]):e(h)}finally{xo=A}}:p=zt,t&&o){const A=p,P=o===!0?1/0:o;p=()=>Jn(A(),P)}const v=WC(),b=()=>{d.stop(),v&&v.active&&ag(v.effects,d)};if(i&&t){const A=t;t=(...P)=>{A(...P),b()}}let E=g?new Array(e.length).fill(Tu):Tu;const T=A=>{if(!(!(d.flags&1)||!d.dirty&&!A))if(t){const P=d.run();if(o||y||(g?P.some((R,S)=>Jt(R,E[S])):Jt(P,E))){f&&f();const R=xo;xo=d;try{const S=[P,E===Tu?void 0:g&&E[0]===Tu?[]:E,h];E=P,l?l(t,3,S):t(...S)}finally{xo=R}}}else d.run()};return a&&a(T),d=new pl(p),d.scheduler=s?()=>s(T,!1):T,h=A=>fN(A,!1,d),f=d.onStop=()=>{const A=Ac.get(d);if(A){if(l)l(A,4);else for(const P of A)P();Ac.delete(d)}},t?n?T(!0):E=d.run():s?s(T.bind(null,!0),!0):d.run(),b.pause=d.pause.bind(d),b.resume=d.resume.bind(d),b.stop=b,b}function Jn(e,t=1/0,r){if(t<=0||!We(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,At(e))Jn(e.value,t,r);else if(Ee(e))for(let n=0;n<e.length;n++)Jn(e[n],t,r);else if($i(e)||cs(e))e.forEach(n=>{Jn(n,t,r)});else if(xd(e)){for(const n in e)Jn(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Jn(e[n],t,r)}return e}/**
|
|
1029
|
+
* @vue/runtime-core v3.5.32
|
|
1030
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1031
|
+
* @license MIT
|
|
1032
|
+
**/const hN=[];function a7(e){hN.push(e)}function l7(){hN.pop()}function u7(e,t){}const c7={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},d7={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Ys(e,t,r,n){try{return n?e(...n):e()}catch(o){Ui(o,t,r)}}function Wr(e,t,r,n){if(Re(e)){const o=Ys(e,t,r,n);return o&&lg(o)&&o.catch(i=>{Ui(i,t,r)}),o}if(Ee(e)){const o=[];for(let i=0;i<e.length;i++)o.push(Wr(e[i],t,r,n));return o}}function Ui(e,t,r,n=!0){const o=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||De;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${r}`;for(;a;){const d=a.ec;if(d){for(let p=0;p<d.length;p++)if(d[p](e,l,u)===!1)return}a=a.parent}if(i){oo(),Ys(i,null,10,[e,l,u]),io();return}}p7(e,r,o,n,s)}function p7(e,t,r,n=!0,o=!1){if(o)throw e;console.error(e)}const pr=[];let mn=-1;const hs=[];let Io=null,Ki=0;const mN=Promise.resolve();let Oc=null;function Wl(e){const t=Oc||mN;return e?t.then(this?e.bind(this):e):t}function f7(e){let t=mn+1,r=pr.length;for(;t<r;){const n=t+r>>>1,o=pr[n],i=yl(o);i<e||i===e&&o.flags&2?t=n+1:r=n}return t}function yg(e){if(!(e.flags&1)){const t=yl(e),r=pr[pr.length-1];!r||!(e.flags&2)&&t>=yl(r)?pr.push(e):pr.splice(f7(t),0,e),e.flags|=1,yN()}}function yN(){Oc||(Oc=mN.then(gN))}function ml(e){Ee(e)?hs.push(...e):Io&&e.id===-1?Io.splice(Ki+1,0,e):e.flags&1||(hs.push(e),e.flags|=1),yN()}function wT(e,t,r=mn+1){for(;r<pr.length;r++){const n=pr[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;pr.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Pc(e){if(hs.length){const t=[...new Set(hs)].sort((r,n)=>yl(r)-yl(n));if(hs.length=0,Io){Io.push(...t);return}for(Io=t,Ki=0;Ki<Io.length;Ki++){const r=Io[Ki];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Io=null,Ki=0}}const yl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function gN(e){try{for(mn=0;mn<pr.length;mn++){const t=pr[mn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ys(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;mn<pr.length;mn++){const t=pr[mn];t&&(t.flags&=-2)}mn=-1,pr.length=0,Pc(),Oc=null,(pr.length||hs.length)&&gN()}}let Yi,_u=[];function bN(e,t){var r,n;Yi=e,Yi?(Yi.enabled=!0,_u.forEach(({event:o,args:i})=>Yi.emit(o,...i)),_u=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{bN(i,t)}),setTimeout(()=>{Yi||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,_u=[])},3e3)):_u=[]}let Wt=null,$d=null;function gl(e){const t=Wt;return Wt=e,$d=e&&e.type.__scopeId||null,t}function h7(e){$d=e}function m7(){$d=null}const y7=e=>gg;function gg(e,t=Wt,r){if(!t||e._n)return e;const n=(...o)=>{n._d&&Tl(-1);const i=gl(t);let s;try{s=e(...o)}finally{gl(i),n._d&&Tl(1)}return s};return n._n=!0,n._c=!0,n._d=!0,n}function g7(e,t){if(Wt===null)return e;const r=Ql(Wt),n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,s,a,l=De]=t[o];i&&(Re(i)&&(i={mounted:i,updated:i}),i.deep&&Jn(s),n.push({dir:i,instance:r,value:s,oldValue:void 0,arg:a,modifiers:l}))}return e}function yn(e,t,r,n){const o=e.dirs,i=t&&t.dirs;for(let s=0;s<o.length;s++){const a=o[s];i&&(a.oldValue=i[s].value);let l=a.dir[n];l&&(oo(),Wr(l,r,8,[e.el,a,e,t]),io())}}function Fa(e,t){if(Ht){let r=Ht.provides;const n=Ht.parent&&Ht.parent.provides;n===r&&(r=Ht.provides=Object.create(n)),r[e]=t}}function Jr(e,t,r=!1){const n=fr();if(n||_i){let o=_i?_i._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return r&&Re(t)?t.call(n&&n.proxy):t}}function b7(){return!!(fr()||_i)}const vN=Symbol.for("v-scx"),EN=()=>Jr(vN);function v7(e,t){return zl(e,null,t)}function E7(e,t){return zl(e,null,{flush:"post"})}function TN(e,t){return zl(e,null,{flush:"sync"})}function Ti(e,t,r){return zl(e,t,r)}function zl(e,t,r=De){const{immediate:n,deep:o,flush:i,once:s}=r,a=je({},r),l=t&&n||!t&&i!=="post";let u;if(qi){if(i==="sync"){const h=EN();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=zt,h.resume=zt,h.pause=zt,h}}const d=Ht;a.call=(h,y,g)=>Wr(h,d,y,g);let p=!1;i==="post"?a.scheduler=h=>{St(h,d&&d.suspense)}:i!=="sync"&&(p=!0,a.scheduler=(h,y)=>{y?h():yg(h)}),a.augmentJob=h=>{t&&(h.flags|=4),p&&(h.flags|=2,d&&(h.id=d.uid,h.i=d))};const f=s7(e,t,a);return qi&&(u?u.push(f):l&&f()),f}function T7(e,t,r){const n=this.proxy,o=Pe(e)?e.includes(".")?_N(n,e):()=>n[e]:e.bind(n,n);let i;Re(t)?i=t:(i=t.handler,r=t);const s=Xs(this),a=zl(o,i.bind(n),r);return s(),a}function _N(e,t){const r=t.split(".");return()=>{let n=e;for(let o=0;o<r.length&&n;o++)n=n[r[o]];return n}}const ni=new WeakMap,wN=Symbol("_vte"),SN=e=>e.__isTeleport,di=e=>e&&(e.disabled||e.disabled===""),_7=e=>e&&(e.defer||e.defer===""),ST=e=>typeof SVGElement<"u"&&e instanceof SVGElement,RT=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Oh=(e,t)=>{const r=e&&e.to;return Pe(r)?t?t(r):null:r},w7={name:"Teleport",__isTeleport:!0,process(e,t,r,n,o,i,s,a,l,u){const{mc:d,pc:p,pbc:f,o:{insert:h,querySelector:y,createText:g,createComment:v}}=u,b=di(t.props);let{dynamicChildren:E}=t;const T=(R,S,w)=>{R.shapeFlag&16&&d(R.children,S,w,o,i,s,a,l)},A=(R=t)=>{const S=di(R.props),w=R.target=Oh(R.props,y),O=Ph(w,R,g,h);w&&(s!=="svg"&&ST(w)?s="svg":s!=="mathml"&&RT(w)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(w),S||(T(R,w,O),wa(R,!1)))},P=R=>{const S=()=>{ni.get(R)===S&&(ni.delete(R),di(R.props)&&(T(R,r,R.anchor),wa(R,!0)),A(R))};ni.set(R,S),St(S,i)};if(e==null){const R=t.el=g(""),S=t.anchor=g("");if(h(R,r,n),h(S,r,n),_7(t.props)||i&&i.pendingBranch){P(t);return}b&&(T(t,r,S),wa(t,!0)),A()}else{t.el=e.el;const R=t.anchor=e.anchor,S=ni.get(e);if(S){S.flags|=8,ni.delete(e),P(t);return}t.targetStart=e.targetStart;const w=t.target=e.target,O=t.targetAnchor=e.targetAnchor,q=di(e.props),M=q?r:w,k=q?R:O;if(s==="svg"||ST(w)?s="svg":(s==="mathml"||RT(w))&&(s="mathml"),E?(f(e.dynamicChildren,E,M,o,i,s,a),Pg(e,t,!0)):l||p(e,t,M,k,o,i,s,a,!1),b)q?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):wu(t,r,R,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const x=t.target=Oh(t.props,y);x&&wu(t,x,null,u,0)}else q&&wu(t,w,O,u,1);wa(t,b)}},remove(e,t,r,{um:n,o:{remove:o}},i){const{shapeFlag:s,children:a,anchor:l,targetStart:u,targetAnchor:d,target:p,props:f}=e;let h=i||!di(f);const y=ni.get(e);if(y&&(y.flags|=8,ni.delete(e),h=!1),p&&(o(u),o(d)),i&&o(l),s&16)for(let g=0;g<a.length;g++){const v=a[g];n(v,t,r,h,!!v.dynamicChildren)}},move:wu,hydrate:S7};function wu(e,t,r,{o:{insert:n},m:o},i=2){i===0&&n(e.targetAnchor,t,r);const{el:s,anchor:a,shapeFlag:l,children:u,props:d}=e,p=i===2;if(p&&n(s,t,r),(!p||di(d))&&l&16)for(let f=0;f<u.length;f++)o(u[f],t,r,2);p&&n(a,t,r)}function S7(e,t,r,n,o,i,{o:{nextSibling:s,parentNode:a,querySelector:l,insert:u,createText:d}},p){function f(v,b){let E=b;for(;E;){if(E&&E.nodeType===8){if(E.data==="teleport start anchor")t.targetStart=E;else if(E.data==="teleport anchor"){t.targetAnchor=E,v._lpa=t.targetAnchor&&s(t.targetAnchor);break}}E=s(E)}}function h(v,b){b.anchor=p(s(v),b,a(v),r,n,o,i)}const y=t.target=Oh(t.props,l),g=di(t.props);if(y){const v=y._lpa||y.firstChild;t.shapeFlag&16&&(g?(h(e,t),f(y,v),t.targetAnchor||Ph(y,t,d,u,a(e)===y?e:null)):(t.anchor=s(e),f(y,v),t.targetAnchor||Ph(y,t,d,u),p(v&&s(v),t,y,r,n,o,i))),wa(t,g)}else g&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=s(e));return t.anchor&&s(t.anchor)}const R7=w7;function wa(e,t){const r=e.ctx;if(r&&r.ut){let n,o;for(t?(n=e.el,o=e.anchor):(n=e.targetStart,o=e.targetAnchor);n&&n!==o;)n.nodeType===1&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}function Ph(e,t,r,n,o=null){const i=t.targetStart=r(""),s=t.targetAnchor=r("");return i[wN]=s,e&&(n(i,e,o),n(s,e,o)),s}const gn=Symbol("_leaveCb"),pa=Symbol("_enterCb");function bg(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Xl(()=>{e.isMounted=!0}),Hd(()=>{e.isUnmounting=!0}),e}const Lr=[Function,Array],vg={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Lr,onEnter:Lr,onAfterEnter:Lr,onEnterCancelled:Lr,onBeforeLeave:Lr,onLeave:Lr,onAfterLeave:Lr,onLeaveCancelled:Lr,onBeforeAppear:Lr,onAppear:Lr,onAfterAppear:Lr,onAppearCancelled:Lr},RN=e=>{const t=e.subTree;return t.component?RN(t.component):t},A7={name:"BaseTransition",props:vg,setup(e,{slots:t}){const r=fr(),n=bg();return()=>{const o=t.default&&Vd(t.default(),!0);if(!o||!o.length)return;const i=AN(o),s=Fe(e),{mode:a}=s;if(n.isLeaving)return Xp(i);const l=AT(i);if(!l)return Xp(i);let u=Ms(l,s,n,r,p=>u=p);l.type!==_t&&so(l,u);let d=r.subTree&&AT(r.subTree);if(d&&d.type!==_t&&!rn(d,l)&&RN(r).type!==_t){let p=Ms(d,s,n,r);if(so(d,p),a==="out-in"&&l.type!==_t)return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete p.afterLeave,d=void 0},Xp(i);a==="in-out"&&l.type!==_t?p.delayLeave=(f,h,y)=>{const g=PN(n,d);g[String(d.key)]=d,f[gn]=()=>{h(),f[gn]=void 0,delete u.delayedLeave,d=void 0},u.delayedLeave=()=>{y(),delete u.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return i}}};function AN(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==_t){t=r;break}}return t}const ON=A7;function PN(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Ms(e,t,r,n,o){const{appear:i,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:f,onLeave:h,onAfterLeave:y,onLeaveCancelled:g,onBeforeAppear:v,onAppear:b,onAfterAppear:E,onAppearCancelled:T}=t,A=String(e.key),P=PN(r,e),R=(O,q)=>{O&&Wr(O,n,9,q)},S=(O,q)=>{const M=q[1];R(O,q),Ee(O)?O.every(k=>k.length<=1)&&M():O.length<=1&&M()},w={mode:s,persisted:a,beforeEnter(O){let q=l;if(!r.isMounted)if(i)q=v||l;else return;O[gn]&&O[gn](!0);const M=P[A];M&&rn(e,M)&&M.el[gn]&&M.el[gn](),R(q,[O])},enter(O){if(P[A]===e)return;let q=u,M=d,k=p;if(!r.isMounted)if(i)q=b||u,M=E||d,k=T||p;else return;let x=!1;O[pa]=j=>{x||(x=!0,j?R(k,[O]):R(M,[O]),w.delayedLeave&&w.delayedLeave(),O[pa]=void 0)};const C=O[pa].bind(null,!1);q?S(q,[O,C]):C()},leave(O,q){const M=String(e.key);if(O[pa]&&O[pa](!0),r.isUnmounting)return q();R(f,[O]);let k=!1;O[gn]=C=>{k||(k=!0,q(),C?R(g,[O]):R(y,[O]),O[gn]=void 0,P[M]===e&&delete P[M])};const x=O[gn].bind(null,!1);P[M]=e,h?S(h,[O,x]):x()},clone(O){const q=Ms(O,t,r,n,o);return o&&o(q),q}};return w}function Xp(e){if(Yl(e))return e=On(e),e.children=null,e}function AT(e){if(!Yl(e))return SN(e.type)&&e.children?AN(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Re(r.default))return r.default()}}function so(e,t){e.shapeFlag&6&&e.component?(e.transition=t,so(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Vd(e,t=!1,r){let n=[],o=0;for(let i=0;i<e.length;i++){let s=e[i];const a=r==null?s.key:String(r)+String(s.key!=null?s.key:i);s.type===Lt?(s.patchFlag&128&&o++,n=n.concat(Vd(s.children,t,a))):(t||s.type!==_t)&&n.push(a!=null?On(s,{key:a}):s)}if(o>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function Kl(e,t){return Re(e)?je({name:e.name},t,{setup:e}):e}function O7(){const e=fr();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Eg(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function P7(e){const t=fr(),r=hg(null);if(t){const o=t.refs===De?t.refs={}:t.refs;Object.defineProperty(o,e,{enumerable:!0,get:()=>r.value,set:i=>r.value=i})}return r}function OT(e,t){let r;return!!((r=Object.getOwnPropertyDescriptor(e,t))&&!r.configurable)}const Cc=new WeakMap;function ms(e,t,r,n,o=!1){if(Ee(e)){e.forEach((g,v)=>ms(g,t&&(Ee(t)?t[v]:t),r,n,o));return}if(eo(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&ms(e,t,r,n.component.subTree);return}const i=n.shapeFlag&4?Ql(n.component):n.el,s=o?null:i,{i:a,r:l}=e,u=t&&t.r,d=a.refs===De?a.refs={}:a.refs,p=a.setupState,f=Fe(p),h=p===De?rs:g=>OT(d,g)?!1:Ke(f,g),y=(g,v)=>!(v&&OT(d,v));if(u!=null&&u!==l){if(PT(t),Pe(u))d[u]=null,h(u)&&(p[u]=null);else if(At(u)){const g=t;y(u,g.k)&&(u.value=null),g.k&&(d[g.k]=null)}}if(Re(l))Ys(l,a,12,[s,d]);else{const g=Pe(l),v=At(l);if(g||v){const b=()=>{if(e.f){const E=g?h(l)?p[l]:d[l]:y()||!e.k?l.value:d[e.k];if(o)Ee(E)&&ag(E,i);else if(Ee(E))E.includes(i)||E.push(i);else if(g)d[l]=[i],h(l)&&(p[l]=d[l]);else{const T=[i];y(l,e.k)&&(l.value=T),e.k&&(d[e.k]=T)}}else g?(d[l]=s,h(l)&&(p[l]=s)):v&&(y(l,e.k)&&(l.value=s),e.k&&(d[e.k]=s))};if(s){const E=()=>{b(),Cc.delete(e)};E.id=-1,Cc.set(e,E),St(E,r)}else PT(e),b()}}}function PT(e){const t=Cc.get(e);t&&(t.flags|=8,Cc.delete(e))}let CT=!1;const Wi=()=>{CT||(console.error("Hydration completed but contains mismatches."),CT=!0)},C7=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",N7=e=>e.namespaceURI.includes("MathML"),Su=e=>{if(e.nodeType===1){if(C7(e))return"svg";if(N7(e))return"mathml"}},ns=e=>e.nodeType===8;function x7(e){const{mt:t,p:r,o:{patchProp:n,createText:o,nextSibling:i,parentNode:s,remove:a,insert:l,createComment:u}}=e,d=(T,A)=>{if(!A.hasChildNodes()){r(null,T,A),Pc(),A._vnode=T;return}p(A.firstChild,T,null,null,null),Pc(),A._vnode=T},p=(T,A,P,R,S,w=!1)=>{w=w||!!A.dynamicChildren;const O=ns(T)&&T.data==="[",q=()=>g(T,A,P,R,S,O),{type:M,ref:k,shapeFlag:x,patchFlag:C}=A;let j=T.nodeType;A.el=T,C===-2&&(w=!1,A.dynamicChildren=null);let F=null;switch(M){case Vo:j!==3?A.children===""?(l(A.el=o(""),s(T),T),F=T):F=q():(T.data!==A.children&&(Wi(),T.data=A.children),F=i(T));break;case _t:E(T)?(F=i(T),b(A.el=T.content.firstChild,T,P)):j!==8||O?F=q():F=i(T);break;case wi:if(O&&(T=i(T),j=T.nodeType),j===1||j===3){F=T;const V=!A.children.length;for(let G=0;G<A.staticCount;G++)V&&(A.children+=F.nodeType===1?F.outerHTML:F.data),G===A.staticCount-1&&(A.anchor=F),F=i(F);return O?i(F):F}else q();break;case Lt:O?F=y(T,A,P,R,S,w):F=q();break;default:if(x&1)(j!==1||A.type.toLowerCase()!==T.tagName.toLowerCase())&&!E(T)?F=q():F=f(T,A,P,R,S,w);else if(x&6){A.slotScopeIds=S;const V=s(T);if(O?F=v(T):ns(T)&&T.data==="teleport start"?F=v(T,T.data,"teleport end"):F=i(T),t(A,V,null,P,R,Su(V),w),eo(A)&&!A.type.__asyncResolved){let G;O?(G=ft(Lt),G.anchor=F?F.previousSibling:V.lastChild):G=T.nodeType===3?Ng(""):ft("div"),G.el=T,A.component.subTree=G}}else x&64?j!==8?F=q():F=A.type.hydrate(T,A,P,R,S,w,e,h):x&128&&(F=A.type.hydrate(T,A,P,R,Su(s(T)),S,w,e,p))}return k!=null&&ms(k,null,R,A),F},f=(T,A,P,R,S,w)=>{w=w||!!A.dynamicChildren;const{type:O,props:q,patchFlag:M,shapeFlag:k,dirs:x,transition:C}=A,j=O==="input"||O==="option";if(j||M!==-1){x&&yn(A,null,P,"created");let F=!1;if(E(T)){F=tx(null,C)&&P&&P.vnode.props&&P.vnode.props.appear;const G=T.content.firstChild;if(F){const se=G.getAttribute("class");se&&(G.$cls=se),C.beforeEnter(G)}b(G,T,P),A.el=T=G}if(k&16&&!(q&&(q.innerHTML||q.textContent))){let G=h(T.firstChild,A,T,P,R,S,w);for(;G;){Ru(T,1)||Wi();const se=G;G=G.nextSibling,a(se)}}else if(k&8){let G=A.children;G[0]===`
|
|
1033
|
+
`&&(T.tagName==="PRE"||T.tagName==="TEXTAREA")&&(G=G.slice(1));const{textContent:se}=T;se!==G&&se!==G.replace(/\r\n|\r/g,`
|
|
1034
|
+
`)&&(Ru(T,0)||Wi(),T.textContent=A.children)}if(q){if(j||!w||M&48){const G=T.tagName.includes("-");for(const se in q)(j&&(se.endsWith("value")||se==="indeterminate")||Bi(se)&&!Qn(se)||se[0]==="."||G&&!Qn(se))&&n(T,se,null,q[se],void 0,P)}else if(q.onClick)n(T,"onClick",null,q.onClick,void 0,P);else if(M&4&&Sn(q.style))for(const G in q.style)q.style[G]}let V;(V=q&&q.onVnodeBeforeMount)&&yr(V,P,A),x&&yn(A,null,P,"beforeMount"),((V=q&&q.onVnodeMounted)||x||F)&&ix(()=>{V&&yr(V,P,A),F&&C.enter(T),x&&yn(A,null,P,"mounted")},R)}return T.nextSibling},h=(T,A,P,R,S,w,O)=>{O=O||!!A.dynamicChildren;const q=A.children,M=q.length;for(let k=0;k<M;k++){const x=O?q[k]:q[k]=gr(q[k]),C=x.type===Vo;T?(C&&!O&&k+1<M&&gr(q[k+1]).type===Vo&&(l(o(T.data.slice(x.children.length)),P,i(T)),T.data=x.children),T=p(T,x,R,S,w,O)):C&&!x.children?l(x.el=o(""),P):(Ru(P,1)||Wi(),r(null,x,P,null,R,S,Su(P),w))}return T},y=(T,A,P,R,S,w)=>{const{slotScopeIds:O}=A;O&&(S=S?S.concat(O):O);const q=s(T),M=h(i(T),A,q,P,R,S,w);return M&&ns(M)&&M.data==="]"?i(A.anchor=M):(Wi(),l(A.anchor=u("]"),q,M),M)},g=(T,A,P,R,S,w)=>{if(Ru(T.parentElement,1)||Wi(),A.el=null,w){const M=v(T);for(;;){const k=i(T);if(k&&k!==M)a(k);else break}}const O=i(T),q=s(T);return a(T),r(null,A,q,O,P,R,Su(q),S),P&&(P.vnode.el=A.el,zd(P,A.el)),O},v=(T,A="[",P="]")=>{let R=0;for(;T;)if(T=i(T),T&&ns(T)&&(T.data===A&&R++,T.data===P)){if(R===0)return i(T);R--}return T},b=(T,A,P)=>{const R=A.parentNode;R&&R.replaceChild(T,A);let S=P;for(;S;)S.vnode.el===A&&(S.vnode.el=S.subTree.el=T),S=S.parent},E=T=>T.nodeType===1&&T.tagName==="TEMPLATE";return[d,p]}const NT="data-allow-mismatch",I7={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Ru(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(NT);)e=e.parentElement;const r=e&&e.getAttribute(NT);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:n.includes(I7[t])}}const M7=jd().requestIdleCallback||(e=>setTimeout(e,1)),q7=jd().cancelIdleCallback||(e=>clearTimeout(e)),j7=(e=1e4)=>t=>{const r=M7(t,{timeout:e});return()=>q7(r)};function k7(e){const{top:t,left:r,bottom:n,right:o}=e.getBoundingClientRect(),{innerHeight:i,innerWidth:s}=window;return(t>0&&t<i||n>0&&n<i)&&(r>0&&r<s||o>0&&o<s)}const D7=e=>(t,r)=>{const n=new IntersectionObserver(o=>{for(const i of o)if(i.isIntersecting){n.disconnect(),t();break}},e);return r(o=>{if(o instanceof Element){if(k7(o))return t(),n.disconnect(),!1;n.observe(o)}}),()=>n.disconnect()},L7=e=>t=>{if(e){const r=matchMedia(e);if(r.matches)t();else return r.addEventListener("change",t,{once:!0}),()=>r.removeEventListener("change",t)}},F7=(e=[])=>(t,r)=>{Pe(e)&&(e=[e]);let n=!1;const o=s=>{n||(n=!0,i(),t(),s.target.dispatchEvent(new s.constructor(s.type,s)))},i=()=>{r(s=>{for(const a of e)s.removeEventListener(a,o)})};return r(s=>{for(const a of e)s.addEventListener(a,o,{once:!0})}),i};function B7(e,t){if(ns(e)&&e.data==="["){let r=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(ns(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else t(e)}const eo=e=>!!e.type.__asyncLoader;function $7(e){Re(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:o=200,hydrate:i,timeout:s,suspensible:a=!0,onError:l}=e;let u=null,d,p=0;const f=()=>(p++,u=null,h()),h=()=>{let y;return u||(y=u=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((v,b)=>{l(g,()=>v(f()),()=>b(g),p+1)});throw g}).then(g=>y!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),d=g,g)))};return Kl({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(y,g,v){let b=!1;(g.bu||(g.bu=[])).push(()=>b=!0);const E=()=>{b||v()},T=i?()=>{const A=i(E,P=>B7(y,P));A&&(g.bum||(g.bum=[])).push(A)}:E;d?T():h().then(()=>!g.isUnmounted&&T())},get __asyncResolved(){return d},setup(){const y=Ht;if(Eg(y),d)return()=>Au(d,y);const g=T=>{u=null,Ui(T,y,13,!n)};if(a&&y.suspense||qi)return h().then(T=>()=>Au(T,y)).catch(T=>(g(T),()=>n?ft(n,{error:T}):null));const v=fs(!1),b=fs(),E=fs(!!o);return o&&setTimeout(()=>{E.value=!1},o),s!=null&&setTimeout(()=>{if(!v.value&&!b.value){const T=new Error(`Async component timed out after ${s}ms.`);g(T),b.value=T}},s),h().then(()=>{v.value=!0,y.parent&&Yl(y.parent.vnode)&&y.parent.update()}).catch(T=>{g(T),b.value=T}),()=>{if(v.value&&d)return Au(d,y);if(b.value&&n)return ft(n,{error:b.value});if(r&&!E.value)return Au(r,y)}}})}function Au(e,t){const{ref:r,props:n,children:o,ce:i}=t.vnode,s=ft(e,n,o);return s.ref=r,s.ce=i,delete t.vnode.ce,s}const Yl=e=>e.type.__isKeepAlive,V7={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=fr(),n=r.ctx;if(!n.renderer)return()=>{const E=t.default&&t.default();return E&&E.length===1?E[0]:E};const o=new Map,i=new Set;let s=null;const a=r.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:p}}}=n,f=p("div");n.activate=(E,T,A,P,R)=>{const S=E.component;u(E,T,A,0,a),l(S.vnode,E,T,A,S,a,P,E.slotScopeIds,R),St(()=>{S.isDeactivated=!1,S.a&&ps(S.a);const w=E.props&&E.props.onVnodeMounted;w&&yr(w,S.parent,E)},a)},n.deactivate=E=>{const T=E.component;xc(T.m),xc(T.a),u(E,f,null,1,a),St(()=>{T.da&&ps(T.da);const A=E.props&&E.props.onVnodeUnmounted;A&&yr(A,T.parent,E),T.isDeactivated=!0},a)};function h(E){Qp(E),d(E,r,a,!0)}function y(E){o.forEach((T,A)=>{const P=Dh(eo(T)?T.type.__asyncResolved||{}:T.type);P&&!E(P)&&g(A)})}function g(E){const T=o.get(E);T&&(!s||!rn(T,s))?h(T):s&&Qp(s),o.delete(E),i.delete(E)}Ti(()=>[e.include,e.exclude],([E,T])=>{E&&y(A=>Sa(E,A)),T&&y(A=>!Sa(T,A))},{flush:"post",deep:!0});let v=null;const b=()=>{v!=null&&(Ic(r.subTree.type)?St(()=>{o.set(v,Ou(r.subTree))},r.subTree.suspense):o.set(v,Ou(r.subTree)))};return Xl(b),Jd(b),Hd(()=>{o.forEach(E=>{const{subTree:T,suspense:A}=r,P=Ou(T);if(E.type===P.type&&E.key===P.key){Qp(P);const R=P.component.da;R&&St(R,A);return}h(E)})}),()=>{if(v=null,!t.default)return s=null;const E=t.default(),T=E[0];if(E.length>1)return s=null,E;if(!cn(T)||!(T.shapeFlag&4)&&!(T.shapeFlag&128))return s=null,T;let A=Ou(T);if(A.type===_t)return s=null,A;const P=A.type,R=Dh(eo(A)?A.type.__asyncResolved||{}:P),{include:S,exclude:w,max:O}=e;if(S&&(!R||!Sa(S,R))||w&&R&&Sa(w,R))return A.shapeFlag&=-257,s=A,T;const q=A.key==null?P:A.key,M=o.get(q);return A.el&&(A=On(A),T.shapeFlag&128&&(T.ssContent=A)),v=q,M?(A.el=M.el,A.component=M.component,A.transition&&so(A,A.transition),A.shapeFlag|=512,i.delete(q),i.add(q)):(i.add(q),O&&i.size>parseInt(O,10)&&g(i.values().next().value)),A.shapeFlag|=256,s=A,Ic(T.type)?T:A}}},U7=V7;function Sa(e,t){return Ee(e)?e.some(r=>Sa(r,t)):Pe(e)?e.split(",").includes(t):Q9(e)?(e.lastIndex=0,e.test(t)):!1}function CN(e,t){xN(e,"a",t)}function NN(e,t){xN(e,"da",t)}function xN(e,t,r=Ht){const n=e.__wdc||(e.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ud(t,n,r),r){let o=r.parent;for(;o&&o.parent;)Yl(o.parent.vnode)&&J7(n,t,r,o),o=o.parent}}function J7(e,t,r,n){const o=Ud(t,e,n,!0);Gd(()=>{ag(n[t],o)},r)}function Qp(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ou(e){return e.shapeFlag&128?e.ssContent:e}function Ud(e,t,r=Ht,n=!1){if(r){const o=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...s)=>{oo();const a=Xs(r),l=Wr(t,r,e,s);return a(),io(),l});return n?o.unshift(i):o.push(i),i}}const po=e=>(t,r=Ht)=>{(!qi||e==="sp")&&Ud(e,(...n)=>t(...n),r)},IN=po("bm"),Xl=po("m"),Tg=po("bu"),Jd=po("u"),Hd=po("bum"),Gd=po("um"),MN=po("sp"),qN=po("rtg"),jN=po("rtc");function kN(e,t=Ht){Ud("ec",e,t)}const _g="components",H7="directives";function G7(e,t){return wg(_g,e,!0,t)||e}const DN=Symbol.for("v-ndc");function W7(e){return Pe(e)?wg(_g,e,!1)||e:e||DN}function z7(e){return wg(H7,e)}function wg(e,t,r=!0,n=!1){const o=Wt||Ht;if(o){const i=o.type;if(e===_g){const a=Dh(i,!1);if(a&&(a===t||a===et(t)||a===Vi(et(t))))return i}const s=xT(o[e]||i[e],t)||xT(o.appContext[e],t);return!s&&n?i:s}}function xT(e,t){return e&&(e[t]||e[et(t)]||e[Vi(et(t))])}function K7(e,t,r,n){let o;const i=r&&r[n],s=Ee(e);if(s||Pe(e)){const a=s&&Sn(e);let l=!1,u=!1;a&&(l=!Tr(e),u=An(e),e=Ld(e)),o=new Array(e.length);for(let d=0,p=e.length;d<p;d++)o[d]=t(l?u?Is(un(e[d])):un(e[d]):e[d],d,void 0,i&&i[d])}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,i&&i[a])}else if(We(e))if(e[Symbol.iterator])o=Array.from(e,(a,l)=>t(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const d=a[l];o[l]=t(e[d],d,l,i&&i[l])}}else o=[];return r&&(r[n]=o),o}function Y7(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(Ee(n))for(let o=0;o<n.length;o++)e[n[o].name]=n[o].fn;else n&&(e[n.name]=n.key?(...o)=>{const i=n.fn(...o);return i&&(i.key=n.key),i}:n.fn)}return e}function X7(e,t,r={},n,o){if(Wt.ce||Wt.parent&&eo(Wt.parent)&&Wt.parent.ce){const u=Object.keys(r).length>0;return t!=="default"&&(r.name=t),El(),Mc(Lt,null,[ft("slot",r,n&&n())],u?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),El();const s=i&&Sg(i(r)),a=r.key||s&&s.key,l=Mc(Lt,{key:(a&&!sr(a)?a:`_${t}`)+(!s&&n?"_fb":"")},s||(n?n():[]),s&&e._===1?64:-2);return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Sg(e){return e.some(t=>cn(t)?!(t.type===_t||t.type===Lt&&!Sg(t.children)):!0)?e:null}function Q7(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:ds(n)]=e[n];return r}const Ch=e=>e?px(e)?Ql(e):Ch(e.parent):null,Ba=je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ch(e.parent),$root:e=>Ch(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Rg(e),$forceUpdate:e=>e.f||(e.f=()=>{yg(e.update)}),$nextTick:e=>e.n||(e.n=Wl.bind(e.proxy)),$watch:e=>T7.bind(e)}),Zp=(e,t)=>e!==De&&!e.__isScriptSetup&&Ke(e,t),Nh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:o,props:i,accessCache:s,type:a,appContext:l}=e;if(t[0]!=="$"){const f=s[t];if(f!==void 0)switch(f){case 1:return n[t];case 2:return o[t];case 4:return r[t];case 3:return i[t]}else{if(Zp(n,t))return s[t]=1,n[t];if(o!==De&&Ke(o,t))return s[t]=2,o[t];if(Ke(i,t))return s[t]=3,i[t];if(r!==De&&Ke(r,t))return s[t]=4,r[t];xh&&(s[t]=0)}}const u=Ba[t];let d,p;if(u)return t==="$attrs"&&er(e.attrs,"get",""),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(r!==De&&Ke(r,t))return s[t]=4,r[t];if(p=l.config.globalProperties,Ke(p,t))return p[t]},set({_:e},t,r){const{data:n,setupState:o,ctx:i}=e;return Zp(o,t)?(o[t]=r,!0):n!==De&&Ke(n,t)?(n[t]=r,!0):Ke(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:o,props:i,type:s}},a){let l;return!!(r[a]||e!==De&&a[0]!=="$"&&Ke(e,a)||Zp(t,a)||Ke(i,a)||Ke(n,a)||Ke(Ba,a)||Ke(o.config.globalProperties,a)||(l=s.__cssModules)&&l[a])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Ke(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},Z7=je({},Nh,{get(e,t){if(t!==Symbol.unscopables)return Nh.get(e,t,e)},has(e,t){return t[0]!=="_"&&!i4(t)}});function eX(){return null}function tX(){return null}function rX(e){}function nX(e){}function oX(){return null}function iX(){}function sX(e,t){return null}function aX(){return LN().slots}function lX(){return LN().attrs}function LN(e){const t=fr();return t.setupContext||(t.setupContext=yx(t))}function bl(e){return Ee(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function uX(e,t){const r=bl(e);for(const n in t){if(n.startsWith("__skip"))continue;let o=r[n];o?Ee(o)||Re(o)?o=r[n]={type:o,default:t[n]}:o.default=t[n]:o===null&&(o=r[n]={default:t[n]}),o&&t[`__skip_${n}`]&&(o.skipFactory=!0)}return r}function cX(e,t){return!e||!t?e||t:Ee(e)&&Ee(t)?e.concat(t):je({},bl(e),bl(t))}function dX(e,t){const r={};for(const n in e)t.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>e[n]});return r}function pX(e){const t=fr(),r=qi;let n=e();_l(),r&&gs(!1);const o=()=>{Xs(t),r&&gs(!0)},i=()=>{fr()!==t&&t.scope.off(),_l(),r&&gs(!1)};return lg(n)&&(n=n.catch(s=>{throw o(),Promise.resolve().then(()=>Promise.resolve().then(i)),s})),[n,()=>{o(),Promise.resolve().then(i)}]}let xh=!0;function fX(e){const t=Rg(e),r=e.proxy,n=e.ctx;xh=!1,t.beforeCreate&&IT(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:a,provide:l,inject:u,created:d,beforeMount:p,mounted:f,beforeUpdate:h,updated:y,activated:g,deactivated:v,beforeDestroy:b,beforeUnmount:E,destroyed:T,unmounted:A,render:P,renderTracked:R,renderTriggered:S,errorCaptured:w,serverPrefetch:O,expose:q,inheritAttrs:M,components:k,directives:x,filters:C}=t;if(u&&hX(u,n,null),s)for(const V in s){const G=s[V];Re(G)&&(n[V]=G.bind(r))}if(o){const V=o.call(r,r);We(V)&&(e.data=Zn(V))}if(xh=!0,i)for(const V in i){const G=i[V],se=Re(G)?G.bind(r,r):Re(G.get)?G.get.bind(r,r):zt,me=!Re(G)&&Re(G.set)?G.set.bind(r):zt,be=Vr({get:se,set:me});Object.defineProperty(n,V,{enumerable:!0,configurable:!0,get:()=>be.value,set:Q=>be.value=Q})}if(a)for(const V in a)FN(a[V],n,r,V);if(l){const V=Re(l)?l.call(r):l;Reflect.ownKeys(V).forEach(G=>{Fa(G,V[G])})}d&&IT(d,e,"c");function F(V,G){Ee(G)?G.forEach(se=>V(se.bind(r))):G&&V(G.bind(r))}if(F(IN,p),F(Xl,f),F(Tg,h),F(Jd,y),F(CN,g),F(NN,v),F(kN,w),F(jN,R),F(qN,S),F(Hd,E),F(Gd,A),F(MN,O),Ee(q))if(q.length){const V=e.exposed||(e.exposed={});q.forEach(G=>{Object.defineProperty(V,G,{get:()=>r[G],set:se=>r[G]=se,enumerable:!0})})}else e.exposed||(e.exposed={});P&&e.render===zt&&(e.render=P),M!=null&&(e.inheritAttrs=M),k&&(e.components=k),x&&(e.directives=x),O&&Eg(e)}function hX(e,t,r=zt){Ee(e)&&(e=Ih(e));for(const n in e){const o=e[n];let i;We(o)?"default"in o?i=Jr(o.from||n,o.default,!0):i=Jr(o.from||n):i=Jr(o),At(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[n]=i}}function IT(e,t,r){Wr(Ee(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function FN(e,t,r,n){let o=n.includes(".")?_N(r,n):()=>r[n];if(Pe(e)){const i=t[e];Re(i)&&Ti(o,i)}else if(Re(e))Ti(o,e.bind(r));else if(We(e))if(Ee(e))e.forEach(i=>FN(i,t,r,n));else{const i=Re(e.handler)?e.handler.bind(r):t[e.handler];Re(i)&&Ti(o,i,e)}}function Rg(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:!o.length&&!r&&!n?l=t:(l={},o.length&&o.forEach(u=>Nc(l,u,s,!0)),Nc(l,t,s)),We(t)&&i.set(t,l),l}function Nc(e,t,r,n=!1){const{mixins:o,extends:i}=t;i&&Nc(e,i,r,!0),o&&o.forEach(s=>Nc(e,s,r,!0));for(const s in t)if(!(n&&s==="expose")){const a=mX[s]||r&&r[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const mX={data:MT,props:qT,emits:qT,methods:Ra,computed:Ra,beforeCreate:ur,created:ur,beforeMount:ur,mounted:ur,beforeUpdate:ur,updated:ur,beforeDestroy:ur,beforeUnmount:ur,destroyed:ur,unmounted:ur,activated:ur,deactivated:ur,errorCaptured:ur,serverPrefetch:ur,components:Ra,directives:Ra,watch:gX,provide:MT,inject:yX};function MT(e,t){return t?e?function(){return je(Re(e)?e.call(this,this):e,Re(t)?t.call(this,this):t)}:t:e}function yX(e,t){return Ra(Ih(e),Ih(t))}function Ih(e){if(Ee(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function ur(e,t){return e?[...new Set([].concat(e,t))]:t}function Ra(e,t){return e?je(Object.create(null),e,t):t}function qT(e,t){return e?Ee(e)&&Ee(t)?[...new Set([...e,...t])]:je(Object.create(null),bl(e),bl(t??{})):t}function gX(e,t){if(!e)return t;if(!t)return e;const r=je(Object.create(null),e);for(const n in t)r[n]=ur(e[n],t[n]);return r}function BN(){return{app:null,config:{isNativeTag:rs,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let bX=0;function vX(e,t){return function(n,o=null){Re(n)||(n=je({},n)),o!=null&&!We(o)&&(o=null);const i=BN(),s=new WeakSet,a=[];let l=!1;const u=i.app={_uid:bX++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:bx,get config(){return i.config},set config(d){},use(d,...p){return s.has(d)||(d&&Re(d.install)?(s.add(d),d.install(u,...p)):Re(d)&&(s.add(d),d(u,...p))),u},mixin(d){return i.mixins.includes(d)||i.mixins.push(d),u},component(d,p){return p?(i.components[d]=p,u):i.components[d]},directive(d,p){return p?(i.directives[d]=p,u):i.directives[d]},mount(d,p,f){if(!l){const h=u._ceVNode||ft(n,o);return h.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),p&&t?t(h,d):e(h,d,f),l=!0,u._container=d,d.__vue_app__=u,Ql(h.component)}},onUnmount(d){a.push(d)},unmount(){l&&(Wr(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(d,p){return i.provides[d]=p,u},runWithContext(d){const p=_i;_i=u;try{return d()}finally{_i=p}}};return u}}let _i=null;function EX(e,t,r=De){const n=fr(),o=et(t),i=br(t),s=$N(e,o),a=dN((l,u)=>{let d,p=De,f;return TN(()=>{const h=e[o];Jt(d,h)&&(d=h,u())}),{get(){return l(),r.get?r.get(d):d},set(h){const y=r.set?r.set(h):h;if(!Jt(y,d)&&!(p!==De&&Jt(h,p)))return;const g=n.vnode.props;g&&(t in g||o in g||i in g)&&(`onUpdate:${t}`in g||`onUpdate:${o}`in g||`onUpdate:${i}`in g)||(d=h,u()),n.emit(`update:${t}`,y),Jt(h,y)&&Jt(h,p)&&!Jt(y,f)&&u(),p=h,f=y}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?s||De:a,done:!1}:{done:!0}}}},a}const $N=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${et(t)}Modifiers`]||e[`${br(t)}Modifiers`];function TX(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||De;let o=r;const i=t.startsWith("update:"),s=i&&$N(n,t.slice(7));s&&(s.trim&&(o=r.map(d=>Pe(d)?d.trim():d)),s.number&&(o=r.map(qd)));let a,l=n[a=ds(t)]||n[a=ds(et(t))];!l&&i&&(l=n[a=ds(br(t))]),l&&Wr(l,e,6,o);const u=n[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Wr(u,e,6,o)}}const _X=new WeakMap;function VN(e,t,r=!1){const n=r?_X:t.emitsCache,o=n.get(e);if(o!==void 0)return o;const i=e.emits;let s={},a=!1;if(!Re(e)){const l=u=>{const d=VN(u,t,!0);d&&(a=!0,je(s,d))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(We(e)&&n.set(e,null),null):(Ee(i)?i.forEach(l=>s[l]=null):je(s,i),We(e)&&n.set(e,s),s)}function Wd(e,t){return!e||!Bi(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ke(e,t[0].toLowerCase()+t.slice(1))||Ke(e,br(t))||Ke(e,t))}function Vu(e){const{type:t,vnode:r,proxy:n,withProxy:o,propsOptions:[i],slots:s,attrs:a,emit:l,render:u,renderCache:d,props:p,data:f,setupState:h,ctx:y,inheritAttrs:g}=e,v=gl(e);let b,E;try{if(r.shapeFlag&4){const A=o||n,P=A;b=gr(u.call(P,A,d,p,h,f,y)),E=a}else{const A=t;b=gr(A.length>1?A(p,{attrs:a,slots:s,emit:l}):A(p,null)),E=t.props?a:SX(a)}}catch(A){$a.length=0,Ui(A,e,1),b=ft(_t)}let T=b;if(E&&g!==!1){const A=Object.keys(E),{shapeFlag:P}=T;A.length&&P&7&&(i&&A.some(Nd)&&(E=RX(E,i)),T=On(T,E,!1,!0))}return r.dirs&&(T=On(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(r.dirs):r.dirs),r.transition&&so(T,r.transition),b=T,gl(v),b}function wX(e,t=!0){let r;for(let n=0;n<e.length;n++){const o=e[n];if(cn(o)){if(o.type!==_t||o.children==="v-if"){if(r)return;r=o}}else return}return r}const SX=e=>{let t;for(const r in e)(r==="class"||r==="style"||Bi(r))&&((t||(t={}))[r]=e[r]);return t},RX=(e,t)=>{const r={};for(const n in e)(!Nd(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function AX(e,t,r){const{props:n,children:o,component:i}=e,{props:s,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?jT(n,s,u):!!s;if(l&8){const d=t.dynamicProps;for(let p=0;p<d.length;p++){const f=d[p];if(UN(s,n,f)&&!Wd(u,f))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:n===s?!1:n?s?jT(n,s,u):!0:!!s;return!1}function jT(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const i=n[o];if(UN(t,e,i)&&!Wd(r,i))return!0}return!1}function UN(e,t,r){const n=e[r],o=t[r];return r==="style"&&We(n)&&We(o)?!no(n,o):n!==o}function zd({vnode:e,parent:t,suspense:r},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=n,e=o),o===e)(e=t.vnode).el=n,t=t.parent;else break}r&&r.activeBranch===e&&(r.vnode.el=n)}const JN={},HN=()=>Object.create(JN),GN=e=>Object.getPrototypeOf(e)===JN;function OX(e,t,r,n=!1){const o={},i=HN();e.propsDefaults=Object.create(null),WN(e,t,o,i);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);r?e.props=n?o:fg(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function PX(e,t,r,n){const{props:o,attrs:i,vnode:{patchFlag:s}}=e,a=Fe(o),[l]=e.propsOptions;let u=!1;if((n||s>0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let p=0;p<d.length;p++){let f=d[p];if(Wd(e.emitsOptions,f))continue;const h=t[f];if(l)if(Ke(i,f))h!==i[f]&&(i[f]=h,u=!0);else{const y=et(f);o[y]=Mh(l,a,y,h,e,!1)}else h!==i[f]&&(i[f]=h,u=!0)}}}else{WN(e,t,o,i)&&(u=!0);let d;for(const p in a)(!t||!Ke(t,p)&&((d=br(p))===p||!Ke(t,d)))&&(l?r&&(r[p]!==void 0||r[d]!==void 0)&&(o[p]=Mh(l,a,p,void 0,e,!0)):delete o[p]);if(i!==a)for(const p in i)(!t||!Ke(t,p))&&(delete i[p],u=!0)}u&&Un(e.attrs,"set","")}function WN(e,t,r,n){const[o,i]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if(Qn(l))continue;const u=t[l];let d;o&&Ke(o,d=et(l))?!i||!i.includes(d)?r[d]=u:(a||(a={}))[d]=u:Wd(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,s=!0)}if(i){const l=Fe(r),u=a||De;for(let d=0;d<i.length;d++){const p=i[d];r[p]=Mh(o,l,p,u[p],e,!Ke(u,p))}}return s}function Mh(e,t,r,n,o,i){const s=e[r];if(s!=null){const a=Ke(s,"default");if(a&&n===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&Re(l)){const{propsDefaults:u}=o;if(r in u)n=u[r];else{const d=Xs(o);n=u[r]=l.call(null,t),d()}}else n=l;o.ce&&o.ce._setProp(r,n)}s[0]&&(i&&!a?n=!1:s[1]&&(n===""||n===br(r))&&(n=!0))}return n}const CX=new WeakMap;function zN(e,t,r=!1){const n=r?CX:t.propsCache,o=n.get(e);if(o)return o;const i=e.props,s={},a=[];let l=!1;if(!Re(e)){const d=p=>{l=!0;const[f,h]=zN(p,t,!0);je(s,f),h&&a.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!l)return We(e)&&n.set(e,us),us;if(Ee(i))for(let d=0;d<i.length;d++){const p=et(i[d]);kT(p)&&(s[p]=De)}else if(i)for(const d in i){const p=et(d);if(kT(p)){const f=i[d],h=s[p]=Ee(f)||Re(f)?{type:f}:je({},f),y=h.type;let g=!1,v=!0;if(Ee(y))for(let b=0;b<y.length;++b){const E=y[b],T=Re(E)&&E.name;if(T==="Boolean"){g=!0;break}else T==="String"&&(v=!1)}else g=Re(y)&&y.name==="Boolean";h[0]=g,h[1]=v,(g||Ke(h,"default"))&&a.push(p)}}const u=[s,a];return We(e)&&n.set(e,u),u}function kT(e){return e[0]!=="$"&&!Qn(e)}const Ag=e=>e==="_"||e==="_ctx"||e==="$stable",Og=e=>Ee(e)?e.map(gr):[gr(e)],NX=(e,t,r)=>{if(t._n)return t;const n=gg((...o)=>Og(t(...o)),r);return n._c=!1,n},KN=(e,t,r)=>{const n=e._ctx;for(const o in e){if(Ag(o))continue;const i=e[o];if(Re(i))t[o]=NX(o,i,n);else if(i!=null){const s=Og(i);t[o]=()=>s}}},YN=(e,t)=>{const r=Og(t);e.slots.default=()=>r},XN=(e,t,r)=>{for(const n in t)(r||!Ag(n))&&(e[n]=t[n])},xX=(e,t,r)=>{const n=e.slots=HN();if(e.vnode.shapeFlag&32){const o=t._;o?(XN(n,t,r),r&&$C(n,"_",o,!0)):KN(t,n)}else t&&YN(e,t)},IX=(e,t,r)=>{const{vnode:n,slots:o}=e;let i=!0,s=De;if(n.shapeFlag&32){const a=t._;a?r&&a===1?i=!1:XN(o,t,r):(i=!t.$stable,KN(t,o)),s=t}else t&&(YN(e,t),s={default:1});if(i)for(const a in o)!Ag(a)&&s[a]==null&&delete o[a]},St=ix;function QN(e){return ex(e)}function ZN(e){return ex(e,x7)}function ex(e,t){const r=jd();r.__VUE__=!0;const{insert:n,remove:o,patchProp:i,createElement:s,createText:a,createComment:l,setText:u,setElementText:d,parentNode:p,nextSibling:f,setScopeId:h=zt,insertStaticContent:y}=e,g=(I,D,U,X=null,K=null,re=null,fe=void 0,ue=null,ae=!!D.dynamicChildren)=>{if(I===D)return;I&&!rn(I,D)&&(X=Y(I),Q(I,K,re,!0),I=null),D.patchFlag===-2&&(ae=!1,D.dynamicChildren=null);const{type:ne,ref:_e,shapeFlag:ye}=D;switch(ne){case Vo:v(I,D,U,X);break;case _t:b(I,D,U,X);break;case wi:I==null&&E(D,U,X,fe);break;case Lt:k(I,D,U,X,K,re,fe,ue,ae);break;default:ye&1?P(I,D,U,X,K,re,fe,ue,ae):ye&6?x(I,D,U,X,K,re,fe,ue,ae):(ye&64||ye&128)&&ne.process(I,D,U,X,K,re,fe,ue,ae,$)}_e!=null&&K?ms(_e,I&&I.ref,re,D||I,!D):_e==null&&I&&I.ref!=null&&ms(I.ref,null,re,I,!0)},v=(I,D,U,X)=>{if(I==null)n(D.el=a(D.children),U,X);else{const K=D.el=I.el;D.children!==I.children&&u(K,D.children)}},b=(I,D,U,X)=>{I==null?n(D.el=l(D.children||""),U,X):D.el=I.el},E=(I,D,U,X)=>{[I.el,I.anchor]=y(I.children,D,U,X,I.el,I.anchor)},T=({el:I,anchor:D},U,X)=>{let K;for(;I&&I!==D;)K=f(I),n(I,U,X),I=K;n(D,U,X)},A=({el:I,anchor:D})=>{let U;for(;I&&I!==D;)U=f(I),o(I),I=U;o(D)},P=(I,D,U,X,K,re,fe,ue,ae)=>{if(D.type==="svg"?fe="svg":D.type==="math"&&(fe="mathml"),I==null)R(D,U,X,K,re,fe,ue,ae);else{const ne=I.el&&I.el._isVueCE?I.el:null;try{ne&&ne._beginPatch(),O(I,D,K,re,fe,ue,ae)}finally{ne&&ne._endPatch()}}},R=(I,D,U,X,K,re,fe,ue)=>{let ae,ne;const{props:_e,shapeFlag:ye,transition:Te,dirs:we}=I;if(ae=I.el=s(I.type,re,_e&&_e.is,_e),ye&8?d(ae,I.children):ye&16&&w(I.children,ae,null,X,K,ef(I,re),fe,ue),we&&yn(I,null,X,"created"),S(ae,I,I.scopeId,fe,X),_e){for(const Ve in _e)Ve!=="value"&&!Qn(Ve)&&i(ae,Ve,null,_e[Ve],re,X);"value"in _e&&i(ae,"value",null,_e.value,re),(ne=_e.onVnodeBeforeMount)&&yr(ne,X,I)}we&&yn(I,null,X,"beforeMount");const qe=tx(K,Te);qe&&Te.beforeEnter(ae),n(ae,D,U),((ne=_e&&_e.onVnodeMounted)||qe||we)&&St(()=>{try{ne&&yr(ne,X,I),qe&&Te.enter(ae),we&&yn(I,null,X,"mounted")}finally{}},K)},S=(I,D,U,X,K)=>{if(U&&h(I,U),X)for(let re=0;re<X.length;re++)h(I,X[re]);if(K){let re=K.subTree;if(D===re||Ic(re.type)&&(re.ssContent===D||re.ssFallback===D)){const fe=K.vnode;S(I,fe,fe.scopeId,fe.slotScopeIds,K.parent)}}},w=(I,D,U,X,K,re,fe,ue,ae=0)=>{for(let ne=ae;ne<I.length;ne++){const _e=I[ne]=ue?Bn(I[ne]):gr(I[ne]);g(null,_e,D,U,X,K,re,fe,ue)}},O=(I,D,U,X,K,re,fe)=>{const ue=D.el=I.el;let{patchFlag:ae,dynamicChildren:ne,dirs:_e}=D;ae|=I.patchFlag&16;const ye=I.props||De,Te=D.props||De;let we;if(U&&oi(U,!1),(we=Te.onVnodeBeforeUpdate)&&yr(we,U,D,I),_e&&yn(D,I,U,"beforeUpdate"),U&&oi(U,!0),(ye.innerHTML&&Te.innerHTML==null||ye.textContent&&Te.textContent==null)&&d(ue,""),ne?q(I.dynamicChildren,ne,ue,U,X,ef(D,K),re):fe||G(I,D,ue,null,U,X,ef(D,K),re,!1),ae>0){if(ae&16)M(ue,ye,Te,U,K);else if(ae&2&&ye.class!==Te.class&&i(ue,"class",null,Te.class,K),ae&4&&i(ue,"style",ye.style,Te.style,K),ae&8){const qe=D.dynamicProps;for(let Ve=0;Ve<qe.length;Ve++){const He=qe[Ve],rt=ye[He],it=Te[He];(it!==rt||He==="value")&&i(ue,He,rt,it,K,U)}}ae&1&&I.children!==D.children&&d(ue,D.children)}else!fe&&ne==null&&M(ue,ye,Te,U,K);((we=Te.onVnodeUpdated)||_e)&&St(()=>{we&&yr(we,U,D,I),_e&&yn(D,I,U,"updated")},X)},q=(I,D,U,X,K,re,fe)=>{for(let ue=0;ue<D.length;ue++){const ae=I[ue],ne=D[ue],_e=ae.el&&(ae.type===Lt||!rn(ae,ne)||ae.shapeFlag&198)?p(ae.el):U;g(ae,ne,_e,null,X,K,re,fe,!0)}},M=(I,D,U,X,K)=>{if(D!==U){if(D!==De)for(const re in D)!Qn(re)&&!(re in U)&&i(I,re,D[re],null,K,X);for(const re in U){if(Qn(re))continue;const fe=U[re],ue=D[re];fe!==ue&&re!=="value"&&i(I,re,ue,fe,K,X)}"value"in U&&i(I,"value",D.value,U.value,K)}},k=(I,D,U,X,K,re,fe,ue,ae)=>{const ne=D.el=I?I.el:a(""),_e=D.anchor=I?I.anchor:a("");let{patchFlag:ye,dynamicChildren:Te,slotScopeIds:we}=D;we&&(ue=ue?ue.concat(we):we),I==null?(n(ne,U,X),n(_e,U,X),w(D.children||[],U,_e,K,re,fe,ue,ae)):ye>0&&ye&64&&Te&&I.dynamicChildren&&I.dynamicChildren.length===Te.length?(q(I.dynamicChildren,Te,U,K,re,fe,ue),(D.key!=null||K&&D===K.subTree)&&Pg(I,D,!0)):G(I,D,U,_e,K,re,fe,ue,ae)},x=(I,D,U,X,K,re,fe,ue,ae)=>{D.slotScopeIds=ue,I==null?D.shapeFlag&512?K.ctx.activate(D,U,X,fe,ae):C(D,U,X,K,re,fe,ae):j(I,D,ae)},C=(I,D,U,X,K,re,fe)=>{const ue=I.component=dx(I,X,K);if(Yl(I)&&(ue.ctx.renderer=$),fx(ue,!1,fe),ue.asyncDep){if(K&&K.registerDep(ue,F,fe),!I.el){const ae=ue.subTree=ft(_t);b(null,ae,D,U),I.placeholder=ae.el}}else F(ue,I,D,U,K,re,fe)},j=(I,D,U)=>{const X=D.component=I.component;if(AX(I,D,U))if(X.asyncDep&&!X.asyncResolved){V(X,D,U);return}else X.next=D,X.update();else D.el=I.el,X.vnode=D},F=(I,D,U,X,K,re,fe)=>{const ue=()=>{if(I.isMounted){let{next:ye,bu:Te,u:we,parent:qe,vnode:Ve}=I;{const Ct=rx(I);if(Ct){ye&&(ye.el=Ve.el,V(I,ye,fe)),Ct.asyncDep.then(()=>{St(()=>{I.isUnmounted||ne()},K)});return}}let He=ye,rt;oi(I,!1),ye?(ye.el=Ve.el,V(I,ye,fe)):ye=Ve,Te&&ps(Te),(rt=ye.props&&ye.props.onVnodeBeforeUpdate)&&yr(rt,qe,ye,Ve),oi(I,!0);const it=Vu(I),$t=I.subTree;I.subTree=it,g($t,it,p($t.el),Y($t),I,K,re),ye.el=it.el,He===null&&zd(I,it.el),we&&St(we,K),(rt=ye.props&&ye.props.onVnodeUpdated)&&St(()=>yr(rt,qe,ye,Ve),K)}else{let ye;const{el:Te,props:we}=D,{bm:qe,m:Ve,parent:He,root:rt,type:it}=I,$t=eo(D);if(oi(I,!1),qe&&ps(qe),!$t&&(ye=we&&we.onVnodeBeforeMount)&&yr(ye,He,D),oi(I,!0),Te&&ce){const Ct=()=>{I.subTree=Vu(I),ce(Te,I.subTree,I,K,null)};$t&&it.__asyncHydrate?it.__asyncHydrate(Te,I,Ct):Ct()}else{rt.ce&&rt.ce._hasShadowRoot()&&rt.ce._injectChildStyle(it,I.parent?I.parent.type:void 0);const Ct=I.subTree=Vu(I);g(null,Ct,U,X,I,K,re),D.el=Ct.el}if(Ve&&St(Ve,K),!$t&&(ye=we&&we.onVnodeMounted)){const Ct=D;St(()=>yr(ye,He,Ct),K)}(D.shapeFlag&256||He&&eo(He.vnode)&&He.vnode.shapeFlag&256)&&I.a&&St(I.a,K),I.isMounted=!0,D=U=X=null}};I.scope.on();const ae=I.effect=new pl(ue);I.scope.off();const ne=I.update=ae.run.bind(ae),_e=I.job=ae.runIfDirty.bind(ae);_e.i=I,_e.id=I.uid,ae.scheduler=()=>yg(_e),oi(I,!0),ne()},V=(I,D,U)=>{D.component=I;const X=I.vnode.props;I.vnode=D,I.next=null,PX(I,D.props,X,U),IX(I,D.children,U),oo(),wT(I),io()},G=(I,D,U,X,K,re,fe,ue,ae=!1)=>{const ne=I&&I.children,_e=I?I.shapeFlag:0,ye=D.children,{patchFlag:Te,shapeFlag:we}=D;if(Te>0){if(Te&128){me(ne,ye,U,X,K,re,fe,ue,ae);return}else if(Te&256){se(ne,ye,U,X,K,re,fe,ue,ae);return}}we&8?(_e&16&&ie(ne,K,re),ye!==ne&&d(U,ye)):_e&16?we&16?me(ne,ye,U,X,K,re,fe,ue,ae):ie(ne,K,re,!0):(_e&8&&d(U,""),we&16&&w(ye,U,X,K,re,fe,ue,ae))},se=(I,D,U,X,K,re,fe,ue,ae)=>{I=I||us,D=D||us;const ne=I.length,_e=D.length,ye=Math.min(ne,_e);let Te;for(Te=0;Te<ye;Te++){const we=D[Te]=ae?Bn(D[Te]):gr(D[Te]);g(I[Te],we,U,null,K,re,fe,ue,ae)}ne>_e?ie(I,K,re,!0,!1,ye):w(D,U,X,K,re,fe,ue,ae,ye)},me=(I,D,U,X,K,re,fe,ue,ae)=>{let ne=0;const _e=D.length;let ye=I.length-1,Te=_e-1;for(;ne<=ye&&ne<=Te;){const we=I[ne],qe=D[ne]=ae?Bn(D[ne]):gr(D[ne]);if(rn(we,qe))g(we,qe,U,null,K,re,fe,ue,ae);else break;ne++}for(;ne<=ye&&ne<=Te;){const we=I[ye],qe=D[Te]=ae?Bn(D[Te]):gr(D[Te]);if(rn(we,qe))g(we,qe,U,null,K,re,fe,ue,ae);else break;ye--,Te--}if(ne>ye){if(ne<=Te){const we=Te+1,qe=we<_e?D[we].el:X;for(;ne<=Te;)g(null,D[ne]=ae?Bn(D[ne]):gr(D[ne]),U,qe,K,re,fe,ue,ae),ne++}}else if(ne>Te)for(;ne<=ye;)Q(I[ne],K,re,!0),ne++;else{const we=ne,qe=ne,Ve=new Map;for(ne=qe;ne<=Te;ne++){const Nt=D[ne]=ae?Bn(D[ne]):gr(D[ne]);Nt.key!=null&&Ve.set(Nt.key,ne)}let He,rt=0;const it=Te-qe+1;let $t=!1,Ct=0;const Kr=new Array(it);for(ne=0;ne<it;ne++)Kr[ne]=0;for(ne=we;ne<=ye;ne++){const Nt=I[ne];if(rt>=it){Q(Nt,K,re,!0);continue}let Kt;if(Nt.key!=null)Kt=Ve.get(Nt.key);else for(He=qe;He<=Te;He++)if(Kr[He-qe]===0&&rn(Nt,D[He])){Kt=He;break}Kt===void 0?Q(Nt,K,re,!0):(Kr[Kt-qe]=ne+1,Kt>=Ct?Ct=Kt:$t=!0,g(Nt,D[Kt],U,null,K,re,fe,ue,ae),rt++)}const ho=$t?MX(Kr):us;for(He=ho.length-1,ne=it-1;ne>=0;ne--){const Nt=qe+ne,Kt=D[Nt],mo=D[Nt+1],yo=Nt+1<_e?mo.el||nx(mo):X;Kr[ne]===0?g(null,Kt,U,yo,K,re,fe,ue,ae):$t&&(He<0||ne!==ho[He]?be(Kt,U,yo,2):He--)}}},be=(I,D,U,X,K=null)=>{const{el:re,type:fe,transition:ue,children:ae,shapeFlag:ne}=I;if(ne&6){be(I.component.subTree,D,U,X);return}if(ne&128){I.suspense.move(D,U,X);return}if(ne&64){fe.move(I,D,U,$);return}if(fe===Lt){n(re,D,U);for(let ye=0;ye<ae.length;ye++)be(ae[ye],D,U,X);n(I.anchor,D,U);return}if(fe===wi){T(I,D,U);return}if(X!==2&&ne&1&&ue)if(X===0)ue.beforeEnter(re),n(re,D,U),St(()=>ue.enter(re),K);else{const{leave:ye,delayLeave:Te,afterLeave:we}=ue,qe=()=>{I.ctx.isUnmounted?o(re):n(re,D,U)},Ve=()=>{re._isLeaving&&re[gn](!0),ye(re,()=>{qe(),we&&we()})};Te?Te(re,qe,Ve):Ve()}else n(re,D,U)},Q=(I,D,U,X=!1,K=!1)=>{const{type:re,props:fe,ref:ue,children:ae,dynamicChildren:ne,shapeFlag:_e,patchFlag:ye,dirs:Te,cacheIndex:we,memo:qe}=I;if(ye===-2&&(K=!1),ue!=null&&(oo(),ms(ue,null,U,I,!0),io()),we!=null&&(D.renderCache[we]=void 0),_e&256){D.ctx.deactivate(I);return}const Ve=_e&1&&Te,He=!eo(I);let rt;if(He&&(rt=fe&&fe.onVnodeBeforeUnmount)&&yr(rt,D,I),_e&6)pe(I.component,U,X);else{if(_e&128){I.suspense.unmount(U,X);return}Ve&&yn(I,null,D,"beforeUnmount"),_e&64?I.type.remove(I,D,U,$,X):ne&&!ne.hasOnce&&(re!==Lt||ye>0&&ye&64)?ie(ne,D,U,!1,!0):(re===Lt&&ye&384||!K&&_e&16)&&ie(ae,D,U),X&&ee(I)}const it=qe!=null&&we==null;(He&&(rt=fe&&fe.onVnodeUnmounted)||Ve||it)&&St(()=>{rt&&yr(rt,D,I),Ve&&yn(I,null,D,"unmounted"),it&&(I.el=null)},U)},ee=I=>{const{type:D,el:U,anchor:X,transition:K}=I;if(D===Lt){ve(U,X);return}if(D===wi){A(I);return}const re=()=>{o(U),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(I.shapeFlag&1&&K&&!K.persisted){const{leave:fe,delayLeave:ue}=K,ae=()=>fe(U,re);ue?ue(I.el,re,ae):ae()}else re()},ve=(I,D)=>{let U;for(;I!==D;)U=f(I),o(I),I=U;o(D)},pe=(I,D,U)=>{const{bum:X,scope:K,job:re,subTree:fe,um:ue,m:ae,a:ne}=I;xc(ae),xc(ne),X&&ps(X),K.stop(),re&&(re.flags|=8,Q(fe,I,D,U)),ue&&St(ue,D),St(()=>{I.isUnmounted=!0},D)},ie=(I,D,U,X=!1,K=!1,re=0)=>{for(let fe=re;fe<I.length;fe++)Q(I[fe],D,U,X,K)},Y=I=>{if(I.shapeFlag&6)return Y(I.component.subTree);if(I.shapeFlag&128)return I.suspense.next();const D=f(I.anchor||I.el),U=D&&D[wN];return U?f(U):D};let oe=!1;const le=(I,D,U)=>{let X;I==null?D._vnode&&(Q(D._vnode,null,null,!0),X=D._vnode.component):g(D._vnode||null,I,D,null,null,null,U),D._vnode=I,oe||(oe=!0,wT(X),Pc(),oe=!1)},$={p:g,um:Q,m:be,r:ee,mt:C,mc:w,pc:G,pbc:q,n:Y,o:e};let te,ce;return t&&([te,ce]=t($)),{render:le,hydrate:te,createApp:vX(le,te)}}function ef({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function oi({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function tx(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Pg(e,t,r=!1){const n=e.children,o=t.children;if(Ee(n)&&Ee(o))for(let i=0;i<n.length;i++){const s=n[i];let a=o[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[i]=Bn(o[i]),a.el=s.el),!r&&a.patchFlag!==-2&&Pg(s,a)),a.type===Vo&&(a.patchFlag===-1&&(a=o[i]=Bn(a)),a.el=s.el),a.type===_t&&!a.el&&(a.el=s.el)}}function MX(e){const t=e.slice(),r=[0];let n,o,i,s,a;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(o=r[r.length-1],e[o]<u){t[n]=o,r.push(n);continue}for(i=0,s=r.length-1;i<s;)a=i+s>>1,e[r[a]]<u?i=a+1:s=a;u<e[r[i]]&&(i>0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,s=r[i-1];i-- >0;)r[i]=s,s=t[s];return r}function rx(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:rx(t)}function xc(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function nx(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?nx(t.subTree):null}const Ic=e=>e.__isSuspense;let qh=0;const qX={name:"Suspense",__isSuspense:!0,process(e,t,r,n,o,i,s,a,l,u){if(e==null)kX(t,r,n,o,i,s,a,l,u);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}DX(e,t,r,n,o,s,a,l,u)}},hydrate:LX,normalize:FX},jX=qX;function vl(e,t){const r=e.props&&e.props[t];Re(r)&&r()}function kX(e,t,r,n,o,i,s,a,l){const{p:u,o:{createElement:d}}=l,p=d("div"),f=e.suspense=ox(e,o,n,t,p,r,i,s,a,l);u(null,f.pendingBranch=e.ssContent,p,null,n,f,i,s),f.deps>0?(vl(e,"onPending"),vl(e,"onFallback"),u(null,e.ssFallback,t,r,n,null,i,s),ys(f,e.ssFallback)):f.resolve(!1,!0)}function DX(e,t,r,n,o,i,s,a,{p:l,um:u,o:{createElement:d}}){const p=t.suspense=e.suspense;p.vnode=t,t.el=e.el;const f=t.ssContent,h=t.ssFallback,{activeBranch:y,pendingBranch:g,isInFallback:v,isHydrating:b}=p;if(g)p.pendingBranch=f,rn(g,f)?(l(g,f,p.hiddenContainer,null,o,p,i,s,a),p.deps<=0?p.resolve():v&&(b||(l(y,h,r,n,o,null,i,s,a),ys(p,h)))):(p.pendingId=qh++,b?(p.isHydrating=!1,p.activeBranch=g):u(g,o,p),p.deps=0,p.effects.length=0,p.hiddenContainer=d("div"),v?(l(null,f,p.hiddenContainer,null,o,p,i,s,a),p.deps<=0?p.resolve():(l(y,h,r,n,o,null,i,s,a),ys(p,h))):y&&rn(y,f)?(l(y,f,r,n,o,p,i,s,a),p.resolve(!0)):(l(null,f,p.hiddenContainer,null,o,p,i,s,a),p.deps<=0&&p.resolve()));else if(y&&rn(y,f))l(y,f,r,n,o,p,i,s,a),ys(p,f);else if(vl(t,"onPending"),p.pendingBranch=f,f.shapeFlag&512?p.pendingId=f.component.suspenseId:p.pendingId=qh++,l(null,f,p.hiddenContainer,null,o,p,i,s,a),p.deps<=0)p.resolve();else{const{timeout:E,pendingId:T}=p;E>0?setTimeout(()=>{p.pendingId===T&&p.fallback(h)},E):E===0&&p.fallback(h)}}function ox(e,t,r,n,o,i,s,a,l,u,d=!1){const{p,m:f,um:h,n:y,o:{parentNode:g,remove:v}}=u;let b;const E=BX(e);E&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const T=e.props?wc(e.props.timeout):void 0,A=i,P={vnode:e,parent:t,parentComponent:r,namespace:s,container:n,hiddenContainer:o,deps:0,pendingId:qh++,timeout:typeof T=="number"?T:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(R=!1,S=!1){const{vnode:w,activeBranch:O,pendingBranch:q,pendingId:M,effects:k,parentComponent:x,container:C,isInFallback:j}=P;let F=!1;P.isHydrating?P.isHydrating=!1:R||(F=O&&q.transition&&q.transition.mode==="out-in",F&&(O.transition.afterLeave=()=>{M===P.pendingId&&(f(q,C,i===A?y(O):i,0),ml(k),j&&w.ssFallback&&(w.ssFallback.el=null))}),O&&!P.isFallbackMountPending&&(g(O.el)===C&&(i=y(O)),h(O,x,P,!0),!F&&j&&w.ssFallback&&St(()=>w.ssFallback.el=null,P)),F||f(q,C,i,0)),P.isFallbackMountPending=!1,ys(P,q),P.pendingBranch=null,P.isInFallback=!1;let V=P.parent,G=!1;for(;V;){if(V.pendingBranch){V.effects.push(...k),G=!0;break}V=V.parent}!G&&!F&&ml(k),P.effects=[],E&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!S&&t.resolve()),vl(w,"onResolve")},fallback(R){if(!P.pendingBranch)return;const{vnode:S,activeBranch:w,parentComponent:O,container:q,namespace:M}=P;vl(S,"onFallback");const k=y(w),x=()=>{P.isFallbackMountPending=!1,P.isInFallback&&(p(null,R,q,k,O,null,M,a,l),ys(P,R))},C=R.transition&&R.transition.mode==="out-in";C&&(P.isFallbackMountPending=!0,w.transition.afterLeave=x),P.isInFallback=!0,h(w,O,null,!0),C||x()},move(R,S,w){P.activeBranch&&f(P.activeBranch,R,S,w),P.container=R},next(){return P.activeBranch&&y(P.activeBranch)},registerDep(R,S,w){const O=!!P.pendingBranch;O&&P.deps++;const q=R.vnode.el;R.asyncDep.catch(M=>{Ui(M,R,0)}).then(M=>{if(R.isUnmounted||P.isUnmounted||P.pendingId!==R.suspenseId)return;_l(),R.asyncResolved=!0;const{vnode:k}=R;jh(R,M,!1),q&&(k.el=q);const x=!q&&R.subTree.el;S(R,k,g(q||R.subTree.el),q?null:y(R.subTree),P,s,w),x&&(k.placeholder=null,v(x)),zd(R,k.el),O&&--P.deps===0&&P.resolve()})},unmount(R,S){P.isUnmounted=!0,P.activeBranch&&h(P.activeBranch,r,R,S),P.pendingBranch&&h(P.pendingBranch,r,R,S)}};return P}function LX(e,t,r,n,o,i,s,a,l){const u=t.suspense=ox(t,n,r,e.parentNode,document.createElement("div"),null,o,i,s,a,!0),d=l(e,u.pendingBranch=t.ssContent,r,u,i,s);return u.deps===0&&u.resolve(!1,!0),d}function FX(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=DT(n?r.default:r),e.ssFallback=n?DT(r.fallback):ft(_t)}function DT(e){let t;if(Re(e)){const r=Mi&&e._c;r&&(e._d=!1,El()),e=e(),r&&(e._d=!0,t=tr,sx())}return Ee(e)&&(e=wX(e)),e=gr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function ix(e,t){t&&t.pendingBranch?Ee(e)?t.effects.push(...e):t.effects.push(e):ml(e)}function ys(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;r.el=o,n&&n.subTree===r&&(n.vnode.el=o,zd(n,o))}function BX(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Lt=Symbol.for("v-fgt"),Vo=Symbol.for("v-txt"),_t=Symbol.for("v-cmt"),wi=Symbol.for("v-stc"),$a=[];let tr=null;function El(e=!1){$a.push(tr=e?null:[])}function sx(){$a.pop(),tr=$a[$a.length-1]||null}let Mi=1;function Tl(e,t=!1){Mi+=e,e<0&&tr&&t&&(tr.hasOnce=!0)}function ax(e){return e.dynamicChildren=Mi>0?tr||us:null,sx(),Mi>0&&tr&&tr.push(e),e}function $X(e,t,r,n,o,i){return ax(Cg(e,t,r,n,o,i,!0))}function Mc(e,t,r,n,o){return ax(ft(e,t,r,n,o,!0))}function cn(e){return e?e.__v_isVNode===!0:!1}function rn(e,t){return e.type===t.type&&e.key===t.key}function VX(e){}const lx=({key:e})=>e??null,Uu=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Pe(e)||At(e)||Re(e)?{i:Wt,r:e,k:t,f:!!r}:e:null);function Cg(e,t=null,r=null,n=0,o=null,i=e===Lt?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&lx(t),ref:t&&Uu(t),scopeId:$d,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Wt};return a?(xg(l,r),i&128&&e.normalize(l)):r&&(l.shapeFlag|=Pe(r)?8:16),Mi>0&&!s&&tr&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&tr.push(l),l}const ft=UX;function UX(e,t=null,r=null,n=0,o=null,i=!1){if((!e||e===DN)&&(e=_t),cn(e)){const a=On(e,t,!0);return r&&xg(a,r),Mi>0&&!i&&tr&&(a.shapeFlag&6?tr[tr.indexOf(e)]=a:tr.push(a)),a.patchFlag=-2,a}if(XX(e)&&(e=e.__vccOpts),t){t=ux(t);let{class:a,style:l}=t;a&&!Pe(a)&&(t.class=Hl(a)),We(l)&&(Gl(l)&&!Ee(l)&&(l=je({},l)),t.style=Jl(l))}const s=Pe(e)?1:Ic(e)?128:SN(e)?64:We(e)?4:Re(e)?2:0;return Cg(e,t,r,n,o,s,i,!0)}function ux(e){return e?Gl(e)||GN(e)?je({},e):e:null}function On(e,t,r=!1,n=!1){const{props:o,ref:i,patchFlag:s,children:a,transition:l}=e,u=t?cx(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&lx(u),ref:t&&t.ref?r&&i?Ee(i)?i.concat(Uu(t)):[i,Uu(t)]:Uu(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Lt?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&On(e.ssContent),ssFallback:e.ssFallback&&On(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&so(d,l.clone(d)),d}function Ng(e=" ",t=0){return ft(Vo,null,e,t)}function JX(e,t){const r=ft(wi,null,e);return r.staticCount=t,r}function HX(e="",t=!1){return t?(El(),Mc(_t,null,e)):ft(_t,null,e)}function gr(e){return e==null||typeof e=="boolean"?ft(_t):Ee(e)?ft(Lt,null,e.slice()):cn(e)?Bn(e):ft(Vo,null,String(e))}function Bn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:On(e)}function xg(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Ee(t))r=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),xg(e,o()),o._c&&(o._d=!0));return}else{r=32;const o=t._;!o&&!GN(t)?t._ctx=Wt:o===3&&Wt&&(Wt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Re(t)?(t={default:t,_ctx:Wt},r=32):(t=String(t),n&64?(r=16,t=[Ng(t)]):r=8);e.children=t,e.shapeFlag|=r}function cx(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=Hl([t.class,n.class]));else if(o==="style")t.style=Jl([t.style,n.style]);else if(Bi(o)){const i=t[o],s=n[o];s&&i!==s&&!(Ee(i)&&i.includes(s))?t[o]=i?[].concat(i,s):s:s==null&&i==null&&!Nd(o)&&(t[o]=s)}else o!==""&&(t[o]=n[o])}return t}function yr(e,t,r,n=null){Wr(e,t,7,[r,n])}const GX=BN();let WX=0;function dx(e,t,r){const n=e.type,o=(t?t.appContext:e.appContext)||GX,i={uid:WX++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ug(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:zN(n,o),emitsOptions:VN(n,o),emit:null,emitted:null,propsDefaults:De,inheritAttrs:n.inheritAttrs,ctx:De,data:De,props:De,attrs:De,slots:De,refs:De,setupState:De,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=TX.bind(null,i),e.ce&&e.ce(i),i}let Ht=null;const fr=()=>Ht||Wt;let qc,gs;{const e=jd(),t=(r,n)=>{let o;return(o=e[r])||(o=e[r]=[]),o.push(n),i=>{o.length>1?o.forEach(s=>s(i)):o[0](i)}};qc=t("__VUE_INSTANCE_SETTERS__",r=>Ht=r),gs=t("__VUE_SSR_SETTERS__",r=>qi=r)}const Xs=e=>{const t=Ht;return qc(e),e.scope.on(),()=>{e.scope.off(),qc(t)}},_l=()=>{Ht&&Ht.scope.off(),qc(null)};function px(e){return e.vnode.shapeFlag&4}let qi=!1;function fx(e,t=!1,r=!1){t&&gs(t);const{props:n,children:o}=e.vnode,i=px(e);OX(e,n,i,t),xX(e,o,r||t);const s=i?zX(e,t):void 0;return t&&gs(!1),s}function zX(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Nh);const{setup:n}=r;if(n){oo();const o=e.setupContext=n.length>1?yx(e):null,i=Xs(e),s=Ys(n,e,0,[e.props,o]),a=lg(s);if(io(),i(),(a||e.sp)&&!eo(e)&&Eg(e),a){if(s.then(_l,_l),t)return s.then(l=>{jh(e,l,t)}).catch(l=>{Ui(l,e,0)});e.asyncDep=s}else jh(e,s,t)}else mx(e,t)}function jh(e,t,r){Re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:We(t)&&(e.setupState=mg(t)),mx(e,r)}let jc,kh;function hx(e){jc=e,kh=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Z7))}}const KX=()=>!jc;function mx(e,t,r){const n=e.type;if(!e.render){if(!t&&jc&&!n.render){const o=n.template||Rg(e).template;if(o){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:l}=n,u=je(je({isCustomElement:i,delimiters:a},s),l);n.render=jc(o,u)}}e.render=n.render||zt,kh&&kh(e)}{const o=Xs(e);oo();try{fX(e)}finally{io(),o()}}}const YX={get(e,t){return er(e,"get",""),e[t]}};function yx(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,YX),slots:e.slots,emit:e.emit,expose:t}}function Ql(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(mg(uN(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ba)return Ba[r](e)},has(t,r){return r in t||r in Ba}})):e.proxy}function Dh(e,t=!0){return Re(e)?e.displayName||e.name:e.name||t&&e.__name}function XX(e){return Re(e)&&"__vccOpts"in e}const Vr=(e,t)=>r7(e,t,qi);function fo(e,t,r){try{Tl(-1);const n=arguments.length;return n===2?We(t)&&!Ee(t)?cn(t)?ft(e,null,[t]):ft(e,t):ft(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&cn(r)&&(r=[r]),ft(e,t,r))}finally{Tl(1)}}function QX(){}function ZX(e,t,r,n){const o=r[n];if(o&&gx(o,e))return o;const i=t();return i.memo=e.slice(),i.cacheIndex=n,r[n]=i}function gx(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let n=0;n<r.length;n++)if(Jt(r[n],t[n]))return!1;return Mi>0&&tr&&tr.push(e),!0}const bx="3.5.32",eQ=zt,tQ=d7,rQ=Yi,nQ=bN,oQ={createComponentInstance:dx,setupComponent:fx,renderComponentRoot:Vu,setCurrentRenderingInstance:gl,isVNode:cn,normalizeVNode:gr,getComponentPublicInstance:Ql,ensureValidVNode:Sg,pushWarningContext:a7,popWarningContext:l7},iQ=oQ,sQ=null,aQ=null,lQ=null;/**
|
|
1035
|
+
* @vue/runtime-dom v3.5.32
|
|
1036
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1037
|
+
* @license MIT
|
|
1038
|
+
**/let Lh;const LT=typeof window<"u"&&window.trustedTypes;if(LT)try{Lh=LT.createPolicy("vue",{createHTML:e=>e})}catch{}const vx=Lh?e=>Lh.createHTML(e):e=>e,uQ="http://www.w3.org/2000/svg",cQ="http://www.w3.org/1998/Math/MathML",Fn=typeof document<"u"?document:null,FT=Fn&&Fn.createElement("template"),Ex={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const o=t==="svg"?Fn.createElementNS(uQ,e):t==="mathml"?Fn.createElementNS(cQ,e):r?Fn.createElement(e,{is:r}):Fn.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>Fn.createTextNode(e),createComment:e=>Fn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Fn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,o,i){const s=r?r.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),r),!(o===i||!(o=o.nextSibling)););else{FT.innerHTML=vx(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=FT.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,r)}return[s?s.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},_o="transition",fa="animation",qs=Symbol("_vtc"),Tx={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},_x=je({},vg,Tx),dQ=e=>(e.displayName="Transition",e.props=_x,e),pQ=dQ((e,{slots:t})=>fo(ON,wx(e),t)),ii=(e,t=[])=>{Ee(e)?e.forEach(r=>r(...t)):e&&e(...t)},BT=e=>e?Ee(e)?e.some(t=>t.length>1):e.length>1:!1;function wx(e){const t={};for(const k in e)k in Tx||(t[k]=e[k]);if(e.css===!1)return t;const{name:r="v",type:n,duration:o,enterFromClass:i=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:a=`${r}-enter-to`,appearFromClass:l=i,appearActiveClass:u=s,appearToClass:d=a,leaveFromClass:p=`${r}-leave-from`,leaveActiveClass:f=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,y=fQ(o),g=y&&y[0],v=y&&y[1],{onBeforeEnter:b,onEnter:E,onEnterCancelled:T,onLeave:A,onLeaveCancelled:P,onBeforeAppear:R=b,onAppear:S=E,onAppearCancelled:w=T}=t,O=(k,x,C,j)=>{k._enterCancelled=j,Ao(k,x?d:a),Ao(k,x?u:s),C&&C()},q=(k,x)=>{k._isLeaving=!1,Ao(k,p),Ao(k,h),Ao(k,f),x&&x()},M=k=>(x,C)=>{const j=k?S:E,F=()=>O(x,k,C);ii(j,[x,F]),$T(()=>{Ao(x,k?l:i),hn(x,k?d:a),BT(j)||VT(x,n,g,F)})};return je(t,{onBeforeEnter(k){ii(b,[k]),hn(k,i),hn(k,s)},onBeforeAppear(k){ii(R,[k]),hn(k,l),hn(k,u)},onEnter:M(!1),onAppear:M(!0),onLeave(k,x){k._isLeaving=!0;const C=()=>q(k,x);hn(k,p),k._enterCancelled?(hn(k,f),Fh(k)):(Fh(k),hn(k,f)),$T(()=>{k._isLeaving&&(Ao(k,p),hn(k,h),BT(A)||VT(k,n,v,C))}),ii(A,[k,C])},onEnterCancelled(k){O(k,!1,void 0,!0),ii(T,[k])},onAppearCancelled(k){O(k,!0,void 0,!0),ii(w,[k])},onLeaveCancelled(k){q(k),ii(P,[k])}})}function fQ(e){if(e==null)return null;if(We(e))return[tf(e.enter),tf(e.leave)];{const t=tf(e);return[t,t]}}function tf(e){return wc(e)}function hn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[qs]||(e[qs]=new Set)).add(t)}function Ao(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[qs];r&&(r.delete(t),r.size||(e[qs]=void 0))}function $T(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let hQ=0;function VT(e,t,r,n){const o=e._endId=++hQ,i=()=>{o===e._endId&&n()};if(r!=null)return setTimeout(i,r);const{type:s,timeout:a,propCount:l}=Sx(e,t);if(!s)return n();const u=s+"end";let d=0;const p=()=>{e.removeEventListener(u,f),i()},f=h=>{h.target===e&&++d>=l&&p()};setTimeout(()=>{d<l&&p()},a+1),e.addEventListener(u,f)}function Sx(e,t){const r=window.getComputedStyle(e),n=y=>(r[y]||"").split(", "),o=n(`${_o}Delay`),i=n(`${_o}Duration`),s=UT(o,i),a=n(`${fa}Delay`),l=n(`${fa}Duration`),u=UT(a,l);let d=null,p=0,f=0;t===_o?s>0&&(d=_o,p=s,f=i.length):t===fa?u>0&&(d=fa,p=u,f=l.length):(p=Math.max(s,u),d=p>0?s>u?_o:fa:null,f=d?d===_o?i.length:l.length:0);const h=d===_o&&/\b(?:transform|all)(?:,|$)/.test(n(`${_o}Property`).toString());return{type:d,timeout:p,propCount:f,hasTransform:h}}function UT(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>JT(r)+JT(e[n])))}function JT(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Fh(e){return(e?e.ownerDocument:document).body.offsetHeight}function mQ(e,t,r){const n=e[qs];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const kc=Symbol("_vod"),Rx=Symbol("_vsh"),Ax={name:"show",beforeMount(e,{value:t},{transition:r}){e[kc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):ha(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),ha(e,!0),n.enter(e)):n.leave(e,()=>{ha(e,!1)}):ha(e,t))},beforeUnmount(e,{value:t}){ha(e,t)}};function ha(e,t){e.style.display=t?e[kc]:"none",e[Rx]=!t}function yQ(){Ax.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Ox=Symbol("");function gQ(e){const t=fr();if(!t)return;const r=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>Dc(i,o))},n=()=>{const o=e(t.proxy);t.ce?Dc(t.ce,o):Bh(t.subTree,o),r(o)};Tg(()=>{ml(n)}),Xl(()=>{Ti(n,zt,{flush:"post"});const o=new MutationObserver(n);o.observe(t.subTree.el.parentNode,{childList:!0}),Gd(()=>o.disconnect())})}function Bh(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{Bh(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Dc(e.el,t);else if(e.type===Lt)e.children.forEach(r=>Bh(r,t));else if(e.type===wi){let{el:r,anchor:n}=e;for(;r&&(Dc(r,t),r!==n);)r=r.nextSibling}}function Dc(e,t){if(e.nodeType===1){const r=e.style;let n="";for(const o in t){const i=T4(t[o]);r.setProperty(`--${o}`,i),n+=`--${o}: ${i};`}r[Ox]=n}}const bQ=/(?:^|;)\s*display\s*:/;function vQ(e,t,r){const n=e.style,o=Pe(r);let i=!1;if(r&&!o){if(t)if(Pe(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();r[a]==null&&Ju(n,a,"")}else for(const s in t)r[s]==null&&Ju(n,s,"");for(const s in r)s==="display"&&(i=!0),Ju(n,s,r[s])}else if(o){if(t!==r){const s=n[Ox];s&&(r+=";"+s),n.cssText=r,i=bQ.test(r)}}else t&&e.removeAttribute("style");kc in e&&(e[kc]=i?n.display:"",e[Rx]&&(n.display="none"))}const HT=/\s*!important$/;function Ju(e,t,r){if(Ee(r))r.forEach(n=>Ju(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=EQ(e,t);HT.test(r)?e.setProperty(br(n),r.replace(HT,""),"important"):e[n]=r}}const GT=["Webkit","Moz","ms"],rf={};function EQ(e,t){const r=rf[t];if(r)return r;let n=et(t);if(n!=="filter"&&n in e)return rf[t]=n;n=Vi(n);for(let o=0;o<GT.length;o++){const i=GT[o]+n;if(i in e)return rf[t]=i}return t}const WT="http://www.w3.org/1999/xlink";function zT(e,t,r,n,o,i=v4(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(WT,t.slice(6,t.length)):e.setAttributeNS(WT,t,r):r==null||i&&!UC(r)?e.removeAttribute(t):e.setAttribute(t,i?"":sr(r)?String(r):r)}function KT(e,t,r,n,o){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?vx(r):r);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=r==null?e.type==="checkbox"?"on":"":String(r);(a!==l||!("_value"in e))&&(e.value=l),r==null&&e.removeAttribute(t),e._value=r;return}let s=!1;if(r===""||r==null){const a=typeof e[t];a==="boolean"?r=UC(r):r==null&&a==="string"?(r="",s=!0):a==="number"&&(r=0,s=!0)}try{e[t]=r}catch{}s&&e.removeAttribute(o||t)}function Hn(e,t,r,n){e.addEventListener(t,r,n)}function TQ(e,t,r,n){e.removeEventListener(t,r,n)}const YT=Symbol("_vei");function _Q(e,t,r,n,o=null){const i=e[YT]||(e[YT]={}),s=i[t];if(n&&s)s.value=n;else{const[a,l]=wQ(t);if(n){const u=i[t]=AQ(n,o);Hn(e,a,u,l)}else s&&(TQ(e,a,s,l),i[t]=void 0)}}const XT=/(?:Once|Passive|Capture)$/;function wQ(e){let t;if(XT.test(e)){t={};let n;for(;n=e.match(XT);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):br(e.slice(2)),t]}let nf=0;const SQ=Promise.resolve(),RQ=()=>nf||(SQ.then(()=>nf=0),nf=Date.now());function AQ(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Wr(OQ(n,r.value),t,5,[n])};return r.value=e,r.attached=RQ(),r}function OQ(e,t){if(Ee(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const QT=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Px=(e,t,r,n,o,i)=>{const s=o==="svg";t==="class"?mQ(e,n,s):t==="style"?vQ(e,r,n):Bi(t)?Nd(t)||_Q(e,t,r,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):PQ(e,t,n,s))?(KT(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&zT(e,t,n,s,i,t!=="value")):e._isVueCE&&(CQ(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Pe(n)))?KT(e,et(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),zT(e,t,n,s))};function PQ(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&QT(t)&&Re(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return QT(t)&&Pe(r)?!1:t in e}function CQ(e,t){const r=e._def.props;if(!r)return!1;const n=et(t);return Array.isArray(r)?r.some(o=>et(o)===n):Object.keys(r).some(o=>et(o)===n)}const ZT={};function Cx(e,t,r){let n=Kl(e,t);xd(n)&&(n=je({},n,t));class o extends Kd{constructor(s){super(n,s,r)}}return o.def=n,o}const NQ=(e,t)=>Cx(e,t,Vx),xQ=typeof HTMLElement<"u"?HTMLElement:class{};class Kd extends xQ{constructor(t,r={},n=Bc){super(),this._def=t,this._props=r,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Bc?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(je({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.assignedSlot||t.parentNode||t.host);)if(t instanceof Kd){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Wl(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const r of t)this._setAttr(r.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(n,o=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:s}=n;let a;if(i&&!Ee(i))for(const l in i){const u=i[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=wc(this._props[l])),(a||(a=Object.create(null)))[et(l)]=!0)}this._numberProps=a,this._resolveProps(n),this.shadowRoot&&this._applyStyles(s),this._mount(n)},r=this._def.__asyncLoader;r?this._pendingResolve=r().then(n=>{n.configureApp=this._def.configureApp,t(this._def=n,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const r=this._instance&&this._instance.exposed;if(r)for(const n in r)Ke(this,n)||Object.defineProperty(this,n,{get:()=>Rn(r[n])})}_resolveProps(t){const{props:r}=t,n=Ee(r)?r:Object.keys(r||{});for(const o of Object.keys(this))o[0]!=="_"&&n.includes(o)&&this._setProp(o,this[o]);for(const o of n.map(et))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(i){this._setProp(o,i,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const r=this.hasAttribute(t);let n=r?this.getAttribute(t):ZT;const o=et(t);r&&this._numberProps&&this._numberProps[o]&&(n=wc(n)),this._setProp(o,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,r,n=!0,o=!1){if(r!==this._props[t]&&(this._dirty=!0,r===ZT?delete this._props[t]:(this._props[t]=r,t==="key"&&this._app&&(this._app._ceVNode.key=r)),o&&this._instance&&this._update(),n)){const i=this._ob;i&&(this._processMutations(i.takeRecords()),i.disconnect()),r===!0?this.setAttribute(br(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(br(t),r+""):r||this.removeAttribute(br(t)),i&&i.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),$x(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const r=ft(this._def,je(t,this._props));return this._instance||(r.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const o=(i,s)=>{this.dispatchEvent(new CustomEvent(i,xd(s[0])?je({detail:s},s[0]):{detail:s}))};n.emit=(i,...s)=>{o(i,s),br(i)!==i&&o(br(i),s)},this._setParent()}),r}_applyStyles(t,r,n){if(!t)return;if(r){if(r===this._def||this._styleChildren.has(r))return;this._styleChildren.add(r)}const o=this._nonce,i=this.shadowRoot,s=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i);let a=null;for(let l=t.length-1;l>=0;l--){const u=document.createElement("style");o&&u.setAttribute("nonce",o),u.textContent=t[l],i.insertBefore(u,a||s),a=u,l===0&&(n||this._styleAnchors.set(this._def,u),r&&this._styleAnchors.set(r,u))}}_getStyleAnchor(t){if(!t)return null;const r=this._styleAnchors.get(t);return r&&r.parentNode===this.shadowRoot?r:(r&&this._styleAnchors.delete(t),null)}_getRootStyleInsertionAnchor(t){for(let r=0;r<t.childNodes.length;r++){const n=t.childNodes[r];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){const t=this._slots={};let r;for(;r=this.firstChild;){const n=r.nodeType===1&&r.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(r),this.removeChild(r)}}_renderSlots(){const t=this._getSlots(),r=this._instance.type.__scopeId;for(let n=0;n<t.length;n++){const o=t[n],i=o.getAttribute("name")||"default",s=this._slots[i],a=o.parentNode;if(s)for(const l of s){if(r&&l.nodeType===1){const u=r+"-s",d=document.createTreeWalker(l,1);l.setAttribute(u,"");let p;for(;p=d.nextNode();)p.setAttribute(u,"")}a.insertBefore(l,o)}else for(;o.firstChild;)a.insertBefore(o.firstChild,o);a.removeChild(o)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const r=new Set;for(const n of t){const o=n.querySelectorAll("slot");for(let i=0;i<o.length;i++)r.add(o[i])}return Array.from(r)}_injectChildStyle(t,r){this._applyStyles(t.styles,t,r)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){}}function Nx(e){const t=fr(),r=t&&t.ce;return r||null}function IQ(){const e=Nx();return e&&e.shadowRoot}function MQ(e="$style"){{const t=fr();if(!t)return De;const r=t.type.__cssModules;if(!r)return De;const n=r[e];return n||De}}const xx=new WeakMap,Ix=new WeakMap,Lc=Symbol("_moveCb"),e_=Symbol("_enterCb"),qQ=e=>(delete e.props.mode,e),jQ=qQ({name:"TransitionGroup",props:je({},_x,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=fr(),n=bg();let o,i;return Jd(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!BQ(o[0].el,r.vnode.el,s)){o=[];return}o.forEach(DQ),o.forEach(LQ);const a=o.filter(FQ);Fh(r.vnode.el),a.forEach(l=>{const u=l.el,d=u.style;hn(u,s),d.transform=d.webkitTransform=d.transitionDuration="";const p=u[Lc]=f=>{f&&f.target!==u||(!f||f.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",p),u[Lc]=null,Ao(u,s))};u.addEventListener("transitionend",p)}),o=[]}),()=>{const s=Fe(e),a=wx(s);let l=s.tag||Lt;if(o=[],i)for(let u=0;u<i.length;u++){const d=i[u];d.el&&d.el instanceof Element&&(o.push(d),so(d,Ms(d,a,n,r)),xx.set(d,Mx(d.el)))}i=t.default?Vd(t.default()):[];for(let u=0;u<i.length;u++){const d=i[u];d.key!=null&&so(d,Ms(d,a,n,r))}return ft(l,null,i)}}}),kQ=jQ;function DQ(e){const t=e.el;t[Lc]&&t[Lc](),t[e_]&&t[e_]()}function LQ(e){Ix.set(e,Mx(e.el))}function FQ(e){const t=xx.get(e),r=Ix.get(e),n=t.left-r.left,o=t.top-r.top;if(n||o){const i=e.el,s=i.style,a=i.getBoundingClientRect();let l=1,u=1;return i.offsetWidth&&(l=a.width/i.offsetWidth),i.offsetHeight&&(u=a.height/i.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(u)||u===0)&&(u=1),Math.abs(l-1)<.01&&(l=1),Math.abs(u-1)<.01&&(u=1),s.transform=s.webkitTransform=`translate(${n/l}px,${o/u}px)`,s.transitionDuration="0s",e}}function Mx(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function BQ(e,t,r){const n=e.cloneNode(),o=e[qs];o&&o.forEach(a=>{a.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:s}=Sx(n);return i.removeChild(n),s}const Go=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ee(t)?r=>ps(t,r):t};function $Q(e){e.target.composing=!0}function t_(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Hr=Symbol("_assign");function r_(e,t,r){return t&&(e=e.trim()),r&&(e=qd(e)),e}const Fc={created(e,{modifiers:{lazy:t,trim:r,number:n}},o){e[Hr]=Go(o);const i=n||o.props&&o.props.type==="number";Hn(e,t?"change":"input",s=>{s.target.composing||e[Hr](r_(e.value,r,i))}),(r||i)&&Hn(e,"change",()=>{e.value=r_(e.value,r,i)}),t||(Hn(e,"compositionstart",$Q),Hn(e,"compositionend",t_),Hn(e,"change",t_))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:o,number:i}},s){if(e[Hr]=Go(s),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?qd(e.value):e.value,l=t??"";if(a===l)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(n&&t===r||o&&e.value.trim()===l)||(e.value=l)}},Ig={deep:!0,created(e,t,r){e[Hr]=Go(r),Hn(e,"change",()=>{const n=e._modelValue,o=js(e),i=e.checked,s=e[Hr];if(Ee(n)){const a=kd(n,o),l=a!==-1;if(i&&!l)s(n.concat(o));else if(!i&&l){const u=[...n];u.splice(a,1),s(u)}}else if($i(n)){const a=new Set(n);i?a.add(o):a.delete(o),s(a)}else s(jx(e,i))})},mounted:n_,beforeUpdate(e,t,r){e[Hr]=Go(r),n_(e,t,r)}};function n_(e,{value:t,oldValue:r},n){e._modelValue=t;let o;if(Ee(t))o=kd(t,n.props.value)>-1;else if($i(t))o=t.has(n.props.value);else{if(t===r)return;o=no(t,jx(e,!0))}e.checked!==o&&(e.checked=o)}const Mg={created(e,{value:t},r){e.checked=no(t,r.props.value),e[Hr]=Go(r),Hn(e,"change",()=>{e[Hr](js(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e[Hr]=Go(n),t!==r&&(e.checked=no(t,n.props.value))}},qx={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const o=$i(t);Hn(e,"change",()=>{const i=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>r?qd(js(s)):js(s));e[Hr](e.multiple?o?new Set(i):i:i[0]),e._assigning=!0,Wl(()=>{e._assigning=!1})}),e[Hr]=Go(n)},mounted(e,{value:t}){o_(e,t)},beforeUpdate(e,t,r){e[Hr]=Go(r)},updated(e,{value:t}){e._assigning||o_(e,t)}};function o_(e,t){const r=e.multiple,n=Ee(t);if(!(r&&!n&&!$i(t))){for(let o=0,i=e.options.length;o<i;o++){const s=e.options[o],a=js(s);if(r)if(n){const l=typeof a;l==="string"||l==="number"?s.selected=t.some(u=>String(u)===String(a)):s.selected=kd(t,a)>-1}else s.selected=t.has(a);else if(no(js(s),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function js(e){return"_value"in e?e._value:e.value}function jx(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const kx={created(e,t,r){Pu(e,t,r,null,"created")},mounted(e,t,r){Pu(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){Pu(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){Pu(e,t,r,n,"updated")}};function Dx(e,t){switch(e){case"SELECT":return qx;case"TEXTAREA":return Fc;default:switch(t){case"checkbox":return Ig;case"radio":return Mg;default:return Fc}}}function Pu(e,t,r,n,o){const s=Dx(e.tagName,r.props&&r.props.type)[o];s&&s(e,t,r,n)}function VQ(){Fc.getSSRProps=({value:e})=>({value:e}),Mg.getSSRProps=({value:e},t)=>{if(t.props&&no(t.props.value,e))return{checked:!0}},Ig.getSSRProps=({value:e},t)=>{if(Ee(e)){if(t.props&&kd(e,t.props.value)>-1)return{checked:!0}}else if($i(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},kx.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const r=Dx(t.type.toUpperCase(),t.props&&t.props.type);if(r.getSSRProps)return r.getSSRProps(e,t)}}const UQ=["ctrl","shift","alt","meta"],JQ={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>UQ.some(r=>e[`${r}Key`]&&!t.includes(r))},HQ=(e,t)=>{if(!e)return e;const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(o,...i)=>{for(let s=0;s<t.length;s++){const a=JQ[t[s]];if(a&&a(o,t))return}return e(o,...i)})},GQ={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},WQ=(e,t)=>{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=o=>{if(!("key"in o))return;const i=br(o.key);if(t.some(s=>s===i||GQ[s]===i))return e(o)})},Lx=je({patchProp:Px},Ex);let Va,i_=!1;function Fx(){return Va||(Va=QN(Lx))}function Bx(){return Va=i_?Va:ZN(Lx),i_=!0,Va}const $x=(...e)=>{Fx().render(...e)},zQ=(...e)=>{Bx().hydrate(...e)},Bc=(...e)=>{const t=Fx().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=Jx(n);if(!o)return;const i=t._component;!Re(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=r(o,!1,Ux(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t},Vx=(...e)=>{const t=Bx().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=Jx(n);if(o)return r(o,!0,Ux(o))},t};function Ux(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Jx(e){return Pe(e)?document.querySelector(e):e}let s_=!1;const KQ=()=>{s_||(s_=!0,VQ(),yQ())},YQ=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:ON,BaseTransitionPropsValidators:vg,Comment:_t,DeprecationTypes:lQ,EffectScope:ug,ErrorCodes:c7,ErrorTypeStrings:tQ,Fragment:Lt,KeepAlive:U7,ReactiveEffect:pl,Static:wi,Suspense:jX,Teleport:R7,Text:Vo,TrackOpTypes:n7,Transition:pQ,TransitionGroup:kQ,TriggerOpTypes:o7,VueElement:Kd,assertNumber:u7,callWithAsyncErrorHandling:Wr,callWithErrorHandling:Ys,camelize:et,capitalize:Vi,cloneVNode:On,compatUtils:aQ,computed:Vr,createApp:Bc,createBlock:Mc,createCommentVNode:HX,createElementBlock:$X,createElementVNode:Cg,createHydrationRenderer:ZN,createPropsRestProxy:dX,createRenderer:QN,createSSRApp:Vx,createSlots:Y7,createStaticVNode:JX,createTextVNode:Ng,createVNode:ft,customRef:dN,defineAsyncComponent:$7,defineComponent:Kl,defineCustomElement:Cx,defineEmits:tX,defineExpose:rX,defineModel:iX,defineOptions:nX,defineProps:eX,defineSSRCustomElement:NQ,defineSlots:oX,devtools:rQ,effect:R4,effectScope:_4,getCurrentInstance:fr,getCurrentScope:WC,getCurrentWatcher:i7,getTransitionRawChildren:Vd,guardReactiveProps:ux,h:fo,handleError:Ui,hasInjectionContext:b7,hydrate:zQ,hydrateOnIdle:j7,hydrateOnInteraction:F7,hydrateOnMediaQuery:L7,hydrateOnVisible:D7,initCustomFormatter:QX,initDirectivesForSSR:KQ,inject:Jr,isMemoSame:gx,isProxy:Gl,isReactive:Sn,isReadonly:An,isRef:At,isRuntimeOnly:KX,isShallow:Tr,isVNode:cn,markRaw:uN,mergeDefaults:uX,mergeModels:cX,mergeProps:cx,nextTick:Wl,nodeOps:Ex,normalizeClass:Hl,normalizeProps:u4,normalizeStyle:Jl,onActivated:CN,onBeforeMount:IN,onBeforeUnmount:Hd,onBeforeUpdate:Tg,onDeactivated:NN,onErrorCaptured:kN,onMounted:Xl,onRenderTracked:jN,onRenderTriggered:qN,onScopeDispose:w4,onServerPrefetch:MN,onUnmounted:Gd,onUpdated:Jd,onWatcherCleanup:fN,openBlock:El,patchProp:Px,popScopeId:m7,provide:Fa,proxyRefs:mg,pushScopeId:h7,queuePostFlushCb:ml,reactive:Zn,readonly:Rc,ref:fs,registerRuntimeCompiler:hx,render:$x,renderList:K7,renderSlot:X7,resolveComponent:G7,resolveDirective:z7,resolveDynamicComponent:W7,resolveFilter:sQ,resolveTransitionHooks:Ms,setBlockTracking:Tl,setDevtoolsHook:nQ,setTransitionHooks:so,shallowReactive:fg,shallowReadonly:H4,shallowRef:hg,ssrContextKey:vN,ssrUtils:iQ,stop:A4,toDisplayString:HC,toHandlerKey:ds,toHandlers:Q7,toRaw:Fe,toRef:e7,toRefs:X4,toValue:z4,transformVNodeArgs:VX,triggerRef:W4,unref:Rn,useAttrs:lX,useCssModule:MQ,useCssVars:gQ,useHost:Nx,useId:O7,useModel:EX,useSSRContext:EN,useShadowRoot:IQ,useSlots:aX,useTemplateRef:P7,useTransitionState:bg,vModelCheckbox:Ig,vModelDynamic:kx,vModelRadio:Mg,vModelSelect:qx,vModelText:Fc,vShow:Ax,version:bx,warn:eQ,watch:Ti,watchEffect:v7,watchPostEffect:E7,watchSyncEffect:TN,withAsyncContext:pX,withCtx:gg,withDefaults:sX,withDirectives:g7,withKeys:WQ,withMemo:ZX,withModifiers:HQ,withScopeId:y7},Symbol.toStringTag,{value:"Module"}));/**
|
|
1039
|
+
* @vue/compiler-core v3.5.32
|
|
1040
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1041
|
+
* @license MIT
|
|
1042
|
+
**/const wl=Symbol(""),Ua=Symbol(""),qg=Symbol(""),$c=Symbol(""),Hx=Symbol(""),ji=Symbol(""),Gx=Symbol(""),Wx=Symbol(""),jg=Symbol(""),kg=Symbol(""),Zl=Symbol(""),Dg=Symbol(""),zx=Symbol(""),Lg=Symbol(""),Fg=Symbol(""),Bg=Symbol(""),$g=Symbol(""),Vg=Symbol(""),Ug=Symbol(""),Kx=Symbol(""),Yx=Symbol(""),Yd=Symbol(""),Vc=Symbol(""),Jg=Symbol(""),Hg=Symbol(""),Sl=Symbol(""),eu=Symbol(""),Gg=Symbol(""),$h=Symbol(""),XQ=Symbol(""),Vh=Symbol(""),Uc=Symbol(""),QQ=Symbol(""),ZQ=Symbol(""),Wg=Symbol(""),eZ=Symbol(""),tZ=Symbol(""),zg=Symbol(""),Xx=Symbol(""),ks={[wl]:"Fragment",[Ua]:"Teleport",[qg]:"Suspense",[$c]:"KeepAlive",[Hx]:"BaseTransition",[ji]:"openBlock",[Gx]:"createBlock",[Wx]:"createElementBlock",[jg]:"createVNode",[kg]:"createElementVNode",[Zl]:"createCommentVNode",[Dg]:"createTextVNode",[zx]:"createStaticVNode",[Lg]:"resolveComponent",[Fg]:"resolveDynamicComponent",[Bg]:"resolveDirective",[$g]:"resolveFilter",[Vg]:"withDirectives",[Ug]:"renderList",[Kx]:"renderSlot",[Yx]:"createSlots",[Yd]:"toDisplayString",[Vc]:"mergeProps",[Jg]:"normalizeClass",[Hg]:"normalizeStyle",[Sl]:"normalizeProps",[eu]:"guardReactiveProps",[Gg]:"toHandlers",[$h]:"camelize",[XQ]:"capitalize",[Vh]:"toHandlerKey",[Uc]:"setBlockTracking",[QQ]:"pushScopeId",[ZQ]:"popScopeId",[Wg]:"withCtx",[eZ]:"unref",[tZ]:"isRef",[zg]:"withMemo",[Xx]:"isMemoSame"};function rZ(e){Object.getOwnPropertySymbols(e).forEach(t=>{ks[t]=e[t]})}const qr={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function nZ(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:qr}}function Rl(e,t,r,n,o,i,s,a=!1,l=!1,u=!1,d=qr){return e&&(a?(e.helper(ji),e.helper(Fs(e.inSSR,u))):e.helper(Ls(e.inSSR,u)),s&&e.helper(Vg)),{type:13,tag:t,props:r,children:n,patchFlag:o,dynamicProps:i,directives:s,isBlock:a,disableTracking:l,isComponent:u,loc:d}}function Si(e,t=qr){return{type:17,loc:t,elements:e}}function Ur(e,t=qr){return{type:15,loc:t,properties:e}}function Rt(e,t){return{type:16,loc:qr,key:Pe(e)?xe(e,!0):e,value:t}}function xe(e,t=!1,r=qr,n=0){return{type:4,loc:r,content:e,isStatic:t,constType:t?3:n}}function sn(e,t=qr){return{type:8,loc:t,children:e}}function kt(e,t=[],r=qr){return{type:14,loc:r,callee:e,arguments:t}}function Ds(e,t=void 0,r=!1,n=!1,o=qr){return{type:18,params:e,returns:t,newline:r,isSlot:n,loc:o}}function Uh(e,t,r,n=!0){return{type:19,test:e,consequent:t,alternate:r,newline:n,loc:qr}}function oZ(e,t,r=!1,n=!1){return{type:20,index:e,value:t,needPauseTracking:r,inVOnce:n,needArraySpread:!1,loc:qr}}function iZ(e){return{type:21,body:e,loc:qr}}function Ls(e,t){return e||t?jg:kg}function Fs(e,t){return e||t?Gx:Wx}function Kg(e,{helper:t,removeHelper:r,inSSR:n}){e.isBlock||(e.isBlock=!0,r(Ls(n,e.isComponent)),t(ji),t(Fs(n,e.isComponent)))}const a_=new Uint8Array([123,123]),l_=new Uint8Array([125,125]);function u_(e){return e>=97&&e<=122||e>=65&&e<=90}function Pr(e){return e===32||e===10||e===9||e===12||e===13}function wo(e){return e===47||e===62||Pr(e)}function Jc(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}const Xt={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class sZ{constructor(t,r){this.stack=t,this.cbs=r,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=a_,this.delimiterClose=l_,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=a_,this.delimiterClose=l_}getPos(t){let r=1,n=t+1;const o=this.newlines.length;let i=-1;if(o>100){let s=-1,a=o;for(;s+1<a;){const l=s+a>>>1;this.newlines[l]<t?s=l:a=l}i=s}else for(let s=o-1;s>=0;s--)if(t>this.newlines[s]){i=s;break}return i>=0&&(r=i+2,n=t-this.newlines[i]),{column:n,line:r,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const r=this.index+1-this.delimiterOpen.length;r>this.sectionStart&&this.cbs.ontext(this.sectionStart,r),this.state=3,this.sectionStart=r}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const r=this.sequenceIndex===this.currentSequence.length;if(!(r?wo(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!r){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||Pr(t)){const r=this.index-this.currentSequence.length;if(this.sectionStart<r){const n=this.index;this.index=r,this.cbs.ontext(this.sectionStart,r),this.index=n}this.sectionStart=r+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Xt.TitleEnd||this.currentSequence===Xt.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Xt.Cdata[this.sequenceIndex]?++this.sequenceIndex===Xt.Cdata.length&&(this.state=28,this.currentSequence=Xt.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const r=this.buffer.charCodeAt(this.index);if(r===10&&this.newlines.push(this.index),r===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Xt.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,r){this.enterRCDATA(t,r),this.state=31}enterRCDATA(t,r){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=r}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):u_(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){wo(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(wo(t)){const r=this.buffer.slice(this.sectionStart,this.index);r!=="template"&&this.enterRCDATA(Jc("</"+r),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){Pr(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=u_(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||Pr(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):Pr(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):Pr(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||wo(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||wo(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||wo(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||wo(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||wo(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):Pr(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):Pr(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,r){(t===r||this.fastForwardTo(r))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){Pr(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Xt.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Xt.ScriptEnd[3]?this.startSpecial(Xt.ScriptEnd,4):t===Xt.StyleEnd[3]?this.startSpecial(Xt.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Xt.TitleEnd[3]?this.startSpecial(Xt.TitleEnd,4):t===Xt.TextareaEnd[3]?this.startSpecial(Xt.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const r=this.buffer.charCodeAt(this.index);switch(r===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(r);break}case 2:{this.stateInterpolationOpen(r);break}case 3:{this.stateInterpolation(r);break}case 4:{this.stateInterpolationClose(r);break}case 31:{this.stateSpecialStartSequence(r);break}case 32:{this.stateInRCDATA(r);break}case 26:{this.stateCDATASequence(r);break}case 19:{this.stateInAttrValueDoubleQuotes(r);break}case 12:{this.stateInAttrName(r);break}case 13:{this.stateInDirName(r);break}case 14:{this.stateInDirArg(r);break}case 15:{this.stateInDynamicDirArg(r);break}case 16:{this.stateInDirModifier(r);break}case 28:{this.stateInCommentLike(r);break}case 27:{this.stateInSpecialComment(r);break}case 11:{this.stateBeforeAttrName(r);break}case 6:{this.stateInTagName(r);break}case 34:{this.stateInSFCRootTagName(r);break}case 9:{this.stateInClosingTagName(r);break}case 5:{this.stateBeforeTagName(r);break}case 17:{this.stateAfterAttrName(r);break}case 20:{this.stateInAttrValueSingleQuotes(r);break}case 18:{this.stateBeforeAttrValue(r);break}case 8:{this.stateBeforeClosingTagName(r);break}case 10:{this.stateAfterClosingTagName(r);break}case 29:{this.stateBeforeSpecialS(r);break}case 30:{this.stateBeforeSpecialT(r);break}case 21:{this.stateInAttrValueNoQuotes(r);break}case 7:{this.stateInSelfClosingTag(r);break}case 23:{this.stateInDeclaration(r);break}case 22:{this.stateBeforeDeclaration(r);break}case 25:{this.stateBeforeComment(r);break}case 24:{this.stateInProcessingInstruction(r);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===Xt.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,r){}}function c_(e,{compatConfig:t}){const r=t&&t[e];return e==="MODE"?r||3:r}function Ri(e,t){const r=c_("MODE",t),n=c_(e,t);return r===3?n===!0:n!==!1}function Al(e,t,r,...n){return Ri(e,t)}function Yg(e){throw e}function Qx(e){}function lt(e,t,r,n){const o=`https://vuejs.org/error-reference/#compiler-${e}`,i=new SyntaxError(String(o));return i.code=e,i.loc=t,i}const Er=e=>e.type===4&&e.isStatic;function Zx(e){switch(e){case"Teleport":case"teleport":return Ua;case"Suspense":case"suspense":return qg;case"KeepAlive":case"keep-alive":return $c;case"BaseTransition":case"base-transition":return Hx}}const aZ=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Xg=e=>!aZ.test(e),eI=/[A-Za-z_$\xA0-\uFFFF]/,lZ=/[\.\?\w$\xA0-\uFFFF]/,uZ=/\s+[.[]\s*|\s*[.[]\s+/g,tI=e=>e.type===4?e.content:e.loc.source,cZ=e=>{const t=tI(e).trim().replace(uZ,a=>a.trim());let r=0,n=[],o=0,i=0,s=null;for(let a=0;a<t.length;a++){const l=t.charAt(a);switch(r){case 0:if(l==="[")n.push(r),r=1,o++;else if(l==="(")n.push(r),r=2,i++;else if(!(a===0?eI:lZ).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(n.push(r),r=3,s=l):l==="["?o++:l==="]"&&(--o||(r=n.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")n.push(r),r=3,s=l;else if(l==="(")i++;else if(l===")"){if(a===t.length-1)return!1;--i||(r=n.pop())}break;case 3:l===s&&(r=n.pop(),s=null);break}}return!o&&!i},rI=cZ,dZ=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,pZ=e=>dZ.test(tI(e)),fZ=pZ;function $r(e,t,r=!1){for(let n=0;n<e.props.length;n++){const o=e.props[n];if(o.type===7&&(r||o.exp)&&(Pe(t)?o.name===t:t.test(o.name)))return o}}function Xd(e,t,r=!1,n=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===6){if(r)continue;if(i.name===t&&(i.value||n))return i}else if(i.name==="bind"&&(i.exp||n)&&pi(i.arg,t))return i}}function pi(e,t){return!!(e&&Er(e)&&e.content===t)}function hZ(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function of(e){return e.type===5||e.type===2}function d_(e){return e.type===7&&e.name==="pre"}function mZ(e){return e.type===7&&e.name==="slot"}function Hc(e){return e.type===1&&e.tagType===3}function Gc(e){return e.type===1&&e.tagType===2}const yZ=new Set([Sl,eu]);function nI(e,t=[]){if(e&&!Pe(e)&&e.type===14){const r=e.callee;if(!Pe(r)&&yZ.has(r))return nI(e.arguments[0],t.concat(e))}return[e,t]}function Wc(e,t,r){let n,o=e.type===13?e.props:e.arguments[2],i=[],s;if(o&&!Pe(o)&&o.type===14){const a=nI(o);o=a[0],i=a[1],s=i[i.length-1]}if(o==null||Pe(o))n=Ur([t]);else if(o.type===14){const a=o.arguments[0];!Pe(a)&&a.type===15?p_(t,a)||a.properties.unshift(t):o.callee===Gg?n=kt(r.helper(Vc),[Ur([t]),o]):o.arguments.unshift(Ur([t])),!n&&(n=o)}else o.type===15?(p_(t,o)||o.properties.unshift(t),n=o):(n=kt(r.helper(Vc),[Ur([t]),o]),s&&s.callee===eu&&(s=i[i.length-2]));e.type===13?s?s.arguments[0]=n:e.props=n:s?s.arguments[0]=n:e.arguments[2]=n}function p_(e,t){let r=!1;if(e.key.type===4){const n=e.key.content;r=t.properties.some(o=>o.key.type===4&&o.key.content===n)}return r}function Ol(e,t){return`_${t}_${e.replace(/[^\w]/g,(r,n)=>r==="-"?"_":e.charCodeAt(n).toString())}`}function gZ(e){return e.type===14&&e.callee===zg?e.arguments[1].returns:e}const bZ=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function oI(e){for(let t=0;t<e.length;t++)if(!Pr(e.charCodeAt(t)))return!1;return!0}function Qg(e){return e.type===2&&oI(e.content)||e.type===12&&Qg(e.content)}function iI(e){return e.type===3||Qg(e)}const sI={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:rs,isPreTag:rs,isIgnoreNewlineTag:rs,isCustomElement:rs,onError:Yg,onWarn:Qx,comments:!1,prefixIdentifiers:!1};let Ye=sI,Pl=null,to="",Zt=null,ke=null,mr="",Ln=-1,ci=-1,Zg=0,Mo=!1,Jh=null;const ct=[],vt=new sZ(ct,{onerr:kn,ontext(e,t){Cu(Ut(e,t),e,t)},ontextentity(e,t,r){Cu(e,t,r)},oninterpolation(e,t){if(Mo)return Cu(Ut(e,t),e,t);let r=e+vt.delimiterOpen.length,n=t-vt.delimiterClose.length;for(;Pr(to.charCodeAt(r));)r++;for(;Pr(to.charCodeAt(n-1));)n--;let o=Ut(r,n);o.includes("&")&&(o=Ye.decodeEntities(o,!1)),Hh({type:5,content:Gu(o,!1,Tt(r,n)),loc:Tt(e,t)})},onopentagname(e,t){const r=Ut(e,t);Zt={type:1,tag:r,ns:Ye.getNamespace(r,ct[0],Ye.ns),tagType:0,props:[],children:[],loc:Tt(e-1,t),codegenNode:void 0}},onopentagend(e){h_(e)},onclosetag(e,t){const r=Ut(e,t);if(!Ye.isVoidTag(r)){let n=!1;for(let o=0;o<ct.length;o++)if(ct[o].tag.toLowerCase()===r.toLowerCase()){n=!0,o>0&&kn(24,ct[0].loc.start.offset);for(let s=0;s<=o;s++){const a=ct.shift();Hu(a,t,s<o)}break}n||kn(23,aI(e,60))}},onselfclosingtag(e){const t=Zt.tag;Zt.isSelfClosing=!0,h_(e),ct[0]&&ct[0].tag===t&&Hu(ct.shift(),e)},onattribname(e,t){ke={type:6,name:Ut(e,t),nameLoc:Tt(e,t),value:void 0,loc:Tt(e)}},ondirname(e,t){const r=Ut(e,t),n=r==="."||r===":"?"bind":r==="@"?"on":r==="#"?"slot":r.slice(2);if(!Mo&&n===""&&kn(26,e),Mo||n==="")ke={type:6,name:r,nameLoc:Tt(e,t),value:void 0,loc:Tt(e)};else if(ke={type:7,name:n,rawName:r,exp:void 0,arg:void 0,modifiers:r==="."?[xe("prop")]:[],loc:Tt(e)},n==="pre"){Mo=vt.inVPre=!0,Jh=Zt;const o=Zt.props;for(let i=0;i<o.length;i++)o[i].type===7&&(o[i]=PZ(o[i]))}},ondirarg(e,t){if(e===t)return;const r=Ut(e,t);if(Mo&&!d_(ke))ke.name+=r,fi(ke.nameLoc,t);else{const n=r[0]!=="[";ke.arg=Gu(n?r:r.slice(1,-1),n,Tt(e,t),n?3:0)}},ondirmodifier(e,t){const r=Ut(e,t);if(Mo&&!d_(ke))ke.name+="."+r,fi(ke.nameLoc,t);else if(ke.name==="slot"){const n=ke.arg;n&&(n.content+="."+r,fi(n.loc,t))}else{const n=xe(r,!0,Tt(e,t));ke.modifiers.push(n)}},onattribdata(e,t){mr+=Ut(e,t),Ln<0&&(Ln=e),ci=t},onattribentity(e,t,r){mr+=e,Ln<0&&(Ln=t),ci=r},onattribnameend(e){const t=ke.loc.start.offset,r=Ut(t,e);ke.type===7&&(ke.rawName=r),Zt.props.some(n=>(n.type===7?n.rawName:n.name)===r)&&kn(2,t)},onattribend(e,t){if(Zt&&ke){if(fi(ke.loc,t),e!==0)if(mr.includes("&")&&(mr=Ye.decodeEntities(mr,!0)),ke.type===6)ke.name==="class"&&(mr=uI(mr).trim()),e===1&&!mr&&kn(13,t),ke.value={type:2,content:mr,loc:e===1?Tt(Ln,ci):Tt(Ln-1,ci+1)},vt.inSFCRoot&&Zt.tag==="template"&&ke.name==="lang"&&mr&&mr!=="html"&&vt.enterRCDATA(Jc("</template"),0);else{let r=0;ke.exp=Gu(mr,!1,Tt(Ln,ci),0,r),ke.name==="for"&&(ke.forParseResult=EZ(ke.exp));let n=-1;ke.name==="bind"&&(n=ke.modifiers.findIndex(o=>o.content==="sync"))>-1&&Al("COMPILER_V_BIND_SYNC",Ye,ke.loc,ke.arg.loc.source)&&(ke.name="model",ke.modifiers.splice(n,1))}(ke.type!==7||ke.name!=="pre")&&Zt.props.push(ke)}mr="",Ln=ci=-1},oncomment(e,t){Ye.comments&&Hh({type:3,content:Ut(e,t),loc:Tt(e-4,t+3)})},onend(){const e=to.length;for(let t=0;t<ct.length;t++)Hu(ct[t],e-1),kn(24,ct[t].loc.start.offset)},oncdata(e,t){ct[0].ns!==0?Cu(Ut(e,t),e,t):kn(1,e-9)},onprocessinginstruction(e){(ct[0]?ct[0].ns:Ye.ns)===0&&kn(21,e-1)}}),f_=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,vZ=/^\(|\)$/g;function EZ(e){const t=e.loc,r=e.content,n=r.match(bZ);if(!n)return;const[,o,i]=n,s=(p,f,h=!1)=>{const y=t.start.offset+f,g=y+p.length;return Gu(p,!1,Tt(y,g),0,h?1:0)},a={source:s(i.trim(),r.indexOf(i,o.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=o.trim().replace(vZ,"").trim();const u=o.indexOf(l),d=l.match(f_);if(d){l=l.replace(f_,"").trim();const p=d[1].trim();let f;if(p&&(f=r.indexOf(p,u+l.length),a.key=s(p,f,!0)),d[2]){const h=d[2].trim();h&&(a.index=s(h,r.indexOf(h,a.key?f+p.length:u+l.length),!0))}}return l&&(a.value=s(l,u,!0)),a}function Ut(e,t){return to.slice(e,t)}function h_(e){vt.inSFCRoot&&(Zt.innerLoc=Tt(e+1,e+1)),Hh(Zt);const{tag:t,ns:r}=Zt;r===0&&Ye.isPreTag(t)&&Zg++,Ye.isVoidTag(t)?Hu(Zt,e):(ct.unshift(Zt),(r===1||r===2)&&(vt.inXML=!0)),Zt=null}function Cu(e,t,r){{const i=ct[0]&&ct[0].tag;i!=="script"&&i!=="style"&&e.includes("&")&&(e=Ye.decodeEntities(e,!1))}const n=ct[0]||Pl,o=n.children[n.children.length-1];o&&o.type===2?(o.content+=e,fi(o.loc,r)):n.children.push({type:2,content:e,loc:Tt(t,r)})}function Hu(e,t,r=!1){r?fi(e.loc,aI(t,60)):fi(e.loc,TZ(t,62)+1),vt.inSFCRoot&&(e.children.length?e.innerLoc.end=je({},e.children[e.children.length-1].loc.end):e.innerLoc.end=je({},e.innerLoc.start),e.innerLoc.source=Ut(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:n,ns:o,children:i}=e;if(Mo||(n==="slot"?e.tagType=2:m_(e)?e.tagType=3:wZ(e)&&(e.tagType=1)),vt.inRCDATA||(e.children=lI(i)),o===0&&Ye.isIgnoreNewlineTag(n)){const s=i[0];s&&s.type===2&&(s.content=s.content.replace(/^\r?\n/,""))}o===0&&Ye.isPreTag(n)&&Zg--,Jh===e&&(Mo=vt.inVPre=!1,Jh=null),vt.inXML&&(ct[0]?ct[0].ns:Ye.ns)===0&&(vt.inXML=!1);{const s=e.props;if(!vt.inSFCRoot&&Ri("COMPILER_NATIVE_TEMPLATE",Ye)&&e.tag==="template"&&!m_(e)){const l=ct[0]||Pl,u=l.children.indexOf(e);l.children.splice(u,1,...e.children)}const a=s.find(l=>l.type===6&&l.name==="inline-template");a&&Al("COMPILER_INLINE_TEMPLATE",Ye,a.loc)&&e.children.length&&(a.value={type:2,content:Ut(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:a.loc})}}function TZ(e,t){let r=e;for(;to.charCodeAt(r)!==t&&r<to.length-1;)r++;return r}function aI(e,t){let r=e;for(;to.charCodeAt(r)!==t&&r>=0;)r--;return r}const _Z=new Set(["if","else","else-if","for","slot"]);function m_({tag:e,props:t}){if(e==="template"){for(let r=0;r<t.length;r++)if(t[r].type===7&&_Z.has(t[r].name))return!0}return!1}function wZ({tag:e,props:t}){if(Ye.isCustomElement(e))return!1;if(e==="component"||SZ(e.charCodeAt(0))||Zx(e)||Ye.isBuiltInComponent&&Ye.isBuiltInComponent(e)||Ye.isNativeTag&&!Ye.isNativeTag(e))return!0;for(let r=0;r<t.length;r++){const n=t[r];if(n.type===6){if(n.name==="is"&&n.value){if(n.value.content.startsWith("vue:"))return!0;if(Al("COMPILER_IS_ON_ELEMENT",Ye,n.loc))return!0}}else if(n.name==="bind"&&pi(n.arg,"is")&&Al("COMPILER_IS_ON_ELEMENT",Ye,n.loc))return!0}return!1}function SZ(e){return e>64&&e<91}const RZ=/\r\n/g;function lI(e){const t=Ye.whitespace!=="preserve";let r=!1;for(let n=0;n<e.length;n++){const o=e[n];if(o.type===2)if(Zg)o.content=o.content.replace(RZ,`
|
|
1043
|
+
`);else if(oI(o.content)){const i=e[n-1]&&e[n-1].type,s=e[n+1]&&e[n+1].type;!i||!s||t&&(i===3&&(s===3||s===1)||i===1&&(s===3||s===1&&AZ(o.content)))?(r=!0,e[n]=null):o.content=" "}else t&&(o.content=uI(o.content))}return r?e.filter(Boolean):e}function AZ(e){for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r===10||r===13)return!0}return!1}function uI(e){let t="",r=!1;for(let n=0;n<e.length;n++)Pr(e.charCodeAt(n))?r||(t+=" ",r=!0):(t+=e[n],r=!1);return t}function Hh(e){(ct[0]||Pl).children.push(e)}function Tt(e,t){return{start:vt.getPos(e),end:t==null?t:vt.getPos(t),source:t==null?t:Ut(e,t)}}function OZ(e){return Tt(e.start.offset,e.end.offset)}function fi(e,t){e.end=vt.getPos(t),e.source=Ut(e.start.offset,t)}function PZ(e){const t={type:6,name:e.rawName,nameLoc:Tt(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const r=e.exp.loc;r.end.offset<e.loc.end.offset&&(r.start.offset--,r.start.column--,r.end.offset++,r.end.column++),t.value={type:2,content:e.exp.content,loc:r}}return t}function Gu(e,t=!1,r,n=0,o=0){return xe(e,t,r,n)}function kn(e,t,r){Ye.onError(lt(e,Tt(t,t)))}function CZ(){vt.reset(),Zt=null,ke=null,mr="",Ln=-1,ci=-1,ct.length=0}function NZ(e,t){if(CZ(),to=e,Ye=je({},sI),t){let o;for(o in t)t[o]!=null&&(Ye[o]=t[o])}vt.mode=Ye.parseMode==="html"?1:Ye.parseMode==="sfc"?2:0,vt.inXML=Ye.ns===1||Ye.ns===2;const r=t&&t.delimiters;r&&(vt.delimiterOpen=Jc(r[0]),vt.delimiterClose=Jc(r[1]));const n=Pl=nZ([],e);return vt.parse(to),n.loc=Tt(0,e.length),n.children=lI(n.children),Pl=null,n}function xZ(e,t){Wu(e,void 0,t,!!cI(e))}function cI(e){const t=e.children.filter(r=>r.type!==3);return t.length===1&&t[0].type===1&&!Gc(t[0])?t[0]:null}function Wu(e,t,r,n=!1,o=!1){const{children:i}=e,s=[];for(let d=0;d<i.length;d++){const p=i[d];if(p.type===1&&p.tagType===0){const f=n?0:Nr(p,r);if(f>0){if(f>=2){p.codegenNode.patchFlag=-1,s.push(p);continue}}else{const h=p.codegenNode;if(h.type===13){const y=h.patchFlag;if((y===void 0||y===512||y===1)&&pI(p,r)>=2){const g=fI(p);g&&(h.props=r.hoist(g))}h.dynamicProps&&(h.dynamicProps=r.hoist(h.dynamicProps))}}}else if(p.type===12&&(n?0:Nr(p,r))>=2){p.codegenNode.type===14&&p.codegenNode.arguments.length>0&&p.codegenNode.arguments.push("-1"),s.push(p);continue}if(p.type===1){const f=p.tagType===1;f&&r.scopes.vSlot++,Wu(p,e,r,!1,o),f&&r.scopes.vSlot--}else if(p.type===11)Wu(p,e,r,p.children.length===1,!0);else if(p.type===9)for(let f=0;f<p.branches.length;f++)Wu(p.branches[f],e,r,p.branches[f].children.length===1,o)}let a=!1;if(s.length===i.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&Ee(e.codegenNode.children))e.codegenNode.children=l(Si(e.codegenNode.children)),a=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!Ee(e.codegenNode.children)&&e.codegenNode.children.type===15){const d=u(e.codegenNode,"default");d&&(d.returns=l(Si(d.returns)),a=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!Ee(t.codegenNode.children)&&t.codegenNode.children.type===15){const d=$r(e,"slot",!0),p=d&&d.arg&&u(t.codegenNode,d.arg);p&&(p.returns=l(Si(p.returns)),a=!0)}}if(!a)for(const d of s)d.codegenNode=r.cache(d.codegenNode);function l(d){const p=r.cache(d);return p.needArraySpread=!0,p}function u(d,p){if(d.children&&!Ee(d.children)&&d.children.type===15){const f=d.children.properties.find(h=>h.key===p||h.key.content===p);return f&&f.value}}s.length&&r.transformHoist&&r.transformHoist(i,r,e)}function Nr(e,t){const{constantCache:r}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const n=r.get(e);if(n!==void 0)return n;const o=e.codegenNode;if(o.type!==13||o.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(o.patchFlag===void 0){let s=3;const a=pI(e,t);if(a===0)return r.set(e,0),0;a<s&&(s=a);for(let l=0;l<e.children.length;l++){const u=Nr(e.children[l],t);if(u===0)return r.set(e,0),0;u<s&&(s=u)}if(s>1)for(let l=0;l<e.props.length;l++){const u=e.props[l];if(u.type===7&&u.name==="bind"&&u.exp){const d=Nr(u.exp,t);if(d===0)return r.set(e,0),0;d<s&&(s=d)}}if(o.isBlock){for(let l=0;l<e.props.length;l++)if(e.props[l].type===7)return r.set(e,0),0;t.removeHelper(ji),t.removeHelper(Fs(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Ls(t.inSSR,o.isComponent))}return r.set(e,s),s}else return r.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Nr(e.content,t);case 4:return e.constType;case 8:let i=3;for(let s=0;s<e.children.length;s++){const a=e.children[s];if(Pe(a)||sr(a))continue;const l=Nr(a,t);if(l===0)return 0;l<i&&(i=l)}return i;case 20:return 2;default:return 0}}const IZ=new Set([Jg,Hg,Sl,eu]);function dI(e,t){if(e.type===14&&!Pe(e.callee)&&IZ.has(e.callee)){const r=e.arguments[0];if(r.type===4)return Nr(r,t);if(r.type===14)return dI(r,t)}return 0}function pI(e,t){let r=3;const n=fI(e);if(n&&n.type===15){const{properties:o}=n;for(let i=0;i<o.length;i++){const{key:s,value:a}=o[i],l=Nr(s,t);if(l===0)return l;l<r&&(r=l);let u;if(a.type===4?u=Nr(a,t):a.type===14?u=dI(a,t):u=0,u===0)return u;u<r&&(r=u)}}return r}function fI(e){const t=e.codegenNode;if(t.type===13)return t.props}function MZ(e,{filename:t="",prefixIdentifiers:r=!1,hoistStatic:n=!1,hmr:o=!1,cacheHandlers:i=!1,nodeTransforms:s=[],directiveTransforms:a={},transformHoist:l=null,isBuiltInComponent:u=zt,isCustomElement:d=zt,expressionPlugins:p=[],scopeId:f=null,slotted:h=!0,ssr:y=!1,inSSR:g=!1,ssrCssVars:v="",bindingMetadata:b=De,inline:E=!1,isTS:T=!1,onError:A=Yg,onWarn:P=Qx,compatConfig:R}){const S=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),w={filename:t,selfName:S&&Vi(et(S[1])),prefixIdentifiers:r,hoistStatic:n,hmr:o,cacheHandlers:i,nodeTransforms:s,directiveTransforms:a,transformHoist:l,isBuiltInComponent:u,isCustomElement:d,expressionPlugins:p,scopeId:f,slotted:h,ssr:y,inSSR:g,ssrCssVars:v,bindingMetadata:b,inline:E,isTS:T,onError:A,onWarn:P,compatConfig:R,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(O){const q=w.helpers.get(O)||0;return w.helpers.set(O,q+1),O},removeHelper(O){const q=w.helpers.get(O);if(q){const M=q-1;M?w.helpers.set(O,M):w.helpers.delete(O)}},helperString(O){return`_${ks[w.helper(O)]}`},replaceNode(O){w.parent.children[w.childIndex]=w.currentNode=O},removeNode(O){const q=w.parent.children,M=O?q.indexOf(O):w.currentNode?w.childIndex:-1;!O||O===w.currentNode?(w.currentNode=null,w.onNodeRemoved()):w.childIndex>M&&(w.childIndex--,w.onNodeRemoved()),w.parent.children.splice(M,1)},onNodeRemoved:zt,addIdentifiers(O){},removeIdentifiers(O){},hoist(O){Pe(O)&&(O=xe(O)),w.hoists.push(O);const q=xe(`_hoisted_${w.hoists.length}`,!1,O.loc,2);return q.hoisted=O,q},cache(O,q=!1,M=!1){const k=oZ(w.cached.length,O,q,M);return w.cached.push(k),k}};return w.filters=new Set,w}function qZ(e,t){const r=MZ(e,t);Qd(e,r),t.hoistStatic&&xZ(e,r),t.ssr||jZ(e,r),e.helpers=new Set([...r.helpers.keys()]),e.components=[...r.components],e.directives=[...r.directives],e.imports=r.imports,e.hoists=r.hoists,e.temps=r.temps,e.cached=r.cached,e.transformed=!0,e.filters=[...r.filters]}function jZ(e,t){const{helper:r}=t,{children:n}=e;if(n.length===1){const o=cI(e);if(o&&o.codegenNode){const i=o.codegenNode;i.type===13&&Kg(i,t),e.codegenNode=i}else e.codegenNode=n[0]}else if(n.length>1){let o=64;e.codegenNode=Rl(t,r(wl),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}function kZ(e,t){let r=0;const n=()=>{r--};for(;r<e.children.length;r++){const o=e.children[r];Pe(o)||(t.grandParent=t.parent,t.parent=e,t.childIndex=r,t.onNodeRemoved=n,Qd(o,t))}}function Qd(e,t){t.currentNode=e;const{nodeTransforms:r}=t,n=[];for(let i=0;i<r.length;i++){const s=r[i](e,t);if(s&&(Ee(s)?n.push(...s):n.push(s)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Zl);break;case 5:t.ssr||t.helper(Yd);break;case 9:for(let i=0;i<e.branches.length;i++)Qd(e.branches[i],t);break;case 10:case 11:case 1:case 0:kZ(e,t);break}t.currentNode=e;let o=n.length;for(;o--;)n[o]()}function hI(e,t){const r=Pe(e)?n=>n===e:n=>e.test(n);return(n,o)=>{if(n.type===1){const{props:i}=n;if(n.tagType===3&&i.some(mZ))return;const s=[];for(let a=0;a<i.length;a++){const l=i[a];if(l.type===7&&r(l.name)){i.splice(a,1),a--;const u=t(n,l,o);u&&s.push(u)}}return s}}}const Zd="/*@__PURE__*/",mI=e=>`${ks[e]}: _${ks[e]}`;function DZ(e,{mode:t="function",prefixIdentifiers:r=t==="module",sourceMap:n=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:s=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:d=!1,isTS:p=!1,inSSR:f=!1}){const h={mode:t,prefixIdentifiers:r,sourceMap:n,filename:o,scopeId:i,optimizeImports:s,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:u,ssr:d,isTS:p,inSSR:f,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(g){return`_${ks[g]}`},push(g,v=-2,b){h.code+=g},indent(){y(++h.indentLevel)},deindent(g=!1){g?--h.indentLevel:y(--h.indentLevel)},newline(){y(h.indentLevel)}};function y(g){h.push(`
|
|
1044
|
+
`+" ".repeat(g),0)}return h}function LZ(e,t={}){const r=DZ(e,t);t.onContextCreated&&t.onContextCreated(r);const{mode:n,push:o,prefixIdentifiers:i,indent:s,deindent:a,newline:l,scopeId:u,ssr:d}=r,p=Array.from(e.helpers),f=p.length>0,h=!i&&n!=="module";FZ(e,r);const g=d?"ssrRender":"render",b=(d?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(o(`function ${g}(${b}) {`),s(),h&&(o("with (_ctx) {"),s(),f&&(o(`const { ${p.map(mI).join(", ")} } = _Vue
|
|
1045
|
+
`,-1),l())),e.components.length&&(sf(e.components,"component",r),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(sf(e.directives,"directive",r),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),sf(e.filters,"filter",r),l()),e.temps>0){o("let ");for(let E=0;E<e.temps;E++)o(`${E>0?", ":""}_temp${E}`)}return(e.components.length||e.directives.length||e.temps)&&(o(`
|
|
1046
|
+
`,0),l()),d||o("return "),e.codegenNode?nr(e.codegenNode,r):o("null"),h&&(a(),o("}")),a(),o("}"),{ast:e,code:r.code,preamble:"",map:r.map?r.map.toJSON():void 0}}function FZ(e,t){const{ssr:r,prefixIdentifiers:n,push:o,newline:i,runtimeModuleName:s,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,u=a,d=Array.from(e.helpers);if(d.length>0&&(o(`const _Vue = ${u}
|
|
1047
|
+
`,-1),e.hoists.length)){const p=[jg,kg,Zl,Dg,zx].filter(f=>d.includes(f)).map(mI).join(", ");o(`const { ${p} } = _Vue
|
|
1048
|
+
`,-1)}BZ(e.hoists,t),i(),o("return ")}function sf(e,t,{helper:r,push:n,newline:o,isTS:i}){const s=r(t==="filter"?$g:t==="component"?Lg:Bg);for(let a=0;a<e.length;a++){let l=e[a];const u=l.endsWith("__self");u&&(l=l.slice(0,-6)),n(`const ${Ol(l,t)} = ${s}(${JSON.stringify(l)}${u?", true":""})${i?"!":""}`),a<e.length-1&&o()}}function BZ(e,t){if(!e.length)return;t.pure=!0;const{push:r,newline:n}=t;n();for(let o=0;o<e.length;o++){const i=e[o];i&&(r(`const _hoisted_${o+1} = `),nr(i,t),n())}t.pure=!1}function eb(e,t){const r=e.length>3||!1;t.push("["),r&&t.indent(),tu(e,t,r),r&&t.deindent(),t.push("]")}function tu(e,t,r=!1,n=!0){const{push:o,newline:i}=t;for(let s=0;s<e.length;s++){const a=e[s];Pe(a)?o(a,-3):Ee(a)?eb(a,t):nr(a,t),s<e.length-1&&(r?(n&&o(","),i()):n&&o(", "))}}function nr(e,t){if(Pe(e)){t.push(e,-3);return}if(sr(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:nr(e.codegenNode,t);break;case 2:$Z(e,t);break;case 4:yI(e,t);break;case 5:VZ(e,t);break;case 12:nr(e.codegenNode,t);break;case 8:gI(e,t);break;case 3:JZ(e,t);break;case 13:HZ(e,t);break;case 14:WZ(e,t);break;case 15:zZ(e,t);break;case 17:KZ(e,t);break;case 18:YZ(e,t);break;case 19:XZ(e,t);break;case 20:QZ(e,t);break;case 21:tu(e.body,t,!0,!1);break}}function $Z(e,t){t.push(JSON.stringify(e.content),-3,e)}function yI(e,t){const{content:r,isStatic:n}=e;t.push(n?JSON.stringify(r):r,-3,e)}function VZ(e,t){const{push:r,helper:n,pure:o}=t;o&&r(Zd),r(`${n(Yd)}(`),nr(e.content,t),r(")")}function gI(e,t){for(let r=0;r<e.children.length;r++){const n=e.children[r];Pe(n)?t.push(n,-3):nr(n,t)}}function UZ(e,t){const{push:r}=t;if(e.type===8)r("["),gI(e,t),r("]");else if(e.isStatic){const n=Xg(e.content)?e.content:JSON.stringify(e.content);r(n,-2,e)}else r(`[${e.content}]`,-3,e)}function JZ(e,t){const{push:r,helper:n,pure:o}=t;o&&r(Zd),r(`${n(Zl)}(${JSON.stringify(e.content)})`,-3,e)}function HZ(e,t){const{push:r,helper:n,pure:o}=t,{tag:i,props:s,children:a,patchFlag:l,dynamicProps:u,directives:d,isBlock:p,disableTracking:f,isComponent:h}=e;let y;l&&(y=String(l)),d&&r(n(Vg)+"("),p&&r(`(${n(ji)}(${f?"true":""}), `),o&&r(Zd);const g=p?Fs(t.inSSR,h):Ls(t.inSSR,h);r(n(g)+"(",-2,e),tu(GZ([i,s,a,y,u]),t),r(")"),p&&r(")"),d&&(r(", "),nr(d,t),r(")"))}function GZ(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(r=>r||"null")}function WZ(e,t){const{push:r,helper:n,pure:o}=t,i=Pe(e.callee)?e.callee:n(e.callee);o&&r(Zd),r(i+"(",-2,e),tu(e.arguments,t),r(")")}function zZ(e,t){const{push:r,indent:n,deindent:o,newline:i}=t,{properties:s}=e;if(!s.length){r("{}",-2,e);return}const a=s.length>1||!1;r(a?"{":"{ "),a&&n();for(let l=0;l<s.length;l++){const{key:u,value:d}=s[l];UZ(u,t),r(": "),nr(d,t),l<s.length-1&&(r(","),i())}a&&o(),r(a?"}":" }")}function KZ(e,t){eb(e.elements,t)}function YZ(e,t){const{push:r,indent:n,deindent:o}=t,{params:i,returns:s,body:a,newline:l,isSlot:u}=e;u&&r(`_${ks[Wg]}(`),r("(",-2,e),Ee(i)?tu(i,t):i&&nr(i,t),r(") => "),(l||a)&&(r("{"),n()),s?(l&&r("return "),Ee(s)?eb(s,t):nr(s,t)):a&&nr(a,t),(l||a)&&(o(),r("}")),u&&(e.isNonScopedSlot&&r(", undefined, true"),r(")"))}function XZ(e,t){const{test:r,consequent:n,alternate:o,newline:i}=e,{push:s,indent:a,deindent:l,newline:u}=t;if(r.type===4){const p=!Xg(r.content);p&&s("("),yI(r,t),p&&s(")")}else s("("),nr(r,t),s(")");i&&a(),t.indentLevel++,i||s(" "),s("? "),nr(n,t),t.indentLevel--,i&&u(),i||s(" "),s(": ");const d=o.type===19;d||t.indentLevel++,nr(o,t),d||t.indentLevel--,i&&l(!0)}function QZ(e,t){const{push:r,helper:n,indent:o,deindent:i,newline:s}=t,{needPauseTracking:a,needArraySpread:l}=e;l&&r("[...("),r(`_cache[${e.index}] || (`),a&&(o(),r(`${n(Uc)}(-1`),e.inVOnce&&r(", true"),r("),"),s(),r("(")),r(`_cache[${e.index}] = `),nr(e.value,t),a&&(r(`).cacheIndex = ${e.index},`),s(),r(`${n(Uc)}(1),`),s(),r(`_cache[${e.index}]`),i()),r(")"),l&&r(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const ZZ=hI(/^(?:if|else|else-if)$/,(e,t,r)=>eee(e,t,r,(n,o,i)=>{const s=r.parent.children;let a=s.indexOf(n),l=0;for(;a-->=0;){const u=s[a];u&&u.type===9&&(l+=u.branches.length)}return()=>{if(i)n.codegenNode=g_(o,l,r);else{const u=tee(n.codegenNode);u.alternate=g_(o,l+n.branches.length-1,r)}}}));function eee(e,t,r,n){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;r.onError(lt(28,t.loc)),t.exp=xe("true",!1,o)}if(t.name==="if"){const o=y_(e,t),i={type:9,loc:OZ(e.loc),branches:[o]};if(r.replaceNode(i),n)return n(i,o,!0)}else{const o=r.parent.children;let i=o.indexOf(e);for(;i-->=-1;){const s=o[i];if(s&&iI(s)){r.removeNode(s);continue}if(s&&s.type===9){(t.name==="else-if"||t.name==="else")&&s.branches[s.branches.length-1].condition===void 0&&r.onError(lt(30,e.loc)),r.removeNode();const a=y_(e,t);s.branches.push(a);const l=n&&n(s,a,!1);Qd(a,r),l&&l(),r.currentNode=null}else r.onError(lt(30,e.loc));break}}}function y_(e,t){const r=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:r&&!$r(e,"for")?e.children:[e],userKey:Xd(e,"key"),isTemplateIf:r}}function g_(e,t,r){return e.condition?Uh(e.condition,b_(e,t,r),kt(r.helper(Zl),['""',"true"])):b_(e,t,r)}function b_(e,t,r){const{helper:n}=r,o=Rt("key",xe(`${t}`,!1,qr,2)),{children:i}=e,s=i[0];if(i.length!==1||s.type!==1)if(i.length===1&&s.type===11){const l=s.codegenNode;return Wc(l,o,r),l}else return Rl(r,n(wl),Ur([o]),i,64,void 0,void 0,!0,!1,!1,e.loc);else{const l=s.codegenNode,u=gZ(l);return u.type===13&&Kg(u,r),Wc(u,o,r),l}}function tee(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const ree=hI("for",(e,t,r)=>{const{helper:n,removeHelper:o}=r;return nee(e,t,r,i=>{const s=kt(n(Ug),[i.source]),a=Hc(e),l=$r(e,"memo"),u=Xd(e,"key",!1,!0);u&&u.type;let d=u&&(u.type===6?u.value?xe(u.value.content,!0):void 0:u.exp);const p=u&&d?Rt("key",d):null,f=i.source.type===4&&i.source.constType>0,h=f?64:u?128:256;return i.codegenNode=Rl(r,n(wl),void 0,s,h,void 0,void 0,!0,!f,!1,e.loc),()=>{let y;const{children:g}=i,v=g.length!==1||g[0].type!==1,b=Gc(e)?e:a&&e.children.length===1&&Gc(e.children[0])?e.children[0]:null;if(b?(y=b.codegenNode,a&&p&&Wc(y,p,r)):v?y=Rl(r,n(wl),p?Ur([p]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(y=g[0].codegenNode,a&&p&&Wc(y,p,r),y.isBlock!==!f&&(y.isBlock?(o(ji),o(Fs(r.inSSR,y.isComponent))):o(Ls(r.inSSR,y.isComponent))),y.isBlock=!f,y.isBlock?(n(ji),n(Fs(r.inSSR,y.isComponent))):n(Ls(r.inSSR,y.isComponent))),l){const E=Ds(Gh(i.parseResult,[xe("_cached")]));E.body=iZ([sn(["const _memo = (",l.exp,")"]),sn(["if (_cached && _cached.el",...d?[" && _cached.key === ",d]:[],` && ${r.helperString(Xx)}(_cached, _memo)) return _cached`]),sn(["const _item = ",y]),xe("_item.memo = _memo"),xe("return _item")]),s.arguments.push(E,xe("_cache"),xe(String(r.cached.length))),r.cached.push(null)}else s.arguments.push(Ds(Gh(i.parseResult),y,!0))}})});function nee(e,t,r,n){if(!t.exp){r.onError(lt(31,t.loc));return}const o=t.forParseResult;if(!o){r.onError(lt(32,t.loc));return}bI(o);const{addIdentifiers:i,removeIdentifiers:s,scopes:a}=r,{source:l,value:u,key:d,index:p}=o,f={type:11,loc:t.loc,source:l,valueAlias:u,keyAlias:d,objectIndexAlias:p,parseResult:o,children:Hc(e)?e.children:[e]};r.replaceNode(f),a.vFor++;const h=n&&n(f);return()=>{a.vFor--,h&&h()}}function bI(e,t){e.finalized||(e.finalized=!0)}function Gh({value:e,key:t,index:r},n=[]){return oee([e,t,r,...n])}function oee(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((r,n)=>r||xe("_".repeat(n+1),!1))}const v_=xe("undefined",!1),iee=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const r=$r(e,"slot");if(r)return r.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},see=(e,t,r,n)=>Ds(e,r,!1,!0,r.length?r[0].loc:n);function aee(e,t,r=see){t.helper(Wg);const{children:n,loc:o}=e,i=[],s=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=$r(e,"slot",!0);if(l){const{arg:v,exp:b}=l;v&&!Er(v)&&(a=!0),i.push(Rt(v||xe("default",!0),r(b,void 0,n,o)))}let u=!1,d=!1;const p=[],f=new Set;let h=0;for(let v=0;v<n.length;v++){const b=n[v];let E;if(!Hc(b)||!(E=$r(b,"slot",!0))){b.type!==3&&p.push(b);continue}if(l){t.onError(lt(37,E.loc));break}u=!0;const{children:T,loc:A}=b,{arg:P=xe("default",!0),exp:R,loc:S}=E;let w;Er(P)?w=P?P.content:"default":a=!0;const O=$r(b,"for"),q=r(R,O,T,A);let M,k;if(M=$r(b,"if"))a=!0,s.push(Uh(M.exp,Nu(P,q,h++),v_));else if(k=$r(b,/^else(?:-if)?$/,!0)){let x=v,C;for(;x--&&(C=n[x],!!iI(C)););if(C&&Hc(C)&&$r(C,/^(?:else-)?if$/)){let j=s[s.length-1];for(;j.alternate.type===19;)j=j.alternate;j.alternate=k.exp?Uh(k.exp,Nu(P,q,h++),v_):Nu(P,q,h++)}else t.onError(lt(30,k.loc))}else if(O){a=!0;const x=O.forParseResult;x?(bI(x),s.push(kt(t.helper(Ug),[x.source,Ds(Gh(x),Nu(P,q),!0)]))):t.onError(lt(32,O.loc))}else{if(w){if(f.has(w)){t.onError(lt(38,S));continue}f.add(w),w==="default"&&(d=!0)}i.push(Rt(P,q))}}if(!l){const v=(b,E)=>{const T=r(b,void 0,E,o);return t.compatConfig&&(T.isNonScopedSlot=!0),Rt("default",T)};u?p.length&&!p.every(Qg)&&(d?t.onError(lt(39,p[0].loc)):i.push(v(void 0,p))):i.push(v(void 0,n))}const y=a?2:zu(e.children)?3:1;let g=Ur(i.concat(Rt("_",xe(y+"",!1))),o);return s.length&&(g=kt(t.helper(Yx),[g,Si(s)])),{slots:g,hasDynamicSlots:a}}function Nu(e,t,r){const n=[Rt("name",e),Rt("fn",t)];return r!=null&&n.push(Rt("key",xe(String(r),!0))),Ur(n)}function zu(e){for(let t=0;t<e.length;t++){const r=e[t];switch(r.type){case 1:if(r.tagType===2||zu(r.children))return!0;break;case 9:if(zu(r.branches))return!0;break;case 10:case 11:if(zu(r.children))return!0;break}}return!1}const vI=new WeakMap,lee=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:n,props:o}=e,i=e.tagType===1;let s=i?uee(e,t):`"${n}"`;const a=We(s)&&s.callee===Fg;let l,u,d=0,p,f,h,y=a||s===Ua||s===qg||!i&&(n==="svg"||n==="foreignObject"||n==="math");if(o.length>0){const g=EI(e,t,void 0,i,a);l=g.props,d=g.patchFlag,f=g.dynamicPropNames;const v=g.directives;h=v&&v.length?Si(v.map(b=>dee(b,t))):void 0,g.shouldUseBlock&&(y=!0)}if(e.children.length>0)if(s===$c&&(y=!0,d|=1024),i&&s!==Ua&&s!==$c){const{slots:v,hasDynamicSlots:b}=aee(e,t);u=v,b&&(d|=1024)}else if(e.children.length===1&&s!==Ua){const v=e.children[0],b=v.type,E=b===5||b===8;E&&Nr(v,t)===0&&(d|=1),E||b===2?u=v:u=e.children}else u=e.children;f&&f.length&&(p=pee(f)),e.codegenNode=Rl(t,s,l,u,d===0?void 0:d,p,h,!!y,!1,i,e.loc)};function uee(e,t,r=!1){let{tag:n}=e;const o=Wh(n),i=Xd(e,"is",!1,!0);if(i)if(o||Ri("COMPILER_IS_ON_ELEMENT",t)){let a;if(i.type===6?a=i.value&&xe(i.value.content,!0):(a=i.exp,a||(a=xe("is",!1,i.arg.loc))),a)return kt(t.helper(Fg),[a])}else i.type===6&&i.value.content.startsWith("vue:")&&(n=i.value.content.slice(4));const s=Zx(n)||t.isBuiltInComponent(n);return s?(r||t.helper(s),s):(t.helper(Lg),t.components.add(n),Ol(n,"component"))}function EI(e,t,r=e.props,n,o,i=!1){const{tag:s,loc:a,children:l}=e;let u=[];const d=[],p=[],f=l.length>0;let h=!1,y=0,g=!1,v=!1,b=!1,E=!1,T=!1,A=!1;const P=[],R=q=>{u.length&&(d.push(Ur(E_(u),a)),u=[]),q&&d.push(q)},S=()=>{t.scopes.vFor>0&&u.push(Rt(xe("ref_for",!0),xe("true")))},w=({key:q,value:M})=>{if(Er(q)){const k=q.content,x=Bi(k);if(x&&(!n||o)&&k.toLowerCase()!=="onclick"&&k!=="onUpdate:modelValue"&&!Qn(k)&&(E=!0),x&&Qn(k)&&(A=!0),x&&M.type===14&&(M=M.arguments[0]),M.type===20||(M.type===4||M.type===8)&&Nr(M,t)>0)return;k==="ref"?g=!0:k==="class"?v=!0:k==="style"?b=!0:k!=="key"&&!P.includes(k)&&P.push(k),n&&(k==="class"||k==="style")&&!P.includes(k)&&P.push(k)}else T=!0};for(let q=0;q<r.length;q++){const M=r[q];if(M.type===6){const{loc:k,name:x,nameLoc:C,value:j}=M;let F=!0;if(x==="ref"&&(g=!0,S()),x==="is"&&(Wh(s)||j&&j.content.startsWith("vue:")||Ri("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(Rt(xe(x,!0,C),xe(j?j.content:"",F,j?j.loc:k)))}else{const{name:k,arg:x,exp:C,loc:j,modifiers:F}=M,V=k==="bind",G=k==="on";if(k==="slot"){n||t.onError(lt(40,j));continue}if(k==="once"||k==="memo"||k==="is"||V&&pi(x,"is")&&(Wh(s)||Ri("COMPILER_IS_ON_ELEMENT",t))||G&&i)continue;if((V&&pi(x,"key")||G&&f&&pi(x,"vue:before-update"))&&(h=!0),V&&pi(x,"ref")&&S(),!x&&(V||G)){if(T=!0,C)if(V){if(R(),Ri("COMPILER_V_BIND_OBJECT_ORDER",t)){d.unshift(C);continue}S(),R(),d.push(C)}else R({type:14,loc:j,callee:t.helper(Gg),arguments:n?[C]:[C,"true"]});else t.onError(lt(V?34:35,j));continue}V&&F.some(me=>me.content==="prop")&&(y|=32);const se=t.directiveTransforms[k];if(se){const{props:me,needRuntime:be}=se(M,e,t);!i&&me.forEach(w),G&&x&&!Er(x)?R(Ur(me,a)):u.push(...me),be&&(p.push(M),sr(be)&&vI.set(M,be))}else e4(k)||(p.push(M),f&&(h=!0))}}let O;if(d.length?(R(),d.length>1?O=kt(t.helper(Vc),d,a):O=d[0]):u.length&&(O=Ur(E_(u),a)),T?y|=16:(v&&!n&&(y|=2),b&&!n&&(y|=4),P.length&&(y|=8),E&&(y|=32)),!h&&(y===0||y===32)&&(g||A||p.length>0)&&(y|=512),!t.inSSR&&O)switch(O.type){case 15:let q=-1,M=-1,k=!1;for(let j=0;j<O.properties.length;j++){const F=O.properties[j].key;Er(F)?F.content==="class"?q=j:F.content==="style"&&(M=j):F.isHandlerKey||(k=!0)}const x=O.properties[q],C=O.properties[M];k?O=kt(t.helper(Sl),[O]):(x&&!Er(x.value)&&(x.value=kt(t.helper(Jg),[x.value])),C&&(b||C.value.type===4&&C.value.content.trim()[0]==="["||C.value.type===17)&&(C.value=kt(t.helper(Hg),[C.value])));break;case 14:break;default:O=kt(t.helper(Sl),[kt(t.helper(eu),[O])]);break}return{props:O,directives:p,patchFlag:y,dynamicPropNames:P,shouldUseBlock:h}}function E_(e){const t=new Map,r=[];for(let n=0;n<e.length;n++){const o=e[n];if(o.key.type===8||!o.key.isStatic){r.push(o);continue}const i=o.key.content,s=t.get(i);s?(i==="style"||i==="class"||Bi(i))&&cee(s,o):(t.set(i,o),r.push(o))}return r}function cee(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Si([e.value,t.value],e.loc)}function dee(e,t){const r=[],n=vI.get(e);n?r.push(t.helperString(n)):(t.helper(Bg),t.directives.add(e.name),r.push(Ol(e.name,"directive")));const{loc:o}=e;if(e.exp&&r.push(e.exp),e.arg&&(e.exp||r.push("void 0"),r.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||r.push("void 0"),r.push("void 0"));const i=xe("true",!1,o);r.push(Ur(e.modifiers.map(s=>Rt(s,i)),o))}return Si(r,e.loc)}function pee(e){let t="[";for(let r=0,n=e.length;r<n;r++)t+=JSON.stringify(e[r]),r<n-1&&(t+=", ");return t+"]"}function Wh(e){return e==="component"||e==="Component"}const fee=(e,t)=>{if(Gc(e)){const{children:r,loc:n}=e,{slotName:o,slotProps:i}=hee(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;i&&(s[2]=i,a=3),r.length&&(s[3]=Ds([],r,!1,!1,n),a=4),t.scopeId&&!t.slotted&&(a=5),s.splice(a),e.codegenNode=kt(t.helper(Kx),s,n)}};function hee(e,t){let r='"default"',n;const o=[];for(let i=0;i<e.props.length;i++){const s=e.props[i];if(s.type===6)s.value&&(s.name==="name"?r=JSON.stringify(s.value.content):(s.name=et(s.name),o.push(s)));else if(s.name==="bind"&&pi(s.arg,"name")){if(s.exp)r=s.exp;else if(s.arg&&s.arg.type===4){const a=et(s.arg.content);r=s.exp=xe(a,!1,s.arg.loc)}}else s.name==="bind"&&s.arg&&Er(s.arg)&&(s.arg.content=et(s.arg.content)),o.push(s)}if(o.length>0){const{props:i,directives:s}=EI(e,t,o,!1,!1);n=i,s.length&&t.onError(lt(36,s[0].loc))}return{slotName:r,slotProps:n}}const TI=(e,t,r,n)=>{const{loc:o,modifiers:i,arg:s}=e;!e.exp&&!i.length&&r.onError(lt(35,o));let a;if(s.type===4)if(s.isStatic){let p=s.content;p.startsWith("vue:")&&(p=`vnode-${p.slice(4)}`);const f=t.tagType!==0||p.startsWith("vnode")||!/[A-Z]/.test(p)?ds(et(p)):`on:${p}`;a=xe(f,!0,s.loc)}else a=sn([`${r.helperString(Vh)}(`,s,")"]);else a=s,a.children.unshift(`${r.helperString(Vh)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=r.cacheHandlers&&!l&&!r.inVOnce;if(l){const p=rI(l),f=!(p||fZ(l)),h=l.content.includes(";");(f||u&&p)&&(l=sn([`${f?"$event":"(...args)"} => ${h?"{":"("}`,l,h?"}":")"]))}let d={props:[Rt(a,l||xe("() => {}",!1,o))]};return n&&(d=n(d)),u&&(d.props[0].value=r.cache(d.props[0].value)),d.props.forEach(p=>p.key.isHandlerKey=!0),d},mee=(e,t,r)=>{const{modifiers:n,loc:o}=e,i=e.arg;let{exp:s}=e;return s&&s.type===4&&!s.content.trim()&&(s=void 0),i.type!==4?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=i.content?`${i.content} || ""`:'""'),n.some(a=>a.content==="camel")&&(i.type===4?i.isStatic?i.content=et(i.content):i.content=`${r.helperString($h)}(${i.content})`:(i.children.unshift(`${r.helperString($h)}(`),i.children.push(")"))),r.inSSR||(n.some(a=>a.content==="prop")&&T_(i,"."),n.some(a=>a.content==="attr")&&T_(i,"^")),{props:[Rt(i,s)]}},T_=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},yee=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const r=e.children;let n,o=!1;for(let i=0;i<r.length;i++){const s=r[i];if(of(s)){o=!0;for(let a=i+1;a<r.length;a++){const l=r[a];if(of(l))n||(n=r[i]=sn([s],s.loc)),n.children.push(" + ",l),r.splice(a,1),a--;else{n=void 0;break}}}}if(!(!o||r.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(i=>i.type===7&&!t.directiveTransforms[i.name])&&e.tag!=="template")))for(let i=0;i<r.length;i++){const s=r[i];if(of(s)||s.type===8){const a=[];(s.type!==2||s.content!==" ")&&a.push(s),!t.ssr&&Nr(s,t)===0&&a.push("1"),r[i]={type:12,content:s,loc:s.loc,codegenNode:kt(t.helper(Dg),a)}}}}},__=new WeakSet,gee=(e,t)=>{if(e.type===1&&$r(e,"once",!0))return __.has(e)||t.inVOnce||t.inSSR?void 0:(__.add(e),t.inVOnce=!0,t.helper(Uc),()=>{t.inVOnce=!1;const r=t.currentNode;r.codegenNode&&(r.codegenNode=t.cache(r.codegenNode,!0,!0))})},_I=(e,t,r)=>{const{exp:n,arg:o}=e;if(!n)return r.onError(lt(41,e.loc)),ma();const i=n.loc.source.trim(),s=n.type===4?n.content:i,a=r.bindingMetadata[i];if(a==="props"||a==="props-aliased")return r.onError(lt(44,n.loc)),ma();if(a==="literal-const"||a==="setup-const")return r.onError(lt(45,n.loc)),ma();if(!s.trim()||!rI(n))return r.onError(lt(42,n.loc)),ma();const l=o||xe("modelValue",!0),u=o?Er(o)?`onUpdate:${et(o.content)}`:sn(['"onUpdate:" + ',o]):"onUpdate:modelValue";let d;const p=r.isTS?"($event: any)":"$event";d=sn([`${p} => ((`,n,") = $event)"]);const f=[Rt(l,e.exp),Rt(u,d)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(g=>g.content).map(g=>(Xg(g)?g:JSON.stringify(g))+": true").join(", "),y=o?Er(o)?`${o.content}Modifiers`:sn([o,' + "Modifiers"']):"modelModifiers";f.push(Rt(y,xe(`{ ${h} }`,!1,e.loc,2)))}return ma(f)};function ma(e=[]){return{props:e}}const bee=/[\w).+\-_$\]]/,vee=(e,t)=>{Ri("COMPILER_FILTERS",t)&&(e.type===5?zc(e.content,t):e.type===1&&e.props.forEach(r=>{r.type===7&&r.name!=="for"&&r.exp&&zc(r.exp,t)}))};function zc(e,t){if(e.type===4)w_(e,t);else for(let r=0;r<e.children.length;r++){const n=e.children[r];typeof n=="object"&&(n.type===4?w_(n,t):n.type===8?zc(e,t):n.type===5&&zc(n.content,t))}}function w_(e,t){const r=e.content;let n=!1,o=!1,i=!1,s=!1,a=0,l=0,u=0,d=0,p,f,h,y,g=[];for(h=0;h<r.length;h++)if(f=p,p=r.charCodeAt(h),n)p===39&&f!==92&&(n=!1);else if(o)p===34&&f!==92&&(o=!1);else if(i)p===96&&f!==92&&(i=!1);else if(s)p===47&&f!==92&&(s=!1);else if(p===124&&r.charCodeAt(h+1)!==124&&r.charCodeAt(h-1)!==124&&!a&&!l&&!u)y===void 0?(d=h+1,y=r.slice(0,h).trim()):v();else{switch(p){case 34:o=!0;break;case 39:n=!0;break;case 96:i=!0;break;case 40:u++;break;case 41:u--;break;case 91:l++;break;case 93:l--;break;case 123:a++;break;case 125:a--;break}if(p===47){let b=h-1,E;for(;b>=0&&(E=r.charAt(b),E===" ");b--);(!E||!bee.test(E))&&(s=!0)}}y===void 0?y=r.slice(0,h).trim():d!==0&&v();function v(){g.push(r.slice(d,h).trim()),d=h+1}if(g.length){for(h=0;h<g.length;h++)y=Eee(y,g[h],t);e.content=y,e.ast=void 0}}function Eee(e,t,r){r.helper($g);const n=t.indexOf("(");if(n<0)return r.filters.add(t),`${Ol(t,"filter")}(${e})`;{const o=t.slice(0,n),i=t.slice(n+1);return r.filters.add(o),`${Ol(o,"filter")}(${e}${i!==")"?","+i:i}`}}const S_=new WeakSet,Tee=(e,t)=>{if(e.type===1){const r=$r(e,"memo");return!r||S_.has(e)||t.inSSR?void 0:(S_.add(e),()=>{const n=e.codegenNode||t.currentNode.codegenNode;n&&n.type===13&&(e.tagType!==1&&Kg(n,t),e.codegenNode=kt(t.helper(zg),[r.exp,Ds(void 0,n),"_cache",String(t.cached.length)]),t.cached.push(null))})}},_ee=(e,t)=>{if(e.type===1){for(const r of e.props)if(r.type===7&&r.name==="bind"&&(!r.exp||r.exp.type===4&&!r.exp.content.trim())&&r.arg){const n=r.arg;if(n.type!==4||!n.isStatic)t.onError(lt(53,n.loc)),r.exp=xe("",!0,n.loc);else{const o=et(n.content);(eI.test(o[0])||o[0]==="-")&&(r.exp=xe(o,!1,n.loc))}}}};function wee(e){return[[_ee,gee,ZZ,Tee,ree,vee,fee,lee,iee,yee],{on:TI,bind:mee,model:_I}]}function See(e,t={}){const r=t.onError||Yg,n=t.mode==="module";t.prefixIdentifiers===!0?r(lt(48)):n&&r(lt(49));const o=!1;t.cacheHandlers&&r(lt(50)),t.scopeId&&!n&&r(lt(51));const i=je({},t,{prefixIdentifiers:o}),s=Pe(e)?NZ(e,i):e,[a,l]=wee();return qZ(s,je({},i,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:je({},l,t.directiveTransforms||{})})),LZ(s,i)}const Ree=()=>({props:[]});/**
|
|
1049
|
+
* @vue/compiler-dom v3.5.32
|
|
1050
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1051
|
+
* @license MIT
|
|
1052
|
+
**/const wI=Symbol(""),SI=Symbol(""),RI=Symbol(""),AI=Symbol(""),zh=Symbol(""),OI=Symbol(""),PI=Symbol(""),CI=Symbol(""),NI=Symbol(""),xI=Symbol("");rZ({[wI]:"vModelRadio",[SI]:"vModelCheckbox",[RI]:"vModelText",[AI]:"vModelSelect",[zh]:"vModelDynamic",[OI]:"withModifiers",[PI]:"withKeys",[CI]:"vShow",[NI]:"Transition",[xI]:"TransitionGroup"});let zi;function Aee(e,t=!1){return zi||(zi=document.createElement("div")),t?(zi.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,zi.children[0].getAttribute("foo")):(zi.innerHTML=e,zi.textContent)}const Oee={parseMode:"html",isVoidTag:g4,isNativeTag:e=>h4(e)||m4(e)||y4(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:Aee,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return NI;if(e==="TransitionGroup"||e==="transition-group")return xI},getNamespace(e,t,r){let n=t?t.ns:r;if(t&&n===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(o=>o.type===6&&o.name==="encoding"&&o.value!=null&&(o.value.content==="text/html"||o.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(n=0);else t&&n===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(n=0);if(n===0){if(e==="svg")return 1;if(e==="math")return 2}return n}},Pee=e=>{e.type===1&&e.props.forEach((t,r)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[r]={type:7,name:"bind",arg:xe("style",!0,t.loc),exp:Cee(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Cee=(e,t)=>{const r=VC(e);return xe(JSON.stringify(r),!1,t,3)};function Uo(e,t){return lt(e,t)}const Nee=(e,t,r)=>{const{exp:n,loc:o}=e;return n||r.onError(Uo(54,o)),t.children.length&&(r.onError(Uo(55,o)),t.children.length=0),{props:[Rt(xe("innerHTML",!0,o),n||xe("",!0))]}},xee=(e,t,r)=>{const{exp:n,loc:o}=e;return n||r.onError(Uo(56,o)),t.children.length&&(r.onError(Uo(57,o)),t.children.length=0),{props:[Rt(xe("textContent",!0),n?Nr(n,r)>0?n:kt(r.helperString(Yd),[n],o):xe("",!0))]}},Iee=(e,t,r)=>{const n=_I(e,t,r);if(!n.props.length||t.tagType===1)return n;e.arg&&r.onError(Uo(59,e.arg.loc));const{tag:o}=t,i=r.isCustomElement(o);if(o==="input"||o==="textarea"||o==="select"||i){let s=RI,a=!1;if(o==="input"||i){const l=Xd(t,"type");if(l){if(l.type===7)s=zh;else if(l.value)switch(l.value.content){case"radio":s=wI;break;case"checkbox":s=SI;break;case"file":a=!0,r.onError(Uo(60,e.loc));break}}else hZ(t)&&(s=zh)}else o==="select"&&(s=AI);a||(n.needRuntime=r.helper(s))}else r.onError(Uo(58,e.loc));return n.props=n.props.filter(s=>!(s.key.type===4&&s.key.content==="modelValue")),n},Mee=Mr("passive,once,capture"),qee=Mr("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),jee=Mr("left,right"),II=Mr("onkeyup,onkeydown,onkeypress"),kee=(e,t,r,n)=>{const o=[],i=[],s=[];for(let a=0;a<t.length;a++){const l=t[a].content;l==="native"&&Al("COMPILER_V_ON_NATIVE",r)||Mee(l)?s.push(l):jee(l)?Er(e)?II(e.content.toLowerCase())?o.push(l):i.push(l):(o.push(l),i.push(l)):qee(l)?i.push(l):o.push(l)}return{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:s}},R_=(e,t)=>Er(e)&&e.content.toLowerCase()==="onclick"?xe(t,!0):e.type!==4?sn(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Dee=(e,t,r)=>TI(e,t,r,n=>{const{modifiers:o}=e;if(!o.length)return n;let{key:i,value:s}=n.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:u}=kee(i,o,r,e.loc);if(l.includes("right")&&(i=R_(i,"onContextmenu")),l.includes("middle")&&(i=R_(i,"onMouseup")),l.length&&(s=kt(r.helper(OI),[s,JSON.stringify(l)])),a.length&&(!Er(i)||II(i.content.toLowerCase()))&&(s=kt(r.helper(PI),[s,JSON.stringify(a)])),u.length){const d=u.map(Vi).join("");i=Er(i)?xe(`${i.content}${d}`,!0):sn(["(",i,`) + "${d}"`])}return{props:[Rt(i,s)]}}),Lee=(e,t,r)=>{const{exp:n,loc:o}=e;return n||r.onError(Uo(62,o)),{props:[],needRuntime:r.helper(CI)}},Fee=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},Bee=[Pee],$ee={cloak:Ree,html:Nee,text:xee,model:Iee,on:Dee,show:Lee};function Vee(e,t={}){return See(e,je({},Oee,t,{nodeTransforms:[Fee,...Bee,...t.nodeTransforms||[]],directiveTransforms:je({},$ee,t.directiveTransforms||{}),transformHoist:null}))}/**
|
|
1053
|
+
* vue v3.5.32
|
|
1054
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1055
|
+
* @license MIT
|
|
1056
|
+
**/const A_=Object.create(null);function Uee(e,t){if(!Pe(e))if(e.nodeType)e=e.innerHTML;else return zt;const r=n4(e,t),n=A_[r];if(n)return n;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const o=je({hoistStatic:!0,onError:void 0,onWarn:zt},t);!o.isCustomElement&&typeof customElements<"u"&&(o.isCustomElement=a=>!!customElements.get(a));const{code:i}=Vee(e,o),s=new Function("Vue",i)(YQ);return s._rc=!0,A_[r]=s}hx(Uee);var MI={};SC(MI,{applyDecorators:()=>kI,argTypesEnhancers:()=>FI,mount:()=>DI,parameters:()=>LI,render:()=>qI,renderToCanvas:()=>jI});var Jee=["props","events","slots","exposed","expose"],Hee=e=>{if(!ig(e))return null;let t="exposed"in e.__docgenInfo?"vue-component-meta":"vue-docgen-api",r={};return Jee.forEach(n=>{W9(e,n).forEach(o=>{let i;if(t==="vue-docgen-api"){let s=o.docgenInfo;i=Gee(s,n,o)}else{let s=o.docgenInfo;i=Wee(s,n)}!i||r[i.name]||(["events","expose","exposed"].includes(n)&&(i.control={disable:!0}),r[i.name]=i)})}),r},Gee=(e,t,r)=>{var s,a,l;let n,o;if(t==="events"&&(n=(s=e.type)==null?void 0:s.names.join(),o={name:"other",value:n??"",required:!1}),t==="slots"){let u=(a=e.bindings)==null?void 0:a.filter(d=>!!d.name).map(d=>{var p;return`${d.name}: ${((p=d.type)==null?void 0:p.name)??"unknown"}`}).join("; ");n=u?`{ ${u} }`:void 0,o={name:"other",value:n??"",required:!1}}if(t==="props"){let u=e;if(n=(l=u.type)==null?void 0:l.name,o=r?Pd(r.docgenInfo):{name:"other",value:n},u.type&&"elements"in u.type&&Array.isArray(u.type.elements)&&u.type.elements.length>0){let d=u.type.elements.map(p=>p.name);n==="Array"&&(n=`${d.length===1?d[0]:`(${d.join(" | ")})`}[]`),n==="union"?n=d.join(" | "):n==="intersection"&&(n=d.join(" & "))}}let i="required"in e?e.required??!1:!1;return{name:e.name,description:e.description,type:o?{...o,required:i}:{name:"other",value:n??""},table:{type:n?{summary:n}:void 0,defaultValue:(r==null?void 0:r.propDef.defaultValue)??void 0,jsDocTags:r==null?void 0:r.propDef.jsDocTags,category:t}}},Wee=(e,t)=>{if("global"in e&&e.global)return;let r={summary:e.type.replace(" | undefined","")};if(t==="props"){let n=e,o=n.default?{summary:n.default}:void 0;return{name:n.name,description:zee(n.description,n.tags),defaultValue:o,type:Aa(n),table:{type:r,defaultValue:o,category:t}}}else return{name:e.name,description:"description"in e?e.description:"",type:{name:"other",value:e.type},table:{type:r,category:t}}},Aa=e=>{var i,s;let t=e.schema,r=e.required,n={name:"other",value:e.type,required:r},o=["string","number","function","boolean","symbol"];if(typeof t=="string")return o.includes(t)?{name:t,required:r}:n;switch(t.kind){case"enum":{let a=((i=t.schema)==null?void 0:i.filter(l=>l!=="undefined"))??[];return Xee(a)?{name:"boolean",required:r}:Kee(a)||Yee(a)?{name:"enum",value:a.map(l=>l.replace(/"/g,"")),required:r}:a.length===1?Aa({schema:a[0],type:e.type,required:r}):(a.length>2&&a.includes("true")&&a.includes("false")&&(a=a.filter(l=>l!=="true"&&l!=="false"),a.push("boolean")),{name:"union",value:a.map(l=>Aa(typeof l=="object"?{schema:l,type:l.type,required:!1}:{schema:l,type:l,required:!1})),required:r})}case"array":{let a=((s=t.schema)==null?void 0:s.filter(l=>l!=="undefined"))??[];return a.length===0?n:a.length===1?{name:"array",value:Aa({schema:a[0],type:e.type,required:!1}),required:r}:{name:"union",value:a.map(l=>Aa(typeof l=="object"?{schema:l,type:l.type,required:!1}:{schema:l,type:l,required:!1})),required:r}}case"object":return{name:"object",value:{},required:r};default:return n}},zee=(e,t)=>!(t!=null&&t.length)||!e?e??"":`${t.map(r=>`@${r.name}: ${r.text}`).join("<br>")}<br><br>${e}`,Kee=e=>e.every(t=>typeof t=="string"&&t.startsWith('"')&&t.endsWith('"')),Yee=e=>e.every(t=>typeof t=="string"&&t.includes(".")),Xee=e=>e.length===2&&e.includes("true")&&e.includes("false"),qI=(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`);return()=>fo(n,e,ete(e,t))},Qee=e=>{globalThis.PLUGINS_SETUP_FUNCTIONS??(globalThis.PLUGINS_SETUP_FUNCTIONS=new Set),globalThis.PLUGINS_SETUP_FUNCTIONS.add(e)},Zee=async(e,t)=>{globalThis&&globalThis.PLUGINS_SETUP_FUNCTIONS&&await Promise.all([...globalThis.PLUGINS_SETUP_FUNCTIONS].map(r=>r(e,t)))},Kc=new Map;async function jI({storyFn:e,forceRemount:t,showMain:r,showException:n,storyContext:o,id:i},s){let a=Kc.get(s);if(a&&!t){let u=e(),d=O_(u,o);return P_(a.reactiveArgs,d),P_(a.reactiveGlobals,o.globals),()=>{af(a.vueApp,s)}}a&&t&&af(a.vueApp,s);let l=Bc({setup(){o.args=Zn(o.args),o.globals=Zn(o.globals);let u=e(),d=O_(u,o),p={vueApp:l,reactiveArgs:Zn(d),reactiveGlobals:o.globals};return Kc.set(s,p),()=>fo(u)}});return l.config.errorHandler=(u,d,p)=>{var f;(f=window.__STORYBOOK_PREVIEW__)!=null&&f.storyRenders.some(h=>h.id===i&&h.phase==="playing")?setTimeout(()=>{throw u},0):n(u)},await Zee(l,o),l.mount(s),r(),()=>{af(l,s)}}function ete(e,t){let{argTypes:r}=t,n=Object.entries(e).filter(([o])=>{var i,s;return((s=(i=r[o])==null?void 0:i.table)==null?void 0:s.category)==="slots"}).map(([o,i])=>[o,typeof i=="function"?i:()=>i]);return Object.fromEntries(n)}function O_(e,t){return e.props&&cn(e)?e.props:t.args}function P_(e,t){if(Object.keys(t).length===0)return;let r=Sn(e)?e:Zn(e);Object.keys(r).forEach(n=>{n in t||delete r[n]}),Object.assign(r,t)}function af(e,t){e==null||e.unmount(),Kc.has(t)&&Kc.delete(t)}const{sanitizeStoryContextUpdate:tte}=__STORYBOOK_MODULE_PREVIEW_API__;function rte(e){return typeof e=="function"?{render:e,name:e.name}:e}function C_(e,t){let r=e;return r===null?null:typeof r=="function"?r:t?{...rte(r),components:{...r.components||{},story:t}}:{render(){return fo(r)}}}function kI(e,t){return t.reduce((r,n)=>o=>{let i,s=n(a=>{let l=tte(a);return a&&(l.args=Object.assign(o.args,l.args)),i=r({...o,...l}),i},o);return i||(i=r(o)),s===i?i:C_(s,()=>fo(i))},r=>C_(e(r)))}var DI=e=>async(t,r)=>(t&&(e.originalStoryFn=()=>()=>fo(t,r==null?void 0:r.props,r==null?void 0:r.slots)),await e.renderToCanvas(),e.canvas),LI={renderer:"vue3",docs:{story:{inline:!0},extractArgTypes:Hee,extractComponentDescription:z9}},FI=[K9];const nte=Object.freeze(Object.defineProperty({__proto__:null,applyDecorators:kI,argTypesEnhancers:FI,mount:DI,parameters:LI,render:qI,renderToCanvas:jI},Symbol.toStringTag,{value:"Module"}));var ote={};SC(ote,{decorators:()=>UI});const{emitTransformCode:ite,useEffect:ste}=__STORYBOOK_MODULE_PREVIEW_API__;var Ku=Symbol("DEEP_ACCESS_SYMBOL"),ate=e=>!!(e&&typeof e=="object"&&Ku in e),lte=(e,t)=>{let r=e();return ste(()=>{let n=ute(t);cte(t)||ite(n,t)}),r},ute=e=>{let t={imports:{},scriptVariables:{}},{displayName:r,slotNames:n,eventNames:o}=dte(e.component),i=BI(e.args,n,o,t),s=$I(e.args,n,t),a=r||e.title.split("/").at(-1),l=s?`<${a} ${i}> ${s} </${a}>`:`<${a} ${i} />`,u=Object.entries(t.scriptVariables).map(([f,h])=>`const ${f} = ${h};`).join(`
|
|
1057
|
+
|
|
1058
|
+
`),d=Object.entries(t.imports).map(([f,h])=>`import { ${Array.from(h.values()).sort().join(", ")} } from "${f}";`).join(`
|
|
1059
|
+
`),p=`<template>
|
|
1060
|
+
${l}
|
|
1061
|
+
</template>`;return!d&&!u?p:`<script lang="ts" setup>
|
|
1062
|
+
${d?`${d}
|
|
1063
|
+
|
|
1064
|
+
${u}`:u}
|
|
1065
|
+
<\/script>
|
|
1066
|
+
|
|
1067
|
+
${p}`},cte=e=>{var r;let t=(r=e==null?void 0:e.parameters.docs)==null?void 0:r.source;return(t==null?void 0:t.type)===wh.DYNAMIC?!1:!(e!=null&&e.parameters.__isArgsStory)||(t==null?void 0:t.code)||(t==null?void 0:t.type)===wh.CODE},dte=e=>{if(!e||!("__docgenInfo"in e)||!e.__docgenInfo||typeof e.__docgenInfo!="object")return{displayName:e==null?void 0:e.__name,eventNames:[],slotNames:[]};let t=e.__docgenInfo,r="displayName"in t&&typeof t.displayName=="string"?t.displayName:void 0,n=o=>!(o in t)||!Array.isArray(t[o])?[]:t[o].map(i=>i&&typeof i=="object"&&"name"in i?i.name:void 0).filter(i=>typeof i=="string");return{displayName:r||e.__name,slotNames:n("slots").sort((o,i)=>o==="default"?-1:i==="default"?1:o.localeCompare(i)),eventNames:n("events")}},BI=(e,t,r,n)=>{let o=[];Object.entries(e).forEach(([s,a])=>{if(!t.includes(s)&&a!=null)switch(ate(a)&&(a=a.toString()),typeof a){case"string":if(a==="")return;o.push({name:s,value:a.includes('"')?`'${a}'`:`"${a}"`,templateFn:(l,u)=>`${l}=${u}`});break;case"number":o.push({name:s,value:a.toString(),templateFn:(l,u)=>`:${l}="${u}"`});break;case"bigint":o.push({name:s,value:`BigInt(${a.toString()})`,templateFn:(l,u)=>`:${l}="${u}"`});break;case"boolean":o.push({name:s,value:a?"true":"false",templateFn:(l,u)=>u==="true"?l:`:${l}="false"`});break;case"symbol":o.push({name:s,value:`Symbol(${a.description?`'${a.description}'`:""})`,templateFn:(l,u)=>`:${l}="${u}"`});break;case"object":{o.push({name:s,value:mte(a??{}),templateFn:void 0});break}}}),o.sort((s,a)=>s.name.localeCompare(a.name));let i=[];return o.forEach(s=>{let a=r.includes(`update:${s.name}`);if(!a&&s.templateFn){i.push(s.templateFn(s.name,s.value));return}let l=s.name;if(l in n.scriptVariables){let u=1;do l=`${s.name}${u}`,u++;while(l in n.scriptVariables)}if(!a){n.scriptVariables[l]=s.value,i.push(`:${s.name}="${l}"`);return}n.scriptVariables[l]=`ref(${s.value})`,n.imports.vue||(n.imports.vue=new Set),n.imports.vue.add("ref"),s.name==="modelValue"?i.push(`v-model="${l}"`):i.push(`v-model:${s.name}="${l}"`)}),i.join(" ")},$I=(e,t,r)=>{let n=[];return t.forEach(o=>{let i=e[o];if(!i)return;let s=tb([i],r);if(!s)return;let a=typeof i=="function"?VI(i):[];o==="default"&&!a.length?n.push(s):n.push(`<template ${hte(o,a)}>${s}</template>`)}),n.join(`
|
|
1068
|
+
|
|
1069
|
+
`)},tb=(e,t)=>{let r=[],n=o=>{if(cn(o))return pte(o,t);switch(typeof o){case"string":case"number":case"boolean":return o.toString();case"object":return o===null?"":Array.isArray(o)?o.map(n).filter(i=>i!=="").join(`
|
|
1070
|
+
`):JSON.stringify(o);case"function":{let i=VI(o).filter(l=>!["{","}"].includes(l)),s={};i.forEach(l=>{s[l]=new Proxy({[Ku]:!0},{get:(u,d)=>d===Ku?u[Ku]:[Symbol.toPrimitive,Symbol.toStringTag,"toString"].includes(d)?()=>`{{ ${l} }}`:d==="v-bind"?`${l}`:`{{ ${l}.${d.toString()} }}`,ownKeys:()=>["v-bind"],getOwnPropertyDescriptor:()=>({configurable:!0,enumerable:!0,value:l,writable:!0})})});let a=o(s);return tb([a],t).replaceAll(/ (\S+)="{{ (\S+) }}"/g,' :$1="$2"')}case"bigint":return`{{ BigInt(${o.toString()}) }}`;default:return""}};return e.forEach(o=>{let i=n(o);i!==""&&r.push(i)}),r.join(`
|
|
1071
|
+
`)},pte=(e,t)=>{let r=fte(e),n="";typeof e.children=="string"?n=e.children:Array.isArray(e.children)?n=tb(e.children,t):e.children&&(n=$I(e.children,Object.keys(e.children).filter(i=>i!=="$stable"),t));let o=e.props?BI(e.props,[],[],t):"";return n?`<${r}${o?` ${o}`:""}>${n}</${r}>`:`<${r}${o?` ${o}`:""} />`},fte=e=>{if(typeof e.type=="string")return e.type;if(typeof e.type=="object"){if("name"in e.type&&e.type.name)return e.type.name;if("__name"in e.type&&e.type.__name)return e.type.__name}return"component"},VI=e=>{let t=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,r=/([^\s,]+)/g,n=e.toString().replace(t,""),o=n.slice(n.indexOf("(")+1,n.indexOf(")")).match(r);return o?o.flatMap(i=>{if(["{","}"].includes(i))return i;let s=i.split(":")[0].trim();return s.startsWith("{")?["{",s.substring(1)]:i.endsWith("}")&&!s.endsWith("}")?[s,"}"]:s}):[]},hte=(e,t)=>t.length?t.length===1?`#${e}="${t[0]}"`:`#${e}="{ ${t.filter(r=>!["{","}"].includes(r)).join(", ")} }"`:`#${e}`,mte=e=>Object.values(e).every(t=>t==null||typeof t!="object")?JSON.stringify(e):JSON.stringify(e,null,2),UI=[lte];const yte=Object.freeze(Object.defineProperty({__proto__:null,decorators:UI},Symbol.toStringTag,{value:"Module"}));var gte=Object.create,rb=Object.defineProperty,bte=Object.getOwnPropertyDescriptor,JI=Object.getOwnPropertyNames,vte=Object.getPrototypeOf,Ete=Object.prototype.hasOwnProperty,Ene=(e,t)=>function(){return t||(0,e[JI(e)[0]])((t={exports:{}}).exports,t),t.exports},Tte=(e,t)=>{for(var r in t)rb(e,r,{get:t[r],enumerable:!0})},_te=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of JI(t))!Ete.call(e,o)&&o!==r&&rb(e,o,{get:()=>t[o],enumerable:!(n=bte(t,o))||n.enumerable});return e},Tne=(e,t,r)=>(r=e!=null?gte(vte(e)):{},_te(rb(r,"default",{value:e,enumerable:!0}),e)),wte={};Tte(wte,{parameters:()=>HI});var Ste=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,t)=>{let[r,n]=t;return n.excludeFromDocsStories&&(e[r]=!0),e},{}),HI={docs:{renderer:async()=>{let{DocsRenderer:e}=await tt(async()=>{const{DocsRenderer:t}=await import("./DocsRenderer-LL677BLK-6m2x0Slf.js").then(r=>r.D);return{DocsRenderer:t}},__vite__mapDeps([61,3]),import.meta.url);return new e},stories:{filter:e=>{var t;return(e.tags||[]).filter(r=>Ste[r]).length===0&&!((t=e.parameters.docs)!=null&&t.disable)}}}};const Rte=Object.freeze(Object.defineProperty({__proto__:null,parameters:HI},Symbol.toStringTag,{value:"Module"})),{global:Ate}=__STORYBOOK_MODULE_GLOBAL__;var{window:Yu}=Ate;Yu.STORYBOOK_ENV="vue3";Yu.PLUGINS_SETUP_FUNCTIONS||(Yu.PLUGINS_SETUP_FUNCTIONS=new Set);const{composeStories:_ne,composeStory:wne,setProjectAnnotations:Sne,setDefaultProjectAnnotations:Rne}=__STORYBOOK_MODULE_PREVIEW_API__;({...MI});/*!
|
|
1072
|
+
* vue-router v4.6.4
|
|
1073
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
1074
|
+
* @license MIT
|
|
1075
|
+
*/const Xi=typeof document<"u";function GI(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ote(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&GI(e.default)}const at=Object.assign;function lf(e,t){const r={};for(const n in t){const o=t[n];r[n]=dn(o)?o.map(e):e(o)}return r}const Ja=()=>{},dn=Array.isArray;function N_(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}const WI=/#/g,Pte=/&/g,Cte=/\//g,Nte=/=/g,xte=/\?/g,zI=/\+/g,Ite=/%5B/g,Mte=/%5D/g,KI=/%5E/g,qte=/%60/g,YI=/%7B/g,jte=/%7C/g,XI=/%7D/g,kte=/%20/g;function nb(e){return e==null?"":encodeURI(""+e).replace(jte,"|").replace(Ite,"[").replace(Mte,"]")}function Dte(e){return nb(e).replace(YI,"{").replace(XI,"}").replace(KI,"^")}function Kh(e){return nb(e).replace(zI,"%2B").replace(kte,"+").replace(WI,"%23").replace(Pte,"%26").replace(qte,"`").replace(YI,"{").replace(XI,"}").replace(KI,"^")}function Lte(e){return Kh(e).replace(Nte,"%3D")}function Fte(e){return nb(e).replace(WI,"%23").replace(xte,"%3F")}function Bte(e){return Fte(e).replace(Cte,"%2F")}function Cl(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const $te=/\/$/,Vte=e=>e.replace($te,"");function uf(e,t,r="/"){let n,o={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(n=t.slice(0,l),i=t.slice(l,a>0?a:t.length),o=e(i.slice(1))),a>=0&&(n=n||t.slice(0,a),s=t.slice(a,t.length)),n=Gte(n??t,r),{fullPath:n+i+s,path:n,query:o,hash:Cl(s)}}function Ute(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Jte(e,t,r){const n=t.matched.length-1,o=r.matched.length-1;return n>-1&&n===o&&Bs(t.matched[n],r.matched[o])&&QI(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Bs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function QI(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!Hte(e[r],t[r]))return!1;return!0}function Hte(e,t){return dn(e)?x_(e,t):dn(t)?x_(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function x_(e,t){return dn(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function Gte(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),o=n[n.length-1];(o===".."||o===".")&&n.push("");let i=r.length-1,s,a;for(s=0;s<n.length;s++)if(a=n[s],a!==".")if(a==="..")i>1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(s).join("/")}const So={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Yh=function(e){return e.pop="pop",e.push="push",e}({}),I_=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});const cf="";function Wte(e){if(!e)if(Xi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Vte(e)}const zte=/^[^#]+#/;function Kte(e,t){return e.replace(zte,"#")+t}function Yte(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const Xte=()=>({left:window.scrollX,top:window.scrollY});function Qte(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),o=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!o)return;t=Yte(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function M_(e,t){return(history.state?history.state.position-t:-1)+e}const Xh=new Map;function Zte(e,t){Xh.set(e,t)}function ere(e){const t=Xh.get(e);return Xh.delete(e),t}function tre(e){return typeof e=="string"||e&&typeof e=="object"}function ZI(e){return typeof e=="string"||typeof e=="symbol"}let yt=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const e1=Symbol("");yt.MATCHER_NOT_FOUND+"",yt.NAVIGATION_GUARD_REDIRECT+"",yt.NAVIGATION_ABORTED+"",yt.NAVIGATION_CANCELLED+"",yt.NAVIGATION_DUPLICATED+"";function $s(e,t){return at(new Error,{type:e,[e1]:!0},t)}function Dn(e,t){return e instanceof Error&&e1 in e&&(t==null||!!(e.type&t))}const rre=["params","query","hash"];function nre(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const r of rre)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}function ore(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<r.length;++n){const o=r[n].replace(zI," "),i=o.indexOf("="),s=Cl(i<0?o:o.slice(0,i)),a=i<0?null:Cl(o.slice(i+1));if(s in t){let l=t[s];dn(l)||(l=t[s]=[l]),l.push(a)}else t[s]=a}return t}function q_(e){let t="";for(let r in e){const n=e[r];if(r=Lte(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(dn(n)?n.map(o=>o&&Kh(o)):[n&&Kh(n)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+r,o!=null&&(t+="="+o))})}return t}function ire(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=dn(n)?n.map(o=>o==null?null:""+o):n==null?n:""+n)}return t}const sre=Symbol(""),j_=Symbol(""),ep=Symbol(""),ob=Symbol(""),Qh=Symbol("");function ya(){let e=[];function t(n){return e.push(n),()=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function qo(e,t,r,n,o,i=s=>s()){const s=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const u=f=>{f===!1?l($s(yt.NAVIGATION_ABORTED,{from:r,to:t})):f instanceof Error?l(f):tre(f)?l($s(yt.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(s&&n.enterCallbacks[o]===s&&typeof f=="function"&&s.push(f),a())},d=i(()=>e.call(n&&n.instances[o],t,r,u));let p=Promise.resolve(d);e.length<3&&(p=p.then(u)),p.catch(f=>l(f))})}function df(e,t,r,n,o=i=>i()){const i=[];for(const s of e)for(const a in s.components){let l=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(GI(l)){const u=(l.__vccOpts||l)[t];u&&i.push(qo(u,r,n,s,a,o))}else{let u=l();i.push(()=>u.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const p=Ote(d)?d.default:d;s.mods[a]=d,s.components[a]=p;const f=(p.__vccOpts||p)[t];return f&&qo(f,r,n,s,a,o)()}))}}return i}function are(e,t){const r=[],n=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;s<i;s++){const a=t.matched[s];a&&(e.matched.find(u=>Bs(u,a))?n.push(a):r.push(a));const l=e.matched[s];l&&(t.matched.find(u=>Bs(u,l))||o.push(l))}return[r,n,o]}/*!
|
|
1076
|
+
* vue-router v4.6.4
|
|
1077
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
1078
|
+
* @license MIT
|
|
1079
|
+
*/function lre(e=""){let t=[],r=[[cf,{}]],n=0;e=Wte(e);function o(a,l={}){n++,n!==r.length&&r.splice(n),r.push([a,l])}function i(a,l,{direction:u,delta:d}){const p={direction:u,delta:d,type:Yh.pop};for(const f of t)f(a,l,p)}const s={location:cf,state:{},base:e,createHref:Kte.bind(null,e),replace(a,l){r.splice(n--,1),o(a,l)},push(a,l){o(a,l)},listen(a){return t.push(a),()=>{const l=t.indexOf(a);l>-1&&t.splice(l,1)}},destroy(){t=[],r=[[cf,{}]],n=0},go(a,l=!0){const u=this.location,d=a<0?I_.back:I_.forward;n=Math.max(0,Math.min(n+a,r.length-1)),l&&i(this.location,u,{direction:d,delta:a})}};return Object.defineProperty(s,"location",{enumerable:!0,get:()=>r[n][0]}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>r[n][1]}),s}let hi=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Mt=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Mt||{});const ure={type:hi.Static,value:""},cre=/[a-zA-Z0-9_]/;function dre(e){if(!e)return[[]];if(e==="/")return[[ure]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${r})/"${u}": ${h}`)}let r=Mt.Static,n=r;const o=[];let i;function s(){i&&o.push(i),i=[]}let a=0,l,u="",d="";function p(){u&&(r===Mt.Static?i.push({type:hi.Static,value:u}):r===Mt.Param||r===Mt.ParamRegExp||r===Mt.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:hi.Param,value:u,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&r!==Mt.ParamRegExp){n=r,r=Mt.EscapeNext;continue}switch(r){case Mt.Static:l==="/"?(u&&p(),s()):l===":"?(p(),r=Mt.Param):f();break;case Mt.EscapeNext:f(),r=n;break;case Mt.Param:l==="("?r=Mt.ParamRegExp:cre.test(l)?f():(p(),r=Mt.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case Mt.ParamRegExp:l===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+l:r=Mt.ParamRegExpEnd:d+=l;break;case Mt.ParamRegExpEnd:p(),r=Mt.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,d="";break;default:t("Unknown state");break}}return r===Mt.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),p(),s(),o}const k_="[^/]+?",pre={sensitive:!1,strict:!1,start:!0,end:!0};var cr=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(cr||{});const fre=/[.+*?^${}()[\]/\\]/g;function hre(e,t){const r=at({},pre,t),n=[];let o=r.start?"^":"";const i=[];for(const u of e){const d=u.length?[]:[cr.Root];r.strict&&!u.length&&(o+="/");for(let p=0;p<u.length;p++){const f=u[p];let h=cr.Segment+(r.sensitive?cr.BonusCaseSensitive:0);if(f.type===hi.Static)p||(o+="/"),o+=f.value.replace(fre,"\\$&"),h+=cr.Static;else if(f.type===hi.Param){const{value:y,repeatable:g,optional:v,regexp:b}=f;i.push({name:y,repeatable:g,optional:v});const E=b||k_;if(E!==k_){h+=cr.BonusCustomRegExp;try{`${E}`}catch(A){throw new Error(`Invalid custom RegExp for param "${y}" (${E}): `+A.message)}}let T=g?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;p||(T=v&&u.length<2?`(?:/${T})`:"/"+T),v&&(T+="?"),o+=T,h+=cr.Dynamic,v&&(h+=cr.BonusOptional),g&&(h+=cr.BonusRepeatable),E===".*"&&(h+=cr.BonusWildcard)}d.push(h)}n.push(d)}if(r.strict&&r.end){const u=n.length-1;n[u][n[u].length-1]+=cr.BonusStrict}r.strict||(o+="/?"),r.end?o+="$":r.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const s=new RegExp(o,r.sensitive?"":"i");function a(u){const d=u.match(s),p={};if(!d)return null;for(let f=1;f<d.length;f++){const h=d[f]||"",y=i[f-1];p[y.name]=h&&y.repeatable?h.split("/"):h}return p}function l(u){let d="",p=!1;for(const f of e){(!p||!d.endsWith("/"))&&(d+="/"),p=!1;for(const h of f)if(h.type===hi.Static)d+=h.value;else if(h.type===hi.Param){const{value:y,repeatable:g,optional:v}=h,b=y in u?u[y]:"";if(dn(b)&&!g)throw new Error(`Provided param "${y}" is an array but it is not repeatable (* or + modifiers)`);const E=dn(b)?b.join("/"):b;if(!E)if(v)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):p=!0);else throw new Error(`Missing required param "${y}"`);d+=E}}return d||"/"}return{re:s,score:n,keys:i,parse:a,stringify:l}}function mre(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===cr.Static+cr.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===cr.Static+cr.Segment?1:-1:0}function t1(e,t){let r=0;const n=e.score,o=t.score;for(;r<n.length&&r<o.length;){const i=mre(n[r],o[r]);if(i)return i;r++}if(Math.abs(o.length-n.length)===1){if(D_(n))return 1;if(D_(o))return-1}return o.length-n.length}function D_(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const yre={strict:!1,end:!0,sensitive:!1};function gre(e,t,r){const n=hre(dre(e.path),r),o=at(n,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function bre(e,t){const r=[],n=new Map;t=N_(yre,t);function o(p){return n.get(p)}function i(p,f,h){const y=!h,g=F_(p);g.aliasOf=h&&h.record;const v=N_(t,p),b=[g];if("alias"in p){const A=typeof p.alias=="string"?[p.alias]:p.alias;for(const P of A)b.push(F_(at({},g,{components:h?h.record.components:g.components,path:P,aliasOf:h?h.record:g})))}let E,T;for(const A of b){const{path:P}=A;if(f&&P[0]!=="/"){const R=f.record.path,S=R[R.length-1]==="/"?"":"/";A.path=f.record.path+(P&&S+P)}if(E=gre(A,f,v),h?h.alias.push(E):(T=T||E,T!==E&&T.alias.push(E),y&&p.name&&!B_(E)&&s(p.name)),r1(E)&&l(E),g.children){const R=g.children;for(let S=0;S<R.length;S++)i(R[S],E,h&&h.children[S])}h=h||E}return T?()=>{s(T)}:Ja}function s(p){if(ZI(p)){const f=n.get(p);f&&(n.delete(p),r.splice(r.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=r.indexOf(p);f>-1&&(r.splice(f,1),p.record.name&&n.delete(p.record.name),p.children.forEach(s),p.alias.forEach(s))}}function a(){return r}function l(p){const f=Tre(p,r);r.splice(f,0,p),p.record.name&&!B_(p)&&n.set(p.record.name,p)}function u(p,f){let h,y={},g,v;if("name"in p&&p.name){if(h=n.get(p.name),!h)throw $s(yt.MATCHER_NOT_FOUND,{location:p});v=h.record.name,y=at(L_(f.params,h.keys.filter(T=>!T.optional).concat(h.parent?h.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),p.params&&L_(p.params,h.keys.map(T=>T.name))),g=h.stringify(y)}else if(p.path!=null)g=p.path,h=r.find(T=>T.re.test(g)),h&&(y=h.parse(g),v=h.record.name);else{if(h=f.name?n.get(f.name):r.find(T=>T.re.test(f.path)),!h)throw $s(yt.MATCHER_NOT_FOUND,{location:p,currentLocation:f});v=h.record.name,y=at({},f.params,p.params),g=h.stringify(y)}const b=[];let E=h;for(;E;)b.unshift(E.record),E=E.parent;return{name:v,path:g,params:y,matched:b,meta:Ere(b)}}e.forEach(p=>i(p));function d(){r.length=0,n.clear()}return{addRoute:i,resolve:u,removeRoute:s,clearRoutes:d,getRoutes:a,getRecordMatcher:o}}function L_(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function F_(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:vre(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function vre(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function B_(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ere(e){return e.reduce((t,r)=>at(t,r.meta),{})}function Tre(e,t){let r=0,n=t.length;for(;r!==n;){const i=r+n>>1;t1(e,t[i])<0?n=i:r=i+1}const o=_re(e);return o&&(n=t.lastIndexOf(o,n-1)),n}function _re(e){let t=e;for(;t=t.parent;)if(r1(t)&&t1(e,t)===0)return t}function r1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function $_(e){const t=Jr(ep),r=Jr(ob),n=Vr(()=>{const l=Rn(e.to);return t.resolve(l)}),o=Vr(()=>{const{matched:l}=n.value,{length:u}=l,d=l[u-1],p=r.matched;if(!d||!p.length)return-1;const f=p.findIndex(Bs.bind(null,d));if(f>-1)return f;const h=V_(l[u-2]);return u>1&&V_(d)===h&&p[p.length-1].path!==h?p.findIndex(Bs.bind(null,l[u-2])):f}),i=Vr(()=>o.value>-1&&Ore(r.params,n.value.params)),s=Vr(()=>o.value>-1&&o.value===r.matched.length-1&&QI(r.params,n.value.params));function a(l={}){if(Are(l)){const u=t[Rn(e.replace)?"replace":"push"](Rn(e.to)).catch(Ja);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:Vr(()=>n.value.href),isActive:i,isExactActive:s,navigate:a}}function wre(e){return e.length===1?e[0]:e}const Sre=Kl({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:$_,setup(e,{slots:t}){const r=Zn($_(e)),{options:n}=Jr(ep),o=Vr(()=>({[U_(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[U_(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const i=t.default&&wre(t.default(r));return e.custom?i:fo("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:o.value},i)}}}),Rre=Sre;function Are(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ore(e,t){for(const r in t){const n=t[r],o=e[r];if(typeof n=="string"){if(n!==o)return!1}else if(!dn(o)||o.length!==n.length||n.some((i,s)=>i.valueOf()!==o[s].valueOf()))return!1}return!0}function V_(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const U_=(e,t,r)=>e??t??r,Pre=Kl({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Jr(Qh),o=Vr(()=>e.route||n.value),i=Jr(j_,0),s=Vr(()=>{let u=Rn(i);const{matched:d}=o.value;let p;for(;(p=d[u])&&!p.components;)u++;return u}),a=Vr(()=>o.value.matched[s.value]);Fa(j_,Vr(()=>s.value+1)),Fa(sre,a),Fa(Qh,o);const l=fs();return Ti(()=>[l.value,a.value,e.name],([u,d,p],[f,h,y])=>{d&&(d.instances[p]=u,h&&h!==d&&u&&u===f&&(d.leaveGuards.size||(d.leaveGuards=h.leaveGuards),d.updateGuards.size||(d.updateGuards=h.updateGuards))),u&&d&&(!h||!Bs(d,h)||!f)&&(d.enterCallbacks[p]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=o.value,d=e.name,p=a.value,f=p&&p.components[d];if(!f)return J_(r.default,{Component:f,route:u});const h=p.props[d],y=h?h===!0?u.params:typeof h=="function"?h(u):h:null,v=fo(f,at({},y,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(p.instances[d]=null)},ref:l}));return J_(r.default,{Component:v,route:u})||v}}});function J_(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const Cre=Pre;function Nre(e){const t=bre(e.routes,e),r=e.parseQuery||ore,n=e.stringifyQuery||q_,o=e.history,i=ya(),s=ya(),a=ya(),l=hg(So);let u=So;Xi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=lf.bind(null,Y=>""+Y),p=lf.bind(null,Bte),f=lf.bind(null,Cl);function h(Y,oe){let le,$;return ZI(Y)?(le=t.getRecordMatcher(Y),$=oe):$=Y,t.addRoute($,le)}function y(Y){const oe=t.getRecordMatcher(Y);oe&&t.removeRoute(oe)}function g(){return t.getRoutes().map(Y=>Y.record)}function v(Y){return!!t.getRecordMatcher(Y)}function b(Y,oe){if(oe=at({},oe||l.value),typeof Y=="string"){const D=uf(r,Y,oe.path),U=t.resolve({path:D.path},oe),X=o.createHref(D.fullPath);return at(D,U,{params:f(U.params),hash:Cl(D.hash),redirectedFrom:void 0,href:X})}let le;if(Y.path!=null)le=at({},Y,{path:uf(r,Y.path,oe.path).path});else{const D=at({},Y.params);for(const U in D)D[U]==null&&delete D[U];le=at({},Y,{params:p(D)}),oe.params=p(oe.params)}const $=t.resolve(le,oe),te=Y.hash||"";$.params=d(f($.params));const ce=Ute(n,at({},Y,{hash:Dte(te),path:$.path})),I=o.createHref(ce);return at({fullPath:ce,hash:te,query:n===q_?ire(Y.query):Y.query||{}},$,{redirectedFrom:void 0,href:I})}function E(Y){return typeof Y=="string"?uf(r,Y,l.value.path):at({},Y)}function T(Y,oe){if(u!==Y)return $s(yt.NAVIGATION_CANCELLED,{from:oe,to:Y})}function A(Y){return S(Y)}function P(Y){return A(at(E(Y),{replace:!0}))}function R(Y,oe){const le=Y.matched[Y.matched.length-1];if(le&&le.redirect){const{redirect:$}=le;let te=typeof $=="function"?$(Y,oe):$;return typeof te=="string"&&(te=te.includes("?")||te.includes("#")?te=E(te):{path:te},te.params={}),at({query:Y.query,hash:Y.hash,params:te.path!=null?{}:Y.params},te)}}function S(Y,oe){const le=u=b(Y),$=l.value,te=Y.state,ce=Y.force,I=Y.replace===!0,D=R(le,$);if(D)return S(at(E(D),{state:typeof D=="object"?at({},te,D.state):te,force:ce,replace:I}),oe||le);const U=le;U.redirectedFrom=oe;let X;return!ce&&Jte(n,$,le)&&(X=$s(yt.NAVIGATION_DUPLICATED,{to:U,from:$}),be($,$,!0,!1)),(X?Promise.resolve(X):q(U,$)).catch(K=>Dn(K)?Dn(K,yt.NAVIGATION_GUARD_REDIRECT)?K:me(K):G(K,U,$)).then(K=>{if(K){if(Dn(K,yt.NAVIGATION_GUARD_REDIRECT))return S(at({replace:I},E(K.to),{state:typeof K.to=="object"?at({},te,K.to.state):te,force:ce}),oe||U)}else K=k(U,$,!0,I,te);return M(U,$,K),K})}function w(Y,oe){const le=T(Y,oe);return le?Promise.reject(le):Promise.resolve()}function O(Y){const oe=ve.values().next().value;return oe&&typeof oe.runWithContext=="function"?oe.runWithContext(Y):Y()}function q(Y,oe){let le;const[$,te,ce]=are(Y,oe);le=df($.reverse(),"beforeRouteLeave",Y,oe);for(const D of $)D.leaveGuards.forEach(U=>{le.push(qo(U,Y,oe))});const I=w.bind(null,Y,oe);return le.push(I),ie(le).then(()=>{le=[];for(const D of i.list())le.push(qo(D,Y,oe));return le.push(I),ie(le)}).then(()=>{le=df(te,"beforeRouteUpdate",Y,oe);for(const D of te)D.updateGuards.forEach(U=>{le.push(qo(U,Y,oe))});return le.push(I),ie(le)}).then(()=>{le=[];for(const D of ce)if(D.beforeEnter)if(dn(D.beforeEnter))for(const U of D.beforeEnter)le.push(qo(U,Y,oe));else le.push(qo(D.beforeEnter,Y,oe));return le.push(I),ie(le)}).then(()=>(Y.matched.forEach(D=>D.enterCallbacks={}),le=df(ce,"beforeRouteEnter",Y,oe,O),le.push(I),ie(le))).then(()=>{le=[];for(const D of s.list())le.push(qo(D,Y,oe));return le.push(I),ie(le)}).catch(D=>Dn(D,yt.NAVIGATION_CANCELLED)?D:Promise.reject(D))}function M(Y,oe,le){a.list().forEach($=>O(()=>$(Y,oe,le)))}function k(Y,oe,le,$,te){const ce=T(Y,oe);if(ce)return ce;const I=oe===So,D=Xi?history.state:{};le&&($||I?o.replace(Y.fullPath,at({scroll:I&&D&&D.scroll},te)):o.push(Y.fullPath,te)),l.value=Y,be(Y,oe,le,I),me()}let x;function C(){x||(x=o.listen((Y,oe,le)=>{if(!pe.listening)return;const $=b(Y),te=R($,pe.currentRoute.value);if(te){S(at(te,{replace:!0,force:!0}),$).catch(Ja);return}u=$;const ce=l.value;Xi&&Zte(M_(ce.fullPath,le.delta),Xte()),q($,ce).catch(I=>Dn(I,yt.NAVIGATION_ABORTED|yt.NAVIGATION_CANCELLED)?I:Dn(I,yt.NAVIGATION_GUARD_REDIRECT)?(S(at(E(I.to),{force:!0}),$).then(D=>{Dn(D,yt.NAVIGATION_ABORTED|yt.NAVIGATION_DUPLICATED)&&!le.delta&&le.type===Yh.pop&&o.go(-1,!1)}).catch(Ja),Promise.reject()):(le.delta&&o.go(-le.delta,!1),G(I,$,ce))).then(I=>{I=I||k($,ce,!1),I&&(le.delta&&!Dn(I,yt.NAVIGATION_CANCELLED)?o.go(-le.delta,!1):le.type===Yh.pop&&Dn(I,yt.NAVIGATION_ABORTED|yt.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),M($,ce,I)}).catch(Ja)}))}let j=ya(),F=ya(),V;function G(Y,oe,le){me(Y);const $=F.list();return $.length?$.forEach(te=>te(Y,oe,le)):console.error(Y),Promise.reject(Y)}function se(){return V&&l.value!==So?Promise.resolve():new Promise((Y,oe)=>{j.add([Y,oe])})}function me(Y){return V||(V=!Y,C(),j.list().forEach(([oe,le])=>Y?le(Y):oe()),j.reset()),Y}function be(Y,oe,le,$){const{scrollBehavior:te}=e;if(!Xi||!te)return Promise.resolve();const ce=!le&&ere(M_(Y.fullPath,0))||($||!le)&&history.state&&history.state.scroll||null;return Wl().then(()=>te(Y,oe,ce)).then(I=>I&&Qte(I)).catch(I=>G(I,Y,oe))}const Q=Y=>o.go(Y);let ee;const ve=new Set,pe={currentRoute:l,listening:!0,addRoute:h,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:g,resolve:b,options:e,push:A,replace:P,go:Q,back:()=>Q(-1),forward:()=>Q(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:F.add,isReady:se,install(Y){Y.component("RouterLink",Rre),Y.component("RouterView",Cre),Y.config.globalProperties.$router=pe,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>Rn(l)}),Xi&&!ee&&l.value===So&&(ee=!0,A(o.location).catch($=>{}));const oe={};for(const $ in So)Object.defineProperty(oe,$,{get:()=>l.value[$],enumerable:!0});Y.provide(ep,pe),Y.provide(ob,fg(oe)),Y.provide(Qh,l);const le=Y.unmount;ve.add(Y),Y.unmount=function(){ve.delete(Y),ve.size<1&&(u=So,x&&x(),x=null,l.value=So,ee=!1,V=!1),le()}}};function ie(Y){return Y.reduce((oe,le)=>oe.then(()=>O(le)),Promise.resolve())}return pe}function Ane(){return Jr(ep)}function One(e){return Jr(ob)}const n1=Nre({history:lre(),routes:[{path:"/",component:{template:"<div />"}},{path:"/breadcrumbs",component:{template:"<RouterView />"},children:[{path:"tenders",component:{template:"<RouterView />"},meta:{breadcrumb:"Тендери"},children:[{path:"transport",component:{template:"<RouterView />"},meta:{breadcrumb:"Транспорт"},children:[{path:"vaz-21703",component:{template:"<div />"},meta:{breadcrumb:"Автомобіль ВАЗ 21703"}}]}]},{path:"modules",component:{template:"<div />"},meta:{name:"Публічні модулі"}}]},{path:"/:pathMatch(.*)*",component:{template:"<div />"}}]});n1.push("/");Qee(e=>{e.use(n1)});const xre={parameters:{layout:"fullscreen",options:{storySort:{order:["Foundation",["Typography","Colors","Spacing","Grid"],"Components",["Actions",["PzBtn","PzLink","PzRouterLink"],"Display",["PzIcon","PzImage","PzTag","PzStatus"],"Layouts",["PzGrid","PzArrayClamp"],"Navigation",["PzBreadcrumb","PzNav","PzPagination","PzTabs"],"Popups",["PzDropdown","PzHint","PzInfoHint","PzModal"],"Text",["PzText","PzTextClamp"]]]}},backgrounds:{disable:!0},controls:{expanded:!0,matchers:{color:/(background|color)$/i,date:/Date$/i}},docs:{codePanel:!0}},decorators:[(e,t)=>{const r=e(),n=t.parameters.prototype??{};return{components:{storyComponent:r},setup(){return{context:t,prototype:n}},template:`
|
|
1080
|
+
<div class="sb-prototype">
|
|
1081
|
+
<div class="sb-prototype-chrome">
|
|
1082
|
+
<div class="sb-prototype-traffic" aria-hidden="true">
|
|
1083
|
+
<span class="sb-prototype-traffic-dot sb-prototype-traffic-dot-red"></span>
|
|
1084
|
+
<span class="sb-prototype-traffic-dot sb-prototype-traffic-dot-amber"></span>
|
|
1085
|
+
<span class="sb-prototype-traffic-dot sb-prototype-traffic-dot-green"></span>
|
|
1086
|
+
</div>
|
|
1087
|
+
|
|
1088
|
+
<div class="sb-prototype-meta">
|
|
1089
|
+
<span class="sb-prototype-eyebrow">Figma prototype</span>
|
|
1090
|
+
<strong class="sb-prototype-title">{{ prototype.caption || context.title }}</strong>
|
|
1091
|
+
<span class="sb-prototype-path">{{ context.title }} / {{ context.name }}</span>
|
|
1092
|
+
</div>
|
|
1093
|
+
</div>
|
|
1094
|
+
|
|
1095
|
+
<div class="sb-prototype-board">
|
|
1096
|
+
<aside class="sb-prototype-rail">
|
|
1097
|
+
<div class="sb-prototype-rail-block">
|
|
1098
|
+
<span class="sb-prototype-label">Context</span>
|
|
1099
|
+
<p class="sb-prototype-copy">
|
|
1100
|
+
{{ prototype.note || "Storybook canvas styled as a design review frame for faster visual validation." }}
|
|
1101
|
+
</p>
|
|
1102
|
+
</div>
|
|
1103
|
+
|
|
1104
|
+
<div class="sb-prototype-rail-block">
|
|
1105
|
+
<span class="sb-prototype-label">Surface</span>
|
|
1106
|
+
<p class="sb-prototype-copy">Desktop review canvas with design-system chrome and neutral lighting.</p>
|
|
1107
|
+
</div>
|
|
1108
|
+
</aside>
|
|
1109
|
+
|
|
1110
|
+
<section class="sb-prototype-surface">
|
|
1111
|
+
<story-component />
|
|
1112
|
+
</section>
|
|
1113
|
+
</div>
|
|
1114
|
+
</div>
|
|
1115
|
+
`}}]},Ire=Object.freeze(Object.defineProperty({__proto__:null,default:xre},Symbol.toStringTag,{value:"Module"})),{composeConfigs:Mre}=__STORYBOOK_MODULE_PREVIEW_API__;function qre(e=[]){const t=[e[0]??nte,e[1]??yte,e[2]??Rte,e[3]??Ire];return Mre(t)}wC();const{PreviewWeb:jre}=__STORYBOOK_MODULE_PREVIEW_API__;window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new jre(gY,qre);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{Qre as $,u4 as A,ux as B,Wl as C,y7 as D,Xl as E,Lt as F,W7 as G,aX as H,K7 as I,Ng as J,Ane as K,Ti as L,Hd as M,HQ as N,uX as O,Zn as P,Gd as Q,Rre as R,Jr as S,R7 as T,IN as U,g7 as V,Ax as W,fr as X,Fa as Y,$re as Z,Tne as _,Ene as a,Vre as a0,Wre as a1,zre as a2,Hre as a3,Jre as a4,Ure as a5,ene as a6,vi as a7,Bre as a8,tne as a9,rne as aa,Zre as ab,fne as ac,pne as ad,dne as ae,cne as af,une as ag,lne as ah,ane as ai,sne as aj,ine as ak,one as al,nne as am,Xre as an,Yre as ao,Kre as ap,Gre as aq,gne as ar,bne as as,hne as at,yne as au,Vn as av,TY as aw,mne as ax,vne as ay,wh as az,CY as b,OY as c,Kl as d,$X as e,Hl as f,Vr as g,HX as h,fs as i,Mc as j,Rn as k,ft as l,Y7 as m,Jl as n,El as o,cx as p,One as q,X7 as r,h7 as s,HC as t,lX as u,m7 as v,gg as w,G7 as x,Cg as y,WQ as z};
|