@fluentui/web-components 3.0.0-beta.43 → 3.0.0-beta.45
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/drawer-body/drawer-body.d.ts +17 -0
- package/dist/esm/drawer-body/drawer-body.js +17 -0
- package/dist/esm/drawer-body/drawer-body.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 +17 -0
- package/dist/web-components.js +2 -2
- package/dist/web-components.min.js +91 -91
- 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 $o;const fi="fast-kernel";try{if(document.currentScript)$o=document.currentScript.getAttribute(fi);else{const o=document.getElementsByTagName("script");$o=o[o.length-1].getAttribute(fi)}}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",bi=()=>{};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 mi={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},mi));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}},mi))}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 $i(){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=bi}const tt=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),vi=o=>o,gn=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:vi}):{createHTML:vi};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 yi{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 yi(u))),b}const n=$i();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 gi;s=void 0,gi=P.propertySource[P.propertyName],s=this,d===gi&&(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 ki=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 ki.get()},setEvent(o){ki.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 xi(o,t,e=m.isVolatileBinding(o)){return new mn(o,t,e)}class wi extends yo{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}Ce(wi);function Ci(o,t){return new wi(o,t)}let Si;function Ii(o){return o.map(t=>t instanceof at?Ii(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(Si),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(Ii(this.styles)),this}static setDefaultStrategy(t){Si=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 Pi=()=>`--v${$n}${++vn}`;function Bi(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(xi(g),Pi()).createCSS(r):g instanceof yo?g=new vs(g,Pi()).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}=Bi(o,t),i=new at(e);return s.length?i.withBehaviors(...s):i};class zi{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(zi),l.partial=(o,...t)=>{const{styles:e,behaviors:s}=Bi(o,t);return new zi(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}`,Ti=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 Ti.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 Ti.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 Ai(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(){Ai(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){Ai(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 Fi=(o,t)=>`${o}.${t}`,_i={},zt={index:0,node:null};function Oi(o){o.startsWith("fast-")||Z.warn(1204,{name:o})}const Sn=new Proxy(document.createElement("div"),{get(o,t){Oi(t);const e=Reflect.get(o,t);return we(e)?e.bind(o):e},set(o,t,e){return Oi(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=_i[e];if(!r){const n=`_${e}`;_i[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 Mi(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(Ci(()=>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=Fi(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 Ni(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=Fi(t,s);switch(e.nodeType){case 1:Mi(o,t,e,i,s),Ni(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 Ei="TEMPLATE",Cs={compile(o,t,e=Se.policy){let s;if(Pt(o)){s=document.createElement(Ei),s.innerHTML=e.createHTML(o);const n=s.content.firstElementChild;n!==null&&n.tagName===Ei&&(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 Mi(r,"",s,"h",0,!0),(zn(i.firstChild,t)||i.childNodes.length===1&&Object.keys(t).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),Ni(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(xi(d));else if(d instanceof yo)d=new Ie(d);else if(!(b=vt.getForInstance(d))){const P=d;d=new Ie(Ci(()=>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 Li extends ws{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}vt.define(Li);const Tt=o=>new Li(o),_n=o=>o.nodeType===1,je=o=>o?t=>t.nodeType===1&&t.matches(o):_n;class Hi 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 Di="slotchange";class Vi extends Hi{observe(t){t.addEventListener(Di,this)}disconnect(t){t.removeEventListener(Di,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}vt.define(Vi);function pt(o){return Pt(o)&&(o={property:o}),new Vi(o)}class ji extends Hi{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=bi,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(ji);function On(o){return Pt(o)&&(o={property:o}),new ji(o)}const Ri="boolean",qi="reflect",Co=Object.freeze({locate:$i()}),Mn={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Gi(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const st={toView(o){const t=Gi(o);return t&&t.toString()},fromView:Gi};class ds{constructor(t,e,s=e.toLowerCase(),i=qi,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===Ri&&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 qi:const r=this.converter;Se.setAttribute(t,this.attribute,r!==void 0?r.toView(i):i);break;case Ri: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 Wi={mode:"open"},Xi={},Ui=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?Wi:e.shadowOptions===null?void 0:Object.assign(Object.assign({},Wi),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Xi:Object.assign(Object.assign({},Xi),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 Ui.has(t)||So.getByType(t)?new It(class extends t{},e):new It(t,e)}static registerBaseType(t){Ui.add(t)}}It.getByType=So.getByType,It.getForInstance=So.getForInstance;const Nn={bubbles:!0,composed:!0,cancelable:!0},Ss="isConnected",Ki=new WeakMap;function Io(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:Ki.get(o))!==null&&e!==void 0?e:null}let Yi;class Po extends yi{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"&&Ki.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 Yi(t,s)}static setStrategy(t){Yi=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){Zi(Bo(t),this.sheets)}removeStylesFrom(t){Ji(Bo(t),this.sheets)}}hs.styleSheetCache=new Map;let En=0;const Ln=()=>`fast-${++En}`;function Qi(o){return o===document?document.body:o}class Hn{constructor(t){this.styles=t,this.styleClass=Ln()}addStylesTo(t){t=Qi(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=Qi(Bo(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let s=0,i=e.length;s<i;++s)t.removeChild(e[s])}}let Zi=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},Ji=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(at.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Zi=(o,t)=>{o.adoptedStyleSheets.push(...t)},Ji=(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 tr(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 tr(o)}const x=Object.assign(tr(HTMLElement),{from:jn,define:Vn,compose:Dn}),gt={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 er(...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()}},or=o=>o.closest("[dir]")?.dir==="rtl"?yt.rtl:yt.ltr;function ft(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 Dt{}function te(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=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),jt(lt,Dt);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))`,Rt=l.partial`:is([state--ghost], :state(ghost))`,sr=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))`,qt=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))`,ir=l.partial`:is([state--align-start], :state(align-start))`,Gt=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))`,Wt=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)",rr="var(--colorNeutralForeground1Hover)",sa="var(--colorNeutralForeground1Pressed)",Xt="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)",Ut="var(--colorNeutralForegroundOnBrand)",Ye="var(--colorNeutralForegroundInverted)",ma="var(--colorNeutralForegroundInvertedHover)",$a="var(--colorNeutralForegroundInvertedPressed)",nr="var(--colorNeutralForegroundStaticInverted)",Es="var(--colorBrandForeground1)",va="var(--colorBrandForeground2)",ya="var(--colorNeutralForeground1Static)",M="var(--colorNeutralBackground1)",Ls="var(--colorNeutralBackground1Hover)",Hs="var(--colorNeutralBackground1Pressed)",ar="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)",lr="var(--colorBrandBackgroundHover)",cr="var(--colorBrandBackgroundPressed)",Pa="var(--colorBrandBackgroundSelected)",ze="var(--colorCompoundBrandBackground)",Qe="var(--colorCompoundBrandBackgroundHover)",Ze="var(--colorCompoundBrandBackgroundPressed)",dr="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)",hr="var(--colorBrandStroke1)",Xs="var(--colorBrandStroke2)",Wo="var(--colorCompoundBrandStroke)",Aa="var(--colorCompoundBrandStrokeHover)",ur="var(--colorCompoundBrandStrokePressed)",At="var(--colorNeutralStrokeDisabled)",nt="var(--colorTransparentStroke)",pr="var(--colorTransparentStrokeInteractive)",Us="var(--colorStrokeFocus1)",Ft="var(--colorStrokeFocus2)",gr="var(--colorPaletteRedBackground1)",Fa="var(--colorPaletteRedBackground2)",fr="var(--colorPaletteRedBackground3)",br="var(--colorPaletteRedBorder1)",_a="var(--colorPaletteRedBorder2)",mr="var(--colorPaletteRedForeground1)",Oa="var(--colorPaletteRedForeground2)",$r="var(--colorPaletteRedForeground3)",vr="var(--colorPaletteGreenBackground1)",yr="var(--colorPaletteGreenBackground3)",Ma="var(--colorPaletteGreenBorder1)",Na="var(--colorPaletteGreenBorder2)",Ea="var(--colorPaletteGreenForeground1)",La="var(--colorPaletteGreenForeground2)",Ha="var(--colorPaletteGreenForeground3)",kr="var(--colorPaletteDarkOrangeBackground1)",xr="var(--colorPaletteDarkOrangeBackground3)",wr="var(--colorPaletteDarkOrangeBorder1)",Da="var(--colorPaletteDarkOrangeForeground1)",Cr="var(--colorPaletteDarkOrangeForeground3)",Va="var(--colorPaletteYellowBackground1)",ja="var(--colorPaletteYellowBackground3)",Ra="var(--colorPaletteYellowBorder1)",Ks="var(--colorPaletteYellowForeground2)",Sr="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)",Ir="var(--borderRadiusLarge)",Pr="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)",Br="var(--fontSizeHero700)",zr="var(--fontSizeHero800)",Tr="var(--fontSizeHero900)",Ar="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)",Fr="var(--lineHeightBase600)",_r="var(--lineHeightHero700)",Or="var(--lineHeightHero800)",Mr="var(--lineHeightHero900)",Nr="var(--lineHeightHero1000)",Er="var(--shadow2)",Qo="var(--shadow4)",Ql="var(--shadow8)",Lr="var(--shadow16)",Zl="var(--shadow28)",Hr="var(--shadow64)",K="var(--strokeWidthThin)",oe="var(--strokeWidthThick)",se="var(--strokeWidthThicker)",Dr="var(--strokeWidthThickest)",ht="var(--spacingHorizontalXXS)",Kt="var(--spacingHorizontalXS)",Yt="var(--spacingHorizontalSNudge)",Qt="var(--spacingHorizontalS)",Ot="var(--spacingHorizontalMNudge)",ut="var(--spacingHorizontalM)",Jl="var(--spacingHorizontalL)",tc="var(--spacingHorizontalXL)",ec="var(--spacingHorizontalXXL)",Zo="var(--spacingVerticalXXS)",oc="var(--spacingVerticalXS)",so="var(--spacingVerticalSNudge)",bt="var(--spacingVerticalS)",io="var(--spacingVerticalMNudge)",sc="var(--spacingVerticalM)",Qs="var(--spacingVerticalL)",ro="var(--spacingVerticalXXL)",ic="var(--durationUltraFast)",Zs="var(--durationFaster)",Vr="var(--durationNormal)",Js="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)",ti="var(--curveEasyEase)",ei="var(--curveLinear)",dc=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:${A};font-family:${$};font-size:${F};font-weight:${N};line-height:${V};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${kt};border:none;box-sizing:border-box;color:${T};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 ${Us};box-shadow:inset 0 0 0 1px ${Ft}}:host(${X}) .button{color:${D}}:host(${X}) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host(${pe}) .content{display:block}:host(${pe}) .default-marker-collapsed,:host(${pe}) ::slotted([slot='marker-collapsed']),:host(:not(${pe})) :is(.default-marker-expanded,.content),:host(:not(${pe})) ::slotted([slot='marker-expanded']){display:none}:host(${pe}) ::slotted([slot='marker-expanded']),:host(:not(${pe})) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${F};line-height:${V}}:host(${O}) .heading{font-size:${G};line-height:${ot}}:host(${S}) .heading{font-size:${dt};line-height:${xt}}:host(${_o}) .heading{font-size:${Te};line-height:${Yo}}: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(${oa}${Gt}) .heading{grid-template-columns:auto 1fr}:host(${Gt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,hc=f.partial(`<svg
|
|
5
5
|
width="20"
|
|
6
6
|
height="20"
|
|
7
7
|
viewBox="0 0 20 20"
|
|
@@ -27,13 +27,13 @@ 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 pc(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>${
|
|
30
|
+
</svg>`);function pc(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 gc=pc({collapsedIcon:hc,expandedIcon:uc}),fc=lt.compose({name:`${p.prefix}-accordion-item`,template:gc,styles:dc});fc.define(p.registry);const oi={single:"single",multi:"multi"};var bc=Object.defineProperty,mc=Object.getOwnPropertyDescriptor,qr=(o,t,e,s)=>{for(var i=s>1?void 0:s?mc(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&&bc(t,e,i),i};class si extends x{constructor(){super(...arguments),this.expandmode=oi.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===oi.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===oi.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")))})}}qr([a({attribute:"expand-mode"})],si.prototype,"expandmode",2),qr([k],si.prototype,"slottedAccordionItems",2);const $c=l`
|
|
31
31
|
${w("flex")}
|
|
32
32
|
|
|
33
|
-
:host{flex-direction:column;width:100%;contain:content}`;function vc(){return f`<template><slot ${
|
|
33
|
+
:host{flex-direction:column;width:100%;contain:content}`;function vc(){return f`<template><slot ${pt({property:"slottedAccordionItems",filter:je()})}></slot></template>`}const yc=vc(),kc=si.compose({name:`${p.prefix}-accordion`,template:yc,styles:$c});kc.define(p.registry);const ts={submit:"submit",reset:"reset",button:"button"},xc={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var wc=Object.defineProperty,Cc=Object.getOwnPropertyDescriptor,mt=(o,t,e,s)=>{for(var i=s>1?void 0:s?Cc(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&&wc(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 xc){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===zo){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 Ae 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],Ae.prototype,"appearance",2),mt([a],Ae.prototype,"shape",2),mt([a],Ae.prototype,"size",2),mt([a({attribute:"icon-only",mode:"boolean"})],Ae.prototype,"iconOnly",2),jt(Ae,Dt);const Gr=l`
|
|
34
34
|
${w("inline-flex")}
|
|
35
35
|
|
|
36
|
-
:host{--icon-spacing:${
|
|
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:${M};color:${T};border:${K} solid ${fe};padding:0 ${ut};min-width:96px;border-radius:${A};font-size:${F};font-family:${$};font-weight:${E};line-height:${V};transition-duration:${Zs};transition-property:background,border,color;transition-timing-function:${ti};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Ls};color:${rr};border-color:${Go}}:host(:hover:active){background-color:${Hs};border-color:${Ws};color:${sa};outline-style:none}:host(:focus-visible){border-color:${nt};outline:${oe} solid ${nt};box-shadow:${Qo},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(${Pe}){min-width:32px;max-width:32px}:host(${O}){--icon-spacing:${Kt};min-height:24px;min-width:64px;padding:0 ${Qt};border-radius:${_t};font-size:${G};line-height:${ot};font-weight:${N}}:host(${O}${Pe}){min-width:24px;max-width:24px}:host(${S}){min-height:40px;border-radius:${Ir};padding:0 ${Jl};font-size:${dt};line-height:${xt}}:host(${S}${Pe}){min-width:40px;max-width:40px}:host(${S}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${Ge},${Ge}:focus-visible)){border-radius:${ct}}:host(:is(${We},${We}:focus-visible)){border-radius:${Ys}}:host(${it}){background-color:${Gs};color:${Ut};border-color:transparent}:host(${it}:hover){background-color:${lr}}:host(${it}:is(:hover,:hover:active)){border-color:transparent;color:${Ut}}:host(${it}:hover:active){background-color:${cr}}:host(${it}:focus-visible){border-color:${Ut};box-shadow:${Er},0 0 0 2px ${Ft}}:host(${q}){background-color:${kt}}:host(${q}:hover){background-color:${js}}:host(${q}:hover:active){background-color:${Rs}}:host(${C}){background-color:${Ca};color:${Xt};border-color:transparent}:host(${C}:hover){background-color:${Vs};color:${Ho};border-color:transparent}:host(${C}:hover:active){background-color:${qo};color:${Do};border-color:transparent}:host(${C}:hover) ::slotted(svg){fill:${Vo}}:host(${C}:hover:active) ::slotted(svg){fill:${jo}}:host(${U}){background-color:${kt};color:${Xt}}:host(${U}:hover){background-color:${js};color:${Vo}}:host(${U}:hover:active){background-color:${Rs};color:${jo}}:host(:is(${U},${U}:is(:hover,:active))){border-color:transparent}`,es=l`
|
|
37
37
|
${Gr}
|
|
38
38
|
|
|
39
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:${Be};border-color:${At};color:${D};cursor:not-allowed}:host(${it}:is(:disabled,[disabled-focusable])),:host(${it}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${q}:is(:disabled,[disabled-focusable])),:host(${q}: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(${U}:is(:disabled,[disabled-focusable])),:host(${U}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${kt}}`.withBehaviors(et(l`
|
|
@@ -41,8 +41,8 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
41
41
|
${Gr}
|
|
42
42
|
|
|
43
43
|
::slotted(a){position:absolute;inset:0}`.withBehaviors(et(l`
|
|
44
|
-
:host{border-color:LinkText;color:LinkText}`));function Ic(o={}){return f`<template tabindex="0" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}">${
|
|
45
|
-
${w("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${$};font-weight:${E};font-size:${F};border-radius:${ct};color:${rt};background-color:${Ro};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 ${K}) ${M}}: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 ${oe}) ${M}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${oo};font-weight:${N}}: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:${G}}: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:${Te}}: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:${Xo}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${A}}: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:${
|
|
44
|
+
:host{border-color:LinkText;color:LinkText}`));function Ic(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>${te(o)}</template>`}const Pc=Ic(),Bc=Ae.compose({name:`${p.prefix}-anchor-button`,template:Pc,styles:Sc});Bc.define(p.registry);const zc=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Tc=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Ac=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Fc=/\s+/g,_c=/[\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 Oc(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 Mc(o){return o=o.replace(zc,""),o=o.replace(Tc,""),o=o.replace(Fc," "),o=o.trim(),o}function Nc(o,t,e){return!o||(o=Mc(o),_c.test(o)||!e?.allowPhoneInitials&&Ac.test(o))?"":Oc(o,t,e?.firstInitialOnly)}const Wr={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"},Xr={neutral:"neutral",brand:"brand",colorful:"colorful",...Wr};var Ec=Object.defineProperty,Lc=Object.getOwnPropertyDescriptor,ie=(o,t,e,s)=>{for(var i=s>1?void 0:s?Lc(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&&Ec(t,e,i),i};const Nt=class ui 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===Xr.colorful,e=this.currentColor;c(this.elementInternals,`${e}`,!1),this.currentColor=t&&this.colorId?this.colorId:t?ui.colors[Dc(this.name??"")%ui.colors.length]:this.color??Xr.neutral,c(this.elementInternals,`${this.currentColor}`,!0)}generateInitials(){if(!this.name&&!this.initials)return;const t=this.size??32;return this.initials??Nc(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:t<=16})}};Nt.colors=Object.values(Wr),ie([a],Nt.prototype,"name",2),ie([a],Nt.prototype,"initials",2),ie([a({converter:st})],Nt.prototype,"size",2),ie([a],Nt.prototype,"shape",2),ie([a],Nt.prototype,"active",2),ie([a],Nt.prototype,"appearance",2),ie([a],Nt.prototype,"color",2),ie([a({attribute:"color-id"})],Nt.prototype,"colorId",2);let Hc=Nt;const Dc=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},re={fastOutSlowInMax:Rr,fastOutSlowInMid:ao,fastOutSlowInMin:lc,slowOutFastInMax:nc,slowOutFastInMid:no,slowOutFastInMin:ac,fastEase:cc,normalEase:ti,nullEasing:ei},Vc=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:${E};font-size:${F};border-radius:${ct};color:${rt};background-color:${Ro};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 ${K}) ${M}}: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 ${oe}) ${M}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${oo};font-weight:${N}}: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:${G}}: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:${Te}}: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:${Xo}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${A}}: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:${Ir}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Pr}}:host(:is([state--brand],:state(brand))){color:${nr};background-color:${dr}}:host(:is([state--dark-red],:state(dark-red))){color:${cl};background-color:${ll}}:host(:is([state--cranberry],:state(cranberry))){color:${rl};background-color:${il}}:host(:is([state--red],:state(red))){color:${Oa};background-color:${Fa}}:host(:is([state--pumpkin],:state(pumpkin))){color:${El};background-color:${Nl}}:host(:is([state--peach],:state(peach))){color:${zl};background-color:${Bl}}:host(:is([state--marigold],:state(marigold))){color:${Ga};background-color:${Sr}}:host(:is([state--gold],:state(gold))){color:${pl};background-color:${ul}}:host(:is([state--brass],:state(brass))){color:${Ja};background-color:${Za}}:host(:is([state--brown],:state(brown))){color:${el};background-color:${tl}}:host(:is([state--forest],:state(forest))){color:${hl};background-color:${dl}}:host(:is([state--seafoam],:state(seafoam))){color:${Rl};background-color:${jl}}:host(:is([state--dark-green],:state(dark-green))){color:${al};background-color:${nl}}:host(:is([state--light-teal],:state(light-teal))){color:${vl};background-color:${$l}}:host(:is([state--teal],:state(teal))){color:${Xl};background-color:${Wl}}:host(:is([state--steel],:state(steel))){color:${Gl};background-color:${ql}}:host(:is([state--blue],:state(blue))){color:${Qa};background-color:${Ya}}:host(:is([state--royal-blue],:state(royal-blue))){color:${Vl};background-color:${Dl}}:host(:is([state--cornflower],:state(cornflower))){color:${sl};background-color:${ol}}:host(:is([state--navy],:state(navy))){color:${Pl};background-color:${Il}}:host(:is([state--lavender],:state(lavender))){color:${ml};background-color:${bl}}:host(:is([state--purple],:state(purple))){color:${Hl};background-color:${Ll}}:host(:is([state--grape],:state(grape))){color:${fl};background-color:${gl}}:host(:is([state--lilac],:state(lilac))){color:${kl};background-color:${yl}}:host(:is([state--pink],:state(pink))){color:${Al};background-color:${Tl}}:host(:is([state--magenta],:state(magenta))){color:${wl};background-color:${xl}}:host(:is([state--plum],:state(plum))){color:${Ml};background-color:${Ol}}:host(:is([state--beige],:state(beige))){color:${Ka};background-color:${Ua}}:host(:is([state--mink],:state(mink))){color:${Sl};background-color:${Cl}}:host(:is([state--platinum],:state(platinum))){color:${_l};background-color:${Fl}}:host(:is([state--anchor],:state(anchor))){color:${Xa};background-color:${Wa}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Jo},${Zs};transition-delay:${re.fastEase},${re.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Jo}),${jr};transition-delay:${re.fastEase}),${re.nullEasing})}:host([active])::before{box-shadow:${Ql};border-style:solid;border-color:${dr}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${oe});border-width:${oe}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${se});border-width:${se}}: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 * ${Dr});border-width:${Dr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Qo}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Lr}}: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:${Zl}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Jo},${Zs};transition-delay:${re.fastOutSlowInMin},${re.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Jo},${jr};transition-delay:${re.fastOutSlowInMin},${re.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}}`,jc=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 Rc(){return f`<slot>${o=>o.name||o.initials?o.generateInitials():jc}</slot><slot name="badge"></slot>`}const qc=Rc(),Gc=Hc.compose({name:`${p.prefix}-avatar`,template:qc,styles:Vc});Gc.define(p.registry);const Wc={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Xc={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var Uc=Object.defineProperty,Kc=Object.getOwnPropertyDescriptor,os=(o,t,e,s)=>{for(var i=s>1?void 0:s?Kc(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&&Uc(t,e,i),i};class Fe extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.appearance=Wc.filled,this.color=Xc.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)}}os([a],Fe.prototype,"appearance",2),os([a],Fe.prototype,"color",2),os([a],Fe.prototype,"shape",2),os([a],Fe.prototype,"size",2),jt(Fe,Dt);const Ur=l.partial`
|
|
46
46
|
${w("inline-flex")} :host {
|
|
47
47
|
position: relative;
|
|
48
48
|
box-sizing: border-box;
|
|
@@ -54,11 +54,11 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
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
60
|
background-color: ${Gs};
|
|
61
|
-
color: ${
|
|
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;
|
|
@@ -116,7 +116,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
116
116
|
height: 24px;
|
|
117
117
|
font-size: ${G};
|
|
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;
|
|
@@ -126,15 +126,15 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
126
126
|
height: 32px;
|
|
127
127
|
font-size: ${G};
|
|
128
128
|
line-height: ${ot};
|
|
129
|
-
padding-inline: calc(${
|
|
129
|
+
padding-inline: calc(${Yt} + ${ht});
|
|
130
130
|
}
|
|
131
131
|
:host(${_o}) ::slotted(svg) {
|
|
132
132
|
font-size: 20px;
|
|
133
133
|
}
|
|
134
134
|
`,Yr=l.partial`
|
|
135
135
|
:host(${Oo}) {
|
|
136
|
-
background-color: ${
|
|
137
|
-
color: ${
|
|
136
|
+
background-color: ${fr};
|
|
137
|
+
color: ${Ut};
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
:host(${Mo}) {
|
|
@@ -148,8 +148,8 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
:host(${Lo}) {
|
|
151
|
-
background-color: ${
|
|
152
|
-
color: ${
|
|
151
|
+
background-color: ${xr};
|
|
152
|
+
color: ${Ut};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
:host(${C}) {
|
|
@@ -158,8 +158,8 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
:host(${he}) {
|
|
161
|
-
background-color: ${
|
|
162
|
-
color: ${
|
|
161
|
+
background-color: ${yr};
|
|
162
|
+
color: ${Ut};
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
:host(${ue}) {
|
|
@@ -167,36 +167,36 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
167
167
|
color: ${ya};
|
|
168
168
|
}
|
|
169
169
|
`,Qr=l.partial`
|
|
170
|
-
:host(${
|
|
170
|
+
:host(${Rt}) {
|
|
171
171
|
color: ${Es};
|
|
172
172
|
background-color: initial;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
:host(${
|
|
176
|
-
color: ${
|
|
175
|
+
:host(${Rt}${Oo}) {
|
|
176
|
+
color: ${$r};
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
:host(${
|
|
179
|
+
:host(${Rt}${Mo}) {
|
|
180
180
|
color: ${T};
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
:host(${
|
|
183
|
+
:host(${Rt}${No}) {
|
|
184
184
|
color: ${rt};
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
:host(${
|
|
188
|
-
color: ${
|
|
187
|
+
:host(${Rt}${Lo}) {
|
|
188
|
+
color: ${Cr};
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
:host(${
|
|
191
|
+
:host(${Rt}${C}) {
|
|
192
192
|
color: ${Ye};
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
:host(${
|
|
195
|
+
:host(${Rt}${he}) {
|
|
196
196
|
color: ${Ha};
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
:host(${
|
|
199
|
+
:host(${Rt}${ue}) {
|
|
200
200
|
color: ${Ks};
|
|
201
201
|
}
|
|
202
202
|
`,Yc=l.partial`
|
|
@@ -207,7 +207,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
:host(${q}${Oo}) {
|
|
210
|
-
color: ${
|
|
210
|
+
color: ${$r};
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
:host(${q}${Mo}) {
|
|
@@ -221,11 +221,11 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
:host(${q}${Lo}) {
|
|
224
|
-
color: ${
|
|
224
|
+
color: ${Cr};
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
:host(${q}${C}) {
|
|
228
|
-
color: ${
|
|
228
|
+
color: ${nr};
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
:host(${q}${he}) {
|
|
@@ -243,9 +243,9 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
:host(${ee}${Oo}) {
|
|
246
|
-
background-color: ${
|
|
247
|
-
color: ${
|
|
248
|
-
border-color: ${
|
|
246
|
+
background-color: ${gr};
|
|
247
|
+
color: ${mr};
|
|
248
|
+
border-color: ${br};
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
:host(${ee}${Mo}) {
|
|
@@ -261,9 +261,9 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
:host(${ee}${Lo}) {
|
|
264
|
-
background-color: ${
|
|
264
|
+
background-color: ${kr};
|
|
265
265
|
color: ${Da};
|
|
266
|
-
border-color: ${
|
|
266
|
+
border-color: ${wr};
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
:host(${ee}${C}) {
|
|
@@ -273,7 +273,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
:host(${ee}${he}) {
|
|
276
|
-
background-color: ${
|
|
276
|
+
background-color: ${vr};
|
|
277
277
|
color: ${Ea};
|
|
278
278
|
border-color: ${Na};
|
|
279
279
|
}
|
|
@@ -345,41 +345,41 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
345
345
|
font-weight: ${Uo};
|
|
346
346
|
`,l.partial`
|
|
347
347
|
font-family: ${$};
|
|
348
|
-
font-size: ${
|
|
349
|
-
line-height: ${
|
|
348
|
+
font-size: ${zr};
|
|
349
|
+
line-height: ${Or};
|
|
350
350
|
font-weight: ${E};
|
|
351
351
|
`,l.partial`
|
|
352
352
|
font-family: ${$};
|
|
353
|
-
font-size: ${
|
|
354
|
-
line-height: ${
|
|
353
|
+
font-size: ${Br};
|
|
354
|
+
line-height: ${_r};
|
|
355
355
|
font-weight: ${E};
|
|
356
356
|
`,l.partial`
|
|
357
357
|
font-family: ${$};
|
|
358
358
|
font-size: ${Xo};
|
|
359
|
-
line-height: ${
|
|
359
|
+
line-height: ${Fr};
|
|
360
360
|
font-weight: ${E};
|
|
361
361
|
`,l.partial`
|
|
362
362
|
font-family: ${$};
|
|
363
|
-
font-size: ${
|
|
364
|
-
line-height: ${
|
|
363
|
+
font-size: ${Tr};
|
|
364
|
+
line-height: ${Mr};
|
|
365
365
|
font-weight: ${E};
|
|
366
366
|
`,l.partial`
|
|
367
367
|
font-family: ${$};
|
|
368
|
-
font-size: ${
|
|
369
|
-
line-height: ${
|
|
368
|
+
font-size: ${Ar};
|
|
369
|
+
line-height: ${Nr};
|
|
370
370
|
font-weight: ${E};
|
|
371
371
|
`;const Jc=l`
|
|
372
|
-
:host(${We}){border-radius:${Ys}}:host(${
|
|
372
|
+
:host(${We}){border-radius:${Ys}}:host(${qt}){border-radius:${A}}:host(${qt}${Xe}),:host(${qt}${Ue}),:host(${qt}${O}){border-radius:${_t}}${Kr}
|
|
373
373
|
${Yr}
|
|
374
374
|
${Qr}
|
|
375
375
|
${Yc}
|
|
376
376
|
${Qc}
|
|
377
377
|
${Ur}
|
|
378
378
|
`.withBehaviors(et(l`
|
|
379
|
-
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function Zr(o={}){return f` ${
|
|
379
|
+
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function Zr(o={}){return f` ${Vt(o)}<slot>${ft(o.defaultContent)}</slot>${te(o)} `}const td=Zr(),ed=Fe.compose({name:`${p.prefix}-badge`,template:td,styles:Jc});ed.define(p.registry);var od=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,W=(o,t,e,s)=>{for(var i=s>1?void 0:s?sd(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&&od(t,e,i),i};class B extends x{constructor(){super(),this.disabledFocusable=!1,this.tabIndex=0,this.elementInternals=this.attachInternals(),this.iconOnly=!1,this.elementInternals.role="button"}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}disabledFocusableChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!e}`)}get form(){return this.elementInternals.form}iconOnlyChanged(t,e){c(this.elementInternals,"icon",e)}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}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)}typeChanged(t,e){e!==ts.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===zo||t.key===Fs){this.click();return}return!0}press(){switch(this.type){case ts.reset:{this.resetForm();break}case ts.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==ts.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)}}}}B.formAssociated=!0,W([a],B.prototype,"appearance",2),W([a({mode:"boolean"})],B.prototype,"autofocus",2),W([k],B.prototype,"defaultSlottedContent",2),W([a({mode:"boolean"})],B.prototype,"disabled",2),W([a({attribute:"disabled-focusable",mode:"boolean"})],B.prototype,"disabledFocusable",2),W([a({attribute:"tabindex",mode:"fromView",converter:st})],B.prototype,"tabIndex",2),W([a({attribute:"formaction"})],B.prototype,"formAction",2),W([a({attribute:"form"})],B.prototype,"formAttribute",2),W([a({attribute:"formenctype"})],B.prototype,"formEnctype",2),W([a({attribute:"formmethod"})],B.prototype,"formMethod",2),W([a({attribute:"formnovalidate",mode:"boolean"})],B.prototype,"formNoValidate",2),W([a({attribute:"formtarget"})],B.prototype,"formTarget",2),W([a({attribute:"icon-only",mode:"boolean"})],B.prototype,"iconOnly",2),W([a],B.prototype,"name",2),W([a],B.prototype,"shape",2),W([a],B.prototype,"size",2),W([a],B.prototype,"type",2),W([a],B.prototype,"value",2),jt(B,Dt);function ii(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>${te(o)}</template>`}const id=ii(),rd=B.compose({name:`${p.prefix}-button`,template:id,styles:es});rd.define(p.registry);var nd=Object.defineProperty,ad=Object.getOwnPropertyDescriptor,wt=(o,t,e,s)=>{for(var i=s>1?void 0:s?ad(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&&nd(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 ss 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],ss.prototype,"indeterminate",2),wt([a],ss.prototype,"shape",2),wt([a],ss.prototype,"size",2);const be=l.partial`:is([state--indeterminate], :state(indeterminate))`,ld=l`
|
|
380
380
|
${w("inline-flex")}
|
|
381
381
|
|
|
382
|
-
:host{--size:16px;background-color:${M};border-radius:${_t};border:${K} solid ${ge};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Je}}:host(:active){border-color:${to}}:host(${v}:hover){background-color:${Qe};border-color:${Aa}}:host(${v}:active){background-color:${Ze};border-color:${
|
|
382
|
+
:host{--size:16px;background-color:${M};border-radius:${_t};border:${K} solid ${ge};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Je}}:host(:active){border-color:${to}}:host(${v}:hover){background-color:${Qe};border-color:${Aa}}:host(${v}:active){background-color:${Ze};border-color:${ur}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${oe} solid ${nt};border-radius:${A}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ft}}.indeterminate-indicator,.checked-indicator{color:${Ye};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(${be}){border-color:${Wo}}:host(${v}),:host(${be}) .indeterminate-indicator{background-color:${ze}}:host(${be}) .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(${Ge}),:host(${Ge}) .indeterminate-indicator{border-radius:${ct}}:host([disabled]),:host([disabled]${v}){background-color:${Be};border-color:${At}}:host([disabled]){cursor:unset}:host([disabled]${be}) .indeterminate-indicator{background-color:${At}}:host([disabled]${v}) .checked-indicator{color:${At}}`.withBehaviors(et(l`
|
|
383
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(${be}) .indeterminate-indicator{background-color:FieldText}:host(${v}:not([disabled]):hover),:host(${be}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${be}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${v}) .checked-indicator{color:GrayText}`)),cd=f.partial(`
|
|
384
384
|
<svg
|
|
385
385
|
fill="currentColor"
|
|
@@ -393,18 +393,18 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
393
393
|
</svg>
|
|
394
394
|
`),dd=f.partial(`
|
|
395
395
|
<span class="indeterminate-indicator"></span>
|
|
396
|
-
`);function hd(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">${
|
|
396
|
+
`);function hd(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 ud=hd({checkedIndicator:cd,indeterminateIndicator:dd}),pd=ss.compose({name:`${p.prefix}-checkbox`,template:ud,styles:ld});pd.define(p.registry);class gd extends B{}const fd=l`
|
|
397
397
|
${es}
|
|
398
398
|
|
|
399
|
-
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${F};line-height:${V}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${
|
|
400
|
-
::slotted([slot='description']){color:${D}}:host(${O}){padding:8px;padding-bottom:10px}:host(${Pe}){min-width:52px;max-width:52px;padding:${
|
|
401
|
-
:host(${
|
|
399
|
+
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${F};line-height:${V}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Xt};line-height:100%;font-size:${G};font-weight:${N}}::slotted(svg),:host(${S}) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Ho}}:host(:active) ::slotted([slot='description']){color:${Do}}:host(:is(${it},${it}:hover,${it}:active)) ::slotted([slot='description']){color:${Ut}}:host(:is(${C},${C}:hover,${C}:active)) ::slotted([slot='description']),:host(${U}) ::slotted([slot='description']){color:${Xt}}:host(${U}:hover) ::slotted([slot='description']){color:${Vo}}:host(${U}:active) ::slotted([slot='description']){color:${jo}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
|
|
400
|
+
::slotted([slot='description']){color:${D}}:host(${O}){padding:8px;padding-bottom:10px}:host(${Pe}){min-width:52px;max-width:52px;padding:${Yt}}:host(${Pe}${O}){min-width:48px;max-width:48px;padding:${Kt}}:host(${Pe}${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:${F}}`;function bd(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>${te(o)}</template>`}const md=bd(),$d=gd.compose({name:`${p.prefix}-compound-button`,template:md,styles:fd});$d.define(p.registry);var vd=Object.defineProperty,yd=Object.getOwnPropertyDescriptor,ne=(o,t,e,s)=>{for(var i=s>1?void 0:s?yd(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&&vd(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}`}}ne([a],Et.prototype,"appearance",2),ne([a],Et.prototype,"color",2),ne([a],Et.prototype,"shape",2),ne([a],Et.prototype,"size",2),ne([a({converter:st})],Et.prototype,"count",2),ne([a({attribute:"overflow-count",converter:st})],Et.prototype,"overflowCount",2),ne([a({attribute:"show-zero",mode:"boolean"})],Et.prototype,"showZero",2),ne([a({mode:"boolean"})],Et.prototype,"dot",2),jt(Et,Dt);const Jr=l.partial`:is([state--dot], :state(dot))`,kd=l`
|
|
401
|
+
:host(${qt}){border-radius:${A}}:host(${qt}${Xe}),:host(${qt}${Ue}),:host(${qt}${O}){border-radius:${_t}}${Kr}
|
|
402
402
|
${Yr}
|
|
403
403
|
${Qr}
|
|
404
404
|
${Ur}
|
|
405
405
|
|
|
406
|
-
:host(${Jr}),:host(${Jr}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function xd(o={}){return Zr({defaultContent:f`${t=>t.setCount()}`})}const wd=xd(),Cd=
|
|
407
|
-
@layer base{:host{--dialog-backdrop:${qs};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${M};border-radius:${
|
|
406
|
+
:host(${Jr}),:host(${Jr}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function xd(o={}){return Zr({defaultContent:f`${t=>t.setCount()}`})}const wd=xd(),Cd=Et.compose({name:`${p.prefix}-counter-badge`,template:wd,styles:kd});Cd.define(p.registry);const Lt={modal:"modal",nonModal:"non-modal",alert:"alert"};var Sd=Object.defineProperty,Id=Object.getOwnPropertyDescriptor,is=(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 lo 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}}is([k],lo.prototype,"dialog",2),is([a({attribute:"aria-describedby"})],lo.prototype,"ariaDescribedby",2),is([a({attribute:"aria-labelledby"})],lo.prototype,"ariaLabelledby",2),is([a],lo.prototype,"type",2);const Pd=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>`,Bd=l`
|
|
407
|
+
@layer base{:host{--dialog-backdrop:${qs};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${M};border-radius:${Pr};border:none;box-shadow:${Hr};color:${T};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:${Js};transition-timing-function:${ao};opacity:0}::backdrop{transition-timing-function:${ei}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${no}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(et(l`
|
|
408
408
|
@layer base{dialog{border:${K} solid ${nt}}}`)),zd=lo.compose({name:`${p.prefix}-dialog`,template:Pd,styles:Bd});zd.define(p.registry);var Td=Object.defineProperty,Ad=Object.getOwnPropertyDescriptor,Fd=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ad(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&&Td(t,e,i),i};class tn extends x{constructor(){super(...arguments),this.noTitleAction=!1}}Fd([a({mode:"boolean",attribute:"no-title-action"})],tn.prototype,"noTitleAction",2);const _d=f.partial(`
|
|
409
409
|
<svg
|
|
410
410
|
fill="currentColor"
|
|
@@ -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>`),Od=f`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===
|
|
421
|
+
</svg>`),Od=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")}>${_d}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,Md=l`
|
|
422
422
|
${w("grid")}
|
|
423
423
|
|
|
424
|
-
:host{background:${M};box-sizing:border-box;gap:${
|
|
424
|
+
:host{background:${M};box-sizing:border-box;gap:${bt};padding:${ro} ${ec};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${M};color:${T};column-gap:8px;display:flex;font-family:${$};font-size:${Te};font-weight:${E};inset-block-start:0;justify-content:space-between;line-height:${Yo};margin-block-end:calc(${bt} * -1);margin-block-start:calc(${ro} * -1);padding-block-end:${bt};padding-block-start:${ro};position:sticky;z-index:1}.content{box-sizing:border-box;color:${T};font-family:${$};font-size:${F};font-weight:${N};line-height:${V};min-height:32px}.actions{box-sizing:border-box;background:${M};display:flex;flex-direction:column;gap:${bt};inset-block-end:0;margin-block-end:calc(${ro} * -1);padding-block-end:${ro};padding-block-start:${Qs};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}}}`,Nd=tn.compose({name:`${p.prefix}-dialog-body`,template:Od,styles:Md});Nd.define(p.registry);const co={separator:"separator",presentation:"presentation"},Ed=gt;var Ld=Object.defineProperty,Hd=Object.getOwnPropertyDescriptor,ho=(o,t,e,s)=>{for(var i=s>1?void 0:s?Hd(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&&Ld(t,e,i),i};class _e 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??co.separator,this.role!==co.presentation&&(this.elementInternals.ariaOrientation=this.orientation??Ed.horizontal)}roleChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.role=`${e??co.separator}`),e===co.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.role!==co.presentation?e:null,t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}ho([a],_e.prototype,"role",2),ho([a],_e.prototype,"orientation",2),ho([a({attribute:"align-content"})],_e.prototype,"alignContent",2),ho([a],_e.prototype,"appearance",2),ho([a({mode:"boolean"})],_e.prototype,"inset",2);function Dd(){return f`<slot></slot>`}const Vd=Dd(),jd=l`
|
|
425
425
|
${w("flex")}
|
|
426
426
|
|
|
427
|
-
:host{contain:content}:host::after,:host::before{align-self:center;background:${eo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${K}}:host(${Ms}){padding:0 12px}:host ::slotted(*){color:${
|
|
428
|
-
:host(${Re})::before,:host(${Re})::after,:host(${
|
|
427
|
+
:host{contain:content}:host::after,:host::before{align-self:center;background:${eo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${K}}:host(${Ms}){padding:0 12px}:host ::slotted(*){color:${Xt};font-family:${$};font-size:${G};font-weight:${N};margin:0;padding:0 12px}:host(${ir})::before,:host(${Gt})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${J}){height:100%;min-height:84px}:host(${J}):empty{min-height:20px}:host(${J}){flex-direction:column;align-items:center}:host(${J}${Ms})::before{margin-top:12px}:host(${J}${Ms})::after{margin-bottom:12px}:host(${J}):empty::before,:host(${J}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${J})::before,:host(${J})::after{width:${K};min-height:20px;height:100%}:host(${J}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${J}${ir})::before{min-height:8px}:host(${J}${Gt})::after{min-height:8px}:host(${Re})::before,:host(${Re})::after{background:${fe}}:host(${Re}) ::slotted(*){color:${T}}:host(${Wt})::before,:host(${Wt})::after{background:${hr}}:host(${Wt}) ::slotted(*){color:${Es}}:host(${C})::before,:host(${C})::after{background:${za}}:host(${C}) ::slotted(*){color:${rt}}`.withBehaviors(et(l`
|
|
428
|
+
:host(${Re})::before,:host(${Re})::after,:host(${Wt})::before,:host(${Wt})::after,:host(${C})::before,:host(${C})::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),Rd=_e.compose({name:`${p.prefix}-divider`,template:Vd,styles:jd});Rd.define(p.registry);const qd={start:"start",end:"end"},Gd={small:"small",medium:"medium",large:"large",full:"full"},ri={nonModal:"non-modal",modal:"modal",inline:"inline"};var Wd=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,Oe=(o,t,e,s)=>{for(var i=s>1?void 0:s?Xd(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&&Wd(t,e,i),i};class me extends x{constructor(){super(...arguments),this.type=ri.modal,this.position=qd.start,this.size=Gd.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===ri.inline||this.type===ri.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}}Oe([a],me.prototype,"type",2),Oe([a({attribute:"aria-labelledby"})],me.prototype,"ariaLabelledby",2),Oe([a({attribute:"aria-describedby"})],me.prototype,"ariaDescribedby",2),Oe([a],me.prototype,"position",2),Oe([a({attribute:"size"})],me.prototype,"size",2),Oe([k],me.prototype,"dialog",2);const Ud=l`
|
|
429
429
|
${w("block")}
|
|
430
430
|
|
|
431
|
-
:host{--dialog-backdrop:${qs}}: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:${F};line-height:${V};font-family:${$};font-weight:${N};color:${T};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:${
|
|
431
|
+
:host{--dialog-backdrop:${qs}}: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:${F};line-height:${V};font-family:${$};font-weight:${N};color:${T};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:${Hr};border:${K} solid ${nt};background:${M}}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:${Js};transition-timing-function:${ao}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${no}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${no}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Js};transition-timing-function:${ao};background:var(--dialog-backdrop,${qs});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${ei}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function Kd(){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 Yd=Kd(),Qd=me.compose({name:`${p.prefix}-drawer`,template:Yd,styles:Ud});Qd.define(p.registry);class Zd extends x{}const Jd=l`
|
|
432
432
|
${w("grid")}
|
|
433
433
|
:host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${tc};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Zc}}.footer{display:flex;justify-content:flex-start;gap:${ut}}`;function th(){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 eh=th(),oh=Zd.compose({name:`${p.prefix}-drawer-body`,template:eh,styles:Jd});oh.define(p.registry);const sh={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 ih=Object.defineProperty,rh=Object.getOwnPropertyDescriptor,uo=(o,t,e,s)=>{for(var i=s>1?void 0:s?rh(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&&ih(t,e,i),i};class Me extends x{constructor(){super(),this.labelPosition=sh.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||To("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])}}uo([a({attribute:"label-position"})],Me.prototype,"labelPosition",2),uo([k],Me.prototype,"labelSlot",2),uo([k],Me.prototype,"messageSlot",2),uo([k],Me.prototype,"slottedInputs",2),uo([k],Me.prototype,"input",2);const nh=l.partial`:is([state--focus-visible], :state(focus-visible))`,ah=l.partial`:is([state--${y.badInput}], :state(${y.badInput}))`,lh=l.partial`:is([state--${y.customError}], :state(${y.customError}))`,ch=l.partial`:is([state--${y.patternMismatch}], :state(${y.patternMismatch}))`,dh=l.partial`:is([state--${y.rangeOverflow}], :state(${y.rangeOverflow}))`,hh=l.partial`:is([state--${y.rangeUnderflow}], :state(${y.rangeUnderflow}))`,uh=l.partial`:is([state--${y.stepMismatch}], :state(${y.stepMismatch}))`,ph=l.partial`:is([state--${y.tooLong}], :state(${y.tooLong}))`,gh=l.partial`:is([state--${y.tooShort}], :state(${y.tooShort}))`,fh=l.partial`:is([state--${y.typeMismatch}], :state(${y.typeMismatch}))`,bh=l.partial`:is([state-${y.valid}], :state(${y.valid}))`,mh=l.partial`:is([state--${y.valueMissing}], :state(${y.valueMissing}))`,$h=l.partial`:is([state--has-message], :state(has-message))`,vh=l`
|
|
434
434
|
${w("inline-grid")}
|
|
435
435
|
|
|
436
|
-
:host{color:${T};align-items:center;gap:0 ${ut};justify-items:start;
|
|
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:${K} solid ${eo}}: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:${Qo}}:host(${Ge}) ::slotted(img){border-radius:${ct}}:host(${
|
|
436
|
+
:host{color:${T};align-items:center;gap:0 ${ut};justify-items:start;position:relative}:has([slot='message']){color:${T};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:${Zo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${sc}}:host([label-position='below']:not(${$h})){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:${Zo};grid-area:message}:host(${nh}:focus-within){border-radius:${A};outline:${oe} solid ${Ft}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${$};font-size:${F};font-weight:${N};grid-area:label;line-height:${V};user-select:none}:host([size='small']) ::slotted(label){font-size:${G};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:${E}}:host(${X}){cursor:default}::slotted([flag]){display:none}:host(${ah}) ::slotted([flag='${y.badInput}']),:host(${lh}) ::slotted([flag='${y.customError}']),:host(${ch}) ::slotted([flag='${y.patternMismatch}']),:host(${dh}) ::slotted([flag='${y.rangeOverflow}']),:host(${hh}) ::slotted([flag='${y.rangeUnderflow}']),:host(${uh}) ::slotted([flag='${y.stepMismatch}']),:host(${ph}) ::slotted([flag='${y.tooLong}']),:host(${gh}) ::slotted([flag='${y.tooShort}']),:host(${fh}) ::slotted([flag='${y.typeMismatch}']),:host(${mh}) ::slotted([flag='${y.valueMissing}']),:host(${bh}) ::slotted([flag='${y.valid}']){display:block}`,yh=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)}" ${On({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:je()})}><slot name="label" part="label" ${pt("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${pt({property:"messageSlot",filter:je("[flag]")})}></slot></template>`,kh=Me.compose({name:`${p.prefix}-field`,template:yh,styles:vh,shadowOptions:{delegatesFocus:!0}});kh.define(p.registry);var xh=Object.defineProperty,wh=Object.getOwnPropertyDescriptor,po=(o,t,e,s)=>{for(var i=s>1?void 0:s?wh(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&&xh(t,e,i),i};class Ne 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)}}po([a({mode:"boolean"})],Ne.prototype,"block",2),po([a({mode:"boolean"})],Ne.prototype,"bordered",2),po([a({mode:"boolean"})],Ne.prototype,"shadow",2),po([a],Ne.prototype,"fit",2),po([a],Ne.prototype,"shape",2);const Ch=f`<slot></slot>`,Sh=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:${K} solid ${eo}}: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:${Qo}}:host(${Ge}) ::slotted(img){border-radius:${ct}}:host(${qt}) ::slotted(img){border-radius:${A}}`,Ih=Ne.compose({name:`${p.prefix}-image`,template:Ch,styles:Sh});Ih.define(p.registry);var Ph=Object.defineProperty,Bh=Object.getOwnPropertyDescriptor,rs=(o,t,e,s)=>{for(var i=s>1?void 0:s?Bh(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&&Ph(t,e,i),i};class go 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)}}rs([a],go.prototype,"size",2),rs([a],go.prototype,"weight",2),rs([a({mode:"boolean"})],go.prototype,"disabled",2),rs([a({mode:"boolean"})],go.prototype,"required",2);const zh=l`
|
|
438
438
|
${w("inline-flex")}
|
|
439
439
|
|
|
440
|
-
:host{color:${T};cursor:pointer;font-family:${$};font-size:${F};font-weight:${N};line-height:${V};user-select:none}.asterisk{color:${
|
|
440
|
+
:host{color:${T};cursor:pointer;font-family:${$};font-size:${F};font-weight:${N};line-height:${V};user-select:none}.asterisk{color:${mr};margin-inline-start:${Kt}}:host(${O}){font-size:${G};line-height:${ot}}:host(${S}){font-size:${dt};line-height:${xt}}:host(${S}),:host(:is([state--semibold],:state(semibold))){font-weight:${E}}:host(:is([state--disabled],:state(disabled))),:host(:is([state--disabled],:state(disabled))) .asterisk{color:${D}}`;function Th(){return f`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const Ah=Th(),Fh=go.compose({name:`${p.prefix}-label`,template:Ah,styles:zh});Fh.define(p.registry);var _h=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,en=(o,t,e,s)=>{for(var i=s>1?void 0:s?Oh(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&&_h(t,e,i),i};class ni 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)}}en([a],ni.prototype,"appearance",2),en([a({mode:"boolean"})],ni.prototype,"inline",2);const Mh=l`
|
|
441
441
|
${w("inline")}
|
|
442
442
|
|
|
443
443
|
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${ca};cursor:pointer;font-family:${$};font-size:${F};font-weight:${N};margin:0;padding:0;overflow:inherit;text-align:left;text-decoration:none;text-decoration-thinkness:${K};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${da}}:host(:active){color:${ha}}:host(${C}:hover){color:${pa}}:host(${C}:active){color:${ga}}}:host(${C}){color:${ua}}: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 Nh(){return f`<template tabindex="0" @click="${(o,t)=>o.clickHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot></slot></template>`}const Eh=Nh(),Lh=
|
|
444
|
+
:host{color:LinkText}`));function Nh(){return f`<template tabindex="0" @click="${(o,t)=>o.clickHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot></slot></template>`}const Eh=Nh(),Lh=ni.compose({name:`${p.prefix}-link`,template:Eh,styles:Mh});Lh.define(p.registry);class Hh extends B{}const Dh=ii({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
|
-
`)}),Vh=Hh.compose({name:`${p.prefix}-menu-button`,template:Dh,styles:es});Vh.define(p.registry);const Y={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};Y.menuitem+"",Y.menuitemcheckbox+"",Y.menuitemradio+"";var jh=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,Ee=(o,t,e,s)=>{for(var i=s>1?void 0:s?Rh(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&&jh(t,e,i),i};const qh=()=>o=>o.nodeType===1&&o.elementInternals.role==="menu";class Ct extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=Y.menuitem,this.checked=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case zo:case Fs:return this.invoke(),!1;case Bs:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case Ps: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 Y.menuitemcheckbox:this.checked=!this.checked;break;case Y.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case Y.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??Y.menuitem}checkedChanged(t,e){const s=this.role!==Y.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??Y.menuitem,this.elementInternals.ariaChecked=this.role!==Y.menuitem?`${!!this.checked}`:null}}Ee([a({mode:"boolean"})],Ct.prototype,"disabled",2),Ee([a],Ct.prototype,"role",2),Ee([a({mode:"boolean"})],Ct.prototype,"checked",2),Ee([a({mode:"boolean"})],Ct.prototype,"hidden",2),Ee([k],Ct.prototype,"slottedSubmenu",2),Ee([k],Ct.prototype,"submenu",2),
|
|
448
|
+
`)}),Vh=Hh.compose({name:`${p.prefix}-menu-button`,template:Dh,styles:es});Vh.define(p.registry);const Y={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};Y.menuitem+"",Y.menuitemcheckbox+"",Y.menuitemradio+"";var jh=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,Ee=(o,t,e,s)=>{for(var i=s>1?void 0:s?Rh(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&&jh(t,e,i),i};const qh=()=>o=>o.nodeType===1&&o.elementInternals.role==="menu";class Ct extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=Y.menuitem,this.checked=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case zo:case Fs:return this.invoke(),!1;case Bs:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case Ps: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 Y.menuitemcheckbox:this.checked=!this.checked;break;case Y.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case Y.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??Y.menuitem}checkedChanged(t,e){const s=this.role!==Y.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??Y.menuitem,this.elementInternals.ariaChecked=this.role!==Y.menuitem?`${!!this.checked}`:null}}Ee([a({mode:"boolean"})],Ct.prototype,"disabled",2),Ee([a],Ct.prototype,"role",2),Ee([a({mode:"boolean"})],Ct.prototype,"checked",2),Ee([a({mode:"boolean"})],Ct.prototype,"hidden",2),Ee([k],Ct.prototype,"slottedSubmenu",2),Ee([k],Ct.prototype,"submenu",2),jt(Ct,Dt);const ns=l.partial`:is([state--submenu], :state(submenu))`,Gh=l`
|
|
449
449
|
${w("grid")}
|
|
450
450
|
|
|
451
|
-
:host{--indent:0;align-items:center;background:${M};border-radius:${A};color:${
|
|
452
|
-
:host(${X}),:host(${X}) ::slotted([slot='start']),:host(${X}) ::slotted([slot='end']){color:GrayText}`)),Wh=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>'),Xh=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 Uh(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">${
|
|
451
|
+
:host{--indent:0;align-items:center;background:${M};border-radius:${A};color:${Xt};contain:layout;cursor:pointer;flex-shrink:0;font:${N} ${F} / ${V} ${$};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${Ls};color:${Ho}}:host(:active){background-color:${ar};color:${Do}}:host(:active) ::slotted([slot='start']){color:${ba}}:host(${X}){background-color:${Be};color:${D}}:host(${X}) ::slotted([slot='start']),:host(${X}) ::slotted([slot='end']){color:${D}}:host(:focus-visible){border-radius:${A};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(${ns})) .submenu-glyph,:host(:not(${ns})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${rt};font:${N} ${G} / ${ot} ${$};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${ns}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${ns}){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(${X}),:host(${X}) ::slotted([slot='start']),:host(${X}) ::slotted([slot='end']){color:GrayText}`)),Wh=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>'),Xh=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 Uh(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>${te(o)}<slot name="submenu-glyph">${ft(o.submenuGlyph)}</slot><slot name="submenu" ${pt({property:"slottedSubmenu",filter:qh()})}></slot></template>`}const Kh=Uh({indicator:Wh,submenuGlyph:Xh}),Yh=Ct.compose({name:`${p.prefix}-menu-item`,template:Kh,styles:Gh});Yh.define(p.registry);var Qh=Object.defineProperty,Zh=Object.getOwnPropertyDescriptor,Jh=(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&&Qh(t,e,i),i};const ai=class pi extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&er(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===Y.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===Y.menuitemradio&&(n.checked=!1),h==="separator")break}}},this.isMenuItemElement=t=>t instanceof Ct||er(t)&&t.getAttribute("role")in pi.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 Is:this.setFocus(this.focusIndex+1,1);return;case zs:this.setFocus(this.focusIndex-1,-1);return;case Ts:this.setFocus(this.menuItems.length-1,-1);return;case As: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!==Y.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=pi.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}}};ai.focusableElementRoles=Y,Jh([k],ai.prototype,"items",2);let tu=ai;const eu=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:${M};border:1px solid ${nt};border-radius:${A};box-shadow:${
|
|
455
|
+
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${M};border:1px solid ${nt};border-radius:${A};box-shadow:${Lr};padding:4px;row-gap:2px}`;function ou(){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 su=ou(),iu=tu.compose({name:`${p.prefix}-menu-list`,template:su,styles:eu});iu.define(p.registry);var ru=Object.defineProperty,nu=Object.getOwnPropertyDescriptor,Le=(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&&ru(t,e,i),i};class $e 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")===Y.menuitemcheckbox||t.target.getAttribute("role")===Y.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 Fs:case zo: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 qn:t.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case Gn:if(this._open&&this.closeMenu(),t.shiftKey&&t.composedPath()[0]!==this._trigger)this.focusTrigger();else if(t.shiftKey)return!0;default:return!0}}}Le([a({attribute:"open-on-hover",mode:"boolean"})],$e.prototype,"openOnHover",2),Le([a({attribute:"open-on-context",mode:"boolean"})],$e.prototype,"openOnContext",2),Le([a({attribute:"close-on-scroll",mode:"boolean"})],$e.prototype,"closeOnScroll",2),Le([a({attribute:"persist-on-item-click",mode:"boolean"})],$e.prototype,"persistOnItemClick",2),Le([k],$e.prototype,"slottedMenuList",2),Le([k],$e.prototype,"slottedTriggers",2);const au=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 lu(){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" ${
|
|
459
|
-
:host{display:grid;box-sizing:border-box;font-family:${$};font-size:${G};line-height:${ot};width:100%;background:${Ds};border:1px solid ${fe};padding-inline:${ut};border-radius:${A};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host(${We}){border-radius:0}:host(${he}){background-color:${
|
|
460
|
-
'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${io};padding-inline:${ut}}.content{grid-area:body;max-width:520px;padding-block:${io};padding-inline:0}:host(${Ke}) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${rt};margin-inline-end:${
|
|
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 lu(){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:je()})}></slot><slot ${pt({property:"slottedMenuList",filter:je()})}></slot></template>`}const cu=lu(),du=$e.compose({name:`${p.prefix}-menu`,template:cu,styles:au});du.define(p.registry);var hu=Object.defineProperty,uu=Object.getOwnPropertyDescriptor,li=(o,t,e,s)=>{for(var i=s>1?void 0:s?uu(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&&hu(t,e,i),i};class as 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)}}li([a],as.prototype,"shape",2),li([a],as.prototype,"layout",2),li([a],as.prototype,"intent",2);const pu=l`
|
|
459
|
+
:host{display:grid;box-sizing:border-box;font-family:${$};font-size:${G};line-height:${ot};width:100%;background:${Ds};border:1px solid ${fe};padding-inline:${ut};border-radius:${A};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host(${We}){border-radius:0}:host(${he}){background-color:${vr};border-color:${Ma}}:host(${ue}){background-color:${kr};border-color:${wr}}:host(${Ns}){background-color:${gr};border-color:${br}}:host(${Ke}){grid-template-areas:'icon body dismiss'
|
|
460
|
+
'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${io};padding-inline:${ut}}.content{grid-area:body;max-width:520px;padding-block:${io};padding-inline:0}:host(${Ke}) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${rt};margin-inline-end:${Qt}}:host(${Ke}) ::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(${Ke}) .actions{margin-block-start:${io};margin-inline-end:0}:host(${Ke}) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${bt}}::slotted(*){font-size:inherit}`;function gu(){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 fu=gu(),bu=as.compose({name:`${p.prefix}-message-bar`,template:fu,styles:pu,shadowOptions:{mode:p.shadowRootMode}});bu.define(p.registry);var mu=Object.defineProperty,$u=Object.getOwnPropertyDescriptor,ve=(o,t,e,s)=>{for(var i=s>1?void 0:s?$u(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 ae 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)}}ve([a],ae.prototype,"thickness",2),ve([a],ae.prototype,"shape",2),ve([a({attribute:"validation-state"})],ae.prototype,"validationState",2),ve([a({converter:st})],ae.prototype,"value",2),ve([a({converter:st})],ae.prototype,"min",2),ve([a({converter:st})],ae.prototype,"max",2),ve([bn],ae.prototype,"percentComplete",1);const vu=l`
|
|
461
461
|
${w("block")}
|
|
462
462
|
|
|
463
463
|
:host{width:100%;height:2px;overflow-x:hidden;background-color:${Ro};border-radius:${A};contain:content}:host(${S}){height:4px}:host(${We}){border-radius:${Ys}}.indicator{background-color:${ze};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
464
|
to right,${Ro} 0%,${kt} 50%,${Ro} 100%
|
|
465
|
-
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${Ns}) .indicator{background-color:${
|
|
466
|
-
:host{background-color:CanvasText}.indicator,:host(:is(${he},${ue},${Ns})) .indicator{background-color:Highlight}`));function yu(){return f`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const ku=yu(),xu=ae.compose({name:`${p.prefix}-progress-bar`,template:ku,styles:vu});xu.define(p.registry);class on 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 sn(o){const t=o.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}const rn=
|
|
465
|
+
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${Ns}) .indicator{background-color:${fr}}:host(${ue}) .indicator{background-color:${xr}}:host(${he}) .indicator{background-color:${yr}}@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(${he},${ue},${Ns})) .indicator{background-color:Highlight}`));function yu(){return f`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const ku=yu(),xu=ae.compose({name:`${p.prefix}-progress-bar`,template:ku,styles:vu});xu.define(p.registry);class on 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 sn(o){const t=o.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}const rn=gt;var wu=Object.defineProperty,Cu=Object.getOwnPropertyDescriptor,ye=(o,t,e,s)=>{for(var i=s>1?void 0:s?Cu(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&&wu(t,e,i),i};class Zt extends x{constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??rn.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??rn.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=Rn(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=or(this)==="rtl",s=this.enabledRadios.findIndex(n=>n===sn(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(sn(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 on)})}}Zt.formAssociated=!0,ye([k],Zt.prototype,"checkedIndex",2),ye([a({attribute:"disabled",mode:"boolean"})],Zt.prototype,"disabled",2),ye([a({attribute:"value",mode:"fromView"})],Zt.prototype,"initialValue",2),ye([a],Zt.prototype,"name",2),ye([a],Zt.prototype,"orientation",2),ye([k],Zt.prototype,"radios",2),ye([a({mode:"boolean"})],Zt.prototype,"required",2);const Su=l`
|
|
467
467
|
${w("flex")}
|
|
468
468
|
|
|
469
|
-
:host{-webkit-tap-highlight-color:transparent;cursor:pointer}:host(${X}),:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${rt}}::slotted(:hover){color:${
|
|
469
|
+
:host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Qs}}:host(${X}),: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:${T}}::slotted(${X}){color:${D}}::slotted(${v}){color:${T}}`;function Iu(){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 Pu=Iu(),Bu=Zt.compose({name:`${p.prefix}-radio-group`,template:Pu,styles:Su});Bu.define(p.registry);const zu=l`
|
|
470
470
|
${w("inline-flex")}
|
|
471
471
|
|
|
472
472
|
:host{--size:16px;aspect-ratio:1;background-color:${M};border:${K} solid ${ge};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:${Ye};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:${oe} solid ${nt};border-radius:${A}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ft}}:host(:hover){border-color:${Je}}:host(${v}){border-color:${Wo}}:host(${v}) .checked-indicator{background-color:${ze}}:host(${v}:hover) .checked-indicator{background-color:${Qe}}:host(:active){border-color:${to}}:host(${v}:active) .checked-indicator{background-color:${Ze}}:host(:focus-visible){outline:none}:host(${X}){background-color:${Be};border-color:${At}}:host(${v}${X}) .checked-indicator{background-color:${At}}`.withBehaviors(et(l`
|
|
473
473
|
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${X}):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(${X}):hover) .checked-indicator{background-color:Highlight}:host(${X}){border-color:GrayText;color:GrayText}:host(${X}${v}) .checked-indicator{background-color:GrayText}`)),Tu=f.partial(`
|
|
474
474
|
<span part="checked-indicator" class="checked-indicator" role="presentation"></span>
|
|
475
|
-
`);function Au(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">${
|
|
475
|
+
`);function Au(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 Fu=Au({checkedIndicator:Tu}),_u=on.compose({name:`${p.prefix}-radio`,template:Fu,styles:zu});_u.define(p.registry);var Ou=Object.defineProperty,Mu=Object.getOwnPropertyDescriptor,He=(o,t,e,s)=>{for(var i=s>1?void 0:s?Mu(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&&Ou(t,e,i),i};class ke 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}}He([a],ke.prototype,"color",2),He([a({mode:"boolean"})],ke.prototype,"compact",2),He([a({converter:st})],ke.prototype,"count",2),He([a({converter:st})],ke.prototype,"max",2),He([a],ke.prototype,"size",2),He([a({converter:st})],ke.prototype,"value",2);const Nu=l`
|
|
476
476
|
${w("inline-flex")}
|
|
477
477
|
|
|
478
|
-
:host{--icon-size:16px;align-items:center;color:${T};font-family:${$};font-size:${G};line-height:${ot};contain:layout style;user-select:none}:host(${O}){--icon-size:12px}:host(${S}){--icon-size:20px;font-size:${F};line-height:${V}}svg{width:var(--icon-size);height:var(--icon-size);fill:${qa};margin-inline-end:${ht}}svg:nth-child(even){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host(${Eo}) svg{fill:${T}}:host(${
|
|
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}`)),Eu=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 Lu(){return f` ${Eu} ${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 Hu=Lu(),Du=ke.compose({name:`${p.prefix}-rating-display`,template:Hu,styles:Nu});Du.define(p.registry);const Vu=
|
|
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=_s(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??
|
|
478
|
+
:host{--icon-size:16px;align-items:center;color:${T};font-family:${$};font-size:${G};line-height:${ot};contain:layout style;user-select:none}:host(${O}){--icon-size:12px}:host(${S}){--icon-size:20px;font-size:${F};line-height:${V}}svg{width:var(--icon-size);height:var(--icon-size);fill:${qa};margin-inline-end:${ht}}svg:nth-child(even){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host(${Eo}) svg{fill:${T}}:host(${Wt}) svg{fill:${Gs}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:${Sr}}:host(${Eo}:is([value^='-'],[value='0'])) svg,:host(${Eo}:not([value])) svg,:host(${Eo}) svg[selected] ~ svg{fill:${Hs}}:host(${Wt}:is([value^='-'],[value='0'])) svg,:host(${Wt}:not([value])) svg,:host(${Wt}) svg[selected] ~ svg{fill:${Xs}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${Kt};font-weight:${E}}:host(${O}) .value-label,:host(${O}) ::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(${O}) .count-label::before,:host(${O}) ::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}`)),Eu=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 Lu(){return f` ${Eu} ${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 Hu=Lu(),Du=ke.compose({name:`${p.prefix}-rating-display`,template:Hu,styles:Nu});Du.define(p.registry);const Vu=gt,ju={singleValue:"single-value"};function nn(o,t,e,s){let i=_s(0,1,(o-t)/(e-t));return s===yt.rtl&&(i=1-i),i}var Ru=Object.defineProperty,qu=Object.getOwnPropertyDescriptor,Q=(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&&Ru(t,e,i),i};class j 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=ju.singleValue,this.keypressHandler=t=>{if(!this.disabled)switch(t.key){case As:t.preventDefault(),this.value=this.direction!==yt.rtl&&this.orientation!==gt.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case Ts:t.preventDefault(),this.value=this.direction!==yt.rtl&&this.orientation!==gt.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case Bs:case zs:t.shiftKey||(t.preventDefault(),this.increment());break;case Ps:case Is: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??Vu.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=_s(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=or(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-nn(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=nn(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)}}j.formAssociated=!0,Q([a],j.prototype,"size",2),Q([a({attribute:"value",mode:"fromView"})],j.prototype,"initialValue",2),Q([k],j.prototype,"direction",2),Q([k],j.prototype,"isDragging",2),Q([k],j.prototype,"position",2),Q([k],j.prototype,"trackWidth",2),Q([k],j.prototype,"trackMinWidth",2),Q([k],j.prototype,"trackHeight",2),Q([k],j.prototype,"trackLeft",2),Q([k],j.prototype,"trackMinHeight",2),Q([k],j.prototype,"valueTextFormatter",2),Q([a({mode:"boolean"})],j.prototype,"disabled",2),Q([a({converter:Os})],j.prototype,"min",2),Q([a({converter:Os})],j.prototype,"max",2),Q([a({converter:Os})],j.prototype,"step",2),Q([a],j.prototype,"orientation",2),Q([a],j.prototype,"mode",2);const Gu=l`
|
|
481
481
|
${w("inline-grid")}
|
|
482
482
|
|
|
483
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:${A};--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(${O}){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${_t}}:host(${J}){--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 ${Us}}.track{position:relative;background-color:${ge};border-radius:var(--border-radius);grid-row:2 / 2;grid-column:2 / 2;width:100%;height:var(--track-size);forced-color-adjust:none}:host(${J}) .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(${J}) .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
484
|
var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${M} calc(var(--step-rate) - 1px),${M} var(--step-rate)
|
|
485
485
|
)}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host(${J}) .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) ${M} inset;border:calc(var(--thumb-size) * 0.05) solid ${fe};box-sizing:border-box}.thumb,.track::before{background-color:${ze}}:host(:hover) .thumb,:host(:hover) .track::before{background-color:${Qe}}:host(:active) .thumb,:host(:active) .track::before{background-color:${Ze}}:host(:disabled) .track{background-color:${Be}}:host(:disabled) .thumb,:host(:disabled) .track::before{background-color:${D}}`.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 Wu(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">${
|
|
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 Wu(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 Xu=Wu({thumb:'<div class="thumb"></div>'}),Uu=j.compose({name:`${p.prefix}-slider`,template:Xu,styles:Gu});Uu.define(p.registry);var Ku=Object.defineProperty,Yu=Object.getOwnPropertyDescriptor,an=(o,t,e,s)=>{for(var i=s>1?void 0:s?Yu(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&&Ku(t,e,i),i};class ci 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)}}an([a],ci.prototype,"size",2),an([a],ci.prototype,"appearance",2);const Qu=l`
|
|
487
487
|
${w("flex")}
|
|
488
488
|
|
|
489
|
-
:host{display:flex;align-items:center;height:32px;width:32px;contain:content}:host(${Xe}){height:20px;width:20px}:host(${Ue}){height:24px;width:24px}:host(${O}){height:28px;width:28px}:host(${S}){height:36px;width:36px}:host(${_o}){height:40px;width:40px}:host(${ea}){height:44px;width:44px}.progress{height:100%;width:100%}.background{fill:none;stroke:${Xs};stroke-width:1.5px}:host(${
|
|
489
|
+
:host{display:flex;align-items:center;height:32px;width:32px;contain:content}:host(${Xe}){height:20px;width:20px}:host(${Ue}){height:24px;width:24px}:host(${O}){height:28px;width:28px}:host(${S}){height:36px;width:36px}:host(${_o}){height:40px;width:40px}:host(${ea}){height:44px;width:44px}.progress{height:100%;width:100%}.background{fill:none;stroke:${Xs};stroke-width:1.5px}:host(${sr}) .background{stroke:rgba(255,255,255,0.2)}.indicator{stroke:${hr};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(${sr}) .indicator{stroke:${Ta}}@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)}}`,Zu=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>`,Ju=ci.compose({name:`${p.prefix}-spinner`,template:Zu,styles:Qu});Ju.define(p.registry);class tp extends $t{constructor(){super(),this.elementInternals.role="switch"}}function ep(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 op=ep({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),sp=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 ${ge};border-radius:${ct};cursor:pointer}:host(:hover){background:none;border-color:${Je}}:host(:active){border-color:${to}}:host(:disabled),:host([readonly]){border:1px solid ${At};background-color:none;pointer:default}:host(${v}){background:${ze};border-color:${ze}}:host(${v}:hover){background:${Qe};border-color:${Qe}}:host(${v}:active){background:${Ze};border-color:${Ze}}:host(${v}:disabled){background:${Be};border-color:${At}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${rt};transition-duration:${Vr};transition-timing-function:${
|
|
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 ${ge};border-radius:${ct};cursor:pointer}:host(:hover){background:none;border-color:${Je}}:host(:active){border-color:${to}}:host(:disabled),:host([readonly]){border:1px solid ${At};background-color:none;pointer:default}:host(${v}){background:${ze};border-color:${ze}}:host(${v}:hover){background:${Qe};border-color:${Qe}}:host(${v}:active){background:${Ze};border-color:${Ze}}:host(${v}:disabled){background:${Be};border-color:${At}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${rt};transition-duration:${Vr};transition-timing-function:${ti};transition-property:margin-inline-start}:host(${v}) .checked-indicator{background-color:${Ye};margin-inline-start:calc(100% - 14px)}:host(${v}:hover) .checked-indicator{background:${ma}}:host(${v}:active) .checked-indicator{background:${$a}}:host(:hover) .checked-indicator{background-color:${na}}:host(:active) .checked-indicator{background-color:${aa}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${D}}:host(${v}:disabled) .checked-indicator{background:${D}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${nt};outline:${oe} solid ${nt};box-shadow:${Qo},0 0 0 2px ${Ft}}`.withBehaviors(et(l`
|
|
493
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}`)),ip=tp.compose({name:`${p.prefix}-switch`,template:op,styles:sp});ip.define(p.registry);class rp extends x{}function np(){return f`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const ap=np(),lp=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)}}up([a({mode:"boolean"})],
|
|
496
|
+
:host{box-sizing:border-box;padding:${ut} ${Ot}}`,cp=rp.compose({name:`${p.prefix}-tab-panel`,template:ap,styles:lp});cp.define(p.registry);var dp=Object.defineProperty,hp=Object.getOwnPropertyDescriptor,up=(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&&dp(t,e,i),i};class di 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)}}up([a({mode:"boolean"})],di.prototype,"disabled",2),jt(di,Dt);function pp(o={}){return f`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">${Vt(o)}<span class="tab-content"><slot></slot></span>${te(o)}</template>`}const gp=pp({}),fp=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:${V};font-family:${$};font-size:${F};color:${
|
|
501
|
-
:host([aria-selected='true'])::after{background-color:Highlight}`)),bp=
|
|
500
|
+
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${V};font-family:${$};font-size:${F};color:${Xt};fill:currentcolor;grid-row:1;padding:${ut} ${Ot};border-radius:${A}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${T};font-weight:${E}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${V};font-weight:${E}}:host([aria-selected='true'])::after{background-color:${Wo};border-radius:${ct};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Go};border-radius:${ct};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${D}}::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:${D};color:${D}}: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 ${Us}}`.withBehaviors(et(l`
|
|
501
|
+
:host([aria-selected='true'])::after{background-color:Highlight}`)),bp=di.compose({name:`${p.prefix}-tab`,template:gp,styles:fp});bp.define(p.registry);const mp={subtle:"subtle",transparent:"transparent"},ls=gt;var $p=Object.defineProperty,vp=Object.getOwnPropertyDescriptor,xe=(o,t,e,s)=>{for(var i=s>1?void 0:s?vp(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 fo extends x{constructor(){super(...arguments),this.orientation=ls.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 Ps:t.preventDefault(),this.adjustBackward(t);break;case Bs:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case zs:t.preventDefault(),this.adjustBackward(t);break;case Is:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case As:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case Ts: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-${To()}`)}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id")??`panel-${To()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===ls.horizontal}adjust(t){const e=this.tabs.filter(n=>this.isFocusableElement(n)),s=e.indexOf(this.activetab),i=_s(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()}}xe([a],fo.prototype,"orientation",2),xe([a],fo.prototype,"activeid",2),xe([k],fo.prototype,"tabs",2),xe([k],fo.prototype,"tabpanels",2);class bo extends fo{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=mp.transparent}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===ls.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===ls.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()}}xe([a],bo.prototype,"appearance",2),xe([a({mode:"boolean"})],bo.prototype,"disabled",2),xe([a],bo.prototype,"size",2),
|
|
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()}}xe([a],bo.prototype,"appearance",2),xe([a({mode:"boolean"})],bo.prototype,"disabled",2),xe([a],bo.prototype,"size",2),jt(bo,Dt);function yp(o={}){return f` ${Vt(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${pt("tabs")}></slot></div>${te(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${pt("tabpanels")}></slot></div>`}const kp=yp({}),xp=l`
|
|
504
504
|
${w("grid")}
|
|
505
505
|
|
|
506
|
-
:host{box-sizing:border-box;font-family:${$};font-size:${F};line-height:${V};color:${
|
|
506
|
+
:host{box-sizing:border-box;font-family:${$};font-size:${F};line-height:${V};color:${Xt};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${D}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${D}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${D}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${D}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${A}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${D}}.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:${Vs};color:${rr};fill:${fa}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${qo};fill:${qo};color:${T}}:host([size='small']) ::slotted(fluent-tab){font-size:${F};line-height:${V};padding:${so} ${Yt}}:host([size='large']) ::slotted(fluent-tab){font-size:${dt};line-height:${xt};padding:${Qs} ${Ot}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${rc};transition-timing-function:${Rr}}:host ::slotted(fluent-tab)::after{height:${se};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${se};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${se};border-radius:${ct};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${se};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:${se}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${so};padding-bottom:${so}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Zo};padding-bottom:${Zo}}: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:${so};bottom:${so}}: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:${io};bottom:${io}}`,wp=bo.compose({name:`${p.prefix}-tabs`,template:kp,styles:xp});wp.define(p.registry);const Cp={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Sp=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var Ip=Object.defineProperty,Pp=Object.getOwnPropertyDescriptor,_=(o,t,e,s)=>{for(var i=s>1?void 0:s?Pp(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&&Ip(t,e,i),i};class I extends x{constructor(){super(...arguments),this.type=Cp.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=>Sp.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,_([a],I.prototype,"appearance",2),_([a],I.prototype,"autocomplete",2),_([a({mode:"boolean"})],I.prototype,"autofocus",2),_([a({attribute:"control-size"})],I.prototype,"controlSize",2),_([k],I.prototype,"defaultSlottedNodes",2),_([a],I.prototype,"dirname",2),_([a({mode:"boolean"})],I.prototype,"disabled",2),_([a({attribute:"form"})],I.prototype,"formAttribute",2),_([a({attribute:"value",mode:"fromView"})],I.prototype,"initialValue",2),_([a],I.prototype,"list",2),_([a({converter:st})],I.prototype,"maxlength",2),_([a({converter:st})],I.prototype,"minlength",2),_([a({mode:"boolean"})],I.prototype,"multiple",2),_([a],I.prototype,"name",2),_([a],I.prototype,"pattern",2),_([a],I.prototype,"placeholder",2),_([a({attribute:"readonly",mode:"boolean"})],I.prototype,"readOnly",2),_([a({mode:"boolean"})],I.prototype,"required",2),_([a({converter:st})],I.prototype,"size",2),_([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],I.prototype,"spellcheck",2),_([a],I.prototype,"type",2),_([k],I.prototype,"controlLabel",2),jt(I,Dt);const Bp=l`
|
|
507
507
|
${w("block")}
|
|
508
508
|
|
|
509
|
-
:host{font-family:${$};font-size:${F};font-weight:${N};line-height:${V};max-width:400px}.label{display:flex;color:${T};padding-bottom:${oc};flex-shrink:0;padding-inline-end:${
|
|
509
|
+
:host{font-family:${$};font-size:${F};font-weight:${N};line-height:${V};max-width:400px}.label{display:flex;color:${T};padding-bottom:${oc};flex-shrink:0;padding-inline-end:${Kt}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${M};border:${K} solid ${fe};border-bottom-color:${ge};border-radius:${A};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:${_a}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${A});border-radius:0 0 ${A} ${A};border-bottom:2px solid ${Wo};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${ic};transition-delay:${no}}.control{width:100%;height:100%;box-sizing:border-box;color:${T};border-radius:${A};background:${kt};font-family:${$};font-weight:${N};font-size:${F};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${la}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${rt};font-size:${Te}}:host ::slotted([slot='start']){padding-right:${ht}}:host ::slotted([slot='end']){padding-left:${ht};gap:${Kt}}:host(:hover) .root{border-color:${Go};border-bottom-color:${Je}}:host(:active) .root{border-color:${Ws}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Vr};transition-delay:${ao}}:host(:focus-within:active) .root:after{border-bottom-color:${ur}}:host(${q}:focus-within) .root{border:${K} solid ${fe}}:host(:focus-within) .control{color:${T}}:host([disabled]) .root{background:${kt};border:${K} solid ${At}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${D}}::selection{color:${Ye};background-color:${wa}}:host(${O}) .control{font-size:${G};font-weight:${N};line-height:${ot}}:host(${O}) .root{height:24px;gap:${ht};padding:0 ${Yt}}:host(${O}) ::slotted([slot='start']),:host(${O}) ::slotted([slot='end']){font-size:${dt}}:host(${S}) .control{font-size:${dt};font-weight:${N};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:${Xo}}:host(${qe}) .root{background:${kt};border:0;border-radius:0;border-bottom:${K} solid ${ge}}:host(${qe}:hover) .root{border-bottom-color:${Je}}:host(${qe}:active) .root{border-bottom-color:${to}}:host(${qe}:focus-within) .root{border:0;border-bottom-color:${to}}:host(${qe}[disabled]) .root{border-bottom-color:${At}}:host(${Ao}) .root,:host(${Fo}) .root{border:${K} solid ${nt};box-shadow:${Er}}:host(${Ao}) .root{background:${M}}:host(${Fo}) .root{background:${Ds}}:host(${Ao}:hover) .root,:host(${Fo}:hover) .root{border-color:${pr}}:host(${Ao}:active) .root,:host(${Fo}:active) .root{border-color:${pr};background:${Ds}}`;function zp(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:Kn})}></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")} />${te(o)}</div></template>`}const Tp=zp(),Ap=I.compose({name:`${p.prefix}-text-input`,template:Tp,styles:Bp,shadowOptions:{delegatesFocus:!0}});Ap.define(p.registry);var Fp=Object.defineProperty,_p=Object.getOwnPropertyDescriptor,Ht=(o,t,e,s)=>{for(var i=s>1?void 0:s?_p(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&&Fp(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 ln=l.partial`:is([state--nowrap], :state(nowrap))`,cn=l.partial`:is([state--truncate], :state(truncate))`,dn=l.partial`:is([state--underline], :state(underline))`,hn=l.partial`:is([state--strikethrough], :state(strikethrough))`,Op=l`
|
|
510
510
|
${w("inline")}
|
|
511
511
|
|
|
512
|
-
:host{contain:content;font-family:${$};font-size:${F};line-height:${V};font-weight:${N};text-align:start}:host(${ln}),:host(${ln}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${cn}),:host(${cn}) ::slotted(*){text-overflow:ellipsis}:host(:is([state--block],:state(block))){display:block}:host(:is([state--italic],:state(italic))){font-style:italic}:host(${dn}){text-decoration-line:underline}:host(${hn}){text-decoration-line:line-through}:host(${dn}${hn}){text-decoration-line:line-through underline}:host(:is([state--size-100],:state(size-100))){font-size:${oo};line-height:${Ko}}:host(:is([state--size-200],:state(size-200))){font-size:${G};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:${Te};line-height:${Yo}}:host(:is([state--size-600],:state(size-600))){font-size:${Xo};line-height:${
|
|
512
|
+
:host{contain:content;font-family:${$};font-size:${F};line-height:${V};font-weight:${N};text-align:start}:host(${ln}),:host(${ln}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${cn}),:host(${cn}) ::slotted(*){text-overflow:ellipsis}:host(:is([state--block],:state(block))){display:block}:host(:is([state--italic],:state(italic))){font-style:italic}:host(${dn}){text-decoration-line:underline}:host(${hn}){text-decoration-line:line-through}:host(${dn}${hn}){text-decoration-line:line-through underline}:host(:is([state--size-100],:state(size-100))){font-size:${oo};line-height:${Ko}}:host(:is([state--size-200],:state(size-200))){font-size:${G};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:${Te};line-height:${Yo}}:host(:is([state--size-600],:state(size-600))){font-size:${Xo};line-height:${Fr}}:host(:is([state--size-700],:state(size-700))){font-size:${Br};line-height:${_r}}:host(:is([state--size-800],:state(size-800))){font-size:${zr};line-height:${Or}}:host(:is([state--size-900],:state(size-900))){font-size:${Tr};line-height:${Mr}}:host(:is([state--size-1000],:state(size-1000))){font-size:${Ar};line-height:${Nr}}:host(:is([state--monospace],:state(monospace))){font-family:${Ul}}:host(:is([state--numeric],:state(numeric))){font-family:${Kl}}:host(:is([state--medium],:state(medium))){font-weight:${Yl}}:host(:is([state--semibold],:state(semibold))){font-weight:${E}}:host(:is([state--bold],:state(bold))){font-weight:${Uo}}: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}`,Mp=f`<slot></slot>`,Np=St.compose({name:`${p.prefix}-text`,template:Mp,styles:Op});Np.define(p.registry);var Ep=Object.defineProperty,Lp=Object.getOwnPropertyDescriptor,un=(o,t,e,s)=>{for(var i=s>1?void 0:s?Lp(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&&Ep(t,e,i),i};class hi extends B{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)}}}un([a({mode:"boolean"})],hi.prototype,"pressed",2),un([a({mode:"boolean"})],hi.prototype,"mixed",2);const Hp=l`
|
|
513
513
|
${es}
|
|
514
514
|
|
|
515
|
-
:host(${z}){border-color:${fe};background-color:${
|
|
516
|
-
:host(${z}),:host(${z}${it}),:host(${z}${C}),:host(${z}${q}),:host(${z}${U}){background:SelectedItem;color:SelectedItemText}`)),Dp=
|
|
515
|
+
:host(${z}){border-color:${fe};background-color:${ar};color:${T};border-width:${K}}:host(${z}:hover){border-color:${Go};background-color:${Ls}}:host(${z}:active){border-color:${Ws};background-color:${Hs}}:host(${z}${it}){border-color:transparent;background-color:${Pa};color:${Ut}}:host(${z}${it}:hover){background-color:${lr}}:host(${z}${it}:active){background-color:${cr}}:host(${z}${C}){border-color:transparent;background-color:${Sa};color:${ia}}:host(${z}${C}:hover){background-color:${Vs};color:${Ho}}:host(${z}${C}:active){background-color:${qo};color:${Do}}:host(${z}${q}),:host(${z}${U}){background-color:${Ia}}:host(${z}${q}:hover),:host(${z}${U}:hover){background-color:${js}}:host(${z}${q}:active),:host(${z}${U}:active){background-color:${Rs}}:host(${z}${U}){border-color:transparent;color:${ra}}:host(${z}${U}:hover){color:${Vo}}:host(${z}${U}:active){color:${jo}}`.withBehaviors(et(l`
|
|
516
|
+
:host(${z}),:host(${z}${it}),:host(${z}${C}),:host(${z}${q}),:host(${z}${U}){background:SelectedItem;color:SelectedItemText}`)),Dp=ii(),Vp=hi.compose({name:`${p.prefix}-toggle-button`,template:Dp,styles:Hp});Vp.define(p.registry);
|