"use strict";(self.webpackChunkdotcms_ui=self.webpackChunkdotcms_ui||[]).push([[6773],{66773:(ut,be,M)=>{M.r(be),M.d(be,{dot_badge:()=>_e,dot_card:()=>xe,dot_card_contentlet:()=>ye,dot_contentlet_icon:()=>ke,dot_contentlet_lock_icon:()=>Ee,dot_contentlet_thumbnail:()=>Ie,dot_context_menu:()=>Ae,dot_state_icon:()=>we,dot_tooltip:()=>Re});var R=M(15861),c=M(55956),n=M(62254),f=M(90334),W=M(77717),oe=M(93642),g=M(49303);M(52723);const _e=class{constructor(o){(0,c.r)(this,o),this.bgColor=null,this.color=null,this.size=null,this.bordered=!1}render(){return(0,c.h)(c.H,{style:{"--bg-color":this.bgColor,"--color":this.color,"--font-size":this.size}},(0,c.h)("div",{class:this.bordered?"bordered":null},(0,c.h)("slot",null)))}};_e.style=":host{--bg-color:var(--color-sec);--color:var(--color-white);--font-size:12px}div{background-color:var(--bg-color);border-radius:var(--border-radius);color:var(--color);font-size:var(--font-size);padding:0.1em 0.25em 0.15em;display:inline-block}div.bordered{background-color:transparent;border:solid 1px var(--bg-color);color:var(--bg-color)}";const xe=class{constructor(o){(0,c.r)(this,o)}render(){return(0,c.h)("slot",null)}};xe.style=":host{background-color:var(--color-white);border-radius:var(--border-radius);box-shadow:var(--md-shadow-1);display:block}";class X extends f.B{createRenderRoot(){return this.attachShadow({mode:"open",delegatesFocus:!0})}click(){this.formElement&&(this.formElement.focus(),this.formElement.click())}setAriaLabel(e){this.formElement&&this.formElement.setAttribute("aria-label",e)}firstUpdated(){super.firstUpdated(),this.mdcRoot.addEventListener("change",e=>{this.dispatchEvent(new Event("change",e))})}}class T extends X{constructor(){super(...arguments),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.value="",this.reducedTouchTarget=!1,this.animationClass="",this.shouldRenderRipple=!1,this.focused=!1,this.mdcFoundationClass=void 0,this.mdcFoundation=void 0,this.rippleElement=null,this.rippleHandlers=new f.R(()=>(this.shouldRenderRipple=!0,this.ripple.then(e=>this.rippleElement=e),this.ripple))}createAdapter(){return{}}update(e){const t=e.get("indeterminate"),i=e.get("checked"),r=e.get("disabled");if(void 0!==t||void 0!==i||void 0!==r){const s=this.calculateAnimationStateName(!!i,!!t,!!r),a=this.calculateAnimationStateName(this.checked,this.indeterminate,this.disabled);this.animationClass=`${s}-${a}`}super.update(e)}calculateAnimationStateName(e,t,i){return i?"disabled":t?"indeterminate":e?"checked":"unchecked"}renderRipple(){return this.shouldRenderRipple?n.h`
        <mwc-ripple
          .accent="${this.indeterminate||this.checked}"
          .disabled="${this.disabled}"
          unbounded>
        </mwc-ripple>`:""}render(){const i=this.indeterminate?"mixed":void 0;return n.h`
      <div class="mdc-checkbox mdc-checkbox--upgraded ${(0,W.c)({"mdc-checkbox--disabled":this.disabled,"mdc-checkbox--selected":this.indeterminate||this.checked,"mdc-checkbox--touch":!this.reducedTouchTarget,"mdc-ripple-upgraded--background-focused":this.focused,"mdc-checkbox--anim-checked-indeterminate":"checked-indeterminate"==this.animationClass,"mdc-checkbox--anim-checked-unchecked":"checked-unchecked"==this.animationClass,"mdc-checkbox--anim-indeterminate-checked":"indeterminate-checked"==this.animationClass,"mdc-checkbox--anim-indeterminate-unchecked":"indeterminate-unchecked"==this.animationClass,"mdc-checkbox--anim-unchecked-checked":"unchecked-checked"==this.animationClass,"mdc-checkbox--anim-unchecked-indeterminate":"unchecked-indeterminate"==this.animationClass})}">
        <input type="checkbox"
              class="mdc-checkbox__native-control"
              aria-checked="${(0,oe.i)(i)}"
              data-indeterminate="${this.indeterminate?"true":"false"}"
              ?disabled="${this.disabled}"
              .indeterminate="${this.indeterminate}"
              .checked="${this.checked}"
              .value="${this.value}"
              @change="${this._changeHandler}"
              @focus="${this._handleFocus}"
              @blur="${this._handleBlur}"
              @mousedown="${this.handleRippleMouseDown}"
              @mouseenter="${this.handleRippleMouseEnter}"
              @mouseleave="${this.handleRippleMouseLeave}"
              @touchstart="${this.handleRippleTouchStart}"
              @touchend="${this.handleRippleDeactivate}"
              @touchcancel="${this.handleRippleDeactivate}">
        <div class="mdc-checkbox__background"
          @animationend="${this.resetAnimationClass}">
          <svg class="mdc-checkbox__checkmark"
              viewBox="0 0 24 24">
            <path class="mdc-checkbox__checkmark-path"
                  fill="none"
                  d="M1.73,12.91 8.1,19.28 22.79,4.59"></path>
          </svg>
          <div class="mdc-checkbox__mixedmark"></div>
        </div>
        ${this.renderRipple()}
      </div>`}_handleFocus(){this.focused=!0,this.handleRippleFocus()}_handleBlur(){this.focused=!1,this.handleRippleBlur()}handleRippleMouseDown(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}_changeHandler(){this.checked=this.formElement.checked,this.indeterminate=this.formElement.indeterminate}resetAnimationClass(){this.animationClass=""}get isRippleActive(){var e;return(null===(e=this.rippleElement)||void 0===e?void 0:e.isActive)||!1}}(0,n._)([(0,n.q)(".mdc-checkbox")],T.prototype,"mdcRoot",void 0),(0,n._)([(0,n.q)("input")],T.prototype,"formElement",void 0),(0,n._)([(0,n.p)({type:Boolean,reflect:!0})],T.prototype,"checked",void 0),(0,n._)([(0,n.p)({type:Boolean})],T.prototype,"indeterminate",void 0),(0,n._)([(0,n.p)({type:Boolean,reflect:!0})],T.prototype,"disabled",void 0),(0,n._)([(0,n.p)({type:String})],T.prototype,"value",void 0),(0,n._)([(0,n.p)({type:Boolean})],T.prototype,"reducedTouchTarget",void 0),(0,n._)([(0,n.i)()],T.prototype,"animationClass",void 0),(0,n._)([(0,n.i)()],T.prototype,"shouldRenderRipple",void 0),(0,n._)([(0,n.i)()],T.prototype,"focused",void 0),(0,n._)([(0,n.a)("mwc-ripple")],T.prototype,"ripple",void 0),(0,n._)([(0,n.e)({passive:!0})],T.prototype,"handleRippleTouchStart",null);const Me=n.c`.mdc-checkbox{padding:11px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-checkbox .mdc-checkbox__ripple::before,.mdc-checkbox .mdc-checkbox__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-checkbox:hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-checkbox:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mdc-checkbox:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox .mdc-checkbox__native-control:checked~.mdc-checkbox__background::before,.mdc-checkbox .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background::before,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background::before{background-color:#018786;background-color:var(--mdc-theme-secondary, #018786)}.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-checkbox.mdc-checkbox--selected:hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-checkbox .mdc-checkbox__background{top:11px;left:11px}.mdc-checkbox .mdc-checkbox__background::before{top:-13px;left:-13px;width:40px;height:40px}.mdc-checkbox .mdc-checkbox__native-control{top:0px;right:0px;left:0px;width:40px;height:40px}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:#018786;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:#018786;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:#018786;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786))}100%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.38);border-color:var(--mdc-checkbox-disabled-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:rgba(0, 0, 0, 0.38);background-color:var(--mdc-checkbox-disabled-color, rgba(0, 0, 0, 0.38))}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-ink-color, #fff)}.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}@media screen and (-ms-high-contrast: active){.mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:GrayText;border-color:var(--mdc-checkbox-disabled-color, GrayText);background-color:transparent}.mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:GrayText;background-color:transparent;background-color:var(--mdc-checkbox-disabled-color, transparent)}.mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:GrayText;color:var(--mdc-checkbox-ink-color, GrayText)}.mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:GrayText;border-color:var(--mdc-checkbox-ink-color, GrayText)}.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:transparent;pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__background .mdc-checkbox__background::before{background-color:#000;background-color:var(--mdc-theme-on-surface, #000)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";will-change:opacity,transform;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:focus~.mdc-checkbox__background::before{transform:scale(1);opacity:.12;transition:opacity 80ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 80ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-checkbox--touch .mdc-checkbox__native-control{top:-4px;right:-4px;left:-4px;width:48px;height:48px}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}:host{outline:none;display:inline-flex;-webkit-tap-highlight-color:transparent}.mdc-checkbox .mdc-checkbox__background::before{content:none}`;let ne=class extends T{};ne.styles=Me,ne=(0,n._)([(0,n.b)("mwc-checkbox")],ne);var re=function(o,e){return(re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])})(o,e)},V=function(){return V=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},V.apply(this,arguments)},De={ROOT:"mdc-form-field"},Be={LABEL_SELECTOR:".mdc-form-field > label"},Ne=function(o){function e(t){var i=o.call(this,V(V({},e.defaultAdapter),t))||this;return i.click=function(){i.handleClick()},i}return function Le(o,e){function t(){this.constructor=o}re(o,e),o.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}(e,o),Object.defineProperty(e,"cssClasses",{get:function(){return De},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Be},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},e.prototype.handleClick=function(){var t=this;this.adapter.activateInputRipple(),requestAnimationFrame(function(){t.adapter.deactivateInputRipple()})},e}(f.M);class N extends f.B{constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=Ne}createAdapter(){var t,e=this;return{registerInteractionHandler:(t,i)=>{this.labelEl.addEventListener(t,i)},deregisterInteractionHandler:(t,i)=>{this.labelEl.removeEventListener(t,i)},activateInputRipple:(t=(0,R.Z)(function*(){const i=e.input;if(i instanceof X){const r=yield i.ripple;r&&r.startPress()}}),function(){return t.apply(this,arguments)}),deactivateInputRipple:function(){var t=(0,R.Z)(function*(){const i=e.input;if(i instanceof X){const r=yield i.ripple;r&&r.endPress()}});return function(){return t.apply(this,arguments)}}()}}get input(){return(0,f.f)(this.slotEl,"*")}render(){return n.h`
      <div class="mdc-form-field ${(0,W.c)({"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap})}">
        <slot></slot>
        <label class="mdc-label"
               @click="${this._labelClick}">${this.label}</label>
      </div>`}_labelClick(){const e=this.input;e&&(e.focus(),e.click())}}(0,n._)([(0,n.p)({type:Boolean})],N.prototype,"alignEnd",void 0),(0,n._)([(0,n.p)({type:Boolean})],N.prototype,"spaceBetween",void 0),(0,n._)([(0,n.p)({type:Boolean})],N.prototype,"nowrap",void 0),(0,n._)([(0,n.p)({type:String}),(0,g.o)(function(){var o=(0,R.Z)(function*(e){const t=this.input;t&&("input"===t.localName?t.setAttribute("aria-label",e):t instanceof X&&(yield t.updateComplete,t.setAriaLabel(e)))});return function(e){return o.apply(this,arguments)}}())],N.prototype,"label",void 0),(0,n._)([(0,n.q)(".mdc-form-field")],N.prototype,"mdcRoot",void 0),(0,n._)([(0,n.q)("slot")],N.prototype,"slotEl",void 0),(0,n._)([(0,n.q)("label")],N.prototype,"labelEl",void 0);const Pe=n.c`.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}:host{display:inline-flex}.mdc-form-field{width:100%}::slotted(*){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}::slotted(mwc-switch){margin-right:10px}[dir=rtl] ::slotted(mwc-switch),::slotted(mwc-switch)[dir=rtl]{margin-left:10px}`;let se=class extends N{};se.styles=Pe,se=(0,n._)([(0,n.b)("mwc-formfield")],se);const ye=class{constructor(o){(0,c.r)(this,o),this.checkboxChange=(0,c.c)(this,"checkboxChange",7),this.contextMenuClick=(0,c.c)(this,"contextMenuClick",7),this.isShiftKey=!1,this.item=void 0,this.thumbnailSize="260",this.iconSize="96px",this.checked=void 0}showMenu(o,e){var t=this;return(0,R.Z)(function*(){const{left:i,top:r}=t.el.getBoundingClientRect();t.menu.show(o-i,e-r)})()}hideMenu(){var o=this;return(0,R.Z)(function*(){o.menu.hide()})()}componentDidLoad(){this.menu=this.el.shadowRoot.querySelector("dot-context-menu")}render(){var o,e;const t=this.item.data,i=t?.title;return(0,c.h)("dot-card",null,(0,c.h)("dot-contentlet-thumbnail",{contentlet:t,width:this.thumbnailSize,height:this.thumbnailSize,alt:i,iconSize:this.iconSize}),(0,c.h)("header",null,(0,c.h)("div",{class:"main"},(0,c.h)("mwc-checkbox",{checked:this.checked,onClick:r=>{r.stopImmediatePropagation(),this.isShiftKey=r.shiftKey},onChange:r=>{this.checked=r.target.checked,this.menu.hide(),this.checkboxChange.emit({originalTarget:this.el,shiftKey:this.isShiftKey})}}),(0,c.h)("label",{id:"label"},i),(0,c.h)("dot-tooltip",{position:"left top",delay:400,content:i,for:"label"})),(0,c.h)("div",{class:"extra"},(0,c.h)("div",{class:"state"},(0,c.h)("dot-state-icon",{state:this.getContentState(t),size:"16px"}),(0,c.h)("dot-badge",{bordered:!0},t.language),"true"===t.locked?(0,c.h)("dot-contentlet-lock-icon",{locked:JSON.parse(t.locked)}):null),null!==(e=null===(o=this.item)||void 0===o?void 0:o.actions)&&void 0!==e&&e.length?(0,c.h)("dot-context-menu",{onClick:r=>{r.stopImmediatePropagation(),this.contextMenuClick.emit(r)},options:this.item.actions}):null)))}getContentState({live:o,working:e,deleted:t,hasLiveVersion:i}){return{live:o,working:e,deleted:t,hasLiveVersion:i}}get el(){return(0,c.g)(this)}};ye.style=":host{--mdc-theme-primary:var(--color-main);--mdc-theme-secondary:var(--color-sec)}:host *,:host *:after,:host *:before{box-sizing:border-box}dot-card{cursor:pointer;display:flex;flex-direction:column;flex:1 1 auto;height:100%;position:relative;transition:box-shadow var(--basic-speed) ease;width:100%}dot-card:hover{box-shadow:var(--md-shadow-2)}dot-contentlet-thumbnail{align-items:center;display:flex;flex:1 1 auto;position:relative;width:100%}dot-contentlet-lock-icon{color:#EC4B41}header{border-top:solid 1px rgba(0, 0, 0, 0.15);display:flex;padding:var(--basic-padding);flex-direction:column}label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.main,.extra,.state{display:flex;align-items:center}.extra{display:flex;justify-content:space-between;margin-top:-0.5rem;padding-left:40px}.state>*{margin-right:var(--basic-padding)}.state>*:last-child{margin-right:0}";const L="audiotrack",b="insert_drive_file",O="insert_drive_file",D="image",B="videocam",U="font_download",ve={page:{icon:"web"},gear:{icon:"settings"},content:{icon:"library_books"},form:{icon:"format_list_bulleted"},persona:{icon:"person"},ukn:{icon:b},folder:{icon:"folder"},doc:{icon:b,color:"#2E8AED"},docx:{icon:b,color:"#2E8AED"},odt:{icon:b,color:"#2E8AED"},ott:{icon:b,color:"#2E8AED"},odm:{icon:b,color:"#2E8AED"},csv:{icon:b,color:"#1AAA6B"},numbers:{icon:b,color:"#1AAA6B"},wks:{icon:b,color:"#1AAA6B"},xls:{icon:b,color:"#1AAA6B"},xlsx:{icon:b,color:"#1AAA6B"},ods:{icon:b,color:"#1AAA6B"},ots:{icon:b,color:"#1AAA6B"},keynote:{icon:b,color:"#F7C000"},ppt:{icon:b,color:"#F7C000"},pptx:{icon:b,color:"#F7C000"},odp:{icon:b,color:"#F7C000"},otp:{icon:b,color:"#F7C000"},pdf:{icon:b,color:"#F15B44"},asf:{icon:B},avi:{icon:B},mov:{icon:B},mp4:{icon:B},mpg:{icon:B},ogg:{icon:B},ogv:{icon:B},rm:{icon:B},vob:{icon:B},bmp:{icon:D},image:{icon:D},jpeg:{icon:D},jpg:{icon:D},pct:{icon:D},png:{icon:D},gif:{icon:D},webp:{icon:D},svg:{icon:D},ico:{icon:D},aac:{icon:L},aif:{icon:L},iff:{icon:L},m3u:{icon:L},mid:{icon:L},mp3:{icon:L},mpa:{icon:L},ra:{icon:L},wav:{icon:L},wma:{icon:L},vtl:{icon:O,color:"var(--color-main)"},js:{icon:O,color:"#EBB131"},jsx:{icon:O,color:"#EBB131"},esm:{icon:O,color:"#EBB131"},ts:{icon:O,color:"#EBB131"},tsx:{icon:O,color:"#EBB131"},html:{icon:O,color:"#ED6832"},scss:{icon:O,color:"#2587C5"},sass:{icon:O,color:"#2587C5"},less:{icon:O,color:"#2587C5"},css:{icon:O,color:"#2587C5"},otf:{icon:U},ttf:{icon:U},ttc:{icon:U},fnt:{icon:U},woff:{icon:U},woff2:{icon:U},eot:{icon:U}},ke=class{constructor(o){(0,c.r)(this,o),this.icon="",this.size=""}componentWillRender(){this.ext=this.icon.match("Icon")?this.icon.replace("Icon",""):""}render(){const{icon:o,color:e}=this.ext?this.getIconName():{icon:this.icon,color:""};return(0,c.h)(c.H,null,"insert_drive_file"===o&&parseInt(this.size.replace("px",""),10)>=96?(0,c.h)("span",null,this.ext):null,(0,c.h)("mwc-icon",{style:{"--mdc-icon-size":this.size,color:e||"#444"}},o))}getIconName(){return ve[this.ext]||ve.ukn}};ke.style=":host{position:relative}span{color:#fff;position:absolute;transform:translateY(7px);text-shadow:1px 1px rgba(0, 0, 0, 0.25);overflow:hidden;text-overflow:ellipsis;max-width:40px}";const Ee=class{constructor(o){(0,c.r)(this,o),this.locked=void 0,this.size="16px"}render(){return(0,c.h)(c.H,{style:{"--mdc-icon-size":this.size}},(0,c.h)("mwc-icon",null,this.locked?"locked":"lock_open"))}};Ee.style=":host{display:block;width:var(--mdc-icon-size);height:var(--mdc-icon-size)}";const Ie=class{constructor(o){(0,c.r)(this,o),this.height="",this.width="",this.alt="",this.iconSize="",this.contentlet=void 0,this.renderImage=void 0}componentWillLoad(){const{hasTitleImage:o,mimeType:e}=this.contentlet;this.renderImage="boolean"==typeof o&&o?o:"true"===o||"application/pdf"===e}render(){var o,e,t;const i=this.contentlet?`url(${this.getImageURL()})`:"";return(0,c.h)(c.H,null,this.renderImage?(0,c.h)("div",{class:"thumbnail",style:{"background-image":i}},(0,c.h)("img",{src:this.getImageURL(),alt:this.alt,"aria-label":this.alt,onError:()=>{this.switchToIcon()}})):(0,c.h)("dot-contentlet-icon",{icon:"FILEASSET"!==(null===(o=this.contentlet)||void 0===o?void 0:o.baseType)?null===(e=this.contentlet)||void 0===e?void 0:e.contentTypeIcon:null===(t=this.contentlet)||void 0===t?void 0:t.__icon__,size:this.iconSize,"aria-label":this.alt}))}getImageURL(){return"application/pdf"===this.contentlet.mimeType?`/contentAsset/image/${this.contentlet.inode}/${this.contentlet.titleImage}/pdf_page/1/resize_w/250/quality_q/45`:`/dA/${this.contentlet.inode}/500w/20q?r=${this.contentlet.modDateMilis}`}switchToIcon(){this.renderImage=!1}};Ie.style=":host{display:flex;align-items:center;flex:1}dot-contentlet-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.thumbnail{position:absolute;background-size:cover;background-position:center center;background-repeat:no-repeat;width:100%;height:100%}.thumbnail img{width:0px;height:0px;position:absolute}";class y extends n.L{constructor(){super(...arguments),this.value="",this.group=null,this.tabindex=-1,this.disabled=!1,this.twoline=!1,this.activated=!1,this.graphic=null,this.multipleGraphics=!1,this.hasMeta=!1,this.noninteractive=!1,this.selected=!1,this.shouldRenderRipple=!1,this._managingList=null,this.boundOnClick=this.onClick.bind(this),this._firstChanged=!0,this._skipPropRequest=!1,this.rippleHandlers=new f.R(()=>(this.shouldRenderRipple=!0,this.ripple)),this.listeners=[{target:this,eventNames:["click"],cb:()=>{this.onClick()}},{target:this,eventNames:["mouseenter"],cb:this.rippleHandlers.startHover},{target:this,eventNames:["mouseleave"],cb:this.rippleHandlers.endHover},{target:this,eventNames:["focus"],cb:this.rippleHandlers.startFocus},{target:this,eventNames:["blur"],cb:this.rippleHandlers.endFocus},{target:this,eventNames:["mousedown","touchstart"],cb:e=>{this.onDown("mousedown"===e.type?"mouseup":"touchend",e)}}]}get text(){const e=this.textContent;return e?e.trim():""}render(){const e=this.renderText(),t=this.graphic?this.renderGraphic():n.h``,i=this.hasMeta?this.renderMeta():n.h``;return n.h`
      ${this.renderRipple()}
      ${t}
      ${e}
      ${i}`}renderRipple(){return this.shouldRenderRipple?n.h`
      <mwc-ripple
        .activated=${this.activated}>
      </mwc-ripple>`:this.activated?n.h`<div class="fake-activated-ripple"></div>`:""}renderGraphic(){return n.h`
      <span class="mdc-list-item__graphic material-icons ${(0,W.c)({multi:this.multipleGraphics})}">
        <slot name="graphic"></slot>
      </span>`}renderMeta(){return n.h`
      <span class="mdc-list-item__meta material-icons">
        <slot name="meta"></slot>
      </span>`}renderText(){const e=this.twoline?this.renderTwoline():this.renderSingleLine();return n.h`
      <span class="mdc-list-item__text">
        ${e}
      </span>`}renderSingleLine(){return n.h`<slot></slot>`}renderTwoline(){return n.h`
      <span class="mdc-list-item__primary-text">
        <slot></slot>
      </span>
      <span class="mdc-list-item__secondary-text">
        <slot name="secondary"></slot>
      </span>
    `}onClick(){this.fireRequestSelected(!this.selected,"interaction")}onDown(e,t){const i=()=>{window.removeEventListener(e,i),this.rippleHandlers.endPress()};window.addEventListener(e,i),this.rippleHandlers.startPress(t)}fireRequestSelected(e,t){if(this.noninteractive)return;const i=new CustomEvent("request-selected",{bubbles:!0,composed:!0,detail:{source:t,selected:e}});this.dispatchEvent(i)}connectedCallback(){super.connectedCallback(),this.noninteractive||this.setAttribute("mwc-list-item","");for(const e of this.listeners)for(const t of e.eventNames)e.target.addEventListener(t,e.cb,{passive:!0})}disconnectedCallback(){super.disconnectedCallback();for(const e of this.listeners)for(const t of e.eventNames)e.target.removeEventListener(t,e.cb);this._managingList&&(this._managingList.debouncedLayout?this._managingList.debouncedLayout(!0):this._managingList.layout(!0))}firstUpdated(){const e=new Event("list-item-rendered",{bubbles:!0,composed:!0});this.dispatchEvent(e)}}(0,n._)([(0,n.q)("slot")],y.prototype,"slotElement",void 0),(0,n._)([(0,n.a)("mwc-ripple")],y.prototype,"ripple",void 0),(0,n._)([(0,n.p)({type:String})],y.prototype,"value",void 0),(0,n._)([(0,n.p)({type:String,reflect:!0})],y.prototype,"group",void 0),(0,n._)([(0,n.p)({type:Number,reflect:!0})],y.prototype,"tabindex",void 0),(0,n._)([(0,n.p)({type:Boolean,reflect:!0}),(0,g.o)(function(o){this.setAttribute("aria-disabled",o?"true":"false")})],y.prototype,"disabled",void 0),(0,n._)([(0,n.p)({type:Boolean,reflect:!0})],y.prototype,"twoline",void 0),(0,n._)([(0,n.p)({type:Boolean,reflect:!0})],y.prototype,"activated",void 0),(0,n._)([(0,n.p)({type:String,reflect:!0})],y.prototype,"graphic",void 0),(0,n._)([(0,n.p)({type:Boolean})],y.prototype,"multipleGraphics",void 0),(0,n._)([(0,n.p)({type:Boolean})],y.prototype,"hasMeta",void 0),(0,n._)([(0,n.p)({type:Boolean,reflect:!0}),(0,g.o)(function(o){o?(this.removeAttribute("aria-checked"),this.removeAttribute("mwc-list-item"),this.selected=!1,this.activated=!1,this.tabIndex=-1):this.setAttribute("mwc-list-item","")})],y.prototype,"noninteractive",void 0),(0,n._)([(0,n.p)({type:Boolean,reflect:!0}),(0,g.o)(function(o){const e=this.getAttribute("role"),t="gridcell"===e||"option"===e||"row"===e||"tab"===e;t&&o?this.setAttribute("aria-selected","true"):t&&this.setAttribute("aria-selected","false"),this._firstChanged?this._firstChanged=!1:this._skipPropRequest||this.fireRequestSelected(o,"property")})],y.prototype,"selected",void 0),(0,n._)([(0,n.i)()],y.prototype,"shouldRenderRipple",void 0),(0,n._)([(0,n.i)()],y.prototype,"_managingList",void 0);const Ge=n.c`:host{cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;height:48px;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mdc-list-side-padding, 16px);padding-right:var(--mdc-list-side-padding, 16px);outline:none;height:48px;color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host:focus{outline:none}:host([activated]){color:#6200ee;color:var(--mdc-theme-primary, #6200ee);--mdc-ripple-color: var(--mdc-theme-primary, #6200ee)}:host([activated]) .mdc-list-item__graphic{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host([activated]) .fake-activated-ripple::before{position:absolute;display:block;top:0;bottom:0;left:0;right:0;width:100%;height:100%;pointer-events:none;z-index:1;content:"";opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12);background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-list-item__graphic{flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;display:inline-flex}.mdc-list-item__graphic ::slotted(*){flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;width:100%;height:100%;text-align:center}.mdc-list-item__meta{width:var(--mdc-list-item-meta-size, 24px);height:var(--mdc-list-item-meta-size, 24px);margin-left:auto;margin-right:0;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-list-item__meta.multi{width:auto}.mdc-list-item__meta ::slotted(*){width:var(--mdc-list-item-meta-size, 24px);line-height:var(--mdc-list-item-meta-size, 24px)}.mdc-list-item__meta ::slotted(.material-icons),.mdc-list-item__meta ::slotted(mwc-icon){line-height:var(--mdc-list-item-meta-size, 24px) !important}.mdc-list-item__meta ::slotted(:not(.material-icons):not(mwc-icon)){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}:host[dir=rtl] .mdc-list-item__meta,[dir=rtl] :host .mdc-list-item__meta{margin-left:0;margin-right:auto}.mdc-list-item__meta ::slotted(*){width:100%;height:100%}.mdc-list-item__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item__text ::slotted([for]),.mdc-list-item__text[for]{pointer-events:none}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;margin-bottom:-20px;display:block}.mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;display:block}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list--dense .mdc-list-item__secondary-text{font-size:inherit}* ::slotted(a),a{color:inherit;text-decoration:none}:host([twoline]){height:72px}:host([twoline]) .mdc-list-item__text{align-self:flex-start}:host([disabled]),:host([noninteractive]){cursor:default;pointer-events:none}:host([disabled]) .mdc-list-item__text ::slotted(*){opacity:.38}:host([disabled]) .mdc-list-item__text ::slotted(*),:host([disabled]) .mdc-list-item__primary-text ::slotted(*),:host([disabled]) .mdc-list-item__secondary-text ::slotted(*){color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-list-item__secondary-text ::slotted(*){color:rgba(0, 0, 0, 0.54);color:var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54))}.mdc-list-item__graphic ::slotted(*){background-color:transparent;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38))}.mdc-list-group__subheader ::slotted(*){color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host([graphic=avatar]) .mdc-list-item__graphic{width:var(--mdc-list-item-graphic-size, 40px);height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-list-item__graphic.multi{width:auto}:host([graphic=avatar]) .mdc-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 40px);line-height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-list-item__graphic ::slotted(.material-icons),:host([graphic=avatar]) .mdc-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 40px) !important}:host([graphic=avatar]) .mdc-list-item__graphic ::slotted(*){border-radius:50%}:host([graphic=avatar],[graphic=medium],[graphic=large],[graphic=control]) .mdc-list-item__graphic{margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 16px)}:host[dir=rtl] :host([graphic=avatar],[graphic=medium],[graphic=large],[graphic=control]) .mdc-list-item__graphic,[dir=rtl] :host :host([graphic=avatar],[graphic=medium],[graphic=large],[graphic=control]) .mdc-list-item__graphic{margin-left:var(--mdc-list-item-graphic-margin, 16px);margin-right:0}:host([graphic=icon]) .mdc-list-item__graphic{width:var(--mdc-list-item-graphic-size, 24px);height:var(--mdc-list-item-graphic-size, 24px);margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 32px)}:host([graphic=icon]) .mdc-list-item__graphic.multi{width:auto}:host([graphic=icon]) .mdc-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 24px);line-height:var(--mdc-list-item-graphic-size, 24px)}:host([graphic=icon]) .mdc-list-item__graphic ::slotted(.material-icons),:host([graphic=icon]) .mdc-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 24px) !important}:host[dir=rtl] :host([graphic=icon]) .mdc-list-item__graphic,[dir=rtl] :host :host([graphic=icon]) .mdc-list-item__graphic{margin-left:var(--mdc-list-item-graphic-margin, 32px);margin-right:0}:host([graphic=avatar]:not([twoLine])),:host([graphic=icon]:not([twoLine])){height:56px}:host([graphic=medium]:not([twoLine])),:host([graphic=large]:not([twoLine])){height:72px}:host([graphic=medium]) .mdc-list-item__graphic,:host([graphic=large]) .mdc-list-item__graphic{width:var(--mdc-list-item-graphic-size, 56px);height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-list-item__graphic.multi,:host([graphic=large]) .mdc-list-item__graphic.multi{width:auto}:host([graphic=medium]) .mdc-list-item__graphic ::slotted(*),:host([graphic=large]) .mdc-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 56px);line-height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-list-item__graphic ::slotted(.material-icons),:host([graphic=medium]) .mdc-list-item__graphic ::slotted(mwc-icon),:host([graphic=large]) .mdc-list-item__graphic ::slotted(.material-icons),:host([graphic=large]) .mdc-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 56px) !important}:host([graphic=large]){padding-left:0px}`;let ce=class extends y{};ce.styles=Ge,ce=(0,n._)([(0,n.b)("mwc-list-item")],ce);var k=new Set;k.add("Backspace"),k.add("Enter"),k.add("Spacebar"),k.add("PageUp"),k.add("PageDown"),k.add("End"),k.add("Home"),k.add("ArrowLeft"),k.add("ArrowUp"),k.add("ArrowRight"),k.add("ArrowDown"),k.add("Delete"),k.add("Escape");var E=new Map;E.set(8,"Backspace"),E.set(13,"Enter"),E.set(32,"Spacebar"),E.set(33,"PageUp"),E.set(34,"PageDown"),E.set(35,"End"),E.set(36,"Home"),E.set(37,"ArrowLeft"),E.set(38,"ArrowUp"),E.set(39,"ArrowRight"),E.set(40,"ArrowDown"),E.set(46,"Delete"),E.set(27,"Escape");var P=new Set;function z(o){var e=o.key;return k.has(e)?e:E.get(o.keyCode)||"Unknown"}P.add("PageUp"),P.add("PageDown"),P.add("End"),P.add("Home"),P.add("ArrowLeft"),P.add("ArrowUp"),P.add("ArrowRight"),P.add("ArrowDown");var Z={ACTION_EVENT:"MDCList:action",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n    .mdc-list-item button:not(:disabled),\n    .mdc-list-item a\n  ",FOCUSABLE_CHILD_ELEMENTS:'\n    .mdc-list-item button:not(:disabled),\n    .mdc-list-item a,\n    .mdc-list-item input[type="radio"]:not(:disabled),\n    .mdc-list-item input[type="checkbox"]:not(:disabled)\n  ',RADIO_SELECTOR:'input[type="radio"]'},I={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300};const je=["input","button","textarea","select"];function j(o){return o instanceof Set}const ae=o=>{const e=o===I.UNSET_INDEX?new Set:o;return j(e)?new Set(e):new Set([e])};class de extends f.M{constructor(e){super(Object.assign(Object.assign({},de.defaultAdapter),e)),this.isMulti_=!1,this.wrapFocus_=!1,this.isVertical_=!0,this.selectedIndex_=I.UNSET_INDEX,this.focusedItemIndex_=I.UNSET_INDEX,this.useActivatedClass_=!1,this.ariaCurrentAttrValue_=null}static get strings(){return Z}static get numbers(){return I}static get defaultAdapter(){return{focusItemAtIndex:()=>{},getFocusedElementIndex:()=>0,getListItemCount:()=>0,isFocusInsideList:()=>!1,isRootFocused:()=>!1,notifyAction:()=>{},notifySelected:()=>{},getSelectedStateForElementIndex:()=>!1,setDisabledStateForElementIndex:()=>{},getDisabledStateForElementIndex:()=>!1,setSelectedStateForElementIndex:()=>{},setActivatedStateForElementIndex:()=>{},setTabIndexForElementIndex:()=>{},setAttributeForElementIndex:()=>{},getAttributeForElementIndex:()=>null}}setWrapFocus(e){this.wrapFocus_=e}setMulti(e){this.isMulti_=e;const t=this.selectedIndex_;if(e)j(t)||(this.selectedIndex_=t===I.UNSET_INDEX?new Set:new Set([t]));else if(j(t))if(t.size){const i=Array.from(t).sort();this.selectedIndex_=i[0]}else this.selectedIndex_=I.UNSET_INDEX}setVerticalOrientation(e){this.isVertical_=e}setUseActivatedClass(e){this.useActivatedClass_=e}getSelectedIndex(){return this.selectedIndex_}setSelectedIndex(e){!this.isIndexValid_(e)||(this.isMulti_?this.setMultiSelectionAtIndex_(ae(e)):this.setSingleSelectionAtIndex_(e))}handleFocusIn(e,t){t>=0&&this.adapter.setTabIndexForElementIndex(t,0)}handleFocusOut(e,t){t>=0&&this.adapter.setTabIndexForElementIndex(t,-1),setTimeout(()=>{this.adapter.isFocusInsideList()||this.setTabindexToFirstSelectedItem_()},0)}handleKeydown(e,t,i){const r="ArrowLeft"===z(e),s="ArrowUp"===z(e),a="ArrowRight"===z(e),m="ArrowDown"===z(e),w="Home"===z(e),u="End"===z(e),h="Enter"===z(e),C="Spacebar"===z(e);if(this.adapter.isRootFocused())return void(s||u?(e.preventDefault(),this.focusLastElement()):(m||w)&&(e.preventDefault(),this.focusFirstElement()));let F,p=this.adapter.getFocusedElementIndex();if(!(-1===p&&(p=i,p<0))){if(this.isVertical_&&m||!this.isVertical_&&a)this.preventDefaultEvent(e),F=this.focusNextElement(p);else if(this.isVertical_&&s||!this.isVertical_&&r)this.preventDefaultEvent(e),F=this.focusPrevElement(p);else if(w)this.preventDefaultEvent(e),F=this.focusFirstElement();else if(u)this.preventDefaultEvent(e),F=this.focusLastElement();else if((h||C)&&t){const G=e.target;if(G&&"A"===G.tagName&&h)return;this.preventDefaultEvent(e),this.setSelectedIndexOnAction_(p,!0)}this.focusedItemIndex_=p,void 0!==F&&(this.setTabindexAtIndex_(F),this.focusedItemIndex_=F)}}handleSingleSelection(e,t,i){e!==I.UNSET_INDEX&&(this.setSelectedIndexOnAction_(e,t,i),this.setTabindexAtIndex_(e),this.focusedItemIndex_=e)}focusNextElement(e){let i=e+1;if(i>=this.adapter.getListItemCount()){if(!this.wrapFocus_)return e;i=0}return this.adapter.focusItemAtIndex(i),i}focusPrevElement(e){let t=e-1;if(t<0){if(!this.wrapFocus_)return e;t=this.adapter.getListItemCount()-1}return this.adapter.focusItemAtIndex(t),t}focusFirstElement(){return this.adapter.focusItemAtIndex(0),0}focusLastElement(){const e=this.adapter.getListItemCount()-1;return this.adapter.focusItemAtIndex(e),e}setEnabled(e,t){!this.isIndexValid_(e)||this.adapter.setDisabledStateForElementIndex(e,!t)}preventDefaultEvent(e){const i=`${e.target.tagName}`.toLowerCase();-1===je.indexOf(i)&&e.preventDefault()}setSingleSelectionAtIndex_(e,t=!0){this.selectedIndex_!==e&&(this.selectedIndex_!==I.UNSET_INDEX&&(this.adapter.setSelectedStateForElementIndex(this.selectedIndex_,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(this.selectedIndex_,!1)),t&&this.adapter.setSelectedStateForElementIndex(e,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(e,!0),this.setAriaForSingleSelectionAtIndex_(e),this.selectedIndex_=e,this.adapter.notifySelected(e))}setMultiSelectionAtIndex_(e,t=!0){const r=((o,e)=>{const t=Array.from(o),i=Array.from(e),r={added:[],removed:[]},s=t.sort(),a=i.sort();let m=0,w=0;for(;m<s.length||w<a.length;){const u=s[m],h=a[w];u!==h?void 0!==u&&(void 0===h||u<h)?(r.removed.push(u),m++):void 0!==h&&(void 0===u||h<u)&&(r.added.push(h),w++):(m++,w++)}return r})(ae(this.selectedIndex_),e);if(r.removed.length||r.added.length){for(const s of r.removed)t&&this.adapter.setSelectedStateForElementIndex(s,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(s,!1);for(const s of r.added)t&&this.adapter.setSelectedStateForElementIndex(s,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(s,!0);this.selectedIndex_=e,this.adapter.notifySelected(e,r)}}setAriaForSingleSelectionAtIndex_(e){this.selectedIndex_===I.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(e,Z.ARIA_CURRENT));const t=null!==this.ariaCurrentAttrValue_,i=t?Z.ARIA_CURRENT:Z.ARIA_SELECTED;this.selectedIndex_!==I.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,i,"false"),this.adapter.setAttributeForElementIndex(e,i,t?this.ariaCurrentAttrValue_:"true")}setTabindexAtIndex_(e){this.focusedItemIndex_===I.UNSET_INDEX&&0!==e?this.adapter.setTabIndexForElementIndex(0,-1):this.focusedItemIndex_>=0&&this.focusedItemIndex_!==e&&this.adapter.setTabIndexForElementIndex(this.focusedItemIndex_,-1),this.adapter.setTabIndexForElementIndex(e,0)}setTabindexToFirstSelectedItem_(){let e=0;"number"==typeof this.selectedIndex_&&this.selectedIndex_!==I.UNSET_INDEX?e=this.selectedIndex_:j(this.selectedIndex_)&&this.selectedIndex_.size>0&&(e=Math.min(...this.selectedIndex_)),this.setTabindexAtIndex_(e)}isIndexValid_(e){if(e instanceof Set){if(!this.isMulti_)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");if(0===e.size)return!0;{let t=!1;for(const i of e)if(t=this.isIndexInRange_(i),t)break;return t}}if("number"==typeof e){if(this.isMulti_)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+e);return e===I.UNSET_INDEX||this.isIndexInRange_(e)}return!1}isIndexInRange_(e){const t=this.adapter.getListItemCount();return e>=0&&e<t}setSelectedIndexOnAction_(e,t,i){if(this.adapter.getDisabledStateForElementIndex(e))return;let r=e;this.isMulti_&&(r=new Set([e])),this.isIndexValid_(r)&&(this.isMulti_?this.toggleMultiAtIndex(e,i,t):t||i?this.setSingleSelectionAtIndex_(e,t):this.selectedIndex_===e&&this.setSingleSelectionAtIndex_(I.UNSET_INDEX),t&&this.adapter.notifyAction(e))}toggleMultiAtIndex(e,t,i=!0){let r=!1;r=void 0===t?!this.adapter.getSelectedStateForElementIndex(e):t;const s=ae(this.selectedIndex_);r?s.add(e):s.delete(e),this.setMultiSelectionAtIndex_(s,i)}}const Y=o=>o.hasAttribute("mwc-list-item");function qe(){const o=this.itemsReadyResolver;this.itemsReady=new Promise(e=>this.itemsReadyResolver=e),o()}class S extends f.B{constructor(){super(),this.mdcAdapter=null,this.mdcFoundationClass=de,this.activatable=!1,this.multi=!1,this.wrapFocus=!1,this.itemRoles=null,this.innerRole=null,this.innerAriaLabel=null,this.rootTabbable=!1,this.previousTabindex=null,this.noninteractive=!1,this.itemsReadyResolver=()=>{},this.itemsReady=Promise.resolve([]),this.items_=[];const e=function Ke(o,e=50){let t;return function(i=!0){clearTimeout(t),t=setTimeout(()=>{o(i)},e)}}(this.layout.bind(this));this.debouncedLayout=(t=!0)=>{qe.call(this),e(t)}}_getUpdateComplete(){var e=()=>super._getUpdateComplete,t=this;return(0,R.Z)(function*(){yield e().call(t),yield t.itemsReady})()}get assignedElements(){const e=this.slotElement;return e?e.assignedNodes({flatten:!0}).filter(f.i):[]}get items(){return this.items_}updateItems(){const e=this.assignedElements,t=[];for(const s of e)Y(s)&&(t.push(s),s._managingList=this),s.hasAttribute("divider")&&!s.hasAttribute("role")&&s.setAttribute("role","separator");this.items_=t;const i=new Set;if(this.items_.forEach((s,a)=>{this.itemRoles?s.setAttribute("role",this.itemRoles):s.removeAttribute("role"),s.selected&&i.add(a)}),this.multi)this.select(i);else{const s=i.size?i.entries().next().value[1]:-1;this.select(s)}const r=new Event("items-updated",{bubbles:!0,composed:!0});this.dispatchEvent(r)}get selected(){const e=this.index;if(!j(e))return-1===e?null:this.items[e];const t=[];for(const i of e)t.push(this.items[i]);return t}get index(){return this.mdcFoundation?this.mdcFoundation.getSelectedIndex():-1}render(){const t=null===this.innerAriaLabel?void 0:this.innerAriaLabel;return n.h`
      <!-- @ts-ignore -->
      <ul
          tabindex=${this.rootTabbable?"0":"-1"}
          role="${(0,oe.i)(null===this.innerRole?void 0:this.innerRole)}"
          aria-label="${(0,oe.i)(t)}"
          class="mdc-list"
          @keydown=${this.onKeydown}
          @focusin=${this.onFocusIn}
          @focusout=${this.onFocusOut}
          @request-selected=${this.onRequestSelected}
          @list-item-rendered=${this.onListItemConnected}>
        <slot></slot>
        ${this.renderPlaceholder()}
      </ul>
    `}renderPlaceholder(){return void 0!==this.emptyMessage&&0===this.assignedElements.length?n.h`
        <mwc-list-item noninteractive>${this.emptyMessage}</mwc-list-item>
      `:null}firstUpdated(){super.firstUpdated(),this.items.length||(this.mdcFoundation.setMulti(this.multi),this.layout())}onFocusIn(e){if(this.mdcFoundation&&this.mdcRoot){const t=this.getIndexOfTarget(e);this.mdcFoundation.handleFocusIn(e,t)}}onFocusOut(e){if(this.mdcFoundation&&this.mdcRoot){const t=this.getIndexOfTarget(e);this.mdcFoundation.handleFocusOut(e,t)}}onKeydown(e){if(this.mdcFoundation&&this.mdcRoot){const t=this.getIndexOfTarget(e),r=Y(e.target);this.mdcFoundation.handleKeydown(e,r,t)}}onRequestSelected(e){if(this.mdcFoundation){let t=this.getIndexOfTarget(e);if(-1===t&&(this.layout(),t=this.getIndexOfTarget(e),-1===t)||this.items[t].disabled)return;this.mdcFoundation.handleSingleSelection(t,"interaction"===e.detail.source,e.detail.selected),e.stopPropagation()}}getIndexOfTarget(e){const t=this.items,i=e.composedPath();for(const r of i){let s=-1;if((0,f.i)(r)&&Y(r)&&(s=t.indexOf(r)),-1!==s)return s}return-1}createAdapter(){return this.mdcAdapter={getListItemCount:()=>this.mdcRoot?this.items.length:0,getFocusedElementIndex:this.getFocusedItemIndex,getAttributeForElementIndex:(e,t)=>{if(!this.mdcRoot)return"";const r=this.items[e];return r?r.getAttribute(t):""},setAttributeForElementIndex:(e,t,i)=>{if(!this.mdcRoot)return;const r=this.items[e];r&&r.setAttribute(t,i)},focusItemAtIndex:e=>{const t=this.items[e];t&&t.focus()},setTabIndexForElementIndex:(e,t)=>{const i=this.items[e];i&&(i.tabindex=t)},notifyAction:e=>{const t={bubbles:!0,composed:!0};t.detail={index:e};const i=new CustomEvent("action",t);this.dispatchEvent(i)},notifySelected:(e,t)=>{const i={bubbles:!0,composed:!0};i.detail={index:e,diff:t};const r=new CustomEvent("selected",i);this.dispatchEvent(r)},isFocusInsideList:()=>(0,f.d)(this),isRootFocused:()=>{const e=this.mdcRoot;return e.getRootNode().activeElement===e},setDisabledStateForElementIndex:(e,t)=>{const i=this.items[e];!i||(i.disabled=t)},getDisabledStateForElementIndex:e=>{const t=this.items[e];return!!t&&t.disabled},setSelectedStateForElementIndex:(e,t)=>{const i=this.items[e];!i||(i.selected=t)},getSelectedStateForElementIndex:e=>{const t=this.items[e];return!!t&&t.selected},setActivatedStateForElementIndex:(e,t)=>{const i=this.items[e];!i||(i.activated=t)}},this.mdcAdapter}selectUi(e,t=!1){const i=this.items[e];i&&(i.selected=!0,i.activated=t)}deselectUi(e){const t=this.items[e];t&&(t.selected=!1,t.activated=!1)}select(e){!this.mdcFoundation||this.mdcFoundation.setSelectedIndex(e)}toggle(e,t){this.multi&&this.mdcFoundation.toggleMultiAtIndex(e,t)}onListItemConnected(e){this.layout(-1===this.items.indexOf(e.target))}layout(e=!0){e&&this.updateItems();const t=this.items[0];for(const i of this.items)i.tabindex=-1;t&&(this.noninteractive?this.previousTabindex||(this.previousTabindex=t):t.tabindex=0),this.itemsReadyResolver()}getFocusedItemIndex(){if(!this.mdcRoot||!this.items.length)return-1;const e=(0,f.a)();if(!e.length)return-1;for(let t=e.length-1;t>=0;t--){const i=e[t];if(Y(i))return this.items.indexOf(i)}return-1}focusItemAtIndex(e){for(const t of this.items)if(0===t.tabindex){t.tabindex=-1;break}this.items[e].tabindex=0,this.items[e].focus()}focus(){const e=this.mdcRoot;e&&e.focus()}blur(){const e=this.mdcRoot;e&&e.blur()}}(0,n._)([(0,n.p)({type:String})],S.prototype,"emptyMessage",void 0),(0,n._)([(0,n.q)(".mdc-list")],S.prototype,"mdcRoot",void 0),(0,n._)([(0,n.q)("slot")],S.prototype,"slotElement",void 0),(0,n._)([(0,n.p)({type:Boolean}),(0,g.o)(function(o){this.mdcFoundation&&this.mdcFoundation.setUseActivatedClass(o)})],S.prototype,"activatable",void 0),(0,n._)([(0,n.p)({type:Boolean}),(0,g.o)(function(o,e){this.mdcFoundation&&this.mdcFoundation.setMulti(o),void 0!==e&&this.layout()})],S.prototype,"multi",void 0),(0,n._)([(0,n.p)({type:Boolean}),(0,g.o)(function(o){this.mdcFoundation&&this.mdcFoundation.setWrapFocus(o)})],S.prototype,"wrapFocus",void 0),(0,n._)([(0,n.p)({type:String}),(0,g.o)(function(o,e){void 0!==e&&this.updateItems()})],S.prototype,"itemRoles",void 0),(0,n._)([(0,n.p)({type:String})],S.prototype,"innerRole",void 0),(0,n._)([(0,n.p)({type:String})],S.prototype,"innerAriaLabel",void 0),(0,n._)([(0,n.p)({type:Boolean})],S.prototype,"rootTabbable",void 0),(0,n._)([(0,n.p)({type:Boolean,reflect:!0}),(0,g.o)(function(o){const e=this.slotElement;if(o&&e){const t=(0,f.f)(e,'[tabindex="0"]');this.previousTabindex=t,t&&t.setAttribute("tabindex","-1")}else!o&&this.previousTabindex&&(this.previousTabindex.setAttribute("tabindex","0"),this.previousTabindex=null)})],S.prototype,"noninteractive",void 0);const Xe=n.c`@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{display:block}.mdc-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);line-height:1.5rem;margin:0;padding:8px 0;list-style-type:none;color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));padding:var(--mdc-list-vertical-padding, 8px) 0}.mdc-list:focus{outline:none}.mdc-list-item{height:48px}.mdc-list--dense{padding-top:4px;padding-bottom:4px;font-size:.812rem}.mdc-list ::slotted([divider]){height:0;margin:0;border:none;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgba(0, 0, 0, 0.12)}.mdc-list ::slotted([divider][padded]){margin:0 var(--mdc-list-side-padding, 16px)}.mdc-list ::slotted([divider][inset]){margin-left:var(--mdc-list-inset-margin, 72px);margin-right:0;width:calc(100% - var(--mdc-list-inset-margin, 72px))}.mdc-list-group[dir=rtl] .mdc-list ::slotted([divider][inset]),[dir=rtl] .mdc-list-group .mdc-list ::slotted([divider][inset]){margin-left:0;margin-right:var(--mdc-list-inset-margin, 72px)}.mdc-list ::slotted([divider][inset][padded]){width:calc(100% - var(--mdc-list-inset-margin, 72px) - var(--mdc-list-side-padding, 16px))}.mdc-list--dense ::slotted([mwc-list-item]){height:40px}.mdc-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 20px}.mdc-list--two-line.mdc-list--dense ::slotted([mwc-list-item]),.mdc-list--avatar-list.mdc-list--dense ::slotted([mwc-list-item]){height:60px}.mdc-list--avatar-list.mdc-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 36px}:host([noninteractive]){pointer-events:none;cursor:default}.mdc-list--dense ::slotted(.mdc-list-item__primary-text){display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list--dense ::slotted(.mdc-list-item__primary-text)::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-list--dense ::slotted(.mdc-list-item__primary-text)::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}`;let le=class extends S{};le.styles=Xe,le=(0,n._)([(0,n.b)("mwc-list")],le);var Ve={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},Ze={CLOSED_EVENT:"MDCMenuSurface:closed",OPENED_EVENT:"MDCMenuSurface:opened",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},Q={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67},l=(()=>{return(o=l||(l={}))[o.BOTTOM=1]="BOTTOM",o[o.CENTER=2]="CENTER",o[o.RIGHT=4]="RIGHT",o[o.FLIP_RTL=8]="FLIP_RTL",l;var o})(),v=(()=>{return(o=v||(v={}))[o.TOP_LEFT=0]="TOP_LEFT",o[o.TOP_RIGHT=4]="TOP_RIGHT",o[o.BOTTOM_LEFT=1]="BOTTOM_LEFT",o[o.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",o[o.TOP_START=8]="TOP_START",o[o.TOP_END=12]="TOP_END",o[o.BOTTOM_START=9]="BOTTOM_START",o[o.BOTTOM_END=13]="BOTTOM_END",v;var o})(),he=function(o,e){return(he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])})(o,e)},J=function(){return J=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},J.apply(this,arguments)},Te=function(o){function e(t){var i=o.call(this,J(J({},e.defaultAdapter),t))||this;return i.isSurfaceOpen=!1,i.isQuickOpen=!1,i.isHoistedElement=!1,i.isFixedPosition=!1,i.openAnimationEndTimerId=0,i.closeAnimationEndTimerId=0,i.animationRequestId=0,i.anchorCorner=v.TOP_START,i.originCorner=v.TOP_START,i.anchorMargin={top:0,right:0,bottom:0,left:0},i.position={x:0,y:0},i}return function Ye(o,e){function t(){this.constructor=o}he(o,e),o.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}(e,o),Object.defineProperty(e,"cssClasses",{get:function(){return Ve},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Ze},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Q},enumerable:!0,configurable:!0}),Object.defineProperty(e,"Corner",{get:function(){return v},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyOpen:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){var t=e.cssClasses,i=t.ROOT,r=t.OPEN;if(!this.adapter.hasClass(i))throw new Error(i+" class required in root element.");this.adapter.hasClass(r)&&(this.isSurfaceOpen=!0)},e.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},e.prototype.setAnchorCorner=function(t){this.anchorCorner=t},e.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^l.RIGHT},e.prototype.setAnchorMargin=function(t){this.anchorMargin.top=t.top||0,this.anchorMargin.right=t.right||0,this.anchorMargin.bottom=t.bottom||0,this.anchorMargin.left=t.left||0},e.prototype.setIsHoisted=function(t){this.isHoistedElement=t},e.prototype.setFixedPosition=function(t){this.isFixedPosition=t},e.prototype.setAbsolutePosition=function(t,i){this.position.x=this.isFinite(t)?t:0,this.position.y=this.isFinite(i)?i:0},e.prototype.setQuickOpen=function(t){this.isQuickOpen=t},e.prototype.isOpen=function(){return this.isSurfaceOpen},e.prototype.open=function(){var t=this;this.isSurfaceOpen||(this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(e.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(e.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame(function(){t.adapter.addClass(e.cssClasses.OPEN),t.dimensions=t.adapter.getInnerDimensions(),t.autoposition(),t.openAnimationEndTimerId=setTimeout(function(){t.openAnimationEndTimerId=0,t.adapter.removeClass(e.cssClasses.ANIMATING_OPEN),t.adapter.notifyOpen()},Q.TRANSITION_OPEN_DURATION)}),this.isSurfaceOpen=!0))},e.prototype.close=function(t){var i=this;void 0===t&&(t=!1),this.isSurfaceOpen&&(this.isQuickOpen?(this.isSurfaceOpen=!1,t||this.maybeRestoreFocus(),this.adapter.removeClass(e.cssClasses.OPEN),this.adapter.removeClass(e.cssClasses.IS_OPEN_BELOW),this.adapter.notifyClose()):(this.adapter.addClass(e.cssClasses.ANIMATING_CLOSED),requestAnimationFrame(function(){i.adapter.removeClass(e.cssClasses.OPEN),i.adapter.removeClass(e.cssClasses.IS_OPEN_BELOW),i.closeAnimationEndTimerId=setTimeout(function(){i.closeAnimationEndTimerId=0,i.adapter.removeClass(e.cssClasses.ANIMATING_CLOSED),i.adapter.notifyClose()},Q.TRANSITION_CLOSE_DURATION)}),this.isSurfaceOpen=!1,t||this.maybeRestoreFocus()))},e.prototype.handleBodyClick=function(t){this.adapter.isElementInContainer(t.target)||this.close()},e.prototype.handleKeydown=function(t){("Escape"===t.key||27===t.keyCode)&&this.close()},e.prototype.autoposition=function(){var t;this.measurements=this.getAutoLayoutmeasurements();var i=this.getoriginCorner(),r=this.getMenuSurfaceMaxHeight(i),s=this.hasBit(i,l.BOTTOM)?"bottom":"top",a=this.hasBit(i,l.RIGHT)?"right":"left",m=this.getHorizontalOriginOffset(i),w=this.getVerticalOriginOffset(i),u=this.measurements,h=u.anchorSize,C=u.surfaceSize,p=((t={})[a]=m,t[s]=w,t);h.width/C.width>Q.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(a="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(p),this.adapter.setTransformOrigin(a+" "+s),this.adapter.setPosition(p),this.adapter.setMaxHeight(r?r+"px":""),this.hasBit(i,l.BOTTOM)||this.adapter.addClass(e.cssClasses.IS_OPEN_BELOW)},e.prototype.getAutoLayoutmeasurements=function(){var t=this.adapter.getAnchorDimensions(),i=this.adapter.getBodyDimensions(),r=this.adapter.getWindowDimensions(),s=this.adapter.getWindowScroll();return t||(t={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:t,bodySize:i,surfaceSize:this.dimensions,viewportDistance:{top:t.top,right:r.width-t.right,bottom:r.height-t.bottom,left:t.left},viewportSize:r,windowScroll:s}},e.prototype.getoriginCorner=function(){var u,h,t=this.originCorner,i=this.measurements,r=i.viewportDistance,s=i.anchorSize,a=i.surfaceSize,m=e.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,l.BOTTOM)?(u=r.top-m+s.height+this.anchorMargin.bottom,h=r.bottom-m-this.anchorMargin.bottom):(u=r.top-m+this.anchorMargin.top,h=r.bottom-m+s.height-this.anchorMargin.top),!(h-a.height>0)&&u>=h&&(t=this.setBit(t,l.BOTTOM));var te,ie,q,p=this.adapter.isRtl(),F=this.hasBit(this.anchorCorner,l.FLIP_RTL),G=this.hasBit(this.anchorCorner,l.RIGHT)||this.hasBit(t,l.RIGHT);(q=p&&F?!G:G)?(te=r.left+s.width+this.anchorMargin.right,ie=r.right-this.anchorMargin.right):(te=r.left+this.anchorMargin.left,ie=r.right+s.width-this.anchorMargin.left);var ge=te-a.width>0,Se=ie-a.width>0,Ce=this.hasBit(t,l.FLIP_RTL)&&this.hasBit(t,l.RIGHT);return Se&&Ce&&p||!ge&&Ce?t=this.unsetBit(t,l.RIGHT):(ge&&q&&p||ge&&!q&&G||!Se&&te>=ie)&&(t=this.setBit(t,l.RIGHT)),t},e.prototype.getMenuSurfaceMaxHeight=function(t){var i=this.measurements.viewportDistance,r=0,s=this.hasBit(t,l.BOTTOM),a=this.hasBit(this.anchorCorner,l.BOTTOM),m=e.numbers.MARGIN_TO_EDGE;return s?(r=i.top+this.anchorMargin.top-m,a||(r+=this.measurements.anchorSize.height)):(r=i.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-m,a&&(r-=this.measurements.anchorSize.height)),r},e.prototype.getHorizontalOriginOffset=function(t){var i=this.measurements.anchorSize,r=this.hasBit(t,l.RIGHT),s=this.hasBit(this.anchorCorner,l.RIGHT);if(r){var a=s?i.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?a-(this.measurements.viewportSize.width-this.measurements.bodySize.width):a}return s?i.width-this.anchorMargin.right:this.anchorMargin.left},e.prototype.getVerticalOriginOffset=function(t){var i=this.measurements.anchorSize,r=this.hasBit(t,l.BOTTOM),s=this.hasBit(this.anchorCorner,l.BOTTOM);return r?s?i.height-this.anchorMargin.top:-this.anchorMargin.bottom:s?i.height+this.anchorMargin.bottom:this.anchorMargin.top},e.prototype.adjustPositionForHoistedElement=function(t){var i,r,s=this.measurements,a=s.windowScroll,m=s.viewportDistance,w=Object.keys(t);try{for(var u=function Qe(o){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&o[e],i=0;if(t)return t.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(w),h=u.next();!h.done;h=u.next()){var C=h.value,p=t[C]||0;p+=m[C],this.isFixedPosition||("top"===C?p+=a.y:"bottom"===C?p-=a.y:"left"===C?p+=a.x:p-=a.x),t[C]=p}}catch(F){i={error:F}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}},e.prototype.maybeRestoreFocus=function(){var t=this.adapter.isFocused(),i=document.activeElement&&this.adapter.isElementInContainer(document.activeElement);(t||i)&&this.adapter.restoreFocus()},e.prototype.hasBit=function(t,i){return Boolean(t&i)},e.prototype.setBit=function(t,i){return t|i},e.prototype.unsetBit=function(t,i){return t^i},e.prototype.isFinite=function(t){return"number"==typeof t&&isFinite(t)},e}(f.M);const Je={TOP_LEFT:v.TOP_LEFT,TOP_RIGHT:v.TOP_RIGHT,BOTTOM_LEFT:v.BOTTOM_LEFT,BOTTOM_RIGHT:v.BOTTOM_RIGHT,TOP_START:v.TOP_START,TOP_END:v.TOP_END,BOTTOM_START:v.BOTTOM_START,BOTTOM_END:v.BOTTOM_END};class _ extends f.B{constructor(){super(...arguments),this.mdcFoundationClass=Te,this.absolute=!1,this.fullwidth=!1,this.fixed=!1,this.x=null,this.y=null,this.quick=!1,this.open=!1,this.bitwiseCorner=v.TOP_START,this.previousMenuCorner=null,this.menuCorner="START",this.corner="TOP_START",this.styleTop="",this.styleLeft="",this.styleRight="",this.styleBottom="",this.styleMaxHeight="",this.styleTransformOrigin="",this.anchor=null,this.previouslyFocused=null,this.previousAnchor=null,this.onBodyClickBound=()=>{}}render(){const t={top:this.styleTop,left:this.styleLeft,right:this.styleRight,bottom:this.styleBottom,"max-height":this.styleMaxHeight,"transform-origin":this.styleTransformOrigin};return n.h`
      <div
          class="mdc-menu-surface ${(0,W.c)({"mdc-menu-surface--fixed":this.fixed,"mdc-menu-surface--fullwidth":this.fullwidth})}"
          style="${(0,W.s)(t)}"
          @keydown=${this.onKeydown}
          @opened=${this.registerBodyClick}
          @closed=${this.deregisterBodyClick}>
        <slot></slot>
      </div>`}createAdapter(){var t,e=this;return Object.assign(Object.assign({},(0,f.b)(this.mdcRoot)),{hasAnchor:()=>!!this.anchor,notifyClose:()=>{const i=new CustomEvent("closed",{bubbles:!0,composed:!0});this.open=!1,this.mdcRoot.dispatchEvent(i)},notifyOpen:()=>{const i=new CustomEvent("opened",{bubbles:!0,composed:!0});this.open=!0,this.mdcRoot.dispatchEvent(i)},isElementInContainer:()=>!1,isRtl:()=>!!this.mdcRoot&&"rtl"===getComputedStyle(this.mdcRoot).direction,setTransformOrigin:t=>{!this.mdcRoot||(this.styleTransformOrigin=t)},isFocused:()=>(0,f.d)(this),saveFocus:()=>{const t=(0,f.a)(),i=t.length;i||(this.previouslyFocused=null),this.previouslyFocused=t[i-1]},restoreFocus:()=>{!this.previouslyFocused||"focus"in this.previouslyFocused&&this.previouslyFocused.focus()},getInnerDimensions:()=>{const t=this.mdcRoot;return t?{width:t.offsetWidth,height:t.offsetHeight}:{width:0,height:0}},getAnchorDimensions:()=>{const t=this.anchor;return t?t.getBoundingClientRect():null},getBodyDimensions:()=>({width:document.body.clientWidth,height:document.body.clientHeight}),getWindowDimensions:()=>({width:window.innerWidth,height:window.innerHeight}),getWindowScroll:()=>({x:window.pageXOffset,y:window.pageYOffset}),setPosition:t=>{!this.mdcRoot||(this.styleLeft="left"in t?`${t.left}px`:"",this.styleRight="right"in t?`${t.right}px`:"",this.styleTop="top"in t?`${t.top}px`:"",this.styleBottom="bottom"in t?`${t.bottom}px`:"")},setMaxHeight:(t=(0,R.Z)(function*(i){!e.mdcRoot||(e.styleMaxHeight=i,yield e.updateComplete,e.styleMaxHeight=`var(--mdc-menu-max-height, ${i})`)}),function(r){return t.apply(this,arguments)})})}onKeydown(e){this.mdcFoundation&&this.mdcFoundation.handleKeydown(e)}onBodyClick(e){-1===e.composedPath().indexOf(this)&&this.close()}registerBodyClick(){this.onBodyClickBound=this.onBodyClick.bind(this),document.body.addEventListener("click",this.onBodyClickBound,{passive:!0,capture:!0})}deregisterBodyClick(){document.body.removeEventListener("click",this.onBodyClickBound,{capture:!0})}close(){this.open=!1}show(){this.open=!0}}(0,n._)([(0,n.q)(".mdc-menu-surface")],_.prototype,"mdcRoot",void 0),(0,n._)([(0,n.q)("slot")],_.prototype,"slotElement",void 0),(0,n._)([(0,n.p)({type:Boolean}),(0,g.o)(function(o){this.mdcFoundation&&!this.fixed&&this.mdcFoundation.setIsHoisted(o)})],_.prototype,"absolute",void 0),(0,n._)([(0,n.p)({type:Boolean})],_.prototype,"fullwidth",void 0),(0,n._)([(0,n.p)({type:Boolean}),(0,g.o)(function(o){this.mdcFoundation&&!this.absolute&&this.mdcFoundation.setIsHoisted(o)})],_.prototype,"fixed",void 0),(0,n._)([(0,n.p)({type:Number}),(0,g.o)(function(o){this.mdcFoundation&&null!==this.y&&null!==o&&(this.mdcFoundation.setAbsolutePosition(o,this.y),this.mdcFoundation.setAnchorMargin({left:o,top:this.y,right:-o,bottom:this.y}))})],_.prototype,"x",void 0),(0,n._)([(0,n.p)({type:Number}),(0,g.o)(function(o){this.mdcFoundation&&null!==this.x&&null!==o&&(this.mdcFoundation.setAbsolutePosition(this.x,o),this.mdcFoundation.setAnchorMargin({left:this.x,top:o,right:-this.x,bottom:o}))})],_.prototype,"y",void 0),(0,n._)([(0,n.p)({type:Boolean}),(0,g.o)(function(o){this.mdcFoundation&&this.mdcFoundation.setQuickOpen(o)})],_.prototype,"quick",void 0),(0,n._)([(0,n.p)({type:Boolean,reflect:!0}),(0,g.o)(function(o,e){this.mdcFoundation&&(o?this.mdcFoundation.open():void 0!==e&&this.mdcFoundation.close())})],_.prototype,"open",void 0),(0,n._)([(0,n.i)(),(0,g.o)(function(o){this.mdcFoundation&&this.mdcFoundation.setAnchorCorner(o)})],_.prototype,"bitwiseCorner",void 0),(0,n._)([(0,n.p)({type:String}),(0,g.o)(function(o){if(this.mdcFoundation){const t=null===this.previousMenuCorner,i=!t&&o!==this.previousMenuCorner;("START"===o||"END"===o)&&(i||t&&"END"===o)&&(this.bitwiseCorner=this.bitwiseCorner^l.RIGHT,this.mdcFoundation.flipCornerHorizontally(),this.previousMenuCorner=o)}})],_.prototype,"menuCorner",void 0),(0,n._)([(0,n.p)({type:String}),(0,g.o)(function(o){if(this.mdcFoundation&&o){let e=Je[o];"END"===this.menuCorner&&(e^=l.RIGHT),this.bitwiseCorner=e}})],_.prototype,"corner",void 0),(0,n._)([(0,n.i)()],_.prototype,"styleTop",void 0),(0,n._)([(0,n.i)()],_.prototype,"styleLeft",void 0),(0,n._)([(0,n.i)()],_.prototype,"styleRight",void 0),(0,n._)([(0,n.i)()],_.prototype,"styleBottom",void 0),(0,n._)([(0,n.i)()],_.prototype,"styleMaxHeight",void 0),(0,n._)([(0,n.i)()],_.prototype,"styleTransformOrigin",void 0);const et=n.c`.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;transition:opacity .03s linear,transform .12s cubic-bezier(0, 0, 0.2, 1),height 250ms cubic-bezier(0, 0, 0.2, 1);box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2),0px 8px 10px 1px rgba(0, 0, 0, 0.14),0px 3px 14px 2px rgba(0,0,0,.12);background-color:#fff;background-color:var(--mdc-theme-surface, #fff);color:#000;color:var(--mdc-theme-on-surface, #000);border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0;transition:opacity .075s linear}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}:host(:not([open])){display:none}.mdc-menu-surface{z-index:8;z-index:var(--mdc-menu-z-index, 8);max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px))}`;let me=class extends _{};me.styles=et,me=(0,n._)([(0,n.b)("mwc-menu-surface")],me);var ue={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},K={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list",SELECTED_EVENT:"MDCMenu:selected"},tt={FOCUS_ROOT_INDEX:-1},$=(()=>{return(o=$||($={}))[o.NONE=0]="NONE",o[o.LIST_ROOT=1]="LIST_ROOT",o[o.FIRST_ITEM=2]="FIRST_ITEM",o[o.LAST_ITEM=3]="LAST_ITEM",$;var o})(),pe=function(o,e){return(pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])})(o,e)},ee=function(){return ee=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},ee.apply(this,arguments)},ot=function(o){function e(t){var i=o.call(this,ee(ee({},e.defaultAdapter),t))||this;return i.closeAnimationEndTimerId_=0,i.defaultFocusState_=$.LIST_ROOT,i}return function it(o,e){function t(){this.constructor=o}pe(o,e),o.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}(e,o),Object.defineProperty(e,"cssClasses",{get:function(){return ue},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return K},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return tt},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return-1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return-1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this.closeAnimationEndTimerId_&&clearTimeout(this.closeAnimationEndTimerId_),this.adapter.closeSurface()},e.prototype.handleKeydown=function(t){("Tab"===t.key||9===t.keyCode)&&this.adapter.closeSurface(!0)},e.prototype.handleItemAction=function(t){var i=this,r=this.adapter.getElementIndex(t);r<0||(this.adapter.notifySelected({index:r}),this.adapter.closeSurface(),this.closeAnimationEndTimerId_=setTimeout(function(){var s=i.adapter.getElementIndex(t);s>=0&&i.adapter.isSelectableItemAtIndex(s)&&i.setSelectedIndex(s)},Te.numbers.TRANSITION_CLOSE_DURATION))},e.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState_){case $.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case $.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case $.NONE:break;default:this.adapter.focusListRoot()}},e.prototype.setDefaultFocusState=function(t){this.defaultFocusState_=t},e.prototype.setSelectedIndex=function(t){if(this.validatedIndex_(t),!this.adapter.isSelectableItemAtIndex(t))throw new Error("MDCMenuFoundation: No selection group at specified index.");var i=this.adapter.getSelectedSiblingOfItemAtIndex(t);i>=0&&(this.adapter.removeAttributeFromElementAtIndex(i,K.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(i,ue.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(t,ue.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(t,K.ARIA_CHECKED_ATTR,"true")},e.prototype.setEnabled=function(t,i){this.validatedIndex_(t),i?(this.adapter.removeClassFromElementAtIndex(t,"mdc-list-item--disabled"),this.adapter.addAttributeToElementAtIndex(t,K.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(t,"mdc-list-item--disabled"),this.adapter.addAttributeToElementAtIndex(t,K.ARIA_DISABLED_ATTR,"true"))},e.prototype.validatedIndex_=function(t){var i=this.adapter.getMenuItemCount();if(!(t>=0&&t<i))throw new Error("MDCMenuFoundation: No list item at specified index.")},e}(f.M);class x extends f.B{constructor(){super(...arguments),this.mdcFoundationClass=ot,this.listElement_=null,this.anchor=null,this.open=!1,this.quick=!1,this.wrapFocus=!1,this.innerRole="menu",this.corner="TOP_START",this.x=null,this.y=null,this.absolute=!1,this.multi=!1,this.activatable=!1,this.fixed=!1,this.forceGroupSelection=!1,this.fullwidth=!1,this.menuCorner="START",this.defaultFocus="LIST_ROOT",this._listUpdateComplete=null}get listElement(){return this.listElement_||(this.listElement_=this.renderRoot.querySelector("mwc-list")),this.listElement_}get items(){const e=this.listElement;return e?e.items:[]}get index(){const e=this.listElement;return e?e.index:-1}get selected(){const e=this.listElement;return e?e.selected:null}render(){return n.h`
      <mwc-menu-surface
          ?hidden=${!this.open}
          .anchor=${this.anchor}
          .open=${this.open}
          .quick=${this.quick}
          .corner=${this.corner}
          .x=${this.x}
          .y=${this.y}
          .absolute=${this.absolute}
          .fixed=${this.fixed}
          .fullwidth=${this.fullwidth}
          .menuCorner=${this.menuCorner}
          class="mdc-menu mdc-menu-surface"
          @closed=${this.onClosed}
          @opened=${this.onOpened}
          @keydown=${this.onKeydown}>
        <mwc-list
          rootTabbable
          .innerRole=${this.innerRole}
          .multi=${this.multi}
          class="mdc-list"
          .itemRoles=${"menu"===this.innerRole?"menuitem":"option"}
          .wrapFocus=${this.wrapFocus}
          .activatable=${this.activatable}
          @action=${this.onAction}>
        <slot></slot>
      </mwc-list>
    </mwc-menu-surface>`}createAdapter(){return{addClassToElementAtIndex:(e,t)=>{const i=this.listElement;if(!i)return;const r=i.items[e];!r||("mdc-menu-item--selected"===t?this.forceGroupSelection&&!r.selected&&i.toggle(e,!0):r.classList.add(t))},removeClassFromElementAtIndex:(e,t)=>{const i=this.listElement;if(!i)return;const r=i.items[e];!r||("mdc-menu-item--selected"===t?r.selected&&i.toggle(e,!1):r.classList.remove(t))},addAttributeToElementAtIndex:(e,t,i)=>{const r=this.listElement;if(!r)return;const s=r.items[e];!s||s.setAttribute(t,i)},removeAttributeFromElementAtIndex:(e,t)=>{const i=this.listElement;if(!i)return;const r=i.items[e];!r||r.removeAttribute(t)},elementContainsClass:(e,t)=>e.classList.contains(t),closeSurface:()=>{this.open=!1},getElementIndex:e=>{const t=this.listElement;return t?t.items.indexOf(e):-1},notifySelected:()=>{},getMenuItemCount:()=>{const e=this.listElement;return e?e.items.length:0},focusItemAtIndex:e=>{const t=this.listElement;if(!t)return;const i=t.items[e];i&&i.focus()},focusListRoot:()=>{this.listElement&&this.listElement.focus()},getSelectedSiblingOfItemAtIndex:e=>{const t=this.listElement;if(!t)return-1;const i=t.items[e];if(!i||!i.group)return-1;for(let r=0;r<t.items.length;r++){if(r===e)continue;const s=t.items[r];if(s.selected&&s.group===i.group)return r}return-1},isSelectableItemAtIndex:e=>{const t=this.listElement;if(!t)return!1;const i=t.items[e];return!!i&&i.hasAttribute("group")}}}onKeydown(e){this.mdcFoundation&&this.mdcFoundation.handleKeydown(e)}onAction(e){const t=this.listElement;if(this.mdcFoundation&&t){const r=t.items[e.detail.index];r&&this.mdcFoundation.handleItemAction(r)}}onOpened(){this.open=!0,this.mdcFoundation&&this.mdcFoundation.handleMenuSurfaceOpened()}onClosed(){this.open=!1}_getUpdateComplete(){var e=()=>super._getUpdateComplete,t=this;return(0,R.Z)(function*(){yield t._listUpdateComplete,yield e().call(t)})()}firstUpdated(){var e=()=>super.firstUpdated,t=this;return(0,R.Z)(function*(){e().call(t);const i=t.listElement;i&&(t._listUpdateComplete=i.updateComplete,yield t._listUpdateComplete)})()}select(e){const t=this.listElement;t&&t.select(e)}close(){this.open=!1}show(){this.open=!0}getFocusedItemIndex(){const e=this.listElement;return e?e.getFocusedItemIndex():-1}focusItemAtIndex(e){const t=this.listElement;t&&t.focusItemAtIndex(e)}layout(e=!0){const t=this.listElement;t&&t.layout(e)}}(0,n._)([(0,n.q)(".mdc-menu")],x.prototype,"mdcRoot",void 0),(0,n._)([(0,n.q)("slot")],x.prototype,"slotElement",void 0),(0,n._)([(0,n.p)({type:Object})],x.prototype,"anchor",void 0),(0,n._)([(0,n.p)({type:Boolean,reflect:!0})],x.prototype,"open",void 0),(0,n._)([(0,n.p)({type:Boolean})],x.prototype,"quick",void 0),(0,n._)([(0,n.p)({type:Boolean})],x.prototype,"wrapFocus",void 0),(0,n._)([(0,n.p)({type:String})],x.prototype,"innerRole",void 0),(0,n._)([(0,n.p)({type:String})],x.prototype,"corner",void 0),(0,n._)([(0,n.p)({type:Number})],x.prototype,"x",void 0),(0,n._)([(0,n.p)({type:Number})],x.prototype,"y",void 0),(0,n._)([(0,n.p)({type:Boolean})],x.prototype,"absolute",void 0),(0,n._)([(0,n.p)({type:Boolean})],x.prototype,"multi",void 0),(0,n._)([(0,n.p)({type:Boolean})],x.prototype,"activatable",void 0),(0,n._)([(0,n.p)({type:Boolean})],x.prototype,"fixed",void 0),(0,n._)([(0,n.p)({type:Boolean})],x.prototype,"forceGroupSelection",void 0),(0,n._)([(0,n.p)({type:Boolean})],x.prototype,"fullwidth",void 0),(0,n._)([(0,n.p)({type:String})],x.prototype,"menuCorner",void 0),(0,n._)([(0,n.p)({type:String}),(0,g.o)(function(o){this.mdcFoundation&&this.mdcFoundation.setDefaultFocusState($[o])})],x.prototype,"defaultFocus",void 0);const nt=n.c`mwc-list ::slotted([mwc-list-item]:not([twoline])){height:var(--mdc-menu-item-height, 48px)}mwc-list{max-width:var(--mdc-menu-max-width, auto);min-width:var(--mdc-menu-min-width, auto)}`;let fe=class extends x{};fe.styles=nt,fe=(0,n._)([(0,n.b)("mwc-menu")],fe);const Ae=class{constructor(o){(0,c.r)(this,o),this.options=[],this.fontSize="16px",this.state={x:0,y:0,position:"relative",show:!1}}hide(){var o=this;return(0,R.Z)(function*(){o.state=Object.assign(Object.assign({},o.state),{show:!1})})()}show(o,e,t="inherit"){var i=this;return(0,R.Z)(function*(){yield i.hide(),requestAnimationFrame(()=>{i.state={x:o,y:e,position:t,show:!0}})})()}render(){var e,o=this;return(0,c.h)(c.H,{style:{"--menu-item-font-size":this.fontSize,position:this.state.position}},(0,c.h)("button",{type:"button",onClick:(e=(0,R.Z)(function*(){yield o.show(0,0,"relative")}),function(){return e.apply(this,arguments)})},(0,c.h)("mwc-icon",null,"more_vert")),(0,c.h)("mwc-menu",{open:this.state.show,x:this.state.x,y:this.state.y,onAction:e=>{this.state=Object.assign(Object.assign({},this.state),{show:!1}),this.options[e.detail.index].action(e)}},this.options.map(({label:e})=>(0,c.h)("mwc-list-item",null,e))))}get el(){return(0,c.g)(this)}};Ae.style=":host{--mdc-theme-primary:var(--color-main);--mdc-theme-secondary:var(--color-sec);--mdc-icon-size:24px;display:inline-block}button{align-items:center;background:none;border-radius:50%;border:0;color:var(--color-gray);cursor:pointer;display:inline-flex;height:32px;padding:0;width:32px}mwc-list-item{font-size:var(--menu-item-font-size)}";const we=class{constructor(o){(0,c.r)(this,o),this.state=null,this.size="16px",this.labels={archived:"Archived",published:"Published",revision:"Revision",draft:"Draft"}}render(){const o=this.state?this.getType(this.state):"",e=this.labels[o];return(0,c.h)(c.H,{"aria-label":e,style:{"--size":this.size}},(0,c.h)("span",null,(0,c.h)("div",{class:o,id:"icon"}),(0,c.h)("dot-tooltip",{content:e,for:"icon"})))}getType({live:o,working:e,deleted:t,hasLiveVersion:i}){if(this.isTrue(t))return"archived";if("true"===o.toString()){if(this.isTrue(i)&&this.isTrue(e))return"published"}else if(this.isTrue(i))return"revision";return"draft"}isTrue(o){return!!o&&"true"===o.toString()}};we.style=':host{--sucess-color:#27b970;position:relative;display:inline-block}div{border-radius:50%;border:solid 2px;box-sizing:border-box;height:var(--size);width:var(--size)}.published,.revision:after{background-color:var(--sucess-color)}.archived,.revision{position:relative}.archived:before,.revision:before{box-sizing:border-box;background-color:currentColor;content:"";height:2px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:calc(var(--size) - 2px);z-index:1}.revision{transform:rotate(90deg)}.revision:after{border-bottom-left-radius:var(--size);border-top-left-radius:var(--size);bottom:25%;content:"";height:100%;left:25%;position:absolute;transform:rotate(90deg);width:50%}';const ht=({tooltipEl:o,targetEl:e,position:t})=>{const r=o.getBoundingClientRect(),s=e.getBoundingClientRect();let a=s.bottom+4;return"top"===t.y&&(a=s.top-r.height-4),a},Re=class{constructor(o){(0,c.r)(this,o),this.showing=!1,this.content=void 0,this.for=void 0,this.delay=void 0,this.position="center bottom"}connectedCallback(){const o=`#${this.for}`;this.targetEl=this.el.parentElement?this.el.parentElement.querySelector(o):this.el.offsetParent.shadowRoot.querySelector(o),this.bindEvents()}disconnectedCallback(){this.unBindEvents()}appendTooltip(){this.tooltipEl=(o=>{const e=document.createElement("span");return e.style.padding="2px 5px",e.style.backgroundColor="#444",e.style.borderRadius="2px",e.style.color="#fff",e.style.position="absolute",e.style.opacity="0",e.style.whiteSpace="nowrap",e.innerText=o,e})(this.content),document.body.appendChild(this.tooltipEl);const[o,e]=this.position.split(" "),{left:t,top:i}=(o=>{let e=(({tooltipEl:o,targetEl:e,position:t})=>{const i=o.getBoundingClientRect(),r=e.getBoundingClientRect();let s=r.left;return"center"===t.x?s=r.width/2+r.left-i.width/2:"right"===t.x&&(s=r.right-i.width),s+i.width>window.innerWidth&&(s=r.right-i.width),s})(o);return{top:ht(o),left:e}})({tooltipEl:this.tooltipEl,targetEl:this.targetEl,position:{x:o,y:e}});this.tooltipEl.style.left=`${t}px`,this.tooltipEl.style.top=`${i}px`,(o=>{o.style.opacity="0",function e(){let t=parseFloat(o.style.opacity);(t+=.1)>1||(o.style.opacity=t.toString(),requestAnimationFrame(e))}()})(this.tooltipEl)}bindEvents(){this.targetEl.addEventListener("mouseenter",this.showTooltip.bind(this)),this.targetEl.addEventListener("mouseleave",this.removeToolTip.bind(this)),window.addEventListener("scroll",this.removeToolTip.bind(this))}showTooltip(){this.showing=!0,this.delay?setTimeout(()=>{this.showing&&this.appendTooltip()},this.delay):this.appendTooltip()}removeToolTip(){this.showing=!1,this.tooltipEl&&(document.body.removeChild(this.tooltipEl),this.tooltipEl=null)}unBindEvents(){this.targetEl.removeEventListener("mouseenter",this.showTooltip.bind(this)),this.targetEl.removeEventListener("mouseleave",this.removeToolTip.bind(this)),window.removeEventListener("scroll",this.removeToolTip.bind(this))}render(){return null}get el(){return(0,c.g)(this)}};Re.style=""}}]);