!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js"],t);else{var i="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/if-defined.js"]);for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}}(self,(e,t,i,s)=>(()=>{"use strict";var r,d={5410(e,t,i){i.r(t),i.d(t,{MenuItem:()=>s});var s,r=i(9609),d=i(4084),l=i(7161),o=i(429),n=i(5125),a=i(291),p=i(3051),c=function(e,t,i,s){var r,d=arguments.length,l=d<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,s);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(l=(d<3?r(l):d>3?r(t,i,l):r(t,i))||l);return d>3&&l&&Object.defineProperty(t,i,l),l};!function(e){let t=class extends l.LitElement{constructor(){super(...arguments),this.href="",this.label="",this.tabIndex=-1,this._disabled=!1,this._selected=!1}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.setAttribute("aria-disabled",`${e}`),this.tabIndex=e?-1:0,this.requestUpdate("disabled",t)}get selected(){return this._selected}set selected(e){const t=this._selected;this._selected=e,e&&this.notifySelectedItem(),this.setAttribute("aria-selected",`${e}`),this.requestUpdate("selected",t)}static get styles(){return[d.A,p.A]}setupEvents(){this.addEventListener("mousedown",this.handleClick),this.addEventListener("keydown",this.handleKeyDown)}firstUpdated(e){super.firstUpdated(e),this.label&&this.setAttribute("aria-label",this.label),this.setupEvents()}update(e){super.update(e),e.has("disabled")&&(this.selected=!1,this.setAttribute("aria-disabled",`${this.disabled}`))}handleClick(e){e.preventDefault(),this.dispatchEvent(new CustomEvent("menu-item-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleKeyDown(e){this.dispatchEvent(new CustomEvent("menu-item-keydown",{detail:{id:this.id,key:e.code,srcEvent:e},bubbles:!0,composed:!0}))}notifySelectedItem(){this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}get menuItemClassMap(){return{"md-menu-item--selected":this.selected,disabled:this.disabled}}render(){return l.html`
        <li
          role="menuitem"
          part="menu-item"
          class="md-menu-item ${(0,n.classMap)(this.menuItemClassMap)}"
          ?disabled=${this.disabled}
          tabindex="-1"
          aria-hidden="true"
          aria-selected="false"
          aria-label=${(0,a.ifDefined)(this.label)}
        >
          <a href="${(0,a.ifDefined)(this.href||void 0)}">
            <slot></slot>
          </a>
        </li>
      `}};c([(0,o.property)({type:String})],t.prototype,"href",void 0),c([(0,o.property)({type:String})],t.prototype,"label",void 0),c([(0,o.property)({type:Number,reflect:!0})],t.prototype,"tabIndex",void 0),c([(0,o.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",null),c([(0,o.property)({type:Boolean,reflect:!0})],t.prototype,"selected",null),t=c([(0,r.w)("md-menu-item")],t),e.ELEMENT=t}(s||(s={}))},7161(t){t.exports=e},429(e){e.exports=t},5125(e){e.exports=i},291(e){e.exports=s}},l={};function o(e){var t=l[e];if(void 0!==t)return t.exports;var i=l[e]={exports:{}};return d[e](i,i.exports,o),i.exports}o.m=d,r=[],o.O=(e,t,i,s)=>{if(!t){var d=1/0;for(p=0;p<r.length;p++){for(var[t,i,s]=r[p],l=!0,n=0;n<t.length;n++)(!1&s||d>=s)&&Object.keys(o.O).every(e=>o.O[e](t[n]))?t.splice(n--,1):(l=!1,s<d&&(d=s));if(l){r.splice(p--,1);var a=i();void 0!==a&&(e=a)}}return e}s=s||0;for(var p=r.length;p>0&&r[p-1][2]>s;p--)r[p]=r[p-1];r[p]=[t,i,s]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={4825:0,5410:0};o.O.j=t=>0===e[t];var t=(t,i)=>{var s,r,[d,l,n]=i,a=0;if(d.some(t=>0!==e[t])){for(s in l)o.o(l,s)&&(o.m[s]=l[s]);if(n)var p=n(o)}for(t&&t(i);a<d.length;a++)r=d[a],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return o.O(p)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var n=o.O(void 0,[9609,4084,3051],()=>o(5410));return o.O(n)})());