console.warn(['MUI: The `anchorEl` prop provided to the component is invalid.','The anchor element should be part of the document layout.',"Make sure the element is present in the document or that it's not display none."].join('\n'));
console.error(['MUI: The popover component is too tall.',`Somepartofitcannotbeseenonthescreen(${elemRect.height-heightThreshold}px).`,'Please consider adding a `max-height` to improve the user-experience.'].join('\n'));
returnnewError(['MUI: The `anchorEl` prop provided to the component is invalid.','The anchor element should be part of the document layout.',"Make sure the element is present in the document or that it's not display none."].join('\n'));
}
}else{
returnnewError(['MUI: The `anchorEl` prop provided to the component is invalid.',`ItshouldbeanElementinstancebutit's \`${resolvedAnchorEl}\` instead.`].join('\n'));
}
}
return null;
}),
/**
* This is the point on the anchor where the popover's