!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 r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(self,(e,t,i,r)=>(()=>{"use strict";var o,s={5095(e,t,i){i.r(t),i.d(t,{Link:()=>v,inlineStyle:()=>y,linkColor:()=>c,linkRole:()=>u,linkSize:()=>h,linkTag:()=>f});var r=i(9609),o=i(4084),s=i(7161),l=i(429),n=i(5125),a=i(291),d=i(476),p=function(e,t,i,r){var o,s=arguments.length,l=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(l=(s<3?o(l):s>3?o(t,i,l):o(t,i))||l);return s>3&&l&&Object.defineProperty(t,i,l),l};const f=["a","div","span"],c=["","blue","red","green","yellow","orange"],u=["button","checkbox","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","switch","tab"],h=["large","midsize","small"],y=["default","error"];var v;!function(e){let t=class extends s.LitElement{constructor(){super(...arguments),this.color="",this.ariaLabel="",this.ariaRole="link",this.disabled=!1,this.inline=!1,this.inlineStyle=void 0,this.inverted=void 0,this.href="",this.tag="a",this.target="_self",this.size=void 0,this._tabIndex=0,this.autofocus=!1}get tabIndex(){return this._tabIndex}set tabIndex(e){const t=this._tabIndex;this._tabIndex=e,this.requestUpdate("tabIndex",t)}static get styles(){return[o.A,d.A]}firstUpdated(){this.autofocus&&requestAnimationFrame(()=>{this.focus()})}focus(){var e;null===(e=this.linkRef)||void 0===e||e.focus()}blur(){var e;null===(e=this.linkRef)||void 0===e||e.blur()}get linkClassNamesInfo(){return{[`md-link--${this.color}`]:this.color,"md-link--inline":this.inline,[`md-link--inline-style-${this.inlineStyle}`]:!!this.inlineStyle,[`${this.size}`]:!!this.size,inverted:!0===this.inverted,disabled:this.disabled}}get linkElement(){switch(this.tag){case"div":return s.html`
            <div
              class="md-link ${(0,n.classMap)(this.linkClassNamesInfo)}"
              tabindex=${this.tabIndex}
              aria-label=${(0,a.ifDefined)(this.ariaLabel||void 0)}
              aria-disabled=${(0,a.ifDefined)(this.disabled||void 0)}
              role=${this.ariaRole}
              part="link"
            >
              <slot></slot>
            </div>
          `;case"span":return s.html`
            <span
              class="md-link ${(0,n.classMap)(this.linkClassNamesInfo)}"
              tabindex=${this.tabIndex}
              aria-label=${(0,a.ifDefined)(this.ariaLabel||void 0)}
              aria-disabled=${(0,a.ifDefined)(this.disabled||void 0)}
              role=${this.ariaRole}
              part="link"
            >
              <slot></slot>
            </span>
          `;default:return s.html`
            <a
              class="md-link ${(0,n.classMap)(this.linkClassNamesInfo)}"
              .target="${this.target}"
              href=${(0,a.ifDefined)(this.disabled?void 0:this.href)}
              tabindex=${this.tabIndex}
              aria-label=${(0,a.ifDefined)(this.ariaLabel||void 0)}
              aria-disabled=${(0,a.ifDefined)(this.disabled||void 0)}
              role=${this.ariaRole}
              part="link"
            >
              <slot></slot>
            </a>
          `}}render(){return s.html` ${this.linkElement} `}};p([(0,l.property)({type:String,attribute:!1})],t.prototype,"color",void 0),p([(0,l.property)({type:String})],t.prototype,"ariaLabel",void 0),p([(0,l.property)({type:String})],t.prototype,"ariaRole",void 0),p([(0,l.property)({type:Boolean})],t.prototype,"disabled",void 0),p([(0,l.property)({type:Boolean})],t.prototype,"inline",void 0),p([(0,l.property)({type:String,attribute:"inline-style"})],t.prototype,"inlineStyle",void 0),p([(0,l.property)({type:Boolean})],t.prototype,"inverted",void 0),p([(0,l.property)({type:String})],t.prototype,"href",void 0),p([(0,l.property)({type:String})],t.prototype,"tag",void 0),p([(0,l.property)({type:String})],t.prototype,"target",void 0),p([(0,l.property)({type:String})],t.prototype,"size",void 0),p([(0,l.property)({type:Number,attribute:"tab-index",reflect:!0})],t.prototype,"tabIndex",null),p([(0,l.property)({type:Boolean})],t.prototype,"autofocus",void 0),p([(0,l.query)(".md-link")],t.prototype,"linkRef",void 0),t=p([(0,r.w)("md-link")],t),e.ELEMENT=t}(v||(v={}))},7161(t){t.exports=e},429(e){e.exports=t},5125(e){e.exports=i},291(e){e.exports=r}},l={};function n(e){var t=l[e];if(void 0!==t)return t.exports;var i=l[e]={exports:{}};return s[e](i,i.exports,n),i.exports}n.m=s,o=[],n.O=(e,t,i,r)=>{if(!t){var s=1/0;for(p=0;p<o.length;p++){for(var[t,i,r]=o[p],l=!0,a=0;a<t.length;a++)(!1&r||s>=r)&&Object.keys(n.O).every(e=>n.O[e](t[a]))?t.splice(a--,1):(l=!1,r<s&&(s=r));if(l){o.splice(p--,1);var d=i();void 0!==d&&(e=d)}}return e}r=r||0;for(var p=o.length;p>0&&o[p-1][2]>r;p--)o[p]=o[p-1];o[p]=[t,i,r]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={6132:0};n.O.j=t=>0===e[t];var t=(t,i)=>{var r,o,[s,l,a]=i,d=0;if(s.some(t=>0!==e[t])){for(r in l)n.o(l,r)&&(n.m[r]=l[r]);if(a)var p=a(n)}for(t&&t(i);d<s.length;d++)o=s[d],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.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 a=n.O(void 0,[9609,4084,476],()=>n(5095));return n.O(a)})());