@fluentui/web-components 3.0.0-beta.67 → 3.0.0-beta.69
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 +21 -2
- package/dist/dts/menu/menu.d.ts +12 -0
- package/dist/esm/button/button.styles.js +7 -1
- package/dist/esm/button/button.styles.js.map +1 -1
- package/dist/esm/menu/menu.js +11 -1
- package/dist/esm/menu/menu.js.map +1 -1
- package/dist/esm/menu/menu.styles.js +26 -0
- package/dist/esm/menu/menu.styles.js.map +1 -1
- package/dist/esm/menu/menu.template.js +2 -1
- package/dist/esm/menu/menu.template.js.map +1 -1
- package/dist/esm/menu-item/menu-item.js +1 -1
- package/dist/esm/menu-item/menu-item.js.map +1 -1
- package/dist/web-components.d.ts +12 -0
- package/dist/web-components.js +11 -5
- package/dist/web-components.min.js +96 -96
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Vo;const Qi="fast-kernel";try{if(document.currentScript)Vo=document.currentScript.getAttribute(Qi);else{const o=document.getElementsByTagName("script");Vo=o[o.length-1].getAttribute(Qi)}}catch{Vo="isolate"}let ge;switch(Vo){case"share":ge=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ge=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)}`;ge=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Ae=o=>typeof o=="function",Ft=o=>typeof o=="string",Zi=()=>{};var Gs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Gs<"u")Gs.globalThis=Gs;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 Ji={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Ji));const et=globalThis.FAST;if(et.getById===void 0){const o=Object.create(null);Reflect.defineProperty(et,"getById",Object.assign({value(t,e){let s=o[t];return s===void 0&&(s=e?o[t]=e():null),s}},Ji))}et.error===void 0&&Object.assign(et,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const ua=Object.freeze([]);function Ws(){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 tr(){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 be(o){o.prototype.toJSON=Zi}const Y=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),er=o=>o,pa=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:er}):{createHTML:er};let Do=Object.freeze({createHTML(o){return pa.createHTML(o)},protect(o,t,e,s){return s}});const ga=Do,fe=Object.freeze({get policy(){return Do},setPolicy(o){if(Do!==ga)throw et.error(1201);Do=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)}}),Ot=et.getById(ge.updateQueue,()=>{const o=[],t=[],e=globalThis.requestAnimationFrame;let s=!0;function i(){if(t.length)throw t.shift()}function r(p){try{p.call()}catch(h){if(s)t.push(h),setTimeout(i,0);else throw o.length=0,h}}function n(){let h=0;for(;h<o.length;)if(r(o[h]),h++,h>1024){for(let d=0,b=o.length-h;d<b;d++)o[d]=o[d+h];o.length-=h,h=0}o.length=0}function u(p){o.push(p),o.length<2&&(s?e(n):n())}return Object.freeze({enqueue:u,next:()=>new Promise(u),process:n,setMode:p=>s=p})});class Xs{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 or{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 Xs(this.subject):r=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new Xs(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 Lo=Object.freeze({unknown:void 0,coupled:1}),m=et.getById(ge.observable,()=>{const o=Ot.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let s,i=h=>{throw et.error(1101)};function r(h){var d;let b=(d=h.$fastController)!==null&&d!==void 0?d:e.get(h);return b===void 0&&(Array.isArray(h)?b=i(h):e.set(h,b=new or(h))),b}const n=tr();class u{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 k=this.field,ht=d[k];if(ht!==b){d[k]=b;const re=d[this.callback];Ae(re)&&re.call(d,ht,b),r(d).notify(this.name)}}}class p extends Xs{constructor(d,b,k=!1){super(d,b),this.expression=d,this.isVolatileBinding=k,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!==Lo.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 k=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let ht;try{ht=this.expression(d,b)}finally{s=k}return ht}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 k=this.last,ht=r(d),re=k===null?this.first:{};if(re.propertySource=d,re.propertyName=b,re.notifier=ht,ht.subscribe(this,b),k!==null){if(!this.needsRefresh){let Yi;s=void 0,Yi=k.propertySource[k.propertyName],s=this,d===Yi&&(this.needsRefresh=!0)}k.next=re}this.last=re}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 be(p),Object.freeze({setArrayObserverFactory(h){i=h},getNotifier:r,track(h,d){s&&s.watch(h,d)},trackVolatile(){s&&(s.needsRefresh=!0)},notify(h,d){r(h).notify(d)},defineProperty(h,d){Ft(d)&&(d=new u(d)),n(h).push(d),Reflect.defineProperty(h,d.name,{enumerable:!0,get(){return d.getValue(this)},set(b){d.setValue(this,b)}})},getAccessors:n,binding(h,d,b=this.isVolatileBinding(h)){return new p(h,d,b)},isVolatileBinding(h){return t.test(h.toString())}})});function y(o,t){m.defineProperty(o,t)}function ba(o,t,e){return Object.assign({},e,{get(){return m.trackVolatile(),e.get.apply(this)}})}const sr=et.getById(ge.contextEvent,()=>{let o=null;return{get(){return o},set(t){o=t}}}),Ee=Object.freeze({default:{index:0,length:0,get event(){return Ee.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return sr.get()},setEvent(o){sr.set(o)}});class Ho{constructor(t,e,s=!1){this.evaluate=t,this.policy=e,this.isVolatile=s}}class fa extends Ho{createObserver(t){return m.binding(this.evaluate,t,this.isVolatile)}}function Ks(o,t,e=m.isVolatileBinding(o)){return new fa(o,t,e)}class ir extends Ho{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}be(ir);function rr(o,t){return new ir(o,t)}let nr;function ar(o){return o.map(t=>t instanceof mt?ar(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class mt{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof mt?e.behaviors:null).reduce((e,s)=>s===null?e:e===null?s:e.concat(s),null)}get strategy(){return this._strategy===null&&this.withStrategy(nr),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(ar(this.styles)),this}static setDefaultStrategy(t){nr=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new mt(t):t instanceof mt?t:new mt([t])}}mt.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Ys=Ws(),Qs=Object.freeze({getForInstance:Ys.getForInstance,getByType:Ys.getByType,define(o){return Ys.register({type:o}),o}});function Zs(o,t,e){t.source.style.setProperty(o.targetAspect,e.bind(t))}class Js{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,u)=>{r.call(s,n,u),n==="style"&&s.$cssBindings.forEach((p,h)=>Zs(h,p.controller,p.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){Zs(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){Zs(this,e.controller,e)}}Qs.define(Js);const ma=`${Math.random().toString(36).substring(2,8)}`;let $a=0;const lr=()=>`--v${ma}${++$a}`;function cr(o,t){const e=[];let s="";const i=[],r=n=>{i.push(n)};for(let n=0,u=o.length-1;n<u;++n){s+=o[n];let p=t[n];Ae(p)?p=new Js(Ks(p),lr()).createCSS(r):p instanceof Ho?p=new Js(p,lr()).createCSS(r):Qs.getForInstance(p)!==void 0&&(p=p.createCSS(r)),p instanceof mt||p instanceof CSSStyleSheet?(s.trim()!==""&&(e.push(s),s=""),e.push(p)):s+=p}return s+=o[o.length-1],s.trim()!==""&&e.push(s),{styles:e,behaviors:i}}const l=(o,...t)=>{const{styles:e,behaviors:s}=cr(o,t),i=new mt(e);return s.length?i.withBehaviors(...s):i};class dr{constructor(t,e){this.behaviors=e,this.css="";const s=t.reduce((i,r)=>(Ft(r)?this.css+=r:i.push(r),i),[]);s.length&&(this.styles=new mt(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)}}Qs.define(dr),l.partial=(o,...t)=>{const{styles:e,behaviors:s}=cr(o,t);return new dr(e,s)};const hr=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,ur=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,pr=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,gr=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,br=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,fr=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function mr(o){return o&&o.nodeType===Node.COMMENT_NODE}const Mt=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(o,t){return`fe-b$$start$$${o}$$${t}$$fe-b`},contentBindingEndMarker(o,t){return`fe-b$$end$$${o}$$${t}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return hr.test(o)},isContentBindingEndMarker(o){return ur.test(o)},isRepeatViewStartMarker(o){return pr.test(o)},isRepeatViewEndMarker(o){return gr.test(o)},isElementBoundaryStartMarker(o){return mr(o)&&br.test(o.data.trim())},isElementBoundaryEndMarker(o){return mr(o)&&fr.test(o.data)},parseAttributeBinding(o){const t=o.getAttribute(this.attributeMarkerName);return t===null?t:t.split(this.attributeBindingSeparator).map(e=>parseInt(e))},parseContentBindingStartMarker(o){return yr(hr,o)},parseContentBindingEndMarker(o){return yr(ur,o)},parseRepeatStartMarker(o){return $r(pr,o)},parseRepeatEndMarker(o){return $r(gr,o)},parseElementBoundaryStartMarker(o){return vr(br,o.trim())},parseElementBoundaryEndMarker(o){return vr(fr,o)}});function $r(o,t){const e=o.exec(t);return e===null?e:parseInt(e[1])}function vr(o,t){const e=o.exec(t);return e===null?e:e[1]}function yr(o,t){const e=o.exec(t);return e===null?e:[parseInt(e[1]),e[2]]}const Ro=Symbol.for("fe-hydration");function jo(o){return o[Ro]===Ro}const ti=`fast-${Math.random().toString(36).substring(2,8)}`,qo=`${ti}{`,io=`}${ti}`,va=io.length;let ya=0;const ro=()=>`${ti}-${++ya}`,kr=Object.freeze({interpolation:o=>`${qo}${o}${io}`,attribute:o=>`${ro()}="${qo}${o}${io}"`,comment:o=>`<!--${qo}${o}${io}-->`}),Uo=Object.freeze({parse(o,t){const e=o.split(qo);if(e.length===1)return null;const s=[];for(let i=0,r=e.length;i<r;++i){const n=e[i],u=n.indexOf(io);let p;if(u===-1)p=n;else{const h=n.substring(0,u);s.push(t[h]),p=n.substring(u+va)}p!==""&&s.push(p)}return s}}),ei=Ws(),St=Object.freeze({getForInstance:ei.getForInstance,getByType:ei.getByType,define(o,t){return t=t||{},t.type=o,ei.register(t),o},assignAspect(o,t){if(!t){o.aspectType=Y.content;return}switch(o.sourceAspect=t,t[0]){case":":o.targetAspect=t.substring(1),o.aspectType=o.targetAspect==="classList"?Y.tokenList:Y.property;break;case"?":o.targetAspect=t.substring(1),o.aspectType=Y.booleanAttribute;break;case"@":o.targetAspect=t.substring(1),o.aspectType=Y.event;break;default:o.targetAspect=t,o.aspectType=Y.attribute;break}}});class oi{constructor(t){this.options=t}createHTML(t){return kr.attribute(t(this))}createBehavior(){return this}}be(oi);class xr extends Error{constructor(t,e,s){super(t),this.factories=e,this.node=s}}function si(o){return o.nodeType===Node.COMMENT_NODE}function wr(o){return o.nodeType===Node.TEXT_NODE}function Cr(o,t){const e=document.createRange();return e.setStart(o,0),e.setEnd(t,si(t)||wr(t)?t.data.length:t.childNodes.length),e}function ka(o){return o instanceof DocumentFragment&&"mode"in o}function xa(o,t,e){const s=Cr(o,t),i=s.commonAncestorContainer,r=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(h){return s.comparePoint(h,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},u={};let p=r.currentNode=o;for(;p!==null;){switch(p.nodeType){case Node.ELEMENT_NODE:{wa(p,e,n);break}case Node.COMMENT_NODE:{Ca(p,r,e,n,u);break}}p=r.nextNode()}return s.detach(),{targets:n,boundaries:u}}function wa(o,t,e){const s=Mt.parseAttributeBinding(o);if(s!==null){for(const i of s){if(!t[i])throw new xr(`HydrationView was unable to successfully target factory on ${o.nodeName} inside ${o.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,t,o);Go(t[i],o,e)}o.removeAttribute(Mt.attributeMarkerName)}}function Ca(o,t,e,s,i){if(Mt.isElementBoundaryStartMarker(o)){Ia(o,t);return}if(Mt.isContentBindingStartMarker(o.data)){const r=Mt.parseContentBindingStartMarker(o.data);if(r===null)return;const[n,u]=r,p=e[n],h=[];let d=t.nextSibling();o.data="";const b=d;for(;d!==null;){if(si(d)){const k=Mt.parseContentBindingEndMarker(d.data);if(k&&k[1]===u)break}h.push(d),d=t.nextSibling()}if(d===null){const k=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${ka(k)?k.host.nodeName:k.nodeName}".`)}if(d.data="",h.length===1&&wr(h[0]))Go(p,h[0],s);else{d!==b&&d.previousSibling!==null&&(i[p.targetNodeId]={first:b,last:d.previousSibling});const k=d.parentNode.insertBefore(document.createTextNode(""),d);Go(p,k,s)}}}function Ia(o,t){const e=Mt.parseElementBoundaryStartMarker(o.data);let s=t.nextSibling();for(;s!==null;){if(si(s)){const i=Mt.parseElementBoundaryEndMarker(s.data);if(i&&i===e)break}s=t.nextSibling()}}function Go(o,t,e){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");e[o.targetNodeId]=t}var Ir;function ii(o,t){const e=o.parentNode;let s=o,i;for(;s!==t;){if(i=s.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.removeChild(s),s=i}e.removeChild(t)}class Sr{constructor(){this.index=0,this.length=0}get event(){return Ee.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}}class Wo extends Sr{constructor(t,e,s){super(),this.fragment=t,this.factories=e,this.targets=s,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Lo.unknown,this.context=this,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const 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(){ii(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 u=i[r].createBehavior();u.bind(this),s[r]=u}}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){ii(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,s=t.length;e<s;++e)t[e].unbind()}}}be(Wo),m.defineProperty(Wo.prototype,"index"),m.defineProperty(Wo.prototype,"length");const Ne={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Sa extends Error{constructor(t,e,s,i){super(t),this.factory=e,this.fragment=s,this.templateString=i}}class za extends Sr{constructor(t,e,s,i){super(),this.firstChild=t,this.lastChild=e,this.sourceTemplate=s,this.hostBindingTarget=i,this[Ir]=Ro,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Lo.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=Ne.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=s.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(t){if(this.fragment!==null)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)}}appendTo(t){this.fragment!==null&&t.appendChild(this.fragment)}remove(){const t=this.fragment||(this.fragment=document.createDocumentFragment()),e=this.lastChild;let s=this.firstChild,i;for(;s!==e;){if(i=s.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.appendChild(s),s=i}t.appendChild(e)}bind(t,e=this){var s,i;if(this.hydrationStage!==Ne.hydrated&&(this._hydrationStage=Ne.hydrating),this.source===t)return;let r=this.behaviors;if(r===null){this.source=t,this.context=e;try{const{targets:u,boundaries:p}=xa(this.firstChild,this.lastChild,this.factories);this._targets=u,this._bindingViewBoundaries=p}catch(u){if(u instanceof xr){let p=this.sourceTemplate.html;typeof p!="string"&&(p=p.innerHTML),u.templateString=p}throw u}this.behaviors=r=new Array(this.factories.length);const n=this.factories;for(let u=0,p=n.length;u<p;++u){const h=n[u];if(h.targetNodeId==="h"&&this.hostBindingTarget&&Go(h,this.hostBindingTarget,this._targets),h.targetNodeId in this.targets){const d=h.createBehavior();d.bind(this),r[u]=d}else{let d=this.sourceTemplate.html;throw typeof d!="string"&&(d=d.innerHTML),new Sa(`HydrationView was unable to successfully target bindings inside "${(i=((s=this.firstChild)===null||s===void 0?void 0:s.getRootNode()).host)===null||i===void 0?void 0:i.nodeName}".`,h,Cr(this.firstChild,this.lastChild).cloneContents(),d)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let n=0,u=r.length;n<u;++n)r[n].bind(this)}this.isBound=!0,this._hydrationStage=Ne.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){ii(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,s=t.length;e<s;++e)t[e].unbind(this);t.length=0}}Ir=Ro,be(za);function Ta(o){return o.create!==void 0}function Ba(o,t,e,s){if(e==null&&(e=""),Ta(e)){o.textContent="";let i=o.$fastView;if(i===void 0)if(jo(s)&&jo(e)&&s.bindingViewBoundaries[this.targetNodeId]!==void 0&&s.hydrationStage!==Ne.hydrated){const r=s.bindingViewBoundaries[this.targetNodeId];i=e.hydrate(r.first,r.last)}else i=e.create();else 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 Pa(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 u=r.v;const p=o[t];if(e!=null&&e.length){const h=e.split(/\s+/);for(let d=0,b=h.length;d<b;++d){const k=h[d];k!==""&&(n[k]=u,p.add(k))}}if(r.v=u+1,u!==0){u-=1;for(const h in n)n[h]===u&&p.remove(h)}}const Aa={[Y.attribute]:fe.setAttribute,[Y.booleanAttribute]:fe.setBooleanAttribute,[Y.property]:(o,t,e)=>o[t]=e,[Y.content]:Ba,[Y.tokenList]:Pa,[Y.event]:()=>{}};class Fe{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=Y.content}createHTML(t){return kr.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=Aa[this.aspectType],s=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw et.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],i=jo(t)&&t.hydrationStage&&t.hydrationStage!==Ne.hydrated;switch(this.aspectType){case Y.event:s[this.data]=t,s.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Y.content:t.onUnbind(this);default:const r=(e=s[this.data])!==null&&e!==void 0?e:s[this.data]=this.dataBinding.createObserver(this,this);if(r.target=s,r.controller=t,i&&(this.aspectType===Y.attribute||this.aspectType===Y.booleanAttribute)){r.bind(t);break}this.updateTarget(s,this.targetAspect,r.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){Ee.setEvent(t);const s=this.dataBinding.evaluate(e.source,e.context);Ee.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)}}St.define(Fe,{aspected:!0});const zr=(o,t)=>`${o}.${t}`,Tr={},_t={index:0,node:null};function Br(o){o.startsWith("fast-")||et.warn(1204,{name:o})}const Ea=new Proxy(document.createElement("div"),{get(o,t){Br(t);const e=Reflect.get(o,t);return Ae(e)?e.bind(o):e},set(o,t,e){return Br(t),Reflect.set(o,t,e)}});class Na{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,u;this.nodeIds.has(s)||(this.nodeIds.add(s),this.addTargetDescriptor(e,s,i)),t.id=(n=t.id)!==null&&n!==void 0?n:ro(),t.targetNodeId=s,t.targetTagName=r,t.policy=(u=t.policy)!==null&&u!==void 0?u: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("."),u=t.substring(0,n),p=parseInt(t.substring(n+1));this.addTargetDescriptor(u,t,p)}let r=Tr[e];if(!r){const n=`_${e}`;Tr[e]=r={get(){var u;return(u=this[n])!==null&&u!==void 0?u: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??Ea;for(const i of this.nodeIds)s[i];return new Wo(e,this.factories,s)}}function Pr(o,t,e,s,i,r=!1){const n=e.attributes,u=o.directives;for(let p=0,h=n.length;p<h;++p){const d=n[p],b=d.value,k=Uo.parse(b,u);let ht=null;k===null?r&&(ht=new Fe(rr(()=>b,o.policy)),St.assignAspect(ht,d.name)):ht=ri.aggregate(k,o.policy),ht!==null&&(e.removeAttributeNode(d),p--,h--,o.addFactory(ht,t,s,i,e.tagName))}}function Fa(o,t,e,s,i){const r=Uo.parse(t.textContent,o.directives);if(r===null)return _t.node=t.nextSibling,_t.index=i+1,_t;let n,u=n=t;for(let p=0,h=r.length;p<h;++p){const d=r[p];p!==0&&(i++,s=zr(e,i),n=u.parentNode.insertBefore(document.createTextNode(""),u.nextSibling)),Ft(d)?n.textContent=d:(n.textContent=" ",St.assignAspect(d),o.addFactory(d,e,s,i,null)),u=n}return _t.index=i+1,_t.node=u.nextSibling,_t}function Ar(o,t,e){let s=0,i=t.firstChild;for(;i;){const r=Oa(o,e,i,s);i=r.node,s=r.index}}function Oa(o,t,e,s){const i=zr(t,s);switch(e.nodeType){case 1:Pr(o,t,e,i,s),Ar(o,e,i);break;case 3:return Fa(o,e,t,i,s);case 8:const r=Uo.parse(e.data,o.directives);r!==null&&o.addFactory(ri.aggregate(r),t,i,s,null);break}return _t.index=s+1,_t.node=e.nextSibling,_t}function Ma(o,t){return o&&o.nodeType==8&&Uo.parse(o.data,t)!==null}const Er="TEMPLATE",ri={compile(o,t,e=fe.policy){let s;if(Ft(o)){s=document.createElement(Er),s.innerHTML=e.createHTML(o);const n=s.content.firstElementChild;n!==null&&n.tagName===Er&&(s=n)}else s=o;!s.content.firstChild&&!s.content.lastChild&&s.content.appendChild(document.createComment(""));const i=document.adoptNode(s.content),r=new Na(i,t,e);return Pr(r,"",s,"h",0,!0),(Ma(i.firstChild,t)||i.childNodes.length===1&&Object.keys(t).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),Ar(r,i,"r"),_t.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,t=fe.policy){if(o.length===1)return o[0];let e,s=!1,i;const r=o.length,n=o.map(h=>Ft(h)?()=>h:(e=h.sourceAspect||e,s=s||h.dataBinding.isVolatile,i=i||h.dataBinding.policy,h.dataBinding.evaluate)),u=(h,d)=>{let b="";for(let k=0;k<r;++k)b+=n[k](h,d);return b},p=new Fe(Ks(u,i??t,s));return St.assignAspect(p,e),p}},_a=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Va=Object.create(null);class me{constructor(t,e=Va){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const s in e)t(e[s]);return this.html}}me.empty=new me(""),St.define(me);function Da(o,t,e,s=St.getForInstance(o)){if(s.aspected){const i=_a.exec(t);i!==null&&St.assignAspect(o,i[2])}return o.createHTML(e)}class js{constructor(t,e={},s){this.policy=s,this.result=null,this.html=t,this.factories=e}compile(){return this.result===null&&(this.result=ri.compile(this.html,this.factories,this.policy)),this.result}create(t){return this.compile().createView(t)}inline(){return new me(Ft(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw et.error(1208);if(this.policy)throw et.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=u=>{var p;const h=(p=u.id)!==null&&p!==void 0?p:u.id=ro();return r[h]=u,h};for(let u=0,p=t.length-1;u<p;++u){const h=t[u];let d=e[u],b;if(i+=h,Ae(d))d=new Fe(Ks(d));else if(d instanceof Ho)d=new Fe(d);else if(!(b=St.getForInstance(d))){const k=d;d=new Fe(rr(()=>k))}i+=Da(d,h,n,b)}return new js(i+t[t.length-1],r,s)}}be(js);const f=(o,...t)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return js.create(o,t);throw et.error(1206)};f.partial=o=>new me(o);class Nr extends oi{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}St.define(Nr);const xt=o=>new Nr(o),La=o=>o.nodeType===1,Oe=o=>o?t=>t.nodeType===1&&t.matches(o):La;class Fr extends oi{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,ua),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 Or="slotchange";class Mr extends Fr{observe(t){t.addEventListener(Or,this)}disconnect(t){t.removeEventListener(Or,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}St.define(Mr);function ot(o){return Ft(o)&&(o={property:o}),new Mr(o)}class _r extends Fr{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=Zi,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)}}St.define(_r);function Ha(o){return Ft(o)&&(o={property:o}),new _r(o)}const Vr="boolean",Dr="reflect",Xo=Object.freeze({locate:tr()}),Ra={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Lr(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const st={toView(o){const t=Lr(o);return t&&t.toString()},fromView:Lr};class qs{constructor(t,e,s=e.toLowerCase(),i=Dr,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===Vr&&r===void 0&&(this.converter=Ra)}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"||Ot.enqueue(()=>{s.add(t);const i=t[this.fieldName];switch(e){case Dr:const r=this.converter;fe.setAttribute(t,this.attribute,r!==void 0?r.toView(i):i);break;case Vr:fe.setBooleanAttribute(t,this.attribute,i);break}s.delete(t)})}static collect(t,...e){const s=[];e.push(Xo.locate(t));for(let i=0,r=e.length;i<r;++i){const n=e[i];if(n!==void 0)for(let u=0,p=n.length;u<p;++u){const h=n[u];Ft(h)?s.push(new qs(t,h)):s.push(new qs(t,h.property,h.attribute,h.mode,h.converter))}}return s}}function a(o,t){let e;function s(i,r){arguments.length>1&&(e.property=r),Xo.locate(i.constructor).push(e)}if(arguments.length>1){e={},s(o,t);return}return e=o===void 0?{}:o,s}const Hr={mode:"open"},Rr={},jr=new Set,Ko=et.getById(ge.elementRegistry,()=>Ws());class Nt{constructor(t,e=t.definition){var s;this.platformDefined=!1,Ft(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=qs.collect(t,e.attributes),n=new Array(r.length),u={},p={};for(let h=0,d=r.length;h<d;++h){const b=r[h];n[h]=b.attribute,u[b.name]=b,p[b.attribute]=b,m.defineProperty(i,b)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=u,this.attributeLookup=p,this.shadowOptions=e.shadowOptions===void 0?Hr:e.shadowOptions===null?void 0:Object.assign(Object.assign({},Hr),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Rr:Object.assign(Object.assign({},Rr),e.elementOptions),this.styles=mt.normalize(e.styles),Ko.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 jr.has(t)||Ko.getByType(t)?new Nt(class extends t{},e):new Nt(t,e)}static registerBaseType(t){jr.add(t)}}Nt.getByType=Ko.getByType,Nt.getForInstance=Ko.getForInstance;class ja extends MutationObserver{constructor(t){function e(s){this.callback.call(null,s.filter(i=>this.observedNodes.has(i.target)))}super(e),this.callback=t,this.observedNodes=new Set}observe(t,e){this.observedNodes.add(t),super.observe(t,e)}unobserve(t){this.observedNodes.delete(t),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const t=[],e={};let s=null,i=!1;return{source:o,context:Ee.default,targets:e,get isBound(){return i},addBehaviorFactory(r,n){var u,p,h,d;const b=r;b.id=(u=b.id)!==null&&u!==void 0?u:ro(),b.targetNodeId=(p=b.targetNodeId)!==null&&p!==void 0?p:ro(),b.targetTagName=(h=n.tagName)!==null&&h!==void 0?h:null,b.policy=(d=b.policy)!==null&&d!==void 0?d:fe.policy,this.addTarget(b.targetNodeId,n),this.addBehavior(b.createBehavior())},addTarget(r,n){e[r]=n},addBehavior(r){t.push(r),i&&r.bind(this)},onUnbind(r){s===null&&(s=[]),s.push(r)},connectedCallback(r){i||(i=!0,t.forEach(n=>n.bind(this)))},disconnectedCallback(r){i&&(i=!1,s!==null&&s.forEach(n=>n.unbind(this)))}}}});const qa={bubbles:!0,composed:!0,cancelable:!0},Yo="isConnected",qr=new WeakMap;function no(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:qr.get(o))!==null&&e!==void 0?e:null}let Ur;class Me extends or{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.behaviorsConnected=!1,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"&&qr.set(t,r))}const i=m.getAccessors(t);if(i.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,u=i.length;n<u;++n){const p=i[n].name,h=t[p];h!==void 0&&(delete t[p],r[p]=h)}}}get isConnected(){return m.track(this,Yo),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:Ee.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=no(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=no(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(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),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,Yo))}bindObservables(){if(this.boundObservables!==null){const t=this.source,e=this.boundObservables,s=Object.keys(e);for(let i=0,r=s.length;i<r;++i){const n=s[i];t[n]=e[n]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){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.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,m.notify(this,Yo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),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},qa),s))):!1}renderTemplate(t){var e;const s=this.source,i=(e=no(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=Lo.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const s=Nt.getForInstance(t);if(s===void 0)throw et.error(1401);return t.$fastController=new Ur(t,s)}static setStrategy(t){Ur=t}}be(Me),Me.setStrategy(Me);function Qo(o){var t;return"adoptedStyleSheets"in o?o:(t=no(o))!==null&&t!==void 0?t:o.getRootNode()}class Us{constructor(t){const e=Us.styleSheetCache;this.sheets=t.map(s=>{if(s instanceof CSSStyleSheet)return s;let i=e.get(s);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(s),e.set(s,i)),i})}addStylesTo(t){Wr(Qo(t),this.sheets)}removeStylesFrom(t){Xr(Qo(t),this.sheets)}}Us.styleSheetCache=new Map;let Ua=0;const Ga=()=>`fast-${++Ua}`;function Gr(o){return o===document?document.body:o}class Wa{constructor(t){this.styles=t,this.styleClass=Ga()}addStylesTo(t){t=Gr(Qo(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=Gr(Qo(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let s=0,i=e.length;s<i;++s)t.removeChild(e[s])}}let Wr=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},Xr=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(mt.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Wr=(o,t)=>{o.adoptedStyleSheets.push(...t)},Xr=(o,t)=>{for(const e of t){const s=o.adoptedStyleSheets.indexOf(e);s!==-1&&o.adoptedStyleSheets.splice(s,1)}}}catch{}mt.setDefaultStrategy(Us)}else mt.setDefaultStrategy(Wa);const Kr="defer-hydration",Yr="needs-hydration";class Pe extends Me{static hydrationObserverHandler(t){for(const e of t)Pe.hydrationObserver.unobserve(e.target),e.target.$fastController.connect()}connect(){var t,e;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(Yr)!==null),this.source.hasAttribute(Kr)){Pe.hydrationObserver.observe(this.source,{attributeFilter:[Kr]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const s=this.source,i=(t=no(s))!==null&&t!==void 0?t:s;if(this.template)if(jo(this.template)){let r=i.firstChild,n=i.lastChild;s.shadowRoot===null&&(Mt.isElementBoundaryStartMarker(r)&&(r.data="",r=r.nextSibling),Mt.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(r,n,s),(e=this.view)===null||e===void 0||e.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(Yr),this.needsInitialization=this.needsHydration=!1,m.notify(this,Yo)}disconnect(){super.disconnect(),Pe.hydrationObserver.unobserve(this.source)}static install(){Me.setStrategy(Pe)}}Pe.hydrationObserver=new ja(Pe.hydrationObserverHandler);function Qr(o){const t=class extends o{constructor(){super(),Me.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 Nt.registerBaseType(t),t}function Xa(o,t){return Ae(o)?Nt.compose(o,t):Nt.compose(this,o)}function Ka(o,t){return Ae(o)?Nt.compose(o,t).define().type:Nt.compose(this,o).define().type}function Ya(o){return Qr(o)}const w=Object.assign(Qr(HTMLElement),{from:Ya,define:Ka,compose:Xa}),$t={horizontal:"horizontal",vertical:"vertical"};function Qa(o,t){let e=o.length;for(;e--;)if(t(o[e],e,o))return e;return-1}function Zr(...o){return o.every(t=>t instanceof HTMLElement)}const Zo="ArrowDown",Jo="ArrowLeft",ts="ArrowRight",es="ArrowUp",os="End",ss="Enter",Za="Escape",is="Home",ni=" ",Ja="Tab";var zt;(function(o){o.ltr="ltr",o.rtl="rtl"})(zt||(zt={}));function tl(o,t,e){return e<o?t:e>t?o:e}function ai(o,t,e){return Math.min(Math.max(e,o),t)}let el=0;function ao(o=""){return`${o}${el++}`}var ol=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,H=(o,t,e,s)=>{for(var i=s>1?void 0:s?sl(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&&ol(t,e,i),i};class R{}H([a({attribute:"aria-atomic"})],R.prototype,"ariaAtomic",2),H([a({attribute:"aria-busy"})],R.prototype,"ariaBusy",2),H([a({attribute:"aria-controls"})],R.prototype,"ariaControls",2),H([a({attribute:"aria-current"})],R.prototype,"ariaCurrent",2),H([a({attribute:"aria-describedby"})],R.prototype,"ariaDescribedby",2),H([a({attribute:"aria-details"})],R.prototype,"ariaDetails",2),H([a({attribute:"aria-disabled"})],R.prototype,"ariaDisabled",2),H([a({attribute:"aria-errormessage"})],R.prototype,"ariaErrormessage",2),H([a({attribute:"aria-flowto"})],R.prototype,"ariaFlowto",2),H([a({attribute:"aria-haspopup"})],R.prototype,"ariaHaspopup",2),H([a({attribute:"aria-hidden"})],R.prototype,"ariaHidden",2),H([a({attribute:"aria-invalid"})],R.prototype,"ariaInvalid",2),H([a({attribute:"aria-keyshortcuts"})],R.prototype,"ariaKeyshortcuts",2),H([a({attribute:"aria-label"})],R.prototype,"ariaLabel",2),H([a({attribute:"aria-labelledby"})],R.prototype,"ariaLabelledby",2),H([a({attribute:"aria-live"})],R.prototype,"ariaLive",2),H([a({attribute:"aria-owns"})],R.prototype,"ariaOwns",2),H([a({attribute:"aria-relevant"})],R.prototype,"ariaRelevant",2),H([a({attribute:"aria-roledescription"})],R.prototype,"ariaRoledescription",2);const li={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()}},ci=o=>o.closest("[dir]")?.dir==="rtl"?zt.rtl:zt.ltr;function vt(o){return o?typeof o=="string"?new me(o):"inline"in o?o.inline():o:me.empty}const di=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,il=":host([hidden]){display:none}";function S(o){return`${il}:host{display:${o}}`}class rl{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:e}=this;let s=this.listenerCache.get(t);s||(s=this.constructListener(t),this.listenerCache.set(t,s)),s.bind(e)(),e.addEventListener("change",s)}disconnectedCallback(t){const e=this.listenerCache.get(t);e&&this.query.removeEventListener("change",e)}}class _o extends rl{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new _o(t,e)}constructListener(t){let e=!1;const s=this.styles;return function(){const{matches:r}=this;r&&!e?(t.addStyles(s),e=r):!r&&e&&(t.removeStyles(s),e=r)}}removedCallback(t){t.removeStyles(this.styles)}}const Q=_o.with(window.matchMedia("(forced-colors)"));_o.with(window.matchMedia("(prefers-color-scheme: dark)")),_o.with(window.matchMedia("(prefers-color-scheme: light)"));class Gt{}function ne(o){return f`<slot name="end" ${xt("end")}>${vt(o.end)}</slot>`.inline()}function Wt(o){return f`<slot name="start" ${xt("start")}>${vt(o.start)}</slot>`.inline()}function Xt(o,...t){const e=Xo.locate(o);t.forEach(s=>{Object.getOwnPropertyNames(s.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(s.prototype,r))}),Xo.locate(s).forEach(r=>e.push(r))})}const nl=CSS.supports("selector(:state(g))");function c(o,t,e){if(!nl){o.shadowRoot.host.toggleAttribute(`state--${t}`,e);return}if(e??!o.states.has(t)){o.states.add(t);return}o.states.delete(t)}var al=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,$e=(o,t,e,s)=>{for(var i=s>1?void 0:s?ll(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&&al(t,e,i),i};class Kt extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=ao("accordion-")}expandedChanged(t,e){c(this.elementInternals,"expanded",e)}disabledChanged(t,e){c(this.elementInternals,"disabled",e)}}$e([a({attribute:"heading-level",mode:"fromView",converter:st})],Kt.prototype,"headinglevel",2),$e([a({mode:"boolean"})],Kt.prototype,"expanded",2),$e([a({mode:"boolean"})],Kt.prototype,"disabled",2),$e([a],Kt.prototype,"id",2);class lo extends Kt{constructor(){super(...arguments),this.block=!1}sizeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}markerPositionChanged(t,e){t&&c(this.elementInternals,`align-${t}`,!1),e&&c(this.elementInternals,`align-${e}`,!0)}blockChanged(t,e){c(this.elementInternals,"block",e)}}$e([a],lo.prototype,"size",2),$e([a({attribute:"marker-position"})],lo.prototype,"markerPosition",2),$e([a({mode:"boolean"})],lo.prototype,"block",2),Xt(lo,Gt);const v=l.partial`:is([state--checked], :state(checked))`,F=l.partial`:is([state--disabled], :state(disabled))`,_e=l.partial`:is([state--filled-lighter], :state(filled-lighter))`,Ve=l.partial`:is([state--filled-darker], :state(filled-darker))`,Yt=l.partial`:is([state--ghost], :state(ghost))`,Jr=l.partial`:is([state--inverted], :state(inverted))`,lt=l.partial`:is([state--primary], :state(primary))`,G=l.partial`:is([state--outline], :state(outline))`,co=l.partial`:is([state--strong], :state(strong))`,z=l.partial`:is([state--subtle], :state(subtle))`,ae=l.partial`:is([state--tint], :state(tint))`,ho=l.partial`:is([state--underline], :state(underline))`,Z=l.partial`:is([state--transparent], :state(transparent))`,uo=l.partial`:is([state--circular], :state(circular))`,Qt=l.partial`:is([state--rounded], :state(rounded))`,po=l.partial`:is([state--square], :state(square))`,go=l.partial`:is([state--tiny], :state(tiny))`,bo=l.partial`:is([state--extra-small], :state(extra-small))`,T=l.partial`:is([state--small], :state(small))`;l.partial`:is([state--medium], :state(medium))`;const C=l.partial`:is([state--large], :state(large))`,rs=l.partial`:is([state--extra-large], :state(extra-large))`,cl=l.partial`:is([state--huge], :state(huge))`,tn=l.partial`:is([state--align-start], :state(align-start))`,Zt=l.partial`:is([state--align-end], :state(align-end))`,hi=l.partial`:is([state--inset], :state(inset))`,De=l.partial`:is([state--icon], :state(icon))`,N=l.partial`:is([state--pressed], :state(pressed))`,Jt=l.partial`:is([state--brand], :state(brand))`,ui=l.partial`:is([state--error], :state(error))`,ns=l.partial`:is([state--danger], :state(danger))`,as=l.partial`:is([state--important], :state(important))`,ls=l.partial`:is([state--informative], :state(informative))`;l.partial`:is([state--marigold], :state(marigold))`;const cs=l.partial`:is([state--neutral], :state(neutral))`,ds=l.partial`:is([state--severe], :state(severe))`,ve=l.partial`:is([state--success], :state(success))`,ye=l.partial`:is([state--warning], :state(warning))`,I=l.partial`:is([state--vertical], :state(vertical))`;l.partial`:is([state--horizontal], :state(horizontal))`,l.partial`:is([state--singleline], :state(singleline))`;const fo=l.partial`:is([state--multiline], :state(multiline))`,ke=l.partial`:is([state--expanded], :state(expanded))`,pi=l.partial`:is([state--block], :state(block))`;l.partial`:is([state--resize], :state(resize))`;const dl=l.partial`:is([state--resize-horizontal], :state(resize-horizontal))`,hl=l.partial`:is([state--resize-vertical], :state(resize-vertical))`,ul=l.partial`:is([state--resize-both], :state(resize-both))`,en=l.partial`:is([state--auto-resize], :state(auto-resize))`,on=l.partial`:is([state--display-shadow], :state(display-shadow))`,pl=l.partial`:is([state--user-invalid], :state(user-invalid))`;l.partial`:is([state--user-valid], :state(user-valid))`;const A="var(--colorNeutralForeground1)",gi="var(--colorNeutralForeground1Hover)",gl="var(--colorNeutralForeground1Pressed)",Vt="var(--colorNeutralForeground2)",hs="var(--colorNeutralForeground2Hover)",us="var(--colorNeutralForeground2Pressed)",bl="var(--colorNeutralForeground2Selected)",ps="var(--colorNeutralForeground2BrandHover)",gs="var(--colorNeutralForeground2BrandPressed)",fl="var(--colorNeutralForeground2BrandSelected)",ut="var(--colorNeutralForeground3)",ml="var(--colorNeutralForeground3Hover)",$l="var(--colorNeutralForeground3Pressed)",sn="var(--colorNeutralForeground4)",B="var(--colorNeutralForegroundDisabled)",vl="var(--colorBrandForegroundLink)",yl="var(--colorBrandForegroundLinkHover)",kl="var(--colorBrandForegroundLinkPressed)",xl="var(--colorNeutralForeground2Link)",wl="var(--colorNeutralForeground2LinkHover)",Cl="var(--colorNeutralForeground2LinkPressed)",rn="var(--colorCompoundBrandForeground1Hover)",Il="var(--colorCompoundBrandForeground1Pressed)",te="var(--colorNeutralForegroundOnBrand)",Le="var(--colorNeutralForegroundInverted)",Sl="var(--colorNeutralForegroundInvertedHover)",zl="var(--colorNeutralForegroundInvertedPressed)",nn="var(--colorNeutralForegroundStaticInverted)",bi="var(--colorBrandForeground1)",Tl="var(--colorBrandForeground2)",Bl="var(--colorNeutralForeground1Static)",O="var(--colorNeutralBackground1)",fi="var(--colorNeutralBackground1Hover)",mi="var(--colorNeutralBackground1Pressed)",an="var(--colorNeutralBackground1Selected)",bs="var(--colorNeutralBackground3)",Pl="var(--colorNeutralBackground4)",Al="var(--colorNeutralBackground5)",fs="var(--colorNeutralBackground6)",ln="var(--colorNeutralBackgroundInverted)",El="var(--colorSubtleBackground)",ms="var(--colorSubtleBackgroundHover)",He="var(--colorSubtleBackgroundPressed)",Nl="var(--colorSubtleBackgroundSelected)",wt="var(--colorTransparentBackground)",$i="var(--colorTransparentBackgroundHover)",vi="var(--colorTransparentBackgroundPressed)",Fl="var(--colorTransparentBackgroundSelected)",Re="var(--colorNeutralBackgroundDisabled)",yi="var(--colorBackgroundOverlay)",ki="var(--colorBrandBackground)",cn="var(--colorBrandBackgroundHover)",dn="var(--colorBrandBackgroundPressed)",Ol="var(--colorBrandBackgroundSelected)",je="var(--colorCompoundBrandBackground)",mo="var(--colorCompoundBrandBackgroundHover)",$o="var(--colorCompoundBrandBackgroundPressed)",hn="var(--colorBrandBackgroundStatic)",Ml="var(--colorBrandBackground2)",le="var(--colorNeutralStrokeAccessible)",qe="var(--colorNeutralStrokeAccessibleHover)",Ue="var(--colorNeutralStrokeAccessiblePressed)",ce="var(--colorNeutralStroke1)",vo="var(--colorNeutralStroke1Hover)",$s="var(--colorNeutralStroke1Pressed)",yo="var(--colorNeutralStroke2)",_l="var(--colorNeutralStroke3)",Vl="var(--colorNeutralStrokeOnBrand2)",un="var(--colorBrandStroke1)",xi="var(--colorBrandStroke2)",ko="var(--colorCompoundBrandStroke)",Dl="var(--colorCompoundBrandStrokeHover)",pn="var(--colorCompoundBrandStrokePressed)",Tt="var(--colorNeutralStrokeDisabled)",pt="var(--colorTransparentStroke)",gn="var(--colorTransparentStrokeInteractive)",wi="var(--colorStrokeFocus1)",Dt="var(--colorStrokeFocus2)",bn="var(--colorPaletteRedBackground1)",Ll="var(--colorPaletteRedBackground2)",fn="var(--colorPaletteRedBackground3)",mn="var(--colorPaletteRedBorder1)",Ci="var(--colorPaletteRedBorder2)",$n="var(--colorPaletteRedForeground1)",Hl="var(--colorPaletteRedForeground2)",vn="var(--colorPaletteRedForeground3)",yn="var(--colorPaletteGreenBackground1)",kn="var(--colorPaletteGreenBackground3)",Rl="var(--colorPaletteGreenBorder1)",jl="var(--colorPaletteGreenBorder2)",ql="var(--colorPaletteGreenForeground1)",Ul="var(--colorPaletteGreenForeground2)",Gl="var(--colorPaletteGreenForeground3)",xn="var(--colorPaletteDarkOrangeBackground1)",wn="var(--colorPaletteDarkOrangeBackground3)",Cn="var(--colorPaletteDarkOrangeBorder1)",Wl="var(--colorPaletteDarkOrangeForeground1)",In="var(--colorPaletteDarkOrangeForeground3)",Xl="var(--colorPaletteYellowBackground1)",Kl="var(--colorPaletteYellowBackground3)",Yl="var(--colorPaletteYellowBorder1)",Ii="var(--colorPaletteYellowForeground2)",Sn="var(--colorPaletteMarigoldBackground2)",Ql="var(--colorPaletteMarigoldBackground3)",Zl="var(--colorPaletteMarigoldForeground2)",Jl="var(--colorPaletteAnchorBackground2)",tc="var(--colorPaletteAnchorForeground2)",ec="var(--colorPaletteBeigeBackground2)",oc="var(--colorPaletteBeigeForeground2)",sc="var(--colorPaletteBlueBackground2)",ic="var(--colorPaletteBlueForeground2)",rc="var(--colorPaletteBrassBackground2)",nc="var(--colorPaletteBrassForeground2)",ac="var(--colorPaletteBrownBackground2)",lc="var(--colorPaletteBrownForeground2)",cc="var(--colorPaletteCornflowerBackground2)",dc="var(--colorPaletteCornflowerForeground2)",hc="var(--colorPaletteCranberryBackground2)",uc="var(--colorPaletteCranberryForeground2)",pc="var(--colorPaletteDarkGreenBackground2)",gc="var(--colorPaletteDarkGreenForeground2)",bc="var(--colorPaletteDarkRedBackground2)",fc="var(--colorPaletteDarkRedForeground2)",mc="var(--colorPaletteForestBackground2)",$c="var(--colorPaletteForestForeground2)",vc="var(--colorPaletteGoldBackground2)",yc="var(--colorPaletteGoldForeground2)",kc="var(--colorPaletteGrapeBackground2)",xc="var(--colorPaletteGrapeForeground2)",wc="var(--colorPaletteLavenderBackground2)",Cc="var(--colorPaletteLavenderForeground2)",Ic="var(--colorPaletteLightTealBackground2)",Sc="var(--colorPaletteLightTealForeground2)",zc="var(--colorPaletteLilacBackground2)",Tc="var(--colorPaletteLilacForeground2)",Bc="var(--colorPaletteMagentaBackground2)",Pc="var(--colorPaletteMagentaForeground2)",Ac="var(--colorPaletteMinkBackground2)",Ec="var(--colorPaletteMinkForeground2)",Nc="var(--colorPaletteNavyBackground2)",Fc="var(--colorPaletteNavyForeground2)",Oc="var(--colorPalettePeachBackground2)",Mc="var(--colorPalettePeachForeground2)",_c="var(--colorPalettePinkBackground2)",Vc="var(--colorPalettePinkForeground2)",Dc="var(--colorPalettePlatinumBackground2)",Lc="var(--colorPalettePlatinumForeground2)",Hc="var(--colorPalettePlumBackground2)",Rc="var(--colorPalettePlumForeground2)",jc="var(--colorPalettePumpkinBackground2)",qc="var(--colorPalettePumpkinForeground2)",Uc="var(--colorPalettePurpleBackground2)",Gc="var(--colorPalettePurpleForeground2)",Wc="var(--colorPaletteRoyalBlueBackground2)",Xc="var(--colorPaletteRoyalBlueForeground2)",Kc="var(--colorPaletteSeafoamBackground2)",Yc="var(--colorPaletteSeafoamForeground2)",Qc="var(--colorPaletteSteelBackground2)",Zc="var(--colorPaletteSteelForeground2)",Jc="var(--colorPaletteTealBackground2)",td="var(--colorPaletteTealForeground2)",Si="var(--borderRadiusNone)",Lt="var(--borderRadiusSmall)",P="var(--borderRadiusMedium)",zn="var(--borderRadiusLarge)",Tn="var(--borderRadiusXLarge)",gt="var(--borderRadiusCircular)",$="var(--fontFamilyBase)",ed="var(--fontFamilyMonospace)",od="var(--fontFamilyNumeric)",xo="var(--fontSizeBase100)",j="var(--fontSizeBase200)",E="var(--fontSizeBase300)",ct="var(--fontSizeBase400)",Ge="var(--fontSizeBase500)",vs="var(--fontSizeBase600)",Bn="var(--fontSizeHero700)",Pn="var(--fontSizeHero800)",An="var(--fontSizeHero900)",En="var(--fontSizeHero1000)",M="var(--fontWeightRegular)",sd="var(--fontWeightMedium)",L="var(--fontWeightSemibold)",ys="var(--fontWeightBold)",ks="var(--lineHeightBase100)",it="var(--lineHeightBase200)",D="var(--lineHeightBase300)",yt="var(--lineHeightBase400)",xs="var(--lineHeightBase500)",Nn="var(--lineHeightBase600)",Fn="var(--lineHeightHero700)",On="var(--lineHeightHero800)",Mn="var(--lineHeightHero900)",_n="var(--lineHeightHero1000)",zi="var(--shadow2)",ws="var(--shadow4)",id="var(--shadow8)",Vn="var(--shadow16)",rd="var(--shadow28)",Dn="var(--shadow64)",W="var(--strokeWidthThin)",Bt="var(--strokeWidthThick)",rt="var(--strokeWidthThicker)",Ti="var(--strokeWidthThickest)",dt="var(--spacingHorizontalXXS)",Ht="var(--spacingHorizontalXS)",kt="var(--spacingHorizontalSNudge)",ee="var(--spacingHorizontalS)",bt="var(--spacingHorizontalMNudge)",ft="var(--spacingHorizontalM)",nd="var(--spacingHorizontalL)",ad="var(--spacingHorizontalXL)",ld="var(--spacingHorizontalXXL)",wo="var(--spacingVerticalXXS)",Bi="var(--spacingVerticalXS)",de="var(--spacingVerticalSNudge)",nt="var(--spacingVerticalS)",We="var(--spacingVerticalMNudge)",cd="var(--spacingVerticalM)",Cs="var(--spacingVerticalL)",Co="var(--spacingVerticalXXL)",Ln="var(--durationUltraFast)",Pi="var(--durationFaster)",Ai="var(--durationNormal)",Ei="var(--durationGentle)",Hn="var(--durationSlow)",Rn="var(--durationSlower)",Is="var(--durationUltraSlow)",dd="var(--curveAccelerateMax)",Xe="var(--curveAccelerateMid)",hd="var(--curveAccelerateMin)",Ni="var(--curveDecelerateMax)",Ke="var(--curveDecelerateMid)",ud="var(--curveDecelerateMin)",pd="var(--curveEasyEaseMax)",Ss="var(--curveEasyEase)",Fi="var(--curveLinear)",gd=l`
|
|
1
|
+
const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Vo;const Qi="fast-kernel";try{if(document.currentScript)Vo=document.currentScript.getAttribute(Qi);else{const o=document.getElementsByTagName("script");Vo=o[o.length-1].getAttribute(Qi)}}catch{Vo="isolate"}let me;switch(Vo){case"share":me=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":me=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)}`;me=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Ne=o=>typeof o=="function",Ft=o=>typeof o=="string",Zi=()=>{};var Gs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Gs<"u")Gs.globalThis=Gs;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 Ji={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Ji));const et=globalThis.FAST;if(et.getById===void 0){const o=Object.create(null);Reflect.defineProperty(et,"getById",Object.assign({value(t,e){let s=o[t];return s===void 0&&(s=e?o[t]=e():null),s}},Ji))}et.error===void 0&&Object.assign(et,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const ua=Object.freeze([]);function Ws(){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 tr(){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 $e(o){o.prototype.toJSON=Zi}const Y=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),er=o=>o,pa=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:er}):{createHTML:er};let Do=Object.freeze({createHTML(o){return pa.createHTML(o)},protect(o,t,e,s){return s}});const ga=Do,ve=Object.freeze({get policy(){return Do},setPolicy(o){if(Do!==ga)throw et.error(1201);Do=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)}}),Ot=et.getById(me.updateQueue,()=>{const o=[],t=[],e=globalThis.requestAnimationFrame;let s=!0;function i(){if(t.length)throw t.shift()}function r(p){try{p.call()}catch(h){if(s)t.push(h),setTimeout(i,0);else throw o.length=0,h}}function n(){let h=0;for(;h<o.length;)if(r(o[h]),h++,h>1024){for(let d=0,b=o.length-h;d<b;d++)o[d]=o[d+h];o.length-=h,h=0}o.length=0}function u(p){o.push(p),o.length<2&&(s?e(n):n())}return Object.freeze({enqueue:u,next:()=>new Promise(u),process:n,setMode:p=>s=p})});class Xs{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 or{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 Xs(this.subject):r=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new Xs(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 Lo=Object.freeze({unknown:void 0,coupled:1}),m=et.getById(me.observable,()=>{const o=Ot.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let s,i=h=>{throw et.error(1101)};function r(h){var d;let b=(d=h.$fastController)!==null&&d!==void 0?d:e.get(h);return b===void 0&&(Array.isArray(h)?b=i(h):e.set(h,b=new or(h))),b}const n=tr();class u{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 k=this.field,ht=d[k];if(ht!==b){d[k]=b;const ae=d[this.callback];Ne(ae)&&ae.call(d,ht,b),r(d).notify(this.name)}}}class p extends Xs{constructor(d,b,k=!1){super(d,b),this.expression=d,this.isVolatileBinding=k,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!==Lo.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 k=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let ht;try{ht=this.expression(d,b)}finally{s=k}return ht}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 k=this.last,ht=r(d),ae=k===null?this.first:{};if(ae.propertySource=d,ae.propertyName=b,ae.notifier=ht,ht.subscribe(this,b),k!==null){if(!this.needsRefresh){let Yi;s=void 0,Yi=k.propertySource[k.propertyName],s=this,d===Yi&&(this.needsRefresh=!0)}k.next=ae}this.last=ae}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 $e(p),Object.freeze({setArrayObserverFactory(h){i=h},getNotifier:r,track(h,d){s&&s.watch(h,d)},trackVolatile(){s&&(s.needsRefresh=!0)},notify(h,d){r(h).notify(d)},defineProperty(h,d){Ft(d)&&(d=new u(d)),n(h).push(d),Reflect.defineProperty(h,d.name,{enumerable:!0,get(){return d.getValue(this)},set(b){d.setValue(this,b)}})},getAccessors:n,binding(h,d,b=this.isVolatileBinding(h)){return new p(h,d,b)},isVolatileBinding(h){return t.test(h.toString())}})});function v(o,t){m.defineProperty(o,t)}function ba(o,t,e){return Object.assign({},e,{get(){return m.trackVolatile(),e.get.apply(this)}})}const sr=et.getById(me.contextEvent,()=>{let o=null;return{get(){return o},set(t){o=t}}}),Fe=Object.freeze({default:{index:0,length:0,get event(){return Fe.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return sr.get()},setEvent(o){sr.set(o)}});class Ho{constructor(t,e,s=!1){this.evaluate=t,this.policy=e,this.isVolatile=s}}class fa extends Ho{createObserver(t){return m.binding(this.evaluate,t,this.isVolatile)}}function Ks(o,t,e=m.isVolatileBinding(o)){return new fa(o,t,e)}class ir extends Ho{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}$e(ir);function rr(o,t){return new ir(o,t)}let nr;function ar(o){return o.map(t=>t instanceof mt?ar(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class mt{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof mt?e.behaviors:null).reduce((e,s)=>s===null?e:e===null?s:e.concat(s),null)}get strategy(){return this._strategy===null&&this.withStrategy(nr),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(ar(this.styles)),this}static setDefaultStrategy(t){nr=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new mt(t):t instanceof mt?t:new mt([t])}}mt.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Ys=Ws(),Qs=Object.freeze({getForInstance:Ys.getForInstance,getByType:Ys.getByType,define(o){return Ys.register({type:o}),o}});function Zs(o,t,e){t.source.style.setProperty(o.targetAspect,e.bind(t))}class Js{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,u)=>{r.call(s,n,u),n==="style"&&s.$cssBindings.forEach((p,h)=>Zs(h,p.controller,p.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){Zs(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){Zs(this,e.controller,e)}}Qs.define(Js);const ma=`${Math.random().toString(36).substring(2,8)}`;let $a=0;const lr=()=>`--v${ma}${++$a}`;function cr(o,t){const e=[];let s="";const i=[],r=n=>{i.push(n)};for(let n=0,u=o.length-1;n<u;++n){s+=o[n];let p=t[n];Ne(p)?p=new Js(Ks(p),lr()).createCSS(r):p instanceof Ho?p=new Js(p,lr()).createCSS(r):Qs.getForInstance(p)!==void 0&&(p=p.createCSS(r)),p instanceof mt||p instanceof CSSStyleSheet?(s.trim()!==""&&(e.push(s),s=""),e.push(p)):s+=p}return s+=o[o.length-1],s.trim()!==""&&e.push(s),{styles:e,behaviors:i}}const l=(o,...t)=>{const{styles:e,behaviors:s}=cr(o,t),i=new mt(e);return s.length?i.withBehaviors(...s):i};class dr{constructor(t,e){this.behaviors=e,this.css="";const s=t.reduce((i,r)=>(Ft(r)?this.css+=r:i.push(r),i),[]);s.length&&(this.styles=new mt(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)}}Qs.define(dr),l.partial=(o,...t)=>{const{styles:e,behaviors:s}=cr(o,t);return new dr(e,s)};const hr=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,ur=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,pr=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,gr=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,br=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,fr=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function mr(o){return o&&o.nodeType===Node.COMMENT_NODE}const Mt=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(o,t){return`fe-b$$start$$${o}$$${t}$$fe-b`},contentBindingEndMarker(o,t){return`fe-b$$end$$${o}$$${t}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return hr.test(o)},isContentBindingEndMarker(o){return ur.test(o)},isRepeatViewStartMarker(o){return pr.test(o)},isRepeatViewEndMarker(o){return gr.test(o)},isElementBoundaryStartMarker(o){return mr(o)&&br.test(o.data.trim())},isElementBoundaryEndMarker(o){return mr(o)&&fr.test(o.data)},parseAttributeBinding(o){const t=o.getAttribute(this.attributeMarkerName);return t===null?t:t.split(this.attributeBindingSeparator).map(e=>parseInt(e))},parseContentBindingStartMarker(o){return yr(hr,o)},parseContentBindingEndMarker(o){return yr(ur,o)},parseRepeatStartMarker(o){return $r(pr,o)},parseRepeatEndMarker(o){return $r(gr,o)},parseElementBoundaryStartMarker(o){return vr(br,o.trim())},parseElementBoundaryEndMarker(o){return vr(fr,o)}});function $r(o,t){const e=o.exec(t);return e===null?e:parseInt(e[1])}function vr(o,t){const e=o.exec(t);return e===null?e:e[1]}function yr(o,t){const e=o.exec(t);return e===null?e:[parseInt(e[1]),e[2]]}const Ro=Symbol.for("fe-hydration");function jo(o){return o[Ro]===Ro}const ti=`fast-${Math.random().toString(36).substring(2,8)}`,qo=`${ti}{`,io=`}${ti}`,va=io.length;let ya=0;const ro=()=>`${ti}-${++ya}`,kr=Object.freeze({interpolation:o=>`${qo}${o}${io}`,attribute:o=>`${ro()}="${qo}${o}${io}"`,comment:o=>`<!--${qo}${o}${io}-->`}),Uo=Object.freeze({parse(o,t){const e=o.split(qo);if(e.length===1)return null;const s=[];for(let i=0,r=e.length;i<r;++i){const n=e[i],u=n.indexOf(io);let p;if(u===-1)p=n;else{const h=n.substring(0,u);s.push(t[h]),p=n.substring(u+va)}p!==""&&s.push(p)}return s}}),ei=Ws(),St=Object.freeze({getForInstance:ei.getForInstance,getByType:ei.getByType,define(o,t){return t=t||{},t.type=o,ei.register(t),o},assignAspect(o,t){if(!t){o.aspectType=Y.content;return}switch(o.sourceAspect=t,t[0]){case":":o.targetAspect=t.substring(1),o.aspectType=o.targetAspect==="classList"?Y.tokenList:Y.property;break;case"?":o.targetAspect=t.substring(1),o.aspectType=Y.booleanAttribute;break;case"@":o.targetAspect=t.substring(1),o.aspectType=Y.event;break;default:o.targetAspect=t,o.aspectType=Y.attribute;break}}});class oi{constructor(t){this.options=t}createHTML(t){return kr.attribute(t(this))}createBehavior(){return this}}$e(oi);class xr extends Error{constructor(t,e,s){super(t),this.factories=e,this.node=s}}function si(o){return o.nodeType===Node.COMMENT_NODE}function wr(o){return o.nodeType===Node.TEXT_NODE}function Cr(o,t){const e=document.createRange();return e.setStart(o,0),e.setEnd(t,si(t)||wr(t)?t.data.length:t.childNodes.length),e}function ka(o){return o instanceof DocumentFragment&&"mode"in o}function xa(o,t,e){const s=Cr(o,t),i=s.commonAncestorContainer,r=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(h){return s.comparePoint(h,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},u={};let p=r.currentNode=o;for(;p!==null;){switch(p.nodeType){case Node.ELEMENT_NODE:{wa(p,e,n);break}case Node.COMMENT_NODE:{Ca(p,r,e,n,u);break}}p=r.nextNode()}return s.detach(),{targets:n,boundaries:u}}function wa(o,t,e){const s=Mt.parseAttributeBinding(o);if(s!==null){for(const i of s){if(!t[i])throw new xr(`HydrationView was unable to successfully target factory on ${o.nodeName} inside ${o.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,t,o);Go(t[i],o,e)}o.removeAttribute(Mt.attributeMarkerName)}}function Ca(o,t,e,s,i){if(Mt.isElementBoundaryStartMarker(o)){Ia(o,t);return}if(Mt.isContentBindingStartMarker(o.data)){const r=Mt.parseContentBindingStartMarker(o.data);if(r===null)return;const[n,u]=r,p=e[n],h=[];let d=t.nextSibling();o.data="";const b=d;for(;d!==null;){if(si(d)){const k=Mt.parseContentBindingEndMarker(d.data);if(k&&k[1]===u)break}h.push(d),d=t.nextSibling()}if(d===null){const k=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${ka(k)?k.host.nodeName:k.nodeName}".`)}if(d.data="",h.length===1&&wr(h[0]))Go(p,h[0],s);else{d!==b&&d.previousSibling!==null&&(i[p.targetNodeId]={first:b,last:d.previousSibling});const k=d.parentNode.insertBefore(document.createTextNode(""),d);Go(p,k,s)}}}function Ia(o,t){const e=Mt.parseElementBoundaryStartMarker(o.data);let s=t.nextSibling();for(;s!==null;){if(si(s)){const i=Mt.parseElementBoundaryEndMarker(s.data);if(i&&i===e)break}s=t.nextSibling()}}function Go(o,t,e){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");e[o.targetNodeId]=t}var Ir;function ii(o,t){const e=o.parentNode;let s=o,i;for(;s!==t;){if(i=s.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.removeChild(s),s=i}e.removeChild(t)}class Sr{constructor(){this.index=0,this.length=0}get event(){return Fe.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}}class Wo extends Sr{constructor(t,e,s){super(),this.fragment=t,this.factories=e,this.targets=s,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Lo.unknown,this.context=this,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const 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(){ii(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 u=i[r].createBehavior();u.bind(this),s[r]=u}}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){ii(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,s=t.length;e<s;++e)t[e].unbind()}}}$e(Wo),m.defineProperty(Wo.prototype,"index"),m.defineProperty(Wo.prototype,"length");const Oe={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Sa extends Error{constructor(t,e,s,i){super(t),this.factory=e,this.fragment=s,this.templateString=i}}class za extends Sr{constructor(t,e,s,i){super(),this.firstChild=t,this.lastChild=e,this.sourceTemplate=s,this.hostBindingTarget=i,this[Ir]=Ro,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Lo.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=Oe.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=s.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(t){if(this.fragment!==null)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)}}appendTo(t){this.fragment!==null&&t.appendChild(this.fragment)}remove(){const t=this.fragment||(this.fragment=document.createDocumentFragment()),e=this.lastChild;let s=this.firstChild,i;for(;s!==e;){if(i=s.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.appendChild(s),s=i}t.appendChild(e)}bind(t,e=this){var s,i;if(this.hydrationStage!==Oe.hydrated&&(this._hydrationStage=Oe.hydrating),this.source===t)return;let r=this.behaviors;if(r===null){this.source=t,this.context=e;try{const{targets:u,boundaries:p}=xa(this.firstChild,this.lastChild,this.factories);this._targets=u,this._bindingViewBoundaries=p}catch(u){if(u instanceof xr){let p=this.sourceTemplate.html;typeof p!="string"&&(p=p.innerHTML),u.templateString=p}throw u}this.behaviors=r=new Array(this.factories.length);const n=this.factories;for(let u=0,p=n.length;u<p;++u){const h=n[u];if(h.targetNodeId==="h"&&this.hostBindingTarget&&Go(h,this.hostBindingTarget,this._targets),h.targetNodeId in this.targets){const d=h.createBehavior();d.bind(this),r[u]=d}else{let d=this.sourceTemplate.html;throw typeof d!="string"&&(d=d.innerHTML),new Sa(`HydrationView was unable to successfully target bindings inside "${(i=((s=this.firstChild)===null||s===void 0?void 0:s.getRootNode()).host)===null||i===void 0?void 0:i.nodeName}".`,h,Cr(this.firstChild,this.lastChild).cloneContents(),d)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let n=0,u=r.length;n<u;++n)r[n].bind(this)}this.isBound=!0,this._hydrationStage=Oe.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){ii(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,s=t.length;e<s;++e)t[e].unbind(this);t.length=0}}Ir=Ro,$e(za);function Ta(o){return o.create!==void 0}function Ba(o,t,e,s){if(e==null&&(e=""),Ta(e)){o.textContent="";let i=o.$fastView;if(i===void 0)if(jo(s)&&jo(e)&&s.bindingViewBoundaries[this.targetNodeId]!==void 0&&s.hydrationStage!==Oe.hydrated){const r=s.bindingViewBoundaries[this.targetNodeId];i=e.hydrate(r.first,r.last)}else i=e.create();else 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 Pa(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 u=r.v;const p=o[t];if(e!=null&&e.length){const h=e.split(/\s+/);for(let d=0,b=h.length;d<b;++d){const k=h[d];k!==""&&(n[k]=u,p.add(k))}}if(r.v=u+1,u!==0){u-=1;for(const h in n)n[h]===u&&p.remove(h)}}const Aa={[Y.attribute]:ve.setAttribute,[Y.booleanAttribute]:ve.setBooleanAttribute,[Y.property]:(o,t,e)=>o[t]=e,[Y.content]:Ba,[Y.tokenList]:Pa,[Y.event]:()=>{}};class Me{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=Y.content}createHTML(t){return kr.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=Aa[this.aspectType],s=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw et.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],i=jo(t)&&t.hydrationStage&&t.hydrationStage!==Oe.hydrated;switch(this.aspectType){case Y.event:s[this.data]=t,s.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Y.content:t.onUnbind(this);default:const r=(e=s[this.data])!==null&&e!==void 0?e:s[this.data]=this.dataBinding.createObserver(this,this);if(r.target=s,r.controller=t,i&&(this.aspectType===Y.attribute||this.aspectType===Y.booleanAttribute)){r.bind(t);break}this.updateTarget(s,this.targetAspect,r.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){Fe.setEvent(t);const s=this.dataBinding.evaluate(e.source,e.context);Fe.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)}}St.define(Me,{aspected:!0});const zr=(o,t)=>`${o}.${t}`,Tr={},_t={index:0,node:null};function Br(o){o.startsWith("fast-")||et.warn(1204,{name:o})}const Ea=new Proxy(document.createElement("div"),{get(o,t){Br(t);const e=Reflect.get(o,t);return Ne(e)?e.bind(o):e},set(o,t,e){return Br(t),Reflect.set(o,t,e)}});class Na{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,u;this.nodeIds.has(s)||(this.nodeIds.add(s),this.addTargetDescriptor(e,s,i)),t.id=(n=t.id)!==null&&n!==void 0?n:ro(),t.targetNodeId=s,t.targetTagName=r,t.policy=(u=t.policy)!==null&&u!==void 0?u: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("."),u=t.substring(0,n),p=parseInt(t.substring(n+1));this.addTargetDescriptor(u,t,p)}let r=Tr[e];if(!r){const n=`_${e}`;Tr[e]=r={get(){var u;return(u=this[n])!==null&&u!==void 0?u: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??Ea;for(const i of this.nodeIds)s[i];return new Wo(e,this.factories,s)}}function Pr(o,t,e,s,i,r=!1){const n=e.attributes,u=o.directives;for(let p=0,h=n.length;p<h;++p){const d=n[p],b=d.value,k=Uo.parse(b,u);let ht=null;k===null?r&&(ht=new Me(rr(()=>b,o.policy)),St.assignAspect(ht,d.name)):ht=ri.aggregate(k,o.policy),ht!==null&&(e.removeAttributeNode(d),p--,h--,o.addFactory(ht,t,s,i,e.tagName))}}function Fa(o,t,e,s,i){const r=Uo.parse(t.textContent,o.directives);if(r===null)return _t.node=t.nextSibling,_t.index=i+1,_t;let n,u=n=t;for(let p=0,h=r.length;p<h;++p){const d=r[p];p!==0&&(i++,s=zr(e,i),n=u.parentNode.insertBefore(document.createTextNode(""),u.nextSibling)),Ft(d)?n.textContent=d:(n.textContent=" ",St.assignAspect(d),o.addFactory(d,e,s,i,null)),u=n}return _t.index=i+1,_t.node=u.nextSibling,_t}function Ar(o,t,e){let s=0,i=t.firstChild;for(;i;){const r=Oa(o,e,i,s);i=r.node,s=r.index}}function Oa(o,t,e,s){const i=zr(t,s);switch(e.nodeType){case 1:Pr(o,t,e,i,s),Ar(o,e,i);break;case 3:return Fa(o,e,t,i,s);case 8:const r=Uo.parse(e.data,o.directives);r!==null&&o.addFactory(ri.aggregate(r),t,i,s,null);break}return _t.index=s+1,_t.node=e.nextSibling,_t}function Ma(o,t){return o&&o.nodeType==8&&Uo.parse(o.data,t)!==null}const Er="TEMPLATE",ri={compile(o,t,e=ve.policy){let s;if(Ft(o)){s=document.createElement(Er),s.innerHTML=e.createHTML(o);const n=s.content.firstElementChild;n!==null&&n.tagName===Er&&(s=n)}else s=o;!s.content.firstChild&&!s.content.lastChild&&s.content.appendChild(document.createComment(""));const i=document.adoptNode(s.content),r=new Na(i,t,e);return Pr(r,"",s,"h",0,!0),(Ma(i.firstChild,t)||i.childNodes.length===1&&Object.keys(t).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),Ar(r,i,"r"),_t.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,t=ve.policy){if(o.length===1)return o[0];let e,s=!1,i;const r=o.length,n=o.map(h=>Ft(h)?()=>h:(e=h.sourceAspect||e,s=s||h.dataBinding.isVolatile,i=i||h.dataBinding.policy,h.dataBinding.evaluate)),u=(h,d)=>{let b="";for(let k=0;k<r;++k)b+=n[k](h,d);return b},p=new Me(Ks(u,i??t,s));return St.assignAspect(p,e),p}},_a=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Va=Object.create(null);class ye{constructor(t,e=Va){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const s in e)t(e[s]);return this.html}}ye.empty=new ye(""),St.define(ye);function Da(o,t,e,s=St.getForInstance(o)){if(s.aspected){const i=_a.exec(t);i!==null&&St.assignAspect(o,i[2])}return o.createHTML(e)}class js{constructor(t,e={},s){this.policy=s,this.result=null,this.html=t,this.factories=e}compile(){return this.result===null&&(this.result=ri.compile(this.html,this.factories,this.policy)),this.result}create(t){return this.compile().createView(t)}inline(){return new ye(Ft(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw et.error(1208);if(this.policy)throw et.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=u=>{var p;const h=(p=u.id)!==null&&p!==void 0?p:u.id=ro();return r[h]=u,h};for(let u=0,p=t.length-1;u<p;++u){const h=t[u];let d=e[u],b;if(i+=h,Ne(d))d=new Me(Ks(d));else if(d instanceof Ho)d=new Me(d);else if(!(b=St.getForInstance(d))){const k=d;d=new Me(rr(()=>k))}i+=Da(d,h,n,b)}return new js(i+t[t.length-1],r,s)}}$e(js);const f=(o,...t)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return js.create(o,t);throw et.error(1206)};f.partial=o=>new ye(o);class Nr extends oi{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}St.define(Nr);const $t=o=>new Nr(o),La=o=>o.nodeType===1,_e=o=>o?t=>t.nodeType===1&&t.matches(o):La;class Fr extends oi{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,ua),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 Or="slotchange";class Mr extends Fr{observe(t){t.addEventListener(Or,this)}disconnect(t){t.removeEventListener(Or,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}St.define(Mr);function ot(o){return Ft(o)&&(o={property:o}),new Mr(o)}class _r extends Fr{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=Zi,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)}}St.define(_r);function Ha(o){return Ft(o)&&(o={property:o}),new _r(o)}const Vr="boolean",Dr="reflect",Xo=Object.freeze({locate:tr()}),Ra={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Lr(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const st={toView(o){const t=Lr(o);return t&&t.toString()},fromView:Lr};class qs{constructor(t,e,s=e.toLowerCase(),i=Dr,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===Vr&&r===void 0&&(this.converter=Ra)}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"||Ot.enqueue(()=>{s.add(t);const i=t[this.fieldName];switch(e){case Dr:const r=this.converter;ve.setAttribute(t,this.attribute,r!==void 0?r.toView(i):i);break;case Vr:ve.setBooleanAttribute(t,this.attribute,i);break}s.delete(t)})}static collect(t,...e){const s=[];e.push(Xo.locate(t));for(let i=0,r=e.length;i<r;++i){const n=e[i];if(n!==void 0)for(let u=0,p=n.length;u<p;++u){const h=n[u];Ft(h)?s.push(new qs(t,h)):s.push(new qs(t,h.property,h.attribute,h.mode,h.converter))}}return s}}function a(o,t){let e;function s(i,r){arguments.length>1&&(e.property=r),Xo.locate(i.constructor).push(e)}if(arguments.length>1){e={},s(o,t);return}return e=o===void 0?{}:o,s}const Hr={mode:"open"},Rr={},jr=new Set,Ko=et.getById(me.elementRegistry,()=>Ws());class Nt{constructor(t,e=t.definition){var s;this.platformDefined=!1,Ft(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=qs.collect(t,e.attributes),n=new Array(r.length),u={},p={};for(let h=0,d=r.length;h<d;++h){const b=r[h];n[h]=b.attribute,u[b.name]=b,p[b.attribute]=b,m.defineProperty(i,b)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=u,this.attributeLookup=p,this.shadowOptions=e.shadowOptions===void 0?Hr:e.shadowOptions===null?void 0:Object.assign(Object.assign({},Hr),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Rr:Object.assign(Object.assign({},Rr),e.elementOptions),this.styles=mt.normalize(e.styles),Ko.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 jr.has(t)||Ko.getByType(t)?new Nt(class extends t{},e):new Nt(t,e)}static registerBaseType(t){jr.add(t)}}Nt.getByType=Ko.getByType,Nt.getForInstance=Ko.getForInstance;class ja extends MutationObserver{constructor(t){function e(s){this.callback.call(null,s.filter(i=>this.observedNodes.has(i.target)))}super(e),this.callback=t,this.observedNodes=new Set}observe(t,e){this.observedNodes.add(t),super.observe(t,e)}unobserve(t){this.observedNodes.delete(t),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const t=[],e={};let s=null,i=!1;return{source:o,context:Fe.default,targets:e,get isBound(){return i},addBehaviorFactory(r,n){var u,p,h,d;const b=r;b.id=(u=b.id)!==null&&u!==void 0?u:ro(),b.targetNodeId=(p=b.targetNodeId)!==null&&p!==void 0?p:ro(),b.targetTagName=(h=n.tagName)!==null&&h!==void 0?h:null,b.policy=(d=b.policy)!==null&&d!==void 0?d:ve.policy,this.addTarget(b.targetNodeId,n),this.addBehavior(b.createBehavior())},addTarget(r,n){e[r]=n},addBehavior(r){t.push(r),i&&r.bind(this)},onUnbind(r){s===null&&(s=[]),s.push(r)},connectedCallback(r){i||(i=!0,t.forEach(n=>n.bind(this)))},disconnectedCallback(r){i&&(i=!1,s!==null&&s.forEach(n=>n.unbind(this)))}}}});const qa={bubbles:!0,composed:!0,cancelable:!0},Yo="isConnected",qr=new WeakMap;function no(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:qr.get(o))!==null&&e!==void 0?e:null}let Ur;class Ve extends or{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.behaviorsConnected=!1,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"&&qr.set(t,r))}const i=m.getAccessors(t);if(i.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,u=i.length;n<u;++n){const p=i[n].name,h=t[p];h!==void 0&&(delete t[p],r[p]=h)}}}get isConnected(){return m.track(this,Yo),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:Fe.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=no(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=no(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(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),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,Yo))}bindObservables(){if(this.boundObservables!==null){const t=this.source,e=this.boundObservables,s=Object.keys(e);for(let i=0,r=s.length;i<r;++i){const n=s[i];t[n]=e[n]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){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.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,m.notify(this,Yo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),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},qa),s))):!1}renderTemplate(t){var e;const s=this.source,i=(e=no(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=Lo.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const s=Nt.getForInstance(t);if(s===void 0)throw et.error(1401);return t.$fastController=new Ur(t,s)}static setStrategy(t){Ur=t}}$e(Ve),Ve.setStrategy(Ve);function Qo(o){var t;return"adoptedStyleSheets"in o?o:(t=no(o))!==null&&t!==void 0?t:o.getRootNode()}class Us{constructor(t){const e=Us.styleSheetCache;this.sheets=t.map(s=>{if(s instanceof CSSStyleSheet)return s;let i=e.get(s);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(s),e.set(s,i)),i})}addStylesTo(t){Wr(Qo(t),this.sheets)}removeStylesFrom(t){Xr(Qo(t),this.sheets)}}Us.styleSheetCache=new Map;let Ua=0;const Ga=()=>`fast-${++Ua}`;function Gr(o){return o===document?document.body:o}class Wa{constructor(t){this.styles=t,this.styleClass=Ga()}addStylesTo(t){t=Gr(Qo(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=Gr(Qo(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let s=0,i=e.length;s<i;++s)t.removeChild(e[s])}}let Wr=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},Xr=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(mt.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Wr=(o,t)=>{o.adoptedStyleSheets.push(...t)},Xr=(o,t)=>{for(const e of t){const s=o.adoptedStyleSheets.indexOf(e);s!==-1&&o.adoptedStyleSheets.splice(s,1)}}}catch{}mt.setDefaultStrategy(Us)}else mt.setDefaultStrategy(Wa);const Kr="defer-hydration",Yr="needs-hydration";class Ee extends Ve{static hydrationObserverHandler(t){for(const e of t)Ee.hydrationObserver.unobserve(e.target),e.target.$fastController.connect()}connect(){var t,e;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(Yr)!==null),this.source.hasAttribute(Kr)){Ee.hydrationObserver.observe(this.source,{attributeFilter:[Kr]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const s=this.source,i=(t=no(s))!==null&&t!==void 0?t:s;if(this.template)if(jo(this.template)){let r=i.firstChild,n=i.lastChild;s.shadowRoot===null&&(Mt.isElementBoundaryStartMarker(r)&&(r.data="",r=r.nextSibling),Mt.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(r,n,s),(e=this.view)===null||e===void 0||e.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(Yr),this.needsInitialization=this.needsHydration=!1,m.notify(this,Yo)}disconnect(){super.disconnect(),Ee.hydrationObserver.unobserve(this.source)}static install(){Ve.setStrategy(Ee)}}Ee.hydrationObserver=new ja(Ee.hydrationObserverHandler);function Qr(o){const t=class extends o{constructor(){super(),Ve.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 Nt.registerBaseType(t),t}function Xa(o,t){return Ne(o)?Nt.compose(o,t):Nt.compose(this,o)}function Ka(o,t){return Ne(o)?Nt.compose(o,t).define().type:Nt.compose(this,o).define().type}function Ya(o){return Qr(o)}const w=Object.assign(Qr(HTMLElement),{from:Ya,define:Ka,compose:Xa}),vt={horizontal:"horizontal",vertical:"vertical"};function Qa(o,t){let e=o.length;for(;e--;)if(t(o[e],e,o))return e;return-1}function Zr(...o){return o.every(t=>t instanceof HTMLElement)}const Zo="ArrowDown",Jo="ArrowLeft",ts="ArrowRight",es="ArrowUp",os="End",ss="Enter",Za="Escape",is="Home",ni=" ",Ja="Tab";var zt;(function(o){o.ltr="ltr",o.rtl="rtl"})(zt||(zt={}));function tl(o,t,e){return e<o?t:e>t?o:e}function ai(o,t,e){return Math.min(Math.max(e,o),t)}let el=0;function ao(o=""){return`${o}${el++}`}var ol=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,R=(o,t,e,s)=>{for(var i=s>1?void 0:s?sl(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&&ol(t,e,i),i};class j{}R([a({attribute:"aria-atomic"})],j.prototype,"ariaAtomic",2),R([a({attribute:"aria-busy"})],j.prototype,"ariaBusy",2),R([a({attribute:"aria-controls"})],j.prototype,"ariaControls",2),R([a({attribute:"aria-current"})],j.prototype,"ariaCurrent",2),R([a({attribute:"aria-describedby"})],j.prototype,"ariaDescribedby",2),R([a({attribute:"aria-details"})],j.prototype,"ariaDetails",2),R([a({attribute:"aria-disabled"})],j.prototype,"ariaDisabled",2),R([a({attribute:"aria-errormessage"})],j.prototype,"ariaErrormessage",2),R([a({attribute:"aria-flowto"})],j.prototype,"ariaFlowto",2),R([a({attribute:"aria-haspopup"})],j.prototype,"ariaHaspopup",2),R([a({attribute:"aria-hidden"})],j.prototype,"ariaHidden",2),R([a({attribute:"aria-invalid"})],j.prototype,"ariaInvalid",2),R([a({attribute:"aria-keyshortcuts"})],j.prototype,"ariaKeyshortcuts",2),R([a({attribute:"aria-label"})],j.prototype,"ariaLabel",2),R([a({attribute:"aria-labelledby"})],j.prototype,"ariaLabelledby",2),R([a({attribute:"aria-live"})],j.prototype,"ariaLive",2),R([a({attribute:"aria-owns"})],j.prototype,"ariaOwns",2),R([a({attribute:"aria-relevant"})],j.prototype,"ariaRelevant",2),R([a({attribute:"aria-roledescription"})],j.prototype,"ariaRoledescription",2);const li={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()}},ci=o=>o.closest("[dir]")?.dir==="rtl"?zt.rtl:zt.ltr;function yt(o){return o?typeof o=="string"?new ye(o):"inline"in o?o.inline():o:ye.empty}const di=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,il=":host([hidden]){display:none}";function S(o){return`${il}:host{display:${o}}`}class rl{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:e}=this;let s=this.listenerCache.get(t);s||(s=this.constructListener(t),this.listenerCache.set(t,s)),s.bind(e)(),e.addEventListener("change",s)}disconnectedCallback(t){const e=this.listenerCache.get(t);e&&this.query.removeEventListener("change",e)}}class _o extends rl{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new _o(t,e)}constructListener(t){let e=!1;const s=this.styles;return function(){const{matches:r}=this;r&&!e?(t.addStyles(s),e=r):!r&&e&&(t.removeStyles(s),e=r)}}removedCallback(t){t.removeStyles(this.styles)}}const Q=_o.with(window.matchMedia("(forced-colors)"));_o.with(window.matchMedia("(prefers-color-scheme: dark)")),_o.with(window.matchMedia("(prefers-color-scheme: light)"));class Gt{}function le(o){return f`<slot name="end" ${$t("end")}>${yt(o.end)}</slot>`.inline()}function Wt(o){return f`<slot name="start" ${$t("start")}>${yt(o.start)}</slot>`.inline()}function Xt(o,...t){const e=Xo.locate(o);t.forEach(s=>{Object.getOwnPropertyNames(s.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(s.prototype,r))}),Xo.locate(s).forEach(r=>e.push(r))})}const nl=CSS.supports("selector(:state(g))");function c(o,t,e){if(!nl){o.shadowRoot.host.toggleAttribute(`state--${t}`,e);return}if(e??!o.states.has(t)){o.states.add(t);return}o.states.delete(t)}var al=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,ke=(o,t,e,s)=>{for(var i=s>1?void 0:s?ll(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&&al(t,e,i),i};class Kt extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=ao("accordion-")}expandedChanged(t,e){c(this.elementInternals,"expanded",e)}disabledChanged(t,e){c(this.elementInternals,"disabled",e)}}ke([a({attribute:"heading-level",mode:"fromView",converter:st})],Kt.prototype,"headinglevel",2),ke([a({mode:"boolean"})],Kt.prototype,"expanded",2),ke([a({mode:"boolean"})],Kt.prototype,"disabled",2),ke([a],Kt.prototype,"id",2);class lo extends Kt{constructor(){super(...arguments),this.block=!1}sizeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}markerPositionChanged(t,e){t&&c(this.elementInternals,`align-${t}`,!1),e&&c(this.elementInternals,`align-${e}`,!0)}blockChanged(t,e){c(this.elementInternals,"block",e)}}ke([a],lo.prototype,"size",2),ke([a({attribute:"marker-position"})],lo.prototype,"markerPosition",2),ke([a({mode:"boolean"})],lo.prototype,"block",2),Xt(lo,Gt);const y=l.partial`:is([state--checked], :state(checked))`,F=l.partial`:is([state--disabled], :state(disabled))`,De=l.partial`:is([state--filled-lighter], :state(filled-lighter))`,Le=l.partial`:is([state--filled-darker], :state(filled-darker))`,Yt=l.partial`:is([state--ghost], :state(ghost))`,Jr=l.partial`:is([state--inverted], :state(inverted))`,lt=l.partial`:is([state--primary], :state(primary))`,W=l.partial`:is([state--outline], :state(outline))`,co=l.partial`:is([state--strong], :state(strong))`,z=l.partial`:is([state--subtle], :state(subtle))`,ce=l.partial`:is([state--tint], :state(tint))`,ho=l.partial`:is([state--underline], :state(underline))`,Z=l.partial`:is([state--transparent], :state(transparent))`,uo=l.partial`:is([state--circular], :state(circular))`,Qt=l.partial`:is([state--rounded], :state(rounded))`,po=l.partial`:is([state--square], :state(square))`,go=l.partial`:is([state--tiny], :state(tiny))`,bo=l.partial`:is([state--extra-small], :state(extra-small))`,T=l.partial`:is([state--small], :state(small))`;l.partial`:is([state--medium], :state(medium))`;const C=l.partial`:is([state--large], :state(large))`,rs=l.partial`:is([state--extra-large], :state(extra-large))`,cl=l.partial`:is([state--huge], :state(huge))`,tn=l.partial`:is([state--align-start], :state(align-start))`,Zt=l.partial`:is([state--align-end], :state(align-end))`,hi=l.partial`:is([state--inset], :state(inset))`,de=l.partial`:is([state--icon], :state(icon))`,N=l.partial`:is([state--pressed], :state(pressed))`,Jt=l.partial`:is([state--brand], :state(brand))`,ui=l.partial`:is([state--error], :state(error))`,ns=l.partial`:is([state--danger], :state(danger))`,as=l.partial`:is([state--important], :state(important))`,ls=l.partial`:is([state--informative], :state(informative))`;l.partial`:is([state--marigold], :state(marigold))`;const cs=l.partial`:is([state--neutral], :state(neutral))`,ds=l.partial`:is([state--severe], :state(severe))`,xe=l.partial`:is([state--success], :state(success))`,we=l.partial`:is([state--warning], :state(warning))`,I=l.partial`:is([state--vertical], :state(vertical))`;l.partial`:is([state--horizontal], :state(horizontal))`,l.partial`:is([state--singleline], :state(singleline))`;const fo=l.partial`:is([state--multiline], :state(multiline))`,Ce=l.partial`:is([state--expanded], :state(expanded))`,pi=l.partial`:is([state--block], :state(block))`;l.partial`:is([state--resize], :state(resize))`;const dl=l.partial`:is([state--resize-horizontal], :state(resize-horizontal))`,hl=l.partial`:is([state--resize-vertical], :state(resize-vertical))`,ul=l.partial`:is([state--resize-both], :state(resize-both))`,en=l.partial`:is([state--auto-resize], :state(auto-resize))`,on=l.partial`:is([state--display-shadow], :state(display-shadow))`,pl=l.partial`:is([state--user-invalid], :state(user-invalid))`;l.partial`:is([state--user-valid], :state(user-valid))`;const A="var(--colorNeutralForeground1)",gi="var(--colorNeutralForeground1Hover)",gl="var(--colorNeutralForeground1Pressed)",Vt="var(--colorNeutralForeground2)",hs="var(--colorNeutralForeground2Hover)",us="var(--colorNeutralForeground2Pressed)",bl="var(--colorNeutralForeground2Selected)",ps="var(--colorNeutralForeground2BrandHover)",gs="var(--colorNeutralForeground2BrandPressed)",fl="var(--colorNeutralForeground2BrandSelected)",ut="var(--colorNeutralForeground3)",ml="var(--colorNeutralForeground3Hover)",$l="var(--colorNeutralForeground3Pressed)",sn="var(--colorNeutralForeground4)",B="var(--colorNeutralForegroundDisabled)",vl="var(--colorBrandForegroundLink)",yl="var(--colorBrandForegroundLinkHover)",kl="var(--colorBrandForegroundLinkPressed)",xl="var(--colorNeutralForeground2Link)",wl="var(--colorNeutralForeground2LinkHover)",Cl="var(--colorNeutralForeground2LinkPressed)",rn="var(--colorCompoundBrandForeground1Hover)",Il="var(--colorCompoundBrandForeground1Pressed)",te="var(--colorNeutralForegroundOnBrand)",He="var(--colorNeutralForegroundInverted)",Sl="var(--colorNeutralForegroundInvertedHover)",zl="var(--colorNeutralForegroundInvertedPressed)",nn="var(--colorNeutralForegroundStaticInverted)",bi="var(--colorBrandForeground1)",Tl="var(--colorBrandForeground2)",Bl="var(--colorNeutralForeground1Static)",O="var(--colorNeutralBackground1)",fi="var(--colorNeutralBackground1Hover)",mi="var(--colorNeutralBackground1Pressed)",an="var(--colorNeutralBackground1Selected)",bs="var(--colorNeutralBackground3)",Pl="var(--colorNeutralBackground4)",Al="var(--colorNeutralBackground5)",fs="var(--colorNeutralBackground6)",ln="var(--colorNeutralBackgroundInverted)",El="var(--colorSubtleBackground)",ms="var(--colorSubtleBackgroundHover)",Re="var(--colorSubtleBackgroundPressed)",Nl="var(--colorSubtleBackgroundSelected)",wt="var(--colorTransparentBackground)",$i="var(--colorTransparentBackgroundHover)",vi="var(--colorTransparentBackgroundPressed)",Fl="var(--colorTransparentBackgroundSelected)",je="var(--colorNeutralBackgroundDisabled)",yi="var(--colorBackgroundOverlay)",ki="var(--colorBrandBackground)",cn="var(--colorBrandBackgroundHover)",dn="var(--colorBrandBackgroundPressed)",Ol="var(--colorBrandBackgroundSelected)",qe="var(--colorCompoundBrandBackground)",mo="var(--colorCompoundBrandBackgroundHover)",$o="var(--colorCompoundBrandBackgroundPressed)",hn="var(--colorBrandBackgroundStatic)",Ml="var(--colorBrandBackground2)",he="var(--colorNeutralStrokeAccessible)",Ue="var(--colorNeutralStrokeAccessibleHover)",Ge="var(--colorNeutralStrokeAccessiblePressed)",ee="var(--colorNeutralStroke1)",vo="var(--colorNeutralStroke1Hover)",$s="var(--colorNeutralStroke1Pressed)",yo="var(--colorNeutralStroke2)",_l="var(--colorNeutralStroke3)",Vl="var(--colorNeutralStrokeOnBrand2)",un="var(--colorBrandStroke1)",xi="var(--colorBrandStroke2)",ko="var(--colorCompoundBrandStroke)",Dl="var(--colorCompoundBrandStrokeHover)",pn="var(--colorCompoundBrandStrokePressed)",Tt="var(--colorNeutralStrokeDisabled)",pt="var(--colorTransparentStroke)",gn="var(--colorTransparentStrokeInteractive)",wi="var(--colorStrokeFocus1)",Dt="var(--colorStrokeFocus2)",bn="var(--colorPaletteRedBackground1)",Ll="var(--colorPaletteRedBackground2)",fn="var(--colorPaletteRedBackground3)",mn="var(--colorPaletteRedBorder1)",Ci="var(--colorPaletteRedBorder2)",$n="var(--colorPaletteRedForeground1)",Hl="var(--colorPaletteRedForeground2)",vn="var(--colorPaletteRedForeground3)",yn="var(--colorPaletteGreenBackground1)",kn="var(--colorPaletteGreenBackground3)",Rl="var(--colorPaletteGreenBorder1)",jl="var(--colorPaletteGreenBorder2)",ql="var(--colorPaletteGreenForeground1)",Ul="var(--colorPaletteGreenForeground2)",Gl="var(--colorPaletteGreenForeground3)",xn="var(--colorPaletteDarkOrangeBackground1)",wn="var(--colorPaletteDarkOrangeBackground3)",Cn="var(--colorPaletteDarkOrangeBorder1)",Wl="var(--colorPaletteDarkOrangeForeground1)",In="var(--colorPaletteDarkOrangeForeground3)",Xl="var(--colorPaletteYellowBackground1)",Kl="var(--colorPaletteYellowBackground3)",Yl="var(--colorPaletteYellowBorder1)",Ii="var(--colorPaletteYellowForeground2)",Sn="var(--colorPaletteMarigoldBackground2)",Ql="var(--colorPaletteMarigoldBackground3)",Zl="var(--colorPaletteMarigoldForeground2)",Jl="var(--colorPaletteAnchorBackground2)",tc="var(--colorPaletteAnchorForeground2)",ec="var(--colorPaletteBeigeBackground2)",oc="var(--colorPaletteBeigeForeground2)",sc="var(--colorPaletteBlueBackground2)",ic="var(--colorPaletteBlueForeground2)",rc="var(--colorPaletteBrassBackground2)",nc="var(--colorPaletteBrassForeground2)",ac="var(--colorPaletteBrownBackground2)",lc="var(--colorPaletteBrownForeground2)",cc="var(--colorPaletteCornflowerBackground2)",dc="var(--colorPaletteCornflowerForeground2)",hc="var(--colorPaletteCranberryBackground2)",uc="var(--colorPaletteCranberryForeground2)",pc="var(--colorPaletteDarkGreenBackground2)",gc="var(--colorPaletteDarkGreenForeground2)",bc="var(--colorPaletteDarkRedBackground2)",fc="var(--colorPaletteDarkRedForeground2)",mc="var(--colorPaletteForestBackground2)",$c="var(--colorPaletteForestForeground2)",vc="var(--colorPaletteGoldBackground2)",yc="var(--colorPaletteGoldForeground2)",kc="var(--colorPaletteGrapeBackground2)",xc="var(--colorPaletteGrapeForeground2)",wc="var(--colorPaletteLavenderBackground2)",Cc="var(--colorPaletteLavenderForeground2)",Ic="var(--colorPaletteLightTealBackground2)",Sc="var(--colorPaletteLightTealForeground2)",zc="var(--colorPaletteLilacBackground2)",Tc="var(--colorPaletteLilacForeground2)",Bc="var(--colorPaletteMagentaBackground2)",Pc="var(--colorPaletteMagentaForeground2)",Ac="var(--colorPaletteMinkBackground2)",Ec="var(--colorPaletteMinkForeground2)",Nc="var(--colorPaletteNavyBackground2)",Fc="var(--colorPaletteNavyForeground2)",Oc="var(--colorPalettePeachBackground2)",Mc="var(--colorPalettePeachForeground2)",_c="var(--colorPalettePinkBackground2)",Vc="var(--colorPalettePinkForeground2)",Dc="var(--colorPalettePlatinumBackground2)",Lc="var(--colorPalettePlatinumForeground2)",Hc="var(--colorPalettePlumBackground2)",Rc="var(--colorPalettePlumForeground2)",jc="var(--colorPalettePumpkinBackground2)",qc="var(--colorPalettePumpkinForeground2)",Uc="var(--colorPalettePurpleBackground2)",Gc="var(--colorPalettePurpleForeground2)",Wc="var(--colorPaletteRoyalBlueBackground2)",Xc="var(--colorPaletteRoyalBlueForeground2)",Kc="var(--colorPaletteSeafoamBackground2)",Yc="var(--colorPaletteSeafoamForeground2)",Qc="var(--colorPaletteSteelBackground2)",Zc="var(--colorPaletteSteelForeground2)",Jc="var(--colorPaletteTealBackground2)",td="var(--colorPaletteTealForeground2)",Si="var(--borderRadiusNone)",Lt="var(--borderRadiusSmall)",P="var(--borderRadiusMedium)",zn="var(--borderRadiusLarge)",Tn="var(--borderRadiusXLarge)",gt="var(--borderRadiusCircular)",$="var(--fontFamilyBase)",ed="var(--fontFamilyMonospace)",od="var(--fontFamilyNumeric)",xo="var(--fontSizeBase100)",q="var(--fontSizeBase200)",E="var(--fontSizeBase300)",ct="var(--fontSizeBase400)",We="var(--fontSizeBase500)",vs="var(--fontSizeBase600)",Bn="var(--fontSizeHero700)",Pn="var(--fontSizeHero800)",An="var(--fontSizeHero900)",En="var(--fontSizeHero1000)",M="var(--fontWeightRegular)",sd="var(--fontWeightMedium)",L="var(--fontWeightSemibold)",ys="var(--fontWeightBold)",ks="var(--lineHeightBase100)",it="var(--lineHeightBase200)",D="var(--lineHeightBase300)",kt="var(--lineHeightBase400)",xs="var(--lineHeightBase500)",Nn="var(--lineHeightBase600)",Fn="var(--lineHeightHero700)",On="var(--lineHeightHero800)",Mn="var(--lineHeightHero900)",_n="var(--lineHeightHero1000)",zi="var(--shadow2)",ws="var(--shadow4)",id="var(--shadow8)",Vn="var(--shadow16)",rd="var(--shadow28)",Dn="var(--shadow64)",H="var(--strokeWidthThin)",Bt="var(--strokeWidthThick)",rt="var(--strokeWidthThicker)",Ti="var(--strokeWidthThickest)",dt="var(--spacingHorizontalXXS)",Ht="var(--spacingHorizontalXS)",xt="var(--spacingHorizontalSNudge)",oe="var(--spacingHorizontalS)",bt="var(--spacingHorizontalMNudge)",ft="var(--spacingHorizontalM)",nd="var(--spacingHorizontalL)",ad="var(--spacingHorizontalXL)",ld="var(--spacingHorizontalXXL)",wo="var(--spacingVerticalXXS)",Bi="var(--spacingVerticalXS)",ue="var(--spacingVerticalSNudge)",nt="var(--spacingVerticalS)",Xe="var(--spacingVerticalMNudge)",cd="var(--spacingVerticalM)",Cs="var(--spacingVerticalL)",Co="var(--spacingVerticalXXL)",Ln="var(--durationUltraFast)",Pi="var(--durationFaster)",Ai="var(--durationNormal)",Ei="var(--durationGentle)",Hn="var(--durationSlow)",Rn="var(--durationSlower)",Is="var(--durationUltraSlow)",dd="var(--curveAccelerateMax)",Ke="var(--curveAccelerateMid)",hd="var(--curveAccelerateMin)",Ni="var(--curveDecelerateMax)",Ye="var(--curveDecelerateMid)",ud="var(--curveDecelerateMin)",pd="var(--curveEasyEaseMax)",Ss="var(--curveEasyEase)",Fi="var(--curveLinear)",gd=l`
|
|
2
2
|
${S("block")}
|
|
3
3
|
|
|
4
|
-
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${ft} ${bt};border-radius:${P};font-family:${$};font-size:${E};font-weight:${M};line-height:${D};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${wt};border:none;box-sizing:border-box;color:${A};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:${Lt}}: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:${
|
|
4
|
+
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${ft} ${bt};border-radius:${P};font-family:${$};font-size:${E};font-weight:${M};line-height:${D};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${wt};border:none;box-sizing:border-box;color:${A};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:${Lt}}: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:${oe};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${ft}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${oe};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Lt};outline:none;border:2px solid ${wi};box-shadow:inset 0 0 0 1px ${Dt}}:host(${F}) .button{color:${B}}:host(${F}) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host(${Ce}) .content{display:block}:host(${Ce}) .default-marker-collapsed,:host(${Ce}) ::slotted([slot='marker-collapsed']),:host(:not(${Ce})) :is(.default-marker-expanded,.content),:host(:not(${Ce})) ::slotted([slot='marker-expanded']){display:none}:host(${Ce}) ::slotted([slot='marker-expanded']),:host(:not(${Ce})) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${E};line-height:${D}}:host(${T}) .heading{font-size:${q};line-height:${it}}:host(${C}) .heading{font-size:${ct};line-height:${kt}}:host(${rs}) .heading{font-size:${We};line-height:${xs}}:host(${Zt}) :slotted([slot='start']){grid-column:1 / span 1}:host(${Zt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${oe};padding-inline-end:0}:host(${Zt}) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host(${Zt}) .heading{grid-template-columns:auto auto 28px;padding-inline:${ft}}:host(${Zt}:has([slot='start'])) .heading{padding-inline:${bt} ${ft}}:host(${pi}${Zt}) .heading{grid-template-columns:auto 1fr}:host(${Zt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,bd=f.partial(`<svg
|
|
5
5
|
width="20"
|
|
6
6
|
height="20"
|
|
7
7
|
viewBox="0 0 20 20"
|
|
@@ -27,22 +27,22 @@ const g=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 md(o={}){return f`<div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${
|
|
30
|
+
</svg>`);function md(o={}){return f`<div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${$t("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>${Wt(o)}<slot name="marker-expanded">${yt(o.expandedIcon)}</slot><slot name="marker-collapsed">${yt(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 $d=md({collapsedIcon:bd,expandedIcon:fd}),vd=lo.compose({name:`${g.prefix}-accordion-item`,template:$d,styles:gd});vd.define(g.registry);const Oi={single:"single",multi:"multi"};var yd=Object.defineProperty,kd=Object.getOwnPropertyDescriptor,jn=(o,t,e,s)=>{for(var i=s>1?void 0:s?kd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&yd(t,e,i),i};class Mi extends w{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 Kt&&(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 Kt&&(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 Kt&&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 Kt&&(this.activeItemIndex===i?(s.expanded=!0,s.expandbutton.setAttribute("aria-disabled","true")):(s.expanded=!1,s.hasAttribute("disabled")||s.expandbutton.removeAttribute("aria-disabled")))})}}jn([a({attribute:"expand-mode"})],Mi.prototype,"expandmode",2),jn([v],Mi.prototype,"slottedAccordionItems",2);const xd=l`
|
|
31
31
|
${S("flex")}
|
|
32
32
|
|
|
33
|
-
:host{flex-direction:column;width:100%;contain:content}`;function wd(){return f`<template><slot ${ot({property:"slottedAccordionItems",filter:
|
|
33
|
+
:host{flex-direction:column;width:100%;contain:content}`;function wd(){return f`<template><slot ${ot({property:"slottedAccordionItems",filter:_e()})}></slot></template>`}const Cd=wd(),Id=Mi.compose({name:`${g.prefix}-accordion`,template:Cd,styles:xd});Id.define(g.registry);const zs={submit:"submit",reset:"reset",button:"button"},Sd={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var zd=Object.defineProperty,Td=Object.getOwnPropertyDescriptor,Ct=(o,t,e,s)=>{for(var i=s>1?void 0:s?Td(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&&zd(t,e,i),i};class Rt extends w{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 Sd){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===ss){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}}Ct([a],Rt.prototype,"download",2),Ct([a],Rt.prototype,"href",2),Ct([a],Rt.prototype,"hreflang",2),Ct([a],Rt.prototype,"ping",2),Ct([a],Rt.prototype,"referrerpolicy",2),Ct([a],Rt.prototype,"rel",2),Ct([a],Rt.prototype,"target",2),Ct([a],Rt.prototype,"type",2);class Qe extends Rt{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)}}Ct([a],Qe.prototype,"appearance",2),Ct([a],Qe.prototype,"shape",2),Ct([a],Qe.prototype,"size",2),Ct([a({attribute:"icon-only",mode:"boolean"})],Qe.prototype,"iconOnly",2),Xt(Qe,Gt);const qn=l`
|
|
34
34
|
${S("inline-flex")}
|
|
35
35
|
|
|
36
|
-
:host{--icon-spacing:${
|
|
36
|
+
:host{--icon-spacing:${xt};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${O};color:${A};border:${H} solid ${ee};padding:0 ${ft};min-width:96px;border-radius:${P};font-size:${E};font-family:${$};font-weight:${L};line-height:${D};transition-duration:${Pi};transition-property:background,border,color;transition-timing-function:${Ss};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${fi};color:${gi};border-color:${vo}}:host(:hover:active){background-color:${mi};border-color:${$s};color:${gl};outline-style:none}:host(:focus-visible){border-color:${pt};outline:${Bt} solid ${pt};box-shadow:${ws},0 0 0 2px ${Dt}}@media screen and (prefers-reduced-motion:reduce){:host{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'])){flex-shrink:0}:host(:not(${de})) :is([slot='end'],:host(:not(${de}))::slotted([slot='end'])){margin-inline-start:var(--icon-spacing)}:host(${de}){min-width:32px;max-width:32px}:host(${T}){--icon-spacing:${Ht};min-height:24px;min-width:64px;padding:0 ${oe};border-radius:${Lt};font-size:${q};line-height:${it};font-weight:${M}}:host(${T}${de}){min-width:24px;max-width:24px}:host(${C}){min-height:40px;border-radius:${zn};padding:0 ${nd};font-size:${ct};line-height:${kt}}:host(${C}${de}){min-width:40px;max-width:40px}:host(${C}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${uo},${uo}:focus-visible)){border-radius:${gt}}:host(:is(${po},${po}:focus-visible)){border-radius:${Si}}:host(${lt}){background-color:${ki};color:${te};border-color:transparent}:host(${lt}:hover){background-color:${cn}}:host(${lt}:is(:hover,:hover:active)){border-color:transparent;color:${te}}:host(${lt}:hover:active){background-color:${dn}}:host(${lt}:focus-visible){border-color:${te};box-shadow:${zi},0 0 0 2px ${Dt}}:host(${W}){background-color:${wt}}:host(${W}:hover){background-color:${$i}}:host(${W}:hover:active){background-color:${vi}}:host(${z}){background-color:${El};color:${Vt};border-color:transparent}:host(${z}:hover){background-color:${ms};color:${hs};border-color:transparent}:host(${z}:hover:active){background-color:${Re};color:${us};border-color:transparent}:host(${z}:hover) ::slotted(svg){fill:${ps}}:host(${z}:hover:active) ::slotted(svg){fill:${gs}}:host(${Z}){background-color:${wt};color:${Vt}}:host(${Z}:hover){background-color:${$i};color:${ps}}:host(${Z}:hover:active){background-color:${vi};color:${gs}}:host(:is(${Z},${Z}:is(:hover,:active))){border-color:transparent}`,Ts=l`
|
|
37
37
|
${qn}
|
|
38
38
|
|
|
39
|
-
:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${
|
|
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:${je};border-color:${Tt};color:${B};cursor:not-allowed}:host(${lt}:is(:disabled,[disabled-focusable])),:host(${lt}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${W}:is(:disabled,[disabled-focusable])),:host(${W}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${wt}}:host(${z}:is(:disabled,[disabled-focusable])),:host(${z}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${wt};border-color:transparent}:host(${Z}:is(:disabled,[disabled-focusable])),:host(${Z}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${wt}}`.withBehaviors(Q(l`
|
|
40
40
|
:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host(${lt}:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}`)),Bd=l`
|
|
41
41
|
${qn}
|
|
42
42
|
|
|
43
43
|
::slotted(a){position:absolute;inset:0}`.withBehaviors(Q(l`
|
|
44
|
-
:host{border-color:LinkText;color:LinkText}`));function Pd(o={}){return f`<template tabindex="0" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}">${Wt(o)}<span class="content" part="content"><slot></slot></span>${
|
|
45
|
-
${S("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${$};font-weight:${L};font-size:${E};border-radius:${gt};color:${ut};background-color:${fs};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:${gt}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${
|
|
44
|
+
:host{border-color:LinkText;color:LinkText}`));function Pd(o={}){return f`<template tabindex="0" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}">${Wt(o)}<span class="content" part="content"><slot></slot></span>${le(o)}</template>`}const Ad=Pd(),Ed=Qe.compose({name:`${g.prefix}-anchor-button`,template:Ad,styles:Bd});Ed.define(g.registry);const Nd=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Fd=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Od=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Md=/\s+/g,_d=/[\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 Vd(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 Dd(o){return o=o.replace(Nd,""),o=o.replace(Fd,""),o=o.replace(Md," "),o=o.trim(),o}function Ld(o,t,e){return!o||(o=Dd(o),_d.test(o)||!e?.allowPhoneInitials&&Od.test(o))?"":Vd(o,t,e?.firstInitialOnly)}const Un={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"},Gn={neutral:"neutral",brand:"brand",colorful:"colorful",...Un};var Hd=Object.defineProperty,Rd=Object.getOwnPropertyDescriptor,pe=(o,t,e,s)=>{for(var i=s>1?void 0:s?Rd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Hd(t,e,i),i};class Bs extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}}pe([a],Bs.prototype,"name",2),pe([a],Bs.prototype,"initials",2),pe([a],Bs.prototype,"active",2);const Ie=class Xi extends Bs{handleChange(t,e){switch(e){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const t=this.size??32;return this.initials??Ld(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:t<=16})}generateColor(){const t=this.color===Gn.colorful,e=this.currentColor;c(this.elementInternals,`${e}`,!1),this.currentColor=t&&this.colorId?this.colorId:t?Xi.colors[qd(this.name??"")%Xi.colors.length]:this.color??Gn.neutral,c(this.elementInternals,`${this.currentColor}`,!0)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};Ie.colors=Object.values(Un),pe([a],Ie.prototype,"shape",2),pe([a],Ie.prototype,"appearance",2),pe([a({converter:st})],Ie.prototype,"size",2),pe([a],Ie.prototype,"color",2),pe([a({attribute:"color-id"})],Ie.prototype,"colorId",2);let jd=Ie;const qd=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},ge={fastOutSlowInMax:Ni,fastOutSlowInMid:Ye,fastOutSlowInMin:ud,slowOutFastInMax:dd,slowOutFastInMid:Ke,slowOutFastInMin:hd,fastEase:pd,normalEase:Ss,nullEasing:Fi},Ud=l`
|
|
45
|
+
${S("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${$};font-weight:${L};font-size:${E};border-radius:${gt};color:${ut};background-color:${fs};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:${gt}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${H}) ${O}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${Bt}) ${O}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${xo};font-weight:${M}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${q}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${ct}}: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:${We}}: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:${vs}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${P}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Lt}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${zn}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Tn}}:host(:is([state--brand],:state(brand))){color:${nn};background-color:${hn}}:host(:is([state--dark-red],:state(dark-red))){color:${fc};background-color:${bc}}:host(:is([state--cranberry],:state(cranberry))){color:${uc};background-color:${hc}}:host(:is([state--red],:state(red))){color:${Hl};background-color:${Ll}}:host(:is([state--pumpkin],:state(pumpkin))){color:${qc};background-color:${jc}}:host(:is([state--peach],:state(peach))){color:${Mc};background-color:${Oc}}:host(:is([state--marigold],:state(marigold))){color:${Zl};background-color:${Sn}}:host(:is([state--gold],:state(gold))){color:${yc};background-color:${vc}}:host(:is([state--brass],:state(brass))){color:${nc};background-color:${rc}}:host(:is([state--brown],:state(brown))){color:${lc};background-color:${ac}}:host(:is([state--forest],:state(forest))){color:${$c};background-color:${mc}}:host(:is([state--seafoam],:state(seafoam))){color:${Yc};background-color:${Kc}}:host(:is([state--dark-green],:state(dark-green))){color:${gc};background-color:${pc}}:host(:is([state--light-teal],:state(light-teal))){color:${Sc};background-color:${Ic}}:host(:is([state--teal],:state(teal))){color:${td};background-color:${Jc}}:host(:is([state--steel],:state(steel))){color:${Zc};background-color:${Qc}}:host(:is([state--blue],:state(blue))){color:${ic};background-color:${sc}}:host(:is([state--royal-blue],:state(royal-blue))){color:${Xc};background-color:${Wc}}:host(:is([state--cornflower],:state(cornflower))){color:${dc};background-color:${cc}}:host(:is([state--navy],:state(navy))){color:${Fc};background-color:${Nc}}:host(:is([state--lavender],:state(lavender))){color:${Cc};background-color:${wc}}:host(:is([state--purple],:state(purple))){color:${Gc};background-color:${Uc}}:host(:is([state--grape],:state(grape))){color:${xc};background-color:${kc}}:host(:is([state--lilac],:state(lilac))){color:${Tc};background-color:${zc}}:host(:is([state--pink],:state(pink))){color:${Vc};background-color:${_c}}:host(:is([state--magenta],:state(magenta))){color:${Pc};background-color:${Bc}}:host(:is([state--plum],:state(plum))){color:${Rc};background-color:${Hc}}:host(:is([state--beige],:state(beige))){color:${oc};background-color:${ec}}:host(:is([state--mink],:state(mink))){color:${Ec};background-color:${Ac}}:host(:is([state--platinum],:state(platinum))){color:${Lc};background-color:${Dc}}:host(:is([state--anchor],:state(anchor))){color:${tc};background-color:${Jl}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Is},${Pi};transition-delay:${ge.fastEase},${ge.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Is}),${Rn};transition-delay:${ge.fastEase}),${ge.nullEasing})}:host([active])::before{box-shadow:${id};border-style:solid;border-color:${hn}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Bt});border-width:${Bt}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${rt});border-width:${rt}}: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 * ${Ti});border-width:${Ti}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${ws}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Vn}}: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:${rd}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Is},${Pi};transition-delay:${ge.fastOutSlowInMin},${ge.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Is},${Rn};transition-delay:${ge.fastOutSlowInMin},${ge.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}}`,Gd=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 Wd(){return f`<slot>${o=>o.name||o.initials?o.generateInitials():Gd}</slot><slot name="badge"></slot>`}const Xd=Wd(),Kd=jd.compose({name:`${g.prefix}-avatar`,template:Xd,styles:Ud});Kd.define(g.registry);const Yd={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Qd={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var Zd=Object.defineProperty,Jd=Object.getOwnPropertyDescriptor,Ps=(o,t,e,s)=>{for(var i=s>1?void 0:s?Jd(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&&Zd(t,e,i),i};class Ze extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.appearance=Yd.filled,this.color=Qd.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)}}Ps([a],Ze.prototype,"appearance",2),Ps([a],Ze.prototype,"color",2),Ps([a],Ze.prototype,"shape",2),Ps([a],Ze.prototype,"size",2),Xt(Ze,Gt);const Wn=l.partial`
|
|
46
46
|
${S("inline-flex")} :host {
|
|
47
47
|
position: relative;
|
|
48
48
|
box-sizing: border-box;
|
|
@@ -50,7 +50,7 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
50
50
|
justify-content: center;
|
|
51
51
|
font-family: ${$};
|
|
52
52
|
font-weight: ${L};
|
|
53
|
-
font-size: ${
|
|
53
|
+
font-size: ${q};
|
|
54
54
|
line-height: ${it};
|
|
55
55
|
min-width: 20px;
|
|
56
56
|
height: 20px;
|
|
@@ -74,7 +74,7 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
74
74
|
bottom: 0;
|
|
75
75
|
right: 0;
|
|
76
76
|
border-style: solid;
|
|
77
|
-
border-width: ${
|
|
77
|
+
border-width: ${H};
|
|
78
78
|
border-color: inherit;
|
|
79
79
|
border-radius: inherit;
|
|
80
80
|
}
|
|
@@ -114,7 +114,7 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
114
114
|
:host(${C}) {
|
|
115
115
|
min-width: 24px;
|
|
116
116
|
height: 24px;
|
|
117
|
-
font-size: ${
|
|
117
|
+
font-size: ${q};
|
|
118
118
|
line-height: ${it};
|
|
119
119
|
padding-inline: calc(${Ht} + ${dt});
|
|
120
120
|
}
|
|
@@ -124,9 +124,9 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
124
124
|
:host(${rs}) {
|
|
125
125
|
min-width: 32px;
|
|
126
126
|
height: 32px;
|
|
127
|
-
font-size: ${
|
|
127
|
+
font-size: ${q};
|
|
128
128
|
line-height: ${it};
|
|
129
|
-
padding-inline: calc(${
|
|
129
|
+
padding-inline: calc(${xt} + ${dt});
|
|
130
130
|
}
|
|
131
131
|
:host(${rs}) ::slotted(svg) {
|
|
132
132
|
font-size: 20px;
|
|
@@ -157,12 +157,12 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
157
157
|
color: ${A};
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
:host(${
|
|
160
|
+
:host(${xe}) {
|
|
161
161
|
background-color: ${kn};
|
|
162
162
|
color: ${te};
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
:host(${
|
|
165
|
+
:host(${we}) {
|
|
166
166
|
background-color: ${Kl};
|
|
167
167
|
color: ${Bl};
|
|
168
168
|
}
|
|
@@ -189,96 +189,96 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
:host(${Yt}${z}) {
|
|
192
|
-
color: ${
|
|
192
|
+
color: ${He};
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
:host(${Yt}${
|
|
195
|
+
:host(${Yt}${xe}) {
|
|
196
196
|
color: ${Gl};
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
:host(${Yt}${
|
|
199
|
+
:host(${Yt}${we}) {
|
|
200
200
|
color: ${Ii};
|
|
201
201
|
}
|
|
202
202
|
`,th=l.partial`
|
|
203
|
-
:host(${
|
|
203
|
+
:host(${W}) {
|
|
204
204
|
border-color: currentColor;
|
|
205
205
|
color: ${bi};
|
|
206
206
|
background-color: initial;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
:host(${
|
|
209
|
+
:host(${W}${ns}) {
|
|
210
210
|
color: ${vn};
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
:host(${
|
|
213
|
+
:host(${W}${as}) {
|
|
214
214
|
color: ${ut};
|
|
215
|
-
border-color: ${
|
|
215
|
+
border-color: ${he};
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
:host(${
|
|
218
|
+
:host(${W}${ls}) {
|
|
219
219
|
color: ${ut};
|
|
220
220
|
border-color: ${yo};
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
:host(${
|
|
223
|
+
:host(${W}${ds}) {
|
|
224
224
|
color: ${In};
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
:host(${
|
|
227
|
+
:host(${W}${z}) {
|
|
228
228
|
color: ${nn};
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
:host(${
|
|
231
|
+
:host(${W}${xe}) {
|
|
232
232
|
color: ${Ul};
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
:host(${
|
|
235
|
+
:host(${W}${we}) {
|
|
236
236
|
color: ${Ii};
|
|
237
237
|
}
|
|
238
238
|
`,eh=l.partial`
|
|
239
|
-
:host(${
|
|
239
|
+
:host(${ce}) {
|
|
240
240
|
background-color: ${Ml};
|
|
241
241
|
color: ${Tl};
|
|
242
242
|
border-color: ${xi};
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
:host(${
|
|
245
|
+
:host(${ce}${ns}) {
|
|
246
246
|
background-color: ${bn};
|
|
247
247
|
color: ${$n};
|
|
248
248
|
border-color: ${mn};
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
:host(${
|
|
251
|
+
:host(${ce}${as}) {
|
|
252
252
|
background-color: ${ut};
|
|
253
253
|
color: ${O};
|
|
254
254
|
border-color: ${pt};
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
:host(${
|
|
257
|
+
:host(${ce}${ls}) {
|
|
258
258
|
background-color: ${Pl};
|
|
259
259
|
color: ${ut};
|
|
260
260
|
border-color: ${yo};
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
:host(${
|
|
263
|
+
:host(${ce}${ds}) {
|
|
264
264
|
background-color: ${xn};
|
|
265
265
|
color: ${Wl};
|
|
266
266
|
border-color: ${Cn};
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
:host(${
|
|
269
|
+
:host(${ce}${z}) {
|
|
270
270
|
background-color: ${O};
|
|
271
271
|
color: ${ut};
|
|
272
272
|
border-color: ${yo};
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
:host(${
|
|
275
|
+
:host(${ce}${xe}) {
|
|
276
276
|
background-color: ${yn};
|
|
277
277
|
color: ${ql};
|
|
278
278
|
border-color: ${jl};
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
:host(${
|
|
281
|
+
:host(${ce}${we}) {
|
|
282
282
|
background-color: ${Xl};
|
|
283
283
|
color: ${Ii};
|
|
284
284
|
border-color: ${Yl};
|
|
@@ -301,21 +301,21 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
301
301
|
`,l.partial`
|
|
302
302
|
font-family: ${$};
|
|
303
303
|
font-size: ${ct};
|
|
304
|
-
line-height: ${
|
|
304
|
+
line-height: ${kt};
|
|
305
305
|
font-weight: ${M};
|
|
306
306
|
`,l.partial`
|
|
307
307
|
font-family: ${$};
|
|
308
|
-
font-size: ${
|
|
308
|
+
font-size: ${q};
|
|
309
309
|
line-height: ${it};
|
|
310
310
|
font-weight: ${M};
|
|
311
311
|
`,l.partial`
|
|
312
312
|
font-family: ${$};
|
|
313
|
-
font-size: ${
|
|
313
|
+
font-size: ${q};
|
|
314
314
|
line-height: ${it};
|
|
315
315
|
font-weight: ${L};
|
|
316
316
|
`,l.partial`
|
|
317
317
|
font-family: ${$};
|
|
318
|
-
font-size: ${
|
|
318
|
+
font-size: ${q};
|
|
319
319
|
line-height: ${it};
|
|
320
320
|
font-weight: ${ys};
|
|
321
321
|
`,l.partial`
|
|
@@ -330,18 +330,18 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
330
330
|
font-weight: ${L};
|
|
331
331
|
`;const oh=l.partial`
|
|
332
332
|
font-family: ${$};
|
|
333
|
-
font-size: ${
|
|
333
|
+
font-size: ${We};
|
|
334
334
|
line-height: ${xs};
|
|
335
335
|
font-weight: ${L};
|
|
336
336
|
`;l.partial`
|
|
337
337
|
font-family: ${$};
|
|
338
338
|
font-size: ${ct};
|
|
339
|
-
line-height: ${
|
|
339
|
+
line-height: ${kt};
|
|
340
340
|
font-weight: ${L};
|
|
341
341
|
`,l.partial`
|
|
342
342
|
font-family: ${$};
|
|
343
343
|
font-size: ${ct};
|
|
344
|
-
line-height: ${
|
|
344
|
+
line-height: ${kt};
|
|
345
345
|
font-weight: ${ys};
|
|
346
346
|
`,l.partial`
|
|
347
347
|
font-family: ${$};
|
|
@@ -376,11 +376,11 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
376
376
|
${eh}
|
|
377
377
|
${Wn}
|
|
378
378
|
`.withBehaviors(Q(l`
|
|
379
|
-
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function Qn(o={}){return f` ${Wt(o)}<slot>${
|
|
379
|
+
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function Qn(o={}){return f` ${Wt(o)}<slot>${yt(o.defaultContent)}</slot>${le(o)} `}const ih=Qn(),rh=Ze.compose({name:`${g.prefix}-badge`,template:ih,styles:sh});rh.define(g.registry);var nh=Object.defineProperty,ah=Object.getOwnPropertyDescriptor,X=(o,t,e,s)=>{for(var i=s>1?void 0:s?ah(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&&nh(t,e,i),i};class at extends w{constructor(){super(),this.disabledFocusable=!1,this.tabIndex=0,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledFocusableChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!e}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(t,e){e!==zs.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===ss||t.key===ni){this.click();return}return!0}press(){switch(this.type){case zs.reset:{this.resetForm();break}case zs.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==zs.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)}}}}at.formAssociated=!0,X([a({mode:"boolean"})],at.prototype,"autofocus",2),X([v],at.prototype,"defaultSlottedContent",2),X([a({mode:"boolean"})],at.prototype,"disabled",2),X([a({attribute:"disabled-focusable",mode:"boolean"})],at.prototype,"disabledFocusable",2),X([a({attribute:"tabindex",mode:"fromView",converter:st})],at.prototype,"tabIndex",2),X([a({attribute:"formaction"})],at.prototype,"formAction",2),X([a({attribute:"form"})],at.prototype,"formAttribute",2),X([a({attribute:"formenctype"})],at.prototype,"formEnctype",2),X([a({attribute:"formmethod"})],at.prototype,"formMethod",2),X([a({attribute:"formnovalidate",mode:"boolean"})],at.prototype,"formNoValidate",2),X([a({attribute:"formtarget"})],at.prototype,"formTarget",2),X([a],at.prototype,"name",2),X([a],at.prototype,"type",2),X([a],at.prototype,"value",2);class se extends at{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)}}X([a],se.prototype,"appearance",2),X([a],se.prototype,"shape",2),X([a],se.prototype,"size",2),X([a({attribute:"icon-only",mode:"boolean"})],se.prototype,"iconOnly",2),Xt(se,Gt);function _i(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)}">${Wt(o)}<span class="content" part="content"><slot ${ot("defaultSlottedContent")}></slot></span>${le(o)}</template>`}const lh=_i(),ch=se.compose({name:`${g.prefix}-button`,template:lh,styles:Ts});ch.define(g.registry);var dh=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,Pt=(o,t,e,s)=>{for(var i=s>1?void 0:s?hh(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&&dh(t,e,i),i};class It extends w{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}}It.formAssociated=!0,Pt([a({mode:"boolean"})],It.prototype,"autofocus",2),Pt([v],It.prototype,"disabled",2),Pt([a({attribute:"disabled",mode:"boolean"})],It.prototype,"disabledAttribute",2),Pt([a({attribute:"form"})],It.prototype,"formAttribute",2),Pt([a({attribute:"checked",mode:"boolean"})],It.prototype,"initialChecked",2),Pt([a({attribute:"value",mode:"fromView"})],It.prototype,"initialValue",2),Pt([a],It.prototype,"name",2),Pt([a({mode:"boolean"})],It.prototype,"required",2);class As extends It{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)}}Pt([v],As.prototype,"indeterminate",2),Pt([a],As.prototype,"shape",2),Pt([a],As.prototype,"size",2);const Se=l.partial`:is([state--indeterminate], :state(indeterminate))`,uh=l`
|
|
380
380
|
${S("inline-flex")}
|
|
381
381
|
|
|
382
|
-
:host{--size:16px;background-color:${O};border-radius:${Lt};border:${
|
|
383
|
-
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${
|
|
382
|
+
:host{--size:16px;background-color:${O};border-radius:${Lt};border:${H} solid ${he};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Ue}}:host(:active){border-color:${Ge}}:host(${y}:hover){background-color:${mo};border-color:${Dl}}:host(${y}:active){background-color:${$o};border-color:${pn}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${Bt} solid ${pt};border-radius:${P}}:host(:not([slot='input']):focus-visible)::after{border-color:${Dt}}.indeterminate-indicator,.checked-indicator{color:${He};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(${y})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${y}),:host(${Se}){border-color:${ko}}:host(${y}),:host(${Se}) .indeterminate-indicator{background-color:${qe}}:host(${Se}) .indeterminate-indicator{border-radius:${Lt};position:absolute;width:calc(var(--size) / 2);inset:0}:host(${C}){--size:20px}:host(${C}) ::slotted([slot='checked-indicator']),:host(${C}) .checked-indicator{width:16px}:host(${uo}),:host(${uo}) .indeterminate-indicator{border-radius:${gt}}:host([disabled]),:host([disabled]${y}){background-color:${je};border-color:${Tt}}:host([disabled]){cursor:unset}:host([disabled]${Se}) .indeterminate-indicator{background-color:${Tt}}:host([disabled]${y}) .checked-indicator{color:${Tt}}`.withBehaviors(Q(l`
|
|
383
|
+
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${y}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${y}),:host(${Se}) .indeterminate-indicator{background-color:FieldText}:host(${y}:not([disabled]):hover),:host(${Se}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Se}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${y}) .checked-indicator{color:GrayText}`)),ph=f.partial(`
|
|
384
384
|
<svg
|
|
385
385
|
fill="currentColor"
|
|
386
386
|
aria-hidden="true"
|
|
@@ -393,19 +393,19 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
393
393
|
</svg>
|
|
394
394
|
`),gh=f.partial(`
|
|
395
395
|
<span class="indeterminate-indicator"></span>
|
|
396
|
-
`);function bh(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 bh(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">${yt(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${yt(o.indeterminateIndicator)}</slot></template>`}const fh=bh({checkedIndicator:ph,indeterminateIndicator:gh}),mh=As.compose({name:`${g.prefix}-checkbox`,template:fh,styles:uh});mh.define(g.registry);class $h extends se{}const vh=l`
|
|
397
397
|
${Ts}
|
|
398
398
|
|
|
399
|
-
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${E};line-height:${D}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Vt};line-height:100%;font-size:${
|
|
400
|
-
::slotted([slot='description']){color:${B}}:host(${T}){padding:8px;padding-bottom:10px}:host(${
|
|
399
|
+
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${E};line-height:${D}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Vt};line-height:100%;font-size:${q};font-weight:${M}}::slotted(svg),:host(${C}) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${hs}}:host(:active) ::slotted([slot='description']){color:${us}}:host(:is(${lt},${lt}:hover,${lt}:active)) ::slotted([slot='description']){color:${te}}:host(:is(${z},${z}:hover,${z}:active)) ::slotted([slot='description']),:host(${Z}) ::slotted([slot='description']){color:${Vt}}:host(${Z}:hover) ::slotted([slot='description']){color:${ps}}:host(${Z}:active) ::slotted([slot='description']){color:${gs}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
|
|
400
|
+
::slotted([slot='description']){color:${B}}:host(${T}){padding:8px;padding-bottom:10px}:host(${de}){min-width:52px;max-width:52px;padding:${xt}}:host(${de}${T}){min-width:48px;max-width:48px;padding:${Ht}}:host(${de}${C}){min-width:56px;max-width:56px;padding:${oe}}:host(${C}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ct};line-height:${kt}}:host(${C}) ::slotted([slot='description']){font-size:${E}}`;function yh(o={}){return f`<template ?disabled="${t=>t.disabled}" tabindex="${t=>t.disabled?null:t.tabIndex??0}">${Wt(o)}<span class="content" part="content"><slot ${ot("defaultSlottedContent")}></slot><slot name="description"></slot></span>${le(o)}</template>`}const kh=yh(),xh=$h.compose({name:`${g.prefix}-compound-button`,template:kh,styles:vh});xh.define(g.registry);var wh=Object.defineProperty,Ch=Object.getOwnPropertyDescriptor,be=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ch(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&wh(t,e,i),i};class jt extends w{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}`}}be([a],jt.prototype,"appearance",2),be([a],jt.prototype,"color",2),be([a],jt.prototype,"shape",2),be([a],jt.prototype,"size",2),be([a({converter:st})],jt.prototype,"count",2),be([a({attribute:"overflow-count",converter:st})],jt.prototype,"overflowCount",2),be([a({attribute:"show-zero",mode:"boolean"})],jt.prototype,"showZero",2),be([a({mode:"boolean"})],jt.prototype,"dot",2),Xt(jt,Gt);const Zn=l.partial`:is([state--dot], :state(dot))`,Ih=l`
|
|
401
401
|
:host(${Qt}){border-radius:${P}}:host(${Qt}${go}),:host(${Qt}${bo}),:host(${Qt}${T}){border-radius:${Lt}}${Xn}
|
|
402
402
|
${Kn}
|
|
403
403
|
${Yn}
|
|
404
404
|
${Wn}
|
|
405
405
|
|
|
406
|
-
:host(${Zn}),:host(${Zn}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function Sh(o={}){return Qn({defaultContent:f`${t=>t.setCount()}`})}const zh=Sh(),Th=jt.compose({name:`${g.prefix}-counter-badge`,template:zh,styles:Ih});Th.define(g.registry);const qt={modal:"modal",nonModal:"non-modal",alert:"alert"};var Bh=Object.defineProperty,Ph=Object.getOwnPropertyDescriptor,Es=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ph(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Bh(t,e,i),i};class Io extends w{constructor(){super(...arguments),this.type=qt.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(){Ot.enqueue(()=>{this.emitBeforeToggle(),this.type===qt.alert||this.type===qt.modal?this.dialog.showModal():this.type===qt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&this.type!==qt.alert&&t.target===this.dialog&&this.hide(),!0}}Es([
|
|
407
|
-
@layer base{:host{--dialog-backdrop:${yi};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${O};border-radius:${Tn};border:none;box-shadow:${Dn};color:${A};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:${Ei};transition-timing-function:${
|
|
408
|
-
@layer base{dialog{border:${
|
|
406
|
+
:host(${Zn}),:host(${Zn}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function Sh(o={}){return Qn({defaultContent:f`${t=>t.setCount()}`})}const zh=Sh(),Th=jt.compose({name:`${g.prefix}-counter-badge`,template:zh,styles:Ih});Th.define(g.registry);const qt={modal:"modal",nonModal:"non-modal",alert:"alert"};var Bh=Object.defineProperty,Ph=Object.getOwnPropertyDescriptor,Es=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ph(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Bh(t,e,i),i};class Io extends w{constructor(){super(...arguments),this.type=qt.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(){Ot.enqueue(()=>{this.emitBeforeToggle(),this.type===qt.alert||this.type===qt.modal?this.dialog.showModal():this.type===qt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&this.type!==qt.alert&&t.target===this.dialog&&this.hide(),!0}}Es([v],Io.prototype,"dialog",2),Es([a({attribute:"aria-describedby"})],Io.prototype,"ariaDescribedby",2),Es([a({attribute:"aria-labelledby"})],Io.prototype,"ariaLabelledby",2),Es([a],Io.prototype,"type",2);const Ah=f`<dialog role="${o=>o.type===qt.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===qt.modal||o.type===qt.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===qt.alert?t.event.preventDefault():o.hide()}" ${$t("dialog")}><slot></slot></dialog>`,Eh=l`
|
|
407
|
+
@layer base{:host{--dialog-backdrop:${yi};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${O};border-radius:${Tn};border:none;box-shadow:${Dn};color:${A};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:${Ei};transition-timing-function:${Ye};opacity:0}::backdrop{transition-timing-function:${Fi}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${Ke}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(Q(l`
|
|
408
|
+
@layer base{dialog{border:${H} solid ${pt}}}`)),Nh=Io.compose({name:`${g.prefix}-dialog`,template:Ah,styles:Eh});Nh.define(g.registry);var Fh=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,Mh=(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&&Fh(t,e,i),i};class Jn extends w{constructor(){super(...arguments),this.noTitleAction=!1}}Mh([a({mode:"boolean",attribute:"no-title-action"})],Jn.prototype,"noTitleAction",2);const _h=f.partial(`
|
|
409
409
|
<svg
|
|
410
410
|
fill="currentColor"
|
|
411
411
|
aria-hidden="true"
|
|
@@ -418,109 +418,109 @@ const g=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>`),Vh=f`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===qt.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${
|
|
421
|
+
</svg>`),Vh=f`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===qt.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${$t("defaultTitleAction")}>${_h}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,Dh=l`
|
|
422
422
|
${S("grid")}
|
|
423
423
|
|
|
424
|
-
:host{background:${O};box-sizing:border-box;gap:${nt};padding:${Co} ${ld};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${O};color:${A};column-gap:8px;display:flex;font-family:${$};font-size:${
|
|
424
|
+
:host{background:${O};box-sizing:border-box;gap:${nt};padding:${Co} ${ld};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${O};color:${A};column-gap:8px;display:flex;font-family:${$};font-size:${We};font-weight:${L};inset-block-start:0;justify-content:space-between;line-height:${xs};margin-block-end:calc(${nt} * -1);margin-block-start:calc(${Co} * -1);padding-block-end:${nt};padding-block-start:${Co};position:sticky;z-index:1}.content{box-sizing:border-box;color:${A};font-family:${$};font-size:${E};font-weight:${M};line-height:${D};min-height:32px}.actions{box-sizing:border-box;background:${O};display:flex;flex-direction:column;gap:${nt};inset-block-end:0;margin-block-end:calc(${Co} * -1);padding-block-end:${Co};padding-block-start:${Cs};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(${nt} * -1);padding-block-start:${nt}}}`,Lh=Jn.compose({name:`${g.prefix}-dialog-body`,template:Vh,styles:Dh});Lh.define(g.registry);const So={separator:"separator",presentation:"presentation"},Hh=vt;var Rh=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,zo=(o,t,e,s)=>{for(var i=s>1?void 0:s?jh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Rh(t,e,i),i};class Vi extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??So.separator,this.role!==So.presentation&&(this.elementInternals.ariaOrientation=this.orientation??Hh.horizontal)}roleChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.role=`${e??So.separator}`),e===So.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.role!==So.presentation?e:null,t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}zo([a],Vi.prototype,"role",2),zo([a],Vi.prototype,"orientation",2);class Ns extends Vi{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)}}zo([a({attribute:"align-content"})],Ns.prototype,"alignContent",2),zo([a],Ns.prototype,"appearance",2),zo([a({mode:"boolean"})],Ns.prototype,"inset",2);function qh(){return f`<slot></slot>`}const Uh=qh(),Gh=l`
|
|
425
425
|
${S("flex")}
|
|
426
426
|
|
|
427
|
-
:host{contain:content}:host::after,:host::before{align-self:center;background:${yo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${
|
|
428
|
-
:host(${co})::before,:host(${co})::after,:host(${Jt})::before,:host(${Jt})::after,:host(${z})::before,:host(${z})::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),Wh=Ns.compose({name:`${g.prefix}-divider`,template:Uh,styles:Gh});Wh.define(g.registry);const Xh={start:"start",end:"end"},Kh={small:"small",medium:"medium",large:"large",full:"full"},Di={nonModal:"non-modal",modal:"modal",inline:"inline"};var Yh=Object.defineProperty,Qh=Object.getOwnPropertyDescriptor,
|
|
427
|
+
:host{contain:content}:host::after,:host::before{align-self:center;background:${yo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${H}}:host(${hi}){padding:0 12px}:host ::slotted(*){color:${Vt};font-family:${$};font-size:${q};font-weight:${M};margin:0;padding:0 12px}:host(${tn})::before,:host(${Zt})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${I}){height:100%;min-height:84px}:host(${I}):empty{min-height:20px}:host(${I}){flex-direction:column;align-items:center}:host(${I}${hi})::before{margin-top:12px}:host(${I}${hi})::after{margin-bottom:12px}:host(${I}):empty::before,:host(${I}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${I})::before,:host(${I})::after{width:${H};min-height:20px;height:100%}:host(${I}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${I}${tn})::before{min-height:8px}:host(${I}${Zt})::after{min-height:8px}:host(${co})::before,:host(${co})::after{background:${ee}}:host(${co}) ::slotted(*){color:${A}}:host(${Jt})::before,:host(${Jt})::after{background:${un}}:host(${Jt}) ::slotted(*){color:${bi}}:host(${z})::before,:host(${z})::after{background:${_l}}:host(${z}) ::slotted(*){color:${ut}}`.withBehaviors(Q(l`
|
|
428
|
+
:host(${co})::before,:host(${co})::after,:host(${Jt})::before,:host(${Jt})::after,:host(${z})::before,:host(${z})::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),Wh=Ns.compose({name:`${g.prefix}-divider`,template:Uh,styles:Gh});Wh.define(g.registry);const Xh={start:"start",end:"end"},Kh={small:"small",medium:"medium",large:"large",full:"full"},Di={nonModal:"non-modal",modal:"modal",inline:"inline"};var Yh=Object.defineProperty,Qh=Object.getOwnPropertyDescriptor,Je=(o,t,e,s)=>{for(var i=s>1?void 0:s?Qh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Yh(t,e,i),i};class ze extends w{constructor(){super(...arguments),this.type=Di.modal,this.position=Xh.start,this.size=Kh.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(){Ot.enqueue(()=>{this.emitBeforeToggle(),this.type===Di.inline||this.type===Di.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}}Je([a],ze.prototype,"type",2),Je([a({attribute:"aria-labelledby"})],ze.prototype,"ariaLabelledby",2),Je([a({attribute:"aria-describedby"})],ze.prototype,"ariaDescribedby",2),Je([a],ze.prototype,"position",2),Je([a({attribute:"size"})],ze.prototype,"size",2),Je([v],ze.prototype,"dialog",2);const Zh=l`
|
|
429
429
|
${S("block")}
|
|
430
430
|
|
|
431
|
-
:host{--dialog-backdrop:${yi}}: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:${E};line-height:${D};font-family:${$};font-weight:${M};color:${A};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${pt};border-inline-start-color:var(--drawer-separator,${pt});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${Dn};border:${
|
|
431
|
+
:host{--dialog-backdrop:${yi}}: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:${E};line-height:${D};font-family:${$};font-weight:${M};color:${A};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${pt};border-inline-start-color:var(--drawer-separator,${pt});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${Dn};border:${H} solid ${pt};background:${O}}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${Ei};transition-timing-function:${Ye}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${Ke}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${Ke}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Ei};transition-timing-function:${Ye};background:var(--dialog-backdrop,${yi});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Fi}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function Jh(){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()}" ${$t("dialog")}><slot></slot></dialog>`}const tu=Jh(),eu=ze.compose({name:`${g.prefix}-drawer`,template:tu,styles:Zh});eu.define(g.registry);class ou extends w{}const su=l`
|
|
432
432
|
${S("grid")}
|
|
433
|
-
:host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${ad};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${oh}}.footer{display:flex;justify-content:flex-start;gap:${ft}}`;function iu(){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 ru=iu(),nu=ou.compose({name:`${g.prefix}-drawer-body`,template:ru,styles:su});nu.define(g.registry);const au={above:"above",after:"after",before:"before"},x={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 lu=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,To=(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&&lu(t,e,i),i};class Bo extends w{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(t,e){e&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(t,e){if(c(this.elementInternals,"has-message",!!e.length),!e.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(t,e){e?.length&&(this.input=e?.[0],this.setStates())}inputChanged(t,e){e&&(this.setStates(),this.setLabelProperties())}changeHandler(t){return this.setStates(),this.setValidationStates(),!0}clickHandler(t){return this===t.target&&this.input.click(),!0}focusinHandler(t){return this.matches(":focus-within:has(> :focus-visible)")&&c(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(t){return c(this.elementInternals,"focus-visible",!1),!0}invalidHandler(t){this.messageSlot.length&&t.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||ao("input"),this.labelSlot?.forEach(t=>{t instanceof HTMLLabelElement&&(t.htmlFor=t.htmlFor||this.input.id,t.id=t.id||`${this.input.id}--label`,t.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",t.id))}))}setStates(){this.$fastController.isConnected&&(c(this.elementInternals,"disabled",!!this.input.disabled),c(this.elementInternals,"readonly",!!this.input.readOnly),c(this.elementInternals,"required",!!this.input.required),c(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[t,e]of Object.entries(x))c(this.elementInternals,e,this.input.validity[t])}}To([
|
|
433
|
+
:host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${ad};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${oh}}.footer{display:flex;justify-content:flex-start;gap:${ft}}`;function iu(){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 ru=iu(),nu=ou.compose({name:`${g.prefix}-drawer-body`,template:ru,styles:su});nu.define(g.registry);const au={above:"above",after:"after",before:"before"},x={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 lu=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,To=(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&&lu(t,e,i),i};class Bo extends w{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(t,e){e&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(t,e){if(c(this.elementInternals,"has-message",!!e.length),!e.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(t,e){e?.length&&(this.input=e?.[0],this.setStates())}inputChanged(t,e){e&&(this.setStates(),this.setLabelProperties())}changeHandler(t){return this.setStates(),this.setValidationStates(),!0}clickHandler(t){return this===t.target&&this.input.click(),!0}focusinHandler(t){return this.matches(":focus-within:has(> :focus-visible)")&&c(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(t){return c(this.elementInternals,"focus-visible",!1),!0}invalidHandler(t){this.messageSlot.length&&t.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||ao("input"),this.labelSlot?.forEach(t=>{t instanceof HTMLLabelElement&&(t.htmlFor=t.htmlFor||this.input.id,t.id=t.id||`${this.input.id}--label`,t.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",t.id))}))}setStates(){this.$fastController.isConnected&&(c(this.elementInternals,"disabled",!!this.input.disabled),c(this.elementInternals,"readonly",!!this.input.readOnly),c(this.elementInternals,"required",!!this.input.required),c(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[t,e]of Object.entries(x))c(this.elementInternals,e,this.input.validity[t])}}To([v],Bo.prototype,"labelSlot",2),To([v],Bo.prototype,"messageSlot",2),To([v],Bo.prototype,"slottedInputs",2),To([v],Bo.prototype,"input",2);class ta extends Bo{constructor(){super(...arguments),this.labelPosition=au.above}}To([a({attribute:"label-position"})],ta.prototype,"labelPosition",2);const du=l.partial`:is([state--focus-visible], :state(focus-visible))`,hu=l.partial`:is([state--${x.badInput}], :state(${x.badInput}))`,uu=l.partial`:is([state--${x.customError}], :state(${x.customError}))`,pu=l.partial`:is([state--${x.patternMismatch}], :state(${x.patternMismatch}))`,gu=l.partial`:is([state--${x.rangeOverflow}], :state(${x.rangeOverflow}))`,bu=l.partial`:is([state--${x.rangeUnderflow}], :state(${x.rangeUnderflow}))`,fu=l.partial`:is([state--${x.stepMismatch}], :state(${x.stepMismatch}))`,mu=l.partial`:is([state--${x.tooLong}], :state(${x.tooLong}))`,$u=l.partial`:is([state--${x.tooShort}], :state(${x.tooShort}))`,vu=l.partial`:is([state--${x.typeMismatch}], :state(${x.typeMismatch}))`,yu=l.partial`:is([state-${x.valid}], :state(${x.valid}))`,ku=l.partial`:is([state--${x.valueMissing}], :state(${x.valueMissing}))`,xu=l.partial`:is([state--has-message], :state(has-message))`,wu=l`
|
|
434
434
|
${S("inline-grid")}
|
|
435
435
|
|
|
436
|
-
:host{color:${A};align-items:center;gap:0 ${ft};justify-items:start;position:relative}:has([slot='message']){color:${A};row-gap:${nt}}: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:${ft}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${wo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${cd}}:host([label-position='below']:not(${xu})){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:${wo};grid-area:message}:host(${du}:focus-within){border-radius:${P};outline:${Bt} solid ${Dt}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${$};font-size:${E};font-weight:${M};grid-area:label;line-height:${D};user-select:none}:host([size='small']) ::slotted(label){font-size:${
|
|
437
|
-
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(:is([state--block],:state(block))) ::slotted(img){width:100%;height:auto}:host(:is([state--bordered],:state(bordered))) ::slotted(img){border:${
|
|
436
|
+
:host{color:${A};align-items:center;gap:0 ${ft};justify-items:start;position:relative}:has([slot='message']){color:${A};row-gap:${nt}}: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:${ft}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${wo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${cd}}:host([label-position='below']:not(${xu})){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:${wo};grid-area:message}:host(${du}:focus-within){border-radius:${P};outline:${Bt} solid ${Dt}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${$};font-size:${E};font-weight:${M};grid-area:label;line-height:${D};user-select:none}:host([size='small']) ::slotted(label){font-size:${q};line-height:${it}}:host([size='large']) ::slotted(label){font-size:${ct};line-height:${kt}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${L}}:host(${F}){cursor:default}::slotted([flag]){display:none}:host(${hu}) ::slotted([flag='${x.badInput}']),:host(${uu}) ::slotted([flag='${x.customError}']),:host(${pu}) ::slotted([flag='${x.patternMismatch}']),:host(${gu}) ::slotted([flag='${x.rangeOverflow}']),:host(${bu}) ::slotted([flag='${x.rangeUnderflow}']),:host(${fu}) ::slotted([flag='${x.stepMismatch}']),:host(${mu}) ::slotted([flag='${x.tooLong}']),:host(${$u}) ::slotted([flag='${x.tooShort}']),:host(${vu}) ::slotted([flag='${x.typeMismatch}']),:host(${ku}) ::slotted([flag='${x.valueMissing}']),:host(${yu}) ::slotted([flag='${x.valid}']){display:block}`,Cu=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)}" ${Ha({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:_e()})}><slot name="label" part="label" ${ot("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${ot({property:"messageSlot",filter:_e("[flag]")})}></slot></template>`,Iu=ta.compose({name:`${g.prefix}-field`,template:Cu,styles:wu,shadowOptions:{delegatesFocus:!0}});Iu.define(g.registry);var Su=Object.defineProperty,zu=Object.getOwnPropertyDescriptor,Po=(o,t,e,s)=>{for(var i=s>1?void 0:s?zu(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&&Su(t,e,i),i};class to extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}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"})],to.prototype,"block",2),Po([a({mode:"boolean"})],to.prototype,"bordered",2),Po([a({mode:"boolean"})],to.prototype,"shadow",2),Po([a],to.prototype,"fit",2),Po([a],to.prototype,"shape",2);const Tu=f`<slot></slot>`,Bu=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:${H} solid ${yo}}: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:${ws}}:host(${uo}) ::slotted(img){border-radius:${gt}}:host(${Qt}) ::slotted(img){border-radius:${P}}`,Pu=to.compose({name:`${g.prefix}-image`,template:Tu,styles:Bu});Pu.define(g.registry);var Au=Object.defineProperty,Eu=Object.getOwnPropertyDescriptor,Fs=(o,t,e,s)=>{for(var i=s>1?void 0:s?Eu(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&&Au(t,e,i),i};class Ao extends w{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)}}Fs([a],Ao.prototype,"size",2),Fs([a],Ao.prototype,"weight",2),Fs([a({mode:"boolean"})],Ao.prototype,"disabled",2),Fs([a({mode:"boolean"})],Ao.prototype,"required",2);const Nu=l`
|
|
438
438
|
${S("inline-flex")}
|
|
439
439
|
|
|
440
|
-
:host{color:${A};cursor:pointer;font-family:${$};font-size:${E};font-weight:${M};line-height:${D};user-select:none}.asterisk{color:${$n};margin-inline-start:${Ht}}:host(${T}){font-size:${
|
|
440
|
+
:host{color:${A};cursor:pointer;font-family:${$};font-size:${E};font-weight:${M};line-height:${D};user-select:none}.asterisk{color:${$n};margin-inline-start:${Ht}}:host(${T}){font-size:${q};line-height:${it}}:host(${C}){font-size:${ct};line-height:${kt}}:host(${C}),:host(:is([state--semibold],:state(semibold))){font-weight:${L}}:host(:is([state--disabled],:state(disabled))),:host(:is([state--disabled],:state(disabled))) .asterisk{color:${B}}`;function Fu(){return f`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const Ou=Fu(),Mu=Ao.compose({name:`${g.prefix}-label`,template:Ou,styles:Nu});Mu.define(g.registry);var _u=Object.defineProperty,Vu=Object.getOwnPropertyDescriptor,ea=(o,t,e,s)=>{for(var i=s>1?void 0:s?Vu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&_u(t,e,i),i};class Li extends Rt{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)}}ea([a],Li.prototype,"appearance",2),ea([a({mode:"boolean"})],Li.prototype,"inline",2);const Du=l`
|
|
441
441
|
${S("inline")}
|
|
442
442
|
|
|
443
|
-
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${vl};cursor:pointer;font-family:${$};font-size:${E};font-weight:${M};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thinkness:${
|
|
444
|
-
:host{color:LinkText}`));function Lu(){return f`<template tabindex="0" @click="${(o,t)=>o.clickHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot></slot></template>`}const Hu=Lu(),Ru=Li.compose({name:`${g.prefix}-link`,template:Hu,styles:Du});Ru.define(g.registry);class ju extends
|
|
443
|
+
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${vl};cursor:pointer;font-family:${$};font-size:${E};font-weight:${M};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thinkness:${H};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${yl}}:host(:active){color:${kl}}:host(${z}:hover){color:${wl}}:host(${z}:active){color:${Cl}}}:host(${z}){color:${xl}}: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(Q(l`
|
|
444
|
+
:host{color:LinkText}`));function Lu(){return f`<template tabindex="0" @click="${(o,t)=>o.clickHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot></slot></template>`}const Hu=Lu(),Ru=Li.compose({name:`${g.prefix}-link`,template:Hu,styles:Du});Ru.define(g.registry);class ju extends se{}const qu=_i({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
|
-
`)}),Uu=ju.compose({name:`${g.prefix}-menu-button`,template:qu,styles:Ts});Uu.define(g.registry);const J={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};J.menuitem+"",J.menuitemcheckbox+"",J.menuitemradio+"";var Gu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,
|
|
448
|
+
`)}),Uu=ju.compose({name:`${g.prefix}-menu-button`,template:qu,styles:Ts});Uu.define(g.registry);const J={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};J.menuitem+"",J.menuitemcheckbox+"",J.menuitemradio+"";var Gu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,eo=(o,t,e,s)=>{for(var i=s>1?void 0:s?Wu(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&&Gu(t,e,i),i};const Xu=()=>o=>o.nodeType===1&&o.elementInternals.role==="menu";class At extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=J.menuitem,this.checked=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case ss:case ni:return this.invoke(),!1;case ts:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case Jo: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 J.menuitemcheckbox:this.checked=!this.checked;break;case J.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case J.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??J.menuitem}checkedChanged(t,e){const s=this.role!==J.menuitem;this.elementInternals.ariaChecked=s?`${!!e}`:null,c(this.elementInternals,"checked",s?e:!1),this.$fastController.isConnected&&this.$emit("change",e,{bubbles:!0})}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??J.menuitem,this.elementInternals.ariaChecked=this.role!==J.menuitem?`${!!this.checked}`:null}}eo([a({mode:"boolean"})],At.prototype,"disabled",2),eo([a],At.prototype,"role",2),eo([a({mode:"boolean"})],At.prototype,"checked",2),eo([a({mode:"boolean"})],At.prototype,"hidden",2),eo([v],At.prototype,"slottedSubmenu",2),eo([v],At.prototype,"submenu",2),Xt(At,Gt);const Os=l.partial`:is([state--submenu], :state(submenu))`,Ku=l`
|
|
449
449
|
${S("grid")}
|
|
450
450
|
|
|
451
|
-
:host{--indent:0;align-items:center;background:${O};border-radius:${P};color:${Vt};contain:layout;cursor:pointer;flex-shrink:0;font:${M} ${E} / ${D} ${$};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${fi};color:${hs}}:host(:active){background-color:${an};color:${us}}:host(:active) ::slotted([slot='start']){color:${Il}}:host(${F}){background-color:${
|
|
452
|
-
:host(${F}),:host(${F}) ::slotted([slot='start']),:host(${F}) ::slotted([slot='end']){color:GrayText}`)),Yu=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>'),Qu=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 Zu(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:${O};border-radius:${P};color:${Vt};contain:layout;cursor:pointer;flex-shrink:0;font:${M} ${E} / ${D} ${$};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${fi};color:${hs}}:host(:active){background-color:${an};color:${us}}:host(:active) ::slotted([slot='start']){color:${Il}}:host(${F}){background-color:${je};color:${B}}:host(${F}) ::slotted([slot='start']),:host(${F}) ::slotted([slot='end']){color:${B}}:host(:focus-visible){border-radius:${P};outline:2px solid ${Dt}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${y})) .indicator,:host(:not(${y})) ::slotted([slot='indicator']),:host(:not(${Os})) .submenu-glyph,:host(:not(${Os})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${ut};font:${M} ${q} / ${it} ${$};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${Os}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${Os}){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(Q(l`
|
|
452
|
+
:host(${F}),:host(${F}) ::slotted([slot='start']),:host(${F}) ::slotted([slot='end']){color:GrayText}`)),Yu=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>'),Qu=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 Zu(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">${yt(o.indicator)}</slot>${Wt(o)}<div part="content" class="content"><slot></slot></div>${le(o)}<slot name="submenu-glyph">${yt(o.submenuGlyph)}</slot><slot name="submenu" ${ot({property:"slottedSubmenu",filter:Xu()})}></slot></template>`}const Ju=Zu({indicator:Yu,submenuGlyph:Qu}),tp=At.compose({name:`${g.prefix}-menu-item`,template:Ju,styles:Ku});tp.define(g.registry);var ep=Object.defineProperty,op=Object.getOwnPropertyDescriptor,sp=(o,t,e,s)=>{for(var i=s>1?void 0:s?op(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&ep(t,e,i),i};const Hi=class Ki extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&Zr(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],u=n.getAttribute("role");if(u===J.menuitemradio&&(n.checked=!1),u==="separator")break}const i=this.menuItems.length-1;for(let r=s+1;r<=i;++r){const n=this.menuItems[r],u=n.getAttribute("role");if(u===J.menuitemradio&&(n.checked=!1),u==="separator")break}}},this.isMenuItemElement=t=>t instanceof At||Zr(t)&&t.getAttribute("role")in Ki.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(),Ot.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 Zo:this.setFocus(this.focusIndex+1,1);return;case es:this.setFocus(this.focusIndex-1,-1);return;case os:this.setFocus(this.menuItems.length-1,-1);return;case is: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!==J.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,u)=>{n.setAttribute("tabindex",u===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const i=this.menuItems?.filter(this.isMenuItemElement),r=i?.reduce((n,u)=>{const p=Ki.elementIndent(u);return Math.max(n,p)},0);i?.forEach(n=>{n instanceof At&&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}}};Hi.focusableElementRoles=J,sp([v],Hi.prototype,"items",2);let ip=Hi;const rp=l`
|
|
453
453
|
${S("flex")}
|
|
454
454
|
|
|
455
|
-
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${O};border:1px solid ${pt};border-radius:${P};box-shadow:${Vn};padding:4px;row-gap:2px}`;function np(){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 ${ot("items")}></slot></template>`}const ap=np(),lp=ip.compose({name:`${g.prefix}-menu-list`,template:ap,styles:rp});lp.define(g.registry);var cp=Object.defineProperty,dp=Object.getOwnPropertyDescriptor,
|
|
455
|
+
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${O};border:1px solid ${pt};border-radius:${P};box-shadow:${Vn};padding:4px;row-gap:2px}`;function np(){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 ${ot("items")}></slot></template>`}const ap=np(),lp=ip.compose({name:`${g.prefix}-menu-list`,template:ap,styles:rp});lp.define(g.registry);var cp=Object.defineProperty,dp=Object.getOwnPropertyDescriptor,fe=(o,t,e,s)=>{for(var i=s>1?void 0:s?dp(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&&cp(t,e,i),i};class ie extends w{constructor(){super(...arguments),this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=t=>{t?.target instanceof At&&(t.target.getAttribute("role")===J.menuitemcheckbox||t.target.getAttribute("role")===J.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.type==="toggle"&&t.newState){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 ni:case ss: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(),Ot.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(){Ot.enqueue(()=>{this._menuList.focus()})}focusTrigger(){Ot.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 Za:t.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case Ja:if(this._open&&this.closeMenu(),t.shiftKey&&t.composedPath()[0]!==this._trigger&&t.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(t.shiftKey)return!0;default:return!0}}}fe([a({attribute:"open-on-hover",mode:"boolean"})],ie.prototype,"openOnHover",2),fe([a({attribute:"open-on-context",mode:"boolean"})],ie.prototype,"openOnContext",2),fe([a({attribute:"close-on-scroll",mode:"boolean"})],ie.prototype,"closeOnScroll",2),fe([a({attribute:"persist-on-item-click",mode:"boolean"})],ie.prototype,"persistOnItemClick",2),fe([a({mode:"boolean"})],ie.prototype,"split",2),fe([v],ie.prototype,"slottedMenuList",2),fe([v],ie.prototype,"slottedTriggers",2),fe([v],ie.prototype,"primaryAction",2);const hp=l`
|
|
456
456
|
${S("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 up(){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" ${ot({property:"slottedTriggers",filter:
|
|
459
|
-
:host{display:grid;box-sizing:border-box;font-family:${$};font-size:${
|
|
460
|
-
'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${
|
|
458
|
+
::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){inset-area:block-end span-inline-end;margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-try-options:flip-block;position:absolute;z-index:1}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${H} solid ${ee};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${H} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function up(){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="primary-action" ${$t("primaryAction")}></slot><slot name="trigger" ${ot({property:"slottedTriggers",filter:_e()})}></slot><slot ${ot({property:"slottedMenuList",filter:_e()})}></slot></template>`}const pp=up(),gp=ie.compose({name:`${g.prefix}-menu`,template:pp,styles:hp});gp.define(g.registry);var bp=Object.defineProperty,fp=Object.getOwnPropertyDescriptor,Ri=(o,t,e,s)=>{for(var i=s>1?void 0:s?fp(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&&bp(t,e,i),i};class Ms extends w{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)}}Ri([a],Ms.prototype,"shape",2),Ri([a],Ms.prototype,"layout",2),Ri([a],Ms.prototype,"intent",2);const mp=l`
|
|
459
|
+
:host{display:grid;box-sizing:border-box;font-family:${$};font-size:${q};line-height:${it};width:100%;background:${bs};border:1px solid ${ee};padding-inline:${ft};border-radius:${P};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host(${po}){border-radius:0}:host(${xe}){background-color:${yn};border-color:${Rl}}:host(${we}){background-color:${xn};border-color:${Cn}}:host(${ui}){background-color:${bn};border-color:${mn}}:host(${fo}){grid-template-areas:'icon body dismiss'
|
|
460
|
+
'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${Xe};padding-inline:${ft}}.content{grid-area:body;max-width:520px;padding-block:${Xe};padding-inline:0}:host(${fo}) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${ut};margin-inline-end:${oe}}:host(${fo}) ::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:${oe};gap:${oe}}:host(${fo}) .actions{margin-block-start:${Xe};margin-inline-end:0}:host(${fo}) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${nt}}::slotted(*){font-size:inherit}`;function $p(){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 vp=$p(),yp=Ms.compose({name:`${g.prefix}-message-bar`,template:vp,styles:mp,shadowOptions:{mode:g.shadowRootMode}});yp.define(g.registry);var kp=Object.defineProperty,xp=Object.getOwnPropertyDescriptor,Te=(o,t,e,s)=>{for(var i=s>1?void 0:s?xp(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&&kp(t,e,i),i};class oo extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}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)}}Te([a({attribute:"validation-state"})],oo.prototype,"validationState",2),Te([a({converter:st})],oo.prototype,"value",2),Te([a({converter:st})],oo.prototype,"min",2),Te([a({converter:st})],oo.prototype,"max",2),Te([ba],oo.prototype,"percentComplete",1);class ji extends oo{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)}}Te([a],ji.prototype,"thickness",2),Te([a],ji.prototype,"shape",2);const wp=l`
|
|
461
461
|
${S("block")}
|
|
462
462
|
|
|
463
|
-
:host{width:100%;height:2px;overflow-x:hidden;background-color:${fs};border-radius:${P};contain:content}:host(${C}){height:4px}:host(${po}){border-radius:${Si}}.indicator{background-color:${
|
|
463
|
+
:host{width:100%;height:2px;overflow-x:hidden;background-color:${fs};border-radius:${P};contain:content}:host(${C}){height:4px}:host(${po}){border-radius:${Si}}.indicator{background-color:${qe};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,${fs} 0%,${wt} 50%,${fs} 100%
|
|
465
|
-
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${ui}) .indicator{background-color:${fn}}:host(${
|
|
466
|
-
:host{background-color:CanvasText}.indicator,:host(:is(${
|
|
465
|
+
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${ui}) .indicator{background-color:${fn}}:host(${we}) .indicator{background-color:${wn}}:host(${xe}) .indicator{background-color:${kn}}@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(Q(l`
|
|
466
|
+
:host{background-color:CanvasText}.indicator,:host(:is(${xe},${we},${ui})) .indicator{background-color:Highlight}`));function Cp(){return f`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const Ip=Cp(),Sp=ji.compose({name:`${g.prefix}-progress-bar`,template:Ip,styles:wp});Sp.define(g.registry);class oa extends It{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 sa(o){const t=o.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}const ia=vt;var zp=Object.defineProperty,Tp=Object.getOwnPropertyDescriptor,Be=(o,t,e,s)=>{for(var i=s>1?void 0:s?Tp(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&&zp(t,e,i),i};class re extends w{constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??ia.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??ia.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=Qa(this.enabledRadios,n=>n.initialChecked);e.forEach((n,u)=>{n.ariaPosInSet=`${u+1}`,n.ariaSetSize=`${s}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=u===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),Ot.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=ci(this)==="rtl",s=this.enabledRadios.findIndex(n=>n===sa(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(sa(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){Ot.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(e=>e instanceof oa)})}}re.formAssociated=!0,Be([v],re.prototype,"checkedIndex",2),Be([a({attribute:"disabled",mode:"boolean"})],re.prototype,"disabled",2),Be([a({attribute:"value",mode:"fromView"})],re.prototype,"initialValue",2),Be([a],re.prototype,"name",2),Be([a],re.prototype,"orientation",2),Be([v],re.prototype,"radios",2),Be([a({mode:"boolean"})],re.prototype,"required",2);const Bp=l`
|
|
467
467
|
${S("flex")}
|
|
468
468
|
|
|
469
|
-
:host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Cs}}:host(${F}),:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${ut}}::slotted(:hover){color:${Vt}}::slotted(:active){color:${A}}::slotted(${F}){color:${B}}::slotted(${
|
|
469
|
+
:host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Cs}}:host(${F}),:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${ut}}::slotted(:hover){color:${Vt}}::slotted(:active){color:${A}}::slotted(${F}){color:${B}}::slotted(${y}){color:${A}}`;function Pp(){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 Ap=Pp(),Ep=re.compose({name:`${g.prefix}-radio-group`,template:Ap,styles:Bp});Ep.define(g.registry);const Np=l`
|
|
470
470
|
${S("inline-flex")}
|
|
471
471
|
|
|
472
|
-
:host{--size:16px;aspect-ratio:1;background-color:${O};border:${
|
|
473
|
-
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${F}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${
|
|
472
|
+
:host{--size:16px;aspect-ratio:1;background-color:${O};border:${H} solid ${he};border-radius:${gt};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${gt};color:${He};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:${Bt} solid ${pt};border-radius:${P}}:host(:not([slot='input']):focus-visible)::after{border-color:${Dt}}:host(:hover){border-color:${Ue}}:host(${y}){border-color:${ko}}:host(${y}) .checked-indicator{background-color:${qe}}:host(${y}:hover) .checked-indicator{background-color:${mo}}:host(:active){border-color:${Ge}}:host(${y}:active) .checked-indicator{background-color:${$o}}:host(:focus-visible){outline:none}:host(${F}){background-color:${je};border-color:${Tt}}:host(${y}${F}) .checked-indicator{background-color:${Tt}}`.withBehaviors(Q(l`
|
|
473
|
+
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${F}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${y}) .checked-indicator{background-color:FieldText}:host(${y}:not(${F}):hover) .checked-indicator{background-color:Highlight}:host(${F}){border-color:GrayText;color:GrayText}:host(${F}${y}) .checked-indicator{background-color:GrayText}`)),Fp=f.partial(`
|
|
474
474
|
<span part="checked-indicator" class="checked-indicator" role="presentation"></span>
|
|
475
|
-
`);function Op(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 Op(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">${yt(o.checkedIndicator)}</slot></template>`}const Mp=Op({checkedIndicator:Fp}),_p=oa.compose({name:`${g.prefix}-radio`,template:Mp,styles:Np});_p.define(g.registry);var Vp=Object.defineProperty,Dp=Object.getOwnPropertyDescriptor,ne=(o,t,e,s)=>{for(var i=s>1?void 0:s?Dp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Vp(t,e,i),i};class Pe extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.intlNumberFormatter=new Intl.NumberFormat,this.elementInternals.role="img"}slottedIconChanged(){this.$fastController.isConnected&&(this.customIcon=this.slottedIcon[0]?.outerHTML)}get formattedCount(){return this.count?this.intlNumberFormatter.format(this.count):""}getSelectedValue(){return Math.round((this.value??0)*2)/2}getMaxIcons(){return(this.max??5)*2}generateIcons(){let t="",e;this.customIcon&&(e=/<svg[^>]*>([\s\S]*?)<\/svg>/.exec(this.customIcon)?.[1]??"");const s=this.getSelectedValue();for(let i=0;i<this.getMaxIcons();i++){const r=(i+1)/2;t+=`<svg aria-hidden="true" viewBox="${this.iconViewBox??"0 0 20 20"}" ${r===s?"selected":""}>${e??'<use href="#star"></use>'}</svg>`}return t}}ne([a({converter:st})],Pe.prototype,"count",2),ne([a({attribute:"icon-view-box"})],Pe.prototype,"iconViewBox",2),ne([a({converter:st})],Pe.prototype,"max",2),ne([a({converter:st})],Pe.prototype,"value",2),ne([v],Pe.prototype,"slottedIcon",2),ne([v],Pe.prototype,"customIcon",2);class _s extends Pe{constructor(){super(...arguments),this.compact=!1}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)}getSelectedValue(){return Math.round((this.compact?1:this.value??0)*2)/2}getMaxIcons(){return(this.compact?1:this.max??5)*2}}ne([a],_s.prototype,"color",2),ne([a],_s.prototype,"size",2),ne([a({mode:"boolean"})],_s.prototype,"compact",2);const Lp=l`
|
|
476
476
|
${S("inline-flex")}
|
|
477
477
|
|
|
478
|
-
:host{--icon-size:16px;--icon-color-filled:${Ql};--icon-color-empty:${Sn};align-items:center;color:${A};font-family:${$};font-size:${
|
|
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}`)),Hp=f`<svg xmlns="http://www.w3.org/2000/svg" style="display: none"><symbol id="star"><path d="M9.10433 2.89874C9.47114 2.15549 10.531 2.1555 10.8978 2.89874L12.8282 6.81024L17.1448 7.43748C17.9651 7.55666 18.2926 8.56464 17.699 9.14317L14.5755 12.1878L15.3129 16.487C15.453 17.3039 14.5956 17.9269 13.8619 17.5412L10.0011 15.5114L6.14018 17.5412C5.40655 17.9269 4.54913 17.3039 4.68924 16.487L5.4266 12.1878L2.30308 9.14317C1.70956 8.56463 2.03708 7.55666 2.8573 7.43748L7.17389 6.81024L9.10433 2.89874Z" /></symbol></svg>`;function Rp(){return f` ${o=>f`${
|
|
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=ai(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;--icon-color-filled:${Ql};--icon-color-empty:${Sn};align-items:center;color:${A};font-family:${$};font-size:${q};line-height:${it};contain:layout style;user-select:none}:host(${T}){--icon-size:12px}:host(${C}){--icon-size:20px;font-size:${E};line-height:${D}}::slotted([slot='icon']){display:none}svg{width:var(--icon-size);height:var(--icon-size);fill:var(--icon-color-filled);margin-inline-end:${dt}}svg:nth-child(odd){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host(${cs}) svg{--icon-color-filled:${A}}:host(${Jt}) svg{--icon-color-filled:${ki}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:var(--icon-color-empty)}:host(${cs}:is([value^='-'],[value='0'])) svg,:host(${cs}:not([value])) svg,:host(${cs}) svg[selected] ~ svg{--icon-color-empty:${mi}}:host(${Jt}:is([value^='-'],[value='0'])) svg,:host(${Jt}:not([value])) svg,:host(${Jt}) svg[selected] ~ svg{--icon-color-empty:${xi}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${Ht};font-weight:${L}}:host(${T}) .value-label,:host(${T}) ::slotted([slot='value']){margin-inline-start:${dt}}:host(${C}) .value-label,:host(${C}) ::slotted([slot='value']){margin-inline-start:${xt}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${Ht}}:host(${T}) .count-label::before,:host(${T}) ::slotted([slot='count'])::before{margin-inline:${dt}}:host(${C}) .count-label::before,:host(${C}) ::slotted([slot='count'])::before{margin-inline:${xt}}`.withBehaviors(Q(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}`)),Hp=f`<svg xmlns="http://www.w3.org/2000/svg" style="display: none"><symbol id="star"><path d="M9.10433 2.89874C9.47114 2.15549 10.531 2.1555 10.8978 2.89874L12.8282 6.81024L17.1448 7.43748C17.9651 7.55666 18.2926 8.56464 17.699 9.14317L14.5755 12.1878L15.3129 16.487C15.453 17.3039 14.5956 17.9269 13.8619 17.5412L10.0011 15.5114L6.14018 17.5412C5.40655 17.9269 4.54913 17.3039 4.68924 16.487L5.4266 12.1878L2.30308 9.14317C1.70956 8.56463 2.03708 7.55666 2.8573 7.43748L7.17389 6.81024L9.10433 2.89874Z" /></symbol></svg>`;function Rp(){return f` ${o=>f`${yt(o.generateIcons())}`}<slot name="icon" ${ot({property:"slottedIcon",filter:_e("svg")})}>${Hp}</slot><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 jp=Rp(),qp=_s.compose({name:`${g.prefix}-rating-display`,template:jp,styles:Lp});qp.define(g.registry);const Up=vt,Gp={singleValue:"single-value"};function ra(o,t,e,s){let i=ai(0,1,(o-t)/(e-t));return s===zt.rtl&&(i=1-i),i}var Wp=Object.defineProperty,Xp=Object.getOwnPropertyDescriptor,tt=(o,t,e,s)=>{for(var i=s>1?void 0:s?Xp(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&&Wp(t,e,i),i};class U extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=zt.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=Gp.singleValue,this.keypressHandler=t=>{if(!this.disabled)switch(t.key){case is:t.preventDefault(),this.value=this.direction!==zt.rtl&&this.orientation!==vt.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case os:t.preventDefault(),this.value=this.direction!==zt.rtl&&this.orientation!==vt.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case ts:case es:t.shiftKey||(t.preventDefault(),this.increment());break;case Jo:case Zo: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===vt.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===vt.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??Up.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=ai(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??vt.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=ci(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!==zt.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!==zt.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-ra(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,t))*100,i=`calc(100% - ${s}%)`,r=this.orientation!==vt.vertical&&t===zt.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=ra(t,this.orientation===vt.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===vt.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)}}U.formAssociated=!0,tt([a],U.prototype,"size",2),tt([a({attribute:"value",mode:"fromView"})],U.prototype,"initialValue",2),tt([v],U.prototype,"direction",2),tt([v],U.prototype,"isDragging",2),tt([v],U.prototype,"position",2),tt([v],U.prototype,"trackWidth",2),tt([v],U.prototype,"trackMinWidth",2),tt([v],U.prototype,"trackHeight",2),tt([v],U.prototype,"trackLeft",2),tt([v],U.prototype,"trackMinHeight",2),tt([v],U.prototype,"valueTextFormatter",2),tt([a({mode:"boolean"})],U.prototype,"disabled",2),tt([a({converter:li})],U.prototype,"min",2),tt([a({converter:li})],U.prototype,"max",2),tt([a({converter:li})],U.prototype,"step",2),tt([a],U.prototype,"orientation",2),tt([a],U.prototype,"mode",2);const Kp=l`
|
|
481
481
|
${S("inline-grid")}
|
|
482
482
|
|
|
483
|
-
:host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${
|
|
483
|
+
:host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${qe};--track-color:${he};--slider-direction:90deg;--border-radius:${P};--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(:hover){--rail-color:${mo}}:host(:active){--rail-color:${$o}}:host(:disabled){--rail-color:${B};--track-color:${je}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host(${T}){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Lt}}:host(${I}){--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 ${Dt};outline:1px solid ${wi}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
|
|
484
484
|
var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100%
|
|
485
485
|
);border-radius:var(--border-radius);content:'';grid-row:1 / -1;grid-column:1 / -1}.track{position:relative;background-color:var(--track-color);grid-row:2 / 2;grid-column:2 / 2;forced-color-adjust:none;overflow:hidden}:host(${I})::after,:host(${I}) .track{height:100%;width:var(--track-size)}:host(${I}) .track{top:var(--track-overhang);bottom:var(--track-overhang)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(${I}) .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(
|
|
486
486
|
var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${O} calc(var(--step-rate) - 1px),${O} var(--step-rate)
|
|
487
|
-
)}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host(${I}) .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:${gt};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${O} inset;border:calc(var(--thumb-size) * 0.05) solid ${
|
|
488
|
-
.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 Yp(o={}){return f`<template tabindex="${t=>t.disabled?null:0}" @pointerdown="${(t,e)=>t.handlePointerDown(e.event)}"><div ${
|
|
487
|
+
)}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host(${I}) .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:${gt};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${O} inset;border:calc(var(--thumb-size) * 0.05) solid ${ee};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}`.withBehaviors(Q(l`
|
|
488
|
+
.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 Yp(o={}){return f`<template tabindex="${t=>t.disabled?null:0}" @pointerdown="${(t,e)=>t.handlePointerDown(e.event)}"><div ${$t("track")} part="track-container" class="track" style="${t=>t.position}"></div><div ${$t("thumb")} part="thumb-container" class="thumb-container" style="${t=>t.position}" @pointerdown="${(t,e)=>t.handleThumbPointerDown(e.event)}"><slot name="thumb">${yt(o.thumb)}</slot></div></template>`}const Qp=Yp({thumb:'<div class="thumb"></div>'}),Zp=U.compose({name:`${g.prefix}-slider`,template:Qp,styles:Kp});Zp.define(g.registry);var Jp=Object.defineProperty,tg=Object.getOwnPropertyDescriptor,na=(o,t,e,s)=>{for(var i=s>1?void 0:s?tg(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&&Jp(t,e,i),i};class eg extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}class qi extends eg{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)}}na([a],qi.prototype,"size",2),na([a],qi.prototype,"appearance",2);const og=l`
|
|
489
489
|
${S("inline-flex")}
|
|
490
490
|
|
|
491
491
|
:host{--duration:1.5s;--indicatorSize:${rt};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host(${go}){--indicatorSize:${Bt};--size:20px}:host(${bo}){--indicatorSize:${Bt};--size:24px}:host(${T}){--indicatorSize:${Bt};--size:28px}:host(${C}){--indicatorSize:${rt};--size:36px}:host(${rs}){--indicatorSize:${rt};--size:40px}:host(${cl}){--indicatorSize:${Ti};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${Ss}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${xi};border-radius:50%}:host(${Jr}) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;inset-inline-end:50%}.end{overflow:hidden;inset-inline-start:50%}.indicator{color:${un};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-inline-end-color:currentcolor}:host(${Jr}) .indicator{color:${Vl}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}`.withBehaviors(Q(l`
|
|
492
|
-
.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-inline-end-color:Highlight}`)),sg=f`<slot name="indicator"><div class="background"></div><div class="progress"><div class="spinner"><div class="start"><div class="indicator"></div></div><div class="end"><div class="indicator"></div></div></div></div></slot>`,ig=qi.compose({name:`${g.prefix}-spinner`,template:sg,styles:og});ig.define(g.registry);class rg extends It{constructor(){super(),this.elementInternals.role="switch"}}function ng(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">${
|
|
492
|
+
.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-inline-end-color:Highlight}`)),sg=f`<slot name="indicator"><div class="background"></div><div class="progress"><div class="spinner"><div class="start"><div class="indicator"></div></div><div class="end"><div class="indicator"></div></div></div></div></slot>`,ig=qi.compose({name:`${g.prefix}-spinner`,template:sg,styles:og});ig.define(g.registry);class rg extends It{constructor(){super(),this.elementInternals.role="switch"}}function ng(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">${yt(o.switch)}</slot></template>`}const ag=ng({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),lg=l`
|
|
493
493
|
${S("inline-flex")}
|
|
494
494
|
|
|
495
|
-
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${dt};width:40px;height:20px;background-color:${wt};border:1px solid ${
|
|
496
|
-
:host{border-color:InactiveBorder}:host(${
|
|
495
|
+
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${dt};width:40px;height:20px;background-color:${wt};border:1px solid ${he};border-radius:${gt};cursor:pointer}:host(:hover){background:none;border-color:${Ue}}:host(:active){border-color:${Ge}}:host(:disabled),:host([readonly]){border:1px solid ${Tt};background-color:none;pointer:default}:host(${y}){background:${qe};border-color:${qe}}:host(${y}:hover){background:${mo};border-color:${mo}}:host(${y}:active){background:${$o};border-color:${$o}}:host(${y}:disabled){background:${je};border-color:${Tt}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${ut};transition-duration:${Ai};transition-timing-function:${Ss};transition-property:margin-inline-start}:host(${y}) .checked-indicator{background-color:${He};margin-inline-start:calc(100% - 14px)}:host(${y}:hover) .checked-indicator{background:${Sl}}:host(${y}:active) .checked-indicator{background:${zl}}:host(:hover) .checked-indicator{background-color:${ml}}:host(:active) .checked-indicator{background-color:${$l}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${B}}:host(${y}:disabled) .checked-indicator{background:${B}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${pt};outline:${Bt} solid ${pt};box-shadow:${ws},0 0 0 2px ${Dt}}`.withBehaviors(Q(l`
|
|
496
|
+
:host{border-color:InactiveBorder}:host(${y}),:host(${y}:active),:host(${y}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${y}) .checked-indicator,:host(${y}:hover) .checked-indicator,:host(${y}:active) .checked-indicator{background-color:ButtonFace}`)),cg=rg.compose({name:`${g.prefix}-switch`,template:ag,styles:lg});cg.define(g.registry);class dg extends w{}function hg(){return f`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const ug=hg(),pg=l`
|
|
497
497
|
${S("block")}
|
|
498
498
|
|
|
499
499
|
:host{box-sizing:border-box;padding:${ft} ${bt}}`,gg=dg.compose({name:`${g.prefix}-tab-panel`,template:ug,styles:pg});gg.define(g.registry);var bg=Object.defineProperty,fg=Object.getOwnPropertyDescriptor,mg=(o,t,e,s)=>{for(var i=s>1?void 0:s?fg(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&&bg(t,e,i),i};class Ui extends w{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=l`
|
|
500
|
-
:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}mg([a({mode:"boolean"})],Ui.prototype,"disabled",2),Xt(Ui,Gt);function $g(o={}){return f`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">${Wt(o)}<span class="tab-content"><slot></slot></span>${
|
|
500
|
+
:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}mg([a({mode:"boolean"})],Ui.prototype,"disabled",2),Xt(Ui,Gt);function $g(o={}){return f`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">${Wt(o)}<span class="tab-content"><slot></slot></span>${le(o)}</template>`}const vg=$g({}),yg=l`
|
|
501
501
|
${S("inline-flex")}
|
|
502
502
|
|
|
503
503
|
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${D};font-family:${$};font-size:${E};color:${Vt};fill:currentcolor;grid-row:1;padding:${ft} ${bt};border-radius:${P}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${A};font-weight:${L}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${D};font-weight:${L}}:host([aria-selected='true'])::after{background-color:${ko};border-radius:${gt};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${vo};border-radius:${gt};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${B}}::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:${B};color:${B}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Lt};box-shadow:0 0 0 3px ${Dt};outline:1px solid ${wi}}`.withBehaviors(Q(l`
|
|
504
|
-
:host([aria-selected='true'])::after{background-color:Highlight}`)),kg=Ui.compose({name:`${g.prefix}-tab`,template:vg,styles:yg});kg.define(g.registry);const xg={subtle:"subtle",transparent:"transparent"},Vs
|
|
504
|
+
:host([aria-selected='true'])::after{background-color:Highlight}`)),kg=Ui.compose({name:`${g.prefix}-tab`,template:vg,styles:yg});kg.define(g.registry);const xg={subtle:"subtle",transparent:"transparent"},Vs=vt;var wg=Object.defineProperty,Cg=Object.getOwnPropertyDescriptor,Ae=(o,t,e,s)=>{for(var i=s>1?void 0:s?Cg(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&&wg(t,e,i),i};class Eo extends w{constructor(){super(...arguments),this.orientation=Vs.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 Jo:t.preventDefault(),this.adjustBackward(t);break;case ts:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case es:t.preventDefault(),this.adjustBackward(t);break;case Zo:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case is:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case os: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),u=this.tabIds[r],p=this.tabpanelIds[r];i.setAttribute("id",u),i.setAttribute("aria-selected",n?"true":"false"),i.setAttribute("aria-controls",p),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=i,this.activeid=u)}i.style[t]="",i.style[e]="",i.style[s]=`${r+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((t,e)=>{const s=this.tabIds[e],i=this.tabpanelIds[e];t.setAttribute("id",i),t.setAttribute("aria-labelledby",s),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${ao()}`)}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id")??`panel-${ao()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Vs.horizontal}adjust(t){const e=this.tabs.filter(n=>this.isFocusableElement(n)),s=e.indexOf(this.activetab),i=ai(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()}}Ae([a],Eo.prototype,"orientation",2),Ae([a],Eo.prototype,"activeid",2),Ae([v],Eo.prototype,"tabs",2),Ae([v],Eo.prototype,"tabpanels",2);class No extends Eo{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=xg.transparent}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===Vs.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===Vs.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`
|
|
505
505
|
:host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=l`
|
|
506
|
-
: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()}}
|
|
506
|
+
: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()}}Ae([a],No.prototype,"appearance",2),Ae([a({mode:"boolean"})],No.prototype,"disabled",2),Ae([a],No.prototype,"size",2),Xt(No,Gt);function Ig(o={}){return f` ${Wt(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${ot("tabs")}></slot></div>${le(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${ot("tabpanels")}></slot></div>`}const Sg=Ig({}),zg=l`
|
|
507
507
|
${S("grid")}
|
|
508
508
|
|
|
509
|
-
:host{box-sizing:border-box;font-family:${$};font-size:${E};line-height:${D};color:${Vt};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${B}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${B}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${B}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${B}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${P}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${B}}.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:${ms};color:${gi};fill:${rn}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${He};fill:${He};color:${A}}:host([size='small']) ::slotted(fluent-tab){font-size:${E};line-height:${D};padding:${de} ${kt}}:host([size='large']) ::slotted(fluent-tab){font-size:${ct};line-height:${yt};padding:${Cs} ${bt}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${Hn};transition-timing-function:${Ni}}:host ::slotted(fluent-tab)::after{height:${rt};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${rt};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${rt};border-radius:${gt};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${rt};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${rt};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:${rt}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${de};padding-bottom:${de}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${wo};padding-bottom:${wo}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${nt};padding-bottom:${nt}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${kt};left:${kt}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${bt};left:${bt}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${bt};left:${bt}}: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:${de};bottom:${de}}: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:${nt};bottom:${nt}}: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:${We};bottom:${We}}`,Tg=No.compose({name:`${g.prefix}-tabs`,template:Sg,styles:zg});Tg.define(g.registry);const Bg=o=>o.getAttribute("aria-disabled")==="true",Pg=o=>o.hasAttribute("hidden"),Ds=o=>!Bg(o)&&!Pg(o),Ag={subtle:"subtle",transparent:"transparent"},Fo=$t;var Eg=Object.defineProperty,Ng=Object.getOwnPropertyDescriptor,so=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ng(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&&Eg(t,e,i),i};class Oo extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=Fo.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=t=>{const e=t.currentTarget;e.nodeType===Node.ELEMENT_NODE&&Ds(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{const e=ci(this);switch(t.key){case Jo:if(!this.isHorizontal())return;t.preventDefault(),this.adjust(e==="ltr"?-1:1);break;case ts:if(!this.isHorizontal())return;t.preventDefault(),this.adjust(e==="ltr"?1:-1);break;case es:if(this.isHorizontal())return;t.preventDefault(),this.adjust(-1);break;case Zo:if(this.isHorizontal())return;t.preventDefault(),this.adjust(1);break;case is:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case os:t.preventDefault(),this.adjust(this.tabs.filter(s=>Ds(s)).length-this.activeTabIndex-1);break}}}disabledChanged(t,e){c(this.elementInternals,"disabled",e)}orientationChanged(t,e){this.elementInternals.ariaOrientation=e??Fo.horizontal,t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0),this.$fastController.isConnected&&this.setTabs()}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length>0&&(this.prevActiveTabIndex=this.tabs.findIndex(s=>s.id===t),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length>0&&(this.tabIds=this.getTabIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((t,e)=>{if(t.slot==="tab"){const s=this.activeTabIndex===e&&Ds(t),i=this.tabIds[e];t.setAttribute("id",i),t.setAttribute("aria-selected",s?"true":"false"),t.addEventListener("click",this.handleTabClick),t.addEventListener("keydown",this.handleTabKeyDown),t.setAttribute("tabindex",s&&!this.disabled?"0":"-1"),s&&(this.activetab=t,this.activeid=i),this.change()}})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${ao()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Fo.horizontal}adjust(t){const e=this.tabs.filter(n=>Ds(n)),s=e.indexOf(this.activetab),i=tl(0,e.length-1,s+t),r=this.tabs.indexOf(e[i]);r>-1&&this.activateTabByIndex(this.tabs,r)}activateTabByIndex(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.activeTabIndex=this.getActiveIndex()}}so([a({mode:"boolean"})],Oo.prototype,"disabled",2),so([a],Oo.prototype,"orientation",2),so([a],Oo.prototype,"activeid",2),so([y],Oo.prototype,"tabs",2);class Gi extends Oo{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=Ag.transparent}appearanceChanged(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)}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===Fo.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===Fo.horizontal?this.previousActiveTabData.width/t.getBoundingClientRect().width:this.previousActiveTabData.height/t.getBoundingClientRect().height}applyUpdatedCSSValues(t){this.calculateAnimationProperties(t),this.setAnimationVars()}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)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}so([a],Gi.prototype,"appearance",2),so([a],Gi.prototype,"size",2);const Fg=f`<template role="tablist"><slot name="tab" ${ot("tabs")}></slot></template>`,Og=l`
|
|
509
|
+
:host{box-sizing:border-box;font-family:${$};font-size:${E};line-height:${D};color:${Vt};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${B}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${B}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${B}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${B}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${P}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${B}}.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:${ms};color:${gi};fill:${rn}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${Re};fill:${Re};color:${A}}:host([size='small']) ::slotted(fluent-tab){font-size:${E};line-height:${D};padding:${ue} ${xt}}:host([size='large']) ::slotted(fluent-tab){font-size:${ct};line-height:${kt};padding:${Cs} ${bt}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${Hn};transition-timing-function:${Ni}}:host ::slotted(fluent-tab)::after{height:${rt};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${rt};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${rt};border-radius:${gt};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${rt};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${rt};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:${rt}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${ue};padding-bottom:${ue}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${wo};padding-bottom:${wo}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${nt};padding-bottom:${nt}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${xt};left:${xt}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${bt};left:${bt}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${bt};left:${bt}}: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:${ue};bottom:${ue}}: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:${nt};bottom:${nt}}: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:${Xe};bottom:${Xe}}`,Tg=No.compose({name:`${g.prefix}-tabs`,template:Sg,styles:zg});Tg.define(g.registry);const Bg=o=>o.getAttribute("aria-disabled")==="true",Pg=o=>o.hasAttribute("hidden"),Ds=o=>!Bg(o)&&!Pg(o),Ag={subtle:"subtle",transparent:"transparent"},Fo=vt;var Eg=Object.defineProperty,Ng=Object.getOwnPropertyDescriptor,so=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ng(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&&Eg(t,e,i),i};class Oo extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=Fo.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=t=>{const e=t.currentTarget;e.nodeType===Node.ELEMENT_NODE&&Ds(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{const e=ci(this);switch(t.key){case Jo:if(!this.isHorizontal())return;t.preventDefault(),this.adjust(e==="ltr"?-1:1);break;case ts:if(!this.isHorizontal())return;t.preventDefault(),this.adjust(e==="ltr"?1:-1);break;case es:if(this.isHorizontal())return;t.preventDefault(),this.adjust(-1);break;case Zo:if(this.isHorizontal())return;t.preventDefault(),this.adjust(1);break;case is:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case os:t.preventDefault(),this.adjust(this.tabs.filter(s=>Ds(s)).length-this.activeTabIndex-1);break}}}disabledChanged(t,e){c(this.elementInternals,"disabled",e)}orientationChanged(t,e){this.elementInternals.ariaOrientation=e??Fo.horizontal,t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0),this.$fastController.isConnected&&this.setTabs()}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length>0&&(this.prevActiveTabIndex=this.tabs.findIndex(s=>s.id===t),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length>0&&(this.tabIds=this.getTabIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((t,e)=>{if(t.slot==="tab"){const s=this.activeTabIndex===e&&Ds(t),i=this.tabIds[e];t.setAttribute("id",i),t.setAttribute("aria-selected",s?"true":"false"),t.addEventListener("click",this.handleTabClick),t.addEventListener("keydown",this.handleTabKeyDown),t.setAttribute("tabindex",s&&!this.disabled?"0":"-1"),s&&(this.activetab=t,this.activeid=i),this.change()}})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${ao()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Fo.horizontal}adjust(t){const e=this.tabs.filter(n=>Ds(n)),s=e.indexOf(this.activetab),i=tl(0,e.length-1,s+t),r=this.tabs.indexOf(e[i]);r>-1&&this.activateTabByIndex(this.tabs,r)}activateTabByIndex(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.activeTabIndex=this.getActiveIndex()}}so([a({mode:"boolean"})],Oo.prototype,"disabled",2),so([a],Oo.prototype,"orientation",2),so([a],Oo.prototype,"activeid",2),so([v],Oo.prototype,"tabs",2);class Gi extends Oo{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=Ag.transparent}appearanceChanged(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)}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===Fo.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===Fo.horizontal?this.previousActiveTabData.width/t.getBoundingClientRect().width:this.previousActiveTabData.height/t.getBoundingClientRect().height}applyUpdatedCSSValues(t){this.calculateAnimationProperties(t),this.setAnimationVars()}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)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}so([a],Gi.prototype,"appearance",2),so([a],Gi.prototype,"size",2);const Fg=f`<template role="tablist"><slot name="tab" ${ot("tabs")}></slot></template>`,Og=l`
|
|
510
510
|
${S("flex")}
|
|
511
511
|
|
|
512
|
-
:host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Vt};flex-direction:row}:host(${I}){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${Hn};transition-timing-function:${Ni}}:host ::slotted([slot='tab'])::after{height:${rt};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host(${I}) ::slotted([slot='tab'])::after{width:${rt};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${rt};border-radius:${gt};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${B}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${rt};margin-block-start:auto;transform-origin:left}:host(${I}) ::slotted([slot='tab'])::before,:host(${I}) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${rt};margin-inline-end:auto;transform-origin:top}:host(:where(${T},${C})) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host(${T}) ::slotted([slot='tab']){--tabPaddingBlock:${de};--tabPaddingInline:${kt};font-size:${E};line-height:${D}}:host(${C}) ::slotted([slot='tab']){--tabPaddingBlock:${Cs};--tabPaddingInline:${bt};font-size:${ct};line-height:${yt}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host ::slotted([slot='tab']){--tabIndicatorInsetInline:${bt}}:host(${T}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${kt}}:host(${C}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${bt}}:host(${I}) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host(${I}) ::slotted([slot='tab']){--tabPaddingBlock:${nt}}:host(${I}${T}) ::slotted([slot='tab']){--tabPaddingBlock:${wo}}:host(${I}${C}) ::slotted([slot='tab']){--tabPaddingBlock:${nt}}:host(${I}) ::slotted([slot='tab'])::after,:host(${I}) ::slotted([slot='tab'])::before,:host(${I}) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host(${I}){--tabIndicatorInsetBlock:${nt}}:host(${I}${T}){--tabIndicatorInsetBlock:${de}}:host(${I}${C}){--tabIndicatorInsetBlock:${We}}:host(${F}){cursor:not-allowed;color:${B}}:host(${F}) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${B}}:host(${F}) ::slotted([slot='tab']:after){background-color:${B}}:host(${F}) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${B}}:host(${F}) ::slotted([slot='tab']:hover):before{content:unset}:host(${z}) ::slotted([slot='tab']:hover){background-color:${ms};color:${gi};fill:${rn}}:host(${z}) ::slotted([slot='tab']:active){background-color:${He};fill:${He};color:${A}}`,Mg=Gi.compose({name:`${g.prefix}-tablist`,template:Fg,styles:Og});Mg.define(g.registry);const Mo={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},_g=[Mo.filledLighter,Mo.filledDarker],Ls={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var Vg=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,U=(o,t,e,s)=>{for(var i=s>1?void 0:s?Dg(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&&Vg(t,e,i),i};class K extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Ls.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const t=this.getContent();this.defaultValue=t,this.value=t}labelSlottedNodesChanged(){this.labelEl&&(this.labelEl.hidden=!this.labelSlottedNodes.length),this.labelSlottedNodes.forEach(t=>{t.disabled=this.disabled,t.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),c(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals.ariaReadOnly=`${!!this.readOnly}`}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(t=>t.required=this.required)}resizeChanged(t,e){t&&c(this.elementInternals,`resize-${t}`,!1),e&&c(this.elementInternals,`resize-${e}`,!0),c(this.elementInternals,"resize",[Ls.both,Ls.horizontal,Ls.vertical].includes(this.resize))}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(t){const e=this.controlEl??this.preConnectControlEl;e.defaultValue=t,this.controlEl&&!this.userInteracted&&(this.controlEl.value=t)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(t){const e=this.controlEl??this.preConnectControlEl;e.value=t,this.setFormValue(t),this.setValidity()}connectedCallback(){super.connectedCallback(),this.setDefaultValue(),this.maybeCreateAutoSizerEl(),this.bindEvents(),this.observeControlElAttrs()}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(t){this.setDisabledSideEffect(t),this.setValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(t){this.elementInternals.setValidity({customError:!!t},t?t.toString():void 0),this.reportValidity()}setValidity(t,e,s){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(t??this.controlEl.validity,e??this.controlEl.validationMessage,s??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}setDefaultValue(){this.defaultValue=this.innerHTML.trim()||this.preConnectControlEl.defaultValue||"",this.value=this.preConnectControlEl.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null}bindEvents(){this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}getContent(){return this.defaultSlottedNodes.map(t=>{switch(t.nodeType){case Node.ELEMENT_NODE:return t.outerHTML;case Node.TEXT_NODE:return t.textContent.trim();default:return""}}).join("")||""}observeControlElAttrs(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]})}setDisabledSideEffect(t){this.elementInternals.ariaDisabled=`${t}`,this.controlEl&&(this.controlEl.disabled=t),this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(e=>e.disabled=this.disabled)}toggleUserValidityState(){c(this.elementInternals,"user-invalid",!this.validity.valid),c(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.shadowRoot.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((t,e)=>{const s=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(s)!==""&&(this.autoSizerEl?.remove(),e.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}K.formAssociated=!0,U([y],K.prototype,"defaultSlottedNodes",2),U([y],K.prototype,"labelSlottedNodes",2),U([a],K.prototype,"autocomplete",2),U([a({attribute:"auto-resize",mode:"boolean"})],K.prototype,"autoResize",2),U([a({attribute:"dirname"})],K.prototype,"dirName",2),U([a({mode:"boolean"})],K.prototype,"disabled",2),U([a({attribute:"display-shadow",mode:"boolean"})],K.prototype,"displayShadow",2),U([a({attribute:"form"})],K.prototype,"initialForm",2),U([a({attribute:"maxlength",converter:st})],K.prototype,"maxLength",2),U([a({attribute:"minlength",converter:st})],K.prototype,"minLength",2),U([a],K.prototype,"name",2),U([a],K.prototype,"placeholder",2),U([a({attribute:"readonly",mode:"boolean"})],K.prototype,"readOnly",2),U([a({mode:"boolean"})],K.prototype,"required",2),U([a({mode:"fromView"})],K.prototype,"resize",2),U([a({mode:"boolean"})],K.prototype,"spellcheck",2);class Hs extends K{constructor(){super(...arguments),this.appearance=Mo.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(t=>{t.size=this.size})}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),!e||!Array.from(Object.values(Mo)).includes(e)?c(this.elementInternals,Mo.outline,!0):c(this.elementInternals,`${e}`,!0)}blockChanged(){c(this.elementInternals,"block",this.block)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}handleChange(t,e){switch(e){case"size":this.labelSlottedNodes.forEach(s=>{s.size=this.size});break;case"appearance":case"displayShadow":this.maybeDisplayShadow();break}}connectedCallback(){super.connectedCallback(),this.maybeDisplayShadow(),m.getNotifier(this).subscribe(this,"appearance"),m.getNotifier(this).subscribe(this,"displayShadow"),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"appearance"),m.getNotifier(this).unsubscribe(this,"displayShadow"),m.getNotifier(this).unsubscribe(this,"size")}maybeDisplayShadow(){c(this.elementInternals,"display-shadow",this.displayShadow&&_g.includes(this.appearance))}}U([a({mode:"fromView"})],Hs.prototype,"appearance",2),U([a({mode:"boolean"})],Hs.prototype,"block",2),U([a],Hs.prototype,"size",2);const Lg=l`
|
|
512
|
+
:host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Vt};flex-direction:row}:host(${I}){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${Hn};transition-timing-function:${Ni}}:host ::slotted([slot='tab'])::after{height:${rt};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host(${I}) ::slotted([slot='tab'])::after{width:${rt};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${rt};border-radius:${gt};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${B}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${rt};margin-block-start:auto;transform-origin:left}:host(${I}) ::slotted([slot='tab'])::before,:host(${I}) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${rt};margin-inline-end:auto;transform-origin:top}:host(:where(${T},${C})) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host(${T}) ::slotted([slot='tab']){--tabPaddingBlock:${ue};--tabPaddingInline:${xt};font-size:${E};line-height:${D}}:host(${C}) ::slotted([slot='tab']){--tabPaddingBlock:${Cs};--tabPaddingInline:${bt};font-size:${ct};line-height:${kt}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host ::slotted([slot='tab']){--tabIndicatorInsetInline:${bt}}:host(${T}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${xt}}:host(${C}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${bt}}:host(${I}) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host(${I}) ::slotted([slot='tab']){--tabPaddingBlock:${nt}}:host(${I}${T}) ::slotted([slot='tab']){--tabPaddingBlock:${wo}}:host(${I}${C}) ::slotted([slot='tab']){--tabPaddingBlock:${nt}}:host(${I}) ::slotted([slot='tab'])::after,:host(${I}) ::slotted([slot='tab'])::before,:host(${I}) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host(${I}){--tabIndicatorInsetBlock:${nt}}:host(${I}${T}){--tabIndicatorInsetBlock:${ue}}:host(${I}${C}){--tabIndicatorInsetBlock:${Xe}}:host(${F}){cursor:not-allowed;color:${B}}:host(${F}) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${B}}:host(${F}) ::slotted([slot='tab']:after){background-color:${B}}:host(${F}) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${B}}:host(${F}) ::slotted([slot='tab']:hover):before{content:unset}:host(${z}) ::slotted([slot='tab']:hover){background-color:${ms};color:${gi};fill:${rn}}:host(${z}) ::slotted([slot='tab']:active){background-color:${Re};fill:${Re};color:${A}}`,Mg=Gi.compose({name:`${g.prefix}-tablist`,template:Fg,styles:Og});Mg.define(g.registry);const Mo={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},_g=[Mo.filledLighter,Mo.filledDarker],Ls={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var Vg=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,G=(o,t,e,s)=>{for(var i=s>1?void 0:s?Dg(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&&Vg(t,e,i),i};class K extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Ls.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const t=this.getContent();this.defaultValue=t,this.value=t}labelSlottedNodesChanged(){this.labelEl&&(this.labelEl.hidden=!this.labelSlottedNodes.length),this.labelSlottedNodes.forEach(t=>{t.disabled=this.disabled,t.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),c(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals.ariaReadOnly=`${!!this.readOnly}`}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(t=>t.required=this.required)}resizeChanged(t,e){t&&c(this.elementInternals,`resize-${t}`,!1),e&&c(this.elementInternals,`resize-${e}`,!0),c(this.elementInternals,"resize",[Ls.both,Ls.horizontal,Ls.vertical].includes(this.resize))}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(t){const e=this.controlEl??this.preConnectControlEl;e.defaultValue=t,this.controlEl&&!this.userInteracted&&(this.controlEl.value=t)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(t){const e=this.controlEl??this.preConnectControlEl;e.value=t,this.setFormValue(t),this.setValidity()}connectedCallback(){super.connectedCallback(),this.setDefaultValue(),this.maybeCreateAutoSizerEl(),this.bindEvents(),this.observeControlElAttrs()}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(t){this.setDisabledSideEffect(t),this.setValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(t){this.elementInternals.setValidity({customError:!!t},t?t.toString():void 0),this.reportValidity()}setValidity(t,e,s){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(t??this.controlEl.validity,e??this.controlEl.validationMessage,s??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}setDefaultValue(){this.defaultValue=this.innerHTML.trim()||this.preConnectControlEl.defaultValue||"",this.value=this.preConnectControlEl.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null}bindEvents(){this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}getContent(){return this.defaultSlottedNodes.map(t=>{switch(t.nodeType){case Node.ELEMENT_NODE:return t.outerHTML;case Node.TEXT_NODE:return t.textContent.trim();default:return""}}).join("")||""}observeControlElAttrs(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]})}setDisabledSideEffect(t){this.elementInternals.ariaDisabled=`${t}`,this.controlEl&&(this.controlEl.disabled=t),this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(e=>e.disabled=this.disabled)}toggleUserValidityState(){c(this.elementInternals,"user-invalid",!this.validity.valid),c(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.shadowRoot.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((t,e)=>{const s=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(s)!==""&&(this.autoSizerEl?.remove(),e.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}K.formAssociated=!0,G([v],K.prototype,"defaultSlottedNodes",2),G([v],K.prototype,"labelSlottedNodes",2),G([a],K.prototype,"autocomplete",2),G([a({attribute:"auto-resize",mode:"boolean"})],K.prototype,"autoResize",2),G([a({attribute:"dirname"})],K.prototype,"dirName",2),G([a({mode:"boolean"})],K.prototype,"disabled",2),G([a({attribute:"display-shadow",mode:"boolean"})],K.prototype,"displayShadow",2),G([a({attribute:"form"})],K.prototype,"initialForm",2),G([a({attribute:"maxlength",converter:st})],K.prototype,"maxLength",2),G([a({attribute:"minlength",converter:st})],K.prototype,"minLength",2),G([a],K.prototype,"name",2),G([a],K.prototype,"placeholder",2),G([a({attribute:"readonly",mode:"boolean"})],K.prototype,"readOnly",2),G([a({mode:"boolean"})],K.prototype,"required",2),G([a({mode:"fromView"})],K.prototype,"resize",2),G([a({mode:"boolean"})],K.prototype,"spellcheck",2);class Hs extends K{constructor(){super(...arguments),this.appearance=Mo.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(t=>{t.size=this.size})}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),!e||!Array.from(Object.values(Mo)).includes(e)?c(this.elementInternals,Mo.outline,!0):c(this.elementInternals,`${e}`,!0)}blockChanged(){c(this.elementInternals,"block",this.block)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}handleChange(t,e){switch(e){case"size":this.labelSlottedNodes.forEach(s=>{s.size=this.size});break;case"appearance":case"displayShadow":this.maybeDisplayShadow();break}}connectedCallback(){super.connectedCallback(),this.maybeDisplayShadow(),m.getNotifier(this).subscribe(this,"appearance"),m.getNotifier(this).subscribe(this,"displayShadow"),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"appearance"),m.getNotifier(this).unsubscribe(this,"displayShadow"),m.getNotifier(this).unsubscribe(this,"size")}maybeDisplayShadow(){c(this.elementInternals,"display-shadow",this.displayShadow&&_g.includes(this.appearance))}}G([a({mode:"fromView"})],Hs.prototype,"appearance",2),G([a({mode:"boolean"})],Hs.prototype,"block",2),G([a],Hs.prototype,"size",2);const Lg=l`
|
|
513
513
|
${S("inline-block")}
|
|
514
514
|
|
|
515
|
-
:host{--font-size:${E};--line-height:${D};--padding-inline:${bt};--padding-block:${
|
|
516
|
-
:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}`));function Hg(){return f`<template><label ${
|
|
515
|
+
:host{--font-size:${E};--line-height:${D};--padding-inline:${bt};--padding-block:${ue};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${H};--control-padding-inline:${dt};--color:${A};--background-color:${O};--border-color:${ee};--border-block-end-color:${he};--placeholder-color:${sn};--focus-indicator-color:${ko};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${$};font-size:var(--font-size);font-weight:${M};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${vo};--border-block-end-color:${Ue}}:host(:active){--border-color:${$s};--border-block-end-color:${Ge}}:host(:focus-within){outline:none}:host(${pi}:not([hidden])){display:block}:host(${T}){--font-size:${q};--line-height:${it};--min-block-size:40px;--padding-block:${Bi};--padding-inline:${xt};--control-padding-inline:${dt}}:host(${C}){--font-size:${ct};--line-height:${kt};--min-block-size:64px;--padding-block:${nt};--padding-inline:${ft};--control-padding-inline:${xt}}:host(${ul}:not(:disabled)){--resize:both}:host(${dl}:not(:disabled)){--resize:horizontal}:host(${hl}:not(:disabled)){--resize:vertical}:host(${en}){--block-size:auto;--contain-size:inline-size}:host(${Le}){--background-color:${bs};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${De}){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${Le}${on}),:host(${De}${on}){--box-shadow:${zi}}:host(${pl}){--border-color:${Ci};--border-block-end-color:${Ci}}:host(:disabled){--color:${B};--background-color:${wt};--border-color:${Tt};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${B};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${P};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr / 1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host(${pi}) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${P} ${P};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${P});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${Ke};transition-duration:${Ln};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Ai};transition-delay:${Ye}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${Bi};padding-inline-end:${Ht}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1 / -1;grid-row:1 / -1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host(${en}) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${He};background-color:${ln}}`.withBehaviors(Q(l`
|
|
516
|
+
:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}`));function Hg(){return f`<template><label ${$t("labelEl")} for="control" part="label"><slot name="label" ${ot({property:"labelSlottedNodes",filter:di})}></slot></label><div class="root" part="root"><textarea ${$t("controlEl")} id="control" class="control" part="control" ?required="${o=>o.required}" ?disabled="${o=>o.disabled}" ?readonly="${o=>o.readOnly}" ?spellcheck="${o=>o.spellcheck}" autocomplete="${o=>o.autocomplete}" maxlength="${o=>o.maxLength}" minlength="${o=>o.minLength}" placeholder="${o=>o.placeholder}" @change="${o=>o.handleControlChange()}" @select="${o=>o.handleControlSelect()}" @input="${o=>o.handleControlInput()}"></textarea></div><div hidden><slot ${ot({property:"defaultSlottedNodes",filter:di})}></slot></div></template>`}const Rg=Hg(),jg=Hs.compose({name:`${g.prefix}-textarea`,template:Rg,styles:Lg,shadowOptions:{delegatesFocus:!0}});jg.define(g.registry);const qg={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Ug=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var Gg=Object.defineProperty,Wg=Object.getOwnPropertyDescriptor,_=(o,t,e,s)=>{for(var i=s>1?void 0:s?Wg(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&&Gg(t,e,i),i};class V extends w{constructor(){super(...arguments),this.type=qg.text,this._value=this.initialValue,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}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=>Ug.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)}}}V.formAssociated=!0,_([a],V.prototype,"autocomplete",2),_([a({mode:"boolean"})],V.prototype,"autofocus",2),_([v],V.prototype,"defaultSlottedNodes",2),_([a],V.prototype,"dirname",2),_([a({mode:"boolean"})],V.prototype,"disabled",2),_([a({attribute:"form"})],V.prototype,"formAttribute",2),_([a({attribute:"value",mode:"fromView"})],V.prototype,"initialValue",2),_([a],V.prototype,"list",2),_([a({converter:st})],V.prototype,"maxlength",2),_([a({converter:st})],V.prototype,"minlength",2),_([a({mode:"boolean"})],V.prototype,"multiple",2),_([a],V.prototype,"name",2),_([a],V.prototype,"pattern",2),_([a],V.prototype,"placeholder",2),_([a({attribute:"readonly",mode:"boolean"})],V.prototype,"readOnly",2),_([a({mode:"boolean"})],V.prototype,"required",2),_([a({converter:st})],V.prototype,"size",2),_([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],V.prototype,"spellcheck",2),_([a],V.prototype,"type",2),_([v],V.prototype,"controlLabel",2);class Rs extends V{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)}}_([a],Rs.prototype,"appearance",2),_([a({attribute:"control-size"})],Rs.prototype,"controlSize",2),Xt(Rs,Gt);const Xg=l`
|
|
517
517
|
${S("block")}
|
|
518
518
|
|
|
519
|
-
:host{font-family:${$};font-size:${E};font-weight:${M};line-height:${D};max-width:400px}.label{display:flex;color:${A};padding-bottom:${Bi};flex-shrink:0;padding-inline-end:${Ht}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${O};border:${
|
|
519
|
+
:host{font-family:${$};font-size:${E};font-weight:${M};line-height:${D};max-width:400px}.label{display:flex;color:${A};padding-bottom:${Bi};flex-shrink:0;padding-inline-end:${Ht}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${O};border:${H} solid ${ee};border-bottom-color:${he};border-radius:${P};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${dt};padding:0 ${bt};position:relative;width:100%}:has(.control:user-invalid){border-color:${Ci}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${P});border-radius:0 0 ${P} ${P};border-bottom:2px solid ${ko};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Ln};transition-delay:${Ke}}.control{width:100%;height:100%;box-sizing:border-box;color:${A};border-radius:${P};background:${wt};font-family:${$};font-weight:${M};font-size:${E};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${sn}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${ut};font-size:${We}}:host ::slotted([slot='start']){padding-right:${dt}}:host ::slotted([slot='end']){padding-left:${dt};gap:${Ht}}:host(:hover) .root{border-color:${vo};border-bottom-color:${Ue}}:host(:active) .root{border-color:${$s}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Ai};transition-delay:${Ye}}:host(:focus-within:active) .root:after{border-bottom-color:${pn}}:host(${W}:focus-within) .root{border:${H} solid ${ee}}:host(:focus-within) .control{color:${A}}:host([disabled]) .root{background:${wt};border:${H} solid ${Tt}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${B}}::selection{color:${He};background-color:${ln}}:host(${T}) .control{font-size:${q};font-weight:${M};line-height:${it}}:host(${T}) .root{height:24px;gap:${dt};padding:0 ${xt}}:host(${T}) ::slotted([slot='start']),:host(${T}) ::slotted([slot='end']){font-size:${ct}}:host(${C}) .control{font-size:${ct};font-weight:${M};line-height:${kt}}:host(${C}) .root{height:40px;gap:${oe};padding:0 ${ft}}:host(${C}) ::slotted([slot='start']),:host(${C}) ::slotted([slot='end']){font-size:${vs}}:host(${ho}) .root{background:${wt};border:0;border-radius:0;border-bottom:${H} solid ${he}}:host(${ho}:hover) .root{border-bottom-color:${Ue}}:host(${ho}:active) .root{border-bottom-color:${Ge}}:host(${ho}:focus-within) .root{border:0;border-bottom-color:${Ge}}:host(${ho}[disabled]) .root{border-bottom-color:${Tt}}:host(${De}) .root,:host(${Le}) .root{border:${H} solid ${pt};box-shadow:${zi}}:host(${De}) .root{background:${O}}:host(${Le}) .root{background:${bs}}:host(${De}:hover) .root,:host(${Le}:hover) .root{border-color:${gn}}:host(${De}:active) .root,:host(${Le}:active) .root{border-color:${gn};background:${bs}}`;function Kg(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" ${$t("controlLabel")}><slot ${ot({property:"defaultSlottedNodes",filter:di})}></slot></label><div class="root" part="root">${Wt(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}" ${$t("control")} />${le(o)}</div></template>`}const Yg=Kg(),Qg=Rs.compose({name:`${g.prefix}-text-input`,template:Yg,styles:Xg,shadowOptions:{delegatesFocus:!0}});Qg.define(g.registry);var Zg=Object.defineProperty,Jg=Object.getOwnPropertyDescriptor,Ut=(o,t,e,s)=>{for(var i=s>1?void 0:s?Jg(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&&Zg(t,e,i),i};class Et extends w{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}}}Ut([a({mode:"boolean"})],Et.prototype,"nowrap",2),Ut([a({mode:"boolean"})],Et.prototype,"truncate",2),Ut([a({mode:"boolean"})],Et.prototype,"italic",2),Ut([a({mode:"boolean"})],Et.prototype,"underline",2),Ut([a({mode:"boolean"})],Et.prototype,"strikethrough",2),Ut([a({mode:"boolean"})],Et.prototype,"block",2),Ut([a],Et.prototype,"size",2),Ut([a],Et.prototype,"font",2),Ut([a],Et.prototype,"weight",2),Ut([a],Et.prototype,"align",2);const aa=l.partial`:is([state--nowrap], :state(nowrap))`,la=l.partial`:is([state--truncate], :state(truncate))`,ca=l.partial`:is([state--underline], :state(underline))`,da=l.partial`:is([state--strikethrough], :state(strikethrough))`,tb=l`
|
|
520
520
|
${S("inline")}
|
|
521
521
|
|
|
522
|
-
:host{contain:content;font-family:${$};font-size:${E};line-height:${D};font-weight:${M};text-align:start}:host(${aa}),:host(${aa}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${la}),:host(${la}) ::slotted(*){text-overflow:ellipsis}:host(:is([state--block],:state(block))){display:block}:host(:is([state--italic],:state(italic))){font-style:italic}:host(${ca}){text-decoration-line:underline}:host(${da}){text-decoration-line:line-through}:host(${ca}${da}){text-decoration-line:line-through underline}:host(:is([state--size-100],:state(size-100))){font-size:${xo};line-height:${ks}}:host(:is([state--size-200],:state(size-200))){font-size:${
|
|
522
|
+
:host{contain:content;font-family:${$};font-size:${E};line-height:${D};font-weight:${M};text-align:start}:host(${aa}),:host(${aa}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${la}),:host(${la}) ::slotted(*){text-overflow:ellipsis}:host(:is([state--block],:state(block))){display:block}:host(:is([state--italic],:state(italic))){font-style:italic}:host(${ca}){text-decoration-line:underline}:host(${da}){text-decoration-line:line-through}:host(${ca}${da}){text-decoration-line:line-through underline}:host(:is([state--size-100],:state(size-100))){font-size:${xo};line-height:${ks}}:host(:is([state--size-200],:state(size-200))){font-size:${q};line-height:${it}}:host(:is([state--size-400],:state(size-400))){font-size:${ct};line-height:${kt}}:host(:is([state--size-500],:state(size-500))){font-size:${We};line-height:${xs}}:host(:is([state--size-600],:state(size-600))){font-size:${vs};line-height:${Nn}}:host(:is([state--size-700],:state(size-700))){font-size:${Bn};line-height:${Fn}}:host(:is([state--size-800],:state(size-800))){font-size:${Pn};line-height:${On}}:host(:is([state--size-900],:state(size-900))){font-size:${An};line-height:${Mn}}:host(:is([state--size-1000],:state(size-1000))){font-size:${En};line-height:${_n}}:host(:is([state--monospace],:state(monospace))){font-family:${ed}}:host(:is([state--numeric],:state(numeric))){font-family:${od}}:host(:is([state--medium],:state(medium))){font-weight:${sd}}:host(:is([state--semibold],:state(semibold))){font-weight:${L}}:host(:is([state--bold],:state(bold))){font-weight:${ys}}: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(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,eb=f`<slot></slot>`,ob=Et.compose({name:`${g.prefix}-text`,template:eb,styles:tb});ob.define(g.registry);var sb=Object.defineProperty,ib=Object.getOwnPropertyDescriptor,ha=(o,t,e,s)=>{for(var i=s>1?void 0:s?ib(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&&sb(t,e,i),i};class Wi extends se{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)}}}ha([a({mode:"boolean"})],Wi.prototype,"pressed",2),ha([a({mode:"boolean"})],Wi.prototype,"mixed",2);const rb=l`
|
|
523
523
|
${Ts}
|
|
524
524
|
|
|
525
|
-
:host(${N}){border-color:${
|
|
526
|
-
:host(${N}),:host(${N}${lt}),:host(${N}${z}),:host(${N}${
|
|
525
|
+
:host(${N}){border-color:${ee};background-color:${an};color:${A};border-width:${H}}:host(${N}:hover){border-color:${vo};background-color:${fi}}:host(${N}:active){border-color:${$s};background-color:${mi}}:host(${N}${lt}){border-color:transparent;background-color:${Ol};color:${te}}:host(${N}${lt}:hover){background-color:${cn}}:host(${N}${lt}:active){background-color:${dn}}:host(${N}${z}){border-color:transparent;background-color:${Nl};color:${bl}}:host(${N}${z}:hover){background-color:${ms};color:${hs}}:host(${N}${z}:active){background-color:${Re};color:${us}}:host(${N}${W}),:host(${N}${Z}){background-color:${Fl}}:host(${N}${W}:hover),:host(${N}${Z}:hover){background-color:${$i}}:host(${N}${W}:active),:host(${N}${Z}:active){background-color:${vi}}:host(${N}${Z}){border-color:transparent;color:${fl}}:host(${N}${Z}:hover){color:${ps}}:host(${N}${Z}:active){color:${gs}}`.withBehaviors(Q(l`
|
|
526
|
+
:host(${N}),:host(${N}${lt}),:host(${N}${z}),:host(${N}${W}),:host(${N}${Z}){background:SelectedItem;color:SelectedItemText}`)),nb=_i(),ab=Wi.compose({name:`${g.prefix}-toggle-button`,template:nb,styles:rb});ab.define(g.registry);
|