@cxl/build 1.0.0-beta.6 → 1.0.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/3doc.js CHANGED
@@ -1,9 +1,31 @@
1
- var li=Object.create;var wn=Object.defineProperty;var ui=Object.getOwnPropertyDescriptor;var pi=Object.getOwnPropertyNames;var fi=Object.getPrototypeOf,di=Object.prototype.hasOwnProperty;var mi=(e,t)=>()=>(e&&(t=e(e=0)),t);var hi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),gi=(e,t)=>{for(var n in t)wn(e,n,{get:t[n],enumerable:!0})},xi=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of pi(t))!di.call(e,o)&&o!==n&&wn(e,o,{get:()=>t[o],enumerable:!(r=ui(t,o))||r.enumerable});return e};var bi=(e,t,n)=>(n=e!=null?li(fi(e)):{},xi(t||!e||!e.__esModule?wn(n,"default",{value:e,enumerable:!0}):n,e));var Wr={};gi(Wr,{default:()=>Ki,theme:()=>Vr});var Zi,Vr,Ki,Yr=mi(()=>{"use strict";Zi={primary:"#8ECFF2","on-primary":"#003548","primary-container":"#004D67","on-primary-container":"#C1E8FF",secondary:"#B5C9D7","on-secondary":"#1F333D","secondary-container":"#364954","on-secondary-container":"#D1E6F3",tertiary:"#C9C2EA","on-tertiary":"#312C4C","tertiary-container":"#474364","on-tertiary-container":"#E5DEFF",error:"#FFB4AB","on-error":"#690005","error-container":"#93000A","on-error-container":"#FFDAD6",background:"#0F1417","on-background":"#DFE3E7",surface:"#0F1417","on-surface":"#DFE3E7","surface-variant":"#40484D","on-surface-variant":"#C0C7CD",outline:"#8A9297","outline-variant":"#40484D",shadow:"#000000",scrim:"#000000","inverse-surface":"#DFE3E7","on-inverse-surface":"#2C3134","inverse-primary":"#186584","primary-fixed":"#C1E8FF","on-primary-fixed":"#001E2B","primary-fixed-dim":"#8ECFF2","on-primary-fixed-variant":"#004D67","secondary-fixed":"#D1E6F3","on-secondary-fixed":"#091E28","secondary-fixed-dim":"#B5C9D7","on-secondary-fixed-variant":"#364954","tertiary-fixed":"#E5DEFF","on-tertiary-fixed":"#1B1736","tertiary-fixed-dim":"#C9C2EA","on-tertiary-fixed-variant":"#474364","surface-dim":"#0F1417","surface-bright":"#353A3D","surface-container-lowest":"#0A0F12","surface-container-low":"#171C1F","surface-container":"#1B2023","surface-container-high":"#262B2E","surface-container-highest":"#313539",warning:"#FFC107","on-warning":"#212121","warning-container":"#4E3400","on-warning-container":"#FFF3CF",success:"#81C784","on-success":"#000","success-container":"#2E7D32","on-success-container":"#fff"},Vr={name:"dark",colors:Zi},Ki=Vr});var Jo=hi((Mp,qo)=>{"use strict";function Po(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&Po(n)}),e}var pn=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Lo(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Ae(e,...t){let n=Object.create(null);for(let r in e)n[r]=e[r];return t.forEach(function(r){for(let o in r)n[o]=r[o]}),n}var Js="</span>",Ro=e=>!!e.scope,Qs=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){let n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,o)=>`${r}${"_".repeat(o+1)}`)].join(" ")}return`${t}${e}`},cr=class{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=Lo(t)}openNode(t){if(!Ro(t))return;let n=Qs(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){Ro(t)&&(this.buffer+=Js)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}},Oo=(e={})=>{let t={children:[]};return Object.assign(t,e),t},lr=class e{constructor(){this.rootNode=Oo(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){let n=Oo({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{e._collapse(n)}))}},ur=class extends lr{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){let r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new cr(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function Mt(e){return e?typeof e=="string"?e:e.source:null}function Bo(e){return je("(?=",e,")")}function Zs(e){return je("(?:",e,")*")}function Ks(e){return je("(?:",e,")?")}function je(...e){return e.map(n=>Mt(n)).join("")}function ea(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function fr(...e){return"("+(ea(e).capture?"":"?:")+e.map(r=>Mt(r)).join("|")+")"}function zo(e){return new RegExp(e.toString()+"|").exec("").length-1}function ta(e,t){let n=e&&e.exec(t);return n&&n.index===0}var na=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function dr(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;let o=n,a=Mt(r),i="";for(;a.length>0;){let s=na.exec(a);if(!s){i+=a;break}i+=a.substring(0,s.index),a=a.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?i+="\\"+String(Number(s[1])+o):(i+=s[0],s[0]==="("&&n++)}return i}).map(r=>`(${r})`).join(t)}var ra=/\b\B/,jo="[a-zA-Z]\\w*",mr="[a-zA-Z_]\\w*",Ho="\\b\\d+(\\.\\d+)?",Uo="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Go="\\b(0b[01]+)",oa="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ia=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=je(t,/.*\b/,e.binary,/\b.*/)),Ae({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},Nt={begin:"\\\\[\\s\\S]",relevance:0},sa={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Nt]},aa={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Nt]},ca={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},dn=function(e,t,n={}){let r=Ae({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let o=fr("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:je(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},la=dn("//","$"),ua=dn("/\\*","\\*/"),pa=dn("#","$"),fa={scope:"number",begin:Ho,relevance:0},da={scope:"number",begin:Uo,relevance:0},ma={scope:"number",begin:Go,relevance:0},ha={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Nt,{begin:/\[/,end:/\]/,relevance:0,contains:[Nt]}]},ga={scope:"title",begin:jo,relevance:0},xa={scope:"title",begin:mr,relevance:0},ba={begin:"\\.\\s*"+mr,relevance:0},ya=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})},un=Object.freeze({__proto__:null,APOS_STRING_MODE:sa,BACKSLASH_ESCAPE:Nt,BINARY_NUMBER_MODE:ma,BINARY_NUMBER_RE:Go,COMMENT:dn,C_BLOCK_COMMENT_MODE:ua,C_LINE_COMMENT_MODE:la,C_NUMBER_MODE:da,C_NUMBER_RE:Uo,END_SAME_AS_BEGIN:ya,HASH_COMMENT_MODE:pa,IDENT_RE:jo,MATCH_NOTHING_RE:ra,METHOD_GUARD:ba,NUMBER_MODE:fa,NUMBER_RE:Ho,PHRASAL_WORDS_MODE:ca,QUOTE_STRING_MODE:aa,REGEXP_MODE:ha,RE_STARTERS_RE:oa,SHEBANG:ia,TITLE_MODE:ga,UNDERSCORE_IDENT_RE:mr,UNDERSCORE_TITLE_MODE:xa});function wa(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function va(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function Ea(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=wa,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Sa(e,t){Array.isArray(e.illegal)&&(e.illegal=fr(...e.illegal))}function ka(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Ca(e,t){e.relevance===void 0&&(e.relevance=1)}var Aa=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");let n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=je(n.beforeMatch,Bo(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},Ma=["of","and","for","in","not","or","if","then","parent","list","value"],Na="keyword";function Vo(e,t,n=Na){let r=Object.create(null);return typeof e=="string"?o(n,e.split(" ")):Array.isArray(e)?o(n,e):Object.keys(e).forEach(function(a){Object.assign(r,Vo(e[a],t,a))}),r;function o(a,i){t&&(i=i.map(s=>s.toLowerCase())),i.forEach(function(s){let c=s.split("|");r[c[0]]=[a,Ta(c[0],c[1])]})}}function Ta(e,t){return t?Number(t):_a(e)?0:1}function _a(e){return Ma.includes(e.toLowerCase())}var Do={},ze=e=>{console.error(e)},Io=(e,...t)=>{console.log(`WARN: ${e}`,...t)},nt=(e,t)=>{Do[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Do[`${e}/${t}`]=!0)},fn=new Error;function Wo(e,t,{key:n}){let r=0,o=e[n],a={},i={};for(let s=1;s<=t.length;s++)i[s+r]=o[s],a[s+r]=!0,r+=zo(t[s-1]);e[n]=i,e[n]._emit=a,e[n]._multi=!0}function Ra(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw ze("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),fn;if(typeof e.beginScope!="object"||e.beginScope===null)throw ze("beginScope must be object"),fn;Wo(e,e.begin,{key:"beginScope"}),e.begin=dr(e.begin,{joinWith:""})}}function Oa(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw ze("skip, excludeEnd, returnEnd not compatible with endScope: {}"),fn;if(typeof e.endScope!="object"||e.endScope===null)throw ze("endScope must be object"),fn;Wo(e,e.end,{key:"endScope"}),e.end=dr(e.end,{joinWith:""})}}function Da(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Ia(e){Da(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Ra(e),Oa(e)}function $a(e){function t(i,s){return new RegExp(Mt(i),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,c){c.position=this.position++,this.matchIndexes[this.matchAt]=c,this.regexes.push([c,s]),this.matchAt+=zo(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let s=this.regexes.map(c=>c[1]);this.matcherRe=t(dr(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;let c=this.matcherRe.exec(s);if(!c)return null;let f=c.findIndex((S,te)=>te>0&&S!==void 0),T=this.matchIndexes[f];return c.splice(0,f),Object.assign(c,T)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];let c=new n;return this.rules.slice(s).forEach(([f,T])=>c.addRule(f,T)),c.compile(),this.multiRegexes[s]=c,c}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,c){this.rules.push([s,c]),c.type==="begin"&&this.count++}exec(s){let c=this.getMatcher(this.regexIndex);c.lastIndex=this.lastIndex;let f=c.exec(s);if(this.resumingScanAtSamePosition()&&!(f&&f.index===this.lastIndex)){let T=this.getMatcher(0);T.lastIndex=this.lastIndex+1,f=T.exec(s)}return f&&(this.regexIndex+=f.position+1,this.regexIndex===this.count&&this.considerAll()),f}}function o(i){let s=new r;return i.contains.forEach(c=>s.addRule(c.begin,{rule:c,type:"begin"})),i.terminatorEnd&&s.addRule(i.terminatorEnd,{type:"end"}),i.illegal&&s.addRule(i.illegal,{type:"illegal"}),s}function a(i,s){let c=i;if(i.isCompiled)return c;[va,ka,Ia,Aa].forEach(T=>T(i,s)),e.compilerExtensions.forEach(T=>T(i,s)),i.__beforeBegin=null,[Ea,Sa,Ca].forEach(T=>T(i,s)),i.isCompiled=!0;let f=null;return typeof i.keywords=="object"&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),f=i.keywords.$pattern,delete i.keywords.$pattern),f=f||/\w+/,i.keywords&&(i.keywords=Vo(i.keywords,e.case_insensitive)),c.keywordPatternRe=t(f,!0),s&&(i.begin||(i.begin=/\B|\b/),c.beginRe=t(c.begin),!i.end&&!i.endsWithParent&&(i.end=/\B|\b/),i.end&&(c.endRe=t(c.end)),c.terminatorEnd=Mt(c.end)||"",i.endsWithParent&&s.terminatorEnd&&(c.terminatorEnd+=(i.end?"|":"")+s.terminatorEnd)),i.illegal&&(c.illegalRe=t(i.illegal)),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map(function(T){return Fa(T==="self"?i:T)})),i.contains.forEach(function(T){a(T,c)}),i.starts&&a(i.starts,s),c.matcher=o(c),c}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Ae(e.classNameAliases||{}),a(e)}function Yo(e){return e?e.endsWithParent||Yo(e.starts):!1}function Fa(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Ae(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Yo(e)?Ae(e,{starts:e.starts?Ae(e.starts):null}):Object.isFrozen(e)?Ae(e):e}var Pa="11.11.1",pr=class extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}},ar=Lo,$o=Ae,Fo=Symbol("nomatch"),La=7,Xo=function(e){let t=Object.create(null),n=Object.create(null),r=[],o=!0,a="Could not find the language '{}', did you forget to load/include a language module?",i={disableAutodetect:!0,name:"Plain text",contains:[]},s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:ur};function c(l){return s.noHighlightRe.test(l)}function f(l){let p=l.className+" ";p+=l.parentNode?l.parentNode.className:"";let g=s.languageDetectRe.exec(p);if(g){let M=re(g[1]);return M||(Io(a.replace("{}",g[1])),Io("Falling back to no-highlight mode for this block.",l)),M?g[1]:"no-highlight"}return p.split(/\s+/).find(M=>c(M)||re(M))}function T(l,p,g){let M="",P="";typeof p=="object"?(M=l,g=p.ignoreIllegals,P=p.language):(nt("10.7.0","highlight(lang, code, ...args) has been deprecated."),nt("10.7.0",`Please use highlight(code, options) instead.
2
- https://github.com/highlightjs/highlight.js/issues/2277`),P=l,M=p),g===void 0&&(g=!0);let ne={code:M,language:P};m("before:highlight",ne);let ge=ne.result?ne.result:S(ne.language,ne.code,g);return ge.code=ne.code,m("after:highlight",ge),ge}function S(l,p,g,M){let P=Object.create(null);function ne(d,w){return d.keywords[w]}function ge(){if(!A.keywords){U.addText($);return}let d=0;A.keywordPatternRe.lastIndex=0;let w=A.keywordPatternRe.exec($),N="";for(;w;){N+=$.substring(d,w.index);let D=ie.case_insensitive?w[0].toLowerCase():w[0],V=ne(A,D);if(V){let[le,ai]=V;if(U.addText(N),N="",P[D]=(P[D]||0)+1,P[D]<=La&&(zt+=ai),le.startsWith("_"))N+=w[0];else{let ci=ie.classNameAliases[le]||le;oe(w[0],ci)}}else N+=w[0];d=A.keywordPatternRe.lastIndex,w=A.keywordPatternRe.exec($)}N+=$.substring(d),U.addText(N)}function Lt(){if($==="")return;let d=null;if(typeof A.subLanguage=="string"){if(!t[A.subLanguage]){U.addText($);return}d=S(A.subLanguage,$,!0,Sr[A.subLanguage]),Sr[A.subLanguage]=d._top}else d=B($,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(zt+=d.relevance),U.__addSublanguage(d._emitter,d.language)}function Z(){A.subLanguage!=null?Lt():ge(),$=""}function oe(d,w){d!==""&&(U.startScope(w),U.addText(d),U.endScope())}function yr(d,w){let N=1,D=w.length-1;for(;N<=D;){if(!d._emit[N]){N++;continue}let V=ie.classNameAliases[d[N]]||d[N],le=w[N];V?oe(le,V):($=le,ge(),$=""),N++}}function wr(d,w){return d.scope&&typeof d.scope=="string"&&U.openNode(ie.classNameAliases[d.scope]||d.scope),d.beginScope&&(d.beginScope._wrap?(oe($,ie.classNameAliases[d.beginScope._wrap]||d.beginScope._wrap),$=""):d.beginScope._multi&&(yr(d.beginScope,w),$="")),A=Object.create(d,{parent:{value:A}}),A}function vr(d,w,N){let D=ta(d.endRe,N);if(D){if(d["on:end"]){let V=new pn(d);d["on:end"](w,V),V.isMatchIgnored&&(D=!1)}if(D){for(;d.endsParent&&d.parent;)d=d.parent;return d}}if(d.endsWithParent)return vr(d.parent,w,N)}function ni(d){return A.matcher.regexIndex===0?($+=d[0],1):(yn=!0,0)}function ri(d){let w=d[0],N=d.rule,D=new pn(N),V=[N.__beforeBegin,N["on:begin"]];for(let le of V)if(le&&(le(d,D),D.isMatchIgnored))return ni(w);return N.skip?$+=w:(N.excludeBegin&&($+=w),Z(),!N.returnBegin&&!N.excludeBegin&&($=w)),wr(N,d),N.returnBegin?0:w.length}function oi(d){let w=d[0],N=p.substring(d.index),D=vr(A,d,N);if(!D)return Fo;let V=A;A.endScope&&A.endScope._wrap?(Z(),oe(w,A.endScope._wrap)):A.endScope&&A.endScope._multi?(Z(),yr(A.endScope,d)):V.skip?$+=w:(V.returnEnd||V.excludeEnd||($+=w),Z(),V.excludeEnd&&($=w));do A.scope&&U.closeNode(),!A.skip&&!A.subLanguage&&(zt+=A.relevance),A=A.parent;while(A!==D.parent);return D.starts&&wr(D.starts,d),V.returnEnd?0:w.length}function ii(){let d=[];for(let w=A;w!==ie;w=w.parent)w.scope&&d.unshift(w.scope);d.forEach(w=>U.openNode(w))}let Bt={};function Er(d,w){let N=w&&w[0];if($+=d,N==null)return Z(),0;if(Bt.type==="begin"&&w.type==="end"&&Bt.index===w.index&&N===""){if($+=p.slice(w.index,w.index+1),!o){let D=new Error(`0 width match regex (${l})`);throw D.languageName=l,D.badRule=Bt.rule,D}return 1}if(Bt=w,w.type==="begin")return ri(w);if(w.type==="illegal"&&!g){let D=new Error('Illegal lexeme "'+N+'" for mode "'+(A.scope||"<unnamed>")+'"');throw D.mode=A,D}else if(w.type==="end"){let D=oi(w);if(D!==Fo)return D}if(w.type==="illegal"&&N==="")return $+=`
3
- `,1;if(bn>1e5&&bn>w.index*3)throw new Error("potential infinite loop, way more iterations than matches");return $+=N,N.length}let ie=re(l);if(!ie)throw ze(a.replace("{}",l)),new Error('Unknown language: "'+l+'"');let si=$a(ie),xn="",A=M||si,Sr={},U=new s.__emitter(s);ii();let $="",zt=0,Te=0,bn=0,yn=!1;try{if(ie.__emitTokens)ie.__emitTokens(p,U);else{for(A.matcher.considerAll();;){bn++,yn?yn=!1:A.matcher.considerAll(),A.matcher.lastIndex=Te;let d=A.matcher.exec(p);if(!d)break;let w=p.substring(Te,d.index),N=Er(w,d);Te=d.index+N}Er(p.substring(Te))}return U.finalize(),xn=U.toHTML(),{language:l,value:xn,relevance:zt,illegal:!1,_emitter:U,_top:A}}catch(d){if(d.message&&d.message.includes("Illegal"))return{language:l,value:ar(p),illegal:!0,relevance:0,_illegalBy:{message:d.message,index:Te,context:p.slice(Te-100,Te+100),mode:d.mode,resultSoFar:xn},_emitter:U};if(o)return{language:l,value:ar(p),illegal:!1,relevance:0,errorRaised:d,_emitter:U,_top:A};throw d}}function te(l){let p={value:ar(l),illegal:!1,relevance:0,_top:i,_emitter:new s.__emitter(s)};return p._emitter.addText(l),p}function B(l,p){p=p||s.languages||Object.keys(t);let g=te(l),M=p.filter(re).filter(st).map(Z=>S(Z,l,!1));M.unshift(g);let P=M.sort((Z,oe)=>{if(Z.relevance!==oe.relevance)return oe.relevance-Z.relevance;if(Z.language&&oe.language){if(re(Z.language).supersetOf===oe.language)return 1;if(re(oe.language).supersetOf===Z.language)return-1}return 0}),[ne,ge]=P,Lt=ne;return Lt.secondBest=ge,Lt}function Me(l,p,g){let M=p&&n[p]||g;l.classList.add("hljs"),l.classList.add(`language-${M}`)}function me(l){let p=null,g=f(l);if(c(g))return;if(m("before:highlightElement",{el:l,language:g}),l.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",l);return}if(l.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(l)),s.throwUnescapedHTML))throw new pr("One of your code blocks includes unescaped HTML.",l.innerHTML);p=l;let M=p.textContent,P=g?T(M,{language:g,ignoreIllegals:!0}):B(M);l.innerHTML=P.value,l.dataset.highlighted="yes",Me(l,g,P.language),l.result={language:P.language,re:P.relevance,relevance:P.relevance},P.secondBest&&(l.secondBest={language:P.secondBest.language,relevance:P.secondBest.relevance}),m("after:highlightElement",{el:l,result:P,text:M})}function he(l){s=$o(s,l)}let ot=()=>{He(),nt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function it(){He(),nt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ne=!1;function He(){function l(){He()}if(document.readyState==="loading"){Ne||window.addEventListener("DOMContentLoaded",l,!1),Ne=!0;return}document.querySelectorAll(s.cssSelector).forEach(me)}function It(l,p){let g=null;try{g=p(e)}catch(M){if(ze("Language definition for '{}' could not be registered.".replace("{}",l)),o)ze(M);else throw M;g=i}g.name||(g.name=l),t[l]=g,g.rawDefinition=p.bind(null,e),g.aliases&&$t(g.aliases,{languageName:l})}function mn(l){delete t[l];for(let p of Object.keys(n))n[p]===l&&delete n[p]}function hn(){return Object.keys(t)}function re(l){return l=(l||"").toLowerCase(),t[l]||t[n[l]]}function $t(l,{languageName:p}){typeof l=="string"&&(l=[l]),l.forEach(g=>{n[g.toLowerCase()]=p})}function st(l){let p=re(l);return p&&!p.disableAutodetect}function gn(l){l["before:highlightBlock"]&&!l["before:highlightElement"]&&(l["before:highlightElement"]=p=>{l["before:highlightBlock"](Object.assign({block:p.el},p))}),l["after:highlightBlock"]&&!l["after:highlightElement"]&&(l["after:highlightElement"]=p=>{l["after:highlightBlock"](Object.assign({block:p.el},p))})}function Ft(l){gn(l),r.push(l)}function Pt(l){let p=r.indexOf(l);p!==-1&&r.splice(p,1)}function m(l,p){let g=l;r.forEach(function(M){M[g]&&M[g](p)})}function h(l){return nt("10.7.0","highlightBlock will be removed entirely in v12.0"),nt("10.7.0","Please use highlightElement now."),me(l)}Object.assign(e,{highlight:T,highlightAuto:B,highlightAll:He,highlightElement:me,highlightBlock:h,configure:he,initHighlighting:ot,initHighlightingOnLoad:it,registerLanguage:It,unregisterLanguage:mn,listLanguages:hn,getLanguage:re,registerAliases:$t,autoDetection:st,inherit:$o,addPlugin:Ft,removePlugin:Pt}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=Pa,e.regex={concat:je,lookahead:Bo,either:fr,optional:Ks,anyNumberOfTimes:Zs};for(let l in un)typeof un[l]=="object"&&Po(un[l]);return Object.assign(e,un),e},rt=Xo({});rt.newInstance=()=>Xo({});qo.exports=rt;rt.HighlightJS=rt;rt.default=rt});var _e={},Va=Symbol("terminator");function yi(e,t){let n=!1,r={error:o,unsubscribe:a,get closed(){return n},signal:new xe,next(i){if(!n)try{e.next?.(i)}catch(s){o(s)}},complete(){if(!n)try{e.complete?.()}finally{a()}}};e.signal?.subscribe(a);function o(i){if(n)throw i;if(!e.error)throw a(),i;try{e.error(i)}finally{a()}}function a(){n||(n=!0,r.signal.next())}try{if(t?.(r))throw new Error("Unsubscribe function result is deprectaed")}catch(i){o(i)}return r}var _=class{__subscribe;constructor(t){this.__subscribe=t}then(t,n){return Ei(this).then(t,n)}pipe(...t){return t.reduce((n,r)=>r(n),this)}subscribe(t){return yi(!t||typeof t=="function"?{next:t}:t,this.__subscribe)}},Re=class extends _{closed=!1;signal=new xe;observers=new Set;constructor(){super(t=>this.onSubscribe(t))}next(t){if(!this.closed)for(let n of Array.from(this.observers))n.closed||n.next(t)}error(t){if(!this.closed){this.closed=!0;let n=!1,r;for(let o of Array.from(this.observers))try{o.error(t)}catch(a){n=!0,r=a}if(n)throw r}}complete(){this.closed||(this.closed=!0,Array.from(this.observers).forEach(t=>t.complete()),this.observers.clear())}onSubscribe(t){this.closed?t.complete():(this.observers.add(t),t.signal.subscribe(()=>this.observers.delete(t)))}},xe=class extends _{closed=!1;observers=new Set;constructor(){super(t=>{this.closed?(t.next(),t.complete()):this.observers.add(t)})}next(){if(!this.closed){this.closed=!0;for(let t of Array.from(this.observers))t.closed||(t.next(),t.complete());this.observers.clear()}}},jt=class extends Re{queue=[];emitting=!1;next(t){if(!this.closed)if(this.emitting)this.queue.push(t);else{for(this.emitting=!0,super.next(t);this.queue.length;)super.next(this.queue.shift());this.emitting=!1}}},at=class extends Re{currentValue;constructor(t){super(),this.currentValue=t}get value(){return this.currentValue}next(t){this.currentValue=t,super.next(t)}onSubscribe(t){let n=super.onSubscribe(t);return this.closed||t.next(this.currentValue),n}},vn=class extends Re{bufferSize;buffer=[];hasError=!1;lastError;constructor(t=1/0){super(),this.bufferSize=t}error(t){this.hasError=!0,this.lastError=t,super.error(t)}next(t){return this.buffer.length===this.bufferSize&&this.buffer.shift(),this.buffer.push(t),super.next(t)}onSubscribe(t){this.observers.add(t),this.buffer.forEach(n=>t.next(n)),this.hasError?t.error(this.lastError):this.closed&&t.complete(),t.signal.subscribe(()=>this.observers.delete(t))}},Ue=class extends Re{$value=_e;get hasValue(){return this.$value!==_e}get value(){if(this.$value===_e)throw new Error("Reference not initialized");return this.$value}next(t){return this.$value=t,super.next(t)}onSubscribe(t){!this.closed&&this.$value!==_e&&t.next(this.$value),super.onSubscribe(t)}},En=class extends Error{message="No elements in sequence"};function ue(...e){return new _(t=>{let n=0,r;function o(){let a=e[n++];a&&!t.closed?(r?.next(),a.subscribe({next:t.next,error:t.error,complete:o,signal:r=new xe})):t.complete()}t.signal.subscribe(()=>r?.next()),o()})}function X(e){return new _(t=>{e().subscribe(t)})}function Cr(e){return new _(t=>{for(let n of e)t.closed||t.next(n);t.complete()})}function Ar(e){return new _(t=>{e.then(n=>{t.closed||t.next(n),t.complete()}).catch(n=>t.error(n))})}function Mr(e){return X(()=>Ar(e()))}function wi(e){return new _(t=>{for(let n of e)t.closed||t.next(n);t.complete()})}function Nr(e){return e instanceof _?e:Array.isArray(e)?Cr(e):e instanceof Promise?Ar(e):wi(e)}function z(...e){return Cr(e)}function vi(e){return new Promise((t,n)=>{let r=_e;e.subscribe({next:o=>r=o,error:o=>n(o),complete:()=>t(r)})})}function Ei(e){return vi(e).then(t=>t===_e?void 0:t)}function Ge(e,t){return pe(n=>({next:e(n),unsubscribe:t}))}function pe(e){return t=>new _(n=>{let r=e(n,t);n.signal.subscribe(()=>r.unsubscribe?.()),r.error||(r.error=n.error),r.complete||(r.complete=n.complete),r.signal=n.signal,t.subscribe(r)})}function Sn(e){return Ge(t=>n=>t.next(e(n)))}function Si(e,t){return pe(n=>{let r=t,o=0;return{next(a){r=e(r,a,o++)},complete(){n.next(r),n.complete()}}})}function ki(e){return pe(t=>{let n=!0,r;return{next(o){n&&(n=!1,t.next(o),r=setTimeout(()=>n=!0,e))},unsubscribe:()=>clearTimeout(r)}})}function Oe(e){return new _(t=>{let n=setTimeout(()=>{t.next(),t.complete()},e);t.signal.subscribe(()=>clearTimeout(n))})}function Ci(e,t=Oe){return Tr(n=>t(e).map(()=>n))}function Tr(e){return t=>q(n=>{let r=!1,o=!1,a,i=()=>{a?.next(),r=!1,o&&n.complete()},s=new xe;n.signal.subscribe(()=>{i(),s.next()}),t.subscribe({next(c){i(),a=new xe,r=!0,e(c).subscribe({next:n.next,error:n.error,complete:i,signal:a})},error:n.error,complete(){o=!0,r||n.complete()},signal:s})})}function Ai(e){return t=>q(n=>{let r=n.signal,o=0,a=0,i=!1;t.subscribe({next:s=>{o++,e(s).subscribe({next:n.next,error:n.error,complete:()=>{a++,i&&a===o&&n.complete()},signal:r})},error:n.error,complete(){i=!0,a===o&&n.complete()},signal:r})})}function Mi(e){return pe(t=>{let n=!0;return{next(r){n&&(n=!1,e(r).subscribe({next:t.next,error:t.error,complete:()=>n=!0,signal:t.signal}))}}})}function Ht(e){return Ge(t=>n=>{e(n)&&t.next(n)})}function Ni(e){return Ge(t=>n=>{e-- >0&&!t.closed&&t.next(n),(e<=0||t.closed)&&t.complete()})}function Ti(e){return Ge(t=>n=>{!t.closed&&e(n)?t.next(n):t.complete()})}function _i(){let e=!1;return pe(t=>({next(n){e||(e=!0,t.next(n),t.complete())},complete(){t.closed||t.error(new En)}}))}function Ut(e){return Ge(t=>n=>{e(n),t.next(n)})}function Ri(e){return pe((t,n)=>{let r,o={next:t.next,error(a){try{if(t.closed)return;let i=e(a,n);i&&(r?.next(),r=new xe,i.subscribe({...o,signal:r}))}catch(i){t.error(i)}},unsubscribe:()=>r?.next()};return o})}function Oi(){return Ge(e=>{let t=_e;return n=>{n!==t&&(t=n,e.next(n))}})}function Di(){return e=>{let t=new vn(1),n=!1;return q(r=>{t.subscribe(r),n||(n=!0,e.subscribe(t))})}}function Ii(){return e=>{let t,n=0;function r(){--n===0&&t?.signal.next()}return q(o=>{o.signal.subscribe(r),n++===0?(t=ct(),t.subscribe(o),e.subscribe(t)):t.subscribe(o)})}}function $i(){return e=>{let t=new Re,n,r,o=!1,a=!1;return q(i=>{a?(i.next(r),i.complete()):t.subscribe(i),n??=e.subscribe({next:s=>{o=!0,r=s},error:i.error,complete(){a=!0,o&&t.next(r),t.complete()},signal:i.signal})})}}function v(...e){return e.length===1?e[0]:new _(t=>{let n=e.length;for(let r of e)t.closed||r.subscribe({next:t.next,error:t.error,complete(){n--===1&&t.complete()},signal:t.signal})})}function J(...e){return e.length===0?I:new _(t=>{let n=e.length,r=n,o=0,a=!1,i=new Array(n),s=new Array(n);e.forEach((c,f)=>c.subscribe({next(T){s[f]=T,i[f]||(i[f]=!0,++o>=r&&(a=!0)),a&&t.next(s.slice(0))},error:t.error,complete(){--n<=0&&t.complete()},signal:t.signal}))})}function Fi(e){return pe(t=>({next:t.next,unsubscribe:e}))}function Pi(){return Ht(()=>!1)}var I=new _(e=>e.complete());function be(e){return new at(e)}function q(e){return new _(e)}function ct(){return new Ue}var kr={catchError:Ri,debounceTime:Ci,distinctUntilChanged:Oi,exhaustMap:Mi,filter:Ht,finalize:Fi,first:_i,ignoreElements:Pi,map:Sn,mergeMap:Ai,publishLast:$i,reduce:Si,share:Ii,shareLatest:Di,switchMap:Tr,take:Ni,takeWhile:Ti,tap:Ut,throttleTime:ki};for(let e in kr)_.prototype[e]=function(...t){return this.pipe(kr[e](...t))};function R(e,t,n){return new _(r=>{let o=r.next.bind(r);e.addEventListener(t,o,n),r.signal.subscribe(()=>e.removeEventListener(t,o,n))})}function Gt(e){return kn(e,{childList:!0})}function _r(e,t){return kn(e,{attributes:!0,attributeFilter:t})}function kn(e,t={attributes:!0,childList:!0}){return new _(n=>{let r=new MutationObserver(o=>o.forEach(a=>{for(let i of a.addedNodes)n.next({type:"added",target:e,value:i});for(let i of a.removedNodes)n.next({type:"removed",target:e,value:i});a.type==="characterData"?n.next({type:"characterData",target:e}):a.attributeName&&n.next({type:"attribute",target:e,value:a.attributeName})}));r.observe(e,t),n.signal.subscribe(()=>r.disconnect())})}function Rr(e){return R(e,"keydown").filter(t=>t.key===" "||t.key==="Enter"?(t.preventDefault(),!0):!1)}function Q(e){return R(e,"click")}function Vt(e,t){return new _(n=>{let r=new IntersectionObserver(o=>{for(let a of o)n.next(a)},t);r.observe(e),n.signal.subscribe(()=>r.disconnect())})}function Or(e){return Vt(e).map(t=>t.isIntersecting)}function De(e){return Vt(e).filter(t=>t.isIntersecting).first()}function Li(e){let t;return function(...n){t&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{e.apply(this,n),t=0})}}function Dr(e){return pe(t=>{let n=Li(o=>{t.closed||(e&&e(o),t.next(o),r&&t.complete())}),r=!1;return{next:n,complete:()=>r=!0}})}function Ir(){return X(()=>document.readyState!=="loading"?z(!0):R(window,"DOMContentLoaded").first().map(()=>!0))}function Wt(e,t){let n;return v(X(()=>(n=e.childNodes,n?z(n):I)),kn(e,{childList:!0,...t}),Ie().switchMap(()=>e.childNodes!==n?(n=e.childNodes,z(n)):I))}function Ie(){return X(()=>document.readyState==="complete"?z(!0):R(window,"load").first().map(()=>!0))}function $r(...e){return new _(t=>{let n=new ResizeObserver(r=>r.forEach(o=>t.next(o)));for(let r of e)n.observe(r);t.signal.subscribe(()=>n.disconnect())})}function Fr(e){return e.offsetParent===null&&!(e.offsetWidth&&e.offsetHeight)}function Cn(e,t,n){return r=>ue(z(e?r.matches(e):!1),R(r,t).switchMap(()=>v(z(!0),R(r,n).map(()=>e?r.matches(e):!1))))}var Xa=Cn("","animationstart","animationend"),An=Cn("","mouseenter","mouseleave"),Bi=Cn(":focus,:focus-within","focusin","focusout"),Mn=e=>J(An(e),Bi(e)).map(([t,n])=>t||n);function lt(e){return e instanceof PointerEvent&&e.pointerType===""||e instanceof MouseEvent&&e.type==="click"&&e.detail===0}function Pr(e){let t=e.getRootNode();return t instanceof Document||t instanceof ShadowRoot?t:void 0}var zi=Ut(e=>console.log(e));_.prototype.log=function(){return this.pipe(zi)};_.prototype.raf=function(e){return this.pipe(Dr(e))};var W=Symbol("bindings"),ji={},Ve=Symbol("augments"),$e=Symbol("parser"),Tn=class{bindings;messageHandlers;internals;attributes$=new jt;wasConnected=!1;wasInitialized=!1;subscriptions;prebind;addMessageHandler(t){(this.messageHandlers??=new Set).add(t)}removeMessageHandler(t){this.messageHandlers?.delete(t)}message(t,n){let r=!1;if(this.messageHandlers)for(let o of this.messageHandlers)o.type===t&&(o.next(n),r||=o.stopPropagation);return r}add(t){if(this.wasConnected)throw new Error("Cannot bind connected component.");this.wasInitialized?(this.bindings??=[]).push(t):(this.prebind??=[]).push(t)}connect(){if(this.wasConnected=!0,!this.subscriptions&&(this.prebind||this.bindings)){let t=this.subscriptions=[];if(this.bindings)for(let n of this.bindings)t.push(n.subscribe());if(this.prebind)for(let n of this.prebind)t.push(n.subscribe())}}disconnect(){this.subscriptions?.forEach(t=>t.unsubscribe()),this.subscriptions=void 0}},Xt=Symbol("css"),x=class extends HTMLElement{static observedAttributes;static[Ve];static[$e];[W]=new Tn;[Xt];connectedCallback(){this[W].wasInitialized=!0,this[W].wasConnected||this.constructor[Ve]?.forEach(t=>t(this)),this[W].connect()}disconnectedCallback(){this[W].disconnect()}attributeChangedCallback(t,n,r){let o=this.constructor[$e]?.[t]??Hi;n!==r&&(this[t]=o(r,this[t]))}};function Hi(e,t){let n=t===!1||t===!0;return e===""?n?!0:"":e===null?n?!1:void 0:e}function Lr(e,t){e.hasOwnProperty(Ve)||(e[Ve]=e[Ve]?.slice(0)??[]),e[Ve]?.push(t)}var Ui={mode:"open"};function j(e){return e.shadowRoot??e.attachShadow(Ui)}function Br(e,t){t instanceof Node?j(e).appendChild(t):e[W].add(t)}function Gi(e,t){t.length&&Lr(e,n=>{for(let r of t){let o=r.call(e,n);o&&o!==n&&Br(n,o)}})}function Vi(e,t){ji[e]=t,customElements.define(e,t)}function u(e,{init:t,augment:n,tagName:r}){if(t)for(let o of t)o(e);n&&Gi(e,n),r&&Vi(r,e)}function ye(e){return ue(z(e),e[W].attributes$.map(()=>e))}function Y(e,t){return e[W].attributes$.pipe(Ht(n=>n.attribute===t),Sn(()=>e[t]))}function E(e,t){return v(Y(e,t),X(()=>z(e[t])))}function Wi(e){let t=e.observedAttributes;return t&&!e.hasOwnProperty("observedAttributes")&&(t=e.observedAttributes?.slice(0)),e.observedAttributes=t||[]}function _n(e,t,n){return n===!1||n===null||n===void 0?n=null:n===!0&&(n=""),n===null?e.removeAttribute(t):e.setAttribute(t,String(n)),n}function Yi(e,t,n){e.hasOwnProperty($e)||(e[$e]={...e[$e]}),e[$e]&&(e[$e][t]=n)}function b(e,t){return n=>{t?.observe!==!1&&Wi(n).push(e),t?.parse&&Yi(n,e,t.parse);let r=`$$${e}`,o=n.prototype,a=Object.getOwnPropertyDescriptor(o,e);a&&Object.defineProperty(o,r,a);let i=t?.persist,s={enumerable:!0,configurable:!1,get(){return this[r]},set(c){this[r]!==c?(this[r]=c,i?.(this,e,c),this[W].attributes$.next({target:this,attribute:e,value:c})):a?.set&&(i?.(this,e,c),this[r]=c)}};Lr(n,c=>{if(a||(c[r]=c[e]),Object.defineProperty(c,e,s),i?.(c,e,c[e]),t?.render){let f=t.render(c);f&&Br(c,f)}})}}function C(e){return b(e,{persist:_n,observe:!0})}function fe(e){return b(e,{observe:!1})}function O(){return document.createElement("slot")}function zr(e){return t=>{let[n,r]=e();return t[W].add(n),r}}var We=class extends x{};u(We,{tagName:"c-span"});function Xi(e,t){let n=document.createTextNode("");return e[W].add(t.tap(r=>n.textContent=r)),n}var Nn=document.createDocumentFragment();function Yt(e,t,n=e){if(t!=null)if(Array.isArray(t)){for(let r of t)Yt(e,r,Nn);n!==Nn&&n.appendChild(Nn)}else e instanceof x&&t instanceof _?n.appendChild(Xi(e,t)):t instanceof Node?n.appendChild(t):e instanceof x&&typeof t=="function"?Yt(e,t(e),n):n.appendChild(document.createTextNode(t))}function jr(e,t){for(let n in t){let r=t[n];e instanceof x?r instanceof _?e[W].add(n==="$"?r:r.tap(o=>e[n]=o)):n==="$"&&typeof r=="function"?e[W].add(r(e)):e[n]=r:e[n]=r}}function qi(e,t){return e.constructor.observedAttributes?.includes(t)}function Hr(e,t){let n=e instanceof x&&qi(e,t)?Y(e,t):_r(e,[t]).map(()=>e[t]);return v(n,X(()=>z(e[t])))}function Ur(e,t,n){return b(e,{parse(r){if(r==="Infinity"||r==="infinity")return 1/0;let o=r===void 0?void 0:Number(r);return t!==void 0&&(o===void 0||o<t||isNaN(o))&&(o=t),n!==void 0&&o!==void 0&&o>n&&(o=n),o}})}function Fe(e,t,n){for(let r=e.parentElement;r;r=r.parentElement)if(r[W]?.message(t,n))return}function Ye(e,t,n=!0){return new _(r=>{let o={type:t,next:r.next,stopPropagation:n};e[W].addMessageHandler(o),r.signal.subscribe(()=>e[W].removeMessageHandler(o))})}function F(e,t,...n){let r=typeof e=="string"?document.createElement(e):new e;return t&&jr(r,t),n&&Yt(r,n),r}function k(e,t,...n){if(e!==k&&typeof e=="function"&&!(e.prototype instanceof x))return n.length&&((t??={}).children=n),e(t);let r=e===k?document.createDocumentFragment():typeof e=="string"?document.createElement(e):new e;return t&&jr(r,t),n&&Yt(r,n),r}function Ji(e,t){return n=>new _(()=>{n.hasAttribute(e)||n.setAttribute(e,t)})}function K(e){return Ji("role",e)}var Qi=0;function Gr(e){return Hr(e,"id").map(t=>(t||(e.id=`cxl__${Qi++}`),e.id))}var qt=y(":host{display:contents}"),es=[-2,-1,0,1,2,3,4,5],Zr=["display-large","display-medium","display-small","body-large","body-medium","body-small","label-large","label-medium","label-small","headline-large","headline-medium","headline-small","title-large","title-medium","title-small","code"],ut=ct(),Jt=be(""),qe=y(`:host([disabled]) {
1
+ var Da=Object.create;var gr=Object.defineProperty;var Oa=Object.getOwnPropertyDescriptor;var La=Object.getOwnPropertyNames;var Fa=Object.getPrototypeOf,Pa=Object.prototype.hasOwnProperty;var Ba=(e,t)=>()=>(e&&(t=e(e=0)),t);var za=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ha=(e,t)=>{for(var n in t)gr(e,n,{get:t[n],enumerable:!0})},$a=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of La(t))!Pa.call(e,o)&&o!==n&&gr(e,o,{get:()=>t[o],enumerable:!(r=Oa(t,o))||r.enumerable});return e};var ja=(e,t,n)=>(n=e!=null?Da(Fa(e)):{},$a(t||!e||!e.__esModule?gr(n,"default",{value:e,enumerable:!0}):n,e));var Xo={};Ha(Xo,{default:()=>Ss,theme:()=>qo});var Es,qo,Ss,Jo=Ba(()=>{"use strict";Es={primary:"#8ECFF2","on-primary":"#003548","primary-container":"#004D67","on-primary-container":"#C1E8FF",secondary:"#B5C9D7","on-secondary":"#1F333D","secondary-container":"#364954","on-secondary-container":"#D1E6F3",tertiary:"#C9C2EA","on-tertiary":"#312C4C","tertiary-container":"#474364","on-tertiary-container":"#E5DEFF",error:"#FFB4AB","on-error":"#690005","error-container":"#93000A","on-error-container":"#FFDAD6",background:"#0F1417","on-background":"#DFE3E7",surface:"#0F1417","on-surface":"#DFE3E7","surface-variant":"#40484D","on-surface-variant":"#C0C7CD",outline:"#8A9297","outline-variant":"#40484D",shadow:"#000000",scrim:"#000000","inverse-surface":"#DFE3E7","on-inverse-surface":"#2C3134","inverse-primary":"#186584","primary-fixed":"#C1E8FF","on-primary-fixed":"#001E2B","primary-fixed-dim":"#8ECFF2","on-primary-fixed-variant":"#004D67","secondary-fixed":"#D1E6F3","on-secondary-fixed":"#091E28","secondary-fixed-dim":"#B5C9D7","on-secondary-fixed-variant":"#364954","tertiary-fixed":"#E5DEFF","on-tertiary-fixed":"#1B1736","tertiary-fixed-dim":"#C9C2EA","on-tertiary-fixed-variant":"#474364","surface-dim":"#0F1417","surface-bright":"#353A3D","surface-container-lowest":"#0A0F12","surface-container-low":"#171C1F","surface-container":"#1B2023","surface-container-high":"#262B2E","surface-container-highest":"#313539",warning:"#FFC107","on-warning":"#212121","warning-container":"#4E3400","on-warning-container":"#FFF3CF",success:"#81C784","on-success":"#000","success-container":"#2E7D32","on-success-container":"#fff"},qo={name:"dark",colors:Es},Ss=qo});var Sa=za((rx,Ea)=>{"use strict";function ua(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&ua(n)}),e}var ar=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function pa(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function je(e,...t){let n=Object.create(null);for(let r in e)n[r]=e[r];return t.forEach(function(r){for(let o in r)n[o]=r[o]}),n}var pl="</span>",oa=e=>!!e.scope,fl=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){let n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,o)=>`${r}${"_".repeat(o+1)}`)].join(" ")}return`${t}${e}`},bo=class{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=pa(t)}openNode(t){if(!oa(t))return;let n=fl(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){oa(t)&&(this.buffer+=pl)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}},ia=(e={})=>{let t={children:[]};return Object.assign(t,e),t},yo=class e{constructor(){this.rootNode=ia(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){let n=ia({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{e._collapse(n)}))}},vo=class extends yo{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){let r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new bo(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function mn(e){return e?typeof e=="string"?e:e.source:null}function fa(e){return at("(?=",e,")")}function dl(e){return at("(?:",e,")*")}function ml(e){return at("(?:",e,")?")}function at(...e){return e.map(n=>mn(n)).join("")}function gl(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Eo(...e){return"("+(gl(e).capture?"":"?:")+e.map(r=>mn(r)).join("|")+")"}function da(e){return new RegExp(e.toString()+"|").exec("").length-1}function hl(e,t){let n=e&&e.exec(t);return n&&n.index===0}var xl=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function So(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;let o=n,c=mn(r),i="";for(;c.length>0;){let s=xl.exec(c);if(!s){i+=c;break}i+=c.substring(0,s.index),c=c.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?i+="\\"+String(Number(s[1])+o):(i+=s[0],s[0]==="("&&n++)}return i}).map(r=>`(${r})`).join(t)}var bl=/\b\B/,ma="[a-zA-Z]\\w*",Co="[a-zA-Z_]\\w*",ga="\\b\\d+(\\.\\d+)?",ha="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",xa="\\b(0b[01]+)",yl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",vl=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=at(t,/.*\b/,e.binary,/\b.*/)),je({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},gn={begin:"\\\\[\\s\\S]",relevance:0},wl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[gn]},El={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[gn]},Sl={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},cr=function(e,t,n={}){let r=je({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let o=Eo("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:at(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Cl=cr("//","$"),kl=cr("/\\*","\\*/"),Al=cr("#","$"),Ml={scope:"number",begin:ga,relevance:0},Nl={scope:"number",begin:ha,relevance:0},Tl={scope:"number",begin:xa,relevance:0},Rl={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[gn,{begin:/\[/,end:/\]/,relevance:0,contains:[gn]}]},_l={scope:"title",begin:ma,relevance:0},Il={scope:"title",begin:Co,relevance:0},Dl={begin:"\\.\\s*"+Co,relevance:0},Ol=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})},ir=Object.freeze({__proto__:null,APOS_STRING_MODE:wl,BACKSLASH_ESCAPE:gn,BINARY_NUMBER_MODE:Tl,BINARY_NUMBER_RE:xa,COMMENT:cr,C_BLOCK_COMMENT_MODE:kl,C_LINE_COMMENT_MODE:Cl,C_NUMBER_MODE:Nl,C_NUMBER_RE:ha,END_SAME_AS_BEGIN:Ol,HASH_COMMENT_MODE:Al,IDENT_RE:ma,MATCH_NOTHING_RE:bl,METHOD_GUARD:Dl,NUMBER_MODE:Ml,NUMBER_RE:ga,PHRASAL_WORDS_MODE:Sl,QUOTE_STRING_MODE:El,REGEXP_MODE:Rl,RE_STARTERS_RE:yl,SHEBANG:vl,TITLE_MODE:_l,UNDERSCORE_IDENT_RE:Co,UNDERSCORE_TITLE_MODE:Il});function Ll(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Fl(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function Pl(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Ll,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Bl(e,t){Array.isArray(e.illegal)&&(e.illegal=Eo(...e.illegal))}function zl(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Hl(e,t){e.relevance===void 0&&(e.relevance=1)}var $l=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");let n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=at(n.beforeMatch,fa(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},jl=["of","and","for","in","not","or","if","then","parent","list","value"],Vl="keyword";function ba(e,t,n=Vl){let r=Object.create(null);return typeof e=="string"?o(n,e.split(" ")):Array.isArray(e)?o(n,e):Object.keys(e).forEach(function(c){Object.assign(r,ba(e[c],t,c))}),r;function o(c,i){t&&(i=i.map(s=>s.toLowerCase())),i.forEach(function(s){let a=s.split("|");r[a[0]]=[c,Ul(a[0],a[1])]})}}function Ul(e,t){return t?Number(t):Gl(e)?0:1}function Gl(e){return jl.includes(e.toLowerCase())}var aa={},it=e=>{console.error(e)},sa=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Ct=(e,t)=>{aa[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),aa[`${e}/${t}`]=!0)},sr=new Error;function ya(e,t,{key:n}){let r=0,o=e[n],c={},i={};for(let s=1;s<=t.length;s++)i[s+r]=o[s],c[s+r]=!0,r+=da(t[s-1]);e[n]=i,e[n]._emit=c,e[n]._multi=!0}function Yl(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw it("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),sr;if(typeof e.beginScope!="object"||e.beginScope===null)throw it("beginScope must be object"),sr;ya(e,e.begin,{key:"beginScope"}),e.begin=So(e.begin,{joinWith:""})}}function Wl(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw it("skip, excludeEnd, returnEnd not compatible with endScope: {}"),sr;if(typeof e.endScope!="object"||e.endScope===null)throw it("endScope must be object"),sr;ya(e,e.end,{key:"endScope"}),e.end=So(e.end,{joinWith:""})}}function ql(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Xl(e){ql(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Yl(e),Wl(e)}function Jl(e){function t(i,s){return new RegExp(mn(i),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,a){a.position=this.position++,this.matchIndexes[this.matchAt]=a,this.regexes.push([a,s]),this.matchAt+=da(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let s=this.regexes.map(a=>a[1]);this.matcherRe=t(So(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;let a=this.matcherRe.exec(s);if(!a)return null;let l=a.findIndex((m,P)=>P>0&&m!==void 0),C=this.matchIndexes[l];return a.splice(0,l),Object.assign(a,C)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];let a=new n;return this.rules.slice(s).forEach(([l,C])=>a.addRule(l,C)),a.compile(),this.multiRegexes[s]=a,a}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,a){this.rules.push([s,a]),a.type==="begin"&&this.count++}exec(s){let a=this.getMatcher(this.regexIndex);a.lastIndex=this.lastIndex;let l=a.exec(s);if(this.resumingScanAtSamePosition()&&!(l&&l.index===this.lastIndex)){let C=this.getMatcher(0);C.lastIndex=this.lastIndex+1,l=C.exec(s)}return l&&(this.regexIndex+=l.position+1,this.regexIndex===this.count&&this.considerAll()),l}}function o(i){let s=new r;return i.contains.forEach(a=>s.addRule(a.begin,{rule:a,type:"begin"})),i.terminatorEnd&&s.addRule(i.terminatorEnd,{type:"end"}),i.illegal&&s.addRule(i.illegal,{type:"illegal"}),s}function c(i,s){let a=i;if(i.isCompiled)return a;[Fl,zl,Xl,$l].forEach(C=>C(i,s)),e.compilerExtensions.forEach(C=>C(i,s)),i.__beforeBegin=null,[Pl,Bl,Hl].forEach(C=>C(i,s)),i.isCompiled=!0;let l=null;return typeof i.keywords=="object"&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),l=i.keywords.$pattern,delete i.keywords.$pattern),l=l||/\w+/,i.keywords&&(i.keywords=ba(i.keywords,e.case_insensitive)),a.keywordPatternRe=t(l,!0),s&&(i.begin||(i.begin=/\B|\b/),a.beginRe=t(a.begin),!i.end&&!i.endsWithParent&&(i.end=/\B|\b/),i.end&&(a.endRe=t(a.end)),a.terminatorEnd=mn(a.end)||"",i.endsWithParent&&s.terminatorEnd&&(a.terminatorEnd+=(i.end?"|":"")+s.terminatorEnd)),i.illegal&&(a.illegalRe=t(i.illegal)),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map(function(C){return Zl(C==="self"?i:C)})),i.contains.forEach(function(C){c(C,a)}),i.starts&&c(i.starts,s),a.matcher=o(a),a}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=je(e.classNameAliases||{}),c(e)}function va(e){return e?e.endsWithParent||va(e.starts):!1}function Zl(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return je(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:va(e)?je(e,{starts:e.starts?je(e.starts):null}):Object.isFrozen(e)?je(e):e}var Ql="11.11.1",wo=class extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}},xo=pa,ca=je,la=Symbol("nomatch"),Kl=7,wa=function(e){let t=Object.create(null),n=Object.create(null),r=[],o=!0,c="Could not find the language '{}', did you forget to load/include a language module?",i={disableAutodetect:!0,name:"Plain text",contains:[]},s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:vo};function a(p){return s.noHighlightRe.test(p)}function l(p){let x=p.className+" ";x+=p.parentNode?p.parentNode.className:"";let A=s.languageDetectRe.exec(x);if(A){let O=me(A[1]);return O||(sa(c.replace("{}",A[1])),sa("Falling back to no-highlight mode for this block.",p)),O?A[1]:"no-highlight"}return x.split(/\s+/).find(O=>a(O)||me(O))}function C(p,x,A){let O="",Y="";typeof x=="object"?(O=p,A=x.ignoreIllegals,Y=x.language):(Ct("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ct("10.7.0",`Please use highlight(code, options) instead.
2
+ https://github.com/highlightjs/highlight.js/issues/2277`),Y=p,O=x),A===void 0&&(A=!0);let fe={code:O,language:Y};w("before:highlight",fe);let Ie=fe.result?fe.result:m(fe.language,fe.code,A);return Ie.code=fe.code,w("after:highlight",Ie),Ie}function m(p,x,A,O){let Y=Object.create(null);function fe(v,M){return v.keywords[M]}function Ie(){if(!D.keywords){Z.addText(j);return}let v=0;D.keywordPatternRe.lastIndex=0;let M=D.keywordPatternRe.exec(j),L="";for(;M;){L+=j.substring(v,M.index);let H=he.case_insensitive?M[0].toLowerCase():M[0],ne=fe(D,H);if(ne){let[Ce,_a]=ne;if(Z.addText(L),L="",Y[H]=(Y[H]||0)+1,Y[H]<=Kl&&(En+=_a),Ce.startsWith("_"))L+=M[0];else{let Ia=he.classNameAliases[Ce]||Ce;ge(M[0],Ia)}}else L+=M[0];v=D.keywordPatternRe.lastIndex,M=D.keywordPatternRe.exec(j)}L+=j.substring(v),Z.addText(L)}function vn(){if(j==="")return;let v=null;if(typeof D.subLanguage=="string"){if(!t[D.subLanguage]){Z.addText(j);return}v=m(D.subLanguage,j,!0,Ro[D.subLanguage]),Ro[D.subLanguage]=v._top}else v=R(j,D.subLanguage.length?D.subLanguage:null);D.relevance>0&&(En+=v.relevance),Z.__addSublanguage(v._emitter,v.language)}function le(){D.subLanguage!=null?vn():Ie(),j=""}function ge(v,M){v!==""&&(Z.startScope(M),Z.addText(v),Z.endScope())}function Ao(v,M){let L=1,H=M.length-1;for(;L<=H;){if(!v._emit[L]){L++;continue}let ne=he.classNameAliases[v[L]]||v[L],Ce=M[L];ne?ge(Ce,ne):(j=Ce,Ie(),j=""),L++}}function Mo(v,M){return v.scope&&typeof v.scope=="string"&&Z.openNode(he.classNameAliases[v.scope]||v.scope),v.beginScope&&(v.beginScope._wrap?(ge(j,he.classNameAliases[v.beginScope._wrap]||v.beginScope._wrap),j=""):v.beginScope._multi&&(Ao(v.beginScope,M),j="")),D=Object.create(v,{parent:{value:D}}),D}function No(v,M,L){let H=hl(v.endRe,L);if(H){if(v["on:end"]){let ne=new ar(v);v["on:end"](M,ne),ne.isMatchIgnored&&(H=!1)}if(H){for(;v.endsParent&&v.parent;)v=v.parent;return v}}if(v.endsWithParent)return No(v.parent,M,L)}function Aa(v){return D.matcher.regexIndex===0?(j+=v[0],1):(mr=!0,0)}function Ma(v){let M=v[0],L=v.rule,H=new ar(L),ne=[L.__beforeBegin,L["on:begin"]];for(let Ce of ne)if(Ce&&(Ce(v,H),H.isMatchIgnored))return Aa(M);return L.skip?j+=M:(L.excludeBegin&&(j+=M),le(),!L.returnBegin&&!L.excludeBegin&&(j=M)),Mo(L,v),L.returnBegin?0:M.length}function Na(v){let M=v[0],L=x.substring(v.index),H=No(D,v,L);if(!H)return la;let ne=D;D.endScope&&D.endScope._wrap?(le(),ge(M,D.endScope._wrap)):D.endScope&&D.endScope._multi?(le(),Ao(D.endScope,v)):ne.skip?j+=M:(ne.returnEnd||ne.excludeEnd||(j+=M),le(),ne.excludeEnd&&(j=M));do D.scope&&Z.closeNode(),!D.skip&&!D.subLanguage&&(En+=D.relevance),D=D.parent;while(D!==H.parent);return H.starts&&Mo(H.starts,v),ne.returnEnd?0:M.length}function Ta(){let v=[];for(let M=D;M!==he;M=M.parent)M.scope&&v.unshift(M.scope);v.forEach(M=>Z.openNode(M))}let wn={};function To(v,M){let L=M&&M[0];if(j+=v,L==null)return le(),0;if(wn.type==="begin"&&M.type==="end"&&wn.index===M.index&&L===""){if(j+=x.slice(M.index,M.index+1),!o){let H=new Error(`0 width match regex (${p})`);throw H.languageName=p,H.badRule=wn.rule,H}return 1}if(wn=M,M.type==="begin")return Ma(M);if(M.type==="illegal"&&!A){let H=new Error('Illegal lexeme "'+L+'" for mode "'+(D.scope||"<unnamed>")+'"');throw H.mode=D,H}else if(M.type==="end"){let H=Na(M);if(H!==la)return H}if(M.type==="illegal"&&L==="")return j+=`
3
+ `,1;if(dr>1e5&&dr>M.index*3)throw new Error("potential infinite loop, way more iterations than matches");return j+=L,L.length}let he=me(p);if(!he)throw it(c.replace("{}",p)),new Error('Unknown language: "'+p+'"');let Ra=Jl(he),fr="",D=O||Ra,Ro={},Z=new s.__emitter(s);Ta();let j="",En=0,Ue=0,dr=0,mr=!1;try{if(he.__emitTokens)he.__emitTokens(x,Z);else{for(D.matcher.considerAll();;){dr++,mr?mr=!1:D.matcher.considerAll(),D.matcher.lastIndex=Ue;let v=D.matcher.exec(x);if(!v)break;let M=x.substring(Ue,v.index),L=To(M,v);Ue=v.index+L}To(x.substring(Ue))}return Z.finalize(),fr=Z.toHTML(),{language:p,value:fr,relevance:En,illegal:!1,_emitter:Z,_top:D}}catch(v){if(v.message&&v.message.includes("Illegal"))return{language:p,value:xo(x),illegal:!0,relevance:0,_illegalBy:{message:v.message,index:Ue,context:x.slice(Ue-100,Ue+100),mode:v.mode,resultSoFar:fr},_emitter:Z};if(o)return{language:p,value:xo(x),illegal:!1,relevance:0,errorRaised:v,_emitter:Z,_top:D};throw v}}function P(p){let x={value:xo(p),illegal:!1,relevance:0,_top:i,_emitter:new s.__emitter(s)};return x._emitter.addText(p),x}function R(p,x){x=x||s.languages||Object.keys(t);let A=P(p),O=x.filter(me).filter(Mt).map(le=>m(le,p,!1));O.unshift(A);let Y=O.sort((le,ge)=>{if(le.relevance!==ge.relevance)return ge.relevance-le.relevance;if(le.language&&ge.language){if(me(le.language).supersetOf===ge.language)return 1;if(me(ge.language).supersetOf===le.language)return-1}return 0}),[fe,Ie]=Y,vn=fe;return vn.secondBest=Ie,vn}function $(p,x,A){let O=x&&n[x]||A;p.classList.add("hljs"),p.classList.add(`language-${O}`)}function W(p){let x=null,A=l(p);if(a(A))return;if(w("before:highlightElement",{el:p,language:A}),p.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",p);return}if(p.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(p)),s.throwUnescapedHTML))throw new wo("One of your code blocks includes unescaped HTML.",p.innerHTML);x=p;let O=x.textContent,Y=A?C(O,{language:A,ignoreIllegals:!0}):R(O);p.innerHTML=Y.value,p.dataset.highlighted="yes",$(p,A,Y.language),p.result={language:Y.language,re:Y.relevance,relevance:Y.relevance},Y.secondBest&&(p.secondBest={language:Y.secondBest.language,relevance:Y.secondBest.relevance}),w("after:highlightElement",{el:p,result:Y,text:O})}function ae(p){s=ca(s,p)}let te=()=>{st(),Ct("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function At(){st(),Ct("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ve=!1;function st(){function p(){st()}if(document.readyState==="loading"){Ve||window.addEventListener("DOMContentLoaded",p,!1),Ve=!0;return}document.querySelectorAll(s.cssSelector).forEach(W)}function hn(p,x){let A=null;try{A=x(e)}catch(O){if(it("Language definition for '{}' could not be registered.".replace("{}",p)),o)it(O);else throw O;A=i}A.name||(A.name=p),t[p]=A,A.rawDefinition=x.bind(null,e),A.aliases&&xn(A.aliases,{languageName:p})}function lr(p){delete t[p];for(let x of Object.keys(n))n[x]===p&&delete n[x]}function ur(){return Object.keys(t)}function me(p){return p=(p||"").toLowerCase(),t[p]||t[n[p]]}function xn(p,{languageName:x}){typeof p=="string"&&(p=[p]),p.forEach(A=>{n[A.toLowerCase()]=x})}function Mt(p){let x=me(p);return x&&!x.disableAutodetect}function pr(p){p["before:highlightBlock"]&&!p["before:highlightElement"]&&(p["before:highlightElement"]=x=>{p["before:highlightBlock"](Object.assign({block:x.el},x))}),p["after:highlightBlock"]&&!p["after:highlightElement"]&&(p["after:highlightElement"]=x=>{p["after:highlightBlock"](Object.assign({block:x.el},x))})}function bn(p){pr(p),r.push(p)}function yn(p){let x=r.indexOf(p);x!==-1&&r.splice(x,1)}function w(p,x){let A=p;r.forEach(function(O){O[A]&&O[A](x)})}function k(p){return Ct("10.7.0","highlightBlock will be removed entirely in v12.0"),Ct("10.7.0","Please use highlightElement now."),W(p)}Object.assign(e,{highlight:C,highlightAuto:R,highlightAll:st,highlightElement:W,highlightBlock:k,configure:ae,initHighlighting:te,initHighlightingOnLoad:At,registerLanguage:hn,unregisterLanguage:lr,listLanguages:ur,getLanguage:me,registerAliases:xn,autoDetection:Mt,inherit:ca,addPlugin:bn,removePlugin:yn}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=Ql,e.regex={concat:at,lookahead:fa,either:Eo,optional:ml,anyNumberOfTimes:dl};for(let p in ir)typeof ir[p]=="object"&&ua(ir[p]);return Object.assign(e,ir),e},kt=wa({});kt.newInstance=()=>wa({});Ea.exports=kt;kt.HighlightJS=kt;kt.default=kt});var De={},tu=Symbol("terminator");function Va(e,t){let n=!1,r={error:o,unsubscribe:c,get closed(){return n},signal:new Oe,next(i){if(!n)try{e.next?.(i)}catch(s){o(s)}},complete(){if(!n)try{e.complete?.()}finally{c()}}};e.signal?.subscribe(c);function o(i){if(n)throw i;if(!e.error)throw c(),i;try{e.error(i)}finally{c()}}function c(){n||(n=!0,r.signal.next())}try{t?.(r)}catch(i){o(i)}return r}var _=class{__subscribe;constructor(t){this.__subscribe=t}then(t,n){return Ya(this).then(t,n)}pipe(...t){return t.reduce((n,r)=>r(n),this)}subscribe(t){return Va(!t||typeof t=="function"?{next:t}:t,this.__subscribe)}},Ge=class extends _{closed=!1;signal=new Oe;observers=new Set;constructor(){super(t=>this.onSubscribe(t))}next(t){if(!this.closed)for(let n of Array.from(this.observers))n.closed||n.next(t)}error(t){if(!this.closed){this.closed=!0;let n=!1,r;for(let o of Array.from(this.observers))try{o.error(t)}catch(c){n=!0,r=c}if(n)throw r}}complete(){this.closed||(this.closed=!0,Array.from(this.observers).forEach(t=>t.complete()),this.observers.clear())}onSubscribe(t){this.closed?t.complete():(this.observers.add(t),t.signal.subscribe(()=>this.observers.delete(t)))}},Oe=class extends _{closed=!1;observers=new Set;constructor(){super(t=>{this.closed?(t.next(),t.complete()):this.observers.add(t)})}next(){if(!this.closed){this.closed=!0;for(let t of Array.from(this.observers))t.closed||(t.next(),t.complete());this.observers.clear()}}},Sn=class extends Ge{queue=[];emitting=!1;next(t){if(!this.closed)if(this.emitting)this.queue.push(t);else{for(this.emitting=!0,super.next(t);this.queue.length;)super.next(this.queue.shift());this.emitting=!1}}},Nt=class extends Ge{currentValue;constructor(t){super(),this.currentValue=t}get value(){return this.currentValue}next(t){this.currentValue=t,super.next(t)}onSubscribe(t){let n=super.onSubscribe(t);return this.closed||t.next(this.currentValue),n}},hr=class extends Ge{bufferSize;buffer=[];hasError=!1;lastError;constructor(t=1/0){super(),this.bufferSize=t}error(t){this.hasError=!0,this.lastError=t,super.error(t)}next(t){return this.buffer.length===this.bufferSize&&this.buffer.shift(),this.buffer.push(t),super.next(t)}onSubscribe(t){this.observers.add(t),this.buffer.forEach(n=>t.next(n)),this.hasError?t.error(this.lastError):this.closed&&t.complete(),t.signal.subscribe(()=>this.observers.delete(t))}},ct=class extends Ge{$value=De;get hasValue(){return this.$value!==De}get value(){if(this.$value===De)throw new Error("Reference not initialized");return this.$value}next(t){return this.$value=t,super.next(t)}onSubscribe(t){!this.closed&&this.$value!==De&&t.next(this.$value),super.onSubscribe(t)}},xr=class extends Error{message="No elements in sequence"};function ke(...e){return new _(t=>{let n=0,r;function o(){let c=e[n++];t.closed?t.complete():(r?.next(),c?.subscribe({next:t.next,error:t.error,complete:o,signal:r=new Oe}))}t.signal.subscribe(()=>r?.next()),o()})}function Q(e){return new _(t=>{e().subscribe(t)})}function Io(e){return new _(t=>{for(let n of e)t.closed||t.next(n);t.complete()})}function Do(e){return new _(t=>{e.then(n=>{t.closed||t.next(n),t.complete()}).catch(n=>t.error(n))})}function Cn(e){return Q(()=>Do(e()))}function Ua(e){return new _(t=>{for(let n of e)t.closed||t.next(n);t.complete()})}function kn(e){return e instanceof _?e:Array.isArray(e)?Io(e):e instanceof Promise?Do(e):Ua(e)}function F(...e){return Io(e)}function Ga(e){return new Promise((t,n)=>{let r=De;e.subscribe({next:o=>r=o,error:o=>n(o),complete:()=>t(r)})})}function Ya(e){return Ga(e).then(t=>t===De?void 0:t)}function Ye(e,t){return Ae(n=>({next:e(n),unsubscribe:t}))}function Ae(e){return t=>new _(n=>{let r=e(n,t);n.signal.subscribe(()=>r.unsubscribe?.()),r.error||(r.error=n.error),r.complete||(r.complete=n.complete),r.signal=n.signal,t.subscribe(r)})}function br(e){return Ye(t=>n=>t.next(e(n)))}function Wa(e){let t=De;return Ye(n=>r=>{let o=e(r);o!==t&&(t=o,n.next(o))})}function qa(e,t){return Ae(n=>{let r=t,o=0;return{next(c){r=e(r,c,o++)},complete(){n.next(r),n.complete()}}})}function Xa(e){return Ae(t=>{let n=!0,r;return{next(o){n&&(n=!1,t.next(o),r=setTimeout(()=>n=!0,e))},unsubscribe:()=>clearTimeout(r)}})}function We(e){return new _(t=>{let n=setTimeout(()=>{t.next(),t.complete()},e);t.signal.subscribe(()=>clearTimeout(n))})}function Ja(e,t=We){return Oo(n=>t(e).map(()=>n))}function Oo(e){return t=>K(n=>{let r=!1,o=!1,c,i=()=>{c?.next(),r=!1,o&&n.complete()},s=new Oe;n.signal.subscribe(()=>{i(),s.next()}),t.subscribe({next(a){i(),c=new Oe,r=!0,e(a).subscribe({next:n.next,error:n.error,complete:i,signal:c})},error:n.error,complete(){o=!0,r||n.complete()},signal:s})})}function Za(e){return t=>K(n=>{let r=n.signal,o=0,c=0,i=!1;t.subscribe({next:s=>{o++,e(s).subscribe({next:n.next,error:n.error,complete:()=>{c++,i&&c===o&&n.complete()},signal:r})},error:n.error,complete(){i=!0,c===o&&n.complete()},signal:r})})}function Qa(e){return Ae(t=>{let n=!0;return{next(r){n&&(n=!1,e(r).subscribe({next:t.next,error:t.error,complete:()=>n=!0,signal:t.signal}))}}})}function An(e){return Ye(t=>n=>{e(n)&&t.next(n)})}function Ka(e){return Ye(t=>n=>{e-- >0&&!t.closed&&t.next(n),(e<=0||t.closed)&&t.complete()})}function es(e){return Ye(t=>n=>{!t.closed&&e(n)?t.next(n):t.complete()})}function ts(){let e=!1;return Ae(t=>({next(n){e||(e=!0,t.next(n),t.complete())},complete(){t.closed||t.error(new xr)}}))}function Tt(e){return Ye(t=>n=>{e(n),t.next(n)})}function ns(e){return Ae((t,n)=>{let r,o={next:t.next,error(c){try{if(t.closed)return;let i=e(c,n);i&&(r?.next(),r=new Oe,i.subscribe({...o,signal:r}))}catch(i){t.error(i)}},unsubscribe:()=>r?.next()};return o})}function rs(){return Ye(e=>{let t=De;return n=>{n!==t&&(t=n,e.next(n))}})}function os(){return e=>{let t=new hr(1),n=!1;return K(r=>{t.subscribe(r),n||(n=!0,e.subscribe(t))})}}function is(){return e=>{let t,n=0;function r(){--n===0&&t.signal.next()}return K(o=>{o.signal.subscribe(r),n++===0?(t=qe(),t.subscribe(o),e.subscribe(t)):t.subscribe(o)})}}function as(){return e=>{let t=new Ge,n,r,o=!1,c=!1;return K(i=>{c?(i.next(r),i.complete()):t.subscribe(i),n??=e.subscribe({next:s=>{o=!0,r=s},error:i.error,complete(){c=!0,o&&t.next(r),t.complete()},signal:i.signal})})}}function f(...e){return e.length===1?e[0]:new _(t=>{let n=e.length;for(let r of e)t.closed||r.subscribe({next:t.next,error:t.error,complete(){n--===1&&t.complete()},signal:t.signal})})}function oe(...e){return e.length===0?T:new _(t=>{let n=e.length,r=n,o=0,c=!1,i=new Array(n),s=new Array(n);e.forEach((a,l)=>a.subscribe({next(C){s[l]=C,i[l]||(i[l]=!0,++o>=r&&(c=!0)),c&&t.next(s.slice(0))},error:t.error,complete(){--n<=0&&t.complete()},signal:t.signal}))})}function ss(e){return Ae(t=>({next:t.next,unsubscribe:e}))}function cs(){return An(()=>!1)}var T=new _(e=>e.complete());function ie(e){return new Nt(e)}function K(e){return new _(e)}function qe(){return new ct}var _o={catchError:ns,debounceTime:Ja,distinctUntilChanged:rs,exhaustMap:Qa,filter:An,finalize:ss,first:ts,ignoreElements:cs,map:br,mergeMap:Za,publishLast:as,reduce:qa,select:Wa,share:is,shareLatest:os,switchMap:Oo,take:Ka,takeWhile:es,tap:Tt,throttleTime:Xa};for(let e in _o)_.prototype[e]=function(...t){return this.pipe(_o[e](...t))};function S(e,t,n){return new _(r=>{let o=r.next.bind(r);e.addEventListener(t,o,n),r.signal.subscribe(()=>e.removeEventListener(t,o,n))})}function Mn(e){return yr(e,{childList:!0})}function Nn(e,t){return yr(e,{attributes:!0,attributeFilter:t})}function yr(e,t={attributes:!0,childList:!0}){return new _(n=>{let r=new MutationObserver(o=>o.forEach(c=>{for(let i of c.addedNodes)n.next({type:"added",target:e,value:i});for(let i of c.removedNodes)n.next({type:"removed",target:e,value:i});c.type==="characterData"?n.next({type:"characterData",target:e}):c.attributeName&&n.next({type:"attribute",target:e,value:c.attributeName})}));r.observe(e,t),n.signal.subscribe(()=>r.disconnect())})}function Tn(e){return S(e,"keydown").filter(t=>t.key===" "||t.key==="Enter"?(t.preventDefault(),!0):!1)}function q(e){return S(e,"click")}function Rn(e,t){return new _(n=>{let r=new IntersectionObserver(o=>{for(let c of o)n.next(c)},t);r.observe(e),n.signal.subscribe(()=>r.disconnect())})}function Lo(e){return Rn(e).map(t=>t.isIntersecting)}function Me(e){return Rn(e).filter(t=>t.isIntersecting).first()}function ls(e){let t;return function(...n){t&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{e.apply(this,n),t=0})}}function Fo(e){return Ae(t=>{let n=ls(o=>{t.closed||(e&&e(o),t.next(o),r&&t.complete())}),r=!1;return{next:n,complete:()=>r=!0}})}function Po(){return Q(()=>document.readyState!=="loading"?F(!0):S(window,"DOMContentLoaded").first().map(()=>!0))}function _n(e,t,n){let r=new CustomEvent(t,n);e.dispatchEvent(r)}function In(e,t){let n;return f(Q(()=>(n=e.childNodes,n?F():T)),Ne().switchMap(()=>e.childNodes!==n?F():T),yr(e,{childList:!0,...t}).map(()=>{}))}function Ne(){return Q(()=>document.readyState==="complete"?F(!0):S(window,"load").first().map(()=>!0))}function Dn(...e){return new _(t=>{let n=new ResizeObserver(r=>r.forEach(o=>t.next(o)));for(let r of e)n.observe(r);t.signal.subscribe(()=>n.disconnect())})}function Rt(e){return e.offsetParent===null&&!(e.offsetWidth&&e.offsetHeight)}function vr(e,t,n){return r=>ke(F(e?r.matches(e):!1),S(r,t).switchMap(()=>f(F(!0),S(r,n).map(()=>e?r.matches(e):!1))))}var ou=vr("","animationstart","animationend"),wr=vr("","mouseenter","mouseleave"),us=vr(":focus,:focus-within","focusin","focusout"),Er=e=>oe(wr(e),us(e)).map(([t,n])=>t||n);function Bo(e,t,n){return t=t?.toLowerCase(),S(e,"keydown",n).filter(r=>!t||r.key?.toLowerCase()===t)}function _t(e){return e instanceof PointerEvent&&e.pointerType===""||e instanceof MouseEvent&&e.type==="click"&&e.detail===0}function Xe(e){let t=e.getRootNode();return t instanceof Document||t instanceof ShadowRoot?t:void 0}var ps=Tt(e=>console.trace(e));_.prototype.log=function(){return this.pipe(ps)};_.prototype.raf=function(e){return this.pipe(Fo(e))};var ee=Symbol("bindings"),fs={},lt=Symbol("augments"),Je=Symbol("parser"),Cr=class{bindings;messageHandlers;internals;attributes$=new Sn;wasConnected=!1;wasInitialized=!1;subscriptions;prebind;addMessageHandler(t){(this.messageHandlers??=new Set).add(t)}removeMessageHandler(t){this.messageHandlers?.delete(t)}message(t,n){let r=!1;if(this.messageHandlers)for(let o of this.messageHandlers)o.type===t&&(o.next(n),r||=o.stopPropagation);return r}add(t){if(this.wasConnected)throw new Error("Cannot bind connected component.");this.wasInitialized?(this.bindings??=[]).push(t):(this.prebind??=[]).push(t)}connect(){if(this.wasConnected=!0,!this.subscriptions&&(this.prebind||this.bindings)){let t=this.subscriptions=[];if(this.bindings)for(let n of this.bindings)t.push(n.subscribe());if(this.prebind)for(let n of this.prebind)t.push(n.subscribe())}}disconnect(){this.subscriptions?.forEach(t=>t.unsubscribe()),this.subscriptions=void 0}},Ln=Symbol("css"),g=class extends HTMLElement{static observedAttributes;static[lt];static[Je];[ee]=new Cr;[Ln];connectedCallback(){this[ee].wasInitialized=!0,this[ee].wasConnected||this.constructor[lt]?.forEach(t=>t(this)),this[ee].connect()}disconnectedCallback(){this[ee].disconnect()}attributeChangedCallback(t,n,r){let o=this.constructor[Je]?.[t]??ds;n!==r&&(this[t]=o(r,this[t]))}};function ds(e,t){let n=t===!1||t===!0;return e===""?n?!0:"":e===null?n?!1:void 0:e}function zo(e,t){e.hasOwnProperty(lt)||(e[lt]=e[lt]?.slice(0)??[]),e[lt]?.push(t)}var ms={mode:"open"};function z(e){return e.shadowRoot??e.attachShadow(ms)}function Ho(e,t){t instanceof Node?z(e).appendChild(t):e[ee].add(t)}function gs(e,t){t.length&&zo(e,n=>{for(let r of t){let o=r.call(e,n);o&&o!==n&&Ho(n,o)}})}function hs(e,t){fs[e]=t,customElements.define(e,t)}function xe(e){return e[ee].internals??=e.attachInternals()}function u(e,{init:t,augment:n,tagName:r}){if(t)for(let o of t)o(e);n&&gs(e,n),r&&hs(r,e)}function Le(e){return ke(F(e),e[ee].attributes$.map(()=>e))}function V(e,t){return e[ee].attributes$.pipe(An(n=>n.attribute===t),br(()=>e[t]))}function h(e,t){return f(V(e,t),Q(()=>F(e[t])))}function xs(e){let t=e.observedAttributes;return t&&!e.hasOwnProperty("observedAttributes")&&(t=e.observedAttributes?.slice(0)),e.observedAttributes=t||[]}function It(e,t,n){return n===!1||n===null||n===void 0?n=null:n===!0&&(n=""),n===null?e.removeAttribute(t):e.setAttribute(t,String(n)),n}function bs(e,t,n){e.hasOwnProperty(Je)||(e[Je]={...e[Je]}),e[Je]&&(e[Je][t]=n)}function y(e,t){return n=>{t?.observe!==!1&&xs(n).push(e),t?.parse&&bs(n,e,t.parse);let r=`$$${e}`,o=n.prototype,c=Object.getOwnPropertyDescriptor(o,e);c&&Object.defineProperty(o,r,c);let i=t?.persist,s={enumerable:!0,configurable:!1,get(){return this[r]},set(a){this[r]!==a?(this[r]=a,i?.(this,e,a),this[ee].attributes$.next({target:this,attribute:e,value:a})):c?.set&&(i?.(this,e,a),this[r]=a)}};zo(n,a=>{if(c||(a[r]=a[e]),Object.defineProperty(a,e,s),i?.(a,e,a[e]),t?.render){let l=t.render(a);l&&Ho(a,l)}})}}function b(e){return y(e,{persist:It,observe:!0})}function $o(e){let t=`on${e}`;return y(t,{render(n){return h(n,t).switchMap(r=>r?new _(o=>{let c=i=>{i.target===n&&n[t]?.call(n,i)};n.addEventListener(e,c),o.signal.subscribe(()=>n.removeEventListener(e,c))}):T)},parse(n){return n?new Function("event",n):void 0}})}function X(e){return y(e,{observe:!1})}function I(){return document.createElement("slot")}function jo(e){return t=>{let[n,r]=e();return t[ee].add(n),r}}function ys(e,t){let n=document.createTextNode("");return e[ee].add(t.tap(r=>n.textContent=r)),n}var Sr=document.createDocumentFragment();function On(e,t,n=e){if(t!=null)if(Array.isArray(t)){for(let r of t)On(e,r,Sr);n!==Sr&&n.appendChild(Sr)}else e instanceof g&&t instanceof _?n.appendChild(ys(e,t)):t instanceof Node?n.appendChild(t):e instanceof g&&typeof t=="function"?On(e,t(e),n):n.appendChild(document.createTextNode(t))}function Vo(e,t){for(let n in t){let r=t[n];e instanceof g?r instanceof _?e[ee].add(n==="$"?r:r.tap(o=>e[n]=o)):n==="$"&&typeof r=="function"?e[ee].add(r(e)):e[n]=r:e[n]=r}}function vs(e,t){return e.constructor.observedAttributes?.includes(t)}function Uo(e,t){let n=e instanceof g&&vs(e,t)?V(e,t):Nn(e,[t]).map(()=>e[t]);return f(n,Q(()=>F(e[t])))}function Fn(e,t,n){return y(e,{parse(r){if(r==="Infinity"||r==="infinity")return 1/0;let o=r===null?void 0:Number(r);return t!==void 0&&(o===void 0||o<t||isNaN(o))&&(o=t),n!==void 0&&o!==void 0&&o>n&&(o=n),o}})}function ue(e,t,n){for(let r=e.parentElement;r;r=r.parentElement)if(r[ee]?.message(t,n))return}function se(e,t,n=!0){return new _(r=>{let o={type:t,next:r.next,stopPropagation:n};e[ee].addMessageHandler(o),r.signal.subscribe(()=>e[ee].removeMessageHandler(o))})}function N(e,t,...n){let r=typeof e=="string"?document.createElement(e):new e;return t&&Vo(r,t),n.length&&On(r,n),r}function E(e,t,...n){if(e!==E&&typeof e=="function"&&!(e.prototype instanceof g))return n.length&&((t??={}).children=n),e(t);let r=e===E?document.createDocumentFragment():typeof e=="string"?document.createElement(e):new e;return t&&Vo(r,t),n.length&&On(r,n),r}function ws(e,t){return n=>new _(()=>{n.hasAttribute(e)||n.setAttribute(e,t)})}function Go(e,t){return Tt(n=>e.setAttribute("aria-"+t,n===!0?"true":n===!1?"false":n.toString()))}function G(e){return ws("role",e)}var Yo=0;function Te(e){return e.id||=`cxl__${Yo++}`}function Wo(e){return Uo(e,"id").map(t=>(t||(e.id=`cxl__${Yo++}`),e.id))}var ut=d(":host{display:contents}"),Cs=[-2,-1,0,1,2,3,4,5],ti=["display-large","display-medium","display-small","body-large","body-medium","body-small","label-large","label-medium","label-small","headline-large","headline-medium","headline-small","title-large","title-medium","title-small","code"],Dt=qe(),Pn=ie(""),be=d(`:host([disabled]) {
4
4
  cursor: default;
5
5
  pointer-events: var(--cxl-override-pointer-events, none);
6
- }`),ts=(()=>{for(let e of Array.from(document.fonts.keys()))if(e.family==="Roboto")return!0;return!1})(),Kr={primary:"#186584","on-primary":"#FFFFFF","primary-container":"#C1E8FF","on-primary-container":"#004D67",secondary:"#4E616C","on-secondary":"#FFFFFF","secondary-container":"#D1E6F3","on-secondary-container":"#364954",tertiary:"#5F5A7D","on-tertiary":"#FFFFFF","tertiary-container":"#E5DEFF","on-tertiary-container":"#474364",error:"#BA1A1A","on-error":"#FFFFFF","error-container":"#FFDAD6","on-error-container":"#93000A",background:"#F6FAFE","on-background":"#171C1F",surface:"#F6FAFE","on-surface":"#171C1F","surface-variant":"#DCE3E9","on-surface-variant":"#40484D",outline:"#71787D","outline-variant":"#C0C7CD",shadow:"#000000",scrim:"#000000","inverse-surface":"#2C3134","on-inverse-surface":"#EDF1F5","inverse-primary":"#8ECFF2","primary-fixed":"#C1E8FF","on-primary-fixed":"#001E2B","primary-fixed-dim":"#8ECFF2","on-primary-fixed-variant":"#004D67","secondary-fixed":"#D1E6F3","on-secondary-fixed":"#091E28","secondary-fixed-dim":"#B5C9D7","on-secondary-fixed-variant":"#364954","tertiary-fixed":"#E5DEFF","on-tertiary-fixed":"#1B1736","tertiary-fixed-dim":"#C9C2EA","on-tertiary-fixed-variant":"#474364","surface-dim":"#D6DADE","surface-bright":"#F6FAFE","surface-container-lowest":"#FFFFFF","surface-container-low":"#F0F4F8","surface-container":"#EAEEF2","surface-container-high":"#E5E9ED","surface-container-highest":"#DFE3E7",warning:"#DD2C00","on-warning":"#FFFFFF","warning-container":"#FFF4E5","on-warning-container":"#8C1D18",success:"#2E7D32","on-success":"#FFFFFF","success-container":"#81C784","on-success-container":"#000000"};function eo(e=Kr){return Object.entries(e).map(([t,n])=>`--cxl-color--${t}:${n};--cxl-color-${t}:var(--cxl-color--${t});`).join("")}var H={name:"",animation:{flash:{kf:{opacity:[1,0,1,0,1]},options:{easing:"ease-in"}},spin:{kf:{rotate:["0deg","360deg"]}},pulse:{kf:{rotate:["0deg","360deg"]},options:{easing:"steps(8)"}},openY:{kf:e=>({height:["0",`${e.scrollHeight}px`]})},closeY:{kf:e=>({height:[`${e.scrollHeight}px`,"0"]})},expand:{kf:{scale:[0,1]}},expandX:{kf:{scale:["0 1","1 1"]}},expandY:{kf:{scale:["1 0","1 1"]}},zoomIn:{kf:{scale:[.3,1]}},zoomOut:{kf:{scale:[1,.3]}},scaleUp:{kf:{scale:[1,1.25]}},fadeIn:{kf:[{opacity:0},{opacity:1}]},fadeOut:{kf:[{opacity:1},{opacity:0}]},shakeX:{kf:{translate:["0","-10px","10px","-10px","10px","-10px","10px","-10px","10px","0"]}},shakeY:{kf:{translate:["0","0 -10px","0 10px","0 -10px","0 10px","0 -10px","0 10px","0 -10px","0 10px","0"]}},slideOutLeft:{kf:{translate:["0","-100% 0"]}},slideInLeft:{kf:{translate:["-100% 0","0"]}},slideOutRight:{kf:{translate:["0","100% 0"]}},slideInRight:{kf:{translate:["100% 0","0"]}},slideInUp:{kf:{translate:["0 100%","0"]}},slideInDown:{kf:{translate:["0 -100%","0"]}},slideOutUp:{kf:{translate:["0","0 -100%"]}},slideOutDown:{kf:{translate:["0","0 100%"]}},focus:{kf:[{offset:.1,filter:"brightness(150%)"},{filter:"brightness(100%)"}],options:{duration:500}}},easing:{emphasized:"cubic-bezier(0.2, 0.0, 0, 1.0)",emphasized_accelerate:"cubic-bezier(0.05, 0.7, 0.1, 1.0)",emphasized_decelerate:"cubic-bezier(0.3, 0.0, 0.8, 0.15)",standard:"cubic-bezier(0.2, 0.0, 0, 1.0)",standard_accelerate:"cubic-bezier(0, 0, 0, 1)",standard_decelerate:"cubic-bezier(0.3, 0, 1, 1)"},breakpoints:{xsmall:0,small:600,medium:905,large:1240,xlarge:1920,xxlarge:2560},disableAnimations:!1,prefersReducedMotion:window.matchMedia("(prefers-reduced-motion: reduce)").matches,colors:Kr,imports:ts?void 0:["https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400&family=Roboto:wght@300;400;500;700&display=swap"],globalCss:`:root{
6
+ }`),ni=`
7
+ box-sizing: border-box;
8
+ position: relative;
9
+ display: flex;
10
+ padding: 4px 16px;
11
+ min-height: 56px;
12
+ align-items: center;
13
+ column-gap: 16px;
14
+ ${B("body-medium")}
15
+ `,ks=(()=>{for(let e of Array.from(document.fonts.keys()))if(e.family==="Roboto")return!0;return!1})(),ri={primary:"#186584","on-primary":"#FFFFFF","primary-container":"#C1E8FF","on-primary-container":"#004D67",secondary:"#4E616C","on-secondary":"#FFFFFF","secondary-container":"#D1E6F3","on-secondary-container":"#364954",tertiary:"#5F5A7D","on-tertiary":"#FFFFFF","tertiary-container":"#E5DEFF","on-tertiary-container":"#474364",error:"#BA1A1A","on-error":"#FFFFFF","error-container":"#FFDAD6","on-error-container":"#93000A",background:"#F6FAFE","on-background":"#171C1F",surface:"#F6FAFE","on-surface":"#171C1F","surface-variant":"#DCE3E9","on-surface-variant":"#40484D",outline:"#71787D","outline-variant":"#C0C7CD",shadow:"#000000",scrim:"#000000","inverse-surface":"#2C3134","on-inverse-surface":"#EDF1F5","inverse-primary":"#8ECFF2","primary-fixed":"#C1E8FF","on-primary-fixed":"#001E2B","primary-fixed-dim":"#8ECFF2","on-primary-fixed-variant":"#004D67","secondary-fixed":"#D1E6F3","on-secondary-fixed":"#091E28","secondary-fixed-dim":"#B5C9D7","on-secondary-fixed-variant":"#364954","tertiary-fixed":"#E5DEFF","on-tertiary-fixed":"#1B1736","tertiary-fixed-dim":"#C9C2EA","on-tertiary-fixed-variant":"#474364","surface-dim":"#D6DADE","surface-bright":"#F6FAFE","surface-container-lowest":"#FFFFFF","surface-container-low":"#F0F4F8","surface-container":"#EAEEF2","surface-container-high":"#E5E9ED","surface-container-highest":"#DFE3E7",warning:"#DD2C00","on-warning":"#FFFFFF","warning-container":"#FFF4E5","on-warning-container":"#8C1D18",success:"#2E7D32","on-success":"#FFFFFF","success-container":"#81C784","on-success-container":"#000000"};function oi(e=""){return`
16
+ :host ${e} {
17
+ ${re("surface-container")}
18
+ overflow-y: auto;
19
+ padding: 8px 0;
20
+ min-width: 112px;
21
+ max-width: 280px;
22
+ width: max-content;
23
+ border-radius: var(--cxl-shape-corner-xsmall);
24
+ cursor: default;
25
+ z-index: 2;
26
+ }
27
+ :host([static]) ${e} { max-width: none; }
28
+ `}function ii(e=ri){return Object.entries(e).map(([t,n])=>`--cxl-color--${t}:${n};--cxl-color-${t}:var(--cxl-color--${t});`).join("")}var J={name:"",animation:{flash:{kf:{opacity:[1,0,1,0,1]},options:{easing:"ease-in"}},spin:{kf:{rotate:["0deg","360deg"]}},pulse:{kf:{rotate:["0deg","360deg"]},options:{easing:"steps(8)"}},openY:{kf:e=>({height:["0",`${e.scrollHeight}px`]})},closeY:{kf:e=>({height:[`${e.scrollHeight}px`,"0"]})},expand:{kf:{scale:[0,1]}},expandX:{kf:{scale:["0 1","1 1"]}},expandY:{kf:{scale:["1 0","1 1"]}},zoomIn:{kf:{scale:[.3,1]}},zoomOut:{kf:{scale:[1,.3]}},scaleUp:{kf:{scale:[1,1.25]}},fadeIn:{kf:[{opacity:0},{opacity:1}]},fadeOut:{kf:[{opacity:1},{opacity:0}]},shakeX:{kf:{translate:["0","-10px","10px","-10px","10px","-10px","10px","-10px","10px","0"]}},shakeY:{kf:{translate:["0","0 -10px","0 10px","0 -10px","0 10px","0 -10px","0 10px","0 -10px","0 10px","0"]}},slideOutLeft:{kf:{translate:["0","-100% 0"]}},slideInLeft:{kf:{translate:["-100% 0","0"]}},slideOutRight:{kf:{translate:["0","100% 0"]}},slideInRight:{kf:{translate:["100% 0","0"]}},slideInUp:{kf:{translate:["0 100%","0"]}},slideInDown:{kf:{translate:["0 -100%","0"]}},slideOutUp:{kf:{translate:["0","0 -100%"]}},slideOutDown:{kf:{translate:["0","0 100%"]}},focus:{kf:[{offset:.1,filter:"brightness(150%)"},{filter:"brightness(100%)"}],options:{duration:500}}},easing:{emphasized:"cubic-bezier(0.2, 0.0, 0, 1.0)",emphasized_accelerate:"cubic-bezier(0.05, 0.7, 0.1, 1.0)",emphasized_decelerate:"cubic-bezier(0.3, 0.0, 0.8, 0.15)",standard:"cubic-bezier(0.2, 0.0, 0, 1.0)",standard_accelerate:"cubic-bezier(0, 0, 0, 1)",standard_decelerate:"cubic-bezier(0.3, 0, 1, 1)"},breakpoints:{xsmall:0,small:600,medium:905,large:1240,xlarge:1920,xxlarge:2560},disableAnimations:!1,prefersReducedMotion:window.matchMedia("(prefers-reduced-motion: reduce)").matches,colors:ri,imports:ks?void 0:["https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400&family=Roboto:wght@300;400;500;700&display=swap"],globalCss:`:root{
7
29
  --cxl-color-scrim: rgb(29 27 32 / 0.5); /* neutral 10? #1D1B20 */
8
30
 
9
31
  --cxl-font-family: Roboto;
@@ -60,7 +82,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),P=l,M=p),g===void 0&&(
60
82
  --cxl-shape-corner-xsmall: 4px;
61
83
  --cxl-shape-corner-full: 50vh;
62
84
  }
63
- `,css:""};function Dn(e=""){return`:host ${e} {
85
+ `,css:""};function Ot(e=""){return`:host ${e} {
64
86
  --cxl-mask-hover: color-mix(in srgb, var(--cxl-color-on-surface) 8%, transparent);
65
87
  --cxl-mask-focus: color-mix(in srgb, var(--cxl-color-on-surface) 10%, transparent);
66
88
  --cxl-mask-active: linear-gradient(0, var(--cxl-color-surface-container),var(--cxl-color-surface-container));
@@ -68,8 +90,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`),P=l,M=p),g===void 0&&(
68
90
  :host(:hover) ${e} { background-image: linear-gradient(0, var(--cxl-mask-hover),var(--cxl-mask-hover)); }
69
91
  :host(:focus-visible) ${e} { background-image: linear-gradient(0, var(--cxl-mask-focus),var(--cxl-mask-focus)) }
70
92
  :host{-webkit-tap-highlight-color: transparent}
71
- `}var Qt=y(Dn()),to={"./theme-dark.js":()=>Promise.resolve().then(()=>(Yr(),Wr))},pt=[0,4,8,16,24,32,48,64],Xe,Xr,ns;function G(e,t){return e==="xsmall"?`@media(max-width:${H.breakpoints.small}px){${t}}`:`@media(min-width:${H.breakpoints[e]}px){${t}}`}function Zt(e){return $r(e).map(t=>{let n=H.breakpoints,r=t.contentRect.width,o="xsmall";for(let a in n){if(n[a]>r)return o;o=a}return o})}function rs(e=""){return Object.entries(so).map(([t,n])=>`:host([color=${t}]) ${e}{ ${n} }`).join("")}function Je(e,t,n=""){return no(e,`
72
- ${t?`:host ${n} { ${so[t]} }`:""}
93
+ `}var Bn=d(Ot()),ai={"./theme-dark.js":()=>Promise.resolve().then(()=>(Jo(),Xo))},Ze=[0,4,8,16,24,32,48,64],Fe,Zo,As;function U(e,t){return e==="xsmall"?`@media(max-width:${J.breakpoints.small}px){${t}}`:`@media(min-width:${J.breakpoints[e]}px){${t}}`}function pt(e){return Dn(e).map(t=>{let n=J.breakpoints,r=t.contentRect.width,o="xsmall";for(let c in n){if(n[c]>r)return o;o=c}return o})}function Ms(e=""){return Object.entries(fi).map(([t,n])=>`:host([color=${t}]) ${e}{ ${n} }`).join("")}function ft(e,t,n=""){return si(e,`
94
+ ${t?`:host ${n} { ${fi[t]} }`:""}
73
95
  :host${t?"":"([color])"} ${n} {
74
96
  color: var(--cxl-color-on-surface);
75
97
  background-color: var(--cxl-color-surface);
@@ -78,22 +100,22 @@ https://github.com/highlightjs/highlight.js/issues/2277`),P=l,M=p),g===void 0&&(
78
100
  color: inherit;
79
101
  background-color: transparent;
80
102
  }
81
- ${rs(n)}
82
- `)}function no(e,t){let n=y(t);return b(e,{persist:_n,render:r=>n(r)})}function we(e,t){return no(e,es.map(n=>{let r=t(n);return n===0?`:host ${r}`:`:host([size="${n}"]) ${r}`}).join(""))}function ro(){let e=document.adoptedStyleSheets.indexOf(Xe);e!==-1&&document.adoptedStyleSheets.splice(e,1)}function os(e){Xe&&ro();let t=e.globalCss??"";e.colors&&(t+=`:root{${eo(e.colors)}}`),t&&(Xe=Pe(t),document.adoptedStyleSheets.push(Xe)),ut.next({theme:e,stylesheet:Xe,css:t}),Jt.next(e.name)}var qr="";function oo(e){e?e!==qr&&(typeof e=="string"?import(e):e()).then(t=>os(t.default)):Xe&&(ro(),ut.next(void 0),Jt.next("")),qr=e}function is(e){let t;return ut.tap(n=>{let r=n?.theme.override?.[e.tagName];r?t?t.replace(r):e.shadowRoot?.adoptedStyleSheets.push(t??=Pe(r)):t&&t.replace("")})}function Pe(e){let t=new CSSStyleSheet;return e&&t.replaceSync(e),t}function y(e){let t;return n=>{let r=j(n);if(r.adoptedStyleSheets.push(t??=Pe(e)),!n[Xt])return H.css&&r.adoptedStyleSheets.unshift(ns??=Pe(H.css)),n[Xt]=!0,is(n)}}var io=["background","primary","primary-container","secondary","secondary-container","tertiary","tertiary-container","surface","surface-container","surface-container-low","surface-container-lowest","surface-container-highest","surface-container-high","error","error-container","success","success-container","warning","warning-container","inverse-surface","inverse-primary"],ic=[...io,"inherit"];function Rn(e,t="surface"){return`--cxl-color-${t}: var(--cxl-color--${e});
103
+ ${Ms(n)}
104
+ `)}function si(e,t){let n=d(t);return y(e,{persist:It,render:r=>n(r)})}function ye(e,t){return si(e,Cs.map(n=>{let r=t(n);return n===0?`:host ${r}`:`:host([size="${n}"]) ${r}`}).join(""))}function ci(){let e=Fe?document.adoptedStyleSheets.indexOf(Fe):-1;e!==-1&&document.adoptedStyleSheets.splice(e,1)}function Ns(e){Fe&&ci();let t=e.globalCss??"";e.colors&&(t+=`:root{${ii(e.colors)}}`),t?(Fe=Pe(t),document.adoptedStyleSheets.push(Fe)):Fe=void 0,Dt.next({theme:e,stylesheet:Fe,css:t}),Pn.next(e.name)}var Qo="";function li(e){e?e!==Qo&&(typeof e=="string"?import(e):e()).then(t=>Ns(t.default),t=>console.error(t)):Fe&&(ci(),Dt.next(void 0),Pn.next("")),Qo=e}function Ts(e){let t;return Dt.tap(n=>{let r=n?.theme.override?.[e.tagName];r?t?t.replace(r).catch(o=>console.error(o)):e.shadowRoot?.adoptedStyleSheets.push(t??=Pe(r)):t&&t.replaceSync("")})}function Pe(e){let t=new CSSStyleSheet;return e&&t.replaceSync(e),t}function ui(e,t=""){let n=Pe(t);return z(e).adoptedStyleSheets.push(n),n}function d(e){let t;return n=>{let r=z(n);if(r.adoptedStyleSheets.push(t??=Pe(e)),!n[Ln])return J.css&&r.adoptedStyleSheets.unshift(As??=Pe(J.css)),n[Ln]=!0,Ts(n)}}var pi=["background","primary","primary-container","primary-fixed-dim","primary-fixed","secondary","secondary-container","tertiary","tertiary-container","surface","surface-container","surface-container-low","surface-container-lowest","surface-container-highest","surface-container-high","error","error-container","success","success-container","warning","warning-container","inverse-surface","inverse-primary"],gu=[...pi,"inherit"];function kr(e,t="surface"){return`--cxl-color-${t}: var(--cxl-color--${e});
83
105
  --cxl-color-on-${t}: var(--cxl-color--on-${e}, var(--cxl-color--on-surface));
84
106
  --cxl-color-surface-variant: var(--cxl-color--${e==="surface"?"surface-variant":e});
85
107
  --cxl-color-on-surface-variant: ${e.includes("surface")?"var(--cxl-color--on-surface-variant)":`color-mix(in srgb, var(--cxl-color--on-${e}) 80%, transparent)`};
86
- `}function ve(e){return`${Rn(e)};background-color:var(--cxl-color-surface);color:var(--cxl-color-on-surface);`}var so=io.reduce((e,t)=>(e[t]=`
87
- ${Rn(t)}
88
- ${t==="inverse-surface"?Rn("inverse-primary","primary"):""}
89
- `,e),{inherit:"color:inherit;background-color:inherit;"});function Kt(e=":host"){return`
108
+ `}function re(e){return`${kr(e)};background-color:var(--cxl-color-surface);color:var(--cxl-color-on-surface);`}var fi=pi.reduce((e,t)=>(e[t]=`
109
+ ${kr(t)}
110
+ ${t==="inverse-surface"?kr("inverse-primary","primary"):""}
111
+ `,e),{inherit:"color:inherit;background-color:inherit;"});function dt(e=":host"){return`
90
112
  ${e} {
91
113
  scrollbar-color: var(--cxl-color-outline-variant) var(--cxl-color-surface, transparent);
92
114
  }
93
115
  ${e}::-webkit-scrollbar-track {
94
116
  background-color: var(--cxl-color-surface, transparent);
95
117
  }
96
- `}function L(e){return`font:var(--cxl-font-${e});letter-spacing:var(--cxl-letter-spacing-${e});`}var ss=requestAnimationFrame(()=>fs()),as={},Jr=document.createElement("template"),Qr={};function cs(e){return function(t){let n=e(t),r=Qr[n];if(r)return r.cloneNode(!0);let o=document.createElementNS("http://www.w3.org/2000/svg","svg"),a=()=>(o.dispatchEvent(new ErrorEvent("error")),"");return fetch(n).then(i=>i.ok?i.text():a(),a).then(i=>{if(!i)return;Jr.innerHTML=i;let s=Jr.content.children[0];if(!s)return;let c=s.getAttribute("viewBox");c?o.setAttribute("viewBox",c):s.hasAttribute("width")&&s.hasAttribute("height")&&o.setAttribute("viewBox",`0 0 ${s.getAttribute("width")} ${s.getAttribute("height")}`);for(let f of s.childNodes)o.append(f);Qr[t.name]=o}),o.setAttribute("fill","currentColor"),o}}var ls=cs(({name:e,width:t,fill:n})=>(t!==20&&t!==24&&t!==40&&t!==48&&(t=48),`https://cdn.jsdelivr.net/gh/google/material-design-icons@941fa95/symbols/web/${e}/materialsymbolsoutlined/${e}_${n?"fill1_":""}${t}px.svg`)),us=ls;function ao(e,t={}){let{width:n,height:r}=t;n===void 0&&r===void 0&&(n=r=24);let o=as[e]?.icon()||us({name:e,width:n,fill:t.fill});return t.className&&o.setAttribute("class",t.className),n&&(o.setAttribute("width",`${n}`),r===void 0&&o.setAttribute("height",`${n}`)),r&&(o.setAttribute("height",`${r}`),n===void 0&&o.setAttribute("width",`${r}`)),t.alt&&o.setAttribute("alt",t.alt),o}var On,ps=new Promise(e=>{On=e});function fs(e){cancelAnimationFrame(ss),Xr||(e&&(e.colors&&(H.colors=e.colors),e.globalCss&&(H.globalCss+=e.globalCss)),document.adoptedStyleSheets.push(Xr=Pe(`:root { ${eo(H.colors)} }`+H.globalCss)),H.imports?Promise.allSettled(H.imports.map(t=>{let n=document.createElement("link");return n.rel="stylesheet",n.href=t,document.head.append(n),new Promise((r,o)=>(n.onload=r,n.onerror=o))})).then(On):On())}function co(){return Mr(async()=>{await ps,await document.fonts.ready})}var ds=[y(`
118
+ `}function B(e){return`font:var(--cxl-font-${e});letter-spacing:var(--cxl-letter-spacing-${e});`}var Rs=requestAnimationFrame(()=>Fs()),_s={},Ko=document.createElement("template"),ei={};function Is(e){return function(t){let n=e(t),r=ei[n];if(r)return r.cloneNode(!0);let o=document.createElementNS("http://www.w3.org/2000/svg","svg"),c=()=>(o.dispatchEvent(new ErrorEvent("error")),"");return fetch(n).then(i=>i.ok?i.text():c(),c).then(i=>{if(!i)return;Ko.innerHTML=i;let s=Ko.content.children[0];if(!s)return;let a=s.getAttribute("viewBox");a?o.setAttribute("viewBox",a):s.hasAttribute("width")&&s.hasAttribute("height")&&o.setAttribute("viewBox",`0 0 ${s.getAttribute("width")} ${s.getAttribute("height")}`);for(let l of s.childNodes)o.append(l);ei[t.name]=o}).catch(i=>console.error(i)),o.setAttribute("fill","currentColor"),o}}var Ds=Is(({name:e,width:t,fill:n})=>(t!==20&&t!==24&&t!==40&&t!==48&&(t=48),`https://cdn.jsdelivr.net/gh/google/material-design-icons@941fa95/symbols/web/${e}/materialsymbolsoutlined/${e}_${n?"fill1_":""}${t}px.svg`)),Os=Ds;function di(e,t={}){let{width:n,height:r}=t;n===void 0&&r===void 0&&(n=r=24);let o=_s[e]?.icon()??Os({name:e,width:n,fill:t.fill});return t.className&&o.setAttribute("class",t.className),n&&(o.setAttribute("width",`${n}`),r===void 0&&o.setAttribute("height",`${n}`)),r&&(o.setAttribute("height",`${r}`),n===void 0&&o.setAttribute("width",`${r}`)),t.alt&&o.setAttribute("alt",t.alt),o}var Ar,Ls=new Promise(e=>{Ar=e});function Fs(e){cancelAnimationFrame(Rs),Zo||(e&&(e.colors&&(J.colors=e.colors),e.globalCss&&(J.globalCss+=e.globalCss)),document.adoptedStyleSheets.push(Zo=Pe(`:root { ${ii(J.colors)} }`+J.globalCss)),J.imports?Promise.allSettled(J.imports.map(t=>{let n=document.createElement("link");return n.rel="stylesheet",n.href=t,document.head.append(n),new Promise((r,o)=>(n.onload=r,n.onerror=o))})).then(Ar,t=>console.error(t)):Ar())}function zn(){return Cn(async()=>{await Ls,await document.fonts.ready})}var Mr=[d(`
97
119
  :host {
98
120
  box-sizing: border-box;
99
121
  background-color: var(--cxl-color-surface);
@@ -104,24 +126,21 @@ ${t==="inverse-surface"?Rn("inverse-primary","primary"):""}
104
126
  column-gap: 24px;
105
127
  min-height: 64px;
106
128
  padding: 4px 16px;
107
- ${L("title-large")}
129
+ ${B("title-large")}
108
130
  }
109
131
  :host([size=medium]) {
110
132
  height: 112px;
111
133
  padding: 20px 16px 24px 16px;
112
- ${L("headline-small")}
134
+ ${B("headline-small")}
113
135
  flex-wrap: wrap;
114
136
  }
115
137
  :host([size=medium]) slot[name=title],:host([size=large]) slot[name=title] { width: 100%; display: block; margin-top:auto; }
116
138
  :host([size=large]) {
117
139
  height: 152px; padding: 20px 16px 28px 16px;
118
- ${L("headline-medium")}
140
+ ${B("headline-medium")}
119
141
  flex-wrap: wrap;
120
- }`),O,()=>F("slot",{name:"title"})];function ms(e){return e.tagName==="C-APPBAR-CONTEXTUAL"}var ft=class extends x{size;sticky=!1;contextual};u(ft,{tagName:"c-appbar",init:[C("size"),C("sticky"),C("contextual")],augment:[y(`
121
- :host {
122
- z-index: 2;
123
- width:100%;
124
- }
142
+ }`),I,()=>N("slot",{name:"title"})];function Ps(e){return e.tagName==="C-APPBAR-CONTEXTUAL"}var Lt=class extends g{size;sticky=!1;contextual};u(Lt,{tagName:"c-appbar",init:[b("size"),b("sticky"),b("contextual")],augment:[d(`
143
+ :host { z-index: 2; width:100%; }
125
144
  :host([sticky]) { position: sticky; top: -1px; }
126
145
  :host([scroll]) {
127
146
  transition: background-color var(--cxl-speed);
@@ -129,7 +148,7 @@ ${t==="inverse-surface"?Rn("inverse-primary","primary"):""}
129
148
  }
130
149
  :host([contextual]) { padding: 0; }
131
150
  :host([contextual]) slot:not([name=contextual]) { display:none; }
132
- `),...ds,()=>F("slot",{name:"contextual"}),e=>E(e,"sticky").switchMap(t=>t?Vt(e,{threshold:[1]}).tap(n=>e.toggleAttribute("scroll",n.intersectionRatio<1)):I),e=>{let t;return v(Gt(e),E(e,"contextual")).raf().switchMap(()=>{for(let n of e.children)if(ms(n)&&(n.slot="contextual",n.open=n.name===e.contextual,n.open))return t=n,R(n,"close").tap(()=>e.contextual=void 0);return t&&(t.open=!1),t=void 0,I})}]});function hs(e){return E(e,"disabled").tap(t=>t?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled"))}function gs(e,t=e,n=0){let r=t.hasAttribute("tabindex")?t.tabIndex:n;return hs(e).tap(o=>{o?t.removeAttribute("tabindex"):t.tabIndex=r})}function xs(e,t=e){return v(R(t,"focusout").tap(()=>e.touched=!0),v(Y(e,"disabled"),Y(e,"touched")).tap(()=>Fe(e,"focusable.change")))}function en(e,t=e,n=0){return v(gs(e,t,n),xs(e,t))}function lo(e){return e in H.animation}function de({target:e,animation:t,options:n}){if(H.disableAnimations)return e.animate(null);let r=typeof t=="string"?H.animation[t]:t;if(!r)throw new Error(`Animation "${t}" not defined`);let o=typeof r.kf=="function"?r.kf(e):r.kf,a={duration:250,easing:H.easing.emphasized,...r.options,...n,...H.prefersReducedMotion?{duration:0}:void 0};return e.animate(o,a)}function uo(e){let{trigger:t,stagger:n,commit:r,keep:o}=e;function a(s){return new _(c=>{let f=de(s);f.ready.then(()=>c.next({type:"start",animation:f}),()=>{}),f.addEventListener("finish",()=>{c.next({type:"end",animation:f}),r&&f.commitStyles(),!(o||o!==!1&&s.options?.fill&&(s.options.fill==="both"||s.options.fill==="forwards"))&&c.complete()}),c.signal.subscribe(()=>{try{f.cancel()}catch{}})})}let i=Array.isArray(e.target)?e.target:e.target instanceof Element?[e.target]:Array.from(e.target);return v(...i.map((s,c)=>{let f={...e.options,delay:n!==void 0?(e.options?.delay??0)+c*n:e.options?.delay};return(t==="visible"?Or(s).filter(S=>S):t==="hover"?An(s):z(!0)).switchMap(S=>S?a({...e,options:f,target:s}):I)}))}function po(e,t,n=e.getBoundingClientRect()){let r=n.width>n.height?n.width:n.height,o=new tn,a=e.shadowRoot||e,{x:i,y:s}=t??{},c=i===void 0||!t||lt(t),f=i>n.right||i<n.left||s>n.bottom||s<n.top;return o.x=c||f?n.width/2:i-n.left,o.y=c||f?n.height/2:s-n.top,o.radius=r,t||(o.duration=0),a.prepend(o),o}function fo(e,t=e){let n,r,o,a=()=>{n=po(t,r instanceof Event?r:void 0,o),n.duration=600,r=void 0};return v(R(e,"click").tap(i=>{r=i,o=t.getBoundingClientRect()}),E(e,"selected").raf().switchMap(()=>{if(e.selected){if(!n?.parentNode){if(Fr(e))return r=void 0,De(e).tap(a);a()}}else n&&mo(n);return I})).ignoreElements()}function mo(e){return new Promise(t=>{de({target:e,animation:"fadeOut"}).addEventListener("finish",()=>{e.remove(),t()})})}function Ee(e,t=e){let n=!1,r=0;return v(R(t,"pointerdown"),R(t,"click")).tap(o=>o.cxlRipple??=e).raf().mergeMap(o=>{if(o.cxlRipple===e&&!n&&!e.disabled&&e.parentNode){r=Date.now(),n=!0,e.style.setProperty("--cxl-mask-hover","none");let a=po(e,o),i=a.duration,s=()=>{e.style.removeProperty("--cxl-mask-hover"),mo(a).then(()=>{n=!1})};return o.type==="click"?Oe(i).tap(s):v(R(document,"pointerup"),R(document,"pointercancel")).first().map(()=>{let c=Date.now()-r;setTimeout(()=>s(),c>i?32:i-c)})}return I})}var tn=class extends x{x=0;y=0;radius=0;duration=500};u(tn,{tagName:"c-ripple",init:[b("x"),b("y"),b("radius")],augment:[y(`
151
+ `),...Mr,()=>N("slot",{name:"contextual"}),e=>h(e,"sticky").switchMap(t=>t?Rn(e,{threshold:[1]}).tap(n=>e.toggleAttribute("scroll",n.intersectionRatio<1)):T),e=>{let t;return f(Mn(e),h(e,"contextual")).raf().switchMap(()=>{for(let n of e.children)if(Ps(n)&&(n.slot="contextual",n.open=n.name===e.contextual,n.open))return t=n,S(n,"close").tap(()=>e.contextual=void 0);return t&&(t.open=!1),t=void 0,T})}]});function Bs(e){return h(e,"disabled").tap(t=>t?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled"))}function zs(e,t=e,n=0){let r=t.hasAttribute("tabindex")?t.tabIndex:n;return Bs(e).tap(o=>{o?t.removeAttribute("tabindex"):t.tabIndex=r})}function Hs(e,t=e){return f(S(t,"focusout").tap(()=>e.touched=!0),f(V(e,"disabled"),V(e,"touched")).tap(()=>ue(e,"focusable.change")))}function Be(e,t=e,n=0){return f(zs(e,t,n),Hs(e,t))}function mi(e){return e in J.animation}function Re({target:e,animation:t,options:n}){if(J.disableAnimations)return e.animate(null);if(typeof t=="string"&&!(t in J.animation))throw new Error(`Animation "${t}" not defined`);let r=typeof t=="string"?J.animation[t]:t,o=typeof r.kf=="function"?r.kf(e):r.kf,c={duration:250,easing:J.easing.emphasized,...r.options,...n,...J.prefersReducedMotion?{duration:0}:void 0};return e.animate(o,c)}function gi(e){let{trigger:t,stagger:n,commit:r,keep:o}=e;function c(s){return new _(a=>{let l=Re(s);l.ready.then(()=>a.next({type:"start",animation:l}),()=>{}),l.addEventListener("finish",()=>{a.next({type:"end",animation:l}),r&&l.commitStyles(),!(o||o!==!1&&s.options?.fill&&(s.options.fill==="both"||s.options.fill==="forwards"))&&a.complete()}),a.signal.subscribe(()=>{try{l.cancel()}catch{}})})}let i=Array.isArray(e.target)?e.target:e.target instanceof Element?[e.target]:Array.from(e.target);return f(...i.map((s,a)=>{let l={...e.options,delay:n!==void 0?(e.options?.delay??0)+a*n:e.options?.delay};return(t==="visible"?Lo(s).filter(m=>m):t==="hover"?wr(s):F(!0)).switchMap(m=>m?c({...e,options:l,target:s}):T)}))}function hi(e,t,n=e.getBoundingClientRect()){let r=n.width>n.height?n.width:n.height,o=new Hn,c=e.shadowRoot||e,{x:i,y:s}=t??{x:1/0,y:1/0},a=!t||_t(t),l=i>n.right||i<n.left||s>n.bottom||s<n.top;return o.x=a||l?n.width/2:i-n.left,o.y=a||l?n.height/2:s-n.top,o.radius=r,t||(o.duration=0),c.prepend(o),o}function xi(e,t=e){let n,r,o,c=()=>{n=hi(t,r instanceof Event?r:void 0,o),n.duration=600,r=void 0};return f(S(e,"click").tap(i=>{r=i,o=t.getBoundingClientRect()}),h(e,"selected").raf().switchMap(()=>{if(e.selected){if(!n?.parentNode){if(Rt(e))return r=void 0,Me(e).tap(c);c()}}else n&&bi(n).catch(i=>console.error(i));return T})).ignoreElements()}function bi(e){return new Promise(t=>{Re({target:e,animation:"fadeOut"}).addEventListener("finish",()=>{e.remove(),t()})})}function ve(e,t=e){let n=!1,r=0;return f(S(t,"pointerdown"),S(t,"click")).tap(o=>o.cxlRipple??=e).raf().mergeMap(o=>{if(o.cxlRipple===e&&!n&&!e.disabled&&e.parentNode){r=Date.now(),n=!0,e.style.setProperty("--cxl-mask-hover","none");let c=hi(e,o),i=c.duration,s=()=>{e.style.removeProperty("--cxl-mask-hover"),bi(c).catch(()=>{}).finally(()=>{n=!1})};return o.type==="click"?We(i).tap(s):f(S(document,"pointerup"),S(document,"pointercancel")).first().map(()=>{let a=Date.now()-r;setTimeout(()=>s(),a>i?32:i-a)})}return T})}var Hn=class extends g{x=0;y=0;radius=0;duration=500};u(Hn,{tagName:"c-ripple",init:[y("x"),y("y"),y("radius")],augment:[d(`
133
152
  :host {
134
153
  display: block;
135
154
  position: absolute;
@@ -146,7 +165,7 @@ ${t==="inverse-surface"?Rn("inverse-primary","primary"):""}
146
165
  background-image: inherit;
147
166
  border-radius: 100%;
148
167
  background-color: var(--cxl-color-ripple, color-mix(in srgb, var(--cxl-color-on-surface) 16%, transparent));
149
- }`),e=>{let t=document.createElement("div");return t.className="ripple",q(()=>{let n=t.style;n.translate=`${e.x-e.radius}px ${e.y-e.radius}px`,n.width=n.height=e.radius*2+"px",t.parentNode||j(e).append(t),de({target:t,animation:"expand",options:{duration:e.duration}}),de({target:t,animation:"fadeIn",options:{duration:e.duration/2}})})}]});var mt=[qe,Qt,y(`
168
+ }`),e=>{let t=document.createElement("div");return t.className="ripple",K(()=>{let n=t.style;n.translate=`${e.x-e.radius}px ${e.y-e.radius}px`,n.width=n.height=e.radius*2+"px",t.parentNode||z(e).append(t),Re({target:t,animation:"expand",options:{duration:e.duration}}),Re({target:t,animation:"fadeIn",options:{duration:e.duration/2}})})}]});var Qe=[be,Bn,d(`
150
169
  :host {
151
170
  box-sizing: border-box;
152
171
  position: relative;
@@ -180,9 +199,9 @@ ${t==="inverse-surface"?Rn("inverse-primary","primary"):""}
180
199
  :host([variant=outlined][disabled]),:host([variant=text][disabled]) {
181
200
  background-color: transparent;
182
201
  box-shadow: none;
183
- }`)],bs=y(`
202
+ }`)],$s=d(`
184
203
  :host {
185
- ${L("label-large")}
204
+ ${B("label-large")}
186
205
  user-select: none;
187
206
  cursor: pointer;
188
207
  overflow: hidden;
@@ -214,17 +233,17 @@ ${t==="inverse-surface"?Rn("inverse-primary","primary"):""}
214
233
  :host([variant=elevated]) {
215
234
  --cxl-color-on-surface: var(--cxl-color-primary);
216
235
  }
217
- `);function In(e){return E(e,"disabled").switchMap(t=>t?I:Rr(e).tap(n=>{n.stopPropagation(),e.click()}))}function $n(e){return v(In(e),en(e))}var Qe=class extends x{disabled=!1;touched=!1};u(Qe,{init:[C("disabled"),C("touched")],augment:[K("button"),$n]});var dt=class extends Qe{size;color;variant};u(dt,{tagName:"c-button",init:[we("size",e=>`{
236
+ `);function Nr(e){return h(e,"disabled").switchMap(t=>t?T:Tn(e).tap(n=>{n.stopPropagation(),e.click()}))}function Tr(e){return f(Nr(e),Be(e))}var mt=class extends g{disabled=!1;touched=!1};u(mt,{init:[b("disabled"),b("touched")],augment:[G("button"),Tr]});var Ft=class extends mt{size;color;variant};u(Ft,{tagName:"c-button",init:[ye("size",e=>`{
218
237
  font-size: ${14+e*4}px;
219
238
  min-height: ${40+e*8}px;
220
239
  padding-right: ${16+e*4}px;
221
240
  padding-left: ${16+e*4}px;
222
- }`),Je("color","primary"),C("variant")],augment:[...mt,bs,Ee,O]});var ht=class extends dt{};u(ht,{tagName:"c-button-round",augment:[y(`
241
+ }`),ft("color","primary"),b("variant")],augment:[...Qe,$s,ve,I]});var Pt=class extends Ft{};u(Pt,{tagName:"c-button-round",augment:[d(`
223
242
  :host { min-width:40px; min-height: 40px; padding: 4px; border-radius: 100%; flex-shrink: 0; }
224
243
  :host([variant=text]) { margin: -8px; }
225
244
  :host([variant=text]:not([disabled])) { color: inherit; }
226
245
  :host(:hover) { box-shadow:none; }
227
- `)]});var Se=class extends x{name="";width;height;alt;fill=!1};u(Se,{tagName:"c-icon",init:[b("name"),b("width"),b("height"),b("fill"),b("alt")],augment:[K("none"),y(`
246
+ `)]});var pe=class extends g{name="";width;height;alt;fill=!1};u(pe,{tagName:"c-icon",init:[y("name"),y("width"),y("height"),y("fill"),y("alt")],augment:[G("none"),d(`
228
247
  :host {
229
248
  display: inline-block;
230
249
  width: 24px;
@@ -233,14 +252,24 @@ ${t==="inverse-surface"?Rn("inverse-primary","primary"):""}
233
252
  vertical-align: middle;
234
253
  }
235
254
  .icon { width: 100%; height: 100% }
236
- `),e=>{let t=new CSSStyleSheet,n;return e.shadowRoot?.adoptedStyleSheets.push(t),De(e).switchMap(()=>ye(e)).debounceTime(0).tap(()=>{let r=e.width??e.height,o=e.height??e.width;t.replace(`:host{${r===void 0?"":`width:${r}px;`}${o===void 0?"":`height:${o}px`}}`),n?.remove(),n=e.name?ao(e.name,{className:"icon",width:r,height:o,fill:e.fill,alt:e.alt}):void 0,n&&(n.onerror=()=>{n&&e.alt&&n.replaceWith(e.alt)},j(e).append(n))})}]});var se=class extends ht{icon="";width;height;fill=!1;variant="text";alt};u(se,{tagName:"c-icon-button",init:[b("icon"),b("width"),b("height"),b("alt"),b("fill")],augment:[e=>F(Se,{className:"icon",width:E(e,"width"),height:E(e,"height"),name:E(e,"icon"),fill:E(e,"fill"),alt:E(e,"alt")})]});var Fn=class{currentPopupContainer;currentPopup;currentModal;currentTooltip;popupContainer=document.body;toggle(t){t.element.parentElement!==this.popupContainer?this.popupOpened(t):t.close()}popupOpened(t){this.currentPopup&&t.element!==this.currentPopup.element&&this.currentPopup.close(),this.currentPopup=t}openModal(t){this.currentModal&&t.element!==this.currentModal.element&&this.currentModal.close(),t.element.parentNode||this.popupContainer?.append(t.element),t.element.open||t.element.showModal(),this.currentModal=t}closeModal(){this.currentModal?.close(),this.modalClosed()}modalClosed(){this.currentModal=void 0}tooltipOpened(t){this.currentTooltip&&this.currentTooltip!==t&&this.currentTooltip.remove(),this.currentTooltip=t}close(){this.currentPopup?.close()}},ke=new Fn;function ho(e=document){document.documentElement.lang="en";let t=[F("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),F("meta",{name:"apple-mobile-web-app-capable",content:"yes"}),F("meta",{name:"mobile-web-app-capable",content:"yes"}),F("style",void 0,`html{height:100%;}html,body{padding:0;margin:0;min-height:100%;${L("body-large")}}
255
+ `),e=>{let t=new CSSStyleSheet,n;return e.shadowRoot?.adoptedStyleSheets.push(t),Me(e).switchMap(()=>Le(e)).debounceTime(0).tap(()=>{let r=e.width??e.height,o=e.height??e.width;t.replace(`:host{${r===void 0?"":`width:${r}px;`}${o===void 0?"":`height:${o}px`}}`).catch(c=>{}),n?.remove(),n=e.name?di(e.name,{className:"icon",width:r,height:o,fill:e.fill,alt:e.alt}):void 0,n&&(n.onerror=()=>{n&&e.alt&&n.replaceWith(e.alt)},z(e).append(n))})}]});var ce=class extends Pt{icon="";width;height;fill=!1;variant="text";alt};u(ce,{tagName:"c-icon-button",init:[y("icon"),y("width"),y("height"),y("alt"),y("fill")],augment:[e=>N(pe,{className:"icon",width:h(e,"width"),height:h(e,"height"),name:h(e,"icon"),fill:h(e,"fill"),alt:h(e,"alt")})]});var op=1440*60*1e3;function yi(e,t,n){if(t==="relative"){let r=new Date;return e.getFullYear()===r.getFullYear()?e.getDate()===r.getDate()&&e.getMonth()===r.getMonth()?e.toLocaleTimeString(n,{hour:"2-digit",minute:"2-digit",hourCycle:"h24"}):e.toLocaleDateString(n,{month:"2-digit",day:"2-digit"}):e.toLocaleDateString(n,{month:"2-digit",day:"2-digit",year:"2-digit"})}return e.toLocaleString(n,{dateStyle:t,timeStyle:t})}function vi(e,t,n){return typeof n=="string"?yi(t,n,e):t.toLocaleString(e,n)}var Rr={"core.enable":"Enable","core.disable":"Disable","core.cancel":"Cancel","core.ok":"Ok","core.open":"Open","core.close":"Close","core.of":"of"};function js(){try{return new Intl.NumberFormat(navigator.language),navigator.language}catch{return"en-US"}}var Bt={content:Rr,name:"default",localeName:js(),currencyCode:"USD",decimalSeparator:1.1.toLocaleString().substring(1,2),weekStart:0,formatDate:(e,t)=>vi(Bt.localeName,e,t)},Vs={content:Rr,name:"en",localeName:"en-US",currencyCode:"USD",decimalSeparator:".",weekStart:0,formatDate:(e,t)=>vi("en-US",e,t)};function Us(){let e=ie(Bt),t={default:Bt,en:Vs},n={},r=e.map(i=>i.content);async function o(i){let s=i.split("-")[0];if(!s)return Bt;if(!(t[i]??t[s])){let l=n[i]??n[s];l&&await l()}return t[s]||Bt}async function c(i){e.next(await o(i))}return navigator.language&&c(navigator.language).catch(i=>console.error(i)),{content:r,registeredLocales:t,locale:e,setLocale:c,getLocale(i){return i?Cn(()=>o(i)):e},get(i,s){return r.map(a=>a[i])},register(i){t[i.name]=i}}}var gt=Us();function wi(e){return Object.assign(Rr,e),gt.get}var $n=class e extends g{name;size;open=!1;backIcon=N(ce,{icon:"arrow_back",className:"icon",ariaLabel:gt.get("core.close"),$:t=>q(t).tap(()=>this.open=!1)});static{u(e,{tagName:"c-appbar-contextual",init:[y("name"),b("open"),b("size")],augment:[t=>t.backIcon,...Mr,d(`
256
+ :host {
257
+ display: none;
258
+ flex-grow: 1;
259
+ overflow-x: hidden;
260
+ white-space: nowrap;
261
+ text-overflow: ellipsis;
262
+ }
263
+ :host([open]) { display: flex }
264
+ :host(:dir(rtl)) .icon { scale: -1 1; }
265
+ `),t=>V(t,"open").tap(n=>{n||t.dispatchEvent(new Event("close"))})]})}};var _r=class{currentPopupContainer;currentPopup;currentModal;currentTooltip;popupContainer=document.body;toggle(t){t.element.parentElement!==this.popupContainer?this.popupOpened(t):t.close()}popupOpened(t){this.currentPopup&&t.element!==this.currentPopup.element&&this.currentPopup.close(),this.currentPopup=t}openModal(t){this.currentModal&&t.element!==this.currentModal.element&&this.currentModal.close(),t.element.parentNode||this.popupContainer.append(t.element),t.element.open||t.element.showModal(),this.currentModal=t}closeModal(){this.currentModal?.close(),this.modalClosed()}modalClosed(){this.currentModal=void 0}tooltipOpened(t){this.currentTooltip&&this.currentTooltip!==t&&this.currentTooltip.remove(),this.currentTooltip=t}close(){this.currentPopup?.close()}},ze=new _r;function Ei(e=document){document.documentElement.lang="en";let t=[N("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),N("meta",{name:"apple-mobile-web-app-capable",content:"yes"}),N("meta",{name:"mobile-web-app-capable",content:"yes"}),N("style",void 0,`html{height:100%;}html,body{padding:0;margin:0;min-height:100%;${B("body-large")}}
237
266
  a{color:var(--cxl-color-on-surface)}
238
- `)];return e.head.append(...t),t}function go(e=2e3){return v(Oe(e),co()).first()}function xo(e){return go().raf(()=>e.setAttribute("ready",""))}function nn(e){return v(q(t=>{let n=ho(e.ownerDocument??document);t.signal.subscribe(()=>n.forEach(r=>r.remove()))}),Ie().raf(()=>{let t=e.firstElementChild;t instanceof HTMLTemplateElement&&(e.append(t.content),t.remove())}),go().switchMap(()=>Zt(e).raf(t=>e.setAttribute("breakpoint",t))),xo(e),Jt.raf(t=>t?e.setAttribute("theme",t):e.removeAttribute("theme")))}var Pn=class extends x{connectedCallback(){requestAnimationFrame(()=>ho(this.ownerDocument||document)),super.connectedCallback()}};u(Pn,{tagName:"c-meta",augment:[()=>xo(document.body)]});function bo(e,t,n){n==="in"&&(e.style.display="");let r=e.offsetWidth,o=de({target:e,animation:{kf:{[t]:n==="in"?[`-${r}px`,"0"]:["0",`-${r}px`]}}});n==="out"&&(o.onfinish=()=>e.style.display="none")}var gt=class extends x{sheetstart=!1;sheetend=!1};u(gt,{tagName:"c-application",init:[C("sheetstart"),C("sheetend")],augment:[y(`
267
+ `)];return e.head.append(...t),t}function Si(e=2e3){return f(We(e),zn()).first()}function Ci(e){return Si().raf(()=>e.setAttribute("ready",""))}function jn(e){return f(K(t=>{let n=Ei(e.ownerDocument);t.signal.subscribe(()=>n.forEach(r=>r.remove()))}),Ne().raf(()=>{let t=e.firstElementChild;t instanceof HTMLTemplateElement&&(e.append(t.content),t.remove())}),Si().switchMap(()=>pt(e).raf(t=>e.setAttribute("breakpoint",t))),Ci(e),Pn.raf(t=>t?e.setAttribute("theme",t):e.removeAttribute("theme")))}var Ir=class extends g{connectedCallback(){requestAnimationFrame(()=>Ei(this.ownerDocument)),super.connectedCallback()}};u(Ir,{tagName:"c-meta",augment:[()=>Ci(document.body)]});function ki(e,t,n){n==="in"&&(e.style.display="");let r=e.offsetWidth,o=Re({target:e,animation:{kf:{[t]:n==="in"?[`-${r}px`,"0"]:["0",`-${r}px`]}}});n==="out"&&(o.onfinish=()=>e.style.display="none")}var zt=class extends g{sheetstart=!1;sheetend=!1};u(zt,{tagName:"c-application",init:[b("sheetstart"),b("sheetend")],augment:[d(`
239
268
  :host {
240
269
  display: flex;
241
270
  position: absolute;
242
271
  inset: 0;
243
- ${ve("background")}
272
+ ${re("background")}
244
273
  overflow: hidden;
245
274
  }
246
275
  #body {
@@ -248,10 +277,192 @@ ${t==="inverse-surface"?Rn("inverse-primary","primary"):""}
248
277
  flex-direction: column;
249
278
  flex-grow: 1;
250
279
  overflow: hidden;
280
+ position: relative;
251
281
  }
252
282
  slot[name=end],slot[name=start] { display:block; flex-shrink: 0; }
253
- ${Kt()}
254
- `),nn,e=>Ye(e,"toggle.open").tap(t=>{(t==="sheetend"||t==="sheetstart")&&(e[t]=!0)}),e=>Ye(e,"toggle.close").tap(t=>{(t==="sheetend"||t==="sheetstart")&&(e[t]=!1)}),e=>{let t=F("slot",{name:"start"}),n=F("slot",{id:"body"}),r=F("slot",{name:"end"}),o=Pe("html { overflow: hidden }");return j(e).append(t,n,r),e.sheetstart||(t.style.display="none"),e.sheetend||(r.style.display="none"),ke.popupContainer=e,v(q(a=>{let i=(e.ownerDocument??document).adoptedStyleSheets;i.push(o),a.signal.subscribe(()=>{let s=i.indexOf(o);s!==-1&&i.splice(s,1)})}),Y(e,"sheetstart").tap(a=>bo(t,"marginLeft",a?"in":"out")),Y(e,"sheetend").tap(a=>bo(r,"marginRight",a?"in":"out")))}]});var rn=class extends x{};u(rn,{tagName:"c-body",augment:[y(`
283
+ ${dt()}
284
+ `),jn,e=>se(e,"toggle.open").tap(t=>{(t==="sheetend"||t==="sheetstart")&&(e[t]=!0)}),e=>se(e,"toggle.close").tap(t=>{(t==="sheetend"||t==="sheetstart")&&(e[t]=!1)}),e=>{let t=N("slot",{name:"start"}),n=N("slot",{id:"body"}),r=N("slot",{name:"end"}),o=Pe("html { overflow: hidden }");return z(e).append(t,n,r),e.sheetstart||(t.style.display="none"),e.sheetend||(r.style.display="none"),ze.popupContainer=e,f(K(c=>{let i=e.ownerDocument.adoptedStyleSheets;i.push(o),c.signal.subscribe(()=>{let s=i.indexOf(o);s!==-1&&i.splice(s,1)})}),V(e,"sheetstart").tap(c=>ki(t,"marginLeft",c?"in":"out")),V(e,"sheetend").tap(c=>ki(r,"marginRight",c?"in":"out")))}]});function He(e,t,n){return new _(r=>{let o={id:e,controller:n,target:t};ue(t,`registable.${e}`,o),r.signal.subscribe(()=>o.unsubscribe?.())})}function Vn(e,t,n,r){return new _(o=>{function c(s){let a=s.target;s.unsubscribe=()=>{let m=n.indexOf(a);m!==-1&&n.splice(m,1),r?.({type:"disconnect",target:a,elements:n}),o.next()};let l=n.indexOf(a);l!==-1&&n.splice(l,1);let C=n.findIndex(m=>m.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_PRECEDING);C===-1?n.push(a):n.splice(C,0,a),r?.({type:"connect",target:a,elements:n}),o.next()}let i=se(t,`registable.${e}`).subscribe(c);o.signal.subscribe(i.unsubscribe)})}function Ai(e,t,n=new Set){return new _(r=>{function o(i){let s=i.target,a=i.controller||i.target;i.unsubscribe=()=>{n.delete(a),r.next({type:"disconnect",target:a,element:s,elements:n})},n.add(a),r.next({type:"connect",target:a,element:s,elements:n})}let c=se(t,`registable.${e}`).subscribe(o);r.signal.subscribe(c.unsubscribe)})}var Dr={get(e){try{return localStorage.getItem(e)??void 0}catch(t){console.error(t)}return""},set(e,t){try{localStorage.setItem(e,t)}catch(n){console.error(n)}}};function Mi(e){return(t,n)=>t[e]>n[e]?1:t[e]<n[e]?-1:0}function Un(e,t){if(t==="_parent")return e.parentElement||void 0;if(t==="_next")return e.nextElementSibling||void 0;if(typeof t!="string")return t??void 0;let n,r=e.getRootNode();return r instanceof ShadowRoot&&(n=r.getElementById(t),n)?n:e.ownerDocument.getElementById(t)??void 0}var Gs=/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i,Ys=/^\d{5}(?:[-\s]\d{4})?$/,Ws={"validation.invalid":"Invalid value","validation.json":"Invalid JSON value","validation.zipcode":"Please enter a valid zip code","validation.equalTo":"Values do not match","validation.equalToElement":"Values do not match","validation.greaterThanElement":"Values do not match","validation.lessThanElement":"Values do not match","validation.required":"This field is required","validation.nonZero":"Value cannot be zero","validation.email":"Please enter a valid email address","validation.pattern":"Invalid pattern","validation.min":"Invalid value","validation.max":"Invalid value","validation.minlength":"Invalid value","validation.maxlength":"Invalid value","validation.greaterThan":"Invalid value","validation.lessThan":"Invalid value","validation.nonEmpty":"Value must not be empty"},Ni={required:ec,email:tc,json:oc,zipcode:nc,nonZero:Qs,nonEmpty:Zs},qs={pattern:Ks,equalToElement:Or(Ii),greaterThan:Ri,lessThan:_i,greaterThanElement:Or(Ri),lessThanElement:Or(_i),min:ac,max:sc,equalTo:Ii,maxlength:cc,minlength:lc},Xs=wi(Ws);function Or(e){return(t,n)=>{let r=typeof t=="string"?Un(n,t):t;if(!r)throw"Invalid element";return e(r)}}function we(e,t){return{key:e,valid:t,message:Xs(`validation.${e}`,"validation.invalid")}}function Js(e){return e==null||e===""||Array.isArray(e)&&e.length===0}function Zs(e){return we("nonEmpty",!Js(e))}function Qs(e){return we("nonZero",e===""||Number(e)!==0)}function Ks(e){let t=typeof e=="string"?e=new RegExp(e):e;return n=>we("pattern",typeof n=="string"&&(n===""||t.test(n)))}function Lr(e){return e!=null&&e!==""}function ec(e,t){let n=t&&"checked"in t?!!t.checked:!0;return we("required",n&&Lr(e))}function tc(e){return we("email",typeof e=="string"&&(e===""||Gs.test(e)))}function nc(e){return we("zipcode",typeof e=="string"&&(e===""||Ys.test(e)))}function rc(e){try{return JSON.parse(e),!0}catch{return!1}}function oc(e){return we("json",rc(e))}function ic(e){return e instanceof HTMLElement&&"value"in e}function Ht(e,t,n){let r=ic(t)?h(t,"value"):t instanceof _?t:F(t);return o=>r.map(c=>we(e,!Lr(o)||!Lr(c)||n(o,c)))}function Ti(e,t){let n=/(\w+)(?:\(([^)]+?)\))?/g,r=[],o;for(;o=n.exec(e);)if(o[2]){let c=qs[o[1]];if(!c)throw`Invalid rule "${o[1]}"`;r.push(c(o[2],t))}else if(o[1]&&o[1]in Ni)r.push(Ni[o[1]]);else throw`Invalid rule "${o[1]}"`;return r}function Di(e,t){let n=(typeof e=="string"?Ti(e,t):e).flatMap(r=>typeof r=="string"?Ti(r,t):r);return(r,o)=>n.map(c=>{let i=c(r,o);return i instanceof _?i:i instanceof Promise?kn(i):F(i)})}function ac(e){return Ht("min",e,(t,n)=>Number(t)>=Number(n))}function Ri(e){return Ht("greaterThan",e,(t,n)=>Number(t)>Number(n))}function sc(e){return Ht("max",e,(t,n)=>Number(t)<=Number(n))}function _i(e){return Ht("lessThan",e,(t,n)=>Number(t)<Number(n))}function Ii(e){return Ht("equalTo",e,(t,n)=>t==n)}function cc(e){return t=>we("maxlength",!t||t.length<=+e)}function lc(e){return t=>we("minlength",!t||t.length>=+e)}function uc(e){return Li(e).tap(()=>e.dispatchEvent(new Event("update",{bubbles:!0})))}function Oi(e){return V(e,"value").tap(()=>{e.shadowRoot?.delegatesFocus||_n(e,"change",{bubbles:!0})})}function Li(e){return f(h(e,"value"),h(e,"checked")).map(()=>{})}var ht=class e extends g{static formAssociated=!0;autofocus=!1;invalid=!1;disabled=!1;touched=!1;rules;validationResult;name;validMap={};onupdate;defaultValue;static{u(e,{init:[b("autofocus"),b("invalid"),b("disabled"),b("touched"),y("rules"),b("name"),X("validationResult"),$o("update")],augment:[t=>(t.defaultValue=t.value,f(He("form",t),V(t,"invalid").tap(()=>_n(t,"invalid")),h(t,"invalid").switchMap(n=>{if(n){if(t.setAria("invalid","true"),!t.validationMessage)return gt.get("validation.invalid").tap(r=>t.setCustomValidity(r))}else t.setAria("invalid",null);return T}),K(()=>{t.autofocus&&setTimeout(()=>t.focus(),250)}),h(t,"rules").switchMap(n=>{if(!n)return T;let r=Di(n,t);return Li(t).switchMap(()=>f(...r(t.value,t)).tap(o=>t.setValidity(o))).finalize(()=>t.resetValidity())}),h(t,"value").tap(n=>t.setFormValue(n)),h(t,"validationResult").switchMap(n=>!n||n.valid?T:n.message instanceof _?n.message:n.message===void 0?gt.get("validation.invalid"):F(n.message)).tap(n=>{t.setCustomValidity(n)}))),uc]})}get labels(){return xe(this).labels}get validity(){return xe(this).validity}get validationMessage(){return xe(this).validationMessage}reportValidity(){return xe(this).reportValidity()}checkValidity(){return xe(this).checkValidity()}setCustomValidity(t){let n=!!t,r=t!==this.validationMessage;this.applyValidity(n,t),this.invalid!==n?this.invalid=n:r&&_n(this,"invalid")}formResetCallback(){this.value=this.defaultValue,this.touched=!1}setAria(t,n){n?this.setAttribute(`aria-${t}`,n):this.removeAttribute(`aria-${t}`)}resetValidity(){for(let t in this.validMap)this.validMap[t]={valid:!0};this.resetInvalid()}resetInvalid(){this.validationResult=void 0,this.applyValidity(!1),this.invalid=!1}setValidity(t){this.validMap[t.key||"invalid"]=t;for(let n in this.validMap){let r=this.validMap[n];if(r&&!r.valid)return this.validationResult=r}this.resetInvalid()}applyValidity(t,n){xe(this).setValidity({customError:t},n)}formDisabledCallback(t){this.disabled=t}setFormValue(t){xe(this).setFormValue(t)}};function pc(e,t){let n,r=t.key;if(r==="ArrowDown"&&e.goDown)n=e.goDown();else if(r==="ArrowRight"&&e.goRight)n=e.goRight();else if(r==="ArrowUp"&&e.goUp)n=e.goUp();else if(r==="ArrowLeft"&&e.goLeft)n=e.goLeft();else if(r==="Home")n=t.ctrlKey&&e.goFirstColumn?e.goFirstColumn():e.goFirst();else if(r==="End")n=t.ctrlKey&&e.goLastColumn?e.goLastColumn():e.goLast();else if(e.other)n=e.other(t);else return null;return t.stopPropagation(),n&&t.preventDefault(),n}function $t(e){return S(e.host,"keydown").map(t=>pc(e,t)).filter(t=>!!t)}function fc(e){return new _(t=>{let n=e.focus;e.focus=()=>{n.call(e),t.next()},t.signal.subscribe(()=>e.focus=n)})}function Fi({host:e,observe:t,getFocusable:n,getSelected:r,getActive:o=()=>Fr(e)}){let c=[];function i(){let s=c.find(a=>!a.disabled&&!a.hidden&&!Rt(a));s&&(s.tabIndex=0)}return f(S(e,"focusin").tap(()=>{let s=o(),a=!1;for(let l of c)l.tabIndex=l===s?(a=!0,0):-1;a||i()}),(t??F(!0)).tap(()=>{if(c=n(),c.find(l=>l.tabIndex===0))return;let a=r?.();a?a.tabIndex=0:i()}),e instanceof HTMLElement?fc(e).tap(()=>{let s=n();(s.find(l=>l.tabIndex===0)??s[0])?.focus()}):T).ignoreElements()}function Fr(e){return Xe(e)?.activeElement??document.activeElement??void 0}function Pi({getFocusable:e,getActive:t}){return(n=1,r,o=Rt)=>{let c=t(),i=e(),s=r??(c?i.indexOf(c):-1),a;do a=i[s+=n];while(a&&o(a));return a}}function Bi({host:e,input:t,handleOther:n=!1,axis:r}){let o=()=>e.querySelector("[focused]")??e.querySelector("[selected]");function c(m=1){if(e.open===!1){e.open=!0;let P=o();requestAnimationFrame(()=>{P?.focused&&l(P)})}else return i(m)}function i(m=1,P){let R=o(),$=P??(R?e.options.indexOf(R):-1),W;do W=e.options[$+=m];while(W?.hidden);return W}function s(m){let P=m.key;if(/^\w$/.test(P)){let R=o(),$=R?e.options.indexOf(R):-1;if($===-1)return;let W=$;W+1>=e.options.length&&($=0);let ae=new RegExp(`^\\s*${P}`,"i"),te;for(;te=e.options[++$];)if(!te.hidden&&te.textContent.match(ae))return te;if(W===0)return;for($=0;$<W&&(te=e.options[$++]);)if(!te.hidden&&te.textContent.match(ae))return te}}let a=()=>e.options.find(m=>m.focused);function l(m){for(let P of e.options)P.focused=!1;m?(m.focused=!0,t?.setAria("activedescendant",Te(m)),m.rendered?.scrollIntoView({block:"nearest"})):t?.setAria("activedescendant",null)}let C=m=>ue(m,"selectable.action",m);return f($t({host:t??e,...r==="x"?{goLeft:()=>c(-1),goRight:()=>c(1)}:{goDown:()=>c(1),goUp:()=>c(-1)},goFirst:()=>e.open!==!1?i(1,-1):void 0,goLast:()=>e.open!==!1?i(-1,e.options.length):void 0,other:n?s:void 0}).tap(m=>{e.open===!1?C(m):l(m)}),S(t??e,"focus").tap(()=>l(o())),Bo(t??e,"Enter").tap(m=>{let P=a();e.open!==!1&&P?(m.stopPropagation(),C(P)):e.open===!1&&(e.open=!0)}))}function Pr(e){return new _(t=>{f(Vn("selectable",e,e.options,n=>{if(n.type==="connect"&&(n.target.view=e.optionView,n.target.selected))return e.defaultValue===void 0&&(e.defaultValue=n.target.value),t.next(n.target);let r;for(let o of e.options)o.hidden||!o.parentNode||o.selected&&(r?o.selected=!1:r=o);t.next(r)}),se(e,"selectable.action").tap(n=>{if(!e.disabled&&e.options.includes(n)){let r=e.value!==n.value;t.next(n),r&&(e.dispatchEvent(new Event("change",{bubbles:!0})),e.dispatchEvent(new Event("input",{bubbles:!0})))}})).subscribe({signal:t.signal})})}var Ke={},Gn=class e extends ht{options=[];_value;_selected=Ke;static{u(e,{init:[y("value"),X("selected")],augment:[t=>Pr(t).tap(n=>{(!n||n!==t.selected)&&t.setSelected(n)}).raf(()=>{t.selected?.selected===!1&&t.setSelected(t.selected)})]})}get value(){return this._selected===Ke?this.options[0]?.value:this._value}get selected(){return this._selected===Ke&&this.options[0]?this.options[0]:this._selected}set value(t){if(this._selected&&this._selected!==Ke&&this._selected.value===t){this._value=t;return}else for(let n of this.options)if(n.value===t){this._value=t,this.setSelected(n);return}this._selected!==Ke?(this._value=void 0,this._selected=void 0):this._value=t}formResetCallback(){super.formResetCallback(),!this.selected&&this.options.length&&this.setSelected(this.options[0])}setSelected(t){for(let n of this.options)n.focused=n.selected=!1;t?(t.selected=!0,this._selected=t,this.value=t.value):this._selected!==Ke&&(!this._selected||this.options.includes(this._selected)?this._selected=void 0:this._selected=Ke)}};function zi(e,t,...n){let r=document.createElementNS("http://www.w3.org/2000/svg",e);for(let o in t){if(o==="children")continue;let c=t[o];r.setAttribute(o==="className"?"class":o,c??"")}return n.length&&r.append(...n),r}function Yn(e){return zi("svg",e,zi("path",{d:e.d}))}function dc({host:e,target:t,position:n,onToggle:r,whenClosed:o=T}){return c=>(t.popover??="auto",t.togglePopover(c),r?.(c),c?f(Dn(e),S(window,"resize"),S(window,"scroll",{capture:!0,passive:!0})).tap(n):o)}function Hi(e){let{host:t,beforeToggle:n,target:r}=e,o=dc({...e,whenClosed:q(t).tap(()=>{t.open=!0})});return f(S(r,"toggle").tap(c=>{let i=c.newState==="open";t.open=i}),h(t,"open").raf().switchMap(c=>(n?.(c),t.ariaExpanded=c?"true":"false",o(c))))}var jt=class extends g{invalid=!1};u(jt,{tagName:"c-field-help",init:[y("invalid")],augment:[d(`
285
+ :host {
286
+ display: flex;
287
+ align-items: center;
288
+ column-gap: 8px;
289
+ ${B("body-small")}
290
+ }
291
+ `),I,e=>(e.slot||="help",h(e,"invalid").tap(t=>{e.ariaLive??=t?"assertive":"polite"}))]});var zr=d(`
292
+ :host {
293
+ display: block;
294
+ position: relative;
295
+ text-align: start;
296
+ ${B("body-large")}
297
+ }
298
+ :host([invalid]),:host([invalid]) slot[name=label],:host([invalid]) slot[name=trailing] {
299
+ --cxl-color-primary: var(--cxl-color-error);
300
+ --cxl-field-invalid: var(--cxl-color-error);
301
+ color: var(--cxl-color-error);
302
+ }
303
+ .content {
304
+ position: relative;
305
+ box-sizing: border-box;
306
+ display: flex;
307
+ column-gap: 12px;
308
+ align-items: center;
309
+ padding: 8px 12px 8px 12px;
310
+ }
311
+ ::slotted([slot=help]) { margin-top: 4px; }
312
+ .help {
313
+ ${B("body-small")}
314
+ padding: 0 16px;
315
+ display: flex;
316
+ flex-direction: column;
317
+ }
318
+ .body {
319
+ display:flex;
320
+ flex-direction: column;
321
+ flex-grow: 1;
322
+ justify-content: center;
323
+ margin: 0 4px;
324
+ }
325
+ slot[name=label] {
326
+ display:block;
327
+ }
328
+ #bodyslot { display: flex; column-gap: 16px; align-items: center; }
329
+ .indicator { position:absolute; }
330
+ `),mc=d(`
331
+ :host(:focus-within) slot[name=label] { color: var(--cxl-color-primary); }
332
+ slot[name=label] {
333
+ ${B("body-small")}
334
+ height: 16px;
335
+ }
336
+ :host([floating]) slot[name=label] {
337
+ display:none;
338
+ transition: font var(--cxl-speed), height var(--cxl-speed), top var(--cxl-speed), left var(--cxl-speed);
339
+ }
340
+ :host([floating]) slot[name=label].novalue, :host([floating]) slot[name=label].value { display:block; }
341
+ `),gc=d(`
342
+ :host {
343
+ border-radius: var(--cxl-shape-corner-xsmall) var(--cxl-shape-corner-xsmall) 0 0;
344
+ }
345
+ :host([floating]:not(:focus-within)) slot[name=label].novalue {
346
+ ${B("body-large")}
347
+ height: 0;
348
+ }
349
+ :host([inputdisabled]) {
350
+ filter: saturate(0);
351
+ opacity: 0.6;
352
+ pointer-events: var(--cxl-override-pointer-events, none);
353
+ }
354
+ .content {
355
+ --cxl-color-on-surface: var(--cxl-color-on-surface-variant);
356
+ --cxl-color-surface: var(--cxl-color-surface-container-highest);
357
+ color: var(--cxl-color-on-surface);
358
+ background-color: var(--cxl-color-surface);
359
+ min-height: 56px;
360
+ padding: 8px 12px 8px 12px;
361
+ }
362
+ .indicator {
363
+ background-color: var(--cxl-field-invalid, var(--cxl-color-on-surface-variant));
364
+ bottom: 0; height: 1px; left: 0; right: 0;
365
+ transition: scale var(--cxl-speed);
366
+ transform-origin: bottom;
367
+ }
368
+ :host(:focus-within) .indicator {
369
+ scale: 1 3;
370
+ background-color: var(--cxl-color-primary);
371
+ }
372
+
373
+ ${Ot(".content")}
374
+ `);function hc(e){return f(se(e,"registable.form",!1).tap(t=>{t.id==="form"&&(e.input=t.target)}),Ai("field",e).tap(t=>{t.type==="connect"&&t.target(e)}))}var xc=()=>N("div",{className:"content"},N("slot",{name:"leading"}),N("div",{className:"body"},N("slot",{name:"label"}),N("slot",{id:"bodyslot"})),N("slot",{name:"trailing"}),N("div",{className:"indicator"}));function bc(e){function t(l){o.next(l.touched&&l.invalid),e.toggleAttribute("invalid",o.value);let C=0,m=[];for(let R of i.assignedNodes())!(R instanceof HTMLElement)||R===a||("invalid"in R&&R.invalid?o.value&&(R.invalid===!0||R.invalid===l.validationResult?.key)?(C++,R.style.display="",m.push(Te(R))):R.style.display="none":m.push(Te(R)));let P=!o.value||C>0;a.textContent=P?"":l.validationMessage,P?a.remove():(a.parentElement||e.append(a),m.push(Te(a))),m.length?l.setAria("describedby",m.join(" ")):l.setAria("describedby",null)}function n(l){let C=e.input;if(C){if(e.toggleAttribute("inputdisabled",C.disabled),t(C),!l)return;l.type==="focus"?c.next(!0):l.type==="blur"&&c.next(!1)}}function r(){let l=e.input?.value,C=!e.input?.hasAttribute("autofilled")&&(!l||l.length===0);s?.classList.toggle("novalue",C),s?.classList.toggle("value",!C)}let o=ie(!1),c=ie(!1),i=N("slot",{name:"help"}),s=e.contentElement.children[1]?.children[0],a=N(jt,{ariaLive:"polite"});return z(e).append(N("div",{className:"help"},i)),f(h(e,"input").switchMap(l=>l?f(F(void 0).tap(()=>{n(),queueMicrotask(r)}),S(l,"focusable.change").tap(n).tap(r),S(l,"focus").tap(n),S(l,"invalid").tap(n),S(l,"update").tap(r),f(S(l,"blur"),S(i,"slotchange")).raf(n),S(e.contentElement,"click").tap(()=>{document.activeElement!==l&&!e.matches(":focus-within")&&!c.value&&l.focus()})):T),hc(e))}var et=class e extends g{floating=!1;input;size;contentElement=xc();static{u(e,{init:[b("floating"),X("input"),ye("size",t=>` .content{min-height: ${56+t*8}px;}`)],augment:[t=>t.contentElement,bc]})}getContentRect(){return this.contentElement.getBoundingClientRect()}},Br=class extends et{};u(Br,{tagName:"c-field",augment:[zr,mc,gc]});var yc=d(`
375
+ :host {
376
+ box-sizing: border-box;
377
+ display: block;
378
+ cursor: pointer;
379
+ height: 20px;
380
+ position: relative;
381
+ padding-right: 28px;
382
+ flex-grow: 1;
383
+ text-align: start;
384
+ outline: 0;
385
+ -webkit-tap-highlight-color: transparent;
386
+ }
387
+ .caret {
388
+ position: absolute;
389
+ right: 0;
390
+ top: 0;
391
+ line-height: 0;
392
+ width: 20px;
393
+ height: 20px;
394
+ fill: currentColor;
395
+ }
396
+ `),$i=d(`
397
+ ${oi("#menu")}
398
+ #menu { margin: 0; border: 0; box-sizing: border-box; }
399
+ :host {
400
+ --cxl-mask-focus: color-mix(in srgb, var(--cxl-color-on-surface) 10%, transparent);
401
+ --cxl-select-focused: linear-gradient(0, var(--cxl-mask-focus),var(--cxl-mask-focus));
402
+ }
403
+ `);function vc(e,t){return()=>{let n=e.parentElement instanceof et?e.parentElement.getContentRect():e.getBoundingClientRect();t.style.top=`${n.bottom}px`,t.style.left=`${n.x}px`,t.style.minWidth=`${n.width}px`,t.style.maxHeight=`${Math.min(window.innerHeight-n.bottom-16,280)}px`}}function $r({host:e,target:t,input:n,position:r,beforeToggle:o,onToggle:c,handleOther:i,axis:s}){return f(Bi({host:e,input:n,handleOther:i,axis:s}),S(n??e,"blur").debounceTime(100).tap(()=>{e.open=!1}),Hi({host:e,target:t,position:r??vc(e,t),beforeToggle:o,onToggle:c}))}function wc(e){let{host:t}=e;return f(yc(t)??T,be(t)??T,Be(t),$r(e))}var xt=class extends g{};u(xt,{tagName:"c-select-option",augment:[d(`
404
+ :host {
405
+ box-sizing: border-box;
406
+ cursor: pointer;
407
+ display: flex;
408
+ column-gap: 16px;
409
+ align-items: center;
410
+ /*background-color: var(--cxl-color-surface);
411
+ color: var(--cxl-color-on-surface);*/
412
+ padding: var(--cxl-select-padding, 16px);
413
+ position: relative;
414
+ user-select: none;
415
+ white-space: nowrap;
416
+ overflow: hidden;
417
+ -webkit-user-select: none;
418
+ -webkit-tap-highlight-color: transparent;
419
+ }
420
+ :host([focused]) {
421
+ background-image: var(--cxl-select-focused);
422
+ }
423
+ :host(:hover) { background-image: linear-gradient(0, var(--cxl-mask-hover),var(--cxl-mask-hover)); }
424
+ :host(:focus-visible) { background-image: linear-gradient(0, var(--cxl-mask-focus),var(--cxl-mask-focus)) }
425
+ `),I]});var Hr=class extends Gn{open=!1;optionView=xt;setSelected(t){if(super.setSelected(t),this.open)this.open=!1;else{for(let n of this.options)n!==t&&(n.slot="");t&&(t.slot="selected")}}};u(Hr,{tagName:"c-select",init:[b("open")],augment:[G("listbox"),d(`
426
+ :host([open]) ::slotted([selected]) {
427
+ --cxl-color-surface: var(--cxl-color-primary-container);
428
+ }
429
+ :host([open]) {
430
+ --cxl-mask-focus: color-mix(in srgb, var(--cxl-color-on-surface) 10%, transparent);
431
+ --cxl-mask-hover: color-mix(in srgb, var(--cxl-color-on-surface) 8%, transparent);
432
+ --cxl-select-focused: linear-gradient(0, var(--cxl-mask-focus),var(--cxl-mask-focus));
433
+ }
434
+ :host(:not([open])) {
435
+ --cxl-select-padding: 0;
436
+ --cxl-mask-focus: transparent;
437
+ --cxl-mask-hover: transparent;
438
+ }
439
+ slot[name=selected] {
440
+ pointer-events: none;
441
+ --cxl-color-surface: transparent;
442
+ }
443
+ .menu {
444
+ position: fixed;
445
+ padding: 8px 0;
446
+ min-width: 112px;
447
+ width: max-content;
448
+ border-radius: var(--cxl-shape-corner-xsmall);
449
+ visibility:hidden;
450
+ margin: 0;
451
+ transition: scale var(--cxl-speed);
452
+ /** popover applies display:none if this is not set */
453
+ display: block;
454
+ }
455
+ .menu.open {
456
+ ${re("surface-container")}
457
+ border: 0;
458
+ transform-origin: top;
459
+ overflow-y: auto;
460
+ box-shadow: var(--cxl-elevation-2);
461
+ visibility:visible;
462
+ }
463
+ `),e=>{let t=N("div",{className:"menu"},N("slot")),n=N("slot",{name:"selected"}),r=t.style,o=ui(e),c=0,i=0;z(e).append(t,n,Yn({viewBox:"0 0 24 24",className:"caret",d:"M7 10l5 5 5-5z"}));function s(){if(e.open)i=e.selected?.rendered?.offsetHeight??0;else{r.cssText="";let a=e.options.reduce((l,C)=>Math.max(l,C.rendered?.offsetWidth??0),0);o.replaceSync(`:host{width:${a}px}`)}}return f(f(Me(e),zn()).raf(s),wc({host:e,target:t,handleOther:!0,beforeToggle(a){s();let l=e.selected;l&&(l.slot=a?"":"selected"),t.classList.toggle("open",a)},onToggle(a){let l=e.selected;!a&&l&&(c=l.rendered?.offsetHeight??0)},position(){let a=e.parentElement??e,l=Math.round((i-c)/2),C=e.selected?.rendered,m=a.getBoundingClientRect(),P=e.getBoundingClientRect(),R=P.top-14,$,W=C?C.offsetTop:0;W>R&&(W=R),$=t.scrollHeight;let ae=window.innerHeight-P.top+8+W,te=P.top-l-W;$>ae?$=ae:$<P.height&&($=P.height),r.top=te+"px",r.left=m.left+"px",r.maxHeight=$+"px",r.minWidth=m.width+"px",r.transformOrigin=`${W}px`}}))}]});function Ec(e){let t=qe();return f(He("field",e,n=>t.next(n)),t)}function ji(e){return Ec(e).switchMap(t=>h(e,"input").switchMap(n=>n?F(n):h(t,"input").switchMap(r=>r?F(r):T)))}function Vt(e,t,n){return h(e,n).tap(r=>It(t,n,r))}var Sc="display:block;border:0;padding:0;font:inherit;color:inherit;outline:0;width:100%;min-height:20px;background-color:transparent;text-align:start;white-space:pre-wrap;max-height:100%;resize:inherit;";function qn({host:e,input:t,toText:n,toValue:r,update:o}){t.className="cxl-native-input",t.setAttribute("style",Sc),t.setAttribute("form","__cxl_ignore__");function c(a){e.value=r?r(t.value||""):t.value,a.stopPropagation(),e.dispatchEvent(new Event(a.type,{bubbles:!0}))}function i(){let a=e.value,l=n?n(a,t.value):a||"";t.value!==l&&e.setInputValue(l)}function s(){t.ariaLabel=e.ariaLabel;let a=e.getAttribute("aria-labelledby");a?t.setAttribute("aria-labelledby",a):t.removeAttribute("aria-labelledby")}return f(Be(e,t),Q(()=>(s(),t.form?S(t.form,"reset").tap(c):T)),h(e,"value").tap(()=>{n&&t.matches(":focus")||i()}),S(t,"blur").tap(i),S(t,"input").tap(c),S(t,"change").tap(c),Vt(e,t,"disabled"),Vt(e,t,"name"),Vt(e,t,"autocomplete"),Vt(e,t,"spellcheck"),Vt(e,t,"autofocus"),Nn(e,["aria-label","aria-labelledby"]).tap(s),o?o.tap(i):T,S(t,"blur").tap(()=>e.dispatchEvent(new Event("blur"))),S(t,"focus").tap(()=>e.dispatchEvent(new Event("focus"))))}var Wn=class e extends ht{inputValue="";static{u(e,{init:[X("inputValue")],augment:[t=>(t.inputValue=t.inputEl.value,S(t.inputEl,"input").tap(()=>{t.inputValue=t.inputEl.value}))]})}constructor(){super(),this.attachShadow({mode:"open",delegatesFocus:!0})}get role(){return this.inputEl.role}get validationMessage(){return this.inputEl.validationMessage||""}get validity(){return this.inputEl.validity}set role(t){this.inputEl.role=t}focus(){this.inputEl.focus()}setAria(t,n){n?this.inputEl.setAttribute(`aria-${t}`,n):this.inputEl.removeAttribute(`aria-${t}`)}setInputValue(t){this.inputEl.value=t,this.inputValue=this.inputEl.value}applyValidity(t,n){xe(this).setValidity({customError:t},n,this.inputEl),this.inputEl.setCustomValidity(t?n||"Invalid Field":"")}};var Cc=[d(`
464
+ :host{display: block; flex-grow: 1; /*color: var(--cxl-color-on-surface);*/ position:relative;}
465
+ `),be],jr=[...Cc,I],Ut=class e extends Wn{autofilled=!1;autocomplete;static{u(e,{init:[b("autofilled"),y("autocomplete")],augment:[t=>S(t.inputEl,"animationstart").tap(n=>{(n.animationName==="cxl-onautofillstart"||n.animationName==="cxl-onautofillend")&&(t.autofilled=n.animationName==="cxl-onautofillstart",ue(t,"focusable.change"),t.inputValue=t.inputEl.value)})]})}get selectionStart(){return this.inputEl.selectionStart}get selectionEnd(){return this.inputEl.selectionEnd}set selectionStart(t){this.inputEl.selectionStart=t}set selectionEnd(t){this.inputEl.selectionEnd=t}setSelectionRange(t,n){this.inputEl.setSelectionRange(t,n)}getWindowSelection(){return this.shadowRoot?.getSelection?.()??getSelection()}getOwnSelection(){let t=this.getWindowSelection();return!t||t.focusNode!==this.inputEl&&!this.inputEl.contains(t.focusNode)?void 0:t}},Gt=class extends Ut{value="";inputEl=N("input",{className:"input"})};u(Gt,{tagName:"c-input-text",init:[y("value")],augment:[...jr,e=>e.append(e.inputEl),e=>qn({host:e,input:e.inputEl})]});function kc(e){getComputedStyle(e).direction==="rtl"?e.scrollLeft=1e6:e.scrollLeft=e.scrollWidth}var bt=class e extends Ut{selected;value;inputEl=N("input",{className:"input"});static{u(e,{tagName:"c-input-option",init:[y("value"),X("selected")],augment:[...jr,t=>t.append(t.inputEl),t=>qn({host:t,input:t.inputEl,toText:()=>t.selected?.textContent??"",toValue:n=>n!==""?t.selected?.value:void 0}),t=>V(t,"selected").tap(n=>{let r=t.selected?.textContent;t.value=n?.value,t.setInputValue(r??""),kc(t.inputEl)})]})}};function Ac(e){return Vr(e,"^")}function Vr(e,t=""){if(e==="")return()=>!0;let n=Mc(e,t);return r=>r.textContent?n.test(r.textContent):!1}function Mc(e,t="",n="i"){return new RegExp(t+e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n)}var Xn=class e extends g{optionView=xt;open=!1;debounce=100;options=[];matcher=Vr;static{u(e,{tagName:"c-autocomplete",init:[b("open"),Fn("debounce")],augment:[G("listbox"),$i,ut,t=>{let n=N("slot",{name:"empty"}),r=N("div",{id:"menu",tabIndex:-1},N("slot"),n),o=Yn({viewBox:"0 0 24 24",id:"caret",d:"M7 10l5 5 5-5z",width:20,height:20,fill:"currentColor"});o.style.cursor="pointer",n.style.display="none";function c(a){t.open=!0,s(a)}function i(a,l){a.setAria("activedescendant",Te(l)),l.rendered?.scrollIntoView({block:"nearest"})}function s(a){let l=a.inputValue??a.value,C=t.matcher==="substring"?Vr:t.matcher==="prefix"?Ac:t.matcher,m=l?C(String(l)):void 0,P=0;for(let R of t.options){let $=m?!m(R):!1;R.hidden=$,R.focused=!($||P++>0),R.focused&&i(a,R)}n.style.display=P?"none":""}return z(t).append(r,o),f(ji(t).switchMap(a=>(a.setAria("autocomplete","list"),a.role="combobox",a.setAria("controls",Te(t)),a.setAria("haspopup",t.role),a.setAttribute("autocomplete","off"),f(h(t,"open").tap(l=>{if(l)o.tabIndex=-1,c(a);else{for(let C of t.options)C.focused=!1;o.tabIndex=0,a.setAria("activedescendant",null)}a.setAria("expanded",String(l))}),f(Tn(o),S(o,"mousedown")).tap(l=>{l.preventDefault(),l.stopPropagation(),a.focus()}).debounceTime(100).tap(()=>{t.open=!0}),h(t,"debounce").switchMap(l=>S(a,"input").debounceTime(l).tap(()=>t.open?s(a):c(a))),S(t,"change").tap(l=>{l.target===t&&a.dispatchEvent(new Event("change",{bubbles:!0}))}),$r({host:t,target:r,input:a}),f(Pr(t),V(a,"value").map(l=>{for(let C of t.options)if(C.value===l)return C})).tap(l=>{for(let C of t.options)C.focused=C.selected=!1;l&&(l.selected=!0),a instanceof bt?a.selected=l:a.value=l?.value,t.open=!1})))))}]})}};var Jn=class extends g{};u(Jn,{tagName:"c-body",augment:[d(`
255
466
  :host {
256
467
  position: relative;
257
468
  display: flex;
@@ -266,13 +477,13 @@ ${Kt()}
266
477
  }
267
478
  slot { display: flex; flex-direction: column; max-width: 1200px; flex-grow: 1; }
268
479
 
269
- ${G("medium",`
480
+ ${U("medium",`
270
481
  :host{padding:32px;}
271
482
  slot { margin: 0 auto; width:100%; }
272
483
  `)}
273
- `),O]});var xt=class extends Qe{};u(xt,{tagName:"c-button-text",augment:[...mt,y(`
484
+ `),I]});var Yt=class extends mt{};u(Yt,{tagName:"c-button-text",augment:[...Qe,d(`
274
485
  :host {
275
- ${L("label-large")}
486
+ ${B("label-large")}
276
487
  padding: 0 12px; border-radius: var(--cxl-shape-corner-full);
277
488
  flex-shrink: 0;
278
489
  margin: -10px -12px;
@@ -293,33 +504,33 @@ ${G("medium",`
293
504
  background-color: transparent;
294
505
  }
295
506
  :host(:hover) { box-shadow: none; }
296
- `),Ee,O]});function Bn(e="block"){let t=(n=>{for(let r=12;r>0;r--)n.xl+=`:host([xl="${r}"]){display:${e};grid-column-end:span ${r};}`,n.lg+=`:host([lg="${r}"]){display:${e};grid-column-end:span ${r};}`,n.md+=`:host([md="${r}"]){display:${e};grid-column-end:span ${r};}`,n.sm+=`:host([sm="${r}"]){display:${e};grid-column-end:span ${r};}`,n.xs+=`:host([xs="${r}"]){display:${e};grid-column-end:span ${r};}`;return n})({xl:"",lg:"",md:"",sm:"",xs:""});return y(`
507
+ `),ve,I]});function Ur(e="block"){let t=(n=>{for(let r=12;r>0;r--)n.xl+=`:host([xl="${r}"]){display:${e};grid-column-end:span ${r};}`,n.lg+=`:host([lg="${r}"]){display:${e};grid-column-end:span ${r};}`,n.md+=`:host([md="${r}"]){display:${e};grid-column-end:span ${r};}`,n.sm+=`:host([sm="${r}"]){display:${e};grid-column-end:span ${r};}`,n.xs+=`:host([xs="${r}"]){display:${e};grid-column-end:span ${r};}`;return n})({xl:"",lg:"",md:"",sm:"",xs:""});return d(`
297
508
  :host { box-sizing:border-box; display:${e}; }
298
509
  ${t.xs}
299
510
  :host([xs="0"]) { display:none }
300
511
  :host([xsmall]) { display:${e} }
301
- ${G("small",`
512
+ ${U("small",`
302
513
  :host { grid-column-end: auto; }
303
514
  :host([small]) { display:${e} }
304
515
  ${t.sm}
305
516
  :host([sm="0"]) { display:none }
306
517
  `)}
307
- ${G("medium",`
518
+ ${U("medium",`
308
519
  ${t.md}
309
520
  :host([md="0"]) { display:none }
310
521
  :host([medium]) { display:${e} }
311
522
  `)}
312
- ${G("large",`
523
+ ${U("large",`
313
524
  ${t.lg}
314
525
  :host([lg="0"]) { display:none }
315
526
  :host([large]) { display:${e} }
316
527
  `)}
317
- ${G("xlarge",`
528
+ ${U("xlarge",`
318
529
  ${t.xl}
319
530
  :host([xl="0"]) { display:none }
320
531
  :host([xlarge]) { display:${e} }
321
532
  `)}
322
- `)}var zn=y(`
533
+ `)}var Gr=d(`
323
534
  :host([grow]) { flex-grow:1; flex-shrink: 1 }
324
535
  :host([color]) { background-color: var(--cxl-color-surface); color: var(--cxl-color-on-surface); }
325
536
  :host([fill]) { position: absolute; inset:0 }
@@ -329,34 +540,45 @@ ${t.xl}
329
540
  :host([elevation="2"]) { --cxl-color-surface: var(--cxl-color-surface-container); }
330
541
  :host([elevation="3"]) { --cxl-color-surface: var(--cxl-color-surface-container-high); }
331
542
  :host([elevation="4"]) { --cxl-color-surface: var(--cxl-color-surface-container-highest); }
332
- ${Kt()}
333
- ${pt.map(e=>`:host([pad="${e}"]){padding:${e}px}`).join("")}
334
- ${pt.map(e=>`:host([vpad="${e}"]){padding-top:${e}px;padding-bottom:${e}px}`).join("")}`),Ze=class extends x{grow=!1;fill=!1;xs;sm;md;lg;xl;pad;vpad;color;center=!1;elevation};u(Ze,{init:[C("sm"),C("xs"),C("md"),C("lg"),C("xl"),C("vpad"),C("pad"),C("center"),C("fill"),C("grow"),C("elevation"),Je("color")]});var Ln=class extends Ze{};u(Ln,{tagName:"c-c",augment:[zn,Bn(),y(":host([center]) { text-align: center}"),O]});function yo(e,t,n){return new _(r=>{let o={id:e,controller:n,target:t};Fe(t,`registable.${e}`,o),r.signal.subscribe(()=>o.unsubscribe?.())})}var ys=y(`
543
+ ${dt()}
544
+ ${Ze.map(e=>`:host([pad="${e}"]){padding:${e}px}`).join("")}
545
+ ${Ze.map(e=>`:host([vpad="${e}"]){padding-top:${e}px;padding-bottom:${e}px}`).join("")}`),yt=class extends g{grow=!1;fill=!1;xs;sm;md;lg;xl;pad;vpad;color;center=!1;elevation};u(yt,{init:[b("sm"),b("xs"),b("md"),b("lg"),b("xl"),b("vpad"),b("pad"),b("center"),b("fill"),b("grow"),b("elevation"),ft("color")]});var _e=class extends yt{};u(_e,{tagName:"c-c",augment:[Gr,Ur(),d(":host([center]) { text-align: center}"),I]});var Nc=d(`
335
546
  :host {
336
- box-sizing: border-box;
337
- position: relative;
338
- display: flex;
339
- padding: 4px 16px;
340
- min-height: 56px;
341
- align-items: center;
342
- column-gap: 16px;
343
- ${L("body-medium")}
547
+ ${re("surface-container")}
548
+ ${B("body-medium")}
549
+ border-radius: var(--cxl-shape-corner-medium);
550
+ overflow: hidden;
551
+ }
552
+ :host([variant=elevated]:not([color])) {
553
+ --cxl-color-surface: var(--cxl-color-surface-container-low);
554
+ z-index: 1;
555
+ box-shadow: var(--cxl-elevation-1);
344
556
  }
557
+ :host([variant=outlined]) {
558
+ ${re("surface")}
559
+ border: 1px solid var(--cxl-color-outline-variant);
560
+ }
561
+ ${dt()}
562
+ `),Wt=class extends _e{variant};u(Wt,{tagName:"c-card",init:[b("variant")],augment:[Nc]});var Tc=d(`
563
+ :host { ${ni} }
345
564
  :host([disabled]) { color: color-mix(in srgb, var(--cxl-color-on-surface) 38%, transparent); }
346
565
  :host([selected]) {
347
566
  background-color: var(--cxl-color-secondary-container);
348
567
  color: var(--cxl-color-on-secondary-container);
349
568
  }
350
- `);function ws(e){return v(yo("list",e),E(e,"selected").tap(t=>e.ariaSelected=String(t)))}function vs(e){return v(In(e),en(e,e,-1),ws(e))}var Ke=class extends x{disabled=!1;touched=!1;selected=!1};u(Ke,{init:[C("disabled"),C("touched"),C("selected")],augment:[vs]});var jn=class extends Ke{size};u(jn,{tagName:"c-item",init:[we("size",e=>`{min-height:${56+e*8}px}`)],augment:[ys,qe,Qt,K("option"),O,Ee]});var Hn={get(e){try{return localStorage.getItem(e)??void 0}catch(t){console.error(t)}return""},set(e,t){try{localStorage.setItem(e,t)}catch(n){console.error(n)}}};function wo(e){return(t,n)=>t[e]>n[e]?1:t[e]<n[e]?-1:0}function vo(e,t){if(t==="_parent")return e.parentElement||void 0;if(t==="_next")return e.nextElementSibling||void 0;if(typeof t!="string")return t??void 0;let n,r=e.getRootNode();return r instanceof ShadowRoot&&(n=r.getElementById(t),n)?n:e.ownerDocument.getElementById(t)??void 0}var bt=class extends x{disabled=!1;touched=!1;selected=!1;color;size=0};u(bt,{tagName:"c-chip",init:[C("disabled"),C("touched"),C("selected"),Je("color","surface-container-low"),we("size",e=>`{
569
+ `);function Rc(e){return f(He("list",e),h(e,"selected").tap(t=>e.ariaSelected=String(t)))}function Wr(e){return f(Nr(e),Be(e,e,-1),Rc(e))}var vt=class extends g{disabled=!1;touched=!1;selected=!1};u(vt,{init:[b("disabled"),b("touched"),b("selected")],augment:[Wr]});var Yr=class extends vt{size};u(Yr,{tagName:"c-item",init:[ye("size",e=>`{min-height:${56+e*8}px}`)],augment:[Tc,be,Bn,G("option"),I,ve]});var qt=class extends Wt{disabled=!1;touched=!1;selected=!1};u(qt,{tagName:"c-card-item",init:[b("disabled"),b("touched"),b("selected")],augment:[G("option"),...Qe,d(`
570
+ :host([variant=outlined]:hover) { box-shadow: var(--cxl-elevation-1) }
571
+ :host([variant=elevated]) { color: var(--cxl-color-on-surface); }
572
+ `),Wr,ve]});var Xt=class extends g{disabled=!1;touched=!1;selected=!1;color;size=0};u(Xt,{tagName:"c-chip",init:[b("disabled"),b("touched"),b("selected"),ft("color","surface-container-low"),ye("size",e=>`{
351
573
  padding: 2px ${e<0?2:8}px;
352
574
  font-size: ${14+e*2}px;
353
575
  height: ${32+e*6}px;
354
- }`)],augment:[K("button"),$n,...mt,y(`
576
+ }`)],augment:[G("button"),Tr,...Qe,d(`
355
577
  :host {
356
578
  box-sizing: border-box;
357
579
  border: 1px solid var(--cxl-color-outline-variant);
358
580
  border-radius: var(--cxl-shape-corner-small);
359
- ${L("label-large")}
581
+ ${B("label-large")}
360
582
  display: inline-flex;
361
583
  align-items: center;
362
584
  position: relative;
@@ -374,11 +596,11 @@ ${pt.map(e=>`:host([vpad="${e}"]){padding-top:${e}px;padding-bottom:${e}px}`).jo
374
596
  }
375
597
  :host([selected]) {
376
598
  border-color: var(--cxl-color-secondary-container);
377
- ${ve("secondary-container")}
599
+ ${re("secondary-container")}
378
600
  }
379
601
  :host(:hover) { box-shadow: none; }
380
602
  slot[name] { display: inline-block; }
381
- `),Ee,()=>F("slot",{name:"leading"}),O,()=>F("slot",{name:"trailing"})]});function Eo(e){let t=e.target;if(t)return typeof t=="string"?t.split(" ").flatMap(n=>{let r=vo(e,n);return r?[r]:[]}):Array.isArray(t)?t:[t]}function Es(e,t,n,r,o=R(e,"click").map(()=>!n())){return v(r,o).switchMap(a=>{let i=t();return i?Nr(i.map(s=>({target:s,open:a}))):I})}function Gn(e,t=e){function n(a,i){return[E(e,"open").switchMap(s=>(a.parentNode||ke.popupContainer.append(a),s&&a instanceof x?Y(a,"open").map(c=>{e.open&&c===!1&&(e.open=!1)}):I)),Gr(a).tap(s=>{let c=a.getAttribute("role");(c==="menu"||c==="listbox"||c==="tree"||c==="grid"||c==="dialog")&&(i.ariaHasPopup=c),i.getRootNode()===a.getRootNode()&&i.setAttribute("aria-controls",s)})]}let r=J(E(e,"trigger"),E(e,"target")).switchMap(([a])=>{let i=Eo(e),s=i?v(...i.flatMap(c=>n(c,e))).ignoreElements():I;return v(a==="hover"?J(Mn(t),i?v(...i.map(c=>Mn(c))):I).map(c=>!!c.find(f=>!!f)).debounceTime(250):a==="checked"?R(t,"change").map(c=>c.target&&"checked"in c.target?!!c.target.checked:!1):R(t,"click").map(()=>!e.open),s)}),o;return Ir().switchMap(()=>Es(t,()=>Eo(e),()=>e.open,E(e,"open"),r).filter(a=>{let{open:i,target:s}=a;if(e.open!==i){if(i)o=Pr(e)?.activeElement,s.trigger=e;else if(s.trigger&&s.trigger!==e)return a.open=!0,s.trigger=e,!0;return e.open=i,!1}if(!i&&s.trigger===e){let c=document.activeElement;(c===document.body||c===document.documentElement)&&o?.focus()}return!0}))}var on=class extends x{open=!1;target;trigger};u(on,{init:[b("target"),b("trigger"),C("open")],augment:[e=>Gn(e).raf(({target:t,open:n})=>t.open=n)]});var Un=class extends on{};u(Un,{tagName:"c-toggle",augment:[qt,O]});var Ce;function So(e){if(e==="0s"||e==="auto")return;let t=e.endsWith("ms")?1:1e3;return parseFloat(e)*t}function Ss(e){return e==="infinite"?1/0:+e}function ks(e){if(lo(e))return{animation:e};let t=e.startsWith("auto ");t&&(e="0s "+e.slice(5));let n={},r;e=e.replace(/stagger:(\d+)|composition:(\w+)/g,(s,c,f)=>(c&&(r=+c),f&&(n.composite=f),"")),Ce??=document.createElement("style").style,Ce.animation=e,n.fill=Ce.animationFillMode;let o=n.fill==="forwards"||n.fill==="both",a=t?void 0:So(Ce.animationDuration);a!==void 0&&(n.duration=a);let i=So(Ce.animationDelay);return i!==void 0&&(n.delay=i),Ce.animationIterationCount&&(n.iterations=Ss(Ce.animationIterationCount)),{animation:Ce.animationName,keep:o,stagger:r,options:n}}function Cs(e){return typeof e=="string"&&(e=e.split(",").map(t=>ks(t.trim()))),e}function Vn(e,t,n,r){let o=r?`motion-${r}-on`:"motion-on",a=Cs(n);return e.setAttribute(o,""),v(...a.map(i=>uo({target:t,...i}))).finalize(()=>e.removeAttribute(o))}var yt=class extends x{center=!1};u(yt,{tagName:"c-backdrop",init:[C("center")],augment:[y(`
603
+ `),ve,()=>N("slot",{name:"leading"}),I,()=>N("slot",{name:"trailing"})]});function Vi(e){let t=e.target;if(t)return typeof t=="string"?t.split(" ").flatMap(n=>{let r=Un(e,n);return r?[r]:[]}):Array.isArray(t)?t:[t]}function _c(e,t,n,r,o=S(e,"click").map(()=>!n())){return f(r,o).switchMap(c=>{let i=t();return i?kn(i.map(s=>({target:s,open:c}))):T})}function qr(e,t=e){function n(c,i){return[h(e,"open").switchMap(s=>(c.parentNode||ze.popupContainer.append(c),s&&c instanceof g?V(c,"open").map(a=>{e.open&&a===!1&&(e.open=!1)}):T)),Wo(c).tap(s=>{let a=c.getAttribute("role");(a==="menu"||a==="listbox"||a==="tree"||a==="grid"||a==="dialog")&&(i.ariaHasPopup=a),i.getRootNode()===c.getRootNode()&&i.setAttribute("aria-controls",s)})]}let r=oe(h(e,"trigger"),h(e,"target")).switchMap(([c])=>{let i=Vi(e),s=i?f(...i.flatMap(a=>n(a,e))).ignoreElements():T;return f(c==="hover"?oe(Er(t),i?f(...i.map(a=>Er(a))):T).map(a=>!!a.find(l=>!!l)).debounceTime(250):c==="checked"?S(t,"change").map(a=>a.target&&"checked"in a.target?!!a.target.checked:!1):S(t,"click").map(()=>!e.open),s)}),o;return Po().switchMap(()=>_c(t,()=>Vi(e),()=>e.open,h(e,"open"),r).filter(c=>{let{open:i,target:s}=c;if(e.open!==i){if(i)o=Xe(e)?.activeElement,s.trigger=e;else if(s.trigger&&s.trigger!==e)return c.open=!0,s.trigger=e,!0;return e.open=i,!1}if(!i&&s.trigger===e){let a=document.activeElement;(a===document.body||a===document.documentElement)&&o?.focus()}return!0}))}var Zn=class extends g{open=!1;target;trigger};u(Zn,{init:[y("target"),y("trigger"),b("open")],augment:[e=>qr(e).raf(({target:t,open:n})=>t.open=n)]});var Jt=class extends Zn{};u(Jt,{tagName:"c-toggle",augment:[ut,I]});var wt=class extends g{};u(wt,{tagName:"c-span"});var $e;function Ui(e){if(e==="0s"||e==="auto")return;let t=e.endsWith("ms")?1:1e3;return parseFloat(e)*t}function Ic(e){return e==="infinite"?1/0:+e}function Dc(e){if(mi(e))return{animation:e};let t=e.startsWith("auto ");t&&(e="0s "+e.slice(5));let n={},r;e=e.replace(/stagger:(\d+)|composition:(\w+)/g,(s,a,l)=>(a&&(r=+a),l&&(n.composite=l),"")),$e??=document.createElement("style").style,$e.animation=e,n.fill=$e.animationFillMode;let o=n.fill==="forwards"||n.fill==="both",c=t?void 0:Ui($e.animationDuration);c!==void 0&&(n.duration=c);let i=Ui($e.animationDelay);return i!==void 0&&(n.delay=i),$e.animationIterationCount&&(n.iterations=Ic($e.animationIterationCount)),{animation:$e.animationName,keep:o,stagger:r,options:n}}function Oc(e){return typeof e=="string"&&(e=e.split(",").map(t=>Dc(t.trim()))),e}function Xr(e,t,n,r){let o=r?`motion-${r}-on`:"motion-on",c=Oc(n);return e.setAttribute(o,""),f(...c.map(i=>gi({target:t,...i}))).finalize(()=>e.removeAttribute(o))}var Zt=class extends g{center=!1};u(Zt,{tagName:"c-backdrop",init:[b("center")],augment:[d(`
382
604
  :host {
383
605
  position: absolute;
384
606
  top: 0;
@@ -394,9 +616,9 @@ slot[name] { display: inline-block; }
394
616
  align-items: center;
395
617
  }
396
618
 
397
- `),e=>R(e,"keydown").tap(t=>t.stopPropagation()),O]});var ko=y(":host(:not([open],[motion-out-on])){display:none}");function Yn(e,t=()=>e,n=!1){let r=X(()=>z(t("in"))),o=X(()=>z(t("out")));return v(Ye(e,"toggle.close").tap(()=>e.open=!1).ignoreElements(),J(E(e,"motion-in").map(a=>a?r.switchMap(i=>Vn(e,i,a,"in")).switchMap(()=>e.duration!==void 0&&e.duration!==1/0?Oe(e.duration).map(()=>e.open=!1):I):r),E(e,"motion-out").map(a=>(a?o.switchMap(i=>Vn(e,i,a,"out").ignoreElements()):o).finalize(()=>{e.open||e.dispatchEvent(new Event("close"))}))).switchMap(([a,i])=>Y(e,"open").switchMap(s=>{if(e.popover!=="auto"){let c=s?"open":"closed";e.dispatchEvent(new ToggleEvent("toggle",{oldState:s?"closed":"open",newState:c}))}return s?n?ue(i,a):a:n?ue(i,a):i})))}var et=class extends x{open=!1;duration;"motion-in";"motion-out"};u(et,{init:[b("motion-in"),b("motion-out"),Ur("duration"),C("open")]});var Wn=class extends et{};u(Wn,{tagName:"c-toggle-target",augment:[y(`
619
+ `),e=>S(e,"keydown").tap(t=>t.stopPropagation()),I]});var Gi=d(":host(:not([open],[motion-out-on])){display:none}");function Zr(e,t=()=>e,n=!1){let r=Q(()=>F(t("in"))),o=Q(()=>F(t("out")));return f(se(e,"toggle.close").tap(()=>e.open=!1).ignoreElements(),oe(h(e,"motion-in").map(c=>c?r.switchMap(i=>Xr(e,i,c,"in")).switchMap(()=>e.duration!==void 0&&e.duration!==1/0?We(e.duration).map(()=>e.open=!1):T):r),h(e,"motion-out").map(c=>(c?o.switchMap(i=>Xr(e,i,c,"out").ignoreElements()):o).finalize(()=>{e.open||e.dispatchEvent(new Event("close"))}))).switchMap(([c,i])=>V(e,"open").switchMap(s=>{if(e.popover!=="auto"){let a=s?"open":"closed";e.dispatchEvent(new ToggleEvent("toggle",{oldState:s?"closed":"open",newState:a}))}return s?n?ke(i,c):c:n?ke(i,c):i})))}var Et=class extends g{open=!1;duration;"motion-in";"motion-out"};u(Et,{init:[y("motion-in"),y("motion-out"),Fn("duration"),b("open")]});var Jr=class extends Et{};u(Jr,{tagName:"c-toggle-target",augment:[d(`
398
620
  :host{display:contents}
399
- `),e=>{let t=F("slot"),n=F("slot",{name:"off"});return(e.open?n:t).style.display="none",j(e).append(t,n),Yn(e,r=>{t.style.display=n.style.display="none";let o=e.open?r==="in"?t:n:r==="in"?n:t;return o.style.display="",o.assignedElements()},!0)}]});var wt=class extends et{};u(wt,{tagName:"c-toggle-panel",augment:[O,ko,Yn]});var As=y(`
621
+ `),e=>{let t=N("slot"),n=N("slot",{name:"off"});return(e.open?n:t).style.display="none",z(e).append(t,n),Zr(e,r=>{t.style.display=n.style.display="none";let o=e.open?r==="in"?t:n:r==="in"?n:t;return o.style.display="",o.assignedElements()},!0)}]});var Qt=class extends Et{};u(Qt,{tagName:"c-toggle-panel",augment:[I,Gi,Zr]});var Lc=d(`
400
622
  #drawer {
401
623
  box-sizing: border-box;
402
624
  background-color: var(--cxl-color-surface);
@@ -410,7 +632,7 @@ slot[name] { display: inline-block; }
410
632
  overflow-x: hidden;
411
633
  z-index: 5;
412
634
  }
413
- ${G("small","#drawer { width: 360px }")}
635
+ ${U("small","#drawer { width: 360px }")}
414
636
 
415
637
  #dialog {
416
638
  margin: 0;
@@ -429,10 +651,10 @@ ${G("small","#drawer { width: 360px }")}
429
651
  #dialog::backdrop {
430
652
  background-color: transparent;
431
653
  }
432
- `),sn=class extends x{open=!1;position;responsive;permanent=!1};u(sn,{tagName:"c-drawer",init:[C("open"),C("position"),b("responsive"),b("permanent")],augment:[As,y(`
654
+ `),Qn=class extends g{open=!1;position;responsive;permanent=!1};u(Qn,{tagName:"c-drawer",init:[b("open"),b("position"),y("responsive"),y("permanent")],augment:[Lc,d(`
433
655
  :host { max-width: 360px; }
434
656
  #drawer.permanent {
435
- ${ve("surface")}
657
+ ${re("surface")}
436
658
  overflow-y: auto;
437
659
  overflow-x: hidden;
438
660
  position: relative;
@@ -455,14 +677,35 @@ ${G("small","#drawer { width: 360px }")}
455
677
  }
456
678
  :host([responsiveon]) #backdrop { display: none; }
457
679
  :host([responsiveon]) #dialog { display: contents; }
458
- `),e=>{let t=be(!1),n=v(E(e,"position"),t).raf(),r=()=>e.position==="right"||getComputedStyle(e).direction==="rtl",o=F(wt,{id:"drawer","motion-in":n.map(()=>e.permanent&&t.value?void 0:r()?"slideInRight":"slideInLeft"),"motion-out":n.map(()=>e.permanent&&t.value?void 0:r()?"slideOutRight":"slideOutLeft")},O),a=new yt;a.id="backdrop";let i=F("dialog",{id:"dialog"},a,o);return j(e).append(i),v(R(o,"close").tap(()=>i.close()),R(i,"close").tap(()=>e.open=!1),Y(o,"open").tap(s=>e.open=s),Y(e,"open").raf(s=>{s||o.scrollTo(0,0)}),R(a,"click").tap(()=>e.open=!1),R(i,"cancel").tap(s=>{s.preventDefault(),e.open=!1}),E(e,"open").tap(s=>{if(t.value&&e.permanent)return o.open=!0;s?t.value||(ke.openModal({element:i,close:()=>e.open=!1}),i.getBoundingClientRect()):ke.currentModal?.element===i&&ke.modalClosed()}).raf(s=>{o.open=s}),E(e,"responsive").switchMap(s=>s!==void 0?Zt(document.body):z("xsmall")).switchMap(s=>{let c=H.breakpoints[e.responsive||"large"],f=H.breakpoints[s]>=c;return t.next(f),f&&o.className!=="permanent"?i.close():!f&&o.className==="permanent"&&(e.open=!1),f&&e.open===!1&&(e.open=e.permanent),e.toggleAttribute("responsiveon",f),o.className=f?"permanent":"drawer",Y(e,"open").tap(T=>{e.hasAttribute("responsiveon")||de({target:a,animation:T?"fadeIn":"fadeOut",options:{fill:"forwards"}})})}))}]});var an=class{start=new Comment("marker-start");end=new Comment("marker-end");frag=document.createDocumentFragment();insert(t,n=this.end){let r=this.end.parentNode;r&&(this.start.parentNode||r.insertBefore(this.start,this.end),Array.isArray(t)?(this.frag.append(...t),r.insertBefore(this.frag,n)):r.insertBefore(t,n))}empty(){let t=this.start.nextSibling;for(;t&&t!==this.end;){let n=t.nextSibling;t.remove(),t=n}}};function Ms({source:e,render:t,empty:n,append:r,loading:o}){let a=[],i=document.createDocumentFragment(),s,c;function f(T){if(c?.parentNode?.removeChild(c),!T)return;let S=0;for(let B of T){let Me=a[S]?.item;if(Me)Me.value!==B&&Me.next(B);else{let me=be(B),he=t(me,S,T),ot=he instanceof DocumentFragment?Array.from(he.childNodes):[he];a.push({elements:ot,item:me}),i.append(he)}S++}i.childNodes.length&&r(i),s?.remove(),S===0&&n&&r(s=n());let te=a.length;for(;te-- >S;)a.pop()?.elements.forEach(B=>B.remove())}return X(()=>(c=o?.(),c&&r(c),e.raf(f)))}function Co(e){return zr(()=>{let t=new an;return[Ms({...e,append:t.insert.bind(t)}),t.end]})}var Le=class extends Ze{vflex=!1;gap;middle=!1};u(Le,{tagName:"c-flex",init:[C("vflex"),C("gap"),C("middle")],augment:[Bn("flex"),zn,y(`
680
+ `),e=>{let t=ie(!1),n=f(h(e,"position"),t).raf(),r=()=>e.position==="right"||getComputedStyle(e).direction==="rtl",o=N(Qt,{id:"drawer","motion-in":n.map(()=>e.permanent&&t.value?void 0:r()?"slideInRight":"slideInLeft"),"motion-out":n.map(()=>e.permanent&&t.value?void 0:r()?"slideOutRight":"slideOutLeft")},I),c=new Zt;c.id="backdrop";let i=N("dialog",{id:"dialog"},c,o);return z(e).append(i),f(S(o,"close").tap(()=>i.close()),S(i,"close").tap(()=>e.open=!1),se(e,"toggle.close").tap(()=>e.open=!1).ignoreElements(),V(o,"open").tap(s=>e.open=s),V(e,"open").raf(s=>{s||o.scrollTo(0,0)}),S(c,"click").tap(()=>e.open=!1),S(i,"cancel").tap(s=>{s.preventDefault(),e.open=!1}),h(e,"open").tap(s=>{if(t.value&&e.permanent)return o.open=!0;s?t.value||(ze.openModal({element:i,close:()=>e.open=!1}),i.getBoundingClientRect()):ze.currentModal?.element===i&&ze.modalClosed()}).raf(s=>{o.open=s}),h(e,"responsive").switchMap(s=>s!==void 0?pt(document.body):F("xsmall")).switchMap(s=>{let a=J.breakpoints[e.responsive||"large"],l=J.breakpoints[s]>=a;return t.next(l),l&&o.className!=="permanent"?i.close():!l&&o.className==="permanent"&&(e.open=!1),l&&e.open===!1&&(e.open=e.permanent),e.toggleAttribute("responsiveon",l),o.className=l?"permanent":"drawer",V(e,"open").tap(C=>{e.hasAttribute("responsiveon")||Re({target:c,animation:C?"fadeIn":"fadeOut",options:{fill:"forwards"}})})}))}]});var Kn=class{start=new Comment("marker-start");end=new Comment("marker-end");frag=document.createDocumentFragment();insert(t,n=this.end){let r=this.end.parentNode;r&&(this.start.parentNode||r.insertBefore(this.start,this.end),Array.isArray(t)?(this.frag.append(...t),r.insertBefore(this.frag,n)):r.insertBefore(t,n))}empty(){let t=this.start.nextSibling;for(;t&&t!==this.end;){let n=t.nextSibling;t.remove(),t=n}}};function Fc({source:e,render:t,empty:n,append:r,loading:o}){let c=[],i=document.createDocumentFragment(),s,a;function l(C){if(a?.parentNode?.removeChild(a),!C)return;let m=0;for(let R of C){let $=c[m]?.item;if($)$.value!==R&&$.next(R);else{let W=ie(R),ae=t(W,m,C),te=ae instanceof DocumentFragment?Array.from(ae.childNodes):[ae];c.push({elements:te,item:W}),i.append(ae)}m++}i.childNodes.length&&r(i),s?.remove(),m===0&&n&&r(s=n());let P=c.length;for(;P-- >m;)c.pop()?.elements.forEach(R=>R.remove())}return Q(()=>(a=o?.(),a&&r(a),e.raf(l)))}function tt(e){return jo(()=>{let t=new Kn;return[Fc({...e,append:t.insert.bind(t)}),t.end]})}var nt=class extends et{};u(nt,{tagName:"c-field-bar",augment:[zr,d(`
681
+ :host {
682
+ box-sizing: border-box;
683
+ ${re("surface-container-high")}
684
+ ${B("body-large")}
685
+ border-radius: var(--cxl-shape-corner-xlarge);
686
+ }
687
+ .content { padding: 4px 12px; }
688
+ `)]});var rt=class extends yt{vflex=!1;gap;middle=!1};u(rt,{tagName:"c-flex",init:[b("vflex"),b("gap"),b("middle")],augment:[Ur("flex"),Gr,d(`
459
689
  :host([middle]) { align-items: center; }
460
690
  :host([center]) { justify-content: center; }
461
691
  :host([vflex]) { flex-direction: column; }
462
692
  :host([vflex][middle]) { justify-content: center; align-items: normal }
463
693
  :host([vflex][center]) { align-items: center; }
464
- ${pt.map(e=>`:host([gap="${e}"]){gap:${e}px}`).join("")}
465
- `),O]});function qn(e){let t=document.createElement("style");return v(q(n=>{let r=e.persistkey&&Hn.get(e.persistkey);r!==void 0?e.open=r===e.themeon:e.usepreferred&&(e.open=matchMedia?.("(prefers-color-scheme: dark)").matches),n.signal.subscribe(()=>t.remove())}),ye(e).raf(()=>{e.setAttribute("aria-pressed",String(e.open));let n=e.open?e.themeon:e.themeoff;e.persistkey&&Hn.set(e.persistkey,n),oo(to[n]||n)}),Q(e).tap(()=>e.open=!e.open))}var Xn=class extends x{open=!1;usepreferred=!1;persistkey="";themeoff="";themeon="./theme-dark.js"};u(Xn,{tagName:"c-toggle-theme",init:[b("persistkey"),b("usepreferred"),b("open"),b("themeon"),b("themeoff")],augment:[K("group"),qn]});var vt=class extends se{open=!1;usepreferred=!1;persistkey="";iconon="wb_sunny";iconoff="dark_mode";themeoff="";themeon="./theme-dark.js"};u(vt,{tagName:"c-icon-toggle-theme",init:[b("persistkey"),b("usepreferred"),b("open"),b("themeon"),b("themeoff")],augment:[qn,e=>J(E(e,"iconon"),E(e,"iconoff"),E(e,"open")).tap(()=>e.icon=e.open?e.iconon:e.iconoff)]});var Ns=()=>{let e;function t(){let n=document.adoptedStyleSheets.indexOf(e);n!==-1&&document.adoptedStyleSheets.splice(n,1)}addEventListener("message",n=>{let{theme:r}=n.data;t(),r!==void 0&&(e=new CSSStyleSheet,e.replace(r),document.adoptedStyleSheets.push(e))})},Ts=()=>{let e=()=>{let t=()=>{parent.postMessage({height:document.documentElement.scrollHeight},"*")};requestAnimationFrame(async()=>{await document.fonts.ready,new ResizeObserver(t).observe(document.documentElement)})};document.readyState==="complete"?e():addEventListener("load",e)},Et=class extends x{src="";srcdoc="";sandbox="allow-forms allow-scripts";reset="<!DOCTYPE html><style>html{display:flex;flex-direction:column;font:var(--cxl-font-default);}body{padding:0;margin:0;translate:0;overflow:auto;}</style>";handletheme=!0};u(Et,{tagName:"c-iframe",init:[b("src"),b("srcdoc"),b("sandbox"),b("handletheme")],augment:[y(`
694
+ ${Ze.map(e=>`:host([gap="${e}"]){gap:${e}px}`).join("")}
695
+ `),I]});function Pc(e){return Vn("list",e,e.items)}function Yi(e){return Fi({host:e,getFocusable:()=>e.items,getSelected:()=>e.items.find(t=>t.selected),getActive:()=>e.items.find(t=>t.matches(":focus,:focus-within")),observe:Pc(e)})}function Wi(e){return Pi({getFocusable:()=>e.items,getActive:()=>Fr(e)})}function Bc(e){let t=Wi(e);function n(r){return Math.round(r.getBoundingClientRect().left)}return f(Yi(e),$t({host:e,goRight:()=>t(1),goLeft:()=>t(-1),goFirst:()=>t(1,-1),goLast:()=>t(-1,e.items.length),goUp:()=>{let r=Xe(e)?.activeElement,o=r&&n(r);return t(-1,void 0,o!==void 0?c=>n(c)!==o:void 0)},goDown:()=>{let r=Xe(e)?.activeElement,o=r&&n(r);return t(1,void 0,o!==void 0?c=>n(c)!==o:void 0)}}).tap(r=>r.focus()))}var Kt=class extends g{items=[]};u(Kt,{tagName:"c-grid-list",augment:[G("grid"),d(":host{display:grid;box-sizing:border-box;}"),I,Bc]});var er=class extends g{pad;vertical=!1};u(er,{tagName:"c-hr",init:[b("pad"),b("vertical")],augment:[G("separator"),d(`
696
+ :host {
697
+ display: block;
698
+ height: 1px;
699
+ background-color: var(--cxl-color-outline-variant);
700
+ }
701
+ :host([vertical]) {
702
+ height: auto;
703
+ width: 1px;
704
+ align-self: stretch;
705
+ margin-top: 8px;
706
+ margin-bottom: 8px;
707
+ }
708
+ ${Ze.map(e=>`:host([pad="${e}"]){margin:${e}px 0;}`).join("")}`)]});function Kr(e){let t=document.createElement("style");return f(K(n=>{let r=e.persistkey&&Dr.get(e.persistkey);r!==void 0?e.open=r===e.themeon:e.usepreferred&&(e.open=matchMedia("(prefers-color-scheme: dark)").matches),n.signal.subscribe(()=>t.remove())}),Le(e).raf(()=>{e.setAttribute("aria-pressed",String(e.open));let n=e.open?e.themeon:e.themeoff;e.persistkey&&Dr.set(e.persistkey,n),li(ai[n]||n)}),q(e).tap(()=>e.open=!e.open))}var Qr=class extends g{open=!1;usepreferred=!1;persistkey="";themeoff="";themeon="./theme-dark.js"};u(Qr,{tagName:"c-toggle-theme",init:[y("persistkey"),y("usepreferred"),y("open"),y("themeon"),y("themeoff")],augment:[G("group"),Kr]});var en=class extends ce{open=!1;usepreferred=!1;persistkey="";iconon="wb_sunny";iconoff="dark_mode";themeoff="";themeon="./theme-dark.js"};u(en,{tagName:"c-icon-toggle-theme",init:[y("persistkey"),y("usepreferred"),y("open"),y("themeon"),y("themeoff")],augment:[Kr,e=>oe(h(e,"iconon"),h(e,"iconoff"),h(e,"open")).tap(()=>e.icon=e.open?e.iconon:e.iconoff)]});var zc=()=>{let e;function t(){let n=document.adoptedStyleSheets.indexOf(e);n!==-1&&document.adoptedStyleSheets.splice(n,1)}addEventListener("message",n=>{let{theme:r}=n.data;t(),r!==void 0&&(e=new CSSStyleSheet,e.replace(r).catch(o=>console.error(o)),document.adoptedStyleSheets.push(e))})},Hc=()=>{let e=()=>{let t=()=>{parent.postMessage({height:document.documentElement.scrollHeight},"*")};requestAnimationFrame(()=>{document.fonts.ready.then(()=>{new ResizeObserver(t).observe(document.documentElement)},n=>console.error(n))})};document.readyState==="complete"?e():addEventListener("load",e)},tn=class extends g{src="";srcdoc="";sandbox="allow-forms allow-scripts";reset="<!DOCTYPE html><style>html{display:flex;flex-direction:column;font:var(--cxl-font-default);}body{padding:0;margin:0;translate:0;overflow:auto;}</style>";handletheme=!0};u(tn,{tagName:"c-iframe",init:[y("src"),y("srcdoc"),y("sandbox"),y("handletheme")],augment:[d(`
466
709
  :host {
467
710
  position: relative;
468
711
  display: flex;
@@ -477,16 +720,26 @@ iframe {
477
720
  display: flex;
478
721
  border-style: none;
479
722
  }
480
- `),e=>{let t=k("iframe",{loading:"lazy"}),n=k("slot",{name:"loading"}),r=new CSSStyleSheet;e.shadowRoot?.adoptedStyleSheets.push(r),n.style.display="none";function o(i){r.replaceSync(":host{height:"+i+"px}"),t.style.height="100%",t.style.opacity="1",n.style.display="none"}function a(i){if(i){let s=`<script type="module">
481
- (${Ts.toString()})();
482
- (${Ns.toString()})();
483
- <\/script>`;t.srcdoc=`${e.reset}${i}${s}`,n.style.display=""}}return j(e).append(t,n),v(J(E(e,"srcdoc"),E(e,"src")).raf(async([i,s])=>{a(s?`<base href="${s}" />`+await fetch(s).then(c=>c.text()):i)}),R(window,"message").tap(i=>{let{height:s}=i.data;i.source===t.contentWindow&&s!==void 0&&o(s)}),E(e,"handletheme").switchMap(i=>i?R(t,"load").switchMap(()=>ut.raf(s=>{let c=s?.css??"";t.contentWindow?.postMessage({theme:c},"*")})):I),E(e,"sandbox").tap(i=>i===void 0?t.removeAttribute("sandbox"):t.sandbox.value=i))}]});var _s=[y(`
723
+ `),e=>{let t=E("iframe",{loading:"lazy"}),n=E("slot",{name:"loading"}),r=new CSSStyleSheet;e.shadowRoot?.adoptedStyleSheets.push(r),n.style.display="none";function o(i){r.replaceSync(":host{height:"+i+"px}"),t.style.height="100%",t.style.opacity="1",n.style.display="none"}function c(i){if(i){let s=`<script type="module">
724
+ (${Hc.toString()})();
725
+ (${zc.toString()})();
726
+ <\/script>`;t.srcdoc=`${e.reset}${i}${s}`,n.style.display=""}}return z(e).append(t,n),f(oe(h(e,"srcdoc"),h(e,"src")).raf(([i,s])=>{(async()=>{let a=new URL(s);c(s?`${a.search||a.hash?`<script>history.replaceState(0,0,'about:srcdoc${a.search}${a.hash}');<\/script>`:""}<base href="${s}" />`+await fetch(s).then(l=>l.text()):i)})().catch(()=>{})}),S(window,"message").tap(i=>{let{height:s}=i.data;i.source===t.contentWindow&&s!==void 0&&o(s)}),h(e,"handletheme").switchMap(i=>i?S(t,"load").switchMap(()=>Dt.raf(s=>{let a=s?.css??"";t.contentWindow?.postMessage({theme:a},"*")})):T),h(e,"sandbox").tap(i=>i===void 0?t.removeAttribute("sandbox"):t.sandbox.value=i))}]});var tr=class extends g{};u(tr,{tagName:"c-nav-headline",augment:[d(`
727
+ :host{
728
+ color:var(--cxl-color-on-surface-variant);
729
+ font:var(--cxl-font-title-small);
730
+ letter-spacing:var(--cxl-letter-spacing-title-small);
731
+ min-height:48px;
732
+ display:flex;
733
+ align-items: center;
734
+ padding: 0 16px;
735
+ }
736
+ `),I]});var $c=[d(`
484
737
  :host {
485
738
  --cxl-color-on-surface: var(--cxl-color-on-surface-variant);
486
739
  --cxl-color-ripple: var(--cxl-color-secondary-container);
487
740
  background-color: var(--cxl-color-surface);
488
741
  color: var(--cxl-color-on-surface);
489
- ${L("label-large")}
742
+ ${B("label-large")}
490
743
  box-sizing: border-box;
491
744
  position: relative;
492
745
  cursor: pointer;
@@ -513,8 +766,8 @@ iframe {
513
766
  :host([selected]) c-ripple { background-color: var(--cxl-color-surface); }
514
767
  c-ripple { z-index: -1 }
515
768
  :host([dense]) { min-height:48px; }
516
- ${Dn("c-ripple")}
517
- `),qe,fo,O],Be=class extends Ke{size};u(Be,{tagName:"c-nav-item",init:[we("size",e=>`{min-height:${56+e*8}px}`)],augment:[K("option"),..._s]});var St=class extends se{open=!1;target;icon="menu"};u(St,{tagName:"c-navbar-toggle",init:[b("target"),fe("open")],augment:[e=>Gn(e).tap(({target:t,open:n})=>t.open=n)]});var cn=class extends x{};u(cn,{tagName:"c-page",augment:[nn,y(`
769
+ ${Ot("c-ripple")}
770
+ `),be,xi,I],ot=class extends vt{size};u(ot,{tagName:"c-nav-item",init:[ye("size",e=>`{min-height:${56+e*8}px}`)],augment:[G("option"),...$c]});var nn=class extends ce{open=!1;target;icon="menu"};u(nn,{tagName:"c-navbar-toggle",init:[y("target"),X("open")],augment:[e=>qr(e).tap(({target:t,open:n})=>t.open=n)]});function qi(e){return f(h(e,"selected").pipe(Go(e,"selected")),He("selectable",e),q(e).tap(()=>ue(e,"selectable.action",e)))}var rn=class extends g{value;view;selected=!1;hidden=!1;focused=!1;rendered;focus(){this.rendered?.focus()}};u(rn,{tagName:"c-option",init:[y("value"),X("view"),b("selected"),b("hidden"),b("focused")],augment:[G("option"),d(":host{display:contents} :host([hidden]){display:none;}"),Oi,qi,e=>{let t;return f(h(e,"view").switchMap(n=>n?(t?.remove(),e.rendered=t=new n,t.appendChild(N("slot")),z(e).append(t),f(h(e,"selected").tap(r=>t?.toggleAttribute("selected",r)),h(e,"focused").tap(r=>t?.toggleAttribute("focused",r)))):(e.rendered=t=void 0,T)))}]});var nr=class extends g{};u(nr,{tagName:"c-page",augment:[jn,d(`
518
771
  :host {
519
772
  box-sizing:border-box;
520
773
  display: flex;
@@ -522,8 +775,15 @@ ${Dn("c-ripple")}
522
775
  /* height:100% affects sticky appbar positioning */
523
776
  min-height: 100vh;
524
777
  padding-top: 0; padding-bottom: 0;
525
- ${ve("background")}
526
- }`),O]});var Rs=/([^&=]+)=?([^&]*)/g,Os=/:([\w_$@]+)/g,Ds=/\/\((.*?)\)/g,Is=/(\(\?)?:\w+/g,$s=/\*\w+/g,Fs=/[-{}[\]+?.,\\^$|#\s]/g,Ps=/([^#]*)(?:#(.+))?/,nr="@@cxlRoute",ee={location:window.location,history:window.history};function Ls(e){let t=[];return[new RegExp("^/?"+e.replace(Fs,"\\$&").replace(Ds,"\\/?(?:$1)?").replace(Is,function(r,o){return t.push(r.substr(1)),o?r:"([^/?]*)"}).replace($s,"([^?]*?)")+"(?:/$|\\?|$)"),t]}function Ao(e){return e[0]==="/"&&(e=e.slice(1)),e.endsWith("/")&&(e=e.slice(0,-1)),e}function Jn(e,t){return t?e.replace(Os,(n,r)=>t[r]||""):e}function Bs(e){let t={},n;for(;n=Rs.exec(e);)t[n[1]]=decodeURIComponent(n[2]);return t}var Qn=class{path;regex;parameters;constructor(t){this.path=t=Ao(t),[this.regex,this.parameters]=Ls(t)}_extractQuery(t){let n=t.indexOf("?");return n===-1?{}:Bs(t.slice(n+1))}getArguments(t){let n=this.regex.exec(t),r=n&&n.slice(1);if(!r)return;let o=this._extractQuery(t);return r.forEach((a,i)=>{let s=i===r.length-1?a||"":a?decodeURIComponent(a):"";o[this.parameters[i]]=s}),o}test(t){return this.regex.test(t)}toString(){return this.path}},Zn=class{id;path;parent;redirectTo;definition;isDefault;constructor(t){if(t.path!==void 0)this.path=new Qn(t.path);else if(!t.id)throw console.log(t),new Error("An id or path is mandatory. You need at least one to define a valid route.");this.id=t.id||(t.path??`route${Math.random().toString()}`),this.isDefault=t.isDefault||!1,this.parent=t.parent,this.redirectTo=t.redirectTo,this.definition=t}create(t){let n=this.definition.render();n[nr]=this;for(let r in t)t[r]!==void 0&&(n[r]=t[r]);return n}},Kn=class{routes=[];defaultRoute;findRoute(t){return this.routes.find(n=>n.path?.test(t))??this.defaultRoute}get(t){return this.routes.find(n=>n.id===t)}register(t){if(t.isDefault){if(this.defaultRoute)throw new Error("Default route already defined");this.defaultRoute=t}this.routes.unshift(t)}};function zs(e){return e[nr]}function tt(e){let t=Ps.exec(e);return{path:Ao(t?.[1]||""),hash:t?.[2]||""}}var js={getHref(e){return e=typeof e=="string"?tt(e):e,`${ee.location.pathname}${e.path?`?${e.path}`:""}${e.hash?`#${e.hash}`:""}`},serialize(e){let t=ee.history.state?.url;if(!t||e.hash!==t.hash||e.path!==t.path){let n=this.getHref(e);n!==`${location.pathname}${location.search}${location.hash}`&&ee.history.pushState({url:e},"",n)}},deserialize(){return{path:ee.location.search.slice(1),hash:ee.location.hash.slice(1)}}},Hs={getHref(e){return e=typeof e=="string"?tt(e):e,`${e.path}${e.hash?`#${e.hash}`:""}`},serialize(e){let t=ee.history.state?.url;if(!t||e.hash!==t.hash||e.path!==t.path){let n=this.getHref(e);n!==`${location.pathname}${location.search}${location.hash}`&&ee.history.pushState({url:e},"",n||"/")}},deserialize(){return{path:ee.location.pathname,hash:ee.location.hash.slice(1)}}},Mo={getHref(e){return e=typeof e=="string"?tt(e):e,`#${e.path}${e.hash?`#${e.hash}`:""}`},serialize(e){let t=Mo.getHref(e);ee.location.hash!==t&&(ee.location.hash=t)},deserialize(){return tt(ee.location.hash.slice(1))}},No={hash:Mo,path:Hs,query:js},er=class{callbackFn;state;routes=new Kn;instances={};root;lastGo;constructor(t){this.callbackFn=t}getState(){if(!this.state)throw new Error("Invalid router state");return this.state}route(t){let n=new Zn(t);return this.routes.register(n),n}go(t){this.lastGo=t;let n=typeof t=="string"?tt(t):t,r=n.path,o=this.state?.url;if(r!==o?.path){let a=this.routes.findRoute(r);if(!a)throw new Error(`Path: "${r}" not found`);let i=a.path?.getArguments(r);if(a.redirectTo)return this.go(Jn(a.redirectTo,i));let s=this.execute(a,i);if(this.lastGo!==t)return;if(!this.root)throw new Error(`Route: "${r}" could not be created`);this.updateState({url:n,arguments:i,route:a,current:s,root:this.root})}else this.state&&n.hash!=o?.hash&&this.updateState({...this.state,url:n})}getPath(t,n){let r=this.routes.get(t),o=r&&r.path;return o&&Jn(o.toString(),n)}isActiveUrl(t){let n=tt(t);if(!this.state?.url)return!1;let r=this.state.url;return!!Object.values(this.instances).find(o=>{let a=o[nr],i=this.state?.arguments;if(a?.path?.test(n.path)&&(!n.hash||n.hash===r.hash)){if(i){let s=a.path.getArguments(n.path);for(let c in s)if(i[c]!=s[c])return!1}return!0}return!1})}updateState(t){this.state=t,this.callbackFn?.(t)}findRoute(t,n){let r=this.instances[t],o;if(r)for(o in n){let a=n[o];a!==void 0&&(r[o]=a)}return r}executeRoute(t,n,r){let o=t.parent,a=o&&this.routes.get(o),i=t.id,s=a&&this.executeRoute(a,n,r),c=this.findRoute(i,n)||t.create(n);return s?c&&c.parentNode!==s&&s.appendChild(c):this.root=c,r[i]=c,c}discardOldRoutes(t){let n=this.instances;for(let r in n){let o=n[r];t[r]!==o&&(o.parentNode?.removeChild(o),delete n[r])}}execute(t,n){let r={},o=this.executeRoute(t,n||{},r);return this.discardOldRoutes(r),this.instances=r,o}},kt=new Ue,To=new Ue,ae=new er(()=>kt.next());function Us(e,t=No.query){return v(q(()=>To.next(t)),e.tap(()=>ae.go(t.deserialize())),kt.tap(()=>t.serialize(ae.getState().url))).catchError(n=>{if(n?.name==="SecurityError")return I;throw n})}function Gs(){return ue(z(location.hash.slice(1)),R(window,"hashchange").map(()=>location.hash.slice(1)))}var ln;function Vs(){if(!ln){ln=new at(history.state);let e=history.pushState;history.pushState=function(...t){let n=e.apply(this,t);return history.state&&(history.state.lastAction="push"),ln.next(history.state),n}}return v(R(window,"popstate").map(()=>(history.state&&(history.state.lastAction="pop"),history.state)),ln)}function Ws(){let e;return v(Gs(),Vs()).map(()=>window.location).filter(t=>{let n=t.href!==e;return e=t.href,n})}var op=kt.raf().map(()=>{let e=[],t=ae.getState(),n=t.current;do n.routeTitle&&e.unshift({title:n.routeTitle,first:n===t.current,path:Ys(n)});while(n=n.parentNode);return e});function Ys(e){let t=zs(e);return t&&Jn(t.path?.toString()||"",ae.state?.arguments||{})}function _o(e,t,n=t){return v(J(To,ye(e)).tap(([r])=>{e.href!==void 0&&(t.href=e.external?e.href:r.getHref(e.href)),t.target=e.target||""}),Q(t).tap(r=>{e.target||r.preventDefault()}),Q(n).tap(()=>{e.href!==void 0&&!e.target&&(e.external?location.assign(e.href):ae.go(e.href))}))}function Xs(e,t){let n=document.createElement("div");return n.style.display="contents",n.routeTitle=t,n.appendChild(e.content.cloneNode(!0)),n}var tr=class extends x{strategy="query";get state(){return ae.state}go(t){return ae.go(t)}};u(tr,{tagName:"c-router",init:[b("strategy")],augment:[e=>{function t(n){let r=n.dataset;if(r.registered)return;r.registered="true";let o=r.title||void 0;ae.route({path:r.path,id:r.id||void 0,parent:r.parent||void 0,isDefault:n.hasAttribute("data-default"),redirectTo:r.redirectto,render:Xs.bind(null,n,o)})}return Ie().switchMap(()=>{for(let n of Array.from(e.children))n instanceof HTMLTemplateElement&&t(n);return v(Gt(e).tap(n=>{n.type==="added"&&n.value instanceof HTMLTemplateElement&&t(n.value)}),E(e,"strategy").switchMap(n=>{let r=No[n];return Us(Ws(),r).catchError((o,a)=>(console.error(o),a))}))})}]});function or(e,t=e){return v(qs(e,t).ignoreElements(),kt.map(()=>e.href!==void 0&&ae.isActiveUrl(e.href)))}function qs(e,t=e){let n=F("a",{tabIndex:-1,className:"link",ariaLabel:"link"});return n.style.cssText=`
778
+ ${re("background")}
779
+ }`),I]});var on=class extends g{xs=!1;sm=!1;md=!1;lg=!1;xl=!1};u(on,{tagName:"c-r",init:[b("xl"),b("lg"),b("md"),b("sm"),b("xs")],augment:[d(`
780
+ :host([xs]),:host { display:contents }
781
+ :host([xs="0"]) { display:none }
782
+ ${U("small",':host([sm]){display:contents}:host([sm="0"]){display:none}')}
783
+ ${U("medium",':host([md]){display:contents}:host([md="0"]){display:none}')}
784
+ ${U("large",':host([lg]){display:contents}:host([lg="0"]){display:none}')}
785
+ ${U("xlarge",':host([xl]){display:contents}:host([xl="0"]){display:none}')}
786
+ `),I]});var jc=/([^&=]+)=?([^&]*)/g,Vc=/:([\w_$@]+)/g,Uc=/\/\((.*?)\)/g,Gc=/(\(\?)?:\w+/g,Yc=/\*\w+/g,Wc=/[-{}[\]+?.,\\^$|#\s]/g,qc=/([^#]*)(?:#(.+))?/,ao="@@cxlRoute",de={location:window.location,history:window.history};function Xc(e){let t=[];return[new RegExp("^/?"+e.replace(Wc,"\\$&").replace(Uc,"\\/?(?:$1)?").replace(Gc,function(r,o){return t.push(r.substr(1)),o?r:"([^/?]*)"}).replace(Yc,"([^?]*?)")+"(?:/$|\\?|$)"),t]}function Xi(e){return e[0]==="/"&&(e=e.slice(1)),e.endsWith("/")&&(e=e.slice(0,-1)),e}function eo(e,t){return t?e.replace(Vc,(n,r)=>t[r]||""):e}function Jc(e){let t={},n;for(;n=jc.exec(e);)n[1]!==void 0&&(t[n[1]]=decodeURIComponent(n[2]??""));return t}var to=class{path;regex;parameters;constructor(t){this.path=t=Xi(t),[this.regex,this.parameters]=Xc(t)}_extractQuery(t){let n=t.indexOf("?");return n===-1?{}:Jc(t.slice(n+1))}getArguments(t){let r=this.regex.exec(t)?.slice(1);if(!r)return;let o=this._extractQuery(t);return r.forEach((c,i)=>{let s=i===r.length-1?c||"":c?decodeURIComponent(c):"",a=this.parameters[i];a&&(o[a]=s)}),o}test(t){return this.regex.test(t)}toString(){return this.path}},no=class{id;path;parent;redirectTo;definition;isDefault;constructor(t){if(t.path!==void 0)this.path=new to(t.path);else if(!t.id)throw console.log(t),new Error("An id or path is mandatory. You need at least one to define a valid route.");this.id=t.id||(t.path??`route${Math.random().toString()}`),this.isDefault=t.isDefault||!1,this.parent=t.parent,this.redirectTo=t.redirectTo,this.definition=t}create(t){let n=this.definition.render();n[ao]=this;for(let r in t)t[r]!==void 0&&(n[r]=t[r]);return n}},ro=class{routes=[];defaultRoute;findRoute(t){return this.routes.find(n=>n.path?.test(t))??this.defaultRoute}get(t){return this.routes.find(n=>n.id===t)}register(t){if(t.isDefault){if(this.defaultRoute)throw new Error("Default route already defined");this.defaultRoute=t}this.routes.unshift(t)}};function Zc(e){return e[ao]}function St(e){let t=qc.exec(e);return{path:Xi(t?.[1]||""),hash:t?.[2]||""}}var Qc={getHref(e){return e=typeof e=="string"?St(e):e,`${de.location.pathname}${e.path?`?${e.path}`:""}${e.hash?`#${e.hash}`:""}`},serialize(e){let t=or()?.url;if(!t||e.hash!==t.hash||e.path!==t.path){let n=this.getHref(e);n!==`${location.pathname}${location.search}${location.hash}`&&de.history.pushState({url:e},"",n)}},deserialize(){return{path:de.location.search.slice(1),hash:de.location.hash.slice(1)}}};function or(){return de.history.state}var Kc={getHref(e){return e=typeof e=="string"?St(e):e,`${e.path}${e.hash?`#${e.hash}`:""}`},serialize(e){let t=or()?.url;if(!t||e.hash!==t.hash||e.path!==t.path){let n=this.getHref(e);n!==`${location.pathname}${location.search}${location.hash}`&&de.history.pushState({url:e},"",n||"/")}},deserialize(){return{path:de.location.pathname,hash:de.location.hash.slice(1)}}},Ji={getHref(e){return e=typeof e=="string"?St(e):e,`#${e.path}${e.hash?`#${e.hash}`:""}`},serialize(e){let t=Ji.getHref(e);de.location.hash!==t&&(de.location.hash=t)},deserialize(){return St(de.location.hash.slice(1))}},Zi={hash:Ji,path:Kc,query:Qc},oo=class{callbackFn;state;routes=new ro;instances={};root;lastGo;constructor(t){this.callbackFn=t}getState(){if(!this.state)throw new Error("Invalid router state");return this.state}route(t){let n=new no(t);return this.routes.register(n),n}go(t){this.lastGo=t;let n=typeof t=="string"?St(t):t,r=n.path,o=this.state?.url;if(r!==o?.path){let c=this.routes.findRoute(r);if(!c)throw new Error(`Path: "${r}" not found`);let i=c.path?.getArguments(r);if(c.redirectTo)return this.go(eo(c.redirectTo,i));let s=this.execute(c,i);if(this.lastGo!==t)return;if(!this.root)throw new Error(`Route: "${r}" could not be created`);this.updateState({url:n,arguments:i,route:c,current:s,root:this.root})}else this.state&&n.hash!=o.hash&&this.updateState({...this.state,url:n})}getPath(t,n){let o=this.routes.get(t)?.path;return o&&eo(o.toString(),n)}isActiveUrl(t){let n=St(t);if(!this.state?.url)return!1;let r=this.state.url;return!!Object.values(this.instances).find(o=>{let c=o[ao],i=this.state?.arguments;if(c?.path?.test(n.path)&&(!n.hash||n.hash===r.hash)){if(i){let s=c.path.getArguments(n.path);for(let a in s)if(i[a]!=s[a])return!1}return!0}return!1})}updateState(t){this.state=t,this.callbackFn?.(t)}findRoute(t,n){let r=this.instances[t],o;if(r)for(o in n){let c=n[o];c!==void 0&&(r[o]=c)}return r}executeRoute(t,n,r){let o=t.parent,c=o&&this.routes.get(o),i=t.id,s=c&&this.executeRoute(c,n,r),a=this.findRoute(i,n)||t.create(n);return s?a.parentNode!==s&&s.appendChild(a):this.root=a,r[i]=a,a}discardOldRoutes(t){let n=this.instances;for(let r in n){let o=n[r];o&&t[r]!==o&&(o.parentNode?.removeChild(o),delete n[r])}}execute(t,n){let r={},o=this.executeRoute(t,n||{},r);return this.discardOldRoutes(r),this.instances=r,o}},an=new ct,Qi=new ct,Ee=new oo(()=>an.next());function el(e,t=Zi.query){return f(K(()=>Qi.next(t)),e.tap(()=>Ee.go(t.deserialize())),an.tap(()=>t.serialize(Ee.getState().url))).catchError(n=>{if(n?.name==="SecurityError")return T;throw n})}function tl(){return ke(F(location.hash.slice(1)),S(window,"hashchange").map(()=>location.hash.slice(1)))}var rr;function nl(){if(!rr){rr=new Nt(history.state);let e=history.pushState;history.pushState=function(...t){let n=e.apply(this,t),r=or();return r&&(r.lastAction="push",rr?.next(r)),n}}return f(S(window,"popstate").map(()=>{let e=or();return e&&(e.lastAction="pop"),e}),rr)}function rl(){let e;return f(tl(),nl()).map(()=>window.location).filter(t=>{let n=t.href!==e;return e=t.href,n})}var Zg=an.raf().map(()=>{let e=[],t=Ee.getState(),n=t.current;do n.routeTitle&&e.unshift({title:n.routeTitle,first:n===t.current,path:ol(n)});while(n=n.parentNode);return e});function ol(e){let t=Zc(e);return t&&eo(t.path?.toString()||"",Ee.state?.arguments||{})}function Ki(e,t,n=t){return f(oe(Qi,Le(e)).tap(([r])=>{e.href!==void 0&&(t.href=e.external?e.href:r.getHref(e.href)),t.target=e.target||""}),q(t).tap(r=>{e.target||r.preventDefault()}),q(n).tap(()=>{e.href!==void 0&&!e.target&&(e.external?location.assign(e.href):Ee.go(e.href))}))}function il(e,t){let n=document.createElement("div");return n.style.display="contents",n.routeTitle=t,n.appendChild(e.content.cloneNode(!0)),n}var io=class extends g{strategy="query";get state(){return Ee.state}go(t){return Ee.go(t)}};u(io,{tagName:"c-router",init:[y("strategy")],augment:[e=>{function t(n){let r=n.dataset;if(r.registered)return;r.registered="true";let o=r.title||void 0;Ee.route({path:r.path,id:r.id||void 0,parent:r.parent||void 0,isDefault:n.hasAttribute("data-default"),redirectTo:r.redirectto,render:il.bind(null,n,o)})}return Ne().switchMap(()=>{for(let n of Array.from(e.children))n instanceof HTMLTemplateElement&&t(n);return f(Mn(e).tap(n=>{n.type==="added"&&n.value instanceof HTMLTemplateElement&&t(n.value)}),h(e,"strategy").switchMap(n=>{let r=Zi[n];return el(rl(),r).catchError((o,c)=>(console.error(o),c))}))})}]});function co(e,t=e){return f(al(e,t).ignoreElements(),an.map(()=>e.href!==void 0&&Ee.isActiveUrl(e.href)))}function al(e,t=e){let n=N("a",{tabIndex:-1,className:"link",ariaLabel:"link"});return n.style.cssText=`
527
787
  text-decoration: none;
528
788
  outline: 0;
529
789
  display: block;
@@ -532,17 +792,17 @@ left: 0;
532
792
  right: 0;
533
793
  bottom: 0;
534
794
  top: 0;
535
- `,j(e).append(n),v(_o(e,n),R(n,"click").tap(r=>{r.stopPropagation(),lt(r)||e.dispatchEvent(new PointerEvent(r.type,r)),Fe(e,"toggle.close",void 0)}),Q(t).tap(r=>{lt(r)&&n.click()}))}var rr=class extends x{href};u(rr,{tagName:"c-router-selectable",init:[b("href")],augment:[qt,()=>F("slot"),e=>X(()=>{let t=e.parentElement;return or(e,t).raf(n=>{t.selected=n})})]});var Ct=class extends Be{href;external=!1;target};u(Ct,{tagName:"c-router-item",init:[b("href"),b("external"),b("target")],augment:[e=>or(e).tap(t=>{e.selected=t})]});var ce=class extends x{font};u(ce,{tagName:"c-t",init:[C("font")],augment:[y(`:host{display:inline-block;font:var(--cxl-font-body-medium);}${Zr.map(e=>`:host([font="${e}"]){font:var(--cxl-font-${e});letter-spacing:var(--cxl-letter-spacing-${e})}`).join("")}
536
- :host([font=h1]) { ${L("display-large")} display:block;margin-top: 64px; margin-bottom: 24px; }
537
- :host([font=h2]) { ${L("display-medium")} display:block;margin-top: 56px; margin-bottom: 24px; }
538
- :host([font=h3]) { ${L("display-small")} display:block; margin-top: 48px; margin-bottom: 16px; }
539
- :host([font=h4]) { ${L("headline-medium")} display:block; margin-top: 40px; margin-bottom: 16px; }
540
- :host([font=h5]) { ${L("title-large")} display:block;margin-top: 32px; margin-bottom: 12px; }
541
- :host([font=h6]) { ${L("title-medium")} display:block;margin-top: 24px; margin-bottom: 8px; }
795
+ `,z(e).append(n),f(Ki(e,n),S(n,"click").tap(r=>{r.stopPropagation(),_t(r)||e.dispatchEvent(new PointerEvent(r.type,r)),ue(e,"toggle.close",void 0)}),q(t).tap(r=>{_t(r)&&n.click()}))}var so=class extends g{href};u(so,{tagName:"c-router-selectable",init:[y("href")],augment:[ut,()=>N("slot"),e=>Q(()=>{let t=e.parentElement;return co(e,t).raf(n=>{t.selected=n})})]});var sn=class extends ot{href;external=!1;target};u(sn,{tagName:"c-router-item",init:[y("href"),y("external"),y("target")],augment:[e=>co(e).tap(t=>{e.selected=t})]});var Se=class extends g{font};u(Se,{tagName:"c-t",init:[b("font")],augment:[d(`:host{display:inline-block;font:var(--cxl-font-body-medium);}${ti.map(e=>`:host([font="${e}"]){font:var(--cxl-font-${e});letter-spacing:var(--cxl-letter-spacing-${e})}`).join("")}
796
+ :host([font=h1]) { ${B("display-large")} display:block;margin-top: 64px; margin-bottom: 24px; }
797
+ :host([font=h2]) { ${B("display-medium")} display:block;margin-top: 56px; margin-bottom: 24px; }
798
+ :host([font=h3]) { ${B("display-small")} display:block; margin-top: 48px; margin-bottom: 16px; }
799
+ :host([font=h4]) { ${B("headline-medium")} display:block; margin-top: 40px; margin-bottom: 16px; }
800
+ :host([font=h5]) { ${B("title-large")} display:block;margin-top: 32px; margin-bottom: 12px; }
801
+ :host([font=h6]) { ${B("title-medium")} display:block;margin-top: 24px; margin-bottom: 8px; }
542
802
  :host([font=h1]:first-child),:host([font=h2]:first-child),:host([font=h3]:first-child),:host([font=h4]:first-child),:host([font=h5]:first-child),:host([font=h6]:first-child){margin-top:0}
543
- `),O,e=>E(e,"font").tap(t=>{switch(t){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":e.role="heading",e.ariaLevel=t.slice(1);break;default:e.role=e.ariaLevel=null}})]});var At=class extends Le{};u(At,{tagName:"c-toolbar",augment:[y(`
803
+ `),I,e=>h(e,"font").tap(t=>{switch(t){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":e.role="heading",e.ariaLevel=t.slice(1);break;default:e.role=e.ariaLevel=null}})]});var cn=class extends rt{};u(cn,{tagName:"c-toolbar",augment:[d(`
544
804
  :host {
545
- grid-column-end: span 12;
805
+ grid-column: 1 / -1;
546
806
  column-gap: 24px;
547
807
  row-gap: 8px;
548
808
  align-items: center;
@@ -550,22 +810,39 @@ top: 0;
550
810
  flex-wrap: wrap;
551
811
  flex-shrink: 0;
552
812
  }
553
- ${G("small",":host{column-gap:24px}")}
554
- `)]});var ir=class extends ft{sticky=!0};u(ir,{tagName:"doc-appbar",augment:[e=>{e.append(k(At,{id:"appbar-toolbar"},k(St,{target:"navbar"}),k(Le,{grow:!0},CONFIG.packageName),k(vt,{persistkey:"3doc.theme"})))}]});var sr=class extends x{};u(sr,{tagName:"doc-card",augment:[y(`
555
- :host{margin-top: 16px; display:block; elevation:1; }
556
- ${G("medium",":host{padding:16px}")}
557
- `),()=>k("slot")]});var Qo=bi(Jo(),1);var Tt=Qo.default;function Zo(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},i=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),f={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,c,s,i,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,i,c,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[f],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[f],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:f}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}Tt.registerLanguage("html",Zo);var hr=class extends x{formatter=t=>'<link rel="stylesheet" href="hljs.css" /><code style="white-space:pre;min-height:100%;font:var(--cxl-font-code);tab-size:2;">'+Tt.highlight(t,{language:"html"}).value+"</code>"};u(hr,{tagName:"doc-hl",augment:[y(`
813
+ ${U("small",":host{column-gap:24px}")}
814
+ `)]});var ln=class extends g{};u(ln,{tagName:"doc-search",augment:[d(`
815
+ :host { display: contents; }
816
+ c-appbar-contextual {
817
+ position: absolute;
818
+ inset: 0;
819
+ background-color: var(--cxl-color-surface);
820
+ color: var(--cxl-color-on-surface);
821
+ z-index: 1;
822
+ }
823
+ `),e=>{let t=ie([]),n=E(Xn,{},tt({source:t,render:s=>E(rn,{value:s.value.href},s.value.name),empty:()=>E(_e,{slot:"empty",pad:16},"No Results Found")}));n.style.maxHeight="50%";let r=E($n),o=E(Jt,{target:r},E(ce,{icon:"search"})),c=E(nt,{size:-2},E(pe,{name:"search"}),E(bt,{$:s=>h(s,"selected").tap(a=>{!CONFIG.spa&&a?.value&&(location.href=a.value)})}),n);function i(){t.next(CONFIG.symbols)}return e.shadowRoot?.append(r,o),f(Ne().tap(i),pt(e.parentElement??e).tap(s=>{s==="xsmall"?(r.style.display="",o.style.display="",r.append(c)):(r.open=!1,r.style.display="none",o.style.display="none",e.shadowRoot?.append(c))}))}]});var lo=class extends Lt{sticky=!0};u(lo,{tagName:"doc-appbar",augment:[e=>{e.append(E(cn,{id:"appbar-toolbar"},E(nn,{target:"navbar"}),E(rt,{grow:!0},CONFIG.packageName),E(ln),E(en,{persistkey:"3doc.theme"})))}]});var uo=class extends g{};u(uo,{tagName:"doc-card",augment:[d(`
824
+ :host{
825
+ margin-top: 16px;
826
+ display:block;
827
+ elevation:1;
828
+ scroll-margin-top: 80px;
829
+ }
830
+ :host(:target) {
831
+ outline: 2px dashed var(--cxl-color-primary);
832
+ }
833
+ ${U("medium",":host{padding:16px}")}
834
+ `),()=>E("slot")]});var po=class extends g{formatter=t=>'<link rel="stylesheet" href="hljs.css" /><code style="white-space:pre;min-height:100%;font:var(--cxl-font-code);tab-size:2;">'+hljs.highlight(t,{language:"html"}).value+"</code>"};u(po,{tagName:"doc-hl",augment:[d(`
558
835
  :host { display: block; }
559
836
  .hljs { white-space: pre-wrap; font: var(--cxl-font-code); padding:16px; }
560
- `),e=>{let t=k("div",{className:"hljs"});return t.style.tabSize="4",j(e).append(t),Ie().switchMap(()=>Wt(e).raf(()=>{let n=e.childNodes[0]?.textContent?.trim()||"";n&&e.formatter&&(n=e.formatter(n)),t.innerHTML=n}))}]});var gr=class extends x{};u(gr,{tagName:"doc-grd",augment:[y(`:host {
837
+ `),e=>{let t=E("div",{className:"hljs"});return t.style.tabSize="4",z(e).append(t),Ne().switchMap(()=>In(e).raf(()=>{let n=e.childNodes[0]?.textContent?.trim()||"";n&&e.formatter&&(n=e.formatter(n)),t.innerHTML=n}))}]});var fo=class extends g{};u(fo,{tagName:"doc-grd",augment:[d(`:host {
561
838
  padding: 8px 16px;
562
839
  display: grid;
563
840
  gap: 16px 12px;
564
841
  }
565
- ${G("small",":host{grid-template-columns:repeat(2, minmax(0px,1fr))}")}
566
- ${G("medium",":host{grid-template-columns:repeat(3, minmax(0px,1fr))}")}
567
- ${G("large",":host{grid-template-columns:repeat(4, minmax(0px,1fr))}")}
568
- `),O]});var _t=class extends x{summary;selected};u(_t,{tagName:"doc-nav-list",init:[fe("summary"),fe("selected")],augment:[e=>Co({source:E(e,"summary").map(t=>t?.index),render:t=>k(Be,{$:n=>Q(n).tap(()=>e.selected=t.value.name),size:-2},t.value.name,t.value.docs?.beta?k(bt,{size:-2},"beta"):void 0)})(e)]});var Rt=class extends x{view="mobile";header="<style>html{overflow:hidden;color: var(--cxl-color-on-background);background-color:var(--cxl-color-background)}</style>";libraries;formatter;getLibraryUrl(t){return`https://cdn.jsdelivr.net/npm/${t}`}};u(Rt,{tagName:"doc-demo-bare",init:[b("view"),b("libraries"),b("header")],augment:[y(`
842
+ ${U("small",":host{grid-template-columns:repeat(2, minmax(0px,1fr))}")}
843
+ ${U("medium",":host{grid-template-columns:repeat(3, minmax(0px,1fr))}")}
844
+ ${U("large",":host{grid-template-columns:repeat(4, minmax(0px,1fr))}")}
845
+ `),I]});var un=class extends g{summary;selected};u(un,{tagName:"doc-nav-list",init:[X("summary"),X("selected")],augment:[e=>tt({source:h(e,"summary").map(t=>t?.index),render:t=>E(ot,{$:n=>q(n).tap(()=>e.selected=t.value.name),size:-2},t.value.name,t.value.docs?.beta?E(Xt,{size:-2},"beta"):void 0)})(e)]});var pn=class extends g{view="mobile";header="<style>html{overflow:hidden;color: var(--cxl-color-on-background);background-color:var(--cxl-color-background)}</style>";libraries;formatter;getLibraryUrl(t){return`https://cdn.jsdelivr.net/npm/${t}`}};u(pn,{tagName:"doc-demo-bare",init:[y("view"),y("libraries"),y("header")],augment:[d(`
569
846
  :host {
570
847
  display: flex;
571
848
  flex-direction: column;
@@ -623,5 +900,18 @@ ${G("large",":host{grid-template-columns:repeat(4, minmax(0px,1fr))}")}
623
900
  align-items: center;
624
901
  display: flex;
625
902
  }
626
- `),e=>{let t=E(e,"view"),n=be("container"),r=k(Et,{className:n}),o=k(We,{$:S=>De(S).tap(()=>{e.formatter?S.innerHTML=e.formatter(c):S.innerText=c}),className:t.map(S=>S==="source"?"source visible hljs":"source")}),a=k(xt,{$:S=>Q(S).tap(()=>e.view="source"),className:E(e,"view").map(S=>S==="source"?"hide":""),title:"See source"},k(Se,{name:"code"}),"Code"),i=k(se,{$:S=>Q(S).tap(()=>e.view="mobile"),height:20,className:E(e,"view").map(S=>S==="source"?"":"hide"),icon:"close",title:"Close source"}),s=k("div",{id:"toolbar"},k("slot",{name:"toolbar"}),k(se,{$:S=>Q(S).tap(async()=>{await navigator.clipboard.writeText(c),S.icon="done",setTimeout(()=>S.icon="content_copy",2e3)}),height:20,icon:"content_copy",title:"Copy source to clipboard",className:t.map(S=>S==="source"?"icon":"icon hide")}),a,i),c;function f(S){let te=S==="desktop";n.next(te?"container":"container cmobile")}function T(){let S=e.childNodes[0]?.textContent?.trim()||"";if(!S)return;let te=e.libraries?e.libraries.split(",").map(B=>`<script type="module" src="${e.getLibraryUrl(B)}"><\/script>`).join(""):"";r.srcdoc=`${e.header}${te}${S}`,c=S}return j(e).append(s,k(We,{className:t.map(S=>S==="source"?"parent":`parent visible ${S}`)},r),o),v(E(e,"view").tap(f),De(e).switchMap(()=>Wt(e).raf(T)))}]});var Ot=class extends Rt{header=`<style>html{overflow:hidden;color: var(--cxl-color-on-background);background-color:var(--cxl-color-background)}</style>${CONFIG.demoStyles?`<style>${CONFIG.demoStyles}</style>`:""}${CONFIG.demoScripts?.map(t=>`<script type="module" src="${t}"><\/script>`).join("")??""}`;formatter=t=>'<link rel="stylesheet" href="hljs.css" />'+Tt.highlight(t,{language:"html"}).value};u(Ot,{tagName:"doc-demo"});function Ko(e){let t=e.index;function n(s){if(!(!s||typeof s=="string")&&typeof s=="number")return t.find(c=>c.id===s)}function r(s){if(!(!s||typeof s=="string")){if(typeof s=="number"){let c=t.find(f=>f.id===s);return c&&(c.kind===4||c.kind===8)?c:c?r(c.resolvedType??c.type):void 0}return s.kind===6?n(s.type):s.resolvedType&&typeof s.resolvedType!="string"?s.resolvedType:s}}function o(s,c){if(s.children){for(let f of s.children)!f.name||f.flags&&f.flags&128||(c[f.name]??=f);return c}}function a(s,c={}){o(s,c);let f=r(s.type);if(f?.children)for(let T of f.children){let S=r(T);if(!S||S.kind!==35||S.name==="Component")break;a(S,c)}return c}function i(s){return s.kind===17||s.kind===16||s.kind===11||s.kind===13}return{getNodeProperties:a,getTypeSummary:r,isFunction:i,getRef:n,json:e}}var ja={31:"Constants",1:"Variables",4:"Interfaces",8:"Classes",10:"Properties",11:"Methods",12:"Getters",13:"Setters",14:"Constructor",16:"Functions",22:"Enums",35:"Components",36:"Attributes",2:"Type Alias",38:"Call Signature",39:"Construct Signature",44:"Events",24:"Index Signature",25:"Exports",37:"Namespaces"};function ei(e){return typeof e=="string"?e:e.map(t=>t.value).join(" ")}function Ha(e){return e.name?`docs/ui-${e.name}`:void 0}function Ua(e){let t=Ha(e),n=e.name??"?";return t?k("a",{href:t},n):n}function ti({summary:e,summaryJson:t,link:n=Ua,uiCdn:r,importmap:o,codeHighlight:a}){let{getTypeSummary:i,getRef:s,isFunction:c}=Ko(t),f=t.index;function T(m){if(m)return typeof m=="string"?m:i(m)??(typeof m=="number"?void 0:m.name)}function S(m){return m?"&lt;"+m.map(h=>B(h)+(h.kind!==6&&h.type?` extends ${B(h.type)}`:"")).join(", ")+"&gt;":""}function te(m){return["{ ",...m.children?.map(Ne).flatMap(it("; "))??[]," }"]}function B(m){let h=T(m);if(!h||typeof h=="string")return[h||"?"];switch(h.kind){case 5:return h.children?.map(B).flatMap(it(" | "))??[];case 23:case 32:return[h.name??"?"];case 34:return te(h)??["?"];case 15:return[...B(h.type),"[]"];case 4:case 8:case 35:{let l=h.typeP?S(h.typeP):void 0;return[n(h),l]}case 17:return Ne(h);case 33:{let l=s(m);return[l?n(l):h.name??"?"]}case 21:return[...B(h.children?.[0]),"[",...B(h.children?.[1]),"]"];default:console.log(h)}return[]}function Me(m){let h=m.flags??0;return[`${`${h&4?"public ":h&8?"private":h&16?"protected ":""}${h&262144?"...":""}${m.name}${h&524288?"?":""}`}: `,...B(m.type)]}function me(m){return["(",...m?.map(Me).flatMap(it(", "))??[],")"]}function he(m){let h=m.flags??0,l=m.kind===12?"get ":m.kind===13?"set ":void 0;return[h&32?"static ":"",h&64?"readonly ":"",h&128?"abstract ":"",l]}function ot(m){return["[",...m.parameters?.flatMap(Ne)??[]??[],"]: ",...m.type?B(m.type)??[]:["?"]]}function it(m){return(h,l)=>l!==0?[...m,...h]:h}function Ne(m){if(m.kind===24)return ot(m);if(m.kind===45&&m.children?.[0])return["...",...B(m.children[0])];let h=m.flags&&m.flags&524288,l=c(m)?me(m.parameters):[],p=m.kind===17;return[...he(m),m.name,h?"?":"",...l,p?" => ":": ",...B(m.resolvedType??m.type)]}function He(m){return[k("h3",{},k(ce,{font:"title-large"},...Ne(m))),...st(m)]}function It(m,h){if(!m.children)return[];let l={};for(let p of m.children)p.kind!==14&&p.kind!==0&&(p.flags||0)&4&&!h?.(p)&&(l[p.kind]??={name:ja[p.kind],nodes:[]}).nodes.push(p);return Object.values(l).sort(wo("name")).flatMap(p=>[k("h2",{},p.name),...p.nodes.flatMap(He)])}function mn(m){let h;m=m.replace(/<caption>(.+?)<\/caption>/,(M,P)=>(h=P,""));let l=`<style>body{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;overflow-x:hidden;overflow-y:auto;padding:0 24px 24px 24px;gap:32px;min-height:96px;color:var(--cxl-color-on-background);
627
- background-color:var(--cxl-color-background)}</style>`,p=(o??"")+`<script type="module" src="${r}"><\/script>`,g=k(Ot,{header:l+p,formatter:a},m);return[h?k(ce,{font:"title-medium"},h):void 0,g]}function hn(m){return f.find(h=>h.name===m)}function re(m){let h=m.flatMap(l=>{let p=l.value,g=ei(p);if(typeof p=="string"){let M=hn(p);g=M?n(M):p}return[g,", "]});return h.pop(),k("p",{},"Related: ",h)}function $t({src:m}){let h=k("div");return h.textContent=m,h}function st(m){let h=m.docs;if(!h||!h.content)return[];let l=[],p=h.content.flatMap(g=>{let M=ei(g.value);return g.tag==="icon"||g.tag==="title"?[]:g.tag==="example"||g.tag==="demo"||g.tag==="demoonly"?mn(M):g.tag==="see"?(l.push(g),[]):g.tag==="return"?[k(ce,{font:"headline-small"},"Returns"),k("p",void 0,M)]:g.tag==="param"?[k("p",void 0,M)]:[g.tag?k("p",void 0,`${g.tag}: `,M):$t({src:M})]});return l.length&&p.push(re(l)),p}function gn(m){let h=[],l=i(m);if(!(!l||l.kind!==33))return l.children?.forEach(p=>{if(typeof p!="object")return;let g=i(p);g&&g.name!=="Component"&&h.push(n(g))}),k(ce,{font:"headline-small"}," ",...h.length?["extends ",h]:[])}function Ft(m){let h=i(m.type),l=[];if(!h?.children)return[];for(let p of h.children){let g=i(p);if(!g||g.kind!==35||g.name==="Component")break;let M=It(g,P=>!!((P.flags??0)&128));M.length&&l.push(k("br"),k(ce,{font:"h6"},"Inherited from ",n(g)),...M),l.push(...Ft(g))}return l}let Pt=e.kind===35&&e.docs?.tagName;return k("div",{},k("h1",{},e.name," ",e.type&&gn(e.type)," ",Pt?k(ce,{font:"title-medium"},`<${Pt}>`):""),...st(e),...It(e),...Ft(e))}var Dt=class extends x{name;summary;uicdn;importmap=""};u(Dt,{tagName:"doc-page",init:[fe("name"),fe("summary"),fe("uicdn")],augment:[e=>ye(e).raf(()=>{if(e.replaceChildren(),!e.name||!e.summary)return;let t=e.name,n=e.summary.index.find(r=>r.name===t);n&&e.append(ti({summary:n,summaryJson:e.summary,uiCdn:e.uicdn??"",importmap:e.importmap}))})]});var xr=class extends gt{summary;sheetstart=!0};u(xr,{tagName:"doc-root",augment:[e=>{let t=ct();fetch("summary.json").then(r=>r.json()).then(r=>t.next(r));let n=k(_t,{slot:"start",summary:t});e.append(n,k(Dt,{summary:t,name:E(n,"selected")}))}]});var br=class extends Ct{};u(br,{tagName:"doc-item"});export{hr as BlogCode,rn as Body,xr as ComponentList,ir as DocAppbar,sr as DocCard,gr as DocGrid,br as DocItem,sn as Drawer,Se as Icon,_t as NavList,Dt as Page,cn as UiPage};
903
+ `),e=>{let t=h(e,"view"),n=ie("container"),r=E(tn,{className:n}),o=E(wt,{$:m=>Me(m).tap(()=>{e.formatter?m.innerHTML=e.formatter(a):m.innerText=a}),className:t.map(m=>m==="source"?"source visible hljs":"source")}),c=E(Yt,{$:m=>q(m).tap(()=>e.view="source"),className:h(e,"view").map(m=>m==="source"?"hide":""),title:"See source"},E(pe,{name:"code"}),"Code"),i=E(ce,{$:m=>q(m).tap(()=>e.view="mobile"),height:20,className:h(e,"view").map(m=>m==="source"?"":"hide"),icon:"close",title:"Close source"}),s=E("div",{id:"toolbar"},E("slot",{name:"toolbar"}),E(ce,{$:m=>q(m).tap(async()=>{await navigator.clipboard.writeText(a),m.icon="done",setTimeout(()=>m.icon="content_copy",2e3)}),height:20,icon:"content_copy",title:"Copy source to clipboard",className:t.map(m=>m==="source"?"icon":"icon hide")}),c,i),a;function l(m){let P=m==="desktop";n.next(P?"container":"container cmobile")}function C(){let m=e.childNodes[0]?.textContent?.trim()||"";if(!m)return;let P=e.libraries?e.libraries.split(",").map(R=>`<script type="module" src="${e.getLibraryUrl(R)}"><\/script>`).join(""):"";r.srcdoc=`${e.header}${P}${m}`,a=m}return z(e).append(s,E(wt,{className:t.map(m=>m==="source"?"parent":`parent visible ${m}`)},r),o),f(h(e,"view").tap(l),Me(e).switchMap(()=>In(e).raf(C)))}]});var fn=class extends pn{header=this.getHeader();hljsCss="hljs.css";formatter=t=>`<link rel="stylesheet" href="${this.hljsCss}" />`+hljs.highlight(t,{language:"html"}).value;getHeader(){let t="<style>html{overflow:hidden;color: var(--cxl-color-on-background);background-color:var(--cxl-color-background)}</style>";return typeof CONFIG<"u"?t+`${CONFIG.demoStyles?`<style>${CONFIG.demoStyles}</style>`:""}${CONFIG.demoScripts?.map(n=>`<script type="module" src="${n}"><\/script>`).join("")??""}`:t}};u(fn,{tagName:"doc-demo"});function ta(e){let t=e.index;function n(s){if(!(!s||typeof s=="string")&&typeof s=="number")return t.find(a=>a.id===s)}function r(s){if(!(!s||typeof s=="string")){if(typeof s=="number"){let a=t.find(l=>l.id===s);return a&&(a.kind===4||a.kind===8)?a:a?r(a.resolvedType??a.type):void 0}return s.kind===6?n(s.type):s.resolvedType&&typeof s.resolvedType!="string"?s.resolvedType:s}}function o(s,a){if(s.children){for(let l of s.children)!l.name||l.flags&&l.flags&128||(a[l.name]??=l);return a}}function c(s,a={}){o(s,a);let l=r(s.type);if(l?.children)for(let C of l.children){let m=r(C);if(!m||m.kind!==35||m.name==="Component")break;c(m,a)}return a}function i(s){return s.kind===17||s.kind===16||s.kind===11||s.kind===13}return{getNodeProperties:c,getTypeSummary:r,isFunction:i,getRef:n,json:e}}var cl={31:"Constants",1:"Variables",4:"Interfaces",8:"Classes",10:"Properties",11:"Methods",12:"Getters",13:"Setters",14:"Constructor",16:"Functions",22:"Enums",35:"Components",36:"Attributes",2:"Type Alias",38:"Call Signature",39:"Construct Signature",44:"Events",24:"Index Signature",25:"Exports",37:"Namespaces"};function na(e){return typeof e=="string"?e:e.map(t=>t.value).join(" ")}function ll(e){return e.name?`docs/ui-${e.name}`:void 0}function ul(e){let t=ll(e),n=e.name??"?";return t?E("a",{href:t},n):n}function ra({summary:e,summaryJson:t,link:n=ul,uiCdn:r,importmap:o,codeHighlight:c}){let{getTypeSummary:i,getRef:s,isFunction:a}=ta(t),l=t.index;function C(w){if(w)return typeof w=="string"?w:i(w)??(typeof w=="number"?void 0:w.name)}function m(w){return w?"&lt;"+w.map(k=>R(k)+(k.kind!==6&&k.type?` extends ${R(k.type)}`:"")).join(", ")+"&gt;":""}function P(w){return["{ ",...w.children?.map(Ve).flatMap(At("; "))??[]," }"]}function R(w){let k=C(w);if(!k||typeof k=="string")return[k||"?"];switch(k.kind){case 5:return k.children?.map(R).flatMap(At(" | "))??[];case 23:case 32:return[k.name??"?"];case 34:return P(k)??["?"];case 15:return[...R(k.type),"[]"];case 4:case 8:case 35:{let p=k.typeP?m(k.typeP):void 0;return[n(k),p]}case 17:return Ve(k);case 33:{let p=s(w);return[p?n(p):k.name??"?"]}case 21:return[...R(k.children?.[0]),"[",...R(k.children?.[1]),"]"];default:console.log(k)}return[]}function $(w){let k=w.flags??0;return[`${`${k&4?"public ":k&8?"private":k&16?"protected ":""}${k&262144?"...":""}${w.name}${k&524288?"?":""}`}: `,...R(w.type)]}function W(w){return["(",...w?.map($).flatMap(At(", "))??[],")"]}function ae(w){let k=w.flags??0,p=w.kind===12?"get ":w.kind===13?"set ":void 0;return[k&32?"static ":"",k&64?"readonly ":"",k&128?"abstract ":"",p]}function te(w){return["[",...w.parameters?.flatMap(Ve)??[]??[],"]: ",...w.type?R(w.type)??[]:["?"]]}function At(w){return(k,p)=>p!==0?[...w,...k]:k}function Ve(w){if(w.kind===24)return te(w);if(w.kind===45&&w.children?.[0])return["...",...R(w.children[0])];let k=w.flags&&w.flags&524288,p=a(w)?W(w.parameters):[],x=w.kind===17;return[...ae(w),w.name,k?"?":"",...p,x?" => ":": ",...R(w.resolvedType??w.type)]}function st(w){return[E("h3",{},E(Se,{font:"title-large"},...Ve(w))),...Mt(w)]}function hn(w,k){if(!w.children)return[];let p={};for(let x of w.children)x.kind!==14&&x.kind!==0&&(x.flags||0)&4&&!k?.(x)&&(p[x.kind]??={name:cl[x.kind],nodes:[]}).nodes.push(x);return Object.values(p).sort(Mi("name")).flatMap(x=>[E("h2",{},x.name),...x.nodes.flatMap(st)])}function lr(w){let k;w=w.replace(/<caption>(.+?)<\/caption>/,(O,Y)=>(k=Y,""));let p=`<style>body{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;overflow-x:hidden;overflow-y:auto;padding:0 24px 24px 24px;gap:32px;min-height:96px;color:var(--cxl-color-on-background);
904
+ background-color:var(--cxl-color-background)}</style>`,x=(o??"")+`<script type="module" src="${r}"><\/script>`,A=E(fn,{header:p+x,formatter:c},w);return[k?E(Se,{font:"title-medium"},k):void 0,A]}function ur(w){return l.find(k=>k.name===w)}function me(w){let k=w.flatMap(p=>{let x=p.value,A=na(x);if(typeof x=="string"){let O=ur(x);A=O?n(O):x}return[A,", "]});return k.pop(),E("p",{},"Related: ",k)}function xn({src:w}){let k=E("div");return k.textContent=w,k}function Mt(w){let k=w.docs;if(!k||!k.content)return[];let p=[],x=k.content.flatMap(A=>{let O=na(A.value);return A.tag==="icon"||A.tag==="title"?[]:A.tag==="example"||A.tag==="demo"||A.tag==="demoonly"?lr(O):A.tag==="see"?(p.push(A),[]):A.tag==="return"?[E(Se,{font:"headline-small"},"Returns"),E("p",void 0,O)]:A.tag==="param"?[E("p",void 0,O)]:[A.tag?E("p",void 0,`${A.tag}: `,O):xn({src:O})]});return p.length&&x.push(me(p)),x}function pr(w){let k=[],p=i(w);if(!(!p||p.kind!==33))return p.children?.forEach(x=>{if(typeof x!="object")return;let A=i(x);A&&A.name!=="Component"&&k.push(n(A))}),E(Se,{font:"headline-small"}," ",...k.length?["extends ",k]:[])}function bn(w){let k=i(w.type),p=[];if(!k?.children)return[];for(let x of k.children){let A=i(x);if(!A||A.kind!==35||A.name==="Component")break;let O=hn(A,Y=>!!((Y.flags??0)&128));O.length&&p.push(E("br"),E(Se,{font:"h6"},"Inherited from ",n(A)),...O),p.push(...bn(A))}return p}let yn=e.kind===35&&e.docs?.tagName;return E("div",{},E("h1",{},e.name," ",e.type&&pr(e.type)," ",yn?E(Se,{font:"title-medium"},`<${yn}>`):""),...Mt(e),...hn(e),...bn(e))}var dn=class extends g{name;summary;uicdn;importmap=""};u(dn,{tagName:"doc-page",init:[X("name"),X("summary"),X("uicdn")],augment:[e=>Le(e).raf(()=>{if(e.replaceChildren(),!e.name||!e.summary)return;let t=e.name,n=e.summary.index.find(r=>r.name===t);n&&e.append(ra({summary:n,summaryJson:e.summary,uiCdn:e.uicdn??"",importmap:e.importmap}))})]});var mo=class extends zt{summary;sheetstart=!0};u(mo,{tagName:"doc-root",augment:[e=>{let t=qe();fetch("summary.json").then(r=>r.json()).then(r=>t.next(r));let n=E(un,{slot:"start",summary:t});e.append(n,E(dn,{summary:t,name:h(n,"selected")}))}]});var go=class extends sn{};u(go,{tagName:"doc-item"});var ho=class extends g{};u(ho,{tagName:"doc-search-page",augment:[d(`
905
+ :host { display: block; margin: 64px 0 }
906
+ #searchbar { margin: 0 auto 32px auto; max-width: 600px; min-width: min(480px, 100%); }
907
+ #grid { grid-template-columns: 1fr; row-gap: 8px; }
908
+ c-card-item { display: flex; gap: 16px; align-items:center; }
909
+ .title { ${B("body-medium")}}
910
+
911
+ ${U("small",`
912
+ #grid { grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 8px; }
913
+ `)}
914
+ ${U("medium",`
915
+ #grid { grid-template-columns: 1fr 1fr 1fr; gap: 16px; padding: 0 8px; }
916
+ `)}
917
+ `),()=>{let t=E(Kt,{id:"grid"},tt({source:F(["components"]),render:r=>E(on,void 0,E(_e,{className:"title",xs:1,sm:2,md:3},r.value.toUpperCase()),tt({source:F(CONFIG.symbols).map(o=>o.filter(c=>c.kind===35&&c.tagName)),render:o=>E(qt,{$:c=>q(c).tap(()=>{!CONFIG.spa&&o.value?.href&&(location.href=o.value.href)}),pad:16},E(pe,{name:o.value.icon})," ",o.map(c=>c.name))}))})),n=r=>h(r,"value").raf(o=>{o=o.toLowerCase();for(let c of t.children)for(let i of c.children)i.style.display=!o||i.textContent?.toLowerCase().includes(o)?"":"none"});return E("div",void 0,E(nt,{id:"searchbar"},E(pe,{name:"search"}),E(Gt,{$:n})),t)}]});var Ca=ja(Sa(),1);var ko=Ca.default;function ka(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},i=e.inherit(c,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),a=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[c,a,s,i,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,i,a,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}ko.registerLanguage("html",ka);window.hljs=ko;export{po as BlogCode,Jn as Body,mo as ComponentList,lo as DocAppbar,uo as DocCard,fo as DocGrid,go as DocItem,Qn as Drawer,er as Hr,pe as Icon,tr as NavHeadline,un as NavList,dn as Page,nr as UiPage};