@shortfuse/materialdesignweb 0.7.5 → 0.7.6
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/components/Layout.js +5 -0
- package/components/ListOption.js +4 -0
- package/components/ListSelect.js +7 -3
- package/components/TextArea.js +7 -4
- package/dist/index.min.js +5 -5
- package/dist/index.min.js.map +2 -2
- package/dist/meta.json +1 -1
- package/package.json +1 -1
package/dist/index.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var vi=Object.defineProperty;var cr=(t,e,i)=>e in t?vi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var dr=(t,e)=>{for(var i in e)vi(t,i,{get:e[i],enumerable:!0})};var T=(t,e,i)=>(cr(t,typeof e!="symbol"?e+"":e,i),i),vt=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)};var w=(t,e,i)=>(vt(t,e,"read from private field"),i?i.call(t):e.get(t)),O=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},ee=(t,e,i,r)=>(vt(t,e,"write to private field"),r?r.call(t,i):e.set(t,i),i);var Fe=(t,e,i)=>(vt(t,e,"access private method"),i);function*yi(t){for(let e of t)if(e instanceof HTMLStyleElement){let i=new CSSStyleSheet;i.replaceSync(e.textContent),yield i}else if(e.ownerNode){let i=new CSSStyleSheet;i.replaceSync([...e.cssRules].map(r=>r.cssText).join("")),yield i}else yield e}var xi=new WeakMap;function*ki(t){for(let e of t)if(e instanceof HTMLStyleElement)yield e;else if(e.ownerNode instanceof HTMLStyleElement)yield e.ownerNode.cloneNode(!0);else{let i=xi.get(e);i||(i=document.createElement("style"),i.textContent=[...e.cssRules].map(r=>r.cssText).join(""),xi.set(e,i)),yield i.cloneNode(!0)}}var mr="_mdw-",Si=new Set;function Oe(){let t=Math.random().toString(36).slice(2,10);return Si.has(t)?Oe():(Si.add(t),t)}function Ze(t,e){if(t.id)return t.id;if(!e)return null;let i=mr+Oe();return t.id=i,i}function xt(t,e,i="clone"){if(t===e)return null;if(e==null||typeof e!="object")return e;if(t==null||typeof t!="object")return structuredClone(e);let r=Array.isArray(e);if(r&&i==="clone")return structuredClone(e);let o={},n=new Set(Object.keys(t));for(let[a,s]of Object.entries(e)){if(n.delete(a),s==null)continue;let l=xt(t[a],s,i);l===null||(o[a]=l)}for(let a of n)o[a]=null;return r&&i==="object"&&e.length!==t.length&&(o.length=e.length),o}function yt(t,e){if(t===e)return!1;if(e==null||typeof e!="object"||t!=null&&typeof t!="object")return!0;for(let[i,r]of Object.entries(e))if(r==null){if(i in t)return!0}else if(yt(t[i],r))return!0;return!1}function zi(t){switch(t){case void 0:case null:case!1:return null;case!0:return"";default:return`${t}`}}function $e(t){let e=t.split(/([A-Z])/);return e.length===1?t:e.reduce((i,r)=>i==null?r:r.length===1&&r.toUpperCase()===r?`${i}-${r.toLowerCase()}`:i+r)}var pr=globalThis?.navigator?.userAgent.includes("Firefox");function ur(t){return!t||pr&&t.constructor.formAssociated&&t.hasAttribute("disabled")?!1:document.activeElement===t?!0:!t.isConnected||t?.getRootNode()===document?!1:t.matches(":focus")}function we(t,...e){if(!t)return!1;try{t.focus(...e)}catch{return!1}return ur(t)}function kt(t){return getComputedStyle(t).direction==="rtl"}var Ai=()=>null,_r=t=>!!t,hr=t=>+t,fr=t=>`${t}`,br=t=>t,gr=(t,e)=>!yt(t,e),wr=(t,e)=>xt(t,e,"object");function Ci(t){switch(t){case"boolean":return!1;case"integer":case"float":return 0;case"map":return new Map;case"set":return new Set;case"array":return[];case"object":return null;default:case"string":return""}}function vr(t){switch(t){case"boolean":return _r;case"integer":return Math.round;case"float":return hr;case"map":return Map;case"set":return Set;case"object":return br;case"array":return Array.from;default:case"string":return fr}}function xr(t,e,i){let r={...typeof e=="string"?{type:e}:e},{enumerable:o,attr:n,reflect:a}=r,{type:s,empty:l,changedCallback:c}=r,m=s;if(m==null){let x=r.value??l??r.get?.call(i??{},i??{});if(x==null)m="string";else{let A=typeof x;m=A==="number"?Number.isInteger(x)?"integer":"number":A}}o??=t[0]!=="_",a??=o?m!=="object":n?"write":!1,n??=a?$e(t):null;let d=r.parser??vr(m),p=r.nullParser,h=l??null;p||(r.nullable??(m==="boolean"?!1:l==null)?p=Ai:(h??=Ci(m),p=h===null?()=>Ci(m):()=>h));let g=r.is;g||(g=m==="object"?gr:Object.is);let f="diff"in r?r.diff:m==="object"?wr:null;return{...r,type:m,is:g,diff:f,attr:n,reflect:a,readonly:r.readonly??!1,enumerable:o,value:r.value??h,parser:d,nullParser:p,key:t,changedCallback:c,watchers:r.watchers??[],values:r.values??new WeakMap,computedValues:r.computedValues??new WeakMap,attributeChangedCallback:r.attributeChangedCallback,needsSelfInvalidation:r.needsSelfInvalidation??new WeakSet}}var Ei=Symbol("PROP_INIT"),yr={nullParser:Ai,is:Object.is,INIT_SYMBOL:Ei};function et(t,e,...i){let r=new Set,o=new Set;function n(d,p,h){return new Proxy(d,{get(g,f){let x=h?`${h}.${f}`:f;p.add(x);let A=Reflect.get(g,f);return typeof A=="object"&&A!=null?n(A,p,x):A},has(g,f){let x=h?`${h}.p`:f;return p.add(x),Reflect.has(g,f)}})}let a=n(e,r),s=n(this??e,o),l=t.call(s,a,...i),c=t.name?!0:!o.size;return{props:new Set([...r,...o]),defaultValue:l,reusable:c}}function St(t,e,i){let r={...yr,...xr(e,i,t),changedCallback:i.changedCallback};function o(c,m){if(c===m)return!1;r.get;let d=m;d=m==null?r.nullParser.call(this,m):r.parser.call(this,d);let p=d;if(c==null){if(d==null)return!1}else if(d!=null&&(c===d||r.diff&&(p=r.diff.call(this,c,d),p==null)||r.is.call(this,c,d)))return!1;return r.values.set(this,d),r.propChangedCallback?.call(this,e,c,d,p),r.changedCallback?.call(this,c,d,p),!0}function n(){return r.values.has(this)?r.values.get(this):r.value}function a(c){let m=this[e];o.call(this,m,c)}function s(){let c=r.computedValues.get(this),m=this[e];r.needsSelfInvalidation.delete(this),o.call(this,c,m)}if(r.get){let{props:c}=et(r.get.bind(t),t,n.bind(t));r.watchers.push(...[...c].map(m=>[m,s]))}let l={enumerable:r.enumerable,get(){if(r.get){let c=r.get.call(this,this,n.bind(this));return r.computedValues.set(this,c),c}return n.call(this)},set(c){if(c!==Ei)if(r.set){r.needsSelfInvalidation.add(this);let m=this[e];r.set.call(this,c,a.bind(this));let d=this[e];if(!r.needsSelfInvalidation.has(this))return;r.needsSelfInvalidation.delete(this),o.call(this,m,d)}else a.call(this,c)}};return Object.defineProperty(t,e,l),r}var De,Ne;function Se(t){return De??=document.implementation.createHTMLDocument(),t==null?De.createDocumentFragment():De.createRange().createContextualFragment(t)}var tt=new Map;function Ct(t){let e=`#${Oe()}`;return tt.set(e,{fn:t}),`{${e}}`}var zt=new Map,Mi=new Map;function it(t,...e){let i=String.raw({raw:t},...e);if(Ne==null)try{let o=new CSSStyleSheet;return Ne=!0,o.replaceSync(i),zt.set(i,o),o}catch{Ne=!1}if(Ne){let o=zt.get(i);return o||(o=new CSSStyleSheet,Ne=!0,o.replaceSync(i),zt.set(i,o)),o}let r=Mi.get(i);return r||(De??=document.implementation.createHTMLDocument(),r=De.createElement("style"),r.textContent=i,Mi.set(i,r)),r.cloneNode(!0)}var Ti=new Map;function At(t,...e){let i,r=e.map(a=>{switch(typeof a){case"string":return a;case"function":return Ct(a);case"object":{if(a==null)return"";let s=Oe();return i??=new Map,i.set(s,a),`<div id="${s}"></div>`}default:throw new Error(`Unexpected substitution: ${a}`)}}),o=String.raw({raw:t},...r);if(i){let a=Se(o);for(let[s,l]of i)a.getElementById(s).replaceWith(l);return a}let n=Ti.get(o);return n||(n=Se(o),Ti.set(o,n)),n.cloneNode(!0)}var kr=/{([^}]*)}/g;function Sr(t){return function(i){let r=i.currentTarget.getRootNode().host;t.call(r,i)}}function Ii(t,e="dot",i={},r=""){for(let[o,n]of Object.entries(t)){if(!o)continue;let a=r?`${r}.${o}`:o;i[a]=n,n!=null&&typeof n=="object"&&Ii(n,e,i,a)}if(Array.isArray(t)){let o=r?`${r}.length`:"length";i[o]=t.length}return i}function zr(t,e){let i=e,r;for(r of t.split(".")){if(!r)throw new Error(`Invalid property: ${t}`);if(!(r in i))return null;i=i[r]}return i===e?null:[r,i]}function Et(t,e){let i=e;for(let r of t.split("."))if(!r||(i=i[r],i==null))return null;return i===e?null:i}var pe=class{bindings=new Map;arrayMetadata=new Map;events=new Map;cloneable;interpolation;styles=[];adoptedStyleSheets=[];stylesFragment;watchers=[];referenceCache=new WeakMap;conditionalElementMetadata=new Map;interpolated=!1;constructor(...e){this.template=Se(),this.append(...e)}*[Symbol.iterator](){for(let e of this.styles)yield e;yield this.template;for(let e of this.watchers)yield e}append(...e){for(let i of e)typeof i=="string"?this.append(Se(i.trim())):typeof i=="function"?this.watchers.push(i):i instanceof pe?this.append(...i):i instanceof DocumentFragment?this.template.append(i):(i instanceof CSSStyleSheet||i instanceof HTMLStyleElement)&&this.styles.push(i);return this}addCompositionEventListener(e){let i=e.id??"",r=this.events.get(i);return r||(r=new Set,this.events.set(i,r)),r.add(e),this}render(e,i,r,o){if(this.initiallyRendered||this.initialRender(e,i),!i)return;let n=new WeakMap,a=new WeakMap,s=Ii(i);for(let[l,c]of Object.entries(s)){let m=this.bindings.get(l);if(m)for(let{id:d,node:p,nodeType:h,fn:g,props:f,negate:x,doubleNegate:A}of m){let b=this.getElement(e,d);if(!b||!b||a.get(b)?.has(p))continue;let _;if(g)if(n.has(g))_=n.get(g);else{let E=structuredClone(i);for(let z of f){if(z in s)continue;let k=z.lastIndexOf(".");if(k===-1)E[z]=o[z];else{let M,S=z,D=z;for(;!M;){if(M=zr(S,E),M){let J=D.slice(S.length+1);M[1][J]=Et(D,o);break}if(k===-1)break;D=z,S=z.slice(0,k),k=S.lastIndexOf(",")}}}_=g.call(r,E),n.set(g,_)}else _=c;if(A?_=!!_:x&&(_=!_),h===Node.TEXT_NODE){let E=p==="#text"?0:Number.parseInt(p.slice(5),10),z=0;for(let k of b.childNodes)if(k.nodeType===Node.TEXT_NODE&&E===z++){k.nodeValue=_??"";break}E>z&&b.append(_)}else if(p==="_if"){let E=e.contains(b),z=b.parentElement==null&&b.parentNode!==e,k=_!==null&&_!==!1;if(z&&b.parentNode,k){if(z){let M=this.conditionalElementMetadata.get(d);if(!M)throw new Error("Could not find conditional element metadata");let S=M.commentCache.get(e);if(!S){let D=M.parentId?this.getElement(e,M.parentId):e;if(!D)throw new Error("Could not find reference parent!");let J=`{#${d}}`;for(let Z of D.childNodes)if(Z.nodeType===Node.COMMENT_NODE&&Z.nodeValue===J){S=Z;break}M.commentCache.set(this,S)}S&&S.replaceWith(b)}}else if(!z){let M=this.conditionalElementMetadata.get(d);if(!M)throw new Error(`Could not find conditional element metadata for ${d}`);let S=M.commentCache.get(e);S||(S=new Comment(`{#${d}}`),M.commentCache.set(this,S)),b.replaceWith(S)}}else _===!1||_==null?b.removeAttribute(p):b.setAttribute(p,_===!0?"":_);let y=a.get(b);y||(y=new Set,a.set(b,y)),y.add(p)}}}#e(e,i,r,o){let{nodeValue:n,nodeName:a,nodeType:s}=e;if(o==null){if(!n)return!1;let _=n.trim();if(!_)return!1;if(s===Node.ATTRIBUTE_NODE){if(_[0]!=="{")return!1;let{length:y}=_;if(_[y-1]!=="}")return!1;o=_.slice(1,-1)}else{let y=_.split(kr);if(y.length<3)return!1;if(y.length===3&&!y[0]&&!y[2])o=y[1];else return y.forEach((E,z)=>{if(z%2){let k=new Text;e.before(k),this.#e(k,i,r,E)}else{if(!E)return;e.before(E)}}),!0}}let l=o[0]==="!",c=!1;l&&(o=o.slice(1),c=o[0]==="!",c&&(o=o.slice(1)));let m,d;if(s===Node.TEXT_NODE){i!==e.parentElement&&(i=e.parentElement),d=0;let _=e;for(;_=_.previousSibling;)_.nodeType===Node.TEXT_NODE&&d++}else if(i!==e.ownerElement&&(i=e.ownerElement),a.startsWith("on")){if(a[2]!=="-")return!1;m=!0}let p=Ze(i,!0);if(m){let _=a.slice(3),[,y,E]=_.match(/^([*1~]+)?(.*)$/),z={once:y?.includes("1"),passive:y?.includes("~"),capture:y?.includes("*")};i.removeAttribute(a);let k=this.events.get(p);return k||(k=new Set,this.events.set(p,k)),o.startsWith("#")?k.add({type:E,handleEvent:tt.get(o).fn,...z}):k.add({type:E,prop:o,...z}),!1}let h,g,f,x;if(o.startsWith("#")){if(x=tt.get(o),!x)return!1;x.props?(g=x.props,f=x.defaultValue??null):f=x.fn}else f=Et(o,r);if(!g)if(typeof f=="function"){let _=et.call(this,f,r);h=f,f=_.defaultValue,g=_.props}else g=new Set([o]);typeof f=="symbol"&&(f=null),c?f=!!f:l&&(f=!f),x&&(x.defaultValue=f,x.props=g);let A=d?a+d:a,b={id:p,node:A,fn:h,props:g,nodeType:s,defaultValue:f,negate:l,doubleNegate:c};for(let _ of g){let y=this.bindings.get(_);y||(y=new Set,this.bindings.set(_,y)),y.add(b)}if(s===Node.TEXT_NODE)e.nodeValue=f??"";else if(a==="_if"){if(i.removeAttribute(a),f==null||f===!1)return!0}else f==null||f===!1?i.removeAttribute(a):i.setAttribute(a,f===!0?"":f);return!1}interpolate(e){this.cloneable=this.template.cloneNode(!0);let i=[],r=5,o=document.createTreeWalker(this.cloneable,r),n=o.nextNode();for(;n;){let a=null,s=!1;switch(n.nodeType){case Node.ELEMENT_NODE:if(a=n,a instanceof HTMLTemplateElement){n=o.nextSibling();continue}if(n instanceof HTMLStyleElement&&n.parentNode===this.cloneable){this.styles.push(n),n.remove(),n=o.nextSibling();continue}if(n instanceof HTMLScriptElement){n.remove(),n=o.nextSibling();continue}for(let l of[...a.attributes].reverse()){if(l.nodeName==="_if"){let c=Ze(a,!0),m=a.parentElement?Ze(a.parentElement,!0):null;this.conditionalElementMetadata.set(c,{element:a,id:c,parentId:m,commentCache:new WeakMap})}s||=this.#e(l,a,e)}break;case Node.TEXT_NODE:if(a=n.parentNode,this.#e(n,a,e)){let l=o.nextNode();n.remove(),n=l;continue}break;default:throw new Error(`Unexpected node type: ${n.nodeType}`)}s&&i.push(a),n=o.nextNode()}this.interpolation=this.cloneable.cloneNode(!0);for(let a of[...i].reverse()){let{id:s}=a;a.replaceWith(new Comment(`{#${s}}`))}for(let a of this.watchers)this.bindWatcher(a,e);"adoptedStyleSheets"in document?this.adoptedStyleSheets=[...yi(this.styles)]:(this.stylesFragment=Se(),this.stylesFragment.append(...ki(this.styles))),this.interpolated=!0}initialRender(e,i){this.interpolated||this.interpolate(i),"adoptedStyleSheets"in e?e.adoptedStyleSheets=[...e.adoptedStyleSheets,...this.adoptedStyleSheets]:e instanceof ShadowRoot&&e.append(this.stylesFragment.cloneNode(!0)),e.append(this.cloneable.cloneNode(!0));let r=e instanceof ShadowRoot?e.host:e;for(let[o,n]of[...this.events].reverse())for(let a of[...n].reverse()){let s=a.listener;if(!s)if(e instanceof ShadowRoot)s=a.handleEvent??Et(a.prop,i),o&&(s=Sr(s)),a.listener=s;else throw new TypeError("Anonymous event listeners cannot be used in templates");let l=o?e.getElementById(o):r;l&&l.addEventListener(a.type,s,a)}this.initiallyRendered=!0}attachEventListeners(e,i){if(this.events.get(e))for(let o of[...this.events.get(e)].reverse()){let{listener:n}=o;if(!n)throw new Error("Template must be interpolated before attaching events");i.addEventListener(o.type,n,o)}}getReferences(e){let i=this.referenceCache.get(e);return i||(i=new Map,this.referenceCache.set(e,i)),i}getElement(e,i){let r=this.getReferences(e),o=r.get(i);if(o)return o;if(o===null)return null;if(o=e.getElementById(i),o)return r.set(i,o),o;let n,a=this.conditionalElementMetadata.get(i)?.element;if(!a){let c=this.interpolation.getElementById(i);if(!c)return r.set(i,null),null;let m=c;for(;(m=m.parentElement)!=null;){let d=m.id;if(!d){a=m;continue}let p=r.get(d);if(p){n=p;break}let h=e.getElementById(d);if(h){r.set(d,h),n=p;break}let g=this.conditionalElementMetadata.get(d)?.element;if(g){a=g;break}a=m}}n??=a.cloneNode(!0);let s=n,l=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT);do{let c=s.id;!o&&c===i&&(o=s),c&&(r.set(c,s),a&&this.attachEventListeners(i,o))}while(s=l.nextNode());return o}bindWatcher(e,i){let{props:r,defaultValue:o,reusable:n}=et(e,i),a={fn:e,props:r,defaultValue:o};for(let s of r){let l=this.bindings.get(s);l||(l=new Set,this.bindings.set(s,l)),l.add(a)}return n}};var rt=class extends HTMLElement{};function I(t,e){return(i,r,o)=>{r==null?o.refs[e].removeAttribute(t):o.refs[e].setAttribute(t,r)}}var Cr=/^([*1~]+)?(.*)$/,ot,Ve,He,V,nt,Ri,se=class extends rt{constructor(...i){super();O(this,nt);O(this,ot,void 0);O(this,Ve,new Map);O(this,He,new Map);O(this,V,void 0);T(this,"_propAttributeCache");T(this,"_callbackArguments",null);se.supportsElementInternals&&(this.elementInternals=this.attachInternals()),this.attachShadow({mode:"open",delegatesFocus:this.delegatesFocus}),this.composition.initialRender(this.shadowRoot,this);for(let r of this.static._onConstructedCallbacks)r.call(this,this.callbackArguments)}static get observedAttributes(){let i=new Set;for(let r of this.propList.values())(r.reflect===!0||r.reflect==="read")&&i.add(r.attr);return i}compose(){return w(this,V),ee(this,V,new pe),w(this,V)}static _addCallback(i,r){this.hasOwnProperty(i)||(this[i]=[...this[i]]),this[i].push(r)}static append(...i){return this.on({composed({composition:r}){r.append(...i)}}),this}static css(i,...r){return Array.isArray(i)?this.append(it(i,...r)):this.append(i,...r),this}static setSchema(i){return this.schema=i,this}static autoRegister(i){return i&&(this.elementName=i),queueMicrotask(()=>{this.autoRegistration&&this.register()}),this}static html(i,...r){return this.on({composed({composition:o}){o.append(At(i,...r))}}),this}static extend(){return class extends this{}}static tsClassFix(){return this}static setStatic(i){return Object.assign(this,i),this}static readonly(i,r){return this.set(i,{...r,writable:!1})}static set(i,r){return Object.defineProperties(this.prototype,Object.fromEntries(Object.entries(i).map(([o,n])=>(this.undefine(o),[o,{enumerable:o[0]!=="_",configurable:!0,value:n,writable:!0,...r}])))),this}static mixin(i){return i(this)}static register(i,r=!1){return this.hasOwnProperty("defined")&&this.defined&&!r?this:(i&&(this.elementName=i),customElements.define(this.elementName,this),se.registrations.set(this.elementName,this),this.defined=!0,this)}static get propList(){return this.hasOwnProperty("_props")||(this._props=new Map(this._props)),this._props}static get propChangedCallbacks(){return this.hasOwnProperty("_propChangedCallbacks")||(this._propChangedCallbacks=new Map([...this._propChangedCallbacks].map(([i,r])=>[i,r.slice()]))),this._propChangedCallbacks}static get attributeChangedCallbacks(){return this.hasOwnProperty("_attributeChangedCallbacks")||(this._attributeChangedCallbacks=new Map([...this._attributeChangedCallbacks].map(([i,r])=>[i,r.slice()]))),this._attributeChangedCallbacks}static prop(i,r){let o={...typeof r=="string"?{type:r}:r},n=o.changedCallback;n&&this.onPropChanged({[i]:n}),o.changedCallback=function(l,c,m){this._onObserverPropertyChanged.call(this,i,l,c,m)};let a=St(this.prototype,i,o);this.propList.set(i,a);for(let[s,l]of a.watchers)this.on(`${s}Changed`,l);return a.INIT_SYMBOL}static define(i){return Object.defineProperties(this.prototype,Object.fromEntries(Object.entries(i).map(([r,o])=>(this.undefine(r),[r,{enumerable:r[0]!=="_",configurable:!0,...typeof o=="function"?{get:o}:o}])))),this}static undefine(i){Reflect.deleteProperty(this.prototype,i);let r=this.propList.get(i);if(r&&r.watchers.length){let o=this.propChangedCallbacks.get(i);if(o)for(let n of r.watchers){let a=o.indexOf(n);a!==-1&&o.splice(a,1)}}return this.propList.delete(i),this}static observe(i){for(let[r,o]of Object.entries(i??{}))typeof o=="function"?this.prop(r,{reflect:!1,get:o}):this.prop(r,o);return this}static defineStatic(i){for(let[r,o]of Object.entries(i??{}))St(this,r,{reflect:!1,...typeof o=="function"?{get:o}:typeof o=="string"?{type:o}:o});return this}static events(i,r){return this.on({composed({composition:o}){for(let[n,a]of Object.entries(i)){let[,s,l]=n.match(Cr);o.addCompositionEventListener({type:l,once:s?.includes("1"),passive:s?.includes("~"),capture:s?.includes("*"),...typeof a=="function"?{handleEvent:a}:typeof a=="string"?{prop:a}:a,...r})}}}),this}static childEvents(i,r){for(let[o,n]of Object.entries(i))this.events(n,{id:o,...r});return this}static on(i,r){let o=typeof i=="string"?{[i]:r}:i;for(let[n,a]of Object.entries(o)){let s;switch(n){case"composed":s="_onComposeCallbacks";break;case"constructed":s="_onConstructedCallbacks";break;case"connected":s="_onConnectedCallbacks";break;case"disconnected":s="_onDisconnectedCallbacks";break;case"props":this.onPropChanged(a);continue;case"attrs":this.onAttributeChanged(a);continue;default:if(n.endsWith("Changed")){let l=n.slice(0,n.length-7);this.onPropChanged({[l]:a});continue}throw new Error("Invalid callback name")}this._addCallback(s,a)}return this}static onPropChanged(i){for(let[r,o]of Object.entries(i)){let n=this.propChangedCallbacks.get(r);n||(n=[],this.propChangedCallbacks.set(r,n)),n.push(o)}return this}static onAttributeChanged(i){for(let[r,o]of Object.entries(i)){let n=r.toLowerCase(),a=this.attributeChangedCallbacks.get(n);a||(a=[],this.attributeChangedCallbacks.set(n,a)),a.push(o)}return this}render(i,r){this.composition.render(this.shadowRoot,i,this,r?{...this,store:r}:this)}propChangedCallback(i,r,o,n=o){this.render({[i]:n});let a=this.static.propChangedCallbacks.get(i);if(a)for(let s of a)s.call(this,r,o,n,this)}attributeChangedCallback(i,r,o){let n=this.static.attributeChangedCallbacks.get(i.toLowerCase());if(n)for(let a of n)a.call(this,r,o,this);for(let a of this.static.propList.values()){if(a.attr!==i)continue;if(a.reflect!==!0&&a.reflect!=="read")return;if(a.attributeChangedCallback){a.attributeChangedCallback.call(this,i,r,o);return}let[s]=this.attributeCache.get(i)??[null,null];if(s===o)return;let l=this[a.key],c=o===null?a.nullParser(o):a.type==="boolean"?!0:a.parser(o);if(c===l)return;this.attributeCache.set(i,[o,c]),this[a.key]=c;return}}_onObserverPropertyChanged(i,r,o,n){let{reflect:a,attr:s}=this.static.propList.get(i);if(s&&(a===!0||a==="write")){let[,l]=this.attributeCache.get(s)??[null,null];if(l!==o){let c=zi(o);this.attributeCache.set(s,[c,o]),c==null?this.removeAttribute(s):this.setAttribute(s,c)}}this.propChangedCallback(i,r,o,n)}get refs(){return w(this,ot)??ee(this,ot,new Proxy({},{get:(i,r)=>{w(this,V);let o=this.composition;if(!o.interpolated){let s=w(this,He).get(r)?.deref();if(s)return s;let l=$e(r);return s=o.template.getElementById(l),s?(w(this,He).set(r,new WeakRef(s)),s):null}let n=w(this,Ve).get(r)?.deref();if(n)return n;let a=$e(r);return n=o.getElement(this.shadowRoot,a),n?(w(this,Ve).set(r,new WeakRef(n)),n):null}}))}get attributeCache(){return this._propAttributeCache??=new Map,this._propAttributeCache}get tabIndex(){return super.tabIndex}set tabIndex(i){if(!(i===super.tabIndex&&i!==-1)){if(this.delegatesFocus&&document.activeElement===this){if(this.getAttribute("tabindex")===i.toString())return;let r=o=>{o.stopImmediatePropagation(),o.stopPropagation(),o.type==="blur"&&this.focus()};this.addEventListener("blur",r,{capture:!0,once:!0}),this.addEventListener("focus",r,{capture:!0,once:!0}),super.tabIndex=i,this.removeEventListener("blur",r,{capture:!0}),this.removeEventListener("focus",r,{capture:!0});return}super.tabIndex=i}}get static(){return this.constructor}get unique(){return!1}get callbackArguments(){return this._callbackArguments??={composition:w(this,V),html:At.bind(this),inline:Ct,template:w(this,nt,Ri),element:this}}get composition(){if(w(this,V))return w(this,V);if(!this.unique&&this.static.hasOwnProperty("_composition"))return ee(this,V,this.static._composition),this.static._composition;this.compose();for(let i of this.static._onComposeCallbacks)i.call(this,this.callbackArguments);return this.unique||(this.static._composition=w(this,V)),w(this,V)}connectedCallback(){for(let i of this.static._onConnectedCallbacks)i.call(this,this.callbackArguments)}disconnectedCallback(){for(let i of this.static._onDisconnectedCallbacks)i.call(this,this.callbackArguments)}},u=se;ot=new WeakMap,Ve=new WeakMap,He=new WeakMap,V=new WeakMap,nt=new WeakSet,Ri=function(){return w(this,V)?.template},T(u,"elementName"),T(u,"_composition",null),T(u,"_props",new Map),T(u,"_propChangedCallbacks",new Map),T(u,"_attributeChangedCallbacks",new Map),T(u,"_onComposeCallbacks",[]),T(u,"_onConnectedCallbacks",[]),T(u,"_onDisconnectedCallbacks",[]),T(u,"_onConstructedCallbacks",[]),T(u,"interpolatesTemplate",!0),T(u,"supportsElementInternals","attachInternals"in HTMLElement.prototype),T(u,"supportsElementInternalsRole",se.supportsElementInternals&&"role"in ElementInternals.prototype),T(u,"templatable",null),T(u,"defined",!1),T(u,"autoRegistration",!0),T(u,"registrations",new Map),T(u,"expressions",se.set),T(u,"methods",se.set),T(u,"overrides",se.set),T(u,"props",se.observe);u.prototype.delegatesFocus=!1;function H(t){return t.extend().observe({density:"integer"}).css`:host{--mdw-density: var(--mdw-density__default, 0)}:host([density]){--mdw-density: 0}:host([density="-1"]){--mdw-density: -1}:host([density="-2"]){--mdw-density: -2}:host([density="-3"]){--mdw-density: -2}:host([density="-4"]){--mdw-density: -4}:host([density="1"]){--mdw-density: 1}:host([density="2"]){--mdw-density: 2}:host([density="3"]){--mdw-density: 3}:host([density="4"]){--mdw-density: 3}`}function L(t){return t.extend().observe({shapeTop:"boolean",shapeBottom:"boolean",shapeStart:"boolean",shapeEnd:"boolean",shapeStyle:"string",outlined:"boolean"}).html`<div id=shape part=shape class=shape elevated={elevated} shape-top={shapeTop} shape-bottom={shapeBottom} shape-start={shapeStart} shape-end={shapeEnd} shape-style={shapeStyle} color={color} outlined={outlined} disabled={disabledState}><div id=outline _if={outlined} class=outline disabled={disabledState} focused={focusedState} pressed={pressedState} hovered={hoveredState}><div id=outline-left class="outline-section outline-left"></div><div id=outline-right class="outline-section outline-right"></div></div></div>`.css`:host{--mdw-shape__size: 0px;--mdw-shape__bg: transparent;--mdw-surface__will-change: none;--mdw-shape__size__top-start-size: var(--mdw-shape__size);--mdw-shape__size__top-end-size: var(--mdw-shape__size);--mdw-shape__size__bottom-start-size: var(--mdw-shape__size);--mdw-shape__size__bottom-end-size: var(--mdw-shape__size);--mdw-shape__ltr: calc(.5 * var(--mdw-dir, 1) + .5);--mdw-shape__rtl: calc(-.5 * var(--mdw-dir, 1) + .5);--mdw-shape__size__top-left-size: calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__top-right-size: calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__bottom-left-size: calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-end-size)));--mdw-shape__size__bottom-right-size: calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-end-size)));--mdw-shape__rounded: 1;--mdw-shape__inline-start-deg: calc(var(--mdw-dir, 1) * -90deg);z-index:0}:host([shape-style="none"]){--mdw-shape__size: 0px}:host([shape-style="extra-small"]){--mdw-shape__size: var(--mdw-shape__extra-small)}:host([shape-style="small"]){--mdw-shape__size: var(--mdw-shape__small)}:host([shape-style="medium"]){--mdw-shape__size: var(--mdw-shape__medium)}:host([shape-style="large"]){--mdw-shape__size: var(--mdw-shape__large)}:host([shape-style="extra-large"]){--mdw-shape__size: var(--mdw-shape__extra-large)}:host([shape-style="full"]){--mdw-shape__size: var(--mdw-shape__full)}:host([shape-style="inherit"]){--mdw-shape__size: inherit}:host([shape-top]){--mdw-shape__size__bottom-start-size: 0px;--mdw-shape__size__bottom-end-size: 0px;--mdw-shape__mask: linear-gradient(transparent 50%, black 50%)}:host([shape-bottom]){--mdw-shape__size__top-start-size: 0px;--mdw-shape__size__top-end-size: 0px;--mdw-shape__mask: linear-gradient(black 50%, transparent 50%)}:host([shape-start]){--mdw-shape__size__top-end-size: 0px;--mdw-shape__size__bottom-end-size: 0px;--mdw-shape__mask: linear-gradient(var(--mdw-shape__inline-start-deg), black 50%, transparent 50%)}:host([shape-end]){--mdw-shape__size__top-start-size: 0px;--mdw-shape__size__bottom-start-size: 0px;--mdw-shape__mask: linear-gradient(var(--mdw-shape__inline-start-deg), transparent 50%, black 50%)}@supports (-webkit-mask-box-image: none){:host{--mdw-shape__rounded: inherit}}`.css`.shape{position:absolute;inset:0;overflow:hidden;z-index:-1;background-color:var(--mdw-shape__bg, transparent);border-start-start-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__top-start-size));border-start-end-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__top-end-size));border-end-start-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__bottom-start-size));border-end-end-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__bottom-end-size));transition-delay:1ms;transition-duration:.2s;transition-property:background-color,color;will-change:background-color,color}.shape[outlined]{background-color:transparent}.shape[color]{background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}.shape:is([color="none"],[color="transparent"]){background-color:transparent}@supports (-webkit-mask-box-image: none){.shape{-webkit-mask-box-image:var(--mdw-shape__mask-border-source) 8 fill / var(--mdw-shape__size) stretch;-webkit-mask:var(--mdw-shape__mask);transition-duration:.2s,.2s,.2s;transition-property:background-color,color,-webkit-mask-box-image-width;will-change:background-color,color,-webkit-mask-box-image}}`.css`.outline{position:absolute;inset:0;pointer-events:none;border-color:currentColor;border-radius:inherit;color:rgb(var(--mdw-color__outline))}.outline:is([pressed],[focused]){color:rgb(var(--mdw-ink));transition-delay:0;transition-duration:0}.outline[disabled]{color:rgba(var(--mdw-color__on-surface),.12)}.outline:before{content:"";position:absolute;inset:0;border-style:solid;border-width:1px;border-radius:inherit}@supports (-webkit-mask-box-image: none){.outline:before{content:none}.outline:after{content:"";position:absolute;inset:0;-webkit-mask-box-image:var(--mdw-shape__mask-image__edges) 8 fill / auto stretch;background-color:currentColor}.outline-section{position:absolute;inset:0}.outline-section:before,.outline-section:after{content:"";position:absolute;max-block-size:50%;max-inline-size:50%;-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain;background-color:currentColor;transition-duration:.2s;transition-property:width,height}.outline-left:before{left:calc(-1px * var(--mdw-shape__convex));inset-block-start:calc(-1px * var(--mdw-shape__convex));block-size:calc(var(--mdw-shape__size__top-left-size));inline-size:calc(var(--mdw-shape__size__top-left-size));padding-right:calc(2px * var(--mdw-shape__convex));padding-block-end:calc(2px * var(--mdw-shape__convex));-webkit-mask-image:var(--mdw-shape__mask-image__top-left)}.outline-left:after{left:calc(-1px * var(--mdw-shape__convex));inset-block-end:calc(-1px * var(--mdw-shape__convex));block-size:var(--mdw-shape__size__bottom-left-size);inline-size:var(--mdw-shape__size__bottom-left-size);padding-right:calc(2px * var(--mdw-shape__convex));padding-block-start:calc(2px * var(--mdw-shape__convex));-webkit-mask-image:var(--mdw-shape__mask-image__bottom-left);-webkit-mask-position-y:100%}.outline-right:before{right:calc(-1px * var(--mdw-shape__convex));inset-block-start:calc(-1px * var(--mdw-shape__convex));block-size:var(--mdw-shape__size__top-right-size);inline-size:var(--mdw-shape__size__top-right-size);padding-left:calc(2px * var(--mdw-shape__convex));padding-block-end:calc(2px * var(--mdw-shape__convex));-webkit-mask-image:var(--mdw-shape__mask-image__top-right);-webkit-mask-position-x:100%}.outline-right:after{right:calc(-1px * var(--mdw-shape__convex));inset-block-end:calc(-1px * var(--mdw-shape__convex));block-size:var(--mdw-shape__size__bottom-right-size);inline-size:var(--mdw-shape__size__bottom-right-size);padding-left:calc(2px * var(--mdw-shape__convex));padding-block-start:calc(2px * var(--mdw-shape__convex));-webkit-mask-image:var(--mdw-shape__mask-image__bottom-right);-webkit-mask-position-x:100%;-webkit-mask-position-y:100%}}`}function v(t){return t.extend().observe({color:"string",ink:"string",block:"boolean",typeStyle:"string"}).css`:host([color="primary"]){--mdw-bg: var(--mdw-color__primary);--mdw-ink: var(--mdw-color__on-primary)}:host([color="primary-container"]){--mdw-bg: var(--mdw-color__primary-container);--mdw-ink: var(--mdw-color__on-primary-container)}:host([color="secondary"]){--mdw-bg: var(--mdw-color__secondary);--mdw-ink: var(--mdw-color__on-secondary)}:host([color="secondary-container"]){--mdw-bg: var(--mdw-color__secondary-container);--mdw-ink: var(--mdw-color__on-secondary-container)}:host([color="tertiary"]){--mdw-bg: var(--mdw-color__tertiary);--mdw-ink: var(--mdw-color__on-tertiary)}:host([color="tertiary-container"]){--mdw-bg: var(--mdw-color__tertiary-container);--mdw-ink: var(--mdw-color__on-tertiary-container)}:host([color="error"]){--mdw-bg: var(--mdw-color__error);--mdw-ink: var(--mdw-color__on-error)}:host([color="error-container"]){--mdw-bg: var(--mdw-color__error-container);--mdw-ink: var(--mdw-color__on-error-container)}:host([color="background"]){--mdw-bg: var(--mdw-color__background);--mdw-ink: var(--mdw-color__on-background)}:host([color^="surface"]){--mdw-bg: var(--mdw-color__surface);--mdw-ink: var(--mdw-color__on-surface)}:host([color="surface-primary"]){--mdw-ink: var(--mdw-color__primary)}:host([color$="variant"]){--mdw-bg: var(--mdw-color__surface-variant);--mdw-ink: var(--mdw-color__on-surface-variant)}:host([color^="inverse"]){--mdw-bg: var(--mdw-color__inverse-surface);--mdw-ink: var(--mdw-color__inverse-on-surface)}:host([color="inverse-primary"]){--mdw-ink: var(--mdw-color__inverse-primary)}:host([ink="inverse-primary"]){--mdw-ink: var(--mdw-color__inverse-primary)}:host([ink="primary"]){--mdw-ink: var(--mdw-color__primary)}:host([ink="on-primary-container"]){--mdw-ink: var(--mdw-color__on-primary-container)}:host([ink="secondary"]){--mdw-ink: var(--mdw-color__secondary)}:host([ink="on-secondary-container"]){--mdw-ink: var(--mdw-color__on-secondary-container)}:host([ink="tertiary"]){--mdw-ink: var(--mdw-color__tertiary)}:host([ink="on-tertiary-container"]){--mdw-ink: var(--mdw-color__on-tertiary-container)}:host([ink="error"]){--mdw-ink: var(--mdw-color__error)}:host([ink="outline"]){--mdw-ink: var(--mdw-color__outline)}:host([ink="on-surface"]){--mdw-ink: var(--mdw-color__on-surface)}:host([ink="surface-variant"]){--mdw-ink: var(--mdw-color__surface-variant)}:host([ink="on-surface-variant"]){--mdw-ink: var(--mdw-color__on-surface-variant)}:host([ink="inverse-on-surface"]){--mdw-ink: var(--mdw-color__inverse-on-surface)}:host([ink="inherit"]){--mdw-ink: inherit}:host([type-style|="display"]){--mdw-type__font: var(--mdw-typescale__display-large__font);--mdw-type__letter-spacing: var(--mdw-typescale__display-large__letter-spacing)}:host([type-style="display-medium"]){--mdw-type__font: var(--mdw-typescale__display-medium__font);--mdw-type__letter-spacing: var(--mdw-typescale__display-medium__letter-spacing)}:host([type-style="display-small"]){--mdw-type__font: var(--mdw-typescale__display-small__font);--mdw-type__letter-spacing: var(--mdw-typescale__display-small__letter-spacing)}:host([type-style|="headline"]){--mdw-type__font: var(--mdw-typescale__headline-large__font);--mdw-type__letter-spacing: var(--mdw-typescale__headline-large__letter-spacing)}:host([type-style="headline-medium"]){--mdw-type__font: var(--mdw-typescale__headline-medium__font);--mdw-type__letter-spacing: var(--mdw-typescale__headline-medium__letter-spacing)}:host([type-style="headline-small"]){--mdw-type__font: var(--mdw-typescale__headline-small__font);--mdw-type__letter-spacing: var(--mdw-typescale__headline-small__letter-spacing)}:host([type-style|="title"]){--mdw-type__font: var(--mdw-typescale__title-large__font);--mdw-type__letter-spacing: var(--mdw-typescale__title-large__letter-spacing)}:host([type-style="title-medium"]){--mdw-type__font: var(--mdw-typescale__title-medium__font);--mdw-type__letter-spacing: var(--mdw-typescale__title-medium__letter-spacing)}:host([type-style="title-small"]){--mdw-type__font: var(--mdw-typescale__title-small__font);--mdw-type__letter-spacing: var(--mdw-typescale__title-small__letter-spacing)}:host([type-style|="label"]){--mdw-type__font: var(--mdw-typescale__label-large__font);--mdw-type__letter-spacing: var(--mdw-typescale__label-large__letter-spacing)}:host([type-style="label-medium"]){--mdw-type__font: var(--mdw-typescale__label-medium__font);--mdw-type__letter-spacing: var(--mdw-typescale__label-medium__letter-spacing)}:host([type-style="label-small"]){--mdw-type__font: var(--mdw-typescale__label-small__font);--mdw-type__letter-spacing: var(--mdw-typescale__label-small__letter-spacing)}:host([type-style|="body"]){--mdw-type__font: var(--mdw-typescale__body-large__font);--mdw-type__letter-spacing: var(--mdw-typescale__body-large__letter-spacing)}:host([type-style="body-medium"]){--mdw-type__font: var(--mdw-typescale__body-medium__font);--mdw-type__letter-spacing: var(--mdw-typescale__body-medium__letter-spacing)}:host([type-style="body-small"]){--mdw-type__font: var(--mdw-typescale__body-small__font);--mdw-type__letter-spacing: var(--mdw-typescale__body-small__letter-spacing)}`}var Ar=u.mixin(v).mixin(H).mixin(L).extend().html`<slot id=slot></slot>`.css`:host{--mdw-shape__size: 8px;--mdw-ink: var(--mdw-color__on-error);--mdw-shape__bg: rgb(var(--mdw-color__error));--mdw-type__font: var(--mdw-typescale__label-small__font);--mdw-type__letter-spacing: var(--mdw-typescale__label-small__letter-spacing);position:relative;display:inline-block;vertical-align:middle;box-sizing:border-box;min-block-size:var(--mdw-typescale__label-small__line-height);min-inline-size:var(--mdw-typescale__label-small__line-height);padding-inline:max(4px,calc(4px + (var(--mdw-density) * 2px)));color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);text-align:center}@supports (width: 1lh){:host{min-block-size:1lh;min-inline-size:1lh;padding-inline:max(.25lh,calc(.25lh + (var(--mdw-density) * 2px)))}}:host(:empty){vertical-align:middle}:host(:empty) #shape{inset:5px}`.autoRegister("mdw-badge");function ue(t){return t.extend().observe({flex:{type:"string",empty:"row",value:"row"},x:{type:"string",empty:"start",value:"start"},y:{type:"string",empty:"start",value:"start"},gap:"float",padding:"float"}).css`:host{box-sizing:border-box}:host([flex]){display:flex}:host([flex="column"]){flex-direction:column}:host(:where([flex][y="start"],[flex="column"][x="start"])){align-items:flex-start}:host(:where([flex][y="end"],[flex="column"][x="end"])){align-items:flex-end}:host(:where([flex][y="center"],[flex="column"][x="center"])){align-items:center}:host(:where([flex][y="between"],[flex="column"][x="between"])){align-items:space-between}:host(:where([flex][y="around"],[flex="column"][x="around"])){align-items:space-around}:host(:where([flex][y="stretch"],[flex="column"][x="stretch"])){align-items:stretch}:host(:where([flex][x="start"],[flex="column"][y="start"])){justify-content:flex-start}:host(:where([flex][x="end"],[flex="column"][y="end"])){justify-content:flex-end}:host(:where([flex][x="center"],[flex="column"][y="center"])){justify-content:center}:host(:where([flex][x="between"],[flex="column"][y="between"])){justify-content:space-between}:host(:where([flex][x="stretch"],[flex="column"][y="stretch"])){justify-content:space-around}:host([wrap]){flex-wrap:wrap}:host([wrap="reverse"]){flex-wrap:wrap-reverse}:host([gap="4"]){gap:4px}:host([gap="8"]){gap:8px}:host([gap="12"]){gap:12px}:host([gap="16"]){gap:16px}:host([gap="20"]){gap:20px}:host([gap="24"]){gap:24px}:host([padding="4"]){padding:4px}:host([padding="8"]){padding:8px}:host([padding="12"]){padding:12px}:host([padding="16"]){padding:16px}:host([padding="20"]){padding:20px}:host([padding="24"]){padding:24px}`}var $=u.mixin(v).mixin(ue).extend().observe({inline:"boolean",block:{type:"boolean",empty:!0}}).css`:host{display:block}:host([inline]){display:inline-block}:host([flex]:where([inline])){display:inline-flex}:host([color]){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}:host([ink]){color:rgb(var(--mdw-ink))}:host([type-style]){font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}#slot{block-size:inherit;inline-size:inherit}`.html`<slot id=slot type-style={typeStyle}></slot>`.autoRegister("mdw-box");var Er=$.extend().css`:host{font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}:host([size="medium"]){font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}:host([size="small"]){font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}`.autoRegister("mdw-body");function P(t){return t.extend().observe({_ariaRole:"string"}).methods({updateAriaProperty(e,i){if(this.elementInternals&&e in this.elementInternals)this.elementInternals[e]=i;else if(e in this)this[e]=i;else{let r=e;r.startsWith("aria")&&(r=`aria-${r.slice(4).toLowerCase()}`),i==null?this.removeAttribute(e):this.setAttribute(r,i)}}}).on({_ariaRoleChanged(e,i){this.updateAriaProperty("role",i)},constructed(){this.updateAriaProperty("role",this._ariaRole)}})}var Mr=["button","[href]","input","select","textarea","[tabindex]"].join(", ");function G(t){return t.extend().observe({kbdNav:{empty:"true"},_kbdFocusable:{empty:!0}}).define({kbdNavQuery(){return Mr},kbdNavFocusableWhenDisabled(){return!0},ariaOrientationDefault(){return"vertical"}}).define({kbdNavChildren(){return this.querySelectorAll(this.kbdNavQuery)}}).methods({_ariaOrientationIsVertical(){return(this.ariaOrientation??this.getAttribute("aria-orientation")??this.ariaOrientationDefault)==="vertical"},focusNext(e=null,i=!0,r=!1){let o=!1,n=r?[...this.kbdNavChildren].reverse():this.kbdNavChildren;for(let a of n){if(!o){o=e?a===e:a.getAttribute("tabindex")==="0";continue}if(a.hasAttribute("tabindex")&&a.getAttribute("aria-hidden")!=="true"&&we(a))return this.ariaActiveDescendantElement=a,a}if(!i)return document.activeElement!==e&&e instanceof HTMLElement&&e.focus(),e;for(let a of n)if(a.hasAttribute("tabindex")&&a.getAttribute("aria-hidden")!=="true"&&(we(a)||a===e))return a;return null},focusPrevious(e,i=!0){return this.focusNext(e,i,!0)},focus(...e){if(!we(this.ariaActiveDescendantElement,...e)){for(let i of this.kbdNavChildren)if(i.getAttribute("tabindex")==="0"&&i instanceof HTMLElement){this.ariaActiveDescendantElement=i,i.focus(...e);return}this.focusNext()}},refreshTabIndexes(){if(this.kbdNav!=="true")return;let e=null,i=null,r=null;for(let o of this.kbdNavChildren)!e&&document.activeElement===o?e=o:!i&&o.getAttribute("tabindex")==="0"?i=o:(!r&&o.getAttribute("aria-hidden")!=="true"&&(this.kbdNavFocusableWhenDisabled||o.getAttribute("aria-disabled")!=="true")&&(r=o),o.tabIndex=-1),o.hasAttribute("tabindex")||(o.tabIndex=document.activeElement===o?0:-1);e?e.tabIndex=0:i?e&&(i.tabIndex=-1):r&&(r.tabIndex=0)}}).events({focusin(e){if(this.kbdNav!=="true")return;let i=e.target;if(i.matches(this.kbdNavQuery)){this.ariaActiveDescendantElement=i,i.getAttribute("tabindex")!=="0"&&(i.tabIndex=0);for(let o of this.kbdNavChildren)o!==i&&o.hasAttribute("tabindex")&&(o.tabIndex=-1)}},keydown(e){if(!(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&this.kbdNav==="true"){switch(e.key){case"ArrowUp":case"Up":this._ariaOrientationIsVertical()&&this.focusPrevious();break;case"ArrowDown":case"Down":this._ariaOrientationIsVertical()&&this.focusNext();break;case"ArrowLeft":case"Left":if(this._ariaOrientationIsVertical())return;kt(this)?this.focusNext():this.focusPrevious();break;case"ArrowRight":case"Right":if(this._ariaOrientationIsVertical())return;kt(this)?this.focusPrevious():this.focusNext();break;default:return}e.stopPropagation(),e.preventDefault()}}}).on({connected(){this.refreshTabIndexes()}})}function ze(t){return t.mixin(G).extend().set({ariaOrientationDefault:"horizontal"})}function te(t){return t.extend().observe({elevated:"boolean",elevation:"integer",_raised:{type:"boolean",get({hoveredState:e,pressedState:i}){return e&&!i}}}).expressions({showSurfaceTint({elevated:e,elevation:i,disabledState:r,color:o}){return(e||i!==null)&&!r&&(!o||o.includes("surface"))}}).html`<div id=surface class=surface raised={_raised} disabled={disabledState} color={color}><div _if={showSurfaceTint} id=surface-tint class=surface-tint raised={_raised} color={color} aria-hidden=true></div></div>`.css`:host{--mdw-surface__shadow__0: drop-shadow(0px 1px 001px rgba(0,0,0,000)) drop-shadow(0px 1px 2.5px rgba(0,0,0,00000));--mdw-surface__shadow__1: drop-shadow(0px 1px 001px rgba(0,0,0,.3)) drop-shadow(0px 1px 2.5px rgba(0,0,0,.25));--mdw-surface__shadow__2: drop-shadow(0px 1px 001px rgba(0,0,0,.3)) drop-shadow(0px 2px 005px rgba(0,0,0,.25));--mdw-surface__shadow__3: drop-shadow(0px 1px 1.5px rgba(0,0,0,.3)) drop-shadow(0px 4px 007px rgba(0,0,0,.263));--mdw-surface__shadow__4: drop-shadow(0px 2px 1.5px rgba(0,0,0,.3)) drop-shadow(0px 6px 009px rgba(0,0,0,.27));--mdw-surface__shadow__5: drop-shadow(0px 4px 2px rgba(0,0,0,.3)) drop-shadow(0px 8px 012px rgba(0,0,0,.3));--mdw-surface__tint__1: .05;--mdw-surface__tint__2: .08;--mdw-surface__tint__3: .11;--mdw-surface__tint__4: .12;--mdw-surface__tint__5: .14;--mdw-surface__shadow__resting: none;--mdw-surface__shadow: var(--mdw-surface__shadow__resting);--mdw-surface__tint: 0;--mdw-surface__tint__raised: 0;z-index:0}:host([elevation="0"]){--mdw-surface__tint: 0;--mdw-surface__shadow__resting: none}:host([elevation="1"]){--mdw-surface__tint: var(--mdw-surface__tint__1);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__1)}:host([elevation="2"]){--mdw-surface__tint: var(--mdw-surface__tint__2);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__2)}:host([elevation="3"]){--mdw-surface__tint: var(--mdw-surface__tint__3);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__3)}:host([elevation="4"]){--mdw-surface__tint: var(--mdw-surface__tint__4);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__4)}:host([elevation="5"]){--mdw-surface__tint: var(--mdw-surface__tint__5);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__5)}:host([elevation]){--mdw-surface__tint__raised: var(--mdw-surface__tint);--mdw-surface__shadow__raised: var(--mdw-surface__shadow__resting)}.surface{position:absolute;inset:0;pointer-events:none;filter:var(--mdw-surface__shadow);z-index:-1;transition-delay:1ms;transition-duration:.2s;transition-property:filter;transition-timing-function:linear;will-change:filter}.surface[raised]{filter:var(--mdw-surface__shadow__raised, var(--mdw-surface__shadow__resting))}.surface[disabled]{filter:none}.surface-tint{position:absolute;inset:0;pointer-events:none;opacity:var(--mdw-surface__tint, 0);background-color:rgb(var(--mdw-color__primary));border-radius:inherit;transition-delay:1ms;transition-duration:.2s;transition-property:opacity;will-change:opacity}.surface-tint[raised]{opacity:var(--mdw-surface__tint__raised, 0)}.surface-tint[pressed]{opacity:var(--mdw-surface__tint, 0)}.surface-tint[color]:not([color|="surface"]){display:none}`}var le=u.mixin(v).mixin(ue).mixin(te).mixin(L).html`<slot id=slot></slot>`.on({composed(){let{surface:t,shape:e,surfaceTint:i}=this.refs;e.append(i),t.append(e)}}).css`:host{--mdw-shape__bg: rgb(var(--mdw-color__surface));--mdw-ink: var(--mdw-color__on-surface);position:relative;color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}`.autoRegister("mdw-surface");var Tr=le.mixin(ze).mixin(P).extend().set({elevated:!0,_ariaRole:"toolbar"}).observe({color:{empty:"surface"}}).css`:host{--mdw-surface__tint: var(--mdw-surface__tint__2);--mdw-surface__tint__raised: var(--mdw-surface__tint__2);--mdw-bg: var(--mdw-color__surface);--mdw-ink: var(--mdw-color__on-surface);display:flex;align-items:center;gap:8px;justify-content:flex-start;box-sizing:content-box;block-size:56px;padding-block:12px;padding-inline:8px 16px;box-shadow:none;direction:ltr}`.autoRegister("mdw-bottom-app-bar");var at=new Map,Li=new Set,Mt=new Set,Ye=class extends u.mixin(v).extend().define({_img(){return this.refs.img}}).define({naturalWidth(){return this._img.naturalWidth},naturalHeight(){return this._img.naturalHeight},complete(){return this._img.complete},currentSrc(){return this._img.currentSrc},x(){return this._img.x},y(){return this._img.y},decode(){return this._img.decode}}).observe({_slottedText:"string",disabled:"boolean",alt:"string",src:"string",svg:"string",svgPath:"string",srcset:"string",sizes:"string",crossOrigin:{attr:"crossorigin"},useMap:{attr:"usemap"},isMap:{type:"boolean",attr:"ismap"},referrerPolicy:{attr:"referrerpolicy"},decoding:{value:null},loading:{value:null},width:"integer",height:"integer",forceFont:"boolean",_linkLoaded:"boolean",viewBox:{attr:"viewBox"},fontClass:{empty:"material-symbols-outlined"},fontLibrary:{empty:"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&display=block"}}).observe({_svgAlias:{type:"object",get({_slottedText:e}){if(!e)return null;let i=at.get(e.trim().toLowerCase());return i||Li.add(e),i}}}).observe({_computedSVGPath({svgPath:e,_svgAlias:i}){return e||i?.path},_computedViewBox({viewBox:e,_svgAlias:i}){return e??i?.viewBox??"0 0 24 24"}}).observe({_showSlot:{type:"boolean",get({_slottedText:e,svg:i,_computedSVGPath:r,src:o}){return e&&!i&&!r&&!o}}}).expressions({showSVG({svg:e,_computedSVGPath:i}){return!!(e||i)}}).html`<link _if={_showSlot} id=link rel=stylesheet href={fontLibrary}><svg _if={showSVG} id=svg viewBox={_computedViewBox}><use id=use _if={svg} href={svg} fill=currentColor /><path id=path _if={_computedSVGPath} d={_computedSVGPath} /></svg> <img _if={src} id=img disabled={disabled} alt={alt} src={src} srcset={srcset} sizes={sizes} crossorigin={crossOrigin} usemap={useMap} ismap={isMap} referrerpolicy={referrerPolicy} decoding={decoding} loading={loading} width={width} height={height}><slot id=icon class={fontClass} hidden={!_showSlot} aria-hidden=true></slot>`.css`:host{display:inline-block;vertical-align:-11.5%;block-size:1em;inline-size:1em;-webkit-user-select:none;user-select:none;font-variation-settings:"FILL" 1;transition-duration:.2s;transition-property:inline-size,width}:host(:is([color],[ink])){color:rgb(var(--mdw-ink))}#icon{display:block;overflow:clip;block-size:1em;inline-size:1em;font-size:inherit;font-variation-settings:inherit;transition-delay:1ms;transition-duration:.2s;transition-property:font-variation-settings}#icon[hidden]{display:none}#svg{display:block;block-size:inherit;inline-size:inherit;fill:currentColor;object-fit:cover}#img{display:block;block-size:inherit;inline-size:inherit;object-fit:cover;transition-delay:1ms;transition-duration:.2s;transition-property:filter}#img[disabled]{filter:grayscale()}.material-symbols-outlined{direction:inherit}`.childEvents({icon:{slotchange(){this._slottedText=this.textContent}},link:{load({currentTarget:e}){let{href:i,parentNode:r}=e;if(!Mt.has(i)){for(let o of document.head.getElementsByTagName("link"))if(o.href===i){Mt.add(i);return}document.head.append(e.cloneNode()),Mt.add(i)}}}}){static get svgAliasMap(){return at}static get svgUnaliased(){return Li}static addSVGAlias(e,i,r="0 0 24 24"){e=e.toLowerCase(),i?at.set(e,{path:i,viewBox:r}):at.delete(e)}constructor(e,i){super(),e!=null&&(this.width=e),i!=null&&(this.height=i)}};Ye.autoRegister("mdw-icon");var Tt="mdw-form-associated-changed",It={nullParser:String,value:""};function ie(t){return t.extend().setStatic({formAssociated:!0}).set({_ipcListener:null,_ipcTarget:null}).observe({ariaControls:"string",autocomplete:It,name:It,readOnly:{attr:"readonly",type:"boolean"},defaultChecked:{attr:"checked",type:"boolean"},_checkedDirty:"boolean",_checked:"boolean",required:"boolean",type:It,_defaultValue:{reflect:!0,attr:"value"},_value:{empty:""},_valueDirty:"boolean",_invalid:"boolean",_badInput:"boolean",_validationMessage:"string",_formDisabled:"boolean",_formReset:"boolean"}).observe({erroredState({_invalid:e}){return e},defaultValue:{reflect:!1,get({_defaultValue:e}){return e??""},set(e){this._defaultValue=String(e)}},_valueBehavior({type:e}){switch(e){case"radio":case"checkbox":return"default/on";case"hidden":case"button":case"submit":case"image":case"reset":return"default";case"file":return"filename";default:return"value"}}}).methods({_onSetValue(e){this._value=e},_onSetChecked(e){this._checked=e}}).observe({value:{reflect:!1,get({_valueBehavior:e,_defaultValue:i,_value:r}){switch(e){default:return r;case"default":return i??"";case"default/on":return i??"on";case"filename":throw new Error("Not supported!")}},set(e){switch(this._valueBehavior){case"value":this._valueDirty=!0,this._onSetValue(e);break;default:this.defaultValue=e}}},checked:{reflect:!1,type:"boolean",get({_checked:e}){return e},set(e){this._checkedDirty=!0,this._onSetChecked(e)}}}).define({form(){return this.elementInternals.form},validity(){return this.elementInternals.validity},validationMessage(){return this.elementInternals.validationMessage},willValidate(){return this.elementInternals.willValidate},labels(){return this.elementInternals.labels}}).observe({disabledState({_formDisabled:e,disabled:i}){return e?!0:!!i}}).methods({checkValidity(){return this.elementInternals.checkValidity()},reportValidity(){return this.elementInternals.reportValidity()},setCustomValidity(e){this.elementInternals.setValidity({...this.elementInternals.validity,customError:!!e},this.elementInternals.validationMessage||e)},_notifyRadioChange(e,i){this._ipcTarget?.dispatchEvent(new CustomEvent(Tt,{detail:[e,i]}))},refreshFormAssociation(){let e=this.elementInternals.form??this.getRootNode();e!==this._ipcTarget&&(this._ipcTarget&&this._ipcTarget.removeEventListener(Tt,this._ipcListener),this.type==="radio"&&(this._ipcTarget=e,this._ipcListener??=this.formIPCEvent.bind(this),this._ipcTarget.addEventListener(Tt,this._ipcListener)))},formAssociatedCallback(e){this.refreshFormAssociation()},formIPCEvent(e){if(e.target instanceof HTMLFormElement&&e.target!==this.form||this.type!=="radio")return;let[i,r]=e.detail;this.name===i&&(r===this.value||(this.checked=!1))},formDisabledCallback(e){this._formDisabled=e},formResetCallback(){this._formReset=!0,this._valueDirty=!1,this.checkValidity(),this._formReset=!1},formStateRestoreCallback(e,i){if(!navigator.userAgent.includes("Edg/")&&typeof e=="string"){if(this.type==="checkbox"||this.type==="radio"){this.checked=e==="checked";return}if(this.type==="radio"){this.checked=e==="checked";return}this.value=e}},_updateFormAssociatedValue(){switch(this.type){case"radio":this.checked&&this._notifyRadioChange(this.name,this.value||"on");case"checkbox":this.checked?this.elementInternals.setFormValue(this.value,"checked"):this.elementInternals.setFormValue(null,"unchecked");break;default:this.elementInternals.setFormValue(this.value)}}}).events({blur(){this.checkValidity()}}).on({connected(){this.refreshFormAssociation()},checkedChanged(){this._updateFormAssociatedValue()},valueChanged(){this._updateFormAssociatedValue()}})}function _e(t){return t.mixin(ie).extend().observe({ariaLabel:"string"}).set({delegatesFocus:!0,focusableOnDisabled:!1,controlTagName:"input",controlVoidElement:!0}).methods({onValueChangingContentAttribute(){let e=this.refs.control;this.hasAttribute("value")||(e.removeAttribute("value"),e.setAttribute("value","")),this._value=e.value},focus(...e){this.refs.control.focus(...e)},click(){this.refs.control.click()}}).define({stateTargetElement(){return this.refs.control},form(){return this.elementInternals.form},validity(){return this.elementInternals.validity},validationMessage(){return this.elementInternals.validationMessage},willValidate(){return this.elementInternals.willValidate},labels(){return this.elementInternals.labels}}).methods({checkValidity(){let e=this.refs.control,i=e.checkValidity(),r={};for(let o in e.validity)r[o]=e.validity[o];return this.elementInternals.setValidity(r,e.validationMessage),this._invalid=!i,this._validationMessage=e.validationMessage,this._badInput=e.validity.badInput,i},reportValidity(){return this.checkValidity(),this.refs.control.reportValidity(),this.elementInternals.reportValidity()},setCustomValidity(e){this.refs.control.setCustomValidity(e),this.checkValidity()}}).on({composed({template:e,html:i}){e.append(i`
|
|
1
|
+
var vi=Object.defineProperty;var cr=(t,e,i)=>e in t?vi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var dr=(t,e)=>{for(var i in e)vi(t,i,{get:e[i],enumerable:!0})};var I=(t,e,i)=>(cr(t,typeof e!="symbol"?e+"":e,i),i),vt=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)};var w=(t,e,i)=>(vt(t,e,"read from private field"),i?i.call(t):e.get(t)),O=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},ee=(t,e,i,r)=>(vt(t,e,"write to private field"),r?r.call(t,i):e.set(t,i),i);var Fe=(t,e,i)=>(vt(t,e,"access private method"),i);function*yi(t){for(let e of t)if(e instanceof HTMLStyleElement){let i=new CSSStyleSheet;i.replaceSync(e.textContent),yield i}else if(e.ownerNode){let i=new CSSStyleSheet;i.replaceSync([...e.cssRules].map(r=>r.cssText).join("")),yield i}else yield e}var xi=new WeakMap;function*ki(t){for(let e of t)if(e instanceof HTMLStyleElement)yield e;else if(e.ownerNode instanceof HTMLStyleElement)yield e.ownerNode.cloneNode(!0);else{let i=xi.get(e);i||(i=document.createElement("style"),i.textContent=[...e.cssRules].map(r=>r.cssText).join(""),xi.set(e,i)),yield i.cloneNode(!0)}}var mr="_mdw-",Si=new Set;function Oe(){let t=Math.random().toString(36).slice(2,10);return Si.has(t)?Oe():(Si.add(t),t)}function Ze(t,e){if(t.id)return t.id;if(!e)return null;let i=mr+Oe();return t.id=i,i}function xt(t,e,i="clone"){if(t===e)return null;if(e==null||typeof e!="object")return e;if(t==null||typeof t!="object")return structuredClone(e);let r=Array.isArray(e);if(r&&i==="clone")return structuredClone(e);let o={},n=new Set(Object.keys(t));for(let[a,s]of Object.entries(e)){if(n.delete(a),s==null)continue;let l=xt(t[a],s,i);l===null||(o[a]=l)}for(let a of n)o[a]=null;return r&&i==="object"&&e.length!==t.length&&(o.length=e.length),o}function yt(t,e){if(t===e)return!1;if(e==null||typeof e!="object"||t!=null&&typeof t!="object")return!0;for(let[i,r]of Object.entries(e))if(r==null){if(i in t)return!0}else if(yt(t[i],r))return!0;return!1}function zi(t){switch(t){case void 0:case null:case!1:return null;case!0:return"";default:return`${t}`}}function $e(t){let e=t.split(/([A-Z])/);return e.length===1?t:e.reduce((i,r)=>i==null?r:r.length===1&&r.toUpperCase()===r?`${i}-${r.toLowerCase()}`:i+r)}var pr=globalThis?.navigator?.userAgent.includes("Firefox");function ur(t){return!t||pr&&t.constructor.formAssociated&&t.hasAttribute("disabled")?!1:document.activeElement===t?!0:!t.isConnected||t?.getRootNode()===document?!1:t.matches(":focus")}function we(t,...e){if(!t)return!1;try{t.focus(...e)}catch{return!1}return ur(t)}function kt(t){return getComputedStyle(t).direction==="rtl"}var Ai=()=>null,_r=t=>!!t,hr=t=>+t,fr=t=>`${t}`,br=t=>t,gr=(t,e)=>!yt(t,e),wr=(t,e)=>xt(t,e,"object");function Ci(t){switch(t){case"boolean":return!1;case"integer":case"float":return 0;case"map":return new Map;case"set":return new Set;case"array":return[];case"object":return null;default:case"string":return""}}function vr(t){switch(t){case"boolean":return _r;case"integer":return Math.round;case"float":return hr;case"map":return Map;case"set":return Set;case"object":return br;case"array":return Array.from;default:case"string":return fr}}function xr(t,e,i){let r={...typeof e=="string"?{type:e}:e},{enumerable:o,attr:n,reflect:a}=r,{type:s,empty:l,changedCallback:c}=r,m=s;if(m==null){let x=r.value??l??r.get?.call(i??{},i??{});if(x==null)m="string";else{let A=typeof x;m=A==="number"?Number.isInteger(x)?"integer":"number":A}}o??=t[0]!=="_",a??=o?m!=="object":n?"write":!1,n??=a?$e(t):null;let d=r.parser??vr(m),p=r.nullParser,h=l??null;p||(r.nullable??(m==="boolean"?!1:l==null)?p=Ai:(h??=Ci(m),p=h===null?()=>Ci(m):()=>h));let g=r.is;g||(g=m==="object"?gr:Object.is);let f="diff"in r?r.diff:m==="object"?wr:null;return{...r,type:m,is:g,diff:f,attr:n,reflect:a,readonly:r.readonly??!1,enumerable:o,value:r.value??h,parser:d,nullParser:p,key:t,changedCallback:c,watchers:r.watchers??[],values:r.values??new WeakMap,computedValues:r.computedValues??new WeakMap,attributeChangedCallback:r.attributeChangedCallback,needsSelfInvalidation:r.needsSelfInvalidation??new WeakSet}}var Ei=Symbol("PROP_INIT"),yr={nullParser:Ai,is:Object.is,INIT_SYMBOL:Ei};function et(t,e,...i){let r=new Set,o=new Set;function n(d,p,h){return new Proxy(d,{get(g,f){let x=h?`${h}.${f}`:f;p.add(x);let A=Reflect.get(g,f);return typeof A=="object"&&A!=null?n(A,p,x):A},has(g,f){let x=h?`${h}.p`:f;return p.add(x),Reflect.has(g,f)}})}let a=n(e,r),s=n(this??e,o),l=t.call(s,a,...i),c=t.name?!0:!o.size;return{props:new Set([...r,...o]),defaultValue:l,reusable:c}}function St(t,e,i){let r={...yr,...xr(e,i,t),changedCallback:i.changedCallback};function o(c,m){if(c===m)return!1;r.get;let d=m;d=m==null?r.nullParser.call(this,m):r.parser.call(this,d);let p=d;if(c==null){if(d==null)return!1}else if(d!=null&&(c===d||r.diff&&(p=r.diff.call(this,c,d),p==null)||r.is.call(this,c,d)))return!1;return r.values.set(this,d),r.propChangedCallback?.call(this,e,c,d,p),r.changedCallback?.call(this,c,d,p),!0}function n(){return r.values.has(this)?r.values.get(this):r.value}function a(c){let m=this[e];o.call(this,m,c)}function s(){let c=r.computedValues.get(this),m=this[e];r.needsSelfInvalidation.delete(this),o.call(this,c,m)}if(r.get){let{props:c}=et(r.get.bind(t),t,n.bind(t));r.watchers.push(...[...c].map(m=>[m,s]))}let l={enumerable:r.enumerable,get(){if(r.get){let c=r.get.call(this,this,n.bind(this));return r.computedValues.set(this,c),c}return n.call(this)},set(c){if(c!==Ei)if(r.set){r.needsSelfInvalidation.add(this);let m=this[e];r.set.call(this,c,a.bind(this));let d=this[e];if(!r.needsSelfInvalidation.has(this))return;r.needsSelfInvalidation.delete(this),o.call(this,m,d)}else a.call(this,c)}};return Object.defineProperty(t,e,l),r}var De,Ne;function Se(t){return De??=document.implementation.createHTMLDocument(),t==null?De.createDocumentFragment():De.createRange().createContextualFragment(t)}var tt=new Map;function Ct(t){let e=`#${Oe()}`;return tt.set(e,{fn:t}),`{${e}}`}var zt=new Map,Mi=new Map;function it(t,...e){let i=String.raw({raw:t},...e);if(Ne==null)try{let o=new CSSStyleSheet;return Ne=!0,o.replaceSync(i),zt.set(i,o),o}catch{Ne=!1}if(Ne){let o=zt.get(i);return o||(o=new CSSStyleSheet,Ne=!0,o.replaceSync(i),zt.set(i,o)),o}let r=Mi.get(i);return r||(De??=document.implementation.createHTMLDocument(),r=De.createElement("style"),r.textContent=i,Mi.set(i,r)),r.cloneNode(!0)}var Ti=new Map;function At(t,...e){let i,r=e.map(a=>{switch(typeof a){case"string":return a;case"function":return Ct(a);case"object":{if(a==null)return"";let s=Oe();return i??=new Map,i.set(s,a),`<div id="${s}"></div>`}default:throw new Error(`Unexpected substitution: ${a}`)}}),o=String.raw({raw:t},...r);if(i){let a=Se(o);for(let[s,l]of i)a.getElementById(s).replaceWith(l);return a}let n=Ti.get(o);return n||(n=Se(o),Ti.set(o,n)),n.cloneNode(!0)}var kr=/{([^}]*)}/g;function Sr(t){return function(i){let r=i.currentTarget.getRootNode().host;t.call(r,i)}}function Ii(t,e="dot",i={},r=""){for(let[o,n]of Object.entries(t)){if(!o)continue;let a=r?`${r}.${o}`:o;i[a]=n,n!=null&&typeof n=="object"&&Ii(n,e,i,a)}if(Array.isArray(t)){let o=r?`${r}.length`:"length";i[o]=t.length}return i}function zr(t,e){let i=e,r;for(r of t.split(".")){if(!r)throw new Error(`Invalid property: ${t}`);if(!(r in i))return null;i=i[r]}return i===e?null:[r,i]}function Et(t,e){let i=e;for(let r of t.split("."))if(!r||(i=i[r],i==null))return null;return i===e?null:i}var pe=class{bindings=new Map;arrayMetadata=new Map;events=new Map;cloneable;interpolation;styles=[];adoptedStyleSheets=[];stylesFragment;watchers=[];referenceCache=new WeakMap;conditionalElementMetadata=new Map;interpolated=!1;constructor(...e){this.template=Se(),this.append(...e)}*[Symbol.iterator](){for(let e of this.styles)yield e;yield this.template;for(let e of this.watchers)yield e}append(...e){for(let i of e)typeof i=="string"?this.append(Se(i.trim())):typeof i=="function"?this.watchers.push(i):i instanceof pe?this.append(...i):i instanceof DocumentFragment?this.template.append(i):(i instanceof CSSStyleSheet||i instanceof HTMLStyleElement)&&this.styles.push(i);return this}addCompositionEventListener(e){let i=e.id??"",r=this.events.get(i);return r||(r=new Set,this.events.set(i,r)),r.add(e),this}render(e,i,r,o){if(this.initiallyRendered||this.initialRender(e,i),!i)return;let n=new WeakMap,a=new WeakMap,s=Ii(i);for(let[l,c]of Object.entries(s)){let m=this.bindings.get(l);if(m)for(let{id:d,node:p,nodeType:h,fn:g,props:f,negate:x,doubleNegate:A}of m){let b=this.getElement(e,d);if(!b||!b||a.get(b)?.has(p))continue;let _;if(g)if(n.has(g))_=n.get(g);else{let E=structuredClone(i);for(let z of f){if(z in s)continue;let k=z.lastIndexOf(".");if(k===-1)E[z]=o[z];else{let M,S=z,D=z;for(;!M;){if(M=zr(S,E),M){let J=D.slice(S.length+1);M[1][J]=Et(D,o);break}if(k===-1)break;D=z,S=z.slice(0,k),k=S.lastIndexOf(",")}}}_=g.call(r,E),n.set(g,_)}else _=c;if(A?_=!!_:x&&(_=!_),h===Node.TEXT_NODE){let E=p==="#text"?0:Number.parseInt(p.slice(5),10),z=0;for(let k of b.childNodes)if(k.nodeType===Node.TEXT_NODE&&E===z++){k.nodeValue=_??"";break}E>z&&b.append(_)}else if(p==="_if"){let E=e.contains(b),z=b.parentElement==null&&b.parentNode!==e,k=_!==null&&_!==!1;if(z&&b.parentNode,k){if(z){let M=this.conditionalElementMetadata.get(d);if(!M)throw new Error("Could not find conditional element metadata");let S=M.commentCache.get(e);if(!S){let D=M.parentId?this.getElement(e,M.parentId):e;if(!D)throw new Error("Could not find reference parent!");let J=`{#${d}}`;for(let Z of D.childNodes)if(Z.nodeType===Node.COMMENT_NODE&&Z.nodeValue===J){S=Z;break}M.commentCache.set(this,S)}S&&S.replaceWith(b)}}else if(!z){let M=this.conditionalElementMetadata.get(d);if(!M)throw new Error(`Could not find conditional element metadata for ${d}`);let S=M.commentCache.get(e);S||(S=new Comment(`{#${d}}`),M.commentCache.set(this,S)),b.replaceWith(S)}}else _===!1||_==null?b.removeAttribute(p):b.setAttribute(p,_===!0?"":_);let y=a.get(b);y||(y=new Set,a.set(b,y)),y.add(p)}}}#e(e,i,r,o){let{nodeValue:n,nodeName:a,nodeType:s}=e;if(o==null){if(!n)return!1;let _=n.trim();if(!_)return!1;if(s===Node.ATTRIBUTE_NODE){if(_[0]!=="{")return!1;let{length:y}=_;if(_[y-1]!=="}")return!1;o=_.slice(1,-1)}else{let y=_.split(kr);if(y.length<3)return!1;if(y.length===3&&!y[0]&&!y[2])o=y[1];else return y.forEach((E,z)=>{if(z%2){let k=new Text;e.before(k),this.#e(k,i,r,E)}else{if(!E)return;e.before(E)}}),!0}}let l=o[0]==="!",c=!1;l&&(o=o.slice(1),c=o[0]==="!",c&&(o=o.slice(1)));let m,d;if(s===Node.TEXT_NODE){i!==e.parentElement&&(i=e.parentElement),d=0;let _=e;for(;_=_.previousSibling;)_.nodeType===Node.TEXT_NODE&&d++}else if(i!==e.ownerElement&&(i=e.ownerElement),a.startsWith("on")){if(a[2]!=="-")return!1;m=!0}let p=Ze(i,!0);if(m){let _=a.slice(3),[,y,E]=_.match(/^([*1~]+)?(.*)$/),z={once:y?.includes("1"),passive:y?.includes("~"),capture:y?.includes("*")};i.removeAttribute(a);let k=this.events.get(p);return k||(k=new Set,this.events.set(p,k)),o.startsWith("#")?k.add({type:E,handleEvent:tt.get(o).fn,...z}):k.add({type:E,prop:o,...z}),!1}let h,g,f,x;if(o.startsWith("#")){if(x=tt.get(o),!x)return!1;x.props?(g=x.props,f=x.defaultValue??null):f=x.fn}else f=Et(o,r);if(!g)if(typeof f=="function"){let _=et.call(this,f,r);h=f,f=_.defaultValue,g=_.props}else g=new Set([o]);typeof f=="symbol"&&(f=null),c?f=!!f:l&&(f=!f),x&&(x.defaultValue=f,x.props=g);let A=d?a+d:a,b={id:p,node:A,fn:h,props:g,nodeType:s,defaultValue:f,negate:l,doubleNegate:c};for(let _ of g){let y=this.bindings.get(_);y||(y=new Set,this.bindings.set(_,y)),y.add(b)}if(s===Node.TEXT_NODE)e.nodeValue=f??"";else if(a==="_if"){if(i.removeAttribute(a),f==null||f===!1)return!0}else f==null||f===!1?i.removeAttribute(a):i.setAttribute(a,f===!0?"":f);return!1}interpolate(e){this.cloneable=this.template.cloneNode(!0);let i=[],r=5,o=document.createTreeWalker(this.cloneable,r),n=o.nextNode();for(;n;){let a=null,s=!1;switch(n.nodeType){case Node.ELEMENT_NODE:if(a=n,a instanceof HTMLTemplateElement){n=o.nextSibling();continue}if(n instanceof HTMLStyleElement&&n.parentNode===this.cloneable){this.styles.push(n),n.remove(),n=o.nextSibling();continue}if(n instanceof HTMLScriptElement){n.remove(),n=o.nextSibling();continue}for(let l of[...a.attributes].reverse()){if(l.nodeName==="_if"){let c=Ze(a,!0),m=a.parentElement?Ze(a.parentElement,!0):null;this.conditionalElementMetadata.set(c,{element:a,id:c,parentId:m,commentCache:new WeakMap})}s||=this.#e(l,a,e)}break;case Node.TEXT_NODE:if(a=n.parentNode,this.#e(n,a,e)){let l=o.nextNode();n.remove(),n=l;continue}break;default:throw new Error(`Unexpected node type: ${n.nodeType}`)}s&&i.push(a),n=o.nextNode()}this.interpolation=this.cloneable.cloneNode(!0);for(let a of[...i].reverse()){let{id:s}=a;a.replaceWith(new Comment(`{#${s}}`))}for(let a of this.watchers)this.bindWatcher(a,e);"adoptedStyleSheets"in document?this.adoptedStyleSheets=[...yi(this.styles)]:(this.stylesFragment=Se(),this.stylesFragment.append(...ki(this.styles))),this.interpolated=!0}initialRender(e,i){this.interpolated||this.interpolate(i),"adoptedStyleSheets"in e?e.adoptedStyleSheets=[...e.adoptedStyleSheets,...this.adoptedStyleSheets]:e instanceof ShadowRoot&&e.append(this.stylesFragment.cloneNode(!0)),e.append(this.cloneable.cloneNode(!0));let r=e instanceof ShadowRoot?e.host:e;for(let[o,n]of[...this.events].reverse())for(let a of[...n].reverse()){let s=a.listener;if(!s)if(e instanceof ShadowRoot)s=a.handleEvent??Et(a.prop,i),o&&(s=Sr(s)),a.listener=s;else throw new TypeError("Anonymous event listeners cannot be used in templates");let l=o?e.getElementById(o):r;l&&l.addEventListener(a.type,s,a)}this.initiallyRendered=!0}attachEventListeners(e,i){if(this.events.get(e))for(let o of[...this.events.get(e)].reverse()){let{listener:n}=o;if(!n)throw new Error("Template must be interpolated before attaching events");i.addEventListener(o.type,n,o)}}getReferences(e){let i=this.referenceCache.get(e);return i||(i=new Map,this.referenceCache.set(e,i)),i}getElement(e,i){let r=this.getReferences(e),o=r.get(i);if(o)return o;if(o===null)return null;if(o=e.getElementById(i),o)return r.set(i,o),o;let n,a=this.conditionalElementMetadata.get(i)?.element;if(!a){let c=this.interpolation.getElementById(i);if(!c)return r.set(i,null),null;let m=c;for(;(m=m.parentElement)!=null;){let d=m.id;if(!d){a=m;continue}let p=r.get(d);if(p){n=p;break}let h=e.getElementById(d);if(h){r.set(d,h),n=p;break}let g=this.conditionalElementMetadata.get(d)?.element;if(g){a=g;break}a=m}}n??=a.cloneNode(!0);let s=n,l=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT);do{let c=s.id;!o&&c===i&&(o=s),c&&(r.set(c,s),a&&this.attachEventListeners(i,o))}while(s=l.nextNode());return o}bindWatcher(e,i){let{props:r,defaultValue:o,reusable:n}=et(e,i),a={fn:e,props:r,defaultValue:o};for(let s of r){let l=this.bindings.get(s);l||(l=new Set,this.bindings.set(s,l)),l.add(a)}return n}};var rt=class extends HTMLElement{};function T(t,e){return(i,r,o)=>{r==null?o.refs[e].removeAttribute(t):o.refs[e].setAttribute(t,r)}}var Cr=/^([*1~]+)?(.*)$/,ot,Ve,He,V,nt,Ri,se=class extends rt{constructor(...i){super();O(this,nt);O(this,ot,void 0);O(this,Ve,new Map);O(this,He,new Map);O(this,V,void 0);I(this,"_propAttributeCache");I(this,"_callbackArguments",null);se.supportsElementInternals&&(this.elementInternals=this.attachInternals()),this.attachShadow({mode:"open",delegatesFocus:this.delegatesFocus}),this.composition.initialRender(this.shadowRoot,this);for(let r of this.static._onConstructedCallbacks)r.call(this,this.callbackArguments)}static get observedAttributes(){let i=new Set;for(let r of this.propList.values())(r.reflect===!0||r.reflect==="read")&&i.add(r.attr);return i}compose(){return w(this,V),ee(this,V,new pe),w(this,V)}static _addCallback(i,r){this.hasOwnProperty(i)||(this[i]=[...this[i]]),this[i].push(r)}static append(...i){return this.on({composed({composition:r}){r.append(...i)}}),this}static css(i,...r){return Array.isArray(i)?this.append(it(i,...r)):this.append(i,...r),this}static setSchema(i){return this.schema=i,this}static autoRegister(i){return i&&(this.elementName=i),queueMicrotask(()=>{this.autoRegistration&&this.register()}),this}static html(i,...r){return this.on({composed({composition:o}){o.append(At(i,...r))}}),this}static extend(){return class extends this{}}static tsClassFix(){return this}static setStatic(i){return Object.assign(this,i),this}static readonly(i,r){return this.set(i,{...r,writable:!1})}static set(i,r){return Object.defineProperties(this.prototype,Object.fromEntries(Object.entries(i).map(([o,n])=>(this.undefine(o),[o,{enumerable:o[0]!=="_",configurable:!0,value:n,writable:!0,...r}])))),this}static mixin(i){return i(this)}static register(i,r=!1){return this.hasOwnProperty("defined")&&this.defined&&!r?this:(i&&(this.elementName=i),customElements.define(this.elementName,this),se.registrations.set(this.elementName,this),this.defined=!0,this)}static get propList(){return this.hasOwnProperty("_props")||(this._props=new Map(this._props)),this._props}static get propChangedCallbacks(){return this.hasOwnProperty("_propChangedCallbacks")||(this._propChangedCallbacks=new Map([...this._propChangedCallbacks].map(([i,r])=>[i,r.slice()]))),this._propChangedCallbacks}static get attributeChangedCallbacks(){return this.hasOwnProperty("_attributeChangedCallbacks")||(this._attributeChangedCallbacks=new Map([...this._attributeChangedCallbacks].map(([i,r])=>[i,r.slice()]))),this._attributeChangedCallbacks}static prop(i,r){let o={...typeof r=="string"?{type:r}:r},n=o.changedCallback;n&&this.onPropChanged({[i]:n}),o.changedCallback=function(l,c,m){this._onObserverPropertyChanged.call(this,i,l,c,m)};let a=St(this.prototype,i,o);this.propList.set(i,a);for(let[s,l]of a.watchers)this.on(`${s}Changed`,l);return a.INIT_SYMBOL}static define(i){return Object.defineProperties(this.prototype,Object.fromEntries(Object.entries(i).map(([r,o])=>(this.undefine(r),[r,{enumerable:r[0]!=="_",configurable:!0,...typeof o=="function"?{get:o}:o}])))),this}static undefine(i){Reflect.deleteProperty(this.prototype,i);let r=this.propList.get(i);if(r&&r.watchers.length){let o=this.propChangedCallbacks.get(i);if(o)for(let n of r.watchers){let a=o.indexOf(n);a!==-1&&o.splice(a,1)}}return this.propList.delete(i),this}static observe(i){for(let[r,o]of Object.entries(i??{}))typeof o=="function"?this.prop(r,{reflect:!1,get:o}):this.prop(r,o);return this}static defineStatic(i){for(let[r,o]of Object.entries(i??{}))St(this,r,{reflect:!1,...typeof o=="function"?{get:o}:typeof o=="string"?{type:o}:o});return this}static events(i,r){return this.on({composed({composition:o}){for(let[n,a]of Object.entries(i)){let[,s,l]=n.match(Cr);o.addCompositionEventListener({type:l,once:s?.includes("1"),passive:s?.includes("~"),capture:s?.includes("*"),...typeof a=="function"?{handleEvent:a}:typeof a=="string"?{prop:a}:a,...r})}}}),this}static childEvents(i,r){for(let[o,n]of Object.entries(i))this.events(n,{id:o,...r});return this}static on(i,r){let o=typeof i=="string"?{[i]:r}:i;for(let[n,a]of Object.entries(o)){let s;switch(n){case"composed":s="_onComposeCallbacks";break;case"constructed":s="_onConstructedCallbacks";break;case"connected":s="_onConnectedCallbacks";break;case"disconnected":s="_onDisconnectedCallbacks";break;case"props":this.onPropChanged(a);continue;case"attrs":this.onAttributeChanged(a);continue;default:if(n.endsWith("Changed")){let l=n.slice(0,n.length-7);this.onPropChanged({[l]:a});continue}throw new Error("Invalid callback name")}this._addCallback(s,a)}return this}static onPropChanged(i){for(let[r,o]of Object.entries(i)){let n=this.propChangedCallbacks.get(r);n||(n=[],this.propChangedCallbacks.set(r,n)),n.push(o)}return this}static onAttributeChanged(i){for(let[r,o]of Object.entries(i)){let n=r.toLowerCase(),a=this.attributeChangedCallbacks.get(n);a||(a=[],this.attributeChangedCallbacks.set(n,a)),a.push(o)}return this}render(i,r){this.composition.render(this.shadowRoot,i,this,r?{...this,store:r}:this)}propChangedCallback(i,r,o,n=o){this.render({[i]:n});let a=this.static.propChangedCallbacks.get(i);if(a)for(let s of a)s.call(this,r,o,n,this)}attributeChangedCallback(i,r,o){let n=this.static.attributeChangedCallbacks.get(i.toLowerCase());if(n)for(let a of n)a.call(this,r,o,this);for(let a of this.static.propList.values()){if(a.attr!==i)continue;if(a.reflect!==!0&&a.reflect!=="read")return;if(a.attributeChangedCallback){a.attributeChangedCallback.call(this,i,r,o);return}let[s]=this.attributeCache.get(i)??[null,null];if(s===o)return;let l=this[a.key],c=o===null?a.nullParser(o):a.type==="boolean"?!0:a.parser(o);if(c===l)return;this.attributeCache.set(i,[o,c]),this[a.key]=c;return}}_onObserverPropertyChanged(i,r,o,n){let{reflect:a,attr:s}=this.static.propList.get(i);if(s&&(a===!0||a==="write")){let[,l]=this.attributeCache.get(s)??[null,null];if(l!==o){let c=zi(o);this.attributeCache.set(s,[c,o]),c==null?this.removeAttribute(s):this.setAttribute(s,c)}}this.propChangedCallback(i,r,o,n)}get refs(){return w(this,ot)??ee(this,ot,new Proxy({},{get:(i,r)=>{w(this,V);let o=this.composition;if(!o.interpolated){let s=w(this,He).get(r)?.deref();if(s)return s;let l=$e(r);return s=o.template.getElementById(l),s?(w(this,He).set(r,new WeakRef(s)),s):null}let n=w(this,Ve).get(r)?.deref();if(n)return n;let a=$e(r);return n=o.getElement(this.shadowRoot,a),n?(w(this,Ve).set(r,new WeakRef(n)),n):null}}))}get attributeCache(){return this._propAttributeCache??=new Map,this._propAttributeCache}get tabIndex(){return super.tabIndex}set tabIndex(i){if(!(i===super.tabIndex&&i!==-1)){if(this.delegatesFocus&&document.activeElement===this){if(this.getAttribute("tabindex")===i.toString())return;let r=o=>{o.stopImmediatePropagation(),o.stopPropagation(),o.type==="blur"&&this.focus()};this.addEventListener("blur",r,{capture:!0,once:!0}),this.addEventListener("focus",r,{capture:!0,once:!0}),super.tabIndex=i,this.removeEventListener("blur",r,{capture:!0}),this.removeEventListener("focus",r,{capture:!0});return}super.tabIndex=i}}get static(){return this.constructor}get unique(){return!1}get callbackArguments(){return this._callbackArguments??={composition:w(this,V),html:At.bind(this),inline:Ct,template:w(this,nt,Ri),element:this}}get composition(){if(w(this,V))return w(this,V);if(!this.unique&&this.static.hasOwnProperty("_composition"))return ee(this,V,this.static._composition),this.static._composition;this.compose();for(let i of this.static._onComposeCallbacks)i.call(this,this.callbackArguments);return this.unique||(this.static._composition=w(this,V)),w(this,V)}connectedCallback(){for(let i of this.static._onConnectedCallbacks)i.call(this,this.callbackArguments)}disconnectedCallback(){for(let i of this.static._onDisconnectedCallbacks)i.call(this,this.callbackArguments)}},u=se;ot=new WeakMap,Ve=new WeakMap,He=new WeakMap,V=new WeakMap,nt=new WeakSet,Ri=function(){return w(this,V)?.template},I(u,"elementName"),I(u,"_composition",null),I(u,"_props",new Map),I(u,"_propChangedCallbacks",new Map),I(u,"_attributeChangedCallbacks",new Map),I(u,"_onComposeCallbacks",[]),I(u,"_onConnectedCallbacks",[]),I(u,"_onDisconnectedCallbacks",[]),I(u,"_onConstructedCallbacks",[]),I(u,"interpolatesTemplate",!0),I(u,"supportsElementInternals","attachInternals"in HTMLElement.prototype),I(u,"supportsElementInternalsRole",se.supportsElementInternals&&"role"in ElementInternals.prototype),I(u,"templatable",null),I(u,"defined",!1),I(u,"autoRegistration",!0),I(u,"registrations",new Map),I(u,"expressions",se.set),I(u,"methods",se.set),I(u,"overrides",se.set),I(u,"props",se.observe);u.prototype.delegatesFocus=!1;function H(t){return t.extend().observe({density:"integer"}).css`:host{--mdw-density: var(--mdw-density__default, 0)}:host([density]){--mdw-density: 0}:host([density="-1"]){--mdw-density: -1}:host([density="-2"]){--mdw-density: -2}:host([density="-3"]){--mdw-density: -2}:host([density="-4"]){--mdw-density: -4}:host([density="1"]){--mdw-density: 1}:host([density="2"]){--mdw-density: 2}:host([density="3"]){--mdw-density: 3}:host([density="4"]){--mdw-density: 3}`}function L(t){return t.extend().observe({shapeTop:"boolean",shapeBottom:"boolean",shapeStart:"boolean",shapeEnd:"boolean",shapeStyle:"string",outlined:"boolean"}).html`<div id=shape part=shape class=shape elevated={elevated} shape-top={shapeTop} shape-bottom={shapeBottom} shape-start={shapeStart} shape-end={shapeEnd} shape-style={shapeStyle} color={color} outlined={outlined} disabled={disabledState}><div id=outline _if={outlined} class=outline disabled={disabledState} focused={focusedState} pressed={pressedState} hovered={hoveredState}><div id=outline-left class="outline-section outline-left"></div><div id=outline-right class="outline-section outline-right"></div></div></div>`.css`:host{--mdw-shape__size: 0px;--mdw-shape__bg: transparent;--mdw-surface__will-change: none;--mdw-shape__size__top-start-size: var(--mdw-shape__size);--mdw-shape__size__top-end-size: var(--mdw-shape__size);--mdw-shape__size__bottom-start-size: var(--mdw-shape__size);--mdw-shape__size__bottom-end-size: var(--mdw-shape__size);--mdw-shape__ltr: calc(.5 * var(--mdw-dir, 1) + .5);--mdw-shape__rtl: calc(-.5 * var(--mdw-dir, 1) + .5);--mdw-shape__size__top-left-size: calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__top-right-size: calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__bottom-left-size: calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-end-size)));--mdw-shape__size__bottom-right-size: calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-end-size)));--mdw-shape__rounded: 1;--mdw-shape__inline-start-deg: calc(var(--mdw-dir, 1) * -90deg);z-index:0}:host([shape-style="none"]){--mdw-shape__size: 0px}:host([shape-style="extra-small"]){--mdw-shape__size: var(--mdw-shape__extra-small)}:host([shape-style="small"]){--mdw-shape__size: var(--mdw-shape__small)}:host([shape-style="medium"]){--mdw-shape__size: var(--mdw-shape__medium)}:host([shape-style="large"]){--mdw-shape__size: var(--mdw-shape__large)}:host([shape-style="extra-large"]){--mdw-shape__size: var(--mdw-shape__extra-large)}:host([shape-style="full"]){--mdw-shape__size: var(--mdw-shape__full)}:host([shape-style="inherit"]){--mdw-shape__size: inherit}:host([shape-top]){--mdw-shape__size__bottom-start-size: 0px;--mdw-shape__size__bottom-end-size: 0px;--mdw-shape__mask: linear-gradient(transparent 50%, black 50%)}:host([shape-bottom]){--mdw-shape__size__top-start-size: 0px;--mdw-shape__size__top-end-size: 0px;--mdw-shape__mask: linear-gradient(black 50%, transparent 50%)}:host([shape-start]){--mdw-shape__size__top-end-size: 0px;--mdw-shape__size__bottom-end-size: 0px;--mdw-shape__mask: linear-gradient(var(--mdw-shape__inline-start-deg), black 50%, transparent 50%)}:host([shape-end]){--mdw-shape__size__top-start-size: 0px;--mdw-shape__size__bottom-start-size: 0px;--mdw-shape__mask: linear-gradient(var(--mdw-shape__inline-start-deg), transparent 50%, black 50%)}@supports (-webkit-mask-box-image: none){:host{--mdw-shape__rounded: inherit}}`.css`.shape{position:absolute;inset:0;overflow:hidden;z-index:-1;background-color:var(--mdw-shape__bg, transparent);border-start-start-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__top-start-size));border-start-end-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__top-end-size));border-end-start-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__bottom-start-size));border-end-end-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__bottom-end-size));transition-delay:1ms;transition-duration:.2s;transition-property:background-color,color;will-change:background-color,color}.shape[outlined]{background-color:transparent}.shape[color]{background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}.shape:is([color="none"],[color="transparent"]){background-color:transparent}@supports (-webkit-mask-box-image: none){.shape{-webkit-mask-box-image:var(--mdw-shape__mask-border-source) 8 fill / var(--mdw-shape__size) stretch;-webkit-mask:var(--mdw-shape__mask);transition-duration:.2s,.2s,.2s;transition-property:background-color,color,-webkit-mask-box-image-width;will-change:background-color,color,-webkit-mask-box-image}}`.css`.outline{position:absolute;inset:0;pointer-events:none;border-color:currentColor;border-radius:inherit;color:rgb(var(--mdw-color__outline))}.outline:is([pressed],[focused]){color:rgb(var(--mdw-ink));transition-delay:0;transition-duration:0}.outline[disabled]{color:rgba(var(--mdw-color__on-surface),.12)}.outline:before{content:"";position:absolute;inset:0;border-style:solid;border-width:1px;border-radius:inherit}@supports (-webkit-mask-box-image: none){.outline:before{content:none}.outline:after{content:"";position:absolute;inset:0;-webkit-mask-box-image:var(--mdw-shape__mask-image__edges) 8 fill / auto stretch;background-color:currentColor}.outline-section{position:absolute;inset:0}.outline-section:before,.outline-section:after{content:"";position:absolute;max-block-size:50%;max-inline-size:50%;-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain;background-color:currentColor;transition-duration:.2s;transition-property:width,height}.outline-left:before{left:calc(-1px * var(--mdw-shape__convex));inset-block-start:calc(-1px * var(--mdw-shape__convex));block-size:calc(var(--mdw-shape__size__top-left-size));inline-size:calc(var(--mdw-shape__size__top-left-size));padding-right:calc(2px * var(--mdw-shape__convex));padding-block-end:calc(2px * var(--mdw-shape__convex));-webkit-mask-image:var(--mdw-shape__mask-image__top-left)}.outline-left:after{left:calc(-1px * var(--mdw-shape__convex));inset-block-end:calc(-1px * var(--mdw-shape__convex));block-size:var(--mdw-shape__size__bottom-left-size);inline-size:var(--mdw-shape__size__bottom-left-size);padding-right:calc(2px * var(--mdw-shape__convex));padding-block-start:calc(2px * var(--mdw-shape__convex));-webkit-mask-image:var(--mdw-shape__mask-image__bottom-left);-webkit-mask-position-y:100%}.outline-right:before{right:calc(-1px * var(--mdw-shape__convex));inset-block-start:calc(-1px * var(--mdw-shape__convex));block-size:var(--mdw-shape__size__top-right-size);inline-size:var(--mdw-shape__size__top-right-size);padding-left:calc(2px * var(--mdw-shape__convex));padding-block-end:calc(2px * var(--mdw-shape__convex));-webkit-mask-image:var(--mdw-shape__mask-image__top-right);-webkit-mask-position-x:100%}.outline-right:after{right:calc(-1px * var(--mdw-shape__convex));inset-block-end:calc(-1px * var(--mdw-shape__convex));block-size:var(--mdw-shape__size__bottom-right-size);inline-size:var(--mdw-shape__size__bottom-right-size);padding-left:calc(2px * var(--mdw-shape__convex));padding-block-start:calc(2px * var(--mdw-shape__convex));-webkit-mask-image:var(--mdw-shape__mask-image__bottom-right);-webkit-mask-position-x:100%;-webkit-mask-position-y:100%}}`}function v(t){return t.extend().observe({color:"string",ink:"string",block:"boolean",typeStyle:"string"}).css`:host([color="primary"]){--mdw-bg: var(--mdw-color__primary);--mdw-ink: var(--mdw-color__on-primary)}:host([color="primary-container"]){--mdw-bg: var(--mdw-color__primary-container);--mdw-ink: var(--mdw-color__on-primary-container)}:host([color="secondary"]){--mdw-bg: var(--mdw-color__secondary);--mdw-ink: var(--mdw-color__on-secondary)}:host([color="secondary-container"]){--mdw-bg: var(--mdw-color__secondary-container);--mdw-ink: var(--mdw-color__on-secondary-container)}:host([color="tertiary"]){--mdw-bg: var(--mdw-color__tertiary);--mdw-ink: var(--mdw-color__on-tertiary)}:host([color="tertiary-container"]){--mdw-bg: var(--mdw-color__tertiary-container);--mdw-ink: var(--mdw-color__on-tertiary-container)}:host([color="error"]){--mdw-bg: var(--mdw-color__error);--mdw-ink: var(--mdw-color__on-error)}:host([color="error-container"]){--mdw-bg: var(--mdw-color__error-container);--mdw-ink: var(--mdw-color__on-error-container)}:host([color="background"]){--mdw-bg: var(--mdw-color__background);--mdw-ink: var(--mdw-color__on-background)}:host([color^="surface"]){--mdw-bg: var(--mdw-color__surface);--mdw-ink: var(--mdw-color__on-surface)}:host([color="surface-primary"]){--mdw-ink: var(--mdw-color__primary)}:host([color$="variant"]){--mdw-bg: var(--mdw-color__surface-variant);--mdw-ink: var(--mdw-color__on-surface-variant)}:host([color^="inverse"]){--mdw-bg: var(--mdw-color__inverse-surface);--mdw-ink: var(--mdw-color__inverse-on-surface)}:host([color="inverse-primary"]){--mdw-ink: var(--mdw-color__inverse-primary)}:host([ink="inverse-primary"]){--mdw-ink: var(--mdw-color__inverse-primary)}:host([ink="primary"]){--mdw-ink: var(--mdw-color__primary)}:host([ink="on-primary-container"]){--mdw-ink: var(--mdw-color__on-primary-container)}:host([ink="secondary"]){--mdw-ink: var(--mdw-color__secondary)}:host([ink="on-secondary-container"]){--mdw-ink: var(--mdw-color__on-secondary-container)}:host([ink="tertiary"]){--mdw-ink: var(--mdw-color__tertiary)}:host([ink="on-tertiary-container"]){--mdw-ink: var(--mdw-color__on-tertiary-container)}:host([ink="error"]){--mdw-ink: var(--mdw-color__error)}:host([ink="outline"]){--mdw-ink: var(--mdw-color__outline)}:host([ink="on-surface"]){--mdw-ink: var(--mdw-color__on-surface)}:host([ink="surface-variant"]){--mdw-ink: var(--mdw-color__surface-variant)}:host([ink="on-surface-variant"]){--mdw-ink: var(--mdw-color__on-surface-variant)}:host([ink="inverse-on-surface"]){--mdw-ink: var(--mdw-color__inverse-on-surface)}:host([ink="inherit"]){--mdw-ink: inherit}:host([type-style|="display"]){--mdw-type__font: var(--mdw-typescale__display-large__font);--mdw-type__letter-spacing: var(--mdw-typescale__display-large__letter-spacing)}:host([type-style="display-medium"]){--mdw-type__font: var(--mdw-typescale__display-medium__font);--mdw-type__letter-spacing: var(--mdw-typescale__display-medium__letter-spacing)}:host([type-style="display-small"]){--mdw-type__font: var(--mdw-typescale__display-small__font);--mdw-type__letter-spacing: var(--mdw-typescale__display-small__letter-spacing)}:host([type-style|="headline"]){--mdw-type__font: var(--mdw-typescale__headline-large__font);--mdw-type__letter-spacing: var(--mdw-typescale__headline-large__letter-spacing)}:host([type-style="headline-medium"]){--mdw-type__font: var(--mdw-typescale__headline-medium__font);--mdw-type__letter-spacing: var(--mdw-typescale__headline-medium__letter-spacing)}:host([type-style="headline-small"]){--mdw-type__font: var(--mdw-typescale__headline-small__font);--mdw-type__letter-spacing: var(--mdw-typescale__headline-small__letter-spacing)}:host([type-style|="title"]){--mdw-type__font: var(--mdw-typescale__title-large__font);--mdw-type__letter-spacing: var(--mdw-typescale__title-large__letter-spacing)}:host([type-style="title-medium"]){--mdw-type__font: var(--mdw-typescale__title-medium__font);--mdw-type__letter-spacing: var(--mdw-typescale__title-medium__letter-spacing)}:host([type-style="title-small"]){--mdw-type__font: var(--mdw-typescale__title-small__font);--mdw-type__letter-spacing: var(--mdw-typescale__title-small__letter-spacing)}:host([type-style|="label"]){--mdw-type__font: var(--mdw-typescale__label-large__font);--mdw-type__letter-spacing: var(--mdw-typescale__label-large__letter-spacing)}:host([type-style="label-medium"]){--mdw-type__font: var(--mdw-typescale__label-medium__font);--mdw-type__letter-spacing: var(--mdw-typescale__label-medium__letter-spacing)}:host([type-style="label-small"]){--mdw-type__font: var(--mdw-typescale__label-small__font);--mdw-type__letter-spacing: var(--mdw-typescale__label-small__letter-spacing)}:host([type-style|="body"]){--mdw-type__font: var(--mdw-typescale__body-large__font);--mdw-type__letter-spacing: var(--mdw-typescale__body-large__letter-spacing)}:host([type-style="body-medium"]){--mdw-type__font: var(--mdw-typescale__body-medium__font);--mdw-type__letter-spacing: var(--mdw-typescale__body-medium__letter-spacing)}:host([type-style="body-small"]){--mdw-type__font: var(--mdw-typescale__body-small__font);--mdw-type__letter-spacing: var(--mdw-typescale__body-small__letter-spacing)}`}var Ar=u.mixin(v).mixin(H).mixin(L).extend().html`<slot id=slot></slot>`.css`:host{--mdw-shape__size: 8px;--mdw-ink: var(--mdw-color__on-error);--mdw-shape__bg: rgb(var(--mdw-color__error));--mdw-type__font: var(--mdw-typescale__label-small__font);--mdw-type__letter-spacing: var(--mdw-typescale__label-small__letter-spacing);position:relative;display:inline-block;vertical-align:middle;box-sizing:border-box;min-block-size:var(--mdw-typescale__label-small__line-height);min-inline-size:var(--mdw-typescale__label-small__line-height);padding-inline:max(4px,calc(4px + (var(--mdw-density) * 2px)));color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);text-align:center}@supports (width: 1lh){:host{min-block-size:1lh;min-inline-size:1lh;padding-inline:max(.25lh,calc(.25lh + (var(--mdw-density) * 2px)))}}:host(:empty){vertical-align:middle}:host(:empty) #shape{inset:5px}`.autoRegister("mdw-badge");function ue(t){return t.extend().observe({flex:{type:"string",empty:"row",value:"row"},x:{type:"string",empty:"start",value:"start"},y:{type:"string",empty:"start",value:"start"},gap:"float",padding:"float"}).css`:host{box-sizing:border-box}:host([flex]){display:flex}:host([flex="column"]){flex-direction:column}:host(:where([flex][y="start"],[flex="column"][x="start"])){align-items:flex-start}:host(:where([flex][y="end"],[flex="column"][x="end"])){align-items:flex-end}:host(:where([flex][y="center"],[flex="column"][x="center"])){align-items:center}:host(:where([flex][y="between"],[flex="column"][x="between"])){align-items:space-between}:host(:where([flex][y="around"],[flex="column"][x="around"])){align-items:space-around}:host(:where([flex][y="stretch"],[flex="column"][x="stretch"])){align-items:stretch}:host(:where([flex][x="start"],[flex="column"][y="start"])){justify-content:flex-start}:host(:where([flex][x="end"],[flex="column"][y="end"])){justify-content:flex-end}:host(:where([flex][x="center"],[flex="column"][y="center"])){justify-content:center}:host(:where([flex][x="between"],[flex="column"][y="between"])){justify-content:space-between}:host(:where([flex][x="stretch"],[flex="column"][y="stretch"])){justify-content:space-around}:host([wrap]){flex-wrap:wrap}:host([wrap="reverse"]){flex-wrap:wrap-reverse}:host([gap="4"]){gap:4px}:host([gap="8"]){gap:8px}:host([gap="12"]){gap:12px}:host([gap="16"]){gap:16px}:host([gap="20"]){gap:20px}:host([gap="24"]){gap:24px}:host([padding="4"]){padding:4px}:host([padding="8"]){padding:8px}:host([padding="12"]){padding:12px}:host([padding="16"]){padding:16px}:host([padding="20"]){padding:20px}:host([padding="24"]){padding:24px}`}var $=u.mixin(v).mixin(ue).extend().observe({inline:"boolean",block:{type:"boolean",empty:!0}}).css`:host{display:block}:host([inline]){display:inline-block}:host([flex]:where([inline])){display:inline-flex}:host([color]){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}:host([ink]){color:rgb(var(--mdw-ink))}:host([type-style]){font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}#slot{block-size:inherit;inline-size:inherit}`.html`<slot id=slot type-style={typeStyle}></slot>`.autoRegister("mdw-box");var Er=$.extend().css`:host{font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}:host([size="medium"]){font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}:host([size="small"]){font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}`.autoRegister("mdw-body");function P(t){return t.extend().observe({_ariaRole:"string"}).methods({updateAriaProperty(e,i){if(this.elementInternals&&e in this.elementInternals)this.elementInternals[e]=i;else if(e in this)this[e]=i;else{let r=e;r.startsWith("aria")&&(r=`aria-${r.slice(4).toLowerCase()}`),i==null?this.removeAttribute(e):this.setAttribute(r,i)}}}).on({_ariaRoleChanged(e,i){this.updateAriaProperty("role",i)},constructed(){this.updateAriaProperty("role",this._ariaRole)}})}var Mr=["button","[href]","input","select","textarea","[tabindex]"].join(", ");function G(t){return t.extend().observe({kbdNav:{empty:"true"},_kbdFocusable:{empty:!0}}).define({kbdNavQuery(){return Mr},kbdNavFocusableWhenDisabled(){return!0},ariaOrientationDefault(){return"vertical"}}).define({kbdNavChildren(){return this.querySelectorAll(this.kbdNavQuery)}}).methods({_ariaOrientationIsVertical(){return(this.ariaOrientation??this.getAttribute("aria-orientation")??this.ariaOrientationDefault)==="vertical"},focusNext(e=null,i=!0,r=!1){let o=!1,n=r?[...this.kbdNavChildren].reverse():this.kbdNavChildren;for(let a of n){if(!o){o=e?a===e:a.getAttribute("tabindex")==="0";continue}if(a.hasAttribute("tabindex")&&a.getAttribute("aria-hidden")!=="true"&&we(a))return this.ariaActiveDescendantElement=a,a}if(!i)return document.activeElement!==e&&e instanceof HTMLElement&&e.focus(),e;for(let a of n)if(a.hasAttribute("tabindex")&&a.getAttribute("aria-hidden")!=="true"&&(we(a)||a===e))return a;return null},focusPrevious(e,i=!0){return this.focusNext(e,i,!0)},focus(...e){if(!we(this.ariaActiveDescendantElement,...e)){for(let i of this.kbdNavChildren)if(i.getAttribute("tabindex")==="0"&&i instanceof HTMLElement){this.ariaActiveDescendantElement=i,i.focus(...e);return}this.focusNext()}},refreshTabIndexes(){if(this.kbdNav!=="true")return;let e=null,i=null,r=null;for(let o of this.kbdNavChildren)!e&&document.activeElement===o?e=o:!i&&o.getAttribute("tabindex")==="0"?i=o:(!r&&o.getAttribute("aria-hidden")!=="true"&&(this.kbdNavFocusableWhenDisabled||o.getAttribute("aria-disabled")!=="true")&&(r=o),o.tabIndex=-1),o.hasAttribute("tabindex")||(o.tabIndex=document.activeElement===o?0:-1);e?e.tabIndex=0:i?e&&(i.tabIndex=-1):r&&(r.tabIndex=0)}}).events({focusin(e){if(this.kbdNav!=="true")return;let i=e.target;if(i.matches(this.kbdNavQuery)){this.ariaActiveDescendantElement=i,i.getAttribute("tabindex")!=="0"&&(i.tabIndex=0);for(let o of this.kbdNavChildren)o!==i&&o.hasAttribute("tabindex")&&(o.tabIndex=-1)}},keydown(e){if(!(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&this.kbdNav==="true"){switch(e.key){case"ArrowUp":case"Up":this._ariaOrientationIsVertical()&&this.focusPrevious();break;case"ArrowDown":case"Down":this._ariaOrientationIsVertical()&&this.focusNext();break;case"ArrowLeft":case"Left":if(this._ariaOrientationIsVertical())return;kt(this)?this.focusNext():this.focusPrevious();break;case"ArrowRight":case"Right":if(this._ariaOrientationIsVertical())return;kt(this)?this.focusPrevious():this.focusNext();break;default:return}e.stopPropagation(),e.preventDefault()}}}).on({connected(){this.refreshTabIndexes()}})}function ze(t){return t.mixin(G).extend().set({ariaOrientationDefault:"horizontal"})}function te(t){return t.extend().observe({elevated:"boolean",elevation:"integer",_raised:{type:"boolean",get({hoveredState:e,pressedState:i}){return e&&!i}}}).expressions({showSurfaceTint({elevated:e,elevation:i,disabledState:r,color:o}){return(e||i!==null)&&!r&&(!o||o.includes("surface"))}}).html`<div id=surface class=surface raised={_raised} disabled={disabledState} color={color}><div _if={showSurfaceTint} id=surface-tint class=surface-tint raised={_raised} color={color} aria-hidden=true></div></div>`.css`:host{--mdw-surface__shadow__0: drop-shadow(0px 1px 001px rgba(0,0,0,000)) drop-shadow(0px 1px 2.5px rgba(0,0,0,00000));--mdw-surface__shadow__1: drop-shadow(0px 1px 001px rgba(0,0,0,.3)) drop-shadow(0px 1px 2.5px rgba(0,0,0,.25));--mdw-surface__shadow__2: drop-shadow(0px 1px 001px rgba(0,0,0,.3)) drop-shadow(0px 2px 005px rgba(0,0,0,.25));--mdw-surface__shadow__3: drop-shadow(0px 1px 1.5px rgba(0,0,0,.3)) drop-shadow(0px 4px 007px rgba(0,0,0,.263));--mdw-surface__shadow__4: drop-shadow(0px 2px 1.5px rgba(0,0,0,.3)) drop-shadow(0px 6px 009px rgba(0,0,0,.27));--mdw-surface__shadow__5: drop-shadow(0px 4px 2px rgba(0,0,0,.3)) drop-shadow(0px 8px 012px rgba(0,0,0,.3));--mdw-surface__tint__1: .05;--mdw-surface__tint__2: .08;--mdw-surface__tint__3: .11;--mdw-surface__tint__4: .12;--mdw-surface__tint__5: .14;--mdw-surface__shadow__resting: none;--mdw-surface__shadow: var(--mdw-surface__shadow__resting);--mdw-surface__tint: 0;--mdw-surface__tint__raised: 0;z-index:0}:host([elevation="0"]){--mdw-surface__tint: 0;--mdw-surface__shadow__resting: none}:host([elevation="1"]){--mdw-surface__tint: var(--mdw-surface__tint__1);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__1)}:host([elevation="2"]){--mdw-surface__tint: var(--mdw-surface__tint__2);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__2)}:host([elevation="3"]){--mdw-surface__tint: var(--mdw-surface__tint__3);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__3)}:host([elevation="4"]){--mdw-surface__tint: var(--mdw-surface__tint__4);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__4)}:host([elevation="5"]){--mdw-surface__tint: var(--mdw-surface__tint__5);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__5)}:host([elevation]){--mdw-surface__tint__raised: var(--mdw-surface__tint);--mdw-surface__shadow__raised: var(--mdw-surface__shadow__resting)}.surface{position:absolute;inset:0;pointer-events:none;filter:var(--mdw-surface__shadow);z-index:-1;transition-delay:1ms;transition-duration:.2s;transition-property:filter;transition-timing-function:linear;will-change:filter}.surface[raised]{filter:var(--mdw-surface__shadow__raised, var(--mdw-surface__shadow__resting))}.surface[disabled]{filter:none}.surface-tint{position:absolute;inset:0;pointer-events:none;opacity:var(--mdw-surface__tint, 0);background-color:rgb(var(--mdw-color__primary));border-radius:inherit;transition-delay:1ms;transition-duration:.2s;transition-property:opacity;will-change:opacity}.surface-tint[raised]{opacity:var(--mdw-surface__tint__raised, 0)}.surface-tint[pressed]{opacity:var(--mdw-surface__tint, 0)}.surface-tint[color]:not([color|="surface"]){display:none}`}var le=u.mixin(v).mixin(ue).mixin(te).mixin(L).html`<slot id=slot></slot>`.on({composed(){let{surface:t,shape:e,surfaceTint:i}=this.refs;e.append(i),t.append(e)}}).css`:host{--mdw-shape__bg: rgb(var(--mdw-color__surface));--mdw-ink: var(--mdw-color__on-surface);position:relative;color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}`.autoRegister("mdw-surface");var Tr=le.mixin(ze).mixin(P).extend().set({elevated:!0,_ariaRole:"toolbar"}).observe({color:{empty:"surface"}}).css`:host{--mdw-surface__tint: var(--mdw-surface__tint__2);--mdw-surface__tint__raised: var(--mdw-surface__tint__2);--mdw-bg: var(--mdw-color__surface);--mdw-ink: var(--mdw-color__on-surface);display:flex;align-items:center;gap:8px;justify-content:flex-start;box-sizing:content-box;block-size:56px;padding-block:12px;padding-inline:8px 16px;box-shadow:none;direction:ltr}`.autoRegister("mdw-bottom-app-bar");var at=new Map,Li=new Set,Mt=new Set,Ye=class extends u.mixin(v).extend().define({_img(){return this.refs.img}}).define({naturalWidth(){return this._img.naturalWidth},naturalHeight(){return this._img.naturalHeight},complete(){return this._img.complete},currentSrc(){return this._img.currentSrc},x(){return this._img.x},y(){return this._img.y},decode(){return this._img.decode}}).observe({_slottedText:"string",disabled:"boolean",alt:"string",src:"string",svg:"string",svgPath:"string",srcset:"string",sizes:"string",crossOrigin:{attr:"crossorigin"},useMap:{attr:"usemap"},isMap:{type:"boolean",attr:"ismap"},referrerPolicy:{attr:"referrerpolicy"},decoding:{value:null},loading:{value:null},width:"integer",height:"integer",forceFont:"boolean",_linkLoaded:"boolean",viewBox:{attr:"viewBox"},fontClass:{empty:"material-symbols-outlined"},fontLibrary:{empty:"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&display=block"}}).observe({_svgAlias:{type:"object",get({_slottedText:e}){if(!e)return null;let i=at.get(e.trim().toLowerCase());return i||Li.add(e),i}}}).observe({_computedSVGPath({svgPath:e,_svgAlias:i}){return e||i?.path},_computedViewBox({viewBox:e,_svgAlias:i}){return e??i?.viewBox??"0 0 24 24"}}).observe({_showSlot:{type:"boolean",get({_slottedText:e,svg:i,_computedSVGPath:r,src:o}){return e&&!i&&!r&&!o}}}).expressions({showSVG({svg:e,_computedSVGPath:i}){return!!(e||i)}}).html`<link _if={_showSlot} id=link rel=stylesheet href={fontLibrary}><svg _if={showSVG} id=svg viewBox={_computedViewBox}><use id=use _if={svg} href={svg} fill=currentColor /><path id=path _if={_computedSVGPath} d={_computedSVGPath} /></svg> <img _if={src} id=img disabled={disabled} alt={alt} src={src} srcset={srcset} sizes={sizes} crossorigin={crossOrigin} usemap={useMap} ismap={isMap} referrerpolicy={referrerPolicy} decoding={decoding} loading={loading} width={width} height={height}><slot id=icon class={fontClass} hidden={!_showSlot} aria-hidden=true></slot>`.css`:host{display:inline-block;vertical-align:-11.5%;block-size:1em;inline-size:1em;-webkit-user-select:none;user-select:none;font-variation-settings:"FILL" 1;transition-duration:.2s;transition-property:inline-size,width}:host(:is([color],[ink])){color:rgb(var(--mdw-ink))}#icon{display:block;overflow:clip;block-size:1em;inline-size:1em;font-size:inherit;font-variation-settings:inherit;transition-delay:1ms;transition-duration:.2s;transition-property:font-variation-settings}#icon[hidden]{display:none}#svg{display:block;block-size:inherit;inline-size:inherit;fill:currentColor;object-fit:cover}#img{display:block;block-size:inherit;inline-size:inherit;object-fit:cover;transition-delay:1ms;transition-duration:.2s;transition-property:filter}#img[disabled]{filter:grayscale()}.material-symbols-outlined{direction:inherit}`.childEvents({icon:{slotchange(){this._slottedText=this.textContent}},link:{load({currentTarget:e}){let{href:i,parentNode:r}=e;if(!Mt.has(i)){for(let o of document.head.getElementsByTagName("link"))if(o.href===i){Mt.add(i);return}document.head.append(e.cloneNode()),Mt.add(i)}}}}){static get svgAliasMap(){return at}static get svgUnaliased(){return Li}static addSVGAlias(e,i,r="0 0 24 24"){e=e.toLowerCase(),i?at.set(e,{path:i,viewBox:r}):at.delete(e)}constructor(e,i){super(),e!=null&&(this.width=e),i!=null&&(this.height=i)}};Ye.autoRegister("mdw-icon");var Tt="mdw-form-associated-changed",It={nullParser:String,value:""};function ie(t){return t.extend().setStatic({formAssociated:!0}).set({_ipcListener:null,_ipcTarget:null}).observe({ariaControls:"string",autocomplete:It,name:It,readOnly:{attr:"readonly",type:"boolean"},defaultChecked:{attr:"checked",type:"boolean"},_checkedDirty:"boolean",_checked:"boolean",required:"boolean",type:It,_defaultValue:{reflect:!0,attr:"value"},_value:{empty:""},_valueDirty:"boolean",_invalid:"boolean",_badInput:"boolean",_validationMessage:"string",_formDisabled:"boolean",_formReset:"boolean"}).observe({erroredState({_invalid:e}){return e},defaultValue:{reflect:!1,get({_defaultValue:e}){return e??""},set(e){this._defaultValue=String(e)}},_valueBehavior({type:e}){switch(e){case"radio":case"checkbox":return"default/on";case"hidden":case"button":case"submit":case"image":case"reset":return"default";case"file":return"filename";default:return"value"}}}).methods({_onSetValue(e){this._value=e},_onSetChecked(e){this._checked=e}}).observe({value:{reflect:!1,get({_valueBehavior:e,_defaultValue:i,_value:r}){switch(e){default:return r;case"default":return i??"";case"default/on":return i??"on";case"filename":throw new Error("Not supported!")}},set(e){switch(this._valueBehavior){case"value":this._valueDirty=!0,this._onSetValue(e);break;default:this.defaultValue=e}}},checked:{reflect:!1,type:"boolean",get({_checked:e}){return e},set(e){this._checkedDirty=!0,this._onSetChecked(e)}}}).define({form(){return this.elementInternals.form},validity(){return this.elementInternals.validity},validationMessage(){return this.elementInternals.validationMessage},willValidate(){return this.elementInternals.willValidate},labels(){return this.elementInternals.labels}}).observe({disabledState({_formDisabled:e,disabled:i}){return e?!0:!!i}}).methods({checkValidity(){return this.elementInternals.checkValidity()},reportValidity(){return this.elementInternals.reportValidity()},setCustomValidity(e){this.elementInternals.setValidity({...this.elementInternals.validity,customError:!!e},this.elementInternals.validationMessage||e)},_notifyRadioChange(e,i){this._ipcTarget?.dispatchEvent(new CustomEvent(Tt,{detail:[e,i]}))},refreshFormAssociation(){let e=this.elementInternals.form??this.getRootNode();e!==this._ipcTarget&&(this._ipcTarget&&this._ipcTarget.removeEventListener(Tt,this._ipcListener),this.type==="radio"&&(this._ipcTarget=e,this._ipcListener??=this.formIPCEvent.bind(this),this._ipcTarget.addEventListener(Tt,this._ipcListener)))},formAssociatedCallback(e){this.refreshFormAssociation()},formIPCEvent(e){if(e.target instanceof HTMLFormElement&&e.target!==this.form||this.type!=="radio")return;let[i,r]=e.detail;this.name===i&&(r===this.value||(this.checked=!1))},formDisabledCallback(e){this._formDisabled=e},formResetCallback(){this._formReset=!0,this._valueDirty=!1,this.checkValidity(),this._formReset=!1},formStateRestoreCallback(e,i){if(!navigator.userAgent.includes("Edg/")&&typeof e=="string"){if(this.type==="checkbox"||this.type==="radio"){this.checked=e==="checked";return}if(this.type==="radio"){this.checked=e==="checked";return}this.value=e}},_updateFormAssociatedValue(){switch(this.type){case"radio":this.checked&&this._notifyRadioChange(this.name,this.value||"on");case"checkbox":this.checked?this.elementInternals.setFormValue(this.value,"checked"):this.elementInternals.setFormValue(null,"unchecked");break;default:this.elementInternals.setFormValue(this.value)}}}).events({blur(){this.checkValidity()}}).on({connected(){this.refreshFormAssociation()},checkedChanged(){this._updateFormAssociatedValue()},valueChanged(){this._updateFormAssociatedValue()}})}function _e(t){return t.mixin(ie).extend().observe({ariaLabel:"string"}).set({delegatesFocus:!0,focusableOnDisabled:!1,controlTagName:"input",controlVoidElement:!0}).methods({onValueChangingContentAttribute(){let e=this.refs.control;this.hasAttribute("value")||(e.removeAttribute("value"),e.setAttribute("value","")),this._value=e.value},focus(...e){this.refs.control.focus(...e)},click(){this.refs.control.click()}}).define({stateTargetElement(){return this.refs.control},form(){return this.elementInternals.form},validity(){return this.elementInternals.validity},validationMessage(){return this.elementInternals.validationMessage},willValidate(){return this.elementInternals.willValidate},labels(){return this.elementInternals.labels}}).methods({checkValidity(){let e=this.refs.control,i=e.checkValidity(),r={};for(let o in e.validity)r[o]=e.validity[o];return this.elementInternals.setValidity(r,e.validationMessage),this._invalid=!i,this._validationMessage=e.validationMessage,this._badInput=e.validity.badInput,i},reportValidity(){return this.checkValidity(),this.refs.control.reportValidity(),this.elementInternals.reportValidity()},setCustomValidity(e){this.refs.control.setCustomValidity(e),this.checkValidity()}}).on({composed({template:e,html:i}){e.append(i`
|
|
2
2
|
<label id=label disabled={disabledState}>
|
|
3
3
|
<${this.controlTagName} id=control
|
|
4
4
|
aria-labelledby=${({ariaLabel:r})=>r?null:"#slot"}
|
|
@@ -6,7 +6,7 @@ var vi=Object.defineProperty;var cr=(t,e,i)=>e in t?vi(t,e,{enumerable:!0,config
|
|
|
6
6
|
type={type}
|
|
7
7
|
>${this.controlVoidElement?"":`</${this.controlTagName}>`}
|
|
8
8
|
</label>
|
|
9
|
-
`)},disabledStateChanged(e,i){let r=this.refs.control;r.setAttribute("aria-disabled",`${i}`),this.focusableOnDisabled||(r.disabled=i,i?this.tabIndex=0:this.removeAttribute("tabindex"))},constructed(){let e=this.refs.control;this._value=e.value},connected(){this.hasAttribute("tabindex")||(this.tabIndex=0)},attrs:{autocomplete:I("autocomplete","control"),name:I("name","control"),readonly:I("readonly","control"),required:I("required","control")}}).childEvents({control:{input({currentTarget:e}){let i=e;this.validity.valid?(i.checkValidity(),this._badInput=i.validity.badInput):this.checkValidity(),this._value=i.value},change({currentTarget:e}){let i=e;this._valueDirty=!0,this._value=i.value,this.checkValidity(),this.dispatchEvent(new Event("change",{bubbles:!0}))}}}).css`:host{display:inline-flex}:host(::-moz-focus-inner){border:0}#label{display:contents;pointer-events:none}#control{position:absolute;inset:50%;block-size:100%;min-block-size:48px;inline-size:100%;min-inline-size:48px;margin:0;border:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;outline:none;pointer-events:auto;transform:translate(-50%) translateY(-50%);z-index:4;background-color:transparent;border-radius:0;color:transparent}#control::-moz-focus-inner{border:0}`}var Ir=new Set(["text","search","url","tel","email","password","date","month","week","time","datetime-local","number"]),K={nullParser:String,empty:""};function Y(t){return t.mixin(_e).extend().observe({accept:K,alt:K,dirName:{attr:"dirname",...K},_formAction:{attr:"formaction"},formEnctype:{attr:"formenctype",...K},formMethod:{attr:"formmethod",...K},formNoValidate:{attr:"formNoValidate",type:"boolean"},formTarget:{attr:"formtarget",...K},_height:{attr:"height",type:"integer"},indeterminate:{type:"boolean",reflect:!1},max:K,maxLength:{attr:"maxlength",type:"integer",empty:-1},min:K,minLength:{attr:"minlength",type:"integer",empty:-1},multiple:"boolean",pattern:K,placeholder:K,size:{type:"integer",empty:20},src:K,step:K,_width:{attr:"width",type:"integer"}}).define({_input(){return this.refs.control}}).overrides({controlTagName:"input"}).on({composed({inline:e}){let{label:i,control:r}=this.refs;i.setAttribute("selected","{checked}"),i.setAttribute("invalid","{_invalid}"),i.setAttribute("indeterminate","{indeterminate}"),r.setAttribute("checked","{defaultChecked}"),r.setAttribute("height","{_height}"),r.setAttribute("width","{_width}"),r.setAttribute("value","{_defaultValue}")},typeChanged(){this.onValueChangingContentAttribute()},defaultCheckedChanged(){this._checked=this._input.checked},minChanged(){this.onValueChangingContentAttribute()},minLengthChanged(){this.onValueChangingContentAttribute()},maxChanged(){this.onValueChangingContentAttribute()},maxLengthChanged(){this.onValueChangingContentAttribute()},multipleChanged(){this.onValueChangingContentAttribute()},patternChanged(){this.onValueChangingContentAttribute()},stepChanged(){this.onValueChangingContentAttribute()},defaultValueChanged(){this.onValueChangingContentAttribute()},_formResetChanged(e,i){if(!i)return;let r=this._input;r.value=this.defaultValue,r.checked=this.defaultChecked,this._value=r.value,this._checked=r.checked,this._checkedDirty=!1},attrs:{accept:I("accept","control"),alt:I("alt","control"),dirname:I("dirname","control"),formenctype:I("formenctype","control"),formmethod:I("formmethod","control"),formnovalidate:I("formnovalidate","control"),formTarget:I("formTarget","control"),max:I("max","control"),maxlength:I("maxlength","control"),min:I("min","control"),minlength:I("minlength","control"),multiple:I("multiple","control"),pattern:I("pattern","control"),placeholder:I("placeholder","control"),size:I("size","control"),src:I("src","control"),step:I("step","control")}}).overrides({_onSetChecked(e){this._input.checked=e,this._checked=this._input.checked},_onSetValue(e){this._input.value=e,this._value=this._input.value}}).methods({performImplicitSubmission(e){let i=this.form;if(!i)return;let r,o=new Set;for(let n of i.elements){if(n.type==="submit"&&!n.disabled&&!n.matches(":disabled")){r??=n;break}Ir.has(n.type)&&o.add(n)}if(r){r.click();return}o.size>1||this.form.submit()}}).childEvents({control:{keydown(e){e.defaultPrevented||e.key==="Enter"&&e.currentTarget.type!=="submit"&&this.performImplicitSubmission(e)},change(e){if(this.disabledState){e.preventDefault(),e.stopImmediatePropagation();return}let i=e.currentTarget;this._checkedDirty=!0,this._checked=i.checked}}}).define({files(){return this._input.files},select(){return this._input.select},selectionDirection:{get(){return this._input.selectionDirection},set(e){this._input.selectionDirection=e}},selectionEnd:{get(){return this._input.selectionEnd},set(e){this._input.selectionEnd=e}},selectionStart:{get(){return this._input.selectionStart},set(e){this._input.selectionStart=e}},setRangeText(){return this._input.setRangeText},setSelectionRange(){return this._input.setSelectionRange},showPicker(){return this._input.showPicker},stepDown(){return this._input.stepDown},stepUp(){return this._input.stepUp},valueAsDate:{get(){return this._input.valueAsDate},set(e){this._input.valueAsDate=e,this.value=this._input.value}},valueAsNumber:{get(){return this._input.valueAsNumber},set(e){this._input.valueAsNumber=e,this.value=this._input.value}},height:{get(){return this._input.height},set(e){this._input.height=e,this._height=e}},formAction:{get(){return this._input.formAction},set(e){this._input.formAction=e,this._formAction=e}},width:{get(){return this._input.width},set(e){this._input.width=e,this._width=e}}})}var Rr=new Map,lt={type:"function",reflect:"read",value:null,values:Rr,parser(t){return t},attributeChangedCallback(t,e,i){if(e==null&&i==null)return;if(i==null){this[t]=null;return}let r=document.createElement("button");r.setAttribute("onclick",i);let o=r.onclick;r.remove(),this[t]=o},propChangedCallback(t,e,i){let r=t.slice(2);e&&this.removeEventListener(r,e),i&&this.addEventListener(r,i)}};var Pi=new WeakMap,Fi=new WeakMap,st=new WeakSet;function Lr(){let t=Pi.get(this),e=Fi.get(this);if(!e){t?.cancel();return}let r=(e.target?this.composition.getElement(this.shadowRoot,e.target):this).animate(e.styles,{...e.timing,fill:"forwards"});r.onremove=()=>{t?.effect.updateTiming({fill:"none"}),t?.finish(),t?.cancel(),t=null},Pi.set(this,r),st.delete(this)}var ve={type:"object",reflect:!1,values:Fi,diff:null,changedCallback(t,e){let i=st.has(this);if(!e){if(!i)return;st.delete(this);return}i||(queueMicrotask(Lr.bind(this)),st.add(this))}};var Oi=u.extend().set({hadRippleHeld:!1,hadRippleReleased:!1,rippleStarted:!1}).observe({rippleState:"string",keepAlive:"boolean",_positionX:"float",_positionY:"float",_radius:"float",holdRipple:{type:"boolean",changedCallback(t,e){e?this.hadRippleHeld=!0:this.hadRippleReleased=!0}}}).observe({_positionStyle:{...ve,get({_positionX:t,_positionY:e,_radius:i}){return{styles:{minBlockSize:`${i}px`,minInlineSize:`${i}px`,boxShadow:`0 0 calc(0.10 * ${i}px) calc(0.10 * ${i}px) currentColor`,left:`calc(50% + ${t}px)`,top:`calc(50% + ${e}px)`}}}}}).methods({updatePosition(t,e,i){let r=i,{clientWidth:o,clientHeight:n}=this.offsetParent;if(t??=o/2,e??=n/2,!r){let a=t>=o/2?t:o-t,s=e>=n/2?e:n-e;r=2*Math.sqrt(a*a+s*s)}this._positionX=t-o/2,this._positionY=e-n/2,this._radius=r},handleRippleComplete(){this.keepAlive?this.setAttribute("ripple-state","complete"):this.remove()}}).events({animationstart({animationName:t}){if(t==="ripple-fade-in"){if(this.rippleStarted&&!this.keepAlive){this.remove();return}this.rippleStarted=!0}},animationend({animationName:t}){switch(t){case"ripple-fade-in":this.setAttribute("ripple-state","filled");break;case"ripple-fade-out":this.handleRippleComplete();break;default:}}}).css`:host{--enter-delay: 80ms;--touch-down-acceleration: 1024;--touch-up-acceleration: 3400;--mdw-ripple-expand-duration: .3s;--mdw-ripple-simple-duration: .2s;--mdw-ripple-fade-out-duration: 333ms;--mdw-ripple-standard-easing: var(--mdw-motion-standard-easing, cubic-bezier(.4, 0, .2, 1));--mdw-ripple-deceleration-easing: var(--mdw-motion-deceleration-easing, cubic-bezier(0, 0, .2, 1));--size: 0;position:absolute;top:50%;left:50%;display:block;min-block-size:141.42%;min-inline-size:141.42%;pointer-events:none;-webkit-tap-highlight-color:transparent;opacity:.12;transform:translate(-50%) translateY(-50%) scale(1);background-color:currentColor;border-radius:50%;box-shadow:0 0 calc(.1 * var(--size)) calc(.1 * var(--size)) currentColor;transition-delay:0s;transition-duration:var(--mdw-ripple-simple-duration);transition-property:background-color,color;transition-timing-function:var(--mdw-ripple-standard-easing);animation-name:ripple-fade-in,none;animation-duration:var(--mdw-ripple-expand-duration),var(--mdw-ripple-fade-out-duration);animation-timing-function:linear,var(--mdw-ripple-deceleration-easing);animation-direction:normal;animation-fill-mode:forwards;will-change:transform,opacity,top,left,box-shadow;aspect-ratio:1/1}:host([ripple-state="filled"]){animation-name:none,ripple-fade-out}:host([ripple-state="filled"][hold-ripple]){animation-name:ripple-fade-in,none}:host([ripple-state="complete"]){animation-name:none,ripple-fade-out;animation-duration:0s}@keyframes ripple-fade-in{0%{transform:translate(-50%) translateY(-50%) scale(0)}}@keyframes ripple-fade-out{to{opacity:0}}`.autoRegister("mdw-ripple");function B(t){return t.extend().set({_lastRippleWeakRef:null,_rippleAdded:!1}).define({_lastRipple:{get(){let e=this._lastRippleWeakRef?.deref();return e?.isConnected?e:null},set(e){this._lastRippleWeakRef=e?new WeakRef(e):null}}}).methods({addRipple(e,i,r){let{rippleContainer:o}=this.refs;if(!o.isConnected)return null;let n=new Oi;return this._rippleAdded=!0,queueMicrotask(()=>{this._rippleAdded=!1}),o.appendChild(n),r&&(n.holdRipple=!0),n.updatePosition(e,i),this._lastRipple=n,n}}).html`<div id=ripple-container _if={!disabledState} aria-hidden=true></div>`.events({"~pointerdown"(e){if(e.button||this.disabledState)return;let{rippleContainer:i}=this.refs;if(!i.isConnected)return;let r=i.getBoundingClientRect(),o=e.pageX-r.left-window.pageXOffset,n=e.pageY-r.top-window.pageYOffset,a=this._lastRipple;a&&(a.holdRipple=!1),this.addRipple(o,n)},"~click"(e){if(this._rippleAdded||e.pointerType||e.detail||this.disabledState||this._pressed)return;let i=this._lastRipple;i&&(i.holdRipple=!1),this.addRipple()}}).on({_pressedChanged(e,i){let r=this._lastRipple;if(!i){r&&(r.holdRipple=!1);return}if(!r||r.hadRippleReleased){if(this._lastInteraction!=="key")return;this.addRipple(null,null,!0);return}r.hadRippleHeld||(r.holdRipple=!0)}}).css`:host{--mdw-state__pressed-opacity: 0}#ripple-container{position:absolute;inset:0;overflow:hidden;pointer-events:none}`}var $i=window?.matchMedia?.("(any-pointer: coarse)").matches;function R(t){return t.extend().observe({disabled:"boolean",_lastInteraction:{value:null},_hovered:"boolean",_focused:"boolean",_pressed:"boolean",stateLayer:"boolean"}).observe({disabledState({disabled:e}){return e},hoveredState({_hovered:e}){return e},focusedState({_focused:e}){return e},pressedState({_pressed:e}){return e},touchedState({_lastInteraction:e}){return e==="touch"}}).define({stateTargetElement(){return this}}).html`<div id=state _if={stateLayer} disabled={disabledState} focused={focusedState} hovered={hoveredState} pressed={pressedState} interaction={_lastInteraction} touched={touchedState} aria-hidden=true></div>`.events({pointerenter(e){e.isPrimary&&(this._pressed=this.stateTargetElement.matches(":active"),e.pointerType!=="touch"&&(this._hovered=!0))},"~pointerdown"(e){e.isPrimary&&(this._lastInteraction=e.pointerType,this._pressed=!0)},"~pointerup"(e){e.isPrimary&&(this._lastInteraction=e.pointerType,this._pressed=!1)},pointercancel(e){e.isPrimary&&(this._pressed=this.stateTargetElement.matches(":active"))},pointerleave(e){e.isPrimary&&(this._pressed=!1,this._hovered=!1)},"~keydown"(e){this._lastInteraction="key",!e.repeat&&requestAnimationFrame(()=>{this._pressed=this.stateTargetElement.matches(":active")})},"~keyup"(){this._lastInteraction="key",requestAnimationFrame(()=>{this._pressed=this.stateTargetElement.matches(":active")})},blur(){this._focused=!1,this._lastInteraction&&($i=this._lastInteraction==="touch")},focus(){this._focused=!0,!this._lastInteraction&&$i&&(this._lastInteraction="touch")}}).on({disconnected(){this._lastInteraction=null}}).css`:host{--mdw-state__hovered-opacity: .08;--mdw-state__focused-opacity: .12;--mdw-state__pressed-opacity: .12;--mdw-state__dragged-opacity: .12;position:relative;outline:none;-webkit-tap-highlight-color:transparent}:host(::-moz-focus-inner){border:0}#state{position:absolute;inset:0;pointer-events:none;opacity:calc(var(--mdw-state__hovered-opacity) + var(--mdw-state__focused-opacity) + var(--mdw-state__pressed-opacity) + var(--mdw-state__dragged-opacity));background-color:currentColor;border-radius:inherit;transition-delay:0ms;transition-duration:s;transition-property:opacity,color,background-color;will-change:opacity}#state[touched]{--mdw-state__hovered-opacity: 0;--mdw-state__focused-opacity: 0}#state:is(:not([hovered]),[disabled]:not([state-disabled~="hover"]),[state-off~="hover"]){--mdw-state__hovered-opacity: 0}#state:is(:not([focused]),[disabled]:not([state-disabled~="focus"]),[state-off~="focus"]){--mdw-state__focused-opacity: 0}#state:is(:not([pressed]),[disabled]:not([state-disabled~="pressed"]),[state-off~="pressed"]){--mdw-state__pressed-opacity: 0}:host(:not([aria-dragged="true"])) #state,#state:is([disabled]:not([state-disabled~="dragged"]),[state-off~="dragged"]){--mdw-state__dragged-opacity: 0}#state[disabled]:not([state-disabled]){display:none}`}var ce=u.mixin(v).mixin(H).mixin(te).mixin(L).mixin(R).mixin(B).mixin(Y).extend().define({stateTargetElement(){return this.refs.control}}).set({stateLayer:!0,delegatesFocus:!0}).observe({type:{empty:"button"},elevated:"boolean",filled:"string",outlined:"boolean",icon:"string",iconInk:"string",src:"string",svg:"string",svgPath:"string"}).expressions({hasIcon({icon:t,svg:e,src:i,svgPath:r}){return t??e??i??r}}).html`<mdw-icon _if={hasIcon} id=icon ink={iconInk} disabled={disabledState} outlined={outlined} aria-hidden=true svg={svg} src={src} svg-path={svgPath}>{icon}</mdw-icon><slot id=slot disabled={disabledState}></slot>`.on({composed(){let{shape:t,surfaceTint:e,state:i,rippleContainer:r,surface:o,control:n,label:a,slot:s,icon:l}=this.refs;o.append(t),t.append(i,r,e),a.append(l,s),t.setAttribute("filled","{filled}"),n.setAttribute("role","button")}}).css`:host{--mdw-shape__size: var(--mdw-shape__full);--mdw-ink: var(--mdw-color__primary);--mdw-type__font: var(--mdw-typescale__label-large__font);--mdw-type__letter-spacing: var(--mdw-typescale__label-large__letter-spacing);display:inline-flex;align-items:center;gap:0;justify-content:center;vertical-align:middle;min-block-size:24px;min-inline-size:24px;padding-block:calc(8px + (var(--mdw-density) * 2px));padding-inline:calc(12px + (var(--mdw-density) * 2px));-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}:host(:where([elevated],[filled])){will-change:filter}:host(:where([elevated])){--mdw-bg: var(--mdw-color__surface);--mdw-ink: var(--mdw-color__primary);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__1);--mdw-surface__shadow__raised: var(--mdw-surface__shadow__2);--mdw-surface__tint: var(--mdw-surface__tint__1);--mdw-surface__tint__raised: var(--mdw-surface__tint__2)}:host(:where([filled])){--mdw-bg: var(--mdw-color__primary);--mdw-ink: var(--mdw-color__on-primary);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__0);--mdw-surface__shadow__raised: var(--mdw-surface__shadow__1);--mdw-surface__tint: 0;--mdw-surface__tint__raised: var(--mdw-surface__tint__1)}:host(:where([filled="tonal"])){--mdw-bg: var(--mdw-color__secondary-container);--mdw-ink: var(--mdw-color__on-secondary-container)}:host(:where([outlined])){--mdw-ink: var(--mdw-color__primary)}:host(:where([icon])){gap:8px;padding-inline:calc(12px + (var(--mdw-density) * 2px)) calc(16px + (var(--mdw-density) * 2px))}:host(:where([outlined],[elevated],[filled])){padding-inline:calc(24px + (var(--mdw-density) * 2px))}:host(:where([icon]):where([outlined],[elevated],[filled])){gap:8px;padding-inline:calc(16px + (var(--mdw-density) * 2px)) calc(24px + (var(--mdw-density) * 2px))}#shape:where([elevated],[filled],[color]){background-color:rgb(var(--mdw-bg))}#slot{text-align:center;text-decoration:none;white-space:nowrap}#control{cursor:inherit}:host([disabled]){color:rgba(var(--mdw-color__on-surface),.38)}#shape[disabled]:is([elevated],[filled]){background-color:rgba(var(--mdw-color__on-surface),.12);color:rgba(var(--mdw-color__on-surface),.38)}#slot[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#icon{font-size:calc(18/14 * 1em);font-variation-settings:"FILL" 1}#icon[outlined]{font-variation-settings:"FILL" 0}#icon[disabled]{opacity:.38;color:rgba(var(--mdw-color__on-surface))}#label{cursor:pointer}#label[disabled]{cursor:not-allowed}@media (any-pointer: coarse){#touch-target{visibility:visible}}`.childEvents({control:{"~click"({currentTarget:t}){if(t.disabled||t.type!=="submit"||this.disabled)return;let{value:e}=t,i=this.elementInternals?.form;if(!i||(this.elementInternals.setFormValue(e),(t.type??"submit")!=="submit"))return;let r=t.cloneNode();r.hidden=!0,i.append(r),"requestSubmit"in i?i.requestSubmit(r):r.click(),r.remove()}}}).autoRegister("mdw-button");var Ni="inert"in HTMLElement.prototype,Pr=u.mixin(v).mixin(ue).mixin(te).mixin(L).mixin(ie).mixin(R).mixin(P).extend().setStatic({delegatesFocus:!0}).set({_ariaRole:"figure"}).observe({filled:"boolean",actionable:"boolean",actionLabel:"string",onaction:lt}).define({stateTargetElement(){return this.actionable?this.refs.action:this}}).expressions({showBlocker:({disabledState:t})=>!Ni&&t}).methods({focus(){this.disabledState||this.actionable&&this.refs.action.focus()}}).html`<mdw-button _if={actionable} aria-label={actionLabel} id=action disabled={disabledState}></mdw-button><div _if={showBlocker} id=inert-blocker></div><slot id=slot disabled={disabledState}></slot>`.css`:host{--mdw-shape__size: 12px;--mdw-surface__tint: var(--mdw-surface__tint__0);--mdw-surface__tint__raised: var(--mdw-surface__tint);--mdw-surface__shadow__resting: none;--mdw-surface__shadow__raised: var(--mdw-surface__shadow__resting);--mdw-bg: var(--mdw-color__surface);--mdw-ink: var(--mdw-color__on-surface);position:relative;display:block;color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}#shape:where([elevated],[filled],[color]){background-color:rgb(var(--mdw-bg))}:host(:where([filled])){--mdw-bg: var(--mdw-color__surface-variant);--mdw-ink: var(--mdw-color__on-surface-variant)}:host(:where([elevated])){--mdw-bg: var(--mdw-color__surface);--mdw-ink: var(--mdw-color__on-surface)}:host([filled]){--mdw-surface__tint: var(--mdw-surface__tint__0);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__0)}:host([filled][actionable]){--mdw-surface__tint__raised: var(--mdw-surface__tint__1);--mdw-surface__shadow__raised: var(--mdw-surface__shadow__1)}:host([elevated]){--mdw-surface__tint: var(--mdw-surface__tint__1);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__1)}:host([elevated][actionable]){--mdw-surface__tint__raised: var(--mdw-surface__tint__2);--mdw-surface__shadow__raised: var(--mdw-surface__shadow__2)}#shape[disabled]{filter:grayscale();color:rgb(var(--mdw-color__on-surface))}:host([disabled]){cursor:not-allowed;filter:grayscale();opacity:.38}#slot[disabled]{color:rgb(var(--mdw-color__on-surface))}#outline[disabled]{color:rgba(var(--mdw-color__on-surface),calc(.12/.38))}#inert-blocker{position:absolute;inset:0;cursor:not-allowed;pointer-events:auto;z-index:99}#shape[disabled][elevated]{background-color:rgba(var(--mdw-color__surface-variant))}#action{--mdw-ink: inherit;--mdw-shape__size: inherit;position:absolute;inset:0;padding:0;z-index:0;color:inherit}`.on({composed(){let{slot:t,surface:e,surfaceTint:i,shape:r,outline:o}=this.refs;r.append(i),e.append(r),o.removeAttribute("pressed"),o.removeAttribute("focused"),r.setAttribute("filled","{filled}"),t.setAttribute("inert","{disabledState}"),t.setAttribute("disabled","{disabledState}")}}).childEvents({action:{click(){this.disabledState||this.dispatchEvent(new Event("action"))}},slot:Ni?{}:{focusin(){this.disabledState}}}).autoRegister("mdw-card");var Ma=u.mixin(v).mixin(L).observe({selected:"boolean",icon:"string",errored:"boolean",disabled:"boolean"}).define({checked:{get(){return this.selected},set(t){this.selected=t}}}).css`:host{--mdw-ink: var(--mdw-color__on-primary);--mdw-bg: var(--mdw-color__primary);--mdw-shape__size: 2px;--disabled-opacity: .38;position:relative;display:inline-block;align-items:center;justify-content:center;box-sizing:border-box;block-size:18px;inline-size:18px;font-size:18px;line-height:18px}#shape{--mdw-shape__size: inherit;position:absolute;inset:0;z-index:auto;background-color:transparent}#icon{position:absolute;inset:0;opacity:0;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition-duration:.2s;transition-property:opacity,background-color,color;will-change:opacity}#outline{filter:drop-shadow(1px 0px 0px currentColor) drop-shadow(0px 1px 0px currentColor) drop-shadow(-1px 0px 0px currentColor) drop-shadow(0px -1px 0px currentColor);color:rgb(var(--mdw-color__on-surface));transition-duration:.2s;transition-property:opacity,background-color,color;will-change:opacity}#icon[selected]{opacity:1}#outline[selected]{opacity:0}#icon[errored]{background-color:rgb(var(--mdw-color__error));color:rgb(var(--mdw-color__on-error))}#outline[errored]{color:rgb(var(--mdw-color__error))}#icon[disabled]{background-color:rgba(var(--mdw-color__on-surface),var(--disabled-opacity));color:rgb(var(--mdw-color__surface),var(--disabled-opacity))}#outline[disabled]{color:rgb(var(--mdw-color__on-surface),var(--disabled-opacity))}`.on({composed({html:t}){let{outline:e,shape:i}=this.refs;e.removeAttribute("_if"),e.setAttribute("selected","{selected}"),e.setAttribute("errored","{errored}"),e.setAttribute("disabled","{disabled}"),i.append(t`<mdw-icon id=icon selected={selected} errored={errored} disabled={disabled}>{icon}</mdw-icon>`)}}).extend().autoRegister("mdw-checkbox-icon");function he(t){return t.extend().html`<div id=touch-target class=touch-target></div>`.css`.touch-target{position:absolute;inset:50%;block-size:100%;min-block-size:48px;inline-size:100%;min-inline-size:48px;cursor:inherit;pointer-events:auto;transform:translate(-50%) translateY(-50%);visibility:visible;z-index:1;border-radius:inherit}`}var Fr=u.mixin(v).mixin(R).mixin(B).mixin(Y).mixin(he).extend().set({stateLayer:!0,type:"checkbox"}).observe({icon:{value:"check"},indeterminateIcon:{value:"check_indeterminate_small"},indeterminate:"boolean"}).observe({_ariaChecked({indeterminate:t,checked:e}){return t?"mixed":`${!!e}`},_determinateIcon({indeterminate:t,indeterminateIcon:e,icon:i}){return t?e:i}}).css`:host{--mdw-ink: var(--mdw-color__on-primary);--mdw-bg: var(--mdw-color__primary);display:inline-grid;align-items:baseline;gap:12px;grid-auto-flow:column;justify-content:flex-start;cursor:pointer;transition:none .1s cubic-bezier(.4,0,1,1)}:host([disabled]){opacity:.38}:host(:empty){vertical-align:-11.5%;line-height:18px}:host(:empty) #checkbox{transform:none}#control{grid-column:1/1;cursor:inherit}#label{cursor:inherit}#label[disabled]{cursor:not-allowed}#state,#ripple-container{inset-block-start:50%;inset-inline-start:50%;block-size:40px;inline-size:40px;transform:translate(-50%) translateY(-50%);border-radius:50%}#checkbox{position:relative;display:inline-flex;grid-column:1 / 1;pointer-events:none;transform:translateY(11.5%);color:rgb(var(--mdw-color__on-surface))}#checkbox[selected]{color:rgb(var(--mdw-bg))}#checkbox[disabled]{color:rgb(var(--mdw-color__on-surface))}#checkbox[errored]{color:rgb(var(--mdw-color__error))}#icon{--mdw-ink: inherit;--mdw-bg: inherit;--disabled-opacity: 1}`.on({composed({html:t}){let{label:e,control:i,state:r,rippleContainer:o,touchTarget:n}=this.refs;e.append(t`
|
|
9
|
+
`)},disabledStateChanged(e,i){let r=this.refs.control;r.setAttribute("aria-disabled",`${i}`),this.focusableOnDisabled||(r.disabled=i,i?this.tabIndex=0:this.removeAttribute("tabindex"))},constructed(){let e=this.refs.control;this._value=e.value},connected(){this.hasAttribute("tabindex")||(this.tabIndex=0)},attrs:{autocomplete:T("autocomplete","control"),name:T("name","control"),readonly:T("readonly","control"),required:T("required","control")}}).childEvents({control:{input({currentTarget:e}){let i=e;this.validity.valid?(i.checkValidity(),this._badInput=i.validity.badInput):this.checkValidity(),this._value=i.value},change({currentTarget:e}){let i=e;this._valueDirty=!0,this._value=i.value,this.checkValidity(),this.dispatchEvent(new Event("change",{bubbles:!0}))}}}).css`:host{display:inline-flex}:host(::-moz-focus-inner){border:0}#label{display:contents;pointer-events:none}#control{position:absolute;inset:50%;block-size:100%;min-block-size:48px;inline-size:100%;min-inline-size:48px;margin:0;border:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;outline:none;pointer-events:auto;transform:translate(-50%) translateY(-50%);z-index:4;background-color:transparent;border-radius:0;color:transparent}#control::-moz-focus-inner{border:0}`}var Ir=new Set(["text","search","url","tel","email","password","date","month","week","time","datetime-local","number"]),K={nullParser:String,empty:""};function Y(t){return t.mixin(_e).extend().observe({accept:K,alt:K,dirName:{attr:"dirname",...K},_formAction:{attr:"formaction"},formEnctype:{attr:"formenctype",...K},formMethod:{attr:"formmethod",...K},formNoValidate:{attr:"formNoValidate",type:"boolean"},formTarget:{attr:"formtarget",...K},_height:{attr:"height",type:"integer"},indeterminate:{type:"boolean",reflect:!1},max:K,maxLength:{attr:"maxlength",type:"integer",empty:-1},min:K,minLength:{attr:"minlength",type:"integer",empty:-1},multiple:"boolean",pattern:K,placeholder:K,size:{type:"integer",empty:20},src:K,step:K,_width:{attr:"width",type:"integer"}}).define({_input(){return this.refs.control}}).overrides({controlTagName:"input"}).on({composed({inline:e}){let{label:i,control:r}=this.refs;i.setAttribute("selected","{checked}"),i.setAttribute("invalid","{_invalid}"),i.setAttribute("indeterminate","{indeterminate}"),r.setAttribute("checked","{defaultChecked}"),r.setAttribute("height","{_height}"),r.setAttribute("width","{_width}"),r.setAttribute("value","{_defaultValue}")},typeChanged(){this.onValueChangingContentAttribute()},defaultCheckedChanged(){this._checked=this._input.checked},minChanged(){this.onValueChangingContentAttribute()},minLengthChanged(){this.onValueChangingContentAttribute()},maxChanged(){this.onValueChangingContentAttribute()},maxLengthChanged(){this.onValueChangingContentAttribute()},multipleChanged(){this.onValueChangingContentAttribute()},patternChanged(){this.onValueChangingContentAttribute()},stepChanged(){this.onValueChangingContentAttribute()},defaultValueChanged(){this.onValueChangingContentAttribute()},_formResetChanged(e,i){if(!i)return;let r=this._input;r.value=this.defaultValue,r.checked=this.defaultChecked,this._value=r.value,this._checked=r.checked,this._checkedDirty=!1},attrs:{accept:T("accept","control"),alt:T("alt","control"),dirname:T("dirname","control"),formenctype:T("formenctype","control"),formmethod:T("formmethod","control"),formnovalidate:T("formnovalidate","control"),formTarget:T("formTarget","control"),max:T("max","control"),maxlength:T("maxlength","control"),min:T("min","control"),minlength:T("minlength","control"),multiple:T("multiple","control"),pattern:T("pattern","control"),placeholder:T("placeholder","control"),size:T("size","control"),src:T("src","control"),step:T("step","control")}}).overrides({_onSetChecked(e){this._input.checked=e,this._checked=this._input.checked},_onSetValue(e){this._input.value=e,this._value=this._input.value}}).methods({performImplicitSubmission(e){let i=this.form;if(!i)return;let r,o=new Set;for(let n of i.elements){if(n.type==="submit"&&!n.disabled&&!n.matches(":disabled")){r??=n;break}Ir.has(n.type)&&o.add(n)}if(r){r.click();return}o.size>1||this.form.submit()}}).childEvents({control:{keydown(e){e.defaultPrevented||e.key==="Enter"&&e.currentTarget.type!=="submit"&&this.performImplicitSubmission(e)},change(e){if(this.disabledState){e.preventDefault(),e.stopImmediatePropagation();return}let i=e.currentTarget;this._checkedDirty=!0,this._checked=i.checked}}}).define({files(){return this._input.files},select(){return this._input.select},selectionDirection:{get(){return this._input.selectionDirection},set(e){this._input.selectionDirection=e}},selectionEnd:{get(){return this._input.selectionEnd},set(e){this._input.selectionEnd=e}},selectionStart:{get(){return this._input.selectionStart},set(e){this._input.selectionStart=e}},setRangeText(){return this._input.setRangeText},setSelectionRange(){return this._input.setSelectionRange},showPicker(){return this._input.showPicker},stepDown(){return this._input.stepDown},stepUp(){return this._input.stepUp},valueAsDate:{get(){return this._input.valueAsDate},set(e){this._input.valueAsDate=e,this.value=this._input.value}},valueAsNumber:{get(){return this._input.valueAsNumber},set(e){this._input.valueAsNumber=e,this.value=this._input.value}},height:{get(){return this._input.height},set(e){this._input.height=e,this._height=e}},formAction:{get(){return this._input.formAction},set(e){this._input.formAction=e,this._formAction=e}},width:{get(){return this._input.width},set(e){this._input.width=e,this._width=e}}})}var Rr=new Map,lt={type:"function",reflect:"read",value:null,values:Rr,parser(t){return t},attributeChangedCallback(t,e,i){if(e==null&&i==null)return;if(i==null){this[t]=null;return}let r=document.createElement("button");r.setAttribute("onclick",i);let o=r.onclick;r.remove(),this[t]=o},propChangedCallback(t,e,i){let r=t.slice(2);e&&this.removeEventListener(r,e),i&&this.addEventListener(r,i)}};var Pi=new WeakMap,Fi=new WeakMap,st=new WeakSet;function Lr(){let t=Pi.get(this),e=Fi.get(this);if(!e){t?.cancel();return}let r=(e.target?this.composition.getElement(this.shadowRoot,e.target):this).animate(e.styles,{...e.timing,fill:"forwards"});r.onremove=()=>{t?.effect.updateTiming({fill:"none"}),t?.finish(),t?.cancel(),t=null},Pi.set(this,r),st.delete(this)}var ve={type:"object",reflect:!1,values:Fi,diff:null,changedCallback(t,e){let i=st.has(this);if(!e){if(!i)return;st.delete(this);return}i||(queueMicrotask(Lr.bind(this)),st.add(this))}};var Oi=u.extend().set({hadRippleHeld:!1,hadRippleReleased:!1,rippleStarted:!1}).observe({rippleState:"string",keepAlive:"boolean",_positionX:"float",_positionY:"float",_radius:"float",holdRipple:{type:"boolean",changedCallback(t,e){e?this.hadRippleHeld=!0:this.hadRippleReleased=!0}}}).observe({_positionStyle:{...ve,get({_positionX:t,_positionY:e,_radius:i}){return{styles:{minBlockSize:`${i}px`,minInlineSize:`${i}px`,boxShadow:`0 0 calc(0.10 * ${i}px) calc(0.10 * ${i}px) currentColor`,left:`calc(50% + ${t}px)`,top:`calc(50% + ${e}px)`}}}}}).methods({updatePosition(t,e,i){let r=i,{clientWidth:o,clientHeight:n}=this.offsetParent;if(t??=o/2,e??=n/2,!r){let a=t>=o/2?t:o-t,s=e>=n/2?e:n-e;r=2*Math.sqrt(a*a+s*s)}this._positionX=t-o/2,this._positionY=e-n/2,this._radius=r},handleRippleComplete(){this.keepAlive?this.setAttribute("ripple-state","complete"):this.remove()}}).events({animationstart({animationName:t}){if(t==="ripple-fade-in"){if(this.rippleStarted&&!this.keepAlive){this.remove();return}this.rippleStarted=!0}},animationend({animationName:t}){switch(t){case"ripple-fade-in":this.setAttribute("ripple-state","filled");break;case"ripple-fade-out":this.handleRippleComplete();break;default:}}}).css`:host{--enter-delay: 80ms;--touch-down-acceleration: 1024;--touch-up-acceleration: 3400;--mdw-ripple-expand-duration: .3s;--mdw-ripple-simple-duration: .2s;--mdw-ripple-fade-out-duration: 333ms;--mdw-ripple-standard-easing: var(--mdw-motion-standard-easing, cubic-bezier(.4, 0, .2, 1));--mdw-ripple-deceleration-easing: var(--mdw-motion-deceleration-easing, cubic-bezier(0, 0, .2, 1));--size: 0;position:absolute;top:50%;left:50%;display:block;min-block-size:141.42%;min-inline-size:141.42%;pointer-events:none;-webkit-tap-highlight-color:transparent;opacity:.12;transform:translate(-50%) translateY(-50%) scale(1);background-color:currentColor;border-radius:50%;box-shadow:0 0 calc(.1 * var(--size)) calc(.1 * var(--size)) currentColor;transition-delay:0s;transition-duration:var(--mdw-ripple-simple-duration);transition-property:background-color,color;transition-timing-function:var(--mdw-ripple-standard-easing);animation-name:ripple-fade-in,none;animation-duration:var(--mdw-ripple-expand-duration),var(--mdw-ripple-fade-out-duration);animation-timing-function:linear,var(--mdw-ripple-deceleration-easing);animation-direction:normal;animation-fill-mode:forwards;will-change:transform,opacity,top,left,box-shadow;aspect-ratio:1/1}:host([ripple-state="filled"]){animation-name:none,ripple-fade-out}:host([ripple-state="filled"][hold-ripple]){animation-name:ripple-fade-in,none}:host([ripple-state="complete"]){animation-name:none,ripple-fade-out;animation-duration:0s}@keyframes ripple-fade-in{0%{transform:translate(-50%) translateY(-50%) scale(0)}}@keyframes ripple-fade-out{to{opacity:0}}`.autoRegister("mdw-ripple");function B(t){return t.extend().set({_lastRippleWeakRef:null,_rippleAdded:!1}).define({_lastRipple:{get(){let e=this._lastRippleWeakRef?.deref();return e?.isConnected?e:null},set(e){this._lastRippleWeakRef=e?new WeakRef(e):null}}}).methods({addRipple(e,i,r){let{rippleContainer:o}=this.refs;if(!o.isConnected)return null;let n=new Oi;return this._rippleAdded=!0,queueMicrotask(()=>{this._rippleAdded=!1}),o.appendChild(n),r&&(n.holdRipple=!0),n.updatePosition(e,i),this._lastRipple=n,n}}).html`<div id=ripple-container _if={!disabledState} aria-hidden=true></div>`.events({"~pointerdown"(e){if(e.button||this.disabledState)return;let{rippleContainer:i}=this.refs;if(!i.isConnected)return;let r=i.getBoundingClientRect(),o=e.pageX-r.left-window.pageXOffset,n=e.pageY-r.top-window.pageYOffset,a=this._lastRipple;a&&(a.holdRipple=!1),this.addRipple(o,n)},"~click"(e){if(this._rippleAdded||e.pointerType||e.detail||this.disabledState||this._pressed)return;let i=this._lastRipple;i&&(i.holdRipple=!1),this.addRipple()}}).on({_pressedChanged(e,i){let r=this._lastRipple;if(!i){r&&(r.holdRipple=!1);return}if(!r||r.hadRippleReleased){if(this._lastInteraction!=="key")return;this.addRipple(null,null,!0);return}r.hadRippleHeld||(r.holdRipple=!0)}}).css`:host{--mdw-state__pressed-opacity: 0}#ripple-container{position:absolute;inset:0;overflow:hidden;pointer-events:none}`}var $i=window?.matchMedia?.("(any-pointer: coarse)").matches;function R(t){return t.extend().observe({disabled:"boolean",_lastInteraction:{value:null},_hovered:"boolean",_focused:"boolean",_pressed:"boolean",stateLayer:"boolean"}).observe({disabledState({disabled:e}){return e},hoveredState({_hovered:e}){return e},focusedState({_focused:e}){return e},pressedState({_pressed:e}){return e},touchedState({_lastInteraction:e}){return e==="touch"}}).define({stateTargetElement(){return this}}).html`<div id=state _if={stateLayer} disabled={disabledState} focused={focusedState} hovered={hoveredState} pressed={pressedState} interaction={_lastInteraction} touched={touchedState} aria-hidden=true></div>`.events({pointerenter(e){e.isPrimary&&(this._pressed=this.stateTargetElement.matches(":active"),e.pointerType!=="touch"&&(this._hovered=!0))},"~pointerdown"(e){e.isPrimary&&(this._lastInteraction=e.pointerType,this._pressed=!0)},"~pointerup"(e){e.isPrimary&&(this._lastInteraction=e.pointerType,this._pressed=!1)},pointercancel(e){e.isPrimary&&(this._pressed=this.stateTargetElement.matches(":active"))},pointerleave(e){e.isPrimary&&(this._pressed=!1,this._hovered=!1)},"~keydown"(e){this._lastInteraction="key",!e.repeat&&requestAnimationFrame(()=>{this._pressed=this.stateTargetElement.matches(":active")})},"~keyup"(){this._lastInteraction="key",requestAnimationFrame(()=>{this._pressed=this.stateTargetElement.matches(":active")})},blur(){this._focused=!1,this._lastInteraction&&($i=this._lastInteraction==="touch")},focus(){this._focused=!0,!this._lastInteraction&&$i&&(this._lastInteraction="touch")}}).on({disconnected(){this._lastInteraction=null}}).css`:host{--mdw-state__hovered-opacity: .08;--mdw-state__focused-opacity: .12;--mdw-state__pressed-opacity: .12;--mdw-state__dragged-opacity: .12;position:relative;outline:none;-webkit-tap-highlight-color:transparent}:host(::-moz-focus-inner){border:0}#state{position:absolute;inset:0;pointer-events:none;opacity:calc(var(--mdw-state__hovered-opacity) + var(--mdw-state__focused-opacity) + var(--mdw-state__pressed-opacity) + var(--mdw-state__dragged-opacity));background-color:currentColor;border-radius:inherit;transition-delay:0ms;transition-duration:s;transition-property:opacity,color,background-color;will-change:opacity}#state[touched]{--mdw-state__hovered-opacity: 0;--mdw-state__focused-opacity: 0}#state:is(:not([hovered]),[disabled]:not([state-disabled~="hover"]),[state-off~="hover"]){--mdw-state__hovered-opacity: 0}#state:is(:not([focused]),[disabled]:not([state-disabled~="focus"]),[state-off~="focus"]){--mdw-state__focused-opacity: 0}#state:is(:not([pressed]),[disabled]:not([state-disabled~="pressed"]),[state-off~="pressed"]){--mdw-state__pressed-opacity: 0}:host(:not([aria-dragged="true"])) #state,#state:is([disabled]:not([state-disabled~="dragged"]),[state-off~="dragged"]){--mdw-state__dragged-opacity: 0}#state[disabled]:not([state-disabled]){display:none}`}var ce=u.mixin(v).mixin(H).mixin(te).mixin(L).mixin(R).mixin(B).mixin(Y).extend().define({stateTargetElement(){return this.refs.control}}).set({stateLayer:!0,delegatesFocus:!0}).observe({type:{empty:"button"},elevated:"boolean",filled:"string",outlined:"boolean",icon:"string",iconInk:"string",src:"string",svg:"string",svgPath:"string"}).expressions({hasIcon({icon:t,svg:e,src:i,svgPath:r}){return t??e??i??r}}).html`<mdw-icon _if={hasIcon} id=icon ink={iconInk} disabled={disabledState} outlined={outlined} aria-hidden=true svg={svg} src={src} svg-path={svgPath}>{icon}</mdw-icon><slot id=slot disabled={disabledState}></slot>`.on({composed(){let{shape:t,surfaceTint:e,state:i,rippleContainer:r,surface:o,control:n,label:a,slot:s,icon:l}=this.refs;o.append(t),t.append(i,r,e),a.append(l,s),t.setAttribute("filled","{filled}"),n.setAttribute("role","button")}}).css`:host{--mdw-shape__size: var(--mdw-shape__full);--mdw-ink: var(--mdw-color__primary);--mdw-type__font: var(--mdw-typescale__label-large__font);--mdw-type__letter-spacing: var(--mdw-typescale__label-large__letter-spacing);display:inline-flex;align-items:center;gap:0;justify-content:center;vertical-align:middle;min-block-size:24px;min-inline-size:24px;padding-block:calc(8px + (var(--mdw-density) * 2px));padding-inline:calc(12px + (var(--mdw-density) * 2px));-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}:host(:where([elevated],[filled])){will-change:filter}:host(:where([elevated])){--mdw-bg: var(--mdw-color__surface);--mdw-ink: var(--mdw-color__primary);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__1);--mdw-surface__shadow__raised: var(--mdw-surface__shadow__2);--mdw-surface__tint: var(--mdw-surface__tint__1);--mdw-surface__tint__raised: var(--mdw-surface__tint__2)}:host(:where([filled])){--mdw-bg: var(--mdw-color__primary);--mdw-ink: var(--mdw-color__on-primary);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__0);--mdw-surface__shadow__raised: var(--mdw-surface__shadow__1);--mdw-surface__tint: 0;--mdw-surface__tint__raised: var(--mdw-surface__tint__1)}:host(:where([filled="tonal"])){--mdw-bg: var(--mdw-color__secondary-container);--mdw-ink: var(--mdw-color__on-secondary-container)}:host(:where([outlined])){--mdw-ink: var(--mdw-color__primary)}:host(:where([icon])){gap:8px;padding-inline:calc(12px + (var(--mdw-density) * 2px)) calc(16px + (var(--mdw-density) * 2px))}:host(:where([outlined],[elevated],[filled])){padding-inline:calc(24px + (var(--mdw-density) * 2px))}:host(:where([icon]):where([outlined],[elevated],[filled])){gap:8px;padding-inline:calc(16px + (var(--mdw-density) * 2px)) calc(24px + (var(--mdw-density) * 2px))}#shape:where([elevated],[filled],[color]){background-color:rgb(var(--mdw-bg))}#slot{text-align:center;text-decoration:none;white-space:nowrap}#control{cursor:inherit}:host([disabled]){color:rgba(var(--mdw-color__on-surface),.38)}#shape[disabled]:is([elevated],[filled]){background-color:rgba(var(--mdw-color__on-surface),.12);color:rgba(var(--mdw-color__on-surface),.38)}#slot[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#icon{font-size:calc(18/14 * 1em);font-variation-settings:"FILL" 1}#icon[outlined]{font-variation-settings:"FILL" 0}#icon[disabled]{opacity:.38;color:rgba(var(--mdw-color__on-surface))}#label{cursor:pointer}#label[disabled]{cursor:not-allowed}@media (any-pointer: coarse){#touch-target{visibility:visible}}`.childEvents({control:{"~click"({currentTarget:t}){if(t.disabled||t.type!=="submit"||this.disabled)return;let{value:e}=t,i=this.elementInternals?.form;if(!i||(this.elementInternals.setFormValue(e),(t.type??"submit")!=="submit"))return;let r=t.cloneNode();r.hidden=!0,i.append(r),"requestSubmit"in i?i.requestSubmit(r):r.click(),r.remove()}}}).autoRegister("mdw-button");var Ni="inert"in HTMLElement.prototype,Pr=u.mixin(v).mixin(ue).mixin(te).mixin(L).mixin(ie).mixin(R).mixin(P).extend().setStatic({delegatesFocus:!0}).set({_ariaRole:"figure"}).observe({filled:"boolean",actionable:"boolean",actionLabel:"string",onaction:lt}).define({stateTargetElement(){return this.actionable?this.refs.action:this}}).expressions({showBlocker:({disabledState:t})=>!Ni&&t}).methods({focus(){this.disabledState||this.actionable&&this.refs.action.focus()}}).html`<mdw-button _if={actionable} aria-label={actionLabel} id=action disabled={disabledState}></mdw-button><div _if={showBlocker} id=inert-blocker></div><slot id=slot disabled={disabledState}></slot>`.css`:host{--mdw-shape__size: 12px;--mdw-surface__tint: var(--mdw-surface__tint__0);--mdw-surface__tint__raised: var(--mdw-surface__tint);--mdw-surface__shadow__resting: none;--mdw-surface__shadow__raised: var(--mdw-surface__shadow__resting);--mdw-bg: var(--mdw-color__surface);--mdw-ink: var(--mdw-color__on-surface);position:relative;display:block;color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}#shape:where([elevated],[filled],[color]){background-color:rgb(var(--mdw-bg))}:host(:where([filled])){--mdw-bg: var(--mdw-color__surface-variant);--mdw-ink: var(--mdw-color__on-surface-variant)}:host(:where([elevated])){--mdw-bg: var(--mdw-color__surface);--mdw-ink: var(--mdw-color__on-surface)}:host([filled]){--mdw-surface__tint: var(--mdw-surface__tint__0);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__0)}:host([filled][actionable]){--mdw-surface__tint__raised: var(--mdw-surface__tint__1);--mdw-surface__shadow__raised: var(--mdw-surface__shadow__1)}:host([elevated]){--mdw-surface__tint: var(--mdw-surface__tint__1);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__1)}:host([elevated][actionable]){--mdw-surface__tint__raised: var(--mdw-surface__tint__2);--mdw-surface__shadow__raised: var(--mdw-surface__shadow__2)}#shape[disabled]{filter:grayscale();color:rgb(var(--mdw-color__on-surface))}:host([disabled]){cursor:not-allowed;filter:grayscale();opacity:.38}#slot[disabled]{color:rgb(var(--mdw-color__on-surface))}#outline[disabled]{color:rgba(var(--mdw-color__on-surface),calc(.12/.38))}#inert-blocker{position:absolute;inset:0;cursor:not-allowed;pointer-events:auto;z-index:99}#shape[disabled][elevated]{background-color:rgba(var(--mdw-color__surface-variant))}#action{--mdw-ink: inherit;--mdw-shape__size: inherit;position:absolute;inset:0;padding:0;z-index:0;color:inherit}`.on({composed(){let{slot:t,surface:e,surfaceTint:i,shape:r,outline:o}=this.refs;r.append(i),e.append(r),o.removeAttribute("pressed"),o.removeAttribute("focused"),r.setAttribute("filled","{filled}"),t.setAttribute("inert","{disabledState}"),t.setAttribute("disabled","{disabledState}")}}).childEvents({action:{click(){this.disabledState||this.dispatchEvent(new Event("action"))}},slot:Ni?{}:{focusin(){this.disabledState}}}).autoRegister("mdw-card");var Ma=u.mixin(v).mixin(L).observe({selected:"boolean",icon:"string",errored:"boolean",disabled:"boolean"}).define({checked:{get(){return this.selected},set(t){this.selected=t}}}).css`:host{--mdw-ink: var(--mdw-color__on-primary);--mdw-bg: var(--mdw-color__primary);--mdw-shape__size: 2px;--disabled-opacity: .38;position:relative;display:inline-block;align-items:center;justify-content:center;box-sizing:border-box;block-size:18px;inline-size:18px;font-size:18px;line-height:18px}#shape{--mdw-shape__size: inherit;position:absolute;inset:0;z-index:auto;background-color:transparent}#icon{position:absolute;inset:0;opacity:0;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition-duration:.2s;transition-property:opacity,background-color,color;will-change:opacity}#outline{filter:drop-shadow(1px 0px 0px currentColor) drop-shadow(0px 1px 0px currentColor) drop-shadow(-1px 0px 0px currentColor) drop-shadow(0px -1px 0px currentColor);color:rgb(var(--mdw-color__on-surface));transition-duration:.2s;transition-property:opacity,background-color,color;will-change:opacity}#icon[selected]{opacity:1}#outline[selected]{opacity:0}#icon[errored]{background-color:rgb(var(--mdw-color__error));color:rgb(var(--mdw-color__on-error))}#outline[errored]{color:rgb(var(--mdw-color__error))}#icon[disabled]{background-color:rgba(var(--mdw-color__on-surface),var(--disabled-opacity));color:rgb(var(--mdw-color__surface),var(--disabled-opacity))}#outline[disabled]{color:rgb(var(--mdw-color__on-surface),var(--disabled-opacity))}`.on({composed({html:t}){let{outline:e,shape:i}=this.refs;e.removeAttribute("_if"),e.setAttribute("selected","{selected}"),e.setAttribute("errored","{errored}"),e.setAttribute("disabled","{disabled}"),i.append(t`<mdw-icon id=icon selected={selected} errored={errored} disabled={disabled}>{icon}</mdw-icon>`)}}).extend().autoRegister("mdw-checkbox-icon");function he(t){return t.extend().html`<div id=touch-target class=touch-target></div>`.css`.touch-target{position:absolute;inset:50%;block-size:100%;min-block-size:48px;inline-size:100%;min-inline-size:48px;cursor:inherit;pointer-events:auto;transform:translate(-50%) translateY(-50%);visibility:visible;z-index:1;border-radius:inherit}`}var Fr=u.mixin(v).mixin(R).mixin(B).mixin(Y).mixin(he).extend().set({stateLayer:!0,type:"checkbox"}).observe({icon:{value:"check"},indeterminateIcon:{value:"check_indeterminate_small"},indeterminate:"boolean"}).observe({_ariaChecked({indeterminate:t,checked:e}){return t?"mixed":`${!!e}`},_determinateIcon({indeterminate:t,indeterminateIcon:e,icon:i}){return t?e:i}}).css`:host{--mdw-ink: var(--mdw-color__on-primary);--mdw-bg: var(--mdw-color__primary);display:inline-grid;align-items:baseline;gap:12px;grid-auto-flow:column;justify-content:flex-start;cursor:pointer;transition:none .1s cubic-bezier(.4,0,1,1)}:host([disabled]){opacity:.38}:host(:empty){vertical-align:-11.5%;line-height:18px}:host(:empty) #checkbox{transform:none}#control{grid-column:1/1;cursor:inherit}#label{cursor:inherit}#label[disabled]{cursor:not-allowed}#state,#ripple-container{inset-block-start:50%;inset-inline-start:50%;block-size:40px;inline-size:40px;transform:translate(-50%) translateY(-50%);border-radius:50%}#checkbox{position:relative;display:inline-flex;grid-column:1 / 1;pointer-events:none;transform:translateY(11.5%);color:rgb(var(--mdw-color__on-surface))}#checkbox[selected]{color:rgb(var(--mdw-bg))}#checkbox[disabled]{color:rgb(var(--mdw-color__on-surface))}#checkbox[errored]{color:rgb(var(--mdw-color__error))}#icon{--mdw-ink: inherit;--mdw-bg: inherit;--disabled-opacity: 1}`.on({composed({html:t}){let{label:e,control:i,state:r,rippleContainer:o,touchTarget:n}=this.refs;e.append(t`
|
|
10
10
|
${n}
|
|
11
11
|
${i}
|
|
12
12
|
<div id=checkbox errored={erroredState} selected={checked}>
|
|
@@ -17,7 +17,7 @@ var vi=Object.defineProperty;var cr=(t,e,i)=>e in t?vi(t,e,{enumerable:!0,config
|
|
|
17
17
|
${o}
|
|
18
18
|
</div>
|
|
19
19
|
<slot id=slot></slot>
|
|
20
|
-
`),i.setAttribute("aria-checked","{_ariaChecked}")}}).autoRegister("mdw-checkbox");var Rt=ce.extend().observe({suggestion:"boolean"}).css`:host{--mdw-shape__size: 8px;--mdw-ink: var(--mdw-color__on-surface);padding-block:calc(4px + (var(--mdw-density) * 2px));padding-inline:calc(16px + (var(--mdw-density) * 2px));color:rgb(var(--mdw-ink))}:host(:where([suggestion])){--mdw-ink: var(--mdw-color__on-surface-variant)}:host(:where([icon])){gap:8px;padding-inline:calc(8px + (var(--mdw-density) * 2px)) calc(16px + (var(--mdw-density) * 2px))}#outline{--mdw-ink: rgb(var(--mdw-color__on-surface-variant))}#outline:is([ink],[color]){--mdw-ink: inherit}#slot[disabled],#icon[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}`.on({composed({inline:t}){let{slot:e,outline:i,icon:r}=this.refs;e.setAttribute("disabled","{disabledState}"),e.removeAttribute("ink"),e.removeAttribute("color"),i.setAttribute("_if","{!elevated}"),i.setAttribute("ink","{ink}"),i.setAttribute("color","{color}"),r.setAttribute("ink",t(({ink:o,iconInk:n})=>n??o??"primary"))}}).autoRegister("mdw-chip");var Or=u.mixin(v).extend().observe({vertical:"boolean"}).css`:host{--mdw-ink: var(--mdw-color__outline-variant);position:relative;display:block;overflow:visible;box-sizing:border-box;block-size:0;inline-size:100%;color:rgb(var(--mdw-ink))}:host:before{content:"";display:block;box-sizing:border-box;block-size:1px;inline-size:auto;background-color:currentcolor}:host([vertical]){display:inline-flex;vertical-align:top;block-size:auto;min-block-size:100%;inline-size:0}:host([vertical]):before{block-size:auto;min-inline-size:1px}`.autoRegister("mdw-divider");var Xa=u.extend().css`:host{align-self:flex-end;margin-block:24px;padding-inline:24px}`.html`<slot id=slot></slot>`.register("mdw-dialog-actions");function Di(t){let e=this.querySelectorAll(['button:not(:disabled):not([tabindex="-1"])','[href]:not(:disabled):not([tabindex="-1"])','input:not(:disabled):not([tabindex="-1"]):not([hidden])','select:not(:disabled):not([tabindex="-1"])','textarea:not(:disabled):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])'].join(", ")),i=!1,r=null;for(let o of e)if(o===t.target){if(i=!0,t.shiftKey)break}else if(t.shiftKey)r=o;else if(i){r=o;break}if(r||(r=t.shiftKey?e[e.length-1]:e[0]),t.stopPropagation(),t.preventDefault(),r&&r instanceof HTMLElement)try{r.focus()}catch{}}var Ce=[],Lt=typeof HTMLDialogElement<"u",$r=u.extend().define({_dialog(){return this.refs.dialog},returnValue(){return this.refs.dialog.returnValue}}).observe({open:"boolean",dividers:{value:null},headline:"string",icon:"string",default:{value:"confirm"},cancel:{value:"Cancel"},confirm:{value:"Confirm"},_isNativeModal:"boolean",color:{empty:"surface"},ink:"string",outlined:"boolean",elevation:{empty:3}}).methods({onTransitionEnd(t){t.propertyName==="opacity"&&this.getAttribute("aria-hidden")==="true"&&this.setAttribute("mdw-ready","")},onSlotChange({currentTarget:t}){let i=t.assignedNodes().some(r=>r.nodeType===r.ELEMENT_NODE||r.nodeType===r.TEXT_NODE&&r.nodeValue.trim().length);t.toggleAttribute("slotted",i)},onFormSubmit(t){if(t.currentTarget.assignedSlot){let e=t.submitter?.value;this.close(e),t.preventDefault()}},onFormSlotChange({currentTarget:t}){let[e]=t.assignedNodes();e?.addEventListener("submit",i=>this.onFormSubmit(i))},onPopState(t){if(!t.state)return;let e=Ce.at(-1);if(!(!e||!e.previousState)&&(e.previousState===t.state||Object.entries(t.state).every(([i,r])=>r===e.previousState[i]))){let i=new Event("cancel",{cancelable:!0});e.element.dispatchEvent(i)?e.element.close():window.history.pushState(e.state,e.state.title)}},close(t){if(!this.open)return!1;if(this._isNativeModal)this._isNativeModal=!1;else{let i=document.querySelector("main");i&&i.removeAttribute("aria-hidden")}Lt&&this._dialog.open?this._dialog.close(t):this._dialog.returnValue=t,this.open=!1,this.dispatchEvent(new Event("close"));let e=-1;if(Ce.some((i,r)=>i.element===this?(e=r,!0):!1),e!==-1){let i=Ce[e];if(i.previousFocus&&i.previousFocus instanceof HTMLElement&&document.activeElement?.closest(this.constructor.elementName)===this)try{i.previousFocus.focus()}catch{}Ce.splice(e,1),i.state&&window.history&&window.history.state&&i.state.hash===window.history.state.hash&&window.history.back()}return Ce.length||window.removeEventListener("popstate",this.onPopState),!0},showModal(t){return this.open?!1:(Lt&&(this._dialog.showModal(),this._isNativeModal=!0),this.show(t))},show(t){if(this.open)return!1;if(this.open=!0,Lt){this._dialog.show();let s=document.querySelector("main");s&&s.setAttribute("aria-hidden","true")}let e=document.activeElement,i=this.headline||this.textContent,r={time:Date.now(),random:Math.random(),title:i},o=null;window.history.state||window.history.replaceState({hash:Math.random().toString(36).slice(2,18)},document.title),o=window.history.state,window.history.pushState(r,i),window.addEventListener("popstate",this.onPopState);let n={element:this,previousFocus:e,state:r,previousState:o};Ce.push(n);let a=this.querySelector("[autofocus]")??this.shadowRoot.querySelector("[autofocus]");try{a&&a instanceof HTMLElement?(a.scrollIntoView&&a.scrollIntoView(),a.focus()):this.refs.surface.focus()}catch{}return!0}}).expressions({cancelAutoFocus({default:t}){return t==="cancel"},confirmAutoFocus({default:t}){return t==="confirm"},_ariaHidden({open:t}){return t?"false":"true"}}).html`<dialog id=dialog aria-modal=true role=dialog aria-hidden={_ariaHidden} aria-labelledby=headline aria-describedby=slot><div _if={open} id=scrim aria-hidden=true></div><mdw-surface id=surface open={open} icon={icon} elevation={elevation} color={color} ink={ink} outlined={outlined}><mdw-icon _if={icon} id=icon class=content ink=secondary aria-hidden=true>{icon}</mdw-icon><slot id=headline name=headline on-slotchange={onSlotChange} role=header>{headline}</slot><slot id=fixed name=fixed class=content on-slotchange={onSlotChange}></slot><mdw-divider id=divider-top size={dividers}></mdw-divider><slot id=slot class=content on-slotchange={onSlotChange}></slot><mdw-divider id=divider-bottom size={dividers}></mdw-divider><slot name=form id=form-slot on-slotchange={onFormSlotChange}><form id=form method=dialog role=none on-submit={onFormSubmit}><mdw-dialog-actions><mdw-button id=cancel type=submit value=cancel autofocus={cancelAutoFocus}>{cancel}</mdw-button><mdw-button id=confirm type=submit value=confirm autofocus={confirmAutoFocus}>{confirm}</mdw-button></mdw-dialog-actions></form></slot></mdw-surface></dialog>`.css`:host{--mdw-dialog__expand-duration: var(--mdw-motion-expand-duration, .25s);--mdw-dialog__simple-duration: var(--mdw-motion-simple-duration, .1s);--mdw-dialog__standard-easing: var(--mdw-motion-standard-easing, cubic-bezier(.4, 0, .2, 1));--mdw-dialog__deceleration-easing: var(--mdw-motion-deceleration-easing, cubic-bezier(0, 0, .2, 1));--mdw-dialog__fade-in-duration: var(--mdw-motion-fade-in-duration, .15s);position:fixed;inset:0;pointer-events:none;z-index:24}#dialog{position:fixed;inset-block-start:0;inset-inline-start:0;display:flex;align-items:center;flex-direction:row;justify-content:center;box-sizing:border-box;block-size:100%;max-block-size:none;inline-size:100%;max-inline-size:none;margin:0;border:none;padding:48px;opacity:0;transform:scale(0);visibility:hidden;z-index:24;background-color:transparent;transition-delay:0s,.2s,.2s;transition-duration:.2s,0s,0s;transition-property:opacity,transform,visibility;transition-timing-function:ease-out;will-change:opacity}@media (min-width: 1440px){#dialog{padding:56px}}#dialog::backdrop{display:none}#dialog[aria-hidden=false],#dialog:modal{pointer-events:auto;opacity:1;transform:none;visibility:visible;transition-delay:0s;transition-duration:0s;transition-timing-function:ease-in}#scrim{position:fixed;inset:0;overflow-y:scroll;overscroll-behavior:none;overscroll-behavior:contain;scrollbar-width:none;block-size:100%;inline-size:100%;cursor:default;pointer-events:inherit;-webkit-tap-highlight-color:transparent;opacity:.38;z-index:0;background-color:rgb(var(--mdw-color__scrim))}#scrim::-webkit-scrollbar{display:none}#scrim:after{content:"";display:block;block-size:200%;inline-size:200%}@keyframes scaleUpAnimation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}#surface{--mdw-shape__size: 28px;position:relative;display:flex;align-items:flex-start;flex-direction:column;-webkit-overflow-scrolling:touch;overscroll-behavior:none;overscroll-behavior:contain;box-sizing:border-box;max-block-size:100%;min-inline-size:280px;max-inline-size:560px;flex-shrink:1;padding-block-start:8px;transform:scale(1);transform-origin:top center;z-index:24;will-change:display,transform}#surface[icon]{align-items:center}#surface[open]{animation-name:scaleUpAnimation;animation-duration:.2s;animation-direction:forwards}#icon{padding-block-start:16px;font-size:24px}#headline{display:block;padding-block-start:16px;padding-inline:24px;font:var(--mdw-typescale__headline-small__font);letter-spacing:var(--mdw-typescale__headline-small__letter-spacing)}#headline:not([slotted]):empty{display:none}#body{padding-block:16px}.content{padding-inline:24px}#divider-top{padding-block-start:16px}mdw-divider:not([size]){color:transparent}mdw-divider[size=inset]{padding-inline:24px}#fixed{display:block;padding-block-start:16px;color:rgb(var(--mdw-color__on-surface-variant));font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#fixed:not([slotted]){display:none}#slot{display:block;overflow-y:auto;color:rgb(var(--mdw-color__on-surface-variant));font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#scroller{display:block;overflow-y:auto}#form{display:contents}#form-slot::slotted(form){display:contents}`.childEvents({dialog:{cancel(t){t.stopPropagation();let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)||t.preventDefault()},close(t){t.stopPropagation(),this.close(this.returnValue)}},scrim:{"~click"(){let t=new Event("cancel",{cancelable:!0});this.dispatchEvent(t)&&this.close()}},surface:{keydown(t){if(t.key==="Tab"){let e=t.currentTarget;if(!this._isNativeModal){let i=e.contains(t.target)?e:this;Di.call(i,t)}return}if(t.key==="Escape"||t.key==="Esc"){t.preventDefault(),t.stopPropagation();let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)&&this.close()}}}}).autoRegister("mdw-dialog");var Pt=ce.extend().css`:host{--mdw-bg: var(--mdw-color__primary-container);--mdw-ink: var(--mdw-color__on-primary-container);--mdw-shape__size: 16px;--mdw-surface__tint: var(--mdw-surface__tint__3);--mdw-surface__tint__raised: var(--mdw-surface__tint__4);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__3);--mdw-surface__shadow__raised: var(--mdw-surface__shadow__4);min-inline-size:48px;padding:calc(16px + (var(--mdw-density) * 2px))}#icon{font-size:24px}:host([lowered]){--mdw-surface__tint: var(--mdw-surface__tint__1);--mdw-surface__tint__raised: var(--mdw-surface__tint__2);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__1);--mdw-surface__shadow__raised: var(--mdw-surface__shadow__2)}`.observe({filled:{empty:"tonal"},elevated:{type:"boolean",empty:!0}}).autoRegister("mdw-extended-fab");var Nr=le.mixin(P).extend().set({_ariaRole:"tooltip"}).observe({open:{type:"boolean",changedCallback(t,e){this.updateAriaProperty("ariaHidden",e?"true":"false")}},touch:"boolean"}).css`:host{--mdw-shape__size: var(--mdw-shape__extra-small);--mdw-ink: var(--mdw-color__on-surface-variant);--mdw-shape__bg: rgb(var(--mdw-color__surface-variant));display:block;vertical-align:middle;box-sizing:border-box;margin-inline:auto;padding-block:4px;padding-inline:8px;pointer-events:none;opacity:0;transform:scale(0);z-index:24;font:var(--mdw-typescale__label-medium__font);letter-spacing:var(--mdw-typescale__label-medium__letter-spacing);transition:transform .2s,opacity .2s}:host([touch]){padding-block:6px;padding-inline:16px;font:var(--mdw-typescale__label-large__font);letter-spacing:var(--mdw-typescale__label-large__letter-spacing)}:host([open]){opacity:1;transform:scale(1)}`.autoRegister("mdw-tooltip");function Ae(t){let{pageX:e,pageY:i,directionX:r,directionY:o}=t;if(e==null||i==null){let{clientX:m,clientY:d,anchor:p}=t,h=p instanceof Element?p.getBoundingClientRect():p;if(e==null)switch(m){case"left":case null:case void 0:e=h.left,r??="right";break;case"center":e=h.left+h.width/2,r??="center";break;case"right":e=h.right,r??="left";break;default:e=h.left+m}if(i==null)switch(d){case"top":i=h.top,o??="up";break;case"center":i=h.top+h.height/2,o??="center";break;case"bottom":case null:case void 0:i=h.bottom,o??="down";break;default:i=h.top+d}}let{width:n,height:a}=t;if(n==null||a==null){let{popup:m}=t;m instanceof Element?(n=m.clientWidth,a=m.clientHeight):(n=m.width,a=m.width)}switch(r){case"left":e-=n;break;case"center":e-=n/2}switch(o){case"up":i-=a;break;case"center":i-=a/2}let s=t.offsetX??0,l=t.offsetY??0;e+=s,i+=l;let c=t.margin??0;return!t.force&&(e-c<0||i-c<0||e+n>document.documentElement.clientWidth-c||i+a>document.documentElement.clientHeight-c)?null:{...t,offsetX:s,offsetY:l,pageX:e,pageY:i,transformOriginX:r==="center"?"center":r==="left"?"right":"left",transformOriginY:o==="center"?"center":o==="up"?"bottom":"top"}}function Ee(t){var i,r,o,n,a,s;let l=class extends t{constructor(...d){super(...d);O(this,i,void 0);O(this,r,void 0);O(this,o,!1);O(this,n,[]);O(this,a,void 0);O(this,s,void 0);T(this,"onParentScroll",d=>{this.updateTooltipPosition()});ee(this,i,this.refs.tooltip.cloneNode(!0)),w(this,i).removeAttribute("id"),w(this,i).style.setProperty("position","fixed"),w(this,i).setAttribute("aria-hidden","true"),ee(this,a,new ResizeObserver(h=>{w(this,i).open&&this.updateTooltipPosition()}));let p=[0,.49,.5,.51,1];ee(this,s,new IntersectionObserver(h=>{if(w(this,i).open){for(let g of h){if(g.intersectionRatio<=0){this.hideTooltip();return}if(g.target===w(this,i)){this.updateTooltipPosition();return}if(g.target===this){g.intersectionRatio<=.5?this.hideTooltip():this.updateTooltipPosition(g.boundingClientRect);return}}this.updateTooltipPosition()}},{threshold:p}))}onTooltipTriggerSlotChange(d){this.tooltipClone.replaceChildren(...d.currentTarget.assignedNodes().map(h=>h.cloneNode(!0)))}onTooltipTriggerFocus(d){this.disabledState||this.matches(":active")||this.showTooltip()}onTooltipTriggerKeydown(d){d.ctrlKey&&this.hideTooltip()}onTooltipTriggerBlur(){this.hideTooltip()}onTooltipTriggerPointer(d){if(!this.disabledState)switch(d.type){case"touchstart":this.scheduleShowTooltip("touch");break;case"touchend":case"touchcancel":this.scheduleHideTooltip("touch");break;case"click":case"mouseout":this.cancelShowTooltip(),this.hideTooltip();break;case"mousemove":case"mouseover":this.scheduleShowTooltip("mouse");break;default:}}get tooltipClone(){return w(this,i)}get clonedTooltip(){return w(this,i)}cancelShowTooltip(){clearTimeout(w(this,r))}scheduleHideTooltip(d){if(clearTimeout(w(this,r)),!w(this,i).open)return;let p=0;switch(d){case"mouse":p=0;break;case"touch":p=1500;break;default:}ee(this,r,setTimeout(()=>{this.hideTooltip()},p))}scheduleShowTooltip(d){if(w(this,i).open)return;let p=0;switch(d){case"mouse":p=this.constructor.TOOLTIP_MOUSE_IDLE_MS;break;case"touch":p=this.constructor.TOOLTIP_TOUCH_IDLE_MS;break;default:}clearTimeout(w(this,r)),ee(this,r,setTimeout(()=>{this.showTooltip(d==="touch")},p))}showTooltip(d=!1){if(w(this,i).open)return;this.refs.tooltip.open=!0,this.refs.tooltip.touch=d,w(this,i).touch=d,document.body.append(w(this,i)),this.updateTooltipPosition(),w(this,a).observe(this,{box:"border-box"}),w(this,s).observe(this),w(this,s).observe(w(this,i));let p=this;for(;p=p.offsetParent;)w(this,a).observe(p,{box:"border-box"}),w(this,n).push(p),w(this,s).observe(p),p.addEventListener("scroll",this.onParentScroll);window.addEventListener("scroll",this.onParentScroll),w(this,i).open=!0}hideTooltip(){w(this,a).disconnect(),w(this,s).disconnect();let d;for(;d=w(this,n).pop();)d.removeEventListener("scroll",this.onParentScroll);window.removeEventListener("scroll",this.onParentScroll),w(this,i).open=!1,w(this,i).remove(),this.refs.tooltip.open=!1;let p=this.refs.tooltip.style;p.removeProperty("width"),p.removeProperty("height")}updateTooltipPosition(d){let h={anchor:d??this.getBoundingClientRect(),width:w(this,i).clientWidth,height:w(this,i).clientHeight},g=getComputedStyle(this).direction==="rtl",f=g?"right":"left",x=g?"left":"right",A=[{clientY:"bottom",clientX:"center",offsetY:8},{clientY:"bottom",clientX:f,offsetY:8},{clientY:"bottom",clientX:x,offsetY:8},{clientY:"top",clientX:"center",offsetY:-8},{clientY:"top",clientX:f,offsetY:-8},{clientY:"top",clientX:x,offsetY:-8}],b;for(let y of A)if(b=Ae({...h,...y}),b)break;b||(b=Ae({...h,...A[0],force:!0})),w(this,i).style.setProperty("top",`${b.pageY}px`),w(this,i).style.setProperty("left",`${b.pageX}px`),w(this,i).style.setProperty("margin","0"),w(this,i).style.setProperty("transform-origin",`${b.transformOriginY} ${b.transformOriginX}`);let _=this.refs.tooltip.style;switch(_.setProperty("width",`${b.width+b.offsetX*2}px`),_.setProperty("height",`${b.height+b.offsetY}px`),b.clientY==="bottom"?(_.setProperty("top","100%"),_.removeProperty("bottom")):(_.removeProperty("top"),_.setProperty("height",`${b.height+b.offsetY}px`),_.setProperty("bottom","100%")),b.clientX){case"left":_.setProperty("left","0"),_.removeProperty("right");break;default:case"center":_.removeProperty("left"),_.removeProperty("right");break;case"right":_.removeProperty("left"),_.setProperty("right","0")}}connectedCallback(){super.connectedCallback();for(let d of["click","mousedown","mousemove","mouseout","touchmove","touchstart","touchend","touchleave","touchcancel"])this.addEventListener(d,this.onTooltipTriggerPointer,{passive:!0});this.addEventListener("focus",this.onTooltipTriggerFocus),this.addEventListener("blur",this.onTooltipTriggerBlur),this.addEventListener("keydown",this.onTooltipTriggerKeydown,{passive:!0})}disconnectedCallback(){this.hideTooltip(),super.disconnectedCallback()}},e=l;return i=new WeakMap,r=new WeakMap,o=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap,(()=>{l.on({composed({template:d,html:p}){d.append(p`<mdw-tooltip role=tooltip id=tooltip><slot id=tooltip-slot on-slotchange={onTooltipTriggerSlotChange} name=tooltip>{tooltip}</slot></mdw-tooltip>`)}}),l.css`#tooltip{position:absolute;overflow:hidden;box-sizing:content-box;block-size:0;inline-size:0;margin:0;padding:0;transform:none}#tooltip[open]{display:block;block-size:auto;inline-size:auto;cursor:default;pointer-events:auto;opacity:0;transform:none}`})(),T(e,"TOOLTIP_MOUSE_IDLE_MS",500),T(e,"TOOLTIP_TOUCH_IDLE_MS",1500),e.prototype.tooltip=e.prop("tooltip"),e}var Dr=Pt.mixin(Ee).extend().observe({fabSize:{value:null}}).css`:host{min-inline-size:24px}#icon{font-size:24px}#icon[fab-size=large]{font-size:36px}:host([fab-size="small"]){--mdw-shape__size: 12px;padding:calc(8px + (var(--mdw-density) * 2px))}:host([fab-size="large"]){--mdw-shape__size: 28px;padding:calc(30px + (var(--mdw-density) * 2px))}`.on({composed(){let{slot:t,tooltipSlot:e,control:i,shape:r,icon:o}=this.refs;t.remove(),e.removeAttribute("name"),i.setAttribute("aria-labelledby","tooltip"),r.setAttribute("fab-size","{fabSize}"),o.setAttribute("fab-size","{fabSize}")}}).autoRegister("mdw-fab");var Vr=Rt.extend().observe({type:{empty:"checkbox"},dropdown:"boolean",trailingSrc:"string",trailingIcon:"string"}).expressions({computedTrailingIcon:({trailingIcon:t,dropdown:e,trailingSrc:i})=>t||(e?"arrow_drop_down":i?"":null)}).html`<mdw-icon _if={!icon} id=check-icon disabled={disabledState} selected={checked} aria-hidden=true>check</mdw-icon><mdw-icon _if={computedTrailingIcon} id=trailing-icon aria-hidden=true src={trailingSrc}>{computedTrailingIcon}</mdw-icon>`.on({composed(){let{shape:t,icon:e,control:i,outline:r,slot:o,trailingIcon:n,checkIcon:a}=this.refs;t.setAttribute("selected","{checked}"),t.setAttribute("icon",""),t.setAttribute("trailing-icon","{computedTrailingIcon}"),e.setAttribute("_if","{icon}"),e.setAttribute("ink","{iconInk}"),i.removeAttribute("role"),r.removeAttribute("ink"),r.removeAttribute("color"),r.setAttribute("selected","{checked}"),o.removeAttribute("ink"),o.removeAttribute("color"),o.before(a),o.after(n)}}).css`:host{--mdw-ink: var(--mdw-color__on-secondary-container);--mdw-bg: var(--mdw-color__secondary-container);gap:8px;padding-inline-start:max(4px,calc(8px + (var(--mdw-density) * 2px)));padding-inline-end:max(12px,calc(16px + (var(--mdw-density) * 2px)));color:rgb(var(--mdw-color__on-surface-variant))}:host(:focus){--mdw-outline__rgb: var(--mdw-color__outline)}#icon[selected]{font-variation-settings:"FILL" 1}#shape{background-color:transparent}:host(:where([trailing-icon],[dropdown],[trailing-src])){padding-inline-start:max(4px,calc(8px + (var(--mdw-density) * 2px)))}#shape[elevated]{background-color:rgb(var(--mdw-color__surface))}#shape[selected]{background-color:rgb(var(--mdw-bg))}:host([selected]){color:rgb(var(--mdw-ink))}#outline[selected]{opacity:0}#trailing-icon{position:relative;font-size:18px}.mdw-chip__checkbox{position:absolute;max-block-size:0;max-inline-size:0;appearance:none;pointer-events:none}#check-icon{font-size:0}#check-icon[selected]{font-size:18px}#check-icon[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#shape[disabled]:is([elevated],[selected]){background-color:rgba(var(--mdw-color__on-surface),.12)}`.autoRegister("mdw-filter-chip");var Ft=$.mixin(v).extend().observe({ariaLevel:"string",size:{type:"string",empty:"large"}}).expressions({computeAriaLevel({ariaLevel:t,size:e}){return t||(e==="medium"?"2":e==="small"?"3":"1")}}).on({composed(){let{slot:t}=this.refs;t.setAttribute("role","heading"),t.setAttribute("aria-level","{computeAriaLevel}")}}).css`:host{font:var(--mdw-typescale__headline-large__font);letter-spacing:var(--mdw-typescale__headline-large__letter-spacing)}:host([size="medium"]){font:var(--mdw-typescale__headline-medium__font);letter-spacing:var(--mdw-typescale__headline-medium__letter-spacing)}:host([size="small"]){font:var(--mdw-typescale__headline-small__font);letter-spacing:var(--mdw-typescale__headline-small__letter-spacing)}`.autoRegister("mdw-headline");var Hr=ce.mixin(Ee).extend().observe({_ariaPressed:{get({type:t,checked:e}){return t!=="checkbox"?null:e?"true":"false"}}}).expressions({isToggle({type:t}){return t==="checkbox"}}).childEvents({control:{keydown(t){if(t.key!=="Enter")return;let e=t.currentTarget;if(e.type!=="checkbox"||(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),e.disabled))return;let i=new Event("click",{bubbles:!0,cancelable:!0,composed:!0});e.dispatchEvent(i)&&(e.checked=!e.checked,e.dispatchEvent(new Event("change",{bubbles:!0})))}}}).on({composed(){let{slot:t,shape:e,tooltipSlot:i,icon:r,label:o,surfaceTint:n,control:a,outline:s}=this.refs;e.classList.add("colored"),o.classList.add("colored");for(let l of[e,o,r])l.setAttribute("toggle","{isToggle}"),l.setAttribute("selected","{checked}");t.remove(),r.removeAttribute("_if"),i.removeAttribute("name"),n.remove(),a.setAttribute("aria-pressed","{_ariaPressed}"),a.setAttribute("aria-labelledby","tooltip"),s.setAttribute("selected","{checked}")}}).css`:host{--mdw-shape__size: var(--mdw-shape__full);--mdw-ink: rgb(var(--mdw-color__on-surface-variant));align-items:center;justify-content:center;padding:max(8px,calc(8px + (var(--mdw-density) * 2px)));background-color:transparent;font-size:24px}:host(:where([type="checkbox"])){--mdw-ink: var(--mdw-color__primary)}:host(:where([filled])){--mdw-ink: var(--mdw-color__on-primary);--mdw-bg: var(--mdw-color__primary);--mdw-surface__shadow__resting: none;--mdw-surface__shadow__raised: none}:host(:where([filled="tonal"])){--mdw-ink: var(--mdw-color__on-secondary-container);--mdw-bg: var(--mdw-color__secondary-container)}:host(:where([outlined])){--mdw-ink: var(--mdw-color__on-surface-variant)}:host(:where([outlined][type="checkbox"])){--mdw-bg: var(--mdw-color__inverse-surface);--mdw-ink: var(--mdw-color__inverse-on-surface)}#label{font-size:inherit;letter-spacing:inherit}#shape[toggle]{background-color:transparent}.colored[toggle]{color:rgb(var(--mdw-color__on-surface-variant))}.colored[selected]{color:rgb(var(--mdw-ink))}#shape[filled][toggle]{background-color:rgb(var(--mdw-color__surface-variant))}.colored[filled][toggle]{color:rgb(var(--mdw-bg))}#shape[filled=tonal][toggle]{background-color:rgb(var(--mdw-color__surface-variant))}.colored[filled=tonal][toggle]{color:rgb(var(--mdw-color__on-surface-variant))}#shape[filled][selected]{background-color:rgb(var(--mdw-bg))}.colored[filled][selected]{color:rgb(var(--mdw-ink))}#shape[outlined]{background-color:transparent}.colored[outlined]{color:inherit}#shape[outlined][toggle]{background-color:transparent}.colored[outlined][toggle]{color:rgb(var(--mdw-color__on-surface-variant))}#shape[outlined][selected]{background-color:rgb(var(--mdw-bg))}.colored[outlined][selected]{color:rgb(var(--mdw-ink))}#icon{font-size:inherit;font-variation-settings:"FILL" 1}#icon[toggle]{font-variation-settings:"FILL" 0}#icon[selected]{font-variation-settings:"FILL" 1}#outline[focused]{opacity:1;color:inherit}#outline[selected]{opacity:0}.colored[disabled]{cursor:not-allowed;color:rgba(var(--mdw-color__on-surface),.38)}#shape[disabled][filled],#shape[disabled][outlined][selected]{background-color:rgba(var(--mdw-color__on-surface),.12)}.colored[disabled][filled],.colored[disabled][outlined][selected]{color:rgba(var(--mdw-color__on-surface),.38)}`.autoRegister("mdw-icon-button");function fe(t){return t.mixin(H).mixin(L).extend().set({stateLayer:!0}).observe({type:{empty:"text"},icon:"string",label:"string",filled:"boolean",outlined:"boolean",inputPrefix:"string",inputSuffix:"string",trailingIcon:"string",trailingIconInk:"string",supporting:"string",error:"string",placeholder:{nullParser:String}}).observe({erroredState({error:e,_invalid:i}){return!!(e||i)}}).expressions({computePlaceholder({filled:e,outlined:i,label:r,placeholder:o}){return e||i?o:o??r},shouldShowSupporting({_invalid:e,error:i,supporting:r}){return e||(i??r)!=null},computeSupportingText({error:e,_validationMessage:i,supporting:r}){return(e||i||r)??""},populatedState({value:e,_badInput:i}){return!!e||i},_showLabelText({label:e,filled:i,outlined:r}){return e&&(i||r)}}).on({composed({template:e,html:i,inline:r}){let{control:o,label:n,outline:a,shape:s,outlineLeft:l,outlineRight:c,state:m}=this.refs;o.setAttribute("placeholder","{computePlaceholder}"),o.setAttribute("aria-label","{label}"),o.setAttribute("input-suffix","{inputSuffix}"),o.setAttribute("errored","{erroredState}"),o.removeAttribute("aria-labelledby"),o.classList.add("inline"),n.classList.add("shape"),n.setAttribute("filled","{filled}"),n.setAttribute("color","{color}"),n.setAttribute("icon","{icon}"),n.setAttribute("shape-style","{shapeStyle}"),n.setAttribute("trailingIcon","{trailingIcon}"),n.setAttribute("populated","{populatedState}"),n.setAttribute("outlined","{outlined}"),n.setAttribute("focused","{focusedState}"),n.setAttribute("label","{label}"),n.setAttribute("shape-top",r(({shapeTop:d,filled:p})=>d||p)),n.append(m,a,i`<mdw-icon _if={icon} id=icon aria-hidden=true disabled={disabledState}>{icon}</mdw-icon><span _if={inputPrefix} class=inline id=prefix aria-hidden=true focused={focusedState} populated={populatedState}>{inputPrefix}</span> <span _if={inputSuffix} class=inline id=suffix aria-hidden=true focused={focusedState} populated={populatedState}>{inputSuffix}</span><mdw-icon _if={trailingIcon} id=trailing-icon ink={trailingIconInk} aria-hidden=true disabled={disabledState}>{trailingIcon}</mdw-icon><div id=indicator _if={filled} focused={focusedState} hovered={hoveredState} errored={erroredState} disabled={disabledState}></div>`),a.setAttribute("label","{label}"),a.setAttribute("invalid","{invalid}"),a.setAttribute("errored","{erroredState}"),l.after(i`<div id=gap _if={label} label={label} populated={populatedState} focused={focusedState}><div id=gap-slot focused={focusedState}></div><span id=gap-label>{label}</span></div>`),l.setAttribute("focused","{focusedState}"),c.setAttribute("focused","{focusedState}"),s.remove(),m.setAttribute("_if","{!outlined}"),e.append(i`<div id=label-text _if={_showLabelText} aria-hidden=true outlined={outlined} populated={populatedState} focused={focusedState} icon={icon} trailing-icon={trailingIcon} disabled={disabledState} errored={erroredState}>{label}</div><div _if={shouldShowSupporting} id=supporting disabled={disabledState} errored={erroredState}>{computeSupportingText}<slot id=supporting-slot name=supporting></slot></div>`)},sizeChanged(e,i){this.refs.control.style.setProperty("--size",`${i}ch`)}}).css`:host{--mdw-shape__size: var(--mdw-shape__extra-small);--mdw-text-field__ratio: calc(var(--mdw-density) * .125 + 1);--control__margin-top: calc(var(--mdw-typescale__body-small__line-height) / 2);--control__padding-top: calc((var(--mdw-text-field__ratio) * 16px) - calc(var(--mdw-typescale__body-small__line-height) / 2));--control__padding-bottom: calc(var(--mdw-text-field__ratio) * 16px);--control__margin-bottom: 0px;--inline-color: rgb(var(--mdw-color__on-surface-variant));--descriptor-opacity: .5;--mdw-ink: var(--mdw-color__primary);--mdw-bg: var(--mdw-color__surface-variant);--mdw-type__font: var(--mdw-typescale__body-large__font);--mdw-type__letter-spacing: var(--mdw-typescale__body-large__letter-spacing);display:inline-block;color:rgb(var(--mdw-color__on-surface));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}:host([icon]){--padding-inline-start: 12px}:host([trailing-icon]){--padding-inline-end: 12px}:host(:is([color],[ink])){background-color:transparent;color:rgb(var(--mdw-color__on-surface))}:host([label][outlined]){--mdw-shape__size__top-start-size: min(var(--mdw-shape__size), 12px);--mdw-shape__size__bottom-start-size: min(var(--mdw-shape__size), 12px);--mdw-shape__size__top-end-size: min(var(--mdw-shape__size), 12px);--mdw-shape__size__bottom-end-size: min(var(--mdw-shape__size), 12px)}#label[label][outlined]{-webkit-mask-box-image-width:min(var(--mdw-shape__size),12px)}#label{position:relative;display:flex;align-items:center;overflow:visible;padding-inline-start:16px;padding-inline-end:16px;cursor:inherit;z-index:0;background-color:transparent;font-weight:inherit;font-size:inherit;line-height:inherit;font-family:inherit;letter-spacing:inherit;transition:none .2s cubic-bezier(0,0,.2,1)}#label:is([filled],[color]){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-color__on-surface))}#label[outlined]{background-color:transparent}#label-text,#indicator{color:rgb(var(--mdw-color__on-surface-variant))}:is(#label-text,#indicator)[focused]{color:rgb(var(--mdw-ink))}#label[icon]{padding-inline-start:12px}#label[trailing-icon]{padding-inline-end:12px}#label[focused]{transition:none .1s cubic-bezier(.4,0,1,1)}#label[shape-top]{--mdw-shape__size__bottom-start-size: 0px;--mdw-shape__size__bottom-end-size: 0px;--mdw-shape__mask: linear-gradient(transparent 50%, black 50%)}#prefix,#suffix,#control::placeholder{opacity:var(--descriptor-opacity);color:var(--inline-color);transition-duration:inherit;transition-property:opacity;transition-timing-function:inherit;will-change:opacity}:host([label]:is([filled],[outlined])){--descriptor-opacity: 0}#control{position:relative;inset:auto;align-self:flex-start;display:inline;box-sizing:border-box;block-size:auto;min-block-size:none;inline-size:100%;min-inline-size:none;flex:1;border-block-start:solid var(--control__margin-top) transparent;border-block-end:solid var(--control__margin-bottom) transparent;padding-block:var(--control__padding-top) var(--control__padding-bottom);appearance:none;caret-color:rgb(var(--mdw-ink));cursor:auto;transform:none;visibility:visible;background-color:transparent;border-color:transparent;color:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;font-family:inherit;letter-spacing:inherit;transition-duration:inherit;transition-property:color;transition-timing-function:inherit}#suffix,#prefix{margin-block:var(--control__margin-top) var(--control__margin-bottom);padding-block:var(--control__padding-top) var(--control__padding-bottom)}#control::selection{background-color:rgb(var(--mdw-ink));color:rgb(var(--mdw-color__surface))}#state{--mdw-state__focused-opacity: 0;--mdw-state__pressed-opacity: 0}mdw-icon{--mdw-icon__size: 24px;align-self:center;color:var(--inline-color)}#icon{order:-2;margin-inline-end:16px;font-size:24px}#prefix{order:-1}#suffix{order:1}#trailing-icon{order:2;margin-inline-start:16px}#indicator{position:absolute;inset-block-end:0;inset-inline:0;border-block-end:2px solid currentColor;pointer-events:none;transform:scaleY(.5);z-index:1;transition-duration:inherit;transition-property:transform;transition-timing-function:inherit;will-change:transform}#indicator[focused]{transform:scaleY(1)}#label-text{position:absolute;inset-block-start:0;inset-inline:0;display:block;overflow-x:clip;overflow-y:visible;padding-inline:16px;pointer-events:none;opacity:1;transform:translateY(calc((var(--control__margin-top) + var(--control__padding-top) + 100% + var(--control__padding-bottom) + var(--control__margin-bottom)) / 2)) translateY(-50%);z-index:4;color:rgb(var(--mdw-color__on-surface-variant));text-overflow:ellipsis;white-space:nowrap;transition-duration:.2s;transition-property:inset-inline-start,font-size,transform;will-change:inset-inline-start,font-size,transform}@supports (-moz-appearance:none){#label-text{overflow-x:hidden}}#label-text[focused]{color:rgb(var(--mdw-ink))}#label-text[icon]{inset-inline-start:36px}#label-text[trailing-icon]{inset-inline-end:36px}#label-text:is([focused],[populated]){transform:translateY(calc(var(--mdw-text-field__ratio) * 8px));font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}#label-text[outlined]:is([focused],[populated]){inset-inline:0;transform:translateY(-50%)}:is(#prefix,#suffix):is([focused],[populated]){opacity:1}#control:is(:focus,:not(:placeholder-shown))::placeholder{opacity:.7}#control[input-suffix]{text-align:end}#outline:before{content:none}.outline-section{position:relative;border:1px solid currentColor}.outline-section[focused]{border-width:2px}#outline-left{border-right-width:0;border-top-left-radius:inherit;border-bottom-left-radius:inherit}#outline-right{border-left-width:0;border-top-right-radius:inherit;border-bottom-right-radius:inherit}#outline{display:grid;grid-auto-flow:column;grid-template-columns:1fr 0 1fr;color:rgb(var(--mdw-color__outline))}#outline[label]{grid-template-columns:12px minmax(0,auto) minmax(12px,1fr)}#outline[hovered]{color:rgb(var(--mdw-color__on-surface))}#outline[focused]{color:rgb(var(--mdw-ink))}.outline-section{min-inline-size:12px}.outline-section:before,.outline-section:after{max-inline-size:none}.outline-left{grid-column:calc(2 - var(--mdw-dir, 1)) / span 1}.outline-right{grid-column:calc(2 + var(--mdw-dir, 1)) / span 1}#gap{position:relative;display:inline-block;overflow:clip hidden;max-inline-size:100%;grid-column:2;font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing);transition-duration:inherit;transition-property:padding;transition-timing-function:inherit}#gap-label{display:inline-block;overflow:clip hidden;padding-inline:4px;color:transparent;white-space:nowrap}#gap:after{content:"";position:absolute;inset:0;border-block-end:solid 1px currentColor}#gap[focused]:after{border-block-end-width:2px}#gap-slot{position:absolute;inset:0}#gap-slot:before,#gap-slot:after{content:"";position:absolute;inset:0;border-block-start:solid 1px currentColor;transition:transform .2s;will-change:transform}#gap-slot[focused]:before,#gap-slot[focused]:after{border-block-start-width:2px}@supports (-webkit-mask-box-image: none){#outline[focused]{filter:drop-shadow(1px 0px 0px currentColor) drop-shadow(0px 1px 0px currentColor) drop-shadow(-1px 0px 0px currentColor) drop-shadow(0px -1px 0px currentColor)}#outline:before{content:"";position:absolute;inset:0;grid-column:calc(2 - var(--mdw-dir, 1)) / span 1;margin-right:-.99px;border:none;background-color:currentColor;-webkit-mask-box-image:var(--mdw-shape__mask-image__edges) 8 fill / auto stretch;-webkit-mask-box-image-width:auto 0 auto auto}#outline:after{grid-column:calc(2 + var(--mdw-dir, 1)) / span 1;grid-row:1;margin-left:-.99px;-webkit-mask-box-image-width:auto auto auto 0}.outline-section{border:none}#gap:after{border:none;background-color:currentColor;-webkit-mask-box-image:var(--mdw-shape__mask-image__edges) 8 fill / auto stretch;-webkit-mask-box-image-width:0 0 auto 0}#gap-slot:before,#gap-slot:after{border:none;background-color:currentColor;-webkit-mask-box-image:var(--mdw-shape__mask-image__edges) 8 fill / auto stretch;-webkit-mask-box-image-width:auto 0 0 0}}#gap-slot:before{margin-right:-.99px;transform:var(--gap-transform, scaleX(.5));transform-origin:0 0}#gap-slot:after{margin-left:-.99px;transform:var(--gap-transform, scaleX(.5));transform-origin:100% 0}#gap:is([focused],[populated]){--gap-transform: scaleX(0)}#gap:empty{padding:0}#label[label][filled]{align-items:flex-start}:host([filled]){--mdw-shape__size__bottom-start-size: 0px;--mdw-shape__size__bottom-end-size: 0px;--mdw-text-field__ratio: calc(var(--mdw-density) * .25 + 1)}:host(:is([filled][label])){--control__margin-top: calc((var(--mdw-text-field__ratio) * 8px) + var(--mdw-typescale__body-small__line-height));--control__padding-top: 0px;--control__padding-bottom: calc(var(--mdw-text-field__ratio) * 4px);--control__margin-bottom: calc(var(--mdw-text-field__ratio) * 4px)}#supporting{min-block-size:var(--mdw-typescale__body-small__line-height);margin-block-start:4px;margin-inline:16px;font-weight:var(--mdw-typescale__body-small__font-weight);font-size:var(--mdw-typescale__body-small__font-size);line-height:var(--mdw-typescale__body-small__line-height);font-family:var(--mdw-typescale__body-small__font-family);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}#control[errored]{caret-color:rgb(var(--mdw-color__error))}#control[errored]::selection{background-color:rgb(var(--mdw-color__on-error-container))}:is(#indicator,#label-text,#supporting,#outline)[errored]{color:rgb(var(--mdw-color__error))}:is(#indicator,#label-text,#supporting,#outline)[errored]:where([hovered]){color:rgb(var(--mdw-color__on-error-container))}:is(#indicator,#label-text,#supporting,#outline)[errored]:where([focused]){color:rgb(var(--mdw-color__error))}#label[disabled],#label[disabled] #control{cursor:not-allowed}#outline[disabled]{color:rgba(var(--mdw-color__outline),.12)}#label-text[disabled],#supporting[disabled],.inline[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}mdw-icon[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#label[disabled]{background-color:rgba(var(--mdw-color__on-surface),.04);color:rgba(var(--mdw-color__on-surface),.38)}#indicator[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#label[disabled][outlined]{background-color:transparent}`}var Yr=u.mixin(v).mixin(R).mixin(Y).mixin(fe).extend().define({stateTargetElement(){return this.refs.control}}).autoRegister("mdw-input");var Br=$.extend().css`:host{font:var(--mdw-typescale__label-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}:host([size="medium"]){font:var(--mdw-typescale__label-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}:host([size="small"]){font:var(--mdw-typescale__label-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}`.autoRegister("mdw-label");var jr=u.extend().html`<slot id=slot-top name=top></slot><slot id=slot></slot>`.css`:host{display:block}#slot{display:flex;gap:24px;justify-content:center;padding-inline:16px;transition:padding-inline .1s}@media screen and (min-width: 648px){#slot{padding-inline:24px}}`.autoRegister("mdw-layout");var Ot=$.mixin(H).mixin(P).extend().set({_ariaRole:"list"}).css`:host{display:flex;flex-direction:column;padding-block:8px}:host(:focus){outline:1px solid red}`.autoRegister("mdw-list");var Xs=u.mixin(v).mixin(L).extend().observe({selected:"boolean",icon:"string",errored:"boolean",disabled:"boolean",hovered:"boolean",focused:"boolean"}).define({checked:{get(){return this.selected},set(t){this.selected=t}}}).html`<div id=inner-shape class=shape selected={selected}></div>`.on({composed(){let{outline:t}=this.refs;t.removeAttribute("_if"),t.setAttribute("selected","{selected}")}}).css`:host{--disabled-opacity: .38;--mdw-ink: rgb(var(--mdw-color__primary));--color: rgb(var(--mdw-color__on-surface-variant));--mdw-shape__size: var(--mdw-shape__full);position:relative;display:inline-block;block-size:20px;inline-size:20px;background-color:transparent;transition:opacity .2s}#outline{filter:drop-shadow(1px 0px 0px var(--color)) drop-shadow(0px 1px 0px var(--color)) drop-shadow(-1px 0px 0px var(--color)) drop-shadow(0px -1px 0px var(--color));color:var(--color);will-change:filter,color}#inner-shape{position:absolute;inset:0;transform:scale(0);background-color:var(--color);transition:transform .2s,background-color .1s}:host([hovered]){--color: rgb(var(--mdw-color__on-surface))}:host([focused]){--color: rgb(var(--mdw-color__on-surface))}:host([selected]){--color: rgb(var(--mdw-ink))}:host([errored]){--color: rgb(var(--mdw-color__error))}:host([disabled]){--color: rgba(var(--mdw-color__on-surface));opacity:var(--disabled-opacity)}#inner-shape[selected]{transform:scale(.5)}`.autoRegister("mdw-radio-icon");var $t=u.mixin(v).mixin(R).mixin(B).mixin(P).extend().set({_ariaRole:"listitem",delegatesFocus:!1,stateLayer:!0}).observe({leading:"string",avatar:"string",avatarColor:{value:"primary-container"},avatarSrc:"string",src:"string",alt:"string",icon:"string",href:"string",iconInk:"string",iconSrc:"string",checkbox:"string",radio:"string",selectionColor:{value:"primary"},selected:"boolean",supporting:"string",trailing:"string",trailingIcon:"string",trailingIconInk:"string",trailingIconSrc:"string",divider:"boolean",video:"boolean",lines:"integer",_supportingSlotted:"boolean"}).observe({disabledState({disabled:t}){return t}}).expressions({isInteractive({href:t}){return t!=null},hasSupporting(){return this.supporting||this._supportingSlotted},checkboxClass(){return this.checkbox||"leading"},radioClass(){return this.radio||"leading"}}).html`<a id=anchor _if={href} href={href} disabled={disabledState} aria-labelledby=content></a><mdw-checkbox-icon id=checkbox _if={checkbox} aria-hidden=true class={checkboxClass} color={selectionColor} disabled={disabledState} icon=check selected={selected}></mdw-checkbox-icon><mdw-radio-icon id=radio _if={radio} aria-hidden=true class={radioClass} disabled={disabledState} ink={selectionColor} selected={selected}></mdw-radio-icon><mdw-box _if={avatar} id=avatar color={avatarColor} type-style=title-medium src={AvatarSrc} aria-hidden=true>{avatar}</mdw-box><mdw-icon _if={icon} id=icon ink={iconInk} src={iconSrc} aria-hidden=true>{icon}</mdw-icon><img id=img _if={src} src={src} alt={alt} video={video}><slot name=leading>{leading}</slot><div id=content has-supporting={hasSupporting} lines={lines}><slot id=slot></slot><slot id=supporting name=supporting class=text lines={lines}>{supporting}</slot></div><mdw-icon _if={trailingIcon} id=trailing-icon ink={trailingIconInk} src={trailingIconSrc} aria-hidden=true>{trailingIcon}</mdw-icon><slot id=trailing name=trailing role=note>{trailing}</slot><mdw-divider _if={divider} id=divider divder={divider}></mdw-divider>`.on({composed(){let{state:t,rippleContainer:e,anchor:i}=this.refs;i.append(t,e),t.setAttribute("state-disabled","focus hover")},disabledStateChanged(t,e){this.updateAriaProperty("ariaDisabled",e?"true":"false")}}).css`:host{--mdw-shape__size: 0px;display:flex;align-items:center;gap:16px;border:none;padding-block:8px;padding-inline:16px 24px;cursor:auto;outline:none;color:inherit;text-decoration:none}:host([href]){cursor:pointer}#anchor{position:absolute;inset:0;outline:none;color:inherit}:host([video]){padding-inline-start:0}:host([lines="3"]){align-items:flex-start;padding-block:12px}#content{display:inline-flex;align-items:flex-start;flex-direction:column;justify-content:center;flex:1;padding-block:calc(8px + (var(--mdw-density) * 2px))}#content:is([has-supporting],[lines="2"]){box-sizing:border-box;min-block-size:calc(8px + calc(48px + var(--mdw-density) * 2px));padding-block:calc(4px + var(--mdw-density) * 2px)}#content:is([lines="3"]){box-sizing:border-box;min-block-size:calc(8px + calc(48px + var(--mdw-density) * 2px));padding-block:calc(0 + var(--mdw-density) * 2px)}#icon,#trailing-icon{font-size:24px}#divider{position:absolute;inset-block-end:0;display:block;color:rgb(var(--mdw-color__surface-variant))}#divider[divider=inset]{padding-inline:16px 24px}#slot{max-block-size:var(--mdw-typescale__body-large__line-height) * 2;color:var(--mdw-color__on-surface);font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}#supporting{max-block-size:calc(var(--mdw-typescale__body-medium__line-height) * 2);color:var(--mdw-color__on-surface-variant);font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#trailing{color:var(--mdw-color__on-surface-variant);font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#slot,#supporting{display:block;overflow-x:hidden;overflow-y:hidden;text-align:start;text-overflow:ellipsis;text-transform:none;white-space:normal;word-break:break-word}#supporting[lines="2"]{min-block-size:var(--mdw-typescale__body-medium__line-height);max-block-size:var(--mdw-typescale__body-medium__line-height)}#supporting[lines="3"]{min-block-size:calc(var(--mdw-typescale__body-medium__line-height) * 2);max-block-size:calc(var(--mdw-typescale__body-medium__line-height) * 2)}@supports (width: 1lh){#slot{max-block-size:1lh}#supporting{max-block-size:2lh}#supporting[lines="2"]{min-block-size:1lh;max-block-size:1lh}#supporting[lines="3"]{min-block-size:2lh;max-block-size:2lh}}@supports (-webkit-line-clamp:1){#slot{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}#supporting{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#supporting[lines="2"]{-webkit-line-clamp:1}}#avatar{display:flex;align-items:center;justify-content:center;block-size:40px;inline-size:40px;border-radius:50%}#img{block-size:56px;max-block-size:56px;inline-size:56px;max-inline-size:56px;object-fit:cover;object-position:center center}#img[video]{block-size:64px;max-block-size:64px;inline-size:114px;max-inline-size:114px}#checkbox{margin:3px}#radio{margin:2px}.trailing{order:1}:host([disabled]){opacity:.38;color:rgb(var(--mdw-color__on-surface))}`.childEvents({supporting:{slotchange({currentTarget:t}){this._supportingSlotted=t.assignedNodes().length!==0}}}).autoRegister("mdw-list-item");var Nt=class extends $t.extend().setStatic({formAssociated:!0}).set({_ariaRole:"none",delegatesFocus:!0,_index:-1,_selectedDirty:!1,isInteractive:!0}).observe({_label:{attr:"label",nullParser:String},defaultSelected:{attr:"selected",reflect:!0,type:"boolean"},_selected:"boolean",_value:{attr:"value",reflect:!0},_formDisabled:"boolean"}).observe({selected:{reflect:!1,type:"boolean",get({_selectedDirty:e,defaultSelected:i,_selected:r}){return e?r:i},set(e){this._selectedDirty=!0,this._selected=e}},disabledState({_formDisabled:e,disabled:i}){return e?!0:!!i}}).define({index(){return this._index},form(){return this.parentElement?.form},label:{get(){return this._label},set(e){this._label=e}},value:{get(){return this._value},set(e){this._label=e}}}).methods({formDisabledCallback(e){this._formDisabled=e},focus(...e){this.refs.anchor.focus(...e)}}).on({composed({inline:e}){let{anchor:i,state:r,content:o}=this.refs;i.setAttribute("disabled","{disabledState}"),i.setAttribute("role","option"),i.setAttribute("aria-disabled",e(({disabledState:n})=>`${n}`)),i.setAttribute("tabindex","0"),i.setAttribute("aria-selected",e(({selected:n})=>`${n}`)),i.setAttribute("selected","{selected}"),i.removeAttribute("href"),i.removeAttribute("_if"),o.setAttribute("selected","{selected}"),r.setAttribute("state-disabled","focus")}}).css`:host{--mdw-bg: var(--mdw-color__secondary-container);--mdw-ink: var(--mdw-color__on-secondary-container);cursor:pointer;z-index:0}:host([href]){cursor:pointer}:host([disabled]){cursor:not-allowed;pointer-events:none}#content{-webkit-user-select:none;user-select:none}#content[selected]{color:rgb(var(--mdw-ink))}#anchor{z-index:-1}#anchor[selected]{background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}`{constructor(e,i,r,o){super(),e!==void 0&&(this.text=e),i!==void 0&&(this._value=i),r!==void 0&&(this.defaultSelected=r),o!==void 0&&(this._selected=o),this.hasAttribute("tabindex")||(this.tabIndex=0)}},X=Nt;(()=>{Nt.autoRegister("mdw-list-option")})();function Vi({host:t,collection:e,OptionConstructor:i,GroupConstructor:r}){let o=function(l,c){let m,d=-1;typeof c=="number"?c>=0&&c<e.length-1&&(d=c):c instanceof HTMLElement&&(m=c),d!==-1&&(m=e.item(d)),m?m.before(l):t.append(l)},n=function(l){e.item(l)?.remove()};return Object.defineProperty(e,"selectedIndex",{get(){for(let s=0;s<e.length;s++)if(e[s].selected)return s;return-1},set(s){for(let l=0;l<e.length;l++)e[l].selected=l===s}}),new Proxy(e,{get(s,l,c){switch(l){case"add":return o;case"remove":return n;default:return s[l]}},set(s,l,c,m){let d=Number.NaN;switch(typeof l){case"string":d=Number.parseInt(l,10);break;case"number":d=l;break;default:case"symbol":return Reflect.set(s,l,c,m)}if(Number.isNaN(d))return Reflect.set(s,l,c,m);let p=e.length;for(;d>e.length;)o(new i);d===p?c!=null&&o(c):d>=0&&(n(d),c!==null&&o(c,d))}})}var Be=class extends Ot.mixin(R).mixin(ie).mixin(G){_optionsCollection=null;constructor(){super(),this.hasAttribute("tabindex")||(this.tabIndex=0),this.refs.slot.addEventListener("slotchange",this.onSlotChange),this.addEventListener("keydown",this.onControlKeydown),this.addEventListener("click",this.onListSelectClick)}*_selectedOptionsGenerator(){for(let e of this.options)e.selected&&(yield e)}onSlotChange(e){let{host:i}=this.getRootNode();i.refreshTabIndexes();let r=0;for(let o of i.options)o._index=r++}onControlKeydown(e){if(e.key==="Spacebar"||e.key===" "){if(!(e.target instanceof X))return;e.stopPropagation(),e.preventDefault(),this.onListSelectClick.call(this,e)}}onListSelectClick(e){let i=e.target;if(i instanceof X&&(e.stopPropagation(),!i.disabledState)){if(i.selected){if(this.multiple){let r=[...this.selectedOptions];if(this.required&&r.length===1)return;r.length,i.selected=!1;let o=r.shift();o===i&&(o=r.shift()),this._value=o?.value??"";return}if(this.required)return;i.selected=!1,this._value="";return}if(this.multiple){i.selected=!0,this._value=this.selectedOptions.next().value;return}for(let r of this.options)r.selected=r===i;this._value=i.value}}formResetCallback(){super.formResetCallback()}get options(){return this._optionsCollection||(this._optionsCollection=Vi({host:this,collection:this.getElementsByTagName(X.elementName),OptionConstructor:X,GroupConstructor:X})),this._optionsCollection}get selectedOptions(){return this._selectedOptionsGenerator()}get type(){return"select"}get kbdNavQuery(){return X.elementName}get length(){return this.options.length}get selectedIndex(){return this.options.selectedIndex}set selectedIndex(e){this.options.selectedIndex=e,this._value=this.options.item(e)?.value??""}get value(){return this._value}set value(e){for(let i of this.options)i.selected=i.value===e;this._value=e}get add(){return this.options.add}get item(){return this.options.item}get namedItem(){return this.options.namedItem}*[Symbol.iterator](){for(let e of this.options)yield e}get kbdNavFocusableWhenDisabled(){return!0}},re=Be;(()=>{Be.autoRegister("mdw-list-select"),Be.css`:host(:disabled){cursor:not-allowed;pointer-events:none}:host([internals-disabled]){cursor:not-allowed;pointer-events:none}`,Be.on({disabledStateChanged(e,i){this._kbdFocusable=!i,this.tabIndex=i?-1:0},multipleChanged(e,i){this.updateAriaProperty("ariaMultiSelectable",i?"true":"false")}})})();re.prototype.multiple=re.prop("multiple",{type:"boolean"});re.prototype.size=re.prop("size",{type:"integer",empty:0});re.prototype._ariaRole="listbox";re.prototype.delegatesFocus=!0;var Dt=typeof HTMLDialogElement<"u",be=[];function Vt(){let t=be.at(-1);!t||!t.originalEvent||(t.pendingResizeOperation&&cancelAnimationFrame(t.pendingResizeOperation),t.pendingResizeOperation=requestAnimationFrame(()=>{t.element.updateMenuPosition(t.originalEvent),t.pendingResizeOperation=null}))}function ct(t){if(!t.state)return;let e=be.at(-1);!e||!e.previousState||(e.previousState===t.state||Object.keys(t.state).every(i=>t.state[i]===e.previousState[i]))&&e.element.close()}function Hi(t){be.length}var Ur=u.mixin(H).mixin(G).extend().observe({open:"boolean",flow:{type:"string",value:null},submenu:"boolean",modal:"boolean",_isNativeModal:"boolean",color:{empty:"surface"},ink:"string",elevation:{empty:2},outlined:"boolean"}).set({returnValue:"",delegatesFocus:!0,_cascader:null,_closing:!1}).define({kbdNavChildren(){let t=[...this.querySelectorAll("mdw-menu-item")],e=[...this.querySelectorAll(":scope mdw-menu mdw-menu-item")];return t.filter(i=>!e.includes(i))},_dialog(){return this.refs.dialog},cascader:{get(){return this._cascader?.deref()},set(t){this._cascader=t?new WeakRef(t):null}}}).html`
|
|
20
|
+
`),i.setAttribute("aria-checked","{_ariaChecked}")}}).autoRegister("mdw-checkbox");var Rt=ce.extend().observe({suggestion:"boolean"}).css`:host{--mdw-shape__size: 8px;--mdw-ink: var(--mdw-color__on-surface);padding-block:calc(4px + (var(--mdw-density) * 2px));padding-inline:calc(16px + (var(--mdw-density) * 2px));color:rgb(var(--mdw-ink))}:host(:where([suggestion])){--mdw-ink: var(--mdw-color__on-surface-variant)}:host(:where([icon])){gap:8px;padding-inline:calc(8px + (var(--mdw-density) * 2px)) calc(16px + (var(--mdw-density) * 2px))}#outline{--mdw-ink: rgb(var(--mdw-color__on-surface-variant))}#outline:is([ink],[color]){--mdw-ink: inherit}#slot[disabled],#icon[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}`.on({composed({inline:t}){let{slot:e,outline:i,icon:r}=this.refs;e.setAttribute("disabled","{disabledState}"),e.removeAttribute("ink"),e.removeAttribute("color"),i.setAttribute("_if","{!elevated}"),i.setAttribute("ink","{ink}"),i.setAttribute("color","{color}"),r.setAttribute("ink",t(({ink:o,iconInk:n})=>n??o??"primary"))}}).autoRegister("mdw-chip");var Or=u.mixin(v).extend().observe({vertical:"boolean"}).css`:host{--mdw-ink: var(--mdw-color__outline-variant);position:relative;display:block;overflow:visible;box-sizing:border-box;block-size:0;inline-size:100%;color:rgb(var(--mdw-ink))}:host:before{content:"";display:block;box-sizing:border-box;block-size:1px;inline-size:auto;background-color:currentcolor}:host([vertical]){display:inline-flex;vertical-align:top;block-size:auto;min-block-size:100%;inline-size:0}:host([vertical]):before{block-size:auto;min-inline-size:1px}`.autoRegister("mdw-divider");var Xa=u.extend().css`:host{align-self:flex-end;margin-block:24px;padding-inline:24px}`.html`<slot id=slot></slot>`.register("mdw-dialog-actions");function Di(t){let e=this.querySelectorAll(['button:not(:disabled):not([tabindex="-1"])','[href]:not(:disabled):not([tabindex="-1"])','input:not(:disabled):not([tabindex="-1"]):not([hidden])','select:not(:disabled):not([tabindex="-1"])','textarea:not(:disabled):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])'].join(", ")),i=!1,r=null;for(let o of e)if(o===t.target){if(i=!0,t.shiftKey)break}else if(t.shiftKey)r=o;else if(i){r=o;break}if(r||(r=t.shiftKey?e[e.length-1]:e[0]),t.stopPropagation(),t.preventDefault(),r&&r instanceof HTMLElement)try{r.focus()}catch{}}var Ce=[],Lt=typeof HTMLDialogElement<"u",$r=u.extend().define({_dialog(){return this.refs.dialog},returnValue(){return this.refs.dialog.returnValue}}).observe({open:"boolean",dividers:{value:null},headline:"string",icon:"string",default:{value:"confirm"},cancel:{value:"Cancel"},confirm:{value:"Confirm"},_isNativeModal:"boolean",color:{empty:"surface"},ink:"string",outlined:"boolean",elevation:{empty:3}}).methods({onTransitionEnd(t){t.propertyName==="opacity"&&this.getAttribute("aria-hidden")==="true"&&this.setAttribute("mdw-ready","")},onSlotChange({currentTarget:t}){let i=t.assignedNodes().some(r=>r.nodeType===r.ELEMENT_NODE||r.nodeType===r.TEXT_NODE&&r.nodeValue.trim().length);t.toggleAttribute("slotted",i)},onFormSubmit(t){if(t.currentTarget.assignedSlot){let e=t.submitter?.value;this.close(e),t.preventDefault()}},onFormSlotChange({currentTarget:t}){let[e]=t.assignedNodes();e?.addEventListener("submit",i=>this.onFormSubmit(i))},onPopState(t){if(!t.state)return;let e=Ce.at(-1);if(!(!e||!e.previousState)&&(e.previousState===t.state||Object.entries(t.state).every(([i,r])=>r===e.previousState[i]))){let i=new Event("cancel",{cancelable:!0});e.element.dispatchEvent(i)?e.element.close():window.history.pushState(e.state,e.state.title)}},close(t){if(!this.open)return!1;if(this._isNativeModal)this._isNativeModal=!1;else{let i=document.querySelector("main");i&&i.removeAttribute("aria-hidden")}Lt&&this._dialog.open?this._dialog.close(t):this._dialog.returnValue=t,this.open=!1,this.dispatchEvent(new Event("close"));let e=-1;if(Ce.some((i,r)=>i.element===this?(e=r,!0):!1),e!==-1){let i=Ce[e];if(i.previousFocus&&i.previousFocus instanceof HTMLElement&&document.activeElement?.closest(this.constructor.elementName)===this)try{i.previousFocus.focus()}catch{}Ce.splice(e,1),i.state&&window.history&&window.history.state&&i.state.hash===window.history.state.hash&&window.history.back()}return Ce.length||window.removeEventListener("popstate",this.onPopState),!0},showModal(t){return this.open?!1:(Lt&&(this._dialog.showModal(),this._isNativeModal=!0),this.show(t))},show(t){if(this.open)return!1;if(this.open=!0,Lt){this._dialog.show();let s=document.querySelector("main");s&&s.setAttribute("aria-hidden","true")}let e=document.activeElement,i=this.headline||this.textContent,r={time:Date.now(),random:Math.random(),title:i},o=null;window.history.state||window.history.replaceState({hash:Math.random().toString(36).slice(2,18)},document.title),o=window.history.state,window.history.pushState(r,i),window.addEventListener("popstate",this.onPopState);let n={element:this,previousFocus:e,state:r,previousState:o};Ce.push(n);let a=this.querySelector("[autofocus]")??this.shadowRoot.querySelector("[autofocus]");try{a&&a instanceof HTMLElement?(a.scrollIntoView&&a.scrollIntoView(),a.focus()):this.refs.surface.focus()}catch{}return!0}}).expressions({cancelAutoFocus({default:t}){return t==="cancel"},confirmAutoFocus({default:t}){return t==="confirm"},_ariaHidden({open:t}){return t?"false":"true"}}).html`<dialog id=dialog aria-modal=true role=dialog aria-hidden={_ariaHidden} aria-labelledby=headline aria-describedby=slot><div _if={open} id=scrim aria-hidden=true></div><mdw-surface id=surface open={open} icon={icon} elevation={elevation} color={color} ink={ink} outlined={outlined}><mdw-icon _if={icon} id=icon class=content ink=secondary aria-hidden=true>{icon}</mdw-icon><slot id=headline name=headline on-slotchange={onSlotChange} role=header>{headline}</slot><slot id=fixed name=fixed class=content on-slotchange={onSlotChange}></slot><mdw-divider id=divider-top size={dividers}></mdw-divider><slot id=slot class=content on-slotchange={onSlotChange}></slot><mdw-divider id=divider-bottom size={dividers}></mdw-divider><slot name=form id=form-slot on-slotchange={onFormSlotChange}><form id=form method=dialog role=none on-submit={onFormSubmit}><mdw-dialog-actions><mdw-button id=cancel type=submit value=cancel autofocus={cancelAutoFocus}>{cancel}</mdw-button><mdw-button id=confirm type=submit value=confirm autofocus={confirmAutoFocus}>{confirm}</mdw-button></mdw-dialog-actions></form></slot></mdw-surface></dialog>`.css`:host{--mdw-dialog__expand-duration: var(--mdw-motion-expand-duration, .25s);--mdw-dialog__simple-duration: var(--mdw-motion-simple-duration, .1s);--mdw-dialog__standard-easing: var(--mdw-motion-standard-easing, cubic-bezier(.4, 0, .2, 1));--mdw-dialog__deceleration-easing: var(--mdw-motion-deceleration-easing, cubic-bezier(0, 0, .2, 1));--mdw-dialog__fade-in-duration: var(--mdw-motion-fade-in-duration, .15s);position:fixed;inset:0;pointer-events:none;z-index:24}#dialog{position:fixed;inset-block-start:0;inset-inline-start:0;display:flex;align-items:center;flex-direction:row;justify-content:center;box-sizing:border-box;block-size:100%;max-block-size:none;inline-size:100%;max-inline-size:none;margin:0;border:none;padding:48px;opacity:0;transform:scale(0);visibility:hidden;z-index:24;background-color:transparent;transition-delay:0s,.2s,.2s;transition-duration:.2s,0s,0s;transition-property:opacity,transform,visibility;transition-timing-function:ease-out;will-change:opacity}@media (min-width: 1440px){#dialog{padding:56px}}#dialog::backdrop{display:none}#dialog[aria-hidden=false],#dialog:modal{pointer-events:auto;opacity:1;transform:none;visibility:visible;transition-delay:0s;transition-duration:0s;transition-timing-function:ease-in}#scrim{position:fixed;inset:0;overflow-y:scroll;overscroll-behavior:none;overscroll-behavior:contain;scrollbar-width:none;block-size:100%;inline-size:100%;cursor:default;pointer-events:inherit;-webkit-tap-highlight-color:transparent;opacity:.38;z-index:0;background-color:rgb(var(--mdw-color__scrim))}#scrim::-webkit-scrollbar{display:none}#scrim:after{content:"";display:block;block-size:200%;inline-size:200%}@keyframes scaleUpAnimation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}#surface{--mdw-shape__size: 28px;position:relative;display:flex;align-items:flex-start;flex-direction:column;-webkit-overflow-scrolling:touch;overscroll-behavior:none;overscroll-behavior:contain;box-sizing:border-box;max-block-size:100%;min-inline-size:280px;max-inline-size:560px;flex-shrink:1;padding-block-start:8px;transform:scale(1);transform-origin:top center;z-index:24;will-change:display,transform}#surface[icon]{align-items:center}#surface[open]{animation-name:scaleUpAnimation;animation-duration:.2s;animation-direction:forwards}#icon{padding-block-start:16px;font-size:24px}#headline{display:block;padding-block-start:16px;padding-inline:24px;font:var(--mdw-typescale__headline-small__font);letter-spacing:var(--mdw-typescale__headline-small__letter-spacing)}#headline:not([slotted]):empty{display:none}#body{padding-block:16px}.content{padding-inline:24px}#divider-top{padding-block-start:16px}mdw-divider:not([size]){color:transparent}mdw-divider[size=inset]{padding-inline:24px}#fixed{display:block;padding-block-start:16px;color:rgb(var(--mdw-color__on-surface-variant));font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#fixed:not([slotted]){display:none}#slot{display:block;overflow-y:auto;color:rgb(var(--mdw-color__on-surface-variant));font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#scroller{display:block;overflow-y:auto}#form{display:contents}#form-slot::slotted(form){display:contents}`.childEvents({dialog:{cancel(t){t.stopPropagation();let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)||t.preventDefault()},close(t){t.stopPropagation(),this.close(this.returnValue)}},scrim:{"~click"(){let t=new Event("cancel",{cancelable:!0});this.dispatchEvent(t)&&this.close()}},surface:{keydown(t){if(t.key==="Tab"){let e=t.currentTarget;if(!this._isNativeModal){let i=e.contains(t.target)?e:this;Di.call(i,t)}return}if(t.key==="Escape"||t.key==="Esc"){t.preventDefault(),t.stopPropagation();let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)&&this.close()}}}}).autoRegister("mdw-dialog");var Pt=ce.extend().css`:host{--mdw-bg: var(--mdw-color__primary-container);--mdw-ink: var(--mdw-color__on-primary-container);--mdw-shape__size: 16px;--mdw-surface__tint: var(--mdw-surface__tint__3);--mdw-surface__tint__raised: var(--mdw-surface__tint__4);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__3);--mdw-surface__shadow__raised: var(--mdw-surface__shadow__4);min-inline-size:48px;padding:calc(16px + (var(--mdw-density) * 2px))}#icon{font-size:24px}:host([lowered]){--mdw-surface__tint: var(--mdw-surface__tint__1);--mdw-surface__tint__raised: var(--mdw-surface__tint__2);--mdw-surface__shadow__resting: var(--mdw-surface__shadow__1);--mdw-surface__shadow__raised: var(--mdw-surface__shadow__2)}`.observe({filled:{empty:"tonal"},elevated:{type:"boolean",empty:!0}}).autoRegister("mdw-extended-fab");var Nr=le.mixin(P).extend().set({_ariaRole:"tooltip"}).observe({open:{type:"boolean",changedCallback(t,e){this.updateAriaProperty("ariaHidden",e?"true":"false")}},touch:"boolean"}).css`:host{--mdw-shape__size: var(--mdw-shape__extra-small);--mdw-ink: var(--mdw-color__on-surface-variant);--mdw-shape__bg: rgb(var(--mdw-color__surface-variant));display:block;vertical-align:middle;box-sizing:border-box;margin-inline:auto;padding-block:4px;padding-inline:8px;pointer-events:none;opacity:0;transform:scale(0);z-index:24;font:var(--mdw-typescale__label-medium__font);letter-spacing:var(--mdw-typescale__label-medium__letter-spacing);transition:transform .2s,opacity .2s}:host([touch]){padding-block:6px;padding-inline:16px;font:var(--mdw-typescale__label-large__font);letter-spacing:var(--mdw-typescale__label-large__letter-spacing)}:host([open]){opacity:1;transform:scale(1)}`.autoRegister("mdw-tooltip");function Ae(t){let{pageX:e,pageY:i,directionX:r,directionY:o}=t;if(e==null||i==null){let{clientX:m,clientY:d,anchor:p}=t,h=p instanceof Element?p.getBoundingClientRect():p;if(e==null)switch(m){case"left":case null:case void 0:e=h.left,r??="right";break;case"center":e=h.left+h.width/2,r??="center";break;case"right":e=h.right,r??="left";break;default:e=h.left+m}if(i==null)switch(d){case"top":i=h.top,o??="up";break;case"center":i=h.top+h.height/2,o??="center";break;case"bottom":case null:case void 0:i=h.bottom,o??="down";break;default:i=h.top+d}}let{width:n,height:a}=t;if(n==null||a==null){let{popup:m}=t;m instanceof Element?(n=m.clientWidth,a=m.clientHeight):(n=m.width,a=m.width)}switch(r){case"left":e-=n;break;case"center":e-=n/2}switch(o){case"up":i-=a;break;case"center":i-=a/2}let s=t.offsetX??0,l=t.offsetY??0;e+=s,i+=l;let c=t.margin??0;return!t.force&&(e-c<0||i-c<0||e+n>document.documentElement.clientWidth-c||i+a>document.documentElement.clientHeight-c)?null:{...t,offsetX:s,offsetY:l,pageX:e,pageY:i,transformOriginX:r==="center"?"center":r==="left"?"right":"left",transformOriginY:o==="center"?"center":o==="up"?"bottom":"top"}}function Ee(t){var i,r,o,n,a,s;let l=class extends t{constructor(...d){super(...d);O(this,i,void 0);O(this,r,void 0);O(this,o,!1);O(this,n,[]);O(this,a,void 0);O(this,s,void 0);I(this,"onParentScroll",d=>{this.updateTooltipPosition()});ee(this,i,this.refs.tooltip.cloneNode(!0)),w(this,i).removeAttribute("id"),w(this,i).style.setProperty("position","fixed"),w(this,i).setAttribute("aria-hidden","true"),ee(this,a,new ResizeObserver(h=>{w(this,i).open&&this.updateTooltipPosition()}));let p=[0,.49,.5,.51,1];ee(this,s,new IntersectionObserver(h=>{if(w(this,i).open){for(let g of h){if(g.intersectionRatio<=0){this.hideTooltip();return}if(g.target===w(this,i)){this.updateTooltipPosition();return}if(g.target===this){g.intersectionRatio<=.5?this.hideTooltip():this.updateTooltipPosition(g.boundingClientRect);return}}this.updateTooltipPosition()}},{threshold:p}))}onTooltipTriggerSlotChange(d){this.tooltipClone.replaceChildren(...d.currentTarget.assignedNodes().map(h=>h.cloneNode(!0)))}onTooltipTriggerFocus(d){this.disabledState||this.matches(":active")||this.showTooltip()}onTooltipTriggerKeydown(d){d.ctrlKey&&this.hideTooltip()}onTooltipTriggerBlur(){this.hideTooltip()}onTooltipTriggerPointer(d){if(!this.disabledState)switch(d.type){case"touchstart":this.scheduleShowTooltip("touch");break;case"touchend":case"touchcancel":this.scheduleHideTooltip("touch");break;case"click":case"mouseout":this.cancelShowTooltip(),this.hideTooltip();break;case"mousemove":case"mouseover":this.scheduleShowTooltip("mouse");break;default:}}get tooltipClone(){return w(this,i)}get clonedTooltip(){return w(this,i)}cancelShowTooltip(){clearTimeout(w(this,r))}scheduleHideTooltip(d){if(clearTimeout(w(this,r)),!w(this,i).open)return;let p=0;switch(d){case"mouse":p=0;break;case"touch":p=1500;break;default:}ee(this,r,setTimeout(()=>{this.hideTooltip()},p))}scheduleShowTooltip(d){if(w(this,i).open)return;let p=0;switch(d){case"mouse":p=this.constructor.TOOLTIP_MOUSE_IDLE_MS;break;case"touch":p=this.constructor.TOOLTIP_TOUCH_IDLE_MS;break;default:}clearTimeout(w(this,r)),ee(this,r,setTimeout(()=>{this.showTooltip(d==="touch")},p))}showTooltip(d=!1){if(w(this,i).open)return;this.refs.tooltip.open=!0,this.refs.tooltip.touch=d,w(this,i).touch=d,document.body.append(w(this,i)),this.updateTooltipPosition(),w(this,a).observe(this,{box:"border-box"}),w(this,s).observe(this),w(this,s).observe(w(this,i));let p=this;for(;p=p.offsetParent;)w(this,a).observe(p,{box:"border-box"}),w(this,n).push(p),w(this,s).observe(p),p.addEventListener("scroll",this.onParentScroll);window.addEventListener("scroll",this.onParentScroll),w(this,i).open=!0}hideTooltip(){w(this,a).disconnect(),w(this,s).disconnect();let d;for(;d=w(this,n).pop();)d.removeEventListener("scroll",this.onParentScroll);window.removeEventListener("scroll",this.onParentScroll),w(this,i).open=!1,w(this,i).remove(),this.refs.tooltip.open=!1;let p=this.refs.tooltip.style;p.removeProperty("width"),p.removeProperty("height")}updateTooltipPosition(d){let h={anchor:d??this.getBoundingClientRect(),width:w(this,i).clientWidth,height:w(this,i).clientHeight},g=getComputedStyle(this).direction==="rtl",f=g?"right":"left",x=g?"left":"right",A=[{clientY:"bottom",clientX:"center",offsetY:8},{clientY:"bottom",clientX:f,offsetY:8},{clientY:"bottom",clientX:x,offsetY:8},{clientY:"top",clientX:"center",offsetY:-8},{clientY:"top",clientX:f,offsetY:-8},{clientY:"top",clientX:x,offsetY:-8}],b;for(let y of A)if(b=Ae({...h,...y}),b)break;b||(b=Ae({...h,...A[0],force:!0})),w(this,i).style.setProperty("top",`${b.pageY}px`),w(this,i).style.setProperty("left",`${b.pageX}px`),w(this,i).style.setProperty("margin","0"),w(this,i).style.setProperty("transform-origin",`${b.transformOriginY} ${b.transformOriginX}`);let _=this.refs.tooltip.style;switch(_.setProperty("width",`${b.width+b.offsetX*2}px`),_.setProperty("height",`${b.height+b.offsetY}px`),b.clientY==="bottom"?(_.setProperty("top","100%"),_.removeProperty("bottom")):(_.removeProperty("top"),_.setProperty("height",`${b.height+b.offsetY}px`),_.setProperty("bottom","100%")),b.clientX){case"left":_.setProperty("left","0"),_.removeProperty("right");break;default:case"center":_.removeProperty("left"),_.removeProperty("right");break;case"right":_.removeProperty("left"),_.setProperty("right","0")}}connectedCallback(){super.connectedCallback();for(let d of["click","mousedown","mousemove","mouseout","touchmove","touchstart","touchend","touchleave","touchcancel"])this.addEventListener(d,this.onTooltipTriggerPointer,{passive:!0});this.addEventListener("focus",this.onTooltipTriggerFocus),this.addEventListener("blur",this.onTooltipTriggerBlur),this.addEventListener("keydown",this.onTooltipTriggerKeydown,{passive:!0})}disconnectedCallback(){this.hideTooltip(),super.disconnectedCallback()}},e=l;return i=new WeakMap,r=new WeakMap,o=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap,(()=>{l.on({composed({template:d,html:p}){d.append(p`<mdw-tooltip role=tooltip id=tooltip><slot id=tooltip-slot on-slotchange={onTooltipTriggerSlotChange} name=tooltip>{tooltip}</slot></mdw-tooltip>`)}}),l.css`#tooltip{position:absolute;overflow:hidden;box-sizing:content-box;block-size:0;inline-size:0;margin:0;padding:0;transform:none}#tooltip[open]{display:block;block-size:auto;inline-size:auto;cursor:default;pointer-events:auto;opacity:0;transform:none}`})(),I(e,"TOOLTIP_MOUSE_IDLE_MS",500),I(e,"TOOLTIP_TOUCH_IDLE_MS",1500),e.prototype.tooltip=e.prop("tooltip"),e}var Dr=Pt.mixin(Ee).extend().observe({fabSize:{value:null}}).css`:host{min-inline-size:24px}#icon{font-size:24px}#icon[fab-size=large]{font-size:36px}:host([fab-size="small"]){--mdw-shape__size: 12px;padding:calc(8px + (var(--mdw-density) * 2px))}:host([fab-size="large"]){--mdw-shape__size: 28px;padding:calc(30px + (var(--mdw-density) * 2px))}`.on({composed(){let{slot:t,tooltipSlot:e,control:i,shape:r,icon:o}=this.refs;t.remove(),e.removeAttribute("name"),i.setAttribute("aria-labelledby","tooltip"),r.setAttribute("fab-size","{fabSize}"),o.setAttribute("fab-size","{fabSize}")}}).autoRegister("mdw-fab");var Vr=Rt.extend().observe({type:{empty:"checkbox"},dropdown:"boolean",trailingSrc:"string",trailingIcon:"string"}).expressions({computedTrailingIcon:({trailingIcon:t,dropdown:e,trailingSrc:i})=>t||(e?"arrow_drop_down":i?"":null)}).html`<mdw-icon _if={!icon} id=check-icon disabled={disabledState} selected={checked} aria-hidden=true>check</mdw-icon><mdw-icon _if={computedTrailingIcon} id=trailing-icon aria-hidden=true src={trailingSrc}>{computedTrailingIcon}</mdw-icon>`.on({composed(){let{shape:t,icon:e,control:i,outline:r,slot:o,trailingIcon:n,checkIcon:a}=this.refs;t.setAttribute("selected","{checked}"),t.setAttribute("icon",""),t.setAttribute("trailing-icon","{computedTrailingIcon}"),e.setAttribute("_if","{icon}"),e.setAttribute("ink","{iconInk}"),i.removeAttribute("role"),r.removeAttribute("ink"),r.removeAttribute("color"),r.setAttribute("selected","{checked}"),o.removeAttribute("ink"),o.removeAttribute("color"),o.before(a),o.after(n)}}).css`:host{--mdw-ink: var(--mdw-color__on-secondary-container);--mdw-bg: var(--mdw-color__secondary-container);gap:8px;padding-inline-start:max(4px,calc(8px + (var(--mdw-density) * 2px)));padding-inline-end:max(12px,calc(16px + (var(--mdw-density) * 2px)));color:rgb(var(--mdw-color__on-surface-variant))}:host(:focus){--mdw-outline__rgb: var(--mdw-color__outline)}#icon[selected]{font-variation-settings:"FILL" 1}#shape{background-color:transparent}:host(:where([trailing-icon],[dropdown],[trailing-src])){padding-inline-start:max(4px,calc(8px + (var(--mdw-density) * 2px)))}#shape[elevated]{background-color:rgb(var(--mdw-color__surface))}#shape[selected]{background-color:rgb(var(--mdw-bg))}:host([selected]){color:rgb(var(--mdw-ink))}#outline[selected]{opacity:0}#trailing-icon{position:relative;font-size:18px}.mdw-chip__checkbox{position:absolute;max-block-size:0;max-inline-size:0;appearance:none;pointer-events:none}#check-icon{font-size:0}#check-icon[selected]{font-size:18px}#check-icon[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#shape[disabled]:is([elevated],[selected]){background-color:rgba(var(--mdw-color__on-surface),.12)}`.autoRegister("mdw-filter-chip");var Ft=$.mixin(v).extend().observe({ariaLevel:"string",size:{type:"string",empty:"large"}}).expressions({computeAriaLevel({ariaLevel:t,size:e}){return t||(e==="medium"?"2":e==="small"?"3":"1")}}).on({composed(){let{slot:t}=this.refs;t.setAttribute("role","heading"),t.setAttribute("aria-level","{computeAriaLevel}")}}).css`:host{font:var(--mdw-typescale__headline-large__font);letter-spacing:var(--mdw-typescale__headline-large__letter-spacing)}:host([size="medium"]){font:var(--mdw-typescale__headline-medium__font);letter-spacing:var(--mdw-typescale__headline-medium__letter-spacing)}:host([size="small"]){font:var(--mdw-typescale__headline-small__font);letter-spacing:var(--mdw-typescale__headline-small__letter-spacing)}`.autoRegister("mdw-headline");var Hr=ce.mixin(Ee).extend().observe({_ariaPressed:{get({type:t,checked:e}){return t!=="checkbox"?null:e?"true":"false"}}}).expressions({isToggle({type:t}){return t==="checkbox"}}).childEvents({control:{keydown(t){if(t.key!=="Enter")return;let e=t.currentTarget;if(e.type!=="checkbox"||(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),e.disabled))return;let i=new Event("click",{bubbles:!0,cancelable:!0,composed:!0});e.dispatchEvent(i)&&(e.checked=!e.checked,e.dispatchEvent(new Event("change",{bubbles:!0})))}}}).on({composed(){let{slot:t,shape:e,tooltipSlot:i,icon:r,label:o,surfaceTint:n,control:a,outline:s}=this.refs;e.classList.add("colored"),o.classList.add("colored");for(let l of[e,o,r])l.setAttribute("toggle","{isToggle}"),l.setAttribute("selected","{checked}");t.remove(),r.removeAttribute("_if"),i.removeAttribute("name"),n.remove(),a.setAttribute("aria-pressed","{_ariaPressed}"),a.setAttribute("aria-labelledby","tooltip"),s.setAttribute("selected","{checked}")}}).css`:host{--mdw-shape__size: var(--mdw-shape__full);--mdw-ink: rgb(var(--mdw-color__on-surface-variant));align-items:center;justify-content:center;padding:max(8px,calc(8px + (var(--mdw-density) * 2px)));background-color:transparent;font-size:24px}:host(:where([type="checkbox"])){--mdw-ink: var(--mdw-color__primary)}:host(:where([filled])){--mdw-ink: var(--mdw-color__on-primary);--mdw-bg: var(--mdw-color__primary);--mdw-surface__shadow__resting: none;--mdw-surface__shadow__raised: none}:host(:where([filled="tonal"])){--mdw-ink: var(--mdw-color__on-secondary-container);--mdw-bg: var(--mdw-color__secondary-container)}:host(:where([outlined])){--mdw-ink: var(--mdw-color__on-surface-variant)}:host(:where([outlined][type="checkbox"])){--mdw-bg: var(--mdw-color__inverse-surface);--mdw-ink: var(--mdw-color__inverse-on-surface)}#label{font-size:inherit;letter-spacing:inherit}#shape[toggle]{background-color:transparent}.colored[toggle]{color:rgb(var(--mdw-color__on-surface-variant))}.colored[selected]{color:rgb(var(--mdw-ink))}#shape[filled][toggle]{background-color:rgb(var(--mdw-color__surface-variant))}.colored[filled][toggle]{color:rgb(var(--mdw-bg))}#shape[filled=tonal][toggle]{background-color:rgb(var(--mdw-color__surface-variant))}.colored[filled=tonal][toggle]{color:rgb(var(--mdw-color__on-surface-variant))}#shape[filled][selected]{background-color:rgb(var(--mdw-bg))}.colored[filled][selected]{color:rgb(var(--mdw-ink))}#shape[outlined]{background-color:transparent}.colored[outlined]{color:inherit}#shape[outlined][toggle]{background-color:transparent}.colored[outlined][toggle]{color:rgb(var(--mdw-color__on-surface-variant))}#shape[outlined][selected]{background-color:rgb(var(--mdw-bg))}.colored[outlined][selected]{color:rgb(var(--mdw-ink))}#icon{font-size:inherit;font-variation-settings:"FILL" 1}#icon[toggle]{font-variation-settings:"FILL" 0}#icon[selected]{font-variation-settings:"FILL" 1}#outline[focused]{opacity:1;color:inherit}#outline[selected]{opacity:0}.colored[disabled]{cursor:not-allowed;color:rgba(var(--mdw-color__on-surface),.38)}#shape[disabled][filled],#shape[disabled][outlined][selected]{background-color:rgba(var(--mdw-color__on-surface),.12)}.colored[disabled][filled],.colored[disabled][outlined][selected]{color:rgba(var(--mdw-color__on-surface),.38)}`.autoRegister("mdw-icon-button");function fe(t){return t.mixin(H).mixin(L).extend().set({stateLayer:!0}).observe({type:{empty:"text"},icon:"string",label:"string",filled:"boolean",outlined:"boolean",inputPrefix:"string",inputSuffix:"string",trailingIcon:"string",trailingIconInk:"string",supporting:"string",error:"string",placeholder:{nullParser:String}}).observe({erroredState({error:e,_invalid:i}){return!!(e||i)}}).expressions({computePlaceholder({filled:e,outlined:i,label:r,placeholder:o}){return e||i?o:o??r},shouldShowSupporting({_invalid:e,error:i,supporting:r}){return e||(i??r)!=null},computeSupportingText({error:e,_validationMessage:i,supporting:r}){return(e||i||r)??""},populatedState({value:e,_badInput:i}){return!!e||i},_showLabelText({label:e,filled:i,outlined:r}){return e&&(i||r)}}).on({composed({template:e,html:i,inline:r}){let{control:o,label:n,outline:a,shape:s,outlineLeft:l,outlineRight:c,state:m}=this.refs;o.setAttribute("placeholder","{computePlaceholder}"),o.setAttribute("aria-label","{label}"),o.setAttribute("input-suffix","{inputSuffix}"),o.setAttribute("errored","{erroredState}"),o.removeAttribute("aria-labelledby"),o.classList.add("inline"),n.classList.add("shape"),n.setAttribute("filled","{filled}"),n.setAttribute("color","{color}"),n.setAttribute("icon","{icon}"),n.setAttribute("shape-style","{shapeStyle}"),n.setAttribute("trailingIcon","{trailingIcon}"),n.setAttribute("populated","{populatedState}"),n.setAttribute("outlined","{outlined}"),n.setAttribute("focused","{focusedState}"),n.setAttribute("label","{label}"),n.setAttribute("shape-top",r(({shapeTop:d,filled:p})=>d||p)),n.append(m,a,i`<mdw-icon _if={icon} id=icon aria-hidden=true disabled={disabledState}>{icon}</mdw-icon><span _if={inputPrefix} class=inline id=prefix aria-hidden=true focused={focusedState} populated={populatedState}>{inputPrefix}</span> <span _if={inputSuffix} class=inline id=suffix aria-hidden=true focused={focusedState} populated={populatedState}>{inputSuffix}</span><mdw-icon _if={trailingIcon} id=trailing-icon ink={trailingIconInk} aria-hidden=true disabled={disabledState}>{trailingIcon}</mdw-icon><div id=indicator _if={filled} focused={focusedState} hovered={hoveredState} errored={erroredState} disabled={disabledState}></div>`),a.setAttribute("label","{label}"),a.setAttribute("invalid","{invalid}"),a.setAttribute("errored","{erroredState}"),l.after(i`<div id=gap _if={label} label={label} populated={populatedState} focused={focusedState}><div id=gap-slot focused={focusedState}></div><span id=gap-label>{label}</span></div>`),l.setAttribute("focused","{focusedState}"),c.setAttribute("focused","{focusedState}"),s.remove(),m.setAttribute("_if","{!outlined}"),e.append(i`<div id=label-text _if={_showLabelText} aria-hidden=true outlined={outlined} populated={populatedState} focused={focusedState} icon={icon} trailing-icon={trailingIcon} disabled={disabledState} errored={erroredState}>{label}</div><div _if={shouldShowSupporting} id=supporting disabled={disabledState} errored={erroredState}>{computeSupportingText}<slot id=supporting-slot name=supporting></slot></div>`)},sizeChanged(e,i){this.refs.control.style.setProperty("--size",`${i}ch`)}}).css`:host{--mdw-shape__size: var(--mdw-shape__extra-small);--mdw-text-field__ratio: calc(var(--mdw-density) * .125 + 1);--control__margin-top: calc(var(--mdw-typescale__body-small__line-height) / 2);--control__padding-top: calc((var(--mdw-text-field__ratio) * 16px) - calc(var(--mdw-typescale__body-small__line-height) / 2));--control__padding-bottom: calc(var(--mdw-text-field__ratio) * 16px);--control__margin-bottom: 0px;--inline-color: rgb(var(--mdw-color__on-surface-variant));--descriptor-opacity: .5;--mdw-ink: var(--mdw-color__primary);--mdw-bg: var(--mdw-color__surface-variant);--mdw-type__font: var(--mdw-typescale__body-large__font);--mdw-type__letter-spacing: var(--mdw-typescale__body-large__letter-spacing);display:inline-block;color:rgb(var(--mdw-color__on-surface));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}:host([icon]){--padding-inline-start: 12px}:host([trailing-icon]){--padding-inline-end: 12px}:host(:is([color],[ink])){background-color:transparent;color:rgb(var(--mdw-color__on-surface))}:host([label][outlined]){--mdw-shape__size__top-start-size: min(var(--mdw-shape__size), 12px);--mdw-shape__size__bottom-start-size: min(var(--mdw-shape__size), 12px);--mdw-shape__size__top-end-size: min(var(--mdw-shape__size), 12px);--mdw-shape__size__bottom-end-size: min(var(--mdw-shape__size), 12px)}#label[label][outlined]{-webkit-mask-box-image-width:min(var(--mdw-shape__size),12px)}#label{position:relative;display:flex;align-items:center;overflow:visible;padding-inline-start:16px;padding-inline-end:16px;cursor:inherit;z-index:0;background-color:transparent;font-weight:inherit;font-size:inherit;line-height:inherit;font-family:inherit;letter-spacing:inherit;transition:none .2s cubic-bezier(0,0,.2,1)}#label:is([filled],[color]){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-color__on-surface))}#label[outlined]{background-color:transparent}#label-text,#indicator{color:rgb(var(--mdw-color__on-surface-variant))}:is(#label-text,#indicator)[focused]{color:rgb(var(--mdw-ink))}#label[icon]{padding-inline-start:12px}#label[trailing-icon]{padding-inline-end:12px}#label[focused]{transition:none .1s cubic-bezier(.4,0,1,1)}#label[shape-top]{--mdw-shape__size__bottom-start-size: 0px;--mdw-shape__size__bottom-end-size: 0px;--mdw-shape__mask: linear-gradient(transparent 50%, black 50%)}#prefix,#suffix,#control::placeholder{opacity:var(--descriptor-opacity);color:var(--inline-color);transition-duration:inherit;transition-property:opacity;transition-timing-function:inherit;will-change:opacity}:host([label]:is([filled],[outlined])){--descriptor-opacity: 0}#control{position:relative;inset:auto;align-self:flex-start;display:inline;box-sizing:border-box;block-size:auto;min-block-size:none;inline-size:100%;min-inline-size:none;flex:1;border-block-start:solid var(--control__margin-top) transparent;border-block-end:solid var(--control__margin-bottom) transparent;padding-block:var(--control__padding-top) var(--control__padding-bottom);appearance:none;caret-color:rgb(var(--mdw-ink));cursor:auto;transform:none;visibility:visible;background-color:transparent;border-color:transparent;color:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;font-family:inherit;letter-spacing:inherit;transition-duration:inherit;transition-property:color;transition-timing-function:inherit}#suffix,#prefix{margin-block:var(--control__margin-top) var(--control__margin-bottom);padding-block:var(--control__padding-top) var(--control__padding-bottom)}#control::selection{background-color:rgb(var(--mdw-ink));color:rgb(var(--mdw-color__surface))}#state{--mdw-state__focused-opacity: 0;--mdw-state__pressed-opacity: 0}mdw-icon{--mdw-icon__size: 24px;align-self:center;color:var(--inline-color)}#icon{order:-2;margin-inline-end:16px;font-size:24px}#prefix{order:-1}#suffix{order:1}#trailing-icon{order:2;margin-inline-start:16px}#indicator{position:absolute;inset-block-end:0;inset-inline:0;border-block-end:2px solid currentColor;pointer-events:none;transform:scaleY(.5);z-index:1;transition-duration:inherit;transition-property:transform;transition-timing-function:inherit;will-change:transform}#indicator[focused]{transform:scaleY(1)}#label-text{position:absolute;inset-block-start:0;inset-inline:0;display:block;overflow-x:clip;overflow-y:visible;padding-inline:16px;pointer-events:none;opacity:1;transform:translateY(calc((var(--control__margin-top) + var(--control__padding-top) + 100% + var(--control__padding-bottom) + var(--control__margin-bottom)) / 2)) translateY(-50%);z-index:4;color:rgb(var(--mdw-color__on-surface-variant));text-overflow:ellipsis;white-space:nowrap;transition-duration:.2s;transition-property:inset-inline-start,font-size,transform;will-change:inset-inline-start,font-size,transform}@supports (-moz-appearance:none){#label-text{overflow-x:hidden}}#label-text[focused]{color:rgb(var(--mdw-ink))}#label-text[icon]{inset-inline-start:36px}#label-text[trailing-icon]{inset-inline-end:36px}#label-text:is([focused],[populated]){transform:translateY(calc(var(--mdw-text-field__ratio) * 8px));font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}#label-text[outlined]:is([focused],[populated]){inset-inline:0;transform:translateY(-50%)}:is(#prefix,#suffix):is([focused],[populated]){opacity:1}#control:is(:focus,:not(:placeholder-shown))::placeholder{opacity:.7}#control[input-suffix]{text-align:end}#outline:before{content:none}.outline-section{position:relative;border:1px solid currentColor}.outline-section[focused]{border-width:2px}#outline-left{border-right-width:0;border-top-left-radius:inherit;border-bottom-left-radius:inherit}#outline-right{border-left-width:0;border-top-right-radius:inherit;border-bottom-right-radius:inherit}#outline{display:grid;grid-auto-flow:column;grid-template-columns:1fr 0 1fr;color:rgb(var(--mdw-color__outline))}#outline[label]{grid-template-columns:12px minmax(0,auto) minmax(12px,1fr)}#outline[hovered]{color:rgb(var(--mdw-color__on-surface))}#outline[focused]{color:rgb(var(--mdw-ink))}.outline-section{min-inline-size:12px}.outline-section:before,.outline-section:after{max-inline-size:none}.outline-left{grid-column:calc(2 - var(--mdw-dir, 1)) / span 1}.outline-right{grid-column:calc(2 + var(--mdw-dir, 1)) / span 1}#gap{position:relative;display:inline-block;overflow:clip hidden;max-inline-size:100%;grid-column:2;font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing);transition-duration:inherit;transition-property:padding;transition-timing-function:inherit}#gap-label{display:inline-block;overflow:clip hidden;padding-inline:4px;color:transparent;white-space:nowrap}#gap:after{content:"";position:absolute;inset:0;border-block-end:solid 1px currentColor}#gap[focused]:after{border-block-end-width:2px}#gap-slot{position:absolute;inset:0}#gap-slot:before,#gap-slot:after{content:"";position:absolute;inset:0;border-block-start:solid 1px currentColor;transition:transform .2s;will-change:transform}#gap-slot[focused]:before,#gap-slot[focused]:after{border-block-start-width:2px}@supports (-webkit-mask-box-image: none){#outline[focused]{filter:drop-shadow(1px 0px 0px currentColor) drop-shadow(0px 1px 0px currentColor) drop-shadow(-1px 0px 0px currentColor) drop-shadow(0px -1px 0px currentColor)}#outline:before{content:"";position:absolute;inset:0;grid-column:calc(2 - var(--mdw-dir, 1)) / span 1;margin-right:-.99px;border:none;background-color:currentColor;-webkit-mask-box-image:var(--mdw-shape__mask-image__edges) 8 fill / auto stretch;-webkit-mask-box-image-width:auto 0 auto auto}#outline:after{grid-column:calc(2 + var(--mdw-dir, 1)) / span 1;grid-row:1;margin-left:-.99px;-webkit-mask-box-image-width:auto auto auto 0}.outline-section{border:none}#gap:after{border:none;background-color:currentColor;-webkit-mask-box-image:var(--mdw-shape__mask-image__edges) 8 fill / auto stretch;-webkit-mask-box-image-width:0 0 auto 0}#gap-slot:before,#gap-slot:after{border:none;background-color:currentColor;-webkit-mask-box-image:var(--mdw-shape__mask-image__edges) 8 fill / auto stretch;-webkit-mask-box-image-width:auto 0 0 0}}#gap-slot:before{margin-right:-.99px;transform:var(--gap-transform, scaleX(.5));transform-origin:0 0}#gap-slot:after{margin-left:-.99px;transform:var(--gap-transform, scaleX(.5));transform-origin:100% 0}#gap:is([focused],[populated]){--gap-transform: scaleX(0)}#gap:empty{padding:0}#label[label][filled]{align-items:flex-start}:host([filled]){--mdw-shape__size__bottom-start-size: 0px;--mdw-shape__size__bottom-end-size: 0px;--mdw-text-field__ratio: calc(var(--mdw-density) * .25 + 1)}:host(:is([filled][label])){--control__margin-top: calc((var(--mdw-text-field__ratio) * 8px) + var(--mdw-typescale__body-small__line-height));--control__padding-top: 0px;--control__padding-bottom: calc(var(--mdw-text-field__ratio) * 4px);--control__margin-bottom: calc(var(--mdw-text-field__ratio) * 4px)}#supporting{min-block-size:var(--mdw-typescale__body-small__line-height);margin-block-start:4px;margin-inline:16px;font-weight:var(--mdw-typescale__body-small__font-weight);font-size:var(--mdw-typescale__body-small__font-size);line-height:var(--mdw-typescale__body-small__line-height);font-family:var(--mdw-typescale__body-small__font-family);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}#control[errored]{caret-color:rgb(var(--mdw-color__error))}#control[errored]::selection{background-color:rgb(var(--mdw-color__on-error-container))}:is(#indicator,#label-text,#supporting,#outline)[errored]{color:rgb(var(--mdw-color__error))}:is(#indicator,#label-text,#supporting,#outline)[errored]:where([hovered]){color:rgb(var(--mdw-color__on-error-container))}:is(#indicator,#label-text,#supporting,#outline)[errored]:where([focused]){color:rgb(var(--mdw-color__error))}#label[disabled],#label[disabled] #control{cursor:not-allowed}#outline[disabled]{color:rgba(var(--mdw-color__outline),.12)}#label-text[disabled],#supporting[disabled],.inline[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}mdw-icon[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#label[disabled]{background-color:rgba(var(--mdw-color__on-surface),.04);color:rgba(var(--mdw-color__on-surface),.38)}#indicator[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#label[disabled][outlined]{background-color:transparent}`}var Yr=u.mixin(v).mixin(R).mixin(Y).mixin(fe).extend().define({stateTargetElement(){return this.refs.control}}).autoRegister("mdw-input");var Br=$.extend().css`:host{font:var(--mdw-typescale__label-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}:host([size="medium"]){font:var(--mdw-typescale__label-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}:host([size="small"]){font:var(--mdw-typescale__label-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}`.autoRegister("mdw-label");var jr=u.extend().html`<slot id=slot-top name=top></slot><slot id=slot></slot>`.css`:host{display:block;font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}#slot{display:flex;gap:24px;justify-content:center;padding-inline:16px;transition:padding-inline .1s}@media screen and (min-width: 648px){#slot{padding-inline:24px}}`.autoRegister("mdw-layout");var Ot=$.mixin(H).mixin(P).extend().set({_ariaRole:"list"}).css`:host{display:flex;flex-direction:column;padding-block:8px}:host(:focus){outline:1px solid red}`.autoRegister("mdw-list");var Xs=u.mixin(v).mixin(L).extend().observe({selected:"boolean",icon:"string",errored:"boolean",disabled:"boolean",hovered:"boolean",focused:"boolean"}).define({checked:{get(){return this.selected},set(t){this.selected=t}}}).html`<div id=inner-shape class=shape selected={selected}></div>`.on({composed(){let{outline:t}=this.refs;t.removeAttribute("_if"),t.setAttribute("selected","{selected}")}}).css`:host{--disabled-opacity: .38;--mdw-ink: rgb(var(--mdw-color__primary));--color: rgb(var(--mdw-color__on-surface-variant));--mdw-shape__size: var(--mdw-shape__full);position:relative;display:inline-block;block-size:20px;inline-size:20px;background-color:transparent;transition:opacity .2s}#outline{filter:drop-shadow(1px 0px 0px var(--color)) drop-shadow(0px 1px 0px var(--color)) drop-shadow(-1px 0px 0px var(--color)) drop-shadow(0px -1px 0px var(--color));color:var(--color);will-change:filter,color}#inner-shape{position:absolute;inset:0;transform:scale(0);background-color:var(--color);transition:transform .2s,background-color .1s}:host([hovered]){--color: rgb(var(--mdw-color__on-surface))}:host([focused]){--color: rgb(var(--mdw-color__on-surface))}:host([selected]){--color: rgb(var(--mdw-ink))}:host([errored]){--color: rgb(var(--mdw-color__error))}:host([disabled]){--color: rgba(var(--mdw-color__on-surface));opacity:var(--disabled-opacity)}#inner-shape[selected]{transform:scale(.5)}`.autoRegister("mdw-radio-icon");var $t=u.mixin(v).mixin(R).mixin(B).mixin(P).extend().set({_ariaRole:"listitem",delegatesFocus:!1,stateLayer:!0}).observe({leading:"string",avatar:"string",avatarColor:{value:"primary-container"},avatarSrc:"string",src:"string",alt:"string",icon:"string",href:"string",iconInk:"string",iconSrc:"string",checkbox:"string",radio:"string",selectionColor:{value:"primary"},selected:"boolean",supporting:"string",trailing:"string",trailingIcon:"string",trailingIconInk:"string",trailingIconSrc:"string",divider:"boolean",video:"boolean",lines:"integer",_supportingSlotted:"boolean"}).observe({disabledState({disabled:t}){return t}}).expressions({isInteractive({href:t}){return t!=null},hasSupporting(){return this.supporting||this._supportingSlotted},checkboxClass(){return this.checkbox||"leading"},radioClass(){return this.radio||"leading"}}).html`<a id=anchor _if={href} href={href} disabled={disabledState} aria-labelledby=content></a><mdw-checkbox-icon id=checkbox _if={checkbox} aria-hidden=true class={checkboxClass} color={selectionColor} disabled={disabledState} icon=check selected={selected}></mdw-checkbox-icon><mdw-radio-icon id=radio _if={radio} aria-hidden=true class={radioClass} disabled={disabledState} ink={selectionColor} selected={selected}></mdw-radio-icon><mdw-box _if={avatar} id=avatar color={avatarColor} type-style=title-medium src={AvatarSrc} aria-hidden=true>{avatar}</mdw-box><mdw-icon _if={icon} id=icon ink={iconInk} src={iconSrc} aria-hidden=true>{icon}</mdw-icon><img id=img _if={src} src={src} alt={alt} video={video}><slot name=leading>{leading}</slot><div id=content has-supporting={hasSupporting} lines={lines}><slot id=slot></slot><slot id=supporting name=supporting class=text lines={lines}>{supporting}</slot></div><mdw-icon _if={trailingIcon} id=trailing-icon ink={trailingIconInk} src={trailingIconSrc} aria-hidden=true>{trailingIcon}</mdw-icon><slot id=trailing name=trailing role=note>{trailing}</slot><mdw-divider _if={divider} id=divider divder={divider}></mdw-divider>`.on({composed(){let{state:t,rippleContainer:e,anchor:i}=this.refs;i.append(t,e),t.setAttribute("state-disabled","focus hover")},disabledStateChanged(t,e){this.updateAriaProperty("ariaDisabled",e?"true":"false")}}).css`:host{--mdw-shape__size: 0px;display:flex;align-items:center;gap:16px;border:none;padding-block:8px;padding-inline:16px 24px;cursor:auto;outline:none;color:inherit;text-decoration:none}:host([href]){cursor:pointer}#anchor{position:absolute;inset:0;outline:none;color:inherit}:host([video]){padding-inline-start:0}:host([lines="3"]){align-items:flex-start;padding-block:12px}#content{display:inline-flex;align-items:flex-start;flex-direction:column;justify-content:center;flex:1;padding-block:calc(8px + (var(--mdw-density) * 2px))}#content:is([has-supporting],[lines="2"]){box-sizing:border-box;min-block-size:calc(8px + calc(48px + var(--mdw-density) * 2px));padding-block:calc(4px + var(--mdw-density) * 2px)}#content:is([lines="3"]){box-sizing:border-box;min-block-size:calc(8px + calc(48px + var(--mdw-density) * 2px));padding-block:calc(0 + var(--mdw-density) * 2px)}#icon,#trailing-icon{font-size:24px}#divider{position:absolute;inset-block-end:0;display:block;color:rgb(var(--mdw-color__surface-variant))}#divider[divider=inset]{padding-inline:16px 24px}#slot{max-block-size:var(--mdw-typescale__body-large__line-height) * 2;color:var(--mdw-color__on-surface);font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}#supporting{max-block-size:calc(var(--mdw-typescale__body-medium__line-height) * 2);color:var(--mdw-color__on-surface-variant);font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#trailing{color:var(--mdw-color__on-surface-variant);font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#slot,#supporting{display:block;overflow-x:hidden;overflow-y:hidden;text-align:start;text-overflow:ellipsis;text-transform:none;white-space:normal;word-break:break-word}#supporting[lines="2"]{min-block-size:var(--mdw-typescale__body-medium__line-height);max-block-size:var(--mdw-typescale__body-medium__line-height)}#supporting[lines="3"]{min-block-size:calc(var(--mdw-typescale__body-medium__line-height) * 2);max-block-size:calc(var(--mdw-typescale__body-medium__line-height) * 2)}@supports (width: 1lh){#slot{max-block-size:1lh}#supporting{max-block-size:2lh}#supporting[lines="2"]{min-block-size:1lh;max-block-size:1lh}#supporting[lines="3"]{min-block-size:2lh;max-block-size:2lh}}@supports (-webkit-line-clamp:1){#slot{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}#supporting{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#supporting[lines="2"]{-webkit-line-clamp:1}}#avatar{display:flex;align-items:center;justify-content:center;block-size:40px;inline-size:40px;border-radius:50%}#img{block-size:56px;max-block-size:56px;inline-size:56px;max-inline-size:56px;object-fit:cover;object-position:center center}#img[video]{block-size:64px;max-block-size:64px;inline-size:114px;max-inline-size:114px}#checkbox{margin:3px}#radio{margin:2px}.trailing{order:1}:host([disabled]){opacity:.38;color:rgb(var(--mdw-color__on-surface))}`.childEvents({supporting:{slotchange({currentTarget:t}){this._supportingSlotted=t.assignedNodes().length!==0}}}).autoRegister("mdw-list-item");var Nt=class extends $t.extend().setStatic({formAssociated:!0}).set({_ariaRole:"none",delegatesFocus:!0,_index:-1,_selectedDirty:!1,isInteractive:!0}).observe({_label:{attr:"label",nullParser:String},defaultSelected:{attr:"selected",reflect:!0,type:"boolean"},_selected:"boolean",_value:{attr:"value",reflect:!0},_formDisabled:"boolean"}).observe({selected:{reflect:!1,type:"boolean",get({_selectedDirty:e,defaultSelected:i,_selected:r}){return e?r:i},set(e){this._selectedDirty=!0,this._selected=e}},disabledState({_formDisabled:e,disabled:i}){return e?!0:!!i}}).define({index(){return this._index},form(){return this.parentElement?.form},label:{get(){return this._label},set(e){this._label=e}},value:{get(){return this._value},set(e){this._label=e}}}).methods({formDisabledCallback(e){this._formDisabled=e},focus(...e){this.refs.anchor.focus(...e)}}).on({composed({inline:e}){let{anchor:i,state:r,content:o}=this.refs;i.setAttribute("disabled","{disabledState}"),i.setAttribute("role","option"),i.setAttribute("aria-disabled",e(({disabledState:n})=>`${n}`)),i.setAttribute("tabindex","0"),i.setAttribute("aria-selected",e(({selected:n})=>`${n}`)),i.setAttribute("selected","{selected}"),i.removeAttribute("href"),i.removeAttribute("_if"),o.setAttribute("selected","{selected}"),r.setAttribute("state-disabled","focus")}}).css`:host{--mdw-bg: var(--mdw-color__secondary-container);--mdw-ink: var(--mdw-color__on-secondary-container);cursor:pointer;z-index:0}:host([href]){cursor:pointer}:host([disabled]){cursor:not-allowed;pointer-events:none}#content{-webkit-user-select:none;user-select:none}#content[selected]{color:rgb(var(--mdw-ink))}#anchor{z-index:-1}#anchor[selected]{background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}`{constructor(e,i,r,o){super(),e!==void 0&&(this.text=e),i!==void 0&&(this._value=i),r!==void 0&&(this.defaultSelected=r),o!==void 0&&(this._selected=o)}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||(this.tabIndex=0)}},X=Nt;(()=>{Nt.autoRegister("mdw-list-option")})();function Vi({host:t,collection:e,OptionConstructor:i,GroupConstructor:r}){let o=function(l,c){let m,d=-1;typeof c=="number"?c>=0&&c<e.length-1&&(d=c):c instanceof HTMLElement&&(m=c),d!==-1&&(m=e.item(d)),m?m.before(l):t.append(l)},n=function(l){e.item(l)?.remove()};return Object.defineProperty(e,"selectedIndex",{get(){for(let s=0;s<e.length;s++)if(e[s].selected)return s;return-1},set(s){for(let l=0;l<e.length;l++)e[l].selected=l===s}}),new Proxy(e,{get(s,l,c){switch(l){case"add":return o;case"remove":return n;default:return s[l]}},set(s,l,c,m){let d=Number.NaN;switch(typeof l){case"string":d=Number.parseInt(l,10);break;case"number":d=l;break;default:case"symbol":return Reflect.set(s,l,c,m)}if(Number.isNaN(d))return Reflect.set(s,l,c,m);let p=e.length;for(;d>e.length;)o(new i);d===p?c!=null&&o(c):d>=0&&(n(d),c!==null&&o(c,d))}})}var Be=class extends Ot.mixin(R).mixin(ie).mixin(G){_optionsCollection=null;constructor(){super(),this.refs.slot.addEventListener("slotchange",this.onSlotChange),this.addEventListener("keydown",this.onControlKeydown),this.addEventListener("click",this.onListSelectClick)}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||(this.tabIndex=0)}*_selectedOptionsGenerator(){for(let e of this.options)e.selected&&(yield e)}onSlotChange(e){let{host:i}=this.getRootNode();i.refreshTabIndexes();let r=0;for(let o of i.options)o._index=r++}onControlKeydown(e){if(e.key==="Spacebar"||e.key===" "){if(!(e.target instanceof X))return;e.stopPropagation(),e.preventDefault(),this.onListSelectClick.call(this,e)}}onListSelectClick(e){let i=e.target;if(i instanceof X&&(e.stopPropagation(),!i.disabledState)){if(i.selected){if(this.multiple){let r=[...this.selectedOptions];if(this.required&&r.length===1)return;r.length,i.selected=!1;let o=r.shift();o===i&&(o=r.shift()),this._value=o?.value??"";return}if(this.required)return;i.selected=!1,this._value="";return}if(this.multiple){i.selected=!0,this._value=this.selectedOptions.next().value;return}for(let r of this.options)r.selected=r===i;this._value=i.value}}formResetCallback(){super.formResetCallback()}get options(){return this._optionsCollection||(this._optionsCollection=Vi({host:this,collection:this.getElementsByTagName(X.elementName),OptionConstructor:X,GroupConstructor:X})),this._optionsCollection}get selectedOptions(){return this._selectedOptionsGenerator()}get type(){return"select"}get kbdNavQuery(){return X.elementName}get length(){return this.options.length}get selectedIndex(){return this.options.selectedIndex}set selectedIndex(e){this.options.selectedIndex=e,this._value=this.options.item(e)?.value??""}get value(){return this._value}set value(e){for(let i of this.options)i.selected=i.value===e;this._value=e}get add(){return this.options.add}get item(){return this.options.item}get namedItem(){return this.options.namedItem}*[Symbol.iterator](){for(let e of this.options)yield e}get kbdNavFocusableWhenDisabled(){return!0}},re=Be;(()=>{Be.autoRegister("mdw-list-select"),Be.css`:host(:disabled){cursor:not-allowed;pointer-events:none}:host([internals-disabled]){cursor:not-allowed;pointer-events:none}`,Be.on({disabledStateChanged(e,i){this._kbdFocusable=!i,this.tabIndex=i?-1:0},multipleChanged(e,i){this.updateAriaProperty("ariaMultiSelectable",i?"true":"false")}})})();re.prototype.multiple=re.prop("multiple",{type:"boolean"});re.prototype.size=re.prop("size",{type:"integer",empty:0});re.prototype._ariaRole="listbox";re.prototype.delegatesFocus=!0;var Dt=typeof HTMLDialogElement<"u",be=[];function Vt(){let t=be.at(-1);!t||!t.originalEvent||(t.pendingResizeOperation&&cancelAnimationFrame(t.pendingResizeOperation),t.pendingResizeOperation=requestAnimationFrame(()=>{t.element.updateMenuPosition(t.originalEvent),t.pendingResizeOperation=null}))}function ct(t){if(!t.state)return;let e=be.at(-1);!e||!e.previousState||(e.previousState===t.state||Object.keys(t.state).every(i=>t.state[i]===e.previousState[i]))&&e.element.close()}function Hi(t){be.length}var Ur=u.mixin(H).mixin(G).extend().observe({open:"boolean",flow:{type:"string",value:null},submenu:"boolean",modal:"boolean",_isNativeModal:"boolean",color:{empty:"surface"},ink:"string",elevation:{empty:2},outlined:"boolean"}).set({returnValue:"",delegatesFocus:!0,_cascader:null,_closing:!1}).define({kbdNavChildren(){let t=[...this.querySelectorAll("mdw-menu-item")],e=[...this.querySelectorAll(":scope mdw-menu mdw-menu-item")];return t.filter(i=>!e.includes(i))},_dialog(){return this.refs.dialog},cascader:{get(){return this._cascader?.deref()},set(t){this._cascader=t?new WeakRef(t):null}}}).html`
|
|
21
21
|
<dialog id=dialog role=menu aria-hidden=${({open:t})=>t?"false":"true"}>
|
|
22
22
|
<div id=scrim aria-hidden=true modal={modal}></div>
|
|
23
23
|
<form id=form method=dialog role=none>
|
|
@@ -106,7 +106,7 @@ var vi=Object.defineProperty;var cr=(t,e,i)=>e in t?vi(t,e,{enumerable:!0,config
|
|
|
106
106
|
<mdw-icon _if=${t=>t.icon||t.src} id=icon aria-hidden=true src={src} active={active}>{icon}</mdw-icon>
|
|
107
107
|
<slot id=slot></slot>
|
|
108
108
|
</a>
|
|
109
|
-
`.on({composed(){let{shape:t,rippleContainer:e,state:i}=this.refs;t.append(i,e),i.setAttribute("state-disabled","focus")}}).events({keydown(t){t.key===" "&&(t.preventDefault(),this.refs.anchor.click())}}).childEvents({anchor:{click(t){if(this.disabledState){t.preventDefault(),t.stopPropagation();return}let{href:e}=this;if(!e){t.preventDefault();return}if(e.startsWith("#")){let i=document.querySelector(e);t.preventDefault(),i.scrollIntoView({block:"nearest",inline:"start"})}}}}).css`:host{display:inline-flex;min-inline-size:64px;cursor:pointer}#anchor{display:flex;align-items:center;flex-direction:column;justify-content:center;box-sizing:border-box;block-size:100%;inline-size:100%;flex:1;padding-block:6px;padding-inline:12px;cursor:pointer;outline:none;color:inherit;text-decoration:inherit}#icon{padding-block:4px;font-size:24px;font-variation-settings:"FILL" 0}#shape[disabled],#anchor[disabled]{cursor:not-allowed;background-color:rgba(var(--mdw-color__on-surface),.12);color:rgba(var(--mdw-color__on-surface),.38)}:host([active]){color:rgb(var(--mdw-ink))}#icon[active]{font-variation-settings:"FILL" 1}#slot{display:block;overflow-x:hidden;overflow-y:hidden;max-block-size:var(--mdw-typescale__title-small__line-height);max-inline-size:100%;cursor:inherit;outline:none;opacity:var(--mdw-nav-item__anchor__opacity, 1);transform:translateY(var(--mdw-nav-item__offset-y, 0));color:inherit;font:var(--mdw-typescale__title-small__font);letter-spacing:var(--mdw-typescale__title-small__letter-spacing);text-align:center;text-decoration:inherit;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:break-word;transition:opacity,color,transform .2s;will-change:opacity,transform}`.autoRegister("mdw-tab");var Bt=new Set,jt;function pt(t){return t.extend().observe({pageIsRTL:{type:"boolean",value:document.documentElement.dir==="rtl"}}).on({connected(){jt||(jt=new MutationObserver(()=>{let e=document.documentElement.dir==="rtl";for(let i of Bt)i.pageIsRTL=e}),jt.observe(document.documentElement,{attributeFilter:["dir"]})),Bt.add(this)},disconnected(){Bt.delete(this)}})}var Bi=new ResizeObserver(t=>{for(let e of t)e.target.onResizeObserved(e)});function oe(t){return t.extend().set({observeResizeOnConnected:!0}).methods({onResizeObserved(e){},observeResize(){Bi.observe(this)},unobserveResize(){Bi.unobserve(this)}}).on({connected(){this.observeResizeOnConnected&&this.observeResize()},disconnected(){this.unobserveResize()}})}var no=u.mixin(v).mixin(G).mixin(oe).mixin(pt).mixin(L).extend().set({_tabContentRef:null,_tabContentScrollListener:null,_tabCollection:null,_tabMetrics:null,_isRTL:null}).define({tabContent:{get(){return this._tabContentRef?.deref()},set(t){let e=this._tabContentRef?.deref();e&&e.removeEventListener("scroll",this._tabContentScrollListener),t?(this._tabContentRef=new WeakRef(t),this._tabContentScrollListener=this.observeTabContent.bind(this),t.addEventListener("scroll",this._tabContentScrollListener),this.observeTabContent()):this._tabContentRef=null}}}).observe({tabContentId:{changedCallback(t,e){this.tabContent=e?document.getElementById(e):null}},active:"boolean",secondary:"boolean",_indicatorStyle:{value:"opacity: 0"},color:{empty:"surface-primary"}}).define({tabs(){return this._tabCollection??=this.getElementsByTagName(Te.elementName)}}).observe({_selectedIndex:{type:"integer",empty:-1,changedCallback(t,e){this.active=e!==-1}}}).define({kbdNavQuery(){return Te.elementName},ariaOrientationDefault(){return"horizontal"},childTabItems(){return this.querySelectorAll(Te.elementName)},tabMetrics(){return this._tabMetrics??=[...this.tabs].map((t,e)=>({left:t.offsetLeft,width:t.offsetWidth,right:t.offsetLeft+t.offsetWidth,center:t.offsetLeft+t.offsetWidth/2,label:t.labelMetrics,index:e}))},selectedIndex:{get(){let t=0;for(let e of this.tabs){if(e.active)return t;t++}return-1},set(t){let e=0;for(let i of this.tabs)e===t?(i.active=!0,this._selectedIndex=e):i.active=!1,e++}}}).define({selectedItem:{get(){for(let t of this.tabs)if(t.active)return t;return null},set(t){let e=0;for(let i of this.tabs){if(i===t)return this.selectedIndex=e,t;e++}return null}}}).methods({clearCache(){this._tabMetrics=null},updateIndicatorByTab(t){t??=this.selectedItem??this.tabs.item(0);let e=this.secondary?t.clientWidth:t.labelMetrics.width,i=this.secondary?t.offsetLeft:t.offsetLeft+t.labelMetrics.left;this._indicatorStyle=`--width: ${e}; --offset: ${i}px`},updateIndicator(t=!1){this.updateIndicatorByTab(),t||this.refs.indicator.style.setProperty("--transition-ratio","0")},updateIndicatorByPosition(t){let e=this.tabMetrics,i=Math.min(Math.max(t,0),1),r=(e.length-1)*i,o=Math.floor(r),n=Math.ceil(r),a=e[o];if(!a)return;let s=e[n],l,c,m;if(a===s)l=this.secondary?a.width:a.label.width,c=this.tabs.item(o),m=a.center;else{let d=1-(r-o),p=1-d,h=d*(this.secondary?a.width:a.label.width),g=p*(this.secondary?s.width:s.label.width),f=d>p?o:n,x=s.center-a.center;l=h+g,c=this.tabs.item(f),m=a.center+x*p}if(!c.active){for(let d of this.tabs)d.active=d===c;this.active=!0}this._indicatorStyle=`--width: ${l}; --offset: ${m-l/2}px`,this.refs.indicator.style.setProperty("--transition-ratio","0")},updateIndicatorByIndex(t){this.updateIndicatorByTab(this.tabs.item(t??this._selectedIndex))},observeTabContent(){let t=this.tabContent;if(!t)return;let e=t.scrollLeft;this.pageIsRTL&&(e*=-1);let i=t.clientWidth,r=t.scrollWidth-i,o=r===0?0:e/r;this.updateIndicatorByPosition(o)},onResizeObserved(){this.clearCache(),this.updateIndicator()}}).set({ariaRole:"tablist"}).html`<slot id=slot ink={ink} type-style={typeStyle}></slot><div id=indicator aria-hidden=true style={_indicatorStyle} active={active} secondary={secondary}><div id=indicator-start class=indicator-piece></div><div id=indicator-center class=indicator-piece></div><div id=indicator-end class=indicator-piece></div></div>`.on({composed(){let{shape:t,indicator:e}=this.refs;t.append(e)},pageIsRTLChanged(){this.clearCache(),this.updateIndicator()},activeChanged(t,e){e&&this.updateIndicator()},secondaryChanged(){this.updateIndicator()},_selectedIndexChanged(t,e){this.updateIndicatorByIndex(e)}}).events({"~click"({target:t}){t!==this&&t instanceof Te}}).childEvents({slot:{slotchange(){this.clearCache(),this.updateIndicator()}}}).css`:host{--mdw-ink: var(--mdw-color__primary);--mdw-shape__bg: rgb(var(--mdw-color__surface));position:relative;position:sticky;inset-block-start:0;inset-inline:0;display:grid;align-items:stretch;grid-auto-columns:minmax(auto,1fr);grid-auto-flow:column;justify-content:space-evenly;overflow-y:hidden;box-sizing:border-box;min-block-size:48px;inline-size:100%;flex:none;color:inherit;text-align:center;will-change:transform}#indicator{--corner: 3;--width: 24;--offset: 0;--visibility: 0;--transition-ratio: 1;position:absolute;inset-block-end:0;inset-inline:0;overflow-y:clip;block-size:3px;inline-size:100%;pointer-events:none;opacity:1;transform:translateY(calc(100% * (1 - var(--visibility))));color:inherit;transition:transform .2s;will-change:transform}.indicator-piece{position:absolute;inset-block:0;opacity:1;transform-origin:0 0;z-index:1;background-color:currentColor;transition:transform;transition-duration:calc(.2s * var(--transition-ratio));will-change:transform}#indicator-start{left:0;inline-size:calc(2 * 1px * var(--corner));transform:translate(var(--offset));border-top-left-radius:calc(1px * var(--corner))}#indicator-center{--precision: 100;position:absolute;left:calc(1px * var(--corner));inline-size:calc(1px * var(--precision));transform:translate(var(--offset)) scaleX(calc((var(--width) - (2 * var(--corner))) / var(--precision)))}#indicator-end{position:absolute;left:0;inline-size:calc(2 * 1px * var(--corner));transform:translate(var(--offset)) translate(calc(-2px * var(--corner))) translate(calc(var(--width) * 1px));border-top-right-radius:calc(1px * var(--corner))}#indicator[active]{--visibility: 1;color:rgb(var(--mdw-ink))}#indicator[secondary]{--corner: 0}:host([scrollable]){grid-auto-columns:max-content;justify-content:flex-start;overflow-x:auto;padding-inline:48px}`.autoRegister("mdw-tab-list");var Ut=$.mixin(P).extend().set({_ariaRole:"tabpanel"}).observe({active:{type:"boolean",changedCallback(t,e){this.updateAriaProperty("ariaHidden",e?"false":"true")}},peeking:"boolean"}).css`:host{scroll-snap-align:center;min-inline-size:100%;max-inline-size:100%;min-block-size:100%;max-block-size:100%;overflow-y:auto;will-change:visibility;visibility:hidden}:host(:is([active],[peeking])){visibility:visible!important}`.autoRegister("mdw-tab-panel");var ao=u.mixin(oe).extend().set({_panelNodes:[],_panelMetrics:null}).observe({_selectedIndex:{type:"integer",empty:-1}}).define({panels(){return this._panelNodes},panelMetrics(){return this._panelMetrics??=[...this._panelNodes].map((t,e)=>({left:t.offsetLeft,width:t.offsetWidth,right:t.offsetLeft+t.offsetWidth,center:t.offsetLeft+t.offsetWidth/2,index:e}))}}).define({selectedIndex:{get(){let t=0;for(let e of this.panels){if(e.active)return t;t++}return-1},set(t){let e=0;for(let i of this.panels)e===t?(i.active=!0,this._selectedIndex=e):i.active=!1,e++}}}).define({selectedPanel:{get(){return this.panels.find(t=>t.active)},set(t){let e=this.panels.indexOf(t);return e===-1?null:(this.selectedIndex=e,t)}}}).html`<slot id=slot></slot>`.methods({onResizeObserved(){this._panelMetrics=null},updatePanels(){let t=this.scrollLeft,e=this.clientWidth,i=t+e;for(let r of this.panelMetrics){let n=(t>r.right||i<r.left?0:t>=r.left?r.right-t:i-r.left)/e,a=this.panels[r.index];a.active=n>=.5,a.peeking=n>0&&n<.5}}}).childEvents({slot:{slotchange(t){let e=t.currentTarget;this._panelNodes=e.assignedElements().filter(i=>i.tagName===Ut.elementName.toUpperCase()),this.updatePanels()}}}).events({scroll:"updatePanels"}).css`:host{display:grid;grid-auto-columns:100%;grid-auto-flow:column;grid-template-columns:100%;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none;flex-grow:1;-webkit-scroll-snap-type-x:mandatory;scroll-snap-type-x:mandatory;-webkit-scroll-snap-points-x:repeat(100%);scroll-snap-points-x:repeat(100%);overscroll-behavior-x:none;will-change:transform}`.autoRegister("mdw-tab-content");var ut={nullParser:String,value:""},so=u.mixin(v).mixin(R).mixin(_e).mixin(fe).mixin(oe).extend().set({supportsCSSLineHeightUnit:CSS.supports("height","1lh"),type:"textarea"}).overrides({controlTagName:"textarea",controlVoidElement:!1}).observe({fixed:{type:"boolean"},minRows:{attr:"minrows",type:"integer",nullable:!1},maxRows:{attr:"maxrows",type:"integer",nullable:!1},_lineHeight:"string",cols:{type:"integer",empty:0},dirName:{attr:"dirname",...ut},maxLength:{attr:"maxlength",type:"integer",empty:0},minLength:{attr:"minlength",type:"integer",empty:0},placeholder:ut,rows:{type:"integer",empty:1},wrap:ut,defaultValueAttr:{attr:"value",...ut}}).define({_textarea(){return this.refs.control}}).define({defaultValue:{get(){return this._textarea.defaultValue},set(t){let e=this._textarea.defaultValue;this._textarea.defaultValue=t;let i=this._textarea.defaultValue;e!==i&&this.propChangedCallback("defaultValue",e,i),this.textContent=this._textarea.defaultValue}},textLength(){return this._textarea.textLength},select(){return this._textarea.select},selectionDirection:{get(){return this._textarea.selectionDirection},set(t){this._textarea.selectionDirection=t}},selectionStart:{get(){return this._textarea.selectionStart},set(t){this._textarea.selectionStart=t}},selectionEnd:{get(){return this._textarea.selectionEnd},set(t){this._textarea.selectionEnd=t}},setRangeText(){return this._textarea.setRangeText},setSelectionRange(){return this._textarea.setSelectionRange}}).methods({resize(){let t=this._textarea;if(t.style.removeProperty("height"),!this.supportsCSSLineHeightUnit){let{lineHeight:e}=window.getComputedStyle(t);this._lineHeight=e}if(this.minRows>1&&t.rows<this.minRows?t.rows=this.minRows:this.maxRows&&t.rows>this.maxRows&&(t.rows=this.maxRows),!this.fixed){for(;t.scrollHeight>t.clientHeight&&!(this.maxRows&&t.rows===this.maxRows);){let e=t.clientHeight;if(t.rows++,e===t.clientHeight){t.rows--;break}}for(;t.scrollHeight===t.clientHeight&&!(t.rows===1||this.minRows>1&&t.rows===this.minRows);){let e=t.clientHeight;if(t.rows--,e===t.clientHeight||t.scrollHeight>t.clientHeight){t.rows++;break}}}return t.selectionEnd===t.value.length&&(t.scrollTop=t.scrollHeight),this.rows=t.rows,this.rows},onResizeObserved(t){super.onResizeObserved(t),!this.matches(":active")&&this.resize()}}).childEvents({slot:{slotchange({currentTarget:t}){let e=this.refs.control,i=e.defaultValue;e.replaceChildren(...t.assignedNodes().map(o=>o.cloneNode(!0)));let r=e.defaultValue;i!==r&&this.propChangedCallback("defaultValue",i,r)}},control:{input(){this.resize()}}}).on({composed(){let{control:t}=this.refs;t.removeAttribute("placeholder"),t.setAttribute("rows","{rows}"),t.setAttribute("input-prefix","{inputPrefix}"),t.setAttribute("input-suffix","{inputSuffix}"),t.setAttribute("minrows","{minRows}"),t.setAttribute("fixed","{fixed}"),t.setAttribute("icon","{icon}"),t.setAttribute("maxrows","{maxRows}")},defaultValueAttrChanged(t,e){this.defaultValue=e},defaultValueChanged(){this._value=this._textarea.value,this.resize()},_lineHeightChanged(t,e){this.refs.label.style.setProperty("--line-height",e)},minRowsChanged(t,e){this.refs.label.style.setProperty("--min-rows",`${e||"none"}`),this.resize()},maxRowsChanged(t,e){this.refs.label.style.setProperty("--max-rows",`${e||"none"}`),this.resize()},rowsChanged(){this.resize()},_formResetChanged(t,e){e&&(this._textarea.value=this.defaultValue,this._value=this._textarea.value)},attrs:{cols:I("cols","control"),dirname:I("dirname","control"),minlength:I("minlength","control"),maxlength:I("maxlength","control"),placeholder:I("placeholder","control")}}).css`:host{display:inline-grid;grid-auto-flow:row;grid-template-rows:minmax(0,100%)}:host(:is([filled][label])){--control__margin-top: calc((var(--mdw-text-field__ratio) * 8px) + var(--mdw-typescale__body-small__line-height));--control__padding-top: 0px;--control__padding-bottom: calc((var(--mdw-text-field__ratio) * 8px) - 1px);--control__margin-bottom: 1px}#label{--max-rows: none;--line-height: var(--mdw-typescale__body-large__line-height);--expected-height: calc((var(--control__margin-top) + var(--control__padding-top) + var(--line-height) + var(--control__padding-bottom) + var(--control__margin-bottom)));max-block-size:100%;grid-row:1 / 1;padding:0}@supports (height: 1lh){#label{--line-height: 1lh}}#slot{display:none}#control{-ms-overflow-style:-ms-autohiding-scrollbar;overflow-y:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;block-size:100%;min-block-size:var(--expected-height);max-block-size:inherit;inline-size:100%!important;padding-inline:16px}#control[icon]{padding-inline-start:0}#control[minrows]{min-block-size:calc((var(--min-rows) * var(--line-height)) + var(--control__margin-top) + var(--control__padding-top) + var(--control__padding-bottom) + var(--control__margin-bottom))}#control[maxrows]{max-block-size:calc((var(--max-rows) * var(--line-height)) + var(--control__margin-top) + var(--control__padding-top) + var(--control__padding-bottom) + var(--control__margin-bottom))}#control:is([icon],[input-prefix]){padding-inline-start:0}#control:is([trailing-icon],[input-suffix]){padding-inline-end:0}#suffix{padding-inline-end:16px}mdw-icon{align-self:flex-start;margin-block-start:calc((var(--expected-height) - var(--mdw-icon__size)) / 2)}#control[fixed]{resize:none}`.autoRegister("mdw-textarea");var lo=Ft.extend().expressions({computeAriaLevel({ariaLevel:t,size:e}){return t||(e==="medium"?"5":e==="small"?"6":"4")}}).css`:host{font:var(--mdw-typescale__title-large__font);letter-spacing:var(--mdw-typescale__title-large__letter-spacing)}:host([size="medium"]){font:var(--mdw-typescale__title-medium__font);letter-spacing:var(--mdw-typescale__title-medium__letter-spacing)}:host([size="small"]){font:var(--mdw-typescale__title-small__font);letter-spacing:var(--mdw-typescale__title-small__letter-spacing)}`.autoRegister("mdw-title");var co=u.mixin(v).mixin(te).mixin(ze).mixin(ge).mixin(oe).extend().set({elevated:!0}).observe({headline:"string",_raised:"boolean",hideOnScroll:"boolean",size:{value:null},_cssPosition:{empty:"relative"},_visibleStart:{type:"float",default:0},_translateY:{type:"float",empty:0},_duration:{type:"float",empty:0},_easing:{empty:"ease-in"},_headlineOpacity:{type:"float",default:0},ariaLabel:"string",color:{empty:"surface"}}).observe({_scrollDirection:{changedCallback(t,e){if(e==="down"){if(this._cssPosition!=="sticky")return;this._cssPosition="relative",this._translateY=this.scrollListenerPositionY;return}this._visibleStart<1||(this._translateY=this.scrollListenerPositionY-this.refs.surface.scrollHeight)}},_surfaceStyle:{...ve,get({hideOnScroll:t,_cssPosition:e,_translateY:i,_duration:r,_easing:o}){return t?{target:"surface",styles:{position:e,transform:`translateY(${i}px)`},timing:{duration:r,easing:o}}:null}},_headlineStyle:{...ve,get({size:t,_headlineOpacity:e}){return t!=="medium"&&t!=="large"?null:{target:"headline",styles:{opacity:e??0},timing:{duration:200}}}}}).html`
|
|
109
|
+
`.on({composed(){let{shape:t,rippleContainer:e,state:i}=this.refs;t.append(i,e),i.setAttribute("state-disabled","focus")}}).events({keydown(t){t.key===" "&&(t.preventDefault(),this.refs.anchor.click())}}).childEvents({anchor:{click(t){if(this.disabledState){t.preventDefault(),t.stopPropagation();return}let{href:e}=this;if(!e){t.preventDefault();return}if(e.startsWith("#")){let i=document.querySelector(e);t.preventDefault(),i.scrollIntoView({block:"nearest",inline:"start"})}}}}).css`:host{display:inline-flex;min-inline-size:64px;cursor:pointer}#anchor{display:flex;align-items:center;flex-direction:column;justify-content:center;box-sizing:border-box;block-size:100%;inline-size:100%;flex:1;padding-block:6px;padding-inline:12px;cursor:pointer;outline:none;color:inherit;text-decoration:inherit}#icon{padding-block:4px;font-size:24px;font-variation-settings:"FILL" 0}#shape[disabled],#anchor[disabled]{cursor:not-allowed;background-color:rgba(var(--mdw-color__on-surface),.12);color:rgba(var(--mdw-color__on-surface),.38)}:host([active]){color:rgb(var(--mdw-ink))}#icon[active]{font-variation-settings:"FILL" 1}#slot{display:block;overflow-x:hidden;overflow-y:hidden;max-block-size:var(--mdw-typescale__title-small__line-height);max-inline-size:100%;cursor:inherit;outline:none;opacity:var(--mdw-nav-item__anchor__opacity, 1);transform:translateY(var(--mdw-nav-item__offset-y, 0));color:inherit;font:var(--mdw-typescale__title-small__font);letter-spacing:var(--mdw-typescale__title-small__letter-spacing);text-align:center;text-decoration:inherit;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:break-word;transition:opacity,color,transform .2s;will-change:opacity,transform}`.autoRegister("mdw-tab");var Bt=new Set,jt;function pt(t){return t.extend().observe({pageIsRTL:{type:"boolean",value:document.documentElement.dir==="rtl"}}).on({connected(){jt||(jt=new MutationObserver(()=>{let e=document.documentElement.dir==="rtl";for(let i of Bt)i.pageIsRTL=e}),jt.observe(document.documentElement,{attributeFilter:["dir"]})),Bt.add(this)},disconnected(){Bt.delete(this)}})}var Bi=new ResizeObserver(t=>{for(let e of t)e.target.onResizeObserved(e)});function oe(t){return t.extend().set({observeResizeOnConnected:!0}).methods({onResizeObserved(e){},observeResize(){Bi.observe(this)},unobserveResize(){Bi.unobserve(this)}}).on({connected(){this.observeResizeOnConnected&&this.observeResize()},disconnected(){this.unobserveResize()}})}var no=u.mixin(v).mixin(G).mixin(oe).mixin(pt).mixin(L).extend().set({_tabContentRef:null,_tabContentScrollListener:null,_tabCollection:null,_tabMetrics:null,_isRTL:null}).define({tabContent:{get(){return this._tabContentRef?.deref()},set(t){let e=this._tabContentRef?.deref();e&&e.removeEventListener("scroll",this._tabContentScrollListener),t?(this._tabContentRef=new WeakRef(t),this._tabContentScrollListener=this.observeTabContent.bind(this),t.addEventListener("scroll",this._tabContentScrollListener),this.observeTabContent()):this._tabContentRef=null}}}).observe({tabContentId:{changedCallback(t,e){this.tabContent=e?document.getElementById(e):null}},active:"boolean",secondary:"boolean",_indicatorStyle:{value:"opacity: 0"},color:{empty:"surface-primary"}}).define({tabs(){return this._tabCollection??=this.getElementsByTagName(Te.elementName)}}).observe({_selectedIndex:{type:"integer",empty:-1,changedCallback(t,e){this.active=e!==-1}}}).define({kbdNavQuery(){return Te.elementName},ariaOrientationDefault(){return"horizontal"},childTabItems(){return this.querySelectorAll(Te.elementName)},tabMetrics(){return this._tabMetrics??=[...this.tabs].map((t,e)=>({left:t.offsetLeft,width:t.offsetWidth,right:t.offsetLeft+t.offsetWidth,center:t.offsetLeft+t.offsetWidth/2,label:t.labelMetrics,index:e}))},selectedIndex:{get(){let t=0;for(let e of this.tabs){if(e.active)return t;t++}return-1},set(t){let e=0;for(let i of this.tabs)e===t?(i.active=!0,this._selectedIndex=e):i.active=!1,e++}}}).define({selectedItem:{get(){for(let t of this.tabs)if(t.active)return t;return null},set(t){let e=0;for(let i of this.tabs){if(i===t)return this.selectedIndex=e,t;e++}return null}}}).methods({clearCache(){this._tabMetrics=null},updateIndicatorByTab(t){t??=this.selectedItem??this.tabs.item(0);let e=this.secondary?t.clientWidth:t.labelMetrics.width,i=this.secondary?t.offsetLeft:t.offsetLeft+t.labelMetrics.left;this._indicatorStyle=`--width: ${e}; --offset: ${i}px`},updateIndicator(t=!1){this.updateIndicatorByTab(),t||this.refs.indicator.style.setProperty("--transition-ratio","0")},updateIndicatorByPosition(t){let e=this.tabMetrics,i=Math.min(Math.max(t,0),1),r=(e.length-1)*i,o=Math.floor(r),n=Math.ceil(r),a=e[o];if(!a)return;let s=e[n],l,c,m;if(a===s)l=this.secondary?a.width:a.label.width,c=this.tabs.item(o),m=a.center;else{let d=1-(r-o),p=1-d,h=d*(this.secondary?a.width:a.label.width),g=p*(this.secondary?s.width:s.label.width),f=d>p?o:n,x=s.center-a.center;l=h+g,c=this.tabs.item(f),m=a.center+x*p}if(!c.active){for(let d of this.tabs)d.active=d===c;this.active=!0}this._indicatorStyle=`--width: ${l}; --offset: ${m-l/2}px`,this.refs.indicator.style.setProperty("--transition-ratio","0")},updateIndicatorByIndex(t){this.updateIndicatorByTab(this.tabs.item(t??this._selectedIndex))},observeTabContent(){let t=this.tabContent;if(!t)return;let e=t.scrollLeft;this.pageIsRTL&&(e*=-1);let i=t.clientWidth,r=t.scrollWidth-i,o=r===0?0:e/r;this.updateIndicatorByPosition(o)},onResizeObserved(){this.clearCache(),this.updateIndicator()}}).set({ariaRole:"tablist"}).html`<slot id=slot ink={ink} type-style={typeStyle}></slot><div id=indicator aria-hidden=true style={_indicatorStyle} active={active} secondary={secondary}><div id=indicator-start class=indicator-piece></div><div id=indicator-center class=indicator-piece></div><div id=indicator-end class=indicator-piece></div></div>`.on({composed(){let{shape:t,indicator:e}=this.refs;t.append(e)},pageIsRTLChanged(){this.clearCache(),this.updateIndicator()},activeChanged(t,e){e&&this.updateIndicator()},secondaryChanged(){this.updateIndicator()},_selectedIndexChanged(t,e){this.updateIndicatorByIndex(e)}}).events({"~click"({target:t}){t!==this&&t instanceof Te}}).childEvents({slot:{slotchange(){this.clearCache(),this.updateIndicator()}}}).css`:host{--mdw-ink: var(--mdw-color__primary);--mdw-shape__bg: rgb(var(--mdw-color__surface));position:relative;position:sticky;inset-block-start:0;inset-inline:0;display:grid;align-items:stretch;grid-auto-columns:minmax(auto,1fr);grid-auto-flow:column;justify-content:space-evenly;overflow-y:hidden;box-sizing:border-box;min-block-size:48px;inline-size:100%;flex:none;color:inherit;text-align:center;will-change:transform}#indicator{--corner: 3;--width: 24;--offset: 0;--visibility: 0;--transition-ratio: 1;position:absolute;inset-block-end:0;inset-inline:0;overflow-y:clip;block-size:3px;inline-size:100%;pointer-events:none;opacity:1;transform:translateY(calc(100% * (1 - var(--visibility))));color:inherit;transition:transform .2s;will-change:transform}.indicator-piece{position:absolute;inset-block:0;opacity:1;transform-origin:0 0;z-index:1;background-color:currentColor;transition:transform;transition-duration:calc(.2s * var(--transition-ratio));will-change:transform}#indicator-start{left:0;inline-size:calc(2 * 1px * var(--corner));transform:translate(var(--offset));border-top-left-radius:calc(1px * var(--corner))}#indicator-center{--precision: 100;position:absolute;left:calc(1px * var(--corner));inline-size:calc(1px * var(--precision));transform:translate(var(--offset)) scaleX(calc((var(--width) - (2 * var(--corner))) / var(--precision)))}#indicator-end{position:absolute;left:0;inline-size:calc(2 * 1px * var(--corner));transform:translate(var(--offset)) translate(calc(-2px * var(--corner))) translate(calc(var(--width) * 1px));border-top-right-radius:calc(1px * var(--corner))}#indicator[active]{--visibility: 1;color:rgb(var(--mdw-ink))}#indicator[secondary]{--corner: 0}:host([scrollable]){grid-auto-columns:max-content;justify-content:flex-start;overflow-x:auto;padding-inline:48px}`.autoRegister("mdw-tab-list");var Ut=$.mixin(P).extend().set({_ariaRole:"tabpanel"}).observe({active:{type:"boolean",changedCallback(t,e){this.updateAriaProperty("ariaHidden",e?"false":"true")}},peeking:"boolean"}).css`:host{scroll-snap-align:center;min-inline-size:100%;max-inline-size:100%;min-block-size:100%;max-block-size:100%;overflow-y:auto;will-change:visibility;visibility:hidden}:host(:is([active],[peeking])){visibility:visible!important}`.autoRegister("mdw-tab-panel");var ao=u.mixin(oe).extend().set({_panelNodes:[],_panelMetrics:null}).observe({_selectedIndex:{type:"integer",empty:-1}}).define({panels(){return this._panelNodes},panelMetrics(){return this._panelMetrics??=[...this._panelNodes].map((t,e)=>({left:t.offsetLeft,width:t.offsetWidth,right:t.offsetLeft+t.offsetWidth,center:t.offsetLeft+t.offsetWidth/2,index:e}))}}).define({selectedIndex:{get(){let t=0;for(let e of this.panels){if(e.active)return t;t++}return-1},set(t){let e=0;for(let i of this.panels)e===t?(i.active=!0,this._selectedIndex=e):i.active=!1,e++}}}).define({selectedPanel:{get(){return this.panels.find(t=>t.active)},set(t){let e=this.panels.indexOf(t);return e===-1?null:(this.selectedIndex=e,t)}}}).html`<slot id=slot></slot>`.methods({onResizeObserved(){this._panelMetrics=null},updatePanels(){let t=this.scrollLeft,e=this.clientWidth,i=t+e;for(let r of this.panelMetrics){let n=(t>r.right||i<r.left?0:t>=r.left?r.right-t:i-r.left)/e,a=this.panels[r.index];a.active=n>=.5,a.peeking=n>0&&n<.5}}}).childEvents({slot:{slotchange(t){let e=t.currentTarget;this._panelNodes=e.assignedElements().filter(i=>i.tagName===Ut.elementName.toUpperCase()),this.updatePanels()}}}).events({scroll:"updatePanels"}).css`:host{display:grid;grid-auto-columns:100%;grid-auto-flow:column;grid-template-columns:100%;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none;flex-grow:1;-webkit-scroll-snap-type-x:mandatory;scroll-snap-type-x:mandatory;-webkit-scroll-snap-points-x:repeat(100%);scroll-snap-points-x:repeat(100%);overscroll-behavior-x:none;will-change:transform}`.autoRegister("mdw-tab-content");var ut={nullParser:String,value:""},so=u.mixin(v).mixin(R).mixin(_e).mixin(fe).mixin(oe).extend().set({supportsCSSLineHeightUnit:CSS.supports("height","1lh"),type:"textarea"}).overrides({controlTagName:"textarea",controlVoidElement:!1}).observe({fixed:{type:"boolean"},minRows:{attr:"minrows",type:"integer",nullable:!1},maxRows:{attr:"maxrows",type:"integer",nullable:!1},_lineHeight:"string",cols:{type:"integer",empty:0},dirName:{attr:"dirname",...ut},maxLength:{attr:"maxlength",type:"integer",empty:0},minLength:{attr:"minlength",type:"integer",empty:0},placeholder:ut,rows:{type:"integer",empty:1},wrap:ut,defaultValueAttr:{attr:"value",...ut}}).define({_textarea(){return this.refs.control}}).define({defaultValue:{get(){return this._textarea.defaultValue},set(t){let e=this._textarea.defaultValue;this._textarea.defaultValue=t;let i=this._textarea.defaultValue;e!==i&&this.propChangedCallback("defaultValue",e,i),this.textContent=this._textarea.defaultValue}},textLength(){return this._textarea.textLength},select(){return this._textarea.select},selectionDirection:{get(){return this._textarea.selectionDirection},set(t){this._textarea.selectionDirection=t}},selectionStart:{get(){return this._textarea.selectionStart},set(t){this._textarea.selectionStart=t}},selectionEnd:{get(){return this._textarea.selectionEnd},set(t){this._textarea.selectionEnd=t}},setRangeText(){return this._textarea.setRangeText},setSelectionRange(){return this._textarea.setSelectionRange}}).methods({resize(){let t=this._textarea;if(t.style.removeProperty("height"),!this.supportsCSSLineHeightUnit){let{lineHeight:e}=window.getComputedStyle(t);this._lineHeight=e}if(this.minRows>1&&t.rows<this.minRows?t.rows=this.minRows:this.maxRows&&t.rows>this.maxRows&&(t.rows=this.maxRows),!this.fixed){for(;t.scrollHeight>t.clientHeight&&!(this.maxRows&&t.rows===this.maxRows);){let e=t.clientHeight;if(t.rows++,e===t.clientHeight){t.rows--;break}}for(;t.scrollHeight===t.clientHeight&&!(t.rows===1||this.minRows>1&&t.rows===this.minRows);){let e=t.clientHeight;if(t.rows--,e===t.clientHeight||t.scrollHeight>t.clientHeight){t.rows++;break}}}return t.selectionEnd===t.value.length&&(t.scrollTop=t.scrollHeight),this.rows=t.rows,this.rows},onResizeObserved(t){this.matches(":active")||this.resize()}}).childEvents({slot:{slotchange({currentTarget:t}){let e=this.refs.control,i=e.defaultValue;e.replaceChildren(...t.assignedNodes().map(o=>o.cloneNode(!0)));let r=e.defaultValue;i!==r&&this.propChangedCallback("defaultValue",i,r)}},control:{input(){this.resize()}}}).on({composed(){let{control:t}=this.refs;t.removeAttribute("placeholder"),t.setAttribute("rows","{rows}"),t.setAttribute("input-prefix","{inputPrefix}"),t.setAttribute("input-suffix","{inputSuffix}"),t.setAttribute("fixed","{fixed}"),t.setAttribute("icon","{icon}")},defaultValueAttrChanged(t,e){this.defaultValue=e},defaultValueChanged(){this._value=this._textarea.value,this.resize()},_lineHeightChanged(t,e){this.refs.label.style.setProperty("--line-height",e)},minRowsChanged(t,e){this.refs.label.style.setProperty("--min-rows",`${e||"none"}`),this.resize()},maxRowsChanged(t,e){this.refs.label.style.setProperty("--max-rows",`${e||"none"}`),this.resize()},rowsChanged(){this.resize()},_formResetChanged(t,e){e&&(this._textarea.value=this.defaultValue,this._value=this._textarea.value)},attrs:{cols:T("cols","control"),dirname:T("dirname","control"),minlength:T("minlength","control"),maxlength:T("maxlength","control"),placeholder:T("placeholder","control"),minrows:T("minrows","control"),maxrows:T("maxrows","control")}}).css`:host{display:inline-grid;grid-auto-flow:row;grid-template-rows:minmax(0,100%)}:host(:is([filled][label])){--control__margin-top: calc((var(--mdw-text-field__ratio) * 8px) + var(--mdw-typescale__body-small__line-height));--control__padding-top: 0px;--control__padding-bottom: calc((var(--mdw-text-field__ratio) * 8px) - 1px);--control__margin-bottom: 1px}#label{--max-rows: none;--line-height: var(--mdw-typescale__body-large__line-height);--expected-height: calc(var(--line-height) + var(--control__margin-top) + var(--control__padding-top) + var(--control__padding-bottom) + var(--control__margin-bottom));max-block-size:100%;grid-row:1 / 1;padding:0}@supports (height: 1lh){#label{--line-height: 1lh}}#slot{display:none}#control{-ms-overflow-style:-ms-autohiding-scrollbar;overflow-y:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;block-size:100%;min-block-size:var(--expected-height);max-block-size:inherit;inline-size:100%!important;padding-inline:16px}#control[icon]{padding-inline-start:0}#control[minrows]{min-block-size:calc((var(--min-rows) * var(--line-height)) + var(--control__margin-top) + var(--control__padding-top) + var(--control__padding-bottom) + var(--control__margin-bottom))}#control[maxrows]{max-block-size:calc((var(--max-rows) * var(--line-height)) + var(--control__margin-top) + var(--control__padding-top) + var(--control__padding-bottom) + var(--control__margin-bottom))}#control:is([icon],[input-prefix]){padding-inline-start:0}#control:is([trailing-icon],[input-suffix]){padding-inline-end:0}#suffix{padding-inline-end:16px}mdw-icon{align-self:flex-start;margin-block-start:calc((var(--expected-height) - var(--mdw-icon__size)) / 2)}#control[fixed]{resize:none}`.autoRegister("mdw-textarea");var lo=Ft.extend().expressions({computeAriaLevel({ariaLevel:t,size:e}){return t||(e==="medium"?"5":e==="small"?"6":"4")}}).css`:host{font:var(--mdw-typescale__title-large__font);letter-spacing:var(--mdw-typescale__title-large__letter-spacing)}:host([size="medium"]){font:var(--mdw-typescale__title-medium__font);letter-spacing:var(--mdw-typescale__title-medium__letter-spacing)}:host([size="small"]){font:var(--mdw-typescale__title-small__font);letter-spacing:var(--mdw-typescale__title-small__letter-spacing)}`.autoRegister("mdw-title");var co=u.mixin(v).mixin(te).mixin(ze).mixin(ge).mixin(oe).extend().set({elevated:!0}).observe({headline:"string",_raised:"boolean",hideOnScroll:"boolean",size:{value:null},_cssPosition:{empty:"relative"},_visibleStart:{type:"float",default:0},_translateY:{type:"float",empty:0},_duration:{type:"float",empty:0},_easing:{empty:"ease-in"},_headlineOpacity:{type:"float",default:0},ariaLabel:"string",color:{empty:"surface"}}).observe({_scrollDirection:{changedCallback(t,e){if(e==="down"){if(this._cssPosition!=="sticky")return;this._cssPosition="relative",this._translateY=this.scrollListenerPositionY;return}this._visibleStart<1||(this._translateY=this.scrollListenerPositionY-this.refs.surface.scrollHeight)}},_surfaceStyle:{...ve,get({hideOnScroll:t,_cssPosition:e,_translateY:i,_duration:r,_easing:o}){return t?{target:"surface",styles:{position:e,transform:`translateY(${i}px)`},timing:{duration:r,easing:o}}:null}},_headlineStyle:{...ve,get({size:t,_headlineOpacity:e}){return t!=="medium"&&t!=="large"?null:{target:"headline",styles:{opacity:e??0},timing:{duration:200}}}}}).html`
|
|
110
110
|
<slot id=leading name=leading on-slotchange={refreshTabIndexes}></slot>
|
|
111
111
|
<div id=headline ink={ink} color={color} type-style={typeStyle} on-slotchange={refreshTabIndexes}>
|
|
112
112
|
{headline}
|
|
@@ -117,7 +117,7 @@ var vi=Object.defineProperty;var cr=(t,e,i)=>e in t?vi(t,e,{enumerable:!0,config
|
|
|
117
117
|
<div _if={showSurfaceTint} id=companion-tint raised={_raised} class=surface-tint color={color}></div>
|
|
118
118
|
<slot id=companion-slot name=companion size={size}>{headline}</span>
|
|
119
119
|
</div>
|
|
120
|
-
`.on({composed({inline:t}){let{surface:e,leading:i,headline:r,trailing:o}=this.refs;e.append(i,r,o),e.setAttribute("size","{size}"),e.setAttribute("hide-on-scroll","{hideOnScroll}"),e.setAttribute("role","toolbar"),e.setAttribute("aria-label","{ariaLabel}"),e.setAttribute("aria-labelledby",t(({ariaLabel:n})=>n?null:"headline"))},scrollListenerPositionYChanged(t,e){if(this._raised=e>0,this.size==="medium"||this.size==="large"){let i=this.refs.companion.scrollHeight,r=.5*i;this._headlineOpacity=Math.max(0,Math.min(1,(e-r)/(i-r)))}this.hideOnScroll&&(this._duration=0,e<=0?(this._cssPosition="relative",this._translateY=0,this._visibleStart=0):e<this._translateY?(this._cssPosition="sticky",this._translateY=0,this._visibleStart=0):this._cssPosition!=="sticky"&&(this._visibleStart=(e-this._translateY)/this.refs.surface.scrollHeight),this._scrollDirection=e>t?"down":"up")}}).methods({onScrollIdle(){let t=this._visibleStart;this._headlineOpacity>0&&(this._headlineOpacity=1),!(t<=0)&&(t>=1||this.scrollListenerPositionY<this.refs.surface.scrollHeight||(t<=.5?(this._duration=250,this._easing="ease-in",this._cssPosition="relative",this._translateY=this.scrollListenerPositionY,this._headlineOpacity=1):(this._duration=200,this._easing="ease-out",this._cssPosition="relative",this._translateY=this.scrollListenerPositionY-this.refs.surface.scrollHeight)))}}).define({ariaActiveDescendantElement:{get(){return this.refs.surface.ariaActiveDescendantElement},set(t){this.refs.surface.ariaActiveDescendantElement=t}}}).on({connected(){let{surface:t}=this.refs;if(t.offsetParent)this.startScrollListener(t.offsetParent??window);else{let e=new ResizeObserver(()=>{this.startScrollListener(t.offsetParent??window),e.disconnect()});e.observe(t)}},disconnected(){this.clearScrollListener()}}).css`:host{--mdw-bg: var(--mdw-color__surface);--mdw-ink: var(--mdw-color__on-surface);--mdw-surface__tint: var(--mdw-surface__tint__0);--mdw-surface__tint__raised: var(--mdw-surface__tint__2);display:contents;z-index:2}#surface{position:sticky;inset-block-start:0;display:grid;align-items:center;gap:12px;grid-auto-flow:row;grid-template-rows:minmax(64px,min-content);grid-template-columns:minmax(auto,1fr) minmax(0,auto) minmax(auto,1fr);overflow-x:clip;overflow-y:visible;box-sizing:border-box;inline-size:100%;max-inline-size:100%;padding-inline:4px;pointer-events:auto;filter:none;z-index:5;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:grid-template-columns .1s}#surface-tint{position:0;z-index:1}#leading{justify-self:flex-start;display:flex;align-items:center;grid-column:1;grid-row:1}#headline{display:inline-block;overflow:clip hidden;max-inline-size:100%;grid-column:2;grid-row:1;font:var(--mdw-typescale__title-large__font);letter-spacing:var(--mdw-typescale__title-large__letter-spacing);text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:break-word;transition-duration:.2s;transition-property:transform,opacity,color,background-color}#trailing{justify-self:flex-end;display:flex;align-items:center;gap:8px;justify-content:flex-end;grid-column:3;grid-row:1;color:var(--mdw-color__on-surface-variant)}#companion{position:relative;display:flex;align-items:flex-end;margin-block-start:calc(28px - var(--mdw-typescale__headline-small__line-height));padding-block-end:20px;padding-inline:16px;background-color:rgb(var(--mdw-bg));box-shadow:none;font:var(--mdw-typescale__headline-small__font);letter-spacing:var(--mdw-typescale__headline-small__letter-spacing);white-space:nowrap}#companion[size=large]{min-block-size:calc(2 * var(--mdw-typescale__headline-medium__line-height));margin-block-start:calc(68px - (2 * var(--mdw-typescale__headline-medium__line-height)));font:var(--mdw-typescale__headline-medium__font);letter-spacing:var(--mdw-typescale__headline-medium__letter-spacing);white-space:normal}@supports (width: 1lh){#companion{margin-block-start:calc(28px - 1lh)}#companion[size=large]{min-block-size:2lh;margin-block-start:calc(68px - 2lh)}}#companion-slot{display:block;overflow-x:clip;overflow-y:hidden;text-overflow:ellipsis;text-transform:none;word-break:break-word}#companion-slot[size=large]{max-block-size:calc(2 * var(--mdw-typescale__headline-medium__line-height))}@supports (-webkit-line-clamp: 2){#companion-slot[size=large]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-block-size:none}}#surface[hide-on-scroll]{position:relative;inset-block-start:0;transform:translateY(0);will-change:transform,position}#surface[size=small]{gap:4px;grid-template-columns:auto 1fr auto}#headline:is([size="medium"],[size="large"]){opacity:0;will-change:opacity}`.autoRegister("mdw-top-app-bar");var tr={};var ui={};dr(ui,{generateColorCSS:()=>wt,generateShapeCSS:()=>di,generateThemeCSS:()=>pi,generateTypographyCSS:()=>li,generateTypographyGlobalCSS:()=>ci,setupTheme:()=>Fo,themeOptionsFromSearchParams:()=>mi});var je=new Map([["black","#000000"],["silver","#c0c0c0"],["gray","#808080"],["white","#ffffff"],["maroon","#800000"],["red","#ff0000"],["purple","#800080"],["fuchsia","#ff00ff"],["green","#008000"],["lime","#00ff00"],["olive","#808000"],["yellow","#ffff00"],["navy","#000080"],["blue","#0000ff"],["teal","#008080"],["aqua","#00ffff"],["orange","#ffa500"],["aliceblue","#f0f8ff"],["antiquewhite","#faebd7"],["aquamarine","#7fffd4"],["azure","#f0ffff"],["beige","#f5f5dc"],["bisque","#ffe4c4"],["blanchedalmond","#ffebcd"],["blueviolet","#8a2be2"],["brown","#a52a2a"],["burlywood","#deb887"],["cadetblue","#5f9ea0"],["chartreuse","#7fff00"],["chocolate","#d2691e"],["coral","#ff7f50"],["cornflowerblue","#6495ed"],["cornsilk","#fff8dc"],["crimson","#dc143c"],["cyan","00ffff"],["darkblue","#00008b"],["darkcyan","#008b8b"],["darkgoldenrod","#b8860b"],["darkgray","#a9a9a9"],["darkgreen","#006400"],["darkgrey","#a9a9a9"],["darkkhaki","#bdb76b"],["darkmagenta","#8b008b"],["darkolivegreen","#556b2f"],["darkorange","#ff8c00"],["darkorchid","#9932cc"],["darkred","#8b0000"],["darksalmon","#e9967a"],["darkseagreen","#8fbc8f"],["darkslateblue","#483d8b"],["darkslategray","#2f4f4f"],["darkslategrey","#2f4f4f"],["darkturquoise","#00ced1"],["darkviolet","#9400d3"],["deeppink","#ff1493"],["deepskyblue","#00bfff"],["dimgray","#696969"],["dimgrey","#696969"],["dodgerblue","#1e90ff"],["firebrick","#b22222"],["floralwhite","#fffaf0"],["forestgreen","#228b22"],["gainsboro","#dcdcdc"],["ghostwhite","#f8f8ff"],["gold","#ffd700"],["goldenrod","#daa520"],["greenyellow","#adff2f"],["grey","#808080"],["honeydew","#f0fff0"],["hotpink","#ff69b4"],["indianred","#cd5c5c"],["indigo","#4b0082"],["ivory","#fffff0"],["khaki","#f0e68c"],["lavender","#e6e6fa"],["lavenderblush","#fff0f5"],["lawngreen","#7cfc00"],["lemonchiffon","#fffacd"],["lightblue","#add8e6"],["lightcoral","#f08080"],["lightcyan","#e0ffff"],["lightgoldenrodyellow","#fafad2"],["lightgray","#d3d3d3"],["lightgreen","#90ee90"],["lightgrey","#d3d3d3"],["lightpink","#ffb6c1"],["lightsalmon","#ffa07a"],["lightseagreen","#20b2aa"],["lightskyblue","#87cefa"],["lightslategray","#778899"],["lightslategrey","#778899"],["lightsteelblue","#b0c4de"],["lightyellow","#ffffe0"],["limegreen","#32cd32"],["linen","#faf0e6"],["magenta","#ff00ff"],["mediumaquamarine","#66cdaa"],["mediumblue","#0000cd"],["mediumorchid","#ba55d3"],["mediumpurple","#9370db"],["mediumseagreen","#3cb371"],["mediumslateblue","#7b68ee"],["mediumspringgreen","#00fa9a"],["mediumturquoise","#48d1cc"],["mediumvioletred","#c71585"],["midnightblue","#191970"],["mintcream","#f5fffa"],["mistyrose","#ffe4e1"],["moccasin","#ffe4b5"],["navajowhite","#ffdead"],["oldlace","#fdf5e6"],["olivedrab","#6b8e23"],["orangered","#ff4500"],["orchid","#da70d6"],["palegoldenrod","#eee8aa"],["palegreen","#98fb98"],["paleturquoise","#afeeee"],["palevioletred","#db7093"],["papayawhip","#ffefd5"],["peachpuff","#ffdab9"],["peru","#cd853f"],["pink","#ffc0cb"],["plum","#dda0dd"],["powderblue","#b0e0e6"],["rosybrown","#bc8f8f"],["royalblue","#4169e1"],["saddlebrown","#8b4513"],["salmon","#fa8072"],["sandybrown","#f4a460"],["seagreen","#2e8b57"],["seashell","#fff5ee"],["sienna","#a0522d"],["skyblue","#87ceeb"],["slateblue","#6a5acd"],["slategray","#708090"],["slategrey","#708090"],["snow","#fffafa"],["springgreen","#00ff7f"],["steelblue","#4682b4"],["tan","#d2b48c"],["thistle","#d8bfd8"],["tomato","#ff6347"],["turquoise","#40e0d0"],["violet","#ee82ee"],["wheat","#f5deb3"],["whitesmoke","#f5f5f5"],["yellowgreen","#9acd32"],["rebeccapurple","#663399"]]);function ne(t){return t<0?-1:t===0?0:1}function Xt(t,e,i){return(1-i)*t+i*e}function ji(t,e,i){return i<t?t:i>e?e:i}function Ue(t){return t%=360,t<0&&(t+=360),t}function Ui(t,e){return Ue(e-t)<=180?1:-1}function Xi(t,e){return 180-Math.abs(Math.abs(t-e)-180)}function Xe(t,e){let i=t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],r=t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],o=t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2];return[i,r,o]}var mo=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],po=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],uo=[95.047,100,108.883];function Wt(t,e,i){return(255<<24|(t&255)<<16|(e&255)<<8|i&255)>>>0}function qt(t){let e=ye(t[0]),i=ye(t[1]),r=ye(t[2]);return Wt(e,i,r)}function Gt(t){return t>>16&255}function Kt(t){return t>>8&255}function Jt(t){return t&255}function Wi(t,e,i){let r=po,o=r[0][0]*t+r[0][1]*e+r[0][2]*i,n=r[1][0]*t+r[1][1]*e+r[1][2]*i,a=r[2][0]*t+r[2][1]*e+r[2][2]*i,s=ye(o),l=ye(n),c=ye(a);return Wt(s,l,c)}function _o(t){let e=xe(Gt(t)),i=xe(Kt(t)),r=xe(Jt(t));return Xe([e,i,r],mo)}function qi(t){let e=Ie(t),i=ye(e);return Wt(i,i,i)}function Qt(t){let e=_o(t)[1];return 116*ho(e/100)-16}function Ie(t){return 100*fo((t+16)/116)}function xe(t){let e=t/255;return e<=.040449936?e/12.92*100:((e+.055)/1.055)**2.4*100}function ye(t){let e=t/100,i=0;return i=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,ji(0,255,Math.round(i*255))}function Gi(){return uo}function ho(t){let e=.008856451679035631,i=24389/27;return t>e?t**(1/3):(i*t+16)/116}function fo(t){let e=.008856451679035631,i=24389/27,r=t*t*t;return r>e?r:(116*t-16)/i}var _t=class{static make(e=Gi(),i=200/Math.PI*Ie(50)/100,r=50,o=2,n=!1){let a=e,s=a[0]*.401288+a[1]*.650173+a[2]*-.051461,l=a[0]*-.250268+a[1]*1.204414+a[2]*.045854,c=a[0]*-.002079+a[1]*.048952+a[2]*.953127,m=.8+o/10,d=m>=.9?Xt(.59,.69,(m-.9)*10):Xt(.525,.59,(m-.8)*10),p=n?1:m*(1-1/3.6*Math.exp((-i-42)/92));p=p>1?1:p<0?0:p;let h=m,g=[p*(100/s)+1-p,p*(100/l)+1-p,p*(100/c)+1-p],f=1/(5*i+1),x=f*f*f*f,A=1-x,b=x*i+.1*A*A*Math.cbrt(5*i),_=Ie(r)/e[1],y=1.48+Math.sqrt(_),E=.725/_**.2,z=E,k=[(b*g[0]*s/100)**.42,(b*g[1]*l/100)**.42,(b*g[2]*c/100)**.42],M=[400*k[0]/(k[0]+27.13),400*k[1]/(k[1]+27.13),400*k[2]/(k[2]+27.13)],S=(2*M[0]+M[1]+.05*M[2])*E;return new _t(_,S,E,z,d,h,g,b,b**.25,y)}constructor(e,i,r,o,n,a,s,l,c,m){this.n=e,this.aw=i,this.nbb=r,this.ncb=o,this.c=n,this.nc=a,this.rgbD=s,this.fl=l,this.fLRoot=c,this.z=m}},Q=_t;T(Q,"DEFAULT",_t.make());var q=class{constructor(e,i,r,o,n,a,s,l,c){this.hue=e,this.chroma=i,this.j=r,this.q=o,this.m=n,this.s=a,this.jstar=s,this.astar=l,this.bstar=c}distance(e){let i=this.jstar-e.jstar,r=this.astar-e.astar,o=this.bstar-e.bstar;return 1.41*Math.sqrt(i*i+r*r+o*o)**.63}static fromInt(e){return q.fromIntInViewingConditions(e,Q.DEFAULT)}static fromIntInViewingConditions(e,i){let r=(e&16711680)>>16,o=(e&65280)>>8,n=e&255,a=xe(r),s=xe(o),l=xe(n),c=.41233895*a+.35762064*s+.18051042*l,m=.2126*a+.7152*s+.0722*l,d=.01932141*a+.11916382*s+.95034478*l,p=.401288*c+.650173*m-.051461*d,h=-.250268*c+1.204414*m+.045854*d,g=-.002079*c+.048952*m+.953127*d,f=i.rgbD[0]*p,x=i.rgbD[1]*h,A=i.rgbD[2]*g,b=(i.fl*Math.abs(f)/100)**.42,_=(i.fl*Math.abs(x)/100)**.42,y=(i.fl*Math.abs(A)/100)**.42,E=ne(f)*400*b/(b+27.13),z=ne(x)*400*_/(_+27.13),k=ne(A)*400*y/(y+27.13),M=(11*E+-12*z+k)/11,S=(E+z-2*k)/9,D=(20*E+20*z+21*k)/20,J=(40*E+20*z+k)/20,U=Math.atan2(S,M)*180/Math.PI,Le=U<0?U+360:U>=360?U-360:U,hi=Le*Math.PI/180,Pe=100*(J*i.nbb/i.aw)**(i.c*i.z),ir=4/i.c*Math.sqrt(Pe/100)*(i.aw+4)*i.fLRoot,rr=Le<20.14?Le+360:Le,or=.25*(Math.cos(rr*Math.PI/180+2)+3.8),fi=(5e4/13*or*i.nc*i.ncb*Math.sqrt(M*M+S*S)/(D+.305))**.9*(1.64-.29**i.n)**.73,bi=fi*Math.sqrt(Pe/100),gi=bi*i.fLRoot,nr=50*Math.sqrt(fi*i.c/(i.aw+4)),ar=(1+100*.007)*Pe/(1+.007*Pe),wi=1/.0228*Math.log(1+.0228*gi),sr=wi*Math.cos(hi),lr=wi*Math.sin(hi);return new q(Le,bi,Pe,ir,gi,nr,ar,sr,lr)}static fromJch(e,i,r){return q.fromJchInViewingConditions(e,i,r,Q.DEFAULT)}static fromJchInViewingConditions(e,i,r,o){let n=4/o.c*Math.sqrt(e/100)*(o.aw+4)*o.fLRoot,a=i*o.fLRoot,s=i/Math.sqrt(e/100),l=50*Math.sqrt(s*o.c/(o.aw+4)),c=r*Math.PI/180,m=(1+100*.007)*e/(1+.007*e),d=1/.0228*Math.log(1+.0228*a),p=d*Math.cos(c),h=d*Math.sin(c);return new q(r,i,e,n,a,l,m,p,h)}static fromUcs(e,i,r){return q.fromUcsInViewingConditions(e,i,r,Q.DEFAULT)}static fromUcsInViewingConditions(e,i,r,o){let n=i,a=r,s=Math.sqrt(n*n+a*a),c=(Math.exp(s*.0228)-1)/.0228/o.fLRoot,m=Math.atan2(a,n)*(180/Math.PI);m<0&&(m+=360);let d=e/(1-(e-100)*.007);return q.fromJchInViewingConditions(d,c,m,o)}toInt(){return this.viewed(Q.DEFAULT)}viewed(e){let r=((this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100))/(1.64-.29**e.n)**.73)**(1/.9),o=this.hue*Math.PI/180,n=.25*(Math.cos(o+2)+3.8),a=e.aw*(this.j/100)**(1/e.c/e.z),s=n*(5e4/13)*e.nc*e.ncb,l=a/e.nbb,c=Math.sin(o),m=Math.cos(o),d=23*(l+.305)*r/(23*s+11*r*m+108*r*c),p=d*m,h=d*c,g=(460*l+451*p+288*h)/1403,f=(460*l-891*p-261*h)/1403,x=(460*l-220*p-6300*h)/1403,A=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),b=ne(g)*(100/e.fl)*A**(1/.42),_=Math.max(0,27.13*Math.abs(f)/(400-Math.abs(f))),y=ne(f)*(100/e.fl)*_**(1/.42),E=Math.max(0,27.13*Math.abs(x)/(400-Math.abs(x))),z=ne(x)*(100/e.fl)*E**(1/.42),k=b/e.rgbD[0],M=y/e.rgbD[1],S=z/e.rgbD[2],D=1.86206786*k-1.01125463*M+.14918677*S,J=.38752654*k+.62144744*M-.00897398*S,Z=-.0158415*k-.03412294*M+1.04996444*S;return Wi(D,J,Z)}};var bo=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]],go=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],Re=[.2126,.7152,.0722],wo=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];function Ki(t){return(t+Math.PI*8)%(Math.PI*2)}function ht(t){let e=t/100,i=0;return i=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,i*255}function Zt(t){let e=Math.abs(t)**.42;return ne(t)*400*e/(e+27.13)}function ii(t){let e=Xe(t,bo),i=Zt(e[0]),r=Zt(e[1]),o=Zt(e[2]),n=(11*i+-12*r+o)/11,a=(i+r-2*o)/9;return Math.atan2(a,n)}function ri(t,e,i){let r=Ki(e-t),o=Ki(i-t);return r<o}function vo(t,e,i){return(e-t)/(i-t)}function xo(t,e,i){return[t[0]+(i[0]-t[0])*e,t[1]+(i[1]-t[1])*e,t[2]+(i[2]-t[2])*e]}function yo(t,e,i,r){let o=vo(t[r],e,i[r]);return xo(t,o,i)}function ei(t){return t>=0&&t<=100}function ko(t,e){let i=Re[0],r=Re[1],o=Re[2],n=e%4<=1?0:100,a=e%2===0?0:100;if(e<4){let m=n,d=a,p=(t-m*r-d*o)/i;return ei(p)?[p,m,d]:[-1,-1,-1]}if(e<8){let m=n,d=a,p=(t-d*i-m*o)/r;return ei(p)?[d,p,m]:[-1,-1,-1]}let s=n,l=a,c=(t-s*i-l*r)/o;return ei(c)?[s,l,c]:[-1,-1,-1]}function So(t,e){let i=[-1,-1,-1],r=i,o=0,n=0,a=!1,s=!0;for(let l=0;l<12;l++){let c=ko(t,l);if(c[0]<0)continue;let m=ii(c);if(!a){i=c,r=c,o=m,n=m,a=!0;continue}(s||ri(o,m,n))&&(s=!1,ri(o,e,m)?(r=c,n=m):(i=c,o=m))}return[i,r]}function zo(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2,(t[2]+e[2])/2]}function Ji(t){return Math.floor(t-.5)}function Qi(t){return Math.ceil(t-.5)}function Co(t,e){let i=So(t,e),r=i[0],o=ii(r),n=i[1];for(let a=0;a<3;a++)if(r[a]!==n[a]){let s=-1,l=255;r[a]<n[a]?(s=Ji(ht(r[a])),l=Qi(ht(n[a]))):(s=Qi(ht(r[a])),l=Ji(ht(n[a])));for(let c=0;c<8&&!(Math.abs(l-s)<=1);c++){let m=Math.floor((s+l)/2),d=wo[m],p=yo(r,d,n,a),h=ii(p);ri(o,e,h)?(n=p,l=m):(r=p,o=h,s=m)}}return zo(r,n)}function ti(t){let e=Math.abs(t),i=Math.max(0,27.13*e/(400-e));return ne(t)*i**(1/.42)}function Ao(t,e,i){let r=Math.sqrt(i)*11,o=Q.DEFAULT,n=1/(1.64-.29**o.n)**.73,s=.25*(Math.cos(t+2)+3.8)*(5e4/13)*o.nc*o.ncb,l=Math.sin(t),c=Math.cos(t);for(let m=0;m<5;m++){let d=r/100,h=((e===0||r===0?0:e/Math.sqrt(d))*n)**(1/.9),f=o.aw*d**(1/o.c/o.z)/o.nbb,x=23*(f+.305)*h/(23*s+11*h*c+108*h*l),A=x*c,b=x*l,_=(460*f+451*A+288*b)/1403,y=(460*f-891*A-261*b)/1403,E=(460*f-220*A-6300*b)/1403,z=ti(_),k=ti(y),M=ti(E),S=Xe([z,k,M],go);if(S[0]<0||S[1]<0||S[2]<0)return 0;let D=Re[0],J=Re[1],Z=Re[2],U=D*S[0]+J*S[1]+Z*S[2];if(U<=0)return 0;if(m===4||Math.abs(U-i)<.002)return S[0]>100.01||S[1]>100.01||S[2]>100.01?0:qt(S);r-=(U-i)*r/(2*U)}return 0}function Ge(t,e,i){if(e<1e-4||i<1e-4||i>99.9999)return qi(i);t=Ue(t);let r=t/180*Math.PI,o=Ie(i),n=Ao(r,e,o);if(n!==0)return n;let a=Co(o,r);return qt(a)}var N=class{internalHue;internalChroma;internalTone;static from(e,i,r){return new N(Ge(e,i,r))}static fromInt(e){return new N(e)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(e){this.setInternalState(Ge(e,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(e){this.setInternalState(Ge(this.internalHue,e,this.internalTone))}get tone(){return this.internalTone}set tone(e){this.setInternalState(Ge(this.internalHue,this.internalChroma,e))}constructor(e){let i=q.fromInt(e);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=Qt(e),this.argb=e}setInternalState(e){let i=q.fromInt(e);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=Qt(e),this.argb=e}};var F=class{#e=new Map;static fromInt(e){let i=N.fromInt(e);return F.fromHueAndChroma(i.hue,i.chroma)}static fromHueAndChroma(e,i){return new F(e,i)}constructor(e,i){this.hue=e,this.chroma=i}tone(e){let i=this.#e.get(e);return i===void 0&&(i=N.from(this.hue,this.chroma,e).toInt(),this.#e.set(e,i)),i}};var j=class{a1;a2;a3;n1;n2;error;static of(e){return new j(e,!1)}static contentOf(e){return new j(e,!0)}constructor(e,i){let r=N.fromInt(e),{hue:o}=r,{chroma:n}=r;i?(this.a1=F.fromHueAndChroma(o,n),this.a2=F.fromHueAndChroma(o,n/3),this.a3=F.fromHueAndChroma(o+60,n/2),this.n1=F.fromHueAndChroma(o,Math.min(n/12,4)),this.n2=F.fromHueAndChroma(o,Math.min(n/6,8))):(this.a1=F.fromHueAndChroma(o,Math.max(48,n)),this.a2=F.fromHueAndChroma(o,16),this.a3=F.fromHueAndChroma(o+60,24),this.n1=F.fromHueAndChroma(o,4),this.n2=F.fromHueAndChroma(o,8)),this.error=F.fromHueAndChroma(25,84)}};var Ke,oi,Je,ni,de=class{constructor(e,i,r,o,n,a,s,l,c,m,d,p,h,g,f,x,A,b,_,y,E,z,k,M,S,D,J,Z,U){this.primary=e,this.onPrimary=i,this.primaryContainer=r,this.onPrimaryContainer=o,this.secondary=n,this.onSecondary=a,this.secondaryContainer=s,this.onSecondaryContainer=l,this.tertiary=c,this.onTertiary=m,this.tertiaryContainer=d,this.onTertiaryContainer=p,this.error=h,this.onError=g,this.errorContainer=f,this.onErrorContainer=x,this.background=A,this.onBackground=b,this.surface=_,this.onSurface=y,this.surfaceVariant=E,this.onSurfaceVariant=z,this.outline=k,this.outlineVariant=M,this.shadow=S,this.scrim=D,this.inverseSurface=J,this.inverseOnSurface=Z,this.inversePrimary=U}static light(e){var i;return Fe(i=de,Ke,oi).call(i,j.of(e))}static dark(e){var i;return Fe(i=de,Je,ni).call(i,j.of(e))}static lightContent(e){var i;return Fe(i=de,Ke,oi).call(i,j.contentOf(e))}static darkContent(e){var i;return Fe(i=de,Je,ni).call(i,j.contentOf(e))}withPrimary(e){return this.primary=e,this}withOnPrimary(e){return this.onPrimary=e,this}withPrimaryContainer(e){return this.primaryContainer=e,this}withOnPrimaryContainer(e){return this.onPrimaryContainer=e,this}withSecondary(e){return this.secondary=e,this}withOnSecondary(e){return this.onSecondary=e,this}withSecondaryContainer(e){return this.secondaryContainer=e,this}withOnSecondaryContainer(e){return this.onSecondaryContainer=e,this}withTertiary(e){return this.tertiary=e,this}withOnTertiary(e){return this.onTertiary=e,this}withTertiaryContainer(e){return this.tertiaryContainer=e,this}withOnTertiaryContainer(e){return this.onTertiaryContainer=e,this}withError(e){return this.error=e,this}withOnError(e){return this.onError=e,this}withErrorContainer(e){return this.errorContainer=e,this}withOnErrorContainer(e){return this.onErrorContainer=e,this}withBackground(e){return this.background=e,this}withOnBackground(e){return this.onBackground=e,this}withSurface(e){return this.surface=e,this}withOnSurface(e){return this.onSurface=e,this}withSurfaceVariant(e){return this.surfaceVariant=e,this}withOnSurfaceVariant(e){return this.onSurfaceVariant=e,this}withOutline(e){return this.outline=e,this}withOutlineVariant(e){return this.outlineVariant=e,this}withShadow(e){return this.shadow=e,this}withScrim(e){return this.scrim=e,this}withInverseSurface(e){return this.inverseSurface=e,this}withInverseOnSurface(e){return this.inverseOnSurface=e,this}withInversePrimary(e){return this.inversePrimary=e,this}equals(e){if(this===e)return!0;if(!(e instanceof de))return!1;let i=e;return!(this.primary!==i.primary||this.onPrimary!==i.onPrimary||this.primaryContainer!==i.primaryContainer||this.onPrimaryContainer!==i.onPrimaryContainer||this.secondary!==i.secondary||this.onSecondary!==i.onSecondary||this.secondaryContainer!==i.secondaryContainer||this.onSecondaryContainer!==i.onSecondaryContainer||this.tertiary!==i.tertiary||this.onTertiary!==i.onTertiary||this.tertiaryContainer!==i.tertiaryContainer||this.onTertiaryContainer!==i.onTertiaryContainer||this.error!==i.error||this.onError!==i.onError||this.errorContainer!==i.errorContainer||this.onErrorContainer!==i.onErrorContainer||this.background!==i.background||this.onBackground!==i.onBackground||this.surface!==i.surface||this.onSurface!==i.onSurface||this.surfaceVariant!==i.surfaceVariant||this.onSurfaceVariant!==i.onSurfaceVariant||this.outline!==i.outline||this.outlineVariant!==i.outlineVariant||this.shadow!==i.shadow||this.scrim!==i.scrim||this.inverseSurface!==i.inverseSurface||this.inverseOnSurface!==i.inverseOnSurface||this.inversePrimary!==i.inversePrimary)}},ae=de;Ke=new WeakSet,oi=function(e){return new de().withPrimary(e.a1.tone(40)).withOnPrimary(e.a1.tone(100)).withPrimaryContainer(e.a1.tone(90)).withOnPrimaryContainer(e.a1.tone(10)).withSecondary(e.a2.tone(40)).withOnSecondary(e.a2.tone(100)).withSecondaryContainer(e.a2.tone(90)).withOnSecondaryContainer(e.a2.tone(10)).withTertiary(e.a3.tone(40)).withOnTertiary(e.a3.tone(100)).withTertiaryContainer(e.a3.tone(90)).withOnTertiaryContainer(e.a3.tone(10)).withError(e.error.tone(40)).withOnError(e.error.tone(100)).withErrorContainer(e.error.tone(90)).withOnErrorContainer(e.error.tone(10)).withBackground(e.n1.tone(99)).withOnBackground(e.n1.tone(10)).withSurface(e.n1.tone(99)).withOnSurface(e.n1.tone(10)).withSurfaceVariant(e.n2.tone(90)).withOnSurfaceVariant(e.n2.tone(30)).withOutline(e.n2.tone(50)).withOutlineVariant(e.n2.tone(80)).withShadow(e.n1.tone(0)).withScrim(e.n1.tone(0)).withInverseSurface(e.n1.tone(20)).withInverseOnSurface(e.n1.tone(95)).withInversePrimary(e.a1.tone(80))},Je=new WeakSet,ni=function(e){return new de().withPrimary(e.a1.tone(80)).withOnPrimary(e.a1.tone(20)).withPrimaryContainer(e.a1.tone(30)).withOnPrimaryContainer(e.a1.tone(90)).withSecondary(e.a2.tone(80)).withOnSecondary(e.a2.tone(20)).withSecondaryContainer(e.a2.tone(30)).withOnSecondaryContainer(e.a2.tone(90)).withTertiary(e.a3.tone(80)).withOnTertiary(e.a3.tone(20)).withTertiaryContainer(e.a3.tone(30)).withOnTertiaryContainer(e.a3.tone(90)).withError(e.error.tone(80)).withOnError(e.error.tone(20)).withErrorContainer(e.error.tone(30)).withOnErrorContainer(e.error.tone(90)).withBackground(e.n1.tone(10)).withOnBackground(e.n1.tone(90)).withSurface(e.n1.tone(10)).withOnSurface(e.n1.tone(90)).withSurfaceVariant(e.n2.tone(30)).withOnSurfaceVariant(e.n2.tone(80)).withOutline(e.n2.tone(60)).withOutlineVariant(e.n2.tone(30)).withShadow(e.n1.tone(0)).withScrim(e.n1.tone(0)).withInverseSurface(e.n1.tone(90)).withInverseOnSurface(e.n1.tone(20)).withInversePrimary(e.a1.tone(40))},O(ae,Ke),O(ae,Je);function Zi(t,e){let i=N.fromInt(t),r=N.fromInt(e),o=Xi(i.hue,r.hue),n=Math.min(o*.5,15),a=Ue(i.hue+n*Ui(i.hue,r.hue));return N.from(a,i.chroma,i.tone).toInt()}function me(t){return Number.parseInt(t,16)}function er(t){t=t.replace("#","");let e=t.length===3,i=t.length===6,r=t.length===8;if(!e&&!i&&!r)throw new Error(`unexpected hex ${t}`);let o=0,n=0,a=0;return e?(o=me(t.slice(0,1).repeat(2)),n=me(t.slice(1,2).repeat(2)),a=me(t.slice(2,3).repeat(2))):i?(o=me(t.slice(0,2)),n=me(t.slice(2,4)),a=me(t.slice(4,6))):r&&(o=me(t.slice(2,4)),n=me(t.slice(4,6)),a=me(t.slice(6,8))),(255<<24|(o&255)<<16|(n&255)<<8|a&255)>>>0}function C(t){return[Gt(t),Kt(t),Jt(t)].join(",")}function ft(t){return`
|
|
120
|
+
`.on({composed({inline:t}){let{surface:e,leading:i,headline:r,trailing:o}=this.refs;e.append(i,r,o),e.setAttribute("size","{size}"),e.setAttribute("hide-on-scroll","{hideOnScroll}"),e.setAttribute("role","toolbar"),e.setAttribute("aria-label","{ariaLabel}"),e.setAttribute("aria-labelledby",t(({ariaLabel:n})=>n?null:"headline"))},scrollListenerPositionYChanged(t,e){if(this._raised=e>0,this.size==="medium"||this.size==="large"){let i=this.refs.companion.scrollHeight,r=.5*i;this._headlineOpacity=Math.max(0,Math.min(1,(e-r)/(i-r)))}this.hideOnScroll&&(this._duration=0,e<=0?(this._cssPosition="relative",this._translateY=0,this._visibleStart=0):e<this._translateY?(this._cssPosition="sticky",this._translateY=0,this._visibleStart=0):this._cssPosition!=="sticky"&&(this._visibleStart=(e-this._translateY)/this.refs.surface.scrollHeight),this._scrollDirection=e>t?"down":"up")}}).methods({onScrollIdle(){let t=this._visibleStart;this._headlineOpacity>0&&(this._headlineOpacity=1),!(t<=0)&&(t>=1||this.scrollListenerPositionY<this.refs.surface.scrollHeight||(t<=.5?(this._duration=250,this._easing="ease-in",this._cssPosition="relative",this._translateY=this.scrollListenerPositionY,this._headlineOpacity=1):(this._duration=200,this._easing="ease-out",this._cssPosition="relative",this._translateY=this.scrollListenerPositionY-this.refs.surface.scrollHeight)))}}).define({ariaActiveDescendantElement:{get(){return this.refs.surface.ariaActiveDescendantElement},set(t){this.refs.surface.ariaActiveDescendantElement=t}}}).on({connected(){let{surface:t}=this.refs;if(t.offsetParent)this.startScrollListener(t.offsetParent??window);else{let e=new ResizeObserver(()=>{this.startScrollListener(t.offsetParent??window),e.disconnect()});e.observe(t)}},disconnected(){this.clearScrollListener()}}).css`:host{--mdw-bg: var(--mdw-color__surface);--mdw-ink: var(--mdw-color__on-surface);--mdw-surface__tint: var(--mdw-surface__tint__0);--mdw-surface__tint__raised: var(--mdw-surface__tint__2);display:contents;z-index:2}#surface{position:sticky;inset-block-start:0;display:grid;align-items:center;gap:12px;grid-auto-flow:row;grid-template-rows:minmax(64px,min-content);grid-template-columns:minmax(auto,1fr) minmax(0,auto) minmax(auto,1fr);overflow-x:clip;overflow-y:visible;box-sizing:border-box;inline-size:100%;max-inline-size:100%;padding-inline:4px;pointer-events:auto;filter:none;z-index:5;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:grid-template-columns .1s}#surface-tint{position:0;z-index:1}#leading{justify-self:flex-start;display:flex;align-items:center;grid-column:1;grid-row:1}#headline{display:inline-block;overflow:clip hidden;max-inline-size:100%;grid-column:2;grid-row:1;font:var(--mdw-typescale__title-large__font);letter-spacing:var(--mdw-typescale__title-large__letter-spacing);text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:break-word;transition-duration:.2s;transition-property:transform,opacity,color,background-color}#trailing{justify-self:flex-end;display:flex;align-items:center;gap:8px;justify-content:flex-end;grid-column:3;grid-row:1;color:var(--mdw-color__on-surface-variant)}#companion{position:relative;display:flex;align-items:flex-end;margin-block-start:calc(28px - var(--mdw-typescale__headline-small__line-height));padding-block-end:20px;padding-inline:16px;background-color:rgb(var(--mdw-bg));box-shadow:none;font:var(--mdw-typescale__headline-small__font);letter-spacing:var(--mdw-typescale__headline-small__letter-spacing);white-space:nowrap}#companion[size=large]{min-block-size:calc(2 * var(--mdw-typescale__headline-medium__line-height));margin-block-start:calc(68px - (2 * var(--mdw-typescale__headline-medium__line-height)));font:var(--mdw-typescale__headline-medium__font);letter-spacing:var(--mdw-typescale__headline-medium__letter-spacing);white-space:normal}@supports (width: 1lh){#companion{margin-block-start:calc(28px - 1lh)}#companion[size=large]{min-block-size:2lh;margin-block-start:calc(68px - 2lh)}}#companion-slot{display:block;overflow-x:clip;overflow-y:hidden;text-overflow:ellipsis;text-transform:none;word-break:break-word}#companion-slot[size=large]{max-block-size:calc(2 * var(--mdw-typescale__headline-medium__line-height))}@supports (-webkit-line-clamp: 2){#companion-slot[size=large]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-block-size:none}}#surface[hide-on-scroll]{position:relative;inset-block-start:0;transform:translateY(0);will-change:transform,position}#surface[size=small]{gap:4px;grid-template-columns:auto 1fr auto}#headline:is([size="medium"],[size="large"]){opacity:0;will-change:opacity}`.autoRegister("mdw-top-app-bar");var tr={};var ui={};dr(ui,{generateColorCSS:()=>wt,generateShapeCSS:()=>di,generateThemeCSS:()=>pi,generateTypographyCSS:()=>li,generateTypographyGlobalCSS:()=>ci,setupTheme:()=>Fo,themeOptionsFromSearchParams:()=>mi});var je=new Map([["black","#000000"],["silver","#c0c0c0"],["gray","#808080"],["white","#ffffff"],["maroon","#800000"],["red","#ff0000"],["purple","#800080"],["fuchsia","#ff00ff"],["green","#008000"],["lime","#00ff00"],["olive","#808000"],["yellow","#ffff00"],["navy","#000080"],["blue","#0000ff"],["teal","#008080"],["aqua","#00ffff"],["orange","#ffa500"],["aliceblue","#f0f8ff"],["antiquewhite","#faebd7"],["aquamarine","#7fffd4"],["azure","#f0ffff"],["beige","#f5f5dc"],["bisque","#ffe4c4"],["blanchedalmond","#ffebcd"],["blueviolet","#8a2be2"],["brown","#a52a2a"],["burlywood","#deb887"],["cadetblue","#5f9ea0"],["chartreuse","#7fff00"],["chocolate","#d2691e"],["coral","#ff7f50"],["cornflowerblue","#6495ed"],["cornsilk","#fff8dc"],["crimson","#dc143c"],["cyan","00ffff"],["darkblue","#00008b"],["darkcyan","#008b8b"],["darkgoldenrod","#b8860b"],["darkgray","#a9a9a9"],["darkgreen","#006400"],["darkgrey","#a9a9a9"],["darkkhaki","#bdb76b"],["darkmagenta","#8b008b"],["darkolivegreen","#556b2f"],["darkorange","#ff8c00"],["darkorchid","#9932cc"],["darkred","#8b0000"],["darksalmon","#e9967a"],["darkseagreen","#8fbc8f"],["darkslateblue","#483d8b"],["darkslategray","#2f4f4f"],["darkslategrey","#2f4f4f"],["darkturquoise","#00ced1"],["darkviolet","#9400d3"],["deeppink","#ff1493"],["deepskyblue","#00bfff"],["dimgray","#696969"],["dimgrey","#696969"],["dodgerblue","#1e90ff"],["firebrick","#b22222"],["floralwhite","#fffaf0"],["forestgreen","#228b22"],["gainsboro","#dcdcdc"],["ghostwhite","#f8f8ff"],["gold","#ffd700"],["goldenrod","#daa520"],["greenyellow","#adff2f"],["grey","#808080"],["honeydew","#f0fff0"],["hotpink","#ff69b4"],["indianred","#cd5c5c"],["indigo","#4b0082"],["ivory","#fffff0"],["khaki","#f0e68c"],["lavender","#e6e6fa"],["lavenderblush","#fff0f5"],["lawngreen","#7cfc00"],["lemonchiffon","#fffacd"],["lightblue","#add8e6"],["lightcoral","#f08080"],["lightcyan","#e0ffff"],["lightgoldenrodyellow","#fafad2"],["lightgray","#d3d3d3"],["lightgreen","#90ee90"],["lightgrey","#d3d3d3"],["lightpink","#ffb6c1"],["lightsalmon","#ffa07a"],["lightseagreen","#20b2aa"],["lightskyblue","#87cefa"],["lightslategray","#778899"],["lightslategrey","#778899"],["lightsteelblue","#b0c4de"],["lightyellow","#ffffe0"],["limegreen","#32cd32"],["linen","#faf0e6"],["magenta","#ff00ff"],["mediumaquamarine","#66cdaa"],["mediumblue","#0000cd"],["mediumorchid","#ba55d3"],["mediumpurple","#9370db"],["mediumseagreen","#3cb371"],["mediumslateblue","#7b68ee"],["mediumspringgreen","#00fa9a"],["mediumturquoise","#48d1cc"],["mediumvioletred","#c71585"],["midnightblue","#191970"],["mintcream","#f5fffa"],["mistyrose","#ffe4e1"],["moccasin","#ffe4b5"],["navajowhite","#ffdead"],["oldlace","#fdf5e6"],["olivedrab","#6b8e23"],["orangered","#ff4500"],["orchid","#da70d6"],["palegoldenrod","#eee8aa"],["palegreen","#98fb98"],["paleturquoise","#afeeee"],["palevioletred","#db7093"],["papayawhip","#ffefd5"],["peachpuff","#ffdab9"],["peru","#cd853f"],["pink","#ffc0cb"],["plum","#dda0dd"],["powderblue","#b0e0e6"],["rosybrown","#bc8f8f"],["royalblue","#4169e1"],["saddlebrown","#8b4513"],["salmon","#fa8072"],["sandybrown","#f4a460"],["seagreen","#2e8b57"],["seashell","#fff5ee"],["sienna","#a0522d"],["skyblue","#87ceeb"],["slateblue","#6a5acd"],["slategray","#708090"],["slategrey","#708090"],["snow","#fffafa"],["springgreen","#00ff7f"],["steelblue","#4682b4"],["tan","#d2b48c"],["thistle","#d8bfd8"],["tomato","#ff6347"],["turquoise","#40e0d0"],["violet","#ee82ee"],["wheat","#f5deb3"],["whitesmoke","#f5f5f5"],["yellowgreen","#9acd32"],["rebeccapurple","#663399"]]);function ne(t){return t<0?-1:t===0?0:1}function Xt(t,e,i){return(1-i)*t+i*e}function ji(t,e,i){return i<t?t:i>e?e:i}function Ue(t){return t%=360,t<0&&(t+=360),t}function Ui(t,e){return Ue(e-t)<=180?1:-1}function Xi(t,e){return 180-Math.abs(Math.abs(t-e)-180)}function Xe(t,e){let i=t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],r=t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],o=t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2];return[i,r,o]}var mo=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],po=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],uo=[95.047,100,108.883];function Wt(t,e,i){return(255<<24|(t&255)<<16|(e&255)<<8|i&255)>>>0}function qt(t){let e=ye(t[0]),i=ye(t[1]),r=ye(t[2]);return Wt(e,i,r)}function Gt(t){return t>>16&255}function Kt(t){return t>>8&255}function Jt(t){return t&255}function Wi(t,e,i){let r=po,o=r[0][0]*t+r[0][1]*e+r[0][2]*i,n=r[1][0]*t+r[1][1]*e+r[1][2]*i,a=r[2][0]*t+r[2][1]*e+r[2][2]*i,s=ye(o),l=ye(n),c=ye(a);return Wt(s,l,c)}function _o(t){let e=xe(Gt(t)),i=xe(Kt(t)),r=xe(Jt(t));return Xe([e,i,r],mo)}function qi(t){let e=Ie(t),i=ye(e);return Wt(i,i,i)}function Qt(t){let e=_o(t)[1];return 116*ho(e/100)-16}function Ie(t){return 100*fo((t+16)/116)}function xe(t){let e=t/255;return e<=.040449936?e/12.92*100:((e+.055)/1.055)**2.4*100}function ye(t){let e=t/100,i=0;return i=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,ji(0,255,Math.round(i*255))}function Gi(){return uo}function ho(t){let e=.008856451679035631,i=24389/27;return t>e?t**(1/3):(i*t+16)/116}function fo(t){let e=.008856451679035631,i=24389/27,r=t*t*t;return r>e?r:(116*t-16)/i}var _t=class{static make(e=Gi(),i=200/Math.PI*Ie(50)/100,r=50,o=2,n=!1){let a=e,s=a[0]*.401288+a[1]*.650173+a[2]*-.051461,l=a[0]*-.250268+a[1]*1.204414+a[2]*.045854,c=a[0]*-.002079+a[1]*.048952+a[2]*.953127,m=.8+o/10,d=m>=.9?Xt(.59,.69,(m-.9)*10):Xt(.525,.59,(m-.8)*10),p=n?1:m*(1-1/3.6*Math.exp((-i-42)/92));p=p>1?1:p<0?0:p;let h=m,g=[p*(100/s)+1-p,p*(100/l)+1-p,p*(100/c)+1-p],f=1/(5*i+1),x=f*f*f*f,A=1-x,b=x*i+.1*A*A*Math.cbrt(5*i),_=Ie(r)/e[1],y=1.48+Math.sqrt(_),E=.725/_**.2,z=E,k=[(b*g[0]*s/100)**.42,(b*g[1]*l/100)**.42,(b*g[2]*c/100)**.42],M=[400*k[0]/(k[0]+27.13),400*k[1]/(k[1]+27.13),400*k[2]/(k[2]+27.13)],S=(2*M[0]+M[1]+.05*M[2])*E;return new _t(_,S,E,z,d,h,g,b,b**.25,y)}constructor(e,i,r,o,n,a,s,l,c,m){this.n=e,this.aw=i,this.nbb=r,this.ncb=o,this.c=n,this.nc=a,this.rgbD=s,this.fl=l,this.fLRoot=c,this.z=m}},Q=_t;I(Q,"DEFAULT",_t.make());var q=class{constructor(e,i,r,o,n,a,s,l,c){this.hue=e,this.chroma=i,this.j=r,this.q=o,this.m=n,this.s=a,this.jstar=s,this.astar=l,this.bstar=c}distance(e){let i=this.jstar-e.jstar,r=this.astar-e.astar,o=this.bstar-e.bstar;return 1.41*Math.sqrt(i*i+r*r+o*o)**.63}static fromInt(e){return q.fromIntInViewingConditions(e,Q.DEFAULT)}static fromIntInViewingConditions(e,i){let r=(e&16711680)>>16,o=(e&65280)>>8,n=e&255,a=xe(r),s=xe(o),l=xe(n),c=.41233895*a+.35762064*s+.18051042*l,m=.2126*a+.7152*s+.0722*l,d=.01932141*a+.11916382*s+.95034478*l,p=.401288*c+.650173*m-.051461*d,h=-.250268*c+1.204414*m+.045854*d,g=-.002079*c+.048952*m+.953127*d,f=i.rgbD[0]*p,x=i.rgbD[1]*h,A=i.rgbD[2]*g,b=(i.fl*Math.abs(f)/100)**.42,_=(i.fl*Math.abs(x)/100)**.42,y=(i.fl*Math.abs(A)/100)**.42,E=ne(f)*400*b/(b+27.13),z=ne(x)*400*_/(_+27.13),k=ne(A)*400*y/(y+27.13),M=(11*E+-12*z+k)/11,S=(E+z-2*k)/9,D=(20*E+20*z+21*k)/20,J=(40*E+20*z+k)/20,U=Math.atan2(S,M)*180/Math.PI,Le=U<0?U+360:U>=360?U-360:U,hi=Le*Math.PI/180,Pe=100*(J*i.nbb/i.aw)**(i.c*i.z),ir=4/i.c*Math.sqrt(Pe/100)*(i.aw+4)*i.fLRoot,rr=Le<20.14?Le+360:Le,or=.25*(Math.cos(rr*Math.PI/180+2)+3.8),fi=(5e4/13*or*i.nc*i.ncb*Math.sqrt(M*M+S*S)/(D+.305))**.9*(1.64-.29**i.n)**.73,bi=fi*Math.sqrt(Pe/100),gi=bi*i.fLRoot,nr=50*Math.sqrt(fi*i.c/(i.aw+4)),ar=(1+100*.007)*Pe/(1+.007*Pe),wi=1/.0228*Math.log(1+.0228*gi),sr=wi*Math.cos(hi),lr=wi*Math.sin(hi);return new q(Le,bi,Pe,ir,gi,nr,ar,sr,lr)}static fromJch(e,i,r){return q.fromJchInViewingConditions(e,i,r,Q.DEFAULT)}static fromJchInViewingConditions(e,i,r,o){let n=4/o.c*Math.sqrt(e/100)*(o.aw+4)*o.fLRoot,a=i*o.fLRoot,s=i/Math.sqrt(e/100),l=50*Math.sqrt(s*o.c/(o.aw+4)),c=r*Math.PI/180,m=(1+100*.007)*e/(1+.007*e),d=1/.0228*Math.log(1+.0228*a),p=d*Math.cos(c),h=d*Math.sin(c);return new q(r,i,e,n,a,l,m,p,h)}static fromUcs(e,i,r){return q.fromUcsInViewingConditions(e,i,r,Q.DEFAULT)}static fromUcsInViewingConditions(e,i,r,o){let n=i,a=r,s=Math.sqrt(n*n+a*a),c=(Math.exp(s*.0228)-1)/.0228/o.fLRoot,m=Math.atan2(a,n)*(180/Math.PI);m<0&&(m+=360);let d=e/(1-(e-100)*.007);return q.fromJchInViewingConditions(d,c,m,o)}toInt(){return this.viewed(Q.DEFAULT)}viewed(e){let r=((this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100))/(1.64-.29**e.n)**.73)**(1/.9),o=this.hue*Math.PI/180,n=.25*(Math.cos(o+2)+3.8),a=e.aw*(this.j/100)**(1/e.c/e.z),s=n*(5e4/13)*e.nc*e.ncb,l=a/e.nbb,c=Math.sin(o),m=Math.cos(o),d=23*(l+.305)*r/(23*s+11*r*m+108*r*c),p=d*m,h=d*c,g=(460*l+451*p+288*h)/1403,f=(460*l-891*p-261*h)/1403,x=(460*l-220*p-6300*h)/1403,A=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),b=ne(g)*(100/e.fl)*A**(1/.42),_=Math.max(0,27.13*Math.abs(f)/(400-Math.abs(f))),y=ne(f)*(100/e.fl)*_**(1/.42),E=Math.max(0,27.13*Math.abs(x)/(400-Math.abs(x))),z=ne(x)*(100/e.fl)*E**(1/.42),k=b/e.rgbD[0],M=y/e.rgbD[1],S=z/e.rgbD[2],D=1.86206786*k-1.01125463*M+.14918677*S,J=.38752654*k+.62144744*M-.00897398*S,Z=-.0158415*k-.03412294*M+1.04996444*S;return Wi(D,J,Z)}};var bo=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]],go=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],Re=[.2126,.7152,.0722],wo=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];function Ki(t){return(t+Math.PI*8)%(Math.PI*2)}function ht(t){let e=t/100,i=0;return i=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,i*255}function Zt(t){let e=Math.abs(t)**.42;return ne(t)*400*e/(e+27.13)}function ii(t){let e=Xe(t,bo),i=Zt(e[0]),r=Zt(e[1]),o=Zt(e[2]),n=(11*i+-12*r+o)/11,a=(i+r-2*o)/9;return Math.atan2(a,n)}function ri(t,e,i){let r=Ki(e-t),o=Ki(i-t);return r<o}function vo(t,e,i){return(e-t)/(i-t)}function xo(t,e,i){return[t[0]+(i[0]-t[0])*e,t[1]+(i[1]-t[1])*e,t[2]+(i[2]-t[2])*e]}function yo(t,e,i,r){let o=vo(t[r],e,i[r]);return xo(t,o,i)}function ei(t){return t>=0&&t<=100}function ko(t,e){let i=Re[0],r=Re[1],o=Re[2],n=e%4<=1?0:100,a=e%2===0?0:100;if(e<4){let m=n,d=a,p=(t-m*r-d*o)/i;return ei(p)?[p,m,d]:[-1,-1,-1]}if(e<8){let m=n,d=a,p=(t-d*i-m*o)/r;return ei(p)?[d,p,m]:[-1,-1,-1]}let s=n,l=a,c=(t-s*i-l*r)/o;return ei(c)?[s,l,c]:[-1,-1,-1]}function So(t,e){let i=[-1,-1,-1],r=i,o=0,n=0,a=!1,s=!0;for(let l=0;l<12;l++){let c=ko(t,l);if(c[0]<0)continue;let m=ii(c);if(!a){i=c,r=c,o=m,n=m,a=!0;continue}(s||ri(o,m,n))&&(s=!1,ri(o,e,m)?(r=c,n=m):(i=c,o=m))}return[i,r]}function zo(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2,(t[2]+e[2])/2]}function Ji(t){return Math.floor(t-.5)}function Qi(t){return Math.ceil(t-.5)}function Co(t,e){let i=So(t,e),r=i[0],o=ii(r),n=i[1];for(let a=0;a<3;a++)if(r[a]!==n[a]){let s=-1,l=255;r[a]<n[a]?(s=Ji(ht(r[a])),l=Qi(ht(n[a]))):(s=Qi(ht(r[a])),l=Ji(ht(n[a])));for(let c=0;c<8&&!(Math.abs(l-s)<=1);c++){let m=Math.floor((s+l)/2),d=wo[m],p=yo(r,d,n,a),h=ii(p);ri(o,e,h)?(n=p,l=m):(r=p,o=h,s=m)}}return zo(r,n)}function ti(t){let e=Math.abs(t),i=Math.max(0,27.13*e/(400-e));return ne(t)*i**(1/.42)}function Ao(t,e,i){let r=Math.sqrt(i)*11,o=Q.DEFAULT,n=1/(1.64-.29**o.n)**.73,s=.25*(Math.cos(t+2)+3.8)*(5e4/13)*o.nc*o.ncb,l=Math.sin(t),c=Math.cos(t);for(let m=0;m<5;m++){let d=r/100,h=((e===0||r===0?0:e/Math.sqrt(d))*n)**(1/.9),f=o.aw*d**(1/o.c/o.z)/o.nbb,x=23*(f+.305)*h/(23*s+11*h*c+108*h*l),A=x*c,b=x*l,_=(460*f+451*A+288*b)/1403,y=(460*f-891*A-261*b)/1403,E=(460*f-220*A-6300*b)/1403,z=ti(_),k=ti(y),M=ti(E),S=Xe([z,k,M],go);if(S[0]<0||S[1]<0||S[2]<0)return 0;let D=Re[0],J=Re[1],Z=Re[2],U=D*S[0]+J*S[1]+Z*S[2];if(U<=0)return 0;if(m===4||Math.abs(U-i)<.002)return S[0]>100.01||S[1]>100.01||S[2]>100.01?0:qt(S);r-=(U-i)*r/(2*U)}return 0}function Ge(t,e,i){if(e<1e-4||i<1e-4||i>99.9999)return qi(i);t=Ue(t);let r=t/180*Math.PI,o=Ie(i),n=Ao(r,e,o);if(n!==0)return n;let a=Co(o,r);return qt(a)}var N=class{internalHue;internalChroma;internalTone;static from(e,i,r){return new N(Ge(e,i,r))}static fromInt(e){return new N(e)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(e){this.setInternalState(Ge(e,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(e){this.setInternalState(Ge(this.internalHue,e,this.internalTone))}get tone(){return this.internalTone}set tone(e){this.setInternalState(Ge(this.internalHue,this.internalChroma,e))}constructor(e){let i=q.fromInt(e);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=Qt(e),this.argb=e}setInternalState(e){let i=q.fromInt(e);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=Qt(e),this.argb=e}};var F=class{#e=new Map;static fromInt(e){let i=N.fromInt(e);return F.fromHueAndChroma(i.hue,i.chroma)}static fromHueAndChroma(e,i){return new F(e,i)}constructor(e,i){this.hue=e,this.chroma=i}tone(e){let i=this.#e.get(e);return i===void 0&&(i=N.from(this.hue,this.chroma,e).toInt(),this.#e.set(e,i)),i}};var j=class{a1;a2;a3;n1;n2;error;static of(e){return new j(e,!1)}static contentOf(e){return new j(e,!0)}constructor(e,i){let r=N.fromInt(e),{hue:o}=r,{chroma:n}=r;i?(this.a1=F.fromHueAndChroma(o,n),this.a2=F.fromHueAndChroma(o,n/3),this.a3=F.fromHueAndChroma(o+60,n/2),this.n1=F.fromHueAndChroma(o,Math.min(n/12,4)),this.n2=F.fromHueAndChroma(o,Math.min(n/6,8))):(this.a1=F.fromHueAndChroma(o,Math.max(48,n)),this.a2=F.fromHueAndChroma(o,16),this.a3=F.fromHueAndChroma(o+60,24),this.n1=F.fromHueAndChroma(o,4),this.n2=F.fromHueAndChroma(o,8)),this.error=F.fromHueAndChroma(25,84)}};var Ke,oi,Je,ni,de=class{constructor(e,i,r,o,n,a,s,l,c,m,d,p,h,g,f,x,A,b,_,y,E,z,k,M,S,D,J,Z,U){this.primary=e,this.onPrimary=i,this.primaryContainer=r,this.onPrimaryContainer=o,this.secondary=n,this.onSecondary=a,this.secondaryContainer=s,this.onSecondaryContainer=l,this.tertiary=c,this.onTertiary=m,this.tertiaryContainer=d,this.onTertiaryContainer=p,this.error=h,this.onError=g,this.errorContainer=f,this.onErrorContainer=x,this.background=A,this.onBackground=b,this.surface=_,this.onSurface=y,this.surfaceVariant=E,this.onSurfaceVariant=z,this.outline=k,this.outlineVariant=M,this.shadow=S,this.scrim=D,this.inverseSurface=J,this.inverseOnSurface=Z,this.inversePrimary=U}static light(e){var i;return Fe(i=de,Ke,oi).call(i,j.of(e))}static dark(e){var i;return Fe(i=de,Je,ni).call(i,j.of(e))}static lightContent(e){var i;return Fe(i=de,Ke,oi).call(i,j.contentOf(e))}static darkContent(e){var i;return Fe(i=de,Je,ni).call(i,j.contentOf(e))}withPrimary(e){return this.primary=e,this}withOnPrimary(e){return this.onPrimary=e,this}withPrimaryContainer(e){return this.primaryContainer=e,this}withOnPrimaryContainer(e){return this.onPrimaryContainer=e,this}withSecondary(e){return this.secondary=e,this}withOnSecondary(e){return this.onSecondary=e,this}withSecondaryContainer(e){return this.secondaryContainer=e,this}withOnSecondaryContainer(e){return this.onSecondaryContainer=e,this}withTertiary(e){return this.tertiary=e,this}withOnTertiary(e){return this.onTertiary=e,this}withTertiaryContainer(e){return this.tertiaryContainer=e,this}withOnTertiaryContainer(e){return this.onTertiaryContainer=e,this}withError(e){return this.error=e,this}withOnError(e){return this.onError=e,this}withErrorContainer(e){return this.errorContainer=e,this}withOnErrorContainer(e){return this.onErrorContainer=e,this}withBackground(e){return this.background=e,this}withOnBackground(e){return this.onBackground=e,this}withSurface(e){return this.surface=e,this}withOnSurface(e){return this.onSurface=e,this}withSurfaceVariant(e){return this.surfaceVariant=e,this}withOnSurfaceVariant(e){return this.onSurfaceVariant=e,this}withOutline(e){return this.outline=e,this}withOutlineVariant(e){return this.outlineVariant=e,this}withShadow(e){return this.shadow=e,this}withScrim(e){return this.scrim=e,this}withInverseSurface(e){return this.inverseSurface=e,this}withInverseOnSurface(e){return this.inverseOnSurface=e,this}withInversePrimary(e){return this.inversePrimary=e,this}equals(e){if(this===e)return!0;if(!(e instanceof de))return!1;let i=e;return!(this.primary!==i.primary||this.onPrimary!==i.onPrimary||this.primaryContainer!==i.primaryContainer||this.onPrimaryContainer!==i.onPrimaryContainer||this.secondary!==i.secondary||this.onSecondary!==i.onSecondary||this.secondaryContainer!==i.secondaryContainer||this.onSecondaryContainer!==i.onSecondaryContainer||this.tertiary!==i.tertiary||this.onTertiary!==i.onTertiary||this.tertiaryContainer!==i.tertiaryContainer||this.onTertiaryContainer!==i.onTertiaryContainer||this.error!==i.error||this.onError!==i.onError||this.errorContainer!==i.errorContainer||this.onErrorContainer!==i.onErrorContainer||this.background!==i.background||this.onBackground!==i.onBackground||this.surface!==i.surface||this.onSurface!==i.onSurface||this.surfaceVariant!==i.surfaceVariant||this.onSurfaceVariant!==i.onSurfaceVariant||this.outline!==i.outline||this.outlineVariant!==i.outlineVariant||this.shadow!==i.shadow||this.scrim!==i.scrim||this.inverseSurface!==i.inverseSurface||this.inverseOnSurface!==i.inverseOnSurface||this.inversePrimary!==i.inversePrimary)}},ae=de;Ke=new WeakSet,oi=function(e){return new de().withPrimary(e.a1.tone(40)).withOnPrimary(e.a1.tone(100)).withPrimaryContainer(e.a1.tone(90)).withOnPrimaryContainer(e.a1.tone(10)).withSecondary(e.a2.tone(40)).withOnSecondary(e.a2.tone(100)).withSecondaryContainer(e.a2.tone(90)).withOnSecondaryContainer(e.a2.tone(10)).withTertiary(e.a3.tone(40)).withOnTertiary(e.a3.tone(100)).withTertiaryContainer(e.a3.tone(90)).withOnTertiaryContainer(e.a3.tone(10)).withError(e.error.tone(40)).withOnError(e.error.tone(100)).withErrorContainer(e.error.tone(90)).withOnErrorContainer(e.error.tone(10)).withBackground(e.n1.tone(99)).withOnBackground(e.n1.tone(10)).withSurface(e.n1.tone(99)).withOnSurface(e.n1.tone(10)).withSurfaceVariant(e.n2.tone(90)).withOnSurfaceVariant(e.n2.tone(30)).withOutline(e.n2.tone(50)).withOutlineVariant(e.n2.tone(80)).withShadow(e.n1.tone(0)).withScrim(e.n1.tone(0)).withInverseSurface(e.n1.tone(20)).withInverseOnSurface(e.n1.tone(95)).withInversePrimary(e.a1.tone(80))},Je=new WeakSet,ni=function(e){return new de().withPrimary(e.a1.tone(80)).withOnPrimary(e.a1.tone(20)).withPrimaryContainer(e.a1.tone(30)).withOnPrimaryContainer(e.a1.tone(90)).withSecondary(e.a2.tone(80)).withOnSecondary(e.a2.tone(20)).withSecondaryContainer(e.a2.tone(30)).withOnSecondaryContainer(e.a2.tone(90)).withTertiary(e.a3.tone(80)).withOnTertiary(e.a3.tone(20)).withTertiaryContainer(e.a3.tone(30)).withOnTertiaryContainer(e.a3.tone(90)).withError(e.error.tone(80)).withOnError(e.error.tone(20)).withErrorContainer(e.error.tone(30)).withOnErrorContainer(e.error.tone(90)).withBackground(e.n1.tone(10)).withOnBackground(e.n1.tone(90)).withSurface(e.n1.tone(10)).withOnSurface(e.n1.tone(90)).withSurfaceVariant(e.n2.tone(30)).withOnSurfaceVariant(e.n2.tone(80)).withOutline(e.n2.tone(60)).withOutlineVariant(e.n2.tone(30)).withShadow(e.n1.tone(0)).withScrim(e.n1.tone(0)).withInverseSurface(e.n1.tone(90)).withInverseOnSurface(e.n1.tone(20)).withInversePrimary(e.a1.tone(40))},O(ae,Ke),O(ae,Je);function Zi(t,e){let i=N.fromInt(t),r=N.fromInt(e),o=Xi(i.hue,r.hue),n=Math.min(o*.5,15),a=Ue(i.hue+n*Ui(i.hue,r.hue));return N.from(a,i.chroma,i.tone).toInt()}function me(t){return Number.parseInt(t,16)}function er(t){t=t.replace("#","");let e=t.length===3,i=t.length===6,r=t.length===8;if(!e&&!i&&!r)throw new Error(`unexpected hex ${t}`);let o=0,n=0,a=0;return e?(o=me(t.slice(0,1).repeat(2)),n=me(t.slice(1,2).repeat(2)),a=me(t.slice(2,3).repeat(2))):i?(o=me(t.slice(0,2)),n=me(t.slice(2,4)),a=me(t.slice(4,6))):r&&(o=me(t.slice(2,4)),n=me(t.slice(4,6)),a=me(t.slice(6,8))),(255<<24|(o&255)<<16|(n&255)<<8|a&255)>>>0}function C(t){return[Gt(t),Kt(t),Jt(t)].join(",")}function ft(t){return`
|
|
121
121
|
:root {
|
|
122
122
|
--mdw-color__primary: ${C(t.primary)};
|
|
123
123
|
--mdw-color__on-primary: ${C(t.onPrimary)};
|