@patternfly/react-table 4.110.15 → 4.110.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,7 +37,7 @@ var D=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","au
37
37
  * focus-trap 6.9.2
38
38
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
39
39
  */
40
- function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var te,ne=(te=[],{activateTrap:function(e){if(te.length>0){var t=te[te.length-1];t!==e&&t.pause()}var n=te.indexOf(e);-1===n||te.splice(n,1),te.push(e)},deactivateTrap:function(e){var t=te.indexOf(e);-1!==t&&te.splice(t,1),te.length>0&&te[te.length-1].unpause()}}),re=function(e){return setTimeout(e,0)},oe=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},ae=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},ie=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},se=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=Z({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},i=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},s=function(e){return a.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},l=function(e){var t=o[e];if("function"==typeof t){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];t=t.apply(void 0,a)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=t;if("string"==typeof t&&!(s=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return s},c=function(){var e=l("initialFocus");if(!1===e)return!1;if(void 0===e)if(s(r.activeElement)>=0)e=r.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||l("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(a.containerGroups=a.containers.map((function(e){var t,n,r=q(e,o.tabbableOptions),a=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?M([t],n.includeContainer,{filter:W.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):L(t,n.includeContainer,W.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:a,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=a.findIndex((function(t){return t===e}));if(!(n<0))return t?a.slice(n+1).find((function(e){return X(e,o.tabbableOptions)})):a.slice(0,n).reverse().find((function(e){return X(e,o.tabbableOptions)}))}}})),a.tabbableGroups=a.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),a.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},p=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),a.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},u=function(e){var t=l("setReturnFocus",e);return t||!1!==t&&e},f=function(e){var t=ie(e);s(t)>=0||(ae(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!J(t,o.tabbableOptions)}):ae(o.allowOutsideClick,e)||e.preventDefault())},m=function(e){var t=ie(e),n=s(t)>=0;n||t instanceof Document?n&&(a.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),p(a.mostRecentlyFocusedNode||c()))},h=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==ae(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=ie(e);d();var n=null;if(a.tabbableGroups.length>0){var r=s(t),i=r>=0?a.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=oe(a.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(i.container===t||J(t,o.tabbableOptions)&&!X(t,o.tabbableOptions)&&!i.nextTabbableNode(t,!1))&&(c=r),c>=0){var u=0===c?a.tabbableGroups.length-1:c-1;n=a.tabbableGroups[u].lastTabbableNode}}else{var f=oe(a.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(f<0&&(i.container===t||J(t,o.tabbableOptions)&&!X(t,o.tabbableOptions)&&!i.nextTabbableNode(t))&&(f=r),f>=0){var m=f===a.tabbableGroups.length-1?0:f+1;n=a.tabbableGroups[m].firstTabbableNode}}}else n=l("fallbackFocus");n&&(e.preventDefault(),p(n))}(e)},b=function(e){var t=ie(e);s(t)>=0||ae(o.clickOutsideDeactivates,e)||ae(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},g=function(){if(a.active)return ne.activateTrap(n),a.delayInitialFocusTimer=o.delayInitialFocus?re((function(){p(c())})):p(c()),r.addEventListener("focusin",m,!0),r.addEventListener("mousedown",f,{capture:!0,passive:!1}),r.addEventListener("touchstart",f,{capture:!0,passive:!1}),r.addEventListener("click",b,{capture:!0,passive:!1}),r.addEventListener("keydown",h,{capture:!0,passive:!1}),n},v=function(){if(a.active)return r.removeEventListener("focusin",m,!0),r.removeEventListener("mousedown",f,!0),r.removeEventListener("touchstart",f,!0),r.removeEventListener("click",b,!0),r.removeEventListener("keydown",h,!0),n};return(n={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=i(e,"onActivate"),n=i(e,"onPostActivate"),o=i(e,"checkCanFocusTrap");o||d(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=r.activeElement,t&&t();var s=function(){o&&d(),g(),n&&n()};return o?(o(a.containers.concat()).then(s,s),this):(s(),this)},deactivate:function(e){if(!a.active)return this;var t=Z({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,v(),a.active=!1,a.paused=!1,ne.deactivateTrap(n);var r=i(t,"onDeactivate"),s=i(t,"onPostDeactivate"),l=i(t,"checkCanReturnFocus"),c=i(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){re((function(){c&&p(u(a.nodeFocusedBeforeActivation)),s&&s()}))};return c&&l?(l(u(a.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return a.paused||!a.active||(a.paused=!0,v()),this},unpause:function(){return a.paused&&a.active?(a.paused=!1,d(),g(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return a.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),a.active&&d(),this}}).updateContainerElements(e),n};class le extends o.Component{constructor(e){super(e),this.divRef=this.props.innerRef||o.createRef(),"undefined"!=typeof document&&(this.previouslyFocusedElement=document.activeElement)}componentDidMount(){this.focusTrap=se(this.divRef.current,Object.assign(Object.assign({},this.props.focusTrapOptions),{returnFocusOnDeactivate:!1})),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()}componentDidUpdate(e){e.active&&!this.props.active?this.focusTrap.deactivate():!e.active&&this.props.active&&this.focusTrap.activate(),e.paused&&!this.props.paused?this.focusTrap.unpause():!e.paused&&this.props.paused&&this.focusTrap.pause()}componentWillUnmount(){this.focusTrap.deactivate(),!1!==this.props.focusTrapOptions.returnFocusOnDeactivate&&this.previouslyFocusedElement&&this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus({preventScroll:this.props.preventScrollOnDeactivate})}render(){const e=this.props,{children:t,className:n,focusTrapOptions:r,active:a,paused:i,preventScrollOnDeactivate:l,innerRef:c}=e,d=s(e,["children","className","focusTrapOptions","active","paused","preventScrollOnDeactivate","innerRef"]);return o.createElement("div",Object.assign({ref:this.divRef,className:n},d),t)}}le.displayName="FocusTrap",le.defaultProps={active:!0,paused:!1,focusTrapOptions:{},preventScrollOnDeactivate:!1};const ce=o.forwardRef(((e,t)=>o.createElement(le,Object.assign({innerRef:t},e))));let de=0;class pe extends o.Component{constructor(){super(...arguments),this.id=`${this.props.prefix}${de++}`}render(){return this.props.children(this.id)}}pe.displayName="GenerateId",pe.defaultProps={prefix:"pf-random-id-"};let ue=0;const fe="OUIA-Generated-",me={};function he(e,t,n=!0){return{"data-ouia-component-type":`PF4/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const be=(e,t,n=!0,r)=>({"data-ouia-component-type":`PF4/${e}`,"data-ouia-safe":n,"data-ouia-component-id":ge(e,t,r)}),ge=(e,n,r)=>{const o=t.useMemo((()=>ve(e,r)),[e,r]);return null!=n?n:o};function ve(e,t){try{let n;return n="undefined"!=typeof window?`${window.location.href}-${e}-${t||""}`:`${e}-${t||""}`,me[n]||(me[n]=0),`${fe}${e}-${t?`${t}-`:""}${++me[n]}`}catch(n){return`${fe}${e}-${t?`${t}-`:""}${++ue}`}}function ye(e="pf"){return`${e}-${(new Date).getTime()+Math.random().toString(36).slice(2)}`}function we(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout((()=>e.apply(this,r)),t)}}function xe(e,t,n,r,o,i=!1){if(!Array.isArray(o))return;const s=r.filter((e=>e))[0].constructor===Array;let l=e,c=t;if("up"===n?l=0===e?o.length-1:e-1:"down"===n?l=e===o.length-1?0:e+1:"left"===n?c=0===t?r[e].length-1:t-1:"right"===n&&(c=t===r[e].length-1?0:t+1),null===r[l]||void 0===r[l]||s&&(null===r[l][c]||void 0===r[l][c]))xe(l,c,n,r,o,i);else if(i){r[l].focus&&r[l].focus();a.findDOMNode(r[l]).focus()}else"tab"!==n&&(s?r[l][c].focus():r[l].focus())}function Ce(e,t){const n=e.current.querySelectorAll(t);return Array.prototype.filter.call(n,(function(e){return e.tabIndex>="0"}))}function Ee(e,t,n){let r;return r="up"===t?0===e?n.length-1:e-1:e===n.length-1?0:e+1,void 0===n[r]||null===n[r][0]?Ee(r,t,n):r}const Oe=(e,t,n="",r,o)=>{if(!e)return"";if(r&&!o){if(r in e)return t.modifiers[Se(`${n}${e[r]}`)];const o=["2xl","xl","lg","md","sm","default"];for(let a=o.indexOf(r);a<o.length;a++)if(o[a]in e)return t.modifiers[Se(`${n}${e[o[a]]}`)];return""}return Object.entries(e||{}).map((([e,t])=>`${n}${t}${"default"!==e?`-on-${e}`:""}${o&&"default"!==e?"-height":""}`)).map(Se).map((e=>e.replace(/-?(\dxl)/gi,((e,t)=>`_${t}`)))).map((e=>t.modifiers[e])).filter(Boolean).join(" ")},Ne=e=>e.toUpperCase().replace("-","").replace("_",""),Se=e=>e.replace(/([-_][a-z])/gi,Ne),ke=!("undefined"==typeof window||!window.document||!window.document.createElement),Re=(e,t)=>{const n=getComputedStyle(t),r=document.createElement("canvas").getContext("2d");return r.font=n.font||(()=>{let e="";const t={"50%":"ultra-condensed","62.5%":"extra-condensed","75%":"condensed","87.5%":"semi-condensed","100%":"normal","112.5%":"semi-expanded","125%":"expanded","150%":"extra-expanded","200%":"ultra-expanded"};let r;return r=n.fontStretch in t?t[n.fontStretch]:"normal",e=n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+r+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily,e})(),r.measureText(e).width},Te=(e,t)=>{const n=(e=>{const t=getComputedStyle(e);let n=e.clientWidth,r=e.clientHeight;return r-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{height:r,width:n}})(e).width;let r=t;if(Re(t,e)>n){for(;Re(`...${r}`,e)>n;)r=r.substring(1);e.value?e.value=`...${r}`:e.innerText=`...${r}`}else e.value?e.value=t:e.innerText=t};function _e(e){const t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Ie(e){if("[object Window]"!==e.toString()){const t=e.ownerDocument;return t?t.defaultView:window}return e}function De(e){const t=Ie(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function je(e){return e instanceof Ie(e).Element||e instanceof Element}function Pe(e){return e instanceof Ie(e).HTMLElement||e instanceof HTMLElement}function Ae(e){return e?(e.nodeName||"").toLowerCase():null}function Fe(e){return(je(e)?e.ownerDocument:e.document).documentElement}function Le(e){return _e(Fe(e)).left+De(e).scrollLeft}function Me(e){return Ie(e).getComputedStyle(e)}function Be(e){const{overflow:t,overflowX:n,overflowY:r}=Me(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function Ve(e,t,n=!1){const r=Fe(t),o=_e(e),a=Pe(t);let i={scrollLeft:0,scrollTop:0},s={x:0,y:0};var l,c;return(a||!a&&!n)&&(("body"!==Ae(t)||Be(r))&&(i=(l=t)!==Ie(l)&&Pe(l)?{scrollLeft:(c=l).scrollLeft,scrollTop:c.scrollTop}:De(l)),Pe(t)?(s=_e(t),s.x+=t.clientLeft,s.y+=t.clientTop):r&&(s.x=Le(r))),{x:o.left+i.scrollLeft-s.x,y:o.top+i.scrollTop-s.y,width:o.width,height:o.height}}function ze(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function $e(e){return"html"===Ae(e)?e:e.assignedSlot||e.parentNode||e.host||Fe(e)}function He(e){return["html","body","#document"].indexOf(Ae(e))>=0?e.ownerDocument.body:Pe(e)&&Be(e)?e:He($e(e))}function We(e,t=[]){const n=He(e),r="body"===Ae(n),o=Ie(n),a=r?[o].concat(o.visualViewport||[],Be(n)?n:[]):n,i=t.concat(a);return r?i:i.concat(We($e(a)))}function Ke(e){return["table","td","th"].indexOf(Ae(e))>=0}function Ge(e){if(!Pe(e)||"fixed"===Me(e).position)return null;const t=e.offsetParent;if(t){const e=Fe(t);if("body"===Ae(t)&&"static"===Me(t).position&&"static"!==Me(e).position)return e}return t}function Ue(e){const t=Ie(e);let n=Ge(e);for(;n&&Ke(n)&&"static"===Me(n).position;)n=Ge(n);return n&&"body"===Ae(n)&&"static"===Me(n).position?t:n||function(e){let t=$e(e);for(;Pe(t)&&["html","body"].indexOf(Ae(t))<0;){const e=Me(t);if("none"!==e.transform||"none"!==e.perspective||e.willChange&&"auto"!==e.willChange)return t;t=t.parentNode}return null}(e)||t}const qe="top",Xe="bottom",Ye="right",Je="left",Qe="auto",Ze=[qe,Xe,Ye,Je],et="start",tt="end",nt="clippingParents",rt="viewport",ot="popper",at=Ze.reduce(((e,t)=>e.concat([`${t}-start`,`${t}-end`])),[]),it=[...Ze,Qe].reduce(((e,t)=>e.concat([t,`${t}-start`,`${t}-end`])),[]),st=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function lt(e){const t=new Map,n=new Set,r=[];function o(e){n.add(e.name);[...e.requires||[],...e.requiresIfExists||[]].forEach((e=>{if(!n.has(e)){const n=t.get(e);n&&o(n)}})),r.push(e)}return e.forEach((e=>{t.set(e.name,e)})),e.forEach((e=>{n.has(e.name)||o(e)})),r}function ct(e){let t;return()=>(t||(t=new Promise((n=>{Promise.resolve().then((()=>{t=void 0,n(e())}))}))),t)}function dt(e){return e.split("-")[0]}function pt(e,t){const n=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){let n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ut(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ft(e,t){return t===rt?ut(function(e){const t=Ie(e),n=Fe(e),r=t.visualViewport;let o=n.clientWidth,a=n.clientHeight,i=0,s=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:o,height:a,x:i+Le(e),y:s}}(e)):Pe(t)?function(e){const t=_e(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ut(function(e){const t=Fe(e),n=De(e),r=e.ownerDocument.body,o=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let i=-n.scrollLeft+Le(e);const s=-n.scrollTop;return"rtl"===Me(r||t).direction&&(i+=Math.max(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:i,y:s}}(Fe(e)))}function mt(e,t,n){const r="clippingParents"===t?function(e){const t=We($e(e)),n=["absolute","fixed"].indexOf(Me(e).position)>=0&&Pe(e)?Ue(e):e;return je(n)?t.filter((e=>je(e)&&pt(e,n)&&"body"!==Ae(e))):[]}(e):[].concat(t),o=[...r,n],a=o[0],i=o.reduce(((t,n)=>{const r=ft(e,n);return t.top=Math.max(r.top,t.top),t.right=Math.min(r.right,t.right),t.bottom=Math.min(r.bottom,t.bottom),t.left=Math.max(r.left,t.left),t}),ft(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function ht(e){return e.split("-")[1]}function bt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gt({reference:e,element:t,placement:n}){const r=n?dt(n):null,o=n?ht(n):null,a=e.x+e.width/2-t.width/2,i=e.y+e.height/2-t.height/2;let s;switch(r){case qe:s={x:a,y:e.y-t.height};break;case Xe:s={x:a,y:e.y+e.height};break;case Ye:s={x:e.x+e.width,y:i};break;case Je:s={x:e.x-t.width,y:i};break;default:s={x:e.x,y:e.y}}const l=r?bt(r):null;if(null!=l){const n="y"===l?"height":"width";switch(o){case et:s[l]=Math.floor(s[l])-Math.floor(e[n]/2-t[n]/2);break;case tt:s[l]=Math.floor(s[l])+Math.ceil(e[n]/2-t[n]/2)}}return s}function vt(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function yt(e,t){return t.reduce(((t,n)=>(t[n]=e,t)),{})}function wt(e,t={}){const{placement:n=e.placement,boundary:r=nt,rootBoundary:o=rt,elementContext:a=ot,altBoundary:i=!1,padding:s=0}=t,l=vt("number"!=typeof s?s:yt(s,Ze)),c=a===ot?"reference":ot,d=e.elements.reference,p=e.rects.popper,u=e.elements[i?c:a],f=mt(je(u)?u:u.contextElement||Fe(e.elements.popper),r,o),m=_e(d),h=gt({reference:m,element:p,strategy:"absolute",placement:n}),b=ut(Object.assign(Object.assign({},p),h)),g=a===ot?b:m,v={top:f.top-g.top+l.top,bottom:g.bottom-f.bottom+l.bottom,left:f.left-g.left+l.left,right:g.right-f.right+l.right},y=e.modifiersData.offset;if(a===ot&&y){const e=y[n];Object.keys(v).forEach((t=>{const n=[Ye,Xe].indexOf(t)>=0?1:-1,r=[qe,Xe].indexOf(t)>=0?"y":"x";v[t]+=e[r]*n}))}return v}const xt={placement:"bottom",modifiers:[],strategy:"absolute"};function Ct(...e){return!e.some((e=>!(e&&"function"==typeof e.getBoundingClientRect)))}const Et={passive:!0};const Ot={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nt({popper:e,popperRect:t,placement:n,offsets:r,position:o,gpuAcceleration:a,adaptive:i}){let{x:s,y:l}=function({x:e,y:t}){const n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(t*n)/n||0}}(r);const c=r.hasOwnProperty("x"),d=r.hasOwnProperty("y");let p=Je,u=qe;const f=window;if(i){let r=Ue(e);r===Ie(e)&&(r=Fe(e)),n===qe&&(u=Xe,l-=r.clientHeight-t.height,l*=a?1:-1),n===Je&&(p=Ye,s-=r.clientWidth-t.width,s*=a?1:-1)}const m=Object.assign({position:o},i&&Ot);return a?Object.assign(Object.assign({},m),{[u]:d?"0":"",[p]:c?"0":"",transform:(f.devicePixelRatio||1)<2?`translate(${s}px, ${l}px)`:`translate3d(${s}px, ${l}px, 0)`}):Object.assign(Object.assign({},m),{[u]:d?`${l}px`:"",[p]:c?`${s}px`:"",transform:""})}var St={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function({state:e,options:t,name:n}){const{offset:r=[0,0]}=t,o=it.reduce(((t,n)=>(t[n]=function(e,t,n){const r=dt(e),o=[Je,qe].indexOf(r)>=0?-1:1;let[a,i]="function"==typeof n?n(Object.assign(Object.assign({},t),{placement:e})):n;return a=a||0,i=(i||0)*o,[Je,Ye].indexOf(r)>=0?{x:i,y:a}:{x:a,y:i}}(n,e.rects,r),t)),{}),{x:a,y:i}=o[e.placement];null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=i),e.modifiersData[n]=o}};const kt={left:"right",right:"left",bottom:"top",top:"bottom"};function Rt(e){return e.replace(/left|right|bottom|top/g,(e=>kt[e]))}const Tt={start:"end",end:"start"};function _t(e){return e.replace(/start|end/g,(e=>Tt[e]))}function It(e,t={}){const{placement:n,boundary:r,rootBoundary:o,padding:a,flipVariations:i,allowedAutoPlacements:s=it}=t,l=ht(n),c=l?i?at:at.filter((e=>ht(e)===l)):Ze;let d=c.filter((e=>s.indexOf(e)>=0));0===d.length&&(d=c);const p=d.reduce(((t,n)=>(t[n]=wt(e,{placement:n,boundary:r,rootBoundary:o,padding:a})[dt(n)],t)),{});return Object.keys(p).sort(((e,t)=>p[e]-p[t]))}var Dt={name:"flip",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:r=!0,altAxis:o=!0,fallbackPlacements:a,padding:i,boundary:s,rootBoundary:l,altBoundary:c,flipVariations:d=!0,allowedAutoPlacements:p}=t,u=e.options.placement,f=dt(u),m=[u,...a||(f===u||!d?[Rt(u)]:function(e){if(dt(e)===Qe)return[];const t=Rt(e);return[_t(e),t,_t(t)]}(u))].reduce(((t,n)=>t.concat(dt(n)===Qe?It(e,{placement:n,boundary:s,rootBoundary:l,padding:i,flipVariations:d,allowedAutoPlacements:p}):n)),[]),h=e.rects.reference,b=e.rects.popper,g=new Map;let v=!0,y=m[0];for(let t=0;t<m.length;t++){const n=m[t],a=dt(n),d=ht(n)===et,p=[qe,Xe].indexOf(a)>=0,u=p?"width":"height",f=wt(e,{placement:n,boundary:s,rootBoundary:l,altBoundary:c,padding:i});let w=p?d?Ye:Je:d?Xe:qe;h[u]>b[u]&&(w=Rt(w));const x=Rt(w),C=[];if(r&&C.push(f[a]<=0),o&&C.push(f[w]<=0,f[x]<=0),C.every((e=>e))){y=n,v=!1;break}g.set(n,C)}if(v){for(let e=d?3:1;e>0;e--){const t=m.find((t=>{const n=g.get(t);if(n)return n.slice(0,e).every((e=>e))}));if(t){y=t;break}}}e.placement!==y&&(e.modifiersData[n]._skip=!0,e.placement=y,e.reset=!0)},requiresIfExists:["offset"],data:{_skip:!1}};function jt(e,t,n){return Math.max(e,Math.min(t,n))}var Pt={name:"preventOverflow",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){const{mainAxis:r=!0,altAxis:o=!1,boundary:a,rootBoundary:i,altBoundary:s,padding:l,tether:c=!0,tetherOffset:d=0}=t,p=wt(e,{boundary:a,rootBoundary:i,padding:l,altBoundary:s}),u=dt(e.placement),f=ht(e.placement),m=!f,h=bt(u),b="x"===h?"y":"x",g=e.modifiersData.popperOffsets,v=e.rects.reference,y=e.rects.popper,w="function"==typeof d?d(Object.assign(Object.assign({},e.rects),{placement:e.placement})):d,x={x:0,y:0};if(g){if(r){const t="y"===h?qe:Je,n="y"===h?Xe:Ye,r="y"===h?"height":"width",o=g[h],a=g[h]+p[t],i=g[h]-p[n],s=c?-y[r]/2:0,l=f===et?v[r]:y[r],d=f===et?-y[r]:-v[r],u=e.elements.arrow,b=c&&u?ze(u):{width:0,height:0},C=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},E=C[t],O=C[n],N=jt(0,v[r],b[r]),S=m?v[r]/2-s-N-E-w:l-N-E-w,k=m?-v[r]/2+s+N+O+w:d+N+O+w,R=e.elements.arrow&&Ue(e.elements.arrow),T=R?"y"===h?R.clientTop||0:R.clientLeft||0:0,_=e.modifiersData.offset?e.modifiersData.offset[e.placement][h]:0,I=g[h]+S-_-T,D=g[h]+k-_,j=jt(c?Math.min(a,I):a,o,c?Math.max(i,D):i);g[h]=j,x[h]=j-o}if(o){const e="x"===h?qe:Je,t="x"===h?Xe:Ye,n=g[b],r=jt(n+p[e],n,n-p[t]);g[b]=r,x[b]=r-n}e.modifiersData[n]=x}},requiresIfExists:["offset"]};var At={name:"arrow",enabled:!0,phase:"main",fn:function({state:e,name:t}){const n=e.elements.arrow,r=e.modifiersData.popperOffsets,o=dt(e.placement),a=bt(o),i=[Je,Ye].indexOf(o)>=0?"height":"width";if(!n||!r)return;const s=e.modifiersData[`${t}#persistent`].padding,l=ze(n),c="y"===a?qe:Je,d="y"===a?Xe:Ye,p=e.rects.reference[i]+e.rects.reference[a]-r[a]-e.rects.popper[i],u=r[a]-e.rects.reference[a],f=Ue(n),m=f?"y"===a?f.clientHeight||0:f.clientWidth||0:0,h=p/2-u/2,b=s[c],g=m-l[i]-s[d],v=m/2-l[i]/2+h,y=jt(b,v,g),w=a;e.modifiersData[t]={[w]:y,centerOffset:y-v}},effect:function({state:e,options:t,name:n}){let{element:r="[data-popper-arrow]",padding:o=0}=t;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r),r))&&pt(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[`${n}#persistent`]={padding:vt("number"!=typeof o?o:yt(o,Ze))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ft(e,t,n={x:0,y:0}){return{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Lt(e){return[qe,Ye,Xe,Je].some((t=>e[t]>=0))}const Mt=function(e={}){const{defaultModifiers:t=[],defaultOptions:n=xt}=e;return function(e,r,o=n){let a={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},xt),n),modifiersData:{},elements:{reference:e,popper:r},attributes:{},styles:{}},i=[],s=!1;const l={state:a,setOptions(o){c(),a.options=Object.assign(Object.assign(Object.assign({},n),a.options),o),a.scrollParents={reference:je(e)?We(e):e.contextElement?We(e.contextElement):[],popper:We(r)};const s=function(e){const t=lt(e);return st.reduce(((e,n)=>e.concat(t.filter((e=>e.phase===n)))),[])}(function(e){const t=e.reduce(((e,t)=>{const n=e[t.name];return e[t.name]=n?Object.assign(Object.assign(Object.assign({},n),t),{options:Object.assign(Object.assign({},n.options),t.options),data:Object.assign(Object.assign({},n.data),t.data)}):t,e}),{});return Object.keys(t).map((e=>t[e]))}([...t,...a.options.modifiers]));return a.orderedModifiers=s.filter((e=>e.enabled)),a.orderedModifiers.forEach((({name:e,options:t={},effect:n})=>{if("function"==typeof n){const r=n({state:a,name:e,instance:l,options:t}),o=()=>{};i.push(r||o)}})),l.update()},forceUpdate(){if(s)return;const{reference:e,popper:t}=a.elements;if(Ct(e,t)){a.rects={reference:Ve(e,Ue(t),"fixed"===a.options.strategy),popper:ze(t)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((e=>a.modifiersData[e.name]=Object.assign({},e.data)));for(let e=0;e<a.orderedModifiers.length;e++){if(!0===a.reset){a.reset=!1,e=-1;continue}const{fn:t,options:n={},name:r}=a.orderedModifiers[e];"function"==typeof t&&(a=t({state:a,options:n,name:r,instance:l})||a)}}},update:ct((()=>new Promise((e=>{l.forceUpdate(),e(a)})))),destroy(){c(),s=!0}};if(!Ct(e,r))return l;function c(){i.forEach((e=>e())),i=[]}return l.setOptions(o).then((e=>{!s&&o.onFirstUpdate&&o.onFirstUpdate(e)})),l}}({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:function({state:e,instance:t,options:n}){const{scroll:r=!0,resize:o=!0}=n,a=Ie(e.elements.popper),i=[...e.scrollParents.reference,...e.scrollParents.popper];return r&&i.forEach((e=>{e.addEventListener("scroll",t.update,Et)})),o&&a.addEventListener("resize",t.update,Et),()=>{r&&i.forEach((e=>{e.removeEventListener("scroll",t.update,Et)})),o&&a.removeEventListener("resize",t.update,Et)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function({state:e,name:t}){e.modifiersData[t]=gt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:r=!0}=t,o={placement:dt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),Nt(Object.assign(Object.assign({},o),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),Nt(Object.assign(Object.assign({},o),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function({state:e}){Object.keys(e.elements).forEach((t=>{const n=e.styles[t]||{},r=e.attributes[t]||{},o=e.elements[t];Pe(o)&&Ae(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((e=>{const t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function({state:e}){const t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),()=>{Object.keys(e.elements).forEach((n=>{const r=e.elements[n],o=e.attributes[n]||{},a=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce(((e,t)=>(e[t]="",e)),{});Pe(r)&&Ae(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((e=>{r.removeAttribute(e)})))}))}},requires:["computeStyles"]},St,Dt,Pt,At,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function({state:e,name:t}){const n=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,a=wt(e,{elementContext:"reference"}),i=wt(e,{altBoundary:!0}),s=Ft(a,n),l=Ft(i,r,o),c=Lt(s),d=Lt(l);e.modifiersData[t]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),Bt=ke?o.useLayoutEffect:o.useEffect,Vt=e=>e.reduce(((e,[t,n])=>(e[t]=n,e)),{}),zt=[],$t=(e,t,n={})=>{const r=o.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||zt},[i,s]=o.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"}},attributes:{}}),l=o.useMemo((()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=Object.keys(e.elements);s({styles:Vt(t.map((t=>[t,e.styles[t]||{}]))),attributes:Vt(t.map((t=>[t,e.attributes[t]])))})},requires:["computeStyles"]})),[]),c=o.useMemo((()=>{const e={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[...a.modifiers,l,{name:"applyStyles",enabled:!1}]};return t=r.current,n=e,JSON.stringify(t)===JSON.stringify(n)?r.current||e:(r.current=e,e);var t,n}),[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,l]),d=o.useRef();return Bt((()=>{d&&d.current&&d.current.setOptions(c)}),[c]),Bt((()=>{if(null==e||null==t)return;const r=(n.createPopper||Mt)(e,t,c);return d.current=r,()=>{r.destroy(),d.current=null}}),[e,t,n.createPopper]),{state:d.current?d.current.state:null,styles:i.styles,attributes:i.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}};class Ht extends o.Component{componentDidMount(){const e=a.findDOMNode(this);this.props.onFoundRef(e)}render(){return this.props.children||null}}Ht.displayName="FindRefWrapper";const Wt={left:"right",right:"left",bottom:"top",top:"bottom"},Kt=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,Gt=({trigger:e,popper:t,popperMatchesTriggerWidth:n=!0,direction:r="down",position:i="left",placement:s,appendTo:c=(()=>document.body),zIndex:d=9999,isVisible:p=!0,positionModifiers:u,distance:f=0,onMouseEnter:m,onMouseLeave:h,onFocus:b,onBlur:g,onDocumentClick:v,onTriggerClick:y,onTriggerEnter:w,onPopperClick:x,onPopperMouseEnter:C,onPopperMouseLeave:E,onDocumentKeyDown:O,enableFlip:N=!0,flipBehavior:S="flip",reference:k,removeFindDomNode:R=!1,popperRef:T})=>{const[_,I]=o.useState(null),[D,j]=o.useState(null),[P,A]=o.useState(null),[F,L]=o.useState(!1),M=D||_,B=o.useCallback((e=>v(e,M,P)),[p,_,D,P,v]);o.useEffect((()=>{L(!0)}),[]),o.useEffect((()=>{k&&(k.current?j(k.current):"function"==typeof k&&j(k()))}),[k]),o.useEffect((()=>{T&&(T.current?A(T.current):"function"==typeof T&&A(T()))}),[p,T]);const V=(e,t,n)=>{e&&t&&t.addEventListener(n,e)},z=(e,t,n)=>{e&&t&&t.removeEventListener(n,e)};o.useEffect((()=>{V(m,M,"mouseenter"),V(h,M,"mouseleave"),V(b,M,"focus"),V(g,M,"blur"),V(y,M,"click"),V(w,M,"keydown"),V(x,P,"click"),V(C,P,"mouseenter"),V(E,P,"mouseleave"),v&&V(B,document,"click"),V(O,document,"keydown");const e=new MutationObserver((()=>{q&&q()}));return P&&e.observe(P,{attributes:!0,childList:!0,subtree:!0}),()=>{z(m,M,"mouseenter"),z(h,M,"mouseleave"),z(b,M,"focus"),z(g,M,"blur"),z(y,M,"click"),z(w,M,"keydown"),z(x,P,"click"),z(C,P,"mouseenter"),z(E,P,"mouseleave"),v&&z(B,document,"click"),z(O,document,"keydown"),e.disconnect()}}),[_,P,m,h,b,g,y,w,x,C,E,v,O,D]);const $=()=>{if(s)return s;let e="up"===r?"top":"bottom";return"center"!==i&&(e=`${e}-${"right"===i?"end":"start"}`),e},H=o.useMemo($,[r,i,s]),W=o.useMemo((()=>(e=>e.replace(/left|right|bottom|top/g,(e=>Wt[e])))($())),[r,i,s]),K=o.useMemo((()=>({name:"sameWidth",enabled:n,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>(e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`,()=>{})})),[n]),{styles:G,attributes:U,update:q}=$t(M,P,{placement:H,modifiers:[{name:"offset",options:{offset:[0,f]}},{name:"preventOverflow",enabled:!1},{name:"hide",enabled:!0},{name:"flip",enabled:H.startsWith("auto")||N,options:{fallbackPlacements:"flip"===S?[W]:S}},K]}),X=Object.assign({className:l(t.props&&t.props.className,u&&(()=>{if(U&&U.popper&&U.popper["data-popper-placement"]){const e=U.popper["data-popper-placement"];return u[e]}return u.top})()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),G.popper),{zIndex:d})},U.popper),Y=o.cloneElement(t,X);let J;return J=R?o.createElement("div",{ref:e=>A(null==e?void 0:e.firstElementChild)},Y):T?Y:o.createElement(Ht,{onFoundRef:e=>A(e)},Y),o.createElement(o.Fragment,null,!k&&e&&o.isValidElement(e)&&!R&&o.createElement(Ht,{onFoundRef:e=>I(e)},e),!k&&e&&o.isValidElement(e)&&R&&o.createElement("div",{ref:e=>I(null==e?void 0:e.firstElementChild)},e),F&&p&&a.createPortal(J,"function"==typeof c?c():c))};Gt.displayName="Popper";const Ut=(e,t,n=(e=>document.activeElement.contains(e)),r=(e=>e),o=["A","BUTTON","INPUT"],a=!1,i=!1,s=!0,l=!0)=>{const c=document.activeElement,d=e.key;let p=null;if(!a&&["ArrowUp","ArrowDown"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let o=-1;t.forEach(((e,a)=>{if(n(e)){let e=0;for(;!p&&e<t.length&&-1*e<t.length;)"ArrowUp"===d?e--:e++,o=a+e,o>=t.length&&(o=0),o<0&&(o=t.length-1),p=r(t[o])}}))}if(!i&&["ArrowLeft","ArrowRight"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let r=-1;t.forEach(((a,i)=>{if(n(a)){const n=t[i].querySelectorAll(o.join(","));if(!n.length||l){let e=c;for(;e;)if(e="ArrowLeft"===d?e.previousElementSibling:e.nextElementSibling,e&&o.includes(e.tagName)){p=e;break}}else n.forEach(((t,o)=>{if(e.target===t){r=o+("ArrowLeft"===d?-1:1),r>=n.length&&(r=0),r<0&&(r=n.length-1),p=n[r]}}))}}))}p&&(s&&(c.tabIndex=-1,p.tabIndex=0),p.focus())};class qt extends o.Component{constructor(){super(...arguments),this.keyHandler=e=>{const{isEventFromContainer:t}=this.props;if(t?!t(e):!this._isEventFromContainer(e))return;const{isActiveElement:n,getFocusableElement:r,noVerticalArrowHandling:o,noHorizontalArrowHandling:a,noEnterHandling:i,noSpaceHandling:s,updateTabIndex:l,validSiblingTags:c,additionalKeyHandler:d,createNavigableElements:p,onlyTraverseSiblings:u}=this.props;d&&d(e);const f=p();if(!f)return void console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");const m=e.key;i||"Enter"===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),s||" "===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),Ut(e,f,n,r,c,o,a,l,u)},this._isEventFromContainer=e=>{const{containerRef:t}=this.props;return t.current&&t.current.contains(e.target)}}componentDidMount(){ke&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){ke&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}qt.displayName="KeyboardHandler",qt.defaultProps={containerRef:null,createNavigableElements:()=>null,isActiveElement:e=>document.activeElement===e,getFocusableElement:e=>e,validSiblingTags:["BUTTON","A"],onlyTraverseSiblings:!0,updateTabIndex:!0,noHorizontalArrowHandling:!1,noVerticalArrowHandling:!1,noEnterHandling:!1,noSpaceHandling:!1};var Xt,Yt,Jt="pf-l-bullseye",Qt={modifiers:{"4xl":"pf-m-4xl","3xl":"pf-m-3xl","2xl":"pf-m-2xl",xl:"pf-m-xl",lg:"pf-m-lg",md:"pf-m-md",overpassFont:"pf-m-overpass-font"},title:"pf-c-title"};!function(e){e.md="md",e.lg="lg",e.xl="xl",e["2xl"]="2xl",e["3xl"]="3xl",e["4xl"]="4xl"}(Xt||(Xt={})),function(e){e.h1="2xl",e.h2="xl",e.h3="lg",e.h4="md",e.h5="md",e.h6="md"}(Yt||(Yt={}));const Zt=e=>{var{className:t="",children:n="",headingLevel:r,size:a=Yt[r],ouiaId:i,ouiaSafe:c=!0}=e,d=s(e,["className","children","headingLevel","size","ouiaId","ouiaSafe"]);const p=be(Zt.displayName,i,c);return o.createElement(r,Object.assign({},p,d,{className:l(Qt.title,a&&Qt.modifiers[a],t)}),n)};Zt.displayName="Title";var en,tn={badge:"pf-c-badge",button:"pf-c-button",buttonCount:"pf-c-button__count",buttonIcon:"pf-c-button__icon",buttonProgress:"pf-c-button__progress",modifiers:{active:"pf-m-active",block:"pf-m-block",small:"pf-m-small",primary:"pf-m-primary",displayLg:"pf-m-display-lg",secondary:"pf-m-secondary",tertiary:"pf-m-tertiary",link:"pf-m-link",unread:"pf-m-unread",inline:"pf-m-inline",danger:"pf-m-danger",warning:"pf-m-warning",control:"pf-m-control",expanded:"pf-m-expanded",plain:"pf-m-plain",disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",progress:"pf-m-progress",inProgress:"pf-m-in-progress",start:"pf-m-start",end:"pf-m-end",overpassFont:"pf-m-overpass-font"},spinner:"pf-c-spinner",themeDark:"pf-theme-dark"},nn={modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-c-spinner",spinnerClipper:"pf-c-spinner__clipper",spinnerLeadBall:"pf-c-spinner__lead-ball",spinnerPath:"pf-c-spinner__path",spinnerTailBall:"pf-c-spinner__tail-ball"};!function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}(en||(en={}));const rn=e=>{var{className:t="",size:n="xl","aria-valuetext":r="Loading...",isSVG:a=!1,diameter:i,"aria-label":c,"aria-labelledBy":d}=e,p=s(e,["className","size","aria-valuetext","isSVG","diameter","aria-label","aria-labelledBy"]);const u=a?"svg":"span";return o.createElement(u,Object.assign({className:l(nn.spinner,nn.modifiers[n],t),role:"progressbar","aria-valuetext":r},a&&{viewBox:"0 0 100 100"},i&&{style:{"--pf-c-spinner--diameter":i}},c&&{"aria-label":c},d&&{"aria-labelledBy":d},!c&&!d&&{"aria-label":"Contents"},p),a?o.createElement("circle",{className:nn.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"}):o.createElement(o.Fragment,null,o.createElement("span",{className:l(nn.spinnerClipper)}),o.createElement("span",{className:l(nn.spinnerLeadBall)}),o.createElement("span",{className:l(nn.spinnerTailBall)})))};rn.displayName="Spinner";var on="pf-c-badge",an={read:"pf-m-read",unread:"pf-m-unread"};const sn=e=>{var{isRead:t=!1,className:n="",children:r=""}=e,a=s(e,["isRead","className","children"]);return o.createElement("span",Object.assign({},a,{className:l(on,t?an.read:an.unread,n)}),r)};var ln,cn;sn.displayName="Badge",function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.danger="danger",e.warning="warning",e.link="link",e.plain="plain",e.control="control"}(ln||(ln={})),function(e){e.button="button",e.submit="submit",e.reset="reset"}(cn||(cn={}));const dn=e=>{var{children:t=null,className:n="",component:r="button",isActive:a=!1,isBlock:i=!1,isDisabled:c=!1,isAriaDisabled:d=!1,isLoading:p=null,isDanger:u=!1,spinnerAriaValueText:f,spinnerAriaLabelledBy:m,spinnerAriaLabel:h,isSmall:b=!1,isLarge:g=!1,inoperableEvents:v=["onClick","onKeyPress"],isInline:y=!1,type:w=cn.button,variant:x=ln.primary,iconPosition:C="left","aria-label":E=null,icon:O=null,ouiaId:N,ouiaSafe:S=!0,tabIndex:k=null,innerRef:R,countOptions:T}=e,_=s(e,["children","className","component","isActive","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","isSmall","isLarge","inoperableEvents","isInline","type","variant","iconPosition","aria-label","icon","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]);const I=be(pn.displayName,N,S,x),D=r,j="button"===D,P=y&&"span"===D,A=v.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:e=>{e.preventDefault()}})),{});return o.createElement(D,Object.assign({},_,d?A:null,{"aria-disabled":c||d,"aria-label":E,className:l(tn.button,tn.modifiers[x],i&&tn.modifiers.block,c&&tn.modifiers.disabled,d&&tn.modifiers.ariaDisabled,a&&tn.modifiers.active,y&&x===ln.link&&tn.modifiers.inline,u&&(x===ln.secondary||x===ln.link)&&tn.modifiers.danger,null!==p&&null!==t&&tn.modifiers.progress,p&&tn.modifiers.inProgress,b&&tn.modifiers.small,g&&tn.modifiers.displayLg,n),disabled:j?c:null,tabIndex:null!==k?k:c?j?null:-1:d?null:P?0:void 0,type:j||P?w:null,role:P?"button":null,ref:R},I),p&&o.createElement("span",{className:l(tn.buttonProgress)},o.createElement(rn,{size:en.md,"aria-valuetext":f,"aria-label":h,"aria-labelledby":m})),x===ln.plain&&null===t&&O?O:null,x!==ln.plain&&O&&"left"===C&&o.createElement("span",{className:l(tn.buttonIcon,tn.modifiers.start)},O),t,x!==ln.plain&&O&&"right"===C&&o.createElement("span",{className:l(tn.buttonIcon,tn.modifiers.end)},O),T&&o.createElement("span",{className:l(tn.buttonCount,T.className)},o.createElement(sn,{isRead:T.isRead},T.count)))},pn=o.forwardRef(((e,t)=>o.createElement(dn,Object.assign({innerRef:t},e))));var un;pn.displayName="Button",function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}(un||(un={}));let fn=0;function mn({name:e,xOffset:t=0,yOffset:n=0,width:r,height:a,svgPath:i}){var s;return s=class extends o.Component{constructor(){super(...arguments),this.id="icon-title-"+fn++}render(){const e=this.props,{size:s,color:l,title:c,noVerticalAlign:d}=e,p=
40
+ function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var te,ne=(te=[],{activateTrap:function(e){if(te.length>0){var t=te[te.length-1];t!==e&&t.pause()}var n=te.indexOf(e);-1===n||te.splice(n,1),te.push(e)},deactivateTrap:function(e){var t=te.indexOf(e);-1!==t&&te.splice(t,1),te.length>0&&te[te.length-1].unpause()}}),re=function(e){return setTimeout(e,0)},oe=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},ae=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},ie=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},se=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=Z({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},i=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},s=function(e){return a.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},l=function(e){var t=o[e];if("function"==typeof t){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];t=t.apply(void 0,a)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=t;if("string"==typeof t&&!(s=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return s},c=function(){var e=l("initialFocus");if(!1===e)return!1;if(void 0===e)if(s(r.activeElement)>=0)e=r.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||l("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(a.containerGroups=a.containers.map((function(e){var t,n,r=q(e,o.tabbableOptions),a=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?M([t],n.includeContainer,{filter:W.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):L(t,n.includeContainer,W.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:a,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=a.findIndex((function(t){return t===e}));if(!(n<0))return t?a.slice(n+1).find((function(e){return X(e,o.tabbableOptions)})):a.slice(0,n).reverse().find((function(e){return X(e,o.tabbableOptions)}))}}})),a.tabbableGroups=a.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),a.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},p=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),a.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},u=function(e){var t=l("setReturnFocus",e);return t||!1!==t&&e},f=function(e){var t=ie(e);s(t)>=0||(ae(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!J(t,o.tabbableOptions)}):ae(o.allowOutsideClick,e)||e.preventDefault())},m=function(e){var t=ie(e),n=s(t)>=0;n||t instanceof Document?n&&(a.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),p(a.mostRecentlyFocusedNode||c()))},h=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==ae(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=ie(e);d();var n=null;if(a.tabbableGroups.length>0){var r=s(t),i=r>=0?a.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=oe(a.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(i.container===t||J(t,o.tabbableOptions)&&!X(t,o.tabbableOptions)&&!i.nextTabbableNode(t,!1))&&(c=r),c>=0){var u=0===c?a.tabbableGroups.length-1:c-1;n=a.tabbableGroups[u].lastTabbableNode}}else{var f=oe(a.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(f<0&&(i.container===t||J(t,o.tabbableOptions)&&!X(t,o.tabbableOptions)&&!i.nextTabbableNode(t))&&(f=r),f>=0){var m=f===a.tabbableGroups.length-1?0:f+1;n=a.tabbableGroups[m].firstTabbableNode}}}else n=l("fallbackFocus");n&&(e.preventDefault(),p(n))}(e)},b=function(e){var t=ie(e);s(t)>=0||ae(o.clickOutsideDeactivates,e)||ae(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},g=function(){if(a.active)return ne.activateTrap(n),a.delayInitialFocusTimer=o.delayInitialFocus?re((function(){p(c())})):p(c()),r.addEventListener("focusin",m,!0),r.addEventListener("mousedown",f,{capture:!0,passive:!1}),r.addEventListener("touchstart",f,{capture:!0,passive:!1}),r.addEventListener("click",b,{capture:!0,passive:!1}),r.addEventListener("keydown",h,{capture:!0,passive:!1}),n},v=function(){if(a.active)return r.removeEventListener("focusin",m,!0),r.removeEventListener("mousedown",f,!0),r.removeEventListener("touchstart",f,!0),r.removeEventListener("click",b,!0),r.removeEventListener("keydown",h,!0),n};return(n={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=i(e,"onActivate"),n=i(e,"onPostActivate"),o=i(e,"checkCanFocusTrap");o||d(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=r.activeElement,t&&t();var s=function(){o&&d(),g(),n&&n()};return o?(o(a.containers.concat()).then(s,s),this):(s(),this)},deactivate:function(e){if(!a.active)return this;var t=Z({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,v(),a.active=!1,a.paused=!1,ne.deactivateTrap(n);var r=i(t,"onDeactivate"),s=i(t,"onPostDeactivate"),l=i(t,"checkCanReturnFocus"),c=i(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){re((function(){c&&p(u(a.nodeFocusedBeforeActivation)),s&&s()}))};return c&&l?(l(u(a.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return a.paused||!a.active||(a.paused=!0,v()),this},unpause:function(){return a.paused&&a.active?(a.paused=!1,d(),g(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return a.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),a.active&&d(),this}}).updateContainerElements(e),n};class le extends o.Component{constructor(e){super(e),this.divRef=this.props.innerRef||o.createRef(),"undefined"!=typeof document&&(this.previouslyFocusedElement=document.activeElement)}componentDidMount(){this.focusTrap=se(this.divRef.current,Object.assign(Object.assign({},this.props.focusTrapOptions),{returnFocusOnDeactivate:!1})),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()}componentDidUpdate(e){e.active&&!this.props.active?this.focusTrap.deactivate():!e.active&&this.props.active&&this.focusTrap.activate(),e.paused&&!this.props.paused?this.focusTrap.unpause():!e.paused&&this.props.paused&&this.focusTrap.pause()}componentWillUnmount(){this.focusTrap.deactivate(),!1!==this.props.focusTrapOptions.returnFocusOnDeactivate&&this.previouslyFocusedElement&&this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus({preventScroll:this.props.preventScrollOnDeactivate})}render(){const e=this.props,{children:t,className:n,focusTrapOptions:r,active:a,paused:i,preventScrollOnDeactivate:l,innerRef:c}=e,d=s(e,["children","className","focusTrapOptions","active","paused","preventScrollOnDeactivate","innerRef"]);return o.createElement("div",Object.assign({ref:this.divRef,className:n},d),t)}}le.displayName="FocusTrap",le.defaultProps={active:!0,paused:!1,focusTrapOptions:{},preventScrollOnDeactivate:!1};const ce=o.forwardRef(((e,t)=>o.createElement(le,Object.assign({innerRef:t},e))));let de=0;class pe extends o.Component{constructor(){super(...arguments),this.id=`${this.props.prefix}${de++}`}render(){return this.props.children(this.id)}}pe.displayName="GenerateId",pe.defaultProps={prefix:"pf-random-id-"};let ue=0;const fe="OUIA-Generated-",me={};function he(e,t,n=!0){return{"data-ouia-component-type":`PF4/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const be=(e,t,n=!0,r)=>({"data-ouia-component-type":`PF4/${e}`,"data-ouia-safe":n,"data-ouia-component-id":ge(e,t,r)}),ge=(e,n,r)=>{const o=t.useMemo((()=>ve(e,r)),[e,r]);return null!=n?n:o};function ve(e,t){try{let n;return n="undefined"!=typeof window?`${window.location.href}-${e}-${t||""}`:`${e}-${t||""}`,me[n]||(me[n]=0),`${fe}${e}-${t?`${t}-`:""}${++me[n]}`}catch(n){return`${fe}${e}-${t?`${t}-`:""}${++ue}`}}function ye(e="pf"){return`${e}-${(new Date).getTime()+Math.random().toString(36).slice(2)}`}function we(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout((()=>e.apply(this,r)),t)}}function xe(e,t,n,r,o,i=!1){if(!Array.isArray(o))return;const s=r.filter((e=>e))[0].constructor===Array;let l=e,c=t;if("up"===n?l=0===e?o.length-1:e-1:"down"===n?l=e===o.length-1?0:e+1:"left"===n?c=0===t?r[e].length-1:t-1:"right"===n&&(c=t===r[e].length-1?0:t+1),null===r[l]||void 0===r[l]||s&&(null===r[l][c]||void 0===r[l][c]))xe(l,c,n,r,o,i);else if(i){r[l].focus&&r[l].focus();a.findDOMNode(r[l]).focus()}else"tab"!==n&&(s?r[l][c].focus():r[l].focus())}function Ce(e,t){const n=e.current.querySelectorAll(t);return Array.prototype.filter.call(n,(function(e){return e.tabIndex>="0"}))}function Ee(e,t,n){let r;return r="up"===t?0===e?n.length-1:e-1:e===n.length-1?0:e+1,void 0===n[r]||null===n[r][0]?Ee(r,t,n):r}const Oe=(e,t,n="",r,o)=>{if(!e)return"";if(r&&!o){if(r in e)return t.modifiers[Se(`${n}${e[r]}`)];const o=["2xl","xl","lg","md","sm","default"];for(let a=o.indexOf(r);a<o.length;a++)if(o[a]in e)return t.modifiers[Se(`${n}${e[o[a]]}`)];return""}return Object.entries(e||{}).map((([e,t])=>`${n}${t}${"default"!==e?`-on-${e}`:""}${o&&"default"!==e?"-height":""}`)).map(Se).map((e=>e.replace(/-?(\dxl)/gi,((e,t)=>`_${t}`)))).map((e=>t.modifiers[e])).filter(Boolean).join(" ")},Ne=e=>e.toUpperCase().replace("-","").replace("_",""),Se=e=>e.replace(/([-_][a-z])/gi,Ne),ke=!("undefined"==typeof window||!window.document||!window.document.createElement),Re=(e,t)=>{const n=getComputedStyle(t),r=document.createElement("canvas").getContext("2d");return r.font=n.font||(()=>{let e="";const t={"50%":"ultra-condensed","62.5%":"extra-condensed","75%":"condensed","87.5%":"semi-condensed","100%":"normal","112.5%":"semi-expanded","125%":"expanded","150%":"extra-expanded","200%":"ultra-expanded"};let r;return r=n.fontStretch in t?t[n.fontStretch]:"normal",e=n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+r+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily,e})(),r.measureText(e).width},Te=(e,t)=>{const n=(e=>{const t=getComputedStyle(e);let n=e.clientWidth,r=e.clientHeight;return r-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{height:r,width:n}})(e).width;let r=t;if(Re(t,e)>n){for(;Re(`...${r}`,e)>n;)r=r.substring(1);e.value?e.value=`...${r}`:e.innerText=`...${r}`}else e.value?e.value=t:e.innerText=t};function _e(e){const t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Ie(e){if("[object Window]"!==e.toString()){const t=e.ownerDocument;return t?t.defaultView:window}return e}function De(e){const t=Ie(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function je(e){return e instanceof Ie(e).Element||e instanceof Element}function Pe(e){return e instanceof Ie(e).HTMLElement||e instanceof HTMLElement}function Ae(e){return e?(e.nodeName||"").toLowerCase():null}function Fe(e){return(je(e)?e.ownerDocument:e.document).documentElement}function Le(e){return _e(Fe(e)).left+De(e).scrollLeft}function Me(e){return Ie(e).getComputedStyle(e)}function Be(e){const{overflow:t,overflowX:n,overflowY:r}=Me(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function Ve(e,t,n=!1){const r=Fe(t),o=_e(e),a=Pe(t);let i={scrollLeft:0,scrollTop:0},s={x:0,y:0};var l,c;return(a||!a&&!n)&&(("body"!==Ae(t)||Be(r))&&(i=(l=t)!==Ie(l)&&Pe(l)?{scrollLeft:(c=l).scrollLeft,scrollTop:c.scrollTop}:De(l)),Pe(t)?(s=_e(t),s.x+=t.clientLeft,s.y+=t.clientTop):r&&(s.x=Le(r))),{x:o.left+i.scrollLeft-s.x,y:o.top+i.scrollTop-s.y,width:o.width,height:o.height}}function ze(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function $e(e){return"html"===Ae(e)?e:e.assignedSlot||e.parentNode||e.host||Fe(e)}function He(e){return["html","body","#document"].indexOf(Ae(e))>=0?e.ownerDocument.body:Pe(e)&&Be(e)?e:He($e(e))}function We(e,t=[]){const n=He(e),r="body"===Ae(n),o=Ie(n),a=r?[o].concat(o.visualViewport||[],Be(n)?n:[]):n,i=t.concat(a);return r?i:i.concat(We($e(a)))}function Ke(e){return["table","td","th"].indexOf(Ae(e))>=0}function Ge(e){if(!Pe(e)||"fixed"===Me(e).position)return null;const t=e.offsetParent;if(t){const e=Fe(t);if("body"===Ae(t)&&"static"===Me(t).position&&"static"!==Me(e).position)return e}return t}function Ue(e){const t=Ie(e);let n=Ge(e);for(;n&&Ke(n)&&"static"===Me(n).position;)n=Ge(n);return n&&"body"===Ae(n)&&"static"===Me(n).position?t:n||function(e){let t=$e(e);for(;Pe(t)&&["html","body"].indexOf(Ae(t))<0;){const e=Me(t);if("none"!==e.transform||"none"!==e.perspective||e.willChange&&"auto"!==e.willChange)return t;t=t.parentNode}return null}(e)||t}const qe="top",Xe="bottom",Ye="right",Je="left",Qe="auto",Ze=[qe,Xe,Ye,Je],et="start",tt="end",nt="clippingParents",rt="viewport",ot="popper",at=Ze.reduce(((e,t)=>e.concat([`${t}-start`,`${t}-end`])),[]),it=[...Ze,Qe].reduce(((e,t)=>e.concat([t,`${t}-start`,`${t}-end`])),[]),st=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function lt(e){const t=new Map,n=new Set,r=[];function o(e){n.add(e.name);[...e.requires||[],...e.requiresIfExists||[]].forEach((e=>{if(!n.has(e)){const n=t.get(e);n&&o(n)}})),r.push(e)}return e.forEach((e=>{t.set(e.name,e)})),e.forEach((e=>{n.has(e.name)||o(e)})),r}function ct(e){let t;return()=>(t||(t=new Promise((n=>{Promise.resolve().then((()=>{t=void 0,n(e())}))}))),t)}function dt(e){return e.split("-")[0]}function pt(e,t){const n=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){let n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ut(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ft(e,t){return t===rt?ut(function(e){const t=Ie(e),n=Fe(e),r=t.visualViewport;let o=n.clientWidth,a=n.clientHeight,i=0,s=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:o,height:a,x:i+Le(e),y:s}}(e)):Pe(t)?function(e){const t=_e(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ut(function(e){const t=Fe(e),n=De(e),r=e.ownerDocument.body,o=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let i=-n.scrollLeft+Le(e);const s=-n.scrollTop;return"rtl"===Me(r||t).direction&&(i+=Math.max(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:i,y:s}}(Fe(e)))}function mt(e,t,n){const r="clippingParents"===t?function(e){const t=We($e(e)),n=["absolute","fixed"].indexOf(Me(e).position)>=0&&Pe(e)?Ue(e):e;return je(n)?t.filter((e=>je(e)&&pt(e,n)&&"body"!==Ae(e))):[]}(e):[].concat(t),o=[...r,n],a=o[0],i=o.reduce(((t,n)=>{const r=ft(e,n);return t.top=Math.max(r.top,t.top),t.right=Math.min(r.right,t.right),t.bottom=Math.min(r.bottom,t.bottom),t.left=Math.max(r.left,t.left),t}),ft(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function ht(e){return e.split("-")[1]}function bt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gt({reference:e,element:t,placement:n}){const r=n?dt(n):null,o=n?ht(n):null,a=e.x+e.width/2-t.width/2,i=e.y+e.height/2-t.height/2;let s;switch(r){case qe:s={x:a,y:e.y-t.height};break;case Xe:s={x:a,y:e.y+e.height};break;case Ye:s={x:e.x+e.width,y:i};break;case Je:s={x:e.x-t.width,y:i};break;default:s={x:e.x,y:e.y}}const l=r?bt(r):null;if(null!=l){const n="y"===l?"height":"width";switch(o){case et:s[l]=Math.floor(s[l])-Math.floor(e[n]/2-t[n]/2);break;case tt:s[l]=Math.floor(s[l])+Math.ceil(e[n]/2-t[n]/2)}}return s}function vt(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function yt(e,t){return t.reduce(((t,n)=>(t[n]=e,t)),{})}function wt(e,t={}){const{placement:n=e.placement,boundary:r=nt,rootBoundary:o=rt,elementContext:a=ot,altBoundary:i=!1,padding:s=0}=t,l=vt("number"!=typeof s?s:yt(s,Ze)),c=a===ot?"reference":ot,d=e.elements.reference,p=e.rects.popper,u=e.elements[i?c:a],f=mt(je(u)?u:u.contextElement||Fe(e.elements.popper),r,o),m=_e(d),h=gt({reference:m,element:p,strategy:"absolute",placement:n}),b=ut(Object.assign(Object.assign({},p),h)),g=a===ot?b:m,v={top:f.top-g.top+l.top,bottom:g.bottom-f.bottom+l.bottom,left:f.left-g.left+l.left,right:g.right-f.right+l.right},y=e.modifiersData.offset;if(a===ot&&y){const e=y[n];Object.keys(v).forEach((t=>{const n=[Ye,Xe].indexOf(t)>=0?1:-1,r=[qe,Xe].indexOf(t)>=0?"y":"x";v[t]+=e[r]*n}))}return v}const xt={placement:"bottom",modifiers:[],strategy:"absolute"};function Ct(...e){return!e.some((e=>!(e&&"function"==typeof e.getBoundingClientRect)))}const Et={passive:!0};const Ot={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nt({popper:e,popperRect:t,placement:n,offsets:r,position:o,gpuAcceleration:a,adaptive:i}){let{x:s,y:l}=function({x:e,y:t}){const n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(t*n)/n||0}}(r);const c=r.hasOwnProperty("x"),d=r.hasOwnProperty("y");let p=Je,u=qe;const f=window;if(i){let r=Ue(e);r===Ie(e)&&(r=Fe(e)),n===qe&&(u=Xe,l-=r.clientHeight-t.height,l*=a?1:-1),n===Je&&(p=Ye,s-=r.clientWidth-t.width,s*=a?1:-1)}const m=Object.assign({position:o},i&&Ot);return a?Object.assign(Object.assign({},m),{[u]:d?"0":"",[p]:c?"0":"",transform:(f.devicePixelRatio||1)<2?`translate(${s}px, ${l}px)`:`translate3d(${s}px, ${l}px, 0)`}):Object.assign(Object.assign({},m),{[u]:d?`${l}px`:"",[p]:c?`${s}px`:"",transform:""})}var St={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function({state:e,options:t,name:n}){const{offset:r=[0,0]}=t,o=it.reduce(((t,n)=>(t[n]=function(e,t,n){const r=dt(e),o=[Je,qe].indexOf(r)>=0?-1:1;let[a,i]="function"==typeof n?n(Object.assign(Object.assign({},t),{placement:e})):n;return a=a||0,i=(i||0)*o,[Je,Ye].indexOf(r)>=0?{x:i,y:a}:{x:a,y:i}}(n,e.rects,r),t)),{}),{x:a,y:i}=o[e.placement];null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=i),e.modifiersData[n]=o}};const kt={left:"right",right:"left",bottom:"top",top:"bottom"};function Rt(e){return e.replace(/left|right|bottom|top/g,(e=>kt[e]))}const Tt={start:"end",end:"start"};function _t(e){return e.replace(/start|end/g,(e=>Tt[e]))}function It(e,t={}){const{placement:n,boundary:r,rootBoundary:o,padding:a,flipVariations:i,allowedAutoPlacements:s=it}=t,l=ht(n),c=l?i?at:at.filter((e=>ht(e)===l)):Ze;let d=c.filter((e=>s.indexOf(e)>=0));0===d.length&&(d=c);const p=d.reduce(((t,n)=>(t[n]=wt(e,{placement:n,boundary:r,rootBoundary:o,padding:a})[dt(n)],t)),{});return Object.keys(p).sort(((e,t)=>p[e]-p[t]))}var Dt={name:"flip",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:r=!0,altAxis:o=!0,fallbackPlacements:a,padding:i,boundary:s,rootBoundary:l,altBoundary:c,flipVariations:d=!0,allowedAutoPlacements:p}=t,u=e.options.placement,f=dt(u),m=[u,...a||(f===u||!d?[Rt(u)]:function(e){if(dt(e)===Qe)return[];const t=Rt(e);return[_t(e),t,_t(t)]}(u))].reduce(((t,n)=>t.concat(dt(n)===Qe?It(e,{placement:n,boundary:s,rootBoundary:l,padding:i,flipVariations:d,allowedAutoPlacements:p}):n)),[]),h=e.rects.reference,b=e.rects.popper,g=new Map;let v=!0,y=m[0];for(let t=0;t<m.length;t++){const n=m[t],a=dt(n),d=ht(n)===et,p=[qe,Xe].indexOf(a)>=0,u=p?"width":"height",f=wt(e,{placement:n,boundary:s,rootBoundary:l,altBoundary:c,padding:i});let w=p?d?Ye:Je:d?Xe:qe;h[u]>b[u]&&(w=Rt(w));const x=Rt(w),C=[];if(r&&C.push(f[a]<=0),o&&C.push(f[w]<=0,f[x]<=0),C.every((e=>e))){y=n,v=!1;break}g.set(n,C)}if(v){for(let e=d?3:1;e>0;e--){const t=m.find((t=>{const n=g.get(t);if(n)return n.slice(0,e).every((e=>e))}));if(t){y=t;break}}}e.placement!==y&&(e.modifiersData[n]._skip=!0,e.placement=y,e.reset=!0)},requiresIfExists:["offset"],data:{_skip:!1}};function jt(e,t,n){return Math.max(e,Math.min(t,n))}var Pt={name:"preventOverflow",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){const{mainAxis:r=!0,altAxis:o=!1,boundary:a,rootBoundary:i,altBoundary:s,padding:l,tether:c=!0,tetherOffset:d=0}=t,p=wt(e,{boundary:a,rootBoundary:i,padding:l,altBoundary:s}),u=dt(e.placement),f=ht(e.placement),m=!f,h=bt(u),b="x"===h?"y":"x",g=e.modifiersData.popperOffsets,v=e.rects.reference,y=e.rects.popper,w="function"==typeof d?d(Object.assign(Object.assign({},e.rects),{placement:e.placement})):d,x={x:0,y:0};if(g){if(r){const t="y"===h?qe:Je,n="y"===h?Xe:Ye,r="y"===h?"height":"width",o=g[h],a=g[h]+p[t],i=g[h]-p[n],s=c?-y[r]/2:0,l=f===et?v[r]:y[r],d=f===et?-y[r]:-v[r],u=e.elements.arrow,b=c&&u?ze(u):{width:0,height:0},C=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},E=C[t],O=C[n],N=jt(0,v[r],b[r]),S=m?v[r]/2-s-N-E-w:l-N-E-w,k=m?-v[r]/2+s+N+O+w:d+N+O+w,R=e.elements.arrow&&Ue(e.elements.arrow),T=R?"y"===h?R.clientTop||0:R.clientLeft||0:0,_=e.modifiersData.offset?e.modifiersData.offset[e.placement][h]:0,I=g[h]+S-_-T,D=g[h]+k-_,j=jt(c?Math.min(a,I):a,o,c?Math.max(i,D):i);g[h]=j,x[h]=j-o}if(o){const e="x"===h?qe:Je,t="x"===h?Xe:Ye,n=g[b],r=jt(n+p[e],n,n-p[t]);g[b]=r,x[b]=r-n}e.modifiersData[n]=x}},requiresIfExists:["offset"]};var At={name:"arrow",enabled:!0,phase:"main",fn:function({state:e,name:t}){const n=e.elements.arrow,r=e.modifiersData.popperOffsets,o=dt(e.placement),a=bt(o),i=[Je,Ye].indexOf(o)>=0?"height":"width";if(!n||!r)return;const s=e.modifiersData[`${t}#persistent`].padding,l=ze(n),c="y"===a?qe:Je,d="y"===a?Xe:Ye,p=e.rects.reference[i]+e.rects.reference[a]-r[a]-e.rects.popper[i],u=r[a]-e.rects.reference[a],f=Ue(n),m=f?"y"===a?f.clientHeight||0:f.clientWidth||0:0,h=p/2-u/2,b=s[c],g=m-l[i]-s[d],v=m/2-l[i]/2+h,y=jt(b,v,g),w=a;e.modifiersData[t]={[w]:y,centerOffset:y-v}},effect:function({state:e,options:t,name:n}){let{element:r="[data-popper-arrow]",padding:o=0}=t;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r),r))&&pt(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[`${n}#persistent`]={padding:vt("number"!=typeof o?o:yt(o,Ze))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ft(e,t,n={x:0,y:0}){return{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Lt(e){return[qe,Ye,Xe,Je].some((t=>e[t]>=0))}const Mt=function(e={}){const{defaultModifiers:t=[],defaultOptions:n=xt}=e;return function(e,r,o=n){let a={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},xt),n),modifiersData:{},elements:{reference:e,popper:r},attributes:{},styles:{}},i=[],s=!1;const l={state:a,setOptions(o){c(),a.options=Object.assign(Object.assign(Object.assign({},n),a.options),o),a.scrollParents={reference:je(e)?We(e):e.contextElement?We(e.contextElement):[],popper:We(r)};const s=function(e){const t=lt(e);return st.reduce(((e,n)=>e.concat(t.filter((e=>e.phase===n)))),[])}(function(e){const t=e.reduce(((e,t)=>{const n=e[t.name];return e[t.name]=n?Object.assign(Object.assign(Object.assign({},n),t),{options:Object.assign(Object.assign({},n.options),t.options),data:Object.assign(Object.assign({},n.data),t.data)}):t,e}),{});return Object.keys(t).map((e=>t[e]))}([...t,...a.options.modifiers]));return a.orderedModifiers=s.filter((e=>e.enabled)),a.orderedModifiers.forEach((({name:e,options:t={},effect:n})=>{if("function"==typeof n){const r=n({state:a,name:e,instance:l,options:t}),o=()=>{};i.push(r||o)}})),l.update()},forceUpdate(){if(s)return;const{reference:e,popper:t}=a.elements;if(Ct(e,t)){a.rects={reference:Ve(e,Ue(t),"fixed"===a.options.strategy),popper:ze(t)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((e=>a.modifiersData[e.name]=Object.assign({},e.data)));for(let e=0;e<a.orderedModifiers.length;e++){if(!0===a.reset){a.reset=!1,e=-1;continue}const{fn:t,options:n={},name:r}=a.orderedModifiers[e];"function"==typeof t&&(a=t({state:a,options:n,name:r,instance:l})||a)}}},update:ct((()=>new Promise((e=>{l.forceUpdate(),e(a)})))),destroy(){c(),s=!0}};if(!Ct(e,r))return l;function c(){i.forEach((e=>e())),i=[]}return l.setOptions(o).then((e=>{!s&&o.onFirstUpdate&&o.onFirstUpdate(e)})),l}}({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:function({state:e,instance:t,options:n}){const{scroll:r=!0,resize:o=!0}=n,a=Ie(e.elements.popper),i=[...e.scrollParents.reference,...e.scrollParents.popper];return r&&i.forEach((e=>{e.addEventListener("scroll",t.update,Et)})),o&&a.addEventListener("resize",t.update,Et),()=>{r&&i.forEach((e=>{e.removeEventListener("scroll",t.update,Et)})),o&&a.removeEventListener("resize",t.update,Et)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function({state:e,name:t}){e.modifiersData[t]=gt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:r=!0}=t,o={placement:dt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),Nt(Object.assign(Object.assign({},o),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),Nt(Object.assign(Object.assign({},o),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function({state:e}){Object.keys(e.elements).forEach((t=>{const n=e.styles[t]||{},r=e.attributes[t]||{},o=e.elements[t];Pe(o)&&Ae(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((e=>{const t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function({state:e}){const t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),()=>{Object.keys(e.elements).forEach((n=>{const r=e.elements[n],o=e.attributes[n]||{},a=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce(((e,t)=>(e[t]="",e)),{});Pe(r)&&Ae(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((e=>{r.removeAttribute(e)})))}))}},requires:["computeStyles"]},St,Dt,Pt,At,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function({state:e,name:t}){const n=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,a=wt(e,{elementContext:"reference"}),i=wt(e,{altBoundary:!0}),s=Ft(a,n),l=Ft(i,r,o),c=Lt(s),d=Lt(l);e.modifiersData[t]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),Bt=ke?o.useLayoutEffect:o.useEffect,Vt=e=>e.reduce(((e,[t,n])=>(e[t]=n,e)),{}),zt=[],$t=(e,t,n={})=>{const r=o.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||zt},[i,s]=o.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"}},attributes:{}}),l=o.useMemo((()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=Object.keys(e.elements);s({styles:Vt(t.map((t=>[t,e.styles[t]||{}]))),attributes:Vt(t.map((t=>[t,e.attributes[t]])))})},requires:["computeStyles"]})),[]),c=o.useMemo((()=>{const e={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[...a.modifiers,l,{name:"applyStyles",enabled:!1}]};return t=r.current,n=e,JSON.stringify(t)===JSON.stringify(n)?r.current||e:(r.current=e,e);var t,n}),[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,l]),d=o.useRef();return Bt((()=>{d&&d.current&&d.current.setOptions(c)}),[c]),Bt((()=>{if(null==e||null==t)return;const r=(n.createPopper||Mt)(e,t,c);return d.current=r,()=>{r.destroy(),d.current=null}}),[e,t,n.createPopper]),{state:d.current?d.current.state:null,styles:i.styles,attributes:i.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}};class Ht extends o.Component{componentDidMount(){const e=a.findDOMNode(this);this.props.onFoundRef(e)}render(){return this.props.children||null}}Ht.displayName="FindRefWrapper";const Wt={left:"right",right:"left",bottom:"top",top:"bottom"},Kt=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,Gt=({trigger:e,popper:t,popperMatchesTriggerWidth:n=!0,direction:r="down",position:i="left",placement:s,appendTo:c=(()=>document.body),zIndex:d=9999,isVisible:p=!0,positionModifiers:u,distance:f=0,onMouseEnter:m,onMouseLeave:h,onFocus:b,onBlur:g,onDocumentClick:v,onTriggerClick:y,onTriggerEnter:w,onPopperClick:x,onPopperMouseEnter:C,onPopperMouseLeave:E,onDocumentKeyDown:O,enableFlip:N=!0,flipBehavior:S="flip",reference:k,removeFindDomNode:R=!1,popperRef:T})=>{const[_,I]=o.useState(null),[D,j]=o.useState(null),[P,A]=o.useState(null),[F,L]=o.useState(!1),M=D||_,B=o.useCallback((e=>v(e,M,P)),[p,_,D,P,v]);o.useEffect((()=>{L(!0)}),[]),o.useEffect((()=>{k&&(k.current?j(k.current):"function"==typeof k&&j(k()))}),[k]),o.useEffect((()=>{T&&(T.current?A(T.current):"function"==typeof T&&A(T()))}),[p,T]);const V=(e,t,n,r=!1)=>{e&&t&&t.addEventListener(n,e,{capture:r})},z=(e,t,n,r=!1)=>{e&&t&&t.removeEventListener(n,e,{capture:r})};o.useEffect((()=>{V(m,M,"mouseenter"),V(h,M,"mouseleave"),V(b,M,"focus"),V(g,M,"blur"),V(y,M,"click"),V(w,M,"keydown"),V(x,P,"click"),V(C,P,"mouseenter"),V(E,P,"mouseleave"),v&&V(B,document,"click",!0),V(O,document,"keydown",!0);const e=new MutationObserver((()=>{q&&q()}));return P&&e.observe(P,{attributes:!0,childList:!0,subtree:!0}),()=>{z(m,M,"mouseenter"),z(h,M,"mouseleave"),z(b,M,"focus"),z(g,M,"blur"),z(y,M,"click"),z(w,M,"keydown"),z(x,P,"click"),z(C,P,"mouseenter"),z(E,P,"mouseleave"),v&&z(B,document,"click",!0),z(O,document,"keydown",!0),e.disconnect()}}),[_,P,m,h,b,g,y,w,x,C,E,v,O,D]);const $=()=>{if(s)return s;let e="up"===r?"top":"bottom";return"center"!==i&&(e=`${e}-${"right"===i?"end":"start"}`),e},H=o.useMemo($,[r,i,s]),W=o.useMemo((()=>(e=>e.replace(/left|right|bottom|top/g,(e=>Wt[e])))($())),[r,i,s]),K=o.useMemo((()=>({name:"sameWidth",enabled:n,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>(e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`,()=>{})})),[n]),{styles:G,attributes:U,update:q}=$t(M,P,{placement:H,modifiers:[{name:"offset",options:{offset:[0,f]}},{name:"preventOverflow",enabled:!1},{name:"hide",enabled:!0},{name:"flip",enabled:H.startsWith("auto")||N,options:{fallbackPlacements:"flip"===S?[W]:S}},K]}),X=Object.assign({className:l(t.props&&t.props.className,u&&(()=>{if(U&&U.popper&&U.popper["data-popper-placement"]){const e=U.popper["data-popper-placement"];return u[e]}return u.top})()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),G.popper),{zIndex:d})},U.popper),Y=o.cloneElement(t,X);let J;return J=R?o.createElement("div",{ref:e=>A(null==e?void 0:e.firstElementChild)},Y):T?Y:o.createElement(Ht,{onFoundRef:e=>A(e)},Y),o.createElement(o.Fragment,null,!k&&e&&o.isValidElement(e)&&!R&&o.createElement(Ht,{onFoundRef:e=>I(e)},e),!k&&e&&o.isValidElement(e)&&R&&o.createElement("div",{ref:e=>I(null==e?void 0:e.firstElementChild)},e),F&&p&&a.createPortal(J,"function"==typeof c?c():c))};Gt.displayName="Popper";const Ut=(e,t,n=(e=>document.activeElement.contains(e)),r=(e=>e),o=["A","BUTTON","INPUT"],a=!1,i=!1,s=!0,l=!0)=>{const c=document.activeElement,d=e.key;let p=null;if(!a&&["ArrowUp","ArrowDown"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let o=-1;t.forEach(((e,a)=>{if(n(e)){let e=0;for(;!p&&e<t.length&&-1*e<t.length;)"ArrowUp"===d?e--:e++,o=a+e,o>=t.length&&(o=0),o<0&&(o=t.length-1),p=r(t[o])}}))}if(!i&&["ArrowLeft","ArrowRight"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let r=-1;t.forEach(((a,i)=>{if(n(a)){const n=t[i].querySelectorAll(o.join(","));if(!n.length||l){let e=c;for(;e;)if(e="ArrowLeft"===d?e.previousElementSibling:e.nextElementSibling,e&&o.includes(e.tagName)){p=e;break}}else n.forEach(((t,o)=>{if(e.target===t){r=o+("ArrowLeft"===d?-1:1),r>=n.length&&(r=0),r<0&&(r=n.length-1),p=n[r]}}))}}))}p&&(s&&(c.tabIndex=-1,p.tabIndex=0),p.focus())};class qt extends o.Component{constructor(){super(...arguments),this.keyHandler=e=>{const{isEventFromContainer:t}=this.props;if(t?!t(e):!this._isEventFromContainer(e))return;const{isActiveElement:n,getFocusableElement:r,noVerticalArrowHandling:o,noHorizontalArrowHandling:a,noEnterHandling:i,noSpaceHandling:s,updateTabIndex:l,validSiblingTags:c,additionalKeyHandler:d,createNavigableElements:p,onlyTraverseSiblings:u}=this.props;d&&d(e);const f=p();if(!f)return void console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");const m=e.key;i||"Enter"===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),s||" "===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),Ut(e,f,n,r,c,o,a,l,u)},this._isEventFromContainer=e=>{const{containerRef:t}=this.props;return t.current&&t.current.contains(e.target)}}componentDidMount(){ke&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){ke&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}qt.displayName="KeyboardHandler",qt.defaultProps={containerRef:null,createNavigableElements:()=>null,isActiveElement:e=>document.activeElement===e,getFocusableElement:e=>e,validSiblingTags:["BUTTON","A"],onlyTraverseSiblings:!0,updateTabIndex:!0,noHorizontalArrowHandling:!1,noVerticalArrowHandling:!1,noEnterHandling:!1,noSpaceHandling:!1};var Xt,Yt,Jt="pf-l-bullseye",Qt={modifiers:{"4xl":"pf-m-4xl","3xl":"pf-m-3xl","2xl":"pf-m-2xl",xl:"pf-m-xl",lg:"pf-m-lg",md:"pf-m-md",overpassFont:"pf-m-overpass-font"},title:"pf-c-title"};!function(e){e.md="md",e.lg="lg",e.xl="xl",e["2xl"]="2xl",e["3xl"]="3xl",e["4xl"]="4xl"}(Xt||(Xt={})),function(e){e.h1="2xl",e.h2="xl",e.h3="lg",e.h4="md",e.h5="md",e.h6="md"}(Yt||(Yt={}));const Zt=e=>{var{className:t="",children:n="",headingLevel:r,size:a=Yt[r],ouiaId:i,ouiaSafe:c=!0}=e,d=s(e,["className","children","headingLevel","size","ouiaId","ouiaSafe"]);const p=be(Zt.displayName,i,c);return o.createElement(r,Object.assign({},p,d,{className:l(Qt.title,a&&Qt.modifiers[a],t)}),n)};Zt.displayName="Title";var en,tn={badge:"pf-c-badge",button:"pf-c-button",buttonCount:"pf-c-button__count",buttonIcon:"pf-c-button__icon",buttonProgress:"pf-c-button__progress",modifiers:{active:"pf-m-active",block:"pf-m-block",small:"pf-m-small",primary:"pf-m-primary",displayLg:"pf-m-display-lg",secondary:"pf-m-secondary",tertiary:"pf-m-tertiary",link:"pf-m-link",unread:"pf-m-unread",inline:"pf-m-inline",danger:"pf-m-danger",warning:"pf-m-warning",control:"pf-m-control",expanded:"pf-m-expanded",plain:"pf-m-plain",disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",progress:"pf-m-progress",inProgress:"pf-m-in-progress",start:"pf-m-start",end:"pf-m-end",overpassFont:"pf-m-overpass-font"},spinner:"pf-c-spinner",themeDark:"pf-theme-dark"},nn={modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-c-spinner",spinnerClipper:"pf-c-spinner__clipper",spinnerLeadBall:"pf-c-spinner__lead-ball",spinnerPath:"pf-c-spinner__path",spinnerTailBall:"pf-c-spinner__tail-ball"};!function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}(en||(en={}));const rn=e=>{var{className:t="",size:n="xl","aria-valuetext":r="Loading...",isSVG:a=!1,diameter:i,"aria-label":c,"aria-labelledBy":d}=e,p=s(e,["className","size","aria-valuetext","isSVG","diameter","aria-label","aria-labelledBy"]);const u=a?"svg":"span";return o.createElement(u,Object.assign({className:l(nn.spinner,nn.modifiers[n],t),role:"progressbar","aria-valuetext":r},a&&{viewBox:"0 0 100 100"},i&&{style:{"--pf-c-spinner--diameter":i}},c&&{"aria-label":c},d&&{"aria-labelledBy":d},!c&&!d&&{"aria-label":"Contents"},p),a?o.createElement("circle",{className:nn.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"}):o.createElement(o.Fragment,null,o.createElement("span",{className:l(nn.spinnerClipper)}),o.createElement("span",{className:l(nn.spinnerLeadBall)}),o.createElement("span",{className:l(nn.spinnerTailBall)})))};rn.displayName="Spinner";var on="pf-c-badge",an={read:"pf-m-read",unread:"pf-m-unread"};const sn=e=>{var{isRead:t=!1,className:n="",children:r=""}=e,a=s(e,["isRead","className","children"]);return o.createElement("span",Object.assign({},a,{className:l(on,t?an.read:an.unread,n)}),r)};var ln,cn;sn.displayName="Badge",function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.danger="danger",e.warning="warning",e.link="link",e.plain="plain",e.control="control"}(ln||(ln={})),function(e){e.button="button",e.submit="submit",e.reset="reset"}(cn||(cn={}));const dn=e=>{var{children:t=null,className:n="",component:r="button",isActive:a=!1,isBlock:i=!1,isDisabled:c=!1,isAriaDisabled:d=!1,isLoading:p=null,isDanger:u=!1,spinnerAriaValueText:f,spinnerAriaLabelledBy:m,spinnerAriaLabel:h,isSmall:b=!1,isLarge:g=!1,inoperableEvents:v=["onClick","onKeyPress"],isInline:y=!1,type:w=cn.button,variant:x=ln.primary,iconPosition:C="left","aria-label":E=null,icon:O=null,ouiaId:N,ouiaSafe:S=!0,tabIndex:k=null,innerRef:R,countOptions:T}=e,_=s(e,["children","className","component","isActive","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","isSmall","isLarge","inoperableEvents","isInline","type","variant","iconPosition","aria-label","icon","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]);const I=be(pn.displayName,N,S,x),D=r,j="button"===D,P=y&&"span"===D,A=v.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:e=>{e.preventDefault()}})),{});return o.createElement(D,Object.assign({},_,d?A:null,{"aria-disabled":c||d,"aria-label":E,className:l(tn.button,tn.modifiers[x],i&&tn.modifiers.block,c&&tn.modifiers.disabled,d&&tn.modifiers.ariaDisabled,a&&tn.modifiers.active,y&&x===ln.link&&tn.modifiers.inline,u&&(x===ln.secondary||x===ln.link)&&tn.modifiers.danger,null!==p&&null!==t&&tn.modifiers.progress,p&&tn.modifiers.inProgress,b&&tn.modifiers.small,g&&tn.modifiers.displayLg,n),disabled:j?c:null,tabIndex:null!==k?k:c?j?null:-1:d?null:P?0:void 0,type:j||P?w:null,role:P?"button":null,ref:R},I),p&&o.createElement("span",{className:l(tn.buttonProgress)},o.createElement(rn,{size:en.md,"aria-valuetext":f,"aria-label":h,"aria-labelledby":m})),x===ln.plain&&null===t&&O?O:null,x!==ln.plain&&O&&"left"===C&&o.createElement("span",{className:l(tn.buttonIcon,tn.modifiers.start)},O),t,x!==ln.plain&&O&&"right"===C&&o.createElement("span",{className:l(tn.buttonIcon,tn.modifiers.end)},O),T&&o.createElement("span",{className:l(tn.buttonCount,T.className)},o.createElement(sn,{isRead:T.isRead},T.count)))},pn=o.forwardRef(((e,t)=>o.createElement(dn,Object.assign({innerRef:t},e))));var un;pn.displayName="Button",function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}(un||(un={}));let fn=0;function mn({name:e,xOffset:t=0,yOffset:n=0,width:r,height:a,svgPath:i}){var s;return s=class extends o.Component{constructor(){super(...arguments),this.id="icon-title-"+fn++}render(){const e=this.props,{size:s,color:l,title:c,noVerticalAlign:d}=e,p=
41
41
  /*! *****************************************************************************
42
42
  Copyright (c) Microsoft Corporation.
43
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-table",
3
- "version": "4.110.15",
3
+ "version": "4.110.16",
4
4
  "description": "This library provides a set of React table components for use with the PatternFly 4",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -31,7 +31,7 @@
31
31
  "clean": "rimraf dist"
32
32
  },
33
33
  "dependencies": {
34
- "@patternfly/react-core": "^4.243.1",
34
+ "@patternfly/react-core": "^4.244.0",
35
35
  "@patternfly/react-icons": "^4.92.5",
36
36
  "@patternfly/react-styles": "^4.91.5",
37
37
  "@patternfly/react-tokens": "^4.93.5",
@@ -46,5 +46,5 @@
46
46
  "react": "^16.8 || ^17 || ^18",
47
47
  "react-dom": "^16.8 || ^17 || ^18"
48
48
  },
49
- "gitHead": "eb89462c9bbd1414e2da9f3b77601f965ba03bf2"
49
+ "gitHead": "38e7a38cfcbb11b376302e90c1ac9df3a3f00711"
50
50
  }