@fluentui/web-components 2.5.4 → 2.5.6
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.json +46 -1
- package/CHANGELOG.md +20 -2
- package/dist/dts/styles/focus.d.ts +13 -0
- package/dist/dts/styles/index.d.ts +1 -0
- package/dist/esm/accordion/accordion-item/accordion-item.styles.js +8 -10
- package/dist/esm/breadcrumb-item/breadcrumb-item.styles.js +6 -10
- package/dist/esm/checkbox/checkbox.styles.js +4 -8
- package/dist/esm/combobox/combobox.styles.js +17 -8
- package/dist/esm/data-grid/data-grid-cell.styles.js +6 -9
- package/dist/esm/flipper/flipper.styles.js +5 -6
- package/dist/esm/listbox/listbox.styles.js +3 -4
- package/dist/esm/listbox-option/listbox-option.styles.js +9 -6
- package/dist/esm/menu/menu.styles.js +1 -1
- package/dist/esm/menu-item/menu-item.styles.js +5 -9
- package/dist/esm/progress/progress/progress.styles.js +0 -1
- package/dist/esm/progress/progress-ring/progress-ring.styles.js +0 -1
- package/dist/esm/radio/radio.styles.js +4 -9
- package/dist/esm/select/select.styles.js +4 -12
- package/dist/esm/styles/focus.js +21 -0
- package/dist/esm/styles/index.js +1 -0
- package/dist/esm/styles/patterns/button.styles.js +13 -21
- package/dist/esm/styles/patterns/input.styles.js +1 -9
- package/dist/esm/switch/switch.styles.js +5 -17
- package/dist/esm/tabs/tab/tab.styles.js +4 -6
- package/dist/esm/text-area/text-area.stories.js +2 -2
- package/dist/esm/toolbar/toolbar.styles.js +4 -3
- package/dist/esm/tree-item/tree-item.styles.js +4 -14
- package/dist/esm/tree-view/tree-view.styles.js +0 -4
- package/dist/fluent-web-components.api.json +52 -0
- package/dist/web-components.d.ts +15 -0
- package/dist/web-components.js +88 -51
- package/dist/web-components.min.js +150 -139
- package/docs/api-report.md +6 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(t){return{}}}();void 0===t.trustedTypes&&(t.trustedTypes={createPolicy:(t,e)=>e});const e={configurable:!1,enumerable:!1,writable:!1};void 0===t.FAST&&Reflect.defineProperty(t,"FAST",Object.assign({value:Object.create(null)},e));const i=t.FAST;if(void 0===i.getById){const t=Object.create(null);Reflect.defineProperty(i,"getById",Object.assign({value(e,i){let o=t[e];return void 0===o&&(o=i?t[e]=i():null),o}},e))}const o=Object.freeze([]),s=t.FAST.getById(1,()=>{const e=[],i=[];function o(){if(i.length)throw i.shift()}function s(t){try{t.call()}catch(t){i.push(t),setTimeout(o,0)}}function n(){let t=0;for(;t<e.length;)if(s(e[t]),t++,t>1024){for(let i=0,o=e.length-t;i<o;i++)e[i]=e[i+t];e.length-=t,t=0}e.length=0}return Object.freeze({enqueue:function(i){e.length<1&&t.requestAnimationFrame(n),e.push(i)},process:n})}),n=t.trustedTypes.createPolicy("fast-html",{createHTML:t=>t});let r=n;const a="fast-"+Math.random().toString(36).substring(2,8),l=a+"{",c="}"+a,h=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(r!==n)throw new Error("The HTML policy can only be set once.");r=t},createHTML:t=>r.createHTML(t),isMarker:t=>t&&8===t.nodeType&&t.data.startsWith(a),extractDirectiveIndexFromMarker:t=>parseInt(t.data.replace(a+":","")),createInterpolationPlaceholder:t=>`${l}${t}${c}`,createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder:t=>`\x3c!--${a}:${t}--\x3e`,queueUpdate:s.enqueue,processUpdates:s.process,nextUpdate:()=>new Promise(s.enqueue),setAttribute(t,e,i){null==i?t.removeAttribute(e):t.setAttribute(e,i)},setBooleanAttribute(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)},removeChildNodes(t){for(let e=t.firstChild;null!==e;e=t.firstChild)t.removeChild(e)},createTemplateWalker:t=>document.createTreeWalker(t,133,null,!1)});class d{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return void 0===this.spillover?this.sub1===t||this.sub2===t:-1!==this.spillover.indexOf(t)}subscribe(t){const e=this.spillover;if(void 0===e){if(this.has(t))return;if(void 0===this.sub1)return void(this.sub1=t);if(void 0===this.sub2)return void(this.sub2=t);this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else{-1===e.indexOf(t)&&e.push(t)}}unsubscribe(t){const e=this.spillover;if(void 0===e)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const i=e.indexOf(t);-1!==i&&e.splice(i,1)}}notify(t){const e=this.spillover,i=this.source;if(void 0===e){const e=this.sub1,o=this.sub2;void 0!==e&&e.handleChange(i,t),void 0!==o&&o.handleChange(i,t)}else for(let o=0,s=e.length;o<s;++o)e[o].handleChange(i,t)}}class u{constructor(t){this.subscribers={},this.sourceSubscribers=null,this.source=t}notify(t){var e;const i=this.subscribers[t];void 0!==i&&i.notify(t),null===(e=this.sourceSubscribers)||void 0===e||e.notify(t)}subscribe(t,e){var i;if(e){let i=this.subscribers[e];void 0===i&&(this.subscribers[e]=i=new d(this.source)),i.subscribe(t)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new d(this.source),this.sourceSubscribers.subscribe(t)}unsubscribe(t,e){var i;if(e){const i=this.subscribers[e];void 0!==i&&i.unsubscribe(t)}else null===(i=this.sourceSubscribers)||void 0===i||i.unsubscribe(t)}}const p=i.getById(2,()=>{const t=/(:|&&|\|\||if)/,e=new WeakMap,i=new WeakMap,o=h.queueUpdate;let s=void 0,n=t=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function r(t){let i=t.$fastController||e.get(t);return void 0===i&&(Array.isArray(t)?i=n(t):e.set(t,i=new u(t))),i}function a(t){let e=i.get(t);if(void 0===e){let o=Reflect.getPrototypeOf(t);for(;void 0===e&&null!==o;)e=i.get(o),o=Reflect.getPrototypeOf(o);e=void 0===e?[]:e.slice(0),i.set(t,e)}return e}class l{constructor(t){this.name=t,this.field="_"+t,this.callback=t+"Changed"}getValue(t){return void 0!==s&&s.watch(t,this.name),t[this.field]}setValue(t,e){const i=this.field,o=t[i];if(o!==e){t[i]=e;const s=t[this.callback];"function"==typeof s&&s.call(t,o,e),r(t).notify(this.name)}}}class c extends d{constructor(t,e,i=!1){super(t,e),this.binding=t,this.isVolatileBinding=i,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(t,e){this.needsRefresh&&null!==this.last&&this.disconnect();const i=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const o=this.binding(t,e);return s=i,o}disconnect(){if(null!==this.last){let t=this.first;for(;void 0!==t;)t.notifier.unsubscribe(this,t.propertyName),t=t.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(t,e){const i=this.last,o=r(t),n=null===i?this.first:{};if(n.propertySource=t,n.propertyName=e,n.notifier=o,o.subscribe(this,e),null!==i){if(!this.needsRefresh){let e;s=void 0,e=i.propertySource[i.propertyName],s=this,t===e&&(this.needsRefresh=!0)}i.next=n}this.last=n}handleChange(){this.needsQueue&&(this.needsQueue=!1,o(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let t=this.first;return{next:()=>{const e=t;return void 0===e?{value:void 0,done:!0}:(t=t.next,{value:e,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(t){n=t},getNotifier:r,track(t,e){void 0!==s&&s.watch(t,e)},trackVolatile(){void 0!==s&&(s.needsRefresh=!0)},notify(t,e){r(t).notify(e)},defineProperty(t,e){"string"==typeof e&&(e=new l(e)),a(t).push(e),Reflect.defineProperty(t,e.name,{enumerable:!0,get:function(){return e.getValue(this)},set:function(t){e.setValue(this,t)}})},getAccessors:a,binding(t,e,i=this.isVolatileBinding(t)){return new c(t,e,i)},isVolatileBinding:e=>t.test(e.toString())})});function g(t,e){p.defineProperty(t,e)}const f=i.getById(3,()=>{let t=null;return{get:()=>t,set(e){t=e}}});class m{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return f.get()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){f.set(t)}}p.defineProperty(m.prototype,"index"),p.defineProperty(m.prototype,"length");const v=Object.seal(new m);class b{constructor(){this.targetIndex=0}}class y extends b{constructor(){super(...arguments),this.createPlaceholder=h.createInterpolationPlaceholder}}class x extends b{constructor(t,e,i){super(),this.name=t,this.behavior=e,this.options=i}createPlaceholder(t){return h.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function $(t,e){this.source=t,this.context=e,null===this.bindingObserver&&(this.bindingObserver=p.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(t,e))}function w(t,e){this.source=t,this.context=e,this.target.addEventListener(this.targetName,this)}function k(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function C(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}function I(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function F(t){h.setAttribute(this.target,this.targetName,t)}function D(t){h.setBooleanAttribute(this.target,this.targetName,t)}function T(t){if(null==t&&(t=""),t.create){this.target.textContent="";let e=this.target.$fastView;void 0===e?e=t.create():this.target.$fastTemplate!==t&&(e.isComposed&&(e.remove(),e.unbind()),e=t.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=t)}else{const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=t}}function S(t){this.target[this.targetName]=t}function O(t){const e=this.classVersions||Object.create(null),i=this.target;let o=this.version||0;if(null!=t&&t.length){const s=t.split(/\s+/);for(let t=0,n=s.length;t<n;++t){const n=s[t];""!==n&&(e[n]=o,i.classList.add(n))}}if(this.classVersions=e,this.version=o+1,0!==o){o-=1;for(const t in e)e[t]===o&&i.classList.remove(t)}}class E extends y{constructor(t){super(),this.binding=t,this.bind=$,this.unbind=k,this.updateTarget=F,this.isBindingVolatile=p.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(t){if(this.originalTargetName=t,void 0!==t)switch(t[0]){case":":if(this.cleanedTargetName=t.substr(1),this.updateTarget=S,"innerHTML"===this.cleanedTargetName){const t=this.binding;this.binding=(e,i)=>h.createHTML(t(e,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=D;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=w,this.unbind=I;break;default:this.cleanedTargetName=t,"class"===t&&(this.updateTarget=O)}}targetAtContent(){this.updateTarget=T,this.unbind=C}createBehavior(t){return new V(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class V{constructor(t,e,i,o,s,n,r){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=i,this.bind=o,this.unbind=s,this.updateTarget=n,this.targetName=r}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){m.setEvent(t);const e=this.binding(this.source,this.context);m.setEvent(null),!0!==e&&t.preventDefault()}}let R=null;class A{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){R=this}static borrow(t){const e=R||new A;return e.directives=t,e.reset(),R=null,e}}function L(t){if(1===t.length)return t[0];let e;const i=t.length,o=t.map(t=>"string"==typeof t?()=>t:(e=t.targetName||e,t.binding)),s=new E((t,e)=>{let s="";for(let n=0;n<i;++n)s+=o[n](t,e);return s});return s.targetName=e,s}const P=c.length;function H(t,e){const i=e.split(l);if(1===i.length)return null;const o=[];for(let e=0,s=i.length;e<s;++e){const s=i[e],n=s.indexOf(c);let r;if(-1===n)r=s;else{const e=parseInt(s.substring(0,n));o.push(t.directives[e]),r=s.substring(n+P)}""!==r&&o.push(r)}return o}function z(t,e,i=!1){const o=e.attributes;for(let s=0,n=o.length;s<n;++s){const r=o[s],a=r.value,l=H(t,a);let c=null;null===l?i&&(c=new E(()=>a),c.targetName=r.name):c=L(l),null!==c&&(e.removeAttributeNode(r),s--,n--,t.addFactory(c))}}function M(t,e,i){const o=H(t,e.textContent);if(null!==o){let s=e;for(let n=0,r=o.length;n<r;++n){const r=o[n],a=0===n?e:s.parentNode.insertBefore(document.createTextNode(""),s.nextSibling);"string"==typeof r?a.textContent=r:(a.textContent=" ",t.captureContentBinding(r)),s=a,t.targetIndex++,a!==e&&i.nextNode()}t.targetIndex--}}const B=document.createRange();class N{constructor(t,e){this.fragment=t,this.behaviors=e,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=t.parentNode,i=this.lastChild;let o,s=this.firstChild;for(;s!==i;)o=s.nextSibling,e.insertBefore(s,t),s=o;e.insertBefore(i,t)}}remove(){const t=this.fragment,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.appendChild(o),o=i;t.appendChild(e)}dispose(){const t=this.firstChild.parentNode,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.removeChild(o),o=i;t.removeChild(e);const s=this.behaviors,n=this.source;for(let t=0,e=s.length;t<e;++t)s[t].unbind(n)}bind(t,e){const i=this.behaviors;if(this.source!==t)if(null!==this.source){const o=this.source;this.source=t,this.context=e;for(let s=0,n=i.length;s<n;++s){const n=i[s];n.unbind(o),n.bind(t,e)}}else{this.source=t,this.context=e;for(let o=0,s=i.length;o<s;++o)i[o].bind(t,e)}}unbind(){if(null===this.source)return;const t=this.behaviors,e=this.source;for(let i=0,o=t.length;i<o;++i)t[i].unbind(e);this.source=null}static disposeContiguousBatch(t){if(0!==t.length){B.setStartBefore(t[0].firstChild),B.setEndAfter(t[t.length-1].lastChild),B.deleteContents();for(let e=0,i=t.length;e<i;++e){const i=t[e],o=i.behaviors,s=i.source;for(let t=0,e=o.length;t<e;++t)o[t].unbind(s)}}}}class j{constructor(t,e){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=e}create(t){if(null===this.fragment){let t;const e=this.html;if("string"==typeof e){t=document.createElement("template"),t.innerHTML=h.createHTML(e);const i=t.content.firstElementChild;null!==i&&"TEMPLATE"===i.tagName&&(t=i)}else t=e;const i=function(t,e){const i=t.content;document.adoptNode(i);const o=A.borrow(e);z(o,t,!0);const s=o.behaviorFactories;o.reset();const n=h.createTemplateWalker(i);let r;for(;r=n.nextNode();)switch(o.targetIndex++,r.nodeType){case 1:z(o,r);break;case 3:M(o,r,n);break;case 8:h.isMarker(r)&&o.addFactory(e[h.extractDirectiveIndexFromMarker(r)])}let a=0;(h.isMarker(i.firstChild)||1===i.childNodes.length&&e.length)&&(i.insertBefore(document.createComment(""),i.firstChild),a=-1);const l=o.behaviorFactories;return o.release(),{fragment:i,viewBehaviorFactories:l,hostBehaviorFactories:s,targetOffset:a}}(t,this.directives);this.fragment=i.fragment,this.viewBehaviorFactories=i.viewBehaviorFactories,this.hostBehaviorFactories=i.hostBehaviorFactories,this.targetOffset=i.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}const e=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,o=new Array(this.behaviorCount),s=h.createTemplateWalker(e);let n=0,r=this.targetOffset,a=s.nextNode();for(let t=i.length;n<t;++n){const t=i[n],e=t.targetIndex;for(;null!==a;){if(r===e){o[n]=t.createBehavior(a);break}a=s.nextNode(),r++}}if(this.hasHostBehaviors){const e=this.hostBehaviorFactories;for(let i=0,s=e.length;i<s;++i,++n)o[n]=e[i].createBehavior(t)}return new N(e,o)}render(t,e,i){"string"==typeof e&&(e=document.getElementById(e)),void 0===i&&(i=e);const o=this.create(i);return o.bind(t,v),o.appendTo(e),o}}const U=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function q(t,...e){const i=[];let o="";for(let s=0,n=t.length-1;s<n;++s){const n=t[s];let r=e[s];if(o+=n,r instanceof j){const t=r;r=()=>t}if("function"==typeof r&&(r=new E(r)),r instanceof y){const t=U.exec(n);null!==t&&(r.targetName=t[2])}r instanceof b?(o+=r.createPlaceholder(i.length),i.push(r)):o+=r}return o+=t[t.length-1],new j(o,i)}class _{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=null===this.behaviors?t:this.behaviors.concat(t),this}}function G(t){return t.map(t=>t instanceof _?G(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}function W(t){return t.map(t=>t instanceof _?t.behaviors:null).reduce((t,e)=>null===e?t:(null===t&&(t=[]),t.concat(e)),null)}_.create=(()=>{if(h.supportsAdoptedStyleSheets){const t=new Map;return e=>new K(e,t)}return t=>new Y(t)})();class K extends _{constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=W(t)}get styleSheets(){if(void 0===this._styleSheets){const t=this.styles,e=this.styleSheetCache;this._styleSheets=G(t).map(t=>{if(t instanceof CSSStyleSheet)return t;let i=e.get(t);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(t),e.set(t,i)),i})}return this._styleSheets}addStylesTo(t){t.adoptedStyleSheets=[...t.adoptedStyleSheets,...this.styleSheets],super.addStylesTo(t)}removeStylesFrom(t){const e=this.styleSheets;t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>-1===e.indexOf(t)),super.removeStylesFrom(t)}}let X=0;class Y extends _{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=W(t),this.styleSheets=G(t),this.styleClass="fast-style-class-"+ ++X}addStylesTo(t){const e=this.styleSheets,i=this.styleClass;t=this.normalizeTarget(t);for(let o=0;o<e.length;o++){const s=document.createElement("style");s.innerHTML=e[o],s.className=i,t.append(s)}super.addStylesTo(t)}removeStylesFrom(t){const e=(t=this.normalizeTarget(t)).querySelectorAll("."+this.styleClass);for(let i=0,o=e.length;i<o;++i)t.removeChild(e[i]);super.removeStylesFrom(t)}isAttachedTo(t){return super.isAttachedTo(this.normalizeTarget(t))}normalizeTarget(t){return t===document?document.body:t}}const Q={toView:t=>t?"true":"false",fromView:t=>null!=t&&"false"!==t&&!1!==t&&0!==t},Z={toView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e.toString()},fromView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e}};class J{constructor(t,e,i=e.toLowerCase(),o="reflect",s){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=o,this.converter=s,this.fieldName="_"+e,this.callbackName=e+"Changed",this.hasCallback=this.callbackName in t.prototype,"boolean"===o&&void 0===s&&(this.converter=Q)}setValue(t,e){const i=t[this.fieldName],o=this.converter;void 0!==o&&(e=o.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return p.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||"fromView"===e||h.queueUpdate(()=>{i.add(t);const o=t[this.fieldName];switch(e){case"reflect":const e=this.converter;h.setAttribute(t,this.attribute,void 0!==e?e.toView(o):o);break;case"boolean":h.setBooleanAttribute(t,this.attribute,o)}i.delete(t)})}static collect(t,...e){const i=[];e.push(t.attributes);for(let o=0,s=e.length;o<s;++o){const s=e[o];if(void 0!==s)for(let e=0,o=s.length;e<o;++e){const o=s[e];"string"==typeof o?i.push(new J(t,o)):i.push(new J(t,o.property,o.attribute,o.mode,o.converter))}}return i}}function tt(t,e){let i;function o(t,e){arguments.length>1&&(i.property=e);const o=t.constructor.attributes||(t.constructor.attributes=[]);o.push(i)}return arguments.length>1?(i={},void o(t,e)):(i=void 0===t?{}:t,o)}const et={mode:"open"},it={},ot=i.getById(4,()=>{const t=new Map;return Object.freeze({register:e=>!t.has(e.type)&&(t.set(e.type,e),!0),getByType:e=>t.get(e)})});class st{constructor(t,e=t.definition){"string"==typeof e&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;const i=J.collect(t,e.attributes),o=new Array(i.length),s={},n={};for(let t=0,e=i.length;t<e;++t){const e=i[t];o[t]=e.attribute,s[e.name]=e,n[e.attribute]=e}this.attributes=i,this.observedAttributes=o,this.propertyLookup=s,this.attributeLookup=n,this.shadowOptions=void 0===e.shadowOptions?et:null===e.shadowOptions?void 0:Object.assign(Object.assign({},et),e.shadowOptions),this.elementOptions=void 0===e.elementOptions?it:Object.assign(Object.assign({},it),e.elementOptions),this.styles=void 0===e.styles?void 0:Array.isArray(e.styles)?_.create(e.styles):e.styles instanceof _?e.styles:_.create([e.styles])}get isDefined(){return!!ot.getByType(this.type)}define(t=customElements){const e=this.type;if(ot.register(this)){const t=this.attributes,i=e.prototype;for(let e=0,o=t.length;e<o;++e)p.defineProperty(i,t[e]);Reflect.defineProperty(e,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return t.get(this.name)||t.define(this.name,e,this.elementOptions),this}}st.forType=ot.getByType;const nt=new WeakMap,rt={bubbles:!0,composed:!0,cancelable:!0};function at(t){return t.shadowRoot||nt.get(t)||null}class lt extends u{constructor(t,e){super(t),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=t,this.definition=e;const i=e.shadowOptions;if(void 0!==i){const e=t.attachShadow(i);"closed"===i.mode&&nt.set(t,e)}const o=p.getAccessors(t);if(o.length>0){const e=this.boundObservables=Object.create(null);for(let i=0,s=o.length;i<s;++i){const s=o[i].name,n=t[s];void 0!==n&&(delete t[s],e[s]=n)}}}get isConnected(){return p.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,p.notify(this,"isConnected")}get template(){return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get styles(){return this._styles}set styles(t){this._styles!==t&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=t,this.needsInitialization||null===t||this.addStyles(t))}addStyles(t){const e=at(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.append(t);else if(!t.isAttachedTo(e)){const i=t.behaviors;t.addStylesTo(e),null!==i&&this.addBehaviors(i)}}removeStyles(t){const e=at(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.removeChild(t);else if(t.isAttachedTo(e)){const i=t.behaviors;t.removeStylesFrom(e),null!==i&&this.removeBehaviors(i)}}addBehaviors(t){const e=this.behaviors||(this.behaviors=new Map),i=t.length,o=[];for(let s=0;s<i;++s){const i=t[s];e.has(i)?e.set(i,e.get(i)+1):(e.set(i,1),o.push(i))}if(this._isConnected){const t=this.element;for(let e=0;e<o.length;++e)o[e].bind(t,v)}}removeBehaviors(t,e=!1){const i=this.behaviors;if(null===i)return;const o=t.length,s=[];for(let n=0;n<o;++n){const o=t[n];if(i.has(o)){const t=i.get(o)-1;0===t||e?i.delete(o)&&s.push(o):i.set(o,t)}}if(this._isConnected){const t=this.element;for(let e=0;e<s.length;++e)s[e].unbind(t)}}onConnectedCallback(){if(this._isConnected)return;const t=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(t,v);const e=this.behaviors;if(null!==e)for(const[i]of e)i.bind(t,v);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const t=this.view;null!==t&&t.unbind();const e=this.behaviors;if(null!==e){const t=this.element;for(const[i]of e)i.unbind(t)}}onAttributeChangedCallback(t,e,i){const o=this.definition.attributeLookup[t];void 0!==o&&o.onAttributeChangedCallback(this.element,i)}emit(t,e,i){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},rt),i)))}finishInitialization(){const t=this.element,e=this.boundObservables;if(null!==e){const i=Object.keys(e);for(let o=0,s=i.length;o<s;++o){const s=i[o];t[s]=e[s]}this.boundObservables=null}const i=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():i.template&&(this._template=i.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():i.styles&&(this._styles=i.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(t){const e=this.element,i=at(e)||e;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||h.removeChildNodes(i),t&&(this.view=t.render(e,i,e))}static forCustomElement(t){const e=t.$fastController;if(void 0!==e)return e;const i=st.forType(t.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return t.$fastController=new lt(t,i)}}function ct(t){return class extends t{constructor(){super(),lt.forCustomElement(this)}$emit(t,e,i){return this.$fastController.emit(t,e,i)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(t,e,i){this.$fastController.onAttributeChangedCallback(t,e,i)}}}const ht=Object.assign(ct(HTMLElement),{from:t=>ct(t),define:(t,e)=>new st(t,e).define().type});class dt{createCSS(){return""}createBehavior(){}}function ut(t,e){const i=[];let o="";const s=[];for(let n=0,r=t.length-1;n<r;++n){o+=t[n];let r=e[n];if(r instanceof dt){const t=r.createBehavior();r=r.createCSS(),t&&s.push(t)}r instanceof _||r instanceof CSSStyleSheet?(""!==o.trim()&&(i.push(o),o=""),i.push(r)):o+=r}return o+=t[t.length-1],""!==o.trim()&&i.push(o),{styles:i,behaviors:s}}function pt(t,...e){const{styles:i,behaviors:o}=ut(t,e),s=_.create(i);return o.length&&s.withBehaviors(...o),s}class gt extends dt{constructor(t,e){super(),this.behaviors=e,this.css="";const i=t.reduce((t,e)=>("string"==typeof e?this.css+=e:t.push(e),t),[]);i.length&&(this.styles=_.create(i))}createBehavior(){return this}createCSS(){return this.css}bind(t){this.styles&&t.$fastController.addStyles(this.styles),this.behaviors.length&&t.$fastController.addBehaviors(this.behaviors)}unbind(t){this.styles&&t.$fastController.removeStyles(this.styles),this.behaviors.length&&t.$fastController.removeBehaviors(this.behaviors)}}function ft(t,...e){const{styles:i,behaviors:o}=ut(t,e);return new gt(i,o)}function mt(t,e,i){return{index:t,removed:e,addedCount:i}}function vt(t,e,i,s,n,r){let a=0,l=0;const c=Math.min(i-e,r-n);if(0===e&&0===n&&(a=function(t,e,i){for(let o=0;o<i;++o)if(t[o]!==e[o])return o;return i}(t,s,c)),i===t.length&&r===s.length&&(l=function(t,e,i){let o=t.length,s=e.length,n=0;for(;n<i&&t[--o]===e[--s];)n++;return n}(t,s,c-a)),n+=a,r-=l,(i-=l)-(e+=a)==0&&r-n==0)return o;if(e===i){const t=mt(e,[],0);for(;n<r;)t.removed.push(s[n++]);return[t]}if(n===r)return[mt(e,[],i-e)];const h=function(t){let e=t.length-1,i=t[0].length-1,o=t[e][i];const s=[];for(;e>0||i>0;){if(0===e){s.push(2),i--;continue}if(0===i){s.push(3),e--;continue}const n=t[e-1][i-1],r=t[e-1][i],a=t[e][i-1];let l;l=r<a?r<n?r:n:a<n?a:n,l===n?(n===o?s.push(0):(s.push(1),o=n),e--,i--):l===r?(s.push(3),e--,o=r):(s.push(2),i--,o=a)}return s.reverse(),s}(function(t,e,i,o,s,n){const r=n-s+1,a=i-e+1,l=new Array(r);let c,h;for(let t=0;t<r;++t)l[t]=new Array(a),l[t][0]=t;for(let t=0;t<a;++t)l[0][t]=t;for(let i=1;i<r;++i)for(let n=1;n<a;++n)t[e+n-1]===o[s+i-1]?l[i][n]=l[i-1][n-1]:(c=l[i-1][n]+1,h=l[i][n-1]+1,l[i][n]=c<h?c:h);return l}(t,e,i,s,n,r)),d=[];let u=void 0,p=e,g=n;for(let t=0;t<h.length;++t)switch(h[t]){case 0:void 0!==u&&(d.push(u),u=void 0),p++,g++;break;case 1:void 0===u&&(u=mt(p,[],0)),u.addedCount++,p++,u.removed.push(s[g]),g++;break;case 2:void 0===u&&(u=mt(p,[],0)),u.addedCount++,p++;break;case 3:void 0===u&&(u=mt(p,[],0)),u.removed.push(s[g]),g++}return void 0!==u&&d.push(u),d}const bt=Array.prototype.push;function yt(t,e,i,o){const s=mt(e,i,o);let n=!1,r=0;for(let e=0;e<t.length;e++){const i=t[e];if(i.index+=r,n)continue;const o=(a=s.index,l=s.index+s.removed.length,c=i.index,h=i.index+i.addedCount,l<c||h<a?-1:l===c||h===a?0:a<c?l<h?l-c:h-c:h<l?h-a:l-a);if(o>=0){t.splice(e,1),e--,r-=i.addedCount-i.removed.length,s.addedCount+=i.addedCount-o;const a=s.removed.length+i.removed.length-o;if(s.addedCount||a){let t=i.removed;if(s.index<i.index){const e=s.removed.slice(0,i.index-s.index);bt.apply(e,t),t=e}if(s.index+s.removed.length>i.index+i.addedCount){const e=s.removed.slice(i.index+i.addedCount-s.index);bt.apply(t,e)}s.removed=t,i.index<s.index&&(s.index=i.index)}else n=!0}else if(s.index<i.index){n=!0,t.splice(e,0,s),e++;const o=s.addedCount-s.removed.length;i.index+=o,r+=o}}var a,l,c,h;n||t.push(s)}function xt(t,e){let i=[];const o=function(t){const e=[];for(let i=0,o=t.length;i<o;i++){const o=t[i];yt(e,o.index,o.removed,o.addedCount)}return e}(e);for(let e=0,s=o.length;e<s;++e){const s=o[e];1!==s.addedCount||1!==s.removed.length?i=i.concat(vt(t,s.index,s.index+s.addedCount,s.removed,0,s.removed.length)):s.removed[0]!==t[s.index]&&i.push(s)}return i}let $t=!1;function wt(t,e){let i=t.index;const o=e.length;return i>o?i=o-t.addedCount:i<0&&(i=o+t.removed.length+i-t.addedCount),i<0&&(i=0),t.index=i,t}class kt extends d{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}subscribe(t){this.flush(),super.subscribe(t)}addSplice(t){void 0===this.splices?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,h.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,h.queueUpdate(this))}flush(){const t=this.splices,e=this.oldCollection;if(void 0===t&&void 0===e)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const i=void 0===e?xt(this.source,t):vt(this.source,0,this.source.length,e,0,e.length);this.notify(i)}}class Ct{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}}function It(t){return new x("fast-ref",Ct,t)}function Ft(t,e){const i="function"==typeof e?e:()=>e;return(e,o)=>t(e,o)?i(e,o):null}const Dt=Object.freeze({positioning:!1,recycle:!0});function Tt(t,e,i,o){t.bind(e[i],o)}function St(t,e,i,o){const s=Object.create(o);s.index=i,s.length=e.length,t.bind(e[i],s)}class Ot{constructor(t,e,i,o,s,n){this.location=t,this.itemsBinding=e,this.templateBinding=o,this.options=n,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=Tt,this.itemsBindingObserver=p.binding(e,this,i),this.templateBindingObserver=p.binding(o,this,s),n.positioning&&(this.bindView=St)}bind(t,e){this.source=t,this.originalContext=e,this.childContext=Object.create(e),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(t,e){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(e)}observeItems(t=!1){if(!this.items)return void(this.items=o);const e=this.itemsObserver,i=this.itemsObserver=p.getNotifier(this.items),s=e!==i;s&&null!==e&&e.unsubscribe(this),(s||t)&&i.subscribe(this)}updateViews(t){const e=this.childContext,i=this.views,o=this.bindView,s=this.items,n=this.template,r=this.options.recycle,a=[];let l=0,c=0;for(let h=0,d=t.length;h<d;++h){const d=t[h],u=d.removed;let p=0,g=d.index;const f=g+d.addedCount,m=i.splice(d.index,u.length);for(c=a.length+m.length;g<f;++g){const t=i[g],h=t?t.firstChild:this.location;let d;r&&c>0?(p<=c&&m.length>0?(d=m[p],p++):(d=a[l],l++),c--):d=n.create(),i.splice(g,0,d),o(d,s,g,e),d.insertBefore(h)}m[p]&&a.push(...m.slice(p))}for(let t=l,e=a.length;t<e;++t)a[t].dispose();if(this.options.positioning)for(let t=0,e=i.length;t<e;++t){const o=i[t].context;o.length=e,o.index=t}}refreshAllViews(t=!1){const e=this.items,i=this.childContext,o=this.template,s=this.location,n=this.bindView;let r=e.length,a=this.views,l=a.length;if(0!==r&&!t&&this.options.recycle||(N.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(r);for(let t=0;t<r;++t){const r=o.create();n(r,e,t,i),a[t]=r,r.insertBefore(s)}}else{let t=0;for(;t<r;++t)if(t<l){n(a[t],e,t,i)}else{const r=o.create();n(r,e,t,i),a.push(r),r.insertBefore(s)}const c=a.splice(t,l-t);for(t=0,r=c.length;t<r;++t)c[t].dispose()}}unbindAllViews(){const t=this.views;for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}class Et extends b{constructor(t,e,i){super(),this.itemsBinding=t,this.templateBinding=e,this.options=i,this.createPlaceholder=h.createBlockPlaceholder,function(){if($t)return;$t=!0,p.setArrayObserverFactory(t=>new kt(t));const t=Array.prototype;if(t.$fastPatch)return;Reflect.defineProperty(t,"$fastPatch",{value:1,enumerable:!1});const e=t.pop,i=t.push,o=t.reverse,s=t.shift,n=t.sort,r=t.splice,a=t.unshift;t.pop=function(){const t=this.length>0,i=e.apply(this,arguments),o=this.$fastController;return void 0!==o&&t&&o.addSplice(mt(this.length,[i],0)),i},t.push=function(){const t=i.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(wt(mt(this.length-arguments.length,[],arguments.length),this)),t},t.reverse=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=o.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.shift=function(){const t=this.length>0,e=s.apply(this,arguments),i=this.$fastController;return void 0!==i&&t&&i.addSplice(mt(0,[e],0)),e},t.sort=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=n.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.splice=function(){const t=r.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(wt(mt(+arguments[0],t,arguments.length>2?arguments.length-2:0),this)),t},t.unshift=function(){const t=a.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(wt(mt(0,[],arguments.length),this)),t}}(),this.isItemsBindingVolatile=p.isVolatileBinding(t),this.isTemplateBindingVolatile=p.isVolatileBinding(e)}createBehavior(t){return new Ot(t,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function Vt(t,e,i=Dt){return new Et(t,"function"==typeof e?e:()=>e,Object.assign(Object.assign({},Dt),i))}function Rt(t){return t?function(e,i,o){return 1===e.nodeType&&e.matches(t)}:function(t,e,i){return 1===t.nodeType}}class At{constructor(t,e){this.target=t,this.options=e,this.source=null}bind(t){const e=this.options.property;this.shouldUpdate=p.getAccessors(t).some(t=>t.name===e),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(o),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return void 0!==this.options.filter&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class Lt extends At{constructor(t,e){super(t,e)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function Pt(t){return"string"==typeof t&&(t={property:t}),new x("fast-slotted",Lt,t)}class Ht extends At{constructor(t,e){super(t,e),this.observer=null,e.childList=!0}observe(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function zt(t){return"string"==typeof t&&(t={property:t}),new x("fast-children",Ht,t)}class Mt{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const Bt=(t,e)=>q`<span part="end" ${It("endContainer")} class=${t=>e.end?"end":void 0}><slot name="end" ${It("end")} @slotchange="${t=>t.handleEndContentChange()}">${e.end||""}</slot></span>`,Nt=(t,e)=>q`<span part="start" ${It("startContainer")} class="${t=>e.start?"start":void 0}"><slot name="start" ${It("start")} @slotchange="${t=>t.handleStartContentChange()}">${e.start||""}</slot></span>`,jt=q`<span part="end" ${It("endContainer")}><slot name="end" ${It("end")} @slotchange="${t=>t.handleEndContentChange()}"></slot></span>`,Ut=q`<span part="start" ${It("startContainer")}><slot name="start" ${It("start")} @slotchange="${t=>t.handleStartContentChange()}"></slot></span>`;
|
|
1
|
+
const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(t){return{}}}();void 0===t.trustedTypes&&(t.trustedTypes={createPolicy:(t,e)=>e});const e={configurable:!1,enumerable:!1,writable:!1};void 0===t.FAST&&Reflect.defineProperty(t,"FAST",Object.assign({value:Object.create(null)},e));const i=t.FAST;if(void 0===i.getById){const t=Object.create(null);Reflect.defineProperty(i,"getById",Object.assign({value(e,i){let o=t[e];return void 0===o&&(o=i?t[e]=i():null),o}},e))}const o=Object.freeze([]),s=t.FAST.getById(1,()=>{const e=[],i=[];function o(){if(i.length)throw i.shift()}function s(t){try{t.call()}catch(t){i.push(t),setTimeout(o,0)}}function n(){let t=0;for(;t<e.length;)if(s(e[t]),t++,t>1024){for(let i=0,o=e.length-t;i<o;i++)e[i]=e[i+t];e.length-=t,t=0}e.length=0}return Object.freeze({enqueue:function(i){e.length<1&&t.requestAnimationFrame(n),e.push(i)},process:n})}),n=t.trustedTypes.createPolicy("fast-html",{createHTML:t=>t});let r=n;const a="fast-"+Math.random().toString(36).substring(2,8),l=a+"{",c="}"+a,h=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(r!==n)throw new Error("The HTML policy can only be set once.");r=t},createHTML:t=>r.createHTML(t),isMarker:t=>t&&8===t.nodeType&&t.data.startsWith(a),extractDirectiveIndexFromMarker:t=>parseInt(t.data.replace(a+":","")),createInterpolationPlaceholder:t=>`${l}${t}${c}`,createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder:t=>`\x3c!--${a}:${t}--\x3e`,queueUpdate:s.enqueue,processUpdates:s.process,nextUpdate:()=>new Promise(s.enqueue),setAttribute(t,e,i){null==i?t.removeAttribute(e):t.setAttribute(e,i)},setBooleanAttribute(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)},removeChildNodes(t){for(let e=t.firstChild;null!==e;e=t.firstChild)t.removeChild(e)},createTemplateWalker:t=>document.createTreeWalker(t,133,null,!1)});class d{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return void 0===this.spillover?this.sub1===t||this.sub2===t:-1!==this.spillover.indexOf(t)}subscribe(t){const e=this.spillover;if(void 0===e){if(this.has(t))return;if(void 0===this.sub1)return void(this.sub1=t);if(void 0===this.sub2)return void(this.sub2=t);this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else{-1===e.indexOf(t)&&e.push(t)}}unsubscribe(t){const e=this.spillover;if(void 0===e)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const i=e.indexOf(t);-1!==i&&e.splice(i,1)}}notify(t){const e=this.spillover,i=this.source;if(void 0===e){const e=this.sub1,o=this.sub2;void 0!==e&&e.handleChange(i,t),void 0!==o&&o.handleChange(i,t)}else for(let o=0,s=e.length;o<s;++o)e[o].handleChange(i,t)}}class u{constructor(t){this.subscribers={},this.sourceSubscribers=null,this.source=t}notify(t){var e;const i=this.subscribers[t];void 0!==i&&i.notify(t),null===(e=this.sourceSubscribers)||void 0===e||e.notify(t)}subscribe(t,e){var i;if(e){let i=this.subscribers[e];void 0===i&&(this.subscribers[e]=i=new d(this.source)),i.subscribe(t)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new d(this.source),this.sourceSubscribers.subscribe(t)}unsubscribe(t,e){var i;if(e){const i=this.subscribers[e];void 0!==i&&i.unsubscribe(t)}else null===(i=this.sourceSubscribers)||void 0===i||i.unsubscribe(t)}}const p=i.getById(2,()=>{const t=/(:|&&|\|\||if)/,e=new WeakMap,i=new WeakMap,o=h.queueUpdate;let s=void 0,n=t=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function r(t){let i=t.$fastController||e.get(t);return void 0===i&&(Array.isArray(t)?i=n(t):e.set(t,i=new u(t))),i}function a(t){let e=i.get(t);if(void 0===e){let o=Reflect.getPrototypeOf(t);for(;void 0===e&&null!==o;)e=i.get(o),o=Reflect.getPrototypeOf(o);e=void 0===e?[]:e.slice(0),i.set(t,e)}return e}class l{constructor(t){this.name=t,this.field="_"+t,this.callback=t+"Changed"}getValue(t){return void 0!==s&&s.watch(t,this.name),t[this.field]}setValue(t,e){const i=this.field,o=t[i];if(o!==e){t[i]=e;const s=t[this.callback];"function"==typeof s&&s.call(t,o,e),r(t).notify(this.name)}}}class c extends d{constructor(t,e,i=!1){super(t,e),this.binding=t,this.isVolatileBinding=i,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(t,e){this.needsRefresh&&null!==this.last&&this.disconnect();const i=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const o=this.binding(t,e);return s=i,o}disconnect(){if(null!==this.last){let t=this.first;for(;void 0!==t;)t.notifier.unsubscribe(this,t.propertyName),t=t.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(t,e){const i=this.last,o=r(t),n=null===i?this.first:{};if(n.propertySource=t,n.propertyName=e,n.notifier=o,o.subscribe(this,e),null!==i){if(!this.needsRefresh){let e;s=void 0,e=i.propertySource[i.propertyName],s=this,t===e&&(this.needsRefresh=!0)}i.next=n}this.last=n}handleChange(){this.needsQueue&&(this.needsQueue=!1,o(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let t=this.first;return{next:()=>{const e=t;return void 0===e?{value:void 0,done:!0}:(t=t.next,{value:e,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(t){n=t},getNotifier:r,track(t,e){void 0!==s&&s.watch(t,e)},trackVolatile(){void 0!==s&&(s.needsRefresh=!0)},notify(t,e){r(t).notify(e)},defineProperty(t,e){"string"==typeof e&&(e=new l(e)),a(t).push(e),Reflect.defineProperty(t,e.name,{enumerable:!0,get:function(){return e.getValue(this)},set:function(t){e.setValue(this,t)}})},getAccessors:a,binding(t,e,i=this.isVolatileBinding(t)){return new c(t,e,i)},isVolatileBinding:e=>t.test(e.toString())})});function g(t,e){p.defineProperty(t,e)}const f=i.getById(3,()=>{let t=null;return{get:()=>t,set(e){t=e}}});class m{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return f.get()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){f.set(t)}}p.defineProperty(m.prototype,"index"),p.defineProperty(m.prototype,"length");const v=Object.seal(new m);class b{constructor(){this.targetIndex=0}}class y extends b{constructor(){super(...arguments),this.createPlaceholder=h.createInterpolationPlaceholder}}class x extends b{constructor(t,e,i){super(),this.name=t,this.behavior=e,this.options=i}createPlaceholder(t){return h.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function $(t,e){this.source=t,this.context=e,null===this.bindingObserver&&(this.bindingObserver=p.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(t,e))}function w(t,e){this.source=t,this.context=e,this.target.addEventListener(this.targetName,this)}function k(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function C(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}function I(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function F(t){h.setAttribute(this.target,this.targetName,t)}function D(t){h.setBooleanAttribute(this.target,this.targetName,t)}function T(t){if(null==t&&(t=""),t.create){this.target.textContent="";let e=this.target.$fastView;void 0===e?e=t.create():this.target.$fastTemplate!==t&&(e.isComposed&&(e.remove(),e.unbind()),e=t.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=t)}else{const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=t}}function S(t){this.target[this.targetName]=t}function O(t){const e=this.classVersions||Object.create(null),i=this.target;let o=this.version||0;if(null!=t&&t.length){const s=t.split(/\s+/);for(let t=0,n=s.length;t<n;++t){const n=s[t];""!==n&&(e[n]=o,i.classList.add(n))}}if(this.classVersions=e,this.version=o+1,0!==o){o-=1;for(const t in e)e[t]===o&&i.classList.remove(t)}}class E extends y{constructor(t){super(),this.binding=t,this.bind=$,this.unbind=k,this.updateTarget=F,this.isBindingVolatile=p.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(t){if(this.originalTargetName=t,void 0!==t)switch(t[0]){case":":if(this.cleanedTargetName=t.substr(1),this.updateTarget=S,"innerHTML"===this.cleanedTargetName){const t=this.binding;this.binding=(e,i)=>h.createHTML(t(e,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=D;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=w,this.unbind=I;break;default:this.cleanedTargetName=t,"class"===t&&(this.updateTarget=O)}}targetAtContent(){this.updateTarget=T,this.unbind=C}createBehavior(t){return new V(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class V{constructor(t,e,i,o,s,n,r){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=i,this.bind=o,this.unbind=s,this.updateTarget=n,this.targetName=r}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){m.setEvent(t);const e=this.binding(this.source,this.context);m.setEvent(null),!0!==e&&t.preventDefault()}}let R=null;class A{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){R=this}static borrow(t){const e=R||new A;return e.directives=t,e.reset(),R=null,e}}function L(t){if(1===t.length)return t[0];let e;const i=t.length,o=t.map(t=>"string"==typeof t?()=>t:(e=t.targetName||e,t.binding)),s=new E((t,e)=>{let s="";for(let n=0;n<i;++n)s+=o[n](t,e);return s});return s.targetName=e,s}const P=c.length;function z(t,e){const i=e.split(l);if(1===i.length)return null;const o=[];for(let e=0,s=i.length;e<s;++e){const s=i[e],n=s.indexOf(c);let r;if(-1===n)r=s;else{const e=parseInt(s.substring(0,n));o.push(t.directives[e]),r=s.substring(n+P)}""!==r&&o.push(r)}return o}function H(t,e,i=!1){const o=e.attributes;for(let s=0,n=o.length;s<n;++s){const r=o[s],a=r.value,l=z(t,a);let c=null;null===l?i&&(c=new E(()=>a),c.targetName=r.name):c=L(l),null!==c&&(e.removeAttributeNode(r),s--,n--,t.addFactory(c))}}function M(t,e,i){const o=z(t,e.textContent);if(null!==o){let s=e;for(let n=0,r=o.length;n<r;++n){const r=o[n],a=0===n?e:s.parentNode.insertBefore(document.createTextNode(""),s.nextSibling);"string"==typeof r?a.textContent=r:(a.textContent=" ",t.captureContentBinding(r)),s=a,t.targetIndex++,a!==e&&i.nextNode()}t.targetIndex--}}const B=document.createRange();class N{constructor(t,e){this.fragment=t,this.behaviors=e,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=t.parentNode,i=this.lastChild;let o,s=this.firstChild;for(;s!==i;)o=s.nextSibling,e.insertBefore(s,t),s=o;e.insertBefore(i,t)}}remove(){const t=this.fragment,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.appendChild(o),o=i;t.appendChild(e)}dispose(){const t=this.firstChild.parentNode,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.removeChild(o),o=i;t.removeChild(e);const s=this.behaviors,n=this.source;for(let t=0,e=s.length;t<e;++t)s[t].unbind(n)}bind(t,e){const i=this.behaviors;if(this.source!==t)if(null!==this.source){const o=this.source;this.source=t,this.context=e;for(let s=0,n=i.length;s<n;++s){const n=i[s];n.unbind(o),n.bind(t,e)}}else{this.source=t,this.context=e;for(let o=0,s=i.length;o<s;++o)i[o].bind(t,e)}}unbind(){if(null===this.source)return;const t=this.behaviors,e=this.source;for(let i=0,o=t.length;i<o;++i)t[i].unbind(e);this.source=null}static disposeContiguousBatch(t){if(0!==t.length){B.setStartBefore(t[0].firstChild),B.setEndAfter(t[t.length-1].lastChild),B.deleteContents();for(let e=0,i=t.length;e<i;++e){const i=t[e],o=i.behaviors,s=i.source;for(let t=0,e=o.length;t<e;++t)o[t].unbind(s)}}}}class j{constructor(t,e){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=e}create(t){if(null===this.fragment){let t;const e=this.html;if("string"==typeof e){t=document.createElement("template"),t.innerHTML=h.createHTML(e);const i=t.content.firstElementChild;null!==i&&"TEMPLATE"===i.tagName&&(t=i)}else t=e;const i=function(t,e){const i=t.content;document.adoptNode(i);const o=A.borrow(e);H(o,t,!0);const s=o.behaviorFactories;o.reset();const n=h.createTemplateWalker(i);let r;for(;r=n.nextNode();)switch(o.targetIndex++,r.nodeType){case 1:H(o,r);break;case 3:M(o,r,n);break;case 8:h.isMarker(r)&&o.addFactory(e[h.extractDirectiveIndexFromMarker(r)])}let a=0;(h.isMarker(i.firstChild)||1===i.childNodes.length&&e.length)&&(i.insertBefore(document.createComment(""),i.firstChild),a=-1);const l=o.behaviorFactories;return o.release(),{fragment:i,viewBehaviorFactories:l,hostBehaviorFactories:s,targetOffset:a}}(t,this.directives);this.fragment=i.fragment,this.viewBehaviorFactories=i.viewBehaviorFactories,this.hostBehaviorFactories=i.hostBehaviorFactories,this.targetOffset=i.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}const e=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,o=new Array(this.behaviorCount),s=h.createTemplateWalker(e);let n=0,r=this.targetOffset,a=s.nextNode();for(let t=i.length;n<t;++n){const t=i[n],e=t.targetIndex;for(;null!==a;){if(r===e){o[n]=t.createBehavior(a);break}a=s.nextNode(),r++}}if(this.hasHostBehaviors){const e=this.hostBehaviorFactories;for(let i=0,s=e.length;i<s;++i,++n)o[n]=e[i].createBehavior(t)}return new N(e,o)}render(t,e,i){"string"==typeof e&&(e=document.getElementById(e)),void 0===i&&(i=e);const o=this.create(i);return o.bind(t,v),o.appendTo(e),o}}const U=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function q(t,...e){const i=[];let o="";for(let s=0,n=t.length-1;s<n;++s){const n=t[s];let r=e[s];if(o+=n,r instanceof j){const t=r;r=()=>t}if("function"==typeof r&&(r=new E(r)),r instanceof y){const t=U.exec(n);null!==t&&(r.targetName=t[2])}r instanceof b?(o+=r.createPlaceholder(i.length),i.push(r)):o+=r}return o+=t[t.length-1],new j(o,i)}class _{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=null===this.behaviors?t:this.behaviors.concat(t),this}}function G(t){return t.map(t=>t instanceof _?G(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}function W(t){return t.map(t=>t instanceof _?t.behaviors:null).reduce((t,e)=>null===e?t:(null===t&&(t=[]),t.concat(e)),null)}_.create=(()=>{if(h.supportsAdoptedStyleSheets){const t=new Map;return e=>new K(e,t)}return t=>new Y(t)})();class K extends _{constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=W(t)}get styleSheets(){if(void 0===this._styleSheets){const t=this.styles,e=this.styleSheetCache;this._styleSheets=G(t).map(t=>{if(t instanceof CSSStyleSheet)return t;let i=e.get(t);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(t),e.set(t,i)),i})}return this._styleSheets}addStylesTo(t){t.adoptedStyleSheets=[...t.adoptedStyleSheets,...this.styleSheets],super.addStylesTo(t)}removeStylesFrom(t){const e=this.styleSheets;t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>-1===e.indexOf(t)),super.removeStylesFrom(t)}}let X=0;class Y extends _{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=W(t),this.styleSheets=G(t),this.styleClass="fast-style-class-"+ ++X}addStylesTo(t){const e=this.styleSheets,i=this.styleClass;t=this.normalizeTarget(t);for(let o=0;o<e.length;o++){const s=document.createElement("style");s.innerHTML=e[o],s.className=i,t.append(s)}super.addStylesTo(t)}removeStylesFrom(t){const e=(t=this.normalizeTarget(t)).querySelectorAll("."+this.styleClass);for(let i=0,o=e.length;i<o;++i)t.removeChild(e[i]);super.removeStylesFrom(t)}isAttachedTo(t){return super.isAttachedTo(this.normalizeTarget(t))}normalizeTarget(t){return t===document?document.body:t}}const Q={toView:t=>t?"true":"false",fromView:t=>null!=t&&"false"!==t&&!1!==t&&0!==t},Z={toView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e.toString()},fromView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e}};class J{constructor(t,e,i=e.toLowerCase(),o="reflect",s){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=o,this.converter=s,this.fieldName="_"+e,this.callbackName=e+"Changed",this.hasCallback=this.callbackName in t.prototype,"boolean"===o&&void 0===s&&(this.converter=Q)}setValue(t,e){const i=t[this.fieldName],o=this.converter;void 0!==o&&(e=o.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return p.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||"fromView"===e||h.queueUpdate(()=>{i.add(t);const o=t[this.fieldName];switch(e){case"reflect":const e=this.converter;h.setAttribute(t,this.attribute,void 0!==e?e.toView(o):o);break;case"boolean":h.setBooleanAttribute(t,this.attribute,o)}i.delete(t)})}static collect(t,...e){const i=[];e.push(t.attributes);for(let o=0,s=e.length;o<s;++o){const s=e[o];if(void 0!==s)for(let e=0,o=s.length;e<o;++e){const o=s[e];"string"==typeof o?i.push(new J(t,o)):i.push(new J(t,o.property,o.attribute,o.mode,o.converter))}}return i}}function tt(t,e){let i;function o(t,e){arguments.length>1&&(i.property=e);const o=t.constructor.attributes||(t.constructor.attributes=[]);o.push(i)}return arguments.length>1?(i={},void o(t,e)):(i=void 0===t?{}:t,o)}const et={mode:"open"},it={},ot=i.getById(4,()=>{const t=new Map;return Object.freeze({register:e=>!t.has(e.type)&&(t.set(e.type,e),!0),getByType:e=>t.get(e)})});class st{constructor(t,e=t.definition){"string"==typeof e&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;const i=J.collect(t,e.attributes),o=new Array(i.length),s={},n={};for(let t=0,e=i.length;t<e;++t){const e=i[t];o[t]=e.attribute,s[e.name]=e,n[e.attribute]=e}this.attributes=i,this.observedAttributes=o,this.propertyLookup=s,this.attributeLookup=n,this.shadowOptions=void 0===e.shadowOptions?et:null===e.shadowOptions?void 0:Object.assign(Object.assign({},et),e.shadowOptions),this.elementOptions=void 0===e.elementOptions?it:Object.assign(Object.assign({},it),e.elementOptions),this.styles=void 0===e.styles?void 0:Array.isArray(e.styles)?_.create(e.styles):e.styles instanceof _?e.styles:_.create([e.styles])}get isDefined(){return!!ot.getByType(this.type)}define(t=customElements){const e=this.type;if(ot.register(this)){const t=this.attributes,i=e.prototype;for(let e=0,o=t.length;e<o;++e)p.defineProperty(i,t[e]);Reflect.defineProperty(e,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return t.get(this.name)||t.define(this.name,e,this.elementOptions),this}}st.forType=ot.getByType;const nt=new WeakMap,rt={bubbles:!0,composed:!0,cancelable:!0};function at(t){return t.shadowRoot||nt.get(t)||null}class lt extends u{constructor(t,e){super(t),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=t,this.definition=e;const i=e.shadowOptions;if(void 0!==i){const e=t.attachShadow(i);"closed"===i.mode&&nt.set(t,e)}const o=p.getAccessors(t);if(o.length>0){const e=this.boundObservables=Object.create(null);for(let i=0,s=o.length;i<s;++i){const s=o[i].name,n=t[s];void 0!==n&&(delete t[s],e[s]=n)}}}get isConnected(){return p.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,p.notify(this,"isConnected")}get template(){return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get styles(){return this._styles}set styles(t){this._styles!==t&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=t,this.needsInitialization||null===t||this.addStyles(t))}addStyles(t){const e=at(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.append(t);else if(!t.isAttachedTo(e)){const i=t.behaviors;t.addStylesTo(e),null!==i&&this.addBehaviors(i)}}removeStyles(t){const e=at(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.removeChild(t);else if(t.isAttachedTo(e)){const i=t.behaviors;t.removeStylesFrom(e),null!==i&&this.removeBehaviors(i)}}addBehaviors(t){const e=this.behaviors||(this.behaviors=new Map),i=t.length,o=[];for(let s=0;s<i;++s){const i=t[s];e.has(i)?e.set(i,e.get(i)+1):(e.set(i,1),o.push(i))}if(this._isConnected){const t=this.element;for(let e=0;e<o.length;++e)o[e].bind(t,v)}}removeBehaviors(t,e=!1){const i=this.behaviors;if(null===i)return;const o=t.length,s=[];for(let n=0;n<o;++n){const o=t[n];if(i.has(o)){const t=i.get(o)-1;0===t||e?i.delete(o)&&s.push(o):i.set(o,t)}}if(this._isConnected){const t=this.element;for(let e=0;e<s.length;++e)s[e].unbind(t)}}onConnectedCallback(){if(this._isConnected)return;const t=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(t,v);const e=this.behaviors;if(null!==e)for(const[i]of e)i.bind(t,v);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const t=this.view;null!==t&&t.unbind();const e=this.behaviors;if(null!==e){const t=this.element;for(const[i]of e)i.unbind(t)}}onAttributeChangedCallback(t,e,i){const o=this.definition.attributeLookup[t];void 0!==o&&o.onAttributeChangedCallback(this.element,i)}emit(t,e,i){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},rt),i)))}finishInitialization(){const t=this.element,e=this.boundObservables;if(null!==e){const i=Object.keys(e);for(let o=0,s=i.length;o<s;++o){const s=i[o];t[s]=e[s]}this.boundObservables=null}const i=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():i.template&&(this._template=i.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():i.styles&&(this._styles=i.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(t){const e=this.element,i=at(e)||e;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||h.removeChildNodes(i),t&&(this.view=t.render(e,i,e))}static forCustomElement(t){const e=t.$fastController;if(void 0!==e)return e;const i=st.forType(t.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return t.$fastController=new lt(t,i)}}function ct(t){return class extends t{constructor(){super(),lt.forCustomElement(this)}$emit(t,e,i){return this.$fastController.emit(t,e,i)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(t,e,i){this.$fastController.onAttributeChangedCallback(t,e,i)}}}const ht=Object.assign(ct(HTMLElement),{from:t=>ct(t),define:(t,e)=>new st(t,e).define().type});class dt{createCSS(){return""}createBehavior(){}}function ut(t,e){const i=[];let o="";const s=[];for(let n=0,r=t.length-1;n<r;++n){o+=t[n];let r=e[n];if(r instanceof dt){const t=r.createBehavior();r=r.createCSS(),t&&s.push(t)}r instanceof _||r instanceof CSSStyleSheet?(""!==o.trim()&&(i.push(o),o=""),i.push(r)):o+=r}return o+=t[t.length-1],""!==o.trim()&&i.push(o),{styles:i,behaviors:s}}function pt(t,...e){const{styles:i,behaviors:o}=ut(t,e),s=_.create(i);return o.length&&s.withBehaviors(...o),s}class gt extends dt{constructor(t,e){super(),this.behaviors=e,this.css="";const i=t.reduce((t,e)=>("string"==typeof e?this.css+=e:t.push(e),t),[]);i.length&&(this.styles=_.create(i))}createBehavior(){return this}createCSS(){return this.css}bind(t){this.styles&&t.$fastController.addStyles(this.styles),this.behaviors.length&&t.$fastController.addBehaviors(this.behaviors)}unbind(t){this.styles&&t.$fastController.removeStyles(this.styles),this.behaviors.length&&t.$fastController.removeBehaviors(this.behaviors)}}function ft(t,...e){const{styles:i,behaviors:o}=ut(t,e);return new gt(i,o)}function mt(t,e,i){return{index:t,removed:e,addedCount:i}}function vt(t,e,i,s,n,r){let a=0,l=0;const c=Math.min(i-e,r-n);if(0===e&&0===n&&(a=function(t,e,i){for(let o=0;o<i;++o)if(t[o]!==e[o])return o;return i}(t,s,c)),i===t.length&&r===s.length&&(l=function(t,e,i){let o=t.length,s=e.length,n=0;for(;n<i&&t[--o]===e[--s];)n++;return n}(t,s,c-a)),n+=a,r-=l,(i-=l)-(e+=a)==0&&r-n==0)return o;if(e===i){const t=mt(e,[],0);for(;n<r;)t.removed.push(s[n++]);return[t]}if(n===r)return[mt(e,[],i-e)];const h=function(t){let e=t.length-1,i=t[0].length-1,o=t[e][i];const s=[];for(;e>0||i>0;){if(0===e){s.push(2),i--;continue}if(0===i){s.push(3),e--;continue}const n=t[e-1][i-1],r=t[e-1][i],a=t[e][i-1];let l;l=r<a?r<n?r:n:a<n?a:n,l===n?(n===o?s.push(0):(s.push(1),o=n),e--,i--):l===r?(s.push(3),e--,o=r):(s.push(2),i--,o=a)}return s.reverse(),s}(function(t,e,i,o,s,n){const r=n-s+1,a=i-e+1,l=new Array(r);let c,h;for(let t=0;t<r;++t)l[t]=new Array(a),l[t][0]=t;for(let t=0;t<a;++t)l[0][t]=t;for(let i=1;i<r;++i)for(let n=1;n<a;++n)t[e+n-1]===o[s+i-1]?l[i][n]=l[i-1][n-1]:(c=l[i-1][n]+1,h=l[i][n-1]+1,l[i][n]=c<h?c:h);return l}(t,e,i,s,n,r)),d=[];let u=void 0,p=e,g=n;for(let t=0;t<h.length;++t)switch(h[t]){case 0:void 0!==u&&(d.push(u),u=void 0),p++,g++;break;case 1:void 0===u&&(u=mt(p,[],0)),u.addedCount++,p++,u.removed.push(s[g]),g++;break;case 2:void 0===u&&(u=mt(p,[],0)),u.addedCount++,p++;break;case 3:void 0===u&&(u=mt(p,[],0)),u.removed.push(s[g]),g++}return void 0!==u&&d.push(u),d}const bt=Array.prototype.push;function yt(t,e,i,o){const s=mt(e,i,o);let n=!1,r=0;for(let e=0;e<t.length;e++){const i=t[e];if(i.index+=r,n)continue;const o=(a=s.index,l=s.index+s.removed.length,c=i.index,h=i.index+i.addedCount,l<c||h<a?-1:l===c||h===a?0:a<c?l<h?l-c:h-c:h<l?h-a:l-a);if(o>=0){t.splice(e,1),e--,r-=i.addedCount-i.removed.length,s.addedCount+=i.addedCount-o;const a=s.removed.length+i.removed.length-o;if(s.addedCount||a){let t=i.removed;if(s.index<i.index){const e=s.removed.slice(0,i.index-s.index);bt.apply(e,t),t=e}if(s.index+s.removed.length>i.index+i.addedCount){const e=s.removed.slice(i.index+i.addedCount-s.index);bt.apply(t,e)}s.removed=t,i.index<s.index&&(s.index=i.index)}else n=!0}else if(s.index<i.index){n=!0,t.splice(e,0,s),e++;const o=s.addedCount-s.removed.length;i.index+=o,r+=o}}var a,l,c,h;n||t.push(s)}function xt(t,e){let i=[];const o=function(t){const e=[];for(let i=0,o=t.length;i<o;i++){const o=t[i];yt(e,o.index,o.removed,o.addedCount)}return e}(e);for(let e=0,s=o.length;e<s;++e){const s=o[e];1!==s.addedCount||1!==s.removed.length?i=i.concat(vt(t,s.index,s.index+s.addedCount,s.removed,0,s.removed.length)):s.removed[0]!==t[s.index]&&i.push(s)}return i}let $t=!1;function wt(t,e){let i=t.index;const o=e.length;return i>o?i=o-t.addedCount:i<0&&(i=o+t.removed.length+i-t.addedCount),i<0&&(i=0),t.index=i,t}class kt extends d{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}subscribe(t){this.flush(),super.subscribe(t)}addSplice(t){void 0===this.splices?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,h.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,h.queueUpdate(this))}flush(){const t=this.splices,e=this.oldCollection;if(void 0===t&&void 0===e)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const i=void 0===e?xt(this.source,t):vt(this.source,0,this.source.length,e,0,e.length);this.notify(i)}}class Ct{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}}function It(t){return new x("fast-ref",Ct,t)}function Ft(t,e){const i="function"==typeof e?e:()=>e;return(e,o)=>t(e,o)?i(e,o):null}const Dt=Object.freeze({positioning:!1,recycle:!0});function Tt(t,e,i,o){t.bind(e[i],o)}function St(t,e,i,o){const s=Object.create(o);s.index=i,s.length=e.length,t.bind(e[i],s)}class Ot{constructor(t,e,i,o,s,n){this.location=t,this.itemsBinding=e,this.templateBinding=o,this.options=n,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=Tt,this.itemsBindingObserver=p.binding(e,this,i),this.templateBindingObserver=p.binding(o,this,s),n.positioning&&(this.bindView=St)}bind(t,e){this.source=t,this.originalContext=e,this.childContext=Object.create(e),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(t,e){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(e)}observeItems(t=!1){if(!this.items)return void(this.items=o);const e=this.itemsObserver,i=this.itemsObserver=p.getNotifier(this.items),s=e!==i;s&&null!==e&&e.unsubscribe(this),(s||t)&&i.subscribe(this)}updateViews(t){const e=this.childContext,i=this.views,o=this.bindView,s=this.items,n=this.template,r=this.options.recycle,a=[];let l=0,c=0;for(let h=0,d=t.length;h<d;++h){const d=t[h],u=d.removed;let p=0,g=d.index;const f=g+d.addedCount,m=i.splice(d.index,u.length);for(c=a.length+m.length;g<f;++g){const t=i[g],h=t?t.firstChild:this.location;let d;r&&c>0?(p<=c&&m.length>0?(d=m[p],p++):(d=a[l],l++),c--):d=n.create(),i.splice(g,0,d),o(d,s,g,e),d.insertBefore(h)}m[p]&&a.push(...m.slice(p))}for(let t=l,e=a.length;t<e;++t)a[t].dispose();if(this.options.positioning)for(let t=0,e=i.length;t<e;++t){const o=i[t].context;o.length=e,o.index=t}}refreshAllViews(t=!1){const e=this.items,i=this.childContext,o=this.template,s=this.location,n=this.bindView;let r=e.length,a=this.views,l=a.length;if(0!==r&&!t&&this.options.recycle||(N.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(r);for(let t=0;t<r;++t){const r=o.create();n(r,e,t,i),a[t]=r,r.insertBefore(s)}}else{let t=0;for(;t<r;++t)if(t<l){n(a[t],e,t,i)}else{const r=o.create();n(r,e,t,i),a.push(r),r.insertBefore(s)}const c=a.splice(t,l-t);for(t=0,r=c.length;t<r;++t)c[t].dispose()}}unbindAllViews(){const t=this.views;for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}class Et extends b{constructor(t,e,i){super(),this.itemsBinding=t,this.templateBinding=e,this.options=i,this.createPlaceholder=h.createBlockPlaceholder,function(){if($t)return;$t=!0,p.setArrayObserverFactory(t=>new kt(t));const t=Array.prototype;if(t.$fastPatch)return;Reflect.defineProperty(t,"$fastPatch",{value:1,enumerable:!1});const e=t.pop,i=t.push,o=t.reverse,s=t.shift,n=t.sort,r=t.splice,a=t.unshift;t.pop=function(){const t=this.length>0,i=e.apply(this,arguments),o=this.$fastController;return void 0!==o&&t&&o.addSplice(mt(this.length,[i],0)),i},t.push=function(){const t=i.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(wt(mt(this.length-arguments.length,[],arguments.length),this)),t},t.reverse=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=o.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.shift=function(){const t=this.length>0,e=s.apply(this,arguments),i=this.$fastController;return void 0!==i&&t&&i.addSplice(mt(0,[e],0)),e},t.sort=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=n.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.splice=function(){const t=r.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(wt(mt(+arguments[0],t,arguments.length>2?arguments.length-2:0),this)),t},t.unshift=function(){const t=a.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(wt(mt(0,[],arguments.length),this)),t}}(),this.isItemsBindingVolatile=p.isVolatileBinding(t),this.isTemplateBindingVolatile=p.isVolatileBinding(e)}createBehavior(t){return new Ot(t,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function Vt(t,e,i=Dt){return new Et(t,"function"==typeof e?e:()=>e,Object.assign(Object.assign({},Dt),i))}function Rt(t){return t?function(e,i,o){return 1===e.nodeType&&e.matches(t)}:function(t,e,i){return 1===t.nodeType}}class At{constructor(t,e){this.target=t,this.options=e,this.source=null}bind(t){const e=this.options.property;this.shouldUpdate=p.getAccessors(t).some(t=>t.name===e),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(o),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return void 0!==this.options.filter&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class Lt extends At{constructor(t,e){super(t,e)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function Pt(t){return"string"==typeof t&&(t={property:t}),new x("fast-slotted",Lt,t)}class zt extends At{constructor(t,e){super(t,e),this.observer=null,e.childList=!0}observe(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function Ht(t){return"string"==typeof t&&(t={property:t}),new x("fast-children",zt,t)}class Mt{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const Bt=(t,e)=>q`<span part="end" ${It("endContainer")} class=${t=>e.end?"end":void 0}><slot name="end" ${It("end")} @slotchange="${t=>t.handleEndContentChange()}">${e.end||""}</slot></span>`,Nt=(t,e)=>q`<span part="start" ${It("startContainer")} class="${t=>e.start?"start":void 0}"><slot name="start" ${It("start")} @slotchange="${t=>t.handleStartContentChange()}">${e.start||""}</slot></span>`,jt=q`<span part="end" ${It("endContainer")}><slot name="end" ${It("end")} @slotchange="${t=>t.handleEndContentChange()}"></slot></span>`,Ut=q`<span part="start" ${It("startContainer")}><slot name="start" ${It("start")} @slotchange="${t=>t.handleStartContentChange()}"></slot></span>`;
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -13,24 +13,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
15
|
***************************************************************************** */
|
|
16
|
-
function qt(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}const _t=new Map;"metadata"in Reflect||(Reflect.metadata=function(t,e){return function(i){Reflect.defineMetadata(t,e,i)}},Reflect.defineMetadata=function(t,e,i){let o=_t.get(i);void 0===o&&_t.set(i,o=new Map),o.set(t,e)},Reflect.getOwnMetadata=function(t,e){const i=_t.get(e);if(void 0!==i)return i.get(t)});class Gt{constructor(t,e){this.container=t,this.key=e}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,ge(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){const{container:i,key:o}=this;return this.container=this.key=void 0,i.registerResolver(o,new ie(o,t,e))}}function Wt(t){const e=t.slice(),i=Object.keys(t),o=i.length;let s;for(let n=0;n<o;++n)s=i[n],we(s)||(e[s]=t[s]);return e}const Kt=Object.freeze({none(t){throw Error(t.toString()+" not registered, did you forget to add @singleton()?")},singleton:t=>new ie(t,1,t),transient:t=>new ie(t,2,t)}),Xt=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:Kt.singleton})}),Yt=new Map;function Qt(t){return e=>Reflect.getOwnMetadata(t,e)}let Zt=null;const Jt=Object.freeze({createContainer:t=>new ue(null,Object.assign({},Xt.default,t)),findResponsibleContainer(t){const e=t.$$container$$;return e&&e.responsibleForOwnerRequests?e:Jt.findParentContainer(t)},findParentContainer(t){const e=new CustomEvent(he,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return t.dispatchEvent(e),e.detail.container||Jt.getOrCreateDOMContainer()},getOrCreateDOMContainer:(t,e)=>t?t.$$container$$||new ue(t,Object.assign({},Xt.default,e,{parentLocator:Jt.findParentContainer})):Zt||(Zt=new ue(null,Object.assign({},Xt.default,e,{parentLocator:()=>null}))),getDesignParamtypes:Qt("design:paramtypes"),getAnnotationParamtypes:Qt("di:paramtypes"),getOrCreateAnnotationParamTypes(t){let e=this.getAnnotationParamtypes(t);return void 0===e&&Reflect.defineMetadata("di:paramtypes",e=[],t),e},getDependencies(t){let e=Yt.get(t);if(void 0===e){const i=t.inject;if(void 0===i){const i=Jt.getDesignParamtypes(t),o=Jt.getAnnotationParamtypes(t);if(void 0===i)if(void 0===o){const i=Object.getPrototypeOf(t);e="function"==typeof i&&i!==Function.prototype?Wt(Jt.getDependencies(i)):[]}else e=Wt(o);else if(void 0===o)e=Wt(i);else{e=Wt(i);let t,s=o.length;for(let i=0;i<s;++i)t=o[i],void 0!==t&&(e[i]=t);const n=Object.keys(o);let r;s=n.length;for(let t=0;t<s;++t)r=n[t],we(r)||(e[r]=o[r])}}else e=Wt(i);Yt.set(t,e)}return e},defineProperty(t,e,i,o=!1){const s="$di_"+e;Reflect.defineProperty(t,e,{get:function(){let t=this[s];if(void 0===t){const n=this instanceof HTMLElement?Jt.findResponsibleContainer(this):Jt.getOrCreateDOMContainer();if(t=n.get(i),this[s]=t,o&&this instanceof ht){const o=this.$fastController,n=()=>{Jt.findResponsibleContainer(this).get(i)!==this[s]&&(this[s]=t,o.notify(e))};o.subscribe({handleChange:n},"isConnected")}}return t}})},createInterface(t,e){const i="function"==typeof t?t:e,o="string"==typeof t?t:t&&"friendlyName"in t&&t.friendlyName||be,s="string"!=typeof t&&(t&&"respectConnection"in t&&t.respectConnection||!1),n=function(t,e,i){if(null==t||void 0!==new.target)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(e)Jt.defineProperty(t,e,n,s);else{Jt.getOrCreateAnnotationParamTypes(t)[i]=n}};return n.$isInterface=!0,n.friendlyName=null==o?"(anonymous)":o,null!=i&&(n.register=function(t,e){return i(new Gt(t,null!=e?e:n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject:(...t)=>function(e,i,o){if("number"==typeof o){const i=Jt.getOrCreateAnnotationParamTypes(e),s=t[0];void 0!==s&&(i[o]=s)}else if(i)Jt.defineProperty(e,i,t[0]);else{const i=o?Jt.getOrCreateAnnotationParamTypes(o.value):Jt.getOrCreateAnnotationParamTypes(e);let s;for(let e=0;e<t.length;++e)s=t[e],void 0!==s&&(i[e]=s)}},transient:t=>(t.register=function(e){return fe.transient(t,t).register(e)},t.registerInRequestor=!1,t),singleton:(t,e=ee)=>(t.register=function(e){return fe.singleton(t,t).register(e)},t.registerInRequestor=e.scoped,t)}),te=Jt.createInterface("Container");Jt.inject;const ee={scoped:!1};class ie{constructor(t,e,i){this.key=t,this.strategy=e,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(t){return t.registerResolver(this.key,this)}resolve(t,e){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error("Cyclic dependency found: "+this.state.name);return this.resolving=!0,this.state=t.getFactory(this.state).construct(e),this.strategy=0,this.resolving=!1,this.state;case 2:{const i=t.getFactory(this.state);if(null===i)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(e)}case 3:return this.state(t,e,this);case 4:return this.state[0].resolve(t,e);case 5:return e.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(t){var e,i,o;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return null!==(o=null===(i=null===(e=t.getResolver(this.state))||void 0===e?void 0:e.getFactory)||void 0===i?void 0:i.call(e,t))&&void 0!==o?o:null;default:return null}}}function oe(t){return this.get(t)}function se(t,e){return e(t)}class ne{constructor(t,e){this.Type=t,this.dependencies=e,this.transformers=null}construct(t,e){let i;return i=void 0===e?new this.Type(...this.dependencies.map(oe,t)):new this.Type(...this.dependencies.map(oe,t),...e),null==this.transformers?i:this.transformers.reduce(se,i)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}}const re={$isResolver:!0,resolve:(t,e)=>e};function ae(t){return"function"==typeof t.register}function le(t){return function(t){return ae(t)&&"boolean"==typeof t.registerInRequestor}(t)&&t.registerInRequestor}const ce=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),he="__DI_LOCATE_PARENT__",de=new Map;class ue{constructor(t,e){this.owner=t,this.config=e,this._parent=void 0,this.registerDepth=0,this.context=null,null!==t&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(te,re),t instanceof Node&&t.addEventListener(he,t=>{t.composedPath()[0]!==this.owner&&(t.detail.container=this,t.stopImmediatePropagation())})}get parent(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return null===this.parent?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...e){return this.context=t,this.register(...e),this.context=null,this}register(...t){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let e,i,o,s,n;const r=this.context;for(let a=0,l=t.length;a<l;++a)if(e=t[a],ye(e))if(ae(e))e.register(this,r);else if(void 0!==e.prototype)fe.singleton(e,e).register(this);else for(i=Object.keys(e),s=0,n=i.length;s<n;++s)o=e[i[s]],ye(o)&&(ae(o)?o.register(this,r):this.register(o));return--this.registerDepth,this}registerResolver(t,e){me(t);const i=this.resolvers,o=i.get(t);return null==o?i.set(t,e):o instanceof ie&&4===o.strategy?o.state.push(e):i.set(t,new ie(t,4,[o,e])),e}registerTransformer(t,e){const i=this.getResolver(t);if(null==i)return!1;if(i.getFactory){const t=i.getFactory(this);return null!=t&&(t.registerTransformer(e),!0)}return!1}getResolver(t,e=!0){if(me(t),void 0!==t.resolve)return t;let i,o=this;for(;null!=o;){if(i=o.resolvers.get(t),null!=i)return i;if(null==o.parent){const i=le(t)?this:o;return e?this.jitRegister(t,i):null}o=o.parent}return null}has(t,e=!1){return!!this.resolvers.has(t)||!(!e||null==this.parent)&&this.parent.has(t,!0)}get(t){if(me(t),t.$isResolver)return t.resolve(this,this);let e,i=this;for(;null!=i;){if(e=i.resolvers.get(t),null!=e)return e.resolve(i,this);if(null==i.parent){const o=le(t)?this:i;return e=this.jitRegister(t,o),e.resolve(i,this)}i=i.parent}throw new Error("Unable to resolve key: "+t)}getAll(t,e=!1){me(t);const i=this;let s,n=i;if(e){let e=o;for(;null!=n;)s=n.resolvers.get(t),null!=s&&(e=e.concat(ve(s,n,i))),n=n.parent;return e}for(;null!=n;){if(s=n.resolvers.get(t),null!=s)return ve(s,n,i);if(n=n.parent,null==n)return o}return o}getFactory(t){let e=de.get(t);if(void 0===e){if(xe(t))throw new Error(t.name+" is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.");de.set(t,e=new ne(t,Jt.getDependencies(t)))}return e}registerFactory(t,e){de.set(t,e)}createChild(t){return new ue(null,Object.assign({},this.config,t,{parentLocator:()=>this}))}jitRegister(t,e){if("function"!=typeof t)throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(ce.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(ae(t)){const i=t.register(e);if(!(i instanceof Object)||null==i.resolve){const i=e.resolvers.get(t);if(null!=i)return i;throw new Error("A valid resolver was not returned from the static register method")}return i}if(t.$isInterface)throw new Error("Attempted to jitRegister an interface: "+t.friendlyName);{const i=this.config.defaultResolver(t,e);return e.resolvers.set(t,i),i}}}const pe=new WeakMap;function ge(t){return function(e,i,o){if(pe.has(o))return pe.get(o);const s=t(e,i,o);return pe.set(o,s),s}}const fe=Object.freeze({instance:(t,e)=>new ie(t,0,e),singleton:(t,e)=>new ie(t,1,e),transient:(t,e)=>new ie(t,2,e),callback:(t,e)=>new ie(t,3,e),cachedCallback:(t,e)=>new ie(t,3,ge(e)),aliasTo:(t,e)=>new ie(e,5,t)});function me(t){if(null==t)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function ve(t,e,i){if(t instanceof ie&&4===t.strategy){const o=t.state;let s=o.length;const n=new Array(s);for(;s--;)n[s]=o[s].resolve(e,i);return n}return[t.resolve(e,i)]}const be="(anonymous)";function ye(t){return"object"==typeof t&&null!==t||"function"==typeof t}const xe=function(){const t=new WeakMap;let e=!1,i="",o=0;return function(s){return e=t.get(s),void 0===e&&(i=s.toString(),o=i.length,e=o>=29&&o<=100&&125===i.charCodeAt(o-1)&&i.charCodeAt(o-2)<=32&&93===i.charCodeAt(o-3)&&101===i.charCodeAt(o-4)&&100===i.charCodeAt(o-5)&&111===i.charCodeAt(o-6)&&99===i.charCodeAt(o-7)&&32===i.charCodeAt(o-8)&&101===i.charCodeAt(o-9)&&118===i.charCodeAt(o-10)&&105===i.charCodeAt(o-11)&&116===i.charCodeAt(o-12)&&97===i.charCodeAt(o-13)&&110===i.charCodeAt(o-14)&&88===i.charCodeAt(o-15),t.set(s,e)),e}}(),$e={};function we(t){switch(typeof t){case"number":return t>=0&&(0|t)===t;case"string":{const e=$e[t];if(void 0!==e)return e;const i=t.length;if(0===i)return $e[t]=!1;let o=0;for(let e=0;e<i;++e)if(o=t.charCodeAt(e),0===e&&48===o&&i>1||o<48||o>57)return $e[t]=!1;return $e[t]=!0}default:return!1}}function ke(t){return t.toLowerCase()+":presentation"}const Ce=new Map,Ie=Object.freeze({define(t,e,i){const o=ke(t);void 0===Ce.get(o)?Ce.set(o,e):Ce.set(o,!1),i.register(fe.instance(o,e))},forTag(t,e){const i=ke(t),o=Ce.get(i);if(!1===o){return Jt.findResponsibleContainer(e).get(i)}return o||null}});class Fe{constructor(t,e){this.template=t||null,this.styles=void 0===e?null:Array.isArray(e)?_.create(e):e instanceof _?e:_.create([e])}applyTo(t){const e=t.$fastController;null===e.template&&(e.template=this.template),null===e.styles&&(e.styles=this.styles)}}class De extends ht{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=Ie.forTag(this.tagName,this)),this._presentation}templateChanged(){void 0!==this.template&&(this.$fastController.template=this.template)}stylesChanged(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}connectedCallback(){null!==this.$presentation&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(e={})=>new Se(this===De?class extends De{}:this,t,e)}}function Te(t,e,i){return"function"==typeof t?t(e,i):t}qt([g],De.prototype,"template",void 0),qt([g],De.prototype,"styles",void 0);class Se{constructor(t,e,i){this.type=t,this.elementDefinition=e,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,e){const i=this.definition,o=this.overrideDefinition,s=`${i.prefix||e.elementPrefix}-${i.baseName}`;e.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:t=>{const e=new Fe(Te(i.template,t,i),Te(i.styles,t,i));t.definePresentation(e);let s=Te(i.shadowOptions,t,i);t.shadowRootMode&&(s?o.shadowOptions||(s.mode=t.shadowRootMode):null!==s&&(s={mode:t.shadowRootMode})),t.defineElement({elementOptions:Te(i.elementOptions,t,i),shadowOptions:s,attributes:Te(i.attributes,t,i)})}})}}function Oe(t,...e){e.forEach(e=>{if(Object.getOwnPropertyNames(e.prototype).forEach(i=>{"constructor"!==i&&Object.defineProperty(t.prototype,i,Object.getOwnPropertyDescriptor(e.prototype,i))}),e.attributes){const i=t.attributes||[];t.attributes=i.concat(e.attributes)}})}class Ee extends De{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=t=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}}qt([tt({attribute:"heading-level",mode:"fromView",converter:Z})],Ee.prototype,"headinglevel",void 0),qt([tt({mode:"boolean"})],Ee.prototype,"expanded",void 0),qt([tt],Ee.prototype,"id",void 0),Oe(Ee,Mt);const Ve="horizontal",Re="vertical";function Ae(...t){return t.every(t=>t instanceof HTMLElement)}let Le;var Pe;!function(t){t[t.alt=18]="alt",t[t.arrowDown=40]="arrowDown",t[t.arrowLeft=37]="arrowLeft",t[t.arrowRight=39]="arrowRight",t[t.arrowUp=38]="arrowUp",t[t.back=8]="back",t[t.backSlash=220]="backSlash",t[t.break=19]="break",t[t.capsLock=20]="capsLock",t[t.closeBracket=221]="closeBracket",t[t.colon=186]="colon",t[t.colon2=59]="colon2",t[t.comma=188]="comma",t[t.ctrl=17]="ctrl",t[t.delete=46]="delete",t[t.end=35]="end",t[t.enter=13]="enter",t[t.equals=187]="equals",t[t.equals2=61]="equals2",t[t.equals3=107]="equals3",t[t.escape=27]="escape",t[t.forwardSlash=191]="forwardSlash",t[t.function1=112]="function1",t[t.function10=121]="function10",t[t.function11=122]="function11",t[t.function12=123]="function12",t[t.function2=113]="function2",t[t.function3=114]="function3",t[t.function4=115]="function4",t[t.function5=116]="function5",t[t.function6=117]="function6",t[t.function7=118]="function7",t[t.function8=119]="function8",t[t.function9=120]="function9",t[t.home=36]="home",t[t.insert=45]="insert",t[t.menu=93]="menu",t[t.minus=189]="minus",t[t.minus2=109]="minus2",t[t.numLock=144]="numLock",t[t.numPad0=96]="numPad0",t[t.numPad1=97]="numPad1",t[t.numPad2=98]="numPad2",t[t.numPad3=99]="numPad3",t[t.numPad4=100]="numPad4",t[t.numPad5=101]="numPad5",t[t.numPad6=102]="numPad6",t[t.numPad7=103]="numPad7",t[t.numPad8=104]="numPad8",t[t.numPad9=105]="numPad9",t[t.numPadDivide=111]="numPadDivide",t[t.numPadDot=110]="numPadDot",t[t.numPadMinus=109]="numPadMinus",t[t.numPadMultiply=106]="numPadMultiply",t[t.numPadPlus=107]="numPadPlus",t[t.openBracket=219]="openBracket",t[t.pageDown=34]="pageDown",t[t.pageUp=33]="pageUp",t[t.period=190]="period",t[t.print=44]="print",t[t.quote=222]="quote",t[t.scrollLock=145]="scrollLock",t[t.shift=16]="shift",t[t.space=32]="space",t[t.tab=9]="tab",t[t.tilde=192]="tilde",t[t.windowsLeft=91]="windowsLeft",t[t.windowsOpera=219]="windowsOpera",t[t.windowsRight=92]="windowsRight"}(Pe||(Pe={}));const He={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp"};var ze;function Me(t,e,i){return i<t?e:i>e?t:i}function Be(t,e,i){return Math.min(Math.max(i,t),e)}function Ne(t,e,i=0){return[e,i]=[e,i].sort((t,e)=>t-e),e<=t&&t<i}!function(t){t.ltr="ltr",t.rtl="rtl"}(ze||(ze={}));let je=0;function Ue(t=""){return`${t}${je++}`}var qe;!function(t){t.Canvas="Canvas",t.CanvasText="CanvasText",t.LinkText="LinkText",t.VisitedText="VisitedText",t.ActiveText="ActiveText",t.ButtonFace="ButtonFace",t.ButtonText="ButtonText",t.Field="Field",t.FieldText="FieldText",t.Highlight="Highlight",t.HighlightText="HighlightText",t.GrayText="GrayText"}(qe||(qe={}));const _e="single",Ge="multi";class We extends De{constructor(){super(...arguments),this.expandmode=Ge,this.activeItemIndex=0,this.change=()=>{this.$emit("change")},this.setItems=()=>{var t;if(0!==this.accordionItems.length&&(this.accordionIds=this.getItemIds(),this.accordionItems.forEach((t,e)=>{t instanceof Ee&&(t.addEventListener("change",this.activeItemChange),this.isSingleExpandMode()&&(this.activeItemIndex!==e?t.expanded=!1:t.expanded=!0));const i=this.accordionIds[e];t.setAttribute("id","string"!=typeof i?"accordion-"+(e+1):i),this.activeid=this.accordionIds[this.activeItemIndex],t.addEventListener("keydown",this.handleItemKeyDown),t.addEventListener("focus",this.handleItemFocus)}),this.isSingleExpandMode())){(null!==(t=this.findExpandedItem())&&void 0!==t?t:this.accordionItems[0]).setAttribute("aria-disabled","true")}},this.removeItemListeners=t=>{t.forEach((t,e)=>{t.removeEventListener("change",this.activeItemChange),t.removeEventListener("keydown",this.handleItemKeyDown),t.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=t=>{const e=t.target;this.activeid=e.getAttribute("id"),this.isSingleExpandMode()&&(this.resetItems(),e.expanded=!0,e.setAttribute("aria-disabled","true"),this.accordionItems.forEach(t=>{t.hasAttribute("disabled")||t.id===this.activeid||t.removeAttribute("aria-disabled")})),this.activeItemIndex=Array.from(this.accordionItems).indexOf(e),this.change()},this.handleItemKeyDown=t=>{if(t.target===t.currentTarget)switch(this.accordionIds=this.getItemIds(),t.key){case"ArrowUp":t.preventDefault(),this.adjust(-1);break;case"ArrowDown":t.preventDefault(),this.adjust(1);break;case"Home":this.activeItemIndex=0,this.focusItem();break;case"End":this.activeItemIndex=this.accordionItems.length-1,this.focusItem()}},this.handleItemFocus=t=>{if(t.target===t.currentTarget){const e=t.target,i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(e);this.activeItemIndex!==i&&-1!==i&&(this.activeItemIndex=i,this.activeid=this.accordionIds[this.activeItemIndex])}}}accordionItemsChanged(t,e){this.$fastController.isConnected&&(this.removeItemListeners(t),this.setItems())}findExpandedItem(){for(let t=0;t<this.accordionItems.length;t++)if("true"===this.accordionItems[t].getAttribute("expanded"))return this.accordionItems[t];return null}resetItems(){this.accordionItems.forEach((t,e)=>{t.expanded=!1})}getItemIds(){return this.accordionItems.map(t=>t.getAttribute("id"))}isSingleExpandMode(){return this.expandmode===_e}adjust(t){this.activeItemIndex=Me(0,this.accordionItems.length-1,this.activeItemIndex+t),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof Ee&&t.expandbutton.focus()}}qt([tt({attribute:"expand-mode"})],We.prototype,"expandmode",void 0),qt([g],We.prototype,"accordionItems",void 0);const Ke=(t,e)=>q`<a class="control" part="control" download="${t=>t.download}" href="${t=>t.href}" hreflang="${t=>t.hreflang}" ping="${t=>t.ping}" referrerpolicy="${t=>t.referrerpolicy}" rel="${t=>t.rel}" target="${t=>t.target}" type="${t=>t.type}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-expanded="${t=>t.ariaExpanded}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${It("control")}>${Nt(0,e)}<span class="content" part="content"><slot ${Pt("defaultSlottedContent")}></slot></span>${Bt(0,e)}</a>`;class Xe{}qt([tt({attribute:"aria-atomic"})],Xe.prototype,"ariaAtomic",void 0),qt([tt({attribute:"aria-busy"})],Xe.prototype,"ariaBusy",void 0),qt([tt({attribute:"aria-controls"})],Xe.prototype,"ariaControls",void 0),qt([tt({attribute:"aria-current"})],Xe.prototype,"ariaCurrent",void 0),qt([tt({attribute:"aria-describedby"})],Xe.prototype,"ariaDescribedby",void 0),qt([tt({attribute:"aria-details"})],Xe.prototype,"ariaDetails",void 0),qt([tt({attribute:"aria-disabled"})],Xe.prototype,"ariaDisabled",void 0),qt([tt({attribute:"aria-errormessage"})],Xe.prototype,"ariaErrormessage",void 0),qt([tt({attribute:"aria-flowto"})],Xe.prototype,"ariaFlowto",void 0),qt([tt({attribute:"aria-haspopup"})],Xe.prototype,"ariaHaspopup",void 0),qt([tt({attribute:"aria-hidden"})],Xe.prototype,"ariaHidden",void 0),qt([tt({attribute:"aria-invalid"})],Xe.prototype,"ariaInvalid",void 0),qt([tt({attribute:"aria-keyshortcuts"})],Xe.prototype,"ariaKeyshortcuts",void 0),qt([tt({attribute:"aria-label"})],Xe.prototype,"ariaLabel",void 0),qt([tt({attribute:"aria-labelledby"})],Xe.prototype,"ariaLabelledby",void 0),qt([tt({attribute:"aria-live"})],Xe.prototype,"ariaLive",void 0),qt([tt({attribute:"aria-owns"})],Xe.prototype,"ariaOwns",void 0),qt([tt({attribute:"aria-relevant"})],Xe.prototype,"ariaRelevant",void 0),qt([tt({attribute:"aria-roledescription"})],Xe.prototype,"ariaRoledescription",void 0);class Ye extends De{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}qt([tt],Ye.prototype,"download",void 0),qt([tt],Ye.prototype,"href",void 0),qt([tt],Ye.prototype,"hreflang",void 0),qt([tt],Ye.prototype,"ping",void 0),qt([tt],Ye.prototype,"referrerpolicy",void 0),qt([tt],Ye.prototype,"rel",void 0),qt([tt],Ye.prototype,"target",void 0),qt([tt],Ye.prototype,"type",void 0),qt([g],Ye.prototype,"defaultSlottedContent",void 0);class Qe{}qt([tt({attribute:"aria-expanded"})],Qe.prototype,"ariaExpanded",void 0),Oe(Qe,Xe),Oe(Ye,Mt,Qe);const Ze=t=>{const e=t.closest("[dir]");return null!==e&&"rtl"===e.dir?ze.rtl:ze.ltr};class Je extends De{constructor(){super(...arguments),this.anchor="",this.viewport="",this.horizontalPositioningMode="uncontrolled",this.horizontalDefaultPosition="unset",this.horizontalViewportLock=!1,this.horizontalInset=!1,this.horizontalScaling="content",this.verticalPositioningMode="uncontrolled",this.verticalDefaultPosition="unset",this.verticalViewportLock=!1,this.verticalInset=!1,this.verticalScaling="content",this.fixedPlacement=!1,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.initialLayoutComplete=!1,this.resizeDetector=null,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.pendingPositioningUpdate=!1,this.pendingReset=!1,this.currentDirection=ze.ltr,this.regionVisible=!1,this.forceUpdate=!1,this.updateThreshold=.5,this.update=()=>{this.pendingPositioningUpdate||this.requestPositionUpdates()},this.startObservers=()=>{this.stopObservers(),null!==this.anchorElement&&(this.requestPositionUpdates(),null!==this.resizeDetector&&(this.resizeDetector.observe(this.anchorElement),this.resizeDetector.observe(this)))},this.requestPositionUpdates=()=>{null===this.anchorElement||this.pendingPositioningUpdate||(Je.intersectionService.requestPosition(this,this.handleIntersection),Je.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&Je.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,Je.intersectionService.cancelRequestPosition(this,this.handleIntersection),null!==this.anchorElement&&Je.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&Je.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)),null!==this.resizeDetector&&this.resizeDetector.disconnect()},this.getViewport=()=>"string"!=typeof this.viewport||""===this.viewport?document.documentElement:document.getElementById(this.viewport),this.getAnchor=()=>document.getElementById(this.anchor),this.handleIntersection=t=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,this.applyIntersectionEntries(t)&&this.updateLayout())},this.applyIntersectionEntries=t=>{const e=t.find(t=>t.target===this),i=t.find(t=>t.target===this.anchorElement),o=t.find(t=>t.target===this.viewportElement);return void 0!==e&&void 0!==o&&void 0!==i&&(!!(!this.regionVisible||this.forceUpdate||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect||this.isRectDifferent(this.anchorRect,i.boundingClientRect)||this.isRectDifferent(this.viewportRect,o.boundingClientRect)||this.isRectDifferent(this.regionRect,e.boundingClientRect))&&(this.regionRect=e.boundingClientRect,this.anchorRect=i.boundingClientRect,this.viewportElement===document.documentElement?this.viewportRect=new DOMRectReadOnly(o.boundingClientRect.x+document.documentElement.scrollLeft,o.boundingClientRect.y+document.documentElement.scrollTop,o.boundingClientRect.width,o.boundingClientRect.height):this.viewportRect=o.boundingClientRect,this.updateRegionOffset(),this.forceUpdate=!1,!0))},this.updateRegionOffset=()=>{this.anchorRect&&this.regionRect&&(this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset),this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset))},this.isRectDifferent=(t,e)=>Math.abs(t.top-e.top)>this.updateThreshold||Math.abs(t.right-e.right)>this.updateThreshold||Math.abs(t.bottom-e.bottom)>this.updateThreshold||Math.abs(t.left-e.left)>this.updateThreshold,this.handleResize=t=>{this.update()},this.reset=()=>{this.pendingReset&&(this.pendingReset=!1,null===this.anchorElement&&(this.anchorElement=this.getAnchor()),null===this.viewportElement&&(this.viewportElement=this.getViewport()),this.currentDirection=Ze(this),this.startObservers())},this.updateLayout=()=>{let t=void 0,e=void 0;if("uncontrolled"!==this.horizontalPositioningMode){const t=this.getPositioningOptions(this.horizontalInset);if("center"===this.horizontalDefaultPosition)e="center";else if("unset"!==this.horizontalDefaultPosition){let t=this.horizontalDefaultPosition;if("start"===t||"end"===t){const e=Ze(this);if(e!==this.currentDirection)return this.currentDirection=e,void this.initialize();t=this.currentDirection===ze.ltr?"start"===t?"left":"right":"start"===t?"right":"left"}switch(t){case"left":e=this.horizontalInset?"insetStart":"start";break;case"right":e=this.horizontalInset?"insetEnd":"end"}}const i=void 0!==this.horizontalThreshold?this.horizontalThreshold:void 0!==this.regionRect?this.regionRect.width:0,o=void 0!==this.anchorRect?this.anchorRect.left:0,s=void 0!==this.anchorRect?this.anchorRect.right:0,n=void 0!==this.anchorRect?this.anchorRect.width:0,r=void 0!==this.viewportRect?this.viewportRect.left:0,a=void 0!==this.viewportRect?this.viewportRect.right:0;(void 0===e||"locktodefault"!==this.horizontalPositioningMode&&this.getAvailableSpace(e,o,s,n,r,a)<i)&&(e=this.getAvailableSpace(t[0],o,s,n,r,a)>this.getAvailableSpace(t[1],o,s,n,r,a)?t[0]:t[1])}if("uncontrolled"!==this.verticalPositioningMode){const e=this.getPositioningOptions(this.verticalInset);if("center"===this.verticalDefaultPosition)t="center";else if("unset"!==this.verticalDefaultPosition)switch(this.verticalDefaultPosition){case"top":t=this.verticalInset?"insetStart":"start";break;case"bottom":t=this.verticalInset?"insetEnd":"end"}const i=void 0!==this.verticalThreshold?this.verticalThreshold:void 0!==this.regionRect?this.regionRect.height:0,o=void 0!==this.anchorRect?this.anchorRect.top:0,s=void 0!==this.anchorRect?this.anchorRect.bottom:0,n=void 0!==this.anchorRect?this.anchorRect.height:0,r=void 0!==this.viewportRect?this.viewportRect.top:0,a=void 0!==this.viewportRect?this.viewportRect.bottom:0;(void 0===t||"locktodefault"!==this.verticalPositioningMode&&this.getAvailableSpace(t,o,s,n,r,a)<i)&&(t=this.getAvailableSpace(e[0],o,s,n,r,a)>this.getAvailableSpace(e[1],o,s,n,r,a)?e[0]:e[1])}const i=this.getNextRegionDimension(e,t),o=this.horizontalPosition!==e||this.verticalPosition!==t;if(this.setHorizontalPosition(e,i),this.setVerticalPosition(t,i),this.updateRegionStyle(),!this.initialLayoutComplete)return this.initialLayoutComplete=!0,void this.requestPositionUpdates();this.regionVisible||(this.regionVisible=!0,this.style.removeProperty("pointer-events"),this.style.removeProperty("opacity"),this.classList.toggle("loaded",!0),this.$emit("loaded",this,{bubbles:!1})),this.updatePositionClasses(),o&&this.$emit("positionchange",this,{bubbles:!1})},this.updateRegionStyle=()=>{this.style.width=this.regionWidth,this.style.height=this.regionHeight,this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`},this.updatePositionClasses=()=>{this.classList.toggle("top","start"===this.verticalPosition),this.classList.toggle("bottom","end"===this.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.verticalPosition),this.classList.toggle("vertical-center","center"===this.verticalPosition),this.classList.toggle("left","start"===this.horizontalPosition),this.classList.toggle("right","end"===this.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.horizontalPosition),this.classList.toggle("horizontal-center","center"===this.horizontalPosition)},this.setHorizontalPosition=(t,e)=>{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.horizontalScaling){case"anchor":case"fill":i=this.horizontalViewportLock?this.viewportRect.width:e.width,this.regionWidth=i+"px";break;case"content":i=this.regionRect.width,this.regionWidth="unset"}let o=0;switch(t){case"start":this.translateX=this.baseHorizontalOffset-i,this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right));break;case"insetStart":this.translateX=this.baseHorizontalOffset-i+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right));break;case"insetEnd":this.translateX=this.baseHorizontalOffset,this.horizontalViewportLock&&this.anchorRect.left<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.left));break;case"end":this.translateX=this.baseHorizontalOffset+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.left));break;case"center":if(o=(this.anchorRect.width-i)/2,this.translateX=this.baseHorizontalOffset+o,this.horizontalViewportLock){const t=this.anchorRect.left+o,e=this.anchorRect.right-o;t<this.viewportRect.left&&!(e>this.viewportRect.right)?this.translateX=this.translateX-(t-this.viewportRect.left):e>this.viewportRect.right&&!(t<this.viewportRect.left)&&(this.translateX=this.translateX-(e-this.viewportRect.right))}}this.horizontalPosition=t},this.setVerticalPosition=(t,e)=>{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.verticalScaling){case"anchor":case"fill":i=this.verticalViewportLock?this.viewportRect.height:e.height,this.regionHeight=i+"px";break;case"content":i=this.regionRect.height,this.regionHeight="unset"}let o=0;switch(t){case"start":this.translateY=this.baseVerticalOffset-i,this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom));break;case"insetStart":this.translateY=this.baseVerticalOffset-i+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom));break;case"insetEnd":this.translateY=this.baseVerticalOffset,this.verticalViewportLock&&this.anchorRect.top<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.top));break;case"end":this.translateY=this.baseVerticalOffset+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.top));break;case"center":if(o=(this.anchorRect.height-i)/2,this.translateY=this.baseVerticalOffset+o,this.verticalViewportLock){const t=this.anchorRect.top+o,e=this.anchorRect.bottom-o;t<this.viewportRect.top&&!(e>this.viewportRect.bottom)?this.translateY=this.translateY-(t-this.viewportRect.top):e>this.viewportRect.bottom&&!(t<this.viewportRect.top)&&(this.translateY=this.translateY-(e-this.viewportRect.bottom))}}this.verticalPosition=t},this.getPositioningOptions=t=>t?["insetStart","insetEnd"]:["start","end"],this.getAvailableSpace=(t,e,i,o,s,n)=>{const r=e-s,a=n-(e+o);switch(t){case"start":return r;case"insetStart":return r+o;case"insetEnd":return a+o;case"end":return a;case"center":return 2*Math.min(r,a)+o}},this.getNextRegionDimension=(t,e)=>{const i={height:void 0!==this.regionRect?this.regionRect.height:0,width:void 0!==this.regionRect?this.regionRect.width:0};return void 0!==t&&"fill"===this.horizontalScaling?i.width=this.getAvailableSpace(t,void 0!==this.anchorRect?this.anchorRect.left:0,void 0!==this.anchorRect?this.anchorRect.right:0,void 0!==this.anchorRect?this.anchorRect.width:0,void 0!==this.viewportRect?this.viewportRect.left:0,void 0!==this.viewportRect?this.viewportRect.right:0):"anchor"===this.horizontalScaling&&(i.width=void 0!==this.anchorRect?this.anchorRect.width:0),void 0!==e&&"fill"===this.verticalScaling?i.height=this.getAvailableSpace(e,void 0!==this.anchorRect?this.anchorRect.top:0,void 0!==this.anchorRect?this.anchorRect.bottom:0,void 0!==this.anchorRect?this.anchorRect.height:0,void 0!==this.viewportRect?this.viewportRect.top:0,void 0!==this.viewportRect?this.viewportRect.bottom:0):"anchor"===this.verticalScaling&&(i.height=void 0!==this.anchorRect?this.anchorRect.height:0),i},this.startAutoUpdateEventListeners=()=>{window.addEventListener("resize",this.update,{passive:!0}),window.addEventListener("scroll",this.update,{passive:!0,capture:!0}),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener("resize",this.update),window.removeEventListener("scroll",this.update),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.unobserve(this.viewportElement)}}anchorChanged(){this.initialLayoutComplete&&(this.anchorElement=this.getAnchor())}viewportChanged(){this.initialLayoutComplete&&(this.viewportElement=this.getViewport())}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}autoUpdateModeChanged(t,e){this.$fastController.isConnected&&this.initialLayoutComplete&&("auto"===t&&this.stopAutoUpdateEventListeners(),"auto"===e&&this.startAutoUpdateEventListeners())}anchorElementChanged(){this.requestReset()}viewportElementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}connectedCallback(){super.connectedCallback(),"auto"===this.autoUpdateMode&&this.startAutoUpdateEventListeners(),this.initialize()}disconnectedCallback(){super.disconnectedCallback(),"auto"===this.autoUpdateMode&&this.stopAutoUpdateEventListeners(),this.stopObservers(),this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){null!==this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){this.$fastController.isConnected&&this.initialLayoutComplete&&(this.forceUpdate=!0,this.update())}initialize(){this.initializeResizeDetector(),null===this.anchorElement&&(this.anchorElement=this.getAnchor()),this.requestReset()}requestReset(){this.$fastController.isConnected&&!1===this.pendingReset&&(this.setInitialState(),h.queueUpdate(()=>this.reset()),this.pendingReset=!0)}setInitialState(){this.initialLayoutComplete=!1,this.regionVisible=!1,this.translateX=0,this.translateY=0,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.viewportRect=void 0,this.regionRect=void 0,this.anchorRect=void 0,this.verticalPosition=void 0,this.horizontalPosition=void 0,this.style.opacity="0",this.style.pointerEvents="none",this.forceUpdate=!1,this.style.position=this.fixedPlacement?"fixed":"absolute",this.updatePositionClasses(),this.updateRegionStyle()}}Je.intersectionService=new class{constructor(){this.intersectionDetector=null,this.observedElements=new Map,this.requestPosition=(t,e)=>{var i;null!==this.intersectionDetector&&(this.observedElements.has(t)?null===(i=this.observedElements.get(t))||void 0===i||i.push(e):(this.observedElements.set(t,[e]),this.intersectionDetector.observe(t)))},this.cancelRequestPosition=(t,e)=>{const i=this.observedElements.get(t);if(void 0!==i){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}},this.initializeIntersectionDetector=()=>{t.IntersectionObserver&&(this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]}))},this.handleIntersection=t=>{if(null===this.intersectionDetector)return;const e=[],i=[];t.forEach(t=>{var o;null===(o=this.intersectionDetector)||void 0===o||o.unobserve(t.target);const s=this.observedElements.get(t.target);void 0!==s&&(s.forEach(o=>{let s=e.indexOf(o);-1===s&&(s=e.length,e.push(o),i.push([])),i[s].push(t)}),this.observedElements.delete(t.target))}),e.forEach((t,e)=>{t(i[e])})},this.initializeIntersectionDetector()}},qt([tt],Je.prototype,"anchor",void 0),qt([tt],Je.prototype,"viewport",void 0),qt([tt({attribute:"horizontal-positioning-mode"})],Je.prototype,"horizontalPositioningMode",void 0),qt([tt({attribute:"horizontal-default-position"})],Je.prototype,"horizontalDefaultPosition",void 0),qt([tt({attribute:"horizontal-viewport-lock",mode:"boolean"})],Je.prototype,"horizontalViewportLock",void 0),qt([tt({attribute:"horizontal-inset",mode:"boolean"})],Je.prototype,"horizontalInset",void 0),qt([tt({attribute:"horizontal-threshold"})],Je.prototype,"horizontalThreshold",void 0),qt([tt({attribute:"horizontal-scaling"})],Je.prototype,"horizontalScaling",void 0),qt([tt({attribute:"vertical-positioning-mode"})],Je.prototype,"verticalPositioningMode",void 0),qt([tt({attribute:"vertical-default-position"})],Je.prototype,"verticalDefaultPosition",void 0),qt([tt({attribute:"vertical-viewport-lock",mode:"boolean"})],Je.prototype,"verticalViewportLock",void 0),qt([tt({attribute:"vertical-inset",mode:"boolean"})],Je.prototype,"verticalInset",void 0),qt([tt({attribute:"vertical-threshold"})],Je.prototype,"verticalThreshold",void 0),qt([tt({attribute:"vertical-scaling"})],Je.prototype,"verticalScaling",void 0),qt([tt({attribute:"fixed-placement",mode:"boolean"})],Je.prototype,"fixedPlacement",void 0),qt([tt({attribute:"auto-update-mode"})],Je.prototype,"autoUpdateMode",void 0),qt([g],Je.prototype,"anchorElement",void 0),qt([g],Je.prototype,"viewportElement",void 0),qt([g],Je.prototype,"initialLayoutComplete",void 0);class ti extends De{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const t=`background-color: var(--badge-fill-${this.fill});`,e=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?t:this.color&&!this.fill?e:`${e} ${t}`}}}qt([tt({attribute:"fill"})],ti.prototype,"fill",void 0),qt([tt({attribute:"color"})],ti.prototype,"color",void 0),qt([tt({mode:"boolean"})],ti.prototype,"circular",void 0);class ei extends Ye{constructor(){super(...arguments),this.separator=!0}}qt([g],ei.prototype,"separator",void 0),Oe(ei,Mt,Qe);class ii extends De{slottedBreadcrumbItemsChanged(){if(this.$fastController.isConnected){if(void 0===this.slottedBreadcrumbItems||0===this.slottedBreadcrumbItems.length)return;const t=this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length-1];this.slottedBreadcrumbItems.forEach(e=>{const i=e===t;this.setItemSeparator(e,i),this.setAriaCurrent(e,i)})}}setItemSeparator(t,e){t instanceof ei&&(t.separator=!e)}findChildWithHref(t){var e,i;return t.childElementCount>0?t.querySelector("a[href]"):(null===(e=t.shadowRoot)||void 0===e?void 0:e.childElementCount)?null===(i=t.shadowRoot)||void 0===i?void 0:i.querySelector("a[href]"):null}setAriaCurrent(t,e){const i=this.findChildWithHref(t);null===i&&t.hasAttribute("href")&&t instanceof ei?e?t.setAttribute("aria-current","page"):t.removeAttribute("aria-current"):null!==i&&(e?i.setAttribute("aria-current","page"):i.removeAttribute("aria-current"))}}qt([g],ii.prototype,"slottedBreadcrumbItems",void 0);const oi="ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype,si=new WeakMap;function ni(t){const e=class extends t{constructor(...t){super(...t),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return oi}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const t=this.proxy.labels,e=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=t?e.concat(Array.from(t)):e;return Object.freeze(i)}return o}valueChanged(t,e){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),h.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),h.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!oi)return null;let t=si.get(this);return t||(t=this.attachInternals(),si.set(this,t)),t}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach(t=>this.proxy.removeEventListener(t,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(t,e,i){this.elementInternals?this.elementInternals.setValidity(t,e,i):"string"==typeof e&&this.proxy.setCustomValidity(e)}formDisabledCallback(t){this.disabled=t}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var t;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(t=>this.proxy.addEventListener(t,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot","form-associated-proxy"),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name","form-associated-proxy")),null===(t=this.shadowRoot)||void 0===t||t.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var t;this.removeChild(this.proxy),null===(t=this.shadowRoot)||void 0===t||t.removeChild(this.proxySlot)}validate(t){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,t)}setFormValue(t,e){this.elementInternals&&this.elementInternals.setFormValue(t,e||t)}_keypressHandler(t){switch(t.key){case"Enter":if(this.form instanceof HTMLFormElement){const t=this.form.querySelector("[type=submit]");null==t||t.click()}}}stopPropagation(t){t.stopPropagation()}};return tt({mode:"boolean"})(e.prototype,"disabled"),tt({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),tt({attribute:"current-value"})(e.prototype,"currentValue"),tt(e.prototype,"name"),tt({mode:"boolean"})(e.prototype,"required"),g(e.prototype,"value"),e}function ri(t){class e extends(ni(t)){}class i extends e{constructor(...t){super(t),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(t,e){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==t&&this.$emit("change"),this.validate()}currentCheckedChanged(t,e){this.checked=this.currentChecked}updateForm(){const t=this.checked?this.value:null;this.setFormValue(t,t)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return tt({attribute:"checked",mode:"boolean"})(i.prototype,"checkedAttribute"),tt({attribute:"current-checked",converter:Q})(i.prototype,"currentChecked"),g(i.prototype,"defaultChecked"),g(i.prototype,"checked"),i}class ai extends De{}class li extends(ni(ai)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class ci extends li{constructor(){super(...arguments),this.handleClick=t=>{var e;this.disabled&&(null===(e=this.defaultSlottedContent)||void 0===e?void 0:e.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;null===(t=this.form)||void 0===t||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,e){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===e&&this.addEventListener("click",this.handleSubmission),"submit"===t&&this.removeEventListener("click",this.handleSubmission),"reset"===e&&this.addEventListener("click",this.handleFormReset),"reset"===t&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const e=Array.from(null===(t=this.control)||void 0===t?void 0:t.children);e&&e.forEach(t=>{t.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();const e=Array.from(null===(t=this.control)||void 0===t?void 0:t.children);e&&e.forEach(t=>{t.removeEventListener("click",this.handleClick)})}}qt([tt({mode:"boolean"})],ci.prototype,"autofocus",void 0),qt([tt({attribute:"form"})],ci.prototype,"formId",void 0),qt([tt],ci.prototype,"formaction",void 0),qt([tt],ci.prototype,"formenctype",void 0),qt([tt],ci.prototype,"formmethod",void 0),qt([tt({mode:"boolean"})],ci.prototype,"formnovalidate",void 0),qt([tt],ci.prototype,"formtarget",void 0),qt([tt],ci.prototype,"type",void 0),qt([g],ci.prototype,"defaultSlottedContent",void 0);class hi{}qt([tt({attribute:"aria-expanded"})],hi.prototype,"ariaExpanded",void 0),qt([tt({attribute:"aria-pressed"})],hi.prototype,"ariaPressed",void 0),Oe(hi,Xe),Oe(ci,Mt,hi);class di{constructor(t){if(this.dayFormat="numeric",this.weekdayFormat="long",this.monthFormat="long",this.yearFormat="numeric",this.date=new Date,t)for(const e in t){const i=t[e];"date"===e?this.date=this.getDateObject(i):this[e]=i}}getDateObject(t){if("string"==typeof t){const e=t.split(/[/-]/);return e.length<3?new Date:new Date(parseInt(e[2],10),parseInt(e[0],10)-1,parseInt(e[1],10))}if("day"in t&&"month"in t&&"year"in t){const{day:e,month:i,year:o}=t;return new Date(o,i-1,e)}return t}getDate(t=this.date,e={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},i=this.locale){const o=this.getDateObject(t),s=Object.assign({timeZone:"utc"},e);return new Intl.DateTimeFormat(i,s).format(o)}getDay(t=this.date.getDate(),e=this.dayFormat,i=this.locale){return this.getDate({month:1,day:t,year:2020},{day:e},i)}getMonth(t=this.date.getMonth()+1,e=this.monthFormat,i=this.locale){return this.getDate({month:t,day:2,year:2020},{month:e},i)}getYear(t=this.date.getFullYear(),e=this.yearFormat,i=this.locale){return this.getDate({month:2,day:2,year:t},{year:e},i)}getWeekday(t=0,e=this.weekdayFormat,i=this.locale){const o=`1-${t+1}-2017`;return this.getDate(o,{weekday:e},i)}getWeekdays(t=this.weekdayFormat,e=this.locale){return Array(7).fill(null).map((i,o)=>this.getWeekday(o,t,e))}}class ui extends De{constructor(){super(...arguments),this.dateFormatter=new di,this.readonly=!1,this.locale="en-US",this.month=(new Date).getMonth()+1,this.year=(new Date).getFullYear(),this.dayFormat="numeric",this.weekdayFormat="short",this.monthFormat="long",this.yearFormat="numeric",this.minWeeks=0,this.disabledDates="",this.selectedDates="",this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(t=this.month,e=this.year){const i=t=>new Date(t.getFullYear(),t.getMonth(),1).getDay(),o=t=>{const e=new Date(t.getFullYear(),t.getMonth()+1,1);return new Date(e.getTime()-this.oneDayInMs).getDate()},s=new Date(e,t-1),n=new Date(e,t),r=new Date(e,t-2);return{length:o(s),month:t,start:i(s),year:e,previous:{length:o(r),month:r.getMonth()+1,start:i(r),year:r.getFullYear()},next:{length:o(n),month:n.getMonth()+1,start:i(n),year:n.getFullYear()}}}getDays(t=this.getMonthInfo(),e=this.minWeeks){e=e>10?10:e;const{start:i,length:o,previous:s,next:n}=t,r=[];let a=1-i;for(;a<o+1||r.length<e||r[r.length-1].length%7!=0;){const{month:e,year:i}=a<1?s:a>o?n:t,l=a<1?s.length+a:a>o?a-o:a,c=`${e}-${l}-${i}`,h={day:l,month:e,year:i,disabled:this.dateInString(c,this.disabledDates),selected:this.dateInString(c,this.selectedDates)},d=r[r.length-1];0===r.length||d.length%7==0?r.push([h]):d.push(h),a++}return r}dateInString(t,e){const i=e.split(",").map(t=>t.trim());return t="string"==typeof t?t:`${t.getMonth()+1}-${t.getDate()}-${t.getFullYear()}`,i.some(e=>e===t)}getDayClassNames(t,e){const{day:i,month:o,year:s,disabled:n,selected:r}=t;return["day",e===`${o}-${i}-${s}`&&"today",this.month!==o&&"inactive",n&&"disabled",r&&"selected"].filter(Boolean).join(" ")}getWeekdayText(){const t=this.dateFormatter.getWeekdays().map(t=>({text:t}));if("long"!==this.weekdayFormat){const e=this.dateFormatter.getWeekdays("long");t.forEach((t,i)=>{t.abbr=e[i]})}return t}handleDateSelect(t,e){t.preventDefault,this.$emit("dateselected",e)}handleKeydown(t,e){return"Enter"===t.key&&this.handleDateSelect(t,e),!0}}qt([tt({mode:"boolean"})],ui.prototype,"readonly",void 0),qt([tt],ui.prototype,"locale",void 0),qt([tt({converter:Z})],ui.prototype,"month",void 0),qt([tt({converter:Z})],ui.prototype,"year",void 0),qt([tt({attribute:"day-format",mode:"fromView"})],ui.prototype,"dayFormat",void 0),qt([tt({attribute:"weekday-format",mode:"fromView"})],ui.prototype,"weekdayFormat",void 0),qt([tt({attribute:"month-format",mode:"fromView"})],ui.prototype,"monthFormat",void 0),qt([tt({attribute:"year-format",mode:"fromView"})],ui.prototype,"yearFormat",void 0),qt([tt({attribute:"min-weeks",converter:Z})],ui.prototype,"minWeeks",void 0),qt([tt({attribute:"disabled-dates"})],ui.prototype,"disabledDates",void 0),qt([tt({attribute:"selected-dates"})],ui.prototype,"selectedDates",void 0);const pi="none",gi="default",fi="sticky",mi="default",vi="columnheader",bi="rowheader",yi="default",xi="header",$i="sticky-header";class wi extends De{constructor(){super(...arguments),this.rowType=yi,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){null!==this.rowData&&this.isActiveRow&&(this.refocusOnLoad=!0)}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),null===this.cellsRepeatBehavior&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Et(t=>t.columnDefinitions,t=>t.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener("focusout",this.handleFocusout),this.removeEventListener("keydown",this.handleKeydown)}handleFocusout(t){this.contains(t.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(t){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(t.target),this.$emit("row-focused",this)}handleKeydown(t){if(t.defaultPrevented)return;let e=0;switch(t.key){case"ArrowLeft":e=Math.max(0,this.focusColumnIndex-1),this.cellElements[e].focus(),t.preventDefault();break;case"ArrowRight":e=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[e].focus(),t.preventDefault();break;case"Home":t.ctrlKey||(this.cellElements[0].focus(),t.preventDefault());break;case"End":t.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),t.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===yi&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===yi&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}qt([tt({attribute:"grid-template-columns"})],wi.prototype,"gridTemplateColumns",void 0),qt([tt({attribute:"row-type"})],wi.prototype,"rowType",void 0),qt([g],wi.prototype,"rowData",void 0),qt([g],wi.prototype,"columnDefinitions",void 0),qt([g],wi.prototype,"cellItemTemplate",void 0),qt([g],wi.prototype,"headerCellItemTemplate",void 0),qt([g],wi.prototype,"rowIndex",void 0),qt([g],wi.prototype,"isActiveRow",void 0),qt([g],wi.prototype,"activeCellItemTemplate",void 0),qt([g],wi.prototype,"defaultCellItemTemplate",void 0),qt([g],wi.prototype,"defaultHeaderCellItemTemplate",void 0),qt([g],wi.prototype,"cellElements",void 0);class ki extends De{constructor(){super(),this.noTabbing=!1,this.generateHeader=gi,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(t,e,i)=>{if(0===this.rowElements.length)return this.focusRowIndex=0,void(this.focusColumnIndex=0);const o=Math.max(0,Math.min(this.rowElements.length-1,t)),s=this.rowElements[o].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),n=s[Math.max(0,Math.min(s.length-1,e))];i&&this.scrollHeight!==this.clientHeight&&(o<this.focusRowIndex&&this.scrollTop>0||o>this.focusRowIndex&&this.scrollTop<this.scrollHeight-this.clientHeight)&&n.scrollIntoView({block:"center",inline:"center"}),n.focus()},this.onChildListChange=(t,e)=>{t&&t.length&&(t.forEach(t=>{t.addedNodes.forEach(t=>{1===t.nodeType&&"row"===t.getAttribute("role")&&(t.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,h.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let t=this.gridTemplateColumns;if(void 0===t){if(""===this.generatedGridTemplateColumns&&this.rowElements.length>0){const t=this.rowElements[0];this.generatedGridTemplateColumns=new Array(t.cellElements.length).fill("1fr").join(" ")}t=this.generatedGridTemplateColumns}this.rowElements.forEach((e,i)=>{const o=e;o.rowIndex=i,o.gridTemplateColumns=t,this.columnDefinitionsStale&&(o.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(t){let e="";return t.forEach(t=>{e=`${e}${""===e?"":" "}1fr`}),e}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=ki.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=ki.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())):this.generatedGridTemplateColumns=""}headerCellItemTemplateChanged(){this.$fastController.isConnected&&null!==this.generatedHeader&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Et(t=>t.rowsData,t=>t.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener("focus",this.handleFocus),this.addEventListener("keydown",this.handleKeydown),this.addEventListener("focusout",this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),h.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener("focus",this.handleFocus),this.removeEventListener("keydown",this.handleKeydown),this.removeEventListener("focusout",this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(t){this.isUpdatingFocus=!0;const e=t.target;this.focusRowIndex=this.rowElements.indexOf(e),this.focusColumnIndex=e.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(t){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(t){null!==t.relatedTarget&&this.contains(t.relatedTarget)||this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(t){if(t.defaultPrevented)return;let e;const i=this.rowElements.length-1,o=this.offsetHeight+this.scrollTop,s=this.rowElements[i];switch(t.key){case"ArrowUp":t.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case"ArrowDown":t.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case"PageUp":if(t.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(0===this.focusRowIndex)return void this.focusOnCell(0,this.focusColumnIndex,!1);for(e=this.focusRowIndex-1;e>=0;e--){const t=this.rowElements[e];if(t.offsetTop<this.scrollTop){this.scrollTop=t.offsetTop+t.clientHeight-this.clientHeight;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case"PageDown":if(t.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=i||s.offsetTop+s.offsetHeight<=o)return void this.focusOnCell(i,this.focusColumnIndex,!1);for(e=this.focusRowIndex+1;e<=i;e++){const t=this.rowElements[e];if(t.offsetTop+t.offsetHeight>o){let e=0;this.generateHeader===fi&&null!==this.generatedHeader&&(e=this.generatedHeader.clientHeight),this.scrollTop=t.offsetTop-e;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case"Home":t.ctrlKey&&(t.preventDefault(),this.focusOnCell(0,0,!0));break;case"End":t.ctrlKey&&null!==this.columnDefinitions&&(t.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||!1===this.pendingFocusUpdate&&(this.pendingFocusUpdate=!0,h.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(null!==this.generatedHeader&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==pi&&this.rowsData.length>0){const t=document.createElement(this.rowElementTag);return this.generatedHeader=t,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===fi?$i:xi,void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(t,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}ki.generateColumns=t=>Object.getOwnPropertyNames(t).map((t,e)=>({columnDataKey:t,gridColumn:""+e})),qt([tt({attribute:"no-tabbing",mode:"boolean"})],ki.prototype,"noTabbing",void 0),qt([tt({attribute:"generate-header"})],ki.prototype,"generateHeader",void 0),qt([tt({attribute:"grid-template-columns"})],ki.prototype,"gridTemplateColumns",void 0),qt([g],ki.prototype,"rowsData",void 0),qt([g],ki.prototype,"columnDefinitions",void 0),qt([g],ki.prototype,"rowItemTemplate",void 0),qt([g],ki.prototype,"cellItemTemplate",void 0),qt([g],ki.prototype,"headerCellItemTemplate",void 0),qt([g],ki.prototype,"focusRowIndex",void 0),qt([g],ki.prototype,"focusColumnIndex",void 0),qt([g],ki.prototype,"defaultRowItemTemplate",void 0),qt([g],ki.prototype,"rowElementTag",void 0),qt([g],ki.prototype,"rowElements",void 0);const Ci=q`<template>${t=>null===t.rowData||null===t.columnDefinition||null===t.columnDefinition.columnDataKey?null:t.rowData[t.columnDefinition.columnDataKey]}</template>`,Ii=q`<template>${t=>null===t.columnDefinition?null:void 0===t.columnDefinition.title?t.columnDefinition.columnDataKey:t.columnDefinition.title}</template>`;class Fi extends De{constructor(){super(...arguments),this.cellType=mi,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(t,e){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var t;super.connectedCallback(),this.addEventListener("focusin",this.handleFocusin),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.style.gridColumn=""+(void 0===(null===(t=this.columnDefinition)||void 0===t?void 0:t.gridColumn)?0:this.columnDefinition.gridColumn),this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.handleFocusin),this.removeEventListener("focusout",this.handleFocusout),this.removeEventListener("keydown",this.handleKeydown),this.disconnectCellView()}handleFocusin(t){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case vi:if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){const t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus()}break;default:if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){const t=this.columnDefinition.cellFocusTargetCallback(this);null!==t&&t.focus()}}this.$emit("cell-focused",this)}}handleFocusout(t){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1)}handleKeydown(t){if(!(t.defaultPrevented||null===this.columnDefinition||this.cellType===mi&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===vi&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(t.key){case"Enter":case"F2":if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case vi:if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){const e=this.columnDefinition.headerCellFocusTargetCallback(this);null!==e&&e.focus(),t.preventDefault()}break;default:if(void 0!==this.columnDefinition.cellFocusTargetCallback){const e=this.columnDefinition.cellFocusTargetCallback(this);null!==e&&e.focus(),t.preventDefault()}}break;case"Escape":this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),t.preventDefault())}}updateCellView(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case vi:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=Ii.render(this,this);break;case void 0:case bi:case mi:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=Ci.render(this,this)}}disconnectCellView(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}qt([tt({attribute:"cell-type"})],Fi.prototype,"cellType",void 0),qt([tt({attribute:"grid-column"})],Fi.prototype,"gridColumn",void 0),qt([g],Fi.prototype,"rowData",void 0),qt([g],Fi.prototype,"columnDefinition",void 0);const Di=q`<div class="title" part="title" aria-label="${t=>t.dateFormatter.getDate(`${t.month}-2-${t.year}`,{month:"long",year:"numeric"})}"><span part="month">${t=>t.dateFormatter.getMonth(t.month)}</span><span part="year">${t=>t.dateFormatter.getYear(t.year)}</span></div>`,Ti=(t,e)=>{const i=t.tagFor(wi);return q`<${i} class="week" part="week" role="row" role-type="default" grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr">${Vt(t=>t,((t,e)=>{const i=t.tagFor(Fi);return q`<${i} class="${(t,i)=>i.parentContext.parent.getDayClassNames(t,e)}" part="day" tabindex="-1" role="gridcell" grid-column="${(t,e)=>e.index+1}" @click="${(t,e)=>e.parentContext.parent.handleDateSelect(e.event,t)}" @keydown="${(t,e)=>e.parentContext.parent.handleKeydown(e.event,t)}" aria-label="${(t,e)=>e.parentContext.parent.dateFormatter.getDate(`${t.month}-${t.day}-${t.year}`,{month:"long",day:"numeric"})}"><div class="date" part="${t=>e===`${t.month}-${t.day}-${t.year}`?"today":"date"}">${(t,e)=>e.parentContext.parent.dateFormatter.getDay(t.day)}</div><slot name="${t=>t.month}-${t=>t.day}-${t=>t.year}"></slot></${i}>`})(t,e),{positioning:!0})}</${i}>`},Si=(t,e)=>{const i=t.tagFor(ki),o=t.tagFor(wi);return q`<${i} class="days interact" part="days" generate-header="none"><${o} class="week-days" part="week-days" role="row" row-type="header" grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr">${Vt(t=>t.getWeekdayText(),(t=>{const e=t.tagFor(Fi);return q`<${e} class="week-day" part="week-day" tabindex="-1" grid-column="${(t,e)=>e.index+1}" abbr="${t=>t.abbr}">${t=>t.text}</${e}>`})(t),{positioning:!0})}</${o}>${Vt(t=>t.getDays(),Ti(t,e))}</${i}>`};class Oi extends De{}class Ei extends De{}class Vi extends(ri(Ei)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Ri extends Vi{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{if(!this.readOnly)switch(t.key){case" ":this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}function Ai(t){return Ae(t)&&("option"===t.getAttribute("role")||t instanceof HTMLOptionElement)}qt([tt({attribute:"readonly",mode:"boolean"})],Ri.prototype,"readOnly",void 0),qt([g],Ri.prototype,"defaultSlottedNodes",void 0),qt([g],Ri.prototype,"indeterminate",void 0);class Li extends De{constructor(t,e,i,o){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),e&&(this.initialValue=e),i&&(this.defaultSelected=i),o&&(this.selected=o),this.proxy=new Option(""+this.textContent,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(t,e){this.ariaChecked="boolean"!=typeof e?null:e?"true":"false"}contentChanged(t,e){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,e){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var t;return null!==(t=this.value)&&void 0!==t?t:this.text}get text(){var t,e;return null!==(e=null===(t=this.textContent)||void 0===t?void 0:t.replace(/\s+/g," ").trim())&&void 0!==e?e:""}set value(t){const e=""+(null!=t?t:"");this._value=e,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=e),p.notify(this,"value")}get value(){var t;return p.track(this,"value"),null!==(t=this._value)&&void 0!==t?t:this.text}get form(){return this.proxy?this.proxy.form:null}}qt([g],Li.prototype,"checked",void 0),qt([g],Li.prototype,"content",void 0),qt([g],Li.prototype,"defaultSelected",void 0),qt([tt({mode:"boolean"})],Li.prototype,"disabled",void 0),qt([tt({attribute:"selected",mode:"boolean"})],Li.prototype,"selectedAttribute",void 0),qt([g],Li.prototype,"selected",void 0),qt([tt({attribute:"value",mode:"fromView"})],Li.prototype,"initialValue",void 0);class Pi{}qt([g],Pi.prototype,"ariaChecked",void 0),qt([g],Pi.prototype,"ariaPosInSet",void 0),qt([g],Pi.prototype,"ariaSelected",void 0),qt([g],Pi.prototype,"ariaSetSize",void 0),Oe(Pi,Xe),Oe(Li,Mt,Pi);class Hi extends De{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return null!==(t=this.selectedOptions[0])&&void 0!==t?t:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(t=>t.disabled)}get length(){var t,e;return null!==(e=null===(t=this.options)||void 0===t?void 0:t.length)&&void 0!==e?e:0}get options(){return p.track(this,"options"),this._options}set options(t){this._options=t,p.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){const e=t.target.closest("option,[role=option]");if(e&&!e.disabled)return this.selectedIndex=this.options.indexOf(e),!0}focusAndScrollOptionIntoView(t=this.firstSelectedOption){this.contains(document.activeElement)&&null!==t&&(t.focus(),requestAnimationFrame(()=>{t.scrollIntoView({block:"nearest"})}))}focusinHandler(t){this.shouldSkipFocus||t.target!==t.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),e=new RegExp("^"+t,"gi");return this.options.filter(t=>t.text.trim().match(e))}getSelectableIndex(t=this.selectedIndex,e){const i=t>e?-1:t<e?1:0,o=t+i;let s=null;switch(i){case-1:s=this.options.reduceRight((t,e,i)=>!t&&!e.disabled&&i<o?e:t,s);break;case 1:s=this.options.reduce((t,e,i)=>!t&&!e.disabled&&i>o?e:t,s)}return this.options.indexOf(s)}handleChange(t,e){switch(e){case"selected":Hi.slottedOptionFilter(t)&&(this.selectedIndex=this.options.indexOf(t)),this.setSelectedOptions()}}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,Hi.TYPE_AHEAD_TIMEOUT_MS),t.length>1||(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const e=t.key;switch(e){case"Home":t.shiftKey||(t.preventDefault(),this.selectFirstOption());break;case"ArrowDown":t.shiftKey||(t.preventDefault(),this.selectNextOption());break;case"ArrowUp":t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break;case"End":t.preventDefault(),this.selectLastOption();break;case"Tab":return this.focusAndScrollOptionIntoView(),!0;case"Enter":case"Escape":return!0;case" ":if(this.typeaheadExpired)return!0;default:return 1===e.length&&this.handleTypeAhead(""+e),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(t,e){this.ariaMultiSelectable=e?"true":null}selectedIndexChanged(t,e){var i;if(this.hasSelectableOptions){if((null===(i=this.options[this.selectedIndex])||void 0===i?void 0:i.disabled)&&"number"==typeof t){const i=this.getSelectableIndex(t,e),o=i>-1?i:t;return this.selectedIndex=o,void(e===o&&this.selectedIndexChanged(e,o))}this.setSelectedOptions()}else this.selectedIndex=-1}selectedOptionsChanged(t,e){var i;const o=e.filter(Hi.slottedOptionFilter);null===(i=this.options)||void 0===i||i.forEach(t=>{const e=p.getNotifier(t);e.unsubscribe(this,"selected"),t.selected=o.includes(t),e.subscribe(this,"selected")})}selectFirstOption(){var t,e;this.disabled||(this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex(t=>!t.disabled))&&void 0!==e?e:-1)}selectLastOption(){this.disabled||(this.selectedIndex=function(t,e){let i=t.length;for(;i--;)if(e(t[i],i,t))return i;return-1}(this.options,t=>!t.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var t,e;this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex(t=>t.defaultSelected))&&void 0!==e?e:-1}setSelectedOptions(){var t,e,i;(null===(t=this.options)||void 0===t?void 0:t.length)&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.id)&&void 0!==i?i:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,e){this.options=e.reduce((t,e)=>(Ai(e)&&t.push(e),t),[]);const i=""+this.options.length;this.options.forEach((t,e)=>{t.id||(t.id=Ue("option-")),t.ariaPosInSet=""+(e+1),t.ariaSetSize=i}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,e){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches();if(t.length){const e=this.options.indexOf(t[0]);e>-1&&(this.selectedIndex=e)}this.typeaheadExpired=!1}}}Hi.slottedOptionFilter=t=>Ai(t)&&!t.hidden,Hi.TYPE_AHEAD_TIMEOUT_MS=1e3,qt([tt({mode:"boolean"})],Hi.prototype,"disabled",void 0),qt([g],Hi.prototype,"selectedIndex",void 0),qt([g],Hi.prototype,"selectedOptions",void 0),qt([g],Hi.prototype,"slottedOptions",void 0),qt([g],Hi.prototype,"typeaheadBuffer",void 0);class zi{}qt([g],zi.prototype,"ariaActiveDescendant",void 0),qt([g],zi.prototype,"ariaDisabled",void 0),qt([g],zi.prototype,"ariaExpanded",void 0),qt([g],zi.prototype,"ariaMultiSelectable",void 0),Oe(zi,Xe),Oe(Hi,zi);const Mi="above",Bi="below";class Ni extends Hi{}class ji extends(ni(Ni)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Ui="inline",qi="list",_i="both",Gi="none";class Wi extends ji{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=Ue("listbox-"),this.maxHeight=0,this.open=!1}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}validate(){super.validate(this.control)}get isAutocompleteInline(){return this.autocomplete===Ui||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===qi||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===_i}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),void h.queueUpdate(()=>this.focus());this.ariaControls="",this.ariaExpanded="false"}get options(){return p.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(t){this._options=t,p.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}get value(){return p.track(this,"value"),this._value}set value(t){var e,i,o;const s=""+this._value;if(this.$fastController.isConnected&&this.options){const s=this.options.findIndex(e=>e.text.toLowerCase()===t.toLowerCase()),n=null===(e=this.options[this.selectedIndex])||void 0===e?void 0:e.text,r=null===(i=this.options[s])||void 0===i?void 0:i.text;this.selectedIndex=n!==r?s:this.selectedIndex,t=(null===(o=this.firstSelectedOption)||void 0===o?void 0:o.text)||t}s!==t&&(this._value=t,super.valueChanged(s,t),p.notify(this,"value"))}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(!e||e.disabled)return;this.selectedOptions=[e],this.control.value=e.text,this.clearSelectionRange(),this.updateValue(!0)}return this.open=!this.open,this.open&&this.control.focus(),!0}}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.value&&(this.initialValue=this.value)}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){this.autocomplete&&this.autocomplete!==Gi||(this.filter="");const t=this.filter.toLowerCase();this.filteredOptions=this._options.filter(t=>t.text.toLowerCase().startsWith(this.filter.toLowerCase())),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach(t=>{t.hidden=!this.filteredOptions.includes(t)}))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame(()=>{var t;null===(t=this.firstSelectedOption)||void 0===t||t.scrollIntoView({block:"nearest"})}))}focusoutHandler(t){if(this.syncValue(),!this.open)return!0;const e=t.relatedTarget;this.isSameNode(e)?this.focus():this.options&&this.options.includes(e)||(this.open=!1)}inputHandler(t){if(this.filter=this.control.value,this.filterOptions(),this.isAutocompleteInline||(this.selectedIndex=this.options.map(t=>t.text).indexOf(this.control.value)),t.inputType.includes("deleteContent")||!this.filter.length)return!0;this.isAutocompleteList&&!this.open&&(this.open=!0),this.isAutocompleteInline&&(this.filteredOptions.length?(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption),this.setInlineSelection()):this.selectedIndex=-1)}keydownHandler(t){const e=t.key;if(t.ctrlKey||t.shiftKey)return!0;switch(e){case"Enter":this.syncValue(),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1,this.clearSelectionRange();break;case"Escape":if(this.isAutocompleteInline||(this.selectedIndex=-1),this.open){this.open=!1;break}this.value="",this.control.value="",this.filter="",this.filterOptions();break;case"Tab":if(this.setInputToSelection(),!this.open)return!0;t.preventDefault(),this.open=!1;break;case"ArrowUp":case"ArrowDown":if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(t),this.isAutocompleteInline&&this.setInlineSelection();break;default:return!0}}keyupHandler(t){switch(t.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions()}}selectedIndexChanged(t,e){if(this.$fastController.isConnected){if((e=Be(-1,this.options.length-1,e))!==this.selectedIndex)return void(this.selectedIndex=e);super.selectedIndexChanged(t,e)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){const t=this.options.findIndex(t=>null!==t.getAttribute("selected")||t.selected);this.selectedIndex=t,!this.dirtyValue&&this.firstSelectedOption&&(this.value=this.firstSelectedOption.text),this.setSelectedOptions()}}setInputToSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus())}setInlineSelection(){this.firstSelectedOption&&(this.setInputToSelection(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}syncValue(){var t;const e=this.selectedIndex>-1?null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text:this.control.value;this.updateValue(this.value!==e)}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Mi:Bi,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Mi?~~t.top:~~e}selectedOptionsChanged(t,e){this.$fastController.isConnected&&this._options.forEach(t=>{t.selected=e.includes(t)})}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.updateValue()}updateValue(t){var e;this.$fastController.isConnected&&(this.value=(null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)||this.control.value,this.control.value=this.value),t&&this.$emit("change")}clearSelectionRange(){const t=this.control.value.length;this.control.setSelectionRange(t,t)}}qt([tt({attribute:"autocomplete",mode:"fromView"})],Wi.prototype,"autocomplete",void 0),qt([g],Wi.prototype,"maxHeight",void 0),qt([tt({attribute:"open",mode:"boolean"})],Wi.prototype,"open",void 0),qt([tt],Wi.prototype,"placeholder",void 0),qt([tt({attribute:"position"})],Wi.prototype,"positionAttribute",void 0),qt([g],Wi.prototype,"position",void 0);class Ki{}qt([g],Ki.prototype,"ariaAutoComplete",void 0),qt([g],Ki.prototype,"ariaControls",void 0),Oe(Ki,zi),Oe(Wi,Mt,Ki);function Xi(t){const e=t.parentElement;if(e)return e;{const e=t.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}const Yi=document.createElement("div");class Qi{setProperty(t,e){h.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){h.queueUpdate(()=>this.target.removeProperty(t))}}class Zi extends Qi{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class Ji extends Qi{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const e=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[e].style}}}class to{constructor(t){this.store=new Map,this.target=null;const e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),p.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}targetChanged(){if(null!==this.target)for(const[t,e]of this.store.entries())this.target.setProperty(t,e)}setProperty(t,e){this.store.set(t,e),h.queueUpdate(()=>{null!==this.target&&this.target.setProperty(t,e)})}removeProperty(t){this.store.delete(t),h.queueUpdate(()=>{null!==this.target&&this.target.removeProperty(t)})}handleChange(t,e){const{sheet:i}=this.style;if(i){const t=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[t].style}else this.target=null}}qt([g],to.prototype,"target",void 0);class eo{constructor(t){this.target=t.style}setProperty(t,e){h.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){h.queueUpdate(()=>this.target.removeProperty(t))}}class io{setProperty(t,e){io.properties[t]=e;for(const i of io.roots.values())no.getOrCreate(io.normalizeRoot(i)).setProperty(t,e)}removeProperty(t){delete io.properties[t];for(const e of io.roots.values())no.getOrCreate(io.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){const{roots:e}=io;if(!e.has(t)){e.add(t);const i=no.getOrCreate(this.normalizeRoot(t));for(const t in io.properties)i.setProperty(t,io.properties[t])}}static unregisterRoot(t){const{roots:e}=io;if(e.has(t)){e.delete(t);const i=no.getOrCreate(io.normalizeRoot(t));for(const t in io.properties)i.removeProperty(t)}}static normalizeRoot(t){return t===Yi?document:t}}io.roots=new Set,io.properties={};const oo=new WeakMap,so=h.supportsAdoptedStyleSheets?class extends Qi{constructor(t){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(_.create([e]))}}:to,no=Object.freeze({getOrCreate(t){if(oo.has(t))return oo.get(t);let e;return t===Yi?e=new io:t instanceof Document?e=h.supportsAdoptedStyleSheets?new Zi:new Ji:e=t instanceof ht?new so(t):new eo(t),oo.set(t,e),e}});class ro extends dt{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,null!==t.cssCustomPropertyName&&(this.cssCustomProperty="--"+t.cssCustomPropertyName,this.cssVar=`var(${this.cssCustomProperty})`),this.id=ro.uniqueId(),ro.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new ro({name:"string"==typeof t?t:t.name,cssCustomPropertyName:"string"==typeof t?t:void 0===t.cssCustomPropertyName?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return"string"==typeof t.cssCustomProperty}static isDerivedDesignTokenValue(t){return"function"==typeof t}static getTokenById(t){return ro.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const e=uo.getOrCreate(t).get(this);if(void 0!==e)return e;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,e){return this._appliedTo.add(t),e instanceof ro&&(e=this.alias(e)),uo.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),uo.existsFor(t)&&uo.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(Yi,t),this}subscribe(t,e){const i=this.getOrCreateSubscriberSet(e);e&&!uo.existsFor(e)&&uo.getOrCreate(e),i.has(t)||i.add(t)}unsubscribe(t,e){const i=this.subscribers.get(e||this);i&&i.has(t)&&i.delete(t)}notify(t){const e=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(t=>t.handleChange(e)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(t=>t.handleChange(e))}alias(t){return e=>t.getValueFor(e)}}ro.uniqueId=(()=>{let t=0;return()=>(t++,t.toString(16))})(),ro.tokensById=new Map;class ao{constructor(t,e,i){this.source=t,this.token=e,this.node=i,this.dependencies=new Set,this.observer=p.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,v))}}class lo{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),p.getNotifier(this).notify(t.id))}get(t){return p.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const co=new WeakMap,ho=new WeakMap;class uo{constructor(t){this.target=t,this.store=new lo,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,e)=>{const i=ro.getTokenById(e);if(i&&(i.notify(this.target),ro.isCSSDesignToken(i))){const e=this.parent,o=this.isReflecting(i);if(e){const s=e.get(i),n=t.get(i);s===n||o?s===n&&o&&this.stopReflectToCSS(i):this.reflectToCSS(i)}else o||this.reflectToCSS(i)}}},co.set(t,this),p.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof ht?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return co.get(t)||new uo(t)}static existsFor(t){return co.has(t)}static findParent(t){if(Yi!==t.target){let e=Xi(t.target);for(;null!==e;){if(co.has(e))return co.get(e);e=Xi(e)}return uo.getOrCreate(Yi)}return null}static findClosestAssignedNode(t,e){let i=e;do{if(i.has(t))return i;i=i.parent?i.parent:i.target!==Yi?uo.getOrCreate(Yi):null}while(null!==i);return null}get parent(){return ho.get(this)||null}has(t){return this.assignedValues.has(t)}get(t){const e=this.store.get(t);if(void 0!==e)return e;const i=this.getRaw(t);return void 0!==i?(this.hydrate(t,i),this.get(t)):void 0}getRaw(t){var e;return this.assignedValues.has(t)?this.assignedValues.get(t):null===(e=uo.findClosestAssignedNode(t,this))||void 0===e?void 0:e.getRaw(t)}set(t,e){ro.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),ro.isDerivedDesignTokenValue(e)?this.setupBindingObserver(t,e):this.store.set(t,e)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const e=this.getRaw(t);e?this.hydrate(t,e):this.store.delete(t)}bind(){const t=uo.findParent(this);t&&t.appendChild(this);for(const t of this.assignedValues.keys())t.notify(this.target)}unbind(){if(this.parent){ho.get(this).removeChild(this)}}appendChild(t){t.parent&&ho.get(t).removeChild(t);const e=this.children.filter(e=>t.contains(e));ho.set(t,this),this.children.push(t),e.forEach(e=>t.appendChild(e)),p.getNotifier(this.store).subscribe(t);for(const[e,i]of this.store.all())t.hydrate(e,this.bindingObservers.has(e)?this.getRaw(e):i)}removeChild(t){const e=this.children.indexOf(t);return-1!==e&&this.children.splice(e,1),p.getNotifier(this.store).unsubscribe(t),t.parent===this&&ho.delete(t)}contains(t){return function(t,e){let i=e;for(;null!==i;){if(i===t)return!0;i=Xi(i)}return!1}(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),uo.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),uo.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){const i=ro.getTokenById(e);i&&this.hydrate(i,this.getRaw(i))}hydrate(t,e){if(!this.has(t)){const i=this.bindingObservers.get(t);ro.isDerivedDesignTokenValue(e)?i?i.source!==e&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,e)):this.setupBindingObserver(t,e):(i&&this.tearDownBindingObserver(t),this.store.set(t,e))}}setupBindingObserver(t,e){const i=new ao(e,t,this);return this.bindingObservers.set(t,i),i}tearDownBindingObserver(t){return!!this.bindingObservers.has(t)&&(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0)}}uo.cssCustomPropertyReflector=new class{startReflection(t,e){t.subscribe(this,e),this.handleChange({token:t,target:e})}stopReflection(t,e){t.unsubscribe(this,e),this.remove(t,e)}handleChange(t){const{token:e,target:i}=t;this.add(e,i)}add(t,e){no.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(uo.getOrCreate(e).get(t)))}remove(t,e){no.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&"function"==typeof t.createCSS?t.createCSS():t}},qt([g],uo.prototype,"children",void 0);const po=Object.freeze({create:function(t){return ro.from(t)},notifyConnection:t=>!(!t.isConnected||!uo.existsFor(t))&&(uo.getOrCreate(t).bind(),!0),notifyDisconnection:t=>!(t.isConnected||!uo.existsFor(t))&&(uo.getOrCreate(t).unbind(),!0),registerRoot(t=Yi){io.registerRoot(t)},unregisterRoot(t=Yi){io.unregisterRoot(t)}}),go=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),fo=new Map,mo=new Map;let vo=null;const bo=Jt.createInterface(t=>t.cachedCallback(t=>(null===vo&&(vo=new xo(null,t)),vo))),yo=Object.freeze({tagFor:t=>mo.get(t),responsibleFor(t){const e=t.$$designSystem$$;if(e)return e;return Jt.findResponsibleContainer(t).get(bo)},getOrCreate(t){if(!t)return null===vo&&(vo=Jt.getOrCreateDOMContainer().get(bo)),vo;const e=t.$$designSystem$$;if(e)return e;const i=Jt.getOrCreateDOMContainer(t);if(i.has(bo,!1))return i.get(bo);{const e=new xo(t,i);return i.register(fe.instance(bo,e)),e}}});class xo{constructor(t,e){this.owner=t,this.container=e,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>go.definitionCallbackOnly,null!==t&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const e=this.container,i=[],o=this.disambiguate,s=this.shadowRootMode,n={elementPrefix:this.prefix,tryDefineElement(t,n,r){const a=function(t,e,i){return"string"==typeof t?{name:t,type:e,callback:i}:t}(t,n,r),{name:l,callback:c,baseClass:h}=a;let{type:d}=a,u=l,p=fo.get(u),g=!0;for(;p;){const t=o(u,d,p);switch(t){case go.ignoreDuplicate:return;case go.definitionCallbackOnly:g=!1,p=void 0;break;default:u=t,p=fo.get(u)}}g&&((mo.has(d)||d===De)&&(d=class extends d{}),fo.set(u,d),mo.set(d,u),h&&mo.set(h,u)),i.push(new $o(e,u,d,s,c,g))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&po.registerRoot(this.designTokenRoot)),e.registerWithContext(n,...t);for(const t of i)t.callback(t),t.willDefine&&null!==t.definition&&t.definition.define();return this}}class $o{constructor(t,e,i,o,s,n){this.container=t,this.name=e,this.type=i,this.shadowRootMode=o,this.callback=s,this.willDefine=n,this.definition=null}definePresentation(t){Ie.define(this.name,t,this.container)}defineElement(t){this.definition=new st(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return yo.tagFor(t)}}
|
|
16
|
+
function qt(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}const _t=new Map;"metadata"in Reflect||(Reflect.metadata=function(t,e){return function(i){Reflect.defineMetadata(t,e,i)}},Reflect.defineMetadata=function(t,e,i){let o=_t.get(i);void 0===o&&_t.set(i,o=new Map),o.set(t,e)},Reflect.getOwnMetadata=function(t,e){const i=_t.get(e);if(void 0!==i)return i.get(t)});class Gt{constructor(t,e){this.container=t,this.key=e}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,ge(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){const{container:i,key:o}=this;return this.container=this.key=void 0,i.registerResolver(o,new ie(o,t,e))}}function Wt(t){const e=t.slice(),i=Object.keys(t),o=i.length;let s;for(let n=0;n<o;++n)s=i[n],we(s)||(e[s]=t[s]);return e}const Kt=Object.freeze({none(t){throw Error(t.toString()+" not registered, did you forget to add @singleton()?")},singleton:t=>new ie(t,1,t),transient:t=>new ie(t,2,t)}),Xt=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:Kt.singleton})}),Yt=new Map;function Qt(t){return e=>Reflect.getOwnMetadata(t,e)}let Zt=null;const Jt=Object.freeze({createContainer:t=>new ue(null,Object.assign({},Xt.default,t)),findResponsibleContainer(t){const e=t.$$container$$;return e&&e.responsibleForOwnerRequests?e:Jt.findParentContainer(t)},findParentContainer(t){const e=new CustomEvent(he,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return t.dispatchEvent(e),e.detail.container||Jt.getOrCreateDOMContainer()},getOrCreateDOMContainer:(t,e)=>t?t.$$container$$||new ue(t,Object.assign({},Xt.default,e,{parentLocator:Jt.findParentContainer})):Zt||(Zt=new ue(null,Object.assign({},Xt.default,e,{parentLocator:()=>null}))),getDesignParamtypes:Qt("design:paramtypes"),getAnnotationParamtypes:Qt("di:paramtypes"),getOrCreateAnnotationParamTypes(t){let e=this.getAnnotationParamtypes(t);return void 0===e&&Reflect.defineMetadata("di:paramtypes",e=[],t),e},getDependencies(t){let e=Yt.get(t);if(void 0===e){const i=t.inject;if(void 0===i){const i=Jt.getDesignParamtypes(t),o=Jt.getAnnotationParamtypes(t);if(void 0===i)if(void 0===o){const i=Object.getPrototypeOf(t);e="function"==typeof i&&i!==Function.prototype?Wt(Jt.getDependencies(i)):[]}else e=Wt(o);else if(void 0===o)e=Wt(i);else{e=Wt(i);let t,s=o.length;for(let i=0;i<s;++i)t=o[i],void 0!==t&&(e[i]=t);const n=Object.keys(o);let r;s=n.length;for(let t=0;t<s;++t)r=n[t],we(r)||(e[r]=o[r])}}else e=Wt(i);Yt.set(t,e)}return e},defineProperty(t,e,i,o=!1){const s="$di_"+e;Reflect.defineProperty(t,e,{get:function(){let t=this[s];if(void 0===t){const n=this instanceof HTMLElement?Jt.findResponsibleContainer(this):Jt.getOrCreateDOMContainer();if(t=n.get(i),this[s]=t,o&&this instanceof ht){const o=this.$fastController,n=()=>{Jt.findResponsibleContainer(this).get(i)!==this[s]&&(this[s]=t,o.notify(e))};o.subscribe({handleChange:n},"isConnected")}}return t}})},createInterface(t,e){const i="function"==typeof t?t:e,o="string"==typeof t?t:t&&"friendlyName"in t&&t.friendlyName||be,s="string"!=typeof t&&(t&&"respectConnection"in t&&t.respectConnection||!1),n=function(t,e,i){if(null==t||void 0!==new.target)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(e)Jt.defineProperty(t,e,n,s);else{Jt.getOrCreateAnnotationParamTypes(t)[i]=n}};return n.$isInterface=!0,n.friendlyName=null==o?"(anonymous)":o,null!=i&&(n.register=function(t,e){return i(new Gt(t,null!=e?e:n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject:(...t)=>function(e,i,o){if("number"==typeof o){const i=Jt.getOrCreateAnnotationParamTypes(e),s=t[0];void 0!==s&&(i[o]=s)}else if(i)Jt.defineProperty(e,i,t[0]);else{const i=o?Jt.getOrCreateAnnotationParamTypes(o.value):Jt.getOrCreateAnnotationParamTypes(e);let s;for(let e=0;e<t.length;++e)s=t[e],void 0!==s&&(i[e]=s)}},transient:t=>(t.register=function(e){return fe.transient(t,t).register(e)},t.registerInRequestor=!1,t),singleton:(t,e=ee)=>(t.register=function(e){return fe.singleton(t,t).register(e)},t.registerInRequestor=e.scoped,t)}),te=Jt.createInterface("Container");Jt.inject;const ee={scoped:!1};class ie{constructor(t,e,i){this.key=t,this.strategy=e,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(t){return t.registerResolver(this.key,this)}resolve(t,e){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error("Cyclic dependency found: "+this.state.name);return this.resolving=!0,this.state=t.getFactory(this.state).construct(e),this.strategy=0,this.resolving=!1,this.state;case 2:{const i=t.getFactory(this.state);if(null===i)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(e)}case 3:return this.state(t,e,this);case 4:return this.state[0].resolve(t,e);case 5:return e.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(t){var e,i,o;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return null!==(o=null===(i=null===(e=t.getResolver(this.state))||void 0===e?void 0:e.getFactory)||void 0===i?void 0:i.call(e,t))&&void 0!==o?o:null;default:return null}}}function oe(t){return this.get(t)}function se(t,e){return e(t)}class ne{constructor(t,e){this.Type=t,this.dependencies=e,this.transformers=null}construct(t,e){let i;return i=void 0===e?new this.Type(...this.dependencies.map(oe,t)):new this.Type(...this.dependencies.map(oe,t),...e),null==this.transformers?i:this.transformers.reduce(se,i)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}}const re={$isResolver:!0,resolve:(t,e)=>e};function ae(t){return"function"==typeof t.register}function le(t){return function(t){return ae(t)&&"boolean"==typeof t.registerInRequestor}(t)&&t.registerInRequestor}const ce=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),he="__DI_LOCATE_PARENT__",de=new Map;class ue{constructor(t,e){this.owner=t,this.config=e,this._parent=void 0,this.registerDepth=0,this.context=null,null!==t&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(te,re),t instanceof Node&&t.addEventListener(he,t=>{t.composedPath()[0]!==this.owner&&(t.detail.container=this,t.stopImmediatePropagation())})}get parent(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return null===this.parent?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...e){return this.context=t,this.register(...e),this.context=null,this}register(...t){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let e,i,o,s,n;const r=this.context;for(let a=0,l=t.length;a<l;++a)if(e=t[a],ye(e))if(ae(e))e.register(this,r);else if(void 0!==e.prototype)fe.singleton(e,e).register(this);else for(i=Object.keys(e),s=0,n=i.length;s<n;++s)o=e[i[s]],ye(o)&&(ae(o)?o.register(this,r):this.register(o));return--this.registerDepth,this}registerResolver(t,e){me(t);const i=this.resolvers,o=i.get(t);return null==o?i.set(t,e):o instanceof ie&&4===o.strategy?o.state.push(e):i.set(t,new ie(t,4,[o,e])),e}registerTransformer(t,e){const i=this.getResolver(t);if(null==i)return!1;if(i.getFactory){const t=i.getFactory(this);return null!=t&&(t.registerTransformer(e),!0)}return!1}getResolver(t,e=!0){if(me(t),void 0!==t.resolve)return t;let i,o=this;for(;null!=o;){if(i=o.resolvers.get(t),null!=i)return i;if(null==o.parent){const i=le(t)?this:o;return e?this.jitRegister(t,i):null}o=o.parent}return null}has(t,e=!1){return!!this.resolvers.has(t)||!(!e||null==this.parent)&&this.parent.has(t,!0)}get(t){if(me(t),t.$isResolver)return t.resolve(this,this);let e,i=this;for(;null!=i;){if(e=i.resolvers.get(t),null!=e)return e.resolve(i,this);if(null==i.parent){const o=le(t)?this:i;return e=this.jitRegister(t,o),e.resolve(i,this)}i=i.parent}throw new Error("Unable to resolve key: "+t)}getAll(t,e=!1){me(t);const i=this;let s,n=i;if(e){let e=o;for(;null!=n;)s=n.resolvers.get(t),null!=s&&(e=e.concat(ve(s,n,i))),n=n.parent;return e}for(;null!=n;){if(s=n.resolvers.get(t),null!=s)return ve(s,n,i);if(n=n.parent,null==n)return o}return o}getFactory(t){let e=de.get(t);if(void 0===e){if(xe(t))throw new Error(t.name+" is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.");de.set(t,e=new ne(t,Jt.getDependencies(t)))}return e}registerFactory(t,e){de.set(t,e)}createChild(t){return new ue(null,Object.assign({},this.config,t,{parentLocator:()=>this}))}jitRegister(t,e){if("function"!=typeof t)throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(ce.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(ae(t)){const i=t.register(e);if(!(i instanceof Object)||null==i.resolve){const i=e.resolvers.get(t);if(null!=i)return i;throw new Error("A valid resolver was not returned from the static register method")}return i}if(t.$isInterface)throw new Error("Attempted to jitRegister an interface: "+t.friendlyName);{const i=this.config.defaultResolver(t,e);return e.resolvers.set(t,i),i}}}const pe=new WeakMap;function ge(t){return function(e,i,o){if(pe.has(o))return pe.get(o);const s=t(e,i,o);return pe.set(o,s),s}}const fe=Object.freeze({instance:(t,e)=>new ie(t,0,e),singleton:(t,e)=>new ie(t,1,e),transient:(t,e)=>new ie(t,2,e),callback:(t,e)=>new ie(t,3,e),cachedCallback:(t,e)=>new ie(t,3,ge(e)),aliasTo:(t,e)=>new ie(e,5,t)});function me(t){if(null==t)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function ve(t,e,i){if(t instanceof ie&&4===t.strategy){const o=t.state;let s=o.length;const n=new Array(s);for(;s--;)n[s]=o[s].resolve(e,i);return n}return[t.resolve(e,i)]}const be="(anonymous)";function ye(t){return"object"==typeof t&&null!==t||"function"==typeof t}const xe=function(){const t=new WeakMap;let e=!1,i="",o=0;return function(s){return e=t.get(s),void 0===e&&(i=s.toString(),o=i.length,e=o>=29&&o<=100&&125===i.charCodeAt(o-1)&&i.charCodeAt(o-2)<=32&&93===i.charCodeAt(o-3)&&101===i.charCodeAt(o-4)&&100===i.charCodeAt(o-5)&&111===i.charCodeAt(o-6)&&99===i.charCodeAt(o-7)&&32===i.charCodeAt(o-8)&&101===i.charCodeAt(o-9)&&118===i.charCodeAt(o-10)&&105===i.charCodeAt(o-11)&&116===i.charCodeAt(o-12)&&97===i.charCodeAt(o-13)&&110===i.charCodeAt(o-14)&&88===i.charCodeAt(o-15),t.set(s,e)),e}}(),$e={};function we(t){switch(typeof t){case"number":return t>=0&&(0|t)===t;case"string":{const e=$e[t];if(void 0!==e)return e;const i=t.length;if(0===i)return $e[t]=!1;let o=0;for(let e=0;e<i;++e)if(o=t.charCodeAt(e),0===e&&48===o&&i>1||o<48||o>57)return $e[t]=!1;return $e[t]=!0}default:return!1}}function ke(t){return t.toLowerCase()+":presentation"}const Ce=new Map,Ie=Object.freeze({define(t,e,i){const o=ke(t);void 0===Ce.get(o)?Ce.set(o,e):Ce.set(o,!1),i.register(fe.instance(o,e))},forTag(t,e){const i=ke(t),o=Ce.get(i);if(!1===o){return Jt.findResponsibleContainer(e).get(i)}return o||null}});class Fe{constructor(t,e){this.template=t||null,this.styles=void 0===e?null:Array.isArray(e)?_.create(e):e instanceof _?e:_.create([e])}applyTo(t){const e=t.$fastController;null===e.template&&(e.template=this.template),null===e.styles&&(e.styles=this.styles)}}class De extends ht{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=Ie.forTag(this.tagName,this)),this._presentation}templateChanged(){void 0!==this.template&&(this.$fastController.template=this.template)}stylesChanged(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}connectedCallback(){null!==this.$presentation&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(e={})=>new Se(this===De?class extends De{}:this,t,e)}}function Te(t,e,i){return"function"==typeof t?t(e,i):t}qt([g],De.prototype,"template",void 0),qt([g],De.prototype,"styles",void 0);class Se{constructor(t,e,i){this.type=t,this.elementDefinition=e,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,e){const i=this.definition,o=this.overrideDefinition,s=`${i.prefix||e.elementPrefix}-${i.baseName}`;e.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:t=>{const e=new Fe(Te(i.template,t,i),Te(i.styles,t,i));t.definePresentation(e);let s=Te(i.shadowOptions,t,i);t.shadowRootMode&&(s?o.shadowOptions||(s.mode=t.shadowRootMode):null!==s&&(s={mode:t.shadowRootMode})),t.defineElement({elementOptions:Te(i.elementOptions,t,i),shadowOptions:s,attributes:Te(i.attributes,t,i)})}})}}function Oe(t,...e){e.forEach(e=>{if(Object.getOwnPropertyNames(e.prototype).forEach(i=>{"constructor"!==i&&Object.defineProperty(t.prototype,i,Object.getOwnPropertyDescriptor(e.prototype,i))}),e.attributes){const i=t.attributes||[];t.attributes=i.concat(e.attributes)}})}class Ee extends De{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=t=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}}qt([tt({attribute:"heading-level",mode:"fromView",converter:Z})],Ee.prototype,"headinglevel",void 0),qt([tt({mode:"boolean"})],Ee.prototype,"expanded",void 0),qt([tt],Ee.prototype,"id",void 0),Oe(Ee,Mt);const Ve="horizontal",Re="vertical";function Ae(...t){return t.every(t=>t instanceof HTMLElement)}let Le;var Pe;!function(t){t[t.alt=18]="alt",t[t.arrowDown=40]="arrowDown",t[t.arrowLeft=37]="arrowLeft",t[t.arrowRight=39]="arrowRight",t[t.arrowUp=38]="arrowUp",t[t.back=8]="back",t[t.backSlash=220]="backSlash",t[t.break=19]="break",t[t.capsLock=20]="capsLock",t[t.closeBracket=221]="closeBracket",t[t.colon=186]="colon",t[t.colon2=59]="colon2",t[t.comma=188]="comma",t[t.ctrl=17]="ctrl",t[t.delete=46]="delete",t[t.end=35]="end",t[t.enter=13]="enter",t[t.equals=187]="equals",t[t.equals2=61]="equals2",t[t.equals3=107]="equals3",t[t.escape=27]="escape",t[t.forwardSlash=191]="forwardSlash",t[t.function1=112]="function1",t[t.function10=121]="function10",t[t.function11=122]="function11",t[t.function12=123]="function12",t[t.function2=113]="function2",t[t.function3=114]="function3",t[t.function4=115]="function4",t[t.function5=116]="function5",t[t.function6=117]="function6",t[t.function7=118]="function7",t[t.function8=119]="function8",t[t.function9=120]="function9",t[t.home=36]="home",t[t.insert=45]="insert",t[t.menu=93]="menu",t[t.minus=189]="minus",t[t.minus2=109]="minus2",t[t.numLock=144]="numLock",t[t.numPad0=96]="numPad0",t[t.numPad1=97]="numPad1",t[t.numPad2=98]="numPad2",t[t.numPad3=99]="numPad3",t[t.numPad4=100]="numPad4",t[t.numPad5=101]="numPad5",t[t.numPad6=102]="numPad6",t[t.numPad7=103]="numPad7",t[t.numPad8=104]="numPad8",t[t.numPad9=105]="numPad9",t[t.numPadDivide=111]="numPadDivide",t[t.numPadDot=110]="numPadDot",t[t.numPadMinus=109]="numPadMinus",t[t.numPadMultiply=106]="numPadMultiply",t[t.numPadPlus=107]="numPadPlus",t[t.openBracket=219]="openBracket",t[t.pageDown=34]="pageDown",t[t.pageUp=33]="pageUp",t[t.period=190]="period",t[t.print=44]="print",t[t.quote=222]="quote",t[t.scrollLock=145]="scrollLock",t[t.shift=16]="shift",t[t.space=32]="space",t[t.tab=9]="tab",t[t.tilde=192]="tilde",t[t.windowsLeft=91]="windowsLeft",t[t.windowsOpera=219]="windowsOpera",t[t.windowsRight=92]="windowsRight"}(Pe||(Pe={}));const ze={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp"};var He;function Me(t,e,i){return i<t?e:i>e?t:i}function Be(t,e,i){return Math.min(Math.max(i,t),e)}function Ne(t,e,i=0){return[e,i]=[e,i].sort((t,e)=>t-e),e<=t&&t<i}!function(t){t.ltr="ltr",t.rtl="rtl"}(He||(He={}));let je=0;function Ue(t=""){return`${t}${je++}`}var qe;!function(t){t.Canvas="Canvas",t.CanvasText="CanvasText",t.LinkText="LinkText",t.VisitedText="VisitedText",t.ActiveText="ActiveText",t.ButtonFace="ButtonFace",t.ButtonText="ButtonText",t.Field="Field",t.FieldText="FieldText",t.Highlight="Highlight",t.HighlightText="HighlightText",t.GrayText="GrayText"}(qe||(qe={}));const _e="single",Ge="multi";class We extends De{constructor(){super(...arguments),this.expandmode=Ge,this.activeItemIndex=0,this.change=()=>{this.$emit("change")},this.setItems=()=>{var t;if(0!==this.accordionItems.length&&(this.accordionIds=this.getItemIds(),this.accordionItems.forEach((t,e)=>{t instanceof Ee&&(t.addEventListener("change",this.activeItemChange),this.isSingleExpandMode()&&(this.activeItemIndex!==e?t.expanded=!1:t.expanded=!0));const i=this.accordionIds[e];t.setAttribute("id","string"!=typeof i?"accordion-"+(e+1):i),this.activeid=this.accordionIds[this.activeItemIndex],t.addEventListener("keydown",this.handleItemKeyDown),t.addEventListener("focus",this.handleItemFocus)}),this.isSingleExpandMode())){(null!==(t=this.findExpandedItem())&&void 0!==t?t:this.accordionItems[0]).setAttribute("aria-disabled","true")}},this.removeItemListeners=t=>{t.forEach((t,e)=>{t.removeEventListener("change",this.activeItemChange),t.removeEventListener("keydown",this.handleItemKeyDown),t.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=t=>{if(t.defaultPrevented||t.target!==t.currentTarget)return;t.preventDefault();const e=t.target;this.activeid=e.getAttribute("id"),this.isSingleExpandMode()&&(this.resetItems(),e.expanded=!0,e.setAttribute("aria-disabled","true"),this.accordionItems.forEach(t=>{t.hasAttribute("disabled")||t.id===this.activeid||t.removeAttribute("aria-disabled")})),this.activeItemIndex=Array.from(this.accordionItems).indexOf(e),this.change()},this.handleItemKeyDown=t=>{if(t.target===t.currentTarget)switch(this.accordionIds=this.getItemIds(),t.key){case"ArrowUp":t.preventDefault(),this.adjust(-1);break;case"ArrowDown":t.preventDefault(),this.adjust(1);break;case"Home":this.activeItemIndex=0,this.focusItem();break;case"End":this.activeItemIndex=this.accordionItems.length-1,this.focusItem()}},this.handleItemFocus=t=>{if(t.target===t.currentTarget){const e=t.target,i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(e);this.activeItemIndex!==i&&-1!==i&&(this.activeItemIndex=i,this.activeid=this.accordionIds[this.activeItemIndex])}}}accordionItemsChanged(t,e){this.$fastController.isConnected&&(this.removeItemListeners(t),this.setItems())}findExpandedItem(){for(let t=0;t<this.accordionItems.length;t++)if("true"===this.accordionItems[t].getAttribute("expanded"))return this.accordionItems[t];return null}resetItems(){this.accordionItems.forEach((t,e)=>{t.expanded=!1})}getItemIds(){return this.accordionItems.map(t=>t.getAttribute("id"))}isSingleExpandMode(){return this.expandmode===_e}adjust(t){this.activeItemIndex=Me(0,this.accordionItems.length-1,this.activeItemIndex+t),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof Ee&&t.expandbutton.focus()}}qt([tt({attribute:"expand-mode"})],We.prototype,"expandmode",void 0),qt([g],We.prototype,"accordionItems",void 0);const Ke=(t,e)=>q`<a class="control" part="control" download="${t=>t.download}" href="${t=>t.href}" hreflang="${t=>t.hreflang}" ping="${t=>t.ping}" referrerpolicy="${t=>t.referrerpolicy}" rel="${t=>t.rel}" target="${t=>t.target}" type="${t=>t.type}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-expanded="${t=>t.ariaExpanded}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${It("control")}>${Nt(0,e)}<span class="content" part="content"><slot ${Pt("defaultSlottedContent")}></slot></span>${Bt(0,e)}</a>`;class Xe{}qt([tt({attribute:"aria-atomic"})],Xe.prototype,"ariaAtomic",void 0),qt([tt({attribute:"aria-busy"})],Xe.prototype,"ariaBusy",void 0),qt([tt({attribute:"aria-controls"})],Xe.prototype,"ariaControls",void 0),qt([tt({attribute:"aria-current"})],Xe.prototype,"ariaCurrent",void 0),qt([tt({attribute:"aria-describedby"})],Xe.prototype,"ariaDescribedby",void 0),qt([tt({attribute:"aria-details"})],Xe.prototype,"ariaDetails",void 0),qt([tt({attribute:"aria-disabled"})],Xe.prototype,"ariaDisabled",void 0),qt([tt({attribute:"aria-errormessage"})],Xe.prototype,"ariaErrormessage",void 0),qt([tt({attribute:"aria-flowto"})],Xe.prototype,"ariaFlowto",void 0),qt([tt({attribute:"aria-haspopup"})],Xe.prototype,"ariaHaspopup",void 0),qt([tt({attribute:"aria-hidden"})],Xe.prototype,"ariaHidden",void 0),qt([tt({attribute:"aria-invalid"})],Xe.prototype,"ariaInvalid",void 0),qt([tt({attribute:"aria-keyshortcuts"})],Xe.prototype,"ariaKeyshortcuts",void 0),qt([tt({attribute:"aria-label"})],Xe.prototype,"ariaLabel",void 0),qt([tt({attribute:"aria-labelledby"})],Xe.prototype,"ariaLabelledby",void 0),qt([tt({attribute:"aria-live"})],Xe.prototype,"ariaLive",void 0),qt([tt({attribute:"aria-owns"})],Xe.prototype,"ariaOwns",void 0),qt([tt({attribute:"aria-relevant"})],Xe.prototype,"ariaRelevant",void 0),qt([tt({attribute:"aria-roledescription"})],Xe.prototype,"ariaRoledescription",void 0);class Ye extends De{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}qt([tt],Ye.prototype,"download",void 0),qt([tt],Ye.prototype,"href",void 0),qt([tt],Ye.prototype,"hreflang",void 0),qt([tt],Ye.prototype,"ping",void 0),qt([tt],Ye.prototype,"referrerpolicy",void 0),qt([tt],Ye.prototype,"rel",void 0),qt([tt],Ye.prototype,"target",void 0),qt([tt],Ye.prototype,"type",void 0),qt([g],Ye.prototype,"defaultSlottedContent",void 0);class Qe{}qt([tt({attribute:"aria-expanded"})],Qe.prototype,"ariaExpanded",void 0),Oe(Qe,Xe),Oe(Ye,Mt,Qe);const Ze=t=>{const e=t.closest("[dir]");return null!==e&&"rtl"===e.dir?He.rtl:He.ltr};class Je extends De{constructor(){super(...arguments),this.anchor="",this.viewport="",this.horizontalPositioningMode="uncontrolled",this.horizontalDefaultPosition="unset",this.horizontalViewportLock=!1,this.horizontalInset=!1,this.horizontalScaling="content",this.verticalPositioningMode="uncontrolled",this.verticalDefaultPosition="unset",this.verticalViewportLock=!1,this.verticalInset=!1,this.verticalScaling="content",this.fixedPlacement=!1,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.initialLayoutComplete=!1,this.resizeDetector=null,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.pendingPositioningUpdate=!1,this.pendingReset=!1,this.currentDirection=He.ltr,this.regionVisible=!1,this.forceUpdate=!1,this.updateThreshold=.5,this.update=()=>{this.pendingPositioningUpdate||this.requestPositionUpdates()},this.startObservers=()=>{this.stopObservers(),null!==this.anchorElement&&(this.requestPositionUpdates(),null!==this.resizeDetector&&(this.resizeDetector.observe(this.anchorElement),this.resizeDetector.observe(this)))},this.requestPositionUpdates=()=>{null===this.anchorElement||this.pendingPositioningUpdate||(Je.intersectionService.requestPosition(this,this.handleIntersection),Je.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&Je.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,Je.intersectionService.cancelRequestPosition(this,this.handleIntersection),null!==this.anchorElement&&Je.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&Je.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)),null!==this.resizeDetector&&this.resizeDetector.disconnect()},this.getViewport=()=>"string"!=typeof this.viewport||""===this.viewport?document.documentElement:document.getElementById(this.viewport),this.getAnchor=()=>document.getElementById(this.anchor),this.handleIntersection=t=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,this.applyIntersectionEntries(t)&&this.updateLayout())},this.applyIntersectionEntries=t=>{const e=t.find(t=>t.target===this),i=t.find(t=>t.target===this.anchorElement),o=t.find(t=>t.target===this.viewportElement);return void 0!==e&&void 0!==o&&void 0!==i&&(!!(!this.regionVisible||this.forceUpdate||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect||this.isRectDifferent(this.anchorRect,i.boundingClientRect)||this.isRectDifferent(this.viewportRect,o.boundingClientRect)||this.isRectDifferent(this.regionRect,e.boundingClientRect))&&(this.regionRect=e.boundingClientRect,this.anchorRect=i.boundingClientRect,this.viewportElement===document.documentElement?this.viewportRect=new DOMRectReadOnly(o.boundingClientRect.x+document.documentElement.scrollLeft,o.boundingClientRect.y+document.documentElement.scrollTop,o.boundingClientRect.width,o.boundingClientRect.height):this.viewportRect=o.boundingClientRect,this.updateRegionOffset(),this.forceUpdate=!1,!0))},this.updateRegionOffset=()=>{this.anchorRect&&this.regionRect&&(this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset),this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset))},this.isRectDifferent=(t,e)=>Math.abs(t.top-e.top)>this.updateThreshold||Math.abs(t.right-e.right)>this.updateThreshold||Math.abs(t.bottom-e.bottom)>this.updateThreshold||Math.abs(t.left-e.left)>this.updateThreshold,this.handleResize=t=>{this.update()},this.reset=()=>{this.pendingReset&&(this.pendingReset=!1,null===this.anchorElement&&(this.anchorElement=this.getAnchor()),null===this.viewportElement&&(this.viewportElement=this.getViewport()),this.currentDirection=Ze(this),this.startObservers())},this.updateLayout=()=>{let t=void 0,e=void 0;if("uncontrolled"!==this.horizontalPositioningMode){const t=this.getPositioningOptions(this.horizontalInset);if("center"===this.horizontalDefaultPosition)e="center";else if("unset"!==this.horizontalDefaultPosition){let t=this.horizontalDefaultPosition;if("start"===t||"end"===t){const e=Ze(this);if(e!==this.currentDirection)return this.currentDirection=e,void this.initialize();t=this.currentDirection===He.ltr?"start"===t?"left":"right":"start"===t?"right":"left"}switch(t){case"left":e=this.horizontalInset?"insetStart":"start";break;case"right":e=this.horizontalInset?"insetEnd":"end"}}const i=void 0!==this.horizontalThreshold?this.horizontalThreshold:void 0!==this.regionRect?this.regionRect.width:0,o=void 0!==this.anchorRect?this.anchorRect.left:0,s=void 0!==this.anchorRect?this.anchorRect.right:0,n=void 0!==this.anchorRect?this.anchorRect.width:0,r=void 0!==this.viewportRect?this.viewportRect.left:0,a=void 0!==this.viewportRect?this.viewportRect.right:0;(void 0===e||"locktodefault"!==this.horizontalPositioningMode&&this.getAvailableSpace(e,o,s,n,r,a)<i)&&(e=this.getAvailableSpace(t[0],o,s,n,r,a)>this.getAvailableSpace(t[1],o,s,n,r,a)?t[0]:t[1])}if("uncontrolled"!==this.verticalPositioningMode){const e=this.getPositioningOptions(this.verticalInset);if("center"===this.verticalDefaultPosition)t="center";else if("unset"!==this.verticalDefaultPosition)switch(this.verticalDefaultPosition){case"top":t=this.verticalInset?"insetStart":"start";break;case"bottom":t=this.verticalInset?"insetEnd":"end"}const i=void 0!==this.verticalThreshold?this.verticalThreshold:void 0!==this.regionRect?this.regionRect.height:0,o=void 0!==this.anchorRect?this.anchorRect.top:0,s=void 0!==this.anchorRect?this.anchorRect.bottom:0,n=void 0!==this.anchorRect?this.anchorRect.height:0,r=void 0!==this.viewportRect?this.viewportRect.top:0,a=void 0!==this.viewportRect?this.viewportRect.bottom:0;(void 0===t||"locktodefault"!==this.verticalPositioningMode&&this.getAvailableSpace(t,o,s,n,r,a)<i)&&(t=this.getAvailableSpace(e[0],o,s,n,r,a)>this.getAvailableSpace(e[1],o,s,n,r,a)?e[0]:e[1])}const i=this.getNextRegionDimension(e,t),o=this.horizontalPosition!==e||this.verticalPosition!==t;if(this.setHorizontalPosition(e,i),this.setVerticalPosition(t,i),this.updateRegionStyle(),!this.initialLayoutComplete)return this.initialLayoutComplete=!0,void this.requestPositionUpdates();this.regionVisible||(this.regionVisible=!0,this.style.removeProperty("pointer-events"),this.style.removeProperty("opacity"),this.classList.toggle("loaded",!0),this.$emit("loaded",this,{bubbles:!1})),this.updatePositionClasses(),o&&this.$emit("positionchange",this,{bubbles:!1})},this.updateRegionStyle=()=>{this.style.width=this.regionWidth,this.style.height=this.regionHeight,this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`},this.updatePositionClasses=()=>{this.classList.toggle("top","start"===this.verticalPosition),this.classList.toggle("bottom","end"===this.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.verticalPosition),this.classList.toggle("vertical-center","center"===this.verticalPosition),this.classList.toggle("left","start"===this.horizontalPosition),this.classList.toggle("right","end"===this.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.horizontalPosition),this.classList.toggle("horizontal-center","center"===this.horizontalPosition)},this.setHorizontalPosition=(t,e)=>{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.horizontalScaling){case"anchor":case"fill":i=this.horizontalViewportLock?this.viewportRect.width:e.width,this.regionWidth=i+"px";break;case"content":i=this.regionRect.width,this.regionWidth="unset"}let o=0;switch(t){case"start":this.translateX=this.baseHorizontalOffset-i,this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right));break;case"insetStart":this.translateX=this.baseHorizontalOffset-i+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right));break;case"insetEnd":this.translateX=this.baseHorizontalOffset,this.horizontalViewportLock&&this.anchorRect.left<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.left));break;case"end":this.translateX=this.baseHorizontalOffset+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.left));break;case"center":if(o=(this.anchorRect.width-i)/2,this.translateX=this.baseHorizontalOffset+o,this.horizontalViewportLock){const t=this.anchorRect.left+o,e=this.anchorRect.right-o;t<this.viewportRect.left&&!(e>this.viewportRect.right)?this.translateX=this.translateX-(t-this.viewportRect.left):e>this.viewportRect.right&&!(t<this.viewportRect.left)&&(this.translateX=this.translateX-(e-this.viewportRect.right))}}this.horizontalPosition=t},this.setVerticalPosition=(t,e)=>{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.verticalScaling){case"anchor":case"fill":i=this.verticalViewportLock?this.viewportRect.height:e.height,this.regionHeight=i+"px";break;case"content":i=this.regionRect.height,this.regionHeight="unset"}let o=0;switch(t){case"start":this.translateY=this.baseVerticalOffset-i,this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom));break;case"insetStart":this.translateY=this.baseVerticalOffset-i+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom));break;case"insetEnd":this.translateY=this.baseVerticalOffset,this.verticalViewportLock&&this.anchorRect.top<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.top));break;case"end":this.translateY=this.baseVerticalOffset+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.top));break;case"center":if(o=(this.anchorRect.height-i)/2,this.translateY=this.baseVerticalOffset+o,this.verticalViewportLock){const t=this.anchorRect.top+o,e=this.anchorRect.bottom-o;t<this.viewportRect.top&&!(e>this.viewportRect.bottom)?this.translateY=this.translateY-(t-this.viewportRect.top):e>this.viewportRect.bottom&&!(t<this.viewportRect.top)&&(this.translateY=this.translateY-(e-this.viewportRect.bottom))}}this.verticalPosition=t},this.getPositioningOptions=t=>t?["insetStart","insetEnd"]:["start","end"],this.getAvailableSpace=(t,e,i,o,s,n)=>{const r=e-s,a=n-(e+o);switch(t){case"start":return r;case"insetStart":return r+o;case"insetEnd":return a+o;case"end":return a;case"center":return 2*Math.min(r,a)+o}},this.getNextRegionDimension=(t,e)=>{const i={height:void 0!==this.regionRect?this.regionRect.height:0,width:void 0!==this.regionRect?this.regionRect.width:0};return void 0!==t&&"fill"===this.horizontalScaling?i.width=this.getAvailableSpace(t,void 0!==this.anchorRect?this.anchorRect.left:0,void 0!==this.anchorRect?this.anchorRect.right:0,void 0!==this.anchorRect?this.anchorRect.width:0,void 0!==this.viewportRect?this.viewportRect.left:0,void 0!==this.viewportRect?this.viewportRect.right:0):"anchor"===this.horizontalScaling&&(i.width=void 0!==this.anchorRect?this.anchorRect.width:0),void 0!==e&&"fill"===this.verticalScaling?i.height=this.getAvailableSpace(e,void 0!==this.anchorRect?this.anchorRect.top:0,void 0!==this.anchorRect?this.anchorRect.bottom:0,void 0!==this.anchorRect?this.anchorRect.height:0,void 0!==this.viewportRect?this.viewportRect.top:0,void 0!==this.viewportRect?this.viewportRect.bottom:0):"anchor"===this.verticalScaling&&(i.height=void 0!==this.anchorRect?this.anchorRect.height:0),i},this.startAutoUpdateEventListeners=()=>{window.addEventListener("resize",this.update,{passive:!0}),window.addEventListener("scroll",this.update,{passive:!0,capture:!0}),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener("resize",this.update),window.removeEventListener("scroll",this.update),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.unobserve(this.viewportElement)}}anchorChanged(){this.initialLayoutComplete&&(this.anchorElement=this.getAnchor())}viewportChanged(){this.initialLayoutComplete&&(this.viewportElement=this.getViewport())}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}autoUpdateModeChanged(t,e){this.$fastController.isConnected&&this.initialLayoutComplete&&("auto"===t&&this.stopAutoUpdateEventListeners(),"auto"===e&&this.startAutoUpdateEventListeners())}anchorElementChanged(){this.requestReset()}viewportElementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}connectedCallback(){super.connectedCallback(),"auto"===this.autoUpdateMode&&this.startAutoUpdateEventListeners(),this.initialize()}disconnectedCallback(){super.disconnectedCallback(),"auto"===this.autoUpdateMode&&this.stopAutoUpdateEventListeners(),this.stopObservers(),this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){null!==this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){this.$fastController.isConnected&&this.initialLayoutComplete&&(this.forceUpdate=!0,this.update())}initialize(){this.initializeResizeDetector(),null===this.anchorElement&&(this.anchorElement=this.getAnchor()),this.requestReset()}requestReset(){this.$fastController.isConnected&&!1===this.pendingReset&&(this.setInitialState(),h.queueUpdate(()=>this.reset()),this.pendingReset=!0)}setInitialState(){this.initialLayoutComplete=!1,this.regionVisible=!1,this.translateX=0,this.translateY=0,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.viewportRect=void 0,this.regionRect=void 0,this.anchorRect=void 0,this.verticalPosition=void 0,this.horizontalPosition=void 0,this.style.opacity="0",this.style.pointerEvents="none",this.forceUpdate=!1,this.style.position=this.fixedPlacement?"fixed":"absolute",this.updatePositionClasses(),this.updateRegionStyle()}}Je.intersectionService=new class{constructor(){this.intersectionDetector=null,this.observedElements=new Map,this.requestPosition=(t,e)=>{var i;null!==this.intersectionDetector&&(this.observedElements.has(t)?null===(i=this.observedElements.get(t))||void 0===i||i.push(e):(this.observedElements.set(t,[e]),this.intersectionDetector.observe(t)))},this.cancelRequestPosition=(t,e)=>{const i=this.observedElements.get(t);if(void 0!==i){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}},this.initializeIntersectionDetector=()=>{t.IntersectionObserver&&(this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]}))},this.handleIntersection=t=>{if(null===this.intersectionDetector)return;const e=[],i=[];t.forEach(t=>{var o;null===(o=this.intersectionDetector)||void 0===o||o.unobserve(t.target);const s=this.observedElements.get(t.target);void 0!==s&&(s.forEach(o=>{let s=e.indexOf(o);-1===s&&(s=e.length,e.push(o),i.push([])),i[s].push(t)}),this.observedElements.delete(t.target))}),e.forEach((t,e)=>{t(i[e])})},this.initializeIntersectionDetector()}},qt([tt],Je.prototype,"anchor",void 0),qt([tt],Je.prototype,"viewport",void 0),qt([tt({attribute:"horizontal-positioning-mode"})],Je.prototype,"horizontalPositioningMode",void 0),qt([tt({attribute:"horizontal-default-position"})],Je.prototype,"horizontalDefaultPosition",void 0),qt([tt({attribute:"horizontal-viewport-lock",mode:"boolean"})],Je.prototype,"horizontalViewportLock",void 0),qt([tt({attribute:"horizontal-inset",mode:"boolean"})],Je.prototype,"horizontalInset",void 0),qt([tt({attribute:"horizontal-threshold"})],Je.prototype,"horizontalThreshold",void 0),qt([tt({attribute:"horizontal-scaling"})],Je.prototype,"horizontalScaling",void 0),qt([tt({attribute:"vertical-positioning-mode"})],Je.prototype,"verticalPositioningMode",void 0),qt([tt({attribute:"vertical-default-position"})],Je.prototype,"verticalDefaultPosition",void 0),qt([tt({attribute:"vertical-viewport-lock",mode:"boolean"})],Je.prototype,"verticalViewportLock",void 0),qt([tt({attribute:"vertical-inset",mode:"boolean"})],Je.prototype,"verticalInset",void 0),qt([tt({attribute:"vertical-threshold"})],Je.prototype,"verticalThreshold",void 0),qt([tt({attribute:"vertical-scaling"})],Je.prototype,"verticalScaling",void 0),qt([tt({attribute:"fixed-placement",mode:"boolean"})],Je.prototype,"fixedPlacement",void 0),qt([tt({attribute:"auto-update-mode"})],Je.prototype,"autoUpdateMode",void 0),qt([g],Je.prototype,"anchorElement",void 0),qt([g],Je.prototype,"viewportElement",void 0),qt([g],Je.prototype,"initialLayoutComplete",void 0);class ti extends De{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const t=`background-color: var(--badge-fill-${this.fill});`,e=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?t:this.color&&!this.fill?e:`${e} ${t}`}}}qt([tt({attribute:"fill"})],ti.prototype,"fill",void 0),qt([tt({attribute:"color"})],ti.prototype,"color",void 0),qt([tt({mode:"boolean"})],ti.prototype,"circular",void 0);class ei extends Ye{constructor(){super(...arguments),this.separator=!0}}qt([g],ei.prototype,"separator",void 0),Oe(ei,Mt,Qe);class ii extends De{slottedBreadcrumbItemsChanged(){if(this.$fastController.isConnected){if(void 0===this.slottedBreadcrumbItems||0===this.slottedBreadcrumbItems.length)return;const t=this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length-1];this.slottedBreadcrumbItems.forEach(e=>{const i=e===t;this.setItemSeparator(e,i),this.setAriaCurrent(e,i)})}}setItemSeparator(t,e){t instanceof ei&&(t.separator=!e)}findChildWithHref(t){var e,i;return t.childElementCount>0?t.querySelector("a[href]"):(null===(e=t.shadowRoot)||void 0===e?void 0:e.childElementCount)?null===(i=t.shadowRoot)||void 0===i?void 0:i.querySelector("a[href]"):null}setAriaCurrent(t,e){const i=this.findChildWithHref(t);null===i&&t.hasAttribute("href")&&t instanceof ei?e?t.setAttribute("aria-current","page"):t.removeAttribute("aria-current"):null!==i&&(e?i.setAttribute("aria-current","page"):i.removeAttribute("aria-current"))}}qt([g],ii.prototype,"slottedBreadcrumbItems",void 0);const oi="ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype,si=new WeakMap;function ni(t){const e=class extends t{constructor(...t){super(...t),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return oi}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const t=this.proxy.labels,e=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=t?e.concat(Array.from(t)):e;return Object.freeze(i)}return o}valueChanged(t,e){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),h.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),h.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!oi)return null;let t=si.get(this);return t||(t=this.attachInternals(),si.set(this,t)),t}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach(t=>this.proxy.removeEventListener(t,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(t,e,i){this.elementInternals?this.elementInternals.setValidity(t,e,i):"string"==typeof e&&this.proxy.setCustomValidity(e)}formDisabledCallback(t){this.disabled=t}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var t;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(t=>this.proxy.addEventListener(t,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot","form-associated-proxy"),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name","form-associated-proxy")),null===(t=this.shadowRoot)||void 0===t||t.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var t;this.removeChild(this.proxy),null===(t=this.shadowRoot)||void 0===t||t.removeChild(this.proxySlot)}validate(t){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,t)}setFormValue(t,e){this.elementInternals&&this.elementInternals.setFormValue(t,e||t)}_keypressHandler(t){switch(t.key){case"Enter":if(this.form instanceof HTMLFormElement){const t=this.form.querySelector("[type=submit]");null==t||t.click()}}}stopPropagation(t){t.stopPropagation()}};return tt({mode:"boolean"})(e.prototype,"disabled"),tt({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),tt({attribute:"current-value"})(e.prototype,"currentValue"),tt(e.prototype,"name"),tt({mode:"boolean"})(e.prototype,"required"),g(e.prototype,"value"),e}function ri(t){class e extends(ni(t)){}class i extends e{constructor(...t){super(t),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(t,e){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==t&&this.$emit("change"),this.validate()}currentCheckedChanged(t,e){this.checked=this.currentChecked}updateForm(){const t=this.checked?this.value:null;this.setFormValue(t,t)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return tt({attribute:"checked",mode:"boolean"})(i.prototype,"checkedAttribute"),tt({attribute:"current-checked",converter:Q})(i.prototype,"currentChecked"),g(i.prototype,"defaultChecked"),g(i.prototype,"checked"),i}class ai extends De{}class li extends(ni(ai)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class ci extends li{constructor(){super(...arguments),this.handleClick=t=>{var e;this.disabled&&(null===(e=this.defaultSlottedContent)||void 0===e?void 0:e.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;null===(t=this.form)||void 0===t||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,e){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===e&&this.addEventListener("click",this.handleSubmission),"submit"===t&&this.removeEventListener("click",this.handleSubmission),"reset"===e&&this.addEventListener("click",this.handleFormReset),"reset"===t&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const e=Array.from(null===(t=this.control)||void 0===t?void 0:t.children);e&&e.forEach(t=>{t.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();const e=Array.from(null===(t=this.control)||void 0===t?void 0:t.children);e&&e.forEach(t=>{t.removeEventListener("click",this.handleClick)})}}qt([tt({mode:"boolean"})],ci.prototype,"autofocus",void 0),qt([tt({attribute:"form"})],ci.prototype,"formId",void 0),qt([tt],ci.prototype,"formaction",void 0),qt([tt],ci.prototype,"formenctype",void 0),qt([tt],ci.prototype,"formmethod",void 0),qt([tt({mode:"boolean"})],ci.prototype,"formnovalidate",void 0),qt([tt],ci.prototype,"formtarget",void 0),qt([tt],ci.prototype,"type",void 0),qt([g],ci.prototype,"defaultSlottedContent",void 0);class hi{}qt([tt({attribute:"aria-expanded"})],hi.prototype,"ariaExpanded",void 0),qt([tt({attribute:"aria-pressed"})],hi.prototype,"ariaPressed",void 0),Oe(hi,Xe),Oe(ci,Mt,hi);class di{constructor(t){if(this.dayFormat="numeric",this.weekdayFormat="long",this.monthFormat="long",this.yearFormat="numeric",this.date=new Date,t)for(const e in t){const i=t[e];"date"===e?this.date=this.getDateObject(i):this[e]=i}}getDateObject(t){if("string"==typeof t){const e=t.split(/[/-]/);return e.length<3?new Date:new Date(parseInt(e[2],10),parseInt(e[0],10)-1,parseInt(e[1],10))}if("day"in t&&"month"in t&&"year"in t){const{day:e,month:i,year:o}=t;return new Date(o,i-1,e)}return t}getDate(t=this.date,e={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},i=this.locale){const o=this.getDateObject(t),s=Object.assign({timeZone:"utc"},e);return new Intl.DateTimeFormat(i,s).format(o)}getDay(t=this.date.getDate(),e=this.dayFormat,i=this.locale){return this.getDate({month:1,day:t,year:2020},{day:e},i)}getMonth(t=this.date.getMonth()+1,e=this.monthFormat,i=this.locale){return this.getDate({month:t,day:2,year:2020},{month:e},i)}getYear(t=this.date.getFullYear(),e=this.yearFormat,i=this.locale){return this.getDate({month:2,day:2,year:t},{year:e},i)}getWeekday(t=0,e=this.weekdayFormat,i=this.locale){const o=`1-${t+1}-2017`;return this.getDate(o,{weekday:e},i)}getWeekdays(t=this.weekdayFormat,e=this.locale){return Array(7).fill(null).map((i,o)=>this.getWeekday(o,t,e))}}class ui extends De{constructor(){super(...arguments),this.dateFormatter=new di,this.readonly=!1,this.locale="en-US",this.month=(new Date).getMonth()+1,this.year=(new Date).getFullYear(),this.dayFormat="numeric",this.weekdayFormat="short",this.monthFormat="long",this.yearFormat="numeric",this.minWeeks=0,this.disabledDates="",this.selectedDates="",this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(t=this.month,e=this.year){const i=t=>new Date(t.getFullYear(),t.getMonth(),1).getDay(),o=t=>{const e=new Date(t.getFullYear(),t.getMonth()+1,1);return new Date(e.getTime()-this.oneDayInMs).getDate()},s=new Date(e,t-1),n=new Date(e,t),r=new Date(e,t-2);return{length:o(s),month:t,start:i(s),year:e,previous:{length:o(r),month:r.getMonth()+1,start:i(r),year:r.getFullYear()},next:{length:o(n),month:n.getMonth()+1,start:i(n),year:n.getFullYear()}}}getDays(t=this.getMonthInfo(),e=this.minWeeks){e=e>10?10:e;const{start:i,length:o,previous:s,next:n}=t,r=[];let a=1-i;for(;a<o+1||r.length<e||r[r.length-1].length%7!=0;){const{month:e,year:i}=a<1?s:a>o?n:t,l=a<1?s.length+a:a>o?a-o:a,c=`${e}-${l}-${i}`,h={day:l,month:e,year:i,disabled:this.dateInString(c,this.disabledDates),selected:this.dateInString(c,this.selectedDates)},d=r[r.length-1];0===r.length||d.length%7==0?r.push([h]):d.push(h),a++}return r}dateInString(t,e){const i=e.split(",").map(t=>t.trim());return t="string"==typeof t?t:`${t.getMonth()+1}-${t.getDate()}-${t.getFullYear()}`,i.some(e=>e===t)}getDayClassNames(t,e){const{day:i,month:o,year:s,disabled:n,selected:r}=t;return["day",e===`${o}-${i}-${s}`&&"today",this.month!==o&&"inactive",n&&"disabled",r&&"selected"].filter(Boolean).join(" ")}getWeekdayText(){const t=this.dateFormatter.getWeekdays().map(t=>({text:t}));if("long"!==this.weekdayFormat){const e=this.dateFormatter.getWeekdays("long");t.forEach((t,i)=>{t.abbr=e[i]})}return t}handleDateSelect(t,e){t.preventDefault,this.$emit("dateselected",e)}handleKeydown(t,e){return"Enter"===t.key&&this.handleDateSelect(t,e),!0}}qt([tt({mode:"boolean"})],ui.prototype,"readonly",void 0),qt([tt],ui.prototype,"locale",void 0),qt([tt({converter:Z})],ui.prototype,"month",void 0),qt([tt({converter:Z})],ui.prototype,"year",void 0),qt([tt({attribute:"day-format",mode:"fromView"})],ui.prototype,"dayFormat",void 0),qt([tt({attribute:"weekday-format",mode:"fromView"})],ui.prototype,"weekdayFormat",void 0),qt([tt({attribute:"month-format",mode:"fromView"})],ui.prototype,"monthFormat",void 0),qt([tt({attribute:"year-format",mode:"fromView"})],ui.prototype,"yearFormat",void 0),qt([tt({attribute:"min-weeks",converter:Z})],ui.prototype,"minWeeks",void 0),qt([tt({attribute:"disabled-dates"})],ui.prototype,"disabledDates",void 0),qt([tt({attribute:"selected-dates"})],ui.prototype,"selectedDates",void 0);const pi="none",gi="default",fi="sticky",mi="default",vi="columnheader",bi="rowheader",yi="default",xi="header",$i="sticky-header";class wi extends De{constructor(){super(...arguments),this.rowType=yi,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){null!==this.rowData&&this.isActiveRow&&(this.refocusOnLoad=!0)}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),null===this.cellsRepeatBehavior&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Et(t=>t.columnDefinitions,t=>t.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener("focusout",this.handleFocusout),this.removeEventListener("keydown",this.handleKeydown)}handleFocusout(t){this.contains(t.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(t){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(t.target),this.$emit("row-focused",this)}handleKeydown(t){if(t.defaultPrevented)return;let e=0;switch(t.key){case"ArrowLeft":e=Math.max(0,this.focusColumnIndex-1),this.cellElements[e].focus(),t.preventDefault();break;case"ArrowRight":e=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[e].focus(),t.preventDefault();break;case"Home":t.ctrlKey||(this.cellElements[0].focus(),t.preventDefault());break;case"End":t.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),t.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===yi&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===yi&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}qt([tt({attribute:"grid-template-columns"})],wi.prototype,"gridTemplateColumns",void 0),qt([tt({attribute:"row-type"})],wi.prototype,"rowType",void 0),qt([g],wi.prototype,"rowData",void 0),qt([g],wi.prototype,"columnDefinitions",void 0),qt([g],wi.prototype,"cellItemTemplate",void 0),qt([g],wi.prototype,"headerCellItemTemplate",void 0),qt([g],wi.prototype,"rowIndex",void 0),qt([g],wi.prototype,"isActiveRow",void 0),qt([g],wi.prototype,"activeCellItemTemplate",void 0),qt([g],wi.prototype,"defaultCellItemTemplate",void 0),qt([g],wi.prototype,"defaultHeaderCellItemTemplate",void 0),qt([g],wi.prototype,"cellElements",void 0);class ki extends De{constructor(){super(),this.noTabbing=!1,this.generateHeader=gi,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(t,e,i)=>{if(0===this.rowElements.length)return this.focusRowIndex=0,void(this.focusColumnIndex=0);const o=Math.max(0,Math.min(this.rowElements.length-1,t)),s=this.rowElements[o].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),n=s[Math.max(0,Math.min(s.length-1,e))];i&&this.scrollHeight!==this.clientHeight&&(o<this.focusRowIndex&&this.scrollTop>0||o>this.focusRowIndex&&this.scrollTop<this.scrollHeight-this.clientHeight)&&n.scrollIntoView({block:"center",inline:"center"}),n.focus()},this.onChildListChange=(t,e)=>{t&&t.length&&(t.forEach(t=>{t.addedNodes.forEach(t=>{1===t.nodeType&&"row"===t.getAttribute("role")&&(t.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,h.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let t=this.gridTemplateColumns;if(void 0===t){if(""===this.generatedGridTemplateColumns&&this.rowElements.length>0){const t=this.rowElements[0];this.generatedGridTemplateColumns=new Array(t.cellElements.length).fill("1fr").join(" ")}t=this.generatedGridTemplateColumns}this.rowElements.forEach((e,i)=>{const o=e;o.rowIndex=i,o.gridTemplateColumns=t,this.columnDefinitionsStale&&(o.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(t){let e="";return t.forEach(t=>{e=`${e}${""===e?"":" "}1fr`}),e}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=ki.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=ki.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())):this.generatedGridTemplateColumns=""}headerCellItemTemplateChanged(){this.$fastController.isConnected&&null!==this.generatedHeader&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Et(t=>t.rowsData,t=>t.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener("focus",this.handleFocus),this.addEventListener("keydown",this.handleKeydown),this.addEventListener("focusout",this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),h.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener("focus",this.handleFocus),this.removeEventListener("keydown",this.handleKeydown),this.removeEventListener("focusout",this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(t){this.isUpdatingFocus=!0;const e=t.target;this.focusRowIndex=this.rowElements.indexOf(e),this.focusColumnIndex=e.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(t){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(t){null!==t.relatedTarget&&this.contains(t.relatedTarget)||this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(t){if(t.defaultPrevented)return;let e;const i=this.rowElements.length-1,o=this.offsetHeight+this.scrollTop,s=this.rowElements[i];switch(t.key){case"ArrowUp":t.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case"ArrowDown":t.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case"PageUp":if(t.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(0===this.focusRowIndex)return void this.focusOnCell(0,this.focusColumnIndex,!1);for(e=this.focusRowIndex-1;e>=0;e--){const t=this.rowElements[e];if(t.offsetTop<this.scrollTop){this.scrollTop=t.offsetTop+t.clientHeight-this.clientHeight;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case"PageDown":if(t.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=i||s.offsetTop+s.offsetHeight<=o)return void this.focusOnCell(i,this.focusColumnIndex,!1);for(e=this.focusRowIndex+1;e<=i;e++){const t=this.rowElements[e];if(t.offsetTop+t.offsetHeight>o){let e=0;this.generateHeader===fi&&null!==this.generatedHeader&&(e=this.generatedHeader.clientHeight),this.scrollTop=t.offsetTop-e;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case"Home":t.ctrlKey&&(t.preventDefault(),this.focusOnCell(0,0,!0));break;case"End":t.ctrlKey&&null!==this.columnDefinitions&&(t.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||!1===this.pendingFocusUpdate&&(this.pendingFocusUpdate=!0,h.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(null!==this.generatedHeader&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==pi&&this.rowsData.length>0){const t=document.createElement(this.rowElementTag);return this.generatedHeader=t,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===fi?$i:xi,void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(t,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}ki.generateColumns=t=>Object.getOwnPropertyNames(t).map((t,e)=>({columnDataKey:t,gridColumn:""+e})),qt([tt({attribute:"no-tabbing",mode:"boolean"})],ki.prototype,"noTabbing",void 0),qt([tt({attribute:"generate-header"})],ki.prototype,"generateHeader",void 0),qt([tt({attribute:"grid-template-columns"})],ki.prototype,"gridTemplateColumns",void 0),qt([g],ki.prototype,"rowsData",void 0),qt([g],ki.prototype,"columnDefinitions",void 0),qt([g],ki.prototype,"rowItemTemplate",void 0),qt([g],ki.prototype,"cellItemTemplate",void 0),qt([g],ki.prototype,"headerCellItemTemplate",void 0),qt([g],ki.prototype,"focusRowIndex",void 0),qt([g],ki.prototype,"focusColumnIndex",void 0),qt([g],ki.prototype,"defaultRowItemTemplate",void 0),qt([g],ki.prototype,"rowElementTag",void 0),qt([g],ki.prototype,"rowElements",void 0);const Ci=q`<template>${t=>null===t.rowData||null===t.columnDefinition||null===t.columnDefinition.columnDataKey?null:t.rowData[t.columnDefinition.columnDataKey]}</template>`,Ii=q`<template>${t=>null===t.columnDefinition?null:void 0===t.columnDefinition.title?t.columnDefinition.columnDataKey:t.columnDefinition.title}</template>`;class Fi extends De{constructor(){super(...arguments),this.cellType=mi,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(t,e){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var t;super.connectedCallback(),this.addEventListener("focusin",this.handleFocusin),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.style.gridColumn=""+(void 0===(null===(t=this.columnDefinition)||void 0===t?void 0:t.gridColumn)?0:this.columnDefinition.gridColumn),this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.handleFocusin),this.removeEventListener("focusout",this.handleFocusout),this.removeEventListener("keydown",this.handleKeydown),this.disconnectCellView()}handleFocusin(t){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case vi:if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){const t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus()}break;default:if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){const t=this.columnDefinition.cellFocusTargetCallback(this);null!==t&&t.focus()}}this.$emit("cell-focused",this)}}handleFocusout(t){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1)}handleKeydown(t){if(!(t.defaultPrevented||null===this.columnDefinition||this.cellType===mi&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===vi&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(t.key){case"Enter":case"F2":if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case vi:if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){const e=this.columnDefinition.headerCellFocusTargetCallback(this);null!==e&&e.focus(),t.preventDefault()}break;default:if(void 0!==this.columnDefinition.cellFocusTargetCallback){const e=this.columnDefinition.cellFocusTargetCallback(this);null!==e&&e.focus(),t.preventDefault()}}break;case"Escape":this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),t.preventDefault())}}updateCellView(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case vi:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=Ii.render(this,this);break;case void 0:case bi:case mi:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=Ci.render(this,this)}}disconnectCellView(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}qt([tt({attribute:"cell-type"})],Fi.prototype,"cellType",void 0),qt([tt({attribute:"grid-column"})],Fi.prototype,"gridColumn",void 0),qt([g],Fi.prototype,"rowData",void 0),qt([g],Fi.prototype,"columnDefinition",void 0);const Di=q`<div class="title" part="title" aria-label="${t=>t.dateFormatter.getDate(`${t.month}-2-${t.year}`,{month:"long",year:"numeric"})}"><span part="month">${t=>t.dateFormatter.getMonth(t.month)}</span><span part="year">${t=>t.dateFormatter.getYear(t.year)}</span></div>`,Ti=(t,e)=>{const i=t.tagFor(wi);return q`<${i} class="week" part="week" role="row" role-type="default" grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr">${Vt(t=>t,((t,e)=>{const i=t.tagFor(Fi);return q`<${i} class="${(t,i)=>i.parentContext.parent.getDayClassNames(t,e)}" part="day" tabindex="-1" role="gridcell" grid-column="${(t,e)=>e.index+1}" @click="${(t,e)=>e.parentContext.parent.handleDateSelect(e.event,t)}" @keydown="${(t,e)=>e.parentContext.parent.handleKeydown(e.event,t)}" aria-label="${(t,e)=>e.parentContext.parent.dateFormatter.getDate(`${t.month}-${t.day}-${t.year}`,{month:"long",day:"numeric"})}"><div class="date" part="${t=>e===`${t.month}-${t.day}-${t.year}`?"today":"date"}">${(t,e)=>e.parentContext.parent.dateFormatter.getDay(t.day)}</div><slot name="${t=>t.month}-${t=>t.day}-${t=>t.year}"></slot></${i}>`})(t,e),{positioning:!0})}</${i}>`},Si=(t,e)=>{const i=t.tagFor(ki),o=t.tagFor(wi);return q`<${i} class="days interact" part="days" generate-header="none"><${o} class="week-days" part="week-days" role="row" row-type="header" grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr">${Vt(t=>t.getWeekdayText(),(t=>{const e=t.tagFor(Fi);return q`<${e} class="week-day" part="week-day" tabindex="-1" grid-column="${(t,e)=>e.index+1}" abbr="${t=>t.abbr}">${t=>t.text}</${e}>`})(t),{positioning:!0})}</${o}>${Vt(t=>t.getDays(),Ti(t,e))}</${i}>`};class Oi extends De{}class Ei extends De{}class Vi extends(ri(Ei)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Ri extends Vi{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{if(!this.readOnly)switch(t.key){case" ":this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}function Ai(t){return Ae(t)&&("option"===t.getAttribute("role")||t instanceof HTMLOptionElement)}qt([tt({attribute:"readonly",mode:"boolean"})],Ri.prototype,"readOnly",void 0),qt([g],Ri.prototype,"defaultSlottedNodes",void 0),qt([g],Ri.prototype,"indeterminate",void 0);class Li extends De{constructor(t,e,i,o){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),e&&(this.initialValue=e),i&&(this.defaultSelected=i),o&&(this.selected=o),this.proxy=new Option(""+this.textContent,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(t,e){this.ariaChecked="boolean"!=typeof e?null:e?"true":"false"}contentChanged(t,e){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,e){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var t;return null!==(t=this.value)&&void 0!==t?t:this.text}get text(){var t,e;return null!==(e=null===(t=this.textContent)||void 0===t?void 0:t.replace(/\s+/g," ").trim())&&void 0!==e?e:""}set value(t){const e=""+(null!=t?t:"");this._value=e,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=e),p.notify(this,"value")}get value(){var t;return p.track(this,"value"),null!==(t=this._value)&&void 0!==t?t:this.text}get form(){return this.proxy?this.proxy.form:null}}qt([g],Li.prototype,"checked",void 0),qt([g],Li.prototype,"content",void 0),qt([g],Li.prototype,"defaultSelected",void 0),qt([tt({mode:"boolean"})],Li.prototype,"disabled",void 0),qt([tt({attribute:"selected",mode:"boolean"})],Li.prototype,"selectedAttribute",void 0),qt([g],Li.prototype,"selected",void 0),qt([tt({attribute:"value",mode:"fromView"})],Li.prototype,"initialValue",void 0);class Pi{}qt([g],Pi.prototype,"ariaChecked",void 0),qt([g],Pi.prototype,"ariaPosInSet",void 0),qt([g],Pi.prototype,"ariaSelected",void 0),qt([g],Pi.prototype,"ariaSetSize",void 0),Oe(Pi,Xe),Oe(Li,Mt,Pi);class zi extends De{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return null!==(t=this.selectedOptions[0])&&void 0!==t?t:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(t=>t.disabled)}get length(){var t,e;return null!==(e=null===(t=this.options)||void 0===t?void 0:t.length)&&void 0!==e?e:0}get options(){return p.track(this,"options"),this._options}set options(t){this._options=t,p.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){const e=t.target.closest("option,[role=option]");if(e&&!e.disabled)return this.selectedIndex=this.options.indexOf(e),!0}focusAndScrollOptionIntoView(t=this.firstSelectedOption){this.contains(document.activeElement)&&null!==t&&(t.focus(),requestAnimationFrame(()=>{t.scrollIntoView({block:"nearest"})}))}focusinHandler(t){this.shouldSkipFocus||t.target!==t.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),e=new RegExp("^"+t,"gi");return this.options.filter(t=>t.text.trim().match(e))}getSelectableIndex(t=this.selectedIndex,e){const i=t>e?-1:t<e?1:0,o=t+i;let s=null;switch(i){case-1:s=this.options.reduceRight((t,e,i)=>!t&&!e.disabled&&i<o?e:t,s);break;case 1:s=this.options.reduce((t,e,i)=>!t&&!e.disabled&&i>o?e:t,s)}return this.options.indexOf(s)}handleChange(t,e){switch(e){case"selected":zi.slottedOptionFilter(t)&&(this.selectedIndex=this.options.indexOf(t)),this.setSelectedOptions()}}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,zi.TYPE_AHEAD_TIMEOUT_MS),t.length>1||(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const e=t.key;switch(e){case"Home":t.shiftKey||(t.preventDefault(),this.selectFirstOption());break;case"ArrowDown":t.shiftKey||(t.preventDefault(),this.selectNextOption());break;case"ArrowUp":t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break;case"End":t.preventDefault(),this.selectLastOption();break;case"Tab":return this.focusAndScrollOptionIntoView(),!0;case"Enter":case"Escape":return!0;case" ":if(this.typeaheadExpired)return!0;default:return 1===e.length&&this.handleTypeAhead(""+e),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(t,e){this.ariaMultiSelectable=e?"true":null}selectedIndexChanged(t,e){var i;if(this.hasSelectableOptions){if((null===(i=this.options[this.selectedIndex])||void 0===i?void 0:i.disabled)&&"number"==typeof t){const i=this.getSelectableIndex(t,e),o=i>-1?i:t;return this.selectedIndex=o,void(e===o&&this.selectedIndexChanged(e,o))}this.setSelectedOptions()}else this.selectedIndex=-1}selectedOptionsChanged(t,e){var i;const o=e.filter(zi.slottedOptionFilter);null===(i=this.options)||void 0===i||i.forEach(t=>{const e=p.getNotifier(t);e.unsubscribe(this,"selected"),t.selected=o.includes(t),e.subscribe(this,"selected")})}selectFirstOption(){var t,e;this.disabled||(this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex(t=>!t.disabled))&&void 0!==e?e:-1)}selectLastOption(){this.disabled||(this.selectedIndex=function(t,e){let i=t.length;for(;i--;)if(e(t[i],i,t))return i;return-1}(this.options,t=>!t.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var t,e;this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex(t=>t.defaultSelected))&&void 0!==e?e:-1}setSelectedOptions(){var t,e,i;(null===(t=this.options)||void 0===t?void 0:t.length)&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.id)&&void 0!==i?i:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,e){this.options=e.reduce((t,e)=>(Ai(e)&&t.push(e),t),[]);const i=""+this.options.length;this.options.forEach((t,e)=>{t.id||(t.id=Ue("option-")),t.ariaPosInSet=""+(e+1),t.ariaSetSize=i}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,e){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches();if(t.length){const e=this.options.indexOf(t[0]);e>-1&&(this.selectedIndex=e)}this.typeaheadExpired=!1}}}zi.slottedOptionFilter=t=>Ai(t)&&!t.hidden,zi.TYPE_AHEAD_TIMEOUT_MS=1e3,qt([tt({mode:"boolean"})],zi.prototype,"disabled",void 0),qt([g],zi.prototype,"selectedIndex",void 0),qt([g],zi.prototype,"selectedOptions",void 0),qt([g],zi.prototype,"slottedOptions",void 0),qt([g],zi.prototype,"typeaheadBuffer",void 0);class Hi{}qt([g],Hi.prototype,"ariaActiveDescendant",void 0),qt([g],Hi.prototype,"ariaDisabled",void 0),qt([g],Hi.prototype,"ariaExpanded",void 0),qt([g],Hi.prototype,"ariaMultiSelectable",void 0),Oe(Hi,Xe),Oe(zi,Hi);const Mi="above",Bi="below";class Ni extends zi{}class ji extends(ni(Ni)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Ui="inline",qi="list",_i="both",Gi="none";class Wi extends ji{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=Ue("listbox-"),this.maxHeight=0,this.open=!1}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}validate(){super.validate(this.control)}get isAutocompleteInline(){return this.autocomplete===Ui||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===qi||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===_i}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),void h.queueUpdate(()=>this.focus());this.ariaControls="",this.ariaExpanded="false"}get options(){return p.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(t){this._options=t,p.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}get value(){return p.track(this,"value"),this._value}set value(t){var e,i,o;const s=""+this._value;if(this.$fastController.isConnected&&this.options){const s=this.options.findIndex(e=>e.text.toLowerCase()===t.toLowerCase()),n=null===(e=this.options[this.selectedIndex])||void 0===e?void 0:e.text,r=null===(i=this.options[s])||void 0===i?void 0:i.text;this.selectedIndex=n!==r?s:this.selectedIndex,t=(null===(o=this.firstSelectedOption)||void 0===o?void 0:o.text)||t}s!==t&&(this._value=t,super.valueChanged(s,t),p.notify(this,"value"))}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(!e||e.disabled)return;this.selectedOptions=[e],this.control.value=e.text,this.clearSelectionRange(),this.updateValue(!0)}return this.open=!this.open,this.open&&this.control.focus(),!0}}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.value&&(this.initialValue=this.value)}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){this.autocomplete&&this.autocomplete!==Gi||(this.filter="");const t=this.filter.toLowerCase();this.filteredOptions=this._options.filter(t=>t.text.toLowerCase().startsWith(this.filter.toLowerCase())),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach(t=>{t.hidden=!this.filteredOptions.includes(t)}))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame(()=>{var t;null===(t=this.firstSelectedOption)||void 0===t||t.scrollIntoView({block:"nearest"})}))}focusoutHandler(t){if(this.syncValue(),!this.open)return!0;const e=t.relatedTarget;this.isSameNode(e)?this.focus():this.options&&this.options.includes(e)||(this.open=!1)}inputHandler(t){if(this.filter=this.control.value,this.filterOptions(),this.isAutocompleteInline||(this.selectedIndex=this.options.map(t=>t.text).indexOf(this.control.value)),t.inputType.includes("deleteContent")||!this.filter.length)return!0;this.isAutocompleteList&&!this.open&&(this.open=!0),this.isAutocompleteInline&&(this.filteredOptions.length?(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption),this.setInlineSelection()):this.selectedIndex=-1)}keydownHandler(t){const e=t.key;if(t.ctrlKey||t.shiftKey)return!0;switch(e){case"Enter":this.syncValue(),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1,this.clearSelectionRange();break;case"Escape":if(this.isAutocompleteInline||(this.selectedIndex=-1),this.open){this.open=!1;break}this.value="",this.control.value="",this.filter="",this.filterOptions();break;case"Tab":if(this.setInputToSelection(),!this.open)return!0;t.preventDefault(),this.open=!1;break;case"ArrowUp":case"ArrowDown":if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(t),this.isAutocompleteInline&&this.setInlineSelection();break;default:return!0}}keyupHandler(t){switch(t.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions()}}selectedIndexChanged(t,e){if(this.$fastController.isConnected){if((e=Be(-1,this.options.length-1,e))!==this.selectedIndex)return void(this.selectedIndex=e);super.selectedIndexChanged(t,e)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){const t=this.options.findIndex(t=>null!==t.getAttribute("selected")||t.selected);this.selectedIndex=t,!this.dirtyValue&&this.firstSelectedOption&&(this.value=this.firstSelectedOption.text),this.setSelectedOptions()}}setInputToSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus())}setInlineSelection(){this.firstSelectedOption&&(this.setInputToSelection(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}syncValue(){var t;const e=this.selectedIndex>-1?null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text:this.control.value;this.updateValue(this.value!==e)}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Mi:Bi,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Mi?~~t.top:~~e}selectedOptionsChanged(t,e){this.$fastController.isConnected&&this._options.forEach(t=>{t.selected=e.includes(t)})}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.updateValue()}updateValue(t){var e;this.$fastController.isConnected&&(this.value=(null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)||this.control.value,this.control.value=this.value),t&&this.$emit("change")}clearSelectionRange(){const t=this.control.value.length;this.control.setSelectionRange(t,t)}}qt([tt({attribute:"autocomplete",mode:"fromView"})],Wi.prototype,"autocomplete",void 0),qt([g],Wi.prototype,"maxHeight",void 0),qt([tt({attribute:"open",mode:"boolean"})],Wi.prototype,"open",void 0),qt([tt],Wi.prototype,"placeholder",void 0),qt([tt({attribute:"position"})],Wi.prototype,"positionAttribute",void 0),qt([g],Wi.prototype,"position",void 0);class Ki{}qt([g],Ki.prototype,"ariaAutoComplete",void 0),qt([g],Ki.prototype,"ariaControls",void 0),Oe(Ki,Hi),Oe(Wi,Mt,Ki);function Xi(t){const e=t.parentElement;if(e)return e;{const e=t.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}const Yi=document.createElement("div");class Qi{setProperty(t,e){h.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){h.queueUpdate(()=>this.target.removeProperty(t))}}class Zi extends Qi{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class Ji extends Qi{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const e=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[e].style}}}class to{constructor(t){this.store=new Map,this.target=null;const e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),p.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}targetChanged(){if(null!==this.target)for(const[t,e]of this.store.entries())this.target.setProperty(t,e)}setProperty(t,e){this.store.set(t,e),h.queueUpdate(()=>{null!==this.target&&this.target.setProperty(t,e)})}removeProperty(t){this.store.delete(t),h.queueUpdate(()=>{null!==this.target&&this.target.removeProperty(t)})}handleChange(t,e){const{sheet:i}=this.style;if(i){const t=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[t].style}else this.target=null}}qt([g],to.prototype,"target",void 0);class eo{constructor(t){this.target=t.style}setProperty(t,e){h.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){h.queueUpdate(()=>this.target.removeProperty(t))}}class io{setProperty(t,e){io.properties[t]=e;for(const i of io.roots.values())no.getOrCreate(io.normalizeRoot(i)).setProperty(t,e)}removeProperty(t){delete io.properties[t];for(const e of io.roots.values())no.getOrCreate(io.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){const{roots:e}=io;if(!e.has(t)){e.add(t);const i=no.getOrCreate(this.normalizeRoot(t));for(const t in io.properties)i.setProperty(t,io.properties[t])}}static unregisterRoot(t){const{roots:e}=io;if(e.has(t)){e.delete(t);const i=no.getOrCreate(io.normalizeRoot(t));for(const t in io.properties)i.removeProperty(t)}}static normalizeRoot(t){return t===Yi?document:t}}io.roots=new Set,io.properties={};const oo=new WeakMap,so=h.supportsAdoptedStyleSheets?class extends Qi{constructor(t){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(_.create([e]))}}:to,no=Object.freeze({getOrCreate(t){if(oo.has(t))return oo.get(t);let e;return t===Yi?e=new io:t instanceof Document?e=h.supportsAdoptedStyleSheets?new Zi:new Ji:e=t instanceof ht?new so(t):new eo(t),oo.set(t,e),e}});class ro extends dt{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,null!==t.cssCustomPropertyName&&(this.cssCustomProperty="--"+t.cssCustomPropertyName,this.cssVar=`var(${this.cssCustomProperty})`),this.id=ro.uniqueId(),ro.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new ro({name:"string"==typeof t?t:t.name,cssCustomPropertyName:"string"==typeof t?t:void 0===t.cssCustomPropertyName?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return"string"==typeof t.cssCustomProperty}static isDerivedDesignTokenValue(t){return"function"==typeof t}static getTokenById(t){return ro.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const e=uo.getOrCreate(t).get(this);if(void 0!==e)return e;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,e){return this._appliedTo.add(t),e instanceof ro&&(e=this.alias(e)),uo.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),uo.existsFor(t)&&uo.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(Yi,t),this}subscribe(t,e){const i=this.getOrCreateSubscriberSet(e);e&&!uo.existsFor(e)&&uo.getOrCreate(e),i.has(t)||i.add(t)}unsubscribe(t,e){const i=this.subscribers.get(e||this);i&&i.has(t)&&i.delete(t)}notify(t){const e=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(t=>t.handleChange(e)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(t=>t.handleChange(e))}alias(t){return e=>t.getValueFor(e)}}ro.uniqueId=(()=>{let t=0;return()=>(t++,t.toString(16))})(),ro.tokensById=new Map;class ao{constructor(t,e,i){this.source=t,this.token=e,this.node=i,this.dependencies=new Set,this.observer=p.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,v))}}class lo{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),p.getNotifier(this).notify(t.id))}get(t){return p.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const co=new WeakMap,ho=new WeakMap;class uo{constructor(t){this.target=t,this.store=new lo,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,e)=>{const i=ro.getTokenById(e);if(i&&(i.notify(this.target),ro.isCSSDesignToken(i))){const e=this.parent,o=this.isReflecting(i);if(e){const s=e.get(i),n=t.get(i);s===n||o?s===n&&o&&this.stopReflectToCSS(i):this.reflectToCSS(i)}else o||this.reflectToCSS(i)}}},co.set(t,this),p.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof ht?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return co.get(t)||new uo(t)}static existsFor(t){return co.has(t)}static findParent(t){if(Yi!==t.target){let e=Xi(t.target);for(;null!==e;){if(co.has(e))return co.get(e);e=Xi(e)}return uo.getOrCreate(Yi)}return null}static findClosestAssignedNode(t,e){let i=e;do{if(i.has(t))return i;i=i.parent?i.parent:i.target!==Yi?uo.getOrCreate(Yi):null}while(null!==i);return null}get parent(){return ho.get(this)||null}has(t){return this.assignedValues.has(t)}get(t){const e=this.store.get(t);if(void 0!==e)return e;const i=this.getRaw(t);return void 0!==i?(this.hydrate(t,i),this.get(t)):void 0}getRaw(t){var e;return this.assignedValues.has(t)?this.assignedValues.get(t):null===(e=uo.findClosestAssignedNode(t,this))||void 0===e?void 0:e.getRaw(t)}set(t,e){ro.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),ro.isDerivedDesignTokenValue(e)?this.setupBindingObserver(t,e):this.store.set(t,e)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const e=this.getRaw(t);e?this.hydrate(t,e):this.store.delete(t)}bind(){const t=uo.findParent(this);t&&t.appendChild(this);for(const t of this.assignedValues.keys())t.notify(this.target)}unbind(){if(this.parent){ho.get(this).removeChild(this)}}appendChild(t){t.parent&&ho.get(t).removeChild(t);const e=this.children.filter(e=>t.contains(e));ho.set(t,this),this.children.push(t),e.forEach(e=>t.appendChild(e)),p.getNotifier(this.store).subscribe(t);for(const[e,i]of this.store.all())t.hydrate(e,this.bindingObservers.has(e)?this.getRaw(e):i)}removeChild(t){const e=this.children.indexOf(t);return-1!==e&&this.children.splice(e,1),p.getNotifier(this.store).unsubscribe(t),t.parent===this&&ho.delete(t)}contains(t){return function(t,e){let i=e;for(;null!==i;){if(i===t)return!0;i=Xi(i)}return!1}(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),uo.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),uo.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){const i=ro.getTokenById(e);i&&this.hydrate(i,this.getRaw(i))}hydrate(t,e){if(!this.has(t)){const i=this.bindingObservers.get(t);ro.isDerivedDesignTokenValue(e)?i?i.source!==e&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,e)):this.setupBindingObserver(t,e):(i&&this.tearDownBindingObserver(t),this.store.set(t,e))}}setupBindingObserver(t,e){const i=new ao(e,t,this);return this.bindingObservers.set(t,i),i}tearDownBindingObserver(t){return!!this.bindingObservers.has(t)&&(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0)}}uo.cssCustomPropertyReflector=new class{startReflection(t,e){t.subscribe(this,e),this.handleChange({token:t,target:e})}stopReflection(t,e){t.unsubscribe(this,e),this.remove(t,e)}handleChange(t){const{token:e,target:i}=t;this.add(e,i)}add(t,e){no.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(uo.getOrCreate(e).get(t)))}remove(t,e){no.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&"function"==typeof t.createCSS?t.createCSS():t}},qt([g],uo.prototype,"children",void 0);const po=Object.freeze({create:function(t){return ro.from(t)},notifyConnection:t=>!(!t.isConnected||!uo.existsFor(t))&&(uo.getOrCreate(t).bind(),!0),notifyDisconnection:t=>!(t.isConnected||!uo.existsFor(t))&&(uo.getOrCreate(t).unbind(),!0),registerRoot(t=Yi){io.registerRoot(t)},unregisterRoot(t=Yi){io.unregisterRoot(t)}}),go=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),fo=new Map,mo=new Map;let vo=null;const bo=Jt.createInterface(t=>t.cachedCallback(t=>(null===vo&&(vo=new xo(null,t)),vo))),yo=Object.freeze({tagFor:t=>mo.get(t),responsibleFor(t){const e=t.$$designSystem$$;if(e)return e;return Jt.findResponsibleContainer(t).get(bo)},getOrCreate(t){if(!t)return null===vo&&(vo=Jt.getOrCreateDOMContainer().get(bo)),vo;const e=t.$$designSystem$$;if(e)return e;const i=Jt.getOrCreateDOMContainer(t);if(i.has(bo,!1))return i.get(bo);{const e=new xo(t,i);return i.register(fe.instance(bo,e)),e}}});class xo{constructor(t,e){this.owner=t,this.container=e,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>go.definitionCallbackOnly,null!==t&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const e=this.container,i=[],o=this.disambiguate,s=this.shadowRootMode,n={elementPrefix:this.prefix,tryDefineElement(t,n,r){const a=function(t,e,i){return"string"==typeof t?{name:t,type:e,callback:i}:t}(t,n,r),{name:l,callback:c,baseClass:h}=a;let{type:d}=a,u=l,p=fo.get(u),g=!0;for(;p;){const t=o(u,d,p);switch(t){case go.ignoreDuplicate:return;case go.definitionCallbackOnly:g=!1,p=void 0;break;default:u=t,p=fo.get(u)}}g&&((mo.has(d)||d===De)&&(d=class extends d{}),fo.set(u,d),mo.set(d,u),h&&mo.set(h,u)),i.push(new $o(e,u,d,s,c,g))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&po.registerRoot(this.designTokenRoot)),e.registerWithContext(n,...t);for(const t of i)t.callback(t),t.willDefine&&null!==t.definition&&t.definition.define();return this}}class $o{constructor(t,e,i,o,s,n){this.container=t,this.name=e,this.type=i,this.shadowRootMode=o,this.callback=s,this.willDefine=n,this.definition=null}definePresentation(t){Ie.define(this.name,t,this.container)}defineElement(t){this.definition=new st(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return yo.tagFor(t)}}
|
|
17
17
|
/*!
|
|
18
18
|
* tabbable 5.2.0
|
|
19
19
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
20
20
|
*/
|
|
21
|
-
var wo=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],ko=wo.join(","),Co="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Io=function(t){return"INPUT"===t.tagName},Fo=function(t){return function(t){return Io(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,i=t.form||t.ownerDocument,o=function(t){return i.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var s=function(t,e){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===e)return t[i]}(e,t.form);return!s||s===t}(t)},Do=function(t,e){return!(e.disabled||function(t){return Io(t)&&"hidden"===t.type}(e)||function(t,e){if("hidden"===getComputedStyle(t).visibility)return!0;var i=Co.call(t,"details>summary:first-of-type")?t.parentElement:t;if(Co.call(i,"details:not([open]) *"))return!0;if(e&&"full"!==e){if("non-zero-area"===e){var o=t.getBoundingClientRect(),s=o.width,n=o.height;return 0===s&&0===n}}else for(;t;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(e,t.displayCheck)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e))},To=function(t,e){return!(!Do(t,e)||Fo(e)||function(t){var e=parseInt(t.getAttribute("tabindex"),10);return isNaN(e)?function(t){return"true"===t.contentEditable}(t)?0:"AUDIO"!==t.nodeName&&"VIDEO"!==t.nodeName&&"DETAILS"!==t.nodeName||null!==t.getAttribute("tabindex")?t.tabIndex:0:e}(e)<0)},So=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Co.call(t,ko)&&To(e,t)},Oo=wo.concat("iframe").join(","),Eo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Co.call(t,Oo)&&Do(e,t)};class Vo extends De{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.trapFocusChanged=()=>{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&!this.hidden)switch(t.key){case"Escape":this.dismiss(),t.preventDefault();break;case"Tab":this.handleTabKeyDown(t)}},this.handleDocumentFocus=t=>{!t.defaultPrevented&&this.shouldForceFocus(t.target)&&(this.focusFirstElement(),t.preventDefault())},this.handleTabKeyDown=t=>{if(!this.trapFocus||this.hidden)return;const e=this.getTabQueueBounds();return 0!==e.length?1===e.length?(e[0].focus(),void t.preventDefault()):void(t.shiftKey&&t.target===e[0]?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||t.target!==e[e.length-1]||(e[0].focus(),t.preventDefault())):void 0},this.getTabQueueBounds=()=>Vo.reduceTabbableItems([],this),this.focusFirstElement=()=>{const t=this.getTabQueueBounds();t.length>0?t[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=t=>this.isTrappingFocus&&!this.contains(t),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=t=>{const e=void 0===t?this.shouldTrapFocus():t;e&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),h.queueUpdate(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!e&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss"),this.$emit("cancel")}show(){this.hidden=!1}hide(){this.hidden=!0,this.$emit("close")}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=p.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(t,e){switch(e){case"hidden":this.updateTrapFocus()}}static reduceTabbableItems(t,e){return"-1"===e.getAttribute("tabindex")?t:So(e)||Vo.isFocusableFastElement(e)&&Vo.hasTabbableShadow(e)?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(Vo.reduceTabbableItems,[])):t}static isFocusableFastElement(t){var e,i;return!!(null===(i=null===(e=t.$fastController)||void 0===e?void 0:e.definition.shadowOptions)||void 0===i?void 0:i.delegatesFocus)}static hasTabbableShadow(t){var e,i;return Array.from(null!==(i=null===(e=t.shadowRoot)||void 0===e?void 0:e.querySelectorAll("*"))&&void 0!==i?i:[]).some(t=>So(t))}}qt([tt({mode:"boolean"})],Vo.prototype,"modal",void 0),qt([tt({mode:"boolean"})],Vo.prototype,"hidden",void 0),qt([tt({attribute:"trap-focus",mode:"boolean"})],Vo.prototype,"trapFocus",void 0),qt([tt({attribute:"aria-describedby"})],Vo.prototype,"ariaDescribedby",void 0),qt([tt({attribute:"aria-labelledby"})],Vo.prototype,"ariaLabelledby",void 0),qt([tt({attribute:"aria-label"})],Vo.prototype,"ariaLabel",void 0);const Ro="separator";class Ao extends De{constructor(){super(...arguments),this.role=Ro,this.orientation=Ve}}qt([tt],Ao.prototype,"role",void 0),qt([tt],Ao.prototype,"orientation",void 0);const Lo="next",Po="previous";class Ho extends De{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=Lo}keyupHandler(t){if(!this.hiddenFromAT){const e=t.key;"Enter"!==e&&"Space"!==e||this.$emit("click",t),"Escape"===e&&this.blur()}}}qt([tt({mode:"boolean"})],Ho.prototype,"disabled",void 0),qt([tt({attribute:"aria-hidden",converter:Q})],Ho.prototype,"hiddenFromAT",void 0),qt([tt],Ho.prototype,"direction",void 0);class zo extends Hi{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var t;return null===(t=this.options)||void 0===t?void 0:t.filter(t=>t.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(t,e){var i,o;this.ariaActiveDescendant=null!==(o=null===(i=this.options[e])||void 0===i?void 0:i.id)&&void 0!==o?o:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const t=this.activeOption;t&&(t.checked=!0)}checkFirstOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((t,e)=>{t.checked=Ne(e,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((t,e)=>{t.checked=Ne(e,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((t,e)=>{t.checked=Ne(e,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}checkPreviousOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),1===this.checkedOptions.length&&(this.rangeStartIndex+=1),this.options.forEach((t,e)=>{t.checked=Ne(e,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(t){var e;if(!this.multiple)return super.clickHandler(t);const i=null===(e=t.target)||void 0===e?void 0:e.closest("[role=option]");return i&&!i.disabled?(this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(i),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0):void 0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(t){if(!this.multiple)return super.focusinHandler(t);this.shouldSkipFocus||t.target!==t.currentTarget||(this.uncheckAllOptions(),-1===this.activeIndex&&(this.activeIndex=-1!==this.firstSelectedOptionIndex?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(t){this.multiple&&this.uncheckAllOptions()}keydownHandler(t){if(!this.multiple)return super.keydownHandler(t);if(this.disabled)return!0;const{key:e,shiftKey:i}=t;switch(this.shouldSkipFocus=!1,e){case"Home":return void this.checkFirstOption(i);case"ArrowDown":return void this.checkNextOption(i);case"ArrowUp":return void this.checkPreviousOption(i);case"End":return void this.checkLastOption(i);case"Tab":return this.focusAndScrollOptionIntoView(),!0;case"Escape":return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case" ":if(t.preventDefault(),this.typeAheadExpired)return void this.toggleSelectedForAllCheckedOptions();default:return 1===e.length&&this.handleTypeAhead(""+e),!0}}mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}multipleChanged(t,e){var i;this.ariaMultiSelectable=e?"true":null,null===(i=this.options)||void 0===i||i.forEach(t=>{t.checked=!e&&void 0}),this.setSelectedOptions()}setSelectedOptions(){this.multiple?this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(t=>t.selected),this.focusAndScrollOptionIntoView()):super.setSelectedOptions()}sizeChanged(t,e){var i;const o=Math.max(0,parseInt(null!==(i=null==e?void 0:e.toFixed())&&void 0!==i?i:"",10));o!==e&&h.queueUpdate(()=>{this.size=o})}toggleSelectedForAllCheckedOptions(){const t=this.checkedOptions.filter(t=>!t.disabled),e=!t.every(t=>t.selected);t.forEach(t=>t.selected=e),this.selectedIndex=this.options.indexOf(t[t.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(t,e){if(this.multiple){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches(),e=this.options.indexOf(t[0]);e>-1&&(this.activeIndex=e,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}else super.typeaheadBufferChanged(t,e)}uncheckAllOptions(t=!1){this.options.forEach(t=>t.checked=!this.multiple&&void 0),t||(this.rangeStartIndex=-1)}}qt([g],zo.prototype,"activeIndex",void 0),qt([tt({mode:"boolean"})],zo.prototype,"multiple",void 0),qt([tt({converter:Z})],zo.prototype,"size",void 0);const Mo="menuitem",Bo="menuitemcheckbox",No="menuitemradio",jo={[Mo]:"menuitem",[Bo]:"menuitemcheckbox",[No]:"menuitemradio"};class Uo extends De{constructor(){super(...arguments),this.role=Mo,this.hasSubmenu=!1,this.currentDirection=ze.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.expandAndFocus(),!1;case"ArrowLeft":if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=t=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=t=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Bo:this.checked=!this.checked;break;case Mo:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case No:this.checked||(this.checked=!0)}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find(t=>"menu"===t.getAttribute("role")),this.hasSubmenu=void 0!==this.submenu}}expandedChanged(t){if(this.$fastController.isConnected){if(void 0===this.submenu)return;!1===this.expanded?this.submenu.collapseExpandedItem():this.currentDirection=Ze(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(t,e){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),h.queueUpdate(()=>{this.updateSubmenu()}),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,void 0!==this.observer&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children).filter(t=>!t.hasAttribute("hidden"))}}qt([tt({mode:"boolean"})],Uo.prototype,"disabled",void 0),qt([tt({mode:"boolean"})],Uo.prototype,"expanded",void 0),qt([g],Uo.prototype,"startColumnCount",void 0),qt([tt],Uo.prototype,"role",void 0),qt([tt({mode:"boolean"})],Uo.prototype,"checked",void 0),qt([g],Uo.prototype,"submenuRegion",void 0),qt([g],Uo.prototype,"hasSubmenu",void 0),qt([g],Uo.prototype,"currentDirection",void 0),qt([g],Uo.prototype,"submenu",void 0),Oe(Uo,Mt);class qo extends De{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>null!==this.parentElement&&Ae(this.parentElement)&&"menuitem"===this.parentElement.getAttribute("role"),this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&void 0!==this.menuItems){this.collapseExpandedItem();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=t=>{const e=t.target;void 0!==this.menuItems&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.handleExpandedChanged=t=>{if(t.defaultPrevented||null===t.target||void 0===this.menuItems||this.menuItems.indexOf(t.target)<0)return;t.preventDefault();const e=t.target;null===this.expandedItem||e!==this.expandedItem||!1!==e.expanded?e.expanded&&(null!==this.expandedItem&&this.expandedItem!==e&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=e,this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0")):this.expandedItem=null},this.removeItemListeners=()=>{void 0!==this.menuItems&&this.menuItems.forEach(t=>{t.removeEventListener("expanded-change",this.handleExpandedChanged),t.removeEventListener("focus",this.handleItemFocus)})},this.setItems=()=>{const t=this.domChildren();this.removeItemListeners(),this.menuItems=t;const e=this.menuItems.filter(this.isMenuItemElement);e.length&&(this.focusIndex=0);const i=e.reduce((t,e)=>{const i=function(t){const e=t.getAttribute("role"),i=t.querySelector("[slot=start]");return e!==Mo&&null===i||e===Mo&&null!==i?1:e!==Mo&&null!==i?2:0}(e);return t>i?t:i},0);e.forEach((t,e)=>{t.setAttribute("tabindex",0===e?"0":"-1"),t.addEventListener("expanded-change",this.handleExpandedChanged),t.addEventListener("focus",this.handleItemFocus),t instanceof Uo&&(t.startColumnCount=i)})},this.changeHandler=t=>{if(void 0===this.menuItems)return;const e=t.target,i=this.menuItems.indexOf(e);if(-1!==i&&"menuitemradio"===e.role&&!0===e.checked){for(let t=i-1;t>=0;--t){const e=this.menuItems[t],i=e.getAttribute("role");if(i===No&&(e.checked=!1),"separator"===i)break}const t=this.menuItems.length-1;for(let e=i+1;e<=t;++e){const t=this.menuItems[e],i=t.getAttribute("role");if(i===No&&(t.checked=!1),"separator"===i)break}}},this.isMenuItemElement=t=>Ae(t)&&qo.focusableElementRoles.hasOwnProperty(t.getAttribute("role")),this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&void 0!==this.menuItems&&this.setItems()}connectedCallback(){super.connectedCallback(),h.queueUpdate(()=>{this.setItems()}),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){null!==this.expandedItem&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(t){if(!t.defaultPrevented&&void 0!==this.menuItems)switch(t.key){case"ArrowDown":return void this.setFocus(this.focusIndex+1,1);case"ArrowUp":return void this.setFocus(this.focusIndex-1,-1);case"End":return void this.setFocus(this.menuItems.length-1,-1);case"Home":return void this.setFocus(0,1);default:return!0}}domChildren(){return Array.from(this.children).filter(t=>!t.hasAttribute("hidden"))}setFocus(t,e){if(void 0!==this.menuItems)for(;t>=0&&t<this.menuItems.length;){const i=this.menuItems[t];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,i.setAttribute("tabindex","0"),i.focus();break}t+=e}}}qo.focusableElementRoles=jo,qt([g],qo.prototype,"items",void 0);class _o extends De{}class Go extends(ni(_o)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Wo="text";class Ko extends Go{constructor(){super(...arguments),this.type=Wo}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&h.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}qt([tt({attribute:"readonly",mode:"boolean"})],Ko.prototype,"readOnly",void 0),qt([tt({mode:"boolean"})],Ko.prototype,"autofocus",void 0),qt([tt],Ko.prototype,"placeholder",void 0),qt([tt],Ko.prototype,"type",void 0),qt([tt],Ko.prototype,"list",void 0),qt([tt({converter:Z})],Ko.prototype,"maxlength",void 0),qt([tt({converter:Z})],Ko.prototype,"minlength",void 0),qt([tt],Ko.prototype,"pattern",void 0),qt([tt({converter:Z})],Ko.prototype,"size",void 0),qt([tt({mode:"boolean"})],Ko.prototype,"spellcheck",void 0),qt([g],Ko.prototype,"defaultSlottedNodes",void 0);class Xo{}Oe(Xo,Xe),Oe(Ko,Mt,Xo);class Yo extends De{}class Qo extends(ni(Yo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Zo extends Qo{constructor(){super(...arguments),this.hideStep=!1,this.step=1,this.isUserInput=!1}maxChanged(t,e){var i;this.max=Math.max(e,null!==(i=this.min)&&void 0!==i?i:e);const o=Math.min(this.min,this.max);void 0!==this.min&&this.min!==o&&(this.min=o),this.value=this.getValidValue(this.value)}minChanged(t,e){var i;this.min=Math.min(e,null!==(i=this.max)&&void 0!==i?i:e);const o=Math.max(this.min,this.max);void 0!==this.max&&this.max!==o&&(this.max=o),this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){this.value=this.getValidValue(e),e===this.value&&(this.control&&!this.isUserInput&&(this.control.value=this.value),super.valueChanged(t,this.value),void 0===t||this.isUserInput||(this.$emit("input"),this.$emit("change")),this.isUserInput=!1)}validate(){super.validate(this.control)}getValidValue(t){var e,i;let o=parseFloat(parseFloat(t).toPrecision(12));return isNaN(o)?o="":(o=Math.min(o,null!==(e=this.max)&&void 0!==e?e:o),o=Math.max(o,null!==(i=this.min)&&void 0!==i?i:o).toString()),o}stepUp(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:t+this.step;this.value=e.toString()}stepDown(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:t-this.step;this.value=e.toString()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","number"),this.validate(),this.control.value=this.value,this.autofocus&&h.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.isUserInput=!0,this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(t){switch(t.key){case"ArrowUp":return this.stepUp(),!1;case"ArrowDown":return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}}qt([tt({attribute:"readonly",mode:"boolean"})],Zo.prototype,"readOnly",void 0),qt([tt({mode:"boolean"})],Zo.prototype,"autofocus",void 0),qt([tt({attribute:"hide-step",mode:"boolean"})],Zo.prototype,"hideStep",void 0),qt([tt],Zo.prototype,"placeholder",void 0),qt([tt],Zo.prototype,"list",void 0),qt([tt({converter:Z})],Zo.prototype,"maxlength",void 0),qt([tt({converter:Z})],Zo.prototype,"minlength",void 0),qt([tt({converter:Z})],Zo.prototype,"size",void 0),qt([tt({converter:Z})],Zo.prototype,"step",void 0),qt([tt({converter:Z})],Zo.prototype,"max",void 0),qt([tt({converter:Z})],Zo.prototype,"min",void 0),qt([g],Zo.prototype,"defaultSlottedNodes",void 0),Oe(Zo,Mt,Xo);class Jo extends De{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const t="number"==typeof this.min?this.min:0,e="number"==typeof this.max?this.max:100,i="number"==typeof this.value?this.value:0,o=e-t;this.percentComplete=0===o?0:Math.fround((i-t)/o*100)}}qt([tt({converter:Z})],Jo.prototype,"value",void 0),qt([tt({converter:Z})],Jo.prototype,"min",void 0),qt([tt({converter:Z})],Jo.prototype,"max",void 0),qt([tt({mode:"boolean"})],Jo.prototype,"paused",void 0),qt([g],Jo.prototype,"percentComplete",void 0);class ts extends De{constructor(){super(...arguments),this.orientation=Ve,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(t=>{t!==e&&(t.checked=!1,this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"))}),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const i=t[e];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach(t=>{t!==i&&t.setAttribute("tabindex","-1")}):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var t;null===(t=this.nextElementSibling)||void 0===t||t.focus()},this.moveLeftOffGroup=()=>{var t;null===(t=this.previousElementSibling)||void 0===t||t.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,i=t.target,o=null!==i?e.indexOf(i):0,s=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(0===s&&o===s||s===e.length-1&&s===o)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.selectedRadio&&t.setAttribute("tabindex","-1")}))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.focusedRadio&&t.setAttribute("tabindex","-1")}))),!0},this.clickHandler=t=>{const e=t.target;if(e){const t=this.slottedRadioButtons;e.checked||0===t.indexOf(e)?(e.setAttribute("tabindex","0"),this.selectedRadio=e):(e.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=e}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,e,i)=>t===e.length&&this.isInsideToolbar&&"ArrowRight"===i,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&"ArrowLeft"===e,this.checkFocusedRadio=()=>{null===this.focusedRadio||this.focusedRadio.readOnly||this.focusedRadio.checked||(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,e,t.key))this.moveRightOffGroup();else for(i===e.length&&(i=0);i<e.length&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;if(i+1>=e.length){if(this.isInsideToolbar)break;i=0}else i+=1}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,i=i<0?e.length-1:i,this.shouldMoveOffGroupToTheLeft(e,t.key))this.moveLeftOffGroup();else for(;i>=0&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;i-1<0?i=e.length-1:i-=1}},this.keydownHandler=t=>{const e=t.key;if(e in He&&this.isInsideFoundationToolbar)return!0;switch(e){case"Enter":this.checkFocusedRadio();break;case"ArrowRight":case"ArrowDown":this.direction===ze.ltr?this.moveRight(t):this.moveLeft(t);break;case"ArrowLeft":case"ArrowUp":this.direction===ze.ltr?this.moveLeft(t):this.moveRight(t);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1})}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.disabled?t.disabled=!0:t.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.value===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,e){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var t;return null!==(t=this.parentToolbar)&&void 0!==t&&t}get isInsideFoundationToolbar(){var t;return!!(null===(t=this.parentToolbar)||void 0===t?void 0:t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=Ze(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=t?t.length:0;if(e>1){t[e-1].checked=!0}let i=!1;if(this.slottedRadioButtons.forEach(t=>{void 0!==this.name&&t.setAttribute("name",this.name),this.disabled&&(t.disabled=!0),this.readOnly&&(t.readOnly=!0),this.value&&this.value===t.value?(this.selectedRadio=t,this.focusedRadio=t,t.checked=!0,t.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"),t.checked=!1),t.addEventListener("change",this.radioChangeHandler)}),void 0===this.value&&this.slottedRadioButtons.length>0){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=null!==t?t.length:0;if(e>0&&!i){const i=t[e-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}qt([tt({attribute:"readonly",mode:"boolean"})],ts.prototype,"readOnly",void 0),qt([tt({attribute:"disabled",mode:"boolean"})],ts.prototype,"disabled",void 0),qt([tt],ts.prototype,"name",void 0),qt([tt],ts.prototype,"value",void 0),qt([tt],ts.prototype,"orientation",void 0),qt([g],ts.prototype,"childItems",void 0),qt([g],ts.prototype,"slottedRadioButtons",void 0);class es extends De{}class is extends(ri(es)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class os extends is{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case" ":return void(this.checked||this.readOnly||(this.checked=!0))}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}connectedCallback(){var t,e;super.connectedCallback(),this.validate(),"radiogroup"!==(null===(t=this.parentElement)||void 0===t?void 0:t.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}clickHandler(t){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}qt([tt({attribute:"readonly",mode:"boolean"})],os.prototype,"readOnly",void 0),qt([g],os.prototype,"name",void 0),qt([g],os.prototype,"defaultSlottedNodes",void 0);class ss extends De{constructor(){super(...arguments),this.framesPerSecond=60,this.updatingItems=!1,this.speed=600,this.easing="ease-in-out",this.flippersHiddenFromAT=!1,this.scrolling=!1,this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(t,e){if(this.scrollContainer){const t=1==this.scrolling?"scrollstart":"scrollend";this.$emit(t,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback(),this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector(),super.disconnectedCallback()}scrollItemsChanged(t,e){e&&!this.updatingItems&&h.queueUpdate(()=>this.setStops())}disconnectResizeDetector(){this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.resized.bind(this)),this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=!0;const t=this.scrollItems.reduce((t,e)=>e instanceof HTMLSlotElement?t.concat(e.assignedElements()):(t.push(e),t),[]);this.scrollItems=t,this.updatingItems=!1}setStops(){this.updateScrollStops();const{scrollContainer:t}=this,{scrollLeft:e}=t,{width:i,left:o}=t.getBoundingClientRect();this.width=i;let s=0,n=this.scrollItems.map((t,i)=>{const{left:n,width:r}=t.getBoundingClientRect(),a=Math.round(n+e-o),l=Math.round(a+r);return this.isRtl?-l:(s=l,0===i?0:a)}).concat(s);n=this.fixScrollMisalign(n),n.sort((t,e)=>Math.abs(t)-Math.abs(e)),this.scrollStops=n,this.setFlippers()}fixScrollMisalign(t){if(this.isRtl&&t.some(t=>t>0)){t.sort((t,e)=>e-t);const e=t[0];t=t.map(t=>t-e)}return t}setFlippers(){var t,e;const i=this.scrollContainer.scrollLeft;if(null===(t=this.previousFlipperContainer)||void 0===t||t.classList.toggle("disabled",0===i),this.scrollStops){const t=Math.abs(this.scrollStops[this.scrollStops.length-1]);null===(e=this.nextFlipperContainer)||void 0===e||e.classList.toggle("disabled",Math.abs(i)+this.width>=t)}}scrollInView(t,e=0,i){var o;if("number"!=typeof t&&t&&(t=this.scrollItems.findIndex(e=>e===t||e.contains(t))),void 0!==t){i=null!=i?i:e;const{scrollContainer:s,scrollStops:n,scrollItems:r}=this,{scrollLeft:a}=this.scrollContainer,{width:l}=s.getBoundingClientRect(),c=n[t],{width:h}=r[t].getBoundingClientRect(),d=c+h,u=a+e>c;if(u||a+l-i<d){const t=null!==(o=[...n].sort((t,e)=>u?e-t:t-e).find(t=>u?t+e<c:t+l-(null!=i?i:0)>d))&&void 0!==o?o:0;this.scrollToPosition(t)}}}keyupHandler(t){switch(t.key){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext()}}scrollToPrevious(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex((e,i)=>e>=t&&(this.isRtl||i===this.scrollStops.length-1||this.scrollStops[i+1]>t)),i=Math.abs(this.scrollStops[e+1]);let o=this.scrollStops.findIndex(t=>Math.abs(t)+this.width>i);(o>=e||-1===o)&&(o=e>0?e-1:0),this.scrollToPosition(this.scrollStops[o],t)}scrollToNext(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex(e=>Math.abs(e)>=Math.abs(t)),i=this.scrollStops.findIndex(e=>Math.abs(t)+this.width<=Math.abs(e));let o=e;i>e+2?o=i-2:e<this.scrollStops.length-2&&(o=e+1),this.scrollToPosition(this.scrollStops[o],t)}scrollToPosition(t,e=this.scrollContainer.scrollLeft){var i;if(this.scrolling)return;this.scrolling=!0;const o=null!==(i=this.duration)&&void 0!==i?i:Math.abs(t-e)/this.speed+"s";this.content.style.setProperty("transition-duration",o);const s=parseFloat(getComputedStyle(this.content).getPropertyValue("transition-duration")),n=e=>{e&&e.target!==e.currentTarget||(this.content.style.setProperty("transition-duration","0s"),this.content.style.removeProperty("transform"),this.scrollContainer.style.setProperty("scroll-behavior","auto"),this.scrollContainer.scrollLeft=t,this.setFlippers(),this.content.removeEventListener("transitionend",n),this.scrolling=!1)};if(0===s)return void n();this.content.addEventListener("transitionend",n);const r=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth;let a=this.scrollContainer.scrollLeft-Math.min(t,r);this.isRtl&&(a=this.scrollContainer.scrollLeft+Math.min(Math.abs(t),r)),this.content.style.setProperty("transition-property","transform"),this.content.style.setProperty("transition-timing-function",this.easing),this.content.style.setProperty("transform",`translateX(${a}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout(()=>{this.width=this.scrollContainer.offsetWidth,this.setFlippers()},this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout(()=>{this.setFlippers()},this.frameTime)}}qt([tt({converter:Z})],ss.prototype,"speed",void 0),qt([tt],ss.prototype,"duration",void 0),qt([tt],ss.prototype,"easing",void 0),qt([tt({attribute:"flippers-hidden-from-at",converter:Q})],ss.prototype,"flippersHiddenFromAT",void 0),qt([g],ss.prototype,"scrolling",void 0),qt([g],ss.prototype,"scrollItems",void 0),qt([tt({attribute:"view"})],ss.prototype,"view",void 0);function ns(t,e,i){return t.nodeType!==Node.TEXT_NODE||"string"==typeof t.nodeValue&&!!t.nodeValue.trim().length}class rs extends De{}class as extends(ni(rs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class ls extends as{readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.validate(),this.autofocus&&h.queueUpdate(()=>{this.focus()})}validate(){super.validate(this.control)}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value="",this.control.focus()}handleChange(){this.$emit("change")}}qt([tt({attribute:"readonly",mode:"boolean"})],ls.prototype,"readOnly",void 0),qt([tt({mode:"boolean"})],ls.prototype,"autofocus",void 0),qt([tt],ls.prototype,"placeholder",void 0),qt([tt],ls.prototype,"list",void 0),qt([tt({converter:Z})],ls.prototype,"maxlength",void 0),qt([tt({converter:Z})],ls.prototype,"minlength",void 0),qt([tt],ls.prototype,"pattern",void 0),qt([tt({converter:Z})],ls.prototype,"size",void 0),qt([tt({mode:"boolean"})],ls.prototype,"spellcheck",void 0),qt([g],ls.prototype,"defaultSlottedNodes",void 0);class cs{}Oe(cs,Xe),Oe(ls,Mt,cs);class hs extends zo{}class ds extends(ni(hs)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class us extends ds{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=Ue("listbox-"),this.maxHeight=0}openChanged(t,e){if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void h.queueUpdate(()=>this.focus());this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||"number"==typeof this.size)}get value(){return p.track(this,"value"),this._value}set value(t){var e,i,o,s,n,r,a;const l=""+this._value;if(null===(e=this._options)||void 0===e?void 0:e.length){const e=this._options.findIndex(e=>e.value===t),l=null!==(o=null===(i=this._options[this.selectedIndex])||void 0===i?void 0:i.value)&&void 0!==o?o:null,c=null!==(n=null===(s=this._options[e])||void 0===s?void 0:s.value)&&void 0!==n?n:null;-1!==e&&l===c||(t="",this.selectedIndex=e),t=null!==(a=null===(r=this.firstSelectedOption)||void 0===r?void 0:r.value)&&void 0!==a?a:t}l!==t&&(this._value=t,super.valueChanged(l,t),p.notify(this,"value"),this.updateDisplayValue())}updateValue(t){var e,i;this.$fastController.isConnected&&(this.value=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.value)&&void 0!==i?i:""),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,e){super.selectedIndexChanged(t,e),this.updateValue()}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Mi:Bi,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Mi?~~t.top:~~e}get displayValue(){var t,e;return p.track(this,"displayValue"),null!==(e=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text)&&void 0!==e?e:""}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),-1===this.selectedIndex&&(this.selectedIndex=0)}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(e&&e.disabled)return}return super.clickHandler(t),this.open=this.collapsible&&!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(t){var e;if(super.focusoutHandler(t),!this.open)return!0;const i=t.relatedTarget;this.isSameNode(i)?this.focus():(null===(e=this.options)||void 0===e?void 0:e.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(t,e){super.handleChange(t,e),"value"===e&&this.updateValue()}slottedOptionsChanged(t,e){this.options.forEach(t=>{p.getNotifier(t).unsubscribe(this,"value")}),super.slottedOptionsChanged(t,e),this.options.forEach(t=>{p.getNotifier(t).subscribe(this,"value")}),this.setProxyOptions(),this.updateValue()}mousedownHandler(t){var e;return t.offsetX>=0&&t.offsetX<=(null===(e=this.listbox)||void 0===e?void 0:e.scrollWidth)?super.mousedownHandler(t):this.collapsible}multipleChanged(t,e){super.multipleChanged(t,e),this.proxy&&(this.proxy.multiple=e)}selectedOptionsChanged(t,e){var i;super.selectedOptionsChanged(t,e),null===(i=this.options)||void 0===i||i.forEach((t,e)=>{var i;const o=null===(i=this.proxy)||void 0===i?void 0:i.options.item(e);o&&(o.selected=t.selected)})}setDefaultSelectedOption(){var t;const e=null!==(t=this.options)&&void 0!==t?t:Array.from(this.children).filter(Hi.slottedOptionFilter),i=null==e?void 0:e.findIndex(t=>t.hasAttribute("selected")||t.selected||t.value===this.value);this.selectedIndex=-1===i?0:i}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{const e=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);e&&this.proxy.options.add(e)}))}keydownHandler(t){super.keydownHandler(t);const e=t.key||t.key.charCodeAt(0);switch(e){case" ":t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case"Home":case"End":t.preventDefault();break;case"Enter":t.preventDefault(),this.open=!this.open;break;case"Escape":this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break;case"Tab":return this.collapsible&&this.open&&(t.preventDefault(),this.open=!1),!0}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!("ArrowDown"===e||"ArrowUp"===e)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(t,e){super.sizeChanged(t,e),this.proxy&&(this.proxy.size=e)}updateDisplayValue(){this.collapsible&&p.notify(this,"displayValue")}}qt([tt({attribute:"open",mode:"boolean"})],us.prototype,"open",void 0),qt([function(t,e,i){return Object.assign({},i,{get:function(){return p.trackVolatile(),i.get.apply(this)}})}],us.prototype,"collapsible",null),qt([g],us.prototype,"control",void 0),qt([tt({attribute:"position"})],us.prototype,"positionAttribute",void 0),qt([g],us.prototype,"position",void 0),qt([g],us.prototype,"maxHeight",void 0);class ps{}qt([g],ps.prototype,"ariaControls",void 0),Oe(ps,zi),Oe(us,Mt,ps);class gs extends De{constructor(){super(...arguments),this.shape="rect"}}qt([tt],gs.prototype,"fill",void 0),qt([tt],gs.prototype,"shape",void 0),qt([tt],gs.prototype,"pattern",void 0),qt([tt({mode:"boolean"})],gs.prototype,"shimmer",void 0);function fs(t,e,i,o){let s=Be(0,1,(t-e)/(i-e));return o===ze.rtl&&(s=1-s),s}const ms={min:0,max:0,direction:ze.ltr,orientation:Ve,disabled:!1};class vs extends De{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=ze.ltr,this.getSliderConfiguration=()=>{if(this.isSliderConfig(this.parentNode)){const t=this.parentNode,{min:e,max:i,direction:o,orientation:s,disabled:n}=t;void 0!==n&&(this.disabled=n),this.sliderDirection=o||ze.ltr,this.sliderOrientation=s||Ve,this.sliderMaxPosition=i,this.sliderMinPosition=e}else this.sliderDirection=ms.direction||ze.ltr,this.sliderOrientation=ms.orientation,this.sliderMaxPosition=ms.max,this.sliderMinPosition=ms.min},this.positionAsStyle=()=>{const t=this.sliderDirection?this.sliderDirection:ze.ltr,e=fs(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition));let i=Math.round(100*(1-e)),o=Math.round(100*e);return Number.isNaN(o)&&Number.isNaN(i)&&(i=50,o=50),this.sliderOrientation===Ve?t===ze.rtl?`right: ${o}%; left: ${i}%;`:`left: ${o}%; right: ${i}%;`:`top: ${o}%; bottom: ${i}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=p.getNotifier(this.parentNode),this.notifier.subscribe(this,"orientation"),this.notifier.subscribe(this,"direction"),this.notifier.subscribe(this,"max"),this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback(),this.notifier.unsubscribe(this,"orientation"),this.notifier.unsubscribe(this,"direction"),this.notifier.unsubscribe(this,"max"),this.notifier.unsubscribe(this,"min")}handleChange(t,e){switch(e){case"direction":this.sliderDirection=t.direction;break;case"orientation":this.sliderOrientation=t.orientation;break;case"max":this.sliderMaxPosition=t.max;break;case"min":this.sliderMinPosition=t.min}this.positionStyle=this.positionAsStyle()}isSliderConfig(t){return void 0!==t.max&&void 0!==t.min}}qt([g],vs.prototype,"positionStyle",void 0),qt([tt],vs.prototype,"position",void 0),qt([tt({attribute:"hide-mark",mode:"boolean"})],vs.prototype,"hideMark",void 0),qt([tt({attribute:"disabled",mode:"boolean"})],vs.prototype,"disabled",void 0),qt([g],vs.prototype,"sliderOrientation",void 0),qt([g],vs.prototype,"sliderMinPosition",void 0),qt([g],vs.prototype,"sliderMaxPosition",void 0),qt([g],vs.prototype,"sliderDirection",void 0);class bs extends De{}class ys extends(ni(bs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const xs="single-value";class $s extends ys{constructor(){super(...arguments),this.direction=ze.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.step=1,this.orientation=Ve,this.mode=xs,this.keypressHandler=t=>{if(!this.readOnly)if("Home"===t.key)t.preventDefault(),this.value=""+this.min;else if("End"===t.key)t.preventDefault(),this.value=""+this.max;else if(!t.shiftKey)switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),this.increment();break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),this.decrement()}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.bottom,this.trackMinHeight=t.top,this.trackLeft=this.getBoundingClientRect().left,0===this.trackWidth&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{const e=(t?"remove":"add")+"EventListener";this[e]("keydown",this.keypressHandler),this[e]("mousedown",this.handleMouseDown),this.thumb[e]("mousedown",this.handleThumbMouseDown,{passive:!0}),this.thumb[e]("touchstart",this.handleThumbMouseDown,{passive:!0}),t&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=t=>{if(t){if(this.readOnly||this.disabled||t.defaultPrevented)return;t.target.focus()}const e=(null!==t?"add":"remove")+"EventListener";window[e]("mouseup",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove,{passive:!0}),window[e]("touchmove",this.handleMouseMove,{passive:!0}),window[e]("touchend",this.handleWindowMouseUp),this.isDragging=null!==t},this.handleMouseMove=t=>{if(this.readOnly||this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,i=this.orientation===Ve?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(i)},this.calculateNewValue=t=>{const e=fs(t,this.orientation===Ve?this.trackMinWidth:this.trackMinHeight,this.orientation===Ve?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*e+this.min;return this.convertToConstrainedValue(i)},this.handleWindowMouseUp=t=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=t=>{const e=(null!==t?"add":"remove")+"EventListener";if((null===t||!this.disabled&&!this.readOnly)&&(window[e]("mouseup",this.handleWindowMouseUp),window.document[e]("mouseleave",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove),t)){t.preventDefault(),this.setupTrackConstraints(),t.target.focus();const e=this.orientation===Ve?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(e)}},this.convertToConstrainedValue=t=>{isNaN(t)&&(t=this.min);let e=t-this.min;const i=e-Math.round(e/this.step)*(this.stepMultiplier*this.step)/this.stepMultiplier;return e=i>=Number(this.step)/2?e-i+Number(this.step):e-i,e+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){super.valueChanged(t,e),this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction),this.$emit("change")}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=""+this.min),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=""+this.max),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=""+this.step),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=Ze(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){const t=this.direction!==ze.rtl&&this.orientation!==Re?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),e=this.convertToConstrainedValue(t),i=e<Number(this.max)?""+e:""+this.max;this.value=i}decrement(){const t=this.direction!==ze.rtl&&this.orientation!==Re?Number(this.value)-Number(this.step):Number(this.value)+Number(this.step),e=this.convertToConstrainedValue(t),i=e>Number(this.min)?""+e:""+this.min;this.value=i}setThumbPositionForOrientation(t){const e=100*(1-fs(Number(this.value),Number(this.min),Number(this.max),t));this.orientation===Ve?this.position=this.isDragging?`right: ${e}%; transition: none;`:`right: ${e}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${e}%; transition: none;`:`bottom: ${e}%; transition: all 0.2s ease;`}updateStepMultiplier(){const t=this.step+"",e=this.step%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}get midpoint(){return""+this.convertToConstrainedValue((this.max+this.min)/2)}setupDefaultValue(){if("string"==typeof this.value)if(0===this.value.length)this.initialValue=this.midpoint;else{const t=parseFloat(this.value);!Number.isNaN(t)&&(t<this.min||t>this.max)&&(this.value=this.midpoint)}}}qt([tt({attribute:"readonly",mode:"boolean"})],$s.prototype,"readOnly",void 0),qt([g],$s.prototype,"direction",void 0),qt([g],$s.prototype,"isDragging",void 0),qt([g],$s.prototype,"position",void 0),qt([g],$s.prototype,"trackWidth",void 0),qt([g],$s.prototype,"trackMinWidth",void 0),qt([g],$s.prototype,"trackHeight",void 0),qt([g],$s.prototype,"trackLeft",void 0),qt([g],$s.prototype,"trackMinHeight",void 0),qt([g],$s.prototype,"valueTextFormatter",void 0),qt([tt({converter:Z})],$s.prototype,"min",void 0),qt([tt({converter:Z})],$s.prototype,"max",void 0),qt([tt({converter:Z})],$s.prototype,"step",void 0),qt([tt],$s.prototype,"orientation",void 0),qt([tt],$s.prototype,"mode",void 0);class ws extends De{}class ks extends(ri(ws)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Cs extends ks{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case"Enter":case" ":this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly),this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}checkedChanged(t,e){super.checkedChanged(t,e),this.checked?this.classList.add("checked"):this.classList.remove("checked")}}qt([tt({attribute:"readonly",mode:"boolean"})],Cs.prototype,"readOnly",void 0),qt([g],Cs.prototype,"defaultSlottedNodes",void 0);class Is extends De{}class Fs extends De{}qt([tt({mode:"boolean"})],Fs.prototype,"disabled",void 0);const Ds="horizontal";class Ts extends De{constructor(){super(...arguments),this.orientation=Ds,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>"true"===t.getAttribute("aria-disabled"),this.isFocusableElement=t=>!this.isDisabledElement(t),this.setTabs=()=>{const t=this.isHorizontal()?"gridColumn":"gridRow";this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((e,i)=>{if("tab"===e.slot){const t=this.activeTabIndex===i&&this.isFocusableElement(e);this.activeindicator&&this.isFocusableElement(e)&&(this.showActiveIndicator=!0);const o=this.tabIds[i],s=this.tabpanelIds[i];e.setAttribute("id",o),e.setAttribute("aria-selected",t?"true":"false"),e.setAttribute("aria-controls",s),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",t?"0":"-1"),t&&(this.activetab=e)}e.style.gridColumn="",e.style.gridRow="",e.style[t]=""+(i+1),this.isHorizontal()?e.classList.remove("vertical"):e.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((t,e)=>{const i=this.tabIds[e],o=this.tabpanelIds[e];t.setAttribute("id",o),t.setAttribute("aria-labelledby",i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case"ArrowLeft":t.preventDefault(),this.adjustBackward(t);break;case"ArrowRight":t.preventDefault(),this.adjustForward(t)}else switch(t.key){case"ArrowUp":t.preventDefault(),this.adjustBackward(t);break;case"ArrowDown":t.preventDefault(),this.adjustForward(t)}switch(t.key){case"Home":t.preventDefault(),this.adjust(-this.activeTabIndex);break;case"End":t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)+1:1,i===e.length&&(i=0);i<e.length&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}if(this.activetab&&i===e.indexOf(this.activetab))break;i+1>=e.length?i=0:i+=1}},this.adjustBackward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)-1:0,i=i<0?e.length-1:i;i>=0&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}i-1<0?i=e.length-1:i-=1}},this.moveToTabByIndex=(t,e)=>{const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(e=>e.id===t),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(t=>{var e;return null!==(e=t.getAttribute("id"))&&void 0!==e?e:"tab-"+Ue()})}getTabPanelIds(){return this.tabpanels.map(t=>{var e;return null!==(e=t.getAttribute("id"))&&void 0!==e?e:"panel-"+Ue()})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Ds}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",e=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1);const s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.prevActiveTabIndex+1);const n=s-o;this.activeIndicatorRef.style.transform=`${e}(${n}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1),this.activeIndicatorRef.style.transform=e+"(0px)",this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=Me(0,this.tabs.length-1,this.activeTabIndex+t),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}qt([tt],Ts.prototype,"orientation",void 0),qt([tt],Ts.prototype,"activeid",void 0),qt([g],Ts.prototype,"tabs",void 0),qt([g],Ts.prototype,"tabpanels",void 0),qt([tt({mode:"boolean"})],Ts.prototype,"activeindicator",void 0),qt([g],Ts.prototype,"activeIndicatorRef",void 0),qt([g],Ts.prototype,"showActiveIndicator",void 0),Oe(Ts,Mt);class Ss extends De{}class Os extends(ni(Ss)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const Es="none";class Vs extends Os{constructor(){super(...arguments),this.resize=Es,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}qt([tt({mode:"boolean"})],Vs.prototype,"readOnly",void 0),qt([tt],Vs.prototype,"resize",void 0),qt([tt({mode:"boolean"})],Vs.prototype,"autofocus",void 0),qt([tt({attribute:"form"})],Vs.prototype,"formId",void 0),qt([tt],Vs.prototype,"list",void 0),qt([tt({converter:Z})],Vs.prototype,"maxlength",void 0),qt([tt({converter:Z})],Vs.prototype,"minlength",void 0),qt([tt],Vs.prototype,"name",void 0),qt([tt],Vs.prototype,"placeholder",void 0),qt([tt({converter:Z,mode:"fromView"})],Vs.prototype,"cols",void 0),qt([tt({converter:Z,mode:"fromView"})],Vs.prototype,"rows",void 0),qt([tt({mode:"boolean"})],Vs.prototype,"spellcheck",void 0),qt([g],Vs.prototype,"defaultSlottedNodes",void 0),Oe(Vs,Xo);const Rs=Object.freeze({[He.ArrowUp]:{[Re]:-1},[He.ArrowDown]:{[Re]:1},[He.ArrowLeft]:{[Ve]:{[ze.ltr]:-1,[ze.rtl]:1}},[He.ArrowRight]:{[Ve]:{[ze.ltr]:1,[ze.rtl]:-1}}});class As extends De{constructor(){super(...arguments),this._activeIndex=0,this.direction=ze.ltr,this.orientation=Ve}get activeIndex(){return p.track(this,"activeIndex"),this._activeIndex}set activeIndex(t){this.$fastController.isConnected&&(this._activeIndex=Be(0,this.focusableElements.length-1,t),p.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}clickHandler(t){var e;const i=null===(e=this.focusableElements)||void 0===e?void 0:e.indexOf(t.target);return i>-1&&this.activeIndex!==i&&this.setFocusedElement(i),!0}childItemsChanged(t,e){this.$fastController.isConnected&&this.reduceFocusableElements()}connectedCallback(){super.connectedCallback(),this.direction=Ze(this)}focusinHandler(t){const e=t.relatedTarget;e&&!this.contains(e)&&this.setFocusedElement()}getDirectionalIncrementer(t){var e,i,o,s,n;return null!==(n=null!==(o=null===(i=null===(e=Rs[t])||void 0===e?void 0:e[this.orientation])||void 0===i?void 0:i[this.direction])&&void 0!==o?o:null===(s=Rs[t])||void 0===s?void 0:s[this.orientation])&&void 0!==n?n:0}keydownHandler(t){const e=t.key;if(!(e in He)||t.defaultPrevented||t.shiftKey)return!0;const i=this.getDirectionalIncrementer(e);if(!i)return!t.target.closest("[role=radiogroup]");const o=this.activeIndex+i;return this.focusableElements[o]&&t.preventDefault(),this.setFocusedElement(o),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){var t;const e=null===(t=this.focusableElements)||void 0===t?void 0:t[this.activeIndex];this.focusableElements=this.allSlottedItems.reduce(As.reduceFocusableItems,[]);const i=this.focusableElements.indexOf(e);this.activeIndex=Math.max(0,i),this.setFocusableElements()}setFocusedElement(t=this.activeIndex){var e;this.activeIndex=t,this.setFocusableElements(),null===(e=this.focusableElements[this.activeIndex])||void 0===e||e.focus()}static reduceFocusableItems(t,e){var i,o,s,n;const r="radio"===e.getAttribute("role"),a=null===(o=null===(i=e.$fastController)||void 0===i?void 0:i.definition.shadowOptions)||void 0===o?void 0:o.delegatesFocus,l=Array.from(null!==(n=null===(s=e.shadowRoot)||void 0===s?void 0:s.querySelectorAll("*"))&&void 0!==n?n:[]).some(t=>Eo(t));return e.hasAttribute("disabled")||e.hasAttribute("hidden")||!(Eo(e)||r||a||l)?e.childElementCount?t.concat(Array.from(e.children).reduce(As.reduceFocusableItems,[])):t:(t.push(e),t)}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((t,e)=>{t.tabIndex=this.activeIndex===e?0:-1})}}qt([g],As.prototype,"direction",void 0),qt([tt],As.prototype,"orientation",void 0),qt([g],As.prototype,"slottedItems",void 0),qt([g],As.prototype,"slottedLabel",void 0),qt([g],As.prototype,"childItems",void 0);class Ls{}qt([tt({attribute:"aria-labelledby"})],Ls.prototype,"ariaLabelledby",void 0),qt([tt({attribute:"aria-label"})],Ls.prototype,"ariaLabel",void 0),Oe(Ls,Xe),Oe(As,Mt,Ls);const Ps="top",Hs="right",zs="bottom",Ms="left",Bs="start",Ns="end",js="top-left",Us="top-right",qs="bottom-left",_s="bottom-right",Gs="top-start",Ws="top-end",Ks="bottom-start",Xs="bottom-end";class Ys extends De{constructor(){super(...arguments),this.anchor="",this.delay=300,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.horizontalInset="false",this.verticalInset="false",this.horizontalScaling="content",this.verticalScaling="content",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.tooltipVisible=!1,this.currentDirection=ze.ltr,this.showDelayTimer=null,this.hideDelayTimer=null,this.isAnchorHoveredFocused=!1,this.isRegionHovered=!1,this.handlePositionChange=t=>{this.classList.toggle("top","start"===this.region.verticalPosition),this.classList.toggle("bottom","end"===this.region.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.region.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.region.verticalPosition),this.classList.toggle("center-vertical","center"===this.region.verticalPosition),this.classList.toggle("left","start"===this.region.horizontalPosition),this.classList.toggle("right","end"===this.region.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.region.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.region.horizontalPosition),this.classList.toggle("center-horizontal","center"===this.region.horizontalPosition)},this.handleRegionMouseOver=t=>{this.isRegionHovered=!0},this.handleRegionMouseOut=t=>{this.isRegionHovered=!1,this.startHideDelayTimer()},this.handleAnchorMouseOver=t=>{this.tooltipVisible?this.isAnchorHoveredFocused=!0:this.startShowDelayTimer()},this.handleAnchorMouseOut=t=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.handleAnchorFocusIn=t=>{this.startShowDelayTimer()},this.handleAnchorFocusOut=t=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.startHideDelayTimer=()=>{this.clearHideDelayTimer(),this.tooltipVisible&&(this.hideDelayTimer=window.setTimeout(()=>{this.updateTooltipVisibility()},60))},this.clearHideDelayTimer=()=>{null!==this.hideDelayTimer&&(clearTimeout(this.hideDelayTimer),this.hideDelayTimer=null)},this.startShowDelayTimer=()=>{this.isAnchorHoveredFocused||(this.delay>1?null===this.showDelayTimer&&(this.showDelayTimer=window.setTimeout(()=>{this.startHover()},this.delay)):this.startHover())},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearShowDelayTimer=()=>{null!==this.showDelayTimer&&(clearTimeout(this.showDelayTimer),this.showDelayTimer=null)},this.getAnchor=()=>{const t=this.getRootNode();return t instanceof ShadowRoot?t.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&this.tooltipVisible)switch(t.key){case"Escape":this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit("dismiss")}},this.updateTooltipVisibility=()=>{if(!1===this.visible)this.hideTooltip();else{if(!0===this.visible)return void this.showTooltip();if(this.isAnchorHoveredFocused||this.isRegionHovered)return void this.showTooltip();this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=Ze(this),this.tooltipVisible=!0,document.addEventListener("keydown",this.handleDocumentKeydown),h.queueUpdate(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(this.clearHideDelayTimer(),null!==this.region&&void 0!==this.region&&(this.region.removeEventListener("positionchange",this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null,this.region.removeEventListener("mouseover",this.handleRegionMouseOver),this.region.removeEventListener("mouseout",this.handleRegionMouseOut)),document.removeEventListener("keydown",this.handleDocumentKeydown),this.tooltipVisible=!1)},this.setRegionProps=()=>{this.tooltipVisible&&(this.region.viewportElement=this.viewportElement,this.region.anchorElement=this.anchorElement,this.region.addEventListener("positionchange",this.handlePositionChange),this.region.addEventListener("mouseover",this.handleRegionMouseOver,{passive:!0}),this.region.addEventListener("mouseout",this.handleRegionMouseOut,{passive:!0}))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&(this.anchorElement=this.getAnchor())}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(t){if(this.$fastController.isConnected){if(null!=t&&(t.removeEventListener("mouseover",this.handleAnchorMouseOver),t.removeEventListener("mouseout",this.handleAnchorMouseOut),t.removeEventListener("focusin",this.handleAnchorFocusIn),t.removeEventListener("focusout",this.handleAnchorFocusOut)),null!==this.anchorElement&&void 0!==this.anchorElement){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:!0}),this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:!0}),this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:!0}),this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:!0});const t=this.anchorElement.id;null!==this.anchorElement.parentElement&&this.anchorElement.parentElement.querySelectorAll(":hover").forEach(e=>{e.id===t&&this.startShowDelayTimer()})}null!==this.region&&void 0!==this.region&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){null!==this.region&&void 0!==this.region&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearShowDelayTimer(),this.clearHideDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.position){case Ps:case zs:this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition="center";break;case Hs:case Ms:case Bs:case Ns:this.verticalDefaultPosition="center",this.horizontalDefaultPosition=this.position;break;case js:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="left";break;case Us:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="right";break;case qs:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="left";break;case _s:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="right";break;case Gs:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="start";break;case Ws:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="end";break;case Ks:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="start";break;case Xs:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="end";break;default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition="center"}}}qt([tt({mode:"boolean"})],Ys.prototype,"visible",void 0),qt([tt],Ys.prototype,"anchor",void 0),qt([tt],Ys.prototype,"delay",void 0),qt([tt],Ys.prototype,"position",void 0),qt([tt({attribute:"auto-update-mode"})],Ys.prototype,"autoUpdateMode",void 0),qt([tt({attribute:"horizontal-viewport-lock"})],Ys.prototype,"horizontalViewportLock",void 0),qt([tt({attribute:"vertical-viewport-lock"})],Ys.prototype,"verticalViewportLock",void 0),qt([g],Ys.prototype,"anchorElement",void 0),qt([g],Ys.prototype,"viewportElement",void 0),qt([g],Ys.prototype,"verticalPositioningMode",void 0),qt([g],Ys.prototype,"horizontalPositioningMode",void 0),qt([g],Ys.prototype,"horizontalInset",void 0),qt([g],Ys.prototype,"verticalInset",void 0),qt([g],Ys.prototype,"horizontalScaling",void 0),qt([g],Ys.prototype,"verticalScaling",void 0),qt([g],Ys.prototype,"verticalDefaultPosition",void 0),qt([g],Ys.prototype,"horizontalDefaultPosition",void 0),qt([g],Ys.prototype,"tooltipVisible",void 0),qt([g],Ys.prototype,"currentDirection",void 0);function Qs(t){return Ae(t)&&"treeitem"===t.getAttribute("role")}class Zs extends De{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.isNestedItem=()=>Qs(this.parentElement),this.handleExpandCollapseButtonClick=t=>{this.disabled||t.defaultPrevented||(this.expanded=!this.expanded)},this.handleFocus=t=>{this.setAttribute("tabindex","0")},this.handleBlur=t=>{this.setAttribute("tabindex","-1")}}expandedChanged(){this.$fastController.isConnected&&this.$emit("expanded-change",this)}selectedChanged(){this.$fastController.isConnected&&this.$emit("selected-change",this)}itemsChanged(t,e){this.$fastController.isConnected&&this.items.forEach(t=>{Qs(t)&&(t.nested=!0)})}static focusItem(t){t.focusable=!0,t.focus()}childItemLength(){const t=this.childItems.filter(t=>Qs(t));return t?t.length:0}}qt([tt({mode:"boolean"})],Zs.prototype,"expanded",void 0),qt([tt({mode:"boolean"})],Zs.prototype,"selected",void 0),qt([tt({mode:"boolean"})],Zs.prototype,"disabled",void 0),qt([g],Zs.prototype,"focusable",void 0),qt([g],Zs.prototype,"childItems",void 0),qt([g],Zs.prototype,"items",void 0),qt([g],Zs.prototype,"nested",void 0),qt([g],Zs.prototype,"renderCollapsedChildren",void 0),Oe(Zs,Mt);class Js extends De{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=t=>{if(!(this.slottedTreeItems.length<1))return t.target===this?(null===this.currentFocused&&(this.currentFocused=this.getValidFocusableItem()),void(null!==this.currentFocused&&Zs.focusItem(this.currentFocused))):void(this.contains(t.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=t.target))},this.handleBlur=t=>{t.target instanceof HTMLElement&&(null===t.relatedTarget||!this.contains(t.relatedTarget))&&this.setAttribute("tabindex","0")},this.handleKeyDown=t=>{if(t.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;const e=this.getVisibleNodes();switch(t.key){case"Home":return void(e.length&&Zs.focusItem(e[0]));case"End":return void(e.length&&Zs.focusItem(e[e.length-1]));case"ArrowLeft":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Zs&&e.childItemLength()>0&&e.expanded?e.expanded=!1:e instanceof Zs&&e.parentElement instanceof Zs&&Zs.focusItem(e.parentElement)}return!1;case"ArrowRight":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Zs&&e.childItemLength()>0&&!e.expanded?e.expanded=!0:e instanceof Zs&&e.childItemLength()>0&&this.focusNextNode(1,t.target)}return;case"ArrowDown":return void(t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(1,t.target));case"ArrowUp":return void(t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(-1,t.target));case"Enter":return void this.handleClick(t)}return!0},this.handleSelectedChange=t=>{if(t.defaultPrevented)return;if(!(t.target instanceof Element&&Qs(t.target)))return!0;const e=t.target;e.selected?(this.currentSelected&&this.currentSelected!==e&&(this.currentSelected.selected=!1),this.currentSelected=e):e.selected||this.currentSelected!==e||(this.currentSelected=null)},this.setItems=()=>{const t=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=t,null!==this.currentFocused&&this.contains(this.currentFocused)||(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems();this.getVisibleNodes().forEach(t=>{Qs(t)&&(t.nested=this.nested)})},this.isFocusableElement=t=>Qs(t),this.isSelectedElement=t=>t.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),h.queueUpdate(()=>{this.setItems()})}handleClick(t){if(t.defaultPrevented)return;if(!(t.target instanceof Element&&Qs(t.target)))return!0;const e=t.target;e.disabled||(e.selected=!e.selected)}focusNextNode(t,e){const i=this.getVisibleNodes();if(!i)return;const o=i[i.indexOf(e)+t];Ae(o)&&Zs.focusItem(o)}getValidFocusableItem(){const t=this.getVisibleNodes();let e=t.findIndex(this.isSelectedElement);return-1===e&&(e=t.findIndex(this.isFocusableElement)),-1!==e?t[e]:null}checkForNestedItems(){return this.slottedTreeItems.some(t=>Qs(t)&&t.querySelector("[role='treeitem']"))}getVisibleNodes(){return function(t,e){if(!t||!e||!Ae(t))return;return Array.from(t.querySelectorAll(e)).filter(t=>null!==t.offsetParent)}(this,"[role='treeitem']")||[]}}qt([tt({attribute:"render-collapsed-nodes"})],Js.prototype,"renderCollapsedNodes",void 0),qt([g],Js.prototype,"currentSelected",void 0),qt([g],Js.prototype,"slottedTreeItems",void 0);class tn extends class{constructor(t){this.listenerCache=new WeakMap,this.query=t}bind(t){const{query:e}=this,i=this.constructListener(t);i.bind(e)(),e.addListener(i),this.listenerCache.set(t,i)}unbind(t){const e=this.listenerCache.get(t);e&&(this.query.removeListener(e),this.listenerCache.delete(t))}}{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new tn(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:o}=this;o&&!e?(t.$fastController.addStyles(i),e=o):!o&&e&&(t.$fastController.removeStyles(i),e=o)}}unbind(t){super.unbind(t),t.$fastController.removeStyles(this.styles)}}const en=tn.with(window.matchMedia("(forced-colors)"));tn.with(window.matchMedia("(prefers-color-scheme: dark)")),tn.with(window.matchMedia("(prefers-color-scheme: light)"));class on{constructor(t,e,i){this.propertyName=t,this.value=e,this.styles=i}bind(t){p.getNotifier(t).subscribe(this,this.propertyName),this.handleChange(t,this.propertyName)}unbind(t){p.getNotifier(t).unsubscribe(this,this.propertyName),t.$fastController.removeStyles(this.styles)}handleChange(t,e){t[e]===this.value?t.$fastController.addStyles(this.styles):t.$fastController.removeStyles(this.styles)}}function sn(t){return`:host([hidden]){display:none}:host{display:${t}}`}const nn=function(){if("boolean"==typeof Le)return Le;if("undefined"==typeof window||!window.document||!window.document.createElement)return Le=!1,Le;const t=document.createElement("style"),e=function(){const t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}();null!==e&&t.setAttribute("nonce",e),document.head.appendChild(t);try{t.sheet.insertRule("foo:focus-visible {color:inherit}",0),Le=!0}catch(t){Le=!1}finally{document.head.removeChild(t)}return Le}()?"focus-visible":"focus";function rn(t,e,i){return isNaN(t)||t<=e?e:t>=i?i:t}function an(t,e,i){return isNaN(t)||t<=e?0:t>=i?1:t/(i-e)}function ln(t,e,i){return isNaN(t)?e:e+t*(i-e)}function cn(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:e+t*(i-e)}function hn(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}class dn{constructor(t,e,i){this.h=t,this.s=e,this.l=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.l)?null:new dn(t.h,t.s,t.l)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.l===t.l}roundToPrecision(t){return new dn(hn(this.h,t),hn(this.s,t),hn(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class un{constructor(t,e,i){this.l=t,this.a=e,this.b=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.a)||isNaN(t.b)?null:new un(t.l,t.a,t.b)}equalValue(t){return this.l===t.l&&this.a===t.a&&this.b===t.b}roundToPrecision(t){return new un(hn(this.l,t),hn(this.a,t),hn(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}}un.epsilon=216/24389,un.kappa=24389/27;class pn{constructor(t,e,i,o){this.r=t,this.g=e,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(t){return!t||isNaN(t.r)||isNaN(t.g)||isNaN(t.b)?null:new pn(t.r,t.g,t.b,t.a)}equalValue(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(ln(this.r,0,255))},${Math.round(ln(this.g,0,255))},${Math.round(ln(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(ln(this.r,0,255))},${Math.round(ln(this.g,0,255))},${Math.round(ln(this.b,0,255))},${rn(this.a,0,1)})`}roundToPrecision(t){return new pn(hn(this.r,t),hn(this.g,t),hn(this.b,t),hn(this.a,t))}clamp(){return new pn(rn(this.r,0,1),rn(this.g,0,1),rn(this.b,0,1),rn(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(t){return function(t){const e=Math.round(rn(t,0,255)).toString(16);return 1===e.length?"0"+e:e}(ln(t,0,255))}}class gn{constructor(t,e,i){this.x=t,this.y=e,this.z=i}static fromObject(t){return!t||isNaN(t.x)||isNaN(t.y)||isNaN(t.z)?null:new gn(t.x,t.y,t.z)}equalValue(t){return this.x===t.x&&this.y===t.y&&this.z===t.z}roundToPrecision(t){return new gn(hn(this.x,t),hn(this.y,t),hn(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}}function fn(t){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return function(t){return.2126*t.r+.7152*t.g+.0722*t.b}(new pn(e(t.r),e(t.g),e(t.b),1))}function mn(t,e,i){return i-e==0?0:(t-e)/(i-e)}function vn(t,e,i){return(mn(t.r,e.r,i.r)+mn(t.g,e.g,i.g)+mn(t.b,e.b,i.b))/3}function bn(t){const e=Math.max(t.r,t.g,t.b),i=Math.min(t.r,t.g,t.b),o=e-i;let s=0;0!==o&&(s=e===t.r?(t.g-t.b)/o%6*60:e===t.g?60*((t.b-t.r)/o+2):60*((t.r-t.g)/o+4)),s<0&&(s+=360);const n=(e+i)/2;let r=0;return 0!==o&&(r=o/(1-Math.abs(2*n-1))),new dn(s,r,n)}function yn(t){return function(t){function e(t){return t>un.epsilon?Math.pow(t,1/3):(un.kappa*t+16)/116}const i=e(t.x/gn.whitePoint.x),o=e(t.y/gn.whitePoint.y),s=e(t.z/gn.whitePoint.z);return new un(116*o-16,500*(i-o),200*(o-s))}(function(t){function e(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}const i=e(t.r),o=e(t.g),s=e(t.b);return new gn(.4124564*i+.3575761*o+.1804375*s,.2126729*i+.7151522*o+.072175*s,.0193339*i+.119192*o+.9503041*s)}(t))}function xn(t,e=1){return function(t,e=1){function i(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}const o=i(3.2404542*t.x-1.5371385*t.y-.4985314*t.z),s=i(-.969266*t.x+1.8760108*t.y+.041556*t.z),n=i(.0556434*t.x-.2040259*t.y+1.0572252*t.z);return new pn(o,s,n,e)}(function(t){const e=(t.l+16)/116,i=e+t.a/500,o=e-t.b/200,s=Math.pow(i,3),n=Math.pow(e,3),r=Math.pow(o,3);let a=0;a=s>un.epsilon?s:(116*i-16)/un.kappa;let l=0;l=t.l>un.epsilon*un.kappa?n:t.l/un.kappa;let c=0;return c=r>un.epsilon?r:(116*o-16)/un.kappa,a=gn.whitePoint.x*a,l=gn.whitePoint.y*l,c=gn.whitePoint.z*c,new gn(a,l,c)}(t),e)}var $n,wn;function kn(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new pn(cn(t,e.r,i.r),cn(t,e.g,i.g),cn(t,e.b,i.b),cn(t,e.a,i.a))}gn.whitePoint=new gn(.95047,1,1.08883),function(t){t[t.Burn=0]="Burn",t[t.Color=1]="Color",t[t.Darken=2]="Darken",t[t.Dodge=3]="Dodge",t[t.Lighten=4]="Lighten",t[t.Multiply=5]="Multiply",t[t.Overlay=6]="Overlay",t[t.Screen=7]="Screen"}($n||($n={})),function(t){t[t.RGB=0]="RGB",t[t.HSL=1]="HSL",t[t.HSV=2]="HSV",t[t.XYZ=3]="XYZ",t[t.LAB=4]="LAB",t[t.LCH=5]="LCH"}(wn||(wn={}));const Cn=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function In(t){const e=Cn.exec(t);if(null===e)return null;let i=e[1];if(3===i.length){const t=i.charAt(0),e=i.charAt(1),o=i.charAt(2);i=t.concat(t,e,e,o,o)}const o=parseInt(i,16);return isNaN(o)?null:new pn(an((16711680&o)>>>16,0,255),an((65280&o)>>>8,0,255),an(255&o,0,255),1)}function Fn(t,e){const i=t.relativeLuminance>e.relativeLuminance?t:e,o=t.relativeLuminance>e.relativeLuminance?e:t;return(i.relativeLuminance+.05)/(o.relativeLuminance+.05)}const Dn=Object.freeze({create:(t,e,i)=>new Tn(t,e,i),from:t=>new Tn(t.r,t.g,t.b)});class Tn extends pn{constructor(t,e,i){super(t,e,i,1),this.toColorString=this.toStringHexRGB,this.contrast=Fn.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=fn(this)}static fromObject(t){return new Tn(t.r,t.g,t.b)}}const Sn=(-.1+Math.sqrt(.21))/2;function On(t){return t.relativeLuminance<=Sn}function En(t){return On(t)?-1:1}const Vn={stepContrast:1.03,stepContrastRamp:.03,preserveSource:!1};const Rn=Object.freeze({create:function(t,e,i){return"number"==typeof t?Rn.from(Dn.create(t,e,i)):Rn.from(t)},from:function(t,e){return function(t){const e={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const i in e)if(typeof e[i]!=typeof t[i])return!1;return!0}(t)?An.from(t,e):An.from(Dn.create(t.r,t.g,t.b),e)}});class An{constructor(t,e){this.closestIndexCache=new Map,this.source=t,this.swatches=e,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(t,e,i,o){void 0===i&&(i=this.closestIndexOf(t));let s=this.swatches;const n=this.lastIndex;let r=i;void 0===o&&(o=En(t));return-1===o&&(s=this.reversedSwatches,r=n-r),function t(e,i,o=0,s=e.length-1){if(s===o)return e[o];const n=Math.floor((s-o)/2)+o;return i(e[n])?t(e,i,o,n):t(e,i,n+1,s)}(s,i=>Fn(t,i)>=e,r,n)}get(t){return this.swatches[t]||this.swatches[rn(t,0,this.lastIndex)]}closestIndexOf(t){if(this.closestIndexCache.has(t.relativeLuminance))return this.closestIndexCache.get(t.relativeLuminance);let e=this.swatches.indexOf(t);if(-1!==e)return this.closestIndexCache.set(t.relativeLuminance,e),e;const i=this.swatches.reduce((e,i)=>Math.abs(i.relativeLuminance-t.relativeLuminance)<Math.abs(e.relativeLuminance-t.relativeLuminance)?i:e);return e=this.swatches.indexOf(i),this.closestIndexCache.set(t.relativeLuminance,e),e}static saturationBump(t,e){const i=bn(t).s,o=bn(e);if(o.s<i){return function(t,e=1){const i=(1-Math.abs(2*t.l-1))*t.s,o=i*(1-Math.abs(t.h/60%2-1)),s=t.l-i/2;let n=0,r=0,a=0;return t.h<60?(n=i,r=o,a=0):t.h<120?(n=o,r=i,a=0):t.h<180?(n=0,r=i,a=o):t.h<240?(n=0,r=o,a=i):t.h<300?(n=o,r=0,a=i):t.h<360&&(n=i,r=0,a=o),new pn(n+s,r+s,a+s,e)}(new dn(o.h,i,o.l))}return e}static ramp(t){const e=t/100;return e>.5?(e-.5)/.5:2*e}static createHighResolutionPalette(t){const e=[],i=yn(pn.fromObject(t).roundToPrecision(4)),o=xn(new un(0,i.a,i.b)).clamp().roundToPrecision(4),s=xn(new un(50,i.a,i.b)).clamp().roundToPrecision(4),n=xn(new un(100,i.a,i.b)).clamp().roundToPrecision(4),r=new pn(0,0,0),a=new pn(1,1,1),l=n.equalValue(a)?0:14,c=o.equalValue(r)?0:14;for(let t=100+l;t>=0-c;t-=.5){let i;if(t<0){i=kn(t/c+1,r,o)}else if(t<=50)i=kn(An.ramp(t),o,s);else if(t<=100)i=kn(An.ramp(t),s,n);else{i=kn((t-100)/l,n,a)}i=An.saturationBump(s,i).roundToPrecision(4),e.push(Dn.from(i))}return new An(t,e)}static adjustEnd(t,e,i,o){const s=-1===o?e.swatches:e.reversedSwatches,n=t=>{const i=e.closestIndexOf(t);return 1===o?e.lastIndex-i:i};1===o&&i.reverse();const r=t(i[i.length-2]);if(hn(Fn(i[i.length-1],i[i.length-2]),2)<r){i.pop();const t=n(e.colorContrast(s[e.lastIndex],r,void 0,o))-n(i[i.length-2]);let a=1;for(let o=i.length-t-1;o<i.length;o++){const t=n(i[o]),r=o===i.length-1?e.lastIndex:t+a;i[o]=s[r],a++}}1===o&&i.reverse()}static createColorPaletteByContrast(t,e){const i=An.createHighResolutionPalette(t),o=t=>hn(e.stepContrast+e.stepContrast*(1-t.relativeLuminance)*e.stepContrastRamp,2),s=[];let n=e.preserveSource?t:i.swatches[0];s.push(n);do{const t=o(n);n=i.colorContrast(n,t,void 0,1),s.push(n)}while(n.relativeLuminance>0);if(e.preserveSource){n=t;do{const t=o(n);n=i.colorContrast(n,t,void 0,-1),s.unshift(n)}while(n.relativeLuminance<1)}return this.adjustEnd(o,i,s,-1),e.preserveSource&&this.adjustEnd(o,i,s,1),s}static from(t,e){const i=void 0===e?Vn:Object.assign(Object.assign({},Vn),e);return new An(t,Object.freeze(An.createColorPaletteByContrast(t,i)))}}const Ln=Dn.create(1,1,1),Pn=Dn.create(0,0,0),Hn=Dn.create(.5,.5,.5),zn=In("#0078D4"),Mn=Dn.create(zn.r,zn.g,zn.b);function Bn(t,e,i,o,s){const n=t=>t.contrast(Ln)>=s?Ln:Pn,r=n(t),a=n(e);return{rest:r,hover:a,active:r.relativeLuminance===a.relativeLuminance?r:n(i),focus:n(o)}}class Nn{constructor(t,e,i,o){this.toColorString=()=>this.cssGradient,this.contrast=Fn.bind(null,this),this.createCSS=this.toColorString,this.color=new pn(t,e,i),this.cssGradient=o,this.relativeLuminance=fn(this.color),this.r=t,this.g=e,this.b=i}static fromObject(t,e){return new Nn(t.r,t.g,t.b,e)}}const jn=new pn(0,0,0),Un=new pn(1,1,1);function qn(t,e,i,o,s,n,r,a,l=10,c=!1){const h=t.closestIndexOf(e);function d(i){if(c){const o=t.closestIndexOf(e),s=t.get(o),n=i.relativeLuminance<e.relativeLuminance?jn:Un,r=function(t,e,i=null){let o=0,s=i;return null!==s?o=vn(t,e,s):(s=new pn(0,0,0,1),o=vn(t,e,s),o<=0&&(s=new pn(1,1,1,1),o=vn(t,e,s))),o=Math.round(1e3*o)/1e3,new pn(s.r,s.g,s.b,o)}(In(i.toColorString()),In(s.toColorString()),n).roundToPrecision(2),a=function(t,e){if(e.a>=1)return e;if(e.a<=0)return new pn(t.r,t.g,t.b,1);const i=e.a*e.r+(1-e.a)*t.r,o=e.a*e.g+(1-e.a)*t.g,s=e.a*e.b+(1-e.a)*t.b;return new pn(i,o,s,1)}(In(e.toColorString()),r);return Dn.from(a)}return i}void 0===a&&(a=En(e));const u=h+a*i,p=u+a*(o-i),g=u+a*(s-i),f=u+a*(n-i),m=-1===a?0:100-l,v=-1===a?l:100;function b(e,i){const o=t.get(e);if(i){const i=t.get(e+a*r),s=-1===a?i:o,n=-1===a?o:i,l=`linear-gradient(${d(s).toColorString()} ${m}%, ${d(n).toColorString()} ${v}%)`;return Nn.fromObject(s,l)}return d(o)}return{rest:b(u,!0),hover:b(p,!0),active:b(g,!1),focus:b(f,!0)}}function _n(t,e,i,o,s,n,r,a){null==a&&(a=En(e));const l=t.closestIndexOf(t.colorContrast(e,i));return{rest:t.get(l+a*o),hover:t.get(l+a*s),active:t.get(l+a*n),focus:t.get(l+a*r)}}function Gn(t,e,i,o,s,n,r){const a=t.closestIndexOf(e);return null==r&&(r=En(e)),{rest:t.get(a+r*i),hover:t.get(a+r*o),active:t.get(a+r*s),focus:t.get(a+r*n)}}function Wn(t,e,i,o,s,n,r,a,l,c,h,d){return On(e)?Gn(t,e,a,l,c,h,d):Gn(t,e,i,o,s,n,r)}var Kn;function Xn(t,e){return t.closestIndexOf((i=e,Dn.create(i,i,i)));var i}function Yn(t,e,i){return t.get(Xn(t,e)+-1*i)}!function(t){t[t.LightMode=.98]="LightMode",t[t.DarkMode=.15]="DarkMode"}(Kn||(Kn={}));const{create:Qn}=po;function Zn(t){return po.create({name:t,cssCustomPropertyName:null})}const Jn=Qn("direction").withDefault(ze.ltr),tr=Qn("disabled-opacity").withDefault(.3),er=Qn("base-height-multiplier").withDefault(8),ir=Qn("base-horizontal-spacing-multiplier").withDefault(3),or=Qn("density").withDefault(0),sr=Qn("design-unit").withDefault(4),nr=Qn("control-corner-radius").withDefault(4),rr=Qn("layer-corner-radius").withDefault(8),ar=Qn("stroke-width").withDefault(1),lr=Qn("focus-stroke-width").withDefault(2),cr=Qn("body-font").withDefault('"Segoe UI Variable", "Segoe UI", sans-serif'),hr=Qn("font-weight").withDefault(400);function dr(t){return e=>{const i=t.getValueFor(e),o=hr.getValueFor(e);if(i.endsWith("px")){const t=Number.parseFloat(i.replace("px",""));if(t<=12)return`"wght" ${o}, "opsz" 8`;if(t>24)return`"wght" ${o}, "opsz" 36`}return`"wght" ${o}, "opsz" 10.5`}}const ur=Qn("type-ramp-base-font-size").withDefault("14px"),pr=Qn("type-ramp-base-line-height").withDefault("20px"),gr=Qn("type-ramp-base-font-variations").withDefault(dr(ur)),fr=Qn("type-ramp-minus-1-font-size").withDefault("12px"),mr=Qn("type-ramp-minus-1-line-height").withDefault("16px"),vr=Qn("type-ramp-minus-1-font-variations").withDefault(dr(fr)),br=Qn("type-ramp-minus-2-font-size").withDefault("10px"),yr=Qn("type-ramp-minus-2-line-height").withDefault("14px"),xr=Qn("type-ramp-minus-2-font-variations").withDefault(dr(br)),$r=Qn("type-ramp-plus-1-font-size").withDefault("16px"),wr=Qn("type-ramp-plus-1-line-height").withDefault("22px"),kr=Qn("type-ramp-plus-1-font-variations").withDefault(dr($r)),Cr=Qn("type-ramp-plus-2-font-size").withDefault("20px"),Ir=Qn("type-ramp-plus-2-line-height").withDefault("26px"),Fr=Qn("type-ramp-plus-2-font-variations").withDefault(dr(Cr)),Dr=Qn("type-ramp-plus-3-font-size").withDefault("24px"),Tr=Qn("type-ramp-plus-3-line-height").withDefault("32px"),Sr=Qn("type-ramp-plus-3-font-variations").withDefault(dr(Dr)),Or=Qn("type-ramp-plus-4-font-size").withDefault("28px"),Er=Qn("type-ramp-plus-4-line-height").withDefault("36px"),Vr=Qn("type-ramp-plus-4-font-variations").withDefault(dr(Or)),Rr=Qn("type-ramp-plus-5-font-size").withDefault("32px"),Ar=Qn("type-ramp-plus-5-line-height").withDefault("40px"),Lr=Qn("type-ramp-plus-5-font-variations").withDefault(dr(Rr)),Pr=Qn("type-ramp-plus-6-font-size").withDefault("40px"),Hr=Qn("type-ramp-plus-6-line-height").withDefault("52px"),zr=Qn("type-ramp-plus-6-font-variations").withDefault(dr(Pr)),Mr=Qn("base-layer-luminance").withDefault(Kn.LightMode),Br=Zn("accent-fill-rest-delta").withDefault(0),Nr=Zn("accent-fill-hover-delta").withDefault(-2),jr=Zn("accent-fill-active-delta").withDefault(-5),Ur=Zn("accent-fill-focus-delta").withDefault(0),qr=Zn("accent-foreground-rest-delta").withDefault(0),_r=Zn("accent-foreground-hover-delta").withDefault(3),Gr=Zn("accent-foreground-active-delta").withDefault(-8),Wr=Zn("accent-foreground-focus-delta").withDefault(0),Kr=Zn("neutral-fill-rest-delta").withDefault(-1),Xr=Zn("neutral-fill-hover-delta").withDefault(1),Yr=Zn("neutral-fill-active-delta").withDefault(0),Qr=Zn("neutral-fill-focus-delta").withDefault(0),Zr=Zn("neutral-fill-input-rest-delta").withDefault(-1),Jr=Zn("neutral-fill-input-hover-delta").withDefault(1),ta=Zn("neutral-fill-input-active-delta").withDefault(0),ea=Zn("neutral-fill-input-focus-delta").withDefault(-2),ia=Zn("neutral-fill-input-alt-rest-delta").withDefault(2),oa=Zn("neutral-fill-input-alt-hover-delta").withDefault(4),sa=Zn("neutral-fill-input-alt-active-delta").withDefault(6),na=Zn("neutral-fill-input-alt-focus-delta").withDefault(2),ra=Zn("neutral-fill-layer-rest-delta").withDefault(-2),aa=Zn("neutral-fill-layer-hover-delta").withDefault(-3),la=Zn("neutral-fill-layer-active-delta").withDefault(-3),ca=Zn("neutral-fill-layer-alt-rest-delta").withDefault(-1),ha=Zn("neutral-fill-secondary-rest-delta").withDefault(3),da=Zn("neutral-fill-secondary-hover-delta").withDefault(2),ua=Zn("neutral-fill-secondary-active-delta").withDefault(1),pa=Zn("neutral-fill-secondary-focus-delta").withDefault(3),ga=Zn("neutral-fill-stealth-rest-delta").withDefault(0),fa=Zn("neutral-fill-stealth-hover-delta").withDefault(3),ma=Zn("neutral-fill-stealth-active-delta").withDefault(2),va=Zn("neutral-fill-stealth-focus-delta").withDefault(0),ba=Zn("neutral-fill-strong-rest-delta").withDefault(0),ya=Zn("neutral-fill-strong-hover-delta").withDefault(8),xa=Zn("neutral-fill-strong-active-delta").withDefault(-5),$a=Zn("neutral-fill-strong-focus-delta").withDefault(0),wa=Zn("neutral-stroke-rest-delta").withDefault(8),ka=Zn("neutral-stroke-hover-delta").withDefault(12),Ca=Zn("neutral-stroke-active-delta").withDefault(6),Ia=Zn("neutral-stroke-focus-delta").withDefault(8),Fa=Zn("neutral-stroke-control-rest-delta").withDefault(3),Da=Zn("neutral-stroke-control-hover-delta").withDefault(5),Ta=Zn("neutral-stroke-control-active-delta").withDefault(5),Sa=Zn("neutral-stroke-control-focus-delta").withDefault(5),Oa=Zn("neutral-stroke-divider-rest-delta").withDefault(4),Ea=Zn("neutral-stroke-layer-rest-delta").withDefault(3),Va=Zn("neutral-stroke-layer-hover-delta").withDefault(3),Ra=Zn("neutral-stroke-layer-active-delta").withDefault(3),Aa=Zn("neutral-stroke-strong-hover-delta").withDefault(0),La=Zn("neutral-stroke-strong-active-delta").withDefault(0),Pa=Zn("neutral-stroke-strong-focus-delta").withDefault(0),Ha=Qn("neutral-base-color").withDefault(Hn),za=Zn("neutral-palette").withDefault(t=>Rn.from(Ha.getValueFor(t))),Ma=Qn("accent-base-color").withDefault(Mn),Ba=Zn("accent-palette").withDefault(t=>Rn.from(Ma.getValueFor(t))),Na=Zn("neutral-layer-card-container-recipe").withDefault({evaluate:t=>Yn(za.getValueFor(t),Mr.getValueFor(t),ra.getValueFor(t))}),ja=Qn("neutral-layer-card-container").withDefault(t=>Na.getValueFor(t).evaluate(t)),Ua=Zn("neutral-layer-floating-recipe").withDefault({evaluate:t=>function(t,e,i){return t.get(Xn(t,e)+i)}(za.getValueFor(t),Mr.getValueFor(t),ra.getValueFor(t))}),qa=Qn("neutral-layer-floating").withDefault(t=>Ua.getValueFor(t).evaluate(t)),_a=Zn("neutral-layer-1-recipe").withDefault({evaluate:t=>function(t,e){return t.get(Xn(t,e))}(za.getValueFor(t),Mr.getValueFor(t))}),Ga=Qn("neutral-layer-1").withDefault(t=>_a.getValueFor(t).evaluate(t)),Wa=Zn("neutral-layer-2-recipe").withDefault({evaluate:t=>Yn(za.getValueFor(t),Mr.getValueFor(t),ra.getValueFor(t))}),Ka=Qn("neutral-layer-2").withDefault(t=>Wa.getValueFor(t).evaluate(t)),Xa=Zn("neutral-layer-3-recipe").withDefault({evaluate:t=>function(t,e,i){return t.get(Xn(t,e)+-1*i*2)}(za.getValueFor(t),Mr.getValueFor(t),ra.getValueFor(t))}),Ya=Qn("neutral-layer-3").withDefault(t=>Xa.getValueFor(t).evaluate(t)),Qa=Zn("neutral-layer-4-recipe").withDefault({evaluate:t=>function(t,e,i){return t.get(Xn(t,e)+-1*i*3)}(za.getValueFor(t),Mr.getValueFor(t),ra.getValueFor(t))}),Za=Qn("neutral-layer-4").withDefault(t=>Qa.getValueFor(t).evaluate(t)),Ja=Qn("fill-color").withDefault(t=>Ga.getValueFor(t));var tl;!function(t){t[t.normal=4.5]="normal",t[t.large=3]="large"}(tl||(tl={}));const el=Zn("accent-fill-recipe").withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a,l,c,h,d,u,p){return On(e)?_n(t,e,l,c,h,d,u,p):_n(t,e,i,o,s,n,r,a)}(Ba.getValueFor(t),e||Ja.getValueFor(t),5,Br.getValueFor(t),Nr.getValueFor(t),jr.getValueFor(t),Ur.getValueFor(t),void 0,8,Br.getValueFor(t),Nr.getValueFor(t),jr.getValueFor(t),Ur.getValueFor(t),void 0)}),il=Qn("accent-fill-rest").withDefault(t=>el.getValueFor(t).evaluate(t).rest),ol=Qn("accent-fill-hover").withDefault(t=>el.getValueFor(t).evaluate(t).hover),sl=Qn("accent-fill-active").withDefault(t=>el.getValueFor(t).evaluate(t).active),nl=Qn("accent-fill-focus").withDefault(t=>el.getValueFor(t).evaluate(t).focus),rl=Zn("foreground-on-accent-recipe").withDefault({evaluate:t=>Bn(il.getValueFor(t),ol.getValueFor(t),sl.getValueFor(t),nl.getValueFor(t),tl.normal)}),al=Qn("foreground-on-accent-rest").withDefault(t=>rl.getValueFor(t).evaluate(t).rest),ll=Qn("foreground-on-accent-hover").withDefault(t=>rl.getValueFor(t).evaluate(t).hover),cl=Qn("foreground-on-accent-active").withDefault(t=>rl.getValueFor(t).evaluate(t).active),hl=Qn("foreground-on-accent-focus").withDefault(t=>rl.getValueFor(t).evaluate(t).focus),dl=Zn("accent-foreground-recipe").withDefault({evaluate:(t,e)=>_n(Ba.getValueFor(t),e||Ja.getValueFor(t),9.5,qr.getValueFor(t),_r.getValueFor(t),Gr.getValueFor(t),Wr.getValueFor(t))}),ul=Qn("accent-foreground-rest").withDefault(t=>dl.getValueFor(t).evaluate(t).rest),pl=Qn("accent-foreground-hover").withDefault(t=>dl.getValueFor(t).evaluate(t).hover),gl=Qn("accent-foreground-active").withDefault(t=>dl.getValueFor(t).evaluate(t).active),fl=Qn("accent-foreground-focus").withDefault(t=>dl.getValueFor(t).evaluate(t).focus),ml=Zn("accent-stroke-control-recipe").withDefault({evaluate:(t,e)=>qn(za.getValueFor(t),e||Ja.getValueFor(t),-3,-3,-3,-3,10,1,void 0,!0)}),vl=Qn("accent-stroke-control-rest").withDefault(t=>ml.getValueFor(t).evaluate(t,il.getValueFor(t)).rest),bl=Qn("accent-stroke-control-hover").withDefault(t=>ml.getValueFor(t).evaluate(t,ol.getValueFor(t)).hover),yl=Qn("accent-stroke-control-active").withDefault(t=>ml.getValueFor(t).evaluate(t,sl.getValueFor(t)).active),xl=Qn("accent-stroke-control-focus").withDefault(t=>ml.getValueFor(t).evaluate(t,nl.getValueFor(t)).focus),$l=Zn("neutral-fill-recipe").withDefault({evaluate:(t,e)=>Wn(za.getValueFor(t),e||Ja.getValueFor(t),Kr.getValueFor(t),Xr.getValueFor(t),Yr.getValueFor(t),Qr.getValueFor(t),void 0,2,3,1,2,void 0)}),wl=Qn("neutral-fill-rest").withDefault(t=>$l.getValueFor(t).evaluate(t).rest),kl=Qn("neutral-fill-hover").withDefault(t=>$l.getValueFor(t).evaluate(t).hover),Cl=Qn("neutral-fill-active").withDefault(t=>$l.getValueFor(t).evaluate(t).active),Il=Qn("neutral-fill-focus").withDefault(t=>$l.getValueFor(t).evaluate(t).focus),Fl=Zn("neutral-fill-input-recipe").withDefault({evaluate:(t,e)=>Wn(za.getValueFor(t),e||Ja.getValueFor(t),Zr.getValueFor(t),Jr.getValueFor(t),ta.getValueFor(t),ea.getValueFor(t),void 0,2,3,1,0,void 0)}),Dl=Qn("neutral-fill-input-rest").withDefault(t=>Fl.getValueFor(t).evaluate(t).rest),Tl=Qn("neutral-fill-input-hover").withDefault(t=>Fl.getValueFor(t).evaluate(t).hover),Sl=Qn("neutral-fill-input-active").withDefault(t=>Fl.getValueFor(t).evaluate(t).active),Ol=Qn("neutral-fill-input-focus").withDefault(t=>Fl.getValueFor(t).evaluate(t).focus),El=Zn("neutral-fill-input-alt-recipe").withDefault({evaluate:(t,e)=>Wn(za.getValueFor(t),e||Ja.getValueFor(t),ia.getValueFor(t),oa.getValueFor(t),sa.getValueFor(t),na.getValueFor(t),1,ia.getValueFor(t),ia.getValueFor(t)-oa.getValueFor(t),ia.getValueFor(t)-sa.getValueFor(t),na.getValueFor(t),1)}),Vl=Qn("neutral-fill-input-alt-rest").withDefault(t=>El.getValueFor(t).evaluate(t).rest),Rl=Qn("neutral-fill-input-alt-hover").withDefault(t=>El.getValueFor(t).evaluate(t).hover),Al=Qn("neutral-fill-input-alt-active").withDefault(t=>El.getValueFor(t).evaluate(t).active),Ll=Qn("neutral-fill-input-alt-focus").withDefault(t=>El.getValueFor(t).evaluate(t).focus),Pl=Zn("neutral-fill-layer-recipe").withDefault({evaluate:(t,e)=>Gn(za.getValueFor(t),e||Ja.getValueFor(t),ra.getValueFor(t),aa.getValueFor(t),la.getValueFor(t),ra.getValueFor(t),1)}),Hl=Qn("neutral-fill-layer-rest").withDefault(t=>Pl.getValueFor(t).evaluate(t).rest),zl=Qn("neutral-fill-layer-hover").withDefault(t=>Pl.getValueFor(t).evaluate(t).hover),Ml=Qn("neutral-fill-layer-active").withDefault(t=>Pl.getValueFor(t).evaluate(t).active),Bl=Zn("neutral-fill-layer-alt-recipe").withDefault({evaluate:(t,e)=>Gn(za.getValueFor(t),e||Ja.getValueFor(t),ca.getValueFor(t),ca.getValueFor(t),ca.getValueFor(t),ca.getValueFor(t))}),Nl=Qn("neutral-fill-layer-alt-rest").withDefault(t=>Bl.getValueFor(t).evaluate(t).rest),jl=Zn("neutral-fill-secondary-recipe").withDefault({evaluate:(t,e)=>Gn(za.getValueFor(t),e||Ja.getValueFor(t),ha.getValueFor(t),da.getValueFor(t),ua.getValueFor(t),pa.getValueFor(t))}),Ul=Qn("neutral-fill-secondary-rest").withDefault(t=>jl.getValueFor(t).evaluate(t).rest),ql=Qn("neutral-fill-secondary-hover").withDefault(t=>jl.getValueFor(t).evaluate(t).hover),_l=Qn("neutral-fill-secondary-active").withDefault(t=>jl.getValueFor(t).evaluate(t).active),Gl=Qn("neutral-fill-secondary-focus").withDefault(t=>jl.getValueFor(t).evaluate(t).focus),Wl=Zn("neutral-fill-stealth-recipe").withDefault({evaluate:(t,e)=>Gn(za.getValueFor(t),e||Ja.getValueFor(t),ga.getValueFor(t),fa.getValueFor(t),ma.getValueFor(t),va.getValueFor(t))}),Kl=Qn("neutral-fill-stealth-rest").withDefault(t=>Wl.getValueFor(t).evaluate(t).rest),Xl=Qn("neutral-fill-stealth-hover").withDefault(t=>Wl.getValueFor(t).evaluate(t).hover),Yl=Qn("neutral-fill-stealth-active").withDefault(t=>Wl.getValueFor(t).evaluate(t).active),Ql=Qn("neutral-fill-stealth-focus").withDefault(t=>Wl.getValueFor(t).evaluate(t).focus),Zl=Zn("neutral-fill-strong-recipe").withDefault({evaluate:(t,e)=>_n(za.getValueFor(t),e||Ja.getValueFor(t),4.5,ba.getValueFor(t),ya.getValueFor(t),xa.getValueFor(t),$a.getValueFor(t))}),Jl=Qn("neutral-fill-strong-rest").withDefault(t=>Zl.getValueFor(t).evaluate(t).rest),tc=Qn("neutral-fill-strong-hover").withDefault(t=>Zl.getValueFor(t).evaluate(t).hover),ec=Qn("neutral-fill-strong-active").withDefault(t=>Zl.getValueFor(t).evaluate(t).active),ic=Qn("neutral-fill-strong-focus").withDefault(t=>Zl.getValueFor(t).evaluate(t).focus),oc=Zn("neutral-foreground-recipe").withDefault({evaluate:(t,e)=>_n(za.getValueFor(t),e||Ja.getValueFor(t),16,0,-19,-30,0)}),sc=Qn("neutral-foreground-rest").withDefault(t=>oc.getValueFor(t).evaluate(t).rest),nc=Qn("neutral-foreground-hover").withDefault(t=>oc.getValueFor(t).evaluate(t).hover),rc=Qn("neutral-foreground-active").withDefault(t=>oc.getValueFor(t).evaluate(t).active),ac=Qn("neutral-foreground-focus").withDefault(t=>oc.getValueFor(t).evaluate(t).focus),lc=Zn("neutral-foreground-hint-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){return t.colorContrast(e,i)}(za.getValueFor(t),e||Ja.getValueFor(t),4.5)}),cc=Qn("neutral-foreground-hint").withDefault(t=>lc.getValueFor(t).evaluate(t)),hc=Zn("neutral-stroke-recipe").withDefault({evaluate:(t,e)=>Gn(za.getValueFor(t),e||Ja.getValueFor(t),wa.getValueFor(t),ka.getValueFor(t),Ca.getValueFor(t),Ia.getValueFor(t))}),dc=Qn("neutral-stroke-rest").withDefault(t=>hc.getValueFor(t).evaluate(t).rest),uc=Qn("neutral-stroke-hover").withDefault(t=>hc.getValueFor(t).evaluate(t).hover),pc=Qn("neutral-stroke-active").withDefault(t=>hc.getValueFor(t).evaluate(t).active),gc=Qn("neutral-stroke-focus").withDefault(t=>hc.getValueFor(t).evaluate(t).focus),fc=Zn("neutral-stroke-control-recipe").withDefault({evaluate:(t,e)=>qn(za.getValueFor(t),e||Ja.getValueFor(t),Fa.getValueFor(t),Da.getValueFor(t),Ta.getValueFor(t),Sa.getValueFor(t),5)}),mc=Qn("neutral-stroke-control-rest").withDefault(t=>fc.getValueFor(t).evaluate(t).rest),vc=Qn("neutral-stroke-control-hover").withDefault(t=>fc.getValueFor(t).evaluate(t).hover),bc=Qn("neutral-stroke-control-active").withDefault(t=>fc.getValueFor(t).evaluate(t).active),yc=Qn("neutral-stroke-control-focus").withDefault(t=>fc.getValueFor(t).evaluate(t).focus),xc=Zn("neutral-stroke-divider-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){return t.get(t.closestIndexOf(e)+En(e)*i)}(za.getValueFor(t),e||Ja.getValueFor(t),Oa.getValueFor(t))}),$c=Qn("neutral-stroke-divider-rest").withDefault(t=>xc.getValueFor(t).evaluate(t)),wc=Zn("neutral-stroke-input-recipe").withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a){const l=t.closestIndexOf(e),c=En(e),h=l+c*i,d=h+c*(o-i),u=h+c*(s-i),p=h+c*(n-i),g=`calc(100% - ${a})`;function f(e,i){const o=t.get(e);if(i){const i=t.get(e+c*r),s=`linear-gradient(${o.toColorString()} ${g}, ${i.toColorString()} ${g}, ${i.toColorString()})`;return Nn.fromObject(o,s)}return o}return{rest:f(h,!0),hover:f(d,!0),active:f(u,!1),focus:f(p,!0)}}(za.getValueFor(t),e||Ja.getValueFor(t),Fa.getValueFor(t),Da.getValueFor(t),Ta.getValueFor(t),Sa.getValueFor(t),20,ar.getValueFor(t)+"px")}),kc=Qn("neutral-stroke-input-rest").withDefault(t=>wc.getValueFor(t).evaluate(t).rest),Cc=Qn("neutral-stroke-input-hover").withDefault(t=>wc.getValueFor(t).evaluate(t).hover),Ic=Qn("neutral-stroke-input-active").withDefault(t=>wc.getValueFor(t).evaluate(t).active),Fc=Qn("neutral-stroke-input-focus").withDefault(t=>wc.getValueFor(t).evaluate(t).focus),Dc=Zn("neutral-stroke-layer-recipe").withDefault({evaluate:(t,e)=>Gn(za.getValueFor(t),e||Ja.getValueFor(t),Ea.getValueFor(t),Va.getValueFor(t),Ra.getValueFor(t),Ea.getValueFor(t))}),Tc=Qn("neutral-stroke-layer-rest").withDefault(t=>Dc.getValueFor(t).evaluate(t).rest),Sc=Qn("neutral-stroke-layer-hover").withDefault(t=>Dc.getValueFor(t).evaluate(t).hover),Oc=Qn("neutral-stroke-layer-active").withDefault(t=>Dc.getValueFor(t).evaluate(t).active),Ec=Zn("neutral-stroke-strong-recipe").withDefault({evaluate:(t,e)=>_n(za.getValueFor(t),e||Ja.getValueFor(t),5.5,0,Aa.getValueFor(t),La.getValueFor(t),Pa.getValueFor(t))}),Vc=Qn("neutral-stroke-strong-rest").withDefault(t=>Ec.getValueFor(t).evaluate(t).rest),Rc=Qn("neutral-stroke-strong-hover").withDefault(t=>Ec.getValueFor(t).evaluate(t).hover),Ac=Qn("neutral-stroke-strong-active").withDefault(t=>Ec.getValueFor(t).evaluate(t).active),Lc=Qn("neutral-stroke-strong-focus").withDefault(t=>Ec.getValueFor(t).evaluate(t).focus),Pc=Zn("focus-stroke-outer-recipe").withDefault({evaluate:t=>(za.getValueFor(t),On(Ja.getValueFor(t))?Ln:Pn)}),Hc=Qn("focus-stroke-outer").withDefault(t=>Pc.getValueFor(t).evaluate(t)),zc=Zn("focus-stroke-inner-recipe").withDefault({evaluate:t=>{return Ba.getValueFor(t),e=Ja.getValueFor(t),Hc.getValueFor(t),On(e)?Pn:Ln;var e}}),Mc=Qn("focus-stroke-inner").withDefault(t=>zc.getValueFor(t).evaluate(t)),Bc=Zn("foreground-on-accent-large-recipe").withDefault({evaluate:t=>Bn(il.getValueFor(t),ol.getValueFor(t),sl.getValueFor(t),nl.getValueFor(t),tl.large)}),Nc=Qn("foreground-on-accent-rest-large").withDefault(t=>Bc.getValueFor(t).evaluate(t).rest),jc=Qn("foreground-on-accent-hover-large").withDefault(t=>Bc.getValueFor(t).evaluate(t,ol.getValueFor(t)).hover),Uc=Qn("foreground-on-accent-active-large").withDefault(t=>Bc.getValueFor(t).evaluate(t,sl.getValueFor(t)).active),qc=Qn("foreground-on-accent-focus-large").withDefault(t=>Bc.getValueFor(t).evaluate(t,nl.getValueFor(t)).focus),_c=Qn("neutral-fill-inverse-rest-delta").withDefault(0),Gc=Qn("neutral-fill-inverse-hover-delta").withDefault(-3),Wc=Qn("neutral-fill-inverse-active-delta").withDefault(7),Kc=Qn("neutral-fill-inverse-focus-delta").withDefault(0);const Xc=Zn("neutral-fill-inverse-recipe").withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=En(e),a=t.closestIndexOf(t.colorContrast(e,14)),l=a+r*Math.abs(i-o);let c,h;return(1===r?i<o:r*i>r*o)?(c=a,h=l):(c=l,h=a),{rest:t.get(c),hover:t.get(h),active:t.get(c+r*s),focus:t.get(c+r*n)}}(za.getValueFor(t),e||Ja.getValueFor(t),_c.getValueFor(t),Gc.getValueFor(t),Wc.getValueFor(t),Kc.getValueFor(t))}),Yc=Qn("neutral-fill-inverse-rest").withDefault(t=>Xc.getValueFor(t).evaluate(t).rest),Qc=Qn("neutral-fill-inverse-hover").withDefault(t=>Xc.getValueFor(t).evaluate(t).hover),Zc=Qn("neutral-fill-inverse-active").withDefault(t=>Xc.getValueFor(t).evaluate(t).active),Jc=Qn("neutral-fill-inverse-focus").withDefault(t=>Xc.getValueFor(t).evaluate(t).focus),th=nr,eh=rr,ih=ar,oh=lr,sh=_c,nh=Gc,rh=Wc,ah=Kc,lh=ra,ch=ba,hh=ya,dh=xa,uh=$a,ph=Oa,gh=Ga,fh=Ka,mh=Ya,vh=Za,bh=al,yh=Nc,xh=$c,$h=Hl,wh=Yc,kh=Qc,Ch=Zc,Ih=Jc,Fh=Jl,Dh=tc,Th=ec,Sh=ic,Oh=Hc,Eh=Mc,Vh=dc,Rh=uc,Ah=pc,Lh=gc,Ph=ft`
|
|
21
|
+
var wo=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],ko=wo.join(","),Co="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Io=function(t){return"INPUT"===t.tagName},Fo=function(t){return function(t){return Io(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,i=t.form||t.ownerDocument,o=function(t){return i.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var s=function(t,e){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===e)return t[i]}(e,t.form);return!s||s===t}(t)},Do=function(t,e){return!(e.disabled||function(t){return Io(t)&&"hidden"===t.type}(e)||function(t,e){if("hidden"===getComputedStyle(t).visibility)return!0;var i=Co.call(t,"details>summary:first-of-type")?t.parentElement:t;if(Co.call(i,"details:not([open]) *"))return!0;if(e&&"full"!==e){if("non-zero-area"===e){var o=t.getBoundingClientRect(),s=o.width,n=o.height;return 0===s&&0===n}}else for(;t;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(e,t.displayCheck)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e))},To=function(t,e){return!(!Do(t,e)||Fo(e)||function(t){var e=parseInt(t.getAttribute("tabindex"),10);return isNaN(e)?function(t){return"true"===t.contentEditable}(t)?0:"AUDIO"!==t.nodeName&&"VIDEO"!==t.nodeName&&"DETAILS"!==t.nodeName||null!==t.getAttribute("tabindex")?t.tabIndex:0:e}(e)<0)},So=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Co.call(t,ko)&&To(e,t)},Oo=wo.concat("iframe").join(","),Eo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Co.call(t,Oo)&&Do(e,t)};class Vo extends De{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.trapFocusChanged=()=>{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&!this.hidden)switch(t.key){case"Escape":this.dismiss(),t.preventDefault();break;case"Tab":this.handleTabKeyDown(t)}},this.handleDocumentFocus=t=>{!t.defaultPrevented&&this.shouldForceFocus(t.target)&&(this.focusFirstElement(),t.preventDefault())},this.handleTabKeyDown=t=>{if(!this.trapFocus||this.hidden)return;const e=this.getTabQueueBounds();return 0!==e.length?1===e.length?(e[0].focus(),void t.preventDefault()):void(t.shiftKey&&t.target===e[0]?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||t.target!==e[e.length-1]||(e[0].focus(),t.preventDefault())):void 0},this.getTabQueueBounds=()=>Vo.reduceTabbableItems([],this),this.focusFirstElement=()=>{const t=this.getTabQueueBounds();t.length>0?t[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=t=>this.isTrappingFocus&&!this.contains(t),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=t=>{const e=void 0===t?this.shouldTrapFocus():t;e&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),h.queueUpdate(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!e&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss"),this.$emit("cancel")}show(){this.hidden=!1}hide(){this.hidden=!0,this.$emit("close")}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=p.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(t,e){switch(e){case"hidden":this.updateTrapFocus()}}static reduceTabbableItems(t,e){return"-1"===e.getAttribute("tabindex")?t:So(e)||Vo.isFocusableFastElement(e)&&Vo.hasTabbableShadow(e)?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(Vo.reduceTabbableItems,[])):t}static isFocusableFastElement(t){var e,i;return!!(null===(i=null===(e=t.$fastController)||void 0===e?void 0:e.definition.shadowOptions)||void 0===i?void 0:i.delegatesFocus)}static hasTabbableShadow(t){var e,i;return Array.from(null!==(i=null===(e=t.shadowRoot)||void 0===e?void 0:e.querySelectorAll("*"))&&void 0!==i?i:[]).some(t=>So(t))}}qt([tt({mode:"boolean"})],Vo.prototype,"modal",void 0),qt([tt({mode:"boolean"})],Vo.prototype,"hidden",void 0),qt([tt({attribute:"trap-focus",mode:"boolean"})],Vo.prototype,"trapFocus",void 0),qt([tt({attribute:"aria-describedby"})],Vo.prototype,"ariaDescribedby",void 0),qt([tt({attribute:"aria-labelledby"})],Vo.prototype,"ariaLabelledby",void 0),qt([tt({attribute:"aria-label"})],Vo.prototype,"ariaLabel",void 0);const Ro="separator";class Ao extends De{constructor(){super(...arguments),this.role=Ro,this.orientation=Ve}}qt([tt],Ao.prototype,"role",void 0),qt([tt],Ao.prototype,"orientation",void 0);const Lo="next",Po="previous";class zo extends De{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=Lo}keyupHandler(t){if(!this.hiddenFromAT){const e=t.key;"Enter"!==e&&"Space"!==e||this.$emit("click",t),"Escape"===e&&this.blur()}}}qt([tt({mode:"boolean"})],zo.prototype,"disabled",void 0),qt([tt({attribute:"aria-hidden",converter:Q})],zo.prototype,"hiddenFromAT",void 0),qt([tt],zo.prototype,"direction",void 0);class Ho extends zi{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var t;return null===(t=this.options)||void 0===t?void 0:t.filter(t=>t.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(t,e){var i,o;this.ariaActiveDescendant=null!==(o=null===(i=this.options[e])||void 0===i?void 0:i.id)&&void 0!==o?o:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const t=this.activeOption;t&&(t.checked=!0)}checkFirstOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((t,e)=>{t.checked=Ne(e,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((t,e)=>{t.checked=Ne(e,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((t,e)=>{t.checked=Ne(e,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}checkPreviousOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),1===this.checkedOptions.length&&(this.rangeStartIndex+=1),this.options.forEach((t,e)=>{t.checked=Ne(e,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(t){var e;if(!this.multiple)return super.clickHandler(t);const i=null===(e=t.target)||void 0===e?void 0:e.closest("[role=option]");return i&&!i.disabled?(this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(i),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0):void 0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(t){if(!this.multiple)return super.focusinHandler(t);this.shouldSkipFocus||t.target!==t.currentTarget||(this.uncheckAllOptions(),-1===this.activeIndex&&(this.activeIndex=-1!==this.firstSelectedOptionIndex?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(t){this.multiple&&this.uncheckAllOptions()}keydownHandler(t){if(!this.multiple)return super.keydownHandler(t);if(this.disabled)return!0;const{key:e,shiftKey:i}=t;switch(this.shouldSkipFocus=!1,e){case"Home":return void this.checkFirstOption(i);case"ArrowDown":return void this.checkNextOption(i);case"ArrowUp":return void this.checkPreviousOption(i);case"End":return void this.checkLastOption(i);case"Tab":return this.focusAndScrollOptionIntoView(),!0;case"Escape":return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case" ":if(t.preventDefault(),this.typeAheadExpired)return void this.toggleSelectedForAllCheckedOptions();default:return 1===e.length&&this.handleTypeAhead(""+e),!0}}mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}multipleChanged(t,e){var i;this.ariaMultiSelectable=e?"true":null,null===(i=this.options)||void 0===i||i.forEach(t=>{t.checked=!e&&void 0}),this.setSelectedOptions()}setSelectedOptions(){this.multiple?this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(t=>t.selected),this.focusAndScrollOptionIntoView()):super.setSelectedOptions()}sizeChanged(t,e){var i;const o=Math.max(0,parseInt(null!==(i=null==e?void 0:e.toFixed())&&void 0!==i?i:"",10));o!==e&&h.queueUpdate(()=>{this.size=o})}toggleSelectedForAllCheckedOptions(){const t=this.checkedOptions.filter(t=>!t.disabled),e=!t.every(t=>t.selected);t.forEach(t=>t.selected=e),this.selectedIndex=this.options.indexOf(t[t.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(t,e){if(this.multiple){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches(),e=this.options.indexOf(t[0]);e>-1&&(this.activeIndex=e,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}else super.typeaheadBufferChanged(t,e)}uncheckAllOptions(t=!1){this.options.forEach(t=>t.checked=!this.multiple&&void 0),t||(this.rangeStartIndex=-1)}}qt([g],Ho.prototype,"activeIndex",void 0),qt([tt({mode:"boolean"})],Ho.prototype,"multiple",void 0),qt([tt({converter:Z})],Ho.prototype,"size",void 0);const Mo="menuitem",Bo="menuitemcheckbox",No="menuitemradio",jo={[Mo]:"menuitem",[Bo]:"menuitemcheckbox",[No]:"menuitemradio"};class Uo extends De{constructor(){super(...arguments),this.role=Mo,this.hasSubmenu=!1,this.currentDirection=He.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.expandAndFocus(),!1;case"ArrowLeft":if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=t=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=t=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Bo:this.checked=!this.checked;break;case Mo:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case No:this.checked||(this.checked=!0)}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find(t=>"menu"===t.getAttribute("role")),this.hasSubmenu=void 0!==this.submenu}}expandedChanged(t){if(this.$fastController.isConnected){if(void 0===this.submenu)return;!1===this.expanded?this.submenu.collapseExpandedItem():this.currentDirection=Ze(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(t,e){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),h.queueUpdate(()=>{this.updateSubmenu()}),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,void 0!==this.observer&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children).filter(t=>!t.hasAttribute("hidden"))}}qt([tt({mode:"boolean"})],Uo.prototype,"disabled",void 0),qt([tt({mode:"boolean"})],Uo.prototype,"expanded",void 0),qt([g],Uo.prototype,"startColumnCount",void 0),qt([tt],Uo.prototype,"role",void 0),qt([tt({mode:"boolean"})],Uo.prototype,"checked",void 0),qt([g],Uo.prototype,"submenuRegion",void 0),qt([g],Uo.prototype,"hasSubmenu",void 0),qt([g],Uo.prototype,"currentDirection",void 0),qt([g],Uo.prototype,"submenu",void 0),Oe(Uo,Mt);class qo extends De{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>null!==this.parentElement&&Ae(this.parentElement)&&"menuitem"===this.parentElement.getAttribute("role"),this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&void 0!==this.menuItems){this.collapseExpandedItem();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=t=>{const e=t.target;void 0!==this.menuItems&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.handleExpandedChanged=t=>{if(t.defaultPrevented||null===t.target||void 0===this.menuItems||this.menuItems.indexOf(t.target)<0)return;t.preventDefault();const e=t.target;null===this.expandedItem||e!==this.expandedItem||!1!==e.expanded?e.expanded&&(null!==this.expandedItem&&this.expandedItem!==e&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=e,this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0")):this.expandedItem=null},this.removeItemListeners=()=>{void 0!==this.menuItems&&this.menuItems.forEach(t=>{t.removeEventListener("expanded-change",this.handleExpandedChanged),t.removeEventListener("focus",this.handleItemFocus)})},this.setItems=()=>{const t=this.domChildren();this.removeItemListeners(),this.menuItems=t;const e=this.menuItems.filter(this.isMenuItemElement);e.length&&(this.focusIndex=0);const i=e.reduce((t,e)=>{const i=function(t){const e=t.getAttribute("role"),i=t.querySelector("[slot=start]");return e!==Mo&&null===i||e===Mo&&null!==i?1:e!==Mo&&null!==i?2:0}(e);return t>i?t:i},0);e.forEach((t,e)=>{t.setAttribute("tabindex",0===e?"0":"-1"),t.addEventListener("expanded-change",this.handleExpandedChanged),t.addEventListener("focus",this.handleItemFocus),t instanceof Uo&&(t.startColumnCount=i)})},this.changeHandler=t=>{if(void 0===this.menuItems)return;const e=t.target,i=this.menuItems.indexOf(e);if(-1!==i&&"menuitemradio"===e.role&&!0===e.checked){for(let t=i-1;t>=0;--t){const e=this.menuItems[t],i=e.getAttribute("role");if(i===No&&(e.checked=!1),"separator"===i)break}const t=this.menuItems.length-1;for(let e=i+1;e<=t;++e){const t=this.menuItems[e],i=t.getAttribute("role");if(i===No&&(t.checked=!1),"separator"===i)break}}},this.isMenuItemElement=t=>Ae(t)&&qo.focusableElementRoles.hasOwnProperty(t.getAttribute("role")),this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&void 0!==this.menuItems&&this.setItems()}connectedCallback(){super.connectedCallback(),h.queueUpdate(()=>{this.setItems()}),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){null!==this.expandedItem&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(t){if(!t.defaultPrevented&&void 0!==this.menuItems)switch(t.key){case"ArrowDown":return void this.setFocus(this.focusIndex+1,1);case"ArrowUp":return void this.setFocus(this.focusIndex-1,-1);case"End":return void this.setFocus(this.menuItems.length-1,-1);case"Home":return void this.setFocus(0,1);default:return!0}}domChildren(){return Array.from(this.children).filter(t=>!t.hasAttribute("hidden"))}setFocus(t,e){if(void 0!==this.menuItems)for(;t>=0&&t<this.menuItems.length;){const i=this.menuItems[t];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,i.setAttribute("tabindex","0"),i.focus();break}t+=e}}}qo.focusableElementRoles=jo,qt([g],qo.prototype,"items",void 0);class _o extends De{}class Go extends(ni(_o)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Wo="text";class Ko extends Go{constructor(){super(...arguments),this.type=Wo}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&h.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}qt([tt({attribute:"readonly",mode:"boolean"})],Ko.prototype,"readOnly",void 0),qt([tt({mode:"boolean"})],Ko.prototype,"autofocus",void 0),qt([tt],Ko.prototype,"placeholder",void 0),qt([tt],Ko.prototype,"type",void 0),qt([tt],Ko.prototype,"list",void 0),qt([tt({converter:Z})],Ko.prototype,"maxlength",void 0),qt([tt({converter:Z})],Ko.prototype,"minlength",void 0),qt([tt],Ko.prototype,"pattern",void 0),qt([tt({converter:Z})],Ko.prototype,"size",void 0),qt([tt({mode:"boolean"})],Ko.prototype,"spellcheck",void 0),qt([g],Ko.prototype,"defaultSlottedNodes",void 0);class Xo{}Oe(Xo,Xe),Oe(Ko,Mt,Xo);class Yo extends De{}class Qo extends(ni(Yo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Zo extends Qo{constructor(){super(...arguments),this.hideStep=!1,this.step=1,this.isUserInput=!1}maxChanged(t,e){var i;this.max=Math.max(e,null!==(i=this.min)&&void 0!==i?i:e);const o=Math.min(this.min,this.max);void 0!==this.min&&this.min!==o&&(this.min=o),this.value=this.getValidValue(this.value)}minChanged(t,e){var i;this.min=Math.min(e,null!==(i=this.max)&&void 0!==i?i:e);const o=Math.max(this.min,this.max);void 0!==this.max&&this.max!==o&&(this.max=o),this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){this.value=this.getValidValue(e),e===this.value&&(this.control&&!this.isUserInput&&(this.control.value=this.value),super.valueChanged(t,this.value),void 0===t||this.isUserInput||(this.$emit("input"),this.$emit("change")),this.isUserInput=!1)}validate(){super.validate(this.control)}getValidValue(t){var e,i;let o=parseFloat(parseFloat(t).toPrecision(12));return isNaN(o)?o="":(o=Math.min(o,null!==(e=this.max)&&void 0!==e?e:o),o=Math.max(o,null!==(i=this.min)&&void 0!==i?i:o).toString()),o}stepUp(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:t+this.step;this.value=e.toString()}stepDown(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:t-this.step;this.value=e.toString()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","number"),this.validate(),this.control.value=this.value,this.autofocus&&h.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.isUserInput=!0,this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(t){switch(t.key){case"ArrowUp":return this.stepUp(),!1;case"ArrowDown":return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}}qt([tt({attribute:"readonly",mode:"boolean"})],Zo.prototype,"readOnly",void 0),qt([tt({mode:"boolean"})],Zo.prototype,"autofocus",void 0),qt([tt({attribute:"hide-step",mode:"boolean"})],Zo.prototype,"hideStep",void 0),qt([tt],Zo.prototype,"placeholder",void 0),qt([tt],Zo.prototype,"list",void 0),qt([tt({converter:Z})],Zo.prototype,"maxlength",void 0),qt([tt({converter:Z})],Zo.prototype,"minlength",void 0),qt([tt({converter:Z})],Zo.prototype,"size",void 0),qt([tt({converter:Z})],Zo.prototype,"step",void 0),qt([tt({converter:Z})],Zo.prototype,"max",void 0),qt([tt({converter:Z})],Zo.prototype,"min",void 0),qt([g],Zo.prototype,"defaultSlottedNodes",void 0),Oe(Zo,Mt,Xo);class Jo extends De{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const t="number"==typeof this.min?this.min:0,e="number"==typeof this.max?this.max:100,i="number"==typeof this.value?this.value:0,o=e-t;this.percentComplete=0===o?0:Math.fround((i-t)/o*100)}}qt([tt({converter:Z})],Jo.prototype,"value",void 0),qt([tt({converter:Z})],Jo.prototype,"min",void 0),qt([tt({converter:Z})],Jo.prototype,"max",void 0),qt([tt({mode:"boolean"})],Jo.prototype,"paused",void 0),qt([g],Jo.prototype,"percentComplete",void 0);class ts extends De{constructor(){super(...arguments),this.orientation=Ve,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(t=>{t!==e&&(t.checked=!1,this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"))}),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const i=t[e];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach(t=>{t!==i&&t.setAttribute("tabindex","-1")}):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var t;null===(t=this.nextElementSibling)||void 0===t||t.focus()},this.moveLeftOffGroup=()=>{var t;null===(t=this.previousElementSibling)||void 0===t||t.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,i=t.target,o=null!==i?e.indexOf(i):0,s=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(0===s&&o===s||s===e.length-1&&s===o)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.selectedRadio&&t.setAttribute("tabindex","-1")}))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.focusedRadio&&t.setAttribute("tabindex","-1")}))),!0},this.clickHandler=t=>{const e=t.target;if(e){const t=this.slottedRadioButtons;e.checked||0===t.indexOf(e)?(e.setAttribute("tabindex","0"),this.selectedRadio=e):(e.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=e}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,e,i)=>t===e.length&&this.isInsideToolbar&&"ArrowRight"===i,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&"ArrowLeft"===e,this.checkFocusedRadio=()=>{null===this.focusedRadio||this.focusedRadio.readOnly||this.focusedRadio.checked||(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,e,t.key))this.moveRightOffGroup();else for(i===e.length&&(i=0);i<e.length&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;if(i+1>=e.length){if(this.isInsideToolbar)break;i=0}else i+=1}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,i=i<0?e.length-1:i,this.shouldMoveOffGroupToTheLeft(e,t.key))this.moveLeftOffGroup();else for(;i>=0&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;i-1<0?i=e.length-1:i-=1}},this.keydownHandler=t=>{const e=t.key;if(e in ze&&this.isInsideFoundationToolbar)return!0;switch(e){case"Enter":this.checkFocusedRadio();break;case"ArrowRight":case"ArrowDown":this.direction===He.ltr?this.moveRight(t):this.moveLeft(t);break;case"ArrowLeft":case"ArrowUp":this.direction===He.ltr?this.moveLeft(t):this.moveRight(t);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1})}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.disabled?t.disabled=!0:t.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.value===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,e){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var t;return null!==(t=this.parentToolbar)&&void 0!==t&&t}get isInsideFoundationToolbar(){var t;return!!(null===(t=this.parentToolbar)||void 0===t?void 0:t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=Ze(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=t?t.length:0;if(e>1){t[e-1].checked=!0}let i=!1;if(this.slottedRadioButtons.forEach(t=>{void 0!==this.name&&t.setAttribute("name",this.name),this.disabled&&(t.disabled=!0),this.readOnly&&(t.readOnly=!0),this.value&&this.value===t.value?(this.selectedRadio=t,this.focusedRadio=t,t.checked=!0,t.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"),t.checked=!1),t.addEventListener("change",this.radioChangeHandler)}),void 0===this.value&&this.slottedRadioButtons.length>0){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=null!==t?t.length:0;if(e>0&&!i){const i=t[e-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}qt([tt({attribute:"readonly",mode:"boolean"})],ts.prototype,"readOnly",void 0),qt([tt({attribute:"disabled",mode:"boolean"})],ts.prototype,"disabled",void 0),qt([tt],ts.prototype,"name",void 0),qt([tt],ts.prototype,"value",void 0),qt([tt],ts.prototype,"orientation",void 0),qt([g],ts.prototype,"childItems",void 0),qt([g],ts.prototype,"slottedRadioButtons",void 0);class es extends De{}class is extends(ri(es)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class os extends is{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case" ":return void(this.checked||this.readOnly||(this.checked=!0))}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}connectedCallback(){var t,e;super.connectedCallback(),this.validate(),"radiogroup"!==(null===(t=this.parentElement)||void 0===t?void 0:t.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}clickHandler(t){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}qt([tt({attribute:"readonly",mode:"boolean"})],os.prototype,"readOnly",void 0),qt([g],os.prototype,"name",void 0),qt([g],os.prototype,"defaultSlottedNodes",void 0);class ss extends De{constructor(){super(...arguments),this.framesPerSecond=60,this.updatingItems=!1,this.speed=600,this.easing="ease-in-out",this.flippersHiddenFromAT=!1,this.scrolling=!1,this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(t,e){if(this.scrollContainer){const t=1==this.scrolling?"scrollstart":"scrollend";this.$emit(t,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback(),this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector(),super.disconnectedCallback()}scrollItemsChanged(t,e){e&&!this.updatingItems&&h.queueUpdate(()=>this.setStops())}disconnectResizeDetector(){this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.resized.bind(this)),this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=!0;const t=this.scrollItems.reduce((t,e)=>e instanceof HTMLSlotElement?t.concat(e.assignedElements()):(t.push(e),t),[]);this.scrollItems=t,this.updatingItems=!1}setStops(){this.updateScrollStops();const{scrollContainer:t}=this,{scrollLeft:e}=t,{width:i,left:o}=t.getBoundingClientRect();this.width=i;let s=0,n=this.scrollItems.map((t,i)=>{const{left:n,width:r}=t.getBoundingClientRect(),a=Math.round(n+e-o),l=Math.round(a+r);return this.isRtl?-l:(s=l,0===i?0:a)}).concat(s);n=this.fixScrollMisalign(n),n.sort((t,e)=>Math.abs(t)-Math.abs(e)),this.scrollStops=n,this.setFlippers()}fixScrollMisalign(t){if(this.isRtl&&t.some(t=>t>0)){t.sort((t,e)=>e-t);const e=t[0];t=t.map(t=>t-e)}return t}setFlippers(){var t,e;const i=this.scrollContainer.scrollLeft;if(null===(t=this.previousFlipperContainer)||void 0===t||t.classList.toggle("disabled",0===i),this.scrollStops){const t=Math.abs(this.scrollStops[this.scrollStops.length-1]);null===(e=this.nextFlipperContainer)||void 0===e||e.classList.toggle("disabled",Math.abs(i)+this.width>=t)}}scrollInView(t,e=0,i){var o;if("number"!=typeof t&&t&&(t=this.scrollItems.findIndex(e=>e===t||e.contains(t))),void 0!==t){i=null!=i?i:e;const{scrollContainer:s,scrollStops:n,scrollItems:r}=this,{scrollLeft:a}=this.scrollContainer,{width:l}=s.getBoundingClientRect(),c=n[t],{width:h}=r[t].getBoundingClientRect(),d=c+h,u=a+e>c;if(u||a+l-i<d){const t=null!==(o=[...n].sort((t,e)=>u?e-t:t-e).find(t=>u?t+e<c:t+l-(null!=i?i:0)>d))&&void 0!==o?o:0;this.scrollToPosition(t)}}}keyupHandler(t){switch(t.key){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext()}}scrollToPrevious(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex((e,i)=>e>=t&&(this.isRtl||i===this.scrollStops.length-1||this.scrollStops[i+1]>t)),i=Math.abs(this.scrollStops[e+1]);let o=this.scrollStops.findIndex(t=>Math.abs(t)+this.width>i);(o>=e||-1===o)&&(o=e>0?e-1:0),this.scrollToPosition(this.scrollStops[o],t)}scrollToNext(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex(e=>Math.abs(e)>=Math.abs(t)),i=this.scrollStops.findIndex(e=>Math.abs(t)+this.width<=Math.abs(e));let o=e;i>e+2?o=i-2:e<this.scrollStops.length-2&&(o=e+1),this.scrollToPosition(this.scrollStops[o],t)}scrollToPosition(t,e=this.scrollContainer.scrollLeft){var i;if(this.scrolling)return;this.scrolling=!0;const o=null!==(i=this.duration)&&void 0!==i?i:Math.abs(t-e)/this.speed+"s";this.content.style.setProperty("transition-duration",o);const s=parseFloat(getComputedStyle(this.content).getPropertyValue("transition-duration")),n=e=>{e&&e.target!==e.currentTarget||(this.content.style.setProperty("transition-duration","0s"),this.content.style.removeProperty("transform"),this.scrollContainer.style.setProperty("scroll-behavior","auto"),this.scrollContainer.scrollLeft=t,this.setFlippers(),this.content.removeEventListener("transitionend",n),this.scrolling=!1)};if(0===s)return void n();this.content.addEventListener("transitionend",n);const r=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth;let a=this.scrollContainer.scrollLeft-Math.min(t,r);this.isRtl&&(a=this.scrollContainer.scrollLeft+Math.min(Math.abs(t),r)),this.content.style.setProperty("transition-property","transform"),this.content.style.setProperty("transition-timing-function",this.easing),this.content.style.setProperty("transform",`translateX(${a}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout(()=>{this.width=this.scrollContainer.offsetWidth,this.setFlippers()},this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout(()=>{this.setFlippers()},this.frameTime)}}qt([tt({converter:Z})],ss.prototype,"speed",void 0),qt([tt],ss.prototype,"duration",void 0),qt([tt],ss.prototype,"easing",void 0),qt([tt({attribute:"flippers-hidden-from-at",converter:Q})],ss.prototype,"flippersHiddenFromAT",void 0),qt([g],ss.prototype,"scrolling",void 0),qt([g],ss.prototype,"scrollItems",void 0),qt([tt({attribute:"view"})],ss.prototype,"view",void 0);function ns(t,e,i){return t.nodeType!==Node.TEXT_NODE||"string"==typeof t.nodeValue&&!!t.nodeValue.trim().length}class rs extends De{}class as extends(ni(rs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class ls extends as{readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.validate(),this.autofocus&&h.queueUpdate(()=>{this.focus()})}validate(){super.validate(this.control)}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value="",this.control.focus(),this.handleChange()}handleChange(){this.$emit("change")}}qt([tt({attribute:"readonly",mode:"boolean"})],ls.prototype,"readOnly",void 0),qt([tt({mode:"boolean"})],ls.prototype,"autofocus",void 0),qt([tt],ls.prototype,"placeholder",void 0),qt([tt],ls.prototype,"list",void 0),qt([tt({converter:Z})],ls.prototype,"maxlength",void 0),qt([tt({converter:Z})],ls.prototype,"minlength",void 0),qt([tt],ls.prototype,"pattern",void 0),qt([tt({converter:Z})],ls.prototype,"size",void 0),qt([tt({mode:"boolean"})],ls.prototype,"spellcheck",void 0),qt([g],ls.prototype,"defaultSlottedNodes",void 0);class cs{}Oe(cs,Xe),Oe(ls,Mt,cs);class hs extends Ho{}class ds extends(ni(hs)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class us extends ds{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=Ue("listbox-"),this.maxHeight=0}openChanged(t,e){if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void h.queueUpdate(()=>this.focus());this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||"number"==typeof this.size)}get value(){return p.track(this,"value"),this._value}set value(t){var e,i,o,s,n,r,a;const l=""+this._value;if(null===(e=this._options)||void 0===e?void 0:e.length){const e=this._options.findIndex(e=>e.value===t),l=null!==(o=null===(i=this._options[this.selectedIndex])||void 0===i?void 0:i.value)&&void 0!==o?o:null,c=null!==(n=null===(s=this._options[e])||void 0===s?void 0:s.value)&&void 0!==n?n:null;-1!==e&&l===c||(t="",this.selectedIndex=e),t=null!==(a=null===(r=this.firstSelectedOption)||void 0===r?void 0:r.value)&&void 0!==a?a:t}l!==t&&(this._value=t,super.valueChanged(l,t),p.notify(this,"value"),this.updateDisplayValue())}updateValue(t){var e,i;this.$fastController.isConnected&&(this.value=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.value)&&void 0!==i?i:""),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,e){super.selectedIndexChanged(t,e),this.updateValue()}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Mi:Bi,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Mi?~~t.top:~~e}get displayValue(){var t,e;return p.track(this,"displayValue"),null!==(e=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text)&&void 0!==e?e:""}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),-1===this.selectedIndex&&(this.selectedIndex=0)}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(e&&e.disabled)return}return super.clickHandler(t),this.open=this.collapsible&&!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(t){var e;if(super.focusoutHandler(t),!this.open)return!0;const i=t.relatedTarget;this.isSameNode(i)?this.focus():(null===(e=this.options)||void 0===e?void 0:e.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(t,e){super.handleChange(t,e),"value"===e&&this.updateValue()}slottedOptionsChanged(t,e){this.options.forEach(t=>{p.getNotifier(t).unsubscribe(this,"value")}),super.slottedOptionsChanged(t,e),this.options.forEach(t=>{p.getNotifier(t).subscribe(this,"value")}),this.setProxyOptions(),this.updateValue()}mousedownHandler(t){var e;return t.offsetX>=0&&t.offsetX<=(null===(e=this.listbox)||void 0===e?void 0:e.scrollWidth)?super.mousedownHandler(t):this.collapsible}multipleChanged(t,e){super.multipleChanged(t,e),this.proxy&&(this.proxy.multiple=e)}selectedOptionsChanged(t,e){var i;super.selectedOptionsChanged(t,e),null===(i=this.options)||void 0===i||i.forEach((t,e)=>{var i;const o=null===(i=this.proxy)||void 0===i?void 0:i.options.item(e);o&&(o.selected=t.selected)})}setDefaultSelectedOption(){var t;const e=null!==(t=this.options)&&void 0!==t?t:Array.from(this.children).filter(zi.slottedOptionFilter),i=null==e?void 0:e.findIndex(t=>t.hasAttribute("selected")||t.selected||t.value===this.value);this.selectedIndex=-1===i?0:i}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{const e=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);e&&this.proxy.options.add(e)}))}keydownHandler(t){super.keydownHandler(t);const e=t.key||t.key.charCodeAt(0);switch(e){case" ":t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case"Home":case"End":t.preventDefault();break;case"Enter":t.preventDefault(),this.open=!this.open;break;case"Escape":this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break;case"Tab":return this.collapsible&&this.open&&(t.preventDefault(),this.open=!1),!0}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!("ArrowDown"===e||"ArrowUp"===e)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(t,e){super.sizeChanged(t,e),this.proxy&&(this.proxy.size=e)}updateDisplayValue(){this.collapsible&&p.notify(this,"displayValue")}}qt([tt({attribute:"open",mode:"boolean"})],us.prototype,"open",void 0),qt([function(t,e,i){return Object.assign({},i,{get:function(){return p.trackVolatile(),i.get.apply(this)}})}],us.prototype,"collapsible",null),qt([g],us.prototype,"control",void 0),qt([tt({attribute:"position"})],us.prototype,"positionAttribute",void 0),qt([g],us.prototype,"position",void 0),qt([g],us.prototype,"maxHeight",void 0);class ps{}qt([g],ps.prototype,"ariaControls",void 0),Oe(ps,Hi),Oe(us,Mt,ps);class gs extends De{constructor(){super(...arguments),this.shape="rect"}}qt([tt],gs.prototype,"fill",void 0),qt([tt],gs.prototype,"shape",void 0),qt([tt],gs.prototype,"pattern",void 0),qt([tt({mode:"boolean"})],gs.prototype,"shimmer",void 0);function fs(t,e,i,o){let s=Be(0,1,(t-e)/(i-e));return o===He.rtl&&(s=1-s),s}const ms={min:0,max:0,direction:He.ltr,orientation:Ve,disabled:!1};class vs extends De{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=He.ltr,this.getSliderConfiguration=()=>{if(this.isSliderConfig(this.parentNode)){const t=this.parentNode,{min:e,max:i,direction:o,orientation:s,disabled:n}=t;void 0!==n&&(this.disabled=n),this.sliderDirection=o||He.ltr,this.sliderOrientation=s||Ve,this.sliderMaxPosition=i,this.sliderMinPosition=e}else this.sliderDirection=ms.direction||He.ltr,this.sliderOrientation=ms.orientation,this.sliderMaxPosition=ms.max,this.sliderMinPosition=ms.min},this.positionAsStyle=()=>{const t=this.sliderDirection?this.sliderDirection:He.ltr,e=fs(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition));let i=Math.round(100*(1-e)),o=Math.round(100*e);return Number.isNaN(o)&&Number.isNaN(i)&&(i=50,o=50),this.sliderOrientation===Ve?t===He.rtl?`right: ${o}%; left: ${i}%;`:`left: ${o}%; right: ${i}%;`:`top: ${o}%; bottom: ${i}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=p.getNotifier(this.parentNode),this.notifier.subscribe(this,"orientation"),this.notifier.subscribe(this,"direction"),this.notifier.subscribe(this,"max"),this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback(),this.notifier.unsubscribe(this,"orientation"),this.notifier.unsubscribe(this,"direction"),this.notifier.unsubscribe(this,"max"),this.notifier.unsubscribe(this,"min")}handleChange(t,e){switch(e){case"direction":this.sliderDirection=t.direction;break;case"orientation":this.sliderOrientation=t.orientation;break;case"max":this.sliderMaxPosition=t.max;break;case"min":this.sliderMinPosition=t.min}this.positionStyle=this.positionAsStyle()}isSliderConfig(t){return void 0!==t.max&&void 0!==t.min}}qt([g],vs.prototype,"positionStyle",void 0),qt([tt],vs.prototype,"position",void 0),qt([tt({attribute:"hide-mark",mode:"boolean"})],vs.prototype,"hideMark",void 0),qt([tt({attribute:"disabled",mode:"boolean"})],vs.prototype,"disabled",void 0),qt([g],vs.prototype,"sliderOrientation",void 0),qt([g],vs.prototype,"sliderMinPosition",void 0),qt([g],vs.prototype,"sliderMaxPosition",void 0),qt([g],vs.prototype,"sliderDirection",void 0);class bs extends De{}class ys extends(ni(bs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const xs="single-value";class $s extends ys{constructor(){super(...arguments),this.direction=He.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.step=1,this.orientation=Ve,this.mode=xs,this.keypressHandler=t=>{if(!this.readOnly)if("Home"===t.key)t.preventDefault(),this.value=""+this.min;else if("End"===t.key)t.preventDefault(),this.value=""+this.max;else if(!t.shiftKey)switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),this.increment();break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),this.decrement()}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.bottom,this.trackMinHeight=t.top,this.trackLeft=this.getBoundingClientRect().left,0===this.trackWidth&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{const e=(t?"remove":"add")+"EventListener";this[e]("keydown",this.keypressHandler),this[e]("mousedown",this.handleMouseDown),this.thumb[e]("mousedown",this.handleThumbMouseDown,{passive:!0}),this.thumb[e]("touchstart",this.handleThumbMouseDown,{passive:!0}),t&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=t=>{if(t){if(this.readOnly||this.disabled||t.defaultPrevented)return;t.target.focus()}const e=(null!==t?"add":"remove")+"EventListener";window[e]("mouseup",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove,{passive:!0}),window[e]("touchmove",this.handleMouseMove,{passive:!0}),window[e]("touchend",this.handleWindowMouseUp),this.isDragging=null!==t},this.handleMouseMove=t=>{if(this.readOnly||this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,i=this.orientation===Ve?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(i)},this.calculateNewValue=t=>{const e=fs(t,this.orientation===Ve?this.trackMinWidth:this.trackMinHeight,this.orientation===Ve?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*e+this.min;return this.convertToConstrainedValue(i)},this.handleWindowMouseUp=t=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=t=>{const e=(null!==t?"add":"remove")+"EventListener";if((null===t||!this.disabled&&!this.readOnly)&&(window[e]("mouseup",this.handleWindowMouseUp),window.document[e]("mouseleave",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove),t)){t.preventDefault(),this.setupTrackConstraints(),t.target.focus();const e=this.orientation===Ve?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(e)}},this.convertToConstrainedValue=t=>{isNaN(t)&&(t=this.min);let e=t-this.min;const i=e-Math.round(e/this.step)*(this.stepMultiplier*this.step)/this.stepMultiplier;return e=i>=Number(this.step)/2?e-i+Number(this.step):e-i,e+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){super.valueChanged(t,e),this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction),this.$emit("change")}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=""+this.min),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=""+this.max),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=""+this.step),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=Ze(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){const t=this.direction!==He.rtl&&this.orientation!==Re?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),e=this.convertToConstrainedValue(t),i=e<Number(this.max)?""+e:""+this.max;this.value=i}decrement(){const t=this.direction!==He.rtl&&this.orientation!==Re?Number(this.value)-Number(this.step):Number(this.value)+Number(this.step),e=this.convertToConstrainedValue(t),i=e>Number(this.min)?""+e:""+this.min;this.value=i}setThumbPositionForOrientation(t){const e=100*(1-fs(Number(this.value),Number(this.min),Number(this.max),t));this.orientation===Ve?this.position=this.isDragging?`right: ${e}%; transition: none;`:`right: ${e}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${e}%; transition: none;`:`bottom: ${e}%; transition: all 0.2s ease;`}updateStepMultiplier(){const t=this.step+"",e=this.step%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}get midpoint(){return""+this.convertToConstrainedValue((this.max+this.min)/2)}setupDefaultValue(){if("string"==typeof this.value)if(0===this.value.length)this.initialValue=this.midpoint;else{const t=parseFloat(this.value);!Number.isNaN(t)&&(t<this.min||t>this.max)&&(this.value=this.midpoint)}}}qt([tt({attribute:"readonly",mode:"boolean"})],$s.prototype,"readOnly",void 0),qt([g],$s.prototype,"direction",void 0),qt([g],$s.prototype,"isDragging",void 0),qt([g],$s.prototype,"position",void 0),qt([g],$s.prototype,"trackWidth",void 0),qt([g],$s.prototype,"trackMinWidth",void 0),qt([g],$s.prototype,"trackHeight",void 0),qt([g],$s.prototype,"trackLeft",void 0),qt([g],$s.prototype,"trackMinHeight",void 0),qt([g],$s.prototype,"valueTextFormatter",void 0),qt([tt({converter:Z})],$s.prototype,"min",void 0),qt([tt({converter:Z})],$s.prototype,"max",void 0),qt([tt({converter:Z})],$s.prototype,"step",void 0),qt([tt],$s.prototype,"orientation",void 0),qt([tt],$s.prototype,"mode",void 0);class ws extends De{}class ks extends(ri(ws)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Cs extends ks{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{if(!this.readOnly)switch(t.key){case"Enter":case" ":this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly),this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}checkedChanged(t,e){super.checkedChanged(t,e),this.checked?this.classList.add("checked"):this.classList.remove("checked")}}qt([tt({attribute:"readonly",mode:"boolean"})],Cs.prototype,"readOnly",void 0),qt([g],Cs.prototype,"defaultSlottedNodes",void 0);class Is extends De{}class Fs extends De{}qt([tt({mode:"boolean"})],Fs.prototype,"disabled",void 0);const Ds="horizontal";class Ts extends De{constructor(){super(...arguments),this.orientation=Ds,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>"true"===t.getAttribute("aria-disabled"),this.isFocusableElement=t=>!this.isDisabledElement(t),this.setTabs=()=>{const t=this.isHorizontal()?"gridColumn":"gridRow";this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((e,i)=>{if("tab"===e.slot){const t=this.activeTabIndex===i&&this.isFocusableElement(e);this.activeindicator&&this.isFocusableElement(e)&&(this.showActiveIndicator=!0);const o=this.tabIds[i],s=this.tabpanelIds[i];e.setAttribute("id",o),e.setAttribute("aria-selected",t?"true":"false"),e.setAttribute("aria-controls",s),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",t?"0":"-1"),t&&(this.activetab=e)}e.style.gridColumn="",e.style.gridRow="",e.style[t]=""+(i+1),this.isHorizontal()?e.classList.remove("vertical"):e.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((t,e)=>{const i=this.tabIds[e],o=this.tabpanelIds[e];t.setAttribute("id",o),t.setAttribute("aria-labelledby",i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case"ArrowLeft":t.preventDefault(),this.adjustBackward(t);break;case"ArrowRight":t.preventDefault(),this.adjustForward(t)}else switch(t.key){case"ArrowUp":t.preventDefault(),this.adjustBackward(t);break;case"ArrowDown":t.preventDefault(),this.adjustForward(t)}switch(t.key){case"Home":t.preventDefault(),this.adjust(-this.activeTabIndex);break;case"End":t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)+1:1,i===e.length&&(i=0);i<e.length&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}if(this.activetab&&i===e.indexOf(this.activetab))break;i+1>=e.length?i=0:i+=1}},this.adjustBackward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)-1:0,i=i<0?e.length-1:i;i>=0&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}i-1<0?i=e.length-1:i-=1}},this.moveToTabByIndex=(t,e)=>{const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(e=>e.id===t),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(t=>{var e;return null!==(e=t.getAttribute("id"))&&void 0!==e?e:"tab-"+Ue()})}getTabPanelIds(){return this.tabpanels.map(t=>{var e;return null!==(e=t.getAttribute("id"))&&void 0!==e?e:"panel-"+Ue()})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Ds}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",e=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1);const s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.prevActiveTabIndex+1);const n=s-o;this.activeIndicatorRef.style.transform=`${e}(${n}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1),this.activeIndicatorRef.style.transform=e+"(0px)",this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=Me(0,this.tabs.length-1,this.activeTabIndex+t),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}qt([tt],Ts.prototype,"orientation",void 0),qt([tt],Ts.prototype,"activeid",void 0),qt([g],Ts.prototype,"tabs",void 0),qt([g],Ts.prototype,"tabpanels",void 0),qt([tt({mode:"boolean"})],Ts.prototype,"activeindicator",void 0),qt([g],Ts.prototype,"activeIndicatorRef",void 0),qt([g],Ts.prototype,"showActiveIndicator",void 0),Oe(Ts,Mt);class Ss extends De{}class Os extends(ni(Ss)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const Es="none";class Vs extends Os{constructor(){super(...arguments),this.resize=Es,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}qt([tt({mode:"boolean"})],Vs.prototype,"readOnly",void 0),qt([tt],Vs.prototype,"resize",void 0),qt([tt({mode:"boolean"})],Vs.prototype,"autofocus",void 0),qt([tt({attribute:"form"})],Vs.prototype,"formId",void 0),qt([tt],Vs.prototype,"list",void 0),qt([tt({converter:Z})],Vs.prototype,"maxlength",void 0),qt([tt({converter:Z})],Vs.prototype,"minlength",void 0),qt([tt],Vs.prototype,"name",void 0),qt([tt],Vs.prototype,"placeholder",void 0),qt([tt({converter:Z,mode:"fromView"})],Vs.prototype,"cols",void 0),qt([tt({converter:Z,mode:"fromView"})],Vs.prototype,"rows",void 0),qt([tt({mode:"boolean"})],Vs.prototype,"spellcheck",void 0),qt([g],Vs.prototype,"defaultSlottedNodes",void 0),Oe(Vs,Xo);const Rs=Object.freeze({[ze.ArrowUp]:{[Re]:-1},[ze.ArrowDown]:{[Re]:1},[ze.ArrowLeft]:{[Ve]:{[He.ltr]:-1,[He.rtl]:1}},[ze.ArrowRight]:{[Ve]:{[He.ltr]:1,[He.rtl]:-1}}});class As extends De{constructor(){super(...arguments),this._activeIndex=0,this.direction=He.ltr,this.orientation=Ve}get activeIndex(){return p.track(this,"activeIndex"),this._activeIndex}set activeIndex(t){this.$fastController.isConnected&&(this._activeIndex=Be(0,this.focusableElements.length-1,t),p.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}clickHandler(t){var e;const i=null===(e=this.focusableElements)||void 0===e?void 0:e.indexOf(t.target);return i>-1&&this.activeIndex!==i&&this.setFocusedElement(i),!0}childItemsChanged(t,e){this.$fastController.isConnected&&this.reduceFocusableElements()}connectedCallback(){super.connectedCallback(),this.direction=Ze(this)}focusinHandler(t){const e=t.relatedTarget;e&&!this.contains(e)&&this.setFocusedElement()}getDirectionalIncrementer(t){var e,i,o,s,n;return null!==(n=null!==(o=null===(i=null===(e=Rs[t])||void 0===e?void 0:e[this.orientation])||void 0===i?void 0:i[this.direction])&&void 0!==o?o:null===(s=Rs[t])||void 0===s?void 0:s[this.orientation])&&void 0!==n?n:0}keydownHandler(t){const e=t.key;if(!(e in ze)||t.defaultPrevented||t.shiftKey)return!0;const i=this.getDirectionalIncrementer(e);if(!i)return!t.target.closest("[role=radiogroup]");const o=this.activeIndex+i;return this.focusableElements[o]&&t.preventDefault(),this.setFocusedElement(o),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){var t;const e=null===(t=this.focusableElements)||void 0===t?void 0:t[this.activeIndex];this.focusableElements=this.allSlottedItems.reduce(As.reduceFocusableItems,[]);const i=this.focusableElements.indexOf(e);this.activeIndex=Math.max(0,i),this.setFocusableElements()}setFocusedElement(t=this.activeIndex){var e;this.activeIndex=t,this.setFocusableElements(),null===(e=this.focusableElements[this.activeIndex])||void 0===e||e.focus()}static reduceFocusableItems(t,e){var i,o,s,n;const r="radio"===e.getAttribute("role"),a=null===(o=null===(i=e.$fastController)||void 0===i?void 0:i.definition.shadowOptions)||void 0===o?void 0:o.delegatesFocus,l=Array.from(null!==(n=null===(s=e.shadowRoot)||void 0===s?void 0:s.querySelectorAll("*"))&&void 0!==n?n:[]).some(t=>Eo(t));return e.hasAttribute("disabled")||e.hasAttribute("hidden")||!(Eo(e)||r||a||l)?e.childElementCount?t.concat(Array.from(e.children).reduce(As.reduceFocusableItems,[])):t:(t.push(e),t)}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((t,e)=>{t.tabIndex=this.activeIndex===e?0:-1})}}qt([g],As.prototype,"direction",void 0),qt([tt],As.prototype,"orientation",void 0),qt([g],As.prototype,"slottedItems",void 0),qt([g],As.prototype,"slottedLabel",void 0),qt([g],As.prototype,"childItems",void 0);class Ls{}qt([tt({attribute:"aria-labelledby"})],Ls.prototype,"ariaLabelledby",void 0),qt([tt({attribute:"aria-label"})],Ls.prototype,"ariaLabel",void 0),Oe(Ls,Xe),Oe(As,Mt,Ls);const Ps="top",zs="right",Hs="bottom",Ms="left",Bs="start",Ns="end",js="top-left",Us="top-right",qs="bottom-left",_s="bottom-right",Gs="top-start",Ws="top-end",Ks="bottom-start",Xs="bottom-end";class Ys extends De{constructor(){super(...arguments),this.anchor="",this.delay=300,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.horizontalInset="false",this.verticalInset="false",this.horizontalScaling="content",this.verticalScaling="content",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.tooltipVisible=!1,this.currentDirection=He.ltr,this.showDelayTimer=null,this.hideDelayTimer=null,this.isAnchorHoveredFocused=!1,this.isRegionHovered=!1,this.handlePositionChange=t=>{this.classList.toggle("top","start"===this.region.verticalPosition),this.classList.toggle("bottom","end"===this.region.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.region.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.region.verticalPosition),this.classList.toggle("center-vertical","center"===this.region.verticalPosition),this.classList.toggle("left","start"===this.region.horizontalPosition),this.classList.toggle("right","end"===this.region.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.region.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.region.horizontalPosition),this.classList.toggle("center-horizontal","center"===this.region.horizontalPosition)},this.handleRegionMouseOver=t=>{this.isRegionHovered=!0},this.handleRegionMouseOut=t=>{this.isRegionHovered=!1,this.startHideDelayTimer()},this.handleAnchorMouseOver=t=>{this.tooltipVisible?this.isAnchorHoveredFocused=!0:this.startShowDelayTimer()},this.handleAnchorMouseOut=t=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.handleAnchorFocusIn=t=>{this.startShowDelayTimer()},this.handleAnchorFocusOut=t=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.startHideDelayTimer=()=>{this.clearHideDelayTimer(),this.tooltipVisible&&(this.hideDelayTimer=window.setTimeout(()=>{this.updateTooltipVisibility()},60))},this.clearHideDelayTimer=()=>{null!==this.hideDelayTimer&&(clearTimeout(this.hideDelayTimer),this.hideDelayTimer=null)},this.startShowDelayTimer=()=>{this.isAnchorHoveredFocused||(this.delay>1?null===this.showDelayTimer&&(this.showDelayTimer=window.setTimeout(()=>{this.startHover()},this.delay)):this.startHover())},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearShowDelayTimer=()=>{null!==this.showDelayTimer&&(clearTimeout(this.showDelayTimer),this.showDelayTimer=null)},this.getAnchor=()=>{const t=this.getRootNode();return t instanceof ShadowRoot?t.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&this.tooltipVisible)switch(t.key){case"Escape":this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit("dismiss")}},this.updateTooltipVisibility=()=>{if(!1===this.visible)this.hideTooltip();else{if(!0===this.visible)return void this.showTooltip();if(this.isAnchorHoveredFocused||this.isRegionHovered)return void this.showTooltip();this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=Ze(this),this.tooltipVisible=!0,document.addEventListener("keydown",this.handleDocumentKeydown),h.queueUpdate(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(this.clearHideDelayTimer(),null!==this.region&&void 0!==this.region&&(this.region.removeEventListener("positionchange",this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null,this.region.removeEventListener("mouseover",this.handleRegionMouseOver),this.region.removeEventListener("mouseout",this.handleRegionMouseOut)),document.removeEventListener("keydown",this.handleDocumentKeydown),this.tooltipVisible=!1)},this.setRegionProps=()=>{this.tooltipVisible&&(this.region.viewportElement=this.viewportElement,this.region.anchorElement=this.anchorElement,this.region.addEventListener("positionchange",this.handlePositionChange),this.region.addEventListener("mouseover",this.handleRegionMouseOver,{passive:!0}),this.region.addEventListener("mouseout",this.handleRegionMouseOut,{passive:!0}))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&(this.anchorElement=this.getAnchor())}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(t){if(this.$fastController.isConnected){if(null!=t&&(t.removeEventListener("mouseover",this.handleAnchorMouseOver),t.removeEventListener("mouseout",this.handleAnchorMouseOut),t.removeEventListener("focusin",this.handleAnchorFocusIn),t.removeEventListener("focusout",this.handleAnchorFocusOut)),null!==this.anchorElement&&void 0!==this.anchorElement){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:!0}),this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:!0}),this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:!0}),this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:!0});const t=this.anchorElement.id;null!==this.anchorElement.parentElement&&this.anchorElement.parentElement.querySelectorAll(":hover").forEach(e=>{e.id===t&&this.startShowDelayTimer()})}null!==this.region&&void 0!==this.region&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){null!==this.region&&void 0!==this.region&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearShowDelayTimer(),this.clearHideDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.position){case Ps:case Hs:this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition="center";break;case zs:case Ms:case Bs:case Ns:this.verticalDefaultPosition="center",this.horizontalDefaultPosition=this.position;break;case js:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="left";break;case Us:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="right";break;case qs:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="left";break;case _s:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="right";break;case Gs:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="start";break;case Ws:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="end";break;case Ks:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="start";break;case Xs:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="end";break;default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition="center"}}}qt([tt({mode:"boolean"})],Ys.prototype,"visible",void 0),qt([tt],Ys.prototype,"anchor",void 0),qt([tt],Ys.prototype,"delay",void 0),qt([tt],Ys.prototype,"position",void 0),qt([tt({attribute:"auto-update-mode"})],Ys.prototype,"autoUpdateMode",void 0),qt([tt({attribute:"horizontal-viewport-lock"})],Ys.prototype,"horizontalViewportLock",void 0),qt([tt({attribute:"vertical-viewport-lock"})],Ys.prototype,"verticalViewportLock",void 0),qt([g],Ys.prototype,"anchorElement",void 0),qt([g],Ys.prototype,"viewportElement",void 0),qt([g],Ys.prototype,"verticalPositioningMode",void 0),qt([g],Ys.prototype,"horizontalPositioningMode",void 0),qt([g],Ys.prototype,"horizontalInset",void 0),qt([g],Ys.prototype,"verticalInset",void 0),qt([g],Ys.prototype,"horizontalScaling",void 0),qt([g],Ys.prototype,"verticalScaling",void 0),qt([g],Ys.prototype,"verticalDefaultPosition",void 0),qt([g],Ys.prototype,"horizontalDefaultPosition",void 0),qt([g],Ys.prototype,"tooltipVisible",void 0),qt([g],Ys.prototype,"currentDirection",void 0);function Qs(t){return Ae(t)&&"treeitem"===t.getAttribute("role")}class Zs extends De{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.isNestedItem=()=>Qs(this.parentElement),this.handleExpandCollapseButtonClick=t=>{this.disabled||t.defaultPrevented||(this.expanded=!this.expanded)},this.handleFocus=t=>{this.setAttribute("tabindex","0")},this.handleBlur=t=>{this.setAttribute("tabindex","-1")}}expandedChanged(){this.$fastController.isConnected&&this.$emit("expanded-change",this)}selectedChanged(){this.$fastController.isConnected&&this.$emit("selected-change",this)}itemsChanged(t,e){this.$fastController.isConnected&&this.items.forEach(t=>{Qs(t)&&(t.nested=!0)})}static focusItem(t){t.focusable=!0,t.focus()}childItemLength(){const t=this.childItems.filter(t=>Qs(t));return t?t.length:0}}qt([tt({mode:"boolean"})],Zs.prototype,"expanded",void 0),qt([tt({mode:"boolean"})],Zs.prototype,"selected",void 0),qt([tt({mode:"boolean"})],Zs.prototype,"disabled",void 0),qt([g],Zs.prototype,"focusable",void 0),qt([g],Zs.prototype,"childItems",void 0),qt([g],Zs.prototype,"items",void 0),qt([g],Zs.prototype,"nested",void 0),qt([g],Zs.prototype,"renderCollapsedChildren",void 0),Oe(Zs,Mt);class Js extends De{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=t=>{if(!(this.slottedTreeItems.length<1))return t.target===this?(null===this.currentFocused&&(this.currentFocused=this.getValidFocusableItem()),void(null!==this.currentFocused&&Zs.focusItem(this.currentFocused))):void(this.contains(t.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=t.target))},this.handleBlur=t=>{t.target instanceof HTMLElement&&(null===t.relatedTarget||!this.contains(t.relatedTarget))&&this.setAttribute("tabindex","0")},this.handleKeyDown=t=>{if(t.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;const e=this.getVisibleNodes();switch(t.key){case"Home":return void(e.length&&Zs.focusItem(e[0]));case"End":return void(e.length&&Zs.focusItem(e[e.length-1]));case"ArrowLeft":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Zs&&e.childItemLength()>0&&e.expanded?e.expanded=!1:e instanceof Zs&&e.parentElement instanceof Zs&&Zs.focusItem(e.parentElement)}return!1;case"ArrowRight":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Zs&&e.childItemLength()>0&&!e.expanded?e.expanded=!0:e instanceof Zs&&e.childItemLength()>0&&this.focusNextNode(1,t.target)}return;case"ArrowDown":return void(t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(1,t.target));case"ArrowUp":return void(t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(-1,t.target));case"Enter":return void this.handleClick(t)}return!0},this.handleSelectedChange=t=>{if(t.defaultPrevented)return;if(!(t.target instanceof Element&&Qs(t.target)))return!0;const e=t.target;e.selected?(this.currentSelected&&this.currentSelected!==e&&(this.currentSelected.selected=!1),this.currentSelected=e):e.selected||this.currentSelected!==e||(this.currentSelected=null)},this.setItems=()=>{const t=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=t,null!==this.currentFocused&&this.contains(this.currentFocused)||(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems();this.getVisibleNodes().forEach(t=>{Qs(t)&&(t.nested=this.nested)})},this.isFocusableElement=t=>Qs(t),this.isSelectedElement=t=>t.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),h.queueUpdate(()=>{this.setItems()})}handleClick(t){if(t.defaultPrevented)return;if(!(t.target instanceof Element&&Qs(t.target)))return!0;const e=t.target;e.disabled||(e.selected=!e.selected)}focusNextNode(t,e){const i=this.getVisibleNodes();if(!i)return;const o=i[i.indexOf(e)+t];Ae(o)&&Zs.focusItem(o)}getValidFocusableItem(){const t=this.getVisibleNodes();let e=t.findIndex(this.isSelectedElement);return-1===e&&(e=t.findIndex(this.isFocusableElement)),-1!==e?t[e]:null}checkForNestedItems(){return this.slottedTreeItems.some(t=>Qs(t)&&t.querySelector("[role='treeitem']"))}getVisibleNodes(){return function(t,e){if(!t||!e||!Ae(t))return;return Array.from(t.querySelectorAll(e)).filter(t=>null!==t.offsetParent)}(this,"[role='treeitem']")||[]}}qt([tt({attribute:"render-collapsed-nodes"})],Js.prototype,"renderCollapsedNodes",void 0),qt([g],Js.prototype,"currentSelected",void 0),qt([g],Js.prototype,"slottedTreeItems",void 0);class tn extends class{constructor(t){this.listenerCache=new WeakMap,this.query=t}bind(t){const{query:e}=this,i=this.constructListener(t);i.bind(e)(),e.addListener(i),this.listenerCache.set(t,i)}unbind(t){const e=this.listenerCache.get(t);e&&(this.query.removeListener(e),this.listenerCache.delete(t))}}{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new tn(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:o}=this;o&&!e?(t.$fastController.addStyles(i),e=o):!o&&e&&(t.$fastController.removeStyles(i),e=o)}}unbind(t){super.unbind(t),t.$fastController.removeStyles(this.styles)}}const en=tn.with(window.matchMedia("(forced-colors)"));tn.with(window.matchMedia("(prefers-color-scheme: dark)")),tn.with(window.matchMedia("(prefers-color-scheme: light)"));class on{constructor(t,e,i){this.propertyName=t,this.value=e,this.styles=i}bind(t){p.getNotifier(t).subscribe(this,this.propertyName),this.handleChange(t,this.propertyName)}unbind(t){p.getNotifier(t).unsubscribe(this,this.propertyName),t.$fastController.removeStyles(this.styles)}handleChange(t,e){t[e]===this.value?t.$fastController.addStyles(this.styles):t.$fastController.removeStyles(this.styles)}}function sn(t){return`:host([hidden]){display:none}:host{display:${t}}`}const nn=function(){if("boolean"==typeof Le)return Le;if("undefined"==typeof window||!window.document||!window.document.createElement)return Le=!1,Le;const t=document.createElement("style"),e=function(){const t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}();null!==e&&t.setAttribute("nonce",e),document.head.appendChild(t);try{t.sheet.insertRule("foo:focus-visible {color:inherit}",0),Le=!0}catch(t){Le=!1}finally{document.head.removeChild(t)}return Le}()?"focus-visible":"focus";function rn(t,e,i){return isNaN(t)||t<=e?e:t>=i?i:t}function an(t,e,i){return isNaN(t)||t<=e?0:t>=i?1:t/(i-e)}function ln(t,e,i){return isNaN(t)?e:e+t*(i-e)}function cn(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:e+t*(i-e)}function hn(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}class dn{constructor(t,e,i){this.h=t,this.s=e,this.l=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.l)?null:new dn(t.h,t.s,t.l)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.l===t.l}roundToPrecision(t){return new dn(hn(this.h,t),hn(this.s,t),hn(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class un{constructor(t,e,i){this.l=t,this.a=e,this.b=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.a)||isNaN(t.b)?null:new un(t.l,t.a,t.b)}equalValue(t){return this.l===t.l&&this.a===t.a&&this.b===t.b}roundToPrecision(t){return new un(hn(this.l,t),hn(this.a,t),hn(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}}un.epsilon=216/24389,un.kappa=24389/27;class pn{constructor(t,e,i,o){this.r=t,this.g=e,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(t){return!t||isNaN(t.r)||isNaN(t.g)||isNaN(t.b)?null:new pn(t.r,t.g,t.b,t.a)}equalValue(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(ln(this.r,0,255))},${Math.round(ln(this.g,0,255))},${Math.round(ln(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(ln(this.r,0,255))},${Math.round(ln(this.g,0,255))},${Math.round(ln(this.b,0,255))},${rn(this.a,0,1)})`}roundToPrecision(t){return new pn(hn(this.r,t),hn(this.g,t),hn(this.b,t),hn(this.a,t))}clamp(){return new pn(rn(this.r,0,1),rn(this.g,0,1),rn(this.b,0,1),rn(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(t){return function(t){const e=Math.round(rn(t,0,255)).toString(16);return 1===e.length?"0"+e:e}(ln(t,0,255))}}class gn{constructor(t,e,i){this.x=t,this.y=e,this.z=i}static fromObject(t){return!t||isNaN(t.x)||isNaN(t.y)||isNaN(t.z)?null:new gn(t.x,t.y,t.z)}equalValue(t){return this.x===t.x&&this.y===t.y&&this.z===t.z}roundToPrecision(t){return new gn(hn(this.x,t),hn(this.y,t),hn(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}}function fn(t){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return function(t){return.2126*t.r+.7152*t.g+.0722*t.b}(new pn(e(t.r),e(t.g),e(t.b),1))}function mn(t,e,i){return i-e==0?0:(t-e)/(i-e)}function vn(t,e,i){return(mn(t.r,e.r,i.r)+mn(t.g,e.g,i.g)+mn(t.b,e.b,i.b))/3}function bn(t){const e=Math.max(t.r,t.g,t.b),i=Math.min(t.r,t.g,t.b),o=e-i;let s=0;0!==o&&(s=e===t.r?(t.g-t.b)/o%6*60:e===t.g?60*((t.b-t.r)/o+2):60*((t.r-t.g)/o+4)),s<0&&(s+=360);const n=(e+i)/2;let r=0;return 0!==o&&(r=o/(1-Math.abs(2*n-1))),new dn(s,r,n)}function yn(t){return function(t){function e(t){return t>un.epsilon?Math.pow(t,1/3):(un.kappa*t+16)/116}const i=e(t.x/gn.whitePoint.x),o=e(t.y/gn.whitePoint.y),s=e(t.z/gn.whitePoint.z);return new un(116*o-16,500*(i-o),200*(o-s))}(function(t){function e(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}const i=e(t.r),o=e(t.g),s=e(t.b);return new gn(.4124564*i+.3575761*o+.1804375*s,.2126729*i+.7151522*o+.072175*s,.0193339*i+.119192*o+.9503041*s)}(t))}function xn(t,e=1){return function(t,e=1){function i(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}const o=i(3.2404542*t.x-1.5371385*t.y-.4985314*t.z),s=i(-.969266*t.x+1.8760108*t.y+.041556*t.z),n=i(.0556434*t.x-.2040259*t.y+1.0572252*t.z);return new pn(o,s,n,e)}(function(t){const e=(t.l+16)/116,i=e+t.a/500,o=e-t.b/200,s=Math.pow(i,3),n=Math.pow(e,3),r=Math.pow(o,3);let a=0;a=s>un.epsilon?s:(116*i-16)/un.kappa;let l=0;l=t.l>un.epsilon*un.kappa?n:t.l/un.kappa;let c=0;return c=r>un.epsilon?r:(116*o-16)/un.kappa,a=gn.whitePoint.x*a,l=gn.whitePoint.y*l,c=gn.whitePoint.z*c,new gn(a,l,c)}(t),e)}var $n,wn;function kn(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new pn(cn(t,e.r,i.r),cn(t,e.g,i.g),cn(t,e.b,i.b),cn(t,e.a,i.a))}gn.whitePoint=new gn(.95047,1,1.08883),function(t){t[t.Burn=0]="Burn",t[t.Color=1]="Color",t[t.Darken=2]="Darken",t[t.Dodge=3]="Dodge",t[t.Lighten=4]="Lighten",t[t.Multiply=5]="Multiply",t[t.Overlay=6]="Overlay",t[t.Screen=7]="Screen"}($n||($n={})),function(t){t[t.RGB=0]="RGB",t[t.HSL=1]="HSL",t[t.HSV=2]="HSV",t[t.XYZ=3]="XYZ",t[t.LAB=4]="LAB",t[t.LCH=5]="LCH"}(wn||(wn={}));const Cn=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function In(t){const e=Cn.exec(t);if(null===e)return null;let i=e[1];if(3===i.length){const t=i.charAt(0),e=i.charAt(1),o=i.charAt(2);i=t.concat(t,e,e,o,o)}const o=parseInt(i,16);return isNaN(o)?null:new pn(an((16711680&o)>>>16,0,255),an((65280&o)>>>8,0,255),an(255&o,0,255),1)}function Fn(t,e){const i=t.relativeLuminance>e.relativeLuminance?t:e,o=t.relativeLuminance>e.relativeLuminance?e:t;return(i.relativeLuminance+.05)/(o.relativeLuminance+.05)}const Dn=Object.freeze({create:(t,e,i)=>new Tn(t,e,i),from:t=>new Tn(t.r,t.g,t.b)});class Tn extends pn{constructor(t,e,i){super(t,e,i,1),this.toColorString=this.toStringHexRGB,this.contrast=Fn.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=fn(this)}static fromObject(t){return new Tn(t.r,t.g,t.b)}}const Sn=(-.1+Math.sqrt(.21))/2;function On(t){return t.relativeLuminance<=Sn}function En(t){return On(t)?-1:1}const Vn={stepContrast:1.03,stepContrastRamp:.03,preserveSource:!1};const Rn=Object.freeze({create:function(t,e,i){return"number"==typeof t?Rn.from(Dn.create(t,e,i)):Rn.from(t)},from:function(t,e){return function(t){const e={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const i in e)if(typeof e[i]!=typeof t[i])return!1;return!0}(t)?An.from(t,e):An.from(Dn.create(t.r,t.g,t.b),e)}});class An{constructor(t,e){this.closestIndexCache=new Map,this.source=t,this.swatches=e,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(t,e,i,o){void 0===i&&(i=this.closestIndexOf(t));let s=this.swatches;const n=this.lastIndex;let r=i;void 0===o&&(o=En(t));return-1===o&&(s=this.reversedSwatches,r=n-r),function t(e,i,o=0,s=e.length-1){if(s===o)return e[o];const n=Math.floor((s-o)/2)+o;return i(e[n])?t(e,i,o,n):t(e,i,n+1,s)}(s,i=>Fn(t,i)>=e,r,n)}get(t){return this.swatches[t]||this.swatches[rn(t,0,this.lastIndex)]}closestIndexOf(t){if(this.closestIndexCache.has(t.relativeLuminance))return this.closestIndexCache.get(t.relativeLuminance);let e=this.swatches.indexOf(t);if(-1!==e)return this.closestIndexCache.set(t.relativeLuminance,e),e;const i=this.swatches.reduce((e,i)=>Math.abs(i.relativeLuminance-t.relativeLuminance)<Math.abs(e.relativeLuminance-t.relativeLuminance)?i:e);return e=this.swatches.indexOf(i),this.closestIndexCache.set(t.relativeLuminance,e),e}static saturationBump(t,e){const i=bn(t).s,o=bn(e);if(o.s<i){return function(t,e=1){const i=(1-Math.abs(2*t.l-1))*t.s,o=i*(1-Math.abs(t.h/60%2-1)),s=t.l-i/2;let n=0,r=0,a=0;return t.h<60?(n=i,r=o,a=0):t.h<120?(n=o,r=i,a=0):t.h<180?(n=0,r=i,a=o):t.h<240?(n=0,r=o,a=i):t.h<300?(n=o,r=0,a=i):t.h<360&&(n=i,r=0,a=o),new pn(n+s,r+s,a+s,e)}(new dn(o.h,i,o.l))}return e}static ramp(t){const e=t/100;return e>.5?(e-.5)/.5:2*e}static createHighResolutionPalette(t){const e=[],i=yn(pn.fromObject(t).roundToPrecision(4)),o=xn(new un(0,i.a,i.b)).clamp().roundToPrecision(4),s=xn(new un(50,i.a,i.b)).clamp().roundToPrecision(4),n=xn(new un(100,i.a,i.b)).clamp().roundToPrecision(4),r=new pn(0,0,0),a=new pn(1,1,1),l=n.equalValue(a)?0:14,c=o.equalValue(r)?0:14;for(let t=100+l;t>=0-c;t-=.5){let i;if(t<0){i=kn(t/c+1,r,o)}else if(t<=50)i=kn(An.ramp(t),o,s);else if(t<=100)i=kn(An.ramp(t),s,n);else{i=kn((t-100)/l,n,a)}i=An.saturationBump(s,i).roundToPrecision(4),e.push(Dn.from(i))}return new An(t,e)}static adjustEnd(t,e,i,o){const s=-1===o?e.swatches:e.reversedSwatches,n=t=>{const i=e.closestIndexOf(t);return 1===o?e.lastIndex-i:i};1===o&&i.reverse();const r=t(i[i.length-2]);if(hn(Fn(i[i.length-1],i[i.length-2]),2)<r){i.pop();const t=n(e.colorContrast(s[e.lastIndex],r,void 0,o))-n(i[i.length-2]);let a=1;for(let o=i.length-t-1;o<i.length;o++){const t=n(i[o]),r=o===i.length-1?e.lastIndex:t+a;i[o]=s[r],a++}}1===o&&i.reverse()}static createColorPaletteByContrast(t,e){const i=An.createHighResolutionPalette(t),o=t=>hn(e.stepContrast+e.stepContrast*(1-t.relativeLuminance)*e.stepContrastRamp,2),s=[];let n=e.preserveSource?t:i.swatches[0];s.push(n);do{const t=o(n);n=i.colorContrast(n,t,void 0,1),s.push(n)}while(n.relativeLuminance>0);if(e.preserveSource){n=t;do{const t=o(n);n=i.colorContrast(n,t,void 0,-1),s.unshift(n)}while(n.relativeLuminance<1)}return this.adjustEnd(o,i,s,-1),e.preserveSource&&this.adjustEnd(o,i,s,1),s}static from(t,e){const i=void 0===e?Vn:Object.assign(Object.assign({},Vn),e);return new An(t,Object.freeze(An.createColorPaletteByContrast(t,i)))}}const Ln=Dn.create(1,1,1),Pn=Dn.create(0,0,0),zn=Dn.create(.5,.5,.5),Hn=In("#0078D4"),Mn=Dn.create(Hn.r,Hn.g,Hn.b);function Bn(t,e,i,o,s){const n=t=>t.contrast(Ln)>=s?Ln:Pn,r=n(t),a=n(e);return{rest:r,hover:a,active:r.relativeLuminance===a.relativeLuminance?r:n(i),focus:n(o)}}class Nn{constructor(t,e,i,o){this.toColorString=()=>this.cssGradient,this.contrast=Fn.bind(null,this),this.createCSS=this.toColorString,this.color=new pn(t,e,i),this.cssGradient=o,this.relativeLuminance=fn(this.color),this.r=t,this.g=e,this.b=i}static fromObject(t,e){return new Nn(t.r,t.g,t.b,e)}}const jn=new pn(0,0,0),Un=new pn(1,1,1);function qn(t,e,i,o,s,n,r,a,l=10,c=!1){const h=t.closestIndexOf(e);function d(i){if(c){const o=t.closestIndexOf(e),s=t.get(o),n=i.relativeLuminance<e.relativeLuminance?jn:Un,r=function(t,e,i=null){let o=0,s=i;return null!==s?o=vn(t,e,s):(s=new pn(0,0,0,1),o=vn(t,e,s),o<=0&&(s=new pn(1,1,1,1),o=vn(t,e,s))),o=Math.round(1e3*o)/1e3,new pn(s.r,s.g,s.b,o)}(In(i.toColorString()),In(s.toColorString()),n).roundToPrecision(2),a=function(t,e){if(e.a>=1)return e;if(e.a<=0)return new pn(t.r,t.g,t.b,1);const i=e.a*e.r+(1-e.a)*t.r,o=e.a*e.g+(1-e.a)*t.g,s=e.a*e.b+(1-e.a)*t.b;return new pn(i,o,s,1)}(In(e.toColorString()),r);return Dn.from(a)}return i}void 0===a&&(a=En(e));const u=h+a*i,p=u+a*(o-i),g=u+a*(s-i),f=u+a*(n-i),m=-1===a?0:100-l,v=-1===a?l:100;function b(e,i){const o=t.get(e);if(i){const i=t.get(e+a*r),s=-1===a?i:o,n=-1===a?o:i,l=`linear-gradient(${d(s).toColorString()} ${m}%, ${d(n).toColorString()} ${v}%)`;return Nn.fromObject(s,l)}return d(o)}return{rest:b(u,!0),hover:b(p,!0),active:b(g,!1),focus:b(f,!0)}}function _n(t,e,i,o,s,n,r,a){null==a&&(a=En(e));const l=t.closestIndexOf(t.colorContrast(e,i));return{rest:t.get(l+a*o),hover:t.get(l+a*s),active:t.get(l+a*n),focus:t.get(l+a*r)}}function Gn(t,e,i,o,s,n,r){const a=t.closestIndexOf(e);return null==r&&(r=En(e)),{rest:t.get(a+r*i),hover:t.get(a+r*o),active:t.get(a+r*s),focus:t.get(a+r*n)}}function Wn(t,e,i,o,s,n,r,a,l,c,h,d){return On(e)?Gn(t,e,a,l,c,h,d):Gn(t,e,i,o,s,n,r)}var Kn;function Xn(t,e){return t.closestIndexOf((i=e,Dn.create(i,i,i)));var i}function Yn(t,e,i){return t.get(Xn(t,e)+-1*i)}!function(t){t[t.LightMode=.98]="LightMode",t[t.DarkMode=.15]="DarkMode"}(Kn||(Kn={}));const{create:Qn}=po;function Zn(t){return po.create({name:t,cssCustomPropertyName:null})}const Jn=Qn("direction").withDefault(He.ltr),tr=Qn("disabled-opacity").withDefault(.3),er=Qn("base-height-multiplier").withDefault(8),ir=Qn("base-horizontal-spacing-multiplier").withDefault(3),or=Qn("density").withDefault(0),sr=Qn("design-unit").withDefault(4),nr=Qn("control-corner-radius").withDefault(4),rr=Qn("layer-corner-radius").withDefault(8),ar=Qn("stroke-width").withDefault(1),lr=Qn("focus-stroke-width").withDefault(2),cr=Qn("body-font").withDefault('"Segoe UI Variable", "Segoe UI", sans-serif'),hr=Qn("font-weight").withDefault(400);function dr(t){return e=>{const i=t.getValueFor(e),o=hr.getValueFor(e);if(i.endsWith("px")){const t=Number.parseFloat(i.replace("px",""));if(t<=12)return`"wght" ${o}, "opsz" 8`;if(t>24)return`"wght" ${o}, "opsz" 36`}return`"wght" ${o}, "opsz" 10.5`}}const ur=Qn("type-ramp-base-font-size").withDefault("14px"),pr=Qn("type-ramp-base-line-height").withDefault("20px"),gr=Qn("type-ramp-base-font-variations").withDefault(dr(ur)),fr=Qn("type-ramp-minus-1-font-size").withDefault("12px"),mr=Qn("type-ramp-minus-1-line-height").withDefault("16px"),vr=Qn("type-ramp-minus-1-font-variations").withDefault(dr(fr)),br=Qn("type-ramp-minus-2-font-size").withDefault("10px"),yr=Qn("type-ramp-minus-2-line-height").withDefault("14px"),xr=Qn("type-ramp-minus-2-font-variations").withDefault(dr(br)),$r=Qn("type-ramp-plus-1-font-size").withDefault("16px"),wr=Qn("type-ramp-plus-1-line-height").withDefault("22px"),kr=Qn("type-ramp-plus-1-font-variations").withDefault(dr($r)),Cr=Qn("type-ramp-plus-2-font-size").withDefault("20px"),Ir=Qn("type-ramp-plus-2-line-height").withDefault("26px"),Fr=Qn("type-ramp-plus-2-font-variations").withDefault(dr(Cr)),Dr=Qn("type-ramp-plus-3-font-size").withDefault("24px"),Tr=Qn("type-ramp-plus-3-line-height").withDefault("32px"),Sr=Qn("type-ramp-plus-3-font-variations").withDefault(dr(Dr)),Or=Qn("type-ramp-plus-4-font-size").withDefault("28px"),Er=Qn("type-ramp-plus-4-line-height").withDefault("36px"),Vr=Qn("type-ramp-plus-4-font-variations").withDefault(dr(Or)),Rr=Qn("type-ramp-plus-5-font-size").withDefault("32px"),Ar=Qn("type-ramp-plus-5-line-height").withDefault("40px"),Lr=Qn("type-ramp-plus-5-font-variations").withDefault(dr(Rr)),Pr=Qn("type-ramp-plus-6-font-size").withDefault("40px"),zr=Qn("type-ramp-plus-6-line-height").withDefault("52px"),Hr=Qn("type-ramp-plus-6-font-variations").withDefault(dr(Pr)),Mr=Qn("base-layer-luminance").withDefault(Kn.LightMode),Br=Zn("accent-fill-rest-delta").withDefault(0),Nr=Zn("accent-fill-hover-delta").withDefault(-2),jr=Zn("accent-fill-active-delta").withDefault(-5),Ur=Zn("accent-fill-focus-delta").withDefault(0),qr=Zn("accent-foreground-rest-delta").withDefault(0),_r=Zn("accent-foreground-hover-delta").withDefault(3),Gr=Zn("accent-foreground-active-delta").withDefault(-8),Wr=Zn("accent-foreground-focus-delta").withDefault(0),Kr=Zn("neutral-fill-rest-delta").withDefault(-1),Xr=Zn("neutral-fill-hover-delta").withDefault(1),Yr=Zn("neutral-fill-active-delta").withDefault(0),Qr=Zn("neutral-fill-focus-delta").withDefault(0),Zr=Zn("neutral-fill-input-rest-delta").withDefault(-1),Jr=Zn("neutral-fill-input-hover-delta").withDefault(1),ta=Zn("neutral-fill-input-active-delta").withDefault(0),ea=Zn("neutral-fill-input-focus-delta").withDefault(-2),ia=Zn("neutral-fill-input-alt-rest-delta").withDefault(2),oa=Zn("neutral-fill-input-alt-hover-delta").withDefault(4),sa=Zn("neutral-fill-input-alt-active-delta").withDefault(6),na=Zn("neutral-fill-input-alt-focus-delta").withDefault(2),ra=Zn("neutral-fill-layer-rest-delta").withDefault(-2),aa=Zn("neutral-fill-layer-hover-delta").withDefault(-3),la=Zn("neutral-fill-layer-active-delta").withDefault(-3),ca=Zn("neutral-fill-layer-alt-rest-delta").withDefault(-1),ha=Zn("neutral-fill-secondary-rest-delta").withDefault(3),da=Zn("neutral-fill-secondary-hover-delta").withDefault(2),ua=Zn("neutral-fill-secondary-active-delta").withDefault(1),pa=Zn("neutral-fill-secondary-focus-delta").withDefault(3),ga=Zn("neutral-fill-stealth-rest-delta").withDefault(0),fa=Zn("neutral-fill-stealth-hover-delta").withDefault(3),ma=Zn("neutral-fill-stealth-active-delta").withDefault(2),va=Zn("neutral-fill-stealth-focus-delta").withDefault(0),ba=Zn("neutral-fill-strong-rest-delta").withDefault(0),ya=Zn("neutral-fill-strong-hover-delta").withDefault(8),xa=Zn("neutral-fill-strong-active-delta").withDefault(-5),$a=Zn("neutral-fill-strong-focus-delta").withDefault(0),wa=Zn("neutral-stroke-rest-delta").withDefault(8),ka=Zn("neutral-stroke-hover-delta").withDefault(12),Ca=Zn("neutral-stroke-active-delta").withDefault(6),Ia=Zn("neutral-stroke-focus-delta").withDefault(8),Fa=Zn("neutral-stroke-control-rest-delta").withDefault(3),Da=Zn("neutral-stroke-control-hover-delta").withDefault(5),Ta=Zn("neutral-stroke-control-active-delta").withDefault(5),Sa=Zn("neutral-stroke-control-focus-delta").withDefault(5),Oa=Zn("neutral-stroke-divider-rest-delta").withDefault(4),Ea=Zn("neutral-stroke-layer-rest-delta").withDefault(3),Va=Zn("neutral-stroke-layer-hover-delta").withDefault(3),Ra=Zn("neutral-stroke-layer-active-delta").withDefault(3),Aa=Zn("neutral-stroke-strong-hover-delta").withDefault(0),La=Zn("neutral-stroke-strong-active-delta").withDefault(0),Pa=Zn("neutral-stroke-strong-focus-delta").withDefault(0),za=Qn("neutral-base-color").withDefault(zn),Ha=Zn("neutral-palette").withDefault(t=>Rn.from(za.getValueFor(t))),Ma=Qn("accent-base-color").withDefault(Mn),Ba=Zn("accent-palette").withDefault(t=>Rn.from(Ma.getValueFor(t))),Na=Zn("neutral-layer-card-container-recipe").withDefault({evaluate:t=>Yn(Ha.getValueFor(t),Mr.getValueFor(t),ra.getValueFor(t))}),ja=Qn("neutral-layer-card-container").withDefault(t=>Na.getValueFor(t).evaluate(t)),Ua=Zn("neutral-layer-floating-recipe").withDefault({evaluate:t=>function(t,e,i){return t.get(Xn(t,e)+i)}(Ha.getValueFor(t),Mr.getValueFor(t),ra.getValueFor(t))}),qa=Qn("neutral-layer-floating").withDefault(t=>Ua.getValueFor(t).evaluate(t)),_a=Zn("neutral-layer-1-recipe").withDefault({evaluate:t=>function(t,e){return t.get(Xn(t,e))}(Ha.getValueFor(t),Mr.getValueFor(t))}),Ga=Qn("neutral-layer-1").withDefault(t=>_a.getValueFor(t).evaluate(t)),Wa=Zn("neutral-layer-2-recipe").withDefault({evaluate:t=>Yn(Ha.getValueFor(t),Mr.getValueFor(t),ra.getValueFor(t))}),Ka=Qn("neutral-layer-2").withDefault(t=>Wa.getValueFor(t).evaluate(t)),Xa=Zn("neutral-layer-3-recipe").withDefault({evaluate:t=>function(t,e,i){return t.get(Xn(t,e)+-1*i*2)}(Ha.getValueFor(t),Mr.getValueFor(t),ra.getValueFor(t))}),Ya=Qn("neutral-layer-3").withDefault(t=>Xa.getValueFor(t).evaluate(t)),Qa=Zn("neutral-layer-4-recipe").withDefault({evaluate:t=>function(t,e,i){return t.get(Xn(t,e)+-1*i*3)}(Ha.getValueFor(t),Mr.getValueFor(t),ra.getValueFor(t))}),Za=Qn("neutral-layer-4").withDefault(t=>Qa.getValueFor(t).evaluate(t)),Ja=Qn("fill-color").withDefault(t=>Ga.getValueFor(t));var tl;!function(t){t[t.normal=4.5]="normal",t[t.large=3]="large"}(tl||(tl={}));const el=Zn("accent-fill-recipe").withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a,l,c,h,d,u,p){return On(e)?_n(t,e,l,c,h,d,u,p):_n(t,e,i,o,s,n,r,a)}(Ba.getValueFor(t),e||Ja.getValueFor(t),5,Br.getValueFor(t),Nr.getValueFor(t),jr.getValueFor(t),Ur.getValueFor(t),void 0,8,Br.getValueFor(t),Nr.getValueFor(t),jr.getValueFor(t),Ur.getValueFor(t),void 0)}),il=Qn("accent-fill-rest").withDefault(t=>el.getValueFor(t).evaluate(t).rest),ol=Qn("accent-fill-hover").withDefault(t=>el.getValueFor(t).evaluate(t).hover),sl=Qn("accent-fill-active").withDefault(t=>el.getValueFor(t).evaluate(t).active),nl=Qn("accent-fill-focus").withDefault(t=>el.getValueFor(t).evaluate(t).focus),rl=Zn("foreground-on-accent-recipe").withDefault({evaluate:t=>Bn(il.getValueFor(t),ol.getValueFor(t),sl.getValueFor(t),nl.getValueFor(t),tl.normal)}),al=Qn("foreground-on-accent-rest").withDefault(t=>rl.getValueFor(t).evaluate(t).rest),ll=Qn("foreground-on-accent-hover").withDefault(t=>rl.getValueFor(t).evaluate(t).hover),cl=Qn("foreground-on-accent-active").withDefault(t=>rl.getValueFor(t).evaluate(t).active),hl=Qn("foreground-on-accent-focus").withDefault(t=>rl.getValueFor(t).evaluate(t).focus),dl=Zn("accent-foreground-recipe").withDefault({evaluate:(t,e)=>_n(Ba.getValueFor(t),e||Ja.getValueFor(t),9.5,qr.getValueFor(t),_r.getValueFor(t),Gr.getValueFor(t),Wr.getValueFor(t))}),ul=Qn("accent-foreground-rest").withDefault(t=>dl.getValueFor(t).evaluate(t).rest),pl=Qn("accent-foreground-hover").withDefault(t=>dl.getValueFor(t).evaluate(t).hover),gl=Qn("accent-foreground-active").withDefault(t=>dl.getValueFor(t).evaluate(t).active),fl=Qn("accent-foreground-focus").withDefault(t=>dl.getValueFor(t).evaluate(t).focus),ml=Zn("accent-stroke-control-recipe").withDefault({evaluate:(t,e)=>qn(Ha.getValueFor(t),e||Ja.getValueFor(t),-3,-3,-3,-3,10,1,void 0,!0)}),vl=Qn("accent-stroke-control-rest").withDefault(t=>ml.getValueFor(t).evaluate(t,il.getValueFor(t)).rest),bl=Qn("accent-stroke-control-hover").withDefault(t=>ml.getValueFor(t).evaluate(t,ol.getValueFor(t)).hover),yl=Qn("accent-stroke-control-active").withDefault(t=>ml.getValueFor(t).evaluate(t,sl.getValueFor(t)).active),xl=Qn("accent-stroke-control-focus").withDefault(t=>ml.getValueFor(t).evaluate(t,nl.getValueFor(t)).focus),$l=Zn("neutral-fill-recipe").withDefault({evaluate:(t,e)=>Wn(Ha.getValueFor(t),e||Ja.getValueFor(t),Kr.getValueFor(t),Xr.getValueFor(t),Yr.getValueFor(t),Qr.getValueFor(t),void 0,2,3,1,2,void 0)}),wl=Qn("neutral-fill-rest").withDefault(t=>$l.getValueFor(t).evaluate(t).rest),kl=Qn("neutral-fill-hover").withDefault(t=>$l.getValueFor(t).evaluate(t).hover),Cl=Qn("neutral-fill-active").withDefault(t=>$l.getValueFor(t).evaluate(t).active),Il=Qn("neutral-fill-focus").withDefault(t=>$l.getValueFor(t).evaluate(t).focus),Fl=Zn("neutral-fill-input-recipe").withDefault({evaluate:(t,e)=>Wn(Ha.getValueFor(t),e||Ja.getValueFor(t),Zr.getValueFor(t),Jr.getValueFor(t),ta.getValueFor(t),ea.getValueFor(t),void 0,2,3,1,0,void 0)}),Dl=Qn("neutral-fill-input-rest").withDefault(t=>Fl.getValueFor(t).evaluate(t).rest),Tl=Qn("neutral-fill-input-hover").withDefault(t=>Fl.getValueFor(t).evaluate(t).hover),Sl=Qn("neutral-fill-input-active").withDefault(t=>Fl.getValueFor(t).evaluate(t).active),Ol=Qn("neutral-fill-input-focus").withDefault(t=>Fl.getValueFor(t).evaluate(t).focus),El=Zn("neutral-fill-input-alt-recipe").withDefault({evaluate:(t,e)=>Wn(Ha.getValueFor(t),e||Ja.getValueFor(t),ia.getValueFor(t),oa.getValueFor(t),sa.getValueFor(t),na.getValueFor(t),1,ia.getValueFor(t),ia.getValueFor(t)-oa.getValueFor(t),ia.getValueFor(t)-sa.getValueFor(t),na.getValueFor(t),1)}),Vl=Qn("neutral-fill-input-alt-rest").withDefault(t=>El.getValueFor(t).evaluate(t).rest),Rl=Qn("neutral-fill-input-alt-hover").withDefault(t=>El.getValueFor(t).evaluate(t).hover),Al=Qn("neutral-fill-input-alt-active").withDefault(t=>El.getValueFor(t).evaluate(t).active),Ll=Qn("neutral-fill-input-alt-focus").withDefault(t=>El.getValueFor(t).evaluate(t).focus),Pl=Zn("neutral-fill-layer-recipe").withDefault({evaluate:(t,e)=>Gn(Ha.getValueFor(t),e||Ja.getValueFor(t),ra.getValueFor(t),aa.getValueFor(t),la.getValueFor(t),ra.getValueFor(t),1)}),zl=Qn("neutral-fill-layer-rest").withDefault(t=>Pl.getValueFor(t).evaluate(t).rest),Hl=Qn("neutral-fill-layer-hover").withDefault(t=>Pl.getValueFor(t).evaluate(t).hover),Ml=Qn("neutral-fill-layer-active").withDefault(t=>Pl.getValueFor(t).evaluate(t).active),Bl=Zn("neutral-fill-layer-alt-recipe").withDefault({evaluate:(t,e)=>Gn(Ha.getValueFor(t),e||Ja.getValueFor(t),ca.getValueFor(t),ca.getValueFor(t),ca.getValueFor(t),ca.getValueFor(t))}),Nl=Qn("neutral-fill-layer-alt-rest").withDefault(t=>Bl.getValueFor(t).evaluate(t).rest),jl=Zn("neutral-fill-secondary-recipe").withDefault({evaluate:(t,e)=>Gn(Ha.getValueFor(t),e||Ja.getValueFor(t),ha.getValueFor(t),da.getValueFor(t),ua.getValueFor(t),pa.getValueFor(t))}),Ul=Qn("neutral-fill-secondary-rest").withDefault(t=>jl.getValueFor(t).evaluate(t).rest),ql=Qn("neutral-fill-secondary-hover").withDefault(t=>jl.getValueFor(t).evaluate(t).hover),_l=Qn("neutral-fill-secondary-active").withDefault(t=>jl.getValueFor(t).evaluate(t).active),Gl=Qn("neutral-fill-secondary-focus").withDefault(t=>jl.getValueFor(t).evaluate(t).focus),Wl=Zn("neutral-fill-stealth-recipe").withDefault({evaluate:(t,e)=>Gn(Ha.getValueFor(t),e||Ja.getValueFor(t),ga.getValueFor(t),fa.getValueFor(t),ma.getValueFor(t),va.getValueFor(t))}),Kl=Qn("neutral-fill-stealth-rest").withDefault(t=>Wl.getValueFor(t).evaluate(t).rest),Xl=Qn("neutral-fill-stealth-hover").withDefault(t=>Wl.getValueFor(t).evaluate(t).hover),Yl=Qn("neutral-fill-stealth-active").withDefault(t=>Wl.getValueFor(t).evaluate(t).active),Ql=Qn("neutral-fill-stealth-focus").withDefault(t=>Wl.getValueFor(t).evaluate(t).focus),Zl=Zn("neutral-fill-strong-recipe").withDefault({evaluate:(t,e)=>_n(Ha.getValueFor(t),e||Ja.getValueFor(t),4.5,ba.getValueFor(t),ya.getValueFor(t),xa.getValueFor(t),$a.getValueFor(t))}),Jl=Qn("neutral-fill-strong-rest").withDefault(t=>Zl.getValueFor(t).evaluate(t).rest),tc=Qn("neutral-fill-strong-hover").withDefault(t=>Zl.getValueFor(t).evaluate(t).hover),ec=Qn("neutral-fill-strong-active").withDefault(t=>Zl.getValueFor(t).evaluate(t).active),ic=Qn("neutral-fill-strong-focus").withDefault(t=>Zl.getValueFor(t).evaluate(t).focus),oc=Zn("neutral-foreground-recipe").withDefault({evaluate:(t,e)=>_n(Ha.getValueFor(t),e||Ja.getValueFor(t),16,0,-19,-30,0)}),sc=Qn("neutral-foreground-rest").withDefault(t=>oc.getValueFor(t).evaluate(t).rest),nc=Qn("neutral-foreground-hover").withDefault(t=>oc.getValueFor(t).evaluate(t).hover),rc=Qn("neutral-foreground-active").withDefault(t=>oc.getValueFor(t).evaluate(t).active),ac=Qn("neutral-foreground-focus").withDefault(t=>oc.getValueFor(t).evaluate(t).focus),lc=Zn("neutral-foreground-hint-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){return t.colorContrast(e,i)}(Ha.getValueFor(t),e||Ja.getValueFor(t),4.5)}),cc=Qn("neutral-foreground-hint").withDefault(t=>lc.getValueFor(t).evaluate(t)),hc=Zn("neutral-stroke-recipe").withDefault({evaluate:(t,e)=>Gn(Ha.getValueFor(t),e||Ja.getValueFor(t),wa.getValueFor(t),ka.getValueFor(t),Ca.getValueFor(t),Ia.getValueFor(t))}),dc=Qn("neutral-stroke-rest").withDefault(t=>hc.getValueFor(t).evaluate(t).rest),uc=Qn("neutral-stroke-hover").withDefault(t=>hc.getValueFor(t).evaluate(t).hover),pc=Qn("neutral-stroke-active").withDefault(t=>hc.getValueFor(t).evaluate(t).active),gc=Qn("neutral-stroke-focus").withDefault(t=>hc.getValueFor(t).evaluate(t).focus),fc=Zn("neutral-stroke-control-recipe").withDefault({evaluate:(t,e)=>qn(Ha.getValueFor(t),e||Ja.getValueFor(t),Fa.getValueFor(t),Da.getValueFor(t),Ta.getValueFor(t),Sa.getValueFor(t),5)}),mc=Qn("neutral-stroke-control-rest").withDefault(t=>fc.getValueFor(t).evaluate(t).rest),vc=Qn("neutral-stroke-control-hover").withDefault(t=>fc.getValueFor(t).evaluate(t).hover),bc=Qn("neutral-stroke-control-active").withDefault(t=>fc.getValueFor(t).evaluate(t).active),yc=Qn("neutral-stroke-control-focus").withDefault(t=>fc.getValueFor(t).evaluate(t).focus),xc=Zn("neutral-stroke-divider-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){return t.get(t.closestIndexOf(e)+En(e)*i)}(Ha.getValueFor(t),e||Ja.getValueFor(t),Oa.getValueFor(t))}),$c=Qn("neutral-stroke-divider-rest").withDefault(t=>xc.getValueFor(t).evaluate(t)),wc=Zn("neutral-stroke-input-recipe").withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a){const l=t.closestIndexOf(e),c=En(e),h=l+c*i,d=h+c*(o-i),u=h+c*(s-i),p=h+c*(n-i),g=`calc(100% - ${a})`;function f(e,i){const o=t.get(e);if(i){const i=t.get(e+c*r),s=`linear-gradient(${o.toColorString()} ${g}, ${i.toColorString()} ${g}, ${i.toColorString()})`;return Nn.fromObject(o,s)}return o}return{rest:f(h,!0),hover:f(d,!0),active:f(u,!1),focus:f(p,!0)}}(Ha.getValueFor(t),e||Ja.getValueFor(t),Fa.getValueFor(t),Da.getValueFor(t),Ta.getValueFor(t),Sa.getValueFor(t),20,ar.getValueFor(t)+"px")}),kc=Qn("neutral-stroke-input-rest").withDefault(t=>wc.getValueFor(t).evaluate(t).rest),Cc=Qn("neutral-stroke-input-hover").withDefault(t=>wc.getValueFor(t).evaluate(t).hover),Ic=Qn("neutral-stroke-input-active").withDefault(t=>wc.getValueFor(t).evaluate(t).active),Fc=Qn("neutral-stroke-input-focus").withDefault(t=>wc.getValueFor(t).evaluate(t).focus),Dc=Zn("neutral-stroke-layer-recipe").withDefault({evaluate:(t,e)=>Gn(Ha.getValueFor(t),e||Ja.getValueFor(t),Ea.getValueFor(t),Va.getValueFor(t),Ra.getValueFor(t),Ea.getValueFor(t))}),Tc=Qn("neutral-stroke-layer-rest").withDefault(t=>Dc.getValueFor(t).evaluate(t).rest),Sc=Qn("neutral-stroke-layer-hover").withDefault(t=>Dc.getValueFor(t).evaluate(t).hover),Oc=Qn("neutral-stroke-layer-active").withDefault(t=>Dc.getValueFor(t).evaluate(t).active),Ec=Zn("neutral-stroke-strong-recipe").withDefault({evaluate:(t,e)=>_n(Ha.getValueFor(t),e||Ja.getValueFor(t),5.5,0,Aa.getValueFor(t),La.getValueFor(t),Pa.getValueFor(t))}),Vc=Qn("neutral-stroke-strong-rest").withDefault(t=>Ec.getValueFor(t).evaluate(t).rest),Rc=Qn("neutral-stroke-strong-hover").withDefault(t=>Ec.getValueFor(t).evaluate(t).hover),Ac=Qn("neutral-stroke-strong-active").withDefault(t=>Ec.getValueFor(t).evaluate(t).active),Lc=Qn("neutral-stroke-strong-focus").withDefault(t=>Ec.getValueFor(t).evaluate(t).focus),Pc=Zn("focus-stroke-outer-recipe").withDefault({evaluate:t=>(Ha.getValueFor(t),On(Ja.getValueFor(t))?Ln:Pn)}),zc=Qn("focus-stroke-outer").withDefault(t=>Pc.getValueFor(t).evaluate(t)),Hc=Zn("focus-stroke-inner-recipe").withDefault({evaluate:t=>{return Ba.getValueFor(t),e=Ja.getValueFor(t),zc.getValueFor(t),On(e)?Pn:Ln;var e}}),Mc=Qn("focus-stroke-inner").withDefault(t=>Hc.getValueFor(t).evaluate(t)),Bc=Zn("foreground-on-accent-large-recipe").withDefault({evaluate:t=>Bn(il.getValueFor(t),ol.getValueFor(t),sl.getValueFor(t),nl.getValueFor(t),tl.large)}),Nc=Qn("foreground-on-accent-rest-large").withDefault(t=>Bc.getValueFor(t).evaluate(t).rest),jc=Qn("foreground-on-accent-hover-large").withDefault(t=>Bc.getValueFor(t).evaluate(t,ol.getValueFor(t)).hover),Uc=Qn("foreground-on-accent-active-large").withDefault(t=>Bc.getValueFor(t).evaluate(t,sl.getValueFor(t)).active),qc=Qn("foreground-on-accent-focus-large").withDefault(t=>Bc.getValueFor(t).evaluate(t,nl.getValueFor(t)).focus),_c=Qn("neutral-fill-inverse-rest-delta").withDefault(0),Gc=Qn("neutral-fill-inverse-hover-delta").withDefault(-3),Wc=Qn("neutral-fill-inverse-active-delta").withDefault(7),Kc=Qn("neutral-fill-inverse-focus-delta").withDefault(0);const Xc=Zn("neutral-fill-inverse-recipe").withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=En(e),a=t.closestIndexOf(t.colorContrast(e,14)),l=a+r*Math.abs(i-o);let c,h;return(1===r?i<o:r*i>r*o)?(c=a,h=l):(c=l,h=a),{rest:t.get(c),hover:t.get(h),active:t.get(c+r*s),focus:t.get(c+r*n)}}(Ha.getValueFor(t),e||Ja.getValueFor(t),_c.getValueFor(t),Gc.getValueFor(t),Wc.getValueFor(t),Kc.getValueFor(t))}),Yc=Qn("neutral-fill-inverse-rest").withDefault(t=>Xc.getValueFor(t).evaluate(t).rest),Qc=Qn("neutral-fill-inverse-hover").withDefault(t=>Xc.getValueFor(t).evaluate(t).hover),Zc=Qn("neutral-fill-inverse-active").withDefault(t=>Xc.getValueFor(t).evaluate(t).active),Jc=Qn("neutral-fill-inverse-focus").withDefault(t=>Xc.getValueFor(t).evaluate(t).focus),th=nr,eh=rr,ih=ar,oh=lr,sh=_c,nh=Gc,rh=Wc,ah=Kc,lh=ra,ch=ba,hh=ya,dh=xa,uh=$a,ph=Oa,gh=Ga,fh=Ka,mh=Ya,vh=Za,bh=al,yh=Nc,xh=$c,$h=zl,wh=Yc,kh=Qc,Ch=Zc,Ih=Jc,Fh=Jl,Dh=tc,Th=ec,Sh=ic,Oh=zc,Eh=Mc,Vh=dc,Rh=uc,Ah=pc,Lh=gc,Ph=ft`
|
|
22
22
|
font-family: ${cr};
|
|
23
23
|
font-size: ${ur};
|
|
24
24
|
line-height: ${pr};
|
|
25
25
|
font-weight: initial;
|
|
26
26
|
font-variation-settings: ${gr};
|
|
27
|
-
`,
|
|
27
|
+
`,zh=ft`
|
|
28
28
|
font-family: ${cr};
|
|
29
29
|
font-size: ${fr};
|
|
30
30
|
line-height: ${mr};
|
|
31
31
|
font-weight: initial;
|
|
32
32
|
font-variation-settings: ${vr};
|
|
33
|
-
`,
|
|
33
|
+
`,Hh=ft`
|
|
34
34
|
font-family: ${cr};
|
|
35
35
|
font-size: ${br};
|
|
36
36
|
line-height: ${yr};
|
|
@@ -69,14 +69,21 @@ var wo=["input","select","textarea","a[href]","button","[tabindex]","audio[contr
|
|
|
69
69
|
`,qh=ft`
|
|
70
70
|
font-family: ${cr};
|
|
71
71
|
font-size: ${Pr};
|
|
72
|
-
line-height: ${
|
|
72
|
+
line-height: ${zr};
|
|
73
73
|
font-weight: initial;
|
|
74
|
-
font-variation-settings: ${
|
|
74
|
+
font-variation-settings: ${Hr};
|
|
75
75
|
`,_h=(t,e)=>pt`
|
|
76
76
|
${sn("flex")} :host{box-sizing:border-box;flex-direction:column;${Ph}
|
|
77
|
-
color:${sc};gap:calc(${sr} * 1px)}`,Gh=ft`
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
color:${sc};gap:calc(${sr} * 1px)}`,Gh=ft`
|
|
78
|
+
outline: calc(${lr} * 1px) solid ${zc};
|
|
79
|
+
outline-offset: calc(${lr} * -1px);
|
|
80
|
+
`,Wh=ft`
|
|
81
|
+
outline: calc(${lr} * 1px) solid ${zc};
|
|
82
|
+
outline-offset: calc(${ar} * 1px);
|
|
83
|
+
`,Kh=ft`(${er} + ${or}) * ${sr}`,Xh=po.create("neutral-fill-stealth-rest-on-neutral-fill-layer-rest").withDefault(t=>{const e=Pl.getValueFor(t);return Wl.getValueFor(t).evaluate(t,e.evaluate(t).rest).rest}),Yh=po.create("neutral-fill-stealth-hover-on-neutral-fill-layer-rest").withDefault(t=>{const e=Pl.getValueFor(t);return Wl.getValueFor(t).evaluate(t,e.evaluate(t).rest).hover}),Qh=po.create("neutral-fill-stealth-active-on-neutral-fill-layer-rest").withDefault(t=>{const e=Pl.getValueFor(t);return Wl.getValueFor(t).evaluate(t,e.evaluate(t).rest).active}),Zh=(t,e)=>pt`
|
|
84
|
+
${sn("flex")} :host{box-sizing:border-box;${Ph};flex-direction:column;background:${zl};color:${sc};border:calc(${ar} * 1px) solid ${Tc};border-radius:calc(${rr} * 1px)}.region{display:none;padding:calc(${sr} * 2 * 1px);background:${Nl}}.heading{display:grid;position:relative;grid-template-columns:auto 1fr auto auto;align-items:center}.button{appearance:none;border:none;background:none;grid-column:2;grid-row:1;outline:none;margin:calc(${sr} * 3 * 1px) 0;padding:0 calc(${sr} * 2 * 1px);text-align:left;color:inherit;cursor:pointer;font:inherit}.button::before{content:'';position:absolute;top:calc(${ar} * -1px);left:calc(${ar} * -1px);right:calc(${ar} * -1px);bottom:calc(${ar} * -1px);cursor:pointer}.button:${nn}::before{${Gh}
|
|
85
|
+
border-radius:calc(${rr} * 1px)}:host(.expanded) .button:${nn}::before{border-bottom-left-radius:0;border-bottom-right-radius:0}:host(.expanded) .region{display:block;border-top:calc(${ar} * 1px) solid ${Tc};border-bottom-left-radius:calc((${rr} - ${ar}) * 1px);border-bottom-right-radius:calc((${rr} - ${ar}) * 1px)}.icon{display:flex;align-items:center;justify-content:center;grid-column:4;pointer-events:none;background:${Xh};border-radius:calc(${nr} * 1px);fill:currentcolor;width:calc(${Kh} * 1px);height:calc(${Kh} * 1px);margin:calc(${sr} * 2 * 1px)}.heading:hover .icon{background:${Yh}}.heading:active .icon{background:${Qh}}slot[name='collapsed-icon']{display:flex}:host(.expanded) slot[name='collapsed-icon']{display:none}slot[name='expanded-icon']{display:none}:host(.expanded) slot[name='expanded-icon']{display:flex}.start{display:flex;align-items:center;padding-inline-start:calc(${sr} * 2 * 1px);justify-content:center;grid-column:1}.end{display:flex;align-items:center;justify-content:center;grid-column:3}.icon,.start,.end{position:relative}`.withBehaviors(en(pt`
|
|
86
|
+
.button:${nn}::before{outline-color:${qe.Highlight}}.icon{fill:${qe.ButtonText}}`)),Jh=Ee.compose({baseName:"accordion-item",template:(t,e)=>q`<template class="${t=>t.expanded?"expanded":""}"><div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${It("expandbutton")} aria-expanded="${t=>t.expanded}" aria-controls="${t=>t.id}-panel" id="${t=>t.id}" @click="${(t,e)=>t.clickHandler(e.event)}"><span class="heading-content" part="heading-content"><slot name="heading"></slot></span></button>${Nt(0,e)} ${Bt(0,e)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon" part="expanded-icon">${e.expandedIcon||""}</slot><slot name="collapsed-icon" part="collapsed-icon">${e.collapsedIcon||""}</slot><span></div><div class="region" part="region" id="${t=>t.id}-panel" role="region" aria-labelledby="${t=>t.id}"><slot></slot></div></template>`,styles:Zh,collapsedIcon:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <path d="M2.15 4.65c.2-.2.5-.2.7 0L6 7.79l3.15-3.14a.5.5 0 11.7.7l-3.5 3.5a.5.5 0 01-.7 0l-3.5-3.5a.5.5 0 010-.7z"/>\n </svg>\n ',expandedIcon:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <path d="M2.15 7.35c.2.2.5.2.7 0L6 4.21l3.15 3.14a.5.5 0 10.7-.7l-3.5-3.5a.5.5 0 00-.7 0l-3.5 3.5a.5.5 0 000 .7z"/>\n </svg>\n '}),td=Zh,ed=We.compose({baseName:"accordion",template:(t,e)=>q`<template><slot ${Pt({property:"accordionItems",filter:Rt()})}></slot><slot name="item" part="item" ${Pt("accordionItems")}></slot></template>`,styles:_h}),id=_h;
|
|
80
87
|
/*! *****************************************************************************
|
|
81
88
|
Copyright (c) Microsoft Corporation.
|
|
82
89
|
|
|
@@ -91,183 +98,187 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
91
98
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
92
99
|
PERFORMANCE OF THIS SOFTWARE.
|
|
93
100
|
***************************************************************************** */
|
|
94
|
-
function
|
|
95
|
-
${sn("inline-flex")} :host{position:relative;box-sizing:border-box
|
|
96
|
-
height:calc(${
|
|
97
|
-
:host .control{background:${qe.ButtonFace};border-color:${qe.ButtonText};color:${qe.ButtonText};fill:currentcolor}:host(:not([disabled])) .control:hover,:host .control${i}:hover,.control${i}:hover{forced-color-adjust:none;background:${qe.Highlight};color:${qe.HighlightText}}.control:${nn},:host .control:${nn},:host(:${nn}) .control{forced-color-adjust:none;background:${qe.ButtonFace};
|
|
98
|
-
:host .control{background:padding-box linear-gradient(${il},${il}),border-box ${vl};color:${al}}:host .control${i}:hover{background:padding-box linear-gradient(${ol},${ol}),border-box ${bl};color:${ll}}:host .control${i}:active{background:padding-box linear-gradient(${sl},${sl}),border-box ${yl};color:${cl}}:host .control:${nn}{
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
function od(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}class sd{constructor(t,e){this.cache=new WeakMap,this.ltr=t,this.rtl=e}bind(t){this.attach(t)}unbind(t){const e=this.cache.get(t);e&&Jn.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new nd(this.ltr,this.rtl,t),i=Jn.getValueFor(t);Jn.subscribe(e),e.attach(i),this.cache.set(t,e)}}class nd{constructor(t,e,i){this.ltr=t,this.rtl=e,this.source=i,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(this.source))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const rd="0 0 2px rgba(0, 0, 0, 0.14)",ad="0 calc(var(--elevation) * 0.5px) calc((var(--elevation) * 1px)) rgba(0, 0, 0, 0.2)",ld=`box-shadow: 0 0 2px rgba(0, 0, 0, 0.14), ${ad};`,cd=po.create({name:"elevation-shadow",cssCustomPropertyName:null}).withDefault({evaluate:(t,e,i)=>{let o=.12,s=.14;e>16&&(o=.2,s=.24);return`${`0 0 2px rgba(0, 0, 0, ${o})`}, ${`0 calc(${e} * 0.5px) calc((${e} * 1px)) rgba(0, 0, 0, ${s})`}`}}),hd=po.create("elevation-shadow-card-rest-size").withDefault(4),dd=po.create("elevation-shadow-card-hover-size").withDefault(8),ud=po.create("elevation-shadow-card-active-size").withDefault(0),pd=po.create("elevation-shadow-card-focus-size").withDefault(8),gd=po.create("elevation-shadow-card-rest").withDefault(t=>cd.getValueFor(t).evaluate(t,hd.getValueFor(t))),fd=po.create("elevation-shadow-card-hover").withDefault(t=>cd.getValueFor(t).evaluate(t,dd.getValueFor(t))),md=po.create("elevation-shadow-card-active").withDefault(t=>cd.getValueFor(t).evaluate(t,ud.getValueFor(t))),vd=po.create("elevation-shadow-card-focus").withDefault(t=>cd.getValueFor(t).evaluate(t,pd.getValueFor(t))),bd=po.create("elevation-shadow-tooltip-size").withDefault(16),yd=po.create("elevation-shadow-tooltip").withDefault(t=>cd.getValueFor(t).evaluate(t,bd.getValueFor(t))),xd=po.create("elevation-shadow-flyout-size").withDefault(32),$d=po.create("elevation-shadow-flyout").withDefault(t=>cd.getValueFor(t).evaluate(t,xd.getValueFor(t))),wd=po.create("elevation-shadow-dialog-size").withDefault(128),kd=po.create("elevation-shadow-dialog").withDefault(t=>cd.getValueFor(t).evaluate(t,wd.getValueFor(t))),Cd=(t,e,i="",o="")=>pt`
|
|
102
|
+
${sn("inline-flex")} :host{position:relative;box-sizing:border-box;${Ph}
|
|
103
|
+
height:calc(${Kh} * 1px);min-width:calc(${Kh} * 1px);color:${sc};border-radius:calc(${nr} * 1px);fill:currentcolor;cursor:pointer}:host .control{background:padding-box linear-gradient(${wl},${wl}),border-box ${mc};border:calc(${ar} * 1px) solid transparent;flex-grow:1;box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;padding:0 calc((10 + (${sr} * 2 * ${or})) * 1px);white-space:nowrap;outline:none;text-decoration:none;color:inherit;border-radius:inherit;fill:inherit;cursor:inherit;font-family:inherit}.control,.end,.start{font:inherit}.control.icon-only{padding:0;line-height:0}:host .control${i}:hover{background:padding-box linear-gradient(${kl},${kl}),border-box ${vc}}:host .control${i}:active{background:padding-box linear-gradient(${Cl},${Cl}),border-box ${bc}}:host .control:${nn}{${Gh}}:host .control${o}{background:padding-box linear-gradient(${wl},${wl}),border-box ${dc}}.control::-moz-focus-inner{border:0}.content{pointer-events:none}.start,.end{display:flex;pointer-events:none}.start{margin-inline-end:11px}.end{margin-inline-start:11px}`.withBehaviors(en(pt`
|
|
104
|
+
:host .control{background:${qe.ButtonFace};border-color:${qe.ButtonText};color:${qe.ButtonText};fill:currentcolor}:host(:not([disabled])) .control:hover,:host .control${i}:hover,.control${i}:hover{forced-color-adjust:none;background:${qe.Highlight};color:${qe.HighlightText}}.control:${nn},:host .control:${nn},:host(:${nn}) .control{forced-color-adjust:none;background:${qe.ButtonFace};outline-color:${qe.Highlight}}:host([href]) .control{background:${qe.ButtonFace};border-color:${qe.LinkText};color:${qe.LinkText};fill:currentcolor}:host([href]) .control:hover,:host(.neutral[href]) .control:hover{background:${qe.LinkText};border-color:${qe.LinkText} !important;color:${qe.HighlightText};fill:currentcolor}:host([href]) .control:${nn}{forced-color-adjust:none;outline-color:${qe.LinkText}}`)),Id=(t,e,i="",o="")=>pt`
|
|
105
|
+
:host .control{background:padding-box linear-gradient(${il},${il}),border-box ${vl};color:${al}}:host .control${i}:hover{background:padding-box linear-gradient(${ol},${ol}),border-box ${bl};color:${ll}}:host .control${i}:active{background:padding-box linear-gradient(${sl},${sl}),border-box ${yl};color:${cl}}:host .control:${nn}{${Gh}
|
|
106
|
+
box-shadow:0 0 0 calc(((${lr} + ${ar}) - ${ar}) * 1px) ${Mc} inset !important}:host .control${o}{background:${il}}`.withBehaviors(en(pt`
|
|
107
|
+
:host .control{forced-color-adjust:none;background:${qe.Highlight};color:${qe.HighlightText}}:host .control${i}:hover,:host .control${i}:active{background:${qe.HighlightText};border-color:${qe.Highlight};color:${qe.Highlight}}:host .control:${nn}{background:${qe.Highlight};outline-color:${qe.Highlight};box-shadow:0 0 0 calc(((${lr} + ${ar}) - ${ar}) * 1px) ${qe.HighlightText} inset !important}:host([href]) .control{background:${qe.LinkText};color:${qe.HighlightText}}:host([href]) .control:hover{background:${qe.ButtonFace};border-color:${qe.LinkText};color:${qe.LinkText};fill:currentcolor}:host([href]) .control:${nn}{background:${qe.LinkText};outline-color:${qe.LinkText};box-shadow:0 0 0 calc(((${lr} + ${ar}) - ${ar}) * 1px) ${qe.HighlightText} inset !important;color:${qe.HighlightText};fill:currentcolor}`)),Fd=(t,e,i="",o="")=>pt`
|
|
108
|
+
:host{height:auto;font-family:inherit;font-size:inherit;line-height:inherit;min-width:0}:host .control{display:inline;padding:0;background:transparent;border:none;box-shadow:none;line-height:1;text-decoration:underline 1px}:host .control:not([href]){background:transparent}:host .control${i}{background:transparent;color:${ul}}:host .control${i}:hover{background:transparent;color:${pl};text-decoration:none}:host .control${i}:active{background:transparent;color:${gl};text-decoration:none}:host .control:${nn}{${Wh}}:host .control${o}{background:transparent}`.withBehaviors(en(pt`
|
|
109
|
+
:host .control${i}:hover{color:${qe.Highlight};fill:currentcolor}:host .control:${nn}{color:${qe.LinkText}}`)),Dd=(t,e,i="",o="")=>pt`
|
|
102
110
|
:host{color:${ul}}:host .control{background:${Kl}}:host .control${i}:hover{background:${Xl};color:${pl}}:host .control${i}:active{background:${Yl};color:${gl}}:host .control${o}{background:${Kl}}`.withBehaviors(en(pt`
|
|
103
|
-
:host .control{border-color:${qe.ButtonFace};color:${qe.ButtonText}}:host .control${i}:hover,:host .control${i}:active,:host .control:${nn}{border-color:${qe.Highlight};background:${qe.Highlight};
|
|
111
|
+
:host .control{border-color:${qe.ButtonFace};color:${qe.ButtonText}}:host .control${i}:hover,:host .control${i}:active,:host .control:${nn}{border-color:${qe.Highlight};background:${qe.Highlight};color:${qe.HighlightText}}:host([href]) .control{border-color:${qe.ButtonFace};color:${qe.LinkText}}:host([href]) .control:hover,:host([href]) .control:${nn}{background:${qe.ButtonFace};color:${qe.LinkText}}`)),Td=(t,e,i="",o="")=>pt`
|
|
104
112
|
:host .control{background:transparent !important;border-color:${dc}}:host .control${i}:hover{border-color:${uc}}:host .control${i}:active{border-color:${pc}}:host .control${o}{background:transparent !important;border-color:${dc}}`.withBehaviors(en(pt`
|
|
105
|
-
:host .control${o}{border-color:${qe.ButtonText}}:host .control${i}:hover{border-color:${qe.Highlight};color:${qe.ButtonText}}:host([href]){border-color:${qe.LinkText}}:host([href]) .control:hover{
|
|
113
|
+
:host .control${o}{border-color:${qe.ButtonText}}:host .control${i}:hover{border-color:${qe.Highlight};color:${qe.ButtonText}}:host([href]){border-color:${qe.LinkText}}:host([href]) .control:hover{outline-color:${qe.LinkText};color:${qe.LinkText}}`)),Sd=(t,e,i="",o="")=>pt`
|
|
106
114
|
:host .control{background:${Kl}}:host .control${i}:hover{background:${Xl}}:host .control${i}:active{background:${Yl}}:host .control${o}{background:${Kl}}`.withBehaviors(en(pt`
|
|
107
|
-
:host .control{background:${qe.ButtonFace};border-color:${qe.ButtonFace};color:${qe.ButtonText};fill:currentcolor}:host .control${i}:hover,:host .control${i}:active,:host .control:${nn}{background:${qe.Highlight};border-color:${qe.Highlight};
|
|
115
|
+
:host .control{background:${qe.ButtonFace};border-color:${qe.ButtonFace};color:${qe.ButtonText};fill:currentcolor}:host .control${i}:hover,:host .control${i}:active,:host .control:${nn}{background:${qe.Highlight};border-color:${qe.Highlight};color:${qe.HighlightText};fill:currentcolor}:host([href]) .control{border-color:${qe.ButtonFace};color:${qe.LinkText}}:host([href]) .control:hover,:host([href]) .control:${nn}{background:${qe.LinkText};border-color:${qe.LinkText};color:${qe.HighlightText};fill:currentcolor}`)),Od=po.create("input-placeholder-rest").withDefault(t=>{const e=Fl.getValueFor(t);return lc.getValueFor(t).evaluate(t,e.evaluate(t).rest)}),Ed=po.create("input-placeholder-hover").withDefault(t=>{const e=Fl.getValueFor(t);return lc.getValueFor(t).evaluate(t,e.evaluate(t).hover)}),Vd=po.create("input-filled-placeholder-rest").withDefault(t=>{const e=jl.getValueFor(t);return lc.getValueFor(t).evaluate(t,e.evaluate(t).rest)}),Rd=po.create("input-filled-placeholder-hover").withDefault(t=>{const e=jl.getValueFor(t);return lc.getValueFor(t).evaluate(t,e.evaluate(t).hover)}),Ad=(t,e,i)=>pt`
|
|
108
116
|
:host{${Ph}
|
|
109
|
-
color:${sc};fill:currentcolor;
|
|
110
|
-
margin-bottom:4px}.label__hidden{display:none;visibility:hidden}:host(:hover:not([disabled]):not(:focus-within)) ${i}{background:padding-box linear-gradient(${Tl},${Tl}),border-box ${Cc}}:host(:not([disabled]):focus-within) ${i}{background:padding-box linear-gradient(${Ol},${Ol}),border-box ${kc}}.control::placeholder{color:${
|
|
111
|
-
:host(:not([disabled]):active)::after{left:50%;width:40%;transform:translateX(-50%);border-bottom-left-radius:0;border-bottom-right-radius:0}:host(:not([disabled]):focus-within)::after{left:0;width:100%;transform:none}:host(:not([disabled]):active)::after,:host(:not([disabled]):focus-within:not(:active))::after{content:'';position:absolute;height:calc(${lr} * 1px);bottom:0;border-bottom:calc(${lr} * 1px) solid ${il};border-bottom-left-radius:calc(${nr} * 1px);border-bottom-right-radius:calc(${nr} * 1px);z-index:2;transition:all 300ms cubic-bezier(0.1,0.9,0.2,1)}`,
|
|
112
|
-
:host ${i}{background:${Ul};border-color:transparent}:host(:hover:not([disabled]):not(:focus-within)) ${i}{background:${ql};border-color:transparent}.control::placeholder{color:${
|
|
113
|
-
:host ${i}{background:${qe.Field};border-color:${qe.FieldText}}:host(:hover:not([disabled]):not(:focus-within)) ${i}{border-color:${qe.Highlight}}:host(:not([disabled]):active)::after,:host(:not([disabled]):focus-within:not(:active))::after{border-bottom-color:${qe.Highlight}}:host([disabled]){opacity:1}:host([disabled]) ${i}{border-color:${qe.GrayText}}:host([disabled]) ::placeholder,:host([disabled]) ::-webkit-input-placeholder,:host([disabled]) .label{color:${qe.GrayText};fill:currentcolor}`,
|
|
114
|
-
:host ${i},:host(:hover:not([disabled])) ${i},:host(:active:not([disabled])) ${i},:host(:focus-within:not([disabled])) ${i}{background:${qe.Field};border-color:${qe.FieldText}}:host(:not([disabled]):active)::after,:host(:not([disabled]):focus-within:not(:active))::after{border-bottom-color:${qe.Highlight}}:host([disabled]) ${i}{border-color:${qe.GrayText}}`;function
|
|
115
|
-
:host .control:not([href]){cursor:default}${
|
|
116
|
-
`.withBehaviors(
|
|
117
|
-
:host{contain:layout;display:block}`,
|
|
118
|
-
${sn("inline-block")} :host{box-sizing:border-box;${
|
|
119
|
-
${sn("inline-block")} :host{box-sizing:border-box;${Ph}}.list{display:flex}`,
|
|
120
|
-
${sn("inline-flex")} :host{background:transparent;color:${sc};fill:currentcolor;box-sizing:border-box;${Ph};min-width:calc(${
|
|
121
|
-
:host(:not([href])),.start,.end,.separator{background:${qe.ButtonFace};color:${qe.ButtonText};fill:currentcolor}.separator{fill:${qe.ButtonText}}:host([href]){forced-color-adjust:none;background:${qe.ButtonFace};color:${qe.LinkText}}:host([href]) .control:hover{background:${qe.LinkText};color:${qe.HighlightText};fill:currentcolor}
|
|
122
|
-
:host([disabled]){opacity:${tr};cursor:${"not-allowed"}}${
|
|
117
|
+
color:${sc};fill:currentcolor;user-select:none;position:relative}${i}{box-sizing:border-box;position:relative;color:inherit;background:padding-box linear-gradient(${Dl},${Dl}),border-box ${kc};border:calc(${ar} * 1px) solid transparent;border-radius:calc(${nr} * 1px);height:calc(${Kh} * 1px);font-family:inherit;font-size:inherit;line-height:inherit}.control{width:100%;outline:none}.label{display:block;color:${sc};cursor:pointer;${Ph}
|
|
118
|
+
margin-bottom:4px}.label__hidden{display:none;visibility:hidden}:host(:hover:not([disabled]):not(:focus-within)) ${i}{background:padding-box linear-gradient(${Tl},${Tl}),border-box ${Cc}}:host(:not([disabled]):focus-within) ${i}{background:padding-box linear-gradient(${Ol},${Ol}),border-box ${kc}}.control::placeholder{color:${Od}}:host(:hover:not([disabled]):not(:focus-within)) .control::placeholder{color:${Ed}}:host([disabled]) ${i},:host([readonly]) ${i},:host([disabled]) .label,:host([readonly]) .label,:host([disabled]) .control,:host([readonly]) .control{cursor:${"not-allowed"}}:host([disabled]){opacity:${tr}}:host([disabled]) ${i}{background:padding-box linear-gradient(${Dl},${Dl}),border-box ${dc}}`,Ld=(t,e,i)=>pt`
|
|
119
|
+
:host(:not([disabled]):active)::after{left:50%;width:40%;transform:translateX(-50%);border-bottom-left-radius:0;border-bottom-right-radius:0}:host(:not([disabled]):focus-within)::after{left:0;width:100%;transform:none}:host(:not([disabled]):active)::after,:host(:not([disabled]):focus-within:not(:active))::after{content:'';position:absolute;height:calc(${lr} * 1px);bottom:0;border-bottom:calc(${lr} * 1px) solid ${il};border-bottom-left-radius:calc(${nr} * 1px);border-bottom-right-radius:calc(${nr} * 1px);z-index:2;transition:all 300ms cubic-bezier(0.1,0.9,0.2,1)}`,Pd=(t,e,i)=>pt`
|
|
120
|
+
:host ${i}{background:${Ul};border-color:transparent}:host(:hover:not([disabled]):not(:focus-within)) ${i}{background:${ql};border-color:transparent}.control::placeholder{color:${Vd}}:host(:hover:not([disabled]):not(:focus-within)) .control::placeholder{color:${Rd}}:host(:focus-within:not([disabled])) ${i}{border-color:transparent}`,zd=(t,e,i)=>pt`
|
|
121
|
+
:host ${i}{background:${qe.Field};border-color:${qe.FieldText}}:host(:hover:not([disabled]):not(:focus-within)) ${i}{border-color:${qe.Highlight}}:host(:not([disabled]):active)::after,:host(:not([disabled]):focus-within:not(:active))::after{border-bottom-color:${qe.Highlight}}:host([disabled]){opacity:1}:host([disabled]) ${i}{border-color:${qe.GrayText}}:host([disabled]) ::placeholder,:host([disabled]) ::-webkit-input-placeholder,:host([disabled]) .label{color:${qe.GrayText};fill:currentcolor}`,Hd=(t,e,i)=>pt`
|
|
122
|
+
:host ${i},:host(:hover:not([disabled])) ${i},:host(:active:not([disabled])) ${i},:host(:focus-within:not([disabled])) ${i}{background:${qe.Field};border-color:${qe.FieldText}}:host(:not([disabled]):active)::after,:host(:not([disabled]):focus-within:not(:active))::after{border-bottom-color:${qe.Highlight}}:host([disabled]) ${i}{border-color:${qe.GrayText}}`;function Md(t,e){return new on("appearance",t,e)}const Bd=(t,e)=>pt`
|
|
123
|
+
:host .control:not([href]){cursor:default}${Cd(0,0,"[href]",":not([href])")}
|
|
124
|
+
`.withBehaviors(Md("accent",Id(0,0,"[href]",":not([href])")),Md("hypertext",Fd(0,0,"[href]",":not([href])")),Md("lightweight",Dd(0,0,"[href]",":not([href])")),Md("outline",Td(0,0,"[href]",":not([href])")),Md("stealth",Sd(0,0,"[href]",":not([href])")));class Nd extends Ye{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(){const t=this.defaultSlottedContent.filter(t=>t.nodeType===Node.ELEMENT_NODE);1===t.length&&t[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}od([tt],Nd.prototype,"appearance",void 0);const jd=Bd,Ud=Nd.compose({baseName:"anchor",baseClass:Ye,template:Ke,styles:Bd,shadowOptions:{delegatesFocus:!0}}),qd=(t,e)=>pt`
|
|
125
|
+
:host{contain:layout;display:block}`,_d=Je.compose({baseName:"anchored-region",template:(t,e)=>q`<template class="${t=>t.initialLayoutComplete?"loaded":""}">${Ft(t=>t.initialLayoutComplete,q`<slot></slot>`)}</template>`,styles:qd}),Gd=qd,Wd=(t,e)=>pt`
|
|
126
|
+
${sn("inline-block")} :host{box-sizing:border-box;${zh}}.control{border-radius:calc(${nr} * 1px);padding:calc(((${sr} * 0.5) - ${ar}) * 1px) calc((${sr} - ${ar}) * 1px);border:calc(${ar} * 1px) solid transparent}:host(.lightweight) .control{background:transparent;color:${sc};font-weight:600}:host(.accent) .control{background:${il};color:${al}}:host(.neutral) .control{background:${Ul};color:${sc}}:host([circular]) .control{border-radius:100px;min-width:calc(${mr} - calc(${sr} * 1px));display:flex;align-items:center;justify-content:center}`;class Kd extends ti{constructor(){super(...arguments),this.appearance="lightweight"}appearanceChanged(t,e){t!==e&&h.queueUpdate(()=>{this.classList.add(e),this.classList.remove(t)})}}od([tt({mode:"fromView"})],Kd.prototype,"appearance",void 0);const Xd=Kd.compose({baseName:"badge",baseClass:ti,template:(t,e)=>q`<template class="${t=>t.circular?"circular":""}"><div class="control" part="control" style="${t=>t.generateBadgeStyle()}"><slot></slot></div></template>`,styles:Wd}),Yd=Wd,Qd=(t,e)=>pt`
|
|
127
|
+
${sn("inline-block")} :host{box-sizing:border-box;${Ph}}.list{display:flex}`,Zd=ii.compose({baseName:"breadcrumb",template:(t,e)=>q`<template role="navigation"><div role="list" class="list" part="list"><slot ${Pt({property:"slottedBreadcrumbItems",filter:Rt()})}></slot></div></template>`,styles:Qd}),Jd=Qd,tu=(t,e)=>pt`
|
|
128
|
+
${sn("inline-flex")} :host{background:transparent;color:${sc};fill:currentcolor;box-sizing:border-box;${Ph};min-width:calc(${Kh} * 1px);border-radius:calc(${nr} * 1px)}.listitem{display:flex;align-items:center;border-radius:inherit}.control{position:relative;align-items:center;box-sizing:border-box;color:inherit;fill:inherit;cursor:pointer;display:flex;outline:none;text-decoration:none;white-space:nowrap;border-radius:inherit}.control:hover{color:${nc}}.control:active{color:${rc}}.control:${nn}{${Wh}}:host(:not([href])),:host([aria-current]) .control{color:${sc};fill:currentcolor;cursor:default}.start{display:flex;margin-inline-end:6px}.end{display:flex;margin-inline-start:6px}.separator{display:flex}`.withBehaviors(en(pt`
|
|
129
|
+
:host(:not([href])),.start,.end,.separator{background:${qe.ButtonFace};color:${qe.ButtonText};fill:currentcolor}.separator{fill:${qe.ButtonText}}:host([href]){forced-color-adjust:none;background:${qe.ButtonFace};color:${qe.LinkText}}:host([href]) .control:hover{background:${qe.LinkText};color:${qe.HighlightText};fill:currentcolor}.control:${nn}{outline-color:${qe.LinkText}}`)),eu=ei.compose({baseName:"breadcrumb-item",template:(t,e)=>q`<div role="listitem" class="listitem" part="listitem">${Ft(t=>t.href&&t.href.length>0,q` ${Ke(0,e)} `)} ${Ft(t=>!t.href,q` ${Nt(0,e)}<slot></slot>${Bt(0,e)} `)} ${Ft(t=>t.separator,q`<span class="separator" part="separator" aria-hidden="true"><slot name="separator">${e.separator||""}</slot></span>`)}</div>`,styles:tu,shadowOptions:{delegatesFocus:!0},separator:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <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"/>\n </svg>\n '}),iu=tu,ou=(t,e)=>pt`
|
|
130
|
+
:host([disabled]){opacity:${tr};cursor:${"not-allowed"}}${Cd(0,0,":not([disabled])","[disabled]")}
|
|
123
131
|
`.withBehaviors(en(pt`
|
|
124
|
-
:host([disabled]){opacity:1}:host([disabled]) .control{border-color:${qe.GrayText};color:${qe.GrayText};fill:currentcolor}`),
|
|
125
|
-
${kd(0,0,":not([disabled])","[disabled]")},`.withBehaviors(en(pt`
|
|
126
|
-
:host([disabled]) .control{background:${qe.ButtonFace}}`))),Hd("lightweight",pt`
|
|
132
|
+
:host([disabled]){opacity:1}:host([disabled]) .control{border-color:${qe.GrayText};color:${qe.GrayText};fill:currentcolor}`),Md("accent",pt`
|
|
127
133
|
${Id(0,0,":not([disabled])","[disabled]")},`.withBehaviors(en(pt`
|
|
128
|
-
:host([disabled]) .control{
|
|
129
|
-
${
|
|
134
|
+
:host([disabled]) .control{background:${qe.ButtonFace}}`))),Md("lightweight",pt`
|
|
135
|
+
${Dd(0,0,":not([disabled])","[disabled]")},`.withBehaviors(en(pt`
|
|
136
|
+
:host([disabled]) .control{border-color:${qe.ButtonFace}}`))),Md("outline",pt`
|
|
137
|
+
${Td(0,0,":not([disabled])","[disabled]")}
|
|
130
138
|
`.withBehaviors(en(pt`
|
|
131
|
-
:host([disabled]) .control{border-color:${qe.GrayText}}`))),
|
|
132
|
-
${
|
|
139
|
+
:host([disabled]) .control{border-color:${qe.GrayText}}`))),Md("stealth",pt`
|
|
140
|
+
${Sd(0,0,":not([disabled])","[disabled]")}
|
|
133
141
|
`.withBehaviors(en(pt`
|
|
134
|
-
:host([disabled]) .control{border-color:${qe.ButtonFace}}`))));class
|
|
135
|
-
.day.disabled::before{transform:translate(-50%,0) rotate(45deg)}`,
|
|
136
|
-
.day.disabled::before{transform:translate(50%,0) rotate(-45deg)}`;class
|
|
142
|
+
:host([disabled]) .control{border-color:${qe.ButtonFace}}`))));class su extends ci{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(){const t=this.defaultSlottedContent.filter(t=>t.nodeType===Node.ELEMENT_NODE);1===t.length&&t[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}od([tt],su.prototype,"appearance",void 0);const nu=su.compose({baseName:"button",baseClass:ci,template:(t,e)=>q`<button class="control" part="control" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" form="${t=>t.formId}" formaction="${t=>t.formaction}" formenctype="${t=>t.formenctype}" formmethod="${t=>t.formmethod}" formnovalidate="${t=>t.formnovalidate}" formtarget="${t=>t.formtarget}" name="${t=>t.name}" type="${t=>t.type}" value="${t=>t.value}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-expanded="${t=>t.ariaExpanded}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-pressed="${t=>t.ariaPressed}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${It("control")}>${Nt(0,e)}<span class="content" part="content"><slot ${Pt("defaultSlottedContent")}></slot></span>${Bt(0,e)}</button>`,styles:ou,shadowOptions:{delegatesFocus:!0}}),ru=ou,au=pt`
|
|
143
|
+
.day.disabled::before{transform:translate(-50%,0) rotate(45deg)}`,lu=pt`
|
|
144
|
+
.day.disabled::before{transform:translate(50%,0) rotate(-45deg)}`;class cu extends ui{constructor(){super(...arguments),this.readonly=!0}}od([tt({converter:Q})],cu.prototype,"readonly",void 0);const hu=cu.compose({baseName:"calendar",template:(t,e)=>{var i;const o=new Date,s=`${o.getMonth()+1}-${o.getDate()}-${o.getFullYear()}`;return q`<template>${Ut} ${e.title instanceof Function?e.title(t,e):null!==(i=e.title)&&void 0!==i?i:""}<slot></slot>${Ft(t=>!1===t.readonly,Si(t,s))} ${Ft(t=>!0===t.readonly,(t=>q`<div class="days" part="days"><div class="week-days" part="week-days">${Vt(t=>t.getWeekdayText(),q`<div class="week-day" part="week-day" abbr="${t=>t.abbr}">${t=>t.text}</div>`)}</div>${Vt(t=>t.getDays(),q`<div class="week">${Vt(t=>t,q`<div class="${(e,i)=>i.parentContext.parent.getDayClassNames(e,t)}" part="day" aria-label="${(t,e)=>e.parentContext.parent.dateFormatter.getDate(`${t.month}-${t.day}-${t.year}`,{month:"long",day:"numeric"})}"><div class="date" part="${e=>t===`${e.month}-${e.day}-${e.year}`?"today":"date"}">${(t,e)=>e.parentContext.parent.dateFormatter.getDay(t.day)}</div><slot name="${t=>t.month}-${t=>t.day}-${t=>t.year}"></slot></div>`)}</div>`)}</div>`)(s))} ${jt}</template>`},styles:(t,e)=>pt`
|
|
137
145
|
${sn("inline-block")} :host{--calendar-cell-size:calc((${er} + 2 + ${or}) * ${sr} * 1px);--calendar-gap:2px;${Ph}
|
|
138
146
|
color:${sc}}.title{padding:calc(${sr} * 2px);font-weight:600}.days{text-align:center}.week-days,.week{display:grid;grid-template-columns:repeat(7,1fr);grid-gap:var(--calendar-gap);border:0;padding:0}.day,.week-day{border:0;width:var(--calendar-cell-size);height:var(--calendar-cell-size);line-height:var(--calendar-cell-size);padding:0;box-sizing:initial}.week-day{font-weight:600}.day{border:calc(${ar} * 1px) solid transparent;border-radius:calc(${nr} * 1px)}.interact .day{cursor:pointer}.date{height:100%}.inactive .date,.inactive.disabled::before{color:${cc}}.disabled::before{content:'';display:inline-block;width:calc(var(--calendar-cell-size) * .8);height:calc(${ar} * 1px);background:currentColor;position:absolute;margin-top:calc(var(--calendar-cell-size) / 2);transform-origin:center;z-index:1}.selected{color:${il};border:1px solid ${il};background:${Ja}}.selected + .selected{border-start-start-radius:0;border-end-start-radius:0;border-inline-start-width:0;padding-inline-start:calc(var(--calendar-gap) + (${ar} + ${nr}) * 1px);margin-inline-start:calc((${nr} * -1px) - var(--calendar-gap))}.today.disabled::before{color:${al}}.today .date{color:${al};background:${il};border-radius:50%;position:relative}`.withBehaviors(en(pt`
|
|
139
|
-
.day.selected{color:${qe.Highlight}}.today .date{background:${qe.Highlight};color:${qe.HighlightText}}`),new
|
|
140
|
-
${sn("block")} :host{display:block;contain:content;height:var(--card-height,100%);width:var(--card-width,100%);box-sizing:border-box;background:${Ja};color:${sc};border:calc(${ar} * 1px) solid ${Tc};border-radius:calc(${rr} * 1px);box-shadow:${
|
|
141
|
-
:host{background:${qe.Canvas};color:${qe.CanvasText}}`));class
|
|
142
|
-
${sn("inline-flex")} :host{align-items:center;outline:none;${""} user-select:none}.control{position:relative;width:calc((${
|
|
143
|
-
color:${sc};${""} padding-inline-start:calc(${sr} * 2px + 2px);margin-inline-end:calc(${sr} * 2px + 2px);cursor:pointer}slot[name='checked-indicator'],slot[name='indeterminate-indicator']{display:flex;align-items:center;justify-content:center;width:100%;height:100%;fill:${sc};opacity:0;pointer-events:none}slot[name='indeterminate-indicator']{position:absolute;top:0}:host(.checked) slot[name='checked-indicator'],:host(.checked) slot[name='indeterminate-indicator']{fill:${al}}:host(:not(.disabled):hover) .control{background:${Rl};border-color:${Rc}}:host(:not(.disabled):active) .control{background:${Al};border-color:${Ac}}:host(:${nn}) .control{
|
|
144
|
-
.control{border-color:${qe.FieldText};background:${qe.Field}}:host(:not(.disabled):hover) .control,:host(:not(.disabled):active) .control{border-color:${qe.Highlight};background:${qe.Field}}slot[name='checked-indicator'],slot[name='indeterminate-indicator']{fill:${qe.FieldText}}:host(:${nn}) .control{forced-color-adjust:none;
|
|
147
|
+
.day.selected{color:${qe.Highlight}}.today .date{background:${qe.Highlight};color:${qe.HighlightText}}`),new sd(au,lu)),title:Di}),du=(t,e)=>pt`
|
|
148
|
+
${sn("block")} :host{display:block;contain:content;height:var(--card-height,100%);width:var(--card-width,100%);box-sizing:border-box;background:${Ja};color:${sc};border:calc(${ar} * 1px) solid ${Tc};border-radius:calc(${rr} * 1px);box-shadow:${gd}}:host{content-visibility:auto}`.withBehaviors(en(pt`
|
|
149
|
+
:host{background:${qe.Canvas};color:${qe.CanvasText}}`));class uu extends Oi{cardFillColorChanged(t,e){if(e){const t=In(e);null!==t&&(this.neutralPaletteSource=e,Ja.setValueFor(this,Dn.create(t.r,t.g,t.b)))}}neutralPaletteSourceChanged(t,e){if(e){const t=In(e),i=Dn.create(t.r,t.g,t.b);Ha.setValueFor(this,Rn.create(i))}}handleChange(t,e){this.cardFillColor||Ja.setValueFor(this,e=>Pl.getValueFor(e).evaluate(e,Ja.getValueFor(t)).rest)}connectedCallback(){super.connectedCallback();const t=Xi(this);if(t){const e=p.getNotifier(t);e.subscribe(this,"fillColor"),e.subscribe(this,"neutralPalette"),this.handleChange(t,"fillColor")}}}od([tt({attribute:"card-fill-color",mode:"fromView"})],uu.prototype,"cardFillColor",void 0),od([tt({attribute:"neutral-palette-source",mode:"fromView"})],uu.prototype,"neutralPaletteSource",void 0);const pu=uu.compose({baseName:"card",baseClass:Oi,template:(t,e)=>q`<slot></slot>`,styles:du}),gu=du,fu=(t,e)=>pt`
|
|
150
|
+
${sn("inline-flex")} :host{align-items:center;outline:none;${""} user-select:none}.control{position:relative;width:calc((${Kh} / 2 + ${sr}) * 1px);height:calc((${Kh} / 2 + ${sr}) * 1px);box-sizing:border-box;border-radius:calc(${nr} * 1px);border:calc(${ar} * 1px) solid ${Vc};background:${Vl};cursor:pointer}.label__hidden{display:none;visibility:hidden}.label{${Ph}
|
|
151
|
+
color:${sc};${""} padding-inline-start:calc(${sr} * 2px + 2px);margin-inline-end:calc(${sr} * 2px + 2px);cursor:pointer}slot[name='checked-indicator'],slot[name='indeterminate-indicator']{display:flex;align-items:center;justify-content:center;width:100%;height:100%;fill:${sc};opacity:0;pointer-events:none}slot[name='indeterminate-indicator']{position:absolute;top:0}:host(.checked) slot[name='checked-indicator'],:host(.checked) slot[name='indeterminate-indicator']{fill:${al}}:host(:not(.disabled):hover) .control{background:${Rl};border-color:${Rc}}:host(:not(.disabled):active) .control{background:${Al};border-color:${Ac}}:host(:${nn}) .control{background:${Ll};${Wh}}:host(.checked) .control{background:${il};border-color:transparent}:host(.checked:not(.disabled):hover) .control{background:${ol};border-color:transparent}:host(.checked:not(.disabled):active) .control{background:${sl};border-color:transparent}:host(.disabled) .label,:host(.readonly) .label,:host(.readonly) .control,:host(.disabled) .control{cursor:${"not-allowed"}}:host(.checked:not(.indeterminate)) slot[name='checked-indicator'],:host(.indeterminate) slot[name='indeterminate-indicator']{opacity:1}:host(.disabled){opacity:${tr}}`.withBehaviors(en(pt`
|
|
152
|
+
.control{border-color:${qe.FieldText};background:${qe.Field}}:host(:not(.disabled):hover) .control,:host(:not(.disabled):active) .control{border-color:${qe.Highlight};background:${qe.Field}}slot[name='checked-indicator'],slot[name='indeterminate-indicator']{fill:${qe.FieldText}}:host(:${nn}) .control{forced-color-adjust:none;outline-color:${qe.FieldText};background:${qe.Field};border-color:${qe.Highlight}}:host(.checked) .control{background:${qe.Highlight};border-color:${qe.Highlight}}:host(.checked:not(.disabled):hover) .control,:host(.checked:not(.disabled):active) .control{background:${qe.HighlightText};border-color:${qe.Highlight}}:host(.checked) slot[name='checked-indicator'],:host(.checked) slot[name='indeterminate-indicator']{fill:${qe.HighlightText}}:host(.checked:hover ) .control slot[name='checked-indicator'],:host(.checked:hover ) .control slot[name='indeterminate-indicator']{fill:${qe.Highlight}}:host(.disabled){opacity:1}:host(.disabled) .control{border-color:${qe.GrayText};background:${qe.Field}}:host(.disabled) slot[name='checked-indicator'],:host(.checked.disabled:hover) .control slot[name='checked-indicator'],:host(.disabled) slot[name='indeterminate-indicator'],:host(.checked.disabled:hover) .control slot[name='indeterminate-indicator']{fill:${qe.GrayText}}`)),mu=Ri.compose({baseName:"checkbox",template:(t,e)=>q`<template role="checkbox" aria-checked="${t=>t.checked}" aria-required="${t=>t.required}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" tabindex="${t=>t.disabled?null:0}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}" class="${t=>t.readOnly?"readonly":""} ${t=>t.checked?"checked":""} ${t=>t.indeterminate?"indeterminate":""}"><div part="control" class="control"><slot name="checked-indicator">${e.checkedIndicator||""}</slot><slot name="indeterminate-indicator">${e.indeterminateIndicator||""}</slot></div><label part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Pt("defaultSlottedNodes")}></slot></label></template>`,styles:fu,checkedIndicator:'\n <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">\n <path d="M13.86 3.66a.5.5 0 01-.02.7l-7.93 7.48a.6.6 0 01-.84-.02L2.4 9.1a.5.5 0 01.72-.7l2.4 2.44 7.65-7.2a.5.5 0 01.7.02z"/>\n </svg>\n ',indeterminateIndicator:'\n <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">\n <path d="M3 8c0-.28.22-.5.5-.5h9a.5.5 0 010 1h-9A.5.5 0 013 8z"/>\n </svg>\n '}),vu=fu,bu=(t,e)=>pt`
|
|
145
153
|
:host{background:${Ul};border-color:transparent}:host(:not([disabled]):not([open]):hover){background:${ql};border-color:transparent}:host(:not([disabled]):not([open]):active){background:${_l};border-color:transparent}`.withBehaviors(en(pt`
|
|
146
|
-
:host(:not([disabled]):not([open]):hover){background:transparent}:host(:not([disabled]):not([open]):hover),:host(:not([disabled]):not([open]):active){border-color:${qe.Highlight}}
|
|
147
|
-
${sn("inline-flex")} :host{background:padding-box linear-gradient(${wl},${wl}),border-box ${mc};border:calc(${ar} * 1px) solid transparent;border-radius:calc(${nr} * 1px);box-sizing:border-box;color:${sc};fill:currentcolor;font-family:${cr};height:calc(${
|
|
148
|
-
min-height:100%;padding:0 calc(${sr} * 2.25px);width:100%}:host(:not([disabled]):not([open]):hover){background:padding-box linear-gradient(${kl},${kl}),border-box ${vc}}:host(:not([disabled]):not([open]):active){background:padding-box linear-gradient(${Cl},${Cl}),border-box ${bc}}:host(:${nn}){
|
|
154
|
+
:host(:not([disabled]):not([open]):hover){background:transparent}:host(:not([disabled]):not([open]):hover),:host(:not([disabled]):not([open]):active){border-color:${qe.Highlight}}`)),yu=(t,e)=>pt`
|
|
155
|
+
${sn("inline-flex")} :host{background:padding-box linear-gradient(${wl},${wl}),border-box ${mc};border:calc(${ar} * 1px) solid transparent;border-radius:calc(${nr} * 1px);box-sizing:border-box;color:${sc};fill:currentcolor;font-family:${cr};height:calc(${Kh} * 1px);position:relative;user-select:none;min-width:250px;vertical-align:top}:host .listbox{box-shadow:${$d};background:${Ja};border-radius:calc(${rr} * 1px);box-sizing:border-box;display:inline-flex;flex-direction:column;left:0;max-height:calc(var(--max-height) - (${Kh} * 1px));padding:calc((${sr} - ${ar} ) * 1px) 0;overflow-y:auto;position:absolute;width:100%;z-index:1;margin:1px 0;border:calc(${ar} * 1px) solid transparent}:host .listbox[hidden]{display:none}:host .control{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;${Ph}
|
|
156
|
+
min-height:100%;padding:0 calc(${sr} * 2.25px);width:100%}:host(:not([disabled]):not([open]):hover){background:padding-box linear-gradient(${kl},${kl}),border-box ${vc}}:host(:not([disabled]):not([open]):active){background:padding-box linear-gradient(${Cl},${Cl}),border-box ${bc}}:host(:${nn}){${Gh}}:host([disabled]){cursor:${"not-allowed"};opacity:${tr}}:host([disabled]) .control{cursor:${"not-allowed"};user-select:none}:host([open][position='above']) .listbox{bottom:calc((${Kh} + ${sr} * 2) * 1px)}:host([open][position='below']) .listbox{top:calc((${Kh} + ${sr} * 2) * 1px)}.selected-value{font-family:inherit;flex:1 1 auto;text-align:start}.indicator{flex:0 0 auto;margin-inline-start:1em}slot[name='listbox']{display:none;width:100%}:host([open]) slot[name='listbox']{display:flex;position:absolute}.start{margin-inline-end:11px}.end{margin-inline-start:11px}.start,.end,.indicator,::slotted(svg){display:flex}::slotted([role='option']){flex:0 0 auto}`.withBehaviors(Md("filled",bu()),Md("stealth",pt`
|
|
149
157
|
:host{background:${Kl};border-color:transparent}:host(:not([disabled]):not([open]):hover){background:${Xl};border-color:transparent}:host(:not([disabled]):not([open]):active){background:${Yl};border-color:transparent}`),en(pt`
|
|
150
|
-
:host{background:${qe.ButtonFace};color:${qe.ButtonText}}:host(:not([disabled]):not([open]):hover){background:transparent}:host(:not([disabled]):hover){border-color:${qe.Highlight}}:host(:${nn}){forced-color-adjust:none;
|
|
151
|
-
${
|
|
158
|
+
:host{background:${qe.ButtonFace};color:${qe.ButtonText}}:host(:not([disabled]):not([open]):hover){background:transparent}:host(:not([disabled]):hover){border-color:${qe.Highlight}}:host(:${nn}){forced-color-adjust:none;outline-color:${qe.Highlight}}:host([open]) .listbox{background:${qe.ButtonFace};border-color:${qe.CanvasText}}.start,.end,.indicator,::slotted(svg){fill:${qe.FieldText}}:host([disabled]){border-color:${qe.GrayText};color:${qe.GrayText};opacity:1}:host([disabled]) .start,:host([disabled]) .end,:host([disabled]) .indicator,:host([disabled]) ::slotted(svg){fill:${qe.GrayText}}`)),xu=(t,e)=>pt`
|
|
159
|
+
${yu()}
|
|
152
160
|
|
|
153
|
-
:host(:empty) .listbox{display:none}:host([disabled]) *,:host([disabled]){cursor:${"not-allowed"};user-select:none}:host(:active) .selected-value{user-select:none}.selected-value{-webkit-appearance:none;background:transparent;border:none;color:inherit;${Ph}
|
|
154
|
-
height:calc(100% - ${ar} * 1px));margin:auto 0;width:100
|
|
155
|
-
:host{display:flex;position:relative;flex-direction:column}`,
|
|
161
|
+
:host{background:padding-box linear-gradient(${Dl},${Dl}),border-box ${kc}}:host(:not([disabled]):not([open]):hover){background:padding-box linear-gradient(${Tl},${Tl}),border-box ${Cc}}:host(:not([disabled]):not([open]):active){background:padding-box linear-gradient(${Sl},${Sl}),border-box ${Ic}}:host(:empty) .listbox{display:none}:host([disabled]) *,:host([disabled]){cursor:${"not-allowed"};user-select:none}:host(:active) .selected-value{user-select:none}.selected-value{-webkit-appearance:none;background:transparent;border:none;color:inherit;${Ph}
|
|
162
|
+
height:calc(100% - ${ar} * 1px));margin:auto 0;width:100%;outline:none}`.withBehaviors(Md("filled",bu()));class $u extends Wi{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline"),this.listbox&&Ja.setValueFor(this.listbox,qa)}}od([tt({mode:"fromView"})],$u.prototype,"appearance",void 0);const wu=$u.compose({baseName:"combobox",baseClass:Wi,shadowOptions:{delegatesFocus:!0},template:(t,e)=>q`<template aria-disabled="${t=>t.ariaDisabled}" autocomplete="${t=>t.autocomplete}" class="${t=>t.open?"open":""} ${t=>t.disabled?"disabled":""} ${t=>t.position}" ?open="${t=>t.open}" tabindex="${t=>t.disabled?null:"0"}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusout="${(t,e)=>t.focusoutHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><div class="control" part="control">${Nt(0,e)}<slot name="control"><input aria-activedescendant="${t=>t.open?t.ariaActiveDescendant:null}" aria-autocomplete="${t=>t.ariaAutoComplete}" aria-controls="${t=>t.ariaControls}" aria-disabled="${t=>t.ariaDisabled}" aria-expanded="${t=>t.ariaExpanded}" aria-haspopup="listbox" class="selected-value" part="selected-value" placeholder="${t=>t.placeholder}" role="combobox" type="text" ?disabled="${t=>t.disabled}" :value="${t=>t.value}" @input="${(t,e)=>t.inputHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}" ${It("control")} /><div class="indicator" part="indicator" aria-hidden="true"><slot name="indicator">${e.indicator||""}</slot></div></slot>${Bt(0,e)}</div><div class="listbox" id="${t=>t.listboxId}" part="listbox" role="listbox" ?disabled="${t=>t.disabled}" ?hidden="${t=>!t.open}" ${It("listbox")}><slot ${Pt({filter:zi.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></div></template>`,styles:xu,indicator:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <path d="M2.15 4.65c.2-.2.5-.2.7 0L6 7.79l3.15-3.14a.5.5 0 11.7.7l-3.5 3.5a.5.5 0 01-.7 0l-3.5-3.5a.5.5 0 010-.7z"/>\n </svg>\n '}),ku=xu,Cu=(t,e)=>pt`
|
|
163
|
+
:host{display:flex;position:relative;flex-direction:column}`,Iu=(t,e)=>pt`
|
|
156
164
|
:host{display:grid;padding:1px 0;box-sizing:border-box;width:100%;border-bottom:calc(${ar} * 1px) solid ${$c}}:host(.header){}:host(.sticky-header){background:${Ja};position:sticky;top:0}`.withBehaviors(en(pt`
|
|
157
|
-
:host{}`)),
|
|
158
|
-
:host{padding:calc(${sr} * 1px) calc(${sr} *
|
|
159
|
-
border:transparent calc(${
|
|
160
|
-
:host{forced-color-adjust:none;
|
|
165
|
+
:host{}`)),Fu=(t,e)=>pt`
|
|
166
|
+
:host{padding:calc((${sr} + ${lr} - ${ar}) * 1px) calc(((${sr} * 3) + ${lr} - ${ar}) * 1px);color:${sc};box-sizing:border-box;${Ph}
|
|
167
|
+
border:transparent calc(${ar} * 1px) solid;overflow:hidden;white-space:nowrap;border-radius:calc(${nr} * 1px)}:host(.column-header){font-weight:600}:host(:${nn}){${Gh}}`.withBehaviors(en(pt`
|
|
168
|
+
:host{forced-color-adjust:none;background:${qe.Field};color:${qe.FieldText}}:host(:${nn}){outline-color:${qe.FieldText}}`)),Du=Fi.compose({baseName:"data-grid-cell",template:(t,e)=>q`<template tabindex="-1" role="${t=>t.cellType&&"default"!==t.cellType?t.cellType:"gridcell"}" class=" ${t=>"columnheader"===t.cellType?"column-header":"rowheader"===t.cellType?"row-header":""} "><slot></slot></template>`,styles:Fu}),Tu=Fu,Su=wi.compose({baseName:"data-grid-row",template:(t,e)=>q`<template role="row" class="${t=>"default"!==t.rowType?t.rowType:""}" :defaultCellItemTemplate="${function(t){const e=t.tagFor(Fi);return q`<${e} cell-type="${t=>t.isRowHeader?"rowheader":void 0}" grid-column="${(t,e)=>e.index+1}" :rowData="${(t,e)=>e.parent.rowData}" :columnDefinition="${t=>t}"></${e}>`}(t)}" :defaultHeaderCellItemTemplate="${function(t){const e=t.tagFor(Fi);return q`<${e} cell-type="columnheader" grid-column="${(t,e)=>e.index+1}" :columnDefinition="${t=>t}"></${e}>`}(t)}" ${Ht({property:"cellElements",filter:Rt('[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]')})}><slot ${Pt("slottedCellElements")}></slot></template>`,styles:Iu}),Ou=Iu,Eu=ki.compose({baseName:"data-grid",template:(t,e)=>{const i=function(t){const e=t.tagFor(wi);return q`<${e} :rowData="${t=>t}" :cellItemTemplate="${(t,e)=>e.parent.cellItemTemplate}" :headerCellItemTemplate="${(t,e)=>e.parent.headerCellItemTemplate}"></${e}>`}(t),o=t.tagFor(wi);return q`<template role="grid" tabindex="0" :rowElementTag="${()=>o}" :defaultRowItemTemplate="${i}" ${Ht({property:"rowElements",filter:Rt("[role=row]")})}><slot></slot></template>`},styles:Cu}),Vu=Cu,Ru={toView(t){var e;return null==t?null:null===(e=t)||void 0===e?void 0:e.toColorString()},fromView(t){if(null==t)return null;const e=In(t);return e?Dn.create(e.r,e.g,e.b):null}},Au=pt`
|
|
161
169
|
:host{background-color:${Ja};color:${sc}}`.withBehaviors(en(pt`
|
|
162
|
-
:host{background-color:${qe.Canvas};box-shadow:0 0 0 1px ${qe.CanvasText};color:${qe.CanvasText}}`));function
|
|
170
|
+
:host{background-color:${qe.Canvas};box-shadow:0 0 0 1px ${qe.CanvasText};color:${qe.CanvasText}}`));function Lu(t){return(e,i)=>{e[i+"Changed"]=function(e,i){null!=i?t.setValueFor(this,i):t.deleteValueFor(this)}}}class Pu extends De{constructor(){super(),this.noPaint=!1;const t={handleChange:this.noPaintChanged.bind(this)};p.getNotifier(this).subscribe(t,"fillColor"),p.getNotifier(this).subscribe(t,"baseLayerLuminance")}connectedCallback(){super.connectedCallback(),this.noPaintChanged()}noPaintChanged(){this.noPaint||void 0===this.fillColor&&!this.baseLayerLuminance?this.$fastController.removeStyles(Au):this.$fastController.addStyles(Au)}}od([tt({attribute:"no-paint",mode:"boolean"})],Pu.prototype,"noPaint",void 0),od([tt({attribute:"fill-color",converter:Ru,mode:"fromView"}),Lu(Ja)],Pu.prototype,"fillColor",void 0),od([tt({attribute:"accent-base-color",converter:Ru,mode:"fromView"}),Lu(Ma)],Pu.prototype,"accentBaseColor",void 0),od([tt({attribute:"neutral-base-color",converter:Ru,mode:"fromView"}),Lu(za)],Pu.prototype,"neutralBaseColor",void 0),od([tt({converter:Z}),Lu(or)],Pu.prototype,"density",void 0),od([tt({attribute:"design-unit",converter:Z}),Lu(sr)],Pu.prototype,"designUnit",void 0),od([tt({attribute:"direction"}),Lu(Jn)],Pu.prototype,"direction",void 0),od([tt({attribute:"base-height-multiplier",converter:Z}),Lu(er)],Pu.prototype,"baseHeightMultiplier",void 0),od([tt({attribute:"base-horizontal-spacing-multiplier",converter:Z}),Lu(ir)],Pu.prototype,"baseHorizontalSpacingMultiplier",void 0),od([tt({attribute:"control-corner-radius",converter:Z}),Lu(nr)],Pu.prototype,"controlCornerRadius",void 0),od([tt({attribute:"layer-corner-radius",converter:Z}),Lu(rr)],Pu.prototype,"layerCornerRadius",void 0),od([tt({attribute:"stroke-width",converter:Z}),Lu(ar)],Pu.prototype,"strokeWidth",void 0),od([tt({attribute:"focus-stroke-width",converter:Z}),Lu(lr)],Pu.prototype,"focusStrokeWidth",void 0),od([tt({attribute:"disabled-opacity",converter:Z}),Lu(tr)],Pu.prototype,"disabledOpacity",void 0),od([tt({attribute:"type-ramp-minus-2-font-size"}),Lu(br)],Pu.prototype,"typeRampMinus2FontSize",void 0),od([tt({attribute:"type-ramp-minus-2-line-height"}),Lu(yr)],Pu.prototype,"typeRampMinus2LineHeight",void 0),od([tt({attribute:"type-ramp-minus-1-font-size"}),Lu(fr)],Pu.prototype,"typeRampMinus1FontSize",void 0),od([tt({attribute:"type-ramp-minus-1-line-height"}),Lu(mr)],Pu.prototype,"typeRampMinus1LineHeight",void 0),od([tt({attribute:"type-ramp-base-font-size"}),Lu(ur)],Pu.prototype,"typeRampBaseFontSize",void 0),od([tt({attribute:"type-ramp-base-line-height"}),Lu(pr)],Pu.prototype,"typeRampBaseLineHeight",void 0),od([tt({attribute:"type-ramp-plus-1-font-size"}),Lu($r)],Pu.prototype,"typeRampPlus1FontSize",void 0),od([tt({attribute:"type-ramp-plus-1-line-height"}),Lu(wr)],Pu.prototype,"typeRampPlus1LineHeight",void 0),od([tt({attribute:"type-ramp-plus-2-font-size"}),Lu(Cr)],Pu.prototype,"typeRampPlus2FontSize",void 0),od([tt({attribute:"type-ramp-plus-2-line-height"}),Lu(Ir)],Pu.prototype,"typeRampPlus2LineHeight",void 0),od([tt({attribute:"type-ramp-plus-3-font-size"}),Lu(Dr)],Pu.prototype,"typeRampPlus3FontSize",void 0),od([tt({attribute:"type-ramp-plus-3-line-height"}),Lu(Tr)],Pu.prototype,"typeRampPlus3LineHeight",void 0),od([tt({attribute:"type-ramp-plus-4-font-size"}),Lu(Or)],Pu.prototype,"typeRampPlus4FontSize",void 0),od([tt({attribute:"type-ramp-plus-4-line-height"}),Lu(Er)],Pu.prototype,"typeRampPlus4LineHeight",void 0),od([tt({attribute:"type-ramp-plus-5-font-size"}),Lu(Rr)],Pu.prototype,"typeRampPlus5FontSize",void 0),od([tt({attribute:"type-ramp-plus-5-line-height"}),Lu(Ar)],Pu.prototype,"typeRampPlus5LineHeight",void 0),od([tt({attribute:"type-ramp-plus-6-font-size"}),Lu(Pr)],Pu.prototype,"typeRampPlus6FontSize",void 0),od([tt({attribute:"type-ramp-plus-6-line-height"}),Lu(zr)],Pu.prototype,"typeRampPlus6LineHeight",void 0),od([tt({attribute:"accent-fill-rest-delta",converter:Z}),Lu(Br)],Pu.prototype,"accentFillRestDelta",void 0),od([tt({attribute:"accent-fill-hover-delta",converter:Z}),Lu(Nr)],Pu.prototype,"accentFillHoverDelta",void 0),od([tt({attribute:"accent-fill-active-delta",converter:Z}),Lu(jr)],Pu.prototype,"accentFillActiveDelta",void 0),od([tt({attribute:"accent-fill-focus-delta",converter:Z}),Lu(Ur)],Pu.prototype,"accentFillFocusDelta",void 0),od([tt({attribute:"accent-foreground-rest-delta",converter:Z}),Lu(qr)],Pu.prototype,"accentForegroundRestDelta",void 0),od([tt({attribute:"accent-foreground-hover-delta",converter:Z}),Lu(_r)],Pu.prototype,"accentForegroundHoverDelta",void 0),od([tt({attribute:"accent-foreground-active-delta",converter:Z}),Lu(Gr)],Pu.prototype,"accentForegroundActiveDelta",void 0),od([tt({attribute:"accent-foreground-focus-delta",converter:Z}),Lu(Wr)],Pu.prototype,"accentForegroundFocusDelta",void 0),od([tt({attribute:"neutral-fill-rest-delta",converter:Z}),Lu(Kr)],Pu.prototype,"neutralFillRestDelta",void 0),od([tt({attribute:"neutral-fill-hover-delta",converter:Z}),Lu(Xr)],Pu.prototype,"neutralFillHoverDelta",void 0),od([tt({attribute:"neutral-fill-active-delta",converter:Z}),Lu(Yr)],Pu.prototype,"neutralFillActiveDelta",void 0),od([tt({attribute:"neutral-fill-focus-delta",converter:Z}),Lu(Qr)],Pu.prototype,"neutralFillFocusDelta",void 0),od([tt({attribute:"neutral-fill-input-rest-delta",converter:Z}),Lu(Zr)],Pu.prototype,"neutralFillInputRestDelta",void 0),od([tt({attribute:"neutral-fill-input-hover-delta",converter:Z}),Lu(Jr)],Pu.prototype,"neutralFillInputHoverDelta",void 0),od([tt({attribute:"neutral-fill-input-active-delta",converter:Z}),Lu(ta)],Pu.prototype,"neutralFillInputActiveDelta",void 0),od([tt({attribute:"neutral-fill-input-focus-delta",converter:Z}),Lu(ea)],Pu.prototype,"neutralFillInputFocusDelta",void 0),od([tt({attribute:"neutral-fill-layer-rest-delta",converter:Z}),Lu(ra)],Pu.prototype,"neutralFillLayerRestDelta",void 0),od([tt({attribute:"neutral-fill-stealth-rest-delta",converter:Z}),Lu(ga)],Pu.prototype,"neutralFillStealthRestDelta",void 0),od([tt({attribute:"neutral-fill-stealth-hover-delta",converter:Z}),Lu(fa)],Pu.prototype,"neutralFillStealthHoverDelta",void 0),od([tt({attribute:"neutral-fill-stealth-active-delta",converter:Z}),Lu(ma)],Pu.prototype,"neutralFillStealthActiveDelta",void 0),od([tt({attribute:"neutral-fill-stealth-focus-delta",converter:Z}),Lu(va)],Pu.prototype,"neutralFillStealthFocusDelta",void 0),od([tt({attribute:"neutral-fill-strong-hover-delta",converter:Z}),Lu(ya)],Pu.prototype,"neutralFillStrongHoverDelta",void 0),od([tt({attribute:"neutral-fill-strong-active-delta",converter:Z}),Lu(xa)],Pu.prototype,"neutralFillStrongActiveDelta",void 0),od([tt({attribute:"neutral-fill-strong-focus-delta",converter:Z}),Lu($a)],Pu.prototype,"neutralFillStrongFocusDelta",void 0),od([tt({attribute:"base-layer-luminance",converter:Z}),Lu(Mr)],Pu.prototype,"baseLayerLuminance",void 0),od([tt({attribute:"neutral-stroke-divider-rest-delta",converter:Z}),Lu(Oa)],Pu.prototype,"neutralStrokeDividerRestDelta",void 0),od([tt({attribute:"neutral-stroke-rest-delta",converter:Z}),Lu(wa)],Pu.prototype,"neutralStrokeRestDelta",void 0),od([tt({attribute:"neutral-stroke-hover-delta",converter:Z}),Lu(ka)],Pu.prototype,"neutralStrokeHoverDelta",void 0),od([tt({attribute:"neutral-stroke-active-delta",converter:Z}),Lu(Ca)],Pu.prototype,"neutralStrokeActiveDelta",void 0),od([tt({attribute:"neutral-stroke-focus-delta",converter:Z}),Lu(Ia)],Pu.prototype,"neutralStrokeFocusDelta",void 0);const zu=Pu.compose({baseName:"design-system-provider",template:q`<slot></slot>`,styles:pt`
|
|
163
171
|
${sn("block")}
|
|
164
|
-
`}),
|
|
165
|
-
:host([hidden]){display:none}:host{--dialog-height:480px;--dialog-width:640px;display:block}.overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.3);touch-action:none}.positioning-region{display:flex;justify-content:center;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}.control{box-shadow:${
|
|
166
|
-
${sn("block")} :host{box-sizing:content-box;height:0;border:none;border-top:calc(${ar} * 1px) solid ${$c}}`,
|
|
167
|
-
${sn("inline-flex")} :host{height:calc((${
|
|
168
|
-
:host{background:${qe.ButtonFace};border-color:${qe.ButtonText}}:host .next,:host .previous{color:${qe.ButtonText};fill:currentcolor}:host(:not(.disabled):hover){background:${qe.Highlight}}:host(:not(.disabled):hover) .next,:host(:not(.disabled):hover) .previous{color:${qe.HighlightText};fill:currentcolor}:host(.disabled){opacity:1}:host(.disabled),:host(.disabled) .next,:host(.disabled) .previous{border-color:${qe.GrayText};color:${qe.GrayText};fill:currentcolor}:host(:${nn}){forced-color-adjust:none;
|
|
169
|
-
.scroll-prev{right:auto;left:0}.scroll.scroll-next::before,.scroll-next .scroll-action{left:auto;right:0}.scroll.scroll-next::before{background:linear-gradient(to right,transparent,var(--scroll-fade-next))}.scroll-next .scroll-action{transform:translate(50%,-50%)}`,
|
|
170
|
-
.scroll.scroll-next{right:auto;left:0}.scroll.scroll-next::before{background:linear-gradient(to right,var(--scroll-fade-next),transparent);left:auto;right:0}.scroll.scroll-prev::before{background:linear-gradient(to right,transparent,var(--scroll-fade-previous))}.scroll-prev .scroll-action{left:auto;right:0;transform:translate(50%,-50%)}`,
|
|
171
|
-
.scroll-area{position:relative}div.scroll-view{overflow-x:hidden}.scroll{bottom:0;pointer-events:none;position:absolute;right:0;top:0;user-select:none;width:100px}.scroll.disabled{display:none}.scroll::before,.scroll-action{left:0;position:absolute}.scroll::before{background:linear-gradient(to right,var(--scroll-fade-previous),transparent);content:'';display:block;height:100%;width:100%}.scroll-action{pointer-events:auto;right:auto;top:50%;transform:translate(-50%,-50%)}::slotted(fluent-flipper){opacity:0;transition:opacity 0.2s ease-in-out}.scroll-area:hover ::slotted(fluent-flipper){opacity:1}`.withBehaviors(new
|
|
172
|
-
${sn("block")} :host{--scroll-align:center;--scroll-item-spacing:4px;contain:layout;position:relative}.scroll-view{overflow-x:auto;scrollbar-width:none}::-webkit-scrollbar{display:none}.content-container{align-items:var(--scroll-align);display:inline-flex;flex-wrap:nowrap;position:relative}.content-container ::slotted(*){margin-right:var(--scroll-item-spacing)}.content-container ::slotted(*:last-child){margin-right:0}`;class
|
|
173
|
-
${sn("inline-flex")} :host{border:calc(${ar} * 1px) solid ${dc};border-radius:calc(${nr} * 1px);box-sizing:border-box;flex-direction:column;padding:calc(${sr} * 1px) 0
|
|
172
|
+
`}),Hu=(t,e)=>pt`
|
|
173
|
+
:host([hidden]){display:none}:host{--dialog-height:480px;--dialog-width:640px;display:block}.overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.3);touch-action:none}.positioning-region{display:flex;justify-content:center;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}.control{box-shadow:${kd};margin-top:auto;margin-bottom:auto;border-radius:calc(${rr} * 1px);width:var(--dialog-width);height:var(--dialog-height);background:${Ja};z-index:1;border:calc(${ar} * 1px) solid transparent}`,Mu=Vo.compose({baseName:"dialog",template:(t,e)=>q`<div class="positioning-region" part="positioning-region">${Ft(t=>t.modal,q`<div class="overlay" part="overlay" role="presentation" @click="${t=>t.dismiss()}"></div>`)}<div role="dialog" tabindex="-1" class="control" part="control" aria-modal="${t=>t.modal}" aria-describedby="${t=>t.ariaDescribedby}" aria-labelledby="${t=>t.ariaLabelledby}" aria-label="${t=>t.ariaLabel}" ${It("dialog")}><slot></slot></div></div>`,styles:Hu}),Bu=Hu,Nu=(t,e)=>pt`
|
|
174
|
+
${sn("block")} :host{box-sizing:content-box;height:0;border:none;border-top:calc(${ar} * 1px) solid ${$c}}`,ju=Ao.compose({baseName:"divider",template:(t,e)=>q`<template role="${t=>t.role}" aria-orientation="${t=>t.orientation}"></template>`,styles:Nu}),Uu=Nu,qu=(t,e)=>pt`
|
|
175
|
+
${sn("inline-flex")} :host{height:calc((${Kh} + ${sr}) * 1px);justify-content:center;align-items:center;fill:currentcolor;color:${Jl};background:padding-box linear-gradient(${wl},${wl}),border-box ${mc};box-sizing:border-box;border:calc(${ar} * 1px) solid transparent;border-radius:calc(${nr} * 1px);padding:0}:host(.disabled){opacity:${tr};cursor:${"not-allowed"};pointer-events:none}.next,.previous{display:flex}:host(:not(.disabled):hover){cursor:pointer}:host(:not(.disabled):hover){color:${tc}}:host(:not(.disabled):active){color:${ec}}:host(:${nn}){${Gh}}:host::-moz-focus-inner{border:0}`.withBehaviors(en(pt`
|
|
176
|
+
:host{background:${qe.ButtonFace};border-color:${qe.ButtonText}}:host .next,:host .previous{color:${qe.ButtonText};fill:currentcolor}:host(:not(.disabled):hover){background:${qe.Highlight}}:host(:not(.disabled):hover) .next,:host(:not(.disabled):hover) .previous{color:${qe.HighlightText};fill:currentcolor}:host(.disabled){opacity:1}:host(.disabled),:host(.disabled) .next,:host(.disabled) .previous{border-color:${qe.GrayText};color:${qe.GrayText};fill:currentcolor}:host(:${nn}){forced-color-adjust:none;outline-color:${qe.Highlight}}`)),_u=zo.compose({baseName:"flipper",template:(t,e)=>q`<template role="button" aria-disabled="${t=>!!t.disabled||void 0}" tabindex="${t=>t.hiddenFromAT?-1:0}" class="${t=>t.direction} ${t=>t.disabled?"disabled":""}" @keyup="${(t,e)=>t.keyupHandler(e.event)}">${Ft(t=>t.direction===Lo,q`<span part="next" class="next"><slot name="next">${e.next||""}</slot></span>`)} ${Ft(t=>t.direction===Po,q`<span part="previous" class="previous"><slot name="previous">${e.previous||""}</slot></span>`)}</template>`,styles:qu,next:'\n <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">\n <path d="M7.57 11.84A1 1 0 016 11.02V4.98a1 1 0 011.57-.82l3.79 2.62c.85.59.85 1.85 0 2.44l-3.79 2.62z"/>\n </svg>\n ',previous:'\n <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">\n <path d="M9.43 11.84a1 1 0 001.57-.82V4.98a1 1 0 00-1.57-.82L5.64 6.78c-.85.59-.85 1.85 0 2.44l3.79 2.62z"/>\n </svg>\n '}),Gu=qu,Wu=pt`
|
|
177
|
+
.scroll-prev{right:auto;left:0}.scroll.scroll-next::before,.scroll-next .scroll-action{left:auto;right:0}.scroll.scroll-next::before{background:linear-gradient(to right,transparent,var(--scroll-fade-next))}.scroll-next .scroll-action{transform:translate(50%,-50%)}`,Ku=pt`
|
|
178
|
+
.scroll.scroll-next{right:auto;left:0}.scroll.scroll-next::before{background:linear-gradient(to right,var(--scroll-fade-next),transparent);left:auto;right:0}.scroll.scroll-prev::before{background:linear-gradient(to right,transparent,var(--scroll-fade-previous))}.scroll-prev .scroll-action{left:auto;right:0;transform:translate(50%,-50%)}`,Xu=pt`
|
|
179
|
+
.scroll-area{position:relative}div.scroll-view{overflow-x:hidden}.scroll{bottom:0;pointer-events:none;position:absolute;right:0;top:0;user-select:none;width:100px}.scroll.disabled{display:none}.scroll::before,.scroll-action{left:0;position:absolute}.scroll::before{background:linear-gradient(to right,var(--scroll-fade-previous),transparent);content:'';display:block;height:100%;width:100%}.scroll-action{pointer-events:auto;right:auto;top:50%;transform:translate(-50%,-50%)}::slotted(fluent-flipper){opacity:0;transition:opacity 0.2s ease-in-out}.scroll-area:hover ::slotted(fluent-flipper){opacity:1}`.withBehaviors(new sd(Wu,Ku)),Yu=(t,e)=>pt`
|
|
180
|
+
${sn("block")} :host{--scroll-align:center;--scroll-item-spacing:4px;contain:layout;position:relative}.scroll-view{overflow-x:auto;scrollbar-width:none}::-webkit-scrollbar{display:none}.content-container{align-items:var(--scroll-align);display:inline-flex;flex-wrap:nowrap;position:relative}.content-container ::slotted(*){margin-right:var(--scroll-item-spacing)}.content-container ::slotted(*:last-child){margin-right:0}`;class Qu extends ss{connectedCallback(){super.connectedCallback(),"mobile"!==this.view&&this.$fastController.addStyles(Xu)}}const Zu=Qu.compose({baseName:"horizontal-scroll",baseClass:ss,template:(t,e)=>{var i,o;return q`<template class="horizontal-scroll" @keyup="${(t,e)=>t.keyupHandler(e.event)}">${Nt(0,e)}<div class="scroll-area" part="scroll-area"><div class="scroll-view" part="scroll-view" @scroll="${t=>t.scrolled()}" ${It("scrollContainer")}><div class="content-container" part="content-container" ${It("content")}><slot ${Pt({property:"scrollItems",filter:Rt()})}></slot></div></div>${Ft(t=>"mobile"!==t.view,q`<div class="scroll scroll-prev" part="scroll-prev" ${It("previousFlipperContainer")}><div class="scroll-action" part="scroll-action-previous"><slot name="previous-flipper">${e.previousFlipper instanceof Function?e.previousFlipper(t,e):null!==(i=e.previousFlipper)&&void 0!==i?i:""}</slot></div></div><div class="scroll scroll-next" part="scroll-next" ${It("nextFlipperContainer")}><div class="scroll-action" part="scroll-action-next"><slot name="next-flipper">${e.nextFlipper instanceof Function?e.nextFlipper(t,e):null!==(o=e.nextFlipper)&&void 0!==o?o:""}</slot></div></div>`)}</div>${Bt(0,e)}</template>`},styles:Yu,nextFlipper:q`<fluent-flipper @click="${t=>t.scrollToNext()}" aria-hidden="${t=>t.flippersHiddenFromAT}"></fluent-flipper>`,previousFlipper:q`<fluent-flipper @click="${t=>t.scrollToPrevious()}" direction="previous" aria-hidden="${t=>t.flippersHiddenFromAT}"></fluent-flipper>`}),Ju=Yu,tp=(t,e)=>pt`
|
|
181
|
+
${sn("inline-flex")} :host{border:calc(${ar} * 1px) solid ${dc};border-radius:calc(${nr} * 1px);box-sizing:border-box;flex-direction:column;padding:calc(${sr} * 1px) 0}::slotted(${t.tagFor(Li)}){margin:0 calc(${sr} * 1px)}:host(:focus-within:not([disabled])){${Gh}}`;class ep extends zi{}const ip=ep.compose({baseName:"listbox",template:(t,e)=>q`<template aria-activedescendant="${t=>t.ariaActiveDescendant}" aria-multiselectable="${t=>t.ariaMultiSelectable}" class="listbox" role="listbox" tabindex="${t=>t.disabled?null:"0"}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @mousedown="${(t,e)=>t.mousedownHandler(e.event)}"><slot ${Pt({filter:Ho.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></template>`,styles:tp}),op=tp,sp=(t,e)=>pt`
|
|
174
182
|
${sn("inline-flex")} :host{position:relative;${Ph}
|
|
175
|
-
background:${Kl};border-radius:calc(${nr} * 1px);border:calc(${
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
183
|
+
background:${Kl};border-radius:calc(${nr} * 1px);border:calc(${ar} * 1px) solid transparent;box-sizing:border-box;color:${sc};cursor:pointer;fill:currentcolor;height:calc(${Kh} * 1px);overflow:hidden;align-items:center;padding:0 calc(((${sr} * 3) - ${ar} - 1) * 1px);user-select:none;white-space:nowrap}:host::before{content:'';display:block;position:absolute;left:calc((${lr} - ${ar}) * 1px);top:calc((${Kh} / 4) - ${lr} * 1px);width:3px;height:calc((${Kh} / 2) * 1px);background:transparent;border-radius:calc(${nr} * 1px)}:host(:not([disabled]):hover){background:${Xl}}:host(:not([disabled]):active){background:${Yl}}:host(:not([disabled]):active)::before{background:${il};height:calc(((${Kh} / 2) - 6) * 1px)}:host([aria-selected='true'])::before{background:${il}}:host(:${nn}){${Gh}
|
|
184
|
+
background:${Ql}}:host([aria-selected='true']){background:${Ul}}:host(:not([disabled])[aria-selected='true']:hover){background:${ql}}:host(:not([disabled])[aria-selected='true']:active){background:${_l}}:host(:not([disabled]):not([aria-selected='true']):hover){background:${Xl}}:host(:not([disabled]):not([aria-selected='true']):active){background:${Yl}}:host([disabled]){cursor:${"not-allowed"};opacity:${tr}}.content{grid-column-start:2;justify-self:start;overflow:hidden;text-overflow:ellipsis}.start,.end,::slotted(svg){display:flex}::slotted([slot='end']){margin-inline-start:1ch}::slotted([slot='start']){margin-inline-end:1ch}`.withBehaviors(en(pt`
|
|
185
|
+
:host{background:${qe.ButtonFace};border-color:${qe.ButtonFace};color:${qe.ButtonText}}:host(:not([disabled]):not([aria-selected="true"]):hover),:host(:not([disabled])[aria-selected="true"]:hover),:host([aria-selected="true"]){forced-color-adjust:none;background:${qe.Highlight};color:${qe.HighlightText}}:host(:not([disabled]):active)::before,:host([aria-selected='true'])::before{background:${qe.HighlightText}}:host([disabled]),:host([disabled]:not([aria-selected='true']):hover){background:${qe.Canvas};color:${qe.GrayText};fill:currentcolor;opacity:1}:host(:${nn}){outline-color:${qe.CanvasText}}`)),np=Li.compose({baseName:"option",template:(t,e)=>q`<template aria-checked="${t=>t.ariaChecked}" aria-disabled="${t=>t.ariaDisabled}" aria-posinset="${t=>t.ariaPosInSet}" aria-selected="${t=>t.ariaSelected}" aria-setsize="${t=>t.ariaSetSize}" class="${t=>[t.checked&&"checked",t.selected&&"selected",t.disabled&&"disabled"].filter(Boolean).join(" ")}" role="option">${Nt(0,e)}<span class="content" part="content"><slot ${Pt("content")}></slot></span>${Bt(0,e)}</template>`,styles:sp}),rp=sp,ap=(t,e)=>pt`
|
|
186
|
+
${sn("block")} :host{background:${qa};border:calc(${ar} * 1px) solid transparent;border-radius:calc(${rr} * 1px);box-shadow:${$d};padding:calc((${sr} - ${ar}) * 1px) 0;max-width:368px;min-width:64px}:host([slot='submenu']){width:max-content;margin:0 calc(${sr} * 2px)}::slotted(${t.tagFor(Uo)}){margin:0 calc(${sr} * 1px)}::slotted(${t.tagFor(Ao)}){margin:calc(${sr} * 1px) 0}::slotted(hr){box-sizing:content-box;height:0;margin:calc(${sr} * 1px) 0;border:none;border-top:calc(${ar} * 1px) solid ${$c}}`.withBehaviors(en(pt`
|
|
187
|
+
:host([slot='submenu']){background:${qe.Canvas};border-color:${qe.CanvasText}}`));class lp extends qo{connectedCallback(){super.connectedCallback(),Ja.setValueFor(this,qa)}}const cp=lp.compose({baseName:"menu",baseClass:qo,template:(t,e)=>q`<template slot="${t=>t.slot?t.slot:t.isNestedMenu()?"submenu":void 0}" role="menu" @keydown="${(t,e)=>t.handleMenuKeyDown(e.event)}" @focusout="${(t,e)=>t.handleFocusOut(e.event)}"><slot ${Pt("items")}></slot></template>`,styles:ap}),hp=ap,dp=(t,e)=>pt`
|
|
179
188
|
${sn("grid")} :host{contain:layout;overflow:visible;${Ph}
|
|
180
|
-
|
|
181
|
-
:host,::slotted([slot='end']:not(svg)){forced-color-adjust:none;color:${qe.ButtonText};fill:currentcolor}:host(:not([disabled]):hover){background:${qe.Highlight};color:${qe.HighlightText};fill:currentcolor}:host(:hover) .start,:host(:hover) .end,:host(:hover)::slotted(svg),:host(:active) .start,:host(:active) .end,:host(:active)::slotted(svg),:host(:hover) ::slotted([slot='end']:not(svg)),:host(:${nn}) ::slotted([slot='end']:not(svg)){color:${qe.HighlightText};fill:currentcolor}:host(.expanded){background:${qe.Highlight};
|
|
189
|
+
box-sizing:border-box;height:calc(${Kh} * 1px);grid-template-columns:minmax(32px,auto) 1fr minmax(32px,auto);grid-template-rows:auto;justify-items:center;align-items:center;padding:0;white-space:nowrap;color:${sc};fill:currentcolor;cursor:pointer;border-radius:calc(${nr} * 1px);border:calc(${ar} * 1px) solid transparent}:host(.indent-0){grid-template-columns:auto 1fr minmax(32px,auto)}:host(.indent-0) .content{grid-column:1;grid-row:1;margin-inline-start:10px}:host(.indent-0) .expand-collapse-glyph-container{grid-column:5;grid-row:1}:host(.indent-2){grid-template-columns:minmax(32px,auto) minmax(32px,auto) 1fr minmax(32px,auto) minmax(32px,auto)}:host(.indent-2) .content{grid-column:3;grid-row:1;margin-inline-start:10px}:host(.indent-2) .expand-collapse-glyph-container{grid-column:5;grid-row:1}:host(.indent-2) .start{grid-column:2}:host(.indent-2) .end{grid-column:4}:host(:${nn}){${Gh}}:host(:not([disabled]):hover){background:${Xl}}:host(:not([disabled]):active),:host(.expanded){background:${Yl};color:${sc}}:host([disabled]){cursor:${"not-allowed"};opacity:${tr}}.content{grid-column-start:2;justify-self:start;overflow:hidden;text-overflow:ellipsis}.start,.end{display:flex;justify-content:center}:host(.indent-0[aria-haspopup='menu']){display:grid;grid-template-columns:minmax(32px,auto) auto 1fr minmax(32px,auto) minmax(32px,auto);align-items:center;min-height:32px}:host(.indent-1[aria-haspopup='menu']),:host(.indent-1[role='menuitemcheckbox']),:host(.indent-1[role='menuitemradio']){display:grid;grid-template-columns:minmax(32px,auto) auto 1fr minmax(32px,auto) minmax(32px,auto);align-items:center;min-height:32px}:host(.indent-2:not([aria-haspopup='menu'])) .end{grid-column:5}:host .input-container,:host .expand-collapse-glyph-container{display:none}:host([aria-haspopup='menu']) .expand-collapse-glyph-container,:host([role='menuitemcheckbox']) .input-container,:host([role='menuitemradio']) .input-container{display:grid}:host([aria-haspopup='menu']) .content,:host([role='menuitemcheckbox']) .content,:host([role='menuitemradio']) .content{grid-column-start:3}:host([aria-haspopup='menu'].indent-0) .content{grid-column-start:1}:host([aria-haspopup='menu']) .end,:host([role='menuitemcheckbox']) .end,:host([role='menuitemradio']) .end{grid-column-start:4}:host .expand-collapse,:host .checkbox,:host .radio{display:flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box}:host .checkbox-indicator,:host .radio-indicator,slot[name='checkbox-indicator'],slot[name='radio-indicator']{display:none}::slotted([slot='end']:not(svg)){margin-inline-end:10px;color:${cc}}:host([aria-checked='true']) .checkbox-indicator,:host([aria-checked='true']) slot[name='checkbox-indicator'],:host([aria-checked='true']) .radio-indicator,:host([aria-checked='true']) slot[name='radio-indicator']{display:flex}`.withBehaviors(en(pt`
|
|
190
|
+
:host,::slotted([slot='end']:not(svg)){forced-color-adjust:none;color:${qe.ButtonText};fill:currentcolor}:host(:not([disabled]):hover){background:${qe.Highlight};color:${qe.HighlightText};fill:currentcolor}:host(:hover) .start,:host(:hover) .end,:host(:hover)::slotted(svg),:host(:active) .start,:host(:active) .end,:host(:active)::slotted(svg),:host(:hover) ::slotted([slot='end']:not(svg)),:host(:${nn}) ::slotted([slot='end']:not(svg)){color:${qe.HighlightText};fill:currentcolor}:host(.expanded){background:${qe.Highlight};color:${qe.HighlightText}}:host(:${nn}){background:${qe.Highlight};outline-color:${qe.ButtonText};color:${qe.HighlightText};fill:currentcolor}:host([disabled]),:host([disabled]:hover),:host([disabled]:hover) .start,:host([disabled]:hover) .end,:host([disabled]:hover)::slotted(svg),:host([disabled]:${nn}){background:${qe.ButtonFace};color:${qe.GrayText};fill:currentcolor;opacity:1}:host([disabled]:${nn}){outline-color:${qe.GrayText}}:host .expanded-toggle,:host .checkbox,:host .radio{border-color:${qe.ButtonText};background:${qe.HighlightText}}:host([checked]) .checkbox,:host([checked]) .radio{background:${qe.HighlightText};border-color:${qe.HighlightText}}:host(:hover) .expanded-toggle,:host(:hover) .checkbox,:host(:hover) .radio,:host(:${nn}) .expanded-toggle,:host(:${nn}) .checkbox,:host(:${nn}) .radio,:host([checked]:hover) .checkbox,:host([checked]:hover) .radio,:host([checked]:${nn}) .checkbox,:host([checked]:${nn}) .radio{border-color:${qe.HighlightText}}:host([aria-checked='true']){background:${qe.Highlight};color:${qe.HighlightText}}:host([aria-checked='true']) .checkbox-indicator,:host([aria-checked='true']) ::slotted([slot='checkbox-indicator']),:host([aria-checked='true']) ::slotted([slot='radio-indicator']){fill:${qe.Highlight}}:host([aria-checked='true']) .radio-indicator{background:${qe.Highlight}}`),new sd(pt`
|
|
182
191
|
.expand-collapse-glyph-container{transform:rotate(0deg)}`,pt`
|
|
183
|
-
.expand-collapse-glyph-container{transform:rotate(180deg)}`)),
|
|
192
|
+
.expand-collapse-glyph-container{transform:rotate(180deg)}`)),up=Uo.compose({baseName:"menu-item",template:(t,e)=>q`<template role="${t=>t.role}" aria-haspopup="${t=>t.hasSubmenu?"menu":void 0}" aria-checked="${t=>t.role!==Mo?t.checked:void 0}" aria-disabled="${t=>t.disabled}" aria-expanded="${t=>t.expanded}" @keydown="${(t,e)=>t.handleMenuItemKeyDown(e.event)}" @click="${(t,e)=>t.handleMenuItemClick(e.event)}" @mouseover="${(t,e)=>t.handleMouseOver(e.event)}" @mouseout="${(t,e)=>t.handleMouseOut(e.event)}" class="${t=>t.disabled?"disabled":""} ${t=>t.expanded?"expanded":""} ${t=>"indent-"+t.startColumnCount}">${Ft(t=>t.role===Bo,q`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${e.checkboxIndicator||""}</slot></span></div>`)} ${Ft(t=>t.role===No,q`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${e.radioIndicator||""}</slot></span></div>`)}</div>${Nt(0,e)}<span class="content" part="content"><slot></slot></span>${Bt(0,e)} ${Ft(t=>t.hasSubmenu,q`<div part="expand-collapse-glyph-container" class="expand-collapse-glyph-container"><span part="expand-collapse" class="expand-collapse"><slot name="expand-collapse-indicator">${e.expandCollapseGlyph||""}</slot></span></div>`)} ${Ft(t=>t.expanded,q`<${t.tagFor(Je)} :anchorElement="${t=>t}" vertical-positioning-mode="dynamic" vertical-default-position="bottom" vertical-inset="true" horizontal-positioning-mode="dynamic" horizontal-default-position="end" class="submenu-region" dir="${t=>t.currentDirection}" @loaded="${t=>t.submenuLoaded()}" ${It("submenuRegion")} part="submenu-region"><slot name="submenu"></slot></${t.tagFor(Je)}>`)}</template>`,styles:dp,checkboxIndicator:'\n <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">\n <path d="M13.86 3.66a.5.5 0 01-.02.7l-7.93 7.48a.6.6 0 01-.84-.02L2.4 9.1a.5.5 0 01.72-.7l2.4 2.44 7.65-7.2a.5.5 0 01.7.02z"/>\n </svg>\n ',expandCollapseGlyph:'\n <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">\n <path d="M5.65 3.15a.5.5 0 000 .7L9.79 8l-4.14 4.15a.5.5 0 00.7.7l4.5-4.5a.5.5 0 000-.7l-4.5-4.5a.5.5 0 00-.7 0z"/>\n </svg>\n ',radioIndicator:'\n <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">\n <circle cx="8" cy="8" r="2"/>\n </svg>\n '}),pp=dp,gp=(t,e)=>pt`
|
|
184
193
|
${sn("inline-block")}
|
|
185
194
|
|
|
186
|
-
${
|
|
195
|
+
${Ad(0,0,".root")}
|
|
187
196
|
|
|
188
|
-
${
|
|
197
|
+
${Ld()}
|
|
189
198
|
|
|
190
|
-
.root{display:flex;flex-direction:row}.control{-webkit-appearance:none;color:inherit;background:transparent;border:0;height:calc(100% - 4px);margin-top:auto;margin-bottom:auto;padding:0 calc(${sr} * 2px + 1px);font-family:inherit;font-size:inherit;line-height:inherit}.start,.end{margin:auto;fill:currentcolor}.start{display:flex;margin-inline-start:11px}.end{display:flex;margin-inline-end:11px}.controls{opacity:0;position:relative;top:-1px;z-index:3}:host(:hover:not([disabled])) .controls,:host(:focus-within:not([disabled])) .controls{opacity:1}.step-up,.step-down{display:flex;padding:0 8px;cursor:pointer}.step-up{padding-top:3px}`.withBehaviors(
|
|
191
|
-
${
|
|
199
|
+
.root{display:flex;flex-direction:row}.control{-webkit-appearance:none;color:inherit;background:transparent;border:0;height:calc(100% - 4px);margin-top:auto;margin-bottom:auto;padding:0 calc(${sr} * 2px + 1px);font-family:inherit;font-size:inherit;line-height:inherit}.start,.end{margin:auto;fill:currentcolor}.start{display:flex;margin-inline-start:11px}.end{display:flex;margin-inline-end:11px}.controls{opacity:0;position:relative;top:-1px;z-index:3}:host(:hover:not([disabled])) .controls,:host(:focus-within:not([disabled])) .controls{opacity:1}.step-up,.step-down{display:flex;padding:0 8px;cursor:pointer}.step-up{padding-top:3px}`.withBehaviors(Md("filled",pt`
|
|
200
|
+
${Pd(0,0,".root")}
|
|
192
201
|
`.withBehaviors(en(pt`
|
|
193
|
-
${
|
|
202
|
+
${Hd(0,0,".root")}
|
|
194
203
|
`))),en(pt`
|
|
195
|
-
${
|
|
196
|
-
.step-up,.step-down{fill:${qe.FieldText}}`));class
|
|
197
|
-
${sn("flex")} :host{align-items:center;
|
|
198
|
-
.indeterminate-indicator-1,.indeterminate-indicator-2,.determinate,.progress{background-color:${qe.ButtonText}}:host(.paused) .indeterminate-indicator-1,:host(.paused) .indeterminate-indicator-2,:host(.paused) .determinate{background-color:${qe.GrayText}}`));class
|
|
199
|
-
${sn("flex")} :host{align-items:center;
|
|
200
|
-
.background{stroke:${qe.Field}}.determinate,.indeterminate-indicator-1{stroke:${qe.ButtonText}}:host(.paused) .determinate,:host(.paused) .indeterminate-indicator-1{stroke:${qe.GrayText}}`));class
|
|
201
|
-
${sn("inline-flex")} :host{--input-size:calc((${
|
|
202
|
-
color:${sc};${""} padding-inline-start:calc(${sr} * 2px + 2px);margin-inline-end:calc(${sr} * 2px + 2px);cursor:pointer}.control,slot[name='checked-indicator']{flex-shrink:0}slot[name='checked-indicator']{display:flex;align-items:center;justify-content:center;width:100%;height:100%;fill:${al};opacity:0;pointer-events:none}:host(:not(.disabled):hover) .control{background:${Rl};border-color:${Rc}}:host(:not(.disabled):active) .control{background:${Al};border-color:${Ac}}:host(:not(.disabled):active) slot[name='checked-indicator']{opacity:1}:host(:${nn}) .control{
|
|
203
|
-
|
|
204
|
-
|
|
204
|
+
${zd(0,0,".root")}
|
|
205
|
+
.step-up,.step-down{fill:${qe.FieldText}}`));class fp extends Zo{connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}od([tt],fp.prototype,"appearance",void 0);const mp=gp,vp=fp.compose({baseName:"number-field",baseClass:Zo,styles:gp,template:(t,e)=>q`<template class="${t=>t.readOnly?"readonly":""}"><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Pt("defaultSlottedNodes")}></slot></label><div class="root" part="root">${Nt(0,e)}<input class="control" part="control" id="control" @input="${t=>t.handleTextInput()}" @change="${t=>t.handleChange()}" @keydown="${(t,e)=>t.handleKeyDown(e.event)}" @blur="${(t,e)=>t.handleBlur()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" type="text" inputmode="numeric" min="${t=>t.min}" max="${t=>t.max}" step="${t=>t.step}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${It("control")} />${Ft(t=>!t.hideStep&&!t.readOnly&&!t.disabled,q`<div class="controls" part="controls"><div class="step-up" part="step-up" @click="${t=>t.stepUp()}"><slot name="step-up-glyph">${e.stepUpGlyph||""}</slot></div><div class="step-down" part="step-down" @click="${t=>t.stepDown()}"><slot name="step-down-glyph">${e.stepDownGlyph||""}</slot></div></div>`)} ${Bt(0,e)}</div></template>`,shadowOptions:{delegatesFocus:!0},stepDownGlyph:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <path d="M2.15 4.65c.2-.2.5-.2.7 0L6 7.79l3.15-3.14a.5.5 0 11.7.7l-3.5 3.5a.5.5 0 01-.7 0l-3.5-3.5a.5.5 0 010-.7z"/>\n </svg>\n ',stepUpGlyph:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <path d="M2.15 7.35c.2.2.5.2.7 0L6 4.21l3.15 3.14a.5.5 0 10.7-.7l-3.5-3.5a.5.5 0 00-.7 0l-3.5 3.5a.5.5 0 000 .7z"/>\n </svg>\n'}),bp=(t,e)=>pt`
|
|
206
|
+
${sn("flex")} :host{align-items:center;height:calc((${ar} * 3) * 1px)}.progress{background-color:${Vc};border-radius:calc(${sr} * 1px);width:100%;height:calc(${ar} * 1px);display:flex;align-items:center;position:relative}.determinate{background-color:${il};border-radius:calc(${sr} * 1px);height:calc((${ar} * 3) * 1px);transition:all 0.2s ease-in-out;display:flex}.indeterminate{height:calc((${ar} * 3) * 1px);border-radius:calc(${sr} * 1px);display:flex;width:100%;position:relative;overflow:hidden}.indeterminate-indicator-1{position:absolute;opacity:0;height:100%;background-color:${il};border-radius:calc(${sr} * 1px);animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:40%;animation:indeterminate-1 2s infinite}.indeterminate-indicator-2{position:absolute;opacity:0;height:100%;background-color:${il};border-radius:calc(${sr} * 1px);animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:60%;animation:indeterminate-2 2s infinite}:host(.paused) .indeterminate-indicator-1,:host(.paused) .indeterminate-indicator-2{animation:none;background-color:${cc};width:100%;opacity:1}:host(.paused) .determinate{background-color:${cc}}@keyframes indeterminate-1{0%{opacity:1;transform:translateX(-100%)}70%{opacity:1;transform:translateX(300%)}70.01%{opacity:0}100%{opacity:0;transform:translateX(300%)}}@keyframes indeterminate-2{0%{opacity:0;transform:translateX(-150%)}29.99%{opacity:0}30%{opacity:1;transform:translateX(-150%)}100%{transform:translateX(166.66%);opacity:1}}`.withBehaviors(en(pt`
|
|
207
|
+
.indeterminate-indicator-1,.indeterminate-indicator-2,.determinate,.progress{background-color:${qe.ButtonText}}:host(.paused) .indeterminate-indicator-1,:host(.paused) .indeterminate-indicator-2,:host(.paused) .determinate{background-color:${qe.GrayText}}`));class yp extends Jo{}const xp=yp.compose({baseName:"progress",template:(t,e)=>q`<template role="progressbar" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" class="${t=>t.paused?"paused":""}">${Ft(t=>"number"==typeof t.value,q`<div class="progress" part="progress" slot="determinate"><div class="determinate" part="determinate" style="width: ${t=>t.percentComplete}%"></div></div>`)} ${Ft(t=>"number"!=typeof t.value,q`<div class="progress" part="progress" slot="indeterminate"><slot class="indeterminate" name="indeterminate">${e.indeterminateIndicator1||""} ${e.indeterminateIndicator2||""}</slot></div>`)}</template>`,styles:bp,indeterminateIndicator1:'\n <span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>\n ',indeterminateIndicator2:'\n <span class="indeterminate-indicator-2" part="indeterminate-indicator-2"></span>\n '}),$p=bp,wp=(t,e)=>pt`
|
|
208
|
+
${sn("flex")} :host{align-items:center;height:calc(${Kh} * 1px);width:calc(${Kh} * 1px)}.progress{height:100%;width:100%}.background{fill:none;stroke-width:2px}.determinate{stroke:${il};fill:none;stroke-width:2px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out}.indeterminate-indicator-1{stroke:${il};fill:none;stroke-width:2px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 2s linear infinite}:host(.paused) .indeterminate-indicator-1{animation:none;stroke:${cc}}:host(.paused) .determinate{stroke:${cc}}@keyframes spin-infinite{0%{stroke-dasharray:0.01px 43.97px;transform:rotate(0deg)}50%{stroke-dasharray:21.99px 21.99px;transform:rotate(450deg)}100%{stroke-dasharray:0.01px 43.97px;transform:rotate(1080deg)}}`.withBehaviors(en(pt`
|
|
209
|
+
.background{stroke:${qe.Field}}.determinate,.indeterminate-indicator-1{stroke:${qe.ButtonText}}:host(.paused) .determinate,:host(.paused) .indeterminate-indicator-1{stroke:${qe.GrayText}}`));class kp extends Jo{}const Cp=kp.compose({baseName:"progress-ring",template:(t,e)=>q`<template role="progressbar" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" class="${t=>t.paused?"paused":""}">${Ft(t=>"number"==typeof t.value,q`<svg class="progress" part="progress" viewBox="0 0 16 16" slot="determinate"><circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle><circle class="determinate" part="determinate" style="stroke-dasharray: ${t=>44*t.percentComplete/100}px ${44}px" cx="8px" cy="8px" r="7px"></circle></svg>`)} ${Ft(t=>"number"!=typeof t.value,q`<slot name="indeterminate" slot="indeterminate">${e.indeterminateIndicator||""}</slot>`)}</template>`,styles:wp,indeterminateIndicator:'\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <circle\n class="background"\n part="background"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n <circle\n class="indeterminate-indicator-1"\n part="indeterminate-indicator-1"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n </svg>\n '}),Ip=wp,Fp=(t,e)=>pt`
|
|
210
|
+
${sn("inline-flex")} :host{--input-size:calc((${Kh} / 2) + ${sr});align-items:center;outline:none;${""} user-select:none;position:relative;flex-direction:row;transition:all 0.2s ease-in-out}.control{position:relative;width:calc(var(--input-size) * 1px);height:calc(var(--input-size) * 1px);box-sizing:border-box;border-radius:50%;border:calc(${ar} * 1px) solid ${Vc};background:${Vl};cursor:pointer}.label__hidden{display:none;visibility:hidden}.label{${Ph}
|
|
211
|
+
color:${sc};${""} padding-inline-start:calc(${sr} * 2px + 2px);margin-inline-end:calc(${sr} * 2px + 2px);cursor:pointer}.control,slot[name='checked-indicator']{flex-shrink:0}slot[name='checked-indicator']{display:flex;align-items:center;justify-content:center;width:100%;height:100%;fill:${al};opacity:0;pointer-events:none}:host(:not(.disabled):hover) .control{background:${Rl};border-color:${Rc}}:host(:not(.disabled):active) .control{background:${Al};border-color:${Ac}}:host(:not(.disabled):active) slot[name='checked-indicator']{opacity:1}:host(:${nn}) .control{${Wh}
|
|
212
|
+
background:${Ll}}:host(.checked) .control{background:${il};border-color:transparent}:host(.checked:not(.disabled):hover) .control{background:${ol};border-color:transparent}:host(.checked:not(.disabled):active) .control{background:${sl};border-color:transparent}:host(.disabled) .label,:host(.readonly) .label,:host(.readonly) .control,:host(.disabled) .control{cursor:${"not-allowed"}}:host(.checked) slot[name='checked-indicator']{opacity:1}:host(.disabled){opacity:${tr}}`.withBehaviors(en(pt`
|
|
213
|
+
.control{background:${qe.Field};border-color:${qe.FieldText}}:host(:not(.disabled):hover) .control,:host(:not(.disabled):active) .control{border-color:${qe.Highlight}}:host(:${nn}) .control{forced-color-adjust:none;background:${qe.Field};outline-color:${qe.FieldText}}:host(.checked:not(.disabled):hover) .control,:host(.checked:not(.disabled):active) .control{border-color:${qe.Highlight};background:${qe.Highlight}}:host(.checked) slot[name='checked-indicator']{fill:${qe.Highlight}}:host(.checked:hover) .control slot[name='checked-indicator']{fill:${qe.HighlightText}}:host(.disabled){opacity:1}:host(.disabled) .label{color:${qe.GrayText}}:host(.disabled) .control,:host(.checked.disabled) .control{background:${qe.Field};border-color:${qe.GrayText}}:host(.disabled) slot[name='checked-indicator'],:host(.checked.disabled) slot[name='checked-indicator']{fill:${qe.GrayText}}`)),Dp=os.compose({baseName:"radio",template:(t,e)=>q`<template role="radio" class="${t=>t.checked?"checked":""} ${t=>t.readOnly?"readonly":""}" aria-checked="${t=>t.checked}" aria-required="${t=>t.required}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}"><div part="control" class="control"><slot name="checked-indicator">${e.checkedIndicator||""}</slot></div><label part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Pt("defaultSlottedNodes")}></slot></label></template>`,styles:Fp,checkedIndicator:'\n <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">\n <circle cx="8" cy="8" r="4"/>\n </svg>\n '}),Tp=Fp,Sp=(t,e)=>pt`
|
|
214
|
+
${sn("flex")} :host{align-items:flex-start;flex-direction:column}.positioning-region{display:flex;flex-wrap:wrap}:host([orientation='vertical']) .positioning-region{flex-direction:column}:host([orientation='horizontal']) .positioning-region{flex-direction:row}`,Op=ts.compose({baseName:"radio-group",template:(t,e)=>q`<template role="radiogroup" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @focusout="${(t,e)=>t.focusOutHandler(e.event)}"><slot name="label"></slot><div class="positioning-region ${t=>t.orientation===Ve?"horizontal":"vertical"}" part="positioning-region"><slot ${Pt({property:"slottedRadioButtons",filter:Rt("[role=radio]")})}></slot></div></template>`,styles:Sp}),Ep=Sp,Vp=(t,e)=>q`<template class=" ${t=>t.readOnly?"readonly":""} "><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Pt({property:"defaultSlottedNodes",filter:ns})}></slot></label><div class="root" part="root" ${It("root")}>${Nt(0,e)}<div class="input-wrapper" part="input-wrapper"><input class="control" part="control" id="control" @input="${t=>t.handleTextInput()}" @change="${t=>t.handleChange()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" type="search" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${It("control")} /><slot name="clear-button"><button class="clear-button ${t=>t.value?"":"clear-button__hidden"}" part="clear-button" tabindex="-1" @click=${t=>t.handleClearInput()}><slot name="clear-glyph"><svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"><path d="m2.09 2.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L6 5.29l3.15-3.14a.5.5 0 1 1 .7.7L6.71 6l3.14 3.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L6 6.71 2.85 9.85a.5.5 0 0 1-.7-.7L5.29 6 2.15 2.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z" /></svg></slot></button></slot></div>${Bt(0,e)}</div></template>`,Rp=po.create("clear-button-hover").withDefault(t=>{const e=Wl.getValueFor(t),i=Fl.getValueFor(t);return e.evaluate(t,i.evaluate(t).focus).hover}),Ap=po.create("clear-button-active").withDefault(t=>{const e=Wl.getValueFor(t),i=Fl.getValueFor(t);return e.evaluate(t,i.evaluate(t).focus).active}),Lp=(t,e)=>pt`
|
|
205
215
|
${sn("inline-block")}
|
|
206
|
-
${Vd(0,0,".root")}
|
|
207
|
-
${Rd()}
|
|
208
|
-
.root{display:flex;flex-direction:row}.control{-webkit-appearance:none;color:inherit;background:transparent;border:0;height:calc(100% - 4px);margin-top:auto;margin-bottom:auto;padding:0 calc(${sr} * 2px + 1px);font-family:inherit;font-size:inherit;line-height:inherit}.clear-button{display:inline-flex;align-items:center;margin:1px;height:calc(100% - 2px);opacity:0;background:transparent;color:${sc};fill:currentcolor;border:none;border-radius:calc(${nr} * 1px);min-width:calc(${Gh} * 1px);${Ph}
|
|
209
|
-
outline:none;padding:0 calc((10 + (${sr} * 2 * ${or})) * 1px)}.clear-button:hover{background:${Ep}}.clear-button:active{background:${Vp}}:host(:hover:not([disabled],[readOnly])) .clear-button,:host(:active:not([disabled],[readOnly])) .clear-button,:host(:focus-within:not([disabled],[readOnly])) .clear-button{opacity:1}:host(:hover:not([disabled],[readOnly])) .clear-button__hidden,:host(:active:not([disabled],[readOnly])) .clear-button__hidden,:host(:focus-within:not([disabled],[readOnly])) .clear-button__hidden{opacity:0}.control::-webkit-search-cancel-button{-webkit-appearance:none}.input-wrapper{display:flex;position:relative;width:100%}.start,.end{display:flex;margin:1px;align-items:center}.start{display:flex;margin-inline-start:11px}::slotted([slot="end"]){height:100%}.clear-button__hidden{opacity:0}.end{margin-inline-end:11px}::slotted(${t.tagFor(ci)}){margin-inline-end:1px}`.withBehaviors(Hd("filled",pt`
|
|
210
216
|
${Ad(0,0,".root")}
|
|
217
|
+
${Ld()}
|
|
218
|
+
.root{display:flex;flex-direction:row}.control{-webkit-appearance:none;color:inherit;background:transparent;border:0;height:calc(100% - 4px);margin-top:auto;margin-bottom:auto;padding:0 calc(${sr} * 2px + 1px);font-family:inherit;font-size:inherit;line-height:inherit}.clear-button{display:inline-flex;align-items:center;margin:1px;height:calc(100% - 2px);opacity:0;background:transparent;color:${sc};fill:currentcolor;border:none;border-radius:calc(${nr} * 1px);min-width:calc(${Kh} * 1px);${Ph}
|
|
219
|
+
outline:none;padding:0 calc((10 + (${sr} * 2 * ${or})) * 1px)}.clear-button:hover{background:${Rp}}.clear-button:active{background:${Ap}}:host(:hover:not([disabled],[readOnly])) .clear-button,:host(:active:not([disabled],[readOnly])) .clear-button,:host(:focus-within:not([disabled],[readOnly])) .clear-button{opacity:1}:host(:hover:not([disabled],[readOnly])) .clear-button__hidden,:host(:active:not([disabled],[readOnly])) .clear-button__hidden,:host(:focus-within:not([disabled],[readOnly])) .clear-button__hidden{opacity:0}.control::-webkit-search-cancel-button{-webkit-appearance:none}.input-wrapper{display:flex;position:relative;width:100%}.start,.end{display:flex;margin:1px;align-items:center}.start{display:flex;margin-inline-start:11px}::slotted([slot="end"]){height:100%}.clear-button__hidden{opacity:0}.end{margin-inline-end:11px}::slotted(${t.tagFor(ci)}){margin-inline-end:1px}`.withBehaviors(Md("filled",pt`
|
|
220
|
+
${Pd(0,0,".root")}
|
|
211
221
|
`.withBehaviors(en(pt`
|
|
212
|
-
${
|
|
222
|
+
${Hd(0,0,".root")}
|
|
213
223
|
`))),en(pt`
|
|
214
|
-
${
|
|
215
|
-
`));class
|
|
224
|
+
${zd(0,0,".root")}
|
|
225
|
+
`));class Pp extends ls{constructor(){super(...arguments),this.appearance="outline"}}od([tt],Pp.prototype,"appearance",void 0);const zp=Pp.compose({baseName:"search",baseClass:ls,template:Vp,styles:Lp,start:'<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg%22%3E"><path d="M8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"/></svg>',shadowOptions:{delegatesFocus:!0}}),Hp=Lp;class Mp extends us{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline"),this.listbox&&Ja.setValueFor(this.listbox,qa)}}od([tt({mode:"fromView"})],Mp.prototype,"appearance",void 0);const Bp=Mp.compose({baseName:"select",baseClass:us,template:(t,e)=>q`<template class="${t=>[t.collapsible&&"collapsible",t.collapsible&&t.open&&"open",t.disabled&&"disabled",t.collapsible&&t.position].filter(Boolean).join(" ")}" aria-activedescendant="${t=>t.ariaActiveDescendant}" aria-controls="${t=>t.ariaControls}" aria-disabled="${t=>t.ariaDisabled}" aria-expanded="${t=>t.ariaExpanded}" aria-haspopup="${t=>t.collapsible?"listbox":null}" aria-multiselectable="${t=>t.ariaMultiSelectable}" ?open="${t=>t.open}" role="combobox" tabindex="${t=>t.disabled?null:"0"}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @focusout="${(t,e)=>t.focusoutHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @mousedown="${(t,e)=>t.mousedownHandler(e.event)}">${Ft(t=>t.collapsible,q`<div class="control" part="control" ?disabled="${t=>t.disabled}" ${It("control")}>${Nt(0,e)}<slot name="button-container"><div class="selected-value" part="selected-value"><slot name="selected-value">${t=>t.displayValue}</slot></div><div aria-hidden="true" class="indicator" part="indicator"><slot name="indicator">${e.indicator||""}</slot></div></slot>${Bt(0,e)}</div>`)}<div class="listbox" id="${t=>t.listboxId}" part="listbox" role="listbox" ?disabled="${t=>t.disabled}" ?hidden="${t=>!!t.collapsible&&!t.open}" ${It("listbox")}><slot ${Pt({filter:zi.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></div></template>`,styles:yu,indicator:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <path d="M2.15 4.65c.2-.2.5-.2.7 0L6 7.79l3.15-3.14a.5.5 0 11.7.7l-3.5 3.5a.5.5 0 01-.7 0l-3.5-3.5a.5.5 0 010-.7z"/>\n </svg>\n '}),Np=yu,jp=(t,e)=>pt`
|
|
216
226
|
${sn("block")} :host{--skeleton-fill-default:${Ul};overflow:hidden;width:100%;position:relative;background-color:var(--skeleton-fill,var(--skeleton-fill-default));--skeleton-animation-gradient-default:linear-gradient(
|
|
217
227
|
270deg,var(--skeleton-fill,var(--skeleton-fill-default)) 0%,${ql} 51%,var(--skeleton-fill,var(--skeleton-fill-default)) 100%
|
|
218
228
|
);--skeleton-animation-timing-default:ease-in-out}:host(.rect){border-radius:calc(${nr} * 1px)}:host(.circle){border-radius:100%;overflow:hidden}object{position:absolute;width:100%;height:auto;z-index:2}object img{width:100%;height:auto}${sn("block")} span.shimmer{position:absolute;width:100%;height:100%;background-image:var(--skeleton-animation-gradient,var(--skeleton-animation-gradient-default));background-size:0px 0px / 90% 100%;background-repeat:no-repeat;background-color:var(--skeleton-animation-fill,${Ul});animation:shimmer 2s infinite;animation-timing-function:var(--skeleton-animation-timing,var(--skeleton-timing-default));animation-direction:normal;z-index:1}::slotted(svg){z-index:2}::slotted(.pattern){width:100%;height:100%}@keyframes shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}`.withBehaviors(en(pt`
|
|
219
|
-
:host{background-color:${qe.CanvasText}}`)),
|
|
220
|
-
${sn("inline-grid")} :host{--thumb-size:calc((${
|
|
221
|
-
.thumb-cursor{forced-color-adjust:none;border-color:${qe.FieldText};background:${qe.FieldText}}:host(:not(.disabled)) .thumb-cursor:hover,:host(:not(.disabled)) .thumb-cursor:active{background:${qe.Highlight}}.track{forced-color-adjust:none;background:${qe.FieldText}}.thumb-cursor::after,:host(:not(.disabled)) .thumb-cursor:hover::after,:host(:not(.disabled)) .thumb-cursor:active::after{background:${qe.Field}}:host(:${nn}) .thumb-cursor{background:${qe.Highlight};border-color:${qe.Highlight};box-shadow:0 0 0 1px ${qe.Field},0 0 0 3px ${qe.FieldText}}:host(.disabled){opacity:1}:host(.disabled) .track,:host(.disabled) .thumb-cursor{forced-color-adjust:none;background:${qe.GrayText}}`)),
|
|
222
|
-
${sn("block")} :host{${
|
|
223
|
-
.mark{forced-color-adjust:none;background:${qe.FieldText}}:host(.disabled){forced-color-adjust:none;opacity:1}:host(.disabled) .label{color:${qe.GrayText}}:host(.disabled) .mark{background:${qe.GrayText}}`)),
|
|
224
|
-
:host([hidden]){display:none}${sn("inline-flex")} :host{align-items:center;outline:none;font-family:${cr};${""} user-select:none}:host(.disabled){opacity:${tr}}:host(.disabled) .label,:host(.readonly) .label,:host(.disabled) .switch,:host(.readonly) .switch,:host(.disabled) .status-message,:host(.readonly) .status-message{cursor:${"not-allowed"}}.switch{position:relative;
|
|
225
|
-
|
|
229
|
+
:host{background-color:${qe.CanvasText}}`)),Up=gs.compose({baseName:"skeleton",template:(t,e)=>q`<template class="${t=>"circle"===t.shape?"circle":"rect"}" pattern="${t=>t.pattern}" ?shimmer="${t=>t.shimmer}">${Ft(t=>!0===t.shimmer,q`<span class="shimmer"></span>`)}<object type="image/svg+xml" data="${t=>t.pattern}" role="presentation"><img class="pattern" src="${t=>t.pattern}" /></object><slot></slot></template>`,styles:jp}),qp=jp,_p=(t,e)=>pt`
|
|
230
|
+
${sn("inline-grid")} :host{--thumb-size:calc((${Kh} / 2) + ${sr} + (${ar} * 2));--thumb-translate:calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang:calc((${sr} / 2) * -1);--track-width:${sr};align-items:center;width:100%;user-select:none;box-sizing:border-box;border-radius:calc(${nr} * 1px);outline:none;cursor:pointer}:host(.horizontal) .positioning-region{position:relative;margin:0 8px;display:grid;grid-template-rows:calc(var(--thumb-size) * 1px) 1fr}:host(.vertical) .positioning-region{position:relative;margin:0 8px;display:grid;height:100%;grid-template-columns:calc(var(--thumb-size) * 1px) 1fr}:host(:${nn}) .thumb-cursor{box-shadow:0 0 0 2px ${Ja},0 0 0 4px ${zc}}.thumb-container{position:absolute;height:calc(var(--thumb-size) * 1px);width:calc(var(--thumb-size) * 1px);transition:all 0.2s ease}.thumb-cursor{display:flex;position:relative;border:none;width:calc(var(--thumb-size) * 1px);height:calc(var(--thumb-size) * 1px);background:padding-box linear-gradient(${wl},${wl}),border-box ${mc};border:calc(${ar} * 1px) solid transparent;border-radius:50%;box-sizing:border-box}.thumb-cursor::after{content:'';display:block;border-radius:50%;width:100%;margin:4px;background:${il}}:host(:not(.disabled)) .thumb-cursor:hover::after{background:${ol};margin:3px}:host(:not(.disabled)) .thumb-cursor:active::after{background:${sl};margin:5px}:host(:not(.disabled)) .thumb-cursor:hover{background:padding-box linear-gradient(${wl},${wl}),border-box ${vc}}:host(:not(.disabled)) .thumb-cursor:active{background:padding-box linear-gradient(${wl},${wl}),border-box ${bc}}.track-start{background:${il};position:absolute;height:100%;left:0;border-radius:calc(${nr} * 1px)}:host(.horizontal) .thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5px)) translateY(calc(var(--thumb-translate) * 1px))}:host(.vertical) .thumb-container{transform:translateX(calc(var(--thumb-translate) * 1px)) translateY(calc(var(--thumb-size) * 0.5px))}:host(.horizontal){min-width:calc(var(--thumb-size) * 1px)}:host(.horizontal) .track{right:calc(var(--track-overhang) * 1px);left:calc(var(--track-overhang) * 1px);align-self:start;height:calc(var(--track-width) * 1px)}:host(.vertical) .track{top:calc(var(--track-overhang) * 1px);bottom:calc(var(--track-overhang) * 1px);width:calc(var(--track-width) * 1px);height:100%}.track{background:${Jl};border:1px solid ${Vc};border-radius:2px;box-sizing:border-box;position:absolute}:host(.vertical){height:100%;min-height:calc(${sr} * 60px);min-width:calc(${sr} * 20px)}:host(.vertical) .track-start{height:auto;width:100%;top:0}:host(.disabled),:host(.readonly){cursor:${"not-allowed"}}:host(.disabled){opacity:${tr}}`.withBehaviors(en(pt`
|
|
231
|
+
.thumb-cursor{forced-color-adjust:none;border-color:${qe.FieldText};background:${qe.FieldText}}:host(:not(.disabled)) .thumb-cursor:hover,:host(:not(.disabled)) .thumb-cursor:active{background:${qe.Highlight}}.track{forced-color-adjust:none;background:${qe.FieldText}}.thumb-cursor::after,:host(:not(.disabled)) .thumb-cursor:hover::after,:host(:not(.disabled)) .thumb-cursor:active::after{background:${qe.Field}}:host(:${nn}) .thumb-cursor{background:${qe.Highlight};border-color:${qe.Highlight};box-shadow:0 0 0 1px ${qe.Field},0 0 0 3px ${qe.FieldText}}:host(.disabled){opacity:1}:host(.disabled) .track,:host(.disabled) .thumb-cursor{forced-color-adjust:none;background:${qe.GrayText}}`)),Gp=$s.compose({baseName:"slider",template:(t,e)=>q`<template role="slider" class="${t=>t.readOnly?"readonly":""} ${t=>t.orientation||Ve}" tabindex="${t=>t.disabled?null:0}" aria-valuetext="${t=>t.valueTextFormatter(t.value)}" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" aria-disabled="${t=>!!t.disabled||void 0}" aria-readonly="${t=>!!t.readOnly||void 0}" aria-orientation="${t=>t.orientation}" class="${t=>t.orientation}"><div part="positioning-region" class="positioning-region"><div ${It("track")} part="track-container" class="track"><slot name="track"></slot><div part="track-start" class="track-start" style="${t=>t.position}"><slot name="track-start"></slot></div></div><slot></slot><div ${It("thumb")} part="thumb-container" class="thumb-container" style="${t=>t.position}"><slot name="thumb">${e.thumb||""}</slot></div></div></template>`,styles:_p,thumb:'\n <div class="thumb-cursor"></div>\n '}),Wp=_p,Kp=(t,e)=>pt`
|
|
232
|
+
${sn("block")} :host{${zh}}.root{position:absolute;display:grid}:host(.horizontal){align-self:start;grid-row:2;margin-top:-4px}:host(.vertical){justify-self:start;grid-column:2;margin-left:2px}.container{display:grid;justify-self:center}:host(.horizontal) .container{grid-template-rows:auto auto;grid-template-columns:0}:host(.vertical) .container{grid-template-columns:auto auto;grid-template-rows:0;min-width:calc(var(--thumb-size) * 1px);height:calc(var(--thumb-size) * 1px)}.label{justify-self:center;align-self:center;white-space:nowrap;max-width:30px;margin:2px 0}.mark{width:calc(${ar} * 1px);height:calc(${sr} * 1px);background:${Vc};justify-self:center}:host(.vertical) .mark{transform:rotate(90deg);align-self:center}:host(.vertical) .label{margin-left:calc((${sr} / 2) * 2px);align-self:center}:host(.disabled){opacity:${tr}}`.withBehaviors(en(pt`
|
|
233
|
+
.mark{forced-color-adjust:none;background:${qe.FieldText}}:host(.disabled){forced-color-adjust:none;opacity:1}:host(.disabled) .label{color:${qe.GrayText}}:host(.disabled) .mark{background:${qe.GrayText}}`)),Xp=vs.compose({baseName:"slider-label",template:(t,e)=>q`<template aria-disabled="${t=>t.disabled}" class="${t=>t.sliderOrientation||Ve} ${t=>t.disabled?"disabled":""}"><div ${It("root")} part="root" class="root" style="${t=>t.positionStyle}"><div class="container">${Ft(t=>!t.hideMark,q`<div class="mark"></div>`)}<div class="label"><slot></slot></div></div></div></template>`,styles:Kp}),Yp=Kp,Qp=(t,e)=>pt`
|
|
234
|
+
:host([hidden]){display:none}${sn("inline-flex")} :host{align-items:center;outline:none;font-family:${cr};${""} user-select:none}:host(.disabled){opacity:${tr}}:host(.disabled) .label,:host(.readonly) .label,:host(.disabled) .switch,:host(.readonly) .switch,:host(.disabled) .status-message,:host(.readonly) .status-message{cursor:${"not-allowed"}}.switch{position:relative;box-sizing:border-box;width:calc(((${Kh} / 2) + ${sr}) * 2px);height:calc(((${Kh} / 2) + ${sr}) * 1px);background:${Vl};border-radius:calc(${Kh} * 1px);border:calc(${ar} * 1px) solid ${Vc};cursor:pointer}:host(:not(.disabled):hover) .switch{background:${Rl};border-color:${Rc}}:host(:not(.disabled):active) .switch{background:${Al};border-color:${Ac}}:host(:${nn}) .switch{${Wh}
|
|
235
|
+
background:${Ll}}:host(.checked) .switch{background:${il};border-color:transparent}:host(.checked:not(.disabled):hover) .switch{background:${ol};border-color:transparent}:host(.checked:not(.disabled):active) .switch{background:${sl};border-color:transparent}slot[name='switch']{position:absolute;display:flex;border:1px solid transparent;fill:${sc};transition:all 0.2s ease-in-out}.status-message{color:${sc};cursor:pointer;${Ph}}.label__hidden{display:none;visibility:hidden}.label{color:${sc};${Ph}
|
|
236
|
+
margin-inline-end:calc(${sr} * 2px + 2px);cursor:pointer}::slotted([slot="checked-message"]),::slotted([slot="unchecked-message"]){margin-inline-start:calc(${sr} * 2px + 2px)}:host(.checked) .switch{background:${il}}:host(.checked) .switch slot[name='switch']{fill:${al};filter:drop-shadow(0px 1px 1px rgba(0,0,0,0.15))}:host(.checked:not(.disabled)) .switch:hover{background:${ol}}:host(.checked:not(.disabled)) .switch:hover slot[name='switch']{fill:${ll}}:host(.checked:not(.disabled)) .switch:active{background:${sl}}:host(.checked:not(.disabled)) .switch:active slot[name='switch']{fill:${cl}}.unchecked-message{display:block}.checked-message{display:none}:host(.checked) .unchecked-message{display:none}:host(.checked) .checked-message{display:block}`.withBehaviors(new sd(pt`
|
|
226
237
|
slot[name='switch']{left:0}:host(.checked) slot[name='switch']{left:100%;transform:translateX(-100%)}`,pt`
|
|
227
238
|
slot[name='switch']{right:0}:host(.checked) slot[name='switch']{right:100%;transform:translateX(100%)}`),en(pt`
|
|
228
|
-
:host(:not(.disabled)) .switch slot[name='switch']{forced-color-adjust:none;fill:${qe.FieldText}}.switch{background:${qe.Field};border-color:${qe.FieldText}}:host(.checked) .switch{background:${qe.Highlight};border-color:${qe.Highlight}}:host(:not(.disabled):hover) .switch,:host(:not(.disabled):active) .switch,:host(.checked:not(.disabled):hover) .switch{background:${qe.HighlightText};border-color:${qe.Highlight}}:host(.checked:not(.disabled)) .switch slot[name="switch"]{fill:${qe.HighlightText}}:host(.checked:not(.disabled):hover) .switch slot[name='switch']{fill:${qe.Highlight}}:host(:${nn}) .switch{forced-color-adjust:none;background:${qe.Field};border-color:${qe.Highlight};
|
|
239
|
+
:host(:not(.disabled)) .switch slot[name='switch']{forced-color-adjust:none;fill:${qe.FieldText}}.switch{background:${qe.Field};border-color:${qe.FieldText}}:host(.checked) .switch{background:${qe.Highlight};border-color:${qe.Highlight}}:host(:not(.disabled):hover) .switch,:host(:not(.disabled):active) .switch,:host(.checked:not(.disabled):hover) .switch{background:${qe.HighlightText};border-color:${qe.Highlight}}:host(.checked:not(.disabled)) .switch slot[name="switch"]{fill:${qe.HighlightText}}:host(.checked:not(.disabled):hover) .switch slot[name='switch']{fill:${qe.Highlight}}:host(:${nn}) .switch{forced-color-adjust:none;background:${qe.Field};border-color:${qe.Highlight};outline-color:${qe.FieldText}}:host(.disabled){opacity:1}:host(.disabled) slot[name='switch']{forced-color-adjust:none;fill:${qe.GrayText}}:host(.disabled) .switch{background:${qe.Field};border-color:${qe.GrayText}}.status-message,.label{color:${qe.FieldText}}`)),Zp=Cs.compose({baseName:"switch",template:(t,e)=>q`<template role="switch" aria-checked="${t=>t.checked}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" tabindex="${t=>t.disabled?null:0}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}" class="${t=>t.checked?"checked":""}"><label part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Pt("defaultSlottedNodes")}></slot></label><div part="switch" class="switch"><slot name="switch">${e.switch||""}</slot></div><span class="status-message" part="status-message"><span class="checked-message" part="checked-message"><slot name="checked-message"></slot></span><span class="unchecked-message" part="unchecked-message"><slot name="unchecked-message"></slot></span></span></template>`,styles:Qp,switch:'\n <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <rect x="2" y="2" width="12" height="12" rx="6"/>\n </svg>\n '}),Jp=Qp,tg=(t,e)=>pt`
|
|
229
240
|
${sn("grid")} :host{box-sizing:border-box;${Ph}
|
|
230
|
-
color:${sc};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}.tablist{display:grid;grid-template-rows:calc(${
|
|
231
|
-
.activeIndicator,:host(.vertical) .activeIndicator{background:${qe.Highlight}}`)),
|
|
241
|
+
color:${sc};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}.tablist{display:grid;grid-template-rows:calc(${Kh} * 1px);auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end}.start,.end{align-self:center}.activeIndicator{grid-row:2;grid-column:1;width:20px;height:3px;border-radius:calc(${nr} * 1px);justify-self:center;background:${il}}.activeIndicatorTransition{transition:transform 0.2s ease-in-out}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host(.vertical){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host(.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(.vertical) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host(.vertical) .end{grid-row:3}:host(.vertical) .activeIndicator{grid-column:1;grid-row:1;width:3px;height:20px;margin-inline-start:calc(${lr} * 1px);border-radius:calc(${nr} * 1px);align-self:center;background:${il}}:host(.vertical) .activeIndicatorTransition{transition:transform 0.2s linear}`.withBehaviors(en(pt`
|
|
242
|
+
.activeIndicator,:host(.vertical) .activeIndicator{background:${qe.Highlight}}`)),eg=(t,e)=>pt`
|
|
232
243
|
${sn("inline-flex")} :host{box-sizing:border-box;${Ph}
|
|
233
|
-
height:calc((${
|
|
234
|
-
:host{forced-color-adjust:none;border-color:transparent;color:${qe.ButtonText};fill:currentcolor}:host(:hover),:host(.vertical:hover),:host([aria-selected='true']:hover){background:transparent;color:${qe.Highlight};fill:currentcolor}:host([aria-selected='true']){background:transparent;color:${qe.Highlight};fill:currentcolor}:host(:${nn}){background:transparent;
|
|
244
|
+
height:calc((${Kh} + (${sr} * 2)) * 1px);padding:0 calc((6 + (${sr} * 2 * ${or})) * 1px);color:${sc};border-radius:calc(${nr} * 1px);border:calc(${ar} * 1px) solid transparent;align-items:center;justify-content:center;grid-row:1 / 3;cursor:pointer}:host([aria-selected='true']){z-index:2}:host(:hover),:host(:active){color:${sc}}:host(:${nn}){${Gh}}:host(.vertical){justify-content:start;grid-column:1 / 3}:host(.vertical[aria-selected='true']){z-index:2}:host(.vertical:hover),:host(.vertical:active){color:${sc}}:host(.vertical:hover[aria-selected='true']){}`.withBehaviors(en(pt`
|
|
245
|
+
:host{forced-color-adjust:none;border-color:transparent;color:${qe.ButtonText};fill:currentcolor}:host(:hover),:host(.vertical:hover),:host([aria-selected='true']:hover){background:transparent;color:${qe.Highlight};fill:currentcolor}:host([aria-selected='true']){background:transparent;color:${qe.Highlight};fill:currentcolor}:host(:${nn}){background:transparent;outline-color:${qe.ButtonText}}`)),ig=Fs.compose({baseName:"tab",template:(t,e)=>q`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}"><slot></slot></template>`,styles:eg}),og=eg,sg=(t,e)=>pt`
|
|
235
246
|
${sn("block")} :host{box-sizing:border-box;${Ph}
|
|
236
|
-
padding:0 calc((6 + (${sr} * 2 * ${or})) * 1px)}`,
|
|
247
|
+
padding:0 calc((6 + (${sr} * 2 * ${or})) * 1px)}`,ng=Is.compose({baseName:"tab-panel",template:(t,e)=>q`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`,styles:sg}),rg=sg,ag=Ts.compose({baseName:"tabs",template:(t,e)=>q`<template class="${t=>t.orientation}">${Nt(0,e)}<div class="tablist" part="tablist" role="tablist"><slot class="tab" name="tab" part="tab" ${Pt("tabs")}></slot>${Ft(t=>t.showActiveIndicator,q`<div ${It("activeIndicatorRef")} class="activeIndicator" part="activeIndicator"></div>`)}</div>${Bt(0,e)}<div class="tabpanel"><slot name="tabpanel" part="tabpanel" ${Pt("tabpanels")}></slot></div></template>`,styles:tg}),lg=tg,cg=(t,e)=>pt`
|
|
237
248
|
${sn("inline-flex")}
|
|
238
249
|
|
|
239
|
-
${
|
|
250
|
+
${Ad(0,0,".control")}
|
|
240
251
|
|
|
241
|
-
${
|
|
252
|
+
${Ld()}
|
|
242
253
|
|
|
243
|
-
:host{flex-direction:column;vertical-align:bottom}.control{height:calc((${
|
|
244
|
-
${
|
|
254
|
+
:host{flex-direction:column;vertical-align:bottom}.control{height:calc((${Kh} * 2) * 1px);padding:calc(${sr} * 1.5px) calc(${sr} * 2px + 1px)}:host .control{resize:none}:host(.resize-both) .control{resize:both}:host(.resize-horizontal) .control{resize:horizontal}:host(.resize-vertical) .control{resize:vertical}`.withBehaviors(Md("filled",pt`
|
|
255
|
+
${Pd(0,0,".control")}
|
|
245
256
|
`.withBehaviors(en(pt`
|
|
246
|
-
${
|
|
257
|
+
${Hd(0,0,".control")}
|
|
247
258
|
`))),en(pt`
|
|
248
|
-
${
|
|
249
|
-
`));class
|
|
259
|
+
${zd(0,0,".control")}
|
|
260
|
+
`));class hg extends Vs{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}od([tt],hg.prototype,"appearance",void 0);const dg=hg.compose({baseName:"text-area",baseClass:Vs,template:(t,e)=>q`<template class=" ${t=>t.readOnly?"readonly":""} ${t=>t.resize!==Es?"resize-"+t.resize:""}"><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Pt("defaultSlottedNodes")}></slot></label><textarea part="control" class="control" id="control" ?autofocus="${t=>t.autofocus}" cols="${t=>t.cols}" ?disabled="${t=>t.disabled}" form="${t=>t.form}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" name="${t=>t.name}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" rows="${t=>t.rows}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" @input="${(t,e)=>t.handleTextInput()}" @change="${t=>t.handleChange()}" ${It("control")}></textarea></template>`,styles:cg,shadowOptions:{delegatesFocus:!0}}),ug=cg,pg=(t,e)=>pt`
|
|
250
261
|
${sn("inline-block")}
|
|
251
262
|
|
|
252
|
-
${
|
|
263
|
+
${Ad(0,0,".root")}
|
|
253
264
|
|
|
254
|
-
${
|
|
265
|
+
${Ld()}
|
|
255
266
|
|
|
256
|
-
.root{display:flex;flex-direction:row}.control{-webkit-appearance:none;color:inherit;background:transparent;border:0;height:calc(100% - 4px);margin-top:auto;margin-bottom:auto;padding:0 calc(${sr} * 2px + 1px);font-family:inherit;font-size:inherit;line-height:inherit}.start,.end{display:flex;margin:auto}.start{display:flex;margin-inline-start:11px}.end{display:flex;margin-inline-end:11px}`.withBehaviors(
|
|
257
|
-
${
|
|
267
|
+
.root{display:flex;flex-direction:row}.control{-webkit-appearance:none;color:inherit;background:transparent;border:0;height:calc(100% - 4px);margin-top:auto;margin-bottom:auto;padding:0 calc(${sr} * 2px + 1px);font-family:inherit;font-size:inherit;line-height:inherit}.start,.end{display:flex;margin:auto}.start{display:flex;margin-inline-start:11px}.end{display:flex;margin-inline-end:11px}`.withBehaviors(Md("filled",pt`
|
|
268
|
+
${Pd(0,0,".root")}
|
|
258
269
|
`.withBehaviors(en(pt`
|
|
259
|
-
${
|
|
270
|
+
${Hd(0,0,".root")}
|
|
260
271
|
`))),en(pt`
|
|
261
|
-
${
|
|
262
|
-
`));class
|
|
263
|
-
${sn("inline-flex")} :host{--toolbar-item-gap:calc(${sr} * 1px);background:${Ja};fill:currentcolor;padding:var(--toolbar-item-gap);box-sizing:border-box;align-items:center}:host(${nn}){
|
|
272
|
+
${zd(0,0,".root")}
|
|
273
|
+
`));class gg extends Ko{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}od([tt],gg.prototype,"appearance",void 0);const fg=gg.compose({baseName:"text-field",baseClass:Ko,template:(t,e)=>q`<template class=" ${t=>t.readOnly?"readonly":""} "><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Pt({property:"defaultSlottedNodes",filter:ns})}></slot></label><div class="root" part="root">${Nt(0,e)}<input class="control" part="control" id="control" @input="${t=>t.handleTextInput()}" @change="${t=>t.handleChange()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" type="${t=>t.type}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${It("control")} />${Bt(0,e)}</div></template>`,styles:pg,shadowOptions:{delegatesFocus:!0}}),mg=pg;class vg extends As{}const bg=vg.compose({baseName:"toolbar",baseClass:As,template:(t,e)=>q`<template aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-orientation="${t=>t.orientation}" orientation="${t=>t.orientation}" role="toolbar" @click="${(t,e)=>t.clickHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" ${Ht({property:"childItems",attributeFilter:["disabled","hidden"],filter:Rt(),subtree:!0})}><slot name="label"></slot><div class="positioning-region" part="positioning-region">${Nt(0,e)}<slot ${Pt({filter:Rt(),property:"slottedItems"})}></slot>${Bt(0,e)}</div></template>`,styles:(t,e)=>pt`
|
|
274
|
+
${sn("inline-flex")} :host{--toolbar-item-gap:calc(${sr} * 1px);background:${Ja};fill:currentcolor;padding:var(--toolbar-item-gap);box-sizing:border-box;align-items:center}:host(${nn}){${Gh}}.positioning-region{align-items:center;display:inline-flex;flex-flow:row wrap;justify-content:flex-start;flex-grow:1}:host([orientation='vertical']) .positioning-region{flex-direction:column;align-items:start}::slotted(:not([slot])){flex:0 0 auto;margin:0 var(--toolbar-item-gap)}:host([orientation='vertical']) ::slotted(:not([slot])){margin:var(--toolbar-item-gap) 0}:host([orientation='vertical']){display:inline-flex;flex-direction:column}.start,.end{display:flex;align-items:center}.end{margin-inline-start:auto}.start__hidden,.end__hidden{display:none}::slotted(svg){${""}
|
|
264
275
|
width:16px;height:16px}`.withBehaviors(en(pt`
|
|
265
|
-
:host(:${nn}){
|
|
276
|
+
:host(:${nn}){outline-color:${qe.Highlight};color:${qe.ButtonText};forced-color-adjust:none}`))});class yg extends Ys{connectedCallback(){super.connectedCallback(),Ja.setValueFor(this,qa)}}const xg=yg.compose({baseName:"tooltip",baseClass:Ys,template:(t,e)=>q` ${Ft(t=>t.tooltipVisible,q`<${t.tagFor(Je)} fixed-placement="true" auto-update-mode="${t=>t.autoUpdateMode}" vertical-positioning-mode="${t=>t.verticalPositioningMode}" vertical-default-position="${t=>t.verticalDefaultPosition}" vertical-inset="${t=>t.verticalInset}" vertical-scaling="${t=>t.verticalScaling}" horizontal-positioning-mode="${t=>t.horizontalPositioningMode}" horizontal-default-position="${t=>t.horizontalDefaultPosition}" horizontal-scaling="${t=>t.horizontalScaling}" horizontal-inset="${t=>t.horizontalInset}" vertical-viewport-lock="${t=>t.horizontalViewportLock}" horizontal-viewport-lock="${t=>t.verticalViewportLock}" dir="${t=>t.currentDirection}" ${It("region")}><div class="tooltip" part="tooltip" role="tooltip"><slot></slot></div></${t.tagFor(Je)}>`)} `,styles:(t,e)=>pt`
|
|
266
277
|
:host{position:relative;contain:layout;overflow:visible;height:0;width:0;z-index:10000}.tooltip{box-sizing:border-box;border-radius:calc(${nr} * 1px);border:calc(${ar} * 1px) solid ${Tc};background:${Ja};color:${sc};padding:4px 12px;height:fit-content;width:fit-content;${Ph}
|
|
267
|
-
white-space:nowrap;box-shadow:${
|
|
268
|
-
:host([disabled]){opacity:1}fluent-anchored-region.top .tooltip::after,fluent-anchored-region.bottom .tooltip::after,fluent-anchored-region.left .tooltip::after,fluent-anchored-region.right .tooltip::after{content:'';width:unset;height:unset}`))})
|
|
269
|
-
:host([hidden]){display:none}${sn("flex")} :host{flex-direction:column;align-items:stretch;min-width:fit-content;font-size:0}
|
|
270
|
-
.expand-collapse-button svg{transform:rotate(0deg)}:host(.nested) .expand-collapse-button{left:var(--expand-collapse-button-nested-width,calc(${
|
|
271
|
-
.expand-collapse-button svg{transform:rotate(180deg)}:host(.nested) .expand-collapse-button{right:var(--expand-collapse-button-nested-width,calc(${
|
|
272
|
-
${sn("block")} :host{contain:content;position:relative;outline:none;color:${sc};fill:currentcolor;cursor:pointer;font-family:${cr};--expand-collapse-button-size:calc(${
|
|
273
|
-
:host{color:${qe.ButtonText}}.positioning-region{border-color:${qe.ButtonFace};background:${qe.ButtonFace}}:host(:not([disabled])) .positioning-region:hover,:host(:not([disabled])) .positioning-region:active,:host(:not([disabled])[selected]) .positioning-region{background:${qe.Highlight}}:host .positioning-region:hover .content-region,:host([selected]) .positioning-region .content-region{forced-color-adjust:none;color:${qe.HighlightText}}:host([disabled][selected]) .positioning-region .content-region{color:${qe.GrayText}}:host([selected])::after{background:${qe.HighlightText}}:host(:${nn}) .positioning-region{forced-color-adjust:none;border-color:${qe.ButtonText};box-shadow:0 0 0 2px inset ${qe.ButtonFace}}:host([disabled]),:host([disabled]) .content-region,:host([disabled]) .positioning-region:hover .content-region{opacity:1;color:${qe.GrayText}}:host(.nested) .expand-collapse-button:hover,:host(:not([disabled])[selected]) .expand-collapse-button:hover{background:${qe.ButtonFace};fill:${qe.ButtonText}}`)),Tg=Zs.compose({baseName:"tree-item",template:(t,e)=>q`<template role="treeitem" slot="${t=>t.isNestedItem()?"item":void 0}" tabindex="-1" class="${t=>t.expanded?"expanded":""} ${t=>t.selected?"selected":""} ${t=>t.nested?"nested":""} ${t=>t.disabled?"disabled":""}" aria-expanded="${t=>t.childItems&&t.childItemLength()>0?t.expanded:void 0}" aria-selected="${t=>t.selected}" aria-disabled="${t=>t.disabled}" @focusin="${(t,e)=>t.handleFocus(e.event)}" @focusout="${(t,e)=>t.handleBlur(e.event)}" ${zt({property:"childItems",filter:Rt()})}><div class="positioning-region" part="positioning-region"><div class="content-region" part="content-region">${Ft(t=>t.childItems&&t.childItemLength()>0,q`<div aria-hidden="true" class="expand-collapse-button" part="expand-collapse-button" @click="${(t,e)=>t.handleExpandCollapseButtonClick(e.event)}" ${It("expandCollapseButton")}><slot name="expand-collapse-glyph">${e.expandCollapseGlyph||""}</slot></div>`)} ${Nt(0,e)}<slot></slot>${Bt(0,e)}</div></div>${Ft(t=>t.childItems&&t.childItemLength()>0&&(t.expanded||t.renderCollapsedChildren),q`<div role="group" class="items" part="items"><slot name="item" ${Pt("items")}></slot></div>`)}</template>`,styles:Dg,expandCollapseGlyph:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <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"/>\n </svg>\n '}),Sg=Dg,Og={fluentAccordion:Jh,fluentAccordionItem:Qh,fluentAnchor:Nd,fluentAnchoredRegion:Ud,fluentBadge:Wd,fluentBreadcrumb:Yd,fluentBreadcrumbItem:Jd,fluentButton:ou,fluentCalendar:lu,fluentCard:du,fluentCheckbox:gu,fluentCombobox:xu,fluentDataGrid:Su,fluentDataGridCell:Iu,fluentDataGridRow:Du,fluentDesignSystemProvider:Lu,fluentDialog:Hu,fluentDivider:Bu,fluentFlipper:Uu,fluentHorizontalScroll:Yu,fluentListbox:tp,fluentOption:op,fluentMenu:ap,fluentMenuItem:hp,fluentNumberField:fp,fluentProgress:bp,fluentProgressRing:wp,fluentRadio:Ip,fluentRadioGroup:Tp,fluentSearch:Lp,fluentSelect:zp,fluentSkeleton:Np,fluentSlider:qp,fluentSliderLabel:Wp,fluentSwitch:Yp,fluentTabs:ng,fluentTab:tg,fluentTabPanel:og,fluentTextArea:cg,fluentTextField:pg,fluentToolbar:mg,fluentTooltip:bg,fluentTreeView:xg,fluentTreeItem:Tg,register(t,...e){if(t)for(const i in this)"register"!==i&&this[i]().register(t,...e)}};function Eg(t){return yo.getOrCreate(t).withPrefix("fluent")}const Vg=Eg().register(Og);export{kd as AccentButtonStyles,We as Accordion,Ee as AccordionItem,Md as Anchor,Je as AnchoredRegion,Gd as Badge,ii as Breadcrumb,ei as BreadcrumbItem,iu as Button,hu as Card,yu as Combobox,ki as DataGrid,Fi as DataGridCell,wi as DataGridRow,Au as DesignSystemProvider,Vo as Dialog,id as DirectionalStyleSheetBehavior,Ao as Divider,Ho as Flipper,Vg as FluentDesignSystem,Xu as HorizontalScroll,Cd as HypertextStyles,Id as LightweightButtonStyles,Ju as Listbox,rp as Menu,Uo as MenuItem,pp as NumberField,sp as OptionStyles,Fd as OutlineButtonStyles,Rn as PaletteRGB,vp as Progress,$p as ProgressRing,os as Radio,ts as RadioGroup,Fp as RadioStyles,Ap as Search,Hp as Select,gs as Skeleton,$s as Slider,vs as SliderLabel,Kn as StandardLuminance,Dd as StealthButtonStyles,Dn as SwatchRGB,Cs as Switch,Fs as Tab,Is as TabPanel,Ts as Tabs,lg as TextArea,ug as TextField,fg as Toolbar,vg as Tooltip,Zs as TreeItem,Js as TreeView,Ma as accentBaseColor,sl as accentFillActive,jr as accentFillActiveDelta,nl as accentFillFocus,Ur as accentFillFocusDelta,ol as accentFillHover,Nr as accentFillHoverDelta,el as accentFillRecipe,il as accentFillRest,Br as accentFillRestDelta,gl as accentForegroundActive,Gr as accentForegroundActiveDelta,bh as accentForegroundCut,yh as accentForegroundCutLarge,fl as accentForegroundFocus,Wr as accentForegroundFocusDelta,pl as accentForegroundHover,_r as accentForegroundHoverDelta,dl as accentForegroundRecipe,ul as accentForegroundRest,qr as accentForegroundRestDelta,Ba as accentPalette,yl as accentStrokeControlActive,xl as accentStrokeControlFocus,bl as accentStrokeControlHover,ml as accentStrokeControlRecipe,vl as accentStrokeControlRest,Zh as accordionItemStyles,td as accordionStyles,Og as allComponents,sd as ambientShadow,Bd as anchorStyles,qd as anchoredRegionStyles,Kd as badgeStyles,wd as baseButtonStyles,er as baseHeightMultiplier,ir as baseHorizontalSpacingMultiplier,Mr as baseLayerLuminance,cr as bodyFont,tu as breadcrumbItemStyles,Qd as breadcrumbStyles,su as buttonStyles,uu as cardStyles,fu as checkboxStyles,$u as comboboxStyles,nr as controlCornerRadius,th as cornerRadius,Fu as dataGridCellStyles,Tu as dataGridRowStyles,Ou as dataGridStyles,or as density,sr as designUnit,zu as dialogStyles,Jn as direction,nd as directionalShadow,tr as disabledOpacity,Nu as dividerStyles,eh as elevatedCornerRadius,rd as elevation,gd as elevationShadowCardActive,hd as elevationShadowCardActiveSize,fd as elevationShadowCardFocus,dd as elevationShadowCardFocusSize,pd as elevationShadowCardHover,cd as elevationShadowCardHoverSize,ud as elevationShadowCardRest,ld as elevationShadowCardRestSize,$d as elevationShadowDialog,xd as elevationShadowDialogSize,yd as elevationShadowFlyout,bd as elevationShadowFlyoutSize,ad as elevationShadowRecipe,vd as elevationShadowTooltip,md as elevationShadowTooltipSize,Ja as fillColor,qu as flipperStyles,Jh as fluentAccordion,Qh as fluentAccordionItem,Nd as fluentAnchor,Ud as fluentAnchoredRegion,Wd as fluentBadge,Yd as fluentBreadcrumb,Jd as fluentBreadcrumbItem,ou as fluentButton,lu as fluentCalendar,du as fluentCard,gu as fluentCheckbox,xu as fluentCombobox,Su as fluentDataGrid,Iu as fluentDataGridCell,Du as fluentDataGridRow,Lu as fluentDesignSystemProvider,Hu as fluentDialog,Bu as fluentDivider,Uu as fluentFlipper,Yu as fluentHorizontalScroll,tp as fluentListbox,ap as fluentMenu,hp as fluentMenuItem,fp as fluentNumberField,op as fluentOption,bp as fluentProgress,wp as fluentProgressRing,Ip as fluentRadio,Tp as fluentRadioGroup,Lp as fluentSearch,zp as fluentSelect,Np as fluentSkeleton,qp as fluentSlider,Wp as fluentSliderLabel,Yp as fluentSwitch,tg as fluentTab,og as fluentTabPanel,ng as fluentTabs,cg as fluentTextArea,pg as fluentTextField,mg as fluentToolbar,bg as fluentTooltip,Tg as fluentTreeItem,xg as fluentTreeView,oh as focusOutlineWidth,Mc as focusStrokeInner,zc as focusStrokeInnerRecipe,Hc as focusStrokeOuter,Pc as focusStrokeOuterRecipe,lr as focusStrokeWidth,hr as fontWeight,cl as foregroundOnAccentActive,Uc as foregroundOnAccentActiveLarge,hl as foregroundOnAccentFocus,qc as foregroundOnAccentFocusLarge,ll as foregroundOnAccentHover,jc as foregroundOnAccentHoverLarge,Bc as foregroundOnAccentLargeRecipe,rl as foregroundOnAccentRecipe,al as foregroundOnAccentRest,Nc as foregroundOnAccentRestLarge,Gh as heightNumber,Qu as horizontalScrollStyles,Pd as inputFilledForcedColorStyles,Ad as inputFilledStyles,Ld as inputForcedColorStyles,Rd as inputStateStyles,Vd as inputStyles,On as isDark,rr as layerCornerRadius,ep as listboxStyles,dp as menuItemStyles,lp as menuStyles,Ha as neutralBaseColor,Ch as neutralContrastFillActive,rh as neutralContrastFillActiveDelta,Ih as neutralContrastFillFocus,ah as neutralContrastFillFocusDelta,kh as neutralContrastFillHover,nh as neutralContrastFillHoverDelta,wh as neutralContrastFillRest,sh as neutralContrastFillRestDelta,xh as neutralDivider,ph as neutralDividerRestDelta,Cl as neutralFillActive,Yr as neutralFillActiveDelta,$h as neutralFillCard,lh as neutralFillCardDelta,Il as neutralFillFocus,Qr as neutralFillFocusDelta,kl as neutralFillHover,Xr as neutralFillHoverDelta,Sl as neutralFillInputActive,ta as neutralFillInputActiveDelta,Al as neutralFillInputAltActive,sa as neutralFillInputAltActiveDelta,Ll as neutralFillInputAltFocus,na as neutralFillInputAltFocusDelta,Rl as neutralFillInputAltHover,oa as neutralFillInputAltHoverDelta,El as neutralFillInputAltRecipe,Vl as neutralFillInputAltRest,ia as neutralFillInputAltRestDelta,Ol as neutralFillInputFocus,ea as neutralFillInputFocusDelta,Tl as neutralFillInputHover,Jr as neutralFillInputHoverDelta,Fl as neutralFillInputRecipe,Dl as neutralFillInputRest,Zr as neutralFillInputRestDelta,Zc as neutralFillInverseActive,Wc as neutralFillInverseActiveDelta,Jc as neutralFillInverseFocus,Kc as neutralFillInverseFocusDelta,Qc as neutralFillInverseHover,Gc as neutralFillInverseHoverDelta,Xc as neutralFillInverseRecipe,Yc as neutralFillInverseRest,_c as neutralFillInverseRestDelta,Ml as neutralFillLayerActive,la as neutralFillLayerActiveDelta,Bl as neutralFillLayerAltRecipe,Nl as neutralFillLayerAltRest,ca as neutralFillLayerAltRestDelta,zl as neutralFillLayerHover,aa as neutralFillLayerHoverDelta,Pl as neutralFillLayerRecipe,Hl as neutralFillLayerRest,ra as neutralFillLayerRestDelta,$l as neutralFillRecipe,wl as neutralFillRest,Kr as neutralFillRestDelta,_l as neutralFillSecondaryActive,ua as neutralFillSecondaryActiveDelta,Gl as neutralFillSecondaryFocus,pa as neutralFillSecondaryFocusDelta,ql as neutralFillSecondaryHover,da as neutralFillSecondaryHoverDelta,jl as neutralFillSecondaryRecipe,Ul as neutralFillSecondaryRest,ha as neutralFillSecondaryRestDelta,Yl as neutralFillStealthActive,ma as neutralFillStealthActiveDelta,Ql as neutralFillStealthFocus,va as neutralFillStealthFocusDelta,Xl as neutralFillStealthHover,fa as neutralFillStealthHoverDelta,Wl as neutralFillStealthRecipe,Kl as neutralFillStealthRest,ga as neutralFillStealthRestDelta,ec as neutralFillStrongActive,xa as neutralFillStrongActiveDelta,ic as neutralFillStrongFocus,$a as neutralFillStrongFocusDelta,tc as neutralFillStrongHover,ya as neutralFillStrongHoverDelta,Zl as neutralFillStrongRecipe,Jl as neutralFillStrongRest,ba as neutralFillStrongRestDelta,Th as neutralFillToggleActive,dh as neutralFillToggleActiveDelta,Sh as neutralFillToggleFocus,uh as neutralFillToggleFocusDelta,Dh as neutralFillToggleHover,hh as neutralFillToggleHoverDelta,Fh as neutralFillToggleRest,ch as neutralFillToggleRestDelta,Oh as neutralFocus,Eh as neutralFocusInnerAccent,rc as neutralForegroundActive,ac as neutralForegroundFocus,cc as neutralForegroundHint,lc as neutralForegroundHintRecipe,nc as neutralForegroundHover,oc as neutralForegroundRecipe,sc as neutralForegroundRest,Ga as neutralLayer1,_a as neutralLayer1Recipe,Ka as neutralLayer2,Wa as neutralLayer2Recipe,Ya as neutralLayer3,Xa as neutralLayer3Recipe,Za as neutralLayer4,Qa as neutralLayer4Recipe,ja as neutralLayerCardContainer,Na as neutralLayerCardContainerRecipe,qa as neutralLayerFloating,Ua as neutralLayerFloatingRecipe,gh as neutralLayerL1,fh as neutralLayerL2,mh as neutralLayerL3,vh as neutralLayerL4,Ah as neutralOutlineActive,Lh as neutralOutlineFocus,Rh as neutralOutlineHover,Vh as neutralOutlineRest,za as neutralPalette,pc as neutralStrokeActive,Ca as neutralStrokeActiveDelta,bc as neutralStrokeControlActive,Ta as neutralStrokeControlActiveDelta,yc as neutralStrokeControlFocus,Sa as neutralStrokeControlFocusDelta,vc as neutralStrokeControlHover,Da as neutralStrokeControlHoverDelta,fc as neutralStrokeControlRecipe,mc as neutralStrokeControlRest,Fa as neutralStrokeControlRestDelta,xc as neutralStrokeDividerRecipe,$c as neutralStrokeDividerRest,Oa as neutralStrokeDividerRestDelta,gc as neutralStrokeFocus,Ia as neutralStrokeFocusDelta,uc as neutralStrokeHover,ka as neutralStrokeHoverDelta,Ic as neutralStrokeInputActive,Fc as neutralStrokeInputFocus,Cc as neutralStrokeInputHover,wc as neutralStrokeInputRecipe,kc as neutralStrokeInputRest,Oc as neutralStrokeLayerActive,Ra as neutralStrokeLayerActiveDelta,Sc as neutralStrokeLayerHover,Va as neutralStrokeLayerHoverDelta,Dc as neutralStrokeLayerRecipe,Tc as neutralStrokeLayerRest,Ea as neutralStrokeLayerRestDelta,hc as neutralStrokeRecipe,dc as neutralStrokeRest,wa as neutralStrokeRestDelta,Ac as neutralStrokeStrongActive,La as neutralStrokeStrongActiveDelta,Lc as neutralStrokeStrongFocus,Pa as neutralStrokeStrongFocusDelta,Rc as neutralStrokeStrongHover,Aa as neutralStrokeStrongHoverDelta,Ec as neutralStrokeStrongRecipe,Vc as neutralStrokeStrongRest,gp as numberFieldStyles,ih as outlineWidth,kp as progressRingStyles,yp as progressStyles,Eg as provideFluentDesignSystem,Sp as radioGroupStyles,Pp as searchStyles,Op as searchTemplate,Mp as selectStyles,jp as skeletonStyles,Kp as sliderLabelStyles,_p as sliderStyles,ar as strokeWidth,Qp as switchStyles,sg as tabPanelStyles,eg as tabStyles,rg as tabsStyles,hg as textAreaStyles,gg as textFieldStyles,Sg as treeItemStyles,$g as treeViewStyles,Ph as typeRampBase,ur as typeRampBaseFontSize,gr as typeRampBaseFontVariations,pr as typeRampBaseLineHeight,Hh as typeRampMinus1,fr as typeRampMinus1FontSize,vr as typeRampMinus1FontVariations,mr as typeRampMinus1LineHeight,zh as typeRampMinus2,br as typeRampMinus2FontSize,xr as typeRampMinus2FontVariations,yr as typeRampMinus2LineHeight,Mh as typeRampPlus1,$r as typeRampPlus1FontSize,kr as typeRampPlus1FontVariations,wr as typeRampPlus1LineHeight,Bh as typeRampPlus2,Cr as typeRampPlus2FontSize,Fr as typeRampPlus2FontVariations,Ir as typeRampPlus2LineHeight,Nh as typeRampPlus3,Dr as typeRampPlus3FontSize,Sr as typeRampPlus3FontVariations,Tr as typeRampPlus3LineHeight,jh as typeRampPlus4,Or as typeRampPlus4FontSize,Vr as typeRampPlus4FontVariations,Er as typeRampPlus4LineHeight,Uh as typeRampPlus5,Rr as typeRampPlus5FontSize,Lr as typeRampPlus5FontVariations,Ar as typeRampPlus5LineHeight,qh as typeRampPlus6,Pr as typeRampPlus6FontSize,zr as typeRampPlus6FontVariations,Hr as typeRampPlus6LineHeight};
|
|
278
|
+
white-space:nowrap;box-shadow:${yd}}fluent-anchored-region{display:flex;justify-content:center;align-items:center;overflow:visible;flex-direction:row}fluent-anchored-region.right,fluent-anchored-region.left{flex-direction:column}fluent-anchored-region.top .tooltip::after,fluent-anchored-region.bottom .tooltip::after,fluent-anchored-region.left .tooltip::after,fluent-anchored-region.right .tooltip::after{content:'';width:12px;height:12px;background:${Ja};border-top:calc(${ar} * 1px) solid ${Tc};border-left:calc(${ar} * 1px) solid ${Tc};position:absolute}fluent-anchored-region.top .tooltip::after{transform:translateX(-50%) rotate(225deg);bottom:5px;left:50%}fluent-anchored-region.top .tooltip{margin-bottom:12px}fluent-anchored-region.bottom .tooltip::after{transform:translateX(-50%) rotate(45deg);top:5px;left:50%}fluent-anchored-region.bottom .tooltip{margin-top:12px}fluent-anchored-region.left .tooltip::after{transform:translateY(-50%) rotate(135deg);top:50%;right:5px}fluent-anchored-region.left .tooltip{margin-right:12px}fluent-anchored-region.right .tooltip::after{transform:translateY(-50%) rotate(-45deg);top:50%;left:5px}fluent-anchored-region.right .tooltip{margin-left:12px}`.withBehaviors(en(pt`
|
|
279
|
+
:host([disabled]){opacity:1}fluent-anchored-region.top .tooltip::after,fluent-anchored-region.bottom .tooltip::after,fluent-anchored-region.left .tooltip::after,fluent-anchored-region.right .tooltip::after{content:'';width:unset;height:unset}`))}),$g=(t,e)=>pt`
|
|
280
|
+
:host([hidden]){display:none}${sn("flex")} :host{flex-direction:column;align-items:stretch;min-width:fit-content;font-size:0}`,wg=Js.compose({baseName:"tree-view",template:(t,e)=>q`<template role="tree" ${It("treeView")} @keydown="${(t,e)=>t.handleKeyDown(e.event)}" @focusin="${(t,e)=>t.handleFocus(e.event)}" @focusout="${(t,e)=>t.handleBlur(e.event)}" @click="${(t,e)=>t.handleClick(e.event)}" @selected-change="${(t,e)=>t.handleSelectedChange(e.event)}"><slot ${Pt("slottedTreeItems")}></slot></template>`,styles:$g}),kg=$g,Cg=pt`
|
|
281
|
+
.expand-collapse-button svg{transform:rotate(0deg)}:host(.nested) .expand-collapse-button{left:var(--expand-collapse-button-nested-width,calc(${Kh} * -1px))}:host([selected])::after{left:calc(${lr} * 1px)}:host([expanded]) > .positioning-region .expand-collapse-button svg{transform:rotate(90deg)}`,Ig=pt`
|
|
282
|
+
.expand-collapse-button svg{transform:rotate(180deg)}:host(.nested) .expand-collapse-button{right:var(--expand-collapse-button-nested-width,calc(${Kh} * -1px))}:host([selected])::after{right:calc(${lr} * 1px)}:host([expanded]) > .positioning-region .expand-collapse-button svg{transform:rotate(90deg)}`,Fg=ft`((${er} / 2) * ${sr}) + ((${sr} * ${or}) / 2)`,Dg=po.create("tree-item-expand-collapse-hover").withDefault(t=>{const e=Wl.getValueFor(t);return e.evaluate(t,e.evaluate(t).hover).hover}),Tg=po.create("tree-item-expand-collapse-selected-hover").withDefault(t=>{const e=jl.getValueFor(t);return Wl.getValueFor(t).evaluate(t,e.evaluate(t).rest).hover}),Sg=(t,e)=>pt`
|
|
283
|
+
${sn("block")} :host{contain:content;position:relative;outline:none;color:${sc};fill:currentcolor;cursor:pointer;font-family:${cr};--expand-collapse-button-size:calc(${Kh} * 1px);--tree-item-nested-width:0}.positioning-region{display:flex;position:relative;box-sizing:border-box;background:${Kl};border:calc(${ar} * 1px) solid transparent;border-radius:calc(${nr} * 1px);height:calc((${Kh} + 1) * 1px)}:host(:${nn}) .positioning-region{${Gh}}.positioning-region::before{content:'';display:block;width:var(--tree-item-nested-width);flex-shrink:0}:host(:not([disabled])) .positioning-region:hover{background:${Xl}}:host(:not([disabled])) .positioning-region:active{background:${Yl}}.content-region{display:inline-flex;align-items:center;white-space:nowrap;width:100%;height:calc(${Kh} * 1px);margin-inline-start:calc(${sr} * 2px + 8px);${Ph}}.items{display:none;${""} font-size:calc(1em + (${sr} + 16) * 1px)}.expand-collapse-button{background:none;border:none;border-radius:calc(${nr} * 1px);${""} width:calc((${Fg} + (${sr} * 2)) * 1px);height:calc((${Fg} + (${sr} * 2)) * 1px);padding:0;display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 6px}.expand-collapse-button svg{transition:transform 0.1s linear;pointer-events:none}.start,.end{display:flex}.start{${""} margin-inline-end:calc(${sr} * 2px + 2px)}.end{${""} margin-inline-start:calc(${sr} * 2px + 2px)}:host(.expanded) > .items{display:block}:host([disabled]){opacity:${tr};cursor:${"not-allowed"}}:host(.nested) .content-region{position:relative;margin-inline-start:var(--expand-collapse-button-size)}:host(.nested) .expand-collapse-button{position:absolute}:host(.nested) .expand-collapse-button:hover{background:${Dg}}:host(:not([disabled])[selected]) .positioning-region{background:${Ul}}:host(:not([disabled])[selected]) .expand-collapse-button:hover{background:${Tg}}:host([selected])::after{content:'';display:block;position:absolute;top:calc((${Kh} / 4) * 1px);width:3px;height:calc((${Kh} / 2) * 1px);${""} background:${il};border-radius:calc(${nr} * 1px)}::slotted(fluent-tree-item){--tree-item-nested-width:1em;--expand-collapse-button-nested-width:calc(${Kh} * -1px)}`.withBehaviors(new sd(Cg,Ig),en(pt`
|
|
284
|
+
:host{color:${qe.ButtonText}}.positioning-region{border-color:${qe.ButtonFace};background:${qe.ButtonFace}}:host(:not([disabled])) .positioning-region:hover,:host(:not([disabled])) .positioning-region:active,:host(:not([disabled])[selected]) .positioning-region{background:${qe.Highlight}}:host .positioning-region:hover .content-region,:host([selected]) .positioning-region .content-region{forced-color-adjust:none;color:${qe.HighlightText}}:host([disabled][selected]) .positioning-region .content-region{color:${qe.GrayText}}:host([selected])::after{background:${qe.HighlightText}}:host(:${nn}) .positioning-region{forced-color-adjust:none;outline-color:${qe.ButtonFace}}:host([disabled]),:host([disabled]) .content-region,:host([disabled]) .positioning-region:hover .content-region{opacity:1;color:${qe.GrayText}}:host(.nested) .expand-collapse-button:hover,:host(:not([disabled])[selected]) .expand-collapse-button:hover{background:${qe.ButtonFace};fill:${qe.ButtonText}}`)),Og=Zs.compose({baseName:"tree-item",template:(t,e)=>q`<template role="treeitem" slot="${t=>t.isNestedItem()?"item":void 0}" tabindex="-1" class="${t=>t.expanded?"expanded":""} ${t=>t.selected?"selected":""} ${t=>t.nested?"nested":""} ${t=>t.disabled?"disabled":""}" aria-expanded="${t=>t.childItems&&t.childItemLength()>0?t.expanded:void 0}" aria-selected="${t=>t.selected}" aria-disabled="${t=>t.disabled}" @focusin="${(t,e)=>t.handleFocus(e.event)}" @focusout="${(t,e)=>t.handleBlur(e.event)}" ${Ht({property:"childItems",filter:Rt()})}><div class="positioning-region" part="positioning-region"><div class="content-region" part="content-region">${Ft(t=>t.childItems&&t.childItemLength()>0,q`<div aria-hidden="true" class="expand-collapse-button" part="expand-collapse-button" @click="${(t,e)=>t.handleExpandCollapseButtonClick(e.event)}" ${It("expandCollapseButton")}><slot name="expand-collapse-glyph">${e.expandCollapseGlyph||""}</slot></div>`)} ${Nt(0,e)}<slot></slot>${Bt(0,e)}</div></div>${Ft(t=>t.childItems&&t.childItemLength()>0&&(t.expanded||t.renderCollapsedChildren),q`<div role="group" class="items" part="items"><slot name="item" ${Pt("items")}></slot></div>`)}</template>`,styles:Sg,expandCollapseGlyph:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <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"/>\n </svg>\n '}),Eg=Sg,Vg={fluentAccordion:ed,fluentAccordionItem:Jh,fluentAnchor:Ud,fluentAnchoredRegion:_d,fluentBadge:Xd,fluentBreadcrumb:Zd,fluentBreadcrumbItem:eu,fluentButton:nu,fluentCalendar:hu,fluentCard:pu,fluentCheckbox:mu,fluentCombobox:wu,fluentDataGrid:Eu,fluentDataGridCell:Du,fluentDataGridRow:Su,fluentDesignSystemProvider:zu,fluentDialog:Mu,fluentDivider:ju,fluentFlipper:_u,fluentHorizontalScroll:Zu,fluentListbox:ip,fluentOption:np,fluentMenu:cp,fluentMenuItem:up,fluentNumberField:vp,fluentProgress:xp,fluentProgressRing:Cp,fluentRadio:Dp,fluentRadioGroup:Op,fluentSearch:zp,fluentSelect:Bp,fluentSkeleton:Up,fluentSlider:Gp,fluentSliderLabel:Xp,fluentSwitch:Zp,fluentTabs:ag,fluentTab:ig,fluentTabPanel:ng,fluentTextArea:dg,fluentTextField:fg,fluentToolbar:bg,fluentTooltip:xg,fluentTreeView:wg,fluentTreeItem:Og,register(t,...e){if(t)for(const i in this)"register"!==i&&this[i]().register(t,...e)}};function Rg(t){return yo.getOrCreate(t).withPrefix("fluent")}const Ag=Rg().register(Vg);export{Id as AccentButtonStyles,We as Accordion,Ee as AccordionItem,Nd as Anchor,Je as AnchoredRegion,Kd as Badge,ii as Breadcrumb,ei as BreadcrumbItem,su as Button,uu as Card,$u as Combobox,ki as DataGrid,Fi as DataGridCell,wi as DataGridRow,Pu as DesignSystemProvider,Vo as Dialog,sd as DirectionalStyleSheetBehavior,Ao as Divider,zo as Flipper,Ag as FluentDesignSystem,Qu as HorizontalScroll,Fd as HypertextStyles,Dd as LightweightButtonStyles,ep as Listbox,lp as Menu,Uo as MenuItem,fp as NumberField,rp as OptionStyles,Td as OutlineButtonStyles,Rn as PaletteRGB,yp as Progress,kp as ProgressRing,os as Radio,ts as RadioGroup,Tp as RadioStyles,Pp as Search,Mp as Select,gs as Skeleton,$s as Slider,vs as SliderLabel,Kn as StandardLuminance,Sd as StealthButtonStyles,Dn as SwatchRGB,Cs as Switch,Fs as Tab,Is as TabPanel,Ts as Tabs,hg as TextArea,gg as TextField,vg as Toolbar,yg as Tooltip,Zs as TreeItem,Js as TreeView,Ma as accentBaseColor,sl as accentFillActive,jr as accentFillActiveDelta,nl as accentFillFocus,Ur as accentFillFocusDelta,ol as accentFillHover,Nr as accentFillHoverDelta,el as accentFillRecipe,il as accentFillRest,Br as accentFillRestDelta,gl as accentForegroundActive,Gr as accentForegroundActiveDelta,bh as accentForegroundCut,yh as accentForegroundCutLarge,fl as accentForegroundFocus,Wr as accentForegroundFocusDelta,pl as accentForegroundHover,_r as accentForegroundHoverDelta,dl as accentForegroundRecipe,ul as accentForegroundRest,qr as accentForegroundRestDelta,Ba as accentPalette,yl as accentStrokeControlActive,xl as accentStrokeControlFocus,bl as accentStrokeControlHover,ml as accentStrokeControlRecipe,vl as accentStrokeControlRest,td as accordionItemStyles,id as accordionStyles,Vg as allComponents,rd as ambientShadow,jd as anchorStyles,Gd as anchoredRegionStyles,Yd as badgeStyles,Cd as baseButtonStyles,er as baseHeightMultiplier,ir as baseHorizontalSpacingMultiplier,Mr as baseLayerLuminance,cr as bodyFont,iu as breadcrumbItemStyles,Jd as breadcrumbStyles,ru as buttonStyles,gu as cardStyles,vu as checkboxStyles,ku as comboboxStyles,nr as controlCornerRadius,th as cornerRadius,Tu as dataGridCellStyles,Ou as dataGridRowStyles,Vu as dataGridStyles,or as density,sr as designUnit,Bu as dialogStyles,Jn as direction,ad as directionalShadow,tr as disabledOpacity,Uu as dividerStyles,eh as elevatedCornerRadius,ld as elevation,md as elevationShadowCardActive,ud as elevationShadowCardActiveSize,vd as elevationShadowCardFocus,pd as elevationShadowCardFocusSize,fd as elevationShadowCardHover,dd as elevationShadowCardHoverSize,gd as elevationShadowCardRest,hd as elevationShadowCardRestSize,kd as elevationShadowDialog,wd as elevationShadowDialogSize,$d as elevationShadowFlyout,xd as elevationShadowFlyoutSize,cd as elevationShadowRecipe,yd as elevationShadowTooltip,bd as elevationShadowTooltipSize,Ja as fillColor,Gu as flipperStyles,ed as fluentAccordion,Jh as fluentAccordionItem,Ud as fluentAnchor,_d as fluentAnchoredRegion,Xd as fluentBadge,Zd as fluentBreadcrumb,eu as fluentBreadcrumbItem,nu as fluentButton,hu as fluentCalendar,pu as fluentCard,mu as fluentCheckbox,wu as fluentCombobox,Eu as fluentDataGrid,Du as fluentDataGridCell,Su as fluentDataGridRow,zu as fluentDesignSystemProvider,Mu as fluentDialog,ju as fluentDivider,_u as fluentFlipper,Zu as fluentHorizontalScroll,ip as fluentListbox,cp as fluentMenu,up as fluentMenuItem,vp as fluentNumberField,np as fluentOption,xp as fluentProgress,Cp as fluentProgressRing,Dp as fluentRadio,Op as fluentRadioGroup,zp as fluentSearch,Bp as fluentSelect,Up as fluentSkeleton,Gp as fluentSlider,Xp as fluentSliderLabel,Zp as fluentSwitch,ig as fluentTab,ng as fluentTabPanel,ag as fluentTabs,dg as fluentTextArea,fg as fluentTextField,bg as fluentToolbar,xg as fluentTooltip,Og as fluentTreeItem,wg as fluentTreeView,oh as focusOutlineWidth,Mc as focusStrokeInner,Hc as focusStrokeInnerRecipe,zc as focusStrokeOuter,Pc as focusStrokeOuterRecipe,lr as focusStrokeWidth,Gh as focusTreatmentBase,Wh as focusTreatmentTight,hr as fontWeight,cl as foregroundOnAccentActive,Uc as foregroundOnAccentActiveLarge,hl as foregroundOnAccentFocus,qc as foregroundOnAccentFocusLarge,ll as foregroundOnAccentHover,jc as foregroundOnAccentHoverLarge,Bc as foregroundOnAccentLargeRecipe,rl as foregroundOnAccentRecipe,al as foregroundOnAccentRest,Nc as foregroundOnAccentRestLarge,Kh as heightNumber,Ju as horizontalScrollStyles,Hd as inputFilledForcedColorStyles,Pd as inputFilledStyles,zd as inputForcedColorStyles,Ld as inputStateStyles,Ad as inputStyles,On as isDark,rr as layerCornerRadius,op as listboxStyles,pp as menuItemStyles,hp as menuStyles,za as neutralBaseColor,Ch as neutralContrastFillActive,rh as neutralContrastFillActiveDelta,Ih as neutralContrastFillFocus,ah as neutralContrastFillFocusDelta,kh as neutralContrastFillHover,nh as neutralContrastFillHoverDelta,wh as neutralContrastFillRest,sh as neutralContrastFillRestDelta,xh as neutralDivider,ph as neutralDividerRestDelta,Cl as neutralFillActive,Yr as neutralFillActiveDelta,$h as neutralFillCard,lh as neutralFillCardDelta,Il as neutralFillFocus,Qr as neutralFillFocusDelta,kl as neutralFillHover,Xr as neutralFillHoverDelta,Sl as neutralFillInputActive,ta as neutralFillInputActiveDelta,Al as neutralFillInputAltActive,sa as neutralFillInputAltActiveDelta,Ll as neutralFillInputAltFocus,na as neutralFillInputAltFocusDelta,Rl as neutralFillInputAltHover,oa as neutralFillInputAltHoverDelta,El as neutralFillInputAltRecipe,Vl as neutralFillInputAltRest,ia as neutralFillInputAltRestDelta,Ol as neutralFillInputFocus,ea as neutralFillInputFocusDelta,Tl as neutralFillInputHover,Jr as neutralFillInputHoverDelta,Fl as neutralFillInputRecipe,Dl as neutralFillInputRest,Zr as neutralFillInputRestDelta,Zc as neutralFillInverseActive,Wc as neutralFillInverseActiveDelta,Jc as neutralFillInverseFocus,Kc as neutralFillInverseFocusDelta,Qc as neutralFillInverseHover,Gc as neutralFillInverseHoverDelta,Xc as neutralFillInverseRecipe,Yc as neutralFillInverseRest,_c as neutralFillInverseRestDelta,Ml as neutralFillLayerActive,la as neutralFillLayerActiveDelta,Bl as neutralFillLayerAltRecipe,Nl as neutralFillLayerAltRest,ca as neutralFillLayerAltRestDelta,Hl as neutralFillLayerHover,aa as neutralFillLayerHoverDelta,Pl as neutralFillLayerRecipe,zl as neutralFillLayerRest,ra as neutralFillLayerRestDelta,$l as neutralFillRecipe,wl as neutralFillRest,Kr as neutralFillRestDelta,_l as neutralFillSecondaryActive,ua as neutralFillSecondaryActiveDelta,Gl as neutralFillSecondaryFocus,pa as neutralFillSecondaryFocusDelta,ql as neutralFillSecondaryHover,da as neutralFillSecondaryHoverDelta,jl as neutralFillSecondaryRecipe,Ul as neutralFillSecondaryRest,ha as neutralFillSecondaryRestDelta,Yl as neutralFillStealthActive,ma as neutralFillStealthActiveDelta,Ql as neutralFillStealthFocus,va as neutralFillStealthFocusDelta,Xl as neutralFillStealthHover,fa as neutralFillStealthHoverDelta,Wl as neutralFillStealthRecipe,Kl as neutralFillStealthRest,ga as neutralFillStealthRestDelta,ec as neutralFillStrongActive,xa as neutralFillStrongActiveDelta,ic as neutralFillStrongFocus,$a as neutralFillStrongFocusDelta,tc as neutralFillStrongHover,ya as neutralFillStrongHoverDelta,Zl as neutralFillStrongRecipe,Jl as neutralFillStrongRest,ba as neutralFillStrongRestDelta,Th as neutralFillToggleActive,dh as neutralFillToggleActiveDelta,Sh as neutralFillToggleFocus,uh as neutralFillToggleFocusDelta,Dh as neutralFillToggleHover,hh as neutralFillToggleHoverDelta,Fh as neutralFillToggleRest,ch as neutralFillToggleRestDelta,Oh as neutralFocus,Eh as neutralFocusInnerAccent,rc as neutralForegroundActive,ac as neutralForegroundFocus,cc as neutralForegroundHint,lc as neutralForegroundHintRecipe,nc as neutralForegroundHover,oc as neutralForegroundRecipe,sc as neutralForegroundRest,Ga as neutralLayer1,_a as neutralLayer1Recipe,Ka as neutralLayer2,Wa as neutralLayer2Recipe,Ya as neutralLayer3,Xa as neutralLayer3Recipe,Za as neutralLayer4,Qa as neutralLayer4Recipe,ja as neutralLayerCardContainer,Na as neutralLayerCardContainerRecipe,qa as neutralLayerFloating,Ua as neutralLayerFloatingRecipe,gh as neutralLayerL1,fh as neutralLayerL2,mh as neutralLayerL3,vh as neutralLayerL4,Ah as neutralOutlineActive,Lh as neutralOutlineFocus,Rh as neutralOutlineHover,Vh as neutralOutlineRest,Ha as neutralPalette,pc as neutralStrokeActive,Ca as neutralStrokeActiveDelta,bc as neutralStrokeControlActive,Ta as neutralStrokeControlActiveDelta,yc as neutralStrokeControlFocus,Sa as neutralStrokeControlFocusDelta,vc as neutralStrokeControlHover,Da as neutralStrokeControlHoverDelta,fc as neutralStrokeControlRecipe,mc as neutralStrokeControlRest,Fa as neutralStrokeControlRestDelta,xc as neutralStrokeDividerRecipe,$c as neutralStrokeDividerRest,Oa as neutralStrokeDividerRestDelta,gc as neutralStrokeFocus,Ia as neutralStrokeFocusDelta,uc as neutralStrokeHover,ka as neutralStrokeHoverDelta,Ic as neutralStrokeInputActive,Fc as neutralStrokeInputFocus,Cc as neutralStrokeInputHover,wc as neutralStrokeInputRecipe,kc as neutralStrokeInputRest,Oc as neutralStrokeLayerActive,Ra as neutralStrokeLayerActiveDelta,Sc as neutralStrokeLayerHover,Va as neutralStrokeLayerHoverDelta,Dc as neutralStrokeLayerRecipe,Tc as neutralStrokeLayerRest,Ea as neutralStrokeLayerRestDelta,hc as neutralStrokeRecipe,dc as neutralStrokeRest,wa as neutralStrokeRestDelta,Ac as neutralStrokeStrongActive,La as neutralStrokeStrongActiveDelta,Lc as neutralStrokeStrongFocus,Pa as neutralStrokeStrongFocusDelta,Rc as neutralStrokeStrongHover,Aa as neutralStrokeStrongHoverDelta,Ec as neutralStrokeStrongRecipe,Vc as neutralStrokeStrongRest,mp as numberFieldStyles,ih as outlineWidth,Ip as progressRingStyles,$p as progressStyles,Rg as provideFluentDesignSystem,Ep as radioGroupStyles,Hp as searchStyles,Vp as searchTemplate,Np as selectStyles,qp as skeletonStyles,Yp as sliderLabelStyles,Wp as sliderStyles,ar as strokeWidth,Jp as switchStyles,rg as tabPanelStyles,og as tabStyles,lg as tabsStyles,ug as textAreaStyles,mg as textFieldStyles,Eg as treeItemStyles,kg as treeViewStyles,Ph as typeRampBase,ur as typeRampBaseFontSize,gr as typeRampBaseFontVariations,pr as typeRampBaseLineHeight,zh as typeRampMinus1,fr as typeRampMinus1FontSize,vr as typeRampMinus1FontVariations,mr as typeRampMinus1LineHeight,Hh as typeRampMinus2,br as typeRampMinus2FontSize,xr as typeRampMinus2FontVariations,yr as typeRampMinus2LineHeight,Mh as typeRampPlus1,$r as typeRampPlus1FontSize,kr as typeRampPlus1FontVariations,wr as typeRampPlus1LineHeight,Bh as typeRampPlus2,Cr as typeRampPlus2FontSize,Fr as typeRampPlus2FontVariations,Ir as typeRampPlus2LineHeight,Nh as typeRampPlus3,Dr as typeRampPlus3FontSize,Sr as typeRampPlus3FontVariations,Tr as typeRampPlus3LineHeight,jh as typeRampPlus4,Or as typeRampPlus4FontSize,Vr as typeRampPlus4FontVariations,Er as typeRampPlus4LineHeight,Uh as typeRampPlus5,Rr as typeRampPlus5FontSize,Lr as typeRampPlus5FontVariations,Ar as typeRampPlus5LineHeight,qh as typeRampPlus6,Pr as typeRampPlus6FontSize,Hr as typeRampPlus6FontVariations,zr as typeRampPlus6LineHeight};
|