@cxl/build 1.0.0-beta.3 → 1.0.0-beta.5
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 +58 -279
- package/README.md +2 -2
- package/audit.d.ts +1 -0
- package/chunk-CC5X4GUA.js +44 -0
- package/chunk-YBEJVJDA.js +4 -0
- package/index.bundle.js +1 -1
- package/library-UNJOIIL7.js +1 -0
- package/license-Apache-2.0.md +202 -0
- package/license-GPL-3.0.md +674 -0
- package/npm.d.ts +1 -0
- package/package.json +6 -6
- package/render-F5OGOROK.js +1 -0
- package/{render-html-WNP2FSL3-HEUQV5A2.js → render-html-27TCOWOE-TXOI62NA.js} +1 -1
- package/{render-summary-ULILIVXW-MBBMA5KL.js → render-summary-H5JT7BDG-ETDG4C5Q.js} +1 -1
- package/spec-browser.js +132 -0
- package/chunk-2QIYZERK.js +0 -24
- package/chunk-BJVTLF6O.js +0 -4
- package/library-STR4IXQL.js +0 -1
package/3doc.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var Me={},as=Symbol("terminator");function Gr(e,t){let r=!1,a={error:n,unsubscribe:o,get closed(){return r},signal:Ie(),next(s){if(!r)try{e.next?.(s)}catch(i){n(i)}},complete(){if(!r)try{e.complete?.()}finally{o()}}};e.signal?.subscribe(o);function n(s){if(r)throw s;if(!e.error)throw o(),s;try{e.error(s)}finally{o()}}function o(){r||(r=!0,a.signal.next())}try{if(t?.(a))throw new Error("Unsubscribe function result is deprectaed")}catch(s){n(s)}return a}var j=class{__subscribe;constructor(e){this.__subscribe=e}then(e,t){return Kr(this).then(e,t)}pipe(...e){return e.reduce((t,r)=>r(t),this)}subscribe(e){return Gr(!e||typeof e=="function"?{next:e}:e,this.__subscribe)}},_e=class extends j{closed=!1;signal=Ie();observers=new Set;constructor(){super(e=>this.onSubscribe(e))}next(e){if(!this.closed)for(let t of Array.from(this.observers))t.closed||t.next(e)}error(e){if(!this.closed){this.closed=!0;let t=!1,r;for(let a of Array.from(this.observers))try{a.error(e)}catch(n){t=!0,r=n}if(t)throw r}}complete(){this.closed||(this.closed=!0,Array.from(this.observers).forEach(e=>e.complete()),this.observers.clear())}onSubscribe(e){this.closed?e.complete():(this.observers.add(e),e.signal.subscribe(()=>this.observers.delete(e)))}},Zr=class extends j{closed=!1;observers=new Set;constructor(){super(e=>{this.closed?(e.next(),e.complete()):this.observers.add(e)})}next(){if(!this.closed){this.closed=!0;for(let e of Array.from(this.observers))e.closed||(e.next(),e.complete());this.observers.clear()}}},Qt=class extends _e{queue=[];emitting=!1;next(e){if(!this.closed)if(this.emitting)this.queue.push(e);else{for(this.emitting=!0,super.next(e);this.queue.length;)super.next(this.queue.shift());this.emitting=!1}}},bt=class extends _e{currentValue;constructor(e){super(),this.currentValue=e}get value(){return this.currentValue}next(e){this.currentValue=e,super.next(e)}onSubscribe(e){let t=super.onSubscribe(e);return this.closed||e.next(this.currentValue),t}},Qr=class extends _e{bufferSize;buffer=[];hasError=!1;lastError;constructor(e=1/0){super(),this.bufferSize=e}error(e){this.hasError=!0,this.lastError=e,super.error(e)}next(e){return this.buffer.length===this.bufferSize&&this.buffer.shift(),this.buffer.push(e),super.next(e)}onSubscribe(e){this.observers.add(e),this.buffer.forEach(t=>e.next(t)),this.hasError?e.error(this.lastError):this.closed&&e.complete(),e.signal.subscribe(()=>this.observers.delete(e))}},Xe=class extends _e{$value=Me;get hasValue(){return this.$value!==Me}get value(){if(this.$value===Me)throw new Error("Reference not initialized");return this.$value}next(e){return this.$value=e,super.next(e)}onSubscribe(e){!this.closed&&this.$value!==Me&&e.next(this.$value),super.onSubscribe(e)}},Jr=class extends Error{message="No elements in sequence"};function Ie(){return new Zr}function he(...e){return new j(t=>{let r=0,a;function n(){let o=e[r++];o&&!t.closed?(a?.next(),o.subscribe({next:t.next,error:t.error,complete:n,signal:a=Ie()})):t.complete()}t.signal.subscribe(()=>a?.next()),n()})}function ae(e){return new j(t=>{e().subscribe(t)})}function Jt(e){return new j(t=>{for(let r of e)t.closed||t.next(r);t.complete()})}function Xt(e){return new j(t=>{e.then(r=>{t.closed||t.next(r),t.complete()}).catch(r=>t.error(r))})}function Ke(e){return ae(()=>Xt(e()))}function Xr(e){return new j(t=>{for(let r of e)t.closed||t.next(r);t.complete()})}function Kt(e){return e instanceof j?e:Array.isArray(e)?Jt(e):e instanceof Promise?Xt(e):Xr(e)}function J(...e){return Jt(e)}function Vn(e){return new Promise((t,r)=>{let a=Me;e.subscribe({next:n=>a=n,error:n=>r(n),complete:()=>t(a)})})}function Kr(e){return Vn(e).then(t=>t===Me?void 0:t)}function De(e,t){return ge(r=>({next:e(r),unsubscribe:t}))}function ge(e){return t=>new j(r=>{let a=e(r,t);r.signal.subscribe(()=>a.unsubscribe?.()),a.error||(a.error=r.error),a.complete||(a.complete=r.complete),a.signal=r.signal,t.subscribe(a)})}function vt(e){return De(t=>r=>t.next(e(r)))}function ea(e,t){return ge(r=>{let a=t,n=0;return{next(o){a=e(a,o,n++)},complete(){r.next(a),r.complete()}}})}function ta(e){return ge(t=>{let r=!0,a;return{next(n){r&&(r=!1,t.next(n),a=setTimeout(()=>r=!0,e))},unsubscribe:()=>clearTimeout(a)}})}function Ee(e){return new j(t=>{let r=setTimeout(()=>{t.next(),t.complete()},e);t.signal.subscribe(()=>clearTimeout(r))})}function ra(e,t=Ee){return er(r=>t(e).map(()=>r))}function er(e){return t=>ie(r=>{let a=!1,n=!1,o,s=()=>{o?.next(),a=!1,n&&r.complete()},i=Ie();r.signal.subscribe(()=>{s(),i.next()}),t.subscribe({next(l){s(),o=Ie(),a=!0,e(l).subscribe({next:r.next,error:r.error,complete:s,signal:o})},error:r.error,complete(){n=!0,a||r.complete()},signal:i})})}function aa(e){return t=>ie(r=>{let a=r.signal,n=0,o=0,s=!1;t.subscribe({next:i=>{n++,e(i).subscribe({next:r.next,error:r.error,complete:()=>{o++,s&&o===n&&r.complete()},signal:a})},error:r.error,complete(){s=!0,o===n&&r.complete()},signal:a})})}function na(e){return ge(t=>{let r=!0;return{next(a){r&&(r=!1,e(a).subscribe({next:t.next,error:t.error,complete:()=>r=!0,signal:t.signal}))}}})}function et(e){return De(t=>r=>{e(r)&&t.next(r)})}function oa(e){return De(t=>r=>{e-- >0&&!t.closed&&t.next(r),(e<=0||t.closed)&&t.complete()})}function sa(e){return De(t=>r=>{!t.closed&&e(r)?t.next(r):t.complete()})}function ia(){let e=!1;return ge(t=>({next(r){e||(e=!0,t.next(r),t.complete())},complete(){t.closed||t.error(new Jr)}}))}function tt(e){return De(t=>r=>{e(r),t.next(r)})}function la(e){return ge((t,r)=>{let a,n={next:t.next,error(o){try{if(t.closed)return;let s=e(o,r);s&&(a?.next(),a=Ie(),s.subscribe({...n,signal:a}))}catch(s){t.error(s)}},unsubscribe:()=>a?.next()};return n})}function ca(){return De(e=>{let t=Me;return r=>{r!==t&&(t=r,e.next(r))}})}function ua(){return e=>{let t=new Qr(1),r=!1;return ie(a=>{t.subscribe(a),r||(r=!0,e.subscribe(t))})}}function pa(){return e=>{let t,r=0;function a(){--r===0&&t?.signal.next()}return ie(n=>{n.signal.subscribe(a),r++===0?(t=qe(),t.subscribe(n),e.subscribe(t)):t.subscribe(n)})}}function da(){return e=>{let t=new _e,r,a,n=!1,o=!1;return ie(s=>{o?(s.next(a),s.complete()):t.subscribe(s),r??=e.subscribe({next:i=>{n=!0,a=i},error:s.error,complete(){o=!0,n&&t.next(a),t.complete()},signal:s.signal})})}}function M(...e){return e.length===1?e[0]:new j(t=>{let r=e.length;for(let a of e)t.closed||a.subscribe({next:t.next,error:t.error,complete(){r--===1&&t.complete()},signal:t.signal})})}function se(...e){return e.length===0?_:new j(t=>{let r=e.length,a=r,n=0,o=!1,s=new Array(r),i=new Array(r);e.forEach((l,S)=>l.subscribe({next(g){i[S]=g,s[S]||(s[S]=!0,++n>=a&&(o=!0)),o&&t.next(i.slice(0))},error:t.error,complete(){--r<=0&&t.complete()},signal:t.signal}))})}function fa(e){return ge(t=>({next:t.next,unsubscribe:e}))}function ma(){return et(()=>!1)}var _=new j(e=>e.complete());function de(e){return new bt(e)}function ie(e){return new j(e)}function qe(){return new Xe}var Zt={catchError:la,debounceTime:ra,distinctUntilChanged:ca,exhaustMap:na,filter:et,finalize:fa,first:ia,ignoreElements:ma,map:vt,mergeMap:aa,publishLast:da,reduce:ea,share:pa,shareLatest:ua,switchMap:er,take:oa,takeWhile:sa,tap:tt,throttleTime:ta};for(let e in Zt)j.prototype[e]=function(...t){return this.pipe(Zt[e](...t))};function B(e,t,r){return new j(a=>{let n=a.next.bind(a);e.addEventListener(t,n,r),a.signal.subscribe(()=>e.removeEventListener(t,n,r))})}function rt(e){return yt(e,{childList:!0})}function tr(e,t){return yt(e,{attributes:!0,attributeFilter:t})}function yt(e,t={attributes:!0,childList:!0}){return new j(r=>{let a=new MutationObserver(n=>n.forEach(o=>{for(let s of o.addedNodes)r.next({type:"added",target:e,value:s});for(let s of o.removedNodes)r.next({type:"removed",target:e,value:s});o.type==="characterData"?r.next({type:"characterData",target:e}):o.attributeName&&r.next({type:"attribute",target:e,value:o.attributeName})}));a.observe(e,t),r.signal.subscribe(()=>a.disconnect())})}function rr(e){return B(e,"keydown").filter(t=>t.key===" "||t.key==="Enter"?(t.preventDefault(),!0):!1)}function oe(e){return B(e,"click")}function at(e,t){return new j(r=>{let a=new IntersectionObserver(n=>{for(let o of n)r.next(o)},t);a.observe(e),r.signal.subscribe(()=>a.disconnect())})}function ar(e){return at(e).map(t=>t.isIntersecting)}function Re(e){return at(e).filter(t=>t.isIntersecting).first()}function ha(e){let t;return function(...r){t&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{e.apply(this,r),t=0})}}function nr(e){return ge(t=>{let r=ha(n=>{t.closed||(e&&e(n),t.next(n),a&&t.complete())}),a=!1;return{next:r,complete:()=>a=!0}})}function or(){return ae(()=>document.readyState!=="loading"?J(!0):B(window,"DOMContentLoaded").first().map(()=>!0))}function nt(e,t){let r;return M(ae(()=>(r=e.childNodes,r?J(r):_)),yt(e,{childList:!0,...t}),ve().switchMap(()=>e.childNodes!==r?(r=e.childNodes,J(r)):_))}function ve(){return ae(()=>document.readyState==="complete"?J(!0):B(window,"load").first().map(()=>!0))}function sr(...e){return new j(t=>{let r=new ResizeObserver(a=>a.forEach(n=>t.next(n)));for(let a of e)r.observe(a);t.signal.subscribe(()=>r.disconnect())})}function ir(e){return e.offsetParent===null&&!(e.offsetWidth&&e.offsetHeight)}function wt(e,t,r){return a=>he(J(e?a.matches(e):!1),B(a,t).switchMap(()=>M(J(!0),B(a,r).map(()=>e?a.matches(e):!1))))}var Gn=wt("","animationstart","animationend"),kt=wt("","mouseenter","mouseleave"),ga=wt(":focus,:focus-within","focusin","focusout"),St=e=>se(kt(e),ga(e)).map(([t,r])=>t||r);function We(e){return e instanceof PointerEvent&&e.pointerType===""||e instanceof MouseEvent&&e.type==="click"&&e.detail===0}function lr(e){let t=e.getRootNode();return t instanceof Document||t instanceof ShadowRoot?t:void 0}var Zn=tt(e=>console.log(e));j.prototype.log=function(){return this.pipe(Zn)};j.prototype.raf=function(e){return this.pipe(nr(e))};var te=Symbol("bindings"),Qn={},Ye=Symbol("augments"),ze=Symbol("parser"),xa=class{bindings;messageHandlers;internals;attributes$=new Qt;wasConnected=!1;wasInitialized=!1;subscriptions;prebind;addMessageHandler(e){(this.messageHandlers??=new Set).add(e)}removeMessageHandler(e){this.messageHandlers?.delete(e)}message(e,t){let r=!1;if(this.messageHandlers)for(let a of this.messageHandlers)a.type===e&&(a.next(t),r||=a.stopPropagation);return r}add(e){if(this.wasConnected)throw new Error("Cannot bind connected component.");this.wasInitialized?(this.bindings??=[]).push(e):(this.prebind??=[]).push(e)}connect(){if(this.wasConnected=!0,!this.subscriptions&&(this.prebind||this.bindings)){let e=this.subscriptions=[];if(this.bindings)for(let t of this.bindings)e.push(t.subscribe());if(this.prebind)for(let t of this.prebind)e.push(t.subscribe())}}disconnect(){this.subscriptions?.forEach(e=>e.unsubscribe()),this.subscriptions=void 0}},st=Symbol("css"),T=class extends HTMLElement{static observedAttributes;static[Ye];static[ze];[te]=new xa;[st];connectedCallback(){this[te].wasInitialized=!0,this[te].wasConnected||this.constructor[Ye]?.forEach(e=>e(this)),this[te].connect()}disconnectedCallback(){this[te].disconnect()}attributeChangedCallback(e,t,r){let a=this.constructor[ze]?.[e]??Jn;t!==r&&(this[e]=a(r,this[e]))}};function Jn(e,t){let r=t===!1||t===!0;return e===""?r?!0:"":e===null?r?!1:void 0:e}function ba(e,t){e.hasOwnProperty(Ye)||(e[Ye]=e[Ye]?.slice(0)??[]),e[Ye]?.push(t)}var Xn={mode:"open"};function X(e){return e.shadowRoot??e.attachShadow(Xn)}function va(e,t){t instanceof Node?X(e).appendChild(t):e[te].add(t)}function Kn(e,t){t.length&&ba(e,r=>{for(let a of t){let n=a.call(e,r);n&&n!==r&&va(r,n)}})}function eo(e,t){Qn[e]=t,customElements.define(e,t)}function v(e,{init:t,augment:r,tagName:a}){if(t)for(let n of t)n(e);r&&Kn(e,r),a&&eo(a,e)}function Fe(e){return he(J(e),e[te].attributes$.map(()=>e))}function ee(e,t){return e[te].attributes$.pipe(et(r=>r.attribute===t),vt(()=>e[t]))}function z(e,t){return M(ee(e,t),ae(()=>J(e[t])))}function to(e){let t=e.observedAttributes;return t&&!e.hasOwnProperty("observedAttributes")&&(t=e.observedAttributes?.slice(0)),e.observedAttributes=t||[]}function $t(e,t,r){return r===!1||r===null||r===void 0?r=null:r===!0&&(r=""),r===null?e.removeAttribute(t):e.setAttribute(t,String(r)),r}function ro(e,t,r){e.hasOwnProperty(ze)||(e[ze]={...e[ze]}),e[ze]&&(e[ze][t]=r)}function R(e,t){return r=>{t?.observe!==!1&&to(r).push(e),t?.parse&&ro(r,e,t.parse);let a=`$$${e}`,n=r.prototype,o=Object.getOwnPropertyDescriptor(n,e);o&&Object.defineProperty(n,a,o);let s=t?.persist,i={enumerable:!0,configurable:!1,get(){return this[a]},set(l){this[a]!==l?(this[a]=l,s?.(this,e,l),this[te].attributes$.next({target:this,attribute:e,value:l})):o?.set&&(s?.(this,e,l),this[a]=l)}};ba(r,l=>{if(o||(l[a]=l[e]),Object.defineProperty(l,e,i),s?.(l,e,l[e]),t?.render){let S=t.render(l);S&&va(l,S)}})}}function F(e){return R(e,{persist:$t,observe:!0})}function xe(e){return R(e,{observe:!1})}function q(){return document.createElement("slot")}function ur(e){return t=>{let[r,a]=e();return t[te].add(r),a}}var it=class extends T{};v(it,{tagName:"c-span"});function ya(e,t){let r=document.createTextNode("");return e[te].add(t.tap(a=>r.textContent=a)),r}var cr=document.createDocumentFragment();function ot(e,t,r=e){if(t!=null)if(Array.isArray(t)){for(let a of t)ot(e,a,cr);r!==cr&&r.appendChild(cr)}else e instanceof T&&t instanceof j?r.appendChild(ya(e,t)):t instanceof Node?r.appendChild(t):e instanceof T&&typeof t=="function"?ot(e,t(e),r):r.appendChild(document.createTextNode(t))}function wa(e,t){for(let r in t){let a=t[r];e instanceof T?a instanceof j?e[te].add(r==="$"?a:a.tap(n=>e[r]=n)):r==="$"&&typeof a=="function"?e[te].add(a(e)):e[r]=a:e[r]=a}}function ao(e,t){return e.constructor.observedAttributes?.includes(t)}function pr(e,t){let r=e instanceof T&&ao(e,t)?ee(e,t):tr(e,[t]).map(()=>e[t]);return M(r,ae(()=>J(e[t])))}function dr(e,t,r){return R(e,{parse(a){if(a==="Infinity"||a==="infinity")return 1/0;let n=a===void 0?void 0:Number(a);return t!==void 0&&(n===void 0||n<t||isNaN(n))&&(n=t),r!==void 0&&n!==void 0&&n>r&&(n=r),n}})}function Ce(e,t,r){for(let a=e.parentElement;a;a=a.parentElement)if(a[te]?.message(t,r))return}function Le(e,t,r=!0){return new j(a=>{let n={type:t,next:a.next,stopPropagation:r};e[te].addMessageHandler(n),a.signal.subscribe(()=>e[te].removeMessageHandler(n))})}function W(e,t,...r){let a=typeof e=="string"?document.createElement(e):new e;return t&&wa(a,t),r&&ot(a,r),a}function L(e,t,...r){if(e!==L&&typeof e=="function"&&!(e.prototype instanceof T))return r.length&&((t??={}).children=r),e(t);let a=e===L?document.createDocumentFragment():typeof e=="string"?document.createElement(e):new e;return t&&wa(a,t),r&&ot(a,r),a}var no=/([^&=]+)=?([^&]*)/g,oo=/:([\w_$@]+)/g,so=/\/\((.*?)\)/g,io=/(\(\?)?:\w+/g,lo=/\*\w+/g,co=/[-{}[\]+?.,\\^$|#\s]/g,uo=/([^#]*)(?:#(.+))?/,fr="@@cxlRoute",ce={location:window.location,history:window.history};function po(e){let t=[];return[new RegExp("^/?"+e.replace(co,"\\$&").replace(so,"\\/?(?:$1)?").replace(io,function(r,a){return t.push(r.substr(1)),a?r:"([^/?]*)"}).replace(lo,"([^?]*?)")+"(?:/$|\\?|$)"),t]}function mr(e){return e[0]==="/"&&(e=e.slice(1)),e.endsWith("/")&&(e=e.slice(0,-1)),e}function Ct(e,t){return t?e.replace(oo,(r,a)=>t[a]||""):e}function ka(e){let t={},r;for(;r=no.exec(e);)t[r[1]]=decodeURIComponent(r[2]);return t}var fo=class{path;regex;parameters;constructor(e){this.path=e=mr(e),[this.regex,this.parameters]=po(e)}_extractQuery(e){let t=e.indexOf("?");return t===-1?{}:ka(e.slice(t+1))}getArguments(e){let t=this.regex.exec(e),r=t&&t.slice(1);if(!r)return;let a=this._extractQuery(e);return r.forEach((n,o)=>{let s=o===r.length-1?n||"":n?decodeURIComponent(n):"";a[this.parameters[o]]=s}),a}test(e){return this.regex.test(e)}toString(){return this.path}},Sa=class{id;path;parent;redirectTo;definition;isDefault;constructor(e){if(e.path!==void 0)this.path=new fo(e.path);else if(!e.id)throw console.log(e),new Error("An id or path is mandatory. You need at least one to define a valid route.");this.id=e.id||(e.path??`route${Math.random().toString()}`),this.isDefault=e.isDefault||!1,this.parent=e.parent,this.redirectTo=e.redirectTo,this.definition=e}create(e){let t=this.definition.render();t[fr]=this;for(let r in e)e[r]!==void 0&&(t[r]=e[r]);return t}},$a=class{routes=[];defaultRoute;findRoute(e){return this.routes.find(t=>t.path?.test(e))??this.defaultRoute}get(e){return this.routes.find(t=>t.id===e)}register(e){if(e.isDefault){if(this.defaultRoute)throw new Error("Default route already defined");this.defaultRoute=e}this.routes.unshift(e)}};function Ea(e){return e[fr]}function Pe(e){let t=uo.exec(e);return{path:mr(t?.[1]||""),hash:t?.[2]||""}}var Ca={getHref(e){return e=typeof e=="string"?Pe(e):e,`${ce.location.pathname}${e.path?`?${e.path}`:""}${e.hash?`#${e.hash}`:""}`},serialize(e){let t=ce.history.state?.url;if(!t||e.hash!==t.hash||e.path!==t.path){let r=this.getHref(e);r!==`${location.pathname}${location.search}${location.hash}`&&ce.history.pushState({url:e},"",r)}},deserialize(){return{path:ce.location.search.slice(1),hash:ce.location.hash.slice(1)}}},Aa={getHref(e){return e=typeof e=="string"?Pe(e):e,`${e.path}${e.hash?`#${e.hash}`:""}`},serialize(e){let t=ce.history.state?.url;if(!t||e.hash!==t.hash||e.path!==t.path){let r=this.getHref(e);r!==`${location.pathname}${location.search}${location.hash}`&&ce.history.pushState({url:e},"",r||"/")}},deserialize(){return{path:ce.location.pathname,hash:ce.location.hash.slice(1)}}},hr={getHref(e){return e=typeof e=="string"?Pe(e):e,`#${e.path}${e.hash?`#${e.hash}`:""}`},serialize(e){let t=hr.getHref(e);ce.location.hash!==t&&(ce.location.hash=t)},deserialize(){return Pe(ce.location.hash.slice(1))}},gr={hash:hr,path:Aa,query:Ca},Ta=class{callbackFn;state;routes=new $a;instances={};root;lastGo;constructor(e){this.callbackFn=e}getState(){if(!this.state)throw new Error("Invalid router state");return this.state}route(e){let t=new Sa(e);return this.routes.register(t),t}go(e){this.lastGo=e;let t=typeof e=="string"?Pe(e):e,r=t.path,a=this.state?.url;if(r!==a?.path){let n=this.routes.findRoute(r);if(!n)throw new Error(`Path: "${r}" not found`);let o=n.path?.getArguments(r);if(n.redirectTo)return this.go(Ct(n.redirectTo,o));let s=this.execute(n,o);if(this.lastGo!==e)return;if(!this.root)throw new Error(`Route: "${r}" could not be created`);this.updateState({url:t,arguments:o,route:n,current:s,root:this.root})}else this.state&&t.hash!=a?.hash&&this.updateState({...this.state,url:t})}getPath(e,t){let r=this.routes.get(e),a=r&&r.path;return a&&Ct(a.toString(),t)}isActiveUrl(e){let t=Pe(e);if(!this.state?.url)return!1;let r=this.state.url;return!!Object.values(this.instances).find(a=>{let n=a[fr],o=this.state?.arguments;if(n?.path?.test(t.path)&&(!t.hash||t.hash===r.hash)){if(o){let s=n.path.getArguments(t.path);for(let i in s)if(o[i]!=s[i])return!1}return!0}return!1})}updateState(e){this.state=e,this.callbackFn?.(e)}findRoute(e,t){let r=this.instances[e],a;if(r)for(a in t){let n=t[a];n!==void 0&&(r[a]=n)}return r}executeRoute(e,t,r){let a=e.parent,n=a&&this.routes.get(a),o=e.id,s=n&&this.executeRoute(n,t,r),i=this.findRoute(o,t)||e.create(t);return s?i&&i.parentNode!==s&&s.appendChild(i):this.root=i,r[o]=i,i}discardOldRoutes(e){let t=this.instances;for(let r in t){let a=t[r];e[r]!==a&&(a.parentNode?.removeChild(a),delete t[r])}}execute(e,t){let r={},a=this.executeRoute(e,t||{},r);return this.discardOldRoutes(r),this.instances=r,a}},Ve=new Xe,xr=new Xe,fe=new Ta(()=>Ve.next());function Na(e,t=gr.query){return M(ie(()=>xr.next(t)),e.tap(()=>fe.go(t.deserialize())),Ve.tap(()=>t.serialize(fe.getState().url))).catchError(r=>{if(r?.name==="SecurityError")return _;throw r})}function Ma(){return he(J(location.hash.slice(1)),B(window,"hashchange").map(()=>location.hash.slice(1)))}var Et;function Ia(){if(!Et){Et=new bt(history.state);let e=history.pushState;history.pushState=function(...t){let r=e.apply(this,t);return history.state&&(history.state.lastAction="push"),Et.next(history.state),r}}return M(B(window,"popstate").map(()=>(history.state&&(history.state.lastAction="pop"),history.state)),Et)}function Da(){let e;return M(Ma(),Ia()).map(()=>window.location).filter(t=>{let r=t.href!==e;return e=t.href,r})}var mo=Ve.raf().map(()=>{let e=[],t=fe.getState(),r=t.current;do r.routeTitle&&e.unshift({title:r.routeTitle,first:r===t.current,path:ho(r)});while(r=r.parentNode);return e});function ho(e){let t=Ea(e);return t&&Ct(t.path?.toString()||"",fe.state?.arguments||{})}function br(e,t,r=t){return M(se(xr,Fe(e)).tap(([a])=>{e.href!==void 0&&(t.href=e.external?e.href:a.getHref(e.href)),t.target=e.target||""}),oe(t).tap(a=>{e.target||a.preventDefault()}),oe(r).tap(()=>{e.href!==void 0&&!e.target&&(e.external?location.assign(e.href):fe.go(e.href))}))}function go(e,t){let r=document.createElement("div");return r.style.display="contents",r.routeTitle=t,r.appendChild(e.content.cloneNode(!0)),r}var Ra=class extends T{strategy="query";get state(){return fe.state}go(e){return fe.go(e)}};v(Ra,{tagName:"c-router",init:[R("strategy")],augment:[e=>{function t(r){let a=r.dataset;if(a.registered)return;a.registered="true";let n=a.title||void 0;fe.route({path:a.path,id:a.id||void 0,parent:a.parent||void 0,isDefault:r.hasAttribute("data-default"),redirectTo:a.redirectto,render:go.bind(null,r,n)})}return ve().switchMap(()=>{for(let r of Array.from(e.children))r instanceof HTMLTemplateElement&&t(r);return M(rt(e).tap(r=>{r.type==="added"&&r.value instanceof HTMLTemplateElement&&t(r.value)}),z(e,"strategy").switchMap(r=>{let a=gr[r];return Na(Da(),a).catchError((n,o)=>(console.error(n),o))}))})}]});function vr(e){return(t,r)=>t[e]>r[e]?1:t[e]<r[e]?-1:0}function At(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 r,a=e.getRootNode();return a instanceof ShadowRoot&&(r=a.getElementById(t),r)?r:e.ownerDocument.getElementById(t)??void 0}var lt=N(":host{display:contents}"),Pa=[-2,-1,0,1,2,3,4,5],kr=["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"],Tt=qe(),Sr=de(""),Be=N(`:host([disabled]) {
|
|
1
|
+
var Z={},Ja=Symbol("terminator");function Xt(e,t){let r=!1,a={error:n,unsubscribe:s,get closed(){return r},signal:K(),next(o){if(!r)try{e.next?.(o)}catch(i){n(i)}},complete(){if(!r)try{e.complete?.()}finally{s()}}};e.signal?.subscribe(s);function n(o){if(r)throw o;if(!e.error)throw s(),o;try{e.error(o)}finally{s()}}function s(){r||(r=!0,a.signal.next())}try{if(t?.(a))throw new Error("Unsubscribe function result is deprectaed")}catch(o){n(o)}return a}var v=class{__subscribe;constructor(e){this.__subscribe=e}then(e,t){return ar(this).then(e,t)}pipe(...e){return e.reduce((t,r)=>r(t),this)}subscribe(e){return Xt(!e||typeof e=="function"?{next:e}:e,this.__subscribe)}},ie=class extends v{closed=!1;signal=K();observers=new Set;constructor(){super(e=>this.onSubscribe(e))}next(e){if(!this.closed)for(let t of Array.from(this.observers))t.closed||t.next(e)}error(e){if(!this.closed){this.closed=!0;let t=!1,r;for(let a of Array.from(this.observers))try{a.error(e)}catch(n){t=!0,r=n}if(t)throw r}}complete(){this.closed||(this.closed=!0,Array.from(this.observers).forEach(e=>e.complete()),this.observers.clear())}onSubscribe(e){this.closed?e.complete():(this.observers.add(e),e.signal.subscribe(()=>this.observers.delete(e)))}},Qt=class extends v{closed=!1;observers=new Set;constructor(){super(e=>{this.closed?(e.next(),e.complete()):this.observers.add(e)})}next(){if(!this.closed){this.closed=!0;for(let e of Array.from(this.observers))e.closed||(e.next(),e.complete());this.observers.clear()}}},nt=class extends ie{queue=[];emitting=!1;next(e){if(!this.closed)if(this.emitting)this.queue.push(e);else{for(this.emitting=!0,super.next(e);this.queue.length;)super.next(this.queue.shift());this.emitting=!1}}},Zt=class extends ie{currentValue;constructor(e){super(),this.currentValue=e}get value(){return this.currentValue}next(e){this.currentValue=e,super.next(e)}onSubscribe(e){let t=super.onSubscribe(e);return this.closed||e.next(this.currentValue),t}},Kt=class extends ie{bufferSize;buffer=[];hasError=!1;lastError;constructor(e=1/0){super(),this.bufferSize=e}error(e){this.hasError=!0,this.lastError=e,super.error(e)}next(e){return this.buffer.length===this.bufferSize&&this.buffer.shift(),this.buffer.push(e),super.next(e)}onSubscribe(e){this.observers.add(e),this.buffer.forEach(t=>e.next(t)),this.hasError?e.error(this.lastError):this.closed&&e.complete(),e.signal.subscribe(()=>this.observers.delete(e))}},er=class extends ie{$value=Z;get hasValue(){return this.$value!==Z}get value(){if(this.$value===Z)throw new Error("Reference not initialized");return this.$value}next(e){return this.$value=e,super.next(e)}onSubscribe(e){!this.closed&&this.$value!==Z&&e.next(this.$value),super.onSubscribe(e)}},tr=class extends Error{message="No elements in sequence"};function K(){return new Qt}function be(...e){return new v(t=>{let r=0,a;function n(){let s=e[r++];s&&!t.closed?(a?.next(),s.subscribe({next:t.next,error:t.error,complete:n,signal:a=K()})):t.complete()}t.signal.subscribe(()=>a?.next()),n()})}function j(e){return new v(t=>{e().subscribe(t)})}function ot(e){return new v(t=>{for(let r of e)t.closed||t.next(r);t.complete()})}function st(e){return new v(t=>{e.then(r=>{t.closed||t.next(r),t.complete()}).catch(r=>t.error(r))})}function it(e){return j(()=>st(e()))}function rr(e){return new v(t=>{for(let r of e)t.closed||t.next(r);t.complete()})}function ct(e){return e instanceof v?e:Array.isArray(e)?ot(e):e instanceof Promise?st(e):rr(e)}function P(...e){return ot(e)}function la(e){return new Promise((t,r)=>{let a=Z;e.subscribe({next:n=>a=n,error:n=>r(n),complete:()=>t(a)})})}function ar(e){return la(e).then(t=>t===Z?void 0:t)}function ee(e,t){return _(r=>({next:e(r),unsubscribe:t}))}function _(e){return t=>new v(r=>{let a=e(r,t);r.signal.subscribe(()=>a.unsubscribe?.()),a.error||(a.error=r.error),a.complete||(a.complete=r.complete),a.signal=r.signal,t.subscribe(a)})}function Re(e){return ee(t=>r=>t.next(e(r)))}function nr(e,t){return _(r=>{let a=t,n=0;return{next(s){a=e(a,s,n++)},complete(){r.next(a),r.complete()}}})}function or(e){return _(t=>{let r=!0,a;return{next(n){r&&(r=!1,t.next(n),a=setTimeout(()=>r=!0,e))},unsubscribe:()=>clearTimeout(a)}})}function ce(e){return new v(t=>{let r=setTimeout(()=>{t.next(),t.complete()},e);t.signal.subscribe(()=>clearTimeout(r))})}function sr(e,t=ce){return lt(r=>t(e).map(()=>r))}function lt(e){return t=>O(r=>{let a=!1,n=!1,s,o=()=>{s?.next(),a=!1,n&&r.complete()},i=K();r.signal.subscribe(()=>{o(),i.next()}),t.subscribe({next(c){o(),s=K(),a=!0,e(c).subscribe({next:r.next,error:r.error,complete:o,signal:s})},error:r.error,complete(){n=!0,a||r.complete()},signal:i})})}function ir(e){return t=>O(r=>{let a=r.signal,n=0,s=0,o=!1;t.subscribe({next:i=>{n++,e(i).subscribe({next:r.next,error:r.error,complete:()=>{s++,o&&s===n&&r.complete()},signal:a})},error:r.error,complete(){o=!0,s===n&&r.complete()},signal:a})})}function cr(e){return _(t=>{let r=!0;return{next(a){r&&(r=!1,e(a).subscribe({next:t.next,error:t.error,complete:()=>r=!0,signal:t.signal}))}}})}function xe(e){return ee(t=>r=>{e(r)&&t.next(r)})}function lr(e){return ee(t=>r=>{e-- >0&&!t.closed&&t.next(r),(e<=0||t.closed)&&t.complete()})}function pr(e){return ee(t=>r=>{!t.closed&&e(r)?t.next(r):t.complete()})}function ur(){let e=!1;return _(t=>({next(r){e||(e=!0,t.next(r),t.complete())},complete(){t.closed||t.error(new tr)}}))}function ge(e){return ee(t=>r=>{e(r),t.next(r)})}function dr(e){return _((t,r)=>{let a,n={next:t.next,error(s){try{if(t.closed)return;let o=e(s,r);o&&(a?.next(),a=K(),o.subscribe({...n,signal:a}))}catch(o){t.error(o)}},unsubscribe:()=>a?.next()};return n})}function mr(){return ee(e=>{let t=Z;return r=>{r!==t&&(t=r,e.next(r))}})}function fr(){return e=>{let t=new Kt(1),r=!1;return O(a=>{t.subscribe(a),r||(r=!0,e.subscribe(t))})}}function hr(){return e=>{let t,r=0;function a(){--r===0&&t?.signal.next()}return O(n=>{n.signal.subscribe(a),r++===0?(t=le(),t.subscribe(n),e.subscribe(t)):t.subscribe(n)})}}function br(){return e=>{let t=new ie,r,a,n=!1,s=!1;return O(o=>{s?(o.next(a),o.complete()):t.subscribe(o),r??=e.subscribe({next:i=>{n=!0,a=i},error:o.error,complete(){s=!0,n&&t.next(a),t.complete()},signal:o.signal})})}}function g(...e){return e.length===1?e[0]:new v(t=>{let r=e.length;for(let a of e)t.closed||a.subscribe({next:t.next,error:t.error,complete(){r--===1&&t.complete()},signal:t.signal})})}function V(...e){return e.length===0?T:new v(t=>{let r=e.length,a=r,n=0,s=!1,o=new Array(r),i=new Array(r);e.forEach((c,w)=>c.subscribe({next(L){i[w]=L,o[w]||(o[w]=!0,++n>=a&&(s=!0)),s&&t.next(i.slice(0))},error:t.error,complete(){--r<=0&&t.complete()},signal:t.signal}))})}function xr(e){return _(t=>({next:t.next,unsubscribe:e}))}function gr(){return xe(()=>!1)}var T=new v(e=>e.complete());function te(e){return new Zt(e)}function O(e){return new v(e)}function le(){return new er}var at={catchError:dr,debounceTime:sr,distinctUntilChanged:mr,exhaustMap:cr,filter:xe,finalize:xr,first:ur,ignoreElements:gr,map:Re,mergeMap:ir,publishLast:br,reduce:nr,share:hr,shareLatest:fr,switchMap:lt,take:lr,takeWhile:pr,tap:ge,throttleTime:or};for(let e in at)v.prototype[e]=function(...t){return this.pipe(at[e](...t))};function E(e,t,r){return new v(a=>{let n=a.next.bind(a);e.addEventListener(t,n,r),a.signal.subscribe(()=>e.removeEventListener(t,n,r))})}function pt(e){return Pe(e,{childList:!0})}function ut(e,t){return Pe(e,{attributes:!0,attributeFilter:t})}function Pe(e,t={attributes:!0,childList:!0}){return new v(r=>{let a=new MutationObserver(n=>n.forEach(s=>{for(let o of s.addedNodes)r.next({type:"added",target:e,value:o});for(let o of s.removedNodes)r.next({type:"removed",target:e,value:o});s.type==="characterData"?r.next({type:"characterData",target:e}):s.attributeName&&r.next({type:"attribute",target:e,value:s.attributeName})}));a.observe(e,t),r.signal.subscribe(()=>a.disconnect())})}function dt(e){return E(e,"keydown").filter(t=>t.key===" "||t.key==="Enter"?(t.preventDefault(),!0):!1)}function W(e){return E(e,"click")}function Be(e,t){return new v(r=>{let a=new IntersectionObserver(n=>{for(let s of n)r.next(s)},t);a.observe(e),r.signal.subscribe(()=>a.disconnect())})}function J(e){return Be(e).filter(t=>t.isIntersecting).first()}function yr(e){let t;return function(...r){t&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{e.apply(this,r),t=0})}}function mt(e){return _(t=>{let r=yr(n=>{t.closed||(e&&e(n),t.next(n),a&&t.complete())}),a=!1;return{next:r,complete:()=>a=!0}})}function ft(){return j(()=>document.readyState!=="loading"?P(!0):E(window,"DOMContentLoaded").first().map(()=>!0))}function ye(e,t){let r;return g(j(()=>(r=e.childNodes,r?P(r):T)),Pe(e,{childList:!0,...t}),pe().switchMap(()=>e.childNodes!==r?(r=e.childNodes,P(r)):T))}function pe(){return j(()=>document.readyState==="complete"?P(!0):E(window,"load").first().map(()=>!0))}function ht(...e){return new v(t=>{let r=new ResizeObserver(a=>a.forEach(n=>t.next(n)));for(let a of e)r.observe(a);t.signal.subscribe(()=>r.disconnect())})}function bt(e){return e.offsetParent===null&&!(e.offsetWidth&&e.offsetHeight)}function Oe(e,t,r){return a=>be(P(e?a.matches(e):!1),E(a,t).switchMap(()=>g(P(!0),E(a,r).map(()=>e?a.matches(e):!1))))}var pa=Oe("","animationstart","animationend"),vr=Oe("","mouseenter","mouseleave"),wr=Oe(":focus,:focus-within","focusin","focusout"),Le=e=>V(vr(e),wr(e)).map(([t,r])=>t||r);function xt(e){return e instanceof PointerEvent&&e.pointerType===""||e instanceof MouseEvent&&e.type==="click"&&e.detail===0}function gt(e){let t=e.getRootNode();return t instanceof Document||t instanceof ShadowRoot?t:void 0}var ua=ge(e=>console.log(e));v.prototype.log=function(){return this.pipe(ua)};v.prototype.raf=function(e){return this.pipe(mt(e))};var F=Symbol("bindings"),da={},ue=Symbol("augments"),re=Symbol("parser"),kr=class{bindings;messageHandlers;internals;attributes$=new nt;wasConnected=!1;wasInitialized=!1;subscriptions;prebind;addMessageHandler(e){(this.messageHandlers??=new Set).add(e)}removeMessageHandler(e){this.messageHandlers?.delete(e)}message(e,t){let r=!1;if(this.messageHandlers)for(let a of this.messageHandlers)a.type===e&&(a.next(t),r||=a.stopPropagation);return r}add(e){if(this.wasConnected)throw new Error("Cannot bind connected component.");this.wasInitialized?(this.bindings??=[]).push(e):(this.prebind??=[]).push(e)}connect(){if(this.wasConnected=!0,!this.subscriptions&&(this.prebind||this.bindings)){let e=this.subscriptions=[];if(this.bindings)for(let t of this.bindings)e.push(t.subscribe());if(this.prebind)for(let t of this.prebind)e.push(t.subscribe())}}disconnect(){this.subscriptions?.forEach(e=>e.unsubscribe()),this.subscriptions=void 0}},we=Symbol("css"),f=class extends HTMLElement{static observedAttributes;static[ue];static[re];[F]=new kr;[we];connectedCallback(){this[F].wasInitialized=!0,this[F].wasConnected||this.constructor[ue]?.forEach(e=>e(this)),this[F].connect()}disconnectedCallback(){this[F].disconnect()}attributeChangedCallback(e,t,r){let a=this.constructor[re]?.[e]??ma;t!==r&&(this[e]=a(r,this[e]))}};function ma(e,t){let r=t===!1||t===!0;return e===""?r?!0:"":e===null?r?!1:void 0:e}function Sr(e,t){e.hasOwnProperty(ue)||(e[ue]=e[ue]?.slice(0)??[]),e[ue]?.push(t)}var fa={mode:"open"};function z(e){return e.shadowRoot??e.attachShadow(fa)}function Cr(e,t){t instanceof Node?z(e).appendChild(t):e[F].add(t)}function ha(e,t){t.length&&Sr(e,r=>{for(let a of t){let n=a.call(e,r);n&&n!==r&&Cr(r,n)}})}function ba(e,t){da[e]=t,customElements.define(e,t)}function d(e,{init:t,augment:r,tagName:a}){if(t)for(let n of t)n(e);r&&ha(e,r),a&&ba(a,e)}function ke(e){return be(P(e),e[F].attributes$.map(()=>e))}function H(e,t){return e[F].attributes$.pipe(xe(r=>r.attribute===t),Re(()=>e[t]))}function b(e,t){return g(H(e,t),j(()=>P(e[t])))}function xa(e){let t=e.observedAttributes;return t&&!e.hasOwnProperty("observedAttributes")&&(t=e.observedAttributes?.slice(0)),e.observedAttributes=t||[]}function je(e,t,r){return r===!1||r===null||r===void 0?r=null:r===!0&&(r=""),r===null?e.removeAttribute(t):e.setAttribute(t,String(r)),r}function ga(e,t,r){e.hasOwnProperty(re)||(e[re]={...e[re]}),e[re]&&(e[re][t]=r)}function y(e,t){return r=>{t?.observe!==!1&&xa(r).push(e),t?.parse&&ga(r,e,t.parse);let a=`$$${e}`,n=r.prototype,s=Object.getOwnPropertyDescriptor(n,e);s&&Object.defineProperty(n,a,s);let o=t?.persist,i={enumerable:!0,configurable:!1,get(){return this[a]},set(c){this[a]!==c?(this[a]=c,o?.(this,e,c),this[F].attributes$.next({target:this,attribute:e,value:c})):s?.set&&(o?.(this,e,c),this[a]=c)}};Sr(r,c=>{if(s||(c[a]=c[e]),Object.defineProperty(c,e,i),o?.(c,e,c[e]),t?.render){let w=t.render(c);w&&Cr(c,w)}})}}function A(e){return y(e,{persist:je,observe:!0})}function U(e){return y(e,{observe:!1})}function N(){return document.createElement("slot")}function vt(e){return t=>{let[r,a]=e();return t[F].add(r),a}}var Se=class extends f{};d(Se,{tagName:"c-span"});function Er(e,t){let r=document.createTextNode("");return e[F].add(t.tap(a=>r.textContent=a)),r}var yt=document.createDocumentFragment();function ve(e,t,r=e){if(t!=null)if(Array.isArray(t)){for(let a of t)ve(e,a,yt);r!==yt&&r.appendChild(yt)}else e instanceof f&&t instanceof v?r.appendChild(Er(e,t)):t instanceof Node?r.appendChild(t):e instanceof f&&typeof t=="function"?ve(e,t(e),r):r.appendChild(document.createTextNode(t))}function Ar(e,t){for(let r in t){let a=t[r];e instanceof f?a instanceof v?e[F].add(r==="$"?a:a.tap(n=>e[r]=n)):r==="$"&&typeof a=="function"?e[F].add(a(e)):e[r]=a:e[r]=a}}function ya(e,t){return e.constructor.observedAttributes?.includes(t)}function wt(e,t){let r=e instanceof f&&ya(e,t)?H(e,t):ut(e,[t]).map(()=>e[t]);return g(r,j(()=>P(e[t])))}function de(e,t,r){for(let a=e.parentElement;a;a=a.parentElement)if(a[F]?.message(t,r))return}function Ce(e,t,r=!0){return new v(a=>{let n={type:t,next:a.next,stopPropagation:r};e[F].addMessageHandler(n),a.signal.subscribe(()=>e[F].removeMessageHandler(n))})}function I(e,t,...r){let a=typeof e=="string"?document.createElement(e):new e;return t&&Ar(a,t),r&&ve(a,r),a}function m(e,t,...r){if(e!==m&&typeof e=="function"&&!(e.prototype instanceof f))return r.length&&((t??={}).children=r),e(t);let a=e===m?document.createDocumentFragment():typeof e=="string"?document.createElement(e):new e;return t&&Ar(a,t),r&&ve(a,r),a}function kt(e){return(t,r)=>t[e]>r[e]?1:t[e]<r[e]?-1:0}function St(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 r,a=e.getRootNode();return a instanceof ShadowRoot&&(r=a.getElementById(t),r)?r:e.ownerDocument.getElementById(t)??void 0}var At=x(":host{display:contents}"),Mr=[-2,-1,0,1,2,3,4,5],$t=["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"],He=le(),Tt=te(""),ne=x(`:host([disabled]) {
|
|
2
2
|
cursor: default;
|
|
3
3
|
pointer-events: var(--cxl-override-pointer-events, none);
|
|
4
|
-
}`),
|
|
4
|
+
}`),va=(()=>{for(let e of Array.from(document.fonts.keys()))if(e.family==="Roboto")return!0;return!1})(),Ir={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 wa(e=Ir){return Object.entries(e).map(([t,r])=>`--cxl-color--${t}:${r};--cxl-color-${t}:var(--cxl-color--${t});`).join("")}var D={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:Ir,imports:va?void 0:["https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400&family=Roboto:wght@300;400;500;700&display=swap"],globalCss:`:root{
|
|
5
5
|
--cxl-color-scrim: rgb(29 27 32 / 0.5); /* neutral 10? #1D1B20 */
|
|
6
6
|
|
|
7
7
|
--cxl-font-family: Roboto;
|
|
@@ -58,7 +58,7 @@ var Me={},as=Symbol("terminator");function Gr(e,t){let r=!1,a={error:n,unsubscri
|
|
|
58
58
|
--cxl-shape-corner-xsmall: 4px;
|
|
59
59
|
--cxl-shape-corner-full: 50vh;
|
|
60
60
|
}
|
|
61
|
-
`,css:""};function
|
|
61
|
+
`,css:""};function _e(e=""){return`:host ${e} {
|
|
62
62
|
--cxl-mask-hover: color-mix(in srgb, var(--cxl-color-on-surface) 8%, transparent);
|
|
63
63
|
--cxl-mask-focus: color-mix(in srgb, var(--cxl-color-on-surface) 10%, transparent);
|
|
64
64
|
--cxl-mask-active: linear-gradient(0, var(--cxl-color-surface-container),var(--cxl-color-surface-container));
|
|
@@ -66,8 +66,8 @@ var Me={},as=Symbol("terminator");function Gr(e,t){let r=!1,a={error:n,unsubscri
|
|
|
66
66
|
:host(:hover) ${e} { background-image: linear-gradient(0, var(--cxl-mask-hover),var(--cxl-mask-hover)); }
|
|
67
67
|
:host(:focus-visible) ${e} { background-image: linear-gradient(0, var(--cxl-mask-focus),var(--cxl-mask-focus)) }
|
|
68
68
|
:host{-webkit-tap-highlight-color: transparent}
|
|
69
|
-
`}var
|
|
70
|
-
${t?`:host ${r} { ${
|
|
69
|
+
`}var Ee=x(_e());var $r,ka;function Ae(e,t){return e==="xsmall"?`@media(max-width:${D.breakpoints.small}px){${t}}`:`@media(min-width:${D.breakpoints[e]}px){${t}}`}function Nt(e){return ht(e).map(t=>{let r=D.breakpoints,a=t.contentRect.width,n="xsmall";for(let s in r){if(r[s]>a)return n;n=s}return n})}function Sa(e=""){return Object.entries(It).map(([t,r])=>`:host([color=${t}]) ${e}{ ${r} }`).join("")}function $e(e,t,r=""){return Mt(e,`
|
|
70
|
+
${t?`:host ${r} { ${It[t]} }`:""}
|
|
71
71
|
:host${t?"":"([color])"} ${r} {
|
|
72
72
|
color: var(--cxl-color-on-surface);
|
|
73
73
|
background-color: var(--cxl-color-surface);
|
|
@@ -76,31 +76,22 @@ var Me={},as=Symbol("terminator");function Gr(e,t){let r=!1,a={error:n,unsubscri
|
|
|
76
76
|
color: inherit;
|
|
77
77
|
background-color: transparent;
|
|
78
78
|
}
|
|
79
|
-
${
|
|
80
|
-
`)}function
|
|
79
|
+
${Sa(r)}
|
|
80
|
+
`)}function Mt(e,t){let r=x(t);return y(e,{persist:je,render:a=>r(a)})}function Y(e,t){return Mt(e,Mr.map(r=>{let a=t(r);return r===0?`:host ${a}`:`:host([size="${r}"]) ${a}`}).join(""))}function Fr(e){let t;return He.tap(r=>{let a=r?.theme.override?.[e.tagName];a?t?t.replace(a):e.shadowRoot?.adoptedStyleSheets.push(t??=ae(a)):t&&t.replace("")})}function ae(e){let t=new CSSStyleSheet;return e&&t.replaceSync(e),t}function x(e){let t;return r=>{let a=z(r);if(a.adoptedStyleSheets.push(t??=ae(e)),!r[we])return D.css&&a.adoptedStyleSheets.unshift(ka??=ae(D.css)),r[we]=!0,Fr(r)}}var Dr=["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"],Ca=[...Dr,"inherit"];function Ct(e,t="surface"){return`--cxl-color-${t}: var(--cxl-color--${e});
|
|
81
81
|
--cxl-color-on-${t}: var(--cxl-color--on-${e}, var(--cxl-color--on-surface));
|
|
82
82
|
--cxl-color-surface-variant: var(--cxl-color--${e==="surface"?"surface-variant":e});
|
|
83
83
|
--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)`};
|
|
84
|
-
`}function
|
|
85
|
-
${
|
|
86
|
-
${t==="inverse-surface"?
|
|
87
|
-
`,e),{inherit:"color:inherit;background-color:inherit;"});function
|
|
84
|
+
`}function Te(e){return`${Ct(e)};background-color:var(--cxl-color-surface);color:var(--cxl-color-on-surface);`}var It=Dr.reduce((e,t)=>(e[t]=`
|
|
85
|
+
${Ct(t)}
|
|
86
|
+
${t==="inverse-surface"?Ct("inverse-primary","primary"):""}
|
|
87
|
+
`,e),{inherit:"color:inherit;background-color:inherit;"});function Ft(e=":host"){return`
|
|
88
88
|
${e} {
|
|
89
89
|
scrollbar-color: var(--cxl-color-outline-variant) var(--cxl-color-surface, transparent);
|
|
90
90
|
}
|
|
91
91
|
${e}::-webkit-scrollbar-track {
|
|
92
92
|
background-color: var(--cxl-color-surface, transparent);
|
|
93
93
|
}
|
|
94
|
-
`}function
|
|
95
|
-
text-decoration: none;
|
|
96
|
-
outline: 0;
|
|
97
|
-
display: block;
|
|
98
|
-
position: absolute;
|
|
99
|
-
left: 0;
|
|
100
|
-
right: 0;
|
|
101
|
-
bottom: 0;
|
|
102
|
-
top: 0;
|
|
103
|
-
`,X(e).append(r),M(br(e,r),B(r,"click").tap(a=>{a.stopPropagation(),We(a)||e.dispatchEvent(new PointerEvent(a.type,a)),Ce(e,"toggle.close",void 0)}),oe(t).tap(a=>{We(a)&&r.click()}))}var Wa=class extends T{href};v(Wa,{tagName:"c-router-selectable",init:[R("href")],augment:[lt,()=>W("slot"),e=>ae(()=>{let t=e.parentElement;return It(e,t).raf(r=>{t.selected=r})})]});function Ya(e,t,r){return new j(a=>{let n={id:e,controller:r,target:t};Ce(t,`registable.${e}`,n),a.signal.subscribe(()=>n.unsubscribe?.())})}function Va(e){return e in K.animation}function we({target:e,animation:t,options:r}){if(K.disableAnimations)return e.animate(null);let a=typeof t=="string"?K.animation[t]:t;if(!a)throw new Error(`Animation "${t}" not defined`);let n=typeof a.kf=="function"?a.kf(e):a.kf,o={duration:250,easing:K.easing.emphasized,...a.options,...r,...K.prefersReducedMotion?{duration:0}:void 0};return e.animate(n,o)}function Ga(e){let{trigger:t,stagger:r,commit:a,keep:n}=e;function o(i){return new j(l=>{let S=we(i);S.ready.then(()=>l.next({type:"start",animation:S}),()=>{}),S.addEventListener("finish",()=>{l.next({type:"end",animation:S}),a&&S.commitStyles(),!(n||n!==!1&&i.options?.fill&&(i.options.fill==="both"||i.options.fill==="forwards"))&&l.complete()}),l.signal.subscribe(()=>{try{S.cancel()}catch{}})})}let s=Array.isArray(e.target)?e.target:e.target instanceof Element?[e.target]:Array.from(e.target);return M(...s.map((i,l)=>{let S={...e.options,delay:r!==void 0?(e.options?.delay??0)+l*r:e.options?.delay};return(t==="visible"?ar(i).filter(g=>g):t==="hover"?kt(i):J(!0)).switchMap(g=>g?o({...e,options:S,target:i}):_)}))}function Za(e,t,r=e.getBoundingClientRect()){let a=r.width>r.height?r.width:r.height,n=new Xa,o=e.shadowRoot||e,{x:s,y:i}=t??{},l=s===void 0||!t||We(t),S=s>r.right||s<r.left||i>r.bottom||i<r.top;return n.x=l||S?r.width/2:s-r.left,n.y=l||S?r.height/2:i-r.top,n.radius=a,t||(n.duration=0),o.prepend(n),n}function Qa(e,t=e){let r,a,n,o=()=>{r=Za(t,a instanceof Event?a:void 0,n),r.duration=600,a=void 0};return M(B(e,"click").tap(s=>{a=s,n=t.getBoundingClientRect()}),z(e,"selected").raf().switchMap(()=>{if(e.selected){if(!r?.parentNode){if(ir(e))return a=void 0,Re(e).tap(o);o()}}else r&&Ja(r);return _})).ignoreElements()}function Ja(e){return new Promise(t=>{we({target:e,animation:"fadeOut"}).addEventListener("finish",()=>{e.remove(),t()})})}function Ae(e,t=e){let r=!1,a=0;return M(B(t,"pointerdown"),B(t,"click")).tap(n=>n.cxlRipple??=e).raf().mergeMap(n=>{if(n.cxlRipple===e&&!r&&!e.disabled&&e.parentNode){a=Date.now(),r=!0,e.style.setProperty("--cxl-mask-hover","none");let o=Za(e,n),s=o.duration,i=()=>{e.style.removeProperty("--cxl-mask-hover"),Ja(o).then(()=>{r=!1})};return n.type==="click"?Ee(s).tap(i):M(B(document,"pointerup"),B(document,"pointercancel")).first().map(()=>{let l=Date.now()-a;setTimeout(()=>i(),l>s?32:s-l)})}return _})}var Xa=class extends T{x=0;y=0;radius=0;duration=500};v(Xa,{tagName:"c-ripple",init:[R("x"),R("y"),R("radius")],augment:[N(`
|
|
94
|
+
`}function $(e){return`font:var(--cxl-font-${e});letter-spacing:var(--cxl-letter-spacing-${e});`}var Ea=requestAnimationFrame(()=>Pr()),Aa={},Tr=document.createElement("template"),Nr={};function zr(e){return function(t){let r=e(t),a=Nr[r];if(a)return a.cloneNode(!0);let n=document.createElementNS("http://www.w3.org/2000/svg","svg"),s=()=>(n.dispatchEvent(new ErrorEvent("error")),"");return fetch(r).then(o=>o.ok?o.text():s(),s).then(o=>{if(!o)return;Tr.innerHTML=o;let i=Tr.content.children[0];if(!i)return;let c=i.getAttribute("viewBox");c?n.setAttribute("viewBox",c):i.hasAttribute("width")&&i.hasAttribute("height")&&n.setAttribute("viewBox",`0 0 ${i.getAttribute("width")} ${i.getAttribute("height")}`);for(let w of i.childNodes)n.append(w);Nr[t.name]=n}),n.setAttribute("fill","currentColor"),n}}var $a=zr(({name:e,width:t,fill:r})=>(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}_${r?"fill1_":""}${t}px.svg`)),Ta=$a;function Dt(e,t={}){let{width:r,height:a}=t;r===void 0&&a===void 0&&(r=a=24);let n=Aa[e]?.icon()||Ta({name:e,width:r,fill:t.fill});return t.className&&n.setAttribute("class",t.className),r&&(n.setAttribute("width",`${r}`),a===void 0&&n.setAttribute("height",`${r}`)),a&&(n.setAttribute("height",`${a}`),r===void 0&&n.setAttribute("width",`${a}`)),t.alt&&n.setAttribute("alt",t.alt),n}var Et,Rr=new Promise(e=>{Et=e});function Pr(e){cancelAnimationFrame(Ea),$r||(e&&(e.colors&&(D.colors=e.colors),e.globalCss&&(D.globalCss+=e.globalCss)),document.adoptedStyleSheets.push($r=ae(`:root { ${wa(D.colors)} }`+D.globalCss)),D.imports?Promise.allSettled(D.imports.map(t=>{let r=document.createElement("link");return r.rel="stylesheet",r.href=t,document.head.append(r),new Promise((a,n)=>(r.onload=a,r.onerror=n))})).then(Et):Et())}function zt(){return it(async()=>{await Rr,await document.fonts.ready})}function Br(e,t,r){return new v(a=>{let n={id:e,controller:r,target:t};de(t,`registable.${e}`,n),a.signal.subscribe(()=>n.unsubscribe?.())})}function me({target:e,animation:t,options:r}){if(D.disableAnimations)return e.animate(null);let a=typeof t=="string"?D.animation[t]:t;if(!a)throw new Error(`Animation "${t}" not defined`);let n=typeof a.kf=="function"?a.kf(e):a.kf,s={duration:250,easing:D.easing.emphasized,...a.options,...r,...D.prefersReducedMotion?{duration:0}:void 0};return e.animate(n,s)}function Or(e,t,r=e.getBoundingClientRect()){let a=r.width>r.height?r.width:r.height,n=new Hr,s=e.shadowRoot||e,{x:o,y:i}=t??{},c=o===void 0||!t||xt(t),w=o>r.right||o<r.left||i>r.bottom||i<r.top;return n.x=c||w?r.width/2:o-r.left,n.y=c||w?r.height/2:i-r.top,n.radius=a,t||(n.duration=0),s.prepend(n),n}function Lr(e,t=e){let r,a,n,s=()=>{r=Or(t,a instanceof Event?a:void 0,n),r.duration=600,a=void 0};return g(E(e,"click").tap(o=>{a=o,n=t.getBoundingClientRect()}),b(e,"selected").raf().switchMap(()=>{if(e.selected){if(!r?.parentNode){if(bt(e))return a=void 0,J(e).tap(s);s()}}else r&&jr(r);return T})).ignoreElements()}function jr(e){return new Promise(t=>{me({target:e,animation:"fadeOut"}).addEventListener("finish",()=>{e.remove(),t()})})}function X(e,t=e){let r=!1,a=0;return g(E(t,"pointerdown"),E(t,"click")).tap(n=>n.cxlRipple??=e).raf().mergeMap(n=>{if(n.cxlRipple===e&&!r&&!e.disabled&&e.parentNode){a=Date.now(),r=!0,e.style.setProperty("--cxl-mask-hover","none");let s=Or(e,n),o=s.duration,i=()=>{e.style.removeProperty("--cxl-mask-hover"),jr(s).then(()=>{r=!1})};return n.type==="click"?ce(o).tap(i):g(E(document,"pointerup"),E(document,"pointercancel")).first().map(()=>{let c=Date.now()-a;setTimeout(()=>i(),c>o?32:o-c)})}return T})}var Hr=class extends f{x=0;y=0;radius=0;duration=500};d(Hr,{tagName:"c-ripple",init:[y("x"),y("y"),y("radius")],augment:[x(`
|
|
104
95
|
:host {
|
|
105
96
|
display: block;
|
|
106
97
|
position: absolute;
|
|
@@ -117,7 +108,7 @@ top: 0;
|
|
|
117
108
|
background-image: inherit;
|
|
118
109
|
border-radius: 100%;
|
|
119
110
|
background-color: var(--cxl-color-ripple, color-mix(in srgb, var(--cxl-color-on-surface) 16%, transparent));
|
|
120
|
-
}`),e=>{let t=document.createElement("div");return t.className="ripple",
|
|
111
|
+
}`),e=>{let t=document.createElement("div");return t.className="ripple",O(()=>{let r=t.style;r.translate=`${e.x-e.radius}px ${e.y-e.radius}px`,r.width=r.height=e.radius*2+"px",t.parentNode||z(e).append(t),me({target:t,animation:"expand",options:{duration:e.duration}}),me({target:t,animation:"fadeIn",options:{duration:e.duration/2}})})}]});function Na(e){return b(e,"disabled").tap(t=>t?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled"))}function Ma(e,t=e,r=0){let a=t.hasAttribute("tabindex")?t.tabIndex:r;return Na(e).tap(n=>{n?t.removeAttribute("tabindex"):t.tabIndex=a})}function Ia(e,t=e){return g(E(t,"focusout").tap(()=>e.touched=!0),g(H(e,"disabled"),H(e,"touched")).tap(()=>de(e,"focusable.change")))}function Ue(e,t=e,r=0){return g(Ma(e,t,r),Ia(e,t))}function Fa(e,t){return r=>new v(()=>{r.hasAttribute(e)||r.setAttribute(e,t)})}function q(e){return Fa("role",e)}var Da=0;function _r(e){return wt(e,"id").map(t=>(t||(e.id=`cxl__${Da++}`),e.id))}var Ne=[ne,Ee,x(`
|
|
121
112
|
:host {
|
|
122
113
|
box-sizing: border-box;
|
|
123
114
|
position: relative;
|
|
@@ -151,9 +142,9 @@ top: 0;
|
|
|
151
142
|
:host([variant=outlined][disabled]),:host([variant=text][disabled]) {
|
|
152
143
|
background-color: transparent;
|
|
153
144
|
box-shadow: none;
|
|
154
|
-
}`)],
|
|
145
|
+
}`)],za=x(`
|
|
155
146
|
:host {
|
|
156
|
-
${
|
|
147
|
+
${$("label-large")}
|
|
157
148
|
user-select: none;
|
|
158
149
|
cursor: pointer;
|
|
159
150
|
overflow: hidden;
|
|
@@ -185,12 +176,12 @@ top: 0;
|
|
|
185
176
|
:host([variant=elevated]) {
|
|
186
177
|
--cxl-color-on-surface: var(--cxl-color-primary);
|
|
187
178
|
}
|
|
188
|
-
`);function
|
|
179
|
+
`);function Rt(e){return b(e,"disabled").switchMap(t=>t?T:dt(e).tap(r=>{r.stopPropagation(),e.click()}))}function Pt(e){return g(Rt(e),Ue(e))}var qe=class extends f{disabled=!1;touched=!1};d(qe,{init:[A("disabled"),A("touched")],augment:[q("button"),Pt]});var Bt=class extends qe{size;color;variant};d(Bt,{tagName:"c-button",init:[Y("size",e=>`{
|
|
189
180
|
font-size: ${14+e*4}px;
|
|
190
181
|
min-height: ${40+e*8}px;
|
|
191
182
|
padding-right: ${16+e*4}px;
|
|
192
183
|
padding-left: ${16+e*4}px;
|
|
193
|
-
}`)
|
|
184
|
+
}`),$e("color","primary"),A("variant")],augment:[...Ne,za,X,N]});var Ra=x(`
|
|
194
185
|
:host {
|
|
195
186
|
box-sizing: border-box;
|
|
196
187
|
position: relative;
|
|
@@ -199,20 +190,20 @@ top: 0;
|
|
|
199
190
|
min-height: 56px;
|
|
200
191
|
align-items: center;
|
|
201
192
|
column-gap: 16px;
|
|
202
|
-
${
|
|
193
|
+
${$("body-medium")}
|
|
203
194
|
}
|
|
204
195
|
:host([disabled]) { color: color-mix(in srgb, var(--cxl-color-on-surface) 38%, transparent); }
|
|
205
196
|
:host([selected]) {
|
|
206
197
|
background-color: var(--cxl-color-secondary-container);
|
|
207
198
|
color: var(--cxl-color-on-secondary-container);
|
|
208
199
|
}
|
|
209
|
-
`);function
|
|
200
|
+
`);function Pa(e){return g(Br("list",e),b(e,"selected").tap(t=>e.ariaSelected=String(t)))}function Ba(e){return g(Rt(e),Ue(e,e,-1),Pa(e))}var Ve=class extends f{disabled=!1;touched=!1;selected=!1};d(Ve,{init:[A("disabled"),A("touched"),A("selected")],augment:[Ba]});var Oa=class extends Ve{size};d(Oa,{tagName:"c-item",init:[Y("size",e=>`{min-height:${56+e*8}px}`)],augment:[Ra,ne,Ee,q("option"),N,X]});var Ur=[x(`
|
|
210
201
|
:host {
|
|
211
202
|
--cxl-color-on-surface: var(--cxl-color-on-surface-variant);
|
|
212
203
|
--cxl-color-ripple: var(--cxl-color-secondary-container);
|
|
213
204
|
background-color: var(--cxl-color-surface);
|
|
214
205
|
color: var(--cxl-color-on-surface);
|
|
215
|
-
${
|
|
206
|
+
${$("label-large")}
|
|
216
207
|
box-sizing: border-box;
|
|
217
208
|
position: relative;
|
|
218
209
|
cursor: pointer;
|
|
@@ -239,16 +230,16 @@ top: 0;
|
|
|
239
230
|
:host([selected]) c-ripple { background-color: var(--cxl-color-surface); }
|
|
240
231
|
c-ripple { z-index: -1 }
|
|
241
232
|
:host([dense]) { min-height:48px; }
|
|
242
|
-
${
|
|
243
|
-
`),
|
|
244
|
-
:host([font=h1]) { ${
|
|
245
|
-
:host([font=h2]) { ${
|
|
246
|
-
:host([font=h3]) { ${
|
|
247
|
-
:host([font=h4]) { ${
|
|
248
|
-
:host([font=h5]) { ${
|
|
249
|
-
:host([font=h6]) { ${
|
|
233
|
+
${_e("c-ripple")}
|
|
234
|
+
`),ne,Lr,N],Ye=class extends Ve{size};d(Ye,{tagName:"c-nav-item",init:[Y("size",e=>`{min-height:${56+e*8}px}`)],augment:[q("option"),...Ur]});var G=class extends f{font};d(G,{tagName:"c-t",init:[A("font")],augment:[x(`:host{display:inline-block;font:var(--cxl-font-body-medium);}${$t.map(e=>`:host([font="${e}"]){font:var(--cxl-font-${e});letter-spacing:var(--cxl-letter-spacing-${e})}`).join("")}
|
|
235
|
+
:host([font=h1]) { ${$("display-large")} display:block;margin-top: 64px; margin-bottom: 24px; }
|
|
236
|
+
:host([font=h2]) { ${$("display-medium")} display:block;margin-top: 56px; margin-bottom: 24px; }
|
|
237
|
+
:host([font=h3]) { ${$("display-small")} display:block; margin-top: 48px; margin-bottom: 16px; }
|
|
238
|
+
:host([font=h4]) { ${$("headline-medium")} display:block; margin-top: 40px; margin-bottom: 16px; }
|
|
239
|
+
:host([font=h5]) { ${$("title-large")} display:block;margin-top: 32px; margin-bottom: 12px; }
|
|
240
|
+
:host([font=h6]) { ${$("title-medium")} display:block;margin-top: 24px; margin-bottom: 8px; }
|
|
250
241
|
: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}
|
|
251
|
-
`),
|
|
242
|
+
`),N,e=>b(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 La=class{currentPopupContainer;currentPopup;currentModal;currentTooltip;popupContainer=document.body;toggle(e){e.element.parentElement!==this.popupContainer?this.popupOpened(e):e.close()}popupOpened(e){this.currentPopup&&e.element!==this.currentPopup.element&&this.currentPopup.close(),this.currentPopup=e}openModal(e){this.currentModal&&e.element!==this.currentModal.element&&this.currentModal.close(),e.element.parentNode||this.popupContainer?.append(e.element),e.element.open||e.element.showModal(),this.currentModal=e}closeModal(){this.currentModal?.close(),this.modalClosed()}modalClosed(){this.currentModal=void 0}tooltipOpened(e){this.currentTooltip&&this.currentTooltip!==e&&this.currentTooltip.remove(),this.currentTooltip=e}close(){this.currentPopup?.close()}},Ge=new La;function qr(e){let t=e.target;if(t)return typeof t=="string"?t.split(" ").flatMap(r=>{let a=St(e,r);return a?[a]:[]}):Array.isArray(t)?t:[t]}function ja(e,t,r,a,n=E(e,"click").map(()=>!r())){return g(a,n).switchMap(s=>{let o=t();return o?ct(o.map(i=>({target:i,open:s}))):T})}function Ot(e,t=e){function r(s,o){return[b(e,"open").switchMap(i=>(s.parentNode||Ge.popupContainer.append(s),i&&s instanceof f?H(s,"open").map(c=>{e.open&&c===!1&&(e.open=!1)}):T)),_r(s).tap(i=>{let c=s.getAttribute("role");(c==="menu"||c==="listbox"||c==="tree"||c==="grid"||c==="dialog")&&(o.ariaHasPopup=c),o.getRootNode()===s.getRootNode()&&o.setAttribute("aria-controls",i)})]}let a=V(b(e,"trigger"),b(e,"target")).switchMap(([s])=>{let o=qr(e),i=o?g(...o.flatMap(c=>r(c,e))).ignoreElements():T;return g(s==="hover"?V(Le(t),o?g(...o.map(c=>Le(c))):T).map(c=>!!c.find(w=>!!w)).debounceTime(250):s==="checked"?E(t,"change").map(c=>c.target&&"checked"in c.target?!!c.target.checked:!1):E(t,"click").map(()=>!e.open),i)}),n;return ft().switchMap(()=>ja(t,()=>qr(e),()=>e.open,b(e,"open"),a).filter(s=>{let{open:o,target:i}=s;if(e.open!==o){if(o)n=gt(e)?.activeElement,i.trigger=e;else if(i.trigger&&i.trigger!==e)return s.open=!0,i.trigger=e,!0;return e.open=o,!1}if(!o&&i.trigger===e){let c=document.activeElement;(c===document.body||c===document.documentElement)&&n?.focus()}return!0}))}var Vr=class extends f{open=!1;target;trigger};d(Vr,{init:[y("target"),y("trigger"),A("open")],augment:[e=>Ot(e).raf(({target:t,open:r})=>t.open=r)]});var Ha=class extends Vr{};d(Ha,{tagName:"c-toggle",augment:[At,N]});var fe=class extends f{name="";width;height;alt;fill=!1};d(fe,{tagName:"c-icon",init:[y("name"),y("width"),y("height"),y("fill"),y("alt")],augment:[q("none"),x(`
|
|
252
243
|
:host {
|
|
253
244
|
display: inline-block;
|
|
254
245
|
width: 24px;
|
|
@@ -257,89 +248,12 @@ ${Nt("c-ripple")}
|
|
|
257
248
|
vertical-align: middle;
|
|
258
249
|
}
|
|
259
250
|
.icon { width: 100%; height: 100% }
|
|
260
|
-
`),e=>{let t=new CSSStyleSheet,r;return e.shadowRoot?.adoptedStyleSheets.push(t),
|
|
251
|
+
`),e=>{let t=new CSSStyleSheet,r;return e.shadowRoot?.adoptedStyleSheets.push(t),J(e).switchMap(()=>ke(e)).debounceTime(0).tap(()=>{let a=e.width??e.height,n=e.height??e.width;t.replace(`:host{${a===void 0?"":`width:${a}px;`}${n===void 0?"":`height:${n}px`}}`),r?.remove(),r=e.name?Dt(e.name,{className:"icon",width:a,height:n,fill:e.fill,alt:e.alt}):void 0,r&&(r.onerror=()=>{r&&e.alt&&r.replaceWith(e.alt)},z(e).append(r))})}]});var Lt=class extends Bt{};d(Lt,{tagName:"c-button-round",augment:[x(`
|
|
261
252
|
:host { min-width:40px; min-height: 40px; padding: 4px; border-radius: 100%; flex-shrink: 0; }
|
|
262
253
|
:host([variant=text]) { margin: -8px; }
|
|
263
254
|
:host([variant=text]:not([disabled])) { color: inherit; }
|
|
264
255
|
:host(:hover) { box-shadow:none; }
|
|
265
|
-
`)]});var
|
|
266
|
-
:host{display:contents}
|
|
267
|
-
`),e=>{let t=W("slot"),r=W("slot",{name:"off"});return(e.open?r:t).style.display="none",X(e).append(t,r),Dr(e,a=>{t.style.display=r.style.display="none";let n=e.open?a==="in"?t:r:a==="in"?r:t;return n.style.display="",n.assignedElements()},!0)}]});var Rr=class extends Lt{};v(Rr,{tagName:"c-toggle-panel",augment:[q,fn,Dr]});var zr=class extends T{center=!1};v(zr,{tagName:"c-backdrop",init:[F("center")],augment:[N(`
|
|
268
|
-
:host {
|
|
269
|
-
position: absolute;
|
|
270
|
-
top: 0;
|
|
271
|
-
left: 0;
|
|
272
|
-
bottom: 0;
|
|
273
|
-
right: 0;
|
|
274
|
-
background-color: var(--cxl-color-scrim);
|
|
275
|
-
overflow: hidden;
|
|
276
|
-
}
|
|
277
|
-
:host([center]) {
|
|
278
|
-
display: flex;
|
|
279
|
-
justify-content: center;
|
|
280
|
-
align-items: center;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
`),e=>B(e,"keydown").tap(t=>t.stopPropagation()),q]});var mn=N(`
|
|
284
|
-
#drawer {
|
|
285
|
-
box-sizing: border-box;
|
|
286
|
-
background-color: var(--cxl-color-surface);
|
|
287
|
-
color: var(--cxl-color-on-surface);
|
|
288
|
-
position: absolute;
|
|
289
|
-
display: block;
|
|
290
|
-
width: 85%;
|
|
291
|
-
min-width: 256px;
|
|
292
|
-
|
|
293
|
-
overflow-y: auto;
|
|
294
|
-
overflow-x: hidden;
|
|
295
|
-
z-index: 5;
|
|
296
|
-
}
|
|
297
|
-
${le("small","#drawer { width: 360px }")}
|
|
298
|
-
|
|
299
|
-
#dialog {
|
|
300
|
-
margin: 0;
|
|
301
|
-
padding: 0;
|
|
302
|
-
border-width: 0;
|
|
303
|
-
max-width: none;
|
|
304
|
-
max-height: none;
|
|
305
|
-
width: 100%;
|
|
306
|
-
height: 100%;
|
|
307
|
-
background-color: transparent;
|
|
308
|
-
overflow-x: hidden;
|
|
309
|
-
overflow-y: hidden;
|
|
310
|
-
text-align: initial;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
#dialog::backdrop {
|
|
314
|
-
background-color: transparent;
|
|
315
|
-
}
|
|
316
|
-
`),hn=class extends T{open=!1;position;responsive;permanent=!1};v(hn,{tagName:"c-drawer",init:[F("open"),F("position"),R("responsive"),R("permanent")],augment:[mn,N(`
|
|
317
|
-
:host { max-width: 360px; }
|
|
318
|
-
#drawer.permanent {
|
|
319
|
-
${be("surface")}
|
|
320
|
-
overflow-y: auto;
|
|
321
|
-
overflow-x: hidden;
|
|
322
|
-
position: relative;
|
|
323
|
-
width: 100%;
|
|
324
|
-
height: 100%;
|
|
325
|
-
z-index: 0;
|
|
326
|
-
}
|
|
327
|
-
#drawer {
|
|
328
|
-
top: 0;
|
|
329
|
-
bottom: 0;
|
|
330
|
-
}
|
|
331
|
-
#drawer, :host([position=left]) #drawer {
|
|
332
|
-
left: 0;
|
|
333
|
-
border-radius: 0 var(--cxl-shape-corner-large) var(--cxl-shape-corner-large) 0;
|
|
334
|
-
}
|
|
335
|
-
:host([position=right]) #drawer,:host(:not([position]):dir(rtl)) #drawer {
|
|
336
|
-
right: 0;
|
|
337
|
-
left: auto;
|
|
338
|
-
border-radius: var(--cxl-shape-corner-large) 0 0 var(--cxl-shape-corner-large);
|
|
339
|
-
}
|
|
340
|
-
:host([responsiveon]) #backdrop { display: none; }
|
|
341
|
-
:host([responsiveon]) #dialog { display: contents; }
|
|
342
|
-
`),e=>{let t=de(!1),r=M(z(e,"position"),t).raf(),a=()=>e.position==="right"||getComputedStyle(e).direction==="rtl",n=W(Rr,{id:"drawer","motion-in":r.map(()=>e.permanent&&t.value?void 0:a()?"slideInRight":"slideInLeft"),"motion-out":r.map(()=>e.permanent&&t.value?void 0:a()?"slideOutRight":"slideOutLeft")},q),o=new zr;o.id="backdrop";let s=W("dialog",{id:"dialog"},o,n);return X(e).append(s),M(B(n,"close").tap(()=>s.close()),B(s,"close").tap(()=>e.open=!1),ee(n,"open").tap(i=>e.open=i),ee(e,"open").raf(i=>{i||n.scrollTo(0,0)}),B(o,"click").tap(()=>e.open=!1),B(s,"cancel").tap(i=>{i.preventDefault(),e.open=!1}),z(e,"open").tap(i=>{if(t.value&&e.permanent)return n.open=!0;i?t.value||(Te.openModal({element:s,close:()=>e.open=!1}),s.getBoundingClientRect()):Te.currentModal?.element===s&&Te.modalClosed()}).raf(i=>{n.open=i}),z(e,"responsive").switchMap(i=>i!==void 0?ut(document.body):J("xsmall")).switchMap(i=>{let l=K.breakpoints[e.responsive||"large"],S=K.breakpoints[i]>=l;return t.next(S),S&&n.className!=="permanent"?s.close():!S&&n.className==="permanent"&&(e.open=!1),S&&e.open===!1&&(e.open=e.permanent),e.toggleAttribute("responsiveon",S),n.className=S?"permanent":"drawer",ee(e,"open").tap(g=>{e.hasAttribute("responsiveon")||we({target:o,animation:g?"fadeIn":"fadeOut",options:{fill:"forwards"}})})}))}]});var gn=class{start=new Comment("marker-start");end=new Comment("marker-end");frag=document.createDocumentFragment();insert(e,t=this.end){let r=this.end.parentNode;r&&(this.start.parentNode||r.insertBefore(this.start,this.end),Array.isArray(e)?(this.frag.append(...e),r.insertBefore(this.frag,t)):r.insertBefore(e,t))}empty(){let e=this.start.nextSibling;for(;e&&e!==this.end;){let t=e.nextSibling;e.remove(),e=t}}};function xn({source:e,render:t,empty:r,append:a,loading:n}){let o=[],s=document.createDocumentFragment(),i,l;function S(g){if(l?.parentNode?.removeChild(l),!g)return;let f=0;for(let c of g){let E=o[f]?.item;if(E)E.value!==c&&E.next(c);else{let m=de(c),y=t(m,f,g),h=y instanceof DocumentFragment?Array.from(y.childNodes):[y];o.push({elements:h,item:m}),s.append(y)}f++}s.childNodes.length&&a(s),i?.remove(),f===0&&r&&a(i=r());let w=o.length;for(;w-- >f;)o.pop()?.elements.forEach(c=>c.remove())}return ae(()=>(l=n?.(),l&&a(l),e.raf(S)))}function Fr(e){return ur(()=>{let t=new gn;return[xn({...e,append:t.insert.bind(t)}),t.end]})}var Lo=()=>{let e;function t(){let r=document.adoptedStyleSheets.indexOf(e);r!==-1&&document.adoptedStyleSheets.splice(r,1)}addEventListener("message",r=>{let{theme:a}=r.data;t(),a!==void 0&&(e=new CSSStyleSheet,e.replace(a),document.adoptedStyleSheets.push(e))})},Po=()=>{addEventListener("load",()=>{let e=()=>{parent.postMessage({height:document.documentElement.scrollHeight},"*")};requestAnimationFrame(async()=>{await document.fonts.ready,new ResizeObserver(e).observe(document.documentElement)})})},Pt=class extends T{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};v(Pt,{tagName:"c-iframe",init:[R("src"),R("srcdoc"),R("sandbox"),R("handletheme")],augment:[N(`
|
|
256
|
+
`)]});var oe=class extends Lt{icon="";width;height;fill=!1;variant="text";alt};d(oe,{tagName:"c-icon-button",init:[y("icon"),y("width"),y("height"),y("alt"),y("fill")],augment:[e=>I(fe,{className:"icon",width:b(e,"width"),height:b(e,"height"),name:b(e,"icon"),fill:b(e,"fill"),alt:b(e,"alt")})]});var We=class extends oe{open=!1;target;icon="menu"};d(We,{tagName:"c-navbar-toggle",init:[y("target"),U("open")],augment:[e=>Ot(e).tap(({target:t,open:r})=>t.open=r)]});var Yr=class{start=new Comment("marker-start");end=new Comment("marker-end");frag=document.createDocumentFragment();insert(e,t=this.end){let r=this.end.parentNode;r&&(this.start.parentNode||r.insertBefore(this.start,this.end),Array.isArray(e)?(this.frag.append(...e),r.insertBefore(this.frag,t)):r.insertBefore(e,t))}empty(){let e=this.start.nextSibling;for(;e&&e!==this.end;){let t=e.nextSibling;e.remove(),e=t}}};function Gr({source:e,render:t,empty:r,append:a,loading:n}){let s=[],o=document.createDocumentFragment(),i,c;function w(L){if(c?.parentNode?.removeChild(c),!L)return;let h=0;for(let M of L){let he=s[h]?.item;if(he)he.value!==M&&he.next(M);else{let De=te(M),se=t(De,h,L),et=se instanceof DocumentFragment?Array.from(se.childNodes):[se];s.push({elements:et,item:De}),o.append(se)}h++}o.childNodes.length&&a(o),i?.remove(),h===0&&r&&a(i=r());let Q=s.length;for(;Q-- >h;)s.pop()?.elements.forEach(M=>M.remove())}return j(()=>(c=n?.(),c&&a(c),e.raf(w)))}function jt(e){return vt(()=>{let t=new Yr;return[Gr({...e,append:t.insert.bind(t)}),t.end]})}var _a=()=>{let e;function t(){let r=document.adoptedStyleSheets.indexOf(e);r!==-1&&document.adoptedStyleSheets.splice(r,1)}addEventListener("message",r=>{let{theme:a}=r.data;t(),a!==void 0&&(e=new CSSStyleSheet,e.replace(a),document.adoptedStyleSheets.push(e))})},Ua=()=>{addEventListener("load",()=>{let e=()=>{parent.postMessage({height:document.documentElement.scrollHeight},"*")};requestAnimationFrame(async()=>{await document.fonts.ready,new ResizeObserver(e).observe(document.documentElement)})})},Je=class extends f{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};d(Je,{tagName:"c-iframe",init:[y("src"),y("srcdoc"),y("sandbox"),y("handletheme")],augment:[x(`
|
|
343
257
|
:host {
|
|
344
258
|
position: relative;
|
|
345
259
|
display: flex;
|
|
@@ -354,12 +268,12 @@ iframe {
|
|
|
354
268
|
display: flex;
|
|
355
269
|
border-style: none;
|
|
356
270
|
}
|
|
357
|
-
`),e=>{let t=
|
|
358
|
-
(${
|
|
359
|
-
(${
|
|
360
|
-
<\/script>`;t.srcdoc=`${e.reset}${
|
|
271
|
+
`),e=>{let t=m("iframe",{loading:"lazy"}),r=m("slot",{name:"loading"}),a=new CSSStyleSheet;e.shadowRoot?.adoptedStyleSheets.push(a),r.style.display="none";function n(o){a.replaceSync(":host{height:"+o+"px}"),t.style.height="100%",t.style.opacity="1",r.style.display="none"}function s(o){if(o){let i=`<script type="module">
|
|
272
|
+
(${Ua.toString()})();
|
|
273
|
+
(${_a.toString()})();
|
|
274
|
+
<\/script>`;t.srcdoc=`${e.reset}${o}${i}`,r.style.display=""}else t.srcdoc=""}return z(e).append(t,r),g(V(b(e,"srcdoc"),b(e,"src")).tap(async([o,i])=>{s(i?`<base href="${i}" />`+await fetch(i).then(c=>c.text()):o)}),E(window,"message").tap(o=>{let{height:i}=o.data;o.source===t.contentWindow&&i!==void 0&&n(i)}),b(e,"handletheme").switchMap(o=>o?E(t,"load").switchMap(()=>He.raf(i=>{let c=i?.css??"";t.contentWindow?.postMessage({theme:c},"*")})):T),b(e,"sandbox").tap(o=>o===void 0?t.removeAttribute("sandbox"):t.sandbox.value=o))}]});var Xe=class extends qe{};d(Xe,{tagName:"c-button-text",augment:[...Ne,x(`
|
|
361
275
|
:host {
|
|
362
|
-
${
|
|
276
|
+
${$("label-large")}
|
|
363
277
|
padding: 0 12px; border-radius: var(--cxl-shape-corner-full);
|
|
364
278
|
flex-shrink: 0;
|
|
365
279
|
margin: -10px -12px;
|
|
@@ -380,71 +294,16 @@ iframe {
|
|
|
380
294
|
background-color: transparent;
|
|
381
295
|
}
|
|
382
296
|
:host(:hover) { box-shadow: none; }
|
|
383
|
-
`),
|
|
384
|
-
:host { box-sizing:border-box; display:${e}; }
|
|
385
|
-
${t.xs}
|
|
386
|
-
:host([xs="0"]) { display:none }
|
|
387
|
-
:host([xsmall]) { display:${e} }
|
|
388
|
-
${le("small",`
|
|
389
|
-
:host { grid-column-end: auto; }
|
|
390
|
-
:host([small]) { display:${e} }
|
|
391
|
-
${t.sm}
|
|
392
|
-
:host([sm="0"]) { display:none }
|
|
393
|
-
`)}
|
|
394
|
-
${le("medium",`
|
|
395
|
-
${t.md}
|
|
396
|
-
:host([md="0"]) { display:none }
|
|
397
|
-
:host([medium]) { display:${e} }
|
|
398
|
-
`)}
|
|
399
|
-
${le("large",`
|
|
400
|
-
${t.lg}
|
|
401
|
-
:host([lg="0"]) { display:none }
|
|
402
|
-
:host([large]) { display:${e} }
|
|
403
|
-
`)}
|
|
404
|
-
${le("xlarge",`
|
|
405
|
-
${t.xl}
|
|
406
|
-
:host([xl="0"]) { display:none }
|
|
407
|
-
:host([xlarge]) { display:${e} }
|
|
408
|
-
`)}
|
|
409
|
-
`)}var vn=N(`
|
|
410
|
-
:host([grow]) { flex-grow:1; flex-shrink: 1 }
|
|
411
|
-
:host([color]) { background-color: var(--cxl-color-surface); color: var(--cxl-color-on-surface); }
|
|
412
|
-
:host([fill]) { position: absolute; inset:0 }
|
|
413
|
-
:host([elevation]) { --cxl-color-on-surface: var(--cxl-color--on-surface); }
|
|
414
|
-
:host([elevation="0"]) { --cxl-color-surface: var(--cxl-color-surface-container-lowest); }
|
|
415
|
-
:host([elevation="1"]) { --cxl-color-surface: var(--cxl-color-surface-container-low); }
|
|
416
|
-
:host([elevation="2"]) { --cxl-color-surface: var(--cxl-color-surface-container); }
|
|
417
|
-
:host([elevation="3"]) { --cxl-color-surface: var(--cxl-color-surface-container-high); }
|
|
418
|
-
:host([elevation="4"]) { --cxl-color-surface: var(--cxl-color-surface-container-highest); }
|
|
419
|
-
${Ue()}
|
|
420
|
-
${Mt.map(e=>`:host([pad="${e}"]){padding:${e}px}`).join("")}
|
|
421
|
-
${Mt.map(e=>`:host([vpad="${e}"]){padding-top:${e}px;padding-bottom:${e}px}`).join("")}`),Lr=class extends T{grow=!1;fill=!1;xs;sm;md;lg;xl;pad;vpad;color;center=!1;elevation};v(Lr,{init:[F("sm"),F("xs"),F("md"),F("lg"),F("xl"),F("vpad"),F("pad"),F("center"),F("fill"),F("grow"),F("elevation"),je("color")]});var Bt=class extends Lr{};v(Bt,{tagName:"c-c",augment:[vn,bn(),N(":host([center]) { text-align: center}"),q]});var yn=N(`
|
|
422
|
-
:host {
|
|
423
|
-
${be("surface-container")}
|
|
424
|
-
${Z("body-medium")}
|
|
425
|
-
border-radius: var(--cxl-shape-corner-medium);
|
|
426
|
-
overflow: hidden;
|
|
427
|
-
}
|
|
428
|
-
:host([variant=elevated]:not([color])) {
|
|
429
|
-
--cxl-color-surface: var(--cxl-color-surface-container-low);
|
|
430
|
-
z-index: 1;
|
|
431
|
-
box-shadow: var(--cxl-elevation-1);
|
|
432
|
-
}
|
|
433
|
-
:host([variant=outlined]) {
|
|
434
|
-
${be("surface")}
|
|
435
|
-
border: 1px solid var(--cxl-color-outline-variant);
|
|
436
|
-
}
|
|
437
|
-
${Ue()}
|
|
438
|
-
`),wn=class extends Bt{variant};v(wn,{tagName:"c-card",init:[F("variant")],augment:[yn]});var jt=class extends T{disabled=!1;touched=!1;selected=!1;color;size=0};v(jt,{tagName:"c-chip",init:[F("disabled"),F("touched"),F("selected"),je("color","surface-container-low"),ye("size",e=>`{
|
|
297
|
+
`),X,N]});var Qe=class extends f{disabled=!1;touched=!1;selected=!1;color;size=0};d(Qe,{tagName:"c-chip",init:[A("disabled"),A("touched"),A("selected"),$e("color","surface-container-low"),Y("size",e=>`{
|
|
439
298
|
padding: 2px ${e<0?2:8}px;
|
|
440
299
|
font-size: ${14+e*2}px;
|
|
441
300
|
height: ${32+e*6}px;
|
|
442
|
-
}`)],augment:[
|
|
301
|
+
}`)],augment:[q("button"),Pt,...Ne,x(`
|
|
443
302
|
:host {
|
|
444
303
|
box-sizing: border-box;
|
|
445
304
|
border: 1px solid var(--cxl-color-outline-variant);
|
|
446
305
|
border-radius: var(--cxl-shape-corner-small);
|
|
447
|
-
${
|
|
306
|
+
${$("label-large")}
|
|
448
307
|
display: inline-flex;
|
|
449
308
|
align-items: center;
|
|
450
309
|
position: relative;
|
|
@@ -462,11 +321,11 @@ ${Ue()}
|
|
|
462
321
|
}
|
|
463
322
|
:host([selected]) {
|
|
464
323
|
border-color: var(--cxl-color-secondary-container);
|
|
465
|
-
${
|
|
324
|
+
${Te("secondary-container")}
|
|
466
325
|
}
|
|
467
326
|
:host(:hover) { box-shadow: none; }
|
|
468
327
|
slot[name] { display: inline-block; }
|
|
469
|
-
`),
|
|
328
|
+
`),X,()=>I("slot",{name:"leading"}),N,()=>I("slot",{name:"trailing"})]});var Wr=[x(`
|
|
470
329
|
:host {
|
|
471
330
|
box-sizing: border-box;
|
|
472
331
|
background-color: var(--cxl-color-surface);
|
|
@@ -477,20 +336,20 @@ slot[name] { display: inline-block; }
|
|
|
477
336
|
column-gap: 24px;
|
|
478
337
|
min-height: 64px;
|
|
479
338
|
padding: 4px 16px;
|
|
480
|
-
${
|
|
339
|
+
${$("title-large")}
|
|
481
340
|
}
|
|
482
341
|
:host([size=medium]) {
|
|
483
342
|
height: 112px;
|
|
484
343
|
padding: 20px 16px 24px 16px;
|
|
485
|
-
${
|
|
344
|
+
${$("headline-small")}
|
|
486
345
|
flex-wrap: wrap;
|
|
487
346
|
}
|
|
488
347
|
:host([size=medium]) slot[name=title],:host([size=large]) slot[name=title] { width: 100%; display: block; margin-top:auto; }
|
|
489
348
|
:host([size=large]) {
|
|
490
349
|
height: 152px; padding: 20px 16px 28px 16px;
|
|
491
|
-
${
|
|
350
|
+
${$("headline-medium")}
|
|
492
351
|
flex-wrap: wrap;
|
|
493
|
-
}`),
|
|
352
|
+
}`),N,()=>I("slot",{name:"title"})];function qa(e){return e.tagName==="C-APPBAR-CONTEXTUAL"}var Ze=class extends f{size;sticky=!1;contextual};d(Ze,{tagName:"c-appbar",init:[A("size"),A("sticky"),A("contextual")],augment:[x(`
|
|
494
353
|
:host {
|
|
495
354
|
z-index: 2;
|
|
496
355
|
width:100%;
|
|
@@ -502,24 +361,14 @@ slot[name] { display: inline-block; }
|
|
|
502
361
|
}
|
|
503
362
|
:host([contextual]) { padding: 0; }
|
|
504
363
|
:host([contextual]) slot:not([name=contextual]) { display:none; }
|
|
505
|
-
`),...
|
|
506
|
-
:host {
|
|
507
|
-
display: none;
|
|
508
|
-
flex-grow: 1;
|
|
509
|
-
overflow-x: hidden;
|
|
510
|
-
white-space: nowrap;
|
|
511
|
-
text-overflow: ellipsis;
|
|
512
|
-
}
|
|
513
|
-
:host([open]) { display: flex }
|
|
514
|
-
:host(:dir(rtl)) .icon { scale: -1 1; }
|
|
515
|
-
`),e=>ee(e,"open").tap(t=>{t||e.dispatchEvent(new Event("close"))})]});function An(e=document){document.documentElement.lang="en";let t=[W("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),W("meta",{name:"apple-mobile-web-app-capable",content:"yes"}),W("meta",{name:"mobile-web-app-capable",content:"yes"}),W("style",void 0,`html{height:100%;}html,body{padding:0;margin:0;min-height:100%;${Z("body-large")}}
|
|
364
|
+
`),...Wr,()=>I("slot",{name:"contextual"}),e=>b(e,"sticky").switchMap(t=>t?Be(e,{threshold:[1]}).tap(r=>e.toggleAttribute("scroll",r.intersectionRatio<1)):T),e=>{let t;return g(pt(e),b(e,"contextual")).raf().switchMap(()=>{for(let r of e.children)if(qa(r)&&(r.slot="contextual",r.open=r.name===e.contextual,r.open))return t=r,E(r,"close").tap(()=>e.contextual=void 0);return t&&(t.open=!1),t=void 0,T})}]});function Jr(e=document){document.documentElement.lang="en";let t=[I("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),I("meta",{name:"apple-mobile-web-app-capable",content:"yes"}),I("meta",{name:"mobile-web-app-capable",content:"yes"}),I("style",void 0,`html{height:100%;}html,body{padding:0;margin:0;min-height:100%;${$("body-large")}}
|
|
516
365
|
a{color:var(--cxl-color-on-surface)}
|
|
517
|
-
`)];return e.head.append(...t),t}function
|
|
366
|
+
`)];return e.head.append(...t),t}function Xr(e=2e3){return g(ce(e),zt()).first()}function Qr(e){return Xr().raf(()=>e.setAttribute("ready",""))}function Zr(e){return g(O(t=>{let r=Jr(e.ownerDocument??document);t.signal.subscribe(()=>r.forEach(a=>a.remove()))}),pe().raf(()=>{let t=e.firstElementChild;t instanceof HTMLTemplateElement&&(e.append(t.content),t.remove())}),Xr().switchMap(()=>Nt(e).raf(t=>e.setAttribute("breakpoint",t))),Qr(e),Tt.raf(t=>t?e.setAttribute("theme",t):e.removeAttribute("theme")))}var Va=class extends f{connectedCallback(){requestAnimationFrame(()=>Jr(this.ownerDocument||document)),super.connectedCallback()}};d(Va,{tagName:"c-meta",augment:[()=>Qr(document.body)]});function Kr(e,t,r){r==="in"&&(e.style.display="");let a=e.offsetWidth,n=me({target:e,animation:{kf:{[t]:r==="in"?[`-${a}px`,"0"]:["0",`-${a}px`]}}});r==="out"&&(n.onfinish=()=>e.style.display="none")}var Ke=class extends f{sheetstart=!1;sheetend=!1};d(Ke,{tagName:"c-application",init:[A("sheetstart"),A("sheetend")],augment:[x(`
|
|
518
367
|
:host {
|
|
519
368
|
display: flex;
|
|
520
369
|
position: absolute;
|
|
521
370
|
inset: 0;
|
|
522
|
-
${
|
|
371
|
+
${Te("background")}
|
|
523
372
|
overflow: hidden;
|
|
524
373
|
}
|
|
525
374
|
#body {
|
|
@@ -529,91 +378,21 @@ slot[name] { display: inline-block; }
|
|
|
529
378
|
overflow: hidden;
|
|
530
379
|
}
|
|
531
380
|
slot[name=end],slot[name=start] { display:block; flex-shrink: 0; }
|
|
532
|
-
${
|
|
533
|
-
`),
|
|
534
|
-
:host {
|
|
535
|
-
position: relative;
|
|
536
|
-
display: flex;
|
|
537
|
-
flex-direction: column;
|
|
538
|
-
flex-grow: 1;
|
|
539
|
-
overflow-x:hidden;
|
|
540
|
-
overflow-y: auto;
|
|
541
|
-
-webkit-overflow-scrolling: touch;
|
|
542
|
-
background-color: var(--cxl-color-background);
|
|
543
|
-
color: var(--cxl-color-on-background);
|
|
544
|
-
}
|
|
545
|
-
slot { display: flex; flex-direction: column; max-width: 1200px; flex-grow: 1; }
|
|
546
|
-
|
|
547
|
-
${le("medium",`
|
|
548
|
-
:host{padding:32px;}
|
|
549
|
-
slot { margin: 0 auto; width:100%; }
|
|
550
|
-
`)}
|
|
551
|
-
|
|
552
|
-
`),q]});var Pr=class extends _t{sticky=!0};v(Pr,{tagName:"doc-appbar",augment:[e=>{e.append(L(Ft,{target:"navbar"}),CONFIG.packageName)}]});var Or=class extends T{};v(Or,{tagName:"doc-card",augment:[N(`
|
|
381
|
+
${Ft()}
|
|
382
|
+
`),Zr,e=>Ce(e,"toggle.open").tap(t=>{(t==="sheetend"||t==="sheetstart")&&(e[t]=!0)}),e=>Ce(e,"toggle.close").tap(t=>{(t==="sheetend"||t==="sheetstart")&&(e[t]=!1)}),e=>{let t=I("slot",{name:"start"}),r=I("slot",{id:"body"}),a=I("slot",{name:"end"}),n=ae("html { overflow: hidden }");return z(e).append(t,r,a),e.sheetstart||(t.style.display="none"),e.sheetend||(a.style.display="none"),Ge.popupContainer=e,g(O(s=>{let o=(e.ownerDocument??document).adoptedStyleSheets;o.push(n),s.signal.subscribe(()=>{let i=o.indexOf(n);i!==-1&&o.splice(i,1)})}),H(e,"sheetstart").tap(s=>Kr(t,"marginLeft",s?"in":"out")),H(e,"sheetend").tap(s=>Kr(a,"marginRight",s?"in":"out")))}]});var Ht=class extends Ze{sticky=!0};d(Ht,{tagName:"doc-appbar",augment:[e=>{e.append(m(We,{target:"navbar"}),CONFIG.packageName)}]});var _t=class extends f{};d(_t,{tagName:"doc-card",augment:[x(`
|
|
553
383
|
:host{margin-top: 16px; display:block; padding:16px; elevation:1; }
|
|
554
|
-
`),()=>
|
|
384
|
+
`),()=>m("slot")]});var Ut=class extends f{formatter};d(Ut,{tagName:"doc-hl",augment:[x(`
|
|
555
385
|
:host { display: block; }
|
|
556
386
|
.hljs { white-space: pre-wrap; font: var(--cxl-font-code); padding:16px; }
|
|
557
|
-
`),e=>{let t=
|
|
387
|
+
`),e=>{let t=m("div",{className:"hljs"});return t.style.tabSize="4",z(e).append(t),pe().switchMap(()=>ye(e).raf(()=>{let r=e.childNodes[0]?.textContent?.trim()||"";r&&e.formatter&&(r=e.formatter(r)),t.innerHTML=r}))}]});var qt=class extends f{};d(qt,{tagName:"doc-grd",augment:[x(`:host {
|
|
558
388
|
padding: 8px 16px;
|
|
559
389
|
display: grid;
|
|
560
390
|
gap: 16px 12px;
|
|
561
391
|
}
|
|
562
|
-
${
|
|
563
|
-
${
|
|
564
|
-
${
|
|
565
|
-
`),
|
|
566
|
-
`&&n++,h++;return h}function g(m,y=0,h=r){return r+=y,new Vt(m,{start:h,end:r,line:a,source:e})}function f(){for(let m=e[r];r<t;m=e[++r])if(m===`
|
|
567
|
-
`)n++;else if(m!=="\r"&&m!==" "&&m!==" ")break;a=n}function w(m){r=m.end,n=a=m.line}function c(m,y=0){for(;r+y<t&&m.test(e.charAt(r+y));)y++;return y}function E(m,y){let h=qo(...m);return(k=0)=>{let p=e[r+k],A=h;for(;A=A[p];)if(k++,p=e[r+k],A[Ur]&&y(p))return o(A[Ur],k)}}return{createTrieMatcher:E,tk:o,matchWhile:i,matchUntil:s,matchString:l,matchEnclosed:S,matchWhileRegex:c,error:g,skip:(m=1)=>r+=m,skipWhitespace:f,backtrack:w,eof:(m=0)=>r+m>=t,current:(m=0)=>e.charAt(r+m)}}var pe=e=>e===`
|
|
568
|
-
`,re=e=>e===" "||e===" ",Rn=e=>re(e)||pe(e),Wr=e=>e>="a"&&e<="z"||e>="A"&&e<="Z",Wo=e=>Wr(e)||e==="-",Yo=e=>Wr(e)||e==="-"||e==="+",Vo=e=>e==="#",Go=e=>e!=="`"&&e!==`
|
|
569
|
-
`&&e!=="_"&&e!=="*"&&e!=="<"&&e!=="[",zn=e=>e>="0"&&e<="9",Zo=/\p{White_Space}/u,Wt=/\p{P}|\p{S}/u,Yt=e=>e===""||Zo.test(e);function ht(e,t=0){let r=t,a=e(n=>{let o=n===" "?4-r%4:n===" "?1:0;return r+=o,!!o},t);return r-=t,{indent:r,textStart:a}}function On(e,t,r,a,n,o){let s=a,i=0,l=0,S=0,g=0,f=0,w;for(;w=e.current(a);){w===`
|
|
570
|
-
`?(l=S=0,g++,f=a):S||(w===" "?l++:w===" "?l+=4:S=1),a++;let c=0,E=e.matchWhile(m=>m===t,a);if(n?E-a===r?c=E:a=E:E-a>=r&&(c=e.matchWhile(re,E)),c&&o(c,l,g)){i=a,a=c;break}}return{consumed:a,blockEnd:i,blockStart:s,lineStart:f,lineCount:g}}var Qo=/^(address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)$/i,Fn=/pre|script|style|textarea/i;function Bn(e){let{matchWhile:t,current:r,eof:a,matchString:n,matchUntil:o}=e;function s(w){let c="",E=w,m;for(;(m=r(E))&&Wo(m);)c+=m,E++;return{tagNameEnd:E,tagName:c}}function i(w,c=!1){let E=r(w),m=E==="/";m&&(E=r(w++));let{tagNameEnd:y,tagName:h}=s(w);if(!h)return;let k=Qo.test(h),p=t(re,y);if(r(p)===">")return{tagName:h,tagEnd:p+1,isClosingTag:m,isRule6:k};if(m)return;let A="",P=t(H=>{let d=H!==">"&&(c&&!k?H!==`
|
|
571
|
-
`:!(H===`
|
|
572
|
-
`&&A===`
|
|
573
|
-
`));return A=H,d},y+1);return c&&a(P)?{tagName:h,tagEnd:P-1,isClosingTag:m,isRule6:k}:r(P++)===">"?{tagName:h,tagEnd:P,isClosingTag:m,isRule6:k}:0}function l(w,c,E=!0){for(;!a(w++);){let m=n(c,void 0,w);if(m)return E?o(pe,w):m}return 0}function S(w){if(r(w)==="!")return r(w+1)==="-"&&r(w+2)==="-"?l(w,"-->",!1):l(w+1,">",!1);if(r(w)==="?")return l(w+1,"?>",!1);let c=i(w);return c?c.tagEnd:0}function g(w){let c=t(re,w);return r(c)===`
|
|
574
|
-
`||r(c)===""}function f(w,c=!1){if(r(w)==="!")return r(w+1)==="-"&&r(w+2)==="-"?l(w+3,"-->"):l(w+1,">");if(r(w)==="?")return l(w+1,"?>");let E=i(w,c);if(!E)return 0;let{tagName:m,tagEnd:y,isClosingTag:h}=E;if(a(y))return y;if(!E.isRule6){if(Fn.test(m)){if(h)return 0;let p="</",A=y;for(;!a(A++);)if(n(p,void 0,A)){let P=i(A+1);if(P&&Fn.test(P.tagName))return o(pe,P.tagEnd)}return A-2}else if(!g(y))return 0}let k=y;do if(r(k)===`
|
|
575
|
-
`&&(r(k+1)===`
|
|
576
|
-
`||r(k+1)===""))return k;while(!a(k++));return 0}return{matchHtml:f,matchInline:S}}function _r({matchEnclosed:e,current:t,matchWhile:r},a,n,o){let s=t(n)==="<"?e(c=>c!==">"&&c!==`
|
|
577
|
-
`,a,n+1)+1:e(c=>(!o||c!==")")&&c!==" "&&c!==" "&&c!==`
|
|
578
|
-
`,a,n);if(!o&&s===n)return;let{consumed:i,eol:l}=jn(r,(o?1:0)+s);if(i===s&&!pe(t(i)))return;let S=t(i),g,f;if(S==='"'||S==="'"){f=i;let c;if(g=e(E=>{let m=E!==S&&!(E===`
|
|
579
|
-
`&&c===`
|
|
580
|
-
`);return c=E,m},a,f+1),t(g++)!==S)return}let w=g===void 0?s:g;if(!o){let c=r(re,w);if(t(c)!==`
|
|
581
|
-
`&&t(c)!=="")return l?{linkEnd:s,linkStart:n}:void 0}if(!o||t(w)===")")return{titleEnd:g,titleStart:f,linkEnd:s,linkStart:n}}function Jo(e){let t=Pn({source:e}),{current:r,tk:a,matchWhile:n,backtrack:o,eof:s,matchEnclosed:i,matchUntil:l,skip:S}=t,{matchInline:g}=Bn(t),f=c=>r(c)!==`
|
|
582
|
-
`&&r(c-1)==="\\"&&r(c-2)!=="\\";function w(){if(s())return a("eof",0);let c=r();switch(c){case"\\":if(r(1)===`
|
|
583
|
-
`)return a("br",2);break;case"`":{let p=n($=>$===c),A=p,{consumed:P,blockEnd:H,blockStart:d}=On(t,c,A,p,!0,()=>!0);return H?{...a("code",P),blockEnd:H,blockStart:d}:a("text",p+A)}case"_":case"*":return(r(1)===c?2:1)==1?a("em",1):a("strong",2);case"<":{let p=n(Yo,1),A=r(p);if(p-1>1&&A===":"||A==="@"){let H=n(d=>d!==">"&&d!==" "&&d!=="<",p+1);if(r(H)===">")return{...a("autolink",H+1),type:A}}let P=g(1);return P?a("html",P):a("text",p)}case"!":{if(r(1)==="["){let p=i(A=>A!=="]",f,1);if(r(p)==="]"){let A=r(p+1)==="("?_r(t,f,p+2,!0):void 0;return A?{...a("img",(A.titleEnd??A.linkEnd)+1),linkTextEnd:p,linkTextStart:2,...A}:{...a("img",p+1),linkTextEnd:p,linkTextStart:2,linkStart:0,titleEnd:0,titleStart:0,linkEnd:0}}}return a("text",1)}case"[":{let p=i(A=>A!=="]",f,1);if(r(p)==="]")if(r(p+1)==="("){let A=_r(t,f,p+2,!0);if(A)return{...a("a",(A.titleEnd??A.linkEnd)+1),linkTextEnd:p,linkTextStart:1,...A}}else return{...a("a",p+1),linkTextEnd:p,linkTextStart:1,linkStart:0,titleEnd:0,titleStart:0,linkEnd:0};return a("text",1)}}let{indent:E,textStart:m}=ht(n);if(c=r(m),m>=2&&c===`
|
|
584
|
-
`)return a("br",m+1);if(E>=4&&c!==`
|
|
585
|
-
`&&c!=="")return{...a("tabsBlock",l(pe,m)),textStart:m,indent:E};let y=i(Go,f,(c===`
|
|
586
|
-
`?1:0)+m),h=r(y),k=y;if(h===`
|
|
587
|
-
`&&r(y-1)==="\\"&&(y-=1,k--),h===`
|
|
588
|
-
`||h===""){for(;y>m&&re(r(y-1));)y--;let p=a("text",y);return(h===""||k-y===1||r(k)==="\\")&&S(k-y),p}return a("text",y)}return{next:w,backtrack:o}}function jn(e,t){let r=0,a=0,n=e(o=>re(o)?(a++,!0):o===`
|
|
589
|
-
`&&r++<1,t);return{spaces:a,consumed:n,eol:r}}function Un(e){let t=Pn({source:e}),{current:r,tk:a,matchWhile:n,backtrack:o,eof:s,matchUntil:i,matchEnclosed:l}=t,{matchHtml:S}=Bn(t),g=c=>r(c)!==`
|
|
590
|
-
`&&r(c-1)==="\\"&&r(c-2)!=="\\";function f(c,E=1){let m=n(re,E),y=1,h=m;for(;h=n(re,h),r(h)===c;)y++,h++;let k=n(re,h);if(y>=3&&(pe(r(k))||r(k)===""))return k}function w(){if(s())return a("eof",0);let{textStart:c,indent:E}=ht(n),m=r(c);if(m===`
|
|
591
|
-
`){let h=0,k=n(p=>p===`
|
|
592
|
-
`?(h++,!0):re(p),c);for(;r(k)!==`
|
|
593
|
-
`;)k--;return{...a("eol",k+1),count:h}}if(E<4&&(m==="`"||m==="~")){let h=n(p=>p===m,c),k=h-c;if(k>=3){let p,A=!1,P=0,H=h;do{if(p=On(t,m,k,H,!1,(d,$)=>(r(d)===`
|
|
594
|
-
`||r(d)==="")&&$<4),H=p.consumed,A||(P=p.blockStart),s(H))break;A=!0}while(!p.lineCount);if(p.lineCount&&!(s(H)&&A)){let{consumed:d,lineStart:$,blockEnd:b}=p;return{...a("block",d),blockEnd:b?$+1:d,blockStart:P,indent:E}}}}if(E>=4)return{...a("tabsBlock",i(pe,c)),textStart:c,indent:E,textIndent:E,blockIndent:E-4,blockStart:c};if(zn(m)){let h=n(zn,c+1),k=r(h);if(h-c<10&&(k==="."||k===")")&&Rn(r(h+1))){let{indent:p,textStart:A}=ht(n,h+1),P=h-c+1,H=i(pe,A),d=E+P+1,$=E+P+p;return r(A)===`
|
|
595
|
-
`&&($++,d++),{...a("ol",H),indent:E,textStart:A,blockStart:c,markerStart:c,dot:k,markerEnd:h,blockIndent:$-d>=4?d:$,textIndent:$}}}if(m==="*"||m==="-"||m==="_"){let h=f(m);if(h)return{...a("hr",h),indent:E,textStart:c}}if((m==="-"||m==="*"||m==="+")&&Rn(r(c+1))){let h=m,{indent:k,textStart:p}=ht(n,c+1),A=c,P=E+1+k,H=E+2;r(p)===`
|
|
596
|
-
`&&(P=2,H=2);let d=i(pe,p);return{...a("li",d),indent:E,blockStart:A,textStart:p,bullet:h,textIndent:P,blockIndent:P-H>=4?H:P}}if(m==="#"){let h=n(Vo,c+1),k=n(re,h);if(k>h||r(h)===`
|
|
597
|
-
`){let p=h-c;if(p<=6){let A=i(pe,k),P=A;for(;re(r(P-1));)P--;let H=P;for(;r(P-1)==="#";)P--;if(!re(r(P-1)))P=H;else for(;re(r(P-2));)P--;return{...a("heading",A),level:p,textStart:k,textEnd:P,textIndent:0}}}}if(m==="["){let h=l(k=>k!=="]",g,c+1);if(r(h)==="]"&&r(h+1)===":"){let{consumed:k}=jn(n,h+2),p=_r(t,g,k);if(p)return{...a("linkdef",p.titleEnd??p.linkEnd),...p,linkTextStart:c+1,linkTextEnd:h}}}if(m===">"){let{textStart:h,indent:k}=ht(n,c+1),p=c+1===h?0:1,A=E+2+k-p;return{...a("blockquote",i(pe,c+1)),indent:E,textStart:h,textIndent:A,blockIndent:E+1+p}}if(m==="<"){let h=n(Wr,c+1);if(r(h)!==":"){let k=S(c+1,!0);if(k)return a("html",k)}}let y=i(pe);if(r(y)===`
|
|
598
|
-
`){let h=n(re,y+1),k=r(h);if(h-y-1<4&&(k==="="||k==="-")){let p=n(P=>P===k,h+1),A=n(re,p);if(r(A)===`
|
|
599
|
-
`)return{...a("setext",A),level:k==="="?1:2,length:A-h,textStart:c,textEnd:y}}}return{...a("text",y),indent:E,textIndent:E,textStart:c,blockStart:0,blockIndent:0}}return{next:w,backtrack:o}}function Je(e){return e.replace(/\\([\\!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~])/g,"$1")}function qr(e,t){let r=G(e),a=Je(r.slice(e.linkTextStart,e.linkTextEnd));if(!e.linkEnd&&t){let o=t[a.toLowerCase()];return o?{...o,text:a}:void 0}let n=Je(r.slice(e.linkStart,e.linkEnd));return n.startsWith("<")&&n.endsWith(">")&&(n=n.slice(1,-1)),{title:e.titleStart!==void 0&&e.titleEnd!==void 0?Je(r.slice(e.titleStart+1,e.titleEnd-1)):void 0,href:n,text:a}}function Xo(e,t){let{current:r,parseWhile:a,next:n,backtrack:o}=e,s=0;function i(g,f){let w=g.source.charAt(g.end),c=g.source.charAt(g.start-1),E=Yt(w),m=Wt.test(w),y=Yt(c),h=Wt.test(c),k=!E&&(!m||y||h);return f==="_"?k&&(!(!y&&(!h||E||m))||h):k}function l(g,f){let w=g.source.charAt(g.end),c=g.source.charAt(g.start-1),E=Yt(w),m=Wt.test(w),y=Yt(c),h=Wt.test(c),k=!E&&(!m||y||h),p=!y&&(!h||E||m);return f==="_"?p&&(!k||m):p}function S(){let g=r();switch(s++,g.kind){case"code":{let f=G(g).slice(g.blockStart,g.blockEnd).replace(/\n/g," "),w=f.length>2&&f.startsWith(" ")&&f.endsWith(" ")?f.slice(1,-1):f;return n(),{...g,kind:"code",value:w}}case"em":case"strong":{let f=g.source.charAt(g.start);if(i(g,f)){let w=!1;n();let c=a(()=>{let E=r();if(E.kind===g.kind&&E.source.charAt(E.start)===f&&l(E,f)){w=!0;return}return S()});if(w&&c.length)return n(),{...g,children:c}}return o(g),n(),{...g,kind:"text",value:G(g)}}case"text":{let f=Je(G(g)),w={...g,value:s===1?f.trimStart():f},c=n();for(;c.kind==="text";)w.value+=Je(G(c)),w.end=c.end,c=n();return w}case"tabsBlock":{let f=g.indent-4;return n(),{...g,kind:"block",value:" ".repeat(f)+G(g).slice(g.textStart)+`
|
|
600
|
-
`}}case"br":return n(),g;case"autolink":{let f=G(g).slice(1,-1),w=(g.type==="@"?"mailto:":"")+f;return n(),{...g,kind:"a",href:w,text:f}}case"img":{let f=qr(g,t);return n(),f?{...g,kind:"img",...f}:{...g,kind:"text",value:G(g)}}case"a":{let f=qr(g,t);return n(),f?{...g,kind:"a",...f}:{...g,kind:"text",value:G(g)}}case"html":return n(),{...g,block:!1}}}return a(S)}function Hn(e,t=!1,r=[],a={}){function n(){let d=Hr(Jo);for(let $ of r)d.start($.value),$.children=Xo(d,a)}function o(d,$=0,b="",D){let x={...d,start:d.start+$,kind:"text",value:b+G(d).slice($,D)};return r.push(x),x}function s(d,$=o(d)){let b;for(;$;){let D=p();if(D.kind==="eol"&&D.count===1){let x=p();if(x.kind==="ol"){if((+x.source.slice(x.start+x.markerStart,x.start+x.markerEnd)).toString()!=="1"||x.textStart+x.start-x.end===0){$.value+=`
|
|
601
|
-
`+G(x);continue}}else if(x.kind==="li"&&G(x).length===1){$.value+=`
|
|
602
|
-
`+G(x);continue}else if(x.kind==="setext"){if(t)if(d.kind==="text")p(),$.value+=`
|
|
603
|
-
`+x.source.slice(x.start+x.textStart,x.start+x.textEnd),$.value?($.value=$.value.replace(/^\s*([^\n]+?)\s*$/gm,"$1"),b={...x,start:$.start,kind:"heading",children:[$]}):$.value+=G(x);else if(x.level===1)$.value+=`
|
|
604
|
-
`+G(x);else break;else{p(),$.value+=`
|
|
605
|
-
`+G(x);continue}continue}else if(x.kind==="text"){x.start=D.start,$.value+=G(x).replace(/^[\t ]*([^\n]+?)$/gm,"$1");continue}else if(x.kind==="tabsBlock"){$.value+=`
|
|
606
|
-
`+G(x).slice(x.textStart);continue}else if(x.kind==="linkdef"){$.value+=`
|
|
607
|
-
`+G(x);continue}}A(D);break}return b||{...d,kind:"p",children:[$]}}function i(d){let $=y();if(!($.kind!=="li"||$.bullet!==d))return E($,!0)}function l(d){let $=d.bullet,b=k(()=>i($)),D=!!b.find((x,O)=>{if(x.pCount===2||x.pCount===1&&b.length-1!==O)return!0});return{...d,kind:"ul",children:b,loose:D}}function S(d){let $,b,D=k(()=>{let O=y();if(O.kind!=="ol")return;let Q=O.dot;if($??=Q,Q!==$)return;let u=(+O.source.slice(O.start+O.markerStart,O.start+O.markerEnd)).toString();return b??=u,E({...O,kind:"li",bullet:Q,bulletOrder:u},!0)}),x=!!D.find((O,Q)=>{if(O.pCount===2||O.pCount===1&&D.length-1!==Q)return!0});return{...d,kind:"ol",children:D,loose:x,listStart:b}}function g(d,$){d.value=d.value.replace(/^\t+/gm,b=>" ".repeat(b.length)).replace(new RegExp(`^[ ]{1,${$}}`,"gm"),"")}function f(d,$=4){let b={...d,kind:"block",value:G(d)},D=y();for(;D.kind==="eol";){let x=p();if(x.kind==="li"&&x.indent>=4){let O=G(D);x.indent<$&&($=x.indent),b.value+=O+G(x).slice(x.blockStart),b.end=x.end,D=p()}else if(x.kind==="tabsBlock"){let O=G(D);x.indent<$&&($=x.indent),b.value+=O+G(x),b.end=x.end,D=p()}else{b.value+=`
|
|
608
|
-
`;break}}return g(b,$),b}function w(d,{source:$,start:b,textStart:D,end:x},O){return" ".repeat(d)+$.slice(b+(O??D),x)}function c(d,$){return $.kind==="li"||$.kind==="ol"?$.indent>=d.blockIndent:$.textIndent>=d.blockIndent}function E(d,$=!1){let b=[" ".repeat(d.textIndent-d.blockIndent)+d.source.slice(d.start+d.textStart,d.end)],D=0;for(;d;){let Q=p();if(Q.kind!=="eol")break;if(Q.count===1){let u=p();if(b.push(`
|
|
609
|
-
`),u.kind==="blockquote")d.end=u.end,b.push(w(u.textIndent-u.blockIndent,u));else if(u.kind==="tabsBlock"||u.kind==="li"||u.kind==="ol")if(u.kind==="tabsBlock"||c(d,u))d.end=u.end,b.push(w(Math.max(u.indent-d.blockIndent,0),u,u.blockStart));else{A(u);break}else if(u.kind==="hr")if(u.indent>=d.blockIndent)d.end=u.end,b.push(" ".repeat(u.indent-d.blockIndent)+u.source.slice(u.start+u.textStart,u.end));else{A(u);break}else if(u.kind==="text"||u.kind==="setext"&&u.level===1)d.end=u.end,b.push(G(u));else{A(u);break}}else if($){let u=p();if(D=1,d.end-d.start>1&&(u.kind==="tabsBlock"||u.kind==="li"||u.kind==="ol"||u.kind==="text"))if(c(d,u))d.end=u.end,b.push(G(Q),w(Math.max(u.indent-d.blockIndent,0),u,u.blockStart));else{A(u);break}else{A(u);break}}else{b.push(`
|
|
610
|
-
`);break}}let x=Hr(Un);x.start(b.join(""));let O=Hn(x,!1,r,a);return{...d,children:O.children,pCount:O.pCount===2?2:D}}function m(){let d=y();switch(d.kind){case"heading":{let $={...d,children:[o(d,d.textStart,"",d.textEnd)]};return p(),$}case"block":{let $=G(d).slice(d.blockStart,d.blockEnd),b=/^(.+)/.exec($),D=b?.[1],x=$.slice((b?.[0].length??0)+1);return x&&!x.endsWith(`
|
|
611
|
-
`)&&(x+=`
|
|
612
|
-
`),d.indent&&(x=x.replace(new RegExp(`^\\s{1,${d.indent}}`,"gm"),"")),p(),{...d,kind:"block",info:D,value:x}}case"blockquote":return E(d);case"tabsBlock":return p(),f(d);case"html":return p(),{...d,block:!0};case"li":return l(d);case"ol":return S(d);case"hr":return p(),d;case"linkdef":{let $=qr(d);return $&&(a[$.text.toLowerCase()]??=$),p(),m()}case"eol":return d.count>1&&(P=2),p(),{...d,kind:"text",value:""};case"setext":return p(),{...d,kind:"heading",children:[o(d,d.textStart,"",d.textEnd)]};case"eof":return}return s(d)}let{current:y,node:h,parseWhile:k,next:p,backtrack:A}=e,P=0,H={...h("root"),children:k(m),linkDefinitions:a,pCount:P};return t&&n(),H}function He(e,t){let r=e.map(Yr).join("");return t?`<${t}>${r}</${t}>`:r}function $e(e){return e.replace(/[&<>"]/g,t=>{switch(t){case"&":return"&";case"<":return"<";case">":return">"}return"""})}function Ln(e){let t=[];for(let r of e.children){if(r.kind!=="li")break;if(e.loose)t.push(He(r.children,r.kind));else{let a=r.children.map(n=>n.kind==="p"?He(n.children):Yr(n)).join("");t.push(`<${r.kind}>${a}</${r.kind}>`)}}return t.join("")}function Yr(e){switch(e.kind){case"root":{let t=He(e.children);return t?t+`
|
|
613
|
-
`:""}case"hr":return`<${e.kind} />`;case"br":return`<${e.kind} />
|
|
614
|
-
`;case"code":return`<code>${$e(e.value)}</code>`;case"img":{let t=e.title?` title="${$e(e.title)}"`:"";return`<img src="${encodeURI($e(e.href))}" alt="${$e(e.text)}"${t} />`}case"a":{let t=e.title?` title="${$e(e.title)}"`:"";return`<a href="${encodeURI($e(e.href))}"${t}>${$e(e.text)}</a>`}case"ol":{let t=e.listStart;return`<ol${t&&t!=="1"?` start="${t}"`:""}>${Ln(e)}</ol>`}case"blockquote":return`<blockquote>${He(e.children)||`
|
|
615
|
-
`}</blockquote>`;case"em":case"strong":case"p":return He(e.children,e.kind);case"ul":return`<ul>${Ln(e)}</ul>`;case"heading":return He(e.children,`h${e.level}`);case"block":{let t=e.info&&/\s*([^\s]+)/.exec(e.info);return`<pre><code${t?` class="language-${Je(t[1])}"`:""}>${$e(e.value)}</code></pre>`}case"text":return e.children?He(e.children):$e(e.value);case"html":return G(e)+(e.block&&e.end<e.source.length-1?`
|
|
616
|
-
`:"")}return""}function Ko(){let e=Hr(Un);function t(a){return e.start(a),{root:Hn(e,!0),errors:e.errors}}function r(a){let n=t(a);return{output:Yr(n.root),ast:n.root,errors:n.errors}}return{compile:r,parse:t}}function _n(e){return Ko().compile(e).output}var I;(function(e){e[e.Unknown=0]="Unknown",e[e.Variable=1]="Variable",e[e.TypeAlias=2]="TypeAlias",e[e.TypeParameter=3]="TypeParameter",e[e.Interface=4]="Interface",e[e.TypeUnion=5]="TypeUnion",e[e.Reference=6]="Reference",e[e.Module=7]="Module",e[e.Class=8]="Class",e[e.Parameter=9]="Parameter",e[e.Property=10]="Property",e[e.Method=11]="Method",e[e.Getter=12]="Getter",e[e.Setter=13]="Setter",e[e.Constructor=14]="Constructor",e[e.Array=15]="Array",e[e.Function=16]="Function",e[e.FunctionType=17]="FunctionType",e[e.ConditionalType=18]="ConditionalType",e[e.Parenthesized=19]="Parenthesized",e[e.Infer=20]="Infer",e[e.IndexedType=21]="IndexedType",e[e.Enum=22]="Enum",e[e.Literal=23]="Literal",e[e.IndexSignature=24]="IndexSignature",e[e.Export=25]="Export",e[e.Keyof=26]="Keyof",e[e.Typeof=27]="Typeof",e[e.ConstructorType=28]="ConstructorType",e[e.Tuple=29]="Tuple",e[e.ThisType=30]="ThisType",e[e.Constant=31]="Constant",e[e.BaseType=32]="BaseType",e[e.ClassType=33]="ClassType",e[e.ObjectType=34]="ObjectType",e[e.Component=35]="Component",e[e.Attribute=36]="Attribute",e[e.Namespace=37]="Namespace",e[e.CallSignature=38]="CallSignature",e[e.ConstructSignature=39]="ConstructSignature",e[e.MappedType=40]="MappedType",e[e.TypeIntersection=41]="TypeIntersection",e[e.ReadonlyKeyword=42]="ReadonlyKeyword",e[e.UnknownType=43]="UnknownType",e[e.Event=44]="Event",e[e.Spread=45]="Spread",e[e.ImportType=46]="ImportType",e[e.Symbol=47]="Symbol"})(I||(I={}));var ne;(function(e){e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Abstract=128]="Abstract",e[e.Async=256]="Async",e[e.Default=512]="Default",e[e.Deprecated=8192]="Deprecated",e[e.Overload=16384]="Overload",e[e.External=32768]="External",e[e.DefaultLibrary=65536]="DefaultLibrary",e[e.DeclarationMerge=131072]="DeclarationMerge",e[e.Rest=262144]="Rest",e[e.Optional=524288]="Optional",e[e.Internal=1048576]="Internal"})(ne||(ne={}));var gt=class extends T{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}`}};v(gt,{tagName:"doc-demo",init:[R("view"),R("libraries"),R("header")],augment:[N(`
|
|
392
|
+
${Ae("small",":host{grid-template-columns:repeat(2, minmax(0px,1fr))}")}
|
|
393
|
+
${Ae("medium",":host{grid-template-columns:repeat(3, minmax(0px,1fr))}")}
|
|
394
|
+
${Ae("large",":host{grid-template-columns:repeat(4, minmax(0px,1fr))}")}
|
|
395
|
+
`),N]});var Me=class extends f{summary;selected};d(Me,{tagName:"doc-nav-list",init:[U("summary"),U("selected")],augment:[e=>jt({source:b(e,"summary").map(t=>t?.index),render:t=>m(Ye,{$:r=>W(r).tap(()=>e.selected=t.value.name),size:-2},t.value.name,t.value.docs?.beta?m(Qe,{size:-2},"beta"):void 0)})(e)]});var u;(function(e){e[e.Unknown=0]="Unknown",e[e.Variable=1]="Variable",e[e.TypeAlias=2]="TypeAlias",e[e.TypeParameter=3]="TypeParameter",e[e.Interface=4]="Interface",e[e.TypeUnion=5]="TypeUnion",e[e.Reference=6]="Reference",e[e.Module=7]="Module",e[e.Class=8]="Class",e[e.Parameter=9]="Parameter",e[e.Property=10]="Property",e[e.Method=11]="Method",e[e.Getter=12]="Getter",e[e.Setter=13]="Setter",e[e.Constructor=14]="Constructor",e[e.Array=15]="Array",e[e.Function=16]="Function",e[e.FunctionType=17]="FunctionType",e[e.ConditionalType=18]="ConditionalType",e[e.Parenthesized=19]="Parenthesized",e[e.Infer=20]="Infer",e[e.IndexedType=21]="IndexedType",e[e.Enum=22]="Enum",e[e.Literal=23]="Literal",e[e.IndexSignature=24]="IndexSignature",e[e.Export=25]="Export",e[e.Keyof=26]="Keyof",e[e.Typeof=27]="Typeof",e[e.ConstructorType=28]="ConstructorType",e[e.Tuple=29]="Tuple",e[e.ThisType=30]="ThisType",e[e.Constant=31]="Constant",e[e.BaseType=32]="BaseType",e[e.ClassType=33]="ClassType",e[e.ObjectType=34]="ObjectType",e[e.Component=35]="Component",e[e.Attribute=36]="Attribute",e[e.Namespace=37]="Namespace",e[e.CallSignature=38]="CallSignature",e[e.ConstructSignature=39]="ConstructSignature",e[e.MappedType=40]="MappedType",e[e.TypeIntersection=41]="TypeIntersection",e[e.ReadonlyKeyword=42]="ReadonlyKeyword",e[e.UnknownType=43]="UnknownType",e[e.Event=44]="Event",e[e.Spread=45]="Spread",e[e.ImportType=46]="ImportType",e[e.Symbol=47]="Symbol"})(u||(u={}));var R;(function(e){e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Abstract=128]="Abstract",e[e.Async=256]="Async",e[e.Default=512]="Default",e[e.Deprecated=8192]="Deprecated",e[e.Overload=16384]="Overload",e[e.External=32768]="External",e[e.DefaultLibrary=65536]="DefaultLibrary",e[e.DeclarationMerge=131072]="DeclarationMerge",e[e.Rest=262144]="Rest",e[e.Optional=524288]="Optional",e[e.Internal=1048576]="Internal"})(R||(R={}));var Ie=class extends f{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}`}};d(Ie,{tagName:"doc-demo",init:[y("view"),y("libraries"),y("header")],augment:[x(`
|
|
617
396
|
:host {
|
|
618
397
|
display: flex;
|
|
619
398
|
flex-direction: column;
|
|
@@ -671,5 +450,5 @@ ${le("large",":host{grid-template-columns:repeat(4, minmax(0px,1fr))}")}
|
|
|
671
450
|
align-items: center;
|
|
672
451
|
display: flex;
|
|
673
452
|
}
|
|
674
|
-
`),e=>{let t=
|
|
675
|
-
background-color:var(--cxl-color-background)}</style>`,
|
|
453
|
+
`),e=>{let t=b(e,"view"),r=te("container"),a=m(Je,{className:r}),n=m(Se,{$:h=>J(h).tap(()=>{e.formatter?h.innerHTML=e.formatter(c):h.innerText=c}),className:t.map(h=>h==="source"?"source visible hljs":"source")}),s=m(Xe,{$:h=>W(h).tap(()=>e.view="source"),className:b(e,"view").map(h=>h==="source"?"hide":""),title:"See source"},m(fe,{name:"code"}),"Code"),o=m(oe,{$:h=>W(h).tap(()=>e.view="mobile"),height:20,className:b(e,"view").map(h=>h==="source"?"":"hide"),icon:"close",title:"Close source"}),i=m("div",{id:"toolbar"},m("slot",{name:"toolbar"}),m(oe,{$:h=>W(h).tap(async()=>{await navigator.clipboard.writeText(c),h.icon="done",setTimeout(()=>h.icon="content_copy",2e3)}),height:20,icon:"content_copy",title:"Copy source to clipboard",className:t.map(h=>h==="source"?"icon":"icon hide")}),s,o),c;function w(h){let Q=h==="desktop";r.next(Q?"container":"container cmobile")}function L(){let h=e.childNodes[0]?.textContent?.trim()||"";if(!h)return;let Q=e.libraries?e.libraries.split(",").map(M=>`<script type="module" src="${e.getLibraryUrl(M)}"><\/script>`).join(""):"";a.srcdoc=`${e.header}${Q}${h}`,c=h}return z(e).append(i,m(Se,{className:t.map(h=>h==="source"?"parent":`parent visible ${h}`)},a),n),g(b(e,"view").tap(w),J(e).switchMap(()=>ye(e).raf(L)))}]});function ea(e){let t=e.index;function r(i){if(!(!i||typeof i=="string")&&typeof i=="number")return t.find(c=>c.id===i)}function a(i){if(!(!i||typeof i=="string")){if(typeof i=="number"){let c=t.find(w=>w.id===i);return c&&(c.kind===u.Interface||c.kind===u.Class)?c:c?a(c.resolvedType??c.type):void 0}return i.kind===u.Reference?r(i.type):i.resolvedType&&typeof i.resolvedType!="string"?i.resolvedType:i}}function n(i,c){if(i.children){for(let w of i.children)!w.name||w.flags&&w.flags&R.Abstract||(c[w.name]??=w);return c}}function s(i,c={}){n(i,c);let w=a(i.type);if(w?.children)for(let L of w.children){let h=a(L);if(!h||h.kind!==u.Component||h.name==="Component")break;s(h,c)}return c}function o(i){return i.kind===u.FunctionType||i.kind===u.Function||i.kind===u.Method||i.kind===u.Setter}return{getNodeProperties:s,getTypeSummary:a,isFunction:o,getRef:r,json:e}}var Ya={[u.Constant]:"Constants",[u.Variable]:"Variables",[u.Interface]:"Interfaces",[u.Class]:"Classes",[u.Property]:"Properties",[u.Method]:"Methods",[u.Getter]:"Getters",[u.Setter]:"Setters",[u.Constructor]:"Constructor",[u.Function]:"Functions",[u.Enum]:"Enums",[u.Component]:"Components",[u.Attribute]:"Attributes",[u.TypeAlias]:"Type Alias",[u.CallSignature]:"Call Signature",[u.ConstructSignature]:"Construct Signature",[u.Event]:"Events",[u.IndexSignature]:"Index Signature",[u.Export]:"Exports",[u.Namespace]:"Namespaces"};function ta(e){return typeof e=="string"?e:e.map(t=>t.value).join(" ")}function Ga(e){return e.name?`docs/ui-${e.name}`:void 0}function Wa(e){let t=Ga(e),r=e.name??"?";return t?m("a",{href:t},r):r}function ra({summary:e,summaryJson:t,link:r=Wa,uiCdn:a,importmap:n,codeHighlight:s}){let{getTypeSummary:o,getRef:i,isFunction:c}=ea(t),w=t.index;function L(l){if(l)return typeof l=="string"?l:o(l)??(typeof l=="number"?void 0:l.name)}function h(l){return l?"<"+l.map(p=>M(p)+(p.kind!==u.Reference&&p.type?` extends ${M(p.type)}`:"")).join(", ")+">":""}function Q(l){return["{ ",...l.children?.map(ze).flatMap(tt("; "))??[]," }"]}function M(l){let p=L(l);if(!p||typeof p=="string")return[p||"?"];switch(p.kind){case u.TypeUnion:return p.children?.map(M).flatMap(tt(" | "))??[];case u.Literal:case u.BaseType:return[p.name??"?"];case u.ObjectType:return Q(p)??["?"];case u.Array:return[...M(p.type),"[]"];case u.Interface:case u.Class:case u.Component:{let k=p.typeP?h(p.typeP):void 0;return[r(p),k]}case u.FunctionType:return ze(p);case u.ClassType:{let k=i(l);return[k?r(k):p.name??"?"]}case u.IndexedType:return[...M(p.children?.[0]),"[",...M(p.children?.[1]),"]"];default:console.log(p)}return[]}function he(l){let p=l.flags??0;return[`${`${p&R.Public?"public ":p&R.Private?"private":p&R.Protected?"protected ":""}${p&R.Rest?"...":""}${l.name}${p&R.Optional?"?":""}`}: `,...M(l.type)]}function De(l){return["(",...l?.map(he).flatMap(tt(", "))??[],")"]}function se(l){let p=l.flags??0,k=l.kind===u.Getter?"get ":l.kind===u.Setter?"set ":void 0;return[p&R.Static?"static ":"",p&R.Readonly?"readonly ":"",p&R.Abstract?"abstract ":"",k]}function et(l){return["[",...l.parameters?.flatMap(ze)??[]??[],"]: ",...l.type?M(l.type)??[]:["?"]]}function tt(l){return(p,k)=>k!==0?[...l,...p]:p}function ze(l){if(l.kind===u.IndexSignature)return et(l);if(l.kind===u.Spread&&l.children?.[0])return["...",...M(l.children[0])];let p=l.flags&&l.flags&R.Optional,k=c(l)?De(l.parameters):[],S=l.kind===u.FunctionType;return[...se(l),l.name,p?"?":"",...k,S?" => ":": ",...M(l.resolvedType??l.type)]}function aa(l){return[m("h3",{},m(G,{font:"title-large"},...ze(l))),...Gt(l)]}function Yt(l,p){if(!l.children)return[];let k={};for(let S of l.children)S.kind!==u.Constructor&&S.kind!==u.Unknown&&(S.flags||0)&R.Public&&!p?.(S)&&(k[S.kind]??={name:Ya[S.kind],nodes:[]}).nodes.push(S);return Object.values(k).sort(kt("name")).flatMap(S=>[m("h2",{},S.name),...S.nodes.flatMap(aa)])}function na(l){let p;l=l.replace(/<caption>(.+?)<\/caption>/,(B,rt)=>(p=rt,""));let k=`<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);
|
|
454
|
+
background-color:var(--cxl-color-background)}</style>`,S=(n??"")+`<script type="module" src="${a}"><\/script>`,C=m(Ie,{header:k+S,formatter:s},l);return[p?m(G,{font:"title-medium"},p):void 0,C]}function oa(l){return w.find(p=>p.name===l)}function sa(l){let p=l.flatMap(k=>{let S=k.value,C=ta(S);if(typeof S=="string"){let B=oa(S);C=B?r(B):S}return[C,", "]});return p.pop(),m("p",{},"Related: ",p)}function ia({src:l}){let p=m("div");return p.textContent=l,p}function Gt(l){let p=l.docs;if(!p||!p.content)return[];let k=[],S=p.content.flatMap(C=>{let B=ta(C.value);return C.tag==="icon"||C.tag==="title"?[]:C.tag==="example"||C.tag==="demo"||C.tag==="demoonly"?na(B):C.tag==="see"?(k.push(C),[]):C.tag==="return"?[m(G,{font:"headline-small"},"Returns"),m("p",void 0,B)]:C.tag==="param"?[m("p",void 0,B)]:[C.tag?m("p",void 0,`${C.tag}: `,B):ia({src:B})]});return k.length&&S.push(sa(k)),S}function ca(l){let p=[],k=o(l);if(!(!k||k.kind!==u.ClassType))return k.children?.forEach(S=>{if(typeof S!="object")return;let C=o(S);C&&C.name!=="Component"&&p.push(r(C))}),m(G,{font:"headline-small"}," ",...p.length?["extends ",p]:[])}function Wt(l){let p=o(l.type),k=[];if(!p?.children)return[];for(let S of p.children){let C=o(S);if(!C||C.kind!==u.Component||C.name==="Component")break;let B=Yt(C,rt=>!!((rt.flags??0)&R.Abstract));B.length&&k.push(m("br"),m(G,{font:"h6"},"Inherited from ",r(C)),...B),k.push(...Wt(C))}return k}let Jt=e.kind===u.Component&&e.docs?.tagName;return m("div",{},m("h1",{},e.name," ",e.type&&ca(e.type)," ",Jt?m(G,{font:"title-medium"},`<${Jt}>`):""),...Gt(e),...Yt(e),...Wt(e))}var Fe=class extends f{name;summary;uicdn;importmap=""};d(Fe,{tagName:"doc-page",init:[U("name"),U("summary"),U("uicdn")],augment:[e=>ke(e).raf(()=>{if(e.replaceChildren(),!e.name||!e.summary)return;let t=e.name,r=e.summary.index.find(a=>a.name===t);r&&e.append(ra({summary:r,summaryJson:e.summary,uiCdn:e.uicdn??"",importmap:e.importmap}))})]});var Vt=class extends Ke{summary;sheetstart=!0};d(Vt,{tagName:"doc-root",augment:[e=>{let t=le();fetch("summary.json").then(a=>a.json()).then(a=>t.next(a));let r=m(Me,{slot:"start",summary:t});e.append(r,m(Fe,{summary:t,name:b(r,"selected")}))}]});export{Ut as BlogCode,Vt as ComponentList,Ht as DocAppbar,_t as DocCard,qt as DocGrid,Me as NavList,Fe as Page};
|