@atomic-ui/ui 0.13.1 → 0.14.0

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.
Files changed (91) hide show
  1. package/custom-elements.json +545 -5
  2. package/dist/base/FieldElement.d.ts +10 -0
  3. package/dist/base/motion.d.ts +44 -0
  4. package/dist/{chunk-F2MFV7RM.js → chunk-22XEQ4HD.js} +2 -2
  5. package/dist/{chunk-PII4SJL5.js → chunk-46DONRMK.js} +24 -2
  6. package/dist/chunk-46DONRMK.js.map +1 -0
  7. package/dist/{chunk-LSEK5MEZ.js → chunk-7RZYC2IX.js} +2 -2
  8. package/dist/{chunk-SRXC6ZPM.js → chunk-DJLUWM3C.js} +10 -1
  9. package/dist/chunk-DJLUWM3C.js.map +1 -0
  10. package/dist/chunk-FF6GQADC.js +241 -0
  11. package/dist/chunk-FF6GQADC.js.map +1 -0
  12. package/dist/{chunk-QJBRENLI.js → chunk-FJOZL25F.js} +9 -4
  13. package/dist/{chunk-QJBRENLI.js.map → chunk-FJOZL25F.js.map} +1 -1
  14. package/dist/{chunk-EA3M6KPB.js → chunk-FQ4I6TD6.js} +16 -6
  15. package/dist/chunk-FQ4I6TD6.js.map +1 -0
  16. package/dist/{chunk-K5QFVLCI.js → chunk-GHUVRNWS.js} +8 -3
  17. package/dist/chunk-GHUVRNWS.js.map +1 -0
  18. package/dist/{chunk-NZSKUEYS.js → chunk-IBBW4CVA.js} +2 -2
  19. package/dist/{chunk-EFP7PJ6C.js → chunk-J3XAAGFG.js} +7 -2
  20. package/dist/chunk-J3XAAGFG.js.map +1 -0
  21. package/dist/{chunk-B2GWXXIW.js → chunk-JBEPS77S.js} +2 -2
  22. package/dist/chunk-K542UBDD.js +100 -0
  23. package/dist/chunk-K542UBDD.js.map +1 -0
  24. package/dist/{chunk-5OCDXZXG.js → chunk-KBCCL45Y.js} +5 -4
  25. package/dist/chunk-KBCCL45Y.js.map +1 -0
  26. package/dist/{chunk-WEX5RKVC.js → chunk-KXHRD4FK.js} +2 -2
  27. package/dist/{chunk-RNFGIXJ7.js → chunk-LRDK2G3E.js} +2 -2
  28. package/dist/{chunk-G7CVRNY5.js → chunk-MXPFOBXZ.js} +18 -5
  29. package/dist/chunk-MXPFOBXZ.js.map +1 -0
  30. package/dist/{chunk-WT7MHYJR.js → chunk-NN6L3HLD.js} +11 -5
  31. package/dist/chunk-NN6L3HLD.js.map +1 -0
  32. package/dist/{chunk-P5FAKEFK.js → chunk-NTRIND3W.js} +2 -2
  33. package/dist/{chunk-EUOBFMWC.js → chunk-SLNHUYGJ.js} +2 -2
  34. package/dist/{chunk-2BGOBD6Y.js → chunk-YOJF5ESL.js} +2 -2
  35. package/dist/components/app-bar.d.ts +5 -4
  36. package/dist/components/app-bar.js +3 -3
  37. package/dist/components/app-ui.d.ts +4 -0
  38. package/dist/components/app-ui.js +2 -2
  39. package/dist/components/button.js +2 -1
  40. package/dist/components/checkbox-group.d.ts +4 -0
  41. package/dist/components/checkbox-group.js +2 -2
  42. package/dist/components/checkbox.d.ts +4 -0
  43. package/dist/components/checkbox.js +2 -2
  44. package/dist/components/chip-group.d.ts +1 -0
  45. package/dist/components/chip-group.js +3 -2
  46. package/dist/components/chip.js +1 -1
  47. package/dist/components/date-input.d.ts +4 -0
  48. package/dist/components/date-input.js +2 -2
  49. package/dist/components/journey.d.ts +16 -0
  50. package/dist/components/journey.js +2 -2
  51. package/dist/components/link.js +2 -1
  52. package/dist/components/navigation.d.ts +9 -2
  53. package/dist/components/navigation.js +5 -3
  54. package/dist/components/page.js +1 -1
  55. package/dist/components/radio-group.d.ts +4 -0
  56. package/dist/components/radio-group.js +2 -2
  57. package/dist/components/select.d.ts +4 -0
  58. package/dist/components/select.js +2 -2
  59. package/dist/components/switch.d.ts +8 -0
  60. package/dist/components/switch.js +2 -2
  61. package/dist/components/text-input.d.ts +4 -0
  62. package/dist/components/text-input.js +2 -2
  63. package/dist/components/textarea.d.ts +4 -0
  64. package/dist/components/textarea.js +2 -2
  65. package/dist/index.d.ts +3 -1
  66. package/dist/index.js +45 -19
  67. package/dist/reveal.d.ts +54 -0
  68. package/dist/reveal.js +19 -0
  69. package/dist/reveal.js.map +1 -0
  70. package/dist/standalone/atomic-ui-reveal.js +3 -0
  71. package/dist/standalone/atomic-ui-reveal.js.map +7 -0
  72. package/dist/standalone/atomic-ui.js +793 -680
  73. package/dist/standalone/atomic-ui.js.map +4 -4
  74. package/package.json +10 -2
  75. package/dist/chunk-5OCDXZXG.js.map +0 -1
  76. package/dist/chunk-EA3M6KPB.js.map +0 -1
  77. package/dist/chunk-EFP7PJ6C.js.map +0 -1
  78. package/dist/chunk-G7CVRNY5.js.map +0 -1
  79. package/dist/chunk-K5QFVLCI.js.map +0 -1
  80. package/dist/chunk-PII4SJL5.js.map +0 -1
  81. package/dist/chunk-SRXC6ZPM.js.map +0 -1
  82. package/dist/chunk-WT7MHYJR.js.map +0 -1
  83. /package/dist/{chunk-F2MFV7RM.js.map → chunk-22XEQ4HD.js.map} +0 -0
  84. /package/dist/{chunk-LSEK5MEZ.js.map → chunk-7RZYC2IX.js.map} +0 -0
  85. /package/dist/{chunk-NZSKUEYS.js.map → chunk-IBBW4CVA.js.map} +0 -0
  86. /package/dist/{chunk-B2GWXXIW.js.map → chunk-JBEPS77S.js.map} +0 -0
  87. /package/dist/{chunk-WEX5RKVC.js.map → chunk-KXHRD4FK.js.map} +0 -0
  88. /package/dist/{chunk-RNFGIXJ7.js.map → chunk-LRDK2G3E.js.map} +0 -0
  89. /package/dist/{chunk-P5FAKEFK.js.map → chunk-NTRIND3W.js.map} +0 -0
  90. /package/dist/{chunk-EUOBFMWC.js.map → chunk-SLNHUYGJ.js.map} +0 -0
  91. /package/dist/{chunk-2BGOBD6Y.js.map → chunk-YOJF5ESL.js.map} +0 -0
@@ -1,7 +1,7 @@
1
- /* @atomic-ui/ui version 0.13.1, standalone. */
2
- var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{createHTML:n=>n}):void 0,Jt="$lit$",j=`lit$${Math.random().toFixed(9).slice(2)}$`,Zt="?"+j,Zi=`<${Zt}>`,J=document,ne=()=>J.createComment(""),le=n=>n===null||typeof n!="object"&&typeof n!="function",Qt=Array.isArray,vi=n=>Qt(n)||typeof n?.[Symbol.iterator]=="function",Xt=`[
3
- \f\r]`,se=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fi=/-->/g,$i=/>/g,X=RegExp(`>|${Xt}(?:([^\\s"'>=/]+)(${Xt}*=${Xt}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),xi=/'/g,yi=/"/g,wi=/^(?:script|style|textarea|title)$/i,ei=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),o=ei(1),y=ei(2),qr=ei(3),P=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),ki=new WeakMap,Y=J.createTreeWalker(J,129);function Si(n,e){if(!Qt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return bi!==void 0?bi.createHTML(e):e}var Ti=(n,e)=>{let i=n.length-1,r=[],s,c=e===2?"<svg>":e===3?"<math>":"",p=se;for(let $=0;$<i;$++){let g=n[$],k,_,A=-1,F=0;for(;F<g.length&&(p.lastIndex=F,_=p.exec(g),_!==null);)F=p.lastIndex,p===se?_[1]==="!--"?p=fi:_[1]!==void 0?p=$i:_[2]!==void 0?(wi.test(_[2])&&(s=RegExp("</"+_[2],"g")),p=X):_[3]!==void 0&&(p=X):p===X?_[0]===">"?(p=s??se,A=-1):_[1]===void 0?A=-2:(A=p.lastIndex-_[2].length,k=_[1],p=_[3]===void 0?X:_[3]==='"'?yi:xi):p===yi||p===xi?p=X:p===fi||p===$i?p=se:(p=X,s=void 0);let G=p===X&&n[$+1].startsWith("/>")?" ":"";c+=p===se?g+Zi:A>=0?(r.push(k),g.slice(0,A)+Jt+g.slice(A)+j+G):g+j+(A===-2?$:G)}return[Si(n,c+(n[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},de=class n{constructor({strings:e,_$litType$:i},r){let s;this.parts=[];let c=0,p=0,$=e.length-1,g=this.parts,[k,_]=Ti(e,i);if(this.el=n.createElement(k,r),Y.currentNode=this.el.content,i===2||i===3){let A=this.el.content.firstChild;A.replaceWith(...A.childNodes)}for(;(s=Y.nextNode())!==null&&g.length<$;){if(s.nodeType===1){if(s.hasAttributes())for(let A of s.getAttributeNames())if(A.endsWith(Jt)){let F=_[p++],G=s.getAttribute(A).split(j),ve=/([.?@])?(.*)/.exec(F);g.push({type:1,index:c,name:ve[2],strings:G,ctor:ve[1]==="."?Te:ve[1]==="?"?ze:ve[1]==="@"?Me:Q}),s.removeAttribute(A)}else A.startsWith(j)&&(g.push({type:6,index:c}),s.removeAttribute(A));if(wi.test(s.tagName)){let A=s.textContent.split(j),F=A.length-1;if(F>0){s.textContent=we?we.emptyScript:"";for(let G=0;G<F;G++)s.append(A[G],ne()),Y.nextNode(),g.push({type:2,index:++c});s.append(A[F],ne())}}}else if(s.nodeType===8)if(s.data===Zt)g.push({type:2,index:c});else{let A=-1;for(;(A=s.data.indexOf(j,A+1))!==-1;)g.push({type:7,index:c}),A+=j.length-1}c++}}static createElement(e,i){let r=J.createElement("template");return r.innerHTML=e,r}};function Z(n,e,i=n,r){if(e===P)return e;let s=r!==void 0?i._$Co?.[r]:i._$Cl,c=le(e)?void 0:e._$litDirective$;return s?.constructor!==c&&(s?._$AO?.(!1),c===void 0?s=void 0:(s=new c(n),s._$AT(n,i,r)),r!==void 0?(i._$Co??=[])[r]=s:i._$Cl=s),s!==void 0&&(e=Z(n,s._$AS(n,e.values),s,r)),e}var Se=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,s=(e?.creationScope??J).importNode(i,!0);Y.currentNode=s;let c=Y.nextNode(),p=0,$=0,g=r[0];for(;g!==void 0;){if(p===g.index){let k;g.type===2?k=new ie(c,c.nextSibling,this,e):g.type===1?k=new g.ctor(c,g.name,g.strings,this,e):g.type===6&&(k=new Ee(c,this,e)),this._$AV.push(k),g=r[++$]}p!==g?.index&&(c=Y.nextNode(),p++)}return Y.currentNode=J,s}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},ie=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,s){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=Z(this,e,i),le(e)?e===l||e==null||e===""?(this._$AH!==l&&this._$AR(),this._$AH=l):e!==this._$AH&&e!==P&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):vi(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==l&&le(this._$AH)?this._$AA.nextSibling.data=e:this.T(J.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,s=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=de.createElement(Si(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===s)this._$AH.p(i);else{let c=new Se(s,this),p=c.u(this.options);c.p(i),this.T(p),this._$AH=c}}_$AC(e){let i=ki.get(e.strings);return i===void 0&&ki.set(e.strings,i=new de(e)),i}k(e){Qt(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,s=0;for(let c of e)s===i.length?i.push(r=new n(this.O(ne()),this.O(ne()),this,this.options)):r=i[s],r._$AI(c),s++;s<i.length&&(this._$AR(r&&r._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=gi(e).nextSibling;gi(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Q=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,s,c){this.type=1,this._$AH=l,this._$AN=void 0,this.element=e,this.name=i,this._$AM=s,this.options=c,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=l}_$AI(e,i=this,r,s){let c=this.strings,p=!1;if(c===void 0)e=Z(this,e,i,0),p=!le(e)||e!==this._$AH&&e!==P,p&&(this._$AH=e);else{let $=e,g,k;for(e=c[0],g=0;g<c.length-1;g++)k=Z(this,$[r+g],i,g),k===P&&(k=this._$AH[g]),p||=!le(k)||k!==this._$AH[g],k===l?e=l:e!==l&&(e+=(k??"")+c[g+1]),this._$AH[g]=k}p&&!s&&this.j(e)}j(e){e===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Te=class extends Q{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===l?void 0:e}},ze=class extends Q{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==l)}},Me=class extends Q{constructor(e,i,r,s,c){super(e,i,r,s,c),this.type=5}_$AI(e,i=this){if((e=Z(this,e,i,0)??l)===P)return;let r=this._$AH,s=e===l&&r!==l||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,c=e!==l&&(r===l||s);s&&this.element.removeEventListener(this.name,this,r),c&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ee=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Z(this,e)}},B={M:Jt,P:j,A:Zt,C:1,L:Ti,R:Se,D:vi,V:Z,I:ie,H:Q,N:ze,U:Me,B:Te,F:Ee},Qi=Yt.litHtmlPolyfillSupport;Qi?.(de,ie),(Yt.litHtmlVersions??=[]).push("3.3.3");var ce=(n,e,i)=>{let r=i?.renderBefore??e,s=r._$litPart$;if(s===void 0){let c=i?.renderBefore??null;r._$litPart$=s=new ie(e.insertBefore(ne(),c),c,void 0,i??{})}return s._$AI(n),s};var ti=null,zi={boundAttributeSuffix:B.M,marker:B.P,markerMatch:B.A,HTML_RESULT:B.C,getTemplateHtml:B.L,overrideDirectiveResolve:(n,e)=>class extends n{_$AS(i,r){return e(this,r)}},patchDirectiveResolve:(n,e)=>{if(n.prototype._$AS.name!==e.name){ti??=n.prototype._$AS.name;for(let i=n.prototype;i!==Object.prototype;i=Object.getPrototypeOf(i))if(i.hasOwnProperty(ti))return void(i[ti]=e);throw Error("Internal error: It is possible that both dev mode and production mode Lit was mixed together during SSR. Please comment on the issue: https://github.com/lit/lit/issues/4527")}},setDirectiveClass(n,e){n._$litDirective$=e},getAttributePartCommittedValue:(n,e,i)=>{let r=P;return n.j=s=>r=s,n._$AI(e,n,i),r},connectedDisconnectable:n=>({...n,_$AU:!0}),resolveDirective:B.V,AttributePart:B.H,PropertyPart:B.B,BooleanAttributePart:B.N,EventPart:B.U,ElementPart:B.F,TemplateInstance:B.R,isIterable:B.D,ChildPart:B.I};var re={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6};var{I:Gr}=B;var Mi=n=>n===null||typeof n!="object"&&typeof n!="function";var Ei=(n,e)=>e===void 0?n?._$litType$!==void 0:n?._$litType$===e,Ai=n=>n?._$litType$?.h!=null;var Ci=n=>n.strings===void 0;var{TemplateInstance:er,isIterable:tr,resolveDirective:Ii,ChildPart:pe,ElementPart:ir}=zi,Ri=(n,e,i={})=>{if(e._$litPart$!==void 0)throw Error("container already contains a live render");let r,s,c,p=[],$=document.createTreeWalker(e,NodeFilter.SHOW_COMMENT),g;for(;(g=$.nextNode())!==null;){let k=g.data;if(k.startsWith("lit-part")){if(p.length===0&&r!==void 0)throw Error(`There must be only one root part per container. Found a part marker (${g}) when we already have a root part marker (${s})`);c=rr(n,g,p,i),r===void 0&&(r=c),s??=g}else if(k.startsWith("lit-node"))or(g,p,i);else if(k.startsWith("/lit-part")){if(p.length===1&&c!==r)throw Error("internal error");c=ar(g,c,p)}}if(r===void 0){let k=e instanceof ShadowRoot?"{container.host.localName}'s shadow root":e instanceof DocumentFragment?"DocumentFragment":e.localName;console.error(`There should be exactly one root part in a render container, but we didn't find any in ${k}.`)}e._$litPart$=r},rr=(n,e,i,r)=>{let s,c;if(i.length===0)c=new pe(e,null,void 0,r),s=n;else{let p=i[i.length-1];if(p.type==="template-instance")c=new pe(e,null,p.instance,r),p.instance._$AV.push(c),s=p.result.values[p.instancePartIndex++],p.templatePartIndex++;else if(p.type==="iterable"){c=new pe(e,null,p.part,r);let $=p.iterator.next();if($.done)throw s=void 0,p.done=!0,Error("Unhandled shorter than expected iterable");s=$.value,p.part._$AH.push(c)}else c=new pe(e,null,p.part,r)}if(s=Ii(c,s),s===P)i.push({part:c,type:"leaf"});else if(Mi(s))i.push({part:c,type:"leaf"}),c._$AH=s;else if(Ei(s)){if(Ai(s))throw Error("compiled templates are not supported");let p="lit-part "+sr(s);if(e.data!==p)throw Error("Hydration value mismatch: Unexpected TemplateResult rendered to part");{let $=pe.prototype._$AC(s),g=new er($,c);i.push({type:"template-instance",instance:g,part:c,templatePartIndex:0,instancePartIndex:0,result:s}),c._$AH=g}}else tr(s)?(i.push({part:c,type:"iterable",value:s,iterator:s[Symbol.iterator](),done:!1}),c._$AH=[]):(i.push({part:c,type:"leaf"}),c._$AH=s??"");return c},ar=(n,e,i)=>{if(e===void 0)throw Error("unbalanced part marker");e._$AB=n;let r=i.pop();if(r.type==="iterable"&&!r.iterator.next().done)throw Error("unexpected longer than expected iterable");if(i.length>0)return i[i.length-1].part},or=(n,e,i)=>{let r=/lit-node (\d+)/.exec(n.data),s=parseInt(r[1]),c=n.nextElementSibling;if(c===null)throw Error("could not find node for attribute parts");c.removeAttribute("defer-hydration");let p=e[e.length-1];if(p.type!=="template-instance")throw Error("Hydration value mismatch: Primitive found where TemplateResult expected. This usually occurs due to conditional rendering that resulted in a different value or template being rendered between the server and client.");{let $=p.instance;for(;;){let g=$._$AD.parts[p.templatePartIndex];if(g===void 0||g.type!==re.ATTRIBUTE&&g.type!==re.ELEMENT||g.index!==s)break;if(g.type===re.ATTRIBUTE){let k=new g.ctor(c,g.name,g.strings,p.instance,i),_=Ci(k)?p.result.values[p.instancePartIndex]:p.result.values,A=!(k.type===re.EVENT||k.type===re.PROPERTY);k._$AI(_,k,p.instancePartIndex,A),p.instancePartIndex+=g.strings.length-1,$._$AV.push(k)}else{let k=new ir(c,p.instance,i);Ii(k,p.result.values[p.instancePartIndex++]),$._$AV.push(k)}p.templatePartIndex++}}},Li=new WeakMap,sr=n=>{let e=Li.get(n.strings);if(e!==void 0)return e;let i=new Uint32Array(2).fill(5381);for(let s of n.strings)for(let c=0;c<s.length;c++)i[c%2]=33*i[c%2]^s.charCodeAt(c);let r=String.fromCharCode(...new Uint8Array(i.buffer));return e=btoa(r),Li.set(n.strings,e),e};globalThis.litElementHydrateSupport=({LitElement:n})=>{let e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(n),"observedAttributes").get;Object.defineProperty(n,"observedAttributes",{get(){return[...e.call(this),"defer-hydration"]}});let i=n.prototype.attributeChangedCallback;n.prototype.attributeChangedCallback=function(p,$,g){p==="defer-hydration"&&g===null&&r.call(this),i.call(this,p,$,g)};let r=n.prototype.connectedCallback;n.prototype.connectedCallback=function(){this.hasAttribute("defer-hydration")||r.call(this)};let s=n.prototype.createRenderRoot;n.prototype.createRenderRoot=function(){return this.shadowRoot?(this._$AG=!0,this.shadowRoot):s.call(this)};let c=Object.getPrototypeOf(n.prototype).update;n.prototype.update=function(p){let $=this.render();if(c.call(this,p),this._$AG){this._$AG=!1;for(let g of this.getAttributeNames())if(g.startsWith("hydrate-internals-")){let k=g.slice(18);this.removeAttribute(k),this.removeAttribute(g)}Ri($,this.renderRoot,this.renderOptions)}else ce($,this.renderRoot,this.renderOptions)}};var Ae=globalThis,Ce=Ae.ShadowRoot&&(Ae.ShadyCSS===void 0||Ae.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ii=Symbol(),_i=new WeakMap,he=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==ii)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o,i=this.t;if(Ce&&e===void 0){let r=i!==void 0&&i.length===1;r&&(e=_i.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&_i.set(i,e))}return e}toString(){return this.cssText}},L=n=>new he(typeof n=="string"?n:n+"",void 0,ii),u=(n,...e)=>{let i=n.length===1?n[0]:e.reduce((r,s,c)=>r+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[c+1],n[0]);return new he(i,n,ii)},Hi=(n,e)=>{if(Ce)n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(let i of e){let r=document.createElement("style"),s=Ae.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=i.cssText,n.appendChild(r)}},ri=Ce?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(let r of e.cssRules)i+=r.cssText;return L(i)})(n):n;var{is:nr,defineProperty:lr,getOwnPropertyDescriptor:dr,getOwnPropertyNames:cr,getOwnPropertySymbols:pr,getPrototypeOf:hr}=Object,Le=globalThis,Bi=Le.trustedTypes,ur=Bi?Bi.emptyScript:"",mr=Le.reactiveElementPolyfillSupport,ue=(n,e)=>n,ai={toAttribute(n,e){switch(e){case Boolean:n=n?ur:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},Pi=(n,e)=>!nr(n,e),Ni={attribute:!0,type:String,converter:ai,reflect:!1,useDefault:!1,hasChanged:Pi};Symbol.metadata??=Symbol("metadata"),Le.litPropertyMetadata??=new WeakMap;var U=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=Ni){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(e,r,i);s!==void 0&&lr(this.prototype,e,s)}}static getPropertyDescriptor(e,i,r){let{get:s,set:c}=dr(this.prototype,e)??{get(){return this[i]},set(p){this[i]=p}};return{get:s,set(p){let $=s?.call(this);c?.call(this,p),this.requestUpdate(e,$,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ni}static _$Ei(){if(this.hasOwnProperty(ue("elementProperties")))return;let e=hr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ue("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ue("properties"))){let i=this.properties,r=[...cr(i),...pr(i)];for(let s of r)this.createProperty(s,i[s])}let e=this[Symbol.metadata];if(e!==null){let i=litPropertyMetadata.get(e);if(i!==void 0)for(let[r,s]of i)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[i,r]of this.elementProperties){let s=this._$Eu(i,r);s!==void 0&&this._$Eh.set(s,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let i=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let s of r)i.unshift(ri(s))}else e!==void 0&&i.push(ri(e));return i}static _$Eu(e,i){let r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,i=this.constructor.elementProperties;for(let r of i.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Hi(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,i,r){this._$AK(e,r)}_$ET(e,i){let r=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,r);if(s!==void 0&&r.reflect===!0){let c=(r.converter?.toAttribute!==void 0?r.converter:ai).toAttribute(i,r.type);this._$Em=e,c==null?this.removeAttribute(s):this.setAttribute(s,c),this._$Em=null}}_$AK(e,i){let r=this.constructor,s=r._$Eh.get(e);if(s!==void 0&&this._$Em!==s){let c=r.getPropertyOptions(s),p=typeof c.converter=="function"?{fromAttribute:c.converter}:c.converter?.fromAttribute!==void 0?c.converter:ai;this._$Em=s;let $=p.fromAttribute(i,c.type);this[s]=$??this._$Ej?.get(s)??$,this._$Em=null}}requestUpdate(e,i,r,s=!1,c){if(e!==void 0){let p=this.constructor;if(s===!1&&(c=this[e]),r??=p.getPropertyOptions(e),!((r.hasChanged??Pi)(c,i)||r.useDefault&&r.reflect&&c===this._$Ej?.get(e)&&!this.hasAttribute(p._$Eu(e,r))))return;this.C(e,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:r,reflect:s,wrapped:c},p){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,p??i??this[e]),c!==!0||p!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(i=void 0),this._$AL.set(e,i)),s===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,c]of this._$Ep)this[s]=c;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[s,c]of r){let{wrapped:p}=c,$=this[s];p!==!0||this._$AL.has(s)||$===void 0||this.C(s,void 0,c,$)}}let e=!1,i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(i)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(i)}willUpdate(e){}_$AE(e){this._$EO?.forEach(i=>i.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(i=>this._$ET(i,this[i])),this._$EM()}updated(e){}firstUpdated(e){}};U.elementStyles=[],U.shadowRootOptions={mode:"open"},U[ue("elementProperties")]=new Map,U[ue("finalized")]=new Map,mr?.({ReactiveElement:U}),(Le.reactiveElementVersions??=[]).push("2.1.2");var oi=globalThis,W=class extends U{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ce(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return P}};W._$litElement$=!0,W.finalized=!0,oi.litElementHydrateSupport?.({LitElement:W});var gr=oi.litElementPolyfillSupport;gr?.({LitElement:W});(oi.litElementVersions??=[]).push("4.2.2");var d=(n,e)=>L(`var(--impakt-${n.replace(/\./g,"-")}, ${e})`),t={brand:d("color.brand.default","#1f4ed8"),brandHover:d("color.brand.hover","#1b45be"),brandActive:d("color.brand.active","#183ba4"),brandSubtle:d("color.brand.subtle","#e4eafa"),onBrand:d("color.text.on-brand","#ffffff"),surfaceCard:d("color.surface.card","#ffffff"),surfaceInset:d("color.surface.inset","#f4f4f4"),surfaceSubtle:d("color.surface.subtle","#e4eafa"),text:d("color.text.default","#1a1a1a"),textMuted:d("color.text.muted","#717171"),textPlaceholder:d("color.text.placeholder","#767676"),textHeading:d("color.text.heading","#1f4ed8"),link:d("color.text.link","#1f4ed8"),linkHover:d("color.text.link-hover","#193ead"),border:d("color.border.default","#929292"),borderStrong:d("color.border.strong","#818181"),danger:d("color.status.danger.default","#c8102e"),dangerText:d("color.status.danger.text","#c8102e"),dangerSubtle:d("color.status.danger.subtle","#f8e2e6"),warning:d("color.status.warning.default","#b45309"),warningText:d("color.status.warning.text","#b45309"),warningSubtle:d("color.status.warning.subtle","#f6eae1"),success:d("color.status.success.default","#047857"),successText:d("color.status.success.text","#047857"),successSubtle:d("color.status.success.subtle","#e0f0ea"),info:d("color.status.info.default","#1f4ed8"),infoText:d("color.status.info.text","#1f4ed8"),infoSubtle:d("color.status.info.subtle","#e4eafa"),fontBody:d("font.family.body","system-ui, sans-serif"),fontHeading:d("font.family.heading","system-ui, sans-serif"),fontMono:d("font.family.mono","ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"),fontEyebrow:d("font.family.eyebrow","inherit"),focusShadow:d("focus.ring.shadow","0 0 0 2px #ffffff, 0 0 0 4px #1a1a1a"),focusOffset:d("focus.ring.offset","2px"),targetMin:d("target.min","24px"),radiusSm:d("radius.sm","2px"),radius:d("radius.md","4px"),radiusLg:d("radius.lg","8px"),borderThin:d("border.width.thin","1px"),borderThick:d("border.width.thick","2px"),radiusXs:d("radius.xs","2px"),radiusXl:d("radius.xl","12px"),radius2xl:d("radius.2xl","16px"),hairline:L("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 10%, transparent)"),rule:L("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 15%, transparent)"),wash:L("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 5%, transparent)"),brandHalo:L("color-mix(in srgb, var(--impakt-color-brand-default, #1f4ed8) 22%, transparent)"),shadowXs:d("shadow.xs","0 1px 2px 0 rgb(0 0 0 / 0.05)"),shadowSm:d("shadow.sm","0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"),shadowMd:d("shadow.md","0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"),shadowLg:d("shadow.lg","0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"),shadowXl:d("shadow.xl","0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"),trackingTight:d("font.tracking.tight","-0.02em"),trackingWide:d("font.tracking.wide","0.06em")},w=n=>L(`font-size: var(--impakt-font-size-${n}, 1rem); line-height: var(--impakt-font-leading-${n}, 1.5);`),a=n=>d(`space.${String(n).replace(".","-")}`,`${n*4}px`),b=n=>d(`font.size.${n}`,"1rem"),O=n=>d(`font.line-height.${n}`,"1.5"),m=n=>d(`font.weight.${n}`,"400"),N=u`
1
+ /* @atomic-ui/ui version 0.14.0, standalone. */
2
+ var oi=globalThis,_i=o=>o,Ce=oi.trustedTypes,Hi=Ce?Ce.createPolicy("lit-html",{createHTML:o=>o}):void 0,ni="$lit$",X=`lit$${Math.random().toFixed(9).slice(2)}$`,si="?"+X,yr=`<${si}>`,te=document,me=()=>te.createComment(""),ge=o=>o===null||typeof o!="object"&&typeof o!="function",li=Array.isArray,qi=o=>li(o)||typeof o?.[Symbol.iterator]=="function",ai=`[
3
+ \f\r]`,ue=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bi=/-->/g,Ni=/>/g,Q=RegExp(`>|${ai}(?:([^\\s"'>=/]+)(${ai}*=${ai}*(?:[^
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Pi=/'/g,Oi=/"/g,Fi=/^(?:script|style|textarea|title)$/i,di=o=>(e,...i)=>({_$litType$:o,strings:e,values:i}),n=di(1),k=di(2),fa=di(3),j=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Di=new WeakMap,ee=te.createTreeWalker(te,129);function ji(o,e){if(!li(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Hi!==void 0?Hi.createHTML(e):e}var Wi=(o,e)=>{let i=o.length-1,r=[],s,c=e===2?"<svg>":e===3?"<math>":"",p=ue;for(let m=0;m<i;m++){let g=o[m],f,A,z=-1,P=0;for(;P<g.length&&(p.lastIndex=P,A=p.exec(g),A!==null);)P=p.lastIndex,p===ue?A[1]==="!--"?p=Bi:A[1]!==void 0?p=Ni:A[2]!==void 0?(Fi.test(A[2])&&(s=RegExp("</"+A[2],"g")),p=Q):A[3]!==void 0&&(p=Q):p===Q?A[0]===">"?(p=s??ue,z=-1):A[1]===void 0?z=-2:(z=p.lastIndex-A[2].length,f=A[1],p=A[3]===void 0?Q:A[3]==='"'?Oi:Pi):p===Oi||p===Pi?p=Q:p===Bi||p===Ni?p=ue:(p=Q,s=void 0);let L=p===Q&&o[m+1].startsWith("/>")?" ":"";c+=p===ue?g+yr:z>=0?(r.push(f),g.slice(0,z)+ni+g.slice(z)+X+L):g+X+(z===-2?m:L)}return[ji(o,c+(o[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},be=class o{constructor({strings:e,_$litType$:i},r){let s;this.parts=[];let c=0,p=0,m=e.length-1,g=this.parts,[f,A]=Wi(e,i);if(this.el=o.createElement(f,r),ee.currentNode=this.el.content,i===2||i===3){let z=this.el.content.firstChild;z.replaceWith(...z.childNodes)}for(;(s=ee.nextNode())!==null&&g.length<m;){if(s.nodeType===1){if(s.hasAttributes())for(let z of s.getAttributeNames())if(z.endsWith(ni)){let P=A[p++],L=s.getAttribute(z).split(X),B=/([.?@])?(.*)/.exec(P);g.push({type:1,index:c,name:B[2],strings:L,ctor:B[1]==="."?Re:B[1]==="?"?Ie:B[1]==="@"?_e:re}),s.removeAttribute(z)}else z.startsWith(X)&&(g.push({type:6,index:c}),s.removeAttribute(z));if(Fi.test(s.tagName)){let z=s.textContent.split(X),P=z.length-1;if(P>0){s.textContent=Ce?Ce.emptyScript:"";for(let L=0;L<P;L++)s.append(z[L],me()),ee.nextNode(),g.push({type:2,index:++c});s.append(z[P],me())}}}else if(s.nodeType===8)if(s.data===si)g.push({type:2,index:c});else{let z=-1;for(;(z=s.data.indexOf(X,z+1))!==-1;)g.push({type:7,index:c}),z+=X.length-1}c++}}static createElement(e,i){let r=te.createElement("template");return r.innerHTML=e,r}};function ie(o,e,i=o,r){if(e===j)return e;let s=r!==void 0?i._$Co?.[r]:i._$Cl,c=ge(e)?void 0:e._$litDirective$;return s?.constructor!==c&&(s?._$AO?.(!1),c===void 0?s=void 0:(s=new c(o),s._$AT(o,i,r)),r!==void 0?(i._$Co??=[])[r]=s:i._$Cl=s),s!==void 0&&(e=ie(o,s._$AS(o,e.values),s,r)),e}var Le=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,s=(e?.creationScope??te).importNode(i,!0);ee.currentNode=s;let c=ee.nextNode(),p=0,m=0,g=r[0];for(;g!==void 0;){if(p===g.index){let f;g.type===2?f=new se(c,c.nextSibling,this,e):g.type===1?f=new g.ctor(c,g.name,g.strings,this,e):g.type===6&&(f=new He(c,this,e)),this._$AV.push(f),g=r[++m]}p!==g?.index&&(c=ee.nextNode(),p++)}return ee.currentNode=te,s}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},se=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,s){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=ie(this,e,i),ge(e)?e===d||e==null||e===""?(this._$AH!==d&&this._$AR(),this._$AH=d):e!==this._$AH&&e!==j&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):qi(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==d&&ge(this._$AH)?this._$AA.nextSibling.data=e:this.T(te.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,s=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=be.createElement(ji(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===s)this._$AH.p(i);else{let c=new Le(s,this),p=c.u(this.options);c.p(i),this.T(p),this._$AH=c}}_$AC(e){let i=Di.get(e.strings);return i===void 0&&Di.set(e.strings,i=new be(e)),i}k(e){li(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,s=0;for(let c of e)s===i.length?i.push(r=new o(this.O(me()),this.O(me()),this,this.options)):r=i[s],r._$AI(c),s++;s<i.length&&(this._$AR(r&&r._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=_i(e).nextSibling;_i(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},re=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,s,c){this.type=1,this._$AH=d,this._$AN=void 0,this.element=e,this.name=i,this._$AM=s,this.options=c,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=d}_$AI(e,i=this,r,s){let c=this.strings,p=!1;if(c===void 0)e=ie(this,e,i,0),p=!ge(e)||e!==this._$AH&&e!==j,p&&(this._$AH=e);else{let m=e,g,f;for(e=c[0],g=0;g<c.length-1;g++)f=ie(this,m[r+g],i,g),f===j&&(f=this._$AH[g]),p||=!ge(f)||f!==this._$AH[g],f===d?e=d:e!==d&&(e+=(f??"")+c[g+1]),this._$AH[g]=f}p&&!s&&this.j(e)}j(e){e===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Re=class extends re{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===d?void 0:e}},Ie=class extends re{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==d)}},_e=class extends re{constructor(e,i,r,s,c){super(e,i,r,s,c),this.type=5}_$AI(e,i=this){if((e=ie(this,e,i,0)??d)===j)return;let r=this._$AH,s=e===d&&r!==d||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,c=e!==d&&(r===d||s);s&&this.element.removeEventListener(this.name,this,r),c&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},He=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){ie(this,e)}},O={M:ni,P:X,A:si,C:1,L:Wi,R:Le,D:qi,V:ie,I:se,H:re,N:Ie,U:_e,B:Re,F:He},kr=oi.litHtmlPolyfillSupport;kr?.(be,se),(oi.litHtmlVersions??=[]).push("3.3.3");var fe=(o,e,i)=>{let r=i?.renderBefore??e,s=r._$litPart$;if(s===void 0){let c=i?.renderBefore??null;r._$litPart$=s=new se(e.insertBefore(me(),c),c,void 0,i??{})}return s._$AI(o),s};var ci=null,Ui={boundAttributeSuffix:O.M,marker:O.P,markerMatch:O.A,HTML_RESULT:O.C,getTemplateHtml:O.L,overrideDirectiveResolve:(o,e)=>class extends o{_$AS(i,r){return e(this,r)}},patchDirectiveResolve:(o,e)=>{if(o.prototype._$AS.name!==e.name){ci??=o.prototype._$AS.name;for(let i=o.prototype;i!==Object.prototype;i=Object.getPrototypeOf(i))if(i.hasOwnProperty(ci))return void(i[ci]=e);throw Error("Internal error: It is possible that both dev mode and production mode Lit was mixed together during SSR. Please comment on the issue: https://github.com/lit/lit/issues/4527")}},setDirectiveClass(o,e){o._$litDirective$=e},getAttributePartCommittedValue:(o,e,i)=>{let r=j;return o.j=s=>r=s,o._$AI(e,o,i),r},connectedDisconnectable:o=>({...o,_$AU:!0}),resolveDirective:O.V,AttributePart:O.H,PropertyPart:O.B,BooleanAttributePart:O.N,EventPart:O.U,ElementPart:O.F,TemplateInstance:O.R,isIterable:O.D,ChildPart:O.I};var le={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6};var{I:Sa}=O;var Vi=o=>o===null||typeof o!="object"&&typeof o!="function";var Gi=(o,e)=>e===void 0?o?._$litType$!==void 0:o?._$litType$===e,Ki=o=>o?._$litType$?.h!=null;var Xi=o=>o.strings===void 0;var{TemplateInstance:vr,isIterable:wr,resolveDirective:Ji,ChildPart:$e,ElementPart:Sr}=Ui,Zi=(o,e,i={})=>{if(e._$litPart$!==void 0)throw Error("container already contains a live render");let r,s,c,p=[],m=document.createTreeWalker(e,NodeFilter.SHOW_COMMENT),g;for(;(g=m.nextNode())!==null;){let f=g.data;if(f.startsWith("lit-part")){if(p.length===0&&r!==void 0)throw Error(`There must be only one root part per container. Found a part marker (${g}) when we already have a root part marker (${s})`);c=Tr(o,g,p,i),r===void 0&&(r=c),s??=g}else if(f.startsWith("lit-node"))Er(g,p,i);else if(f.startsWith("/lit-part")){if(p.length===1&&c!==r)throw Error("internal error");c=zr(g,c,p)}}if(r===void 0){let f=e instanceof ShadowRoot?"{container.host.localName}'s shadow root":e instanceof DocumentFragment?"DocumentFragment":e.localName;console.error(`There should be exactly one root part in a render container, but we didn't find any in ${f}.`)}e._$litPart$=r},Tr=(o,e,i,r)=>{let s,c;if(i.length===0)c=new $e(e,null,void 0,r),s=o;else{let p=i[i.length-1];if(p.type==="template-instance")c=new $e(e,null,p.instance,r),p.instance._$AV.push(c),s=p.result.values[p.instancePartIndex++],p.templatePartIndex++;else if(p.type==="iterable"){c=new $e(e,null,p.part,r);let m=p.iterator.next();if(m.done)throw s=void 0,p.done=!0,Error("Unhandled shorter than expected iterable");s=m.value,p.part._$AH.push(c)}else c=new $e(e,null,p.part,r)}if(s=Ji(c,s),s===j)i.push({part:c,type:"leaf"});else if(Vi(s))i.push({part:c,type:"leaf"}),c._$AH=s;else if(Gi(s)){if(Ki(s))throw Error("compiled templates are not supported");let p="lit-part "+Mr(s);if(e.data!==p)throw Error("Hydration value mismatch: Unexpected TemplateResult rendered to part");{let m=$e.prototype._$AC(s),g=new vr(m,c);i.push({type:"template-instance",instance:g,part:c,templatePartIndex:0,instancePartIndex:0,result:s}),c._$AH=g}}else wr(s)?(i.push({part:c,type:"iterable",value:s,iterator:s[Symbol.iterator](),done:!1}),c._$AH=[]):(i.push({part:c,type:"leaf"}),c._$AH=s??"");return c},zr=(o,e,i)=>{if(e===void 0)throw Error("unbalanced part marker");e._$AB=o;let r=i.pop();if(r.type==="iterable"&&!r.iterator.next().done)throw Error("unexpected longer than expected iterable");if(i.length>0)return i[i.length-1].part},Er=(o,e,i)=>{let r=/lit-node (\d+)/.exec(o.data),s=parseInt(r[1]),c=o.nextElementSibling;if(c===null)throw Error("could not find node for attribute parts");c.removeAttribute("defer-hydration");let p=e[e.length-1];if(p.type!=="template-instance")throw Error("Hydration value mismatch: Primitive found where TemplateResult expected. This usually occurs due to conditional rendering that resulted in a different value or template being rendered between the server and client.");{let m=p.instance;for(;;){let g=m._$AD.parts[p.templatePartIndex];if(g===void 0||g.type!==le.ATTRIBUTE&&g.type!==le.ELEMENT||g.index!==s)break;if(g.type===le.ATTRIBUTE){let f=new g.ctor(c,g.name,g.strings,p.instance,i),A=Xi(f)?p.result.values[p.instancePartIndex]:p.result.values,z=!(f.type===le.EVENT||f.type===le.PROPERTY);f._$AI(A,f,p.instancePartIndex,z),p.instancePartIndex+=g.strings.length-1,m._$AV.push(f)}else{let f=new Sr(c,p.instance,i);Ji(f,p.result.values[p.instancePartIndex++]),m._$AV.push(f)}p.templatePartIndex++}}},Yi=new WeakMap,Mr=o=>{let e=Yi.get(o.strings);if(e!==void 0)return e;let i=new Uint32Array(2).fill(5381);for(let s of o.strings)for(let c=0;c<s.length;c++)i[c%2]=33*i[c%2]^s.charCodeAt(c);let r=String.fromCharCode(...new Uint8Array(i.buffer));return e=btoa(r),Yi.set(o.strings,e),e};globalThis.litElementHydrateSupport=({LitElement:o})=>{let e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(o),"observedAttributes").get;Object.defineProperty(o,"observedAttributes",{get(){return[...e.call(this),"defer-hydration"]}});let i=o.prototype.attributeChangedCallback;o.prototype.attributeChangedCallback=function(p,m,g){p==="defer-hydration"&&g===null&&r.call(this),i.call(this,p,m,g)};let r=o.prototype.connectedCallback;o.prototype.connectedCallback=function(){this.hasAttribute("defer-hydration")||r.call(this)};let s=o.prototype.createRenderRoot;o.prototype.createRenderRoot=function(){return this.shadowRoot?(this._$AG=!0,this.shadowRoot):s.call(this)};let c=Object.getPrototypeOf(o.prototype).update;o.prototype.update=function(p){let m=this.render();if(c.call(this,p),this._$AG){this._$AG=!1;for(let g of this.getAttributeNames())if(g.startsWith("hydrate-internals-")){let f=g.slice(18);this.removeAttribute(f),this.removeAttribute(g)}Zi(m,this.renderRoot,this.renderOptions)}else fe(m,this.renderRoot,this.renderOptions)}};var pi=["impakt-highlight","impakt-process-line","impakt-section-head","impakt-stage-tag","impakt-service-card","impakt-stat-row","impakt-work-list","[data-reveal]"].join(", "),de="data-motion";function Qi(o=document){let e=o.defaultView;return e&&e.getComputedStyle(o.documentElement).getPropertyValue("--impakt-motion-reveal-mode").trim()||"none"}function ui(o=document){let e=o.defaultView;return!e||typeof e.IntersectionObserver!="function"||e.matchMedia?.("(prefers-reduced-motion: reduce)").matches?!1:Qi(o)==="once"}function mi(o){let e=[],i=r=>{r.nodeType===1&&r.matches(pi)&&e.push(r);for(let s of Array.from(r.querySelectorAll("*")))s.matches(pi)&&e.push(s),s.shadowRoot&&i(s.shadowRoot)};return i(o),[...new Set(e)]}var xe=(o,e)=>{let i=o.trim();if(!i)return e;let r=parseFloat(i);return Number.isFinite(r)?i.endsWith("ms")?r:i.endsWith("s")?r*1e3:r:e};function Ar(o){let e=o.match(/cubic-bezier\(([^)]+)\)/),[i,r,s,c]=e?e[1].split(",").map(m=>parseFloat(m)):[.22,1,.36,1],p=(m,g,f)=>3*m*(1-f)*(1-f)*f+3*g*(1-f)*f*f+f*f*f;return m=>{if(m<=0)return 0;if(m>=1)return 1;let g=0,f=1,A=m;for(let z=0;z<30;z++){let P=p(i,s,A);if(Math.abs(P-m)<1e-5)break;P<m?g=A:f=A,A=(g+f)/2}return p(r,c,A)}}function Cr(o){let e=[],i=r=>e.push(...Array.from(r.querySelectorAll("[data-ik-count]")));return o.matches("[data-ik-count]")?e.push(o):o.matches('[data-reveal~="count"]')&&(o.setAttribute("data-ik-count",""),e.push(o)),i(o),o.shadowRoot&&i(o.shadowRoot),e}var Lr=/\d[\d,]*(?:\.\d+)?/,Rr=/\d[\d,]*(?:\.\d+)?/g;function Ir(o,e,i){let r=o.getAttribute("data-ik-count")==="text",s=r?_r(o):null,c=(r?s?.data:o.textContent)?.replace(/\s+/g," ").trim()??"",p=[...c.matchAll(Rr)].sort((he,G)=>parseFloat(G[0].replace(/,/g,""))-parseFloat(he[0].replace(/,/g,"")))[0];if(!p||r&&!s)return Promise.resolve();let m=p[0],g=parseFloat(m.replace(/,/g,"")),f=(m.split(".")[1]??"").length,A=m.includes(","),z=i.getComputedStyle(o),P=xe(z.getPropertyValue("--ik-count-duration"),xe(z.getPropertyValue("--impakt-motion-reveal-count-duration"),900)),L=Ar(z.getPropertyValue("--impakt-motion-reveal-arrive")),B=s?.data??"",F=s?B.lastIndexOf(m,B.length):0,ne=he=>{let G=he.toFixed(f);A&&(G=Number(G).toLocaleString("en-GB",{minimumFractionDigits:f,maximumFractionDigits:f})),s?s.data=B.slice(0,F)+G+B.slice(F+m.length):o.setAttribute("data-count",c.slice(0,p.index)+G+c.slice(p.index+m.length))},xr=()=>{s?s.data=B:o.removeAttribute("data-count")};return ne(0),new Promise(he=>{let G=0,Ri=Ii=>{G||(G=Ii+e);let ri=(Ii-G)/P;if(ri>=1||!o.isConnected){xr(),he();return}ne(ri<=0?0:g*L(ri)),i.requestAnimationFrame(Ri)};i.requestAnimationFrame(Ri)})}function _r(o){let e=o.ownerDocument.createTreeWalker(o,NodeFilter.SHOW_TEXT);for(let i=e.nextNode();i;i=e.nextNode())if(Lr.test(i.data))return i;return null}function gi(o){o.setAttribute(de,"armed"),o.matches('[data-reveal~="drop"]')&&Array.from(o.children).forEach((e,i)=>e.style.setProperty("--ik-reveal-i",String(i)))}function hi(o){o.removeAttribute(de),o.style?.removeProperty("--ik-reveal-delay")}function Hr(o){let e=new Set(o.getAnimations?.({subtree:!0})??[]);for(let i of o.shadowRoot?.getAnimations?.()??[])e.add(i);return[...e]}function er(o,e,i){o.hasAttribute(de)||gi(o),o.style.setProperty("--ik-reveal-delay",`${Math.round(e)}ms`),o.setAttribute(de,"play");let r=Cr(o).map(s=>{let c=Number(i.getComputedStyle(s).getPropertyValue("--i"))||0,p=xe(i.getComputedStyle(s).getPropertyValue("--impakt-motion-reveal-stagger"),60);return Ir(s,e+c*p,i)});return new Promise(s=>{i.requestAnimationFrame(()=>{let c=new Promise(m=>i.setTimeout(m,e+4e3)),p=Promise.all([...Hr(o).map(m=>m.finished.catch(()=>{})),...r]);Promise.race([p,c]).then(()=>{hi(o),s()})})})}var tr=(o,e)=>Math.abs(o.top-e.top)>4?o.top-e.top:o.left-e.left;function Be(o=document){let e=o.defaultView;if(!e||e.__impaktReveal||!ui(o))return;let i=new Set,r=()=>e.innerHeight||o.documentElement.clientHeight,s=()=>xe(e.getComputedStyle(o.documentElement).getPropertyValue("--impakt-motion-reveal-stagger"),60),c=L=>{let B=L.map(F=>({el:F,box:F.getBoundingClientRect()}));B.sort((F,ne)=>tr(F.box,ne.box)),B.forEach(({el:F},ne)=>{i.delete(F),m.unobserve(F),g.unobserve(F),er(F,Math.min(ne,8)*s(),e)})},p=L=>c(L.filter(B=>B.isIntersecting&&i.has(B.target)).map(B=>B.target)),m=new e.IntersectionObserver(p,{rootMargin:"0px 0px -50% 0px"}),g=new e.IntersectionObserver(p,{threshold:.98}),f=0,A=()=>{f||(f=e.requestAnimationFrame(()=>{f=0;for(let L of i)L.getBoundingClientRect().bottom<0&&(i.delete(L),m.unobserve(L),g.unobserve(L),hi(L))}))},z=(e.performance?.getEntriesByType?.("paint")??[]).length>0;for(let L of mi(o)){if(L.hasAttribute(de))continue;let B=L.getBoundingClientRect();B.width===0&&B.height===0||B.bottom<0||B.top<r()&&z||(gi(L),i.add(L),m.observe(L),g.observe(L))}let P=()=>{m.disconnect(),g.disconnect(),e.removeEventListener("scroll",A);for(let L of i)hi(L);i.clear()};e.addEventListener("scroll",A,{passive:!0}),e.matchMedia?.("(prefers-reduced-motion: reduce)").addEventListener?.("change",L=>{L.matches&&P()}),e.__impaktReveal={armed:i,stop:P}}function Br(o=document){let e=o.nodeType===9?o:o.ownerDocument,i=e.defaultView;if(!i||!ui(e))return Promise.resolve();let r=mi(o);return r.forEach(gi),new Promise(s=>i.requestAnimationFrame(()=>{let c=r.map(m=>({el:m,box:m.getBoundingClientRect()})).sort((m,g)=>tr(m.box,g.box)),p=xe(i.getComputedStyle(e.documentElement).getPropertyValue("--impakt-motion-reveal-stagger"),60);Promise.all(c.map(({el:m},g)=>er(m,g*p,i))).then(()=>s())}))}var Ne=globalThis,Pe=Ne.ShadowRoot&&(Ne.ShadyCSS===void 0||Ne.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bi=Symbol(),ir=new WeakMap,ye=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==bi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o,i=this.t;if(Pe&&e===void 0){let r=i!==void 0&&i.length===1;r&&(e=ir.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&ir.set(i,e))}return e}toString(){return this.cssText}},R=o=>new ye(typeof o=="string"?o:o+"",void 0,bi),u=(o,...e)=>{let i=o.length===1?o[0]:e.reduce((r,s,c)=>r+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+o[c+1],o[0]);return new ye(i,o,bi)},rr=(o,e)=>{if(Pe)o.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(let i of e){let r=document.createElement("style"),s=Ne.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=i.cssText,o.appendChild(r)}},fi=Pe?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let i="";for(let r of e.cssRules)i+=r.cssText;return R(i)})(o):o;var{is:Nr,defineProperty:Pr,getOwnPropertyDescriptor:Or,getOwnPropertyNames:Dr,getOwnPropertySymbols:qr,getPrototypeOf:Fr}=Object,Oe=globalThis,ar=Oe.trustedTypes,jr=ar?ar.emptyScript:"",Wr=Oe.reactiveElementPolyfillSupport,ke=(o,e)=>o,$i={toAttribute(o,e){switch(e){case Boolean:o=o?jr:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let i=o;switch(e){case Boolean:i=o!==null;break;case Number:i=o===null?null:Number(o);break;case Object:case Array:try{i=JSON.parse(o)}catch{i=null}}return i}},nr=(o,e)=>!Nr(o,e),or={attribute:!0,type:String,converter:$i,reflect:!1,useDefault:!1,hasChanged:nr};Symbol.metadata??=Symbol("metadata"),Oe.litPropertyMetadata??=new WeakMap;var Y=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=or){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(e,r,i);s!==void 0&&Pr(this.prototype,e,s)}}static getPropertyDescriptor(e,i,r){let{get:s,set:c}=Or(this.prototype,e)??{get(){return this[i]},set(p){this[i]=p}};return{get:s,set(p){let m=s?.call(this);c?.call(this,p),this.requestUpdate(e,m,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??or}static _$Ei(){if(this.hasOwnProperty(ke("elementProperties")))return;let e=Fr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ke("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ke("properties"))){let i=this.properties,r=[...Dr(i),...qr(i)];for(let s of r)this.createProperty(s,i[s])}let e=this[Symbol.metadata];if(e!==null){let i=litPropertyMetadata.get(e);if(i!==void 0)for(let[r,s]of i)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[i,r]of this.elementProperties){let s=this._$Eu(i,r);s!==void 0&&this._$Eh.set(s,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let i=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let s of r)i.unshift(fi(s))}else e!==void 0&&i.push(fi(e));return i}static _$Eu(e,i){let r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,i=this.constructor.elementProperties;for(let r of i.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return rr(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,i,r){this._$AK(e,r)}_$ET(e,i){let r=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,r);if(s!==void 0&&r.reflect===!0){let c=(r.converter?.toAttribute!==void 0?r.converter:$i).toAttribute(i,r.type);this._$Em=e,c==null?this.removeAttribute(s):this.setAttribute(s,c),this._$Em=null}}_$AK(e,i){let r=this.constructor,s=r._$Eh.get(e);if(s!==void 0&&this._$Em!==s){let c=r.getPropertyOptions(s),p=typeof c.converter=="function"?{fromAttribute:c.converter}:c.converter?.fromAttribute!==void 0?c.converter:$i;this._$Em=s;let m=p.fromAttribute(i,c.type);this[s]=m??this._$Ej?.get(s)??m,this._$Em=null}}requestUpdate(e,i,r,s=!1,c){if(e!==void 0){let p=this.constructor;if(s===!1&&(c=this[e]),r??=p.getPropertyOptions(e),!((r.hasChanged??nr)(c,i)||r.useDefault&&r.reflect&&c===this._$Ej?.get(e)&&!this.hasAttribute(p._$Eu(e,r))))return;this.C(e,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:r,reflect:s,wrapped:c},p){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,p??i??this[e]),c!==!0||p!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(i=void 0),this._$AL.set(e,i)),s===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,c]of this._$Ep)this[s]=c;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[s,c]of r){let{wrapped:p}=c,m=this[s];p!==!0||this._$AL.has(s)||m===void 0||this.C(s,void 0,c,m)}}let e=!1,i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(i)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(i)}willUpdate(e){}_$AE(e){this._$EO?.forEach(i=>i.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(i=>this._$ET(i,this[i])),this._$EM()}updated(e){}firstUpdated(e){}};Y.elementStyles=[],Y.shadowRootOptions={mode:"open"},Y[ke("elementProperties")]=new Map,Y[ke("finalized")]=new Map,Wr?.({ReactiveElement:Y}),(Oe.reactiveElementVersions??=[]).push("2.1.2");var xi=globalThis,J=class extends Y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=fe(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return j}};J._$litElement$=!0,J.finalized=!0,xi.litElementHydrateSupport?.({LitElement:J});var Ur=xi.litElementPolyfillSupport;Ur?.({LitElement:J});(xi.litElementVersions??=[]).push("4.2.2");var l=(o,e)=>R(`var(--impakt-${o.replace(/\./g,"-")}, ${e})`),t={brand:l("color.brand.default","#1f4ed8"),brandHover:l("color.brand.hover","#1b45be"),brandActive:l("color.brand.active","#183ba4"),brandSubtle:l("color.brand.subtle","#e4eafa"),onBrand:l("color.text.on-brand","#ffffff"),surfaceCard:l("color.surface.card","#ffffff"),surfaceInset:l("color.surface.inset","#f4f4f4"),surfaceSubtle:l("color.surface.subtle","#e4eafa"),text:l("color.text.default","#1a1a1a"),textMuted:l("color.text.muted","#717171"),textPlaceholder:l("color.text.placeholder","#767676"),textHeading:l("color.text.heading","#1f4ed8"),link:l("color.text.link","#1f4ed8"),linkHover:l("color.text.link-hover","#193ead"),border:l("color.border.default","#929292"),borderStrong:l("color.border.strong","#818181"),danger:l("color.status.danger.default","#c8102e"),dangerText:l("color.status.danger.text","#c8102e"),dangerSubtle:l("color.status.danger.subtle","#f8e2e6"),warning:l("color.status.warning.default","#b45309"),warningText:l("color.status.warning.text","#b45309"),warningSubtle:l("color.status.warning.subtle","#f6eae1"),success:l("color.status.success.default","#047857"),successText:l("color.status.success.text","#047857"),successSubtle:l("color.status.success.subtle","#e0f0ea"),info:l("color.status.info.default","#1f4ed8"),infoText:l("color.status.info.text","#1f4ed8"),infoSubtle:l("color.status.info.subtle","#e4eafa"),fontBody:l("font.family.body","system-ui, sans-serif"),fontHeading:l("font.family.heading","system-ui, sans-serif"),fontMono:l("font.family.mono","ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"),fontEyebrow:l("font.family.eyebrow","inherit"),focusShadow:l("focus.ring.shadow","0 0 0 2px #ffffff, 0 0 0 4px #1a1a1a"),focusOffset:l("focus.ring.offset","2px"),targetMin:l("target.min","24px"),radiusSm:l("radius.sm","2px"),radius:l("radius.md","4px"),radiusLg:l("radius.lg","8px"),borderThin:l("border.width.thin","1px"),borderThick:l("border.width.thick","2px"),radiusXs:l("radius.xs","2px"),radiusXl:l("radius.xl","12px"),radius2xl:l("radius.2xl","16px"),hairline:R("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 10%, transparent)"),rule:R("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 15%, transparent)"),wash:R("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 5%, transparent)"),brandHalo:R("color-mix(in srgb, var(--impakt-color-brand-default, #1f4ed8) 22%, transparent)"),shadowXs:l("shadow.xs","0 1px 2px 0 rgb(0 0 0 / 0.05)"),shadowSm:l("shadow.sm","0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"),shadowMd:l("shadow.md","0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"),shadowLg:l("shadow.lg","0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"),shadowXl:l("shadow.xl","0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"),trackingTight:l("font.tracking.tight","-0.02em"),trackingWide:l("font.tracking.wide","0.06em")},w=o=>R(`font-size: var(--impakt-font-size-${o}, 1rem); line-height: var(--impakt-font-leading-${o}, 1.5);`),a=o=>l(`space.${String(o).replace(".","-")}`,`${o*4}px`),$=o=>l(`font.size.${o}`,"1rem"),W=o=>l(`font.line-height.${o}`,"1.5"),b=o=>l(`font.weight.${o}`,"400"),D=u`
5
5
  :host([space-above='sm']) { margin-block-start: ${a(2)}; }
6
6
  :host([space-above='md']) { margin-block-start: ${a(4)}; }
7
7
  :host([space-above='lg']) { margin-block-start: ${a(6)}; }
@@ -19,7 +19,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
19
19
  outline-offset: ${t.focusOffset};
20
20
  box-shadow: ${t.focusShadow};
21
21
  }
22
- `,z=u`
22
+ `,E=u`
23
23
  min-block-size: ${t.targetMin};
24
24
  min-inline-size: ${t.targetMin};
25
25
  `,T=u`
@@ -32,7 +32,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
32
32
  clip-path: inset(50%);
33
33
  white-space: nowrap;
34
34
  border: 0;
35
- `,Oi=u`
35
+ `,sr=u`
36
36
  @media (prefers-reduced-motion: reduce) {
37
37
  :host,
38
38
  :host *,
@@ -44,7 +44,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
44
44
  scroll-behavior: auto !important;
45
45
  }
46
46
  }
47
- `,qi=u`
47
+ `,lr=u`
48
48
  :host {
49
49
  box-sizing: border-box;
50
50
  font-family: ${t.fontBody};
@@ -58,15 +58,73 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
58
58
  *::after {
59
59
  box-sizing: inherit;
60
60
  }
61
- `,C=n=>L(`@media (pointer: coarse) { :host :is(${n}) { min-block-size: 44px; min-inline-size: 44px; } }`),Di=u`
61
+ `,I=o=>R(`@media (pointer: coarse) { :host :is(${o}) { min-block-size: 44px; min-inline-size: 44px; } }`),dr=u`
62
62
  @media (max-width: 40rem) { :host([hide-on='phone']) { display: none !important; } }
63
63
  @media (min-width: 40.0625rem) { :host([hide-on='wide']) { display: none !important; } }
64
- `;var br=Symbol.for("strata.wording");function S(n,e){let r=globalThis[br]?.words?.[n],s=typeof r=="string"&&r.trim()?r:n;return e?s.replace(/\{(\w+)\}/g,(c,p)=>p in e?String(e[p]):c):s}var fr=0,h=class extends W{constructor(){super(...arguments);this.uid=`impakt-${fr+=1}`}static{this.styles=[qi,Oi,u``]}id_(i){return`${this.uid}-${i}`}connectedCallback(){super.connectedCallback(),this.sayDefaults()}sayDefaults(){let i=this.constructor.elementProperties,r=this;for(let s of i.keys()){let c=r[s];if(typeof c!="string"||!c)continue;let p=S(c);p!==c&&(r[s]=p)}}};var si={"arrow-right":y`<path d="M5 12h14M13 6l6 6-6 6"/>`,"arrow-left":y`<path d="M19 12H5M11 6l-6 6 6 6"/>`,"chevron-right":y`<path d="M9 6l6 6-6 6"/>`,"chevron-down":y`<path d="M6 9l6 6 6-6"/>`,check:y`<path d="M5 12.5l4.5 4.5L19 7"/>`,close:y`<path d="M6 6l12 12M18 6L6 18"/>`,menu:y`<path d="M4 7h16M4 12h16M4 17h16"/>`,"menu-two":y`<path d="M5 9.5h14M5 14.5h14"/>`,plus:y`<path d="M12 5v14M5 12h14"/>`,minus:y`<path d="M5 12h14"/>`,search:y`<circle cx="11" cy="11" r="6.5"/><path d="M16 16l4 4"/>`,external:y`<path d="M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"/>`,download:y`<path d="M12 4v11M7 10l5 5 5-5M5 20h14"/>`,home:y`<path d="M4 11l8-7 8 7M6 9.5V20h12V9.5"/><path d="M10 20v-6h4v6"/>`,phone:y`<path d="M7 3.5h3l1.5 4-2 1.5a11 11 0 0 0 5.5 5.5l1.5-2 4 1.5v3a2 2 0 0 1-2 2A16 16 0 0 1 5 5.5a2 2 0 0 1 2-2z"/>`,mail:y`<rect x="3.5" y="5.5" width="17" height="13" rx="1.5"/><path d="M4 7l8 6 8-6"/>`,"map-pin":y`<path d="M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11z"/><circle cx="12" cy="10" r="2.5"/>`,calendar:y`<rect x="4" y="5.5" width="16" height="14.5" rx="1.5"/><path d="M4 10h16M8.5 3.5v4M15.5 3.5v4"/>`,clock:y`<circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/>`,user:y`<circle cx="12" cy="8.5" r="3.5"/><path d="M5 20a7 7 0 0 1 14 0"/>`,star:y`<path d="M12 4l2.4 5 5.4.6-4 3.7 1.1 5.4L12 16l-4.9 2.7 1.1-5.4-4-3.7 5.4-.6z"/>`,heart:y`<path d="M12 19.5s-7.5-4.6-7.5-10A4 4 0 0 1 12 7a4 4 0 0 1 7.5 2.5c0 5.4-7.5 10-7.5 10z"/>`,shield:y`<path d="M12 3.5l7 2.5v5.5c0 4.5-3 7.8-7 9-4-1.2-7-4.5-7-9V6z"/><path d="M9 12l2 2 4-4"/>`,leaf:y`<path d="M5 19c0-8 5-13 14-14 0 9-5 14-13 14z"/><path d="M5 19l7-7"/>`,sun:y`<circle cx="12" cy="12" r="3.5"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6L7 7M17 17l1.4 1.4M5.6 18.4L7 17M17 7l1.4-1.4"/>`,bolt:y`<path d="M13 3L5 13.5h6L10 21l8-10.5h-6z"/>`,key:y`<circle cx="8" cy="15" r="3.5"/><path d="M10.5 12.5L19 4M16 7l2.5 2.5M14 9l2 2"/>`,info:y`<circle cx="12" cy="12" r="8.5"/><path d="M12 11v5.5M12 7.5v.5"/>`,warning:y`<path d="M12 4l9 15.5H3z"/><path d="M12 10v4M12 16.5v.5"/>`,document:y`<path d="M6 3.5h8l4 4V20a.5.5 0 0 1-.5.5h-11A.5.5 0 0 1 6 20z"/><path d="M14 3.5V8h4M9 13h6M9 16.5h6"/>`,pound:y`<path d="M16 6.5a3.5 3.5 0 0 0-6.5 1.8V20M7 13h7M7 20h10"/>`,chat:y`<path d="M4.5 5.5h15v10h-9l-4 3.5v-3.5h-2z"/>`,grid:y`<rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/>`,clipboard:y`<rect x="8" y="2" width="8" height="4" rx="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2M12 11h4M12 16h4M8 11h.01M8 16h.01"/>`,"map-pinned":y`<path d="M18 8c0 3.6-3.9 7.4-5.4 8.8a1 1 0 0 1-1.2 0C9.9 15.4 6 11.6 6 8a6 6 0 0 1 12 0"/><circle cx="12" cy="8" r="2"/><path d="M8.7 14H5a1 1 0 0 0-.9.7l-2 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .9-1.3l-2-6a1 1 0 0 0-.9-.7h-3.7"/>`,users:y`<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8"/>`,radio:y`<path d="M4.9 19.1C1 15.2 1 8.8 4.9 4.9M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5M19.1 4.9C23 8.8 23 15.1 19.1 19"/><circle cx="12" cy="12" r="2"/>`,settings:y`<path d="M12.2 2h-.4a2 2 0 0 0-2 2v.2a2 2 0 0 1-1 1.7l-.4.3a2 2 0 0 1-2 0l-.2-.1a2 2 0 0 0-2.7.7l-.2.4a2 2 0 0 0 .7 2.7l.2.1a2 2 0 0 1 1 1.7v.5a2 2 0 0 1-1 1.8l-.2.1a2 2 0 0 0-.7 2.7l.2.4a2 2 0 0 0 2.7.7l.2-.1a2 2 0 0 1 2 0l.4.3a2 2 0 0 1 1 1.7v.2a2 2 0 0 0 2 2h.4a2 2 0 0 0 2-2v-.2a2 2 0 0 1 1-1.7l.4-.3a2 2 0 0 1 2 0l.2.1a2 2 0 0 0 2.7-.7l.2-.4a2 2 0 0 0-.7-2.7l-.2-.1a2 2 0 0 1-1-1.8v-.5a2 2 0 0 1 1-1.7l.2-.1a2 2 0 0 0 .7-2.7l-.2-.4a2 2 0 0 0-2.7-.7l-.2.1a2 2 0 0 1-2 0l-.4-.3a2 2 0 0 1-1-1.7V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/>`,"log-out":y`<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9"/>`,"arrow-up-right":y`<path d="M7 7h10v10M7 17L17 7"/>`,more:y`<circle cx="5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/>`,upload:y`<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12"/>`,image:y`<rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="9" cy="9" r="2"/><path d="M21 15l-3.1-3.1a2 2 0 0 0-2.8 0L6 21"/>`,lock:y`<rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>`,eye:y`<path d="M2.1 12.3a1 1 0 0 1 0-.7 10.8 10.8 0 0 1 19.8 0 1 1 0 0 1 0 .7 10.8 10.8 0 0 1-19.8 0"/><circle cx="12" cy="12" r="3"/>`,trash:y`<path d="M3 6h18M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2M10 11v6M14 11v6"/>`,pencil:y`<path d="M21.2 6.8a1 1 0 0 0-4-4L3.8 16.2a2 2 0 0 0-.5.8L2 21.4a.5.5 0 0 0 .6.6l4.4-1.3a2 2 0 0 0 .8-.5zM15 5l4 4"/>`,"qr-code":y`<rect x="3" y="3" width="5" height="5" rx="1"/><rect x="16" y="3" width="5" height="5" rx="1"/><rect x="3" y="16" width="5" height="5" rx="1"/><path d="M21 16h-3a2 2 0 0 0-2 2v3M21 21v.01M12 7v3a2 2 0 0 1-2 2H7M3 12h.01M12 3h.01M12 16v.01M16 12h1M21 12v.01M12 21v-1"/>`,battery:y`<rect x="2" y="7" width="16" height="10" rx="2"/><path d="M22 11v2M6 11v2M10 11v2"/>`},$r=Object.keys(si);function M(n,e="1.25em"){let i=n?si[n]:void 0;return i?o`<svg class="icon" viewBox="0 0 24 24" width=${e} height=${e} fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${i}</svg>`:l}var Ie=class extends h{static{this.properties={name:{type:String,reflect:!0},label:{type:String},size:{type:String,reflect:!0},tone:{type:String,reflect:!0}}}constructor(){super(),this.name="star",this.label="",this.size="md",this.tone="inherit"}static{this.styles=[...h.styles,u`
64
+ `;var Vr=Symbol.for("strata.wording");function S(o,e){let r=globalThis[Vr]?.words?.[o],s=typeof r=="string"&&r.trim()?r:o;return e?s.replace(/\{(\w+)\}/g,(c,p)=>p in e?String(e[p]):c):s}var Gr=0,h=class extends J{constructor(){super(...arguments);this.uid=`impakt-${Gr+=1}`}static{this.styles=[lr,sr,u``]}id_(i){return`${this.uid}-${i}`}connectedCallback(){super.connectedCallback(),this.sayDefaults()}sayDefaults(){let i=this.constructor.elementProperties,r=this;for(let s of i.keys()){let c=r[s];if(typeof c!="string"||!c)continue;let p=S(c);p!==c&&(r[s]=p)}}};var q={arrive:l("motion.reveal.arrive","cubic-bezier(0.22, 1, 0.36, 1)"),shape:l("motion.reveal.shape","cubic-bezier(0.65, 0, 0.35, 1)"),stagger:l("motion.reveal.stagger","60ms"),select:l("motion.reveal.select.duration","260ms"),line:l("motion.reveal.line.duration","640ms"),type:l("motion.reveal.type.duration","240ms"),drop:l("motion.reveal.drop.duration","420ms"),dropDistance:l("motion.reveal.drop.distance","12px"),count:l("motion.reveal.count.duration","900ms"),mark:l("motion.reveal.mark.duration","180ms"),arrowDistance:l("motion.reveal.arrow.distance","0px"),arrowDuration:l("motion.reveal.arrow.duration","160ms"),arrowEasing:l("motion.reveal.arrow.easing","ease-out"),linkDistance:l("motion.reveal.link.distance","2px"),linkDuration:l("motion.reveal.link.duration","120ms"),linkEasing:l("motion.reveal.link.easing","ease-in-out"),wipeFrom:l("motion.reveal.wipe.from","1"),wipeDuration:l("motion.reveal.wipe.duration","140ms"),wipeEasing:l("motion.reveal.wipe.easing","ease-out"),lead:l("motion.reveal.lead","0ms")},yi=(o="var(--i, 0)",e="0ms")=>R(`calc(var(--ik-reveal-delay, 0ms) + ${o} * var(--impakt-motion-reveal-stagger, 60ms) + ${e})`),ki=u`
65
+ :host([data-motion='armed']),
66
+ :host([data-motion='armed']) *,
67
+ :host([data-motion='armed']) *::before,
68
+ :host([data-motion='armed']) *::after {
69
+ animation-play-state: paused !important;
70
+ }
71
+ [data-ik-count][data-count] {
72
+ position: relative;
73
+ -webkit-text-fill-color: transparent;
74
+ }
75
+ [data-ik-count][data-count]::after {
76
+ content: attr(data-count);
77
+ content: attr(data-count) / '';
78
+ position: absolute;
79
+ inset: 0;
80
+ -webkit-text-fill-color: currentColor;
81
+ white-space: nowrap;
82
+ pointer-events: none;
83
+ }
84
+ @keyframes ik-reveal-type {
85
+ from {
86
+ clip-path: inset(-4px 100% -4px -4px);
87
+ }
88
+ to {
89
+ clip-path: inset(-4px -4px -4px -4px);
90
+ }
91
+ }
92
+ @keyframes ik-reveal-drop {
93
+ from {
94
+ translate: 0 calc(-1 * var(--impakt-motion-reveal-drop-distance, 12px));
95
+ opacity: 0;
96
+ }
97
+ }
98
+ @keyframes ik-reveal-settle {
99
+ from {
100
+ border-block-end-color: transparent;
101
+ }
102
+ }
103
+ @keyframes ik-reveal-fade {
104
+ from {
105
+ opacity: 0;
106
+ }
107
+ }
108
+ @keyframes ik-reveal-mark {
109
+ from {
110
+ opacity: 0;
111
+ scale: 0.4;
112
+ }
113
+ }
114
+ @media (prefers-reduced-motion: reduce) {
115
+ :host([data-motion]),
116
+ :host([data-motion]) *,
117
+ :host([data-motion]) *::before,
118
+ :host([data-motion]) *::after {
119
+ animation: none !important;
120
+ }
121
+ }
122
+ `;var vi={"arrow-right":k`<path d="M5 12h14M13 6l6 6-6 6"/>`,"arrow-left":k`<path d="M19 12H5M11 6l-6 6 6 6"/>`,"chevron-right":k`<path d="M9 6l6 6-6 6"/>`,"chevron-down":k`<path d="M6 9l6 6 6-6"/>`,check:k`<path d="M5 12.5l4.5 4.5L19 7"/>`,close:k`<path d="M6 6l12 12M18 6L6 18"/>`,menu:k`<path d="M4 7h16M4 12h16M4 17h16"/>`,"menu-two":k`<path d="M5 9.5h14M5 14.5h14"/>`,plus:k`<path d="M12 5v14M5 12h14"/>`,minus:k`<path d="M5 12h14"/>`,search:k`<circle cx="11" cy="11" r="6.5"/><path d="M16 16l4 4"/>`,external:k`<path d="M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"/>`,download:k`<path d="M12 4v11M7 10l5 5 5-5M5 20h14"/>`,home:k`<path d="M4 11l8-7 8 7M6 9.5V20h12V9.5"/><path d="M10 20v-6h4v6"/>`,phone:k`<path d="M7 3.5h3l1.5 4-2 1.5a11 11 0 0 0 5.5 5.5l1.5-2 4 1.5v3a2 2 0 0 1-2 2A16 16 0 0 1 5 5.5a2 2 0 0 1 2-2z"/>`,mail:k`<rect x="3.5" y="5.5" width="17" height="13" rx="1.5"/><path d="M4 7l8 6 8-6"/>`,"map-pin":k`<path d="M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11z"/><circle cx="12" cy="10" r="2.5"/>`,calendar:k`<rect x="4" y="5.5" width="16" height="14.5" rx="1.5"/><path d="M4 10h16M8.5 3.5v4M15.5 3.5v4"/>`,clock:k`<circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/>`,user:k`<circle cx="12" cy="8.5" r="3.5"/><path d="M5 20a7 7 0 0 1 14 0"/>`,star:k`<path d="M12 4l2.4 5 5.4.6-4 3.7 1.1 5.4L12 16l-4.9 2.7 1.1-5.4-4-3.7 5.4-.6z"/>`,heart:k`<path d="M12 19.5s-7.5-4.6-7.5-10A4 4 0 0 1 12 7a4 4 0 0 1 7.5 2.5c0 5.4-7.5 10-7.5 10z"/>`,shield:k`<path d="M12 3.5l7 2.5v5.5c0 4.5-3 7.8-7 9-4-1.2-7-4.5-7-9V6z"/><path d="M9 12l2 2 4-4"/>`,leaf:k`<path d="M5 19c0-8 5-13 14-14 0 9-5 14-13 14z"/><path d="M5 19l7-7"/>`,sun:k`<circle cx="12" cy="12" r="3.5"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6L7 7M17 17l1.4 1.4M5.6 18.4L7 17M17 7l1.4-1.4"/>`,bolt:k`<path d="M13 3L5 13.5h6L10 21l8-10.5h-6z"/>`,key:k`<circle cx="8" cy="15" r="3.5"/><path d="M10.5 12.5L19 4M16 7l2.5 2.5M14 9l2 2"/>`,info:k`<circle cx="12" cy="12" r="8.5"/><path d="M12 11v5.5M12 7.5v.5"/>`,warning:k`<path d="M12 4l9 15.5H3z"/><path d="M12 10v4M12 16.5v.5"/>`,document:k`<path d="M6 3.5h8l4 4V20a.5.5 0 0 1-.5.5h-11A.5.5 0 0 1 6 20z"/><path d="M14 3.5V8h4M9 13h6M9 16.5h6"/>`,pound:k`<path d="M16 6.5a3.5 3.5 0 0 0-6.5 1.8V20M7 13h7M7 20h10"/>`,chat:k`<path d="M4.5 5.5h15v10h-9l-4 3.5v-3.5h-2z"/>`,grid:k`<rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/>`,clipboard:k`<rect x="8" y="2" width="8" height="4" rx="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2M12 11h4M12 16h4M8 11h.01M8 16h.01"/>`,"map-pinned":k`<path d="M18 8c0 3.6-3.9 7.4-5.4 8.8a1 1 0 0 1-1.2 0C9.9 15.4 6 11.6 6 8a6 6 0 0 1 12 0"/><circle cx="12" cy="8" r="2"/><path d="M8.7 14H5a1 1 0 0 0-.9.7l-2 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .9-1.3l-2-6a1 1 0 0 0-.9-.7h-3.7"/>`,users:k`<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8"/>`,radio:k`<path d="M4.9 19.1C1 15.2 1 8.8 4.9 4.9M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5M19.1 4.9C23 8.8 23 15.1 19.1 19"/><circle cx="12" cy="12" r="2"/>`,settings:k`<path d="M12.2 2h-.4a2 2 0 0 0-2 2v.2a2 2 0 0 1-1 1.7l-.4.3a2 2 0 0 1-2 0l-.2-.1a2 2 0 0 0-2.7.7l-.2.4a2 2 0 0 0 .7 2.7l.2.1a2 2 0 0 1 1 1.7v.5a2 2 0 0 1-1 1.8l-.2.1a2 2 0 0 0-.7 2.7l.2.4a2 2 0 0 0 2.7.7l.2-.1a2 2 0 0 1 2 0l.4.3a2 2 0 0 1 1 1.7v.2a2 2 0 0 0 2 2h.4a2 2 0 0 0 2-2v-.2a2 2 0 0 1 1-1.7l.4-.3a2 2 0 0 1 2 0l.2.1a2 2 0 0 0 2.7-.7l.2-.4a2 2 0 0 0-.7-2.7l-.2-.1a2 2 0 0 1-1-1.8v-.5a2 2 0 0 1 1-1.7l.2-.1a2 2 0 0 0 .7-2.7l-.2-.4a2 2 0 0 0-2.7-.7l-.2.1a2 2 0 0 1-2 0l-.4-.3a2 2 0 0 1-1-1.7V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/>`,"log-out":k`<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9"/>`,"arrow-up-right":k`<path d="M7 7h10v10M7 17L17 7"/>`,more:k`<circle cx="5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/>`,upload:k`<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12"/>`,image:k`<rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="9" cy="9" r="2"/><path d="M21 15l-3.1-3.1a2 2 0 0 0-2.8 0L6 21"/>`,lock:k`<rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>`,eye:k`<path d="M2.1 12.3a1 1 0 0 1 0-.7 10.8 10.8 0 0 1 19.8 0 1 1 0 0 1 0 .7 10.8 10.8 0 0 1-19.8 0"/><circle cx="12" cy="12" r="3"/>`,trash:k`<path d="M3 6h18M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2M10 11v6M14 11v6"/>`,pencil:k`<path d="M21.2 6.8a1 1 0 0 0-4-4L3.8 16.2a2 2 0 0 0-.5.8L2 21.4a.5.5 0 0 0 .6.6l4.4-1.3a2 2 0 0 0 .8-.5zM15 5l4 4"/>`,"qr-code":k`<rect x="3" y="3" width="5" height="5" rx="1"/><rect x="16" y="3" width="5" height="5" rx="1"/><rect x="3" y="16" width="5" height="5" rx="1"/><path d="M21 16h-3a2 2 0 0 0-2 2v3M21 21v.01M12 7v3a2 2 0 0 1-2 2H7M3 12h.01M12 3h.01M12 16v.01M16 12h1M21 12v.01M12 21v-1"/>`,battery:k`<rect x="2" y="7" width="16" height="10" rx="2"/><path d="M22 11v2M6 11v2M10 11v2"/>`},Kr=Object.keys(vi);function M(o,e="1.25em"){let i=o?vi[o]:void 0;return i?n`<svg class="icon" viewBox="0 0 24 24" width=${e} height=${e} fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${i}</svg>`:d}var De=class extends h{static{this.properties={name:{type:String,reflect:!0},label:{type:String},size:{type:String,reflect:!0},tone:{type:String,reflect:!0}}}constructor(){super(),this.name="star",this.label="",this.size="md",this.tone="inherit"}static{this.styles=[...h.styles,u`
65
123
  :host { display: inline-flex; vertical-align: middle; line-height: 0; }
66
124
  :host([tone='brand']) { color: ${t.brand}; }
67
125
  :host([tone='muted']) { color: ${t.textMuted}; }
68
126
  @media (forced-colors: active) { :host { color: CanvasText; } }
69
- `]}render(){let e={sm:"16px",md:"24px",lg:"32px",xl:"48px"}[this.size]??"24px",i=M(this.name,e);return this.label?o`<span role="img" aria-label=${this.label}>${i}</span>`:o`${i}`}};customElements.define("impakt-icon",Ie);var ni=d("color.text.inverse","var(--impakt-solid-card, var(--impakt-color-surface-card, #ffffff))"),E={height:d("button.height","40px"),paddingBlock:d("button.padding-block","8px"),paddingInline:d("button.padding-inline","16px"),gap:d("button.gap","8px"),fontSize:d("button.font-size","0.875rem"),lineHeight:d("button.line-height","1.429"),weight:d("button.weight","600"),smPaddingBlock:d("button.sm.padding-block","4px"),smHeight:d("button.sm.height","32px"),smPaddingInline:d("button.sm.padding-inline","12px"),smFontSize:d("button.sm.font-size","0.875rem"),smLineHeight:d("button.sm.line-height","1.429"),smGap:d("button.sm.gap","6px"),solidEdge:d("button.solid-edge-width","1px"),arrowIcon:d("button.arrow-icon","inline-block"),arrowGlyph:d("button.arrow-glyph","none"),lgHeight:d("button.lg.height","48px"),lgPaddingBlock:d("button.lg.padding-block","12px"),lgFontSize:d("button.lg.font-size","1rem"),lgLineHeight:d("button.lg.line-height","1.5"),iconSize:d("button.icon-size","40px"),lgIconSize:d("button.lg.icon-size","48px"),fullJustify:d("button.full.justify","center"),fullAlign:d("button.full.align","center"),highlight:d("button.highlight","inset 0 1px 0 0 rgb(255 255 255 / 0.12)"),edge:d("button.edge","15%")},xr=y`<svg class="glyph" viewBox="0 0 15 10" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="butt" stroke-linejoin="miter" aria-hidden="true" focusable="false"><path d="M0 5h14" /><path d="M9.75 0.75 14 5l-4.25 4.25" /></svg>`,Re=class extends h{constructor(){super();this.internals=null;this.hideOn="never",this.variant="primary",this.type="button",this.disabled=!1,this.busy=!1,this.busyLabel="Working",this.full=!1,this.fullOnPhone=!1,this.size="md",this.iconBefore="none",this.iconAfter="none",this.href="",this.icon="none",this.label="",this.spread=!1,this.centred=!1;try{this.internals=this.attachInternals()}catch{this.internals=null}}static{this.formAssociated=!0}static{this.properties={hideOn:{type:String,reflect:!0,attribute:"hide-on"},variant:{type:String,reflect:!0},type:{type:String},disabled:{type:Boolean,reflect:!0},busy:{type:Boolean,reflect:!0},busyLabel:{type:String,attribute:"busy-label"},full:{type:Boolean,reflect:!0},fullOnPhone:{type:Boolean,attribute:"full-on-phone",reflect:!0},size:{type:String,reflect:!0},iconBefore:{type:String,attribute:"icon-before"},iconAfter:{type:String,attribute:"icon-after"},href:{type:String},icon:{type:String},label:{type:String},spread:{type:Boolean,reflect:!0},centred:{type:Boolean,reflect:!0}}}static{this.styles=[...h.styles,v,C("button, a"),u`
127
+ `]}render(){let e={sm:"16px",md:"24px",lg:"32px",xl:"48px"}[this.size]??"24px",i=M(this.name,e);return this.label?n`<span role="img" aria-label=${this.label}>${i}</span>`:n`${i}`}};customElements.define("impakt-icon",De);var wi=l("color.text.inverse","var(--impakt-solid-card, var(--impakt-color-surface-card, #ffffff))"),C={height:l("button.height","40px"),paddingBlock:l("button.padding-block","8px"),paddingInline:l("button.padding-inline","16px"),gap:l("button.gap","8px"),fontSize:l("button.font-size","0.875rem"),lineHeight:l("button.line-height","1.429"),weight:l("button.weight","600"),smPaddingBlock:l("button.sm.padding-block","4px"),smHeight:l("button.sm.height","32px"),smPaddingInline:l("button.sm.padding-inline","12px"),smFontSize:l("button.sm.font-size","0.875rem"),smLineHeight:l("button.sm.line-height","1.429"),smGap:l("button.sm.gap","6px"),solidEdge:l("button.solid-edge-width","1px"),arrowIcon:l("button.arrow-icon","inline-block"),arrowGlyph:l("button.arrow-glyph","none"),lgHeight:l("button.lg.height","48px"),lgPaddingBlock:l("button.lg.padding-block","12px"),lgFontSize:l("button.lg.font-size","1rem"),lgLineHeight:l("button.lg.line-height","1.5"),iconSize:l("button.icon-size","40px"),lgIconSize:l("button.lg.icon-size","48px"),fullJustify:l("button.full.justify","center"),fullAlign:l("button.full.align","center"),highlight:l("button.highlight","inset 0 1px 0 0 rgb(255 255 255 / 0.12)"),edge:l("button.edge","15%")},Xr=k`<svg class="glyph" viewBox="0 0 15 10" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="butt" stroke-linejoin="miter" aria-hidden="true" focusable="false"><path d="M0 5h14" /><path d="M9.75 0.75 14 5l-4.25 4.25" /></svg>`,qe=class extends h{constructor(){super();this.internals=null;this.hideOn="never",this.variant="primary",this.type="button",this.disabled=!1,this.busy=!1,this.busyLabel="Working",this.full=!1,this.fullOnPhone=!1,this.size="md",this.iconBefore="none",this.iconAfter="none",this.href="",this.icon="none",this.label="",this.spread=!1,this.centred=!1;try{this.internals=this.attachInternals()}catch{this.internals=null}}static{this.formAssociated=!0}static{this.properties={hideOn:{type:String,reflect:!0,attribute:"hide-on"},variant:{type:String,reflect:!0},type:{type:String},disabled:{type:Boolean,reflect:!0},busy:{type:Boolean,reflect:!0},busyLabel:{type:String,attribute:"busy-label"},full:{type:Boolean,reflect:!0},fullOnPhone:{type:Boolean,attribute:"full-on-phone",reflect:!0},size:{type:String,reflect:!0},iconBefore:{type:String,attribute:"icon-before"},iconAfter:{type:String,attribute:"icon-after"},href:{type:String},icon:{type:String},label:{type:String},spread:{type:Boolean,reflect:!0},centred:{type:Boolean,reflect:!0}}}static{this.styles=[...h.styles,v,I("button, a"),u`
70
128
  @media (max-width: 40rem) { :host([hide-on='phone']) { display: none; } }
71
129
  :host {
72
130
  display: inline-block;
@@ -76,30 +134,30 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
76
134
  }
77
135
  @media (max-width: 40rem) { :host([full-on-phone]) { display: block; } }
78
136
  button, a {
79
- ${z}
137
+ ${E}
80
138
  box-sizing: border-box;
81
139
  text-decoration: none;
82
140
  display: inline-flex;
83
141
  align-items: center;
84
142
  justify-content: center;
85
- gap: ${E.gap};
143
+ gap: ${C.gap};
86
144
  inline-size: 100%;
87
145
  /* The brand's button shape: 40px in the small type in semibold, or under Noire (G2) Archivo Medium 16, 14 by 20, about 47px tall. */
88
- min-block-size: ${E.height};
89
- padding: ${E.paddingBlock} ${E.paddingInline};
146
+ min-block-size: ${C.height};
147
+ padding: ${C.paddingBlock} ${C.paddingInline};
90
148
  font-family: inherit;
91
- font-size: ${E.fontSize};
92
- line-height: ${E.lineHeight};
93
- font-weight: ${E.weight};
149
+ font-size: ${C.fontSize};
150
+ line-height: ${C.lineHeight};
151
+ font-weight: ${C.weight};
94
152
  border-radius: ${t.radiusLg};
95
153
  border: ${t.borderThin} solid transparent;
96
154
  cursor: pointer;
97
155
  transition: background-color 120ms ease-in-out, border-color 120ms ease-in-out, box-shadow 120ms ease-in-out;
98
156
  }
99
- :host([size='sm']) :is(button, a) { min-block-size: ${E.smHeight}; padding: ${E.smPaddingBlock} ${E.smPaddingInline}; font-size: ${E.smFontSize}; line-height: ${E.smLineHeight}; gap: ${E.smGap}; }
100
- :host([size='lg']) :is(button, a) { min-block-size: ${E.lgHeight}; padding: ${E.lgPaddingBlock} ${a(6)}; font-size: ${E.lgFontSize}; line-height: ${E.lgLineHeight}; }
157
+ :host([size='sm']) :is(button, a) { min-block-size: ${C.smHeight}; padding: ${C.smPaddingBlock} ${C.smPaddingInline}; font-size: ${C.smFontSize}; line-height: ${C.smLineHeight}; gap: ${C.smGap}; }
158
+ :host([size='lg']) :is(button, a) { min-block-size: ${C.lgHeight}; padding: ${C.lgPaddingBlock} ${a(6)}; font-size: ${C.lgFontSize}; line-height: ${C.lgLineHeight}; }
101
159
  /* A full-width button keeps its words in the middle, or spreads them where the brand does, as Noire does unless it is centred. */
102
- :host([full]:not([centred]):not([spread])) :is(button, a) { justify-content: ${E.fullJustify}; text-align: ${E.fullAlign}; }
160
+ :host([full]:not([centred]):not([spread])) :is(button, a) { justify-content: ${C.fullJustify}; text-align: ${C.fullAlign}; }
103
161
  /* Spread: the words at the start, the trailing icon at the far end. */
104
162
  :host([spread]) :is(button, a) { justify-content: space-between; text-align: start; }
105
163
  .icon { flex: none; inline-size: 1.15em; block-size: 1.15em; }
@@ -118,7 +176,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
118
176
  background: var(--impakt-button-primary, ${t.brand});
119
177
  color: var(--impakt-button-on-primary, ${t.onBrand});
120
178
  /* A hairline highlight along the top edge, where the brand draws one. Noire is flat. */
121
- box-shadow: ${t.shadowXs}, ${E.highlight};
179
+ box-shadow: ${t.shadowXs}, ${C.highlight};
122
180
  }
123
181
  .primary:hover:not([aria-disabled='true']) {
124
182
  background: var(--impakt-button-primary-hover, var(--impakt-color-action-hover, ${t.brandHover}));
@@ -126,11 +184,13 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
126
184
  }
127
185
  /* A brand whose buttons turn on hover lifts the trailing arrow a quarter-turn. */
128
186
  /* The trailing icon sits in a box as tall as the icon, so it never makes the line taller than the label's (#50). */
129
- .after { display: inline-flex; align-items: center; flex: none; transition: transform 160ms ease-out; }
130
- .after.arrow .icon { display: ${E.arrowIcon}; }
187
+ .after { display: inline-flex; align-items: center; flex: none; transition: transform ${q.arrowDuration} ${q.arrowEasing}; }
188
+ .after.arrow .icon { display: ${C.arrowIcon}; }
131
189
  /* The "→" of the G2 button, drawn so it does not depend on the font file holding it: as long as the label is high, with a thin stroke and a small head. */
132
- .after .glyph { display: ${E.arrowGlyph}; inline-size: 0.9375em; block-size: 0.625em; overflow: visible; }
190
+ .after .glyph { display: ${C.arrowGlyph}; inline-size: 0.9375em; block-size: 0.625em; overflow: visible; }
133
191
  :is(button, a):hover:not([aria-disabled='true']) .after { transform: rotate(var(--impakt-motion-button-turn, 0deg)); }
192
+ /* The reveal set's arrow (impkt-web#51): pointed at or focused, the arrow slides forward, 4px in 180ms for Impakt and not at all for a brand that derives it. */
193
+ :is(button, a):is(:hover, :focus-visible):not([aria-disabled='true']) .after.arrow { transform: translateX(${q.arrowDistance}) rotate(var(--impakt-motion-button-turn, 0deg)); }
134
194
  @media (prefers-reduced-motion: reduce) { .after { transition: none; } }
135
195
  .primary:active:not([aria-disabled='true']) {
136
196
  background: var(--impakt-button-primary-hover, ${t.brandActive});
@@ -141,14 +201,14 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
141
201
  * line and 14px, so 47px tall, and only an outlined one adds its 1px edge, to 49px (#50). Forced colours keep the
142
202
  * edge, since there the fill is gone.
143
203
  */
144
- :is(.primary, .dark, .subtle, .accent, .danger, .ghost) { border-width: ${E.solidEdge}; }
204
+ :is(.primary, .dark, .subtle, .accent, .danger, .ghost) { border-width: ${C.solidEdge}; }
145
205
  @media (forced-colors: active) { :is(.primary, .dark, .subtle, .accent, .danger, .ghost) { border-width: 1px; } }
146
206
 
147
207
  /* Outline: the card, a hairline border and the text colour, for the second choice. */
148
208
  .secondary {
149
209
  background: ${t.surfaceCard};
150
210
  color: ${t.text};
151
- border-color: color-mix(in srgb, ${t.text} ${E.edge}, transparent);
211
+ border-color: color-mix(in srgb, ${t.text} ${C.edge}, transparent);
152
212
  box-shadow: ${t.shadowXs};
153
213
  }
154
214
  .secondary:hover:not([aria-disabled='true']) {
@@ -174,13 +234,13 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
174
234
  */
175
235
  .dark {
176
236
  background: ${t.text};
177
- color: ${ni};
237
+ color: ${wi};
178
238
  }
179
239
  .dark:hover:not([aria-disabled='true']) {
180
- background: color-mix(in srgb, ${t.text}, ${ni} 14%);
240
+ background: color-mix(in srgb, ${t.text}, ${wi} 14%);
181
241
  }
182
242
  .dark:active:not([aria-disabled='true']) {
183
- background: color-mix(in srgb, ${t.text}, ${ni} 24%);
243
+ background: color-mix(in srgb, ${t.text}, ${wi} 24%);
184
244
  }
185
245
 
186
246
  /* Outline: transparent, a 1px border and words in the text colour, the design's "Ghost". On an ink band both are the paper. */
@@ -210,14 +270,14 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
210
270
 
211
271
  /* Accent: the brand's second colour as a fill, for the one action a page is built around. The words on it are the colour the tokens measured against it. */
212
272
  .accent {
213
- background: ${d("color.accent.default","#ffd43b")};
214
- color: ${d("color.accent.on","#1a1a1a")};
273
+ background: ${l("color.accent.default","#ffd43b")};
274
+ color: ${l("color.accent.on","#1a1a1a")};
215
275
  }
216
276
  .accent:hover:not([aria-disabled='true']) {
217
- background: ${d("color.accent.hover","#e0bb34")};
277
+ background: ${l("color.accent.hover","#e0bb34")};
218
278
  }
219
279
  .accent:active:not([aria-disabled='true']) {
220
- background: color-mix(in srgb, ${d("color.accent.hover","#e0bb34")}, ${d("color.accent.on","#1a1a1a")} 10%);
280
+ background: color-mix(in srgb, ${l("color.accent.hover","#e0bb34")}, ${l("color.accent.on","#1a1a1a")} 10%);
221
281
  }
222
282
 
223
283
  /* Danger: the danger text colour as a fill, so white words on it keep 4.5:1. */
@@ -234,15 +294,15 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
234
294
 
235
295
  /* Icon only: as tall as it is wide, round where the brand rounds its corners and square under Noire. */
236
296
  .icon-only {
237
- inline-size: ${E.iconSize};
238
- min-inline-size: ${E.iconSize};
239
- block-size: ${E.iconSize};
240
- min-block-size: ${E.iconSize};
297
+ inline-size: ${C.iconSize};
298
+ min-inline-size: ${C.iconSize};
299
+ block-size: ${C.iconSize};
300
+ min-block-size: ${C.iconSize};
241
301
  padding: 0;
242
302
  border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));
243
303
  }
244
304
  :host([size='sm']) .icon-only { inline-size: 32px; min-inline-size: 32px; block-size: 32px; min-block-size: 32px; padding: 0; }
245
- :host([size='lg']) .icon-only { inline-size: ${E.lgIconSize}; min-inline-size: ${E.lgIconSize}; block-size: ${E.lgIconSize}; min-block-size: ${E.lgIconSize}; padding: 0; }
305
+ :host([size='lg']) .icon-only { inline-size: ${C.lgIconSize}; min-inline-size: ${C.lgIconSize}; block-size: ${C.lgIconSize}; min-block-size: ${C.lgIconSize}; padding: 0; }
246
306
 
247
307
  .sr-only {
248
308
  ${T}
@@ -256,46 +316,46 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
256
316
  border-color: ButtonBorder;
257
317
  }
258
318
  }
259
- `]}onClick(i){if(this.disabled||this.busy){i.preventDefault(),i.stopImmediatePropagation();return}this.type==="submit"&&this.internals?.form?.requestSubmit(),this.type==="reset"&&this.internals?.form?.reset()}render(){let i=!!(this.icon&&this.icon!=="none"&&this.label),r=i?`${this.variant} icon-only`:this.variant;if(i){let c=M(this.icon);return this.href&&!this.disabled?o`<a class=${r} href=${this.href} part="button" aria-label=${this.label}>${c}</a>`:o`
319
+ `]}onClick(i){if(this.disabled||this.busy){i.preventDefault(),i.stopImmediatePropagation();return}this.type==="submit"&&this.internals?.form?.requestSubmit(),this.type==="reset"&&this.internals?.form?.reset()}render(){let i=!!(this.icon&&this.icon!=="none"&&this.label),r=i?`${this.variant} icon-only`:this.variant;if(i){let c=M(this.icon);return this.href&&!this.disabled?n`<a class=${r} href=${this.href} part="button" aria-label=${this.label}>${c}</a>`:n`
260
320
  <button
261
321
  class=${r}
262
322
  type="button"
263
323
  part="button"
264
324
  aria-label=${this.label}
265
325
  ?disabled=${this.disabled}
266
- aria-disabled=${this.busy?"true":l}
267
- aria-busy=${this.busy?"true":l}
326
+ aria-disabled=${this.busy?"true":d}
327
+ aria-busy=${this.busy?"true":d}
268
328
  @click=${this.onClick}
269
329
  >
270
330
  ${c}
271
- ${this.busy?o`<span class="sr-only">${this.busyLabel}</span>`:l}
331
+ ${this.busy?n`<span class="sr-only">${this.busyLabel}</span>`:d}
272
332
  </button>
273
- `}let s=o`${M(this.iconBefore)}<slot></slot>${this.iconAfter&&this.iconAfter!=="none"?o`<span class=${this.iconAfter==="arrow-right"?"after arrow":"after"} aria-hidden="true">${M(this.iconAfter)}${this.iconAfter==="arrow-right"?xr:l}</span>`:l}`;return this.href&&!this.disabled?o`<a class=${this.variant} href=${this.href} part="button">${s}</a>`:o`
333
+ `}let s=n`${M(this.iconBefore)}<slot></slot>${this.iconAfter&&this.iconAfter!=="none"?n`<span class=${this.iconAfter==="arrow-right"?"after arrow":"after"} aria-hidden="true">${M(this.iconAfter)}${this.iconAfter==="arrow-right"?Xr:d}</span>`:d}`;return this.href&&!this.disabled?n`<a class=${this.variant} href=${this.href} part="button">${s}</a>`:n`
274
334
  <button
275
335
  class=${this.variant}
276
336
  type="button"
277
337
  part="button"
278
338
  ?disabled=${this.disabled}
279
- aria-disabled=${this.busy?"true":l}
280
- aria-busy=${this.busy?"true":l}
339
+ aria-disabled=${this.busy?"true":d}
340
+ aria-busy=${this.busy?"true":d}
281
341
  @click=${this.onClick}
282
342
  >
283
343
  ${s}
284
- ${this.busy?o`<span class="sr-only">${this.busyLabel}</span>`:l}
344
+ ${this.busy?n`<span class="sr-only">${this.busyLabel}</span>`:d}
285
345
  </button>
286
- `}};customElements.define("impakt-button",Re);var D=u`
346
+ `}};customElements.define("impakt-button",qe);var K=u`
287
347
  :host { --impakt-field-width: 100%; }
288
348
  :host([width='xs']) { --impakt-field-width: 8ch; }
289
349
  :host([width='sm']) { --impakt-field-width: 14ch; }
290
350
  :host([width='md']) { --impakt-field-width: 24ch; }
291
351
  :host([width='lg']) { --impakt-field-width: 40ch; }
292
- `,V={height:d("field.height","44px"),paddingBlock:d("field.padding-block","10px"),paddingInline:d("field.padding-inline","12px"),lineHeight:d("field.line-height","normal"),radius:d("field.radius","8px"),edge:d("field.edge","0%"),focusEdge:d("field.focus-edge","0%"),focusHalo:d("field.focus-halo","6px")},ae=n=>{let e=L(n);return u`
352
+ `,V={height:l("field.height","44px"),paddingBlock:l("field.padding-block","10px"),paddingInline:l("field.padding-inline","12px"),lineHeight:l("field.line-height","normal"),radius:l("field.radius","8px"),edge:l("field.edge","0%"),focusEdge:l("field.focus-edge","0%"),focusHalo:l("field.focus-halo","6px")},ce=o=>{let e=R(o);return u`
293
353
  ${e} {
294
354
  inline-size: min(100%, var(--impakt-field-width));
295
355
  min-block-size: ${V.height};
296
356
  padding: ${V.paddingBlock} ${V.paddingInline};
297
357
  font-family: inherit;
298
- font-size: ${b("md")};
358
+ font-size: ${$("md")};
299
359
  line-height: ${V.lineHeight};
300
360
  color: ${t.text};
301
361
  background: var(--impakt-color-field-surface, ${t.surfaceCard});
@@ -324,7 +384,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
324
384
  border-color: ${t.danger};
325
385
  border-width: ${t.borderThick};
326
386
  }
327
- `},x=class extends h{constructor(){super();this.internals=null;this.label="",this.name="",this.value="",this.description="",this.error="",this.required=!1,this.disabled=!1,this.readonly=!1,this.requiredText="required";try{this.internals=this.attachInternals()}catch{this.internals=null}}static{this.formAssociated=!0}static{this.properties={label:{type:String},name:{type:String},value:{type:String},description:{type:String},error:{type:String},required:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},readonly:{type:Boolean,reflect:!0},requiredText:{type:String,attribute:"required-text"}}}static{this.styles=[...h.styles,v,u`
387
+ `},y=class extends h{constructor(){super();this.internals=null;this.label="",this.name="",this.value="",this.description="",this.error="",this.required=!1,this.disabled=!1,this.readonly=!1,this.requiredText="required",this.look="default";try{this.internals=this.attachInternals()}catch{this.internals=null}}static{this.formAssociated=!0}static{this.properties={label:{type:String},name:{type:String},value:{type:String},description:{type:String},error:{type:String},required:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},readonly:{type:Boolean,reflect:!0},requiredText:{type:String,attribute:"required-text"},look:{type:String,reflect:!0}}}static{this.styles=[...h.styles,v,u`
328
388
  :host {
329
389
  display: block;
330
390
  margin-block-end: ${a(4)};
@@ -338,27 +398,46 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
338
398
  .label {
339
399
  display: block;
340
400
  font-family: var(--impakt-field-label-font, ${t.fontBody});
341
- font-size: var(--impakt-field-label-size, ${b("sm")});
342
- font-weight: var(--impakt-field-label-weight, ${m("semibold")});
401
+ font-size: var(--impakt-field-label-size, ${$("sm")});
402
+ font-weight: var(--impakt-field-label-weight, ${b("semibold")});
343
403
  letter-spacing: var(--impakt-field-label-tracking, normal);
344
404
  text-transform: var(--impakt-field-label-transform, none);
345
- line-height: ${O("normal")};
405
+ line-height: ${W("normal")};
346
406
  margin-block-end: var(--impakt-field-label-space, ${a(1)});
347
407
  color: ${t.text};
348
408
  }
409
+ /* The site's form label (20:1100): G2 Mono S, IBM Plex Mono medium at 11px, in capitals, 8px above the box (#66). */
410
+ :host([look='site']) {
411
+ --impakt-field-label-font: ${t.fontMono};
412
+ --impakt-field-label-size: 0.6875rem;
413
+ --impakt-field-label-weight: ${b("medium")};
414
+ --impakt-field-label-tracking: 0.06em;
415
+ --impakt-field-label-transform: uppercase;
416
+ --impakt-field-label-space: ${a(2)};
417
+ }
418
+ /*
419
+ * The site's field (20:1175, 20:1211): the label on its 1.4 line, 8px over the box, and the box 14 by 16 inside with
420
+ * its words in Body M, 16px on 1.45, so a field is 76px tall with its label and the message box at least 140px.
421
+ */
422
+ :host([look='site']) .label { line-height: 1.4; }
423
+ :host([look='site']) :is(input, textarea) { display: block; box-sizing: border-box; padding-block: 14px; padding-inline: 16px; line-height: 1.45; }
424
+ :host([look='site']) textarea { min-block-size: max(140px, calc(var(--impakt-textarea-rows, 4) * 1lh + 30px)); }
425
+ :host([look='site']) .search input { padding-inline-start: ${a(10)}; }
426
+ /* The error region stays in the page for its live announcement, but takes no room until there is an error. */
427
+ :host([look='site']:not([invalid])) .error { margin-block-start: 0; }
349
428
  .required {
350
- font-weight: ${m("regular")};
429
+ font-weight: ${b("regular")};
351
430
  color: ${t.textMuted};
352
431
  }
353
432
  .description {
354
- font-size: ${b("sm")};
355
- line-height: ${O("normal")};
433
+ font-size: ${$("sm")};
434
+ line-height: ${W("normal")};
356
435
  color: ${t.textMuted};
357
436
  margin-block-end: ${a(2)};
358
437
  }
359
438
  .error {
360
- font-size: ${b("sm")};
361
- line-height: ${O("normal")};
439
+ font-size: ${$("sm")};
440
+ line-height: ${W("normal")};
362
441
  color: ${t.dangerText};
363
442
  margin-block-start: ${a(1)};
364
443
  display: flex;
@@ -380,15 +459,15 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
380
459
  opacity: 0.6;
381
460
  cursor: not-allowed;
382
461
  }
383
- `]}get controlId(){return this.id_("control")}get describedBy(){let i=[this.description?this.id_("description"):"",this.error?this.id_("error"):""].filter(Boolean);return i.length?i.join(" "):l}focus(i){let r=this.renderRoot?.querySelector(`#${this.controlId}`)??this.renderRoot?.querySelector("input, select, textarea, button");r?r.focus(i):super.focus(i)}renderLabel(){return o`
462
+ `]}get controlId(){return this.id_("control")}get describedBy(){let i=[this.description?this.id_("description"):"",this.error?this.id_("error"):""].filter(Boolean);return i.length?i.join(" "):d}focus(i){let r=this.renderRoot?.querySelector(`#${this.controlId}`)??this.renderRoot?.querySelector("input, select, textarea, button");r?r.focus(i):super.focus(i)}renderLabel(){return n`
384
463
  <label class="label" for=${this.controlId} part="label">
385
- ${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
464
+ ${this.label}${this.required?n`<span class="required"> (${this.requiredText})</span>`:d}
386
465
  </label>
387
- `}render(){return o`
466
+ `}render(){return n`
388
467
  ${this.renderLabel()}
389
- ${this.description?o`<div class="description" id=${this.id_("description")} part="description">
468
+ ${this.description?n`<div class="description" id=${this.id_("description")} part="description">
390
469
  ${this.description}
391
- </div>`:l}
470
+ </div>`:d}
392
471
  ${this.renderControl()}
393
472
  <!--
394
473
  The error region is always present, even when empty. A live region
@@ -403,9 +482,9 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
403
482
  part="error"
404
483
  aria-live="polite"
405
484
  >
406
- ${this.error||l}
485
+ ${this.error||d}
407
486
  </div>
408
- `}setFormValue(i){this.value=i,this.internals?.setFormValue(i),this.dispatchEvent(new CustomEvent("impakt-change",{detail:this.changeDetail(i),bubbles:!0,composed:!0}))}changeDetail(i){return{value:i}}};var _e=class extends x{static{this.properties={...x.properties,width:{type:String,reflect:!0},type:{type:String},placeholder:{type:String},autocomplete:{type:String},inputmode:{type:String},maxlength:{type:Number},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0}}}constructor(){super(),this.width="full",this.type="text",this.placeholder="",this.autocomplete="",this.inputmode="",this.maxlength=void 0,this.hideLabel=!1}static{this.styles=[...x.styles,D,ae("input"),u`
487
+ `}setFormValue(i){this.value=i,this.internals?.setFormValue(i),this.dispatchEvent(new CustomEvent("impakt-change",{detail:this.changeDetail(i),bubbles:!0,composed:!0}))}changeDetail(i){return{value:i}}};var Fe=class extends y{static{this.properties={...y.properties,width:{type:String,reflect:!0},type:{type:String},placeholder:{type:String},autocomplete:{type:String},inputmode:{type:String},maxlength:{type:Number},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0}}}constructor(){super(),this.width="full",this.type="text",this.placeholder="",this.autocomplete="",this.inputmode="",this.maxlength=void 0,this.hideLabel=!1}static{this.styles=[...y.styles,K,ce("input"),u`
409
488
  :host([hide-label]) .label {
410
489
  position: absolute;
411
490
  inline-size: 1px;
@@ -433,25 +512,25 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
433
512
  color: ${t.textMuted};
434
513
  pointer-events: none;
435
514
  }
436
- `]}renderControl(){let e=this.renderInput();return this.type==="search"?o`<span class="search" part="search">${M("search","20px")}${e}</span>`:e}renderInput(){return o`
515
+ `]}renderControl(){let e=this.renderInput();return this.type==="search"?n`<span class="search" part="search">${M("search","20px")}${e}</span>`:e}renderInput(){return n`
437
516
  <input
438
517
  id=${this.controlId}
439
518
  part="input"
440
519
  type=${this.type}
441
- name=${this.name||l}
520
+ name=${this.name||d}
442
521
  .value=${this.value}
443
- placeholder=${this.placeholder||l}
444
- autocomplete=${this.autocomplete||l}
445
- inputmode=${this.inputmode||l}
446
- maxlength=${this.maxlength??l}
522
+ placeholder=${this.placeholder||d}
523
+ autocomplete=${this.autocomplete||d}
524
+ inputmode=${this.inputmode||d}
525
+ maxlength=${this.maxlength??d}
447
526
  ?disabled=${this.disabled}
448
527
  ?readonly=${this.readonly}
449
528
  ?required=${this.required}
450
529
  aria-describedby=${this.describedBy}
451
- aria-invalid=${this.error?"true":l}
530
+ aria-invalid=${this.error?"true":d}
452
531
  @input=${e=>this.setFormValue(e.target.value)}
453
532
  />
454
- `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-text-input",_e);var He=class extends x{static{this.properties={...x.properties,width:{type:String,reflect:!0},options:{type:Array},placeholder:{type:String},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),this.width="full",this.options=[],this.placeholder="Choose an option",this.hideLabel=!1,this.size="md"}static{this.styles=[...x.styles,D,ae("select"),u`
533
+ `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-text-input",Fe);var je=class extends y{static{this.properties={...y.properties,width:{type:String,reflect:!0},options:{type:Array},placeholder:{type:String},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),this.width="full",this.options=[],this.placeholder="Choose an option",this.hideLabel=!1,this.size="md"}static{this.styles=[...y.styles,K,ce("select"),u`
455
534
  :host([hide-label]) .label {
456
535
  ${T}
457
536
  }
@@ -486,24 +565,24 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
486
565
  */
487
566
  .box { position: relative; display: block; inline-size: min(100%, var(--impakt-field-width)); }
488
567
  select { inline-size: 100%; appearance: var(--impakt-select-appearance, auto); -webkit-appearance: var(--impakt-select-appearance, auto); padding-inline-end: var(--impakt-select-padding-end, ${a(3)}); cursor: pointer; }
489
- .caret { display: var(--impakt-select-caret, none); position: absolute; inset-inline-end: ${a(3.5)}; inset-block-start: 50%; transform: translateY(-50%); font-size: ${b("sm")}; line-height: 1; color: ${t.text}; pointer-events: none; }
568
+ .caret { display: var(--impakt-select-caret, none); position: absolute; inset-inline-end: ${a(3.5)}; inset-block-start: 50%; transform: translateY(-50%); font-size: ${$("sm")}; line-height: 1; color: ${t.text}; pointer-events: none; }
490
569
  /* A forced colours mode draws the box in the system colours; the caret takes the text colour. */
491
570
  @media (forced-colors: active) { .caret { color: CanvasText; } }
492
- `]}renderControl(){return o`
571
+ `]}renderControl(){return n`
493
572
  <span class="box" part="box"><select
494
573
  id=${this.controlId}
495
574
  part="select"
496
- name=${this.name||l}
575
+ name=${this.name||d}
497
576
  ?disabled=${this.disabled}
498
577
  ?required=${this.required}
499
578
  aria-describedby=${this.describedBy}
500
- aria-invalid=${this.error?"true":l}
579
+ aria-invalid=${this.error?"true":d}
501
580
  @change=${e=>this.setFormValue(e.target.value)}
502
581
  >
503
582
  <option value="" ?selected=${!this.value}>${this.placeholder}</option>
504
- ${this.options.map(e=>o`<option value=${e.value} ?selected=${this.value===e.value}>${e.label}</option>`)}
583
+ ${this.options.map(e=>n`<option value=${e.value} ?selected=${this.value===e.value}>${e.label}</option>`)}
505
584
  </select><span class="caret" part="caret" aria-hidden="true">▾</span></span>
506
- `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-select",He);var Be=class extends x{static{this.properties={...x.properties,checked:{type:Boolean,reflect:!0}}}constructor(){super(),this.checked=!1}static{this.styles=[...x.styles,C(".row"),u`
585
+ `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-select",je);var We=class extends y{static{this.properties={...y.properties,checked:{type:Boolean,reflect:!0}}}constructor(){super(),this.checked=!1}static{this.styles=[...y.styles,I(".row"),u`
507
586
  .row {
508
587
  display: flex;
509
588
  align-items: flex-start;
@@ -511,7 +590,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
511
590
  cursor: pointer;
512
591
  }
513
592
  input {
514
- ${z}
593
+ ${E}
515
594
  inline-size: 20px;
516
595
  block-size: 20px;
517
596
  margin: 0;
@@ -519,35 +598,35 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
519
598
  accent-color: ${t.brand};
520
599
  }
521
600
  .text {
522
- font-size: ${b("md")};
601
+ font-size: ${$("md")};
523
602
  }
524
603
  :host([invalid]) .row {
525
604
  color: ${t.dangerText};
526
605
  }
527
- `]}renderControl(){return o`
606
+ `]}renderControl(){return n`
528
607
  <label class="row" part="row" for=${this.controlId}>
529
608
  <input
530
609
  type="checkbox"
531
610
  id=${this.controlId}
532
611
  part="input"
533
- name=${this.name||l}
612
+ name=${this.name||d}
534
613
  .checked=${this.checked}
535
614
  ?disabled=${this.disabled}
536
615
  ?required=${this.required}
537
616
  aria-describedby=${this.describedBy}
538
- aria-invalid=${this.error?"true":l}
617
+ aria-invalid=${this.error?"true":d}
539
618
  @change=${e=>{this.checked=e.target.checked,this.setFormValue(this.checked?"on":"")}}
540
619
  />
541
620
  <span class="text">
542
- ${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
621
+ ${this.label}${this.required?n`<span class="required"> (${this.requiredText})</span>`:d}
543
622
  </span>
544
623
  </label>
545
- `}renderLabel(){return o`${l}`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-checkbox",Be);var yr=L("48rem");function Fi(n){if(!n||n.startsWith("#"))return null;try{let e=typeof location>"u"?"http://localhost/":location.href;return new URL(n,e).pathname.replace(/\/$/,"")||"/"}catch{return null}}function li(n,e){let i=Fi(n);if(!i)return!1;let r=Fi(e||(typeof location>"u"?"":location.pathname));return r?i===r?!0:i!=="/"&&r.startsWith(`${i}/`):!1}function me(n,e,i){if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let r=new CustomEvent("impakt-navigate",{detail:{href:i.href,id:i.id??i.href},bubbles:!0,composed:!0,cancelable:!0});n.dispatchEvent(r)||e.preventDefault()}var Ne=class extends h{constructor(){super();this.footerFilled=!1;this.items=[],this.label="Main",this.current=""}static{this.properties={items:{type:Array},label:{type:String},current:{type:String}}}static{this.styles=[...h.styles,v,u`
624
+ `}renderLabel(){return n`${d}`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-checkbox",We);var Yr=R("48rem");function cr(o){if(!o||o.startsWith("#"))return null;try{let e=typeof location>"u"?"http://localhost/":location.href;return new URL(o,e).pathname.replace(/\/$/,"")||"/"}catch{return null}}function Si(o,e){let i=cr(o);if(!i)return!1;let r=cr(e||(typeof location>"u"?"":location.pathname));return r?i===r?!0:i!=="/"&&r.startsWith(`${i}/`):!1}function ve(o,e,i){if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let r=new CustomEvent("impakt-navigate",{detail:{href:i.href,id:i.id??i.href},bubbles:!0,composed:!0,cancelable:!0});o.dispatchEvent(r)||e.preventDefault()}var Ue=class extends h{constructor(){super();this.footerFilled=!1;this.items=[],this.label="Main",this.current=""}static{this.properties={items:{type:Array},label:{type:String},current:{type:String}}}static{this.styles=[...h.styles,v,u`
546
625
  :host { display: flex; flex-direction: column; gap: ${a(5)}; block-size: 100%; }
547
626
  .card { padding: ${a(2)}; border-radius: ${t.radiusXl}; background: ${t.surfaceCard}; }
548
627
  ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${a(.5)}; }
549
628
  a {
550
- ${z}
629
+ ${E}
551
630
  display: flex;
552
631
  align-items: center;
553
632
  gap: ${a(3)};
@@ -555,8 +634,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
555
634
  padding: 0 ${a(3.5)};
556
635
  border-radius: ${t.radiusLg};
557
636
  color: ${t.text};
558
- font-size: ${b("md")};
559
- font-weight: ${m("medium")};
637
+ font-size: ${$("md")};
638
+ font-weight: ${b("medium")};
560
639
  text-decoration: none;
561
640
  transition: background-color 120ms ease-in-out, color 120ms ease-in-out;
562
641
  }
@@ -567,23 +646,23 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
567
646
  .footer.empty { display: none; }
568
647
  @media (prefers-reduced-motion: reduce) { a { transition: none; } }
569
648
  @media (forced-colors: active) { a[aria-current='page'] { border: 2px solid Highlight; } }
570
- `]}onFooter(i){let r=i.target;this.footerFilled=r.assignedNodes({flatten:!0}).some(s=>s.nodeType===Node.ELEMENT_NODE||(s.textContent??"").trim()!==""),this.requestUpdate()}render(){return o`
649
+ `]}onFooter(i){let r=i.target;this.footerFilled=r.assignedNodes({flatten:!0}).some(s=>s.nodeType===Node.ELEMENT_NODE||(s.textContent??"").trim()!==""),this.requestUpdate()}render(){return n`
571
650
  <nav class="card" aria-label=${this.label} part="nav">
572
651
  <ul part="list">
573
- ${this.items.map(i=>o`
652
+ ${this.items.map(i=>n`
574
653
  <li>
575
654
  <a
576
655
  href=${i.href}
577
656
  part="link"
578
- aria-current=${li(i.href,this.current)?"page":l}
579
- @click=${r=>me(this,r,i)}
657
+ aria-current=${Si(i.href,this.current)?"page":d}
658
+ @click=${r=>ve(this,r,i)}
580
659
  >${M(i.icon,"20px")}<span>${i.label}</span></a>
581
660
  </li>
582
661
  `)}
583
662
  </ul>
584
663
  </nav>
585
664
  <div class="card footer ${this.footerFilled?"":"empty"}" part="footer"><slot name="footer" @slotchange=${this.onFooter}></slot></div>
586
- `}},Pe=class extends h{static{this.properties={items:{type:Array},label:{type:String},current:{type:String}}}constructor(){super(),this.items=[],this.label="Main",this.current=""}static{this.styles=[...h.styles,v,u`
665
+ `}},Ve=class extends h{static{this.properties={items:{type:Array},label:{type:String},current:{type:String}}}constructor(){super(),this.items=[],this.label="Main",this.current=""}static{this.styles=[...h.styles,v,u`
587
666
  :host { display: block; }
588
667
  nav { padding: ${a(1.5)}; border-radius: ${t.radiusXl}; background: ${t.text}; box-shadow: ${t.shadowLg}; }
589
668
  ul { list-style: none; margin: 0; padding: 0; display: flex; gap: ${a(1)}; }
@@ -600,7 +679,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
600
679
  /* The resting items are a blend of the card and text colours that keeps 4.5:1 on the bar. */
601
680
  color: color-mix(in srgb, ${t.surfaceCard} 74%, ${t.text});
602
681
  font-size: 11px;
603
- font-weight: ${m("medium")};
682
+ font-weight: ${b("medium")};
604
683
  line-height: 1.25;
605
684
  text-decoration: none;
606
685
  text-align: center;
@@ -609,22 +688,22 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
609
688
  a[aria-current='page'] { background: color-mix(in srgb, ${t.text}, ${t.surfaceCard} 16%); color: ${t.surfaceCard}; }
610
689
  span.word { max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
611
690
  @media (forced-colors: active) { a[aria-current='page'] { border: 2px solid Highlight; } }
612
- `]}render(){return o`
691
+ `]}render(){return n`
613
692
  <nav aria-label=${this.label} part="nav">
614
693
  <ul part="list">
615
- ${this.items.map(e=>o`
694
+ ${this.items.map(e=>n`
616
695
  <li>
617
696
  <a
618
697
  href=${e.href}
619
698
  part="link"
620
- aria-current=${li(e.href,this.current)?"page":l}
621
- @click=${i=>me(this,i,e)}
699
+ aria-current=${Si(e.href,this.current)?"page":d}
700
+ @click=${i=>ve(this,i,e)}
622
701
  >${M(e.icon,"22px")}<span class="word">${e.label}</span></a>
623
702
  </li>
624
703
  `)}
625
704
  </ul>
626
705
  </nav>
627
- `}},Oe=class extends h{static{this.properties={skipText:{type:String,attribute:"skip-text"},topBarLabel:{type:String,attribute:"top-bar-label"}}}constructor(){super(),this.skipText="Skip to content",this.topBarLabel=""}static{this.styles=[...h.styles,v,u`
706
+ `}},Ge=class extends h{static{this.properties={skipText:{type:String,attribute:"skip-text"},topBarLabel:{type:String,attribute:"top-bar-label"}}}constructor(){super(),this.skipText="Skip to content",this.topBarLabel=""}static{this.styles=[...h.styles,v,u`
628
707
  :host {
629
708
  display: block;
630
709
  min-block-size: 100svh;
@@ -646,7 +725,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
646
725
  margin: ${a(5)};
647
726
  padding: ${a(5)};
648
727
  border-radius: var(--impakt-shell-radius, 36px);
649
- background: ${d("color.surface.page","#f2f5f4")};
728
+ background: ${l("color.surface.page","#f2f5f4")};
650
729
  }
651
730
  .brand { grid-area: brand; display: flex; align-items: center; min-block-size: 52px; }
652
731
  .side { grid-area: side; display: flex; flex-direction: column; min-block-size: 0; }
@@ -673,7 +752,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
673
752
  .skip:not(:focus) { clip-path: inset(50%); }
674
753
  .skip:focus { transform: none; }
675
754
 
676
- @media (max-width: ${yr}) {
755
+ @media (max-width: ${Yr}) {
677
756
  :host { background: ${t.text}; }
678
757
  .frame {
679
758
  display: flex;
@@ -705,7 +784,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
705
784
  /* Room for the floating tab bar, so the last of the content can scroll clear of it. */
706
785
  padding: ${a(4)} ${a(4)} calc(96px + env(safe-area-inset-bottom));
707
786
  border-radius: 28px 28px 0 0;
708
- background: ${d("color.surface.page","#f2f5f4")};
787
+ background: ${l("color.surface.page","#f2f5f4")};
709
788
  }
710
789
  .tab-bar {
711
790
  display: block;
@@ -715,12 +794,12 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
715
794
  inset-block-end: calc(${a(3)} + env(safe-area-inset-bottom));
716
795
  }
717
796
  }
718
- `]}skip(e){e.preventDefault();let i=this.renderRoot.querySelector("main");i?.focus(),i?.scrollIntoView()}render(){return o`
797
+ `]}skip(e){e.preventDefault();let i=this.renderRoot.querySelector("main");i?.focus(),i?.scrollIntoView()}render(){return n`
719
798
  <div class="frame" part="frame">
720
799
  <a class="skip" href="#content" part="skip" @click=${this.skip}>${this.skipText}</a>
721
800
  <div class="brand" part="brand"><slot name="brand"></slot></div>
722
801
  <div class="side" part="side"><slot name="nav"></slot></div>
723
- <header aria-label=${this.topBarLabel||l} part="top-bar">
802
+ <header aria-label=${this.topBarLabel||d} part="top-bar">
724
803
  <div class="workspace"><slot name="workspace"></slot></div>
725
804
  <div class="search"><slot name="search"></slot></div>
726
805
  <div class="actions"><slot name="actions"></slot></div>
@@ -729,7 +808,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
729
808
  <main id="content" tabindex="-1" part="main"><slot></slot></main>
730
809
  <div class="tab-bar" part="tab-bar"><slot name="tab-bar"></slot></div>
731
810
  </div>
732
- `}};customElements.define("impakt-side-nav",Ne);customElements.define("impakt-tab-bar",Pe);customElements.define("impakt-app-shell",Oe);function q(n){let e=n?.closest?.("[lang]")?.getAttribute("lang"),i=!e&&n?n.getRootNode?.()?.host?.closest?.("[lang]")?.getAttribute("lang")??"":"",r=typeof document<"u"?document.documentElement?.lang??"":"",s=(e||i||r||"").trim();return!s||s.toLowerCase()==="en"?"en-GB":s}var f={lineSoft:d("color.line.soft","light-dark(#CFCCC5, #2E2E2E)"),ok:d("color.status.ok-mark","#137A52"),bad:d("color.status.bad-mark","light-dark(#B23A2E, #F0978F)"),accent:d("color.accent.default","#FFD43B"),onOk:d("color.status.on-ok","#FFFFFF"),codeSurface:d("color.code.surface","#111111"),codeText:d("color.code.text","#FFFFFF"),codeMuted:d("color.code.muted","#A8A8A6"),inverse:t.text,onInverse:t.surfaceCard,small:d("font.size.sm","0.875rem"),tiny:d("font.size.2xs","0.6875rem"),medium:d("font.weight.medium","500"),regular:d("font.weight.regular","400")};var qe=class extends h{static{this.properties={tone:{type:String,reflect:!0},label:{type:String},size:{type:String,reflect:!0},live:{type:Boolean,reflect:!0}}}constructor(){super(),this.tone="neutral",this.label="",this.size="tool",this.live=!1}static{this.styles=[...h.styles,u`
811
+ `}};customElements.define("impakt-side-nav",Ue);customElements.define("impakt-tab-bar",Ve);customElements.define("impakt-app-shell",Ge);function U(o){let e=o?.closest?.("[lang]")?.getAttribute("lang"),i=!e&&o?o.getRootNode?.()?.host?.closest?.("[lang]")?.getAttribute("lang")??"":"",r=typeof document<"u"?document.documentElement?.lang??"":"",s=(e||i||r||"").trim();return!s||s.toLowerCase()==="en"?"en-GB":s}var x={lineSoft:l("color.line.soft","light-dark(#CFCCC5, #2E2E2E)"),ok:l("color.status.ok-mark","#137A52"),bad:l("color.status.bad-mark","light-dark(#B23A2E, #F0978F)"),accent:l("color.accent.default","#FFD43B"),onOk:l("color.status.on-ok","#FFFFFF"),codeSurface:l("color.code.surface","#111111"),codeText:l("color.code.text","#FFFFFF"),codeMuted:l("color.code.muted","#A8A8A6"),inverse:t.text,onInverse:t.surfaceCard,small:l("font.size.sm","0.875rem"),tiny:l("font.size.2xs","0.6875rem"),medium:l("font.weight.medium","500"),regular:l("font.weight.regular","400")};var Ke=class extends h{static{this.properties={tone:{type:String,reflect:!0},label:{type:String},size:{type:String,reflect:!0},live:{type:Boolean,reflect:!0}}}constructor(){super(),this.tone="neutral",this.label="",this.size="tool",this.live=!1}static{this.styles=[...h.styles,u`
733
812
  /* A short pill stays on one line; a long one wraps inside its border rather than pushing the page sideways at 320 (1.4.10). */
734
813
  :host {
735
814
  display: inline-flex;
@@ -744,8 +823,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
744
823
  gap: ${a(1.5)};
745
824
  padding: 3px ${a(2)};
746
825
  font-family: ${t.fontMono};
747
- font-size: ${f.small};
748
- font-weight: ${f.medium};
826
+ font-size: ${x.small};
827
+ font-weight: ${x.medium};
749
828
  line-height: 1.3;
750
829
  overflow-wrap: anywhere;
751
830
  color: ${t.text};
@@ -761,22 +840,22 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
761
840
  background: currentColor;
762
841
  }
763
842
  :host([tone='ok']) .dot {
764
- background: ${f.ok};
843
+ background: ${x.ok};
765
844
  }
766
845
  :host([tone='bad']) .dot {
767
- background: ${f.bad};
846
+ background: ${x.bad};
768
847
  }
769
848
  :host([tone='warn']) .dot {
770
- background: ${f.accent};
849
+ background: ${x.accent};
771
850
  border: 1px solid ${t.text};
772
851
  }
773
852
  :host([tone='solid']) .pill {
774
- color: ${f.onInverse};
775
- background: ${f.inverse};
776
- border-color: ${f.inverse};
853
+ color: ${x.onInverse};
854
+ background: ${x.inverse};
855
+ border-color: ${x.inverse};
777
856
  }
778
857
  :host([size='marketing']) .pill {
779
- font-size: ${f.tiny};
858
+ font-size: ${x.tiny};
780
859
  text-transform: uppercase;
781
860
  letter-spacing: 0.06em;
782
861
  }
@@ -789,49 +868,49 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
789
868
  border-color: CanvasText;
790
869
  }
791
870
  }
792
- `]}get hasDot(){return this.tone==="ok"||this.tone==="bad"||this.tone==="warn"||this.tone==="info"}render(){return o`<span class="pill" part="pill" role=${this.live?"status":l}
793
- >${this.hasDot?o`<span class="dot" part="dot" aria-hidden="true"></span>`:l}<span class="text"><slot>${this.label}</slot></span></span
794
- >`}};customElements.define("impakt-status",qe);var kr=["ok","bad","warn","info","neutral","solid"],De=u`
871
+ `]}get hasDot(){return this.tone==="ok"||this.tone==="bad"||this.tone==="warn"||this.tone==="info"}render(){return n`<span class="pill" part="pill" role=${this.live?"status":d}
872
+ >${this.hasDot?n`<span class="dot" part="dot" aria-hidden="true"></span>`:d}<span class="text"><slot>${this.label}</slot></span></span
873
+ >`}};customElements.define("impakt-status",Ke);var Jr=["ok","bad","warn","info","neutral","solid"],Xe=u`
795
874
  .status-pill {
796
875
  flex: none;
797
876
  inline-size: fit-content;
798
877
  }
799
- `,oe=(n,e,i="status")=>{if(!n)return l;let r=kr.includes(e)?e:"neutral";return o`<impakt-status class="status-pill" part=${i} tone=${r} label=${n}></impakt-status>`};var ge=d("color.text.inverse","var(--impakt-solid-card, var(--impakt-color-surface-card, #ffffff))"),I={padding:d("tile.padding","12px 16px"),gap:d("tile.gap","4px"),minHeight:d("tile.min-height","84px"),align:d("tile.align","stretch"),edgeWidth:d("tile.edge-width","0px"),radius:d("tile.radius","8px"),fill:d("tile.fill","0%"),hover:d("tile.hover","5%"),labelFont:d("tile.label.font","var(--impakt-font-family-body, system-ui, sans-serif)"),labelSize:d("tile.label.size","11px"),labelWeight:d("tile.label.weight","500"),labelTracking:d("tile.label.tracking","0.06em"),labelTransform:d("tile.label.transform","uppercase"),valueSize:d("tile.value.size","34px"),valueStat:d("tile.value.stat","0"),valueLineHeight:d("tile.value.line-height","1.1"),valueTracking:d("tile.value.tracking","0em"),valueWeight:d("tile.value.weight","300"),valueSpace:d("tile.value.space","auto"),lgRadius:d("tile.lg.radius","12px"),lgLabelSize:d("tile.lg.label.size","0.875rem"),lgLabelTracking:d("tile.lg.label.tracking","0em"),lgLabelTransform:d("tile.lg.label.transform","none"),captionLineHeight:d("tile.caption.line-height","1.5")},vr=L(`calc(var(--impakt-type-stat-size, 3.25rem) * ${I.valueStat} + ${I.valueSize} * (1 - ${I.valueStat}))`),wr=L(`calc(2.5rem * ${I.valueStat} + ${I.valueSize} * (1 - ${I.valueStat}))`),ji=L(`color-mix(in srgb, ${t.surfaceCard} ${I.fill}, ${t.surfaceInset})`),Sr=d("font.weight.light","300"),Fe=class extends h{static{this.properties={label:{type:String},value:{type:String},caption:{type:String},href:{type:String},tone:{type:String,reflect:!0},size:{type:String,reflect:!0},status:{type:String},statusTone:{type:String,attribute:"status-tone"}}}constructor(){super(),this.label="",this.value="",this.caption="",this.href="",this.tone="plain",this.size="md",this.status="",this.statusTone="neutral"}static{this.styles=[...h.styles,v,De,u`
878
+ `,pe=(o,e,i="status")=>{if(!o)return d;let r=Jr.includes(e)?e:"neutral";return n`<impakt-status class="status-pill" part=${i} tone=${r} label=${o}></impakt-status>`};var we=l("color.text.inverse","var(--impakt-solid-card, var(--impakt-color-surface-card, #ffffff))"),_={padding:l("tile.padding","12px 16px"),gap:l("tile.gap","4px"),minHeight:l("tile.min-height","84px"),align:l("tile.align","stretch"),edgeWidth:l("tile.edge-width","0px"),radius:l("tile.radius","8px"),fill:l("tile.fill","0%"),hover:l("tile.hover","5%"),labelFont:l("tile.label.font","var(--impakt-font-family-body, system-ui, sans-serif)"),labelSize:l("tile.label.size","11px"),labelWeight:l("tile.label.weight","500"),labelTracking:l("tile.label.tracking","0.06em"),labelTransform:l("tile.label.transform","uppercase"),valueSize:l("tile.value.size","34px"),valueStat:l("tile.value.stat","0"),valueLineHeight:l("tile.value.line-height","1.1"),valueTracking:l("tile.value.tracking","0em"),valueWeight:l("tile.value.weight","300"),valueSpace:l("tile.value.space","auto"),lgRadius:l("tile.lg.radius","12px"),lgLabelSize:l("tile.lg.label.size","0.875rem"),lgLabelTracking:l("tile.lg.label.tracking","0em"),lgLabelTransform:l("tile.lg.label.transform","none"),captionLineHeight:l("tile.caption.line-height","1.5")},Zr=R(`calc(var(--impakt-type-stat-size, 3.25rem) * ${_.valueStat} + ${_.valueSize} * (1 - ${_.valueStat}))`),Qr=R(`calc(2.5rem * ${_.valueStat} + ${_.valueSize} * (1 - ${_.valueStat}))`),pr=R(`color-mix(in srgb, ${t.surfaceCard} ${_.fill}, ${t.surfaceInset})`),ea=l("font.weight.light","300"),Ye=class extends h{static{this.properties={label:{type:String},value:{type:String},caption:{type:String},href:{type:String},tone:{type:String,reflect:!0},size:{type:String,reflect:!0},status:{type:String},statusTone:{type:String,attribute:"status-tone"}}}constructor(){super(),this.label="",this.value="",this.caption="",this.href="",this.tone="plain",this.size="md",this.status="",this.statusTone="neutral"}static{this.styles=[...h.styles,v,Xe,u`
800
879
  :host { display: block; }
801
880
  .tile {
802
881
  box-sizing: border-box;
803
882
  display: flex;
804
883
  flex-direction: column;
805
- align-items: ${I.align};
806
- gap: ${I.gap};
884
+ align-items: ${_.align};
885
+ gap: ${_.gap};
807
886
  block-size: 100%;
808
- min-block-size: ${I.minHeight};
809
- padding: ${I.padding};
810
- border: ${I.edgeWidth} solid ${t.text};
811
- border-radius: ${I.radius};
812
- background: ${ji};
887
+ min-block-size: ${_.minHeight};
888
+ padding: ${_.padding};
889
+ border: ${_.edgeWidth} solid ${t.text};
890
+ border-radius: ${_.radius};
891
+ background: ${pr};
813
892
  color: ${t.text};
814
893
  text-decoration: none;
815
894
  }
816
- a.tile:hover { background: color-mix(in srgb, ${ji}, ${t.text} ${I.hover}); }
817
- .label { font-family: ${I.labelFont}; font-size: ${I.labelSize}; font-weight: ${I.labelWeight}; letter-spacing: ${I.labelTracking}; text-transform: ${I.labelTransform}; color: ${t.textMuted}; }
895
+ a.tile:hover { background: color-mix(in srgb, ${pr}, ${t.text} ${_.hover}); }
896
+ .label { font-family: ${_.labelFont}; font-size: ${_.labelSize}; font-weight: ${_.labelWeight}; letter-spacing: ${_.labelTracking}; text-transform: ${_.labelTransform}; color: ${t.textMuted}; }
818
897
  /* The figure: light at 34px where the brand derives it, or under Noire (G2) Archivo SemiBold 52/1.04, -4%. A word fits as well as a number. */
819
- .value { margin-block-start: ${I.valueSpace}; font-size: ${vr}; line-height: ${I.valueLineHeight}; letter-spacing: ${I.valueTracking}; font-weight: ${I.valueWeight}; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
820
- .caption { font-size: ${b("sm")}; line-height: ${I.captionLineHeight}; color: ${t.textMuted}; }
821
- :host([size='lg']) .tile { min-block-size: 200px; padding: ${a(6)}; border-radius: ${I.lgRadius}; }
822
- :host([size='lg']) .label { font-size: ${I.lgLabelSize}; letter-spacing: ${I.lgLabelTracking}; text-transform: ${I.lgLabelTransform}; }
823
- :host([size='lg']) .value { margin-block-start: auto; font-size: 64px; line-height: 1; font-weight: ${Sr}; }
898
+ .value { margin-block-start: ${_.valueSpace}; font-size: ${Zr}; line-height: ${_.valueLineHeight}; letter-spacing: ${_.valueTracking}; font-weight: ${_.valueWeight}; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
899
+ .caption { font-size: ${$("sm")}; line-height: ${_.captionLineHeight}; color: ${t.textMuted}; }
900
+ :host([size='lg']) .tile { min-block-size: 200px; padding: ${a(6)}; border-radius: ${_.lgRadius}; }
901
+ :host([size='lg']) .label { font-size: ${_.lgLabelSize}; letter-spacing: ${_.lgLabelTracking}; text-transform: ${_.lgLabelTransform}; }
902
+ :host([size='lg']) .value { margin-block-start: auto; font-size: 64px; line-height: 1; font-weight: ${ea}; }
824
903
  :host([tone='brand']) .tile { background: ${t.brand}; color: ${t.onBrand}; border-color: ${t.brand}; }
825
904
  :host([tone='brand']) a.tile:hover { background: ${t.brandHover}; }
826
905
  :host([tone='brand']) .label, :host([tone='brand']) .caption { color: ${t.onBrand}; }
827
- @media (max-width: 40rem) { .value { font-size: ${wr}; } }
906
+ @media (max-width: 40rem) { .value { font-size: ${Qr}; } }
828
907
  @media (forced-colors: active) { .tile { border: 1px solid CanvasText; } }
829
- `]}render(){let e=o`
908
+ `]}render(){let e=n`
830
909
  <span class="label" part="label">${this.label}</span>
831
910
  <span class="value" part="value">${this.value}</span>
832
- ${this.caption?o`<span class="caption" part="caption">${this.caption}</span>`:l}
833
- ${oe(this.status,this.statusTone)}
834
- `;return this.href?o`<a class="tile" href=${this.href} part="tile">${e}</a>`:o`<div class="tile" part="tile">${e}</div>`}},je=class extends h{static{this.properties={date:{type:String},tone:{type:String,reflect:!0}}}constructor(){super(),this.date="",this.tone="brand"}static{this.styles=[...h.styles,u`
911
+ ${this.caption?n`<span class="caption" part="caption">${this.caption}</span>`:d}
912
+ ${pe(this.status,this.statusTone)}
913
+ `;return this.href?n`<a class="tile" href=${this.href} part="tile">${e}</a>`:n`<div class="tile" part="tile">${e}</div>`}},Je=class extends h{static{this.properties={date:{type:String},tone:{type:String,reflect:!0}}}constructor(){super(),this.date="",this.tone="brand"}static{this.styles=[...h.styles,u`
835
914
  :host { display: inline-block; flex: none; }
836
915
  time {
837
916
  position: relative;
@@ -848,23 +927,23 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
848
927
  line-height: 1;
849
928
  }
850
929
  :host([tone='plain']) time { background: ${t.surfaceInset}; color: ${t.text}; }
851
- .month { font-size: 10px; font-weight: ${m("medium")}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; }
852
- .day { margin-block-start: ${a(1)}; font-size: 20px; font-weight: ${m("medium")}; font-variant-numeric: tabular-nums; }
930
+ .month { font-size: 10px; font-weight: ${b("medium")}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; }
931
+ .day { margin-block-start: ${a(1)}; font-size: 20px; font-weight: ${b("medium")}; font-variant-numeric: tabular-nums; }
853
932
  .sr-only { ${T} }
854
933
  @media (forced-colors: active) { time { border: 1px solid CanvasText; } }
855
- `]}parts(){let e=/^(\d{4})-(\d{2})-(\d{2})$/.exec(this.date??"");if(!e)return null;let i=new Date(Date.UTC(Number(e[1]),Number(e[2])-1,Number(e[3]),12));if(Number.isNaN(i.getTime()))return null;let r=q(this),s=c=>new Intl.DateTimeFormat(r,{...c,timeZone:"UTC"}).format(i);return{month:s({month:"short"}).replace(".",""),day:s({day:"numeric"}),full:s({day:"numeric",month:"long",year:"numeric"})}}render(){let e=this.parts();return e?o`<time datetime=${this.date} part="tile">
934
+ `]}parts(){let e=/^(\d{4})-(\d{2})-(\d{2})$/.exec(this.date??"");if(!e)return null;let i=new Date(Date.UTC(Number(e[1]),Number(e[2])-1,Number(e[3]),12));if(Number.isNaN(i.getTime()))return null;let r=U(this),s=c=>new Intl.DateTimeFormat(r,{...c,timeZone:"UTC"}).format(i);return{month:s({month:"short"}).replace(".",""),day:s({day:"numeric"}),full:s({day:"numeric",month:"long",year:"numeric"})}}render(){let e=this.parts();return e?n`<time datetime=${this.date} part="tile">
856
935
  <span class="month" aria-hidden="true">${e.month}</span>
857
936
  <span class="day" aria-hidden="true">${e.day}</span>
858
937
  <span class="sr-only">${e.full}</span>
859
- </time>`:o`${l}`}},Ue=class extends h{constructor(){super();this.filled={start:!1,end:!1};this.selected=!1,this.heading="",this.meta="",this.href="",this.divided=!1,this.muted=!1}static{this.properties={heading:{type:String},meta:{type:String},href:{type:String},divided:{type:Boolean,reflect:!0},muted:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0}}}static{this.styles=[...h.styles,v,u`
938
+ </time>`:n`${d}`}},Ze=class extends h{constructor(){super();this.filled={start:!1,end:!1};this.selected=!1,this.heading="",this.meta="",this.href="",this.divided=!1,this.muted=!1}static{this.properties={heading:{type:String},meta:{type:String},href:{type:String},divided:{type:Boolean,reflect:!0},muted:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0}}}static{this.styles=[...h.styles,v,u`
860
939
  :host { display: block; }
861
940
  :host([divided]) .row { border-block-start: ${t.borderThin} solid ${t.hairline}; }
862
941
  .row { position: relative; display: flex; align-items: center; gap: ${a(3)}; padding-block: ${a(3)}; }
863
942
  .text { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; gap: ${a(.5)}; }
864
- .title { font-size: ${b("md")}; font-weight: ${m("medium")}; color: ${t.text}; }
865
- :host([muted]) .title { color: ${t.textMuted}; font-weight: ${m("regular")}; }
943
+ .title { font-size: ${$("md")}; font-weight: ${b("medium")}; color: ${t.text}; }
944
+ :host([muted]) .title { color: ${t.textMuted}; font-weight: ${b("regular")}; }
866
945
  /* The meta is a label: the code face where the brand sets its labels in one, as G2 does (36:452, 37:646). */
867
- .meta { font-family: ${t.fontEyebrow}; font-size: ${b("sm")}; color: ${t.textMuted}; }
946
+ .meta { font-family: ${t.fontEyebrow}; font-size: ${$("sm")}; color: ${t.textMuted}; }
868
947
  a { color: inherit; text-decoration: none; }
869
948
  /* The link is stretched over the row, so the row is one target. */
870
949
  a::after { content: ''; position: absolute; inset: 0; border-radius: ${t.radius}; }
@@ -876,48 +955,48 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
876
955
  /* Controls at the end stay pressable above the stretched link. */
877
956
  .end { position: relative; z-index: 1; }
878
957
  .chevron { flex: none; color: ${t.textMuted}; }
879
- :host([selected]) .row { padding-inline: ${a(4)}; background: ${t.text}; --impakt-color-text-default: ${ge}; --impakt-color-text-muted: color-mix(in srgb, ${ge} 72%, ${t.text}); --impakt-color-text-inverse: ${t.text}; }
880
- :host([selected]) :is(.title, .meta, .chevron) { color: ${ge}; }
881
- :host([selected]) .meta, :host([selected]) .chevron { color: color-mix(in srgb, ${ge} 72%, ${t.text}); }
958
+ :host([selected]) .row { padding-inline: ${a(4)}; background: ${t.text}; --impakt-color-text-default: ${we}; --impakt-color-text-muted: color-mix(in srgb, ${we} 72%, ${t.text}); --impakt-color-text-inverse: ${t.text}; }
959
+ :host([selected]) :is(.title, .meta, .chevron) { color: ${we}; }
960
+ :host([selected]) .meta, :host([selected]) .chevron { color: color-mix(in srgb, ${we} 72%, ${t.text}); }
882
961
  @media (forced-colors: active) { :host([selected]) .row { outline: 2px solid Highlight; } }
883
- `]}onSlot(i){let r=i.target,s=r.name;this.filled={...this.filled,[s]:r.assignedNodes({flatten:!0}).some(c=>c.nodeType===Node.ELEMENT_NODE||(c.textContent??"").trim()!=="")},this.requestUpdate()}render(){let i=this.href?o`<a class="title" href=${this.href} part="link">${this.heading}</a>`:o`<span class="title" part="title">${this.heading}</span>`;return o`<div class="row" part="row" aria-current=${this.selected?"true":l}>
962
+ `]}onSlot(i){let r=i.target,s=r.name;this.filled={...this.filled,[s]:r.assignedNodes({flatten:!0}).some(c=>c.nodeType===Node.ELEMENT_NODE||(c.textContent??"").trim()!=="")},this.requestUpdate()}render(){let i=this.href?n`<a class="title" href=${this.href} part="link">${this.heading}</a>`:n`<span class="title" part="title">${this.heading}</span>`;return n`<div class="row" part="row" aria-current=${this.selected?"true":d}>
884
963
  <div class="start ${this.filled.start?"":"empty"}"><slot name="start" @slotchange=${this.onSlot}></slot></div>
885
- <div class="text">${i}${this.meta?o`<span class="meta" part="meta">${this.meta}</span>`:l}</div>
964
+ <div class="text">${i}${this.meta?n`<span class="meta" part="meta">${this.meta}</span>`:d}</div>
886
965
  <div class="end ${this.filled.end?"":"empty"}"><slot name="end" @slotchange=${this.onSlot}></slot></div>
887
- ${this.href&&!this.selected?o`<span class="chevron" aria-hidden="true">${M("chevron-right","20px")}</span>`:l}
888
- </div>`}},We=class extends h{static{this.properties={label:{type:String},count:{type:Number},countLabel:{type:String,attribute:"count-label"},pressed:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0}}}constructor(){super(),this.label="",this.count=void 0,this.countLabel="",this.pressed=!1,this.disabled=!1}static{this.styles=[...h.styles,v,C("button"),u`
966
+ ${this.href&&!this.selected?n`<span class="chevron" aria-hidden="true">${M("chevron-right","20px")}</span>`:d}
967
+ </div>`}},Qe=class extends h{static{this.properties={label:{type:String},count:{type:Number},countLabel:{type:String,attribute:"count-label"},pressed:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0}}}constructor(){super(),this.label="",this.count=void 0,this.countLabel="",this.pressed=!1,this.disabled=!1}static{this.styles=[...h.styles,v,I("button"),u`
889
968
  :host { display: inline-block; }
890
969
  /* The containing block for the words kept for screen readers, so a control scrolled out of a row cannot widen the page. */
891
970
  button {
892
- ${z}
971
+ ${E}
893
972
  position: relative;
894
973
  display: inline-flex;
895
974
  align-items: center;
896
975
  gap: ${a(2)};
897
976
  /* 36px with a hairline edge and medium words, or under Noire 35px with an ink edge (filter-chip.* tokens). */
898
- min-block-size: ${d("filter-chip.height","36px")};
977
+ min-block-size: ${l("filter-chip.height","36px")};
899
978
  padding: 0 ${a(3.5)};
900
979
  font: inherit;
901
- font-size: ${b("sm")};
902
- font-weight: ${d("filter-chip.weight","500")};
980
+ font-size: ${$("sm")};
981
+ font-weight: ${l("filter-chip.weight","500")};
903
982
  color: ${t.text};
904
983
  background: ${t.surfaceCard};
905
- border: ${t.borderThin} solid color-mix(in srgb, ${t.text} ${d("filter-chip.edge","10%")}, transparent);
984
+ border: ${t.borderThin} solid color-mix(in srgb, ${t.text} ${l("filter-chip.edge","10%")}, transparent);
906
985
  border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));
907
986
  cursor: pointer;
908
987
  white-space: nowrap;
909
988
  }
910
989
  button:hover:not(:disabled) { background: ${t.surfaceInset}; }
911
- button[aria-pressed='true'] { background: ${t.text}; color: ${ge}; border-color: ${t.text}; }
990
+ button[aria-pressed='true'] { background: ${t.text}; color: ${we}; border-color: ${t.text}; }
912
991
  button:disabled { cursor: not-allowed; opacity: 0.5; }
913
992
  .count { font-variant-numeric: tabular-nums; color: ${t.textMuted}; }
914
993
  button[aria-pressed='true'] .count { color: inherit; opacity: 0.8; }
915
994
  .sr-only { ${T} }
916
995
  @media (forced-colors: active) { button[aria-pressed='true'] { border: 2px solid Highlight; } }
917
- `]}toggle(){this.disabled||(this.pressed=!this.pressed,this.dispatchEvent(new CustomEvent("impakt-change",{detail:{pressed:this.pressed},bubbles:!0,composed:!0})))}render(){let e=typeof this.count=="number"&&!Number.isNaN(this.count);return o`<button type="button" part="button" aria-pressed=${this.pressed?"true":"false"} ?disabled=${this.disabled} @click=${this.toggle}>
996
+ `]}toggle(){this.disabled||(this.pressed=!this.pressed,this.dispatchEvent(new CustomEvent("impakt-change",{detail:{pressed:this.pressed},bubbles:!0,composed:!0})))}render(){let e=typeof this.count=="number"&&!Number.isNaN(this.count);return n`<button type="button" part="button" aria-pressed=${this.pressed?"true":"false"} ?disabled=${this.disabled} @click=${this.toggle}>
918
997
  <span>${this.label}</span>
919
- ${e?this.countLabel?o`<span class="count" aria-hidden="true">${this.count}</span><span class="sr-only">${this.countLabel}</span>`:o`<span class="count">${this.count}</span>`:l}
920
- </button>`}};customElements.define("impakt-stat-tile",Fe);customElements.define("impakt-date-tile",je);customElements.define("impakt-row",Ue);customElements.define("impakt-filter-chip",We);var Ve=class extends x{static{this.properties={...x.properties,checked:{type:Boolean,reflect:!0},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0}}}constructor(){super(),this.checked=!1,this.hideLabel=!1}static{this.styles=[...x.styles,C(".row"),u`
998
+ ${e?this.countLabel?n`<span class="count" aria-hidden="true">${this.count}</span><span class="sr-only">${this.countLabel}</span>`:n`<span class="count">${this.count}</span>`:d}
999
+ </button>`}};customElements.define("impakt-stat-tile",Ye);customElements.define("impakt-date-tile",Je);customElements.define("impakt-row",Ze);customElements.define("impakt-filter-chip",Qe);var et=class extends y{static{this.properties={...y.properties,checked:{type:Boolean,reflect:!0},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0}}}constructor(){super(),this.checked=!1,this.hideLabel=!1}static{this.styles=[...y.styles,I(".row"),u`
921
1000
  .row {
922
1001
  display: flex;
923
1002
  align-items: center;
@@ -926,7 +1005,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
926
1005
  cursor: pointer;
927
1006
  }
928
1007
  .text {
929
- font-size: ${b("md")};
1008
+ font-size: ${$("md")};
930
1009
  }
931
1010
  :host([hide-label]) .row {
932
1011
  justify-content: flex-start;
@@ -941,7 +1020,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
941
1020
  block-size: 28px;
942
1021
  }
943
1022
  input {
944
- ${z}
1023
+ ${E}
945
1024
  position: absolute;
946
1025
  inset: 0;
947
1026
  inline-size: 100%;
@@ -995,10 +1074,10 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
995
1074
  .knob { background: CanvasText; }
996
1075
  :host([checked]) .track { background: Highlight; }
997
1076
  }
998
- `]}renderControl(){return o`
1077
+ `]}renderControl(){return n`
999
1078
  <label class="row" part="row" for=${this.controlId}>
1000
1079
  <span class="text">
1001
- ${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
1080
+ ${this.label}${this.required?n`<span class="required"> (${this.requiredText})</span>`:d}
1002
1081
  </span>
1003
1082
  <span class="control">
1004
1083
  <input
@@ -1006,19 +1085,19 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1006
1085
  role="switch"
1007
1086
  id=${this.controlId}
1008
1087
  part="input"
1009
- name=${this.name||l}
1088
+ name=${this.name||d}
1010
1089
  .checked=${this.checked}
1011
1090
  aria-checked=${this.checked?"true":"false"}
1012
1091
  ?disabled=${this.disabled}
1013
1092
  ?required=${this.required}
1014
1093
  aria-describedby=${this.describedBy}
1015
- aria-invalid=${this.error?"true":l}
1094
+ aria-invalid=${this.error?"true":d}
1016
1095
  @change=${e=>{this.checked=e.target.checked,this.setFormValue(this.checked?"on":"")}}
1017
1096
  />
1018
1097
  <span class="track" part="track"><span class="knob" part="knob"></span></span>
1019
1098
  </span>
1020
1099
  </label>
1021
- `}changeDetail(e){return{value:e,checked:this.checked}}renderLabel(){return o`${l}`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},Ge=class extends x{static{this.properties={...x.properties,options:{type:Array},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0},full:{type:Boolean,reflect:!0}}}constructor(){super(),this.options=[],this.hideLabel=!1,this.full=!1}static{this.styles=[...x.styles,u`
1100
+ `}changeDetail(e){return{value:e,checked:this.checked}}renderLabel(){return n`${d}`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},tt=class extends y{static{this.properties={...y.properties,options:{type:Array},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0},full:{type:Boolean,reflect:!0}}}constructor(){super(),this.options=[],this.hideLabel=!1,this.full=!1}static{this.styles=[...y.styles,u`
1022
1101
  fieldset {
1023
1102
  border: 0;
1024
1103
  margin: 0;
@@ -1049,7 +1128,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1049
1128
  display: inline-flex;
1050
1129
  }
1051
1130
  input {
1052
- ${z}
1131
+ ${E}
1053
1132
  position: absolute;
1054
1133
  inset: 0;
1055
1134
  inline-size: 100%;
@@ -1066,8 +1145,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1066
1145
  min-block-size: 32px;
1067
1146
  padding: ${a(1.5)} ${a(4)};
1068
1147
  border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));
1069
- font-size: ${b("sm")};
1070
- font-weight: ${m("medium")};
1148
+ font-size: ${$("sm")};
1149
+ font-weight: ${b("medium")};
1071
1150
  color: ${t.textMuted};
1072
1151
  pointer-events: none;
1073
1152
  transition: background-color 120ms ease-in-out, color 120ms ease-in-out;
@@ -1096,11 +1175,11 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1096
1175
  .segments { border: 1px solid CanvasText; }
1097
1176
  input:checked + .face { border: 2px solid Highlight; }
1098
1177
  }
1099
- `]}renderLabel(){return o`<legend class="label" part="label">
1100
- ${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
1101
- </legend>`}renderControl(){return o`
1178
+ `]}renderLabel(){return n`<legend class="label" part="label">
1179
+ ${this.label}${this.required?n`<span class="required"> (${this.requiredText})</span>`:d}
1180
+ </legend>`}renderControl(){return n`
1102
1181
  <div class="segments" part="segments">
1103
- ${this.options.map((e,i)=>{let r=this.id_(`seg-${i}`);return o`
1182
+ ${this.options.map((e,i)=>{let r=this.id_(`seg-${i}`);return n`
1104
1183
  <label class="segment" part="segment" for=${r}>
1105
1184
  <input
1106
1185
  type="radio"
@@ -1116,18 +1195,18 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1116
1195
  </label>
1117
1196
  `})}
1118
1197
  </div>
1119
- `}render(){return o`
1198
+ `}render(){return n`
1120
1199
  <fieldset
1121
1200
  part="fieldset"
1122
1201
  aria-describedby=${this.describedBy}
1123
- aria-invalid=${this.error?"true":l}
1202
+ aria-invalid=${this.error?"true":d}
1124
1203
  >
1125
1204
  ${this.renderLabel()}
1126
- ${this.description?o`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
1205
+ ${this.description?n`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:d}
1127
1206
  ${this.renderControl()}
1128
- <div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
1207
+ <div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||d}</div>
1129
1208
  </fieldset>
1130
- `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-switch",Ve);customElements.define("impakt-segmented-control",Ge);var Ke=class extends x{static{this.properties={...x.properties,options:{type:Array}}}constructor(){super(),this.options=[]}static{this.styles=[...x.styles,u`
1209
+ `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-switch",et);customElements.define("impakt-segmented-control",tt);var it=class extends y{static{this.properties={...y.properties,options:{type:Array}}}constructor(){super(),this.options=[]}static{this.styles=[...y.styles,u`
1131
1210
  fieldset {
1132
1211
  border: 0;
1133
1212
  margin: 0;
@@ -1153,7 +1232,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1153
1232
  /* The whole row is the target, not the 20px dot — 2.5.8 is a floor and
1154
1233
  a comfortable target is the actual goal. */
1155
1234
  .option input {
1156
- ${z}
1235
+ ${E}
1157
1236
  inline-size: 20px;
1158
1237
  block-size: 20px;
1159
1238
  margin: 0;
@@ -1162,21 +1241,21 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1162
1241
  }
1163
1242
  .option-text {
1164
1243
  display: block;
1165
- font-size: ${b("md")};
1244
+ font-size: ${$("md")};
1166
1245
  }
1167
1246
  .option-description {
1168
1247
  display: block;
1169
- font-size: ${b("sm")};
1248
+ font-size: ${$("sm")};
1170
1249
  color: ${t.textMuted};
1171
1250
  margin-block-start: ${a(1)};
1172
1251
  }
1173
1252
  :host([invalid]) .option {
1174
1253
  border-color: ${t.danger};
1175
1254
  }
1176
- `]}renderLabel(){return o`<legend class="label" part="label">
1177
- ${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
1178
- </legend>`}renderControl(){return o`
1179
- ${this.options.map((e,i)=>{let r=this.id_(`opt-${i}`),s=e.description?this.id_(`opt-${i}-desc`):void 0;return o`
1255
+ `]}renderLabel(){return n`<legend class="label" part="label">
1256
+ ${this.label}${this.required?n`<span class="required"> (${this.requiredText})</span>`:d}
1257
+ </legend>`}renderControl(){return n`
1258
+ ${this.options.map((e,i)=>{let r=this.id_(`opt-${i}`),s=e.description?this.id_(`opt-${i}-desc`):void 0;return n`
1180
1259
  <label class="option" part="option" for=${r}>
1181
1260
  <input
1182
1261
  type="radio"
@@ -1186,31 +1265,31 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1186
1265
  .checked=${this.value===e.value}
1187
1266
  ?disabled=${this.disabled}
1188
1267
  ?required=${this.required&&i===0}
1189
- aria-describedby=${s??l}
1268
+ aria-describedby=${s??d}
1190
1269
  @change=${()=>this.setFormValue(e.value)}
1191
1270
  />
1192
1271
  <span>
1193
1272
  <span class="option-text">${e.label}</span>
1194
- ${e.description?o`<span class="option-description" id=${s}>${e.description}</span>`:l}
1273
+ ${e.description?n`<span class="option-description" id=${s}>${e.description}</span>`:d}
1195
1274
  </span>
1196
1275
  </label>
1197
1276
  `})}
1198
- `}render(){return o`
1277
+ `}render(){return n`
1199
1278
  <fieldset
1200
1279
  part="fieldset"
1201
1280
  aria-describedby=${this.describedBy}
1202
- aria-invalid=${this.error?"true":l}
1281
+ aria-invalid=${this.error?"true":d}
1203
1282
  >
1204
1283
  ${this.renderLabel()}
1205
- ${this.description?o`<div class="description" id=${this.id_("description")} part="description">
1284
+ ${this.description?n`<div class="description" id=${this.id_("description")} part="description">
1206
1285
  ${this.description}
1207
- </div>`:l}
1286
+ </div>`:d}
1208
1287
  ${this.renderControl()}
1209
1288
  <div class="error" id=${this.id_("error")} part="error" aria-live="polite">
1210
- ${this.error||l}
1289
+ ${this.error||d}
1211
1290
  </div>
1212
1291
  </fieldset>
1213
- `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-radio-group",Ke);var Xe=class n extends h{constructor(){super();this.hasActions=!1;this.tone="info",this.heading="",this.toneLabel="",this.label="",this.noLabel=!1}static{this.properties={tone:{type:String,reflect:!0},heading:{type:String},toneLabel:{type:String,attribute:"tone-label"},label:{type:String},noLabel:{type:Boolean,attribute:"no-label"}}}static{this.TONE_WORDS={info:"Information",success:"Success",warning:"Warning",danger:"Error",attention:"Warning"}}static{this.styles=[...h.styles,u`
1292
+ `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-radio-group",it);var rt=class o extends h{constructor(){super();this.hasActions=!1;this.tone="info",this.heading="",this.toneLabel="",this.label="",this.noLabel=!1}static{this.properties={tone:{type:String,reflect:!0},heading:{type:String},toneLabel:{type:String,attribute:"tone-label"},label:{type:String},noLabel:{type:Boolean,attribute:"no-label"}}}static{this.TONE_WORDS={info:"Information",success:"Success",warning:"Warning",danger:"Error",attention:"Warning"}}static{this.styles=[...h.styles,u`
1214
1293
  :host {
1215
1294
  display: block;
1216
1295
  margin-block-end: ${a(4)};
@@ -1220,11 +1299,11 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1220
1299
  border-radius: ${t.radiusLg};
1221
1300
  border-inline-start: 4px solid;
1222
1301
  box-shadow: inset 0 0 0 1px ${t.hairline};
1223
- font-size: ${b("sm")};
1302
+ font-size: ${$("sm")};
1224
1303
  line-height: 1.5;
1225
1304
  }
1226
1305
  .heading {
1227
- font-weight: ${m("semibold")};
1306
+ font-weight: ${b("semibold")};
1228
1307
  margin-block-end: ${a(1)};
1229
1308
  }
1230
1309
  :host([tone='info']) .alert {
@@ -1254,25 +1333,25 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1254
1333
  align-items: center;
1255
1334
  gap: ${a(3)};
1256
1335
  padding: ${a(3.5)} ${a(4)};
1257
- border: ${t.borderThin} solid ${d("color.accent.on","#111111")};
1336
+ border: ${t.borderThin} solid ${l("color.accent.on","#111111")};
1258
1337
  border-radius: ${t.radius};
1259
1338
  box-shadow: none;
1260
- background: ${d("color.accent.default","#ffd43b")};
1261
- color: ${d("color.accent.on","#111111")};
1262
- font-size: ${b("md")};
1339
+ background: ${l("color.accent.default","#ffd43b")};
1340
+ color: ${l("color.accent.on","#111111")};
1341
+ font-size: ${$("md")};
1263
1342
  line-height: 1.4;
1264
1343
  /* What sits on the yellow is drawn in the ink, whatever the band round it says. */
1265
- --impakt-color-text-default: ${d("color.accent.on","#111111")};
1266
- --impakt-color-text-inverse: ${d("color.accent.default","#ffd43b")};
1344
+ --impakt-color-text-default: ${l("color.accent.on","#111111")};
1345
+ --impakt-color-text-inverse: ${l("color.accent.default","#ffd43b")};
1267
1346
  }
1268
1347
  .tag {
1269
1348
  flex: none;
1270
1349
  padding: 3px ${a(2)};
1271
1350
  font-family: ${t.fontMono};
1272
- font-size: ${b("sm")};
1351
+ font-size: ${$("sm")};
1273
1352
  line-height: 1.3;
1274
- background: ${d("color.accent.on","#111111")};
1275
- color: ${d("color.accent.default","#ffd43b")};
1353
+ background: ${l("color.accent.on","#111111")};
1354
+ color: ${l("color.accent.default","#ffd43b")};
1276
1355
  }
1277
1356
  .words {
1278
1357
  flex: 1 1 16rem;
@@ -1297,28 +1376,28 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1297
1376
  border-inline-start-width: 4px;
1298
1377
  }
1299
1378
  }
1300
- `]}onActions(i){let r=i.target;this.hasActions=r.assignedElements({flatten:!0}).length>0,this.requestUpdate()}render(){if(this.tone==="attention"){let r=this.label||S("Check");return o`
1379
+ `]}onActions(i){let r=i.target;this.hasActions=r.assignedElements({flatten:!0}).length>0,this.requestUpdate()}render(){if(this.tone==="attention"){let r=this.label||S("Check");return n`
1301
1380
  <div class="alert" part="alert" role="status">
1302
- ${this.noLabel?l:o`<span class="tag" part="label">${r}</span>`}
1381
+ ${this.noLabel?d:n`<span class="tag" part="label">${r}</span>`}
1303
1382
  <div class="words" part="body">
1304
- ${this.heading?o`<div class="heading" part="heading">${this.heading}</div>`:l}
1383
+ ${this.heading?n`<div class="heading" part="heading">${this.heading}</div>`:d}
1305
1384
  <slot></slot>
1306
1385
  </div>
1307
1386
  <div class="actions ${this.hasActions?"":"empty"}" part="actions"><slot name="actions" @slotchange=${this.onActions}></slot></div>
1308
1387
  </div>
1309
- `}let i=this.toneLabel||S(n.TONE_WORDS[this.tone]);return o`
1388
+ `}let i=this.toneLabel||S(o.TONE_WORDS[this.tone]);return n`
1310
1389
  <div
1311
1390
  class="alert"
1312
1391
  part="alert"
1313
1392
  role=${this.tone==="danger"?"alert":"status"}
1314
- aria-label=${this.heading?l:i}
1393
+ aria-label=${this.heading?d:i}
1315
1394
  >
1316
- ${this.heading?o`<div class="heading" part="heading">
1395
+ ${this.heading?n`<div class="heading" part="heading">
1317
1396
  <span class="tone-word">${i}:</span> ${this.heading}
1318
- </div>`:l}
1397
+ </div>`:d}
1319
1398
  <slot></slot>
1320
1399
  </div>
1321
- `}};customElements.define("impakt-alert",Xe);var Ye=class extends h{static{this.properties={gap:{type:String,reflect:!0},align:{type:String,reflect:!0},direction:{type:String,reflect:!0},justify:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.gap="md",this.align="stretch",this.direction="vertical",this.justify="start",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,N,u`
1400
+ `}};customElements.define("impakt-alert",rt);var at=class extends h{static{this.properties={gap:{type:String,reflect:!0},align:{type:String,reflect:!0},direction:{type:String,reflect:!0},justify:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.gap="md",this.align="stretch",this.direction="vertical",this.justify="start",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,D,u`
1322
1401
  :host {
1323
1402
  display: flex;
1324
1403
  flex-direction: column;
@@ -1339,13 +1418,13 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1339
1418
  :host([gap='md']) { gap: ${a(4)}; }
1340
1419
  :host([gap='lg']) { gap: ${a(6)}; }
1341
1420
  :host([gap='xl']) { gap: ${a(8)}; }
1342
- `]}render(){return o`<slot></slot>`}},Je=class extends h{static{this.properties={tone:{type:String,reflect:!0},padding:{type:String,reflect:!0},imageSrc:{type:String,attribute:"image-src"},imageAlt:{type:String,attribute:"image-alt"},ratio:{type:String,reflect:!0},badge:{type:String},raised:{type:Boolean,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.tone="default",this.padding="lg",this.imageSrc="",this.imageAlt="",this.ratio="16:9",this.badge="",this.raised=!1,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,N,u`
1421
+ `]}render(){return n`<slot></slot>`}},ot=class extends h{static{this.properties={tone:{type:String,reflect:!0},padding:{type:String,reflect:!0},imageSrc:{type:String,attribute:"image-src"},imageAlt:{type:String,attribute:"image-alt"},ratio:{type:String,reflect:!0},badge:{type:String},raised:{type:Boolean,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.tone="default",this.padding="lg",this.imageSrc="",this.imageAlt="",this.ratio="16:9",this.badge="",this.raised=!1,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,D,u`
1343
1422
  :host {
1344
1423
  display: flex;
1345
1424
  flex-direction: column;
1346
1425
  background: ${t.surfaceCard};
1347
1426
  /* A hairline edge and a soft shadow, or under Noire an ink edge and none (card.edge, shadow.sm). The edge is mixed here, so a band that repaints the text repaints it. */
1348
- border: ${t.borderThin} solid color-mix(in srgb, ${t.text} ${d("card.edge","10%")}, transparent);
1427
+ border: ${t.borderThin} solid color-mix(in srgb, ${t.text} ${l("card.edge","10%")}, transparent);
1349
1428
  border-radius: ${t.radiusXl};
1350
1429
  box-shadow: ${t.shadowSm};
1351
1430
  overflow: hidden;
@@ -1370,15 +1449,15 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1370
1449
  :host([tone='plain']) .body { padding-inline: 0; }
1371
1450
  img { display: block; inline-size: 100%; aspect-ratio: var(--ratio); object-fit: cover; }
1372
1451
  .picture { position: relative; }
1373
- .tag { position: absolute; inset-block-start: ${a(4)}; inset-inline-start: ${a(4)}; padding: ${a(1.5)} ${a(3)}; font-size: ${b("sm")}; color: ${t.text}; background: ${t.surfaceCard}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); }
1452
+ .tag { position: absolute; inset-block-start: ${a(4)}; inset-inline-start: ${a(4)}; padding: ${a(1.5)} ${a(3)}; font-size: ${$("sm")}; color: ${t.text}; background: ${t.surfaceCard}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); }
1374
1453
  @media (forced-colors: active) { :host { border-color: CanvasText; } }
1375
- `]}render(){return o`${this.imageSrc?o`<div class="picture"><img src=${this.imageSrc} alt=${this.imageAlt} part="image" />${this.badge?o`<span class="tag">${this.badge}</span>`:l}</div>`:l}<div class="body" part="body"><slot></slot></div>`}},Ze=class extends h{static{this.properties={level:{type:Number,reflect:!0},size:{type:String,reflect:!0},eyebrow:{type:String,reflect:!0},align:{type:String,reflect:!0},screenReaderOnly:{type:Boolean,reflect:!0,attribute:"screen-reader-only"}}}constructor(){super(),this.level=2,this.size="xl",this.eyebrow="",this.align="start",this.screenReaderOnly=!1}static{this.styles=[...h.styles,u`
1454
+ `]}render(){return n`${this.imageSrc?n`<div class="picture"><img src=${this.imageSrc} alt=${this.imageAlt} part="image" />${this.badge?n`<span class="tag">${this.badge}</span>`:d}</div>`:d}<div class="body" part="body"><slot></slot></div>`}},nt=class extends h{static{this.properties={level:{type:Number,reflect:!0},size:{type:String,reflect:!0},eyebrow:{type:String,reflect:!0},align:{type:String,reflect:!0},screenReaderOnly:{type:Boolean,reflect:!0,attribute:"screen-reader-only"}}}constructor(){super(),this.level=2,this.size="xl",this.eyebrow="",this.align="start",this.screenReaderOnly=!1}static{this.styles=[...h.styles,u`
1376
1455
  :host {
1377
1456
  display: block;
1378
1457
  color: ${t.textHeading};
1379
1458
  font-family: ${t.fontHeading};
1380
- font-weight: ${m("bold")};
1381
- line-height: ${O("tight")};
1459
+ font-weight: ${b("bold")};
1460
+ line-height: ${W("tight")};
1382
1461
  }
1383
1462
  :host([size='5xl']) { ${w("5xl")} letter-spacing: ${t.trackingTight}; }
1384
1463
  :host([size='4xl']) { ${w("4xl")} letter-spacing: ${t.trackingTight}; }
@@ -1403,19 +1482,19 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1403
1482
  margin-block-end: ${a(2)};
1404
1483
  color: var(--impakt-eyebrow, var(--impakt-color-text-eyebrow, ${t.brand}));
1405
1484
  font-family: var(--impakt-font-family-eyebrow, ${t.fontBody});
1406
- font-size: var(--impakt-font-size-eyebrow, ${b("sm")});
1407
- font-weight: var(--impakt-font-weight-eyebrow, ${m("semibold")});
1485
+ font-size: var(--impakt-font-size-eyebrow, ${$("sm")});
1486
+ font-weight: var(--impakt-font-weight-eyebrow, ${b("semibold")});
1408
1487
  letter-spacing: 0.06em;
1409
1488
  text-transform: uppercase;
1410
1489
  }
1411
- `]}render(){return o`<div class="h" role="heading" aria-level=${this.level} part="heading">
1412
- ${this.eyebrow?o`<span class="eyebrow" part="eyebrow">${this.eyebrow}<span style="position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%)">: </span></span>`:l}<span class="words"><slot></slot></span>
1413
- </div>`}},Qe=class extends h{static{this.properties={size:{type:String,reflect:!0},tone:{type:String,reflect:!0},align:{type:String,reflect:!0},look:{type:String,reflect:!0}}}constructor(){super(),this.size="md",this.tone="default",this.align="start",this.look="prose"}static{this.styles=[...h.styles,u`
1490
+ `]}render(){return n`<div class="h" role="heading" aria-level=${this.level} part="heading">
1491
+ ${this.eyebrow?n`<span class="eyebrow" part="eyebrow">${this.eyebrow}<span style="position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%)">: </span></span>`:d}<span class="words"><slot></slot></span>
1492
+ </div>`}},st=class extends h{static{this.properties={size:{type:String,reflect:!0},tone:{type:String,reflect:!0},align:{type:String,reflect:!0},look:{type:String,reflect:!0}}}constructor(){super(),this.size="md",this.tone="default",this.align="start",this.look="prose"}static{this.styles=[...h.styles,u`
1414
1493
  :host {
1415
1494
  display: block;
1416
1495
  /* 1.4.8 asks for 1.5 within a paragraph, and it is the default here
1417
1496
  rather than an option, because body text is what it is about. */
1418
- line-height: ${O("normal")};
1497
+ line-height: ${W("normal")};
1419
1498
  /* 1.4.12 Text Spacing: a user stylesheet must be able to widen this
1420
1499
  without clipping, which a max-width in ch units survives and a
1421
1500
  fixed pixel height does not. */
@@ -1432,7 +1511,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1432
1511
  p {
1433
1512
  margin: 0;
1434
1513
  }
1435
- `]}render(){return o`<p part="text"><slot></slot></p>`}};customElements.define("impakt-stack",Ye);customElements.define("impakt-card",Je);customElements.define("impakt-heading",Ze);customElements.define("impakt-text",Qe);var et=class extends h{static{this.properties={href:{type:String},external:{type:Boolean,reflect:!0},externalText:{type:String,attribute:"external-text"},variant:{type:String,reflect:!0},icon:{type:String}}}constructor(){super(),this.href="",this.external=!1,this.externalText="opens in a new tab",this.variant="inline",this.icon="none"}static{this.styles=[...h.styles,v,u`
1514
+ `]}render(){return n`<p part="text"><slot></slot></p>`}};customElements.define("impakt-stack",at);customElements.define("impakt-card",ot);customElements.define("impakt-heading",nt);customElements.define("impakt-text",st);var lt=class extends h{static{this.properties={href:{type:String},external:{type:Boolean,reflect:!0},externalText:{type:String,attribute:"external-text"},variant:{type:String,reflect:!0},icon:{type:String}}}constructor(){super(),this.href="",this.external=!1,this.externalText="opens in a new tab",this.variant="inline",this.icon="none"}static{this.styles=[...h.styles,v,u`
1436
1515
  :host {
1437
1516
  display: inline;
1438
1517
  }
@@ -1446,22 +1525,24 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1446
1525
  color: ${t.linkHover};
1447
1526
  }
1448
1527
  :host([variant='standalone']) { display: inline-block; }
1449
- :host([variant='standalone']) a { display: inline-flex; align-items: center; gap: ${a(1)}; font-weight: ${m("semibold")}; text-decoration-thickness: 1px; }
1450
- :host([variant='standalone']) a:hover .icon { transform: translateX(2px); }
1451
- .icon { flex: none; transition: transform 120ms ease-in-out; }
1528
+ :host([variant='standalone']) a { display: inline-flex; align-items: center; gap: ${a(1)}; font-weight: ${b("semibold")}; text-decoration-thickness: 1px; }
1529
+ :host([variant='standalone']) a:hover .icon { transform: translateX(${q.linkDistance}); }
1530
+ /* Focused, the arrow slides as it does when pointed at, for a brand with the reveal set's arrow (impkt-web#51). */
1531
+ :host([variant='standalone']) a:focus-visible .icon { transform: translateX(${q.arrowDistance}); }
1532
+ .icon { flex: none; transition: transform ${q.linkDuration} ${q.linkEasing}; }
1452
1533
  .sr-only {
1453
1534
  ${T}
1454
1535
  }
1455
- `]}render(){return o`
1536
+ `]}render(){return n`
1456
1537
  <a
1457
1538
  part="link"
1458
- href=${this.href||l}
1459
- target=${this.external?"_blank":l}
1460
- rel=${this.external?"noopener noreferrer":l}
1539
+ href=${this.href||d}
1540
+ target=${this.external?"_blank":d}
1541
+ rel=${this.external?"noopener noreferrer":d}
1461
1542
  >
1462
- <slot></slot>${M(this.icon!=="none"?this.icon:this.variant==="standalone"?this.external?"external":"arrow-right":void 0,"1em")}${this.external?o`<span class="sr-only"> (${this.externalText})</span>`:l}
1543
+ <slot></slot>${M(this.icon!=="none"?this.icon:this.variant==="standalone"?this.external?"external":"arrow-right":void 0,"1em")}${this.external?n`<span class="sr-only"> (${this.externalText})</span>`:d}
1463
1544
  </a>
1464
- `}};customElements.define("impakt-link",et);var tt=class extends h{static{this.properties={src:{type:String},alt:{type:String},decorative:{type:Boolean,reflect:!0},width:{type:Number},height:{type:Number},focalX:{type:Number,attribute:"focal-x"},focalY:{type:Number,attribute:"focal-y"},loading:{type:String},ratio:{type:String,reflect:!0},rounded:{type:String,reflect:!0},hideOn:{type:String,reflect:!0,attribute:"hide-on"}}}constructor(){super(),this.hideOn="never",this.ratio="natural",this.rounded="none",this.src="",this.alt="",this.decorative=!1,this.width=void 0,this.height=void 0,this.focalX=.5,this.focalY=.5,this.loading="lazy"}static{this.styles=[...h.styles,u`
1545
+ `}};customElements.define("impakt-link",lt);var dt=class extends h{static{this.properties={src:{type:String},alt:{type:String},decorative:{type:Boolean,reflect:!0},width:{type:Number},height:{type:Number},focalX:{type:Number,attribute:"focal-x"},focalY:{type:Number,attribute:"focal-y"},loading:{type:String},ratio:{type:String,reflect:!0},rounded:{type:String,reflect:!0},hideOn:{type:String,reflect:!0,attribute:"hide-on"}}}constructor(){super(),this.hideOn="never",this.ratio="natural",this.rounded="none",this.src="",this.alt="",this.decorative=!1,this.width=void 0,this.height=void 0,this.focalX=.5,this.focalY=.5,this.loading="lazy"}static{this.styles=[...h.styles,u`
1465
1546
  @media (max-width: 40rem) { :host([hide-on='phone']) { display: none; } }
1466
1547
  @media (min-width: 40.0625rem) { :host([hide-on='wide']) { display: none; } }
1467
1548
  :host {
@@ -1481,18 +1562,18 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1481
1562
  :host([rounded='sm']) img { border-radius: ${t.radius}; }
1482
1563
  :host([rounded='lg']) img { border-radius: ${t.radiusLg}; }
1483
1564
  :host([rounded='full']) img { border-radius: 50%; }
1484
- `]}render(){return o`
1565
+ `]}render(){return n`
1485
1566
  <img
1486
1567
  part="image"
1487
1568
  src=${this.src}
1488
1569
  alt=${this.decorative?"":this.alt}
1489
- role=${this.decorative?"presentation":l}
1490
- width=${this.width??l}
1491
- height=${this.height??l}
1570
+ role=${this.decorative?"presentation":d}
1571
+ width=${this.width??d}
1572
+ height=${this.height??d}
1492
1573
  loading=${this.loading}
1493
1574
  style="object-position: ${this.focalX*100}% ${this.focalY*100}%"
1494
1575
  />
1495
- `}},it=class extends h{static{this.properties={src:{type:String},srcDark:{type:String,attribute:"src-dark"},alt:{type:String},onDark:{type:Boolean,attribute:"on-dark",reflect:!0},height:{type:Number}}}constructor(){super(),this.src="",this.srcDark="",this.alt="",this.onDark=!1,this.height=32}static{this.styles=[...h.styles,u`
1576
+ `}},ct=class extends h{static{this.properties={src:{type:String},srcDark:{type:String,attribute:"src-dark"},alt:{type:String},onDark:{type:Boolean,attribute:"on-dark",reflect:!0},height:{type:Number}}}constructor(){super(),this.src="",this.srcDark="",this.alt="",this.onDark=!1,this.height=32}static{this.styles=[...h.styles,u`
1496
1577
  :host {
1497
1578
  display: inline-block;
1498
1579
  }
@@ -1500,7 +1581,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1500
1581
  display: block;
1501
1582
  inline-size: auto;
1502
1583
  }
1503
- `]}render(){let e=this.onDark&&this.srcDark?this.srcDark:this.src;return o`<img part="logo" src=${e} alt=${this.alt} style="height: ${this.height}px" />`}},rt=class extends h{static{this.properties={href:{type:String},label:{type:String},fileType:{type:String,attribute:"file-type"},byteSize:{type:Number,attribute:"byte-size"}}}constructor(){super(),this.href="",this.label="",this.fileType="",this.byteSize=void 0}static{this.styles=[...h.styles,u`
1584
+ `]}render(){let e=this.onDark&&this.srcDark?this.srcDark:this.src;return n`<img part="logo" src=${e} alt=${this.alt} style="height: ${this.height}px" />`}},pt=class extends h{static{this.properties={href:{type:String},label:{type:String},fileType:{type:String,attribute:"file-type"},byteSize:{type:Number,attribute:"byte-size"}}}constructor(){super(),this.href="",this.label="",this.fileType="",this.byteSize=void 0}static{this.styles=[...h.styles,u`
1504
1585
  :host {
1505
1586
  display: block;
1506
1587
  }
@@ -1516,11 +1597,11 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1516
1597
  .meta {
1517
1598
  color: ${t.textMuted};
1518
1599
  }
1519
- `]}get size(){if(!this.byteSize)return"";let e=this.byteSize/1024;return e>=1024?`${(e/1024).toFixed(1)} MB`:`${Math.round(e)} KB`}render(){let e=[this.fileType,this.size].filter(Boolean).join(", ");return o`
1520
- <a part="link" href=${this.href||l} download>
1521
- <span>${this.label}</span>${e?o`<span class="meta">(${e})</span>`:l}
1600
+ `]}get size(){if(!this.byteSize)return"";let e=this.byteSize/1024;return e>=1024?`${(e/1024).toFixed(1)} MB`:`${Math.round(e)} KB`}render(){let e=[this.fileType,this.size].filter(Boolean).join(", ");return n`
1601
+ <a part="link" href=${this.href||d} download>
1602
+ <span>${this.label}</span>${e?n`<span class="meta">(${e})</span>`:d}
1522
1603
  </a>
1523
- `}};customElements.define("impakt-image",tt);customElements.define("impakt-logo",it);customElements.define("impakt-document-link",rt);var at=class extends h{static{this.properties={amount:{type:Number},currency:{type:String},locale:{type:String},prefix:{type:String},period:{type:String},size:{type:String,reflect:!0},pending:{type:String}}}constructor(){super(),this.amount=void 0,this.currency="GBP",this.locale="",this.prefix="",this.period="",this.size="xl",this.pending="\u2014"}static{this.styles=[...h.styles,u`
1604
+ `}};customElements.define("impakt-image",dt);customElements.define("impakt-logo",ct);customElements.define("impakt-document-link",pt);var ht=class extends h{static{this.properties={amount:{type:Number},currency:{type:String},locale:{type:String},prefix:{type:String},period:{type:String},size:{type:String,reflect:!0},pending:{type:String}}}constructor(){super(),this.amount=void 0,this.currency="GBP",this.locale="",this.prefix="",this.period="",this.size="xl",this.pending="\u2014"}static{this.styles=[...h.styles,u`
1524
1605
  :host {
1525
1606
  display: inline-flex;
1526
1607
  align-items: baseline;
@@ -1529,23 +1610,23 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1529
1610
  }
1530
1611
  .amount {
1531
1612
  font-family: ${t.fontHeading};
1532
- font-weight: ${m("bold")};
1613
+ font-weight: ${b("bold")};
1533
1614
  /* Tabular figures so a price does not reflow as the digits change,
1534
1615
  which otherwise makes a recalculating price jitter. */
1535
1616
  font-variant-numeric: tabular-nums;
1536
1617
  }
1537
- :host([size='md']) .amount { font-size: ${b("lg")}; }
1538
- :host([size='lg']) .amount { font-size: ${b("2xl")}; }
1539
- :host([size='xl']) .amount { font-size: ${b("3xl")}; }
1618
+ :host([size='md']) .amount { font-size: ${$("lg")}; }
1619
+ :host([size='lg']) .amount { font-size: ${$("2xl")}; }
1620
+ :host([size='xl']) .amount { font-size: ${$("3xl")}; }
1540
1621
  .period {
1541
- font-size: ${b("sm")};
1622
+ font-size: ${$("sm")};
1542
1623
  color: ${t.textMuted};
1543
1624
  }
1544
- `]}get formatted(){if(this.amount===void 0||Number.isNaN(this.amount))return this.pending;try{return new Intl.NumberFormat(this.locale||q(this),{style:"currency",currency:this.currency,...this.amount>=1e5&&this.amount%100===0?{minimumFractionDigits:0,maximumFractionDigits:0}:{}}).format(this.amount/100)}catch{return(this.amount/100).toFixed(2)}}render(){return o`
1545
- ${this.prefix?o`<span class="period" part="prefix">${this.prefix}</span>`:l}
1625
+ `]}get formatted(){if(this.amount===void 0||Number.isNaN(this.amount))return this.pending;try{return new Intl.NumberFormat(this.locale||U(this),{style:"currency",currency:this.currency,...this.amount>=1e5&&this.amount%100===0?{minimumFractionDigits:0,maximumFractionDigits:0}:{}}).format(this.amount/100)}catch{return(this.amount/100).toFixed(2)}}render(){return n`
1626
+ ${this.prefix?n`<span class="period" part="prefix">${this.prefix}</span>`:d}
1546
1627
  <span class="amount" part="amount">${this.formatted}</span>
1547
- ${this.period?o`<span class="period" part="period">${this.period}</span>`:l}
1548
- `}};customElements.define("impakt-price",at);var ot=class extends h{static{this.properties={rows:{type:Array},changeText:{type:String,attribute:"change-text"}}}constructor(){super(),this.rows=[],this.changeText="Change"}static{this.styles=[...h.styles,v,C("dd a"),u`
1628
+ ${this.period?n`<span class="period" part="period">${this.period}</span>`:d}
1629
+ `}};customElements.define("impakt-price",ht);var ut=class extends h{static{this.properties={rows:{type:Array},changeText:{type:String,attribute:"change-text"}}}constructor(){super(),this.rows=[],this.changeText="Change"}static{this.styles=[...h.styles,v,I("dd a"),u`
1549
1630
  :host {
1550
1631
  display: block;
1551
1632
  }
@@ -1567,8 +1648,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1567
1648
  border-block-end: ${t.borderThin} solid ${t.rule};
1568
1649
  }
1569
1650
  dt {
1570
- font-weight: ${m("semibold")};
1571
- font-size: ${b("sm")};
1651
+ font-weight: ${b("semibold")};
1652
+ font-size: ${$("sm")};
1572
1653
  }
1573
1654
  dd {
1574
1655
  margin: 0;
@@ -1610,21 +1691,21 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1610
1691
  padding-block-start: 0;
1611
1692
  }
1612
1693
  }
1613
- `]}render(){return o`
1694
+ `]}render(){return n`
1614
1695
  <dl part="list">
1615
- ${this.rows.map(e=>o`
1696
+ ${this.rows.map(e=>n`
1616
1697
  <div class="row" part="row">
1617
1698
  <dt part="key">${e.key}</dt>
1618
1699
  <dd part="value">
1619
1700
  <span>${e.value}</span>
1620
- ${e.changeHref?o`<a href=${e.changeHref} part="action"
1701
+ ${e.changeHref?n`<a href=${e.changeHref} part="action"
1621
1702
  >${this.changeText}<span class="sr-only"> ${e.key}</span></a
1622
- >`:l}
1703
+ >`:d}
1623
1704
  </dd>
1624
1705
  </div>
1625
1706
  `)}
1626
1707
  </dl>
1627
- `}};customElements.define("impakt-summary-list",ot);var st=class extends h{static{this.properties={caption:{type:String},captionHidden:{type:Boolean,reflect:!0,attribute:"caption-hidden"},columns:{type:Array},rows:{type:Array},sortKey:{type:String,attribute:"sort-key",reflect:!0},sortDirection:{type:String,attribute:"sort-direction",reflect:!0},manualSort:{type:Boolean,attribute:"manual-sort"},selectable:{type:Boolean,reflect:!0},selected:{type:Array},rowKey:{type:String,attribute:"row-key"},stack:{type:Boolean,reflect:!0},emptyText:{type:String,attribute:"empty-text"},selectAllText:{type:String,attribute:"select-all-text"},selectRowText:{type:String,attribute:"select-row-text"},look:{type:String,reflect:!0}}}constructor(){super(),this.caption="",this.captionHidden=!1,this.columns=[],this.rows=[],this.sortKey="",this.sortDirection="ascending",this.manualSort=!1,this.selectable=!1,this.selected=[],this.rowKey="id",this.stack=!1,this.emptyText="Nothing to show",this.selectAllText="Select all rows",this.selectRowText="Select {row}",this.look="plain"}static{this.styles=[...h.styles,v,C(".sort, .pick label"),u`
1708
+ `}};customElements.define("impakt-summary-list",ut);var mt=class extends h{static{this.properties={caption:{type:String},captionHidden:{type:Boolean,reflect:!0,attribute:"caption-hidden"},columns:{type:Array},rows:{type:Array},sortKey:{type:String,attribute:"sort-key",reflect:!0},sortDirection:{type:String,attribute:"sort-direction",reflect:!0},manualSort:{type:Boolean,attribute:"manual-sort"},selectable:{type:Boolean,reflect:!0},selected:{type:Array},rowKey:{type:String,attribute:"row-key"},stack:{type:Boolean,reflect:!0},emptyText:{type:String,attribute:"empty-text"},selectAllText:{type:String,attribute:"select-all-text"},selectRowText:{type:String,attribute:"select-row-text"},look:{type:String,reflect:!0}}}constructor(){super(),this.caption="",this.captionHidden=!1,this.columns=[],this.rows=[],this.sortKey="",this.sortDirection="ascending",this.manualSort=!1,this.selectable=!1,this.selected=[],this.rowKey="id",this.stack=!1,this.emptyText="Nothing to show",this.selectAllText="Select all rows",this.selectRowText="Select {row}",this.look="plain"}static{this.styles=[...h.styles,v,I(".sort, .pick label"),u`
1628
1709
  :host {
1629
1710
  display: block;
1630
1711
  }
@@ -1637,11 +1718,11 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1637
1718
  table {
1638
1719
  inline-size: 100%;
1639
1720
  border-collapse: collapse;
1640
- font-size: ${b("md")};
1721
+ font-size: ${$("md")};
1641
1722
  }
1642
1723
  caption {
1643
1724
  text-align: start;
1644
- font-weight: ${m("semibold")};
1725
+ font-weight: ${b("semibold")};
1645
1726
  padding-block-end: ${a(2)};
1646
1727
  }
1647
1728
  th,
@@ -1651,11 +1732,11 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1651
1732
  border-block-end: ${t.borderThin} solid ${t.rule};
1652
1733
  }
1653
1734
  thead th {
1654
- font-weight: ${m("semibold")};
1735
+ font-weight: ${b("semibold")};
1655
1736
  background: ${t.surfaceInset};
1656
1737
  }
1657
1738
  tbody th {
1658
- font-weight: ${m("semibold")};
1739
+ font-weight: ${b("semibold")};
1659
1740
  }
1660
1741
  /* Boxed: a white panel with an ink border, mono capitals for the headings and an ink rule under them. */
1661
1742
  :host([look='boxed']) .scroller {
@@ -1675,7 +1756,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1675
1756
  white-space: nowrap;
1676
1757
  }
1677
1758
  :host([look='boxed']) tbody th {
1678
- font-weight: ${m("regular")};
1759
+ font-weight: ${b("regular")};
1679
1760
  }
1680
1761
  .mono {
1681
1762
  font-family: ${t.fontMono};
@@ -1683,7 +1764,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1683
1764
  :host([look='boxed']) thead th {
1684
1765
  font-family: ${t.fontMono};
1685
1766
  font-size: 11px;
1686
- font-weight: ${m("medium")};
1767
+ font-weight: ${b("medium")};
1687
1768
  letter-spacing: 0.06em;
1688
1769
  text-transform: uppercase;
1689
1770
  color: ${t.textMuted};
@@ -1840,8 +1921,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1840
1921
  }
1841
1922
  .label {
1842
1923
  display: block;
1843
- font-size: ${b("sm")};
1844
- font-weight: ${m("semibold")};
1924
+ font-size: ${$("sm")};
1925
+ font-weight: ${b("semibold")};
1845
1926
  color: ${t.textMuted};
1846
1927
  }
1847
1928
  .empty {
@@ -1849,44 +1930,44 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1849
1930
  border: 0;
1850
1931
  }
1851
1932
  }
1852
- `]}keyOf(e,i){let r=e?.[this.rowKey];return r==null||r===""?String(i):String(r)}ordered(){let e=(this.rows??[]).map((p,$)=>({row:p,key:this.keyOf(p,$)})),i=(this.columns??[]).find(p=>p.key===this.sortKey&&p.sortable);if(!i||this.manualSort)return e;let r=this.sortDirection==="descending"?-1:1,s=q(this),c=p=>Number(String(p??"").replace(/[^\d.-]/g,""))||0;return e.sort((p,$)=>{let g=p.row[i.key]??"",k=$.row[i.key]??"";return(i.numeric?c(g)-c(k):String(g).localeCompare(String(k),s,{numeric:!0,sensitivity:"base"}))*r})}sortBy(e){let i=this.sortKey===e&&this.sortDirection==="ascending"?"descending":"ascending";this.sortKey=e,this.sortDirection=i,this.dispatchEvent(new CustomEvent("impakt-sort",{detail:{key:e,direction:i},bubbles:!0,composed:!0}))}choose(e,i){let r=new Set(this.selected??[]);for(let s of e)i?r.add(s):r.delete(s);this.selected=[...r],this.dispatchEvent(new CustomEvent("impakt-selection",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}heading(e){let i=e.sortable&&e.key===this.sortKey,r=[e.numeric?"numeric":"",e.sortable?"sortable":""].filter(Boolean).join(" ");return e.sortable?o`<th scope="col" role="columnheader" class=${r} aria-sort=${i?this.sortDirection:l}>
1933
+ `]}keyOf(e,i){let r=e?.[this.rowKey];return r==null||r===""?String(i):String(r)}ordered(){let e=(this.rows??[]).map((p,m)=>({row:p,key:this.keyOf(p,m)})),i=(this.columns??[]).find(p=>p.key===this.sortKey&&p.sortable);if(!i||this.manualSort)return e;let r=this.sortDirection==="descending"?-1:1,s=U(this),c=p=>Number(String(p??"").replace(/[^\d.-]/g,""))||0;return e.sort((p,m)=>{let g=p.row[i.key]??"",f=m.row[i.key]??"";return(i.numeric?c(g)-c(f):String(g).localeCompare(String(f),s,{numeric:!0,sensitivity:"base"}))*r})}sortBy(e){let i=this.sortKey===e&&this.sortDirection==="ascending"?"descending":"ascending";this.sortKey=e,this.sortDirection=i,this.dispatchEvent(new CustomEvent("impakt-sort",{detail:{key:e,direction:i},bubbles:!0,composed:!0}))}choose(e,i){let r=new Set(this.selected??[]);for(let s of e)i?r.add(s):r.delete(s);this.selected=[...r],this.dispatchEvent(new CustomEvent("impakt-selection",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}heading(e){let i=e.sortable&&e.key===this.sortKey,r=[e.numeric?"numeric":"",e.sortable?"sortable":""].filter(Boolean).join(" ");return e.sortable?n`<th scope="col" role="columnheader" class=${r} aria-sort=${i?this.sortDirection:d}>
1853
1934
  <button class="sort" type="button" part="sort" @click=${()=>this.sortBy(e.key)}>${e.label}<span class="arrow" aria-hidden="true">${M("chevron-down","16px")}</span></button>
1854
- </th>`:o`<th scope="col" role="columnheader" class=${r}>${e.label}</th>`}render(){let e=this.columns??[],i=this.ordered(),r=new Set(this.selected??[]),s=i.length>0&&i.every(p=>r.has(p.key)),c=!s&&i.some(p=>r.has(p.key));return o`
1855
- <div class="scroller" part="scroller" tabindex="0" role="region" aria-label=${this.caption||l}>
1935
+ </th>`:n`<th scope="col" role="columnheader" class=${r}>${e.label}</th>`}render(){let e=this.columns??[],i=this.ordered(),r=new Set(this.selected??[]),s=i.length>0&&i.every(p=>r.has(p.key)),c=!s&&i.some(p=>r.has(p.key));return n`
1936
+ <div class="scroller" part="scroller" tabindex="0" role="region" aria-label=${this.caption||d}>
1856
1937
  <table part="table" role="table">
1857
- ${this.caption?o`<caption part="caption">${this.caption}</caption>`:l}
1938
+ ${this.caption?n`<caption part="caption">${this.caption}</caption>`:d}
1858
1939
  <thead role="rowgroup">
1859
1940
  <tr role="row">
1860
- ${this.selectable?o`<th scope="col" role="columnheader" class="pick"><label><input type="checkbox" aria-label=${this.selectAllText} .checked=${s} .indeterminate=${c} ?disabled=${!i.length}
1861
- @change=${p=>this.choose(i.map($=>$.key),p.target.checked)} /></label></th>`:l}
1941
+ ${this.selectable?n`<th scope="col" role="columnheader" class="pick"><label><input type="checkbox" aria-label=${this.selectAllText} .checked=${s} .indeterminate=${c} ?disabled=${!i.length}
1942
+ @change=${p=>this.choose(i.map(m=>m.key),p.target.checked)} /></label></th>`:d}
1862
1943
  ${e.map(p=>this.heading(p))}
1863
1944
  </tr>
1864
1945
  </thead>
1865
1946
  <tbody role="rowgroup">
1866
- ${i.length?i.map(({row:p,key:$},g)=>o`
1867
- <tr role="row" class=${r.has($)?"chosen":""} part="row">
1868
- ${this.selectable?o`<td role="cell" class="pick"><label><input type="checkbox" aria-label=${this.selectRowText.replace("{row}",String(p[e[0]?.key??""]??$))} .checked=${r.has($)}
1869
- @change=${k=>this.choose([$],k.target.checked)} /></label></td>`:l}
1870
- ${e.map((k,_)=>{let A=o`<span class="label" aria-hidden="true">${k.label}</span><span class="value"><slot name=${`cell:${$}:${k.key}`}>${p[k.key]??""}</slot></span>`;return _===0?o`<th scope="row" role="rowheader" class=${k.mono?"mono":""} id=${`${this.uid}-r${g}`}>${A}</th>`:o`<td role="cell" class=${[k.numeric?"numeric":"",k.mono?"mono":""].join(" ").trim()}>${A}</td>`})}
1947
+ ${i.length?i.map(({row:p,key:m},g)=>n`
1948
+ <tr role="row" class=${r.has(m)?"chosen":""} part="row">
1949
+ ${this.selectable?n`<td role="cell" class="pick"><label><input type="checkbox" aria-label=${this.selectRowText.replace("{row}",String(p[e[0]?.key??""]??m))} .checked=${r.has(m)}
1950
+ @change=${f=>this.choose([m],f.target.checked)} /></label></td>`:d}
1951
+ ${e.map((f,A)=>{let z=n`<span class="label" aria-hidden="true">${f.label}</span><span class="value"><slot name=${`cell:${m}:${f.key}`}>${p[f.key]??""}</slot></span>`;return A===0?n`<th scope="row" role="rowheader" class=${f.mono?"mono":""} id=${`${this.uid}-r${g}`}>${z}</th>`:n`<td role="cell" class=${[f.numeric?"numeric":"",f.mono?"mono":""].join(" ").trim()}>${z}</td>`})}
1871
1952
  </tr>
1872
- `):o`<tr role="row"><td role="cell" class="empty" colspan=${e.length+(this.selectable?1:0)||1}><slot name="empty">${this.emptyText}</slot></td></tr>`}
1953
+ `):n`<tr role="row"><td role="cell" class="empty" colspan=${e.length+(this.selectable?1:0)||1}><slot name="empty">${this.emptyText}</slot></td></tr>`}
1873
1954
  </tbody>
1874
1955
  </table>
1875
1956
  </div>
1876
- `}};customElements.define("impakt-table",st);var nt=typeof HTMLElement>"u"||!("children"in HTMLElement.prototype);var R={edge:d("accordion.edge","15%"),topEdgeWidth:d("accordion.top-edge-width","0px"),questionSize:d("accordion.question.size","1rem"),questionLineHeight:d("accordion.question.line-height","1.5"),questionTracking:d("accordion.question.tracking","0em"),questionPadding:d("accordion.question.padding","12px"),hoverInk:d("accordion.hover-ink","0%"),hoverLine:d("accordion.hover-line","none"),plus:d("accordion.plus","none"),chevron:d("accordion.chevron","inline-block"),markerSize:d("accordion.marker.size","18px"),markerStroke:d("accordion.marker.stroke","2px"),answerSpace:d("accordion.answer.space","16px"),answerPull:d("accordion.answer.pull","0px"),answerInk:d("accordion.answer.ink","100%"),answerLineHeight:d("accordion.answer.line-height","1.5"),answerWidth:d("accordion.answer.width","none")},Ui=L("var(--impakt-color-line-soft, #dcdcd8)"),lt=class extends h{static{this.properties={items:{type:Array},headingLevel:{type:Number,attribute:"heading-level"},open:{type:Array},multiple:{type:Boolean},look:{type:String,reflect:!0},enhanced:{state:!0}}}constructor(){super(),this.items=[],this.headingLevel=3,this.open=[],this.multiple=!0,this.look="plain",this.enhanced=!1}connectedCallback(){!nt&&!this.shadowRoot&&(this.enhanced=!0),super.connectedCallback()}firstUpdated(){this.enhanced=!0}static{this.styles=[...h.styles,v,De,u`
1957
+ `}};customElements.define("impakt-table",mt);var gt=typeof HTMLElement>"u"||!("children"in HTMLElement.prototype);var H={edge:l("accordion.edge","15%"),topEdgeWidth:l("accordion.top-edge-width","0px"),questionSize:l("accordion.question.size","1rem"),questionLineHeight:l("accordion.question.line-height","1.5"),questionTracking:l("accordion.question.tracking","0em"),questionPadding:l("accordion.question.padding","12px"),hoverInk:l("accordion.hover-ink","0%"),hoverLine:l("accordion.hover-line","none"),plus:l("accordion.plus","none"),chevron:l("accordion.chevron","inline-block"),markerSize:l("accordion.marker.size","18px"),markerStroke:l("accordion.marker.stroke","2px"),answerSpace:l("accordion.answer.space","16px"),answerPull:l("accordion.answer.pull","0px"),answerInk:l("accordion.answer.ink","100%"),answerLineHeight:l("accordion.answer.line-height","1.5"),answerWidth:l("accordion.answer.width","none")},hr=R("var(--impakt-color-line-soft, #dcdcd8)"),bt=class extends h{static{this.properties={items:{type:Array},headingLevel:{type:Number,attribute:"heading-level"},open:{type:Array},multiple:{type:Boolean},look:{type:String,reflect:!0},enhanced:{state:!0}}}constructor(){super(),this.items=[],this.headingLevel=3,this.open=[],this.multiple=!0,this.look="plain",this.enhanced=!1}connectedCallback(){!gt&&!this.shadowRoot&&(this.enhanced=!0),super.connectedCallback()}firstUpdated(){this.enhanced=!0}static{this.styles=[...h.styles,v,Xe,u`
1877
1958
  :host {
1878
1959
  display: block;
1879
- border-block-start: ${R.topEdgeWidth} solid ${t.text};
1960
+ border-block-start: ${H.topEdgeWidth} solid ${t.text};
1880
1961
  }
1881
1962
  /* Rows with a faint rule, or under Noire an ink one (accordion.edge), mixed here so a band that repaints the text repaints it. */
1882
1963
  .item {
1883
- border-block-end: ${t.borderThin} solid color-mix(in srgb, ${t.text} ${R.edge}, transparent);
1964
+ border-block-end: ${t.borderThin} solid color-mix(in srgb, ${t.text} ${H.edge}, transparent);
1884
1965
  }
1885
1966
  /* The heading row. The button is stretched over it, so the whole row opens the panel, the status included. */
1886
1967
  .head {
1887
1968
  /* The question's padding and size, read by the button and by the marker beside it, so the marker sits on the question's first line. */
1888
- --q-pad: ${R.questionPadding};
1889
- --q-size: ${R.questionSize};
1969
+ --q-pad: ${H.questionPadding};
1970
+ --q-size: ${H.questionSize};
1890
1971
  position: relative;
1891
1972
  display: flex;
1892
1973
  align-items: center;
@@ -1898,7 +1979,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1898
1979
  margin: 0;
1899
1980
  }
1900
1981
  button {
1901
- ${z}
1982
+ ${E}
1902
1983
  display: flex;
1903
1984
  align-items: baseline;
1904
1985
  flex-wrap: wrap;
@@ -1911,9 +1992,9 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1911
1992
  font: inherit;
1912
1993
  /* The question in body type, or under Noire (G2) heading S: 24/1.15, -2.5%, semibold. */
1913
1994
  font-size: var(--q-size);
1914
- line-height: ${R.questionLineHeight};
1915
- letter-spacing: ${R.questionTracking};
1916
- font-weight: ${m("semibold")};
1995
+ line-height: ${H.questionLineHeight};
1996
+ letter-spacing: ${H.questionTracking};
1997
+ font-weight: ${b("semibold")};
1917
1998
  color: ${t.text};
1918
1999
  text-align: start;
1919
2000
  cursor: pointer;
@@ -1930,16 +2011,16 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1930
2011
  box-shadow: ${t.focusShadow};
1931
2012
  }
1932
2013
  button:hover {
1933
- color: color-mix(in srgb, ${t.text} ${R.hoverInk}, ${t.link});
2014
+ color: color-mix(in srgb, ${t.text} ${H.hoverInk}, ${t.link});
1934
2015
  }
1935
2016
  button:hover .q {
1936
- text-decoration-line: ${R.hoverLine};
2017
+ text-decoration-line: ${H.hoverLine};
1937
2018
  text-decoration-thickness: 1px;
1938
2019
  text-underline-offset: 0.15em;
1939
2020
  }
1940
2021
  .meta {
1941
2022
  font-family: ${t.fontMono};
1942
- font-size: ${b("sm")};
2023
+ font-size: ${$("sm")};
1943
2024
  font-weight: 400;
1944
2025
  letter-spacing: normal;
1945
2026
  color: ${t.textMuted};
@@ -1958,13 +2039,13 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1958
2039
  .marker {
1959
2040
  position: relative;
1960
2041
  flex: none;
1961
- inline-size: ${R.markerSize};
1962
- block-size: ${R.markerSize};
2042
+ inline-size: ${H.markerSize};
2043
+ block-size: ${H.markerSize};
1963
2044
  /* Centred on the question's first line (#51): below the button's padding, in the middle of the question's line box. */
1964
2045
  font-size: var(--q-size);
1965
- line-height: ${R.questionLineHeight};
2046
+ line-height: ${H.questionLineHeight};
1966
2047
  align-self: flex-start;
1967
- margin-block-start: calc(var(--q-pad) + (1lh - ${R.markerSize}) / 2);
2048
+ margin-block-start: calc(var(--q-pad) + (1lh - ${H.markerSize}) / 2);
1968
2049
  }
1969
2050
  /* In the issues look the marker is inside the button, on the button's own line. */
1970
2051
  :host([look='issues']) .marker {
@@ -1979,13 +2060,13 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1979
2060
  }
1980
2061
  .marker::before {
1981
2062
  inset-inline: 0;
1982
- inset-block-start: calc(50% - ${R.markerStroke} / 2);
1983
- block-size: ${R.markerStroke};
2063
+ inset-block-start: calc(50% - ${H.markerStroke} / 2);
2064
+ block-size: ${H.markerStroke};
1984
2065
  }
1985
2066
  .marker::after {
1986
2067
  inset-block: 0;
1987
- inset-inline-start: calc(50% - ${R.markerStroke} / 2);
1988
- inline-size: ${R.markerStroke};
2068
+ inset-inline-start: calc(50% - ${H.markerStroke} / 2);
2069
+ inline-size: ${H.markerStroke};
1989
2070
  transition: transform 120ms ease-in-out;
1990
2071
  }
1991
2072
  .item.open .marker::after {
@@ -1994,10 +2075,10 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
1994
2075
  /* The brand's marker: a "+" (accordion.plus) or a chevron that turns to point down when open (accordion.chevron). */
1995
2076
  .marker::before,
1996
2077
  .marker::after {
1997
- display: ${R.plus};
2078
+ display: ${H.plus};
1998
2079
  }
1999
2080
  .chev {
2000
- display: ${R.chevron};
2081
+ display: ${H.chevron};
2001
2082
  position: absolute;
2002
2083
  inset: 0;
2003
2084
  line-height: 18px;
@@ -2029,12 +2110,12 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2029
2110
  display: none;
2030
2111
  }
2031
2112
  .panel {
2032
- max-inline-size: ${R.answerWidth};
2033
- margin-block-start: ${R.answerPull};
2034
- padding-block-end: ${R.answerSpace};
2035
- font-size: ${b("md")};
2036
- line-height: ${R.answerLineHeight};
2037
- color: color-mix(in srgb, ${t.text} ${R.answerInk}, ${t.textMuted});
2113
+ max-inline-size: ${H.answerWidth};
2114
+ margin-block-start: ${H.answerPull};
2115
+ padding-block-end: ${H.answerSpace};
2116
+ font-size: ${$("md")};
2117
+ line-height: ${H.answerLineHeight};
2118
+ color: color-mix(in srgb, ${t.text} ${H.answerInk}, ${t.textMuted});
2038
2119
  }
2039
2120
  /*
2040
2121
  * Issues (frames 36:716, 36:430): rows divided by soft rules, each a code, a small "+" and the finding in
@@ -2045,7 +2126,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2045
2126
  border-block-start: 0;
2046
2127
  }
2047
2128
  :host([look='issues']) .item {
2048
- border-block-end: ${t.borderThin} solid ${Ui};
2129
+ border-block-end: ${t.borderThin} solid ${hr};
2049
2130
  }
2050
2131
  /* The finding keeps at least 16rem; on a narrow screen the status wraps under it, at the end, rather than squeezing it. */
2051
2132
  :host([look='issues']) .head {
@@ -2065,7 +2146,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2065
2146
  font-size: 1.25rem;
2066
2147
  line-height: 1.2;
2067
2148
  letter-spacing: -0.01em;
2068
- font-weight: ${m("regular")};
2149
+ font-weight: ${b("regular")};
2069
2150
  }
2070
2151
  :host([look='issues']) .meta {
2071
2152
  margin-inline-end: ${a(1)};
@@ -2099,7 +2180,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2099
2180
  font-size: var(--impakt-type-heading-s-size, 1.5rem);
2100
2181
  line-height: 1.15;
2101
2182
  letter-spacing: -0.025em;
2102
- font-weight: ${m("semibold")};
2183
+ font-weight: ${b("semibold")};
2103
2184
  }
2104
2185
  :host([look='issues']) .item.open .meta {
2105
2186
  letter-spacing: normal;
@@ -2123,12 +2204,12 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2123
2204
  padding: ${a(5)} 0;
2124
2205
  background: none;
2125
2206
  border: 0;
2126
- border-block-end: ${t.borderThin} solid ${Ui};
2207
+ border-block-end: ${t.borderThin} solid ${hr};
2127
2208
  }
2128
2209
  @media (max-width: 40rem) {
2129
2210
  .head {
2130
- --q-pad: min(${R.questionPadding}, ${a(6)});
2131
- --q-size: min(${R.questionSize}, 1.25rem);
2211
+ --q-pad: min(${H.questionPadding}, ${a(6)});
2212
+ --q-size: min(${H.questionSize}, 1.25rem);
2132
2213
  }
2133
2214
  :host([look='issues']) button {
2134
2215
  padding-block: ${a(4)};
@@ -2142,8 +2223,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2142
2223
  font-size: 1.25rem;
2143
2224
  }
2144
2225
  }
2145
- `]}toggle(e){this.open.includes(e)?this.open=this.open.filter(r=>r!==e):this.open=this.multiple?[...this.open,e]:[e]}render(){let e=this.look==="issues";return o`
2146
- ${this.items.map(i=>{let r=!this.enhanced||this.open.includes(i.id),s=this.id_(`panel-${i.id}`),c=this.id_(`button-${i.id}`);return o`
2226
+ `]}toggle(e){this.open.includes(e)?this.open=this.open.filter(r=>r!==e):this.open=this.multiple?[...this.open,e]:[e]}render(){let e=this.look==="issues";return n`
2227
+ ${this.items.map(i=>{let r=!this.enhanced||this.open.includes(i.id),s=this.id_(`panel-${i.id}`),c=this.id_(`button-${i.id}`);return n`
2147
2228
  <div class="item ${r?"open":""}" part="item">
2148
2229
  <div class="head" part="head">
2149
2230
  <div class="h" role="heading" aria-level=${this.headingLevel}>
@@ -2155,15 +2236,15 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2155
2236
  aria-controls=${s}
2156
2237
  @click=${()=>this.toggle(i.id)}
2157
2238
  >
2158
- ${i.meta?o`<span class="meta" part="meta">${i.meta}</span>`:l}
2159
- ${e?o`<span class="marker" aria-hidden="true"></span>`:l}
2239
+ ${i.meta?n`<span class="meta" part="meta">${i.meta}</span>`:d}
2240
+ ${e?n`<span class="marker" aria-hidden="true"></span>`:d}
2160
2241
  <span class="q">${i.heading}</span>
2161
2242
  </button>
2162
2243
  </div>
2163
- ${i.tags?.length?o`<span class="pills" part="pills">
2164
- ${oe(i.status,i.statusTone)}${i.tags.map(p=>oe(p.label,p.tone??"neutral","tag"))}
2165
- </span>`:oe(i.status,i.statusTone)}
2166
- ${e?l:o`<span class="marker" aria-hidden="true"><span class="chev">›</span></span>`}
2244
+ ${i.tags?.length?n`<span class="pills" part="pills">
2245
+ ${pe(i.status,i.statusTone)}${i.tags.map(p=>pe(p.label,p.tone??"neutral","tag"))}
2246
+ </span>`:pe(i.status,i.statusTone)}
2247
+ ${e?d:n`<span class="marker" aria-hidden="true"><span class="chev">›</span></span>`}
2167
2248
  </div>
2168
2249
  <div
2169
2250
  id=${s}
@@ -2177,7 +2258,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2177
2258
  </div>
2178
2259
  </div>
2179
2260
  `})}
2180
- `}};customElements.define("impakt-accordion",lt);var Tr=L("var(--impakt-color-line-soft, #dcdcd8)"),dt=class extends h{static{this.properties={steps:{type:Array},current:{type:String},label:{type:String},look:{type:String,reflect:!0},hideLabels:{type:Boolean,attribute:"hide-labels",reflect:!0},doneText:{type:String,attribute:"done-text"}}}constructor(){super(),this.steps=[],this.current="",this.label="Progress",this.look="steps",this.hideLabels=!1,this.doneText=""}static{this.styles=[...h.styles,v,u`
2261
+ `}};customElements.define("impakt-accordion",bt);var ta=R("var(--impakt-color-line-soft, #dcdcd8)"),ft=class extends h{static{this.properties={steps:{type:Array},current:{type:String},label:{type:String},look:{type:String,reflect:!0},hideLabels:{type:Boolean,attribute:"hide-labels",reflect:!0},doneText:{type:String,attribute:"done-text"}}}constructor(){super(),this.steps=[],this.current="",this.label="Progress",this.look="steps",this.hideLabels=!1,this.doneText=""}static{this.styles=[...h.styles,v,u`
2181
2262
  :host {
2182
2263
  display: block;
2183
2264
  margin-block-end: ${a(5)};
@@ -2191,7 +2272,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2191
2272
  }
2192
2273
  li {
2193
2274
  flex: 1;
2194
- font-size: ${b("sm")};
2275
+ font-size: ${$("sm")};
2195
2276
  color: ${t.textMuted};
2196
2277
  padding-block-start: ${a(2)};
2197
2278
  border-block-start: 4px solid ${t.border};
@@ -2202,7 +2283,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2202
2283
  }
2203
2284
  li[data-state='current'] {
2204
2285
  color: ${t.text};
2205
- font-weight: ${m("semibold")};
2286
+ font-weight: ${b("semibold")};
2206
2287
  border-block-start-color: ${t.brand};
2207
2288
  }
2208
2289
  .sr-only {
@@ -2255,14 +2336,14 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2255
2336
  gap: ${a(8)};
2256
2337
  inline-size: max-content;
2257
2338
  min-inline-size: 100%;
2258
- box-shadow: inset 0 -1px 0 ${Tr};
2339
+ box-shadow: inset 0 -1px 0 ${ta};
2259
2340
  }
2260
2341
  :host([look='stages']) li {
2261
2342
  flex: none;
2262
2343
  padding: 0;
2263
2344
  border: 0;
2264
- font-size: ${b("md")};
2265
- font-weight: ${m("regular")};
2345
+ font-size: ${$("md")};
2346
+ font-weight: ${b("regular")};
2266
2347
  color: ${t.textMuted};
2267
2348
  white-space: nowrap;
2268
2349
  }
@@ -2278,7 +2359,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2278
2359
  }
2279
2360
  :host([look='stages']) .num {
2280
2361
  font-family: ${t.fontMono};
2281
- font-size: ${b("sm")};
2362
+ font-size: ${$("sm")};
2282
2363
  }
2283
2364
  :host([look='stages']) li[data-state='done'] .num {
2284
2365
  color: ${t.text};
@@ -2304,50 +2385,51 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2304
2385
  ${T}
2305
2386
  }
2306
2387
  }
2307
- `]}renderStages(e){let i=this.doneText||S("done"),r=this.steps.some(s=>s.href);return o`
2308
- <nav part="nav" aria-label=${this.label} tabindex=${r?l:"0"}>
2388
+ `]}renderStages(e){let i=this.doneText||S("done"),r=this.steps.some(s=>s.href);return n`
2389
+ <nav part="nav" aria-label=${this.label} tabindex=${r?d:"0"}>
2309
2390
  <ol part="list">
2310
- ${this.steps.map((s,c)=>{let p=c<e?"done":c===e?"current":"todo",$=String(c+1).padStart(2,"0"),g=o`<span class="num" part="step-number">${p==="done"?o`<span aria-hidden="true">✓ </span>`:l}${$}</span>
2311
- <span class="name" part="step-label">${s.label}</span>${p==="done"?o`<span class="sr-only">, ${i}</span>`:l}`;return o`
2391
+ ${this.steps.map((s,c)=>{let p=c<e?"done":c===e?"current":"todo",m=String(c+1).padStart(2,"0"),g=n`<span class="num" part="step-number">${p==="done"?n`<span aria-hidden="true">✓ </span>`:d}${m}</span>
2392
+ <span class="name" part="step-label">${s.label}</span>${p==="done"?n`<span class="sr-only">, ${i}</span>`:d}`;return n`
2312
2393
  <li part="step step-${p}" data-state=${p}>
2313
- ${s.href?o`<a class="stage" href=${s.href} aria-current=${p==="current"?"step":l}>${g}</a>`:o`<span class="stage" aria-current=${p==="current"?"step":l}>${g}</span>`}
2394
+ ${s.href?n`<a class="stage" href=${s.href} aria-current=${p==="current"?"step":d}>${g}</a>`:n`<span class="stage" aria-current=${p==="current"?"step":d}>${g}</span>`}
2314
2395
  </li>
2315
2396
  `})}
2316
2397
  </ol>
2317
2398
  </nav>
2318
- `}render(){let e=this.steps.findIndex(i=>i.id===this.current);return this.look==="stages"?this.renderStages(e):o`
2399
+ `}render(){let e=this.steps.findIndex(i=>i.id===this.current);return this.look==="stages"?this.renderStages(e):n`
2319
2400
  <nav part="nav" aria-label=${this.label}>
2320
2401
  <ol part="list">
2321
- ${this.steps.map((i,r)=>{let s=r<e?"done":r===e?"current":"todo";return o`
2322
- <li part="step step-${s}" data-state=${s} aria-current=${s==="current"?"step":l}>
2323
- ${s==="current"?o`<span class="sr-only">${S("Step {step} of {steps}:",{step:r+1,steps:this.steps.length})} </span>`:l}
2402
+ ${this.steps.map((i,r)=>{let s=r<e?"done":r===e?"current":"todo";return n`
2403
+ <li part="step step-${s}" data-state=${s} aria-current=${s==="current"?"step":d}>
2404
+ ${s==="current"?n`<span class="sr-only">${S("Step {step} of {steps}:",{step:r+1,steps:this.steps.length})} </span>`:d}
2324
2405
  <span class="name" part="step-label">${i.label}</span>
2325
2406
  </li>
2326
2407
  `})}
2327
2408
  </ol>
2328
2409
  </nav>
2329
- `}};customElements.define("impakt-progress",dt);var be={brand:"var(--impakt-color-brand-default, #1f4ed8)",accent:"var(--impakt-color-accent-default, #c8a15a)",info:"var(--impakt-color-status-info-default, #1f4ed8)",success:"var(--impakt-color-status-success-default, #047857)",warning:"var(--impakt-color-status-warning-default, #b45309)",danger:"var(--impakt-color-status-danger-default, #c8102e)"},fe=["success","info","warning","accent","danger","brand"],di=(n,e)=>typeof n=="number"?`var(--impakt-color-chart-${n}, ${be[fe[(n-1)%fe.length]]})`:n&&n in be?be[n]:`var(--impakt-color-chart-${e%5+1}, ${be[fe[e%fe.length]]})`;var Wi=t.fontMono,ct=class extends h{static{this.properties={label:{type:String},meta:{type:String},icon:{type:String,reflect:!0},tone:{type:String},look:{type:String,reflect:!0},size:{type:String,reflect:!0},hideOn:{type:String,reflect:!0,attribute:"hide-on"}}}constructor(){super(),this.label="",this.meta="",this.icon="none",this.tone="success",this.look="filled",this.size="md",this.hideOn="never"}static{this.styles=[...h.styles,Di,u`
2410
+ `}};customElements.define("impakt-progress",ft);var Se={brand:"var(--impakt-color-brand-default, #1f4ed8)",accent:"var(--impakt-color-accent-default, #c8a15a)",info:"var(--impakt-color-status-info-default, #1f4ed8)",success:"var(--impakt-color-status-success-default, #047857)",warning:"var(--impakt-color-status-warning-default, #b45309)",danger:"var(--impakt-color-status-danger-default, #c8102e)"},Te=["success","info","warning","accent","danger","brand"],Ti=(o,e)=>typeof o=="number"?`var(--impakt-color-chart-${o}, ${Se[Te[(o-1)%Te.length]]})`:o&&o in Se?Se[o]:`var(--impakt-color-chart-${e%5+1}, ${Se[Te[e%Te.length]]})`;var ur=t.fontMono,$t=class extends h{static{this.properties={label:{type:String},meta:{type:String},icon:{type:String,reflect:!0},tone:{type:String},look:{type:String,reflect:!0},size:{type:String,reflect:!0},hideOn:{type:String,reflect:!0,attribute:"hide-on"}}}constructor(){super(),this.label="",this.meta="",this.icon="none",this.tone="success",this.look="filled",this.size="md",this.hideOn="never"}static{this.styles=[...h.styles,dr,u`
2330
2411
  :host { display: inline-flex; flex: none; }
2331
- span.chip { display: inline-flex; align-items: center; gap: ${a(1.5)}; padding: 3px ${a(2.5)}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); font-family: ${Wi}; font-size: ${b("xs")}; line-height: 1.2; white-space: nowrap; }
2412
+ span.chip { display: inline-flex; align-items: center; gap: ${a(1.5)}; padding: 3px ${a(2.5)}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); font-family: ${ur}; font-size: ${$("xs")}; line-height: 1.2; white-space: nowrap; }
2332
2413
  :host([look='filled']) span.chip { border-radius: ${t.radius}; background: color-mix(in srgb, currentColor 7%, transparent); }
2414
+ /* The edge is the border grey where the brand derives it, and ink under Noire (G2) (chip.outlined.edge, #69). */
2333
2415
  /* Spaced 0.04em where the brand derives it, and not at all under Noire (G2) (chip.outlined.tracking). */
2334
- :host([look='outlined']) span.chip { border: ${t.borderThin} solid ${t.text}; background: ${t.surfaceCard}; letter-spacing: ${d("chip.outlined.tracking","0.04em")}; }
2335
- :host([size='marketing']) span.chip { font-size: 11px; font-weight: ${m("medium")}; text-transform: uppercase; letter-spacing: 0.06em; }
2336
- /* Body: a 35px square box in the body face, for a row of tags such as a stack (G2 case study, 21:1493). */
2337
- :host([size='body']) span.chip { box-sizing: border-box; min-block-size: 35px; padding: ${a(1.5)} ${a(3)}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radius}; font-family: ${t.fontBody}; font-size: 14px; line-height: 1.2; }
2416
+ :host([look='outlined']) span.chip { border: ${t.borderThin} solid color-mix(in srgb, ${t.text} ${l("chip.outlined.edge","0%")}, ${t.border}); background: ${t.surfaceCard}; letter-spacing: ${l("chip.outlined.tracking","0.04em")}; }
2417
+ :host([size='marketing']) span.chip { font-size: 11px; font-weight: ${b("medium")}; text-transform: uppercase; letter-spacing: 0.06em; }
2418
+ /* Body: a 35px square box in the body face, 8 by 14 inside, for a row of tags such as a stack (G2 case study, 21:1493, where "React" is 68px wide). */
2419
+ :host([size='body']) span.chip { box-sizing: border-box; min-block-size: 35px; padding: 8px 14px; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radius}; font-family: ${t.fontBody}; font-size: 14px; line-height: 1.2; }
2338
2420
  :host([size='lg']) span.chip { box-sizing: border-box; min-block-size: 49px; gap: ${a(3)}; padding: ${a(2)} ${a(4)}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radius}; font-family: ${t.fontBody}; font-size: 20px; line-height: 1.2; }
2339
- :host([size='lg']) .meta { font-family: ${Wi}; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 1; color: ${t.textMuted}; }
2421
+ :host([size='lg']) .meta { font-family: ${ur}; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 1; color: ${t.textMuted}; }
2340
2422
  :host([look='plain']) span.chip { padding: 0; }
2341
2423
  .dot { flex: none; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--tone); }
2342
2424
  /* Yellow means "needs your attention": the accent, with an ink stroke so it shows on white. */
2343
- .dot.warn { background: ${d("color.accent.default","#ffd43b")}; box-shadow: 0 0 0 1px ${t.text}; }
2425
+ .dot.warn { background: ${l("color.accent.default","#ffd43b")}; box-shadow: 0 0 0 1px ${t.text}; }
2344
2426
  @media (forced-colors: active) { .dot, .dot.warn { background: CanvasText; } }
2345
2427
  svg { inline-size: 12px; block-size: 12px; }
2346
2428
  .meta { opacity: 0.72; text-transform: none; }
2347
2429
  :host([look='plain']) .label { opacity: 0.72; }
2348
- `]}render(){let e=this.icon==="dot"?o`<span class="dot ${this.tone==="warning"?"warn":""}" aria-hidden="true"></span>`:this.icon==="branch"?o`<svg viewBox="0 0 14 14" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="3.5" cy="3" r="1.5"/><circle cx="3.5" cy="11" r="1.5"/><circle cx="10.5" cy="4.5" r="1.5"/><path d="M3.5 4.5v5M10.5 6c0 2.5-3 2.5-6 4"/></svg>`:l;return o`<span class="chip" part="chip" style=${`--tone:${di(this.tone,0)}`}>${e}<span class="label">${this.label}</span>${this.meta?o` <span class="meta">${this.meta}</span>`:l}</span>`}};customElements.define("impakt-chip",ct);var pt=class extends h{static{this.properties={tone:{type:String,reflect:!0},icon:{type:String},look:{type:String,reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),this.tone="neutral",this.icon="none",this.look="filled",this.size="md"}static{this.styles=[...h.styles,u`
2430
+ `]}render(){let e=this.icon==="dot"?n`<span class="dot ${this.tone==="warning"?"warn":""}" aria-hidden="true"></span>`:this.icon==="branch"?n`<svg viewBox="0 0 14 14" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="3.5" cy="3" r="1.5"/><circle cx="3.5" cy="11" r="1.5"/><circle cx="10.5" cy="4.5" r="1.5"/><path d="M3.5 4.5v5M10.5 6c0 2.5-3 2.5-6 4"/></svg>`:d;return n`<span class="chip" part="chip" style=${`--tone:${Ti(this.tone,0)}`}>${e}<span class="label">${this.label}</span>${this.meta?n` <span class="meta">${this.meta}</span>`:d}</span>`}};customElements.define("impakt-chip",$t);var xt=class extends h{static{this.properties={tone:{type:String,reflect:!0},icon:{type:String},look:{type:String,reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),this.tone="neutral",this.icon="none",this.look="filled",this.size="md"}static{this.styles=[...h.styles,u`
2349
2431
  :host { display: inline-flex; }
2350
- span { display: inline-flex; align-items: center; gap: ${a(1)}; padding: ${a(.5)} ${a(2)}; border-radius: ${t.radius}; ${w("sm")} font-weight: ${m("medium")}; background: ${t.surfaceInset}; color: ${t.text}; box-shadow: inset 0 0 0 1px ${t.hairline}; }
2432
+ span { display: inline-flex; align-items: center; gap: ${a(1)}; padding: ${a(.5)} ${a(2)}; border-radius: ${t.radius}; ${w("sm")} font-weight: ${b("medium")}; background: ${t.surfaceInset}; color: ${t.text}; box-shadow: inset 0 0 0 1px ${t.hairline}; }
2351
2433
  :host([tone='brand']) span { background: ${t.brandSubtle}; color: ${t.brand}; }
2352
2434
  :host([tone='success']) span { background: ${t.successSubtle}; color: ${t.successText}; }
2353
2435
  :host([tone='warning']) span { background: ${t.warningSubtle}; color: ${t.warningText}; }
@@ -2356,34 +2438,39 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2356
2438
  :host([tone='inverse']) span { background: ${t.text}; color: ${t.surfaceCard}; box-shadow: none; }
2357
2439
  :host([tone='solid']) span { background: ${t.brand}; color: ${t.onBrand}; box-shadow: none; }
2358
2440
  /* Accent: the yellow with ink words, for the label that needs attention. */
2359
- :host([tone='accent']) span { background: ${d("color.accent.default","#ffd43b")}; color: ${d("color.accent.on","#111111")}; box-shadow: none; }
2441
+ :host([tone='accent']) span { background: ${l("color.accent.default","#ffd43b")}; color: ${l("color.accent.on","#111111")}; box-shadow: none; }
2360
2442
  :host([look='outline']) span { background: transparent; color: ${t.text}; box-shadow: inset 0 0 0 1px ${t.text}; }
2361
- :host([look='outline'][tone='accent']) span { background: ${d("color.accent.default","#ffd43b")}; color: ${d("color.accent.on","#111111")}; box-shadow: inset 0 0 0 1px ${d("color.accent.on","#111111")}; }
2362
- :host([size='marketing']) span { padding: 3px ${a(2)}; font-family: ${t.fontMono}; font-size: 11px; line-height: 1.4; font-weight: ${m("medium")}; letter-spacing: 0.06em; text-transform: uppercase; }
2443
+ :host([look='outline'][tone='accent']) span { background: ${l("color.accent.default","#ffd43b")}; color: ${l("color.accent.on","#111111")}; box-shadow: inset 0 0 0 1px ${l("color.accent.on","#111111")}; }
2444
+ :host([size='marketing']) span { padding: 3px ${a(2)}; font-family: ${t.fontMono}; font-size: 11px; line-height: 1.4; font-weight: ${b("medium")}; letter-spacing: 0.06em; text-transform: uppercase; }
2363
2445
  @media (forced-colors: active) { span { border-color: CanvasText; } }
2364
- `]}render(){return o`<span part="badge">${M(this.icon,"1em")}<slot></slot></span>`}};customElements.define("impakt-badge",pt);var ht=class extends x{constructor(){super();this.filled=!1;this.filledText="";this.width="full",this.rows=4,this.maxlength=void 0,this.fillFrom="none",this.placeholder=""}static{this.properties={...x.properties,width:{type:String,reflect:!0},rows:{type:Number},maxlength:{type:Number},fillFrom:{type:String,attribute:"fill-from"},placeholder:{type:String}}}static{this.styles=[...x.styles,D,ae("textarea"),u`
2446
+ `]}render(){return n`<span part="badge">${M(this.icon,"1em")}<slot></slot></span>`}};customElements.define("impakt-badge",xt);var yt=class extends y{constructor(){super();this.filled=!1;this.filledText="";this.width="full",this.rows=4,this.maxlength=void 0,this.fillFrom="none",this.placeholder=""}static{this.properties={...y.properties,width:{type:String,reflect:!0},rows:{type:Number},maxlength:{type:Number},fillFrom:{type:String,attribute:"fill-from"},placeholder:{type:String}}}static{this.styles=[...y.styles,K,ce("textarea"),u`
2365
2447
  textarea {
2366
- /* Resizing is left on deliberately. 1.4.4 and 1.4.12 both assume text
2367
- can be made bigger, and a fixed box is where that stops working. */
2368
- resize: vertical;
2369
- }
2370
- `]}willUpdate(i){super.willUpdate?.(i),this.filledText&&i.has("value")&&!this.value&&(this.value=this.filledText)}fill(){if(this.filled||this.fillFrom!=="estimate"||(this.filled=!0,this.value))return;let i=null;try{i=sessionStorage.getItem("impakt.estimate")}catch{i=null}i&&(this.filledText=i,this.setFormValue(i))}renderControl(){return o`
2448
+ /* Every brand but Impakt keeps the resize grip: 1.4.4 and 1.4.12 both assume text
2449
+ can be made bigger, and a fixed box is where that stops working. The G2 textarea
2450
+ (20:1100) draws no grip, so under Impakt the box grows with its words instead
2451
+ (field.resize and field.sizing), never shorter than its rows (#66). */
2452
+ resize: var(--impakt-field-resize, vertical);
2453
+ field-sizing: var(--impakt-field-sizing, fixed);
2454
+ min-block-size: calc(var(--impakt-textarea-rows, 4) * 1lh + 2 * ${V.paddingBlock} + 2px);
2455
+ }
2456
+ `]}willUpdate(i){super.willUpdate?.(i),this.filledText&&i.has("value")&&!this.value&&(this.value=this.filledText)}fill(){if(this.filled||this.fillFrom!=="estimate"||(this.filled=!0,this.value))return;let i=null;try{i=sessionStorage.getItem("impakt.estimate")}catch{i=null}i&&(this.filledText=i,this.setFormValue(i))}renderControl(){return n`
2371
2457
  <textarea
2372
2458
  id=${this.controlId}
2373
2459
  part="textarea"
2374
- name=${this.name||l}
2460
+ name=${this.name||d}
2375
2461
  rows=${this.rows}
2376
- maxlength=${this.maxlength??l}
2377
- placeholder=${this.placeholder||l}
2462
+ style=${`--impakt-textarea-rows: ${this.rows}`}
2463
+ maxlength=${this.maxlength??d}
2464
+ placeholder=${this.placeholder||d}
2378
2465
  ?disabled=${this.disabled}
2379
2466
  ?readonly=${this.readonly}
2380
2467
  ?required=${this.required}
2381
2468
  aria-describedby=${this.describedBy}
2382
- aria-invalid=${this.error?"true":l}
2469
+ aria-invalid=${this.error?"true":d}
2383
2470
  .value=${this.value}
2384
2471
  @input=${i=>{this.filledText="",this.setFormValue(i.target.value)}}
2385
2472
  ></textarea>
2386
- `}updated(i){i.has("error")&&this.toggleAttribute("invalid",!!this.error),this.fill()}};customElements.define("impakt-textarea",ht);var ut=class extends x{static{this.properties={...x.properties,options:{type:Array},values:{type:Array}}}constructor(){super(),this.options=[],this.values=[]}static{this.styles=[...x.styles,u`
2473
+ `}updated(i){i.has("error")&&this.toggleAttribute("invalid",!!this.error),this.fill()}};customElements.define("impakt-textarea",yt);var kt=class extends y{static{this.properties={...y.properties,options:{type:Array},values:{type:Array}}}constructor(){super(),this.options=[],this.values=[]}static{this.styles=[...y.styles,u`
2387
2474
  fieldset {
2388
2475
  border: 0;
2389
2476
  margin: 0;
@@ -2407,7 +2494,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2407
2494
  background: ${t.surfaceSubtle};
2408
2495
  }
2409
2496
  .option input {
2410
- ${z}
2497
+ ${E}
2411
2498
  inline-size: 20px;
2412
2499
  block-size: 20px;
2413
2500
  margin: 0;
@@ -2416,21 +2503,21 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2416
2503
  }
2417
2504
  .option-text {
2418
2505
  display: block;
2419
- font-size: ${b("md")};
2506
+ font-size: ${$("md")};
2420
2507
  }
2421
2508
  .option-description {
2422
2509
  display: block;
2423
- font-size: ${b("sm")};
2510
+ font-size: ${$("sm")};
2424
2511
  color: ${t.textMuted};
2425
2512
  margin-block-start: ${a(1)};
2426
2513
  }
2427
2514
  :host([invalid]) .option {
2428
2515
  border-color: ${t.danger};
2429
2516
  }
2430
- `]}renderLabel(){return o`<legend class="label" part="label">
2431
- ${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
2432
- </legend>`}onToggle(e,i){this.values=i?[...this.values,e]:this.values.filter(r=>r!==e),this.setFormValue(this.options.filter(r=>this.values.includes(r.value)).map(r=>r.value).join(","))}renderControl(){return o`
2433
- ${this.options.map((e,i)=>{let r=this.id_(`opt-${i}`),s=e.description?this.id_(`opt-${i}-desc`):void 0;return o`
2517
+ `]}renderLabel(){return n`<legend class="label" part="label">
2518
+ ${this.label}${this.required?n`<span class="required"> (${this.requiredText})</span>`:d}
2519
+ </legend>`}onToggle(e,i){this.values=i?[...this.values,e]:this.values.filter(r=>r!==e),this.setFormValue(this.options.filter(r=>this.values.includes(r.value)).map(r=>r.value).join(","))}renderControl(){return n`
2520
+ ${this.options.map((e,i)=>{let r=this.id_(`opt-${i}`),s=e.description?this.id_(`opt-${i}-desc`):void 0;return n`
2434
2521
  <label class="option" part="option" for=${r}>
2435
2522
  <input
2436
2523
  type="checkbox"
@@ -2438,23 +2525,23 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2438
2525
  value=${e.value}
2439
2526
  .checked=${this.values.includes(e.value)}
2440
2527
  ?disabled=${this.disabled}
2441
- aria-describedby=${s??l}
2528
+ aria-describedby=${s??d}
2442
2529
  @change=${c=>this.onToggle(e.value,c.target.checked)}
2443
2530
  />
2444
2531
  <span>
2445
2532
  <span class="option-text">${e.label}</span>
2446
- ${e.description?o`<span class="option-description" id=${s}>${e.description}</span>`:l}
2533
+ ${e.description?n`<span class="option-description" id=${s}>${e.description}</span>`:d}
2447
2534
  </span>
2448
2535
  </label>
2449
2536
  `})}
2450
- `}render(){return o`
2451
- <fieldset part="fieldset" aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}>
2537
+ `}render(){return n`
2538
+ <fieldset part="fieldset" aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":d}>
2452
2539
  ${this.renderLabel()}
2453
- ${this.description?o`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
2540
+ ${this.description?n`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:d}
2454
2541
  ${this.renderControl()}
2455
- <div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
2542
+ <div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||d}</div>
2456
2543
  </fieldset>
2457
- `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-checkbox-group",ut);var mt=class extends x{static{this.properties={...x.properties,day:{type:String},month:{type:String},year:{type:String},autocompleteSection:{type:String,attribute:"autocomplete-section"}}}constructor(){super(),this.day="",this.month="",this.year="",this.autocompleteSection="bday"}static{this.styles=[...x.styles,u`
2544
+ `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-checkbox-group",kt);var vt=class extends y{static{this.properties={...y.properties,day:{type:String},month:{type:String},year:{type:String},autocompleteSection:{type:String,attribute:"autocomplete-section"}}}constructor(){super(),this.day="",this.month="",this.year="",this.autocompleteSection="bday"}static{this.styles=[...y.styles,u`
2458
2545
  fieldset {
2459
2546
  border: 0;
2460
2547
  margin: 0;
@@ -2474,14 +2561,14 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2474
2561
  gap: ${a(1)};
2475
2562
  }
2476
2563
  .part label {
2477
- font-size: ${b("sm")};
2564
+ font-size: ${$("sm")};
2478
2565
  color: ${t.textMuted};
2479
2566
  }
2480
2567
  input {
2481
2568
  min-block-size: 44px;
2482
2569
  padding: ${a(3)};
2483
2570
  font-family: inherit;
2484
- font-size: ${b("md")};
2571
+ font-size: ${$("md")};
2485
2572
  color: ${t.text};
2486
2573
  background: ${t.surfaceCard};
2487
2574
  border: ${t.borderThin} solid ${t.border};
@@ -2496,9 +2583,9 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2496
2583
  border-color: ${t.danger};
2497
2584
  border-width: ${t.borderThick};
2498
2585
  }
2499
- `]}renderLabel(){return o`<legend class="label" part="label">
2500
- ${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
2501
- </legend>`}datePart(e,i,r,s){let c=this.id_(e);return o`
2586
+ `]}renderLabel(){return n`<legend class="label" part="label">
2587
+ ${this.label}${this.required?n`<span class="required"> (${this.requiredText})</span>`:d}
2588
+ </legend>`}datePart(e,i,r,s){let c=this.id_(e);return n`
2502
2589
  <div class="part ${e}">
2503
2590
  <label for=${c}>${i}</label>
2504
2591
  <input
@@ -2507,29 +2594,29 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2507
2594
  inputmode="numeric"
2508
2595
  maxlength=${r}
2509
2596
  .value=${this[e]}
2510
- autocomplete=${this.autocompleteSection?`${this.autocompleteSection}-${s}`:l}
2597
+ autocomplete=${this.autocompleteSection?`${this.autocompleteSection}-${s}`:d}
2511
2598
  ?disabled=${this.disabled}
2512
2599
  @input=${p=>{this[e]=p.target.value,this.emit()}}
2513
2600
  />
2514
2601
  </div>
2515
- `}emit(){let i=this.day&&this.month&&this.year.length===4?`${this.year}-${this.month.padStart(2,"0")}-${this.day.padStart(2,"0")}`:"";this.setFormValue(i)}renderControl(){return o`
2602
+ `}emit(){let i=this.day&&this.month&&this.year.length===4?`${this.year}-${this.month.padStart(2,"0")}-${this.day.padStart(2,"0")}`:"";this.setFormValue(i)}renderControl(){return n`
2516
2603
  <div class="parts" part="parts">
2517
2604
  ${this.datePart("day",S("Day"),2,"day")}
2518
2605
  ${this.datePart("month",S("Month"),2,"month")}
2519
2606
  ${this.datePart("year",S("Year"),4,"year")}
2520
2607
  </div>
2521
- `}render(){return o`
2522
- <fieldset part="fieldset" aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}>
2608
+ `}render(){return n`
2609
+ <fieldset part="fieldset" aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":d}>
2523
2610
  ${this.renderLabel()}
2524
- ${this.description?o`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
2611
+ ${this.description?n`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:d}
2525
2612
  ${this.renderControl()}
2526
- <div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
2613
+ <div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||d}</div>
2527
2614
  </fieldset>
2528
- `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-date-input",mt);var xe=new Set,$e=null;function ye(n){if(typeof document>"u"||xe.has(n)||(xe.add(n),xe.size>1))return;let e=document.documentElement,i=window.innerWidth-e.clientWidth;$e={overflow:e.style.overflow,paddingRight:e.style.paddingRight},e.style.overflow="hidden",i>0&&(e.style.paddingRight=`${i}px`)}function ee(n){if(typeof document>"u"||!xe.delete(n)||xe.size>0||!$e)return;let e=document.documentElement;e.style.overflow=$e.overflow,e.style.paddingRight=$e.paddingRight,$e=null}var H={edgeWidth:d("dialog.edge-width","0px"),backdrop:d("dialog.backdrop","color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 30%, transparent)"),backdropBlur:d("dialog.backdrop-blur","2px"),padding:d("dialog.padding","20px"),phonePadding:L(`min(${d("dialog.padding","20px")}, 20px)`),headingSize:d("dialog.heading.size","1.25rem"),headingLineHeight:d("dialog.heading.line-height","1.5"),headingTracking:d("dialog.heading.tracking","0em"),headingWeight:d("dialog.heading.weight","700")},gt=class extends h{constructor(){super();this.hasFooter=!1;this.open=!1,this.heading="",this.closeLabel="Close",this.dismissible=!0,this.phoneFullScreen=!1,this.size="md",this.eyebrow=""}static{this.properties={open:{type:Boolean,reflect:!0},heading:{type:String},closeLabel:{type:String,attribute:"close-label"},dismissible:{type:Boolean},phoneFullScreen:{type:Boolean,reflect:!0,attribute:"phone-full-screen"},size:{type:String,reflect:!0},eyebrow:{type:String}}}static{this.styles=[...h.styles,v,C(".close"),u`
2615
+ `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-date-input",vt);var Ee=new Set,ze=null;function Me(o){if(typeof document>"u"||Ee.has(o)||(Ee.add(o),Ee.size>1))return;let e=document.documentElement,i=window.innerWidth-e.clientWidth;ze={overflow:e.style.overflow,paddingRight:e.style.paddingRight},e.style.overflow="hidden",i>0&&(e.style.paddingRight=`${i}px`)}function ae(o){if(typeof document>"u"||!Ee.delete(o)||Ee.size>0||!ze)return;let e=document.documentElement;e.style.overflow=ze.overflow,e.style.paddingRight=ze.paddingRight,ze=null}var N={edgeWidth:l("dialog.edge-width","0px"),backdrop:l("dialog.backdrop","color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 30%, transparent)"),backdropBlur:l("dialog.backdrop-blur","2px"),padding:l("dialog.padding","20px"),phonePadding:R(`min(${l("dialog.padding","20px")}, 20px)`),headingSize:l("dialog.heading.size","1.25rem"),headingLineHeight:l("dialog.heading.line-height","1.5"),headingTracking:l("dialog.heading.tracking","0em"),headingWeight:l("dialog.heading.weight","700")},wt=class extends h{constructor(){super();this.hasFooter=!1;this.open=!1,this.heading="",this.closeLabel="Close",this.dismissible=!0,this.phoneFullScreen=!1,this.size="md",this.eyebrow=""}static{this.properties={open:{type:Boolean,reflect:!0},heading:{type:String},closeLabel:{type:String,attribute:"close-label"},dismissible:{type:Boolean},phoneFullScreen:{type:Boolean,reflect:!0,attribute:"phone-full-screen"},size:{type:String,reflect:!0},eyebrow:{type:String}}}static{this.styles=[...h.styles,v,I(".close"),u`
2529
2616
  dialog {
2530
2617
  padding: 0;
2531
2618
  /* No edge and a lifted shadow, or under Noire an ink edge and no shadow (dialog.edge-width, shadow.dialog). */
2532
- border: ${H.edgeWidth} solid ${t.text};
2619
+ border: ${N.edgeWidth} solid ${t.text};
2533
2620
  border-radius: ${t.radius2xl};
2534
2621
  background: ${t.surfaceCard};
2535
2622
  color: ${t.text};
@@ -2542,8 +2629,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2542
2629
  }
2543
2630
  /* The page behind, dimmed with the text colour and blurred, or under Noire the ink at half strength (dialog.backdrop). */
2544
2631
  dialog::backdrop {
2545
- background: ${H.backdrop};
2546
- backdrop-filter: blur(${H.backdropBlur});
2632
+ background: ${N.backdrop};
2633
+ backdrop-filter: blur(${N.backdropBlur});
2547
2634
  }
2548
2635
  :host([size='lg']) dialog {
2549
2636
  inline-size: 720px;
@@ -2558,7 +2645,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2558
2645
  .eyebrow {
2559
2646
  margin: 0;
2560
2647
  font-family: ${t.fontMono};
2561
- font-size: ${b("sm")};
2648
+ font-size: ${$("sm")};
2562
2649
  color: ${t.textMuted};
2563
2650
  }
2564
2651
  .foot {
@@ -2576,29 +2663,29 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2576
2663
  align-items: flex-start;
2577
2664
  justify-content: space-between;
2578
2665
  gap: ${a(3)};
2579
- padding: ${H.padding} ${H.padding} 0;
2666
+ padding: ${N.padding} ${N.padding} 0;
2580
2667
  }
2581
2668
  /* The heading: bold in the xl size, or under Noire (G2) about 32px, semibold and tight (dialog.heading.*). */
2582
2669
  .heading {
2583
2670
  margin: 0;
2584
2671
  font-family: ${t.fontHeading};
2585
- font-size: ${H.headingSize};
2586
- line-height: ${H.headingLineHeight};
2587
- letter-spacing: ${H.headingTracking};
2588
- font-weight: ${H.headingWeight};
2672
+ font-size: ${N.headingSize};
2673
+ line-height: ${N.headingLineHeight};
2674
+ letter-spacing: ${N.headingTracking};
2675
+ font-weight: ${N.headingWeight};
2589
2676
  color: ${t.textHeading};
2590
2677
  }
2591
2678
  .body {
2592
- padding: ${a(4)} ${H.padding} ${H.padding};
2679
+ padding: ${a(4)} ${N.padding} ${N.padding};
2593
2680
  }
2594
2681
  .foot {
2595
- padding: ${a(5)} ${H.padding};
2682
+ padding: ${a(5)} ${N.padding};
2596
2683
  }
2597
2684
  @media (max-width: 40rem) {
2598
- .heading { font-size: min(${H.headingSize}, 1.5rem); }
2599
- .head { padding: ${H.phonePadding} ${H.phonePadding} 0; }
2600
- .body { padding: ${a(4)} ${H.phonePadding} ${H.phonePadding}; }
2601
- .foot { padding: ${a(4)} ${H.phonePadding}; }
2685
+ .heading { font-size: min(${N.headingSize}, 1.5rem); }
2686
+ .head { padding: ${N.phonePadding} ${N.phonePadding} 0; }
2687
+ .body { padding: ${a(4)} ${N.phonePadding} ${N.phonePadding}; }
2688
+ .foot { padding: ${a(4)} ${N.phonePadding}; }
2602
2689
  }
2603
2690
  @media (max-width: 40rem) {
2604
2691
  :host([phone-full-screen]) dialog {
@@ -2611,7 +2698,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2611
2698
  }
2612
2699
  }
2613
2700
  .close {
2614
- ${z}
2701
+ ${E}
2615
2702
  display: inline-flex;
2616
2703
  align-items: center;
2617
2704
  justify-content: center;
@@ -2620,49 +2707,49 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2620
2707
  border: 0;
2621
2708
  border-radius: ${t.radius};
2622
2709
  font: inherit;
2623
- font-size: ${b("lg")};
2710
+ font-size: ${$("lg")};
2624
2711
  color: ${t.text};
2625
2712
  cursor: pointer;
2626
2713
  }
2627
- `]}get dialog(){return this.renderRoot.querySelector("dialog")}updated(i){if(!i.has("open"))return;let r=this.dialog;r&&(this.open?(typeof r.showModal=="function"?r.showModal():r.setAttribute("open",""),ye(this)):(typeof r.close=="function"&&r.open?r.close():r.removeAttribute("open"),ee(this)))}disconnectedCallback(){super.disconnectedCallback(),ee(this)}onFooter(){let r=Array.from(this.renderRoot.querySelectorAll('slot[name="footer"], slot[name="actions"]')).some(s=>s.assignedElements({flatten:!0}).length>0);r!==this.hasFooter&&(this.hasFooter=r,this.requestUpdate())}close(){this.open=!1,this.dispatchEvent(new CustomEvent("impakt-close",{bubbles:!0,composed:!0}))}render(){return o`
2714
+ `]}get dialog(){return this.renderRoot.querySelector("dialog")}updated(i){if(!i.has("open"))return;let r=this.dialog;r&&(this.open?(typeof r.showModal=="function"?r.showModal():r.setAttribute("open",""),Me(this)):(typeof r.close=="function"&&r.open?r.close():r.removeAttribute("open"),ae(this)))}disconnectedCallback(){super.disconnectedCallback(),ae(this)}onFooter(){let r=Array.from(this.renderRoot.querySelectorAll('slot[name="footer"], slot[name="actions"]')).some(s=>s.assignedElements({flatten:!0}).length>0);r!==this.hasFooter&&(this.hasFooter=r,this.requestUpdate())}close(){this.open=!1,this.dispatchEvent(new CustomEvent("impakt-close",{bubbles:!0,composed:!0}))}render(){return n`
2628
2715
  <dialog
2629
2716
  part="dialog"
2630
- aria-labelledby=${this.heading?this.id_("heading"):l}
2717
+ aria-labelledby=${this.heading?this.id_("heading"):d}
2631
2718
  @cancel=${i=>{this.dismissible?this.close():i.preventDefault()}}
2632
2719
  @close=${()=>{this.open&&this.close()}}
2633
2720
  >
2634
2721
  <div class="head" part="head">
2635
2722
  <div class="titles">
2636
- ${this.eyebrow?o`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>`:l}
2637
- ${this.heading?o`<h2 class="heading" id=${this.id_("heading")} part="heading">${this.heading}</h2>`:l}
2723
+ ${this.eyebrow?n`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>`:d}
2724
+ ${this.heading?n`<h2 class="heading" id=${this.id_("heading")} part="heading">${this.heading}</h2>`:d}
2638
2725
  </div>
2639
- ${this.dismissible?o`<button class="close" part="close" type="button" @click=${this.close}>
2726
+ ${this.dismissible?n`<button class="close" part="close" type="button" @click=${this.close}>
2640
2727
  <span aria-hidden="true">×</span>
2641
2728
  <span class="sr-only" style="position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)">${this.closeLabel}</span>
2642
- </button>`:l}
2729
+ </button>`:d}
2643
2730
  </div>
2644
2731
  <div class="body" part="body"><slot></slot></div>
2645
2732
  <div class="foot ${this.hasFooter?"":"empty"}" part="footer">
2646
2733
  <slot name="footer" @slotchange=${this.onFooter}></slot><slot name="actions" @slotchange=${this.onFooter}></slot>
2647
2734
  </div>
2648
2735
  </dialog>
2649
- `}};customElements.define("impakt-dialog",gt);var bt=class extends h{static{this.properties={items:{type:Array},look:{type:String,reflect:!0},size:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.items=[],this.look="bullet",this.size="md",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,N,u`
2736
+ `}};customElements.define("impakt-dialog",wt);var St=class extends h{static{this.properties={items:{type:Array},look:{type:String,reflect:!0},size:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.items=[],this.look="bullet",this.size="md",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,D,u`
2650
2737
  :host { display: block; }
2651
2738
  ul, ol { list-style: none; margin: 0; padding: 0; display: grid; gap: ${a(3)}; counter-reset: point; }
2652
2739
  li { position: relative; padding-inline-start: ${a(7)}; ${w("md")} text-wrap: pretty; counter-increment: point; }
2653
2740
  :host([size='sm']) li { ${w("sm")} }
2654
2741
  :host([size='lg']) li { ${w("lg")} }
2655
2742
  li::before { content: ''; position: absolute; inset-inline-start: 4px; inset-block-start: 0.6em; inline-size: 7px; block-size: 7px; border-radius: 2px; background: ${t.brand}; }
2656
- :host([look='check']) li::before { content: '✓'; inset-inline-start: 0; inset-block-start: 0; inline-size: auto; block-size: auto; background: none; color: ${t.success}; font-weight: ${m("bold")}; }
2743
+ :host([look='check']) li::before { content: '✓'; inset-inline-start: 0; inset-block-start: 0; inline-size: auto; block-size: auto; background: none; color: ${t.success}; font-weight: ${b("bold")}; }
2657
2744
  :host([look='number']) li::before { content: counter(point, decimal-leading-zero); inset-inline-start: 0; inset-block-start: 0.2em; inline-size: auto; block-size: auto; background: none; font-family: ${t.fontMono}; font-size: 0.75em; color: ${t.textMuted}; }
2658
2745
  @media (forced-colors: active) { li::before { background: CanvasText; } :host([look='check']) li::before, :host([look='number']) li::before { background: none; color: CanvasText; } }
2659
- `]}render(){let e=(this.items??[]).map(i=>o`<li part="item">${i}</li>`);return this.look==="number"?o`<ol part="list">${e}</ol>`:o`<ul part="list" role="list">${e}</ul>`}};customElements.define("impakt-list",bt);var zr={"2:1":"2fr 1fr","1:2":"1fr 2fr","3:1":"3fr 1fr","1:3":"1fr 3fr","1:2:1":"1fr 2fr 1fr","2:1:1":"2fr 1fr 1fr","1:1:2":"1fr 1fr 2fr"},ft=class extends h{static{this.properties={columns:{type:String,reflect:!0},widths:{type:String,reflect:!0},gap:{type:String,reflect:!0},stackOn:{type:String,reflect:!0,attribute:"stack-on"},align:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.columns="two",this.widths="equal",this.gap="md",this.stackOn="phone",this.align="stretch",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,N,u`
2746
+ `]}render(){let e=(this.items??[]).map(i=>n`<li part="item">${i}</li>`);return this.look==="number"?n`<ol part="list">${e}</ol>`:n`<ul part="list" role="list">${e}</ul>`}};customElements.define("impakt-list",St);var ia={"2:1":"2fr 1fr","1:2":"1fr 2fr","3:1":"3fr 1fr","1:3":"1fr 3fr","1:2:1":"1fr 2fr 1fr","2:1:1":"2fr 1fr 1fr","1:1:2":"1fr 1fr 2fr"},Tt=class extends h{static{this.properties={columns:{type:String,reflect:!0},widths:{type:String,reflect:!0},gap:{type:String,reflect:!0},stackOn:{type:String,reflect:!0,attribute:"stack-on"},align:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.columns="two",this.widths="equal",this.gap="md",this.stackOn="phone",this.align="stretch",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,D,u`
2660
2747
  :host { display: block; min-inline-size: 0; container-type: inline-size; }
2661
- .columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${d("layout.gutter.md","16px")}; align-items: stretch; }
2748
+ .columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${l("layout.gutter.md","16px")}; align-items: stretch; }
2662
2749
  :host([gap='none']) .columns { gap: 0; }
2663
- :host([gap='sm']) .columns { gap: ${d("layout.gutter.sm","8px")}; }
2664
- :host([gap='lg']) .columns { gap: ${d("layout.gutter.lg","32px")}; }
2665
- :host([gap='xl']) .columns { gap: ${d("layout.gutter.xl","48px")}; }
2750
+ :host([gap='sm']) .columns { gap: ${l("layout.gutter.sm","8px")}; }
2751
+ :host([gap='lg']) .columns { gap: ${l("layout.gutter.lg","32px")}; }
2752
+ :host([gap='xl']) .columns { gap: ${l("layout.gutter.xl","48px")}; }
2666
2753
  :host([align='start']) .columns { align-items: start; }
2667
2754
  :host([align='center']) .columns { align-items: center; }
2668
2755
  :host([align='end']) .columns { align-items: end; }
@@ -2675,58 +2762,58 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2675
2762
  ::slotted(*) { max-inline-size: 100%; }
2676
2763
  @container (max-width: 40rem) { :host(:not([stack-on='never'])) .columns { grid-template-columns: minmax(0, 1fr) !important; } }
2677
2764
  @container (max-width: 64rem) { :host([stack-on='tablet']) .columns { grid-template-columns: minmax(0, 1fr) !important; } }
2678
- `]}render(){let e=this.columns==="one"?1:this.columns==="three"?3:this.columns==="four"?4:2,i=zr[this.widths]?.split(" "),r=i&&i.length===e?i.map(s=>`minmax(0, ${s})`).join(" "):"";return o`<div class="columns" part="row" style=${r?`grid-template-columns: ${r}`:""}>${Array.from({length:e},(s,c)=>o`<div class="column" part="column"><slot name=${`column-${c+1}`}></slot></div>`)}</div>`}};customElements.define("impakt-grid",ft);var $t=class extends h{static{this.properties={mechanismId:{type:String,attribute:"mechanism-id"},kind:{type:String,reflect:!0},href:{type:String},label:{type:String},detail:{type:String}}}constructor(){super(),this.kind="link",this.href="",this.label="",this.detail=""}static{this.styles=[...h.styles,v,u`
2765
+ `]}render(){let e=this.columns==="one"?1:this.columns==="three"?3:this.columns==="four"?4:2,i=ia[this.widths]?.split(" "),r=i&&i.length===e?i.map(s=>`minmax(0, ${s})`).join(" "):"";return n`<div class="columns" part="row" style=${r?`grid-template-columns: ${r}`:""}>${Array.from({length:e},(s,c)=>n`<div class="column" part="column"><slot name=${`column-${c+1}`}></slot></div>`)}</div>`}};customElements.define("impakt-grid",Tt);var zt=class extends h{static{this.properties={mechanismId:{type:String,attribute:"mechanism-id"},kind:{type:String,reflect:!0},href:{type:String},label:{type:String},detail:{type:String}}}constructor(){super(),this.kind="link",this.href="",this.label="",this.detail=""}static{this.styles=[...h.styles,v,u`
2679
2766
  :host { display: block; }
2680
2767
  a { display: inline-flex; align-items: center; min-height: ${t.targetMin}; min-width: ${t.targetMin};
2681
2768
  color: ${t.link}; text-decoration: underline; overflow-wrap: anywhere; max-width: 100%; }
2682
2769
  a:hover { color: ${t.linkHover}; }
2683
2770
  .contact { margin: 0; }
2684
- .caption { display: block; font-weight: ${m("semibold")}; }
2771
+ .caption { display: block; font-weight: ${b("semibold")}; }
2685
2772
  /* An address is written one line at a time, and opening hours are often one
2686
2773
  day to a line. Long unbroken values still wrap at 320px (1.4.10). */
2687
2774
  .detail { white-space: pre-line; overflow-wrap: anywhere; }
2688
- `]}render(){switch(this.kind){case"phone":case"email":case"address":case"hours":return this.renderContact();default:return this.renderLink()}}renderLink(){return ci(this.label)?o`<a part="link" href=${this.href}>${this.label}</a>`:l}renderContact(){let e=ci(this.detail);if(!e)return l;let i=ci(this.label),r=Mr(this.kind,e),s=this.id_("caption"),c=this.id_("detail"),p=i?o`<span class="caption" part="label" id=${s}>${i}</span>`:l,$=r?o`<a part="link" href=${r} aria-labelledby=${i?`${s} ${c}`:l}
2689
- ><span class="detail" part="detail" id=${c}>${e}</span></a>`:o`<span class="detail" part="detail">${e}</span>`;return o`<p class="contact" part="contact">${p}${$}</p>`}};function ci(n){return typeof n=="string"?n.trim():""}function Mr(n,e){if(n==="phone"){let i=e.replace(/\(0\)/g,"").replace(/[^\d+]/g,"").replace(/(?!^)\+/g,"");return/\d/.test(i)?`tel:${i}`:""}return n==="email"&&/^[^\s@]+@[^\s@]+$/.test(e)?`mailto:${e}`:""}customElements.define("impakt-help",$t);var Vi=u`
2690
- :host { --impakt-page-inner: ${d("layout.page-width","1200px")}; }
2775
+ `]}render(){switch(this.kind){case"phone":case"email":case"address":case"hours":return this.renderContact();default:return this.renderLink()}}renderLink(){return zi(this.label)?n`<a part="link" href=${this.href}>${this.label}</a>`:d}renderContact(){let e=zi(this.detail);if(!e)return d;let i=zi(this.label),r=ra(this.kind,e),s=this.id_("caption"),c=this.id_("detail"),p=i?n`<span class="caption" part="label" id=${s}>${i}</span>`:d,m=r?n`<a part="link" href=${r} aria-labelledby=${i?`${s} ${c}`:d}
2776
+ ><span class="detail" part="detail" id=${c}>${e}</span></a>`:n`<span class="detail" part="detail">${e}</span>`;return n`<p class="contact" part="contact">${p}${m}</p>`}};function zi(o){return typeof o=="string"?o.trim():""}function ra(o,e){if(o==="phone"){let i=e.replace(/\(0\)/g,"").replace(/[^\d+]/g,"").replace(/(?!^)\+/g,"");return/\d/.test(i)?`tel:${i}`:""}return o==="email"&&/^[^\s@]+@[^\s@]+$/.test(e)?`mailto:${e}`:""}customElements.define("impakt-help",zt);var mr=u`
2777
+ :host { --impakt-page-inner: ${l("layout.page-width","1200px")}; }
2691
2778
  :host([width='narrow']) { --impakt-page-inner: 760px; }
2692
2779
  :host([width='wide']) { --impakt-page-inner: 1440px; }
2693
2780
  :host([width='content']) { --impakt-page-inner: 1080px; }
2694
- `,Er=u`
2695
- :host { --impakt-page-margin: ${d("layout.margin.phone","16px")}; }
2696
- @container impakt-page (min-width: 40rem) { .frame { --impakt-page-margin: ${d("layout.margin.tablet","32px")}; } }
2697
- @container impakt-page (min-width: 64rem) { .frame { --impakt-page-margin: ${d("layout.margin.desktop","64px")}; } }
2698
- `,xt=class extends h{constructor(){super();this.place=()=>{let i=this.querySelector('impakt-hero[treatment="cover"]'),r=getComputedStyle(this).getPropertyValue("--impakt-bleed").trim()==="0",s=!!i&&!r&&this.opensOn(i);if(this.toggleAttribute("floating",s),!s)return;let c=this.renderRoot.querySelector(".frame");c&&this.style.setProperty("--impakt-header-top",`${Math.round(i.getBoundingClientRect().top-c.getBoundingClientRect().top)}px`)};this.width="standard",this.stickyHeader=!1,this.skipText="Skip to content",this.noHeader=!1,this.noFooter=!1}static{this.properties={width:{type:String,reflect:!0},stickyHeader:{type:Boolean,reflect:!0,attribute:"sticky-header"},skipText:{type:String,attribute:"skip-text"},noHeader:{type:Boolean,reflect:!0,attribute:"no-header"},noFooter:{type:Boolean,reflect:!0,attribute:"no-footer"}}}static{this.styles=[...h.styles,v,Vi,Er,u`
2781
+ `,aa=u`
2782
+ :host { --impakt-page-margin: ${l("layout.margin.phone","16px")}; }
2783
+ @container impakt-page (min-width: 40rem) { .frame { --impakt-page-margin: ${l("layout.margin.tablet","32px")}; } }
2784
+ @container impakt-page (min-width: 64rem) { .frame { --impakt-page-margin: ${l("layout.margin.desktop","64px")}; } }
2785
+ `,Et=class extends h{constructor(){super();this.place=()=>{let i=this.querySelector('impakt-hero[treatment="cover"]'),r=getComputedStyle(this).getPropertyValue("--impakt-bleed").trim()==="0",s=!!i&&!r&&this.opensOn(i);if(this.toggleAttribute("floating",s),!s)return;let c=this.renderRoot.querySelector(".frame");c&&this.style.setProperty("--impakt-header-top",`${Math.round(i.getBoundingClientRect().top-c.getBoundingClientRect().top)}px`)};this.width="standard",this.stickyHeader=!1,this.skipText="Skip to content",this.noHeader=!1,this.noFooter=!1}static{this.properties={width:{type:String,reflect:!0},stickyHeader:{type:Boolean,reflect:!0,attribute:"sticky-header"},skipText:{type:String,attribute:"skip-text"},noHeader:{type:Boolean,reflect:!0,attribute:"no-header"},noFooter:{type:Boolean,reflect:!0,attribute:"no-footer"}}}static{this.styles=[...h.styles,v,mr,aa,u`
2699
2786
  :host { display: block; container: impakt-page / inline-size; }
2700
2787
  .frame { position: relative; display: flex; flex-direction: column; min-block-size: 100%; overflow-x: clip; }
2701
2788
  .inner { box-sizing: border-box; inline-size: 100%; max-inline-size: calc(var(--impakt-page-inner) + 2 * var(--impakt-page-margin)); margin-inline: auto; padding-inline: var(--impakt-page-margin); }
2702
- header { background: ${d("color.surface.header","transparent")}; color: ${d("color.text.on-header","inherit")}; padding-block: ${a(4)}; }
2789
+ header { background: ${l("color.surface.header","transparent")}; color: ${l("color.text.on-header","inherit")}; padding-block: ${a(4)}; }
2703
2790
  /* What sits in the header and footer takes their text colour, so words on a dark footer stay readable. */
2704
- header { --impakt-color-text-default: ${d("color.text.on-header","inherit")}; --impakt-color-text-heading: ${d("color.text.on-header","inherit")}; --impakt-color-text-link: ${d("color.text.on-header","inherit")}; --impakt-color-text-link-hover: ${d("color.text.on-header","inherit")}; }
2705
- footer { --impakt-color-text-default: ${d("color.text.on-footer","inherit")}; --impakt-color-text-heading: ${d("color.text.on-footer","inherit")}; --impakt-color-text-muted: ${d("color.text.on-footer","inherit")}; --impakt-color-text-link: ${d("color.text.on-footer","inherit")}; --impakt-color-text-link-hover: ${d("color.text.on-footer","inherit")}; }
2791
+ header { --impakt-color-text-default: ${l("color.text.on-header","inherit")}; --impakt-color-text-heading: ${l("color.text.on-header","inherit")}; --impakt-color-text-link: ${l("color.text.on-header","inherit")}; --impakt-color-text-link-hover: ${l("color.text.on-header","inherit")}; }
2792
+ footer { --impakt-color-text-default: ${l("color.text.on-footer","inherit")}; --impakt-color-text-heading: ${l("color.text.on-footer","inherit")}; --impakt-color-text-muted: ${l("color.text.on-footer","inherit")}; --impakt-color-text-link: ${l("color.text.on-footer","inherit")}; --impakt-color-text-link-hover: ${l("color.text.on-footer","inherit")}; }
2706
2793
  :host([sticky-header]) header { position: sticky; inset-block-start: 0; z-index: 10; }
2707
2794
  main { flex: 1; padding-block: ${a(6)} ${a(10)}; }
2708
2795
  main:focus { outline: none; }
2709
2796
  /* A page that opens on a full-picture hero: the header floats over it as a rounded bar. */
2710
2797
  :host([floating]) header { position: absolute; z-index: 20; inset-inline: 0; inset-block-start: var(--impakt-header-top, 0px); padding-block: ${a(6)} 0; background: transparent; border: 0; }
2711
- :host([floating]) header .inner { inline-size: calc(100% - 2 * var(--impakt-page-margin)); max-inline-size: var(--impakt-page-inner); padding: ${a(3)} ${a(4)} ${a(3)} ${a(6)}; background: ${d("color.surface.header","#fff")}; border-radius: ${t.radius2xl}; box-shadow: ${t.shadowLg}; }
2798
+ :host([floating]) header .inner { inline-size: calc(100% - 2 * var(--impakt-page-margin)); max-inline-size: var(--impakt-page-inner); padding: ${a(3)} ${a(4)} ${a(3)} ${a(6)}; background: ${l("color.surface.header","#fff")}; border-radius: ${t.radius2xl}; box-shadow: ${t.shadowLg}; }
2712
2799
  :host([floating]) main { padding-block-start: 0; }
2713
- footer { background: ${d("color.surface.footer","transparent")}; color: ${d("color.text.on-footer","inherit")}; padding-block: ${a(8)}; border-block-start: ${t.borderThin} solid ${d("color.border.subtle","transparent")}; }
2800
+ footer { background: ${l("color.surface.footer","transparent")}; color: ${l("color.text.on-footer","inherit")}; padding-block: ${a(8)}; border-block-start: ${t.borderThin} solid ${l("color.border.subtle","transparent")}; }
2714
2801
  .skip { position: absolute; inset-inline-start: ${a(2)}; inset-block-start: ${a(2)}; z-index: 20; padding: ${a(2)} ${a(4)}; background: ${t.surfaceCard}; color: ${t.link}; border-radius: ${t.radius}; transform: translateY(-200%); }
2715
2802
  .skip:not(:focus) { clip-path: inset(50%); }
2716
2803
  .skip:focus { transform: none; }
2717
2804
  .empty { display: none; }
2718
- `]}hasSlot(i){return(i==="header"?this.noHeader:this.noFooter)?!1:nt?!0:Array.from(this.children).some(r=>r.getAttribute("slot")===i)}skip(i){i.preventDefault();let r=this.renderRoot.querySelector("main");r?.focus(),r?.scrollIntoView()}render(){let i=this.hasSlot("header"),r=this.hasSlot("footer");return o`<div class="frame" part="frame">
2805
+ `]}hasSlot(i){return(i==="header"?this.noHeader:this.noFooter)?!1:gt?!0:Array.from(this.children).some(r=>r.getAttribute("slot")===i)}skip(i){i.preventDefault();let r=this.renderRoot.querySelector("main");r?.focus(),r?.scrollIntoView()}render(){let i=this.hasSlot("header"),r=this.hasSlot("footer");return n`<div class="frame" part="frame">
2719
2806
  <a class="skip" href="#content" part="skip" @click=${this.skip}>${this.skipText}</a>
2720
- ${i?o`<header part="header"><div class="inner"><slot name="header"></slot></div></header>`:l}
2807
+ ${i?n`<header part="header"><div class="inner"><slot name="header"></slot></div></header>`:d}
2721
2808
  <main id="content" tabindex="-1" part="main"><div class="inner"><slot></slot></div></main>
2722
- ${r?o`<footer part="footer"><div class="inner"><slot name="footer"></slot></div></footer>`:l}
2723
- </div>`}opensOn(i){for(let r of Array.from(this.querySelectorAll("*"))){if(r===i)return!0;if(!r.closest('[slot="header"],[slot="footer"]')&&r.tagName.startsWith("IMPAKT-")&&!/^IMPAKT-(STACK|SECTION|GRID|ANNOUNCEMENT)$/.test(r.tagName))return!1}return!1}connectedCallback(){super.connectedCallback(),this.observer=new MutationObserver(()=>this.requestUpdate()),this.observer.observe(this,{childList:!0,attributes:!0,subtree:!1,attributeFilter:["slot"]}),this.watcher=new MutationObserver(this.place),this.watcher.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["treatment"]}),typeof ResizeObserver=="function"&&(this.resize=new ResizeObserver(this.place),this.resize.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.observer?.disconnect(),this.watcher?.disconnect(),this.resize?.disconnect()}firstUpdated(){this.place()}},yt=class extends h{static{this.properties={tone:{type:String,reflect:!0},padding:{type:String,reflect:!0},width:{type:String,reflect:!0},bleed:{type:Boolean,reflect:!0},pattern:{type:String,reflect:!0},label:{type:String},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.tone="none",this.padding="lg",this.width="standard",this.bleed=!0,this.pattern="none",this.label="",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,N,Vi,u`
2809
+ ${r?n`<footer part="footer"><div class="inner"><slot name="footer"></slot></div></footer>`:d}
2810
+ </div>`}opensOn(i){for(let r of Array.from(this.querySelectorAll("*"))){if(r===i)return!0;if(!r.closest('[slot="header"],[slot="footer"]')&&r.tagName.startsWith("IMPAKT-")&&!/^IMPAKT-(STACK|SECTION|GRID|ANNOUNCEMENT)$/.test(r.tagName))return!1}return!1}connectedCallback(){super.connectedCallback(),this.observer=new MutationObserver(()=>this.requestUpdate()),this.observer.observe(this,{childList:!0,attributes:!0,subtree:!1,attributeFilter:["slot"]}),this.watcher=new MutationObserver(this.place),this.watcher.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["treatment"]}),typeof ResizeObserver=="function"&&(this.resize=new ResizeObserver(this.place),this.resize.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.observer?.disconnect(),this.watcher?.disconnect(),this.resize?.disconnect()}firstUpdated(){this.place()}},Mt=class extends h{static{this.properties={tone:{type:String,reflect:!0},padding:{type:String,reflect:!0},width:{type:String,reflect:!0},bleed:{type:Boolean,reflect:!0},pattern:{type:String,reflect:!0},label:{type:String},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.tone="none",this.padding="lg",this.width="standard",this.bleed=!0,this.pattern="none",this.label="",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,D,mr,u`
2724
2811
  :host { display: block; --impakt-page-margin: inherit; }
2725
2812
  /* What a solid card on a brand band goes back to, since the band repaints these for its own text. */
2726
2813
  :host([tone='brand']) { --impakt-solid-card: ${t.surfaceCard}; --impakt-solid-text: ${t.text}; --impakt-solid-heading: var(--impakt-color-text-heading, ${t.text}); --impakt-solid-muted: ${t.textMuted}; }
2727
2814
  .band { box-sizing: border-box; border-radius: ${t.radiusLg}; }
2728
2815
  /* --impakt-bleed is 0 while editing, so a full-width block stays inside the box it is being edited in. */
2729
- :host([bleed]) .band { border-radius: 0; margin-inline: calc(var(--impakt-bleed, 1) * (50% - 50vw)); padding-inline: max(${d("section.gutter","16px")}, calc(var(--impakt-bleed, 1) * (50vw - 50%))); }
2816
+ :host([bleed]) .band { border-radius: 0; margin-inline: calc(var(--impakt-bleed, 1) * (50% - 50vw)); padding-inline: max(${l("section.gutter","16px")}, calc(var(--impakt-bleed, 1) * (50vw - 50%))); }
2730
2817
  :host([tone='subtle']) .band { background: ${t.surfaceSubtle}; }
2731
2818
  :host([tone='inset']) .band { background: ${t.surfaceInset}; }
2732
2819
  :host([tone='card']) .band { background: ${t.surfaceCard}; }
@@ -2741,10 +2828,14 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2741
2828
  :host([tone='brand']) .band { --impakt-color-text-inverse: ${t.brand}; }
2742
2829
  :host([tone='accent']) .band { --impakt-color-text-inverse: var(--impakt-solid-card); }
2743
2830
  :host([tone='brand']) .band { background: ${t.brand}; color: ${t.onBrand}; --impakt-eyebrow: ${t.onBrand}; --impakt-color-surface-card: color-mix(in srgb, ${t.onBrand} 10%, transparent); --impakt-color-text-heading: ${t.onBrand}; --impakt-color-text-default: ${t.onBrand}; --impakt-color-text-muted: ${t.onBrand}; --impakt-color-text-link: ${t.onBrand}; --impakt-color-text-link-hover: ${t.onBrand}; }
2744
- /* Ink and accent bands take their colours from the host, because the band repaints the text colour for what is inside it. */
2831
+ /*
2832
+ * Ink and accent bands take their colours from the host, because the band repaints the text colour for what is inside it.
2833
+ * A block that draws its own ink panel off a band, such as the process line, leaves it out on one (--impakt-band-panel,
2834
+ * --impakt-band-panel-inset), so the band and its pattern show through.
2835
+ */
2745
2836
  :host([tone='ink']) { --impakt-band: ${t.text}; --impakt-band-on: ${t.surfaceCard}; --impakt-band-muted: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); --impakt-solid-card: ${t.surfaceCard}; --impakt-solid-text: ${t.text}; --impakt-solid-heading: var(--impakt-color-text-heading, ${t.text}); --impakt-solid-muted: ${t.textMuted}; }
2746
- :host([tone='accent']) { --impakt-band: ${d("color.accent.default","#ffd43b")}; --impakt-band-on: ${d("color.accent.on","#1a1a1a")}; --impakt-band-muted: ${d("color.accent.on","#1a1a1a")}; --impakt-solid-card: ${t.surfaceCard}; --impakt-solid-text: ${t.text}; --impakt-solid-heading: var(--impakt-color-text-heading, ${t.text}); --impakt-solid-muted: ${t.textMuted}; }
2747
- :host(:is([tone='ink'], [tone='accent'])) .band { background-color: var(--impakt-band); color: var(--impakt-band-on); --impakt-eyebrow: var(--impakt-band-muted); --impakt-color-surface-card: color-mix(in srgb, var(--impakt-band-on) 10%, transparent); --impakt-color-text-heading: var(--impakt-band-on); --impakt-color-text-default: var(--impakt-band-on); --impakt-color-text-muted: var(--impakt-band-muted); --impakt-color-text-link: var(--impakt-band-on); --impakt-color-text-link-hover: var(--impakt-band-on); }
2837
+ :host([tone='accent']) { --impakt-band: ${l("color.accent.default","#ffd43b")}; --impakt-band-on: ${l("color.accent.on","#1a1a1a")}; --impakt-band-muted: ${l("color.accent.on","#1a1a1a")}; --impakt-solid-card: ${t.surfaceCard}; --impakt-solid-text: ${t.text}; --impakt-solid-heading: var(--impakt-color-text-heading, ${t.text}); --impakt-solid-muted: ${t.textMuted}; }
2838
+ :host(:is([tone='ink'], [tone='accent'])) .band { background-color: var(--impakt-band); color: var(--impakt-band-on); --impakt-band-panel: transparent; --impakt-band-panel-inset: 0px; --impakt-eyebrow: var(--impakt-band-muted); --impakt-color-surface-card: color-mix(in srgb, var(--impakt-band-on) 10%, transparent); --impakt-color-text-heading: var(--impakt-band-on); --impakt-color-text-default: var(--impakt-band-on); --impakt-color-text-muted: var(--impakt-band-muted); --impakt-color-text-link: var(--impakt-band-on); --impakt-color-text-link-hover: var(--impakt-band-on); }
2748
2839
  /* On ink the cards are the raised ink with a darker rule (G2 ink-raised and line-inverse), not a wash. */
2749
2840
  :host([tone='ink']) .band {
2750
2841
  --impakt-color-text-inverse: var(--impakt-band);
@@ -2762,7 +2853,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2762
2853
  :host([pattern]:not([pattern='none'])) .band { --impakt-pattern-line: color-mix(in srgb, currentColor 10%, transparent); }
2763
2854
  :host(:is([pattern='grid'], [pattern='blueprint'])) .band { background-image: linear-gradient(to right, var(--impakt-pattern-line) 1px, transparent 1px), linear-gradient(to bottom, var(--impakt-pattern-line) 1px, transparent 1px); background-size: 7rem 7rem; }
2764
2855
  :host([pattern='blueprint']) .band { background-size: 1.75rem 1.75rem; }
2765
- :host([pattern='columns']) .band { background-image: linear-gradient(to right, var(--impakt-pattern-line) 1px, transparent 1px); background-size: 5.625rem 100%; }
2856
+ /* Column lines 90px apart from the band's edge to 1260px, fifteen lines in all, as the G2 column grid draws them (10:532, 34:485), with none past it. */
2857
+ :host([pattern='columns']) .band { background-image: repeating-linear-gradient(to right, var(--impakt-pattern-line) 0 1px, transparent 1px 5.625rem); background-size: min(100%, 78.8125rem) 100%; background-repeat: no-repeat; }
2766
2858
  :host([pattern='ruled']) .band { background-image: linear-gradient(to bottom, var(--impakt-pattern-line) 1px, transparent 1px); background-size: 100% 2.5rem; }
2767
2859
  @media (forced-colors: active) { .band { background-image: none !important; } }
2768
2860
  :host(:not([bleed]):not([tone='none'])) .band { padding-inline: ${a(6)}; }
@@ -2770,10 +2862,10 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2770
2862
  :host([padding='md']) .band { padding-block: ${a(8)}; }
2771
2863
  :host([padding='lg']) .band { padding-block: ${a(12)}; }
2772
2864
  :host([padding='xl']) .band { padding-block: ${a(16)}; }
2773
- :host([padding='2xl']) .band { padding-block: ${d("section.padding-2xl","clamp(56px, 8vw, 112px)")}; }
2865
+ :host([padding='2xl']) .band { padding-block: ${l("section.padding-2xl","clamp(56px, 8vw, 112px)")}; }
2774
2866
  :host([padding='3xl']) .band { padding-block: clamp(${a(16)}, 10vw, ${a(30)}); }
2775
2867
  .content { max-inline-size: var(--impakt-page-inner); margin-inline: auto; }
2776
- `]}render(){return o`<section class="band" part="band" aria-label=${this.label||l} role=${this.label?l:"presentation"}><div class="content" part="content"><slot></slot></div></section>`}};customElements.define("impakt-page",xt);customElements.define("impakt-section",yt);function Gi(n){if(typeof location>"u"||!n||n.startsWith("#"))return null;let e;try{let r=new URL(n,location.href);if(r.origin!==location.origin)return null;e=r.pathname.replace(/\/$/,"")||"/"}catch{return null}let i=location.pathname.replace(/\/$/,"")||"/";return e===i?"page":e!=="/"&&i.startsWith(`${e}/`)?"section":null}var kt=class extends h{constructor(){super();this.menuOpen=!1;this.needs=0;this.links=[],this.label="Main",this.menuText="Menu",this.menuLook="button",this.size="md",this.align="end",this.fold="measure",this.actionText="",this.actionHref="",this.look="links",this.current=""}static{this.properties={links:{type:Array},label:{type:String},menuText:{type:String,attribute:"menu-text"},menuLook:{type:String,reflect:!0,attribute:"menu-look"},size:{type:String,reflect:!0},align:{type:String,reflect:!0},fold:{type:String,reflect:!0},actionText:{type:String,attribute:"action-text"},actionHref:{type:String,attribute:"action-href"},look:{type:String,reflect:!0},current:{type:String}}}get open(){return this.menuOpen}set open(i){this.menuOpen=i,this.requestUpdate()}static{this.styles=[...h.styles,v,u`
2868
+ `]}render(){return n`<section class="band" part="band" aria-label=${this.label||d} role=${this.label?d:"presentation"}><div class="content" part="content"><slot></slot></div></section>`}};customElements.define("impakt-page",Et);customElements.define("impakt-section",Mt);function oa(o,e=""){return e?o===e?"page":null:Ei(o)}function Ei(o){if(typeof location>"u"||!o||o.startsWith("#"))return null;let e;try{let r=new URL(o,location.href);if(r.origin!==location.origin)return null;e=r.pathname.replace(/\/$/,"")||"/"}catch{return null}let i=location.pathname.replace(/\/$/,"")||"/";return e===i?"page":e!=="/"&&i.startsWith(`${e}/`)?"section":null}var At=class extends h{constructor(){super();this.menuOpen=!1;this.needs=0;this.links=[],this.label="Main",this.menuText="Menu",this.menuLook="button",this.size="md",this.align="end",this.fold="measure",this.actionText="",this.actionHref="",this.look="links",this.current=""}static{this.properties={links:{type:Array},label:{type:String},menuText:{type:String,attribute:"menu-text"},menuLook:{type:String,reflect:!0,attribute:"menu-look"},size:{type:String,reflect:!0},align:{type:String,reflect:!0},fold:{type:String,reflect:!0},actionText:{type:String,attribute:"action-text"},actionHref:{type:String,attribute:"action-href"},look:{type:String,reflect:!0},current:{type:String}}}get open(){return this.menuOpen}set open(i){this.menuOpen=i,this.requestUpdate()}static{this.styles=[...h.styles,v,u`
2777
2869
  /* It grows to fill a row it sits in, because it measures itself to decide when to fold. */
2778
2870
  :host { display: block; flex: 1 1 8rem; min-inline-size: 0; }
2779
2871
  nav { display: flex; flex-direction: column; position: relative; }
@@ -2781,28 +2873,33 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2781
2873
  ul { list-style: none; margin: 0; padding: 0; display: flex; gap: ${a(1)} ${a(6)}; align-items: center; justify-content: flex-end; }
2782
2874
  :host([align='start']) ul { justify-content: flex-start; }
2783
2875
  :host([align='center']) ul { justify-content: center; }
2784
- a { ${z} display: inline-flex; align-items: center; padding: ${a(2)} ${a(1)}; color: inherit; font-weight: ${m("semibold")}; text-decoration: none; border-radius: ${t.radiusSm}; }
2876
+ a { ${E} display: inline-flex; align-items: center; padding: ${a(2)} ${a(1)}; color: inherit; font-weight: ${b("semibold")}; text-decoration: none; border-radius: ${t.radiusSm}; }
2785
2877
  a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
2786
2878
  a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
2787
- .toggle { display: none; ${z} align-items: center; gap: ${a(2)}; align-self: flex-end; padding: ${a(2)} ${a(3)}; font: inherit; font-weight: ${m("semibold")}; color: inherit; background: transparent; border: ${t.borderThin} solid currentColor; border-radius: ${t.radius}; cursor: pointer; }
2879
+ .toggle { display: none; ${E} align-items: center; gap: ${a(2)}; align-self: flex-end; padding: ${a(2)} ${a(3)}; font: inherit; font-weight: ${b("semibold")}; color: inherit; background: transparent; border: ${t.borderThin} solid currentColor; border-radius: ${t.radius}; cursor: pointer; }
2788
2880
  /* When they do not fit, the links fold behind a Menu button and open as a panel under it. */
2789
2881
  :host([folded]) { flex: 0 0 auto; }
2790
2882
  :host([folded]) .toggle { display: inline-flex; }
2791
2883
  :host([menu-look='icon']) .toggle { inline-size: 44px; block-size: 44px; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: ${t.brand}; color: ${t.onBrand}; }
2792
2884
  :host([menu-look='icon']) .toggle .words { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
2793
2885
  :host([size='sm']) ul { column-gap: ${a(6)}; }
2794
- :host([size='sm']) a { padding-inline: 0; font-size: ${b("sm")}; font-weight: ${m("medium")}; }
2886
+ :host([size='sm']) a { padding-inline: 0; font-size: ${$("sm")}; font-weight: ${b("medium")}; }
2795
2887
  :host([size='sm'][folded]) a { padding-inline: ${a(3)}; }
2796
2888
  :host([folded]) ul { display: none; position: absolute; inset-block-start: calc(100% + ${a(2)}); inset-inline-end: 0; z-index: 30; flex-direction: column; align-items: stretch; gap: 0; min-inline-size: 14rem; padding: ${a(2)}; background: ${t.surfaceCard}; color: ${t.text}; border: ${t.borderThin} solid ${t.border}; border-radius: ${t.radiusLg}; box-shadow: 0 8px 24px rgb(0 0 0 / 14%); }
2797
2889
  :host([folded]) ul.open { display: flex; }
2798
2890
  :host([folded]) li { text-align: start; }
2799
2891
  :host([folded]) a { display: flex; padding: ${a(3)} ${a(3)}; }
2800
2892
  /* Tabs: a bordered group on the soft surface; the current tab is white with a dot before it. */
2801
- :host([look='tabs']) ul { gap: 0; padding: 3px; background: ${t.surfaceSubtle}; border: ${t.borderThin} solid var(--impakt-color-line-soft, #dcdcd8); }
2802
- :host([look='tabs']) a { min-block-size: 42px; gap: ${a(2)}; padding: 0 ${a(4)}; font-size: ${b("sm")}; font-weight: ${m("regular")}; border-radius: 0; }
2803
- :host([look='tabs']) a:hover { text-decoration: none; background: ${t.wash}; }
2804
- :host([look='tabs']) a[aria-current] { text-decoration: none; background: ${t.surfaceCard}; box-shadow: inset 0 0 0 1px var(--impakt-color-line-soft, #dcdcd8); }
2805
- :host([look='tabs']) a[aria-current]::before { content: ''; flex: none; inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; }
2893
+ /*
2894
+ * The track hugs its tabs (9:274): a 1px soft edge, 3px inside and the tabs 2px apart, so it is 42px tall. A tab is
2895
+ * 6 by 12 inside with its words at 14px on 1.4, 32px tall and in the muted text; the current one is 34px, white,
2896
+ * edged and in the text colour, with a 5px dot 6px before its words.
2897
+ */
2898
+ :host([look='tabs']) ul { gap: 2px; align-items: flex-start; padding: 3px; background: ${t.surfaceSubtle}; border: ${t.borderThin} solid var(--impakt-color-line-soft, #dcdcd8); }
2899
+ :host([look='tabs']) a { box-sizing: border-box; min-block-size: 32px; gap: 6px; padding: 6px 12px; font-size: ${$("sm")}; font-weight: ${b("regular")}; line-height: 1.4; color: ${t.textMuted}; border-radius: 0; }
2900
+ :host([look='tabs']) a:hover { text-decoration: none; background: ${t.wash}; color: ${t.text}; }
2901
+ :host([look='tabs']) a[aria-current] { min-block-size: 34px; color: ${t.text}; text-decoration: none; background: ${t.surfaceCard}; box-shadow: inset 0 0 0 1px var(--impakt-color-line-soft, #dcdcd8); }
2902
+ :host([look='tabs']) a[aria-current]::before { content: ''; flex: none; inline-size: 5px; block-size: 5px; border-radius: 50%; background: currentColor; }
2806
2903
  @media (forced-colors: active) { :host([look='tabs']) a[aria-current] { outline: 1px solid CanvasText; } }
2807
2904
  :host([look='tabs'][folded]) ul { padding: ${a(2)}; }
2808
2905
  /* With no script the element is never defined, so it cannot measure itself and fold. The links
@@ -2821,11 +2918,11 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2821
2918
  :host([fold='narrow']) .toggle { display: inline-flex; }
2822
2919
  :host([fold='narrow']) .panel { display: none; }
2823
2920
  :host([fold='narrow']) .panel:popover-open { display: flex; flex-direction: column; gap: ${a(6)}; position: fixed; inset: 0; box-sizing: border-box; inline-size: 100%; block-size: 100%; max-inline-size: none; max-block-size: none; margin: 0; padding: ${a(3)} ${a(4)} calc(${a(6)} + env(safe-area-inset-bottom)); border: 0; overflow: auto; overscroll-behavior: contain; background: ${t.text}; color: ${t.surfaceCard}; }
2824
- :host([fold='narrow']) .close { display: inline-flex; ${z} align-items: center; gap: ${a(2)}; align-self: flex-end; padding: ${a(2)} ${a(3)}; font: inherit; font-weight: ${m("semibold")}; color: inherit; background: transparent; border: ${t.borderThin} solid currentColor; border-radius: ${t.radius}; cursor: pointer; }
2921
+ :host([fold='narrow']) .close { display: inline-flex; ${E} align-items: center; gap: ${a(2)}; align-self: flex-end; padding: ${a(2)} ${a(3)}; font: inherit; font-weight: ${b("semibold")}; color: inherit; background: transparent; border: ${t.borderThin} solid currentColor; border-radius: ${t.radius}; cursor: pointer; }
2825
2922
  :host([fold='narrow']) ul { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
2826
2923
  :host([fold='narrow']) li { border-block-end: ${t.borderThin} solid color-mix(in srgb, currentColor 22%, transparent); }
2827
- :host([fold='narrow']) li a { display: flex; padding: ${a(4)} 0; font-family: ${t.fontHeading}; font-size: ${b("2xl")}; font-weight: ${m("semibold")}; letter-spacing: -0.02em; }
2828
- :host([fold='narrow']) .action { display: flex; ${z} align-items: center; justify-content: center; margin-block-start: auto; padding: ${a(3)} ${a(4)}; background: ${t.surfaceCard}; color: ${t.text}; font-weight: ${m("semibold")}; text-decoration: none; border-radius: ${t.radius}; }
2924
+ :host([fold='narrow']) li a { display: flex; padding: ${a(4)} 0; font-family: ${t.fontHeading}; font-size: ${$("2xl")}; font-weight: ${b("semibold")}; letter-spacing: -0.02em; }
2925
+ :host([fold='narrow']) .action { display: flex; ${E} align-items: center; justify-content: center; margin-block-start: auto; padding: ${a(3)} ${a(4)}; background: ${t.surfaceCard}; color: ${t.text}; font-weight: ${b("semibold")}; text-decoration: none; border-radius: ${t.radius}; }
2829
2926
  :host([fold='narrow']) .action:hover { text-decoration: underline; }
2830
2927
  /*
2831
2928
  * The tabs look, folded: the whole-screen menu is ink, so the tab track's paper and the current tab's white box
@@ -2838,51 +2935,51 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2838
2935
  :host([fold='narrow'][look='tabs']) li a[aria-current] { background: transparent; box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
2839
2936
  :host([fold='narrow'][look='tabs']) li a[aria-current]::before { inline-size: 8px; block-size: 8px; }
2840
2937
  }
2841
- `]}fit(){if(this.fold==="narrow"){this.removeAttribute("folded");return}if(!this.hasUpdated)return;let i=this.getBoundingClientRect().width;if(i<=0)return;if(!this.needs){this.removeAttribute("folded");let s=Array.from(this.renderRoot.querySelectorAll("li")),c=Number.parseFloat(getComputedStyle(this.renderRoot.querySelector("ul")).columnGap)||0;this.needs=s.reduce((p,$)=>p+$.getBoundingClientRect().width,0)+c*Math.max(0,s.length-1)}let r=this.needs>i;this.toggleAttribute("folded",r),!r&&this.menuOpen&&(this.open=!1)}updated(i){(i.has("links")||i.has("fold"))&&(this.needs=0,this.fit())}connectedCallback(){super.connectedCallback(),typeof ResizeObserver=="function"&&(this.resize=new ResizeObserver(()=>this.fit()),this.resize.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resize?.disconnect()}toggle(){this.open=!this.open}onKey(i){i.key!=="Escape"||!this.open||(this.open=!1,this.renderRoot.querySelector(".toggle")?.focus())}renderNarrow(){let i=this.id_("panel");return o`<nav aria-label=${this.label||l} part="nav">
2938
+ `]}fit(){if(this.fold==="narrow"){this.removeAttribute("folded");return}if(!this.hasUpdated)return;let i=this.getBoundingClientRect().width;if(i<=0)return;if(!this.needs){this.removeAttribute("folded");let s=Array.from(this.renderRoot.querySelectorAll("li")),c=Number.parseFloat(getComputedStyle(this.renderRoot.querySelector("ul")).columnGap)||0;this.needs=s.reduce((p,m)=>p+m.getBoundingClientRect().width,0)+c*Math.max(0,s.length-1)}let r=this.needs>i;this.toggleAttribute("folded",r),!r&&this.menuOpen&&(this.open=!1)}updated(i){(i.has("links")||i.has("fold"))&&(this.needs=0,this.fit())}connectedCallback(){super.connectedCallback(),typeof ResizeObserver=="function"&&(this.resize=new ResizeObserver(()=>this.fit()),this.resize.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resize?.disconnect()}toggle(){this.open=!this.open}onKey(i){i.key!=="Escape"||!this.open||(this.open=!1,this.renderRoot.querySelector(".toggle")?.focus())}renderNarrow(){let i=this.id_("panel");return n`<nav aria-label=${this.label||d} part="nav">
2842
2939
  <button class="toggle" type="button" popovertarget=${i}>${M(this.menuLook==="icon"?"menu-two":"menu")}<span class="words">${this.menuText}</span></button>
2843
2940
  <div id=${i} class="panel" popover="auto" part="panel">
2844
2941
  <button class="close" type="button" popovertarget=${i} popovertargetaction="hide">${M("close")}<span>${S("Close")}</span></button>
2845
2942
  <ul part="list">
2846
- ${(this.links??[]).map(r=>{let s=this.current?r.href===this.current?"page":null:Gi(r.href);return o`<li><a href=${r.href} aria-current=${s==="page"?"page":s==="section"?"true":l} part="link">${r.label}</a></li>`})}
2943
+ ${(this.links??[]).map(r=>{let s=this.current?r.href===this.current?"page":null:Ei(r.href);return n`<li><a href=${r.href} aria-current=${s==="page"?"page":s==="section"?"true":d} part="link">${r.label}</a></li>`})}
2847
2944
  </ul>
2848
- ${this.actionText?o`<a class="action" href=${this.actionHref||"#"} part="action">${this.actionText}</a>`:l}
2945
+ ${this.actionText?n`<a class="action" href=${this.actionHref||"#"} part="action">${this.actionText}</a>`:d}
2849
2946
  </div>
2850
- </nav>`}render(){if(this.fold==="narrow")return this.renderNarrow();let i=this.id_("links");return o`<nav aria-label=${this.label||l} part="nav" @keydown=${this.onKey}>
2947
+ </nav>`}render(){if(this.fold==="narrow")return this.renderNarrow();let i=this.id_("links");return n`<nav aria-label=${this.label||d} part="nav" @keydown=${this.onKey}>
2851
2948
  <button class="toggle" type="button" aria-expanded=${this.open?"true":"false"} aria-controls=${i} @click=${this.toggle}>${M(this.open?"close":this.menuLook==="icon"?"menu-two":"menu")}<span class="words">${this.menuText}</span></button>
2852
2949
  <ul id=${i} class=${this.open?"open":""} part="list">
2853
- ${(this.links??[]).map(r=>{let s=this.current?r.href===this.current?"page":null:Gi(r.href);return o`<li><a href=${r.href} aria-current=${s==="page"?"page":s==="section"?"true":l} part="link">${r.label}</a></li>`})}
2950
+ ${(this.links??[]).map(r=>{let s=this.current?r.href===this.current?"page":null:Ei(r.href);return n`<li><a href=${r.href} aria-current=${s==="page"?"page":s==="section"?"true":d} part="link">${r.label}</a></li>`})}
2854
2951
  </ul>
2855
- </nav>`}},vt=class extends h{static{this.properties={items:{type:Array},label:{type:String},look:{type:String,reflect:!0}}}constructor(){super(),this.items=[],this.label="Breadcrumb",this.look="default"}static{this.styles=[...h.styles,v,u`
2856
- :host { display: block; font-size: ${b("sm")}; }
2952
+ </nav>`}},Ct=class extends h{static{this.properties={items:{type:Array},label:{type:String},look:{type:String,reflect:!0}}}constructor(){super(),this.items=[],this.label="Breadcrumb",this.look="default"}static{this.styles=[...h.styles,v,u`
2953
+ :host { display: block; font-size: ${$("sm")}; }
2857
2954
  ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: ${a(1)}; }
2858
2955
  li { display: inline-flex; align-items: center; gap: ${a(1)}; }
2859
2956
  li + li::before { content: ''; inline-size: 0.45em; block-size: 0.45em; border-block-start: 1.5px solid ${t.textMuted}; border-inline-end: 1.5px solid ${t.textMuted}; transform: rotate(45deg); margin-inline: ${a(1)} ${a(2)}; }
2860
2957
  a { color: ${t.link}; text-decoration: underline; text-underline-offset: 0.2em; border-radius: ${t.radiusSm}; }
2861
2958
  a:hover { color: ${t.linkHover}; }
2862
2959
  [aria-current] { color: ${t.textMuted}; }
2863
- :host([look='mono']) { font-family: ${t.fontMono}; font-size: ${b("sm")}; color: ${t.textMuted}; }
2960
+ :host([look='mono']) { font-family: ${t.fontMono}; font-size: ${$("sm")}; color: ${t.textMuted}; }
2864
2961
  /* The G2 trail (34:602): "Home / Tools / Accessibility", a slash between, the links underlined only on hover. A trail is its own list, not a link in a sentence, so it needs no underline to be told apart (1.4.1). */
2865
2962
  :host([look='mono']) a { color: ${t.textMuted}; text-decoration: none; }
2866
2963
  :host([look='mono']) a:hover { color: ${t.text}; text-decoration: underline; text-decoration-thickness: 1px; }
2867
2964
  :host([look='mono']) [aria-current] { color: ${t.text}; }
2868
2965
  :host([look='mono']) li + li::before { content: '/'; inline-size: auto; block-size: auto; border: 0; transform: none; margin-inline: ${a(1)}; color: ${t.textMuted}; }
2869
2966
  .sr-only { ${T} }
2870
- `]}render(){let e=this.items??[];return o`<nav aria-label=${this.label} part="nav"><ol>
2871
- ${e.map((i,r)=>o`<li>${r===e.length-1?o`<span aria-current="page">${i.label}</span>`:o`<a href=${i.href} part="link">${i.label}</a>`}</li>`)}
2872
- </ol></nav>`}};customElements.define("impakt-nav",kt);customElements.define("impakt-breadcrumbs",vt);var wt=class extends h{static{this.properties={spacing:{type:String,reflect:!0},tone:{type:String,reflect:!0}}}constructor(){super(),this.spacing="md",this.tone="subtle"}static{this.styles=[...h.styles,u`
2967
+ `]}render(){let e=this.items??[];return n`<nav aria-label=${this.label} part="nav"><ol>
2968
+ ${e.map((i,r)=>n`<li>${r===e.length-1?n`<span aria-current="page">${i.label}</span>`:n`<a href=${i.href} part="link">${i.label}</a>`}</li>`)}
2969
+ </ol></nav>`}};customElements.define("impakt-nav",At);customElements.define("impakt-breadcrumbs",Ct);var Lt=class extends h{static{this.properties={spacing:{type:String,reflect:!0},tone:{type:String,reflect:!0}}}constructor(){super(),this.spacing="md",this.tone="subtle"}static{this.styles=[...h.styles,u`
2873
2970
  :host { display: block; }
2874
2971
  hr { margin: ${a(4)} 0; border: 0; border-block-start: ${t.borderThin} solid ${t.border}; opacity: 0.5; }
2875
2972
  :host([tone='strong']) hr { opacity: 1; border-block-start-width: ${t.borderThick}; }
2876
2973
  :host([spacing='sm']) hr { margin-block: ${a(2)}; }
2877
2974
  :host([spacing='lg']) hr { margin-block: ${a(8)}; }
2878
2975
  :host([spacing='xl']) hr { margin-block: ${a(12)}; }
2879
- `]}render(){return o`<hr aria-hidden="true" part="line" />`}},St=class extends h{static{this.properties={size:{type:String,reflect:!0}}}constructor(){super(),this.size="md"}static{this.styles=[...h.styles,u`
2976
+ `]}render(){return n`<hr aria-hidden="true" part="line" />`}},Rt=class extends h{static{this.properties={size:{type:String,reflect:!0}}}constructor(){super(),this.size="md"}static{this.styles=[...h.styles,u`
2880
2977
  :host { display: block; block-size: ${a(4)}; }
2881
2978
  :host([size='sm']) { block-size: ${a(2)}; }
2882
2979
  :host([size='lg']) { block-size: ${a(8)}; }
2883
2980
  :host([size='xl']) { block-size: ${a(12)}; }
2884
2981
  :host([size='2xl']) { block-size: ${a(16)}; }
2885
- `]}render(){return o``}},Tt=class extends h{static{this.styles=[...h.styles,u`:host { ${T} }`]}render(){return o`<slot></slot>`}},zt=class extends h{static{this.properties={items:{type:Array},selected:{type:String,reflect:!0},label:{type:String},twoRows:{type:Boolean,reflect:!0,attribute:"two-rows"},look:{type:String,reflect:!0}}}constructor(){super(),this.items=[],this.selected="",this.label="",this.twoRows=!1,this.look="line"}static{this.styles=[...h.styles,v,C("[role='tab']"),u`
2982
+ `]}render(){return n``}},It=class extends h{static{this.styles=[...h.styles,u`:host { ${T} }`]}render(){return n`<slot></slot>`}},_t=class extends h{static{this.properties={items:{type:Array},selected:{type:String,reflect:!0},label:{type:String},twoRows:{type:Boolean,reflect:!0,attribute:"two-rows"},look:{type:String,reflect:!0}}}constructor(){super(),this.items=[],this.selected="",this.label="",this.twoRows=!1,this.look="line"}static{this.styles=[...h.styles,v,I("[role='tab']"),u`
2886
2983
  /* Only the two-row layout needs a size container. Making every tab set one
2887
2984
  would take its width from its parent alone, so in a flex row, with no
2888
2985
  width given, it would shrink to nothing. In a row it may still shrink
@@ -2890,12 +2987,12 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2890
2987
  :host { display: block; min-inline-size: 0; }
2891
2988
  :host([two-rows]) { container-type: inline-size; }
2892
2989
  [role='tablist'] { display: flex; gap: ${a(1)}; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; border-block-end: ${t.borderThin} solid ${t.border}; }
2893
- [role='tab'] { ${z} position: relative; flex: none; padding: ${a(3)} ${a(4)}; font: inherit; font-weight: ${m("semibold")}; white-space: nowrap; color: ${t.textMuted}; background: transparent; border: 0; border-block-end: 3px solid transparent; margin-block-end: -1px; cursor: pointer; border-radius: ${t.radius} ${t.radius} 0 0; }
2990
+ [role='tab'] { ${E} position: relative; flex: none; padding: ${a(3)} ${a(4)}; font: inherit; font-weight: ${b("semibold")}; white-space: nowrap; color: ${t.textMuted}; background: transparent; border: 0; border-block-end: 3px solid transparent; margin-block-end: -1px; cursor: pointer; border-radius: ${t.radius} ${t.radius} 0 0; }
2894
2991
  /* Inside a box that scrolls the ring would be clipped, so it is drawn inside the tab. */
2895
2992
  [role='tab']:focus-visible { box-shadow: inset 0 0 0 2px ${t.text}, inset 0 0 0 4px ${t.surfaceCard}; }
2896
2993
  [role='tab']:hover { color: ${t.text}; background: ${t.surfaceInset}; }
2897
2994
  [role='tab'][aria-selected='true'] { color: ${t.link}; border-block-end-color: currentColor; }
2898
- [role='tabpanel'] { padding-block: ${a(5)}; line-height: ${O("normal")}; }
2995
+ [role='tabpanel'] { padding-block: ${a(5)}; line-height: ${W("normal")}; }
2899
2996
  .body { white-space: pre-line; }
2900
2997
  @container (max-width: 40rem) {
2901
2998
  :host([two-rows]) [role='tablist'].many { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); overflow: visible; border-block-end: 0; gap: ${a(1)}; }
@@ -2903,41 +3000,41 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2903
3000
  :host([two-rows]) .many [role='tab'][aria-selected='true'] { border-block-end-color: currentColor; background: ${t.brandSubtle}; }
2904
3001
  }
2905
3002
  @media (forced-colors: active) { [role='tab'][aria-selected='true'] { border-block-end-color: Highlight; } }
2906
- .count { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 20px; block-size: 20px; margin-inline-start: ${a(2)}; padding: 0 ${a(1.5)}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); font-size: 12px; font-weight: ${m("semibold")}; background: ${t.brand}; color: ${t.onBrand}; font-variant-numeric: tabular-nums; }
3003
+ .count { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 20px; block-size: 20px; margin-inline-start: ${a(2)}; padding: 0 ${a(1.5)}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); font-size: 12px; font-weight: ${b("semibold")}; background: ${t.brand}; color: ${t.onBrand}; font-variant-numeric: tabular-nums; }
2907
3004
  .sr-only { ${T} }
2908
3005
  /* Links drawn as tabs. */
2909
3006
  nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: ${a(1)}; overflow-x: auto; scrollbar-width: thin; border-block-end: ${t.borderThin} solid ${t.border}; }
2910
- nav a { ${z} position: relative; display: inline-flex; align-items: center; flex: none; padding: ${a(3)} ${a(4)}; font-weight: ${m("semibold")}; white-space: nowrap; color: ${t.textMuted}; text-decoration: none; border-block-end: 3px solid transparent; margin-block-end: -1px; border-radius: ${t.radius} ${t.radius} 0 0; }
3007
+ nav a { ${E} position: relative; display: inline-flex; align-items: center; flex: none; padding: ${a(3)} ${a(4)}; font-weight: ${b("semibold")}; white-space: nowrap; color: ${t.textMuted}; text-decoration: none; border-block-end: 3px solid transparent; margin-block-end: -1px; border-radius: ${t.radius} ${t.radius} 0 0; }
2911
3008
  nav a:hover { color: ${t.text}; background: ${t.surfaceInset}; }
2912
3009
  nav a[aria-current='page'] { color: ${t.link}; border-block-end-color: currentColor; }
2913
3010
  nav a:focus-visible { box-shadow: inset 0 0 0 2px ${t.text}, inset 0 0 0 4px ${t.surfaceCard}; outline: none; }
2914
3011
  /* The pill look, for either kind. Its corners come from the brand's radius, so it is square under Noire. */
2915
3012
  :host([look='pill']) :is([role='tablist'], nav ul) { padding: ${a(1)}; border: 0; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); background: ${t.surfaceCard}; gap: ${a(.5)}; }
2916
- :host([look='pill']) :is([role='tab'], nav a) { padding: ${a(2)} ${a(4)}; margin: 0; border: 0; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); font-weight: ${m("medium")}; color: ${t.text}; }
3013
+ :host([look='pill']) :is([role='tab'], nav a) { padding: ${a(2)} ${a(4)}; margin: 0; border: 0; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); font-weight: ${b("medium")}; color: ${t.text}; }
2917
3014
  :host([look='pill']) :is([role='tab'], nav a):hover { background: ${t.surfaceInset}; }
2918
3015
  :host([look='pill']) :is([role='tab'][aria-selected='true'], nav a[aria-current='page']) { background: ${t.text}; color: var(--impakt-color-text-inverse, var(--impakt-solid-card, ${t.surfaceCard})); }
2919
3016
  @media (forced-colors: active) { :host([look='pill']) :is([role='tab'][aria-selected='true'], nav a[aria-current='page']) { border: 2px solid Highlight; } }
2920
- `]}countOf(e){return typeof e.count!="number"?l:e.countLabel?o`<span class="count" aria-hidden="true">${e.count}</span><span class="sr-only">, ${e.countLabel}</span>`:o`<span class="count">${e.count}</span>`}get linked(){let e=this.items??[];return e.length>0&&e.every(i=>!!i.href)}current(){let e=this.items??[];return e.some(i=>i.id===this.selected)?this.selected:e[0]?.id??""}choose(e,i){e!==this.current()&&(this.selected=e,this.dispatchEvent(new CustomEvent("impakt-change",{detail:{value:e},bubbles:!0,composed:!0})),i&&this.updateComplete.then(()=>this.renderRoot.querySelector(`#${this.id_(`tab-${e}`)}`)?.focus({preventScroll:!0})))}onKey(e){let i=this.items??[],r=i.findIndex(c=>c.id===this.current()),s={ArrowRight:r+1,ArrowLeft:r-1,Home:0,End:i.length-1}[e.key];s===void 0||!i.length||(e.preventDefault(),this.choose(i[(s+i.length)%i.length].id,!0))}reveal(){let e=this.renderRoot.querySelector("[role='tablist']"),i=this.renderRoot.querySelector("[role='tab'][aria-selected='true']");if(!e||!i||e.scrollWidth<=e.clientWidth)return;let r=i.offsetLeft-e.offsetLeft,s=r+i.offsetWidth;r<e.scrollLeft?e.scrollLeft=r-16:s>e.scrollLeft+e.clientWidth&&(e.scrollLeft=s-e.clientWidth+16)}updated(e){(e.has("selected")||e.has("items"))&&this.reveal()}render(){let e=this.items??[],i=this.current();if(this.linked)return o`<nav aria-label=${this.label||l} part="tabs"><ul>
2921
- ${e.map(s=>o`<li><a href=${s.href} part="tab" aria-current=${s.id===i?"page":l} @click=${c=>me(this,c,{href:s.href,id:s.id})}>${s.label}${this.countOf(s)}</a></li>`)}
2922
- </ul></nav>`;let r=e.length>4;return o`<div role="tablist" aria-label=${this.label||l} part="tabs" class=${r?"many":""} style=${r?`--columns:${Math.ceil(e.length/2)}`:l} @keydown=${this.onKey}>
2923
- ${e.map(s=>o`<button role="tab" type="button" id=${this.id_(`tab-${s.id}`)} aria-selected=${s.id===i?"true":"false"} aria-controls=${this.id_(`panel-${s.id}`)} tabindex=${s.id===i?"0":"-1"} @click=${()=>this.choose(s.id,!1)}>${s.label}${this.countOf(s)}</button>`)}
3017
+ `]}countOf(e){return typeof e.count!="number"?d:e.countLabel?n`<span class="count" aria-hidden="true">${e.count}</span><span class="sr-only">, ${e.countLabel}</span>`:n`<span class="count">${e.count}</span>`}get linked(){let e=this.items??[];return e.length>0&&e.every(i=>!!i.href)}current(){let e=this.items??[];return e.some(i=>i.id===this.selected)?this.selected:e[0]?.id??""}choose(e,i){e!==this.current()&&(this.selected=e,this.dispatchEvent(new CustomEvent("impakt-change",{detail:{value:e},bubbles:!0,composed:!0})),i&&this.updateComplete.then(()=>this.renderRoot.querySelector(`#${this.id_(`tab-${e}`)}`)?.focus({preventScroll:!0})))}onKey(e){let i=this.items??[],r=i.findIndex(c=>c.id===this.current()),s={ArrowRight:r+1,ArrowLeft:r-1,Home:0,End:i.length-1}[e.key];s===void 0||!i.length||(e.preventDefault(),this.choose(i[(s+i.length)%i.length].id,!0))}reveal(){let e=this.renderRoot.querySelector("[role='tablist']"),i=this.renderRoot.querySelector("[role='tab'][aria-selected='true']");if(!e||!i||e.scrollWidth<=e.clientWidth)return;let r=i.offsetLeft-e.offsetLeft,s=r+i.offsetWidth;r<e.scrollLeft?e.scrollLeft=r-16:s>e.scrollLeft+e.clientWidth&&(e.scrollLeft=s-e.clientWidth+16)}updated(e){(e.has("selected")||e.has("items"))&&this.reveal()}render(){let e=this.items??[],i=this.current();if(this.linked)return n`<nav aria-label=${this.label||d} part="tabs"><ul>
3018
+ ${e.map(s=>n`<li><a href=${s.href} part="tab" aria-current=${s.id===i?"page":d} @click=${c=>ve(this,c,{href:s.href,id:s.id})}>${s.label}${this.countOf(s)}</a></li>`)}
3019
+ </ul></nav>`;let r=e.length>4;return n`<div role="tablist" aria-label=${this.label||d} part="tabs" class=${r?"many":""} style=${r?`--columns:${Math.ceil(e.length/2)}`:d} @keydown=${this.onKey}>
3020
+ ${e.map(s=>n`<button role="tab" type="button" id=${this.id_(`tab-${s.id}`)} aria-selected=${s.id===i?"true":"false"} aria-controls=${this.id_(`panel-${s.id}`)} tabindex=${s.id===i?"0":"-1"} @click=${()=>this.choose(s.id,!1)}>${s.label}${this.countOf(s)}</button>`)}
2924
3021
  </div>
2925
- ${e.map(s=>o`<div role="tabpanel" id=${this.id_(`panel-${s.id}`)} aria-labelledby=${this.id_(`tab-${s.id}`)} tabindex="0" ?hidden=${s.id!==i} part="panel"><slot name=${s.id}><span class="body">${s.body??""}</span></slot></div>`)}`}};customElements.define("impakt-divider",wt);customElements.define("impakt-spacer",St);customElements.define("impakt-visually-hidden",Tt);customElements.define("impakt-tabs",zt);var Mt=class extends h{static{this.properties={legend:{type:String},description:{type:String},error:{type:String,reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),this.legend="",this.description="",this.error="",this.size="md"}static{this.styles=[...h.styles,u`
3022
+ ${e.map(s=>n`<div role="tabpanel" id=${this.id_(`panel-${s.id}`)} aria-labelledby=${this.id_(`tab-${s.id}`)} tabindex="0" ?hidden=${s.id!==i} part="panel"><slot name=${s.id}><span class="body">${s.body??""}</span></slot></div>`)}`}};customElements.define("impakt-divider",Lt);customElements.define("impakt-spacer",Rt);customElements.define("impakt-visually-hidden",It);customElements.define("impakt-tabs",_t);var Ht=class extends h{static{this.properties={legend:{type:String},description:{type:String},error:{type:String,reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),this.legend="",this.description="",this.error="",this.size="md"}static{this.styles=[...h.styles,u`
2926
3023
  :host { display: block; margin-block-end: ${a(6)}; }
2927
3024
  fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
2928
- legend { padding: 0; margin-block-end: ${a(2)}; font-size: ${b("md")}; font-weight: ${m("bold")}; line-height: ${O("tight")}; color: ${t.text}; }
2929
- :host([size='lg']) legend { font-size: ${b("xl")}; font-family: ${t.fontHeading}; color: ${t.textHeading}; }
2930
- :host([size='xl']) legend { font-size: ${b("2xl")}; font-family: ${t.fontHeading}; color: ${t.textHeading}; }
2931
- .description { margin-block-end: ${a(3)}; font-size: ${b("sm")}; color: ${t.textMuted}; line-height: ${O("normal")}; }
2932
- .error { margin-block-end: ${a(3)}; font-size: ${b("sm")}; color: ${t.dangerText}; font-weight: ${m("semibold")}; }
3025
+ legend { padding: 0; margin-block-end: ${a(2)}; font-size: ${$("md")}; font-weight: ${b("bold")}; line-height: ${W("tight")}; color: ${t.text}; }
3026
+ :host([size='lg']) legend { font-size: ${$("xl")}; font-family: ${t.fontHeading}; color: ${t.textHeading}; }
3027
+ :host([size='xl']) legend { font-size: ${$("2xl")}; font-family: ${t.fontHeading}; color: ${t.textHeading}; }
3028
+ .description { margin-block-end: ${a(3)}; font-size: ${$("sm")}; color: ${t.textMuted}; line-height: ${W("normal")}; }
3029
+ .error { margin-block-end: ${a(3)}; font-size: ${$("sm")}; color: ${t.dangerText}; font-weight: ${b("semibold")}; }
2933
3030
  .error:empty { display: none; }
2934
3031
  :host([error]:not([error=''])) .fields { padding-inline-start: ${a(4)}; border-inline-start: 4px solid ${t.danger}; }
2935
- `]}render(){let e=[this.description?this.id_("description"):"",this.error?this.id_("error"):""].filter(Boolean).join(" ");return o`<fieldset part="fieldset" aria-describedby=${e||l}>
3032
+ `]}render(){let e=[this.description?this.id_("description"):"",this.error?this.id_("error"):""].filter(Boolean).join(" ");return n`<fieldset part="fieldset" aria-describedby=${e||d}>
2936
3033
  <legend part="legend">${this.legend}</legend>
2937
- ${this.description?o`<div class="description" id=${this.id_("description")}>${this.description}</div>`:l}
2938
- <div class="error" id=${this.id_("error")} aria-live="polite">${this.error||l}</div>
3034
+ ${this.description?n`<div class="description" id=${this.id_("description")}>${this.description}</div>`:d}
3035
+ <div class="error" id=${this.id_("error")} aria-live="polite">${this.error||d}</div>
2939
3036
  <div class="fields" part="fields"><slot></slot></div>
2940
- </fieldset>`}};customElements.define("impakt-fieldset",Mt);var Et=class extends h{constructor(){super();this.hasFooter=!1;this.open=!1,this.heading="",this.side="right",this.closeLabel="Close"}static{this.properties={open:{type:Boolean,reflect:!0},heading:{type:String},side:{type:String,reflect:!0},closeLabel:{type:String,attribute:"close-label"}}}static{this.styles=[...h.styles,v,C(".close"),u`
3037
+ </fieldset>`}};customElements.define("impakt-fieldset",Ht);var Bt=class extends h{constructor(){super();this.hasFooter=!1;this.open=!1,this.heading="",this.side="right",this.closeLabel="Close"}static{this.properties={open:{type:Boolean,reflect:!0},heading:{type:String},side:{type:String,reflect:!0},closeLabel:{type:String,attribute:"close-label"}}}static{this.styles=[...h.styles,v,I(".close"),u`
2941
3038
  dialog { box-sizing: border-box; display: none; flex-direction: column; inline-size: min(28rem, 100vw); max-inline-size: 100vw; block-size: 100dvh; max-block-size: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; color: ${t.text}; background: ${t.surfaceCard}; box-shadow: ${t.shadowXl}; animation: from-right 240ms cubic-bezier(0.16, 1, 0.3, 1); }
2942
3039
  dialog[open] { display: flex; }
2943
3040
  :host([side='left']) dialog { margin: 0 auto 0 0; animation-name: from-left; }
@@ -2950,23 +3047,23 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2950
3047
  @keyframes from-right { from { transform: translateX(100%); } }
2951
3048
  @keyframes from-left { from { transform: translateX(-100%); } }
2952
3049
  .head { display: flex; align-items: center; justify-content: space-between; gap: ${a(3)}; padding: ${a(4)} ${a(5)}; box-shadow: 0 1px 0 color-mix(in srgb, ${t.text} 8%, transparent); }
2953
- h2 { margin: 0; font-family: ${t.fontHeading}; ${w("xl")} font-weight: ${m("bold")}; color: ${t.textHeading}; }
2954
- .close { ${z} display: inline-flex; align-items: center; justify-content: center; padding: 0; color: ${t.text}; background: none; border: 0; border-radius: ${t.radius}; cursor: pointer; }
3050
+ h2 { margin: 0; font-family: ${t.fontHeading}; ${w("xl")} font-weight: ${b("bold")}; color: ${t.textHeading}; }
3051
+ .close { ${E} display: inline-flex; align-items: center; justify-content: center; padding: 0; color: ${t.text}; background: none; border: 0; border-radius: ${t.radius}; cursor: pointer; }
2955
3052
  .close:hover { background: ${t.surfaceSubtle}; }
2956
3053
  .body { flex: 1; overflow: auto; padding: ${a(5)}; }
2957
3054
  .foot { display: flex; gap: ${a(3)}; justify-content: flex-end; padding: ${a(4)} ${a(5)}; box-shadow: 0 -1px 0 color-mix(in srgb, ${t.text} 8%, transparent); }
2958
3055
  .foot[hidden] { display: none; }
2959
- `]}get dialog(){return this.renderRoot.querySelector("dialog")}updated(i){if(!i.has("open"))return;let r=this.dialog;r&&(this.open?(typeof r.showModal=="function"?r.showModal():r.setAttribute("open",""),ye(this)):(typeof r.close=="function"&&r.open?r.close():r.removeAttribute("open"),ee(this)))}disconnectedCallback(){super.disconnectedCallback(),ee(this)}close(){this.open=!1,this.dispatchEvent(new CustomEvent("impakt-close",{bubbles:!0,composed:!0}))}footerChanged(i){this.hasFooter=i.target.assignedNodes().length>0,this.requestUpdate()}render(){return o`<dialog part="dialog" aria-labelledby=${this.heading?this.id_("heading"):l}
3056
+ `]}get dialog(){return this.renderRoot.querySelector("dialog")}updated(i){if(!i.has("open"))return;let r=this.dialog;r&&(this.open?(typeof r.showModal=="function"?r.showModal():r.setAttribute("open",""),Me(this)):(typeof r.close=="function"&&r.open?r.close():r.removeAttribute("open"),ae(this)))}disconnectedCallback(){super.disconnectedCallback(),ae(this)}close(){this.open=!1,this.dispatchEvent(new CustomEvent("impakt-close",{bubbles:!0,composed:!0}))}footerChanged(i){this.hasFooter=i.target.assignedNodes().length>0,this.requestUpdate()}render(){return n`<dialog part="dialog" aria-labelledby=${this.heading?this.id_("heading"):d}
2960
3057
  @cancel=${()=>this.close()}
2961
3058
  @close=${()=>{this.open&&this.close()}}
2962
3059
  @click=${i=>{i.target===this.dialog&&this.close()}}>
2963
3060
  <div class="head">
2964
- ${this.heading?o`<h2 id=${this.id_("heading")}>${this.heading}</h2>`:o`<span></span>`}
3061
+ ${this.heading?n`<h2 id=${this.id_("heading")}>${this.heading}</h2>`:n`<span></span>`}
2965
3062
  <button class="close" type="button" aria-label=${this.closeLabel} @click=${this.close}>${M("close","20px")}</button>
2966
3063
  </div>
2967
3064
  <div class="body" part="body"><slot></slot></div>
2968
3065
  <div class="foot" part="footer" ?hidden=${!this.hasFooter}><slot name="footer" @slotchange=${this.footerChanged}></slot></div>
2969
- </dialog>`}},Ar={neutral:"info",success:"check",warning:"warning",danger:"warning"},At=class extends h{static{this.properties={open:{type:Boolean,reflect:!0},message:{type:String},tone:{type:String,reflect:!0},duration:{type:Number},actionText:{type:String,attribute:"action-text"},closeLabel:{type:String,attribute:"close-label"}}}constructor(){super(),this.open=!1,this.message="",this.tone="neutral",this.duration=6,this.actionText="",this.closeLabel="Dismiss"}static{this.styles=[...h.styles,v,u`
3066
+ </dialog>`}},na={neutral:"info",success:"check",warning:"warning",danger:"warning"},Nt=class extends h{static{this.properties={open:{type:Boolean,reflect:!0},message:{type:String},tone:{type:String,reflect:!0},duration:{type:Number},actionText:{type:String,attribute:"action-text"},closeLabel:{type:String,attribute:"close-label"}}}constructor(){super(),this.open=!1,this.message="",this.tone="neutral",this.duration=6,this.actionText="",this.closeLabel="Dismiss"}static{this.styles=[...h.styles,v,u`
2970
3067
  .region { position: fixed; inset-block-end: calc(${a(4)} + env(safe-area-inset-bottom, 0px) + var(--impakt-bottom-bar, 0px)); inset-inline-end: ${a(4)}; z-index: 1000; inline-size: min(24rem, calc(100vw - ${a(8)})); pointer-events: none; }
2971
3068
  @media (max-width: 40rem) { .region { inset-inline: ${a(3)}; inline-size: auto; inset-block-end: calc(${a(3)} + env(safe-area-inset-bottom, 0px) + var(--impakt-bottom-bar, 0px)); } }
2972
3069
  .toast { pointer-events: auto; max-block-size: 40vh; overflow: auto; display: flex; align-items: flex-start; gap: ${a(3)}; padding: ${a(3)} ${a(3)} ${a(3)} ${a(4)}; color: ${t.text}; background: ${t.surfaceCard}; border-radius: ${t.radiusXl}; box-shadow: ${t.shadowXl}, 0 0 0 1px color-mix(in srgb, ${t.text} 8%, transparent); animation: rise 220ms cubic-bezier(0.16, 1, 0.3, 1); }
@@ -2976,21 +3073,21 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
2976
3073
  :host([tone='success']) .mark { color: ${t.success}; }
2977
3074
  :host([tone='warning']) .mark { color: ${t.warning}; }
2978
3075
  :host([tone='danger']) .mark { color: ${t.danger}; }
2979
- .message { flex: 1; align-self: center; margin: 0; ${w("sm")} font-weight: ${m("medium")}; }
2980
- .action, .close { ${z} padding: 0 ${a(2)}; font: inherit; ${w("sm")} font-weight: ${m("semibold")}; color: ${t.link}; background: none; border: 0; border-radius: ${t.radius}; cursor: pointer; }
3076
+ .message { flex: 1; align-self: center; margin: 0; ${w("sm")} font-weight: ${b("medium")}; }
3077
+ .action, .close { ${E} padding: 0 ${a(2)}; font: inherit; ${w("sm")} font-weight: ${b("semibold")}; color: ${t.link}; background: none; border: 0; border-radius: ${t.radius}; cursor: pointer; }
2981
3078
  .close { display: inline-flex; align-items: center; justify-content: center; color: ${t.textMuted}; }
2982
3079
  .action:hover, .close:hover { background: ${t.surfaceSubtle}; }
2983
- `,C(".action, .close")]}disconnectedCallback(){super.disconnectedCallback(),this.stop()}updated(e){(e.has("open")||e.has("duration"))&&(this.stop(),this.open&&this.start())}start(){this.stop(),this.duration>0&&!this.actionText&&(this.timer=setTimeout(()=>this.close(),this.duration*1e3))}stop(){this.timer&&clearTimeout(this.timer),this.timer=void 0}close(){this.stop(),this.open&&(this.open=!1,this.dispatchEvent(new CustomEvent("impakt-close",{bubbles:!0,composed:!0})))}action(){this.dispatchEvent(new CustomEvent("impakt-action",{bubbles:!0,composed:!0})),this.close()}render(){return o`<div class="region" role="status" aria-live="polite">
2984
- ${this.open?o`<div class="toast" part="toast" @mouseenter=${this.stop} @mouseleave=${this.start} @focusin=${this.stop} @focusout=${this.start}
3080
+ `,I(".action, .close")]}disconnectedCallback(){super.disconnectedCallback(),this.stop()}updated(e){(e.has("open")||e.has("duration"))&&(this.stop(),this.open&&this.start())}start(){this.stop(),this.duration>0&&!this.actionText&&(this.timer=setTimeout(()=>this.close(),this.duration*1e3))}stop(){this.timer&&clearTimeout(this.timer),this.timer=void 0}close(){this.stop(),this.open&&(this.open=!1,this.dispatchEvent(new CustomEvent("impakt-close",{bubbles:!0,composed:!0})))}action(){this.dispatchEvent(new CustomEvent("impakt-action",{bubbles:!0,composed:!0})),this.close()}render(){return n`<div class="region" role="status" aria-live="polite">
3081
+ ${this.open?n`<div class="toast" part="toast" @mouseenter=${this.stop} @mouseleave=${this.start} @focusin=${this.stop} @focusout=${this.start}
2985
3082
  @keydown=${e=>{e.key==="Escape"&&(e.preventDefault(),this.close())}}>
2986
- <span class="mark">${M(Ar[this.tone]??"info","20px")}</span>
3083
+ <span class="mark">${M(na[this.tone]??"info","20px")}</span>
2987
3084
  <p class="message">${this.message}</p>
2988
- ${this.actionText?o`<button class="action" type="button" @click=${this.action}>${this.actionText}</button>`:l}
3085
+ ${this.actionText?n`<button class="action" type="button" @click=${this.action}>${this.actionText}</button>`:d}
2989
3086
  <button class="close" type="button" aria-label=${this.closeLabel} @click=${this.close}>${M("close","16px")}</button>
2990
- </div>`:l}
2991
- </div>`}},Cr=L("var(--impakt-color-line-soft, #dcdcd8)"),Ct=class extends h{constructor(){super();this.outside=i=>{i.composedPath().includes(this)||this.toggle(!1)};this.label="Menu",this.icon="",this.items=[],this.edge="start",this.open=!1,this.triggerLook="button"}static{this.properties={label:{type:String},icon:{type:String},items:{type:Array},edge:{type:String,reflect:!0},open:{type:Boolean,reflect:!0},triggerLook:{type:String,reflect:!0,attribute:"trigger-look"}}}static{this.styles=[...h.styles,v,C(".trigger, .item"),u`
3087
+ </div>`:d}
3088
+ </div>`}},sa=R("var(--impakt-color-line-soft, #dcdcd8)"),Pt=class extends h{constructor(){super();this.outside=i=>{i.composedPath().includes(this)||this.toggle(!1)};this.label="Menu",this.icon="",this.items=[],this.edge="start",this.open=!1,this.triggerLook="button"}static{this.properties={label:{type:String},icon:{type:String},items:{type:Array},edge:{type:String,reflect:!0},open:{type:Boolean,reflect:!0},triggerLook:{type:String,reflect:!0,attribute:"trigger-look"}}}static{this.styles=[...h.styles,v,I(".trigger, .item"),u`
2992
3089
  :host { position: relative; display: inline-block; }
2993
- .trigger { ${z} display: inline-flex; align-items: center; gap: ${a(2)}; padding: ${a(2)} ${a(3.5)}; font: inherit; ${w("sm")} font-weight: ${m("medium")}; color: ${t.text}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radiusLg}; cursor: pointer; }
3090
+ .trigger { ${E} display: inline-flex; align-items: center; gap: ${a(2)}; padding: ${a(2)} ${a(3.5)}; font: inherit; ${w("sm")} font-weight: ${b("medium")}; color: ${t.text}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radiusLg}; cursor: pointer; }
2994
3091
  :host([trigger-look='text']) .trigger { padding: ${a(1)} ${a(1)}; font-size: 1rem; line-height: 1.25; background: transparent; border-color: transparent; }
2995
3092
  :host([trigger-look='text']) .trigger:hover { background: transparent; text-decoration: underline; text-underline-offset: 0.2em; }
2996
3093
  .caret { font-size: 0.75em; line-height: 1; }
@@ -3000,18 +3097,18 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3000
3097
  /* G2: a 1px ink border and the one shadow the design allows, the open menu's. */
3001
3098
  .panel { position: absolute; z-index: 100; inset-block-start: calc(100% + ${a(1.5)}); inset-inline-start: 0; box-sizing: border-box; min-inline-size: 13rem; max-inline-size: min(24rem, 90vw); padding: ${a(2)} 0; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radiusXl}; box-shadow: var(--impakt-shadow-overlay, 0 16px 32px rgb(0 0 0 / 0.2)); animation: pop 120ms ease-out; }
3002
3099
  .list, .group { margin: 0; padding: 0; list-style: none; }
3003
- .grouped:not(:first-child) { border-block-start: ${t.borderThin} solid ${Cr}; }
3100
+ .grouped:not(:first-child) { border-block-start: ${t.borderThin} solid ${sa}; }
3004
3101
  /* G2 group label (53:983): 12px above, 6px below, 18px in, IBM Plex Mono 14/1.4. */
3005
3102
  .group-label { display: block; padding: ${a(3)} 18px 6px; font-family: ${t.fontMono}; font-size: 0.875rem; line-height: 1.4; color: ${t.textMuted}; }
3006
3103
  .header { padding: ${a(2)} ${a(2.5)} ${a(2.5)}; margin-block-end: ${a(1.5)}; border-block-end: ${t.borderThin} solid ${t.border}; ${w("sm")} color: ${t.textMuted}; overflow-wrap: anywhere; }
3007
3104
  :host([edge='end']) .panel, .panel.flip-end { inset-inline: auto 0; }
3008
3105
  :host([edge='end']) .panel.flip-start { inset-inline: 0 auto; }
3009
3106
  @keyframes pop { from { opacity: 0; transform: translateY(-${a(1)}); } }
3010
- .item { ${z} box-sizing: border-box; display: flex; align-items: center; gap: ${a(2.5)}; inline-size: 100%; padding: ${a(3)} 18px; font: inherit; font-size: 1rem; line-height: 1.2; font-weight: ${m("medium")}; text-align: start; color: ${t.text}; text-decoration: none; background: none; border: 0; border-radius: 0; cursor: pointer; }
3107
+ .item { ${E} box-sizing: border-box; display: flex; align-items: center; gap: ${a(2.5)}; inline-size: 100%; padding: ${a(3)} 18px; font: inherit; font-size: 1rem; line-height: 1.2; font-weight: ${b("medium")}; text-align: start; color: ${t.text}; text-decoration: none; background: none; border: 0; border-radius: 0; cursor: pointer; }
3011
3108
  .item:hover, .item:focus { background: ${t.surfaceSubtle}; }
3012
3109
  /* G2 item (53:985): the label in Archivo 16/1.2 and the note in IBM Plex Mono 14/1.4, on one line, the note at the end. */
3013
3110
  .item .text { min-inline-size: 0; }
3014
- .item .meta { flex: none; margin-inline-start: auto; padding-inline-start: ${a(4)}; font-family: ${t.fontMono}; font-size: 0.875rem; line-height: 1.4; font-weight: ${m("regular")}; color: ${t.textMuted}; white-space: nowrap; }
3111
+ .item .meta { flex: none; margin-inline-start: auto; padding-inline-start: ${a(4)}; font-family: ${t.fontMono}; font-size: 0.875rem; line-height: 1.4; font-weight: ${b("regular")}; color: ${t.textMuted}; white-space: nowrap; }
3015
3112
  .item[aria-current] { background: ${t.text}; color: var(--impakt-color-text-inverse, var(--impakt-solid-card, ${t.surfaceCard})); }
3016
3113
  .item[aria-current] .meta { color: color-mix(in srgb, var(--impakt-color-text-inverse, var(--impakt-solid-card, ${t.surfaceCard})) 66%, ${t.text}); }
3017
3114
  .item[aria-disabled='true'] { color: ${t.textMuted}; cursor: not-allowed; }
@@ -3020,61 +3117,61 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3020
3117
  @media (forced-colors: active) { .panel { border-color: CanvasText; } .item[aria-current] { outline: 2px solid Highlight; outline-offset: -2px; } .item[aria-disabled='true'] { color: GrayText; } }
3021
3118
  .item.danger { color: ${t.dangerText}; }
3022
3119
  .item svg { flex: none; }
3023
- `]}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.outside)}get entries(){return Array.from(this.renderRoot.querySelectorAll(".item"))}get trigger(){return this.renderRoot.querySelector(".trigger")}toggle(i,r){this.open=i,i?(document.addEventListener("click",this.outside),this.updateComplete.then(()=>{this.entries[r==="last"?this.entries.length-1:0]?.focus()})):document.removeEventListener("click",this.outside)}updated(i){super.updated?.(i),i.has("open")&&this.open&&this.keepOnScreen()}keepOnScreen(){let i=this.renderRoot.querySelector(".panel");if(!i)return;i.classList.remove("flip-start","flip-end");let r=i.getBoundingClientRect(),s=document.documentElement.clientWidth;r.right>s-8?i.classList.add("flip-end"):r.left<8&&i.classList.add("flip-start")}triggerKey(i){(i.key==="ArrowDown"||i.key==="ArrowUp")&&(i.preventDefault(),this.toggle(!0,i.key==="ArrowUp"?"last":"first"))}listKey(i){let r=this.entries,s=r.indexOf(this.renderRoot.activeElement),c={ArrowDown:(s+1)%r.length,ArrowUp:(s-1+r.length)%r.length,Home:0,End:r.length-1};if(i.key in c)i.preventDefault(),r[c[i.key]]?.focus();else if(i.key.length===1&&/\S/.test(i.key)&&!i.ctrlKey&&!i.metaKey&&!i.altKey){let p=i.key.toLowerCase();[...r.slice(s+1),...r.slice(0,s+1)].find(g=>(g.textContent??"").trim().toLowerCase().startsWith(p))?.focus()}else i.key==="Escape"?(i.preventDefault(),this.toggle(!1),this.trigger?.focus()):i.key==="Tab"&&this.toggle(!1)}choose(i,r){if(i.disabled){r?.preventDefault();return}this.toggle(!1),this.trigger?.focus(),i.href||this.dispatchEvent(new CustomEvent("impakt-select",{detail:{value:i.value??i.text},bubbles:!0,composed:!0}))}renderItem(i){let r=i.meta||(i.current?S("You are here"):""),s=o`${M(i.icon,"18px")}<span class="text" part="label">${i.text}</span>${r?o`<span class="meta" part="meta">${r}</span>`:l}`,c=`item ${i.tone==="danger"?"danger":""}`,p=i.current?"page":l,$=i.disabled?"true":l,g=i.current?"item current":"item";return o`<li role="none">${i.href&&!i.disabled?o`<a class=${c} part=${g} role="menuitem" tabindex="-1" href=${i.href} aria-current=${p} @click=${k=>this.choose(i,k)}>${s}</a>`:o`<button class=${c} part=${g} role="menuitem" tabindex="-1" type="button" aria-current=${p} aria-disabled=${$} @click=${k=>this.choose(i,k)}>${s}</button>`}</li>`}get runs(){let i=[];for(let r of this.items??[]){let s=r.group??"",c=i[i.length-1],p=s?i.find($=>$.group===s):void 0;p?p.items.push(r):c&&!s&&!c.group?c.items.push(r):i.push({group:s,items:[r]})}return i}render(){let i=this.triggerLook==="text",r=this.runs,s=r.some(c=>c.group);return o`<button class="trigger" part="trigger" type="button" aria-haspopup="menu" aria-expanded=${String(this.open)} aria-controls=${this.id_("list")}
3024
- @click=${()=>this.toggle(!this.open)} @keydown=${this.triggerKey}><slot name="trigger">${M(this.icon,"18px")}${this.label}</slot>${i?o`<span class="caret" part="chevron" aria-hidden="true">${this.open?"\u25B4":"\u25BE"}</span>`:o`<span class="chev" part="chevron">${M("chevron-down","16px")}</span>`}</button>
3025
- ${this.open?o`<div class="panel" part="panel">${this.querySelector?.(':scope > [slot="header"]')?o`<div class="header" part="header"><slot name="header"></slot></div>`:l}<ul class="list" part="list" id=${this.id_("list")} role="menu" aria-label=${this.label} @keydown=${this.listKey}>
3026
- ${s?r.map((c,p)=>{let $=this.id_(`group-${p}`);return o`<li role="none" class="grouped" part="group">${c.group?o`<span class="group-label" id=${$} part="group-label">${c.group}</span>`:l}<ul class="group" role="group" aria-labelledby=${c.group?$:l}>${c.items.map(g=>this.renderItem(g))}</ul></li>`}):(this.items??[]).map(c=>this.renderItem(c))}
3027
- </ul></div>`:l}`}};function Lr(n,e){let i=[...new Set([1,n-1,n,n+1,e])].filter(r=>r>=1&&r<=e).sort((r,s)=>r-s);return i.flatMap((r,s)=>{let c=i[s-1];return c===void 0||r===c+1?[r]:r===c+2?[c+1,r]:["gap",r]})}var Lt=class extends h{static{this.properties={page:{type:Number},pages:{type:Number},hrefPattern:{type:String,attribute:"href-pattern"},label:{type:String},previousText:{type:String,attribute:"previous-text"},nextText:{type:String,attribute:"next-text"}}}constructor(){super(),this.page=1,this.pages=1,this.hrefPattern="",this.label="Pages",this.previousText="Previous",this.nextText="Next"}static{this.styles=[...h.styles,v,C(".n, .step"),u`
3120
+ `]}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.outside)}get entries(){return Array.from(this.renderRoot.querySelectorAll(".item"))}get trigger(){return this.renderRoot.querySelector(".trigger")}toggle(i,r){this.open=i,i?(document.addEventListener("click",this.outside),this.updateComplete.then(()=>{this.entries[r==="last"?this.entries.length-1:0]?.focus()})):document.removeEventListener("click",this.outside)}updated(i){super.updated?.(i),i.has("open")&&this.open&&this.keepOnScreen()}keepOnScreen(){let i=this.renderRoot.querySelector(".panel");if(!i)return;i.classList.remove("flip-start","flip-end");let r=i.getBoundingClientRect(),s=document.documentElement.clientWidth;r.right>s-8?i.classList.add("flip-end"):r.left<8&&i.classList.add("flip-start")}triggerKey(i){(i.key==="ArrowDown"||i.key==="ArrowUp")&&(i.preventDefault(),this.toggle(!0,i.key==="ArrowUp"?"last":"first"))}listKey(i){let r=this.entries,s=r.indexOf(this.renderRoot.activeElement),c={ArrowDown:(s+1)%r.length,ArrowUp:(s-1+r.length)%r.length,Home:0,End:r.length-1};if(i.key in c)i.preventDefault(),r[c[i.key]]?.focus();else if(i.key.length===1&&/\S/.test(i.key)&&!i.ctrlKey&&!i.metaKey&&!i.altKey){let p=i.key.toLowerCase();[...r.slice(s+1),...r.slice(0,s+1)].find(g=>(g.textContent??"").trim().toLowerCase().startsWith(p))?.focus()}else i.key==="Escape"?(i.preventDefault(),this.toggle(!1),this.trigger?.focus()):i.key==="Tab"&&this.toggle(!1)}choose(i,r){if(i.disabled){r?.preventDefault();return}this.toggle(!1),this.trigger?.focus(),i.href||this.dispatchEvent(new CustomEvent("impakt-select",{detail:{value:i.value??i.text},bubbles:!0,composed:!0}))}renderItem(i){let r=i.meta||(i.current?S("You are here"):""),s=n`${M(i.icon,"18px")}<span class="text" part="label">${i.text}</span>${r?n`<span class="meta" part="meta">${r}</span>`:d}`,c=`item ${i.tone==="danger"?"danger":""}`,p=i.current?"page":d,m=i.disabled?"true":d,g=i.current?"item current":"item";return n`<li role="none">${i.href&&!i.disabled?n`<a class=${c} part=${g} role="menuitem" tabindex="-1" href=${i.href} aria-current=${p} @click=${f=>this.choose(i,f)}>${s}</a>`:n`<button class=${c} part=${g} role="menuitem" tabindex="-1" type="button" aria-current=${p} aria-disabled=${m} @click=${f=>this.choose(i,f)}>${s}</button>`}</li>`}get runs(){let i=[];for(let r of this.items??[]){let s=r.group??"",c=i[i.length-1],p=s?i.find(m=>m.group===s):void 0;p?p.items.push(r):c&&!s&&!c.group?c.items.push(r):i.push({group:s,items:[r]})}return i}render(){let i=this.triggerLook==="text",r=this.runs,s=r.some(c=>c.group);return n`<button class="trigger" part="trigger" type="button" aria-haspopup="menu" aria-expanded=${String(this.open)} aria-controls=${this.id_("list")}
3121
+ @click=${()=>this.toggle(!this.open)} @keydown=${this.triggerKey}><slot name="trigger">${M(this.icon,"18px")}${this.label}</slot>${i?n`<span class="caret" part="chevron" aria-hidden="true">${this.open?"\u25B4":"\u25BE"}</span>`:n`<span class="chev" part="chevron">${M("chevron-down","16px")}</span>`}</button>
3122
+ ${this.open?n`<div class="panel" part="panel">${this.querySelector?.(':scope > [slot="header"]')?n`<div class="header" part="header"><slot name="header"></slot></div>`:d}<ul class="list" part="list" id=${this.id_("list")} role="menu" aria-label=${this.label} @keydown=${this.listKey}>
3123
+ ${s?r.map((c,p)=>{let m=this.id_(`group-${p}`);return n`<li role="none" class="grouped" part="group">${c.group?n`<span class="group-label" id=${m} part="group-label">${c.group}</span>`:d}<ul class="group" role="group" aria-labelledby=${c.group?m:d}>${c.items.map(g=>this.renderItem(g))}</ul></li>`}):(this.items??[]).map(c=>this.renderItem(c))}
3124
+ </ul></div>`:d}`}};function la(o,e){let i=[...new Set([1,o-1,o,o+1,e])].filter(r=>r>=1&&r<=e).sort((r,s)=>r-s);return i.flatMap((r,s)=>{let c=i[s-1];return c===void 0||r===c+1?[r]:r===c+2?[c+1,r]:["gap",r]})}var Ot=class extends h{static{this.properties={page:{type:Number},pages:{type:Number},hrefPattern:{type:String,attribute:"href-pattern"},label:{type:String},previousText:{type:String,attribute:"previous-text"},nextText:{type:String,attribute:"next-text"}}}constructor(){super(),this.page=1,this.pages=1,this.hrefPattern="",this.label="Pages",this.previousText="Previous",this.nextText="Next"}static{this.styles=[...h.styles,v,I(".n, .step"),u`
3028
3125
  :host { display: block; container-type: inline-size; }
3029
3126
  nav { display: flex; align-items: center; justify-content: space-between; gap: ${a(2)}; }
3030
3127
  ul { display: flex; align-items: center; gap: ${a(1)}; margin: 0; padding: 0; list-style: none; }
3031
- .n, .step { ${z} box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: ${a(1.5)}; min-inline-size: 44px; padding: 0 ${a(2.5)}; font: inherit; ${w("sm")} font-weight: ${m("medium")}; color: ${t.text}; text-decoration: none; background: none; border: 0; border-radius: ${t.radiusLg}; cursor: pointer; }
3128
+ .n, .step { ${E} box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: ${a(1.5)}; min-inline-size: 44px; padding: 0 ${a(2.5)}; font: inherit; ${w("sm")} font-weight: ${b("medium")}; color: ${t.text}; text-decoration: none; background: none; border: 0; border-radius: ${t.radiusLg}; cursor: pointer; }
3032
3129
  .n:hover, .step:hover { background: ${t.surfaceSubtle}; }
3033
- .n[aria-current] { color: ${t.onBrand}; background: ${t.brand}; font-weight: ${m("semibold")}; }
3130
+ .n[aria-current] { color: ${t.onBrand}; background: ${t.brand}; font-weight: ${b("semibold")}; }
3034
3131
  .step[aria-disabled='true'] { color: ${t.textMuted}; opacity: 0.55; background: none; cursor: not-allowed; }
3035
3132
  .gap { color: ${t.textMuted}; padding: 0 ${a(1)}; }
3036
3133
  .count { display: none; ${w("sm")} color: ${t.textMuted}; }
3037
3134
  @container (max-width: 34rem) { ul { display: none; } .count { display: block; } }
3038
- `]}go(e,i){this.hrefPattern||(i.preventDefault(),this.page=e,this.dispatchEvent(new CustomEvent("impakt-page",{detail:{page:e},bubbles:!0,composed:!0})))}link(e,i,r,s,c){return this.hrefPattern?o`<a class=${i} href=${this.hrefPattern.replace("{page}",String(e))} aria-label=${s} aria-current=${c?"page":l}>${r}</a>`:o`<button class=${i} type="button" aria-label=${s} aria-current=${c?"page":l} @click=${p=>this.go(e,p)}>${r}</button>`}step(e,i,r,s){let c=r==="arrow-left"?o`${M(r,"16px")}${i}`:o`${i}${M(r,"16px")}`;return s?o`<span class="step" aria-disabled="true">${c}</span>`:this.link(e,"step",c,i,!1)}render(){let e=Math.min(Math.max(this.page,1),Math.max(this.pages,1));return o`<nav aria-label=${this.label} part="nav">
3135
+ `]}go(e,i){this.hrefPattern||(i.preventDefault(),this.page=e,this.dispatchEvent(new CustomEvent("impakt-page",{detail:{page:e},bubbles:!0,composed:!0})))}link(e,i,r,s,c){return this.hrefPattern?n`<a class=${i} href=${this.hrefPattern.replace("{page}",String(e))} aria-label=${s} aria-current=${c?"page":d}>${r}</a>`:n`<button class=${i} type="button" aria-label=${s} aria-current=${c?"page":d} @click=${p=>this.go(e,p)}>${r}</button>`}step(e,i,r,s){let c=r==="arrow-left"?n`${M(r,"16px")}${i}`:n`${i}${M(r,"16px")}`;return s?n`<span class="step" aria-disabled="true">${c}</span>`:this.link(e,"step",c,i,!1)}render(){let e=Math.min(Math.max(this.page,1),Math.max(this.pages,1));return n`<nav aria-label=${this.label} part="nav">
3039
3136
  ${this.step(e-1,this.previousText,"arrow-left",e<=1)}
3040
- <ul>${Lr(e,this.pages).map(i=>o`<li>${i==="gap"?o`<span class="gap" aria-hidden="true">…</span>`:this.link(i,"n",i,S("Page {page}",{page:i}),i===e)}</li>`)}</ul>
3137
+ <ul>${la(e,this.pages).map(i=>n`<li>${i==="gap"?n`<span class="gap" aria-hidden="true">…</span>`:this.link(i,"n",i,S("Page {page}",{page:i}),i===e)}</li>`)}</ul>
3041
3138
  <span class="count">${S("Page {page} of {pages}",{page:e,pages:this.pages})}</span>
3042
3139
  ${this.step(e+1,this.nextText,"arrow-right",e>=this.pages)}
3043
- </nav>`}},Ir=n=>{let e=n.trim().split(/\s+/).filter(Boolean);return((e[0]?.[0]??"")+(e.length>1?e[e.length-1][0]:"")).toUpperCase()},It=class extends h{constructor(){super();this.failed=!1;this.fullName="",this.src="",this.size="md"}static{this.properties={fullName:{type:String,attribute:"full-name"},src:{type:String},size:{type:String,reflect:!0}}}static{this.styles=[...h.styles,u`
3140
+ </nav>`}},da=o=>{let e=o.trim().split(/\s+/).filter(Boolean);return((e[0]?.[0]??"")+(e.length>1?e[e.length-1][0]:"")).toUpperCase()},Dt=class extends h{constructor(){super();this.failed=!1;this.fullName="",this.src="",this.size="md"}static{this.properties={fullName:{type:String,attribute:"full-name"},src:{type:String},size:{type:String,reflect:!0}}}static{this.styles=[...h.styles,u`
3044
3141
  :host { --size: 40px; display: inline-block; inline-size: var(--size); block-size: var(--size); vertical-align: middle; }
3045
3142
  :host([size='xs']) { --size: 22px; }
3046
3143
  :host([size='sm']) { --size: 32px; }
3047
3144
  :host([size='lg']) { --size: 56px; }
3048
3145
  :host([size='xl']) { --size: 80px; }
3049
- .face { display: flex; align-items: center; justify-content: center; inline-size: 100%; block-size: 100%; overflow: hidden; color: ${t.brand}; background: ${t.brandSubtle}; border-radius: 50%; font-size: calc(var(--size) * 0.38); font-weight: ${m("semibold")}; }
3146
+ .face { display: flex; align-items: center; justify-content: center; inline-size: 100%; block-size: 100%; overflow: hidden; color: ${t.brand}; background: ${t.brandSubtle}; border-radius: 50%; font-size: calc(var(--size) * 0.38); font-weight: ${b("semibold")}; }
3050
3147
  img { inline-size: 100%; block-size: 100%; object-fit: cover; }
3051
- `]}willUpdate(i){i.has("src")&&(this.failed=!1)}render(){return this.src&&!this.failed?o`<div class="face"><img src=${this.src} alt=${this.fullName} @error=${()=>{this.failed=!0,this.requestUpdate()}} /></div>`:o`<div class="face" role="img" aria-label=${this.fullName||S("Person")}>${Ir(this.fullName)||M("user","55%")}</div>`}},Rt=class extends h{static{this.properties={items:{type:Array},max:{type:Number},size:{type:String,reflect:!0},moreLabel:{type:String,attribute:"more-label"}}}constructor(){super(),this.items=[],this.max=4,this.size="md",this.moreLabel="more people"}static{this.styles=[...h.styles,u`
3148
+ `]}willUpdate(i){i.has("src")&&(this.failed=!1)}render(){return this.src&&!this.failed?n`<div class="face"><img src=${this.src} alt=${this.fullName} @error=${()=>{this.failed=!0,this.requestUpdate()}} /></div>`:n`<div class="face" role="img" aria-label=${this.fullName||S("Person")}>${da(this.fullName)||M("user","55%")}</div>`}},qt=class extends h{static{this.properties={items:{type:Array},max:{type:Number},size:{type:String,reflect:!0},moreLabel:{type:String,attribute:"more-label"}}}constructor(){super(),this.items=[],this.max=4,this.size="md",this.moreLabel="more people"}static{this.styles=[...h.styles,u`
3052
3149
  ul { display: flex; margin: 0; padding: 0; list-style: none; }
3053
3150
  li { margin-inline-start: -${a(2.5)}; border-radius: 50%; box-shadow: 0 0 0 2px ${t.surfaceCard}; line-height: 0; }
3054
3151
  li:first-child { margin-inline-start: 0; }
3055
- .more { display: flex; align-items: center; justify-content: center; inline-size: 40px; block-size: 40px; ${w("xs")} line-height: 1; font-weight: ${m("semibold")}; color: ${t.text}; background: ${t.surfaceSubtle}; border-radius: 50%; }
3152
+ .more { display: flex; align-items: center; justify-content: center; inline-size: 40px; block-size: 40px; ${w("xs")} line-height: 1; font-weight: ${b("semibold")}; color: ${t.text}; background: ${t.surfaceSubtle}; border-radius: 50%; }
3056
3153
  :host([size='sm']) .more { inline-size: 32px; block-size: 32px; }
3057
3154
  :host([size='xs']) li { margin-inline-start: -${a(1)}; box-shadow: 0 0 0 1px ${t.text}; }
3058
3155
  :host([size='xs']) li:first-child { margin-inline-start: 0; }
3059
3156
  :host([size='xs']) .more { inline-size: 22px; block-size: 22px; font-size: 10px; }
3060
3157
  :host([size='lg']) .more { inline-size: 56px; block-size: 56px; }
3061
3158
  .sr { ${T} }
3062
- `]}render(){let e=this.items.slice(0,this.max),i=this.items.length-e.length;return o`<ul part="list">
3063
- ${e.map(r=>o`<li><impakt-avatar full-name=${r.name} src=${r.src??""} size=${this.size}></impakt-avatar></li>`)}
3064
- ${i>0?o`<li><span class="more"><span aria-hidden="true">+${i}</span><span class="sr">${i} ${this.moreLabel}</span></span></li>`:l}
3065
- </ul>`}},_t=class extends h{static{this.properties={icon:{type:String},heading:{type:String},lead:{type:String},framed:{type:Boolean,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.icon="search",this.heading="",this.lead="",this.framed=!1,this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,N,u`
3159
+ `]}render(){let e=this.items.slice(0,this.max),i=this.items.length-e.length;return n`<ul part="list">
3160
+ ${e.map(r=>n`<li><impakt-avatar full-name=${r.name} src=${r.src??""} size=${this.size}></impakt-avatar></li>`)}
3161
+ ${i>0?n`<li><span class="more"><span aria-hidden="true">+${i}</span><span class="sr">${i} ${this.moreLabel}</span></span></li>`:d}
3162
+ </ul>`}},Ft=class extends h{static{this.properties={icon:{type:String},heading:{type:String},lead:{type:String},framed:{type:Boolean,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.icon="search",this.heading="",this.lead="",this.framed=!1,this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,D,u`
3066
3163
  .wrap { display: flex; flex-direction: column; align-items: center; gap: ${a(2)}; padding: ${a(12)} ${a(6)}; text-align: center; }
3067
3164
  :host([framed]) .wrap { border: ${t.borderThin} dashed ${t.border}; border-radius: ${t.radiusXl}; }
3068
3165
  .mark { display: inline-flex; align-items: center; justify-content: center; inline-size: 56px; block-size: 56px; margin-block-end: ${a(2)}; color: ${t.brand}; background: ${t.brandSubtle}; border-radius: 50%; }
3069
- .h { margin: 0; font-family: ${t.fontHeading}; ${w("xl")} font-weight: ${m("bold")}; color: ${t.textHeading}; }
3166
+ .h { margin: 0; font-family: ${t.fontHeading}; ${w("xl")} font-weight: ${b("bold")}; color: ${t.textHeading}; }
3070
3167
  p { margin: 0; max-inline-size: 42ch; color: ${t.textMuted}; text-wrap: pretty; }
3071
3168
  .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: ${a(3)}; margin-block-start: ${a(3)}; }
3072
- `]}render(){return o`<div class="wrap" part="wrap">
3169
+ `]}render(){return n`<div class="wrap" part="wrap">
3073
3170
  <span class="mark">${M(this.icon,"26px")}</span>
3074
- ${this.heading?o`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:l}
3075
- ${this.lead?o`<p>${this.lead}</p>`:l}
3171
+ ${this.heading?n`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:d}
3172
+ ${this.lead?n`<p>${this.lead}</p>`:d}
3076
3173
  <div class="actions"><slot name="actions"></slot></div>
3077
- </div>`}},Rr=n=>String(n?.times??"").split(",").map(e=>e.trim()).filter(Boolean);function _r(n){let e=new Date(`${n}T00:00:00Z`);if(Number.isNaN(e.getTime()))return{weekday:"",day:n,month:""};let i=q(),r=s=>new Intl.DateTimeFormat(i,{timeZone:"UTC",...s}).format(e);return{weekday:r({weekday:"short"}),day:r({day:"numeric"}),month:r({month:"short"})}}var Ht=class extends x{constructor(){super();this.day="";this.days=[],this.dayLabel="Day",this.timeLabel="Time",this.emptyText="No times are available at the moment."}static{this.properties={...x.properties,days:{type:Array},dayLabel:{type:String,attribute:"day-label"},timeLabel:{type:String,attribute:"time-label"},emptyText:{type:String,attribute:"empty-text"}}}static{this.styles=[...x.styles,u`
3174
+ </div>`}},ca=o=>String(o?.times??"").split(",").map(e=>e.trim()).filter(Boolean);function pa(o){let e=new Date(`${o}T00:00:00Z`);if(Number.isNaN(e.getTime()))return{weekday:"",day:o,month:""};let i=U(),r=s=>new Intl.DateTimeFormat(i,{timeZone:"UTC",...s}).format(e);return{weekday:r({weekday:"short"}),day:r({day:"numeric"}),month:r({month:"short"})}}var jt=class extends y{constructor(){super();this.day="";this.days=[],this.dayLabel="Day",this.timeLabel="Time",this.emptyText="No times are available at the moment."}static{this.properties={...y.properties,days:{type:Array},dayLabel:{type:String,attribute:"day-label"},timeLabel:{type:String,attribute:"time-label"},emptyText:{type:String,attribute:"empty-text"}}}static{this.styles=[...y.styles,u`
3078
3175
  fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
3079
3176
  legend { padding: 0; }
3080
3177
  .row-label { ${w("sm")} color: ${t.textMuted}; margin-block: ${a(2)}; }
@@ -3087,25 +3184,25 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3087
3184
  input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
3088
3185
  .day { flex: none; inline-size: 4.5rem; padding-block: ${a(2.5)}; }
3089
3186
  .weekday, .month { ${w("xs")} }
3090
- .num { ${w("xl")} font-weight: ${m("semibold")}; }
3091
- .time { padding: ${a(2)}; ${w("sm")} font-weight: ${m("medium")}; }
3187
+ .num { ${w("xl")} font-weight: ${b("semibold")}; }
3188
+ .time { padding: ${a(2)}; ${w("sm")} font-weight: ${b("medium")}; }
3092
3189
  .empty { margin: 0; color: ${t.textMuted}; }
3093
3190
  :host([invalid]) .days label, :host([invalid]) .times label { box-shadow: inset 0 0 0 1px ${t.danger}; }
3094
- `]}get currentDay(){let i=this.day||this.value.split("T")[0];return this.days.find(r=>r.date===i)??this.days[0]}chooseDay(i){this.day=i,this.value&&!this.value.startsWith(`${i}T`)&&this.setFormValue(""),this.requestUpdate()}renderLabel(){return o`<legend class="label" part="label">${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}</legend>`}renderControl(){let i=this.currentDay;return i?o`
3191
+ `]}get currentDay(){let i=this.day||this.value.split("T")[0];return this.days.find(r=>r.date===i)??this.days[0]}chooseDay(i){this.day=i,this.value&&!this.value.startsWith(`${i}T`)&&this.setFormValue(""),this.requestUpdate()}renderLabel(){return n`<legend class="label" part="label">${this.label}${this.required?n`<span class="required"> (${this.requiredText})</span>`:d}</legend>`}renderControl(){let i=this.currentDay;return i?n`
3095
3192
  <div class="row-label" id=${this.id_("days")}>${this.dayLabel}</div>
3096
3193
  <div class="days" part="days" role="radiogroup" aria-labelledby=${this.id_("days")}>
3097
- ${this.days.map(r=>{let s=_r(r.date);return o`<label class="day"><input type="radio" name=${`${this.uid}-day`} .checked=${r.date===i.date} ?disabled=${this.disabled} @change=${()=>this.chooseDay(r.date)} />
3194
+ ${this.days.map(r=>{let s=pa(r.date);return n`<label class="day"><input type="radio" name=${`${this.uid}-day`} .checked=${r.date===i.date} ?disabled=${this.disabled} @change=${()=>this.chooseDay(r.date)} />
3098
3195
  <span class="weekday">${s.weekday}</span><span class="num">${s.day}</span><span class="month">${s.month}</span></label>`})}
3099
3196
  </div>
3100
3197
  <div class="row-label" id=${this.id_("times")}>${this.timeLabel}</div>
3101
3198
  <div class="times" part="times" role="radiogroup" aria-labelledby=${this.id_("times")}>
3102
- ${Rr(i).map((r,s)=>{let c=`${i.date}T${r}`;return o`<label class="time"><input type="radio" name=${`${this.uid}-time`} .checked=${this.value===c} ?required=${this.required&&s===0} ?disabled=${this.disabled} @change=${()=>this.setFormValue(c)} />${r}</label>`})}
3103
- </div>`:o`<p class="empty">${this.emptyText}</p>`}render(){return o`<fieldset part="fieldset" ?disabled=${this.disabled} aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}>
3199
+ ${ca(i).map((r,s)=>{let c=`${i.date}T${r}`;return n`<label class="time"><input type="radio" name=${`${this.uid}-time`} .checked=${this.value===c} ?required=${this.required&&s===0} ?disabled=${this.disabled} @change=${()=>this.setFormValue(c)} />${r}</label>`})}
3200
+ </div>`:n`<p class="empty">${this.emptyText}</p>`}render(){return n`<fieldset part="fieldset" ?disabled=${this.disabled} aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":d}>
3104
3201
  ${this.renderLabel()}
3105
- ${this.description?o`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
3202
+ ${this.description?n`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:d}
3106
3203
  ${this.renderControl()}
3107
- <div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
3108
- </fieldset>`}updated(i){i.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-drawer",Et);customElements.define("impakt-toast",At);customElements.define("impakt-menu",Ct);customElements.define("impakt-pagination",Lt);customElements.define("impakt-avatar",It);customElements.define("impakt-avatar-group",Rt);customElements.define("impakt-empty-state",_t);customElements.define("impakt-slot-picker",Ht);var ui=u`
3204
+ <div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||d}</div>
3205
+ </fieldset>`}updated(i){i.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-drawer",Bt);customElements.define("impakt-toast",Nt);customElements.define("impakt-menu",Pt);customElements.define("impakt-pagination",Ot);customElements.define("impakt-avatar",Dt);customElements.define("impakt-avatar-group",qt);customElements.define("impakt-empty-state",Ft);customElements.define("impakt-slot-picker",jt);var Ci=u`
3109
3206
  input, select {
3110
3207
  box-sizing: border-box;
3111
3208
  inline-size: min(100%, var(--impakt-field-width));
@@ -3113,7 +3210,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3113
3210
  padding: ${a(2.5)} ${a(3)};
3114
3211
  font: inherit;
3115
3212
  /* 16px whatever the page around it sets, so a phone does not zoom in on focus. */
3116
- font-size: max(${b("md")}, 16px);
3213
+ font-size: max(${$("md")}, 16px);
3117
3214
  color: ${t.text};
3118
3215
  background: ${t.surfaceCard};
3119
3216
  border: ${t.borderThin} solid ${t.border};
@@ -3125,7 +3222,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3125
3222
  min-block-size: 44px;
3126
3223
  padding: ${a(2.5)} ${a(4)};
3127
3224
  font: inherit;
3128
- font-weight: ${m("semibold")};
3225
+ font-weight: ${b("semibold")};
3129
3226
  color: ${t.onBrand};
3130
3227
  background: ${t.brand};
3131
3228
  border: 0;
@@ -3135,9 +3232,9 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3135
3232
  .btn:hover { background: ${t.brandHover}; }
3136
3233
  .quiet { display: inline-flex; align-items: center; min-block-size: ${t.targetMin}; padding: 0; font: inherit; color: ${t.link}; text-decoration: underline; text-underline-offset: 0.2em; background: none; border: 0; cursor: pointer; }
3137
3234
  .visually-hidden { ${T} }
3138
- `,K=class extends x{static{this.properties={...x.properties,postcodeLabel:{type:String,attribute:"postcode-label"},findText:{type:String,attribute:"find-text"},chooseLabel:{type:String,attribute:"choose-label"},manualText:{type:String,attribute:"manual-text"},notFoundText:{type:String,attribute:"not-found-text"},lookupUrl:{type:String,attribute:"lookup-url"},addresses:{type:Array}}}constructor(){super(),this.label="Your address",this.postcodeLabel="Postcode",this.findText="Find address",this.chooseLabel="Choose your address",this.manualText="Enter the address yourself",this.notFoundText="No addresses found for that postcode. Check it, or enter the address yourself.",this.lookupUrl="",this.addresses=[],this.manual=!1,this.postcode="",this.searched=!1,this.busy=!1}static{this.styles=[...x.styles,D,ui,u`
3235
+ `,Z=class extends y{static{this.properties={...y.properties,postcodeLabel:{type:String,attribute:"postcode-label"},findText:{type:String,attribute:"find-text"},chooseLabel:{type:String,attribute:"choose-label"},manualText:{type:String,attribute:"manual-text"},notFoundText:{type:String,attribute:"not-found-text"},lookupUrl:{type:String,attribute:"lookup-url"},addresses:{type:Array}}}constructor(){super(),this.label="Your address",this.postcodeLabel="Postcode",this.findText="Find address",this.chooseLabel="Choose your address",this.manualText="Enter the address yourself",this.notFoundText="No addresses found for that postcode. Check it, or enter the address yourself.",this.lookupUrl="",this.addresses=[],this.manual=!1,this.postcode="",this.searched=!1,this.busy=!1}static{this.styles=[...y.styles,K,Ci,u`
3139
3236
  .row { display: flex; flex-wrap: wrap; gap: ${a(2)}; align-items: flex-end; }
3140
- .row label { display: block; ${w("sm")} font-weight: ${m("semibold")}; margin-block-end: ${a(1)}; }
3237
+ .row label { display: block; ${w("sm")} font-weight: ${b("semibold")}; margin-block-end: ${a(1)}; }
3141
3238
  .postcode input { inline-size: 12ch; text-transform: uppercase; }
3142
3239
  .choose { margin-block-start: ${a(4)}; }
3143
3240
  .choose select { inline-size: 100%; }
@@ -3146,13 +3243,13 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3146
3243
  .manual input { inline-size: 100%; }
3147
3244
  .note { ${w("sm")} color: ${t.textMuted}; margin: ${a(2)} 0 0; }
3148
3245
  .switch { margin-block-start: ${a(3)}; }
3149
- `]}async find(){let e=this.postcode.trim().toUpperCase();if(e){if(this.dispatchEvent(new CustomEvent("impakt-lookup",{detail:{postcode:e},bubbles:!0,composed:!0})),!this.lookupUrl){this.searched=!0;return}this.busy=!0;try{let i=new URL(this.lookupUrl,globalThis.location?.href);i.searchParams.set("postcode",e);let r=await(await fetch(i)).json();this.addresses=Array.isArray(r)?r:[]}catch{this.addresses=[]}finally{this.busy=!1,this.searched=!0}}}manualLine(){return["line1","line2","town","mpostcode"].map(i=>(this.renderRoot.querySelector(`#${this.id_(i)}`)?.value??"").trim()).filter(Boolean).join(", ")}renderControl(){if(this.manual){let e=(i,r,s)=>o`<div><label for=${this.id_(i)}>${r}</label><input id=${this.id_(i)} autocomplete=${s} @input=${()=>this.setFormValue(this.manualLine())} /></div>`;return o`<div class="manual" role="group" aria-label=${this.label}>
3246
+ `]}async find(){let e=this.postcode.trim().toUpperCase();if(e){if(this.dispatchEvent(new CustomEvent("impakt-lookup",{detail:{postcode:e},bubbles:!0,composed:!0})),!this.lookupUrl){this.searched=!0;return}this.busy=!0;try{let i=new URL(this.lookupUrl,globalThis.location?.href);i.searchParams.set("postcode",e);let r=await(await fetch(i)).json();this.addresses=Array.isArray(r)?r:[]}catch{this.addresses=[]}finally{this.busy=!1,this.searched=!0}}}manualLine(){return["line1","line2","town","mpostcode"].map(i=>(this.renderRoot.querySelector(`#${this.id_(i)}`)?.value??"").trim()).filter(Boolean).join(", ")}renderControl(){if(this.manual){let e=(i,r,s)=>n`<div><label for=${this.id_(i)}>${r}</label><input id=${this.id_(i)} autocomplete=${s} @input=${()=>this.setFormValue(this.manualLine())} /></div>`;return n`<div class="manual" role="group" aria-label=${this.label}>
3150
3247
  ${e("line1",S("Building and street"),"address-line1")}
3151
3248
  ${e("line2",S("Second line (optional)"),"address-line2")}
3152
3249
  ${e("town",S("Town or city"),"address-level2")}
3153
3250
  ${e("mpostcode",S("Postcode"),"postal-code")}
3154
3251
  <button class="quiet switch" type="button" @click=${()=>{this.manual=!1}}>${S("Find the address from the postcode")}</button>
3155
- </div>`}return o`
3252
+ </div>`}return n`
3156
3253
  <div class="row">
3157
3254
  <div class="postcode"><label for=${this.controlId}>${this.postcodeLabel}</label>
3158
3255
  <input id=${this.controlId} autocomplete="postal-code" .value=${this.postcode} aria-describedby=${this.describedBy}
@@ -3160,23 +3257,23 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3160
3257
  @keydown=${e=>{e.key==="Enter"&&(e.preventDefault(),this.find())}} /></div>
3161
3258
  <button class="btn" type="button" ?disabled=${this.busy} @click=${()=>this.find()}>${this.busy?"Finding\u2026":this.findText}</button>
3162
3259
  </div>
3163
- ${this.addresses.length?o`<div class="choose"><label class="label" for=${this.id_("choose")}>${this.chooseLabel}</label>
3260
+ ${this.addresses.length?n`<div class="choose"><label class="label" for=${this.id_("choose")}>${this.chooseLabel}</label>
3164
3261
  <select id=${this.id_("choose")} @change=${e=>this.setFormValue(e.target.value)}>
3165
3262
  <option value="">${this.addresses.length} ${this.addresses.length===1?"address":"addresses"} found</option>
3166
- ${this.addresses.map(e=>o`<option value=${e.line} ?selected=${e.line===this.value}>${e.line}</option>`)}
3167
- </select></div>`:this.searched&&!this.busy?o`<p class="note" role="status">${this.notFoundText}</p>`:l}
3263
+ ${this.addresses.map(e=>n`<option value=${e.line} ?selected=${e.line===this.value}>${e.line}</option>`)}
3264
+ </select></div>`:this.searched&&!this.busy?n`<p class="note" role="status">${this.notFoundText}</p>`:d}
3168
3265
  <button class="quiet switch" type="button" @click=${()=>{this.manual=!0}}>${this.manualText}</button>
3169
- `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},Bt=class extends h{static{this.properties={heading:{type:String},items:{type:Array},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.heading="There is a problem",this.items=[],this.spaceAbove="none",this.spaceBelow="md"}static{this.styles=[...h.styles,v,N,C("a"),u`
3266
+ `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},Wt=class extends h{static{this.properties={heading:{type:String},items:{type:Array},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.heading="There is a problem",this.items=[],this.spaceAbove="none",this.spaceBelow="md"}static{this.styles=[...h.styles,v,D,I("a"),u`
3170
3267
  :host { display: block; }
3171
3268
  .box { padding: ${a(5)}; border: ${t.borderThick} solid ${t.danger}; border-inline-start-width: 6px; border-radius: ${t.radiusLg}; background: ${t.surfaceCard}; }
3172
3269
  .box:focus { outline: 3px solid ${t.danger}; outline-offset: 2px; }
3173
- h2 { margin: 0 0 ${a(3)}; ${w("lg")} font-weight: ${m("bold")}; color: ${t.text}; }
3270
+ h2 { margin: 0 0 ${a(3)}; ${w("lg")} font-weight: ${b("bold")}; color: ${t.text}; }
3174
3271
  ul { margin: 0; padding: 0; list-style: none; display: grid; gap: ${a(2)}; }
3175
- a { display: inline-flex; align-items: center; min-block-size: ${t.targetMin}; color: ${t.dangerText}; font-weight: ${m("semibold")}; text-underline-offset: 0.2em; }
3176
- `]}go(e,i){let r=i.replace(/^#/,""),c=this.getRootNode().querySelector?.(`#${CSS.escape(r)}`)??document.getElementById(r);c&&(e.preventDefault(),c.scrollIntoView({block:"center"}),c.focus())}updated(e){let i=e.get("items");e.has("items")&&this.items.length&&!i?.length&&this.renderRoot.querySelector(".box")?.focus()}render(){return this.items.length?o`<div class="box" role="alert" tabindex="-1" aria-labelledby=${this.id_("h")} part="box">
3272
+ a { display: inline-flex; align-items: center; min-block-size: ${t.targetMin}; color: ${t.dangerText}; font-weight: ${b("semibold")}; text-underline-offset: 0.2em; }
3273
+ `]}go(e,i){let r=i.replace(/^#/,""),c=this.getRootNode().querySelector?.(`#${CSS.escape(r)}`)??document.getElementById(r);c&&(e.preventDefault(),c.scrollIntoView({block:"center"}),c.focus())}updated(e){let i=e.get("items");e.has("items")&&this.items.length&&!i?.length&&this.renderRoot.querySelector(".box")?.focus()}render(){return this.items.length?n`<div class="box" role="alert" tabindex="-1" aria-labelledby=${this.id_("h")} part="box">
3177
3274
  <h2 id=${this.id_("h")}>${this.heading}</h2>
3178
- <ul>${this.items.map(e=>o`<li><a href=${e.href} @click=${i=>this.go(i,e.href)}>${e.text}</a></li>`)}</ul>
3179
- </div>`:l}},Hr=n=>n>=1048576?S("{size} MB",{size:(n/1048576).toFixed(1)}):S("{size} KB",{size:Math.max(1,Math.round(n/1024))}),te=class extends x{static{this.properties={...x.properties,accept:{type:String},manyFiles:{type:Boolean,attribute:"many-files"},maxSizeMb:{type:Number,attribute:"max-size-mb"},chooseText:{type:String,attribute:"choose-text"},dropText:{type:String,attribute:"drop-text"}}}constructor(){super(),this.label="Upload a file",this.accept=".pdf,.jpg,.jpeg,.png",this.manyFiles=!1,this.maxSizeMb=10,this.chooseText="Choose file",this.dropText="or drop it here",this.files=[],this.over=!1,this.said=""}static{this.styles=[...x.styles,ui,z,C("label.btn, .quiet"),u`
3275
+ <ul>${this.items.map(e=>n`<li><a href=${e.href} @click=${i=>this.go(i,e.href)}>${e.text}</a></li>`)}</ul>
3276
+ </div>`:d}},ha=o=>o>=1048576?S("{size} MB",{size:(o/1048576).toFixed(1)}):S("{size} KB",{size:Math.max(1,Math.round(o/1024))}),oe=class extends y{static{this.properties={...y.properties,accept:{type:String},manyFiles:{type:Boolean,attribute:"many-files"},maxSizeMb:{type:Number,attribute:"max-size-mb"},chooseText:{type:String,attribute:"choose-text"},dropText:{type:String,attribute:"drop-text"}}}constructor(){super(),this.label="Upload a file",this.accept=".pdf,.jpg,.jpeg,.png",this.manyFiles=!1,this.maxSizeMb=10,this.chooseText="Choose file",this.dropText="or drop it here",this.files=[],this.over=!1,this.said=""}static{this.styles=[...y.styles,Ci,E,I("label.btn, .quiet"),u`
3180
3277
  .zone { display: flex; flex-wrap: wrap; align-items: center; gap: ${a(3)}; padding: ${a(5)}; border: 2px dashed ${t.border}; border-radius: ${t.radiusLg}; background: ${t.surfaceCard}; }
3181
3278
  .zone.over { border-color: ${t.brand}; background: ${t.brandSubtle}; }
3182
3279
  :host([invalid]) .zone { border-color: ${t.danger}; border-style: solid; }
@@ -3188,62 +3285,62 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3188
3285
  ul { margin: ${a(3)} 0 0; padding: 0; list-style: none; display: grid; gap: ${a(2)}; }
3189
3286
  li { display: flex; justify-content: space-between; gap: ${a(3)}; align-items: center; padding: ${a(2)} ${a(3)}; border-radius: ${t.radius}; background: ${t.surfaceInset}; }
3190
3287
  .size { color: ${t.textMuted}; ${w("sm")} }
3191
- `]}fits(e){if(this.maxSizeMb&&e.size>this.maxSizeMb*1048576)return S("{file} is bigger than {size} MB",{file:e.name,size:this.maxSizeMb});let i=this.accept.split(",").map(r=>r.trim().toLowerCase()).filter(Boolean);return i.length&&!i.some(r=>r.startsWith(".")?e.name.toLowerCase().endsWith(r):e.type===r||r.endsWith("/*")&&e.type.startsWith(r.slice(0,-1)))?S("{file} must be {kinds}",{file:e.name,kinds:i.map(r=>r.replace(".","").toUpperCase()).join(", ")}):null}add(e){let i=Array.from(e),r=i.map(p=>this.fits(p)).filter(p=>!!p),s=i.filter(p=>!this.fits(p)),c=this.manyFiles?s:s.slice(0,1);this.files=this.manyFiles?[...this.files,...s]:c.length?c:this.files,this.error=r.join(". "),this.said=c.map(p=>S("{file} added",{file:p.name})).join(". "),this.sync()}removeFile(e){let i=this.files[e];this.files=this.files.filter((r,s)=>s!==e),this.said=i?S("{file} removed",{file:i.name}):"",this.sync(),this.updateComplete.then(()=>this.renderRoot.querySelector('input[type="file"]')?.focus())}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}sync(){this.setFormValue(this.files.map(e=>e.name).join(", ")),this.dispatchEvent(new CustomEvent("impakt-files",{detail:{files:this.files},bubbles:!0,composed:!0}))}renderControl(){return o`
3288
+ `]}fits(e){if(this.maxSizeMb&&e.size>this.maxSizeMb*1048576)return S("{file} is bigger than {size} MB",{file:e.name,size:this.maxSizeMb});let i=this.accept.split(",").map(r=>r.trim().toLowerCase()).filter(Boolean);return i.length&&!i.some(r=>r.startsWith(".")?e.name.toLowerCase().endsWith(r):e.type===r||r.endsWith("/*")&&e.type.startsWith(r.slice(0,-1)))?S("{file} must be {kinds}",{file:e.name,kinds:i.map(r=>r.replace(".","").toUpperCase()).join(", ")}):null}add(e){let i=Array.from(e),r=i.map(p=>this.fits(p)).filter(p=>!!p),s=i.filter(p=>!this.fits(p)),c=this.manyFiles?s:s.slice(0,1);this.files=this.manyFiles?[...this.files,...s]:c.length?c:this.files,this.error=r.join(". "),this.said=c.map(p=>S("{file} added",{file:p.name})).join(". "),this.sync()}removeFile(e){let i=this.files[e];this.files=this.files.filter((r,s)=>s!==e),this.said=i?S("{file} removed",{file:i.name}):"",this.sync(),this.updateComplete.then(()=>this.renderRoot.querySelector('input[type="file"]')?.focus())}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}sync(){this.setFormValue(this.files.map(e=>e.name).join(", ")),this.dispatchEvent(new CustomEvent("impakt-files",{detail:{files:this.files},bubbles:!0,composed:!0}))}renderControl(){return n`
3192
3289
  <div class="zone ${this.over?"over":""}"
3193
3290
  @dragover=${e=>{e.preventDefault(),this.over=!0}}
3194
3291
  @dragleave=${()=>{this.over=!1}}
3195
3292
  @drop=${e=>{e.preventDefault(),this.over=!1,e.dataTransfer?.files&&this.add(e.dataTransfer.files)}}>
3196
- <input id=${this.controlId} type="file" accept=${this.accept||l} ?multiple=${this.manyFiles} ?disabled=${this.disabled} ?required=${this.required} aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}
3293
+ <input id=${this.controlId} type="file" accept=${this.accept||d} ?multiple=${this.manyFiles} ?disabled=${this.disabled} ?required=${this.required} aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":d}
3197
3294
  @change=${e=>{let i=e.target.files;i&&this.add(i),e.target.value=""}} />
3198
3295
  <label class="btn" for=${this.controlId}>${this.chooseText}</label>
3199
3296
  <span class="drop">${this.dropText}</span>
3200
3297
  </div>
3201
3298
  <p class="visually-hidden" role="status">${this.said}</p>
3202
- ${this.files.length?o`<ul aria-label=${S("Files added")}>${this.files.map((e,i)=>o`<li><span>${e.name} <span class="size">${Hr(e.size)}</span></span><button class="quiet" type="button" @click=${()=>this.removeFile(i)}>${S("Remove")}<span class="visually-hidden"> ${e.name}</span></button></li>`)}</ul>`:l}
3203
- `}};function pi(n){try{return new Intl.NumberFormat(q(),{style:"currency",currency:n,maximumFractionDigits:0}).formatToParts(0).find(e=>e.type==="currency")?.value??""}catch{return""}}function hi(n){let e=n.replace(/[^\d.]/g,"");if(!e)return"";let[i,r]=e.split(".");return`${Number(i).toLocaleString("en-GB")}${r!==void 0?`.${r.slice(0,2)}`:""}`}var ke=class extends x{static{this.properties={...x.properties,currency:{type:String},lowest:{type:Number},highest:{type:Number},pence:{type:Boolean},width:{type:String,reflect:!0}}}constructor(){super(),this.currency="GBP",this.lowest=void 0,this.highest=void 0,this.pence=!1,this.width="md",this.shown=""}static{this.styles=[...x.styles,D,ui,u`
3299
+ ${this.files.length?n`<ul aria-label=${S("Files added")}>${this.files.map((e,i)=>n`<li><span>${e.name} <span class="size">${ha(e.size)}</span></span><button class="quiet" type="button" @click=${()=>this.removeFile(i)}>${S("Remove")}<span class="visually-hidden"> ${e.name}</span></button></li>`)}</ul>`:d}
3300
+ `}};function Mi(o){try{return new Intl.NumberFormat(U(),{style:"currency",currency:o,maximumFractionDigits:0}).formatToParts(0).find(e=>e.type==="currency")?.value??""}catch{return""}}function Ai(o){let e=o.replace(/[^\d.]/g,"");if(!e)return"";let[i,r]=e.split(".");return`${Number(i).toLocaleString("en-GB")}${r!==void 0?`.${r.slice(0,2)}`:""}`}var Ae=class extends y{static{this.properties={...y.properties,currency:{type:String},lowest:{type:Number},highest:{type:Number},pence:{type:Boolean},width:{type:String,reflect:!0}}}constructor(){super(),this.currency="GBP",this.lowest=void 0,this.highest=void 0,this.pence=!1,this.width="md",this.shown=""}static{this.styles=[...y.styles,K,Ci,u`
3204
3301
  .wrap { display: flex; align-items: stretch; inline-size: min(100%, var(--impakt-field-width)); }
3205
- .sign { display: flex; align-items: center; padding: 0 ${a(3)}; font-weight: ${m("semibold")}; background: ${t.surfaceInset}; border: ${t.borderThin} solid ${t.border}; border-inline-end: 0; border-radius: ${t.radiusLg} 0 0 ${t.radiusLg}; }
3302
+ .sign { display: flex; align-items: center; padding: 0 ${a(3)}; font-weight: ${b("semibold")}; background: ${t.surfaceInset}; border: ${t.borderThin} solid ${t.border}; border-inline-end: 0; border-radius: ${t.radiusLg} 0 0 ${t.radiusLg}; }
3206
3303
  .wrap input { inline-size: 100%; border-radius: 0 ${t.radiusLg} ${t.radiusLg} 0; }
3207
- `]}willUpdate(e){e.has("value")&&this.value!==this.shown.replace(/,/g,"")&&(this.shown=hi(this.value))}typed(e){let i=e.replace(/[^\d.]/g,""),r=this.pence?i:i.split(".")[0];this.shown=e,this.setFormValue(r)}check(){this.shown=hi(this.value);let e=Number(this.value);if(!this.value)return;let i=r=>`${pi(this.currency)}${r.toLocaleString("en-GB")}`;this.lowest!==void 0&&e<this.lowest?this.error=S("Enter an amount of {amount} or more",{amount:i(this.lowest)}):this.highest!==void 0&&e>this.highest?this.error=S("Enter an amount of {amount} or less",{amount:i(this.highest)}):(this.error===S("Enter an amount of {amount} or more",{amount:i(this.lowest??0)})||this.error===S("Enter an amount of {amount} or less",{amount:i(this.highest??0)}))&&(this.error="")}get describedBy(){let e=[pi(this.currency)?this.id_("sign"):"",super.describedBy===l?"":String(super.describedBy)].filter(Boolean);return e.length?e.join(" "):l}renderControl(){return o`<div class="wrap">
3208
- <span class="sign" id=${this.id_("sign")}>${pi(this.currency)}</span>
3304
+ `]}willUpdate(e){e.has("value")&&this.value!==this.shown.replace(/,/g,"")&&(this.shown=Ai(this.value))}typed(e){let i=e.replace(/[^\d.]/g,""),r=this.pence?i:i.split(".")[0];this.shown=e,this.setFormValue(r)}check(){this.shown=Ai(this.value);let e=Number(this.value);if(!this.value)return;let i=r=>`${Mi(this.currency)}${r.toLocaleString("en-GB")}`;this.lowest!==void 0&&e<this.lowest?this.error=S("Enter an amount of {amount} or more",{amount:i(this.lowest)}):this.highest!==void 0&&e>this.highest?this.error=S("Enter an amount of {amount} or less",{amount:i(this.highest)}):(this.error===S("Enter an amount of {amount} or more",{amount:i(this.lowest??0)})||this.error===S("Enter an amount of {amount} or less",{amount:i(this.highest??0)}))&&(this.error="")}get describedBy(){let e=[Mi(this.currency)?this.id_("sign"):"",super.describedBy===d?"":String(super.describedBy)].filter(Boolean);return e.length?e.join(" "):d}renderControl(){return n`<div class="wrap">
3305
+ <span class="sign" id=${this.id_("sign")}>${Mi(this.currency)}</span>
3209
3306
  <input id=${this.controlId} inputmode=${this.pence?"decimal":"numeric"} .value=${this.shown} ?disabled=${this.disabled} ?readonly=${this.readonly} ?required=${this.required}
3210
- aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}
3307
+ aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":d}
3211
3308
  @input=${e=>this.typed(e.target.value)} @blur=${()=>this.check()} />
3212
- </div>`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},Nt=class extends x{static{this.properties={...x.properties,lowest:{type:Number},highest:{type:Number},step:{type:Number},currency:{type:String},unit:{type:String}}}constructor(){super(),this.label="How much",this.lowest=0,this.highest=100,this.step=1,this.currency="",this.unit="",this.value="50"}static{this.styles=[...x.styles,u`
3309
+ </div>`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},Ut=class extends y{static{this.properties={...y.properties,lowest:{type:Number},highest:{type:Number},step:{type:Number},currency:{type:String},unit:{type:String}}}constructor(){super(),this.label="How much",this.lowest=0,this.highest=100,this.step=1,this.currency="",this.unit="",this.value="50"}static{this.styles=[...y.styles,u`
3213
3310
  .top { display: flex; justify-content: space-between; gap: ${a(3)}; }
3214
- output { font-weight: ${m("semibold")}; color: ${t.text}; }
3311
+ output { font-weight: ${b("semibold")}; color: ${t.text}; }
3215
3312
  input { inline-size: 100%; min-block-size: 32px; margin: 0; accent-color: ${t.brand}; }
3216
3313
  .ends { display: flex; justify-content: space-between; ${w("sm")} color: ${t.textMuted}; }
3217
- `]}shownAs(e){let i=q(this),r=e.toLocaleString(i);if(this.currency)try{r=new Intl.NumberFormat(i,{style:"currency",currency:this.currency,maximumFractionDigits:0}).format(e)}catch{}return this.unit?`${r} ${this.unit}`:r}render(){let e=Number(this.value)||0;return o`
3218
- <div class="top"><label class="label" for=${this.controlId}>${this.label}${this.required?o` <span class="required">(${this.requiredText})</span>`:l}</label>
3314
+ `]}shownAs(e){let i=U(this),r=e.toLocaleString(i);if(this.currency)try{r=new Intl.NumberFormat(i,{style:"currency",currency:this.currency,maximumFractionDigits:0}).format(e)}catch{}return this.unit?`${r} ${this.unit}`:r}render(){let e=Number(this.value)||0;return n`
3315
+ <div class="top"><label class="label" for=${this.controlId}>${this.label}${this.required?n` <span class="required">(${this.requiredText})</span>`:d}</label>
3219
3316
  <output for=${this.controlId}>${this.shownAs(e)}</output></div>
3220
- ${this.description?o`<div class="description" id=${this.id_("description")}>${this.description}</div>`:l}
3317
+ ${this.description?n`<div class="description" id=${this.id_("description")}>${this.description}</div>`:d}
3221
3318
  ${this.renderControl()}
3222
3319
  <div class="ends" aria-hidden="true"><span>${this.shownAs(this.lowest)}</span><span>${this.shownAs(this.highest)}</span></div>
3223
- <div class="error" id=${this.id_("error")} aria-live="polite">${this.error||l}</div>
3224
- `}renderControl(){return o`<input id=${this.controlId} type="range" min=${this.lowest} max=${this.highest} step=${this.step} .value=${this.value} ?disabled=${this.disabled}
3320
+ <div class="error" id=${this.id_("error")} aria-live="polite">${this.error||d}</div>
3321
+ `}renderControl(){return n`<input id=${this.controlId} type="range" min=${this.lowest} max=${this.highest} step=${this.step} .value=${this.value} ?disabled=${this.disabled}
3225
3322
  aria-valuetext=${this.shownAs(Number(this.value)||0)} aria-describedby=${this.describedBy}
3226
- @input=${e=>this.setFormValue(e.target.value)} />`}},Ki={done:"Completed","in-progress":"In progress","not-started":"Not started","cannot-start":"Cannot start yet"},Pt=class extends h{static{this.properties={heading:{type:String},items:{type:Array},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.heading="Your application",this.items=[],this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,v,N,C("a"),u`
3323
+ @input=${e=>this.setFormValue(e.target.value)} />`}},gr={done:"Completed","in-progress":"In progress","not-started":"Not started","cannot-start":"Cannot start yet"},Vt=class extends h{static{this.properties={heading:{type:String},items:{type:Array},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.heading="Your application",this.items=[],this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,v,D,I("a"),u`
3227
3324
  :host { display: block; }
3228
- .h { margin: 0 0 ${a(2)}; ${w("xl")} font-weight: ${m("bold")}; color: ${t.textHeading}; }
3325
+ .h { margin: 0 0 ${a(2)}; ${w("xl")} font-weight: ${b("bold")}; color: ${t.textHeading}; }
3229
3326
  .count { margin: 0 0 ${a(4)}; color: ${t.textMuted}; }
3230
3327
  ul { margin: 0; padding: 0; list-style: none; border-block-start: 1px solid ${t.rule}; }
3231
3328
  li { display: flex; justify-content: space-between; align-items: center; gap: ${a(4)}; padding: ${a(4)} 0; border-block-end: 1px solid ${t.rule}; }
3232
- a { display: inline-flex; align-items: center; min-block-size: ${t.targetMin}; color: ${t.link}; font-weight: ${m("semibold")}; text-underline-offset: 0.2em; }
3233
- .title { font-weight: ${m("semibold")}; }
3329
+ a { display: inline-flex; align-items: center; min-block-size: ${t.targetMin}; color: ${t.link}; font-weight: ${b("semibold")}; text-underline-offset: 0.2em; }
3330
+ .title { font-weight: ${b("semibold")}; }
3234
3331
  .hint { display: block; ${w("sm")} color: ${t.textMuted}; }
3235
- .tag { flex-shrink: 0; padding: ${a(1)} ${a(2.5)}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); ${w("sm")} font-weight: ${m("semibold")}; background: ${t.surfaceInset}; color: ${t.text}; }
3332
+ .tag { flex-shrink: 0; padding: ${a(1)} ${a(2.5)}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); ${w("sm")} font-weight: ${b("semibold")}; background: ${t.surfaceInset}; color: ${t.text}; }
3236
3333
  .tag[data-status='done'] { background: ${t.successSubtle}; color: ${t.successText}; }
3237
3334
  .tag[data-status='in-progress'] { background: ${t.brandSubtle}; color: ${t.link}; }
3238
3335
  .tag[data-status='cannot-start'] { background: transparent; color: ${t.textMuted}; }
3239
- `]}render(){let e=this.items.filter(i=>i.status==="done").length;return o`
3240
- ${this.heading?o`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:l}
3241
- ${this.items.length?o`<p class="count">${S(this.items.length===1?"You have completed {done} of {total} part.":"You have completed {done} of {total} parts.",{done:e,total:this.items.length})}</p>`:l}
3242
- <ul>${this.items.map(i=>o`<li>
3243
- <span>${i.href&&i.status!=="cannot-start"?o`<a href=${i.href} aria-describedby=${this.id_(`s-${i.id}`)}>${i.title}</a>`:o`<span class="title">${i.title}</span>`}
3244
- ${i.hint?o`<span class="hint">${i.hint}</span>`:l}</span>
3245
- <span class="tag" data-status=${i.status} id=${this.id_(`s-${i.id}`)}>${Ki[i.status]?S(Ki[i.status]):i.status}</span>
3246
- </li>`)}</ul>`}};K.createProperty("manual",{state:!0});K.createProperty("postcode",{state:!0});K.createProperty("searched",{state:!0});K.createProperty("busy",{state:!0});te.createProperty("files",{state:!0});te.createProperty("over",{state:!0});te.createProperty("said",{state:!0});ke.createProperty("shown",{state:!0});customElements.define("impakt-address-lookup",K);customElements.define("impakt-error-summary",Bt);customElements.define("impakt-file-upload",te);customElements.define("impakt-money-input",ke);customElements.define("impakt-range-input",Nt);customElements.define("impakt-task-list",Pt);var Ot=class extends h{static{this.properties={label:{type:String},description:{type:String},href:{type:String},kind:{type:String,reflect:!0},look:{type:String,reflect:!0}}}constructor(){super(),this.label="",this.description="",this.href="",this.kind="static",this.look="default"}static{this.styles=[...h.styles,v,u`
3336
+ `]}render(){let e=this.items.filter(i=>i.status==="done").length;return n`
3337
+ ${this.heading?n`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:d}
3338
+ ${this.items.length?n`<p class="count">${S(this.items.length===1?"You have completed {done} of {total} part.":"You have completed {done} of {total} parts.",{done:e,total:this.items.length})}</p>`:d}
3339
+ <ul>${this.items.map(i=>n`<li>
3340
+ <span>${i.href&&i.status!=="cannot-start"?n`<a href=${i.href} aria-describedby=${this.id_(`s-${i.id}`)}>${i.title}</a>`:n`<span class="title">${i.title}</span>`}
3341
+ ${i.hint?n`<span class="hint">${i.hint}</span>`:d}</span>
3342
+ <span class="tag" data-status=${i.status} id=${this.id_(`s-${i.id}`)}>${gr[i.status]?S(gr[i.status]):i.status}</span>
3343
+ </li>`)}</ul>`}};Z.createProperty("manual",{state:!0});Z.createProperty("postcode",{state:!0});Z.createProperty("searched",{state:!0});Z.createProperty("busy",{state:!0});oe.createProperty("files",{state:!0});oe.createProperty("over",{state:!0});oe.createProperty("said",{state:!0});Ae.createProperty("shown",{state:!0});customElements.define("impakt-address-lookup",Z);customElements.define("impakt-error-summary",Wt);customElements.define("impakt-file-upload",oe);customElements.define("impakt-money-input",Ae);customElements.define("impakt-range-input",Ut);customElements.define("impakt-task-list",Vt);var Gt=class extends h{static{this.properties={label:{type:String},description:{type:String},href:{type:String},kind:{type:String,reflect:!0},look:{type:String,reflect:!0}}}constructor(){super(),this.label="",this.description="",this.href="",this.kind="static",this.look="default"}static{this.styles=[...h.styles,v,u`
3247
3344
  :host {
3248
3345
  display: inline-flex;
3249
3346
  flex: none;
@@ -3256,8 +3353,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3256
3353
  justify-content: center;
3257
3354
  padding: 1px 5px;
3258
3355
  font-family: ${t.fontMono};
3259
- font-size: ${f.small};
3260
- font-weight: ${f.medium};
3356
+ font-size: ${x.small};
3357
+ font-weight: ${x.medium};
3261
3358
  line-height: 1.3;
3262
3359
  white-space: nowrap;
3263
3360
  color: ${t.text};
@@ -3291,7 +3388,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3291
3388
  border-color: CanvasText;
3292
3389
  }
3293
3390
  }
3294
- `]}press(){this.dispatchEvent(new CustomEvent("impakt-source",{detail:{label:this.label,description:this.description},bubbles:!0,composed:!0}))}render(){let e=this.description?this.description.includes(this.label)?this.description:`${this.label}: ${this.description}`:"",i=e||l;return this.href?o`<a class="chip" part="chip" href=${this.href} aria-label=${i}>${this.label}</a>`:this.kind==="button"?o`<button class="chip" part="chip" type="button" aria-label=${i} @click=${this.press}>${this.label}</button>`:e?o`<span class="chip" part="chip"><span aria-hidden="true">${this.label}</span><span class="visually-hidden">${e}</span></span>`:o`<span class="chip" part="chip">${this.label}</span>`}};customElements.define("impakt-source",Ot);var qt=class extends h{static{this.properties={state:{type:String,reflect:!0},label:{type:String},look:{type:String,reflect:!0},size:{type:String,reflect:!0},verifiedText:{type:String,attribute:"verified-text"},unverifiedText:{type:String,attribute:"unverified-text"}}}constructor(){super(),this.state="verified",this.label="",this.look="default",this.size="tool",this.verifiedText="Checked by code",this.unverifiedText="Not verified \xB7 a person must check"}static{this.styles=[...h.styles,u`
3391
+ `]}press(){this.dispatchEvent(new CustomEvent("impakt-source",{detail:{label:this.label,description:this.description},bubbles:!0,composed:!0}))}render(){let e=this.description?this.description.includes(this.label)?this.description:`${this.label}: ${this.description}`:"",i=e||d;return this.href?n`<a class="chip" part="chip" href=${this.href} aria-label=${i}>${this.label}</a>`:this.kind==="button"?n`<button class="chip" part="chip" type="button" aria-label=${i} @click=${this.press}>${this.label}</button>`:e?n`<span class="chip" part="chip"><span aria-hidden="true">${this.label}</span><span class="visually-hidden">${e}</span></span>`:n`<span class="chip" part="chip">${this.label}</span>`}};customElements.define("impakt-source",Gt);var Kt=class extends h{static{this.properties={state:{type:String,reflect:!0},label:{type:String},look:{type:String,reflect:!0},size:{type:String,reflect:!0},verifiedText:{type:String,attribute:"verified-text"},unverifiedText:{type:String,attribute:"unverified-text"}}}constructor(){super(),this.state="verified",this.label="",this.look="default",this.size="tool",this.verifiedText="Checked by code",this.unverifiedText="Not verified \xB7 a person must check"}static{this.styles=[...h.styles,u`
3295
3392
  /* It keeps its size in a row, but never grows past its container: at 320 the words wrap inside the mark (1.4.10). */
3296
3393
  :host {
3297
3394
  display: inline-flex;
@@ -3306,13 +3403,13 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3306
3403
  gap: ${a(2)};
3307
3404
  padding: 3px 8px;
3308
3405
  font-family: ${t.fontMono};
3309
- font-size: ${f.small};
3310
- font-weight: ${f.medium};
3406
+ font-size: ${x.small};
3407
+ font-weight: ${x.medium};
3311
3408
  line-height: 1.3;
3312
3409
  overflow-wrap: anywhere;
3313
- color: ${f.onInverse};
3314
- background: ${f.inverse};
3315
- border: 1px solid ${f.inverse};
3410
+ color: ${x.onInverse};
3411
+ background: ${x.inverse};
3412
+ border: 1px solid ${x.inverse};
3316
3413
  border-radius: 0;
3317
3414
  }
3318
3415
  .mark {
@@ -3322,10 +3419,10 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3322
3419
  block-size: 14px;
3323
3420
  }
3324
3421
  .box {
3325
- fill: ${f.ok};
3422
+ fill: ${x.ok};
3326
3423
  }
3327
3424
  .tick {
3328
- stroke: ${f.onOk};
3425
+ stroke: ${x.onOk};
3329
3426
  }
3330
3427
  :host([state='unverified']) .label {
3331
3428
  color: ${t.text};
@@ -3352,7 +3449,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3352
3449
  stroke: #111111;
3353
3450
  }
3354
3451
  :host([size='marketing']) .label {
3355
- font-size: ${f.tiny};
3452
+ font-size: ${x.tiny};
3356
3453
  text-transform: uppercase;
3357
3454
  letter-spacing: 0.06em;
3358
3455
  }
@@ -3368,18 +3465,18 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3368
3465
  stroke: CanvasText;
3369
3466
  }
3370
3467
  }
3371
- `]}render(){let e=this.state!=="unverified",i=e?o`<svg class="mark" part="mark" viewBox="0 0 14 14" aria-hidden="true" focusable="false">
3468
+ `]}render(){let e=this.state!=="unverified",i=e?n`<svg class="mark" part="mark" viewBox="0 0 14 14" aria-hidden="true" focusable="false">
3372
3469
  <rect class="box" width="14" height="14"></rect>
3373
3470
  <path class="tick" d="M3 7.5 6 10.5 11 3.5" fill="none" stroke-width="1.5"></path>
3374
- </svg>`:o`<svg class="mark" part="mark" viewBox="0 0 14 14" aria-hidden="true" focusable="false">
3471
+ </svg>`:n`<svg class="mark" part="mark" viewBox="0 0 14 14" aria-hidden="true" focusable="false">
3375
3472
  <rect class="box" x="0.5" y="0.5" width="13" height="13" stroke-width="1"></rect>
3376
3473
  <path class="tick" d="M3.5 3.5 10.5 10.5M10.5 3.5 3.5 10.5" fill="none" stroke-width="1.5"></path>
3377
- </svg>`,r=this.label||(e?this.verifiedText:this.unverifiedText);return o`<span class="label" part="label">${i}<span class="text"><slot>${r}</slot></span></span>`}};customElements.define("impakt-checked",qt);var Br=["trigger","chevron","panel","header","list","group","group-label","item","current","label","meta"],Xi=n=>Br.map(e=>`${e}: ${n}-${e}`).join(", "),Nr=Xi("switcher"),Pr=Xi("organisation"),Dt=class extends h{static{this.properties={tool:{type:String},home:{type:String},brand:{type:String},links:{type:Array},pagesLabel:{type:String,attribute:"pages-label"},switcher:{type:Array},switcherLabel:{type:String,attribute:"switcher-label"},toolsHref:{type:String,attribute:"tools-href"},organisation:{type:String},organisationItems:{type:Array,attribute:"organisation-items"},organisationHref:{type:String,attribute:"organisation-href"},signedOut:{type:Boolean,reflect:!0,attribute:"signed-out"},signInHref:{type:String,attribute:"sign-in-href"},signInText:{type:String,attribute:"sign-in-text"}}}constructor(){super(),this.tool="",this.home="/",this.brand="impakt",this.links=[],this.pagesLabel="Tool pages",this.switcher=[],this.switcherLabel="All tools",this.toolsHref="",this.organisation="Your organisation",this.organisationItems=[],this.organisationHref="",this.signedOut=!1,this.signInHref="/sign-in",this.signInText="Sign in"}static{this.styles=[...h.styles,v,C(".home, .pages a, .sign-in, a.org, .all"),u`
3474
+ </svg>`,r=this.label||(e?this.verifiedText:this.unverifiedText);return n`<span class="label" part="label">${i}<span class="text"><slot>${r}</slot></span></span>`}};customElements.define("impakt-checked",Kt);var ua=["trigger","chevron","panel","header","list","group","group-label","item","current","label","meta"],br=o=>ua.map(e=>`${e}: ${o}-${e}`).join(", "),ma=br("switcher"),ga=br("organisation"),Xt=class extends h{static{this.properties={tool:{type:String},home:{type:String},brand:{type:String},links:{type:Array},pagesLabel:{type:String,attribute:"pages-label"},switcher:{type:Array},switcherLabel:{type:String,attribute:"switcher-label"},toolsHref:{type:String,attribute:"tools-href"},organisation:{type:String},organisationItems:{type:Array,attribute:"organisation-items"},organisationHref:{type:String,attribute:"organisation-href"},signedOut:{type:Boolean,reflect:!0,attribute:"signed-out"},signInHref:{type:String,attribute:"sign-in-href"},signInText:{type:String,attribute:"sign-in-text"}}}constructor(){super(),this.tool="",this.home="/",this.brand="impakt",this.links=[],this.pagesLabel="Tool pages",this.switcher=[],this.switcherLabel="All tools",this.toolsHref="",this.organisation="Your organisation",this.organisationItems=[],this.organisationHref="",this.signedOut=!1,this.signInHref="/sign-in",this.signInText="Sign in"}static{this.styles=[...h.styles,v,I(".home, .pages a, .sign-in, a.org, .all"),u`
3378
3475
  :host {
3379
3476
  display: block;
3380
3477
  container-type: inline-size;
3381
3478
  font-family: ${t.fontBody};
3382
- font-size: ${f.small};
3479
+ font-size: ${x.small};
3383
3480
  }
3384
3481
  .bar {
3385
3482
  display: grid;
@@ -3391,7 +3488,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3391
3488
  padding: ${a(2)} ${a(4)};
3392
3489
  color: ${t.text};
3393
3490
  background: ${t.surfaceCard};
3394
- border-block-end: 1px solid ${d("color.line.grid","light-dark(#DCDCD8, #1F1F1F)")};
3491
+ border-block-end: 1px solid ${l("color.line.grid","light-dark(#DCDCD8, #1F1F1F)")};
3395
3492
  }
3396
3493
  .start {
3397
3494
  grid-area: start;
@@ -3418,9 +3515,9 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3418
3515
  flex: none;
3419
3516
  inline-size: 28px;
3420
3517
  block-size: 28px;
3421
- font-weight: ${f.medium};
3422
- color: ${f.onInverse};
3423
- background: ${f.inverse};
3518
+ font-weight: ${x.medium};
3519
+ color: ${x.onInverse};
3520
+ background: ${x.inverse};
3424
3521
  }
3425
3522
  .sep {
3426
3523
  color: ${t.textMuted};
@@ -3444,7 +3541,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3444
3541
  padding: 3px;
3445
3542
  list-style: none;
3446
3543
  background: ${t.surfaceSubtle};
3447
- border: 1px solid ${f.lineSoft};
3544
+ border: 1px solid ${x.lineSoft};
3448
3545
  }
3449
3546
  .pages a {
3450
3547
  display: inline-flex;
@@ -3452,7 +3549,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3452
3549
  gap: ${a(1.5)};
3453
3550
  min-block-size: 28px;
3454
3551
  padding: 0 ${a(2.5)};
3455
- font-weight: ${f.regular};
3552
+ font-weight: ${x.regular};
3456
3553
  color: ${t.textMuted};
3457
3554
  text-decoration: none;
3458
3555
  white-space: nowrap;
@@ -3464,7 +3561,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3464
3561
  .pages a[aria-current='page'] {
3465
3562
  color: ${t.text};
3466
3563
  background: ${t.surfaceCard};
3467
- border-color: ${f.lineSoft};
3564
+ border-color: ${x.lineSoft};
3468
3565
  }
3469
3566
  .dot {
3470
3567
  inline-size: 5px;
@@ -3495,8 +3592,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3495
3592
  impakt-menu.switcher::part(trigger) {
3496
3593
  padding: ${a(1)} ${a(1)};
3497
3594
  font-family: ${t.fontBody};
3498
- font-size: ${f.small};
3499
- font-weight: ${f.regular};
3595
+ font-size: ${x.small};
3596
+ font-weight: ${x.regular};
3500
3597
  color: ${t.textMuted};
3501
3598
  background: transparent;
3502
3599
  border: 0;
@@ -3523,8 +3620,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3523
3620
  gap: ${a(2)};
3524
3621
  padding: 9px 14px;
3525
3622
  font-family: ${t.fontBody};
3526
- font-size: ${f.small};
3527
- font-weight: ${f.medium};
3623
+ font-size: ${x.small};
3624
+ font-weight: ${x.medium};
3528
3625
  color: ${t.text};
3529
3626
  background: ${t.surfaceCard};
3530
3627
  border: 1px solid ${t.text};
@@ -3543,6 +3640,15 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3543
3640
  grid-template-areas: 'start end' 'pages pages';
3544
3641
  padding-block: ${a(2)};
3545
3642
  }
3643
+ /* On its own row the track wraps rather than scrolls, so no page is cut off at the edge (#64). */
3644
+ .pages {
3645
+ overflow: visible;
3646
+ }
3647
+ .pages ul {
3648
+ flex-wrap: wrap;
3649
+ inline-size: fit-content;
3650
+ max-inline-size: 100%;
3651
+ }
3546
3652
  }
3547
3653
  @container (max-width: 30rem) {
3548
3654
  .bar {
@@ -3562,18 +3668,18 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3562
3668
  border: 1px solid CanvasText;
3563
3669
  }
3564
3670
  }
3565
- `]}renderPages(){return this.links.length?o`<nav class="pages" part="pages" aria-label=${this.pagesLabel}>
3671
+ `]}renderPages(){return this.links.length?n`<nav class="pages" part="pages" aria-label=${this.pagesLabel}>
3566
3672
  <ul>
3567
- ${this.links.map(e=>o`<li>
3568
- <a href=${e.href} aria-current=${e.current?"page":l}
3569
- >${e.current?o`<span class="dot" aria-hidden="true"></span>`:l}${e.label}</a
3673
+ ${this.links.map(e=>n`<li>
3674
+ <a href=${e.href} aria-current=${e.current?"page":d}
3675
+ >${e.current?n`<span class="dot" aria-hidden="true"></span>`:d}${e.label}</a
3570
3676
  >
3571
3677
  </li>`)}
3572
3678
  </ul>
3573
- </nav>`:l}renderSwitcher(){return this.switcher.length?o`<impakt-menu class="switcher" exportparts=${Nr} edge="end" trigger-look="text" .label=${this.switcherLabel} .items=${this.switcher}></impakt-menu>`:this.toolsHref?o`<a class="all" href=${this.toolsHref}>${this.switcherLabel}</a>`:l}renderAccount(){return this.signedOut?o`<a class="sign-in" part="sign-in" href=${this.signInHref}>${this.signInText}</a>`:this.organisationItems.length?o`<impakt-menu class="org" exportparts=${Pr} edge="end" trigger-look="text" .label=${this.organisation} .items=${this.organisationItems}></impakt-menu>`:this.organisationHref?o`<a class="org" href=${this.organisationHref}>${this.organisation}</a>`:l}render(){return o`<header class="bar" part="bar">
3679
+ </nav>`:d}renderSwitcher(){return this.switcher.length?n`<impakt-menu class="switcher" exportparts=${ma} edge="end" trigger-look="text" .label=${this.switcherLabel} .items=${this.switcher}></impakt-menu>`:this.toolsHref?n`<a class="all" href=${this.toolsHref}>${this.switcherLabel}</a>`:d}renderAccount(){return this.signedOut?n`<a class="sign-in" part="sign-in" href=${this.signInHref}>${this.signInText}</a>`:this.organisationItems.length?n`<impakt-menu class="org" exportparts=${ga} edge="end" trigger-look="text" .label=${this.organisation} .items=${this.organisationItems}></impakt-menu>`:this.organisationHref?n`<a class="org" href=${this.organisationHref}>${this.organisation}</a>`:d}render(){return n`<header class="bar" part="bar">
3574
3680
  <div class="start">
3575
3681
  <a class="home" part="home" href=${this.home}><span class="mark" aria-hidden="true">i</span><span class="word">${this.brand}</span></a>
3576
- ${this.tool?o`<span class="sep" aria-hidden="true">/</span><span class="tool">${this.tool}</span>`:l}
3682
+ ${this.tool?n`<span class="sep" aria-hidden="true">/</span><span class="tool">${this.tool}</span>`:d}
3577
3683
  </div>
3578
3684
  ${this.renderPages()}
3579
3685
  <div class="end">
@@ -3581,7 +3687,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3581
3687
  <slot name="tools">${this.renderSwitcher()}</slot>
3582
3688
  ${this.renderAccount()}
3583
3689
  </div>
3584
- </header>`}};customElements.define("impakt-app-bar",Dt);var Or=[{lang:"en",label:"EN",name:"English",href:"?lang=en"},{lang:"el",label:"EL",name:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",href:"?lang=el"},{lang:"ru",label:"RU",name:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",href:"?lang=ru"}],Ft=class extends h{static{this.properties={items:{type:Array},current:{type:String,reflect:!0},label:{type:String}}}constructor(){super(),this.items=Or,this.current="en",this.label="Language"}static{this.styles=[...h.styles,v,C("a"),u`
3690
+ </header>`}};customElements.define("impakt-app-bar",Xt);var ba=[{lang:"en",label:"EN",name:"English",href:"?lang=en"},{lang:"el",label:"EL",name:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",href:"?lang=el"},{lang:"ru",label:"RU",name:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",href:"?lang=ru"}],Yt=class extends h{static{this.properties={items:{type:Array},current:{type:String,reflect:!0},label:{type:String}}}constructor(){super(),this.items=ba,this.current="en",this.label="Language"}static{this.styles=[...h.styles,v,I("a"),u`
3585
3691
  :host {
3586
3692
  display: inline-flex;
3587
3693
  }
@@ -3602,8 +3708,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3602
3708
  min-block-size: 34px;
3603
3709
  padding: 0 ${a(3)};
3604
3710
  font-family: ${t.fontBody};
3605
- font-size: ${f.small};
3606
- font-weight: ${f.medium};
3711
+ font-size: ${x.small};
3712
+ font-weight: ${x.medium};
3607
3713
  color: ${t.text};
3608
3714
  background: ${t.surfaceCard};
3609
3715
  border: 1px solid ${t.text};
@@ -3614,8 +3720,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3614
3720
  background: ${t.surfaceSubtle};
3615
3721
  }
3616
3722
  a[aria-current='true'] {
3617
- color: ${f.onInverse};
3618
- background: ${f.inverse};
3723
+ color: ${x.onInverse};
3724
+ background: ${x.inverse};
3619
3725
  }
3620
3726
  .visually-hidden {
3621
3727
  ${T}
@@ -3628,26 +3734,26 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3628
3734
  border-width: 3px;
3629
3735
  }
3630
3736
  }
3631
- `]}render(){return o`<nav part="nav" aria-label=${this.label}>
3737
+ `]}render(){return n`<nav part="nav" aria-label=${this.label}>
3632
3738
  <ul>
3633
- ${this.items.map(e=>o`<li>
3739
+ ${this.items.map(e=>n`<li>
3634
3740
  <a
3635
3741
  part="link"
3636
3742
  href=${e.href}
3637
3743
  hreflang=${e.lang}
3638
3744
  lang=${e.lang}
3639
- aria-current=${e.lang===this.current?"true":l}
3640
- >${e.label}${e.name?o`<span class="visually-hidden"> ${e.name}</span>`:l}</a
3745
+ aria-current=${e.lang===this.current?"true":d}
3746
+ >${e.label}${e.name?n`<span class="visually-hidden"> ${e.name}</span>`:d}</a
3641
3747
  >
3642
3748
  </li>`)}
3643
3749
  </ul>
3644
- </nav>`}};customElements.define("impakt-language-switch",Ft);var mi=(n,e,i)=>Math.min(i,Math.max(e,n)),Yi=(n,e,i)=>i>e?(mi(n,e,i)-e)/(i-e)*100:0,Ji=u`
3750
+ </nav>`}};customElements.define("impakt-language-switch",Yt);var Li=(o,e,i)=>Math.min(i,Math.max(e,o)),fr=(o,e,i)=>i>e?(Li(o,e,i)-e)/(i-e)*100:0,$r=u`
3645
3751
  .track {
3646
3752
  position: relative;
3647
3753
  display: block;
3648
3754
  block-size: 8px;
3649
3755
  min-inline-size: 4rem;
3650
- background: ${f.lineSoft};
3756
+ background: ${x.lineSoft};
3651
3757
  border-radius: 0;
3652
3758
  overflow: hidden;
3653
3759
  }
@@ -3658,7 +3764,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3658
3764
  }
3659
3765
  .figure {
3660
3766
  font-family: ${t.fontMono};
3661
- font-size: ${f.small};
3767
+ font-size: ${x.small};
3662
3768
  font-variant-numeric: tabular-nums;
3663
3769
  color: ${t.text};
3664
3770
  }
@@ -3671,7 +3777,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3671
3777
  forced-color-adjust: none;
3672
3778
  }
3673
3779
  }
3674
- `,jt=class extends h{static{this.properties={label:{type:String},value:{type:Number},min:{type:Number},max:{type:Number},valueText:{type:String,attribute:"value-text"},showValue:{type:Boolean,attribute:"show-value",reflect:!0}}}constructor(){super(),this.label="",this.value=0,this.min=0,this.max=100,this.valueText="",this.showValue=!1}static{this.styles=[...h.styles,Ji,u`
3780
+ `,Jt=class extends h{static{this.properties={label:{type:String},value:{type:Number},min:{type:Number},max:{type:Number},valueText:{type:String,attribute:"value-text"},showValue:{type:Boolean,attribute:"show-value",reflect:!0}}}constructor(){super(),this.label="",this.value=0,this.min=0,this.max=100,this.valueText="",this.showValue=!1}static{this.styles=[...h.styles,$r,u`
3675
3781
  :host {
3676
3782
  display: block;
3677
3783
  }
@@ -3681,23 +3787,23 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3681
3787
  justify-content: space-between;
3682
3788
  gap: ${a(1)} ${a(3)};
3683
3789
  margin-block-end: ${a(2)};
3684
- font-size: ${f.small};
3790
+ font-size: ${x.small};
3685
3791
  }
3686
3792
  .head:empty {
3687
3793
  display: none;
3688
3794
  }
3689
- `]}render(){let e=mi(this.value,this.min,this.max);return o`<div class="head">${this.label?o`<span class="label" id=${this.id_("label")}>${this.label}</span>`:l}${this.showValue?o`<span class="figure" aria-hidden="true">${this.valueText||e}</span>`:l}</div><span
3795
+ `]}render(){let e=Li(this.value,this.min,this.max);return n`<div class="head">${this.label?n`<span class="label" id=${this.id_("label")}>${this.label}</span>`:d}${this.showValue?n`<span class="figure" aria-hidden="true">${this.valueText||e}</span>`:d}</div><span
3690
3796
  class="track"
3691
3797
  part="track"
3692
3798
  role="meter"
3693
- aria-labelledby=${this.label?this.id_("label"):l}
3694
- aria-label=${this.label?l:S("Meter")}
3799
+ aria-labelledby=${this.label?this.id_("label"):d}
3800
+ aria-label=${this.label?d:S("Meter")}
3695
3801
  aria-valuemin=${this.min}
3696
3802
  aria-valuemax=${this.max}
3697
3803
  aria-valuenow=${e}
3698
- aria-valuetext=${this.valueText||l}
3699
- ><span class="fill" part="fill" style=${`inline-size:${Yi(e,this.min,this.max)}%`}></span
3700
- ></span>`}},Ut=class extends h{static{this.properties={label:{type:String},items:{type:Array},max:{type:Number}}}constructor(){super(),this.label="Scores",this.items=[],this.max=100}static{this.styles=[...h.styles,Ji,u`
3804
+ aria-valuetext=${this.valueText||d}
3805
+ ><span class="fill" part="fill" style=${`inline-size:${fr(e,this.min,this.max)}%`}></span
3806
+ ></span>`}},Zt=class extends h{static{this.properties={label:{type:String},items:{type:Array},max:{type:Number}}}constructor(){super(),this.label="Scores",this.items=[],this.max=100}static{this.styles=[...h.styles,$r,u`
3701
3807
  :host {
3702
3808
  display: block;
3703
3809
  container-type: inline-size;
@@ -3713,7 +3819,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3713
3819
  align-items: center;
3714
3820
  gap: ${a(2)} ${a(4)};
3715
3821
  padding-block: ${a(3)};
3716
- font-size: ${f.small};
3822
+ font-size: ${x.small};
3717
3823
  }
3718
3824
  .figure {
3719
3825
  text-align: end;
@@ -3729,30 +3835,30 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3729
3835
  grid-column: 1 / -1;
3730
3836
  }
3731
3837
  }
3732
- `]}render(){return o`<ul part="list" role="list" aria-label=${this.label}>
3733
- ${this.items.map((e,i)=>{let r=e.max??this.max,s=mi(e.value,0,r),c=this.id_(`score-${i}`);return o`<li part="row">
3838
+ `]}render(){return n`<ul part="list" role="list" aria-label=${this.label}>
3839
+ ${this.items.map((e,i)=>{let r=e.max??this.max,s=Li(e.value,0,r),c=this.id_(`score-${i}`);return n`<li part="row">
3734
3840
  <span class="name" id=${c}>${e.label}</span>
3735
3841
  <span class="track" part="track" role="meter" aria-labelledby=${c} aria-valuemin="0" aria-valuemax=${r} aria-valuenow=${s}
3736
- ><span class="fill" part="fill" style=${`inline-size:${Yi(s,0,r)}%`}></span
3842
+ ><span class="fill" part="fill" style=${`inline-size:${fr(s,0,r)}%`}></span
3737
3843
  ></span>
3738
3844
  <span class="figure" aria-hidden="true">${s}</span>
3739
- <span class="pill">${e.status?o`<impakt-status tone=${e.tone??"warn"}>${e.status}</impakt-status>`:l}</span>
3845
+ <span class="pill">${e.status?n`<impakt-status tone=${e.tone??"warn"}>${e.status}</impakt-status>`:d}</span>
3740
3846
  </li>`})}
3741
- </ul>`}};customElements.define("impakt-meter",jt);customElements.define("impakt-score-bars",Ut);var Wt=class extends h{static{this.properties={removed:{type:String},added:{type:String},lines:{type:Array},label:{type:String},removedText:{type:String,attribute:"removed-text"},addedText:{type:String,attribute:"added-text"}}}constructor(){super(),this.removed="",this.added="",this.lines=[],this.label="Code change",this.removedText="Removed",this.addedText="Added"}static{this.styles=[...h.styles,v,u`
3847
+ </ul>`}};customElements.define("impakt-meter",Jt);customElements.define("impakt-score-bars",Zt);var Qt=class extends h{static{this.properties={removed:{type:String},added:{type:String},lines:{type:Array},label:{type:String},removedText:{type:String,attribute:"removed-text"},addedText:{type:String,attribute:"added-text"}}}constructor(){super(),this.removed="",this.added="",this.lines=[],this.label="Code change",this.removedText="Removed",this.addedText="Added"}static{this.styles=[...h.styles,v,u`
3742
3848
  :host {
3743
3849
  display: block;
3744
3850
  }
3745
3851
  .block {
3746
3852
  overflow-x: auto;
3747
3853
  padding: ${a(4)} ${a(4)};
3748
- color: ${f.codeText};
3749
- background: ${f.codeSurface};
3854
+ color: ${x.codeText};
3855
+ background: ${x.codeSurface};
3750
3856
  border-radius: 0;
3751
3857
  }
3752
3858
  pre {
3753
3859
  margin: 0;
3754
3860
  font-family: ${t.fontMono};
3755
- font-size: ${f.small};
3861
+ font-size: ${x.small};
3756
3862
  line-height: 1.6;
3757
3863
  }
3758
3864
  code {
@@ -3768,10 +3874,10 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3768
3874
  inline-size: 2ch;
3769
3875
  }
3770
3876
  .removed {
3771
- color: ${f.codeMuted};
3877
+ color: ${x.codeMuted};
3772
3878
  }
3773
3879
  .added {
3774
- color: ${f.codeText};
3880
+ color: ${x.codeText};
3775
3881
  }
3776
3882
  .visually-hidden {
3777
3883
  ${T}
@@ -3782,7 +3888,9 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3782
3888
  }
3783
3889
  }
3784
3890
  `]}get allLines(){if(this.lines.length)return this.lines;let e=(i,r)=>i?i.split(`
3785
- `).map(s=>({kind:r,text:s})):[];return[...e(this.removed,"removed"),...e(this.added,"added")]}render(){let e={removed:"\u2212",added:"+",context:" "},i={removed:this.removedText,added:this.addedText,context:""};return o`<div class="block" part="block" role="region" aria-label=${this.label} tabindex="0"><pre part="code"><code>${this.allLines.map(r=>o`<span class="line ${r.kind}"><span class="sign" aria-hidden="true">${e[r.kind]}</span>${i[r.kind]?o`<span class="visually-hidden">${i[r.kind]}: </span>`:l}${r.text}</span>`)}</code></pre></div>`}};customElements.define("impakt-code-diff",Wt);var Vt=class extends x{static{this.properties={...x.properties,options:{type:Array},values:{type:Array},multiple:{type:Boolean,reflect:!0},look:{type:String,reflect:!0},missingText:{type:String,attribute:"missing-text"}}}constructor(){super(),this.options=[],this.values=[],this.multiple=!1,this.look="default",this.missingText="Choose an option"}static{this.styles=[...x.styles,u`
3891
+ `).map(s=>({kind:r,text:s})):[];return[...e(this.removed,"removed"),...e(this.added,"added")]}render(){let e={removed:"\u2212",added:"+",context:" "},i={removed:this.removedText,added:this.addedText,context:""};return n`<div class="block" part="block" role="region" aria-label=${this.label} tabindex="0"><pre part="code"><code>${this.allLines.map(r=>n`<span class="line ${r.kind}"><span class="sign" aria-hidden="true">${e[r.kind]}</span>${i[r.kind]?n`<span class="visually-hidden">${i[r.kind]}: </span>`:d}${r.text}</span>`)}</code></pre></div>`}};customElements.define("impakt-code-diff",Qt);var ei=class extends y{static{this.properties={...y.properties,options:{type:Array},values:{type:Array},multiple:{type:Boolean,reflect:!0},look:{type:String,reflect:!0},missingText:{type:String,attribute:"missing-text"}}}constructor(){super(),this.options=[],this.values=[],this.multiple=!1,this.look="default",this.missingText="Choose an option"}static{this.styles=[...y.styles,ki,u`
3892
+ /* Given \`data-reveal\`, the chips drop 12px into place one after another, once, as the group is reached (impkt-web#51). */
3893
+ :host([data-motion]) .chip { animation: ik-reveal-drop ${q.drop} ${q.arrive} ${yi()} both; }
3786
3894
  fieldset {
3787
3895
  border: 0;
3788
3896
  margin: 0;
@@ -3794,8 +3902,9 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3794
3902
  }
3795
3903
  :host([look='site']) legend {
3796
3904
  font-family: ${t.fontMono};
3797
- font-size: ${f.tiny};
3798
- font-weight: ${f.medium};
3905
+ /* G2 Mono S is 11px (20:1100); the ramp's 2xs is 12px, so the size is set here, as the text fields' site label is. */
3906
+ font-size: 0.6875rem;
3907
+ font-weight: ${x.medium};
3799
3908
  text-transform: uppercase;
3800
3909
  letter-spacing: 0.06em;
3801
3910
  margin-block-end: ${a(2)};
@@ -3803,7 +3912,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3803
3912
  .chips {
3804
3913
  display: flex;
3805
3914
  flex-wrap: wrap;
3806
- gap: ${a(1.5)};
3915
+ gap: var(--impakt-chip-group-gap, ${a(1.5)});
3807
3916
  }
3808
3917
  .chip {
3809
3918
  position: relative;
@@ -3812,13 +3921,17 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3812
3921
  min-block-size: 35px;
3813
3922
  padding: 0 ${a(3)};
3814
3923
  font-family: ${t.fontBody};
3815
- font-size: ${f.small};
3924
+ font-size: ${x.small};
3816
3925
  color: ${t.text};
3817
3926
  background: ${t.surfaceCard};
3818
3927
  border: 1px solid ${t.text};
3819
3928
  border-radius: 0;
3820
3929
  cursor: pointer;
3821
3930
  }
3931
+ /* The site's chips (10:547, 15:945) are 8 by 14 inside: "Mobile app" is 100px wide. */
3932
+ :host([look='site']) .chip {
3933
+ padding-inline: 14px;
3934
+ }
3822
3935
  .chip input {
3823
3936
  position: absolute;
3824
3937
  inset: 0;
@@ -3832,8 +3945,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3832
3945
  background: ${t.surfaceSubtle};
3833
3946
  }
3834
3947
  .chip.on {
3835
- color: ${f.onInverse};
3836
- background: ${f.inverse};
3948
+ color: ${x.onInverse};
3949
+ background: ${x.inverse};
3837
3950
  }
3838
3951
  .chip:has(input:focus-visible) {
3839
3952
  outline: 2px solid transparent;
@@ -3866,10 +3979,10 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3866
3979
  outline-color: Highlight;
3867
3980
  }
3868
3981
  }
3869
- `]}renderLabel(){return o`<legend class="label" part="label">
3870
- ${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
3871
- </legend>`}chosen(e){return this.multiple?this.values.includes(e):this.value===e}choose(e,i){if(this.multiple){let r=i?[...this.values,e]:this.values.filter(s=>s!==e);this.values=this.options.filter(s=>r.includes(s.value)).map(s=>s.value),this.setFormValue(this.values.join(","))}else this.setFormValue(e);this.syncValidity()}syncValidity(){let e=this.multiple?this.values.length===0:!this.value;try{if(this.required&&e){let i=this.renderRoot?.querySelector?.("input")??void 0;this.internals?.setValidity({valueMissing:!0},this.missingText,i)}else this.internals?.setValidity({})}catch{}}renderControl(){let e=this.multiple?"checkbox":"radio";return o`<div class="chips">
3872
- ${this.options.map((i,r)=>{let s=this.chosen(i.value);return o`<label class="chip ${s?"on":""}" part="chip">
3982
+ `]}renderLabel(){return n`<legend class="label" part="label">
3983
+ ${this.label}${this.required?n`<span class="required"> (${this.requiredText})</span>`:d}
3984
+ </legend>`}chosen(e){return this.multiple?this.values.includes(e):this.value===e}choose(e,i){if(this.multiple){let r=i?[...this.values,e]:this.values.filter(s=>s!==e);this.values=this.options.filter(s=>r.includes(s.value)).map(s=>s.value),this.setFormValue(this.values.join(","))}else this.setFormValue(e);this.syncValidity()}syncValidity(){let e=this.multiple?this.values.length===0:!this.value;try{if(this.required&&e){let i=this.renderRoot?.querySelector?.("input")??void 0;this.internals?.setValidity({valueMissing:!0},this.missingText,i)}else this.internals?.setValidity({})}catch{}}renderControl(){let e=this.multiple?"checkbox":"radio";return n`<div class="chips">
3985
+ ${this.options.map((i,r)=>{let s=this.chosen(i.value);return n`<label class="chip ${s?"on":""}" part="chip" style=${`--i:${r}`}>
3873
3986
  <input
3874
3987
  type=${e}
3875
3988
  id=${r===0?this.controlId:this.id_(`opt-${r}`)}
@@ -3881,14 +3994,14 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3881
3994
  @change=${c=>this.choose(i.value,c.target.checked)}
3882
3995
  /><span>${i.label}</span>
3883
3996
  </label>`})}
3884
- </div>`}render(){return o`
3885
- <fieldset part="fieldset" aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}>
3997
+ </div>`}render(){return n`
3998
+ <fieldset part="fieldset" aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":d}>
3886
3999
  ${this.renderLabel()}
3887
- ${this.description?o`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
4000
+ ${this.description?n`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:d}
3888
4001
  ${this.renderControl()}
3889
- <div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
4002
+ <div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||d}</div>
3890
4003
  </fieldset>
3891
- `}firstUpdated(){let e=this.multiple?this.values.join(","):this.value;this.internals?.setFormValue(e||null),this.syncValidity()}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error),(e.has("required")||e.has("multiple"))&&this.syncValidity()}formResetCallback(){this.value="",this.values=[],this.internals?.setFormValue(null),this.syncValidity()}};customElements.define("impakt-chip-group",Vt);var Gt=class extends h{static{this.properties={label:{type:String},look:{type:String,reflect:!0},redactedText:{type:String,attribute:"redacted-text"}}}constructor(){super(),this.label="",this.look="solid",this.redactedText="Redacted"}static{this.styles=[...h.styles,u`
4004
+ `}firstUpdated(){let e=this.multiple?this.values.join(","):this.value;this.internals?.setFormValue(e||null),this.syncValidity()}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error),(e.has("required")||e.has("multiple"))&&this.syncValidity()}formResetCallback(){this.value="",this.values=[],this.internals?.setFormValue(null),this.syncValidity()}};customElements.define("impakt-chip-group",ei);var ti=class extends h{static{this.properties={label:{type:String},look:{type:String,reflect:!0},redactedText:{type:String,attribute:"redacted-text"}}}constructor(){super(),this.label="",this.look="solid",this.redactedText="Redacted"}static{this.styles=[...h.styles,u`
3892
4005
  :host {
3893
4006
  display: inline;
3894
4007
  }
@@ -3897,13 +4010,13 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3897
4010
  display: inline-block;
3898
4011
  padding: 1px 8px;
3899
4012
  font-family: ${t.fontMono};
3900
- font-size: ${f.small};
3901
- font-weight: ${f.medium};
4013
+ font-size: ${x.small};
4014
+ font-weight: ${x.medium};
3902
4015
  line-height: 1.4;
3903
4016
  white-space: nowrap;
3904
- color: ${f.onInverse};
3905
- background: ${f.inverse};
3906
- border: 1px solid ${f.inverse};
4017
+ color: ${x.onInverse};
4018
+ background: ${x.inverse};
4019
+ border: 1px solid ${x.inverse};
3907
4020
  border-radius: 0;
3908
4021
  user-select: none;
3909
4022
  }
@@ -3920,7 +4033,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3920
4033
  border-color: CanvasText;
3921
4034
  }
3922
4035
  }
3923
- `]}render(){return o`<span class="tag" part="tag"><span class="visually-hidden">${this.redactedText}: </span>${this.label}</span>`}};customElements.define("impakt-redaction",Gt);var Kt=class extends h{static{this.properties={name:{type:String},description:{type:String},status:{type:String},statusTone:{type:String,attribute:"status-tone"},note:{type:String},href:{type:String},actionLabel:{type:String,attribute:"action-label"},owned:{type:Boolean,reflect:!0},state:{type:String,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},comingSoonText:{type:String,attribute:"coming-soon-text"},notOpenText:{type:String,attribute:"not-open-text"}}}constructor(){super(),this.name="",this.description="",this.status="",this.statusTone="ok",this.note="",this.href="",this.actionLabel="",this.owned=!1,this.state="open",this.headingLevel=3,this.comingSoonText="Coming soon",this.notOpenText="Not open yet."}static{this.styles=[...h.styles,v,u`
4036
+ `]}render(){return n`<span class="tag" part="tag"><span class="visually-hidden">${this.redactedText}: </span>${this.label}</span>`}};customElements.define("impakt-redaction",ti);var ii=class extends h{static{this.properties={name:{type:String},description:{type:String},status:{type:String},statusTone:{type:String,attribute:"status-tone"},note:{type:String},href:{type:String},actionLabel:{type:String,attribute:"action-label"},owned:{type:Boolean,reflect:!0},state:{type:String,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},comingSoonText:{type:String,attribute:"coming-soon-text"},notOpenText:{type:String,attribute:"not-open-text"}}}constructor(){super(),this.name="",this.description="",this.status="",this.statusTone="ok",this.note="",this.href="",this.actionLabel="",this.owned=!1,this.state="open",this.headingLevel=3,this.comingSoonText="Coming soon",this.notOpenText="Not open yet."}static{this.styles=[...h.styles,v,u`
3924
4037
  :host {
3925
4038
  display: block;
3926
4039
  }
@@ -3941,7 +4054,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3941
4054
  margin: 0;
3942
4055
  font-family: ${t.fontHeading};
3943
4056
  font-size: 2rem;
3944
- font-weight: ${f.medium};
4057
+ font-weight: ${x.medium};
3945
4058
  line-height: 1.1;
3946
4059
  letter-spacing: ${t.trackingTight};
3947
4060
  color: ${t.text};
@@ -3962,12 +4075,12 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3962
4075
  }
3963
4076
  .note {
3964
4077
  font-family: ${t.fontMono};
3965
- font-size: ${f.small};
4078
+ font-size: ${x.small};
3966
4079
  color: ${t.textMuted};
3967
4080
  }
3968
4081
  .muted {
3969
4082
  margin: 0;
3970
- font-size: ${f.small};
4083
+ font-size: ${x.small};
3971
4084
  color: ${t.textMuted};
3972
4085
  }
3973
4086
  .action {
@@ -3979,7 +4092,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3979
4092
  margin-block-start: auto;
3980
4093
  padding: ${a(2.5)} ${a(5)};
3981
4094
  font-family: ${t.fontBody};
3982
- font-size: ${d("font.size.md","1rem")};
4095
+ font-size: ${l("font.size.md","1rem")};
3983
4096
  color: ${t.text};
3984
4097
  background: ${t.surfaceCard};
3985
4098
  border: 1px solid ${t.text};
@@ -3990,11 +4103,11 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
3990
4103
  background: ${t.surfaceSubtle};
3991
4104
  }
3992
4105
  :host([owned]) .action {
3993
- color: ${f.onInverse};
3994
- background: ${f.inverse};
4106
+ color: ${x.onInverse};
4107
+ background: ${x.inverse};
3995
4108
  }
3996
4109
  :host([owned]) .action:hover {
3997
- background: color-mix(in srgb, ${f.inverse} 88%, ${f.onInverse});
4110
+ background: color-mix(in srgb, ${x.inverse} 88%, ${x.onInverse});
3998
4111
  }
3999
4112
  .arrow {
4000
4113
  font-size: 1.25em;
@@ -4006,16 +4119,16 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
4006
4119
  border-color: CanvasText;
4007
4120
  }
4008
4121
  }
4009
- `]}renderStatus(){return this.state==="coming-soon"?o`<div class="status"><impakt-status tone="neutral">${this.comingSoonText}</impakt-status></div>
4010
- <p class="muted">${this.notOpenText}</p>`:!this.status&&!this.note?l:o`<div class="status">
4011
- ${this.status?o`<impakt-status tone=${this.statusTone}>${this.status}</impakt-status>`:l}
4012
- ${this.note?o`<span class="note">${this.note}</span>`:l}
4013
- </div>`}render(){let e=Math.min(6,Math.max(2,Number(this.headingLevel)||3)),i=this.actionLabel||`Open ${this.name}`;return o`<article class="card" part="card" aria-labelledby=${this.id_("name")}>
4122
+ `]}renderStatus(){return this.state==="coming-soon"?n`<div class="status"><impakt-status tone="neutral">${this.comingSoonText}</impakt-status></div>
4123
+ <p class="muted">${this.notOpenText}</p>`:!this.status&&!this.note?d:n`<div class="status">
4124
+ ${this.status?n`<impakt-status tone=${this.statusTone}>${this.status}</impakt-status>`:d}
4125
+ ${this.note?n`<span class="note">${this.note}</span>`:d}
4126
+ </div>`}render(){let e=Math.min(6,Math.max(2,Number(this.headingLevel)||3)),i=this.actionLabel||`Open ${this.name}`;return n`<article class="card" part="card" aria-labelledby=${this.id_("name")}>
4014
4127
  <div class="name" role="heading" aria-level=${e} id=${this.id_("name")}>${this.name}</div>
4015
- ${this.description?o`<p class="description">${this.description}</p>`:l}
4128
+ ${this.description?n`<p class="description">${this.description}</p>`:d}
4016
4129
  ${this.renderStatus()}
4017
- ${this.state!=="coming-soon"&&this.href?o`<a class="action" part="action" href=${this.href}><span>${i}</span><span class="arrow" aria-hidden="true">→</span></a>`:l}
4018
- </article>`}};customElements.define("impakt-tool-card",Kt);export{fe as CYCLE,x as FieldElement,si as ICONS,$r as ICON_NAMES,lt as ImpaktAccordion,K as ImpaktAddressLookup,Xe as ImpaktAlert,Dt as ImpaktAppBar,Oe as ImpaktAppShell,It as ImpaktAvatar,Rt as ImpaktAvatarGroup,pt as ImpaktBadge,vt as ImpaktBreadcrumbs,Re as ImpaktButton,Je as ImpaktCard,Be as ImpaktCheckbox,ut as ImpaktCheckboxGroup,qt as ImpaktChecked,ct as ImpaktChip,Vt as ImpaktChipGroup,Wt as ImpaktCodeDiff,mt as ImpaktDateInput,je as ImpaktDateTile,gt as ImpaktDialog,wt as ImpaktDivider,rt as ImpaktDocumentLink,Et as ImpaktDrawer,h as ImpaktElement,_t as ImpaktEmptyState,Bt as ImpaktErrorSummary,Mt as ImpaktFieldset,te as ImpaktFileUpload,We as ImpaktFilterChip,ft as ImpaktGrid,Ze as ImpaktHeading,$t as ImpaktHelp,Ie as ImpaktIcon,tt as ImpaktImage,Ft as ImpaktLanguageSwitch,et as ImpaktLink,bt as ImpaktList,it as ImpaktLogo,Ct as ImpaktMenu,jt as ImpaktMeter,ke as ImpaktMoneyInput,kt as ImpaktNav,xt as ImpaktPage,Lt as ImpaktPagination,at as ImpaktPrice,dt as ImpaktProgress,Ke as ImpaktRadioGroup,Nt as ImpaktRangeInput,Gt as ImpaktRedaction,Ue as ImpaktRow,Ut as ImpaktScoreBars,yt as ImpaktSection,Ge as ImpaktSegmentedControl,He as ImpaktSelect,Ne as ImpaktSideNav,Ht as ImpaktSlotPicker,Ot as ImpaktSource,St as ImpaktSpacer,Ye as ImpaktStack,Fe as ImpaktStatTile,qe as ImpaktStatus,ot as ImpaktSummaryList,Ve as ImpaktSwitch,Pe as ImpaktTabBar,st as ImpaktTable,zt as ImpaktTabs,Pt as ImpaktTaskList,Qe as ImpaktText,_e as ImpaktTextInput,ht as ImpaktTextarea,At as ImpaktToast,Kt as ImpaktToolCard,Tt as ImpaktVisuallyHidden,W as LitElement,be as TONE,me as announceNavigate,qi as base,u as css,D as fieldWidths,v as focusRing,b as fontSize,m as fontWeight,hi as groupDigits,Di as hideOn,o as html,M as iconSvg,li as isCurrent,O as lineHeight,ye as lockScroll,P as noChange,l as nothing,q as pageLocale,Oi as reducedMotion,ce as render,S as say,a as space,N as spaceAround,y as svg,t,z as targetSize,d as token,di as toneOf,C as touchTarget,w as type,ee as unlockScroll,L as unsafeCSS,T as visuallyHidden};
4130
+ ${this.state!=="coming-soon"&&this.href?n`<a class="action" part="action" href=${this.href}><span>${i}</span><span class="arrow" aria-hidden="true">→</span></a>`:d}
4131
+ </article>`}};customElements.define("impakt-tool-card",ii);typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Be(),{once:!0}):Be());export{Te as CYCLE,y as FieldElement,vi as ICONS,Kr as ICON_NAMES,bt as ImpaktAccordion,Z as ImpaktAddressLookup,rt as ImpaktAlert,Xt as ImpaktAppBar,Ge as ImpaktAppShell,Dt as ImpaktAvatar,qt as ImpaktAvatarGroup,xt as ImpaktBadge,Ct as ImpaktBreadcrumbs,qe as ImpaktButton,ot as ImpaktCard,We as ImpaktCheckbox,kt as ImpaktCheckboxGroup,Kt as ImpaktChecked,$t as ImpaktChip,ei as ImpaktChipGroup,Qt as ImpaktCodeDiff,vt as ImpaktDateInput,Je as ImpaktDateTile,wt as ImpaktDialog,Lt as ImpaktDivider,pt as ImpaktDocumentLink,Bt as ImpaktDrawer,h as ImpaktElement,Ft as ImpaktEmptyState,Wt as ImpaktErrorSummary,Ht as ImpaktFieldset,oe as ImpaktFileUpload,Qe as ImpaktFilterChip,Tt as ImpaktGrid,nt as ImpaktHeading,zt as ImpaktHelp,De as ImpaktIcon,dt as ImpaktImage,Yt as ImpaktLanguageSwitch,lt as ImpaktLink,St as ImpaktList,ct as ImpaktLogo,Pt as ImpaktMenu,Jt as ImpaktMeter,Ae as ImpaktMoneyInput,At as ImpaktNav,Et as ImpaktPage,Ot as ImpaktPagination,ht as ImpaktPrice,ft as ImpaktProgress,it as ImpaktRadioGroup,Ut as ImpaktRangeInput,ti as ImpaktRedaction,Ze as ImpaktRow,Zt as ImpaktScoreBars,Mt as ImpaktSection,tt as ImpaktSegmentedControl,je as ImpaktSelect,Ue as ImpaktSideNav,jt as ImpaktSlotPicker,Gt as ImpaktSource,Rt as ImpaktSpacer,at as ImpaktStack,Ye as ImpaktStatTile,Ke as ImpaktStatus,ut as ImpaktSummaryList,et as ImpaktSwitch,Ve as ImpaktTabBar,mt as ImpaktTable,_t as ImpaktTabs,Vt as ImpaktTaskList,st as ImpaktText,Fe as ImpaktTextInput,yt as ImpaktTextarea,Nt as ImpaktToast,ii as ImpaktToolCard,It as ImpaktVisuallyHidden,J as LitElement,q as R,pi as REVEAL_SELECTOR,de as REVEAL_STATE,Se as TONE,ve as announceNavigate,lr as base,u as css,K as fieldWidths,v as focusRing,$ as fontSize,b as fontWeight,Ai as groupDigits,dr as hideOn,n as html,M as iconSvg,Si as isCurrent,W as lineHeight,oa as linkCurrent,Me as lockScroll,j as noChange,d as nothing,U as pageLocale,sr as reducedMotion,fe as render,Br as replayReveal,ui as revealAllowed,yi as revealAt,Qi as revealMode,ki as revealStyles,mi as revealTargets,S as say,a as space,D as spaceAround,Be as startReveal,k as svg,t,E as targetSize,l as token,Ti as toneOf,I as touchTarget,w as type,ae as unlockScroll,R as unsafeCSS,T as visuallyHidden};
4019
4132
  /*! Bundled license information:
4020
4133
 
4021
4134
  lit-html/lit-html.js: