!function(b,h){"use strict";var K="ht",u=b[K],G="innerHTML",i="className",j=null,A="px",_=u.Default,o=_.getInternal(),W="0",O=function(){return document},w=function(R){return O().createElement(R)},J=function(){return w("canvas")},L=function(S,v,R){S.style.setProperty(v,R,j)},l=function(d,A,o){_.def(u.widget[d],A,o)},E=function(P,W){P.appendChild(W)},d=function(e,L){e.removeChild(L)},D=o.addEventListener,F=o.removeEventListener,I=_.isTouchable,z=_.isTouchEvent;o.addMethod(_,{menuLabelFont:(I?"16":"13")+"px arial, sans-serif",menuLabelColor:"#000",menuBackground:"#F0EFEE",menuHoverBackground:"#648BFE",menuHoverLabelColor:"#fff",menuSeparatorWidth:1,menuSeparatorColor:"#999"},!0),u.widget.Menu=function(V){var S=this,l=S._view=o.createView(null,S),D=S.$1g=new u.widget.ContextMenu,p=w("ul");D._r=!0,D._view[i]+=" ht-widget-dropdownmenu",l[i]="ht-widget-menu",p[i]="header",L(l,"margin",W),L(l,"padding",W),L(l,"background",_.menuBackground),L(l,"-webkit-user-select","none"),L(l,"-moz-user-select","none"),L(l,"user-select","none"),L(l,"text-align","left"),L(l,"border-bottom",_.menuSeparatorWidth+"px solid "+_.menuSeparatorColor),L(l,"cursor","default"),L(l,"overflow","auto"),L(l,"white-space","nowrap"),L(l,"font",_.menuLabelFont),L(l,"color",_.menuLabelColor),L(l,"box-sizing","border-box"),L(l,"-moz-box-sizing","border-box"),L(p,"list-style","none"),L(p,"margin",W),L(p,"padding",W),L(p,"display","inline-block"),E(l,p),S.setItems(V),S.$2g=function(W){S.$3g(W)},S.$4g=function(P){S.$5g(P)},S.$6g=function(c){S.$7g(c)},S.$8g=function(U){S.$9g(U)},S.$9b=function(B){S.$10g(B)},S._autoShow=!0,S.setAutoShow(!1),D.afterHide=function(){S.$11g()},D.afterShow=function(){S.$12g()},F(O(),"keydown",D.$3b),S.$3b=function(r){S.$13g(r)},S.invalidate()},l("Menu",h,{_items:j,$14g:_.menuHoverBackground,$15g:_.menuHoverLabelColor,$16g:{},_enableGlobalKey:!1,ms_v:1,$21g:"smallicons",$22g:0,$23g:0,$24g:"left",getDropDownMenu:function(){return this.$1g},setLayout:function(g){var r=this;if(r.$21g=g,r.setItems(r._items),"largeicons"===g){for(var u=r._view.querySelectorAll(".header-item"),l=0,N=0;N