@fluentui/web-components 3.0.0-beta.44 → 3.0.0-beta.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -2
- package/dist/dts/anchor-button/anchor-button.d.ts +6 -0
- package/dist/dts/button/button.d.ts +65 -57
- package/dist/esm/anchor-button/anchor-button.js +6 -0
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/button/button.js +90 -79
- package/dist/esm/button/button.js.map +1 -1
- package/dist/esm/field/field.styles.js +1 -2
- package/dist/esm/field/field.styles.js.map +1 -1
- package/dist/esm/radio-group/radio-group.styles.js +2 -1
- package/dist/esm/radio-group/radio-group.styles.js.map +1 -1
- package/dist/web-components.d.ts +256 -241
- package/dist/web-components.js +74 -69
- package/dist/web-components.min.js +225 -225
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let $o;const gi="fast-kernel";try{if(document.currentScript)$o=document.currentScript.getAttribute(gi);else{const o=document.getElementsByTagName("script");$o=o[o.length-1].getAttribute(gi)}}catch{$o="isolate"}let le;switch($o){case"share":le=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":le=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const o=`-${Math.random().toString(36).substring(2,8)}`;le=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const we=o=>typeof o=="function",Pt=o=>typeof o=="string",fi=()=>{};var us=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof us<"u")us.globalThis=us;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const t=new Function("return this")();t.globalThis=t}})();const bi={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},bi));const Z=globalThis.FAST;if(Z.getById===void 0){const o=Object.create(null);Reflect.defineProperty(Z,"getById",Object.assign({value(t,e){let s=o[t];return s===void 0&&(s=e?o[t]=e():null),s}},bi))}Z.error===void 0&&Object.assign(Z,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const pn=Object.freeze([]);function ps(){const o=new Map;return Object.freeze({register(t){return o.has(t.type)?!1:(o.set(t.type,t),!0)},getByType(t){return o.get(t)},getForInstance(t){if(t!=null)return o.get(t.constructor)}})}function mi(){const o=new WeakMap;return function(t){let e=o.get(t);if(e===void 0){let s=Reflect.getPrototypeOf(t);for(;e===void 0&&s!==null;)e=o.get(s),s=Reflect.getPrototypeOf(s);e=e===void 0?[]:e.slice(0),o.set(t,e)}return e}}function Ce(o){o.prototype.toJSON=fi}const tt=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),$i=o=>o,gn=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:$i}):{createHTML:$i};let vo=Object.freeze({createHTML(o){return gn.createHTML(o)},protect(o,t,e,s){return s}});const fn=vo,Se=Object.freeze({get policy(){return vo},setPolicy(o){if(vo!==fn)throw Z.error(1201);vo=o},setAttribute(o,t,e){e==null?o.removeAttribute(t):o.setAttribute(t,e)},setBooleanAttribute(o,t,e){e?o.setAttribute(t,""):o.removeAttribute(t)}}),Bt=Z.getById(le.updateQueue,()=>{const o=[],t=[],e=globalThis.requestAnimationFrame;let s=!0;function i(){if(t.length)throw t.shift()}function r(g){try{g.call()}catch(u){if(s)t.push(u),setTimeout(i,0);else throw o.length=0,u}}function n(){let u=0;for(;u<o.length;)if(r(o[u]),u++,u>1024){for(let d=0,b=o.length-u;d<b;d++)o[d]=o[d+u];o.length-=u,u=0}o.length=0}function h(g){o.push(g),o.length<2&&(s?e(n):n())}return Object.freeze({enqueue:h,next:()=>new Promise(h),process:n,setMode:g=>s=g})});class gs{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=t,this.sub1=e}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const e=this.spillover;if(e===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 e.indexOf(t)===-1&&e.push(t)}unsubscribe(t){const e=this.spillover;if(e===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const s=e.indexOf(t);s!==-1&&e.splice(s,1)}}notify(t){const e=this.spillover,s=this.subject;if(e===void 0){const i=this.sub1,r=this.sub2;i!==void 0&&i.handleChange(s,t),r!==void 0&&r.handleChange(s,t)}else for(let i=0,r=e.length;i<r;++i)e[i].handleChange(s,t)}}class vi{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,s;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(s=this.subjectSubscribers)===null||s===void 0||s.notify(t)}subscribe(t,e){var s,i;let r;e?r=(s=this.subscribers[e])!==null&&s!==void 0?s:this.subscribers[e]=new gs(this.subject):r=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new gs(this.subject),r.subscribe(t)}unsubscribe(t,e){var s,i;e?(s=this.subscribers[e])===null||s===void 0||s.unsubscribe(t):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(t)}}const fs=Object.freeze({unknown:void 0,coupled:1}),m=Z.getById(le.observable,()=>{const o=Bt.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let s,i=u=>{throw Z.error(1101)};function r(u){var d;let b=(d=u.$fastController)!==null&&d!==void 0?d:e.get(u);return b===void 0&&(Array.isArray(u)?b=i(u):e.set(u,b=new vi(u))),b}const n=mi();class h{constructor(d){this.name=d,this.field=`_${d}`,this.callback=`${d}Changed`}getValue(d){return s!==void 0&&s.watch(d,this.name),d[this.field]}setValue(d,b){const P=this.field,R=d[P];if(R!==b){d[P]=b;const Jt=d[this.callback];we(Jt)&&Jt.call(d,R,b),r(d).notify(this.name)}}}class g extends gs{constructor(d,b,P=!1){super(d,b),this.expression=d,this.isVolatileBinding=P,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(d){this.isAsync=this.needsQueue=d}bind(d){this.controller=d;const b=this.observe(d.source,d.context);return!d.isBound&&this.requiresUnbind(d)&&d.onUnbind(this),b}requiresUnbind(d){return d.sourceLifetime!==fs.coupled||this.first!==this.last||this.first.propertySource!==d.source}unbind(d){this.dispose()}observe(d,b){this.needsRefresh&&this.last!==null&&this.dispose();const P=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let R;try{R=this.expression(d,b)}finally{s=P}return R}disconnect(){this.dispose()}dispose(){if(this.last!==null){let d=this.first;for(;d!==void 0;)d.notifier.unsubscribe(this,d.propertyName),d=d.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(d,b){const P=this.last,R=r(d),Jt=P===null?this.first:{};if(Jt.propertySource=d,Jt.propertyName=b,Jt.notifier=R,R.subscribe(this,b),P!==null){if(!this.needsRefresh){let pi;s=void 0,pi=P.propertySource[P.propertyName],s=this,d===pi&&(this.needsRefresh=!0)}P.next=Jt}this.last=Jt}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let d=this.first;for(;d!==void 0;)yield d,d=d.next}}return Ce(g),Object.freeze({setArrayObserverFactory(u){i=u},getNotifier:r,track(u,d){s&&s.watch(u,d)},trackVolatile(){s&&(s.needsRefresh=!0)},notify(u,d){r(u).notify(d)},defineProperty(u,d){Pt(d)&&(d=new h(d)),n(u).push(d),Reflect.defineProperty(u,d.name,{enumerable:!0,get(){return d.getValue(this)},set(b){d.setValue(this,b)}})},getAccessors:n,binding(u,d,b=this.isVolatileBinding(u)){return new g(u,d,b)},isVolatileBinding(u){return t.test(u.toString())}})});function k(o,t){m.defineProperty(o,t)}function bn(o,t,e){return Object.assign({},e,{get(){return m.trackVolatile(),e.get.apply(this)}})}const yi=Z.getById(le.contextEvent,()=>{let o=null;return{get(){return o},set(t){o=t}}}),De=Object.freeze({default:{index:0,length:0,get event(){return De.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return yi.get()},setEvent(o){yi.set(o)}});class yo{constructor(t,e,s=!1){this.evaluate=t,this.policy=e,this.isVolatile=s}}class mn extends yo{createObserver(t){return m.binding(this.evaluate,t,this.isVolatile)}}function ki(o,t,e=m.isVolatileBinding(o)){return new mn(o,t,e)}class xi extends yo{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}Ce(xi);function wi(o,t){return new xi(o,t)}let Ci;function Si(o){return o.map(t=>t instanceof at?Si(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class at{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof at?e.behaviors:null).reduce((e,s)=>s===null?e:e===null?s:e.concat(s),null)}get strategy(){return this._strategy===null&&this.withStrategy(Ci),this._strategy}addStylesTo(t){this.strategy.addStylesTo(t),this.targets.add(t)}removeStylesFrom(t){this.strategy.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}withStrategy(t){return this._strategy=new t(Si(this.styles)),this}static setDefaultStrategy(t){Ci=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new at(t):t instanceof at?t:new at([t])}}at.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const bs=ps(),ms=Object.freeze({getForInstance:bs.getForInstance,getByType:bs.getByType,define(o){return bs.register({type:o}),o}});function $s(o,t,e){t.source.style.setProperty(o.targetAspect,e.bind(t))}class vs{constructor(t,e){this.dataBinding=t,this.targetAspect=e}createCSS(t){return t(this),`var(${this.targetAspect})`}addedCallback(t){var e;const s=t.source;if(!s.$cssBindings){s.$cssBindings=new Map;const r=s.setAttribute;s.setAttribute=(n,h)=>{r.call(s,n,h),n==="style"&&s.$cssBindings.forEach((g,u)=>$s(u,g.controller,g.observer))}}const i=(e=t[this.targetAspect])!==null&&e!==void 0?e:t[this.targetAspect]=this.dataBinding.createObserver(this,this);i.controller=t,t.source.$cssBindings.set(this,{controller:t,observer:i})}connectedCallback(t){$s(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){$s(this,e.controller,e)}}ms.define(vs);const $n=`${Math.random().toString(36).substring(2,8)}`;let vn=0;const Ii=()=>`--v${$n}${++vn}`;function Pi(o,t){const e=[];let s="";const i=[],r=n=>{i.push(n)};for(let n=0,h=o.length-1;n<h;++n){s+=o[n];let g=t[n];we(g)?g=new vs(ki(g),Ii()).createCSS(r):g instanceof yo?g=new vs(g,Ii()).createCSS(r):ms.getForInstance(g)!==void 0&&(g=g.createCSS(r)),g instanceof at||g instanceof CSSStyleSheet?(s.trim()!==""&&(e.push(s),s=""),e.push(g)):s+=g}return s+=o[o.length-1],s.trim()!==""&&e.push(s),{styles:e,behaviors:i}}const l=(o,...t)=>{const{styles:e,behaviors:s}=Pi(o,t),i=new at(e);return s.length?i.withBehaviors(...s):i};class Bi{constructor(t,e){this.behaviors=e,this.css="";const s=t.reduce((i,r)=>(Pt(r)?this.css+=r:i.push(r),i),[]);s.length&&(this.styles=new at(s))}createCSS(t){return this.behaviors.forEach(t),this.styles&&t(this),this.css}addedCallback(t){t.addStyles(this.styles)}removedCallback(t){t.removeStyles(this.styles)}}ms.define(Bi),l.partial=(o,...t)=>{const{styles:e,behaviors:s}=Pi(o,t);return new Bi(e,s)};const ys=`fast-${Math.random().toString(36).substring(2,8)}`,ko=`${ys}{`,Ve=`}${ys}`,yn=Ve.length;let kn=0;const ks=()=>`${ys}-${++kn}`,zi=Object.freeze({interpolation:o=>`${ko}${o}${Ve}`,attribute:o=>`${ks()}="${ko}${o}${Ve}"`,comment:o=>`<!--${ko}${o}${Ve}-->`}),xo=Object.freeze({parse(o,t){const e=o.split(ko);if(e.length===1)return null;const s=[];for(let i=0,r=e.length;i<r;++i){const n=e[i],h=n.indexOf(Ve);let g;if(h===-1)g=n;else{const u=n.substring(0,h);s.push(t[u]),g=n.substring(h+yn)}g!==""&&s.push(g)}return s}}),xs=ps(),vt=Object.freeze({getForInstance:xs.getForInstance,getByType:xs.getByType,define(o,t){return t=t||{},t.type=o,xs.register(t),o},assignAspect(o,t){if(!t){o.aspectType=tt.content;return}switch(o.sourceAspect=t,t[0]){case":":o.targetAspect=t.substring(1),o.aspectType=o.targetAspect==="classList"?tt.tokenList:tt.property;break;case"?":o.targetAspect=t.substring(1),o.aspectType=tt.booleanAttribute;break;case"@":o.targetAspect=t.substring(1),o.aspectType=tt.event;break;default:o.targetAspect=t,o.aspectType=tt.attribute;break}}});class ws{constructor(t){this.options=t}createHTML(t){return zi.attribute(t(this))}createBehavior(){return this}}Ce(ws);function xn(o,t,e,s){if(e==null&&(e=""),e.create){o.textContent="";let i=o.$fastView;i===void 0?i=e.create():o.$fastTemplate!==e&&(i.isComposed&&(i.remove(),i.unbind()),i=e.create()),i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(s.source,s.context)):(i.isComposed=!0,i.bind(s.source,s.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=e)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=e}}function wn(o,t,e){var s;const i=`${this.id}-t`,r=(s=o[i])!==null&&s!==void 0?s:o[i]={v:0,cv:Object.create(null)},n=r.cv;let h=r.v;const g=o[t];if(e!=null&&e.length){const u=e.split(/\s+/);for(let d=0,b=u.length;d<b;++d){const P=u[d];P!==""&&(n[P]=h,g.add(P))}}if(r.v=h+1,h!==0){h-=1;for(const u in n)n[u]===h&&g.remove(u)}}const Cn={[tt.attribute]:Se.setAttribute,[tt.booleanAttribute]:Se.setBooleanAttribute,[tt.property]:(o,t,e)=>o[t]=e,[tt.content]:xn,[tt.tokenList]:wn,[tt.event]:()=>{}};class Ie{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=tt.content}createHTML(t){return zi.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=Cn[this.aspectType],s=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw Z.error(1205);this.data=`${this.id}-d`,this.updateTarget=s.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const s=t.targets[this.targetNodeId];switch(this.aspectType){case tt.event:s[this.data]=t,s.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case tt.content:t.onUnbind(this);default:const i=(e=s[this.data])!==null&&e!==void 0?e:s[this.data]=this.dataBinding.createObserver(this,this);i.target=s,i.controller=t,this.updateTarget(s,this.targetAspect,i.bind(t),t);break}}unbind(t){const s=t.targets[this.targetNodeId].$fastView;s!==void 0&&s.isComposed&&(s.unbind(),s.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){De.setEvent(t);const s=this.dataBinding.evaluate(e.source,e.context);De.setEvent(null),s!==!0&&t.preventDefault()}}handleChange(t,e){const s=e.target,i=e.controller;this.updateTarget(s,this.targetAspect,e.bind(i),i)}}vt.define(Ie,{aspected:!0});function Ti(o,t){const e=o.parentNode;let s=o,i;for(;s!==t;)i=s.nextSibling,e.removeChild(s),s=i;e.removeChild(t)}class wo{constructor(t,e,s){this.fragment=t,this.factories=e,this.targets=s,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=fs.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=t.firstChild,this.lastChild=t.lastChild}get event(){return De.getEvent()}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}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const s=t.parentNode;let i=this.firstChild,r;for(;i!==e;)r=i.nextSibling,s.insertBefore(i,t),i=r;s.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let s=this.firstChild,i;for(;s!==e;)i=s.nextSibling,t.appendChild(s),s=i;t.appendChild(e)}dispose(){Ti(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let s=this.behaviors;if(s===null){this.source=t,this.context=e,this.behaviors=s=new Array(this.factories.length);const i=this.factories;for(let r=0,n=i.length;r<n;++r){const h=i[r].createBehavior();h.bind(this),s[r]=h}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let i=0,r=s.length;i<r;++i)s[i].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,s=t.length;e<s;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){Ti(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,s=t.length;e<s;++e)t[e].unbind()}}}Ce(wo),m.defineProperty(wo.prototype,"index"),m.defineProperty(wo.prototype,"length");const Ai=(o,t)=>`${o}.${t}`,Fi={},zt={index:0,node:null};function _i(o){o.startsWith("fast-")||Z.warn(1204,{name:o})}const Sn=new Proxy(document.createElement("div"),{get(o,t){_i(t);const e=Reflect.get(o,t);return we(e)?e.bind(o):e},set(o,t,e){return _i(t),Reflect.set(o,t,e)}});class In{constructor(t,e,s){this.fragment=t,this.directives=e,this.policy=s,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,s,i,r){var n,h;this.nodeIds.has(s)||(this.nodeIds.add(s),this.addTargetDescriptor(e,s,i)),t.id=(n=t.id)!==null&&n!==void 0?n:ks(),t.targetNodeId=s,t.targetTagName=r,t.policy=(h=t.policy)!==null&&h!==void 0?h:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,s){const i=this.descriptors;if(e==="r"||e==="h"||i[e])return;if(!i[t]){const n=t.lastIndexOf("."),h=t.substring(0,n),g=parseInt(t.substring(n+1));this.addTargetDescriptor(h,t,g)}let r=Fi[e];if(!r){const n=`_${e}`;Fi[e]=r={get(){var h;return(h=this[n])!==null&&h!==void 0?h:this[n]=this[t].childNodes[s]}}}i[e]=r}createView(t){const e=this.fragment.cloneNode(!0),s=Object.create(this.proto);s.r=e,s.h=t??Sn;for(const i of this.nodeIds)s[i];return new wo(e,this.factories,s)}}function Oi(o,t,e,s,i,r=!1){const n=e.attributes,h=o.directives;for(let g=0,u=n.length;g<u;++g){const d=n[g],b=d.value,P=xo.parse(b,h);let R=null;P===null?r&&(R=new Ie(wi(()=>b,o.policy)),vt.assignAspect(R,d.name)):R=Cs.aggregate(P,o.policy),R!==null&&(e.removeAttributeNode(d),g--,u--,o.addFactory(R,t,s,i,e.tagName))}}function Pn(o,t,e,s,i){const r=xo.parse(t.textContent,o.directives);if(r===null)return zt.node=t.nextSibling,zt.index=i+1,zt;let n,h=n=t;for(let g=0,u=r.length;g<u;++g){const d=r[g];g!==0&&(i++,s=Ai(e,i),n=h.parentNode.insertBefore(document.createTextNode(""),h.nextSibling)),Pt(d)?n.textContent=d:(n.textContent=" ",vt.assignAspect(d),o.addFactory(d,e,s,i,null)),h=n}return zt.index=i+1,zt.node=h.nextSibling,zt}function Mi(o,t,e){let s=0,i=t.firstChild;for(;i;){const r=Bn(o,e,i,s);i=r.node,s=r.index}}function Bn(o,t,e,s){const i=Ai(t,s);switch(e.nodeType){case 1:Oi(o,t,e,i,s),Mi(o,e,i);break;case 3:return Pn(o,e,t,i,s);case 8:const r=xo.parse(e.data,o.directives);r!==null&&o.addFactory(Cs.aggregate(r),t,i,s,null);break}return zt.index=s+1,zt.node=e.nextSibling,zt}function zn(o,t){return o&&o.nodeType==8&&xo.parse(o.data,t)!==null}const Ni="TEMPLATE",Cs={compile(o,t,e=Se.policy){let s;if(Pt(o)){s=document.createElement(Ni),s.innerHTML=e.createHTML(o);const n=s.content.firstElementChild;n!==null&&n.tagName===Ni&&(s=n)}else s=o;!s.content.firstChild&&!s.content.lastChild&&s.content.appendChild(document.createComment(""));const i=document.adoptNode(s.content),r=new In(i,t,e);return Oi(r,"",s,"h",0,!0),(zn(i.firstChild,t)||i.childNodes.length===1&&Object.keys(t).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),Mi(r,i,"r"),zt.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,t=Se.policy){if(o.length===1)return o[0];let e,s,i=!1,r;const n=o.length,h=o.map(d=>Pt(d)?()=>d:(e=d.sourceAspect||e,s=d.dataBinding||s,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),g=(d,b)=>{let P="";for(let R=0;R<n;++R)P+=h[R](d,b);return P};s.evaluate=g,s.isVolatile=i,s.policy=r??t;const u=new Ie(s);return vt.assignAspect(u,e),u}},Tn=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,An=Object.create(null);class ce{constructor(t,e=An){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const s in e)t(e[s]);return this.html}}ce.empty=new ce(""),vt.define(ce);function Fn(o,t,e,s=vt.getForInstance(o)){if(s.aspected){const i=Tn.exec(t);i!==null&&vt.assignAspect(o,i[2])}return o.createHTML(e)}class cs{constructor(t,e={},s){this.policy=s,this.result=null,this.html=t,this.factories=e}create(t){return this.result===null&&(this.result=Cs.compile(this.html,this.factories,this.policy)),this.result.createView(t)}inline(){return new ce(Pt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw Z.error(1208);if(this.policy)throw Z.error(1207);return this.policy=t,this}render(t,e,s){const i=this.create(s);return i.bind(t),i.appendTo(e),i}static create(t,e,s){let i="";const r=Object.create(null),n=h=>{var g;const u=(g=h.id)!==null&&g!==void 0?g:h.id=ks();return r[u]=h,u};for(let h=0,g=t.length-1;h<g;++h){const u=t[h];let d=e[h],b;if(i+=u,we(d))d=new Ie(ki(d));else if(d instanceof yo)d=new Ie(d);else if(!(b=vt.getForInstance(d))){const P=d;d=new Ie(wi(()=>P))}i+=Fn(d,u,n,b)}return new cs(i+t[t.length-1],r,s)}}Ce(cs);const f=(o,...t)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return cs.create(o,t);throw Z.error(1206)};f.partial=o=>new ce(o);class Ei extends ws{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}vt.define(Ei);const Tt=o=>new Ei(o),_n=o=>o.nodeType===1,je=o=>o?t=>t.nodeType===1&&t.matches(o):_n;class Li extends ws{get id(){return this._id}set id(t){this._id=t,this._controllerProperty=`${t}-c`}bind(t){const e=t.targets[this.targetNodeId];e[this._controllerProperty]=t,this.updateTarget(t.source,this.computeNodes(e)),this.observe(e),t.onUnbind(this)}unbind(t){const e=t.targets[this.targetNodeId];this.updateTarget(t.source,pn),this.disconnect(e),e[this._controllerProperty]=null}getSource(t){return t[this._controllerProperty].source}updateTarget(t,e){t[this.options.property]=e}computeNodes(t){let e=this.getNodes(t);return"filter"in this.options&&(e=e.filter(this.options.filter)),e}}const Hi="slotchange";class Di extends Li{observe(t){t.addEventListener(Hi,this)}disconnect(t){t.removeEventListener(Hi,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}vt.define(Di);function gt(o){return Pt(o)&&(o={property:o}),new Di(o)}class Vi extends Li{constructor(t){super(t),this.observerProperty=Symbol(),this.handleEvent=(e,s)=>{const i=s.target;this.updateTarget(this.getSource(i),this.computeNodes(i))},t.childList=!0}observe(t){let e=t[this.observerProperty];e||(e=new MutationObserver(this.handleEvent),e.toJSON=fi,t[this.observerProperty]=e),e.target=t,e.observe(t,this.options)}disconnect(t){const e=t[this.observerProperty];e.target=null,e.disconnect()}getNodes(t){return"selector"in this.options?Array.from(t.querySelectorAll(this.options.selector)):Array.from(t.childNodes)}}vt.define(Vi);function On(o){return Pt(o)&&(o={property:o}),new Vi(o)}const ji="boolean",Ri="reflect",Co=Object.freeze({locate:mi()}),Mn={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function qi(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const st={toView(o){const t=qi(o);return t&&t.toString()},fromView:qi};class ds{constructor(t,e,s=e.toLowerCase(),i=Ri,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=s,this.mode=i,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,i===ji&&r===void 0&&(this.converter=Mn)}setValue(t,e){const s=t[this.fieldName],i=this.converter;i!==void 0&&(e=i.fromView(e)),s!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](s,e),t.$fastController.notify(this.name))}getValue(t){return m.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,s=this.guards;s.has(t)||e==="fromView"||Bt.enqueue(()=>{s.add(t);const i=t[this.fieldName];switch(e){case Ri:const r=this.converter;Se.setAttribute(t,this.attribute,r!==void 0?r.toView(i):i);break;case ji:Se.setBooleanAttribute(t,this.attribute,i);break}s.delete(t)})}static collect(t,...e){const s=[];e.push(Co.locate(t));for(let i=0,r=e.length;i<r;++i){const n=e[i];if(n!==void 0)for(let h=0,g=n.length;h<g;++h){const u=n[h];Pt(u)?s.push(new ds(t,u)):s.push(new ds(t,u.property,u.attribute,u.mode,u.converter))}}return s}}function a(o,t){let e;function s(i,r){arguments.length>1&&(e.property=r),Co.locate(i.constructor).push(e)}if(arguments.length>1){e={},s(o,t);return}return e=o===void 0?{}:o,s}const Gi={mode:"open"},Wi={},Xi=new Set,So=Z.getById(le.elementRegistry,()=>ps());class It{constructor(t,e=t.definition){var s;this.platformDefined=!1,Pt(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.registry=(s=e.registry)!==null&&s!==void 0?s:customElements;const i=t.prototype,r=ds.collect(t,e.attributes),n=new Array(r.length),h={},g={};for(let u=0,d=r.length;u<d;++u){const b=r[u];n[u]=b.attribute,h[b.name]=b,g[b.attribute]=b,m.defineProperty(i,b)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=h,this.attributeLookup=g,this.shadowOptions=e.shadowOptions===void 0?Gi:e.shadowOptions===null?void 0:Object.assign(Object.assign({},Gi),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Wi:Object.assign(Object.assign({},Wi),e.elementOptions),this.styles=at.normalize(e.styles),So.register(this)}get isDefined(){return this.platformDefined}define(t=this.registry){const e=this.type;return t.get(this.name)||(this.platformDefined=!0,t.define(this.name,e,this.elementOptions)),this}static compose(t,e){return Xi.has(t)||So.getByType(t)?new It(class extends t{},e):new It(t,e)}static registerBaseType(t){Xi.add(t)}}It.getByType=So.getByType,It.getForInstance=So.getForInstance;const Nn={bubbles:!0,composed:!0,cancelable:!0},Ss="isConnected",Ui=new WeakMap;function Io(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:Ui.get(o))!==null&&e!==void 0?e:null}let Ki;class Po extends vi{constructor(t,e){super(t),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=e;const s=e.shadowOptions;if(s!==void 0){let r=t.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=t.attachShadow(s),s.mode==="closed"&&Ui.set(t,r))}const i=m.getAccessors(t);if(i.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,h=i.length;n<h;++n){const g=i[n].name,u=t[g];u!==void 0&&(delete t[g],r[g]=u)}}}get isConnected(){return m.track(this,Ss),this.stage===1}get context(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&e!==void 0?e:De.default}get isBound(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&e!==void 0?e:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const e=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():e.template&&(this._template=(t=e.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get mainStyles(){var t;if(this._mainStyles===null){const e=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():e.styles&&(this._mainStyles=(t=e.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var e;(e=this.view)===null||e===void 0||e.onUnbind(t)}addBehavior(t){var e,s;const i=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(s=i.get(t))!==null&&s!==void 0?s:0;r===0?(i.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):i.set(t,r+1)}removeBehavior(t,e=!1){const s=this.behaviors;if(s===null)return;const i=s.get(t);i!==void 0&&(i===1||e?(s.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):s.set(t,i-1))}addStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=Io(s))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(s)){const i=t.behaviors;if(t.addStylesTo(s),i!==null)for(let r=0,n=i.length;r<n;++r)this.addBehavior(i[r])}}removeStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=Io(s))!==null&&e!==void 0?e:s).removeChild(t);else if(t.isAttachedTo(s)){const i=t.behaviors;if(t.removeStylesFrom(s),i!==null)for(let r=0,n=i.length;r<n;++r)this.removeBehavior(i[r])}}connect(){if(this.stage!==3)return;if(this.stage=0,this.boundObservables!==null){const e=this.source,s=this.boundObservables,i=Object.keys(s);for(let r=0,n=i.length;r<n;++r){const h=i[r];e[h]=s[h]}this.boundObservables=null}const t=this.behaviors;if(t!==null){this.guardBehaviorConnection=!0;for(const e of t.keys())e.connectedCallback&&e.connectedCallback(this);this.guardBehaviorConnection=!1}this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,m.notify(this,Ss)}disconnect(){if(this.stage!==1)return;this.stage=2,m.notify(this,Ss),this.view!==null&&this.view.unbind();const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.stage=3}onAttributeChangedCallback(t,e,s){const i=this.definition.attributeLookup[t];i!==void 0&&i.onAttributeChangedCallback(this.source,s)}emit(t,e,s){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},Nn),s))):!1}renderTemplate(t){var e;const s=this.source,i=(e=Io(s))!==null&&e!==void 0?e:s;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=i.firstChild;r!==null;r=i.firstChild)i.removeChild(r)}t&&(this.view=t.render(s,i,s),this.view.sourceLifetime=fs.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const s=It.getForInstance(t);if(s===void 0)throw Z.error(1401);return t.$fastController=new Ki(t,s)}static setStrategy(t){Ki=t}}Ce(Po),Po.setStrategy(Po);function Bo(o){var t;return"adoptedStyleSheets"in o?o:(t=Io(o))!==null&&t!==void 0?t:o.getRootNode()}class hs{constructor(t){const e=hs.styleSheetCache;this.sheets=t.map(s=>{if(s instanceof CSSStyleSheet)return s;let i=e.get(s);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(s),e.set(s,i)),i})}addStylesTo(t){Qi(Bo(t),this.sheets)}removeStylesFrom(t){Zi(Bo(t),this.sheets)}}hs.styleSheetCache=new Map;let En=0;const Ln=()=>`fast-${++En}`;function Yi(o){return o===document?document.body:o}class Hn{constructor(t){this.styles=t,this.styleClass=Ln()}addStylesTo(t){t=Yi(Bo(t));const e=this.styles,s=this.styleClass;for(let i=0;i<e.length;i++){const r=document.createElement("style");r.innerHTML=e[i],r.className=s,t.append(r)}}removeStylesFrom(t){t=Yi(Bo(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let s=0,i=e.length;s<i;++s)t.removeChild(e[s])}}let Qi=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},Zi=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(at.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Qi=(o,t)=>{o.adoptedStyleSheets.push(...t)},Zi=(o,t)=>{for(const e of t){const s=o.adoptedStyleSheets.indexOf(e);s!==-1&&o.adoptedStyleSheets.splice(s,1)}}}catch{}at.setDefaultStrategy(hs)}else at.setDefaultStrategy(Hn);function Ji(o){const t=class extends o{constructor(){super(),Po.forCustomElement(this)}$emit(e,s,i){return this.$fastController.emit(e,s,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,s,i){this.$fastController.onAttributeChangedCallback(e,s,i)}};return It.registerBaseType(t),t}function Dn(o,t){return we(o)?It.compose(o,t):It.compose(this,o)}function Vn(o,t){return we(o)?It.compose(o,t).define().type:It.compose(this,o).define().type}function jn(o){return Ji(o)}const x=Object.assign(Ji(HTMLElement),{from:jn,define:Vn,compose:Dn}),ft={horizontal:"horizontal",vertical:"vertical"};function Rn(o,t){let e=o.length;for(;e--;)if(t(o[e],e,o))return e;return-1}function tr(...o){return o.every(t=>t instanceof HTMLElement)}const Is="ArrowDown",Ps="ArrowLeft",Bs="ArrowRight",zs="ArrowUp",Ts="End",zo="Enter",qn="Escape",As="Home",Fs=" ",Gn="Tab";var yt;(function(o){o.ltr="ltr",o.rtl="rtl"})(yt||(yt={}));function _s(o,t,e){return Math.min(Math.max(e,o),t)}let Wn=0;function To(o=""){return`${o}${Wn++}`}var Xn=Object.defineProperty,Un=Object.getOwnPropertyDescriptor,L=(o,t,e,s)=>{for(var i=s>1?void 0:s?Un(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Xn(t,e,i),i};class H{}L([a({attribute:"aria-atomic"})],H.prototype,"ariaAtomic",2),L([a({attribute:"aria-busy"})],H.prototype,"ariaBusy",2),L([a({attribute:"aria-controls"})],H.prototype,"ariaControls",2),L([a({attribute:"aria-current"})],H.prototype,"ariaCurrent",2),L([a({attribute:"aria-describedby"})],H.prototype,"ariaDescribedby",2),L([a({attribute:"aria-details"})],H.prototype,"ariaDetails",2),L([a({attribute:"aria-disabled"})],H.prototype,"ariaDisabled",2),L([a({attribute:"aria-errormessage"})],H.prototype,"ariaErrormessage",2),L([a({attribute:"aria-flowto"})],H.prototype,"ariaFlowto",2),L([a({attribute:"aria-haspopup"})],H.prototype,"ariaHaspopup",2),L([a({attribute:"aria-hidden"})],H.prototype,"ariaHidden",2),L([a({attribute:"aria-invalid"})],H.prototype,"ariaInvalid",2),L([a({attribute:"aria-keyshortcuts"})],H.prototype,"ariaKeyshortcuts",2),L([a({attribute:"aria-label"})],H.prototype,"ariaLabel",2),L([a({attribute:"aria-labelledby"})],H.prototype,"ariaLabelledby",2),L([a({attribute:"aria-live"})],H.prototype,"ariaLive",2),L([a({attribute:"aria-owns"})],H.prototype,"ariaOwns",2),L([a({attribute:"aria-relevant"})],H.prototype,"ariaRelevant",2),L([a({attribute:"aria-roledescription"})],H.prototype,"ariaRoledescription",2);const Os={fromView(o){const t=parseFloat(o);return Number.isNaN(t)?"":t.toString()},toView(o){const t=parseFloat(o);return Number.isNaN(t)?void 0:t.toString()}},er=o=>o.closest("[dir]")?.dir==="rtl"?yt.rtl:yt.ltr;function bt(o){return o?typeof o=="string"?new ce(o):"inline"in o?o.inline():o:ce.empty}const Kn=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,Yn=":host([hidden]){display:none}";function w(o){return`${Yn}:host{display:${o}}`}class Qn{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:e}=this;let s=this.listenerCache.get(t);s||(s=this.constructListener(t),this.listenerCache.set(t,s)),s.bind(e)(),e.addEventListener("change",s)}disconnectedCallback(t){const e=this.listenerCache.get(t);e&&this.query.removeEventListener("change",e)}}class mo extends Qn{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new mo(t,e)}constructListener(t){let e=!1;const s=this.styles;return function(){const{matches:r}=this;r&&!e?(t.addStyles(s),e=r):!r&&e&&(t.removeStyles(s),e=r)}}removedCallback(t){t.removeStyles(this.styles)}}const et=mo.with(window.matchMedia("(forced-colors)"));mo.with(window.matchMedia("(prefers-color-scheme: dark)")),mo.with(window.matchMedia("(prefers-color-scheme: light)"));class Vt{}function te(o){return f`<slot name="end" ${Tt("end")}>${bt(o.end)}</slot>`.inline()}function jt(o){return f`<slot name="start" ${Tt("start")}>${bt(o.start)}</slot>`.inline()}function Rt(o,...t){const e=Co.locate(o);t.forEach(s=>{Object.getOwnPropertyNames(s.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(s.prototype,r))}),Co.locate(s).forEach(r=>e.push(r))})}const Zn=CSS.supports("selector(:state(g))");function c(o,t,e){if(!Zn){o.shadowRoot.host.toggleAttribute(`state--${t}`,e);return}if(e=e??!o.states.has(t),e){o.states.add(t);return}o.states.delete(t)}var Jn=Object.defineProperty,ta=Object.getOwnPropertyDescriptor,de=(o,t,e,s)=>{for(var i=s>1?void 0:s?ta(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Jn(t,e,i),i};class lt extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=To("accordion-"),this.block=!1}expandedChanged(t,e){c(this.elementInternals,"expanded",e)}disabledChanged(t,e){c(this.elementInternals,"disabled",e)}sizeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}blockChanged(t,e){c(this.elementInternals,"block",e)}markerPositionChanged(t,e){t&&c(this.elementInternals,`align-${t}`,!1),e&&c(this.elementInternals,`align-${e}`,!0)}}de([a({attribute:"heading-level",mode:"fromView",converter:st})],lt.prototype,"headinglevel",2),de([a({mode:"boolean"})],lt.prototype,"expanded",2),de([a({mode:"boolean"})],lt.prototype,"disabled",2),de([a],lt.prototype,"id",2),de([a],lt.prototype,"size",2),de([a({mode:"boolean"})],lt.prototype,"block",2),de([a({attribute:"marker-position"})],lt.prototype,"markerPosition",2),Rt(lt,Vt);const v=l.partial`:is([state--checked], :state(checked))`,X=l.partial`:is([state--disabled], :state(disabled))`,Ao=l.partial`:is([state--filled-lighter], :state(filled-lighter))`,Fo=l.partial`:is([state--filled-darker], :state(filled-darker))`,qt=l.partial`:is([state--ghost], :state(ghost))`,or=l.partial`:is([state--inverted], :state(inverted))`,it=l.partial`:is([state--primary], :state(primary))`,q=l.partial`:is([state--outline], :state(outline))`,Re=l.partial`:is([state--strong], :state(strong))`,C=l.partial`:is([state--subtle], :state(subtle))`,ee=l.partial`:is([state--tint], :state(tint))`,qe=l.partial`:is([state--underline], :state(underline))`,U=l.partial`:is([state--transparent], :state(transparent))`,Ge=l.partial`:is([state--circular], :state(circular))`,Gt=l.partial`:is([state--rounded], :state(rounded))`,We=l.partial`:is([state--square], :state(square))`,Xe=l.partial`:is([state--tiny], :state(tiny))`,Ue=l.partial`:is([state--extra-small], :state(extra-small))`,O=l.partial`:is([state--small], :state(small))`;l.partial`:is([state--medium], :state(medium))`;const S=l.partial`:is([state--large], :state(large))`,_o=l.partial`:is([state--extra-large], :state(extra-large))`,ea=l.partial`:is([state--huge], :state(huge))`,sr=l.partial`:is([state--align-start], :state(align-start))`,Wt=l.partial`:is([state--align-end], :state(align-end))`,Ms=l.partial`:is([state--inset], :state(inset))`,Pe=l.partial`:is([state--icon], :state(icon))`,z=l.partial`:is([state--pressed], :state(pressed))`,Xt=l.partial`:is([state--brand], :state(brand))`,Ns=l.partial`:is([state--error], :state(error))`,Oo=l.partial`:is([state--danger], :state(danger))`,Mo=l.partial`:is([state--important], :state(important))`,No=l.partial`:is([state--informative], :state(informative))`;l.partial`:is([state--marigold], :state(marigold))`;const Eo=l.partial`:is([state--neutral], :state(neutral))`,Lo=l.partial`:is([state--severe], :state(severe))`,he=l.partial`:is([state--success], :state(success))`,ue=l.partial`:is([state--warning], :state(warning))`,J=l.partial`:is([state--vertical], :state(vertical))`;l.partial`:is([state--horizontal], :state(horizontal))`,l.partial`:is([state--singleline], :state(singleline))`;const Ke=l.partial`:is([state--multiline], :state(multiline))`,pe=l.partial`:is([state--expanded], :state(expanded))`,oa=l.partial`:is([state--block], :state(block))`,T="var(--colorNeutralForeground1)",ir="var(--colorNeutralForeground1Hover)",sa="var(--colorNeutralForeground1Pressed)",Ut="var(--colorNeutralForeground2)",Ho="var(--colorNeutralForeground2Hover)",Do="var(--colorNeutralForeground2Pressed)",ia="var(--colorNeutralForeground2Selected)",Vo="var(--colorNeutralForeground2BrandHover)",jo="var(--colorNeutralForeground2BrandPressed)",ra="var(--colorNeutralForeground2BrandSelected)",rt="var(--colorNeutralForeground3)",na="var(--colorNeutralForeground3Hover)",aa="var(--colorNeutralForeground3Pressed)",la="var(--colorNeutralForeground4)",D="var(--colorNeutralForegroundDisabled)",ca="var(--colorBrandForegroundLink)",da="var(--colorBrandForegroundLinkHover)",ha="var(--colorBrandForegroundLinkPressed)",ua="var(--colorNeutralForeground2Link)",pa="var(--colorNeutralForeground2LinkHover)",ga="var(--colorNeutralForeground2LinkPressed)",fa="var(--colorCompoundBrandForeground1Hover)",ba="var(--colorCompoundBrandForeground1Pressed)",Kt="var(--colorNeutralForegroundOnBrand)",Ye="var(--colorNeutralForegroundInverted)",ma="var(--colorNeutralForegroundInvertedHover)",$a="var(--colorNeutralForegroundInvertedPressed)",rr="var(--colorNeutralForegroundStaticInverted)",Es="var(--colorBrandForeground1)",va="var(--colorBrandForeground2)",ya="var(--colorNeutralForeground1Static)",M="var(--colorNeutralBackground1)",Ls="var(--colorNeutralBackground1Hover)",Hs="var(--colorNeutralBackground1Pressed)",nr="var(--colorNeutralBackground1Selected)",Ds="var(--colorNeutralBackground3)",ka="var(--colorNeutralBackground4)",xa="var(--colorNeutralBackground5)",Ro="var(--colorNeutralBackground6)",wa="var(--colorNeutralBackgroundInverted)",Ca="var(--colorSubtleBackground)",Vs="var(--colorSubtleBackgroundHover)",qo="var(--colorSubtleBackgroundPressed)",Sa="var(--colorSubtleBackgroundSelected)",kt="var(--colorTransparentBackground)",js="var(--colorTransparentBackgroundHover)",Rs="var(--colorTransparentBackgroundPressed)",Ia="var(--colorTransparentBackgroundSelected)",Be="var(--colorNeutralBackgroundDisabled)",qs="var(--colorBackgroundOverlay)",Gs="var(--colorBrandBackground)",ar="var(--colorBrandBackgroundHover)",lr="var(--colorBrandBackgroundPressed)",Pa="var(--colorBrandBackgroundSelected)",ze="var(--colorCompoundBrandBackground)",Qe="var(--colorCompoundBrandBackgroundHover)",Ze="var(--colorCompoundBrandBackgroundPressed)",cr="var(--colorBrandBackgroundStatic)",Ba="var(--colorBrandBackground2)",ge="var(--colorNeutralStrokeAccessible)",Je="var(--colorNeutralStrokeAccessibleHover)",to="var(--colorNeutralStrokeAccessiblePressed)",fe="var(--colorNeutralStroke1)",Go="var(--colorNeutralStroke1Hover)",Ws="var(--colorNeutralStroke1Pressed)",eo="var(--colorNeutralStroke2)",za="var(--colorNeutralStroke3)",Ta="var(--colorNeutralStrokeOnBrand2)",dr="var(--colorBrandStroke1)",Xs="var(--colorBrandStroke2)",Wo="var(--colorCompoundBrandStroke)",Aa="var(--colorCompoundBrandStrokeHover)",hr="var(--colorCompoundBrandStrokePressed)",At="var(--colorNeutralStrokeDisabled)",nt="var(--colorTransparentStroke)",ur="var(--colorTransparentStrokeInteractive)",Us="var(--colorStrokeFocus1)",Ft="var(--colorStrokeFocus2)",pr="var(--colorPaletteRedBackground1)",Fa="var(--colorPaletteRedBackground2)",gr="var(--colorPaletteRedBackground3)",fr="var(--colorPaletteRedBorder1)",_a="var(--colorPaletteRedBorder2)",br="var(--colorPaletteRedForeground1)",Oa="var(--colorPaletteRedForeground2)",mr="var(--colorPaletteRedForeground3)",$r="var(--colorPaletteGreenBackground1)",vr="var(--colorPaletteGreenBackground3)",Ma="var(--colorPaletteGreenBorder1)",Na="var(--colorPaletteGreenBorder2)",Ea="var(--colorPaletteGreenForeground1)",La="var(--colorPaletteGreenForeground2)",Ha="var(--colorPaletteGreenForeground3)",yr="var(--colorPaletteDarkOrangeBackground1)",kr="var(--colorPaletteDarkOrangeBackground3)",xr="var(--colorPaletteDarkOrangeBorder1)",Da="var(--colorPaletteDarkOrangeForeground1)",wr="var(--colorPaletteDarkOrangeForeground3)",Va="var(--colorPaletteYellowBackground1)",ja="var(--colorPaletteYellowBackground3)",Ra="var(--colorPaletteYellowBorder1)",Ks="var(--colorPaletteYellowForeground2)",Cr="var(--colorPaletteMarigoldBackground2)",qa="var(--colorPaletteMarigoldBackground3)",Ga="var(--colorPaletteMarigoldForeground2)",Wa="var(--colorPaletteAnchorBackground2)",Xa="var(--colorPaletteAnchorForeground2)",Ua="var(--colorPaletteBeigeBackground2)",Ka="var(--colorPaletteBeigeForeground2)",Ya="var(--colorPaletteBlueBackground2)",Qa="var(--colorPaletteBlueForeground2)",Za="var(--colorPaletteBrassBackground2)",Ja="var(--colorPaletteBrassForeground2)",tl="var(--colorPaletteBrownBackground2)",el="var(--colorPaletteBrownForeground2)",ol="var(--colorPaletteCornflowerBackground2)",sl="var(--colorPaletteCornflowerForeground2)",il="var(--colorPaletteCranberryBackground2)",rl="var(--colorPaletteCranberryForeground2)",nl="var(--colorPaletteDarkGreenBackground2)",al="var(--colorPaletteDarkGreenForeground2)",ll="var(--colorPaletteDarkRedBackground2)",cl="var(--colorPaletteDarkRedForeground2)",dl="var(--colorPaletteForestBackground2)",hl="var(--colorPaletteForestForeground2)",ul="var(--colorPaletteGoldBackground2)",pl="var(--colorPaletteGoldForeground2)",gl="var(--colorPaletteGrapeBackground2)",fl="var(--colorPaletteGrapeForeground2)",bl="var(--colorPaletteLavenderBackground2)",ml="var(--colorPaletteLavenderForeground2)",$l="var(--colorPaletteLightTealBackground2)",vl="var(--colorPaletteLightTealForeground2)",yl="var(--colorPaletteLilacBackground2)",kl="var(--colorPaletteLilacForeground2)",xl="var(--colorPaletteMagentaBackground2)",wl="var(--colorPaletteMagentaForeground2)",Cl="var(--colorPaletteMinkBackground2)",Sl="var(--colorPaletteMinkForeground2)",Il="var(--colorPaletteNavyBackground2)",Pl="var(--colorPaletteNavyForeground2)",Bl="var(--colorPalettePeachBackground2)",zl="var(--colorPalettePeachForeground2)",Tl="var(--colorPalettePinkBackground2)",Al="var(--colorPalettePinkForeground2)",Fl="var(--colorPalettePlatinumBackground2)",_l="var(--colorPalettePlatinumForeground2)",Ol="var(--colorPalettePlumBackground2)",Ml="var(--colorPalettePlumForeground2)",Nl="var(--colorPalettePumpkinBackground2)",El="var(--colorPalettePumpkinForeground2)",Ll="var(--colorPalettePurpleBackground2)",Hl="var(--colorPalettePurpleForeground2)",Dl="var(--colorPaletteRoyalBlueBackground2)",Vl="var(--colorPaletteRoyalBlueForeground2)",jl="var(--colorPaletteSeafoamBackground2)",Rl="var(--colorPaletteSeafoamForeground2)",ql="var(--colorPaletteSteelBackground2)",Gl="var(--colorPaletteSteelForeground2)",Wl="var(--colorPaletteTealBackground2)",Xl="var(--colorPaletteTealForeground2)",Ys="var(--borderRadiusNone)",_t="var(--borderRadiusSmall)",A="var(--borderRadiusMedium)",Sr="var(--borderRadiusLarge)",Ir="var(--borderRadiusXLarge)",ct="var(--borderRadiusCircular)",$="var(--fontFamilyBase)",Ul="var(--fontFamilyMonospace)",Kl="var(--fontFamilyNumeric)",oo="var(--fontSizeBase100)",G="var(--fontSizeBase200)",F="var(--fontSizeBase300)",dt="var(--fontSizeBase400)",Te="var(--fontSizeBase500)",Xo="var(--fontSizeBase600)",Pr="var(--fontSizeHero700)",Br="var(--fontSizeHero800)",zr="var(--fontSizeHero900)",Tr="var(--fontSizeHero1000)",N="var(--fontWeightRegular)",Yl="var(--fontWeightMedium)",E="var(--fontWeightSemibold)",Uo="var(--fontWeightBold)",Ko="var(--lineHeightBase100)",ot="var(--lineHeightBase200)",V="var(--lineHeightBase300)",xt="var(--lineHeightBase400)",Yo="var(--lineHeightBase500)",Ar="var(--lineHeightBase600)",Fr="var(--lineHeightHero700)",_r="var(--lineHeightHero800)",Or="var(--lineHeightHero900)",Mr="var(--lineHeightHero1000)",Nr="var(--shadow2)",Qo="var(--shadow4)",Ql="var(--shadow8)",Er="var(--shadow16)",Zl="var(--shadow28)",Lr="var(--shadow64)",K="var(--strokeWidthThin)",oe="var(--strokeWidthThick)",se="var(--strokeWidthThicker)",Hr="var(--strokeWidthThickest)",ht="var(--spacingHorizontalXXS)",Yt="var(--spacingHorizontalXS)",Qt="var(--spacingHorizontalSNudge)",Ot="var(--spacingHorizontalS)",Mt="var(--spacingHorizontalMNudge)",ut="var(--spacingHorizontalM)",Jl="var(--spacingHorizontalL)",tc="var(--spacingHorizontalXL)",ec="var(--spacingHorizontalXXL)",Zo="var(--spacingVerticalXXS)",oc="var(--spacingVerticalXS)",so="var(--spacingVerticalSNudge)",pt="var(--spacingVerticalS)",io="var(--spacingVerticalMNudge)",sc="var(--spacingVerticalM)",Dr="var(--spacingVerticalL)",ro="var(--spacingVerticalXXL)",ic="var(--durationUltraFast)",Qs="var(--durationFaster)",Vr="var(--durationNormal)",Zs="var(--durationGentle)",rc="var(--durationSlow)",jr="var(--durationSlower)",Jo="var(--durationUltraSlow)",nc="var(--curveAccelerateMax)",no="var(--curveAccelerateMid)",ac="var(--curveAccelerateMin)",Rr="var(--curveDecelerateMax)",ao="var(--curveDecelerateMid)",lc="var(--curveDecelerateMin)",cc="var(--curveEasyEaseMax)",Js="var(--curveEasyEase)",ti="var(--curveLinear)",dc=l`
|
|
1
|
+
const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let vo;const bi="fast-kernel";try{if(document.currentScript)vo=document.currentScript.getAttribute(bi);else{const o=document.getElementsByTagName("script");vo=o[o.length-1].getAttribute(bi)}}catch{vo="isolate"}let ce;switch(vo){case"share":ce=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ce=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const o=`-${Math.random().toString(36).substring(2,8)}`;ce=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Ce=o=>typeof o=="function",Pt=o=>typeof o=="string",mi=()=>{};var ps=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof ps<"u")ps.globalThis=ps;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const t=new Function("return this")();t.globalThis=t}})();const $i={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},$i));const Q=globalThis.FAST;if(Q.getById===void 0){const o=Object.create(null);Reflect.defineProperty(Q,"getById",Object.assign({value(t,e){let s=o[t];return s===void 0&&(s=e?o[t]=e():null),s}},$i))}Q.error===void 0&&Object.assign(Q,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const gn=Object.freeze([]);function gs(){const o=new Map;return Object.freeze({register(t){return o.has(t.type)?!1:(o.set(t.type,t),!0)},getByType(t){return o.get(t)},getForInstance(t){if(t!=null)return o.get(t.constructor)}})}function vi(){const o=new WeakMap;return function(t){let e=o.get(t);if(e===void 0){let s=Reflect.getPrototypeOf(t);for(;e===void 0&&s!==null;)e=o.get(s),s=Reflect.getPrototypeOf(s);e=e===void 0?[]:e.slice(0),o.set(t,e)}return e}}function Se(o){o.prototype.toJSON=mi}const tt=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),yi=o=>o,fn=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:yi}):{createHTML:yi};let yo=Object.freeze({createHTML(o){return fn.createHTML(o)},protect(o,t,e,s){return s}});const bn=yo,Ie=Object.freeze({get policy(){return yo},setPolicy(o){if(yo!==bn)throw Q.error(1201);yo=o},setAttribute(o,t,e){e==null?o.removeAttribute(t):o.setAttribute(t,e)},setBooleanAttribute(o,t,e){e?o.setAttribute(t,""):o.removeAttribute(t)}}),Bt=Q.getById(ce.updateQueue,()=>{const o=[],t=[],e=globalThis.requestAnimationFrame;let s=!0;function i(){if(t.length)throw t.shift()}function r(g){try{g.call()}catch(u){if(s)t.push(u),setTimeout(i,0);else throw o.length=0,u}}function n(){let u=0;for(;u<o.length;)if(r(o[u]),u++,u>1024){for(let d=0,b=o.length-u;d<b;d++)o[d]=o[d+u];o.length-=u,u=0}o.length=0}function h(g){o.push(g),o.length<2&&(s?e(n):n())}return Object.freeze({enqueue:h,next:()=>new Promise(h),process:n,setMode:g=>s=g})});class fs{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=t,this.sub1=e}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const e=this.spillover;if(e===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 e.indexOf(t)===-1&&e.push(t)}unsubscribe(t){const e=this.spillover;if(e===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const s=e.indexOf(t);s!==-1&&e.splice(s,1)}}notify(t){const e=this.spillover,s=this.subject;if(e===void 0){const i=this.sub1,r=this.sub2;i!==void 0&&i.handleChange(s,t),r!==void 0&&r.handleChange(s,t)}else for(let i=0,r=e.length;i<r;++i)e[i].handleChange(s,t)}}class ki{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,s;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(s=this.subjectSubscribers)===null||s===void 0||s.notify(t)}subscribe(t,e){var s,i;let r;e?r=(s=this.subscribers[e])!==null&&s!==void 0?s:this.subscribers[e]=new fs(this.subject):r=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new fs(this.subject),r.subscribe(t)}unsubscribe(t,e){var s,i;e?(s=this.subscribers[e])===null||s===void 0||s.unsubscribe(t):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(t)}}const bs=Object.freeze({unknown:void 0,coupled:1}),m=Q.getById(ce.observable,()=>{const o=Bt.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let s,i=u=>{throw Q.error(1101)};function r(u){var d;let b=(d=u.$fastController)!==null&&d!==void 0?d:e.get(u);return b===void 0&&(Array.isArray(u)?b=i(u):e.set(u,b=new ki(u))),b}const n=vi();class h{constructor(d){this.name=d,this.field=`_${d}`,this.callback=`${d}Changed`}getValue(d){return s!==void 0&&s.watch(d,this.name),d[this.field]}setValue(d,b){const P=this.field,j=d[P];if(j!==b){d[P]=b;const te=d[this.callback];Ce(te)&&te.call(d,j,b),r(d).notify(this.name)}}}class g extends fs{constructor(d,b,P=!1){super(d,b),this.expression=d,this.isVolatileBinding=P,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(d){this.isAsync=this.needsQueue=d}bind(d){this.controller=d;const b=this.observe(d.source,d.context);return!d.isBound&&this.requiresUnbind(d)&&d.onUnbind(this),b}requiresUnbind(d){return d.sourceLifetime!==bs.coupled||this.first!==this.last||this.first.propertySource!==d.source}unbind(d){this.dispose()}observe(d,b){this.needsRefresh&&this.last!==null&&this.dispose();const P=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let j;try{j=this.expression(d,b)}finally{s=P}return j}disconnect(){this.dispose()}dispose(){if(this.last!==null){let d=this.first;for(;d!==void 0;)d.notifier.unsubscribe(this,d.propertyName),d=d.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(d,b){const P=this.last,j=r(d),te=P===null?this.first:{};if(te.propertySource=d,te.propertyName=b,te.notifier=j,j.subscribe(this,b),P!==null){if(!this.needsRefresh){let fi;s=void 0,fi=P.propertySource[P.propertyName],s=this,d===fi&&(this.needsRefresh=!0)}P.next=te}this.last=te}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let d=this.first;for(;d!==void 0;)yield d,d=d.next}}return Se(g),Object.freeze({setArrayObserverFactory(u){i=u},getNotifier:r,track(u,d){s&&s.watch(u,d)},trackVolatile(){s&&(s.needsRefresh=!0)},notify(u,d){r(u).notify(d)},defineProperty(u,d){Pt(d)&&(d=new h(d)),n(u).push(d),Reflect.defineProperty(u,d.name,{enumerable:!0,get(){return d.getValue(this)},set(b){d.setValue(this,b)}})},getAccessors:n,binding(u,d,b=this.isVolatileBinding(u)){return new g(u,d,b)},isVolatileBinding(u){return t.test(u.toString())}})});function k(o,t){m.defineProperty(o,t)}function mn(o,t,e){return Object.assign({},e,{get(){return m.trackVolatile(),e.get.apply(this)}})}const xi=Q.getById(ce.contextEvent,()=>{let o=null;return{get(){return o},set(t){o=t}}}),Ve=Object.freeze({default:{index:0,length:0,get event(){return Ve.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return xi.get()},setEvent(o){xi.set(o)}});class ko{constructor(t,e,s=!1){this.evaluate=t,this.policy=e,this.isVolatile=s}}class $n extends ko{createObserver(t){return m.binding(this.evaluate,t,this.isVolatile)}}function wi(o,t,e=m.isVolatileBinding(o)){return new $n(o,t,e)}class Ci extends ko{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}Se(Ci);function Si(o,t){return new Ci(o,t)}let Ii;function Pi(o){return o.map(t=>t instanceof at?Pi(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class at{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof at?e.behaviors:null).reduce((e,s)=>s===null?e:e===null?s:e.concat(s),null)}get strategy(){return this._strategy===null&&this.withStrategy(Ii),this._strategy}addStylesTo(t){this.strategy.addStylesTo(t),this.targets.add(t)}removeStylesFrom(t){this.strategy.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}withStrategy(t){return this._strategy=new t(Pi(this.styles)),this}static setDefaultStrategy(t){Ii=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new at(t):t instanceof at?t:new at([t])}}at.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const ms=gs(),$s=Object.freeze({getForInstance:ms.getForInstance,getByType:ms.getByType,define(o){return ms.register({type:o}),o}});function vs(o,t,e){t.source.style.setProperty(o.targetAspect,e.bind(t))}class ys{constructor(t,e){this.dataBinding=t,this.targetAspect=e}createCSS(t){return t(this),`var(${this.targetAspect})`}addedCallback(t){var e;const s=t.source;if(!s.$cssBindings){s.$cssBindings=new Map;const r=s.setAttribute;s.setAttribute=(n,h)=>{r.call(s,n,h),n==="style"&&s.$cssBindings.forEach((g,u)=>vs(u,g.controller,g.observer))}}const i=(e=t[this.targetAspect])!==null&&e!==void 0?e:t[this.targetAspect]=this.dataBinding.createObserver(this,this);i.controller=t,t.source.$cssBindings.set(this,{controller:t,observer:i})}connectedCallback(t){vs(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){vs(this,e.controller,e)}}$s.define(ys);const vn=`${Math.random().toString(36).substring(2,8)}`;let yn=0;const Bi=()=>`--v${vn}${++yn}`;function zi(o,t){const e=[];let s="";const i=[],r=n=>{i.push(n)};for(let n=0,h=o.length-1;n<h;++n){s+=o[n];let g=t[n];Ce(g)?g=new ys(wi(g),Bi()).createCSS(r):g instanceof ko?g=new ys(g,Bi()).createCSS(r):$s.getForInstance(g)!==void 0&&(g=g.createCSS(r)),g instanceof at||g instanceof CSSStyleSheet?(s.trim()!==""&&(e.push(s),s=""),e.push(g)):s+=g}return s+=o[o.length-1],s.trim()!==""&&e.push(s),{styles:e,behaviors:i}}const l=(o,...t)=>{const{styles:e,behaviors:s}=zi(o,t),i=new at(e);return s.length?i.withBehaviors(...s):i};class Ti{constructor(t,e){this.behaviors=e,this.css="";const s=t.reduce((i,r)=>(Pt(r)?this.css+=r:i.push(r),i),[]);s.length&&(this.styles=new at(s))}createCSS(t){return this.behaviors.forEach(t),this.styles&&t(this),this.css}addedCallback(t){t.addStyles(this.styles)}removedCallback(t){t.removeStyles(this.styles)}}$s.define(Ti),l.partial=(o,...t)=>{const{styles:e,behaviors:s}=zi(o,t);return new Ti(e,s)};const ks=`fast-${Math.random().toString(36).substring(2,8)}`,xo=`${ks}{`,je=`}${ks}`,kn=je.length;let xn=0;const xs=()=>`${ks}-${++xn}`,Ai=Object.freeze({interpolation:o=>`${xo}${o}${je}`,attribute:o=>`${xs()}="${xo}${o}${je}"`,comment:o=>`<!--${xo}${o}${je}-->`}),wo=Object.freeze({parse(o,t){const e=o.split(xo);if(e.length===1)return null;const s=[];for(let i=0,r=e.length;i<r;++i){const n=e[i],h=n.indexOf(je);let g;if(h===-1)g=n;else{const u=n.substring(0,h);s.push(t[u]),g=n.substring(h+kn)}g!==""&&s.push(g)}return s}}),ws=gs(),vt=Object.freeze({getForInstance:ws.getForInstance,getByType:ws.getByType,define(o,t){return t=t||{},t.type=o,ws.register(t),o},assignAspect(o,t){if(!t){o.aspectType=tt.content;return}switch(o.sourceAspect=t,t[0]){case":":o.targetAspect=t.substring(1),o.aspectType=o.targetAspect==="classList"?tt.tokenList:tt.property;break;case"?":o.targetAspect=t.substring(1),o.aspectType=tt.booleanAttribute;break;case"@":o.targetAspect=t.substring(1),o.aspectType=tt.event;break;default:o.targetAspect=t,o.aspectType=tt.attribute;break}}});class Cs{constructor(t){this.options=t}createHTML(t){return Ai.attribute(t(this))}createBehavior(){return this}}Se(Cs);function wn(o,t,e,s){if(e==null&&(e=""),e.create){o.textContent="";let i=o.$fastView;i===void 0?i=e.create():o.$fastTemplate!==e&&(i.isComposed&&(i.remove(),i.unbind()),i=e.create()),i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(s.source,s.context)):(i.isComposed=!0,i.bind(s.source,s.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=e)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=e}}function Cn(o,t,e){var s;const i=`${this.id}-t`,r=(s=o[i])!==null&&s!==void 0?s:o[i]={v:0,cv:Object.create(null)},n=r.cv;let h=r.v;const g=o[t];if(e!=null&&e.length){const u=e.split(/\s+/);for(let d=0,b=u.length;d<b;++d){const P=u[d];P!==""&&(n[P]=h,g.add(P))}}if(r.v=h+1,h!==0){h-=1;for(const u in n)n[u]===h&&g.remove(u)}}const Sn={[tt.attribute]:Ie.setAttribute,[tt.booleanAttribute]:Ie.setBooleanAttribute,[tt.property]:(o,t,e)=>o[t]=e,[tt.content]:wn,[tt.tokenList]:Cn,[tt.event]:()=>{}};class Pe{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=tt.content}createHTML(t){return Ai.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=Sn[this.aspectType],s=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw Q.error(1205);this.data=`${this.id}-d`,this.updateTarget=s.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const s=t.targets[this.targetNodeId];switch(this.aspectType){case tt.event:s[this.data]=t,s.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case tt.content:t.onUnbind(this);default:const i=(e=s[this.data])!==null&&e!==void 0?e:s[this.data]=this.dataBinding.createObserver(this,this);i.target=s,i.controller=t,this.updateTarget(s,this.targetAspect,i.bind(t),t);break}}unbind(t){const s=t.targets[this.targetNodeId].$fastView;s!==void 0&&s.isComposed&&(s.unbind(),s.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){Ve.setEvent(t);const s=this.dataBinding.evaluate(e.source,e.context);Ve.setEvent(null),s!==!0&&t.preventDefault()}}handleChange(t,e){const s=e.target,i=e.controller;this.updateTarget(s,this.targetAspect,e.bind(i),i)}}vt.define(Pe,{aspected:!0});function Fi(o,t){const e=o.parentNode;let s=o,i;for(;s!==t;)i=s.nextSibling,e.removeChild(s),s=i;e.removeChild(t)}class Co{constructor(t,e,s){this.fragment=t,this.factories=e,this.targets=s,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=bs.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=t.firstChild,this.lastChild=t.lastChild}get event(){return Ve.getEvent()}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}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const s=t.parentNode;let i=this.firstChild,r;for(;i!==e;)r=i.nextSibling,s.insertBefore(i,t),i=r;s.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let s=this.firstChild,i;for(;s!==e;)i=s.nextSibling,t.appendChild(s),s=i;t.appendChild(e)}dispose(){Fi(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let s=this.behaviors;if(s===null){this.source=t,this.context=e,this.behaviors=s=new Array(this.factories.length);const i=this.factories;for(let r=0,n=i.length;r<n;++r){const h=i[r].createBehavior();h.bind(this),s[r]=h}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let i=0,r=s.length;i<r;++i)s[i].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,s=t.length;e<s;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){Fi(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,s=t.length;e<s;++e)t[e].unbind()}}}Se(Co),m.defineProperty(Co.prototype,"index"),m.defineProperty(Co.prototype,"length");const _i=(o,t)=>`${o}.${t}`,Oi={},zt={index:0,node:null};function Mi(o){o.startsWith("fast-")||Q.warn(1204,{name:o})}const In=new Proxy(document.createElement("div"),{get(o,t){Mi(t);const e=Reflect.get(o,t);return Ce(e)?e.bind(o):e},set(o,t,e){return Mi(t),Reflect.set(o,t,e)}});class Pn{constructor(t,e,s){this.fragment=t,this.directives=e,this.policy=s,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,s,i,r){var n,h;this.nodeIds.has(s)||(this.nodeIds.add(s),this.addTargetDescriptor(e,s,i)),t.id=(n=t.id)!==null&&n!==void 0?n:xs(),t.targetNodeId=s,t.targetTagName=r,t.policy=(h=t.policy)!==null&&h!==void 0?h:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,s){const i=this.descriptors;if(e==="r"||e==="h"||i[e])return;if(!i[t]){const n=t.lastIndexOf("."),h=t.substring(0,n),g=parseInt(t.substring(n+1));this.addTargetDescriptor(h,t,g)}let r=Oi[e];if(!r){const n=`_${e}`;Oi[e]=r={get(){var h;return(h=this[n])!==null&&h!==void 0?h:this[n]=this[t].childNodes[s]}}}i[e]=r}createView(t){const e=this.fragment.cloneNode(!0),s=Object.create(this.proto);s.r=e,s.h=t??In;for(const i of this.nodeIds)s[i];return new Co(e,this.factories,s)}}function Ni(o,t,e,s,i,r=!1){const n=e.attributes,h=o.directives;for(let g=0,u=n.length;g<u;++g){const d=n[g],b=d.value,P=wo.parse(b,h);let j=null;P===null?r&&(j=new Pe(Si(()=>b,o.policy)),vt.assignAspect(j,d.name)):j=Ss.aggregate(P,o.policy),j!==null&&(e.removeAttributeNode(d),g--,u--,o.addFactory(j,t,s,i,e.tagName))}}function Bn(o,t,e,s,i){const r=wo.parse(t.textContent,o.directives);if(r===null)return zt.node=t.nextSibling,zt.index=i+1,zt;let n,h=n=t;for(let g=0,u=r.length;g<u;++g){const d=r[g];g!==0&&(i++,s=_i(e,i),n=h.parentNode.insertBefore(document.createTextNode(""),h.nextSibling)),Pt(d)?n.textContent=d:(n.textContent=" ",vt.assignAspect(d),o.addFactory(d,e,s,i,null)),h=n}return zt.index=i+1,zt.node=h.nextSibling,zt}function Ei(o,t,e){let s=0,i=t.firstChild;for(;i;){const r=zn(o,e,i,s);i=r.node,s=r.index}}function zn(o,t,e,s){const i=_i(t,s);switch(e.nodeType){case 1:Ni(o,t,e,i,s),Ei(o,e,i);break;case 3:return Bn(o,e,t,i,s);case 8:const r=wo.parse(e.data,o.directives);r!==null&&o.addFactory(Ss.aggregate(r),t,i,s,null);break}return zt.index=s+1,zt.node=e.nextSibling,zt}function Tn(o,t){return o&&o.nodeType==8&&wo.parse(o.data,t)!==null}const Li="TEMPLATE",Ss={compile(o,t,e=Ie.policy){let s;if(Pt(o)){s=document.createElement(Li),s.innerHTML=e.createHTML(o);const n=s.content.firstElementChild;n!==null&&n.tagName===Li&&(s=n)}else s=o;!s.content.firstChild&&!s.content.lastChild&&s.content.appendChild(document.createComment(""));const i=document.adoptNode(s.content),r=new Pn(i,t,e);return Ni(r,"",s,"h",0,!0),(Tn(i.firstChild,t)||i.childNodes.length===1&&Object.keys(t).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),Ei(r,i,"r"),zt.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,t=Ie.policy){if(o.length===1)return o[0];let e,s,i=!1,r;const n=o.length,h=o.map(d=>Pt(d)?()=>d:(e=d.sourceAspect||e,s=d.dataBinding||s,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),g=(d,b)=>{let P="";for(let j=0;j<n;++j)P+=h[j](d,b);return P};s.evaluate=g,s.isVolatile=i,s.policy=r??t;const u=new Pe(s);return vt.assignAspect(u,e),u}},An=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Fn=Object.create(null);class de{constructor(t,e=Fn){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const s in e)t(e[s]);return this.html}}de.empty=new de(""),vt.define(de);function _n(o,t,e,s=vt.getForInstance(o)){if(s.aspected){const i=An.exec(t);i!==null&&vt.assignAspect(o,i[2])}return o.createHTML(e)}class ds{constructor(t,e={},s){this.policy=s,this.result=null,this.html=t,this.factories=e}create(t){return this.result===null&&(this.result=Ss.compile(this.html,this.factories,this.policy)),this.result.createView(t)}inline(){return new de(Pt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw Q.error(1208);if(this.policy)throw Q.error(1207);return this.policy=t,this}render(t,e,s){const i=this.create(s);return i.bind(t),i.appendTo(e),i}static create(t,e,s){let i="";const r=Object.create(null),n=h=>{var g;const u=(g=h.id)!==null&&g!==void 0?g:h.id=xs();return r[u]=h,u};for(let h=0,g=t.length-1;h<g;++h){const u=t[h];let d=e[h],b;if(i+=u,Ce(d))d=new Pe(wi(d));else if(d instanceof ko)d=new Pe(d);else if(!(b=vt.getForInstance(d))){const P=d;d=new Pe(Si(()=>P))}i+=_n(d,u,n,b)}return new ds(i+t[t.length-1],r,s)}}Se(ds);const f=(o,...t)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return ds.create(o,t);throw Q.error(1206)};f.partial=o=>new de(o);class Hi extends Cs{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}vt.define(Hi);const Tt=o=>new Hi(o),On=o=>o.nodeType===1,Re=o=>o?t=>t.nodeType===1&&t.matches(o):On;class Di extends Cs{get id(){return this._id}set id(t){this._id=t,this._controllerProperty=`${t}-c`}bind(t){const e=t.targets[this.targetNodeId];e[this._controllerProperty]=t,this.updateTarget(t.source,this.computeNodes(e)),this.observe(e),t.onUnbind(this)}unbind(t){const e=t.targets[this.targetNodeId];this.updateTarget(t.source,gn),this.disconnect(e),e[this._controllerProperty]=null}getSource(t){return t[this._controllerProperty].source}updateTarget(t,e){t[this.options.property]=e}computeNodes(t){let e=this.getNodes(t);return"filter"in this.options&&(e=e.filter(this.options.filter)),e}}const Vi="slotchange";class ji extends Di{observe(t){t.addEventListener(Vi,this)}disconnect(t){t.removeEventListener(Vi,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}vt.define(ji);function pt(o){return Pt(o)&&(o={property:o}),new ji(o)}class Ri extends Di{constructor(t){super(t),this.observerProperty=Symbol(),this.handleEvent=(e,s)=>{const i=s.target;this.updateTarget(this.getSource(i),this.computeNodes(i))},t.childList=!0}observe(t){let e=t[this.observerProperty];e||(e=new MutationObserver(this.handleEvent),e.toJSON=mi,t[this.observerProperty]=e),e.target=t,e.observe(t,this.options)}disconnect(t){const e=t[this.observerProperty];e.target=null,e.disconnect()}getNodes(t){return"selector"in this.options?Array.from(t.querySelectorAll(this.options.selector)):Array.from(t.childNodes)}}vt.define(Ri);function Mn(o){return Pt(o)&&(o={property:o}),new Ri(o)}const qi="boolean",Gi="reflect",So=Object.freeze({locate:vi()}),Nn={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Wi(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const st={toView(o){const t=Wi(o);return t&&t.toString()},fromView:Wi};class hs{constructor(t,e,s=e.toLowerCase(),i=Gi,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=s,this.mode=i,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,i===qi&&r===void 0&&(this.converter=Nn)}setValue(t,e){const s=t[this.fieldName],i=this.converter;i!==void 0&&(e=i.fromView(e)),s!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](s,e),t.$fastController.notify(this.name))}getValue(t){return m.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,s=this.guards;s.has(t)||e==="fromView"||Bt.enqueue(()=>{s.add(t);const i=t[this.fieldName];switch(e){case Gi:const r=this.converter;Ie.setAttribute(t,this.attribute,r!==void 0?r.toView(i):i);break;case qi:Ie.setBooleanAttribute(t,this.attribute,i);break}s.delete(t)})}static collect(t,...e){const s=[];e.push(So.locate(t));for(let i=0,r=e.length;i<r;++i){const n=e[i];if(n!==void 0)for(let h=0,g=n.length;h<g;++h){const u=n[h];Pt(u)?s.push(new hs(t,u)):s.push(new hs(t,u.property,u.attribute,u.mode,u.converter))}}return s}}function a(o,t){let e;function s(i,r){arguments.length>1&&(e.property=r),So.locate(i.constructor).push(e)}if(arguments.length>1){e={},s(o,t);return}return e=o===void 0?{}:o,s}const Xi={mode:"open"},Ui={},Ki=new Set,Io=Q.getById(ce.elementRegistry,()=>gs());class It{constructor(t,e=t.definition){var s;this.platformDefined=!1,Pt(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.registry=(s=e.registry)!==null&&s!==void 0?s:customElements;const i=t.prototype,r=hs.collect(t,e.attributes),n=new Array(r.length),h={},g={};for(let u=0,d=r.length;u<d;++u){const b=r[u];n[u]=b.attribute,h[b.name]=b,g[b.attribute]=b,m.defineProperty(i,b)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=h,this.attributeLookup=g,this.shadowOptions=e.shadowOptions===void 0?Xi:e.shadowOptions===null?void 0:Object.assign(Object.assign({},Xi),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Ui:Object.assign(Object.assign({},Ui),e.elementOptions),this.styles=at.normalize(e.styles),Io.register(this)}get isDefined(){return this.platformDefined}define(t=this.registry){const e=this.type;return t.get(this.name)||(this.platformDefined=!0,t.define(this.name,e,this.elementOptions)),this}static compose(t,e){return Ki.has(t)||Io.getByType(t)?new It(class extends t{},e):new It(t,e)}static registerBaseType(t){Ki.add(t)}}It.getByType=Io.getByType,It.getForInstance=Io.getForInstance;const En={bubbles:!0,composed:!0,cancelable:!0},Is="isConnected",Yi=new WeakMap;function Po(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:Yi.get(o))!==null&&e!==void 0?e:null}let Qi;class Bo extends ki{constructor(t,e){super(t),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=e;const s=e.shadowOptions;if(s!==void 0){let r=t.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=t.attachShadow(s),s.mode==="closed"&&Yi.set(t,r))}const i=m.getAccessors(t);if(i.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,h=i.length;n<h;++n){const g=i[n].name,u=t[g];u!==void 0&&(delete t[g],r[g]=u)}}}get isConnected(){return m.track(this,Is),this.stage===1}get context(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&e!==void 0?e:Ve.default}get isBound(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&e!==void 0?e:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const e=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():e.template&&(this._template=(t=e.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get mainStyles(){var t;if(this._mainStyles===null){const e=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():e.styles&&(this._mainStyles=(t=e.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var e;(e=this.view)===null||e===void 0||e.onUnbind(t)}addBehavior(t){var e,s;const i=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(s=i.get(t))!==null&&s!==void 0?s:0;r===0?(i.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):i.set(t,r+1)}removeBehavior(t,e=!1){const s=this.behaviors;if(s===null)return;const i=s.get(t);i!==void 0&&(i===1||e?(s.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):s.set(t,i-1))}addStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=Po(s))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(s)){const i=t.behaviors;if(t.addStylesTo(s),i!==null)for(let r=0,n=i.length;r<n;++r)this.addBehavior(i[r])}}removeStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=Po(s))!==null&&e!==void 0?e:s).removeChild(t);else if(t.isAttachedTo(s)){const i=t.behaviors;if(t.removeStylesFrom(s),i!==null)for(let r=0,n=i.length;r<n;++r)this.removeBehavior(i[r])}}connect(){if(this.stage!==3)return;if(this.stage=0,this.boundObservables!==null){const e=this.source,s=this.boundObservables,i=Object.keys(s);for(let r=0,n=i.length;r<n;++r){const h=i[r];e[h]=s[h]}this.boundObservables=null}const t=this.behaviors;if(t!==null){this.guardBehaviorConnection=!0;for(const e of t.keys())e.connectedCallback&&e.connectedCallback(this);this.guardBehaviorConnection=!1}this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,m.notify(this,Is)}disconnect(){if(this.stage!==1)return;this.stage=2,m.notify(this,Is),this.view!==null&&this.view.unbind();const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.stage=3}onAttributeChangedCallback(t,e,s){const i=this.definition.attributeLookup[t];i!==void 0&&i.onAttributeChangedCallback(this.source,s)}emit(t,e,s){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},En),s))):!1}renderTemplate(t){var e;const s=this.source,i=(e=Po(s))!==null&&e!==void 0?e:s;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=i.firstChild;r!==null;r=i.firstChild)i.removeChild(r)}t&&(this.view=t.render(s,i,s),this.view.sourceLifetime=bs.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const s=It.getForInstance(t);if(s===void 0)throw Q.error(1401);return t.$fastController=new Qi(t,s)}static setStrategy(t){Qi=t}}Se(Bo),Bo.setStrategy(Bo);function zo(o){var t;return"adoptedStyleSheets"in o?o:(t=Po(o))!==null&&t!==void 0?t:o.getRootNode()}class us{constructor(t){const e=us.styleSheetCache;this.sheets=t.map(s=>{if(s instanceof CSSStyleSheet)return s;let i=e.get(s);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(s),e.set(s,i)),i})}addStylesTo(t){Ji(zo(t),this.sheets)}removeStylesFrom(t){tr(zo(t),this.sheets)}}us.styleSheetCache=new Map;let Ln=0;const Hn=()=>`fast-${++Ln}`;function Zi(o){return o===document?document.body:o}class Dn{constructor(t){this.styles=t,this.styleClass=Hn()}addStylesTo(t){t=Zi(zo(t));const e=this.styles,s=this.styleClass;for(let i=0;i<e.length;i++){const r=document.createElement("style");r.innerHTML=e[i],r.className=s,t.append(r)}}removeStylesFrom(t){t=Zi(zo(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let s=0,i=e.length;s<i;++s)t.removeChild(e[s])}}let Ji=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},tr=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(at.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Ji=(o,t)=>{o.adoptedStyleSheets.push(...t)},tr=(o,t)=>{for(const e of t){const s=o.adoptedStyleSheets.indexOf(e);s!==-1&&o.adoptedStyleSheets.splice(s,1)}}}catch{}at.setDefaultStrategy(us)}else at.setDefaultStrategy(Dn);function er(o){const t=class extends o{constructor(){super(),Bo.forCustomElement(this)}$emit(e,s,i){return this.$fastController.emit(e,s,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,s,i){this.$fastController.onAttributeChangedCallback(e,s,i)}};return It.registerBaseType(t),t}function Vn(o,t){return Ce(o)?It.compose(o,t):It.compose(this,o)}function jn(o,t){return Ce(o)?It.compose(o,t).define().type:It.compose(this,o).define().type}function Rn(o){return er(o)}const x=Object.assign(er(HTMLElement),{from:Rn,define:jn,compose:Vn}),gt={horizontal:"horizontal",vertical:"vertical"};function qn(o,t){let e=o.length;for(;e--;)if(t(o[e],e,o))return e;return-1}function or(...o){return o.every(t=>t instanceof HTMLElement)}const Ps="ArrowDown",Bs="ArrowLeft",zs="ArrowRight",Ts="ArrowUp",As="End",To="Enter",Gn="Escape",Fs="Home",_s=" ",Wn="Tab";var yt;(function(o){o.ltr="ltr",o.rtl="rtl"})(yt||(yt={}));function Os(o,t,e){return Math.min(Math.max(e,o),t)}let Xn=0;function Ao(o=""){return`${o}${Xn++}`}var Un=Object.defineProperty,Kn=Object.getOwnPropertyDescriptor,E=(o,t,e,s)=>{for(var i=s>1?void 0:s?Kn(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Un(t,e,i),i};class L{}E([a({attribute:"aria-atomic"})],L.prototype,"ariaAtomic",2),E([a({attribute:"aria-busy"})],L.prototype,"ariaBusy",2),E([a({attribute:"aria-controls"})],L.prototype,"ariaControls",2),E([a({attribute:"aria-current"})],L.prototype,"ariaCurrent",2),E([a({attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),E([a({attribute:"aria-details"})],L.prototype,"ariaDetails",2),E([a({attribute:"aria-disabled"})],L.prototype,"ariaDisabled",2),E([a({attribute:"aria-errormessage"})],L.prototype,"ariaErrormessage",2),E([a({attribute:"aria-flowto"})],L.prototype,"ariaFlowto",2),E([a({attribute:"aria-haspopup"})],L.prototype,"ariaHaspopup",2),E([a({attribute:"aria-hidden"})],L.prototype,"ariaHidden",2),E([a({attribute:"aria-invalid"})],L.prototype,"ariaInvalid",2),E([a({attribute:"aria-keyshortcuts"})],L.prototype,"ariaKeyshortcuts",2),E([a({attribute:"aria-label"})],L.prototype,"ariaLabel",2),E([a({attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),E([a({attribute:"aria-live"})],L.prototype,"ariaLive",2),E([a({attribute:"aria-owns"})],L.prototype,"ariaOwns",2),E([a({attribute:"aria-relevant"})],L.prototype,"ariaRelevant",2),E([a({attribute:"aria-roledescription"})],L.prototype,"ariaRoledescription",2);const Ms={fromView(o){const t=parseFloat(o);return Number.isNaN(t)?"":t.toString()},toView(o){const t=parseFloat(o);return Number.isNaN(t)?void 0:t.toString()}},sr=o=>o.closest("[dir]")?.dir==="rtl"?yt.rtl:yt.ltr;function ft(o){return o?typeof o=="string"?new de(o):"inline"in o?o.inline():o:de.empty}const Yn=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,Qn=":host([hidden]){display:none}";function w(o){return`${Qn}:host{display:${o}}`}class Zn{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:e}=this;let s=this.listenerCache.get(t);s||(s=this.constructListener(t),this.listenerCache.set(t,s)),s.bind(e)(),e.addEventListener("change",s)}disconnectedCallback(t){const e=this.listenerCache.get(t);e&&this.query.removeEventListener("change",e)}}class $o extends Zn{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new $o(t,e)}constructListener(t){let e=!1;const s=this.styles;return function(){const{matches:r}=this;r&&!e?(t.addStyles(s),e=r):!r&&e&&(t.removeStyles(s),e=r)}}removedCallback(t){t.removeStyles(this.styles)}}const et=$o.with(window.matchMedia("(forced-colors)"));$o.with(window.matchMedia("(prefers-color-scheme: dark)")),$o.with(window.matchMedia("(prefers-color-scheme: light)"));class Dt{}function ee(o){return f`<slot name="end" ${Tt("end")}>${ft(o.end)}</slot>`.inline()}function Vt(o){return f`<slot name="start" ${Tt("start")}>${ft(o.start)}</slot>`.inline()}function jt(o,...t){const e=So.locate(o);t.forEach(s=>{Object.getOwnPropertyNames(s.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(s.prototype,r))}),So.locate(s).forEach(r=>e.push(r))})}const Jn=CSS.supports("selector(:state(g))");function c(o,t,e){if(!Jn){o.shadowRoot.host.toggleAttribute(`state--${t}`,e);return}if(e=e??!o.states.has(t),e){o.states.add(t);return}o.states.delete(t)}var ta=Object.defineProperty,ea=Object.getOwnPropertyDescriptor,he=(o,t,e,s)=>{for(var i=s>1?void 0:s?ea(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&ta(t,e,i),i};class lt extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Ao("accordion-"),this.block=!1}expandedChanged(t,e){c(this.elementInternals,"expanded",e)}disabledChanged(t,e){c(this.elementInternals,"disabled",e)}sizeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}blockChanged(t,e){c(this.elementInternals,"block",e)}markerPositionChanged(t,e){t&&c(this.elementInternals,`align-${t}`,!1),e&&c(this.elementInternals,`align-${e}`,!0)}}he([a({attribute:"heading-level",mode:"fromView",converter:st})],lt.prototype,"headinglevel",2),he([a({mode:"boolean"})],lt.prototype,"expanded",2),he([a({mode:"boolean"})],lt.prototype,"disabled",2),he([a],lt.prototype,"id",2),he([a],lt.prototype,"size",2),he([a({mode:"boolean"})],lt.prototype,"block",2),he([a({attribute:"marker-position"})],lt.prototype,"markerPosition",2),jt(lt,Dt);const v=l.partial`:is([state--checked], :state(checked))`,W=l.partial`:is([state--disabled], :state(disabled))`,Fo=l.partial`:is([state--filled-lighter], :state(filled-lighter))`,_o=l.partial`:is([state--filled-darker], :state(filled-darker))`,Rt=l.partial`:is([state--ghost], :state(ghost))`,ir=l.partial`:is([state--inverted], :state(inverted))`,it=l.partial`:is([state--primary], :state(primary))`,R=l.partial`:is([state--outline], :state(outline))`,qe=l.partial`:is([state--strong], :state(strong))`,C=l.partial`:is([state--subtle], :state(subtle))`,oe=l.partial`:is([state--tint], :state(tint))`,Ge=l.partial`:is([state--underline], :state(underline))`,X=l.partial`:is([state--transparent], :state(transparent))`,We=l.partial`:is([state--circular], :state(circular))`,qt=l.partial`:is([state--rounded], :state(rounded))`,Xe=l.partial`:is([state--square], :state(square))`,Ue=l.partial`:is([state--tiny], :state(tiny))`,Ke=l.partial`:is([state--extra-small], :state(extra-small))`,_=l.partial`:is([state--small], :state(small))`;l.partial`:is([state--medium], :state(medium))`;const S=l.partial`:is([state--large], :state(large))`,Oo=l.partial`:is([state--extra-large], :state(extra-large))`,oa=l.partial`:is([state--huge], :state(huge))`,rr=l.partial`:is([state--align-start], :state(align-start))`,Gt=l.partial`:is([state--align-end], :state(align-end))`,Ns=l.partial`:is([state--inset], :state(inset))`,Be=l.partial`:is([state--icon], :state(icon))`,B=l.partial`:is([state--pressed], :state(pressed))`,Wt=l.partial`:is([state--brand], :state(brand))`,Es=l.partial`:is([state--error], :state(error))`,Mo=l.partial`:is([state--danger], :state(danger))`,No=l.partial`:is([state--important], :state(important))`,Eo=l.partial`:is([state--informative], :state(informative))`;l.partial`:is([state--marigold], :state(marigold))`;const Lo=l.partial`:is([state--neutral], :state(neutral))`,Ho=l.partial`:is([state--severe], :state(severe))`,ue=l.partial`:is([state--success], :state(success))`,pe=l.partial`:is([state--warning], :state(warning))`,Z=l.partial`:is([state--vertical], :state(vertical))`;l.partial`:is([state--horizontal], :state(horizontal))`,l.partial`:is([state--singleline], :state(singleline))`;const Ye=l.partial`:is([state--multiline], :state(multiline))`,ge=l.partial`:is([state--expanded], :state(expanded))`,sa=l.partial`:is([state--block], :state(block))`,z="var(--colorNeutralForeground1)",nr="var(--colorNeutralForeground1Hover)",ia="var(--colorNeutralForeground1Pressed)",Xt="var(--colorNeutralForeground2)",Do="var(--colorNeutralForeground2Hover)",Vo="var(--colorNeutralForeground2Pressed)",ra="var(--colorNeutralForeground2Selected)",jo="var(--colorNeutralForeground2BrandHover)",Ro="var(--colorNeutralForeground2BrandPressed)",na="var(--colorNeutralForeground2BrandSelected)",rt="var(--colorNeutralForeground3)",aa="var(--colorNeutralForeground3Hover)",la="var(--colorNeutralForeground3Pressed)",ca="var(--colorNeutralForeground4)",H="var(--colorNeutralForegroundDisabled)",da="var(--colorBrandForegroundLink)",ha="var(--colorBrandForegroundLinkHover)",ua="var(--colorBrandForegroundLinkPressed)",pa="var(--colorNeutralForeground2Link)",ga="var(--colorNeutralForeground2LinkHover)",fa="var(--colorNeutralForeground2LinkPressed)",ba="var(--colorCompoundBrandForeground1Hover)",ma="var(--colorCompoundBrandForeground1Pressed)",Ut="var(--colorNeutralForegroundOnBrand)",Qe="var(--colorNeutralForegroundInverted)",$a="var(--colorNeutralForegroundInvertedHover)",va="var(--colorNeutralForegroundInvertedPressed)",ar="var(--colorNeutralForegroundStaticInverted)",Ls="var(--colorBrandForeground1)",ya="var(--colorBrandForeground2)",ka="var(--colorNeutralForeground1Static)",O="var(--colorNeutralBackground1)",Hs="var(--colorNeutralBackground1Hover)",Ds="var(--colorNeutralBackground1Pressed)",lr="var(--colorNeutralBackground1Selected)",Vs="var(--colorNeutralBackground3)",xa="var(--colorNeutralBackground4)",wa="var(--colorNeutralBackground5)",qo="var(--colorNeutralBackground6)",Ca="var(--colorNeutralBackgroundInverted)",Sa="var(--colorSubtleBackground)",js="var(--colorSubtleBackgroundHover)",Go="var(--colorSubtleBackgroundPressed)",Ia="var(--colorSubtleBackgroundSelected)",kt="var(--colorTransparentBackground)",Rs="var(--colorTransparentBackgroundHover)",qs="var(--colorTransparentBackgroundPressed)",Pa="var(--colorTransparentBackgroundSelected)",ze="var(--colorNeutralBackgroundDisabled)",Gs="var(--colorBackgroundOverlay)",Ws="var(--colorBrandBackground)",cr="var(--colorBrandBackgroundHover)",dr="var(--colorBrandBackgroundPressed)",Ba="var(--colorBrandBackgroundSelected)",Te="var(--colorCompoundBrandBackground)",Ze="var(--colorCompoundBrandBackgroundHover)",Je="var(--colorCompoundBrandBackgroundPressed)",hr="var(--colorBrandBackgroundStatic)",za="var(--colorBrandBackground2)",fe="var(--colorNeutralStrokeAccessible)",to="var(--colorNeutralStrokeAccessibleHover)",eo="var(--colorNeutralStrokeAccessiblePressed)",be="var(--colorNeutralStroke1)",Wo="var(--colorNeutralStroke1Hover)",Xs="var(--colorNeutralStroke1Pressed)",oo="var(--colorNeutralStroke2)",Ta="var(--colorNeutralStroke3)",Aa="var(--colorNeutralStrokeOnBrand2)",ur="var(--colorBrandStroke1)",Us="var(--colorBrandStroke2)",Xo="var(--colorCompoundBrandStroke)",Fa="var(--colorCompoundBrandStrokeHover)",pr="var(--colorCompoundBrandStrokePressed)",At="var(--colorNeutralStrokeDisabled)",nt="var(--colorTransparentStroke)",gr="var(--colorTransparentStrokeInteractive)",Ks="var(--colorStrokeFocus1)",Ft="var(--colorStrokeFocus2)",fr="var(--colorPaletteRedBackground1)",_a="var(--colorPaletteRedBackground2)",br="var(--colorPaletteRedBackground3)",mr="var(--colorPaletteRedBorder1)",Oa="var(--colorPaletteRedBorder2)",$r="var(--colorPaletteRedForeground1)",Ma="var(--colorPaletteRedForeground2)",vr="var(--colorPaletteRedForeground3)",yr="var(--colorPaletteGreenBackground1)",kr="var(--colorPaletteGreenBackground3)",Na="var(--colorPaletteGreenBorder1)",Ea="var(--colorPaletteGreenBorder2)",La="var(--colorPaletteGreenForeground1)",Ha="var(--colorPaletteGreenForeground2)",Da="var(--colorPaletteGreenForeground3)",xr="var(--colorPaletteDarkOrangeBackground1)",wr="var(--colorPaletteDarkOrangeBackground3)",Cr="var(--colorPaletteDarkOrangeBorder1)",Va="var(--colorPaletteDarkOrangeForeground1)",Sr="var(--colorPaletteDarkOrangeForeground3)",ja="var(--colorPaletteYellowBackground1)",Ra="var(--colorPaletteYellowBackground3)",qa="var(--colorPaletteYellowBorder1)",Ys="var(--colorPaletteYellowForeground2)",Ir="var(--colorPaletteMarigoldBackground2)",Ga="var(--colorPaletteMarigoldBackground3)",Wa="var(--colorPaletteMarigoldForeground2)",Xa="var(--colorPaletteAnchorBackground2)",Ua="var(--colorPaletteAnchorForeground2)",Ka="var(--colorPaletteBeigeBackground2)",Ya="var(--colorPaletteBeigeForeground2)",Qa="var(--colorPaletteBlueBackground2)",Za="var(--colorPaletteBlueForeground2)",Ja="var(--colorPaletteBrassBackground2)",tl="var(--colorPaletteBrassForeground2)",el="var(--colorPaletteBrownBackground2)",ol="var(--colorPaletteBrownForeground2)",sl="var(--colorPaletteCornflowerBackground2)",il="var(--colorPaletteCornflowerForeground2)",rl="var(--colorPaletteCranberryBackground2)",nl="var(--colorPaletteCranberryForeground2)",al="var(--colorPaletteDarkGreenBackground2)",ll="var(--colorPaletteDarkGreenForeground2)",cl="var(--colorPaletteDarkRedBackground2)",dl="var(--colorPaletteDarkRedForeground2)",hl="var(--colorPaletteForestBackground2)",ul="var(--colorPaletteForestForeground2)",pl="var(--colorPaletteGoldBackground2)",gl="var(--colorPaletteGoldForeground2)",fl="var(--colorPaletteGrapeBackground2)",bl="var(--colorPaletteGrapeForeground2)",ml="var(--colorPaletteLavenderBackground2)",$l="var(--colorPaletteLavenderForeground2)",vl="var(--colorPaletteLightTealBackground2)",yl="var(--colorPaletteLightTealForeground2)",kl="var(--colorPaletteLilacBackground2)",xl="var(--colorPaletteLilacForeground2)",wl="var(--colorPaletteMagentaBackground2)",Cl="var(--colorPaletteMagentaForeground2)",Sl="var(--colorPaletteMinkBackground2)",Il="var(--colorPaletteMinkForeground2)",Pl="var(--colorPaletteNavyBackground2)",Bl="var(--colorPaletteNavyForeground2)",zl="var(--colorPalettePeachBackground2)",Tl="var(--colorPalettePeachForeground2)",Al="var(--colorPalettePinkBackground2)",Fl="var(--colorPalettePinkForeground2)",_l="var(--colorPalettePlatinumBackground2)",Ol="var(--colorPalettePlatinumForeground2)",Ml="var(--colorPalettePlumBackground2)",Nl="var(--colorPalettePlumForeground2)",El="var(--colorPalettePumpkinBackground2)",Ll="var(--colorPalettePumpkinForeground2)",Hl="var(--colorPalettePurpleBackground2)",Dl="var(--colorPalettePurpleForeground2)",Vl="var(--colorPaletteRoyalBlueBackground2)",jl="var(--colorPaletteRoyalBlueForeground2)",Rl="var(--colorPaletteSeafoamBackground2)",ql="var(--colorPaletteSeafoamForeground2)",Gl="var(--colorPaletteSteelBackground2)",Wl="var(--colorPaletteSteelForeground2)",Xl="var(--colorPaletteTealBackground2)",Ul="var(--colorPaletteTealForeground2)",Qs="var(--borderRadiusNone)",_t="var(--borderRadiusSmall)",T="var(--borderRadiusMedium)",Pr="var(--borderRadiusLarge)",Br="var(--borderRadiusXLarge)",ct="var(--borderRadiusCircular)",$="var(--fontFamilyBase)",Kl="var(--fontFamilyMonospace)",Yl="var(--fontFamilyNumeric)",so="var(--fontSizeBase100)",q="var(--fontSizeBase200)",A="var(--fontSizeBase300)",dt="var(--fontSizeBase400)",Ae="var(--fontSizeBase500)",Uo="var(--fontSizeBase600)",zr="var(--fontSizeHero700)",Tr="var(--fontSizeHero800)",Ar="var(--fontSizeHero900)",Fr="var(--fontSizeHero1000)",M="var(--fontWeightRegular)",Ql="var(--fontWeightMedium)",N="var(--fontWeightSemibold)",Ko="var(--fontWeightBold)",Yo="var(--lineHeightBase100)",ot="var(--lineHeightBase200)",D="var(--lineHeightBase300)",xt="var(--lineHeightBase400)",Qo="var(--lineHeightBase500)",_r="var(--lineHeightBase600)",Or="var(--lineHeightHero700)",Mr="var(--lineHeightHero800)",Nr="var(--lineHeightHero900)",Er="var(--lineHeightHero1000)",Lr="var(--shadow2)",Zo="var(--shadow4)",Zl="var(--shadow8)",Hr="var(--shadow16)",Jl="var(--shadow28)",Dr="var(--shadow64)",U="var(--strokeWidthThin)",se="var(--strokeWidthThick)",ie="var(--strokeWidthThicker)",Vr="var(--strokeWidthThickest)",ht="var(--spacingHorizontalXXS)",Kt="var(--spacingHorizontalXS)",Yt="var(--spacingHorizontalSNudge)",Qt="var(--spacingHorizontalS)",Ot="var(--spacingHorizontalMNudge)",ut="var(--spacingHorizontalM)",tc="var(--spacingHorizontalL)",ec="var(--spacingHorizontalXL)",oc="var(--spacingHorizontalXXL)",Jo="var(--spacingVerticalXXS)",sc="var(--spacingVerticalXS)",io="var(--spacingVerticalSNudge)",bt="var(--spacingVerticalS)",ro="var(--spacingVerticalMNudge)",ic="var(--spacingVerticalM)",Zs="var(--spacingVerticalL)",no="var(--spacingVerticalXXL)",rc="var(--durationUltraFast)",Js="var(--durationFaster)",jr="var(--durationNormal)",ti="var(--durationGentle)",nc="var(--durationSlow)",Rr="var(--durationSlower)",ts="var(--durationUltraSlow)",ac="var(--curveAccelerateMax)",ao="var(--curveAccelerateMid)",lc="var(--curveAccelerateMin)",qr="var(--curveDecelerateMax)",lo="var(--curveDecelerateMid)",cc="var(--curveDecelerateMin)",dc="var(--curveEasyEaseMax)",ei="var(--curveEasyEase)",oi="var(--curveLinear)",hc=l`
|
|
2
2
|
${w("block")}
|
|
3
3
|
|
|
4
|
-
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${ut} ${
|
|
4
|
+
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${ut} ${Ot};border-radius:${T};font-family:${$};font-size:${A};font-weight:${M};line-height:${D};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${kt};border:none;box-sizing:border-box;color:${z};cursor:pointer;font:inherit;grid-column:auto / span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${_t}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${Qt};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${ut}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Qt};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${_t};outline:none;border:2px solid ${Ks};box-shadow:inset 0 0 0 1px ${Ft}}:host(${W}) .button{color:${H}}:host(${W}) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host(${ge}) .content{display:block}:host(${ge}) .default-marker-collapsed,:host(${ge}) ::slotted([slot='marker-collapsed']),:host(:not(${ge})) :is(.default-marker-expanded,.content),:host(:not(${ge})) ::slotted([slot='marker-expanded']){display:none}:host(${ge}) ::slotted([slot='marker-expanded']),:host(:not(${ge})) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${A};line-height:${D}}:host(${_}) .heading{font-size:${q};line-height:${ot}}:host(${S}) .heading{font-size:${dt};line-height:${xt}}:host(${Oo}) .heading{font-size:${Ae};line-height:${Qo}}:host(${Gt}) :slotted([slot='start']){grid-column:1 / span 1}:host(${Gt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${Qt};padding-inline-end:0}:host(${Gt}) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host(${Gt}) .heading{grid-template-columns:auto auto 28px;padding-inline:${ut}}:host(${Gt}:has([slot='start'])) .heading{padding-inline:${Ot} ${ut}}:host(${sa}${Gt}) .heading{grid-template-columns:auto 1fr}:host(${Gt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,uc=f.partial(`<svg
|
|
5
5
|
width="20"
|
|
6
6
|
height="20"
|
|
7
7
|
viewBox="0 0 20 20"
|
|
@@ -14,7 +14,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
14
14
|
d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z"
|
|
15
15
|
fill="currentColor"
|
|
16
16
|
/>
|
|
17
|
-
</svg>`),
|
|
17
|
+
</svg>`),pc=f.partial(`<svg
|
|
18
18
|
width="20"
|
|
19
19
|
height="20"
|
|
20
20
|
viewBox="0 0 20 20"
|
|
@@ -27,38 +27,38 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
27
27
|
d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z"
|
|
28
28
|
fill="currentColor"
|
|
29
29
|
/>
|
|
30
|
-
</svg>`);function
|
|
30
|
+
</svg>`);function gc(o={}){return f`<div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${Tt("expandbutton")} ?disabled="${t=>t.disabled?"true":void 0}" aria-expanded="${t=>t.expanded}" aria-controls="${t=>t.id}-panel" id="${t=>t.id}"><slot name="heading"></slot></button>${Vt(o)}<slot name="marker-expanded">${ft(o.expandedIcon)}</slot><slot name="marker-collapsed">${ft(o.collapsedIcon)}</slot></div><div class="content" part="content" id="${t=>t.id}-panel" role="region" aria-labelledby="${t=>t.id}"><slot></slot></div>`}const fc=gc({collapsedIcon:uc,expandedIcon:pc}),bc=lt.compose({name:`${p.prefix}-accordion-item`,template:fc,styles:hc});bc.define(p.registry);const si={single:"single",multi:"multi"};var mc=Object.defineProperty,$c=Object.getOwnPropertyDescriptor,Gr=(o,t,e,s)=>{for(var i=s>1?void 0:s?$c(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&mc(t,e,i),i};class ii extends x{constructor(){super(...arguments),this.expandmode=si.multi,this.activeItemIndex=0,this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const t=Array.from(this.children);if(this.removeItemListeners(t),t.forEach(e=>m.getNotifier(e).subscribe(this,"disabled")),this.accordionItems=t.filter(e=>!e.hasAttribute("disabled")),this.accordionItems.forEach((e,s)=>{e instanceof lt&&(e.addEventListener("click",this.expandedChangedHandler),m.getNotifier(e).subscribe(this,"expanded"))}),this.isSingleExpandMode()){const e=this.findExpandedItem();this.setSingleExpandMode(e)}},this.removeItemListeners=t=>{t.forEach((e,s)=>{m.getNotifier(e).unsubscribe(this,"disabled"),m.getNotifier(e).unsubscribe(this,"expanded"),e.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=t=>{const e=t.target;e instanceof lt&&(this.isSingleExpandMode()?this.setSingleExpandMode(e):(e.expanded=!e.expanded,this.activeItemIndex=this.accordionItems.indexOf(e)),this.$emit("change"))}}expandmodeChanged(t,e){if(!this.$fastController.isConnected)return;const s=this.findExpandedItem();if(s){if(e===si.single){this.setSingleExpandMode(s);return}s?.expandbutton.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(t,e){this.$fastController.isConnected&&this.setItems()}handleChange(t,e){e==="disabled"?this.setItems():e==="expanded"&&t.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(t)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(t=>t instanceof lt&&t.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===si.single}setSingleExpandMode(t){if(this.accordionItems.length===0)return;const e=Array.from(this.accordionItems);this.activeItemIndex=e.indexOf(t),e.forEach((s,i)=>{s instanceof lt&&(this.activeItemIndex===i?(s.expanded=!0,s.expandbutton.setAttribute("aria-disabled","true")):(s.expanded=!1,s.hasAttribute("disabled")||s.expandbutton.removeAttribute("aria-disabled")))})}}Gr([a({attribute:"expand-mode"})],ii.prototype,"expandmode",2),Gr([k],ii.prototype,"slottedAccordionItems",2);const vc=l`
|
|
31
31
|
${w("flex")}
|
|
32
32
|
|
|
33
|
-
:host{flex-direction:column;width:100%;contain:content}`;function
|
|
33
|
+
:host{flex-direction:column;width:100%;contain:content}`;function yc(){return f`<template><slot ${pt({property:"slottedAccordionItems",filter:Re()})}></slot></template>`}const kc=yc(),xc=ii.compose({name:`${p.prefix}-accordion`,template:kc,styles:vc});xc.define(p.registry);const es={submit:"submit",reset:"reset",button:"button"},wc={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Cc=Object.defineProperty,Sc=Object.getOwnPropertyDescriptor,mt=(o,t,e,s)=>{for(var i=s>1?void 0:s?Sc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Cc(t,e,i),i};class Mt extends x{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(t,e){if(e in wc){const s=this.$fastController.definition.attributeLookup[e]?.attribute;s&&this.handleProxyAttributeChange(s,this[e])}}clickHandler(t){if(this.href){const e=this.isMac?t.metaKey:t.ctrlKey;this.handleNavigation(e)}return!0}keydownHandler(t){if(this.href&&t.key===To){const e=this.isMac&&t.metaKey||t.ctrlKey;this.handleNavigation(e);return}return!0}handleNavigation(t){t?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(t,e){e?this.internalProxyAnchor.setAttribute(t,e):this.internalProxyAnchor.removeAttribute(t)}createProxyElement(){const t=this.internalProxyAnchor??document.createElement("a");return t.ariaHidden="true",t.tabIndex=-1,t}}mt([a],Mt.prototype,"download",2),mt([a],Mt.prototype,"href",2),mt([a],Mt.prototype,"hreflang",2),mt([a],Mt.prototype,"ping",2),mt([a],Mt.prototype,"referrerpolicy",2),mt([a],Mt.prototype,"rel",2),mt([a],Mt.prototype,"target",2),mt([a],Mt.prototype,"type",2);class Fe extends Mt{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}iconOnlyChanged(t,e){c(this.elementInternals,"icon",!!e)}}mt([a],Fe.prototype,"appearance",2),mt([a],Fe.prototype,"shape",2),mt([a],Fe.prototype,"size",2),mt([a({attribute:"icon-only",mode:"boolean"})],Fe.prototype,"iconOnly",2),jt(Fe,Dt);const Wr=l`
|
|
34
34
|
${w("inline-flex")}
|
|
35
35
|
|
|
36
|
-
:host{--icon-spacing:${
|
|
37
|
-
${
|
|
36
|
+
:host{--icon-spacing:${Yt};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${O};color:${z};border:${U} solid ${be};padding:0 ${ut};min-width:96px;border-radius:${T};font-size:${A};font-family:${$};font-weight:${N};line-height:${D};transition-duration:${Js};transition-property:background,border,color;transition-timing-function:${ei};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Hs};color:${nr};border-color:${Wo}}:host(:hover:active){background-color:${Ds};border-color:${Xs};color:${ia};outline-style:none}:host(:focus-visible){border-color:${nt};outline:${se} solid ${nt};box-shadow:${Zo},0 0 0 2px ${Ft}}@media screen and (prefers-reduced-motion:reduce){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}:is([slot='start'],::slotted([slot='start'])){margin-inline-end:var(--icon-spacing)}:is([slot='end'],::slotted([slot='end'])){margin-inline-start:var(--icon-spacing)}:host(${Be}){min-width:32px;max-width:32px}:host(${_}){--icon-spacing:${Kt};min-height:24px;min-width:64px;padding:0 ${Qt};border-radius:${_t};font-size:${q};line-height:${ot};font-weight:${M}}:host(${_}${Be}){min-width:24px;max-width:24px}:host(${S}){min-height:40px;border-radius:${Pr};padding:0 ${tc};font-size:${dt};line-height:${xt}}:host(${S}${Be}){min-width:40px;max-width:40px}:host(${S}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${We},${We}:focus-visible)){border-radius:${ct}}:host(:is(${Xe},${Xe}:focus-visible)){border-radius:${Qs}}:host(${it}){background-color:${Ws};color:${Ut};border-color:transparent}:host(${it}:hover){background-color:${cr}}:host(${it}:is(:hover,:hover:active)){border-color:transparent;color:${Ut}}:host(${it}:hover:active){background-color:${dr}}:host(${it}:focus-visible){border-color:${Ut};box-shadow:${Lr},0 0 0 2px ${Ft}}:host(${R}){background-color:${kt}}:host(${R}:hover){background-color:${Rs}}:host(${R}:hover:active){background-color:${qs}}:host(${C}){background-color:${Sa};color:${Xt};border-color:transparent}:host(${C}:hover){background-color:${js};color:${Do};border-color:transparent}:host(${C}:hover:active){background-color:${Go};color:${Vo};border-color:transparent}:host(${C}:hover) ::slotted(svg){fill:${jo}}:host(${C}:hover:active) ::slotted(svg){fill:${Ro}}:host(${X}){background-color:${kt};color:${Xt}}:host(${X}:hover){background-color:${Rs};color:${jo}}:host(${X}:hover:active){background-color:${qs};color:${Ro}}:host(:is(${X},${X}:is(:hover,:active))){border-color:transparent}`,os=l`
|
|
37
|
+
${Wr}
|
|
38
38
|
|
|
39
|
-
:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${
|
|
40
|
-
:host{background:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight}`)),
|
|
41
|
-
${
|
|
39
|
+
:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${ze};border-color:${At};color:${H};cursor:not-allowed}:host(${it}:is(:disabled,[disabled-focusable])),:host(${it}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${R}:is(:disabled,[disabled-focusable])),:host(${R}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${kt}}:host(${C}:is(:disabled,[disabled-focusable])),:host(${C}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${kt};border-color:transparent}:host(${X}:is(:disabled,[disabled-focusable])),:host(${X}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${kt}}`.withBehaviors(et(l`
|
|
40
|
+
:host{background:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight}`)),Ic=l`
|
|
41
|
+
${Wr}
|
|
42
42
|
|
|
43
43
|
::slotted(a){position:absolute;inset:0}`.withBehaviors(et(l`
|
|
44
|
-
:host{border-color:LinkText;color:LinkText}`));function
|
|
45
|
-
${w("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${$};font-weight:${
|
|
44
|
+
:host{border-color:LinkText;color:LinkText}`));function Pc(o={}){return f`<template tabindex="0" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}">${Vt(o)}<span class="content" part="content"><slot></slot></span>${ee(o)}</template>`}const Bc=Pc(),zc=Fe.compose({name:`${p.prefix}-anchor-button`,template:Bc,styles:Ic});zc.define(p.registry);const Tc=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Ac=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Fc=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,_c=/\s+/g,Oc=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function Mc(o,t,e){let s="";const i=o.split(" ");return i.length!==0&&(s+=i[0].charAt(0).toUpperCase()),e||(i.length===2?s+=i[1].charAt(0).toUpperCase():i.length===3&&(s+=i[2].charAt(0).toUpperCase())),t&&s.length>1?s.charAt(1)+s.charAt(0):s}function Nc(o){return o=o.replace(Tc,""),o=o.replace(Ac,""),o=o.replace(_c," "),o=o.trim(),o}function Ec(o,t,e){return!o||(o=Nc(o),Oc.test(o)||!e?.allowPhoneInitials&&Fc.test(o))?"":Mc(o,t,e?.firstInitialOnly)}const Xr={darkRed:"dark-red",cranberry:"cranberry",red:"red",pumpkin:"pumpkin",peach:"peach",marigold:"marigold",gold:"gold",brass:"brass",brown:"brown",forest:"forest",seafoam:"seafoam",darkGreen:"dark-green",lightTeal:"light-teal",teal:"teal",steel:"steel",blue:"blue",royalBlue:"royal-blue",cornflower:"cornflower",navy:"navy",lavender:"lavender",purple:"purple",grape:"grape",lilac:"lilac",pink:"pink",magenta:"magenta",plum:"plum",beige:"beige",mink:"mink",platinum:"platinum",anchor:"anchor"},Ur={neutral:"neutral",brand:"brand",colorful:"colorful",...Xr};var Lc=Object.defineProperty,Hc=Object.getOwnPropertyDescriptor,re=(o,t,e,s)=>{for(var i=s>1?void 0:s?Hc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Lc(t,e,i),i};const Nt=class pi extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(t,e){switch(e){case"color":case"colorId":this.generateColor();break}}generateColor(){const t=this.color===Ur.colorful,e=this.currentColor;c(this.elementInternals,`${e}`,!1),this.currentColor=t&&this.colorId?this.colorId:t?pi.colors[Vc(this.name??"")%pi.colors.length]:this.color??Ur.neutral,c(this.elementInternals,`${this.currentColor}`,!0)}generateInitials(){if(!this.name&&!this.initials)return;const t=this.size??32;return this.initials??Ec(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:t<=16})}};Nt.colors=Object.values(Xr),re([a],Nt.prototype,"name",2),re([a],Nt.prototype,"initials",2),re([a({converter:st})],Nt.prototype,"size",2),re([a],Nt.prototype,"shape",2),re([a],Nt.prototype,"active",2),re([a],Nt.prototype,"appearance",2),re([a],Nt.prototype,"color",2),re([a({attribute:"color-id"})],Nt.prototype,"colorId",2);let Dc=Nt;const Vc=o=>{let t=0;for(let e=o.length-1;e>=0;e--){const s=o.charCodeAt(e),i=e%8;t^=(s<<i)+(s>>8-i)}return t},ne={fastOutSlowInMax:qr,fastOutSlowInMid:lo,fastOutSlowInMin:cc,slowOutFastInMax:ac,slowOutFastInMid:ao,slowOutFastInMin:lc,fastEase:dc,normalEase:ei,nullEasing:oi},jc=l`
|
|
45
|
+
${w("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${$};font-weight:${N};font-size:${A};border-radius:${ct};color:${rt};background-color:${qo};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${ct}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${U}) ${O}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${se}) ${O}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${so};font-weight:${M}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${q}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${dt}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${Ae}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${Uo}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${T}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${_t}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Pr}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Br}}:host(:is([state--brand],:state(brand))){color:${ar};background-color:${hr}}:host(:is([state--dark-red],:state(dark-red))){color:${dl};background-color:${cl}}:host(:is([state--cranberry],:state(cranberry))){color:${nl};background-color:${rl}}:host(:is([state--red],:state(red))){color:${Ma};background-color:${_a}}:host(:is([state--pumpkin],:state(pumpkin))){color:${Ll};background-color:${El}}:host(:is([state--peach],:state(peach))){color:${Tl};background-color:${zl}}:host(:is([state--marigold],:state(marigold))){color:${Wa};background-color:${Ir}}:host(:is([state--gold],:state(gold))){color:${gl};background-color:${pl}}:host(:is([state--brass],:state(brass))){color:${tl};background-color:${Ja}}:host(:is([state--brown],:state(brown))){color:${ol};background-color:${el}}:host(:is([state--forest],:state(forest))){color:${ul};background-color:${hl}}:host(:is([state--seafoam],:state(seafoam))){color:${ql};background-color:${Rl}}:host(:is([state--dark-green],:state(dark-green))){color:${ll};background-color:${al}}:host(:is([state--light-teal],:state(light-teal))){color:${yl};background-color:${vl}}:host(:is([state--teal],:state(teal))){color:${Ul};background-color:${Xl}}:host(:is([state--steel],:state(steel))){color:${Wl};background-color:${Gl}}:host(:is([state--blue],:state(blue))){color:${Za};background-color:${Qa}}:host(:is([state--royal-blue],:state(royal-blue))){color:${jl};background-color:${Vl}}:host(:is([state--cornflower],:state(cornflower))){color:${il};background-color:${sl}}:host(:is([state--navy],:state(navy))){color:${Bl};background-color:${Pl}}:host(:is([state--lavender],:state(lavender))){color:${$l};background-color:${ml}}:host(:is([state--purple],:state(purple))){color:${Dl};background-color:${Hl}}:host(:is([state--grape],:state(grape))){color:${bl};background-color:${fl}}:host(:is([state--lilac],:state(lilac))){color:${xl};background-color:${kl}}:host(:is([state--pink],:state(pink))){color:${Fl};background-color:${Al}}:host(:is([state--magenta],:state(magenta))){color:${Cl};background-color:${wl}}:host(:is([state--plum],:state(plum))){color:${Nl};background-color:${Ml}}:host(:is([state--beige],:state(beige))){color:${Ya};background-color:${Ka}}:host(:is([state--mink],:state(mink))){color:${Il};background-color:${Sl}}:host(:is([state--platinum],:state(platinum))){color:${Ol};background-color:${_l}}:host(:is([state--anchor],:state(anchor))){color:${Ua};background-color:${Xa}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${ts},${Js};transition-delay:${ne.fastEase},${ne.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${ts}),${Rr};transition-delay:${ne.fastEase}),${ne.nullEasing})}:host([active])::before{box-shadow:${Zl};border-style:solid;border-color:${hr}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${se});border-width:${se}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ie});border-width:${ie}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Vr});border-width:${Vr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Zo}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Hr}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${Jl}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${ts},${Js};transition-delay:${ne.fastOutSlowInMin},${ne.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${ts},${Rr};transition-delay:${ne.fastOutSlowInMin},${ne.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`,Rc=f`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function qc(){return f`<slot>${o=>o.name||o.initials?o.generateInitials():Rc}</slot><slot name="badge"></slot>`}const Gc=qc(),Wc=Dc.compose({name:`${p.prefix}-avatar`,template:Gc,styles:jc});Wc.define(p.registry);const Xc={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Uc={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var Kc=Object.defineProperty,Yc=Object.getOwnPropertyDescriptor,ss=(o,t,e,s)=>{for(var i=s>1?void 0:s?Yc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Kc(t,e,i),i};class _e extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.appearance=Xc.filled,this.color=Uc.brand}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}colorChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}ss([a],_e.prototype,"appearance",2),ss([a],_e.prototype,"color",2),ss([a],_e.prototype,"shape",2),ss([a],_e.prototype,"size",2),jt(_e,Dt);const Kr=l.partial`
|
|
46
46
|
${w("inline-flex")} :host {
|
|
47
47
|
position: relative;
|
|
48
48
|
box-sizing: border-box;
|
|
49
49
|
align-items: center;
|
|
50
50
|
justify-content: center;
|
|
51
51
|
font-family: ${$};
|
|
52
|
-
font-weight: ${
|
|
53
|
-
font-size: ${
|
|
52
|
+
font-weight: ${N};
|
|
53
|
+
font-size: ${q};
|
|
54
54
|
line-height: ${ot};
|
|
55
55
|
min-width: 20px;
|
|
56
56
|
height: 20px;
|
|
57
|
-
padding-inline: calc(${
|
|
57
|
+
padding-inline: calc(${Kt} + ${ht});
|
|
58
58
|
border-radius: ${ct};
|
|
59
59
|
border-color: ${nt};
|
|
60
|
-
background-color: ${
|
|
61
|
-
color: ${
|
|
60
|
+
background-color: ${Ws};
|
|
61
|
+
color: ${Ut};
|
|
62
62
|
contain: content;
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -66,7 +66,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
66
66
|
font-size: 12px;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
:host(:not(${
|
|
69
|
+
:host(:not(${Rt}))::after {
|
|
70
70
|
position: absolute;
|
|
71
71
|
content: '';
|
|
72
72
|
top: 0;
|
|
@@ -74,12 +74,12 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
74
74
|
bottom: 0;
|
|
75
75
|
right: 0;
|
|
76
76
|
border-style: solid;
|
|
77
|
-
border-width: ${
|
|
77
|
+
border-width: ${U};
|
|
78
78
|
border-color: inherit;
|
|
79
79
|
border-radius: inherit;
|
|
80
80
|
}
|
|
81
|
-
`,
|
|
82
|
-
:host(${
|
|
81
|
+
`,Yr=l.partial`
|
|
82
|
+
:host(${Ue}) {
|
|
83
83
|
width: 6px;
|
|
84
84
|
height: 6px;
|
|
85
85
|
font-size: 4px;
|
|
@@ -87,10 +87,10 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
87
87
|
padding-inline: 0;
|
|
88
88
|
min-width: unset;
|
|
89
89
|
}
|
|
90
|
-
:host(${
|
|
90
|
+
:host(${Ue}) ::slotted(svg) {
|
|
91
91
|
font-size: 6px;
|
|
92
92
|
}
|
|
93
|
-
:host(${
|
|
93
|
+
:host(${Ke}) {
|
|
94
94
|
width: 10px;
|
|
95
95
|
height: 10px;
|
|
96
96
|
font-size: 6px;
|
|
@@ -98,289 +98,289 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
98
98
|
padding-inline: 0;
|
|
99
99
|
min-width: unset;
|
|
100
100
|
}
|
|
101
|
-
:host(${
|
|
101
|
+
:host(${Ke}) ::slotted(svg) {
|
|
102
102
|
font-size: 10px;
|
|
103
103
|
}
|
|
104
|
-
:host(${
|
|
104
|
+
:host(${_}) {
|
|
105
105
|
min-width: 16px;
|
|
106
106
|
height: 16px;
|
|
107
|
-
font-size: ${
|
|
108
|
-
line-height: ${
|
|
107
|
+
font-size: ${so};
|
|
108
|
+
line-height: ${Yo};
|
|
109
109
|
padding-inline: calc(${ht} + ${ht});
|
|
110
110
|
}
|
|
111
|
-
:host(${
|
|
111
|
+
:host(${_}) ::slotted(svg) {
|
|
112
112
|
font-size: 12px;
|
|
113
113
|
}
|
|
114
114
|
:host(${S}) {
|
|
115
115
|
min-width: 24px;
|
|
116
116
|
height: 24px;
|
|
117
|
-
font-size: ${
|
|
117
|
+
font-size: ${q};
|
|
118
118
|
line-height: ${ot};
|
|
119
|
-
padding-inline: calc(${
|
|
119
|
+
padding-inline: calc(${Kt} + ${ht});
|
|
120
120
|
}
|
|
121
121
|
:host(${S}) ::slotted(svg) {
|
|
122
122
|
font-size: 16px;
|
|
123
123
|
}
|
|
124
|
-
:host(${
|
|
124
|
+
:host(${Oo}) {
|
|
125
125
|
min-width: 32px;
|
|
126
126
|
height: 32px;
|
|
127
|
-
font-size: ${
|
|
127
|
+
font-size: ${q};
|
|
128
128
|
line-height: ${ot};
|
|
129
|
-
padding-inline: calc(${
|
|
129
|
+
padding-inline: calc(${Yt} + ${ht});
|
|
130
130
|
}
|
|
131
|
-
:host(${
|
|
131
|
+
:host(${Oo}) ::slotted(svg) {
|
|
132
132
|
font-size: 20px;
|
|
133
133
|
}
|
|
134
|
-
`,
|
|
135
|
-
:host(${Oo}) {
|
|
136
|
-
background-color: ${gr};
|
|
137
|
-
color: ${Kt};
|
|
138
|
-
}
|
|
139
|
-
|
|
134
|
+
`,Qr=l.partial`
|
|
140
135
|
:host(${Mo}) {
|
|
141
|
-
background-color: ${
|
|
142
|
-
color: ${
|
|
136
|
+
background-color: ${br};
|
|
137
|
+
color: ${Ut};
|
|
143
138
|
}
|
|
144
139
|
|
|
145
140
|
:host(${No}) {
|
|
146
|
-
background-color: ${
|
|
141
|
+
background-color: ${z};
|
|
142
|
+
color: ${O};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
:host(${Eo}) {
|
|
146
|
+
background-color: ${wa};
|
|
147
147
|
color: ${rt};
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
:host(${
|
|
151
|
-
background-color: ${
|
|
152
|
-
color: ${
|
|
150
|
+
:host(${Ho}) {
|
|
151
|
+
background-color: ${wr};
|
|
152
|
+
color: ${Ut};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
:host(${C}) {
|
|
156
|
-
background-color: ${
|
|
157
|
-
color: ${
|
|
156
|
+
background-color: ${O};
|
|
157
|
+
color: ${z};
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
:host(${
|
|
161
|
-
background-color: ${
|
|
162
|
-
color: ${
|
|
160
|
+
:host(${ue}) {
|
|
161
|
+
background-color: ${kr};
|
|
162
|
+
color: ${Ut};
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
:host(${
|
|
166
|
-
background-color: ${
|
|
167
|
-
color: ${
|
|
165
|
+
:host(${pe}) {
|
|
166
|
+
background-color: ${Ra};
|
|
167
|
+
color: ${ka};
|
|
168
168
|
}
|
|
169
|
-
`,
|
|
170
|
-
:host(${
|
|
171
|
-
color: ${
|
|
169
|
+
`,Zr=l.partial`
|
|
170
|
+
:host(${Rt}) {
|
|
171
|
+
color: ${Ls};
|
|
172
172
|
background-color: initial;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
:host(${
|
|
176
|
-
color: ${
|
|
175
|
+
:host(${Rt}${Mo}) {
|
|
176
|
+
color: ${vr};
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
:host(${
|
|
180
|
-
color: ${
|
|
179
|
+
:host(${Rt}${No}) {
|
|
180
|
+
color: ${z};
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
:host(${
|
|
183
|
+
:host(${Rt}${Eo}) {
|
|
184
184
|
color: ${rt};
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
:host(${
|
|
188
|
-
color: ${
|
|
187
|
+
:host(${Rt}${Ho}) {
|
|
188
|
+
color: ${Sr};
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
:host(${
|
|
192
|
-
color: ${
|
|
191
|
+
:host(${Rt}${C}) {
|
|
192
|
+
color: ${Qe};
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
:host(${
|
|
196
|
-
color: ${
|
|
195
|
+
:host(${Rt}${ue}) {
|
|
196
|
+
color: ${Da};
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
:host(${
|
|
200
|
-
color: ${
|
|
199
|
+
:host(${Rt}${pe}) {
|
|
200
|
+
color: ${Ys};
|
|
201
201
|
}
|
|
202
|
-
`,
|
|
203
|
-
:host(${
|
|
202
|
+
`,Qc=l.partial`
|
|
203
|
+
:host(${R}) {
|
|
204
204
|
border-color: currentColor;
|
|
205
|
-
color: ${
|
|
205
|
+
color: ${Ls};
|
|
206
206
|
background-color: initial;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
:host(${
|
|
210
|
-
color: ${
|
|
209
|
+
:host(${R}${Mo}) {
|
|
210
|
+
color: ${vr};
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
:host(${
|
|
213
|
+
:host(${R}${No}) {
|
|
214
214
|
color: ${rt};
|
|
215
|
-
border-color: ${
|
|
215
|
+
border-color: ${fe};
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
:host(${
|
|
218
|
+
:host(${R}${Eo}) {
|
|
219
219
|
color: ${rt};
|
|
220
|
-
border-color: ${
|
|
220
|
+
border-color: ${oo};
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
:host(${
|
|
224
|
-
color: ${
|
|
223
|
+
:host(${R}${Ho}) {
|
|
224
|
+
color: ${Sr};
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
:host(${
|
|
228
|
-
color: ${
|
|
227
|
+
:host(${R}${C}) {
|
|
228
|
+
color: ${ar};
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
:host(${
|
|
232
|
-
color: ${
|
|
231
|
+
:host(${R}${ue}) {
|
|
232
|
+
color: ${Ha};
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
:host(${
|
|
236
|
-
color: ${
|
|
235
|
+
:host(${R}${pe}) {
|
|
236
|
+
color: ${Ys};
|
|
237
237
|
}
|
|
238
|
-
`,
|
|
239
|
-
:host(${
|
|
240
|
-
background-color: ${
|
|
241
|
-
color: ${
|
|
242
|
-
border-color: ${
|
|
238
|
+
`,Zc=l.partial`
|
|
239
|
+
:host(${oe}) {
|
|
240
|
+
background-color: ${za};
|
|
241
|
+
color: ${ya};
|
|
242
|
+
border-color: ${Us};
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
:host(${
|
|
246
|
-
background-color: ${
|
|
247
|
-
color: ${
|
|
248
|
-
border-color: ${
|
|
245
|
+
:host(${oe}${Mo}) {
|
|
246
|
+
background-color: ${fr};
|
|
247
|
+
color: ${$r};
|
|
248
|
+
border-color: ${mr};
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
:host(${
|
|
251
|
+
:host(${oe}${No}) {
|
|
252
252
|
background-color: ${rt};
|
|
253
|
-
color: ${
|
|
253
|
+
color: ${O};
|
|
254
254
|
border-color: ${nt};
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
:host(${
|
|
258
|
-
background-color: ${
|
|
257
|
+
:host(${oe}${Eo}) {
|
|
258
|
+
background-color: ${xa};
|
|
259
259
|
color: ${rt};
|
|
260
|
-
border-color: ${
|
|
260
|
+
border-color: ${oo};
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
:host(${
|
|
264
|
-
background-color: ${
|
|
265
|
-
color: ${
|
|
266
|
-
border-color: ${
|
|
263
|
+
:host(${oe}${Ho}) {
|
|
264
|
+
background-color: ${xr};
|
|
265
|
+
color: ${Va};
|
|
266
|
+
border-color: ${Cr};
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
:host(${
|
|
270
|
-
background-color: ${
|
|
269
|
+
:host(${oe}${C}) {
|
|
270
|
+
background-color: ${O};
|
|
271
271
|
color: ${rt};
|
|
272
|
-
border-color: ${
|
|
272
|
+
border-color: ${oo};
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
:host(${
|
|
276
|
-
background-color: ${
|
|
277
|
-
color: ${
|
|
278
|
-
border-color: ${
|
|
275
|
+
:host(${oe}${ue}) {
|
|
276
|
+
background-color: ${yr};
|
|
277
|
+
color: ${La};
|
|
278
|
+
border-color: ${Ea};
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
:host(${
|
|
282
|
-
background-color: ${
|
|
283
|
-
color: ${
|
|
284
|
-
border-color: ${
|
|
281
|
+
:host(${oe}${pe}) {
|
|
282
|
+
background-color: ${ja};
|
|
283
|
+
color: ${Ys};
|
|
284
|
+
border-color: ${qa};
|
|
285
285
|
}
|
|
286
286
|
`;l.partial`
|
|
287
287
|
font-family: ${$};
|
|
288
|
-
font-size: ${
|
|
289
|
-
line-height: ${
|
|
290
|
-
font-weight: ${
|
|
288
|
+
font-size: ${A};
|
|
289
|
+
line-height: ${D};
|
|
290
|
+
font-weight: ${M};
|
|
291
291
|
`,l.partial`
|
|
292
292
|
font-family: ${$};
|
|
293
|
-
font-size: ${
|
|
294
|
-
line-height: ${
|
|
295
|
-
font-weight: ${
|
|
293
|
+
font-size: ${A};
|
|
294
|
+
line-height: ${D};
|
|
295
|
+
font-weight: ${N};
|
|
296
296
|
`,l.partial`
|
|
297
297
|
font-family: ${$};
|
|
298
|
-
font-size: ${
|
|
299
|
-
line-height: ${
|
|
300
|
-
font-weight: ${
|
|
298
|
+
font-size: ${A};
|
|
299
|
+
line-height: ${D};
|
|
300
|
+
font-weight: ${Ko};
|
|
301
301
|
`,l.partial`
|
|
302
302
|
font-family: ${$};
|
|
303
303
|
font-size: ${dt};
|
|
304
304
|
line-height: ${xt};
|
|
305
|
-
font-weight: ${
|
|
305
|
+
font-weight: ${M};
|
|
306
306
|
`,l.partial`
|
|
307
307
|
font-family: ${$};
|
|
308
|
-
font-size: ${
|
|
308
|
+
font-size: ${q};
|
|
309
309
|
line-height: ${ot};
|
|
310
|
-
font-weight: ${
|
|
310
|
+
font-weight: ${M};
|
|
311
311
|
`,l.partial`
|
|
312
312
|
font-family: ${$};
|
|
313
|
-
font-size: ${
|
|
313
|
+
font-size: ${q};
|
|
314
314
|
line-height: ${ot};
|
|
315
|
-
font-weight: ${
|
|
315
|
+
font-weight: ${N};
|
|
316
316
|
`,l.partial`
|
|
317
317
|
font-family: ${$};
|
|
318
|
-
font-size: ${
|
|
318
|
+
font-size: ${q};
|
|
319
319
|
line-height: ${ot};
|
|
320
|
-
font-weight: ${
|
|
320
|
+
font-weight: ${Ko};
|
|
321
321
|
`,l.partial`
|
|
322
322
|
font-family: ${$};
|
|
323
|
-
font-size: ${
|
|
324
|
-
line-height: ${
|
|
325
|
-
font-weight: ${
|
|
323
|
+
font-size: ${so};
|
|
324
|
+
line-height: ${Yo};
|
|
325
|
+
font-weight: ${M};
|
|
326
326
|
`,l.partial`
|
|
327
327
|
font-family: ${$};
|
|
328
|
-
font-size: ${
|
|
329
|
-
line-height: ${Ko};
|
|
330
|
-
font-weight: ${E};
|
|
331
|
-
`;const Zc=l.partial`
|
|
332
|
-
font-family: ${$};
|
|
333
|
-
font-size: ${Te};
|
|
328
|
+
font-size: ${so};
|
|
334
329
|
line-height: ${Yo};
|
|
335
|
-
font-weight: ${
|
|
330
|
+
font-weight: ${N};
|
|
331
|
+
`;const Jc=l.partial`
|
|
332
|
+
font-family: ${$};
|
|
333
|
+
font-size: ${Ae};
|
|
334
|
+
line-height: ${Qo};
|
|
335
|
+
font-weight: ${N};
|
|
336
336
|
`;l.partial`
|
|
337
337
|
font-family: ${$};
|
|
338
338
|
font-size: ${dt};
|
|
339
339
|
line-height: ${xt};
|
|
340
|
-
font-weight: ${
|
|
340
|
+
font-weight: ${N};
|
|
341
341
|
`,l.partial`
|
|
342
342
|
font-family: ${$};
|
|
343
343
|
font-size: ${dt};
|
|
344
344
|
line-height: ${xt};
|
|
345
|
-
font-weight: ${
|
|
345
|
+
font-weight: ${Ko};
|
|
346
346
|
`,l.partial`
|
|
347
347
|
font-family: ${$};
|
|
348
|
-
font-size: ${
|
|
349
|
-
line-height: ${
|
|
350
|
-
font-weight: ${
|
|
348
|
+
font-size: ${Tr};
|
|
349
|
+
line-height: ${Mr};
|
|
350
|
+
font-weight: ${N};
|
|
351
351
|
`,l.partial`
|
|
352
352
|
font-family: ${$};
|
|
353
|
-
font-size: ${
|
|
354
|
-
line-height: ${
|
|
355
|
-
font-weight: ${
|
|
353
|
+
font-size: ${zr};
|
|
354
|
+
line-height: ${Or};
|
|
355
|
+
font-weight: ${N};
|
|
356
356
|
`,l.partial`
|
|
357
357
|
font-family: ${$};
|
|
358
|
-
font-size: ${
|
|
359
|
-
line-height: ${
|
|
360
|
-
font-weight: ${
|
|
358
|
+
font-size: ${Uo};
|
|
359
|
+
line-height: ${_r};
|
|
360
|
+
font-weight: ${N};
|
|
361
361
|
`,l.partial`
|
|
362
362
|
font-family: ${$};
|
|
363
|
-
font-size: ${
|
|
364
|
-
line-height: ${
|
|
365
|
-
font-weight: ${
|
|
363
|
+
font-size: ${Ar};
|
|
364
|
+
line-height: ${Nr};
|
|
365
|
+
font-weight: ${N};
|
|
366
366
|
`,l.partial`
|
|
367
367
|
font-family: ${$};
|
|
368
|
-
font-size: ${
|
|
369
|
-
line-height: ${
|
|
370
|
-
font-weight: ${
|
|
371
|
-
`;const
|
|
372
|
-
:host(${
|
|
373
|
-
${Yr}
|
|
368
|
+
font-size: ${Fr};
|
|
369
|
+
line-height: ${Er};
|
|
370
|
+
font-weight: ${N};
|
|
371
|
+
`;const td=l`
|
|
372
|
+
:host(${Xe}){border-radius:${Qs}}:host(${qt}){border-radius:${T}}:host(${qt}${Ue}),:host(${qt}${Ke}),:host(${qt}${_}){border-radius:${_t}}${Yr}
|
|
374
373
|
${Qr}
|
|
375
|
-
${
|
|
374
|
+
${Zr}
|
|
376
375
|
${Qc}
|
|
377
|
-
${
|
|
376
|
+
${Zc}
|
|
377
|
+
${Kr}
|
|
378
378
|
`.withBehaviors(et(l`
|
|
379
|
-
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function
|
|
379
|
+
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function Jr(o={}){return f` ${Vt(o)}<slot>${ft(o.defaultContent)}</slot>${ee(o)} `}const ed=Jr(),od=_e.compose({name:`${p.prefix}-badge`,template:ed,styles:td});od.define(p.registry);var sd=Object.defineProperty,id=Object.getOwnPropertyDescriptor,G=(o,t,e,s)=>{for(var i=s>1?void 0:s?id(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&sd(t,e,i),i};class J extends x{constructor(){super(),this.disabledFocusable=!1,this.tabIndex=0,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledFocusableChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!e}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(t,e){e!==es.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const t=this.formSubmissionFallbackControlSlot??document.createElement("slot");t.setAttribute("name","internal"),this.shadowRoot?.appendChild(t),this.formSubmissionFallbackControlSlot=t;const e=this.formSubmissionFallbackControl??document.createElement("button");e.style.display="none",e.setAttribute("type","submit"),e.setAttribute("slot","internal"),this.formNoValidate&&e.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&e.setAttribute("form",this.elementInternals.form.id),this.name&&e.setAttribute("name",this.name),this.value&&e.setAttribute("value",this.value),this.formAction&&e.setAttribute("formaction",this.formAction??""),this.formEnctype&&e.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&e.setAttribute("formmethod",this.formMethod??""),this.formTarget&&e.setAttribute("formtarget",this.formTarget??""),this.append(e),this.formSubmissionFallbackControl=e}formDisabledCallback(t){this.disabled=t}keypressHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}if(t.key===To||t.key===_s){this.click();return}return!0}press(){switch(this.type){case es.reset:{this.resetForm();break}case es.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==es.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.form&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}J.formAssociated=!0,G([a({mode:"boolean"})],J.prototype,"autofocus",2),G([k],J.prototype,"defaultSlottedContent",2),G([a({mode:"boolean"})],J.prototype,"disabled",2),G([a({attribute:"disabled-focusable",mode:"boolean"})],J.prototype,"disabledFocusable",2),G([a({attribute:"tabindex",mode:"fromView",converter:st})],J.prototype,"tabIndex",2),G([a({attribute:"formaction"})],J.prototype,"formAction",2),G([a({attribute:"form"})],J.prototype,"formAttribute",2),G([a({attribute:"formenctype"})],J.prototype,"formEnctype",2),G([a({attribute:"formmethod"})],J.prototype,"formMethod",2),G([a({attribute:"formnovalidate",mode:"boolean"})],J.prototype,"formNoValidate",2),G([a({attribute:"formtarget"})],J.prototype,"formTarget",2),G([a],J.prototype,"name",2),G([a],J.prototype,"type",2),G([a],J.prototype,"value",2);class Zt extends J{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}iconOnlyChanged(t,e){c(this.elementInternals,"icon",e)}}G([a],Zt.prototype,"appearance",2),G([a],Zt.prototype,"shape",2),G([a],Zt.prototype,"size",2),G([a({attribute:"icon-only",mode:"boolean"})],Zt.prototype,"iconOnly",2),jt(Zt,Dt);function ri(o={}){return f`<template tabindex="${t=>t.disabled?null:t.tabIndex??0}" @click="${(t,e)=>t.clickHandler(e.event)}" @keypress="${(t,e)=>t.keypressHandler(e.event)}">${Vt(o)}<span class="content" part="content"><slot ${pt("defaultSlottedContent")}></slot></span>${ee(o)}</template>`}const rd=ri(),nd=Zt.compose({name:`${p.prefix}-button`,template:rd,styles:os});nd.define(p.registry);var ad=Object.defineProperty,ld=Object.getOwnPropertyDescriptor,wt=(o,t,e,s)=>{for(var i=s>1?void 0:s?ld(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&ad(t,e,i),i};class $t extends x{constructor(){super(...arguments),this.initialValue="on",this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(t){this._checked=t,this.setFormValue(t?this.value:null),this.setValidity(),this.setAriaChecked(),c(this.elementInternals,"checked",t),m.notify(this,"checked")}disabledChanged(t,e){this.elementInternals.ariaDisabled=this.disabled?"true":"false",c(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(t,e){this.disabled=!!e}initialCheckedChanged(t,e){this.dirtyChecked||(this.checked=!!e)}initialValueChanged(t,e){this._value=e}requiredChanged(t,e){this.$fastController.isConnected&&(this.setValidity(),this.elementInternals.ariaRequired=this.required?"true":"false")}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const t=document.createElement("input");t.type="checkbox",t.required=!0,t.checked=!1,this._validationFallbackMessage=t.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){if(this.disabled)return;this.dirtyChecked=!0;const e=this.checked;return this.toggleChecked(),e!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.setAriaChecked(),this.setValidity()}inputHandler(t){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(t){if(t.key!==" ")return!0}keyupHandler(t){if(t.key!==" ")return!0;this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(t=this.checked){this.elementInternals.ariaChecked=t?"true":"false"}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.setValidity()}setValidity(t,e,s){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...t},e??this.validationMessage,s)}}toggleChecked(t=!this.checked){this.checked=t}}$t.formAssociated=!0,wt([a({mode:"boolean"})],$t.prototype,"autofocus",2),wt([k],$t.prototype,"disabled",2),wt([a({attribute:"disabled",mode:"boolean"})],$t.prototype,"disabledAttribute",2),wt([a({attribute:"form"})],$t.prototype,"formAttribute",2),wt([a({attribute:"checked",mode:"boolean"})],$t.prototype,"initialChecked",2),wt([a({attribute:"value",mode:"fromView"})],$t.prototype,"initialValue",2),wt([a],$t.prototype,"name",2),wt([a({mode:"boolean"})],$t.prototype,"required",2);class is extends $t{indeterminateChanged(t,e){this.setAriaChecked(),c(this.elementInternals,"indeterminate",e)}shapeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}sizeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(t=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(t)}toggleChecked(t=!this.checked){this.indeterminate=!1,super.toggleChecked(t)}}wt([k],is.prototype,"indeterminate",2),wt([a],is.prototype,"shape",2),wt([a],is.prototype,"size",2);const me=l.partial`:is([state--indeterminate], :state(indeterminate))`,cd=l`
|
|
380
380
|
${w("inline-flex")}
|
|
381
381
|
|
|
382
|
-
:host{--size:16px;background-color:${
|
|
383
|
-
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${v}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${v}),:host(${
|
|
382
|
+
:host{--size:16px;background-color:${O};border-radius:${_t};border:${U} solid ${fe};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${to}}:host(:active){border-color:${eo}}:host(${v}:hover){background-color:${Ze};border-color:${Fa}}:host(${v}:active){background-color:${Je};border-color:${pr}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${se} solid ${nt};border-radius:${T}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ft}}.indeterminate-indicator,.checked-indicator{color:${Qe};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${v})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${v}),:host(${me}){border-color:${Xo}}:host(${v}),:host(${me}) .indeterminate-indicator{background-color:${Te}}:host(${me}) .indeterminate-indicator{border-radius:${_t};position:absolute;width:calc(var(--size) / 2);inset:0}:host(${S}){--size:20px}:host(${S}) ::slotted([slot='checked-indicator']),:host(${S}) .checked-indicator{width:16px}:host(${We}),:host(${We}) .indeterminate-indicator{border-radius:${ct}}:host([disabled]),:host([disabled]${v}){background-color:${ze};border-color:${At}}:host([disabled]){cursor:unset}:host([disabled]${me}) .indeterminate-indicator{background-color:${At}}:host([disabled]${v}) .checked-indicator{color:${At}}`.withBehaviors(et(l`
|
|
383
|
+
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${v}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${v}),:host(${me}) .indeterminate-indicator{background-color:FieldText}:host(${v}:not([disabled]):hover),:host(${me}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${me}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${v}) .checked-indicator{color:GrayText}`)),dd=f.partial(`
|
|
384
384
|
<svg
|
|
385
385
|
fill="currentColor"
|
|
386
386
|
aria-hidden="true"
|
|
@@ -391,21 +391,21 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
391
391
|
xmlns="http://www.w3.org/2000/svg">
|
|
392
392
|
<path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill="currentColor"></path>
|
|
393
393
|
</svg>
|
|
394
|
-
`),
|
|
394
|
+
`),hd=f.partial(`
|
|
395
395
|
<span class="indeterminate-indicator"></span>
|
|
396
|
-
`);function
|
|
397
|
-
${
|
|
396
|
+
`);function ud(o={}){return f`<template tabindex="${t=>t.disabled?void 0:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="checked-indicator">${ft(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${ft(o.indeterminateIndicator)}</slot></template>`}const pd=ud({checkedIndicator:dd,indeterminateIndicator:hd}),gd=is.compose({name:`${p.prefix}-checkbox`,template:pd,styles:cd});gd.define(p.registry);class fd extends Zt{}const bd=l`
|
|
397
|
+
${os}
|
|
398
398
|
|
|
399
|
-
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${
|
|
400
|
-
::slotted([slot='description']){color:${
|
|
401
|
-
:host(${
|
|
402
|
-
${Yr}
|
|
399
|
+
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${A};line-height:${D}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Xt};line-height:100%;font-size:${q};font-weight:${M}}::slotted(svg),:host(${S}) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Do}}:host(:active) ::slotted([slot='description']){color:${Vo}}:host(:is(${it},${it}:hover,${it}:active)) ::slotted([slot='description']){color:${Ut}}:host(:is(${C},${C}:hover,${C}:active)) ::slotted([slot='description']),:host(${X}) ::slotted([slot='description']){color:${Xt}}:host(${X}:hover) ::slotted([slot='description']){color:${jo}}:host(${X}:active) ::slotted([slot='description']){color:${Ro}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
|
|
400
|
+
::slotted([slot='description']){color:${H}}:host(${_}){padding:8px;padding-bottom:10px}:host(${Be}){min-width:52px;max-width:52px;padding:${Yt}}:host(${Be}${_}){min-width:48px;max-width:48px;padding:${Kt}}:host(${Be}${S}){min-width:56px;max-width:56px;padding:${Qt}}:host(${S}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${dt};line-height:${xt}}:host(${S}) ::slotted([slot='description']){font-size:${A}}`;function md(o={}){return f`<template ?disabled="${t=>t.disabled}" tabindex="${t=>t.disabled?null:t.tabIndex??0}">${Vt(o)}<span class="content" part="content"><slot ${pt("defaultSlottedContent")}></slot><slot name="description"></slot></span>${ee(o)}</template>`}const $d=md(),vd=fd.compose({name:`${p.prefix}-compound-button`,template:$d,styles:bd});vd.define(p.registry);var yd=Object.defineProperty,kd=Object.getOwnPropertyDescriptor,ae=(o,t,e,s)=>{for(var i=s>1?void 0:s?kd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&yd(t,e,i),i};class Et extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}colorChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}dotChanged(t,e){c(this.elementInternals,"dot",!!e)}setCount(){const t=this.count??0;if((t!==0||this.showZero)&&!this.dot)return t>this.overflowCount?`${this.overflowCount}+`:`${t}`}}ae([a],Et.prototype,"appearance",2),ae([a],Et.prototype,"color",2),ae([a],Et.prototype,"shape",2),ae([a],Et.prototype,"size",2),ae([a({converter:st})],Et.prototype,"count",2),ae([a({attribute:"overflow-count",converter:st})],Et.prototype,"overflowCount",2),ae([a({attribute:"show-zero",mode:"boolean"})],Et.prototype,"showZero",2),ae([a({mode:"boolean"})],Et.prototype,"dot",2),jt(Et,Dt);const tn=l.partial`:is([state--dot], :state(dot))`,xd=l`
|
|
401
|
+
:host(${qt}){border-radius:${T}}:host(${qt}${Ue}),:host(${qt}${Ke}),:host(${qt}${_}){border-radius:${_t}}${Yr}
|
|
403
402
|
${Qr}
|
|
404
|
-
${
|
|
403
|
+
${Zr}
|
|
404
|
+
${Kr}
|
|
405
405
|
|
|
406
|
-
:host(${
|
|
407
|
-
@layer base{:host{--dialog-backdrop:${
|
|
408
|
-
@layer base{dialog{border:${
|
|
406
|
+
:host(${tn}),:host(${tn}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function wd(o={}){return Jr({defaultContent:f`${t=>t.setCount()}`})}const Cd=wd(),Sd=Et.compose({name:`${p.prefix}-counter-badge`,template:Cd,styles:xd});Sd.define(p.registry);const Lt={modal:"modal",nonModal:"non-modal",alert:"alert"};var Id=Object.defineProperty,Pd=Object.getOwnPropertyDescriptor,rs=(o,t,e,s)=>{for(var i=s>1?void 0:s?Pd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Id(t,e,i),i};class co extends x{constructor(){super(...arguments),this.type=Lt.modal,this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})},this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}show(){Bt.enqueue(()=>{this.emitBeforeToggle(),this.type===Lt.alert||this.type===Lt.modal?this.dialog.showModal():this.type===Lt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&this.type!==Lt.alert&&t.target===this.dialog&&this.hide(),!0}}rs([k],co.prototype,"dialog",2),rs([a({attribute:"aria-describedby"})],co.prototype,"ariaDescribedby",2),rs([a({attribute:"aria-labelledby"})],co.prototype,"ariaLabelledby",2),rs([a],co.prototype,"type",2);const Bd=f`<dialog role="${o=>o.type===Lt.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===Lt.modal||o.type===Lt.alert?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,t)=>o.clickHandler(t.event)}" @cancel="${(o,t)=>o.type===Lt.alert?t.event.preventDefault():o.hide()}" ${Tt("dialog")}><slot></slot></dialog>`,zd=l`
|
|
407
|
+
@layer base{:host{--dialog-backdrop:${Gs};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${O};border-radius:${Br};border:none;box-shadow:${Dr};color:${z};max-height:calc(-48px + 100vh);padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${ti};transition-timing-function:${lo};opacity:0}::backdrop{transition-timing-function:${oi}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${ao}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(et(l`
|
|
408
|
+
@layer base{dialog{border:${U} solid ${nt}}}`)),Td=co.compose({name:`${p.prefix}-dialog`,template:Bd,styles:zd});Td.define(p.registry);var Ad=Object.defineProperty,Fd=Object.getOwnPropertyDescriptor,_d=(o,t,e,s)=>{for(var i=s>1?void 0:s?Fd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Ad(t,e,i),i};class en extends x{constructor(){super(...arguments),this.noTitleAction=!1}}_d([a({mode:"boolean",attribute:"no-title-action"})],en.prototype,"noTitleAction",2);const Od=f.partial(`
|
|
409
409
|
<svg
|
|
410
410
|
fill="currentColor"
|
|
411
411
|
aria-hidden="true"
|
|
@@ -418,99 +418,99 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
418
418
|
d="m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"
|
|
419
419
|
fill="currentColor"
|
|
420
420
|
></path>
|
|
421
|
-
</svg>`),
|
|
421
|
+
</svg>`),Md=f`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===Lt.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${Tt("defaultTitleAction")}>${Od}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,Nd=l`
|
|
422
422
|
${w("grid")}
|
|
423
423
|
|
|
424
|
-
:host{background:${
|
|
424
|
+
:host{background:${O};box-sizing:border-box;gap:${bt};padding:${no} ${oc};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${O};color:${z};column-gap:8px;display:flex;font-family:${$};font-size:${Ae};font-weight:${N};inset-block-start:0;justify-content:space-between;line-height:${Qo};margin-block-end:calc(${bt} * -1);margin-block-start:calc(${no} * -1);padding-block-end:${bt};padding-block-start:${no};position:sticky;z-index:1}.content{box-sizing:border-box;color:${z};font-family:${$};font-size:${A};font-weight:${M};line-height:${D};min-height:32px}.actions{box-sizing:border-box;background:${O};display:flex;flex-direction:column;gap:${bt};inset-block-end:0;margin-block-end:calc(${no} * -1);padding-block-end:${no};padding-block-start:${Zs};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${bt} * -1);padding-block-start:${bt}}}`,Ed=en.compose({name:`${p.prefix}-dialog-body`,template:Md,styles:Nd});Ed.define(p.registry);const ho={separator:"separator",presentation:"presentation"},Ld=gt;var Hd=Object.defineProperty,Dd=Object.getOwnPropertyDescriptor,uo=(o,t,e,s)=>{for(var i=s>1?void 0:s?Dd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Hd(t,e,i),i};class Oe extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.inset=!1}alignContentChanged(t,e){t&&c(this.elementInternals,`align-${t}`,!1),e&&c(this.elementInternals,`align-${e}`,!0)}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}insetChanged(t,e){c(this.elementInternals,"inset",e)}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??ho.separator,this.role!==ho.presentation&&(this.elementInternals.ariaOrientation=this.orientation??Ld.horizontal)}roleChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.role=`${e??ho.separator}`),e===ho.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.role!==ho.presentation?e:null,t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}uo([a],Oe.prototype,"role",2),uo([a],Oe.prototype,"orientation",2),uo([a({attribute:"align-content"})],Oe.prototype,"alignContent",2),uo([a],Oe.prototype,"appearance",2),uo([a({mode:"boolean"})],Oe.prototype,"inset",2);function Vd(){return f`<slot></slot>`}const jd=Vd(),Rd=l`
|
|
425
425
|
${w("flex")}
|
|
426
426
|
|
|
427
|
-
:host{contain:content}:host::after,:host::before{align-self:center;background:${
|
|
428
|
-
:host(${
|
|
427
|
+
:host{contain:content}:host::after,:host::before{align-self:center;background:${oo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${U}}:host(${Ns}){padding:0 12px}:host ::slotted(*){color:${Xt};font-family:${$};font-size:${q};font-weight:${M};margin:0;padding:0 12px}:host(${rr})::before,:host(${Gt})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${Z}){height:100%;min-height:84px}:host(${Z}):empty{min-height:20px}:host(${Z}){flex-direction:column;align-items:center}:host(${Z}${Ns})::before{margin-top:12px}:host(${Z}${Ns})::after{margin-bottom:12px}:host(${Z}):empty::before,:host(${Z}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${Z})::before,:host(${Z})::after{width:${U};min-height:20px;height:100%}:host(${Z}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${Z}${rr})::before{min-height:8px}:host(${Z}${Gt})::after{min-height:8px}:host(${qe})::before,:host(${qe})::after{background:${be}}:host(${qe}) ::slotted(*){color:${z}}:host(${Wt})::before,:host(${Wt})::after{background:${ur}}:host(${Wt}) ::slotted(*){color:${Ls}}:host(${C})::before,:host(${C})::after{background:${Ta}}:host(${C}) ::slotted(*){color:${rt}}`.withBehaviors(et(l`
|
|
428
|
+
:host(${qe})::before,:host(${qe})::after,:host(${Wt})::before,:host(${Wt})::after,:host(${C})::before,:host(${C})::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),qd=Oe.compose({name:`${p.prefix}-divider`,template:jd,styles:Rd});qd.define(p.registry);const Gd={start:"start",end:"end"},Wd={small:"small",medium:"medium",large:"large",full:"full"},ni={nonModal:"non-modal",modal:"modal",inline:"inline"};var Xd=Object.defineProperty,Ud=Object.getOwnPropertyDescriptor,Me=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ud(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Xd(t,e,i),i};class $e extends x{constructor(){super(...arguments),this.type=ni.modal,this.position=Gd.start,this.size=Wd.medium,this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})},this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}}show(){Bt.enqueue(()=>{this.emitBeforeToggle(),this.type===ni.inline||this.type===ni.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&t.target===this.dialog&&this.hide(),!0}}Me([a],$e.prototype,"type",2),Me([a({attribute:"aria-labelledby"})],$e.prototype,"ariaLabelledby",2),Me([a({attribute:"aria-describedby"})],$e.prototype,"ariaDescribedby",2),Me([a],$e.prototype,"position",2),Me([a({attribute:"size"})],$e.prototype,"size",2),Me([k],$e.prototype,"dialog",2);const Kd=l`
|
|
429
429
|
${w("block")}
|
|
430
430
|
|
|
431
|
-
:host{--dialog-backdrop:${
|
|
431
|
+
:host{--dialog-backdrop:${Gs}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${A};line-height:${D};font-family:${$};font-weight:${M};color:${z};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${nt};border-inline-start-color:var(--drawer-separator,${nt});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${Dr};border:${U} solid ${nt};background:${O}}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${ti};transition-timing-function:${lo}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${ao}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${ao}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${ti};transition-timing-function:${lo};background:var(--dialog-backdrop,${Gs});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${oi}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function Yd(){return f`<dialog class="dialog" part="dialog" role="${o=>o.type==="modal"?"dialog":o.role}" aria-modal="${o=>o.type==="modal"?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" type="${o=>o.type}" @click="${(o,t)=>o.clickHandler(t.event)}" @cancel="${(o,t)=>o.hide()}" ${Tt("dialog")}><slot></slot></dialog>`}const Qd=Yd(),Zd=$e.compose({name:`${p.prefix}-drawer`,template:Qd,styles:Kd});Zd.define(p.registry);class Jd extends x{}const th=l`
|
|
432
432
|
${w("grid")}
|
|
433
|
-
:host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${
|
|
433
|
+
:host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${ec};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Jc}}.footer{display:flex;justify-content:flex-start;gap:${ut}}`;function eh(){return f`<div class="header" part="header"><slot name="title"></slot><slot name="close"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const oh=eh(),sh=Jd.compose({name:`${p.prefix}-drawer-body`,template:oh,styles:th});sh.define(p.registry);const ih={above:"above",after:"after",before:"before"},y={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"};var rh=Object.defineProperty,nh=Object.getOwnPropertyDescriptor,po=(o,t,e,s)=>{for(var i=s>1?void 0:s?nh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&rh(t,e,i),i};class Ne extends x{constructor(){super(),this.labelPosition=ih.above,this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(t,e){e&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(t,e){if(c(this.elementInternals,"has-message",!!e.length),!e.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(t,e){e?.length&&(this.input=e?.[0],this.setStates())}inputChanged(t,e){e&&(this.setStates(),this.setLabelProperties())}changeHandler(t){return this.setStates(),this.setValidationStates(),!0}clickHandler(t){return this===t.target&&this.input.click(),!0}focusinHandler(t){return this.matches(":focus-within:has(> :focus-visible)")&&c(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(t){return c(this.elementInternals,"focus-visible",!1),!0}invalidHandler(t){this.messageSlot.length&&t.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||Ao("input"),this.labelSlot?.forEach(t=>{t instanceof HTMLLabelElement&&(t.htmlFor=t.htmlFor||this.input.id,t.id=t.id||`${this.input.id}--label`,t.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",t.id))}))}setStates(){this.$fastController.isConnected&&(c(this.elementInternals,"disabled",!!this.input.disabled),c(this.elementInternals,"readonly",!!this.input.readOnly),c(this.elementInternals,"required",!!this.input.required),c(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[t,e]of Object.entries(y))c(this.elementInternals,e,this.input.validity[t])}}po([a({attribute:"label-position"})],Ne.prototype,"labelPosition",2),po([k],Ne.prototype,"labelSlot",2),po([k],Ne.prototype,"messageSlot",2),po([k],Ne.prototype,"slottedInputs",2),po([k],Ne.prototype,"input",2);const ah=l.partial`:is([state--focus-visible], :state(focus-visible))`,lh=l.partial`:is([state--${y.badInput}], :state(${y.badInput}))`,ch=l.partial`:is([state--${y.customError}], :state(${y.customError}))`,dh=l.partial`:is([state--${y.patternMismatch}], :state(${y.patternMismatch}))`,hh=l.partial`:is([state--${y.rangeOverflow}], :state(${y.rangeOverflow}))`,uh=l.partial`:is([state--${y.rangeUnderflow}], :state(${y.rangeUnderflow}))`,ph=l.partial`:is([state--${y.stepMismatch}], :state(${y.stepMismatch}))`,gh=l.partial`:is([state--${y.tooLong}], :state(${y.tooLong}))`,fh=l.partial`:is([state--${y.tooShort}], :state(${y.tooShort}))`,bh=l.partial`:is([state--${y.typeMismatch}], :state(${y.typeMismatch}))`,mh=l.partial`:is([state-${y.valid}], :state(${y.valid}))`,$h=l.partial`:is([state--${y.valueMissing}], :state(${y.valueMissing}))`,vh=l.partial`:is([state--has-message], :state(has-message))`,yh=l`
|
|
434
434
|
${w("inline-grid")}
|
|
435
435
|
|
|
436
|
-
:host{color:${
|
|
437
|
-
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(:is([state--block],:state(block))) ::slotted(img){width:100%;height:auto}:host(:is([state--bordered],:state(bordered))) ::slotted(img){border:${
|
|
436
|
+
:host{color:${z};align-items:center;gap:0 ${ut};justify-items:start;position:relative}:has([slot='message']){color:${z};row-gap:${bt}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${ut}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Jo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${ic}}:host([label-position='below']:not(${vh})){grid-template-areas:'input' 'label'}::slotted([slot='label'])::after{content:'';display:block;position:absolute;inset:0}::slotted([slot='input']){grid-area:input;position:relative;z-index:1}::slotted([slot='message']){margin-block-start:${Jo};grid-area:message}:host(${ah}:focus-within){border-radius:${T};outline:${se} solid ${Ft}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${$};font-size:${A};font-weight:${M};grid-area:label;line-height:${D};user-select:none}:host([size='small']) ::slotted(label){font-size:${q};line-height:${ot}}:host([size='large']) ::slotted(label){font-size:${dt};line-height:${xt}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${N}}:host(${W}){cursor:default}::slotted([flag]){display:none}:host(${lh}) ::slotted([flag='${y.badInput}']),:host(${ch}) ::slotted([flag='${y.customError}']),:host(${dh}) ::slotted([flag='${y.patternMismatch}']),:host(${hh}) ::slotted([flag='${y.rangeOverflow}']),:host(${uh}) ::slotted([flag='${y.rangeUnderflow}']),:host(${ph}) ::slotted([flag='${y.stepMismatch}']),:host(${gh}) ::slotted([flag='${y.tooLong}']),:host(${fh}) ::slotted([flag='${y.tooShort}']),:host(${bh}) ::slotted([flag='${y.typeMismatch}']),:host(${$h}) ::slotted([flag='${y.valueMissing}']),:host(${mh}) ::slotted([flag='${y.valid}']){display:block}`,kh=f`<template @click="${(o,t)=>o.clickHandler(t.event)}" @change="${(o,t)=>o.changeHandler(t.event)}" @focusin="${(o,t)=>o.focusinHandler(t.event)}" @focusout="${(o,t)=>o.focusoutHandler(t.event)}" ${Mn({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:Re()})}><slot name="label" part="label" ${pt("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${pt({property:"messageSlot",filter:Re("[flag]")})}></slot></template>`,xh=Ne.compose({name:`${p.prefix}-field`,template:kh,styles:yh,shadowOptions:{delegatesFocus:!0}});xh.define(p.registry);var wh=Object.defineProperty,Ch=Object.getOwnPropertyDescriptor,go=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ch(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&wh(t,e,i),i};class Ee extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.block=!1}blockChanged(t,e){c(this.elementInternals,"block",e)}borderedChanged(t,e){c(this.elementInternals,"bordered",e)}shadowChanged(t,e){c(this.elementInternals,"shadow",e)}fitChanged(t,e){t&&c(this.elementInternals,`fit-${t}`,!1),e&&c(this.elementInternals,`fit-${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}go([a({mode:"boolean"})],Ee.prototype,"block",2),go([a({mode:"boolean"})],Ee.prototype,"bordered",2),go([a({mode:"boolean"})],Ee.prototype,"shadow",2),go([a],Ee.prototype,"fit",2),go([a],Ee.prototype,"shape",2);const Sh=f`<slot></slot>`,Ih=l`
|
|
437
|
+
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(:is([state--block],:state(block))) ::slotted(img){width:100%;height:auto}:host(:is([state--bordered],:state(bordered))) ::slotted(img){border:${U} solid ${oo}}:host(:is([state--fit-none],:state(fit-none))) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(:is([state--fit-center],:state(fit-center))) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(:is([state--fit-contain],:state(fit-contain))) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(:is([state--fit-cover],:state(fit-cover))) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(:is([state--shadowed],:state(shadowed))) ::slotted(img){box-shadow:${Zo}}:host(${We}) ::slotted(img){border-radius:${ct}}:host(${qt}) ::slotted(img){border-radius:${T}}`,Ph=Ee.compose({name:`${p.prefix}-image`,template:Sh,styles:Ih});Ph.define(p.registry);var Bh=Object.defineProperty,zh=Object.getOwnPropertyDescriptor,ns=(o,t,e,s)=>{for(var i=s>1?void 0:s?zh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Bh(t,e,i),i};class fo extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.required=!1}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}weightChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}disabledChanged(t,e){c(this.elementInternals,"disabled",e)}}ns([a],fo.prototype,"size",2),ns([a],fo.prototype,"weight",2),ns([a({mode:"boolean"})],fo.prototype,"disabled",2),ns([a({mode:"boolean"})],fo.prototype,"required",2);const Th=l`
|
|
438
438
|
${w("inline-flex")}
|
|
439
439
|
|
|
440
|
-
:host{color:${
|
|
440
|
+
:host{color:${z};cursor:pointer;font-family:${$};font-size:${A};font-weight:${M};line-height:${D};user-select:none}.asterisk{color:${$r};margin-inline-start:${Kt}}:host(${_}){font-size:${q};line-height:${ot}}:host(${S}){font-size:${dt};line-height:${xt}}:host(${S}),:host(:is([state--semibold],:state(semibold))){font-weight:${N}}:host(:is([state--disabled],:state(disabled))),:host(:is([state--disabled],:state(disabled))) .asterisk{color:${H}}`;function Ah(){return f`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const Fh=Ah(),_h=fo.compose({name:`${p.prefix}-label`,template:Fh,styles:Th});_h.define(p.registry);var Oh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,on=(o,t,e,s)=>{for(var i=s>1?void 0:s?Mh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Oh(t,e,i),i};class ai extends Mt{constructor(){super(...arguments),this.inline=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}inlineChanged(t,e){c(this.elementInternals,"inline",e)}}on([a],ai.prototype,"appearance",2),on([a({mode:"boolean"})],ai.prototype,"inline",2);const Nh=l`
|
|
441
441
|
${w("inline")}
|
|
442
442
|
|
|
443
|
-
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${
|
|
444
|
-
:host{color:LinkText}`));function
|
|
443
|
+
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${da};cursor:pointer;font-family:${$};font-size:${A};font-weight:${M};margin:0;padding:0;overflow:inherit;text-align:left;text-decoration:none;text-decoration-thinkness:${U};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${ha}}:host(:active){color:${ua}}:host(${C}:hover){color:${ga}}:host(${C}:active){color:${fa}}}:host(${C}){color:${pa}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(:is([state--inline],:state(inline))){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(et(l`
|
|
444
|
+
:host{color:LinkText}`));function Eh(){return f`<template tabindex="0" @click="${(o,t)=>o.clickHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot></slot></template>`}const Lh=Eh(),Hh=ai.compose({name:`${p.prefix}-link`,template:Lh,styles:Nh});Hh.define(p.registry);class Dh extends Zt{}const Vh=ri({end:f.partial(`
|
|
445
445
|
<svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
446
446
|
<path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill="currentColor"></path>
|
|
447
447
|
</svg>
|
|
448
|
-
`)}),
|
|
448
|
+
`)}),jh=Dh.compose({name:`${p.prefix}-menu-button`,template:Vh,styles:os});jh.define(p.registry);const K={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};K.menuitem+"",K.menuitemcheckbox+"",K.menuitemradio+"";var Rh=Object.defineProperty,qh=Object.getOwnPropertyDescriptor,Le=(o,t,e,s)=>{for(var i=s>1?void 0:s?qh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Rh(t,e,i),i};const Gh=()=>o=>o.nodeType===1&&o.elementInternals.role==="menu";class Ct extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=K.menuitem,this.checked=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case To:case _s:return this.invoke(),!1;case zs:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case Bs:return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=t=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=t=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.toggleHandler=t=>{t instanceof ToggleEvent&&t.newState==="open"&&(this.setAttribute("tabindex","-1"),this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),t instanceof ToggleEvent&&t.newState==="closed"&&(this.elementInternals.ariaExpanded="false",this.setAttribute("tabindex","0"))},this.invoke=()=>{if(!this.disabled)switch(this.role){case K.menuitemcheckbox:this.checked=!this.checked;break;case K.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case K.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const t=this.getBoundingClientRect(),e=this.submenu.getBoundingClientRect(),s=getComputedStyle(this).direction==="ltr"?"right":"left";if(t.width+e.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(t[s]+e.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${t.width-8}px 0`}}}disabledChanged(t,e){this.elementInternals.ariaDisabled=e?`${e}`:null,c(this.elementInternals,"disabled",e)}roleChanged(t,e){this.elementInternals.role=e??K.menuitem}checkedChanged(t,e){const s=this.role!==K.menuitem;this.elementInternals.ariaChecked=s?`${!!e}`:null,c(this.elementInternals,"checked",s?e:!1),this.$fastController.isConnected&&this.$emit("change")}slottedSubmenuChanged(t,e){this.submenu?.removeEventListener("toggle",this.toggleHandler),e.length?(this.submenu=e[0],this.submenu.toggleAttribute("popover",!0),this.submenu.addEventListener("toggle",this.toggleHandler),this.elementInternals.ariaHasPopup="menu",c(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,c(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??K.menuitem,this.elementInternals.ariaChecked=this.role!==K.menuitem?`${!!this.checked}`:null}}Le([a({mode:"boolean"})],Ct.prototype,"disabled",2),Le([a],Ct.prototype,"role",2),Le([a({mode:"boolean"})],Ct.prototype,"checked",2),Le([a({mode:"boolean"})],Ct.prototype,"hidden",2),Le([k],Ct.prototype,"slottedSubmenu",2),Le([k],Ct.prototype,"submenu",2),jt(Ct,Dt);const as=l.partial`:is([state--submenu], :state(submenu))`,Wh=l`
|
|
449
449
|
${w("grid")}
|
|
450
450
|
|
|
451
|
-
:host{--indent:0;align-items:center;background:${
|
|
452
|
-
:host(${
|
|
451
|
+
:host{--indent:0;align-items:center;background:${O};border-radius:${T};color:${Xt};contain:layout;cursor:pointer;flex-shrink:0;font:${M} ${A} / ${D} ${$};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${Hs};color:${Do}}:host(:active){background-color:${lr};color:${Vo}}:host(:active) ::slotted([slot='start']){color:${ma}}:host(${W}){background-color:${ze};color:${H}}:host(${W}) ::slotted([slot='start']),:host(${W}) ::slotted([slot='end']){color:${H}}:host(:focus-visible){border-radius:${T};outline:2px solid ${Ft}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${v})) .indicator,:host(:not(${v})) ::slotted([slot='indicator']),:host(:not(${as})) .submenu-glyph,:host(:not(${as})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${rt};font:${M} ${q} / ${ot} ${$};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${as}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${as}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1 / span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent)) / span 1}.content{grid-column:calc(var(--indent) + 1) / span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2) / span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2 / span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){inset-area:inline-end span-block-end;margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-try-options:flip-inline,inset-area(block-start);z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}`.withBehaviors(et(l`
|
|
452
|
+
:host(${W}),:host(${W}) ::slotted([slot='start']),:host(${W}) ::slotted([slot='end']){color:GrayText}`)),Xh=f.partial('<svg class="indicator" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill="currentColor"></path></svg>'),Uh=f.partial('<svg class="submenu-glyph" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill="currentColor"></path></svg>');function Kh(o={}){return f`<template @keydown="${(t,e)=>t.handleMenuItemKeyDown(e.event)}" @click="${(t,e)=>t.handleMenuItemClick(e.event)}" @mouseover="${(t,e)=>t.handleMouseOver(e.event)}" @mouseout="${(t,e)=>t.handleMouseOut(e.event)}" @toggle="${(t,e)=>t.toggleHandler(e.event)}"><slot name="indicator">${ft(o.indicator)}</slot>${Vt(o)}<div part="content" class="content"><slot></slot></div>${ee(o)}<slot name="submenu-glyph">${ft(o.submenuGlyph)}</slot><slot name="submenu" ${pt({property:"slottedSubmenu",filter:Gh()})}></slot></template>`}const Yh=Kh({indicator:Xh,submenuGlyph:Uh}),Qh=Ct.compose({name:`${p.prefix}-menu-item`,template:Yh,styles:Wh});Qh.define(p.registry);var Zh=Object.defineProperty,Jh=Object.getOwnPropertyDescriptor,tu=(o,t,e,s)=>{for(var i=s>1?void 0:s?Jh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Zh(t,e,i),i};const li=class gi extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&or(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&this.menuItems!==void 0){const e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[e].setAttribute("tabindex","0"),this.focusIndex=e}},this.handleItemFocus=t=>{const e=t.target;this.menuItems!==void 0&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.changedMenuItemHandler=t=>{if(this.menuItems===void 0)return;const e=t.target,s=this.menuItems.indexOf(e);if(s!==-1&&e.role==="menuitemradio"&&e.checked===!0){for(let r=s-1;r>=0;--r){const n=this.menuItems[r],h=n.getAttribute("role");if(h===K.menuitemradio&&(n.checked=!1),h==="separator")break}const i=this.menuItems.length-1;for(let r=s+1;r<=i;++r){const n=this.menuItems[r],h=n.getAttribute("role");if(h===K.menuitemradio&&(n.checked=!1),h==="separator")break}}},this.isMenuItemElement=t=>t instanceof Ct||or(t)&&t.getAttribute("role")in gi.focusableElementRoles,this.isFocusableElement=t=>this.isMenuItemElement(t),this.elementInternals.role="menu"}itemsChanged(t,e){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),Bt.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.setFocus(0,1)}handleMenuKeyDown(t){if(!(t.defaultPrevented||this.menuItems===void 0))switch(t.key){case Ps:this.setFocus(this.focusIndex+1,1);return;case Ts:this.setFocus(this.focusIndex-1,-1);return;case As:this.setFocus(this.menuItems.length-1,-1);return;case Fs:this.setFocus(0,1);return;default:return!0}}removeItemListeners(t=this.items){t.forEach(e=>{e.removeEventListener("focus",this.handleItemFocus),m.getNotifier(e).unsubscribe(this,"hidden")})}static elementIndent(t){const e=t.getAttribute("role"),s=t.querySelector("[slot=start]");return e&&e!==K.menuitem?s?2:1:s?1:0}setItems(){const t=Array.from(this.children);this.removeItemListeners(t),t.forEach(n=>m.getNotifier(n).subscribe(this,"hidden"));const e=t.filter(n=>!n.hasAttribute("hidden"));this.menuItems=e;const s=this.menuItems.filter(this.isMenuItemElement);s.length&&(this.focusIndex=0),s.forEach((n,h)=>{n.setAttribute("tabindex",h===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const i=this.menuItems?.filter(this.isMenuItemElement),r=i?.reduce((n,h)=>{const g=gi.elementIndent(h);return Math.max(n,g)},0);i?.forEach(n=>{n instanceof Ct&&n.setAttribute("data-indent",`${r}`)})}handleChange(t,e){e==="hidden"&&this.setItems()}setFocus(t,e){if(this.menuItems!==void 0)for(;t>=0&&t<this.menuItems.length;){const s=this.menuItems[t];if(this.isFocusableElement(s)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,s.setAttribute("tabindex","0"),s.focus();break}t+=e}}};li.focusableElementRoles=K,tu([k],li.prototype,"items",2);let eu=li;const ou=l`
|
|
453
453
|
${w("flex")}
|
|
454
454
|
|
|
455
|
-
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${
|
|
455
|
+
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${O};border:1px solid ${nt};border-radius:${T};box-shadow:${Hr};padding:4px;row-gap:2px}`;function su(){return f`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,t)=>o.handleMenuKeyDown(t.event)}" @focusout="${(o,t)=>o.handleFocusOut(t.event)}"><slot ${pt("items")}></slot></template>`}const iu=su(),ru=eu.compose({name:`${p.prefix}-menu-list`,template:iu,styles:ou});ru.define(p.registry);var nu=Object.defineProperty,au=Object.getOwnPropertyDescriptor,He=(o,t,e,s)=>{for(var i=s>1?void 0:s?au(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&nu(t,e,i),i};class ve extends x{constructor(){super(...arguments),this.openOnHover=!1,this.openOnContext=!1,this.closeOnScroll=!1,this.persistOnItemClick=!1,this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=t=>{t?.target instanceof Ct&&(t.target.getAttribute("role")===K.menuitemcheckbox||t.target.getAttribute("role")===K.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=t=>{this._menuList?.togglePopover(!0),t&&this.openOnContext&&t.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=t=>{if(t instanceof ToggleEvent){const e=t.newState==="open";this._trigger?.setAttribute("aria-expanded",`${e}`),this._open=e,this.focusMenuList()}},this.triggerKeydownHandler=t=>{if(t.defaultPrevented)return;switch(t.key){case _s:case To:t.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=t=>{t.composedPath().some(e=>e===this._trigger||e===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),Bt.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this._menuList.setAttribute("popover",this.openOnContext?"manual":""),this.addListeners())}focusMenuList(){Bt.enqueue(()=>{this._menuList.focus()})}focusTrigger(){Bt.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(t,e){e?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(t,e){e?this._menuList?.removeEventListener("change",this.closeMenu):this._menuList?.addEventListener("change",this.closeMenu)}openOnContextChanged(t,e){e?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(t,e){e?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addListeners(){this._menuList?.addEventListener("toggle",this.toggleHandler),this._trigger?.addEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu),document.addEventListener("click",this.documentClickHandler)):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){this._menuList?.removeEventListener("toggle",this.toggleHandler),this._trigger?.removeEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.removeEventListener("change",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?(this._trigger?.removeEventListener("contextmenu",this.openMenu),document.removeEventListener("click",this.documentClickHandler)):this._trigger?.removeEventListener("click",this.toggleMenu)}menuKeydownHandler(t){if(t.defaultPrevented)return;switch(t.key){case Gn:t.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case Wn:if(this._open&&this.closeMenu(),t.shiftKey&&t.composedPath()[0]!==this._trigger)this.focusTrigger();else if(t.shiftKey)return!0;default:return!0}}}He([a({attribute:"open-on-hover",mode:"boolean"})],ve.prototype,"openOnHover",2),He([a({attribute:"open-on-context",mode:"boolean"})],ve.prototype,"openOnContext",2),He([a({attribute:"close-on-scroll",mode:"boolean"})],ve.prototype,"closeOnScroll",2),He([a({attribute:"persist-on-item-click",mode:"boolean"})],ve.prototype,"persistOnItemClick",2),He([k],ve.prototype,"slottedMenuList",2),He([k],ve.prototype,"slottedTriggers",2);const lu=l`
|
|
456
456
|
${w("inline-block")}
|
|
457
457
|
|
|
458
|
-
::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){inset-area:block-end span-inline-end;margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-try-options:flip-block;position:absolute;z-index:1}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}`;function
|
|
459
|
-
:host{display:grid;box-sizing:border-box;font-family:${$};font-size:${
|
|
460
|
-
'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${
|
|
458
|
+
::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){inset-area:block-end span-inline-end;margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-try-options:flip-block;position:absolute;z-index:1}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}`;function cu(){return f`<template ?open-on-hover="${o=>o.openOnHover}" ?open-on-context="${o=>o.openOnContext}" ?close-on-scroll="${o=>o.closeOnScroll}" ?persist-on-item-click="${o=>o.persistOnItemClick}" @keydown="${(o,t)=>o.menuKeydownHandler(t.event)}"><slot name="trigger" ${pt({property:"slottedTriggers",filter:Re()})}></slot><slot ${pt({property:"slottedMenuList",filter:Re()})}></slot></template>`}const du=cu(),hu=ve.compose({name:`${p.prefix}-menu`,template:du,styles:lu});hu.define(p.registry);var uu=Object.defineProperty,pu=Object.getOwnPropertyDescriptor,ci=(o,t,e,s)=>{for(var i=s>1?void 0:s?pu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&uu(t,e,i),i};class ls extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}shapeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}layoutChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}intentChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}}ci([a],ls.prototype,"shape",2),ci([a],ls.prototype,"layout",2),ci([a],ls.prototype,"intent",2);const gu=l`
|
|
459
|
+
:host{display:grid;box-sizing:border-box;font-family:${$};font-size:${q};line-height:${ot};width:100%;background:${Vs};border:1px solid ${be};padding-inline:${ut};border-radius:${T};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host(${Xe}){border-radius:0}:host(${ue}){background-color:${yr};border-color:${Na}}:host(${pe}){background-color:${xr};border-color:${Cr}}:host(${Es}){background-color:${fr};border-color:${mr}}:host(${Ye}){grid-template-areas:'icon body dismiss'
|
|
460
|
+
'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${ro};padding-inline:${ut}}.content{grid-area:body;max-width:520px;padding-block:${ro};padding-inline:0}:host(${Ye}) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${rt};margin-inline-end:${Qt}}:host(${Ye}) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${Qt};gap:${Qt}}:host(${Ye}) .actions{margin-block-start:${ro};margin-inline-end:0}:host(${Ye}) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${bt}}::slotted(*){font-size:inherit}`;function fu(){return f`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const bu=fu(),mu=ls.compose({name:`${p.prefix}-message-bar`,template:bu,styles:gu,shadowOptions:{mode:p.shadowRootMode}});mu.define(p.registry);var $u=Object.defineProperty,vu=Object.getOwnPropertyDescriptor,ye=(o,t,e,s)=>{for(var i=s>1?void 0:s?vu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&$u(t,e,i),i};class le extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}thicknessChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}validationStateChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}valueChanged(t,e){this.elementInternals.ariaValueNow=typeof e=="number"?`${e}`:null}minChanged(t,e){this.elementInternals.ariaValueMin=typeof e=="number"?`${e}`:null}maxChanged(t,e){this.elementInternals.ariaValueMax=typeof e=="number"?`${e}`:null}get percentComplete(){const t=this.min??0,e=this.max??100,s=this.value??0,i=e-t;return i===0?0:Math.fround((s-t)/i*100)}}ye([a],le.prototype,"thickness",2),ye([a],le.prototype,"shape",2),ye([a({attribute:"validation-state"})],le.prototype,"validationState",2),ye([a({converter:st})],le.prototype,"value",2),ye([a({converter:st})],le.prototype,"min",2),ye([a({converter:st})],le.prototype,"max",2),ye([mn],le.prototype,"percentComplete",1);const yu=l`
|
|
461
461
|
${w("block")}
|
|
462
462
|
|
|
463
|
-
:host{width:100%;height:2px;overflow-x:hidden;background-color:${
|
|
464
|
-
to right,${
|
|
465
|
-
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${
|
|
466
|
-
:host{background-color:CanvasText}.indicator,:host(:is(${
|
|
463
|
+
:host{width:100%;height:2px;overflow-x:hidden;background-color:${qo};border-radius:${T};contain:content}:host(${S}){height:4px}:host(${Xe}){border-radius:${Qs}}.indicator{background-color:${Te};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
|
|
464
|
+
to right,${qo} 0%,${kt} 50%,${qo} 100%
|
|
465
|
+
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${Es}) .indicator{background-color:${br}}:host(${pe}) .indicator{background-color:${wr}}:host(${ue}) .indicator{background-color:${kr}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}`.withBehaviors(et(l`
|
|
466
|
+
:host{background-color:CanvasText}.indicator,:host(:is(${ue},${pe},${Es})) .indicator{background-color:Highlight}`));function ku(){return f`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const xu=ku(),wu=le.compose({name:`${p.prefix}-progress-bar`,template:xu,styles:yu});wu.define(p.registry);class sn extends $t{connectedCallback(){super.connectedCallback(),this.tabIndex=this.disabled?-1:0}constructor(){super(),this.elementInternals.role="radio"}disabledChanged(t,e){super.disabledChanged(t,e),e&&(this.checked=!1,this.tabIndex=-1),this.$emit("disabled",e,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(t=!0){super.toggleChecked(t)}}function rn(o){const t=o.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}const nn=gt;var Cu=Object.defineProperty,Su=Object.getOwnPropertyDescriptor,ke=(o,t,e,s)=>{for(var i=s>1?void 0:s?Su(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Cu(t,e,i),i};class Jt extends x{constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??nn.horizontal}checkedIndexChanged(t,e){this.enabledRadios&&this.checkRadio(e)}disabledChanged(t,e){this.$fastController.isConnected&&(this.checkedIndex=-1,this.radios?.forEach(s=>{s.disabled=s.disabledAttribute||this.disabled}),this.restrictFocus())}initialValueChanged(t,e){this.value=e??""}nameChanged(t,e){this.isConnected&&e&&this.radios?.forEach(s=>{s.name=this.name})}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.orientation??nn.horizontal}radiosChanged(t,e){const s=e?.length;if(!s)return;!this.name&&e.every(n=>n.name===e[0].name)&&(this.name=e[0].name);const i=qn(this.enabledRadios,n=>n.initialChecked);e.forEach((n,h)=>{n.ariaPosInSet=`${h+1}`,n.ariaSetSize=`${s}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=h===i,n.name=this.name??n.name,n.disabled=this.disabled||n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),this.value||(this.checkedIndex=i);const r=e.map(n=>n.id).join(" ").trim();r&&this.setAttribute("aria-owns",r),Bt.enqueue(()=>{this.restrictFocus()})}requiredChanged(t,e){this.elementInternals.ariaRequired=e?"true":null,this.setValidity()}get enabledRadios(){return this.disabled?[]:this.radios?.filter(t=>!t.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const t=document.createElement("input");t.type="radio",t.required=!0,t.checked=!1,this._validationFallbackMessage=t.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(t=>t.checked)?.value??null}set value(t){const e=this.enabledRadios.findIndex(s=>s.value===t);this.checkedIndex=e,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity()),m.track(this,"value")}changeHandler(t){if(this===t.target)return!0;this.dirtyState=!0;const e=this.enabledRadios.indexOf(t.target);return this.checkRadio(e),!0}checkRadio(t=this.checkedIndex){let e=this.checkedIndex;this.enabledRadios.forEach((s,i)=>{const r=i===t;s.checked=r,r&&(e=i)}),this.checkedIndex=e,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){return this===t.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}focusinHandler(t){return this.disabled||this.enabledRadios.forEach(e=>{e.tabIndex=0}),!0}focusoutHandler(t){return this.radios?.includes(t.relatedTarget)&&this.radios?.some(e=>e.checked)&&this.restrictFocus(),!0}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}getEnabledIndexInBounds(t,e=this.enabledRadios.length){return e===0?-1:(t+e)%e}keydownHandler(t){const e=sr(this)==="rtl",s=this.enabledRadios.findIndex(n=>n===rn(this))??this.checkedIndex;let i=0;switch(t.key){case"ArrowLeft":{i=e?1:-1;break}case"ArrowUp":{i=-1;break}case"ArrowRight":{i=e?-1:1;break}case"ArrowDown":{i=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!i)return!0;const r=s+i;this.checkedIndex=this.getEnabledIndexInBounds(r),this.enabledRadios[this.checkedIndex]?.focus()}disabledRadioHandler(t){t.detail===!0&&t.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}restrictFocus(){let t=Math.max(this.checkedIndex,0);const e=this.enabledRadios.indexOf(rn(this));e!==-1&&(t=e),t=this.getEnabledIndexInBounds(t),this.enabledRadios.forEach((s,i)=>{s.tabIndex=i===t?0:-1})}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setValidity(t,e,s){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:this.required&&!this.value,...t},e??this.validationMessage,s??this.enabledRadios[0])}}slotchangeHandler(t){Bt.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(e=>e instanceof sn)})}}Jt.formAssociated=!0,ke([k],Jt.prototype,"checkedIndex",2),ke([a({attribute:"disabled",mode:"boolean"})],Jt.prototype,"disabled",2),ke([a({attribute:"value",mode:"fromView"})],Jt.prototype,"initialValue",2),ke([a],Jt.prototype,"name",2),ke([a],Jt.prototype,"orientation",2),ke([k],Jt.prototype,"radios",2),ke([a({mode:"boolean"})],Jt.prototype,"required",2);const Iu=l`
|
|
467
467
|
${w("flex")}
|
|
468
468
|
|
|
469
|
-
:host{-webkit-tap-highlight-color:transparent;cursor:pointer}:host(${
|
|
469
|
+
:host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Zs}}:host(${W}),:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${rt}}::slotted(:hover){color:${Xt}}::slotted(:active){color:${z}}::slotted(${W}){color:${H}}::slotted(${v}){color:${z}}`;function Pu(){return f`<template @disabled="${(o,t)=>o.disabledRadioHandler(t.event)}" @change="${(o,t)=>o.changeHandler(t.event)}" @click="${(o,t)=>o.clickHandler(t.event)}" @focusin="${(o,t)=>o.focusinHandler(t.event)}" @focusout="${(o,t)=>o.focusoutHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot @slotchange="${(o,t)=>o.slotchangeHandler(t.event)}"></slot></template>`}const Bu=Pu(),zu=Jt.compose({name:`${p.prefix}-radio-group`,template:Bu,styles:Iu});zu.define(p.registry);const Tu=l`
|
|
470
470
|
${w("inline-flex")}
|
|
471
471
|
|
|
472
|
-
:host{--size:16px;aspect-ratio:1;background-color:${
|
|
473
|
-
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${
|
|
472
|
+
:host{--size:16px;aspect-ratio:1;background-color:${O};border:${U} solid ${fe};border-radius:${ct};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${ct};color:${Qe};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:'' / '';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${se} solid ${nt};border-radius:${T}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ft}}:host(:hover){border-color:${to}}:host(${v}){border-color:${Xo}}:host(${v}) .checked-indicator{background-color:${Te}}:host(${v}:hover) .checked-indicator{background-color:${Ze}}:host(:active){border-color:${eo}}:host(${v}:active) .checked-indicator{background-color:${Je}}:host(:focus-visible){outline:none}:host(${W}){background-color:${ze};border-color:${At}}:host(${v}${W}) .checked-indicator{background-color:${At}}`.withBehaviors(et(l`
|
|
473
|
+
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${W}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${v}) .checked-indicator{background-color:FieldText}:host(${v}:not(${W}):hover) .checked-indicator{background-color:Highlight}:host(${W}){border-color:GrayText;color:GrayText}:host(${W}${v}) .checked-indicator{background-color:GrayText}`)),Au=f.partial(`
|
|
474
474
|
<span part="checked-indicator" class="checked-indicator" role="presentation"></span>
|
|
475
|
-
`);function
|
|
475
|
+
`);function Fu(o={}){return f`<template @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="checked-indicator">${ft(o.checkedIndicator)}</slot></template>`}const _u=Fu({checkedIndicator:Au}),Ou=sn.compose({name:`${p.prefix}-radio`,template:_u,styles:Tu});Ou.define(p.registry);var Mu=Object.defineProperty,Nu=Object.getOwnPropertyDescriptor,De=(o,t,e,s)=>{for(var i=s>1?void 0:s?Nu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Mu(t,e,i),i};class xe extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.compact=!1,this.intlNumberFormatter=new Intl.NumberFormat,this.elementInternals.role="img"}colorChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}sizeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}get formattedCount(){return this.count?this.intlNumberFormatter.format(this.count):""}generateIcons(){let t="";const e=Math.round((this.compact?1:this.value??0)*2)/2;for(let s=0;s<(this.compact?1:this.max??5)*2;s++){const i=(s+1)/2;t+=`<svg aria-hidden="true" ${i===e?"selected":""}><use href="#star"></use></svg>`}return t}}De([a],xe.prototype,"color",2),De([a({mode:"boolean"})],xe.prototype,"compact",2),De([a({converter:st})],xe.prototype,"count",2),De([a({converter:st})],xe.prototype,"max",2),De([a],xe.prototype,"size",2),De([a({converter:st})],xe.prototype,"value",2);const Eu=l`
|
|
476
476
|
${w("inline-flex")}
|
|
477
477
|
|
|
478
|
-
:host{--icon-size:16px;align-items:center;color:${
|
|
479
|
-
:host([color]) svg{fill:CanvasText}:host([color]:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,:host([color]) svg[selected] ~ svg{fill:Canvas;stroke:CanvasText}`)),
|
|
480
|
-
:host{--step-rate:${t}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(t,e){this.$fastController.isConnected?this.value=e:this._value=e}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(t){this.setValidity({customError:!!t},t)}setValidity(t,e,s){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!e,...t},e??this.validationMessage,s)}}get value(){return m.track(this,"value"),this._value.toString()}set value(t){if(!this.$fastController.isConnected){this._value=t.toString();return}const e=parseFloat(t),s=
|
|
478
|
+
:host{--icon-size:16px;align-items:center;color:${z};font-family:${$};font-size:${q};line-height:${ot};contain:layout style;user-select:none}:host(${_}){--icon-size:12px}:host(${S}){--icon-size:20px;font-size:${A};line-height:${D}}svg{width:var(--icon-size);height:var(--icon-size);fill:${Ga};margin-inline-end:${ht}}svg:nth-child(even){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host(${Lo}) svg{fill:${z}}:host(${Wt}) svg{fill:${Ws}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:${Ir}}:host(${Lo}:is([value^='-'],[value='0'])) svg,:host(${Lo}:not([value])) svg,:host(${Lo}) svg[selected] ~ svg{fill:${Ds}}:host(${Wt}:is([value^='-'],[value='0'])) svg,:host(${Wt}:not([value])) svg,:host(${Wt}) svg[selected] ~ svg{fill:${Us}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${Kt};font-weight:${N}}:host(${_}) .value-label,:host(${_}) ::slotted([slot='value']){margin-inline-start:${ht}}:host(${S}) .value-label,:host(${S}) ::slotted([slot='value']){margin-inline-start:${Yt}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${Kt}}:host(${_}) .count-label::before,:host(${_}) ::slotted([slot='count'])::before{margin-inline:${ht}}:host(${S}) .count-label::before,:host(${S}) ::slotted([slot='count'])::before{margin-inline:${Yt}}`.withBehaviors(et(l`
|
|
479
|
+
:host([color]) svg{fill:CanvasText}:host([color]:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,:host([color]) svg[selected] ~ svg{fill:Canvas;stroke:CanvasText}`)),Lu=f`<svg xmlns="http://www.w3.org/2000/svg" style="display: none"><symbol id="star" viewBox="0 0 12 12"><path d="M5.28347 1.54556C5.57692 0.95096 6.42479 0.950961 6.71825 1.54556L7.82997 3.79817L10.3159 4.15939C10.9721 4.25474 11.2341 5.06112 10.7592 5.52394L8.96043 7.27736L9.38507 9.75321C9.49716 10.4067 8.81122 10.9051 8.22431 10.5966L6.00086 9.42761L3.7774 10.5966C3.19049 10.9051 2.50455 10.4067 2.61664 9.75321L3.04128 7.27736L1.24246 5.52394C0.767651 5.06111 1.02966 4.25474 1.68584 4.15939L4.17174 3.79817L5.28347 1.54556Z" /></symbol></svg>`;function Hu(){return f` ${Lu} ${o=>f`${f.partial(o.generateIcons())}`}<slot name="value"><span class="value-label" aria-hidden="true">${o=>o.value}</span></slot><slot name="count"><span class="count-label" aria-hidden="true">${o=>o.formattedCount}</span></slot>`}const Du=Hu(),Vu=xe.compose({name:`${p.prefix}-rating-display`,template:Du,styles:Eu});Vu.define(p.registry);const ju=gt,Ru={singleValue:"single-value"};function an(o,t,e,s){let i=Os(0,1,(o-t)/(e-t));return s===yt.rtl&&(i=1-i),i}var qu=Object.defineProperty,Gu=Object.getOwnPropertyDescriptor,Y=(o,t,e,s)=>{for(var i=s>1?void 0:s?Gu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&qu(t,e,i),i};class V extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=yt.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>"",this.disabled=!1,this.min="",this.max="",this.step="",this.mode=Ru.singleValue,this.keypressHandler=t=>{if(!this.disabled)switch(t.key){case Fs:t.preventDefault(),this.value=this.direction!==yt.rtl&&this.orientation!==gt.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case As:t.preventDefault(),this.value=this.direction!==yt.rtl&&this.orientation!==gt.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case zs:case Ts:t.shiftKey||(t.preventDefault(),this.increment());break;case Bs:case Ps:t.shiftKey||(t.preventDefault(),this.decrement());break}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.top,this.trackMinHeight=t.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{this.addEventListener("keydown",this.keypressHandler),t&&this.removeEventListener("keydown",this.keypressHandler)},this.handleThumbPointerDown=t=>{const e=t!==null?window.addEventListener:window.removeEventListener;e("pointerup",this.handleWindowPointerUp),e("pointermove",this.handlePointerMove,{passive:!0}),e("touchmove",this.handlePointerMove,{passive:!0}),e("touchend",this.handleWindowPointerUp),this.isDragging=t!==null},this.handlePointerMove=t=>{if(this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,s=this.orientation===gt.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft;this.value=`${this.calculateNewValue(s)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=t=>{if(t===null||!this.disabled){const e=t!==null?window.addEventListener:window.removeEventListener,s=t!==null?document.addEventListener:document.removeEventListener;if(e("pointerup",this.handleWindowPointerUp),s("mouseleave",this.handleWindowPointerUp),e("pointermove",this.handlePointerMove),t){this.setupTrackConstraints();const i=this.orientation===gt.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft;this.value=`${this.calculateNewValue(i)}`}}},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??ju.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}handleChange(t,e){switch(e){case"min":case"max":this.setSliderPosition(this.direction);case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const t=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=l`
|
|
480
|
+
:host{--step-rate:${t}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(t,e){this.$fastController.isConnected?this.value=e:this._value=e}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(t){this.setValidity({customError:!!t},t)}setValidity(t,e,s){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!e,...t},e??this.validationMessage,s)}}get value(){return m.track(this,"value"),this._value.toString()}set value(t){if(!this.$fastController.isConnected){this._value=t.toString();return}const e=parseFloat(t),s=Os(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(e)).toString();if(s!==t){this.value=s;return}this._value=t.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(this.direction),this.$emit("change"),this.setFormValue(t),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(t){this.setDisabledSideEffect(t)}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(t){this.value=t.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const t=parseFloat(this.min);if(!Number.isNaN(t))return t}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const t=parseFloat(this.max);if(!Number.isNaN(t))return t}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const t=parseFloat(this.step);if(!Number.isNaN(t)&&t>0)return t}return 1}orientationChanged(t,e){this.elementInternals.ariaOrientation=e??gt.horizontal,t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0),this.$fastController.isConnected&&this.setSliderPosition(this.direction)}connectedCallback(){super.connectedCallback(),this.direction=sr(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setSliderPosition(this.direction),m.getNotifier(this).subscribe(this,"max"),m.getNotifier(this).subscribe(this,"min"),m.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),this.setupListeners(!0),m.getNotifier(this).unsubscribe(this,"max"),m.getNotifier(this).unsubscribe(this,"min"),m.getNotifier(this).unsubscribe(this,"step")}increment(){const t=this.direction!==yt.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,e=this.convertToConstrainedValue(t),s=e<this.maxAsNumber?`${e}`:`${this.maxAsNumber}`;this.value=s}decrement(){const t=this.direction!==yt.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),e=this.convertToConstrainedValue(t),s=e>this.minAsNumber?`${e}`:`${this.minAsNumber}`;this.value=s}setSliderPosition(t){const s=(1-an(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,t))*100,i=`calc(100% - ${s}%)`,r=this.orientation!==gt.vertical&&t===yt.rtl?`${s}%`:`calc(100% - ${s}%)`;this.position=`--slider-thumb: ${i}; --slider-progress: ${r}`}updateStepMultiplier(){const t=this.stepAsNumber+"",e=this.stepAsNumber%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(t){this.setupTrackConstraints();const e=an(t,this.orientation===gt.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===gt.vertical?this.trackHeight:this.trackWidth,this.direction),s=(this.maxAsNumber-this.minAsNumber)*e+this.minAsNumber;return this.convertToConstrainedValue(s)}convertToConstrainedValue(t){isNaN(t)&&(t=this.minAsNumber);let e=t-this.minAsNumber;const s=Math.round(e/this.stepAsNumber),i=e-s*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return e=i>=Number(this.stepAsNumber)/2?e-i+Number(this.stepAsNumber):e-i,e+this.minAsNumber}setDisabledSideEffect(t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=t.toString(),this.tabIndex=t?-1:0)}}V.formAssociated=!0,Y([a],V.prototype,"size",2),Y([a({attribute:"value",mode:"fromView"})],V.prototype,"initialValue",2),Y([k],V.prototype,"direction",2),Y([k],V.prototype,"isDragging",2),Y([k],V.prototype,"position",2),Y([k],V.prototype,"trackWidth",2),Y([k],V.prototype,"trackMinWidth",2),Y([k],V.prototype,"trackHeight",2),Y([k],V.prototype,"trackLeft",2),Y([k],V.prototype,"trackMinHeight",2),Y([k],V.prototype,"valueTextFormatter",2),Y([a({mode:"boolean"})],V.prototype,"disabled",2),Y([a({converter:Ms})],V.prototype,"min",2),Y([a({converter:Ms})],V.prototype,"max",2),Y([a({converter:Ms})],V.prototype,"step",2),Y([a],V.prototype,"orientation",2),Y([a],V.prototype,"mode",2);const Wu=l`
|
|
481
481
|
${w("inline-grid")}
|
|
482
482
|
|
|
483
|
-
:host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--slider-direction:90deg;--border-radius:${
|
|
484
|
-
var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${
|
|
485
|
-
)}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host(${
|
|
486
|
-
.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}`));function
|
|
483
|
+
:host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--slider-direction:90deg;--border-radius:${T};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host(${_}){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${_t}}:host(${Z}){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${Ft};outline:1px solid ${Ks}}.track{position:relative;background-color:${fe};border-radius:var(--border-radius);grid-row:2 / 2;grid-column:2 / 2;width:100%;height:var(--track-size);forced-color-adjust:none}:host(${Z}) .track{top:var(--track-overhang);bottom:var(--track-overhang);width:var(--track-size);height:100%}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(${Z}) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient(
|
|
484
|
+
var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${O} calc(var(--step-rate) - 1px),${O} var(--step-rate)
|
|
485
|
+
)}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host(${Z}) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${ct};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${O} inset;border:calc(var(--thumb-size) * 0.05) solid ${be};box-sizing:border-box}.thumb,.track::before{background-color:${Te}}:host(:hover) .thumb,:host(:hover) .track::before{background-color:${Ze}}:host(:active) .thumb,:host(:active) .track::before{background-color:${Je}}:host(:disabled) .track{background-color:${ze}}:host(:disabled) .thumb,:host(:disabled) .track::before{background-color:${H}}`.withBehaviors(et(l`
|
|
486
|
+
.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}`));function Xu(o={}){return f`<template tabindex="${t=>t.disabled?null:0}" @pointerdown="${(t,e)=>t.handlePointerDown(e.event)}"><div ${Tt("track")} part="track-container" class="track" style="${t=>t.position}"></div><div ${Tt("thumb")} part="thumb-container" class="thumb-container" style="${t=>t.position}" @pointerdown="${(t,e)=>t.handleThumbPointerDown(e.event)}"><slot name="thumb">${ft(o.thumb)}</slot></div></template>`}const Uu=Xu({thumb:'<div class="thumb"></div>'}),Ku=V.compose({name:`${p.prefix}-slider`,template:Uu,styles:Wu});Ku.define(p.registry);var Yu=Object.defineProperty,Qu=Object.getOwnPropertyDescriptor,ln=(o,t,e,s)=>{for(var i=s>1?void 0:s?Qu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Yu(t,e,i),i};class di extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}ln([a],di.prototype,"size",2),ln([a],di.prototype,"appearance",2);const Zu=l`
|
|
487
487
|
${w("flex")}
|
|
488
488
|
|
|
489
|
-
:host{display:flex;align-items:center;height:32px;width:32px;contain:content}:host(${
|
|
489
|
+
:host{display:flex;align-items:center;height:32px;width:32px;contain:content}:host(${Ue}){height:20px;width:20px}:host(${Ke}){height:24px;width:24px}:host(${_}){height:28px;width:28px}:host(${S}){height:36px;width:36px}:host(${Oo}){height:40px;width:40px}:host(${oa}){height:44px;width:44px}.progress{height:100%;width:100%}.background{fill:none;stroke:${Us};stroke-width:1.5px}:host(${ir}) .background{stroke:rgba(255,255,255,0.2)}.indicator{stroke:${ur};fill:none;stroke-width:1.5px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 3s cubic-bezier(0.53,0.21,0.29,0.67) infinite}:host(${ir}) .indicator{stroke:${Aa}}@keyframes spin-infinite{0%{stroke-dasharray:0.01px 43.97px;transform:rotate(0deg)}50%{stroke-dasharray:21.99px 21.99px;transform:rotate(450deg)}100%{stroke-dasharray:0.01px 43.97px;transform:rotate(1080deg)}}`,Ju=f`<slot name="indicator"><svg class="progress" part="progress" viewBox="0 0 16 16"><circle class="background" cx="8px" cy="8px" r="7px"></circle><circle class="indicator" cx="8px" cy="8px" r="7px"></circle></svg></slot>`,tp=di.compose({name:`${p.prefix}-spinner`,template:Ju,styles:Zu});tp.define(p.registry);class ep extends $t{constructor(){super(),this.elementInternals.role="switch"}}function op(o={}){return f`<template tabindex="${t=>t.disabled?void 0:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="switch">${ft(o.switch)}</slot></template>`}const sp=op({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),ip=l`
|
|
490
490
|
${w("inline-flex")}
|
|
491
491
|
|
|
492
|
-
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${ht};width:40px;height:20px;background-color:${kt};border:1px solid ${
|
|
493
|
-
:host{border-color:InactiveBorder}:host(${v}),:host(${v}:active),:host(${v}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${v}) .checked-indicator,:host(${v}:hover) .checked-indicator,:host(${v}:active) .checked-indicator{background-color:ButtonFace}`)),
|
|
492
|
+
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${ht};width:40px;height:20px;background-color:${kt};border:1px solid ${fe};border-radius:${ct};cursor:pointer}:host(:hover){background:none;border-color:${to}}:host(:active){border-color:${eo}}:host(:disabled),:host([readonly]){border:1px solid ${At};background-color:none;pointer:default}:host(${v}){background:${Te};border-color:${Te}}:host(${v}:hover){background:${Ze};border-color:${Ze}}:host(${v}:active){background:${Je};border-color:${Je}}:host(${v}:disabled){background:${ze};border-color:${At}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${rt};transition-duration:${jr};transition-timing-function:${ei};transition-property:margin-inline-start}:host(${v}) .checked-indicator{background-color:${Qe};margin-inline-start:calc(100% - 14px)}:host(${v}:hover) .checked-indicator{background:${$a}}:host(${v}:active) .checked-indicator{background:${va}}:host(:hover) .checked-indicator{background-color:${aa}}:host(:active) .checked-indicator{background-color:${la}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${H}}:host(${v}:disabled) .checked-indicator{background:${H}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${nt};outline:${se} solid ${nt};box-shadow:${Zo},0 0 0 2px ${Ft}}`.withBehaviors(et(l`
|
|
493
|
+
:host{border-color:InactiveBorder}:host(${v}),:host(${v}:active),:host(${v}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${v}) .checked-indicator,:host(${v}:hover) .checked-indicator,:host(${v}:active) .checked-indicator{background-color:ButtonFace}`)),rp=ep.compose({name:`${p.prefix}-switch`,template:sp,styles:ip});rp.define(p.registry);class np extends x{}function ap(){return f`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const lp=ap(),cp=l`
|
|
494
494
|
${w("block")}
|
|
495
495
|
|
|
496
|
-
:host{box-sizing:border-box;padding:${ut} ${
|
|
497
|
-
:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}
|
|
496
|
+
:host{box-sizing:border-box;padding:${ut} ${Ot}}`,dp=np.compose({name:`${p.prefix}-tab-panel`,template:lp,styles:cp});dp.define(p.registry);var hp=Object.defineProperty,up=Object.getOwnPropertyDescriptor,pp=(o,t,e,s)=>{for(var i=s>1?void 0:s?up(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&hp(t,e,i),i};class hi extends x{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=l`
|
|
497
|
+
:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}pp([a({mode:"boolean"})],hi.prototype,"disabled",2),jt(hi,Dt);function gp(o={}){return f`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">${Vt(o)}<span class="tab-content"><slot></slot></span>${ee(o)}</template>`}const fp=gp({}),bp=l`
|
|
498
498
|
${w("inline-flex")}
|
|
499
499
|
|
|
500
|
-
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${
|
|
501
|
-
:host([aria-selected='true'])::after{background-color:Highlight}`)),
|
|
500
|
+
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${D};font-family:${$};font-size:${A};color:${Xt};fill:currentcolor;grid-row:1;padding:${ut} ${Ot};border-radius:${T}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${z};font-weight:${N}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${D};font-weight:${N}}:host([aria-selected='true'])::after{background-color:${Xo};border-radius:${ct};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Wo};border-radius:${ct};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${H}}::slotted([slot='start']),::slotted([slot='end']){display:flex}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}:host([disabled]){cursor:not-allowed;fill:${H};color:${H}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${_t};box-shadow:0 0 0 3px ${Ft};outline:1px solid ${Ks}}`.withBehaviors(et(l`
|
|
501
|
+
:host([aria-selected='true'])::after{background-color:Highlight}`)),mp=hi.compose({name:`${p.prefix}-tab`,template:fp,styles:bp});mp.define(p.registry);const $p={subtle:"subtle",transparent:"transparent"},cs=gt;var vp=Object.defineProperty,yp=Object.getOwnPropertyDescriptor,we=(o,t,e,s)=>{for(var i=s>1?void 0:s?yp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&vp(t,e,i),i};class bo extends x{constructor(){super(...arguments),this.orientation=cs.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>t.getAttribute("aria-disabled")==="true",this.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.handleTabClick=t=>{const e=t.currentTarget;e.nodeType===1&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case Bs:t.preventDefault(),this.adjustBackward(t);break;case zs:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case Ts:t.preventDefault(),this.adjustBackward(t);break;case Ps:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case Fs:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case As:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(s=>s.id===t),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const t="gridColumn",e="gridRow",s=this.isHorizontal()?t:e;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((i,r)=>{if(i.slot==="tab"){const n=this.activeTabIndex===r&&this.isFocusableElement(i),h=this.tabIds[r],g=this.tabpanelIds[r];i.setAttribute("id",h),i.setAttribute("aria-selected",n?"true":"false"),i.setAttribute("aria-controls",g),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=i,this.activeid=h)}i.style[t]="",i.style[e]="",i.style[s]=`${r+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((t,e)=>{const s=this.tabIds[e],i=this.tabpanelIds[e];t.setAttribute("id",i),t.setAttribute("aria-labelledby",s),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${Ao()}`)}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id")??`panel-${Ao()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===cs.horizontal}adjust(t){const e=this.tabs.filter(n=>this.isFocusableElement(n)),s=e.indexOf(this.activetab),i=Os(0,e.length-1,s+t),r=this.tabs.indexOf(e[i]);r>-1&&this.moveToTabByIndex(this.tabs,r)}adjustForward(t){const e=this.tabs;let s=0;for(s=this.activetab?e.indexOf(this.activetab)+1:1,s===e.length&&(s=0);s<e.length&&e.length>1;)if(this.isFocusableElement(e[s])){this.moveToTabByIndex(e,s);break}else{if(this.activetab&&s===e.indexOf(this.activetab))break;s+1>=e.length?s=0:s+=1}}adjustBackward(t){const e=this.tabs;let s=0;for(s=this.activetab?e.indexOf(this.activetab)-1:0,s=s<0?e.length-1:s;s>=0&&e.length>1;)if(this.isFocusableElement(e[s])){this.moveToTabByIndex(e,s);break}else s-1<0?s=e.length-1:s-=1}moveToTabByIndex(t,e){const s=t[e];this.activetab=s,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,s.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}we([a],bo.prototype,"orientation",2),we([a],bo.prototype,"activeid",2),we([k],bo.prototype,"tabs",2),we([k],bo.prototype,"tabpanels",2);class mo extends bo{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=$p.transparent}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===cs.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===cs.horizontal?this.previousActiveTabData.width/t.getBoundingClientRect().width:this.previousActiveTabData.height/t.getBoundingClientRect().height}applyUpdatedCSSValues(t){this.calculateAnimationProperties(t),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(t){t.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(t),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(t),t.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const t=this.tabs,s=(this.activetab||t[0])?.getBoundingClientRect(),i=this.getBoundingClientRect();this.activeTabData={x:s.x-i.x,y:s.y-i.y,height:s.height,width:s.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=l`
|
|
502
502
|
:host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=l`
|
|
503
|
-
:host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}
|
|
503
|
+
:host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}we([a],mo.prototype,"appearance",2),we([a({mode:"boolean"})],mo.prototype,"disabled",2),we([a],mo.prototype,"size",2),jt(mo,Dt);function kp(o={}){return f` ${Vt(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${pt("tabs")}></slot></div>${ee(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${pt("tabpanels")}></slot></div>`}const xp=kp({}),wp=l`
|
|
504
504
|
${w("grid")}
|
|
505
505
|
|
|
506
|
-
:host{box-sizing:border-box;font-family:${$};font-size:${
|
|
506
|
+
:host{box-sizing:border-box;font-family:${$};font-size:${A};line-height:${D};color:${Xt};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${H}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${H}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${H}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${H}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${T}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${H}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${js};color:${nr};fill:${ba}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${Go};fill:${Go};color:${z}}:host([size='small']) ::slotted(fluent-tab){font-size:${A};line-height:${D};padding:${io} ${Yt}}:host([size='large']) ::slotted(fluent-tab){font-size:${dt};line-height:${xt};padding:${Zs} ${Ot}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${nc};transition-timing-function:${qr}}:host ::slotted(fluent-tab)::after{height:${ie};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${ie};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${ie};border-radius:${ct};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${ie};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${ie};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${ie}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${io};padding-bottom:${io}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Jo};padding-bottom:${Jo}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${bt};padding-bottom:${bt}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${Yt};left:${Yt}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${Ot};left:${Ot}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${Ot};left:${Ot}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${io};bottom:${io}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${bt};bottom:${bt}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${ro};bottom:${ro}}`,Cp=mo.compose({name:`${p.prefix}-tabs`,template:xp,styles:wp});Cp.define(p.registry);const Sp={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Ip=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var Pp=Object.defineProperty,Bp=Object.getOwnPropertyDescriptor,F=(o,t,e,s)=>{for(var i=s>1?void 0:s?Bp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Pp(t,e,i),i};class I extends x{constructor(){super(...arguments),this.type=Sp.text,this._value=this.initialValue,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}controlSizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}defaultSlottedNodesChanged(t,e){this.$fastController.isConnected&&(this.controlLabel.hidden=!e?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!e}`)}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.control.value=t,this.setFormValue(t),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(t){return t.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(t){return this.setValidity(),this.$emit("change",t,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){return t.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(t){return t.target===this&&this.control?.focus(),!0}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const t=[...this.elementInternals.form.elements],e=t.find(i=>i.getAttribute("type")==="submit");if(e){e.click();return}t.filter(i=>Ip.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(t){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(t){return t.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setValidity(t=this.control.validity,e=this.validationMessage,s=this.control){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(t,e,s)}}}I.formAssociated=!0,F([a],I.prototype,"appearance",2),F([a],I.prototype,"autocomplete",2),F([a({mode:"boolean"})],I.prototype,"autofocus",2),F([a({attribute:"control-size"})],I.prototype,"controlSize",2),F([k],I.prototype,"defaultSlottedNodes",2),F([a],I.prototype,"dirname",2),F([a({mode:"boolean"})],I.prototype,"disabled",2),F([a({attribute:"form"})],I.prototype,"formAttribute",2),F([a({attribute:"value",mode:"fromView"})],I.prototype,"initialValue",2),F([a],I.prototype,"list",2),F([a({converter:st})],I.prototype,"maxlength",2),F([a({converter:st})],I.prototype,"minlength",2),F([a({mode:"boolean"})],I.prototype,"multiple",2),F([a],I.prototype,"name",2),F([a],I.prototype,"pattern",2),F([a],I.prototype,"placeholder",2),F([a({attribute:"readonly",mode:"boolean"})],I.prototype,"readOnly",2),F([a({mode:"boolean"})],I.prototype,"required",2),F([a({converter:st})],I.prototype,"size",2),F([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],I.prototype,"spellcheck",2),F([a],I.prototype,"type",2),F([k],I.prototype,"controlLabel",2),jt(I,Dt);const zp=l`
|
|
507
507
|
${w("block")}
|
|
508
508
|
|
|
509
|
-
:host{font-family:${$};font-size:${
|
|
509
|
+
:host{font-family:${$};font-size:${A};font-weight:${M};line-height:${D};max-width:400px}.label{display:flex;color:${z};padding-bottom:${sc};flex-shrink:0;padding-inline-end:${Kt}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${O};border:${U} solid ${be};border-bottom-color:${fe};border-radius:${T};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${ht};padding:0 ${Ot};position:relative;width:100%}:has(.control:user-invalid){border-color:${Oa}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${T});border-radius:0 0 ${T} ${T};border-bottom:2px solid ${Xo};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${rc};transition-delay:${ao}}.control{width:100%;height:100%;box-sizing:border-box;color:${z};border-radius:${T};background:${kt};font-family:${$};font-weight:${M};font-size:${A};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${ca}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${rt};font-size:${Ae}}:host ::slotted([slot='start']){padding-right:${ht}}:host ::slotted([slot='end']){padding-left:${ht};gap:${Kt}}:host(:hover) .root{border-color:${Wo};border-bottom-color:${to}}:host(:active) .root{border-color:${Xs}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${jr};transition-delay:${lo}}:host(:focus-within:active) .root:after{border-bottom-color:${pr}}:host(${R}:focus-within) .root{border:${U} solid ${be}}:host(:focus-within) .control{color:${z}}:host([disabled]) .root{background:${kt};border:${U} solid ${At}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${H}}::selection{color:${Qe};background-color:${Ca}}:host(${_}) .control{font-size:${q};font-weight:${M};line-height:${ot}}:host(${_}) .root{height:24px;gap:${ht};padding:0 ${Yt}}:host(${_}) ::slotted([slot='start']),:host(${_}) ::slotted([slot='end']){font-size:${dt}}:host(${S}) .control{font-size:${dt};font-weight:${M};line-height:${xt}}:host(${S}) .root{height:40px;gap:${Qt};padding:0 ${ut}}:host(${S}) ::slotted([slot='start']),:host(${S}) ::slotted([slot='end']){font-size:${Uo}}:host(${Ge}) .root{background:${kt};border:0;border-radius:0;border-bottom:${U} solid ${fe}}:host(${Ge}:hover) .root{border-bottom-color:${to}}:host(${Ge}:active) .root{border-bottom-color:${eo}}:host(${Ge}:focus-within) .root{border:0;border-bottom-color:${eo}}:host(${Ge}[disabled]) .root{border-bottom-color:${At}}:host(${Fo}) .root,:host(${_o}) .root{border:${U} solid ${nt};box-shadow:${Lr}}:host(${Fo}) .root{background:${O}}:host(${_o}) .root{background:${Vs}}:host(${Fo}:hover) .root,:host(${_o}:hover) .root{border-color:${gr}}:host(${Fo}:active) .root,:host(${_o}:active) .root{border-color:${gr};background:${Vs}}`;function Tp(o={}){return f`<template @beforeinput="${(t,e)=>t.beforeinputHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><label part="label" for="control" class="label" ${Tt("controlLabel")}><slot ${pt({property:"defaultSlottedNodes",filter:Yn})}></slot></label><div class="root" part="root">${Vt(o)}<input class="control" part="control" id="control" @change="${(t,e)=>t.changeHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" ?autofocus="${t=>t.autofocus}" autocomplete="${t=>t.autocomplete}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" ?multiple="${t=>t.multiple}" name="${t=>t.name}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" spellcheck="${t=>t.spellcheck}" type="${t=>t.type}" value="${t=>t.initialValue}" ${Tt("control")} />${ee(o)}</div></template>`}const Ap=Tp(),Fp=I.compose({name:`${p.prefix}-text-input`,template:Ap,styles:zp,shadowOptions:{delegatesFocus:!0}});Fp.define(p.registry);var _p=Object.defineProperty,Op=Object.getOwnPropertyDescriptor,Ht=(o,t,e,s)=>{for(var i=s>1?void 0:s?Op(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&_p(t,e,i),i};class St extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}sizeChanged(t,e){t&&c(this.elementInternals,`size-${t}`,!1),e&&c(this.elementInternals,`size-${e}`,!0)}fontChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}weightChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}alignChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)})}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(t,e){switch(e){case"nowrap":case"truncate":case"italic":case"underline":case"strikethrough":case"block":c(this.elementInternals,e,!!this[e]);break}}}Ht([a({mode:"boolean"})],St.prototype,"nowrap",2),Ht([a({mode:"boolean"})],St.prototype,"truncate",2),Ht([a({mode:"boolean"})],St.prototype,"italic",2),Ht([a({mode:"boolean"})],St.prototype,"underline",2),Ht([a({mode:"boolean"})],St.prototype,"strikethrough",2),Ht([a({mode:"boolean"})],St.prototype,"block",2),Ht([a],St.prototype,"size",2),Ht([a],St.prototype,"font",2),Ht([a],St.prototype,"weight",2),Ht([a],St.prototype,"align",2);const cn=l.partial`:is([state--nowrap], :state(nowrap))`,dn=l.partial`:is([state--truncate], :state(truncate))`,hn=l.partial`:is([state--underline], :state(underline))`,un=l.partial`:is([state--strikethrough], :state(strikethrough))`,Mp=l`
|
|
510
510
|
${w("inline")}
|
|
511
511
|
|
|
512
|
-
:host{contain:content;font-family:${$};font-size:${
|
|
513
|
-
${
|
|
512
|
+
:host{contain:content;font-family:${$};font-size:${A};line-height:${D};font-weight:${M};text-align:start}:host(${cn}),:host(${cn}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${dn}),:host(${dn}) ::slotted(*){text-overflow:ellipsis}:host(:is([state--block],:state(block))){display:block}:host(:is([state--italic],:state(italic))){font-style:italic}:host(${hn}){text-decoration-line:underline}:host(${un}){text-decoration-line:line-through}:host(${hn}${un}){text-decoration-line:line-through underline}:host(:is([state--size-100],:state(size-100))){font-size:${so};line-height:${Yo}}:host(:is([state--size-200],:state(size-200))){font-size:${q};line-height:${ot}}:host(:is([state--size-400],:state(size-400))){font-size:${dt};line-height:${xt}}:host(:is([state--size-500],:state(size-500))){font-size:${Ae};line-height:${Qo}}:host(:is([state--size-600],:state(size-600))){font-size:${Uo};line-height:${_r}}:host(:is([state--size-700],:state(size-700))){font-size:${zr};line-height:${Or}}:host(:is([state--size-800],:state(size-800))){font-size:${Tr};line-height:${Mr}}:host(:is([state--size-900],:state(size-900))){font-size:${Ar};line-height:${Nr}}:host(:is([state--size-1000],:state(size-1000))){font-size:${Fr};line-height:${Er}}:host(:is([state--monospace],:state(monospace))){font-family:${Kl}}:host(:is([state--numeric],:state(numeric))){font-family:${Yl}}:host(:is([state--medium],:state(medium))){font-weight:${Ql}}:host(:is([state--semibold],:state(semibold))){font-weight:${N}}:host(:is([state--bold],:state(bold))){font-weight:${Ko}}:host(:is([state--center],:state(center))){text-align:center}:host(:is([state--end],:state(end))){text-align:end}:host(:is([state--justify],:state(justify))){text-align:justify}::slotted(*){display:inherit;font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,Np=f`<slot></slot>`,Ep=St.compose({name:`${p.prefix}-text`,template:Np,styles:Mp});Ep.define(p.registry);var Lp=Object.defineProperty,Hp=Object.getOwnPropertyDescriptor,pn=(o,t,e,s)=>{for(var i=s>1?void 0:s?Hp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Lp(t,e,i),i};class ui extends Zt{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const t=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=t,c(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}pn([a({mode:"boolean"})],ui.prototype,"pressed",2),pn([a({mode:"boolean"})],ui.prototype,"mixed",2);const Dp=l`
|
|
513
|
+
${os}
|
|
514
514
|
|
|
515
|
-
:host(${
|
|
516
|
-
:host(${
|
|
515
|
+
:host(${B}){border-color:${be};background-color:${lr};color:${z};border-width:${U}}:host(${B}:hover){border-color:${Wo};background-color:${Hs}}:host(${B}:active){border-color:${Xs};background-color:${Ds}}:host(${B}${it}){border-color:transparent;background-color:${Ba};color:${Ut}}:host(${B}${it}:hover){background-color:${cr}}:host(${B}${it}:active){background-color:${dr}}:host(${B}${C}){border-color:transparent;background-color:${Ia};color:${ra}}:host(${B}${C}:hover){background-color:${js};color:${Do}}:host(${B}${C}:active){background-color:${Go};color:${Vo}}:host(${B}${R}),:host(${B}${X}){background-color:${Pa}}:host(${B}${R}:hover),:host(${B}${X}:hover){background-color:${Rs}}:host(${B}${R}:active),:host(${B}${X}:active){background-color:${qs}}:host(${B}${X}){border-color:transparent;color:${na}}:host(${B}${X}:hover){color:${jo}}:host(${B}${X}:active){color:${Ro}}`.withBehaviors(et(l`
|
|
516
|
+
:host(${B}),:host(${B}${it}),:host(${B}${C}),:host(${B}${R}),:host(${B}${X}){background:SelectedItem;color:SelectedItemText}`)),Vp=ri(),jp=ui.compose({name:`${p.prefix}-toggle-button`,template:Vp,styles:Dp});jp.define(p.registry);
|