????

Your IP : 18.216.93.197


Current Path : C:/inetpub/vhost/donthu.gdtsolutions.vn/api/wwwroot/assets/
Upload File :
Current File : C:/inetpub/vhost/donthu.gdtsolutions.vn/api/wwwroot/assets/Layout1-1lbkpKQy.js

var __defProp=Object.defineProperty;var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});var __publicField=(obj,key,value)=>(__defNormalProp(obj,typeof key!="symbol"?key+"":key,value),value);import{g as generateUtilityClass,a as generateUtilityClasses,s as styled,M as Modal,r as rootShouldForwardProp,P as Paper,c as capitalize,_ as _extends,b as reactExports,u as useThemeProps,d as useTheme,e as useRtl,f as _objectWithoutPropertiesLoose,j as jsxRuntimeExports,h as clsx,i as PropTypes,k as integerPropType,l as composeClasses,m as useSettings,n as jsxDevRuntimeExports,o as styled$1,t as topBarFooterHeight,p as useTheme$1,T as ThemeProvider,S as Span,q as Paragraph,v as themeShadows,w as Scrollbar,B as Box,I as Icon,H as H5,x as IconButton,y as Button,C as Card,z as sideNavWidth,A as topBarHeight,D as useDispatch,E as useNavigate,F as useAuth,G as getCartList,J as Box$1,K as updateCartAmount,L as H6,N as Small,O as deleteProductFromCart,Q as ChatHead,R as Chatbox,U as clsx$1,V as selectRouters,W as MatxVerticalNav,X as navigations,Y as React,Z as convertHexToRGB,$ as sidenavCompactWidth,a0 as commonjsGlobal,a1 as getDefaultExportFromCjs,a2 as _API_URL_GRPC,a3 as grpcDevTool,a4 as selectNotifications,a5 as getNotification,a6 as CHECK_NOTIFY,a7 as meta,a8 as updateNotify,a9 as CHECK_WARNING,aa as deleteNotification,ab as clearNotifications,ac as Stack,ad as getTimeDifference,ae as MenuItem,af as MatxSearchBox,ag as MatxMenu,ah as Avatar,ai as Link$1,aj as MatxSuspense,ak as Outlet}from"./index-D8rI6KyB.js";import{T as Toolbar}from"./Toolbar-B2nYmttG.js";import{A as AppBar}from"./AppBar-CNo5z_JO.js";import{B as Badge}from"./Badge-KTII1mO_.js";import{T as Tooltip}from"./Tooltip-D7fDAfmq.js";import{S as Slide}from"./Slide-BLQfYeEm.js";import{L as Link}from"./Link-BSDlcTKp.js";import{u as useSelector}from"./useSelector-tPe_xS4f.js";import{H as Hidden}from"./Hidden-BL1wi9gE.js";import{S as Switch}from"./Switch-CbjiYhf1.js";import{u as useMediaQuery}from"./useMediaQuery-IVKsqjW7.js";import"./usePreviousProps-DAxyVMcl.js";import"./Popper-eiiT0b8-.js";import"./SwitchBase-hAtwNMFo.js";function _mergeNamespaces(n2,m){for(var i=0;i<m.length;i++){const e=m[i];if(typeof e!="string"&&!Array.isArray(e)){for(const k in e)if(k!=="default"&&!(k in n2)){const d=Object.getOwnPropertyDescriptor(e,k);d&&Object.defineProperty(n2,k,d.get?d:{enumerable:!0,get:()=>e[k]})}}}return Object.freeze(Object.defineProperty(n2,Symbol.toStringTag,{value:"Module"}))}__name(_mergeNamespaces,"_mergeNamespaces");function getDrawerUtilityClass(slot){return generateUtilityClass("MuiDrawer",slot)}__name(getDrawerUtilityClass,"getDrawerUtilityClass");generateUtilityClasses("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const _excluded=["BackdropProps"],_excluded2=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],overridesResolver=__name((props,styles)=>{const{ownerState}=props;return[styles.root,(ownerState.variant==="permanent"||ownerState.variant==="persistent")&&styles.docked,styles.modal]},"overridesResolver"),useUtilityClasses=__name(ownerState=>{const{classes,anchor,variant}=ownerState,slots={root:["root"],docked:[(variant==="permanent"||variant==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${capitalize(anchor)}`,variant!=="temporary"&&`paperAnchorDocked${capitalize(anchor)}`]};return composeClasses(slots,getDrawerUtilityClass,classes)},"useUtilityClasses"),DrawerRoot=styled(Modal,{name:"MuiDrawer",slot:"Root",overridesResolver})(({theme})=>({zIndex:(theme.vars||theme).zIndex.drawer})),DrawerDockedRoot=styled("div",{shouldForwardProp:rootShouldForwardProp,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver})({flex:"0 0 auto"}),DrawerPaper=styled(Paper,{name:"MuiDrawer",slot:"Paper",overridesResolver:(props,styles)=>{const{ownerState}=props;return[styles.paper,styles[`paperAnchor${capitalize(ownerState.anchor)}`],ownerState.variant!=="temporary"&&styles[`paperAnchorDocked${capitalize(ownerState.anchor)}`]]}})(({theme,ownerState})=>_extends({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(theme.vars||theme).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},ownerState.anchor==="left"&&{left:0},ownerState.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},ownerState.anchor==="right"&&{right:0},ownerState.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},ownerState.anchor==="left"&&ownerState.variant!=="temporary"&&{borderRight:`1px solid ${(theme.vars||theme).palette.divider}`},ownerState.anchor==="top"&&ownerState.variant!=="temporary"&&{borderBottom:`1px solid ${(theme.vars||theme).palette.divider}`},ownerState.anchor==="right"&&ownerState.variant!=="temporary"&&{borderLeft:`1px solid ${(theme.vars||theme).palette.divider}`},ownerState.anchor==="bottom"&&ownerState.variant!=="temporary"&&{borderTop:`1px solid ${(theme.vars||theme).palette.divider}`})),oppositeDirection={left:"right",right:"left",top:"down",bottom:"up"};function isHorizontal(anchor){return["left","right"].indexOf(anchor)!==-1}__name(isHorizontal,"isHorizontal");function getAnchor({direction},anchor){return direction==="rtl"&&isHorizontal(anchor)?oppositeDirection[anchor]:anchor}__name(getAnchor,"getAnchor");const Drawer=reactExports.forwardRef(__name(function(inProps,ref){const props=useThemeProps({props:inProps,name:"MuiDrawer"}),theme=useTheme(),isRtl=useRtl(),defaultTransitionDuration={enter:theme.transitions.duration.enteringScreen,exit:theme.transitions.duration.leavingScreen},{anchor:anchorProp="left",BackdropProps,children,className,elevation=16,hideBackdrop=!1,ModalProps:{BackdropProps:BackdropPropsProp}={},onClose,open=!1,PaperProps={},SlideProps,TransitionComponent=Slide,transitionDuration=defaultTransitionDuration,variant="temporary"}=props,ModalProps=_objectWithoutPropertiesLoose(props.ModalProps,_excluded),other=_objectWithoutPropertiesLoose(props,_excluded2),mounted=reactExports.useRef(!1);reactExports.useEffect(()=>{mounted.current=!0},[]);const anchorInvariant=getAnchor({direction:isRtl?"rtl":"ltr"},anchorProp),ownerState=_extends({},props,{anchor:anchorProp,elevation,open,variant},other),classes=useUtilityClasses(ownerState),drawer=jsxRuntimeExports.jsx(DrawerPaper,_extends({elevation:variant==="temporary"?elevation:0,square:!0},PaperProps,{className:clsx(classes.paper,PaperProps.className),ownerState,children}));if(variant==="permanent")return jsxRuntimeExports.jsx(DrawerDockedRoot,_extends({className:clsx(classes.root,classes.docked,className),ownerState,ref},other,{children:drawer}));const slidingDrawer=jsxRuntimeExports.jsx(TransitionComponent,_extends({in:open,direction:oppositeDirection[anchorInvariant],timeout:transitionDuration,appear:mounted.current},SlideProps,{children:drawer}));return variant==="persistent"?jsxRuntimeExports.jsx(DrawerDockedRoot,_extends({className:clsx(classes.root,classes.docked,className),ownerState,ref},other,{children:slidingDrawer})):jsxRuntimeExports.jsx(DrawerRoot,_extends({BackdropProps:_extends({},BackdropProps,BackdropPropsProp,{transitionDuration}),className:clsx(classes.root,classes.modal,className),open,ownerState,onClose,hideBackdrop,ref},other,ModalProps,{children:slidingDrawer}))},"Drawer2"));Drawer.propTypes={anchor:PropTypes.oneOf(["bottom","left","right","top"]),BackdropProps:PropTypes.object,children:PropTypes.node,classes:PropTypes.object,className:PropTypes.string,elevation:integerPropType,hideBackdrop:PropTypes.bool,ModalProps:PropTypes.object,onClose:PropTypes.func,open:PropTypes.bool,PaperProps:PropTypes.object,SlideProps:PropTypes.object,sx:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func,PropTypes.object,PropTypes.bool])),PropTypes.func,PropTypes.object]),transitionDuration:PropTypes.oneOfType([PropTypes.number,PropTypes.shape({appear:PropTypes.number,enter:PropTypes.number,exit:PropTypes.number})]),variant:PropTypes.oneOf(["permanent","persistent","temporary"])};const MatxLogo=__name(({className})=>{const{settings}=useSettings(),theme=settings.themes[settings.activeTheme];return jsxDevRuntimeExports.jsxDEV("svg",{width:"24px",height:"24px",className,viewBox:"0 0 240 239",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:jsxDevRuntimeExports.jsxDEV("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:jsxDevRuntimeExports.jsxDEV("g",{id:"logo",transform:"translate(120.500000, 98.000000) rotate(-270.000000) translate(-120.500000, -98.000000) translate(-21.000000, -35.000000)",children:jsxDevRuntimeExports.jsxDEV("g",{id:"Group",transform:"translate(141.500000, 133.000000) rotate(90.000000) translate(-141.500000, -133.000000) translate(9.000000, -8.000000)",children:[jsxDevRuntimeExports.jsxDEV("g",{id:"Path-4-Copy",transform:"translate(132.242532, 149.243361) rotate(-135.000000) translate(-132.242532, -149.243361) translate(38.742532, 55.743361)",children:[jsxDevRuntimeExports.jsxDEV("g",{id:"path-1-link",fill:"#000000",children:jsxDevRuntimeExports.jsxDEV("polygon",{id:"path-1",points:"136.269985 0.8695976 186.615824 50.367072 186.615824 186.98041 50.7100649 186.98041 0.4346189 136.704964"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLogo.jsx",lineNumber:31,columnNumber:17},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLogo.jsx",lineNumber:30,columnNumber:15},void 0),jsxDevRuntimeExports.jsxDEV("g",{id:"path-1-link",fill:theme.palette.primary.light,children:jsxDevRuntimeExports.jsxDEV("polygon",{id:"path-1",points:"136.269985 0.8695976 186.615824 50.367072 186.615824 186.98041 50.7100649 186.98041 0.4346189 136.704964"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLogo.jsx",lineNumber:37,columnNumber:17},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLogo.jsx",lineNumber:36,columnNumber:15},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLogo.jsx",lineNumber:26,columnNumber:13},void 0),jsxDevRuntimeExports.jsxDEV("polygon",{id:"Path-3",fill:theme.palette.primary.light,points:"13 238.415212 13 0 249.898437 238.415212"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLogo.jsx",lineNumber:43,columnNumber:13},void 0),jsxDevRuntimeExports.jsxDEV("polygon",{id:"Path-4",fill:theme.palette.primary.main,points:"252.486992 0 252.486992 238.799226 13 238.799226"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLogo.jsx",lineNumber:48,columnNumber:13},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLogo.jsx",lineNumber:22,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLogo.jsx",lineNumber:18,columnNumber:9},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLogo.jsx",lineNumber:17,columnNumber:7},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLogo.jsx",lineNumber:8,columnNumber:5},void 0)},"MatxLogo"),AppFooter=styled$1(Toolbar)(()=>({display:"flex",alignItems:"center",minHeight:`${topBarFooterHeight} !important`,"@media (max-width: 499px)":{display:"table",width:"100%",minHeight:"auto",padding:"1rem 0","& .container":{flexDirection:"column !important","& a":{margin:"0 0 16px !important"}}}})),FooterContent=styled$1("div")(()=>({width:"100%",display:"flex",alignItems:"center",padding:"0px 1rem",maxWidth:"1170px",margin:"0 auto"})),Footer=__name(()=>{const theme=useTheme$1(),{settings}=useSettings(),footerTheme=settings.themes[settings.footer.theme]||theme;return jsxDevRuntimeExports.jsxDEV(ThemeProvider,{theme:footerTheme,children:jsxDevRuntimeExports.jsxDEV(AppBar,{color:"primary",position:"static",sx:{zIndex:96},children:jsxDevRuntimeExports.jsxDEV(AppFooter,{children:jsxDevRuntimeExports.jsxDEV(FooterContent,{children:[jsxDevRuntimeExports.jsxDEV(Span,{sx:{m:"auto"}},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/Footer.jsx",lineNumber:43,columnNumber:13},void 0),jsxDevRuntimeExports.jsxDEV(Paragraph,{sx:{m:0},children:["Thiết kế và phát triển bởi"," ",jsxDevRuntimeExports.jsxDEV("a",{href:"https://gdtsolutions.vn/",target:"_blank",rel:"noreferrer",children:"NEXTFORM"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/Footer.jsx",lineNumber:46,columnNumber:15},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/Footer.jsx",lineNumber:44,columnNumber:13},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/Footer.jsx",lineNumber:42,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/Footer.jsx",lineNumber:41,columnNumber:9},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/Footer.jsx",lineNumber:40,columnNumber:7},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/Footer.jsx",lineNumber:39,columnNumber:5},void 0)},"Footer"),SidenavTheme=__name(({children})=>{const theme=useTheme(),{settings}=useSettings(),sidenavTheme=settings.themes[settings.layout1Settings.leftSidebar.theme]||theme;return jsxDevRuntimeExports.jsxDEV(ThemeProvider,{theme:sidenavTheme,children},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxTheme/SidenavTheme/SidenavTheme.jsx",lineNumber:9,columnNumber:10},void 0)},"SidenavTheme"),SecondarySidenavTheme=__name(({theme,classes,children,open})=>jsxDevRuntimeExports.jsxDEV(ThemeProvider,{theme,children},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxTheme/SecondarySidenavTheme/SecondarySidenavTheme.jsx",lineNumber:4,columnNumber:10},void 0),"SecondarySidenavTheme"),BadgeSelected=styled(Badge)(()=>({top:"0",right:"0",height:"32px",width:"32px",borderRadius:"50%"})),Label=styled(Span)(({theme})=>({fontWeight:700,fontSize:"1rem",cursor:"pointer",borderRadius:"4px",marginBottom:"2.5rem",letterSpacing:"1.5px",padding:".25rem .5rem",transform:"rotate(90deg)",color:theme.palette.secondary.main,backgroundColor:theme.palette.primary.dark,"&:hover, &.open":{backgroundColor:theme.palette.secondary.main,color:theme.palette.secondary.contrastText}})),MaxCustomaizer=styled("div")(({theme})=>({top:0,right:0,zIndex:50,width:320,display:"flex",height:"100vh",position:"fixed",paddingBottom:"32px",flexDirection:"column",boxShadow:themeShadows[12],background:theme.palette.background.default,"& .helpText":{margin:"0px .5rem 1rem"}})),LayoutBox=styled(BadgeSelected)(()=>({width:"100%",height:"152px !important",cursor:"pointer",marginTop:"12px",marginBottom:"12px","& .layout-name":{display:"none"},"&:hover .layout-name":{zIndex:12,width:"100%",height:"100%",display:"flex",alignItems:"center",position:"absolute",justifyContent:"center",background:"rgba(0,0,0,0.3)"}})),Controller=styled("div")(()=>({minHeight:58,display:"flex",alignItems:"center",marginBottom:"16px",padding:"14px 20px",boxShadow:themeShadows[6],justifyContent:"space-between"})),IMG$1=styled("img")(()=>({width:"100%"})),StyledScrollBar$2=styled(Scrollbar)(()=>({paddingLeft:"16px",paddingRight:"16px"})),MatxCustomizer=__name(()=>{const theme=useTheme(),[open,setOpen]=reactExports.useState(!1),[tabIndex,setTabIndex]=reactExports.useState(0),{settings,updateSettings}=useSettings(),secondary=theme.palette.text.secondary,tooglePanel=__name(()=>setOpen(!open),"tooglePanel"),handleTabChange=__name(index=>setTabIndex(index),"handleTabChange");let activeTheme={...settings.themes[settings.activeTheme]};return jsxDevRuntimeExports.jsxDEV(reactExports.Fragment,{children:[jsxDevRuntimeExports.jsxDEV(Tooltip,{title:"Theme Settings",placement:"left",children:jsxDevRuntimeExports.jsxDEV(Label,{className:"open",onClick:tooglePanel,children:"DEMOS"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:105,columnNumber:9},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:104,columnNumber:7},void 0),jsxDevRuntimeExports.jsxDEV(ThemeProvider,{theme:activeTheme,children:jsxDevRuntimeExports.jsxDEV(Drawer,{open,anchor:"right",variant:"temporary",onClose:tooglePanel,ModalProps:{keepMounted:!0},children:jsxDevRuntimeExports.jsxDEV(MaxCustomaizer,{children:[jsxDevRuntimeExports.jsxDEV(Controller,{children:[jsxDevRuntimeExports.jsxDEV(Box,{display:"flex",children:[jsxDevRuntimeExports.jsxDEV(Icon,{className:"icon",color:"primary",children:"settings"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:115,columnNumber:17},void 0),jsxDevRuntimeExports.jsxDEV(H5,{sx:{ml:1,fontSize:"1rem"},children:"Theme Settings"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:118,columnNumber:17},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:114,columnNumber:15},void 0),jsxDevRuntimeExports.jsxDEV(IconButton,{onClick:tooglePanel,children:jsxDevRuntimeExports.jsxDEV(Icon,{className:"icon",children:"close"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:122,columnNumber:17},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:121,columnNumber:15},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:113,columnNumber:13},void 0),jsxDevRuntimeExports.jsxDEV(Box,{px:3,mb:2,display:"flex",children:[jsxDevRuntimeExports.jsxDEV(Button,{variant:"outlined",onClick:()=>handleTabChange(0),color:tabIndex===0?"secondary":"primary",sx:{mr:2},children:"Demos"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:127,columnNumber:15},void 0),jsxDevRuntimeExports.jsxDEV(Button,{variant:"outlined",onClick:()=>handleTabChange(1),color:tabIndex===1?"secondary":"primary",children:"Settings"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:135,columnNumber:15},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:126,columnNumber:13},void 0),jsxDevRuntimeExports.jsxDEV(StyledScrollBar$2,{options:{suppressScrollX:!0},children:[tabIndex===0&&jsxDevRuntimeExports.jsxDEV(Box,{sx:{mb:4,mx:3},children:[jsxDevRuntimeExports.jsxDEV(Box,{sx:{color:secondary},children:"Layouts"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:147,columnNumber:19},void 0),jsxDevRuntimeExports.jsxDEV(Box,{display:"flex",flexDirection:"column",children:demoLayouts.map(layout=>jsxDevRuntimeExports.jsxDEV(LayoutBox,{color:"secondary",badgeContent:"Pro",invisible:!layout.isPro,children:jsxDevRuntimeExports.jsxDEV(Card,{elevation:4,sx:{position:"relative"},onClick:()=>updateSettings(layout.options),children:[jsxDevRuntimeExports.jsxDEV(Box,{sx:{overflow:"hidden"},className:"layout-name",children:jsxDevRuntimeExports.jsxDEV(Button,{variant:"contained",color:"secondary",children:layout.name},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:158,columnNumber:29},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:157,columnNumber:27},void 0),jsxDevRuntimeExports.jsxDEV(IMG$1,{src:layout.thumbnail,alt:layout.name},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:163,columnNumber:27},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:152,columnNumber:25},void 0)},layout.name,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:151,columnNumber:23},void 0))},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:149,columnNumber:19},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:146,columnNumber:17},void 0),tabIndex===1&&jsxDevRuntimeExports.jsxDEV("div",{children:jsxDevRuntimeExports.jsxDEV("div",{className:"helpText",children:["We used React context API to control layout. Check out the"," ",jsxDevRuntimeExports.jsxDEV(Link,{href:"http://demos.ui-lib.com/matx-react-doc/layout.html",target:"_blank",children:"Documentation"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:176,columnNumber:21},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:174,columnNumber:19},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:173,columnNumber:17},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:144,columnNumber:13},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:112,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:111,columnNumber:9},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:110,columnNumber:7},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxCustomizer/MatxCustomizer.jsx",lineNumber:103,columnNumber:5},void 0)},"MatxCustomizer"),demoLayouts=[{isPro:!1,name:"Light Sidebar",thumbnail:"/assets/images/screenshots/layout1-customizer.png",options:{activeTheme:"blue",activeLayout:"layout1",layout1Settings:{topbar:{theme:"blueDark",fixed:!0},leftSidebar:{mode:"full",theme:"whiteBlue",bgOpacity:.98}},footer:{theme:"slateDark1"}}},{isPro:!1,name:"Compact Sidebar",thumbnail:"/assets/images/screenshots/layout5-customizer.png",options:{activeTheme:"blue",activeLayout:"layout1",layout1Settings:{topbar:{theme:"whiteBlue",fixed:!0},leftSidebar:{mode:"compact",theme:"slateDark1",bgOpacity:.92}}}},{isPro:!1,name:"Dark Sidebar",thumbnail:"/assets/images/screenshots/layout1-blue-customizer.png",options:{activeTheme:"blue",activeLayout:"layout1",layout1Settings:{topbar:{theme:"blueDark",fixed:!0},leftSidebar:{mode:"full",theme:"slateDark1",bgOpacity:.92}}}}],StyledIconButton$1=styled$1(IconButton)(({theme})=>({"& span":{color:theme.palette.text.primary},"& #disable":{color:theme.palette.text.disabled}})),MiniCart=styled$1("div")(({theme})=>({height:"100%",display:"flex",flexDirection:"column",width:sideNavWidth})),CartBox=styled$1("div")(()=>({padding:"4px",paddingLeft:"16px",display:"flex",alignItems:"center",boxShadow:themeShadows[6],height:topBarHeight,"& h5":{marginTop:0,marginBottom:0,marginLeft:"16px",fontWeight:"500"}})),ProductBox=styled$1("div")(()=>({display:"flex",alignItems:"center",padding:"8px 8px",transition:"background 300ms ease","&:hover":{background:"rgba(0,0,0,0.01)"}})),IMG=styled$1("img")(()=>({width:48})),ProductDetails=styled$1("div")(()=>({marginRight:"8",textAlign:"center",flexGrow:1,display:"flex",flexDirection:"column","& h6":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",width:120,marginBottom:"4px"}}));let cartListLoaded=!1;function ShoppingCart({container}){const[totalCost,setTotalCost]=reactExports.useState(0),[panelOpen,setPanelOpen]=reactExports.useState(!1),dispatch=useDispatch(),navigate=useNavigate(),{user}=useAuth(),{cartList}=useSelector(state=>state.ecommerce),{settings}=useSettings(),secondary=useTheme$1().palette.text.secondary;cartListLoaded||(user&&dispatch(getCartList(user.id)),cartListLoaded=!0);const handleDrawerToggle=__name(()=>{setPanelOpen(!panelOpen)},"handleDrawerToggle"),handleCheckoutClick=__name(()=>{totalCost>0&&(navigate("/ecommerce/checkout"),setPanelOpen(!1))},"handleCheckoutClick");reactExports.useEffect(()=>{let total=0;cartList.forEach(product=>{total+=product.price*product.amount}),setTotalCost(total)},[cartList]);const{palette}=useTheme$1();return palette.text.primary,jsxDevRuntimeExports.jsxDEV(reactExports.Fragment,{children:jsxDevRuntimeExports.jsxDEV(ThemeProvider,{theme:settings.themes[settings.activeTheme],children:jsxDevRuntimeExports.jsxDEV(Drawer,{container,variant:"temporary",anchor:"right",open:panelOpen,onClose:handleDrawerToggle,ModalProps:{keepMounted:!0},children:jsxDevRuntimeExports.jsxDEV(MiniCart,{children:[jsxDevRuntimeExports.jsxDEV(CartBox,{children:[jsxDevRuntimeExports.jsxDEV(Icon,{color:"primary",children:"shopping_cart"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:136,columnNumber:15},this),jsxDevRuntimeExports.jsxDEV("h5",{children:"Cart"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:137,columnNumber:15},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:135,columnNumber:13},this),jsxDevRuntimeExports.jsxDEV(Box$1,{flexGrow:1,overflow:"auto",children:cartList.map(product=>jsxDevRuntimeExports.jsxDEV(ProductBox,{children:[jsxDevRuntimeExports.jsxDEV(Box$1,{mr:"4px",display:"flex",flexDirection:"column",children:[jsxDevRuntimeExports.jsxDEV(StyledIconButton$1,{size:"small",onClick:()=>dispatch(updateCartAmount(user.id,product.id,product.amount+1)),children:jsxDevRuntimeExports.jsxDEV(Icon,{sx:{cursor:"pinter"},children:"keyboard_arrow_up"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:148,columnNumber:23},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:144,columnNumber:21},this),jsxDevRuntimeExports.jsxDEV(StyledIconButton$1,{disabled:!(product.amount-1),size:"small",onClick:()=>dispatch(updateCartAmount(user.id,product.id,product.amount-1)),children:jsxDevRuntimeExports.jsxDEV(Icon,{id:!(product.amount-1)&&"disable",children:"keyboard_arrow_down"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:155,columnNumber:23},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:150,columnNumber:21},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:143,columnNumber:19},this),jsxDevRuntimeExports.jsxDEV(Box$1,{mr:1,children:jsxDevRuntimeExports.jsxDEV(IMG,{src:product.imgUrl,alt:product.title},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:159,columnNumber:21},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:158,columnNumber:19},this),jsxDevRuntimeExports.jsxDEV(ProductDetails,{children:[jsxDevRuntimeExports.jsxDEV(H6,{children:product.title},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:162,columnNumber:21},this),jsxDevRuntimeExports.jsxDEV(Small,{sx:{color:secondary},children:["$",product.price," x ",product.amount]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:163,columnNumber:21},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:161,columnNumber:19},this),jsxDevRuntimeExports.jsxDEV(StyledIconButton$1,{size:"small",onClick:()=>dispatch(deleteProductFromCart(user.userId,product.id)),children:jsxDevRuntimeExports.jsxDEV(Icon,{fontSize:"small",children:"clear"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:171,columnNumber:21},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:167,columnNumber:19},this)]},product.id,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:142,columnNumber:17},this))},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:140,columnNumber:13},this),jsxDevRuntimeExports.jsxDEV(Button,{sx:{width:"100%",borderRadius:0},variant:"contained",color:"primary",onClick:handleCheckoutClick,children:["Checkout ($",totalCost.toFixed(2),")"]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:177,columnNumber:13},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:134,columnNumber:11},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:124,columnNumber:9},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:123,columnNumber:7},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/ShoppingCart.jsx",lineNumber:116,columnNumber:5},this)}__name(ShoppingCart,"ShoppingCart");const SidebarRoot=styled$1("div")(({theme,width})=>({position:"fixed",height:"100vh",width,right:0,bottom:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",boxShadow:theme.shadows[8],backgroundColor:theme.palette.primary.main,zIndex:98,transition:"all 0.15s ease",color:theme.palette.text.primary,"@global":{"@media screen and (min-width: 767px)":{".content-wrap, .layout2.layout-contained, .layout2.layout-full":{marginRight:props=>props.width},".matx-customizer":{right:props=>props.width}},"@media screen and (max-width: 959px)":{".toolbar-menu-wrap .menu-area":{width:props=>`calc(100% - ${props.width})`}}}})),SecondarySidebarContent=__name(()=>{const{palette}=useTheme$1(),textColor=palette.primary.contrastText;return jsxDevRuntimeExports.jsxDEV(SidebarRoot,{width:"50px",className:"secondary-sidebar",children:[jsxDevRuntimeExports.jsxDEV(Span,{sx:{m:"auto"}},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/SecondarySidebar/SecondarySidebarContent.jsx",lineNumber:45,columnNumber:7},void 0),jsxDevRuntimeExports.jsxDEV(MatxCustomizer,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/SecondarySidebar/SecondarySidebarContent.jsx",lineNumber:46,columnNumber:7},void 0),jsxDevRuntimeExports.jsxDEV(ShoppingCart,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/SecondarySidebar/SecondarySidebarContent.jsx",lineNumber:47,columnNumber:7},void 0),jsxDevRuntimeExports.jsxDEV(ChatHead,{icon:jsxDevRuntimeExports.jsxDEV(IconButton,{sx:{my:"12px",color:textColor},size:"small",children:jsxDevRuntimeExports.jsxDEV(Icon,{children:"comments"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/SecondarySidebar/SecondarySidebarContent.jsx",lineNumber:52,columnNumber:13},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/SecondarySidebar/SecondarySidebarContent.jsx",lineNumber:51,columnNumber:11},void 0),children:jsxDevRuntimeExports.jsxDEV(Chatbox,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/SecondarySidebar/SecondarySidebarContent.jsx",lineNumber:56,columnNumber:9},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/SecondarySidebar/SecondarySidebarContent.jsx",lineNumber:49,columnNumber:7},void 0),jsxDevRuntimeExports.jsxDEV(Span,{sx:{m:"auto"}},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/SecondarySidebar/SecondarySidebarContent.jsx",lineNumber:58,columnNumber:7},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/SecondarySidebar/SecondarySidebarContent.jsx",lineNumber:44,columnNumber:5},void 0)},"SecondarySidebarContent"),Toggle=styled$1("div")(()=>({position:"fixed",right:"30px",bottom:"50px",zIndex:99,transition:"all 0.15s ease","&.open":{right:"10px"}})),SecondarySidebarToggle=__name(()=>{const{settings,updateSettings}=useSettings(),toggle=__name(()=>{updateSettings({secondarySidebar:{open:!settings.secondarySidebar.open}})},"toggle"),{palette}=useTheme$1(),textColor=palette.primary.contrastText;return jsxDevRuntimeExports.jsxDEV(Toggle,{className:clsx$1({open:settings.secondarySidebar.open}),children:[settings.secondarySidebar.open&&jsxDevRuntimeExports.jsxDEV(IconButton,{onClick:toggle,size:"small","aria-label":"toggle",children:jsxDevRuntimeExports.jsxDEV(Icon,{sx:{color:textColor},children:"close"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/SecondarySidebar/SecondarySidebarToggle.jsx",lineNumber:33,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/SecondarySidebar/SecondarySidebarToggle.jsx",lineNumber:32,columnNumber:9},void 0),!settings.secondarySidebar.open&&jsxDevRuntimeExports.jsxDEV(jsxDevRuntimeExports.Fragment,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/SecondarySidebar/SecondarySidebarToggle.jsx",lineNumber:38,columnNumber:9},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/SecondarySidebar/SecondarySidebarToggle.jsx",lineNumber:30,columnNumber:5},void 0)},"SecondarySidebarToggle"),SecondarySidebar=__name(()=>{const{settings}=useSettings(),secondarySidebarTheme=settings.themes[settings.secondarySidebar.theme];return jsxDevRuntimeExports.jsxDEV(SecondarySidenavTheme,{theme:secondarySidebarTheme,children:[settings.secondarySidebar.open&&jsxDevRuntimeExports.jsxDEV(SecondarySidebarContent,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/SecondarySidebar/SecondarySidebar.jsx",lineNumber:12,columnNumber:42},void 0),jsxDevRuntimeExports.jsxDEV(SecondarySidebarToggle,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/SecondarySidebar/SecondarySidebar.jsx",lineNumber:13,columnNumber:7},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/SecondarySidebar/SecondarySidebar.jsx",lineNumber:11,columnNumber:5},void 0)},"SecondarySidebar"),BrandRoot=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 18px 20px 29px"})),StyledSpan=styled(Span)(({mode})=>({fontSize:18,marginLeft:".5rem",display:mode==="compact"?"none":"block"})),Brand=__name(({children})=>{const{settings}=useSettings(),leftSidebar=settings.layout1Settings.leftSidebar,{mode}=leftSidebar;return jsxDevRuntimeExports.jsxDEV(BrandRoot,{children:[jsxDevRuntimeExports.jsxDEV(Box,{display:"flex",alignItems:"center",children:[jsxDevRuntimeExports.jsxDEV(MatxLogo,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/Brand.jsx",lineNumber:27,columnNumber:9},void 0),jsxDevRuntimeExports.jsxDEV(StyledSpan,{mode,className:"sidenavHoverShow",children:"Quản trị"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/Brand.jsx",lineNumber:28,columnNumber:9},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/Brand.jsx",lineNumber:26,columnNumber:7},void 0),jsxDevRuntimeExports.jsxDEV(Box,{className:"sidenavHoverShow",sx:{display:mode==="compact"?"none":"block"},children:children||null},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/Brand.jsx",lineNumber:33,columnNumber:7},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/Brand.jsx",lineNumber:25,columnNumber:5},void 0)},"Brand"),StyledScrollBar$1=styled$1(Scrollbar)(()=>({paddingLeft:"1rem",paddingRight:"1rem",position:"relative"})),getAllListTree=__name((roots,list)=>roots.map(root=>{let children=list.filter(node=>root.id===node.idParent);return children.length>0&&(children=getAllListTree(children,list)),children.length>0?{...root,children}:root}),"getAllListTree"),generalRouter=__name(list=>{const arr=Array.isArray(list)?[...list].sort((a2,b)=>a2.ordinal-b.ordinal):[];return arr?getAllListTree(arr.filter(node=>!node.idParent),arr):[]},"generalRouter"),SideNavMobile=styled$1("div")(({theme})=>({position:"fixed",top:0,left:0,bottom:0,right:0,width:"100vw",background:"rgba(0, 0, 0, 0.54)",zIndex:-1,[theme.breakpoints.up("lg")]:{display:"none"}})),Sidenav=__name(({children})=>{const{settings,updateSettings}=useSettings(),router=useSelector(selectRouters),updateSidebarMode=__name(sidebarSettings=>{let activeLayoutSettingsName=settings.activeLayout+"Settings",activeLayoutSettings=settings[activeLayoutSettingsName];updateSettings({...settings,[activeLayoutSettingsName]:{...activeLayoutSettings,leftSidebar:{...activeLayoutSettings.leftSidebar,...sidebarSettings}}})},"updateSidebarMode");return jsxDevRuntimeExports.jsxDEV(reactExports.Fragment,{children:[jsxDevRuntimeExports.jsxDEV(StyledScrollBar$1,{options:{suppressScrollX:!0},children:[children,jsxDevRuntimeExports.jsxDEV(MatxVerticalNav,{items:[...navigations,...generalRouter(router)]},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/Sidenav.tsx",lineNumber:72,columnNumber:9},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/Sidenav.tsx",lineNumber:70,columnNumber:7},void 0),jsxDevRuntimeExports.jsxDEV(SideNavMobile,{onClick:()=>updateSidebarMode({mode:"close"})},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/Sidenav.tsx",lineNumber:75,columnNumber:7},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/Sidenav.tsx",lineNumber:69,columnNumber:5},void 0)},"Sidenav"),SidebarNavRoot=styled$1(Box$1)(({theme,width,primaryBg,bgImgURL})=>({position:"fixed",top:0,left:0,height:"100vh",width,boxShadow:themeShadows[8],backgroundRepeat:"no-repeat",backgroundPosition:"top",backgroundSize:"cover",zIndex:111,overflow:"hidden",color:theme.palette.text.primary,transition:"all 250ms ease-in-out",backgroundImage:`linear-gradient(to bottom, rgba(${primaryBg}, 0.96), rgba(${primaryBg}, 0.96)), url(${bgImgURL})`,"&:hover":{width:sideNavWidth,"& .sidenavHoverShow":{display:"block"},"& .compactNavItem":{width:"100%",maxWidth:"100%","& .nav-bullet":{display:"block"},"& .nav-bullet-text":{display:"none"}}}})),NavListBox=styled$1(Box$1)(()=>({height:"100%",display:"flex",flexDirection:"column"})),Layout1Sidenav=__name(()=>{const theme=useTheme$1(),{settings,updateSettings}=useSettings(),leftSidebar=settings.layout1Settings.leftSidebar,{mode,bgImgURL}=leftSidebar,getSidenavWidth=__name(()=>{switch(mode){case"compact":return sidenavCompactWidth;default:return sideNavWidth}},"getSidenavWidth"),primaryRGB=convertHexToRGB(theme.palette.primary.main),updateSidebarMode=__name(sidebarSettings=>{updateSettings({layout1Settings:{leftSidebar:{...sidebarSettings}}})},"updateSidebarMode"),handleSidenavToggle=__name(()=>{updateSidebarMode({mode:mode==="compact"?"full":"compact"})},"handleSidenavToggle");return jsxDevRuntimeExports.jsxDEV(SidebarNavRoot,{bgImgURL,primaryBg:primaryRGB,width:getSidenavWidth(),children:jsxDevRuntimeExports.jsxDEV(NavListBox,{children:[jsxDevRuntimeExports.jsxDEV(Brand,{children:jsxDevRuntimeExports.jsxDEV(Hidden,{smDown:!0,children:jsxDevRuntimeExports.jsxDEV(Switch,{onChange:handleSidenavToggle,checked:leftSidebar.mode!=="full",color:"secondary",size:"small"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Sidenav.jsx",lineNumber:85,columnNumber:13},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Sidenav.jsx",lineNumber:84,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Sidenav.jsx",lineNumber:83,columnNumber:9},void 0),jsxDevRuntimeExports.jsxDEV(Sidenav,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Sidenav.jsx",lineNumber:93,columnNumber:9},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Sidenav.jsx",lineNumber:82,columnNumber:7},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Sidenav.jsx",lineNumber:81,columnNumber:5},void 0)},"Layout1Sidenav"),Layout1Sidenav$1=React.memo(Layout1Sidenav);var googleProtobuf$1={};(function(exports){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(a2,b,c){a2 instanceof String&&(a2=String(a2));for(var d=a2.length,e=0;e<d;e++){var f=a2[e];if(b.call(c,f,e,a2))return{i:e,v:f}}return{i:-1,v:void 0}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(a2,b,c){a2!=Array.prototype&&a2!=Object.prototype&&(a2[b]=c.value)},$jscomp.getGlobal=function(a2){return typeof window<"u"&&window===a2?a2:typeof commonjsGlobal<"u"&&commonjsGlobal!=null?commonjsGlobal:a2},$jscomp.global=$jscomp.getGlobal(commonjsGlobal),$jscomp.polyfill=function(a2,b,c,d){if(b){for(c=$jscomp.global,a2=a2.split("."),d=0;d<a2.length-1;d++){var e=a2[d];e in c||(c[e]={}),c=c[e]}a2=a2[a2.length-1],d=c[a2],b=b(d),b!=d&&b!=null&&$jscomp.defineProperty(c,a2,{configurable:!0,writable:!0,value:b})}},$jscomp.polyfill("Array.prototype.findIndex",function(a2){return a2||function(a3,c){return $jscomp.findInternal(this,a3,c).i}},"es6","es3"),$jscomp.checkStringArgs=function(a2,b,c){if(a2==null)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a2+""},$jscomp.polyfill("String.prototype.endsWith",function(a2){return a2||function(a3,c){var b=$jscomp.checkStringArgs(this,a3,"endsWith");a3+="",c===void 0&&(c=b.length),c=Math.max(0,Math.min(c|0,b.length));for(var e=a3.length;0<e&&0<c;)if(b[--c]!=a3[--e])return!1;return 0>=e}},"es6","es3"),$jscomp.polyfill("Array.prototype.find",function(a2){return a2||function(a3,c){return $jscomp.findInternal(this,a3,c).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(a2){return a2||function(a3,c){var b=$jscomp.checkStringArgs(this,a3,"startsWith");a3+="";var e=b.length,f=a3.length;c=Math.max(0,Math.min(c|0,b.length));for(var g=0;g<f&&c<e;)if(b[c++]!=a3[g++])return!1;return g>=f}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(a2){return a2||function(a3){var b=$jscomp.checkStringArgs(this,null,"repeat");if(0>a3||1342177279<a3)throw new RangeError("Invalid count value");a3|=0;for(var d="";a3;)a3&1&&(d+=b),(a3>>>=1)&&(b+=b);return d}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=commonjsGlobal||self,goog.exportPath_=function(a2,b,c){a2=a2.split("."),c=c||goog.global,a2[0]in c||typeof c.execScript>"u"||c.execScript("var "+a2[0]);for(var d;a2.length&&(d=a2.shift());)a2.length||b===void 0?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=b},goog.define=function(a2,b){return b},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.STRICT_MODE_COMPATIBLE=!1,goog.DISALLOW_TEST_ONLY_CODE=!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(a2){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");goog.constructNamespace_(a2)},goog.constructNamespace_=function(a2,b){goog.exportPath_(a2,b)},goog.getScriptNonce=function(a2){return a2&&a2!=goog.global?goog.getScriptNonce_(a2.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(a2){return(a2=a2.querySelector&&a2.querySelector("script[nonce]"))&&(a2=a2.nonce||a2.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(a2)?a2:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(a2){if(typeof a2!="string"||!a2||a2.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+a2+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");goog.moduleLoaderState_.moduleName=a2},goog.module.get=function(a2){return goog.module.getInternal_(a2)},goog.module.getInternal_=function(a2){return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var a2=goog.global.$jscomp;return a2?typeof a2.getCurrentModulePath!="function"?!1:!!a2.getCurrentModulePath():!1},goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(a2){if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=a2;else{var b=goog.global.$jscomp;if(!b||typeof b.getCurrentModulePath!="function")throw Error('Module with namespace "'+a2+'" has been loaded incorrectly.');b=b.require(b.getCurrentModulePath()),goog.loadedModules_[a2]={exports:b,type:goog.ModuleType.ES6,moduleId:a2}}},goog.setTestOnly=function(a2){if(goog.DISALLOW_TEST_ONLY_CODE)throw a2=a2||"",Error("Importing test-only code into non-debug environment"+(a2?": "+a2:"."))},goog.forwardDeclare=function(a2){},goog.getObjectByName=function(a2,b){a2=a2.split("."),b=b||goog.global;for(var c=0;c<a2.length;c++)if(b=b[a2[c]],b==null)return null;return b},goog.globalize=function(a2,b){b=b||goog.global;for(var c in a2)b[c]=a2[c]},goog.addDependency=function(a2,b,c,d){},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(a2){goog.global.console&&goog.global.console.error(a2)},goog.require=function(a2){},goog.requireType=function(a2){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(a2){a2.instance_=void 0,a2.getInstance=function(){return a2.instance_?a2.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=a2),a2.instance_=new a2)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE="",goog.TRANSPILER="transpile.js",goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(goog.hasBadLetScoping==null){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(b){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(a2){return"(function(){"+a2+`
;})();
`},goog.loadModule=function(a2){var b=goog.moduleLoaderState_;try{if(goog.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:goog.ModuleType.GOOG},goog.isFunction(a2))var c=a2.call(void 0,{});else if(typeof a2=="string")goog.useSafari10Workaround()&&(a2=goog.workaroundSafari10EvalBug(a2)),c=goog.loadModuleFromSource_.call(void 0,a2);else throw Error("Invalid module definition");var d=goog.moduleLoaderState_.moduleName;if(typeof d=="string"&&d)goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(d,c):goog.SEAL_MODULE_EXPORTS&&Object.seal&&typeof c=="object"&&c!=null&&Object.seal(c),goog.loadedModules_[d]={exports:c,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName};else throw Error('Invalid module name "'+d+'"')}finally{goog.moduleLoaderState_=b}},goog.loadModuleFromSource_=function(a){return eval(a),{}},goog.normalizePath_=function(a2){a2=a2.split("/");for(var b=0;b<a2.length;)a2[b]=="."?a2.splice(b,1):b&&a2[b]==".."&&a2[b-1]&&a2[b-1]!=".."?a2.splice(--b,2):b++;return a2.join("/")},goog.loadFileSync_=function(a2){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(a2);try{var b=new goog.global.XMLHttpRequest;return b.open("get",a2,!1),b.send(),b.status==0||b.status==200?b.responseText:null}catch{return null}},goog.transpile_=function(a2,b,c){var d=goog.global.$jscomp;d||(goog.global.$jscomp=d={});var e=d.transpile;if(!e){var f=goog.basePath+goog.TRANSPILER,g=goog.loadFileSync_(f);if(g){if((function(){(0,eval)(g+`
//# sourceURL=`+f)}).call(goog.global),goog.global.$gwtExport&&goog.global.$gwtExport.$jscomp&&!goog.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(goog.global.$gwtExport));goog.global.$jscomp.transpile=goog.global.$gwtExport.$jscomp.transpile,d=goog.global.$jscomp,e=d.transpile}}return e||(e=d.transpile=function(a3,b2){return goog.logToConsole_(b2+" requires transpilation but no transpiler was found."),a3}),e(a2,b,c)},goog.typeOf=function(a2){var b=typeof a2;if(b=="object")if(a2){if(a2 instanceof Array)return"array";if(a2 instanceof Object)return b;var c=Object.prototype.toString.call(a2);if(c=="[object Window]")return"object";if(c=="[object Array]"||typeof a2.length=="number"&&typeof a2.splice<"u"&&typeof a2.propertyIsEnumerable<"u"&&!a2.propertyIsEnumerable("splice"))return"array";if(c=="[object Function]"||typeof a2.call<"u"&&typeof a2.propertyIsEnumerable<"u"&&!a2.propertyIsEnumerable("call"))return"function"}else return"null";else if(b=="function"&&typeof a2.call>"u")return"object";return b},goog.isArray=function(a2){return goog.typeOf(a2)=="array"},goog.isArrayLike=function(a2){var b=goog.typeOf(a2);return b=="array"||b=="object"&&typeof a2.length=="number"},goog.isDateLike=function(a2){return goog.isObject(a2)&&typeof a2.getFullYear=="function"},goog.isFunction=function(a2){return goog.typeOf(a2)=="function"},goog.isObject=function(a2){var b=typeof a2;return b=="object"&&a2!=null||b=="function"},goog.getUid=function(a2){return Object.prototype.hasOwnProperty.call(a2,goog.UID_PROPERTY_)&&a2[goog.UID_PROPERTY_]||(a2[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(a2){return!!a2[goog.UID_PROPERTY_]},goog.removeUid=function(a2){a2!==null&&"removeAttribute"in a2&&a2.removeAttribute(goog.UID_PROPERTY_);try{delete a2[goog.UID_PROPERTY_]}catch{}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(a2){var b=goog.typeOf(a2);if(b=="object"||b=="array"){if(typeof a2.clone=="function")return a2.clone();b=b=="array"?[]:{};for(var c in a2)b[c]=goog.cloneObject(a2[c]);return b}return a2},goog.bindNative_=function(a2,b,c){return a2.call.apply(a2.bind,arguments)},goog.bindJs_=function(a2,b,c){if(!a2)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c2=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(c2,d),a2.apply(b,c2)}}return function(){return a2.apply(b,arguments)}},goog.bind=function(a2,b,c){return Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(a2,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b2=c.slice();return b2.push.apply(b2,arguments),a2.apply(this,b2)}},goog.mixin=function(a2,b){for(var c in b)a2[c]=b[c]},goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date},goog.globalEval=function(a2){if(goog.global.execScript)goog.global.execScript(a2,"JavaScript");else if(goog.global.eval){if(goog.evalWorksForGlobals_==null){try{goog.global.eval("var _evalTest_ = 1;")}catch{}if(typeof goog.global._evalTest_<"u"){try{delete goog.global._evalTest_}catch{}goog.evalWorksForGlobals_=!0}else goog.evalWorksForGlobals_=!1}if(goog.evalWorksForGlobals_)goog.global.eval(a2);else{var b=goog.global.document,c=b.createElement("script");c.type="text/javascript",c.defer=!1,c.appendChild(b.createTextNode(a2)),b.head.appendChild(c),b.head.removeChild(c)}}else throw Error("goog.globalEval not available")},goog.evalWorksForGlobals_=null,goog.getCssName=function(a2,b){if(String(a2).charAt(0)==".")throw Error('className passed in goog.getCssName must not start with ".". You passed: '+a2);var c=__name(function(a3){return goog.cssNameMapping_[a3]||a3},"c"),d=__name(function(a3){a3=a3.split("-");for(var b2=[],d2=0;d2<a3.length;d2++)b2.push(c(a3[d2]));return b2.join("-")},"d");return d=goog.cssNameMapping_?goog.cssNameMappingStyle_=="BY_WHOLE"?c:d:function(a3){return a3},a2=b?a2+"-"+d(b):d(a2),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(a2):a2},goog.setCssNameMapping=function(a2,b){goog.cssNameMapping_=a2,goog.cssNameMappingStyle_=b},goog.getMsg=function(a2,b,c){return c&&c.html&&(a2=a2.replace(/</g,"&lt;")),b&&(a2=a2.replace(/\{\$([^}]+)}/g,function(a3,c2){return b!=null&&c2 in b?b[c2]:a3})),a2},goog.getMsgWithFallback=function(a2,b){return a2},goog.exportSymbol=function(a2,b,c){goog.exportPath_(a2,b,c)},goog.exportProperty=function(a2,b,c){a2[b]=c},goog.inherits=function(a2,b){function c(){}__name(c,"c"),c.prototype=b.prototype,a2.superClass_=b.prototype,a2.prototype=new c,a2.prototype.constructor=a2,a2.base=function(a3,c2,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c2].apply(a3,d)}},goog.scope=function(a2){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");a2.call(goog.global)},goog.defineClass=function(a2,b){var c=b.constructor,d=b.statics;return c&&c!=Object.prototype.constructor||(c=__name(function(){throw Error("cannot instantiate an interface (no constructor defined).")},"c")),c=goog.defineClass.createSealingConstructor_(c,a2),a2&&goog.inherits(c,a2),delete b.constructor,delete b.statics,goog.defineClass.applyProperties_(c.prototype,b),d!=null&&(d instanceof Function?d(c):goog.defineClass.applyProperties_(c,d)),c},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(a2,b){if(!goog.defineClass.SEAL_CLASS_INSTANCES)return a2;var c=!goog.defineClass.isUnsealable_(b),d=__name(function(){var b2=a2.apply(this,arguments)||this;return b2[goog.UID_PROPERTY_]=b2[goog.UID_PROPERTY_],this.constructor===d&&c&&Object.seal instanceof Function&&Object.seal(b2),b2},"d");return d},goog.defineClass.isUnsealable_=function(a2){return a2&&a2.prototype&&a2.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(a2,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a2[c]=b[c]);for(var d=0;d<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;d++)c=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[d],Object.prototype.hasOwnProperty.call(b,c)&&(a2[c]=b[c])},goog.tagUnsealableClass=function(a2){},goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable",goog.TRUSTED_TYPES_POLICY_NAME="",goog.identity_=function(a2){return a2},goog.createTrustedTypesPolicy=function(a2){var b=null,c=goog.global.trustedTypes||goog.global.TrustedTypes;if(!c||!c.createPolicy)return b;try{b=c.createPolicy(a2,{createHTML:goog.identity_,createScript:goog.identity_,createScriptURL:goog.identity_,createURL:goog.identity_})}catch(d){goog.logToConsole_(d.message)}return b},goog.TRUSTED_TYPES_POLICY_=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#base"):null,goog.object={},goog.object.is=function(a2,b){return a2===b?a2!==0||1/a2===1/b:a2!==a2&&b!==b},goog.object.forEach=function(a2,b,c){for(var d in a2)b.call(c,a2[d],d,a2)},goog.object.filter=function(a2,b,c){var d={},e;for(e in a2)b.call(c,a2[e],e,a2)&&(d[e]=a2[e]);return d},goog.object.map=function(a2,b,c){var d={},e;for(e in a2)d[e]=b.call(c,a2[e],e,a2);return d},goog.object.some=function(a2,b,c){for(var d in a2)if(b.call(c,a2[d],d,a2))return!0;return!1},goog.object.every=function(a2,b,c){for(var d in a2)if(!b.call(c,a2[d],d,a2))return!1;return!0},goog.object.getCount=function(a2){var b=0,c;for(c in a2)b++;return b},goog.object.getAnyKey=function(a2){for(var b in a2)return b},goog.object.getAnyValue=function(a2){for(var b in a2)return a2[b]},goog.object.contains=function(a2,b){return goog.object.containsValue(a2,b)},goog.object.getValues=function(a2){var b=[],c=0,d;for(d in a2)b[c++]=a2[d];return b},goog.object.getKeys=function(a2){var b=[],c=0,d;for(d in a2)b[c++]=d;return b},goog.object.getValueByKeys=function(a2,b){var c=goog.isArrayLike(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(a2==null)return;a2=a2[d[c]]}return a2},goog.object.containsKey=function(a2,b){return a2!==null&&b in a2},goog.object.containsValue=function(a2,b){for(var c in a2)if(a2[c]==b)return!0;return!1},goog.object.findKey=function(a2,b,c){for(var d in a2)if(b.call(c,a2[d],d,a2))return d},goog.object.findValue=function(a2,b,c){return(b=goog.object.findKey(a2,b,c))&&a2[b]},goog.object.isEmpty=function(a2){for(var b in a2)return!1;return!0},goog.object.clear=function(a2){for(var b in a2)delete a2[b]},goog.object.remove=function(a2,b){var c;return(c=b in a2)&&delete a2[b],c},goog.object.add=function(a2,b,c){if(a2!==null&&b in a2)throw Error('The object already contains the key "'+b+'"');goog.object.set(a2,b,c)},goog.object.get=function(a2,b,c){return a2!==null&&b in a2?a2[b]:c},goog.object.set=function(a2,b,c){a2[b]=c},goog.object.setIfUndefined=function(a2,b,c){return b in a2?a2[b]:a2[b]=c},goog.object.setWithReturnValueIfNotSet=function(a2,b,c){return b in a2?a2[b]:(c=c(),a2[b]=c)},goog.object.equals=function(a2,b){for(var c in a2)if(!(c in b)||a2[c]!==b[c])return!1;for(var d in b)if(!(d in a2))return!1;return!0},goog.object.clone=function(a2){var b={},c;for(c in a2)b[c]=a2[c];return b},goog.object.unsafeClone=function(a2){var b=goog.typeOf(a2);if(b=="object"||b=="array"){if(goog.isFunction(a2.clone))return a2.clone();b=b=="array"?[]:{};for(var c in a2)b[c]=goog.object.unsafeClone(a2[c]);return b}return a2},goog.object.transpose=function(a2){var b={},c;for(c in a2)b[a2[c]]=c;return b},goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.object.extend=function(a2,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a2[c]=d[c];for(var f=0;f<goog.object.PROTOTYPE_FIELDS_.length;f++)c=goog.object.PROTOTYPE_FIELDS_[f],Object.prototype.hasOwnProperty.call(d,c)&&(a2[c]=d[c])}},goog.object.create=function(a2){var b=arguments.length;if(b==1&&Array.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c},goog.object.createSet=function(a2){var b=arguments.length;if(b==1&&Array.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c},goog.object.createImmutableView=function(a2){var b=a2;return Object.isFrozen&&!Object.isFrozen(a2)&&(b=Object.create(a2),Object.freeze(b)),b},goog.object.isImmutableView=function(a2){return!!Object.isFrozen&&Object.isFrozen(a2)},goog.object.getAllPropertyNames=function(a2,b,c){if(!a2)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return goog.object.getKeys(a2);for(var d={};a2&&(a2!==Object.prototype||b)&&(a2!==Function.prototype||c);){for(var e=Object.getOwnPropertyNames(a2),f=0;f<e.length;f++)d[e[f]]=!0;a2=Object.getPrototypeOf(a2)}return goog.object.getKeys(d)},goog.object.getSuperClass=function(a2){return(a2=Object.getPrototypeOf(a2.prototype))&&a2.constructor};var jspb={asserts:{}};jspb.asserts.doAssertFailure=function(a2,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var f=d}else a2&&(e+=": "+a2,f=b);throw Error(""+e,f||[])},jspb.asserts.assert=function(a2,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];return a2||jspb.asserts.doAssertFailure("",null,b,d),a2},jspb.asserts.assertString=function(a2,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];return typeof a2!="string"&&jspb.asserts.doAssertFailure("Expected string but got %s: %s.",[goog.typeOf(a2),a2],b,d),a2},jspb.asserts.assertArray=function(a2,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];return Array.isArray(a2)||jspb.asserts.doAssertFailure("Expected array but got %s: %s.",[goog.typeOf(a2),a2],b,d),a2},jspb.asserts.fail=function(a2,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];throw Error("Failure"+(a2?": "+a2:""),c)},jspb.asserts.assertInstanceof=function(a2,b,c,d){for(var e=[],f=3;f<arguments.length;++f)e[f-3]=arguments[f];return a2 instanceof b||jspb.asserts.doAssertFailure("Expected instanceof %s but got %s.",[jspb.asserts.getType(b),jspb.asserts.getType(a2)],c,e),a2},jspb.asserts.getType=function(a2){return a2 instanceof Function?a2.displayName||a2.name||"unknown type name":a2 instanceof Object?a2.constructor.displayName||a2.constructor.name||Object.prototype.toString.call(a2):a2===null?"null":typeof a2},jspb.BinaryConstants={},jspb.ConstBinaryMessage=function(){},jspb.BinaryMessage=function(){},jspb.BinaryConstants.FieldType={INVALID:-1,DOUBLE:1,FLOAT:2,INT64:3,UINT64:4,INT32:5,FIXED64:6,FIXED32:7,BOOL:8,STRING:9,GROUP:10,MESSAGE:11,BYTES:12,UINT32:13,ENUM:14,SFIXED32:15,SFIXED64:16,SINT32:17,SINT64:18,FHASH64:30,VHASH64:31},jspb.BinaryConstants.WireType={INVALID:-1,VARINT:0,FIXED64:1,DELIMITED:2,START_GROUP:3,END_GROUP:4,FIXED32:5},jspb.BinaryConstants.FieldTypeToWireType=function(a2){var b=jspb.BinaryConstants.FieldType,c=jspb.BinaryConstants.WireType;switch(a2){case b.INT32:case b.INT64:case b.UINT32:case b.UINT64:case b.SINT32:case b.SINT64:case b.BOOL:case b.ENUM:case b.VHASH64:return c.VARINT;case b.DOUBLE:case b.FIXED64:case b.SFIXED64:case b.FHASH64:return c.FIXED64;case b.STRING:case b.MESSAGE:case b.BYTES:return c.DELIMITED;case b.FLOAT:case b.FIXED32:case b.SFIXED32:return c.FIXED32;default:return c.INVALID}},jspb.BinaryConstants.INVALID_FIELD_NUMBER=-1,jspb.BinaryConstants.FLOAT32_EPS=1401298464324817e-60,jspb.BinaryConstants.FLOAT32_MIN=11754943508222875e-54,jspb.BinaryConstants.FLOAT32_MAX=34028234663852886e22,jspb.BinaryConstants.FLOAT64_EPS=5e-324,jspb.BinaryConstants.FLOAT64_MIN=22250738585072014e-324,jspb.BinaryConstants.FLOAT64_MAX=17976931348623157e292,jspb.BinaryConstants.TWO_TO_20=1048576,jspb.BinaryConstants.TWO_TO_23=8388608,jspb.BinaryConstants.TWO_TO_31=2147483648,jspb.BinaryConstants.TWO_TO_32=4294967296,jspb.BinaryConstants.TWO_TO_52=4503599627370496,jspb.BinaryConstants.TWO_TO_63=9223372036854776e3,jspb.BinaryConstants.TWO_TO_64=18446744073709552e3,jspb.BinaryConstants.ZERO_HASH="\0\0\0\0\0\0\0\0",goog.debug={},goog.debug.Error=function(a2){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var b=Error().stack;b&&(this.stack=b)}a2&&(this.message=String(a2)),this.reportErrorToServer=!0},goog.inherits(goog.debug.Error,Error),goog.debug.Error.prototype.name="CustomError",goog.dom={},goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12},goog.asserts={},goog.asserts.ENABLE_ASSERTS=goog.DEBUG,goog.asserts.AssertionError=function(a2,b){goog.debug.Error.call(this,goog.asserts.subs_(a2,b)),this.messagePattern=a2},goog.inherits(goog.asserts.AssertionError,goog.debug.Error),goog.asserts.AssertionError.prototype.name="AssertionError",goog.asserts.DEFAULT_ERROR_HANDLER=function(a2){throw a2},goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER,goog.asserts.subs_=function(a2,b){a2=a2.split("%s");for(var c="",d=a2.length-1,e=0;e<d;e++)c+=a2[e]+(e<b.length?b[e]:"%s");return c+a2[d]},goog.asserts.doAssertFailure_=function(a2,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var f=d}else a2&&(e+=": "+a2,f=b);a2=new goog.asserts.AssertionError(""+e,f||[]),goog.asserts.errorHandler_(a2)},goog.asserts.setErrorHandler=function(a2){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=a2)},goog.asserts.assert=function(a2,b,c){return goog.asserts.ENABLE_ASSERTS&&!a2&&goog.asserts.doAssertFailure_("",null,b,Array.prototype.slice.call(arguments,2)),a2},goog.asserts.assertExists=function(a2,b,c){return goog.asserts.ENABLE_ASSERTS&&a2==null&&goog.asserts.doAssertFailure_("Expected to exist: %s.",[a2],b,Array.prototype.slice.call(arguments,2)),a2},goog.asserts.fail=function(a2,b){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(a2?": "+a2:""),Array.prototype.slice.call(arguments,1)))},goog.asserts.assertNumber=function(a2,b,c){return goog.asserts.ENABLE_ASSERTS&&typeof a2!="number"&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(a2),a2],b,Array.prototype.slice.call(arguments,2)),a2},goog.asserts.assertString=function(a2,b,c){return goog.asserts.ENABLE_ASSERTS&&typeof a2!="string"&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(a2),a2],b,Array.prototype.slice.call(arguments,2)),a2},goog.asserts.assertFunction=function(a2,b,c){return goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(a2)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(a2),a2],b,Array.prototype.slice.call(arguments,2)),a2},goog.asserts.assertObject=function(a2,b,c){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(a2)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(a2),a2],b,Array.prototype.slice.call(arguments,2)),a2},goog.asserts.assertArray=function(a2,b,c){return goog.asserts.ENABLE_ASSERTS&&!Array.isArray(a2)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(a2),a2],b,Array.prototype.slice.call(arguments,2)),a2},goog.asserts.assertBoolean=function(a2,b,c){return goog.asserts.ENABLE_ASSERTS&&typeof a2!="boolean"&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(a2),a2],b,Array.prototype.slice.call(arguments,2)),a2},goog.asserts.assertElement=function(a2,b,c){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(a2)&&a2.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(a2),a2],b,Array.prototype.slice.call(arguments,2)),a2},goog.asserts.assertInstanceof=function(a2,b,c,d){return!goog.asserts.ENABLE_ASSERTS||a2 instanceof b||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(b),goog.asserts.getType_(a2)],c,Array.prototype.slice.call(arguments,3)),a2},goog.asserts.assertFinite=function(a2,b,c){return!goog.asserts.ENABLE_ASSERTS||typeof a2=="number"&&isFinite(a2)||goog.asserts.doAssertFailure_("Expected %s to be a finite number but it is not.",[a2],b,Array.prototype.slice.call(arguments,2)),a2},goog.asserts.assertObjectPrototypeIsIntact=function(){for(var a2 in Object.prototype)goog.asserts.fail(a2+" should not be enumerable in Object.prototype.")},goog.asserts.getType_=function(a2){return a2 instanceof Function?a2.displayName||a2.name||"unknown type name":a2 instanceof Object?a2.constructor.displayName||a2.constructor.name||Object.prototype.toString.call(a2):a2===null?"null":typeof a2},goog.array={},goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE,goog.array.ASSUME_NATIVE_FUNCTIONS=2012<goog.FEATURESET_YEAR,goog.array.peek=function(a2){return a2[a2.length-1]},goog.array.last=goog.array.peek,goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(a2,b,c){return goog.asserts.assert(a2.length!=null),Array.prototype.indexOf.call(a2,b,c)}:function(a2,b,c){if(c=c==null?0:0>c?Math.max(0,a2.length+c):c,typeof a2=="string")return typeof b!="string"||b.length!=1?-1:a2.indexOf(b,c);for(;c<a2.length;c++)if(c in a2&&a2[c]===b)return c;return-1},goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(a2,b,c){return goog.asserts.assert(a2.length!=null),Array.prototype.lastIndexOf.call(a2,b,c??a2.length-1)}:function(a2,b,c){if(c=c??a2.length-1,0>c&&(c=Math.max(0,a2.length+c)),typeof a2=="string")return typeof b!="string"||b.length!=1?-1:a2.lastIndexOf(b,c);for(;0<=c;c--)if(c in a2&&a2[c]===b)return c;return-1},goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(a2,b,c){goog.asserts.assert(a2.length!=null),Array.prototype.forEach.call(a2,b,c)}:function(a2,b,c){for(var d=a2.length,e=typeof a2=="string"?a2.split(""):a2,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a2)},goog.array.forEachRight=function(a2,b,c){var d=a2.length,e=typeof a2=="string"?a2.split(""):a2;for(--d;0<=d;--d)d in e&&b.call(c,e[d],d,a2)},goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(a2,b,c){return goog.asserts.assert(a2.length!=null),Array.prototype.filter.call(a2,b,c)}:function(a2,b,c){for(var d=a2.length,e=[],f=0,g=typeof a2=="string"?a2.split(""):a2,h=0;h<d;h++)if(h in g){var k=g[h];b.call(c,k,h,a2)&&(e[f++]=k)}return e},goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(a2,b,c){return goog.asserts.assert(a2.length!=null),Array.prototype.map.call(a2,b,c)}:function(a2,b,c){for(var d=a2.length,e=Array(d),f=typeof a2=="string"?a2.split(""):a2,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a2));return e},goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(a2,b,c,d){return goog.asserts.assert(a2.length!=null),d&&(b=goog.bind(b,d)),Array.prototype.reduce.call(a2,b,c)}:function(a2,b,c,d){var e=c;return goog.array.forEach(a2,function(c2,g){e=b.call(d,e,c2,g,a2)}),e},goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(a2,b,c,d){return goog.asserts.assert(a2.length!=null),goog.asserts.assert(b!=null),d&&(b=goog.bind(b,d)),Array.prototype.reduceRight.call(a2,b,c)}:function(a2,b,c,d){var e=c;return goog.array.forEachRight(a2,function(c2,g){e=b.call(d,e,c2,g,a2)}),e},goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(a2,b,c){return goog.asserts.assert(a2.length!=null),Array.prototype.some.call(a2,b,c)}:function(a2,b,c){for(var d=a2.length,e=typeof a2=="string"?a2.split(""):a2,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a2))return!0;return!1},goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(a2,b,c){return goog.asserts.assert(a2.length!=null),Array.prototype.every.call(a2,b,c)}:function(a2,b,c){for(var d=a2.length,e=typeof a2=="string"?a2.split(""):a2,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a2))return!1;return!0},goog.array.count=function(a2,b,c){var d=0;return goog.array.forEach(a2,function(a3,f,g){b.call(c,a3,f,g)&&++d},c),d},goog.array.find=function(a2,b,c){return b=goog.array.findIndex(a2,b,c),0>b?null:typeof a2=="string"?a2.charAt(b):a2[b]},goog.array.findIndex=function(a2,b,c){for(var d=a2.length,e=typeof a2=="string"?a2.split(""):a2,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a2))return f;return-1},goog.array.findRight=function(a2,b,c){return b=goog.array.findIndexRight(a2,b,c),0>b?null:typeof a2=="string"?a2.charAt(b):a2[b]},goog.array.findIndexRight=function(a2,b,c){var d=a2.length,e=typeof a2=="string"?a2.split(""):a2;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a2))return d;return-1},goog.array.contains=function(a2,b){return 0<=goog.array.indexOf(a2,b)},goog.array.isEmpty=function(a2){return a2.length==0},goog.array.clear=function(a2){if(!Array.isArray(a2))for(var b=a2.length-1;0<=b;b--)delete a2[b];a2.length=0},goog.array.insert=function(a2,b){goog.array.contains(a2,b)||a2.push(b)},goog.array.insertAt=function(a2,b,c){goog.array.splice(a2,c,0,b)},goog.array.insertArrayAt=function(a2,b,c){goog.partial(goog.array.splice,a2,c,0).apply(null,b)},goog.array.insertBefore=function(a2,b,c){var d;arguments.length==2||0>(d=goog.array.indexOf(a2,c))?a2.push(b):goog.array.insertAt(a2,b,d)},goog.array.remove=function(a2,b){b=goog.array.indexOf(a2,b);var c;return(c=0<=b)&&goog.array.removeAt(a2,b),c},goog.array.removeLast=function(a2,b){return b=goog.array.lastIndexOf(a2,b),0<=b?(goog.array.removeAt(a2,b),!0):!1},goog.array.removeAt=function(a2,b){return goog.asserts.assert(a2.length!=null),Array.prototype.splice.call(a2,b,1).length==1},goog.array.removeIf=function(a2,b,c){return b=goog.array.findIndex(a2,b,c),0<=b?(goog.array.removeAt(a2,b),!0):!1},goog.array.removeAllIf=function(a2,b,c){var d=0;return goog.array.forEachRight(a2,function(e,f){b.call(c,e,f,a2)&&goog.array.removeAt(a2,f)&&d++}),d},goog.array.concat=function(a2){return Array.prototype.concat.apply([],arguments)},goog.array.join=function(a2){return Array.prototype.concat.apply([],arguments)},goog.array.toArray=function(a2){var b=a2.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a2[d];return c}return[]},goog.array.clone=goog.array.toArray,goog.array.extend=function(a2,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(goog.isArrayLike(d)){var e=a2.length||0,f=d.length||0;a2.length=e+f;for(var g=0;g<f;g++)a2[e+g]=d[g]}else a2.push(d)}},goog.array.splice=function(a2,b,c,d){return goog.asserts.assert(a2.length!=null),Array.prototype.splice.apply(a2,goog.array.slice(arguments,1))},goog.array.slice=function(a2,b,c){return goog.asserts.assert(a2.length!=null),2>=arguments.length?Array.prototype.slice.call(a2,b):Array.prototype.slice.call(a2,b,c)},goog.array.removeDuplicates=function(a2,b,c){b=b||a2;var d=__name(function(a3){return goog.isObject(a3)?"o"+goog.getUid(a3):(typeof a3).charAt(0)+a3},"d");c=c||d,d={};for(var e=0,f=0;f<a2.length;){var g=a2[f++],h=c(g);Object.prototype.hasOwnProperty.call(d,h)||(d[h]=!0,b[e++]=g)}b.length=e},goog.array.binarySearch=function(a2,b,c){return goog.array.binarySearch_(a2,c||goog.array.defaultCompare,!1,b)},goog.array.binarySelect=function(a2,b,c){return goog.array.binarySearch_(a2,b,!0,void 0,c)},goog.array.binarySearch_=function(a2,b,c,d,e){for(var f=0,g=a2.length,h;f<g;){var k=f+(g-f>>>1),l=c?b.call(e,a2[k],k,a2):b(d,a2[k]);0<l?f=k+1:(g=k,h=!l)}return h?f:-f-1},goog.array.sort=function(a2,b){a2.sort(b||goog.array.defaultCompare)},goog.array.stableSort=function(a2,b){for(var c=Array(a2.length),d=0;d<a2.length;d++)c[d]={index:d,value:a2[d]};var e=b||goog.array.defaultCompare;for(goog.array.sort(c,function(a3,b2){return e(a3.value,b2.value)||a3.index-b2.index}),d=0;d<a2.length;d++)a2[d]=c[d].value},goog.array.sortByKey=function(a2,b,c){var d=c||goog.array.defaultCompare;goog.array.sort(a2,function(a3,c2){return d(b(a3),b(c2))})},goog.array.sortObjectsByKey=function(a2,b,c){goog.array.sortByKey(a2,function(a3){return a3[b]},c)},goog.array.isSorted=function(a2,b,c){b=b||goog.array.defaultCompare;for(var d=1;d<a2.length;d++){var e=b(a2[d-1],a2[d]);if(0<e||e==0&&c)return!1}return!0},goog.array.equals=function(a2,b,c){if(!goog.isArrayLike(a2)||!goog.isArrayLike(b)||a2.length!=b.length)return!1;var d=a2.length;c=c||goog.array.defaultCompareEquality;for(var e=0;e<d;e++)if(!c(a2[e],b[e]))return!1;return!0},goog.array.compare3=function(a2,b,c){c=c||goog.array.defaultCompare;for(var d=Math.min(a2.length,b.length),e=0;e<d;e++){var f=c(a2[e],b[e]);if(f!=0)return f}return goog.array.defaultCompare(a2.length,b.length)},goog.array.defaultCompare=function(a2,b){return a2>b?1:a2<b?-1:0},goog.array.inverseDefaultCompare=function(a2,b){return-goog.array.defaultCompare(a2,b)},goog.array.defaultCompareEquality=function(a2,b){return a2===b},goog.array.binaryInsert=function(a2,b,c){return c=goog.array.binarySearch(a2,b,c),0>c?(goog.array.insertAt(a2,b,-(c+1)),!0):!1},goog.array.binaryRemove=function(a2,b,c){return b=goog.array.binarySearch(a2,b,c),0<=b?goog.array.removeAt(a2,b):!1},goog.array.bucket=function(a2,b,c){for(var d={},e=0;e<a2.length;e++){var f=a2[e],g=b.call(c,f,e,a2);g!==void 0&&(d[g]||(d[g]=[])).push(f)}return d},goog.array.toObject=function(a2,b,c){var d={};return goog.array.forEach(a2,function(e,f){d[b.call(c,e,f,a2)]=e}),d},goog.array.range=function(a2,b,c){var d=[],e=0,f=a2;if(c=c||1,b!==void 0&&(e=a2,f=b),0>c*(f-e))return[];if(0<c)for(a2=e;a2<f;a2+=c)d.push(a2);else for(a2=e;a2>f;a2+=c)d.push(a2);return d},goog.array.repeat=function(a2,b){for(var c=[],d=0;d<b;d++)c[d]=a2;return c},goog.array.flatten=function(a2){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(Array.isArray(d))for(var e=0;e<d.length;e+=8192){var f=goog.array.slice(d,e,e+8192);f=goog.array.flatten.apply(null,f);for(var g=0;g<f.length;g++)b.push(f[g])}else b.push(d)}return b},goog.array.rotate=function(a2,b){return goog.asserts.assert(a2.length!=null),a2.length&&(b%=a2.length,0<b?Array.prototype.unshift.apply(a2,a2.splice(-b,b)):0>b&&Array.prototype.push.apply(a2,a2.splice(0,-b))),a2},goog.array.moveItem=function(a2,b,c){goog.asserts.assert(0<=b&&b<a2.length),goog.asserts.assert(0<=c&&c<a2.length),b=Array.prototype.splice.call(a2,b,1),Array.prototype.splice.call(a2,c,0,b[0])},goog.array.zip=function(a2){if(!arguments.length)return[];for(var b=[],c=arguments[0].length,d=1;d<arguments.length;d++)arguments[d].length<c&&(c=arguments[d].length);for(d=0;d<c;d++){for(var e=[],f=0;f<arguments.length;f++)e.push(arguments[f][d]);b.push(e)}return b},goog.array.shuffle=function(a2,b){b=b||Math.random;for(var c=a2.length-1;0<c;c--){var d=Math.floor(b()*(c+1)),e=a2[c];a2[c]=a2[d],a2[d]=e}},goog.array.copyByIndex=function(a2,b){var c=[];return goog.array.forEach(b,function(b2){c.push(a2[b2])}),c},goog.array.concatMap=function(a2,b,c){return goog.array.concat.apply([],goog.array.map(a2,b,c))},goog.crypt={},goog.crypt.stringToByteArray=function(a2){for(var b=[],c=0,d=0;d<a2.length;d++){var e=a2.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8),b[c++]=e}return b},goog.crypt.byteArrayToString=function(a2){if(8192>=a2.length)return String.fromCharCode.apply(null,a2);for(var b="",c=0;c<a2.length;c+=8192){var d=goog.array.slice(a2,c,c+8192);b+=String.fromCharCode.apply(null,d)}return b},goog.crypt.byteArrayToHex=function(a2,b){return goog.array.map(a2,function(a3){return a3=a3.toString(16),1<a3.length?a3:"0"+a3}).join(b||"")},goog.crypt.hexToByteArray=function(a2){goog.asserts.assert(a2.length%2==0,"Key string length must be multiple of 2");for(var b=[],c=0;c<a2.length;c+=2)b.push(parseInt(a2.substring(c,c+2),16));return b},goog.crypt.stringToUtf8ByteArray=function(a2){for(var b=[],c=0,d=0;d<a2.length;d++){var e=a2.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:((e&64512)==55296&&d+1<a2.length&&(a2.charCodeAt(d+1)&64512)==56320?(e=65536+((e&1023)<<10)+(a2.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b},goog.crypt.utf8ByteArrayToString=function(a2){for(var b=[],c=0,d=0;c<a2.length;){var e=a2[c++];if(128>e)b[d++]=String.fromCharCode(e);else if(191<e&&224>e){var f=a2[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(239<e&&365>e){f=a2[c++];var g=a2[c++],h=a2[c++];e=((e&7)<<18|(f&63)<<12|(g&63)<<6|h&63)-65536,b[d++]=String.fromCharCode(55296+(e>>10)),b[d++]=String.fromCharCode(56320+(e&1023))}else f=a2[c++],g=a2[c++],b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|g&63)}return b.join("")},goog.crypt.xorByteArray=function(a2,b){goog.asserts.assert(a2.length==b.length,"XOR array lengths must match");for(var c=[],d=0;d<a2.length;d++)c.push(a2[d]^b[d]);return c},goog.dom.asserts={},goog.dom.asserts.assertIsLocation=function(a2){if(goog.asserts.ENABLE_ASSERTS){var b=goog.dom.asserts.getWindow_(a2);b&&(!a2||!(a2 instanceof b.Location)&&a2 instanceof b.Element)&&goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s",goog.dom.asserts.debugStringForType_(a2))}return a2},goog.dom.asserts.assertIsElementType_=function(a2,b){if(goog.asserts.ENABLE_ASSERTS){var c=goog.dom.asserts.getWindow_(a2);c&&typeof c[b]<"u"&&(a2&&(a2 instanceof c[b]||!(a2 instanceof c.Location||a2 instanceof c.Element))||goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s",b,goog.dom.asserts.debugStringForType_(a2)))}return a2},goog.dom.asserts.assertIsHTMLAnchorElement=function(a2){return goog.dom.asserts.assertIsElementType_(a2,"HTMLAnchorElement")},goog.dom.asserts.assertIsHTMLButtonElement=function(a2){return goog.dom.asserts.assertIsElementType_(a2,"HTMLButtonElement")},goog.dom.asserts.assertIsHTMLLinkElement=function(a2){return goog.dom.asserts.assertIsElementType_(a2,"HTMLLinkElement")},goog.dom.asserts.assertIsHTMLImageElement=function(a2){return goog.dom.asserts.assertIsElementType_(a2,"HTMLImageElement")},goog.dom.asserts.assertIsHTMLAudioElement=function(a2){return goog.dom.asserts.assertIsElementType_(a2,"HTMLAudioElement")},goog.dom.asserts.assertIsHTMLVideoElement=function(a2){return goog.dom.asserts.assertIsElementType_(a2,"HTMLVideoElement")},goog.dom.asserts.assertIsHTMLInputElement=function(a2){return goog.dom.asserts.assertIsElementType_(a2,"HTMLInputElement")},goog.dom.asserts.assertIsHTMLTextAreaElement=function(a2){return goog.dom.asserts.assertIsElementType_(a2,"HTMLTextAreaElement")},goog.dom.asserts.assertIsHTMLCanvasElement=function(a2){return goog.dom.asserts.assertIsElementType_(a2,"HTMLCanvasElement")},goog.dom.asserts.assertIsHTMLEmbedElement=function(a2){return goog.dom.asserts.assertIsElementType_(a2,"HTMLEmbedElement")},goog.dom.asserts.assertIsHTMLFormElement=function(a2){return goog.dom.asserts.assertIsElementType_(a2,"HTMLFormElement")},goog.dom.asserts.assertIsHTMLFrameElement=function(a2){return goog.dom.asserts.assertIsElementType_(a2,"HTMLFrameElement")},goog.dom.asserts.assertIsHTMLIFrameElement=function(a2){return goog.dom.asserts.assertIsElementType_(a2,"HTMLIFrameElement")},goog.dom.asserts.assertIsHTMLObjectElement=function(a2){return goog.dom.asserts.assertIsElementType_(a2,"HTMLObjectElement")},goog.dom.asserts.assertIsHTMLScriptElement=function(a2){return goog.dom.asserts.assertIsElementType_(a2,"HTMLScriptElement")},goog.dom.asserts.debugStringForType_=function(a2){if(goog.isObject(a2))try{return a2.constructor.displayName||a2.constructor.name||Object.prototype.toString.call(a2)}catch{return"<object could not be stringified>"}else return a2===void 0?"undefined":a2===null?"null":typeof a2},goog.dom.asserts.getWindow_=function(a2){try{var b=a2&&a2.ownerDocument,c=b&&(b.defaultView||b.parentWindow);if(c=c||goog.global,c.Element&&c.Location)return c}catch{}return null},goog.functions={},goog.functions.constant=function(a2){return function(){return a2}},goog.functions.FALSE=function(){return!1},goog.functions.TRUE=function(){return!0},goog.functions.NULL=function(){return null},goog.functions.identity=function(a2,b){return a2},goog.functions.error=function(a2){return function(){throw Error(a2)}},goog.functions.fail=function(a2){return function(){throw a2}},goog.functions.lock=function(a2,b){return b=b||0,function(){return a2.apply(this,Array.prototype.slice.call(arguments,0,b))}},goog.functions.nth=function(a2){return function(){return arguments[a2]}},goog.functions.partialRight=function(a2,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b2=Array.prototype.slice.call(arguments);return b2.push.apply(b2,c),a2.apply(this,b2)}},goog.functions.withReturnValue=function(a2,b){return goog.functions.sequence(a2,goog.functions.constant(b))},goog.functions.equalTo=function(a2,b){return function(c){return b?a2==c:a2===c}},goog.functions.compose=function(a2,b){var c=arguments,d=c.length;return function(){var a3;d&&(a3=c[d-1].apply(this,arguments));for(var b2=d-2;0<=b2;b2--)a3=c[b2].call(this,a3);return a3}},goog.functions.sequence=function(a2){var b=arguments,c=b.length;return function(){for(var a3,e=0;e<c;e++)a3=b[e].apply(this,arguments);return a3}},goog.functions.and=function(a2){var b=arguments,c=b.length;return function(){for(var a3=0;a3<c;a3++)if(!b[a3].apply(this,arguments))return!1;return!0}},goog.functions.or=function(a2){var b=arguments,c=b.length;return function(){for(var a3=0;a3<c;a3++)if(b[a3].apply(this,arguments))return!0;return!1}},goog.functions.not=function(a2){return function(){return!a2.apply(this,arguments)}},goog.functions.create=function(a2,b){var c=__name(function(){},"c");return c.prototype=a2.prototype,c=new c,a2.apply(c,Array.prototype.slice.call(arguments,1)),c},goog.functions.CACHE_RETURN_VALUE=!0,goog.functions.cacheReturnValue=function(a2){var b=!1,c;return function(){return goog.functions.CACHE_RETURN_VALUE?(b||(c=a2(),b=!0),c):a2()}},goog.functions.once=function(a2){var b=a2;return function(){if(b){var a3=b;b=null,a3()}}},goog.functions.debounce=function(a2,b,c){var d=0;return function(e){goog.global.clearTimeout(d);var f=arguments;d=goog.global.setTimeout(function(){a2.apply(c,f)},b)}},goog.functions.throttle=function(a2,b,c){var d=0,e=!1,f=[],g=__name(function(){d=0,e&&(e=!1,h())},"g"),h=__name(function(){d=goog.global.setTimeout(g,b),a2.apply(c,f)},"h");return function(a3){f=arguments,d?e=!0:h()}},goog.functions.rateLimit=function(a2,b,c){var d=0,e=__name(function(){d=0},"e");return function(f){d||(d=goog.global.setTimeout(e,b),a2.apply(c,arguments))}},goog.dom.HtmlElement=function(){},goog.dom.TagName=function(a2){this.tagName_=a2},goog.dom.TagName.prototype.toString=function(){return this.tagName_},goog.dom.TagName.A=new goog.dom.TagName("A"),goog.dom.TagName.ABBR=new goog.dom.TagName("ABBR"),goog.dom.TagName.ACRONYM=new goog.dom.TagName("ACRONYM"),goog.dom.TagName.ADDRESS=new goog.dom.TagName("ADDRESS"),goog.dom.TagName.APPLET=new goog.dom.TagName("APPLET"),goog.dom.TagName.AREA=new goog.dom.TagName("AREA"),goog.dom.TagName.ARTICLE=new goog.dom.TagName("ARTICLE"),goog.dom.TagName.ASIDE=new goog.dom.TagName("ASIDE"),goog.dom.TagName.AUDIO=new goog.dom.TagName("AUDIO"),goog.dom.TagName.B=new goog.dom.TagName("B"),goog.dom.TagName.BASE=new goog.dom.TagName("BASE"),goog.dom.TagName.BASEFONT=new goog.dom.TagName("BASEFONT"),goog.dom.TagName.BDI=new goog.dom.TagName("BDI"),goog.dom.TagName.BDO=new goog.dom.TagName("BDO"),goog.dom.TagName.BIG=new goog.dom.TagName("BIG"),goog.dom.TagName.BLOCKQUOTE=new goog.dom.TagName("BLOCKQUOTE"),goog.dom.TagName.BODY=new goog.dom.TagName("BODY"),goog.dom.TagName.BR=new goog.dom.TagName("BR"),goog.dom.TagName.BUTTON=new goog.dom.TagName("BUTTON"),goog.dom.TagName.CANVAS=new goog.dom.TagName("CANVAS"),goog.dom.TagName.CAPTION=new goog.dom.TagName("CAPTION"),goog.dom.TagName.CENTER=new goog.dom.TagName("CENTER"),goog.dom.TagName.CITE=new goog.dom.TagName("CITE"),goog.dom.TagName.CODE=new goog.dom.TagName("CODE"),goog.dom.TagName.COL=new goog.dom.TagName("COL"),goog.dom.TagName.COLGROUP=new goog.dom.TagName("COLGROUP"),goog.dom.TagName.COMMAND=new goog.dom.TagName("COMMAND"),goog.dom.TagName.DATA=new goog.dom.TagName("DATA"),goog.dom.TagName.DATALIST=new goog.dom.TagName("DATALIST"),goog.dom.TagName.DD=new goog.dom.TagName("DD"),goog.dom.TagName.DEL=new goog.dom.TagName("DEL"),goog.dom.TagName.DETAILS=new goog.dom.TagName("DETAILS"),goog.dom.TagName.DFN=new goog.dom.TagName("DFN"),goog.dom.TagName.DIALOG=new goog.dom.TagName("DIALOG"),goog.dom.TagName.DIR=new goog.dom.TagName("DIR"),goog.dom.TagName.DIV=new goog.dom.TagName("DIV"),goog.dom.TagName.DL=new goog.dom.TagName("DL"),goog.dom.TagName.DT=new goog.dom.TagName("DT"),goog.dom.TagName.EM=new goog.dom.TagName("EM"),goog.dom.TagName.EMBED=new goog.dom.TagName("EMBED"),goog.dom.TagName.FIELDSET=new goog.dom.TagName("FIELDSET"),goog.dom.TagName.FIGCAPTION=new goog.dom.TagName("FIGCAPTION"),goog.dom.TagName.FIGURE=new goog.dom.TagName("FIGURE"),goog.dom.TagName.FONT=new goog.dom.TagName("FONT"),goog.dom.TagName.FOOTER=new goog.dom.TagName("FOOTER"),goog.dom.TagName.FORM=new goog.dom.TagName("FORM"),goog.dom.TagName.FRAME=new goog.dom.TagName("FRAME"),goog.dom.TagName.FRAMESET=new goog.dom.TagName("FRAMESET"),goog.dom.TagName.H1=new goog.dom.TagName("H1"),goog.dom.TagName.H2=new goog.dom.TagName("H2"),goog.dom.TagName.H3=new goog.dom.TagName("H3"),goog.dom.TagName.H4=new goog.dom.TagName("H4"),goog.dom.TagName.H5=new goog.dom.TagName("H5"),goog.dom.TagName.H6=new goog.dom.TagName("H6"),goog.dom.TagName.HEAD=new goog.dom.TagName("HEAD"),goog.dom.TagName.HEADER=new goog.dom.TagName("HEADER"),goog.dom.TagName.HGROUP=new goog.dom.TagName("HGROUP"),goog.dom.TagName.HR=new goog.dom.TagName("HR"),goog.dom.TagName.HTML=new goog.dom.TagName("HTML"),goog.dom.TagName.I=new goog.dom.TagName("I"),goog.dom.TagName.IFRAME=new goog.dom.TagName("IFRAME"),goog.dom.TagName.IMG=new goog.dom.TagName("IMG"),goog.dom.TagName.INPUT=new goog.dom.TagName("INPUT"),goog.dom.TagName.INS=new goog.dom.TagName("INS"),goog.dom.TagName.ISINDEX=new goog.dom.TagName("ISINDEX"),goog.dom.TagName.KBD=new goog.dom.TagName("KBD"),goog.dom.TagName.KEYGEN=new goog.dom.TagName("KEYGEN"),goog.dom.TagName.LABEL=new goog.dom.TagName("LABEL"),goog.dom.TagName.LEGEND=new goog.dom.TagName("LEGEND"),goog.dom.TagName.LI=new goog.dom.TagName("LI"),goog.dom.TagName.LINK=new goog.dom.TagName("LINK"),goog.dom.TagName.MAIN=new goog.dom.TagName("MAIN"),goog.dom.TagName.MAP=new goog.dom.TagName("MAP"),goog.dom.TagName.MARK=new goog.dom.TagName("MARK"),goog.dom.TagName.MATH=new goog.dom.TagName("MATH"),goog.dom.TagName.MENU=new goog.dom.TagName("MENU"),goog.dom.TagName.MENUITEM=new goog.dom.TagName("MENUITEM"),goog.dom.TagName.META=new goog.dom.TagName("META"),goog.dom.TagName.METER=new goog.dom.TagName("METER"),goog.dom.TagName.NAV=new goog.dom.TagName("NAV"),goog.dom.TagName.NOFRAMES=new goog.dom.TagName("NOFRAMES"),goog.dom.TagName.NOSCRIPT=new goog.dom.TagName("NOSCRIPT"),goog.dom.TagName.OBJECT=new goog.dom.TagName("OBJECT"),goog.dom.TagName.OL=new goog.dom.TagName("OL"),goog.dom.TagName.OPTGROUP=new goog.dom.TagName("OPTGROUP"),goog.dom.TagName.OPTION=new goog.dom.TagName("OPTION"),goog.dom.TagName.OUTPUT=new goog.dom.TagName("OUTPUT"),goog.dom.TagName.P=new goog.dom.TagName("P"),goog.dom.TagName.PARAM=new goog.dom.TagName("PARAM"),goog.dom.TagName.PICTURE=new goog.dom.TagName("PICTURE"),goog.dom.TagName.PRE=new goog.dom.TagName("PRE"),goog.dom.TagName.PROGRESS=new goog.dom.TagName("PROGRESS"),goog.dom.TagName.Q=new goog.dom.TagName("Q"),goog.dom.TagName.RP=new goog.dom.TagName("RP"),goog.dom.TagName.RT=new goog.dom.TagName("RT"),goog.dom.TagName.RTC=new goog.dom.TagName("RTC"),goog.dom.TagName.RUBY=new goog.dom.TagName("RUBY"),goog.dom.TagName.S=new goog.dom.TagName("S"),goog.dom.TagName.SAMP=new goog.dom.TagName("SAMP"),goog.dom.TagName.SCRIPT=new goog.dom.TagName("SCRIPT"),goog.dom.TagName.SECTION=new goog.dom.TagName("SECTION"),goog.dom.TagName.SELECT=new goog.dom.TagName("SELECT"),goog.dom.TagName.SMALL=new goog.dom.TagName("SMALL"),goog.dom.TagName.SOURCE=new goog.dom.TagName("SOURCE"),goog.dom.TagName.SPAN=new goog.dom.TagName("SPAN"),goog.dom.TagName.STRIKE=new goog.dom.TagName("STRIKE"),goog.dom.TagName.STRONG=new goog.dom.TagName("STRONG"),goog.dom.TagName.STYLE=new goog.dom.TagName("STYLE"),goog.dom.TagName.SUB=new goog.dom.TagName("SUB"),goog.dom.TagName.SUMMARY=new goog.dom.TagName("SUMMARY"),goog.dom.TagName.SUP=new goog.dom.TagName("SUP"),goog.dom.TagName.SVG=new goog.dom.TagName("SVG"),goog.dom.TagName.TABLE=new goog.dom.TagName("TABLE"),goog.dom.TagName.TBODY=new goog.dom.TagName("TBODY"),goog.dom.TagName.TD=new goog.dom.TagName("TD"),goog.dom.TagName.TEMPLATE=new goog.dom.TagName("TEMPLATE"),goog.dom.TagName.TEXTAREA=new goog.dom.TagName("TEXTAREA"),goog.dom.TagName.TFOOT=new goog.dom.TagName("TFOOT"),goog.dom.TagName.TH=new goog.dom.TagName("TH"),goog.dom.TagName.THEAD=new goog.dom.TagName("THEAD"),goog.dom.TagName.TIME=new goog.dom.TagName("TIME"),goog.dom.TagName.TITLE=new goog.dom.TagName("TITLE"),goog.dom.TagName.TR=new goog.dom.TagName("TR"),goog.dom.TagName.TRACK=new goog.dom.TagName("TRACK"),goog.dom.TagName.TT=new goog.dom.TagName("TT"),goog.dom.TagName.U=new goog.dom.TagName("U"),goog.dom.TagName.UL=new goog.dom.TagName("UL"),goog.dom.TagName.VAR=new goog.dom.TagName("VAR"),goog.dom.TagName.VIDEO=new goog.dom.TagName("VIDEO"),goog.dom.TagName.WBR=new goog.dom.TagName("WBR"),goog.dom.tags={},goog.dom.tags.VOID_TAGS_={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},goog.dom.tags.isVoidTag=function(a2){return goog.dom.tags.VOID_TAGS_[a2]===!0},goog.html={},goog.html.trustedtypes={},goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#html"):null,goog.string={},goog.string.TypedString=function(){},goog.string.Const=function(a2,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a2===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&b||"",this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=goog.string.Const.TYPE_MARKER_},goog.string.Const.prototype.implementsGoogStringTypedString=!0,goog.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_},goog.DEBUG&&(goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"}),goog.string.Const.unwrap=function(a2){return a2 instanceof goog.string.Const&&a2.constructor===goog.string.Const&&a2.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?a2.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+a2+"'"),"type_error:Const")},goog.string.Const.from=function(a2){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,a2)},goog.string.Const.TYPE_MARKER_={},goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.Const.EMPTY=goog.string.Const.from(""),goog.html.SafeScript=function(){this.privateDoNotAccessOrElseSafeScriptWrappedValue_="",this.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeScript.prototype.implementsGoogStringTypedString=!0,goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeScript.fromConstant=function(a2){return a2=goog.string.Const.unwrap(a2),a2.length===0?goog.html.SafeScript.EMPTY:goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(a2)},goog.html.SafeScript.fromConstantAndArgs=function(a2,b){for(var c=[],d=1;d<arguments.length;d++)c.push(goog.html.SafeScript.stringify_(arguments[d]));return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("("+goog.string.Const.unwrap(a2)+")("+c.join(", ")+");")},goog.html.SafeScript.fromJson=function(a2){return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(goog.html.SafeScript.stringify_(a2))},goog.html.SafeScript.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString()},goog.DEBUG&&(goog.html.SafeScript.prototype.toString=function(){return"SafeScript{"+this.privateDoNotAccessOrElseSafeScriptWrappedValue_+"}"}),goog.html.SafeScript.unwrap=function(a2){return goog.html.SafeScript.unwrapTrustedScript(a2).toString()},goog.html.SafeScript.unwrapTrustedScript=function(a2){return a2 instanceof goog.html.SafeScript&&a2.constructor===goog.html.SafeScript&&a2.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?a2.privateDoNotAccessOrElseSafeScriptWrappedValue_:(goog.asserts.fail("expected object of type SafeScript, got '"+a2+"' of type "+goog.typeOf(a2)),"type_error:SafeScript")},goog.html.SafeScript.stringify_=function(a2){return JSON.stringify(a2).replace(/</g,"\\x3c")},goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse=function(a2){return new goog.html.SafeScript().initSecurityPrivateDoNotAccessOrElse_(a2)},goog.html.SafeScript.prototype.initSecurityPrivateDoNotAccessOrElse_=function(a2){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScript(a2):a2,this},goog.html.SafeScript.EMPTY=goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(""),goog.fs={},goog.fs.url={},goog.fs.url.createObjectUrl=function(a2){return goog.fs.url.getUrlObject_().createObjectURL(a2)},goog.fs.url.revokeObjectUrl=function(a2){goog.fs.url.getUrlObject_().revokeObjectURL(a2)},goog.fs.url.UrlObject_=function(){},goog.fs.url.UrlObject_.prototype.createObjectURL=function(a2){},goog.fs.url.UrlObject_.prototype.revokeObjectURL=function(a2){},goog.fs.url.getUrlObject_=function(){var a2=goog.fs.url.findUrlObject_();if(a2!=null)return a2;throw Error("This browser doesn't seem to support blob URLs")},goog.fs.url.findUrlObject_=function(){return goog.global.URL!==void 0&&goog.global.URL.createObjectURL!==void 0?goog.global.URL:goog.global.webkitURL!==void 0&&goog.global.webkitURL.createObjectURL!==void 0?goog.global.webkitURL:goog.global.createObjectURL!==void 0?goog.global:null},goog.fs.url.browserSupportsObjectUrls=function(){return goog.fs.url.findUrlObject_()!=null},goog.fs.blob={},goog.fs.blob.getBlob=function(a2){var b=goog.global.BlobBuilder||goog.global.WebKitBlobBuilder;if(b!==void 0){b=new b;for(var c=0;c<arguments.length;c++)b.append(arguments[c]);return b.getBlob()}return goog.fs.blob.getBlobWithProperties(goog.array.toArray(arguments))},goog.fs.blob.getBlobWithProperties=function(a2,b,c){var d=goog.global.BlobBuilder||goog.global.WebKitBlobBuilder;if(d!==void 0){d=new d;for(var e=0;e<a2.length;e++)d.append(a2[e],c);return d.getBlob(b)}if(goog.global.Blob!==void 0)return d={},b&&(d.type=b),c&&(d.endings=c),new Blob(a2,d);throw Error("This browser doesn't seem to support creating Blobs")},goog.i18n={},goog.i18n.bidi={},goog.i18n.bidi.FORCE_RTL=!1,goog.i18n.bidi.IS_RTL=goog.i18n.bidi.FORCE_RTL||(goog.LOCALE.substring(0,2).toLowerCase()=="ar"||goog.LOCALE.substring(0,2).toLowerCase()=="fa"||goog.LOCALE.substring(0,2).toLowerCase()=="he"||goog.LOCALE.substring(0,2).toLowerCase()=="iw"||goog.LOCALE.substring(0,2).toLowerCase()=="ps"||goog.LOCALE.substring(0,2).toLowerCase()=="sd"||goog.LOCALE.substring(0,2).toLowerCase()=="ug"||goog.LOCALE.substring(0,2).toLowerCase()=="ur"||goog.LOCALE.substring(0,2).toLowerCase()=="yi")&&(goog.LOCALE.length==2||goog.LOCALE.substring(2,3)=="-"||goog.LOCALE.substring(2,3)=="_")||3<=goog.LOCALE.length&&goog.LOCALE.substring(0,3).toLowerCase()=="ckb"&&(goog.LOCALE.length==3||goog.LOCALE.substring(3,4)=="-"||goog.LOCALE.substring(3,4)=="_")||7<=goog.LOCALE.length&&(goog.LOCALE.substring(2,3)=="-"||goog.LOCALE.substring(2,3)=="_")&&(goog.LOCALE.substring(3,7).toLowerCase()=="adlm"||goog.LOCALE.substring(3,7).toLowerCase()=="arab"||goog.LOCALE.substring(3,7).toLowerCase()=="hebr"||goog.LOCALE.substring(3,7).toLowerCase()=="nkoo"||goog.LOCALE.substring(3,7).toLowerCase()=="rohg"||goog.LOCALE.substring(3,7).toLowerCase()=="thaa")||8<=goog.LOCALE.length&&(goog.LOCALE.substring(3,4)=="-"||goog.LOCALE.substring(3,4)=="_")&&(goog.LOCALE.substring(4,8).toLowerCase()=="adlm"||goog.LOCALE.substring(4,8).toLowerCase()=="arab"||goog.LOCALE.substring(4,8).toLowerCase()=="hebr"||goog.LOCALE.substring(4,8).toLowerCase()=="nkoo"||goog.LOCALE.substring(4,8).toLowerCase()=="rohg"||goog.LOCALE.substring(4,8).toLowerCase()=="thaa"),goog.i18n.bidi.Format={LRE:"‪",RLE:"‫",PDF:"‬",LRM:"‎",RLM:"‏"},goog.i18n.bidi.Dir={LTR:1,RTL:-1,NEUTRAL:0},goog.i18n.bidi.RIGHT="right",goog.i18n.bidi.LEFT="left",goog.i18n.bidi.I18N_RIGHT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.LEFT:goog.i18n.bidi.RIGHT,goog.i18n.bidi.I18N_LEFT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,goog.i18n.bidi.toDir=function(a2,b){return typeof a2=="number"?0<a2?goog.i18n.bidi.Dir.LTR:0>a2?goog.i18n.bidi.Dir.RTL:b?null:goog.i18n.bidi.Dir.NEUTRAL:a2==null?null:a2?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.ltrChars_="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ऀ-῿‎Ⰰ-\uD801\uD804-\uD839\uD83C-\uDBFF豈-﬜︀-﹯﻽-￿",goog.i18n.bidi.rtlChars_="֑-ۯۺ-ࣿ‏\uD802-\uD803\uD83A-\uD83Bיִ-﷿ﹰ-ﻼ",goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g,goog.i18n.bidi.stripHtmlIfNeeded_=function(a2,b){return b?a2.replace(goog.i18n.bidi.htmlSkipReg_,""):a2},goog.i18n.bidi.rtlCharReg_=new RegExp("["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.ltrCharReg_=new RegExp("["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.hasAnyRtl=function(a2,b){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a2,b))},goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl,goog.i18n.bidi.hasAnyLtr=function(a2,b){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a2,b))},goog.i18n.bidi.ltrRe_=new RegExp("^["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlRe_=new RegExp("^["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.isRtlChar=function(a2){return goog.i18n.bidi.rtlRe_.test(a2)},goog.i18n.bidi.isLtrChar=function(a2){return goog.i18n.bidi.ltrRe_.test(a2)},goog.i18n.bidi.isNeutralChar=function(a2){return!goog.i18n.bidi.isLtrChar(a2)&&!goog.i18n.bidi.isRtlChar(a2)},goog.i18n.bidi.ltrDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.rtlChars_+"]*["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.ltrChars_+"]*["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.startsWithRtl=function(a2,b){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a2,b))},goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl,goog.i18n.bidi.startsWithLtr=function(a2,b){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a2,b))},goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr,goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/,goog.i18n.bidi.isNeutralText=function(a2,b){return a2=goog.i18n.bidi.stripHtmlIfNeeded_(a2,b),goog.i18n.bidi.isRequiredLtrRe_.test(a2)||!goog.i18n.bidi.hasAnyLtr(a2)&&!goog.i18n.bidi.hasAnyRtl(a2)},goog.i18n.bidi.ltrExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.ltrChars_+"][^"+goog.i18n.bidi.rtlChars_+"]*$"),goog.i18n.bidi.rtlExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.rtlChars_+"][^"+goog.i18n.bidi.ltrChars_+"]*$"),goog.i18n.bidi.endsWithLtr=function(a2,b){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a2,b))},goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr,goog.i18n.bidi.endsWithRtl=function(a2,b){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a2,b))},goog.i18n.bidi.isRtlExitText=goog.i18n.bidi.endsWithRtl,goog.i18n.bidi.rtlLocalesRe_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,goog.i18n.bidi.isRtlLanguage=function(a2){return goog.i18n.bidi.rtlLocalesRe_.test(a2)},goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,goog.i18n.bidi.guardBracketInText=function(a2,b){return b=(b===void 0?goog.i18n.bidi.hasAnyRtl(a2):b)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,a2.replace(goog.i18n.bidi.bracketGuardTextRe_,b+"$&"+b)},goog.i18n.bidi.enforceRtlInHtml=function(a2){return a2.charAt(0)=="<"?a2.replace(/<\w+/,"$& dir=rtl"):`
<span dir=rtl>`+a2+"</span>"},goog.i18n.bidi.enforceRtlInText=function(a2){return goog.i18n.bidi.Format.RLE+a2+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.enforceLtrInHtml=function(a2){return a2.charAt(0)=="<"?a2.replace(/<\w+/,"$& dir=ltr"):`
<span dir=ltr>`+a2+"</span>"},goog.i18n.bidi.enforceLtrInText=function(a2){return goog.i18n.bidi.Format.LRE+a2+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g,goog.i18n.bidi.leftRe_=/left/gi,goog.i18n.bidi.rightRe_=/right/gi,goog.i18n.bidi.tempRe_=/%%%%/g,goog.i18n.bidi.mirrorCSS=function(a2){return a2.replace(goog.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(goog.i18n.bidi.leftRe_,"%%%%").replace(goog.i18n.bidi.rightRe_,goog.i18n.bidi.LEFT).replace(goog.i18n.bidi.tempRe_,goog.i18n.bidi.RIGHT)},goog.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g,goog.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g,goog.i18n.bidi.normalizeHebrewQuote=function(a2){return a2.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1״").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1׳")},goog.i18n.bidi.wordSeparatorRe_=/\s+/,goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/,goog.i18n.bidi.rtlDetectionThreshold_=.4,goog.i18n.bidi.estimateDirection=function(a2,b){var c=0,d=0,e=!1;for(a2=goog.i18n.bidi.stripHtmlIfNeeded_(a2,b).split(goog.i18n.bidi.wordSeparatorRe_),b=0;b<a2.length;b++){var f=a2[b];goog.i18n.bidi.startsWithRtl(f)?(c++,d++):goog.i18n.bidi.isRequiredLtrRe_.test(f)?e=!0:goog.i18n.bidi.hasAnyLtr(f)?d++:goog.i18n.bidi.hasNumeralsRe_.test(f)&&(e=!0)}return d==0?e?goog.i18n.bidi.Dir.LTR:goog.i18n.bidi.Dir.NEUTRAL:c/d>goog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.detectRtlDirectionality=function(a2,b){return goog.i18n.bidi.estimateDirection(a2,b)==goog.i18n.bidi.Dir.RTL},goog.i18n.bidi.setElementDirAndAlign=function(a2,b){a2&&(b=goog.i18n.bidi.toDir(b))&&(a2.style.textAlign=b==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,a2.dir=b==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")},goog.i18n.bidi.setElementDirByTextDirectionality=function(a2,b){switch(goog.i18n.bidi.estimateDirection(b)){case goog.i18n.bidi.Dir.LTR:a2.dir="ltr";break;case goog.i18n.bidi.Dir.RTL:a2.dir="rtl";break;default:a2.removeAttribute("dir")}},goog.i18n.bidi.DirectionalString=function(){},goog.html.TrustedResourceUrl=function(a2,b){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=a2===goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_&&b||"",this.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0,goog.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()},goog.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.TrustedResourceUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.html.TrustedResourceUrl.prototype.cloneWithParams=function(a2,b){var c=goog.html.TrustedResourceUrl.unwrap(this);c=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(c);var d=c[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(c[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",c[2]||"",a2)+goog.html.TrustedResourceUrl.stringifyParams_("#",d,b))},goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"}),goog.html.TrustedResourceUrl.unwrap=function(a2){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(a2).toString()},goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(a2){return a2 instanceof goog.html.TrustedResourceUrl&&a2.constructor===goog.html.TrustedResourceUrl&&a2.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?a2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+a2+"' of type "+goog.typeOf(a2)),"type_error:TrustedResourceUrl")},goog.html.TrustedResourceUrl.format=function(a2,b){var c=goog.string.Const.unwrap(a2);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);return a2=c.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,function(a3,e){if(!Object.prototype.hasOwnProperty.call(b,e))throw Error('Found marker, "'+e+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));return a3=b[e],a3 instanceof goog.string.Const?goog.string.Const.unwrap(a3):encodeURIComponent(String(a3))}),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(a2)},goog.html.TrustedResourceUrl.FORMAT_MARKER_=/%{(\w+)}/g,goog.html.TrustedResourceUrl.BASE_URL_=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,goog.html.TrustedResourceUrl.URL_PARAM_PARSER_=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/,goog.html.TrustedResourceUrl.formatWithParams=function(a2,b,c,d){return goog.html.TrustedResourceUrl.format(a2,b).cloneWithParams(c,d)},goog.html.TrustedResourceUrl.fromConstant=function(a2){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(a2))},goog.html.TrustedResourceUrl.fromConstants=function(a2){for(var b="",c=0;c<a2.length;c++)b+=goog.string.Const.unwrap(a2[c]);return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(b)},goog.html.TrustedResourceUrl.fromSafeScript=function(a2){return a2=goog.fs.blob.getBlobWithProperties([goog.html.SafeScript.unwrap(a2)],"text/javascript"),a2=goog.fs.url.createObjectUrl(a2),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(a2)},goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse=function(a2){return a2=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScriptURL(a2):a2,new goog.html.TrustedResourceUrl(goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_,a2)},goog.html.TrustedResourceUrl.stringifyParams_=function(a2,b,c){if(c==null)return b;if(typeof c=="string")return c?a2+encodeURIComponent(c):"";for(var d in c){var e=c[d];e=Array.isArray(e)?e:[e];for(var f=0;f<e.length;f++){var g=e[f];g!=null&&(b||(b=a2),b+=(b.length>a2.length?"&":"")+encodeURIComponent(d)+"="+encodeURIComponent(String(g)))}}return b},goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.internal={},goog.string.internal.startsWith=function(a2,b){return a2.lastIndexOf(b,0)==0},goog.string.internal.endsWith=function(a2,b){var c=a2.length-b.length;return 0<=c&&a2.indexOf(b,c)==c},goog.string.internal.caseInsensitiveStartsWith=function(a2,b){return goog.string.internal.caseInsensitiveCompare(b,a2.substr(0,b.length))==0},goog.string.internal.caseInsensitiveEndsWith=function(a2,b){return goog.string.internal.caseInsensitiveCompare(b,a2.substr(a2.length-b.length,b.length))==0},goog.string.internal.caseInsensitiveEquals=function(a2,b){return a2.toLowerCase()==b.toLowerCase()},goog.string.internal.isEmptyOrWhitespace=function(a2){return/^[\s\xa0]*$/.test(a2)},goog.string.internal.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(a2){return a2.trim()}:function(a2){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a2)[1]},goog.string.internal.caseInsensitiveCompare=function(a2,b){return a2=String(a2).toLowerCase(),b=String(b).toLowerCase(),a2<b?-1:a2==b?0:1},goog.string.internal.newLineToBr=function(a2,b){return a2.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")},goog.string.internal.htmlEscape=function(a2,b){if(b)a2=a2.replace(goog.string.internal.AMP_RE_,"&amp;").replace(goog.string.internal.LT_RE_,"&lt;").replace(goog.string.internal.GT_RE_,"&gt;").replace(goog.string.internal.QUOT_RE_,"&quot;").replace(goog.string.internal.SINGLE_QUOTE_RE_,"&#39;").replace(goog.string.internal.NULL_RE_,"&#0;");else{if(!goog.string.internal.ALL_RE_.test(a2))return a2;a2.indexOf("&")!=-1&&(a2=a2.replace(goog.string.internal.AMP_RE_,"&amp;")),a2.indexOf("<")!=-1&&(a2=a2.replace(goog.string.internal.LT_RE_,"&lt;")),a2.indexOf(">")!=-1&&(a2=a2.replace(goog.string.internal.GT_RE_,"&gt;")),a2.indexOf('"')!=-1&&(a2=a2.replace(goog.string.internal.QUOT_RE_,"&quot;")),a2.indexOf("'")!=-1&&(a2=a2.replace(goog.string.internal.SINGLE_QUOTE_RE_,"&#39;")),a2.indexOf("\0")!=-1&&(a2=a2.replace(goog.string.internal.NULL_RE_,"&#0;"))}return a2},goog.string.internal.AMP_RE_=/&/g,goog.string.internal.LT_RE_=/</g,goog.string.internal.GT_RE_=/>/g,goog.string.internal.QUOT_RE_=/"/g,goog.string.internal.SINGLE_QUOTE_RE_=/'/g,goog.string.internal.NULL_RE_=/\x00/g,goog.string.internal.ALL_RE_=/[\x00&<>"']/,goog.string.internal.whitespaceEscape=function(a2,b){return goog.string.internal.newLineToBr(a2.replace(/  /g," &#160;"),b)},goog.string.internal.contains=function(a2,b){return a2.indexOf(b)!=-1},goog.string.internal.caseInsensitiveContains=function(a2,b){return goog.string.internal.contains(a2.toLowerCase(),b.toLowerCase())},goog.string.internal.compareVersions=function(a2,b){var c=0;a2=goog.string.internal.trim(String(a2)).split("."),b=goog.string.internal.trim(String(b)).split(".");for(var d=Math.max(a2.length,b.length),e=0;c==0&&e<d;e++){var f=a2[e]||"",g=b[e]||"";do{if(f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""],g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""],f[0].length==0&&g[0].length==0)break;c=f[1].length==0?0:parseInt(f[1],10);var h=g[1].length==0?0:parseInt(g[1],10);c=goog.string.internal.compareElements_(c,h)||goog.string.internal.compareElements_(f[2].length==0,g[2].length==0)||goog.string.internal.compareElements_(f[2],g[2]),f=f[3],g=g[3]}while(c==0)}return c},goog.string.internal.compareElements_=function(a2,b){return a2<b?-1:a2>b?1:0},goog.html.SafeUrl=function(a2,b){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=a2===goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_&&b||"",this.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez",goog.html.SafeUrl.prototype.implementsGoogStringTypedString=!0,goog.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()},goog.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.DEBUG&&(goog.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeUrlWrappedValue_+"}"}),goog.html.SafeUrl.unwrap=function(a2){return a2 instanceof goog.html.SafeUrl&&a2.constructor===goog.html.SafeUrl&&a2.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?a2.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+a2+"' of type "+goog.typeOf(a2)),"type_error:SafeUrl")},goog.html.SafeUrl.fromConstant=function(a2){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(a2))},goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,goog.html.SafeUrl.isSafeMimeType=function(a2){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(a2)},goog.html.SafeUrl.fromBlob=function(a2){return a2=goog.html.SafeUrl.isSafeMimeType(a2.type)?goog.fs.url.createObjectUrl(a2):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a2)},goog.html.SafeUrl.fromMediaSource=function(a2){return goog.asserts.assert("MediaSource"in goog.global,"No support for MediaSource"),a2=a2 instanceof MediaSource?goog.fs.url.createObjectUrl(a2):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a2)},goog.html.DATA_URL_PATTERN_=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,goog.html.SafeUrl.fromDataUrl=function(a2){a2=a2.replace(/(%0A|%0D)/g,"");var b=a2.match(goog.html.DATA_URL_PATTERN_);return b=b&&goog.html.SafeUrl.isSafeMimeType(b[1]),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(b?a2:goog.html.SafeUrl.INNOCUOUS_STRING)},goog.html.SafeUrl.fromTelUrl=function(a2){return goog.string.internal.caseInsensitiveStartsWith(a2,"tel:")||(a2=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a2)},goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i,goog.html.SafeUrl.fromSipUrl=function(a2){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(a2))||(a2=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a2)},goog.html.SafeUrl.fromFacebookMessengerUrl=function(a2){return goog.string.internal.caseInsensitiveStartsWith(a2,"fb-messenger://share")||(a2=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a2)},goog.html.SafeUrl.fromWhatsAppUrl=function(a2){return goog.string.internal.caseInsensitiveStartsWith(a2,"whatsapp://send")||(a2=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a2)},goog.html.SafeUrl.fromSmsUrl=function(a2){return goog.string.internal.caseInsensitiveStartsWith(a2,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(a2)||(a2=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a2)},goog.html.SafeUrl.isSmsUrlBodyValid_=function(a2){var b=a2.indexOf("#");if(0<b&&(a2=a2.substring(0,b)),b=a2.match(/[?&]body=/gi),!b)return!0;if(1<b.length)return!1;if(a2=a2.match(/[?&]body=([^&]*)/)[1],!a2)return!0;try{decodeURIComponent(a2)}catch{return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(a2)},goog.html.SafeUrl.fromSshUrl=function(a2){return goog.string.internal.caseInsensitiveStartsWith(a2,"ssh://")||(a2=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a2)},goog.html.SafeUrl.sanitizeChromeExtensionUrl=function(a2,b){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//,a2,b)},goog.html.SafeUrl.sanitizeFirefoxExtensionUrl=function(a2,b){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^moz-extension:\/\/([^\/]+)\//,a2,b)},goog.html.SafeUrl.sanitizeEdgeExtensionUrl=function(a2,b){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^ms-browser-extension:\/\/([^\/]+)\//,a2,b)},goog.html.SafeUrl.sanitizeExtensionUrl_=function(a2,b,c){return(a2=a2.exec(b))?(a2=a2[1],(c instanceof goog.string.Const?[goog.string.Const.unwrap(c)]:c.map(function(a3){return goog.string.Const.unwrap(a3)})).indexOf(a2)==-1&&(b=goog.html.SafeUrl.INNOCUOUS_STRING)):b=goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(b)},goog.html.SafeUrl.fromTrustedResourceUrl=function(a2){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(a2))},goog.html.SAFE_URL_PATTERN_=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,goog.html.SafeUrl.SAFE_URL_PATTERN=goog.html.SAFE_URL_PATTERN_,goog.html.SafeUrl.sanitize=function(a2){return a2 instanceof goog.html.SafeUrl?a2:(a2=typeof a2=="object"&&a2.implementsGoogStringTypedString?a2.getTypedStringValue():String(a2),goog.html.SAFE_URL_PATTERN_.test(a2)||(a2=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a2))},goog.html.SafeUrl.sanitizeAssertUnchanged=function(a2,b){return a2 instanceof goog.html.SafeUrl?a2:(a2=typeof a2=="object"&&a2.implementsGoogStringTypedString?a2.getTypedStringValue():String(a2),b&&/^data:/i.test(a2)&&(b=goog.html.SafeUrl.fromDataUrl(a2),b.getTypedStringValue()==a2)?b:(goog.asserts.assert(goog.html.SAFE_URL_PATTERN_.test(a2),"%s does not match the safe URL pattern",a2)||(a2=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a2)))},goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse=function(a2){return new goog.html.SafeUrl(goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_,a2)},goog.html.SafeUrl.ABOUT_BLANK=goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank"),goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_={},goog.html.SafeStyle=function(){this.privateDoNotAccessOrElseSafeStyleWrappedValue_="",this.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeStyle.prototype.implementsGoogStringTypedString=!0,goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeStyle.fromConstant=function(a2){return a2=goog.string.Const.unwrap(a2),a2.length===0?goog.html.SafeStyle.EMPTY:(goog.asserts.assert(goog.string.internal.endsWith(a2,";"),"Last character of style string is not ';': "+a2),goog.asserts.assert(goog.string.internal.contains(a2,":"),`Style string must contain at least one ':', to specify a "name: value" pair: `+a2),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(a2))},goog.html.SafeStyle.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_},goog.DEBUG&&(goog.html.SafeStyle.prototype.toString=function(){return"SafeStyle{"+this.privateDoNotAccessOrElseSafeStyleWrappedValue_+"}"}),goog.html.SafeStyle.unwrap=function(a2){return a2 instanceof goog.html.SafeStyle&&a2.constructor===goog.html.SafeStyle&&a2.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?a2.privateDoNotAccessOrElseSafeStyleWrappedValue_:(goog.asserts.fail("expected object of type SafeStyle, got '"+a2+"' of type "+goog.typeOf(a2)),"type_error:SafeStyle")},goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse=function(a2){return new goog.html.SafeStyle().initSecurityPrivateDoNotAccessOrElse_(a2)},goog.html.SafeStyle.prototype.initSecurityPrivateDoNotAccessOrElse_=function(a2){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_=a2,this},goog.html.SafeStyle.EMPTY=goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(""),goog.html.SafeStyle.INNOCUOUS_STRING="zClosurez",goog.html.SafeStyle.create=function(a2){var b="",c;for(c in a2){if(!/^[-_a-zA-Z0-9]+$/.test(c))throw Error("Name allows only [-_a-zA-Z0-9], got: "+c);var d=a2[c];d!=null&&(d=Array.isArray(d)?goog.array.map(d,goog.html.SafeStyle.sanitizePropertyValue_).join(" "):goog.html.SafeStyle.sanitizePropertyValue_(d),b+=c+":"+d+";")}return b?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(b):goog.html.SafeStyle.EMPTY},goog.html.SafeStyle.sanitizePropertyValue_=function(a2){if(a2 instanceof goog.html.SafeUrl)return'url("'+goog.html.SafeUrl.unwrap(a2).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a2=a2 instanceof goog.string.Const?goog.string.Const.unwrap(a2):goog.html.SafeStyle.sanitizePropertyValueString_(String(a2)),/[{;}]/.test(a2))throw new goog.asserts.AssertionError("Value does not allow [{;}], got: %s.",[a2]);return a2},goog.html.SafeStyle.sanitizePropertyValueString_=function(a2){var b=a2.replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.URL_RE_,"url");if(goog.html.SafeStyle.VALUE_RE_.test(b)){if(goog.html.SafeStyle.COMMENT_RE_.test(a2))return goog.asserts.fail("String value disallows comments, got: "+a2),goog.html.SafeStyle.INNOCUOUS_STRING;if(!goog.html.SafeStyle.hasBalancedQuotes_(a2))return goog.asserts.fail("String value requires balanced quotes, got: "+a2),goog.html.SafeStyle.INNOCUOUS_STRING;if(!goog.html.SafeStyle.hasBalancedSquareBrackets_(a2))return goog.asserts.fail("String value requires balanced square brackets and one identifier per pair of brackets, got: "+a2),goog.html.SafeStyle.INNOCUOUS_STRING}else return goog.asserts.fail("String value allows only "+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+" and simple functions, got: "+a2),goog.html.SafeStyle.INNOCUOUS_STRING;return goog.html.SafeStyle.sanitizeUrl_(a2)},goog.html.SafeStyle.hasBalancedQuotes_=function(a2){for(var b=!0,c=!0,d=0;d<a2.length;d++){var e=a2.charAt(d);e=="'"&&c?b=!b:e=='"'&&b&&(c=!c)}return b&&c},goog.html.SafeStyle.hasBalancedSquareBrackets_=function(a2){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a2.length;d++){var e=a2.charAt(d);if(e=="]"){if(b)return!1;b=!0}else if(e=="["){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b},goog.html.SafeStyle.VALUE_ALLOWED_CHARS_=`[-,."'%_!# a-zA-Z0-9\\[\\]]`,goog.html.SafeStyle.VALUE_RE_=new RegExp("^"+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+"+$"),goog.html.SafeStyle.URL_RE_=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g,goog.html.SafeStyle.ALLOWED_FUNCTIONS_="calc cubic-bezier fit-content hsl hsla linear-gradient matrix minmax repeat rgb rgba (rotate|scale|translate)(X|Y|Z|3d)?".split(" "),goog.html.SafeStyle.FUNCTIONS_RE_=new RegExp("\\b("+goog.html.SafeStyle.ALLOWED_FUNCTIONS_.join("|")+")\\([-+*/0-9a-z.%\\[\\], ]+\\)","g"),goog.html.SafeStyle.COMMENT_RE_=/\/\*/,goog.html.SafeStyle.sanitizeUrl_=function(a2){return a2.replace(goog.html.SafeStyle.URL_RE_,function(a3,c,d,e){var b="";return d=d.replace(/^(['"])(.*)\1$/,function(a4,c2,d2){return b=c2,d2}),a3=goog.html.SafeUrl.sanitize(d).getTypedStringValue(),c+b+a3+b+e})},goog.html.SafeStyle.concat=function(a2){var b="",c=__name(function(a3){Array.isArray(a3)?goog.array.forEach(a3,c):b+=goog.html.SafeStyle.unwrap(a3)},"c");return goog.array.forEach(arguments,c),b?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(b):goog.html.SafeStyle.EMPTY},goog.html.SafeStyleSheet=function(){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_="",this.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeStyleSheet.prototype.implementsGoogStringTypedString=!0,goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeStyleSheet.createRule=function(a2,b){if(goog.string.internal.contains(a2,"<"))throw Error("Selector does not allow '<', got: "+a2);var c=a2.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g,"");if(!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=^$|]+$/.test(c))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+a2);if(!goog.html.SafeStyleSheet.hasBalancedBrackets_(c))throw Error("() and [] in selector must be balanced, got: "+a2);return b instanceof goog.html.SafeStyle||(b=goog.html.SafeStyle.create(b)),a2=a2+"{"+goog.html.SafeStyle.unwrap(b).replace(/</g,"\\3C ")+"}",goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(a2)},goog.html.SafeStyleSheet.hasBalancedBrackets_=function(a2){for(var b={"(":")","[":"]"},c=[],d=0;d<a2.length;d++){var e=a2[d];if(b[e])c.push(b[e]);else if(goog.object.contains(b,e)&&c.pop()!=e)return!1}return c.length==0},goog.html.SafeStyleSheet.concat=function(a2){var b="",c=__name(function(a3){Array.isArray(a3)?goog.array.forEach(a3,c):b+=goog.html.SafeStyleSheet.unwrap(a3)},"c");return goog.array.forEach(arguments,c),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(b)},goog.html.SafeStyleSheet.fromConstant=function(a2){return a2=goog.string.Const.unwrap(a2),a2.length===0?goog.html.SafeStyleSheet.EMPTY:(goog.asserts.assert(!goog.string.internal.contains(a2,"<"),"Forbidden '<' character in style sheet string: "+a2),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(a2))},goog.html.SafeStyleSheet.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_},goog.DEBUG&&(goog.html.SafeStyleSheet.prototype.toString=function(){return"SafeStyleSheet{"+this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_+"}"}),goog.html.SafeStyleSheet.unwrap=function(a2){return a2 instanceof goog.html.SafeStyleSheet&&a2.constructor===goog.html.SafeStyleSheet&&a2.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?a2.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:(goog.asserts.fail("expected object of type SafeStyleSheet, got '"+a2+"' of type "+goog.typeOf(a2)),"type_error:SafeStyleSheet")},goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse=function(a2){return new goog.html.SafeStyleSheet().initSecurityPrivateDoNotAccessOrElse_(a2)},goog.html.SafeStyleSheet.prototype.initSecurityPrivateDoNotAccessOrElse_=function(a2){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=a2,this},goog.html.SafeStyleSheet.EMPTY=goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(""),goog.labs={},goog.labs.userAgent={},goog.labs.userAgent.util={},goog.labs.userAgent.util.getNativeUserAgentString_=function(){var a2=goog.labs.userAgent.util.getNavigator_();return a2&&(a2=a2.userAgent)?a2:""},goog.labs.userAgent.util.getNavigator_=function(){return goog.global.navigator},goog.labs.userAgent.util.userAgent_=goog.labs.userAgent.util.getNativeUserAgentString_(),goog.labs.userAgent.util.setUserAgent=function(a2){goog.labs.userAgent.util.userAgent_=a2||goog.labs.userAgent.util.getNativeUserAgentString_()},goog.labs.userAgent.util.getUserAgent=function(){return goog.labs.userAgent.util.userAgent_},goog.labs.userAgent.util.matchUserAgent=function(a2){var b=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.contains(b,a2)},goog.labs.userAgent.util.matchUserAgentIgnoreCase=function(a2){var b=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.caseInsensitiveContains(b,a2)},goog.labs.userAgent.util.extractVersionTuples=function(a2){for(var b=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,c=[],d;d=b.exec(a2);)c.push([d[1],d[2],d[3]||void 0]);return c},goog.labs.userAgent.browser={},goog.labs.userAgent.browser.matchOpera_=function(){return goog.labs.userAgent.util.matchUserAgent("Opera")},goog.labs.userAgent.browser.matchIE_=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")},goog.labs.userAgent.browser.matchEdgeHtml_=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")},goog.labs.userAgent.browser.matchEdgeChromium_=function(){return goog.labs.userAgent.util.matchUserAgent("Edg/")},goog.labs.userAgent.browser.matchOperaChromium_=function(){return goog.labs.userAgent.util.matchUserAgent("OPR")},goog.labs.userAgent.browser.matchFirefox_=function(){return goog.labs.userAgent.util.matchUserAgent("Firefox")||goog.labs.userAgent.util.matchUserAgent("FxiOS")},goog.labs.userAgent.browser.matchSafari_=function(){return goog.labs.userAgent.util.matchUserAgent("Safari")&&!(goog.labs.userAgent.browser.matchChrome_()||goog.labs.userAgent.browser.matchCoast_()||goog.labs.userAgent.browser.matchOpera_()||goog.labs.userAgent.browser.matchEdgeHtml_()||goog.labs.userAgent.browser.matchEdgeChromium_()||goog.labs.userAgent.browser.matchOperaChromium_()||goog.labs.userAgent.browser.matchFirefox_()||goog.labs.userAgent.browser.isSilk()||goog.labs.userAgent.util.matchUserAgent("Android"))},goog.labs.userAgent.browser.matchCoast_=function(){return goog.labs.userAgent.util.matchUserAgent("Coast")},goog.labs.userAgent.browser.matchIosWebview_=function(){return(goog.labs.userAgent.util.matchUserAgent("iPad")||goog.labs.userAgent.util.matchUserAgent("iPhone"))&&!goog.labs.userAgent.browser.matchSafari_()&&!goog.labs.userAgent.browser.matchChrome_()&&!goog.labs.userAgent.browser.matchCoast_()&&!goog.labs.userAgent.browser.matchFirefox_()&&goog.labs.userAgent.util.matchUserAgent("AppleWebKit")},goog.labs.userAgent.browser.matchChrome_=function(){return(goog.labs.userAgent.util.matchUserAgent("Chrome")||goog.labs.userAgent.util.matchUserAgent("CriOS"))&&!goog.labs.userAgent.browser.matchEdgeHtml_()},goog.labs.userAgent.browser.matchAndroidBrowser_=function(){return goog.labs.userAgent.util.matchUserAgent("Android")&&!(goog.labs.userAgent.browser.isChrome()||goog.labs.userAgent.browser.isFirefox()||goog.labs.userAgent.browser.isOpera()||goog.labs.userAgent.browser.isSilk())},goog.labs.userAgent.browser.isOpera=goog.labs.userAgent.browser.matchOpera_,goog.labs.userAgent.browser.isIE=goog.labs.userAgent.browser.matchIE_,goog.labs.userAgent.browser.isEdge=goog.labs.userAgent.browser.matchEdgeHtml_,goog.labs.userAgent.browser.isEdgeChromium=goog.labs.userAgent.browser.matchEdgeChromium_,goog.labs.userAgent.browser.isOperaChromium=goog.labs.userAgent.browser.matchOperaChromium_,goog.labs.userAgent.browser.isFirefox=goog.labs.userAgent.browser.matchFirefox_,goog.labs.userAgent.browser.isSafari=goog.labs.userAgent.browser.matchSafari_,goog.labs.userAgent.browser.isCoast=goog.labs.userAgent.browser.matchCoast_,goog.labs.userAgent.browser.isIosWebview=goog.labs.userAgent.browser.matchIosWebview_,goog.labs.userAgent.browser.isChrome=goog.labs.userAgent.browser.matchChrome_,goog.labs.userAgent.browser.isAndroidBrowser=goog.labs.userAgent.browser.matchAndroidBrowser_,goog.labs.userAgent.browser.isSilk=function(){return goog.labs.userAgent.util.matchUserAgent("Silk")},goog.labs.userAgent.browser.getVersion=function(){function a2(a3){return a3=goog.array.find(a3,d),c[a3]||""}__name(a2,"a");var b=goog.labs.userAgent.util.getUserAgent();if(goog.labs.userAgent.browser.isIE())return goog.labs.userAgent.browser.getIEVersion_(b);b=goog.labs.userAgent.util.extractVersionTuples(b);var c={};goog.array.forEach(b,function(a3){c[a3[0]]=a3[1]});var d=goog.partial(goog.object.containsKey,c);return goog.labs.userAgent.browser.isOpera()?a2(["Version","Opera"]):goog.labs.userAgent.browser.isEdge()?a2(["Edge"]):goog.labs.userAgent.browser.isEdgeChromium()?a2(["Edg"]):goog.labs.userAgent.browser.isChrome()?a2(["Chrome","CriOS","HeadlessChrome"]):(b=b[2])&&b[1]||""},goog.labs.userAgent.browser.isVersionOrHigher=function(a2){return 0<=goog.string.internal.compareVersions(goog.labs.userAgent.browser.getVersion(),a2)},goog.labs.userAgent.browser.getIEVersion_=function(a2){var b=/rv: *([\d\.]*)/.exec(a2);if(b&&b[1])return b[1];b="";var c=/MSIE +([\d\.]+)/.exec(a2);if(c&&c[1])if(a2=/Trident\/(\d.\d)/.exec(a2),c[1]=="7.0")if(a2&&a2[1])switch(a2[1]){case"4.0":b="8.0";break;case"5.0":b="9.0";break;case"6.0":b="10.0";break;case"7.0":b="11.0"}else b="7.0";else b=c[1];return b},goog.html.SafeHtml=function(){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_="",this.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_,this.dir_=null},goog.html.SafeHtml.ENABLE_ERROR_MESSAGES=goog.DEBUG,goog.html.SafeHtml.SUPPORT_STYLE_ATTRIBUTE=!0,goog.html.SafeHtml.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeHtml.prototype.getDirection=function(){return this.dir_},goog.html.SafeHtml.prototype.implementsGoogStringTypedString=!0,goog.html.SafeHtml.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()},goog.DEBUG&&(goog.html.SafeHtml.prototype.toString=function(){return"SafeHtml{"+this.privateDoNotAccessOrElseSafeHtmlWrappedValue_+"}"}),goog.html.SafeHtml.unwrap=function(a2){return goog.html.SafeHtml.unwrapTrustedHTML(a2).toString()},goog.html.SafeHtml.unwrapTrustedHTML=function(a2){return a2 instanceof goog.html.SafeHtml&&a2.constructor===goog.html.SafeHtml&&a2.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?a2.privateDoNotAccessOrElseSafeHtmlWrappedValue_:(goog.asserts.fail("expected object of type SafeHtml, got '"+a2+"' of type "+goog.typeOf(a2)),"type_error:SafeHtml")},goog.html.SafeHtml.htmlEscape=function(a2){if(a2 instanceof goog.html.SafeHtml)return a2;var b=typeof a2=="object",c=null;return b&&a2.implementsGoogI18nBidiDirectionalString&&(c=a2.getDirection()),a2=b&&a2.implementsGoogStringTypedString?a2.getTypedStringValue():String(a2),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(a2),c)},goog.html.SafeHtml.htmlEscapePreservingNewlines=function(a2){return a2 instanceof goog.html.SafeHtml?a2:(a2=goog.html.SafeHtml.htmlEscape(a2),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(goog.html.SafeHtml.unwrap(a2)),a2.getDirection()))},goog.html.SafeHtml.htmlEscapePreservingNewlinesAndSpaces=function(a2){return a2 instanceof goog.html.SafeHtml?a2:(a2=goog.html.SafeHtml.htmlEscape(a2),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(goog.html.SafeHtml.unwrap(a2)),a2.getDirection()))},goog.html.SafeHtml.from=goog.html.SafeHtml.htmlEscape,goog.html.SafeHtml.comment=function(a2){return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!--"+goog.string.internal.htmlEscape(a2)+"-->",null)},goog.html.SafeHtml.VALID_NAMES_IN_TAG_=/^[a-zA-Z0-9-]+$/,goog.html.SafeHtml.URL_ATTRIBUTES_={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.html.SafeHtml.create=function(a2,b,c){return goog.html.SafeHtml.verifyTagName(String(a2)),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(a2),b,c)},goog.html.SafeHtml.verifyTagName=function(a2){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(a2))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Invalid tag name <"+a2+">.":"");if(a2.toUpperCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Tag name <"+a2+"> is not allowed for SafeHtml.":"")},goog.html.SafeHtml.createIframe=function(a2,b,c,d){a2&&goog.html.TrustedResourceUrl.unwrap(a2);var e={};return e.src=a2||null,e.srcdoc=b&&goog.html.SafeHtml.unwrap(b),a2=goog.html.SafeHtml.combineAttributes(e,{sandbox:""},c),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",a2,d)},goog.html.SafeHtml.createSandboxIframe=function(a2,b,c,d){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"The browser does not support sandboxed iframes.":"");var e={};return e.src=a2?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(a2)):null,e.srcdoc=b||null,e.sandbox="",a2=goog.html.SafeHtml.combineAttributes(e,{},c),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",a2,d)},goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype},goog.html.SafeHtml.createScriptSrc=function(a2,b){return goog.html.TrustedResourceUrl.unwrap(a2),a2=goog.html.SafeHtml.combineAttributes({src:a2},{},b),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",a2)},goog.html.SafeHtml.createScript=function(a2,b){for(var c in b){var d=c.toLowerCase();if(d=="language"||d=="src"||d=="text"||d=="type")throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot set "'+d+'" attribute':"")}for(c="",a2=goog.array.concat(a2),d=0;d<a2.length;d++)c+=goog.html.SafeScript.unwrap(a2[d]);return a2=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(c,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",b,a2)},goog.html.SafeHtml.createStyle=function(a2,b){b=goog.html.SafeHtml.combineAttributes({type:"text/css"},{},b);var c="";a2=goog.array.concat(a2);for(var d=0;d<a2.length;d++)c+=goog.html.SafeStyleSheet.unwrap(a2[d]);return a2=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(c,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style",b,a2)},goog.html.SafeHtml.createMetaRefresh=function(a2,b){return a2=goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(a2)),(goog.labs.userAgent.browser.isIE()||goog.labs.userAgent.browser.isEdge())&&goog.string.internal.contains(a2,";")&&(a2="'"+a2.replace(/'/g,"%27")+"'"),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta",{"http-equiv":"refresh",content:(b||0)+"; url="+a2})},goog.html.SafeHtml.getAttrNameAndValue_=function(a2,b,c){if(c instanceof goog.string.Const)c=goog.string.Const.unwrap(c);else if(b.toLowerCase()=="style")if(goog.html.SafeHtml.SUPPORT_STYLE_ATTRIBUTE)c=goog.html.SafeHtml.getStyleValue_(c);else throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "style" not supported.':"");else{if(/^on/i.test(b))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+b+'" requires goog.string.Const value, "'+c+'" given.':"");if(b.toLowerCase()in goog.html.SafeHtml.URL_ATTRIBUTES_)if(c instanceof goog.html.TrustedResourceUrl)c=goog.html.TrustedResourceUrl.unwrap(c);else if(c instanceof goog.html.SafeUrl)c=goog.html.SafeUrl.unwrap(c);else if(typeof c=="string")c=goog.html.SafeUrl.sanitize(c).getTypedStringValue();else throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+b+'" on tag "'+a2+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+c+'" given.':"")}return c.implementsGoogStringTypedString&&(c=c.getTypedStringValue()),goog.asserts.assert(typeof c=="string"||typeof c=="number","String or number value expected, got "+typeof c+" with value: "+c),b+'="'+goog.string.internal.htmlEscape(String(c))+'"'},goog.html.SafeHtml.getStyleValue_=function(a2){if(!goog.isObject(a2))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof a2+" given: "+a2:"");return a2 instanceof goog.html.SafeStyle||(a2=goog.html.SafeStyle.create(a2)),goog.html.SafeStyle.unwrap(a2)},goog.html.SafeHtml.createWithDir=function(a2,b,c,d){return b=goog.html.SafeHtml.create(b,c,d),b.dir_=a2,b},goog.html.SafeHtml.join=function(a2,b){a2=goog.html.SafeHtml.htmlEscape(a2);var c=a2.getDirection(),d=[],e=__name(function(a3){Array.isArray(a3)?goog.array.forEach(a3,e):(a3=goog.html.SafeHtml.htmlEscape(a3),d.push(goog.html.SafeHtml.unwrap(a3)),a3=a3.getDirection(),c==goog.i18n.bidi.Dir.NEUTRAL?c=a3:a3!=goog.i18n.bidi.Dir.NEUTRAL&&c!=a3&&(c=null))},"e");return goog.array.forEach(b,e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(d.join(goog.html.SafeHtml.unwrap(a2)),c)},goog.html.SafeHtml.concat=function(a2){return goog.html.SafeHtml.join(goog.html.SafeHtml.EMPTY,Array.prototype.slice.call(arguments))},goog.html.SafeHtml.concatWithDir=function(a2,b){var c=goog.html.SafeHtml.concat(goog.array.slice(arguments,1));return c.dir_=a2,c},goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse=function(a2,b){return new goog.html.SafeHtml().initSecurityPrivateDoNotAccessOrElse_(a2,b)},goog.html.SafeHtml.prototype.initSecurityPrivateDoNotAccessOrElse_=function(a2,b){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createHTML(a2):a2,this.dir_=b,this},goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse=function(a2,b,c){var d=null,e="<"+a2+goog.html.SafeHtml.stringifyAttributes(a2,b);return c==null?c=[]:Array.isArray(c)||(c=[c]),goog.dom.tags.isVoidTag(a2.toLowerCase())?(goog.asserts.assert(!c.length,"Void tag <"+a2+"> does not allow content."),e+=">"):(d=goog.html.SafeHtml.concat(c),e+=">"+goog.html.SafeHtml.unwrap(d)+"</"+a2+">",d=d.getDirection()),(a2=b&&b.dir)&&(d=/^(ltr|rtl|auto)$/i.test(a2)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(e,d)},goog.html.SafeHtml.stringifyAttributes=function(a2,b){var c="";if(b)for(var d in b){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(d))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Invalid attribute name "'+d+'".':"");var e=b[d];e!=null&&(c+=" "+goog.html.SafeHtml.getAttrNameAndValue_(a2,d,e))}return c},goog.html.SafeHtml.combineAttributes=function(a2,b,c){var d={},e;for(e in a2)goog.asserts.assert(e.toLowerCase()==e,"Must be lower case"),d[e]=a2[e];for(e in b)goog.asserts.assert(e.toLowerCase()==e,"Must be lower case"),d[e]=b[e];if(c)for(e in c){var f=e.toLowerCase();if(f in a2)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot override "'+f+'" attribute, got "'+e+'" with value "'+c[e]+'"':"");f in b&&delete d[f],d[e]=c[e]}return d},goog.html.SafeHtml.DOCTYPE_HTML=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.EMPTY=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.BR=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>",goog.i18n.bidi.Dir.NEUTRAL),goog.html.uncheckedconversions={},goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract=function(a2,b,c){return goog.asserts.assertString(goog.string.Const.unwrap(a2),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(a2)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(b,c||null)},goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(a2,b){return goog.asserts.assertString(goog.string.Const.unwrap(a2),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(a2)),"must provide non-empty justification"),goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(b)},goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(a2,b){return goog.asserts.assertString(goog.string.Const.unwrap(a2),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(a2)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(b)},goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(a2,b){return goog.asserts.assertString(goog.string.Const.unwrap(a2),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(a2)),"must provide non-empty justification"),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(b)},goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(a2,b){return goog.asserts.assertString(goog.string.Const.unwrap(a2),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(a2)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(b)},goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(a2,b){return goog.asserts.assertString(goog.string.Const.unwrap(a2),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(a2)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(b)},goog.dom.safe={},goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"},goog.dom.safe.insertAdjacentHtml=function(a2,b,c){a2.insertAdjacentHTML(b,goog.html.SafeHtml.unwrapTrustedHTML(c))},goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.dom.safe.isInnerHtmlCleanupRecursive_=goog.functions.cacheReturnValue(function(){if(goog.DEBUG&&typeof document>"u")return!1;var a2=document.createElement("div"),b=document.createElement("div");return b.appendChild(document.createElement("div")),a2.appendChild(b),goog.DEBUG&&!a2.firstChild?!1:(b=a2.firstChild.firstChild,a2.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(goog.html.SafeHtml.EMPTY),!b.parentElement)}),goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(a2,b){if(goog.dom.safe.isInnerHtmlCleanupRecursive_())for(;a2.lastChild;)a2.removeChild(a2.lastChild);a2.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(b)},goog.dom.safe.setInnerHtml=function(a2,b){if(goog.asserts.ENABLE_ASSERTS){var c=a2.tagName.toUpperCase();if(goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[c])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+a2.tagName+".")}goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(a2,b)},goog.dom.safe.setOuterHtml=function(a2,b){a2.outerHTML=goog.html.SafeHtml.unwrapTrustedHTML(b)},goog.dom.safe.setFormElementAction=function(a2,b){b=b instanceof goog.html.SafeUrl?b:goog.html.SafeUrl.sanitizeAssertUnchanged(b),goog.dom.asserts.assertIsHTMLFormElement(a2).action=goog.html.SafeUrl.unwrap(b)},goog.dom.safe.setButtonFormAction=function(a2,b){b=b instanceof goog.html.SafeUrl?b:goog.html.SafeUrl.sanitizeAssertUnchanged(b),goog.dom.asserts.assertIsHTMLButtonElement(a2).formAction=goog.html.SafeUrl.unwrap(b)},goog.dom.safe.setInputFormAction=function(a2,b){b=b instanceof goog.html.SafeUrl?b:goog.html.SafeUrl.sanitizeAssertUnchanged(b),goog.dom.asserts.assertIsHTMLInputElement(a2).formAction=goog.html.SafeUrl.unwrap(b)},goog.dom.safe.setStyle=function(a2,b){a2.style.cssText=goog.html.SafeStyle.unwrap(b)},goog.dom.safe.documentWrite=function(a2,b){a2.write(goog.html.SafeHtml.unwrapTrustedHTML(b))},goog.dom.safe.setAnchorHref=function(a2,b){goog.dom.asserts.assertIsHTMLAnchorElement(a2),b=b instanceof goog.html.SafeUrl?b:goog.html.SafeUrl.sanitizeAssertUnchanged(b),a2.href=goog.html.SafeUrl.unwrap(b)},goog.dom.safe.setImageSrc=function(a2,b){if(goog.dom.asserts.assertIsHTMLImageElement(a2),!(b instanceof goog.html.SafeUrl)){var c=/^data:image\//i.test(b);b=goog.html.SafeUrl.sanitizeAssertUnchanged(b,c)}a2.src=goog.html.SafeUrl.unwrap(b)},goog.dom.safe.setAudioSrc=function(a2,b){if(goog.dom.asserts.assertIsHTMLAudioElement(a2),!(b instanceof goog.html.SafeUrl)){var c=/^data:audio\//i.test(b);b=goog.html.SafeUrl.sanitizeAssertUnchanged(b,c)}a2.src=goog.html.SafeUrl.unwrap(b)},goog.dom.safe.setVideoSrc=function(a2,b){if(goog.dom.asserts.assertIsHTMLVideoElement(a2),!(b instanceof goog.html.SafeUrl)){var c=/^data:video\//i.test(b);b=goog.html.SafeUrl.sanitizeAssertUnchanged(b,c)}a2.src=goog.html.SafeUrl.unwrap(b)},goog.dom.safe.setEmbedSrc=function(a2,b){goog.dom.asserts.assertIsHTMLEmbedElement(a2),a2.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(b)},goog.dom.safe.setFrameSrc=function(a2,b){goog.dom.asserts.assertIsHTMLFrameElement(a2),a2.src=goog.html.TrustedResourceUrl.unwrap(b)},goog.dom.safe.setIframeSrc=function(a2,b){goog.dom.asserts.assertIsHTMLIFrameElement(a2),a2.src=goog.html.TrustedResourceUrl.unwrap(b)},goog.dom.safe.setIframeSrcdoc=function(a2,b){goog.dom.asserts.assertIsHTMLIFrameElement(a2),a2.srcdoc=goog.html.SafeHtml.unwrapTrustedHTML(b)},goog.dom.safe.setLinkHrefAndRel=function(a2,b,c){goog.dom.asserts.assertIsHTMLLinkElement(a2),a2.rel=c,goog.string.internal.caseInsensitiveContains(c,"stylesheet")?(goog.asserts.assert(b instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),a2.href=goog.html.TrustedResourceUrl.unwrap(b)):a2.href=b instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrap(b):b instanceof goog.html.SafeUrl?goog.html.SafeUrl.unwrap(b):goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitizeAssertUnchanged(b))},goog.dom.safe.setObjectData=function(a2,b){goog.dom.asserts.assertIsHTMLObjectElement(a2),a2.data=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(b)},goog.dom.safe.setScriptSrc=function(a2,b){goog.dom.asserts.assertIsHTMLScriptElement(a2),a2.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(b),(b=goog.getScriptNonce())&&a2.setAttribute("nonce",b)},goog.dom.safe.setScriptContent=function(a2,b){goog.dom.asserts.assertIsHTMLScriptElement(a2),a2.text=goog.html.SafeScript.unwrapTrustedScript(b),(b=goog.getScriptNonce())&&a2.setAttribute("nonce",b)},goog.dom.safe.setLocationHref=function(a2,b){goog.dom.asserts.assertIsLocation(a2),b=b instanceof goog.html.SafeUrl?b:goog.html.SafeUrl.sanitizeAssertUnchanged(b),a2.href=goog.html.SafeUrl.unwrap(b)},goog.dom.safe.assignLocation=function(a2,b){goog.dom.asserts.assertIsLocation(a2),b=b instanceof goog.html.SafeUrl?b:goog.html.SafeUrl.sanitizeAssertUnchanged(b),a2.assign(goog.html.SafeUrl.unwrap(b))},goog.dom.safe.replaceLocation=function(a2,b){b=b instanceof goog.html.SafeUrl?b:goog.html.SafeUrl.sanitizeAssertUnchanged(b),a2.replace(goog.html.SafeUrl.unwrap(b))},goog.dom.safe.openInWindow=function(a2,b,c,d,e){return a2=a2 instanceof goog.html.SafeUrl?a2:goog.html.SafeUrl.sanitizeAssertUnchanged(a2),b=b||goog.global,c=c instanceof goog.string.Const?goog.string.Const.unwrap(c):c||"",b.open(goog.html.SafeUrl.unwrap(a2),c,d,e)},goog.dom.safe.parseFromStringHtml=function(a2,b){return goog.dom.safe.parseFromString(a2,b,"text/html")},goog.dom.safe.parseFromString=function(a2,b,c){return a2.parseFromString(goog.html.SafeHtml.unwrapTrustedHTML(b),c)},goog.dom.safe.createImageFromBlob=function(a2){if(!/^image\/.*/g.test(a2.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var b=goog.global.URL.createObjectURL(a2);return a2=new goog.global.Image,a2.onload=function(){goog.global.URL.revokeObjectURL(b)},goog.dom.safe.setImageSrc(a2,goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Image blob URL."),b)),a2},goog.string.DETECT_DOUBLE_ESCAPING=!1,goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1,goog.string.Unicode={NBSP:" "},goog.string.startsWith=goog.string.internal.startsWith,goog.string.endsWith=goog.string.internal.endsWith,goog.string.caseInsensitiveStartsWith=goog.string.internal.caseInsensitiveStartsWith,goog.string.caseInsensitiveEndsWith=goog.string.internal.caseInsensitiveEndsWith,goog.string.caseInsensitiveEquals=goog.string.internal.caseInsensitiveEquals,goog.string.subs=function(a2,b){for(var c=a2.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")},goog.string.collapseWhitespace=function(a2){return a2.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},goog.string.isEmptyOrWhitespace=goog.string.internal.isEmptyOrWhitespace,goog.string.isEmptyString=function(a2){return a2.length==0},goog.string.isEmpty=goog.string.isEmptyOrWhitespace,goog.string.isEmptyOrWhitespaceSafe=function(a2){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(a2))},goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe,goog.string.isBreakingWhitespace=function(a2){return!/[^\t\n\r ]/.test(a2)},goog.string.isAlpha=function(a2){return!/[^a-zA-Z]/.test(a2)},goog.string.isNumeric=function(a2){return!/[^0-9]/.test(a2)},goog.string.isAlphaNumeric=function(a2){return!/[^a-zA-Z0-9]/.test(a2)},goog.string.isSpace=function(a2){return a2==" "},goog.string.isUnicodeChar=function(a2){return a2.length==1&&" "<=a2&&"~">=a2||"€"<=a2&&"�">=a2},goog.string.stripNewlines=function(a2){return a2.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(a2){return a2.replace(/(\r\n|\r|\n)/g,`
`)},goog.string.normalizeWhitespace=function(a2){return a2.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(a2){return a2.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(a2){return a2.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(a2){return a2.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(a2){return a2.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(a2,b,c){if(a2==b)return 0;if(!a2)return-1;if(!b)return 1;for(var d=a2.toLowerCase().match(c),e=b.toLowerCase().match(c),f=Math.min(d.length,e.length),g=0;g<f;g++){c=d[g];var h=e[g];if(c!=h)return a2=parseInt(c,10),!isNaN(a2)&&(b=parseInt(h,10),!isNaN(b)&&a2-b)?a2-b:c<h?-1:1}return d.length!=e.length?d.length-e.length:a2<b?-1:1},goog.string.intAwareCompare=function(a2,b){return goog.string.numberAwareCompare_(a2,b,/\d+|\D+/g)},goog.string.floatAwareCompare=function(a2,b){return goog.string.numberAwareCompare_(a2,b,/\d+|\.\d+|\D+/g)},goog.string.numerateCompare=goog.string.floatAwareCompare,goog.string.urlEncode=function(a2){return encodeURIComponent(String(a2))},goog.string.urlDecode=function(a2){return decodeURIComponent(a2.replace(/\+/g," "))},goog.string.newLineToBr=goog.string.internal.newLineToBr,goog.string.htmlEscape=function(a2,b){return a2=goog.string.internal.htmlEscape(a2,b),goog.string.DETECT_DOUBLE_ESCAPING&&(a2=a2.replace(goog.string.E_RE_,"&#101;")),a2},goog.string.E_RE_=/e/g,goog.string.unescapeEntities=function(a2){return goog.string.contains(a2,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(a2):goog.string.unescapePureXmlEntities_(a2):a2},goog.string.unescapeEntitiesWithDocument=function(a2,b){return goog.string.contains(a2,"&")?goog.string.unescapeEntitiesUsingDom_(a2,b):a2},goog.string.unescapeEntitiesUsingDom_=function(a2,b){var c={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},d=b?b.createElement("div"):goog.global.document.createElement("div");return a2.replace(goog.string.HTML_ENTITY_PATTERN_,function(a3,b2){var e=c[a3];return e||(b2.charAt(0)=="#"&&(b2=+("0"+b2.substr(1)),isNaN(b2)||(e=String.fromCharCode(b2))),e||(goog.dom.safe.setInnerHtml(d,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),a3+" ")),e=d.firstChild.nodeValue.slice(0,-1)),c[a3]=e)})},goog.string.unescapePureXmlEntities_=function(a2){return a2.replace(/&([^;]+);/g,function(a3,c){switch(c){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return c.charAt(0)!="#"||(c=+("0"+c.substr(1)),isNaN(c))?a3:String.fromCharCode(c)}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(a2,b){return goog.string.newLineToBr(a2.replace(/  /g," &#160;"),b)},goog.string.preserveSpaces=function(a2){return a2.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(a2,b){for(var c=b.length,d=0;d<c;d++){var e=c==1?b:b.charAt(d);if(a2.charAt(0)==e&&a2.charAt(a2.length-1)==e)return a2.substring(1,a2.length-1)}return a2},goog.string.truncate=function(a2,b,c){return c&&(a2=goog.string.unescapeEntities(a2)),a2.length>b&&(a2=a2.substring(0,b-3)+"..."),c&&(a2=goog.string.htmlEscape(a2)),a2},goog.string.truncateMiddle=function(a2,b,c,d){if(c&&(a2=goog.string.unescapeEntities(a2)),d&&a2.length>b){d>b&&(d=b);var e=a2.length-d;a2=a2.substring(0,b-d)+"..."+a2.substring(e)}else a2.length>b&&(d=Math.floor(b/2),e=a2.length-d,a2=a2.substring(0,d+b%2)+"..."+a2.substring(e));return c&&(a2=goog.string.htmlEscape(a2)),a2},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(a2){a2=String(a2);for(var b=['"'],c=0;c<a2.length;c++){var d=a2.charAt(c),e=d.charCodeAt(0);b[c+1]=goog.string.specialEscapeChars_[d]||(31<e&&127>e?d:goog.string.escapeChar(d))}return b.push('"'),b.join("")},goog.string.escapeString=function(a2){for(var b=[],c=0;c<a2.length;c++)b[c]=goog.string.escapeChar(a2.charAt(c));return b.join("")},goog.string.escapeChar=function(a2){if(a2 in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[a2];if(a2 in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[a2]=goog.string.specialEscapeChars_[a2];var b=a2.charCodeAt(0);if(31<b&&127>b)var c=a2;else 256>b?(c="\\x",(16>b||256<b)&&(c+="0")):(c="\\u",4096>b&&(c+="0")),c+=b.toString(16).toUpperCase();return goog.string.jsEscapeCache_[a2]=c},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(a2,b){return a2&&b?a2.split(b).length-1:0},goog.string.removeAt=function(a2,b,c){var d=a2;return 0<=b&&b<a2.length&&0<c&&(d=a2.substr(0,b)+a2.substr(b+c,a2.length-b-c)),d},goog.string.remove=function(a2,b){return a2.replace(b,"")},goog.string.removeAll=function(a2,b){return b=new RegExp(goog.string.regExpEscape(b),"g"),a2.replace(b,"")},goog.string.replaceAll=function(a2,b,c){return b=new RegExp(goog.string.regExpEscape(b),"g"),a2.replace(b,c.replace(/\$/g,"$$$$"))},goog.string.regExpEscape=function(a2){return String(a2).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},goog.string.repeat=String.prototype.repeat?function(a2,b){return a2.repeat(b)}:function(a2,b){return Array(b+1).join(a2)},goog.string.padNumber=function(a2,b,c){return a2=c!==void 0?a2.toFixed(c):String(a2),c=a2.indexOf("."),c==-1&&(c=a2.length),goog.string.repeat("0",Math.max(0,b-c))+a2},goog.string.makeSafe=function(a2){return a2==null?"":String(a2)},goog.string.buildString=function(a2){return Array.prototype.join.call(arguments,"")},goog.string.getRandomString=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^goog.now()).toString(36)},goog.string.compareVersions=goog.string.internal.compareVersions,goog.string.hashCode=function(a2){for(var b=0,c=0;c<a2.length;++c)b=31*b+a2.charCodeAt(c)>>>0;return b},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(a2){var b=Number(a2);return b==0&&goog.string.isEmptyOrWhitespace(a2)?NaN:b},goog.string.isLowerCamelCase=function(a2){return/^[a-z]+([A-Z][a-z]*)*$/.test(a2)},goog.string.isUpperCamelCase=function(a2){return/^([A-Z][a-z]*)+$/.test(a2)},goog.string.toCamelCase=function(a2){return String(a2).replace(/\-([a-z])/g,function(a3,c){return c.toUpperCase()})},goog.string.toSelectorCase=function(a2){return String(a2).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(a2,b){return b=typeof b=="string"?goog.string.regExpEscape(b):"\\s",a2.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a3,b2,e){return b2+e.toUpperCase()})},goog.string.capitalize=function(a2){return String(a2.charAt(0)).toUpperCase()+String(a2.substr(1)).toLowerCase()},goog.string.parseInt=function(a2){return isFinite(a2)&&(a2=String(a2)),typeof a2=="string"?/^\s*-?0x/i.test(a2)?parseInt(a2,16):parseInt(a2,10):NaN},goog.string.splitLimit=function(a2,b,c){a2=a2.split(b);for(var d=[];0<c&&a2.length;)d.push(a2.shift()),c--;return a2.length&&d.push(a2.join(b)),d},goog.string.lastComponent=function(a2,b){if(b)typeof b=="string"&&(b=[b]);else return a2;for(var c=-1,d=0;d<b.length;d++)if(b[d]!=""){var e=a2.lastIndexOf(b[d]);e>c&&(c=e)}return c==-1?a2:a2.slice(c+1)},goog.string.editDistance=function(a2,b){var c=[],d=[];if(a2==b)return 0;if(!a2.length||!b.length)return Math.max(a2.length,b.length);for(var e=0;e<b.length+1;e++)c[e]=e;for(e=0;e<a2.length;e++){d[0]=e+1;for(var f=0;f<b.length;f++)d[f+1]=Math.min(d[f]+1,c[f+1]+1,c[f]+ +(a2[e]!=b[f]));for(f=0;f<c.length;f++)c[f]=d[f]}return d[b.length]},goog.labs.userAgent.engine={},goog.labs.userAgent.engine.isPresto=function(){return goog.labs.userAgent.util.matchUserAgent("Presto")},goog.labs.userAgent.engine.isTrident=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")},goog.labs.userAgent.engine.isEdge=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")},goog.labs.userAgent.engine.isWebKit=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("WebKit")&&!goog.labs.userAgent.engine.isEdge()},goog.labs.userAgent.engine.isGecko=function(){return goog.labs.userAgent.util.matchUserAgent("Gecko")&&!goog.labs.userAgent.engine.isWebKit()&&!goog.labs.userAgent.engine.isTrident()&&!goog.labs.userAgent.engine.isEdge()},goog.labs.userAgent.engine.getVersion=function(){var a2=goog.labs.userAgent.util.getUserAgent();if(a2){a2=goog.labs.userAgent.util.extractVersionTuples(a2);var b=goog.labs.userAgent.engine.getEngineTuple_(a2);if(b)return b[0]=="Gecko"?goog.labs.userAgent.engine.getVersionForKey_(a2,"Firefox"):b[1];a2=a2[0];var c;if(a2&&(c=a2[2])&&(c=/Trident\/([^\s;]+)/.exec(c)))return c[1]}return""},goog.labs.userAgent.engine.getEngineTuple_=function(a2){if(!goog.labs.userAgent.engine.isEdge())return a2[1];for(var b=0;b<a2.length;b++){var c=a2[b];if(c[0]=="Edge")return c}},goog.labs.userAgent.engine.isVersionOrHigher=function(a2){return 0<=goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(),a2)},goog.labs.userAgent.engine.getVersionForKey_=function(a2,b){return(a2=goog.array.find(a2,function(a3){return b==a3[0]}))&&a2[1]||""},goog.labs.userAgent.platform={},goog.labs.userAgent.platform.isAndroid=function(){return goog.labs.userAgent.util.matchUserAgent("Android")},goog.labs.userAgent.platform.isIpod=function(){return goog.labs.userAgent.util.matchUserAgent("iPod")},goog.labs.userAgent.platform.isIphone=function(){return goog.labs.userAgent.util.matchUserAgent("iPhone")&&!goog.labs.userAgent.util.matchUserAgent("iPod")&&!goog.labs.userAgent.util.matchUserAgent("iPad")},goog.labs.userAgent.platform.isIpad=function(){return goog.labs.userAgent.util.matchUserAgent("iPad")},goog.labs.userAgent.platform.isIos=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpad()||goog.labs.userAgent.platform.isIpod()},goog.labs.userAgent.platform.isMacintosh=function(){return goog.labs.userAgent.util.matchUserAgent("Macintosh")},goog.labs.userAgent.platform.isLinux=function(){return goog.labs.userAgent.util.matchUserAgent("Linux")},goog.labs.userAgent.platform.isWindows=function(){return goog.labs.userAgent.util.matchUserAgent("Windows")},goog.labs.userAgent.platform.isChromeOS=function(){return goog.labs.userAgent.util.matchUserAgent("CrOS")},goog.labs.userAgent.platform.isChromecast=function(){return goog.labs.userAgent.util.matchUserAgent("CrKey")},goog.labs.userAgent.platform.isKaiOS=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("KaiOS")},goog.labs.userAgent.platform.getVersion=function(){var a2=goog.labs.userAgent.util.getUserAgent(),b="";return goog.labs.userAgent.platform.isWindows()?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a2=b.exec(a2))?a2[1]:"0.0"):goog.labs.userAgent.platform.isIos()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a2=b.exec(a2))&&a2[1].replace(/_/g,".")):goog.labs.userAgent.platform.isMacintosh()?(b=/Mac OS X ([0-9_.]+)/,b=(a2=b.exec(a2))?a2[1].replace(/_/g,"."):"10"):goog.labs.userAgent.platform.isKaiOS()?(b=/(?:KaiOS)\/(\S+)/i,b=(a2=b.exec(a2))&&a2[1]):goog.labs.userAgent.platform.isAndroid()?(b=/Android\s+([^\);]+)(\)|;)/,b=(a2=b.exec(a2))&&a2[1]):goog.labs.userAgent.platform.isChromeOS()&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a2=b.exec(a2))&&a2[1]),b||""},goog.labs.userAgent.platform.isVersionOrHigher=function(a2){return 0<=goog.string.compareVersions(goog.labs.userAgent.platform.getVersion(),a2)},goog.reflect={},goog.reflect.object=function(a2,b){return b},goog.reflect.objectProperty=function(a2,b){return a2},goog.reflect.sinkValue=function(a2){return goog.reflect.sinkValue[" "](a2),a2},goog.reflect.sinkValue[" "]=goog.nullFunction,goog.reflect.canAccessProperty=function(a2,b){try{return goog.reflect.sinkValue(a2[b]),!0}catch{}return!1},goog.reflect.cache=function(a2,b,c,d){return d=d?d(b):b,Object.prototype.hasOwnProperty.call(a2,d)?a2[d]:a2[d]=c(b)},goog.userAgent={},goog.userAgent.ASSUME_IE=!1,goog.userAgent.ASSUME_EDGE=!1,goog.userAgent.ASSUME_GECKO=!1,goog.userAgent.ASSUME_WEBKIT=!1,goog.userAgent.ASSUME_MOBILE_WEBKIT=!1,goog.userAgent.ASSUME_OPERA=!1,goog.userAgent.ASSUME_ANY_VERSION=!1,goog.userAgent.BROWSER_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_GECKO||goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_OPERA,goog.userAgent.getUserAgentString=function(){return goog.labs.userAgent.util.getUserAgent()},goog.userAgent.getNavigatorTyped=function(){return goog.global.navigator||null},goog.userAgent.getNavigator=function(){return goog.userAgent.getNavigatorTyped()},goog.userAgent.OPERA=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_OPERA:goog.labs.userAgent.browser.isOpera(),goog.userAgent.IE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_IE:goog.labs.userAgent.browser.isIE(),goog.userAgent.EDGE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_EDGE:goog.labs.userAgent.engine.isEdge(),goog.userAgent.EDGE_OR_IE=goog.userAgent.EDGE||goog.userAgent.IE,goog.userAgent.GECKO=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_GECKO:goog.labs.userAgent.engine.isGecko(),goog.userAgent.WEBKIT=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_MOBILE_WEBKIT:goog.labs.userAgent.engine.isWebKit(),goog.userAgent.isMobile_=function(){return goog.userAgent.WEBKIT&&goog.labs.userAgent.util.matchUserAgent("Mobile")},goog.userAgent.MOBILE=goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.isMobile_(),goog.userAgent.SAFARI=goog.userAgent.WEBKIT,goog.userAgent.determinePlatform_=function(){var a2=goog.userAgent.getNavigatorTyped();return a2&&a2.platform||""},goog.userAgent.PLATFORM=goog.userAgent.determinePlatform_(),goog.userAgent.ASSUME_MAC=!1,goog.userAgent.ASSUME_WINDOWS=!1,goog.userAgent.ASSUME_LINUX=!1,goog.userAgent.ASSUME_X11=!1,goog.userAgent.ASSUME_ANDROID=!1,goog.userAgent.ASSUME_IPHONE=!1,goog.userAgent.ASSUME_IPAD=!1,goog.userAgent.ASSUME_IPOD=!1,goog.userAgent.ASSUME_KAIOS=!1,goog.userAgent.PLATFORM_KNOWN_=goog.userAgent.ASSUME_MAC||goog.userAgent.ASSUME_WINDOWS||goog.userAgent.ASSUME_LINUX||goog.userAgent.ASSUME_X11||goog.userAgent.ASSUME_ANDROID||goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD,goog.userAgent.MAC=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_MAC:goog.labs.userAgent.platform.isMacintosh(),goog.userAgent.WINDOWS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_WINDOWS:goog.labs.userAgent.platform.isWindows(),goog.userAgent.isLegacyLinux_=function(){return goog.labs.userAgent.platform.isLinux()||goog.labs.userAgent.platform.isChromeOS()},goog.userAgent.LINUX=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_LINUX:goog.userAgent.isLegacyLinux_(),goog.userAgent.isX11_=function(){var a2=goog.userAgent.getNavigatorTyped();return!!a2&&goog.string.contains(a2.appVersion||"","X11")},goog.userAgent.X11=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_X11:goog.userAgent.isX11_(),goog.userAgent.ANDROID=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_ANDROID:goog.labs.userAgent.platform.isAndroid(),goog.userAgent.IPHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE:goog.labs.userAgent.platform.isIphone(),goog.userAgent.IPAD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.IPOD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIpod(),goog.userAgent.IOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIos(),goog.userAgent.KAIOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_KAIOS:goog.labs.userAgent.platform.isKaiOS(),goog.userAgent.determineVersion_=function(){var a2="",b=goog.userAgent.getVersionRegexResult_();return b&&(a2=b?b[1]:""),goog.userAgent.IE&&(b=goog.userAgent.getDocumentMode_(),b!=null&&b>parseFloat(a2))?String(b):a2},goog.userAgent.getVersionRegexResult_=function(){var a2=goog.userAgent.getUserAgentString();if(goog.userAgent.GECKO)return/rv:([^\);]+)(\)|;)/.exec(a2);if(goog.userAgent.EDGE)return/Edge\/([\d\.]+)/.exec(a2);if(goog.userAgent.IE)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a2);if(goog.userAgent.WEBKIT)return/WebKit\/(\S+)/.exec(a2);if(goog.userAgent.OPERA)return/(?:Version)[ \/]?(\S+)/.exec(a2)},goog.userAgent.getDocumentMode_=function(){var a2=goog.global.document;return a2?a2.documentMode:void 0},goog.userAgent.VERSION=goog.userAgent.determineVersion_(),goog.userAgent.compare=function(a2,b){return goog.string.compareVersions(a2,b)},goog.userAgent.isVersionOrHigherCache_={},goog.userAgent.isVersionOrHigher=function(a2){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,a2,function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,a2)})},goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher,goog.userAgent.isDocumentModeOrHigher=function(a2){return Number(goog.userAgent.DOCUMENT_MODE)>=a2},goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher,goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE){var a2=goog.userAgent.getDocumentMode_();return a2||parseInt(goog.userAgent.VERSION,10)||void 0}}(),goog.userAgent.product={},goog.userAgent.product.ASSUME_FIREFOX=!1,goog.userAgent.product.ASSUME_IPHONE=!1,goog.userAgent.product.ASSUME_IPAD=!1,goog.userAgent.product.ASSUME_ANDROID=!1,goog.userAgent.product.ASSUME_CHROME=!1,goog.userAgent.product.ASSUME_SAFARI=!1,goog.userAgent.product.PRODUCT_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_OPERA||goog.userAgent.product.ASSUME_FIREFOX||goog.userAgent.product.ASSUME_IPHONE||goog.userAgent.product.ASSUME_IPAD||goog.userAgent.product.ASSUME_ANDROID||goog.userAgent.product.ASSUME_CHROME||goog.userAgent.product.ASSUME_SAFARI,goog.userAgent.product.OPERA=goog.userAgent.OPERA,goog.userAgent.product.IE=goog.userAgent.IE,goog.userAgent.product.EDGE=goog.userAgent.EDGE,goog.userAgent.product.FIREFOX=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_FIREFOX:goog.labs.userAgent.browser.isFirefox(),goog.userAgent.product.isIphoneOrIpod_=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpod()},goog.userAgent.product.IPHONE=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPHONE:goog.userAgent.product.isIphoneOrIpod_(),goog.userAgent.product.IPAD=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.product.ANDROID=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_ANDROID:goog.labs.userAgent.browser.isAndroidBrowser(),goog.userAgent.product.CHROME=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_CHROME:goog.labs.userAgent.browser.isChrome(),goog.userAgent.product.isSafariDesktop_=function(){return goog.labs.userAgent.browser.isSafari()&&!goog.labs.userAgent.platform.isIos()},goog.userAgent.product.SAFARI=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_SAFARI:goog.userAgent.product.isSafariDesktop_(),goog.crypt.base64={},goog.crypt.base64.DEFAULT_ALPHABET_COMMON_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",goog.crypt.base64.ENCODED_VALS=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"+/=",goog.crypt.base64.ENCODED_VALS_WEBSAFE=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"-_.",goog.crypt.base64.Alphabet={DEFAULT:0,NO_PADDING:1,WEBSAFE:2,WEBSAFE_DOT_PADDING:3,WEBSAFE_NO_PADDING:4},goog.crypt.base64.paddingChars_="=.",goog.crypt.base64.isPadding_=function(a2){return goog.string.contains(goog.crypt.base64.paddingChars_,a2)},goog.crypt.base64.byteToCharMaps_={},goog.crypt.base64.charToByteMap_=null,goog.crypt.base64.ASSUME_NATIVE_SUPPORT_=goog.userAgent.GECKO||goog.userAgent.WEBKIT&&!goog.userAgent.product.SAFARI||goog.userAgent.OPERA,goog.crypt.base64.HAS_NATIVE_ENCODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||typeof goog.global.btoa=="function",goog.crypt.base64.HAS_NATIVE_DECODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&!goog.userAgent.IE&&typeof goog.global.atob=="function",goog.crypt.base64.encodeByteArray=function(a2,b){goog.asserts.assert(goog.isArrayLike(a2),"encodeByteArray takes an array as a parameter"),b===void 0&&(b=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),b=goog.crypt.base64.byteToCharMaps_[b];for(var c=[],d=0;d<a2.length;d+=3){var e=a2[d],f=d+1<a2.length,g=f?a2[d+1]:0,h=d+2<a2.length,k=h?a2[d+2]:0,l=e>>2;e=(e&3)<<4|g>>4,g=(g&15)<<2|k>>6,k&=63,h||(k=64,f||(g=64)),c.push(b[l],b[e],b[g]||"",b[k]||"")}return c.join("")},goog.crypt.base64.encodeString=function(a2,b){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!b?goog.global.btoa(a2):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(a2),b)},goog.crypt.base64.decodeString=function(a2,b){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!b)return goog.global.atob(a2);var c="";return goog.crypt.base64.decodeStringInternal_(a2,function(a3){c+=String.fromCharCode(a3)}),c},goog.crypt.base64.decodeStringToByteArray=function(a2,b){var c=[];return goog.crypt.base64.decodeStringInternal_(a2,function(a3){c.push(a3)}),c},goog.crypt.base64.decodeStringToUint8Array=function(a2){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var b=a2.length,c=3*b/4;c%3?c=Math.floor(c):goog.crypt.base64.isPadding_(a2[b-1])&&(c=goog.crypt.base64.isPadding_(a2[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;return goog.crypt.base64.decodeStringInternal_(a2,function(a3){d[e++]=a3}),d.subarray(0,e)},goog.crypt.base64.decodeStringInternal_=function(a2,b){function c(b2){for(;d<a2.length;){var c2=a2.charAt(d++),e2=goog.crypt.base64.charToByteMap_[c2];if(e2!=null)return e2;if(!goog.string.isEmptyOrWhitespace(c2))throw Error("Unknown base64 encoding at char: "+c2)}return b2}__name(c,"c"),goog.crypt.base64.init_();for(var d=0;;){var e=c(-1),f=c(0),g=c(64),h=c(64);if(h===64&&e===-1)break;b(e<<2|f>>4),g!=64&&(b(f<<4&240|g>>2),h!=64&&b(g<<6&192|h))}},goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var a2=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a2.concat(b[c].split(""));goog.crypt.base64.byteToCharMaps_[c]=d;for(var e=0;e<d.length;e++){var f=d[e],g=goog.crypt.base64.charToByteMap_[f];g===void 0?goog.crypt.base64.charToByteMap_[f]=e:goog.asserts.assert(g===e)}}}},jspb.utils={},jspb.utils.split64Low=0,jspb.utils.split64High=0,jspb.utils.splitUint64=function(a2){var b=a2>>>0;a2=Math.floor((a2-b)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=b,jspb.utils.split64High=a2},jspb.utils.splitInt64=function(a2){var b=0>a2;a2=Math.abs(a2);var c=a2>>>0;a2=Math.floor((a2-c)/jspb.BinaryConstants.TWO_TO_32),a2>>>=0,b&&(a2=~a2>>>0,c=(~c>>>0)+1,4294967295<c&&(c=0,a2++,4294967295<a2&&(a2=0))),jspb.utils.split64Low=c,jspb.utils.split64High=a2},jspb.utils.splitZigzag64=function(a2){var b=0>a2;a2=2*Math.abs(a2),jspb.utils.splitUint64(a2),a2=jspb.utils.split64Low;var c=jspb.utils.split64High;b&&(a2==0?c==0?c=a2=4294967295:(c--,a2=4294967295):a2--),jspb.utils.split64Low=a2,jspb.utils.split64High=c},jspb.utils.splitFloat32=function(a2){var b=0>a2?1:0;if(a2=b?-a2:a2,a2===0)0<1/a2?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(a2))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(a2>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(b<<31|2139095040)>>>0;else if(a2<jspb.BinaryConstants.FLOAT32_MIN)a2=Math.round(a2/Math.pow(2,-149)),jspb.utils.split64High=0,jspb.utils.split64Low=(b<<31|a2)>>>0;else{var c=Math.floor(Math.log(a2)/Math.LN2);a2*=Math.pow(2,-c),a2=Math.round(a2*jspb.BinaryConstants.TWO_TO_23),16777216<=a2&&++c,jspb.utils.split64High=0,jspb.utils.split64Low=(b<<31|c+127<<23|a2&8388607)>>>0}},jspb.utils.splitFloat64=function(a2){var b=0>a2?1:0;if(a2=b?-a2:a2,a2===0)jspb.utils.split64High=0<1/a2?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(a2))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(a2>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(b<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(a2<jspb.BinaryConstants.FLOAT64_MIN){var c=a2/Math.pow(2,-1074);a2=c/jspb.BinaryConstants.TWO_TO_32,jspb.utils.split64High=(b<<31|a2)>>>0,jspb.utils.split64Low=c>>>0}else{c=a2;var d=0;if(2<=c)for(;2<=c&&1023>d;)d++,c/=2;else for(;1>c&&-1022<d;)c*=2,d--;c=a2*Math.pow(2,-d),a2=c*jspb.BinaryConstants.TWO_TO_20&1048575,c=c*jspb.BinaryConstants.TWO_TO_52>>>0,jspb.utils.split64High=(b<<31|d+1023<<20|a2)>>>0,jspb.utils.split64Low=c}},jspb.utils.splitHash64=function(a2){var b=a2.charCodeAt(0),c=a2.charCodeAt(1),d=a2.charCodeAt(2),e=a2.charCodeAt(3),f=a2.charCodeAt(4),g=a2.charCodeAt(5),h=a2.charCodeAt(6);a2=a2.charCodeAt(7),jspb.utils.split64Low=b+(c<<8)+(d<<16)+(e<<24)>>>0,jspb.utils.split64High=f+(g<<8)+(h<<16)+(a2<<24)>>>0},jspb.utils.joinUint64=function(a2,b){return b*jspb.BinaryConstants.TWO_TO_32+(a2>>>0)},jspb.utils.joinInt64=function(a2,b){var c=b&2147483648;return c&&(a2=~a2+1>>>0,b=~b>>>0,a2==0&&(b=b+1>>>0)),a2=jspb.utils.joinUint64(a2,b),c?-a2:a2},jspb.utils.toZigzag64=function(a2,b,c){var d=b>>31;return c(a2<<1^d,(b<<1|a2>>>31)^d)},jspb.utils.joinZigzag64=function(a2,b){return jspb.utils.fromZigzag64(a2,b,jspb.utils.joinInt64)},jspb.utils.fromZigzag64=function(a2,b,c){var d=-(a2&1);return c((a2>>>1|b<<31)^d,b>>>1^d)},jspb.utils.joinFloat32=function(a2,b){b=2*(a2>>31)+1;var c=a2>>>23&255;return a2&=8388607,c==255?a2?NaN:1/0*b:c==0?b*Math.pow(2,-149)*a2:b*Math.pow(2,c-150)*(a2+Math.pow(2,23))},jspb.utils.joinFloat64=function(a2,b){var c=2*(b>>31)+1,d=b>>>20&2047;return a2=jspb.BinaryConstants.TWO_TO_32*(b&1048575)+a2,d==2047?a2?NaN:1/0*c:d==0?c*Math.pow(2,-1074)*a2:c*Math.pow(2,d-1075)*(a2+jspb.BinaryConstants.TWO_TO_52)},jspb.utils.joinHash64=function(a2,b){return String.fromCharCode(a2>>>0&255,a2>>>8&255,a2>>>16&255,a2>>>24&255,b>>>0&255,b>>>8&255,b>>>16&255,b>>>24&255)},jspb.utils.DIGITS="0123456789abcdef".split(""),jspb.utils.ZERO_CHAR_CODE_=48,jspb.utils.A_CHAR_CODE_=97,jspb.utils.joinUnsignedDecimalString=function(a2,b){function c(a3,b2){return a3=a3?String(a3):"",b2?"0000000".slice(a3.length)+a3:a3}if(__name(c,"c"),2097151>=b)return""+jspb.utils.joinUint64(a2,b);var d=(a2>>>24|b<<8)>>>0&16777215;return b=b>>16&65535,a2=(a2&16777215)+6777216*d+6710656*b,d+=8147497*b,b*=2,1e7<=a2&&(d+=Math.floor(a2/1e7),a2%=1e7),1e7<=d&&(b+=Math.floor(d/1e7),d%=1e7),c(b,0)+c(d,b)+c(a2,1)},jspb.utils.joinSignedDecimalString=function(a2,b){var c=b&2147483648;return c&&(a2=~a2+1>>>0,b=~b+(a2==0?1:0)>>>0),a2=jspb.utils.joinUnsignedDecimalString(a2,b),c?"-"+a2:a2},jspb.utils.hash64ToDecimalString=function(a2,b){jspb.utils.splitHash64(a2),a2=jspb.utils.split64Low;var c=jspb.utils.split64High;return b?jspb.utils.joinSignedDecimalString(a2,c):jspb.utils.joinUnsignedDecimalString(a2,c)},jspb.utils.hash64ArrayToDecimalStrings=function(a2,b){for(var c=Array(a2.length),d=0;d<a2.length;d++)c[d]=jspb.utils.hash64ToDecimalString(a2[d],b);return c},jspb.utils.decimalStringToHash64=function(a2){function b(a3,b2){for(var c2=0;8>c2&&(a3!==1||0<b2);c2++)b2=a3*e[c2]+b2,e[c2]=b2&255,b2>>>=8}__name(b,"b");function c(){for(var a3=0;8>a3;a3++)e[a3]=~e[a3]&255}__name(c,"c"),jspb.asserts.assert(0<a2.length);var d=!1;a2[0]==="-"&&(d=!0,a2=a2.slice(1));for(var e=[0,0,0,0,0,0,0,0],f=0;f<a2.length;f++)b(10,a2.charCodeAt(f)-jspb.utils.ZERO_CHAR_CODE_);return d&&(c(),b(1,1)),goog.crypt.byteArrayToString(e)},jspb.utils.splitDecimalString=function(a2){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(a2))},jspb.utils.toHexDigit_=function(a2){return String.fromCharCode(10>a2?jspb.utils.ZERO_CHAR_CODE_+a2:jspb.utils.A_CHAR_CODE_-10+a2)},jspb.utils.fromHexCharCode_=function(a2){return a2>=jspb.utils.A_CHAR_CODE_?a2-jspb.utils.A_CHAR_CODE_+10:a2-jspb.utils.ZERO_CHAR_CODE_},jspb.utils.hash64ToHexString=function(a2){var b=Array(18);b[0]="0",b[1]="x";for(var c=0;8>c;c++){var d=a2.charCodeAt(7-c);b[2*c+2]=jspb.utils.toHexDigit_(d>>4),b[2*c+3]=jspb.utils.toHexDigit_(d&15)}return b.join("")},jspb.utils.hexStringToHash64=function(a2){a2=a2.toLowerCase(),jspb.asserts.assert(a2.length==18),jspb.asserts.assert(a2[0]=="0"),jspb.asserts.assert(a2[1]=="x");for(var b="",c=0;8>c;c++){var d=jspb.utils.fromHexCharCode_(a2.charCodeAt(2*c+2)),e=jspb.utils.fromHexCharCode_(a2.charCodeAt(2*c+3));b=String.fromCharCode(16*d+e)+b}return b},jspb.utils.hash64ToNumber=function(a2,b){jspb.utils.splitHash64(a2),a2=jspb.utils.split64Low;var c=jspb.utils.split64High;return b?jspb.utils.joinInt64(a2,c):jspb.utils.joinUint64(a2,c)},jspb.utils.numberToHash64=function(a2){return jspb.utils.splitInt64(a2),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.utils.countVarints=function(a2,b,c){for(var d=0,e=b;e<c;e++)d+=a2[e]>>7;return c-b-d},jspb.utils.countVarintFields=function(a2,b,c,d){var e=0;if(d=8*d+jspb.BinaryConstants.WireType.VARINT,128>d)for(;b<c&&a2[b++]==d;)for(e++;;){var f=a2[b++];if(!(f&128))break}else for(;b<c;){for(f=d;128<f;){if(a2[b]!=(f&127|128))return e;b++,f>>=7}if(a2[b++]!=f)break;for(e++;f=a2[b++],(f&128)!=0;);}return e},jspb.utils.countFixedFields_=function(a2,b,c,d,e){var f=0;if(128>d)for(;b<c&&a2[b++]==d;)f++,b+=e;else for(;b<c;){for(var g=d;128<g;){if(a2[b++]!=(g&127|128))return f;g>>=7}if(a2[b++]!=g)break;f++,b+=e}return f},jspb.utils.countFixed32Fields=function(a2,b,c,d){return jspb.utils.countFixedFields_(a2,b,c,8*d+jspb.BinaryConstants.WireType.FIXED32,4)},jspb.utils.countFixed64Fields=function(a2,b,c,d){return jspb.utils.countFixedFields_(a2,b,c,8*d+jspb.BinaryConstants.WireType.FIXED64,8)},jspb.utils.countDelimitedFields=function(a2,b,c,d){var e=0;for(d=8*d+jspb.BinaryConstants.WireType.DELIMITED;b<c;){for(var f=d;128<f;){if(a2[b++]!=(f&127|128))return e;f>>=7}if(a2[b++]!=f)break;e++;for(var g=0,h=1;f=a2[b++],g+=(f&127)*h,h*=128,(f&128)!=0;);b+=g}return e},jspb.utils.debugBytesToTextFormat=function(a2){var b='"';if(a2){a2=jspb.utils.byteSourceToUint8Array(a2);for(var c=0;c<a2.length;c++)b+="\\x",16>a2[c]&&(b+="0"),b+=a2[c].toString(16)}return b+'"'},jspb.utils.debugScalarToTextFormat=function(a2){return typeof a2=="string"?goog.string.quote(a2):a2.toString()},jspb.utils.stringToByteArray=function(a2){for(var b=new Uint8Array(a2.length),c=0;c<a2.length;c++){var d=a2.charCodeAt(c);if(255<d)throw Error("Conversion error: string contains codepoint outside of byte range");b[c]=d}return b},jspb.utils.byteSourceToUint8Array=function(a2){return a2.constructor===Uint8Array?a2:a2.constructor===ArrayBuffer||a2.constructor===Array?new Uint8Array(a2):a2.constructor===String?goog.crypt.base64.decodeStringToUint8Array(a2):a2 instanceof Uint8Array?new Uint8Array(a2.buffer,a2.byteOffset,a2.byteLength):(jspb.asserts.fail("Type not convertible to Uint8Array."),new Uint8Array(0))},jspb.BinaryDecoder=function(a2,b,c){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1,a2&&this.setBlock(a2,b,c)},jspb.BinaryDecoder.instanceCache_=[],jspb.BinaryDecoder.alloc=function(a2,b,c){if(jspb.BinaryDecoder.instanceCache_.length){var d=jspb.BinaryDecoder.instanceCache_.pop();return a2&&d.setBlock(a2,b,c),d}return new jspb.BinaryDecoder(a2,b,c)},jspb.BinaryDecoder.prototype.free=function(){this.clear(),100>jspb.BinaryDecoder.instanceCache_.length&&jspb.BinaryDecoder.instanceCache_.push(this)},jspb.BinaryDecoder.prototype.clone=function(){return jspb.BinaryDecoder.alloc(this.bytes_,this.start_,this.end_-this.start_)},jspb.BinaryDecoder.prototype.clear=function(){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1},jspb.BinaryDecoder.prototype.getBuffer=function(){return this.bytes_},jspb.BinaryDecoder.prototype.setBlock=function(a2,b,c){this.bytes_=jspb.utils.byteSourceToUint8Array(a2),this.start_=b!==void 0?b:0,this.end_=c!==void 0?this.start_+c:this.bytes_.length,this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getEnd=function(){return this.end_},jspb.BinaryDecoder.prototype.setEnd=function(a2){this.end_=a2},jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_},jspb.BinaryDecoder.prototype.setCursor=function(a2){this.cursor_=a2},jspb.BinaryDecoder.prototype.advance=function(a2){this.cursor_+=a2,jspb.asserts.assert(this.cursor_<=this.end_)},jspb.BinaryDecoder.prototype.atEnd=function(){return this.cursor_==this.end_},jspb.BinaryDecoder.prototype.pastEnd=function(){return this.cursor_>this.end_},jspb.BinaryDecoder.prototype.getError=function(){return this.error_||0>this.cursor_||this.cursor_>this.end_},jspb.BinaryDecoder.prototype.readSplitVarint64=function(a2){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=this.bytes_[this.cursor_++],c|=(b&127)<<7*e;if(128<=b&&(b=this.bytes_[this.cursor_++],c|=(b&127)<<28,d|=(b&127)>>4),128<=b)for(e=0;5>e&&128<=b;e++)b=this.bytes_[this.cursor_++],d|=(b&127)<<7*e+3;if(128>b)return a2(c>>>0,d>>>0);jspb.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0},jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(a2){return this.readSplitVarint64(function(b,c){return jspb.utils.fromZigzag64(b,c,a2)})},jspb.BinaryDecoder.prototype.readSplitFixed64=function(a2){var b=this.bytes_,c=this.cursor_;this.cursor_+=8;for(var d=0,e=0,f=c+7;f>=c;f--)d=d<<8|b[f],e=e<<8|b[f+4];return a2(d,e)},jspb.BinaryDecoder.prototype.skipVarint=function(){for(;this.bytes_[this.cursor_]&128;)this.cursor_++;this.cursor_++},jspb.BinaryDecoder.prototype.unskipVarint=function(a2){for(;128<a2;)this.cursor_--,a2>>>=7;this.cursor_--},jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var a2=this.bytes_,b=a2[this.cursor_+0],c=b&127;return 128>b?(this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),c):(b=a2[this.cursor_+1],c|=(b&127)<<7,128>b?(this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),c):(b=a2[this.cursor_+2],c|=(b&127)<<14,128>b?(this.cursor_+=3,jspb.asserts.assert(this.cursor_<=this.end_),c):(b=a2[this.cursor_+3],c|=(b&127)<<21,128>b?(this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),c):(b=a2[this.cursor_+4],c|=(b&15)<<28,128>b?(this.cursor_+=5,jspb.asserts.assert(this.cursor_<=this.end_),c>>>0):(this.cursor_+=5,128<=a2[this.cursor_++]&&128<=a2[this.cursor_++]&&128<=a2[this.cursor_++]&&128<=a2[this.cursor_++]&&128<=a2[this.cursor_++]&&jspb.asserts.assert(!1),jspb.asserts.assert(this.cursor_<=this.end_),c)))))},jspb.BinaryDecoder.prototype.readSignedVarint32=function(){return~~this.readUnsignedVarint32()},jspb.BinaryDecoder.prototype.readUnsignedVarint32String=function(){return this.readUnsignedVarint32().toString()},jspb.BinaryDecoder.prototype.readSignedVarint32String=function(){return this.readSignedVarint32().toString()},jspb.BinaryDecoder.prototype.readZigzagVarint32=function(){var a2=this.readUnsignedVarint32();return a2>>>1^-(a2&1)},jspb.BinaryDecoder.prototype.readUnsignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinUint64)},jspb.BinaryDecoder.prototype.readUnsignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinUnsignedDecimalString)},jspb.BinaryDecoder.prototype.readSignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinInt64)},jspb.BinaryDecoder.prototype.readSignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readZigzagVarint64=function(){return this.readSplitVarint64(jspb.utils.joinZigzag64)},jspb.BinaryDecoder.prototype.readZigzagVarintHash64=function(){return this.readSplitZigzagVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readZigzagVarint64String=function(){return this.readSplitZigzagVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readUint8=function(){var a2=this.bytes_[this.cursor_+0];return this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),a2},jspb.BinaryDecoder.prototype.readUint16=function(){var a2=this.bytes_[this.cursor_+0],b=this.bytes_[this.cursor_+1];return this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),a2<<0|b<<8},jspb.BinaryDecoder.prototype.readUint32=function(){var a2=this.bytes_[this.cursor_+0],b=this.bytes_[this.cursor_+1],c=this.bytes_[this.cursor_+2],d=this.bytes_[this.cursor_+3];return this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),(a2<<0|b<<8|c<<16|d<<24)>>>0},jspb.BinaryDecoder.prototype.readUint64=function(){var a2=this.readUint32(),b=this.readUint32();return jspb.utils.joinUint64(a2,b)},jspb.BinaryDecoder.prototype.readUint64String=function(){var a2=this.readUint32(),b=this.readUint32();return jspb.utils.joinUnsignedDecimalString(a2,b)},jspb.BinaryDecoder.prototype.readInt8=function(){var a2=this.bytes_[this.cursor_+0];return this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),a2<<24>>24},jspb.BinaryDecoder.prototype.readInt16=function(){var a2=this.bytes_[this.cursor_+0],b=this.bytes_[this.cursor_+1];return this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),(a2<<0|b<<8)<<16>>16},jspb.BinaryDecoder.prototype.readInt32=function(){var a2=this.bytes_[this.cursor_+0],b=this.bytes_[this.cursor_+1],c=this.bytes_[this.cursor_+2],d=this.bytes_[this.cursor_+3];return this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),a2<<0|b<<8|c<<16|d<<24},jspb.BinaryDecoder.prototype.readInt64=function(){var a2=this.readUint32(),b=this.readUint32();return jspb.utils.joinInt64(a2,b)},jspb.BinaryDecoder.prototype.readInt64String=function(){var a2=this.readUint32(),b=this.readUint32();return jspb.utils.joinSignedDecimalString(a2,b)},jspb.BinaryDecoder.prototype.readFloat=function(){var a2=this.readUint32();return jspb.utils.joinFloat32(a2,0)},jspb.BinaryDecoder.prototype.readDouble=function(){var a2=this.readUint32(),b=this.readUint32();return jspb.utils.joinFloat64(a2,b)},jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]},jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()},jspb.BinaryDecoder.prototype.readString=function(a2){var b=this.bytes_,c=this.cursor_;a2=c+a2;for(var d=[],e="";c<a2;){var f=b[c++];if(128>f)d.push(f);else{if(192>f)continue;if(224>f){var g=b[c++];d.push((f&31)<<6|g&63)}else if(240>f){g=b[c++];var h=b[c++];d.push((f&15)<<12|(g&63)<<6|h&63)}else if(248>f){g=b[c++],h=b[c++];var k=b[c++];f=(f&7)<<18|(g&63)<<12|(h&63)<<6|k&63,f-=65536,d.push((f>>10&1023)+55296,(f&1023)+56320)}}8192<=d.length&&(e+=String.fromCharCode.apply(null,d),d.length=0)}return e+=goog.crypt.byteArrayToString(d),this.cursor_=c,e},jspb.BinaryDecoder.prototype.readStringWithLength=function(){var a2=this.readUnsignedVarint32();return this.readString(a2)},jspb.BinaryDecoder.prototype.readBytes=function(a2){if(0>a2||this.cursor_+a2>this.bytes_.length)return this.error_=!0,jspb.asserts.fail("Invalid byte length!"),new Uint8Array(0);var b=this.bytes_.subarray(this.cursor_,this.cursor_+a2);return this.cursor_+=a2,jspb.asserts.assert(this.cursor_<=this.end_),b},jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readFixedHash64=function(){var a2=this.bytes_,b=this.cursor_,c=a2[b+0],d=a2[b+1],e=a2[b+2],f=a2[b+3],g=a2[b+4],h=a2[b+5],k=a2[b+6];return a2=a2[b+7],this.cursor_+=8,String.fromCharCode(c,d,e,f,g,h,k,a2)},jspb.BinaryReader=function(a2,b,c){this.decoder_=jspb.BinaryDecoder.alloc(a2,b,c),this.fieldCursor_=this.decoder_.getCursor(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null},jspb.BinaryReader.instanceCache_=[],jspb.BinaryReader.alloc=function(a2,b,c){if(jspb.BinaryReader.instanceCache_.length){var d=jspb.BinaryReader.instanceCache_.pop();return a2&&d.decoder_.setBlock(a2,b,c),d}return new jspb.BinaryReader(a2,b,c)},jspb.BinaryReader.prototype.alloc=jspb.BinaryReader.alloc,jspb.BinaryReader.prototype.free=function(){this.decoder_.clear(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null,100>jspb.BinaryReader.instanceCache_.length&&jspb.BinaryReader.instanceCache_.push(this)},jspb.BinaryReader.prototype.getFieldCursor=function(){return this.fieldCursor_},jspb.BinaryReader.prototype.getCursor=function(){return this.decoder_.getCursor()},jspb.BinaryReader.prototype.getBuffer=function(){return this.decoder_.getBuffer()},jspb.BinaryReader.prototype.getFieldNumber=function(){return this.nextField_},goog.exportProperty(jspb.BinaryReader.prototype,"getFieldNumber",jspb.BinaryReader.prototype.getFieldNumber),jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_},jspb.BinaryReader.prototype.isDelimited=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED},goog.exportProperty(jspb.BinaryReader.prototype,"isDelimited",jspb.BinaryReader.prototype.isDelimited),jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP},goog.exportProperty(jspb.BinaryReader.prototype,"isEndGroup",jspb.BinaryReader.prototype.isEndGroup),jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()},jspb.BinaryReader.prototype.setBlock=function(a2,b,c){this.decoder_.setBlock(a2,b,c),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.reset=function(){this.decoder_.reset(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.advance=function(a2){this.decoder_.advance(a2)},jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return jspb.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var a2=this.decoder_.readUnsignedVarint32(),b=a2>>>3;return a2&=7,a2!=jspb.BinaryConstants.WireType.VARINT&&a2!=jspb.BinaryConstants.WireType.FIXED32&&a2!=jspb.BinaryConstants.WireType.FIXED64&&a2!=jspb.BinaryConstants.WireType.DELIMITED&&a2!=jspb.BinaryConstants.WireType.START_GROUP&&a2!=jspb.BinaryConstants.WireType.END_GROUP?(jspb.asserts.fail("Invalid wire type: %s (at position %s)",a2,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=b,this.nextWireType_=a2,!0)},goog.exportProperty(jspb.BinaryReader.prototype,"nextField",jspb.BinaryReader.prototype.nextField),jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)},jspb.BinaryReader.prototype.skipMatchingFields=function(){var a2=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==a2;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()},jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(jspb.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()},jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)jspb.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var a2=this.decoder_.readUnsignedVarint32();this.decoder_.advance(a2)}},jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(jspb.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)},jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(jspb.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)},jspb.BinaryReader.prototype.skipGroup=function(){var a2=this.nextField_;do{if(!this.nextField()){jspb.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=a2&&(jspb.asserts.fail("Unmatched end-group tag"),this.error_=!0);break}this.skipField()}while(!0)},jspb.BinaryReader.prototype.skipField=function(){switch(this.nextWireType_){case jspb.BinaryConstants.WireType.VARINT:this.skipVarintField();break;case jspb.BinaryConstants.WireType.FIXED64:this.skipFixed64Field();break;case jspb.BinaryConstants.WireType.DELIMITED:this.skipDelimitedField();break;case jspb.BinaryConstants.WireType.FIXED32:this.skipFixed32Field();break;case jspb.BinaryConstants.WireType.START_GROUP:this.skipGroup();break;default:jspb.asserts.fail("Invalid wire encoding for field.")}},jspb.BinaryReader.prototype.registerReadCallback=function(a2,b){this.readCallbacks_===null&&(this.readCallbacks_={}),jspb.asserts.assert(!this.readCallbacks_[a2]),this.readCallbacks_[a2]=b},jspb.BinaryReader.prototype.runReadCallback=function(a2){return jspb.asserts.assert(this.readCallbacks_!==null),a2=this.readCallbacks_[a2],jspb.asserts.assert(a2),a2(this)},jspb.BinaryReader.prototype.readAny=function(a2){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(a2);var b=jspb.BinaryConstants.FieldType;switch(a2){case b.DOUBLE:return this.readDouble();case b.FLOAT:return this.readFloat();case b.INT64:return this.readInt64();case b.UINT64:return this.readUint64();case b.INT32:return this.readInt32();case b.FIXED64:return this.readFixed64();case b.FIXED32:return this.readFixed32();case b.BOOL:return this.readBool();case b.STRING:return this.readString();case b.GROUP:jspb.asserts.fail("Group field type not supported in readAny()");case b.MESSAGE:jspb.asserts.fail("Message field type not supported in readAny()");case b.BYTES:return this.readBytes();case b.UINT32:return this.readUint32();case b.ENUM:return this.readEnum();case b.SFIXED32:return this.readSfixed32();case b.SFIXED64:return this.readSfixed64();case b.SINT32:return this.readSint32();case b.SINT64:return this.readSint64();case b.FHASH64:return this.readFixedHash64();case b.VHASH64:return this.readVarintHash64();default:jspb.asserts.fail("Invalid field type in readAny()")}return 0},jspb.BinaryReader.prototype.readMessage=function(a2,b){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var c=this.decoder_.getEnd(),d=this.decoder_.readUnsignedVarint32();d=this.decoder_.getCursor()+d,this.decoder_.setEnd(d),b(a2,this),this.decoder_.setCursor(d),this.decoder_.setEnd(c)},goog.exportProperty(jspb.BinaryReader.prototype,"readMessage",jspb.BinaryReader.prototype.readMessage),jspb.BinaryReader.prototype.readGroup=function(a2,b,c){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),jspb.asserts.assert(this.nextField_==a2),c(b,this),this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(jspb.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)},goog.exportProperty(jspb.BinaryReader.prototype,"readGroup",jspb.BinaryReader.prototype.readGroup),jspb.BinaryReader.prototype.getFieldDecoder=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var a2=this.decoder_.readUnsignedVarint32(),b=this.decoder_.getCursor(),c=b+a2;return a2=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),b,a2),this.decoder_.setCursor(c),a2},jspb.BinaryReader.prototype.readInt32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readInt32",jspb.BinaryReader.prototype.readInt32),jspb.BinaryReader.prototype.readInt32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()},jspb.BinaryReader.prototype.readInt64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readInt64",jspb.BinaryReader.prototype.readInt64),jspb.BinaryReader.prototype.readInt64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()},jspb.BinaryReader.prototype.readUint32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readUint32",jspb.BinaryReader.prototype.readUint32),jspb.BinaryReader.prototype.readUint32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()},jspb.BinaryReader.prototype.readUint64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readUint64",jspb.BinaryReader.prototype.readUint64),jspb.BinaryReader.prototype.readUint64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()},jspb.BinaryReader.prototype.readSint32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readSint32",jspb.BinaryReader.prototype.readSint32),jspb.BinaryReader.prototype.readSint64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readSint64",jspb.BinaryReader.prototype.readSint64),jspb.BinaryReader.prototype.readSint64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()},jspb.BinaryReader.prototype.readFixed32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readFixed32",jspb.BinaryReader.prototype.readFixed32),jspb.BinaryReader.prototype.readFixed64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readFixed64",jspb.BinaryReader.prototype.readFixed64),jspb.BinaryReader.prototype.readFixed64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()},jspb.BinaryReader.prototype.readSfixed32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()},goog.exportProperty(jspb.BinaryReader.prototype,"readSfixed32",jspb.BinaryReader.prototype.readSfixed32),jspb.BinaryReader.prototype.readSfixed32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()},jspb.BinaryReader.prototype.readSfixed64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()},goog.exportProperty(jspb.BinaryReader.prototype,"readSfixed64",jspb.BinaryReader.prototype.readSfixed64),jspb.BinaryReader.prototype.readSfixed64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()},jspb.BinaryReader.prototype.readFloat=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()},goog.exportProperty(jspb.BinaryReader.prototype,"readFloat",jspb.BinaryReader.prototype.readFloat),jspb.BinaryReader.prototype.readDouble=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()},goog.exportProperty(jspb.BinaryReader.prototype,"readDouble",jspb.BinaryReader.prototype.readDouble),jspb.BinaryReader.prototype.readBool=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readBool",jspb.BinaryReader.prototype.readBool),jspb.BinaryReader.prototype.readEnum=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readEnum",jspb.BinaryReader.prototype.readEnum),jspb.BinaryReader.prototype.readString=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var a2=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(a2)},goog.exportProperty(jspb.BinaryReader.prototype,"readString",jspb.BinaryReader.prototype.readString),jspb.BinaryReader.prototype.readBytes=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var a2=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(a2)},goog.exportProperty(jspb.BinaryReader.prototype,"readBytes",jspb.BinaryReader.prototype.readBytes),jspb.BinaryReader.prototype.readVarintHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()},jspb.BinaryReader.prototype.readSintHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()},jspb.BinaryReader.prototype.readSplitVarint64=function(a2){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(a2)},jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(a2){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(function(b,c){return jspb.utils.fromZigzag64(b,c,a2)})},jspb.BinaryReader.prototype.readFixedHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()},jspb.BinaryReader.prototype.readSplitFixed64=function(a2){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(a2)},jspb.BinaryReader.prototype.readPackedField_=function(a2){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var b=this.decoder_.readUnsignedVarint32();b=this.decoder_.getCursor()+b;for(var c=[];this.decoder_.getCursor()<b;)c.push(a2.call(this.decoder_));return c},jspb.BinaryReader.prototype.readPackedInt32=function(){return this.readPackedField_(this.decoder_.readSignedVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedInt32",jspb.BinaryReader.prototype.readPackedInt32),jspb.BinaryReader.prototype.readPackedInt32String=function(){return this.readPackedField_(this.decoder_.readSignedVarint32String)},jspb.BinaryReader.prototype.readPackedInt64=function(){return this.readPackedField_(this.decoder_.readSignedVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedInt64",jspb.BinaryReader.prototype.readPackedInt64),jspb.BinaryReader.prototype.readPackedInt64String=function(){return this.readPackedField_(this.decoder_.readSignedVarint64String)},jspb.BinaryReader.prototype.readPackedUint32=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedUint32",jspb.BinaryReader.prototype.readPackedUint32),jspb.BinaryReader.prototype.readPackedUint32String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32String)},jspb.BinaryReader.prototype.readPackedUint64=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedUint64",jspb.BinaryReader.prototype.readPackedUint64),jspb.BinaryReader.prototype.readPackedUint64String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64String)},jspb.BinaryReader.prototype.readPackedSint32=function(){return this.readPackedField_(this.decoder_.readZigzagVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSint32",jspb.BinaryReader.prototype.readPackedSint32),jspb.BinaryReader.prototype.readPackedSint64=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSint64",jspb.BinaryReader.prototype.readPackedSint64),jspb.BinaryReader.prototype.readPackedSint64String=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64String)},jspb.BinaryReader.prototype.readPackedFixed32=function(){return this.readPackedField_(this.decoder_.readUint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFixed32",jspb.BinaryReader.prototype.readPackedFixed32),jspb.BinaryReader.prototype.readPackedFixed64=function(){return this.readPackedField_(this.decoder_.readUint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFixed64",jspb.BinaryReader.prototype.readPackedFixed64),jspb.BinaryReader.prototype.readPackedFixed64String=function(){return this.readPackedField_(this.decoder_.readUint64String)},jspb.BinaryReader.prototype.readPackedSfixed32=function(){return this.readPackedField_(this.decoder_.readInt32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSfixed32",jspb.BinaryReader.prototype.readPackedSfixed32),jspb.BinaryReader.prototype.readPackedSfixed64=function(){return this.readPackedField_(this.decoder_.readInt64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSfixed64",jspb.BinaryReader.prototype.readPackedSfixed64),jspb.BinaryReader.prototype.readPackedSfixed64String=function(){return this.readPackedField_(this.decoder_.readInt64String)},jspb.BinaryReader.prototype.readPackedFloat=function(){return this.readPackedField_(this.decoder_.readFloat)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFloat",jspb.BinaryReader.prototype.readPackedFloat),jspb.BinaryReader.prototype.readPackedDouble=function(){return this.readPackedField_(this.decoder_.readDouble)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedDouble",jspb.BinaryReader.prototype.readPackedDouble),jspb.BinaryReader.prototype.readPackedBool=function(){return this.readPackedField_(this.decoder_.readBool)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedBool",jspb.BinaryReader.prototype.readPackedBool),jspb.BinaryReader.prototype.readPackedEnum=function(){return this.readPackedField_(this.decoder_.readEnum)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedEnum",jspb.BinaryReader.prototype.readPackedEnum),jspb.BinaryReader.prototype.readPackedVarintHash64=function(){return this.readPackedField_(this.decoder_.readVarintHash64)},jspb.BinaryReader.prototype.readPackedFixedHash64=function(){return this.readPackedField_(this.decoder_.readFixedHash64)},jspb.BinaryEncoder=function(){this.buffer_=[]},jspb.BinaryEncoder.prototype.length=function(){return this.buffer_.length},jspb.BinaryEncoder.prototype.end=function(){var a2=this.buffer_;return this.buffer_=[],a2},jspb.BinaryEncoder.prototype.writeSplitVarint64=function(a2,b){for(jspb.asserts.assert(a2==Math.floor(a2)),jspb.asserts.assert(b==Math.floor(b)),jspb.asserts.assert(0<=a2&&a2<jspb.BinaryConstants.TWO_TO_32),jspb.asserts.assert(0<=b&&b<jspb.BinaryConstants.TWO_TO_32);0<b||127<a2;)this.buffer_.push(a2&127|128),a2=(a2>>>7|b<<25)>>>0,b>>>=7;this.buffer_.push(a2)},jspb.BinaryEncoder.prototype.writeSplitFixed64=function(a2,b){jspb.asserts.assert(a2==Math.floor(a2)),jspb.asserts.assert(b==Math.floor(b)),jspb.asserts.assert(0<=a2&&a2<jspb.BinaryConstants.TWO_TO_32),jspb.asserts.assert(0<=b&&b<jspb.BinaryConstants.TWO_TO_32),this.writeUint32(a2),this.writeUint32(b)},jspb.BinaryEncoder.prototype.writeUnsignedVarint32=function(a2){for(jspb.asserts.assert(a2==Math.floor(a2)),jspb.asserts.assert(0<=a2&&a2<jspb.BinaryConstants.TWO_TO_32);127<a2;)this.buffer_.push(a2&127|128),a2>>>=7;this.buffer_.push(a2)},jspb.BinaryEncoder.prototype.writeSignedVarint32=function(a2){if(jspb.asserts.assert(a2==Math.floor(a2)),jspb.asserts.assert(a2>=-jspb.BinaryConstants.TWO_TO_31&&a2<jspb.BinaryConstants.TWO_TO_31),0<=a2)this.writeUnsignedVarint32(a2);else{for(var b=0;9>b;b++)this.buffer_.push(a2&127|128),a2>>=7;this.buffer_.push(1)}},jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(a2){jspb.asserts.assert(a2==Math.floor(a2)),jspb.asserts.assert(0<=a2&&a2<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitInt64(a2),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeSignedVarint64=function(a2){jspb.asserts.assert(a2==Math.floor(a2)),jspb.asserts.assert(a2>=-jspb.BinaryConstants.TWO_TO_63&&a2<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(a2),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint32=function(a2){jspb.asserts.assert(a2==Math.floor(a2)),jspb.asserts.assert(a2>=-jspb.BinaryConstants.TWO_TO_31&&a2<jspb.BinaryConstants.TWO_TO_31),this.writeUnsignedVarint32((a2<<1^a2>>31)>>>0)},jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(a2){jspb.asserts.assert(a2==Math.floor(a2)),jspb.asserts.assert(a2>=-jspb.BinaryConstants.TWO_TO_63&&a2<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitZigzag64(a2),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint64String=function(a2){this.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(a2))},jspb.BinaryEncoder.prototype.writeZigzagVarintHash64=function(a2){var b=this;jspb.utils.splitHash64(a2),jspb.utils.toZigzag64(jspb.utils.split64Low,jspb.utils.split64High,function(a3,d){b.writeSplitVarint64(a3>>>0,d>>>0)})},jspb.BinaryEncoder.prototype.writeUint8=function(a2){jspb.asserts.assert(a2==Math.floor(a2)),jspb.asserts.assert(0<=a2&&256>a2),this.buffer_.push(a2>>>0&255)},jspb.BinaryEncoder.prototype.writeUint16=function(a2){jspb.asserts.assert(a2==Math.floor(a2)),jspb.asserts.assert(0<=a2&&65536>a2),this.buffer_.push(a2>>>0&255),this.buffer_.push(a2>>>8&255)},jspb.BinaryEncoder.prototype.writeUint32=function(a2){jspb.asserts.assert(a2==Math.floor(a2)),jspb.asserts.assert(0<=a2&&a2<jspb.BinaryConstants.TWO_TO_32),this.buffer_.push(a2>>>0&255),this.buffer_.push(a2>>>8&255),this.buffer_.push(a2>>>16&255),this.buffer_.push(a2>>>24&255)},jspb.BinaryEncoder.prototype.writeUint64=function(a2){jspb.asserts.assert(a2==Math.floor(a2)),jspb.asserts.assert(0<=a2&&a2<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitUint64(a2),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt8=function(a2){jspb.asserts.assert(a2==Math.floor(a2)),jspb.asserts.assert(-128<=a2&&128>a2),this.buffer_.push(a2>>>0&255)},jspb.BinaryEncoder.prototype.writeInt16=function(a2){jspb.asserts.assert(a2==Math.floor(a2)),jspb.asserts.assert(-32768<=a2&&32768>a2),this.buffer_.push(a2>>>0&255),this.buffer_.push(a2>>>8&255)},jspb.BinaryEncoder.prototype.writeInt32=function(a2){jspb.asserts.assert(a2==Math.floor(a2)),jspb.asserts.assert(a2>=-jspb.BinaryConstants.TWO_TO_31&&a2<jspb.BinaryConstants.TWO_TO_31),this.buffer_.push(a2>>>0&255),this.buffer_.push(a2>>>8&255),this.buffer_.push(a2>>>16&255),this.buffer_.push(a2>>>24&255)},jspb.BinaryEncoder.prototype.writeInt64=function(a2){jspb.asserts.assert(a2==Math.floor(a2)),jspb.asserts.assert(a2>=-jspb.BinaryConstants.TWO_TO_63&&a2<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(a2),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt64String=function(a2){jspb.asserts.assert(a2==Math.floor(a2)),jspb.asserts.assert(+a2>=-jspb.BinaryConstants.TWO_TO_63&&+a2<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(a2)),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFloat=function(a2){jspb.asserts.assert(a2===1/0||a2===-1/0||isNaN(a2)||a2>=-jspb.BinaryConstants.FLOAT32_MAX&&a2<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(a2),this.writeUint32(jspb.utils.split64Low)},jspb.BinaryEncoder.prototype.writeDouble=function(a2){jspb.asserts.assert(a2===1/0||a2===-1/0||isNaN(a2)||a2>=-jspb.BinaryConstants.FLOAT64_MAX&&a2<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(a2),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeBool=function(a2){jspb.asserts.assert(typeof a2=="boolean"||typeof a2=="number"),this.buffer_.push(a2?1:0)},jspb.BinaryEncoder.prototype.writeEnum=function(a2){jspb.asserts.assert(a2==Math.floor(a2)),jspb.asserts.assert(a2>=-jspb.BinaryConstants.TWO_TO_31&&a2<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32(a2)},jspb.BinaryEncoder.prototype.writeBytes=function(a2){this.buffer_.push.apply(this.buffer_,a2)},jspb.BinaryEncoder.prototype.writeVarintHash64=function(a2){jspb.utils.splitHash64(a2),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFixedHash64=function(a2){jspb.utils.splitHash64(a2),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeString=function(a2){var b=this.buffer_.length;jspb.asserts.assertString(a2);for(var c=0;c<a2.length;c++){var d=a2.charCodeAt(c);if(128>d)this.buffer_.push(d);else if(2048>d)this.buffer_.push(d>>6|192),this.buffer_.push(d&63|128);else if(65536>d)if(55296<=d&&56319>=d&&c+1<a2.length){var e=a2.charCodeAt(c+1);56320<=e&&57343>=e&&(d=1024*(d-55296)+e-56320+65536,this.buffer_.push(d>>18|240),this.buffer_.push(d>>12&63|128),this.buffer_.push(d>>6&63|128),this.buffer_.push(d&63|128),c++)}else this.buffer_.push(d>>12|224),this.buffer_.push(d>>6&63|128),this.buffer_.push(d&63|128)}return this.buffer_.length-b},jspb.arith={},jspb.arith.UInt64=function(a2,b){this.lo=a2,this.hi=b},jspb.arith.UInt64.prototype.cmp=function(a2){return this.hi<a2.hi||this.hi==a2.hi&&this.lo<a2.lo?-1:this.hi==a2.hi&&this.lo==a2.lo?0:1},jspb.arith.UInt64.prototype.rightShift=function(){return new jspb.arith.UInt64((this.lo>>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},jspb.arith.UInt64.prototype.leftShift=function(){return new jspb.arith.UInt64(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},jspb.arith.UInt64.prototype.msb=function(){return!!(this.hi&2147483648)},jspb.arith.UInt64.prototype.lsb=function(){return!!(this.lo&1)},jspb.arith.UInt64.prototype.zero=function(){return this.lo==0&&this.hi==0},jspb.arith.UInt64.prototype.add=function(a2){return new jspb.arith.UInt64((this.lo+a2.lo&4294967295)>>>0>>>0,((this.hi+a2.hi&4294967295)>>>0)+(4294967296<=this.lo+a2.lo?1:0)>>>0)},jspb.arith.UInt64.prototype.sub=function(a2){return new jspb.arith.UInt64((this.lo-a2.lo&4294967295)>>>0>>>0,((this.hi-a2.hi&4294967295)>>>0)-(0>this.lo-a2.lo?1:0)>>>0)},jspb.arith.UInt64.mul32x32=function(a2,b){var c=a2&65535;a2>>>=16;var d=b&65535,e=b>>>16;for(b=c*d+65536*(c*e&65535)+65536*(a2*d&65535),c=a2*e+(c*e>>>16)+(a2*d>>>16);4294967296<=b;)b-=4294967296,c+=1;return new jspb.arith.UInt64(b>>>0,c>>>0)},jspb.arith.UInt64.prototype.mul=function(a2){var b=jspb.arith.UInt64.mul32x32(this.lo,a2);return a2=jspb.arith.UInt64.mul32x32(this.hi,a2),a2.hi=a2.lo,a2.lo=0,b.add(a2)},jspb.arith.UInt64.prototype.div=function(a2){if(a2==0)return[];var b=new jspb.arith.UInt64(0,0),c=new jspb.arith.UInt64(this.lo,this.hi);a2=new jspb.arith.UInt64(a2,0);for(var d=new jspb.arith.UInt64(1,0);!a2.msb();)a2=a2.leftShift(),d=d.leftShift();for(;!d.zero();)0>=a2.cmp(c)&&(b=b.add(d),c=c.sub(a2)),a2=a2.rightShift(),d=d.rightShift();return[b,c]},jspb.arith.UInt64.prototype.toString=function(){for(var a2="",b=this;!b.zero();){b=b.div(10);var c=b[0];a2=b[1].lo+a2,b=c}return a2==""&&(a2="0"),a2},jspb.arith.UInt64.fromString=function(a2){for(var b=new jspb.arith.UInt64(0,0),c=new jspb.arith.UInt64(0,0),d=0;d<a2.length;d++){if("0">a2[d]||"9"<a2[d])return null;var e=parseInt(a2[d],10);c.lo=e,b=b.mul(10).add(c)}return b},jspb.arith.UInt64.prototype.clone=function(){return new jspb.arith.UInt64(this.lo,this.hi)},jspb.arith.Int64=function(a2,b){this.lo=a2,this.hi=b},jspb.arith.Int64.prototype.add=function(a2){return new jspb.arith.Int64((this.lo+a2.lo&4294967295)>>>0>>>0,((this.hi+a2.hi&4294967295)>>>0)+(4294967296<=this.lo+a2.lo?1:0)>>>0)},jspb.arith.Int64.prototype.sub=function(a2){return new jspb.arith.Int64((this.lo-a2.lo&4294967295)>>>0>>>0,((this.hi-a2.hi&4294967295)>>>0)-(0>this.lo-a2.lo?1:0)>>>0)},jspb.arith.Int64.prototype.clone=function(){return new jspb.arith.Int64(this.lo,this.hi)},jspb.arith.Int64.prototype.toString=function(){var a2=(this.hi&2147483648)!=0,b=new jspb.arith.UInt64(this.lo,this.hi);return a2&&(b=new jspb.arith.UInt64(0,0).sub(b)),(a2?"-":"")+b.toString()},jspb.arith.Int64.fromString=function(a2){var b=0<a2.length&&a2[0]=="-";return b&&(a2=a2.substring(1)),a2=jspb.arith.UInt64.fromString(a2),a2===null?null:(b&&(a2=new jspb.arith.UInt64(0,0).sub(a2)),new jspb.arith.Int64(a2.lo,a2.hi))},jspb.BinaryWriter=function(){this.blocks_=[],this.totalLength_=0,this.encoder_=new jspb.BinaryEncoder,this.bookmarks_=[]},jspb.BinaryWriter.prototype.appendUint8Array_=function(a2){var b=this.encoder_.end();this.blocks_.push(b),this.blocks_.push(a2),this.totalLength_+=b.length+a2.length},jspb.BinaryWriter.prototype.beginDelimited_=function(a2){return this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.DELIMITED),a2=this.encoder_.end(),this.blocks_.push(a2),this.totalLength_+=a2.length,a2.push(this.totalLength_),a2},jspb.BinaryWriter.prototype.endDelimited_=function(a2){var b=a2.pop();for(b=this.totalLength_+this.encoder_.length()-b,jspb.asserts.assert(0<=b);127<b;)a2.push(b&127|128),b>>>=7,this.totalLength_++;a2.push(b),this.totalLength_++},jspb.BinaryWriter.prototype.writeSerializedMessage=function(a2,b,c){this.appendUint8Array_(a2.subarray(b,c))},jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(a2,b,c){a2!=null&&b!=null&&c!=null&&this.writeSerializedMessage(a2,b,c)},jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]},jspb.BinaryWriter.prototype.getResultBuffer=function(){jspb.asserts.assert(this.bookmarks_.length==0);for(var a2=new Uint8Array(this.totalLength_+this.encoder_.length()),b=this.blocks_,c=b.length,d=0,e=0;e<c;e++){var f=b[e];a2.set(f,d),d+=f.length}return b=this.encoder_.end(),a2.set(b,d),d+=b.length,jspb.asserts.assert(d==a2.length),this.blocks_=[a2],a2},goog.exportProperty(jspb.BinaryWriter.prototype,"getResultBuffer",jspb.BinaryWriter.prototype.getResultBuffer),jspb.BinaryWriter.prototype.getResultBase64String=function(a2){return goog.crypt.base64.encodeByteArray(this.getResultBuffer(),a2)},jspb.BinaryWriter.prototype.beginSubMessage=function(a2){this.bookmarks_.push(this.beginDelimited_(a2))},jspb.BinaryWriter.prototype.endSubMessage=function(){jspb.asserts.assert(0<=this.bookmarks_.length),this.endDelimited_(this.bookmarks_.pop())},jspb.BinaryWriter.prototype.writeFieldHeader_=function(a2,b){jspb.asserts.assert(1<=a2&&a2==Math.floor(a2)),this.encoder_.writeUnsignedVarint32(8*a2+b)},jspb.BinaryWriter.prototype.writeAny=function(a2,b,c){var d=jspb.BinaryConstants.FieldType;switch(a2){case d.DOUBLE:this.writeDouble(b,c);break;case d.FLOAT:this.writeFloat(b,c);break;case d.INT64:this.writeInt64(b,c);break;case d.UINT64:this.writeUint64(b,c);break;case d.INT32:this.writeInt32(b,c);break;case d.FIXED64:this.writeFixed64(b,c);break;case d.FIXED32:this.writeFixed32(b,c);break;case d.BOOL:this.writeBool(b,c);break;case d.STRING:this.writeString(b,c);break;case d.GROUP:jspb.asserts.fail("Group field type not supported in writeAny()");break;case d.MESSAGE:jspb.asserts.fail("Message field type not supported in writeAny()");break;case d.BYTES:this.writeBytes(b,c);break;case d.UINT32:this.writeUint32(b,c);break;case d.ENUM:this.writeEnum(b,c);break;case d.SFIXED32:this.writeSfixed32(b,c);break;case d.SFIXED64:this.writeSfixed64(b,c);break;case d.SINT32:this.writeSint32(b,c);break;case d.SINT64:this.writeSint64(b,c);break;case d.FHASH64:this.writeFixedHash64(b,c);break;case d.VHASH64:this.writeVarintHash64(b,c);break;default:jspb.asserts.fail("Invalid field type in writeAny()")}},jspb.BinaryWriter.prototype.writeUnsignedVarint32_=function(a2,b){b!=null&&(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(b))},jspb.BinaryWriter.prototype.writeSignedVarint32_=function(a2,b){b!=null&&(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(b))},jspb.BinaryWriter.prototype.writeUnsignedVarint64_=function(a2,b){b!=null&&(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint64(b))},jspb.BinaryWriter.prototype.writeSignedVarint64_=function(a2,b){b!=null&&(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint64(b))},jspb.BinaryWriter.prototype.writeZigzagVarint32_=function(a2,b){b!=null&&(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(b))},jspb.BinaryWriter.prototype.writeZigzagVarint64_=function(a2,b){b!=null&&(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64(b))},jspb.BinaryWriter.prototype.writeZigzagVarint64String_=function(a2,b){b!=null&&(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64String(b))},jspb.BinaryWriter.prototype.writeZigzagVarintHash64_=function(a2,b){b!=null&&(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarintHash64(b))},jspb.BinaryWriter.prototype.writeInt32=function(a2,b){b!=null&&(jspb.asserts.assert(b>=-jspb.BinaryConstants.TWO_TO_31&&b<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(a2,b))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeInt32",jspb.BinaryWriter.prototype.writeInt32),jspb.BinaryWriter.prototype.writeInt32String=function(a2,b){b!=null&&(b=parseInt(b,10),jspb.asserts.assert(b>=-jspb.BinaryConstants.TWO_TO_31&&b<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(a2,b))},jspb.BinaryWriter.prototype.writeInt64=function(a2,b){b!=null&&(jspb.asserts.assert(b>=-jspb.BinaryConstants.TWO_TO_63&&b<jspb.BinaryConstants.TWO_TO_63),this.writeSignedVarint64_(a2,b))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeInt64",jspb.BinaryWriter.prototype.writeInt64),jspb.BinaryWriter.prototype.writeInt64String=function(a2,b){b!=null&&(b=jspb.arith.Int64.fromString(b),this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(b.lo,b.hi))},jspb.BinaryWriter.prototype.writeUint32=function(a2,b){b!=null&&(jspb.asserts.assert(0<=b&&b<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(a2,b))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeUint32",jspb.BinaryWriter.prototype.writeUint32),jspb.BinaryWriter.prototype.writeUint32String=function(a2,b){b!=null&&(b=parseInt(b,10),jspb.asserts.assert(0<=b&&b<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(a2,b))},jspb.BinaryWriter.prototype.writeUint64=function(a2,b){b!=null&&(jspb.asserts.assert(0<=b&&b<jspb.BinaryConstants.TWO_TO_64),this.writeUnsignedVarint64_(a2,b))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeUint64",jspb.BinaryWriter.prototype.writeUint64),jspb.BinaryWriter.prototype.writeUint64String=function(a2,b){b!=null&&(b=jspb.arith.UInt64.fromString(b),this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(b.lo,b.hi))},jspb.BinaryWriter.prototype.writeSint32=function(a2,b){b!=null&&(jspb.asserts.assert(b>=-jspb.BinaryConstants.TWO_TO_31&&b<jspb.BinaryConstants.TWO_TO_31),this.writeZigzagVarint32_(a2,b))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSint32",jspb.BinaryWriter.prototype.writeSint32),jspb.BinaryWriter.prototype.writeSint64=function(a2,b){b!=null&&(jspb.asserts.assert(b>=-jspb.BinaryConstants.TWO_TO_63&&b<jspb.BinaryConstants.TWO_TO_63),this.writeZigzagVarint64_(a2,b))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSint64",jspb.BinaryWriter.prototype.writeSint64),jspb.BinaryWriter.prototype.writeSintHash64=function(a2,b){b!=null&&this.writeZigzagVarintHash64_(a2,b)},jspb.BinaryWriter.prototype.writeSint64String=function(a2,b){b!=null&&this.writeZigzagVarint64String_(a2,b)},jspb.BinaryWriter.prototype.writeFixed32=function(a2,b){b!=null&&(jspb.asserts.assert(0<=b&&b<jspb.BinaryConstants.TWO_TO_32),this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeUint32(b))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFixed32",jspb.BinaryWriter.prototype.writeFixed32),jspb.BinaryWriter.prototype.writeFixed64=function(a2,b){b!=null&&(jspb.asserts.assert(0<=b&&b<jspb.BinaryConstants.TWO_TO_64),this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeUint64(b))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFixed64",jspb.BinaryWriter.prototype.writeFixed64),jspb.BinaryWriter.prototype.writeFixed64String=function(a2,b){b!=null&&(b=jspb.arith.UInt64.fromString(b),this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(b.lo,b.hi))},jspb.BinaryWriter.prototype.writeSfixed32=function(a2,b){b!=null&&(jspb.asserts.assert(b>=-jspb.BinaryConstants.TWO_TO_31&&b<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeInt32(b))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSfixed32",jspb.BinaryWriter.prototype.writeSfixed32),jspb.BinaryWriter.prototype.writeSfixed64=function(a2,b){b!=null&&(jspb.asserts.assert(b>=-jspb.BinaryConstants.TWO_TO_63&&b<jspb.BinaryConstants.TWO_TO_63),this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeInt64(b))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSfixed64",jspb.BinaryWriter.prototype.writeSfixed64),jspb.BinaryWriter.prototype.writeSfixed64String=function(a2,b){b!=null&&(b=jspb.arith.Int64.fromString(b),this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(b.lo,b.hi))},jspb.BinaryWriter.prototype.writeFloat=function(a2,b){b!=null&&(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeFloat(b))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFloat",jspb.BinaryWriter.prototype.writeFloat),jspb.BinaryWriter.prototype.writeDouble=function(a2,b){b!=null&&(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeDouble(b))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeDouble",jspb.BinaryWriter.prototype.writeDouble),jspb.BinaryWriter.prototype.writeBool=function(a2,b){b!=null&&(jspb.asserts.assert(typeof b=="boolean"||typeof b=="number"),this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeBool(b))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeBool",jspb.BinaryWriter.prototype.writeBool),jspb.BinaryWriter.prototype.writeEnum=function(a2,b){b!=null&&(jspb.asserts.assert(b>=-jspb.BinaryConstants.TWO_TO_31&&b<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(b))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeEnum",jspb.BinaryWriter.prototype.writeEnum),jspb.BinaryWriter.prototype.writeString=function(a2,b){b!=null&&(a2=this.beginDelimited_(a2),this.encoder_.writeString(b),this.endDelimited_(a2))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeString",jspb.BinaryWriter.prototype.writeString),jspb.BinaryWriter.prototype.writeBytes=function(a2,b){b!=null&&(b=jspb.utils.byteSourceToUint8Array(b),this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(b.length),this.appendUint8Array_(b))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeBytes",jspb.BinaryWriter.prototype.writeBytes),jspb.BinaryWriter.prototype.writeMessage=function(a2,b,c){b!=null&&(a2=this.beginDelimited_(a2),c(b,this),this.endDelimited_(a2))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeMessage",jspb.BinaryWriter.prototype.writeMessage),jspb.BinaryWriter.prototype.writeMessageSet=function(a2,b,c){b!=null&&(this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.START_GROUP),this.writeFieldHeader_(2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(a2),a2=this.beginDelimited_(3),c(b,this),this.endDelimited_(a2),this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.END_GROUP))},jspb.BinaryWriter.prototype.writeGroup=function(a2,b,c){b!=null&&(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.START_GROUP),c(b,this),this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.END_GROUP))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeGroup",jspb.BinaryWriter.prototype.writeGroup),jspb.BinaryWriter.prototype.writeFixedHash64=function(a2,b){b!=null&&(jspb.asserts.assert(b.length==8),this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeFixedHash64(b))},jspb.BinaryWriter.prototype.writeVarintHash64=function(a2,b){b!=null&&(jspb.asserts.assert(b.length==8),this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeVarintHash64(b))},jspb.BinaryWriter.prototype.writeSplitFixed64=function(a2,b,c){this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(b,c)},jspb.BinaryWriter.prototype.writeSplitVarint64=function(a2,b,c){this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(b,c)},jspb.BinaryWriter.prototype.writeSplitZigzagVarint64=function(a2,b,c){this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.VARINT);var d=this.encoder_;jspb.utils.toZigzag64(b,c,function(a3,b2){d.writeSplitVarint64(a3>>>0,b2>>>0)})},jspb.BinaryWriter.prototype.writeRepeatedInt32=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeSignedVarint32_(a2,b[c])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedInt32",jspb.BinaryWriter.prototype.writeRepeatedInt32),jspb.BinaryWriter.prototype.writeRepeatedInt32String=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeInt32String(a2,b[c])},jspb.BinaryWriter.prototype.writeRepeatedInt64=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeSignedVarint64_(a2,b[c])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedInt64",jspb.BinaryWriter.prototype.writeRepeatedInt64),jspb.BinaryWriter.prototype.writeRepeatedSplitFixed64=function(a2,b,c,d){if(b!=null)for(var e=0;e<b.length;e++)this.writeSplitFixed64(a2,c(b[e]),d(b[e]))},jspb.BinaryWriter.prototype.writeRepeatedSplitVarint64=function(a2,b,c,d){if(b!=null)for(var e=0;e<b.length;e++)this.writeSplitVarint64(a2,c(b[e]),d(b[e]))},jspb.BinaryWriter.prototype.writeRepeatedSplitZigzagVarint64=function(a2,b,c,d){if(b!=null)for(var e=0;e<b.length;e++)this.writeSplitZigzagVarint64(a2,c(b[e]),d(b[e]))},jspb.BinaryWriter.prototype.writeRepeatedInt64String=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeInt64String(a2,b[c])},jspb.BinaryWriter.prototype.writeRepeatedUint32=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeUnsignedVarint32_(a2,b[c])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedUint32",jspb.BinaryWriter.prototype.writeRepeatedUint32),jspb.BinaryWriter.prototype.writeRepeatedUint32String=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeUint32String(a2,b[c])},jspb.BinaryWriter.prototype.writeRepeatedUint64=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeUnsignedVarint64_(a2,b[c])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedUint64",jspb.BinaryWriter.prototype.writeRepeatedUint64),jspb.BinaryWriter.prototype.writeRepeatedUint64String=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeUint64String(a2,b[c])},jspb.BinaryWriter.prototype.writeRepeatedSint32=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeZigzagVarint32_(a2,b[c])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSint32",jspb.BinaryWriter.prototype.writeRepeatedSint32),jspb.BinaryWriter.prototype.writeRepeatedSint64=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeZigzagVarint64_(a2,b[c])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSint64",jspb.BinaryWriter.prototype.writeRepeatedSint64),jspb.BinaryWriter.prototype.writeRepeatedSint64String=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeZigzagVarint64String_(a2,b[c])},jspb.BinaryWriter.prototype.writeRepeatedSintHash64=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeZigzagVarintHash64_(a2,b[c])},jspb.BinaryWriter.prototype.writeRepeatedFixed32=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeFixed32(a2,b[c])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed32",jspb.BinaryWriter.prototype.writeRepeatedFixed32),jspb.BinaryWriter.prototype.writeRepeatedFixed64=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeFixed64(a2,b[c])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed64",jspb.BinaryWriter.prototype.writeRepeatedFixed64),jspb.BinaryWriter.prototype.writeRepeatedFixed64String=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeFixed64String(a2,b[c])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed64String",jspb.BinaryWriter.prototype.writeRepeatedFixed64String),jspb.BinaryWriter.prototype.writeRepeatedSfixed32=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeSfixed32(a2,b[c])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSfixed32",jspb.BinaryWriter.prototype.writeRepeatedSfixed32),jspb.BinaryWriter.prototype.writeRepeatedSfixed64=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeSfixed64(a2,b[c])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSfixed64",jspb.BinaryWriter.prototype.writeRepeatedSfixed64),jspb.BinaryWriter.prototype.writeRepeatedSfixed64String=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeSfixed64String(a2,b[c])},jspb.BinaryWriter.prototype.writeRepeatedFloat=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeFloat(a2,b[c])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFloat",jspb.BinaryWriter.prototype.writeRepeatedFloat),jspb.BinaryWriter.prototype.writeRepeatedDouble=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeDouble(a2,b[c])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedDouble",jspb.BinaryWriter.prototype.writeRepeatedDouble),jspb.BinaryWriter.prototype.writeRepeatedBool=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeBool(a2,b[c])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedBool",jspb.BinaryWriter.prototype.writeRepeatedBool),jspb.BinaryWriter.prototype.writeRepeatedEnum=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeEnum(a2,b[c])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedEnum",jspb.BinaryWriter.prototype.writeRepeatedEnum),jspb.BinaryWriter.prototype.writeRepeatedString=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeString(a2,b[c])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedString",jspb.BinaryWriter.prototype.writeRepeatedString),jspb.BinaryWriter.prototype.writeRepeatedBytes=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeBytes(a2,b[c])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedBytes",jspb.BinaryWriter.prototype.writeRepeatedBytes),jspb.BinaryWriter.prototype.writeRepeatedMessage=function(a2,b,c){if(b!=null)for(var d=0;d<b.length;d++){var e=this.beginDelimited_(a2);c(b[d],this),this.endDelimited_(e)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedMessage",jspb.BinaryWriter.prototype.writeRepeatedMessage),jspb.BinaryWriter.prototype.writeRepeatedGroup=function(a2,b,c){if(b!=null)for(var d=0;d<b.length;d++)this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.START_GROUP),c(b[d],this),this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.END_GROUP)},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedGroup",jspb.BinaryWriter.prototype.writeRepeatedGroup),jspb.BinaryWriter.prototype.writeRepeatedFixedHash64=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeFixedHash64(a2,b[c])},jspb.BinaryWriter.prototype.writeRepeatedVarintHash64=function(a2,b){if(b!=null)for(var c=0;c<b.length;c++)this.writeVarintHash64(a2,b[c])},jspb.BinaryWriter.prototype.writePackedInt32=function(a2,b){if(b!=null&&b.length){a2=this.beginDelimited_(a2);for(var c=0;c<b.length;c++)this.encoder_.writeSignedVarint32(b[c]);this.endDelimited_(a2)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedInt32",jspb.BinaryWriter.prototype.writePackedInt32),jspb.BinaryWriter.prototype.writePackedInt32String=function(a2,b){if(b!=null&&b.length){a2=this.beginDelimited_(a2);for(var c=0;c<b.length;c++)this.encoder_.writeSignedVarint32(parseInt(b[c],10));this.endDelimited_(a2)}},jspb.BinaryWriter.prototype.writePackedInt64=function(a2,b){if(b!=null&&b.length){a2=this.beginDelimited_(a2);for(var c=0;c<b.length;c++)this.encoder_.writeSignedVarint64(b[c]);this.endDelimited_(a2)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedInt64",jspb.BinaryWriter.prototype.writePackedInt64),jspb.BinaryWriter.prototype.writePackedSplitFixed64=function(a2,b,c,d){if(b!=null){a2=this.beginDelimited_(a2);for(var e=0;e<b.length;e++)this.encoder_.writeSplitFixed64(c(b[e]),d(b[e]));this.endDelimited_(a2)}},jspb.BinaryWriter.prototype.writePackedSplitVarint64=function(a2,b,c,d){if(b!=null){a2=this.beginDelimited_(a2);for(var e=0;e<b.length;e++)this.encoder_.writeSplitVarint64(c(b[e]),d(b[e]));this.endDelimited_(a2)}},jspb.BinaryWriter.prototype.writePackedSplitZigzagVarint64=function(a2,b,c,d){if(b!=null){a2=this.beginDelimited_(a2);for(var e=this.encoder_,f=0;f<b.length;f++)jspb.utils.toZigzag64(c(b[f]),d(b[f]),function(a3,b2){e.writeSplitVarint64(a3>>>0,b2>>>0)});this.endDelimited_(a2)}},jspb.BinaryWriter.prototype.writePackedInt64String=function(a2,b){if(b!=null&&b.length){a2=this.beginDelimited_(a2);for(var c=0;c<b.length;c++){var d=jspb.arith.Int64.fromString(b[c]);this.encoder_.writeSplitVarint64(d.lo,d.hi)}this.endDelimited_(a2)}},jspb.BinaryWriter.prototype.writePackedUint32=function(a2,b){if(b!=null&&b.length){a2=this.beginDelimited_(a2);for(var c=0;c<b.length;c++)this.encoder_.writeUnsignedVarint32(b[c]);this.endDelimited_(a2)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedUint32",jspb.BinaryWriter.prototype.writePackedUint32),jspb.BinaryWriter.prototype.writePackedUint32String=function(a2,b){if(b!=null&&b.length){a2=this.beginDelimited_(a2);for(var c=0;c<b.length;c++)this.encoder_.writeUnsignedVarint32(parseInt(b[c],10));this.endDelimited_(a2)}},jspb.BinaryWriter.prototype.writePackedUint64=function(a2,b){if(b!=null&&b.length){a2=this.beginDelimited_(a2);for(var c=0;c<b.length;c++)this.encoder_.writeUnsignedVarint64(b[c]);this.endDelimited_(a2)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedUint64",jspb.BinaryWriter.prototype.writePackedUint64),jspb.BinaryWriter.prototype.writePackedUint64String=function(a2,b){if(b!=null&&b.length){a2=this.beginDelimited_(a2);for(var c=0;c<b.length;c++){var d=jspb.arith.UInt64.fromString(b[c]);this.encoder_.writeSplitVarint64(d.lo,d.hi)}this.endDelimited_(a2)}},jspb.BinaryWriter.prototype.writePackedSint32=function(a2,b){if(b!=null&&b.length){a2=this.beginDelimited_(a2);for(var c=0;c<b.length;c++)this.encoder_.writeZigzagVarint32(b[c]);this.endDelimited_(a2)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSint32",jspb.BinaryWriter.prototype.writePackedSint32),jspb.BinaryWriter.prototype.writePackedSint64=function(a2,b){if(b!=null&&b.length){a2=this.beginDelimited_(a2);for(var c=0;c<b.length;c++)this.encoder_.writeZigzagVarint64(b[c]);this.endDelimited_(a2)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSint64",jspb.BinaryWriter.prototype.writePackedSint64),jspb.BinaryWriter.prototype.writePackedSint64String=function(a2,b){if(b!=null&&b.length){a2=this.beginDelimited_(a2);for(var c=0;c<b.length;c++)this.encoder_.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(b[c]));this.endDelimited_(a2)}},jspb.BinaryWriter.prototype.writePackedSintHash64=function(a2,b){if(b!=null&&b.length){a2=this.beginDelimited_(a2);for(var c=0;c<b.length;c++)this.encoder_.writeZigzagVarintHash64(b[c]);this.endDelimited_(a2)}},jspb.BinaryWriter.prototype.writePackedFixed32=function(a2,b){if(b!=null&&b.length)for(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*b.length),a2=0;a2<b.length;a2++)this.encoder_.writeUint32(b[a2])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFixed32",jspb.BinaryWriter.prototype.writePackedFixed32),jspb.BinaryWriter.prototype.writePackedFixed64=function(a2,b){if(b!=null&&b.length)for(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*b.length),a2=0;a2<b.length;a2++)this.encoder_.writeUint64(b[a2])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFixed64",jspb.BinaryWriter.prototype.writePackedFixed64),jspb.BinaryWriter.prototype.writePackedFixed64String=function(a2,b){if(b!=null&&b.length)for(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*b.length),a2=0;a2<b.length;a2++){var c=jspb.arith.UInt64.fromString(b[a2]);this.encoder_.writeSplitFixed64(c.lo,c.hi)}},jspb.BinaryWriter.prototype.writePackedSfixed32=function(a2,b){if(b!=null&&b.length)for(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*b.length),a2=0;a2<b.length;a2++)this.encoder_.writeInt32(b[a2])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSfixed32",jspb.BinaryWriter.prototype.writePackedSfixed32),jspb.BinaryWriter.prototype.writePackedSfixed64=function(a2,b){if(b!=null&&b.length)for(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*b.length),a2=0;a2<b.length;a2++)this.encoder_.writeInt64(b[a2])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSfixed64",jspb.BinaryWriter.prototype.writePackedSfixed64),jspb.BinaryWriter.prototype.writePackedSfixed64String=function(a2,b){if(b!=null&&b.length)for(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*b.length),a2=0;a2<b.length;a2++)this.encoder_.writeInt64String(b[a2])},jspb.BinaryWriter.prototype.writePackedFloat=function(a2,b){if(b!=null&&b.length)for(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*b.length),a2=0;a2<b.length;a2++)this.encoder_.writeFloat(b[a2])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFloat",jspb.BinaryWriter.prototype.writePackedFloat),jspb.BinaryWriter.prototype.writePackedDouble=function(a2,b){if(b!=null&&b.length)for(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*b.length),a2=0;a2<b.length;a2++)this.encoder_.writeDouble(b[a2])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedDouble",jspb.BinaryWriter.prototype.writePackedDouble),jspb.BinaryWriter.prototype.writePackedBool=function(a2,b){if(b!=null&&b.length)for(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(b.length),a2=0;a2<b.length;a2++)this.encoder_.writeBool(b[a2])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedBool",jspb.BinaryWriter.prototype.writePackedBool),jspb.BinaryWriter.prototype.writePackedEnum=function(a2,b){if(b!=null&&b.length){a2=this.beginDelimited_(a2);for(var c=0;c<b.length;c++)this.encoder_.writeEnum(b[c]);this.endDelimited_(a2)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedEnum",jspb.BinaryWriter.prototype.writePackedEnum),jspb.BinaryWriter.prototype.writePackedFixedHash64=function(a2,b){if(b!=null&&b.length)for(this.writeFieldHeader_(a2,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*b.length),a2=0;a2<b.length;a2++)this.encoder_.writeFixedHash64(b[a2])},jspb.BinaryWriter.prototype.writePackedVarintHash64=function(a2,b){if(b!=null&&b.length){a2=this.beginDelimited_(a2);for(var c=0;c<b.length;c++)this.encoder_.writeVarintHash64(b[c]);this.endDelimited_(a2)}},jspb.Map=function(a2,b){this.arr_=a2,this.valueCtor_=b,this.map_={},this.arrClean=!0,0<this.arr_.length&&this.loadFromArray_()},goog.exportSymbol("jspb.Map",jspb.Map),jspb.Map.prototype.loadFromArray_=function(){for(var a2=0;a2<this.arr_.length;a2++){var b=this.arr_[a2],c=b[0];this.map_[c.toString()]=new jspb.Map.Entry_(c,b[1])}this.arrClean=!0},jspb.Map.prototype.toArray=function(){if(this.arrClean){if(this.valueCtor_){var a2=this.map_,b;for(b in a2)if(Object.prototype.hasOwnProperty.call(a2,b)){var c=a2[b].valueWrapper;c&&c.toArray()}}}else{for(this.arr_.length=0,a2=this.stringKeys_(),a2.sort(),b=0;b<a2.length;b++){var d=this.map_[a2[b]];(c=d.valueWrapper)&&c.toArray(),this.arr_.push([d.key,d.value])}this.arrClean=!0}return this.arr_},goog.exportProperty(jspb.Map.prototype,"toArray",jspb.Map.prototype.toArray),jspb.Map.prototype.toObject=function(a2,b){for(var c=this.toArray(),d=[],e=0;e<c.length;e++){var f=this.map_[c[e][0].toString()];this.wrapEntry_(f);var g=f.valueWrapper;g?(jspb.asserts.assert(b),d.push([f.key,b(a2,g)])):d.push([f.key,f.value])}return d},goog.exportProperty(jspb.Map.prototype,"toObject",jspb.Map.prototype.toObject),jspb.Map.fromObject=function(a2,b,c){b=new jspb.Map([],b);for(var d=0;d<a2.length;d++){var e=a2[d][0],f=c(a2[d][1]);b.set(e,f)}return b},goog.exportProperty(jspb.Map,"fromObject",jspb.Map.fromObject),jspb.Map.ArrayIteratorIterable_=function(a2){this.idx_=0,this.arr_=a2},jspb.Map.ArrayIteratorIterable_.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}},typeof Symbol<"u"&&(jspb.Map.ArrayIteratorIterable_.prototype[Symbol.iterator]=function(){return this}),jspb.Map.prototype.getLength=function(){return this.stringKeys_().length},goog.exportProperty(jspb.Map.prototype,"getLength",jspb.Map.prototype.getLength),jspb.Map.prototype.clear=function(){this.map_={},this.arrClean=!1},goog.exportProperty(jspb.Map.prototype,"clear",jspb.Map.prototype.clear),jspb.Map.prototype.del=function(a2){a2=a2.toString();var b=this.map_.hasOwnProperty(a2);return delete this.map_[a2],this.arrClean=!1,b},goog.exportProperty(jspb.Map.prototype,"del",jspb.Map.prototype.del),jspb.Map.prototype.getEntryList=function(){var a2=[],b=this.stringKeys_();b.sort();for(var c=0;c<b.length;c++){var d=this.map_[b[c]];a2.push([d.key,d.value])}return a2},goog.exportProperty(jspb.Map.prototype,"getEntryList",jspb.Map.prototype.getEntryList),jspb.Map.prototype.entries=function(){var a2=[],b=this.stringKeys_();b.sort();for(var c=0;c<b.length;c++){var d=this.map_[b[c]];a2.push([d.key,this.wrapEntry_(d)])}return new jspb.Map.ArrayIteratorIterable_(a2)},goog.exportProperty(jspb.Map.prototype,"entries",jspb.Map.prototype.entries),jspb.Map.prototype.keys=function(){var a2=[],b=this.stringKeys_();b.sort();for(var c=0;c<b.length;c++)a2.push(this.map_[b[c]].key);return new jspb.Map.ArrayIteratorIterable_(a2)},goog.exportProperty(jspb.Map.prototype,"keys",jspb.Map.prototype.keys),jspb.Map.prototype.values=function(){var a2=[],b=this.stringKeys_();b.sort();for(var c=0;c<b.length;c++)a2.push(this.wrapEntry_(this.map_[b[c]]));return new jspb.Map.ArrayIteratorIterable_(a2)},goog.exportProperty(jspb.Map.prototype,"values",jspb.Map.prototype.values),jspb.Map.prototype.forEach=function(a2,b){var c=this.stringKeys_();c.sort();for(var d=0;d<c.length;d++){var e=this.map_[c[d]];a2.call(b,this.wrapEntry_(e),e.key,this)}},goog.exportProperty(jspb.Map.prototype,"forEach",jspb.Map.prototype.forEach),jspb.Map.prototype.set=function(a2,b){var c=new jspb.Map.Entry_(a2);return this.valueCtor_?(c.valueWrapper=b,c.value=b.toArray()):c.value=b,this.map_[a2.toString()]=c,this.arrClean=!1,this},goog.exportProperty(jspb.Map.prototype,"set",jspb.Map.prototype.set),jspb.Map.prototype.wrapEntry_=function(a2){return this.valueCtor_?(a2.valueWrapper||(a2.valueWrapper=new this.valueCtor_(a2.value)),a2.valueWrapper):a2.value},jspb.Map.prototype.get=function(a2){if(a2=this.map_[a2.toString()])return this.wrapEntry_(a2)},goog.exportProperty(jspb.Map.prototype,"get",jspb.Map.prototype.get),jspb.Map.prototype.has=function(a2){return a2.toString()in this.map_},goog.exportProperty(jspb.Map.prototype,"has",jspb.Map.prototype.has),jspb.Map.prototype.serializeBinary=function(a2,b,c,d,e){var f=this.stringKeys_();f.sort();for(var g=0;g<f.length;g++){var h=this.map_[f[g]];b.beginSubMessage(a2),c.call(b,1,h.key),this.valueCtor_?d.call(b,2,this.wrapEntry_(h),e):d.call(b,2,h.value),b.endSubMessage()}},goog.exportProperty(jspb.Map.prototype,"serializeBinary",jspb.Map.prototype.serializeBinary),jspb.Map.deserializeBinary=function(a2,b,c,d,e,f,g){for(;b.nextField()&&!b.isEndGroup();){var h=b.getFieldNumber();h==1?f=c.call(b):h==2&&(a2.valueCtor_?(jspb.asserts.assert(e),g||(g=new a2.valueCtor_),d.call(b,g,e)):g=d.call(b))}jspb.asserts.assert(f!=null),jspb.asserts.assert(g!=null),a2.set(f,g)},goog.exportProperty(jspb.Map,"deserializeBinary",jspb.Map.deserializeBinary),jspb.Map.prototype.stringKeys_=function(){var a2=this.map_,b=[],c;for(c in a2)Object.prototype.hasOwnProperty.call(a2,c)&&b.push(c);return b},jspb.Map.Entry_=function(a2,b){this.key=a2,this.value=b,this.valueWrapper=void 0},jspb.ExtensionFieldInfo=function(a2,b,c,d,e){this.fieldIndex=a2,this.fieldName=b,this.ctor=c,this.toObjectFn=d,this.isRepeated=e},goog.exportSymbol("jspb.ExtensionFieldInfo",jspb.ExtensionFieldInfo),jspb.ExtensionFieldBinaryInfo=function(a2,b,c,d,e,f){this.fieldInfo=a2,this.binaryReaderFn=b,this.binaryWriterFn=c,this.binaryMessageSerializeFn=d,this.binaryMessageDeserializeFn=e,this.isPacked=f},goog.exportSymbol("jspb.ExtensionFieldBinaryInfo",jspb.ExtensionFieldBinaryInfo),jspb.ExtensionFieldInfo.prototype.isMessageType=function(){return!!this.ctor},goog.exportProperty(jspb.ExtensionFieldInfo.prototype,"isMessageType",jspb.ExtensionFieldInfo.prototype.isMessageType),jspb.Message=function(){},goog.exportSymbol("jspb.Message",jspb.Message),jspb.Message.GENERATE_TO_OBJECT=!0,goog.exportProperty(jspb.Message,"GENERATE_TO_OBJECT",jspb.Message.GENERATE_TO_OBJECT),jspb.Message.GENERATE_FROM_OBJECT=!goog.DISALLOW_TEST_ONLY_CODE,goog.exportProperty(jspb.Message,"GENERATE_FROM_OBJECT",jspb.Message.GENERATE_FROM_OBJECT),jspb.Message.GENERATE_TO_STRING=!0,jspb.Message.ASSUME_LOCAL_ARRAYS=!1,jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS=!0,jspb.Message.SUPPORTS_UINT8ARRAY_=typeof Uint8Array=="function",jspb.Message.prototype.getJsPbMessageId=function(){return this.messageId_},goog.exportProperty(jspb.Message.prototype,"getJsPbMessageId",jspb.Message.prototype.getJsPbMessageId),jspb.Message.getIndex_=function(a2,b){return b+a2.arrayIndexOffset_},jspb.Message.hiddenES6Property_=function(){},jspb.Message.getFieldNumber_=function(a2,b){return b-a2.arrayIndexOffset_},jspb.Message.initialize=function(a2,b,c,d,e,f){if(a2.wrappers_=null,b||(b=c?[c]:[]),a2.messageId_=c?String(c):void 0,a2.arrayIndexOffset_=c===0?-1:0,a2.array=b,jspb.Message.initPivotAndExtensionObject_(a2,d),a2.convertedPrimitiveFields_={},jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS||(a2.repeatedFields=e),e)for(b=0;b<e.length;b++)c=e[b],c<a2.pivot_?(c=jspb.Message.getIndex_(a2,c),a2.array[c]=a2.array[c]||jspb.Message.EMPTY_LIST_SENTINEL_):(jspb.Message.maybeInitEmptyExtensionObject_(a2),a2.extensionObject_[c]=a2.extensionObject_[c]||jspb.Message.EMPTY_LIST_SENTINEL_);if(f&&f.length)for(b=0;b<f.length;b++)jspb.Message.computeOneofCase(a2,f[b])},goog.exportProperty(jspb.Message,"initialize",jspb.Message.initialize),jspb.Message.EMPTY_LIST_SENTINEL_=goog.DEBUG&&Object.freeze?Object.freeze([]):[],jspb.Message.isArray_=function(a2){return jspb.Message.ASSUME_LOCAL_ARRAYS?a2 instanceof Array:Array.isArray(a2)},jspb.Message.isExtensionObject_=function(a2){return a2!==null&&typeof a2=="object"&&!jspb.Message.isArray_(a2)&&!(jspb.Message.SUPPORTS_UINT8ARRAY_&&a2 instanceof Uint8Array)},jspb.Message.initPivotAndExtensionObject_=function(a2,b){var c=a2.array.length,d=-1;if(c&&(d=c-1,c=a2.array[d],jspb.Message.isExtensionObject_(c))){a2.pivot_=jspb.Message.getFieldNumber_(a2,d),a2.extensionObject_=c;return}-1<b?(a2.pivot_=Math.max(b,jspb.Message.getFieldNumber_(a2,d+1)),a2.extensionObject_=null):a2.pivot_=Number.MAX_VALUE},jspb.Message.maybeInitEmptyExtensionObject_=function(a2){var b=jspb.Message.getIndex_(a2,a2.pivot_);a2.array[b]||(a2.extensionObject_=a2.array[b]={})},jspb.Message.toObjectList=function(a2,b,c){for(var d=[],e=0;e<a2.length;e++)d[e]=b.call(a2[e],c,a2[e]);return d},goog.exportProperty(jspb.Message,"toObjectList",jspb.Message.toObjectList),jspb.Message.toObjectExtension=function(a2,b,c,d,e){for(var f in c){var g=c[f],h=d.call(a2,g);if(h!=null){for(var k in g.fieldName)if(g.fieldName.hasOwnProperty(k))break;b[k]=g.toObjectFn?g.isRepeated?jspb.Message.toObjectList(h,g.toObjectFn,e):g.toObjectFn(e,h):h}}},goog.exportProperty(jspb.Message,"toObjectExtension",jspb.Message.toObjectExtension),jspb.Message.serializeBinaryExtensions=function(a2,b,c,d){for(var e in c){var f=c[e],g=f.fieldInfo;if(!f.binaryWriterFn)throw Error("Message extension present that was generated without binary serialization support");var h=d.call(a2,g);if(h!=null)if(g.isMessageType())if(f.binaryMessageSerializeFn)f.binaryWriterFn.call(b,g.fieldIndex,h,f.binaryMessageSerializeFn);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else f.binaryWriterFn.call(b,g.fieldIndex,h)}},goog.exportProperty(jspb.Message,"serializeBinaryExtensions",jspb.Message.serializeBinaryExtensions),jspb.Message.readBinaryExtension=function(a2,b,c,d,e){var f=c[b.getFieldNumber()];if(f){if(c=f.fieldInfo,!f.binaryReaderFn)throw Error("Deserializing extension whose generated code does not support binary format");if(c.isMessageType()){var g=new c.ctor;f.binaryReaderFn.call(b,g,f.binaryMessageDeserializeFn)}else g=f.binaryReaderFn.call(b);c.isRepeated&&!f.isPacked?(b=d.call(a2,c))?b.push(g):e.call(a2,c,[g]):e.call(a2,c,g)}else b.skipField()},goog.exportProperty(jspb.Message,"readBinaryExtension",jspb.Message.readBinaryExtension),jspb.Message.getField=function(a2,b){if(b<a2.pivot_){b=jspb.Message.getIndex_(a2,b);var c=a2.array[b];return c===jspb.Message.EMPTY_LIST_SENTINEL_?a2.array[b]=[]:c}if(a2.extensionObject_)return c=a2.extensionObject_[b],c===jspb.Message.EMPTY_LIST_SENTINEL_?a2.extensionObject_[b]=[]:c},goog.exportProperty(jspb.Message,"getField",jspb.Message.getField),jspb.Message.getRepeatedField=function(a2,b){return jspb.Message.getField(a2,b)},goog.exportProperty(jspb.Message,"getRepeatedField",jspb.Message.getRepeatedField),jspb.Message.getOptionalFloatingPointField=function(a2,b){return a2=jspb.Message.getField(a2,b),a2==null?a2:+a2},goog.exportProperty(jspb.Message,"getOptionalFloatingPointField",jspb.Message.getOptionalFloatingPointField),jspb.Message.getBooleanField=function(a2,b){return a2=jspb.Message.getField(a2,b),a2==null?a2:!!a2},goog.exportProperty(jspb.Message,"getBooleanField",jspb.Message.getBooleanField),jspb.Message.getRepeatedFloatingPointField=function(a2,b){var c=jspb.Message.getRepeatedField(a2,b);if(a2.convertedPrimitiveFields_||(a2.convertedPrimitiveFields_={}),!a2.convertedPrimitiveFields_[b]){for(var d=0;d<c.length;d++)c[d]=+c[d];a2.convertedPrimitiveFields_[b]=!0}return c},goog.exportProperty(jspb.Message,"getRepeatedFloatingPointField",jspb.Message.getRepeatedFloatingPointField),jspb.Message.getRepeatedBooleanField=function(a2,b){var c=jspb.Message.getRepeatedField(a2,b);if(a2.convertedPrimitiveFields_||(a2.convertedPrimitiveFields_={}),!a2.convertedPrimitiveFields_[b]){for(var d=0;d<c.length;d++)c[d]=!!c[d];a2.convertedPrimitiveFields_[b]=!0}return c},goog.exportProperty(jspb.Message,"getRepeatedBooleanField",jspb.Message.getRepeatedBooleanField),jspb.Message.bytesAsB64=function(a2){return a2==null||typeof a2=="string"?a2:jspb.Message.SUPPORTS_UINT8ARRAY_&&a2 instanceof Uint8Array?goog.crypt.base64.encodeByteArray(a2):(jspb.asserts.fail("Cannot coerce to b64 string: "+goog.typeOf(a2)),null)},goog.exportProperty(jspb.Message,"bytesAsB64",jspb.Message.bytesAsB64),jspb.Message.bytesAsU8=function(a2){return a2==null||a2 instanceof Uint8Array?a2:typeof a2=="string"?goog.crypt.base64.decodeStringToUint8Array(a2):(jspb.asserts.fail("Cannot coerce to Uint8Array: "+goog.typeOf(a2)),null)},goog.exportProperty(jspb.Message,"bytesAsU8",jspb.Message.bytesAsU8),jspb.Message.bytesListAsB64=function(a2){return jspb.Message.assertConsistentTypes_(a2),a2.length&&typeof a2[0]!="string"?goog.array.map(a2,jspb.Message.bytesAsB64):a2},goog.exportProperty(jspb.Message,"bytesListAsB64",jspb.Message.bytesListAsB64),jspb.Message.bytesListAsU8=function(a2){return jspb.Message.assertConsistentTypes_(a2),!a2.length||a2[0]instanceof Uint8Array?a2:goog.array.map(a2,jspb.Message.bytesAsU8)},goog.exportProperty(jspb.Message,"bytesListAsU8",jspb.Message.bytesListAsU8),jspb.Message.assertConsistentTypes_=function(a2){if(goog.DEBUG&&a2&&1<a2.length){var b=goog.typeOf(a2[0]);goog.array.forEach(a2,function(a3){goog.typeOf(a3)!=b&&jspb.asserts.fail("Inconsistent type in JSPB repeated field array. Got "+goog.typeOf(a3)+" expected "+b)})}},jspb.Message.getFieldWithDefault=function(a2,b,c){return a2=jspb.Message.getField(a2,b),a2??c},goog.exportProperty(jspb.Message,"getFieldWithDefault",jspb.Message.getFieldWithDefault),jspb.Message.getBooleanFieldWithDefault=function(a2,b,c){return a2=jspb.Message.getBooleanField(a2,b),a2??c},goog.exportProperty(jspb.Message,"getBooleanFieldWithDefault",jspb.Message.getBooleanFieldWithDefault),jspb.Message.getFloatingPointFieldWithDefault=function(a2,b,c){return a2=jspb.Message.getOptionalFloatingPointField(a2,b),a2??c},goog.exportProperty(jspb.Message,"getFloatingPointFieldWithDefault",jspb.Message.getFloatingPointFieldWithDefault),jspb.Message.getFieldProto3=jspb.Message.getFieldWithDefault,goog.exportProperty(jspb.Message,"getFieldProto3",jspb.Message.getFieldProto3),jspb.Message.getMapField=function(a2,b,c,d){if(a2.wrappers_||(a2.wrappers_={}),b in a2.wrappers_)return a2.wrappers_[b];var e=jspb.Message.getField(a2,b);if(!e){if(c)return;e=[],jspb.Message.setField(a2,b,e)}return a2.wrappers_[b]=new jspb.Map(e,d)},goog.exportProperty(jspb.Message,"getMapField",jspb.Message.getMapField),jspb.Message.setField=function(a2,b,c){return jspb.asserts.assertInstanceof(a2,jspb.Message),b<a2.pivot_?a2.array[jspb.Message.getIndex_(a2,b)]=c:(jspb.Message.maybeInitEmptyExtensionObject_(a2),a2.extensionObject_[b]=c),a2},goog.exportProperty(jspb.Message,"setField",jspb.Message.setField),jspb.Message.setProto3IntField=function(a2,b,c){return jspb.Message.setFieldIgnoringDefault_(a2,b,c,0)},goog.exportProperty(jspb.Message,"setProto3IntField",jspb.Message.setProto3IntField),jspb.Message.setProto3FloatField=function(a2,b,c){return jspb.Message.setFieldIgnoringDefault_(a2,b,c,0)},goog.exportProperty(jspb.Message,"setProto3FloatField",jspb.Message.setProto3FloatField),jspb.Message.setProto3BooleanField=function(a2,b,c){return jspb.Message.setFieldIgnoringDefault_(a2,b,c,!1)},goog.exportProperty(jspb.Message,"setProto3BooleanField",jspb.Message.setProto3BooleanField),jspb.Message.setProto3StringField=function(a2,b,c){return jspb.Message.setFieldIgnoringDefault_(a2,b,c,"")},goog.exportProperty(jspb.Message,"setProto3StringField",jspb.Message.setProto3StringField),jspb.Message.setProto3BytesField=function(a2,b,c){return jspb.Message.setFieldIgnoringDefault_(a2,b,c,"")},goog.exportProperty(jspb.Message,"setProto3BytesField",jspb.Message.setProto3BytesField),jspb.Message.setProto3EnumField=function(a2,b,c){return jspb.Message.setFieldIgnoringDefault_(a2,b,c,0)},goog.exportProperty(jspb.Message,"setProto3EnumField",jspb.Message.setProto3EnumField),jspb.Message.setProto3StringIntField=function(a2,b,c){return jspb.Message.setFieldIgnoringDefault_(a2,b,c,"0")},goog.exportProperty(jspb.Message,"setProto3StringIntField",jspb.Message.setProto3StringIntField),jspb.Message.setFieldIgnoringDefault_=function(a2,b,c,d){return jspb.asserts.assertInstanceof(a2,jspb.Message),c!==d?jspb.Message.setField(a2,b,c):b<a2.pivot_?a2.array[jspb.Message.getIndex_(a2,b)]=null:(jspb.Message.maybeInitEmptyExtensionObject_(a2),delete a2.extensionObject_[b]),a2},jspb.Message.addToRepeatedField=function(a2,b,c,d){return jspb.asserts.assertInstanceof(a2,jspb.Message),b=jspb.Message.getRepeatedField(a2,b),d!=null?b.splice(d,0,c):b.push(c),a2},goog.exportProperty(jspb.Message,"addToRepeatedField",jspb.Message.addToRepeatedField),jspb.Message.setOneofField=function(a2,b,c,d){return jspb.asserts.assertInstanceof(a2,jspb.Message),(c=jspb.Message.computeOneofCase(a2,c))&&c!==b&&d!==void 0&&(a2.wrappers_&&c in a2.wrappers_&&(a2.wrappers_[c]=void 0),jspb.Message.setField(a2,c,void 0)),jspb.Message.setField(a2,b,d)},goog.exportProperty(jspb.Message,"setOneofField",jspb.Message.setOneofField),jspb.Message.computeOneofCase=function(a2,b){for(var c,d,e=0;e<b.length;e++){var f=b[e],g=jspb.Message.getField(a2,f);g!=null&&(c=f,d=g,jspb.Message.setField(a2,f,void 0))}return c?(jspb.Message.setField(a2,c,d),c):0},goog.exportProperty(jspb.Message,"computeOneofCase",jspb.Message.computeOneofCase),jspb.Message.getWrapperField=function(a2,b,c,d){if(a2.wrappers_||(a2.wrappers_={}),!a2.wrappers_[c]){var e=jspb.Message.getField(a2,c);(d||e)&&(a2.wrappers_[c]=new b(e))}return a2.wrappers_[c]},goog.exportProperty(jspb.Message,"getWrapperField",jspb.Message.getWrapperField),jspb.Message.getRepeatedWrapperField=function(a2,b,c){return jspb.Message.wrapRepeatedField_(a2,b,c),b=a2.wrappers_[c],b==jspb.Message.EMPTY_LIST_SENTINEL_&&(b=a2.wrappers_[c]=[]),b},goog.exportProperty(jspb.Message,"getRepeatedWrapperField",jspb.Message.getRepeatedWrapperField),jspb.Message.wrapRepeatedField_=function(a2,b,c){if(a2.wrappers_||(a2.wrappers_={}),!a2.wrappers_[c]){for(var d=jspb.Message.getRepeatedField(a2,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a2.wrappers_[c]=e}},jspb.Message.setWrapperField=function(a2,b,c){jspb.asserts.assertInstanceof(a2,jspb.Message),a2.wrappers_||(a2.wrappers_={});var d=c&&c.toArray();return a2.wrappers_[b]=c,jspb.Message.setField(a2,b,d)},goog.exportProperty(jspb.Message,"setWrapperField",jspb.Message.setWrapperField),jspb.Message.setOneofWrapperField=function(a2,b,c,d){jspb.asserts.assertInstanceof(a2,jspb.Message),a2.wrappers_||(a2.wrappers_={});var e=d&&d.toArray();return a2.wrappers_[b]=d,jspb.Message.setOneofField(a2,b,c,e)},goog.exportProperty(jspb.Message,"setOneofWrapperField",jspb.Message.setOneofWrapperField),jspb.Message.setRepeatedWrapperField=function(a2,b,c){jspb.asserts.assertInstanceof(a2,jspb.Message),a2.wrappers_||(a2.wrappers_={}),c=c||[];for(var d=[],e=0;e<c.length;e++)d[e]=c[e].toArray();return a2.wrappers_[b]=c,jspb.Message.setField(a2,b,d)},goog.exportProperty(jspb.Message,"setRepeatedWrapperField",jspb.Message.setRepeatedWrapperField),jspb.Message.addToRepeatedWrapperField=function(a2,b,c,d,e){jspb.Message.wrapRepeatedField_(a2,d,b);var f=a2.wrappers_[b];return f||(f=a2.wrappers_[b]=[]),c=c||new d,a2=jspb.Message.getRepeatedField(a2,b),e!=null?(f.splice(e,0,c),a2.splice(e,0,c.toArray())):(f.push(c),a2.push(c.toArray())),c},goog.exportProperty(jspb.Message,"addToRepeatedWrapperField",jspb.Message.addToRepeatedWrapperField),jspb.Message.toMap=function(a2,b,c,d){for(var e={},f=0;f<a2.length;f++)e[b.call(a2[f])]=c?c.call(a2[f],d,a2[f]):a2[f];return e},goog.exportProperty(jspb.Message,"toMap",jspb.Message.toMap),jspb.Message.prototype.syncMapFields_=function(){if(this.wrappers_)for(var a2 in this.wrappers_){var b=this.wrappers_[a2];if(Array.isArray(b))for(var c=0;c<b.length;c++)b[c]&&b[c].toArray();else b&&b.toArray()}},jspb.Message.prototype.toArray=function(){return this.syncMapFields_(),this.array},goog.exportProperty(jspb.Message.prototype,"toArray",jspb.Message.prototype.toArray),jspb.Message.GENERATE_TO_STRING&&(jspb.Message.prototype.toString=function(){return this.syncMapFields_(),this.array.toString()}),jspb.Message.prototype.getExtension=function(a2){if(this.extensionObject_){this.wrappers_||(this.wrappers_={});var b=a2.fieldIndex;if(a2.isRepeated){if(a2.isMessageType())return this.wrappers_[b]||(this.wrappers_[b]=goog.array.map(this.extensionObject_[b]||[],function(b2){return new a2.ctor(b2)})),this.wrappers_[b]}else if(a2.isMessageType())return!this.wrappers_[b]&&this.extensionObject_[b]&&(this.wrappers_[b]=new a2.ctor(this.extensionObject_[b])),this.wrappers_[b];return this.extensionObject_[b]}},goog.exportProperty(jspb.Message.prototype,"getExtension",jspb.Message.prototype.getExtension),jspb.Message.prototype.setExtension=function(a2,b){this.wrappers_||(this.wrappers_={}),jspb.Message.maybeInitEmptyExtensionObject_(this);var c=a2.fieldIndex;return a2.isRepeated?(b=b||[],a2.isMessageType()?(this.wrappers_[c]=b,this.extensionObject_[c]=goog.array.map(b,function(a3){return a3.toArray()})):this.extensionObject_[c]=b):a2.isMessageType()?(this.wrappers_[c]=b,this.extensionObject_[c]=b&&b.toArray()):this.extensionObject_[c]=b,this},goog.exportProperty(jspb.Message.prototype,"setExtension",jspb.Message.prototype.setExtension),jspb.Message.difference=function(a2,b){if(!(a2 instanceof b.constructor))throw Error("Messages have different types.");var c=a2.toArray();b=b.toArray();var d=[],e=0,f=c.length>b.length?c.length:b.length;for(a2.getJsPbMessageId()&&(d[0]=a2.getJsPbMessageId(),e=1);e<f;e++)jspb.Message.compareFields(c[e],b[e])||(d[e]=b[e]);return new a2.constructor(d)},goog.exportProperty(jspb.Message,"difference",jspb.Message.difference),jspb.Message.equals=function(a2,b){return a2==b||!(!a2||!b)&&a2 instanceof b.constructor&&jspb.Message.compareFields(a2.toArray(),b.toArray())},goog.exportProperty(jspb.Message,"equals",jspb.Message.equals),jspb.Message.compareExtensions=function(a2,b){a2=a2||{},b=b||{};var c={},d;for(d in a2)c[d]=0;for(d in b)c[d]=0;for(d in c)if(!jspb.Message.compareFields(a2[d],b[d]))return!1;return!0},goog.exportProperty(jspb.Message,"compareExtensions",jspb.Message.compareExtensions),jspb.Message.compareFields=function(a2,b){if(a2==b)return!0;if(!goog.isObject(a2)||!goog.isObject(b))return typeof a2=="number"&&isNaN(a2)||typeof b=="number"&&isNaN(b)?String(a2)==String(b):!1;if(a2.constructor!=b.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&a2.constructor===Uint8Array){if(a2.length!=b.length)return!1;for(var c=0;c<a2.length;c++)if(a2[c]!=b[c])return!1;return!0}if(a2.constructor===Array){var d=void 0,e=void 0,f=Math.max(a2.length,b.length);for(c=0;c<f;c++){var g=a2[c],h=b[c];if(g&&g.constructor==Object&&(jspb.asserts.assert(d===void 0),jspb.asserts.assert(c===a2.length-1),d=g,g=void 0),h&&h.constructor==Object&&(jspb.asserts.assert(e===void 0),jspb.asserts.assert(c===b.length-1),e=h,h=void 0),!jspb.Message.compareFields(g,h))return!1}return d||e?(d=d||{},e=e||{},jspb.Message.compareExtensions(d,e)):!0}if(a2.constructor===Object)return jspb.Message.compareExtensions(a2,b);throw Error("Invalid type in JSPB array")},goog.exportProperty(jspb.Message,"compareFields",jspb.Message.compareFields),jspb.Message.prototype.cloneMessage=function(){return jspb.Message.cloneMessage(this)},goog.exportProperty(jspb.Message.prototype,"cloneMessage",jspb.Message.prototype.cloneMessage),jspb.Message.prototype.clone=function(){return jspb.Message.cloneMessage(this)},goog.exportProperty(jspb.Message.prototype,"clone",jspb.Message.prototype.clone),jspb.Message.clone=function(a2){return jspb.Message.cloneMessage(a2)},goog.exportProperty(jspb.Message,"clone",jspb.Message.clone),jspb.Message.cloneMessage=function(a2){return new a2.constructor(jspb.Message.clone_(a2.toArray()))},jspb.Message.copyInto=function(a2,b){jspb.asserts.assertInstanceof(a2,jspb.Message),jspb.asserts.assertInstanceof(b,jspb.Message),jspb.asserts.assert(a2.constructor==b.constructor,"Copy source and target message should have the same type."),a2=jspb.Message.clone(a2);for(var c=b.toArray(),d=a2.toArray(),e=c.length=0;e<d.length;e++)c[e]=d[e];b.wrappers_=a2.wrappers_,b.extensionObject_=a2.extensionObject_},goog.exportProperty(jspb.Message,"copyInto",jspb.Message.copyInto),jspb.Message.clone_=function(a2){if(Array.isArray(a2)){for(var b=Array(a2.length),c=0;c<a2.length;c++){var d=a2[c];d!=null&&(b[c]=typeof d=="object"?jspb.Message.clone_(jspb.asserts.assert(d)):d)}return b}if(jspb.Message.SUPPORTS_UINT8ARRAY_&&a2 instanceof Uint8Array)return new Uint8Array(a2);b={};for(c in a2)d=a2[c],d!=null&&(b[c]=typeof d=="object"?jspb.Message.clone_(jspb.asserts.assert(d)):d);return b},jspb.Message.registerMessageType=function(a2,b){b.messageId=a2},goog.exportProperty(jspb.Message,"registerMessageType",jspb.Message.registerMessageType),jspb.Message.messageSetExtensions={},jspb.Message.messageSetExtensionsBinary={},jspb.Export={},exports.Map=jspb.Map,exports.Message=jspb.Message,exports.BinaryReader=jspb.BinaryReader,exports.BinaryWriter=jspb.BinaryWriter,exports.ExtensionFieldInfo=jspb.ExtensionFieldInfo,exports.ExtensionFieldBinaryInfo=jspb.ExtensionFieldBinaryInfo,exports.exportSymbol=goog.exportSymbol,exports.inherits=goog.inherits,exports.object={extend:goog.object.extend},exports.typeOf=goog.typeOf})(googleProtobuf$1);const googleProtobuf=getDefaultExportFromCjs(googleProtobuf$1),jspb=_mergeNamespaces({__proto__:null,default:googleProtobuf},[googleProtobuf$1]);var empty_pb$1={};(function(exports2){var jspb2=googleProtobuf$1,goog2=jspb2,global2=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof global2<"u"&&global2||typeof self<"u"&&self||(function(){return this}).call(null)||Function("return this")();goog2.exportSymbol("proto.google.protobuf.Empty",null,global2),proto.google.protobuf.Empty=function(opt_data){jspb2.Message.initialize(this,opt_data,0,-1,null,null)},goog2.inherits(proto.google.protobuf.Empty,jspb2.Message),goog2.DEBUG&&!COMPILED&&(proto.google.protobuf.Empty.displayName="proto.google.protobuf.Empty"),jspb2.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Empty.prototype.toObject=function(opt_includeInstance){return proto.google.protobuf.Empty.toObject(opt_includeInstance,this)},proto.google.protobuf.Empty.toObject=function(includeInstance,msg){var obj={};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.protobuf.Empty.deserializeBinary=function(bytes){var reader=new jspb2.BinaryReader(bytes),msg=new proto.google.protobuf.Empty;return proto.google.protobuf.Empty.deserializeBinaryFromReader(msg,reader)},proto.google.protobuf.Empty.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){var field=reader.getFieldNumber();switch(field){default:reader.skipField();break}}return msg},proto.google.protobuf.Empty.prototype.serializeBinary=function(){var writer=new jspb2.BinaryWriter;return proto.google.protobuf.Empty.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.protobuf.Empty.serializeBinaryToWriter=function(message,writer){},goog2.object.extend(exports2,proto.google.protobuf)})(empty_pb$1);const empty_pb=getDefaultExportFromCjs(empty_pb$1),google_protobuf_empty_pb=_mergeNamespaces({__proto__:null,default:empty_pb},[empty_pb$1]);var timestamp_pb$1={};(function(exports2){var jspb2=googleProtobuf$1,goog2=jspb2,global2=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof global2<"u"&&global2||typeof self<"u"&&self||(function(){return this}).call(null)||Function("return this")();goog2.exportSymbol("proto.google.protobuf.Timestamp",null,global2),proto.google.protobuf.Timestamp=function(opt_data){jspb2.Message.initialize(this,opt_data,0,-1,null,null)},goog2.inherits(proto.google.protobuf.Timestamp,jspb2.Message),goog2.DEBUG&&!COMPILED&&(proto.google.protobuf.Timestamp.displayName="proto.google.protobuf.Timestamp"),jspb2.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Timestamp.prototype.toObject=function(opt_includeInstance){return proto.google.protobuf.Timestamp.toObject(opt_includeInstance,this)},proto.google.protobuf.Timestamp.toObject=function(includeInstance,msg){var obj={seconds:jspb2.Message.getFieldWithDefault(msg,1,0),nanos:jspb2.Message.getFieldWithDefault(msg,2,0)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.protobuf.Timestamp.deserializeBinary=function(bytes){var reader=new jspb2.BinaryReader(bytes),msg=new proto.google.protobuf.Timestamp;return proto.google.protobuf.Timestamp.deserializeBinaryFromReader(msg,reader)},proto.google.protobuf.Timestamp.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){var field=reader.getFieldNumber();switch(field){case 1:var value=reader.readInt64();msg.setSeconds(value);break;case 2:var value=reader.readInt32();msg.setNanos(value);break;default:reader.skipField();break}}return msg},proto.google.protobuf.Timestamp.prototype.serializeBinary=function(){var writer=new jspb2.BinaryWriter;return proto.google.protobuf.Timestamp.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.protobuf.Timestamp.serializeBinaryToWriter=function(message,writer){var f=void 0;f=message.getSeconds(),f!==0&&writer.writeInt64(1,f),f=message.getNanos(),f!==0&&writer.writeInt32(2,f)},proto.google.protobuf.Timestamp.prototype.getSeconds=function(){return jspb2.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.Timestamp.prototype.setSeconds=function(value){return jspb2.Message.setProto3IntField(this,1,value)},proto.google.protobuf.Timestamp.prototype.getNanos=function(){return jspb2.Message.getFieldWithDefault(this,2,0)},proto.google.protobuf.Timestamp.prototype.setNanos=function(value){return jspb2.Message.setProto3IntField(this,2,value)},goog2.object.extend(exports2,proto.google.protobuf),proto.google.protobuf.Timestamp.prototype.toDate=function(){var seconds=this.getSeconds(),nanos=this.getNanos();return new Date(seconds*1e3+nanos/1e6)},proto.google.protobuf.Timestamp.prototype.fromDate=function(value){this.setSeconds(Math.floor(value.getTime()/1e3)),this.setNanos(value.getMilliseconds()*1e6)},proto.google.protobuf.Timestamp.fromDate=function(value){var timestamp=new proto.google.protobuf.Timestamp;return timestamp.fromDate(value),timestamp}})(timestamp_pb$1);const timestamp_pb=getDefaultExportFromCjs(timestamp_pb$1),google_protobuf_timestamp_pb=_mergeNamespaces({__proto__:null,default:timestamp_pb},[timestamp_pb$1]);var goog=jspb,global=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof global<"u"&&global||typeof self<"u"&&self||(function(){return this}).call(null)||Function("return this")();goog.object.extend(proto,google_protobuf_empty_pb);goog.object.extend(proto,google_protobuf_timestamp_pb);goog.exportSymbol("proto.notify.AddListNewsRequest",null,global);goog.exportSymbol("proto.notify.AddNewsRequest",null,global);goog.exportSymbol("proto.notify.DeleteWithKeyReq",null,global);goog.exportSymbol("proto.notify.News",null,global);goog.exportSymbol("proto.notify.NewsReq",null,global);goog.exportSymbol("proto.notify.NewsResponse",null,global);goog.exportSymbol("proto.notify.ReadNewsRequest",null,global);goog.exportSymbol("proto.notify.SuccessResponse",null,global);goog.exportSymbol("proto.notify.TypeEnums",null,global);proto.notify.News=function(opt_data){googleProtobuf$1.Message.initialize(this,opt_data,0,-1,null,null)};goog.inherits(proto.notify.News,googleProtobuf$1.Message);goog.DEBUG&&!COMPILED&&(proto.notify.News.displayName="proto.notify.News");proto.notify.DeleteWithKeyReq=function(opt_data){googleProtobuf$1.Message.initialize(this,opt_data,0,-1,null,null)};goog.inherits(proto.notify.DeleteWithKeyReq,googleProtobuf$1.Message);goog.DEBUG&&!COMPILED&&(proto.notify.DeleteWithKeyReq.displayName="proto.notify.DeleteWithKeyReq");proto.notify.NewsReq=function(opt_data){googleProtobuf$1.Message.initialize(this,opt_data,0,-1,null,null)};goog.inherits(proto.notify.NewsReq,googleProtobuf$1.Message);goog.DEBUG&&!COMPILED&&(proto.notify.NewsReq.displayName="proto.notify.NewsReq");proto.notify.NewsResponse=function(opt_data){googleProtobuf$1.Message.initialize(this,opt_data,0,-1,proto.notify.NewsResponse.repeatedFields_,null)};goog.inherits(proto.notify.NewsResponse,googleProtobuf$1.Message);goog.DEBUG&&!COMPILED&&(proto.notify.NewsResponse.displayName="proto.notify.NewsResponse");proto.notify.AddNewsRequest=function(opt_data){googleProtobuf$1.Message.initialize(this,opt_data,0,-1,null,null)};goog.inherits(proto.notify.AddNewsRequest,googleProtobuf$1.Message);goog.DEBUG&&!COMPILED&&(proto.notify.AddNewsRequest.displayName="proto.notify.AddNewsRequest");proto.notify.AddListNewsRequest=function(opt_data){googleProtobuf$1.Message.initialize(this,opt_data,0,-1,proto.notify.AddListNewsRequest.repeatedFields_,null)};goog.inherits(proto.notify.AddListNewsRequest,googleProtobuf$1.Message);goog.DEBUG&&!COMPILED&&(proto.notify.AddListNewsRequest.displayName="proto.notify.AddListNewsRequest");proto.notify.ReadNewsRequest=function(opt_data){googleProtobuf$1.Message.initialize(this,opt_data,0,-1,null,null)};goog.inherits(proto.notify.ReadNewsRequest,googleProtobuf$1.Message);goog.DEBUG&&!COMPILED&&(proto.notify.ReadNewsRequest.displayName="proto.notify.ReadNewsRequest");proto.notify.SuccessResponse=function(opt_data){googleProtobuf$1.Message.initialize(this,opt_data,0,-1,null,null)};goog.inherits(proto.notify.SuccessResponse,googleProtobuf$1.Message);goog.DEBUG&&!COMPILED&&(proto.notify.SuccessResponse.displayName="proto.notify.SuccessResponse");googleProtobuf$1.Message.GENERATE_TO_OBJECT&&(proto.notify.News.prototype.toObject=function(opt_includeInstance){return proto.notify.News.toObject(opt_includeInstance,this)},proto.notify.News.toObject=function(includeInstance,msg){var f,obj={key:googleProtobuf$1.Message.getFieldWithDefault(msg,1,""),content:googleProtobuf$1.Message.getFieldWithDefault(msg,2,""),type:googleProtobuf$1.Message.getFieldWithDefault(msg,3,0),isnew:googleProtobuf$1.Message.getBooleanFieldWithDefault(msg,4,!1),userid:googleProtobuf$1.Message.getFieldWithDefault(msg,5,""),timestamp:(f=msg.getTimestamp())&&timestamp_pb$1.Timestamp.toObject(includeInstance,f),ispopup:googleProtobuf$1.Message.getBooleanFieldWithDefault(msg,7,!1),number:googleProtobuf$1.Message.getFieldWithDefault(msg,8,0)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj});proto.notify.News.deserializeBinary=function(bytes){var reader=new googleProtobuf$1.BinaryReader(bytes),msg=new proto.notify.News;return proto.notify.News.deserializeBinaryFromReader(msg,reader)};proto.notify.News.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){var field=reader.getFieldNumber();switch(field){case 1:var value=reader.readString();msg.setKey(value);break;case 2:var value=reader.readString();msg.setContent(value);break;case 3:var value=reader.readEnum();msg.setType(value);break;case 4:var value=reader.readBool();msg.setIsnew(value);break;case 5:var value=reader.readString();msg.setUserid(value);break;case 6:var value=new timestamp_pb$1.Timestamp;reader.readMessage(value,timestamp_pb$1.Timestamp.deserializeBinaryFromReader),msg.setTimestamp(value);break;case 7:var value=reader.readBool();msg.setIspopup(value);break;case 8:var value=reader.readInt32();msg.setNumber(value);break;default:reader.skipField();break}}return msg};proto.notify.News.prototype.serializeBinary=function(){var writer=new googleProtobuf$1.BinaryWriter;return proto.notify.News.serializeBinaryToWriter(this,writer),writer.getResultBuffer()};proto.notify.News.serializeBinaryToWriter=function(message,writer){var f=void 0;f=message.getKey(),f.length>0&&writer.writeString(1,f),f=message.getContent(),f.length>0&&writer.writeString(2,f),f=message.getType(),f!==0&&writer.writeEnum(3,f),f=message.getIsnew(),f&&writer.writeBool(4,f),f=message.getUserid(),f.length>0&&writer.writeString(5,f),f=message.getTimestamp(),f!=null&&writer.writeMessage(6,f,timestamp_pb$1.Timestamp.serializeBinaryToWriter),f=message.getIspopup(),f&&writer.writeBool(7,f),f=message.getNumber(),f!==0&&writer.writeInt32(8,f)};proto.notify.News.prototype.getKey=function(){return googleProtobuf$1.Message.getFieldWithDefault(this,1,"")};proto.notify.News.prototype.setKey=function(value){return googleProtobuf$1.Message.setProto3StringField(this,1,value)};proto.notify.News.prototype.getContent=function(){return googleProtobuf$1.Message.getFieldWithDefault(this,2,"")};proto.notify.News.prototype.setContent=function(value){return googleProtobuf$1.Message.setProto3StringField(this,2,value)};proto.notify.News.prototype.getType=function(){return googleProtobuf$1.Message.getFieldWithDefault(this,3,0)};proto.notify.News.prototype.setType=function(value){return googleProtobuf$1.Message.setProto3EnumField(this,3,value)};proto.notify.News.prototype.getIsnew=function(){return googleProtobuf$1.Message.getBooleanFieldWithDefault(this,4,!1)};proto.notify.News.prototype.setIsnew=function(value){return googleProtobuf$1.Message.setProto3BooleanField(this,4,value)};proto.notify.News.prototype.getUserid=function(){return googleProtobuf$1.Message.getFieldWithDefault(this,5,"")};proto.notify.News.prototype.setUserid=function(value){return googleProtobuf$1.Message.setProto3StringField(this,5,value)};proto.notify.News.prototype.getTimestamp=function(){return googleProtobuf$1.Message.getWrapperField(this,timestamp_pb$1.Timestamp,6)};proto.notify.News.prototype.setTimestamp=function(value){return googleProtobuf$1.Message.setWrapperField(this,6,value)};proto.notify.News.prototype.clearTimestamp=function(){return this.setTimestamp(void 0)};proto.notify.News.prototype.hasTimestamp=function(){return googleProtobuf$1.Message.getField(this,6)!=null};proto.notify.News.prototype.getIspopup=function(){return googleProtobuf$1.Message.getBooleanFieldWithDefault(this,7,!1)};proto.notify.News.prototype.setIspopup=function(value){return googleProtobuf$1.Message.setProto3BooleanField(this,7,value)};proto.notify.News.prototype.getNumber=function(){return googleProtobuf$1.Message.getFieldWithDefault(this,8,0)};proto.notify.News.prototype.setNumber=function(value){return googleProtobuf$1.Message.setProto3IntField(this,8,value)};googleProtobuf$1.Message.GENERATE_TO_OBJECT&&(proto.notify.DeleteWithKeyReq.prototype.toObject=function(opt_includeInstance){return proto.notify.DeleteWithKeyReq.toObject(opt_includeInstance,this)},proto.notify.DeleteWithKeyReq.toObject=function(includeInstance,msg){var obj={key:googleProtobuf$1.Message.getFieldWithDefault(msg,1,"")};return includeInstance&&(obj.$jspbMessageInstance=msg),obj});proto.notify.DeleteWithKeyReq.deserializeBinary=function(bytes){var reader=new googleProtobuf$1.BinaryReader(bytes),msg=new proto.notify.DeleteWithKeyReq;return proto.notify.DeleteWithKeyReq.deserializeBinaryFromReader(msg,reader)};proto.notify.DeleteWithKeyReq.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){var field=reader.getFieldNumber();switch(field){case 1:var value=reader.readString();msg.setKey(value);break;default:reader.skipField();break}}return msg};proto.notify.DeleteWithKeyReq.prototype.serializeBinary=function(){var writer=new googleProtobuf$1.BinaryWriter;return proto.notify.DeleteWithKeyReq.serializeBinaryToWriter(this,writer),writer.getResultBuffer()};proto.notify.DeleteWithKeyReq.serializeBinaryToWriter=function(message,writer){var f=void 0;f=message.getKey(),f.length>0&&writer.writeString(1,f)};proto.notify.DeleteWithKeyReq.prototype.getKey=function(){return googleProtobuf$1.Message.getFieldWithDefault(this,1,"")};proto.notify.DeleteWithKeyReq.prototype.setKey=function(value){return googleProtobuf$1.Message.setProto3StringField(this,1,value)};googleProtobuf$1.Message.GENERATE_TO_OBJECT&&(proto.notify.NewsReq.prototype.toObject=function(opt_includeInstance){return proto.notify.NewsReq.toObject(opt_includeInstance,this)},proto.notify.NewsReq.toObject=function(includeInstance,msg){var obj={pagenumber:googleProtobuf$1.Message.getFieldWithDefault(msg,1,0)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj});proto.notify.NewsReq.deserializeBinary=function(bytes){var reader=new googleProtobuf$1.BinaryReader(bytes),msg=new proto.notify.NewsReq;return proto.notify.NewsReq.deserializeBinaryFromReader(msg,reader)};proto.notify.NewsReq.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){var field=reader.getFieldNumber();switch(field){case 1:var value=reader.readInt32();msg.setPagenumber(value);break;default:reader.skipField();break}}return msg};proto.notify.NewsReq.prototype.serializeBinary=function(){var writer=new googleProtobuf$1.BinaryWriter;return proto.notify.NewsReq.serializeBinaryToWriter(this,writer),writer.getResultBuffer()};proto.notify.NewsReq.serializeBinaryToWriter=function(message,writer){var f=void 0;f=message.getPagenumber(),f!==0&&writer.writeInt32(1,f)};proto.notify.NewsReq.prototype.getPagenumber=function(){return googleProtobuf$1.Message.getFieldWithDefault(this,1,0)};proto.notify.NewsReq.prototype.setPagenumber=function(value){return googleProtobuf$1.Message.setProto3IntField(this,1,value)};proto.notify.NewsResponse.repeatedFields_=[3];googleProtobuf$1.Message.GENERATE_TO_OBJECT&&(proto.notify.NewsResponse.prototype.toObject=function(opt_includeInstance){return proto.notify.NewsResponse.toObject(opt_includeInstance,this)},proto.notify.NewsResponse.toObject=function(includeInstance,msg){var f,obj={at:(f=msg.getAt())&&timestamp_pb$1.Timestamp.toObject(includeInstance,f),count:googleProtobuf$1.Message.getFieldWithDefault(msg,2,0),dataList:googleProtobuf$1.Message.toObjectList(msg.getDataList(),proto.notify.News.toObject,includeInstance)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj});proto.notify.NewsResponse.deserializeBinary=function(bytes){var reader=new googleProtobuf$1.BinaryReader(bytes),msg=new proto.notify.NewsResponse;return proto.notify.NewsResponse.deserializeBinaryFromReader(msg,reader)};proto.notify.NewsResponse.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){var field=reader.getFieldNumber();switch(field){case 1:var value=new timestamp_pb$1.Timestamp;reader.readMessage(value,timestamp_pb$1.Timestamp.deserializeBinaryFromReader),msg.setAt(value);break;case 2:var value=reader.readInt32();msg.setCount(value);break;case 3:var value=new proto.notify.News;reader.readMessage(value,proto.notify.News.deserializeBinaryFromReader),msg.addData(value);break;default:reader.skipField();break}}return msg};proto.notify.NewsResponse.prototype.serializeBinary=function(){var writer=new googleProtobuf$1.BinaryWriter;return proto.notify.NewsResponse.serializeBinaryToWriter(this,writer),writer.getResultBuffer()};proto.notify.NewsResponse.serializeBinaryToWriter=function(message,writer){var f=void 0;f=message.getAt(),f!=null&&writer.writeMessage(1,f,timestamp_pb$1.Timestamp.serializeBinaryToWriter),f=message.getCount(),f!==0&&writer.writeInt32(2,f),f=message.getDataList(),f.length>0&&writer.writeRepeatedMessage(3,f,proto.notify.News.serializeBinaryToWriter)};proto.notify.NewsResponse.prototype.getAt=function(){return googleProtobuf$1.Message.getWrapperField(this,timestamp_pb$1.Timestamp,1)};proto.notify.NewsResponse.prototype.setAt=function(value){return googleProtobuf$1.Message.setWrapperField(this,1,value)};proto.notify.NewsResponse.prototype.clearAt=function(){return this.setAt(void 0)};proto.notify.NewsResponse.prototype.hasAt=function(){return googleProtobuf$1.Message.getField(this,1)!=null};proto.notify.NewsResponse.prototype.getCount=function(){return googleProtobuf$1.Message.getFieldWithDefault(this,2,0)};proto.notify.NewsResponse.prototype.setCount=function(value){return googleProtobuf$1.Message.setProto3IntField(this,2,value)};proto.notify.NewsResponse.prototype.getDataList=function(){return googleProtobuf$1.Message.getRepeatedWrapperField(this,proto.notify.News,3)};proto.notify.NewsResponse.prototype.setDataList=function(value){return googleProtobuf$1.Message.setRepeatedWrapperField(this,3,value)};proto.notify.NewsResponse.prototype.addData=function(opt_value,opt_index){return googleProtobuf$1.Message.addToRepeatedWrapperField(this,3,opt_value,proto.notify.News,opt_index)};proto.notify.NewsResponse.prototype.clearDataList=function(){return this.setDataList([])};googleProtobuf$1.Message.GENERATE_TO_OBJECT&&(proto.notify.AddNewsRequest.prototype.toObject=function(opt_includeInstance){return proto.notify.AddNewsRequest.toObject(opt_includeInstance,this)},proto.notify.AddNewsRequest.toObject=function(includeInstance,msg){var obj={key:googleProtobuf$1.Message.getFieldWithDefault(msg,1,""),content:googleProtobuf$1.Message.getFieldWithDefault(msg,2,""),type:googleProtobuf$1.Message.getFieldWithDefault(msg,3,0),userid:googleProtobuf$1.Message.getFieldWithDefault(msg,4,""),number:googleProtobuf$1.Message.getFieldWithDefault(msg,5,0)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj});proto.notify.AddNewsRequest.deserializeBinary=function(bytes){var reader=new googleProtobuf$1.BinaryReader(bytes),msg=new proto.notify.AddNewsRequest;return proto.notify.AddNewsRequest.deserializeBinaryFromReader(msg,reader)};proto.notify.AddNewsRequest.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){var field=reader.getFieldNumber();switch(field){case 1:var value=reader.readString();msg.setKey(value);break;case 2:var value=reader.readString();msg.setContent(value);break;case 3:var value=reader.readEnum();msg.setType(value);break;case 4:var value=reader.readString();msg.setUserid(value);break;case 5:var value=reader.readInt32();msg.setNumber(value);break;default:reader.skipField();break}}return msg};proto.notify.AddNewsRequest.prototype.serializeBinary=function(){var writer=new googleProtobuf$1.BinaryWriter;return proto.notify.AddNewsRequest.serializeBinaryToWriter(this,writer),writer.getResultBuffer()};proto.notify.AddNewsRequest.serializeBinaryToWriter=function(message,writer){var f=void 0;f=message.getKey(),f.length>0&&writer.writeString(1,f),f=message.getContent(),f.length>0&&writer.writeString(2,f),f=message.getType(),f!==0&&writer.writeEnum(3,f),f=message.getUserid(),f.length>0&&writer.writeString(4,f),f=message.getNumber(),f!==0&&writer.writeInt32(5,f)};proto.notify.AddNewsRequest.prototype.getKey=function(){return googleProtobuf$1.Message.getFieldWithDefault(this,1,"")};proto.notify.AddNewsRequest.prototype.setKey=function(value){return googleProtobuf$1.Message.setProto3StringField(this,1,value)};proto.notify.AddNewsRequest.prototype.getContent=function(){return googleProtobuf$1.Message.getFieldWithDefault(this,2,"")};proto.notify.AddNewsRequest.prototype.setContent=function(value){return googleProtobuf$1.Message.setProto3StringField(this,2,value)};proto.notify.AddNewsRequest.prototype.getType=function(){return googleProtobuf$1.Message.getFieldWithDefault(this,3,0)};proto.notify.AddNewsRequest.prototype.setType=function(value){return googleProtobuf$1.Message.setProto3EnumField(this,3,value)};proto.notify.AddNewsRequest.prototype.getUserid=function(){return googleProtobuf$1.Message.getFieldWithDefault(this,4,"")};proto.notify.AddNewsRequest.prototype.setUserid=function(value){return googleProtobuf$1.Message.setProto3StringField(this,4,value)};proto.notify.AddNewsRequest.prototype.getNumber=function(){return googleProtobuf$1.Message.getFieldWithDefault(this,5,0)};proto.notify.AddNewsRequest.prototype.setNumber=function(value){return googleProtobuf$1.Message.setProto3IntField(this,5,value)};proto.notify.AddListNewsRequest.repeatedFields_=[1];googleProtobuf$1.Message.GENERATE_TO_OBJECT&&(proto.notify.AddListNewsRequest.prototype.toObject=function(opt_includeInstance){return proto.notify.AddListNewsRequest.toObject(opt_includeInstance,this)},proto.notify.AddListNewsRequest.toObject=function(includeInstance,msg){var obj={modelsList:googleProtobuf$1.Message.toObjectList(msg.getModelsList(),proto.notify.AddNewsRequest.toObject,includeInstance)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj});proto.notify.AddListNewsRequest.deserializeBinary=function(bytes){var reader=new googleProtobuf$1.BinaryReader(bytes),msg=new proto.notify.AddListNewsRequest;return proto.notify.AddListNewsRequest.deserializeBinaryFromReader(msg,reader)};proto.notify.AddListNewsRequest.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){var field=reader.getFieldNumber();switch(field){case 1:var value=new proto.notify.AddNewsRequest;reader.readMessage(value,proto.notify.AddNewsRequest.deserializeBinaryFromReader),msg.addModels(value);break;default:reader.skipField();break}}return msg};proto.notify.AddListNewsRequest.prototype.serializeBinary=function(){var writer=new googleProtobuf$1.BinaryWriter;return proto.notify.AddListNewsRequest.serializeBinaryToWriter(this,writer),writer.getResultBuffer()};proto.notify.AddListNewsRequest.serializeBinaryToWriter=function(message,writer){var f=void 0;f=message.getModelsList(),f.length>0&&writer.writeRepeatedMessage(1,f,proto.notify.AddNewsRequest.serializeBinaryToWriter)};proto.notify.AddListNewsRequest.prototype.getModelsList=function(){return googleProtobuf$1.Message.getRepeatedWrapperField(this,proto.notify.AddNewsRequest,1)};proto.notify.AddListNewsRequest.prototype.setModelsList=function(value){return googleProtobuf$1.Message.setRepeatedWrapperField(this,1,value)};proto.notify.AddListNewsRequest.prototype.addModels=function(opt_value,opt_index){return googleProtobuf$1.Message.addToRepeatedWrapperField(this,1,opt_value,proto.notify.AddNewsRequest,opt_index)};proto.notify.AddListNewsRequest.prototype.clearModelsList=function(){return this.setModelsList([])};googleProtobuf$1.Message.GENERATE_TO_OBJECT&&(proto.notify.ReadNewsRequest.prototype.toObject=function(opt_includeInstance){return proto.notify.ReadNewsRequest.toObject(opt_includeInstance,this)},proto.notify.ReadNewsRequest.toObject=function(includeInstance,msg){var obj={key:googleProtobuf$1.Message.getFieldWithDefault(msg,1,""),type:googleProtobuf$1.Message.getFieldWithDefault(msg,2,0),number:googleProtobuf$1.Message.getFieldWithDefault(msg,3,0)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj});proto.notify.ReadNewsRequest.deserializeBinary=function(bytes){var reader=new googleProtobuf$1.BinaryReader(bytes),msg=new proto.notify.ReadNewsRequest;return proto.notify.ReadNewsRequest.deserializeBinaryFromReader(msg,reader)};proto.notify.ReadNewsRequest.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){var field=reader.getFieldNumber();switch(field){case 1:var value=reader.readString();msg.setKey(value);break;case 2:var value=reader.readEnum();msg.setType(value);break;case 3:var value=reader.readInt32();msg.setNumber(value);break;default:reader.skipField();break}}return msg};proto.notify.ReadNewsRequest.prototype.serializeBinary=function(){var writer=new googleProtobuf$1.BinaryWriter;return proto.notify.ReadNewsRequest.serializeBinaryToWriter(this,writer),writer.getResultBuffer()};proto.notify.ReadNewsRequest.serializeBinaryToWriter=function(message,writer){var f=void 0;f=message.getKey(),f.length>0&&writer.writeString(1,f),f=message.getType(),f!==0&&writer.writeEnum(2,f),f=message.getNumber(),f!==0&&writer.writeInt32(3,f)};proto.notify.ReadNewsRequest.prototype.getKey=function(){return googleProtobuf$1.Message.getFieldWithDefault(this,1,"")};proto.notify.ReadNewsRequest.prototype.setKey=function(value){return googleProtobuf$1.Message.setProto3StringField(this,1,value)};proto.notify.ReadNewsRequest.prototype.getType=function(){return googleProtobuf$1.Message.getFieldWithDefault(this,2,0)};proto.notify.ReadNewsRequest.prototype.setType=function(value){return googleProtobuf$1.Message.setProto3EnumField(this,2,value)};proto.notify.ReadNewsRequest.prototype.getNumber=function(){return googleProtobuf$1.Message.getFieldWithDefault(this,3,0)};proto.notify.ReadNewsRequest.prototype.setNumber=function(value){return googleProtobuf$1.Message.setProto3IntField(this,3,value)};googleProtobuf$1.Message.GENERATE_TO_OBJECT&&(proto.notify.SuccessResponse.prototype.toObject=function(opt_includeInstance){return proto.notify.SuccessResponse.toObject(opt_includeInstance,this)},proto.notify.SuccessResponse.toObject=function(includeInstance,msg){var f,obj={success:googleProtobuf$1.Message.getBooleanFieldWithDefault(msg,1,!1),error:(f=googleProtobuf$1.Message.getField(msg,2))==null?void 0:f};return includeInstance&&(obj.$jspbMessageInstance=msg),obj});proto.notify.SuccessResponse.deserializeBinary=function(bytes){var reader=new googleProtobuf$1.BinaryReader(bytes),msg=new proto.notify.SuccessResponse;return proto.notify.SuccessResponse.deserializeBinaryFromReader(msg,reader)};proto.notify.SuccessResponse.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){var field=reader.getFieldNumber();switch(field){case 1:var value=reader.readBool();msg.setSuccess(value);break;case 2:var value=reader.readString();msg.setError(value);break;default:reader.skipField();break}}return msg};proto.notify.SuccessResponse.prototype.serializeBinary=function(){var writer=new googleProtobuf$1.BinaryWriter;return proto.notify.SuccessResponse.serializeBinaryToWriter(this,writer),writer.getResultBuffer()};proto.notify.SuccessResponse.serializeBinaryToWriter=function(message,writer){var f=void 0;f=message.getSuccess(),f&&writer.writeBool(1,f),f=googleProtobuf$1.Message.getField(message,2),f!=null&&writer.writeString(2,f)};proto.notify.SuccessResponse.prototype.getSuccess=function(){return googleProtobuf$1.Message.getBooleanFieldWithDefault(this,1,!1)};proto.notify.SuccessResponse.prototype.setSuccess=function(value){return googleProtobuf$1.Message.setProto3BooleanField(this,1,value)};proto.notify.SuccessResponse.prototype.getError=function(){return googleProtobuf$1.Message.getFieldWithDefault(this,2,"")};proto.notify.SuccessResponse.prototype.setError=function(value){return googleProtobuf$1.Message.setField(this,2,value)};proto.notify.SuccessResponse.prototype.clearError=function(){return googleProtobuf$1.Message.setField(this,2,void 0)};proto.notify.SuccessResponse.prototype.hasError=function(){return googleProtobuf$1.Message.getField(this,2)!=null};proto.notify.TypeEnums={TIEPNHANDON:0,UYQUYEN:1,DONDOC:2,TUCHOITIEPNHAN:3,XULY:4};const notify_pb=proto.notify;var n;function aa(a2){var b=0;return function(){return b<a2.length?{done:!1,value:a2[b++]}:{done:!0}}}__name(aa,"aa");var ba=typeof Object.defineProperties=="function"?Object.defineProperty:function(a2,b,c){a2!=Array.prototype&&a2!=Object.prototype&&(a2[b]=c.value)};function ca(a2){a2=[typeof window=="object"&&window,typeof self=="object"&&self,typeof commonjsGlobal=="object"&&commonjsGlobal,a2];for(var b=0;b<a2.length;++b){var c=a2[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object")}__name(ca,"ca");var r=ca(commonjsGlobal);function t(){t=__name(function(){},"t"),r.Symbol||(r.Symbol=da)}__name(t,"t");function ea(a2,b){this.a=a2,ba(this,"description",{configurable:!0,writable:!0,value:b})}__name(ea,"ea");ea.prototype.toString=function(){return this.a};var da=function(){function a2(c){if(this instanceof a2)throw new TypeError("Symbol is not a constructor");return new ea("jscomp_symbol_"+(c||"")+"_"+b++,c)}__name(a2,"a");var b=0;return a2}();function u(){t();var a2=r.Symbol.iterator;a2||(a2=r.Symbol.iterator=r.Symbol("Symbol.iterator")),typeof Array.prototype[a2]!="function"&&ba(Array.prototype,a2,{configurable:!0,writable:!0,value:function(){return fa(aa(this))}}),u=__name(function(){},"u")}__name(u,"u");function fa(a2){return u(),a2={next:a2},a2[r.Symbol.iterator]=function(){return this},a2}__name(fa,"fa");function ha(a2){var b=typeof Symbol<"u"&&Symbol.iterator&&a2[Symbol.iterator];return b?b.call(a2):{next:aa(a2)}}__name(ha,"ha");var ia=typeof Object.create=="function"?Object.create:function(a2){function b(){}return __name(b,"b"),b.prototype=a2,new b},ja;if(typeof Object.setPrototypeOf=="function")ja=Object.setPrototypeOf;else{var ka;a:{var la={V:!0},ma={};try{ma.__proto__=la,ka=ma.V;break a}catch{}ka=!1}ja=ka?function(a2,b){if(a2.__proto__=b,a2.__proto__!==b)throw new TypeError(a2+" is not extensible");return a2}:null}var na=ja;function oa(a2,b){if(a2.prototype=ia(b.prototype),a2.prototype.constructor=a2,na)na(a2,b);else for(var c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a2,c,d)}else a2[c]=b[c];a2.O=b.prototype}__name(oa,"oa");function pa(a2,b){u(),a2 instanceof String&&(a2+="");var c=0,d={next:function(){if(c<a2.length){var f=c++;return{value:b(f,a2[f]),done:!1}}return d.next=function(){return{done:!0,value:void 0}},d.next()}};return d[Symbol.iterator]=function(){return d},d}__name(pa,"pa");function v(a2,b){if(b){var c=r;a2=a2.split(".");for(var d=0;d<a2.length-1;d++){var f=a2[d];f in c||(c[f]={}),c=c[f]}a2=a2[a2.length-1],d=c[a2],b=b(d),b!=d&&b!=null&&ba(c,a2,{configurable:!0,writable:!0,value:b})}}__name(v,"v");v("Array.prototype.keys",function(a2){return a2||function(){return pa(this,function(b){return b})}});v("Array.prototype.find",function(a2){return a2||function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var f=d.length,g=0;g<f;g++){var e=d[g];if(b.call(c,e,g,d)){b=e;break a}}b=void 0}return b}});v("Object.is",function(a2){return a2||function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}});v("Array.prototype.includes",function(a2){return a2||function(b,c){var d=this;d instanceof String&&(d=String(d));var f=d.length;for(c=c||0,0>c&&(c=Math.max(c+f,0));c<f;c++){var g=d[c];if(g===b||Object.is(g,b))return!0}return!1}});v("Promise",function(a2){function b(e){this.b=0,this.c=void 0,this.a=[];var h=this.f();try{e(h.resolve,h.reject)}catch(k){h.reject(k)}}__name(b,"b");function c(){this.a=null}__name(c,"c");function d(e){return e instanceof b?e:new b(function(h){h(e)})}if(__name(d,"d"),a2)return a2;c.prototype.b=function(e){if(this.a==null){this.a=[];var h=this;this.c(function(){h.g()})}this.a.push(e)};var f=r.setTimeout;c.prototype.c=function(e){f(e,0)},c.prototype.g=function(){for(;this.a&&this.a.length;){var e=this.a;this.a=[];for(var h=0;h<e.length;++h){var k=e[h];e[h]=null;try{k()}catch(l){this.f(l)}}}this.a=null},c.prototype.f=function(e){this.c(function(){throw e})},b.prototype.f=function(){function e(l){return function(m){k||(k=!0,l.call(h,m))}}__name(e,"e");var h=this,k=!1;return{resolve:e(this.s),reject:e(this.g)}},b.prototype.s=function(e){if(e===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof b)this.v(e);else{a:switch(typeof e){case"object":var h=e!=null;break a;case"function":h=!0;break a;default:h=!1}h?this.m(e):this.h(e)}},b.prototype.m=function(e){var h=void 0;try{h=e.then}catch(k){this.g(k);return}typeof h=="function"?this.w(h,e):this.h(e)},b.prototype.g=function(e){this.i(2,e)},b.prototype.h=function(e){this.i(1,e)},b.prototype.i=function(e,h){if(this.b!=0)throw Error("Cannot settle("+e+", "+h+"): Promise already settled in state"+this.b);this.b=e,this.c=h,this.l()},b.prototype.l=function(){if(this.a!=null){for(var e=0;e<this.a.length;++e)g.b(this.a[e]);this.a=null}};var g=new c;return b.prototype.v=function(e){var h=this.f();e.F(h.resolve,h.reject)},b.prototype.w=function(e,h){var k=this.f();try{e.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}},b.prototype.then=function(e,h){function k(q,w){return typeof q=="function"?function(A){try{l(q(A))}catch(L){m(L)}}:w}__name(k,"k");var l,m,p=new b(function(q,w){l=q,m=w});return this.F(k(e,l),k(h,m)),p},b.prototype.catch=function(e){return this.then(void 0,e)},b.prototype.F=function(e,h){function k(){switch(l.b){case 1:e(l.c);break;case 2:h(l.c);break;default:throw Error("Unexpected state: "+l.b)}}__name(k,"k");var l=this;this.a==null?g.b(k):this.a.push(k)},b.resolve=d,b.reject=function(e){return new b(function(h,k){k(e)})},b.race=function(e){return new b(function(h,k){for(var l=ha(e),m=l.next();!m.done;m=l.next())d(m.value).F(h,k)})},b.all=function(e){var h=ha(e),k=h.next();return k.done?d([]):new b(function(l,m){function p(A){return function(L){q[A]=L,w--,w==0&&l(q)}}__name(p,"p");var q=[],w=0;do q.push(void 0),w++,d(k.value).F(p(q.length-1),m),k=h.next();while(!k.done)})},b});var qa=qa||{},x=commonjsGlobal||self;function y(a2,b){a2=a2.split("."),b=b||x;for(var c=0;c<a2.length;c++)if(b=b[a2[c]],b==null)return null;return b}__name(y,"y");function ra(){}__name(ra,"ra");function sa(a2){var b=typeof a2;return b=="object"&&a2!=null||b=="function"}__name(sa,"sa");function va(a2,b,c){return a2.call.apply(a2.bind,arguments)}__name(va,"va");function wa(a2,b,c){if(!a2)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var f=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(f,d),a2.apply(b,f)}}return function(){return a2.apply(b,arguments)}}__name(wa,"wa");function z(a2,b,c){return Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?z=va:z=wa,z.apply(null,arguments)}__name(z,"z");function B(a2,b){function c(){}__name(c,"c"),c.prototype=b.prototype,a2.O=b.prototype,a2.prototype=new c,a2.prototype.constructor=a2}__name(B,"B");function xa(a2){this.a=a2||{}}__name(xa,"xa");xa.prototype.get=function(a2){return this.a[a2]};xa.prototype.G=function(){return Object.keys(this.a)};function C(a2,b,c,d){this.f=a2,this.c=b,this.b=c,this.a=d}__name(C,"C");C.prototype.getRequestMessage=function(){return this.f};C.prototype.getMethodDescriptor=function(){return this.c};C.prototype.getMetadata=function(){return this.b};C.prototype.getCallOptions=function(){return this.a};function D(a2,b,c,d){c=c===void 0?{}:c,this.c=a2,this.a=c,this.b=b,this.f=d===void 0?null:d}__name(D,"D");D.prototype.getResponseMessage=function(){return this.c};D.prototype.getMetadata=function(){return this.a};D.prototype.getMethodDescriptor=function(){return this.b};D.prototype.getStatus=function(){return this.f};function ya(a2,b,c,d,f,g){this.name=a2,this.a=f,this.b=g}__name(ya,"ya");function za(a2,b,c){c=c===void 0?{}:c;var d=d===void 0?new xa:d;return new C(b,a2,c,d)}__name(za,"za");ya.prototype.getName=function(){return this.name};ya.prototype.getName=ya.prototype.getName;function Aa(a2){switch(a2){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}__name(Aa,"Aa");function Ba(a2){switch(a2){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";default:return""}}__name(Ba,"Ba");function E(a2,b,c){c=c===void 0?{}:c,b=Error.call(this,b),this.message=b.message,"stack"in b&&(this.stack=b.stack),this.code=a2,this.metadata=c}__name(E,"E");oa(E,Error);E.prototype.toString=function(){var a2="RpcError("+(Ba(this.code)||String(this.code))+")";return this.message&&(a2+=": "+this.message),a2};E.prototype.name="RpcError";function Ca(a2){this.a=a2}__name(Ca,"Ca");Ca.prototype.on=function(a2,b){return a2=="data"||a2=="error"?this:this.a.on(a2,b)};Ca.prototype.removeListener=function(a2,b){return this.a.removeListener(a2,b)};Ca.prototype.cancel=function(){this.a.cancel()};function Da(a2){switch(a2){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}}__name(Da,"Da");function F(a2){if(Error.captureStackTrace)Error.captureStackTrace(this,F);else{var b=Error().stack;b&&(this.stack=b)}a2&&(this.message=String(a2))}__name(F,"F");B(F,Error);F.prototype.name="CustomError";function Ea(a2,b){a2=a2.split("%s");for(var c="",d=a2.length-1,f=0;f<d;f++)c+=a2[f]+(f<b.length?b[f]:"%s");F.call(this,c+a2[d])}__name(Ea,"Ea");B(Ea,F);Ea.prototype.name="AssertionError";function Fa(a2,b){throw new Ea("Failure"+(": "+a2),Array.prototype.slice.call(arguments,1))}__name(Fa,"Fa");function Ga(){this.l=null,this.i=[],this.m=0,this.b=Ha,this.f=this.a=this.h=0,this.c=null,this.g=0}__name(Ga,"Ga");function Ia(a2,b){function c(l){l==Ja||l==G?e.h=l:Ka(e,h,k,"invalid frame byte"),e.b=La,e.a=0,e.f=0}__name(c,"c");function d(l){e.f++,e.a=(e.a<<8)+l,e.f==4&&(e.b=Ma,e.g=0,typeof Uint8Array<"u"?e.c=new Uint8Array(e.a):e.c=Array(e.a),e.a==0&&g())}__name(d,"d");function f(l){e.c[e.g++]=l,e.g==e.a&&g()}__name(f,"f");function g(){var l={};l[e.h]=e.c,e.i.push(l),e.b=Ha}__name(g,"g");var e=a2,h,k=0;for(b instanceof Uint8Array||b instanceof Array?h=b:h=new Uint8Array(b);k<h.length;){switch(e.b){case Na:Ka(e,h,k,"stream already broken");break;case Ha:c(h[k]);break;case La:d(h[k]);break;case Ma:f(h[k]);break;default:throw Error("unexpected parser state: "+e.b)}e.m++,k++}return a2=e.i,e.i=[],0<a2.length?a2:null}__name(Ia,"Ia");var Ha=0,La=1,Ma=2,Na=3,Ja=0,G=128;function Ka(a2,b,c,d){throw a2.b=Na,a2.l="The stream is broken @"+a2.m+"/"+c+". Error: "+d+`. With input:
`+b,Error(a2.l)}__name(Ka,"Ka");var Oa=Array.prototype.indexOf?function(a2,b){return Array.prototype.indexOf.call(a2,b,void 0)}:function(a2,b){if(typeof a2=="string")return typeof b!="string"||b.length!=1?-1:a2.indexOf(b,0);for(var c=0;c<a2.length;c++)if(c in a2&&a2[c]===b)return c;return-1},Pa=String.prototype.trim?function(a2){return a2.trim()}:function(a2){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a2)[1]};function H(a2,b){return a2.indexOf(b)!=-1}__name(H,"H");function Qa(a2,b){return a2<b?-1:a2>b?1:0}__name(Qa,"Qa");var I;a:{var Ra=x.navigator;if(Ra){var Sa=Ra.userAgent;if(Sa){I=Sa;break a}}I=""}function Ta(a2,b){for(var c in a2)b.call(void 0,a2[c],c,a2)}__name(Ta,"Ta");function Ua(a2,b){var c={},d;for(d in a2)c[d]=b.call(void 0,a2[d],d,a2);return c}__name(Ua,"Ua");var Va="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Wa(a2,b){for(var c,d,f=1;f<arguments.length;f++){d=arguments[f];for(c in d)a2[c]=d[c];for(var g=0;g<Va.length;g++)c=Va[g],Object.prototype.hasOwnProperty.call(d,c)&&(a2[c]=d[c])}}__name(Wa,"Wa");function Xa(a2){var b=1;a2=a2.split(":");for(var c=[];0<b&&a2.length;)c.push(a2.shift()),b--;return a2.length&&c.push(a2.join(":")),c}__name(Xa,"Xa");function Ya(a2){return Ya[" "](a2),a2}__name(Ya,"Ya");Ya[" "]=ra;function Za(a2){var b=$a;return Object.prototype.hasOwnProperty.call(b,9)?b[9]:b[9]=a2(9)}__name(Za,"Za");var ab=H(I,"Opera"),bb=H(I,"Trident")||H(I,"MSIE"),cb=H(I,"Edge"),db=H(I,"Gecko")&&!(H(I.toLowerCase(),"webkit")&&!H(I,"Edge"))&&!(H(I,"Trident")||H(I,"MSIE"))&&!H(I,"Edge"),eb=H(I.toLowerCase(),"webkit")&&!H(I,"Edge"),fb;a:{var gb="",hb=function(){var a2=I;if(db)return/rv:([^\);]+)(\)|;)/.exec(a2);if(cb)return/Edge\/([\d\.]+)/.exec(a2);if(bb)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a2);if(eb)return/WebKit\/(\S+)/.exec(a2);if(ab)return/(?:Version)[ \/]?(\S+)/.exec(a2)}();if(hb&&(gb=hb?hb[1]:""),bb){var ib,jb=x.document;if(ib=jb?jb.documentMode:void 0,ib!=null&&ib>parseFloat(gb)){fb=String(ib);break a}}fb=gb}var $a={};function kb(){return Za(function(){for(var a2=0,b=Pa(String(fb)).split("."),c=Pa("9").split("."),d=Math.max(b.length,c.length),f=0;a2==0&&f<d;f++){var g=b[f]||"",e=c[f]||"";do{if(g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""],e=/(\d*)(\D*)(.*)/.exec(e)||["","","",""],g[0].length==0&&e[0].length==0)break;a2=Qa(g[1].length==0?0:parseInt(g[1],10),e[1].length==0?0:parseInt(e[1],10))||Qa(g[2].length==0,e[2].length==0)||Qa(g[2],e[2]),g=g[3],e=e[3]}while(a2==0)}return 0<=a2})}__name(kb,"kb");function lb(){this.K=this.K}__name(lb,"lb");lb.prototype.K=!1;var nb=Object.freeze||function(a2){return a2};function J(a2,b){this.type=a2,this.a=this.target=b,this.defaultPrevented=!1}__name(J,"J");J.prototype.b=function(){this.defaultPrevented=!0};var ob=function(){if(!x.addEventListener||!Object.defineProperty)return!1;var a2=!1,b=Object.defineProperty({},"passive",{get:function(){a2=!0}});try{x.addEventListener("test",ra,b),x.removeEventListener("test",ra,b)}catch{}return a2}();function K(a2,b){if(J.call(this,a2?a2.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,a2){var c=this.type=a2.type,d=a2.changedTouches&&a2.changedTouches.length?a2.changedTouches[0]:null;if(this.target=a2.target||a2.srcElement,this.a=b,b=a2.relatedTarget){if(db){a:{try{Ya(b.nodeName);var f=!0;break a}catch{}f=!1}f||(b=null)}}else c=="mouseover"?b=a2.fromElement:c=="mouseout"&&(b=a2.toElement);this.relatedTarget=b,d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=a2.clientX!==void 0?a2.clientX:a2.pageX,this.clientY=a2.clientY!==void 0?a2.clientY:a2.pageY,this.screenX=a2.screenX||0,this.screenY=a2.screenY||0),this.button=a2.button,this.key=a2.key||"",this.ctrlKey=a2.ctrlKey,this.altKey=a2.altKey,this.shiftKey=a2.shiftKey,this.metaKey=a2.metaKey,this.pointerId=a2.pointerId||0,this.pointerType=typeof a2.pointerType=="string"?a2.pointerType:pb[a2.pointerType]||"",this.c=a2,a2.defaultPrevented&&K.O.b.call(this)}}__name(K,"K");B(K,J);var pb=nb({2:"touch",3:"pen",4:"mouse"});K.prototype.b=function(){K.O.b.call(this);var a2=this.c;a2.preventDefault?a2.preventDefault():a2.returnValue=!1};var M="closure_listenable_"+(1e6*Math.random()|0),qb=0;function rb(a2,b,c,d,f){this.listener=a2,this.proxy=null,this.src=b,this.type=c,this.capture=!!d,this.H=f,this.key=++qb,this.A=this.D=!1}__name(rb,"rb");function sb(a2){a2.A=!0,a2.listener=null,a2.proxy=null,a2.src=null,a2.H=null}__name(sb,"sb");function tb(a2){this.src=a2,this.a={},this.b=0}__name(tb,"tb");tb.prototype.add=function(a2,b,c,d,f){var g=a2.toString();a2=this.a[g],a2||(a2=this.a[g]=[],this.b++);var e=ub(a2,b,d,f);return-1<e?(b=a2[e],c||(b.D=!1)):(b=new rb(b,this.src,g,!!d,f),b.D=c,a2.push(b)),b};tb.prototype.remove=function(a2,b,c,d){if(a2=a2.toString(),!(a2 in this.a))return!1;var f=this.a[a2];return b=ub(f,b,c,d),-1<b?(sb(f[b]),Array.prototype.splice.call(f,b,1),f.length==0&&(delete this.a[a2],this.b--),!0):!1};function vb(a2,b){var c=b.type;if(c in a2.a){var d=a2.a[c],f=Oa(d,b),g;(g=0<=f)&&Array.prototype.splice.call(d,f,1),g&&(sb(b),a2.a[c].length==0&&(delete a2.a[c],a2.b--))}}__name(vb,"vb");function ub(a2,b,c,d){for(var f=0;f<a2.length;++f){var g=a2[f];if(!g.A&&g.listener==b&&g.capture==!!c&&g.H==d)return f}return-1}__name(ub,"ub");var wb="closure_lm_"+(1e6*Math.random()|0),xb={};function zb(a2,b,c,d,f){if(d&&d.once)Ab(a2,b,c,d,f);else if(Array.isArray(b))for(var g=0;g<b.length;g++)zb(a2,b[g],c,d,f);else c=Bb(c),a2&&a2[M]?a2.f.add(String(b),c,!1,sa(d)?!!d.capture:!!d,f):Cb(a2,b,c,!1,d,f)}__name(zb,"zb");function Cb(a2,b,c,d,f,g){if(!b)throw Error("Invalid event type");var e=sa(f)?!!f.capture:!!f,h=Db(a2);if(h||(a2[wb]=h=new tb(a2)),c=h.add(b,c,d,e,g),!c.proxy)if(d=Eb(),c.proxy=d,d.src=a2,d.listener=c,a2.addEventListener)ob||(f=e),f===void 0&&(f=!1),a2.addEventListener(b.toString(),d,f);else if(a2.attachEvent)a2.attachEvent(Fb(b.toString()),d);else if(a2.addListener&&a2.removeListener)a2.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.")}__name(Cb,"Cb");function Eb(){function a2(c){return b.call(a2.src,a2.listener,c)}__name(a2,"a");var b=Gb;return a2}__name(Eb,"Eb");function Ab(a2,b,c,d,f){if(Array.isArray(b))for(var g=0;g<b.length;g++)Ab(a2,b[g],c,d,f);else c=Bb(c),a2&&a2[M]?a2.f.add(String(b),c,!0,sa(d)?!!d.capture:!!d,f):Cb(a2,b,c,!0,d,f)}__name(Ab,"Ab");function Hb(a2,b,c,d,f){if(Array.isArray(b))for(var g=0;g<b.length;g++)Hb(a2,b[g],c,d,f);else d=sa(d)?!!d.capture:!!d,c=Bb(c),a2&&a2[M]?a2.f.remove(String(b),c,d,f):a2&&(a2=Db(a2))&&(b=a2.a[b.toString()],a2=-1,b&&(a2=ub(b,c,d,f)),(c=-1<a2?b[a2]:null)&&Ib(c))}__name(Hb,"Hb");function Ib(a2){if(typeof a2!="number"&&a2&&!a2.A){var b=a2.src;if(b&&b[M])vb(b.f,a2);else{var c=a2.type,d=a2.proxy;b.removeEventListener?b.removeEventListener(c,d,a2.capture):b.detachEvent?b.detachEvent(Fb(c),d):b.addListener&&b.removeListener&&b.removeListener(d),(c=Db(b))?(vb(c,a2),c.b==0&&(c.src=null,b[wb]=null)):sb(a2)}}}__name(Ib,"Ib");function Fb(a2){return a2 in xb?xb[a2]:xb[a2]="on"+a2}__name(Fb,"Fb");function Gb(a2,b){if(a2.A)a2=!0;else{b=new K(b,this);var c=a2.listener,d=a2.H||a2.src;a2.D&&Ib(a2),a2=c.call(d,b)}return a2}__name(Gb,"Gb");function Db(a2){return a2=a2[wb],a2 instanceof tb?a2:null}__name(Db,"Db");var Jb="__closure_events_fn_"+(1e9*Math.random()>>>0);function Bb(a2){return typeof a2=="function"?a2:(a2[Jb]||(a2[Jb]=function(b){return a2.handleEvent(b)}),a2[Jb])}__name(Bb,"Bb");function N(){lb.call(this),this.f=new tb(this),this.U=this}__name(N,"N");B(N,lb);N.prototype[M]=!0;N.prototype.addEventListener=function(a2,b,c,d){zb(this,a2,b,c,d)};N.prototype.removeEventListener=function(a2,b,c,d){Hb(this,a2,b,c,d)};function O(a2,b){a2=a2.U;var c=b.type||b;if(typeof b=="string")b=new J(b,a2);else if(b instanceof J)b.target=b.target||a2;else{var d=b;b=new J(c,a2),Wa(b,d)}a2=b.a=a2,Kb(a2,c,!0,b),Kb(a2,c,!1,b)}__name(O,"O");function Kb(a2,b,c,d){if(b=a2.f.a[String(b)]){b=b.concat();for(var f=!0,g=0;g<b.length;++g){var e=b[g];if(e&&!e.A&&e.capture==c){var h=e.listener,k=e.H||e.src;e.D&&vb(a2.f,e),f=h.call(k,d)!==!1&&f}}}}__name(Kb,"Kb");var Lb=x;function Mb(a2,b,c){if(typeof a2=="function")c&&(a2=z(a2,c));else if(a2&&typeof a2.handleEvent=="function")a2=z(a2.handleEvent,a2);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:Lb.setTimeout(a2,b||0)}__name(Mb,"Mb");function Nb(a2,b){this.name=a2,this.value=b}__name(Nb,"Nb");Nb.prototype.toString=function(){return this.name};var Ob=new Nb("OFF",1/0),Pb=new Nb("SEVERE",1e3),Qb=new Nb("CONFIG",700),Rb=new Nb("FINE",500);function Tb(){this.clear()}__name(Tb,"Tb");var Ub;Tb.prototype.clear=function(){};function Vb(a2,b,c){this.reset(a2||Ob,b,c,void 0,void 0)}__name(Vb,"Vb");Vb.prototype.reset=function(){};function Wb(a2,b){this.a=null,this.f=[],this.b=(b===void 0?null:b)||null,this.c=[],this.g={getName:function(){return a2}}}__name(Wb,"Wb");function Xb(a2){return a2.a?a2.a:a2.b?Xb(a2.b):(Fa("Root logger has no level set."),Ob)}__name(Xb,"Xb");function Yb(a2,b){for(;a2;)a2.f.forEach(function(c){c(b)}),a2=a2.b}__name(Yb,"Yb");function Zb(){this.entries={};var a2=new Wb("");a2.a=Qb,this.entries[""]=a2}__name(Zb,"Zb");var $b;function ac(a2,b,c){var d=a2.entries[b];if(d)return d;d=ac(a2,b.substr(0,b.lastIndexOf(".")));var f=new Wb(b,d);return a2.entries[b]=f,d.c.push(f),f}__name(ac,"ac");function bc(){return $b||($b=new Zb),$b}__name(bc,"bc");function cc(a2,b,c){var d;if((d=a2)&&(d=a2&&b)){d=b.value;var f=a2?Xb(ac(bc(),a2.getName())):Ob;d=d>=f.value}d&&(b=b||Ob,d=ac(bc(),a2.getName()),typeof c=="function"&&(c=c()),Ub||(Ub=new Tb),a2=a2.getName(),a2=new Vb(b,c,a2),Yb(d,a2))}__name(cc,"cc");function P(a2,b){a2&&cc(a2,Rb,b)}__name(P,"P");function dc(){}__name(dc,"dc");dc.prototype.a=null;function ec(a2){var b;return(b=a2.a)||(b={},fc(a2)&&(b[0]=!0,b[1]=!0),b=a2.a=b),b}__name(ec,"ec");var gc;function hc(){}__name(hc,"hc");B(hc,dc);function ic(a2){return(a2=fc(a2))?new ActiveXObject(a2):new XMLHttpRequest}__name(ic,"ic");function fc(a2){if(!a2.b&&typeof XMLHttpRequest>"u"&&typeof ActiveXObject<"u"){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a2.b=d}catch{}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return a2.b}__name(fc,"fc");gc=new hc;t();u();function jc(a2,b){this.b=a2[x.Symbol.iterator](),this.c=b,this.f=0}__name(jc,"jc");jc.prototype[Symbol.iterator]=function(){return this};jc.prototype.next=function(){var a2=this.b.next();return{value:a2.done?void 0:this.c.call(void 0,a2.value,this.f++),done:a2.done}};function kc(a2,b){return new jc(a2,b)}__name(kc,"kc");t();u();t();u();var lc="StopIteration"in x?x.StopIteration:{message:"StopIteration",stack:""};function Q(){}__name(Q,"Q");Q.prototype.next=function(){return Q.prototype.a.call(this)};Q.prototype.a=function(){throw lc};Q.prototype.u=function(){return this};function mc(a2){if(a2 instanceof R||a2 instanceof S||a2 instanceof T)return a2;if(typeof a2.next=="function")return new R(function(){return nc(a2)});if(t(),u(),typeof a2[Symbol.iterator]=="function")return t(),u(),new R(function(){return a2[Symbol.iterator]()});if(typeof a2.u=="function")return new R(function(){return nc(a2.u())});throw Error("Not an iterator or iterable.")}__name(mc,"mc");function nc(a2){if(!(a2 instanceof Q))return a2;var b=!1;return{next:function(){for(var c;!b;)try{c=a2.a();break}catch(d){if(d!==lc)throw d;b=!0}return{value:c,done:b}}}}__name(nc,"nc");t();u();function R(a2){this.b=a2}__name(R,"R");R.prototype.u=function(){return new S(this.b())};R.prototype[Symbol.iterator]=function(){return new T(this.b())};R.prototype.c=function(){return new T(this.b())};t();u();function S(a2){this.b=a2}__name(S,"S");oa(S,Q);S.prototype.a=function(){var a2=this.b.next();if(a2.done)throw lc;return a2.value};S.prototype.next=function(){return S.prototype.a.call(this)};S.prototype[Symbol.iterator]=function(){return new T(this.b)};S.prototype.c=function(){return new T(this.b)};function T(a2){R.call(this,function(){return a2}),this.f=a2}__name(T,"T");oa(T,R);T.prototype.next=function(){return this.f.next()};function oc(a2,b){this.o={},this.j=[],this.B=this.size=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a2&&this.addAll(a2)}__name(oc,"oc");n=oc.prototype;n.G=function(){return pc(this),this.j.concat()};n.has=function(a2){return U(this.o,a2)};n.clear=function(){this.o={},this.B=this.size=this.j.length=0};n.remove=function(a2){return this.delete(a2)};n.delete=function(a2){return U(this.o,a2)?(delete this.o[a2],--this.size,this.B++,this.j.length>2*this.size&&pc(this),!0):!1};function pc(a2){if(a2.size!=a2.j.length){for(var b=0,c=0;b<a2.j.length;){var d=a2.j[b];U(a2.o,d)&&(a2.j[c++]=d),b++}a2.j.length=c}if(a2.size!=a2.j.length){var f={};for(c=b=0;b<a2.j.length;)d=a2.j[b],U(f,d)||(a2.j[c++]=d,f[d]=1),b++;a2.j.length=c}}__name(pc,"pc");n.get=function(a2,b){return U(this.o,a2)?this.o[a2]:b};n.set=function(a2,b){U(this.o,a2)||(this.size+=1,this.j.push(a2),this.B++),this.o[a2]=b};n.addAll=function(a2){if(a2 instanceof oc)for(var b=a2.G(),c=0;c<b.length;c++)this.set(b[c],a2.get(b[c]));else for(b in a2)this.set(b,a2[b])};n.forEach=function(a2,b){for(var c=this.G(),d=0;d<c.length;d++){var f=c[d],g=this.get(f);a2.call(b,g,f,this)}};n.clone=function(){return new oc(this)};n.keys=function(){return mc(this.u(!0)).c()};n.values=function(){return mc(this.u(!1)).c()};n.entries=function(){var a2=this;return kc(this.keys(),function(b){return[b,a2.get(b)]})};n.u=function(a2){pc(this);var b=0,c=this.B,d=this,f=new Q;return f.a=function(){if(c!=d.B)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)throw lc;var g=d.j[b++];return a2?g:d.o[g]},f.next=f.a.bind(f),f};function U(a2,b){return Object.prototype.hasOwnProperty.call(a2,b)}__name(U,"U");var qc=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function rc(a2){N.call(this),this.headers=new oc,this.C=a2||null,this.c=!1,this.J=this.a=null,this.P=this.v="",this.g=0,this.l="",this.i=this.N=this.s=this.L=!1,this.h=0,this.w=null,this.m=sc,this.I=this.M=!1}__name(rc,"rc");B(rc,N);var sc="";rc.prototype.b=ac(bc(),"goog.net.XhrIo").g;var tc=/^https?$/i,uc=["POST","PUT"];function vc(a2,b,c){if(a2.a)throw Error("[goog.net.XhrIo] Object is active with another request="+a2.v+"; newUri="+b);a2.v=b,a2.l="",a2.g=0,a2.P="POST",a2.L=!1,a2.c=!0,a2.a=a2.C?ic(a2.C):ic(gc),a2.J=a2.C?ec(a2.C):ec(gc),a2.a.onreadystatechange=z(a2.R,a2);try{P(a2.b,V(a2,"Opening Xhr")),a2.N=!0,a2.a.open("POST",String(b),!0),a2.N=!1}catch(g){P(a2.b,V(a2,"Error opening Xhr: "+g.message)),wc(a2,g);return}b=c||"",c=a2.headers.clone();var d=c.G().find(function(g){return g.toLowerCase()=="content-type"}),f=x.FormData&&b instanceof x.FormData;!(0<=Oa(uc,"POST"))||d||f||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),c.forEach(function(g,e){this.a.setRequestHeader(e,g)},a2),a2.m&&(a2.a.responseType=a2.m),"withCredentials"in a2.a&&a2.a.withCredentials!==a2.M&&(a2.a.withCredentials=a2.M);try{xc(a2),0<a2.h&&(a2.I=yc(a2.a),P(a2.b,V(a2,"Will abort after "+a2.h+"ms if incomplete, xhr2 "+a2.I)),a2.I?(a2.a.timeout=a2.h,a2.a.ontimeout=z(a2.T,a2)):a2.w=Mb(a2.T,a2.h,a2)),P(a2.b,V(a2,"Sending request")),a2.s=!0,a2.a.send(b),a2.s=!1}catch(g){P(a2.b,V(a2,"Send error: "+g.message)),wc(a2,g)}}__name(vc,"vc");function yc(a2){return bb&&kb()&&typeof a2.timeout=="number"&&a2.ontimeout!==void 0}__name(yc,"yc");n=rc.prototype;n.T=function(){typeof qa<"u"&&this.a&&(this.l="Timed out after "+this.h+"ms, aborting",this.g=8,P(this.b,V(this,this.l)),O(this,"timeout"),this.abort(8))};function wc(a2,b){a2.c=!1,a2.a&&(a2.i=!0,a2.a.abort(),a2.i=!1),a2.l=b,a2.g=5,zc(a2),Ac(a2)}__name(wc,"wc");function zc(a2){a2.L||(a2.L=!0,O(a2,"complete"),O(a2,"error"))}__name(zc,"zc");n.abort=function(a2){this.a&&this.c&&(P(this.b,V(this,"Aborting")),this.c=!1,this.i=!0,this.a.abort(),this.i=!1,this.g=a2||7,O(this,"complete"),O(this,"abort"),Ac(this))};n.R=function(){this.K||(this.N||this.s||this.i?Bc(this):this.W())};n.W=function(){Bc(this)};function Bc(a2){if(a2.c&&typeof qa<"u"){if(a2.J[1]&&W(a2)==4&&a2.getStatus()==2)P(a2.b,V(a2,"Local request error detected and ignored"));else if(a2.s&&W(a2)==4)Mb(a2.R,0,a2);else if(O(a2,"readystatechange"),W(a2)==4){P(a2.b,V(a2,"Request complete")),a2.c=!1;try{var b=a2.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}var d;if(!(d=c)){var f;if(f=b===0){var g=String(a2.v).match(qc)[1]||null;if(!g&&x.self&&x.self.location){var e=x.self.location.protocol;g=e.substr(0,e.length-1)}f=!tc.test(g?g.toLowerCase():"")}d=f}if(d)O(a2,"complete"),O(a2,"success");else{a2.g=6;try{var h=2<W(a2)?a2.a.statusText:""}catch(k){P(a2.b,"Can not get status: "+k.message),h=""}a2.l=h+" ["+a2.getStatus()+"]",zc(a2)}}finally{Ac(a2)}}}}__name(Bc,"Bc");function Ac(a2){if(a2.a){xc(a2);var b=a2.a,c=a2.J[0]?ra:null;a2.a=null,a2.J=null,O(a2,"ready");try{b.onreadystatechange=c}catch(d){(a2=a2.b)&&cc(a2,Pb,"Problem encountered resetting onreadystatechange: "+d.message)}}}__name(Ac,"Ac");function xc(a2){a2.a&&a2.I&&(a2.a.ontimeout=null),a2.w&&(Lb.clearTimeout(a2.w),a2.w=null)}__name(xc,"xc");function W(a2){return a2.a?a2.a.readyState:0}__name(W,"W");n.getStatus=function(){try{return 2<W(this)?this.a.status:-1}catch{return-1}};function Cc(a2){try{if(!a2.a)return null;if("response"in a2.a)return a2.a.response;switch(a2.m){case sc:case"text":return a2.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in a2.a)return a2.a.mozResponseArrayBuffer}var b=a2.b;return b&&cc(b,Pb,"Response type "+a2.m+" is not supported on this browser"),null}catch(c){return P(a2.b,"Can not get response: "+c.message),null}}__name(Cc,"Cc");function Dc(a2){var b={};a2=(a2.a&&W(a2)==4&&a2.a.getAllResponseHeaders()||"").split(`\r
`);for(var c=0;c<a2.length;c++)if(!/^[\s\xa0]*$/.test(a2[c])){var d=Xa(a2[c]),f=d[0];if(d=d[1],typeof d=="string"){d=d.trim();var g=b[f]||[];b[f]=g,g.push(d)}}return Ua(b,function(e){return e.join(", ")})}__name(Dc,"Dc");function V(a2,b){return b+" ["+a2.P+" "+a2.v+" "+a2.getStatus()+"]"}__name(V,"V");var Ec={},Fc=null;function Gc(a2){var b=a2.length,c=3*b/4;c%3?c=Math.floor(c):H("=.",a2[b-1])&&(c=H("=.",a2[b-2])?c-2:c-1);var d=new Uint8Array(c),f=0;return Hc(a2,function(g){d[f++]=g}),d.subarray(0,f)}__name(Gc,"Gc");function Hc(a2,b){function c(k){for(;d<a2.length;){var l=a2.charAt(d++),m=Fc[l];if(m!=null)return m;if(!/^[\s\xa0]*$/.test(l))throw Error("Unknown base64 encoding at char: "+l)}return k}__name(c,"c"),Ic();for(var d=0;;){var f=c(-1),g=c(0),e=c(64),h=c(64);if(h===64&&f===-1)break;b(f<<2|g>>4),e!=64&&(b(g<<4&240|e>>2),h!=64&&b(e<<6&192|h))}}__name(Hc,"Hc");function Ic(){if(!Fc){Fc={};for(var a2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a2.concat(b[c].split(""));Ec[c]=d;for(var f=0;f<d.length;f++){var g=d[f];Fc[g]===void 0&&(Fc[g]=f)}}}}__name(Ic,"Ic");var Jc=["content-type","grpc-status","grpc-message"];function X(a2){this.a=a2.Z,this.m=null,this.b=[],this.h=[],this.g=[],this.f=[],this.c=[],this.l=!1,this.i=0,this.s=new Ga;var b=this;zb(this.a,"readystatechange",function(){var c=b.a;if(c=c.a?c.a.getResponseHeader("Content-Type"):null){if(c=c.toLowerCase(),c.lastIndexOf("application/grpc-web-text",0)==0){c=b.a;try{var d=c.a?c.a.responseText:""}catch(k){P(c.b,"Can not get responseText: "+k.message),d=""}if(c=d||"",d=c.length-c.length%4,c=c.substr(b.i,d-b.i),c.length==0)return;b.i=d,c=Gc(c)}else if(c.lastIndexOf("application/grpc",0)==0)c=new Uint8Array(Cc(b.a));else{Y(b,new E(2,"Unknown Content-type received."));return}d=null;try{d=Ia(b.s,c)}catch{Y(b,new E(2,"Error in parsing response body"))}if(d)for(c=0;c<d.length;c++){if(Ja in d[c]){var f=d[c][Ja];if(f){var g=!1,e=void 0;try{e=b.m(f),g=!0}catch(k){Y(b,new E(13,"Error when deserializing response data; error: "+k+(", response: "+e)))}if(g)for(f=e,g=0;g<b.b.length;g++)b.b[g](f)}}if(G in d[c]&&0<d[c][G].length){for(f="",g=0;g<d[c][G].length;g++)f+=String.fromCharCode(d[c][G][g]);for(f=f.trim().split(`\r
`),g={},e=0;e<f.length;e++){var h=f[e].indexOf(":");g[f[e].substring(0,h).trim()]=f[e].substring(h+1).trim()}f=g,g=0,e="","grpc-status"in f&&(g=Number(f["grpc-status"]),delete f["grpc-status"]),"grpc-message"in f&&(e=f["grpc-message"],delete f["grpc-message"]),Y(b,new E(g,e,f))}}}}),zb(this.a,"complete",function(){var c=b.a.g,d=2,f="",g={};d=Dc(b.a);var e={};for(h in d)d.hasOwnProperty(h)&&(e[h.toLowerCase()]=d[h]);Object.keys(e).forEach(function(k){Jc.includes(k)||(g[k]=e[k])}),Kc(b,g);var h=-1;if(c!=0){switch(c){case 7:d=10;break;case 8:d=4;break;case 6:h=b.a.getStatus(),d=Aa(h);break;default:d=14}d==10&&b.l||(f=Da(c),h!=-1&&(f+=", http status code: "+h),Y(b,new E(d,f)))}else c=!1,"grpc-status"in e&&(d=Number(e["grpc-status"]),"grpc-message"in e&&(f=e["grpc-message"]),d!=0&&(Y(b,new E(d,f||"",e)),c=!0)),c||Lc(b)})}__name(X,"X");X.prototype.on=function(a2,b){return a2=="data"?this.b.push(b):a2=="status"?this.h.push(b):a2=="metadata"?this.g.push(b):a2=="end"?this.c.push(b):a2=="error"&&this.f.push(b),this};function Mc(a2,b){b=a2.indexOf(b),-1<b&&a2.splice(b,1)}__name(Mc,"Mc");X.prototype.removeListener=function(a2,b){return a2=="data"?Mc(this.b,b):a2=="status"?Mc(this.h,b):a2=="metadata"?Mc(this.g,b):a2=="end"?Mc(this.c,b):a2=="error"&&Mc(this.f,b),this};X.prototype.cancel=function(){this.l=!0,this.a.abort()};function Y(a2,b){if(b.code!=0)for(var c=new E(b.code,decodeURIComponent(b.message||""),b.metadata),d=0;d<a2.f.length;d++)a2.f[d](c);for(b={code:b.code,details:decodeURIComponent(b.message||""),metadata:b.metadata},c=0;c<a2.h.length;c++)a2.h[c](b)}__name(Y,"Y");function Kc(a2,b){for(var c=0;c<a2.g.length;c++)a2.g[c](b)}__name(Kc,"Kc");function Lc(a2){for(var b=0;b<a2.c.length;b++)a2.c[b]()}__name(Lc,"Lc");X.prototype.cancel=X.prototype.cancel;X.prototype.removeListener=X.prototype.removeListener;X.prototype.on=X.prototype.on;function Nc(a2){var b="";return Ta(a2,function(c,d){b+=d,b+=":",b+=c,b+=`\r
`}),b}__name(Nc,"Nc");function Z(a2,b){a2=a2===void 0?{}:a2,this.a=a2.format||y("format",a2)||"text",this.g=a2.aa||y("suppressCorsPreflight",a2)||!1,this.f=a2.withCredentials||y("withCredentials",a2)||!1,this.b=a2.$||y("streamInterceptors",a2)||[],this.h=a2.ba||y("unaryInterceptors",a2)||[],this.c=b||null}__name(Z,"Z");Z.prototype.X=function(a2,b,c,d,f){var g=this,e=a2.substr(0,a2.length-d.name.length);return a2=Oc(function(h){return Pc(g,h,e)},this.b).call(this,za(d,b,c)),Qc(a2,f,!1),new Ca(a2)};Z.prototype.S=function(a2,b,c,d){var f=this,g=a2.substr(0,a2.length-d.name.length);return Oc(function(e){return new Promise(function(h,k){var l=Pc(f,e,g),m,p,q;Qc(l,function(w,A,L,Sb,Rc){w?k(w):Rc?q=A:L?p=L:Sb?m=Sb:(w=e.getMethodDescriptor(),A=m,A=A===void 0?{}:A,h(new D(q,w,A,p===void 0?null:p)))},!0)})},this.h).call(this,za(d,b,c)).then(function(e){return e.getResponseMessage()})};Z.prototype.unaryCall=function(a2,b,c,d){return this.S(a2,b,c,d)};Z.prototype.Y=function(a2,b,c,d){var f=this,g=a2.substr(0,a2.length-d.name.length);return Oc(function(e){return Pc(f,e,g)},this.b).call(this,za(d,b,c))};function Pc(a2,b,c){var d=b.getMethodDescriptor(),f=c+d.getName();c=a2.c?a2.c:new rc,c.M=a2.f;var g=new X({Z:c});g.m=d.b;var e=b.getMetadata();for(h in e)c.headers.set(h,e[h]);if(a2.a=="text"?(c.headers.set("Content-Type","application/grpc-web-text"),c.headers.set("Accept","application/grpc-web-text")):c.headers.set("Content-Type","application/grpc-web+proto"),c.headers.set("X-User-Agent","grpc-web-javascript/0.1"),c.headers.set("X-Grpc-Web","1"),c.headers.has("deadline")){var h=Number(c.headers.get("deadline"));h=Math.ceil(h-new Date().getTime()),c.headers.delete("deadline"),h===1/0&&(h=0),0<h&&(c.headers.set("grpc-timeout",h+"m"),c.h=Math.max(0,Math.max(1e3,Math.ceil(1.1*h))))}if(a2.g){e=c.headers,h={};for(var k=ha(e.keys()),l=k.next();!l.done;l=k.next())l=l.value,h[l]=e.get(l);c.headers.clear();b:{for(m in h){var m=!1;break b}m=!0}m||(h=Nc(h),typeof f=="string"?(m=encodeURIComponent("$httpHeaders"),h=h!=null?"="+encodeURIComponent(String(h)):"",(m+=h)&&(h=f.indexOf("#"),0>h&&(h=f.length),e=f.indexOf("?"),0>e||e>h?(e=h,k=""):k=f.substring(e+1,h),f=[f.substr(0,e),k,f.substr(h)],h=f[1],f[1]=m?h?h+"&"+m:m:h,f=f[0]+(f[1]?"?"+f[1]:"")+f[2])):f.a("$httpHeaders",h))}for(b=(0,d.a)(b.getRequestMessage()),d=b.length,m=[0,0,0,0],h=new Uint8Array(5+d),e=3;0<=e;e--)m[e]=d%256,d>>>=8;if(h.set(new Uint8Array(m),1),h.set(b,5),b=h,a2.a=="text"){a2=b;var p;for(p===void 0&&(p=0),Ic(),p=Ec[p],b=Array(Math.floor(a2.length/3)),d=p[64]||"",m=h=0;h<a2.length-2;h+=3){l=a2[h];var q=a2[h+1];k=a2[h+2],e=p[l>>2],l=p[(l&3)<<4|q>>4],q=p[(q&15)<<2|k>>6],k=p[k&63],b[m++]=e+l+q+k}switch(e=0,k=d,a2.length-h){case 2:e=a2[h+1],k=p[(e&15)<<2]||d;case 1:a2=a2[h],b[m]=p[a2>>2]+p[(a2&3)<<4|e>>4]+k+d}b=b.join("")}else a2.a=="binary"&&(c.m="arraybuffer");return vc(c,f,b),g}__name(Pc,"Pc");function Qc(a2,b,c){var d=!1,f=null,g=!1;a2.on("data",function(e){d=!0,f=e}),a2.on("error",function(e){e.code==0||g||(g=!0,b(e,null))}),a2.on("status",function(e){e.code==0||g?c&&b(null,null,e):(g=!0,b({code:e.code,message:e.details,metadata:e.metadata},null))}),c&&a2.on("metadata",function(e){b(null,null,null,e)}),a2.on("end",function(){g||(d?c?b(null,f,null,null,!0):b(null,f):b({code:2,message:"Incomplete response"})),c&&b(null,null)})}__name(Qc,"Qc");function Oc(a2,b){var c=a2;return b.forEach(function(d){var f=c;c=__name(function(g){return d.intercept(g,f)},"c")}),c}__name(Oc,"Oc");Z.prototype.serverStreaming=Z.prototype.Y;Z.prototype.unaryCall=Z.prototype.unaryCall;Z.prototype.thenableCall=Z.prototype.S;Z.prototype.rpcCall=Z.prototype.X;var MethodDescriptor=ya,GrpcWebClientBase=Z,MethodType={UNARY:"unary",SERVER_STREAMING:"server_streaming",BIDI_STREAMING:"bidi_streaming"};Lb=typeof globalThis<"u"&&globalThis||self;const _NotifierClient=class _NotifierClient{constructor(hostname,credentials,options){__publicField(this,"client_");__publicField(this,"hostname_");__publicField(this,"credentials_");__publicField(this,"options_");__publicField(this,"methodDescriptorGetNews",new MethodDescriptor("/notify.Notifier/GetNews",MethodType.SERVER_STREAMING,empty_pb$1.Empty,notify_pb.NewsResponse,request=>request.serializeBinary(),notify_pb.NewsResponse.deserializeBinary));__publicField(this,"methodDescriptorGetNewsWithPage",new MethodDescriptor("/notify.Notifier/GetNewsWithPage",MethodType.UNARY,notify_pb.NewsReq,notify_pb.NewsResponse,request=>request.serializeBinary(),notify_pb.NewsResponse.deserializeBinary));__publicField(this,"methodDescriptorAddNews",new MethodDescriptor("/notify.Notifier/AddNews",MethodType.UNARY,notify_pb.AddNewsRequest,notify_pb.SuccessResponse,request=>request.serializeBinary(),notify_pb.SuccessResponse.deserializeBinary));__publicField(this,"methodDescriptorAddListNews",new MethodDescriptor("/notify.Notifier/AddListNews",MethodType.UNARY,notify_pb.AddListNewsRequest,notify_pb.SuccessResponse,request=>request.serializeBinary(),notify_pb.SuccessResponse.deserializeBinary));__publicField(this,"methodDescriptorReadPopups",new MethodDescriptor("/notify.Notifier/ReadPopups",MethodType.UNARY,notify_pb.ReadNewsRequest,notify_pb.SuccessResponse,request=>request.serializeBinary(),notify_pb.SuccessResponse.deserializeBinary));__publicField(this,"methodDescriptorReadNews",new MethodDescriptor("/notify.Notifier/ReadNews",MethodType.UNARY,notify_pb.ReadNewsRequest,notify_pb.SuccessResponse,request=>request.serializeBinary(),notify_pb.SuccessResponse.deserializeBinary));__publicField(this,"methodDescriptorReadAllNews",new MethodDescriptor("/notify.Notifier/ReadAllNews",MethodType.UNARY,empty_pb$1.Empty,notify_pb.SuccessResponse,request=>request.serializeBinary(),notify_pb.SuccessResponse.deserializeBinary));__publicField(this,"methodDescriptorDeleteAllNews",new MethodDescriptor("/notify.Notifier/DeleteAllNews",MethodType.UNARY,empty_pb$1.Empty,notify_pb.SuccessResponse,request=>request.serializeBinary(),notify_pb.SuccessResponse.deserializeBinary));__publicField(this,"methodDescriptorDeleteNews",new MethodDescriptor("/notify.Notifier/DeleteNews",MethodType.UNARY,notify_pb.ReadNewsRequest,notify_pb.SuccessResponse,request=>request.serializeBinary(),notify_pb.SuccessResponse.deserializeBinary));__publicField(this,"methodDescriptorDeleteWithKey",new MethodDescriptor("/notify.Notifier/DeleteWithKey",MethodType.UNARY,notify_pb.DeleteWithKeyReq,notify_pb.SuccessResponse,request=>request.serializeBinary(),notify_pb.SuccessResponse.deserializeBinary));options||(options={}),credentials||(credentials={}),options.format="text",this.client_=new GrpcWebClientBase(options),this.hostname_=hostname.replace(/\/+$/,""),this.credentials_=credentials,this.options_=options}getNews(request,metadata){return this.client_.serverStreaming(this.hostname_+"/notify.Notifier/GetNews",request,metadata||{},this.methodDescriptorGetNews)}getNewsWithPage(request,metadata,callback){return callback!==void 0?this.client_.rpcCall(this.hostname_+"/notify.Notifier/GetNewsWithPage",request,metadata||{},this.methodDescriptorGetNewsWithPage,callback):this.client_.unaryCall(this.hostname_+"/notify.Notifier/GetNewsWithPage",request,metadata||{},this.methodDescriptorGetNewsWithPage)}addNews(request,metadata,callback){return callback!==void 0?this.client_.rpcCall(this.hostname_+"/notify.Notifier/AddNews",request,metadata||{},this.methodDescriptorAddNews,callback):this.client_.unaryCall(this.hostname_+"/notify.Notifier/AddNews",request,metadata||{},this.methodDescriptorAddNews)}addListNews(request,metadata,callback){return callback!==void 0?this.client_.rpcCall(this.hostname_+"/notify.Notifier/AddListNews",request,metadata||{},this.methodDescriptorAddListNews,callback):this.client_.unaryCall(this.hostname_+"/notify.Notifier/AddListNews",request,metadata||{},this.methodDescriptorAddListNews)}readPopups(request,metadata,callback){return callback!==void 0?this.client_.rpcCall(this.hostname_+"/notify.Notifier/ReadPopups",request,metadata||{},this.methodDescriptorReadPopups,callback):this.client_.unaryCall(this.hostname_+"/notify.Notifier/ReadPopups",request,metadata||{},this.methodDescriptorReadPopups)}readNews(request,metadata,callback){return callback!==void 0?this.client_.rpcCall(this.hostname_+"/notify.Notifier/ReadNews",request,metadata||{},this.methodDescriptorReadNews,callback):this.client_.unaryCall(this.hostname_+"/notify.Notifier/ReadNews",request,metadata||{},this.methodDescriptorReadNews)}readAllNews(request,metadata,callback){return callback!==void 0?this.client_.rpcCall(this.hostname_+"/notify.Notifier/ReadAllNews",request,metadata||{},this.methodDescriptorReadAllNews,callback):this.client_.unaryCall(this.hostname_+"/notify.Notifier/ReadAllNews",request,metadata||{},this.methodDescriptorReadAllNews)}deleteAllNews(request,metadata,callback){return callback!==void 0?this.client_.rpcCall(this.hostname_+"/notify.Notifier/DeleteAllNews",request,metadata||{},this.methodDescriptorDeleteAllNews,callback):this.client_.unaryCall(this.hostname_+"/notify.Notifier/DeleteAllNews",request,metadata||{},this.methodDescriptorDeleteAllNews)}deleteNews(request,metadata,callback){return callback!==void 0?this.client_.rpcCall(this.hostname_+"/notify.Notifier/DeleteNews",request,metadata||{},this.methodDescriptorDeleteNews,callback):this.client_.unaryCall(this.hostname_+"/notify.Notifier/DeleteNews",request,metadata||{},this.methodDescriptorDeleteNews)}deleteWithKey(request,metadata,callback){return callback!==void 0?this.client_.rpcCall(this.hostname_+"/notify.Notifier/DeleteWithKey",request,metadata||{},this.methodDescriptorDeleteWithKey,callback):this.client_.unaryCall(this.hostname_+"/notify.Notifier/DeleteWithKey",request,metadata||{},this.methodDescriptorDeleteWithKey)}};__name(_NotifierClient,"NotifierClient");let NotifierClient=_NotifierClient;const _InfiniteScroll=class _InfiniteScroll extends reactExports.Component{constructor(props){super(props),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const parentElement=this.getParentElement(this.scrollComponent);parentElement.scrollTop=parentElement.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let passive=!1;const testOptions={get passive(){passive=!0}};try{document.addEventListener("test",null,testOptions),document.removeEventListener("test",null,testOptions)}catch{}return passive}eventListenerOptions(){let options=this.props.useCapture;return this.isPassiveSupported()?options={useCapture:this.props.useCapture,passive:!0}:options={passive:!1},options}setDefaultLoader(loader){this.defaultLoader=loader}detachMousewheelListener(){let scrollEl=window;this.props.useWindow===!1&&(scrollEl=this.scrollComponent.parentNode),scrollEl.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let scrollEl=window;this.props.useWindow===!1&&(scrollEl=this.getParentElement(this.scrollComponent)),scrollEl.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),scrollEl.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(el){const scrollParent=this.props.getScrollParent&&this.props.getScrollParent();return scrollParent??(el&&el.parentNode)}filterProps(props){return props}attachScrollListener(){const parentElement=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!parentElement)return;let scrollEl=window;this.props.useWindow===!1&&(scrollEl=parentElement),scrollEl.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),scrollEl.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),scrollEl.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(e){e.deltaY===1&&!this.isPassiveSupported()&&e.preventDefault()}scrollListener(){const el=this.scrollComponent,scrollEl=window,parentNode=this.getParentElement(el);let offset;if(this.props.useWindow){const doc=document.documentElement||document.body.parentNode||document.body,scrollTop=scrollEl.pageYOffset!==void 0?scrollEl.pageYOffset:doc.scrollTop;this.props.isReverse?offset=scrollTop:offset=this.calculateOffset(el,scrollTop)}else this.props.isReverse?offset=parentNode.scrollTop:offset=el.scrollHeight-parentNode.scrollTop-parentNode.clientHeight;offset<Number(this.props.threshold)&&el&&el.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=parentNode.scrollHeight,this.beforeScrollTop=parentNode.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}calculateOffset(el,scrollTop){return el?this.calculateTopPosition(el)+(el.offsetHeight-scrollTop-window.innerHeight):0}calculateTopPosition(el){return el?el.offsetTop+this.calculateTopPosition(el.offsetParent):0}render(){const renderProps=this.filterProps(this.props),{children,element,hasMore,initialLoad,isReverse,loader,loadMore,pageStart,ref,threshold,useCapture,useWindow,getScrollParent,...props}=renderProps;props.ref=node=>{this.scrollComponent=node,ref&&ref(node)};const childrenArray=[children];return hasMore&&(loader?isReverse?childrenArray.unshift(loader):childrenArray.push(loader):this.defaultLoader&&(isReverse?childrenArray.unshift(this.defaultLoader):childrenArray.push(this.defaultLoader))),React.createElement(element,props,childrenArray)}};__name(_InfiniteScroll,"InfiniteScroll"),__publicField(_InfiniteScroll,"propTypes",{children:PropTypes.node.isRequired,element:PropTypes.node,hasMore:PropTypes.bool,initialLoad:PropTypes.bool,isReverse:PropTypes.bool,loader:PropTypes.node,loadMore:PropTypes.func.isRequired,pageStart:PropTypes.number,ref:PropTypes.func,getScrollParent:PropTypes.func,threshold:PropTypes.number,useCapture:PropTypes.bool,useWindow:PropTypes.bool}),__publicField(_InfiniteScroll,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});let InfiniteScroll=_InfiniteScroll;const notifyService=new NotifierClient(_API_URL_GRPC);grpcDevTool(notifyService);const Notification=styled$1("div")(()=>({padding:"16px",marginBottom:"0.1rem",display:"flex",alignItems:"center",height:topBarHeight,boxShadow:themeShadows[6],"& h5":{marginLeft:"8px",marginTop:0,marginBottom:0,fontWeight:"500"}})),NotificationCard=styled$1(Box$1)(({theme})=>({position:"relative",cursor:"pointer","&:hover":{"& .deleteButton":{opacity:"1"},transform:"scale(1.05)"},"& .messageTime":{color:theme.palette.text.secondary,textAlign:"end"},"& .icon":{fontSize:"1.25rem"}})),DeleteButton=styled$1(IconButton)(({theme})=>({opacity:"0",position:"absolute",right:5,marginTop:1,marginRight:"15px",background:"rgba(0, 0, 0, 0.01)"})),CardLeftContent=styled$1("div")(({theme})=>({padding:"8px 4px",display:"flex",alignItems:"center",justifyContent:"space-between",background:"rgba(0, 0, 0, 0.01)","& small":{fontWeight:"500",marginLeft:"16px",color:theme.palette.text.secondary}})),Heading=styled$1("span")(({theme})=>({fontWeight:"500",marginLeft:"16px",color:theme.palette.text.secondary})),TypeEnums={0:{color:"primary",label:"mark_as_unread",path:"/don-thu/don-tiep-nhan/chi-tiet/"},1:{color:"secondary",label:"manage_accounts",path:"/don-thu/don-xu-ly/chi-tiet/"},2:{color:"warning",label:"running_with_errors",path:"/don-thu/don-xu-ly/chi-tiet/"},3:{color:"error",label:"do_disturb_on",path:"/don-thu/don-xu-ly/chi-tiet/"},4:{color:"warning",label:"work",path:"/don-thu/don-xu-ly/chi-tiet/"}},NotificationBar=__name(({container})=>{const dispatch=useDispatch(),[end,setEnd]=reactExports.useState(!0),{settings}=useSettings(),secondary=useTheme$1().palette.text.secondary,[panelOpen,setPanelOpen]=reactExports.useState(!1),{notifys,count}=useSelector(selectNotifications),countError=reactExports.useRef(0),refTop=reactExports.useRef(),refButton=reactExports.useRef(),refBell=reactExports.useRef(),navigate=useNavigate();reactExports.useEffect(()=>{dispatch(getNotification())},[dispatch]);const handleDrawerToggle=reactExports.useCallback(()=>{setPanelOpen(pre=>!pre)},[]),ringBell=reactExports.useCallback(()=>{var bell=refBell.current;bell&&bell.classList.add("shake_bell"),setTimeout(()=>bell&&bell.classList.remove("shake_bell"),500)},[]),startStreamData=reactExports.useCallback(stream=>{stream.on("data",function(response){const{dataList,count:count2}=response.toObject();dataList.forEach(cur=>{if(cur.ispopup){CHECK_NOTIFY(cur.content),ringBell();const viewed=new notify_pb.ReadNewsRequest;viewed.setKey(cur.key),viewed.setType(cur.type),viewed.setNumber(cur.number),notifyService.readPopups(viewed,meta)}}),dispatch(updateNotify({notifys:dataList,count:count2}))});const statusHandler=__name(({code,message})=>{if(stream.cancel(),countError.current+=1,countError.current<10){const newStream=notifyService.getNews(new empty_pb$1.Empty,{...meta});startStreamData(newStream)}},"statusHandler");stream.on("error",statusHandler)},[dispatch]);reactExports.useEffect(()=>{const stream=notifyService.getNews(new empty_pb$1.Empty,{...meta});startStreamData(stream)},[startStreamData]);const{palette}=useTheme$1(),textColor=palette.text.primary,refHeadContent=reactExports.useRef(),scrollTop=__name((e,isTarget)=>{if(e){var btnTop=refButton.current;(isTarget?e.scrollTop:e.target.scrollTop)>50?btnTop.classList.add("show"):btnTop.classList.remove("show")}return null},"scrollTop");refHeadContent&&refHeadContent.current&&refHeadContent.current.addEventListener("scroll",scrollTop);const handleFetchMore=reactExports.useCallback((sizeData,page)=>{if(sizeData>=10&&sizeData%10===0){const request=new notify_pb.NewsReq;request.setPagenumber(sizeData/10),notifyService.getNewsWithPage(request,meta).then(res=>{const{dataList}=res.toObject();dataList.length!==0?dispatch(updateNotify({notifys:[...notifys,...dataList],count})):setEnd(!1)}).catch(err=>CHECK_WARNING("Lỗi lấy thông báo"))}},[notifys,count]),backToTop=__name(()=>{var _a;(_a=document.getElementById("top"))==null||_a.scrollIntoView({behavior:"smooth"})},"backToTop"),viewedLoader=reactExports.useCallback(async(object,notifys2)=>{try{if(object.isnew){const{key,type,number}=object,viewed=new notify_pb.ReadNewsRequest;viewed.setKey(key),viewed.setType(type),viewed.setNumber(number),notifyService.readNews(viewed,meta);const updatedNotifys=notifys2.map((cur,index)=>cur.key===object.key&&cur.number===object.number?{...cur,isnew:!1}:cur);dispatch(updateNotify({notifys:updatedNotifys,count:count-1}))}Promise.resolve(!0)}catch{Promise.resolve(!0)}},[count]),handleDeleteNotify=reactExports.useCallback(n2=>{try{const viewed=new notify_pb.ReadNewsRequest,{key,type,number}=n2;viewed.setKey(key),viewed.setType(type),viewed.setNumber(number),notifyService.deleteNews(viewed,meta),dispatch(deleteNotification(n2.key))}catch{CHECK_WARNING("Thao tác không thành công")}},[]),handleDeleteAllNotify=reactExports.useCallback(()=>{try{const viewed=new empty_pb$1.Empty;notifyService.deleteAllNews(viewed),dispatch(clearNotifications())}catch{}},[]);return jsxDevRuntimeExports.jsxDEV(reactExports.Fragment,{children:[jsxDevRuntimeExports.jsxDEV(IconButton,{ref:refBell,onClick:handleDrawerToggle,children:jsxDevRuntimeExports.jsxDEV(Badge,{color:"secondary",badgeContent:count,children:jsxDevRuntimeExports.jsxDEV(Icon,{sx:{color:textColor},children:"notifications"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:267,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:266,columnNumber:9},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:265,columnNumber:7},void 0),jsxDevRuntimeExports.jsxDEV(ThemeProvider,{theme:settings.themes[settings.activeTheme],children:jsxDevRuntimeExports.jsxDEV(Drawer,{container,variant:"temporary",anchor:"right",open:panelOpen,onClose:handleDrawerToggle,ModalProps:{keepMounted:!0},children:jsxDevRuntimeExports.jsxDEV(Box$1,{sx:{width:sideNavWidth,overflow:"hidden"},children:[jsxDevRuntimeExports.jsxDEV(Notification,{children:[jsxDevRuntimeExports.jsxDEV(Icon,{color:"primary",children:"notifications"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:285,columnNumber:15},void 0),jsxDevRuntimeExports.jsxDEV("h5",{children:"THÔNG BÁO"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:286,columnNumber:15},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:284,columnNumber:13},void 0),jsxDevRuntimeExports.jsxDEV("div",{ref:refHeadContent,className:"pane notify-content",children:jsxDevRuntimeExports.jsxDEV(InfiniteScroll,{threshold:50,pageStart:0,loadMore:page=>{handleFetchMore(notifys&&notifys.length,page)},hasMore:end,getScrollParent:()=>refHeadContent&&scrollTop(refHeadContent.current,!0),useWindow:!1,loader:notifys&&notifys.length!==0?jsxDevRuntimeExports.jsxDEV(Stack,{direction:"row",justifyContent:"center",children:jsxDevRuntimeExports.jsxDEV("div",{className:"wobbling-4"},"loading",!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:301,columnNumber:23},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:300,columnNumber:21},void 0):jsxDevRuntimeExports.jsxDEV(jsxDevRuntimeExports.Fragment,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:304,columnNumber:21},void 0),children:[jsxDevRuntimeExports.jsxDEV("div",{id:"top",ref:refTop},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:308,columnNumber:17},void 0),jsxDevRuntimeExports.jsxDEV("ul",{className:"task-items",children:[jsxDevRuntimeExports.jsxDEV("div",{ref:refButton,className:"btn-top btn-white btn-animate",onClick:backToTop,children:jsxDevRuntimeExports.jsxDEV("i",{className:"fa-solid fa-arrow-up text-white"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:311,columnNumber:21},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:310,columnNumber:19},void 0),notifys&&notifys.length>0?jsxDevRuntimeExports.jsxDEV(jsxDevRuntimeExports.Fragment,{children:notifys.map(notification=>{var _a,_b;return jsxDevRuntimeExports.jsxDEV(NotificationCard,{sx:{position:"relative"},children:[jsxDevRuntimeExports.jsxDEV(DeleteButton,{size:"small",className:"deleteButton",onClick:()=>{handleDeleteNotify(notification)},children:jsxDevRuntimeExports.jsxDEV(Icon,{className:"icon",children:"clear"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:324,columnNumber:29},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:317,columnNumber:27},void 0),jsxDevRuntimeExports.jsxDEV(Card,{onClick:async()=>{var _a2;await viewedLoader(notification,notifys),handleDrawerToggle(),navigate(`${(_a2=TypeEnums[notification.type])==null?void 0:_a2.path}${notification.key}`)},sx:{mx:2,mb:3},elevation:3,children:jsxDevRuntimeExports.jsxDEV(CardLeftContent,{children:jsxDevRuntimeExports.jsxDEV(Stack,{direction:"column",children:[jsxDevRuntimeExports.jsxDEV(Stack,{children:jsxDevRuntimeExports.jsxDEV(Box$1,{display:"flex",children:[jsxDevRuntimeExports.jsxDEV(Icon,{className:"icon",color:(_a=TypeEnums[notification.type])==null?void 0:_a.color,children:(_b=TypeEnums[notification.type])==null?void 0:_b.label},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:347,columnNumber:37},void 0),jsxDevRuntimeExports.jsxDEV(Heading,{children:notification.content},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:350,columnNumber:37},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:346,columnNumber:35},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:345,columnNumber:33},void 0),jsxDevRuntimeExports.jsxDEV(Stack,{justifyContent:"end",children:jsxDevRuntimeExports.jsxDEV(Small,{className:"messageTime",children:[getTimeDifference(new Date(notification.timestamp.seconds*1e3))," trước"]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:354,columnNumber:35},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:353,columnNumber:33},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:344,columnNumber:31},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:343,columnNumber:29},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:334,columnNumber:27},void 0)]},notification.key,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:316,columnNumber:25},void 0)})},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:314,columnNumber:21},void 0):jsxDevRuntimeExports.jsxDEV(Stack,{direction:"column",justifyContent:"center",alignItems:"center",children:[jsxDevRuntimeExports.jsxDEV("img",{alt:"",src:"https://a.trellocdn.com/prgb/dist/images/taco-sleep.0582d9f3bdb5060e7285.svg"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:371,columnNumber:23},void 0),jsxDevRuntimeExports.jsxDEV("div",{className:"text",children:jsxDevRuntimeExports.jsxDEV("h3",{children:"Chưa có thông báo"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:373,columnNumber:25},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:372,columnNumber:23},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:370,columnNumber:21},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:309,columnNumber:17},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:289,columnNumber:15},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:288,columnNumber:13},void 0),notifys&&notifys.length?jsxDevRuntimeExports.jsxDEV(Box$1,{sx:{color:secondary,textAlign:"center"},children:jsxDevRuntimeExports.jsxDEV(Button,{onClick:handleDeleteAllNotify,children:"Xóa thông báo"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:382,columnNumber:17},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:381,columnNumber:15},void 0):jsxDevRuntimeExports.jsxDEV(jsxDevRuntimeExports.Fragment,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:385,columnNumber:15},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:283,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:272,columnNumber:9},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:271,columnNumber:7},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/NotificationBar/NotificationBar.tsx",lineNumber:264,columnNumber:5},void 0)},"NotificationBar"),StyledIconButton=styled$1(IconButton)(({theme})=>({color:theme.palette.text.primary})),TopbarRoot=styled$1("div")(({theme})=>({top:0,zIndex:96,transition:"all 0.3s ease",boxShadow:themeShadows[8],height:topBarHeight})),TopbarContainer=styled$1(Box$1)(({theme})=>({padding:"8px",paddingLeft:18,paddingRight:20,height:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",background:theme.palette.primary.main,[theme.breakpoints.down("sm")]:{paddingLeft:16,paddingRight:16},[theme.breakpoints.down("xs")]:{paddingLeft:14,paddingRight:16}})),UserMenu=styled$1(Box$1)(()=>({display:"flex",alignItems:"center",cursor:"pointer",borderRadius:24,padding:4,"& span":{margin:"0 8px"}})),StyledItem=styled$1(MenuItem)(({theme})=>({display:"flex",alignItems:"center",minWidth:185,"& a":{width:"100%",display:"flex",alignItems:"center",textDecoration:"none"},"& span":{marginRight:"10px",color:theme.palette.text.primary}})),IconBox=styled$1("div")(({theme})=>({display:"inherit",[theme.breakpoints.down("md")]:{display:"none !important"}})),Layout1Topbar=__name(()=>{const theme=useTheme$1(),{settings,updateSettings}=useSettings(),{logout,user}=useAuth(),isMdScreen=useMediaQuery(theme.breakpoints.down("md")),updateSidebarMode=__name(sidebarSettings=>{updateSettings({layout1Settings:{leftSidebar:{...sidebarSettings}}})},"updateSidebarMode"),handleSidebarToggle=__name(()=>{let{layout1Settings}=settings,mode;isMdScreen?mode=layout1Settings.leftSidebar.mode==="close"?"mobile":"close":mode=layout1Settings.leftSidebar.mode==="full"?"close":"full",updateSidebarMode({mode})},"handleSidebarToggle");return jsxDevRuntimeExports.jsxDEV(TopbarRoot,{children:jsxDevRuntimeExports.jsxDEV(TopbarContainer,{children:[jsxDevRuntimeExports.jsxDEV(Box$1,{display:"flex",children:[jsxDevRuntimeExports.jsxDEV(StyledIconButton,{onClick:handleSidebarToggle,children:jsxDevRuntimeExports.jsxDEV(Icon,{children:"menu"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:100,columnNumber:13},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:99,columnNumber:11},void 0),jsxDevRuntimeExports.jsxDEV(IconBox,{children:[jsxDevRuntimeExports.jsxDEV(StyledIconButton,{children:jsxDevRuntimeExports.jsxDEV(Icon,{children:"mail_outline"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:105,columnNumber:15},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:104,columnNumber:13},void 0),jsxDevRuntimeExports.jsxDEV(StyledIconButton,{children:jsxDevRuntimeExports.jsxDEV(Icon,{children:"web_asset"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:109,columnNumber:15},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:108,columnNumber:13},void 0),jsxDevRuntimeExports.jsxDEV(StyledIconButton,{children:jsxDevRuntimeExports.jsxDEV(Icon,{children:"star_outline"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:113,columnNumber:15},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:112,columnNumber:13},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:103,columnNumber:11},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:98,columnNumber:9},void 0),jsxDevRuntimeExports.jsxDEV(Box$1,{display:"flex",alignItems:"center",children:[jsxDevRuntimeExports.jsxDEV(MatxSearchBox,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:119,columnNumber:11},void 0),jsxDevRuntimeExports.jsxDEV(NotificationBar,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:120,columnNumber:11},void 0),jsxDevRuntimeExports.jsxDEV(ShoppingCart,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:121,columnNumber:11},void 0),jsxDevRuntimeExports.jsxDEV(MatxMenu,{menuButton:jsxDevRuntimeExports.jsxDEV(UserMenu,{children:[jsxDevRuntimeExports.jsxDEV(Hidden,{xsDown:!0,children:jsxDevRuntimeExports.jsxDEV(Span,{children:["Hi ",jsxDevRuntimeExports.jsxDEV("strong",{children:user==null?void 0:user.displayName},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:128,columnNumber:24},void 0),jsxDevRuntimeExports.jsxDEV("p",{style:{margin:0,color:"cornflowerblue"},children:user&&user.displayRole[0]},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:129,columnNumber:21},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:127,columnNumber:19},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:126,columnNumber:17},void 0),jsxDevRuntimeExports.jsxDEV(Avatar,{src:user==null?void 0:user.avatar,sx:{cursor:"pointer"}},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:132,columnNumber:17},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:125,columnNumber:15},void 0),children:[jsxDevRuntimeExports.jsxDEV(StyledItem,{children:jsxDevRuntimeExports.jsxDEV(Link$1,{to:"/",children:[jsxDevRuntimeExports.jsxDEV(Icon,{children:" home "},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:138,columnNumber:17},void 0),jsxDevRuntimeExports.jsxDEV(Span,{children:" Trang chủ "},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:139,columnNumber:17},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:137,columnNumber:15},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:136,columnNumber:13},void 0),jsxDevRuntimeExports.jsxDEV(StyledItem,{children:jsxDevRuntimeExports.jsxDEV(Link$1,{to:"/page-layouts/account",children:[jsxDevRuntimeExports.jsxDEV(Icon,{children:" settings "},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:152,columnNumber:17},void 0),jsxDevRuntimeExports.jsxDEV(Span,{children:" Cài đặt "},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:153,columnNumber:17},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:151,columnNumber:15},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:150,columnNumber:13},void 0),jsxDevRuntimeExports.jsxDEV(StyledItem,{onClick:logout,children:[jsxDevRuntimeExports.jsxDEV(Icon,{children:" power_settings_new "},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:158,columnNumber:15},void 0),jsxDevRuntimeExports.jsxDEV(Span,{children:" Đăng xuất "},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:159,columnNumber:15},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:157,columnNumber:13},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:123,columnNumber:11},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:118,columnNumber:9},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:97,columnNumber:7},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1Topbar.jsx",lineNumber:96,columnNumber:5},void 0)},"Layout1Topbar"),Layout1Topbar$1=React.memo(Layout1Topbar),Layout1Root=styled$1(Box$1)(({theme})=>({display:"flex",background:theme.palette.background.default})),ContentBox=styled$1(Box$1)(()=>({height:"100%",display:"flex",overflowY:"auto",overflowX:"hidden",flexDirection:"column",justifyContent:"space-between",padding:"1rem",backgroundColor:"#f5f5f5"})),StyledScrollBar=styled$1(Scrollbar)(()=>({height:"100%",position:"relative",display:"flex",flexGrow:"1",flexDirection:"column"})),LayoutContainer=styled$1(Box$1)(({width,secondarySidebar})=>({height:"100vh",display:"flex",flexGrow:"1",flexDirection:"column",verticalAlign:"top",marginLeft:width,position:"relative",overflow:"hidden",transition:"all 0.3s ease",marginRight:secondarySidebar.open?50:0})),Layout1=__name(()=>{const{settings,updateSettings}=useSettings(),{layout1Settings,secondarySidebar}=settings,topbarTheme=settings.themes[layout1Settings.topbar.theme],{leftSidebar:{mode:sidenavMode,show:showSidenav}}=layout1Settings,sidenavWidth=__name(()=>{switch(sidenavMode){case"full":return sideNavWidth;case"compact":return sidenavCompactWidth;default:return"0px"}},"getSidenavWidth")(),theme=useTheme$1(),isMdScreen=useMediaQuery(theme.breakpoints.down("md")),ref=reactExports.useRef({isMdScreen,settings}),layoutClasses=`theme-${theme.palette.type}`;return reactExports.useEffect(()=>{let{settings:settings2}=ref.current,sidebarMode=settings2.layout1Settings.leftSidebar.mode;settings2.layout1Settings.leftSidebar.show&&updateSettings({layout1Settings:{leftSidebar:{mode:isMdScreen?"close":sidebarMode}}})},[isMdScreen]),jsxDevRuntimeExports.jsxDEV(Layout1Root,{className:layoutClasses,children:[showSidenav&&sidenavMode!=="close"&&jsxDevRuntimeExports.jsxDEV(SidenavTheme,{children:jsxDevRuntimeExports.jsxDEV(Layout1Sidenav$1,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:94,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:93,columnNumber:9},void 0),jsxDevRuntimeExports.jsxDEV(LayoutContainer,{width:sidenavWidth,secondarySidebar,children:[layout1Settings.topbar.show&&layout1Settings.topbar.fixed&&jsxDevRuntimeExports.jsxDEV(ThemeProvider,{theme:topbarTheme,children:jsxDevRuntimeExports.jsxDEV(Layout1Topbar$1,{fixed:!0,className:"elevation-z8"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:101,columnNumber:13},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:100,columnNumber:11},void 0),settings.perfectScrollbar&&jsxDevRuntimeExports.jsxDEV(StyledScrollBar,{children:[layout1Settings.topbar.show&&!layout1Settings.topbar.fixed&&jsxDevRuntimeExports.jsxDEV(ThemeProvider,{theme:topbarTheme,children:jsxDevRuntimeExports.jsxDEV(Layout1Topbar$1,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:109,columnNumber:17},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:108,columnNumber:15},void 0),jsxDevRuntimeExports.jsxDEV(Box$1,{flexGrow:1,position:"relative",children:jsxDevRuntimeExports.jsxDEV(MatxSuspense,{children:jsxDevRuntimeExports.jsxDEV(Outlet,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:114,columnNumber:17},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:113,columnNumber:15},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:112,columnNumber:13},void 0),settings.footer.show&&!settings.footer.fixed&&jsxDevRuntimeExports.jsxDEV(Footer,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:118,columnNumber:64},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:106,columnNumber:11},void 0),!settings.perfectScrollbar&&jsxDevRuntimeExports.jsxDEV(reactExports.Fragment,{children:[jsxDevRuntimeExports.jsxDEV(ContentBox,{children:[layout1Settings.topbar.show&&!layout1Settings.topbar.fixed&&jsxDevRuntimeExports.jsxDEV(ThemeProvider,{theme:topbarTheme,children:jsxDevRuntimeExports.jsxDEV(Layout1Topbar$1,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:127,columnNumber:19},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:126,columnNumber:17},void 0),jsxDevRuntimeExports.jsxDEV(Box$1,{flexGrow:1,position:"relative",children:jsxDevRuntimeExports.jsxDEV(MatxSuspense,{children:jsxDevRuntimeExports.jsxDEV(Outlet,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:133,columnNumber:19},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:132,columnNumber:17},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:131,columnNumber:15},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:124,columnNumber:13},void 0),settings.footer.show&&!settings.footer.fixed&&jsxDevRuntimeExports.jsxDEV(Footer,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:137,columnNumber:64},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:123,columnNumber:11},void 0),settings.footer.show&&settings.footer.fixed&&jsxDevRuntimeExports.jsxDEV(Footer,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:141,columnNumber:59},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:98,columnNumber:7},void 0),settings.secondarySidebar.show&&jsxDevRuntimeExports.jsxDEV(SecondarySidebar,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:144,columnNumber:42},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/components/MatxLayout/Layout1/Layout1.jsx",lineNumber:91,columnNumber:5},void 0)},"Layout1"),Layout1$1=React.memo(Layout1);export{Layout1$1 as default};