/*! For license information please see 686.c3a97fc5f4ec6080.js.LICENSE.txt */ "use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([["686"],{78580:function(t,i,e){e.d(i,{HX:function(){return n},KT:function(){return a},Ns:function(){return o},UX:function(){return s},j2:function(){return r}});var n,o,s={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"},r={CLOSED_EVENT:"MDCMenuSurface:closed",CLOSING_EVENT:"MDCMenuSurface:closing",OPENED_EVENT:"MDCMenuSurface:opened",OPENING_EVENT:"MDCMenuSurface:opening",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(", ")},a={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67,TOUCH_EVENT_WAIT_MS:30};!function(t){t[t.BOTTOM=1]="BOTTOM",t[t.CENTER=2]="CENTER",t[t.RIGHT=4]="RIGHT",t[t.FLIP_RTL=8]="FLIP_RTL"}(n||(n={})),function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=4]="TOP_RIGHT",t[t.BOTTOM_LEFT=1]="BOTTOM_LEFT",t[t.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",t[t.TOP_START=8]="TOP_START",t[t.TOP_END=12]="TOP_END",t[t.BOTTOM_START=9]="BOTTOM_START",t[t.BOTTOM_END=13]="BOTTOM_END"}(o||(o={}))},94280:function(t,i,e){e.d(i,{Z:function(){return a},k:function(){return r}});e(52247);var n=e(9065),o=e(80573),s=e(78580),r=function(t){function i(e){var o=t.call(this,(0,n.pi)((0,n.pi)({},i.defaultAdapter),e))||this;return o.isSurfaceOpen=!1,o.isQuickOpen=!1,o.isHoistedElement=!1,o.isFixedPosition=!1,o.isHorizontallyCenteredOnViewport=!1,o.maxHeight=0,o.openBottomBias=0,o.openAnimationEndTimerId=0,o.closeAnimationEndTimerId=0,o.animationRequestId=0,o.anchorCorner=s.Ns.TOP_START,o.originCorner=s.Ns.TOP_START,o.anchorMargin={top:0,right:0,bottom:0,left:0},o.position={x:0,y:0},o}return(0,n.ZT)(i,t),Object.defineProperty(i,"cssClasses",{get:function(){return s.UX},enumerable:!1,configurable:!0}),Object.defineProperty(i,"strings",{get:function(){return s.j2},enumerable:!1,configurable:!0}),Object.defineProperty(i,"numbers",{get:function(){return s.KT},enumerable:!1,configurable:!0}),Object.defineProperty(i,"Corner",{get:function(){return s.Ns},enumerable:!1,configurable:!0}),Object.defineProperty(i,"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(){},notifyClosing:function(){},notifyOpen:function(){},notifyOpening:function(){}}},enumerable:!1,configurable:!0}),i.prototype.init=function(){var t=i.cssClasses,e=t.ROOT,n=t.OPEN;if(!this.adapter.hasClass(e))throw new Error(e+" class required in root element.");this.adapter.hasClass(n)&&(this.isSurfaceOpen=!0)},i.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},i.prototype.setAnchorCorner=function(t){this.anchorCorner=t},i.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^s.HX.RIGHT},i.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},i.prototype.setIsHoisted=function(t){this.isHoistedElement=t},i.prototype.setFixedPosition=function(t){this.isFixedPosition=t},i.prototype.isFixed=function(){return this.isFixedPosition},i.prototype.setAbsolutePosition=function(t,i){this.position.x=this.isFinite(t)?t:0,this.position.y=this.isFinite(i)?i:0},i.prototype.setIsHorizontallyCenteredOnViewport=function(t){this.isHorizontallyCenteredOnViewport=t},i.prototype.setQuickOpen=function(t){this.isQuickOpen=t},i.prototype.setMaxHeight=function(t){this.maxHeight=t},i.prototype.setOpenBottomBias=function(t){this.openBottomBias=t},i.prototype.isOpen=function(){return this.isSurfaceOpen},i.prototype.open=function(){var t=this;this.isSurfaceOpen||(this.adapter.notifyOpening(),this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(i.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(i.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame((function(){t.dimensions=t.adapter.getInnerDimensions(),t.autoposition(),t.adapter.addClass(i.cssClasses.OPEN),t.openAnimationEndTimerId=setTimeout((function(){t.openAnimationEndTimerId=0,t.adapter.removeClass(i.cssClasses.ANIMATING_OPEN),t.adapter.notifyOpen()}),s.KT.TRANSITION_OPEN_DURATION)})),this.isSurfaceOpen=!0))},i.prototype.close=function(t){var e=this;if(void 0===t&&(t=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen)return this.isSurfaceOpen=!1,t||this.maybeRestoreFocus(),this.adapter.removeClass(i.cssClasses.OPEN),this.adapter.removeClass(i.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(i.cssClasses.ANIMATING_CLOSED),requestAnimationFrame((function(){e.adapter.removeClass(i.cssClasses.OPEN),e.adapter.removeClass(i.cssClasses.IS_OPEN_BELOW),e.closeAnimationEndTimerId=setTimeout((function(){e.closeAnimationEndTimerId=0,e.adapter.removeClass(i.cssClasses.ANIMATING_CLOSED),e.adapter.notifyClose()}),s.KT.TRANSITION_CLOSE_DURATION)})),this.isSurfaceOpen=!1,t||this.maybeRestoreFocus()}},i.prototype.handleBodyClick=function(t){var i=t.target;this.adapter.isElementInContainer(i)||this.close()},i.prototype.handleKeydown=function(t){var i=t.keyCode;("Escape"===t.key||27===i)&&this.close()},i.prototype.autoposition=function(){var t;this.measurements=this.getAutoLayoutmeasurements();var e=this.getoriginCorner(),n=this.getMenuSurfaceMaxHeight(e),o=this.hasBit(e,s.HX.BOTTOM)?"bottom":"top",r=this.hasBit(e,s.HX.RIGHT)?"right":"left",a=this.getHorizontalOriginOffset(e),h=this.getVerticalOriginOffset(e),c=this.measurements,u=c.anchorSize,d=c.surfaceSize,p=((t={})[r]=a,t[o]=h,t);u.width/d.width>s.KT.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(r="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(p),this.adapter.setTransformOrigin(r+" "+o),this.adapter.setPosition(p),this.adapter.setMaxHeight(n?n+"px":""),this.hasBit(e,s.HX.BOTTOM)||this.adapter.addClass(i.cssClasses.IS_OPEN_BELOW)},i.prototype.getAutoLayoutmeasurements=function(){var t=this.adapter.getAnchorDimensions(),i=this.adapter.getBodyDimensions(),e=this.adapter.getWindowDimensions(),n=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:e.width-t.right,bottom:e.height-t.bottom,left:t.left},viewportSize:e,windowScroll:n}},i.prototype.getoriginCorner=function(){var t,e,n=this.originCorner,o=this.measurements,r=o.viewportDistance,a=o.anchorSize,h=o.surfaceSize,c=i.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,s.HX.BOTTOM)?(t=r.top-c+this.anchorMargin.bottom,e=r.bottom-c-this.anchorMargin.bottom):(t=r.top-c+this.anchorMargin.top,e=r.bottom-c+a.height-this.anchorMargin.top),!(e-h.height>0)&&t>e+this.openBottomBias&&(n=this.setBit(n,s.HX.BOTTOM));var u,d,p=this.adapter.isRtl(),l=this.hasBit(this.anchorCorner,s.HX.FLIP_RTL),m=this.hasBit(this.anchorCorner,s.HX.RIGHT)||this.hasBit(n,s.HX.RIGHT),f=!1;(f=p&&l?!m:m)?(u=r.left+a.width+this.anchorMargin.right,d=r.right-this.anchorMargin.right):(u=r.left+this.anchorMargin.left,d=r.right+a.width-this.anchorMargin.left);var g=u-h.width>0,T=d-h.width>0,y=this.hasBit(n,s.HX.FLIP_RTL)&&this.hasBit(n,s.HX.RIGHT);return T&&y&&p||!g&&y?n=this.unsetBit(n,s.HX.RIGHT):(g&&f&&p||g&&!f&&m||!T&&u>=d)&&(n=this.setBit(n,s.HX.RIGHT)),n},i.prototype.getMenuSurfaceMaxHeight=function(t){if(this.maxHeight>0)return this.maxHeight;var e=this.measurements.viewportDistance,n=0,o=this.hasBit(t,s.HX.BOTTOM),r=this.hasBit(this.anchorCorner,s.HX.BOTTOM),a=i.numbers.MARGIN_TO_EDGE;return o?(n=e.top+this.anchorMargin.top-a,r||(n+=this.measurements.anchorSize.height)):(n=e.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-a,r&&(n-=this.measurements.anchorSize.height)),n},i.prototype.getHorizontalOriginOffset=function(t){var i=this.measurements.anchorSize,e=this.hasBit(t,s.HX.RIGHT),n=this.hasBit(this.anchorCorner,s.HX.RIGHT);if(e){var o=n?i.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?o-(this.measurements.viewportSize.width-this.measurements.bodySize.width):o}return n?i.width-this.anchorMargin.right:this.anchorMargin.left},i.prototype.getVerticalOriginOffset=function(t){var i=this.measurements.anchorSize,e=this.hasBit(t,s.HX.BOTTOM),n=this.hasBit(this.anchorCorner,s.HX.BOTTOM);return e?n?i.height-this.anchorMargin.top:-this.anchorMargin.bottom:n?i.height+this.anchorMargin.bottom:this.anchorMargin.top},i.prototype.adjustPositionForHoistedElement=function(t){var i,e,o=this.measurements,s=o.windowScroll,r=o.viewportDistance,a=o.surfaceSize,h=o.viewportSize,c=Object.keys(t);try{for(var u=(0,n.XA)(c),d=u.next();!d.done;d=u.next()){var p=d.value,l=t[p]||0;!this.isHorizontallyCenteredOnViewport||"left"!==p&&"right"!==p?(l+=r[p],this.isFixedPosition||("top"===p?l+=s.y:"bottom"===p?l-=s.y:"left"===p?l+=s.x:l-=s.x),t[p]=l):t[p]=(h.width-a.width)/2}}catch(m){i={error:m}}finally{try{d&&!d.done&&(e=u.return)&&e.call(u)}finally{if(i)throw i.error}}},i.prototype.maybeRestoreFocus=function(){var t=this,i=this.adapter.isFocused(),e=this.adapter.getOwnerDocument?this.adapter.getOwnerDocument():document,n=e.activeElement&&this.adapter.isElementInContainer(e.activeElement);(i||n)&&setTimeout((function(){t.adapter.restoreFocus()}),s.KT.TOUCH_EVENT_WAIT_MS)},i.prototype.hasBit=function(t,i){return Boolean(t&i)},i.prototype.setBit=function(t,i){return t|i},i.prototype.unsetBit=function(t,i){return t^i},i.prototype.isFinite=function(t){return"number"==typeof t&&isFinite(t)},i}(o.K);const a=r},81843:function(t,i,e){var n=e("9065"),o=e("50778"),s=(e("71695"),e("19423"),e("40251"),e("47021"),e("78580")),r=e("94280"),a=e("11911"),h=e("78611"),c=e("44491"),u=e("57243"),d=e("35359"),p=e("46799");let l,m,f=t=>t;const g={TOP_LEFT:s.Ns.TOP_LEFT,TOP_RIGHT:s.Ns.TOP_RIGHT,BOTTOM_LEFT:s.Ns.BOTTOM_LEFT,BOTTOM_RIGHT:s.Ns.BOTTOM_RIGHT,TOP_START:s.Ns.TOP_START,TOP_END:s.Ns.TOP_END,BOTTOM_START:s.Ns.BOTTOM_START,BOTTOM_END:s.Ns.BOTTOM_END};class T extends a.H{constructor(){super(...arguments),this.mdcFoundationClass=r.Z,this.absolute=!1,this.fullwidth=!1,this.fixed=!1,this.x=null,this.y=null,this.quick=!1,this.open=!1,this.stayOpenOnBodyClick=!1,this.bitwiseCorner=s.Ns.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(){return this.renderSurface()}renderSurface(){const t=this.getRootClasses(),i=this.getRootStyles();return(0,u.dy)(l||(l=f`