@fluentui/web-components 3.0.0-beta.79 → 3.0.0-beta.80
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 +11 -2
- package/dist/dts/slider/slider.d.ts +1 -2
- package/dist/dts/tsdoc-metadata.json +11 -0
- package/dist/esm/slider/slider.js +12 -15
- package/dist/esm/slider/slider.js.map +1 -1
- package/dist/esm/slider/slider.styles.js +4 -0
- package/dist/esm/slider/slider.styles.js.map +1 -1
- package/dist/web-components.d.ts +1 -2
- package/dist/web-components.js +13 -14
- package/dist/web-components.min.js +43 -43
- package/package.json +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let ii;const xr="fast-kernel";try{if(document.currentScript)ii=document.currentScript.getAttribute(xr);else{const o=document.getElementsByTagName("script");ii=o[o.length-1].getAttribute(xr)}}catch{ii="isolate"}let It;switch(ii){case"share":It=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":It=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)}`;It=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Zt=o=>typeof o=="function",Ge=o=>typeof o=="string",wr=()=>{};var ps=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof ps<"u")ps.globalThis=ps;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const e=new Function("return this")();e.globalThis=e}})();const Cr={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Cr));const pe=globalThis.FAST;if(pe.getById===void 0){const o=Object.create(null);Reflect.defineProperty(pe,"getById",Object.assign({value(e,t){let i=o[e];return i===void 0&&(i=t?o[e]=t():null),i}},Cr))}pe.error===void 0&&Object.assign(pe,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Xa=Object.freeze([]);function bs(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function Sr(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let i=Reflect.getPrototypeOf(e);for(;t===void 0&&i!==null;)t=o.get(i),i=Reflect.getPrototypeOf(i);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function zt(o){o.prototype.toJSON=wr}const re=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),Ir=o=>o,Ka=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:Ir}):{createHTML:Ir};let si=Object.freeze({createHTML(o){return Ka.createHTML(o)},protect(o,e,t,i){return i}});const Ya=si,Pt=Object.freeze({get policy(){return si},setPolicy(o){if(si!==Ya)throw pe.error(1201);si=o},setAttribute(o,e,t){t==null?o.removeAttribute(e):o.setAttribute(e,t)},setBooleanAttribute(o,e,t){t?o.setAttribute(e,""):o.removeAttribute(e)}}),ne=pe.getById(It.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let i=!0;function s(){if(e.length)throw e.shift()}function r(u){try{u.call()}catch(h){if(i)e.push(h),setTimeout(s,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 c=0,m=o.length-h;c<m;c++)o[c]=o[c+h];o.length-=h,h=0}o.length=0}function d(u){o.push(u),o.length<2&&(i?t(n):n())}return Object.freeze({enqueue:d,next:()=>new Promise(d),process:n,setMode:u=>i=u})});class gs{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const i=t.indexOf(e);i!==-1&&t.splice(i,1)}}notify(e){const t=this.spillover,i=this.subject;if(t===void 0){const s=this.sub1,r=this.sub2;s!==void 0&&s.handleChange(i,e),r!==void 0&&r.handleChange(i,e)}else for(let s=0,r=t.length;s<r;++s)t[s].handleChange(i,e)}}class zr{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,i;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(i=this.subjectSubscribers)===null||i===void 0||i.notify(e)}subscribe(e,t){var i,s;let r;t?r=(i=this.subscribers[t])!==null&&i!==void 0?i:this.subscribers[t]=new gs(this.subject):r=(s=this.subjectSubscribers)!==null&&s!==void 0?s:this.subjectSubscribers=new gs(this.subject),r.subscribe(e)}unsubscribe(e,t){var i,s;t?(i=this.subscribers[t])===null||i===void 0||i.unsubscribe(e):(s=this.subjectSubscribers)===null||s===void 0||s.unsubscribe(e)}}const ri=Object.freeze({unknown:void 0,coupled:1}),f=pe.getById(It.observable,()=>{const o=ne.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let i,s=h=>{throw pe.error(1101)};function r(h){var c;let m=(c=h.$fastController)!==null&&c!==void 0?c:t.get(h);return m===void 0&&(Array.isArray(h)?m=s(h):t.set(h,m=new zr(h))),m}const n=Sr();class d{constructor(c){this.name=c,this.field=`_${c}`,this.callback=`${c}Changed`}getValue(c){return i!==void 0&&i.watch(c,this.name),c[this.field]}setValue(c,m){const S=this.field,we=c[S];if(we!==m){c[S]=m;const ft=c[this.callback];Zt(ft)&&ft.call(c,we,m),r(c).notify(this.name)}}}class u extends gs{constructor(c,m,S=!1){super(c,m),this.expression=c,this.isVolatileBinding=S,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(c){this.isAsync=this.needsQueue=c}bind(c){this.controller=c;const m=this.observe(c.source,c.context);return!c.isBound&&this.requiresUnbind(c)&&c.onUnbind(this),m}requiresUnbind(c){return c.sourceLifetime!==ri.coupled||this.first!==this.last||this.first.propertySource!==c.source}unbind(c){this.dispose()}observe(c,m){this.needsRefresh&&this.last!==null&&this.dispose();const S=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let we;try{we=this.expression(c,m)}finally{i=S}return we}disconnect(){this.dispose()}dispose(){if(this.last!==null){let c=this.first;for(;c!==void 0;)c.notifier.unsubscribe(this,c.propertyName),c=c.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(c,m){const S=this.last,we=r(c),ft=S===null?this.first:{};if(ft.propertySource=c,ft.propertyName=m,ft.notifier=we,we.subscribe(this,m),S!==null){if(!this.needsRefresh){let kr;i=void 0,kr=S.propertySource[S.propertyName],i=this,c===kr&&(this.needsRefresh=!0)}S.next=ft}this.last=ft}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 c=this.first;for(;c!==void 0;)yield c,c=c.next}}return zt(u),Object.freeze({setArrayObserverFactory(h){s=h},getNotifier:r,track(h,c){i&&i.watch(h,c)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(h,c){r(h).notify(c)},defineProperty(h,c){Ge(c)&&(c=new d(c)),n(h).push(c),Reflect.defineProperty(h,c.name,{enumerable:!0,get(){return c.getValue(this)},set(m){c.setValue(this,m)}})},getAccessors:n,binding(h,c,m=this.isVolatileBinding(h)){return new u(h,c,m)},isVolatileBinding(h){return e.test(h.toString())}})});function $(o,e){f.defineProperty(o,e)}function fs(o,e,t){return Object.assign({},t,{get(){return f.trackVolatile(),t.get.apply(this)}})}const Pr=pe.getById(It.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),Jt=Object.freeze({default:{index:0,length:0,get event(){return Jt.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return Pr.get()},setEvent(o){Pr.set(o)}});class ni{constructor(e,t,i=!1){this.evaluate=e,this.policy=t,this.isVolatile=i}}class Qa extends ni{createObserver(e){return f.binding(this.evaluate,e,this.isVolatile)}}function ms(o,e,t=f.isVolatileBinding(o)){return new Qa(o,e,t)}class Tr extends ni{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}zt(Tr);function Br(o,e){return new Tr(o,e)}let Ar;function Er(o){return o.map(e=>e instanceof Te?Er(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class Te{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof Te?t.behaviors:null).reduce((t,i)=>i===null?t:t===null?i:t.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(Ar),this._strategy}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=this.behaviors===null?e:this.behaviors.concat(e),this}withStrategy(e){return this._strategy=new e(Er(this.styles)),this}static setDefaultStrategy(e){Ar=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new Te(e):e instanceof Te?e:new Te([e])}}Te.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const $s=bs(),vs=Object.freeze({getForInstance:$s.getForInstance,getByType:$s.getByType,define(o){return $s.register({type:o}),o}});function ys(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class ks{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const i=e.source;if(!i.$cssBindings){i.$cssBindings=new Map;const r=i.setAttribute;i.setAttribute=(n,d)=>{r.call(i,n,d),n==="style"&&i.$cssBindings.forEach((u,h)=>ys(h,u.controller,u.observer))}}const s=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);s.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:s})}connectedCallback(e){ys(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){ys(this,t.controller,t)}}vs.define(ks);const Za=`${Math.random().toString(36).substring(2,8)}`;let Ja=0;const Or=()=>`--v${Za}${++Ja}`;function Fr(o,e){const t=[];let i="";const s=[],r=n=>{s.push(n)};for(let n=0,d=o.length-1;n<d;++n){i+=o[n];let u=e[n];Zt(u)?u=new ks(ms(u),Or()).createCSS(r):u instanceof ni?u=new ks(u,Or()).createCSS(r):vs.getForInstance(u)!==void 0&&(u=u.createCSS(r)),u instanceof Te||u instanceof CSSStyleSheet?(i.trim()!==""&&(t.push(i),i=""),t.push(u)):i+=u}return i+=o[o.length-1],i.trim()!==""&&t.push(i),{styles:t,behaviors:s}}const p=(o,...e)=>{const{styles:t,behaviors:i}=Fr(o,e),s=new Te(t);return i.length?s.withBehaviors(...i):s};class Nr{constructor(e,t){this.behaviors=t,this.css="";const i=e.reduce((s,r)=>(Ge(r)?this.css+=r:s.push(r),s),[]);i.length&&(this.styles=new Te(i))}createCSS(e){return this.behaviors.forEach(e),this.styles&&e(this),this.css}addedCallback(e){e.addStyles(this.styles)}removedCallback(e){e.removeStyles(this.styles)}}vs.define(Nr),p.partial=(o,...e)=>{const{styles:t,behaviors:i}=Fr(o,e);return new Nr(t,i)};const _r=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,Mr=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,Dr=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,Lr=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,Vr=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,Hr=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Rr(o){return o&&o.nodeType===Node.COMMENT_NODE}const Ue=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(o,e){return`fe-b$$start$$${o}$$${e}$$fe-b`},contentBindingEndMarker(o,e){return`fe-b$$end$$${o}$$${e}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return _r.test(o)},isContentBindingEndMarker(o){return Mr.test(o)},isRepeatViewStartMarker(o){return Dr.test(o)},isRepeatViewEndMarker(o){return Lr.test(o)},isElementBoundaryStartMarker(o){return Rr(o)&&Vr.test(o.data.trim())},isElementBoundaryEndMarker(o){return Rr(o)&&Hr.test(o.data)},parseAttributeBinding(o){const e=o.getAttribute(this.attributeMarkerName);return e===null?e:e.split(this.attributeBindingSeparator).map(t=>parseInt(t))},parseContentBindingStartMarker(o){return Wr(_r,o)},parseContentBindingEndMarker(o){return Wr(Mr,o)},parseRepeatStartMarker(o){return jr(Dr,o)},parseRepeatEndMarker(o){return jr(Lr,o)},parseElementBoundaryStartMarker(o){return qr(Vr,o.trim())},parseElementBoundaryEndMarker(o){return qr(Hr,o)}});function jr(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function qr(o,e){const t=o.exec(e);return t===null?t:t[1]}function Wr(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const ai=Symbol.for("fe-hydration");function li(o){return o[ai]===ai}const xs=`fast-${Math.random().toString(36).substring(2,8)}`,ci=`${xs}{`,wo=`}${xs}`,el=wo.length;let tl=0;const Co=()=>`${xs}-${++tl}`,Gr=Object.freeze({interpolation:o=>`${ci}${o}${wo}`,attribute:o=>`${Co()}="${ci}${o}${wo}"`,comment:o=>`<!--${ci}${o}${wo}-->`}),di=Object.freeze({parse(o,e){const t=o.split(ci);if(t.length===1)return null;const i=[];for(let s=0,r=t.length;s<r;++s){const n=t[s],d=n.indexOf(wo);let u;if(d===-1)u=n;else{const h=n.substring(0,d);i.push(e[h]),u=n.substring(d+el)}u!==""&&i.push(u)}return i}}),ws=bs(),Me=Object.freeze({getForInstance:ws.getForInstance,getByType:ws.getByType,define(o,e){return e=e||{},e.type=o,ws.register(e),o},assignAspect(o,e){if(!e){o.aspectType=re.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?re.tokenList:re.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=re.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=re.event;break;default:o.targetAspect=e,o.aspectType=re.attribute;break}}});class Cs{constructor(e){this.options=e}createHTML(e){return Gr.attribute(e(this))}createBehavior(){return this}}zt(Cs);class Ur extends Error{constructor(e,t,i){super(e),this.factories=t,this.node=i}}function Ss(o){return o.nodeType===Node.COMMENT_NODE}function Xr(o){return o.nodeType===Node.TEXT_NODE}function Kr(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,Ss(e)||Xr(e)?e.data.length:e.childNodes.length),t}function ol(o){return o instanceof DocumentFragment&&"mode"in o}function il(o,e,t){const i=Kr(o,e),s=i.commonAncestorContainer,r=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(h){return i.comparePoint(h,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},d={};let u=r.currentNode=o;for(;u!==null;){switch(u.nodeType){case Node.ELEMENT_NODE:{sl(u,t,n);break}case Node.COMMENT_NODE:{rl(u,r,t,n,d);break}}u=r.nextNode()}return i.detach(),{targets:n,boundaries:d}}function sl(o,e,t){const i=Ue.parseAttributeBinding(o);if(i!==null){for(const s of i){if(!e[s])throw new Ur(`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.`,e,o);hi(e[s],o,t)}o.removeAttribute(Ue.attributeMarkerName)}}function rl(o,e,t,i,s){if(Ue.isElementBoundaryStartMarker(o)){nl(o,e);return}if(Ue.isContentBindingStartMarker(o.data)){const r=Ue.parseContentBindingStartMarker(o.data);if(r===null)return;const[n,d]=r,u=t[n],h=[];let c=e.nextSibling();o.data="";const m=c;for(;c!==null;){if(Ss(c)){const S=Ue.parseContentBindingEndMarker(c.data);if(S&&S[1]===d)break}h.push(c),c=e.nextSibling()}if(c===null){const S=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${ol(S)?S.host.nodeName:S.nodeName}".`)}if(c.data="",h.length===1&&Xr(h[0]))hi(u,h[0],i);else{c!==m&&c.previousSibling!==null&&(s[u.targetNodeId]={first:m,last:c.previousSibling});const S=c.parentNode.insertBefore(document.createTextNode(""),c);hi(u,S,i)}}}function nl(o,e){const t=Ue.parseElementBoundaryStartMarker(o.data);let i=e.nextSibling();for(;i!==null;){if(Ss(i)){const s=Ue.parseElementBoundaryEndMarker(i.data);if(s&&s===t)break}i=e.nextSibling()}}function hi(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var Yr;function Is(o,e){const t=o.parentNode;let i=o,s;for(;i!==e;){if(s=i.nextSibling,!s)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(i),i=s}t.removeChild(e)}class Qr{constructor(){this.index=0,this.length=0}get event(){return Jt.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 ui extends Qr{constructor(e,t,i){super(),this.fragment=e,this.factories=t,this.targets=i,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=ri.unknown,this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let s=this.firstChild,r;for(;s!==t;)r=s.nextSibling,i.insertBefore(s,e),s=r;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i=this.firstChild,s;for(;i!==t;)s=i.nextSibling,e.appendChild(i),i=s;e.appendChild(t)}dispose(){Is(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let i=this.behaviors;if(i===null){this.source=e,this.context=t,this.behaviors=i=new Array(this.factories.length);const s=this.factories;for(let r=0,n=s.length;r<n;++r){const d=s[r].createBehavior();d.bind(this),i[r]=d}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let s=0,r=i.length;s<r;++s)i[s].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){Is(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}}zt(ui),f.defineProperty(ui.prototype,"index"),f.defineProperty(ui.prototype,"length");const eo={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class al extends Error{constructor(e,t,i,s){super(e),this.factory=t,this.fragment=i,this.templateString=s}}class ll extends Qr{constructor(e,t,i,s){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=i,this.hostBindingTarget=s,this[Yr]=ai,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=ri.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=eo.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=i.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(e){if(this.fragment!==null)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let s=this.firstChild,r;for(;s!==t;)r=s.nextSibling,i.insertBefore(s,e),s=r;i.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let i=this.firstChild,s;for(;i!==t;){if(s=i.nextSibling,!s)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(i),i=s}e.appendChild(t)}bind(e,t=this){var i,s;if(this.hydrationStage!==eo.hydrated&&(this._hydrationStage=eo.hydrating),this.source===e)return;let r=this.behaviors;if(r===null){this.source=e,this.context=t;try{const{targets:d,boundaries:u}=il(this.firstChild,this.lastChild,this.factories);this._targets=d,this._bindingViewBoundaries=u}catch(d){if(d instanceof Ur){let u=this.sourceTemplate.html;typeof u!="string"&&(u=u.innerHTML),d.templateString=u}throw d}this.behaviors=r=new Array(this.factories.length);const n=this.factories;for(let d=0,u=n.length;d<u;++d){const h=n[d];if(h.targetNodeId==="h"&&this.hostBindingTarget&&hi(h,this.hostBindingTarget,this._targets),h.targetNodeId in this.targets){const c=h.createBehavior();c.bind(this),r[d]=c}else{let c=this.sourceTemplate.html;throw typeof c!="string"&&(c=c.innerHTML),new al(`HydrationView was unable to successfully target bindings inside "${(s=((i=this.firstChild)===null||i===void 0?void 0:i.getRootNode()).host)===null||s===void 0?void 0:s.nodeName}".`,h,Kr(this.firstChild,this.lastChild).cloneContents(),c)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,d=r.length;n<d;++n)r[n].bind(this)}this.isBound=!0,this._hydrationStage=eo.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){Is(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}}Yr=ai,zt(ll);function cl(o){return o.create!==void 0}function dl(o,e,t,i){if(t==null&&(t=""),cl(t)){o.textContent="";let s=o.$fastView;if(s===void 0)if(li(i)&&li(t)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==eo.hydrated){const r=i.bindingViewBoundaries[this.targetNodeId];s=t.hydrate(r.first,r.last)}else s=t.create();else o.$fastTemplate!==t&&(s.isComposed&&(s.remove(),s.unbind()),s=t.create());s.isComposed?s.needsBindOnly&&(s.needsBindOnly=!1,s.bind(i.source,i.context)):(s.isComposed=!0,s.bind(i.source,i.context),s.insertBefore(o),o.$fastView=s,o.$fastTemplate=t)}else{const s=o.$fastView;s!==void 0&&s.isComposed&&(s.isComposed=!1,s.remove(),s.needsBindOnly?s.needsBindOnly=!1:s.unbind()),o.textContent=t}}function hl(o,e,t){var i;const s=`${this.id}-t`,r=(i=o[s])!==null&&i!==void 0?i:o[s]={v:0,cv:Object.create(null)},n=r.cv;let d=r.v;const u=o[e];if(t!=null&&t.length){const h=t.split(/\s+/);for(let c=0,m=h.length;c<m;++c){const S=h[c];S!==""&&(n[S]=d,u.add(S))}}if(r.v=d+1,d!==0){d-=1;for(const h in n)n[h]===d&&u.remove(h)}}const ul={[re.attribute]:Pt.setAttribute,[re.booleanAttribute]:Pt.setBooleanAttribute,[re.property]:(o,e,t)=>o[e]=t,[re.content]:dl,[re.tokenList]:hl,[re.event]:()=>{}};class to{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=re.content}createHTML(e){return Gr.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=ul[this.aspectType],i=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw pe.error(1205);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const i=e.targets[this.targetNodeId],s=li(e)&&e.hydrationStage&&e.hydrationStage!==eo.hydrated;switch(this.aspectType){case re.event:i[this.data]=e,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case re.content:e.onUnbind(this);default:const r=(t=i[this.data])!==null&&t!==void 0?t:i[this.data]=this.dataBinding.createObserver(this,this);if(r.target=i,r.controller=e,s&&(this.aspectType===re.attribute||this.aspectType===re.booleanAttribute)){r.bind(e);break}this.updateTarget(i,this.targetAspect,r.bind(e),e);break}}unbind(e){const i=e.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){Jt.setEvent(e);const i=this.dataBinding.evaluate(t.source,t.context);Jt.setEvent(null),i!==!0&&e.preventDefault()}}handleChange(e,t){const i=t.target,s=t.controller;this.updateTarget(i,this.targetAspect,t.bind(s),s)}}Me.define(to,{aspected:!0});const Zr=(o,e)=>`${o}.${e}`,Jr={},Xe={index:0,node:null};function en(o){o.startsWith("fast-")||pe.warn(1204,{name:o})}const pl=new Proxy(document.createElement("div"),{get(o,e){en(e);const t=Reflect.get(o,e);return Zt(t)?t.bind(o):t},set(o,e,t){return en(e),Reflect.set(o,e,t)}});class bl{constructor(e,t,i){this.fragment=e,this.directives=t,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,i,s,r){var n,d;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(t,i,s)),e.id=(n=e.id)!==null&&n!==void 0?n:Co(),e.targetNodeId=i,e.targetTagName=r,e.policy=(d=e.policy)!==null&&d!==void 0?d:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,i){const s=this.descriptors;if(t==="r"||t==="h"||s[t])return;if(!s[e]){const n=e.lastIndexOf("."),d=e.substring(0,n),u=parseInt(e.substring(n+1));this.addTargetDescriptor(d,e,u)}let r=Jr[t];if(!r){const n=`_${t}`;Jr[t]=r={get(){var d;return(d=this[n])!==null&&d!==void 0?d:this[n]=this[e].childNodes[i]}}}s[t]=r}createView(e){const t=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=t,i.h=e??pl;for(const s of this.nodeIds)i[s];return new ui(t,this.factories,i)}}function tn(o,e,t,i,s,r=!1){const n=t.attributes,d=o.directives;for(let u=0,h=n.length;u<h;++u){const c=n[u],m=c.value,S=di.parse(m,d);let we=null;S===null?r&&(we=new to(Br(()=>m,o.policy)),Me.assignAspect(we,c.name)):we=zs.aggregate(S,o.policy),we!==null&&(t.removeAttributeNode(c),u--,h--,o.addFactory(we,e,i,s,t.tagName))}}function gl(o,e,t,i,s){const r=di.parse(e.textContent,o.directives);if(r===null)return Xe.node=e.nextSibling,Xe.index=s+1,Xe;let n,d=n=e;for(let u=0,h=r.length;u<h;++u){const c=r[u];u!==0&&(s++,i=Zr(t,s),n=d.parentNode.insertBefore(document.createTextNode(""),d.nextSibling)),Ge(c)?n.textContent=c:(n.textContent=" ",Me.assignAspect(c),o.addFactory(c,t,i,s,null)),d=n}return Xe.index=s+1,Xe.node=d.nextSibling,Xe}function on(o,e,t){let i=0,s=e.firstChild;for(;s;){const r=fl(o,t,s,i);s=r.node,i=r.index}}function fl(o,e,t,i){const s=Zr(e,i);switch(t.nodeType){case 1:tn(o,e,t,s,i),on(o,t,s);break;case 3:return gl(o,t,e,s,i);case 8:const r=di.parse(t.data,o.directives);r!==null&&o.addFactory(zs.aggregate(r),e,s,i,null);break}return Xe.index=i+1,Xe.node=t.nextSibling,Xe}function ml(o,e){return o&&o.nodeType==8&&di.parse(o.data,e)!==null}const sn="TEMPLATE",zs={compile(o,e,t=Pt.policy){let i;if(Ge(o)){i=document.createElement(sn),i.innerHTML=t.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===sn&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const s=document.adoptNode(i.content),r=new bl(s,e,t);return tn(r,"",i,"h",0,!0),(ml(s.firstChild,e)||s.childNodes.length===1&&Object.keys(e).length>0)&&s.insertBefore(document.createComment(""),s.firstChild),on(r,s,"r"),Xe.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=Pt.policy){if(o.length===1)return o[0];let t,i=!1,s;const r=o.length,n=o.map(h=>Ge(h)?()=>h:(t=h.sourceAspect||t,i=i||h.dataBinding.isVolatile,s=s||h.dataBinding.policy,h.dataBinding.evaluate)),d=(h,c)=>{let m="";for(let S=0;S<r;++S)m+=n[S](h,c);return m},u=new to(ms(d,s??e,i));return Me.assignAspect(u,t),u}},$l=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,vl=Object.create(null);class Tt{constructor(e,t=vl){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const i in t)e(t[i]);return this.html}}Tt.empty=new Tt(""),Me.define(Tt);function yl(o,e,t,i=Me.getForInstance(o)){if(i.aspected){const s=$l.exec(e);s!==null&&Me.assignAspect(o,s[2])}return o.createHTML(t)}class ds{constructor(e,t={},i){this.policy=i,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=zs.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new Tt(Ge(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw pe.error(1208);if(this.policy)throw pe.error(1207);return this.policy=e,this}render(e,t,i){const s=this.create(i);return s.bind(e),s.appendTo(t),s}static create(e,t,i){let s="";const r=Object.create(null),n=d=>{var u;const h=(u=d.id)!==null&&u!==void 0?u:d.id=Co();return r[h]=d,h};for(let d=0,u=e.length-1;d<u;++d){const h=e[d];let c=t[d],m;if(s+=h,Zt(c))c=new to(ms(c));else if(c instanceof ni)c=new to(c);else if(!(m=Me.getForInstance(c))){const S=c;c=new to(Br(()=>S))}s+=yl(c,h,n,m)}return new ds(s+e[e.length-1],r,i)}}zt(ds);const g=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return ds.create(o,e);throw pe.error(1206)};g.partial=o=>new Tt(o);class rn extends Cs{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Me.define(rn);const X=o=>new rn(o),kl=o=>o.nodeType===1,Bt=o=>o?e=>e.nodeType===1&&e.matches(o):kl;class nn extends Cs{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,Xa),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const an="slotchange";class ln extends nn{observe(e){e.addEventListener(an,this)}disconnect(e){e.removeEventListener(an,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Me.define(ln);function K(o){return Ge(o)&&(o={property:o}),new ln(o)}class cn extends nn{constructor(e){super(e),this.observerProperty=Symbol(),this.handleEvent=(t,i)=>{const s=i.target;this.updateTarget(this.getSource(s),this.computeNodes(s))},e.childList=!0}observe(e){let t=e[this.observerProperty];t||(t=new MutationObserver(this.handleEvent),t.toJSON=wr,e[this.observerProperty]=t),t.target=e,t.observe(e,this.options)}disconnect(e){const t=e[this.observerProperty];t.target=null,t.disconnect()}getNodes(e){return"selector"in this.options?Array.from(e.querySelectorAll(this.options.selector)):Array.from(e.childNodes)}}Me.define(cn);function xl(o){return Ge(o)&&(o={property:o}),new cn(o)}const dn="boolean",hn="reflect",pi=Object.freeze({locate:Sr()}),wl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function un(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const ae={toView(o){const e=un(o);return e&&e.toString()},fromView:un};class hs{constructor(e,t,i=t.toLowerCase(),s=hn,r){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=s,this.converter=r,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,s===dn&&r===void 0&&(this.converter=wl)}setValue(e,t){const i=e[this.fieldName],s=this.converter;s!==void 0&&(t=s.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return f.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||t==="fromView"||ne.enqueue(()=>{i.add(e);const s=e[this.fieldName];switch(t){case hn:const r=this.converter;Pt.setAttribute(e,this.attribute,r!==void 0?r.toView(s):s);break;case dn:Pt.setBooleanAttribute(e,this.attribute,s);break}i.delete(e)})}static collect(e,...t){const i=[];t.push(pi.locate(e));for(let s=0,r=t.length;s<r;++s){const n=t[s];if(n!==void 0)for(let d=0,u=n.length;d<u;++d){const h=n[d];Ge(h)?i.push(new hs(e,h)):i.push(new hs(e,h.property,h.attribute,h.mode,h.converter))}}return i}}function a(o,e){let t;function i(s,r){arguments.length>1&&(t.property=r),pi.locate(s.constructor).push(t)}if(arguments.length>1){t={},i(o,e);return}return t=o===void 0?{}:o,i}const pn={mode:"open"},bn={},gn=new Set,bi=pe.getById(It.elementRegistry,()=>bs());class We{constructor(e,t=e.definition){var i;this.platformDefined=!1,Ge(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=(i=t.registry)!==null&&i!==void 0?i:customElements;const s=e.prototype,r=hs.collect(e,t.attributes),n=new Array(r.length),d={},u={};for(let h=0,c=r.length;h<c;++h){const m=r[h];n[h]=m.attribute,d[m.name]=m,u[m.attribute]=m,f.defineProperty(s,m)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=d,this.attributeLookup=u,this.shadowOptions=t.shadowOptions===void 0?pn:t.shadowOptions===null?void 0:Object.assign(Object.assign({},pn),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?bn:Object.assign(Object.assign({},bn),t.elementOptions),this.styles=Te.normalize(t.styles),bi.register(this)}get isDefined(){return this.platformDefined}define(e=this.registry){const t=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,t,this.elementOptions)),this}static compose(e,t){return gn.has(e)||bi.getByType(e)?new We(class extends e{},t):new We(e,t)}static registerBaseType(e){gn.add(e)}}We.getByType=bi.getByType,We.getForInstance=bi.getForInstance;class Cl extends MutationObserver{constructor(e){function t(i){this.callback.call(null,i.filter(s=>this.observedNodes.has(s.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let i=null,s=!1;return{source:o,context:Jt.default,targets:t,get isBound(){return s},addBehaviorFactory(r,n){var d,u,h,c;const m=r;m.id=(d=m.id)!==null&&d!==void 0?d:Co(),m.targetNodeId=(u=m.targetNodeId)!==null&&u!==void 0?u:Co(),m.targetTagName=(h=n.tagName)!==null&&h!==void 0?h:null,m.policy=(c=m.policy)!==null&&c!==void 0?c:Pt.policy,this.addTarget(m.targetNodeId,n),this.addBehavior(m.createBehavior())},addTarget(r,n){t[r]=n},addBehavior(r){e.push(r),s&&r.bind(this)},onUnbind(r){i===null&&(i=[]),i.push(r)},connectedCallback(r){s||(s=!0,e.forEach(n=>n.bind(this)))},disconnectedCallback(r){s&&(s=!1,i!==null&&i.forEach(n=>n.unbind(this)))}}}});const Sl={bubbles:!0,composed:!0,cancelable:!0},gi="isConnected",fn=new WeakMap;function So(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:fn.get(o))!==null&&t!==void 0?t:null}let mn;class oo extends zr{constructor(e,t){super(e),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=e,this.definition=t;const i=t.shadowOptions;if(i!==void 0){let r=e.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=e.attachShadow(i),i.mode==="closed"&&fn.set(e,r))}const s=f.getAccessors(e);if(s.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,d=s.length;n<d;++n){const u=s[n].name,h=e[u];h!==void 0&&(delete e[u],r[u]=h)}}}get isConnected(){return f.track(this,gi),this.stage===1}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:Jt.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,i;const s=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,r=(i=s.get(e))!==null&&i!==void 0?i:0;r===0?(s.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):s.set(e,r+1)}removeBehavior(e,t=!1){const i=this.behaviors;if(i===null)return;const s=i.get(e);s!==void 0&&(s===1||t?(i.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):i.set(e,s-1))}addStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=So(i))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(i)){const s=e.behaviors;if(e.addStylesTo(i),s!==null)for(let r=0,n=s.length;r<n;++r)this.addBehavior(s[r])}}removeStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=So(i))!==null&&t!==void 0?t:i).removeChild(e);else if(e.isAttachedTo(i)){const s=e.behaviors;if(e.removeStylesFrom(i),s!==null)for(let r=0,n=s.length;r<n;++r)this.removeBehavior(s[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,f.notify(this,gi))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,i=Object.keys(t);for(let s=0,r=i.length;s<r;++s){const n=i[s];e[n]=t[n]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,f.notify(this,gi),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,i){const s=this.definition.attributeLookup[e];s!==void 0&&s.onAttributeChangedCallback(this.source,i)}emit(e,t,i){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},Sl),i))):!1}renderTemplate(e){var t;const i=this.source,s=(t=So(i))!==null&&t!==void 0?t:i;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=s.firstChild;r!==null;r=s.firstChild)s.removeChild(r)}e&&(this.view=e.render(i,s,i),this.view.sourceLifetime=ri.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const i=We.getForInstance(e);if(i===void 0)throw pe.error(1401);return e.$fastController=new mn(e,i)}static setStrategy(e){mn=e}}zt(oo),oo.setStrategy(oo);function fi(o){var e;return"adoptedStyleSheets"in o?o:(e=So(o))!==null&&e!==void 0?e:o.getRootNode()}class us{constructor(e){const t=us.styleSheetCache;this.sheets=e.map(i=>{if(i instanceof CSSStyleSheet)return i;let s=t.get(i);return s===void 0&&(s=new CSSStyleSheet,s.replaceSync(i),t.set(i,s)),s})}addStylesTo(e){vn(fi(e),this.sheets)}removeStylesFrom(e){yn(fi(e),this.sheets)}}us.styleSheetCache=new Map;let Il=0;const zl=()=>`fast-${++Il}`;function $n(o){return o===document?document.body:o}class Pl{constructor(e){this.styles=e,this.styleClass=zl()}addStylesTo(e){e=$n(fi(e));const t=this.styles,i=this.styleClass;for(let s=0;s<t.length;s++){const r=document.createElement("style");r.innerHTML=t[s],r.className=i,e.append(r)}}removeStylesFrom(e){e=$n(fi(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,s=t.length;i<s;++i)e.removeChild(t[i])}}let vn=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},yn=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(Te.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),vn=(o,e)=>{o.adoptedStyleSheets.push(...e)},yn=(o,e)=>{for(const t of e){const i=o.adoptedStyleSheets.indexOf(t);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}Te.setDefaultStrategy(us)}else Te.setDefaultStrategy(Pl);const kn="defer-hydration",xn="needs-hydration";class Qt extends oo{static hydrationObserverHandler(e){for(const t of e)Qt.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(xn)!==null),this.source.hasAttribute(kn)){Qt.hydrationObserver.observe(this.source,{attributeFilter:[kn]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const i=this.source,s=(e=So(i))!==null&&e!==void 0?e:i;if(this.template)if(li(this.template)){let r=s.firstChild,n=s.lastChild;i.shadowRoot===null&&(Ue.isElementBoundaryStartMarker(r)&&(r.data="",r=r.nextSibling),Ue.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(r,n,i),(t=this.view)===null||t===void 0||t.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(xn),this.needsInitialization=this.needsHydration=!1,f.notify(this,gi)}disconnect(){super.disconnect(),Qt.hydrationObserver.unobserve(this.source)}static install(){oo.setStrategy(Qt)}}Qt.hydrationObserver=new Cl(Qt.hydrationObserverHandler);function wn(o){const e=class extends o{constructor(){super(),oo.forCustomElement(this)}$emit(t,i,s){return this.$fastController.emit(t,i,s)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,i,s){this.$fastController.onAttributeChangedCallback(t,i,s)}};return We.registerBaseType(e),e}function Tl(o,e){return Zt(o)?We.compose(o,e):We.compose(this,o)}function Bl(o,e){return Zt(o)?We.compose(o,e).define().type:We.compose(this,o).define().type}function Al(o){return wn(o)}const w=Object.assign(wn(HTMLElement),{from:Al,define:Bl,compose:Tl}),Ce={horizontal:"horizontal",vertical:"vertical"};function El(o,e){let t=o.length;for(;t--;)if(e(o[t],t,o))return t;return-1}function Cn(...o){return o.every(e=>e instanceof HTMLElement)}const mi="ArrowDown",$i="ArrowLeft",vi="ArrowRight",yi="ArrowUp",ki="End",xi="Enter",Ol="Escape",wi="Home",Ps=" ",Fl="Tab";var De;(function(o){o.ltr="ltr",o.rtl="rtl"})(De||(De={}));function Nl(o,e,t){return t<o?e:t>e?o:t}function Ts(o,e,t){return Math.min(Math.max(t,o),e)}let _l=0;function io(o=""){return`${o}${_l++}`}var Ml=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,Y=(o,e,t,i)=>{for(var s=i>1?void 0:i?Dl(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Ml(e,t,s),s};class Q{}Y([a({attribute:"aria-atomic"})],Q.prototype,"ariaAtomic",2),Y([a({attribute:"aria-busy"})],Q.prototype,"ariaBusy",2),Y([a({attribute:"aria-controls"})],Q.prototype,"ariaControls",2),Y([a({attribute:"aria-current"})],Q.prototype,"ariaCurrent",2),Y([a({attribute:"aria-describedby"})],Q.prototype,"ariaDescribedby",2),Y([a({attribute:"aria-details"})],Q.prototype,"ariaDetails",2),Y([a({attribute:"aria-disabled"})],Q.prototype,"ariaDisabled",2),Y([a({attribute:"aria-errormessage"})],Q.prototype,"ariaErrormessage",2),Y([a({attribute:"aria-flowto"})],Q.prototype,"ariaFlowto",2),Y([a({attribute:"aria-haspopup"})],Q.prototype,"ariaHaspopup",2),Y([a({attribute:"aria-hidden"})],Q.prototype,"ariaHidden",2),Y([a({attribute:"aria-invalid"})],Q.prototype,"ariaInvalid",2),Y([a({attribute:"aria-keyshortcuts"})],Q.prototype,"ariaKeyshortcuts",2),Y([a({attribute:"aria-label"})],Q.prototype,"ariaLabel",2),Y([a({attribute:"aria-labelledby"})],Q.prototype,"ariaLabelledby",2),Y([a({attribute:"aria-live"})],Q.prototype,"ariaLive",2),Y([a({attribute:"aria-owns"})],Q.prototype,"ariaOwns",2),Y([a({attribute:"aria-relevant"})],Q.prototype,"ariaRelevant",2),Y([a({attribute:"aria-roledescription"})],Q.prototype,"ariaRoledescription",2);const Bs={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}},As=o=>o.closest("[dir]")?.dir==="rtl"?De.rtl:De.ltr;function ve(o){return o?typeof o=="string"?new Tt(o):"inline"in o?o.inline():o:Tt.empty}const Es=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,Ll=":host([hidden]){display:none}";function I(o){return`${Ll}:host{display:${o}}`}class Vl{constructor(e){this.listenerCache=new WeakMap,this.query=e}connectedCallback(e){const{query:t}=this;let i=this.listenerCache.get(e);i||(i=this.constructListener(e),this.listenerCache.set(e,i)),i.bind(t)(),t.addEventListener("change",i)}disconnectedCallback(e){const t=this.listenerCache.get(e);t&&this.query.removeEventListener("change",t)}}class oi extends Vl{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new oi(e,t)}constructListener(e){let t=!1;const i=this.styles;return function(){const{matches:r}=this;r&&!t?(e.addStyles(i),t=r):!r&&t&&(e.removeStyles(i),t=r)}}removedCallback(e){e.removeStyles(this.styles)}}const le=oi.with(window.matchMedia("(forced-colors)"));oi.with(window.matchMedia("(prefers-color-scheme: dark)")),oi.with(window.matchMedia("(prefers-color-scheme: light)"));const Sn=CSS.supports("anchor-name: --a"),Hl="anchor"in HTMLElement.prototype,In=CSS.supports("selector(:state(g))");class rt{}function mt(o){return g`<slot name="end" ${X("end")}>${ve(o.end)}</slot>`.inline()}function Ke(o){return g`<slot name="start" ${X("start")}>${ve(o.start)}</slot>`.inline()}function nt(o,...e){const t=pi.locate(o);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(i.prototype,r))}),pi.locate(i).forEach(r=>t.push(r))})}const zn=new Map;function l(o){return zn.get(o)??zn.set(o,In?`:state(${o})`:`[state--${o}]`).get(o)}function v(o,e,t){if(!(!e||!o)){if(!In){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Os=new WeakMap;function Fs(o,e){if(!o||!e)return!1;if(Os.has(o))return Os.get(o).has(e);const t=new Set(Object.values(o));return Os.set(o,t),t.has(e)}function y(o,e="",t="",i,s=""){v(o,`${s}${e}`,!1),(!i||Fs(i,t))&&v(o,`${s}${t}`,!0)}const Rl={small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},jl={start:"start",end:"end"};var ql=Object.defineProperty,Wl=Object.getOwnPropertyDescriptor,At=(o,e,t,i)=>{for(var s=i>1?void 0:i?Wl(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&ql(e,t,s),s};class at extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=io("accordion-")}expandedChanged(e,t){v(this.elementInternals,"expanded",t)}disabledChanged(e,t){v(this.elementInternals,"disabled",t)}}At([a({attribute:"heading-level",mode:"fromView",converter:ae})],at.prototype,"headinglevel",2),At([a({mode:"boolean"})],at.prototype,"expanded",2),At([a({mode:"boolean"})],at.prototype,"disabled",2),At([a],at.prototype,"id",2);class Io extends at{constructor(){super(...arguments),this.block=!1}sizeChanged(e,t){y(this.elementInternals,e,t,Rl)}markerPositionChanged(e,t){y(this.elementInternals,e,t,jl,"align-")}blockChanged(e,t){v(this.elementInternals,"block",t)}}At([a],Io.prototype,"size",2),At([a({attribute:"marker-position"})],Io.prototype,"markerPosition",2),At([a({mode:"boolean"})],Io.prototype,"block",2),nt(Io,rt);const Gl=l("active"),lt=l("align-end"),Pn=l("align-start"),Ul=l("anchor"),Tn=l("auto-resize"),Xl=l("bad-input"),Kl=l("beige"),zo=l("block"),Yl=l("blue"),Ql=l("bold"),Zl=l("bordered"),Ye=l("brand"),Jl=l("brass"),ec=l("brown"),tc=l("center"),x=l("checked"),Po=l("circular"),oc=l("cornflower"),ic=l("cranberry"),sc=l("custom-error"),Ci=l("danger"),rc=l("dark-green"),nc=l("dark-red"),ac=l("description"),_=l("disabled"),Bn=l("display-shadow"),An=l("dot"),lc=l("end"),Ns=l("error"),Et=l("expanded"),Si=l("extra-large"),To=l("extra-small"),$t=l("filled-darker"),Ot=l("filled-lighter"),cc=l("fit-center"),dc=l("fit-contain"),hc=l("fit-cover"),uc=l("fit-none"),pc=l("flip-block"),bc=l("focus-visible"),gc=l("forest"),ct=l("ghost"),fc=l("gold"),mc=l("grape"),$c=l("has-message"),vc=l("huge"),vt=l("icon"),Ii=l("important"),Ft=l("indeterminate"),zi=l("informative"),yc=l("inline"),_s=l("inset"),En=l("inverted"),kc=l("italic"),xc=l("justify"),C=l("large"),wc=l("lavender"),Cc=l("light-teal"),Sc=l("lilac"),Ic=l("magenta"),zc=l("marigold"),Pc=l("medium"),Tc=l("mink"),Bc=l("monospace"),Bo=l("multiline"),so=l("multiple"),Ac=l("navy"),Pi=l("neutral"),On=l("nowrap"),Ec=l("numeric"),Oc=l("open"),F=l("outline"),Fc=l("pattern-mismatch"),Nc=l("peach"),_c=l("pink"),Mc=l("placeholder-shown"),Dc=l("platinum"),Lc=l("plum"),D=l("pressed"),ye=l("primary"),Vc=l("pumpkin"),Hc=l("purple"),Rc=l("range-overflow"),jc=l("range-underflow"),qc=l("red"),Wc=l("resize-both"),Gc=l("resize-horizontal"),Uc=l("resize-vertical"),dt=l("rounded"),Xc=l("royal-blue"),Kc=l("seafoam"),Ms=l("selected"),Fn=l("semibold"),Ti=l("severe"),Yc=l("shadow"),Qc=l("size-1000"),Zc=l("size-100"),Jc=l("size-200"),ed=l("size-400"),td=l("size-500"),od=l("size-600"),id=l("size-700"),sd=l("size-800"),rd=l("size-900"),P=l("small"),Ao=l("square"),nd=l("steel"),ad=l("step-mismatch"),Nn=l("strikethrough"),Eo=l("strong"),Bi=l("submenu"),B=l("subtle"),Nt=l("success"),ld=l("teal"),yt=l("tint"),Oo=l("tiny"),cd=l("too-long"),dd=l("too-short"),H=l("transparent"),_n=l("truncate"),hd=l("type-mismatch"),_t=l("underline"),ud=l("user-invalid"),pd=l("valid"),bd=l("value-missing"),z=l("vertical"),Mt=l("warning"),O="var(--colorNeutralForeground1)",Ds="var(--colorNeutralForeground1Hover)",gd="var(--colorNeutralForeground1Pressed)",Le="var(--colorNeutralForeground2)",Fo="var(--colorNeutralForeground2Hover)",No="var(--colorNeutralForeground2Pressed)",fd="var(--colorNeutralForeground2Selected)",Ai="var(--colorNeutralForeground2BrandHover)",Ei="var(--colorNeutralForeground2BrandPressed)",md="var(--colorNeutralForeground2BrandSelected)",be="var(--colorNeutralForeground3)",$d="var(--colorNeutralForeground3Hover)",vd="var(--colorNeutralForeground3Pressed)",Ls="var(--colorNeutralForeground4)",A="var(--colorNeutralForegroundDisabled)",yd="var(--colorBrandForegroundLink)",kd="var(--colorBrandForegroundLinkHover)",xd="var(--colorBrandForegroundLinkPressed)",wd="var(--colorNeutralForeground2Link)",Cd="var(--colorNeutralForeground2LinkHover)",Sd="var(--colorNeutralForeground2LinkPressed)",Mn="var(--colorCompoundBrandForeground1Hover)",Id="var(--colorCompoundBrandForeground1Pressed)",ht="var(--colorNeutralForegroundOnBrand)",Dt="var(--colorNeutralForegroundInverted)",zd="var(--colorNeutralForegroundInvertedHover)",Pd="var(--colorNeutralForegroundInvertedPressed)",Dn="var(--colorNeutralForegroundStaticInverted)",Vs="var(--colorBrandForeground1)",Td="var(--colorBrandForeground2)",Bd="var(--colorNeutralForeground1Static)",E="var(--colorNeutralBackground1)",Oi="var(--colorNeutralBackground1Hover)",Fi="var(--colorNeutralBackground1Pressed)",Ln="var(--colorNeutralBackground1Selected)",_o="var(--colorNeutralBackground3)",Ad="var(--colorNeutralBackground4)",Ed="var(--colorNeutralBackground5)",Ni="var(--colorNeutralBackground6)",Vn="var(--colorNeutralBackgroundInverted)",Od="var(--colorSubtleBackground)",_i="var(--colorSubtleBackgroundHover)",ro="var(--colorSubtleBackgroundPressed)",Fd="var(--colorSubtleBackgroundSelected)",Be="var(--colorTransparentBackground)",Hs="var(--colorTransparentBackgroundHover)",Rs="var(--colorTransparentBackgroundPressed)",Nd="var(--colorTransparentBackgroundSelected)",kt="var(--colorNeutralBackgroundDisabled)",js="var(--colorBackgroundOverlay)",qs="var(--colorBrandBackground)",Hn="var(--colorBrandBackgroundHover)",Rn="var(--colorBrandBackgroundPressed)",_d="var(--colorBrandBackgroundSelected)",Lt="var(--colorCompoundBrandBackground)",no="var(--colorCompoundBrandBackgroundHover)",ao="var(--colorCompoundBrandBackgroundPressed)",jn="var(--colorBrandBackgroundStatic)",Md="var(--colorBrandBackground2)",Qe="var(--colorNeutralStrokeAccessible)",Vt="var(--colorNeutralStrokeAccessibleHover)",Ht="var(--colorNeutralStrokeAccessiblePressed)",Ze="var(--colorNeutralStroke1)",lo="var(--colorNeutralStroke1Hover)",Mo="var(--colorNeutralStroke1Pressed)",Do="var(--colorNeutralStroke2)",Dd="var(--colorNeutralStroke3)",Ld="var(--colorNeutralStrokeOnBrand2)",qn="var(--colorBrandStroke1)",Ws="var(--colorBrandStroke2)",Rt="var(--colorCompoundBrandStroke)",Vd="var(--colorCompoundBrandStrokeHover)",Wn="var(--colorCompoundBrandStrokePressed)",Ae="var(--colorNeutralStrokeDisabled)",ce="var(--colorTransparentStroke)",Gs="var(--colorTransparentStrokeInteractive)",Us="var(--colorStrokeFocus1)",Ve="var(--colorStrokeFocus2)",Hd="var(--colorNeutralShadowAmbient)",Rd="var(--colorNeutralShadowKey)",Gn="var(--colorPaletteRedBackground1)",jd="var(--colorPaletteRedBackground2)",Un="var(--colorPaletteRedBackground3)",Xn="var(--colorPaletteRedBorder1)",Xs="var(--colorPaletteRedBorder2)",Kn="var(--colorPaletteRedForeground1)",qd="var(--colorPaletteRedForeground2)",Yn="var(--colorPaletteRedForeground3)",Qn="var(--colorPaletteGreenBackground1)",Zn="var(--colorPaletteGreenBackground3)",Wd="var(--colorPaletteGreenBorder1)",Gd="var(--colorPaletteGreenBorder2)",Ud="var(--colorPaletteGreenForeground1)",Xd="var(--colorPaletteGreenForeground2)",Kd="var(--colorPaletteGreenForeground3)",Jn="var(--colorPaletteDarkOrangeBackground1)",ea="var(--colorPaletteDarkOrangeBackground3)",ta="var(--colorPaletteDarkOrangeBorder1)",Yd="var(--colorPaletteDarkOrangeForeground1)",oa="var(--colorPaletteDarkOrangeForeground3)",Qd="var(--colorPaletteYellowBackground1)",Zd="var(--colorPaletteYellowBackground3)",Jd="var(--colorPaletteYellowBorder1)",Ks="var(--colorPaletteYellowForeground2)",ia="var(--colorPaletteMarigoldBackground2)",eh="var(--colorPaletteMarigoldBackground3)",th="var(--colorPaletteMarigoldForeground2)",oh="var(--colorPaletteAnchorBackground2)",ih="var(--colorPaletteAnchorForeground2)",sh="var(--colorPaletteBeigeBackground2)",rh="var(--colorPaletteBeigeForeground2)",nh="var(--colorPaletteBlueBackground2)",ah="var(--colorPaletteBlueForeground2)",lh="var(--colorPaletteBrassBackground2)",ch="var(--colorPaletteBrassForeground2)",dh="var(--colorPaletteBrownBackground2)",hh="var(--colorPaletteBrownForeground2)",uh="var(--colorPaletteCornflowerBackground2)",ph="var(--colorPaletteCornflowerForeground2)",bh="var(--colorPaletteCranberryBackground2)",gh="var(--colorPaletteCranberryForeground2)",fh="var(--colorPaletteDarkGreenBackground2)",mh="var(--colorPaletteDarkGreenForeground2)",$h="var(--colorPaletteDarkRedBackground2)",vh="var(--colorPaletteDarkRedForeground2)",yh="var(--colorPaletteForestBackground2)",kh="var(--colorPaletteForestForeground2)",xh="var(--colorPaletteGoldBackground2)",wh="var(--colorPaletteGoldForeground2)",Ch="var(--colorPaletteGrapeBackground2)",Sh="var(--colorPaletteGrapeForeground2)",Ih="var(--colorPaletteLavenderBackground2)",zh="var(--colorPaletteLavenderForeground2)",Ph="var(--colorPaletteLightTealBackground2)",Th="var(--colorPaletteLightTealForeground2)",Bh="var(--colorPaletteLilacBackground2)",Ah="var(--colorPaletteLilacForeground2)",Eh="var(--colorPaletteMagentaBackground2)",Oh="var(--colorPaletteMagentaForeground2)",Fh="var(--colorPaletteMinkBackground2)",Nh="var(--colorPaletteMinkForeground2)",_h="var(--colorPaletteNavyBackground2)",Mh="var(--colorPaletteNavyForeground2)",Dh="var(--colorPalettePeachBackground2)",Lh="var(--colorPalettePeachForeground2)",Vh="var(--colorPalettePinkBackground2)",Hh="var(--colorPalettePinkForeground2)",Rh="var(--colorPalettePlatinumBackground2)",jh="var(--colorPalettePlatinumForeground2)",qh="var(--colorPalettePlumBackground2)",Wh="var(--colorPalettePlumForeground2)",Gh="var(--colorPalettePumpkinBackground2)",Uh="var(--colorPalettePumpkinForeground2)",Xh="var(--colorPalettePurpleBackground2)",Kh="var(--colorPalettePurpleForeground2)",Yh="var(--colorPaletteRoyalBlueBackground2)",Qh="var(--colorPaletteRoyalBlueForeground2)",Zh="var(--colorPaletteSeafoamBackground2)",Jh="var(--colorPaletteSeafoamForeground2)",eu="var(--colorPaletteSteelBackground2)",tu="var(--colorPaletteSteelForeground2)",ou="var(--colorPaletteTealBackground2)",iu="var(--colorPaletteTealForeground2)",Mi="var(--borderRadiusNone)",He="var(--borderRadiusSmall)",T="var(--borderRadiusMedium)",sa="var(--borderRadiusLarge)",ra="var(--borderRadiusXLarge)",Se="var(--borderRadiusCircular)",k="var(--fontFamilyBase)",su="var(--fontFamilyMonospace)",ru="var(--fontFamilyNumeric)",Lo="var(--fontSizeBase100)",G="var(--fontSizeBase200)",M="var(--fontSizeBase300)",ke="var(--fontSizeBase400)",co="var(--fontSizeBase500)",Di="var(--fontSizeBase600)",na="var(--fontSizeHero700)",aa="var(--fontSizeHero800)",la="var(--fontSizeHero900)",ca="var(--fontSizeHero1000)",R="var(--fontWeightRegular)",nu="var(--fontWeightMedium)",U="var(--fontWeightSemibold)",Li="var(--fontWeightBold)",Vi="var(--lineHeightBase100)",ee="var(--lineHeightBase200)",j="var(--lineHeightBase300)",Ie="var(--lineHeightBase400)",Hi="var(--lineHeightBase500)",da="var(--lineHeightBase600)",ha="var(--lineHeightHero700)",ua="var(--lineHeightHero800)",pa="var(--lineHeightHero900)",ba="var(--lineHeightHero1000)",Ys="var(--shadow2)",Ri="var(--shadow4)",au="var(--shadow8)",Qs="var(--shadow16)",lu="var(--shadow28)",ga="var(--shadow64)",N="var(--strokeWidthThin)",ze="var(--strokeWidthThick)",ge="var(--strokeWidthThicker)",Zs="var(--strokeWidthThickest)",te="var(--spacingHorizontalXXS)",Ee="var(--spacingHorizontalXS)",de="var(--spacingHorizontalSNudge)",Je="var(--spacingHorizontalS)",fe="var(--spacingHorizontalMNudge)",xe="var(--spacingHorizontalM)",cu="var(--spacingHorizontalL)",du="var(--spacingHorizontalXL)",hu="var(--spacingHorizontalXXL)",Vo="var(--spacingVerticalXXS)",ho="var(--spacingVerticalXS)",et="var(--spacingVerticalSNudge)",oe="var(--spacingVerticalS)",uo="var(--spacingVerticalMNudge)",uu="var(--spacingVerticalM)",ji="var(--spacingVerticalL)",Ho="var(--spacingVerticalXXL)",Js="var(--durationUltraFast)",er="var(--durationFaster)",qi="var(--durationNormal)",tr="var(--durationGentle)",fa="var(--durationSlow)",ma="var(--durationSlower)",Wi="var(--durationUltraSlow)",pu="var(--curveAccelerateMax)",jt="var(--curveAccelerateMid)",bu="var(--curveAccelerateMin)",or="var(--curveDecelerateMax)",qt="var(--curveDecelerateMid)",gu="var(--curveDecelerateMin)",fu="var(--curveEasyEaseMax)",Gi="var(--curveEasyEase)",ir="var(--curveLinear)",mu=p`
|
|
1
|
+
const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let ii;const xr="fast-kernel";try{if(document.currentScript)ii=document.currentScript.getAttribute(xr);else{const o=document.getElementsByTagName("script");ii=o[o.length-1].getAttribute(xr)}}catch{ii="isolate"}let It;switch(ii){case"share":It=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":It=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)}`;It=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Zt=o=>typeof o=="function",We=o=>typeof o=="string",wr=()=>{};var ps=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof ps<"u")ps.globalThis=ps;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const e=new Function("return this")();e.globalThis=e}})();const Cr={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Cr));const pe=globalThis.FAST;if(pe.getById===void 0){const o=Object.create(null);Reflect.defineProperty(pe,"getById",Object.assign({value(e,t){let i=o[e];return i===void 0&&(i=t?o[e]=t():null),i}},Cr))}pe.error===void 0&&Object.assign(pe,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Xa=Object.freeze([]);function bs(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function Sr(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let i=Reflect.getPrototypeOf(e);for(;t===void 0&&i!==null;)t=o.get(i),i=Reflect.getPrototypeOf(i);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function zt(o){o.prototype.toJSON=wr}const re=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),Ir=o=>o,Ka=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:Ir}):{createHTML:Ir};let si=Object.freeze({createHTML(o){return Ka.createHTML(o)},protect(o,e,t,i){return i}});const Ya=si,Pt=Object.freeze({get policy(){return si},setPolicy(o){if(si!==Ya)throw pe.error(1201);si=o},setAttribute(o,e,t){t==null?o.removeAttribute(e):o.setAttribute(e,t)},setBooleanAttribute(o,e,t){t?o.setAttribute(e,""):o.removeAttribute(e)}}),ne=pe.getById(It.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let i=!0;function s(){if(e.length)throw e.shift()}function r(u){try{u.call()}catch(h){if(i)e.push(h),setTimeout(s,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 c=0,m=o.length-h;c<m;c++)o[c]=o[c+h];o.length-=h,h=0}o.length=0}function d(u){o.push(u),o.length<2&&(i?t(n):n())}return Object.freeze({enqueue:d,next:()=>new Promise(d),process:n,setMode:u=>i=u})});class gs{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const i=t.indexOf(e);i!==-1&&t.splice(i,1)}}notify(e){const t=this.spillover,i=this.subject;if(t===void 0){const s=this.sub1,r=this.sub2;s!==void 0&&s.handleChange(i,e),r!==void 0&&r.handleChange(i,e)}else for(let s=0,r=t.length;s<r;++s)t[s].handleChange(i,e)}}class zr{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,i;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(i=this.subjectSubscribers)===null||i===void 0||i.notify(e)}subscribe(e,t){var i,s;let r;t?r=(i=this.subscribers[t])!==null&&i!==void 0?i:this.subscribers[t]=new gs(this.subject):r=(s=this.subjectSubscribers)!==null&&s!==void 0?s:this.subjectSubscribers=new gs(this.subject),r.subscribe(e)}unsubscribe(e,t){var i,s;t?(i=this.subscribers[t])===null||i===void 0||i.unsubscribe(e):(s=this.subjectSubscribers)===null||s===void 0||s.unsubscribe(e)}}const ri=Object.freeze({unknown:void 0,coupled:1}),f=pe.getById(It.observable,()=>{const o=ne.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let i,s=h=>{throw pe.error(1101)};function r(h){var c;let m=(c=h.$fastController)!==null&&c!==void 0?c:t.get(h);return m===void 0&&(Array.isArray(h)?m=s(h):t.set(h,m=new zr(h))),m}const n=Sr();class d{constructor(c){this.name=c,this.field=`_${c}`,this.callback=`${c}Changed`}getValue(c){return i!==void 0&&i.watch(c,this.name),c[this.field]}setValue(c,m){const S=this.field,we=c[S];if(we!==m){c[S]=m;const ft=c[this.callback];Zt(ft)&&ft.call(c,we,m),r(c).notify(this.name)}}}class u extends gs{constructor(c,m,S=!1){super(c,m),this.expression=c,this.isVolatileBinding=S,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(c){this.isAsync=this.needsQueue=c}bind(c){this.controller=c;const m=this.observe(c.source,c.context);return!c.isBound&&this.requiresUnbind(c)&&c.onUnbind(this),m}requiresUnbind(c){return c.sourceLifetime!==ri.coupled||this.first!==this.last||this.first.propertySource!==c.source}unbind(c){this.dispose()}observe(c,m){this.needsRefresh&&this.last!==null&&this.dispose();const S=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let we;try{we=this.expression(c,m)}finally{i=S}return we}disconnect(){this.dispose()}dispose(){if(this.last!==null){let c=this.first;for(;c!==void 0;)c.notifier.unsubscribe(this,c.propertyName),c=c.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(c,m){const S=this.last,we=r(c),ft=S===null?this.first:{};if(ft.propertySource=c,ft.propertyName=m,ft.notifier=we,we.subscribe(this,m),S!==null){if(!this.needsRefresh){let kr;i=void 0,kr=S.propertySource[S.propertyName],i=this,c===kr&&(this.needsRefresh=!0)}S.next=ft}this.last=ft}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 c=this.first;for(;c!==void 0;)yield c,c=c.next}}return zt(u),Object.freeze({setArrayObserverFactory(h){s=h},getNotifier:r,track(h,c){i&&i.watch(h,c)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(h,c){r(h).notify(c)},defineProperty(h,c){We(c)&&(c=new d(c)),n(h).push(c),Reflect.defineProperty(h,c.name,{enumerable:!0,get(){return c.getValue(this)},set(m){c.setValue(this,m)}})},getAccessors:n,binding(h,c,m=this.isVolatileBinding(h)){return new u(h,c,m)},isVolatileBinding(h){return e.test(h.toString())}})});function $(o,e){f.defineProperty(o,e)}function fs(o,e,t){return Object.assign({},t,{get(){return f.trackVolatile(),t.get.apply(this)}})}const Pr=pe.getById(It.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),Jt=Object.freeze({default:{index:0,length:0,get event(){return Jt.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return Pr.get()},setEvent(o){Pr.set(o)}});class ni{constructor(e,t,i=!1){this.evaluate=e,this.policy=t,this.isVolatile=i}}class Qa extends ni{createObserver(e){return f.binding(this.evaluate,e,this.isVolatile)}}function ms(o,e,t=f.isVolatileBinding(o)){return new Qa(o,e,t)}class Tr extends ni{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}zt(Tr);function Br(o,e){return new Tr(o,e)}let Ar;function Er(o){return o.map(e=>e instanceof Pe?Er(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class Pe{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof Pe?t.behaviors:null).reduce((t,i)=>i===null?t:t===null?i:t.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(Ar),this._strategy}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=this.behaviors===null?e:this.behaviors.concat(e),this}withStrategy(e){return this._strategy=new e(Er(this.styles)),this}static setDefaultStrategy(e){Ar=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new Pe(e):e instanceof Pe?e:new Pe([e])}}Pe.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const $s=bs(),vs=Object.freeze({getForInstance:$s.getForInstance,getByType:$s.getByType,define(o){return $s.register({type:o}),o}});function ys(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class ks{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const i=e.source;if(!i.$cssBindings){i.$cssBindings=new Map;const r=i.setAttribute;i.setAttribute=(n,d)=>{r.call(i,n,d),n==="style"&&i.$cssBindings.forEach((u,h)=>ys(h,u.controller,u.observer))}}const s=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);s.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:s})}connectedCallback(e){ys(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){ys(this,t.controller,t)}}vs.define(ks);const Za=`${Math.random().toString(36).substring(2,8)}`;let Ja=0;const Or=()=>`--v${Za}${++Ja}`;function Fr(o,e){const t=[];let i="";const s=[],r=n=>{s.push(n)};for(let n=0,d=o.length-1;n<d;++n){i+=o[n];let u=e[n];Zt(u)?u=new ks(ms(u),Or()).createCSS(r):u instanceof ni?u=new ks(u,Or()).createCSS(r):vs.getForInstance(u)!==void 0&&(u=u.createCSS(r)),u instanceof Pe||u instanceof CSSStyleSheet?(i.trim()!==""&&(t.push(i),i=""),t.push(u)):i+=u}return i+=o[o.length-1],i.trim()!==""&&t.push(i),{styles:t,behaviors:s}}const p=(o,...e)=>{const{styles:t,behaviors:i}=Fr(o,e),s=new Pe(t);return i.length?s.withBehaviors(...i):s};class Nr{constructor(e,t){this.behaviors=t,this.css="";const i=e.reduce((s,r)=>(We(r)?this.css+=r:s.push(r),s),[]);i.length&&(this.styles=new Pe(i))}createCSS(e){return this.behaviors.forEach(e),this.styles&&e(this),this.css}addedCallback(e){e.addStyles(this.styles)}removedCallback(e){e.removeStyles(this.styles)}}vs.define(Nr),p.partial=(o,...e)=>{const{styles:t,behaviors:i}=Fr(o,e);return new Nr(t,i)};const _r=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,Mr=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,Dr=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,Lr=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,Vr=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,Hr=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Rr(o){return o&&o.nodeType===Node.COMMENT_NODE}const Ge=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(o,e){return`fe-b$$start$$${o}$$${e}$$fe-b`},contentBindingEndMarker(o,e){return`fe-b$$end$$${o}$$${e}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return _r.test(o)},isContentBindingEndMarker(o){return Mr.test(o)},isRepeatViewStartMarker(o){return Dr.test(o)},isRepeatViewEndMarker(o){return Lr.test(o)},isElementBoundaryStartMarker(o){return Rr(o)&&Vr.test(o.data.trim())},isElementBoundaryEndMarker(o){return Rr(o)&&Hr.test(o.data)},parseAttributeBinding(o){const e=o.getAttribute(this.attributeMarkerName);return e===null?e:e.split(this.attributeBindingSeparator).map(t=>parseInt(t))},parseContentBindingStartMarker(o){return Wr(_r,o)},parseContentBindingEndMarker(o){return Wr(Mr,o)},parseRepeatStartMarker(o){return jr(Dr,o)},parseRepeatEndMarker(o){return jr(Lr,o)},parseElementBoundaryStartMarker(o){return qr(Vr,o.trim())},parseElementBoundaryEndMarker(o){return qr(Hr,o)}});function jr(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function qr(o,e){const t=o.exec(e);return t===null?t:t[1]}function Wr(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const ai=Symbol.for("fe-hydration");function li(o){return o[ai]===ai}const xs=`fast-${Math.random().toString(36).substring(2,8)}`,ci=`${xs}{`,wo=`}${xs}`,el=wo.length;let tl=0;const Co=()=>`${xs}-${++tl}`,Gr=Object.freeze({interpolation:o=>`${ci}${o}${wo}`,attribute:o=>`${Co()}="${ci}${o}${wo}"`,comment:o=>`<!--${ci}${o}${wo}-->`}),di=Object.freeze({parse(o,e){const t=o.split(ci);if(t.length===1)return null;const i=[];for(let s=0,r=t.length;s<r;++s){const n=t[s],d=n.indexOf(wo);let u;if(d===-1)u=n;else{const h=n.substring(0,d);i.push(e[h]),u=n.substring(d+el)}u!==""&&i.push(u)}return i}}),ws=bs(),Me=Object.freeze({getForInstance:ws.getForInstance,getByType:ws.getByType,define(o,e){return e=e||{},e.type=o,ws.register(e),o},assignAspect(o,e){if(!e){o.aspectType=re.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?re.tokenList:re.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=re.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=re.event;break;default:o.targetAspect=e,o.aspectType=re.attribute;break}}});class Cs{constructor(e){this.options=e}createHTML(e){return Gr.attribute(e(this))}createBehavior(){return this}}zt(Cs);class Ur extends Error{constructor(e,t,i){super(e),this.factories=t,this.node=i}}function Ss(o){return o.nodeType===Node.COMMENT_NODE}function Xr(o){return o.nodeType===Node.TEXT_NODE}function Kr(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,Ss(e)||Xr(e)?e.data.length:e.childNodes.length),t}function ol(o){return o instanceof DocumentFragment&&"mode"in o}function il(o,e,t){const i=Kr(o,e),s=i.commonAncestorContainer,r=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(h){return i.comparePoint(h,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},d={};let u=r.currentNode=o;for(;u!==null;){switch(u.nodeType){case Node.ELEMENT_NODE:{sl(u,t,n);break}case Node.COMMENT_NODE:{rl(u,r,t,n,d);break}}u=r.nextNode()}return i.detach(),{targets:n,boundaries:d}}function sl(o,e,t){const i=Ge.parseAttributeBinding(o);if(i!==null){for(const s of i){if(!e[s])throw new Ur(`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.`,e,o);hi(e[s],o,t)}o.removeAttribute(Ge.attributeMarkerName)}}function rl(o,e,t,i,s){if(Ge.isElementBoundaryStartMarker(o)){nl(o,e);return}if(Ge.isContentBindingStartMarker(o.data)){const r=Ge.parseContentBindingStartMarker(o.data);if(r===null)return;const[n,d]=r,u=t[n],h=[];let c=e.nextSibling();o.data="";const m=c;for(;c!==null;){if(Ss(c)){const S=Ge.parseContentBindingEndMarker(c.data);if(S&&S[1]===d)break}h.push(c),c=e.nextSibling()}if(c===null){const S=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${ol(S)?S.host.nodeName:S.nodeName}".`)}if(c.data="",h.length===1&&Xr(h[0]))hi(u,h[0],i);else{c!==m&&c.previousSibling!==null&&(s[u.targetNodeId]={first:m,last:c.previousSibling});const S=c.parentNode.insertBefore(document.createTextNode(""),c);hi(u,S,i)}}}function nl(o,e){const t=Ge.parseElementBoundaryStartMarker(o.data);let i=e.nextSibling();for(;i!==null;){if(Ss(i)){const s=Ge.parseElementBoundaryEndMarker(i.data);if(s&&s===t)break}i=e.nextSibling()}}function hi(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var Yr;function Is(o,e){const t=o.parentNode;let i=o,s;for(;i!==e;){if(s=i.nextSibling,!s)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(i),i=s}t.removeChild(e)}class Qr{constructor(){this.index=0,this.length=0}get event(){return Jt.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 ui extends Qr{constructor(e,t,i){super(),this.fragment=e,this.factories=t,this.targets=i,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=ri.unknown,this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let s=this.firstChild,r;for(;s!==t;)r=s.nextSibling,i.insertBefore(s,e),s=r;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i=this.firstChild,s;for(;i!==t;)s=i.nextSibling,e.appendChild(i),i=s;e.appendChild(t)}dispose(){Is(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let i=this.behaviors;if(i===null){this.source=e,this.context=t,this.behaviors=i=new Array(this.factories.length);const s=this.factories;for(let r=0,n=s.length;r<n;++r){const d=s[r].createBehavior();d.bind(this),i[r]=d}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let s=0,r=i.length;s<r;++s)i[s].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){Is(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}}zt(ui),f.defineProperty(ui.prototype,"index"),f.defineProperty(ui.prototype,"length");const eo={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class al extends Error{constructor(e,t,i,s){super(e),this.factory=t,this.fragment=i,this.templateString=s}}class ll extends Qr{constructor(e,t,i,s){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=i,this.hostBindingTarget=s,this[Yr]=ai,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=ri.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=eo.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=i.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(e){if(this.fragment!==null)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let s=this.firstChild,r;for(;s!==t;)r=s.nextSibling,i.insertBefore(s,e),s=r;i.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let i=this.firstChild,s;for(;i!==t;){if(s=i.nextSibling,!s)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(i),i=s}e.appendChild(t)}bind(e,t=this){var i,s;if(this.hydrationStage!==eo.hydrated&&(this._hydrationStage=eo.hydrating),this.source===e)return;let r=this.behaviors;if(r===null){this.source=e,this.context=t;try{const{targets:d,boundaries:u}=il(this.firstChild,this.lastChild,this.factories);this._targets=d,this._bindingViewBoundaries=u}catch(d){if(d instanceof Ur){let u=this.sourceTemplate.html;typeof u!="string"&&(u=u.innerHTML),d.templateString=u}throw d}this.behaviors=r=new Array(this.factories.length);const n=this.factories;for(let d=0,u=n.length;d<u;++d){const h=n[d];if(h.targetNodeId==="h"&&this.hostBindingTarget&&hi(h,this.hostBindingTarget,this._targets),h.targetNodeId in this.targets){const c=h.createBehavior();c.bind(this),r[d]=c}else{let c=this.sourceTemplate.html;throw typeof c!="string"&&(c=c.innerHTML),new al(`HydrationView was unable to successfully target bindings inside "${(s=((i=this.firstChild)===null||i===void 0?void 0:i.getRootNode()).host)===null||s===void 0?void 0:s.nodeName}".`,h,Kr(this.firstChild,this.lastChild).cloneContents(),c)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,d=r.length;n<d;++n)r[n].bind(this)}this.isBound=!0,this._hydrationStage=eo.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){Is(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}}Yr=ai,zt(ll);function cl(o){return o.create!==void 0}function dl(o,e,t,i){if(t==null&&(t=""),cl(t)){o.textContent="";let s=o.$fastView;if(s===void 0)if(li(i)&&li(t)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==eo.hydrated){const r=i.bindingViewBoundaries[this.targetNodeId];s=t.hydrate(r.first,r.last)}else s=t.create();else o.$fastTemplate!==t&&(s.isComposed&&(s.remove(),s.unbind()),s=t.create());s.isComposed?s.needsBindOnly&&(s.needsBindOnly=!1,s.bind(i.source,i.context)):(s.isComposed=!0,s.bind(i.source,i.context),s.insertBefore(o),o.$fastView=s,o.$fastTemplate=t)}else{const s=o.$fastView;s!==void 0&&s.isComposed&&(s.isComposed=!1,s.remove(),s.needsBindOnly?s.needsBindOnly=!1:s.unbind()),o.textContent=t}}function hl(o,e,t){var i;const s=`${this.id}-t`,r=(i=o[s])!==null&&i!==void 0?i:o[s]={v:0,cv:Object.create(null)},n=r.cv;let d=r.v;const u=o[e];if(t!=null&&t.length){const h=t.split(/\s+/);for(let c=0,m=h.length;c<m;++c){const S=h[c];S!==""&&(n[S]=d,u.add(S))}}if(r.v=d+1,d!==0){d-=1;for(const h in n)n[h]===d&&u.remove(h)}}const ul={[re.attribute]:Pt.setAttribute,[re.booleanAttribute]:Pt.setBooleanAttribute,[re.property]:(o,e,t)=>o[e]=t,[re.content]:dl,[re.tokenList]:hl,[re.event]:()=>{}};class to{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=re.content}createHTML(e){return Gr.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=ul[this.aspectType],i=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw pe.error(1205);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const i=e.targets[this.targetNodeId],s=li(e)&&e.hydrationStage&&e.hydrationStage!==eo.hydrated;switch(this.aspectType){case re.event:i[this.data]=e,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case re.content:e.onUnbind(this);default:const r=(t=i[this.data])!==null&&t!==void 0?t:i[this.data]=this.dataBinding.createObserver(this,this);if(r.target=i,r.controller=e,s&&(this.aspectType===re.attribute||this.aspectType===re.booleanAttribute)){r.bind(e);break}this.updateTarget(i,this.targetAspect,r.bind(e),e);break}}unbind(e){const i=e.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){Jt.setEvent(e);const i=this.dataBinding.evaluate(t.source,t.context);Jt.setEvent(null),i!==!0&&e.preventDefault()}}handleChange(e,t){const i=t.target,s=t.controller;this.updateTarget(i,this.targetAspect,t.bind(s),s)}}Me.define(to,{aspected:!0});const Zr=(o,e)=>`${o}.${e}`,Jr={},Ue={index:0,node:null};function en(o){o.startsWith("fast-")||pe.warn(1204,{name:o})}const pl=new Proxy(document.createElement("div"),{get(o,e){en(e);const t=Reflect.get(o,e);return Zt(t)?t.bind(o):t},set(o,e,t){return en(e),Reflect.set(o,e,t)}});class bl{constructor(e,t,i){this.fragment=e,this.directives=t,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,i,s,r){var n,d;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(t,i,s)),e.id=(n=e.id)!==null&&n!==void 0?n:Co(),e.targetNodeId=i,e.targetTagName=r,e.policy=(d=e.policy)!==null&&d!==void 0?d:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,i){const s=this.descriptors;if(t==="r"||t==="h"||s[t])return;if(!s[e]){const n=e.lastIndexOf("."),d=e.substring(0,n),u=parseInt(e.substring(n+1));this.addTargetDescriptor(d,e,u)}let r=Jr[t];if(!r){const n=`_${t}`;Jr[t]=r={get(){var d;return(d=this[n])!==null&&d!==void 0?d:this[n]=this[e].childNodes[i]}}}s[t]=r}createView(e){const t=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=t,i.h=e??pl;for(const s of this.nodeIds)i[s];return new ui(t,this.factories,i)}}function tn(o,e,t,i,s,r=!1){const n=t.attributes,d=o.directives;for(let u=0,h=n.length;u<h;++u){const c=n[u],m=c.value,S=di.parse(m,d);let we=null;S===null?r&&(we=new to(Br(()=>m,o.policy)),Me.assignAspect(we,c.name)):we=zs.aggregate(S,o.policy),we!==null&&(t.removeAttributeNode(c),u--,h--,o.addFactory(we,e,i,s,t.tagName))}}function gl(o,e,t,i,s){const r=di.parse(e.textContent,o.directives);if(r===null)return Ue.node=e.nextSibling,Ue.index=s+1,Ue;let n,d=n=e;for(let u=0,h=r.length;u<h;++u){const c=r[u];u!==0&&(s++,i=Zr(t,s),n=d.parentNode.insertBefore(document.createTextNode(""),d.nextSibling)),We(c)?n.textContent=c:(n.textContent=" ",Me.assignAspect(c),o.addFactory(c,t,i,s,null)),d=n}return Ue.index=s+1,Ue.node=d.nextSibling,Ue}function on(o,e,t){let i=0,s=e.firstChild;for(;s;){const r=fl(o,t,s,i);s=r.node,i=r.index}}function fl(o,e,t,i){const s=Zr(e,i);switch(t.nodeType){case 1:tn(o,e,t,s,i),on(o,t,s);break;case 3:return gl(o,t,e,s,i);case 8:const r=di.parse(t.data,o.directives);r!==null&&o.addFactory(zs.aggregate(r),e,s,i,null);break}return Ue.index=i+1,Ue.node=t.nextSibling,Ue}function ml(o,e){return o&&o.nodeType==8&&di.parse(o.data,e)!==null}const sn="TEMPLATE",zs={compile(o,e,t=Pt.policy){let i;if(We(o)){i=document.createElement(sn),i.innerHTML=t.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===sn&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const s=document.adoptNode(i.content),r=new bl(s,e,t);return tn(r,"",i,"h",0,!0),(ml(s.firstChild,e)||s.childNodes.length===1&&Object.keys(e).length>0)&&s.insertBefore(document.createComment(""),s.firstChild),on(r,s,"r"),Ue.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=Pt.policy){if(o.length===1)return o[0];let t,i=!1,s;const r=o.length,n=o.map(h=>We(h)?()=>h:(t=h.sourceAspect||t,i=i||h.dataBinding.isVolatile,s=s||h.dataBinding.policy,h.dataBinding.evaluate)),d=(h,c)=>{let m="";for(let S=0;S<r;++S)m+=n[S](h,c);return m},u=new to(ms(d,s??e,i));return Me.assignAspect(u,t),u}},$l=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,vl=Object.create(null);class Tt{constructor(e,t=vl){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const i in t)e(t[i]);return this.html}}Tt.empty=new Tt(""),Me.define(Tt);function yl(o,e,t,i=Me.getForInstance(o)){if(i.aspected){const s=$l.exec(e);s!==null&&Me.assignAspect(o,s[2])}return o.createHTML(t)}class ds{constructor(e,t={},i){this.policy=i,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=zs.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new Tt(We(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw pe.error(1208);if(this.policy)throw pe.error(1207);return this.policy=e,this}render(e,t,i){const s=this.create(i);return s.bind(e),s.appendTo(t),s}static create(e,t,i){let s="";const r=Object.create(null),n=d=>{var u;const h=(u=d.id)!==null&&u!==void 0?u:d.id=Co();return r[h]=d,h};for(let d=0,u=e.length-1;d<u;++d){const h=e[d];let c=t[d],m;if(s+=h,Zt(c))c=new to(ms(c));else if(c instanceof ni)c=new to(c);else if(!(m=Me.getForInstance(c))){const S=c;c=new to(Br(()=>S))}s+=yl(c,h,n,m)}return new ds(s+e[e.length-1],r,i)}}zt(ds);const g=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return ds.create(o,e);throw pe.error(1206)};g.partial=o=>new Tt(o);class rn extends Cs{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Me.define(rn);const X=o=>new rn(o),kl=o=>o.nodeType===1,Bt=o=>o?e=>e.nodeType===1&&e.matches(o):kl;class nn extends Cs{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,Xa),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const an="slotchange";class ln extends nn{observe(e){e.addEventListener(an,this)}disconnect(e){e.removeEventListener(an,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Me.define(ln);function K(o){return We(o)&&(o={property:o}),new ln(o)}class cn extends nn{constructor(e){super(e),this.observerProperty=Symbol(),this.handleEvent=(t,i)=>{const s=i.target;this.updateTarget(this.getSource(s),this.computeNodes(s))},e.childList=!0}observe(e){let t=e[this.observerProperty];t||(t=new MutationObserver(this.handleEvent),t.toJSON=wr,e[this.observerProperty]=t),t.target=e,t.observe(e,this.options)}disconnect(e){const t=e[this.observerProperty];t.target=null,t.disconnect()}getNodes(e){return"selector"in this.options?Array.from(e.querySelectorAll(this.options.selector)):Array.from(e.childNodes)}}Me.define(cn);function xl(o){return We(o)&&(o={property:o}),new cn(o)}const dn="boolean",hn="reflect",pi=Object.freeze({locate:Sr()}),wl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function un(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const ae={toView(o){const e=un(o);return e&&e.toString()},fromView:un};class hs{constructor(e,t,i=t.toLowerCase(),s=hn,r){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=s,this.converter=r,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,s===dn&&r===void 0&&(this.converter=wl)}setValue(e,t){const i=e[this.fieldName],s=this.converter;s!==void 0&&(t=s.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return f.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||t==="fromView"||ne.enqueue(()=>{i.add(e);const s=e[this.fieldName];switch(t){case hn:const r=this.converter;Pt.setAttribute(e,this.attribute,r!==void 0?r.toView(s):s);break;case dn:Pt.setBooleanAttribute(e,this.attribute,s);break}i.delete(e)})}static collect(e,...t){const i=[];t.push(pi.locate(e));for(let s=0,r=t.length;s<r;++s){const n=t[s];if(n!==void 0)for(let d=0,u=n.length;d<u;++d){const h=n[d];We(h)?i.push(new hs(e,h)):i.push(new hs(e,h.property,h.attribute,h.mode,h.converter))}}return i}}function a(o,e){let t;function i(s,r){arguments.length>1&&(t.property=r),pi.locate(s.constructor).push(t)}if(arguments.length>1){t={},i(o,e);return}return t=o===void 0?{}:o,i}const pn={mode:"open"},bn={},gn=new Set,bi=pe.getById(It.elementRegistry,()=>bs());class qe{constructor(e,t=e.definition){var i;this.platformDefined=!1,We(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=(i=t.registry)!==null&&i!==void 0?i:customElements;const s=e.prototype,r=hs.collect(e,t.attributes),n=new Array(r.length),d={},u={};for(let h=0,c=r.length;h<c;++h){const m=r[h];n[h]=m.attribute,d[m.name]=m,u[m.attribute]=m,f.defineProperty(s,m)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=d,this.attributeLookup=u,this.shadowOptions=t.shadowOptions===void 0?pn:t.shadowOptions===null?void 0:Object.assign(Object.assign({},pn),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?bn:Object.assign(Object.assign({},bn),t.elementOptions),this.styles=Pe.normalize(t.styles),bi.register(this)}get isDefined(){return this.platformDefined}define(e=this.registry){const t=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,t,this.elementOptions)),this}static compose(e,t){return gn.has(e)||bi.getByType(e)?new qe(class extends e{},t):new qe(e,t)}static registerBaseType(e){gn.add(e)}}qe.getByType=bi.getByType,qe.getForInstance=bi.getForInstance;class Cl extends MutationObserver{constructor(e){function t(i){this.callback.call(null,i.filter(s=>this.observedNodes.has(s.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let i=null,s=!1;return{source:o,context:Jt.default,targets:t,get isBound(){return s},addBehaviorFactory(r,n){var d,u,h,c;const m=r;m.id=(d=m.id)!==null&&d!==void 0?d:Co(),m.targetNodeId=(u=m.targetNodeId)!==null&&u!==void 0?u:Co(),m.targetTagName=(h=n.tagName)!==null&&h!==void 0?h:null,m.policy=(c=m.policy)!==null&&c!==void 0?c:Pt.policy,this.addTarget(m.targetNodeId,n),this.addBehavior(m.createBehavior())},addTarget(r,n){t[r]=n},addBehavior(r){e.push(r),s&&r.bind(this)},onUnbind(r){i===null&&(i=[]),i.push(r)},connectedCallback(r){s||(s=!0,e.forEach(n=>n.bind(this)))},disconnectedCallback(r){s&&(s=!1,i!==null&&i.forEach(n=>n.unbind(this)))}}}});const Sl={bubbles:!0,composed:!0,cancelable:!0},gi="isConnected",fn=new WeakMap;function So(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:fn.get(o))!==null&&t!==void 0?t:null}let mn;class oo extends zr{constructor(e,t){super(e),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=e,this.definition=t;const i=t.shadowOptions;if(i!==void 0){let r=e.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=e.attachShadow(i),i.mode==="closed"&&fn.set(e,r))}const s=f.getAccessors(e);if(s.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,d=s.length;n<d;++n){const u=s[n].name,h=e[u];h!==void 0&&(delete e[u],r[u]=h)}}}get isConnected(){return f.track(this,gi),this.stage===1}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:Jt.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,i;const s=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,r=(i=s.get(e))!==null&&i!==void 0?i:0;r===0?(s.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):s.set(e,r+1)}removeBehavior(e,t=!1){const i=this.behaviors;if(i===null)return;const s=i.get(e);s!==void 0&&(s===1||t?(i.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):i.set(e,s-1))}addStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=So(i))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(i)){const s=e.behaviors;if(e.addStylesTo(i),s!==null)for(let r=0,n=s.length;r<n;++r)this.addBehavior(s[r])}}removeStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=So(i))!==null&&t!==void 0?t:i).removeChild(e);else if(e.isAttachedTo(i)){const s=e.behaviors;if(e.removeStylesFrom(i),s!==null)for(let r=0,n=s.length;r<n;++r)this.removeBehavior(s[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,f.notify(this,gi))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,i=Object.keys(t);for(let s=0,r=i.length;s<r;++s){const n=i[s];e[n]=t[n]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,f.notify(this,gi),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,i){const s=this.definition.attributeLookup[e];s!==void 0&&s.onAttributeChangedCallback(this.source,i)}emit(e,t,i){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},Sl),i))):!1}renderTemplate(e){var t;const i=this.source,s=(t=So(i))!==null&&t!==void 0?t:i;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=s.firstChild;r!==null;r=s.firstChild)s.removeChild(r)}e&&(this.view=e.render(i,s,i),this.view.sourceLifetime=ri.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const i=qe.getForInstance(e);if(i===void 0)throw pe.error(1401);return e.$fastController=new mn(e,i)}static setStrategy(e){mn=e}}zt(oo),oo.setStrategy(oo);function fi(o){var e;return"adoptedStyleSheets"in o?o:(e=So(o))!==null&&e!==void 0?e:o.getRootNode()}class us{constructor(e){const t=us.styleSheetCache;this.sheets=e.map(i=>{if(i instanceof CSSStyleSheet)return i;let s=t.get(i);return s===void 0&&(s=new CSSStyleSheet,s.replaceSync(i),t.set(i,s)),s})}addStylesTo(e){vn(fi(e),this.sheets)}removeStylesFrom(e){yn(fi(e),this.sheets)}}us.styleSheetCache=new Map;let Il=0;const zl=()=>`fast-${++Il}`;function $n(o){return o===document?document.body:o}class Pl{constructor(e){this.styles=e,this.styleClass=zl()}addStylesTo(e){e=$n(fi(e));const t=this.styles,i=this.styleClass;for(let s=0;s<t.length;s++){const r=document.createElement("style");r.innerHTML=t[s],r.className=i,e.append(r)}}removeStylesFrom(e){e=$n(fi(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,s=t.length;i<s;++i)e.removeChild(t[i])}}let vn=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},yn=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(Pe.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),vn=(o,e)=>{o.adoptedStyleSheets.push(...e)},yn=(o,e)=>{for(const t of e){const i=o.adoptedStyleSheets.indexOf(t);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}Pe.setDefaultStrategy(us)}else Pe.setDefaultStrategy(Pl);const kn="defer-hydration",xn="needs-hydration";class Qt extends oo{static hydrationObserverHandler(e){for(const t of e)Qt.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(xn)!==null),this.source.hasAttribute(kn)){Qt.hydrationObserver.observe(this.source,{attributeFilter:[kn]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const i=this.source,s=(e=So(i))!==null&&e!==void 0?e:i;if(this.template)if(li(this.template)){let r=s.firstChild,n=s.lastChild;i.shadowRoot===null&&(Ge.isElementBoundaryStartMarker(r)&&(r.data="",r=r.nextSibling),Ge.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(r,n,i),(t=this.view)===null||t===void 0||t.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(xn),this.needsInitialization=this.needsHydration=!1,f.notify(this,gi)}disconnect(){super.disconnect(),Qt.hydrationObserver.unobserve(this.source)}static install(){oo.setStrategy(Qt)}}Qt.hydrationObserver=new Cl(Qt.hydrationObserverHandler);function wn(o){const e=class extends o{constructor(){super(),oo.forCustomElement(this)}$emit(t,i,s){return this.$fastController.emit(t,i,s)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,i,s){this.$fastController.onAttributeChangedCallback(t,i,s)}};return qe.registerBaseType(e),e}function Tl(o,e){return Zt(o)?qe.compose(o,e):qe.compose(this,o)}function Bl(o,e){return Zt(o)?qe.compose(o,e).define().type:qe.compose(this,o).define().type}function Al(o){return wn(o)}const w=Object.assign(wn(HTMLElement),{from:Al,define:Bl,compose:Tl}),Te={horizontal:"horizontal",vertical:"vertical"};function El(o,e){let t=o.length;for(;t--;)if(e(o[t],t,o))return t;return-1}function Cn(...o){return o.every(e=>e instanceof HTMLElement)}const mi="ArrowDown",$i="ArrowLeft",vi="ArrowRight",yi="ArrowUp",ki="End",xi="Enter",Ol="Escape",wi="Home",Ps=" ",Fl="Tab";var Xe;(function(o){o.ltr="ltr",o.rtl="rtl"})(Xe||(Xe={}));function Nl(o,e,t){return t<o?e:t>e?o:t}function Ts(o,e,t){return Math.min(Math.max(t,o),e)}let _l=0;function io(o=""){return`${o}${_l++}`}var Ml=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,Y=(o,e,t,i)=>{for(var s=i>1?void 0:i?Dl(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Ml(e,t,s),s};class Q{}Y([a({attribute:"aria-atomic"})],Q.prototype,"ariaAtomic",2),Y([a({attribute:"aria-busy"})],Q.prototype,"ariaBusy",2),Y([a({attribute:"aria-controls"})],Q.prototype,"ariaControls",2),Y([a({attribute:"aria-current"})],Q.prototype,"ariaCurrent",2),Y([a({attribute:"aria-describedby"})],Q.prototype,"ariaDescribedby",2),Y([a({attribute:"aria-details"})],Q.prototype,"ariaDetails",2),Y([a({attribute:"aria-disabled"})],Q.prototype,"ariaDisabled",2),Y([a({attribute:"aria-errormessage"})],Q.prototype,"ariaErrormessage",2),Y([a({attribute:"aria-flowto"})],Q.prototype,"ariaFlowto",2),Y([a({attribute:"aria-haspopup"})],Q.prototype,"ariaHaspopup",2),Y([a({attribute:"aria-hidden"})],Q.prototype,"ariaHidden",2),Y([a({attribute:"aria-invalid"})],Q.prototype,"ariaInvalid",2),Y([a({attribute:"aria-keyshortcuts"})],Q.prototype,"ariaKeyshortcuts",2),Y([a({attribute:"aria-label"})],Q.prototype,"ariaLabel",2),Y([a({attribute:"aria-labelledby"})],Q.prototype,"ariaLabelledby",2),Y([a({attribute:"aria-live"})],Q.prototype,"ariaLive",2),Y([a({attribute:"aria-owns"})],Q.prototype,"ariaOwns",2),Y([a({attribute:"aria-relevant"})],Q.prototype,"ariaRelevant",2),Y([a({attribute:"aria-roledescription"})],Q.prototype,"ariaRoledescription",2);const Bs={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}},As=o=>o.closest("[dir]")?.dir==="rtl"?Xe.rtl:Xe.ltr;function ve(o){return o?typeof o=="string"?new Tt(o):"inline"in o?o.inline():o:Tt.empty}const Es=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,Ll=":host([hidden]){display:none}";function I(o){return`${Ll}:host{display:${o}}`}class Vl{constructor(e){this.listenerCache=new WeakMap,this.query=e}connectedCallback(e){const{query:t}=this;let i=this.listenerCache.get(e);i||(i=this.constructListener(e),this.listenerCache.set(e,i)),i.bind(t)(),t.addEventListener("change",i)}disconnectedCallback(e){const t=this.listenerCache.get(e);t&&this.query.removeEventListener("change",t)}}class oi extends Vl{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new oi(e,t)}constructListener(e){let t=!1;const i=this.styles;return function(){const{matches:r}=this;r&&!t?(e.addStyles(i),t=r):!r&&t&&(e.removeStyles(i),t=r)}}removedCallback(e){e.removeStyles(this.styles)}}const le=oi.with(window.matchMedia("(forced-colors)"));oi.with(window.matchMedia("(prefers-color-scheme: dark)")),oi.with(window.matchMedia("(prefers-color-scheme: light)"));const Sn=CSS.supports("anchor-name: --a"),Hl="anchor"in HTMLElement.prototype,In=CSS.supports("selector(:state(g))");class rt{}function mt(o){return g`<slot name="end" ${X("end")}>${ve(o.end)}</slot>`.inline()}function Ke(o){return g`<slot name="start" ${X("start")}>${ve(o.start)}</slot>`.inline()}function nt(o,...e){const t=pi.locate(o);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(i.prototype,r))}),pi.locate(i).forEach(r=>t.push(r))})}const zn=new Map;function l(o){return zn.get(o)??zn.set(o,In?`:state(${o})`:`[state--${o}]`).get(o)}function v(o,e,t){if(!(!e||!o)){if(!In){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Os=new WeakMap;function Fs(o,e){if(!o||!e)return!1;if(Os.has(o))return Os.get(o).has(e);const t=new Set(Object.values(o));return Os.set(o,t),t.has(e)}function y(o,e="",t="",i,s=""){v(o,`${s}${e}`,!1),(!i||Fs(i,t))&&v(o,`${s}${t}`,!0)}const Rl={small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},jl={start:"start",end:"end"};var ql=Object.defineProperty,Wl=Object.getOwnPropertyDescriptor,At=(o,e,t,i)=>{for(var s=i>1?void 0:i?Wl(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&ql(e,t,s),s};class at extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=io("accordion-")}expandedChanged(e,t){v(this.elementInternals,"expanded",t)}disabledChanged(e,t){v(this.elementInternals,"disabled",t)}}At([a({attribute:"heading-level",mode:"fromView",converter:ae})],at.prototype,"headinglevel",2),At([a({mode:"boolean"})],at.prototype,"expanded",2),At([a({mode:"boolean"})],at.prototype,"disabled",2),At([a],at.prototype,"id",2);class Io extends at{constructor(){super(...arguments),this.block=!1}sizeChanged(e,t){y(this.elementInternals,e,t,Rl)}markerPositionChanged(e,t){y(this.elementInternals,e,t,jl,"align-")}blockChanged(e,t){v(this.elementInternals,"block",t)}}At([a],Io.prototype,"size",2),At([a({attribute:"marker-position"})],Io.prototype,"markerPosition",2),At([a({mode:"boolean"})],Io.prototype,"block",2),nt(Io,rt);const Gl=l("active"),lt=l("align-end"),Pn=l("align-start"),Ul=l("anchor"),Tn=l("auto-resize"),Xl=l("bad-input"),Kl=l("beige"),zo=l("block"),Yl=l("blue"),Ql=l("bold"),Zl=l("bordered"),Ye=l("brand"),Jl=l("brass"),ec=l("brown"),tc=l("center"),x=l("checked"),Po=l("circular"),oc=l("cornflower"),ic=l("cranberry"),sc=l("custom-error"),Ci=l("danger"),rc=l("dark-green"),nc=l("dark-red"),ac=l("description"),_=l("disabled"),Bn=l("display-shadow"),An=l("dot"),lc=l("end"),Ns=l("error"),Et=l("expanded"),Si=l("extra-large"),To=l("extra-small"),$t=l("filled-darker"),Ot=l("filled-lighter"),cc=l("fit-center"),dc=l("fit-contain"),hc=l("fit-cover"),uc=l("fit-none"),pc=l("flip-block"),bc=l("focus-visible"),gc=l("forest"),ct=l("ghost"),fc=l("gold"),mc=l("grape"),$c=l("has-message"),vc=l("huge"),vt=l("icon"),Ii=l("important"),Ft=l("indeterminate"),zi=l("informative"),yc=l("inline"),_s=l("inset"),En=l("inverted"),kc=l("italic"),xc=l("justify"),C=l("large"),wc=l("lavender"),Cc=l("light-teal"),Sc=l("lilac"),Ic=l("magenta"),zc=l("marigold"),Pc=l("medium"),Tc=l("mink"),Bc=l("monospace"),Bo=l("multiline"),so=l("multiple"),Ac=l("navy"),Pi=l("neutral"),On=l("nowrap"),Ec=l("numeric"),Oc=l("open"),F=l("outline"),Fc=l("pattern-mismatch"),Nc=l("peach"),_c=l("pink"),Mc=l("placeholder-shown"),Dc=l("platinum"),Lc=l("plum"),D=l("pressed"),ye=l("primary"),Vc=l("pumpkin"),Hc=l("purple"),Rc=l("range-overflow"),jc=l("range-underflow"),qc=l("red"),Wc=l("resize-both"),Gc=l("resize-horizontal"),Uc=l("resize-vertical"),dt=l("rounded"),Xc=l("royal-blue"),Kc=l("seafoam"),Ms=l("selected"),Fn=l("semibold"),Ti=l("severe"),Yc=l("shadow"),Qc=l("size-1000"),Zc=l("size-100"),Jc=l("size-200"),ed=l("size-400"),td=l("size-500"),od=l("size-600"),id=l("size-700"),sd=l("size-800"),rd=l("size-900"),P=l("small"),Ao=l("square"),nd=l("steel"),ad=l("step-mismatch"),Nn=l("strikethrough"),Eo=l("strong"),Bi=l("submenu"),B=l("subtle"),Nt=l("success"),ld=l("teal"),yt=l("tint"),Oo=l("tiny"),cd=l("too-long"),dd=l("too-short"),H=l("transparent"),_n=l("truncate"),hd=l("type-mismatch"),_t=l("underline"),ud=l("user-invalid"),pd=l("valid"),bd=l("value-missing"),z=l("vertical"),Mt=l("warning"),O="var(--colorNeutralForeground1)",Ds="var(--colorNeutralForeground1Hover)",gd="var(--colorNeutralForeground1Pressed)",De="var(--colorNeutralForeground2)",Fo="var(--colorNeutralForeground2Hover)",No="var(--colorNeutralForeground2Pressed)",fd="var(--colorNeutralForeground2Selected)",Ai="var(--colorNeutralForeground2BrandHover)",Ei="var(--colorNeutralForeground2BrandPressed)",md="var(--colorNeutralForeground2BrandSelected)",be="var(--colorNeutralForeground3)",$d="var(--colorNeutralForeground3Hover)",vd="var(--colorNeutralForeground3Pressed)",Ls="var(--colorNeutralForeground4)",A="var(--colorNeutralForegroundDisabled)",yd="var(--colorBrandForegroundLink)",kd="var(--colorBrandForegroundLinkHover)",xd="var(--colorBrandForegroundLinkPressed)",wd="var(--colorNeutralForeground2Link)",Cd="var(--colorNeutralForeground2LinkHover)",Sd="var(--colorNeutralForeground2LinkPressed)",Mn="var(--colorCompoundBrandForeground1Hover)",Id="var(--colorCompoundBrandForeground1Pressed)",ht="var(--colorNeutralForegroundOnBrand)",Dt="var(--colorNeutralForegroundInverted)",zd="var(--colorNeutralForegroundInvertedHover)",Pd="var(--colorNeutralForegroundInvertedPressed)",Dn="var(--colorNeutralForegroundStaticInverted)",Vs="var(--colorBrandForeground1)",Td="var(--colorBrandForeground2)",Bd="var(--colorNeutralForeground1Static)",E="var(--colorNeutralBackground1)",Oi="var(--colorNeutralBackground1Hover)",Fi="var(--colorNeutralBackground1Pressed)",Ln="var(--colorNeutralBackground1Selected)",_o="var(--colorNeutralBackground3)",Ad="var(--colorNeutralBackground4)",Ed="var(--colorNeutralBackground5)",Ni="var(--colorNeutralBackground6)",Vn="var(--colorNeutralBackgroundInverted)",Od="var(--colorSubtleBackground)",_i="var(--colorSubtleBackgroundHover)",ro="var(--colorSubtleBackgroundPressed)",Fd="var(--colorSubtleBackgroundSelected)",Be="var(--colorTransparentBackground)",Hs="var(--colorTransparentBackgroundHover)",Rs="var(--colorTransparentBackgroundPressed)",Nd="var(--colorTransparentBackgroundSelected)",kt="var(--colorNeutralBackgroundDisabled)",js="var(--colorBackgroundOverlay)",qs="var(--colorBrandBackground)",Hn="var(--colorBrandBackgroundHover)",Rn="var(--colorBrandBackgroundPressed)",_d="var(--colorBrandBackgroundSelected)",Lt="var(--colorCompoundBrandBackground)",no="var(--colorCompoundBrandBackgroundHover)",ao="var(--colorCompoundBrandBackgroundPressed)",jn="var(--colorBrandBackgroundStatic)",Md="var(--colorBrandBackground2)",Qe="var(--colorNeutralStrokeAccessible)",Vt="var(--colorNeutralStrokeAccessibleHover)",Ht="var(--colorNeutralStrokeAccessiblePressed)",Ze="var(--colorNeutralStroke1)",lo="var(--colorNeutralStroke1Hover)",Mo="var(--colorNeutralStroke1Pressed)",Do="var(--colorNeutralStroke2)",Dd="var(--colorNeutralStroke3)",Ld="var(--colorNeutralStrokeOnBrand2)",qn="var(--colorBrandStroke1)",Ws="var(--colorBrandStroke2)",Rt="var(--colorCompoundBrandStroke)",Vd="var(--colorCompoundBrandStrokeHover)",Wn="var(--colorCompoundBrandStrokePressed)",Ae="var(--colorNeutralStrokeDisabled)",ce="var(--colorTransparentStroke)",Gs="var(--colorTransparentStrokeInteractive)",Us="var(--colorStrokeFocus1)",Le="var(--colorStrokeFocus2)",Hd="var(--colorNeutralShadowAmbient)",Rd="var(--colorNeutralShadowKey)",Gn="var(--colorPaletteRedBackground1)",jd="var(--colorPaletteRedBackground2)",Un="var(--colorPaletteRedBackground3)",Xn="var(--colorPaletteRedBorder1)",Xs="var(--colorPaletteRedBorder2)",Kn="var(--colorPaletteRedForeground1)",qd="var(--colorPaletteRedForeground2)",Yn="var(--colorPaletteRedForeground3)",Qn="var(--colorPaletteGreenBackground1)",Zn="var(--colorPaletteGreenBackground3)",Wd="var(--colorPaletteGreenBorder1)",Gd="var(--colorPaletteGreenBorder2)",Ud="var(--colorPaletteGreenForeground1)",Xd="var(--colorPaletteGreenForeground2)",Kd="var(--colorPaletteGreenForeground3)",Jn="var(--colorPaletteDarkOrangeBackground1)",ea="var(--colorPaletteDarkOrangeBackground3)",ta="var(--colorPaletteDarkOrangeBorder1)",Yd="var(--colorPaletteDarkOrangeForeground1)",oa="var(--colorPaletteDarkOrangeForeground3)",Qd="var(--colorPaletteYellowBackground1)",Zd="var(--colorPaletteYellowBackground3)",Jd="var(--colorPaletteYellowBorder1)",Ks="var(--colorPaletteYellowForeground2)",ia="var(--colorPaletteMarigoldBackground2)",eh="var(--colorPaletteMarigoldBackground3)",th="var(--colorPaletteMarigoldForeground2)",oh="var(--colorPaletteAnchorBackground2)",ih="var(--colorPaletteAnchorForeground2)",sh="var(--colorPaletteBeigeBackground2)",rh="var(--colorPaletteBeigeForeground2)",nh="var(--colorPaletteBlueBackground2)",ah="var(--colorPaletteBlueForeground2)",lh="var(--colorPaletteBrassBackground2)",ch="var(--colorPaletteBrassForeground2)",dh="var(--colorPaletteBrownBackground2)",hh="var(--colorPaletteBrownForeground2)",uh="var(--colorPaletteCornflowerBackground2)",ph="var(--colorPaletteCornflowerForeground2)",bh="var(--colorPaletteCranberryBackground2)",gh="var(--colorPaletteCranberryForeground2)",fh="var(--colorPaletteDarkGreenBackground2)",mh="var(--colorPaletteDarkGreenForeground2)",$h="var(--colorPaletteDarkRedBackground2)",vh="var(--colorPaletteDarkRedForeground2)",yh="var(--colorPaletteForestBackground2)",kh="var(--colorPaletteForestForeground2)",xh="var(--colorPaletteGoldBackground2)",wh="var(--colorPaletteGoldForeground2)",Ch="var(--colorPaletteGrapeBackground2)",Sh="var(--colorPaletteGrapeForeground2)",Ih="var(--colorPaletteLavenderBackground2)",zh="var(--colorPaletteLavenderForeground2)",Ph="var(--colorPaletteLightTealBackground2)",Th="var(--colorPaletteLightTealForeground2)",Bh="var(--colorPaletteLilacBackground2)",Ah="var(--colorPaletteLilacForeground2)",Eh="var(--colorPaletteMagentaBackground2)",Oh="var(--colorPaletteMagentaForeground2)",Fh="var(--colorPaletteMinkBackground2)",Nh="var(--colorPaletteMinkForeground2)",_h="var(--colorPaletteNavyBackground2)",Mh="var(--colorPaletteNavyForeground2)",Dh="var(--colorPalettePeachBackground2)",Lh="var(--colorPalettePeachForeground2)",Vh="var(--colorPalettePinkBackground2)",Hh="var(--colorPalettePinkForeground2)",Rh="var(--colorPalettePlatinumBackground2)",jh="var(--colorPalettePlatinumForeground2)",qh="var(--colorPalettePlumBackground2)",Wh="var(--colorPalettePlumForeground2)",Gh="var(--colorPalettePumpkinBackground2)",Uh="var(--colorPalettePumpkinForeground2)",Xh="var(--colorPalettePurpleBackground2)",Kh="var(--colorPalettePurpleForeground2)",Yh="var(--colorPaletteRoyalBlueBackground2)",Qh="var(--colorPaletteRoyalBlueForeground2)",Zh="var(--colorPaletteSeafoamBackground2)",Jh="var(--colorPaletteSeafoamForeground2)",eu="var(--colorPaletteSteelBackground2)",tu="var(--colorPaletteSteelForeground2)",ou="var(--colorPaletteTealBackground2)",iu="var(--colorPaletteTealForeground2)",Mi="var(--borderRadiusNone)",Ve="var(--borderRadiusSmall)",T="var(--borderRadiusMedium)",sa="var(--borderRadiusLarge)",ra="var(--borderRadiusXLarge)",Ce="var(--borderRadiusCircular)",k="var(--fontFamilyBase)",su="var(--fontFamilyMonospace)",ru="var(--fontFamilyNumeric)",Lo="var(--fontSizeBase100)",G="var(--fontSizeBase200)",M="var(--fontSizeBase300)",ke="var(--fontSizeBase400)",co="var(--fontSizeBase500)",Di="var(--fontSizeBase600)",na="var(--fontSizeHero700)",aa="var(--fontSizeHero800)",la="var(--fontSizeHero900)",ca="var(--fontSizeHero1000)",R="var(--fontWeightRegular)",nu="var(--fontWeightMedium)",U="var(--fontWeightSemibold)",Li="var(--fontWeightBold)",Vi="var(--lineHeightBase100)",ee="var(--lineHeightBase200)",j="var(--lineHeightBase300)",Se="var(--lineHeightBase400)",Hi="var(--lineHeightBase500)",da="var(--lineHeightBase600)",ha="var(--lineHeightHero700)",ua="var(--lineHeightHero800)",pa="var(--lineHeightHero900)",ba="var(--lineHeightHero1000)",Ys="var(--shadow2)",Ri="var(--shadow4)",au="var(--shadow8)",Qs="var(--shadow16)",lu="var(--shadow28)",ga="var(--shadow64)",N="var(--strokeWidthThin)",Ie="var(--strokeWidthThick)",ge="var(--strokeWidthThicker)",Zs="var(--strokeWidthThickest)",te="var(--spacingHorizontalXXS)",Ee="var(--spacingHorizontalXS)",de="var(--spacingHorizontalSNudge)",Je="var(--spacingHorizontalS)",fe="var(--spacingHorizontalMNudge)",xe="var(--spacingHorizontalM)",cu="var(--spacingHorizontalL)",du="var(--spacingHorizontalXL)",hu="var(--spacingHorizontalXXL)",Vo="var(--spacingVerticalXXS)",ho="var(--spacingVerticalXS)",et="var(--spacingVerticalSNudge)",oe="var(--spacingVerticalS)",uo="var(--spacingVerticalMNudge)",uu="var(--spacingVerticalM)",ji="var(--spacingVerticalL)",Ho="var(--spacingVerticalXXL)",Js="var(--durationUltraFast)",er="var(--durationFaster)",qi="var(--durationNormal)",tr="var(--durationGentle)",fa="var(--durationSlow)",ma="var(--durationSlower)",Wi="var(--durationUltraSlow)",pu="var(--curveAccelerateMax)",jt="var(--curveAccelerateMid)",bu="var(--curveAccelerateMin)",or="var(--curveDecelerateMax)",qt="var(--curveDecelerateMid)",gu="var(--curveDecelerateMin)",fu="var(--curveEasyEaseMax)",Gi="var(--curveEasyEase)",ir="var(--curveLinear)",mu=p`
|
|
2
2
|
${I("block")}
|
|
3
3
|
|
|
4
|
-
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${xe} ${fe};border-radius:${T};font-family:${k};font-size:${M};font-weight:${R};line-height:${j};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${Be};border:none;box-sizing:border-box;color:${O};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:${
|
|
4
|
+
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${xe} ${fe};border-radius:${T};font-family:${k};font-size:${M};font-weight:${R};line-height:${j};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${Be};border:none;box-sizing:border-box;color:${O};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:${Ve}}: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:${Je};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${xe}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Je};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Ve};outline:none;border:2px solid ${Us};box-shadow:inset 0 0 0 1px ${Le}}:host(${_}) .button{color:${A}}:host(${_}) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host(${Et}) .content{display:block}:host(${Et}) .default-marker-collapsed,:host(${Et}) ::slotted([slot='marker-collapsed']),:host(:not(${Et})) :is(.default-marker-expanded,.content),:host(:not(${Et})) ::slotted([slot='marker-expanded']){display:none}:host(${Et}) ::slotted([slot='marker-expanded']),:host(:not(${Et})) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${M};line-height:${j}}:host(${P}) .heading{font-size:${G};line-height:${ee}}:host(${C}) .heading{font-size:${ke};line-height:${Se}}:host(${Si}) .heading{font-size:${co};line-height:${Hi}}:host(${lt}) :slotted([slot='start']){grid-column:1 / span 1}:host(${lt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${Je};padding-inline-end:0}:host(${lt}) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host(${lt}) .heading{grid-template-columns:auto auto 28px;padding-inline:${xe}}:host(${lt}:has([slot='start'])) .heading{padding-inline:${fe} ${xe}}:host(${zo}${lt}) .heading{grid-template-columns:auto 1fr}:host(${lt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,$u=g.partial(`<svg
|
|
5
5
|
width="20"
|
|
6
6
|
height="20"
|
|
7
7
|
viewBox="0 0 20 20"
|
|
@@ -33,7 +33,7 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
33
33
|
:host{flex-direction:column;width:100%;contain:content}`;function Iu(){return g`<template><slot ${K({property:"slottedAccordionItems",filter:Bt()})}></slot></template>`}const zu=Iu(),Pu=rr.compose({name:`${b.prefix}-accordion`,template:zu,styles:Su});Pu.define(b.registry);const va={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},ya={circular:"circular",rounded:"rounded",square:"square"},ka={small:"small",medium:"medium",large:"large"},Ui={submit:"submit",reset:"reset",button:"button"},Tu=va,Bu=ya,Au=ka,Eu={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Ou=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,Oe=(o,e,t,i)=>{for(var s=i>1?void 0:i?Fu(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Ou(e,t,s),s};class tt 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(),f.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Eu){const i=this.$fastController.definition.attributeLookup[t]?.attribute;i&&this.handleProxyAttributeChange(i,this[t])}}clickHandler(e){if(this.href){const t=this.isMac?e.metaKey:e.ctrlKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key===xi){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.ariaHidden="true",e.tabIndex=-1,e}}Oe([a],tt.prototype,"download",2),Oe([a],tt.prototype,"href",2),Oe([a],tt.prototype,"hreflang",2),Oe([a],tt.prototype,"ping",2),Oe([a],tt.prototype,"referrerpolicy",2),Oe([a],tt.prototype,"rel",2),Oe([a],tt.prototype,"target",2),Oe([a],tt.prototype,"type",2);class po extends tt{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){y(this.elementInternals,e,t,Tu)}shapeChanged(e,t){y(this.elementInternals,e,t,Bu)}sizeChanged(e,t){y(this.elementInternals,e,t,Au)}iconOnlyChanged(e,t){v(this.elementInternals,"icon",!!t)}}Oe([a],po.prototype,"appearance",2),Oe([a],po.prototype,"shape",2),Oe([a],po.prototype,"size",2),Oe([a({attribute:"icon-only",mode:"boolean"})],po.prototype,"iconOnly",2),nt(po,rt);const xa=p`
|
|
34
34
|
${I("inline-flex")}
|
|
35
35
|
|
|
36
|
-
:host{--icon-spacing:${de};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:${E};color:${O};border:${N} solid ${Ze};padding:0 ${xe};min-width:96px;border-radius:${T};font-size:${M};font-family:${k};font-weight:${U};line-height:${j};transition-duration:${er};transition-property:background,border,color;transition-timing-function:${Gi};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Oi};color:${Ds};border-color:${lo}}:host(:hover:active){background-color:${Fi};border-color:${Mo};color:${gd};outline-style:none}:host(:focus-visible){border-color:${ce};outline:${
|
|
36
|
+
:host{--icon-spacing:${de};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:${E};color:${O};border:${N} solid ${Ze};padding:0 ${xe};min-width:96px;border-radius:${T};font-size:${M};font-family:${k};font-weight:${U};line-height:${j};transition-duration:${er};transition-property:background,border,color;transition-timing-function:${Gi};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Oi};color:${Ds};border-color:${lo}}:host(:hover:active){background-color:${Fi};border-color:${Mo};color:${gd};outline-style:none}:host(:focus-visible){border-color:${ce};outline:${Ie} solid ${ce};box-shadow:${Ri},0 0 0 2px ${Le}}@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(${vt})) :is([slot='end'],:host(:not(${vt}))::slotted([slot='end'])){margin-inline-start:var(--icon-spacing)}:host(${vt}){min-width:32px;max-width:32px}:host(${P}){--icon-spacing:${Ee};min-height:24px;min-width:64px;padding:0 ${Je};border-radius:${Ve};font-size:${G};line-height:${ee};font-weight:${R}}:host(${P}${vt}){min-width:24px;max-width:24px}:host(${C}){min-height:40px;border-radius:${sa};padding:0 ${cu};font-size:${ke};line-height:${Se}}:host(${C}${vt}){min-width:40px;max-width:40px}:host(${C}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${Po},${Po}:focus-visible)){border-radius:${Ce}}:host(:is(${Ao},${Ao}:focus-visible)){border-radius:${Mi}}:host(${ye}){background-color:${qs};color:${ht};border-color:transparent}:host(${ye}:hover){background-color:${Hn}}:host(${ye}:is(:hover,:hover:active)){border-color:transparent;color:${ht}}:host(${ye}:hover:active){background-color:${Rn}}:host(${ye}:focus-visible){border-color:${ht};box-shadow:${Ys},0 0 0 2px ${Le}}:host(${F}){background-color:${Be}}:host(${F}:hover){background-color:${Hs}}:host(${F}:hover:active){background-color:${Rs}}:host(${B}){background-color:${Od};color:${De};border-color:transparent}:host(${B}:hover){background-color:${_i};color:${Fo};border-color:transparent}:host(${B}:hover:active){background-color:${ro};color:${No};border-color:transparent}:host(${B}:hover) ::slotted(svg){fill:${Ai}}:host(${B}:hover:active) ::slotted(svg){fill:${Ei}}:host(${H}){background-color:${Be};color:${De}}:host(${H}:hover){background-color:${Hs};color:${Ai}}:host(${H}:hover:active){background-color:${Rs};color:${Ei}}:host(:is(${H},${H}:is(:hover,:active))){border-color:transparent}`,Xi=p`
|
|
37
37
|
${xa}
|
|
38
38
|
|
|
39
39
|
:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${kt};border-color:${Ae};color:${A};cursor:not-allowed}:host(${ye}:is(:disabled,[disabled-focusable])),:host(${ye}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${F}:is(:disabled,[disabled-focusable])),:host(${F}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${Be}}:host(${B}:is(:disabled,[disabled-focusable])),:host(${B}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${Be};border-color:transparent}:host(${H}:is(:disabled,[disabled-focusable])),:host(${H}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${Be}}`.withBehaviors(le(p`
|
|
@@ -42,7 +42,7 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
42
42
|
|
|
43
43
|
::slotted(a){position:absolute;inset:0}`.withBehaviors(le(p`
|
|
44
44
|
:host{border-color:LinkText;color:LinkText}`));function _u(o={}){return g`<template tabindex="0" @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}">${Ke(o)}<span class="content" part="content"><slot></slot></span>${mt(o)}</template>`}const Mu=_u(),Du=po.compose({name:`${b.prefix}-anchor-button`,template:Mu,styles:Nu});Du.define(b.registry);const Lu=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Vu=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Hu=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Ru=/\s+/g,ju=/[\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 qu(o,e,t){let i="";const s=o.split(" ");return s.length!==0&&(i+=s[0].charAt(0).toUpperCase()),t||(s.length===2?i+=s[1].charAt(0).toUpperCase():s.length===3&&(i+=s[2].charAt(0).toUpperCase())),e&&i.length>1?i.charAt(1)+i.charAt(0):i}function Wu(o){return o=o.replace(Lu,""),o=o.replace(Vu,""),o=o.replace(Ru," "),o=o.trim(),o}function Gu(o,e,t){return!o||(o=Wu(o),ju.test(o)||!t?.allowPhoneInitials&&Hu.test(o))?"":qu(o,e,t?.firstInitialOnly)}const wa={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"},Ca={neutral:"neutral",brand:"brand",colorful:"colorful",...wa};var Uu=Object.defineProperty,Xu=Object.getOwnPropertyDescriptor,xt=(o,e,t,i)=>{for(var s=i>1?void 0:i?Xu(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Uu(e,t,s),s};class Ki extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}}xt([a],Ki.prototype,"name",2),xt([a],Ki.prototype,"initials",2),xt([a],Ki.prototype,"active",2);const Wt=class vr extends Ki{handleChange(e,t){switch(t){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials??Gu(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Ca.colorful,t=this.currentColor;this.currentColor=e&&this.colorId?this.colorId:e?vr.colors[Yu(this.name??"")%vr.colors.length]:this.color??Ca.neutral,y(this.elementInternals,t,this.currentColor)}connectedCallback(){super.connectedCallback(),f.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this)}};Wt.colors=Object.values(wa),xt([a],Wt.prototype,"shape",2),xt([a],Wt.prototype,"appearance",2),xt([a({converter:ae})],Wt.prototype,"size",2),xt([a],Wt.prototype,"color",2),xt([a({attribute:"color-id"})],Wt.prototype,"colorId",2);let Ku=Wt;const Yu=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const i=o.charCodeAt(t),s=t%8;e^=(i<<s)+(i>>8-s)}return e},wt={fastOutSlowInMax:or,fastOutSlowInMid:qt,fastOutSlowInMin:gu,slowOutFastInMax:pu,slowOutFastInMid:jt,slowOutFastInMin:bu,fastEase:fu,normalEase:Gi,nullEasing:ir},Qu=p`
|
|
45
|
-
${I("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${k};font-weight:${U};font-size:${M};border-radius:${
|
|
45
|
+
${I("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${k};font-weight:${U};font-size:${M};border-radius:${Ce};color:${be};background-color:${Ni};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:${Ce}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${N}) ${E}}: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 ${Ie}) ${E}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${Lo};font-weight:${R}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${G}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${ke}}: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:${co}}: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:${Di}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${T}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Ve}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${sa}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${ra}}:host(${Ye}){color:${Dn};background-color:${jn}}:host(${nc}){color:${vh};background-color:${$h}}:host(${ic}){color:${gh};background-color:${bh}}:host(${qc}){color:${qd};background-color:${jd}}:host(${Vc}){color:${Uh};background-color:${Gh}}:host(${Nc}){color:${Lh};background-color:${Dh}}:host(${zc}){color:${th};background-color:${ia}}:host(${fc}){color:${wh};background-color:${xh}}:host(${Jl}){color:${ch};background-color:${lh}}:host(${ec}){color:${hh};background-color:${dh}}:host(${gc}){color:${kh};background-color:${yh}}:host(${Kc}){color:${Jh};background-color:${Zh}}:host(${rc}){color:${mh};background-color:${fh}}:host(${Cc}){color:${Th};background-color:${Ph}}:host(${ld}){color:${iu};background-color:${ou}}:host(${nd}){color:${tu};background-color:${eu}}:host(${Yl}){color:${ah};background-color:${nh}}:host(${Xc}){color:${Qh};background-color:${Yh}}:host(${oc}){color:${ph};background-color:${uh}}:host(${Ac}){color:${Mh};background-color:${_h}}:host(${wc}){color:${zh};background-color:${Ih}}:host(${Hc}){color:${Kh};background-color:${Xh}}:host(${mc}){color:${Sh};background-color:${Ch}}:host(${Sc}){color:${Ah};background-color:${Bh}}:host(${_c}){color:${Hh};background-color:${Vh}}:host(${Ic}){color:${Oh};background-color:${Eh}}:host(${Lc}){color:${Wh};background-color:${qh}}:host(${Kl}){color:${rh};background-color:${sh}}:host(${Tc}){color:${Nh};background-color:${Fh}}:host(${Dc}){color:${jh};background-color:${Rh}}:host(${Ul}){color:${ih};background-color:${oh}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Wi},${er};transition-delay:${wt.fastEase},${wt.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Wi}),${ma};transition-delay:${wt.fastEase}),${wt.nullEasing})}:host([active])::before{box-shadow:${au};border-style:solid;border-color:${jn}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Ie});border-width:${Ie}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ge});border-width:${ge}}: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 * ${Zs});border-width:${Zs}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Ri}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Qs}}: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:${lu}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Wi},${er};transition-delay:${wt.fastOutSlowInMin},${wt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Wi},${ma};transition-delay:${wt.fastOutSlowInMin},${wt.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}}`,Zu=g`<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 Ju(){return g`<slot>${o=>o.name||o.initials?o.generateInitials():Zu}</slot><slot name="badge"></slot>`}const ep=Ju(),tp=Ku.compose({name:`${b.prefix}-avatar`,template:ep,styles:Qu});tp.define(b.registry);const Sa={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Ia={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},op={circular:"circular",rounded:"rounded",square:"square"},ip={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"};var sp=Object.defineProperty,rp=Object.getOwnPropertyDescriptor,Yi=(o,e,t,i)=>{for(var s=i>1?void 0:i?rp(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&sp(e,t,s),s};class bo extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.appearance=Sa.filled,this.color=Ia.brand}appearanceChanged(e,t){y(this.elementInternals,e,t,Sa)}colorChanged(e,t){y(this.elementInternals,e,t,Ia)}shapeChanged(e,t){y(this.elementInternals,e,t,op)}sizeChanged(e,t){y(this.elementInternals,e,t,ip)}}Yi([a],bo.prototype,"appearance",2),Yi([a],bo.prototype,"color",2),Yi([a],bo.prototype,"shape",2),Yi([a],bo.prototype,"size",2),nt(bo,rt);const za=p.partial`
|
|
46
46
|
${I("inline-flex")} :host {
|
|
47
47
|
position: relative;
|
|
48
48
|
box-sizing: border-box;
|
|
@@ -55,7 +55,7 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
55
55
|
min-width: 20px;
|
|
56
56
|
height: 20px;
|
|
57
57
|
padding-inline: calc(${Ee} + ${te});
|
|
58
|
-
border-radius: ${
|
|
58
|
+
border-radius: ${Ce};
|
|
59
59
|
border-color: ${ce};
|
|
60
60
|
background-color: ${qs};
|
|
61
61
|
color: ${ht};
|
|
@@ -301,7 +301,7 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
301
301
|
`;const lp=p.partial`
|
|
302
302
|
font-family: ${k};
|
|
303
303
|
font-size: ${ke};
|
|
304
|
-
line-height: ${
|
|
304
|
+
line-height: ${Se};
|
|
305
305
|
font-weight: ${R};
|
|
306
306
|
`,Ea=p.partial`
|
|
307
307
|
font-family: ${k};
|
|
@@ -336,12 +336,12 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
336
336
|
`;p.partial`
|
|
337
337
|
font-family: ${k};
|
|
338
338
|
font-size: ${ke};
|
|
339
|
-
line-height: ${
|
|
339
|
+
line-height: ${Se};
|
|
340
340
|
font-weight: ${U};
|
|
341
341
|
`,p.partial`
|
|
342
342
|
font-family: ${k};
|
|
343
343
|
font-size: ${ke};
|
|
344
|
-
line-height: ${
|
|
344
|
+
line-height: ${Se};
|
|
345
345
|
font-weight: ${Li};
|
|
346
346
|
`,p.partial`
|
|
347
347
|
font-family: ${k};
|
|
@@ -369,17 +369,17 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
369
369
|
line-height: ${ba};
|
|
370
370
|
font-weight: ${U};
|
|
371
371
|
`;const dp=p`
|
|
372
|
-
:host(${Ao}){border-radius:${Mi}}:host(${dt}){border-radius:${T}}:host(${dt}${Oo}),:host(${dt}${To}),:host(${dt}${P}){border-radius:${
|
|
372
|
+
:host(${Ao}){border-radius:${Mi}}:host(${dt}){border-radius:${T}}:host(${dt}${Oo}),:host(${dt}${To}),:host(${dt}${P}){border-radius:${Ve}}${Pa}
|
|
373
373
|
${Ta}
|
|
374
374
|
${Ba}
|
|
375
375
|
${np}
|
|
376
376
|
${ap}
|
|
377
377
|
${za}
|
|
378
378
|
`.withBehaviors(le(p`
|
|
379
|
-
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function Oa(o={}){return g` ${Ke(o)}<slot>${ve(o.defaultContent)}</slot>${mt(o)} `}const hp=Oa(),up=bo.compose({name:`${b.prefix}-badge`,template:hp,styles:dp});up.define(b.registry);var pp=Object.defineProperty,bp=Object.getOwnPropertyDescriptor,ie=(o,e,t,i)=>{for(var s=i>1?void 0:i?bp(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&pp(e,t,s),s};class me extends w{constructor(){super(),this.disabledFocusable=!1,this.tabIndex=0,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==Ui.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key===xi||e.key===Ps){this.click();return}return!0}press(){switch(this.type){case Ui.reset:{this.resetForm();break}case Ui.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==Ui.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)}}}}me.formAssociated=!0,ie([a({mode:"boolean"})],me.prototype,"autofocus",2),ie([$],me.prototype,"defaultSlottedContent",2),ie([a({mode:"boolean"})],me.prototype,"disabled",2),ie([a({attribute:"disabled-focusable",mode:"boolean"})],me.prototype,"disabledFocusable",2),ie([a({attribute:"tabindex",mode:"fromView",converter:ae})],me.prototype,"tabIndex",2),ie([a({attribute:"formaction"})],me.prototype,"formAction",2),ie([a({attribute:"form"})],me.prototype,"formAttribute",2),ie([a({attribute:"formenctype"})],me.prototype,"formEnctype",2),ie([a({attribute:"formmethod"})],me.prototype,"formMethod",2),ie([a({attribute:"formnovalidate",mode:"boolean"})],me.prototype,"formNoValidate",2),ie([a({attribute:"formtarget"})],me.prototype,"formTarget",2),ie([a],me.prototype,"name",2),ie([a],me.prototype,"type",2),ie([a],me.prototype,"value",2);class ut extends me{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){y(this.elementInternals,e,t,va)}shapeChanged(e,t){y(this.elementInternals,e,t,ya)}sizeChanged(e,t){y(this.elementInternals,e,t,ka)}iconOnlyChanged(e,t){v(this.elementInternals,"icon",t)}}ie([a],ut.prototype,"appearance",2),ie([a],ut.prototype,"shape",2),ie([a],ut.prototype,"size",2),ie([a({attribute:"icon-only",mode:"boolean"})],ut.prototype,"iconOnly",2),nt(ut,rt);function nr(o={}){return g`<template tabindex="${e=>e.disabled?null:e.tabIndex??0}" @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${Ke(o)}<span class="content" part="content"><slot ${K("defaultSlottedContent")}></slot></span>${mt(o)}</template>`}const gp=nr(),fp=ut.compose({name:`${b.prefix}-button`,template:gp,styles:Xi});fp.define(b.registry);const mp={circular:"circular",square:"square"},$p={medium:"medium",large:"large"};var vp=Object.defineProperty,yp=Object.getOwnPropertyDescriptor,
|
|
379
|
+
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function Oa(o={}){return g` ${Ke(o)}<slot>${ve(o.defaultContent)}</slot>${mt(o)} `}const hp=Oa(),up=bo.compose({name:`${b.prefix}-badge`,template:hp,styles:dp});up.define(b.registry);var pp=Object.defineProperty,bp=Object.getOwnPropertyDescriptor,ie=(o,e,t,i)=>{for(var s=i>1?void 0:i?bp(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&pp(e,t,s),s};class me extends w{constructor(){super(),this.disabledFocusable=!1,this.tabIndex=0,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==Ui.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key===xi||e.key===Ps){this.click();return}return!0}press(){switch(this.type){case Ui.reset:{this.resetForm();break}case Ui.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==Ui.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)}}}}me.formAssociated=!0,ie([a({mode:"boolean"})],me.prototype,"autofocus",2),ie([$],me.prototype,"defaultSlottedContent",2),ie([a({mode:"boolean"})],me.prototype,"disabled",2),ie([a({attribute:"disabled-focusable",mode:"boolean"})],me.prototype,"disabledFocusable",2),ie([a({attribute:"tabindex",mode:"fromView",converter:ae})],me.prototype,"tabIndex",2),ie([a({attribute:"formaction"})],me.prototype,"formAction",2),ie([a({attribute:"form"})],me.prototype,"formAttribute",2),ie([a({attribute:"formenctype"})],me.prototype,"formEnctype",2),ie([a({attribute:"formmethod"})],me.prototype,"formMethod",2),ie([a({attribute:"formnovalidate",mode:"boolean"})],me.prototype,"formNoValidate",2),ie([a({attribute:"formtarget"})],me.prototype,"formTarget",2),ie([a],me.prototype,"name",2),ie([a],me.prototype,"type",2),ie([a],me.prototype,"value",2);class ut extends me{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){y(this.elementInternals,e,t,va)}shapeChanged(e,t){y(this.elementInternals,e,t,ya)}sizeChanged(e,t){y(this.elementInternals,e,t,ka)}iconOnlyChanged(e,t){v(this.elementInternals,"icon",t)}}ie([a],ut.prototype,"appearance",2),ie([a],ut.prototype,"shape",2),ie([a],ut.prototype,"size",2),ie([a({attribute:"icon-only",mode:"boolean"})],ut.prototype,"iconOnly",2),nt(ut,rt);function nr(o={}){return g`<template tabindex="${e=>e.disabled?null:e.tabIndex??0}" @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${Ke(o)}<span class="content" part="content"><slot ${K("defaultSlottedContent")}></slot></span>${mt(o)}</template>`}const gp=nr(),fp=ut.compose({name:`${b.prefix}-button`,template:gp,styles:Xi});fp.define(b.registry);const mp={circular:"circular",square:"square"},$p={medium:"medium",large:"large"};var vp=Object.defineProperty,yp=Object.getOwnPropertyDescriptor,He=(o,e,t,i)=>{for(var s=i>1?void 0:i?yp(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&vp(e,t,s),s};class Fe extends w{constructor(){super(...arguments),this.initialValue="on",this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return f.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),v(this.elementInternals,"checked",e),f.notify(this,"checked")}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",v(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){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 e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return f.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity(),f.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0}keyupHandler(e){if(e.key!==" ")return!0;this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals.ariaChecked=e?"true":"false"}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,i)}}toggleChecked(e=!this.checked){this.checked=e}}Fe.formAssociated=!0,He([a({mode:"boolean"})],Fe.prototype,"autofocus",2),He([$],Fe.prototype,"disabled",2),He([a({attribute:"disabled",mode:"boolean"})],Fe.prototype,"disabledAttribute",2),He([a({attribute:"form"})],Fe.prototype,"formAttribute",2),He([a({attribute:"checked",mode:"boolean"})],Fe.prototype,"initialChecked",2),He([a({attribute:"value",mode:"fromView"})],Fe.prototype,"initialValue",2),He([a],Fe.prototype,"name",2),He([a({mode:"boolean"})],Fe.prototype,"required",2);class Qi extends Fe{indeterminateChanged(e,t){this.setAriaChecked(),v(this.elementInternals,"indeterminate",t)}shapeChanged(e,t){y(this.elementInternals,e,t,mp)}sizeChanged(e,t){y(this.elementInternals,e,t,$p)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}He([$],Qi.prototype,"indeterminate",2),He([a],Qi.prototype,"shape",2),He([a],Qi.prototype,"size",2);const kp=p`
|
|
380
380
|
${I("inline-flex")}
|
|
381
381
|
|
|
382
|
-
:host{--size:16px;background-color:${E};border-radius:${
|
|
382
|
+
:host{--size:16px;background-color:${E};border-radius:${Ve};border:${N} solid ${Qe};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Vt}}:host(:active){border-color:${Ht}}:host(${x}:hover){background-color:${no};border-color:${Vd}}:host(${x}:active){background-color:${ao};border-color:${Wn}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${Ie} solid ${ce};border-radius:${T}}:host(:not([slot='input']):focus-visible)::after{border-color:${Le}}.indeterminate-indicator,.checked-indicator{color:${Dt};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(${x})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${x}),:host(${Ft}){border-color:${Rt}}:host(${x}),:host(${Ft}) .indeterminate-indicator{background-color:${Lt}}:host(${Ft}) .indeterminate-indicator{border-radius:${Ve};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(${Po}),:host(${Po}) .indeterminate-indicator{border-radius:${Ce}}:host([disabled]),:host([disabled]${x}){background-color:${kt};border-color:${Ae}}:host([disabled]){cursor:unset}:host([disabled]${Ft}) .indeterminate-indicator{background-color:${Ae}}:host([disabled]${x}) .checked-indicator{color:${Ae}}`.withBehaviors(le(p`
|
|
383
383
|
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${x}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${x}),:host(${Ft}) .indeterminate-indicator{background-color:FieldText}:host(${x}:not([disabled]):hover),:host(${Ft}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Ft}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${x}) .checked-indicator{color:GrayText}`)),xp=g.partial(`
|
|
384
384
|
<svg
|
|
385
385
|
fill="currentColor"
|
|
@@ -396,9 +396,9 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
396
396
|
`);function Cp(o={}){return g`<template tabindex="${e=>e.disabled?void 0:0}" @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${ve(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${ve(o.indeterminateIndicator)}</slot></template>`}const Sp=Cp({checkedIndicator:xp,indeterminateIndicator:wp}),Ip=Qi.compose({name:`${b.prefix}-checkbox`,template:Sp,styles:kp});Ip.define(b.registry);class zp extends ut{}const Pp=p`
|
|
397
397
|
${Xi}
|
|
398
398
|
|
|
399
|
-
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${M};line-height:${j}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${
|
|
400
|
-
::slotted([slot='description']){color:${A}}:host(${P}){padding:8px;padding-bottom:10px}:host(${vt}){min-width:52px;max-width:52px;padding:${de}}:host(${vt}${P}){min-width:48px;max-width:48px;padding:${Ee}}:host(${vt}${C}){min-width:56px;max-width:56px;padding:${Je}}:host(${C}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ke};line-height:${
|
|
401
|
-
:host(${dt}){border-radius:${T}}:host(${dt}${Oo}),:host(${dt}${To}),:host(${dt}${P}){border-radius:${
|
|
399
|
+
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${M};line-height:${j}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${De};line-height:100%;font-size:${G};font-weight:${R}}::slotted(svg),:host(${C}) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Fo}}:host(:active) ::slotted([slot='description']){color:${No}}:host(:is(${ye},${ye}:hover,${ye}:active)) ::slotted([slot='description']){color:${ht}}:host(:is(${B},${B}:hover,${B}:active)) ::slotted([slot='description']),:host(${H}) ::slotted([slot='description']){color:${De}}:host(${H}:hover) ::slotted([slot='description']){color:${Ai}}:host(${H}:active) ::slotted([slot='description']){color:${Ei}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
|
|
400
|
+
::slotted([slot='description']){color:${A}}:host(${P}){padding:8px;padding-bottom:10px}:host(${vt}){min-width:52px;max-width:52px;padding:${de}}:host(${vt}${P}){min-width:48px;max-width:48px;padding:${Ee}}:host(${vt}${C}){min-width:56px;max-width:56px;padding:${Je}}:host(${C}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ke};line-height:${Se}}:host(${C}) ::slotted([slot='description']){font-size:${M}}`;function Tp(o={}){return g`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:e.tabIndex??0}">${Ke(o)}<span class="content" part="content"><slot ${K("defaultSlottedContent")}></slot><slot name="description"></slot></span>${mt(o)}</template>`}const Bp=Tp(),Ap=zp.compose({name:`${b.prefix}-compound-button`,template:Bp,styles:Pp});Ap.define(b.registry);const Ep={filled:"filled",ghost:"ghost"},Op={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},Fp={circular:"circular",rounded:"rounded"},Np={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"};var _p=Object.defineProperty,Mp=Object.getOwnPropertyDescriptor,Ct=(o,e,t,i)=>{for(var s=i>1?void 0:i?Mp(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&_p(e,t,s),s};class ot extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}appearanceChanged(e,t){y(this.elementInternals,e,t,Ep)}colorChanged(e,t){y(this.elementInternals,e,t,Op)}shapeChanged(e,t){y(this.elementInternals,e,t,Fp)}sizeChanged(e,t){y(this.elementInternals,e,t,Np)}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}dotChanged(e,t){v(this.elementInternals,"dot",!!t)}setCount(){const e=this.count??0;if((e!==0||this.showZero)&&!this.dot)return e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}Ct([a],ot.prototype,"appearance",2),Ct([a],ot.prototype,"color",2),Ct([a],ot.prototype,"shape",2),Ct([a],ot.prototype,"size",2),Ct([a({converter:ae})],ot.prototype,"count",2),Ct([a({attribute:"overflow-count",converter:ae})],ot.prototype,"overflowCount",2),Ct([a({attribute:"show-zero",mode:"boolean"})],ot.prototype,"showZero",2),Ct([a({mode:"boolean"})],ot.prototype,"dot",2),nt(ot,rt);const Dp=p`
|
|
401
|
+
:host(${dt}){border-radius:${T}}:host(${dt}${Oo}),:host(${dt}${To}),:host(${dt}${P}){border-radius:${Ve}}${Pa}
|
|
402
402
|
${Ta}
|
|
403
403
|
${Ba}
|
|
404
404
|
${za}
|
|
@@ -421,10 +421,10 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
421
421
|
</svg>`),Qp=g`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===it.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${X("defaultTitleAction")}>${Yp}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,Zp=p`
|
|
422
422
|
${I("grid")}
|
|
423
423
|
|
|
424
|
-
:host{background:${E};box-sizing:border-box;gap:${oe};padding:${Ho} ${hu};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${E};color:${O};column-gap:8px;display:flex;font-family:${k};font-size:${co};font-weight:${U};inset-block-start:0;justify-content:space-between;line-height:${Hi};margin-block-end:calc(${oe} * -1);margin-block-start:calc(${Ho} * -1);padding-block-end:${oe};padding-block-start:${Ho};position:sticky;z-index:1}.content{box-sizing:border-box;color:${O};font-family:${k};font-size:${M};font-weight:${R};line-height:${j};min-height:32px}.actions{box-sizing:border-box;background:${E};display:flex;flex-direction:column;gap:${oe};inset-block-end:0;margin-block-end:calc(${Ho} * -1);padding-block-end:${Ho};padding-block-start:${ji};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(${oe} * -1);padding-block-start:${oe}}}`,Jp=Fa.compose({name:`${b.prefix}-dialog-body`,template:Qp,styles:Zp});Jp.define(b.registry);const jo={separator:"separator",presentation:"presentation"},Na=
|
|
424
|
+
:host{background:${E};box-sizing:border-box;gap:${oe};padding:${Ho} ${hu};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${E};color:${O};column-gap:8px;display:flex;font-family:${k};font-size:${co};font-weight:${U};inset-block-start:0;justify-content:space-between;line-height:${Hi};margin-block-end:calc(${oe} * -1);margin-block-start:calc(${Ho} * -1);padding-block-end:${oe};padding-block-start:${Ho};position:sticky;z-index:1}.content{box-sizing:border-box;color:${O};font-family:${k};font-size:${M};font-weight:${R};line-height:${j};min-height:32px}.actions{box-sizing:border-box;background:${E};display:flex;flex-direction:column;gap:${oe};inset-block-end:0;margin-block-end:calc(${Ho} * -1);padding-block-end:${Ho};padding-block-start:${ji};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(${oe} * -1);padding-block-start:${oe}}}`,Jp=Fa.compose({name:`${b.prefix}-dialog-body`,template:Qp,styles:Zp});Jp.define(b.registry);const jo={separator:"separator",presentation:"presentation"},Na=Te,eb={center:"center",start:"start",end:"end"},tb={strong:"strong",brand:"brand",subtle:"subtle"};var ob=Object.defineProperty,ib=Object.getOwnPropertyDescriptor,qo=(o,e,t,i)=>{for(var s=i>1?void 0:i?ib(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&ob(e,t,s),s};class ar extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??jo.separator,this.role!==jo.presentation&&(this.elementInternals.ariaOrientation=this.orientation??Na.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??jo.separator}`),t===jo.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==jo.presentation?t??null:null,y(this.elementInternals,e,t,Na)}}qo([a],ar.prototype,"role",2),qo([a],ar.prototype,"orientation",2);class Ji extends ar{alignContentChanged(e,t){y(this.elementInternals,e,t,eb,"align-")}appearanceChanged(e,t){y(this.elementInternals,e,t,tb)}insetChanged(e,t){v(this.elementInternals,"inset",t)}}qo([a({attribute:"align-content"})],Ji.prototype,"alignContent",2),qo([a],Ji.prototype,"appearance",2),qo([a({mode:"boolean"})],Ji.prototype,"inset",2);function sb(){return g`<slot></slot>`}const rb=sb(),nb=p`
|
|
425
425
|
${I("flex")}
|
|
426
426
|
|
|
427
|
-
:host{contain:content}:host::after,:host::before{align-self:center;background:${Do};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${N}}:host(${_s}){padding:0 12px}:host ::slotted(*){color:${
|
|
427
|
+
:host{contain:content}:host::after,:host::before{align-self:center;background:${Do};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${N}}:host(${_s}){padding:0 12px}:host ::slotted(*){color:${De};font-family:${k};font-size:${G};font-weight:${R};margin:0;padding:0 12px}:host(${Pn})::before,:host(${lt})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${z}){height:100%;min-height:84px}:host(${z}):empty{min-height:20px}:host(${z}){flex-direction:column;align-items:center}:host(${z}${_s})::before{margin-top:12px}:host(${z}${_s})::after{margin-bottom:12px}:host(${z}):empty::before,:host(${z}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${z})::before,:host(${z})::after{width:${N};min-height:20px;height:100%}:host(${z}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${z}${Pn})::before{min-height:8px}:host(${z}${lt})::after{min-height:8px}:host(${Eo})::before,:host(${Eo})::after{background:${Ze}}:host(${Eo}) ::slotted(*){color:${O}}:host(${Ye})::before,:host(${Ye})::after{background:${qn}}:host(${Ye}) ::slotted(*){color:${Vs}}:host(${B})::before,:host(${B})::after{background:${Dd}}:host(${B}) ::slotted(*){color:${be}}`.withBehaviors(le(p`
|
|
428
428
|
:host(${Eo})::before,:host(${Eo})::after,:host(${Ye})::before,:host(${Ye})::after,:host(${B})::before,:host(${B})::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),ab=Ji.compose({name:`${b.prefix}-divider`,template:rb,styles:nb});ab.define(b.registry);const lb={start:"start",end:"end"},cb={small:"small",medium:"medium",large:"large",full:"full"},lr={nonModal:"non-modal",modal:"modal",inline:"inline"};var db=Object.defineProperty,hb=Object.getOwnPropertyDescriptor,go=(o,e,t,i)=>{for(var s=i>1?void 0:i?hb(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&db(e,t,s),s};class Gt extends w{constructor(){super(...arguments),this.type=lr.modal,this.position=lb.start,this.size=cb.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(){ne.enqueue(()=>{this.emitBeforeToggle(),this.type===lr.inline||this.type===lr.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return e.preventDefault(),this.dialog.open&&e.target===this.dialog&&this.hide(),!0}}go([a],Gt.prototype,"type",2),go([a({attribute:"aria-labelledby"})],Gt.prototype,"ariaLabelledby",2),go([a({attribute:"aria-describedby"})],Gt.prototype,"ariaDescribedby",2),go([a],Gt.prototype,"position",2),go([a({attribute:"size"})],Gt.prototype,"size",2),go([$],Gt.prototype,"dialog",2);const ub=p`
|
|
429
429
|
${I("block")}
|
|
430
430
|
|
|
@@ -433,14 +433,14 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
433
433
|
:host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${du};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${cp}}.footer{display:flex;justify-content:flex-start;gap:${xe}}`;function $b(){return g`<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 vb=$b(),yb=fb.compose({name:`${b.prefix}-drawer-body`,template:vb,styles:mb});yb.define(b.registry);function _a(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function es(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function Ma(o){return o.closest("[lang]")?.lang??"en"}let kb=0;function Wo(o="id-"){const e=`${o}${kb++}`;return document.getElementById(e)?Wo(o):e}const Da={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},xb={small:"small",medium:"medium",large:"large"},cr={combobox:"combobox",dropdown:"dropdown",select:"select"},wb=g`<svg class="chevron-down-20-regular" role="button" slot="indicator" viewBox="0 0 20 20" ${X("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 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.16a.5.5 0 0 1 .7 0" fill="currentColor" /></svg>`,Cb=g`<input @input="${(o,e)=>o.inputHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-labelledby="${o=>o.ariaLabelledBy}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" placeholder="${o=>o.placeholder}" role="combobox" ?disabled="${o=>o.disabled}" type="${o=>o.type}" value="${o=>o.valueAttribute}" ${X("control")} />`,Sb=g`<button aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" role="combobox" ?disabled="${o=>o.disabled}" type="button" ${X("control")}>${o=>o.displayValue}</button>`;function Ib(o={}){return g`<template @click="${(e,t)=>e.clickHandler(t.event)}" @focusout="${(e,t)=>e.focusoutHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @mousedown="${(e,t)=>e.mousedownHandler(t.event)}"><div class="control"><slot name="control" ${X("controlSlot")}></slot><slot name="indicator" ${X("indicatorSlot")}>${ve(o.indicator)}</slot></div><slot ${X("listboxSlot")}></slot></template>`}const zb=Ib({indicator:wb});var Pb=Object.defineProperty,Tb=Object.getOwnPropertyDescriptor,q=(o,e,t,i)=>{for(var s=i>1?void 0:i?Tb(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Pb(e,t,s),s};class W extends w{constructor(){super(),this.activeIndex=0,this.id=Wo("dropdown-"),this.required=!1,this.type=cr.dropdown,this.valueAttribute="",this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation",ne.enqueue(()=>{this.insertControl()})}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const i=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((s,r)=>{s.active=r===i}),this.open&&this.enabledOptions[i]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Wo("input-"),this.controlSlot?.assign(t))}disabledChanged(e,t){ne.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return v(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(Ma(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return v(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&f.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",this.listboxSlot.assign(t);const i=f.getNotifier(this);i.subscribe(t);for(const s of["disabled","multiple"])i.notify(s);ne.enqueue(()=>{this.enabledOptions.filter(s=>s.defaultSelected).forEach((s,r)=>{s.selected=this.multiple||r===0})})}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",v(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){ne.enqueue(()=>{this.options.forEach(i=>{i.name=t})})}openChanged(e,t){v(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??[]}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)})}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===cr.combobox}get options(){return this.listbox?.options??[]}get selectedIndex(){return this.enabledOptions.findIndex(e=>e.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this.validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this.validationFallbackMessage=e.validationMessage}return this.validationFallbackMessage}get value(){return f.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),f.track(this,"value"))}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(i=>i.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t),!0}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),t===this.control&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(es(t)&&!this.multiple){if(t.disabled)return;this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover()}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(Ma(this),{usage:"search",sensitivity:"base"})),t.filter(i=>this.listCollator.compare(i.text.substring(0,Math.min(i.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,i=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=i,!0}insertControl(){if(this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===cr.combobox){Cb.render(this,this);return}Sb.render(this,this)}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":{if(this.isCombobox)break;e.preventDefault()}case"Enter":case"Tab":{if(this.open){if(this.selectOption(this.activeIndex),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!0;if(!this.open){this.listbox.showPopover();return}let i=this.activeIndex;i+=t;let s=this.getEnabledIndexInBounds(i);return s===0&&this.freeformOption?.hidden&&(s=this.getEnabledIndexInBounds(i+t)),this.activeIndex=s,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!es(e.target)}selectOption(e=this.selectedIndex){this.listbox.selectOption(e),this.control.value=this.displayValue,this.setValidity(),this.updateFreeformOption()}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const s=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:s,...e},t??this.validationMessage,i??this.listbox.enabledOptions[0])}}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}}W.formAssociated=!0,q([fs],W.prototype,"activeDescendant",1),q([$],W.prototype,"activeIndex",2),q([a({attribute:"aria-labelledby",mode:"fromView"})],W.prototype,"ariaLabelledBy",2),q([$],W.prototype,"control",2),q([a({mode:"boolean"})],W.prototype,"disabled",2),q([fs],W.prototype,"displayValue",1),q([a({attribute:"id"})],W.prototype,"id",2),q([$],W.prototype,"indicator",2),q([$],W.prototype,"indicatorSlot",2),q([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),q([$],W.prototype,"listbox",2),q([$],W.prototype,"listboxSlot",2),q([a({mode:"boolean"})],W.prototype,"multiple",2),q([a],W.prototype,"name",2),q([$],W.prototype,"open",2),q([a],W.prototype,"placeholder",2),q([a({mode:"boolean"})],W.prototype,"required",2),q([a],W.prototype,"type",2),q([a({attribute:"value"})],W.prototype,"valueAttribute",2);const dr=class xo extends W{constructor(){super(),this.appearance=Da.outline,this.addEventListener("connected",this.listboxConnectedHandler)}appearanceChanged(e,t){y(this.elementInternals,e,t,Da)}sizeChanged(e,t){y(this.elementInternals,e,t,xb)}connectedCallback(){super.connectedCallback(),this.anchorPositionFallback()}disconnectedCallback(){xo.AnchorPositionFallbackObserver?.unobserve(this.listbox),super.disconnectedCallback()}listboxConnectedHandler(e){const t=e.target;_a(t)&&(this.listbox=t)}openChanged(e,t){if(super.openChanged(e,t),t){xo.AnchorPositionFallbackObserver?.observe(this.listbox);return}xo.AnchorPositionFallbackObserver?.unobserve(this.listbox)}anchorPositionFallback(){xo.AnchorPositionFallbackObserver=xo.AnchorPositionFallbackObserver??new IntersectionObserver(e=>{e.forEach(({boundingClientRect:t,isIntersecting:i,target:s})=>{if(_a(s)&&!i){if(t.bottom>window.innerHeight){v(s.dropdown.elementInternals,"flip-block",!0);return}t.top<0&&v(s.dropdown.elementInternals,"flip-block",!1)}})},{threshold:1})}};q([a],dr.prototype,"appearance",2),q([a],dr.prototype,"size",2);let Bb=dr;const Ab=p`
|
|
434
434
|
${I("inline-flex")}
|
|
435
435
|
|
|
436
|
-
:host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${O};cursor:pointer}:host(${Mc}){color:${Ls}}.control{appearance:none;background-color:${E};border-radius:${T};border:none;box-shadow:inset 0 0 0 ${N} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${te};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${et} ${fe};position:relative;text-align:start;width:100%;z-index:1;${Aa}}:host(${P}) .control{column-gap:${te};padding:${ho} ${de};${Ea}}:host(${C}) .control{column-gap:${Je};padding:${oe} ${xe};${lp}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator'] > *,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${be};display:inline-flex;justify-content:center;width:20px}:host(${P}) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host(${C}) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:'' / '';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${N}}.control::after{background-color:${Rt};height:${
|
|
436
|
+
:host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${O};cursor:pointer}:host(${Mc}){color:${Ls}}.control{appearance:none;background-color:${E};border-radius:${T};border:none;box-shadow:inset 0 0 0 ${N} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${te};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${et} ${fe};position:relative;text-align:start;width:100%;z-index:1;${Aa}}:host(${P}) .control{column-gap:${te};padding:${ho} ${de};${Ea}}:host(${C}) .control{column-gap:${Je};padding:${oe} ${xe};${lp}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator'] > *,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${be};display:inline-flex;justify-content:center;width:20px}:host(${P}) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host(${C}) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:'' / '';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${N}}.control::after{background-color:${Rt};height:${Ie};scale:0 1;transition:scale ${Js} ${qt}}:host(:where(${Oc},:focus-within)) .control::after{scale:1 1;transition-duration:${qi};transition-timing-function:${jt}}:host(:where(${F},${H})) .control::before{background-color:${Qe}}:host(${H}) .control{--control-border-color:${Gs};background-color:${Be};border-radius:${Mi}}:host(${F}) .control{--control-border-color:${Ze}}:host(${F}) .control:hover{--control-border-color:${lo}}:host(:where(${F},${H})) .control:hover::before{background-color:${Vt}}:host(${F}) .control:hover::after{background-color:${no}}:host(${F}) .control:active{--control-border-color:${Mo}}:host(:where(${F},${H})) .control:active::before{background-color:${Ht}}:host(:where(${F},${H})) .control:active::after{background-color:${ao}}:host(${$t}) .control{background-color:${_o}}:host(:where(${Ot},${$t})) .control{--control-border-color:${ce}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){--control-border-color:${Ae};background-color:${kt};color:${A}}::slotted([popover]){inset:unset;position:absolute;position-anchor:--dropdown-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,block-start;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);overflow:auto}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){::slotted([popover]){margin-block-start:calc(${j} + (${et} * 2) + ${N});max-height:50vh}:host(${P}) ::slotted([popover]){margin-block-start:calc(${ee} + (${ho} * 2) + ${N})}:host(${C}) ::slotted([popover]){margin-block-start:calc(${Se} + (${oe} * 2) + ${N})}:host(${pc}) ::slotted([popover]){margin-block-start:revert;transform:translate(0,-100%)}}`,Eb=Bb.compose({name:`${b.prefix}-dropdown`,template:zb,styles:Ab,shadowOptions:{slotAssignment:"manual"}});Eb.define(b.registry);const Ob={above:"above",after:"after",before:"before"},Ne={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 Fb=Object.defineProperty,Nb=Object.getOwnPropertyDescriptor,Go=(o,e,t,i)=>{for(var s=i>1?void 0:i?Nb(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Fb(e,t,s),s};class Uo extends w{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){if(v(this.elementInternals,"has-message",!!t.length),!t.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(e,t){t?.length&&(this.input=t?.[0],this.setStates())}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties())}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&v(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return v(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||io("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,e.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&(v(this.elementInternals,"disabled",!!this.input.disabled),v(this.elementInternals,"readonly",!!this.input.readOnly),v(this.elementInternals,"required",!!this.input.required),v(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[e,t]of Object.entries(Ne))v(this.elementInternals,t,this.input.validity[e])}}Go([$],Uo.prototype,"labelSlot",2),Go([$],Uo.prototype,"messageSlot",2),Go([$],Uo.prototype,"slottedInputs",2),Go([$],Uo.prototype,"input",2);class La extends Uo{constructor(){super(...arguments),this.labelPosition=Ob.above}}Go([a({attribute:"label-position"})],La.prototype,"labelPosition",2);const _b=p`
|
|
437
437
|
${I("inline-grid")}
|
|
438
438
|
|
|
439
|
-
:host{color:${O};align-items:center;gap:0 ${xe};justify-items:start;position:relative}:has([slot='message']){color:${O};row-gap:${oe}}: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:${xe}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Vo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${uu}}:host([label-position='below']:not(${$c})){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:${Vo};grid-area:message}:host(${bc}:focus-within){border-radius:${T};outline:${
|
|
440
|
-
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(${zo}) ::slotted(img){width:100%;height:auto}:host(${Zl}) ::slotted(img){border:${N} solid ${Do}}:host(${uc}) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(${cc}) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(${dc}) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(${hc}) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(${Yc}) ::slotted(img){box-shadow:${Ri}}:host(${Po}) ::slotted(img){border-radius:${
|
|
439
|
+
:host{color:${O};align-items:center;gap:0 ${xe};justify-items:start;position:relative}:has([slot='message']){color:${O};row-gap:${oe}}: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:${xe}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Vo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${uu}}:host([label-position='below']:not(${$c})){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:${Vo};grid-area:message}:host(${bc}:focus-within){border-radius:${T};outline:${Ie} solid ${Le}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${k};font-size:${M};font-weight:${R};grid-area:label;line-height:${j};user-select:none}:host([size='small']) ::slotted(label){font-size:${G};line-height:${ee}}:host([size='large']) ::slotted(label){font-size:${ke};line-height:${Se}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${U}}:host(${_}){cursor:default}::slotted([flag]){display:none}:host(${Xl}) ::slotted([flag='${Ne.badInput}']),:host(${sc}) ::slotted([flag='${Ne.customError}']),:host(${Fc}) ::slotted([flag='${Ne.patternMismatch}']),:host(${Rc}) ::slotted([flag='${Ne.rangeOverflow}']),:host(${jc}) ::slotted([flag='${Ne.rangeUnderflow}']),:host(${ad}) ::slotted([flag='${Ne.stepMismatch}']),:host(${cd}) ::slotted([flag='${Ne.tooLong}']),:host(${dd}) ::slotted([flag='${Ne.tooShort}']),:host(${hd}) ::slotted([flag='${Ne.typeMismatch}']),:host(${bd}) ::slotted([flag='${Ne.valueMissing}']),:host(${pd}) ::slotted([flag='${Ne.valid}']){display:block}`,Mb=g`<template @click="${(o,e)=>o.clickHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}" ${xl({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:Bt()})}><slot name="label" part="label" ${K("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${K({property:"messageSlot",filter:Bt("[flag]")})}></slot></template>`,Db=La.compose({name:`${b.prefix}-field`,template:Mb,styles:_b,shadowOptions:{delegatesFocus:!0}});Db.define(b.registry);const Lb={none:"none",center:"center",contain:"contain",cover:"cover"},Vb={circular:"circular",rounded:"rounded",square:"square"};var Hb=Object.defineProperty,Rb=Object.getOwnPropertyDescriptor,Xo=(o,e,t,i)=>{for(var s=i>1?void 0:i?Rb(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Hb(e,t,s),s};class fo extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}blockChanged(e,t){v(this.elementInternals,"block",t)}borderedChanged(e,t){v(this.elementInternals,"bordered",t)}shadowChanged(e,t){v(this.elementInternals,"shadow",t)}fitChanged(e,t){y(this.elementInternals,e,t,Lb,"fit-")}shapeChanged(e,t){y(this.elementInternals,e,t,Vb)}}Xo([a({mode:"boolean"})],fo.prototype,"block",2),Xo([a({mode:"boolean"})],fo.prototype,"bordered",2),Xo([a({mode:"boolean"})],fo.prototype,"shadow",2),Xo([a],fo.prototype,"fit",2),Xo([a],fo.prototype,"shape",2);const jb=g`<slot></slot>`,qb=p`
|
|
440
|
+
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(${zo}) ::slotted(img){width:100%;height:auto}:host(${Zl}) ::slotted(img){border:${N} solid ${Do}}:host(${uc}) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(${cc}) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(${dc}) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(${hc}) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(${Yc}) ::slotted(img){box-shadow:${Ri}}:host(${Po}) ::slotted(img){border-radius:${Ce}}:host(${dt}) ::slotted(img){border-radius:${T}}`,Wb=fo.compose({name:`${b.prefix}-image`,template:jb,styles:qb});Wb.define(b.registry);const Gb={small:"small",medium:"medium",large:"large"},Ub={regular:"regular",semibold:"semibold"};var Xb=Object.defineProperty,Kb=Object.getOwnPropertyDescriptor,ts=(o,e,t,i)=>{for(var s=i>1?void 0:i?Kb(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Xb(e,t,s),s};class Ko extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.required=!1}sizeChanged(e,t){y(this.elementInternals,e,t,Gb)}weightChanged(e,t){y(this.elementInternals,e,t,Ub)}disabledChanged(e,t){v(this.elementInternals,"disabled",t)}}ts([a],Ko.prototype,"size",2),ts([a],Ko.prototype,"weight",2),ts([a({mode:"boolean"})],Ko.prototype,"disabled",2),ts([a({mode:"boolean"})],Ko.prototype,"required",2);const Yb=p`
|
|
441
441
|
${I("inline-flex")}
|
|
442
442
|
|
|
443
|
-
:host{color:${O};cursor:pointer;font-family:${k};font-size:${M};font-weight:${R};line-height:${j};user-select:none}.asterisk{color:${Kn};margin-inline-start:${Ee}}:host(${P}){font-size:${G};line-height:${ee}}:host(${C}){font-size:${ke};line-height:${
|
|
443
|
+
:host{color:${O};cursor:pointer;font-family:${k};font-size:${M};font-weight:${R};line-height:${j};user-select:none}.asterisk{color:${Kn};margin-inline-start:${Ee}}:host(${P}){font-size:${G};line-height:${ee}}:host(${C}){font-size:${ke};line-height:${Se}}:host(:is(${C},${Fn})){font-weight:${U}}:host(${_}),:host(${_}) .asterisk{color:${A}}`;function Qb(){return g`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const Zb=Qb(),Jb=Ko.compose({name:`${b.prefix}-label`,template:Zb,styles:Yb});Jb.define(b.registry);const eg={subtle:"subtle"};var tg=Object.defineProperty,og=Object.getOwnPropertyDescriptor,Va=(o,e,t,i)=>{for(var s=i>1?void 0:i?og(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&tg(e,t,s),s};class hr extends tt{constructor(){super(...arguments),this.inline=!1}appearanceChanged(e,t){y(this.elementInternals,e,t,eg)}inlineChanged(e,t){v(this.elementInternals,"inline",t)}}Va([a],hr.prototype,"appearance",2),Va([a({mode:"boolean"})],hr.prototype,"inline",2);const ig=p`
|
|
444
444
|
${I("inline")}
|
|
445
445
|
|
|
446
446
|
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${yd};cursor:pointer;font-family:${k};font-size:${M};font-weight:${R};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${N};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${kd}}:host(:active){color:${xd}}:host(${B}:hover){color:${Cd}}:host(${B}:active){color:${Sd}}}:host(${B}){color:${wd}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(${yc}){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(le(p`
|
|
@@ -451,23 +451,23 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
451
451
|
<svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
452
452
|
<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>
|
|
453
453
|
</svg>
|
|
454
|
-
`)}),gg=pg.compose({name:`${b.prefix}-menu-button`,template:bg,styles:Xi});gg.define(b.registry);const he={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};he.menuitem+"",he.menuitemcheckbox+"",he.menuitemradio+"";var fg=Object.defineProperty,mg=Object.getOwnPropertyDescriptor,$o=(o,e,t,i)=>{for(var s=i>1?void 0:i?mg(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&fg(e,t,s),s};class
|
|
454
|
+
`)}),gg=pg.compose({name:`${b.prefix}-menu-button`,template:bg,styles:Xi});gg.define(b.registry);const he={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};he.menuitem+"",he.menuitemcheckbox+"",he.menuitemradio+"";var fg=Object.defineProperty,mg=Object.getOwnPropertyDescriptor,$o=(o,e,t,i)=>{for(var s=i>1?void 0:i?mg(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&fg(e,t,s),s};class Re extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=he.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case xi:case Ps:return this.invoke(),!1;case vi:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case $i:return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=e=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=e=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.toggleHandler=e=>{e instanceof ToggleEvent&&e.newState==="open"&&(this.setAttribute("tabindex","-1"),this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e instanceof ToggleEvent&&e.newState==="closed"&&(this.elementInternals.ariaExpanded="false",this.setAttribute("tabindex","0"))},this.invoke=()=>{if(!this.disabled)switch(this.role){case he.menuitemcheckbox:this.checked=!this.checked;break;case he.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case he.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const e=this.getBoundingClientRect(),t=this.submenu.getBoundingClientRect(),i=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[i]+t.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${e.width-8}px 0`}}}disabledChanged(e,t){this.elementInternals.ariaDisabled=t?`${t}`:null,v(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??he.menuitem}checkedChanged(e,t){const i=this.role!==he.menuitem;this.elementInternals.ariaChecked=i?`${!!t}`:null,v(this.elementInternals,"checked",i?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.toggleHandler),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.addEventListener("toggle",this.toggleHandler),this.elementInternals.ariaHasPopup="menu",v(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,v(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??he.menuitem,this.elementInternals.ariaChecked=this.role!==he.menuitem?`${!!this.checked}`:null}}$o([a({mode:"boolean"})],Re.prototype,"disabled",2),$o([a],Re.prototype,"role",2),$o([a({mode:"boolean"})],Re.prototype,"checked",2),$o([a({mode:"boolean"})],Re.prototype,"hidden",2),$o([$],Re.prototype,"slottedSubmenu",2),$o([$],Re.prototype,"submenu",2),nt(Re,rt);const $g=p`
|
|
455
455
|
${I("grid")}
|
|
456
456
|
|
|
457
|
-
:host{--indent:0;align-items:center;background:${E};border-radius:${T};color:${
|
|
458
|
-
:host(${_}),:host(${_}) ::slotted([slot='start']),:host(${_}) ::slotted([slot='end']){color:GrayText}`)),vg=g.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>'),yg=g.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 kg(o={}){return g`<template @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}" @toggle="${(e,t)=>e.toggleHandler(t.event)}"><slot name="indicator">${ve(o.indicator)}</slot>${Ke(o)}<div part="content" class="content"><slot></slot></div>${mt(o)}<slot name="submenu-glyph">${ve(o.submenuGlyph)}</slot><slot name="submenu" ${K({property:"slottedSubmenu"})}></slot></template>`}const xg=kg({indicator:vg,submenuGlyph:yg}),wg=
|
|
457
|
+
:host{--indent:0;align-items:center;background:${E};border-radius:${T};color:${De};contain:layout;cursor:pointer;flex-shrink:0;font:${R} ${M} / ${j} ${k};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${Oi};color:${Fo}}:host(:active){background-color:${Ln};color:${No}}:host(:active) ::slotted([slot='start']){color:${Id}}:host(${_}){background-color:${kt};color:${A}}:host(${_}) ::slotted([slot='start']),:host(${_}) ::slotted([slot='end']){color:${A}}:host(:focus-visible){border-radius:${T};outline:2px solid ${Le}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${x})) .indicator,:host(:not(${x})) ::slotted([slot='indicator']),:host(:not(${Bi})) .submenu-glyph,:host(:not(${Bi})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${be};font:${R} ${G} / ${ee} ${k};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${Bi}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${Bi}){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]){margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline;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(le(p`
|
|
458
|
+
:host(${_}),:host(${_}) ::slotted([slot='start']),:host(${_}) ::slotted([slot='end']){color:GrayText}`)),vg=g.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>'),yg=g.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 kg(o={}){return g`<template @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}" @toggle="${(e,t)=>e.toggleHandler(t.event)}"><slot name="indicator">${ve(o.indicator)}</slot>${Ke(o)}<div part="content" class="content"><slot></slot></div>${mt(o)}<slot name="submenu-glyph">${ve(o.submenuGlyph)}</slot><slot name="submenu" ${K({property:"slottedSubmenu"})}></slot></template>`}const xg=kg({indicator:vg,submenuGlyph:yg}),wg=Re.compose({name:`${b.prefix}-menu-item`,template:xg,styles:$g});wg.define(b.registry);var Cg=Object.defineProperty,Sg=Object.getOwnPropertyDescriptor,Ig=(o,e,t,i)=>{for(var s=i>1?void 0:i?Sg(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Cg(e,t,s),s};const ur=class yr extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&Cn(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{const t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.changedMenuItemHandler=e=>{if(this.menuItems===void 0)return;const t=e.target,i=this.menuItems.indexOf(t);if(i!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let r=i-1;r>=0;--r){const n=this.menuItems[r],d=n.getAttribute("role");if(d===he.menuitemradio&&(n.checked=!1),d==="separator")break}const s=this.menuItems.length-1;for(let r=i+1;r<=s;++r){const n=this.menuItems[r],d=n.getAttribute("role");if(d===he.menuitemradio&&(n.checked=!1),d==="separator")break}}},this.isMenuItemElement=e=>e instanceof Re||Cn(e)&&e.getAttribute("role")in yr.focusableElementRoles,this.isFocusableElement=e=>this.isMenuItemElement(e),this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),ne.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(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case mi:this.setFocus(this.focusIndex+1,1);return;case yi:this.setFocus(this.focusIndex-1,-1);return;case ki:this.setFocus(this.menuItems.length-1,-1);return;case wi:this.setFocus(0,1);return;default:return!0}}removeItemListeners(e=this.items){e.forEach(t=>{t.removeEventListener("focus",this.handleItemFocus),f.getNotifier(t).unsubscribe(this,"hidden")})}static elementIndent(e){const t=e.getAttribute("role"),i=e.querySelector("[slot=start]");return t&&t!==he.menuitem?i?2:1:i?1:0}setItems(){const e=Array.from(this.children);this.removeItemListeners(e),e.forEach(n=>f.getNotifier(n).subscribe(this,"hidden"));const t=e.filter(n=>!n.hasAttribute("hidden"));this.menuItems=t;const i=this.menuItems.filter(this.isMenuItemElement);i.length&&(this.focusIndex=0),i.forEach((n,d)=>{n.setAttribute("tabindex",d===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const s=this.menuItems?.filter(this.isMenuItemElement),r=s?.reduce((n,d)=>{const u=yr.elementIndent(d);return Math.max(n,u)},0);s?.forEach(n=>{n instanceof Re&&n.setAttribute("data-indent",`${r}`)})}handleChange(e,t){t==="hidden"&&this.setItems()}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){const i=this.menuItems[e];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,i.setAttribute("tabindex","0"),i.focus();break}e+=t}}};ur.focusableElementRoles=he,Ig([$],ur.prototype,"items",2);let zg=ur;const Pg=p`
|
|
459
459
|
${I("flex")}
|
|
460
460
|
|
|
461
|
-
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${E};border:1px solid ${ce};border-radius:${T};box-shadow:${Qs};padding:4px;row-gap:2px}`;function Tg(){return g`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,e)=>o.handleMenuKeyDown(e.event)}" @focusout="${(o,e)=>o.handleFocusOut(e.event)}"><slot ${K("items")}></slot></template>`}const Bg=Tg(),Ag=zg.compose({name:`${b.prefix}-menu-list`,template:Bg,styles:Pg});Ag.define(b.registry);var Eg=Object.defineProperty,Og=Object.getOwnPropertyDescriptor,St=(o,e,t,i)=>{for(var s=i>1?void 0:i?Og(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Eg(e,t,s),s};class pt extends w{constructor(){super(...arguments),this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof
|
|
461
|
+
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${E};border:1px solid ${ce};border-radius:${T};box-shadow:${Qs};padding:4px;row-gap:2px}`;function Tg(){return g`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,e)=>o.handleMenuKeyDown(e.event)}" @focusout="${(o,e)=>o.handleFocusOut(e.event)}"><slot ${K("items")}></slot></template>`}const Bg=Tg(),Ag=zg.compose({name:`${b.prefix}-menu-list`,template:Bg,styles:Pg});Ag.define(b.registry);var Eg=Object.defineProperty,Og=Object.getOwnPropertyDescriptor,St=(o,e,t,i)=>{for(var s=i>1?void 0:i?Og(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Eg(e,t,s),s};class pt extends w{constructor(){super(...arguments),this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof Re&&(e.target.getAttribute("role")===he.menuitemcheckbox||e.target.getAttribute("role")===he.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._open=t,this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case Ps:case xi:e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),ne.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(){ne.enqueue(()=>{this._menuList.focus()})}focusTrigger(){ne.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){t?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(e,t){t?this._menuList?.removeEventListener("change",this.closeMenu):this._menuList?.addEventListener("change",this.closeMenu)}openOnContextChanged(e,t){t?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(e,t){t?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(e){if(e.defaultPrevented)return;switch(e.key){case Ol:e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case Fl:if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}St([a({attribute:"open-on-hover",mode:"boolean"})],pt.prototype,"openOnHover",2),St([a({attribute:"open-on-context",mode:"boolean"})],pt.prototype,"openOnContext",2),St([a({attribute:"close-on-scroll",mode:"boolean"})],pt.prototype,"closeOnScroll",2),St([a({attribute:"persist-on-item-click",mode:"boolean"})],pt.prototype,"persistOnItemClick",2),St([a({mode:"boolean"})],pt.prototype,"split",2),St([$],pt.prototype,"slottedMenuList",2),St([$],pt.prototype,"slottedTriggers",2),St([$],pt.prototype,"primaryAction",2);const Fg=p`
|
|
462
462
|
${I("inline-block")}
|
|
463
463
|
|
|
464
464
|
::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::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:${N} solid ${Ze};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:${N} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function Ng(){return g`<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,e)=>o.menuKeydownHandler(e.event)}"><slot name="primary-action" ${X("primaryAction")}></slot><slot name="trigger" ${K({property:"slottedTriggers",filter:Bt()})}></slot><slot ${K({property:"slottedMenuList",filter:Bt()})}></slot></template>`}const _g=Ng(),Mg=pt.compose({name:`${b.prefix}-menu`,template:_g,styles:Fg});Mg.define(b.registry);const Dg={multiline:"multiline",singleline:"singleline"},Lg={rounded:"rounded",square:"square"},Vg={success:"success",warning:"warning",error:"error",info:"info"};var Hg=Object.defineProperty,Rg=Object.getOwnPropertyDescriptor,pr=(o,e,t,i)=>{for(var s=i>1?void 0:i?Rg(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Hg(e,t,s),s};class os extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}shapeChanged(e,t){y(this.elementInternals,e,t,Lg)}layoutChanged(e,t){y(this.elementInternals,e,t,Dg)}intentChanged(e,t){y(this.elementInternals,e,t,Vg)}}pr([a],os.prototype,"shape",2),pr([a],os.prototype,"layout",2),pr([a],os.prototype,"intent",2);const jg=p`
|
|
465
465
|
:host{display:grid;box-sizing:border-box;font-family:${k};font-size:${G};line-height:${ee};width:100%;background:${_o};border:1px solid ${Ze};padding-inline:${xe};border-radius:${T};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host(${Ao}){border-radius:0}:host(${Nt}){background-color:${Qn};border-color:${Wd}}:host(${Mt}){background-color:${Jn};border-color:${ta}}:host(${Ns}){background-color:${Gn};border-color:${Xn}}:host(${Bo}){grid-template-areas:'icon body dismiss'
|
|
466
|
-
'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${uo};padding-inline:${xe}}.content{grid-area:body;max-width:520px;padding-block:${uo};padding-inline:0}:host(${Bo}) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${be};margin-inline-end:${Je}}:host(${Bo}) ::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:${Je};gap:${Je}}:host(${Bo}) .actions{margin-block-start:${uo};margin-inline-end:0}:host(${Bo}) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${oe}}::slotted(*){font-size:inherit}`;function qg(){return g`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const Wg=qg(),Gg=os.compose({name:`${b.prefix}-message-bar`,template:Wg,styles:jg,shadowOptions:{mode:b.shadowRootMode}});Gg.define(b.registry);var Ug=Object.defineProperty,Xg=Object.getOwnPropertyDescriptor,
|
|
466
|
+
'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${uo};padding-inline:${xe}}.content{grid-area:body;max-width:520px;padding-block:${uo};padding-inline:0}:host(${Bo}) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${be};margin-inline-end:${Je}}:host(${Bo}) ::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:${Je};gap:${Je}}:host(${Bo}) .actions{margin-block-start:${uo};margin-inline-end:0}:host(${Bo}) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${oe}}::slotted(*){font-size:inherit}`;function qg(){return g`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const Wg=qg(),Gg=os.compose({name:`${b.prefix}-message-bar`,template:Wg,styles:jg,shadowOptions:{mode:b.shadowRootMode}});Gg.define(b.registry);var Ug=Object.defineProperty,Xg=Object.getOwnPropertyDescriptor,ze=(o,e,t,i)=>{for(var s=i>1?void 0:i?Xg(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Ug(e,t,s),s};class $e extends w{constructor(){super(),this.active=!1,this.id=Wo("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){v(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){v(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",v(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){v(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return f.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,ne.enqueue(()=>{this.$fastController.isConnected&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",v(this.elementInternals,"selected",e))}),f.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return f.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),f.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}$e.formAssociated=!0,ze([$],$e.prototype,"active",2),ze([a({attribute:"current-selected",mode:"boolean"})],$e.prototype,"currentSelected",2),ze([a({attribute:"selected",mode:"boolean"})],$e.prototype,"defaultSelected",2),ze([$],$e.prototype,"descriptionSlot",2),ze([$],$e.prototype,"disabled",2),ze([a({attribute:"disabled",mode:"boolean"})],$e.prototype,"disabledAttribute",2),ze([a({attribute:"form"})],$e.prototype,"formAttribute",2),ze([a({mode:"boolean"})],$e.prototype,"freeform",2),ze([a({attribute:"id"})],$e.prototype,"id",2),ze([a({attribute:"value",mode:"fromView"})],$e.prototype,"initialValue",2),ze([$],$e.prototype,"multiple",2),ze([a],$e.prototype,"name",2),ze([$],$e.prototype,"start",2),ze([a({attribute:"text",mode:"fromView"})],$e.prototype,"textAttribute",2);const Kg=p`
|
|
467
467
|
${I("inline-grid")}
|
|
468
468
|
|
|
469
469
|
:host{-webkit-tap-highlight-color:transparent;${Aa}
|
|
470
|
-
align-items:center;background-color:${E};border-radius:${T};border:${
|
|
470
|
+
align-items:center;background-color:${E};border-radius:${T};border:${Ie} solid ${ce};box-sizing:border-box;color:${De};column-gap:${Ee};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${de}}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${Oi};color:${Fo}}:host(:active){background-color:${Fi};color:${No}}:host(:disabled){background-color:${E};color:${A};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${Ms}) :is(slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator'])){visibility:visible}:host(${so}) .checkmark-16-filled,:host(:not(${so})) .checkmark-12-regular{display:none}:host(${so}) .checkmark-12-regular{background-color:${E};border-radius:${Ve};border:${N} solid ${Qe};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${so}${Ms}) .checkmark-12-regular{background-color:${Lt};border-color:${Rt};fill:${Dt}}:host(:disabled${so}) .checkmark-12-regular{border-color:${Ae}}:host(:disabled${so}${Ms}) .checkmark-12-regular{background-color:${kt}}:host(${Gl}){border:${Ie} solid ${Le}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${de}}}:host(${ac}){column-gap:${de};grid-template-areas:'indicator start content'
|
|
471
471
|
'indicator start description'}::slotted([slot='description']){color:${be};grid-area:description;${Ea}}`,Yg=g.partial(`
|
|
472
472
|
<svg aria-hidden="true" class="checkmark-16-filled" viewBox="0 0 16 16">
|
|
473
473
|
<path
|
|
@@ -485,36 +485,36 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
485
485
|
:host{width:100%;height:2px;overflow-x:hidden;background-color:${Ni};border-radius:${T};contain:content}:host(${C}){height:4px}:host(${Ao}){border-radius:${Mi}}.indicator{background-color:${Lt};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(
|
|
486
486
|
to right,${Ni} 0%,${Be} 50%,${Ni} 100%
|
|
487
487
|
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${Ns}) .indicator{background-color:${Un}}:host(${Mt}) .indicator{background-color:${ea}}:host(${Nt}) .indicator{background-color:${Zn}}@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(le(p`
|
|
488
|
-
:host{background-color:CanvasText}.indicator,:host(:is(${Nt},${Mt},${Ns})) .indicator{background-color:Highlight}`));function af(){return g`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const lf=af(),cf=br.compose({name:`${b.prefix}-progress-bar`,template:lf,styles:nf});cf.define(b.registry);class Ha extends Fe{connectedCallback(){super.connectedCallback(),this.tabIndex=this.disabled?-1:0}constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),t&&(this.tabIndex=-1),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}function Ra(o){const e=o.getRootNode();return e instanceof ShadowRoot?e.activeElement:document.activeElement}const ja=
|
|
488
|
+
:host{background-color:CanvasText}.indicator,:host(:is(${Nt},${Mt},${Ns})) .indicator{background-color:Highlight}`));function af(){return g`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const lf=af(),cf=br.compose({name:`${b.prefix}-progress-bar`,template:lf,styles:nf});cf.define(b.registry);class Ha extends Fe{connectedCallback(){super.connectedCallback(),this.tabIndex=this.disabled?-1:0}constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),t&&(this.tabIndex=-1),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}function Ra(o){const e=o.getRootNode();return e instanceof ShadowRoot?e.activeElement:document.activeElement}const ja=Te;var df=Object.defineProperty,hf=Object.getOwnPropertyDescriptor,Xt=(o,e,t,i)=>{for(var s=i>1?void 0:i?hf(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&df(e,t,s),s};class bt extends w{constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??ja.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.$fastController.isConnected&&(this.checkedIndex=-1,this.radios?.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled}),this.restrictFocus())}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(i=>{i.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??ja.horizontal}radiosChanged(e,t){const i=t?.length;if(!i)return;!this.name&&t.every(n=>n.name===t[0].name)&&(this.name=t[0].name);const s=El(this.enabledRadios,n=>n.initialChecked);t.forEach((n,d)=>{n.ariaPosInSet=`${d+1}`,n.ariaSetSize=`${i}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=d===s,n.name=this.name??n.name,n.disabled=this.disabled||n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),this.value||(this.checkedIndex=s);const r=t.map(n=>n.id).join(" ").trim();r&&this.setAttribute("aria-owns",r),ne.enqueue(()=>{this.restrictFocus()})}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.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 e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return f.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(i=>i.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),f.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(i=>i.disabled)?.forEach(i=>{i.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let i=this.checkedIndex;this.enabledRadios.forEach((s,r)=>{const n=r===e;s.checked=n,n&&(i=r,t&&s.$emit("change"))}),this.checkedIndex=i,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}focusinHandler(e){return this.disabled||this.enabledRadios.forEach(t=>{t.tabIndex=0}),!0}focusoutHandler(e){return this.radios?.includes(e.relatedTarget)&&this.radios?.some(t=>t.checked)&&this.restrictFocus(),!0}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledRadios.length){return t===0?-1:(e+t)%t}keydownHandler(e){const t=As(this)==="rtl",i=this.enabledRadios.findIndex(n=>n===Ra(this))??this.checkedIndex;let s=0;switch(e.key){case"ArrowLeft":{s=t?1:-1;break}case"ArrowUp":{s=-1;break}case"ArrowRight":{s=t?-1:1;break}case"ArrowDown":{s=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!s)return!0;const r=i+s;this.checkRadio(this.getEnabledIndexInBounds(r),!0),this.enabledRadios[this.checkedIndex]?.focus()}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}restrictFocus(){let e=Math.max(this.checkedIndex,0);const t=this.enabledRadios.indexOf(Ra(this));t!==-1&&(e=t),e=this.getEnabledIndexInBounds(e),this.enabledRadios.forEach((i,s)=>{i.tabIndex=s===e?0:-1})}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:this.required&&!this.value,...e},t??this.validationMessage,i??this.enabledRadios[0])}}slotchangeHandler(e){ne.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(t=>t instanceof Ha)})}}bt.formAssociated=!0,Xt([$],bt.prototype,"checkedIndex",2),Xt([a({attribute:"disabled",mode:"boolean"})],bt.prototype,"disabled",2),Xt([a({attribute:"value",mode:"fromView"})],bt.prototype,"initialValue",2),Xt([a],bt.prototype,"name",2),Xt([a],bt.prototype,"orientation",2),Xt([$],bt.prototype,"radios",2),Xt([a({mode:"boolean"})],bt.prototype,"required",2);const uf=p`
|
|
489
489
|
${I("flex")}
|
|
490
490
|
|
|
491
|
-
:host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${ji}}:host(${_}),:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${be}}::slotted(:hover){color:${
|
|
491
|
+
:host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${ji}}:host(${_}),:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${be}}::slotted(:hover){color:${De}}::slotted(:active){color:${O}}::slotted(${_}){color:${A}}::slotted(${x}){color:${O}}`;function pf(){return g`<template @disabled="${(o,e)=>o.disabledRadioHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot @slotchange="${(o,e)=>o.slotchangeHandler(e.event)}"></slot></template>`}const bf=pf(),gf=bt.compose({name:`${b.prefix}-radio-group`,template:bf,styles:uf});gf.define(b.registry);const ff=p`
|
|
492
492
|
${I("inline-flex")}
|
|
493
493
|
|
|
494
|
-
:host{--size:16px;aspect-ratio:1;background-color:${E};border:${N} solid ${Qe};border-radius:${
|
|
494
|
+
:host{--size:16px;aspect-ratio:1;background-color:${E};border:${N} solid ${Qe};border-radius:${Ce};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${Ce};color:${Dt};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:${Ie} solid ${ce};border-radius:${T}}:host(:not([slot='input']):focus-visible)::after{border-color:${Le}}:host(:hover){border-color:${Vt}}:host(${x}){border-color:${Rt}}:host(${x}) .checked-indicator{background-color:${Lt}}:host(${x}:hover) .checked-indicator{background-color:${no}}:host(:active){border-color:${Ht}}:host(${x}:active) .checked-indicator{background-color:${ao}}:host(:focus-visible){outline:none}:host(${_}){background-color:${kt};border-color:${Ae}}:host(${x}${_}) .checked-indicator{background-color:${Ae}}`.withBehaviors(le(p`
|
|
495
495
|
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${_}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${x}) .checked-indicator{background-color:FieldText}:host(${x}:not(${_}):hover) .checked-indicator{background-color:Highlight}:host(${_}){border-color:GrayText;color:GrayText}:host(${_}${x}) .checked-indicator{background-color:GrayText}`)),mf=g.partial(`
|
|
496
496
|
<span part="checked-indicator" class="checked-indicator" role="presentation"></span>
|
|
497
497
|
`);function $f(o={}){return g`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${ve(o.checkedIndicator)}</slot></template>`}const vf=$f({checkedIndicator:mf}),yf=Ha.compose({name:`${b.prefix}-radio`,template:vf,styles:ff});yf.define(b.registry);const kf={neutral:"neutral",brand:"brand",marigold:"marigold"},xf={small:"small",medium:"medium",large:"large"};var wf=Object.defineProperty,Cf=Object.getOwnPropertyDescriptor,gt=(o,e,t,i)=>{for(var s=i>1?void 0:i?Cf(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&wf(e,t,s),s};class Kt 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 e="",t;this.customIcon&&(t=/<svg[^>]*>([\s\S]*?)<\/svg>/.exec(this.customIcon)?.[1]??"");const i=this.getSelectedValue();for(let s=0;s<this.getMaxIcons();s++){const r=(s+1)/2;e+=`<svg aria-hidden="true" viewBox="${this.iconViewBox??"0 0 20 20"}" ${r===i?"selected":""}>${t??'<use href="#star"></use>'}</svg>`}return e}}gt([a({converter:ae})],Kt.prototype,"count",2),gt([a({attribute:"icon-view-box"})],Kt.prototype,"iconViewBox",2),gt([a({converter:ae})],Kt.prototype,"max",2),gt([a({converter:ae})],Kt.prototype,"value",2),gt([$],Kt.prototype,"slottedIcon",2),gt([$],Kt.prototype,"customIcon",2);class is extends Kt{constructor(){super(...arguments),this.compact=!1}colorChanged(e,t){y(this.elementInternals,e,t,kf)}sizeChanged(e,t){y(this.elementInternals,e,t,xf)}getSelectedValue(){return Math.round((this.compact?1:this.value??0)*2)/2}getMaxIcons(){return(this.compact?1:this.max??5)*2}}gt([a],is.prototype,"color",2),gt([a],is.prototype,"size",2),gt([a({mode:"boolean"})],is.prototype,"compact",2);const Sf=p`
|
|
498
498
|
${I("inline-flex")}
|
|
499
499
|
|
|
500
500
|
:host{--icon-size:16px;--icon-color-filled:${eh};--icon-color-empty:${ia};align-items:center;color:${O};font-family:${k};font-size:${G};line-height:${ee};contain:layout style;user-select:none}:host(${P}){--icon-size:12px}:host(${C}){--icon-size:20px;font-size:${M};line-height:${j}}::slotted([slot='icon']){display:none}svg{width:var(--icon-size);height:var(--icon-size);fill:var(--icon-color-filled);margin-inline-end:${te}}svg:nth-child(odd){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host(${Pi}) svg{--icon-color-filled:${O}}:host(${Ye}) svg{--icon-color-filled:${qs}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:var(--icon-color-empty)}:host(${Pi}:is([value^='-'],[value='0'])) svg,:host(${Pi}:not([value])) svg,:host(${Pi}) svg[selected] ~ svg{--icon-color-empty:${Fi}}:host(${Ye}:is([value^='-'],[value='0'])) svg,:host(${Ye}:not([value])) svg,:host(${Ye}) svg[selected] ~ svg{--icon-color-empty:${Ws}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${Ee};font-weight:${U}}:host(${P}) .value-label,:host(${P}) ::slotted([slot='value']){margin-inline-start:${te}}:host(${C}) .value-label,:host(${C}) ::slotted([slot='value']){margin-inline-start:${de}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${Ee}}:host(${P}) .count-label::before,:host(${P}) ::slotted([slot='count'])::before{margin-inline:${te}}:host(${C}) .count-label::before,:host(${C}) ::slotted([slot='count'])::before{margin-inline:${de}}`.withBehaviors(le(p`
|
|
501
|
-
: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}`)),If=g`<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 zf(){return g` ${o=>g`${ve(o.generateIcons())}`}<slot name="icon" ${K({property:"slottedIcon",filter:Bt("svg")})}>${If}</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 Pf=zf(),Tf=is.compose({name:`${b.prefix}-rating-display`,template:Pf,styles:Sf});Tf.define(b.registry);const Bf={small:"small",medium:"medium"},Af=
|
|
502
|
-
:host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}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(e){this.setValidity({customError:!!e},e)}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,i)}}get value(){return f.track(this,"value"),this._value
|
|
501
|
+
: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}`)),If=g`<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 zf(){return g` ${o=>g`${ve(o.generateIcons())}`}<slot name="icon" ${K({property:"slottedIcon",filter:Bt("svg")})}>${If}</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 Pf=zf(),Tf=is.compose({name:`${b.prefix}-rating-display`,template:Pf,styles:Sf});Tf.define(b.registry);const Bf={small:"small",medium:"medium"},Af=Te,Ef={singleValue:"single-value"};function qa(o,e,t,i){let s=Ts(0,1,(o-e)/(t-e));return i===Xe.rtl&&(s=1-s),s}var Of=Object.defineProperty,Ff=Object.getOwnPropertyDescriptor,ue=(o,e,t,i)=>{for(var s=i>1?void 0:i?Ff(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Of(e,t,s),s};class Z extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=Xe.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=Ef.singleValue,this.keypressHandler=e=>{if(!this.disabled)switch(e.key){case wi:e.preventDefault(),this.value=this.direction!==Xe.rtl&&this.orientation!==Te.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case ki:e.preventDefault(),this.value=this.direction!==Xe.rtl&&this.orientation!==Te.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case vi:case yi:e.shiftKey||(e.preventDefault(),this.increment());break;case $i:case mi:e.shiftKey||(e.preventDefault(),this.decrement());break}},this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(e=!1)=>{this.addEventListener("keydown",this.keypressHandler),e&&this.removeEventListener("keydown",this.keypressHandler)},this.handleThumbPointerDown=e=>{const t=e!==null?window.addEventListener:window.removeEventListener;t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null},this.handlePointerMove=e=>{if(this.disabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,i=this.orientation===Te.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft;this.value=`${this.calculateNewValue(i)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.disabled){const t=e!==null?window.addEventListener:window.removeEventListener,i=e!==null?document.addEventListener:document.removeEventListener;if(t("pointerup",this.handleWindowPointerUp),i("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove),e){this.setupTrackConstraints();const s=this.orientation===Te.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft;this.value=`${this.calculateNewValue(s)}`}}},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??Af.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}sizeChanged(e,t){y(this.elementInternals,e,t,Bf)}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=p`
|
|
502
|
+
:host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}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(e){this.setValidity({customError:!!e},e)}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,i)}}get value(){return f.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),i=Ts(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(i!==e){this.value=i;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),f.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.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 e=parseFloat(this.min);if(!Number.isNaN(e))return e}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 e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??Te.horizontal,y(this.elementInternals,e,t,Te),this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),this.direction=As(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setSliderPosition(),f.getNotifier(this).subscribe(this,"max"),f.getNotifier(this).subscribe(this,"min"),f.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),this.setupListeners(!0),f.getNotifier(this).unsubscribe(this,"max"),f.getNotifier(this).unsubscribe(this,"min"),f.getNotifier(this).unsubscribe(this,"step")}increment(){const e=this.direction!==Xe.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),i=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=i}decrement(){const e=this.direction!==Xe.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),i=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=i}setSliderPosition(){const t=qa(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}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(e){this.setupTrackConstraints();const t=qa(e,this.orientation===Te.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===Te.vertical?this.trackHeight:this.trackWidth,this.direction),i=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(i)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const i=Math.round(t/this.stepAsNumber),s=t-i*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=s>=Number(this.stepAsNumber)/2?t-s+Number(this.stepAsNumber):t-s,t+this.minAsNumber}setDisabledSideEffect(e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0)}}Z.formAssociated=!0,ue([a],Z.prototype,"size",2),ue([a({attribute:"value",mode:"fromView"})],Z.prototype,"initialValue",2),ue([$],Z.prototype,"direction",2),ue([$],Z.prototype,"isDragging",2),ue([$],Z.prototype,"position",2),ue([$],Z.prototype,"trackWidth",2),ue([$],Z.prototype,"trackMinWidth",2),ue([$],Z.prototype,"trackHeight",2),ue([$],Z.prototype,"trackLeft",2),ue([$],Z.prototype,"trackMinHeight",2),ue([$],Z.prototype,"valueTextFormatter",2),ue([a({mode:"boolean"})],Z.prototype,"disabled",2),ue([a({converter:Bs})],Z.prototype,"min",2),ue([a({converter:Bs})],Z.prototype,"max",2),ue([a({converter:Bs})],Z.prototype,"step",2),ue([a],Z.prototype,"orientation",2),ue([a],Z.prototype,"mode",2);const Nf=p`
|
|
503
503
|
${I("inline-grid")}
|
|
504
504
|
|
|
505
|
-
:host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${Lt};--track-color:${Qe};--slider-direction:90deg;--border-radius:${T};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${no}}:host(:active){--rail-color:${ao}}:host(:disabled){--rail-color:${A};--track-color:${kt}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host(${P}){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${
|
|
505
|
+
:host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${Lt};--track-color:${Qe};--slider-direction:90deg;--border-radius:${T};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${no}}:host(:active){--rail-color:${ao}}:host(:disabled){--rail-color:${A};--track-color:${kt}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host(${P}){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Ve}}:host(${z}){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${Le};outline:1px solid ${Us}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
|
|
506
506
|
var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100%
|
|
507
|
-
);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(${z})::after,:host(${z}) .track{height:100%;width:var(--track-size)}:host(${z}) .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(${z}) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient(
|
|
507
|
+
);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(${z})::after,:host(${z}) .track{height:100%;width:var(--track-size)}:host(${z}) .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(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host(${z}) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient(
|
|
508
508
|
var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${E} calc(var(--step-rate) - 1px),${E} var(--step-rate)
|
|
509
|
-
)}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host(${z}) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${
|
|
509
|
+
)}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host(${z}) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${Ce};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${E} inset;border:calc(var(--thumb-size) * 0.05) solid ${Ze};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}`.withBehaviors(le(p`
|
|
510
510
|
.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 _f(o={}){return g`<template tabindex="${e=>e.disabled?null:0}" @pointerdown="${(e,t)=>e.handlePointerDown(t.event)}"><div ${X("track")} part="track-container" class="track" style="${e=>e.position}"></div><div ${X("thumb")} part="thumb-container" class="thumb-container" style="${e=>e.position}" @pointerdown="${(e,t)=>e.handleThumbPointerDown(t.event)}"><slot name="thumb">${ve(o.thumb)}</slot></div></template>`}const Mf=_f({thumb:'<div class="thumb"></div>'}),Df=Z.compose({name:`${b.prefix}-slider`,template:Mf,styles:Nf});Df.define(b.registry);const Lf={primary:"primary",inverted:"inverted"},Vf={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large",huge:"huge"};var Hf=Object.defineProperty,Rf=Object.getOwnPropertyDescriptor,Wa=(o,e,t,i)=>{for(var s=i>1?void 0:i?Rf(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Hf(e,t,s),s};class jf extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}class gr extends jf{sizeChanged(e,t){y(this.elementInternals,e,t,Vf)}appearanceChanged(e,t){y(this.elementInternals,e,t,Lf)}}Wa([a],gr.prototype,"size",2),Wa([a],gr.prototype,"appearance",2);const qf=p`
|
|
511
511
|
${I("inline-flex")}
|
|
512
512
|
|
|
513
|
-
:host{--duration:1.5s;--indicatorSize:${ge};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host(${Oo}){--indicatorSize:${
|
|
513
|
+
:host{--duration:1.5s;--indicatorSize:${ge};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host(${Oo}){--indicatorSize:${Ie};--size:20px}:host(${To}){--indicatorSize:${Ie};--size:24px}:host(${P}){--indicatorSize:${Ie};--size:28px}:host(${C}){--indicatorSize:${ge};--size:36px}:host(${Si}){--indicatorSize:${ge};--size:40px}:host(${vc}){--indicatorSize:${Zs};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${Gi}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${Ws};border-radius:50%}:host(${En}) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${qn};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host(${En}) .indicator{color:${Ld}}.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(le(p`
|
|
514
514
|
.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}`)),Wf=g`<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>`,Gf=gr.compose({name:`${b.prefix}-spinner`,template:Wf,styles:qf});Gf.define(b.registry);class Uf extends Fe{constructor(){super(),this.elementInternals.role="switch"}}function Xf(o={}){return g`<template tabindex="${e=>e.disabled?void 0:0}" @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="switch">${ve(o.switch)}</slot></template>`}const Kf=Xf({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Yf=p`
|
|
515
515
|
${I("inline-flex")}
|
|
516
516
|
|
|
517
|
-
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${te};width:40px;height:20px;background-color:${Be};border:1px solid ${Qe};border-radius:${
|
|
517
|
+
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${te};width:40px;height:20px;background-color:${Be};border:1px solid ${Qe};border-radius:${Ce};cursor:pointer}:host(:hover){background:none;border-color:${Vt}}:host(:active){border-color:${Ht}}:host(:disabled),:host([readonly]){border:1px solid ${Ae};background-color:none;pointer:default}:host(${x}){background:${Lt};border-color:${Lt}}:host(${x}:hover){background:${no};border-color:${no}}:host(${x}:active){background:${ao};border-color:${ao}}:host(${x}:disabled){background:${kt};border-color:${Ae}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${be};transition-duration:${qi};transition-timing-function:${Gi};transition-property:margin-inline-start}:host(${x}) .checked-indicator{background-color:${Dt};margin-inline-start:calc(100% - 14px)}:host(${x}:hover) .checked-indicator{background:${zd}}:host(${x}:active) .checked-indicator{background:${Pd}}:host(:hover) .checked-indicator{background-color:${$d}}:host(:active) .checked-indicator{background-color:${vd}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${A}}:host(${x}:disabled) .checked-indicator{background:${A}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${ce};outline:${Ie} solid ${ce};box-shadow:${Ri},0 0 0 2px ${Le}}`.withBehaviors(le(p`
|
|
518
518
|
:host{border-color:InactiveBorder}:host(${x}),:host(${x}:active),:host(${x}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${x}) .checked-indicator,:host(${x}:hover) .checked-indicator,:host(${x}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${x}:disabled) .checked-indicator{background-color:GrayText}`)),Qf=Uf.compose({name:`${b.prefix}-switch`,template:Kf,styles:Yf});Qf.define(b.registry);class Zf extends w{}function Jf(){return g`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const em=Jf(),tm=p`
|
|
519
519
|
${I("block")}
|
|
520
520
|
|
|
@@ -522,26 +522,26 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
522
522
|
:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}rm([a({mode:"boolean"})],fr.prototype,"disabled",2),nt(fr,rt);function nm(o={}){return g`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">${Ke(o)}<span class="tab-content"><slot></slot></span>${mt(o)}</template>`}const am=nm({}),lm=p`
|
|
523
523
|
${I("inline-flex")}
|
|
524
524
|
|
|
525
|
-
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${j};font-family:${k};font-size:${M};color:${
|
|
526
|
-
:host([aria-selected='true'])::after{background-color:Highlight}`)),cm=fr.compose({name:`${b.prefix}-tab`,template:am,styles:lm});cm.define(b.registry);const dm={subtle:"subtle",transparent:"transparent"},ss=
|
|
525
|
+
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${j};font-family:${k};font-size:${M};color:${De};fill:currentcolor;grid-row:1;padding:${xe} ${fe};border-radius:${T}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${O};font-weight:${U}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${j};font-weight:${U}}:host([aria-selected='true'])::after{background-color:${Rt};border-radius:${Ce};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${lo};border-radius:${Ce};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${A}}::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:${A};color:${A}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Ve};box-shadow:0 0 0 3px ${Le};outline:1px solid ${Us}}`.withBehaviors(le(p`
|
|
526
|
+
:host([aria-selected='true'])::after{background-color:Highlight}`)),cm=fr.compose({name:`${b.prefix}-tab`,template:am,styles:lm});cm.define(b.registry);const dm={subtle:"subtle",transparent:"transparent"},ss=Te;var hm=Object.defineProperty,um=Object.getOwnPropertyDescriptor,Yt=(o,e,t,i)=>{for(var s=i>1?void 0:i?um(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&hm(e,t,s),s};class Qo extends w{constructor(){super(...arguments),this.orientation=ss.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>e.getAttribute("aria-disabled")==="true",this.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===1&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case $i:e.preventDefault(),this.adjustBackward(e);break;case vi:e.preventDefault(),this.adjustForward(e);break}else switch(e.key){case yi:e.preventDefault(),this.adjustBackward(e);break;case mi:e.preventDefault(),this.adjustForward(e);break}switch(e.key){case wi:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case ki:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),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 e="gridColumn",t="gridRow",i=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((s,r)=>{if(s.slot==="tab"){const n=this.activeTabIndex===r&&this.isFocusableElement(s),d=this.tabIds[r],u=this.tabpanelIds[r];s.setAttribute("id",d),s.setAttribute("aria-selected",n?"true":"false"),s.setAttribute("aria-controls",u),s.addEventListener("click",this.handleTabClick),s.addEventListener("keydown",this.handleTabKeyDown),s.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=s,this.activeid=d)}s.style[e]="",s.style[t]="",s.style[i]=`${r+1}`,this.isHorizontal()?s.classList.remove("vertical"):s.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((e,t)=>{const i=this.tabIds[t],s=this.tabpanelIds[t];e.setAttribute("id",s),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${io()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute("id")??`panel-${io()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===ss.horizontal}adjust(e){const t=this.tabs.filter(n=>this.isFocusableElement(n)),i=t.indexOf(this.activetab),s=Ts(0,t.length-1,i+e),r=this.tabs.indexOf(t[s]);r>-1&&this.moveToTabByIndex(this.tabs,r)}adjustForward(e){const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)+1:1,i===t.length&&(i=0);i<t.length&&t.length>1;)if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else{if(this.activetab&&i===t.indexOf(this.activetab))break;i+1>=t.length?i=0:i+=1}}adjustBackward(e){const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)-1:0,i=i<0?t.length-1:i;i>=0&&t.length>1;)if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else i-1<0?i=t.length-1:i-=1}moveToTabByIndex(e,t){const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Yt([a],Qo.prototype,"orientation",2),Yt([a],Qo.prototype,"activeid",2),Yt([$],Qo.prototype,"tabs",2),Yt([$],Qo.prototype,"tabpanels",2);class Zo extends Qo{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=dm.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===ss.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===ss.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,i=(this.activetab||e[0])?.getBoundingClientRect(),s=this.getBoundingClientRect();this.activeTabData={x:i.x-s.x,y:i.y-s.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=p`
|
|
527
527
|
:host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=p`
|
|
528
528
|
:host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}Yt([a],Zo.prototype,"appearance",2),Yt([a({mode:"boolean"})],Zo.prototype,"disabled",2),Yt([a],Zo.prototype,"size",2),nt(Zo,rt);function pm(o={}){return g` ${Ke(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${K("tabs")}></slot></div>${mt(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${K("tabpanels")}></slot></div>`}const bm=pm({}),gm=p`
|
|
529
529
|
${I("grid")}
|
|
530
530
|
|
|
531
|
-
:host{box-sizing:border-box;font-family:${k};font-size:${M};line-height:${j};color:${Le};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${A}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${A}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${A}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${A}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${T}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${A}}.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:${_i};color:${Ds};fill:${Mn}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${ro};fill:${ro};color:${O}}:host([size='small']) ::slotted(fluent-tab){font-size:${M};line-height:${j};padding:${et} ${de}}:host([size='large']) ::slotted(fluent-tab){font-size:${ke};line-height:${Ie};padding:${ji} ${fe}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${fa};transition-timing-function:${or}}:host ::slotted(fluent-tab)::after{height:${ge};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${ge};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${ge};border-radius:${Se};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${ge};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${ge};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:${ge}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${et};padding-bottom:${et}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Vo};padding-bottom:${Vo}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${oe};padding-bottom:${oe}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${de};left:${de}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${fe};left:${fe}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${fe};left:${fe}}: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:${et};bottom:${et}}: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:${oe};bottom:${oe}}: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:${uo};bottom:${uo}}`,fm=Zo.compose({name:`${b.prefix}-tabs`,template:bm,styles:gm});fm.define(b.registry);const mm=o=>o.getAttribute("aria-disabled")==="true",$m=o=>o.hasAttribute("hidden"),rs=o=>!mm(o)&&!$m(o),Ga={subtle:"subtle",transparent:"transparent"},vm={small:"small",medium:"medium",large:"large"},yo=Ce;var ym=Object.defineProperty,km=Object.getOwnPropertyDescriptor,ko=(o,e,t,i)=>{for(var s=i>1?void 0:i?km(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&ym(e,t,s),s};class Jo extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=yo.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===Node.ELEMENT_NODE&&rs(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{const t=As(this);switch(e.key){case $i:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?-1:1);break;case vi:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?1:-1);break;case yi:if(this.isHorizontal())return;e.preventDefault(),this.adjust(-1);break;case mi:if(this.isHorizontal())return;e.preventDefault(),this.adjust(1);break;case wi:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case ki:e.preventDefault(),this.adjust(this.tabs.filter(i=>rs(i)).length-this.activeTabIndex-1);break}}}disabledChanged(e,t){v(this.elementInternals,"disabled",t)}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??yo.horizontal,y(this.elementInternals,e,t,yo),this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length>0&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),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((e,t)=>{if(e.slot==="tab"){const i=this.activeTabIndex===t&&rs(e),s=this.tabIds[t];e.setAttribute("id",s),e.setAttribute("aria-selected",i?"true":"false"),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",i&&!this.disabled?"0":"-1"),i&&(this.activetab=e,this.activeid=s),this.change()}})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${io()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===yo.horizontal}adjust(e){const t=this.tabs.filter(n=>rs(n)),i=t.indexOf(this.activetab),s=Nl(0,t.length-1,i+e),r=this.tabs.indexOf(t[s]);r>-1&&this.activateTabByIndex(this.tabs,r)}activateTabByIndex(e,t){const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.activeTabIndex=this.getActiveIndex()}}ko([a({mode:"boolean"})],Jo.prototype,"disabled",2),ko([a],Jo.prototype,"orientation",2),ko([a],Jo.prototype,"activeid",2),ko([$],Jo.prototype,"tabs",2);class mr extends Jo{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=Ga.transparent}appearanceChanged(e,t){y(this.elementInternals,e,t,Ga)}sizeChanged(e,t){y(this.elementInternals,e,t,vm)}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===yo.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===yo.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setAnimationVars()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,i=(this.activetab||e[0])?.getBoundingClientRect(),s=this.getBoundingClientRect();this.activeTabData={x:i.x-s.x,y:i.y-s.y,height:i.height,width:i.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(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}ko([a],mr.prototype,"appearance",2),ko([a],mr.prototype,"size",2);const xm=g`<template role="tablist"><slot name="tab" ${K("tabs")}></slot></template>`,wm=p`
|
|
531
|
+
:host{box-sizing:border-box;font-family:${k};font-size:${M};line-height:${j};color:${De};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${A}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${A}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${A}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${A}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${T}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${A}}.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:${_i};color:${Ds};fill:${Mn}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${ro};fill:${ro};color:${O}}:host([size='small']) ::slotted(fluent-tab){font-size:${M};line-height:${j};padding:${et} ${de}}:host([size='large']) ::slotted(fluent-tab){font-size:${ke};line-height:${Se};padding:${ji} ${fe}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${fa};transition-timing-function:${or}}:host ::slotted(fluent-tab)::after{height:${ge};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${ge};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${ge};border-radius:${Ce};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${ge};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${ge};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:${ge}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${et};padding-bottom:${et}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Vo};padding-bottom:${Vo}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${oe};padding-bottom:${oe}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${de};left:${de}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${fe};left:${fe}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${fe};left:${fe}}: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:${et};bottom:${et}}: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:${oe};bottom:${oe}}: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:${uo};bottom:${uo}}`,fm=Zo.compose({name:`${b.prefix}-tabs`,template:bm,styles:gm});fm.define(b.registry);const mm=o=>o.getAttribute("aria-disabled")==="true",$m=o=>o.hasAttribute("hidden"),rs=o=>!mm(o)&&!$m(o),Ga={subtle:"subtle",transparent:"transparent"},vm={small:"small",medium:"medium",large:"large"},yo=Te;var ym=Object.defineProperty,km=Object.getOwnPropertyDescriptor,ko=(o,e,t,i)=>{for(var s=i>1?void 0:i?km(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&ym(e,t,s),s};class Jo extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=yo.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===Node.ELEMENT_NODE&&rs(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{const t=As(this);switch(e.key){case $i:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?-1:1);break;case vi:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?1:-1);break;case yi:if(this.isHorizontal())return;e.preventDefault(),this.adjust(-1);break;case mi:if(this.isHorizontal())return;e.preventDefault(),this.adjust(1);break;case wi:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case ki:e.preventDefault(),this.adjust(this.tabs.filter(i=>rs(i)).length-this.activeTabIndex-1);break}}}disabledChanged(e,t){v(this.elementInternals,"disabled",t)}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??yo.horizontal,y(this.elementInternals,e,t,yo),this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length>0&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),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((e,t)=>{if(e.slot==="tab"){const i=this.activeTabIndex===t&&rs(e),s=this.tabIds[t];e.setAttribute("id",s),e.setAttribute("aria-selected",i?"true":"false"),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",i&&!this.disabled?"0":"-1"),i&&(this.activetab=e,this.activeid=s),this.change()}})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${io()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===yo.horizontal}adjust(e){const t=this.tabs.filter(n=>rs(n)),i=t.indexOf(this.activetab),s=Nl(0,t.length-1,i+e),r=this.tabs.indexOf(t[s]);r>-1&&this.activateTabByIndex(this.tabs,r)}activateTabByIndex(e,t){const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.activeTabIndex=this.getActiveIndex()}}ko([a({mode:"boolean"})],Jo.prototype,"disabled",2),ko([a],Jo.prototype,"orientation",2),ko([a],Jo.prototype,"activeid",2),ko([$],Jo.prototype,"tabs",2);class mr extends Jo{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=Ga.transparent}appearanceChanged(e,t){y(this.elementInternals,e,t,Ga)}sizeChanged(e,t){y(this.elementInternals,e,t,vm)}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===yo.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===yo.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setAnimationVars()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,i=(this.activetab||e[0])?.getBoundingClientRect(),s=this.getBoundingClientRect();this.activeTabData={x:i.x-s.x,y:i.y-s.y,height:i.height,width:i.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(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}ko([a],mr.prototype,"appearance",2),ko([a],mr.prototype,"size",2);const xm=g`<template role="tablist"><slot name="tab" ${K("tabs")}></slot></template>`,wm=p`
|
|
532
532
|
${I("flex")}
|
|
533
533
|
|
|
534
|
-
:host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Le};flex-direction:row}:host(${z}){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${fa};transition-timing-function:${or}}:host ::slotted([slot='tab'])::after{height:${ge};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host(${z}) ::slotted([slot='tab'])::after{width:${ge};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${ge};border-radius:${Se};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:${A}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${ge};margin-block-start:auto;transform-origin:left}:host(${z}) ::slotted([slot='tab'])::before,:host(${z}) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${ge};margin-inline-end:auto;transform-origin:top}:host(:where(${P},${C})) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host(${P}) ::slotted([slot='tab']){--tabPaddingBlock:${et};--tabPaddingInline:${de};font-size:${M};line-height:${j}}:host(${C}) ::slotted([slot='tab']){--tabPaddingBlock:${ji};--tabPaddingInline:${fe};font-size:${ke};line-height:${Ie}}: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:${fe}}:host(${P}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${de}}:host(${C}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${fe}}:host(${z}) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host(${z}) ::slotted([slot='tab']){--tabPaddingBlock:${oe}}:host(${z}${P}) ::slotted([slot='tab']){--tabPaddingBlock:${Vo}}:host(${z}${C}) ::slotted([slot='tab']){--tabPaddingBlock:${oe}}:host(${z}) ::slotted([slot='tab'])::after,:host(${z}) ::slotted([slot='tab'])::before,:host(${z}) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host(${z}){--tabIndicatorInsetBlock:${oe}}:host(${z}${P}){--tabIndicatorInsetBlock:${et}}:host(${z}${C}){--tabIndicatorInsetBlock:${uo}}:host(${_}){cursor:not-allowed;color:${A}}:host(${_}) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${A}}:host(${_}) ::slotted([slot='tab']:after){background-color:${A}}:host(${_}) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${A}}:host(${_}) ::slotted([slot='tab']:hover):before{content:unset}:host(${B}) ::slotted([slot='tab']:hover){background-color:${_i};color:${Ds};fill:${Mn}}:host(${B}) ::slotted([slot='tab']:active){background-color:${ro};fill:${ro};color:${O}}`,Cm=mr.compose({name:`${b.prefix}-tablist`,template:xm,styles:wm});Cm.define(b.registry);const Sm={small:"small",medium:"medium",large:"large"},ei={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Im=[ei.filledLighter,ei.filledDarker],ns={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var zm=Object.defineProperty,Pm=Object.getOwnPropertyDescriptor,J=(o,e,t,i)=>{for(var s=i>1?void 0:i?Pm(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&zm(e,t,s),s};class se 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=ns.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const e=this.getContent();this.defaultValue=e,this.value=e}labelSlottedNodesChanged(){this.labelEl&&(this.labelEl.hidden=!this.labelSlottedNodes.length),this.labelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),v(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(e=>e.required=this.required)}resizeChanged(e,t){y(this.elementInternals,e,t,ns,"resize-"),v(this.elementInternals,"resize",Fs(ns,t)&&t!==ns.none)}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(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),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(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,i){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl.validity,t??this.controlEl.validationMessage,i??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(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.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(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){v(this.elementInternals,"user-invalid",!this.validity.valid),v(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((e,t)=>{const i=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(i)!==""&&(this.autoSizerEl?.remove(),t.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")}}se.formAssociated=!0,J([$],se.prototype,"defaultSlottedNodes",2),J([$],se.prototype,"labelSlottedNodes",2),J([a],se.prototype,"autocomplete",2),J([a({attribute:"auto-resize",mode:"boolean"})],se.prototype,"autoResize",2),J([a({attribute:"dirname"})],se.prototype,"dirName",2),J([a({mode:"boolean"})],se.prototype,"disabled",2),J([a({attribute:"display-shadow",mode:"boolean"})],se.prototype,"displayShadow",2),J([a({attribute:"form"})],se.prototype,"initialForm",2),J([a({attribute:"maxlength",converter:ae})],se.prototype,"maxLength",2),J([a({attribute:"minlength",converter:ae})],se.prototype,"minLength",2),J([a],se.prototype,"name",2),J([a],se.prototype,"placeholder",2),J([a({attribute:"readonly",mode:"boolean"})],se.prototype,"readOnly",2),J([a({mode:"boolean"})],se.prototype,"required",2),J([a({mode:"fromView"})],se.prototype,"resize",2),J([a({mode:"boolean"})],se.prototype,"spellcheck",2);class as extends se{constructor(){super(...arguments),this.appearance=ei.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}appearanceChanged(e,t){v(this.elementInternals,e,!1),Fs(ei,t)?v(this.elementInternals,t,!0):this.appearance=ei.outline}blockChanged(){v(this.elementInternals,"block",this.block)}sizeChanged(e,t){y(this.elementInternals,e,t,Sm)}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(i=>{i.size=this.size});break;case"appearance":case"displayShadow":this.maybeDisplayShadow();break}}connectedCallback(){super.connectedCallback(),this.maybeDisplayShadow(),f.getNotifier(this).subscribe(this,"appearance"),f.getNotifier(this).subscribe(this,"displayShadow"),f.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this,"appearance"),f.getNotifier(this).unsubscribe(this,"displayShadow"),f.getNotifier(this).unsubscribe(this,"size")}maybeDisplayShadow(){v(this.elementInternals,"display-shadow",this.displayShadow&&Im.includes(this.appearance))}}J([a({mode:"fromView"})],as.prototype,"appearance",2),J([a({mode:"boolean"})],as.prototype,"block",2),J([a],as.prototype,"size",2);const Tm=p`
|
|
534
|
+
:host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${De};flex-direction:row}:host(${z}){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${fa};transition-timing-function:${or}}:host ::slotted([slot='tab'])::after{height:${ge};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host(${z}) ::slotted([slot='tab'])::after{width:${ge};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${ge};border-radius:${Ce};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:${A}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${ge};margin-block-start:auto;transform-origin:left}:host(${z}) ::slotted([slot='tab'])::before,:host(${z}) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${ge};margin-inline-end:auto;transform-origin:top}:host(:where(${P},${C})) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host(${P}) ::slotted([slot='tab']){--tabPaddingBlock:${et};--tabPaddingInline:${de};font-size:${M};line-height:${j}}:host(${C}) ::slotted([slot='tab']){--tabPaddingBlock:${ji};--tabPaddingInline:${fe};font-size:${ke};line-height:${Se}}: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:${fe}}:host(${P}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${de}}:host(${C}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${fe}}:host(${z}) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host(${z}) ::slotted([slot='tab']){--tabPaddingBlock:${oe}}:host(${z}${P}) ::slotted([slot='tab']){--tabPaddingBlock:${Vo}}:host(${z}${C}) ::slotted([slot='tab']){--tabPaddingBlock:${oe}}:host(${z}) ::slotted([slot='tab'])::after,:host(${z}) ::slotted([slot='tab'])::before,:host(${z}) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host(${z}){--tabIndicatorInsetBlock:${oe}}:host(${z}${P}){--tabIndicatorInsetBlock:${et}}:host(${z}${C}){--tabIndicatorInsetBlock:${uo}}:host(${_}){cursor:not-allowed;color:${A}}:host(${_}) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${A}}:host(${_}) ::slotted([slot='tab']:after){background-color:${A}}:host(${_}) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${A}}:host(${_}) ::slotted([slot='tab']:hover):before{content:unset}:host(${B}) ::slotted([slot='tab']:hover){background-color:${_i};color:${Ds};fill:${Mn}}:host(${B}) ::slotted([slot='tab']:active){background-color:${ro};fill:${ro};color:${O}}`,Cm=mr.compose({name:`${b.prefix}-tablist`,template:xm,styles:wm});Cm.define(b.registry);const Sm={small:"small",medium:"medium",large:"large"},ei={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Im=[ei.filledLighter,ei.filledDarker],ns={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var zm=Object.defineProperty,Pm=Object.getOwnPropertyDescriptor,J=(o,e,t,i)=>{for(var s=i>1?void 0:i?Pm(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&zm(e,t,s),s};class se 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=ns.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const e=this.getContent();this.defaultValue=e,this.value=e}labelSlottedNodesChanged(){this.labelEl&&(this.labelEl.hidden=!this.labelSlottedNodes.length),this.labelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),v(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(e=>e.required=this.required)}resizeChanged(e,t){y(this.elementInternals,e,t,ns,"resize-"),v(this.elementInternals,"resize",Fs(ns,t)&&t!==ns.none)}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(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),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(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,i){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl.validity,t??this.controlEl.validationMessage,i??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(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.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(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){v(this.elementInternals,"user-invalid",!this.validity.valid),v(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((e,t)=>{const i=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(i)!==""&&(this.autoSizerEl?.remove(),t.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")}}se.formAssociated=!0,J([$],se.prototype,"defaultSlottedNodes",2),J([$],se.prototype,"labelSlottedNodes",2),J([a],se.prototype,"autocomplete",2),J([a({attribute:"auto-resize",mode:"boolean"})],se.prototype,"autoResize",2),J([a({attribute:"dirname"})],se.prototype,"dirName",2),J([a({mode:"boolean"})],se.prototype,"disabled",2),J([a({attribute:"display-shadow",mode:"boolean"})],se.prototype,"displayShadow",2),J([a({attribute:"form"})],se.prototype,"initialForm",2),J([a({attribute:"maxlength",converter:ae})],se.prototype,"maxLength",2),J([a({attribute:"minlength",converter:ae})],se.prototype,"minLength",2),J([a],se.prototype,"name",2),J([a],se.prototype,"placeholder",2),J([a({attribute:"readonly",mode:"boolean"})],se.prototype,"readOnly",2),J([a({mode:"boolean"})],se.prototype,"required",2),J([a({mode:"fromView"})],se.prototype,"resize",2),J([a({mode:"boolean"})],se.prototype,"spellcheck",2);class as extends se{constructor(){super(...arguments),this.appearance=ei.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}appearanceChanged(e,t){v(this.elementInternals,e,!1),Fs(ei,t)?v(this.elementInternals,t,!0):this.appearance=ei.outline}blockChanged(){v(this.elementInternals,"block",this.block)}sizeChanged(e,t){y(this.elementInternals,e,t,Sm)}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(i=>{i.size=this.size});break;case"appearance":case"displayShadow":this.maybeDisplayShadow();break}}connectedCallback(){super.connectedCallback(),this.maybeDisplayShadow(),f.getNotifier(this).subscribe(this,"appearance"),f.getNotifier(this).subscribe(this,"displayShadow"),f.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this,"appearance"),f.getNotifier(this).unsubscribe(this,"displayShadow"),f.getNotifier(this).unsubscribe(this,"size")}maybeDisplayShadow(){v(this.elementInternals,"display-shadow",this.displayShadow&&Im.includes(this.appearance))}}J([a({mode:"fromView"})],as.prototype,"appearance",2),J([a({mode:"boolean"})],as.prototype,"block",2),J([a],as.prototype,"size",2);const Tm=p`
|
|
535
535
|
${I("inline-block")}
|
|
536
536
|
|
|
537
|
-
:host{--font-size:${M};--line-height:${j};--padding-inline:${fe};--padding-block:${et};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${N};--control-padding-inline:${te};--color:${O};--background-color:${E};--border-color:${Ze};--border-block-end-color:${Qe};--placeholder-color:${Ls};--focus-indicator-color:${Rt};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${k};font-size:var(--font-size);font-weight:${R};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${lo};--border-block-end-color:${Vt}}:host(:active){--border-color:${Mo};--border-block-end-color:${Ht}}:host(:focus-within){outline:none}:host(${zo}:not([hidden])){display:block}:host(${P}){--font-size:${G};--line-height:${ee};--min-block-size:40px;--padding-block:${ho};--padding-inline:${de};--control-padding-inline:${te}}:host(${C}){--font-size:${ke};--line-height:${
|
|
537
|
+
:host{--font-size:${M};--line-height:${j};--padding-inline:${fe};--padding-block:${et};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${N};--control-padding-inline:${te};--color:${O};--background-color:${E};--border-color:${Ze};--border-block-end-color:${Qe};--placeholder-color:${Ls};--focus-indicator-color:${Rt};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${k};font-size:var(--font-size);font-weight:${R};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${lo};--border-block-end-color:${Vt}}:host(:active){--border-color:${Mo};--border-block-end-color:${Ht}}:host(:focus-within){outline:none}:host(${zo}:not([hidden])){display:block}:host(${P}){--font-size:${G};--line-height:${ee};--min-block-size:40px;--padding-block:${ho};--padding-inline:${de};--control-padding-inline:${te}}:host(${C}){--font-size:${ke};--line-height:${Se};--min-block-size:64px;--padding-block:${oe};--padding-inline:${xe};--control-padding-inline:${de}}:host(${Wc}:not(:disabled)){--resize:both}:host(${Gc}:not(:disabled)){--resize:horizontal}:host(${Uc}:not(:disabled)){--resize:vertical}:host(${Tn}){--block-size:auto;--contain-size:inline-size}:host(${$t}){--background-color:${_o};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${Ot}){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${$t}${Bn}),:host(${Ot}${Bn}){--box-shadow:${Ys}}:host(${ud}){--border-color:${Xs};--border-block-end-color:${Xs}}:host(:disabled){--color:${A};--background-color:${Be};--border-color:${Ae};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${A};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:${T};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(${zo}) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${T} ${T};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${T});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${jt};transition-duration:${Js};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${qi};transition-delay:${qt}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${ho};padding-inline-end:${Ee}}: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(${Tn}) .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:${Dt};background-color:${Vn}}`.withBehaviors(le(p`
|
|
538
538
|
: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 Bm(){return g`<template><label ${X("labelEl")} for="control" part="label"><slot name="label" ${K({property:"labelSlottedNodes",filter:Es})}></slot></label><div class="root" part="root"><textarea ${X("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 ${K({property:"defaultSlottedNodes",filter:Es})}></slot></div></template>`}const Am=Bm(),Em=as.compose({name:`${b.prefix}-textarea`,template:Am,styles:Tm,shadowOptions:{delegatesFocus:!0}});Em.define(b.registry);const Om={small:"small",medium:"medium",large:"large"},Fm={outline:"outline",underline:"underline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Nm={email:"email",password:"password",tel:"tel",text:"text",url:"url"},_m=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var Mm=Object.defineProperty,Dm=Object.getOwnPropertyDescriptor,L=(o,e,t,i)=>{for(var s=i>1?void 0:i?Dm(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Mm(e,t,s),s};class V extends w{constructor(){super(...arguments),this.type=Nm.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){this.$fastController.isConnected&&(this.controlLabel.hidden=!t?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return f.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.$fastController.isConnected&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),f.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(e){return e.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(e){return this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return e.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(e){return e.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 e=[...this.elementInternals.form.elements],t=e.find(s=>s.getAttribute("type")==="submit");if(t){t.click();return}e.filter(s=>_m.includes(s.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e=this.control.validity,t=this.validationMessage,i=this.control){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e,t,i)}}}V.formAssociated=!0,L([a],V.prototype,"autocomplete",2),L([a({mode:"boolean"})],V.prototype,"autofocus",2),L([a({attribute:"current-value"})],V.prototype,"currentValue",2),L([$],V.prototype,"defaultSlottedNodes",2),L([a],V.prototype,"dirname",2),L([a({mode:"boolean"})],V.prototype,"disabled",2),L([a({attribute:"form"})],V.prototype,"formAttribute",2),L([a({attribute:"value",mode:"fromView"})],V.prototype,"initialValue",2),L([a],V.prototype,"list",2),L([a({converter:ae})],V.prototype,"maxlength",2),L([a({converter:ae})],V.prototype,"minlength",2),L([a({mode:"boolean"})],V.prototype,"multiple",2),L([a],V.prototype,"name",2),L([a],V.prototype,"pattern",2),L([a],V.prototype,"placeholder",2),L([a({attribute:"readonly",mode:"boolean"})],V.prototype,"readOnly",2),L([a({mode:"boolean"})],V.prototype,"required",2),L([a({converter:ae})],V.prototype,"size",2),L([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],V.prototype,"spellcheck",2),L([a],V.prototype,"type",2),L([$],V.prototype,"controlLabel",2);class ls extends V{appearanceChanged(e,t){y(this.elementInternals,e,t,Fm)}controlSizeChanged(e,t){y(this.elementInternals,e,t,Om)}}L([a],ls.prototype,"appearance",2),L([a({attribute:"control-size"})],ls.prototype,"controlSize",2),nt(ls,rt);const Lm=p`
|
|
539
539
|
${I("block")}
|
|
540
540
|
|
|
541
|
-
:host{font-family:${k};font-size:${M};font-weight:${R};line-height:${j};max-width:400px}.label{display:flex;color:${O};padding-bottom:${ho};flex-shrink:0;padding-inline-end:${Ee}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${E};border:${N} solid ${Ze};border-bottom-color:${Qe};border-radius:${T};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${te};padding:0 ${fe};position:relative;width:100%}:has(.control:user-invalid){border-color:${Xs}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${T});border-radius:0 0 ${T} ${T};border-bottom:2px solid ${Rt};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Js};transition-delay:${jt}}.control{width:100%;height:100%;box-sizing:border-box;color:${O};border-radius:${T};background:${Be};font-family:${k};font-weight:${R};font-size:${M};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${Ls}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${be};font-size:${co}}:host ::slotted([slot='start']){padding-right:${te}}:host ::slotted([slot='end']){padding-left:${te};gap:${Ee}}:host(:hover) .root{border-color:${lo};border-bottom-color:${Vt}}:host(:active) .root{border-color:${Mo}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${qi};transition-delay:${qt}}:host(:focus-within:active) .root:after{border-bottom-color:${Wn}}:host(${F}:focus-within) .root{border:${N} solid ${Ze}}:host(:focus-within) .control{color:${O}}:host([disabled]) .root{background:${Be};border:${N} solid ${Ae}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${A}}::selection{color:${Dt};background-color:${Vn}}:host(${P}) .control{font-size:${G};font-weight:${R};line-height:${ee}}:host(${P}) .root{height:24px;gap:${te};padding:0 ${de}}:host(${P}) ::slotted([slot='start']),:host(${P}) ::slotted([slot='end']){font-size:${ke}}:host(${C}) .control{font-size:${ke};font-weight:${R};line-height:${
|
|
541
|
+
:host{font-family:${k};font-size:${M};font-weight:${R};line-height:${j};max-width:400px}.label{display:flex;color:${O};padding-bottom:${ho};flex-shrink:0;padding-inline-end:${Ee}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${E};border:${N} solid ${Ze};border-bottom-color:${Qe};border-radius:${T};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${te};padding:0 ${fe};position:relative;width:100%}:has(.control:user-invalid){border-color:${Xs}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${T});border-radius:0 0 ${T} ${T};border-bottom:2px solid ${Rt};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Js};transition-delay:${jt}}.control{width:100%;height:100%;box-sizing:border-box;color:${O};border-radius:${T};background:${Be};font-family:${k};font-weight:${R};font-size:${M};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${Ls}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${be};font-size:${co}}:host ::slotted([slot='start']){padding-right:${te}}:host ::slotted([slot='end']){padding-left:${te};gap:${Ee}}:host(:hover) .root{border-color:${lo};border-bottom-color:${Vt}}:host(:active) .root{border-color:${Mo}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${qi};transition-delay:${qt}}:host(:focus-within:active) .root:after{border-bottom-color:${Wn}}:host(${F}:focus-within) .root{border:${N} solid ${Ze}}:host(:focus-within) .control{color:${O}}:host([disabled]) .root{background:${Be};border:${N} solid ${Ae}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${A}}::selection{color:${Dt};background-color:${Vn}}:host(${P}) .control{font-size:${G};font-weight:${R};line-height:${ee}}:host(${P}) .root{height:24px;gap:${te};padding:0 ${de}}:host(${P}) ::slotted([slot='start']),:host(${P}) ::slotted([slot='end']){font-size:${ke}}:host(${C}) .control{font-size:${ke};font-weight:${R};line-height:${Se}}:host(${C}) .root{height:40px;gap:${Je};padding:0 ${xe}}:host(${C}) ::slotted([slot='start']),:host(${C}) ::slotted([slot='end']){font-size:${Di}}:host(${_t}) .root{background:${Be};border:0;border-radius:0;border-bottom:${N} solid ${Qe}}:host(${_t}:hover) .root{border-bottom-color:${Vt}}:host(${_t}:active) .root{border-bottom-color:${Ht}}:host(${_t}:focus-within) .root{border:0;border-bottom-color:${Ht}}:host(${_t}[disabled]) .root{border-bottom-color:${Ae}}:host(${Ot}) .root,:host(${$t}) .root{border:${N} solid ${ce};box-shadow:${Ys}}:host(${Ot}) .root{background:${E}}:host(${$t}) .root{background:${_o}}:host(${Ot}:hover) .root,:host(${$t}:hover) .root{border-color:${Gs}}:host(${Ot}:active) .root,:host(${$t}:active) .root{border-color:${Gs};background:${_o}}`;function Vm(o={}){return g`<template @beforeinput="${(e,t)=>e.beforeinputHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}"><label part="label" for="control" class="label" ${X("controlLabel")}><slot ${K({property:"defaultSlottedNodes",filter:Es})}></slot></label><div class="root" part="root">${Ke(o)}<input class="control" part="control" id="control" @change="${(e,t)=>e.changeHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" ?autofocus="${e=>e.autofocus}" autocomplete="${e=>e.autocomplete}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" ?multiple="${e=>e.multiple}" name="${e=>e.name}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" spellcheck="${e=>e.spellcheck}" type="${e=>e.type}" value="${e=>e.initialValue}" ${X("control")} />${mt(o)}</div></template>`}const Hm=Vm(),Rm=ls.compose({name:`${b.prefix}-text-input`,template:Hm,styles:Lm,shadowOptions:{delegatesFocus:!0}});Rm.define(b.registry);const jm={_100:"100",_200:"200",_300:"300",_400:"400",_500:"500",_600:"600",_700:"700",_800:"800",_900:"900",_1000:"1000"},qm={base:"base",numeric:"numeric",monospace:"monospace"},Wm={medium:"medium",regular:"regular",semibold:"semibold",bold:"bold"},Gm={start:"start",end:"end",center:"center",justify:"justify"};var Um=Object.defineProperty,Xm=Object.getOwnPropertyDescriptor,st=(o,e,t,i)=>{for(var s=i>1?void 0:i?Xm(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Um(e,t,s),s};class je 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(e,t){y(this.elementInternals,e,t,jm,"size-")}fontChanged(e,t){y(this.elementInternals,e,t,qm)}weightChanged(e,t){y(this.elementInternals,e,t,Wm)}alignChanged(e,t){y(this.elementInternals,e,t,Gm)}connectedCallback(){super.connectedCallback(),f.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)})}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this)}handleChange(e,t){switch(t){case"nowrap":case"truncate":case"italic":case"underline":case"strikethrough":case"block":v(this.elementInternals,t,!!this[t]);break}}}st([a({mode:"boolean"})],je.prototype,"nowrap",2),st([a({mode:"boolean"})],je.prototype,"truncate",2),st([a({mode:"boolean"})],je.prototype,"italic",2),st([a({mode:"boolean"})],je.prototype,"underline",2),st([a({mode:"boolean"})],je.prototype,"strikethrough",2),st([a({mode:"boolean"})],je.prototype,"block",2),st([a],je.prototype,"size",2),st([a],je.prototype,"font",2),st([a],je.prototype,"weight",2),st([a],je.prototype,"align",2);const Km=p`
|
|
542
542
|
${I("inline")}
|
|
543
543
|
|
|
544
|
-
:host{contain:content;font-family:${k};font-size:${M};line-height:${j};font-weight:${R};text-align:start}:host(${On}),:host(${On}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${_n}),:host(${_n}) ::slotted(*){text-overflow:ellipsis}:host(${zo}){display:block}:host(${kc}){font-style:italic}:host(${_t}){text-decoration-line:underline}:host(${Nn}){text-decoration-line:line-through}:host(${_t}${Nn}){text-decoration-line:line-through underline}:host(${Zc}){font-size:${Lo};line-height:${Vi}}:host(${Jc}){font-size:${G};line-height:${ee}}:host(${ed}){font-size:${ke};line-height:${
|
|
544
|
+
:host{contain:content;font-family:${k};font-size:${M};line-height:${j};font-weight:${R};text-align:start}:host(${On}),:host(${On}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${_n}),:host(${_n}) ::slotted(*){text-overflow:ellipsis}:host(${zo}){display:block}:host(${kc}){font-style:italic}:host(${_t}){text-decoration-line:underline}:host(${Nn}){text-decoration-line:line-through}:host(${_t}${Nn}){text-decoration-line:line-through underline}:host(${Zc}){font-size:${Lo};line-height:${Vi}}:host(${Jc}){font-size:${G};line-height:${ee}}:host(${ed}){font-size:${ke};line-height:${Se}}:host(${td}){font-size:${co};line-height:${Hi}}:host(${od}){font-size:${Di};line-height:${da}}:host(${id}){font-size:${na};line-height:${ha}}:host(${sd}){font-size:${aa};line-height:${ua}}:host(${rd}){font-size:${la};line-height:${pa}}:host(${Qc}){font-size:${ca};line-height:${ba}}:host(${Bc}){font-family:${su}}:host(${Ec}){font-family:${ru}}:host(${Pc}){font-weight:${nu}}:host(${Fn}){font-weight:${U}}:host(${Ql}){font-weight:${Li}}:host(${tc}){text-align:center}:host(${lc}){text-align:end}:host(${xc}){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,Ym=g`<slot></slot>`,Qm=je.compose({name:`${b.prefix}-text`,template:Ym,styles:Km});Qm.define(b.registry);var Zm=Object.defineProperty,Jm=Object.getOwnPropertyDescriptor,Ua=(o,e,t,i)=>{for(var s=i>1?void 0:i?Jm(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Zm(e,t,s),s};class $r extends ut{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const e=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=e,v(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}Ua([a({mode:"boolean"})],$r.prototype,"pressed",2),Ua([a({mode:"boolean"})],$r.prototype,"mixed",2);const e$=p`
|
|
545
545
|
${Xi}
|
|
546
546
|
|
|
547
547
|
:host(${D}){border-color:${Ze};background-color:${Ln};color:${O};border-width:${N}}:host(${D}:hover){border-color:${lo};background-color:${Oi}}:host(${D}:active){border-color:${Mo};background-color:${Fi}}:host(${D}${ye}){border-color:transparent;background-color:${_d};color:${ht}}:host(${D}${ye}:hover){background-color:${Hn}}:host(${D}${ye}:active){background-color:${Rn}}:host(${D}${B}){border-color:transparent;background-color:${Fd};color:${fd}}:host(${D}${B}:hover){background-color:${_i};color:${Fo}}:host(${D}${B}:active){background-color:${ro};color:${No}}:host(${D}${F}),:host(${D}${H}){background-color:${Nd}}:host(${D}${F}:hover),:host(${D}${H}:hover){background-color:${Hs}}:host(${D}${F}:active),:host(${D}${H}:active){background-color:${Rs}}:host(${D}${H}){border-color:transparent;color:${md}}:host(${D}${H}:hover){color:${Ai}}:host(${D}${H}:active){color:${Ei}}`.withBehaviors(le(p`
|