text: System.register(["./p-4546c12d.system.js","./p-bc1dd3a3.system.js","./p-f0691b49.system.js","./p-6ea97731.system.js","./p-fc3e0ac9.system.js"],function(t){"use strict";var e,o,i,r,s,n,c,p,a,d,u,l,h,m,f,w,g,D;return{setters:[function(t){e=t.r;o=t.h;i=t.H;r=t.g;s=t.c},function(t){n=t.S;c=t.E;p=t.c;a=t.T;d=t.D;u=t.U;l=t.H;h=t.b},function(t){m=t.g;f=t.a;w=t.b},function(t){g=t.g},function(t){D=t.c}],execute:function(){var y=t("calcite_dropdown",function(){function t(t){var o=this;e(this,t);this.active=false;this.alignment="left";this.theme="light";this.scale="m";this.items=[];this.sorted=false;this.dropdownId="calcite-dropdown-"+g();this.sortItems=function(t){return t.sort(function(t,e){return t.position-e.position}).concat.apply([],o.items.map(function(t){return t.items}))}}t.prototype.connectedCallback=function(){var t=["left","right","center"];if(!t.includes(this.alignment))this.alignment="left";var e=["light","dark"];if(!e.includes(this.theme))this.theme="light";var o=["s","m","l"];if(!o.includes(this.scale))this.scale="m"};t.prototype.componentWillUpdate=function(){if(!this.sorted){this.items=this.sortItems(this.items);this.sorted=true}};t.prototype.render=function(){var t=m(this.el);var e=this.active.toString();return o(i,{dir:t,active:this.active,id:this.dropdownId},o("slot",{name:"dropdown-trigger","aria-haspopup":"true","aria-expanded":e}),o("div",{class:"calcite-dropdown-wrapper",role:"menu"},o("slot",null)))};t.prototype.openDropdown=function(t){if(t.target.getAttribute("slot")==="dropdown-trigger"){this.openCalciteDropdown();t.preventDefault()}};t.prototype.closeCalciteDropdownOnClick=function(t){if(this.active&&t.target.offsetParent.id!==this.dropdownId)this.closeCalciteDropdown()};t.prototype.closeCalciteDropdownOnEvent=function(){this.closeCalciteDropdown()};t.prototype.keyDownHandler=function(t){if(t.target.getAttribute("slot")==="dropdown-trigger"){if(t.target.nodeName!=="BUTTON"&&t.target.nodeName!=="CALCITE-BUTTON"){switch(t.keyCode){case n:case c:this.openCalciteDropdown();break;case p:this.closeCalciteDropdown();break}}else if(t.keyCode===p||t.shiftKey&&t.keyCode===a){this.closeCalciteDropdown()}}};t.prototype.calciteDropdownItemKeyEvent=function(t){var e=t.detail.item;var o=e.target.nodeName!=="A"?e.target:e.target.parentNode;var i=this.itemIndex(o)===0;var r=this.itemIndex(o)===this.items.length-1;switch(e.keyCode){case a:if(r&&!e.shiftKey)this.closeCalciteDropdown();else if(i&&e.shiftKey)this.closeCalciteDropdown();else if(e.shiftKey)this.focusPrevItem(o);else this.focusNextItem(o);break;case d:this.focusNextItem(o);break;case u:this.focusPrevItem(o);break;case l:this.focusFirstItem();break;case h:this.focusLastItem();break}e.preventDefault()};t.prototype.registerCalciteDropdownGroup=function(t){var e={items:t.detail.items,position:t.detail.position};this.items.push(e)};t.prototype.closeCalciteDropdown=function(){this.active=false};t.prototype.focusFirstItem=function(){var t=this.items[0];var e=this.getFocusableElement(t);e.focus()};t.prototype.focusLastItem=function(){var t=this.items[this.items.length-1];var e=this.getFocusableElement(t);e.focus()};t.prototype.focusNextItem=function(t){var e=this.itemIndex(t);var o=this.items[e+1]||this.items[0];var i=this.getFocusableElement(o);i.focus()};t.prototype.focusPrevItem=function(t){var e=this.itemIndex(t);var o=this.items[e-1]||this.items[this.items.length-1];var i=this.getFocusableElement(o);i.focus()};t.prototype.itemIndex=function(t){return this.items.indexOf(t)};t.prototype.getFocusableElement=function(t){return t.attributes.islink?t.shadowRoot.querySelector("a"):t};t.prototype.openCalciteDropdown=function(){var t=this;this.active=!this.active;setTimeout(function(){return t.focusFirstItem()},50)};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:true,configurable:true});Object.defineProperty(t,"style",{get:function(){return":host([hidden]){display:none}body{font-family:Avenir Next W01,Avenir Next W00,Avenir Next,Avenir,Helvetica Neue,sans-serif}.overflow-hidden{overflow:hidden}calcite-tab{display:none}calcite-tab[is-active]{display:block}a{color:#007ac2}:host{--calcite-dropdown-background-color:#fff;--calcite-dropdown-border-color:#eaeaea}:host([theme=dark]){--calcite-dropdown-background-color:#2b2b2b;--calcite-dropdown-border-color:#151515}:host{position:relative;display:inline-block}:host([active]) .calcite-dropdown-wrapper{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1;visibility:visible}:host .calcite-dropdown-wrapper{-webkit-transform:translate3d(0,-1.5rem,0);transform:translate3d(0,-1.5rem,0);-webkit-transition:.3s cubic-bezier(.215,.44,.42,.88),opacity .3s cubic-bezier(.215,.44,.42,.88),all .15s ease-in-out;transition:.3s cubic-bezier(.215,.44,.42,.88),opacity .3s cubic-bezier(.215,.44,.42,.88),all .15s ease-in-out;visibility:hidden;opacity:0;display:block;position:absolute;left:0;z-index:200;overflow:auto;width:auto;width:12.5rem;background:var(--calcite-dropdown-background-color);border:1px solid var(--calcite-dropdown-border-color);-webkit-box-shadow:0 0 12px 0 rgba(0,0,0,.15);box-shadow:0 0 12px 0 rgba(0,0,0,.15)}:host([alignment=right]) .calcite-dropdown-wrapper,:host([dir=rtl]) .calcite-dropdown-wrapper{right:0;left:unset}:host([dir=rtl][alignment=right]) .calcite-dropdown-wrapper{right:unset;left:0}:host([alignment=center]) .calcite-dropdown-wrapper{right:0;left:0;margin-right:auto;margin-left:auto}"},enumerable:true,configurable:true});return t}());var I=D({requestedDropdownGroup:"",requestedDropdownItem:""},function(t,e){return o("context-consumer",{subscribe:t,renderer:e})});var v=t("calcite_dropdown_group",function(){function t(t){e(this,t);this.requestedDropdownGroup="";this.requestedDropdownItem="";this.grouptitle=null;this.items=[];this.dropdownGroupId="calcite-dropdown-group-"+g();this.sortItems=function(t){return t.sort(function(t,e){return t.position-e.position}).map(function(t){return t.item})};this.calciteDropdownItemHasChanged=s(this,"calciteDropdownItemHasChanged",7);this.registerCalciteDropdownGroup=s(this,"registerCalciteDropdownGroup",7)}t.prototype.componentDidLoad=function(){this.groupPosition=this.getGroupPosition();this.items=this.sortItems(this.items);this.registerCalciteDropdownGroup.emit({items:this.items,position:this.groupPosition})};t.prototype.render=function(){var t=f(this.el);var e=w(this.el,"scale","m");var r={requestedDropdownGroup:this.requestedDropdownGroup,requestedDropdownItem:this.requestedDropdownItem};var s=this.grouptitle?o("span",{class:"dropdown-title"},this.grouptitle):null;return o(i,{theme:t,scale:e,id:this.dropdownGroupId},s,o(I.Provider,{state:r},o("slot",null)))};t.prototype.updateActiveItemOnChange=function(t){this.requestedDropdownGroup=t.detail.requestedDropdownGroup;this.requestedDropdownItem=t.detail.requestedDropdownItem;this.calciteDropdownItemHasChanged.emit({requestedDropdownGroup:this.requestedDropdownGroup,requestedDropdownItem:this.requestedDropdownItem})};t.prototype.registerCalciteDropdownItem=function(t){var e={item:t.detail.item,position:t.detail.position};this.items.push(e)};t.prototype.getGroupPosition=function(){return Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-dropdown-group"),this.el)};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:true,configurable:true});Object.defineProperty(t,"style",{get:function(){return":host([hidden]){display:none}body{font-family:Avenir Next W01,Avenir Next W00,Avenir Next,Avenir,Helvetica Neue,sans-serif}.overflow-hidden{overflow:hidden}calcite-tab{display:none}calcite-tab[is-active]{display:block}a{color:#007ac2}:host{--calcite-dropdown-group-color:#404040;--calcite-dropdown-group-border-color:#eaeaea}:host([theme=dark]){--calcite-dropdown-group-color:#fff;--calcite-dropdown-group-border-color:#404040}:host([scale=s]){--calcite-dropdown-group-padding:0.5rem 0}:host([scale=m]){--calcite-dropdown-group-padding:0.75rem 0}:host([scale=l]){--calcite-dropdown-group-padding:1rem 0}:host .dropdown-title{display:block;margin:0 1rem -1px 1rem;padding:var(--calcite-dropdown-group-padding);border-bottom:1px solid var(--calcite-dropdown-group-border-color);color:var(--calcite-dropdown-group-color);font-weight:600;word-wrap:break-word;cursor:default;font-size:.875rem;line-height:1.5}"},enumerable:true,configurable:true});return t}());var b=t("calcite_dropdown_item",function(){function t(t){e(this,t);this.active=false;this.requestedDropdownGroup="";this.requestedDropdownItem="";this.dropdownItemId="calcite-dropdown-item-"+g();this.currentDropdownGroup=this.el.parentElement.id;this.calciteDropdownItemSelected=s(this,"calciteDropdownItemSelected",7);this.calciteDropdownItemKeyEvent=s(this,"calciteDropdownItemKeyEvent",7);this.closeCalciteDropdown=s(this,"closeCalciteDropdown",7);this.registerCalciteDropdownItem=s(this,"registerCalciteDropdownItem",7)}t.prototype.componentDidLoad=function(){this.currentDropdownGroup=this.el.parentElement.id;this.itemPosition=this.getItemPosition();this.registerCalciteDropdownItem.emit({item:this.el,position:this.itemPosition})};t.prototype.componentDidUpdate=function(){this.determineActiveItem()};t.prototype.render=function(){var t=m(this.el);var e=f(this.el);var r=w(this.el,"scale","m");var s=this.active?"true":null;if(!this.href){return o(i,{theme:e,dir:t,scale:r,id:this.dropdownItemId,tabindex:"0",role:"menuitem","aria-selected":s},o("slot",null))}else{return o(i,{theme:e,dir:t,scale:r,id:this.dropdownItemId,tabindex:"0",role:"menuitem","aria-selected":s,islink:"true"},o("a",{href:this.href,title:this.linktitle},o("slot",null)))}};t.prototype.onClick=function(t){this.emitRequestedItem(t)};t.prototype.keyDownHandler=function(t){switch(t.keyCode){case n:case c:this.emitRequestedItem(t);break;case p:this.closeCalciteDropdown.emit();break;case a:case u:case d:case l:case h:this.calciteDropdownItemKeyEvent.emit({item:t});break}t.preventDefault()};t.prototype.determineActiveItem=function(){if(this.requestedDropdownItem===this.dropdownItemId){this.active=true}else if(this.requestedDropdownGroup===this.currentDropdownGroup){this.active=false}};t.prototype.emitRequestedItem=function(t){this.calciteDropdownItemSelected.emit({requestedDropdownItem:t.target.id,requestedDropdownGroup:t.target.parentElement.id});this.closeCalciteDropdown.emit()};t.prototype.getItemPosition=function(){return Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-dropdown-item"),this.el)};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:true,configurable:true});Object.defineProperty(t,"style",{get:function(){return"\@charset \"UTF-8\";:host([hidden]){display:none}body{font-family:Avenir Next W01,Avenir Next W00,Avenir Next,Avenir,Helvetica Neue,sans-serif}.overflow-hidden{overflow:hidden}calcite-tab{display:none}calcite-tab[is-active]{display:block}a{color:#007ac2}:host{--calcite-dropdown-item-color:#6a6a6a;--calcite-dropdown-item-color-hover:#555;--calcite-dropdown-item-color-active:#404040;--calcite-dropdown-item-background-color-hover:#f3f3f3;--calcite-dropdown-item-background-color-pressed:#eaeaea;--calcite-dropdown-item-dot-active-color:#007ac2}:host([theme=dark]){--calcite-dropdown-item-color:#d4d4d4;--calcite-dropdown-item-color-hover:#eaeaea;--calcite-dropdown-item-color-active:#fff;--calcite-dropdown-item-background-color-hover:#202020;--calcite-dropdown-item-background-color-pressed:#151515;--calcite-dropdown-item-dot-active-color:#3db8ff}:host([scale=s]){--calcite-dropdown-item-padding:0.3rem 1rem 0.3rem 2.25rem}:host([scale=m]){--calcite-dropdown-item-padding:0.5rem 1rem 0.5rem 2.25rem}:host([scale=l]){--calcite-dropdown-item-padding:0.75rem 1rem 0.75rem 2.25rem}:host([dir=rtl][scale=s]){--calcite-dropdown-item-padding:0.3rem 2.25rem 0.3rem 1rem}:host([dir=rtl][scale=m]){--calcite-dropdown-item-padding:0.5rem 2.25rem 0.5rem 1rem}:host([dir=rtl][scale=l]){--calcite-dropdown-item-padding:0.75rem 2.25rem 0.75rem 1rem}:host{display:block;font-size:.875rem;line-height:1.5;color:var(--calcite-dropdown-item-color);-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;padding:var(--calcite-dropdown-item-padding);cursor:pointer;text-decoration:none;outline:none;position:relative}:host(:active),:host(:focus),:host(:hover){background-color:var(--calcite-dropdown-item-background-color-hover);color:var(--calcite-dropdown-item-color-hover);text-decoration:none}:host(:active){background-color:var(--calcite-dropdown-item-background-color-pressed)}:host:before{content:\"•\";position:absolute;left:1rem;opacity:0;color:grey;-webkit-transition:.15s ease-in-out;transition:.15s ease-in-out}:host(:active):before,:host(:focus):before,:host(:hover):before{opacity:1}:host([dir=rtl]):before{left:unset;right:1rem}:host([active]){color:var(--calcite-dropdown-item-color-active);font-weight:500}:host([active]):before{opacity:1;color:var(--calcite-dropdown-item-dot-active-color)}:host([islink]){padding:0}:host([islink]):before{display:none}:host([islink]) a{display:block;position:relative;padding:var(--calcite-dropdown-item-padding);color:var(--calcite-dropdown-item-color);text-decoration:none;outline:none}:host([islink]) a:before{content:\"•\";position:absolute;left:1rem;opacity:0;color:grey;-webkit-transition:.15s ease-in-out;transition:.15s ease-in-out}:host([islink]) a:active,:host([islink]) a:focus,:host([islink]) a:hover{background-color:var(--calcite-dropdown-item-background-color-hover);text-decoration:none}:host([islink]) a:active:before,:host([islink]) a:focus:before,:host([islink]) a:hover:before{opacity:1}:host([islink]) a:active{background-color:var(--calcite-dropdown-item-background-color-pressed)}:host([islink][active]) a{color:var(--calcite-dropdown-item-color-active);font-weight:500}:host([islink][active]) a:before{opacity:1;color:var(--calcite-dropdown-item-dot-active-color)}:host([islink][dir=rtl]) a{padding:var(--calcite-dropdown-item-padding)}:host([islink][dir=rtl]) a:before{left:unset;right:1rem}"},enumerable:true,configurable:true});return t}());I.injectProps(b,["requestedDropdownItem","requestedDropdownGroup"])}}});