@fluentui/web-components 3.0.0-beta.112 → 3.0.0-beta.113
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 +12 -2
- package/dist/esm/slider/slider.js +2 -2
- package/dist/esm/slider/slider.js.map +1 -1
- package/dist/esm/switch/switch.styles.js +3 -0
- package/dist/esm/switch/switch.styles.js.map +1 -1
- package/dist/esm/switch/switch.template.js +0 -1
- package/dist/esm/switch/switch.template.js.map +1 -1
- package/dist/web-components.js +4 -4
- package/dist/web-components.min.js +41 -41
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Do;const is="fast-kernel";try{if(document.currentScript)Do=document.currentScript.getAttribute(is);else{const o=document.getElementsByTagName("script");Do=o[o.length-1].getAttribute(is)}}catch{Do="isolate"}let ht;switch(Do){case"share":ht=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ht=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)}`;ht=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const At=o=>typeof o=="function",Me=o=>typeof o=="string",rs=()=>{};var qi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof qi<"u")qi.globalThis=qi;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 ss={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},ss));const ie=globalThis.FAST;if(ie.getById===void 0){const o=Object.create(null);Reflect.defineProperty(ie,"getById",Object.assign({value(e,t){let i=o[e];return i===void 0&&(i=t?o[e]=t():null),i}},ss))}ie.error===void 0&&Object.assign(ie,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Ba=Object.freeze([]);function Wi(){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 ns(){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 ut(o){o.prototype.toJSON=rs}const Y=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),as=o=>o,Oa=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:as}):{createHTML:as};let Ho=Object.freeze({createHTML(o){return Oa.createHTML(o)},protect(o,e,t,i){return i}});const Aa=Ho,pt=Object.freeze({get policy(){return Ho},setPolicy(o){if(Ho!==Aa)throw ie.error(1201);Ho=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)}}),Q=ie.getById(ht.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let i=!0;function r(){if(e.length)throw e.shift()}function s(h){try{h.call()}catch(d){if(i)e.push(d),setTimeout(r,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(s(o[d]),d++,d>1024){for(let l=0,f=o.length-d;l<f;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(i?t(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>i=h})});class Gi{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 r=this.sub1,s=this.sub2;r!==void 0&&r.handleChange(i,e),s!==void 0&&s.handleChange(i,e)}else for(let r=0,s=t.length;r<s;++r)t[r].handleChange(i,e)}}class ls{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,r;let s;t?s=(i=this.subscribers[t])!==null&&i!==void 0?i:this.subscribers[t]=new Gi(this.subject):s=(r=this.subjectSubscribers)!==null&&r!==void 0?r:this.subjectSubscribers=new Gi(this.subject),s.subscribe(e)}unsubscribe(e,t){var i,r;t?(i=this.subscribers[t])===null||i===void 0||i.unsubscribe(e):(r=this.subjectSubscribers)===null||r===void 0||r.unsubscribe(e)}}const Vo=Object.freeze({unknown:void 0,coupled:1}),m=ie.getById(ht.observable,()=>{const o=Q.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let i,r=d=>{throw ie.error(1101)};function s(d){var l;let f=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return f===void 0&&(Array.isArray(d)?f=r(d):t.set(d,f=new ls(d))),f}const n=ns();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return i!==void 0&&i.watch(l,this.name),l[this.field]}setValue(l,f){const w=this.field,be=l[w];if(be!==f){l[w]=f;const tt=l[this.callback];At(tt)&&tt.call(l,be,f),s(l).notify(this.name)}}}class h extends Gi{constructor(l,f,w=!1){super(l,f),this.expression=l,this.isVolatileBinding=w,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(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const f=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),f}requiresUnbind(l){return l.sourceLifetime!==Vo.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,f){this.needsRefresh&&this.last!==null&&this.dispose();const w=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let be;try{be=this.expression(l,f)}finally{i=w}return be}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,f){const w=this.last,be=s(l),tt=w===null?this.first:{};if(tt.propertySource=l,tt.propertyName=f,tt.notifier=be,be.subscribe(this,f),w!==null){if(!this.needsRefresh){let os;i=void 0,os=w.propertySource[w.propertyName],i=this,l===os&&(this.needsRefresh=!0)}w.next=tt}this.last=tt}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 l=this.first;for(;l!==void 0;)yield l,l=l.next}}return ut(h),Object.freeze({setArrayObserverFactory(d){r=d},getNotifier:s,track(d,l){i&&i.watch(d,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(d,l){s(d).notify(l)},defineProperty(d,l){Me(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(f){l.setValue(this,f)}})},getAccessors:n,binding(d,l,f=this.isVolatileBinding(d)){return new h(d,l,f)},isVolatileBinding(d){return e.test(d.toString())}})});function g(o,e){m.defineProperty(o,e)}function cs(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const ds=ie.getById(ht.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),_t=Object.freeze({default:{index:0,length:0,get event(){return _t.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return ds.get()},setEvent(o){ds.set(o)}});class Lo{constructor(e,t,i=!1){this.evaluate=e,this.policy=t,this.isVolatile=i}}class _a extends Lo{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Xi(o,e,t=m.isVolatileBinding(o)){return new _a(o,e,t)}class hs extends Lo{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}ut(hs);function us(o,e){return new hs(o,e)}let ps;function bs(o){return o.map(e=>e instanceof xe?bs(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class xe{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof xe?t.behaviors:null).reduce((t,i)=>i===null?t:t===null?i:t.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(ps),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(bs(this.styles)),this}static setDefaultStrategy(e){ps=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new xe(e):e instanceof xe?e:new xe([e])}}xe.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Ui=Wi(),Ki=Object.freeze({getForInstance:Ui.getForInstance,getByType:Ui.getByType,define(o){return Ui.register({type:o}),o}});function Yi(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Qi{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 s=i.setAttribute;i.setAttribute=(n,c)=>{s.call(i,n,c),n==="style"&&i.$cssBindings.forEach((h,d)=>Yi(d,h.controller,h.observer))}}const r=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);r.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:r})}connectedCallback(e){Yi(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){Yi(this,t.controller,t)}}Ki.define(Qi);const Ea=`${Math.random().toString(36).substring(2,8)}`;let Na=0;const gs=()=>`--v${Ea}${++Na}`;function fs(o,e){const t=[];let i="";const r=[],s=n=>{r.push(n)};for(let n=0,c=o.length-1;n<c;++n){i+=o[n];let h=e[n];At(h)?h=new Qi(Xi(h),gs()).createCSS(s):h instanceof Lo?h=new Qi(h,gs()).createCSS(s):Ki.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof xe||h instanceof CSSStyleSheet?(i.trim()!==""&&(t.push(i),i=""),t.push(h)):i+=h}return i+=o[o.length-1],i.trim()!==""&&t.push(i),{styles:t,behaviors:r}}const u=(o,...e)=>{const{styles:t,behaviors:i}=fs(o,e),r=new xe(t);return i.length?r.withBehaviors(...i):r};class ms{constructor(e,t){this.behaviors=t,this.css="";const i=e.reduce((r,s)=>(Me(s)?this.css+=s:r.push(s),r),[]);i.length&&(this.styles=new xe(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)}}Ki.define(ms),u.partial=(o,...e)=>{const{styles:t,behaviors:i}=fs(o,e);return new ms(t,i)};const vs=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,$s=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,ys=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,xs=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,ks=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,ws=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Cs(o){return o&&o.nodeType===Node.COMMENT_NODE}const De=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 vs.test(o)},isContentBindingEndMarker(o){return $s.test(o)},isRepeatViewStartMarker(o){return ys.test(o)},isRepeatViewEndMarker(o){return xs.test(o)},isElementBoundaryStartMarker(o){return Cs(o)&&ks.test(o.data.trim())},isElementBoundaryEndMarker(o){return Cs(o)&&ws.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 Ps(vs,o)},parseContentBindingEndMarker(o){return Ps($s,o)},parseRepeatStartMarker(o){return Ss(ys,o)},parseRepeatEndMarker(o){return Ss(xs,o)},parseElementBoundaryStartMarker(o){return Is(ks,o.trim())},parseElementBoundaryEndMarker(o){return Is(ws,o)}});function Ss(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function Is(o,e){const t=o.exec(e);return t===null?t:t[1]}function Ps(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const jo=Symbol.for("fe-hydration");function Ro(o){return o[jo]===jo}const Zi=`fast-${Math.random().toString(36).substring(2,8)}`,qo=`${Zi}{`,ao=`}${Zi}`,Fa=ao.length;let Ma=0;const lo=()=>`${Zi}-${++Ma}`,zs=Object.freeze({interpolation:o=>`${qo}${o}${ao}`,attribute:o=>`${lo()}="${qo}${o}${ao}"`,comment:o=>`<!--${qo}${o}${ao}-->`}),Wo=Object.freeze({parse(o,e){const t=o.split(qo);if(t.length===1)return null;const i=[];for(let r=0,s=t.length;r<s;++r){const n=t[r],c=n.indexOf(ao);let h;if(c===-1)h=n;else{const d=n.substring(0,c);i.push(e[d]),h=n.substring(c+Fa)}h!==""&&i.push(h)}return i}}),Ji=Wi(),Be=Object.freeze({getForInstance:Ji.getForInstance,getByType:Ji.getByType,define(o,e){return e=e||{},e.type=o,Ji.register(e),o},assignAspect(o,e){if(!e){o.aspectType=Y.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?Y.tokenList:Y.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=Y.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=Y.event;break;default:o.targetAspect=e,o.aspectType=Y.attribute;break}}});class er{constructor(e){this.options=e}createHTML(e){return zs.attribute(e(this))}createBehavior(){return this}}ut(er);class Ts extends Error{constructor(e,t,i){super(e),this.factories=t,this.node=i}}function tr(o){return o.nodeType===Node.COMMENT_NODE}function Bs(o){return o.nodeType===Node.TEXT_NODE}function Os(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,tr(e)||Bs(e)?e.data.length:e.childNodes.length),t}function Da(o){return o instanceof DocumentFragment&&"mode"in o}function Ha(o,e,t){const i=Os(o,e),r=i.commonAncestorContainer,s=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(d){return i.comparePoint(d,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},c={};let h=s.currentNode=o;for(;h!==null;){switch(h.nodeType){case Node.ELEMENT_NODE:{Va(h,t,n);break}case Node.COMMENT_NODE:{La(h,s,t,n,c);break}}h=s.nextNode()}return i.detach(),{targets:n,boundaries:c}}function Va(o,e,t){const i=De.parseAttributeBinding(o);if(i!==null){for(const r of i){if(!e[r])throw new Ts(`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);Go(e[r],o,t)}o.removeAttribute(De.attributeMarkerName)}}function La(o,e,t,i,r){if(De.isElementBoundaryStartMarker(o)){ja(o,e);return}if(De.isContentBindingStartMarker(o.data)){const s=De.parseContentBindingStartMarker(o.data);if(s===null)return;const[n,c]=s,h=t[n],d=[];let l=e.nextSibling();o.data="";const f=l;for(;l!==null;){if(tr(l)){const w=De.parseContentBindingEndMarker(l.data);if(w&&w[1]===c)break}d.push(l),l=e.nextSibling()}if(l===null){const w=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Da(w)?w.host.nodeName:w.nodeName}".`)}if(l.data="",d.length===1&&Bs(d[0]))Go(h,d[0],i);else{l!==f&&l.previousSibling!==null&&(r[h.targetNodeId]={first:f,last:l.previousSibling});const w=l.parentNode.insertBefore(document.createTextNode(""),l);Go(h,w,i)}}}function ja(o,e){const t=De.parseElementBoundaryStartMarker(o.data);let i=e.nextSibling();for(;i!==null;){if(tr(i)){const r=De.parseElementBoundaryEndMarker(i.data);if(r&&r===t)break}i=e.nextSibling()}}function Go(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var As;function or(o,e){const t=o.parentNode;let i=o,r;for(;i!==e;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(i),i=r}t.removeChild(e)}class _s{constructor(){this.index=0,this.length=0}get event(){return _t.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 Xo extends _s{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=Vo.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 r=this.firstChild,s;for(;r!==t;)s=r.nextSibling,i.insertBefore(r,e),r=s;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i=this.firstChild,r;for(;i!==t;)r=i.nextSibling,e.appendChild(i),i=r;e.appendChild(t)}dispose(){or(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 r=this.factories;for(let s=0,n=r.length;s<n;++s){const c=r[s].createBehavior();c.bind(this),i[s]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let r=0,s=i.length;r<s;++r)i[r].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){or(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}}ut(Xo),m.defineProperty(Xo.prototype,"index"),m.defineProperty(Xo.prototype,"length");const Et={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Ra extends Error{constructor(e,t,i,r){super(e),this.factory=t,this.fragment=i,this.templateString=r}}class qa extends _s{constructor(e,t,i,r){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=i,this.hostBindingTarget=r,this[As]=jo,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Vo.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=Et.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 r=this.firstChild,s;for(;r!==t;)s=r.nextSibling,i.insertBefore(r,e),r=s;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,r;for(;i!==t;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(i),i=r}e.appendChild(t)}bind(e,t=this){var i,r;if(this.hydrationStage!==Et.hydrated&&(this._hydrationStage=Et.hydrating),this.source===e)return;let s=this.behaviors;if(s===null){this.source=e,this.context=t;try{const{targets:c,boundaries:h}=Ha(this.firstChild,this.lastChild,this.factories);this._targets=c,this._bindingViewBoundaries=h}catch(c){if(c instanceof Ts){let h=this.sourceTemplate.html;typeof h!="string"&&(h=h.innerHTML),c.templateString=h}throw c}this.behaviors=s=new Array(this.factories.length);const n=this.factories;for(let c=0,h=n.length;c<h;++c){const d=n[c];if(d.targetNodeId==="h"&&this.hostBindingTarget&&Go(d,this.hostBindingTarget,this._targets),d.targetNodeId in this.targets){const l=d.createBehavior();l.bind(this),s[c]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new Ra(`HydrationView was unable to successfully target bindings inside "${(r=((i=this.firstChild)===null||i===void 0?void 0:i.getRootNode()).host)===null||r===void 0?void 0:r.nodeName}".`,d,Os(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,c=s.length;n<c;++n)s[n].bind(this)}this.isBound=!0,this._hydrationStage=Et.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){or(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}}As=jo,ut(qa);function Wa(o){return o.create!==void 0}function Ga(o,e,t,i){if(t==null&&(t=""),Wa(t)){o.textContent="";let r=o.$fastView;if(r===void 0)if(Ro(i)&&Ro(t)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==Et.hydrated){const s=i.bindingViewBoundaries[this.targetNodeId];r=t.hydrate(s.first,s.last)}else r=t.create();else o.$fastTemplate!==t&&(r.isComposed&&(r.remove(),r.unbind()),r=t.create());r.isComposed?r.needsBindOnly&&(r.needsBindOnly=!1,r.bind(i.source,i.context)):(r.isComposed=!0,r.bind(i.source,i.context),r.insertBefore(o),o.$fastView=r,o.$fastTemplate=t)}else{const r=o.$fastView;r!==void 0&&r.isComposed&&(r.isComposed=!1,r.remove(),r.needsBindOnly?r.needsBindOnly=!1:r.unbind()),o.textContent=t}}function Xa(o,e,t){var i;const r=`${this.id}-t`,s=(i=o[r])!==null&&i!==void 0?i:o[r]={v:0,cv:Object.create(null)},n=s.cv;let c=s.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,f=d.length;l<f;++l){const w=d[l];w!==""&&(n[w]=c,h.add(w))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const Ua={[Y.attribute]:pt.setAttribute,[Y.booleanAttribute]:pt.setBooleanAttribute,[Y.property]:(o,e,t)=>o[e]=t,[Y.content]:Ga,[Y.tokenList]:Xa,[Y.event]:()=>{}};class Nt{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=Y.content}createHTML(e){return zs.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Ua[this.aspectType],i=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw ie.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],r=Ro(e)&&e.hydrationStage&&e.hydrationStage!==Et.hydrated;switch(this.aspectType){case Y.event:i[this.data]=e,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Y.content:e.onUnbind(this);default:const s=(t=i[this.data])!==null&&t!==void 0?t:i[this.data]=this.dataBinding.createObserver(this,this);if(s.target=i,s.controller=e,r&&(this.aspectType===Y.attribute||this.aspectType===Y.booleanAttribute)){s.bind(e);break}this.updateTarget(i,this.targetAspect,s.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){_t.setEvent(e);const i=this.dataBinding.evaluate(t.source,t.context);_t.setEvent(null),i!==!0&&e.preventDefault()}}handleChange(e,t){const i=t.target,r=t.controller;this.updateTarget(i,this.targetAspect,t.bind(r),r)}}Be.define(Nt,{aspected:!0});const Es=(o,e)=>`${o}.${e}`,Ns={},He={index:0,node:null};function Fs(o){o.startsWith("fast-")||ie.warn(1204,{name:o})}const Ka=new Proxy(document.createElement("div"),{get(o,e){Fs(e);const t=Reflect.get(o,e);return At(t)?t.bind(o):t},set(o,e,t){return Fs(e),Reflect.set(o,e,t)}});class Ya{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,r,s){var n,c;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(t,i,r)),e.id=(n=e.id)!==null&&n!==void 0?n:lo(),e.targetNodeId=i,e.targetTagName=s,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,i){const r=this.descriptors;if(t==="r"||t==="h"||r[t])return;if(!r[e]){const n=e.lastIndexOf("."),c=e.substring(0,n),h=parseInt(e.substring(n+1));this.addTargetDescriptor(c,e,h)}let s=Ns[t];if(!s){const n=`_${t}`;Ns[t]=s={get(){var c;return(c=this[n])!==null&&c!==void 0?c:this[n]=this[e].childNodes[i]}}}r[t]=s}createView(e){const t=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=t,i.h=e??Ka;for(const r of this.nodeIds)i[r];return new Xo(t,this.factories,i)}}function Ms(o,e,t,i,r,s=!1){const n=t.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],f=l.value,w=Wo.parse(f,c);let be=null;w===null?s&&(be=new Nt(us(()=>f,o.policy)),Be.assignAspect(be,l.name)):be=ir.aggregate(w,o.policy),be!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(be,e,i,r,t.tagName))}}function Qa(o,e,t,i,r){const s=Wo.parse(e.textContent,o.directives);if(s===null)return He.node=e.nextSibling,He.index=r+1,He;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(r++,i=Es(t,r),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Me(l)?n.textContent=l:(n.textContent=" ",Be.assignAspect(l),o.addFactory(l,t,i,r,null)),c=n}return He.index=r+1,He.node=c.nextSibling,He}function Ds(o,e,t){let i=0,r=e.firstChild;for(;r;){const s=Za(o,t,r,i);r=s.node,i=s.index}}function Za(o,e,t,i){const r=Es(e,i);switch(t.nodeType){case 1:Ms(o,e,t,r,i),Ds(o,t,r);break;case 3:return Qa(o,t,e,r,i);case 8:const s=Wo.parse(t.data,o.directives);s!==null&&o.addFactory(ir.aggregate(s),e,r,i,null);break}return He.index=i+1,He.node=t.nextSibling,He}function Ja(o,e){return o&&o.nodeType==8&&Wo.parse(o.data,e)!==null}const Hs="TEMPLATE",ir={compile(o,e,t=pt.policy){let i;if(Me(o)){i=document.createElement(Hs),i.innerHTML=t.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===Hs&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const r=document.adoptNode(i.content),s=new Ya(r,e,t);return Ms(s,"",i,"h",0,!0),(Ja(r.firstChild,e)||r.childNodes.length===1&&Object.keys(e).length>0)&&r.insertBefore(document.createComment(""),r.firstChild),Ds(s,r,"r"),He.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=pt.policy){if(o.length===1)return o[0];let t,i=!1,r;const s=o.length,n=o.map(d=>Me(d)?()=>d:(t=d.sourceAspect||t,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let f="";for(let w=0;w<s;++w)f+=n[w](d,l);return f},h=new Nt(Xi(c,r??e,i));return Be.assignAspect(h,t),h}},el=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,tl=Object.create(null);class bt{constructor(e,t=tl){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const i in t)e(t[i]);return this.html}}bt.empty=new bt(""),Be.define(bt);function ol(o,e,t,i=Be.getForInstance(o)){if(i.aspected){const r=el.exec(e);r!==null&&Be.assignAspect(o,r[2])}return o.createHTML(t)}class Li{constructor(e,t={},i){this.policy=i,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=ir.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new bt(Me(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw ie.error(1208);if(this.policy)throw ie.error(1207);return this.policy=e,this}render(e,t,i){const r=this.create(i);return r.bind(e),r.appendTo(t),r}static create(e,t,i){let r="";const s=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=lo();return s[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],f;if(r+=d,At(l))l=new Nt(Xi(l));else if(l instanceof Lo)l=new Nt(l);else if(!(f=Be.getForInstance(l))){const w=l;l=new Nt(us(()=>w))}r+=ol(l,d,n,f)}return new Li(r+e[e.length-1],s,i)}}ut(Li);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Li.create(o,e);throw ie.error(1206)};b.partial=o=>new bt(o);class Vs extends er{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Be.define(Vs);const V=o=>new Vs(o),il=o=>o.nodeType===1,gt=o=>o?e=>e.nodeType===1&&e.matches(o):il;class Ls extends er{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,Ba),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 js="slotchange";class Rs extends Ls{observe(e){e.addEventListener(js,this)}disconnect(e){e.removeEventListener(js,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Be.define(Rs);function L(o){return Me(o)&&(o={property:o}),new Rs(o)}class qs extends Ls{constructor(e){super(e),this.observerProperty=Symbol(),this.handleEvent=(t,i)=>{const r=i.target;this.updateTarget(this.getSource(r),this.computeNodes(r))},e.childList=!0}observe(e){let t=e[this.observerProperty];t||(t=new MutationObserver(this.handleEvent),t.toJSON=rs,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)}}Be.define(qs);function rr(o){return Me(o)&&(o={property:o}),new qs(o)}const Ws="boolean",Gs="reflect",Uo=Object.freeze({locate:ns()}),rl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Xs(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const re={toView(o){const e=Xs(o);return e&&e.toString()},fromView:Xs};class ji{constructor(e,t,i=t.toLowerCase(),r=Gs,s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=r,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,r===Ws&&s===void 0&&(this.converter=rl)}setValue(e,t){const i=e[this.fieldName],r=this.converter;r!==void 0&&(t=r.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 m.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"||Q.enqueue(()=>{i.add(e);const r=e[this.fieldName];switch(t){case Gs:const s=this.converter;pt.setAttribute(e,this.attribute,s!==void 0?s.toView(r):r);break;case Ws:pt.setBooleanAttribute(e,this.attribute,r);break}i.delete(e)})}static collect(e,...t){const i=[];t.push(Uo.locate(e));for(let r=0,s=t.length;r<s;++r){const n=t[r];if(n!==void 0)for(let c=0,h=n.length;c<h;++c){const d=n[c];Me(d)?i.push(new ji(e,d)):i.push(new ji(e,d.property,d.attribute,d.mode,d.converter))}}return i}}function a(o,e){let t;function i(r,s){arguments.length>1&&(t.property=s),Uo.locate(r.constructor).push(t)}if(arguments.length>1){t={},i(o,e);return}return t=o===void 0?{}:o,i}const Us={mode:"open"},Ks={},Ys=new Set,Ko=ie.getById(ht.elementRegistry,()=>Wi());class Fe{constructor(e,t=e.definition){var i;this.platformDefined=!1,Me(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 r=e.prototype,s=ji.collect(e,t.attributes),n=new Array(s.length),c={},h={};for(let d=0,l=s.length;d<l;++d){const f=s[d];n[d]=f.attribute,c[f.name]=f,h[f.attribute]=f,m.defineProperty(r,f)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=s,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Us:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Us),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Ks:Object.assign(Object.assign({},Ks),t.elementOptions),this.styles=xe.normalize(t.styles),Ko.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 Ys.has(e)||Ko.getByType(e)?new Fe(class extends e{},t):new Fe(e,t)}static registerBaseType(e){Ys.add(e)}}Fe.getByType=Ko.getByType,Fe.getForInstance=Ko.getForInstance;class sl extends MutationObserver{constructor(e){function t(i){this.callback.call(null,i.filter(r=>this.observedNodes.has(r.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,r=!1;return{source:o,context:_t.default,targets:t,get isBound(){return r},addBehaviorFactory(s,n){var c,h,d,l;const f=s;f.id=(c=f.id)!==null&&c!==void 0?c:lo(),f.targetNodeId=(h=f.targetNodeId)!==null&&h!==void 0?h:lo(),f.targetTagName=(d=n.tagName)!==null&&d!==void 0?d:null,f.policy=(l=f.policy)!==null&&l!==void 0?l:pt.policy,this.addTarget(f.targetNodeId,n),this.addBehavior(f.createBehavior())},addTarget(s,n){t[s]=n},addBehavior(s){e.push(s),r&&s.bind(this)},onUnbind(s){i===null&&(i=[]),i.push(s)},connectedCallback(s){r||(r=!0,e.forEach(n=>n.bind(this)))},disconnectedCallback(s){r&&(r=!1,i!==null&&i.forEach(n=>n.unbind(this)))}}}});const nl={bubbles:!0,composed:!0,cancelable:!0},Yo="isConnected",Qs=new WeakMap;function co(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Qs.get(o))!==null&&t!==void 0?t:null}let Zs;class Ft extends ls{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 s=e.shadowRoot;s?this.hasExistingShadowRoot=!0:(s=e.attachShadow(i),i.mode==="closed"&&Qs.set(e,s))}const r=m.getAccessors(e);if(r.length>0){const s=this.boundObservables=Object.create(null);for(let n=0,c=r.length;n<c;++n){const h=r[n].name,d=e[h];d!==void 0&&(delete e[h],s[h]=d)}}}get isConnected(){return m.track(this,Yo),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:_t.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 r=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,s=(i=r.get(e))!==null&&i!==void 0?i:0;s===0?(r.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):r.set(e,s+1)}removeBehavior(e,t=!1){const i=this.behaviors;if(i===null)return;const r=i.get(e);r!==void 0&&(r===1||t?(i.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):i.set(e,r-1))}addStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=co(i))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(i)){const r=e.behaviors;if(e.addStylesTo(i),r!==null)for(let s=0,n=r.length;s<n;++s)this.addBehavior(r[s])}}removeStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=co(i))!==null&&t!==void 0?t:i).removeChild(e);else if(e.isAttachedTo(i)){const r=e.behaviors;if(e.removeStylesFrom(i),r!==null)for(let s=0,n=r.length;s<n;++s)this.removeBehavior(r[s])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,m.notify(this,Yo))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,i=Object.keys(t);for(let r=0,s=i.length;r<s;++r){const n=i[r];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,m.notify(this,Yo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,i){const r=this.definition.attributeLookup[e];r!==void 0&&r.onAttributeChangedCallback(this.source,i)}emit(e,t,i){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},nl),i))):!1}renderTemplate(e){var t;const i=this.source,r=(t=co(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 s=r.firstChild;s!==null;s=r.firstChild)r.removeChild(s)}e&&(this.view=e.render(i,r,i),this.view.sourceLifetime=Vo.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const i=Fe.getForInstance(e);if(i===void 0)throw ie.error(1401);return e.$fastController=new Zs(e,i)}static setStrategy(e){Zs=e}}ut(Ft),Ft.setStrategy(Ft);function Qo(o){var e;return"adoptedStyleSheets"in o?o:(e=co(o))!==null&&e!==void 0?e:o.getRootNode()}class Ri{constructor(e){const t=Ri.styleSheetCache;this.sheets=e.map(i=>{if(i instanceof CSSStyleSheet)return i;let r=t.get(i);return r===void 0&&(r=new CSSStyleSheet,r.replaceSync(i),t.set(i,r)),r})}addStylesTo(e){en(Qo(e),this.sheets)}removeStylesFrom(e){tn(Qo(e),this.sheets)}}Ri.styleSheetCache=new Map;let al=0;const ll=()=>`fast-${++al}`;function Js(o){return o===document?document.body:o}class cl{constructor(e){this.styles=e,this.styleClass=ll()}addStylesTo(e){e=Js(Qo(e));const t=this.styles,i=this.styleClass;for(let r=0;r<t.length;r++){const s=document.createElement("style");s.innerHTML=t[r],s.className=i,e.append(s)}}removeStylesFrom(e){e=Js(Qo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,r=t.length;i<r;++i)e.removeChild(t[i])}}let en=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},tn=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(xe.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),en=(o,e)=>{o.adoptedStyleSheets.push(...e)},tn=(o,e)=>{for(const t of e){const i=o.adoptedStyleSheets.indexOf(t);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}xe.setDefaultStrategy(Ri)}else xe.setDefaultStrategy(cl);const on="defer-hydration",rn="needs-hydration";class Ot extends Ft{static hydrationObserverHandler(e){for(const t of e)Ot.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(rn)!==null),this.source.hasAttribute(on)){Ot.hydrationObserver.observe(this.source,{attributeFilter:[on]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const i=this.source,r=(e=co(i))!==null&&e!==void 0?e:i;if(this.template)if(Ro(this.template)){let s=r.firstChild,n=r.lastChild;i.shadowRoot===null&&(De.isElementBoundaryStartMarker(s)&&(s.data="",s=s.nextSibling),De.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(s,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(rn),this.needsInitialization=this.needsHydration=!1,m.notify(this,Yo)}disconnect(){super.disconnect(),Ot.hydrationObserver.unobserve(this.source)}static install(){Ft.setStrategy(Ot)}}Ot.hydrationObserver=new sl(Ot.hydrationObserverHandler);function sn(o){const e=class extends o{constructor(){super(),Ft.forCustomElement(this)}$emit(t,i,r){return this.$fastController.emit(t,i,r)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,i,r){this.$fastController.onAttributeChangedCallback(t,i,r)}};return Fe.registerBaseType(e),e}function dl(o,e){return At(o)?Fe.compose(o,e):Fe.compose(this,o)}function hl(o,e){return At(o)?Fe.compose(o,e).define().type:Fe.compose(this,o).define().type}function ul(o){return sn(o)}const $=Object.assign(sn(HTMLElement),{from:ul,define:hl,compose:dl});var pl=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,j=(o,e,t,i)=>{for(var r=i>1?void 0:i?bl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&pl(e,t,r),r};class R{}j([a({attribute:"aria-atomic"})],R.prototype,"ariaAtomic",2),j([a({attribute:"aria-busy"})],R.prototype,"ariaBusy",2),j([a({attribute:"aria-controls"})],R.prototype,"ariaControls",2),j([a({attribute:"aria-current"})],R.prototype,"ariaCurrent",2),j([a({attribute:"aria-describedby"})],R.prototype,"ariaDescribedby",2),j([a({attribute:"aria-details"})],R.prototype,"ariaDetails",2),j([a({attribute:"aria-disabled"})],R.prototype,"ariaDisabled",2),j([a({attribute:"aria-errormessage"})],R.prototype,"ariaErrormessage",2),j([a({attribute:"aria-flowto"})],R.prototype,"ariaFlowto",2),j([a({attribute:"aria-haspopup"})],R.prototype,"ariaHaspopup",2),j([a({attribute:"aria-hidden"})],R.prototype,"ariaHidden",2),j([a({attribute:"aria-invalid"})],R.prototype,"ariaInvalid",2),j([a({attribute:"aria-keyshortcuts"})],R.prototype,"ariaKeyshortcuts",2),j([a({attribute:"aria-label"})],R.prototype,"ariaLabel",2),j([a({attribute:"aria-labelledby"})],R.prototype,"ariaLabelledby",2),j([a({attribute:"aria-live"})],R.prototype,"ariaLive",2),j([a({attribute:"aria-owns"})],R.prototype,"ariaOwns",2),j([a({attribute:"aria-relevant"})],R.prototype,"ariaRelevant",2),j([a({attribute:"aria-roledescription"})],R.prototype,"ariaRoledescription",2);const sr={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()}},Se={horizontal:"horizontal",vertical:"vertical"};function gl(o,e){let t=o.length;for(;t--;)if(e(o[t],t,o))return t;return-1}function nr(...o){return o.every(e=>e instanceof HTMLElement)}const ho="ArrowDown",uo="ArrowLeft",po="ArrowRight",bo="ArrowUp",go="End",fo="Enter",fl="Escape",mo="Home",Zo=" ",ml="Tab";var Ve;(function(o){o.ltr="ltr",o.rtl="rtl"})(Ve||(Ve={}));function vl(o,e,t){return t<o?e:t>e?o:t}function ar(o,e,t){return Math.min(Math.max(t,o),e)}let $l=0;function Mt(o=""){return`${o}${$l++}`}const Jo=o=>o.closest("[dir]")?.dir==="rtl"?Ve.rtl:Ve.ltr;function he(o){return o?typeof o=="string"?new bt(o):"inline"in o?o.inline():o:bt.empty}const lr=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,yl=":host([hidden]){display:none}";function k(o){return`${yl}:host{display:${o}}`}class xl{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 Mo extends xl{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Mo(e,t)}constructListener(e){let t=!1;const i=this.styles;return function(){const{matches:s}=this;s&&!t?(e.addStyles(i),t=s):!s&&t&&(e.removeStyles(i),t=s)}}removedCallback(e){e.removeStyles(this.styles)}}const U=Mo.with(window.matchMedia("(forced-colors)"));Mo.with(window.matchMedia("(prefers-color-scheme: dark)")),Mo.with(window.matchMedia("(prefers-color-scheme: light)"));const ei=CSS.supports("anchor-name: --a"),kl="anchor"in HTMLElement.prototype,nn=CSS.supports("selector(:state(g))");class Ue{}function ot(o){return b`<slot name="end" ${V("end")}>${he(o.end)}</slot>`.inline()}function Le(o){return b`<slot name="start" ${V("start")}>${he(o.start)}</slot>`.inline()}function Ke(o,...e){const t=Uo.locate(o);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(i.prototype,s))}),Uo.locate(i).forEach(s=>t.push(s))})}var wl=Object.defineProperty,Cl=Object.getOwnPropertyDescriptor,ti=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&wl(e,t,r),r};class Ye extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Mt("accordion-")}}ti([a({attribute:"heading-level",mode:"fromView",converter:re})],Ye.prototype,"headinglevel",2),ti([a({mode:"boolean"})],Ye.prototype,"expanded",2),ti([a({mode:"boolean"})],Ye.prototype,"disabled",2),ti([a],Ye.prototype,"id",2);var Sl=Object.defineProperty,Il=Object.getOwnPropertyDescriptor,cr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Il(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Sl(e,t,r),r};class vo extends Ye{constructor(){super(...arguments),this.block=!1}}cr([a],vo.prototype,"size",2),cr([a({attribute:"marker-position"})],vo.prototype,"markerPosition",2),cr([a({mode:"boolean"})],vo.prototype,"block",2),Ke(vo,Ue);const z="var(--colorNeutralForeground1)",dr="var(--colorNeutralForeground1Hover)",Pl="var(--colorNeutralForeground1Pressed)",Ie="var(--colorNeutralForeground2)",Dt="var(--colorNeutralForeground2Hover)",Ht="var(--colorNeutralForeground2Pressed)",oi="var(--colorNeutralForeground2Selected)",ii="var(--colorNeutralForeground2BrandHover)",ri="var(--colorNeutralForeground2BrandPressed)",zl="var(--colorNeutralForeground2BrandSelected)",Z="var(--colorNeutralForeground3)",Tl="var(--colorNeutralForeground3Hover)",Bl="var(--colorNeutralForeground3Pressed)",Ol="var(--colorNeutralForeground3Selected)",hr="var(--colorNeutralForeground4)",S="var(--colorNeutralForegroundDisabled)",Al="var(--colorBrandForegroundLink)",_l="var(--colorBrandForegroundLinkHover)",El="var(--colorBrandForegroundLinkPressed)",Nl="var(--colorNeutralForeground2Link)",Fl="var(--colorNeutralForeground2LinkHover)",Ml="var(--colorNeutralForeground2LinkPressed)",an="var(--colorCompoundBrandForeground1Hover)",Dl="var(--colorCompoundBrandForeground1Pressed)",Qe="var(--colorNeutralForegroundOnBrand)",ft="var(--colorNeutralForegroundInverted)",Hl="var(--colorNeutralForegroundInvertedHover)",Vl="var(--colorNeutralForegroundInvertedPressed)",ln="var(--colorNeutralForegroundStaticInverted)",si="var(--colorBrandForeground1)",Ll="var(--colorBrandForeground2)",jl="var(--colorNeutralForeground1Static)",I="var(--colorNeutralBackground1)",ni="var(--colorNeutralBackground1Hover)",ur="var(--colorNeutralBackground1Pressed)",cn="var(--colorNeutralBackground1Selected)",$o="var(--colorNeutralBackground3)",Rl="var(--colorNeutralBackground4)",ql="var(--colorNeutralBackground5)",yo="var(--colorNeutralBackground6)",dn="var(--colorNeutralBackgroundInverted)",hn="var(--colorSubtleBackground)",xo="var(--colorSubtleBackgroundHover)",mt="var(--colorSubtleBackgroundPressed)",un="var(--colorSubtleBackgroundSelected)",Wl="var(--colorSubtleBackgroundLightAlphaHover)",Gl="var(--colorSubtleBackgroundLightAlphaPressed)",Xl="var(--colorSubtleBackgroundLightAlphaSelected)",ge="var(--colorTransparentBackground)",ai="var(--colorTransparentBackgroundHover)",li="var(--colorTransparentBackgroundPressed)",pn="var(--colorTransparentBackgroundSelected)",it="var(--colorNeutralBackgroundDisabled)",pr="var(--colorBackgroundOverlay)",bn="var(--colorBrandBackground)",gn="var(--colorBrandBackgroundHover)",fn="var(--colorBrandBackgroundPressed)",Ul="var(--colorBrandBackgroundSelected)",vt="var(--colorCompoundBrandBackground)",Vt="var(--colorCompoundBrandBackgroundHover)",Lt="var(--colorCompoundBrandBackgroundPressed)",mn="var(--colorBrandBackgroundStatic)",vn="var(--colorBrandBackground2)",je="var(--colorNeutralStrokeAccessible)",$t="var(--colorNeutralStrokeAccessibleHover)",yt="var(--colorNeutralStrokeAccessiblePressed)",Re="var(--colorNeutralStroke1)",jt="var(--colorNeutralStroke1Hover)",ko="var(--colorNeutralStroke1Pressed)",wo="var(--colorNeutralStroke2)",Kl="var(--colorNeutralStroke3)",Yl="var(--colorNeutralStrokeOnBrand2)",$n="var(--colorBrandStroke1)",yn="var(--colorBrandStroke2)",xt="var(--colorCompoundBrandStroke)",Ql="var(--colorCompoundBrandStrokeHover)",xn="var(--colorCompoundBrandStrokePressed)",ke="var(--colorNeutralStrokeDisabled)",J="var(--colorTransparentStroke)",br="var(--colorTransparentStrokeInteractive)",gr="var(--colorStrokeFocus1)",we="var(--colorStrokeFocus2)",Zl="var(--colorNeutralShadowAmbient)",Jl="var(--colorNeutralShadowKey)",kn="var(--colorPaletteRedBackground1)",ec="var(--colorPaletteRedBackground2)",wn="var(--colorPaletteRedBackground3)",Cn="var(--colorPaletteRedBorder1)",fr="var(--colorPaletteRedBorder2)",mr="var(--colorPaletteRedForeground1)",tc="var(--colorPaletteRedForeground2)",Sn="var(--colorPaletteRedForeground3)",In="var(--colorPaletteGreenBackground1)",Pn="var(--colorPaletteGreenBackground3)",oc="var(--colorPaletteGreenBorder1)",ic="var(--colorPaletteGreenBorder2)",rc="var(--colorPaletteGreenForeground1)",sc="var(--colorPaletteGreenForeground2)",nc="var(--colorPaletteGreenForeground3)",zn="var(--colorPaletteDarkOrangeBackground1)",Tn="var(--colorPaletteDarkOrangeBackground3)",Bn="var(--colorPaletteDarkOrangeBorder1)",ac="var(--colorPaletteDarkOrangeForeground1)",On="var(--colorPaletteDarkOrangeForeground3)",lc="var(--colorPaletteYellowBackground1)",cc="var(--colorPaletteYellowBackground3)",dc="var(--colorPaletteYellowBorder1)",vr="var(--colorPaletteYellowForeground2)",An="var(--colorPaletteMarigoldBackground2)",hc="var(--colorPaletteMarigoldBorderActive)",uc="var(--colorPaletteMarigoldForeground2)",pc="var(--colorPaletteAnchorBackground2)",bc="var(--colorPaletteAnchorForeground2)",gc="var(--colorPaletteBeigeBackground2)",fc="var(--colorPaletteBeigeForeground2)",mc="var(--colorPaletteBlueBackground2)",vc="var(--colorPaletteBlueForeground2)",$c="var(--colorPaletteBrassBackground2)",yc="var(--colorPaletteBrassForeground2)",xc="var(--colorPaletteBrownBackground2)",kc="var(--colorPaletteBrownForeground2)",wc="var(--colorPaletteCornflowerBackground2)",Cc="var(--colorPaletteCornflowerForeground2)",Sc="var(--colorPaletteCranberryBackground2)",Ic="var(--colorPaletteCranberryForeground2)",Pc="var(--colorPaletteDarkGreenBackground2)",zc="var(--colorPaletteDarkGreenForeground2)",Tc="var(--colorPaletteDarkRedBackground2)",Bc="var(--colorPaletteDarkRedForeground2)",Oc="var(--colorPaletteForestBackground2)",Ac="var(--colorPaletteForestForeground2)",_c="var(--colorPaletteGoldBackground2)",Ec="var(--colorPaletteGoldForeground2)",Nc="var(--colorPaletteGrapeBackground2)",Fc="var(--colorPaletteGrapeForeground2)",Mc="var(--colorPaletteLavenderBackground2)",Dc="var(--colorPaletteLavenderForeground2)",Hc="var(--colorPaletteLightTealBackground2)",Vc="var(--colorPaletteLightTealForeground2)",Lc="var(--colorPaletteLilacBackground2)",jc="var(--colorPaletteLilacForeground2)",Rc="var(--colorPaletteMagentaBackground2)",qc="var(--colorPaletteMagentaForeground2)",Wc="var(--colorPaletteMinkBackground2)",Gc="var(--colorPaletteMinkForeground2)",Xc="var(--colorPaletteNavyBackground2)",Uc="var(--colorPaletteNavyForeground2)",Kc="var(--colorPalettePeachBackground2)",Yc="var(--colorPalettePeachForeground2)",Qc="var(--colorPalettePinkBackground2)",Zc="var(--colorPalettePinkForeground2)",Jc="var(--colorPalettePlatinumBackground2)",ed="var(--colorPalettePlatinumForeground2)",td="var(--colorPalettePlumBackground2)",od="var(--colorPalettePlumForeground2)",id="var(--colorPalettePumpkinBackground2)",rd="var(--colorPalettePumpkinForeground2)",sd="var(--colorPalettePurpleBackground2)",nd="var(--colorPalettePurpleForeground2)",ad="var(--colorPaletteRoyalBlueBackground2)",ld="var(--colorPaletteRoyalBlueForeground2)",cd="var(--colorPaletteSeafoamBackground2)",dd="var(--colorPaletteSeafoamForeground2)",hd="var(--colorPaletteSteelBackground2)",ud="var(--colorPaletteSteelForeground2)",pd="var(--colorPaletteTealBackground2)",bd="var(--colorPaletteTealForeground2)",ci="var(--borderRadiusNone)",Oe="var(--borderRadiusSmall)",C="var(--borderRadiusMedium)",_n="var(--borderRadiusLarge)",En="var(--borderRadiusXLarge)",fe="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",gd="var(--fontFamilyMonospace)",fd="var(--fontFamilyNumeric)",Co="var(--fontSizeBase100)",N="var(--fontSizeBase200)",B="var(--fontSizeBase300)",ue="var(--fontSizeBase400)",Rt="var(--fontSizeBase500)",di="var(--fontSizeBase600)",Nn="var(--fontSizeHero700)",Fn="var(--fontSizeHero800)",Mn="var(--fontSizeHero900)",Dn="var(--fontSizeHero1000)",A="var(--fontWeightRegular)",md="var(--fontWeightMedium)",D="var(--fontWeightSemibold)",hi="var(--fontWeightBold)",ui="var(--lineHeightBase100)",q="var(--lineHeightBase200)",_="var(--lineHeightBase300)",me="var(--lineHeightBase400)",pi="var(--lineHeightBase500)",Hn="var(--lineHeightBase600)",Vn="var(--lineHeightHero700)",Ln="var(--lineHeightHero800)",jn="var(--lineHeightHero900)",Rn="var(--lineHeightHero1000)",$r="var(--shadow2)",bi="var(--shadow4)",vd="var(--shadow8)",yr="var(--shadow16)",$d="var(--shadow28)",qn="var(--shadow64)",T="var(--strokeWidthThin)",ve="var(--strokeWidthThick)",se="var(--strokeWidthThicker)",xr="var(--strokeWidthThickest)",W="var(--spacingHorizontalXXS)",ne="var(--spacingHorizontalXS)",ee="var(--spacingHorizontalSNudge)",Ae="var(--spacingHorizontalS)",ae="var(--spacingHorizontalMNudge)",le="var(--spacingHorizontalM)",yd="var(--spacingHorizontalL)",xd="var(--spacingHorizontalXL)",kr="var(--spacingHorizontalXXL)",wr="var(--spacingVerticalNone)",qt="var(--spacingVerticalXXS)",Wt="var(--spacingVerticalXS)",qe="var(--spacingVerticalSNudge)",H="var(--spacingVerticalS)",Gt="var(--spacingVerticalMNudge)",kd="var(--spacingVerticalM)",gi="var(--spacingVerticalL)",kt="var(--spacingVerticalXXL)",wd="var(--spacingVerticalXXXL)",Cr="var(--durationUltraFast)",fi="var(--durationFaster)",mi="var(--durationNormal)",Sr="var(--durationGentle)",Wn="var(--durationSlow)",Gn="var(--durationSlower)",vi="var(--durationUltraSlow)",Cd="var(--curveAccelerateMax)",wt="var(--curveAccelerateMid)",Sd="var(--curveAccelerateMin)",Ir="var(--curveDecelerateMax)",Ct="var(--curveDecelerateMid)",Id="var(--curveDecelerateMin)",Xn="var(--curveEasyEaseMax)",$i="var(--curveEasyEase)",Pr="var(--curveLinear)",Pd=u`
|
|
1
|
+
const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Do;const is="fast-kernel";try{if(document.currentScript)Do=document.currentScript.getAttribute(is);else{const o=document.getElementsByTagName("script");Do=o[o.length-1].getAttribute(is)}}catch{Do="isolate"}let ht;switch(Do){case"share":ht=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ht=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)}`;ht=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const At=o=>typeof o=="function",Me=o=>typeof o=="string",rs=()=>{};var qi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof qi<"u")qi.globalThis=qi;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 ss={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},ss));const ie=globalThis.FAST;if(ie.getById===void 0){const o=Object.create(null);Reflect.defineProperty(ie,"getById",Object.assign({value(e,t){let i=o[e];return i===void 0&&(i=t?o[e]=t():null),i}},ss))}ie.error===void 0&&Object.assign(ie,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Ba=Object.freeze([]);function Wi(){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 ns(){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 ut(o){o.prototype.toJSON=rs}const Y=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),as=o=>o,Oa=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:as}):{createHTML:as};let Ho=Object.freeze({createHTML(o){return Oa.createHTML(o)},protect(o,e,t,i){return i}});const Aa=Ho,pt=Object.freeze({get policy(){return Ho},setPolicy(o){if(Ho!==Aa)throw ie.error(1201);Ho=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)}}),Q=ie.getById(ht.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let i=!0;function r(){if(e.length)throw e.shift()}function s(h){try{h.call()}catch(d){if(i)e.push(d),setTimeout(r,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(s(o[d]),d++,d>1024){for(let l=0,f=o.length-d;l<f;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(i?t(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>i=h})});class Gi{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 r=this.sub1,s=this.sub2;r!==void 0&&r.handleChange(i,e),s!==void 0&&s.handleChange(i,e)}else for(let r=0,s=t.length;r<s;++r)t[r].handleChange(i,e)}}class ls{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,r;let s;t?s=(i=this.subscribers[t])!==null&&i!==void 0?i:this.subscribers[t]=new Gi(this.subject):s=(r=this.subjectSubscribers)!==null&&r!==void 0?r:this.subjectSubscribers=new Gi(this.subject),s.subscribe(e)}unsubscribe(e,t){var i,r;t?(i=this.subscribers[t])===null||i===void 0||i.unsubscribe(e):(r=this.subjectSubscribers)===null||r===void 0||r.unsubscribe(e)}}const Vo=Object.freeze({unknown:void 0,coupled:1}),m=ie.getById(ht.observable,()=>{const o=Q.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let i,r=d=>{throw ie.error(1101)};function s(d){var l;let f=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return f===void 0&&(Array.isArray(d)?f=r(d):t.set(d,f=new ls(d))),f}const n=ns();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return i!==void 0&&i.watch(l,this.name),l[this.field]}setValue(l,f){const w=this.field,be=l[w];if(be!==f){l[w]=f;const tt=l[this.callback];At(tt)&&tt.call(l,be,f),s(l).notify(this.name)}}}class h extends Gi{constructor(l,f,w=!1){super(l,f),this.expression=l,this.isVolatileBinding=w,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(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const f=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),f}requiresUnbind(l){return l.sourceLifetime!==Vo.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,f){this.needsRefresh&&this.last!==null&&this.dispose();const w=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let be;try{be=this.expression(l,f)}finally{i=w}return be}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,f){const w=this.last,be=s(l),tt=w===null?this.first:{};if(tt.propertySource=l,tt.propertyName=f,tt.notifier=be,be.subscribe(this,f),w!==null){if(!this.needsRefresh){let os;i=void 0,os=w.propertySource[w.propertyName],i=this,l===os&&(this.needsRefresh=!0)}w.next=tt}this.last=tt}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 l=this.first;for(;l!==void 0;)yield l,l=l.next}}return ut(h),Object.freeze({setArrayObserverFactory(d){r=d},getNotifier:s,track(d,l){i&&i.watch(d,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(d,l){s(d).notify(l)},defineProperty(d,l){Me(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(f){l.setValue(this,f)}})},getAccessors:n,binding(d,l,f=this.isVolatileBinding(d)){return new h(d,l,f)},isVolatileBinding(d){return e.test(d.toString())}})});function g(o,e){m.defineProperty(o,e)}function cs(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const ds=ie.getById(ht.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),_t=Object.freeze({default:{index:0,length:0,get event(){return _t.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return ds.get()},setEvent(o){ds.set(o)}});class Lo{constructor(e,t,i=!1){this.evaluate=e,this.policy=t,this.isVolatile=i}}class _a extends Lo{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Xi(o,e,t=m.isVolatileBinding(o)){return new _a(o,e,t)}class hs extends Lo{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}ut(hs);function us(o,e){return new hs(o,e)}let ps;function bs(o){return o.map(e=>e instanceof ke?bs(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class ke{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof ke?t.behaviors:null).reduce((t,i)=>i===null?t:t===null?i:t.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(ps),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(bs(this.styles)),this}static setDefaultStrategy(e){ps=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new ke(e):e instanceof ke?e:new ke([e])}}ke.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Ui=Wi(),Ki=Object.freeze({getForInstance:Ui.getForInstance,getByType:Ui.getByType,define(o){return Ui.register({type:o}),o}});function Yi(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Qi{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 s=i.setAttribute;i.setAttribute=(n,c)=>{s.call(i,n,c),n==="style"&&i.$cssBindings.forEach((h,d)=>Yi(d,h.controller,h.observer))}}const r=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);r.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:r})}connectedCallback(e){Yi(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){Yi(this,t.controller,t)}}Ki.define(Qi);const Ea=`${Math.random().toString(36).substring(2,8)}`;let Na=0;const gs=()=>`--v${Ea}${++Na}`;function fs(o,e){const t=[];let i="";const r=[],s=n=>{r.push(n)};for(let n=0,c=o.length-1;n<c;++n){i+=o[n];let h=e[n];At(h)?h=new Qi(Xi(h),gs()).createCSS(s):h instanceof Lo?h=new Qi(h,gs()).createCSS(s):Ki.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof ke||h instanceof CSSStyleSheet?(i.trim()!==""&&(t.push(i),i=""),t.push(h)):i+=h}return i+=o[o.length-1],i.trim()!==""&&t.push(i),{styles:t,behaviors:r}}const u=(o,...e)=>{const{styles:t,behaviors:i}=fs(o,e),r=new ke(t);return i.length?r.withBehaviors(...i):r};class ms{constructor(e,t){this.behaviors=t,this.css="";const i=e.reduce((r,s)=>(Me(s)?this.css+=s:r.push(s),r),[]);i.length&&(this.styles=new ke(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)}}Ki.define(ms),u.partial=(o,...e)=>{const{styles:t,behaviors:i}=fs(o,e);return new ms(t,i)};const vs=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,$s=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,ys=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,xs=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,ks=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,ws=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Cs(o){return o&&o.nodeType===Node.COMMENT_NODE}const De=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 vs.test(o)},isContentBindingEndMarker(o){return $s.test(o)},isRepeatViewStartMarker(o){return ys.test(o)},isRepeatViewEndMarker(o){return xs.test(o)},isElementBoundaryStartMarker(o){return Cs(o)&&ks.test(o.data.trim())},isElementBoundaryEndMarker(o){return Cs(o)&&ws.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 Ps(vs,o)},parseContentBindingEndMarker(o){return Ps($s,o)},parseRepeatStartMarker(o){return Ss(ys,o)},parseRepeatEndMarker(o){return Ss(xs,o)},parseElementBoundaryStartMarker(o){return Is(ks,o.trim())},parseElementBoundaryEndMarker(o){return Is(ws,o)}});function Ss(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function Is(o,e){const t=o.exec(e);return t===null?t:t[1]}function Ps(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const jo=Symbol.for("fe-hydration");function Ro(o){return o[jo]===jo}const Zi=`fast-${Math.random().toString(36).substring(2,8)}`,qo=`${Zi}{`,ao=`}${Zi}`,Fa=ao.length;let Ma=0;const lo=()=>`${Zi}-${++Ma}`,zs=Object.freeze({interpolation:o=>`${qo}${o}${ao}`,attribute:o=>`${lo()}="${qo}${o}${ao}"`,comment:o=>`<!--${qo}${o}${ao}-->`}),Wo=Object.freeze({parse(o,e){const t=o.split(qo);if(t.length===1)return null;const i=[];for(let r=0,s=t.length;r<s;++r){const n=t[r],c=n.indexOf(ao);let h;if(c===-1)h=n;else{const d=n.substring(0,c);i.push(e[d]),h=n.substring(c+Fa)}h!==""&&i.push(h)}return i}}),Ji=Wi(),Be=Object.freeze({getForInstance:Ji.getForInstance,getByType:Ji.getByType,define(o,e){return e=e||{},e.type=o,Ji.register(e),o},assignAspect(o,e){if(!e){o.aspectType=Y.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?Y.tokenList:Y.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=Y.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=Y.event;break;default:o.targetAspect=e,o.aspectType=Y.attribute;break}}});class er{constructor(e){this.options=e}createHTML(e){return zs.attribute(e(this))}createBehavior(){return this}}ut(er);class Ts extends Error{constructor(e,t,i){super(e),this.factories=t,this.node=i}}function tr(o){return o.nodeType===Node.COMMENT_NODE}function Bs(o){return o.nodeType===Node.TEXT_NODE}function Os(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,tr(e)||Bs(e)?e.data.length:e.childNodes.length),t}function Da(o){return o instanceof DocumentFragment&&"mode"in o}function Ha(o,e,t){const i=Os(o,e),r=i.commonAncestorContainer,s=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(d){return i.comparePoint(d,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},c={};let h=s.currentNode=o;for(;h!==null;){switch(h.nodeType){case Node.ELEMENT_NODE:{Va(h,t,n);break}case Node.COMMENT_NODE:{La(h,s,t,n,c);break}}h=s.nextNode()}return i.detach(),{targets:n,boundaries:c}}function Va(o,e,t){const i=De.parseAttributeBinding(o);if(i!==null){for(const r of i){if(!e[r])throw new Ts(`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);Go(e[r],o,t)}o.removeAttribute(De.attributeMarkerName)}}function La(o,e,t,i,r){if(De.isElementBoundaryStartMarker(o)){ja(o,e);return}if(De.isContentBindingStartMarker(o.data)){const s=De.parseContentBindingStartMarker(o.data);if(s===null)return;const[n,c]=s,h=t[n],d=[];let l=e.nextSibling();o.data="";const f=l;for(;l!==null;){if(tr(l)){const w=De.parseContentBindingEndMarker(l.data);if(w&&w[1]===c)break}d.push(l),l=e.nextSibling()}if(l===null){const w=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Da(w)?w.host.nodeName:w.nodeName}".`)}if(l.data="",d.length===1&&Bs(d[0]))Go(h,d[0],i);else{l!==f&&l.previousSibling!==null&&(r[h.targetNodeId]={first:f,last:l.previousSibling});const w=l.parentNode.insertBefore(document.createTextNode(""),l);Go(h,w,i)}}}function ja(o,e){const t=De.parseElementBoundaryStartMarker(o.data);let i=e.nextSibling();for(;i!==null;){if(tr(i)){const r=De.parseElementBoundaryEndMarker(i.data);if(r&&r===t)break}i=e.nextSibling()}}function Go(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var As;function or(o,e){const t=o.parentNode;let i=o,r;for(;i!==e;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(i),i=r}t.removeChild(e)}class _s{constructor(){this.index=0,this.length=0}get event(){return _t.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 Xo extends _s{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=Vo.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 r=this.firstChild,s;for(;r!==t;)s=r.nextSibling,i.insertBefore(r,e),r=s;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i=this.firstChild,r;for(;i!==t;)r=i.nextSibling,e.appendChild(i),i=r;e.appendChild(t)}dispose(){or(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 r=this.factories;for(let s=0,n=r.length;s<n;++s){const c=r[s].createBehavior();c.bind(this),i[s]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let r=0,s=i.length;r<s;++r)i[r].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){or(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}}ut(Xo),m.defineProperty(Xo.prototype,"index"),m.defineProperty(Xo.prototype,"length");const Et={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Ra extends Error{constructor(e,t,i,r){super(e),this.factory=t,this.fragment=i,this.templateString=r}}class qa extends _s{constructor(e,t,i,r){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=i,this.hostBindingTarget=r,this[As]=jo,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Vo.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=Et.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 r=this.firstChild,s;for(;r!==t;)s=r.nextSibling,i.insertBefore(r,e),r=s;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,r;for(;i!==t;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(i),i=r}e.appendChild(t)}bind(e,t=this){var i,r;if(this.hydrationStage!==Et.hydrated&&(this._hydrationStage=Et.hydrating),this.source===e)return;let s=this.behaviors;if(s===null){this.source=e,this.context=t;try{const{targets:c,boundaries:h}=Ha(this.firstChild,this.lastChild,this.factories);this._targets=c,this._bindingViewBoundaries=h}catch(c){if(c instanceof Ts){let h=this.sourceTemplate.html;typeof h!="string"&&(h=h.innerHTML),c.templateString=h}throw c}this.behaviors=s=new Array(this.factories.length);const n=this.factories;for(let c=0,h=n.length;c<h;++c){const d=n[c];if(d.targetNodeId==="h"&&this.hostBindingTarget&&Go(d,this.hostBindingTarget,this._targets),d.targetNodeId in this.targets){const l=d.createBehavior();l.bind(this),s[c]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new Ra(`HydrationView was unable to successfully target bindings inside "${(r=((i=this.firstChild)===null||i===void 0?void 0:i.getRootNode()).host)===null||r===void 0?void 0:r.nodeName}".`,d,Os(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,c=s.length;n<c;++n)s[n].bind(this)}this.isBound=!0,this._hydrationStage=Et.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){or(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}}As=jo,ut(qa);function Wa(o){return o.create!==void 0}function Ga(o,e,t,i){if(t==null&&(t=""),Wa(t)){o.textContent="";let r=o.$fastView;if(r===void 0)if(Ro(i)&&Ro(t)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==Et.hydrated){const s=i.bindingViewBoundaries[this.targetNodeId];r=t.hydrate(s.first,s.last)}else r=t.create();else o.$fastTemplate!==t&&(r.isComposed&&(r.remove(),r.unbind()),r=t.create());r.isComposed?r.needsBindOnly&&(r.needsBindOnly=!1,r.bind(i.source,i.context)):(r.isComposed=!0,r.bind(i.source,i.context),r.insertBefore(o),o.$fastView=r,o.$fastTemplate=t)}else{const r=o.$fastView;r!==void 0&&r.isComposed&&(r.isComposed=!1,r.remove(),r.needsBindOnly?r.needsBindOnly=!1:r.unbind()),o.textContent=t}}function Xa(o,e,t){var i;const r=`${this.id}-t`,s=(i=o[r])!==null&&i!==void 0?i:o[r]={v:0,cv:Object.create(null)},n=s.cv;let c=s.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,f=d.length;l<f;++l){const w=d[l];w!==""&&(n[w]=c,h.add(w))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const Ua={[Y.attribute]:pt.setAttribute,[Y.booleanAttribute]:pt.setBooleanAttribute,[Y.property]:(o,e,t)=>o[e]=t,[Y.content]:Ga,[Y.tokenList]:Xa,[Y.event]:()=>{}};class Nt{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=Y.content}createHTML(e){return zs.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Ua[this.aspectType],i=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw ie.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],r=Ro(e)&&e.hydrationStage&&e.hydrationStage!==Et.hydrated;switch(this.aspectType){case Y.event:i[this.data]=e,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Y.content:e.onUnbind(this);default:const s=(t=i[this.data])!==null&&t!==void 0?t:i[this.data]=this.dataBinding.createObserver(this,this);if(s.target=i,s.controller=e,r&&(this.aspectType===Y.attribute||this.aspectType===Y.booleanAttribute)){s.bind(e);break}this.updateTarget(i,this.targetAspect,s.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){_t.setEvent(e);const i=this.dataBinding.evaluate(t.source,t.context);_t.setEvent(null),i!==!0&&e.preventDefault()}}handleChange(e,t){const i=t.target,r=t.controller;this.updateTarget(i,this.targetAspect,t.bind(r),r)}}Be.define(Nt,{aspected:!0});const Es=(o,e)=>`${o}.${e}`,Ns={},He={index:0,node:null};function Fs(o){o.startsWith("fast-")||ie.warn(1204,{name:o})}const Ka=new Proxy(document.createElement("div"),{get(o,e){Fs(e);const t=Reflect.get(o,e);return At(t)?t.bind(o):t},set(o,e,t){return Fs(e),Reflect.set(o,e,t)}});class Ya{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,r,s){var n,c;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(t,i,r)),e.id=(n=e.id)!==null&&n!==void 0?n:lo(),e.targetNodeId=i,e.targetTagName=s,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,i){const r=this.descriptors;if(t==="r"||t==="h"||r[t])return;if(!r[e]){const n=e.lastIndexOf("."),c=e.substring(0,n),h=parseInt(e.substring(n+1));this.addTargetDescriptor(c,e,h)}let s=Ns[t];if(!s){const n=`_${t}`;Ns[t]=s={get(){var c;return(c=this[n])!==null&&c!==void 0?c:this[n]=this[e].childNodes[i]}}}r[t]=s}createView(e){const t=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=t,i.h=e??Ka;for(const r of this.nodeIds)i[r];return new Xo(t,this.factories,i)}}function Ms(o,e,t,i,r,s=!1){const n=t.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],f=l.value,w=Wo.parse(f,c);let be=null;w===null?s&&(be=new Nt(us(()=>f,o.policy)),Be.assignAspect(be,l.name)):be=ir.aggregate(w,o.policy),be!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(be,e,i,r,t.tagName))}}function Qa(o,e,t,i,r){const s=Wo.parse(e.textContent,o.directives);if(s===null)return He.node=e.nextSibling,He.index=r+1,He;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(r++,i=Es(t,r),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Me(l)?n.textContent=l:(n.textContent=" ",Be.assignAspect(l),o.addFactory(l,t,i,r,null)),c=n}return He.index=r+1,He.node=c.nextSibling,He}function Ds(o,e,t){let i=0,r=e.firstChild;for(;r;){const s=Za(o,t,r,i);r=s.node,i=s.index}}function Za(o,e,t,i){const r=Es(e,i);switch(t.nodeType){case 1:Ms(o,e,t,r,i),Ds(o,t,r);break;case 3:return Qa(o,t,e,r,i);case 8:const s=Wo.parse(t.data,o.directives);s!==null&&o.addFactory(ir.aggregate(s),e,r,i,null);break}return He.index=i+1,He.node=t.nextSibling,He}function Ja(o,e){return o&&o.nodeType==8&&Wo.parse(o.data,e)!==null}const Hs="TEMPLATE",ir={compile(o,e,t=pt.policy){let i;if(Me(o)){i=document.createElement(Hs),i.innerHTML=t.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===Hs&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const r=document.adoptNode(i.content),s=new Ya(r,e,t);return Ms(s,"",i,"h",0,!0),(Ja(r.firstChild,e)||r.childNodes.length===1&&Object.keys(e).length>0)&&r.insertBefore(document.createComment(""),r.firstChild),Ds(s,r,"r"),He.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=pt.policy){if(o.length===1)return o[0];let t,i=!1,r;const s=o.length,n=o.map(d=>Me(d)?()=>d:(t=d.sourceAspect||t,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let f="";for(let w=0;w<s;++w)f+=n[w](d,l);return f},h=new Nt(Xi(c,r??e,i));return Be.assignAspect(h,t),h}},el=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,tl=Object.create(null);class bt{constructor(e,t=tl){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const i in t)e(t[i]);return this.html}}bt.empty=new bt(""),Be.define(bt);function ol(o,e,t,i=Be.getForInstance(o)){if(i.aspected){const r=el.exec(e);r!==null&&Be.assignAspect(o,r[2])}return o.createHTML(t)}class Li{constructor(e,t={},i){this.policy=i,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=ir.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new bt(Me(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw ie.error(1208);if(this.policy)throw ie.error(1207);return this.policy=e,this}render(e,t,i){const r=this.create(i);return r.bind(e),r.appendTo(t),r}static create(e,t,i){let r="";const s=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=lo();return s[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],f;if(r+=d,At(l))l=new Nt(Xi(l));else if(l instanceof Lo)l=new Nt(l);else if(!(f=Be.getForInstance(l))){const w=l;l=new Nt(us(()=>w))}r+=ol(l,d,n,f)}return new Li(r+e[e.length-1],s,i)}}ut(Li);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Li.create(o,e);throw ie.error(1206)};b.partial=o=>new bt(o);class Vs extends er{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Be.define(Vs);const V=o=>new Vs(o),il=o=>o.nodeType===1,gt=o=>o?e=>e.nodeType===1&&e.matches(o):il;class Ls extends er{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,Ba),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 js="slotchange";class Rs extends Ls{observe(e){e.addEventListener(js,this)}disconnect(e){e.removeEventListener(js,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Be.define(Rs);function L(o){return Me(o)&&(o={property:o}),new Rs(o)}class qs extends Ls{constructor(e){super(e),this.observerProperty=Symbol(),this.handleEvent=(t,i)=>{const r=i.target;this.updateTarget(this.getSource(r),this.computeNodes(r))},e.childList=!0}observe(e){let t=e[this.observerProperty];t||(t=new MutationObserver(this.handleEvent),t.toJSON=rs,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)}}Be.define(qs);function rr(o){return Me(o)&&(o={property:o}),new qs(o)}const Ws="boolean",Gs="reflect",Uo=Object.freeze({locate:ns()}),rl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Xs(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const re={toView(o){const e=Xs(o);return e&&e.toString()},fromView:Xs};class ji{constructor(e,t,i=t.toLowerCase(),r=Gs,s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=r,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,r===Ws&&s===void 0&&(this.converter=rl)}setValue(e,t){const i=e[this.fieldName],r=this.converter;r!==void 0&&(t=r.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 m.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"||Q.enqueue(()=>{i.add(e);const r=e[this.fieldName];switch(t){case Gs:const s=this.converter;pt.setAttribute(e,this.attribute,s!==void 0?s.toView(r):r);break;case Ws:pt.setBooleanAttribute(e,this.attribute,r);break}i.delete(e)})}static collect(e,...t){const i=[];t.push(Uo.locate(e));for(let r=0,s=t.length;r<s;++r){const n=t[r];if(n!==void 0)for(let c=0,h=n.length;c<h;++c){const d=n[c];Me(d)?i.push(new ji(e,d)):i.push(new ji(e,d.property,d.attribute,d.mode,d.converter))}}return i}}function a(o,e){let t;function i(r,s){arguments.length>1&&(t.property=s),Uo.locate(r.constructor).push(t)}if(arguments.length>1){t={},i(o,e);return}return t=o===void 0?{}:o,i}const Us={mode:"open"},Ks={},Ys=new Set,Ko=ie.getById(ht.elementRegistry,()=>Wi());class Fe{constructor(e,t=e.definition){var i;this.platformDefined=!1,Me(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 r=e.prototype,s=ji.collect(e,t.attributes),n=new Array(s.length),c={},h={};for(let d=0,l=s.length;d<l;++d){const f=s[d];n[d]=f.attribute,c[f.name]=f,h[f.attribute]=f,m.defineProperty(r,f)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=s,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Us:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Us),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Ks:Object.assign(Object.assign({},Ks),t.elementOptions),this.styles=ke.normalize(t.styles),Ko.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 Ys.has(e)||Ko.getByType(e)?new Fe(class extends e{},t):new Fe(e,t)}static registerBaseType(e){Ys.add(e)}}Fe.getByType=Ko.getByType,Fe.getForInstance=Ko.getForInstance;class sl extends MutationObserver{constructor(e){function t(i){this.callback.call(null,i.filter(r=>this.observedNodes.has(r.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,r=!1;return{source:o,context:_t.default,targets:t,get isBound(){return r},addBehaviorFactory(s,n){var c,h,d,l;const f=s;f.id=(c=f.id)!==null&&c!==void 0?c:lo(),f.targetNodeId=(h=f.targetNodeId)!==null&&h!==void 0?h:lo(),f.targetTagName=(d=n.tagName)!==null&&d!==void 0?d:null,f.policy=(l=f.policy)!==null&&l!==void 0?l:pt.policy,this.addTarget(f.targetNodeId,n),this.addBehavior(f.createBehavior())},addTarget(s,n){t[s]=n},addBehavior(s){e.push(s),r&&s.bind(this)},onUnbind(s){i===null&&(i=[]),i.push(s)},connectedCallback(s){r||(r=!0,e.forEach(n=>n.bind(this)))},disconnectedCallback(s){r&&(r=!1,i!==null&&i.forEach(n=>n.unbind(this)))}}}});const nl={bubbles:!0,composed:!0,cancelable:!0},Yo="isConnected",Qs=new WeakMap;function co(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Qs.get(o))!==null&&t!==void 0?t:null}let Zs;class Ft extends ls{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 s=e.shadowRoot;s?this.hasExistingShadowRoot=!0:(s=e.attachShadow(i),i.mode==="closed"&&Qs.set(e,s))}const r=m.getAccessors(e);if(r.length>0){const s=this.boundObservables=Object.create(null);for(let n=0,c=r.length;n<c;++n){const h=r[n].name,d=e[h];d!==void 0&&(delete e[h],s[h]=d)}}}get isConnected(){return m.track(this,Yo),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:_t.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 r=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,s=(i=r.get(e))!==null&&i!==void 0?i:0;s===0?(r.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):r.set(e,s+1)}removeBehavior(e,t=!1){const i=this.behaviors;if(i===null)return;const r=i.get(e);r!==void 0&&(r===1||t?(i.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):i.set(e,r-1))}addStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=co(i))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(i)){const r=e.behaviors;if(e.addStylesTo(i),r!==null)for(let s=0,n=r.length;s<n;++s)this.addBehavior(r[s])}}removeStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=co(i))!==null&&t!==void 0?t:i).removeChild(e);else if(e.isAttachedTo(i)){const r=e.behaviors;if(e.removeStylesFrom(i),r!==null)for(let s=0,n=r.length;s<n;++s)this.removeBehavior(r[s])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,m.notify(this,Yo))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,i=Object.keys(t);for(let r=0,s=i.length;r<s;++r){const n=i[r];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,m.notify(this,Yo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,i){const r=this.definition.attributeLookup[e];r!==void 0&&r.onAttributeChangedCallback(this.source,i)}emit(e,t,i){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},nl),i))):!1}renderTemplate(e){var t;const i=this.source,r=(t=co(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 s=r.firstChild;s!==null;s=r.firstChild)r.removeChild(s)}e&&(this.view=e.render(i,r,i),this.view.sourceLifetime=Vo.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const i=Fe.getForInstance(e);if(i===void 0)throw ie.error(1401);return e.$fastController=new Zs(e,i)}static setStrategy(e){Zs=e}}ut(Ft),Ft.setStrategy(Ft);function Qo(o){var e;return"adoptedStyleSheets"in o?o:(e=co(o))!==null&&e!==void 0?e:o.getRootNode()}class Ri{constructor(e){const t=Ri.styleSheetCache;this.sheets=e.map(i=>{if(i instanceof CSSStyleSheet)return i;let r=t.get(i);return r===void 0&&(r=new CSSStyleSheet,r.replaceSync(i),t.set(i,r)),r})}addStylesTo(e){en(Qo(e),this.sheets)}removeStylesFrom(e){tn(Qo(e),this.sheets)}}Ri.styleSheetCache=new Map;let al=0;const ll=()=>`fast-${++al}`;function Js(o){return o===document?document.body:o}class cl{constructor(e){this.styles=e,this.styleClass=ll()}addStylesTo(e){e=Js(Qo(e));const t=this.styles,i=this.styleClass;for(let r=0;r<t.length;r++){const s=document.createElement("style");s.innerHTML=t[r],s.className=i,e.append(s)}}removeStylesFrom(e){e=Js(Qo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,r=t.length;i<r;++i)e.removeChild(t[i])}}let en=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},tn=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ke.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),en=(o,e)=>{o.adoptedStyleSheets.push(...e)},tn=(o,e)=>{for(const t of e){const i=o.adoptedStyleSheets.indexOf(t);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}ke.setDefaultStrategy(Ri)}else ke.setDefaultStrategy(cl);const on="defer-hydration",rn="needs-hydration";class Ot extends Ft{static hydrationObserverHandler(e){for(const t of e)Ot.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(rn)!==null),this.source.hasAttribute(on)){Ot.hydrationObserver.observe(this.source,{attributeFilter:[on]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const i=this.source,r=(e=co(i))!==null&&e!==void 0?e:i;if(this.template)if(Ro(this.template)){let s=r.firstChild,n=r.lastChild;i.shadowRoot===null&&(De.isElementBoundaryStartMarker(s)&&(s.data="",s=s.nextSibling),De.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(s,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(rn),this.needsInitialization=this.needsHydration=!1,m.notify(this,Yo)}disconnect(){super.disconnect(),Ot.hydrationObserver.unobserve(this.source)}static install(){Ft.setStrategy(Ot)}}Ot.hydrationObserver=new sl(Ot.hydrationObserverHandler);function sn(o){const e=class extends o{constructor(){super(),Ft.forCustomElement(this)}$emit(t,i,r){return this.$fastController.emit(t,i,r)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,i,r){this.$fastController.onAttributeChangedCallback(t,i,r)}};return Fe.registerBaseType(e),e}function dl(o,e){return At(o)?Fe.compose(o,e):Fe.compose(this,o)}function hl(o,e){return At(o)?Fe.compose(o,e).define().type:Fe.compose(this,o).define().type}function ul(o){return sn(o)}const $=Object.assign(sn(HTMLElement),{from:ul,define:hl,compose:dl});var pl=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,j=(o,e,t,i)=>{for(var r=i>1?void 0:i?bl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&pl(e,t,r),r};class R{}j([a({attribute:"aria-atomic"})],R.prototype,"ariaAtomic",2),j([a({attribute:"aria-busy"})],R.prototype,"ariaBusy",2),j([a({attribute:"aria-controls"})],R.prototype,"ariaControls",2),j([a({attribute:"aria-current"})],R.prototype,"ariaCurrent",2),j([a({attribute:"aria-describedby"})],R.prototype,"ariaDescribedby",2),j([a({attribute:"aria-details"})],R.prototype,"ariaDetails",2),j([a({attribute:"aria-disabled"})],R.prototype,"ariaDisabled",2),j([a({attribute:"aria-errormessage"})],R.prototype,"ariaErrormessage",2),j([a({attribute:"aria-flowto"})],R.prototype,"ariaFlowto",2),j([a({attribute:"aria-haspopup"})],R.prototype,"ariaHaspopup",2),j([a({attribute:"aria-hidden"})],R.prototype,"ariaHidden",2),j([a({attribute:"aria-invalid"})],R.prototype,"ariaInvalid",2),j([a({attribute:"aria-keyshortcuts"})],R.prototype,"ariaKeyshortcuts",2),j([a({attribute:"aria-label"})],R.prototype,"ariaLabel",2),j([a({attribute:"aria-labelledby"})],R.prototype,"ariaLabelledby",2),j([a({attribute:"aria-live"})],R.prototype,"ariaLive",2),j([a({attribute:"aria-owns"})],R.prototype,"ariaOwns",2),j([a({attribute:"aria-relevant"})],R.prototype,"ariaRelevant",2),j([a({attribute:"aria-roledescription"})],R.prototype,"ariaRoledescription",2);const sr={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()}},ge={horizontal:"horizontal",vertical:"vertical"};function gl(o,e){let t=o.length;for(;t--;)if(e(o[t],t,o))return t;return-1}function nr(...o){return o.every(e=>e instanceof HTMLElement)}const ho="ArrowDown",uo="ArrowLeft",po="ArrowRight",bo="ArrowUp",go="End",fo="Enter",fl="Escape",mo="Home",Zo=" ",ml="Tab";var Ve;(function(o){o.ltr="ltr",o.rtl="rtl"})(Ve||(Ve={}));function vl(o,e,t){return t<o?e:t>e?o:t}function ar(o,e,t){return Math.min(Math.max(t,o),e)}let $l=0;function Mt(o=""){return`${o}${$l++}`}const Jo=o=>o.closest("[dir]")?.dir==="rtl"?Ve.rtl:Ve.ltr;function he(o){return o?typeof o=="string"?new bt(o):"inline"in o?o.inline():o:bt.empty}const lr=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,yl=":host([hidden]){display:none}";function k(o){return`${yl}:host{display:${o}}`}class xl{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 Mo extends xl{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Mo(e,t)}constructListener(e){let t=!1;const i=this.styles;return function(){const{matches:s}=this;s&&!t?(e.addStyles(i),t=s):!s&&t&&(e.removeStyles(i),t=s)}}removedCallback(e){e.removeStyles(this.styles)}}const U=Mo.with(window.matchMedia("(forced-colors)"));Mo.with(window.matchMedia("(prefers-color-scheme: dark)")),Mo.with(window.matchMedia("(prefers-color-scheme: light)"));const ei=CSS.supports("anchor-name: --a"),kl="anchor"in HTMLElement.prototype,nn=CSS.supports("selector(:state(g))");class Ue{}function ot(o){return b`<slot name="end" ${V("end")}>${he(o.end)}</slot>`.inline()}function Le(o){return b`<slot name="start" ${V("start")}>${he(o.start)}</slot>`.inline()}function Ke(o,...e){const t=Uo.locate(o);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(i.prototype,s))}),Uo.locate(i).forEach(s=>t.push(s))})}var wl=Object.defineProperty,Cl=Object.getOwnPropertyDescriptor,ti=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&wl(e,t,r),r};class Ye extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Mt("accordion-")}}ti([a({attribute:"heading-level",mode:"fromView",converter:re})],Ye.prototype,"headinglevel",2),ti([a({mode:"boolean"})],Ye.prototype,"expanded",2),ti([a({mode:"boolean"})],Ye.prototype,"disabled",2),ti([a],Ye.prototype,"id",2);var Sl=Object.defineProperty,Il=Object.getOwnPropertyDescriptor,cr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Il(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Sl(e,t,r),r};class vo extends Ye{constructor(){super(...arguments),this.block=!1}}cr([a],vo.prototype,"size",2),cr([a({attribute:"marker-position"})],vo.prototype,"markerPosition",2),cr([a({mode:"boolean"})],vo.prototype,"block",2),Ke(vo,Ue);const z="var(--colorNeutralForeground1)",dr="var(--colorNeutralForeground1Hover)",Pl="var(--colorNeutralForeground1Pressed)",Ie="var(--colorNeutralForeground2)",Dt="var(--colorNeutralForeground2Hover)",Ht="var(--colorNeutralForeground2Pressed)",oi="var(--colorNeutralForeground2Selected)",ii="var(--colorNeutralForeground2BrandHover)",ri="var(--colorNeutralForeground2BrandPressed)",zl="var(--colorNeutralForeground2BrandSelected)",Z="var(--colorNeutralForeground3)",Tl="var(--colorNeutralForeground3Hover)",Bl="var(--colorNeutralForeground3Pressed)",Ol="var(--colorNeutralForeground3Selected)",hr="var(--colorNeutralForeground4)",S="var(--colorNeutralForegroundDisabled)",Al="var(--colorBrandForegroundLink)",_l="var(--colorBrandForegroundLinkHover)",El="var(--colorBrandForegroundLinkPressed)",Nl="var(--colorNeutralForeground2Link)",Fl="var(--colorNeutralForeground2LinkHover)",Ml="var(--colorNeutralForeground2LinkPressed)",an="var(--colorCompoundBrandForeground1Hover)",Dl="var(--colorCompoundBrandForeground1Pressed)",Qe="var(--colorNeutralForegroundOnBrand)",ft="var(--colorNeutralForegroundInverted)",Hl="var(--colorNeutralForegroundInvertedHover)",Vl="var(--colorNeutralForegroundInvertedPressed)",ln="var(--colorNeutralForegroundStaticInverted)",si="var(--colorBrandForeground1)",Ll="var(--colorBrandForeground2)",jl="var(--colorNeutralForeground1Static)",I="var(--colorNeutralBackground1)",ni="var(--colorNeutralBackground1Hover)",ur="var(--colorNeutralBackground1Pressed)",cn="var(--colorNeutralBackground1Selected)",$o="var(--colorNeutralBackground3)",Rl="var(--colorNeutralBackground4)",ql="var(--colorNeutralBackground5)",yo="var(--colorNeutralBackground6)",dn="var(--colorNeutralBackgroundInverted)",hn="var(--colorSubtleBackground)",xo="var(--colorSubtleBackgroundHover)",mt="var(--colorSubtleBackgroundPressed)",un="var(--colorSubtleBackgroundSelected)",Wl="var(--colorSubtleBackgroundLightAlphaHover)",Gl="var(--colorSubtleBackgroundLightAlphaPressed)",Xl="var(--colorSubtleBackgroundLightAlphaSelected)",fe="var(--colorTransparentBackground)",ai="var(--colorTransparentBackgroundHover)",li="var(--colorTransparentBackgroundPressed)",pn="var(--colorTransparentBackgroundSelected)",it="var(--colorNeutralBackgroundDisabled)",pr="var(--colorBackgroundOverlay)",bn="var(--colorBrandBackground)",gn="var(--colorBrandBackgroundHover)",fn="var(--colorBrandBackgroundPressed)",Ul="var(--colorBrandBackgroundSelected)",vt="var(--colorCompoundBrandBackground)",Vt="var(--colorCompoundBrandBackgroundHover)",Lt="var(--colorCompoundBrandBackgroundPressed)",mn="var(--colorBrandBackgroundStatic)",vn="var(--colorBrandBackground2)",je="var(--colorNeutralStrokeAccessible)",$t="var(--colorNeutralStrokeAccessibleHover)",yt="var(--colorNeutralStrokeAccessiblePressed)",Re="var(--colorNeutralStroke1)",jt="var(--colorNeutralStroke1Hover)",ko="var(--colorNeutralStroke1Pressed)",wo="var(--colorNeutralStroke2)",Kl="var(--colorNeutralStroke3)",Yl="var(--colorNeutralStrokeOnBrand2)",$n="var(--colorBrandStroke1)",yn="var(--colorBrandStroke2)",xt="var(--colorCompoundBrandStroke)",Ql="var(--colorCompoundBrandStrokeHover)",xn="var(--colorCompoundBrandStrokePressed)",we="var(--colorNeutralStrokeDisabled)",J="var(--colorTransparentStroke)",br="var(--colorTransparentStrokeInteractive)",gr="var(--colorStrokeFocus1)",Ce="var(--colorStrokeFocus2)",Zl="var(--colorNeutralShadowAmbient)",Jl="var(--colorNeutralShadowKey)",kn="var(--colorPaletteRedBackground1)",ec="var(--colorPaletteRedBackground2)",wn="var(--colorPaletteRedBackground3)",Cn="var(--colorPaletteRedBorder1)",fr="var(--colorPaletteRedBorder2)",mr="var(--colorPaletteRedForeground1)",tc="var(--colorPaletteRedForeground2)",Sn="var(--colorPaletteRedForeground3)",In="var(--colorPaletteGreenBackground1)",Pn="var(--colorPaletteGreenBackground3)",oc="var(--colorPaletteGreenBorder1)",ic="var(--colorPaletteGreenBorder2)",rc="var(--colorPaletteGreenForeground1)",sc="var(--colorPaletteGreenForeground2)",nc="var(--colorPaletteGreenForeground3)",zn="var(--colorPaletteDarkOrangeBackground1)",Tn="var(--colorPaletteDarkOrangeBackground3)",Bn="var(--colorPaletteDarkOrangeBorder1)",ac="var(--colorPaletteDarkOrangeForeground1)",On="var(--colorPaletteDarkOrangeForeground3)",lc="var(--colorPaletteYellowBackground1)",cc="var(--colorPaletteYellowBackground3)",dc="var(--colorPaletteYellowBorder1)",vr="var(--colorPaletteYellowForeground2)",An="var(--colorPaletteMarigoldBackground2)",hc="var(--colorPaletteMarigoldBorderActive)",uc="var(--colorPaletteMarigoldForeground2)",pc="var(--colorPaletteAnchorBackground2)",bc="var(--colorPaletteAnchorForeground2)",gc="var(--colorPaletteBeigeBackground2)",fc="var(--colorPaletteBeigeForeground2)",mc="var(--colorPaletteBlueBackground2)",vc="var(--colorPaletteBlueForeground2)",$c="var(--colorPaletteBrassBackground2)",yc="var(--colorPaletteBrassForeground2)",xc="var(--colorPaletteBrownBackground2)",kc="var(--colorPaletteBrownForeground2)",wc="var(--colorPaletteCornflowerBackground2)",Cc="var(--colorPaletteCornflowerForeground2)",Sc="var(--colorPaletteCranberryBackground2)",Ic="var(--colorPaletteCranberryForeground2)",Pc="var(--colorPaletteDarkGreenBackground2)",zc="var(--colorPaletteDarkGreenForeground2)",Tc="var(--colorPaletteDarkRedBackground2)",Bc="var(--colorPaletteDarkRedForeground2)",Oc="var(--colorPaletteForestBackground2)",Ac="var(--colorPaletteForestForeground2)",_c="var(--colorPaletteGoldBackground2)",Ec="var(--colorPaletteGoldForeground2)",Nc="var(--colorPaletteGrapeBackground2)",Fc="var(--colorPaletteGrapeForeground2)",Mc="var(--colorPaletteLavenderBackground2)",Dc="var(--colorPaletteLavenderForeground2)",Hc="var(--colorPaletteLightTealBackground2)",Vc="var(--colorPaletteLightTealForeground2)",Lc="var(--colorPaletteLilacBackground2)",jc="var(--colorPaletteLilacForeground2)",Rc="var(--colorPaletteMagentaBackground2)",qc="var(--colorPaletteMagentaForeground2)",Wc="var(--colorPaletteMinkBackground2)",Gc="var(--colorPaletteMinkForeground2)",Xc="var(--colorPaletteNavyBackground2)",Uc="var(--colorPaletteNavyForeground2)",Kc="var(--colorPalettePeachBackground2)",Yc="var(--colorPalettePeachForeground2)",Qc="var(--colorPalettePinkBackground2)",Zc="var(--colorPalettePinkForeground2)",Jc="var(--colorPalettePlatinumBackground2)",ed="var(--colorPalettePlatinumForeground2)",td="var(--colorPalettePlumBackground2)",od="var(--colorPalettePlumForeground2)",id="var(--colorPalettePumpkinBackground2)",rd="var(--colorPalettePumpkinForeground2)",sd="var(--colorPalettePurpleBackground2)",nd="var(--colorPalettePurpleForeground2)",ad="var(--colorPaletteRoyalBlueBackground2)",ld="var(--colorPaletteRoyalBlueForeground2)",cd="var(--colorPaletteSeafoamBackground2)",dd="var(--colorPaletteSeafoamForeground2)",hd="var(--colorPaletteSteelBackground2)",ud="var(--colorPaletteSteelForeground2)",pd="var(--colorPaletteTealBackground2)",bd="var(--colorPaletteTealForeground2)",ci="var(--borderRadiusNone)",Oe="var(--borderRadiusSmall)",C="var(--borderRadiusMedium)",_n="var(--borderRadiusLarge)",En="var(--borderRadiusXLarge)",me="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",gd="var(--fontFamilyMonospace)",fd="var(--fontFamilyNumeric)",Co="var(--fontSizeBase100)",N="var(--fontSizeBase200)",B="var(--fontSizeBase300)",ue="var(--fontSizeBase400)",Rt="var(--fontSizeBase500)",di="var(--fontSizeBase600)",Nn="var(--fontSizeHero700)",Fn="var(--fontSizeHero800)",Mn="var(--fontSizeHero900)",Dn="var(--fontSizeHero1000)",A="var(--fontWeightRegular)",md="var(--fontWeightMedium)",D="var(--fontWeightSemibold)",hi="var(--fontWeightBold)",ui="var(--lineHeightBase100)",q="var(--lineHeightBase200)",_="var(--lineHeightBase300)",ve="var(--lineHeightBase400)",pi="var(--lineHeightBase500)",Hn="var(--lineHeightBase600)",Vn="var(--lineHeightHero700)",Ln="var(--lineHeightHero800)",jn="var(--lineHeightHero900)",Rn="var(--lineHeightHero1000)",$r="var(--shadow2)",bi="var(--shadow4)",vd="var(--shadow8)",yr="var(--shadow16)",$d="var(--shadow28)",qn="var(--shadow64)",T="var(--strokeWidthThin)",$e="var(--strokeWidthThick)",se="var(--strokeWidthThicker)",xr="var(--strokeWidthThickest)",W="var(--spacingHorizontalXXS)",ne="var(--spacingHorizontalXS)",ee="var(--spacingHorizontalSNudge)",Ae="var(--spacingHorizontalS)",ae="var(--spacingHorizontalMNudge)",le="var(--spacingHorizontalM)",yd="var(--spacingHorizontalL)",xd="var(--spacingHorizontalXL)",kr="var(--spacingHorizontalXXL)",wr="var(--spacingVerticalNone)",qt="var(--spacingVerticalXXS)",Wt="var(--spacingVerticalXS)",qe="var(--spacingVerticalSNudge)",H="var(--spacingVerticalS)",Gt="var(--spacingVerticalMNudge)",kd="var(--spacingVerticalM)",gi="var(--spacingVerticalL)",kt="var(--spacingVerticalXXL)",wd="var(--spacingVerticalXXXL)",Cr="var(--durationUltraFast)",fi="var(--durationFaster)",mi="var(--durationNormal)",Sr="var(--durationGentle)",Wn="var(--durationSlow)",Gn="var(--durationSlower)",vi="var(--durationUltraSlow)",Cd="var(--curveAccelerateMax)",wt="var(--curveAccelerateMid)",Sd="var(--curveAccelerateMin)",Ir="var(--curveDecelerateMax)",Ct="var(--curveDecelerateMid)",Id="var(--curveDecelerateMin)",Xn="var(--curveEasyEaseMax)",$i="var(--curveEasyEase)",Pr="var(--curveLinear)",Pd=u`
|
|
2
2
|
${k("block")}
|
|
3
3
|
|
|
4
|
-
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${le} ${ae};border-radius:${C};font-family:${v};font-size:${B};font-weight:${A};line-height:${_};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${
|
|
4
|
+
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${le} ${ae};border-radius:${C};font-family:${v};font-size:${B};font-weight:${A};line-height:${_};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${fe};border:none;box-sizing:border-box;color:${z};cursor:pointer;font:inherit;grid-column:auto / span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Oe}}: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:${Ae};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${le}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Ae};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Oe};outline:none;border:2px solid ${gr};box-shadow:inset 0 0 0 1px ${Ce}}:host([disabled]) .button{color:${S}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${B};line-height:${_}}:host([size='small']) .heading{font-size:${N};line-height:${q}}:host([size='large']) .heading{font-size:${ue};line-height:${ve}}:host([size='extra-large']) .heading{font-size:${Rt};line-height:${pi}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1 / span 1}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${Ae};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${le}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${ae} ${le}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,zd=b.partial(`<svg
|
|
5
5
|
width="20"
|
|
6
6
|
height="20"
|
|
7
7
|
viewBox="0 0 20 20"
|
|
@@ -33,16 +33,16 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
33
33
|
:host{flex-direction:column;width:100%;contain:content}`;function Fd(){return b`<template><slot ${L({property:"slottedAccordionItems",filter:gt()})}></slot></template>`}const Md=Fd(),Dd=Tr.compose({name:`${p.prefix}-accordion`,template:Md,styles:Nd});Dd.define(p.registry);const Kn=new Map;function P(o){return Kn.get(o)??Kn.set(o,nn?`:state(${o})`:`[state--${o}]`).get(o)}function y(o,e,t){if(!(!e||!o)){if(!nn){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Br=new WeakMap;function Yn(o,e){if(!o||!e)return!1;if(Br.has(o))return Br.get(o).has(e);const t=new Set(Object.values(o));return Br.set(o,t),t.has(e)}function St(o,e="",t="",i,r=""){y(o,`${r}${e}`,!1),(!i||Yn(i,t))&&y(o,`${r}${t}`,!0)}const Hd={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Vd={circular:"circular",rounded:"rounded",square:"square"},Ld={small:"small",medium:"medium",large:"large"},yi={submit:"submit",reset:"reset",button:"button"},jd=Hd,Rd=Vd,qd=Ld,Wd={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Gd=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,rt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Xd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Gd(e,t,r),r};class We extends ${constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Wd){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===fo){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}}rt([a],We.prototype,"download",2),rt([a],We.prototype,"href",2),rt([a],We.prototype,"hreflang",2),rt([a],We.prototype,"ping",2),rt([a],We.prototype,"referrerpolicy",2),rt([a],We.prototype,"rel",2),rt([a],We.prototype,"target",2),rt([a],We.prototype,"type",2);var Ud=Object.defineProperty,Kd=Object.getOwnPropertyDescriptor,xi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Kd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ud(e,t,r),r};class Xt extends We{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){St(this.elementInternals,e,t,jd)}shapeChanged(e,t){St(this.elementInternals,e,t,Rd)}sizeChanged(e,t){St(this.elementInternals,e,t,qd)}iconOnlyChanged(e,t){y(this.elementInternals,"icon",!!t)}}xi([a],Xt.prototype,"appearance",2),xi([a],Xt.prototype,"shape",2),xi([a],Xt.prototype,"size",2),xi([a({attribute:"icon-only",mode:"boolean"})],Xt.prototype,"iconOnly",2),Ke(Xt,Ue);const Qn=u`
|
|
34
34
|
${k("inline-flex")}
|
|
35
35
|
|
|
36
|
-
:host{--icon-spacing:${ee};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:${I};color:${z};border:${T} solid ${Re};padding:0 ${le};min-width:96px;border-radius:${C};font-size:${B};font-family:${v};font-weight:${D};line-height:${_};transition-duration:${fi};transition-property:background,border,color;transition-timing-function:${$i};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${ni};color:${dr};border-color:${jt}}:host(:hover:active){background-color:${ur};border-color:${ko};color:${Pl};outline-style:none}:host(:focus-visible){border-color:${J};outline:${
|
|
36
|
+
:host{--icon-spacing:${ee};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:${I};color:${z};border:${T} solid ${Re};padding:0 ${le};min-width:96px;border-radius:${C};font-size:${B};font-family:${v};font-weight:${D};line-height:${_};transition-duration:${fi};transition-property:background,border,color;transition-timing-function:${$i};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${ni};color:${dr};border-color:${jt}}:host(:hover:active){background-color:${ur};border-color:${ko};color:${Pl};outline-style:none}:host(:focus-visible){border-color:${J};outline:${$e} solid ${J};box-shadow:${bi},0 0 0 2px ${Ce}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${ne};min-height:24px;min-width:64px;padding:0 ${Ae};border-radius:${Oe};font-size:${N};line-height:${q};font-weight:${A}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${_n};padding:0 ${yd};font-size:${ue};line-height:${ve}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${me}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${ci}}:host([appearance='primary']){background-color:${bn};color:${Qe};border-color:transparent}:host([appearance='primary']:hover){background-color:${gn}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Qe}}:host([appearance='primary']:hover:active){background-color:${fn}}:host([appearance='primary']:focus-visible){border-color:${Qe};box-shadow:${$r},0 0 0 2px ${Ce}}:host([appearance='outline']){background-color:${fe}}:host([appearance='outline']:hover){background-color:${ai}}:host([appearance='outline']:hover:active){background-color:${li}}:host([appearance='subtle']){background-color:${hn};color:${Ie};border-color:transparent}:host([appearance='subtle']:hover){background-color:${xo};color:${Dt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${mt};color:${Ht};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${ii}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${ri}}:host([appearance='transparent']){background-color:${fe};color:${Ie}}:host([appearance='transparent']:hover){background-color:${ai};color:${ii}}:host([appearance='transparent']:hover:active){background-color:${li};color:${ri}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,ki=u`
|
|
37
37
|
${Qn}
|
|
38
38
|
|
|
39
|
-
:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${it};border-color:${
|
|
39
|
+
:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${it};border-color:${we};color:${S};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${fe}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${fe};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${fe}}`.withBehaviors(U(u`
|
|
40
40
|
:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}`)),Yd=u`
|
|
41
41
|
${Qn}
|
|
42
42
|
|
|
43
43
|
::slotted(a){position:absolute;inset:0}`.withBehaviors(U(u`
|
|
44
44
|
:host{border-color:LinkText;color:LinkText}`));function Qd(o={}){return b`<template tabindex="0" @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}">${Le(o)}<span class="content" part="content"><slot></slot></span>${ot(o)}</template>`}const Zd=Qd(),Jd=Xt.compose({name:`${p.prefix}-anchor-button`,template:Zd,styles:Yd});Jd.define(p.registry);const eh=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,th=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,oh=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,ih=/\s+/g,rh=/[\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 sh(o,e,t){let i="";const r=o.split(" ");return r.length!==0&&(i+=r[0].charAt(0).toUpperCase()),t||(r.length===2?i+=r[1].charAt(0).toUpperCase():r.length===3&&(i+=r[2].charAt(0).toUpperCase())),e&&i.length>1?i.charAt(1)+i.charAt(0):i}function nh(o){return o=o.replace(eh,""),o=o.replace(th,""),o=o.replace(ih," "),o=o.trim(),o}function ah(o,e,t){return!o||(o=nh(o),rh.test(o)||!t?.allowPhoneInitials&&oh.test(o))?"":sh(o,e,t?.firstInitialOnly)}var lh=Object.defineProperty,ch=Object.getOwnPropertyDescriptor,Zn=(o,e,t,i)=>{for(var r=i>1?void 0:i?ch(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&lh(e,t,r),r};class Or extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}}Zn([a],Or.prototype,"name",2),Zn([a],Or.prototype,"initials",2);const Jn={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"},ea={neutral:"neutral",brand:"brand",colorful:"colorful",...Jn};var dh=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,Ut=(o,e,t,i)=>{for(var r=i>1?void 0:i?hh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&dh(e,t,r),r};const st=class es extends Or{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??ah(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===ea.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?es.colors[ph(this.name??"")%es.colors.length]:this.color??ea.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};st.colors=Object.values(Jn),Ut([a],st.prototype,"active",2),Ut([a],st.prototype,"shape",2),Ut([a],st.prototype,"appearance",2),Ut([a({converter:re})],st.prototype,"size",2),Ut([a],st.prototype,"color",2),Ut([a({attribute:"color-id"})],st.prototype,"colorId",2);let uh=st;const ph=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const i=o.charCodeAt(t),r=t%8;e^=(i<<r)+(i>>8-r)}return e},nt={fastOutSlowInMax:Ir,fastOutSlowInMid:Ct,fastOutSlowInMin:Id,slowOutFastInMax:Cd,slowOutFastInMid:wt,slowOutFastInMin:Sd,fastEase:Xn,normalEase:$i,nullEasing:Pr},bh=u`
|
|
45
|
-
${k("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${D};font-size:${B};border-radius:${
|
|
45
|
+
${k("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${D};font-size:${B};border-radius:${me};color:${Z};background-color:${yo};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:${me}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${T}) ${I}}: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 ${$e}) ${I}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${Co};font-weight:${A}}: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:${N}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${ue}}: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:${Rt}}: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:${C}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Oe}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${_n}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${En}}:host([data-color='brand']){color:${ln};background-color:${mn}}:host([data-color='dark-red']){color:${Bc};background-color:${Tc}}:host([data-color='cranberry']){color:${Ic};background-color:${Sc}}:host([data-color='red']){color:${tc};background-color:${ec}}:host([data-color='pumpkin']){color:${rd};background-color:${id}}:host([data-color='peach']){color:${Yc};background-color:${Kc}}:host([data-color='marigold']){color:${uc};background-color:${An}}:host([data-color='gold']){color:${Ec};background-color:${_c}}:host([data-color='brass']){color:${yc};background-color:${$c}}:host([data-color='brown']){color:${kc};background-color:${xc}}:host([data-color='forest']){color:${Ac};background-color:${Oc}}:host([data-color='seafoam']){color:${dd};background-color:${cd}}:host([data-color='dark-green']){color:${zc};background-color:${Pc}}:host([data-color='light-teal']){color:${Vc};background-color:${Hc}}:host([data-color='teal']){color:${bd};background-color:${pd}}:host([data-color='steel']){color:${ud};background-color:${hd}}:host([data-color='blue']){color:${vc};background-color:${mc}}:host([data-color='royal-blue']){color:${ld};background-color:${ad}}:host([data-color='cornflower']){color:${Cc};background-color:${wc}}:host([data-color='navy']){color:${Uc};background-color:${Xc}}:host([data-color='lavender']){color:${Dc};background-color:${Mc}}:host([data-color='purple']){color:${nd};background-color:${sd}}:host([data-color='grape']){color:${Fc};background-color:${Nc}}:host([data-color='lilac']){color:${jc};background-color:${Lc}}:host([data-color='pink']){color:${Zc};background-color:${Qc}}:host([data-color='magenta']){color:${qc};background-color:${Rc}}:host([data-color='plum']){color:${od};background-color:${td}}:host([data-color='beige']){color:${fc};background-color:${gc}}:host([data-color='mink']){color:${Gc};background-color:${Wc}}:host([data-color='platinum']){color:${ed};background-color:${Jc}}:host([data-color='anchor']){color:${bc};background-color:${pc}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${vi},${fi};transition-delay:${nt.fastEase},${nt.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${vi}),${Gn};transition-delay:${nt.fastEase}),${nt.nullEasing})}:host([active])::before{box-shadow:${vd};border-style:solid;border-color:${mn}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${$e});border-width:${$e}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${se});border-width:${se}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${xr});border-width:${xr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${bi}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${yr}}: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:${$d}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${vi},${fi};transition-delay:${nt.fastOutSlowInMin},${nt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${vi},${Gn};transition-delay:${nt.fastOutSlowInMin},${nt.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}}`,gh=b`<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 fh(){return b`<slot>${o=>o.name||o.initials?o.generateInitials():gh}</slot><slot name="badge"></slot>`}const mh=fh(),vh=uh.compose({name:`${p.prefix}-avatar`,template:mh,styles:bh});vh.define(p.registry);const $h={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},yh={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var xh=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,wi=(o,e,t,i)=>{for(var r=i>1?void 0:i?kh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&xh(e,t,r),r};class Kt extends ${constructor(){super(...arguments),this.appearance=$h.filled,this.color=yh.brand}}wi([a],Kt.prototype,"appearance",2),wi([a],Kt.prototype,"color",2),wi([a],Kt.prototype,"shape",2),wi([a],Kt.prototype,"size",2),Ke(Kt,Ue);const ta=u.partial`
|
|
46
46
|
${k("inline-flex")} :host {
|
|
47
47
|
position: relative;
|
|
48
48
|
box-sizing: border-box;
|
|
@@ -55,7 +55,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
55
55
|
min-width: 20px;
|
|
56
56
|
height: 20px;
|
|
57
57
|
padding-inline: calc(${ne} + ${W});
|
|
58
|
-
border-radius: ${
|
|
58
|
+
border-radius: ${me};
|
|
59
59
|
border-color: ${J};
|
|
60
60
|
background-color: ${bn};
|
|
61
61
|
color: ${Qe};
|
|
@@ -301,7 +301,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
301
301
|
`;const Sh=u.partial`
|
|
302
302
|
font-family: ${v};
|
|
303
303
|
font-size: ${ue};
|
|
304
|
-
line-height: ${
|
|
304
|
+
line-height: ${ve};
|
|
305
305
|
font-weight: ${A};
|
|
306
306
|
`,na=u.partial`
|
|
307
307
|
font-family: ${v};
|
|
@@ -336,12 +336,12 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
336
336
|
`;u.partial`
|
|
337
337
|
font-family: ${v};
|
|
338
338
|
font-size: ${ue};
|
|
339
|
-
line-height: ${
|
|
339
|
+
line-height: ${ve};
|
|
340
340
|
font-weight: ${D};
|
|
341
341
|
`,u.partial`
|
|
342
342
|
font-family: ${v};
|
|
343
343
|
font-size: ${ue};
|
|
344
|
-
line-height: ${
|
|
344
|
+
line-height: ${ve};
|
|
345
345
|
font-weight: ${hi};
|
|
346
346
|
`,u.partial`
|
|
347
347
|
font-family: ${v};
|
|
@@ -376,10 +376,10 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
376
376
|
${oa}
|
|
377
377
|
${ta}
|
|
378
378
|
`.withBehaviors(U(u`
|
|
379
|
-
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function aa(o={}){return b` ${Le(o)}<slot>${he(o.defaultContent)}</slot>${ot(o)} `}const zh=aa(),Th=Kt.compose({name:`${p.prefix}-badge`,template:zh,styles:Ph});Th.define(p.registry);var Bh=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,
|
|
379
|
+
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function aa(o={}){return b` ${Le(o)}<slot>${he(o.defaultContent)}</slot>${ot(o)} `}const zh=aa(),Th=Kt.compose({name:`${p.prefix}-badge`,template:zh,styles:Ph});Th.define(p.registry);var Bh=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,Se=(o,e,t,i)=>{for(var r=i>1?void 0:i?Oh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Bh(e,t,r),r};class pe extends ${constructor(){super(),this.disabled=!1,this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0}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!==yi.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===fo||e.key===Zo){this.click();return}return!0}press(){switch(this.type){case yi.reset:{this.resetForm();break}case yi.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==yi.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.formAttribute&&!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)}}}}pe.formAssociated=!0,Se([a({mode:"boolean"})],pe.prototype,"autofocus",2),Se([g],pe.prototype,"defaultSlottedContent",2),Se([a({mode:"boolean"})],pe.prototype,"disabled",2),Se([a({attribute:"disabled-focusable",mode:"boolean"})],pe.prototype,"disabledFocusable",2),Se([a({attribute:"formaction"})],pe.prototype,"formAction",2),Se([a({attribute:"form"})],pe.prototype,"formAttribute",2),Se([a({attribute:"formenctype"})],pe.prototype,"formEnctype",2),Se([a({attribute:"formmethod"})],pe.prototype,"formMethod",2),Se([a({attribute:"formnovalidate",mode:"boolean"})],pe.prototype,"formNoValidate",2),Se([a({attribute:"formtarget"})],pe.prototype,"formTarget",2),Se([a],pe.prototype,"name",2),Se([a],pe.prototype,"type",2),Se([a],pe.prototype,"value",2);var Ah=Object.defineProperty,_h=Object.getOwnPropertyDescriptor,Ci=(o,e,t,i)=>{for(var r=i>1?void 0:i?_h(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ah(e,t,r),r};class Ze extends pe{constructor(){super(...arguments),this.iconOnly=!1}}Ci([a],Ze.prototype,"appearance",2),Ci([a],Ze.prototype,"shape",2),Ci([a],Ze.prototype,"size",2),Ci([a({attribute:"icon-only",mode:"boolean"})],Ze.prototype,"iconOnly",2),Ke(Ze,Ue);function Ar(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${Le(o)}<span class="content" part="content"><slot ${L("defaultSlottedContent")}></slot></span>${ot(o)}</template>`}const Eh=Ar(),Nh=Ze.compose({name:`${p.prefix}-button`,template:Eh,styles:ki});Nh.define(p.registry);var Fh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,at=(o,e,t,i)=>{for(var r=i>1?void 0:i?Mh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Fh(e,t,r),r};class Pe extends ${constructor(){super(...arguments),this.initialValue="on",this._keydownPressed=!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),y(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(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 m.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity(),m.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.disabled=!!this.disabledAttribute,this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0;this._keydownPressed=!0}keyupHandler(e){if(!this._keydownPressed||e.key!==" ")return!0;this._keydownPressed=!1,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}}Pe.formAssociated=!0,at([a({mode:"boolean"})],Pe.prototype,"autofocus",2),at([g],Pe.prototype,"disabled",2),at([a({attribute:"disabled",mode:"boolean"})],Pe.prototype,"disabledAttribute",2),at([a({attribute:"form"})],Pe.prototype,"formAttribute",2),at([a({attribute:"checked",mode:"boolean"})],Pe.prototype,"initialChecked",2),at([a({attribute:"value",mode:"fromView"})],Pe.prototype,"initialValue",2),at([a],Pe.prototype,"name",2),at([a({mode:"boolean"})],Pe.prototype,"required",2);var Dh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,_r=(o,e,t,i)=>{for(var r=i>1?void 0:i?Hh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Dh(e,t,r),r};class Si extends Pe{indeterminateChanged(e,t){this.setAriaChecked(),y(this.elementInternals,"indeterminate",t)}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)}}_r([g],Si.prototype,"indeterminate",2),_r([a],Si.prototype,"shape",2),_r([a],Si.prototype,"size",2);const Vh=P("active"),Lh=P("bad-input"),x=P("checked"),jh=P("custom-error"),Rh=P("description"),ye=P("disabled");P("error");const qh=P("flip-block"),Wh=P("focus-visible");P("has-message");const It=P("indeterminate"),Yt=P("multiple"),Gh=P("open"),Xh=P("pattern-mismatch"),Uh=P("placeholder-shown"),F=P("pressed"),Kh=P("range-overflow"),Yh=P("range-underflow"),Qh=P("required"),Er=P("selected"),Zh=P("step-mismatch"),Ii=P("submenu"),Jh=P("too-long"),eu=P("too-short"),tu=P("type-mismatch"),ou=P("user-invalid"),iu=P("valid"),ru=P("value-missing"),su=u`
|
|
380
380
|
${k("inline-flex")}
|
|
381
381
|
|
|
382
|
-
:host{--size:16px;background-color:${I};border-radius:${Oe};border:${T} solid ${je};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${$t}}:host(:active){border-color:${yt}}:host(${x}:hover){background-color:${Vt};border-color:${Ql}}:host(${x}:active){background-color:${Lt};border-color:${xn}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${
|
|
382
|
+
:host{--size:16px;background-color:${I};border-radius:${Oe};border:${T} solid ${je};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${$t}}:host(:active){border-color:${yt}}:host(${x}:hover){background-color:${Vt};border-color:${Ql}}:host(${x}:active){background-color:${Lt};border-color:${xn}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${$e} solid ${J};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ce}}.indeterminate-indicator,.checked-indicator{color:${ft};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(${It}){border-color:${xt}}:host(${x}),:host(${It}) .indeterminate-indicator{background-color:${vt}}:host(${It}) .indeterminate-indicator{border-radius:${Oe};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${me}}:host([disabled]),:host([disabled]${x}){background-color:${it};border-color:${we}}:host([disabled]){cursor:unset}:host([disabled]${It}) .indeterminate-indicator{background-color:${we}}:host([disabled]${x}) .checked-indicator{color:${we}}`.withBehaviors(U(u`
|
|
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(${It}) .indeterminate-indicator{background-color:FieldText}:host(${x}:not([disabled]):hover),:host(${It}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${It}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${x}) .checked-indicator{color:GrayText}`)),nu=b.partial(`
|
|
384
384
|
<svg
|
|
385
385
|
fill="currentColor"
|
|
@@ -398,7 +398,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
398
398
|
|
|
399
399
|
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${B};line-height:${_}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ie};line-height:100%;font-size:${N};font-weight:${A}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Dt}}:host(:active) ::slotted([slot='description']){color:${Ht}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Qe}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active)))
|
|
400
400
|
::slotted([slot='description']){color:${Ie}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${ii}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${ri}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
|
|
401
|
-
::slotted([slot='description']){color:${S}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ee}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${ne}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Ae}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ue};line-height:${
|
|
401
|
+
::slotted([slot='description']){color:${S}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ee}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${ne}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Ae}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ue};line-height:${ve}}:host([size='large']) ::slotted([slot='description']){font-size:${B}}`.withBehaviors(U(u`
|
|
402
402
|
:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable]))
|
|
403
403
|
::slotted([slot='description']){color:HighlightText}`));function pu(o={}){return b`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:e.tabIndex??0}">${Le(o)}<span class="content" part="content"><slot ${L("defaultSlottedContent")}></slot><slot name="description"></slot></span>${ot(o)}</template>`}const bu=pu(),gu=hu.compose({name:`${p.prefix}-compound-button`,template:bu,styles:uu});gu.define(p.registry);var fu=Object.defineProperty,mu=Object.getOwnPropertyDescriptor,lt=(o,e,t,i)=>{for(var r=i>1?void 0:i?mu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&fu(e,t,r),r};class Ge extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}setCount(){const e=this.count??0;if((e!==0||this.showZero)&&!this.dot)return e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}lt([a],Ge.prototype,"appearance",2),lt([a],Ge.prototype,"color",2),lt([a],Ge.prototype,"shape",2),lt([a],Ge.prototype,"size",2),lt([a({converter:re})],Ge.prototype,"count",2),lt([a({attribute:"overflow-count",converter:re})],Ge.prototype,"overflowCount",2),lt([a({attribute:"show-zero",mode:"boolean"})],Ge.prototype,"showZero",2),lt([a({mode:"boolean"})],Ge.prototype,"dot",2),Ke(Ge,Ue);const vu=u`
|
|
404
404
|
:host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Oe}}${oa}
|
|
@@ -411,7 +411,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
411
411
|
@layer base{dialog{border:${T} solid ${J}}}`)),Iu=So.compose({name:`${p.prefix}-dialog`,template:Cu,styles:Su});Iu.define(p.registry);class Pu extends ${clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;la(t)&&t.hide()}return!0}}const zu=b`<template><div class="title" part="title"><slot name="title"></slot><slot name="title-action"></slot><slot name="close" @click="${(o,e)=>o.clickHandler(e.event)}"></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div></template>`,Tu=u`
|
|
412
412
|
${k("grid")}
|
|
413
413
|
|
|
414
|
-
:host{background:${I};box-sizing:border-box;gap:${H};padding:${kt} ${kr};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${I};color:${z};column-gap:8px;display:flex;font-family:${v};font-size:${Rt};font-weight:${D};inset-block-start:0;justify-content:space-between;line-height:${pi};margin-block-end:calc(${H} * -1);margin-block-start:calc(${kt} * -1);padding-block-end:${H};padding-block-start:${kt};position:sticky;z-index:1}.content{box-sizing:border-box;color:${z};font-family:${v};font-size:${B};font-weight:${A};line-height:${_};min-height:32px}.actions{box-sizing:border-box;background:${I};display:flex;flex-direction:column;gap:${H};inset-block-end:0;margin-block-end:calc(${kt} * -1);padding-block-end:${kt};padding-block-start:${gi};position:sticky;z-index:2}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${H} * -1);padding-block-start:${H}}}`,Bu=Pu.compose({name:`${p.prefix}-dialog-body`,template:zu,styles:Tu});Bu.define(p.registry);const Io={separator:"separator",presentation:"presentation"},ca=
|
|
414
|
+
:host{background:${I};box-sizing:border-box;gap:${H};padding:${kt} ${kr};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${I};color:${z};column-gap:8px;display:flex;font-family:${v};font-size:${Rt};font-weight:${D};inset-block-start:0;justify-content:space-between;line-height:${pi};margin-block-end:calc(${H} * -1);margin-block-start:calc(${kt} * -1);padding-block-end:${H};padding-block-start:${kt};position:sticky;z-index:1}.content{box-sizing:border-box;color:${z};font-family:${v};font-size:${B};font-weight:${A};line-height:${_};min-height:32px}.actions{box-sizing:border-box;background:${I};display:flex;flex-direction:column;gap:${H};inset-block-end:0;margin-block-end:calc(${kt} * -1);padding-block-end:${kt};padding-block-start:${gi};position:sticky;z-index:2}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${H} * -1);padding-block-start:${H}}}`,Bu=Pu.compose({name:`${p.prefix}-dialog-body`,template:zu,styles:Tu});Bu.define(p.registry);const Io={separator:"separator",presentation:"presentation"},ca=ge;var Ou=Object.defineProperty,Au=Object.getOwnPropertyDescriptor,da=(o,e,t,i)=>{for(var r=i>1?void 0:i?Au(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ou(e,t,r),r};class Nr extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??Io.separator,this.role!==Io.presentation&&(this.elementInternals.ariaOrientation=this.orientation??ca.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??Io.separator}`),t===Io.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==Io.presentation?t??null:null,St(this.elementInternals,e,t,ca)}}da([a],Nr.prototype,"role",2),da([a],Nr.prototype,"orientation",2);var _u=Object.defineProperty,Eu=Object.getOwnPropertyDescriptor,Fr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Eu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&_u(e,t,r),r};class zi extends Nr{}Fr([a({attribute:"align-content"})],zi.prototype,"alignContent",2),Fr([a],zi.prototype,"appearance",2),Fr([a({mode:"boolean"})],zi.prototype,"inset",2);function Nu(){return b`<slot></slot>`}const Fu=Nu(),Mu=u`
|
|
415
415
|
${k("flex")}
|
|
416
416
|
|
|
417
417
|
:host{contain:content}:host::after,:host::before{align-self:center;background:${wo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${T}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ie};font-family:${v};font-size:${N};font-weight:${A};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${T};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Re}}:host([appearance='strong']) ::slotted(*){color:${z}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${$n}}:host([appearance='brand']) ::slotted(*){color:${si}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Kl}}:host([appearance='subtle']) ::slotted(*){color:${Z}}`.withBehaviors(U(u`
|
|
@@ -423,14 +423,14 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
423
423
|
:host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${xd};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Ih}}.footer{display:flex;justify-content:flex-start;gap:${le}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function Ku(){return b`<div class="header" part="header"><slot name="title"></slot><slot name="close" @click="${(o,e)=>o.clickHandler(e.event)}"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const Yu=Ku(),Qu=Xu.compose({name:`${p.prefix}-drawer-body`,template:Yu,styles:Uu});Qu.define(p.registry);function ha(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function Ti(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function ua(o){return o.closest("[lang]")?.lang??"en"}let Zu=0;function Zt(o="id-"){const e=`${o}${Zu++}`;return document.getElementById(e)?Zt(o):e}const Ju={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Dr={combobox:"combobox",dropdown:"dropdown",select:"select"},ep=b`<svg class="chevron-down-20-regular" role="button" slot="indicator" viewBox="0 0 20 20" ${V("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>`,tp=b`<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}" ${V("control")} />`,op=b`<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" ${V("control")}>${o=>o.displayValue}</button>`;function ip(o={}){return b`<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" ${V("controlSlot")}></slot><slot name="indicator" ${V("indicatorSlot")}>${he(o.indicator)}</slot></div><slot ${V("listboxSlot")}></slot></template>`}const rp=ip({indicator:ep});var sp=Object.defineProperty,np=Object.getOwnPropertyDescriptor,G=(o,e,t,i)=>{for(var r=i>1?void 0:i?np(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&sp(e,t,r),r};const M=class no extends ${constructor(){super(),this.activeIndex=0,this.id=Zt("dropdown-"),this.required=!1,this.type=Dr.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,i=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,i+e.width>window.innerWidth||Jo(this)==="rtl"&&t-e.width>0?(this.listbox.style.right=`${t}px`,this.listbox.style.left="unset"):(this.listbox.style.left=`${i}px`,this.listbox.style.right="unset")})},this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation",this.addEventListener("connected",this.listboxConnectedHandler),Q.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((r,s)=>{r.active=s===i}),this.open&&this.enabledOptions[i]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Zt("input-"),this.controlSlot?.assign(t))}disabledChanged(e,t){Q.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return y(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(ua(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return y(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",t.tabIndex=-1,this.listboxSlot.assign(t);const i=m.getNotifier(this);i.subscribe(t);for(const r of["disabled","multiple"])i.notify(r);if(Q.enqueue(()=>{this.enabledOptions.filter(r=>r.defaultSelected).forEach((r,s)=>{r.selected=this.multiple||s===0}),this.setValidity()}),ei){const r=Zt("--dropdown-anchor-");this.style.setProperty("anchor-name",r),this.listbox.style.setProperty("position-anchor",r)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",y(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){Q.enqueue(()=>{this.options.forEach(i=>{i.name=t})})}openChanged(e,t){y(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,ei||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??[]}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Dr.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}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.name="validation-message-fallback",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return!this.disabled&&this.required&&this.listbox.selectedOptions.length===0?this._validationFallbackMessage:""}get validity(){return this.elementInternals.validity}get value(){return m.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)),m.track(this,"value"))}get willValidate(){return this.elementInternals.willValidate}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),!0}checkValidity(){return this.elementInternals.checkValidity()}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(Ti(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(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(ua(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}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}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===Dr.combobox){tp.render(this,this);return}op.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,!0),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 r=this.getEnabledIndexInBounds(i);return r===0&&this.freeformOption?.hidden&&(r=this.getEnabledIndexInBounds(i+t)),this.activeIndex=r,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!Ti(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control.value=this.displayValue,this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const r=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:r,...e},t??this.validationMessage,i??this.control)}}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}}disconnectedCallback(){no.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),super.disconnectedCallback()}listboxConnectedHandler(e){const t=e.target;ha(t)&&(this.listbox=t)}anchorPositionFallback(e){if(no.AnchorPositionFallbackObserver||(no.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:i,isIntersecting:r,target:s})=>{if(ha(s)){if(i.bottom>window.innerHeight){y(s.elementInternals,"flip-block",!0);return}i.top<0&&y(s.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,no.AnchorPositionFallbackObserver.observe(this.listbox),window.addEventListener("scroll",this.repositionListbox,{passive:!0,capture:!0,signal:this.debounceController.signal}),window.addEventListener("resize",this.repositionListbox,{passive:!0,signal:this.debounceController.signal}),this.repositionListbox();return}no.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};M.formAssociated=!0,G([cs],M.prototype,"activeDescendant",1),G([g],M.prototype,"activeIndex",2),G([a({attribute:"aria-labelledby",mode:"fromView"})],M.prototype,"ariaLabelledBy",2),G([g],M.prototype,"control",2),G([a({mode:"boolean"})],M.prototype,"disabled",2),G([cs],M.prototype,"displayValue",1),G([a({attribute:"id"})],M.prototype,"id",2),G([g],M.prototype,"indicator",2),G([g],M.prototype,"indicatorSlot",2),G([a({attribute:"value",mode:"fromView"})],M.prototype,"initialValue",2),G([g],M.prototype,"listbox",2),G([g],M.prototype,"listboxSlot",2),G([a({mode:"boolean"})],M.prototype,"multiple",2),G([a],M.prototype,"name",2),G([g],M.prototype,"open",2),G([a],M.prototype,"placeholder",2),G([a({mode:"boolean"})],M.prototype,"required",2),G([a],M.prototype,"type",2),G([a({attribute:"value"})],M.prototype,"valueAttribute",2);let ap=M;var lp=Object.defineProperty,cp=Object.getOwnPropertyDescriptor,pa=(o,e,t,i)=>{for(var r=i>1?void 0:i?cp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&lp(e,t,r),r};class Hr extends ap{constructor(){super(...arguments),this.appearance=Ju.outline}}pa([a],Hr.prototype,"appearance",2),pa([a],Hr.prototype,"size",2);const dp=u`
|
|
424
424
|
${k("inline-flex")}
|
|
425
425
|
|
|
426
|
-
:host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${z};cursor:pointer}:host(${Uh}){color:${hr}}.control{appearance:none;background-color:${I};border-radius:${C};border:none;box-shadow:inset 0 0 0 ${T} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${W};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${qe} ${ae};position:relative;text-align:start;width:100%;z-index:1;${sa}}:host([size='small']) .control{column-gap:${W};padding:${Wt} ${ee};${na}}:host([size='large']) .control{column-gap:${Ae};padding:${H} ${le};${Sh}}::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:${Z};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host([size='large']) :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:${T}}.control::after{background-color:${xt};height:${
|
|
426
|
+
:host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${z};cursor:pointer}:host(${Uh}){color:${hr}}.control{appearance:none;background-color:${I};border-radius:${C};border:none;box-shadow:inset 0 0 0 ${T} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${W};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${qe} ${ae};position:relative;text-align:start;width:100%;z-index:1;${sa}}:host([size='small']) .control{column-gap:${W};padding:${Wt} ${ee};${na}}:host([size='large']) .control{column-gap:${Ae};padding:${H} ${le};${Sh}}::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:${Z};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host([size='large']) :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:${T}}.control::after{background-color:${xt};height:${$e};scale:0 1;transition:scale ${Cr} ${Ct}}:host(:where(${Gh},:focus-within)) .control::after{scale:1 1;transition-duration:${mi};transition-timing-function:${wt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${je}}:host([appearance='transparent']) .control{--control-border-color:${br};background-color:${fe};border-radius:${ci}}:host([appearance='outline']) .control{--control-border-color:${Re}}:host([appearance='outline']) .control:hover{--control-border-color:${jt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${$t}}:host([appearance='outline']) .control:hover::after{background-color:${Vt}}:host([appearance='outline']) .control:active{--control-border-color:${ko}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${yt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Lt}}:host([appearance='filled-darker']) .control{background-color:${$o}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${J}}: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:${we};background-color:${it};color:${S}}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${_} + (${qe} * 2) + ${T})}:host([size='small']){--margin-offset:calc(${q} + (${Wt} * 2) + ${T})}:host([size='large']){--margin-offset:calc(${ve} + (${H} * 2) + ${T})}}`,hp=Hr.compose({name:`${p.prefix}-dropdown`,template:rp,styles:dp,shadowOptions:{slotAssignment:"manual"}});hp.define(p.registry);const up={above:"above",after:"after",before:"before"},ze={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 pp=Object.defineProperty,bp=Object.getOwnPropertyDescriptor,Bi=(o,e,t,i)=>{for(var r=i>1?void 0:i?bp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&pp(e,t,r),r};class Po extends ${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){y(this.elementInternals,"has-message",!!t.length)}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}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this.invalidHandler,{capture:!0})}disconnectedCallback(){this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&y(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return y(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||Mt("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&&(y(this.elementInternals,"disabled",!!this.input.disabled),y(this.elementInternals,"readonly",!!this.input.readOnly),y(this.elementInternals,"required",!!this.input.required),y(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[e,t]of Object.entries(ze))y(this.elementInternals,t,this.input.validity[e])}}Bi([g],Po.prototype,"labelSlot",2),Bi([g],Po.prototype,"messageSlot",2),Bi([g],Po.prototype,"slottedInputs",2),Bi([g],Po.prototype,"input",2);var gp=Object.defineProperty,fp=Object.getOwnPropertyDescriptor,mp=(o,e,t,i)=>{for(var r=i>1?void 0:i?fp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&gp(e,t,r),r};class ba extends Po{constructor(){super(...arguments),this.labelPosition=up.above}}mp([a({attribute:"label-position"})],ba.prototype,"labelPosition",2);const vp=u`
|
|
427
427
|
${k("inline-grid")}
|
|
428
428
|
|
|
429
|
-
:host{color:${z};align-items:center;gap:0 ${le};justify-items:start}:has([slot='message']){color:${z};row-gap:${H}}: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:${le}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${qt}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${kd}}:host(${Qh}) ::slotted([slot='label'])::after{content:'*' / '';color:${mr};margin-inline-start:${ne}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${Z};font-family:${v};font-size:${N};font-weight:${A};grid-area:message;line-height:${q};margin-block-start:${qt}}:host(${Wh}:focus-within){border-radius:${C};outline:${
|
|
430
|
-
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${T} solid ${wo}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${bi}}:host([shape='circular']) ::slotted(img){border-radius:${
|
|
429
|
+
:host{color:${z};align-items:center;gap:0 ${le};justify-items:start}:has([slot='message']){color:${z};row-gap:${H}}: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:${le}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${qt}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${kd}}:host(${Qh}) ::slotted([slot='label'])::after{content:'*' / '';color:${mr};margin-inline-start:${ne}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${Z};font-family:${v};font-size:${N};font-weight:${A};grid-area:message;line-height:${q};margin-block-start:${qt}}:host(${Wh}:focus-within){border-radius:${C};outline:${$e} solid ${Ce}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${B};font-weight:${A};grid-area:label;line-height:${_};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${N};line-height:${q}}:host([size='large']) ::slotted(label){font-size:${ue};line-height:${ve}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${D}}:host(${ye}){cursor:default}::slotted([flag]){display:none}:host(${Lh}) ::slotted([flag='${ze.badInput}']),:host(${jh}) ::slotted([flag='${ze.customError}']),:host(${Xh}) ::slotted([flag='${ze.patternMismatch}']),:host(${Kh}) ::slotted([flag='${ze.rangeOverflow}']),:host(${Yh}) ::slotted([flag='${ze.rangeUnderflow}']),:host(${Zh}) ::slotted([flag='${ze.stepMismatch}']),:host(${Jh}) ::slotted([flag='${ze.tooLong}']),:host(${eu}) ::slotted([flag='${ze.tooShort}']),:host(${tu}) ::slotted([flag='${ze.typeMismatch}']),:host(${ru}) ::slotted([flag='${ze.valueMissing}']),:host(${iu}) ::slotted([flag='${ze.valid}']){display:block}`,$p=b`<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)}" ${rr({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:gt()})}><slot name="label" part="label" ${L("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${L({property:"messageSlot",filter:gt("[flag]")})}></slot></template>`,yp=ba.compose({name:`${p.prefix}-field`,template:$p,styles:vp,shadowOptions:{delegatesFocus:!0}});yp.define(p.registry);var xp=Object.defineProperty,kp=Object.getOwnPropertyDescriptor,zo=(o,e,t,i)=>{for(var r=i>1?void 0:i?kp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&xp(e,t,r),r};class Jt extends ${}zo([a({mode:"boolean"})],Jt.prototype,"block",2),zo([a({mode:"boolean"})],Jt.prototype,"bordered",2),zo([a({mode:"boolean"})],Jt.prototype,"shadow",2),zo([a],Jt.prototype,"fit",2),zo([a],Jt.prototype,"shape",2);const wp=b`<slot></slot>`,Cp=u`
|
|
430
|
+
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${T} solid ${wo}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${bi}}:host([shape='circular']) ::slotted(img){border-radius:${me}}:host([shape='rounded']) ::slotted(img){border-radius:${C}}`,Sp=Jt.compose({name:`${p.prefix}-image`,template:wp,styles:Cp});Sp.define(p.registry);var Ip=Object.defineProperty,Pp=Object.getOwnPropertyDescriptor,Oi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Pp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ip(e,t,r),r};class To extends ${constructor(){super(...arguments),this.disabled=!1,this.required=!1}}Oi([a],To.prototype,"size",2),Oi([a],To.prototype,"weight",2),Oi([a({mode:"boolean"})],To.prototype,"disabled",2),Oi([a({mode:"boolean"})],To.prototype,"required",2);const zp=u`
|
|
431
431
|
${k("inline-flex")}
|
|
432
432
|
|
|
433
|
-
:host{color:${z};cursor:pointer;font-family:${v};font-size:${B};font-weight:${A};line-height:${_};user-select:none}.asterisk{color:${mr};margin-inline-start:${ne}}:host([size='small']){font-size:${N};line-height:${q}}:host([size='large']){font-size:${ue};line-height:${
|
|
433
|
+
:host{color:${z};cursor:pointer;font-family:${v};font-size:${B};font-weight:${A};line-height:${_};user-select:none}.asterisk{color:${mr};margin-inline-start:${ne}}:host([size='small']){font-size:${N};line-height:${q}}:host([size='large']){font-size:${ue};line-height:${ve}}:host(:is([size='large'],[weight='semibold'])){font-weight:${D}}:host([disabled]),:host([disabled]) .asterisk{color:${S}}`;function Tp(){return b`<slot></slot><span part="asterisk" class="asterisk" aria-hidden="true" ?hidden="${o=>!o.required}">*</span>`}const Bp=Tp(),Op=To.compose({name:`${p.prefix}-label`,template:Bp,styles:zp});Op.define(p.registry);var Ap=Object.defineProperty,_p=Object.getOwnPropertyDescriptor,ga=(o,e,t,i)=>{for(var r=i>1?void 0:i?_p(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ap(e,t,r),r};class Vr extends We{constructor(){super(...arguments),this.inline=!1}}ga([a],Vr.prototype,"appearance",2),ga([a({mode:"boolean"})],Vr.prototype,"inline",2);const Ep=u`
|
|
434
434
|
${k("inline")}
|
|
435
435
|
|
|
436
436
|
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${Al};cursor:pointer;font-family:${v};font-size:${B};font-weight:${A};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${T};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${_l}}:host(:active){color:${El}}:host([appearance='subtle']:hover){color:${Fl}}:host([appearance='subtle']:active){color:${Ml}}}:host([appearance='subtle']){color:${Nl}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(U(u`
|
|
@@ -444,8 +444,8 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
444
444
|
`)}),Gp=qp.compose({name:`${p.prefix}-menu-button`,template:Wp,styles:ki});Gp.define(p.registry);const te={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};te.menuitem+"",te.menuitemcheckbox+"",te.menuitemradio+"";var Xp=Object.defineProperty,Up=Object.getOwnPropertyDescriptor,to=(o,e,t,i)=>{for(var r=i>1?void 0:i?Up(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Xp(e,t,r),r};class _e extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=te.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case fo:case Zo:return this.invoke(),!1;case po:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case uo: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 te.menuitemcheckbox:this.checked=!this.checked;break;case te.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case te.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,y(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??te.menuitem}checkedChanged(e,t){const i=this.role!==te.menuitem;this.elementInternals.ariaChecked=i?`${!!t}`:null,y(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",y(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,y(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??te.menuitem,this.elementInternals.ariaChecked=this.role!==te.menuitem?`${!!this.checked}`:null}}to([a({mode:"boolean"})],_e.prototype,"disabled",2),to([a],_e.prototype,"role",2),to([a({mode:"boolean"})],_e.prototype,"checked",2),to([a({mode:"boolean"})],_e.prototype,"hidden",2),to([g],_e.prototype,"slottedSubmenu",2),to([g],_e.prototype,"submenu",2),Ke(_e,Ue);const Kp=u`
|
|
445
445
|
${k("grid")}
|
|
446
446
|
|
|
447
|
-
:host{--indent:0;align-items:center;background:${I};border-radius:${C};color:${Ie};contain:layout;cursor:pointer;flex-shrink:0;font:${A} ${B} / ${_} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${ni};color:${Dt}}:host(:active){background-color:${cn};color:${Ht}}:host(:active) ::slotted([slot='start']){color:${Dl}}:host(${
|
|
448
|
-
:host(${
|
|
447
|
+
:host{--indent:0;align-items:center;background:${I};border-radius:${C};color:${Ie};contain:layout;cursor:pointer;flex-shrink:0;font:${A} ${B} / ${_} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${ni};color:${Dt}}:host(:active){background-color:${cn};color:${Ht}}:host(:active) ::slotted([slot='start']){color:${Dl}}:host(${ye}){background-color:${it};color:${S}}:host(${ye}) ::slotted([slot='start']),:host(${ye}) ::slotted([slot='end']){color:${S}}:host(:focus-visible){border-radius:${C};outline:2px solid ${Ce}}.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(${Ii})) .submenu-glyph,:host(:not(${Ii})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${Z};font:${A} ${N} / ${q} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${Ii}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${Ii}){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,block-start,block-end;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(U(u`
|
|
448
|
+
:host(${ye}),:host(${ye}) ::slotted([slot='start']),:host(${ye}) ::slotted([slot='end']){color:GrayText}`)),Yp=b.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>'),Qp=b.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 Zp(o={}){return b`<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">${he(o.indicator)}</slot>${Le(o)}<div part="content" class="content"><slot></slot></div>${ot(o)}<slot name="submenu-glyph">${he(o.submenuGlyph)}</slot><slot name="submenu" ${L({property:"slottedSubmenu"})}></slot></template>`}const Jp=Zp({indicator:Yp,submenuGlyph:Qp}),eb=_e.compose({name:`${p.prefix}-menu-item`,template:Jp,styles:Kp});eb.define(p.registry);var tb=Object.defineProperty,ob=Object.getOwnPropertyDescriptor,ib=(o,e,t,i)=>{for(var r=i>1?void 0:i?ob(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&tb(e,t,r),r};const Lr=class ts extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&nr(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 s=i-1;s>=0;--s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===te.menuitemradio&&(n.checked=!1),c==="separator")break}const r=this.menuItems.length-1;for(let s=i+1;s<=r;++s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===te.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.isMenuItemElement=e=>e instanceof _e||nr(e)&&e.getAttribute("role")in ts.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(),Q.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 ho:this.setFocus(this.focusIndex+1,1);return;case bo:this.setFocus(this.focusIndex-1,-1);return;case go:this.setFocus(this.menuItems.length-1,-1);return;case mo:this.setFocus(0,1);return;default:return!0}}removeItemListeners(e=this.items){e.forEach(t=>{t.removeEventListener("focus",this.handleItemFocus),m.getNotifier(t).unsubscribe(this,"hidden")})}static elementIndent(e){const t=e.getAttribute("role"),i=e.querySelector("[slot=start]");return t&&t!==te.menuitem?i?2:1:i?1:0}setItems(){const e=Array.from(this.children);this.removeItemListeners(e),e.forEach(n=>m.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,c)=>{n.setAttribute("tabindex",c===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const r=this.menuItems?.filter(this.isMenuItemElement),s=r?.reduce((n,c)=>{const h=ts.elementIndent(c);return Math.max(n,h)},0);r?.forEach(n=>{n instanceof _e&&n.setAttribute("data-indent",`${s}`)})}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}}};Lr.focusableElementRoles=te,ib([g],Lr.prototype,"items",2);let rb=Lr;const sb=u`
|
|
449
449
|
${k("flex")}
|
|
450
450
|
|
|
451
451
|
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${I};border:1px solid ${J};border-radius:${C};box-shadow:${yr};padding:4px;row-gap:2px}`;function nb(){return b`<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 ${L("items")}></slot></template>`}const ab=nb(),lb=rb.compose({name:`${p.prefix}-menu-list`,template:ab,styles:sb});lb.define(p.registry);var cb=Object.defineProperty,db=Object.getOwnPropertyDescriptor,dt=(o,e,t,i)=>{for(var r=i>1?void 0:i?db(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&cb(e,t,r),r};class Je extends ${constructor(){super(...arguments),this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof _e&&(e.target.getAttribute("role")===te.menuitemcheckbox||e.target.getAttribute("role")===te.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._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case Zo:case fo: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(),Q.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(){Q.enqueue(()=>{this._menuList.focus()})}focusTrigger(){Q.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 fl:e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case ml: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}}}dt([a({attribute:"open-on-hover",mode:"boolean"})],Je.prototype,"openOnHover",2),dt([a({attribute:"open-on-context",mode:"boolean"})],Je.prototype,"openOnContext",2),dt([a({attribute:"close-on-scroll",mode:"boolean"})],Je.prototype,"closeOnScroll",2),dt([a({attribute:"persist-on-item-click",mode:"boolean"})],Je.prototype,"persistOnItemClick",2),dt([a({mode:"boolean"})],Je.prototype,"split",2),dt([g],Je.prototype,"slottedMenuList",2),dt([g],Je.prototype,"slottedTriggers",2),dt([g],Je.prototype,"primaryAction",2);const hb=u`
|
|
@@ -453,11 +453,11 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
453
453
|
|
|
454
454
|
::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:${T} solid ${Re};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:${T} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function ub(){return b`<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" ${V("primaryAction")}></slot><slot name="trigger" ${L({property:"slottedTriggers",filter:gt()})}></slot><slot ${L({property:"slottedMenuList",filter:gt()})}></slot></template>`}const pb=ub(),bb=Je.compose({name:`${p.prefix}-menu`,template:pb,styles:hb});bb.define(p.registry);var gb=Object.defineProperty,fb=Object.getOwnPropertyDescriptor,jr=(o,e,t,i)=>{for(var r=i>1?void 0:i?fb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&gb(e,t,r),r};class Ai extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}jr([a],Ai.prototype,"shape",2),jr([a],Ai.prototype,"layout",2),jr([a],Ai.prototype,"intent",2);const mb=u`
|
|
455
455
|
:host{display:grid;box-sizing:border-box;font-family:${v};font-size:${N};line-height:${q};width:100%;background:${$o};border:1px solid ${Re};padding-inline:${le};border-radius:${C};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${In};border-color:${oc}}:host([intent='warning']){background-color:${zn};border-color:${Bn}}:host([intent='error']){background-color:${kn};border-color:${Cn}}:host([layout='multiline']){grid-template-areas:'icon body dismiss'
|
|
456
|
-
'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${Gt};padding-inline:${le}}.content{grid-area:body;max-width:520px;padding-block:${Gt};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${Z};margin-inline-end:${Ae}}:host([layout='multiline']) ::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:${Ae};gap:${Ae}}:host([layout='multiline']) .actions{margin-block-start:${Gt};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${H}}::slotted(*){font-size:inherit}`;function vb(){return b`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const $b=vb(),yb=Ai.compose({name:`${p.prefix}-message-bar`,template:$b,styles:mb,shadowOptions:{mode:p.shadowRootMode}});yb.define(p.registry);var xb=Object.defineProperty,kb=Object.getOwnPropertyDescriptor,
|
|
456
|
+
'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${Gt};padding-inline:${le}}.content{grid-area:body;max-width:520px;padding-block:${Gt};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${Z};margin-inline-end:${Ae}}:host([layout='multiline']) ::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:${Ae};gap:${Ae}}:host([layout='multiline']) .actions{margin-block-start:${Gt};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${H}}::slotted(*){font-size:inherit}`;function vb(){return b`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const $b=vb(),yb=Ai.compose({name:`${p.prefix}-message-bar`,template:$b,styles:mb,shadowOptions:{mode:p.shadowRootMode}});yb.define(p.registry);var xb=Object.defineProperty,kb=Object.getOwnPropertyDescriptor,xe=(o,e,t,i)=>{for(var r=i>1?void 0:i?kb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&xb(e,t,r),r};class ce extends ${constructor(){super(),this.active=!1,this.id=Zt("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){y(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){y(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){y(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 m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,Q.enqueue(()=>{this.$fastController.isConnected&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",y(this.elementInternals,"selected",e))}),m.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 m.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}),m.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}}ce.formAssociated=!0,xe([g],ce.prototype,"active",2),xe([a({attribute:"current-selected",mode:"boolean"})],ce.prototype,"currentSelected",2),xe([a({attribute:"selected",mode:"boolean"})],ce.prototype,"defaultSelected",2),xe([g],ce.prototype,"descriptionSlot",2),xe([g],ce.prototype,"disabled",2),xe([a({attribute:"disabled",mode:"boolean"})],ce.prototype,"disabledAttribute",2),xe([a({attribute:"form"})],ce.prototype,"formAttribute",2),xe([a({mode:"boolean"})],ce.prototype,"freeform",2),xe([a({attribute:"id"})],ce.prototype,"id",2),xe([a({attribute:"value",mode:"fromView"})],ce.prototype,"initialValue",2),xe([g],ce.prototype,"multiple",2),xe([a],ce.prototype,"name",2),xe([g],ce.prototype,"start",2),xe([a({attribute:"text",mode:"fromView"})],ce.prototype,"textAttribute",2);const wb=u`
|
|
457
457
|
${k("inline-grid")}
|
|
458
458
|
|
|
459
459
|
:host{-webkit-tap-highlight-color:transparent;${sa}
|
|
460
|
-
align-items:center;background-color:${I};border-radius:${C};border:${
|
|
460
|
+
align-items:center;background-color:${I};border-radius:${C};border:${$e} solid ${J};box-sizing:border-box;color:${Ie};column-gap:${ne};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ee};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${ni};color:${Dt}}:host(:active){background-color:${ur};color:${Ht}}:host(:disabled){background-color:${I};color:${S};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(${Er}) :is(slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator'])){visibility:visible}:host(${Yt}) .checkmark-16-filled,:host(:not(${Yt})) .checkmark-12-regular{display:none}:host(${Yt}) .checkmark-12-regular{background-color:${I};border-radius:${Oe};border:${T} solid ${je};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Yt}${Er}) .checkmark-12-regular{background-color:${vt};border-color:${xt};fill:${ft}}:host(:disabled${Yt}) .checkmark-12-regular{border-color:${we}}:host(:disabled${Yt}${Er}) .checkmark-12-regular{background-color:${it}}:host(${Vh}){border:${$e} solid ${Ce}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ee}}}:host(${Rh}){column-gap:${ee};grid-template-areas:'indicator start content'
|
|
461
461
|
'indicator start description'}::slotted([slot='description']){color:${Z};grid-area:description;${na}}`,Cb=b.partial(`
|
|
462
462
|
<svg aria-hidden="true" class="checkmark-16-filled" viewBox="0 0 16 16">
|
|
463
463
|
<path
|
|
@@ -473,38 +473,38 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
473
473
|
${k("block")}
|
|
474
474
|
|
|
475
475
|
:host{width:100%;height:2px;overflow-x:hidden;background-color:${yo};border-radius:${C};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min)) / (var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${ci}}.indicator{background-color:${vt};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
|
|
476
|
-
to right,${yo} 0%,${
|
|
476
|
+
to right,${yo} 0%,${fe} 50%,${yo} 100%
|
|
477
477
|
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${wn}}:host([validation-state='warning']) .indicator{background-color:${Tn}}:host([validation-state='success']) .indicator{background-color:${Pn}}@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(U(u`
|
|
478
|
-
:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}`));function Eb(){return b`<div class="indicator" part="indicator" ${V("indicator")}></div>`}const Nb=Eb(),Fb=Rr.compose({name:`${p.prefix}-progress-bar`,template:Nb,styles:_b});Fb.define(p.registry);class ma extends Pe{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}function va(o){const e=o.getRootNode();return e instanceof ShadowRoot?e.activeElement:document.activeElement}const $a=
|
|
478
|
+
:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}`));function Eb(){return b`<div class="indicator" part="indicator" ${V("indicator")}></div>`}const Nb=Eb(),Fb=Rr.compose({name:`${p.prefix}-progress-bar`,template:Nb,styles:_b});Fb.define(p.registry);class ma extends Pe{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}function va(o){const e=o.getRootNode();return e instanceof ShadowRoot?e.activeElement:document.activeElement}const $a=ge;var Mb=Object.defineProperty,Db=Object.getOwnPropertyDescriptor,zt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Db(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Mb(e,t,r),r};class et extends ${constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??$a.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??$a.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 r=gl(this.enabledRadios,n=>n.initialChecked);t.forEach((n,c)=>{n.ariaPosInSet=`${c+1}`,n.ariaSetSize=`${i}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=c===r,n.name=this.name??n.name,n.disabled=!!this.disabled||!!n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&r>=0)&&(this.checkedIndex=r);const s=t.map(n=>n.id).join(" ").trim();s&&this.setAttribute("aria-owns",s),Q.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 m.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()),m.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((r,s)=>{const n=s===e;r.checked=n,n&&(i=s,t&&r.$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=Jo(this)==="rtl",i=this.enabledRadios.findIndex(n=>n===va(this))??this.checkedIndex;let r=0;switch(e.key){case"ArrowLeft":{r=t?1:-1;break}case"ArrowUp":{r=-1;break}case"ArrowRight":{r=t?-1:1;break}case"ArrowDown":{r=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!r)return!0;const s=i+r;this.checkRadio(this.getEnabledIndexInBounds(s),!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(va(this));t!==-1&&(e=t),e=this.getEnabledIndexInBounds(e),this.enabledRadios.forEach((i,r)=>{i.tabIndex=r===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){Q.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(t=>t instanceof ma)})}}et.formAssociated=!0,zt([g],et.prototype,"checkedIndex",2),zt([a({attribute:"disabled",mode:"boolean"})],et.prototype,"disabled",2),zt([a({attribute:"value",mode:"fromView"})],et.prototype,"initialValue",2),zt([a],et.prototype,"name",2),zt([a],et.prototype,"orientation",2),zt([g],et.prototype,"radios",2),zt([a({mode:"boolean"})],et.prototype,"required",2);const Hb=u`
|
|
479
479
|
${k("flex")}
|
|
480
480
|
|
|
481
|
-
:host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${gi}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${Z}}::slotted(:hover){color:${Ie}}::slotted(:active){color:${z}}::slotted(${
|
|
481
|
+
:host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${gi}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${Z}}::slotted(:hover){color:${Ie}}::slotted(:active){color:${z}}::slotted(${ye}){color:${S}}::slotted(${x}){color:${z}}:host([slot='input']){margin:${H} ${Ae}}`;function Vb(){return b`<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 Lb=Vb(),jb=et.compose({name:`${p.prefix}-radio-group`,template:Lb,styles:Hb});jb.define(p.registry);const Rb=u`
|
|
482
482
|
${k("inline-flex")}
|
|
483
483
|
|
|
484
|
-
:host{--size:16px;aspect-ratio:1;background-color:${I};border:${T} solid ${je};border-radius:${
|
|
485
|
-
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${
|
|
484
|
+
:host{--size:16px;aspect-ratio:1;background-color:${I};border:${T} solid ${je};border-radius:${me};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${me};color:${ft};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:${$e} solid ${J};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ce}}:host(:hover){border-color:${$t}}:host(${x}){border-color:${xt}}:host(${x}) .checked-indicator{background-color:${vt}}:host(${x}:hover) .checked-indicator{background-color:${Vt}}:host(:active){border-color:${yt}}:host(${x}:active) .checked-indicator{background-color:${Lt}}:host(:focus-visible){outline:none}:host(${ye}){background-color:${it};border-color:${we}}:host(${x}${ye}) .checked-indicator{background-color:${we}}`.withBehaviors(U(u`
|
|
485
|
+
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${ye}):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(${ye}):hover) .checked-indicator{background-color:Highlight}:host(${ye}){border-color:GrayText;color:GrayText}:host(${ye}${x}) .checked-indicator{background-color:GrayText}`)),qb=b.partial(`
|
|
486
486
|
<span part="checked-indicator" class="checked-indicator" role="presentation"></span>
|
|
487
487
|
`);function Wb(o={}){return b`<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">${he(o.checkedIndicator)}</slot></template>`}const Gb=Wb({checkedIndicator:qb}),Xb=ma.compose({name:`${p.prefix}-radio`,template:Gb,styles:Rb});Xb.define(p.registry);var Ub=Object.defineProperty,Kb=Object.getOwnPropertyDescriptor,io=(o,e,t,i)=>{for(var r=i>1?void 0:i?Kb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ub(e,t,r),r};class Tt extends ${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 r=0;r<this.getMaxIcons();r++){const s=(r+1)/2;e+=`<svg aria-hidden="true" viewBox="${this.iconViewBox??"0 0 20 20"}" ${s===i?"selected":""}>${t??'<use href="#star"></use>'}</svg>`}return e}}io([a({converter:re})],Tt.prototype,"count",2),io([a({attribute:"icon-view-box"})],Tt.prototype,"iconViewBox",2),io([a({converter:re})],Tt.prototype,"max",2),io([a({converter:re})],Tt.prototype,"value",2),io([g],Tt.prototype,"slottedIcon",2),io([g],Tt.prototype,"customIcon",2);var Yb=Object.defineProperty,Qb=Object.getOwnPropertyDescriptor,qr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Qb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Yb(e,t,r),r};class _i extends Tt{constructor(){super(...arguments),this.compact=!1}getSelectedValue(){return Math.round((this.compact?1:this.value??0)*2)/2}getMaxIcons(){return(this.compact?1:this.max??5)*2}}qr([a],_i.prototype,"color",2),qr([a],_i.prototype,"size",2),qr([a({mode:"boolean"})],_i.prototype,"compact",2);const Zb=u`
|
|
488
488
|
${k("inline-flex")}
|
|
489
489
|
|
|
490
490
|
:host{--icon-size:16px;--icon-color-filled:${hc};--icon-color-empty:${An};align-items:center;color:${z};font-family:${v};font-size:${N};line-height:${q};contain:layout style;user-select:none}:host([size='small']){--icon-size:12px}:host([size='large']){--icon-size:20px;font-size:${B};line-height:${_}}::slotted([slot='icon']){display:none}svg{width:var(--icon-size);height:var(--icon-size);fill:var(--icon-color-filled);margin-inline-end:${W}}svg:nth-child(odd){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host([color='neutral']) svg{--icon-color-filled:${z}}:host([color='brand']) svg{--icon-color-filled:${si}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:var(--icon-color-empty)}:host([color='neutral']:is([value^='-'],[value='0'],:not([value]))) svg,:host([color='neutral']) svg[selected] ~ svg{--icon-color-empty:${yo}}:host([color='brand']:is([value^='-'],[value='0'],:not([value]))) svg,:host([color='brand']) svg[selected] ~ svg{--icon-color-empty:${vn}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${ne};font-weight:${D}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${W}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${ee}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${ne}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${W}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${ee}}`.withBehaviors(U(u`
|
|
491
|
-
: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}`)),Jb=b`<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 eg(){return b` ${o=>b`${he(o.generateIcons())}`}<slot name="icon" ${L({property:"slottedIcon",filter:gt("svg")})}>${Jb}</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 tg=eg(),og=_i.compose({name:`${p.prefix}-rating-display`,template:tg,styles:Zb});og.define(p.registry);const ig=
|
|
492
|
-
: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 m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),i=ar(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),m.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??
|
|
491
|
+
: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}`)),Jb=b`<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 eg(){return b` ${o=>b`${he(o.generateIcons())}`}<slot name="icon" ${L({property:"slottedIcon",filter:gt("svg")})}>${Jb}</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 tg=eg(),og=_i.compose({name:`${p.prefix}-rating-display`,template:tg,styles:Zb});og.define(p.registry);const ig=ge,rg={singleValue:"single-value"};function ya(o,e,t,i){let r=ar(0,1,(o-e)/(t-e));return i===Ve.rtl&&(r=1-r),r}var sg=Object.defineProperty,ng=Object.getOwnPropertyDescriptor,oe=(o,e,t,i)=>{for(var r=i>1?void 0:i?ng(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&sg(e,t,r),r};class X extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=Ve.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=rg.singleValue,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.handleThumbPointerDown=e=>{const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.disabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,i=this.thumb.getBoundingClientRect().width,r=this.orientation===ge.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(r)}`},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;t("pointerup",this.handleWindowPointerUp),i("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const r=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const s=this.orientation===ge.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(s)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??ig.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}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=u`
|
|
492
|
+
: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 m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),i=ar(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),m.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??ge.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),this.direction=Jo(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),m.getNotifier(this).subscribe(this,"max"),m.getNotifier(this).subscribe(this,"min"),m.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"max"),m.getNotifier(this).unsubscribe(this,"min"),m.getNotifier(this).unsubscribe(this,"step")}increment(){const e=this.direction!==Ve.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!==Ve.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}handleKeydown(e){if(this.disabled)return!0;switch(e.key){case mo:e.preventDefault(),this.value=this.direction!==Ve.rtl&&this.orientation!==ge.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case go:e.preventDefault(),this.value=this.direction!==Ve.rtl&&this.orientation!==ge.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case po:case bo:e.shiftKey||(e.preventDefault(),this.increment());break;case uo:case ho:e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=ya(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===ge.vertical?void 0: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=ya(e,this.orientation===ge.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===ge.vertical?this.trackHeight:this.trackWidth,this.orientation===ge.vertical?void 0: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),r=t-i*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=r>=Number(this.stepAsNumber)/2?t-r+Number(this.stepAsNumber):t-r,t+this.minAsNumber}setDisabledSideEffect(e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0)}}X.formAssociated=!0,oe([a],X.prototype,"size",2),oe([a({attribute:"value",mode:"fromView"})],X.prototype,"initialValue",2),oe([g],X.prototype,"direction",2),oe([g],X.prototype,"isDragging",2),oe([g],X.prototype,"position",2),oe([g],X.prototype,"trackWidth",2),oe([g],X.prototype,"trackMinWidth",2),oe([g],X.prototype,"trackHeight",2),oe([g],X.prototype,"trackLeft",2),oe([g],X.prototype,"trackMinHeight",2),oe([g],X.prototype,"valueTextFormatter",2),oe([a({mode:"boolean"})],X.prototype,"disabled",2),oe([a({converter:sr})],X.prototype,"min",2),oe([a({converter:sr})],X.prototype,"max",2),oe([a({converter:sr})],X.prototype,"step",2),oe([a],X.prototype,"orientation",2),oe([a],X.prototype,"mode",2);const ag=u`
|
|
493
493
|
${k("inline-grid")}
|
|
494
494
|
|
|
495
|
-
:host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${vt};--track-color:${je};--slider-direction:90deg;--border-radius:${C};--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:${Vt}}:host(:active){--rail-color:${Lt}}:host(:disabled){--rail-color:${S};--track-color:${it}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Oe}}:host([orientation='vertical']){--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 ${
|
|
495
|
+
:host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${vt};--track-color:${je};--slider-direction:90deg;--border-radius:${C};--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:${Vt}}:host(:active){--rail-color:${Lt}}:host(:disabled){--rail-color:${S};--track-color:${it}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Oe}}:host([orientation='vertical']){--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 ${Ce};outline:1px solid ${gr}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
|
|
496
496
|
var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100%
|
|
497
497
|
);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([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.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([orientation='vertical']) .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(
|
|
498
498
|
var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${I} calc(var(--step-rate) - 1px),${I} var(--step-rate)
|
|
499
|
-
)}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .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:${
|
|
499
|
+
)}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .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:${me};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${I} inset;border:calc(var(--thumb-size) * 0.05) solid ${Re};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}`.withBehaviors(U(u`
|
|
500
500
|
.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 lg(o={}){return b`<template tabindex="${e=>e.disabled?null:0}" @pointerdown="${(e,t)=>e.handlePointerDown(t.event)}" @keydown="${(e,t)=>e.handleKeydown(t.event)}"><div ${V("track")} part="track-container" class="track" style="${e=>e.position}"></div><div ${V("thumb")} part="thumb-container" class="thumb-container" style="${e=>e.position}" @pointerdown="${(e,t)=>e.handleThumbPointerDown(t.event)}"><slot name="thumb">${he(o.thumb)}</slot></div></template>`}const cg=lg({thumb:'<div class="thumb"></div>'}),dg=X.compose({name:`${p.prefix}-slider`,template:cg,styles:ag});dg.define(p.registry);class hg extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var ug=Object.defineProperty,pg=Object.getOwnPropertyDescriptor,xa=(o,e,t,i)=>{for(var r=i>1?void 0:i?pg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ug(e,t,r),r};class Wr extends hg{}xa([a],Wr.prototype,"size",2),xa([a],Wr.prototype,"appearance",2);const bg=u`
|
|
501
501
|
${k("inline-flex")}
|
|
502
502
|
|
|
503
|
-
:host{--duration:1.5s;--indicatorSize:${se};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${
|
|
504
|
-
.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}`)),gg=b`<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>`,fg=Wr.compose({name:`${p.prefix}-spinner`,template:gg,styles:bg});fg.define(p.registry);class mg extends Pe{constructor(){super(),this.elementInternals.role="switch"}}function vg(o={}){return b`<template
|
|
503
|
+
:host{--duration:1.5s;--indicatorSize:${se};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${$e};--size:20px}:host([size='extra-small']){--indicatorSize:${$e};--size:24px}:host([size='small']){--indicatorSize:${$e};--size:28px}:host([size='large']){--indicatorSize:${se};--size:36px}:host([size='extra-large']){--indicatorSize:${se};--size:40px}:host([size='huge']){--indicatorSize:${xr};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${$i}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${yn};border-radius:50%}:host([appearance='inverted']) .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:${$n};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${Yl}}.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(U(u`
|
|
504
|
+
.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}`)),gg=b`<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>`,fg=Wr.compose({name:`${p.prefix}-spinner`,template:gg,styles:bg});fg.define(p.registry);class mg extends Pe{constructor(){super(),this.elementInternals.role="switch"}}function vg(o={}){return b`<template @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">${he(o.switch)}</slot></template>`}const $g=vg({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),yg=u`
|
|
505
505
|
${k("inline-flex")}
|
|
506
506
|
|
|
507
|
-
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${W};width:40px;height:20px;background-color:${
|
|
507
|
+
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${W};width:40px;height:20px;background-color:${fe};border:1px solid ${je};border-radius:${me}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${$t}}:host(:active){border-color:${yt}}:host(:disabled),:host([readonly]){border:1px solid ${we};background-color:none;pointer:default}:host(${x}){background:${vt};border-color:${vt}}:host(${x}:hover){background:${Vt};border-color:${Vt}}:host(${x}:active){background:${Lt};border-color:${Lt}}:host(${x}:disabled){background:${it};border-color:${we}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${Z};transition-duration:${mi};transition-timing-function:${$i};transition-property:margin-inline-start}:host(${x}) .checked-indicator{background-color:${ft};margin-inline-start:calc(100% - 14px)}:host(${x}:hover) .checked-indicator{background:${Hl}}:host(${x}:active) .checked-indicator{background:${Vl}}:host(:hover) .checked-indicator{background-color:${Tl}}:host(:active) .checked-indicator{background-color:${Bl}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${S}}:host(${x}:disabled) .checked-indicator{background:${S}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${J};outline:${$e} solid ${J};box-shadow:${bi},0 0 0 2px ${Ce}}`.withBehaviors(U(u`
|
|
508
508
|
: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}`)),xg=mg.compose({name:`${p.prefix}-switch`,template:$g,styles:yg});xg.define(p.registry);class kg extends ${}function wg(){return b`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const Cg=wg(),Sg=u`
|
|
509
509
|
${k("block")}
|
|
510
510
|
|
|
@@ -512,26 +512,26 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
512
512
|
:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Tg([a({mode:"boolean"})],Gr.prototype,"disabled",2),Ke(Gr,Ue);function Bg(o={}){return b`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">${Le(o)}<span class="tab-content"><slot></slot></span>${ot(o)}</template>`}const Og=Bg({}),Ag=u`
|
|
513
513
|
${k("inline-flex")}
|
|
514
514
|
|
|
515
|
-
:host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${_};font-family:${v};font-size:${B};color:${Ie};fill:currentcolor;grid-row:1;padding:${le} ${ae};border-radius:${C};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${z};font-weight:${D}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${_};font-weight:${D}}:host([aria-selected='true'])::after{background-color:${xt};border-radius:${
|
|
516
|
-
:host([aria-selected='true'])::after{background-color:Highlight}`)),_g=Gr.compose({name:`${p.prefix}-tab`,template:Og,styles:Ag});_g.define(p.registry);const Eg={subtle:"subtle",transparent:"transparent"},Ei=
|
|
515
|
+
:host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${_};font-family:${v};font-size:${B};color:${Ie};fill:currentcolor;grid-row:1;padding:${le} ${ae};border-radius:${C};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${z};font-weight:${D}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${_};font-weight:${D}}:host([aria-selected='true'])::after{background-color:${xt};border-radius:${me};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${jt};border-radius:${me};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${S}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${S};color:${S}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Oe};box-shadow:0 0 0 3px ${Ce};outline:1px solid ${gr}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}`.withBehaviors(U(u`
|
|
516
|
+
:host([aria-selected='true'])::after{background-color:Highlight}`)),_g=Gr.compose({name:`${p.prefix}-tab`,template:Og,styles:Ag});_g.define(p.registry);const Eg={subtle:"subtle",transparent:"transparent"},Ei=ge;var Ng=Object.defineProperty,Fg=Object.getOwnPropertyDescriptor,Ni=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ng(e,t,r),r};class Ao extends ${constructor(){super(...arguments),this.orientation=Ei.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 uo:e.preventDefault(),this.adjustBackward(e);break;case po:e.preventDefault(),this.adjustForward(e);break}else switch(e.key){case bo:e.preventDefault(),this.adjustBackward(e);break;case ho:e.preventDefault(),this.adjustForward(e);break}switch(e.key){case mo:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case go: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((r,s)=>{if(r.slot==="tab"){const n=this.activeTabIndex===s&&this.isFocusableElement(r),c=this.tabIds[s],h=this.tabpanelIds[s];r.setAttribute("id",c),r.setAttribute("aria-selected",n?"true":"false"),r.setAttribute("aria-controls",h),r.addEventListener("click",this.handleTabClick),r.addEventListener("keydown",this.handleTabKeyDown),r.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=r,this.activeid=c)}r.style[e]="",r.style[t]="",r.style[i]=`${s+1}`,this.isHorizontal()?r.classList.remove("vertical"):r.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((e,t)=>{const i=this.tabIds[t],r=this.tabpanelIds[t];e.setAttribute("id",r),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Mt()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute("id")??`panel-${Mt()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Ei.horizontal}adjust(e){const t=this.tabs.filter(n=>this.isFocusableElement(n)),i=t.indexOf(this.activetab),r=ar(0,t.length-1,i+e),s=this.tabs.indexOf(t[r]);s>-1&&this.moveToTabByIndex(this.tabs,s)}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()}}Ni([a],Ao.prototype,"orientation",2),Ni([a],Ao.prototype,"activeid",2),Ni([g],Ao.prototype,"tabs",2),Ni([g],Ao.prototype,"tabpanels",2);var Mg=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,Xr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Dg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Mg(e,t,r),r};class _o extends Ao{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=Eg.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===Ei.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===Ei.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")}getTabPositionData(e){const t=e.getBoundingClientRect(),i=this.getBoundingClientRect();return{x:t.x-i.x,y:t.y-i.y,height:t.height,width:t.width}}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,t=this.activetab||e[0];this.activeTabData=this.getTabPositionData(t),this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=u`
|
|
517
517
|
:host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=u`
|
|
518
518
|
:host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(e,t){if(e&&this.tabs){const i=this.tabs.find(r=>r.id===e);i&&(this.previousActiveTabData=this.getTabPositionData(i))}super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}Xr([a],_o.prototype,"appearance",2),Xr([a({mode:"boolean"})],_o.prototype,"disabled",2),Xr([a],_o.prototype,"size",2),Ke(_o,Ue);function Hg(o={}){return b` ${Le(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${L("tabs")}></slot></div>${ot(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${L("tabpanels")}></slot></div>`}const Vg=Hg({}),Lg=u`
|
|
519
519
|
${k("grid")}
|
|
520
520
|
|
|
521
|
-
:host{box-sizing:border-box;font-family:${v};font-size:${B};line-height:${_};color:${Ie};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${S}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${S}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${S}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${S}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${C}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${S}}.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:${xo};color:${dr};fill:${an}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${mt};fill:${mt};color:${z}}:host([size='small']) ::slotted(fluent-tab){font-size:${B};line-height:${_};padding:${qe} ${ee}}:host([size='large']) ::slotted(fluent-tab){font-size:${ue};line-height:${me};padding:${gi} ${ae}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${Wn};transition-timing-function:${Ir}}:host ::slotted(fluent-tab)::after{height:${se};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${se};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${se};border-radius:${fe};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${se};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${se}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${qe};padding-bottom:${qe}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${qt};padding-bottom:${qt}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${H};padding-bottom:${H}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${ee};left:${ee}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${ae};left:${ae}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${ae};left:${ae}}: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:${qe};bottom:${qe}}: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:${H};bottom:${H}}: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:${Gt};bottom:${Gt}}`,jg=_o.compose({name:`${p.prefix}-tabs`,template:Vg,styles:Lg});jg.define(p.registry);const Rg=o=>o.getAttribute("aria-disabled")==="true",qg=o=>o.hasAttribute("hidden"),Fi=o=>!Rg(o)&&!qg(o);function Wg(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Gg={subtle:"subtle",transparent:"transparent"},Bt=Se;var Xg=Object.defineProperty,Ug=Object.getOwnPropertyDescriptor,Eo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ug(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Xg(e,t,r),r};class ro extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=Bt.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===Node.ELEMENT_NODE&&Fi(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{const t=Jo(this);switch(e.key){case uo:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?-1:1);break;case po:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?1:-1);break;case bo:if(this.isHorizontal())return;e.preventDefault(),this.adjust(-1);break;case ho:if(this.isHorizontal())return;e.preventDefault(),this.adjust(1);break;case mo:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case go:e.preventDefault(),this.adjust(this.tabs.filter(i=>Fi(i)).length-this.activeTabIndex-1);break}}}disabledChanged(e,t){y(this.elementInternals,"disabled",t)}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??Bt.horizontal,St(this.elementInternals,e,t,Bt),this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){if(this.$fastController.isConnected&&this.tabs.length>0){if(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),this.setTabs(),e){const i=this.tabs[this.prevActiveTabIndex],r=this.tabPanelMap.get(i);r&&(r.hidden=!0)}if(t&&this.activetab){const i=this.tabPanelMap.get(this.activetab);i&&(i.hidden=!1)}e!==t&&this.change()}}slottedTabsChanged(e,t){this.tabs=t?.filter(i=>Wg(i))??[]}tabsChanged(){if(this.$fastController.isConnected&&this.tabs.length>0){this.tabIds=this.getTabIds(),this.setTabs();for(const e of this.tabs){const t=e.getAttribute("aria-controls")??"",r=this.getRootNode().getElementById(t);t&&r&&(r.role??(r.role="tabpanel"),r.hidden=this.activeid!==e.id,this.tabPanelMap.set(e,r))}}}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex();const e=this.tabs.some(t=>t.start.assignedNodes().length>0);this.tabs.forEach((t,i)=>{if(t.slot==="tab"){const r=this.activeTabIndex===i&&Fi(t),s=this.tabIds[i];t.setAttribute("id",s),t.setAttribute("aria-selected",r?"true":"false"),t.addEventListener("click",this.handleTabClick),t.addEventListener("keydown",this.handleTabKeyDown),t.setAttribute("tabindex",r&&!this.disabled?"0":"-1"),r&&(this.activetab=t,this.activeid=s),e&&this.orientation===Bt.vertical&&t.setAttribute("data-hasIndent","")}})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Mt()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab())}isHorizontal(){return this.orientation===Bt.horizontal}adjust(e){const t=this.tabs.filter(n=>Fi(n)),i=t.indexOf(this.activetab),r=vl(0,t.length-1,i+e),s=this.tabs.indexOf(t[r]);s>-1&&this.activateTabByIndex(this.tabs,s)}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()}}Eo([a({mode:"boolean"})],ro.prototype,"disabled",2),Eo([a],ro.prototype,"orientation",2),Eo([a],ro.prototype,"activeid",2),Eo([g],ro.prototype,"slottedTabs",2),Eo([g],ro.prototype,"tabs",2);var Kg=Object.defineProperty,Yg=Object.getOwnPropertyDescriptor,ka=(o,e,t,i)=>{for(var r=i>1?void 0:i?Yg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Kg(e,t,r),r};class Ur extends ro{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=Gg.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===Bt.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===Bt.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(),r=this.getBoundingClientRect();this.activeTabData={x:i.x-r.x,y:i.y-r.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)}}ka([a],Ur.prototype,"appearance",2),ka([a],Ur.prototype,"size",2);const Qg=b`<template role="tablist"><slot name="tab" ${L("slottedTabs")}></slot></template>`,Zg=u`
|
|
521
|
+
:host{box-sizing:border-box;font-family:${v};font-size:${B};line-height:${_};color:${Ie};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${S}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${S}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${S}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${S}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${C}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${S}}.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:${xo};color:${dr};fill:${an}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${mt};fill:${mt};color:${z}}:host([size='small']) ::slotted(fluent-tab){font-size:${B};line-height:${_};padding:${qe} ${ee}}:host([size='large']) ::slotted(fluent-tab){font-size:${ue};line-height:${ve};padding:${gi} ${ae}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${Wn};transition-timing-function:${Ir}}:host ::slotted(fluent-tab)::after{height:${se};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${se};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${se};border-radius:${me};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${se};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${se}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${qe};padding-bottom:${qe}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${qt};padding-bottom:${qt}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${H};padding-bottom:${H}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${ee};left:${ee}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${ae};left:${ae}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${ae};left:${ae}}: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:${qe};bottom:${qe}}: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:${H};bottom:${H}}: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:${Gt};bottom:${Gt}}`,jg=_o.compose({name:`${p.prefix}-tabs`,template:Vg,styles:Lg});jg.define(p.registry);const Rg=o=>o.getAttribute("aria-disabled")==="true",qg=o=>o.hasAttribute("hidden"),Fi=o=>!Rg(o)&&!qg(o);function Wg(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Gg={subtle:"subtle",transparent:"transparent"},Bt=ge;var Xg=Object.defineProperty,Ug=Object.getOwnPropertyDescriptor,Eo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ug(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Xg(e,t,r),r};class ro extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=Bt.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===Node.ELEMENT_NODE&&Fi(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{const t=Jo(this);switch(e.key){case uo:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?-1:1);break;case po:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?1:-1);break;case bo:if(this.isHorizontal())return;e.preventDefault(),this.adjust(-1);break;case ho:if(this.isHorizontal())return;e.preventDefault(),this.adjust(1);break;case mo:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case go:e.preventDefault(),this.adjust(this.tabs.filter(i=>Fi(i)).length-this.activeTabIndex-1);break}}}disabledChanged(e,t){y(this.elementInternals,"disabled",t)}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??Bt.horizontal,St(this.elementInternals,e,t,Bt),this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){if(this.$fastController.isConnected&&this.tabs.length>0){if(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),this.setTabs(),e){const i=this.tabs[this.prevActiveTabIndex],r=this.tabPanelMap.get(i);r&&(r.hidden=!0)}if(t&&this.activetab){const i=this.tabPanelMap.get(this.activetab);i&&(i.hidden=!1)}e!==t&&this.change()}}slottedTabsChanged(e,t){this.tabs=t?.filter(i=>Wg(i))??[]}tabsChanged(){if(this.$fastController.isConnected&&this.tabs.length>0){this.tabIds=this.getTabIds(),this.setTabs();for(const e of this.tabs){const t=e.getAttribute("aria-controls")??"",r=this.getRootNode().getElementById(t);t&&r&&(r.role??(r.role="tabpanel"),r.hidden=this.activeid!==e.id,this.tabPanelMap.set(e,r))}}}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex();const e=this.tabs.some(t=>t.start.assignedNodes().length>0);this.tabs.forEach((t,i)=>{if(t.slot==="tab"){const r=this.activeTabIndex===i&&Fi(t),s=this.tabIds[i];t.setAttribute("id",s),t.setAttribute("aria-selected",r?"true":"false"),t.addEventListener("click",this.handleTabClick),t.addEventListener("keydown",this.handleTabKeyDown),t.setAttribute("tabindex",r&&!this.disabled?"0":"-1"),r&&(this.activetab=t,this.activeid=s),e&&this.orientation===Bt.vertical&&t.setAttribute("data-hasIndent","")}})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Mt()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab())}isHorizontal(){return this.orientation===Bt.horizontal}adjust(e){const t=this.tabs.filter(n=>Fi(n)),i=t.indexOf(this.activetab),r=vl(0,t.length-1,i+e),s=this.tabs.indexOf(t[r]);s>-1&&this.activateTabByIndex(this.tabs,s)}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()}}Eo([a({mode:"boolean"})],ro.prototype,"disabled",2),Eo([a],ro.prototype,"orientation",2),Eo([a],ro.prototype,"activeid",2),Eo([g],ro.prototype,"slottedTabs",2),Eo([g],ro.prototype,"tabs",2);var Kg=Object.defineProperty,Yg=Object.getOwnPropertyDescriptor,ka=(o,e,t,i)=>{for(var r=i>1?void 0:i?Yg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Kg(e,t,r),r};class Ur extends ro{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=Gg.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===Bt.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===Bt.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(),r=this.getBoundingClientRect();this.activeTabData={x:i.x-r.x,y:i.y-r.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)}}ka([a],Ur.prototype,"appearance",2),ka([a],Ur.prototype,"size",2);const Qg=b`<template role="tablist"><slot name="tab" ${L("slottedTabs")}></slot></template>`,Zg=u`
|
|
522
522
|
${k("flex")}
|
|
523
523
|
|
|
524
|
-
:host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ie};flex-direction:row}:host([orientation='vertical']){flex-direction:column}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${Wn};transition-timing-function:${Ir}}:host ::slotted([slot='tab'])::after{height:${se};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${se};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${se};border-radius:${fe};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:${S}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${se};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host(:where([size='small'],[size='large'])) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${qe};--tabPaddingInline:${ee};font-size:${B};line-height:${_}}:host([size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${gi};--tabPaddingInline:${ae};font-size:${ue};line-height:${me}}: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:${ae}}:host([size='small']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ee}}:host([size='large']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ae}}:host([orientation='vertical']) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([slot='tab']){--tabPaddingBlock:${H}}:host([orientation='vertical'][size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${qt}}:host([orientation='vertical'][size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${H}}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([orientation='vertical']){--tabIndicatorInsetBlock:${H}}:host([orientation='vertical'][size='small']){--tabIndicatorInsetBlock:${qe}}:host([orientation='vertical'][size='large']){--tabIndicatorInsetBlock:${Gt}}:host([disabled]){cursor:not-allowed;color:${S}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${S}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${S}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${S}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${xo};color:${dr};fill:${an}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${mt};fill:${mt};color:${z}}`,Jg=Ur.compose({name:`${p.prefix}-tablist`,template:Qg,styles:Zg});Jg.define(p.registry);const ef={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Mi={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var tf=Object.defineProperty,of=Object.getOwnPropertyDescriptor,de=(o,e,t,i)=>{for(var r=i>1?void 0:i?of(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&tf(e,t,r),r};class K extends ${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=Mi.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(),y(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){St(this.elementInternals,e,t,Mi,"resize-"),y(this.elementInternals,"resize",Yn(Mi,t)&&t!==Mi.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(){y(this.elementInternals,"user-invalid",!this.validity.valid),y(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")}}K.formAssociated=!0,de([g],K.prototype,"defaultSlottedNodes",2),de([g],K.prototype,"labelSlottedNodes",2),de([a],K.prototype,"autocomplete",2),de([a({attribute:"auto-resize",mode:"boolean"})],K.prototype,"autoResize",2),de([a({attribute:"dirname"})],K.prototype,"dirName",2),de([a({mode:"boolean"})],K.prototype,"disabled",2),de([a({attribute:"display-shadow",mode:"boolean"})],K.prototype,"displayShadow",2),de([a({attribute:"form"})],K.prototype,"initialForm",2),de([a({attribute:"maxlength",converter:re})],K.prototype,"maxLength",2),de([a({attribute:"minlength",converter:re})],K.prototype,"minLength",2),de([a],K.prototype,"name",2),de([a],K.prototype,"placeholder",2),de([a({attribute:"readonly",mode:"boolean"})],K.prototype,"readOnly",2),de([a({mode:"boolean"})],K.prototype,"required",2),de([a({mode:"fromView"})],K.prototype,"resize",2),de([a({mode:"boolean"})],K.prototype,"spellcheck",2);var rf=Object.defineProperty,sf=Object.getOwnPropertyDescriptor,Kr=(o,e,t,i)=>{for(var r=i>1?void 0:i?sf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&rf(e,t,r),r};class Di extends K{constructor(){super(...arguments),this.appearance=ef.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(i=>{i.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}Kr([a({mode:"fromView"})],Di.prototype,"appearance",2),Kr([a({mode:"boolean"})],Di.prototype,"block",2),Kr([a],Di.prototype,"size",2);const nf=u`
|
|
524
|
+
:host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ie};flex-direction:row}:host([orientation='vertical']){flex-direction:column}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${Wn};transition-timing-function:${Ir}}:host ::slotted([slot='tab'])::after{height:${se};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${se};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${se};border-radius:${me};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:${S}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${se};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host(:where([size='small'],[size='large'])) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${qe};--tabPaddingInline:${ee};font-size:${B};line-height:${_}}:host([size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${gi};--tabPaddingInline:${ae};font-size:${ue};line-height:${ve}}: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:${ae}}:host([size='small']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ee}}:host([size='large']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ae}}:host([orientation='vertical']) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([slot='tab']){--tabPaddingBlock:${H}}:host([orientation='vertical'][size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${qt}}:host([orientation='vertical'][size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${H}}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([orientation='vertical']){--tabIndicatorInsetBlock:${H}}:host([orientation='vertical'][size='small']){--tabIndicatorInsetBlock:${qe}}:host([orientation='vertical'][size='large']){--tabIndicatorInsetBlock:${Gt}}:host([disabled]){cursor:not-allowed;color:${S}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${S}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${S}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${S}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${xo};color:${dr};fill:${an}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${mt};fill:${mt};color:${z}}`,Jg=Ur.compose({name:`${p.prefix}-tablist`,template:Qg,styles:Zg});Jg.define(p.registry);const ef={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Mi={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var tf=Object.defineProperty,of=Object.getOwnPropertyDescriptor,de=(o,e,t,i)=>{for(var r=i>1?void 0:i?of(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&tf(e,t,r),r};class K extends ${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=Mi.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(),y(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){St(this.elementInternals,e,t,Mi,"resize-"),y(this.elementInternals,"resize",Yn(Mi,t)&&t!==Mi.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(){y(this.elementInternals,"user-invalid",!this.validity.valid),y(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")}}K.formAssociated=!0,de([g],K.prototype,"defaultSlottedNodes",2),de([g],K.prototype,"labelSlottedNodes",2),de([a],K.prototype,"autocomplete",2),de([a({attribute:"auto-resize",mode:"boolean"})],K.prototype,"autoResize",2),de([a({attribute:"dirname"})],K.prototype,"dirName",2),de([a({mode:"boolean"})],K.prototype,"disabled",2),de([a({attribute:"display-shadow",mode:"boolean"})],K.prototype,"displayShadow",2),de([a({attribute:"form"})],K.prototype,"initialForm",2),de([a({attribute:"maxlength",converter:re})],K.prototype,"maxLength",2),de([a({attribute:"minlength",converter:re})],K.prototype,"minLength",2),de([a],K.prototype,"name",2),de([a],K.prototype,"placeholder",2),de([a({attribute:"readonly",mode:"boolean"})],K.prototype,"readOnly",2),de([a({mode:"boolean"})],K.prototype,"required",2),de([a({mode:"fromView"})],K.prototype,"resize",2),de([a({mode:"boolean"})],K.prototype,"spellcheck",2);var rf=Object.defineProperty,sf=Object.getOwnPropertyDescriptor,Kr=(o,e,t,i)=>{for(var r=i>1?void 0:i?sf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&rf(e,t,r),r};class Di extends K{constructor(){super(...arguments),this.appearance=ef.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(i=>{i.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}Kr([a({mode:"fromView"})],Di.prototype,"appearance",2),Kr([a({mode:"boolean"})],Di.prototype,"block",2),Kr([a],Di.prototype,"size",2);const nf=u`
|
|
525
525
|
${k("inline-block")}
|
|
526
526
|
|
|
527
|
-
:host{--font-size:${B};--line-height:${_};--padding-inline:${ae};--padding-block:${qe};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${T};--control-padding-inline:${W};--color:${z};--background-color:${I};--border-color:${Re};--border-block-end-color:${je};--placeholder-color:${hr};--focus-indicator-color:${xt};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${A};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${jt};--border-block-end-color:${$t}}:host(:active){--border-color:${ko};--border-block-end-color:${yt}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${N};--line-height:${q};--min-block-size:40px;--padding-block:${Wt};--padding-inline:${ee};--control-padding-inline:${W}}:host([size='large']){--font-size:${ue};--line-height:${
|
|
527
|
+
:host{--font-size:${B};--line-height:${_};--padding-inline:${ae};--padding-block:${qe};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${T};--control-padding-inline:${W};--color:${z};--background-color:${I};--border-color:${Re};--border-block-end-color:${je};--placeholder-color:${hr};--focus-indicator-color:${xt};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${A};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${jt};--border-block-end-color:${$t}}:host(:active){--border-color:${ko};--border-block-end-color:${yt}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${N};--line-height:${q};--min-block-size:40px;--padding-block:${Wt};--padding-inline:${ee};--control-padding-inline:${W}}:host([size='large']){--font-size:${ue};--line-height:${ve};--min-block-size:64px;--padding-block:${H};--padding-inline:${le};--control-padding-inline:${ee}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${$o};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${$r}}:host(${ou}){--border-color:${fr};--border-block-end-color:${fr}}:host(:disabled){--color:${S};--background-color:${fe};--border-color:${we};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${S};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:${C};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([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${C} ${C};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${C});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${wt};transition-duration:${Cr};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${mi};transition-delay:${Ct}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${Wt};padding-inline-end:${ne}}: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([auto-resize]) .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:${ft};background-color:${dn}}`.withBehaviors(U(u`
|
|
528
528
|
: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 af(){return b`<template><label ${V("labelEl")} for="control" part="label"><slot name="label" ${L({property:"labelSlottedNodes",filter:lr})}></slot></label><div class="root" part="root"><textarea ${V("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 ${L({property:"defaultSlottedNodes",filter:lr})}></slot></div></template>`}const lf=af(),cf=Di.compose({name:`${p.prefix}-textarea`,template:lf,styles:nf,shadowOptions:{delegatesFocus:!0}});cf.define(p.registry);const df={email:"email",password:"password",tel:"tel",text:"text",url:"url"},hf=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var uf=Object.defineProperty,pf=Object.getOwnPropertyDescriptor,E=(o,e,t,i)=>{for(var r=i>1?void 0:i?pf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&uf(e,t,r),r};class O extends ${constructor(){super(...arguments),this.type=df.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}`)}controlChanged(e,t){this.setValidity()}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.$fastController.isConnected&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),m.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(r=>r.getAttribute("type")==="submit");if(t){t.click();return}e.filter(r=>hf.includes(r.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,t,i){if(this.$fastController.isConnected&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,i??this.control)}}}O.formAssociated=!0,E([a],O.prototype,"autocomplete",2),E([a({mode:"boolean"})],O.prototype,"autofocus",2),E([a({attribute:"current-value"})],O.prototype,"currentValue",2),E([g],O.prototype,"defaultSlottedNodes",2),E([a],O.prototype,"dirname",2),E([a({mode:"boolean"})],O.prototype,"disabled",2),E([a({attribute:"form"})],O.prototype,"formAttribute",2),E([a({attribute:"value",mode:"fromView"})],O.prototype,"initialValue",2),E([a],O.prototype,"list",2),E([a({converter:re})],O.prototype,"maxlength",2),E([a({converter:re})],O.prototype,"minlength",2),E([a({mode:"boolean"})],O.prototype,"multiple",2),E([a],O.prototype,"name",2),E([a],O.prototype,"pattern",2),E([a],O.prototype,"placeholder",2),E([a({attribute:"readonly",mode:"boolean"})],O.prototype,"readOnly",2),E([a({mode:"boolean"})],O.prototype,"required",2),E([a({converter:re})],O.prototype,"size",2),E([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],O.prototype,"spellcheck",2),E([a],O.prototype,"type",2),E([g],O.prototype,"control",2),E([g],O.prototype,"controlLabel",2);var bf=Object.defineProperty,gf=Object.getOwnPropertyDescriptor,wa=(o,e,t,i)=>{for(var r=i>1?void 0:i?gf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&bf(e,t,r),r};class Hi extends O{}wa([a],Hi.prototype,"appearance",2),wa([a({attribute:"control-size"})],Hi.prototype,"controlSize",2),Ke(Hi,Ue);const ff=u`
|
|
529
529
|
${k("block")}
|
|
530
530
|
|
|
531
|
-
:host{font-family:${v};font-size:${B};font-weight:${A};line-height:${_};max-width:400px}.label{display:flex;color:${z};padding-bottom:${Wt};flex-shrink:0;padding-inline-end:${ne}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${I};border:${T} solid ${Re};border-bottom-color:${je};border-radius:${C};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${W};padding:0 ${ae};position:relative;width:100%}:has(.control:user-invalid){border-color:${fr}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${C});border-radius:0 0 ${C} ${C};border-bottom:2px solid ${xt};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Cr};transition-delay:${wt}}.control{width:100%;height:100%;box-sizing:border-box;color:${z};border-radius:${C};background:${
|
|
531
|
+
:host{font-family:${v};font-size:${B};font-weight:${A};line-height:${_};max-width:400px}.label{display:flex;color:${z};padding-bottom:${Wt};flex-shrink:0;padding-inline-end:${ne}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${I};border:${T} solid ${Re};border-bottom-color:${je};border-radius:${C};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${W};padding:0 ${ae};position:relative;width:100%}:has(.control:user-invalid){border-color:${fr}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${C});border-radius:0 0 ${C} ${C};border-bottom:2px solid ${xt};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Cr};transition-delay:${wt}}.control{width:100%;height:100%;box-sizing:border-box;color:${z};border-radius:${C};background:${fe};font-family:${v};font-weight:${A};font-size:${B};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${hr}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${Z};font-size:${Rt}}:host ::slotted([slot='start']){padding-right:${W}}:host ::slotted([slot='end']){padding-left:${W};gap:${ne}}:host(:hover) .root{border-color:${jt};border-bottom-color:${$t}}:host(:active) .root{border-color:${ko}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${mi};transition-delay:${Ct}}:host(:focus-within:active) .root:after{border-bottom-color:${xn}}:host([appearance='outline']:focus-within) .root{border:${T} solid ${Re}}:host(:focus-within) .control{color:${z}}:host([disabled]) .root{background:${fe};border:${T} solid ${we}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${S}}::selection{color:${ft};background-color:${dn}}:host([control-size='small']) .control{font-size:${N};font-weight:${A};line-height:${q}}:host([control-size='small']) .root{height:24px;gap:${W};padding:0 ${ee}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${ue}}:host([control-size='large']) .control{font-size:${ue};font-weight:${A};line-height:${ve}}:host([control-size='large']) .root{height:40px;gap:${Ae};padding:0 ${le}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${di}}:host([appearance='underline']) .root{background:${fe};border:0;border-radius:0;border-bottom:${T} solid ${je}}:host([appearance='underline']:hover) .root{border-bottom-color:${$t}}:host([appearance='underline']:active) .root{border-bottom-color:${yt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${yt}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${we}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${T} solid ${J};box-shadow:${$r}}:host([appearance='filled-lighter']) .root{background:${I}}:host([appearance='filled-darker']) .root{background:${$o}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${br}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${br};background:${$o}}`;function mf(o={}){return b`<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" ${V("controlLabel")}><slot ${L({property:"defaultSlottedNodes",filter:lr})}></slot></label><div class="root" part="root">${Le(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}" ${V("control")} />${ot(o)}</div></template>`}const vf=mf(),$f=Hi.compose({name:`${p.prefix}-text-input`,template:vf,styles:ff,shadowOptions:{delegatesFocus:!0}});$f.define(p.registry);var yf=Object.defineProperty,xf=Object.getOwnPropertyDescriptor,Xe=(o,e,t,i)=>{for(var r=i>1?void 0:i?xf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&yf(e,t,r),r};class Ee extends ${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}}Xe([a({mode:"boolean"})],Ee.prototype,"nowrap",2),Xe([a({mode:"boolean"})],Ee.prototype,"truncate",2),Xe([a({mode:"boolean"})],Ee.prototype,"italic",2),Xe([a({mode:"boolean"})],Ee.prototype,"underline",2),Xe([a({mode:"boolean"})],Ee.prototype,"strikethrough",2),Xe([a({mode:"boolean"})],Ee.prototype,"block",2),Xe([a],Ee.prototype,"size",2),Xe([a],Ee.prototype,"font",2),Xe([a],Ee.prototype,"weight",2),Xe([a],Ee.prototype,"align",2);const kf=u`
|
|
532
532
|
${k("inline")}
|
|
533
533
|
|
|
534
|
-
:host{font-family:${v};font-size:${B};line-height:${_};font-weight:${A};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${Co};line-height:${ui}}:host([size='200']){font-size:${N};line-height:${q}}:host([size='400']){font-size:${ue};line-height:${
|
|
534
|
+
:host{font-family:${v};font-size:${B};line-height:${_};font-weight:${A};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${Co};line-height:${ui}}:host([size='200']){font-size:${N};line-height:${q}}:host([size='400']){font-size:${ue};line-height:${ve}}:host([size='500']){font-size:${Rt};line-height:${pi}}:host([size='600']){font-size:${di};line-height:${Hn}}:host([size='700']){font-size:${Nn};line-height:${Vn}}:host([size='800']){font-size:${Fn};line-height:${Ln}}:host([size='900']){font-size:${Mn};line-height:${jn}}:host([size='1000']){font-size:${Dn};line-height:${Rn}}:host([font='monospace']){font-family:${gd}}:host([font='numeric']){font-family:${fd}}:host([weight='medium']){font-weight:${md}}:host([weight='semibold']){font-weight:${D}}:host([weight='bold']){font-weight:${hi}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,wf=b`<slot></slot>`,Cf=Ee.compose({name:`${p.prefix}-text`,template:wf,styles:kf});Cf.define(p.registry);var Sf=Object.defineProperty,If=Object.getOwnPropertyDescriptor,Ca=(o,e,t,i)=>{for(var r=i>1?void 0:i?If(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Sf(e,t,r),r};class Yr extends Ze{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,y(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}Ca([a({mode:"boolean"})],Yr.prototype,"pressed",2),Ca([a({mode:"boolean"})],Yr.prototype,"mixed",2);const Pf=u`
|
|
535
535
|
${ki}
|
|
536
536
|
|
|
537
537
|
:host(${F}){border-color:${Re};background-color:${cn};color:${z};border-width:${T}}:host(${F}:hover){border-color:${jt};background-color:${ni}}:host(${F}:active){border-color:${ko};background-color:${ur}}:host(${F}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${F}[appearance='primary']){background-color:${Ul};color:${Qe}}:host(${F}[appearance='primary']:hover){background-color:${gn}}:host(${F}[appearance='primary']:active){background-color:${fn}}:host(${F}[appearance='subtle']){border-color:transparent;background-color:${un};color:${oi}}:host(${F}[appearance='subtle']:hover){background-color:${xo};color:${Dt}}:host(${F}[appearance='subtle']:active){background-color:${mt};color:${Ht}}:host(${F}[appearance='outline']),:host(${F}[appearance='transparent']){background-color:${pn}}:host(${F}[appearance='outline']:hover),:host(${F}[appearance='transparent']:hover){background-color:${ai}}:host(${F}[appearance='outline']:active),:host(${F}[appearance='transparent']:active){background-color:${li}}:host(${F}[appearance='transparent']){border-color:transparent;color:${zl}}:host(${F}[appearance='transparent']:hover){color:${ii}}:host(${F}[appearance='transparent']:active){color:${ri}}`.withBehaviors(U(u`
|
|
@@ -558,4 +558,4 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
558
558
|
${k("block")}
|
|
559
559
|
|
|
560
560
|
:host{outline:none;font-size:${B};line-height:${_}}:host(:focus-visible) .positioning-region{box-shadow:${wr} ${wr} ${wr} ${qt}
|
|
561
|
-
${
|
|
561
|
+
${Ce} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${wd};padding-inline-start:calc(var(--indent) * ${kr});padding-inline-end:${H};border-radius:${C};background-color:${hn};color:${Ie};gap:${ne}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${Ce}}}.content{display:flex;align-items:center;gap:${ne}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${kr};height:${kt};transition:transform ${fi} ${Xn};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${xo};color:${Dt}}.positioning-region:active{background-color:${mt};color:${Ht}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${W}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${un};color:${oi}}:host([selected]) .content,:host([selected]) .chevron{color:${Ol}}:host([size='small']) .positioning-region{height:${kt};padding-inline-start:calc(var(--indent) * ${le})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${Wl}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${Gl}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${Xl};color:${oi}}:host([appearance='transparent']) .positioning-region{background-color:${fe}}:host([appearance='transparent']) .positioning-region:hover{background-color:${ai}}:host([appearance='transparent']) .positioning-region:active{background-color:${li}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${pn};color:${oi}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Xf=b`<svg width="12" height="12" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,Uf=b`<template tabindex="${o=>o.selected?0:-1}" slot="${o=>o.isNestedItem?"item":void 0}" ${rr({property:"childTreeItems",filter:o=>Ne(o)})}><div class="positioning-region" part="positioning-region"><div class="content" part="content"><span class="chevron" part="chevron"><slot name="chevron">${Xf}</slot></span><slot name="start"></slot><slot></slot><slot name="end"></slot></div><div class="aside" part="aside"><slot name="aside"></slot></div></div><div role="group" class="items" part="items"><slot name="item"></slot></div></template>`,Kf=Jr.compose({name:`${p.prefix}-tree-item`,template:Uf,styles:Gf});Kf.define(p.registry);
|