Skip to content

Instantly share code, notes, and snippets.

@ken-okabe
Created April 25, 2024 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ken-okabe/d83f99e9adf40aebbb25956a2ef86e60 to your computer and use it in GitHub Desktop.
Save ken-okabe/d83f99e9adf40aebbb25956a2ef86e60 to your computer and use it in GitHub Desktop.
jORdjvy
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const n of s)if(n.type==="childList")for(const o of n.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const n={};return s.integrity&&(n.integrity=s.integrity),s.referrerPolicy&&(n.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?n.credentials="include":s.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function i(s){if(s.ep)return;s.ep=!0;const n=r(s);fetch(s.href,n)}})();function he(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function ia(e){return e!=null&&typeof e.GetEnumerator=="function"}function sa(e){return e!=null&&typeof e.CompareTo=="function"}function na(e){return e!=null&&typeof e.Equals=="function"}function oa(e){return e!=null&&typeof e.GetHashCode=="function"}function rr(){return null}function ir(e,t){return Object.getPrototypeOf(e)?.constructor===Object.getPrototypeOf(t)?.constructor}class aa{constructor(t){this.iter=t,this.current=rr()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function os(e){return ia(e)?e.GetEnumerator():new aa(e[Symbol.iterator]())}function la(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),r=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:r}}}}function k(e,t){return e.toString(10).padStart(t,"0")}function as(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}class ft{static id(t){return ft.idMap.has(t)||ft.idMap.set(t,++ft.count),ft.idMap.get(t)}}ft.idMap=new WeakMap;ft.count=0;function xn(e){let t=0,r=5381;const i=e.length;for(;t<i;)r=r*33^e.charCodeAt(t++);return r}function pi(e){return e*2654435761|0}function ca(e){return xn(e.toString(32))}function wr(e){let t=0;const r=e.length;for(let i=0;i<r;i++){const s=e[i];t=(t<<5)+t^s}return t}function ua(e){return e.getTime()}function ha(e){const t=e.length,r=new Array(t);for(let i=0;i<t;i++)r[i]=Ut(e[i]);return wr(r)}function Ut(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return pi(e);case"bigint":return ca(e);case"string":return xn(e);default:{if(oa(e))return e.GetHashCode();if(he(e))return ha(e);if(e instanceof Date)return ua(e);if(Object.getPrototypeOf(e)?.constructor===Object){const t=Object.values(e).map(r=>Ut(r));return wr(t)}else return pi(ft.id(e))}}}function da(e,t,r){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1;return!0}function Fn(e,t){return da(e,t,gt)}function fa(e,t){const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;r.sort(),i.sort();for(let s=0;s<r.length;s++)if(r[s]!==i[s]||!gt(e[r[s]],t[i[s]]))return!1;return!0}function gt(e,t){return e===t?!0:e==null?t==null:t==null?!1:na(e)?e.Equals(t):he(e)?he(t)&&Fn(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Cn(e,t)===0:Object.getPrototypeOf(e)?.constructor===Object&&fa(e,t)}function Cn(e,t){let r,i;return"offset"in e&&"offset"in t?(r=e.getTime(),i=t.getTime()):(r=e.getTime()+as(e),i=t.getTime()+as(t)),r===i?0:r<i?-1:1}function pa(e,t,r){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let i=0,s=0;i<e.length;i++)if(s=r(e[i],t[i]),s!==0)return s;return 0}function kn(e,t){return pa(e,t,xe)}function ga(e,t){const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return r.length<i.length?-1:1;r.sort(),i.sort();for(let s=0,n=0;s<r.length;s++){const o=r[s];if(o!==i[s])return o<i[s]?-1:1;if(n=xe(e[o],t[o]),n!==0)return n}return 0}function xe(e,t){return e===t?0:e==null?t==null?0:-1:t==null?1:sa(e)?e.CompareTo(t):he(e)?he(t)?kn(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Cn(e,t):-1:Object.getPrototypeOf(e)?.constructor===Object?ga(e,t):-1}const Dn=new WeakMap;function gi(e){if(e==null)return null;const t=(r,i)=>e(r)(i);return Dn.set(t,e),t}function Wr(e){return Dn.get(e)??(t=>r=>e(t,r))}function va(e){let t=0,r="[";for(const i of e){if(t===0)r+=kt(i);else if(t===100){r+="; ...";break}else r+="; "+kt(i);t++}return r+"]"}function kt(e,t=0){if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return va(e);{const r=Object.getPrototypeOf(e)?.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([i,s])=>i+" = "+kt(s,t+1)).join(`
`)+" }":r?.name??""}}return String(e)}function ba(e,t){if(t.length===0)return e;{let r,i=!0;return t.length===1?(r=kt(t[0]),i=r.indexOf(" ")>=0):r=t.map(s=>kt(s)).join(", "),e+(i?" (":" ")+r+(i?")":"")}}class ma{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return ba(this.name,this.fields)}GetHashCode(){const t=this.fields.map(r=>Ut(r));return t.splice(0,0,pi(this.tag)),wr(t)}Equals(t){return this===t?!0:ir(this,t)&&this.tag===t.tag?Fn(this.fields,t.fields):!1}CompareTo(t){return this===t?0:ir(this,t)?this.tag===t.tag?kn(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function ya(e){const t={},r=Object.keys(e);for(let i=0;i<r.length;i++)t[r[i]]=e[r[i]];return t}function wa(e){return"{ "+Object.entries(e).map(([t,r])=>t+" = "+kt(r)).join(`
`)+" }"}function $a(e){const t=Object.values(e).map(r=>Ut(r));return wr(t)}function Sa(e,t){if(e===t)return!0;if(ir(e,t)){const r=Object.keys(e);for(let i=0;i<r.length;i++)if(!gt(e[r[i]],t[r[i]]))return!1;return!0}else return!1}function xa(e,t){if(e===t)return 0;if(ir(e,t)){const r=Object.keys(e);for(let i=0;i<r.length;i++){const s=xe(e[r[i]],t[r[i]]);if(s!==0)return s}return 0}else return-1}class _n{toJSON(){return ya(this)}toString(){return wa(this)}GetHashCode(){return $a(this)}Equals(t){return Sa(this,t)}CompareTo(t){return xa(this,t)}}const qt=Symbol("numeric");function Fa(e){return typeof e=="number"||typeof e=="bigint"||e?.[qt]}function Ca(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function ka(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[qt]().multiply(t)}function Da(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[qt]().toFixed(t)}function ls(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[qt]().toPrecision(t)}function cs(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[qt]().toExponential(t)}function us(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[qt]().toHex()}class sr{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Ut(this.value)}Equals(t){return t==null?!1:gt(this.value,t instanceof sr?t.value:t)}CompareTo(t){return t==null?1:xe(this.value,t instanceof sr?t.value:t)}}function St(e){if(e==null)throw new Error("Option has no value");return e instanceof sr?e.value:e}class _a{constructor(t,r,i){this.OnNext=t,this.OnError=r||(s=>{}),this.OnCompleted=i||(()=>{})}}function Aa(e,t){t.Subscribe(new _a(e))}class Va{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const r=this.delegates.indexOf(t);r>-1&&this.delegates.splice(r,1)}get Publish(){return Ra(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,r){let i=null;const s=r===void 0?t:(i=t,r);this.delegates.forEach(n=>{n(i,s)})}}let Ta=class extends Va{};function Ra(e,t){return{AddHandler(r){e(r)},RemoveHandler(r){t(r)},Subscribe(r){const i=(s,n)=>r.OnNext(n);return e(i),{Dispose(){t(i)}}}}}class Ea{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new Ta}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}let pt=Object.getPrototypeOf,ne,vi,Nt,se,An={isConnected:1},Ia=1e3,Oe,hs={},Oa=pt(An),Vn=pt(pt),Ct,Tn=(e,t,r,i)=>(e??(setTimeout(r,i),new Set)).add(t),Rn=(e,t,r)=>{let i=Nt;Nt=t;try{return e(r)}catch(s){return console.error(s),r}finally{Nt=i}},nr=e=>e.filter(t=>t._dom?.isConnected),En=e=>Oe=Tn(Oe,e,()=>{for(let t of Oe)t._bindings=nr(t._bindings),t._listeners=nr(t._listeners);Oe=Ct},Ia),or={get val(){return Nt?._getters?.add(this),this.rawVal},get oldVal(){return Nt?._getters?.add(this),this._oldVal},set val(e){Nt?._setters?.add(this),e!==this.rawVal&&(this.rawVal=e,this._bindings.length+this._listeners.length?(vi?.add(this),ne=Tn(ne,this,La)):this._oldVal=e)}},In=e=>({__proto__:or,rawVal:e,_oldVal:e,_bindings:[],_listeners:[]}),de=(e,t)=>{let r={_getters:new Set,_setters:new Set},i={f:e},s=se;se=[];let n=Rn(e,r,t);n=(n??document).nodeType?n:new Text(n);for(let o of r._getters)r._setters.has(o)||(En(o),o._bindings.push(i));for(let o of se)o._dom=n;return se=s,i._dom=n},Vi=(e,t=In(),r)=>{let i={_getters:new Set,_setters:new Set},s={f:e,s:t};s._dom=r??se?.push(s)??An,t.val=Rn(e,i,t.rawVal);for(let n of i._getters)i._setters.has(n)||(En(n),n._listeners.push(s));return t},On=(e,...t)=>{for(let r of t.flat(1/0)){let i=pt(r??0),s=i===or?de(()=>r.val):i===Vn?de(r):r;s!=Ct&&e.append(s)}return e},Pn=(e,t,...r)=>{let[i,...s]=pt(r[0]??0)===Oa?r:[{},...r],n=e?document.createElementNS(e,t):document.createElement(t);for(let[o,a]of Object.entries(i)){let l=v=>v?Object.getOwnPropertyDescriptor(v,o)??l(pt(v)):Ct,c=t+","+o,u=hs[c]??(hs[c]=l(pt(n))?.set??0),d=o.startsWith("on")?(v,g)=>{let x=o.slice(2);n.removeEventListener(x,g),n.addEventListener(x,v)}:u?u.bind(n):n.setAttribute.bind(n,o),p=pt(a??0);o.startsWith("on")||p===Vn&&(a=Vi(a),p=or),p===or?de(()=>(d(a.val,a._oldVal),n)):d(a)}return On(n,...s)},ds=e=>({get:(t,r)=>Pn.bind(Ct,e,r)}),Pa=new Proxy(e=>new Proxy(Pn,ds(e)),ds()),Ln=(e,t)=>t?t!==e&&e.replaceWith(t):e.remove(),La=()=>{let e=0,t=[...ne].filter(i=>i.rawVal!==i._oldVal);do{vi=new Set;for(let i of new Set(t.flatMap(s=>s._listeners=nr(s._listeners))))Vi(i.f,i.s,i._dom),i._dom=Ct}while(++e<100&&(t=[...vi]).length);let r=[...ne].filter(i=>i.rawVal!==i._oldVal);ne=Ct;for(let i of new Set(r.flatMap(s=>s._bindings=nr(s._bindings))))Ln(i._dom,de(i.f,i._dom)),i._dom=Ct;for(let i of r)i._oldVal=i.rawVal},Na=(e,t)=>Ln(e,de(t,e));const Ti={add:On,tags:Pa,state:In,derive:Vi,hydrate:Na},vt=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();vt.trustedTypes===void 0&&(vt.trustedTypes={createPolicy:(e,t)=>t});const Nn={configurable:!1,enumerable:!1,writable:!1};vt.FAST===void 0&&Reflect.defineProperty(vt,"FAST",Object.assign({value:Object.create(null)},Nn));const fe=vt.FAST;if(fe.getById===void 0){const e=Object.create(null);Reflect.defineProperty(fe,"getById",Object.assign({value(t,r){let i=e[t];return i===void 0&&(i=r?e[t]=r():null),i}},Nn))}const oe=Object.freeze([]);function Mn(){const e=new WeakMap;return function(t){let r=e.get(t);if(r===void 0){let i=Reflect.getPrototypeOf(t);for(;r===void 0&&i!==null;)r=e.get(i),i=Reflect.getPrototypeOf(i);r=r===void 0?[]:r.slice(0),e.set(t,r)}return r}}const Gr=vt.FAST.getById(1,()=>{const e=[],t=[];function r(){if(t.length)throw t.shift()}function i(o){try{o.call()}catch(a){t.push(a),setTimeout(r,0)}}function s(){let a=0;for(;a<e.length;)if(i(e[a]),a++,a>1024){for(let l=0,c=e.length-a;l<c;l++)e[l]=e[l+a];e.length-=a,a=0}e.length=0}function n(o){e.length<1&&vt.requestAnimationFrame(s),e.push(o)}return Object.freeze({enqueue:n,process:s})}),Bn=vt.trustedTypes.createPolicy("fast-html",{createHTML:e=>e});let Xr=Bn;const ae=`fast-${Math.random().toString(36).substring(2,8)}`,Hn=`${ae}{`,Ri=`}${ae}`,$=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(Xr!==Bn)throw new Error("The HTML policy can only be set once.");Xr=e},createHTML(e){return Xr.createHTML(e)},isMarker(e){return e&&e.nodeType===8&&e.data.startsWith(ae)},extractDirectiveIndexFromMarker(e){return parseInt(e.data.replace(`${ae}:`,""))},createInterpolationPlaceholder(e){return`${Hn}${e}${Ri}`},createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(e){return`<!--${ae}:${e}-->`},queueUpdate:Gr.enqueue,processUpdates:Gr.process,nextUpdate(){return new Promise(Gr.enqueue)},setAttribute(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)},setBooleanAttribute(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;t!==null;t=e.firstChild)e.removeChild(t)},createTemplateWalker(e){return document.createTreeWalker(e,133,null,!1)}});class bi{constructor(t,r){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=r}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const r=this.spillover;if(r===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else r.indexOf(t)===-1&&r.push(t)}unsubscribe(t){const r=this.spillover;if(r===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}notify(t){const r=this.spillover,i=this.source;if(r===void 0){const s=this.sub1,n=this.sub2;s!==void 0&&s.handleChange(i,t),n!==void 0&&n.handleChange(i,t)}else for(let s=0,n=r.length;s<n;++s)r[s].handleChange(i,t)}}class zn{constructor(t){this.subscribers={},this.sourceSubscribers=null,this.source=t}notify(t){var r;const i=this.subscribers[t];i!==void 0&&i.notify(t),(r=this.sourceSubscribers)===null||r===void 0||r.notify(t)}subscribe(t,r){var i;if(r){let s=this.subscribers[r];s===void 0&&(this.subscribers[r]=s=new bi(this.source)),s.subscribe(t)}else this.sourceSubscribers=(i=this.sourceSubscribers)!==null&&i!==void 0?i:new bi(this.source),this.sourceSubscribers.subscribe(t)}unsubscribe(t,r){var i;if(r){const s=this.subscribers[r];s!==void 0&&s.unsubscribe(t)}else(i=this.sourceSubscribers)===null||i===void 0||i.unsubscribe(t)}}const V=fe.getById(2,()=>{const e=/(:|&&|\|\||if)/,t=new WeakMap,r=$.queueUpdate;let i,s=c=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function n(c){let u=c.$fastController||t.get(c);return u===void 0&&(Array.isArray(c)?u=s(c):t.set(c,u=new zn(c))),u}const o=Mn();class a{constructor(u){this.name=u,this.field=`_${u}`,this.callback=`${u}Changed`}getValue(u){return i!==void 0&&i.watch(u,this.name),u[this.field]}setValue(u,d){const p=this.field,v=u[p];if(v!==d){u[p]=d;const g=u[this.callback];typeof g=="function"&&g.call(u,v,d),n(u).notify(this.name)}}}class l extends bi{constructor(u,d,p=!1){super(u,d),this.binding=u,this.isVolatileBinding=p,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(u,d){this.needsRefresh&&this.last!==null&&this.disconnect();const p=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const v=this.binding(u,d);return i=p,v}disconnect(){if(this.last!==null){let u=this.first;for(;u!==void 0;)u.notifier.unsubscribe(this,u.propertyName),u=u.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(u,d){const p=this.last,v=n(u),g=p===null?this.first:{};if(g.propertySource=u,g.propertyName=d,g.notifier=v,v.subscribe(this,d),p!==null){if(!this.needsRefresh){let x;i=void 0,x=p.propertySource[p.propertyName],i=this,u===x&&(this.needsRefresh=!0)}p.next=g}this.last=g}handleChange(){this.needsQueue&&(this.needsQueue=!1,r(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let u=this.first;return{next:()=>{const d=u;return d===void 0?{value:void 0,done:!0}:(u=u.next,{value:d,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(c){s=c},getNotifier:n,track(c,u){i!==void 0&&i.watch(c,u)},trackVolatile(){i!==void 0&&(i.needsRefresh=!0)},notify(c,u){n(c).notify(u)},defineProperty(c,u){typeof u=="string"&&(u=new a(u)),o(c).push(u),Reflect.defineProperty(c,u.name,{enumerable:!0,get:function(){return u.getValue(this)},set:function(d){u.setValue(this,d)}})},getAccessors:o,binding(c,u,d=this.isVolatileBinding(c)){return new l(c,u,d)},isVolatileBinding(c){return e.test(c.toString())}})});function rt(e,t){V.defineProperty(e,t)}const fs=fe.getById(3,()=>{let e=null;return{get(){return e},set(t){e=t}}});class pe{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return fs.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){fs.set(t)}}V.defineProperty(pe.prototype,"index");V.defineProperty(pe.prototype,"length");const le=Object.seal(new pe);class Ei{constructor(){this.targetIndex=0}}class jn extends Ei{constructor(){super(...arguments),this.createPlaceholder=$.createInterpolationPlaceholder}}class Un extends Ei{constructor(t,r,i){super(),this.name=t,this.behavior=r,this.options=i}createPlaceholder(t){return $.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function Ma(e,t){this.source=e,this.context=t,this.bindingObserver===null&&(this.bindingObserver=V.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function Ba(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function Ha(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function za(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function ja(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function Ua(e){$.setAttribute(this.target,this.targetName,e)}function qa(e){$.setBooleanAttribute(this.target,this.targetName,e)}function Wa(e){if(e==null&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;t===void 0?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;t!==void 0&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function Ga(e){this.target[this.targetName]=e}function Xa(e){const t=this.classVersions||Object.create(null),r=this.target;let i=this.version||0;if(e!=null&&e.length){const s=e.split(/\s+/);for(let n=0,o=s.length;n<o;++n){const a=s[n];a!==""&&(t[a]=i,r.classList.add(a))}}if(this.classVersions=t,this.version=i+1,i!==0){i-=1;for(const s in t)t[s]===i&&r.classList.remove(s)}}class Ii extends jn{constructor(t){super(),this.binding=t,this.bind=Ma,this.unbind=Ha,this.updateTarget=Ua,this.isBindingVolatile=V.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(t){if(this.originalTargetName=t,t!==void 0)switch(t[0]){case":":if(this.cleanedTargetName=t.substr(1),this.updateTarget=Ga,this.cleanedTargetName==="innerHTML"){const r=this.binding;this.binding=(i,s)=>$.createHTML(r(i,s))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=qa;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=Ba,this.unbind=ja;break;default:this.cleanedTargetName=t,t==="class"&&(this.updateTarget=Xa);break}}targetAtContent(){this.updateTarget=Wa,this.unbind=za}createBehavior(t){return new Ya(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class Ya{constructor(t,r,i,s,n,o,a){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=r,this.isBindingVolatile=i,this.bind=s,this.unbind=n,this.updateTarget=o,this.targetName=a}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){pe.setEvent(t);const r=this.binding(this.source,this.context);pe.setEvent(null),r!==!0&&t.preventDefault()}}let Yr=null;class Oi{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){Yr=this}static borrow(t){const r=Yr||new Oi;return r.directives=t,r.reset(),Yr=null,r}}function Za(e){if(e.length===1)return e[0];let t;const r=e.length,i=e.map(o=>typeof o=="string"?()=>o:(t=o.targetName||t,o.binding)),s=(o,a)=>{let l="";for(let c=0;c<r;++c)l+=i[c](o,a);return l},n=new Ii(s);return n.targetName=t,n}const Ja=Ri.length;function qn(e,t){const r=t.split(Hn);if(r.length===1)return null;const i=[];for(let s=0,n=r.length;s<n;++s){const o=r[s],a=o.indexOf(Ri);let l;if(a===-1)l=o;else{const c=parseInt(o.substring(0,a));i.push(e.directives[c]),l=o.substring(a+Ja)}l!==""&&i.push(l)}return i}function ps(e,t,r=!1){const i=t.attributes;for(let s=0,n=i.length;s<n;++s){const o=i[s],a=o.value,l=qn(e,a);let c=null;l===null?r&&(c=new Ii(()=>a),c.targetName=o.name):c=Za(l),c!==null&&(t.removeAttributeNode(o),s--,n--,e.addFactory(c))}}function Qa(e,t,r){const i=qn(e,t.textContent);if(i!==null){let s=t;for(let n=0,o=i.length;n<o;++n){const a=i[n],l=n===0?t:s.parentNode.insertBefore(document.createTextNode(""),s.nextSibling);typeof a=="string"?l.textContent=a:(l.textContent=" ",e.captureContentBinding(a)),s=l,e.targetIndex++,l!==t&&r.nextNode()}e.targetIndex--}}function Ka(e,t){const r=e.content;document.adoptNode(r);const i=Oi.borrow(t);ps(i,e,!0);const s=i.behaviorFactories;i.reset();const n=$.createTemplateWalker(r);let o;for(;o=n.nextNode();)switch(i.targetIndex++,o.nodeType){case 1:ps(i,o);break;case 3:Qa(i,o,n);break;case 8:$.isMarker(o)&&i.addFactory(t[$.extractDirectiveIndexFromMarker(o)])}let a=0;($.isMarker(r.firstChild)||r.childNodes.length===1&&t.length)&&(r.insertBefore(document.createComment(""),r.firstChild),a=-1);const l=i.behaviorFactories;return i.release(),{fragment:r,viewBehaviorFactories:l,hostBehaviorFactories:s,targetOffset:a}}const Zr=document.createRange();class tl{constructor(t,r){this.fragment=t,this.behaviors=r,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const r=this.lastChild;if(t.previousSibling===r)return;const i=t.parentNode;let s=this.firstChild,n;for(;s!==r;)n=s.nextSibling,i.insertBefore(s,t),s=n;i.insertBefore(r,t)}}remove(){const t=this.fragment,r=this.lastChild;let i=this.firstChild,s;for(;i!==r;)s=i.nextSibling,t.appendChild(i),i=s;t.appendChild(r)}dispose(){const t=this.firstChild.parentNode,r=this.lastChild;let i=this.firstChild,s;for(;i!==r;)s=i.nextSibling,t.removeChild(i),i=s;t.removeChild(r);const n=this.behaviors,o=this.source;for(let a=0,l=n.length;a<l;++a)n[a].unbind(o)}bind(t,r){const i=this.behaviors;if(this.source!==t)if(this.source!==null){const s=this.source;this.source=t,this.context=r;for(let n=0,o=i.length;n<o;++n){const a=i[n];a.unbind(s),a.bind(t,r)}}else{this.source=t,this.context=r;for(let s=0,n=i.length;s<n;++s)i[s].bind(t,r)}}unbind(){if(this.source===null)return;const t=this.behaviors,r=this.source;for(let i=0,s=t.length;i<s;++i)t[i].unbind(r);this.source=null}static disposeContiguousBatch(t){if(t.length!==0){Zr.setStartBefore(t[0].firstChild),Zr.setEndAfter(t[t.length-1].lastChild),Zr.deleteContents();for(let r=0,i=t.length;r<i;++r){const s=t[r],n=s.behaviors,o=s.source;for(let a=0,l=n.length;a<l;++a)n[a].unbind(o)}}}}class gs{constructor(t,r){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=r}create(t){if(this.fragment===null){let c;const u=this.html;if(typeof u=="string"){c=document.createElement("template"),c.innerHTML=$.createHTML(u);const p=c.content.firstElementChild;p!==null&&p.tagName==="TEMPLATE"&&(c=p)}else c=u;const d=Ka(c,this.directives);this.fragment=d.fragment,this.viewBehaviorFactories=d.viewBehaviorFactories,this.hostBehaviorFactories=d.hostBehaviorFactories,this.targetOffset=d.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}const r=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,s=new Array(this.behaviorCount),n=$.createTemplateWalker(r);let o=0,a=this.targetOffset,l=n.nextNode();for(let c=i.length;o<c;++o){const u=i[o],d=u.targetIndex;for(;l!==null;)if(a===d){s[o]=u.createBehavior(l);break}else l=n.nextNode(),a++}if(this.hasHostBehaviors){const c=this.hostBehaviorFactories;for(let u=0,d=c.length;u<d;++u,++o)s[o]=c[u].createBehavior(t)}return new tl(r,s)}render(t,r,i){typeof r=="string"&&(r=document.getElementById(r)),i===void 0&&(i=r);const s=this.create(i);return s.bind(t,le),s.appendTo(r),s}}const el=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function At(e,...t){const r=[];let i="";for(let s=0,n=e.length-1;s<n;++s){const o=e[s];let a=t[s];if(i+=o,a instanceof gs){const l=a;a=()=>l}if(typeof a=="function"&&(a=new Ii(a)),a instanceof jn){const l=el.exec(o);l!==null&&(a.targetName=l[2])}a instanceof Ei?(i+=a.createPlaceholder(r.length),r.push(a)):i+=a}return i+=e[e.length-1],new gs(i,r)}class H{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}}H.create=(()=>{if($.supportsAdoptedStyleSheets){const e=new Map;return t=>new rl(t,e)}return e=>new nl(e)})();function Pi(e){return e.map(t=>t instanceof H?Pi(t.styles):[t]).reduce((t,r)=>t.concat(r),[])}function Wn(e){return e.map(t=>t instanceof H?t.behaviors:null).reduce((t,r)=>r===null?t:(t===null&&(t=[]),t.concat(r)),null)}let Gn=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},Xn=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(r=>t.indexOf(r)===-1)};if($.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Gn=(e,t)=>{e.adoptedStyleSheets.push(...t)},Xn=(e,t)=>{for(const r of t){const i=e.adoptedStyleSheets.indexOf(r);i!==-1&&e.adoptedStyleSheets.splice(i,1)}}}catch{}class rl extends H{constructor(t,r){super(),this.styles=t,this.styleSheetCache=r,this._styleSheets=void 0,this.behaviors=Wn(t)}get styleSheets(){if(this._styleSheets===void 0){const t=this.styles,r=this.styleSheetCache;this._styleSheets=Pi(t).map(i=>{if(i instanceof CSSStyleSheet)return i;let s=r.get(i);return s===void 0&&(s=new CSSStyleSheet,s.replaceSync(i),r.set(i,s)),s})}return this._styleSheets}addStylesTo(t){Gn(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){Xn(t,this.styleSheets),super.removeStylesFrom(t)}}let il=0;function sl(){return`fast-style-class-${++il}`}class nl extends H{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=Wn(t),this.styleSheets=Pi(t),this.styleClass=sl()}addStylesTo(t){const r=this.styleSheets,i=this.styleClass;t=this.normalizeTarget(t);for(let s=0;s<r.length;s++){const n=document.createElement("style");n.innerHTML=r[s],n.className=i,t.append(n)}super.addStylesTo(t)}removeStylesFrom(t){t=this.normalizeTarget(t);const r=t.querySelectorAll(`.${this.styleClass}`);for(let i=0,s=r.length;i<s;++i)t.removeChild(r[i]);super.removeStylesFrom(t)}isAttachedTo(t){return super.isAttachedTo(this.normalizeTarget(t))}normalizeTarget(t){return t===document?document.body:t}}const ar=Object.freeze({locate:Mn()}),Yn={toView(e){return e?"true":"false"},fromView(e){return!(e==null||e==="false"||e===!1||e===0)}},Li={toView(e){if(e==null)return null;const t=e*1;return isNaN(t)?null:t.toString()},fromView(e){if(e==null)return null;const t=e*1;return isNaN(t)?null:t}};class lr{constructor(t,r,i=r.toLowerCase(),s="reflect",n){this.guards=new Set,this.Owner=t,this.name=r,this.attribute=i,this.mode=s,this.converter=n,this.fieldName=`_${r}`,this.callbackName=`${r}Changed`,this.hasCallback=this.callbackName in t.prototype,s==="boolean"&&n===void 0&&(this.converter=Yn)}setValue(t,r){const i=t[this.fieldName],s=this.converter;s!==void 0&&(r=s.fromView(r)),i!==r&&(t[this.fieldName]=r,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,r),t.$fastController.notify(this.name))}getValue(t){return V.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,r){this.guards.has(t)||(this.guards.add(t),this.setValue(t,r),this.guards.delete(t))}tryReflectToAttribute(t){const r=this.mode,i=this.guards;i.has(t)||r==="fromView"||$.queueUpdate(()=>{i.add(t);const s=t[this.fieldName];switch(r){case"reflect":const n=this.converter;$.setAttribute(t,this.attribute,n!==void 0?n.toView(s):s);break;case"boolean":$.setBooleanAttribute(t,this.attribute,s);break}i.delete(t)})}static collect(t,...r){const i=[];r.push(ar.locate(t));for(let s=0,n=r.length;s<n;++s){const o=r[s];if(o!==void 0)for(let a=0,l=o.length;a<l;++a){const c=o[a];typeof c=="string"?i.push(new lr(t,c)):i.push(new lr(t,c.property,c.attribute,c.mode,c.converter))}}return i}}function b(e,t){let r;function i(s,n){arguments.length>1&&(r.property=n),ar.locate(s.constructor).push(r)}if(arguments.length>1){r={},i(e,t);return}return r=e===void 0?{}:e,i}const vs={mode:"open"},bs={},mi=fe.getById(4,()=>{const e=new Map;return Object.freeze({register(t){return e.has(t.type)?!1:(e.set(t.type,t),!0)},getByType(t){return e.get(t)}})});class $r{constructor(t,r=t.definition){typeof r=="string"&&(r={name:r}),this.type=t,this.name=r.name,this.template=r.template;const i=lr.collect(t,r.attributes),s=new Array(i.length),n={},o={};for(let a=0,l=i.length;a<l;++a){const c=i[a];s[a]=c.attribute,n[c.name]=c,o[c.attribute]=c}this.attributes=i,this.observedAttributes=s,this.propertyLookup=n,this.attributeLookup=o,this.shadowOptions=r.shadowOptions===void 0?vs:r.shadowOptions===null?void 0:Object.assign(Object.assign({},vs),r.shadowOptions),this.elementOptions=r.elementOptions===void 0?bs:Object.assign(Object.assign({},bs),r.elementOptions),this.styles=r.styles===void 0?void 0:Array.isArray(r.styles)?H.create(r.styles):r.styles instanceof H?r.styles:H.create([r.styles])}get isDefined(){return!!mi.getByType(this.type)}define(t=customElements){const r=this.type;if(mi.register(this)){const i=this.attributes,s=r.prototype;for(let n=0,o=i.length;n<o;++n)V.defineProperty(s,i[n]);Reflect.defineProperty(r,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return t.get(this.name)||t.define(this.name,r,this.elementOptions),this}}$r.forType=mi.getByType;const Zn=new WeakMap,ol={bubbles:!0,composed:!0,cancelable:!0};function Jr(e){return e.shadowRoot||Zn.get(e)||null}class Ni extends zn{constructor(t,r){super(t),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=t,this.definition=r;const i=r.shadowOptions;if(i!==void 0){const n=t.attachShadow(i);i.mode==="closed"&&Zn.set(t,n)}const s=V.getAccessors(t);if(s.length>0){const n=this.boundObservables=Object.create(null);for(let o=0,a=s.length;o<a;++o){const l=s[o].name,c=t[l];c!==void 0&&(delete t[l],n[l]=c)}}}get isConnected(){return V.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,V.notify(this,"isConnected")}get template(){return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get styles(){return this._styles}set styles(t){this._styles!==t&&(this._styles!==null&&this.removeStyles(this._styles),this._styles=t,!this.needsInitialization&&t!==null&&this.addStyles(t))}addStyles(t){const r=Jr(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)r.append(t);else if(!t.isAttachedTo(r)){const i=t.behaviors;t.addStylesTo(r),i!==null&&this.addBehaviors(i)}}removeStyles(t){const r=Jr(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)r.removeChild(t);else if(t.isAttachedTo(r)){const i=t.behaviors;t.removeStylesFrom(r),i!==null&&this.removeBehaviors(i)}}addBehaviors(t){const r=this.behaviors||(this.behaviors=new Map),i=t.length,s=[];for(let n=0;n<i;++n){const o=t[n];r.has(o)?r.set(o,r.get(o)+1):(r.set(o,1),s.push(o))}if(this._isConnected){const n=this.element;for(let o=0;o<s.length;++o)s[o].bind(n,le)}}removeBehaviors(t,r=!1){const i=this.behaviors;if(i===null)return;const s=t.length,n=[];for(let o=0;o<s;++o){const a=t[o];if(i.has(a)){const l=i.get(a)-1;l===0||r?i.delete(a)&&n.push(a):i.set(a,l)}}if(this._isConnected){const o=this.element;for(let a=0;a<n.length;++a)n[a].unbind(o)}}onConnectedCallback(){if(this._isConnected)return;const t=this.element;this.needsInitialization?this.finishInitialization():this.view!==null&&this.view.bind(t,le);const r=this.behaviors;if(r!==null)for(const[i]of r)i.bind(t,le);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const t=this.view;t!==null&&t.unbind();const r=this.behaviors;if(r!==null){const i=this.element;for(const[s]of r)s.unbind(i)}}onAttributeChangedCallback(t,r,i){const s=this.definition.attributeLookup[t];s!==void 0&&s.onAttributeChangedCallback(this.element,i)}emit(t,r,i){return this._isConnected?this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:r},ol),i))):!1}finishInitialization(){const t=this.element,r=this.boundObservables;if(r!==null){const s=Object.keys(r);for(let n=0,o=s.length;n<o;++n){const a=s[n];t[a]=r[a]}this.boundObservables=null}const i=this.definition;this._template===null&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():i.template&&(this._template=i.template||null)),this._template!==null&&this.renderTemplate(this._template),this._styles===null&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():i.styles&&(this._styles=i.styles||null)),this._styles!==null&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(t){const r=this.element,i=Jr(r)||r;this.view!==null?(this.view.dispose(),this.view=null):this.needsInitialization||$.removeChildNodes(i),t&&(this.view=t.render(r,i,r))}static forCustomElement(t){const r=t.$fastController;if(r!==void 0)return r;const i=$r.forType(t.constructor);if(i===void 0)throw new Error("Missing FASTElement definition.");return t.$fastController=new Ni(t,i)}}function ms(e){return class extends e{constructor(){super(),Ni.forCustomElement(this)}$emit(t,r,i){return this.$fastController.emit(t,r,i)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(t,r,i){this.$fastController.onAttributeChangedCallback(t,r,i)}}}const Sr=Object.assign(ms(HTMLElement),{from(e){return ms(e)},define(e,t){return new $r(e,t).define().type}});class Mi{createCSS(){return""}createBehavior(){}}function Jn(e,t){const r=[];let i="";const s=[];for(let n=0,o=e.length-1;n<o;++n){i+=e[n];let a=t[n];if(a instanceof Mi){const l=a.createBehavior();a=a.createCSS(),l&&s.push(l)}a instanceof H||a instanceof CSSStyleSheet?(i.trim()!==""&&(r.push(i),i=""),r.push(a)):i+=a}return i+=e[e.length-1],i.trim()!==""&&r.push(i),{styles:r,behaviors:s}}function it(e,...t){const{styles:r,behaviors:i}=Jn(e,t),s=H.create(r);return i.length&&s.withBehaviors(...i),s}class al extends Mi{constructor(t,r){super(),this.behaviors=r,this.css="";const i=t.reduce((s,n)=>(typeof n=="string"?this.css+=n:s.push(n),s),[]);i.length&&(this.styles=H.create(i))}createBehavior(){return this}createCSS(){return this.css}bind(t){this.styles&&t.$fastController.addStyles(this.styles),this.behaviors.length&&t.$fastController.addBehaviors(this.behaviors)}unbind(t){this.styles&&t.$fastController.removeStyles(this.styles),this.behaviors.length&&t.$fastController.removeBehaviors(this.behaviors)}}function Y(e,...t){const{styles:r,behaviors:i}=Jn(e,t);return new al(r,i)}class ll{constructor(t,r){this.target=t,this.propertyName=r}bind(t){t[this.propertyName]=this.target}unbind(){}}function lt(e){return new Un("fast-ref",ll,e)}class cl{constructor(t,r){this.target=t,this.options=r,this.source=null}bind(t){const r=this.options.property;this.shouldUpdate=V.getAccessors(t).some(i=>i.name===r),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(oe),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return this.options.filter!==void 0&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class ul extends cl{constructor(t,r){super(t,r)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function Qn(e){return typeof e=="string"&&(e={property:e}),new Un("fast-slotted",ul,e)}class hl{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const dl=(e,t)=>At`
<span
part="end"
${lt("endContainer")}
class=${r=>t.end?"end":void 0}
>
<slot name="end" ${lt("end")} @slotchange="${r=>r.handleEndContentChange()}">
${t.end||""}
</slot>
</span>
`,fl=(e,t)=>At`
<span
part="start"
${lt("startContainer")}
class="${r=>t.start?"start":void 0}"
>
<slot
name="start"
${lt("start")}
@slotchange="${r=>r.handleStartContentChange()}"
>
${t.start||""}
</slot>
</span>
`;At`
<span part="end" ${lt("endContainer")}>
<slot
name="end"
${lt("end")}
@slotchange="${e=>e.handleEndContentChange()}"
></slot>
</span>
`;At`
<span part="start" ${lt("startContainer")}>
<slot
name="start"
${lt("start")}
@slotchange="${e=>e.handleStartContentChange()}"
></slot>
</span>
`;/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function m(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}const Qr=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(r){Reflect.defineMetadata(e,t,r)}},Reflect.defineMetadata=function(e,t,r){let i=Qr.get(r);i===void 0&&Qr.set(r,i=new Map),i.set(e,t)},Reflect.getOwnMetadata=function(e,t){const r=Qr.get(t);if(r!==void 0)return r.get(e)});class pl{constructor(t,r){this.container=t,this.key=r}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,to(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,r){const{container:i,key:s}=this;return this.container=this.key=void 0,i.registerResolver(s,new X(s,t,r))}}function Jt(e){const t=e.slice(),r=Object.keys(e),i=r.length;let s;for(let n=0;n<i;++n)s=r[n],eo(s)||(t[s]=e[s]);return t}const gl=Object.freeze({none(e){throw Error(`${e.toString()} not registered, did you forget to add @singleton()?`)},singleton(e){return new X(e,1,e)},transient(e){return new X(e,2,e)}}),Kr=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:gl.singleton})}),ys=new Map;function ws(e){return t=>Reflect.getOwnMetadata(e,t)}let $s=null;const D=Object.freeze({createContainer(e){return new ce(null,Object.assign({},Kr.default,e))},findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:D.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(Kn,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||D.getOrCreateDOMContainer()},getOrCreateDOMContainer(e,t){return e?e.$$container$$||new ce(e,Object.assign({},Kr.default,t,{parentLocator:D.findParentContainer})):$s||($s=new ce(null,Object.assign({},Kr.default,t,{parentLocator:()=>null})))},getDesignParamtypes:ws("design:paramtypes"),getAnnotationParamtypes:ws("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return t===void 0&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=ys.get(e);if(t===void 0){const r=e.inject;if(r===void 0){const i=D.getDesignParamtypes(e),s=D.getAnnotationParamtypes(e);if(i===void 0)if(s===void 0){const n=Object.getPrototypeOf(e);typeof n=="function"&&n!==Function.prototype?t=Jt(D.getDependencies(n)):t=[]}else t=Jt(s);else if(s===void 0)t=Jt(i);else{t=Jt(i);let n=s.length,o;for(let c=0;c<n;++c)o=s[c],o!==void 0&&(t[c]=o);const a=Object.keys(s);n=a.length;let l;for(let c=0;c<n;++c)l=a[c],eo(l)||(t[l]=s[l])}}else t=Jt(r);ys.set(e,t)}return t},defineProperty(e,t,r,i=!1){const s=`$di_${t}`;Reflect.defineProperty(e,t,{get:function(){let n=this[s];if(n===void 0&&(n=(this instanceof HTMLElement?D.findResponsibleContainer(this):D.getOrCreateDOMContainer()).get(r),this[s]=n,i&&this instanceof Sr)){const a=this.$fastController,l=()=>{const u=D.findResponsibleContainer(this).get(r),d=this[s];u!==d&&(this[s]=n,a.notify(t))};a.subscribe({handleChange:l},"isConnected")}return n}})},createInterface(e,t){const r=typeof e=="function"?e:t,i=typeof e=="string"?e:e&&"friendlyName"in e&&e.friendlyName||Cs,s=typeof e=="string"?!1:e&&"respectConnection"in e&&e.respectConnection||!1,n=function(o,a,l){if(o==null||new.target!==void 0)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(a)D.defineProperty(o,a,n,s);else{const c=D.getOrCreateAnnotationParamTypes(o);c[l]=n}};return n.$isInterface=!0,n.friendlyName=i??"(anonymous)",r!=null&&(n.register=function(o,a){return r(new pl(o,a??n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject(...e){return function(t,r,i){if(typeof i=="number"){const s=D.getOrCreateAnnotationParamTypes(t),n=e[0];n!==void 0&&(s[i]=n)}else if(r)D.defineProperty(t,r,e[0]);else{const s=i?D.getOrCreateAnnotationParamTypes(i.value):D.getOrCreateAnnotationParamTypes(t);let n;for(let o=0;o<e.length;++o)n=e[o],n!==void 0&&(s[o]=n)}}},transient(e){return e.register=function(r){return ge.transient(e,e).register(r)},e.registerInRequestor=!1,e},singleton(e,t=bl){return e.register=function(i){return ge.singleton(e,e).register(i)},e.registerInRequestor=t.scoped,e}}),vl=D.createInterface("Container");D.inject;const bl={scoped:!1};class X{constructor(t,r,i){this.key=t,this.strategy=r,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(t){return t.registerResolver(this.key,this)}resolve(t,r){switch(this.strategy){case 0:return this.state;case 1:{if(this.resolving)throw new Error(`Cyclic dependency found: ${this.state.name}`);return this.resolving=!0,this.state=t.getFactory(this.state).construct(r),this.strategy=0,this.resolving=!1,this.state}case 2:{const i=t.getFactory(this.state);if(i===null)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(r)}case 3:return this.state(t,r,this);case 4:return this.state[0].resolve(t,r);case 5:return r.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(t){var r,i,s;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return(s=(i=(r=t.getResolver(this.state))===null||r===void 0?void 0:r.getFactory)===null||i===void 0?void 0:i.call(r,t))!==null&&s!==void 0?s:null;default:return null}}}function Ss(e){return this.get(e)}function ml(e,t){return t(e)}class yl{constructor(t,r){this.Type=t,this.dependencies=r,this.transformers=null}construct(t,r){let i;return r===void 0?i=new this.Type(...this.dependencies.map(Ss,t)):i=new this.Type(...this.dependencies.map(Ss,t),...r),this.transformers==null?i:this.transformers.reduce(ml,i)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}}const wl={$isResolver:!0,resolve(e,t){return t}};function Ze(e){return typeof e.register=="function"}function $l(e){return Ze(e)&&typeof e.registerInRequestor=="boolean"}function xs(e){return $l(e)&&e.registerInRequestor}function Sl(e){return e.prototype!==void 0}const xl=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),Kn="__DI_LOCATE_PARENT__",ti=new Map;class ce{constructor(t,r){this.owner=t,this.config=r,this._parent=void 0,this.registerDepth=0,this.context=null,t!==null&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(vl,wl),t instanceof Node&&t.addEventListener(Kn,i=>{i.composedPath()[0]!==this.owner&&(i.detail.container=this,i.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...r){return this.context=t,this.register(...r),this.context=null,this}register(...t){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let r,i,s,n,o;const a=this.context;for(let l=0,c=t.length;l<c;++l)if(r=t[l],!!ks(r))if(Ze(r))r.register(this,a);else if(Sl(r))ge.singleton(r,r).register(this);else for(i=Object.keys(r),n=0,o=i.length;n<o;++n)s=r[i[n]],ks(s)&&(Ze(s)?s.register(this,a):this.register(s));return--this.registerDepth,this}registerResolver(t,r){Pe(t);const i=this.resolvers,s=i.get(t);return s==null?i.set(t,r):s instanceof X&&s.strategy===4?s.state.push(r):i.set(t,new X(t,4,[s,r])),r}registerTransformer(t,r){const i=this.getResolver(t);if(i==null)return!1;if(i.getFactory){const s=i.getFactory(this);return s==null?!1:(s.registerTransformer(r),!0)}return!1}getResolver(t,r=!0){if(Pe(t),t.resolve!==void 0)return t;let i=this,s;for(;i!=null;)if(s=i.resolvers.get(t),s==null){if(i.parent==null){const n=xs(t)?this:i;return r?this.jitRegister(t,n):null}i=i.parent}else return s;return null}has(t,r=!1){return this.resolvers.has(t)?!0:r&&this.parent!=null?this.parent.has(t,!0):!1}get(t){if(Pe(t),t.$isResolver)return t.resolve(this,this);let r=this,i;for(;r!=null;)if(i=r.resolvers.get(t),i==null){if(r.parent==null){const s=xs(t)?this:r;return i=this.jitRegister(t,s),i.resolve(r,this)}r=r.parent}else return i.resolve(r,this);throw new Error(`Unable to resolve key: ${String(t)}`)}getAll(t,r=!1){Pe(t);const i=this;let s=i,n;if(r){let o=oe;for(;s!=null;)n=s.resolvers.get(t),n!=null&&(o=o.concat(Fs(n,s,i))),s=s.parent;return o}else for(;s!=null;)if(n=s.resolvers.get(t),n==null){if(s=s.parent,s==null)return oe}else return Fs(n,s,i);return oe}getFactory(t){let r=ti.get(t);if(r===void 0){if(Fl(t))throw new Error(`${t.name} is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.`);ti.set(t,r=new yl(t,D.getDependencies(t)))}return r}registerFactory(t,r){ti.set(t,r)}createChild(t){return new ce(null,Object.assign({},this.config,t,{parentLocator:()=>this}))}jitRegister(t,r){if(typeof t!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(xl.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(Ze(t)){const i=t.register(r);if(!(i instanceof Object)||i.resolve==null){const s=r.resolvers.get(t);if(s!=null)return s;throw new Error("A valid resolver was not returned from the static register method")}return i}else{if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{const i=this.config.defaultResolver(t,r);return r.resolvers.set(t,i),i}}}}const ei=new WeakMap;function to(e){return function(t,r,i){if(ei.has(i))return ei.get(i);const s=e(t,r,i);return ei.set(i,s),s}}const ge=Object.freeze({instance(e,t){return new X(e,0,t)},singleton(e,t){return new X(e,1,t)},transient(e,t){return new X(e,2,t)},callback(e,t){return new X(e,3,t)},cachedCallback(e,t){return new X(e,3,to(t))},aliasTo(e,t){return new X(t,5,e)}});function Pe(e){if(e==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function Fs(e,t,r){if(e instanceof X&&e.strategy===4){const i=e.state;let s=i.length;const n=new Array(s);for(;s--;)n[s]=i[s].resolve(t,r);return n}return[e.resolve(t,r)]}const Cs="(anonymous)";function ks(e){return typeof e=="object"&&e!==null||typeof e=="function"}const Fl=function(){const e=new WeakMap;let t=!1,r="",i=0;return function(s){return t=e.get(s),t===void 0&&(r=s.toString(),i=r.length,t=i>=29&&i<=100&&r.charCodeAt(i-1)===125&&r.charCodeAt(i-2)<=32&&r.charCodeAt(i-3)===93&&r.charCodeAt(i-4)===101&&r.charCodeAt(i-5)===100&&r.charCodeAt(i-6)===111&&r.charCodeAt(i-7)===99&&r.charCodeAt(i-8)===32&&r.charCodeAt(i-9)===101&&r.charCodeAt(i-10)===118&&r.charCodeAt(i-11)===105&&r.charCodeAt(i-12)===116&&r.charCodeAt(i-13)===97&&r.charCodeAt(i-14)===110&&r.charCodeAt(i-15)===88,e.set(s,t)),t}}(),Le={};function eo(e){switch(typeof e){case"number":return e>=0&&(e|0)===e;case"string":{const t=Le[e];if(t!==void 0)return t;const r=e.length;if(r===0)return Le[e]=!1;let i=0;for(let s=0;s<r;++s)if(i=e.charCodeAt(s),s===0&&i===48&&r>1||i<48||i>57)return Le[e]=!1;return Le[e]=!0}default:return!1}}function Ds(e){return`${e.toLowerCase()}:presentation`}const Ne=new Map,ro=Object.freeze({define(e,t,r){const i=Ds(e);Ne.get(i)===void 0?Ne.set(i,t):Ne.set(i,!1),r.register(ge.instance(i,t))},forTag(e,t){const r=Ds(e),i=Ne.get(r);return i===!1?D.findResponsibleContainer(t).get(r):i||null}});class Cl{constructor(t,r){this.template=t||null,this.styles=r===void 0?null:Array.isArray(r)?H.create(r):r instanceof H?r:H.create([r])}applyTo(t){const r=t.$fastController;r.template===null&&(r.template=this.template),r.styles===null&&(r.styles=this.styles)}}class ct extends Sr{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=ro.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(r={})=>new kl(this===ct?class extends ct{}:this,t,r)}}m([rt],ct.prototype,"template",void 0);m([rt],ct.prototype,"styles",void 0);function Qt(e,t,r){return typeof e=="function"?e(t,r):e}class kl{constructor(t,r,i){this.type=t,this.elementDefinition=r,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,r){const i=this.definition,s=this.overrideDefinition,o=`${i.prefix||r.elementPrefix}-${i.baseName}`;r.tryDefineElement({name:o,type:this.type,baseClass:this.elementDefinition.baseClass,callback:a=>{const l=new Cl(Qt(i.template,a,i),Qt(i.styles,a,i));a.definePresentation(l);let c=Qt(i.shadowOptions,a,i);a.shadowRootMode&&(c?s.shadowOptions||(c.mode=a.shadowRootMode):c!==null&&(c={mode:a.shadowRootMode})),a.defineElement({elementOptions:Qt(i.elementOptions,a,i),shadowOptions:c,attributes:Qt(i.attributes,a,i)})}})}}function io(e,...t){const r=ar.locate(e);t.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(i.prototype,n))}),ar.locate(i).forEach(n=>r.push(n))})}function Dl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function _l(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}let yt;function Al(){if(typeof yt=="boolean")return yt;if(!Dl())return yt=!1,yt;const e=document.createElement("style"),t=_l();t!==null&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),yt=!0}catch{yt=!1}finally{document.head.removeChild(e)}return yt}var _s;(function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"})(_s||(_s={}));const Vl="Enter",Tl=" ";var yi;(function(e){e.ltr="ltr",e.rtl="rtl"})(yi||(yi={}));var y;(function(e){e.Canvas="Canvas",e.CanvasText="CanvasText",e.LinkText="LinkText",e.VisitedText="VisitedText",e.ActiveText="ActiveText",e.ButtonFace="ButtonFace",e.ButtonText="ButtonText",e.Field="Field",e.FieldText="FieldText",e.Highlight="Highlight",e.HighlightText="HighlightText",e.GrayText="GrayText"})(y||(y={}));class E{}m([b({attribute:"aria-atomic"})],E.prototype,"ariaAtomic",void 0);m([b({attribute:"aria-busy"})],E.prototype,"ariaBusy",void 0);m([b({attribute:"aria-controls"})],E.prototype,"ariaControls",void 0);m([b({attribute:"aria-current"})],E.prototype,"ariaCurrent",void 0);m([b({attribute:"aria-describedby"})],E.prototype,"ariaDescribedby",void 0);m([b({attribute:"aria-details"})],E.prototype,"ariaDetails",void 0);m([b({attribute:"aria-disabled"})],E.prototype,"ariaDisabled",void 0);m([b({attribute:"aria-errormessage"})],E.prototype,"ariaErrormessage",void 0);m([b({attribute:"aria-flowto"})],E.prototype,"ariaFlowto",void 0);m([b({attribute:"aria-haspopup"})],E.prototype,"ariaHaspopup",void 0);m([b({attribute:"aria-hidden"})],E.prototype,"ariaHidden",void 0);m([b({attribute:"aria-invalid"})],E.prototype,"ariaInvalid",void 0);m([b({attribute:"aria-keyshortcuts"})],E.prototype,"ariaKeyshortcuts",void 0);m([b({attribute:"aria-label"})],E.prototype,"ariaLabel",void 0);m([b({attribute:"aria-labelledby"})],E.prototype,"ariaLabelledby",void 0);m([b({attribute:"aria-live"})],E.prototype,"ariaLive",void 0);m([b({attribute:"aria-owns"})],E.prototype,"ariaOwns",void 0);m([b({attribute:"aria-relevant"})],E.prototype,"ariaRelevant",void 0);m([b({attribute:"aria-roledescription"})],E.prototype,"ariaRoledescription",void 0);const As="form-associated-proxy",Vs="ElementInternals",Ts=Vs in window&&"setFormValue"in window[Vs].prototype,Rs=new WeakMap;function so(e){const t=class extends e{constructor(...r){super(...r),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return Ts}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const r=this.proxy.labels,i=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),s=r?i.concat(Array.from(r)):i;return Object.freeze(s)}else return oe}valueChanged(r,i){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(r,i){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(r,i){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),$.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(r,i){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(r,i){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),$.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!Ts)return null;let r=Rs.get(this);return r||(r=this.attachInternals(),Rs.set(this,r)),r}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(r=>this.proxy.removeEventListener(r,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(r,i,s){this.elementInternals?this.elementInternals.setValidity(r,i,s):typeof i=="string"&&this.proxy.setCustomValidity(i)}formDisabledCallback(r){this.disabled=r}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var r;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(i=>this.proxy.addEventListener(i,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",As),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",As)),(r=this.shadowRoot)===null||r===void 0||r.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var r;this.removeChild(this.proxy),(r=this.shadowRoot)===null||r===void 0||r.removeChild(this.proxySlot)}validate(r){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,r)}setFormValue(r,i){this.elementInternals&&this.elementInternals.setFormValue(r,i||r)}_keypressHandler(r){switch(r.key){case Vl:if(this.form instanceof HTMLFormElement){const i=this.form.querySelector("[type=submit]");i?.click()}break}}stopPropagation(r){r.stopPropagation()}};return b({mode:"boolean"})(t.prototype,"disabled"),b({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),b({attribute:"current-value"})(t.prototype,"currentValue"),b(t.prototype,"name"),b({mode:"boolean"})(t.prototype,"required"),rt(t.prototype,"value"),t}function Rl(e){class t extends so(e){}class r extends t{constructor(...s){super(s),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(s,n){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),s!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(s,n){this.checked=this.currentChecked}updateForm(){const s=this.checked?this.value:null;this.setFormValue(s,s)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return b({attribute:"checked",mode:"boolean"})(r.prototype,"checkedAttribute"),b({attribute:"current-checked",converter:Yn})(r.prototype,"currentChecked"),rt(r.prototype,"defaultChecked"),rt(r.prototype,"checked"),r}const El=(e,t)=>At`
<slot></slot>
`;let no=class extends ct{};const Il=(e,t)=>At`
<template
role="checkbox"
aria-checked="${r=>r.checked}"
aria-required="${r=>r.required}"
aria-disabled="${r=>r.disabled}"
aria-readonly="${r=>r.readOnly}"
tabindex="${r=>r.disabled?null:0}"
@keypress="${(r,i)=>r.keypressHandler(i.event)}"
@click="${(r,i)=>r.clickHandler(i.event)}"
class="${r=>r.readOnly?"readonly":""} ${r=>r.checked?"checked":""} ${r=>r.indeterminate?"indeterminate":""}"
>
<div part="control" class="control">
<slot name="checked-indicator">
${t.checkedIndicator||""}
</slot>
<slot name="indeterminate-indicator">
${t.indeterminateIndicator||""}
</slot>
</div>
<label
part="label"
class="${r=>r.defaultSlottedNodes&&r.defaultSlottedNodes.length?"label":"label label__hidden"}"
>
<slot ${Qn("defaultSlottedNodes")}></slot>
</label>
</template>
`;class Ol extends ct{}class Pl extends Rl(Ol){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class xr extends Pl{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{if(!this.readOnly)switch(t.key){case Tl:this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked;break}},this.clickHandler=t=>{!this.disabled&&!this.readOnly&&(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}m([b({attribute:"readonly",mode:"boolean"})],xr.prototype,"readOnly",void 0);m([rt],xr.prototype,"defaultSlottedNodes",void 0);m([rt],xr.prototype,"indeterminate",void 0);function cr(e){const t=e.parentElement;if(t)return t;{const r=e.getRootNode();if(r.host instanceof HTMLElement)return r.host}return null}function Ll(e,t){let r=t;for(;r!==null;){if(r===e)return!0;r=cr(r)}return!1}const nt=document.createElement("div");function Nl(e){return e instanceof Sr}class Bi{setProperty(t,r){$.queueUpdate(()=>this.target.setProperty(t,r))}removeProperty(t){$.queueUpdate(()=>this.target.removeProperty(t))}}class Ml extends Bi{constructor(t){super();const r=new CSSStyleSheet;this.target=r.cssRules[r.insertRule(":host{}")].style,t.$fastController.addStyles(H.create([r]))}}class Bl extends Bi{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class Hl extends Bi{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const r=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[r].style}}}class oo{constructor(t){this.store=new Map,this.target=null;const r=t.$fastController;this.style=document.createElement("style"),r.addStyles(this.style),V.getNotifier(r).subscribe(this,"isConnected"),this.handleChange(r,"isConnected")}targetChanged(){if(this.target!==null)for(const[t,r]of this.store.entries())this.target.setProperty(t,r)}setProperty(t,r){this.store.set(t,r),$.queueUpdate(()=>{this.target!==null&&this.target.setProperty(t,r)})}removeProperty(t){this.store.delete(t),$.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(t)})}handleChange(t,r){const{sheet:i}=this.style;if(i){const s=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[s].style}else this.target=null}}m([rt],oo.prototype,"target",void 0);class zl{constructor(t){this.target=t.style}setProperty(t,r){$.queueUpdate(()=>this.target.setProperty(t,r))}removeProperty(t){$.queueUpdate(()=>this.target.removeProperty(t))}}class O{setProperty(t,r){O.properties[t]=r;for(const i of O.roots.values())Pt.getOrCreate(O.normalizeRoot(i)).setProperty(t,r)}removeProperty(t){delete O.properties[t];for(const r of O.roots.values())Pt.getOrCreate(O.normalizeRoot(r)).removeProperty(t)}static registerRoot(t){const{roots:r}=O;if(!r.has(t)){r.add(t);const i=Pt.getOrCreate(this.normalizeRoot(t));for(const s in O.properties)i.setProperty(s,O.properties[s])}}static unregisterRoot(t){const{roots:r}=O;if(r.has(t)){r.delete(t);const i=Pt.getOrCreate(O.normalizeRoot(t));for(const s in O.properties)i.removeProperty(s)}}static normalizeRoot(t){return t===nt?document:t}}O.roots=new Set;O.properties={};const ri=new WeakMap,jl=$.supportsAdoptedStyleSheets?Ml:oo,Pt=Object.freeze({getOrCreate(e){if(ri.has(e))return ri.get(e);let t;return e===nt?t=new O:e instanceof Document?t=$.supportsAdoptedStyleSheets?new Bl:new Hl:Nl(e)?t=new jl(e):t=new zl(e),ri.set(e,t),t}});class M extends Mi{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,t.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=M.uniqueId(),M.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new M({name:typeof t=="string"?t:t.name,cssCustomPropertyName:typeof t=="string"?t:t.cssCustomPropertyName===void 0?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return typeof t.cssCustomProperty=="string"}static isDerivedDesignTokenValue(t){return typeof t=="function"}static getTokenById(t){return M.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const r=A.getOrCreate(t).get(this);if(r!==void 0)return r;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,r){return this._appliedTo.add(t),r instanceof M&&(r=this.alias(r)),A.getOrCreate(t).set(this,r),this}deleteValueFor(t){return this._appliedTo.delete(t),A.existsFor(t)&&A.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(nt,t),this}subscribe(t,r){const i=this.getOrCreateSubscriberSet(r);r&&!A.existsFor(r)&&A.getOrCreate(r),i.has(t)||i.add(t)}unsubscribe(t,r){const i=this.subscribers.get(r||this);i&&i.has(t)&&i.delete(t)}notify(t){const r=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(i=>i.handleChange(r)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(i=>i.handleChange(r))}alias(t){return r=>t.getValueFor(r)}}M.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})();M.tokensById=new Map;class Ul{startReflection(t,r){t.subscribe(this,r),this.handleChange({token:t,target:r})}stopReflection(t,r){t.unsubscribe(this,r),this.remove(t,r)}handleChange(t){const{token:r,target:i}=t;this.add(r,i)}add(t,r){Pt.getOrCreate(r).setProperty(t.cssCustomProperty,this.resolveCSSValue(A.getOrCreate(r).get(t)))}remove(t,r){Pt.getOrCreate(r).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&typeof t.createCSS=="function"?t.createCSS():t}}class ql{constructor(t,r,i){this.source=t,this.token=r,this.node=i,this.dependencies=new Set,this.observer=V.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,le))}}class Wl{constructor(){this.values=new Map}set(t,r){this.values.get(t)!==r&&(this.values.set(t,r),V.getNotifier(this).notify(t.id))}get(t){return V.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const Kt=new WeakMap,te=new WeakMap;class A{constructor(t){this.target=t,this.store=new Wl,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(r,i)=>{const s=M.getTokenById(i);s&&(s.notify(this.target),this.updateCSSTokenReflection(r,s))}},Kt.set(t,this),V.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof Sr?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return Kt.get(t)||new A(t)}static existsFor(t){return Kt.has(t)}static findParent(t){if(nt!==t.target){let r=cr(t.target);for(;r!==null;){if(Kt.has(r))return Kt.get(r);r=cr(r)}return A.getOrCreate(nt)}return null}static findClosestAssignedNode(t,r){let i=r;do{if(i.has(t))return i;i=i.parent?i.parent:i.target!==nt?A.getOrCreate(nt):null}while(i!==null);return null}get parent(){return te.get(this)||null}updateCSSTokenReflection(t,r){if(M.isCSSDesignToken(r)){const i=this.parent,s=this.isReflecting(r);if(i){const n=i.get(r),o=t.get(r);n!==o&&!s?this.reflectToCSS(r):n===o&&s&&this.stopReflectToCSS(r)}else s||this.reflectToCSS(r)}}has(t){return this.assignedValues.has(t)}get(t){const r=this.store.get(t);if(r!==void 0)return r;const i=this.getRaw(t);if(i!==void 0)return this.hydrate(t,i),this.get(t)}getRaw(t){var r;return this.assignedValues.has(t)?this.assignedValues.get(t):(r=A.findClosestAssignedNode(t,this))===null||r===void 0?void 0:r.getRaw(t)}set(t,r){M.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,r),M.isDerivedDesignTokenValue(r)?this.setupBindingObserver(t,r):this.store.set(t,r)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const r=this.getRaw(t);r?this.hydrate(t,r):this.store.delete(t)}bind(){const t=A.findParent(this);t&&t.appendChild(this);for(const r of this.assignedValues.keys())r.notify(this.target)}unbind(){this.parent&&te.get(this).removeChild(this)}appendChild(t){t.parent&&te.get(t).removeChild(t);const r=this.children.filter(i=>t.contains(i));te.set(t,this),this.children.push(t),r.forEach(i=>t.appendChild(i)),V.getNotifier(this.store).subscribe(t);for(const[i,s]of this.store.all())t.hydrate(i,this.bindingObservers.has(i)?this.getRaw(i):s)}removeChild(t){const r=this.children.indexOf(t);return r!==-1&&this.children.splice(r,1),V.getNotifier(this.store).unsubscribe(t),t.parent===this?te.delete(t):!1}contains(t){return Ll(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),A.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),A.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,r){const i=M.getTokenById(r);i&&(this.hydrate(i,this.getRaw(i)),this.updateCSSTokenReflection(this.store,i))}hydrate(t,r){if(!this.has(t)){const i=this.bindingObservers.get(t);M.isDerivedDesignTokenValue(r)?i?i.source!==r&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,r)):this.setupBindingObserver(t,r):(i&&this.tearDownBindingObserver(t),this.store.set(t,r))}}setupBindingObserver(t,r){const i=new ql(r,t,this);return this.bindingObservers.set(t,i),i}tearDownBindingObserver(t){return this.bindingObservers.has(t)?(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0):!1}}A.cssCustomPropertyReflector=new Ul;m([rt],A.prototype,"children",void 0);function Gl(e){return M.from(e)}const _=Object.freeze({create:Gl,notifyConnection(e){return!e.isConnected||!A.existsFor(e)?!1:(A.getOrCreate(e).bind(),!0)},notifyDisconnection(e){return e.isConnected||!A.existsFor(e)?!1:(A.getOrCreate(e).unbind(),!0)},registerRoot(e=nt){O.registerRoot(e)},unregisterRoot(e=nt){O.unregisterRoot(e)}}),ii=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),si=new Map,Je=new Map;let Mt=null;const ee=D.createInterface(e=>e.cachedCallback(t=>(Mt===null&&(Mt=new lo(null,t)),Mt))),ao=Object.freeze({tagFor(e){return Je.get(e)},responsibleFor(e){const t=e.$$designSystem$$;return t||D.findResponsibleContainer(e).get(ee)},getOrCreate(e){if(!e)return Mt===null&&(Mt=D.getOrCreateDOMContainer().get(ee)),Mt;const t=e.$$designSystem$$;if(t)return t;const r=D.getOrCreateDOMContainer(e);if(r.has(ee,!1))return r.get(ee);{const i=new lo(e,r);return r.register(ge.instance(ee,i)),i}}});function Xl(e,t,r){return typeof e=="string"?{name:e,type:t,callback:r}:e}class lo{constructor(t,r){this.owner=t,this.container=r,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>ii.definitionCallbackOnly,t!==null&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const r=this.container,i=[],s=this.disambiguate,n=this.shadowRootMode,o={elementPrefix:this.prefix,tryDefineElement(a,l,c){const u=Xl(a,l,c),{name:d,callback:p,baseClass:v}=u;let{type:g}=u,x=d,R=si.get(x),G=!0;for(;R;){const j=s(x,g,R);switch(j){case ii.ignoreDuplicate:return;case ii.definitionCallbackOnly:G=!1,R=void 0;break;default:x=j,R=si.get(x);break}}G&&((Je.has(g)||g===ct)&&(g=class extends g{}),si.set(x,g),Je.set(g,x),v&&Je.set(v,x)),i.push(new Yl(r,x,g,n,p,G))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&_.registerRoot(this.designTokenRoot)),r.registerWithContext(o,...t);for(const a of i)a.callback(a),a.willDefine&&a.definition!==null&&a.definition.define();return this}}class Yl{constructor(t,r,i,s,n,o){this.container=t,this.name=r,this.type=i,this.shadowRootMode=s,this.callback=n,this.willDefine=o,this.definition=null}definePresentation(t){ro.define(this.name,t,this.container)}defineElement(t){this.definition=new $r(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return ao.tagFor(t)}}class Zl extends ct{}class Jl extends so(Zl){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Ql={email:"email",password:"password",tel:"tel",text:"text",url:"url"};let U=class extends Jl{constructor(){super(...arguments),this.type=Ql.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&$.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};m([b({attribute:"readonly",mode:"boolean"})],U.prototype,"readOnly",void 0);m([b({mode:"boolean"})],U.prototype,"autofocus",void 0);m([b],U.prototype,"placeholder",void 0);m([b],U.prototype,"type",void 0);m([b],U.prototype,"list",void 0);m([b({converter:Li})],U.prototype,"maxlength",void 0);m([b({converter:Li})],U.prototype,"minlength",void 0);m([b],U.prototype,"pattern",void 0);m([b({converter:Li})],U.prototype,"size",void 0);m([b({mode:"boolean"})],U.prototype,"spellcheck",void 0);m([rt],U.prototype,"defaultSlottedNodes",void 0);class co{}io(co,E);io(U,hl,co);function Kl(e,t,r){return e.nodeType!==Node.TEXT_NODE?!0:typeof e.nodeValue=="string"&&!!e.nodeValue.trim().length}const tc=(e,t)=>At`
<template
class="
${r=>r.readOnly?"readonly":""}
"
>
<label
part="label"
for="control"
class="${r=>r.defaultSlottedNodes&&r.defaultSlottedNodes.length?"label":"label label__hidden"}"
>
<slot
${Qn({property:"defaultSlottedNodes",filter:Kl})}
></slot>
</label>
<div class="root" part="root">
${fl(e,t)}
<input
class="control"
part="control"
id="control"
@input="${r=>r.handleTextInput()}"
@change="${r=>r.handleChange()}"
?autofocus="${r=>r.autofocus}"
?disabled="${r=>r.disabled}"
list="${r=>r.list}"
maxlength="${r=>r.maxlength}"
minlength="${r=>r.minlength}"
pattern="${r=>r.pattern}"
placeholder="${r=>r.placeholder}"
?readonly="${r=>r.readOnly}"
?required="${r=>r.required}"
size="${r=>r.size}"
?spellcheck="${r=>r.spellcheck}"
:value="${r=>r.value}"
type="${r=>r.type}"
aria-atomic="${r=>r.ariaAtomic}"
aria-busy="${r=>r.ariaBusy}"
aria-controls="${r=>r.ariaControls}"
aria-current="${r=>r.ariaCurrent}"
aria-describedby="${r=>r.ariaDescribedby}"
aria-details="${r=>r.ariaDetails}"
aria-disabled="${r=>r.ariaDisabled}"
aria-errormessage="${r=>r.ariaErrormessage}"
aria-flowto="${r=>r.ariaFlowto}"
aria-haspopup="${r=>r.ariaHaspopup}"
aria-hidden="${r=>r.ariaHidden}"
aria-invalid="${r=>r.ariaInvalid}"
aria-keyshortcuts="${r=>r.ariaKeyshortcuts}"
aria-label="${r=>r.ariaLabel}"
aria-labelledby="${r=>r.ariaLabelledby}"
aria-live="${r=>r.ariaLive}"
aria-owns="${r=>r.ariaOwns}"
aria-relevant="${r=>r.ariaRelevant}"
aria-roledescription="${r=>r.ariaRoledescription}"
${lt("control")}
/>
${dl(e,t)}
</div>
</template>
`;class ec{constructor(t){this.listenerCache=new WeakMap,this.query=t}bind(t){const{query:r}=this,i=this.constructListener(t);i.bind(r)(),r.addListener(i),this.listenerCache.set(t,i)}unbind(t){const r=this.listenerCache.get(t);r&&(this.query.removeListener(r),this.listenerCache.delete(t))}}class Fe extends ec{constructor(t,r){super(t),this.styles=r}static with(t){return r=>new Fe(t,r)}constructListener(t){let r=!1;const i=this.styles;return function(){const{matches:n}=this;n&&!r?(t.$fastController.addStyles(i),r=n):!n&&r&&(t.$fastController.removeStyles(i),r=n)}}unbind(t){super.unbind(t),t.$fastController.removeStyles(this.styles)}}const Hi=Fe.with(window.matchMedia("(forced-colors)"));Fe.with(window.matchMedia("(prefers-color-scheme: dark)"));Fe.with(window.matchMedia("(prefers-color-scheme: light)"));class rc{constructor(t,r,i){this.propertyName=t,this.value=r,this.styles=i}bind(t){V.getNotifier(t).subscribe(this,this.propertyName),this.handleChange(t,this.propertyName)}unbind(t){V.getNotifier(t).unsubscribe(this,this.propertyName),t.$fastController.removeStyles(this.styles)}handleChange(t,r){t[r]===this.value?t.$fastController.addStyles(this.styles):t.$fastController.removeStyles(this.styles)}}const uo="not-allowed",ic=":host([hidden]){display:none}";function zi(e){return`${ic}:host{display:${e}}`}const Es=Al()?"focus-visible":"focus";function xt(e,t,r){return isNaN(e)||e<=t?t:e>=r?r:e}function ni(e,t,r){return isNaN(e)||e<=t?0:e>=r?1:e/(r-t)}function wt(e,t,r){return isNaN(e)?t:t+e*(r-t)}function sc(e){const t=Math.round(xt(e,0,255)).toString(16);return t.length===1?"0"+t:t}function Me(e,t,r){return isNaN(e)||e<=0?t:e>=1?r:t+e*(r-t)}function B(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}class ve{constructor(t,r,i){this.h=t,this.s=r,this.l=i}static fromObject(t){return t&&!isNaN(t.h)&&!isNaN(t.s)&&!isNaN(t.l)?new ve(t.h,t.s,t.l):null}equalValue(t){return this.h===t.h&&this.s===t.s&&this.l===t.l}roundToPrecision(t){return new ve(B(this.h,t),B(this.s,t),B(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class P{constructor(t,r,i){this.l=t,this.a=r,this.b=i}static fromObject(t){return t&&!isNaN(t.l)&&!isNaN(t.a)&&!isNaN(t.b)?new P(t.l,t.a,t.b):null}equalValue(t){return this.l===t.l&&this.a===t.a&&this.b===t.b}roundToPrecision(t){return new P(B(this.l,t),B(this.a,t),B(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}}P.epsilon=216/24389;P.kappa=24389/27;class T{constructor(t,r,i,s){this.r=t,this.g=r,this.b=i,this.a=typeof s=="number"&&!isNaN(s)?s:1}static fromObject(t){return t&&!isNaN(t.r)&&!isNaN(t.g)&&!isNaN(t.b)?new T(t.r,t.g,t.b,t.a):null}equalValue(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(wt(this.r,0,255))},${Math.round(wt(this.g,0,255))},${Math.round(wt(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(wt(this.r,0,255))},${Math.round(wt(this.g,0,255))},${Math.round(wt(this.b,0,255))},${xt(this.a,0,1)})`}roundToPrecision(t){return new T(B(this.r,t),B(this.g,t),B(this.b,t),B(this.a,t))}clamp(){return new T(xt(this.r,0,1),xt(this.g,0,1),xt(this.b,0,1),xt(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(t){return sc(wt(t,0,255))}}class W{constructor(t,r,i){this.x=t,this.y=r,this.z=i}static fromObject(t){return t&&!isNaN(t.x)&&!isNaN(t.y)&&!isNaN(t.z)?new W(t.x,t.y,t.z):null}equalValue(t){return this.x===t.x&&this.y===t.y&&this.z===t.z}roundToPrecision(t){return new W(B(this.x,t),B(this.y,t),B(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}}W.whitePoint=new W(.95047,1,1.08883);function nc(e){return e.r*.2126+e.g*.7152+e.b*.0722}function ho(e){function t(r){return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return nc(new T(t(e.r),t(e.g),t(e.b),1))}function oi(e,t,r){return r-t===0?0:(e-t)/(r-t)}function ai(e,t,r){const i=oi(e.r,t.r,r.r),s=oi(e.g,t.g,r.g),n=oi(e.b,t.b,r.b);return(i+s+n)/3}function oc(e,t,r=null){let i=0,s=r;return s!==null?i=ai(e,t,s):(s=new T(0,0,0,1),i=ai(e,t,s),i<=0&&(s=new T(1,1,1,1),i=ai(e,t,s))),i=Math.round(i*1e3)/1e3,new T(s.r,s.g,s.b,i)}function Is(e){const t=Math.max(e.r,e.g,e.b),r=Math.min(e.r,e.g,e.b),i=t-r;let s=0;i!==0&&(t===e.r?s=60*((e.g-e.b)/i%6):t===e.g?s=60*((e.b-e.r)/i+2):s=60*((e.r-e.g)/i+4)),s<0&&(s+=360);const n=(t+r)/2;let o=0;return i!==0&&(o=i/(1-Math.abs(2*n-1))),new ve(s,o,n)}function ac(e,t=1){const r=(1-Math.abs(2*e.l-1))*e.s,i=r*(1-Math.abs(e.h/60%2-1)),s=e.l-r/2;let n=0,o=0,a=0;return e.h<60?(n=r,o=i,a=0):e.h<120?(n=i,o=r,a=0):e.h<180?(n=0,o=r,a=i):e.h<240?(n=0,o=i,a=r):e.h<300?(n=i,o=0,a=r):e.h<360&&(n=r,o=0,a=i),new T(n+s,o+s,a+s,t)}function lc(e){const t=(e.l+16)/116,r=t+e.a/500,i=t-e.b/200,s=Math.pow(r,3),n=Math.pow(t,3),o=Math.pow(i,3);let a=0;s>P.epsilon?a=s:a=(116*r-16)/P.kappa;let l=0;e.l>P.epsilon*P.kappa?l=n:l=e.l/P.kappa;let c=0;return o>P.epsilon?c=o:c=(116*i-16)/P.kappa,a=W.whitePoint.x*a,l=W.whitePoint.y*l,c=W.whitePoint.z*c,new W(a,l,c)}function cc(e){function t(l){return l>P.epsilon?Math.pow(l,1/3):(P.kappa*l+16)/116}const r=t(e.x/W.whitePoint.x),i=t(e.y/W.whitePoint.y),s=t(e.z/W.whitePoint.z),n=116*i-16,o=500*(r-i),a=200*(i-s);return new P(n,o,a)}function uc(e){function t(l){return l<=.04045?l/12.92:Math.pow((l+.055)/1.055,2.4)}const r=t(e.r),i=t(e.g),s=t(e.b),n=r*.4124564+i*.3575761+s*.1804375,o=r*.2126729+i*.7151522+s*.072175,a=r*.0193339+i*.119192+s*.9503041;return new W(n,o,a)}function hc(e,t=1){function r(o){return o<=.0031308?o*12.92:1.055*Math.pow(o,1/2.4)-.055}const i=r(e.x*3.2404542-e.y*1.5371385-e.z*.4985314),s=r(e.x*-.969266+e.y*1.8760108+e.z*.041556),n=r(e.x*.0556434-e.y*.2040259+e.z*1.0572252);return new T(i,s,n,t)}function dc(e){return cc(uc(e))}function li(e,t=1){return hc(lc(e),t)}var Os;(function(e){e[e.Burn=0]="Burn",e[e.Color=1]="Color",e[e.Darken=2]="Darken",e[e.Dodge=3]="Dodge",e[e.Lighten=4]="Lighten",e[e.Multiply=5]="Multiply",e[e.Overlay=6]="Overlay",e[e.Screen=7]="Screen"})(Os||(Os={}));function fc(e,t){if(t.a>=1)return t;if(t.a<=0)return new T(e.r,e.g,e.b,1);const r=t.a*t.r+(1-t.a)*e.r,i=t.a*t.g+(1-t.a)*e.g,s=t.a*t.b+(1-t.a)*e.b;return new T(r,i,s,1)}function Be(e,t,r){return isNaN(e)||e<=0?t:e>=1?r:new T(Me(e,t.r,r.r),Me(e,t.g,r.g),Me(e,t.b,r.b),Me(e,t.a,r.a))}var Ps;(function(e){e[e.RGB=0]="RGB",e[e.HSL=1]="HSL",e[e.HSV=2]="HSV",e[e.XYZ=3]="XYZ",e[e.LAB=4]="LAB",e[e.LCH=5]="LCH"})(Ps||(Ps={}));const pc=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function Bt(e){const t=pc.exec(e);if(t===null)return null;let r=t[1];if(r.length===3){const s=r.charAt(0),n=r.charAt(1),o=r.charAt(2);r=s.concat(s,n,n,o,o)}const i=parseInt(r,16);return isNaN(i)?null:new T(ni((i&16711680)>>>16,0,255),ni((i&65280)>>>8,0,255),ni(i&255,0,255),1)}function ur(e,t){const r=e.relativeLuminance>t.relativeLuminance?e:t,i=e.relativeLuminance>t.relativeLuminance?t:e;return(r.relativeLuminance+.05)/(i.relativeLuminance+.05)}const tt=Object.freeze({create(e,t,r){return new hr(e,t,r)},from(e){return new hr(e.r,e.g,e.b)}});function gc(e){const t={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const r in t)if(typeof t[r]!=typeof e[r])return!1;return!0}class hr extends T{constructor(t,r,i){super(t,r,i,1),this.toColorString=this.toStringHexRGB,this.contrast=ur.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=ho(this)}static fromObject(t){return new hr(t.r,t.g,t.b)}}function wi(e,t,r=0,i=e.length-1){if(i===r)return e[r];const s=Math.floor((i-r)/2)+r;return t(e[s])?wi(e,t,r,s):wi(e,t,s+1,i)}const vc=(-.1+Math.sqrt(.21))/2;function Ce(e){return e.relativeLuminance<=vc}function Vt(e){return Ce(e)?-1:1}const Ls={stepContrast:1.03,stepContrastRamp:.03,preserveSource:!1};function bc(e,t,r){return typeof e=="number"?be.from(tt.create(e,t,r)):be.from(e)}function mc(e,t){return gc(e)?et.from(e,t):et.from(tt.create(e.r,e.g,e.b),t)}const be=Object.freeze({create:bc,from:mc});class et{constructor(t,r){this.closestIndexCache=new Map,this.source=t,this.swatches=r,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(t,r,i,s){i===void 0&&(i=this.closestIndexOf(t));let n=this.swatches;const o=this.lastIndex;let a=i;s===void 0&&(s=Vt(t));const l=c=>ur(t,c)>=r;return s===-1&&(n=this.reversedSwatches,a=o-a),wi(n,l,a,o)}get(t){return this.swatches[t]||this.swatches[xt(t,0,this.lastIndex)]}closestIndexOf(t){if(this.closestIndexCache.has(t.relativeLuminance))return this.closestIndexCache.get(t.relativeLuminance);let r=this.swatches.indexOf(t);if(r!==-1)return this.closestIndexCache.set(t.relativeLuminance,r),r;const i=this.swatches.reduce((s,n)=>Math.abs(n.relativeLuminance-t.relativeLuminance)<Math.abs(s.relativeLuminance-t.relativeLuminance)?n:s);return r=this.swatches.indexOf(i),this.closestIndexCache.set(t.relativeLuminance,r),r}static saturationBump(t,r){const s=Is(t).s,n=Is(r);if(n.s<s){const o=new ve(n.h,s,n.l);return ac(o)}return r}static ramp(t){const r=t/100;return r>.5?(r-.5)/.5:2*r}static createHighResolutionPalette(t){const r=[],i=dc(T.fromObject(t).roundToPrecision(4)),s=li(new P(0,i.a,i.b)).clamp().roundToPrecision(4),n=li(new P(50,i.a,i.b)).clamp().roundToPrecision(4),o=li(new P(100,i.a,i.b)).clamp().roundToPrecision(4),a=new T(0,0,0),l=new T(1,1,1),c=o.equalValue(l)?0:14,u=s.equalValue(a)?0:14;for(let d=100+c;d>=0-u;d-=.5){let p;if(d<0){const v=d/u+1;p=Be(v,a,s)}else if(d<=50)p=Be(et.ramp(d),s,n);else if(d<=100)p=Be(et.ramp(d),n,o);else{const v=(d-100)/c;p=Be(v,o,l)}p=et.saturationBump(n,p).roundToPrecision(4),r.push(tt.from(p))}return new et(t,r)}static adjustEnd(t,r,i,s){const n=s===-1?r.swatches:r.reversedSwatches,o=c=>{const u=r.closestIndexOf(c);return s===1?r.lastIndex-u:u};s===1&&i.reverse();const a=t(i[i.length-2]);if(B(ur(i[i.length-1],i[i.length-2]),2)<a){i.pop();const c=r.colorContrast(n[r.lastIndex],a,void 0,s),u=o(c),d=o(i[i.length-2]),p=u-d;let v=1;for(let g=i.length-p-1;g<i.length;g++){const x=o(i[g]),R=g===i.length-1?r.lastIndex:x+v;i[g]=n[R],v++}}s===1&&i.reverse()}static createColorPaletteByContrast(t,r){const i=et.createHighResolutionPalette(t),s=a=>{const l=r.stepContrast+r.stepContrast*(1-a.relativeLuminance)*r.stepContrastRamp;return B(l,2)},n=[];let o=r.preserveSource?t:i.swatches[0];n.push(o);do{const a=s(o);o=i.colorContrast(o,a,void 0,1),n.push(o)}while(o.relativeLuminance>0);if(r.preserveSource){o=t;do{const a=s(o);o=i.colorContrast(o,a,void 0,-1),n.unshift(o)}while(o.relativeLuminance<1)}return this.adjustEnd(s,i,n,-1),r.preserveSource&&this.adjustEnd(s,i,n,1),n}static from(t,r){const i=r===void 0?Ls:Object.assign(Object.assign({},Ls),r);return new et(t,Object.freeze(et.createColorPaletteByContrast(t,i)))}}const dr=tt.create(1,1,1),ji=tt.create(0,0,0),yc=tt.create(.5,.5,.5),ci=Bt("#0078D4"),wc=tt.create(ci.r,ci.g,ci.b);function fo(e,t,r,i,s){const n=u=>u.contrast(dr)>=s?dr:ji,o=n(e),a=n(t),l=o.relativeLuminance===a.relativeLuminance?o:n(r),c=n(i);return{rest:o,hover:a,active:l,focus:c}}class Fr{constructor(t,r,i,s){this.toColorString=()=>this.cssGradient,this.contrast=ur.bind(null,this),this.createCSS=this.toColorString,this.color=new T(t,r,i),this.cssGradient=s,this.relativeLuminance=ho(this.color),this.r=t,this.g=r,this.b=i}static fromObject(t,r){return new Fr(t.r,t.g,t.b,r)}}const $c=new T(0,0,0),Sc=new T(1,1,1);function po(e,t,r,i,s,n,o,a,l=10,c=!1){const u=e.closestIndexOf(t);a===void 0&&(a=Vt(t));function d(Z){if(c){const Rt=e.closestIndexOf(t),I=e.get(Rt),J=Z.relativeLuminance<t.relativeLuminance?$c:Sc,st=oc(Bt(Z.toColorString()),Bt(I.toColorString()),J).roundToPrecision(2),Et=fc(Bt(t.toColorString()),st);return tt.from(Et)}else return Z}const p=u+a*r,v=p+a*(i-r),g=p+a*(s-r),x=p+a*(n-r),R=a===-1?0:100-l,G=a===-1?l:100;function j(Z,Rt){const I=e.get(Z);if(Rt){const J=e.get(Z+a*o),st=a===-1?J:I,Et=a===-1?I:J,ra=`linear-gradient(${d(st).toColorString()} ${R}%, ${d(Et).toColorString()} ${G}%)`;return Fr.fromObject(st,ra)}else return d(I)}return{rest:j(p,!0),hover:j(v,!0),active:j(g,!1),focus:j(x,!0)}}function xc(e,t,r,i,s,n,o,a){const l=e.closestIndexOf(t),c=Vt(t),u=l+c*r,d=u+c*(i-r),p=u+c*(s-r),v=u+c*(n-r),g=`calc(100% - ${a})`;function x(R,G){const j=e.get(R);if(G){const Z=e.get(R+c*o),Rt=`linear-gradient(${j.toColorString()} ${g}, ${Z.toColorString()} ${g}, ${Z.toColorString()})`;return Fr.fromObject(j,Rt)}else return j}return{rest:x(u,!0),hover:x(d,!0),active:x(p,!1),focus:x(v,!0)}}function Fc(e,t,r){return e.colorContrast(t,r)}function zt(e,t,r,i,s,n,o,a){a==null&&(a=Vt(t));const l=e.closestIndexOf(e.colorContrast(t,r));return{rest:e.get(l+a*i),hover:e.get(l+a*s),active:e.get(l+a*n),focus:e.get(l+a*o)}}function Cc(e,t,r,i,s,n,o,a=void 0,l,c,u,d,p,v=void 0){return Ce(t)?zt(e,t,l,c,u,d,p,v):zt(e,t,r,i,s,n,o,a)}function kc(e,t,r){return e.get(e.closestIndexOf(t)+Vt(t)*r)}function bt(e,t,r,i,s,n,o){const a=e.closestIndexOf(t);return o==null&&(o=Vt(t)),{rest:e.get(a+o*r),hover:e.get(a+o*i),active:e.get(a+o*s),focus:e.get(a+o*n)}}function Ui(e,t,r,i,s,n,o=void 0,a,l,c,u,d=void 0){return Ce(t)?bt(e,t,a,l,c,u,d):bt(e,t,r,i,s,n,o)}function Dc(e,t){return Ce(t)?dr:ji}function _c(e,t,r){return Ce(t)?ji:dr}function Ac(e){return tt.create(e,e,e)}var $i;(function(e){e[e.LightMode=.98]="LightMode",e[e.DarkMode=.15]="DarkMode"})($i||($i={}));function ke(e,t){return e.closestIndexOf(Ac(t))}function Vc(e,t){return e.get(ke(e,t))}function Tc(e,t,r){return e.get(ke(e,t)+r)}function go(e,t,r){return e.get(ke(e,t)+r*-1)}function Rc(e,t,r){return e.get(ke(e,t)+r*-1*2)}function Ec(e,t,r){return e.get(ke(e,t)+r*-1*3)}const Ic={Thin:100,ExtraLight:200,Light:300,Normal:400,Medium:500,SemiBold:600,Bold:700,ExtraBold:800,Black:900},{create:h}=_;function f(e){return _.create({name:e,cssCustomPropertyName:null})}h("direction").withDefault(yi.ltr);const vo=h("disabled-opacity").withDefault(.3),Oc=h("base-height-multiplier").withDefault(8);h("base-horizontal-spacing-multiplier").withDefault(3);const Pc=h("density").withDefault(0),Lt=h("design-unit").withDefault(4),fr=h("control-corner-radius").withDefault(4),Lc=h("layer-corner-radius").withDefault(8),De=h("stroke-width").withDefault(1),me=h("focus-stroke-width").withDefault(2),ut=h("body-font").withDefault('"Segoe UI Variable", "Segoe UI", sans-serif'),Nc=h("font-weight").withDefault(Ic.Normal);function ht(e){return t=>{const r=e.getValueFor(t),i=Nc.getValueFor(t);if(r.endsWith("px")){const s=Number.parseFloat(r.replace("px",""));if(s<=12)return`"wght" ${i}, "opsz" 8`;if(s>24)return`"wght" ${i}, "opsz" 36`}return`"wght" ${i}, "opsz" 10.5`}}const bo=h("type-ramp-base-font-size").withDefault("14px"),Mc=h("type-ramp-base-line-height").withDefault("20px"),Bc=h("type-ramp-base-font-variations").withDefault(ht(bo)),mo=h("type-ramp-minus-1-font-size").withDefault("12px"),Hc=h("type-ramp-minus-1-line-height").withDefault("16px"),zc=h("type-ramp-minus-1-font-variations").withDefault(ht(mo)),yo=h("type-ramp-minus-2-font-size").withDefault("10px"),jc=h("type-ramp-minus-2-line-height").withDefault("14px"),Uc=h("type-ramp-minus-2-font-variations").withDefault(ht(yo)),wo=h("type-ramp-plus-1-font-size").withDefault("16px"),qc=h("type-ramp-plus-1-line-height").withDefault("22px"),Wc=h("type-ramp-plus-1-font-variations").withDefault(ht(wo)),$o=h("type-ramp-plus-2-font-size").withDefault("20px"),Gc=h("type-ramp-plus-2-line-height").withDefault("26px"),Xc=h("type-ramp-plus-2-font-variations").withDefault(ht($o)),So=h("type-ramp-plus-3-font-size").withDefault("24px"),Yc=h("type-ramp-plus-3-line-height").withDefault("32px"),Zc=h("type-ramp-plus-3-font-variations").withDefault(ht(So)),xo=h("type-ramp-plus-4-font-size").withDefault("28px"),Jc=h("type-ramp-plus-4-line-height").withDefault("36px"),Qc=h("type-ramp-plus-4-font-variations").withDefault(ht(xo)),Fo=h("type-ramp-plus-5-font-size").withDefault("32px"),Kc=h("type-ramp-plus-5-line-height").withDefault("40px"),tu=h("type-ramp-plus-5-font-variations").withDefault(ht(Fo)),Co=h("type-ramp-plus-6-font-size").withDefault("40px"),eu=h("type-ramp-plus-6-line-height").withDefault("52px"),ru=h("type-ramp-plus-6-font-variations").withDefault(ht(Co)),Wt=h("base-layer-luminance").withDefault($i.LightMode),Ns=f("accent-fill-rest-delta").withDefault(0),Ms=f("accent-fill-hover-delta").withDefault(-2),Bs=f("accent-fill-active-delta").withDefault(-5),Hs=f("accent-fill-focus-delta").withDefault(0),iu=f("accent-foreground-rest-delta").withDefault(0),su=f("accent-foreground-hover-delta").withDefault(3),nu=f("accent-foreground-active-delta").withDefault(-8),ou=f("accent-foreground-focus-delta").withDefault(0),au=f("neutral-fill-rest-delta").withDefault(-1),lu=f("neutral-fill-hover-delta").withDefault(1),cu=f("neutral-fill-active-delta").withDefault(0),uu=f("neutral-fill-focus-delta").withDefault(0),hu=f("neutral-fill-input-rest-delta").withDefault(-1),du=f("neutral-fill-input-hover-delta").withDefault(1),fu=f("neutral-fill-input-active-delta").withDefault(0),pu=f("neutral-fill-input-focus-delta").withDefault(-2),He=f("neutral-fill-input-alt-rest-delta").withDefault(2),zs=f("neutral-fill-input-alt-hover-delta").withDefault(4),js=f("neutral-fill-input-alt-active-delta").withDefault(6),Us=f("neutral-fill-input-alt-focus-delta").withDefault(2),Dt=f("neutral-fill-layer-rest-delta").withDefault(-2),gu=f("neutral-fill-layer-hover-delta").withDefault(-3),vu=f("neutral-fill-layer-active-delta").withDefault(-3),ze=f("neutral-fill-layer-alt-rest-delta").withDefault(-1),bu=f("neutral-fill-secondary-rest-delta").withDefault(3),mu=f("neutral-fill-secondary-hover-delta").withDefault(2),yu=f("neutral-fill-secondary-active-delta").withDefault(1),wu=f("neutral-fill-secondary-focus-delta").withDefault(3),$u=f("neutral-fill-stealth-rest-delta").withDefault(0),Su=f("neutral-fill-stealth-hover-delta").withDefault(3),xu=f("neutral-fill-stealth-active-delta").withDefault(2),Fu=f("neutral-fill-stealth-focus-delta").withDefault(0),Cu=f("neutral-fill-strong-rest-delta").withDefault(0),ku=f("neutral-fill-strong-hover-delta").withDefault(8),Du=f("neutral-fill-strong-active-delta").withDefault(-5),_u=f("neutral-fill-strong-focus-delta").withDefault(0),Au=f("neutral-stroke-rest-delta").withDefault(8),Vu=f("neutral-stroke-hover-delta").withDefault(12),Tu=f("neutral-stroke-active-delta").withDefault(6),Ru=f("neutral-stroke-focus-delta").withDefault(8),ko=f("neutral-stroke-control-rest-delta").withDefault(3),Do=f("neutral-stroke-control-hover-delta").withDefault(5),_o=f("neutral-stroke-control-active-delta").withDefault(5),Ao=f("neutral-stroke-control-focus-delta").withDefault(5),Eu=f("neutral-stroke-divider-rest-delta").withDefault(4),qs=f("neutral-stroke-layer-rest-delta").withDefault(3),Iu=f("neutral-stroke-layer-hover-delta").withDefault(3),Ou=f("neutral-stroke-layer-active-delta").withDefault(3),Pu=f("neutral-stroke-strong-hover-delta").withDefault(0),Lu=f("neutral-stroke-strong-active-delta").withDefault(0),Nu=f("neutral-stroke-strong-focus-delta").withDefault(0),Mu=h("neutral-base-color").withDefault(yc),C=f("neutral-palette").withDefault(e=>be.from(Mu.getValueFor(e))),Bu=h("accent-base-color").withDefault(wc),qi=f("accent-palette").withDefault(e=>be.from(Bu.getValueFor(e))),Hu=f("neutral-layer-card-container-recipe").withDefault({evaluate:e=>go(C.getValueFor(e),Wt.getValueFor(e),Dt.getValueFor(e))});h("neutral-layer-card-container").withDefault(e=>Hu.getValueFor(e).evaluate(e));const zu=f("neutral-layer-floating-recipe").withDefault({evaluate:e=>Tc(C.getValueFor(e),Wt.getValueFor(e),Dt.getValueFor(e))});h("neutral-layer-floating").withDefault(e=>zu.getValueFor(e).evaluate(e));const ju=f("neutral-layer-1-recipe").withDefault({evaluate:e=>Vc(C.getValueFor(e),Wt.getValueFor(e))}),Uu=h("neutral-layer-1").withDefault(e=>ju.getValueFor(e).evaluate(e)),qu=f("neutral-layer-2-recipe").withDefault({evaluate:e=>go(C.getValueFor(e),Wt.getValueFor(e),Dt.getValueFor(e))});h("neutral-layer-2").withDefault(e=>qu.getValueFor(e).evaluate(e));const Wu=f("neutral-layer-3-recipe").withDefault({evaluate:e=>Rc(C.getValueFor(e),Wt.getValueFor(e),Dt.getValueFor(e))});h("neutral-layer-3").withDefault(e=>Wu.getValueFor(e).evaluate(e));const Gu=f("neutral-layer-4-recipe").withDefault({evaluate:e=>Ec(C.getValueFor(e),Wt.getValueFor(e),Dt.getValueFor(e))});h("neutral-layer-4").withDefault(e=>Gu.getValueFor(e).evaluate(e));const F=h("fill-color").withDefault(e=>Uu.getValueFor(e));var pr;(function(e){e[e.normal=4.5]="normal",e[e.large=3]="large"})(pr||(pr={}));const Cr=f("accent-fill-recipe").withDefault({evaluate:(e,t)=>Cc(qi.getValueFor(e),t||F.getValueFor(e),5,Ns.getValueFor(e),Ms.getValueFor(e),Bs.getValueFor(e),Hs.getValueFor(e),void 0,8,Ns.getValueFor(e),Ms.getValueFor(e),Bs.getValueFor(e),Hs.getValueFor(e),void 0)}),_e=h("accent-fill-rest").withDefault(e=>Cr.getValueFor(e).evaluate(e).rest),Ae=h("accent-fill-hover").withDefault(e=>Cr.getValueFor(e).evaluate(e).hover),Ve=h("accent-fill-active").withDefault(e=>Cr.getValueFor(e).evaluate(e).active),kr=h("accent-fill-focus").withDefault(e=>Cr.getValueFor(e).evaluate(e).focus),Dr=f("foreground-on-accent-recipe").withDefault({evaluate:e=>fo(_e.getValueFor(e),Ae.getValueFor(e),Ve.getValueFor(e),kr.getValueFor(e),pr.normal)}),Xu=h("foreground-on-accent-rest").withDefault(e=>Dr.getValueFor(e).evaluate(e).rest);h("foreground-on-accent-hover").withDefault(e=>Dr.getValueFor(e).evaluate(e).hover);h("foreground-on-accent-active").withDefault(e=>Dr.getValueFor(e).evaluate(e).active);h("foreground-on-accent-focus").withDefault(e=>Dr.getValueFor(e).evaluate(e).focus);const _r=f("accent-foreground-recipe").withDefault({evaluate:(e,t)=>zt(qi.getValueFor(e),t||F.getValueFor(e),9.5,iu.getValueFor(e),su.getValueFor(e),nu.getValueFor(e),ou.getValueFor(e))});h("accent-foreground-rest").withDefault(e=>_r.getValueFor(e).evaluate(e).rest);h("accent-foreground-hover").withDefault(e=>_r.getValueFor(e).evaluate(e).hover);h("accent-foreground-active").withDefault(e=>_r.getValueFor(e).evaluate(e).active);h("accent-foreground-focus").withDefault(e=>_r.getValueFor(e).evaluate(e).focus);const Ar=f("accent-stroke-control-recipe").withDefault({evaluate:(e,t)=>po(C.getValueFor(e),t||F.getValueFor(e),-3,-3,-3,-3,10,1,void 0,!0)});h("accent-stroke-control-rest").withDefault(e=>Ar.getValueFor(e).evaluate(e,_e.getValueFor(e)).rest);h("accent-stroke-control-hover").withDefault(e=>Ar.getValueFor(e).evaluate(e,Ae.getValueFor(e)).hover);h("accent-stroke-control-active").withDefault(e=>Ar.getValueFor(e).evaluate(e,Ve.getValueFor(e)).active);h("accent-stroke-control-focus").withDefault(e=>Ar.getValueFor(e).evaluate(e,kr.getValueFor(e)).focus);const Vr=f("neutral-fill-recipe").withDefault({evaluate:(e,t)=>Ui(C.getValueFor(e),t||F.getValueFor(e),au.getValueFor(e),lu.getValueFor(e),cu.getValueFor(e),uu.getValueFor(e),void 0,2,3,1,2,void 0)});h("neutral-fill-rest").withDefault(e=>Vr.getValueFor(e).evaluate(e).rest);h("neutral-fill-hover").withDefault(e=>Vr.getValueFor(e).evaluate(e).hover);h("neutral-fill-active").withDefault(e=>Vr.getValueFor(e).evaluate(e).active);h("neutral-fill-focus").withDefault(e=>Vr.getValueFor(e).evaluate(e).focus);const Gt=f("neutral-fill-input-recipe").withDefault({evaluate:(e,t)=>Ui(C.getValueFor(e),t||F.getValueFor(e),hu.getValueFor(e),du.getValueFor(e),fu.getValueFor(e),pu.getValueFor(e),void 0,2,3,1,0,void 0)}),je=h("neutral-fill-input-rest").withDefault(e=>Gt.getValueFor(e).evaluate(e).rest),Ws=h("neutral-fill-input-hover").withDefault(e=>Gt.getValueFor(e).evaluate(e).hover);h("neutral-fill-input-active").withDefault(e=>Gt.getValueFor(e).evaluate(e).active);const Gs=h("neutral-fill-input-focus").withDefault(e=>Gt.getValueFor(e).evaluate(e).focus),Tr=f("neutral-fill-input-alt-recipe").withDefault({evaluate:(e,t)=>Ui(C.getValueFor(e),t||F.getValueFor(e),He.getValueFor(e),zs.getValueFor(e),js.getValueFor(e),Us.getValueFor(e),1,He.getValueFor(e),He.getValueFor(e)-zs.getValueFor(e),He.getValueFor(e)-js.getValueFor(e),Us.getValueFor(e),1)}),Yu=h("neutral-fill-input-alt-rest").withDefault(e=>Tr.getValueFor(e).evaluate(e).rest),Zu=h("neutral-fill-input-alt-hover").withDefault(e=>Tr.getValueFor(e).evaluate(e).hover),Ju=h("neutral-fill-input-alt-active").withDefault(e=>Tr.getValueFor(e).evaluate(e).active),Qu=h("neutral-fill-input-alt-focus").withDefault(e=>Tr.getValueFor(e).evaluate(e).focus),Rr=f("neutral-fill-layer-recipe").withDefault({evaluate:(e,t)=>bt(C.getValueFor(e),t||F.getValueFor(e),Dt.getValueFor(e),gu.getValueFor(e),vu.getValueFor(e),Dt.getValueFor(e),1)});h("neutral-fill-layer-rest").withDefault(e=>Rr.getValueFor(e).evaluate(e).rest);h("neutral-fill-layer-hover").withDefault(e=>Rr.getValueFor(e).evaluate(e).hover);h("neutral-fill-layer-active").withDefault(e=>Rr.getValueFor(e).evaluate(e).active);const Ku=f("neutral-fill-layer-alt-recipe").withDefault({evaluate:(e,t)=>bt(C.getValueFor(e),t||F.getValueFor(e),ze.getValueFor(e),ze.getValueFor(e),ze.getValueFor(e),ze.getValueFor(e))});h("neutral-fill-layer-alt-rest").withDefault(e=>Ku.getValueFor(e).evaluate(e).rest);const Xt=f("neutral-fill-secondary-recipe").withDefault({evaluate:(e,t)=>bt(C.getValueFor(e),t||F.getValueFor(e),bu.getValueFor(e),mu.getValueFor(e),yu.getValueFor(e),wu.getValueFor(e))}),Xs=h("neutral-fill-secondary-rest").withDefault(e=>Xt.getValueFor(e).evaluate(e).rest),th=h("neutral-fill-secondary-hover").withDefault(e=>Xt.getValueFor(e).evaluate(e).hover);h("neutral-fill-secondary-active").withDefault(e=>Xt.getValueFor(e).evaluate(e).active);const eh=h("neutral-fill-secondary-focus").withDefault(e=>Xt.getValueFor(e).evaluate(e).focus),Er=f("neutral-fill-stealth-recipe").withDefault({evaluate:(e,t)=>bt(C.getValueFor(e),t||F.getValueFor(e),$u.getValueFor(e),Su.getValueFor(e),xu.getValueFor(e),Fu.getValueFor(e))});h("neutral-fill-stealth-rest").withDefault(e=>Er.getValueFor(e).evaluate(e).rest);h("neutral-fill-stealth-hover").withDefault(e=>Er.getValueFor(e).evaluate(e).hover);h("neutral-fill-stealth-active").withDefault(e=>Er.getValueFor(e).evaluate(e).active);h("neutral-fill-stealth-focus").withDefault(e=>Er.getValueFor(e).evaluate(e).focus);const Ir=f("neutral-fill-strong-recipe").withDefault({evaluate:(e,t)=>zt(C.getValueFor(e),t||F.getValueFor(e),4.5,Cu.getValueFor(e),ku.getValueFor(e),Du.getValueFor(e),_u.getValueFor(e))});h("neutral-fill-strong-rest").withDefault(e=>Ir.getValueFor(e).evaluate(e).rest);h("neutral-fill-strong-hover").withDefault(e=>Ir.getValueFor(e).evaluate(e).hover);h("neutral-fill-strong-active").withDefault(e=>Ir.getValueFor(e).evaluate(e).active);h("neutral-fill-strong-focus").withDefault(e=>Ir.getValueFor(e).evaluate(e).focus);const Or=f("neutral-foreground-recipe").withDefault({evaluate:(e,t)=>zt(C.getValueFor(e),t||F.getValueFor(e),16,0,-19,-30,0)}),ye=h("neutral-foreground-rest").withDefault(e=>Or.getValueFor(e).evaluate(e).rest);h("neutral-foreground-hover").withDefault(e=>Or.getValueFor(e).evaluate(e).hover);h("neutral-foreground-active").withDefault(e=>Or.getValueFor(e).evaluate(e).active);h("neutral-foreground-focus").withDefault(e=>Or.getValueFor(e).evaluate(e).focus);const Te=f("neutral-foreground-hint-recipe").withDefault({evaluate:(e,t)=>Fc(C.getValueFor(e),t||F.getValueFor(e),4.5)});h("neutral-foreground-hint").withDefault(e=>Te.getValueFor(e).evaluate(e));const Pr=f("neutral-stroke-recipe").withDefault({evaluate:(e,t)=>bt(C.getValueFor(e),t||F.getValueFor(e),Au.getValueFor(e),Vu.getValueFor(e),Tu.getValueFor(e),Ru.getValueFor(e))}),rh=h("neutral-stroke-rest").withDefault(e=>Pr.getValueFor(e).evaluate(e).rest);h("neutral-stroke-hover").withDefault(e=>Pr.getValueFor(e).evaluate(e).hover);h("neutral-stroke-active").withDefault(e=>Pr.getValueFor(e).evaluate(e).active);h("neutral-stroke-focus").withDefault(e=>Pr.getValueFor(e).evaluate(e).focus);const Lr=f("neutral-stroke-control-recipe").withDefault({evaluate:(e,t)=>po(C.getValueFor(e),t||F.getValueFor(e),ko.getValueFor(e),Do.getValueFor(e),_o.getValueFor(e),Ao.getValueFor(e),5)});h("neutral-stroke-control-rest").withDefault(e=>Lr.getValueFor(e).evaluate(e).rest);h("neutral-stroke-control-hover").withDefault(e=>Lr.getValueFor(e).evaluate(e).hover);h("neutral-stroke-control-active").withDefault(e=>Lr.getValueFor(e).evaluate(e).active);h("neutral-stroke-control-focus").withDefault(e=>Lr.getValueFor(e).evaluate(e).focus);const ih=f("neutral-stroke-divider-recipe").withDefault({evaluate:(e,t)=>kc(C.getValueFor(e),t||F.getValueFor(e),Eu.getValueFor(e))});h("neutral-stroke-divider-rest").withDefault(e=>ih.getValueFor(e).evaluate(e));const Nr=f("neutral-stroke-input-recipe").withDefault({evaluate:(e,t)=>xc(C.getValueFor(e),t||F.getValueFor(e),ko.getValueFor(e),Do.getValueFor(e),_o.getValueFor(e),Ao.getValueFor(e),20,De.getValueFor(e)+"px")}),Ys=h("neutral-stroke-input-rest").withDefault(e=>Nr.getValueFor(e).evaluate(e).rest),sh=h("neutral-stroke-input-hover").withDefault(e=>Nr.getValueFor(e).evaluate(e).hover);h("neutral-stroke-input-active").withDefault(e=>Nr.getValueFor(e).evaluate(e).active);h("neutral-stroke-input-focus").withDefault(e=>Nr.getValueFor(e).evaluate(e).focus);const Wi=f("neutral-stroke-layer-recipe").withDefault({evaluate:(e,t)=>bt(C.getValueFor(e),t||F.getValueFor(e),qs.getValueFor(e),Iu.getValueFor(e),Ou.getValueFor(e),qs.getValueFor(e))}),nh=h("neutral-stroke-layer-rest").withDefault(e=>Wi.getValueFor(e).evaluate(e).rest);h("neutral-stroke-layer-hover").withDefault(e=>Wi.getValueFor(e).evaluate(e).hover);h("neutral-stroke-layer-active").withDefault(e=>Wi.getValueFor(e).evaluate(e).active);const Mr=f("neutral-stroke-strong-recipe").withDefault({evaluate:(e,t)=>zt(C.getValueFor(e),t||F.getValueFor(e),5.5,0,Pu.getValueFor(e),Lu.getValueFor(e),Nu.getValueFor(e))}),oh=h("neutral-stroke-strong-rest").withDefault(e=>Mr.getValueFor(e).evaluate(e).rest),ah=h("neutral-stroke-strong-hover").withDefault(e=>Mr.getValueFor(e).evaluate(e).hover),lh=h("neutral-stroke-strong-active").withDefault(e=>Mr.getValueFor(e).evaluate(e).active);h("neutral-stroke-strong-focus").withDefault(e=>Mr.getValueFor(e).evaluate(e).focus);const ch=f("focus-stroke-outer-recipe").withDefault({evaluate:e=>Dc(C.getValueFor(e),F.getValueFor(e))}),Gi=h("focus-stroke-outer").withDefault(e=>ch.getValueFor(e).evaluate(e)),uh=f("focus-stroke-inner-recipe").withDefault({evaluate:e=>_c(qi.getValueFor(e),F.getValueFor(e),Gi.getValueFor(e))});h("focus-stroke-inner").withDefault(e=>uh.getValueFor(e).evaluate(e));const Br=f("foreground-on-accent-large-recipe").withDefault({evaluate:e=>fo(_e.getValueFor(e),Ae.getValueFor(e),Ve.getValueFor(e),kr.getValueFor(e),pr.large)});h("foreground-on-accent-rest-large").withDefault(e=>Br.getValueFor(e).evaluate(e).rest);h("foreground-on-accent-hover-large").withDefault(e=>Br.getValueFor(e).evaluate(e,Ae.getValueFor(e)).hover);h("foreground-on-accent-active-large").withDefault(e=>Br.getValueFor(e).evaluate(e,Ve.getValueFor(e)).active);h("foreground-on-accent-focus-large").withDefault(e=>Br.getValueFor(e).evaluate(e,kr.getValueFor(e)).focus);const hh=h("neutral-fill-inverse-rest-delta").withDefault(0),dh=h("neutral-fill-inverse-hover-delta").withDefault(-3),fh=h("neutral-fill-inverse-active-delta").withDefault(7),ph=h("neutral-fill-inverse-focus-delta").withDefault(0);function gh(e,t,r,i,s,n){const o=Vt(t),a=e.closestIndexOf(e.colorContrast(t,14)),l=a+o*Math.abs(r-i),c=o===1?r<i:o*r>o*i;let u,d;return c?(u=a,d=l):(u=l,d=a),{rest:e.get(u),hover:e.get(d),active:e.get(u+o*s),focus:e.get(u+o*n)}}const Hr=f("neutral-fill-inverse-recipe").withDefault({evaluate:(e,t)=>gh(C.getValueFor(e),t||F.getValueFor(e),hh.getValueFor(e),dh.getValueFor(e),fh.getValueFor(e),ph.getValueFor(e))});h("neutral-fill-inverse-rest").withDefault(e=>Hr.getValueFor(e).evaluate(e).rest);h("neutral-fill-inverse-hover").withDefault(e=>Hr.getValueFor(e).evaluate(e).hover);h("neutral-fill-inverse-active").withDefault(e=>Hr.getValueFor(e).evaluate(e).active);h("neutral-fill-inverse-focus").withDefault(e=>Hr.getValueFor(e).evaluate(e).focus);const Si=Y`
font-family: ${ut};
font-size: ${bo};
line-height: ${Mc};
font-weight: initial;
font-variation-settings: ${Bc};
`;Y`
font-family: ${ut};
font-size: ${mo};
line-height: ${Hc};
font-weight: initial;
font-variation-settings: ${zc};
`;Y`
font-family: ${ut};
font-size: ${yo};
line-height: ${jc};
font-weight: initial;
font-variation-settings: ${Uc};
`;Y`
font-family: ${ut};
font-size: ${wo};
line-height: ${qc};
font-weight: initial;
font-variation-settings: ${Wc};
`;Y`
font-family: ${ut};
font-size: ${$o};
line-height: ${Gc};
font-weight: initial;
font-variation-settings: ${Xc};
`;Y`
font-family: ${ut};
font-size: ${So};
line-height: ${Yc};
font-weight: initial;
font-variation-settings: ${Zc};
`;Y`
font-family: ${ut};
font-size: ${xo};
line-height: ${Jc};
font-weight: initial;
font-variation-settings: ${Qc};
`;Y`
font-family: ${ut};
font-size: ${Fo};
line-height: ${Kc};
font-weight: initial;
font-variation-settings: ${tu};
`;Y`
font-family: ${ut};
font-size: ${Co};
line-height: ${eu};
font-weight: initial;
font-variation-settings: ${ru};
`;const vh=Y`
outline: calc(${me} * 1px) solid ${Gi};
outline-offset: calc(${me} * -1px);
`,bh=Y`
outline: calc(${me} * 1px) solid ${Gi};
outline-offset: calc(${De} * 1px);
`,xi=Y`(${Oc} + ${Pc}) * ${Lt}`;function S(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}const Tt=_.create({name:"elevation-shadow",cssCustomPropertyName:null}).withDefault({evaluate:(e,t,r)=>{let i=.12,s=.14;t>16&&(i=.2,s=.24);const n=`0 0 2px rgba(0, 0, 0, ${i})`,o=`0 calc(${t} * 0.5px) calc((${t} * 1px)) rgba(0, 0, 0, ${s})`;return`${n}, ${o}`}}),mh=_.create("elevation-shadow-card-rest-size").withDefault(4),yh=_.create("elevation-shadow-card-hover-size").withDefault(8),wh=_.create("elevation-shadow-card-active-size").withDefault(0),$h=_.create("elevation-shadow-card-focus-size").withDefault(8),Sh=_.create("elevation-shadow-card-rest").withDefault(e=>Tt.getValueFor(e).evaluate(e,mh.getValueFor(e)));_.create("elevation-shadow-card-hover").withDefault(e=>Tt.getValueFor(e).evaluate(e,yh.getValueFor(e)));_.create("elevation-shadow-card-active").withDefault(e=>Tt.getValueFor(e).evaluate(e,wh.getValueFor(e)));_.create("elevation-shadow-card-focus").withDefault(e=>Tt.getValueFor(e).evaluate(e,$h.getValueFor(e)));const xh=_.create("elevation-shadow-tooltip-size").withDefault(16);_.create("elevation-shadow-tooltip").withDefault(e=>Tt.getValueFor(e).evaluate(e,xh.getValueFor(e)));const Fh=_.create("elevation-shadow-flyout-size").withDefault(32);_.create("elevation-shadow-flyout").withDefault(e=>Tt.getValueFor(e).evaluate(e,Fh.getValueFor(e)));const Ch=_.create("elevation-shadow-dialog-size").withDefault(128);_.create("elevation-shadow-dialog").withDefault(e=>Tt.getValueFor(e).evaluate(e,Ch.getValueFor(e)));const kh=_.create("input-placeholder-rest").withDefault(e=>{const t=Gt.getValueFor(e);return Te.getValueFor(e).evaluate(e,t.evaluate(e).rest)}),Dh=_.create("input-placeholder-hover").withDefault(e=>{const t=Gt.getValueFor(e);return Te.getValueFor(e).evaluate(e,t.evaluate(e).hover)}),_h=_.create("input-filled-placeholder-rest").withDefault(e=>{const t=Xt.getValueFor(e);return Te.getValueFor(e).evaluate(e,t.evaluate(e).rest)}),Ah=_.create("input-filled-placeholder-hover").withDefault(e=>{const t=Xt.getValueFor(e);return Te.getValueFor(e).evaluate(e,t.evaluate(e).hover)}),Vh=(e,t,r)=>it`
:host {
${Si}
color: ${ye};
fill: currentcolor;
user-select: none;
position: relative;
}
${r} {
box-sizing: border-box;
position: relative;
color: inherit;
border: calc(${De} * 1px) solid transparent;
border-radius: calc(${fr} * 1px);
height: calc(${xi} * 1px);
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
.control {
width: 100%;
outline: none;
}
.label {
display: block;
color: ${ye};
cursor: pointer;
${Si}
margin-bottom: 4px;
}
.label__hidden {
display: none;
visibility: hidden;
}
:host([disabled]) ${r},
:host([readonly]) ${r},
:host([disabled]) .label,
:host([readonly]) .label,
:host([disabled]) .control,
:host([readonly]) .control {
cursor: ${uo};
}
:host([disabled]) {
opacity: ${vo};
}
`,Th=(e,t,r)=>it`
@media (forced-colors: none) {
:host(:not([disabled]):active)::after {
left: 50%;
width: 40%;
transform: translateX(-50%);
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
:host(:not([disabled]):focus-within)::after {
left: 0;
width: 100%;
transform: none;
}
:host(:not([disabled]):active)::after,
:host(:not([disabled]):focus-within:not(:active))::after {
content: '';
position: absolute;
height: calc(${me} * 1px);
bottom: 0;
border-bottom: calc(${me} * 1px) solid ${_e};
border-bottom-left-radius: calc(${fr} * 1px);
border-bottom-right-radius: calc(${fr} * 1px);
z-index: 2;
transition: all 300ms cubic-bezier(0.1, 0.9, 0.2, 1);
}
}
`,Rh=(e,t,r,i=":not([disabled]):not(:focus-within)")=>it`
${r} {
background: padding-box linear-gradient(${je}, ${je}),
border-box ${Ys};
}
:host(${i}:hover) ${r} {
background: padding-box linear-gradient(${Ws}, ${Ws}),
border-box ${sh};
}
:host(:not([disabled]):focus-within) ${r} {
background: padding-box linear-gradient(${Gs}, ${Gs}),
border-box ${Ys};
}
:host([disabled]) ${r} {
background: padding-box linear-gradient(${je}, ${je}),
border-box ${rh};
}
.control::placeholder {
color: ${kh};
}
:host(${i}:hover) .control::placeholder {
color: ${Dh};
}
`,Eh=(e,t,r,i=":not([disabled]):not(:focus-within)")=>it`
${r} {
background: ${Xs};
}
:host(${i}:hover) ${r} {
background: ${th};
}
:host(:not([disabled]):focus-within) ${r} {
background: ${eh};
}
:host([disabled]) ${r} {
background: ${Xs};
}
.control::placeholder {
color: ${_h};
}
:host(${i}:hover) .control::placeholder {
color: ${Ah};
}
`,Ih=(e,t,r,i=":not([disabled]):not(:focus-within)")=>it`
:host {
color: ${y.ButtonText};
}
${r} {
background: ${y.ButtonFace};
border-color: ${y.ButtonText};
}
:host(${i}:hover) ${r},
:host(:not([disabled]):focus-within) ${r} {
border-color: ${y.Highlight};
}
:host([disabled]) ${r} {
opacity: 1;
background: ${y.ButtonFace};
border-color: ${y.GrayText};
}
.control::placeholder,
:host(${i}:hover) .control::placeholder {
color: ${y.CanvasText};
}
:host(:not([disabled]):focus) ${r} {
${vh}
outline-color: ${y.Highlight};
}
:host([disabled]) {
opacity: 1;
color: ${y.GrayText};
}
:host([disabled]) ::placeholder,
:host([disabled]) ::-webkit-input-placeholder {
color: ${y.GrayText};
}
`;function Zs(e,t){return new rc("appearance",e,t)}const Oh=(e,t)=>it`
${zi("block")} :host {
display: block;
contain: content;
height: var(--card-height, 100%);
width: var(--card-width, 100%);
box-sizing: border-box;
background: ${F};
color: ${ye};
border: calc(${De} * 1px) solid ${nh};
border-radius: calc(${Lc} * 1px);
box-shadow: ${Sh};
}
:host {
content-visibility: auto;
}
`.withBehaviors(Hi(it`
:host {
background: ${y.Canvas};
color: ${y.CanvasText};
}
`));class Xi extends no{cardFillColorChanged(t,r){if(r){const i=Bt(r);i!==null&&(this.neutralPaletteSource=r,F.setValueFor(this,tt.create(i.r,i.g,i.b)))}}neutralPaletteSourceChanged(t,r){if(r){const i=Bt(r),s=tt.create(i.r,i.g,i.b);C.setValueFor(this,be.create(s))}}handleChange(t,r){this.cardFillColor||F.setValueFor(this,i=>Rr.getValueFor(i).evaluate(i,F.getValueFor(t)).rest)}connectedCallback(){super.connectedCallback();const t=cr(this);if(t){const r=V.getNotifier(t);r.subscribe(this,"fillColor"),r.subscribe(this,"neutralPalette"),this.handleChange(t,"fillColor")}}}S([b({attribute:"card-fill-color",mode:"fromView"})],Xi.prototype,"cardFillColor",void 0);S([b({attribute:"neutral-palette-source",mode:"fromView"})],Xi.prototype,"neutralPaletteSource",void 0);const Ph=Xi.compose({baseName:"card",baseClass:no,template:El,styles:Oh}),Lh=(e,t)=>it`
${zi("inline-flex")} :host {
align-items: center;
outline: none;
${""} user-select: none;
}
.control {
position: relative;
width: calc((${xi} / 2 + ${Lt}) * 1px);
height: calc((${xi} / 2 + ${Lt}) * 1px);
box-sizing: border-box;
border-radius: calc(${fr} * 1px);
border: calc(${De} * 1px) solid ${oh};
background: ${Yu};
cursor: pointer;
}
.label__hidden {
display: none;
visibility: hidden;
}
.label {
${Si}
color: ${ye};
${""} padding-inline-start: calc(${Lt} * 2px + 2px);
margin-inline-end: calc(${Lt} * 2px + 2px);
cursor: pointer;
}
slot[name='checked-indicator'],
slot[name='indeterminate-indicator'] {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
fill: ${ye};
opacity: 0;
pointer-events: none;
}
slot[name='indeterminate-indicator'] {
position: absolute;
top: 0;
}
:host(.checked) slot[name='checked-indicator'],
:host(.checked) slot[name='indeterminate-indicator'] {
fill: ${Xu};
}
:host(:not(.disabled):hover) .control {
background: ${Zu};
border-color: ${ah};
}
:host(:not(.disabled):active) .control {
background: ${Ju};
border-color: ${lh};
}
:host(:${Es}) .control {
background: ${Qu};
${bh}
}
:host(.checked) .control {
background: ${_e};
border-color: transparent;
}
:host(.checked:not(.disabled):hover) .control {
background: ${Ae};
border-color: transparent;
}
:host(.checked:not(.disabled):active) .control {
background: ${Ve};
border-color: transparent;
}
:host(.disabled) .label,
:host(.readonly) .label,
:host(.readonly) .control,
:host(.disabled) .control {
cursor: ${uo};
}
:host(.checked:not(.indeterminate)) slot[name='checked-indicator'],
:host(.indeterminate) slot[name='indeterminate-indicator'] {
opacity: 1;
}
:host(.disabled) {
opacity: ${vo};
}
`.withBehaviors(Hi(it`
.control {
border-color: ${y.FieldText};
background: ${y.Field};
}
:host(:not(.disabled):hover) .control,
:host(:not(.disabled):active) .control {
border-color: ${y.Highlight};
background: ${y.Field};
}
slot[name='checked-indicator'],
slot[name='indeterminate-indicator'] {
fill: ${y.FieldText};
}
:host(:${Es}) .control {
forced-color-adjust: none;
outline-color: ${y.FieldText};
background: ${y.Field};
border-color: ${y.Highlight};
}
:host(.checked) .control {
background: ${y.Highlight};
border-color: ${y.Highlight};
}
:host(.checked:not(.disabled):hover) .control,
:host(.checked:not(.disabled):active) .control {
background: ${y.HighlightText};
border-color: ${y.Highlight};
}
:host(.checked) slot[name='checked-indicator'],
:host(.checked) slot[name='indeterminate-indicator'] {
fill: ${y.HighlightText};
}
:host(.checked:hover ) .control slot[name='checked-indicator'],
:host(.checked:hover ) .control slot[name='indeterminate-indicator'] {
fill: ${y.Highlight};
}
:host(.disabled) {
opacity: 1;
}
:host(.disabled) .control {
border-color: ${y.GrayText};
background: ${y.Field};
}
:host(.disabled) slot[name='checked-indicator'],
:host(.checked.disabled:hover) .control slot[name='checked-indicator'],
:host(.disabled) slot[name='indeterminate-indicator'],
:host(.checked.disabled:hover) .control slot[name='indeterminate-indicator'] {
fill: ${y.GrayText};
}
`)),Nh=xr.compose({baseName:"checkbox",template:Il,styles:Lh,checkedIndicator:`
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">
<path d="M13.86 3.66a.5.5 0 01-.02.7l-7.93 7.48a.6.6 0 01-.84-.02L2.4 9.1a.5.5 0 01.72-.7l2.4 2.44 7.65-7.2a.5.5 0 01.7.02z"/>
</svg>
`,indeterminateIndicator:`
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">
<path d="M3 8c0-.28.22-.5.5-.5h9a.5.5 0 010 1h-9A.5.5 0 013 8z"/>
</svg>
`}),Ue=".root",Mh=(e,t)=>it`
${zi("inline-block")}
${Vh(e,t,Ue)}
${Th()}
.root {
display: flex;
flex-direction: row;
}
.control {
-webkit-appearance: none;
color: inherit;
background: transparent;
border: 0;
height: calc(100% - 4px);
margin-top: auto;
margin-bottom: auto;
padding: 0 calc(${Lt} * 2px + 1px);
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
.start,
.end {
display: flex;
margin: auto;
}
.start {
display: flex;
margin-inline-start: 11px;
}
.end {
display: flex;
margin-inline-end: 11px;
}
`.withBehaviors(Zs("outline",Rh(e,t,Ue)),Zs("filled",Eh(e,t,Ue)),Hi(Ih(e,t,Ue)));class Vo extends U{appearanceChanged(t,r){t!==r&&(this.classList.add(r),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}S([b],Vo.prototype,"appearance",void 0);const Bh=Vo.compose({baseName:"text-field",baseClass:U,template:tc,styles:Mh,shadowOptions:{delegatesFocus:!0}});function Yi(e){return ao.getOrCreate(e).withPrefix("fluent")}/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const Re=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const Qe=globalThis,Zi=Qe.ShadowRoot&&(Qe.ShadyCSS===void 0||Qe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ji=Symbol(),Js=new WeakMap;let To=class{constructor(t,r,i){if(this._$cssResult$=!0,i!==Ji)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o;const r=this.t;if(Zi&&t===void 0){const i=r!==void 0&&r.length===1;i&&(t=Js.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Js.set(r,t))}return t}toString(){return this.cssText}};const Hh=e=>new To(typeof e=="string"?e:e+"",void 0,Ji),Yt=(e,...t)=>{const r=e.length===1?e[0]:t.reduce((i,s,n)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+e[n+1],e[0]);return new To(r,e,Ji)},zh=(e,t)=>{if(Zi)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of t){const i=document.createElement("style"),s=Qe.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,e.appendChild(i)}},Qs=Zi?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const i of t.cssRules)r+=i.cssText;return Hh(r)})(e):e;/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const{is:jh,defineProperty:Uh,getOwnPropertyDescriptor:qh,getOwnPropertyNames:Wh,getOwnPropertySymbols:Gh,getPrototypeOf:Xh}=Object,zr=globalThis,Ks=zr.trustedTypes,Yh=Ks?Ks.emptyScript:"",Zh=zr.reactiveElementPolyfillSupport,ue=(e,t)=>e,gr={toAttribute(e,t){switch(t){case Boolean:e=e?Yh:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Qi=(e,t)=>!jh(e,t),tn={attribute:!0,type:String,converter:gr,reflect:!1,hasChanged:Qi};Symbol.metadata??=Symbol("metadata"),zr.litPropertyMetadata??=new WeakMap;class Ot extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=tn){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,r);s!==void 0&&Uh(this.prototype,t,s)}}static getPropertyDescriptor(t,r,i){const{get:s,set:n}=qh(this.prototype,t)??{get(){return this[r]},set(o){this[r]=o}};return{get(){return s?.call(this)},set(o){const a=s?.call(this);n.call(this,o),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??tn}static _$Ei(){if(this.hasOwnProperty(ue("elementProperties")))return;const t=Xh(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ue("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ue("properties"))){const r=this.properties,i=[...Wh(r),...Gh(r)];for(const s of i)this.createProperty(s,r[s])}const t=this[Symbol.metadata];if(t!==null){const r=litPropertyMetadata.get(t);if(r!==void 0)for(const[i,s]of r)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[r,i]of this.elementProperties){const s=this._$Eu(r,i);s!==void 0&&this._$Eh.set(s,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const r=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)r.unshift(Qs(s))}else t!==void 0&&r.push(Qs(t));return r}static _$Eu(t,r){const i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,r=this.constructor.elementProperties;for(const i of r.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zh(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,i){this._$AK(t,i)}_$EC(t,r){const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const n=(i.converter?.toAttribute!==void 0?i.converter:gr).toAttribute(r,i.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,r){const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const n=i.getPropertyOptions(s),o=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:gr;this._$Em=s,this[s]=o.fromAttribute(r,n.type),this._$Em=null}}requestUpdate(t,r,i){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??Qi)(this[t],r))return;this.P(t,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,r,i){this._$AL.has(t)||this._$AL.set(t,r),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[s,n]of i)n.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],n)}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$EU()}catch(i){throw t=!1,this._$EU(),i}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(r=>this._$EC(r,this[r])),this._$EU()}updated(t){}firstUpdated(t){}}Ot.elementStyles=[],Ot.shadowRootOptions={mode:"open"},Ot[ue("elementProperties")]=new Map,Ot[ue("finalized")]=new Map,Zh?.({ReactiveElement:Ot}),(zr.reactiveElementVersions??=[]).push("2.0.4");/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const Jh={attribute:!0,type:String,converter:gr,reflect:!1,hasChanged:Qi},Qh=(e=Jh,t,r)=>{const{kind:i,metadata:s}=r;let n=globalThis.litPropertyMetadata.get(s);if(n===void 0&&globalThis.litPropertyMetadata.set(s,n=new Map),n.set(r.name,e),i==="accessor"){const{name:o}=r;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,l,e)},init(a){return a!==void 0&&this.P(o,void 0,e),a}}}if(i==="setter"){const{name:o}=r;return function(a){const l=this[o];t.call(this,a),this.requestUpdate(o,l,e)}}throw Error("Unsupported decorator location: "+i)};function L(e){return(t,r)=>typeof r=="object"?Qh(e,t,r):((i,s,n)=>{const o=s.hasOwnProperty(n);return s.constructor.createProperty(n,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(s,n):void 0})(e,t,r)}/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/function Ki(e){return L({...e,state:!0,attribute:!1})}/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const en=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/function Kh(e,t){return(r,i,s)=>{const n=o=>o.renderRoot?.querySelector(e)??null;if(t){const{get:o,set:a}=typeof i=="object"?r:s??(()=>{const l=Symbol();return{get(){return this[l]},set(c){this[l]=c}}})();return en(r,i,{get(){let l=o.call(this);return l===void 0&&(l=n(this),(l!==null||this.hasUpdated)&&a.call(this,l)),l}})}return en(r,i,{get(){return n(this)}})}}/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const ts=globalThis,vr=ts.trustedTypes,rn=vr?vr.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ro="$lit$",dt=`lit$${(Math.random()+"").slice(9)}$`,Eo="?"+dt,td=`<${Eo}>`,_t=document,we=()=>_t.createComment(""),$e=e=>e===null||typeof e!="object"&&typeof e!="function",Io=Array.isArray,ed=e=>Io(e)||typeof e?.[Symbol.iterator]=="function",ui=`[
\f\r]`,re=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,sn=/-->/g,nn=/>/g,$t=RegExp(`>|${ui}(?:([^\\s"'>=/]+)(${ui}*=${ui}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),on=/'/g,an=/"/g,Oo=/^(?:script|style|textarea|title)$/i,rd=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),K=rd(1),mt=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),ln=new WeakMap,Ft=_t.createTreeWalker(_t,129);function Po(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return rn!==void 0?rn.createHTML(t):t}const id=(e,t)=>{const r=e.length-1,i=[];let s,n=t===2?"<svg>":"",o=re;for(let a=0;a<r;a++){const l=e[a];let c,u,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,u=o.exec(l),u!==null);)p=o.lastIndex,o===re?u[1]==="!--"?o=sn:u[1]!==void 0?o=nn:u[2]!==void 0?(Oo.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=$t):u[3]!==void 0&&(o=$t):o===$t?u[0]===">"?(o=s??re,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?$t:u[3]==='"'?an:on):o===an||o===on?o=$t:o===sn||o===nn?o=re:(o=$t,s=void 0);const v=o===$t&&e[a+1].startsWith("/>")?" ":"";n+=o===re?l+td:d>=0?(i.push(c),l.slice(0,d)+Ro+l.slice(d)+dt+v):l+dt+(d===-2?a:v)}return[Po(e,n+(e[r]||"<?>")+(t===2?"</svg>":"")),i]};class Se{constructor({strings:t,_$litType$:r},i){let s;this.parts=[];let n=0,o=0;const a=t.length-1,l=this.parts,[c,u]=id(t,r);if(this.el=Se.createElement(c,i),Ft.currentNode=this.el.content,r===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=Ft.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const d of s.getAttributeNames())if(d.endsWith(Ro)){const p=u[o++],v=s.getAttribute(d).split(dt),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:n,name:g[2],strings:v,ctor:g[1]==="."?nd:g[1]==="?"?od:g[1]==="@"?ad:jr}),s.removeAttribute(d)}else d.startsWith(dt)&&(l.push({type:6,index:n}),s.removeAttribute(d));if(Oo.test(s.tagName)){const d=s.textContent.split(dt),p=d.length-1;if(p>0){s.textContent=vr?vr.emptyScript:"";for(let v=0;v<p;v++)s.append(d[v],we()),Ft.nextNode(),l.push({type:2,index:++n});s.append(d[p],we())}}}else if(s.nodeType===8)if(s.data===Eo)l.push({type:2,index:n});else{let d=-1;for(;(d=s.data.indexOf(dt,d+1))!==-1;)l.push({type:7,index:n}),d+=dt.length-1}n++}}static createElement(t,r){const i=_t.createElement("template");return i.innerHTML=t,i}}function jt(e,t,r=e,i){if(t===mt)return t;let s=i!==void 0?r._$Co?.[i]:r._$Cl;const n=$e(t)?void 0:t._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(e),s._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=s:r._$Cl=s),s!==void 0&&(t=jt(e,s._$AS(e,t.values),s,i)),t}class sd{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:r},parts:i}=this._$AD,s=(t?.creationScope??_t).importNode(r,!0);Ft.currentNode=s;let n=Ft.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Ee(n,n.nextSibling,this,t):l.type===1?c=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(c=new ld(n,this,t)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(n=Ft.nextNode(),o++)}return Ft.currentNode=_t,s}p(t){let r=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}}class Ee{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,s){this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=jt(this,t,r),$e(t)?t===w||t==null||t===""?(this._$AH!==w&&this._$AR(),this._$AH=w):t!==this._$AH&&t!==mt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ed(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==w&&$e(this._$AH)?this._$AA.nextSibling.data=t:this.T(_t.createTextNode(t)),this._$AH=t}$(t){const{values:r,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Se.createElement(Po(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(r);else{const n=new sd(s,this),o=n.u(this.options);n.p(r),this.T(o),this._$AH=n}}_$AC(t){let r=ln.get(t.strings);return r===void 0&&ln.set(t.strings,r=new Se(t)),r}k(t){Io(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let i,s=0;for(const n of t)s===r.length?r.push(i=new Ee(this.S(we()),this.S(we()),this,this.options)):i=r[s],i._$AI(n),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class jr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,s,n){this.type=1,this._$AH=w,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=w}_$AI(t,r=this,i,s){const n=this.strings;let o=!1;if(n===void 0)t=jt(this,t,r,0),o=!$e(t)||t!==this._$AH&&t!==mt,o&&(this._$AH=t);else{const a=t;let l,c;for(t=n[0],l=0;l<n.length-1;l++)c=jt(this,a[i+l],r,l),c===mt&&(c=this._$AH[l]),o||=!$e(c)||c!==this._$AH[l],c===w?t=w:t!==w&&(t+=(c??"")+n[l+1]),this._$AH[l]=c}o&&!s&&this.j(t)}j(t){t===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class nd extends jr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===w?void 0:t}}class od extends jr{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==w)}}class ad extends jr{constructor(t,r,i,s,n){super(t,r,i,s,n),this.type=5}_$AI(t,r=this){if((t=jt(this,t,r,0)??w)===mt)return;const i=this._$AH,s=t===w&&i!==w||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==w&&(i===w||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class ld{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){jt(this,t)}}const cd=ts.litHtmlPolyfillSupport;cd?.(Se,Ee),(ts.litHtmlVersions??=[]).push("3.1.2");const ud=(e,t,r)=>{const i=r?.renderBefore??t;let s=i._$litPart$;if(s===void 0){const n=r?.renderBefore??null;i._$litPart$=s=new Ee(t.insertBefore(we(),n),n,void 0,r??{})}return s._$AI(e),s};/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/let ot=class extends Ot{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ud(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return mt}};ot._$litElement$=!0,ot.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ot});const hd=globalThis.litElementPolyfillSupport;hd?.({LitElement:ot});(globalThis.litElementVersions??=[]).push("4.0.4");/**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/class dd extends ot{render(){return K`<slot></slot>`}connectedCallback(){if(super.connectedCallback(),this.getAttribute("aria-hidden")==="false"){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}/**
* @license
* Copyright 2024 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/const fd=Yt`:host{font-size:var(--md-icon-size, 24px);width:var(--md-icon-size, 24px);height:var(--md-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%}
`;/**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/let Fi=class extends dd{};Fi.styles=[fd];Fi=S([Re("md-icon")],Fi);/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/const Lo=Symbol("attachableController");let No;No=new MutationObserver(e=>{for(const t of e)t.target[Lo]?.hostConnected()});class Mo{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(t){t===null?this.host.removeAttribute("for"):this.host.setAttribute("for",t)}get control(){return this.host.hasAttribute("for")?!this.htmlFor||!this.host.isConnected?null:this.host.getRootNode().querySelector(`#${this.htmlFor}`):this.currentControl||this.host.parentElement}set control(t){t?this.attach(t):this.detach()}constructor(t,r){this.host=t,this.onControlChange=r,this.currentControl=null,t.addController(this),t[Lo]=this,No?.observe(t,{attributeFilter:["for"]})}attach(t){t!==this.currentControl&&(this.setCurrentControl(t),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(t){this.onControlChange(this.currentControl,t),this.currentControl=t}}/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/const pd=["focusin","focusout","pointerdown"];class es extends ot{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new Mo(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(t){if(!t[cn]){switch(t.type){default:return;case"focusin":this.visible=this.control?.matches(":focus-visible")??!1;break;case"focusout":case"pointerdown":this.visible=!1;break}t[cn]=!0}}onControlChange(t,r){for(const i of pd)t?.removeEventListener(i,this),r?.addEventListener(i,this)}update(t){t.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(t)}}S([L({type:Boolean,reflect:!0})],es.prototype,"visible",void 0);S([L({type:Boolean,reflect:!0})],es.prototype,"inward",void 0);const cn=Symbol("handledByFocusRing");/**
* @license
* Copyright 2024 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/const gd=Yt`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
`;/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/let Ci=class extends es{};Ci.styles=[gd];Ci=S([Re("md-focus-ring")],Ci);/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const Bo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ho=e=>(...t)=>({_$litDirective$:e,values:t});let zo=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,i){this._$Ct=t,this._$AM=r,this._$Ci=i}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const rs=Ho(class extends zo{constructor(e){if(super(e),e.type!==Bo.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(const i in t)t[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(t)}const r=e.element.classList;for(const i of this.st)i in t||(r.remove(i),this.st.delete(i));for(const i in t){const s=!!t[i];s===this.st.has(i)||this.nt?.has(i)||(s?(r.add(i),this.st.add(i)):(r.remove(i),this.st.delete(i)))}return mt}});/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/const vd={STANDARD:"cubic-bezier(0.2, 0, 0, 1)",STANDARD_ACCELERATE:"cubic-bezier(.3,0,1,1)",STANDARD_DECELERATE:"cubic-bezier(0,0,0,1)",EMPHASIZED:"cubic-bezier(.3,0,0,1)",EMPHASIZED_ACCELERATE:"cubic-bezier(.3,0,.8,.15)",EMPHASIZED_DECELERATE:"cubic-bezier(.05,.7,.1,1)"};/**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/const bd=450,un=225,md=.2,yd=10,wd=75,$d=.35,Sd="::after",xd="forwards";var N;(function(e){e[e.INACTIVE=0]="INACTIVE",e[e.TOUCH_DELAY=1]="TOUCH_DELAY",e[e.HOLDING=2]="HOLDING",e[e.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"})(N||(N={}));const Fd=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],Cd=150,kd=window.matchMedia("(forced-colors: active)");class Ie extends ot{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=N.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new Mo(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const t={hovered:this.hovered,pressed:this.pressed};return K`<div class="surface ${rs(t)}"></div>`}update(t){t.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(t)}handlePointerenter(t){this.shouldReactToEvent(t)&&(this.hovered=!0)}handlePointerleave(t){this.shouldReactToEvent(t)&&(this.hovered=!1,this.state!==N.INACTIVE&&this.endPressAnimation())}handlePointerup(t){if(this.shouldReactToEvent(t)){if(this.state===N.HOLDING){this.state=N.WAITING_FOR_CLICK;return}if(this.state===N.TOUCH_DELAY){this.state=N.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(t){if(this.shouldReactToEvent(t)){if(this.rippleStartEvent=t,!this.isTouch(t)){this.state=N.WAITING_FOR_CLICK,this.startPressAnimation(t);return}this.checkBoundsAfterContextMenu&&!this.inBounds(t)||(this.checkBoundsAfterContextMenu=!1,this.state=N.TOUCH_DELAY,await new Promise(r=>{setTimeout(r,Cd)}),this.state===N.TOUCH_DELAY&&(this.state=N.HOLDING,this.startPressAnimation(t)))}}handleClick(){if(!this.disabled){if(this.state===N.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===N.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation())}}handlePointercancel(t){this.shouldReactToEvent(t)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:t,width:r}=this.getBoundingClientRect(),i=Math.max(t,r),s=Math.max($d*i,wd),n=Math.floor(i*md),a=Math.sqrt(r**2+t**2)+yd;this.initialSize=n,this.rippleScale=`${(a+s)/n}`,this.rippleSize=`${n}px`}getNormalizedPointerEventCoords(t){const{scrollX:r,scrollY:i}=window,{left:s,top:n}=this.getBoundingClientRect(),o=r+s,a=i+n,{pageX:l,pageY:c}=t;return{x:l-o,y:c-a}}getTranslationCoordinates(t){const{height:r,width:i}=this.getBoundingClientRect(),s={x:(i-this.initialSize)/2,y:(r-this.initialSize)/2};let n;return t instanceof PointerEvent?n=this.getNormalizedPointerEventCoords(t):n={x:i/2,y:r/2},n={x:n.x-this.initialSize/2,y:n.y-this.initialSize/2},{startPoint:n,endPoint:s}}startPressAnimation(t){if(!this.mdRoot)return;this.pressed=!0,this.growAnimation?.cancel(),this.determineRippleSize();const{startPoint:r,endPoint:i}=this.getTranslationCoordinates(t),s=`${r.x}px, ${r.y}px`,n=`${i.x}px, ${i.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${s}) scale(1)`,`translate(${n}) scale(${this.rippleScale})`]},{pseudoElement:Sd,duration:bd,easing:vd.STANDARD,fill:xd})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=N.INACTIVE;const t=this.growAnimation;let r=1/0;if(typeof t?.currentTime=="number"?r=t.currentTime:t?.currentTime&&(r=t.currentTime.to("ms").value),r>=un){this.pressed=!1;return}await new Promise(i=>{setTimeout(i,un-r)}),this.growAnimation===t&&(this.pressed=!1)}shouldReactToEvent(t){if(this.disabled||!t.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==t.pointerId)return!1;if(t.type==="pointerenter"||t.type==="pointerleave")return!this.isTouch(t);const r=t.buttons===1;return this.isTouch(t)||r}inBounds({x:t,y:r}){const{top:i,left:s,bottom:n,right:o}=this.getBoundingClientRect();return t>=s&&t<=o&&r>=i&&r<=n}isTouch({pointerType:t}){return t==="touch"}async handleEvent(t){if(!kd?.matches)switch(t.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(t);break;case"pointerdown":await this.handlePointerdown(t);break;case"pointerenter":this.handlePointerenter(t);break;case"pointerleave":this.handlePointerleave(t);break;case"pointerup":this.handlePointerup(t);break}}onControlChange(t,r){for(const i of Fd)t?.removeEventListener(i,this),r?.addEventListener(i,this)}}S([L({type:Boolean,reflect:!0})],Ie.prototype,"disabled",void 0);S([Ki()],Ie.prototype,"hovered",void 0);S([Ki()],Ie.prototype,"pressed",void 0);S([Kh(".surface")],Ie.prototype,"mdRoot",void 0);/**
* @license
* Copyright 2024 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/const Dd=Yt`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
`;/**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/let ki=class extends Ie{};ki.styles=[Dd];ki=S([Re("md-ripple")],ki);/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const jo=Symbol.for(""),_d=e=>{if(e?.r===jo)return e?._$litStatic$},hn=(e,...t)=>({_$litStatic$:t.reduce((r,i,s)=>r+(n=>{if(n._$litStatic$!==void 0)return n._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${n}. Use 'unsafeStatic' to pass non-literal values, but
take care to ensure page security.`)})(i)+e[s+1],e[0]),r:jo}),dn=new Map,Ad=e=>(t,...r)=>{const i=r.length;let s,n;const o=[],a=[];let l,c=0,u=!1;for(;c<i;){for(l=t[c];c<i&&(n=r[c],(s=_d(n))!==void 0);)l+=s+t[++c],u=!0;c!==i&&a.push(n),o.push(l),c++}if(c===i&&o.push(t[i]),u){const d=o.join("$$lit$$");(t=dn.get(d))===void 0&&(o.raw=o,dn.set(d,t=o)),r=a}return e(t,...r)},Vd=Ad(K);/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/const Uo=["ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"];Uo.map(qo);function qo(e){return e.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/function Wo(e){for(const t of Uo)e.createProperty(t,{attribute:qo(t),reflect:!0});e.addInitializer(t=>{const r={hostConnected(){t.setAttribute("role","presentation")}};t.addController(r)})}/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/const br=Symbol("internals"),hi=Symbol("privateInternals");function Td(e){class t extends e{get[br](){return this[hi]||(this[hi]=this.attachInternals()),this[hi]}}return t}/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/function Rd(e){e.addInitializer(t=>{const r=t;r.addEventListener("click",async i=>{const{type:s,[br]:n}=r,{form:o}=n;if(!(!o||s==="button")&&(await new Promise(a=>{setTimeout(a)}),!i.defaultPrevented)){if(s==="reset"){o.reset();return}o.addEventListener("submit",a=>{Object.defineProperty(a,"submitter",{configurable:!0,enumerable:!0,get:()=>r})},{capture:!0,once:!0}),n.setFormValue(r.value),o.requestSubmit()}})})}/**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/function fn(e,t=!0){return t&&getComputedStyle(e).getPropertyValue("direction").trim()==="rtl"}/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/const Ed=Td(ot);class z extends Ed{constructor(){super(...arguments),this.disabled=!1,this.flipIconInRtl=!1,this.href="",this.target="",this.ariaLabelSelected="",this.toggle=!1,this.selected=!1,this.type="submit",this.value="",this.flipIcon=fn(this,this.flipIconInRtl)}get name(){return this.getAttribute("name")??""}set name(t){this.setAttribute("name",t)}get form(){return this[br].form}get labels(){return this[br].labels}willUpdate(){this.href&&(this.disabled=!1)}render(){const t=this.href?hn`div`:hn`button`,{ariaLabel:r,ariaHasPopup:i,ariaExpanded:s}=this,n=r&&this.ariaLabelSelected,o=this.toggle?this.selected:w;let a=w;return this.href||(a=n&&this.selected?this.ariaLabelSelected:r),Vd`<${t}
class="icon-button ${rs(this.getRenderClasses())}"
id="button"
aria-label="${a||w}"
aria-haspopup="${!this.href&&i||w}"
aria-expanded="${!this.href&&s||w}"
aria-pressed="${o}"
?disabled="${!this.href&&this.disabled}"
@click="${this.handleClick}">
${this.renderFocusRing()}
${this.renderRipple()}
${this.selected?w:this.renderIcon()}
${this.selected?this.renderSelectedIcon():w}
${this.renderTouchTarget()}
${this.href&&this.renderLink()}
</${t}>`}renderLink(){const{ariaLabel:t}=this;return K`
<a
class="link"
id="link"
href="${this.href}"
target="${this.target||w}"
aria-label="${t||w}"></a>
`}getRenderClasses(){return{"flip-icon":this.flipIcon,selected:this.toggle&&this.selected}}renderIcon(){return K`<span class="icon"><slot></slot></span>`}renderSelectedIcon(){return K`<span class="icon icon--selected"
><slot name="selected"><slot></slot></slot
></span>`}renderTouchTarget(){return K`<span class="touch"></span>`}renderFocusRing(){return K`<md-focus-ring
part="focus-ring"
for=${this.href?"link":"button"}></md-focus-ring>`}renderRipple(){return K`<md-ripple
for=${this.href?"link":w}
?disabled="${!this.href&&this.disabled}"></md-ripple>`}connectedCallback(){this.flipIcon=fn(this,this.flipIconInRtl),super.connectedCallback()}async handleClick(t){await 0,!(!this.toggle||this.disabled||t.defaultPrevented)&&(this.selected=!this.selected,this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}}Wo(z),Rd(z);z.formAssociated=!0;z.shadowRootOptions={mode:"open",delegatesFocus:!0};S([L({type:Boolean,reflect:!0})],z.prototype,"disabled",void 0);S([L({type:Boolean,attribute:"flip-icon-in-rtl"})],z.prototype,"flipIconInRtl",void 0);S([L()],z.prototype,"href",void 0);S([L()],z.prototype,"target",void 0);S([L({attribute:"aria-label-selected"})],z.prototype,"ariaLabelSelected",void 0);S([L({type:Boolean})],z.prototype,"toggle",void 0);S([L({type:Boolean,reflect:!0})],z.prototype,"selected",void 0);S([L()],z.prototype,"type",void 0);S([L({reflect:!0})],z.prototype,"value",void 0);S([Ki()],z.prototype,"flipIcon",void 0);/**
* @license
* Copyright 2024 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/const Id=Yt`:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);height:var(--_container-height);width:var(--_container-width);justify-content:center}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) max(0px,(48px - var(--_container-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host([disabled]){pointer-events:none}.icon-button{place-items:center;background:none;border:none;box-sizing:border-box;cursor:pointer;display:flex;place-content:center;outline:none;padding:0;position:relative;text-decoration:none;user-select:none;z-index:0;flex:1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.icon ::slotted(*){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size);font-weight:inherit}md-ripple{z-index:-1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.flip-icon .icon{transform:scaleX(-1)}.icon{display:inline-flex}.link{height:100%;outline:none;position:absolute;width:100%}.touch{position:absolute;height:max(48px,100%);width:max(48px,100%)}:host([touch-target=none]) .touch{display:none}@media(forced-colors: active){:host([disabled]){--_disabled-icon-opacity: 1}}
`;/**
* @license
* Copyright 2024 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/const Od=Yt`:host{--_disabled-icon-color: var(--md-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-icon-button-disabled-icon-opacity, 0.38);--_icon-size: var(--md-icon-button-icon-size, 24px);--_selected-focus-icon-color: var(--md-icon-button-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-icon-button-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-color: var(--md-icon-button-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-icon-button-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-icon-button-selected-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-icon-button-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-color: var(--md-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-opacity: var(--md-icon-button-selected-pressed-state-layer-opacity, 0.12);--_state-layer-height: var(--md-icon-button-state-layer-height, 40px);--_state-layer-shape: var(--md-icon-button-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));--_state-layer-width: var(--md-icon-button-state-layer-width, 40px);--_focus-icon-color: var(--md-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-icon-button-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-icon-button-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: 0;--_container-shape-start-end: 0;--_container-shape-end-end: 0;--_container-shape-end-start: 0;--_container-height: 0;--_container-width: 0;height:var(--_state-layer-height);width:var(--_state-layer-width)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_state-layer-height))/2) max(0px,(48px - var(--_state-layer-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_state-layer-shape);--md-focus-ring-shape-start-end: var(--_state-layer-shape);--md-focus-ring-shape-end-end: var(--_state-layer-shape);--md-focus-ring-shape-end-start: var(--_state-layer-shape)}.standard{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.standard:hover{color:var(--_hover-icon-color)}.standard:focus{color:var(--_focus-icon-color)}.standard:active{color:var(--_pressed-icon-color)}.standard:disabled{color:var(--_disabled-icon-color)}md-ripple{border-radius:var(--_state-layer-shape)}.standard:disabled .icon{opacity:var(--_disabled-icon-opacity)}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}.selected:not(:disabled){color:var(--_selected-icon-color)}.selected:not(:disabled):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_selected-pressed-icon-color)}
`;/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/let Di=class extends z{getRenderClasses(){return{...super.getRenderClasses(),standard:!0}}};Di.styles=[Id,Od];Di=S([Re("md-icon-button")],Di);/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const Go="important",Pd=" !"+Go,pn=Ho(class extends zo{constructor(e){if(super(e),e.type!==Bo.ATTRIBUTE||e.name!=="style"||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,r)=>{const i=e[r];return i==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(e,[t]){const{style:r}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const i of this.ft)t[i]==null&&(this.ft.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(const i in t){const s=t[i];if(s!=null){this.ft.add(i);const n=typeof s=="string"&&s.endsWith(Pd);i.includes("-")||n?r.setProperty(i,n?s.slice(0,-11):s,n?Go:""):r[i]=s}}return mt}});/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/class Zt extends ot{constructor(){super(...arguments),this.value=0,this.max=1,this.indeterminate=!1,this.fourColor=!1}render(){const{ariaLabel:t}=this;return K`
<div
class="progress ${rs(this.getRenderClasses())}"
role="progressbar"
aria-label="${t||w}"
aria-valuemin="0"
aria-valuemax=${this.max}
aria-valuenow=${this.indeterminate?w:this.value}
>${this.renderIndicator()}</div
>
`}getRenderClasses(){return{indeterminate:this.indeterminate,"four-color":this.fourColor}}}Wo(Zt);S([L({type:Number})],Zt.prototype,"value",void 0);S([L({type:Number})],Zt.prototype,"max",void 0);S([L({type:Boolean})],Zt.prototype,"indeterminate",void 0);S([L({type:Boolean,attribute:"four-color"})],Zt.prototype,"fourColor",void 0);/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/class Xo extends Zt{constructor(){super(...arguments),this.buffer=0}renderIndicator(){const t={transform:`scaleX(${(this.indeterminate?1:this.value/this.max)*100}%)`},r=this.buffer??0,i=r>0,n={transform:`scaleX(${(this.indeterminate||!i?1:r/this.max)*100}%)`},o=this.indeterminate||!i||r>=this.max||this.value>=this.max;return K`
<div class="dots" ?hidden=${o}></div>
<div class="inactive-track" style=${pn(n)}></div>
<div class="bar primary-bar" style=${pn(t)}>
<div class="bar-inner"></div>
</div>
<div class="bar secondary-bar">
<div class="bar-inner"></div>
</div>
`}}S([L({type:Number})],Xo.prototype,"buffer",void 0);/**
* @license
* Copyright 2024 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/const Ld=Yt`:host{--_active-indicator-color: var(--md-linear-progress-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_active-indicator-height: var(--md-linear-progress-active-indicator-height, 4px);--_four-color-active-indicator-four-color: var(--md-linear-progress-four-color-active-indicator-four-color, var(--md-sys-color-tertiary-container, #ffd8e4));--_four-color-active-indicator-one-color: var(--md-linear-progress-four-color-active-indicator-one-color, var(--md-sys-color-primary, #6750a4));--_four-color-active-indicator-three-color: var(--md-linear-progress-four-color-active-indicator-three-color, var(--md-sys-color-tertiary, #7d5260));--_four-color-active-indicator-two-color: var(--md-linear-progress-four-color-active-indicator-two-color, var(--md-sys-color-primary-container, #eaddff));--_track-color: var(--md-linear-progress-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_track-height: var(--md-linear-progress-track-height, 4px);--_track-shape: var(--md-linear-progress-track-shape, var(--md-sys-shape-corner-none, 0px));border-radius:var(--_track-shape);display:flex;position:relative;min-width:80px;height:var(--_track-height);content-visibility:auto;contain:strict}.progress,.dots,.inactive-track,.bar,.bar-inner{position:absolute}.progress{direction:ltr;inset:0;border-radius:inherit;overflow:hidden;display:flex;align-items:center}.bar{animation:none;width:100%;height:var(--_active-indicator-height);transform-origin:left center;transition:transform 250ms cubic-bezier(0.4, 0, 0.6, 1)}.secondary-bar{display:none}.bar-inner{inset:0;animation:none;background:var(--_active-indicator-color)}.inactive-track{background:var(--_track-color);inset:0;transition:transform 250ms cubic-bezier(0.4, 0, 0.6, 1);transform-origin:left center}.dots{inset:0;animation:linear infinite 250ms;animation-name:buffering;background-color:var(--_track-color);background-repeat:repeat-x;-webkit-mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");z-index:-1}.dots[hidden]{display:none}.indeterminate .bar{transition:none}.indeterminate .primary-bar{inset-inline-start:-145.167%}.indeterminate .secondary-bar{inset-inline-start:-54.8889%;display:block}.indeterminate .primary-bar{animation:linear infinite 2s;animation-name:primary-indeterminate-translate}.indeterminate .primary-bar>.bar-inner{animation:linear infinite 2s primary-indeterminate-scale}.indeterminate.four-color .primary-bar>.bar-inner{animation-name:primary-indeterminate-scale,four-color;animation-duration:2s,4s}.indeterminate .secondary-bar{animation:linear infinite 2s;animation-name:secondary-indeterminate-translate}.indeterminate .secondary-bar>.bar-inner{animation:linear infinite 2s secondary-indeterminate-scale}.indeterminate.four-color .secondary-bar>.bar-inner{animation-name:secondary-indeterminate-scale,four-color;animation-duration:2s,4s}:host(:dir(rtl)){transform:scale(-1)}@keyframes primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.00432);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes buffering{0%{transform:translateX(calc(var(--_track-height) / 2 * 5))}}@keyframes primary-indeterminate-translate{0%{transform:translateX(0px)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0px)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.6714%)}100%{transform:translateX(200.611%)}}@keyframes secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0px)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.6519%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.3862%)}100%{transform:translateX(160.278%)}}@keyframes four-color{0%{background:var(--_four-color-active-indicator-one-color)}15%{background:var(--_four-color-active-indicator-one-color)}25%{background:var(--_four-color-active-indicator-two-color)}40%{background:var(--_four-color-active-indicator-two-color)}50%{background:var(--_four-color-active-indicator-three-color)}65%{background:var(--_four-color-active-indicator-three-color)}75%{background:var(--_four-color-active-indicator-four-color)}90%{background:var(--_four-color-active-indicator-four-color)}100%{background:var(--_four-color-active-indicator-one-color)}}@media(forced-colors: active){:host{outline:1px solid CanvasText}.bar-inner,.dots{background-color:CanvasText}}
`;/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/let _i=class extends Xo{};_i.styles=[Ld];_i=S([Re("md-linear-progress")],_i);Yi().register(Ph());Yi().register(Nh());Yi().register(Bh());let Nd=["../../web-imports/custom.css","https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200"];Nd.forEach(e=>{let t=document.createElement("link");t.rel="stylesheet",t.href=e,document.head.appendChild(t)});let Yo=e=>t=>e(...t),Md=new Proxy(Ti.tags,{get:(e,t)=>Yo(e[String(t)])}),Bd=Yo(Ti.add);const is=Md,Hd=Bd;let zd=Ti.state;const jd=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Ud=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],qd=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Wd=["January","February","March","April","May","June","July","August","September","October","November","December"];function q(e,t,r){let i=0,s=t;for(;s<e.length&&e[s]===r;)s++,i++;return i}function gn(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Gd(e,t){let r=t;const i=e[t];let s="",n=!1;for(;t<e.length;){t++;const o=e[t];if(o===i){n=!0;break}else if(o==="\\")if(t<e.length)t++,s+=e[t];else throw new Error("Invalid string format");else s+=o}if(!n)throw new Error(`Invalid string format could not find matching quote for ${i}`);return[s,t-r+1]}function ss(e,t,r){let i=0,s=0,n="";const o=r?Zo(e.getTime(),1):e;for(;i<t.length;){const a=t[i];switch(a){case"d":switch(s=q(t,i,"d"),i+=s,s){case 1:n+=o.getDate();break;case 2:n+=k(o.getDate(),2);break;case 3:n+=jd[yn(o)];break;case 4:n+=Ud[yn(o)];break}break;case"f":if(s=q(t,i,"f"),i+=s,s<=3){const R=10**(3-s);n+=k(Math.floor(We(o)/R),s)}else s<=7&&(n+=(""+We(o)).padEnd(s,"0"));break;case"F":if(s=q(t,i,"F"),i+=s,s<=3){const R=10**(3-s),G=Math.floor(We(o)/R);G!=0&&(n+=k(G,s))}else if(s<=7){const R=We(o);R!=0&&(n+=k(R,3))}break;case"g":s=q(t,i,"g"),i+=s,s<=2&&(n+="A.D.");break;case"h":switch(s=q(t,i,"h"),i+=s,s){case 1:n+=qe(o)%12;break;case 2:n+=k(qe(o)%12,2);break}break;case"H":switch(s=q(t,i,"H"),i+=s,s){case 1:n+=qe(o);break;case 2:n+=k(qe(o),2);break}break;case"K":switch(s=q(t,i,"K"),i+=s,s){case 1:switch(vn(o)){case 1:n+="Z";break;case 2:n+=Ht(o.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(s=q(t,i,"m"),i+=s,s){case 1:n+=bn(o);break;case 2:n+=k(bn(o),2);break}break;case"M":switch(s=q(t,i,"M"),i+=s,s){case 1:n+=Ge(o);break;case 2:n+=k(Ge(o),2);break;case 3:n+=qd[Ge(o)-1];break;case 4:n+=Wd[Ge(o)-1];break}break;case"s":switch(s=q(t,i,"s"),i+=s,s){case 1:n+=mn(o);break;case 2:n+=k(mn(o),2);break}break;case"t":switch(s=q(t,i,"t"),i+=s,s){case 1:n+=o.getHours()<12?"A":"P";break;case 2:n+=o.getHours()<12?"AM":"PM";break}break;case"y":switch(s=q(t,i,"y"),i+=s,s){case 1:n+=o.getFullYear()%100;break;case 2:n+=k(o.getFullYear()%100,2);break;case 3:n+=k(o.getFullYear(),3);break;case 4:n+=k(o.getFullYear(),4);break;case 5:n+=k(o.getFullYear(),5);break}break;case"z":s=q(t,i,"z"),i+=s;let l="";switch(vn(o)){case 1:l="+00:00";break;case 2:l=Ht(o.getTimezoneOffset()*-6e4);break;case 0:l=Ht(Kd(o).getTimezoneOffset()*-6e4);break}const c=l[0]==="-"?"-":"+",u=parseInt(l.substring(1,3),10),d=parseInt(l.substring(4,6),10);switch(s){case 1:n+=`${c}${u}`;break;case 2:n+=`${c}${k(u,2)}`;break;default:n+=`${c}${k(u,2)}:${k(d,2)}`;break}break;case":":n+=":",i++;break;case"/":n+="/",i++;break;case"'":case'"':const[p,v]=Gd(t,i);n+=p,i+=v;break;case"%":const g=gn(t,i);if(g>=0&&g!==37)i+=2,n+=ss(o,String.fromCharCode(g),r);else throw new Error("Invalid format string");break;case"\\":const x=gn(t,i);if(x>=0)i+=2,n+=String.fromCharCode(x);else throw new Error("Invalid format string");break;default:i++,n+=a;break}}return n}function vn(e){return e.kind||0}function Ht(e){const t=e<0;e=Math.abs(e);const r=~~(e/36e5),i=e%36e5/6e4;return(t?"-":"+")+k(r,2)+":"+k(i,2)}function mr(e,t){const r=e.toISOString();return t==="first"?r.substring(0,r.indexOf("T")):r.substring(r.indexOf("T")+1,r.length-1)}function Xd(e,t){if(t)return e.toISOString();{const r=e.kind==null?!0:e.kind===2;return k(e.getFullYear(),4)+"-"+k(e.getMonth()+1,2)+"-"+k(e.getDate(),2)+"T"+k(e.getHours(),2)+":"+k(e.getMinutes(),2)+":"+k(e.getSeconds(),2)+"."+k(e.getMilliseconds(),3)+(r?Ht(e.getTimezoneOffset()*-6e4):"")}}function Yd(e,t){const r=e.toISOString();return r.substring(0,r.length-1)+Ht(t)}function Zd(e,t){const r=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return r.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+Ht(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return mr(r,"first");case"T":case"t":return mr(r,"second");case"O":case"o":return Yd(r,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return ss(r,t,!0)}function Jd(e,t){const r=e.kind===1;if(typeof t!="string")return r?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return r?mr(e,"first"):e.toLocaleDateString();case"T":case"t":return r?mr(e,"second"):e.toLocaleTimeString();case"O":case"o":return Xd(e,r);default:throw new Error("Unrecognized Date print format")}else return ss(e,t,r)}function Qd(e,t,r){return e.offset!=null?Zd(e,t):Jd(e,t)}function Zo(e,t){const r=new Date(e);return r.kind=(t??0)|0,r}function Kd(e){return e.kind===2?e:Zo(e.getTime(),2)}function qe(e){return e.kind===1?e.getUTCHours():e.getHours()}function We(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function bn(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Ge(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function mn(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function yn(e){return e.kind===1?e.getUTCDay():e.getDay()}const ie=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g;function tf(e,t){return Ca(e,t)<0}function ef(e){return{input:e,cont:of(e)}}function rf(e,t){return typeof t=="string"?e(t):t.cont(e)}function sf(e){return rf(t=>console.log(t),e)}function nf(e,t,r,i,s){let n="";if(t=t||"",s=s||"",Fa(e))switch(s.toLowerCase()!=="x"&&(tf(e,0)?(e=ka(e,-1),n="-"):t.indexOf(" ")>=0?n=" ":t.indexOf("+")>=0&&(n="+")),i=i==null?null:parseInt(i,10),s){case"f":case"F":i=i??6,e=Da(e,i);break;case"g":case"G":e=i!=null?ls(e,i):ls(e);break;case"e":case"E":e=i!=null?cs(e,i):cs(e);break;case"x":e=us(e);break;case"X":e=us(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Qd(e):e=kt(e);if(r=typeof r=="number"?r:parseInt(r,10),isNaN(r))e=n+e;else{const o=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!o?" ":"0";l==="0"?(e=wn(e,r-n.length,l,a),e=n+e):e=wn(n+e,r,l,a)}return e}function Jo(e,t,r,i="",s=-1){return(...n)=>{let o=i;const a=t.slice(),l=r.slice();for(const c of n){const[,,u,d,p,v]=l[0];let g=d;if(s>=0)g=s,s=-1;else if(g==="*"){if(c<0)throw new Error("Non-negative number required");s=c;continue}o+=a[0],o+=nf(c,u,g,p,v),a.splice(0,1),l.splice(0,1)}return l.length===0?(o+=a[0],e(o)):Jo(e,a,l,o,s)}}function of(e){return t=>{ie.lastIndex=0;const r=[],i=[];let s=0,n=ie.exec(e);for(;n;){const o=n.index+(n[1]||"").length;r.push(e.substring(s,o).replace(/%%/g,"%")),i.push(n),s=ie.lastIndex,ie.lastIndex-=1,n=ie.exec(e)}return r.length===0?t(e.replace(/%%/g,"%")):(r.push(e.substring(s).replace(/%%/g,"%")),Jo(t,r,i))}}function af(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function wn(e,t,r,i){r=r||" ",t=t-e.length;for(let s=0;s<t;s++)e=i?e+r:r+e;return e}const Qo="Collection was empty.";function lf(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}class Ko extends _n{constructor(t,r){super(),this.head=t,this.tail=r}toString(){return"["+af("; ",this)+"]"}Equals(t){const r=this;return r===t?!0:((s,n)=>{t:for(;;){const o=s,a=n,l=o.tail,c=a.tail;if(l!=null)if(c!=null){const u=St(l),d=St(c);if(gt(o.head,a.head)){s=u,n=d;continue t}else return!1}else return!1;else return c==null}})(r,t)}GetHashCode(){return((i,s,n)=>{t:for(;;){const o=i,a=s,l=n,c=l.tail;if(c!=null){const u=St(c);if(o>18)return a|0;i=o+1,s=(a<<1)+Ut(l.head)+631*o,n=u;continue t}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((s,n)=>{t:for(;;){const o=s,a=n,l=o.tail,c=a.tail;if(l!=null)if(c!=null){const u=St(l),d=St(c),p=xe(o.head,a.head)|0;if(p===0){s=u,n=d;continue t}else return p|0}else return 1;else return c!=null?-1:0}})(this,t)|0}GetEnumerator(){return uf(this)}[Symbol.iterator](){return la(os(this))}"System.Collections.IEnumerable.GetEnumerator"(){return os(this)}}class cf{constructor(t){this.xs=t,this.it=this.xs,this.current=rr()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,r=t.it.tail;if(r!=null){const i=St(r);return t.current=t.it.head,t.it=i,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=rr()}Dispose(){}}function uf(e){return new cf(e)}function Ur(){return new Ko(rr(),void 0)}function qr(e,t){return new Ko(e,t)}function hf(e){return e.tail==null}function df(e){if(e.tail!=null)return e.head;throw new Error(Qo+"\\nParameter name: list")}function ff(e){const t=e.tail;if(t!=null)return St(t);throw new Error(Qo+"\\nParameter name: list")}function Ke(){return Ur()}function tr(e){return qr(e,Ur())}function pf(e){return df(e)}function ns(e,t,r){let i=t,s=r;for(;!hf(s);)i=e(i,pf(s)),s=ff(s);return i}function gf(e){return ns((t,r)=>qr(r,t),Ur(),e)}function ta(e,t){ns((r,i)=>{e(i)},void 0,t)}function vf(e,t){let r=t;for(let i=e.length-1;i>=0;i--)r=qr(lf(i,e),r);return r}function ea(e){return vf(e,Ur())}function bf(e,t){return ns((r,i)=>qr(i,r),t,gf(e))}const mf=zd;class yf extends _n{constructor(t,r,i){super(),this.lastVal=t,this._fns=r,this.el=i}}function Q(e){return new yf(e,Ke(),mf(e))}function Xe(e,t){return t.lastVal=e,ta(r=>{r(e)},t._fns),t.el.val=e,t}function It(e){sf(ef("%A"))(e)}class at extends ma{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Null","T"]}}function $n(e){if(e.tag===1)return e.fields[0];throw new Error("Value is null")}function Ai(e){const t=e;return t instanceof at?t:new at(1,[e])}function yr(e,t){return t.lastVal=e,gt(e,new at(0,[]))||(ta(r=>{r(e)},t._fns),t.el.val=e),t}function wf(e,t){const r=gt(t.lastVal,new at(0,[]))?Q(new at(0,[])):e($n(t.lastVal)),i=s=>{gt(s,new at(0,[]))||yr(e($n(s)).lastVal,r)};return t._fns=bf(t._fns,tr(i)),r}function er(e,t){const r=Q(new at(0,[]));return wf(s=>(e(r,t.lastVal),Q(new at(0,[]))),t),r}function $f(e,t,r,i){const s=(o,a)=>{yr(a,r)},n=Q(Ai(i));er(s,er(t,er(e,n)))}function Sn(){return e=>t=>r=>i=>{$f(gi(e),gi(t),r,i)}}function Ye(e,t){const r=new Ea(t);r.AutoReset=!1,Aa(i=>{e()},r.Elapsed()),r.Start()}const di=is.br,Sf=is["fluent-card"],fi=is["md-linear-progress"];function xf(e){const a=Q(!1),l=Q(!1),c=Q(!1),u=Q(0),d=Q(0),p=Q(0),v=(I,J)=>{Xe(!0,I),Xe(0,J)},g=(I,J,st)=>{Xe(!1,I),Xe(1,J),yr(Ai(999),st)},x=(I,J)=>(It("-----------task1 started..."),v(a,u),Ye(Et=>{It("...task1 done"),g(a,u,I)},2500),I),R=(I,J)=>(It("-----------task2 started..."),v(l,d),Ye(Et=>{It("...task2 done"),g(l,d,I)},2500),I),G=(I,J)=>(It("-----------task3 started..."),v(c,p),Ye(Et=>{It("...task3 done"),g(c,p,I)},2500),I),j=Q(new at(0,[])),Z=Sn()(Sn()(Wr(x))(Wr(R)))(Wr(G));return er(gi(Z),j),Ye(I=>{yr(Ai(0),j)},2e3),Sf(ea([{class:"custom2"},di(Ke()),fi(tr({indeterminate:a.el,value:u.el})),di(Ke()),fi(tr({indeterminate:l.el,value:d.el})),di(Ke()),fi(tr({indeterminate:c.el,value:p.el}))]))}Hd(ea([document.body,xf()]));
body {
font-family: sans-serif;
padding: 1em;
background-color: beige;
}
.custom {
--card-width: 200px;
--card-height: 150px;
padding: 22px;
}
.custom1 {
--card-width: 200px;
--card-height: 250px;
padding: 22px;
}
.custom2 {
--card-width: 300px;
--card-height: 90px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment