@fluid-topics/ft-wc-test-utils 1.2.23 → 1.2.25

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.
@@ -25,7 +25,7 @@ export class FtLitElementTestHelper {
25
25
  await waitUntil(() => this.matches(selector, target => { var _a; return ((_a = target.textContent) !== null && _a !== void 0 ? _a : "").trim() !== ""; }), `Element <${selector !== null && selector !== void 0 ? selector : this.element.constructor.name}> should have had text`);
26
26
  }
27
27
  async shouldHaveTextIgnoringWhiteSpaces(selector, expectedText) {
28
- await waitUntil(() => this.matches(selector, (target) => { var _a; return this.removeWhiteSpaces((_a = target.textContent) !== null && _a !== void 0 ? _a : "") === this.removeWhiteSpaces(expectedText); }), `Element <${selector !== null && selector !== void 0 ? selector : this.element.constructor.name}> should have had text "${expectedText}"`);
28
+ await waitUntil(() => this.matches(selector, (target) => { var _a; return this.removeWhiteSpaces((_a = target.textContent) !== null && _a !== void 0 ? _a : "") === this.removeWhiteSpaces(expectedText); }), `Element <${selector !== null && selector !== void 0 ? selector : this.element.constructor.name}> should have had text "${expectedText}" but was "${this.getTarget(selector).textContent}"`);
29
29
  }
30
30
  matches(selector, matcher) {
31
31
  const target = this.getTarget(selector);
@@ -33,7 +33,7 @@ ${E()}`}return le}function Ye(L){c+=`${E()}<${j(L)}${$e(L)}>
33
33
  `)}function W(L){b.includes(j(L))||L instanceof Element&&B(L)}let ie;if(typeof _=="string")ie=document.createElement("diff-container"),ie.innerHTML=_,h=-1;else if(_ instanceof Node)ie=_,h=0;else throw new Error(`Cannot create diffable HTML from: ${_}`);let Q=document.createTreeWalker(ie,NodeFilter.SHOW_TEXT+NodeFilter.SHOW_ELEMENT,null,!1);for(;Q.currentNode;){let L=Q.currentNode;if(J(L,Q),U(L)&&Q.firstChild())h+=1;else if(W(L),!Q.nextSibling()){h-=1;let Y=Q.parentNode();if(!Y)break;p.add(Y)}}return c}function xd(_){return _&&_!==null&&typeof _=="object"&&("ignoreAttributes"in _||"ignoreTags"in _||"ignoreChildren"in _||"stripEmptyAttributes"in _)}var Ug="wtr-session-id",Ed=new URL(window.location.href).searchParams.get(Ug);function us(_){return _!=null&&typeof _=="object"}async function cs(_,g,D){if(typeof Ed!="string")throw new Error("Unable to execute server commands in a browser not controlled by the test runner. Use the debug option from the watch menu to debug in a controlled browser.");let A;try{({sendMessageWaitForResponse:A}=await import("/__web-dev-server__web-socket.js"))}catch{throw new Error("Could not setup web socket connection. Are you executing this test through Web Test Runner?")}try{let b=await A({type:"wtr-command",sessionId:Ed,command:_,payload:g});if(!b.executed){let T;throw D?T=`Unknown command ${_}. Add the ${D} to your config.`:T=`Unknown command ${_}. Did you install a plugin to handle this command?`,new Error(T)}return b.result}catch(b){throw new Error(`Error while executing command ${_}${g?` with payload ${JSON.stringify(g)}`:""}: ${b.message}`)}}var ls,qa;async function Ad(){return ls||(ls=await cs("get-snapshot-config",void 0,"snapshotPlugin from @web/test-runner-commands")),ls}var Wg=/snapshots\[[^\]]+] = (\n)?(?<content>`[^`]*`)/gm,Gg=_=>([..._.matchAll(Wg)].forEach(({groups:{content:g}})=>{_=_.replaceAll(g,encodeURIComponent(g))}),_);async function Fd({cache:_=!0}={}){if(_&&qa)return qa;let g=await cs("get-snapshots",void 0,"snapshotPlugin from @web/test-runner-commands");if(typeof g?.content!="string")throw new Error("Expected a result as string");let A=await import(`data:text/javascript;charset=utf-8,${`${Gg(g.content)}/* ${Math.random()} */`}`);if(!A||!us(A.snapshots))throw new Error("Expected snapshot result to be a module that exports an object.");return qa=A.snapshots,qa}async function Cd(_){if(!us(_))throw new Error("You must provide a payload object");if(typeof _.name!="string")throw new Error("You must provide a snapshot name");return(await Fd(_))[_.name]}async function kd(_){if(!us(_))throw new Error("You must provide a payload object");if(typeof _.name!="string")throw new Error("You must provide a snapshot name");if(_.content!==void 0&&typeof _.content!="string")throw new Error("You must provide a snapshot content");let g=await Fd();return g[_.name]=_.content,cs("save-snapshot",_,"snapshotPlugin from @web/test-runner-commands")}var Td=_=>{if(window.ShadyCSS&&window.ShadyCSS.nativeShadow===!1){let g=_.tagName.toLowerCase(),D=" ";return Array.prototype.slice.call(_.attributes).forEach(A=>{D+=`${A.name}="${A.value}" `}),D=D.slice(0,-1),`<${g}${D}>${_.innerHTML}</${g}>`}return _.outerHTML},Nd=_=>{if(window.ShadyCSS&&window.ShadyCSS.nativeShadow===!1){let g=_.tagName.toLowerCase(),D=new RegExp(g,"g"),A=_.shadowRoot.innerHTML;return A=A.replace(/style-scope/g,""),A=A.replace(D,""),A=A.replace(/(class=".*?)(\s)*"/g,'$1"'),A=A.replace(/ class="\w?"/g,""),A}return _.shadowRoot.innerHTML};function ds(_){let g=[],D;for(_.type==="hook"?D=_.ctx.currentTest:D=_;D&&D.parent;)D.title&&g.push(D.title),D=D.parent;return g.reverse()}function ps(..._){switch(_.length){case 2:{let[g,D]=_;return{message:g,options:D}}case 1:{let[g]=_;return xd(g)?{options:g}:{message:g}}default:return{}}}var fs=(_,g)=>{_.Assertion.addProperty("lightDom",function(){new _.Assertion(this._obj.nodeType).to.equal(1),g.flag(this,"lightDom",!0)}),_.Assertion.addProperty("shadowDom",function(){new _.Assertion(this._obj.nodeType).to.equal(1),g.flag(this,"shadowDom",!0)}),_.Assertion.addProperty("dom",function(){new _.Assertion(this._obj.nodeType).to.equal(1),g.flag(this,"dom",!0)});let D=p=>Td(p),A=p=>p.innerHTML,b=p=>Nd(p),T=(p,m,E,...I)=>{let{message:j,options:U}=ps(...I),Z=new _.Assertion(Nn(p,U),j),ae=Nn(m,U);E?Z.not.equal(ae,j):Z.equal(ae,j)},F=p=>function(E,...I){if(g.flag(this,"lightDom")||g.flag(this,"shadowDom")||g.flag(this,"dom")){let j;g.flag(this,"lightDom")?j=A(this._obj):g.flag(this,"shadowDom")?j=b(this._obj):j=D(this._obj),T(j,E,g.flag(this,"negate"),I[0])}else p.apply(this,[E,...I])};_.Assertion.overwriteMethod("equals",F),_.Assertion.overwriteMethod("equal",F),_.Assertion.overwriteMethod("eq",F);function v(p,m,...E){let I=window.__mocha_context__,j=window.__snapshot__,{message:U,options:Z}=ps(...E),{index:ae}=I;I.index+=1;let he=ds(I.runnable),we=Nn(p,Z);if(j.update)j.set(he,ae,we,"html");else{let qe=j.get(he,ae);if(!qe)j.set(he,ae,we,"html");else{let $e=j.match(we,Nn(qe.code,Z));if($e&&m||!$e&&!m)throw new _.AssertionError(U||`Received value does not match stored snapshot ${ae}`,{actual:we,expected:qe.code,showDiff:!0},_.util.flag(this,"ssfi"))}}}async function M(p,m,...E){let{message:I,options:j}=ps(...E),Z=ds(window.__WTR_MOCHA_RUNNER__.test).join(" "),ae=Nn(p,j),he=await Cd({name:Z}),we=await Ad();if(he&&!we.updateSnapshots){if(m?he===ae:he!==ae)throw new _.AssertionError(I||`Snapshot ${Z} does not match the saved snapshot on disk`,{actual:ae,expected:he,showDiff:!0},_.util.flag(this,"ssfi"))}else he!==ae&&await kd({name:Z,content:ae})}function c(p,m,...E){if(window.__mocha_context__&&window.__snapshot__)return v.call(this,p,m,...E);if(window.__WTR_MOCHA_RUNNER__)return M.call(this,p,m,...E);throw new Error("Could not detect test runner environment. Snapshots require either Web Test Runner with mocha, or Karma with mocha and karma mocha snapshot")}function h(p){let m=_.util.flag(this,"object"),E;return g.flag(this,"shadowDom")?E=b(m):g.flag(this,"lightDom")?E=A(m):E=m,c.call(this,E,g.flag(this,"negate"),p)}g.addMethod(_.Assertion.prototype,"equalSnapshot",h),g.addMethod(_.Assertion.prototype,"notEqualSnapshot",h),g.addMethod(_.assert,"equalSnapshot",c),g.addMethod(_.assert,"notEqualSnapshot",c),_.assert.dom={equal(p,m,...E){return T.call(this,D(p),m,!1,...E)},notEqual(p,m,...E){return T.call(this,D(p),m,!0,...E)},equalSnapshot(p,...m){return c.call(this,p,!1,...m)},notEqualSnapshot(p,...m){return c.call(this,p,!0,...m)}},_.assert.lightDom={equal(p,m,...E){return T.call(this,A(p),m,!1,...E)},notEqual(p,m,...E){return T.call(this,A(p),m,!0,...E)},equalSnapshot(p,...m){return c.call(this,A(p),!1,...m)},notEqualSnapshot(p,...m){return c.call(this,A(p),!0,...m)}},_.assert.shadowDom={equal(p,m,...E){return T.call(this,b(p),m,!1,...E)},notEqual(p,m,...E){return T.call(this,b(p),m,!0,...E)},equalSnapshot(p,...m){return c.call(this,b(p),!1,...m)},notEqualSnapshot(p,...m){return c.call(this,b(p),!0,...m)}}};var er;async function Rd(){if(window.axe){er=window.axe;return}if(typeof is=="function"){er=hs();return}if(await Promise.resolve().then(()=>Ia(hs(),1)),!window.axe)throw new Error("Error importing axe-core/axe.min.js, are you using a bundler or build tool that doesnt handle es modules?");er=window.axe}function Kg(_){if(!_||!_.length)return;let g={};return _.forEach(D=>{g[D]={enabled:!1}}),g}async function Yg(_,g){return er||await Rd(),new Promise((D,A)=>{er.run(_,g,(b,T)=>{b?A(new Error(b)):D(T)})})}function Jg(_,g,D){let{violations:A}=g;if(A.length&&_){D();return}if(!A.length&&!_){D();return}let b=[];A.length&&(b[b.length]="Accessibility Violations",b[b.length]="---",A.forEach(F=>{b[b.length]=`Rule: ${F.id}`,b[b.length]=`Impact: ${F.impact}`,b[b.length]=`${F.help} (${F.helpUrl})`,F.nodes.forEach(v=>{b[b.length]="",v.target&&(b[b.length]=`Issue target: ${v.target}`),b[b.length]=`Context: ${v.html}`,v.failureSummary&&(b[b.length]=`${v.failureSummary}`)}),b[b.length]="---"}));let T=new Error(b.join(`
34
34
  `));throw D(T),T}var ms=(_,g)=>{let{assert:D}=_;g.addMethod(_.Assertion.prototype,"accessible",function(b){let T=this._obj,F=b||{},v=Kg(F.ignoredRules),M={resultTypes:["violations"]};v&&(M.rules=v);let c=F.done?F.done:void 0;c||(c=()=>{}),F.ignoredTags&&T.parentNode.querySelectorAll(F.ignoredTags.toString()).forEach(m=>m.setAttribute("aria-hidden",!0));let h=Yg(T,M).then(p=>Jg(g.flag(this,"negate"),p,c));return this.then=h.then.bind(h),this}),D.isAccessible=function(b,T){return new _.Assertion(b).to.be.accessible(T)},D.isNotAccessible=function(b,T){return new _.Assertion(b).not.to.be.accessible(T)}};function Xg(_){var g={exports:{}};return _(g,g.exports),g.exports}function Zg(_){throw new Error('Could not dynamically require "'+_+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Qg=Xg(function(_,g){(function(D){typeof Zg=="function"?_.exports=D:chai.use(D)})(function(D,A){var b=A.flag,T=function(c){var h;return M(c)?c.length===0?"empty NodeList":(h=Array.prototype.slice.call(c,0,5).map(T).join(", "),c.length>5?h+"... (+"+(c.length-5)+" more)":h):v(c)?(h=c.tagName.toLowerCase(),c.id&&(h+="#"+c.id),c.className&&(h+="."+String(c.className).replace(/\s+/g,".")),Array.prototype.forEach.call(c.attributes,function(p){p.name!=="class"&&p.name!=="id"&&(h+="["+p.name+(p.value?'="'+p.value+'"]':"]"))}),h):String(c)},F=function(c,h){var p=b(this,"object"),m=p.getAttribute(c);(!b(this,"negate")||h===void 0)&&this.assert(!!p.attributes[c],"expected "+T(p)+" to have an attribute #{exp}","expected "+T(p)+" not to have an attribute #{exp}",c),h!==void 0&&this.assert(h===m,"expected "+T(p)+" to have an attribute "+A.inspect(c)+" with the value #{exp}, but the value was #{act}","expected "+T(p)+" not to have an attribute "+A.inspect(c)+" with the value #{act}",h,m),b(this,"object",m)},v=function(c){return c.nodeType===1},M=function(c){return Object.prototype.toString.call(c)==="[object NodeList]"};A.elToString=T,D.Assertion.addMethod("attr",F),D.Assertion.addMethod("attribute",F),D.Assertion.addMethod("class",function(c){var h=b(this,"object");this.assert(h.classList.contains(c),"expected "+T(h)+" to have class #{exp}","expected "+T(h)+" not to have class #{exp}",c)}),D.Assertion.addMethod("id",function(c){var h=b(this,"object");this.assert(h.id==c,"expected "+T(h)+" to have id #{exp}","expected "+T(h)+" not to have id #{exp}",c)}),D.Assertion.addMethod("html",function(c){var h=b(this,"object"),p=b(this,"object").innerHTML;b(this,"contains")?this.assert(p.indexOf(c)>=0,"expected #{act} to contain HTML #{exp}","expected #{act} not to contain HTML #{exp}",c,p):this.assert(p===c,"expected "+T(h)+" to have HTML #{exp}, but the HTML was #{act}","expected "+T(h)+" not to have HTML #{exp}",c,p)}),D.Assertion.addChainableMethod("trimmed",null,function(){b(this,"trim-text",!0)}),D.Assertion.addProperty("rendered",function(){b(this,"rendered-text",!0)}),D.Assertion.addMethod("text",function(c){var h=b(this,"object"),p=b(this,"contains"),m=b(this,"trim-text"),E,I,j=b(this,"rendered-text")?"innerText":"textContent";M(h)?(E=Array.prototype.map.call(h,function(ae){return m?ae[j].trim():ae[j]}),Array.isArray(c)?(I=p?c[b(this,"negate")?"some":"every"](function(ae){return Array.prototype.some.call(h,function(he){return(m?he[j].trim():he[j])===ae})}):A.eql(E,c),E=E.join(),c=c.join()):(E=E.join(""),I=p?E.indexOf(c)>=0:E===c)):(E=m?h[j].trim():h[j],I=p?E.indexOf(c)>=0:E===c);var U=T(h),Z="";m&&(Z+="trimmed "),b(this,"rendered-text")&&(Z+="rendered "),Z+="text",p?this.assert(I,"expected "+U+" to contain #{exp}, but the "+Z+" was #{act}","expected "+U+" not to contain #{exp}, but the "+Z+" was #{act}",c,E):this.assert(I,"expected "+U+" to have "+Z+" #{exp}, but the "+Z+" was #{act}","expected "+U+" not to have "+Z+" #{exp}",c,E)}),D.Assertion.addMethod("value",function(c){var h=b(this,"object"),p=b(this,"object").value;this.assert(b(this,"object").value===c,"expected "+T(h)+" to have value #{exp}, but the value was #{act}","expected "+T(h)+" not to have value #{exp}",c,p)}),D.Assertion.overwriteProperty("exist",function(c){return function(){var h=b(this,"object");M(h)?this.assert(h.length>0,"expected an empty NodeList to have nodes","expected "+T(h)+" to not exist"):c.apply(this,arguments)}}),D.Assertion.overwriteProperty("empty",function(c){return function(){var h=b(this,"object");v(h)?this.assert(h.children.length===0,"expected "+T(h)+" to be empty","expected "+T(h)+" to not be empty"):M(h)?this.assert(h.length===0,"expected "+T(h)+" to be empty","expected "+T(h)+" to not be empty"):c.apply(this,arguments)}}),D.Assertion.overwriteChainableMethod("length",function(c){return function(h){var p=b(this,"object");if(M(p)||v(p)){var m=p.children?p.children.length:p.length;this.assert(m===h,"expected "+T(p)+" to have #{exp} children but it had #{act} children","expected "+T(p)+" to not have #{exp} children",h,m)}else c.apply(this,arguments)}},function(c){return function(){c.call(this)}}),D.Assertion.overwriteMethod("match",function(c){return function(h){var p=b(this,"object");v(p)?this.assert(p.matches(h),"expected "+T(p)+" to match #{exp}","expected "+T(p)+" to not match #{exp}",h):M(p)?this.assert(!!p.length&&Array.prototype.every.call(p,function(m){return m.matches(h)}),"expected "+T(p)+" to match #{exp}","expected "+T(p)+" to not match #{exp}",h):c.apply(this,arguments)}}),D.Assertion.overwriteChainableMethod("contain",function(c){return function(h){var p=b(this,"object");v(p)?typeof h=="string"?this.assert(!!p.querySelector(h),"expected "+T(p)+" to contain #{exp}","expected "+T(p)+" to not contain #{exp}",h):this.assert(p.contains(h),"expected "+T(p)+" to contain "+T(h),"expected "+T(p)+" to not contain "+T(h)):c.apply(this,arguments)}},function(c){return function(){c.call(this)}}),D.Assertion.addMethod("descendant",function(c){var h=b(this,"object"),p=c;typeof c=="string"?(p=h.querySelector(c),this.assert(!!p,"expected "+T(h)+" to have descendant #{exp}","expected "+T(h)+" to not have descendant #{exp}",c)):this.assert(h.contains(c),"expected "+T(h)+" to contain "+T(c),"expected "+T(h)+" to not contain "+T(c)),b(this,"object",p)}),D.Assertion.addMethod("descendants",function(c){var h=b(this,"object"),p=h.querySelectorAll(c);this.assert(!!p.length,"expected "+T(h)+" to have descendants #{exp}","expected "+T(h)+" to not have descendants #{exp}",c),b(this,"object",p)}),D.Assertion.addProperty("displayed",function(){var c=b(this,"object"),h=document.body.contains(c)?window.getComputedStyle(c).display:c.style.display;this.assert(h!=="none","expected "+T(c)+" to be displayed, but it was not","expected "+T(c)+" to not be displayed, but it was as "+h,h)}),D.Assertion.addProperty("visible",function(){var c=b(this,"object"),h=document.body.contains(c)?window.getComputedStyle(c).visibility:c.style.visibility;this.assert(h!=="hidden"&&h!=="collapse","expected "+T(c)+" to be visible, but it was "+(h==="hidden"?"hidden":"collapsed"),"expected "+T(c)+" to not be visible, but it was",h)}),D.Assertion.addMethod("tagName",function(c){var h=b(this,"object"),p=h.tagName;this.assert(p.toUpperCase()===c.toUpperCase(),"expected "+T(h)+" to have tagName "+c+", but it was "+p,"expected "+T(h)+" to not have tagName "+c+", but it was "+p,p)}),D.Assertion.addMethod("style",function(c,h){var p=b(this,"object"),m=window.getComputedStyle(p),E=m[c];this.assert(E===h,"expected "+T(p)+" to have style property "+c+" equal to "+h+", but it was equal to "+E,"expected "+T(p)+" to not have style property "+c+" equal to "+h+", but it was equal to "+E,E)})})}),Od=Qg;function eb(_){var g={exports:{}};return _(g,g.exports),g.exports}function tb(_){throw new Error('Could not dynamically require "'+_+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var nb=eb(function(_,g){(function(D){typeof tb=="function"?_.exports=D:chai.use(D)})(function(D,A){var b=Array.prototype.slice;function T(U){return typeof U=="function"&&typeof U.getCall=="function"&&typeof U.calledWithExactly=="function"}function F(U){switch(U){case 1:return"once";case 2:return"twice";case 3:return"thrice";default:return(U||0)+" times"}}function v(U){return U&&T(U.proxy)}function M(U){if(!T(U._obj)&&!v(U._obj))throw new TypeError(A.inspect(U._obj)+" is not a spy or a call to a spy!")}function c(U,Z,ae,he,we){var qe=he?"always have ":"have ";ae=ae||"",T(U.proxy)&&(U=U.proxy);function $e(Ye){return U.printf.apply(U,Ye)}return{affirmative:function(){return $e(["expected %n to "+qe+Z+ae].concat(we))},negative:function(){return $e(["expected %n to not "+qe+Z].concat(we))}}}function h(U,Z,ae){A.addProperty(D.Assertion.prototype,U,function(){M(this);var he=c(this._obj,Z,ae,!1);this.assert(this._obj[U],he.affirmative,he.negative)})}function p(U,Z,ae){A.addMethod(D.Assertion.prototype,U,function(he){M(this);var we=c(this._obj,Z,ae,!1,[F(he)]);this.assert(this._obj[U]===he,we.affirmative,we.negative)})}function m(U,Z,ae){return function(){M(this);var he="always"+U[0].toUpperCase()+U.substring(1),we=A.flag(this,"always")&&typeof this._obj[he]=="function",qe=we?he:U,$e=c(this._obj,Z,ae,we,b.call(arguments));this.assert(this._obj[qe].apply(this._obj,arguments),$e.affirmative,$e.negative)}}function E(U,Z,ae){var he=m(U,Z,ae);A.addProperty(D.Assertion.prototype,U,he)}function I(U,Z,ae,he){var we=m(Z,ae,he);A.addMethod(D.Assertion.prototype,U,we)}function j(U,Z,ae){I(U,U,Z,ae)}A.addProperty(D.Assertion.prototype,"always",function(){A.flag(this,"always",!0)}),h("called","been called"," at least once, but it was never called"),p("callCount","been called exactly %1",", but it was called %c%C"),h("calledOnce","been called exactly once",", but it was called %c%C"),h("calledTwice","been called exactly twice",", but it was called %c%C"),h("calledThrice","been called exactly thrice",", but it was called %c%C"),E("calledWithNew","been called with new"),j("calledBefore","been called before %1"),j("calledAfter","been called after %1"),j("calledImmediatelyBefore","been called immediately before %1"),j("calledImmediatelyAfter","been called immediately after %1"),j("calledOn","been called with %1 as this",", but it was called with %t instead"),j("calledWith","been called with arguments %*","%D"),j("calledOnceWith","been called exactly once with arguments %*","%D"),j("calledWithExactly","been called with exact arguments %*","%D"),j("calledOnceWithExactly","been called exactly once with exact arguments %*","%D"),j("calledWithMatch","been called with arguments matching %*","%D"),j("returned","returned %1"),I("thrown","threw","thrown %1")})}),_d=nb;Qn.use(fs);Qn.use(ms);Qn.use(Od);Qn.use(_d);var gs,$a=window,nr=$a.trustedTypes,Pd=nr?nr.createPolicy("lit-html",{createHTML:_=>_}):void 0,La="$lit$",nn=`lit$${(Math.random()+"").slice(9)}$`,ys="?"+nn,rb=`<${ys}>`,rr=document,Va=()=>rr.createComment(""),Mr=_=>_===null||typeof _!="object"&&typeof _!="function",Ld=Array.isArray,Vd=_=>Ld(_)||typeof _?.[Symbol.iterator]=="function",bs=`[
35
35
  \f\r]`,Pr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Md=/-->/g,Id=/>/g,Sn=RegExp(`>|${bs}(?:([^\\s"'>=/]+)(${bs}*=${bs}*(?:[^
36
- \f\r"'\`<>=]|("|')|))|$)`,"g"),jd=/'/g,Bd=/"/g,Hd=/^(?:script|style|textarea|title)$/i,zd=_=>(g,...D)=>({_$litType$:_,strings:g,values:D}),Ud=zd(1),Wd=zd(2),Ir=Symbol.for("lit-noChange"),pt=Symbol.for("lit-nothing"),qd=new WeakMap,tr=rr.createTreeWalker(rr,129,null,!1),Gd=(_,g)=>{let D=_.length-1,A=[],b,T=g===2?"<svg>":"",F=Pr;for(let M=0;M<D;M++){let c=_[M],h,p,m=-1,E=0;for(;E<c.length&&(F.lastIndex=E,p=F.exec(c),p!==null);)E=F.lastIndex,F===Pr?p[1]==="!--"?F=Md:p[1]!==void 0?F=Id:p[2]!==void 0?(Hd.test(p[2])&&(b=RegExp("</"+p[2],"g")),F=Sn):p[3]!==void 0&&(F=Sn):F===Sn?p[0]===">"?(F=b??Pr,m=-1):p[1]===void 0?m=-2:(m=F.lastIndex-p[2].length,h=p[1],F=p[3]===void 0?Sn:p[3]==='"'?Bd:jd):F===Bd||F===jd?F=Sn:F===Md||F===Id?F=Pr:(F=Sn,b=void 0);let I=F===Sn&&_[M+1].startsWith("/>")?" ":"";T+=F===Pr?c+rb:m>=0?(A.push(h),c.slice(0,m)+La+c.slice(m)+nn+I):c+nn+(m===-2?(A.push(void 0),M):I)}let v=T+(_[D]||"<?>")+(g===2?"</svg>":"");if(!Array.isArray(_)||!_.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Pd!==void 0?Pd.createHTML(v):v,A]},jr=class _{constructor({strings:g,_$litType$:D},A){let b;this.parts=[];let T=0,F=0,v=g.length-1,M=this.parts,[c,h]=Gd(g,D);if(this.el=_.createElement(c,A),tr.currentNode=this.el.content,D===2){let p=this.el.content,m=p.firstChild;m.remove(),p.append(...m.childNodes)}for(;(b=tr.nextNode())!==null&&M.length<v;){if(b.nodeType===1){if(b.hasAttributes()){let p=[];for(let m of b.getAttributeNames())if(m.endsWith(La)||m.startsWith(nn)){let E=h[F++];if(p.push(m),E!==void 0){let I=b.getAttribute(E.toLowerCase()+La).split(nn),j=/([.?@])?(.*)/.exec(E);M.push({type:1,index:T,name:j[2],strings:I,ctor:j[1]==="."?za:j[1]==="?"?Ua:j[1]==="@"?Wa:On})}else M.push({type:6,index:T})}for(let m of p)b.removeAttribute(m)}if(Hd.test(b.tagName)){let p=b.textContent.split(nn),m=p.length-1;if(m>0){b.textContent=nr?nr.emptyScript:"";for(let E=0;E<m;E++)b.append(p[E],Va()),tr.nextNode(),M.push({type:2,index:++T});b.append(p[m],Va())}}}else if(b.nodeType===8)if(b.data===ys)M.push({type:2,index:T});else{let p=-1;for(;(p=b.data.indexOf(nn,p+1))!==-1;)M.push({type:7,index:T}),p+=nn.length-1}T++}}static createElement(g,D){let A=rr.createElement("template");return A.innerHTML=g,A}};function Rn(_,g,D=_,A){var b,T,F,v;if(g===Ir)return g;let M=A!==void 0?(b=D._$Co)===null||b===void 0?void 0:b[A]:D._$Cl,c=Mr(g)?void 0:g._$litDirective$;return M?.constructor!==c&&((T=M?._$AO)===null||T===void 0||T.call(M,!1),c===void 0?M=void 0:(M=new c(_),M._$AT(_,D,A)),A!==void 0?((F=(v=D)._$Co)!==null&&F!==void 0?F:v._$Co=[])[A]=M:D._$Cl=M),M!==void 0&&(g=Rn(_,M._$AS(_,g.values),M,A)),g}var Ha=class{constructor(g,D){this._$AV=[],this._$AN=void 0,this._$AD=g,this._$AM=D}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(g){var D;let{el:{content:A},parts:b}=this._$AD,T=((D=g?.creationScope)!==null&&D!==void 0?D:rr).importNode(A,!0);tr.currentNode=T;let F=tr.nextNode(),v=0,M=0,c=b[0];for(;c!==void 0;){if(v===c.index){let h;c.type===2?h=new Br(F,F.nextSibling,this,g):c.type===1?h=new c.ctor(F,c.name,c.strings,this,g):c.type===6&&(h=new Ga(F,this,g)),this._$AV.push(h),c=b[++M]}v!==c?.index&&(F=tr.nextNode(),v++)}return T}v(g){let D=0;for(let A of this._$AV)A!==void 0&&(A.strings!==void 0?(A._$AI(g,A,D),D+=A.strings.length-2):A._$AI(g[D])),D++}},Br=class _{constructor(g,D,A,b){var T;this.type=2,this._$AH=pt,this._$AN=void 0,this._$AA=g,this._$AB=D,this._$AM=A,this.options=b,this._$Cp=(T=b?.isConnected)===null||T===void 0||T}get _$AU(){var g,D;return(D=(g=this._$AM)===null||g===void 0?void 0:g._$AU)!==null&&D!==void 0?D:this._$Cp}get parentNode(){let g=this._$AA.parentNode,D=this._$AM;return D!==void 0&&g?.nodeType===11&&(g=D.parentNode),g}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(g,D=this){g=Rn(this,g,D),Mr(g)?g===pt||g==null||g===""?(this._$AH!==pt&&this._$AR(),this._$AH=pt):g!==this._$AH&&g!==Ir&&this._(g):g._$litType$!==void 0?this.g(g):g.nodeType!==void 0?this.$(g):Vd(g)?this.T(g):this._(g)}k(g){return this._$AA.parentNode.insertBefore(g,this._$AB)}$(g){this._$AH!==g&&(this._$AR(),this._$AH=this.k(g))}_(g){this._$AH!==pt&&Mr(this._$AH)?this._$AA.nextSibling.data=g:this.$(rr.createTextNode(g)),this._$AH=g}g(g){var D;let{values:A,_$litType$:b}=g,T=typeof b=="number"?this._$AC(g):(b.el===void 0&&(b.el=jr.createElement(b.h,this.options)),b);if(((D=this._$AH)===null||D===void 0?void 0:D._$AD)===T)this._$AH.v(A);else{let F=new Ha(T,this),v=F.u(this.options);F.v(A),this.$(v),this._$AH=F}}_$AC(g){let D=qd.get(g.strings);return D===void 0&&qd.set(g.strings,D=new jr(g)),D}T(g){Ld(this._$AH)||(this._$AH=[],this._$AR());let D=this._$AH,A,b=0;for(let T of g)b===D.length?D.push(A=new _(this.k(Va()),this.k(Va()),this,this.options)):A=D[b],A._$AI(T),b++;b<D.length&&(this._$AR(A&&A._$AB.nextSibling,b),D.length=b)}_$AR(g=this._$AA.nextSibling,D){var A;for((A=this._$AP)===null||A===void 0||A.call(this,!1,!0,D);g&&g!==this._$AB;){let b=g.nextSibling;g.remove(),g=b}}setConnected(g){var D;this._$AM===void 0&&(this._$Cp=g,(D=this._$AP)===null||D===void 0||D.call(this,g))}},On=class{constructor(g,D,A,b,T){this.type=1,this._$AH=pt,this._$AN=void 0,this.element=g,this.name=D,this._$AM=b,this.options=T,A.length>2||A[0]!==""||A[1]!==""?(this._$AH=Array(A.length-1).fill(new String),this.strings=A):this._$AH=pt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(g,D=this,A,b){let T=this.strings,F=!1;if(T===void 0)g=Rn(this,g,D,0),F=!Mr(g)||g!==this._$AH&&g!==Ir,F&&(this._$AH=g);else{let v=g,M,c;for(g=T[0],M=0;M<T.length-1;M++)c=Rn(this,v[A+M],D,M),c===Ir&&(c=this._$AH[M]),F||(F=!Mr(c)||c!==this._$AH[M]),c===pt?g=pt:g!==pt&&(g+=(c??"")+T[M+1]),this._$AH[M]=c}F&&!b&&this.j(g)}j(g){g===pt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,g??"")}},za=class extends On{constructor(){super(...arguments),this.type=3}j(g){this.element[this.name]=g===pt?void 0:g}},ab=nr?nr.emptyScript:"",Ua=class extends On{constructor(){super(...arguments),this.type=4}j(g){g&&g!==pt?this.element.setAttribute(this.name,ab):this.element.removeAttribute(this.name)}},Wa=class extends On{constructor(g,D,A,b,T){super(g,D,A,b,T),this.type=5}_$AI(g,D=this){var A;if((g=(A=Rn(this,g,D,0))!==null&&A!==void 0?A:pt)===Ir)return;let b=this._$AH,T=g===pt&&b!==pt||g.capture!==b.capture||g.once!==b.once||g.passive!==b.passive,F=g!==pt&&(b===pt||T);T&&this.element.removeEventListener(this.name,this,b),F&&this.element.addEventListener(this.name,this,g),this._$AH=g}handleEvent(g){var D,A;typeof this._$AH=="function"?this._$AH.call((A=(D=this.options)===null||D===void 0?void 0:D.host)!==null&&A!==void 0?A:this.element,g):this._$AH.handleEvent(g)}},Ga=class{constructor(g,D,A){this.element=g,this.type=6,this._$AN=void 0,this._$AM=D,this.options=A}get _$AU(){return this._$AM._$AU}_$AI(g){Rn(this,g)}},Kd={O:La,P:nn,A:ys,C:1,M:Gd,L:Ha,D:Vd,R:Rn,I:Br,V:On,H:Ua,N:Wa,U:za,F:Ga},$d=$a.litHtmlPolyfillSupport;$d?.(jr,Br),((gs=$a.litHtmlVersions)!==null&&gs!==void 0?gs:$a.litHtmlVersions=[]).push("2.7.3");var ob=Symbol.for(""),ib=_=>{if(_?.r===ob)return _?._$litStatic$};var Yd=new Map,Jd=_=>(g,...D)=>{let A=D.length,b,T,F=[],v=[],M,c=0,h=!1;for(;c<A;){for(M=g[c];c<A&&(T=D[c],(b=ib(T))!==void 0);)M+=b+g[++c],h=!0;c!==A&&v.push(T),F.push(M),c++}if(c===A&&F.push(g[A]),h){let p=F.join("$$lit$$");(g=Yd.get(p))===void 0&&(F.raw=F,Yd.set(p,g=F)),D=v}return _(g,...D)},Xd=Jd(Ud),ey=Jd(Wd);function Ka(){return new Promise(_=>{requestAnimationFrame(()=>_())})}function _n(_,g,D={}){let{interval:A=50,timeout:b=1e3}=D,{stack:T}=new Error;return new Promise((F,v)=>{let M;setTimeout(()=>{clearTimeout(M);let h=new Error(g?`Timeout: ${g}`:`waitUntil timed out after ${b}ms`);h.stack=T,v(h)},b);async function c(){try{await _()?F():M=setTimeout(()=>{c()},A)}catch(h){v(h)}}c()})}var Zd=_=>typeof _=="object"&&Promise.resolve(_)===_;async function ar(_){let g=!1,D=_&&_.updateComplete;return Zd(D)&&(await D,g=!0),D=_&&_.componentOnReady?_.componentOnReady():!1,Zd(D)&&(await D,g=!0),g||await Ka(),window.ShadyDOM&&typeof window.ShadyDOM.flush=="function"&&window.ShadyDOM.flush(),_}var Ya=[];function qr(){Ya&&Ya.forEach(_=>{document.body.removeChild(_)}),Ya.length=0}var ub=Ia(e1(),1),cb=Ia(n1(),1);var{I:fy}=Kd;var lb=Object.freeze({ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_FRAGMENT_NODE:11});try{"afterEach"in window&&afterEach(()=>{qr()}),"teardown"in window&&teardown(()=>{qr()})}catch{}var s1=class{constructor(g){this.element=g}elementUpdated(){return ar(this.element)}get(g){return this.find(g)}find(g){return this.element.shadowRoot.querySelector(g)}findAll(g){return[...this.element.shadowRoot.querySelectorAll(g)]}async shouldBeHidden(g){await _n(()=>this.matches(g,D=>getComputedStyle(D).display==="none"),"Element should be hidden")}async shouldBeVisible(g){await _n(()=>this.matches(g,D=>getComputedStyle(D).display!="none"),"Element should be visible")}async shouldNotBeEmpty(g){await _n(()=>this.matches(g,D=>{var A;return((A=D.textContent)!==null&&A!==void 0?A:"").trim()!==""}),`Element <${g??this.element.constructor.name}> should have had text`)}async shouldHaveTextIgnoringWhiteSpaces(g,D){await _n(()=>this.matches(g,A=>{var b;return this.removeWhiteSpaces((b=A.textContent)!==null&&b!==void 0?b:"")===this.removeWhiteSpaces(D)}),`Element <${g??this.element.constructor.name}> should have had text "${D}"`)}matches(g,D){let A=this.getTarget(g);return!!A&&D(A)}getTarget(g){return g?this.find(g):this.element}removeWhiteSpaces(g){return g.trim().replace(/\s+/g,"-")}};})();
36
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),jd=/'/g,Bd=/"/g,Hd=/^(?:script|style|textarea|title)$/i,zd=_=>(g,...D)=>({_$litType$:_,strings:g,values:D}),Ud=zd(1),Wd=zd(2),Ir=Symbol.for("lit-noChange"),pt=Symbol.for("lit-nothing"),qd=new WeakMap,tr=rr.createTreeWalker(rr,129,null,!1),Gd=(_,g)=>{let D=_.length-1,A=[],b,T=g===2?"<svg>":"",F=Pr;for(let M=0;M<D;M++){let c=_[M],h,p,m=-1,E=0;for(;E<c.length&&(F.lastIndex=E,p=F.exec(c),p!==null);)E=F.lastIndex,F===Pr?p[1]==="!--"?F=Md:p[1]!==void 0?F=Id:p[2]!==void 0?(Hd.test(p[2])&&(b=RegExp("</"+p[2],"g")),F=Sn):p[3]!==void 0&&(F=Sn):F===Sn?p[0]===">"?(F=b??Pr,m=-1):p[1]===void 0?m=-2:(m=F.lastIndex-p[2].length,h=p[1],F=p[3]===void 0?Sn:p[3]==='"'?Bd:jd):F===Bd||F===jd?F=Sn:F===Md||F===Id?F=Pr:(F=Sn,b=void 0);let I=F===Sn&&_[M+1].startsWith("/>")?" ":"";T+=F===Pr?c+rb:m>=0?(A.push(h),c.slice(0,m)+La+c.slice(m)+nn+I):c+nn+(m===-2?(A.push(void 0),M):I)}let v=T+(_[D]||"<?>")+(g===2?"</svg>":"");if(!Array.isArray(_)||!_.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Pd!==void 0?Pd.createHTML(v):v,A]},jr=class _{constructor({strings:g,_$litType$:D},A){let b;this.parts=[];let T=0,F=0,v=g.length-1,M=this.parts,[c,h]=Gd(g,D);if(this.el=_.createElement(c,A),tr.currentNode=this.el.content,D===2){let p=this.el.content,m=p.firstChild;m.remove(),p.append(...m.childNodes)}for(;(b=tr.nextNode())!==null&&M.length<v;){if(b.nodeType===1){if(b.hasAttributes()){let p=[];for(let m of b.getAttributeNames())if(m.endsWith(La)||m.startsWith(nn)){let E=h[F++];if(p.push(m),E!==void 0){let I=b.getAttribute(E.toLowerCase()+La).split(nn),j=/([.?@])?(.*)/.exec(E);M.push({type:1,index:T,name:j[2],strings:I,ctor:j[1]==="."?za:j[1]==="?"?Ua:j[1]==="@"?Wa:On})}else M.push({type:6,index:T})}for(let m of p)b.removeAttribute(m)}if(Hd.test(b.tagName)){let p=b.textContent.split(nn),m=p.length-1;if(m>0){b.textContent=nr?nr.emptyScript:"";for(let E=0;E<m;E++)b.append(p[E],Va()),tr.nextNode(),M.push({type:2,index:++T});b.append(p[m],Va())}}}else if(b.nodeType===8)if(b.data===ys)M.push({type:2,index:T});else{let p=-1;for(;(p=b.data.indexOf(nn,p+1))!==-1;)M.push({type:7,index:T}),p+=nn.length-1}T++}}static createElement(g,D){let A=rr.createElement("template");return A.innerHTML=g,A}};function Rn(_,g,D=_,A){var b,T,F,v;if(g===Ir)return g;let M=A!==void 0?(b=D._$Co)===null||b===void 0?void 0:b[A]:D._$Cl,c=Mr(g)?void 0:g._$litDirective$;return M?.constructor!==c&&((T=M?._$AO)===null||T===void 0||T.call(M,!1),c===void 0?M=void 0:(M=new c(_),M._$AT(_,D,A)),A!==void 0?((F=(v=D)._$Co)!==null&&F!==void 0?F:v._$Co=[])[A]=M:D._$Cl=M),M!==void 0&&(g=Rn(_,M._$AS(_,g.values),M,A)),g}var Ha=class{constructor(g,D){this._$AV=[],this._$AN=void 0,this._$AD=g,this._$AM=D}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(g){var D;let{el:{content:A},parts:b}=this._$AD,T=((D=g?.creationScope)!==null&&D!==void 0?D:rr).importNode(A,!0);tr.currentNode=T;let F=tr.nextNode(),v=0,M=0,c=b[0];for(;c!==void 0;){if(v===c.index){let h;c.type===2?h=new Br(F,F.nextSibling,this,g):c.type===1?h=new c.ctor(F,c.name,c.strings,this,g):c.type===6&&(h=new Ga(F,this,g)),this._$AV.push(h),c=b[++M]}v!==c?.index&&(F=tr.nextNode(),v++)}return T}v(g){let D=0;for(let A of this._$AV)A!==void 0&&(A.strings!==void 0?(A._$AI(g,A,D),D+=A.strings.length-2):A._$AI(g[D])),D++}},Br=class _{constructor(g,D,A,b){var T;this.type=2,this._$AH=pt,this._$AN=void 0,this._$AA=g,this._$AB=D,this._$AM=A,this.options=b,this._$Cp=(T=b?.isConnected)===null||T===void 0||T}get _$AU(){var g,D;return(D=(g=this._$AM)===null||g===void 0?void 0:g._$AU)!==null&&D!==void 0?D:this._$Cp}get parentNode(){let g=this._$AA.parentNode,D=this._$AM;return D!==void 0&&g?.nodeType===11&&(g=D.parentNode),g}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(g,D=this){g=Rn(this,g,D),Mr(g)?g===pt||g==null||g===""?(this._$AH!==pt&&this._$AR(),this._$AH=pt):g!==this._$AH&&g!==Ir&&this._(g):g._$litType$!==void 0?this.g(g):g.nodeType!==void 0?this.$(g):Vd(g)?this.T(g):this._(g)}k(g){return this._$AA.parentNode.insertBefore(g,this._$AB)}$(g){this._$AH!==g&&(this._$AR(),this._$AH=this.k(g))}_(g){this._$AH!==pt&&Mr(this._$AH)?this._$AA.nextSibling.data=g:this.$(rr.createTextNode(g)),this._$AH=g}g(g){var D;let{values:A,_$litType$:b}=g,T=typeof b=="number"?this._$AC(g):(b.el===void 0&&(b.el=jr.createElement(b.h,this.options)),b);if(((D=this._$AH)===null||D===void 0?void 0:D._$AD)===T)this._$AH.v(A);else{let F=new Ha(T,this),v=F.u(this.options);F.v(A),this.$(v),this._$AH=F}}_$AC(g){let D=qd.get(g.strings);return D===void 0&&qd.set(g.strings,D=new jr(g)),D}T(g){Ld(this._$AH)||(this._$AH=[],this._$AR());let D=this._$AH,A,b=0;for(let T of g)b===D.length?D.push(A=new _(this.k(Va()),this.k(Va()),this,this.options)):A=D[b],A._$AI(T),b++;b<D.length&&(this._$AR(A&&A._$AB.nextSibling,b),D.length=b)}_$AR(g=this._$AA.nextSibling,D){var A;for((A=this._$AP)===null||A===void 0||A.call(this,!1,!0,D);g&&g!==this._$AB;){let b=g.nextSibling;g.remove(),g=b}}setConnected(g){var D;this._$AM===void 0&&(this._$Cp=g,(D=this._$AP)===null||D===void 0||D.call(this,g))}},On=class{constructor(g,D,A,b,T){this.type=1,this._$AH=pt,this._$AN=void 0,this.element=g,this.name=D,this._$AM=b,this.options=T,A.length>2||A[0]!==""||A[1]!==""?(this._$AH=Array(A.length-1).fill(new String),this.strings=A):this._$AH=pt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(g,D=this,A,b){let T=this.strings,F=!1;if(T===void 0)g=Rn(this,g,D,0),F=!Mr(g)||g!==this._$AH&&g!==Ir,F&&(this._$AH=g);else{let v=g,M,c;for(g=T[0],M=0;M<T.length-1;M++)c=Rn(this,v[A+M],D,M),c===Ir&&(c=this._$AH[M]),F||(F=!Mr(c)||c!==this._$AH[M]),c===pt?g=pt:g!==pt&&(g+=(c??"")+T[M+1]),this._$AH[M]=c}F&&!b&&this.j(g)}j(g){g===pt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,g??"")}},za=class extends On{constructor(){super(...arguments),this.type=3}j(g){this.element[this.name]=g===pt?void 0:g}},ab=nr?nr.emptyScript:"",Ua=class extends On{constructor(){super(...arguments),this.type=4}j(g){g&&g!==pt?this.element.setAttribute(this.name,ab):this.element.removeAttribute(this.name)}},Wa=class extends On{constructor(g,D,A,b,T){super(g,D,A,b,T),this.type=5}_$AI(g,D=this){var A;if((g=(A=Rn(this,g,D,0))!==null&&A!==void 0?A:pt)===Ir)return;let b=this._$AH,T=g===pt&&b!==pt||g.capture!==b.capture||g.once!==b.once||g.passive!==b.passive,F=g!==pt&&(b===pt||T);T&&this.element.removeEventListener(this.name,this,b),F&&this.element.addEventListener(this.name,this,g),this._$AH=g}handleEvent(g){var D,A;typeof this._$AH=="function"?this._$AH.call((A=(D=this.options)===null||D===void 0?void 0:D.host)!==null&&A!==void 0?A:this.element,g):this._$AH.handleEvent(g)}},Ga=class{constructor(g,D,A){this.element=g,this.type=6,this._$AN=void 0,this._$AM=D,this.options=A}get _$AU(){return this._$AM._$AU}_$AI(g){Rn(this,g)}},Kd={O:La,P:nn,A:ys,C:1,M:Gd,L:Ha,D:Vd,R:Rn,I:Br,V:On,H:Ua,N:Wa,U:za,F:Ga},$d=$a.litHtmlPolyfillSupport;$d?.(jr,Br),((gs=$a.litHtmlVersions)!==null&&gs!==void 0?gs:$a.litHtmlVersions=[]).push("2.7.3");var ob=Symbol.for(""),ib=_=>{if(_?.r===ob)return _?._$litStatic$};var Yd=new Map,Jd=_=>(g,...D)=>{let A=D.length,b,T,F=[],v=[],M,c=0,h=!1;for(;c<A;){for(M=g[c];c<A&&(T=D[c],(b=ib(T))!==void 0);)M+=b+g[++c],h=!0;c!==A&&v.push(T),F.push(M),c++}if(c===A&&F.push(g[A]),h){let p=F.join("$$lit$$");(g=Yd.get(p))===void 0&&(F.raw=F,Yd.set(p,g=F)),D=v}return _(g,...D)},Xd=Jd(Ud),ey=Jd(Wd);function Ka(){return new Promise(_=>{requestAnimationFrame(()=>_())})}function _n(_,g,D={}){let{interval:A=50,timeout:b=1e3}=D,{stack:T}=new Error;return new Promise((F,v)=>{let M;setTimeout(()=>{clearTimeout(M);let h=new Error(g?`Timeout: ${g}`:`waitUntil timed out after ${b}ms`);h.stack=T,v(h)},b);async function c(){try{await _()?F():M=setTimeout(()=>{c()},A)}catch(h){v(h)}}c()})}var Zd=_=>typeof _=="object"&&Promise.resolve(_)===_;async function ar(_){let g=!1,D=_&&_.updateComplete;return Zd(D)&&(await D,g=!0),D=_&&_.componentOnReady?_.componentOnReady():!1,Zd(D)&&(await D,g=!0),g||await Ka(),window.ShadyDOM&&typeof window.ShadyDOM.flush=="function"&&window.ShadyDOM.flush(),_}var Ya=[];function qr(){Ya&&Ya.forEach(_=>{document.body.removeChild(_)}),Ya.length=0}var ub=Ia(e1(),1),cb=Ia(n1(),1);var{I:fy}=Kd;var lb=Object.freeze({ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_FRAGMENT_NODE:11});try{"afterEach"in window&&afterEach(()=>{qr()}),"teardown"in window&&teardown(()=>{qr()})}catch{}var s1=class{constructor(g){this.element=g}elementUpdated(){return ar(this.element)}get(g){return this.find(g)}find(g){return this.element.shadowRoot.querySelector(g)}findAll(g){return[...this.element.shadowRoot.querySelectorAll(g)]}async shouldBeHidden(g){await _n(()=>this.matches(g,D=>getComputedStyle(D).display==="none"),"Element should be hidden")}async shouldBeVisible(g){await _n(()=>this.matches(g,D=>getComputedStyle(D).display!="none"),"Element should be visible")}async shouldNotBeEmpty(g){await _n(()=>this.matches(g,D=>{var A;return((A=D.textContent)!==null&&A!==void 0?A:"").trim()!==""}),`Element <${g??this.element.constructor.name}> should have had text`)}async shouldHaveTextIgnoringWhiteSpaces(g,D){await _n(()=>this.matches(g,A=>{var b;return this.removeWhiteSpaces((b=A.textContent)!==null&&b!==void 0?b:"")===this.removeWhiteSpaces(D)}),`Element <${g??this.element.constructor.name}> should have had text "${D}" but was "${this.getTarget(g).textContent}"`)}matches(g,D){let A=this.getTarget(g);return!!A&&D(A)}getTarget(g){return g?this.find(g):this.element}removeWhiteSpaces(g){return g.trim().replace(/\s+/g,"-")}};})();
37
37
  /*! Bundled license information:
38
38
 
39
39
  axe-core/axe.min.js:
@@ -33,7 +33,7 @@ ${A()} ${he(q,Y[fe])}`;le+=`
33
33
  ${A()}`}return le}function Ye(q){c+=`${A()}<${j(q)}${Le(q)}>
34
34
  `}function J(q,le){if(!(j(q)==="diff-container"||g.includes(j(q)))&&!b.has(q))if(b.add(q),q instanceof Text)I(q,le);else if(q instanceof Element)Ye(q);else throw new Error(`Unknown node type: ${q}`)}function $(q){j(q)==="diff-container"||bb.includes(j(q))||(c+=`${A()}</${j(q)}>
35
35
  `)}function W(q){g.includes(j(q))||q instanceof Element&&$(q)}let ie;if(typeof N=="string")ie=document.createElement("diff-container"),ie.innerHTML=N,m=-1;else if(N instanceof Node)ie=N,m=0;else throw new Error(`Cannot create diffable HTML from: ${N}`);let Q=document.createTreeWalker(ie,NodeFilter.SHOW_TEXT+NodeFilter.SHOW_ELEMENT,null,!1);for(;Q.currentNode;){let q=Q.currentNode;if(J(q,Q),U(q)&&Q.firstChild())m+=1;else if(W(q),!Q.nextSibling()){m-=1;let Y=Q.parentNode();if(!Y)break;f.add(Y)}}return c}function Vd(N){return N&&N!==null&&typeof N=="object"&&("ignoreAttributes"in N||"ignoreTags"in N||"ignoreChildren"in N||"stripEmptyAttributes"in N)}var vb="wtr-session-id",Hd=new URL(window.location.href).searchParams.get(vb);function vs(N){return N!=null&&typeof N=="object"}async function ws(N,p,y){if(typeof Hd!="string")throw new Error("Unable to execute server commands in a browser not controlled by the test runner. Use the debug option from the watch menu to debug in a controlled browser.");let D;try{({sendMessageWaitForResponse:D}=await import("/__web-dev-server__web-socket.js"))}catch{throw new Error("Could not setup web socket connection. Are you executing this test through Web Test Runner?")}try{let g=await D({type:"wtr-command",sessionId:Hd,command:N,payload:p});if(!g.executed){let F;throw y?F=`Unknown command ${N}. Add the ${y} to your config.`:F=`Unknown command ${N}. Did you install a plugin to handle this command?`,new Error(F)}return g.result}catch(g){throw new Error(`Error while executing command ${N}${p?` with payload ${JSON.stringify(p)}`:""}: ${g.message}`)}}var ys,za;async function zd(){return ys||(ys=await ws("get-snapshot-config",void 0,"snapshotPlugin from @web/test-runner-commands")),ys}var wb=/snapshots\[[^\]]+] = (\n)?(?<content>`[^`]*`)/gm,Db=N=>([...N.matchAll(wb)].forEach(({groups:{content:p}})=>{N=N.replaceAll(p,encodeURIComponent(p))}),N);async function Ud({cache:N=!0}={}){if(N&&za)return za;let p=await ws("get-snapshots",void 0,"snapshotPlugin from @web/test-runner-commands");if(typeof p?.content!="string")throw new Error("Expected a result as string");let D=await import(`data:text/javascript;charset=utf-8,${`${Db(p.content)}/* ${Math.random()} */`}`);if(!D||!vs(D.snapshots))throw new Error("Expected snapshot result to be a module that exports an object.");return za=D.snapshots,za}async function Wd(N){if(!vs(N))throw new Error("You must provide a payload object");if(typeof N.name!="string")throw new Error("You must provide a snapshot name");return(await Ud(N))[N.name]}async function Gd(N){if(!vs(N))throw new Error("You must provide a payload object");if(typeof N.name!="string")throw new Error("You must provide a snapshot name");if(N.content!==void 0&&typeof N.content!="string")throw new Error("You must provide a snapshot content");let p=await Ud();return p[N.name]=N.content,ws("save-snapshot",N,"snapshotPlugin from @web/test-runner-commands")}var Kd=N=>{if(window.ShadyCSS&&window.ShadyCSS.nativeShadow===!1){let p=N.tagName.toLowerCase(),y=" ";return Array.prototype.slice.call(N.attributes).forEach(D=>{y+=`${D.name}="${D.value}" `}),y=y.slice(0,-1),`<${p}${y}>${N.innerHTML}</${p}>`}return N.outerHTML},Yd=N=>{if(window.ShadyCSS&&window.ShadyCSS.nativeShadow===!1){let p=N.tagName.toLowerCase(),y=new RegExp(p,"g"),D=N.shadowRoot.innerHTML;return D=D.replace(/style-scope/g,""),D=D.replace(y,""),D=D.replace(/(class=".*?)(\s)*"/g,'$1"'),D=D.replace(/ class="\w?"/g,""),D}return N.shadowRoot.innerHTML};function Ds(N){let p=[],y;for(N.type==="hook"?y=N.ctx.currentTest:y=N;y&&y.parent;)y.title&&p.push(y.title),y=y.parent;return p.reverse()}function xs(...N){switch(N.length){case 2:{let[p,y]=N;return{message:p,options:y}}case 1:{let[p]=N;return Vd(p)?{options:p}:{message:p}}default:return{}}}var Es=(N,p)=>{N.Assertion.addProperty("lightDom",function(){new N.Assertion(this._obj.nodeType).to.equal(1),p.flag(this,"lightDom",!0)}),N.Assertion.addProperty("shadowDom",function(){new N.Assertion(this._obj.nodeType).to.equal(1),p.flag(this,"shadowDom",!0)}),N.Assertion.addProperty("dom",function(){new N.Assertion(this._obj.nodeType).to.equal(1),p.flag(this,"dom",!0)});let y=f=>Kd(f),D=f=>f.innerHTML,g=f=>Yd(f),F=(f,b,A,...I)=>{let{message:j,options:U}=xs(...I),Z=new N.Assertion(Rn(f,U),j),ae=Rn(b,U);A?Z.not.equal(ae,j):Z.equal(ae,j)},C=f=>function(A,...I){if(p.flag(this,"lightDom")||p.flag(this,"shadowDom")||p.flag(this,"dom")){let j;p.flag(this,"lightDom")?j=D(this._obj):p.flag(this,"shadowDom")?j=g(this._obj):j=y(this._obj),F(j,A,p.flag(this,"negate"),I[0])}else f.apply(this,[A,...I])};N.Assertion.overwriteMethod("equals",C),N.Assertion.overwriteMethod("equal",C),N.Assertion.overwriteMethod("eq",C);function w(f,b,...A){let I=window.__mocha_context__,j=window.__snapshot__,{message:U,options:Z}=xs(...A),{index:ae}=I;I.index+=1;let he=Ds(I.runnable),we=Rn(f,Z);if(j.update)j.set(he,ae,we,"html");else{let Be=j.get(he,ae);if(!Be)j.set(he,ae,we,"html");else{let Le=j.match(we,Rn(Be.code,Z));if(Le&&b||!Le&&!b)throw new N.AssertionError(U||`Received value does not match stored snapshot ${ae}`,{actual:we,expected:Be.code,showDiff:!0},N.util.flag(this,"ssfi"))}}}async function M(f,b,...A){let{message:I,options:j}=xs(...A),Z=Ds(window.__WTR_MOCHA_RUNNER__.test).join(" "),ae=Rn(f,j),he=await Wd({name:Z}),we=await zd();if(he&&!we.updateSnapshots){if(b?he===ae:he!==ae)throw new N.AssertionError(I||`Snapshot ${Z} does not match the saved snapshot on disk`,{actual:ae,expected:he,showDiff:!0},N.util.flag(this,"ssfi"))}else he!==ae&&await Gd({name:Z,content:ae})}function c(f,b,...A){if(window.__mocha_context__&&window.__snapshot__)return w.call(this,f,b,...A);if(window.__WTR_MOCHA_RUNNER__)return M.call(this,f,b,...A);throw new Error("Could not detect test runner environment. Snapshots require either Web Test Runner with mocha, or Karma with mocha and karma mocha snapshot")}function m(f){let b=N.util.flag(this,"object"),A;return p.flag(this,"shadowDom")?A=g(b):p.flag(this,"lightDom")?A=D(b):A=b,c.call(this,A,p.flag(this,"negate"),f)}p.addMethod(N.Assertion.prototype,"equalSnapshot",m),p.addMethod(N.Assertion.prototype,"notEqualSnapshot",m),p.addMethod(N.assert,"equalSnapshot",c),p.addMethod(N.assert,"notEqualSnapshot",c),N.assert.dom={equal(f,b,...A){return F.call(this,y(f),b,!1,...A)},notEqual(f,b,...A){return F.call(this,y(f),b,!0,...A)},equalSnapshot(f,...b){return c.call(this,f,!1,...b)},notEqualSnapshot(f,...b){return c.call(this,f,!0,...b)}},N.assert.lightDom={equal(f,b,...A){return F.call(this,D(f),b,!1,...A)},notEqual(f,b,...A){return F.call(this,D(f),b,!0,...A)},equalSnapshot(f,...b){return c.call(this,D(f),!1,...b)},notEqualSnapshot(f,...b){return c.call(this,D(f),!0,...b)}},N.assert.shadowDom={equal(f,b,...A){return F.call(this,g(f),b,!1,...A)},notEqual(f,b,...A){return F.call(this,g(f),b,!0,...A)},equalSnapshot(f,...b){return c.call(this,g(f),!1,...b)},notEqualSnapshot(f,...b){return c.call(this,g(f),!0,...b)}}};var ar;async function Xd(){if(window.axe){ar=window.axe;return}if(typeof bs=="function"){ar=As();return}if(await Promise.resolve().then(()=>qd(As(),1)),!window.axe)throw new Error("Error importing axe-core/axe.min.js, are you using a bundler or build tool that doesnt handle es modules?");ar=window.axe}function xb(N){if(!N||!N.length)return;let p={};return N.forEach(y=>{p[y]={enabled:!1}}),p}async function Eb(N,p){return ar||await Xd(),new Promise((y,D)=>{ar.run(N,p,(g,F)=>{g?D(new Error(g)):y(F)})})}function Ab(N,p,y){let{violations:D}=p;if(D.length&&N){y();return}if(!D.length&&!N){y();return}let g=[];D.length&&(g[g.length]="Accessibility Violations",g[g.length]="---",D.forEach(C=>{g[g.length]=`Rule: ${C.id}`,g[g.length]=`Impact: ${C.impact}`,g[g.length]=`${C.help} (${C.helpUrl})`,C.nodes.forEach(w=>{g[g.length]="",w.target&&(g[g.length]=`Issue target: ${w.target}`),g[g.length]=`Context: ${w.html}`,w.failureSummary&&(g[g.length]=`${w.failureSummary}`)}),g[g.length]="---"}));let F=new Error(g.join(`
36
- `));throw y(F),F}var Cs=(N,p)=>{let{assert:y}=N;p.addMethod(N.Assertion.prototype,"accessible",function(g){let F=this._obj,C=g||{},w=xb(C.ignoredRules),M={resultTypes:["violations"]};w&&(M.rules=w);let c=C.done?C.done:void 0;c||(c=()=>{}),C.ignoredTags&&F.parentNode.querySelectorAll(C.ignoredTags.toString()).forEach(b=>b.setAttribute("aria-hidden",!0));let m=Eb(F,M).then(f=>Ab(p.flag(this,"negate"),f,c));return this.then=m.then.bind(m),this}),y.isAccessible=function(g,F){return new N.Assertion(g).to.be.accessible(F)},y.isNotAccessible=function(g,F){return new N.Assertion(g).not.to.be.accessible(F)}};function Cb(N){var p={exports:{}};return N(p,p.exports),p.exports}function Fb(N){throw new Error('Could not dynamically require "'+N+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Tb=Cb(function(N,p){(function(y){typeof Fb=="function"?N.exports=y:chai.use(y)})(function(y,D){var g=D.flag,F=function(c){var m;return M(c)?c.length===0?"empty NodeList":(m=Array.prototype.slice.call(c,0,5).map(F).join(", "),c.length>5?m+"... (+"+(c.length-5)+" more)":m):w(c)?(m=c.tagName.toLowerCase(),c.id&&(m+="#"+c.id),c.className&&(m+="."+String(c.className).replace(/\s+/g,".")),Array.prototype.forEach.call(c.attributes,function(f){f.name!=="class"&&f.name!=="id"&&(m+="["+f.name+(f.value?'="'+f.value+'"]':"]"))}),m):String(c)},C=function(c,m){var f=g(this,"object"),b=f.getAttribute(c);(!g(this,"negate")||m===void 0)&&this.assert(!!f.attributes[c],"expected "+F(f)+" to have an attribute #{exp}","expected "+F(f)+" not to have an attribute #{exp}",c),m!==void 0&&this.assert(m===b,"expected "+F(f)+" to have an attribute "+D.inspect(c)+" with the value #{exp}, but the value was #{act}","expected "+F(f)+" not to have an attribute "+D.inspect(c)+" with the value #{act}",m,b),g(this,"object",b)},w=function(c){return c.nodeType===1},M=function(c){return Object.prototype.toString.call(c)==="[object NodeList]"};D.elToString=F,y.Assertion.addMethod("attr",C),y.Assertion.addMethod("attribute",C),y.Assertion.addMethod("class",function(c){var m=g(this,"object");this.assert(m.classList.contains(c),"expected "+F(m)+" to have class #{exp}","expected "+F(m)+" not to have class #{exp}",c)}),y.Assertion.addMethod("id",function(c){var m=g(this,"object");this.assert(m.id==c,"expected "+F(m)+" to have id #{exp}","expected "+F(m)+" not to have id #{exp}",c)}),y.Assertion.addMethod("html",function(c){var m=g(this,"object"),f=g(this,"object").innerHTML;g(this,"contains")?this.assert(f.indexOf(c)>=0,"expected #{act} to contain HTML #{exp}","expected #{act} not to contain HTML #{exp}",c,f):this.assert(f===c,"expected "+F(m)+" to have HTML #{exp}, but the HTML was #{act}","expected "+F(m)+" not to have HTML #{exp}",c,f)}),y.Assertion.addChainableMethod("trimmed",null,function(){g(this,"trim-text",!0)}),y.Assertion.addProperty("rendered",function(){g(this,"rendered-text",!0)}),y.Assertion.addMethod("text",function(c){var m=g(this,"object"),f=g(this,"contains"),b=g(this,"trim-text"),A,I,j=g(this,"rendered-text")?"innerText":"textContent";M(m)?(A=Array.prototype.map.call(m,function(ae){return b?ae[j].trim():ae[j]}),Array.isArray(c)?(I=f?c[g(this,"negate")?"some":"every"](function(ae){return Array.prototype.some.call(m,function(he){return(b?he[j].trim():he[j])===ae})}):D.eql(A,c),A=A.join(),c=c.join()):(A=A.join(""),I=f?A.indexOf(c)>=0:A===c)):(A=b?m[j].trim():m[j],I=f?A.indexOf(c)>=0:A===c);var U=F(m),Z="";b&&(Z+="trimmed "),g(this,"rendered-text")&&(Z+="rendered "),Z+="text",f?this.assert(I,"expected "+U+" to contain #{exp}, but the "+Z+" was #{act}","expected "+U+" not to contain #{exp}, but the "+Z+" was #{act}",c,A):this.assert(I,"expected "+U+" to have "+Z+" #{exp}, but the "+Z+" was #{act}","expected "+U+" not to have "+Z+" #{exp}",c,A)}),y.Assertion.addMethod("value",function(c){var m=g(this,"object"),f=g(this,"object").value;this.assert(g(this,"object").value===c,"expected "+F(m)+" to have value #{exp}, but the value was #{act}","expected "+F(m)+" not to have value #{exp}",c,f)}),y.Assertion.overwriteProperty("exist",function(c){return function(){var m=g(this,"object");M(m)?this.assert(m.length>0,"expected an empty NodeList to have nodes","expected "+F(m)+" to not exist"):c.apply(this,arguments)}}),y.Assertion.overwriteProperty("empty",function(c){return function(){var m=g(this,"object");w(m)?this.assert(m.children.length===0,"expected "+F(m)+" to be empty","expected "+F(m)+" to not be empty"):M(m)?this.assert(m.length===0,"expected "+F(m)+" to be empty","expected "+F(m)+" to not be empty"):c.apply(this,arguments)}}),y.Assertion.overwriteChainableMethod("length",function(c){return function(m){var f=g(this,"object");if(M(f)||w(f)){var b=f.children?f.children.length:f.length;this.assert(b===m,"expected "+F(f)+" to have #{exp} children but it had #{act} children","expected "+F(f)+" to not have #{exp} children",m,b)}else c.apply(this,arguments)}},function(c){return function(){c.call(this)}}),y.Assertion.overwriteMethod("match",function(c){return function(m){var f=g(this,"object");w(f)?this.assert(f.matches(m),"expected "+F(f)+" to match #{exp}","expected "+F(f)+" to not match #{exp}",m):M(f)?this.assert(!!f.length&&Array.prototype.every.call(f,function(b){return b.matches(m)}),"expected "+F(f)+" to match #{exp}","expected "+F(f)+" to not match #{exp}",m):c.apply(this,arguments)}}),y.Assertion.overwriteChainableMethod("contain",function(c){return function(m){var f=g(this,"object");w(f)?typeof m=="string"?this.assert(!!f.querySelector(m),"expected "+F(f)+" to contain #{exp}","expected "+F(f)+" to not contain #{exp}",m):this.assert(f.contains(m),"expected "+F(f)+" to contain "+F(m),"expected "+F(f)+" to not contain "+F(m)):c.apply(this,arguments)}},function(c){return function(){c.call(this)}}),y.Assertion.addMethod("descendant",function(c){var m=g(this,"object"),f=c;typeof c=="string"?(f=m.querySelector(c),this.assert(!!f,"expected "+F(m)+" to have descendant #{exp}","expected "+F(m)+" to not have descendant #{exp}",c)):this.assert(m.contains(c),"expected "+F(m)+" to contain "+F(c),"expected "+F(m)+" to not contain "+F(c)),g(this,"object",f)}),y.Assertion.addMethod("descendants",function(c){var m=g(this,"object"),f=m.querySelectorAll(c);this.assert(!!f.length,"expected "+F(m)+" to have descendants #{exp}","expected "+F(m)+" to not have descendants #{exp}",c),g(this,"object",f)}),y.Assertion.addProperty("displayed",function(){var c=g(this,"object"),m=document.body.contains(c)?window.getComputedStyle(c).display:c.style.display;this.assert(m!=="none","expected "+F(c)+" to be displayed, but it was not","expected "+F(c)+" to not be displayed, but it was as "+m,m)}),y.Assertion.addProperty("visible",function(){var c=g(this,"object"),m=document.body.contains(c)?window.getComputedStyle(c).visibility:c.style.visibility;this.assert(m!=="hidden"&&m!=="collapse","expected "+F(c)+" to be visible, but it was "+(m==="hidden"?"hidden":"collapsed"),"expected "+F(c)+" to not be visible, but it was",m)}),y.Assertion.addMethod("tagName",function(c){var m=g(this,"object"),f=m.tagName;this.assert(f.toUpperCase()===c.toUpperCase(),"expected "+F(m)+" to have tagName "+c+", but it was "+f,"expected "+F(m)+" to not have tagName "+c+", but it was "+f,f)}),y.Assertion.addMethod("style",function(c,m){var f=g(this,"object"),b=window.getComputedStyle(f),A=b[c];this.assert(A===m,"expected "+F(f)+" to have style property "+c+" equal to "+m+", but it was equal to "+A,"expected "+F(f)+" to not have style property "+c+" equal to "+m+", but it was equal to "+A,A)})})}),Zd=Tb;function kb(N){var p={exports:{}};return N(p,p.exports),p.exports}function Nb(N){throw new Error('Could not dynamically require "'+N+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Sb=kb(function(N,p){(function(y){typeof Nb=="function"?N.exports=y:chai.use(y)})(function(y,D){var g=Array.prototype.slice;function F(U){return typeof U=="function"&&typeof U.getCall=="function"&&typeof U.calledWithExactly=="function"}function C(U){switch(U){case 1:return"once";case 2:return"twice";case 3:return"thrice";default:return(U||0)+" times"}}function w(U){return U&&F(U.proxy)}function M(U){if(!F(U._obj)&&!w(U._obj))throw new TypeError(D.inspect(U._obj)+" is not a spy or a call to a spy!")}function c(U,Z,ae,he,we){var Be=he?"always have ":"have ";ae=ae||"",F(U.proxy)&&(U=U.proxy);function Le(Ye){return U.printf.apply(U,Ye)}return{affirmative:function(){return Le(["expected %n to "+Be+Z+ae].concat(we))},negative:function(){return Le(["expected %n to not "+Be+Z].concat(we))}}}function m(U,Z,ae){D.addProperty(y.Assertion.prototype,U,function(){M(this);var he=c(this._obj,Z,ae,!1);this.assert(this._obj[U],he.affirmative,he.negative)})}function f(U,Z,ae){D.addMethod(y.Assertion.prototype,U,function(he){M(this);var we=c(this._obj,Z,ae,!1,[C(he)]);this.assert(this._obj[U]===he,we.affirmative,we.negative)})}function b(U,Z,ae){return function(){M(this);var he="always"+U[0].toUpperCase()+U.substring(1),we=D.flag(this,"always")&&typeof this._obj[he]=="function",Be=we?he:U,Le=c(this._obj,Z,ae,we,g.call(arguments));this.assert(this._obj[Be].apply(this._obj,arguments),Le.affirmative,Le.negative)}}function A(U,Z,ae){var he=b(U,Z,ae);D.addProperty(y.Assertion.prototype,U,he)}function I(U,Z,ae,he){var we=b(Z,ae,he);D.addMethod(y.Assertion.prototype,U,we)}function j(U,Z,ae){I(U,U,Z,ae)}D.addProperty(y.Assertion.prototype,"always",function(){D.flag(this,"always",!0)}),m("called","been called"," at least once, but it was never called"),f("callCount","been called exactly %1",", but it was called %c%C"),m("calledOnce","been called exactly once",", but it was called %c%C"),m("calledTwice","been called exactly twice",", but it was called %c%C"),m("calledThrice","been called exactly thrice",", but it was called %c%C"),A("calledWithNew","been called with new"),j("calledBefore","been called before %1"),j("calledAfter","been called after %1"),j("calledImmediatelyBefore","been called immediately before %1"),j("calledImmediatelyAfter","been called immediately after %1"),j("calledOn","been called with %1 as this",", but it was called with %t instead"),j("calledWith","been called with arguments %*","%D"),j("calledOnceWith","been called exactly once with arguments %*","%D"),j("calledWithExactly","been called with exact arguments %*","%D"),j("calledOnceWithExactly","been called exactly once with exact arguments %*","%D"),j("calledWithMatch","been called with arguments matching %*","%D"),j("returned","returned %1"),I("thrown","threw","thrown %1")})}),Qd=Sb;rr.use(Es);rr.use(Cs);rr.use(Zd);rr.use(Qd);mn();var Ob=Symbol.for(""),Pb=N=>{if(N?.r===Ob)return N?._$litStatic$};var h1=new Map,m1=N=>(p,...y)=>{let D=y.length,g,F,C=[],w=[],M,c=0,m=!1;for(;c<D;){for(M=p[c];c<D&&(F=y[c],(g=Pb(F))!==void 0);)M+=g+p[++c],m=!0;c!==D&&w.push(F),C.push(M),c++}if(c===D&&C.push(p[D]),m){let f=C.join("$$lit$$");(p=h1.get(f))===void 0&&(C.raw=C,h1.set(f,p=C)),y=w}return N(p,...y)},g1=m1(Ns),ky=m1(d1);function Za(){return new Promise(N=>{requestAnimationFrame(()=>N())})}function In(N,p,y={}){let{interval:D=50,timeout:g=1e3}=y,{stack:F}=new Error;return new Promise((C,w)=>{let M;setTimeout(()=>{clearTimeout(M);let m=new Error(p?`Timeout: ${p}`:`waitUntil timed out after ${g}ms`);m.stack=F,w(m)},g);async function c(){try{await N()?C():M=setTimeout(()=>{c()},D)}catch(m){w(m)}}c()})}var b1=N=>typeof N=="object"&&Promise.resolve(N)===N;async function ur(N){let p=!1,y=N&&N.updateComplete;return b1(y)&&(await y,p=!0),y=N&&N.componentOnReady?N.componentOnReady():!1,b1(y)&&(await y,p=!0),p||await Za(),window.ShadyDOM&&typeof window.ShadyDOM.flush=="function"&&window.ShadyDOM.flush(),N}var Qa=[];function zr(){Qa&&Qa.forEach(N=>{document.body.removeChild(N)}),Qa.length=0}T1();mn();var k1={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},N1=N=>(...p)=>({_$litDirective$:N,values:p}),io=class{constructor(p){}get _$AU(){return this._$AM._$AU}_$AT(p,y,D){this._$Ct=p,this._$AM=y,this._$Ci=D}_$AS(p,y){return this.update(p,y)}update(p,y){return this.render(...y)}};var Ur=class extends io{constructor(p){if(super(p),this.et=rt,p.type!==k1.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(p){if(p===rt||p==null)return this.ft=void 0,this.et=p;if(p===rn)return p;if(typeof p!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(p===this.et)return this.ft;this.et=p;let y=[p];return y.raw=y,this.ft={_$litType$:this.constructor.resultType,strings:y,values:[]}}};Ur.directiveName="unsafeHTML",Ur.resultType=1;var Ib=N1(Ur);mn();mn();var{I:sv}=f1;var $b=Object.freeze({ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_FRAGMENT_NODE:11});try{"afterEach"in window&&afterEach(()=>{zr()}),"teardown"in window&&teardown(()=>{zr()})}catch{}var P1=class{constructor(p){this.element=p}elementUpdated(){return ur(this.element)}get(p){return this.find(p)}find(p){return this.element.shadowRoot.querySelector(p)}findAll(p){return[...this.element.shadowRoot.querySelectorAll(p)]}async shouldBeHidden(p){await In(()=>this.matches(p,y=>getComputedStyle(y).display==="none"),"Element should be hidden")}async shouldBeVisible(p){await In(()=>this.matches(p,y=>getComputedStyle(y).display!="none"),"Element should be visible")}async shouldNotBeEmpty(p){await In(()=>this.matches(p,y=>{var D;return((D=y.textContent)!==null&&D!==void 0?D:"").trim()!==""}),`Element <${p??this.element.constructor.name}> should have had text`)}async shouldHaveTextIgnoringWhiteSpaces(p,y){await In(()=>this.matches(p,D=>{var g;return this.removeWhiteSpaces((g=D.textContent)!==null&&g!==void 0?g:"")===this.removeWhiteSpaces(y)}),`Element <${p??this.element.constructor.name}> should have had text "${y}"`)}matches(p,y){let D=this.getTarget(p);return!!D&&y(D)}getTarget(p){return p?this.find(p):this.element}removeWhiteSpaces(p){return p.trim().replace(/\s+/g,"-")}};})();
36
+ `));throw y(F),F}var Cs=(N,p)=>{let{assert:y}=N;p.addMethod(N.Assertion.prototype,"accessible",function(g){let F=this._obj,C=g||{},w=xb(C.ignoredRules),M={resultTypes:["violations"]};w&&(M.rules=w);let c=C.done?C.done:void 0;c||(c=()=>{}),C.ignoredTags&&F.parentNode.querySelectorAll(C.ignoredTags.toString()).forEach(b=>b.setAttribute("aria-hidden",!0));let m=Eb(F,M).then(f=>Ab(p.flag(this,"negate"),f,c));return this.then=m.then.bind(m),this}),y.isAccessible=function(g,F){return new N.Assertion(g).to.be.accessible(F)},y.isNotAccessible=function(g,F){return new N.Assertion(g).not.to.be.accessible(F)}};function Cb(N){var p={exports:{}};return N(p,p.exports),p.exports}function Fb(N){throw new Error('Could not dynamically require "'+N+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Tb=Cb(function(N,p){(function(y){typeof Fb=="function"?N.exports=y:chai.use(y)})(function(y,D){var g=D.flag,F=function(c){var m;return M(c)?c.length===0?"empty NodeList":(m=Array.prototype.slice.call(c,0,5).map(F).join(", "),c.length>5?m+"... (+"+(c.length-5)+" more)":m):w(c)?(m=c.tagName.toLowerCase(),c.id&&(m+="#"+c.id),c.className&&(m+="."+String(c.className).replace(/\s+/g,".")),Array.prototype.forEach.call(c.attributes,function(f){f.name!=="class"&&f.name!=="id"&&(m+="["+f.name+(f.value?'="'+f.value+'"]':"]"))}),m):String(c)},C=function(c,m){var f=g(this,"object"),b=f.getAttribute(c);(!g(this,"negate")||m===void 0)&&this.assert(!!f.attributes[c],"expected "+F(f)+" to have an attribute #{exp}","expected "+F(f)+" not to have an attribute #{exp}",c),m!==void 0&&this.assert(m===b,"expected "+F(f)+" to have an attribute "+D.inspect(c)+" with the value #{exp}, but the value was #{act}","expected "+F(f)+" not to have an attribute "+D.inspect(c)+" with the value #{act}",m,b),g(this,"object",b)},w=function(c){return c.nodeType===1},M=function(c){return Object.prototype.toString.call(c)==="[object NodeList]"};D.elToString=F,y.Assertion.addMethod("attr",C),y.Assertion.addMethod("attribute",C),y.Assertion.addMethod("class",function(c){var m=g(this,"object");this.assert(m.classList.contains(c),"expected "+F(m)+" to have class #{exp}","expected "+F(m)+" not to have class #{exp}",c)}),y.Assertion.addMethod("id",function(c){var m=g(this,"object");this.assert(m.id==c,"expected "+F(m)+" to have id #{exp}","expected "+F(m)+" not to have id #{exp}",c)}),y.Assertion.addMethod("html",function(c){var m=g(this,"object"),f=g(this,"object").innerHTML;g(this,"contains")?this.assert(f.indexOf(c)>=0,"expected #{act} to contain HTML #{exp}","expected #{act} not to contain HTML #{exp}",c,f):this.assert(f===c,"expected "+F(m)+" to have HTML #{exp}, but the HTML was #{act}","expected "+F(m)+" not to have HTML #{exp}",c,f)}),y.Assertion.addChainableMethod("trimmed",null,function(){g(this,"trim-text",!0)}),y.Assertion.addProperty("rendered",function(){g(this,"rendered-text",!0)}),y.Assertion.addMethod("text",function(c){var m=g(this,"object"),f=g(this,"contains"),b=g(this,"trim-text"),A,I,j=g(this,"rendered-text")?"innerText":"textContent";M(m)?(A=Array.prototype.map.call(m,function(ae){return b?ae[j].trim():ae[j]}),Array.isArray(c)?(I=f?c[g(this,"negate")?"some":"every"](function(ae){return Array.prototype.some.call(m,function(he){return(b?he[j].trim():he[j])===ae})}):D.eql(A,c),A=A.join(),c=c.join()):(A=A.join(""),I=f?A.indexOf(c)>=0:A===c)):(A=b?m[j].trim():m[j],I=f?A.indexOf(c)>=0:A===c);var U=F(m),Z="";b&&(Z+="trimmed "),g(this,"rendered-text")&&(Z+="rendered "),Z+="text",f?this.assert(I,"expected "+U+" to contain #{exp}, but the "+Z+" was #{act}","expected "+U+" not to contain #{exp}, but the "+Z+" was #{act}",c,A):this.assert(I,"expected "+U+" to have "+Z+" #{exp}, but the "+Z+" was #{act}","expected "+U+" not to have "+Z+" #{exp}",c,A)}),y.Assertion.addMethod("value",function(c){var m=g(this,"object"),f=g(this,"object").value;this.assert(g(this,"object").value===c,"expected "+F(m)+" to have value #{exp}, but the value was #{act}","expected "+F(m)+" not to have value #{exp}",c,f)}),y.Assertion.overwriteProperty("exist",function(c){return function(){var m=g(this,"object");M(m)?this.assert(m.length>0,"expected an empty NodeList to have nodes","expected "+F(m)+" to not exist"):c.apply(this,arguments)}}),y.Assertion.overwriteProperty("empty",function(c){return function(){var m=g(this,"object");w(m)?this.assert(m.children.length===0,"expected "+F(m)+" to be empty","expected "+F(m)+" to not be empty"):M(m)?this.assert(m.length===0,"expected "+F(m)+" to be empty","expected "+F(m)+" to not be empty"):c.apply(this,arguments)}}),y.Assertion.overwriteChainableMethod("length",function(c){return function(m){var f=g(this,"object");if(M(f)||w(f)){var b=f.children?f.children.length:f.length;this.assert(b===m,"expected "+F(f)+" to have #{exp} children but it had #{act} children","expected "+F(f)+" to not have #{exp} children",m,b)}else c.apply(this,arguments)}},function(c){return function(){c.call(this)}}),y.Assertion.overwriteMethod("match",function(c){return function(m){var f=g(this,"object");w(f)?this.assert(f.matches(m),"expected "+F(f)+" to match #{exp}","expected "+F(f)+" to not match #{exp}",m):M(f)?this.assert(!!f.length&&Array.prototype.every.call(f,function(b){return b.matches(m)}),"expected "+F(f)+" to match #{exp}","expected "+F(f)+" to not match #{exp}",m):c.apply(this,arguments)}}),y.Assertion.overwriteChainableMethod("contain",function(c){return function(m){var f=g(this,"object");w(f)?typeof m=="string"?this.assert(!!f.querySelector(m),"expected "+F(f)+" to contain #{exp}","expected "+F(f)+" to not contain #{exp}",m):this.assert(f.contains(m),"expected "+F(f)+" to contain "+F(m),"expected "+F(f)+" to not contain "+F(m)):c.apply(this,arguments)}},function(c){return function(){c.call(this)}}),y.Assertion.addMethod("descendant",function(c){var m=g(this,"object"),f=c;typeof c=="string"?(f=m.querySelector(c),this.assert(!!f,"expected "+F(m)+" to have descendant #{exp}","expected "+F(m)+" to not have descendant #{exp}",c)):this.assert(m.contains(c),"expected "+F(m)+" to contain "+F(c),"expected "+F(m)+" to not contain "+F(c)),g(this,"object",f)}),y.Assertion.addMethod("descendants",function(c){var m=g(this,"object"),f=m.querySelectorAll(c);this.assert(!!f.length,"expected "+F(m)+" to have descendants #{exp}","expected "+F(m)+" to not have descendants #{exp}",c),g(this,"object",f)}),y.Assertion.addProperty("displayed",function(){var c=g(this,"object"),m=document.body.contains(c)?window.getComputedStyle(c).display:c.style.display;this.assert(m!=="none","expected "+F(c)+" to be displayed, but it was not","expected "+F(c)+" to not be displayed, but it was as "+m,m)}),y.Assertion.addProperty("visible",function(){var c=g(this,"object"),m=document.body.contains(c)?window.getComputedStyle(c).visibility:c.style.visibility;this.assert(m!=="hidden"&&m!=="collapse","expected "+F(c)+" to be visible, but it was "+(m==="hidden"?"hidden":"collapsed"),"expected "+F(c)+" to not be visible, but it was",m)}),y.Assertion.addMethod("tagName",function(c){var m=g(this,"object"),f=m.tagName;this.assert(f.toUpperCase()===c.toUpperCase(),"expected "+F(m)+" to have tagName "+c+", but it was "+f,"expected "+F(m)+" to not have tagName "+c+", but it was "+f,f)}),y.Assertion.addMethod("style",function(c,m){var f=g(this,"object"),b=window.getComputedStyle(f),A=b[c];this.assert(A===m,"expected "+F(f)+" to have style property "+c+" equal to "+m+", but it was equal to "+A,"expected "+F(f)+" to not have style property "+c+" equal to "+m+", but it was equal to "+A,A)})})}),Zd=Tb;function kb(N){var p={exports:{}};return N(p,p.exports),p.exports}function Nb(N){throw new Error('Could not dynamically require "'+N+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Sb=kb(function(N,p){(function(y){typeof Nb=="function"?N.exports=y:chai.use(y)})(function(y,D){var g=Array.prototype.slice;function F(U){return typeof U=="function"&&typeof U.getCall=="function"&&typeof U.calledWithExactly=="function"}function C(U){switch(U){case 1:return"once";case 2:return"twice";case 3:return"thrice";default:return(U||0)+" times"}}function w(U){return U&&F(U.proxy)}function M(U){if(!F(U._obj)&&!w(U._obj))throw new TypeError(D.inspect(U._obj)+" is not a spy or a call to a spy!")}function c(U,Z,ae,he,we){var Be=he?"always have ":"have ";ae=ae||"",F(U.proxy)&&(U=U.proxy);function Le(Ye){return U.printf.apply(U,Ye)}return{affirmative:function(){return Le(["expected %n to "+Be+Z+ae].concat(we))},negative:function(){return Le(["expected %n to not "+Be+Z].concat(we))}}}function m(U,Z,ae){D.addProperty(y.Assertion.prototype,U,function(){M(this);var he=c(this._obj,Z,ae,!1);this.assert(this._obj[U],he.affirmative,he.negative)})}function f(U,Z,ae){D.addMethod(y.Assertion.prototype,U,function(he){M(this);var we=c(this._obj,Z,ae,!1,[C(he)]);this.assert(this._obj[U]===he,we.affirmative,we.negative)})}function b(U,Z,ae){return function(){M(this);var he="always"+U[0].toUpperCase()+U.substring(1),we=D.flag(this,"always")&&typeof this._obj[he]=="function",Be=we?he:U,Le=c(this._obj,Z,ae,we,g.call(arguments));this.assert(this._obj[Be].apply(this._obj,arguments),Le.affirmative,Le.negative)}}function A(U,Z,ae){var he=b(U,Z,ae);D.addProperty(y.Assertion.prototype,U,he)}function I(U,Z,ae,he){var we=b(Z,ae,he);D.addMethod(y.Assertion.prototype,U,we)}function j(U,Z,ae){I(U,U,Z,ae)}D.addProperty(y.Assertion.prototype,"always",function(){D.flag(this,"always",!0)}),m("called","been called"," at least once, but it was never called"),f("callCount","been called exactly %1",", but it was called %c%C"),m("calledOnce","been called exactly once",", but it was called %c%C"),m("calledTwice","been called exactly twice",", but it was called %c%C"),m("calledThrice","been called exactly thrice",", but it was called %c%C"),A("calledWithNew","been called with new"),j("calledBefore","been called before %1"),j("calledAfter","been called after %1"),j("calledImmediatelyBefore","been called immediately before %1"),j("calledImmediatelyAfter","been called immediately after %1"),j("calledOn","been called with %1 as this",", but it was called with %t instead"),j("calledWith","been called with arguments %*","%D"),j("calledOnceWith","been called exactly once with arguments %*","%D"),j("calledWithExactly","been called with exact arguments %*","%D"),j("calledOnceWithExactly","been called exactly once with exact arguments %*","%D"),j("calledWithMatch","been called with arguments matching %*","%D"),j("returned","returned %1"),I("thrown","threw","thrown %1")})}),Qd=Sb;rr.use(Es);rr.use(Cs);rr.use(Zd);rr.use(Qd);mn();var Ob=Symbol.for(""),Pb=N=>{if(N?.r===Ob)return N?._$litStatic$};var h1=new Map,m1=N=>(p,...y)=>{let D=y.length,g,F,C=[],w=[],M,c=0,m=!1;for(;c<D;){for(M=p[c];c<D&&(F=y[c],(g=Pb(F))!==void 0);)M+=g+p[++c],m=!0;c!==D&&w.push(F),C.push(M),c++}if(c===D&&C.push(p[D]),m){let f=C.join("$$lit$$");(p=h1.get(f))===void 0&&(C.raw=C,h1.set(f,p=C)),y=w}return N(p,...y)},g1=m1(Ns),ky=m1(d1);function Za(){return new Promise(N=>{requestAnimationFrame(()=>N())})}function In(N,p,y={}){let{interval:D=50,timeout:g=1e3}=y,{stack:F}=new Error;return new Promise((C,w)=>{let M;setTimeout(()=>{clearTimeout(M);let m=new Error(p?`Timeout: ${p}`:`waitUntil timed out after ${g}ms`);m.stack=F,w(m)},g);async function c(){try{await N()?C():M=setTimeout(()=>{c()},D)}catch(m){w(m)}}c()})}var b1=N=>typeof N=="object"&&Promise.resolve(N)===N;async function ur(N){let p=!1,y=N&&N.updateComplete;return b1(y)&&(await y,p=!0),y=N&&N.componentOnReady?N.componentOnReady():!1,b1(y)&&(await y,p=!0),p||await Za(),window.ShadyDOM&&typeof window.ShadyDOM.flush=="function"&&window.ShadyDOM.flush(),N}var Qa=[];function zr(){Qa&&Qa.forEach(N=>{document.body.removeChild(N)}),Qa.length=0}T1();mn();var k1={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},N1=N=>(...p)=>({_$litDirective$:N,values:p}),io=class{constructor(p){}get _$AU(){return this._$AM._$AU}_$AT(p,y,D){this._$Ct=p,this._$AM=y,this._$Ci=D}_$AS(p,y){return this.update(p,y)}update(p,y){return this.render(...y)}};var Ur=class extends io{constructor(p){if(super(p),this.et=rt,p.type!==k1.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(p){if(p===rt||p==null)return this.ft=void 0,this.et=p;if(p===rn)return p;if(typeof p!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(p===this.et)return this.ft;this.et=p;let y=[p];return y.raw=y,this.ft={_$litType$:this.constructor.resultType,strings:y,values:[]}}};Ur.directiveName="unsafeHTML",Ur.resultType=1;var Ib=N1(Ur);mn();mn();var{I:sv}=f1;var $b=Object.freeze({ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_FRAGMENT_NODE:11});try{"afterEach"in window&&afterEach(()=>{zr()}),"teardown"in window&&teardown(()=>{zr()})}catch{}var P1=class{constructor(p){this.element=p}elementUpdated(){return ur(this.element)}get(p){return this.find(p)}find(p){return this.element.shadowRoot.querySelector(p)}findAll(p){return[...this.element.shadowRoot.querySelectorAll(p)]}async shouldBeHidden(p){await In(()=>this.matches(p,y=>getComputedStyle(y).display==="none"),"Element should be hidden")}async shouldBeVisible(p){await In(()=>this.matches(p,y=>getComputedStyle(y).display!="none"),"Element should be visible")}async shouldNotBeEmpty(p){await In(()=>this.matches(p,y=>{var D;return((D=y.textContent)!==null&&D!==void 0?D:"").trim()!==""}),`Element <${p??this.element.constructor.name}> should have had text`)}async shouldHaveTextIgnoringWhiteSpaces(p,y){await In(()=>this.matches(p,D=>{var g;return this.removeWhiteSpaces((g=D.textContent)!==null&&g!==void 0?g:"")===this.removeWhiteSpaces(y)}),`Element <${p??this.element.constructor.name}> should have had text "${y}" but was "${this.getTarget(p).textContent}"`)}matches(p,y){let D=this.getTarget(p);return!!D&&y(D)}getTarget(p){return p?this.find(p):this.element}removeWhiteSpaces(p){return p.trim().replace(/\s+/g,"-")}};})();
37
37
  /*! Bundled license information:
38
38
 
39
39
  axe-core/axe.min.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-wc-test-utils",
3
- "version": "1.2.23",
3
+ "version": "1.2.25",
4
4
  "description": "Test helpers",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,8 +19,8 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "1.2.23",
22
+ "@fluid-topics/ft-wc-utils": "1.2.25",
23
23
  "lit": "3.1.0"
24
24
  },
25
- "gitHead": "5194ba981cde5e47a64f98727806cd6c2e8214b3"
25
+ "gitHead": "59f3483ed120afa2b223e4397a864676059c7d27"
26
26
  }