@interopio/home-ui-react 1.0.0 → 1.1.0

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.
Files changed (124) hide show
  1. package/README.md +30 -32
  2. package/common/types.d.ts +1 -1
  3. package/constants/defaults.d.ts +1 -1
  4. package/constants/storageKeys.d.ts +0 -1
  5. package/decoders/context-menu.d.ts +1 -1
  6. package/decoders/layouts.d.ts +2 -2
  7. package/executors/applicationActions.d.ts +2 -4
  8. package/executors/layoutActions.d.ts +4 -0
  9. package/executors/notificationsSort.d.ts +7 -0
  10. package/executors/types.d.ts +20 -0
  11. package/executors/workspaceActions.d.ts +2 -3
  12. package/helpers/a11y.d.ts +3 -3
  13. package/hooks/index.d.ts +5 -0
  14. package/hooks/useApplications.d.ts +2 -2
  15. package/hooks/useExecuteApplicationAction.d.ts +2 -2
  16. package/hooks/useExecuteLayoutAction.d.ts +2 -0
  17. package/hooks/useExecuteWorkspaceAction.d.ts +2 -2
  18. package/hooks/useFavoriteEntities.d.ts +2 -1
  19. package/hooks/useFrame.d.ts +2 -2
  20. package/hooks/useInvokeInteropMethod.d.ts +2 -2
  21. package/hooks/useLayouts.d.ts +2 -0
  22. package/hooks/useNotifications.d.ts +2 -0
  23. package/hooks/useNotificationsSort.d.ts +5 -0
  24. package/hooks/useRestoreLayout.d.ts +2 -0
  25. package/hooks/useRestoreWorkspace.d.ts +2 -2
  26. package/hooks/useSearch.d.ts +2 -2
  27. package/hooks/useStartApplication.d.ts +1 -1
  28. package/hooks/useStorage.d.ts +1 -1
  29. package/hooks/useWorkspaces.d.ts +1 -1
  30. package/index.css +1 -1
  31. package/index.d.ts +6 -9
  32. package/index.js +9 -9
  33. package/index.js.map +1 -1
  34. package/index.mjs +2742 -3312
  35. package/index.mjs.map +1 -1
  36. package/lib/applications-section/applications-section.d.ts +1 -2
  37. package/lib/applications-section/helpers.d.ts +5 -0
  38. package/lib/base-section/base-section-header.d.ts +1 -1
  39. package/lib/base-section/base-section-item.d.ts +4 -4
  40. package/lib/base-section/base-section.d.ts +2 -3
  41. package/lib/base-section/{base-section.helpers.d.ts → helpers.d.ts} +1 -1
  42. package/lib/base-section/{base-section.types.d.ts → types.d.ts} +1 -1
  43. package/lib/button/button.d.ts +1 -1
  44. package/lib/button-group/button-group.d.ts +2 -2
  45. package/lib/context-menu/constants.d.ts +3 -0
  46. package/lib/context-menu/context-menu.d.ts +2 -2
  47. package/lib/context-menu/dropdown-button/dropdown-button.d.ts +2 -3
  48. package/lib/context-menu/{context-menu-types.d.ts → types.d.ts} +2 -2
  49. package/lib/dialog/dialog.d.ts +8 -0
  50. package/lib/favorites-section/favorites-section.d.ts +1 -2
  51. package/lib/favorites-section/{favorites-section.helpers.d.ts → helpers.d.ts} +1 -1
  52. package/lib/icon/icon.d.ts +1 -1
  53. package/lib/icon-components/browser-notifications-icon.d.ts +1 -2
  54. package/lib/icon-components/reopen-prompt-icon.d.ts +1 -2
  55. package/lib/icon-components/warning-icon.d.ts +1 -2
  56. package/lib/icon-components/window-placement-icon.d.ts +1 -2
  57. package/lib/img-icon/img-icon.d.ts +1 -1
  58. package/lib/{glue42-home-provider/glue42-home-provider.d.ts → io-connect-home-provider/io-connect-home-provider.d.ts} +3 -3
  59. package/lib/launchpad/features/profile-settings/profile-icon.d.ts +6 -0
  60. package/lib/launchpad/launchpad.context.d.ts +6 -1
  61. package/lib/launchpad/launchpad.d.ts +1 -1
  62. package/lib/layouts-panel/available-layouts.d.ts +6 -0
  63. package/lib/layouts-panel/constants.d.ts +6 -0
  64. package/lib/layouts-panel/helpers.d.ts +4 -0
  65. package/lib/layouts-panel/layout-actions.d.ts +9 -0
  66. package/lib/layouts-panel/layouts-notification.d.ts +6 -0
  67. package/lib/layouts-panel/layouts-panel.d.ts +2 -0
  68. package/lib/layouts-panel/types.d.ts +19 -0
  69. package/lib/login/index.d.ts +3 -3
  70. package/lib/login/login-logo.d.ts +1 -1
  71. package/lib/login/reducers.d.ts +1 -1
  72. package/lib/login/types.d.ts +1 -1
  73. package/lib/logo/logo.d.ts +2 -0
  74. package/lib/notifications-panel/constants.d.ts +9 -0
  75. package/lib/notifications-panel/index.d.ts +3 -0
  76. package/lib/notifications-panel/notification.d.ts +6 -0
  77. package/lib/notifications-panel/notifications-badge.d.ts +5 -0
  78. package/lib/notifications-panel/notifications-icon.d.ts +6 -0
  79. package/lib/notifications-panel/notifications-panel.d.ts +1 -2
  80. package/lib/notifications-panel/types.d.ts +7 -0
  81. package/lib/panels/launchpad-slide-panel.d.ts +1 -1
  82. package/lib/panels/slide-panel.d.ts +1 -1
  83. package/lib/permissions-setup/permissions-card.d.ts +1 -1
  84. package/lib/permissions-setup/permissions-list.d.ts +2 -3
  85. package/lib/permissions-setup/permissions-setup-flow.d.ts +1 -2
  86. package/lib/permissions-setup/permissions-setup.d.ts +1 -1
  87. package/lib/permissions-setup/permissions-steps.d.ts +1 -2
  88. package/lib/permissions-setup/something-went-wrong.d.ts +1 -2
  89. package/lib/permissions-setup/types.d.ts +1 -1
  90. package/lib/permissions-setup/unsuccessful-setup.d.ts +1 -2
  91. package/lib/search/search-bar/search-bar.d.ts +1 -1
  92. package/lib/search/search-results-section/helpers.d.ts +3 -0
  93. package/lib/search/search-results-section/search-results-section.d.ts +1 -2
  94. package/lib/search/search-results-section/{search-results-section.types.d.ts → types.d.ts} +4 -4
  95. package/lib/section/{section.helpers.d.ts → helpers.d.ts} +1 -1
  96. package/lib/section/section.context.d.ts +1 -1
  97. package/lib/section/section.d.ts +2 -3
  98. package/lib/section/{section.types.d.ts → types.d.ts} +1 -1
  99. package/lib/settings-card/settings-card.d.ts +1 -2
  100. package/lib/workspaces-section/{workspaces-section.helpers.d.ts → helpers.d.ts} +2 -2
  101. package/lib/workspaces-section/workspaces-section.d.ts +1 -2
  102. package/package.json +6 -6
  103. package/constants/contextMenuActions.d.ts +0 -15
  104. package/lib/applications-section/applications-section.helpers.d.ts +0 -5
  105. package/lib/launchpad/features/profile-settings/user-profile-modal.d.ts +0 -10
  106. package/lib/layout-settings/constants.d.ts +0 -2
  107. package/lib/layout-settings/index.d.ts +0 -2
  108. package/lib/layout-settings/layout-actions.d.ts +0 -8
  109. package/lib/layout-settings/layout-item.d.ts +0 -9
  110. package/lib/layout-settings/layout-notification.d.ts +0 -7
  111. package/lib/layout-settings/layout-settings-container.d.ts +0 -3
  112. package/lib/layout-settings/layout-settings.d.ts +0 -12
  113. package/lib/layout-settings/layout-startup.d.ts +0 -2
  114. package/lib/layout-settings/layout-types.d.ts +0 -30
  115. package/lib/modal/modal.d.ts +0 -9
  116. package/lib/notifications-panel/notification-toast.d.ts +0 -17
  117. package/lib/notifications-panel/notifications-modal.d.ts +0 -4
  118. package/lib/notifications-panel/useNotificationsSort.d.ts +0 -13
  119. package/lib/search/search-results-section/search-results-section.helpers.d.ts +0 -3
  120. /package/assets/{glue-logo.json → io-connect-browser-logo.json} +0 -0
  121. /package/lib/{glue42-home-provider → io-connect-home-provider}/constants.d.ts +0 -0
  122. /package/lib/{glue42-home-provider → io-connect-home-provider}/helpers.d.ts +0 -0
  123. /package/lib/{glue42-home-provider → io-connect-home-provider}/types.d.ts +0 -0
  124. /package/lib/workspaces-section/{workspaces-section.types.d.ts → types.d.ts} +0 -0
package/index.js CHANGED
@@ -1,12 +1,12 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),y=require("react"),et=require("react-dom"),ce=require("@glue42/react-hooks"),Jo=require("@glue42/workspaces-ui-react");function Zr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Fe=Zr(y),Qo=Zr(et);var cr=function(t){return t.reduce(function(n,r){var o=r[0],i=r[1];return n[o]=i,n},{})},lr=typeof window<"u"&&window.document&&window.document.createElement?Fe.useLayoutEffect:Fe.useEffect,pe="top",be="bottom",xe="right",he="left",qt="auto",St=[pe,be,xe,he],ot="start",Et="end",ei="clippingParents",qr="viewport",pt="popper",ti="reference",ur=St.reduce(function(e,t){return e.concat([t+"-"+ot,t+"-"+Et])},[]),zr=[].concat(St,[qt]).reduce(function(e,t){return e.concat([t,t+"-"+ot,t+"-"+Et])},[]),ni="beforeRead",ri="read",oi="afterRead",ii="beforeMain",ai="main",si="afterMain",ci="beforeWrite",li="write",ui="afterWrite",vn=[ni,ri,oi,ii,ai,si,ci,li,ui];function Pe(e){return e?(e.nodeName||"").toLowerCase():null}function we(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ze(e){var t=we(e).Element;return e instanceof t||e instanceof Element}function me(e){var t=we(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Hn(e){if(typeof ShadowRoot>"u")return!1;var t=we(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function fi(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!me(i)||!Pe(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var c=o[s];c===!1?i.removeAttribute(s):i.setAttribute(s,c===!0?"":c)}))})}function di(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=s.reduce(function(l,p){return l[p]="",l},{});!me(o)||!Pe(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const pi={name:"applyStyles",enabled:!0,phase:"write",fn:fi,effect:di,requires:["computeStyles"]};function Ee(e){return e.split("-")[0]}var qe=Math.max,Lt=Math.min,it=Math.round;function mn(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Yr(){return!/^((?!chrome|android).)*safari/i.test(mn())}function at(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&me(e)&&(o=e.offsetWidth>0&&it(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&it(r.height)/e.offsetHeight||1);var s=ze(e)?we(e):window,c=s.visualViewport,l=!Yr()&&n,p=(r.left+(l&&c?c.offsetLeft:0))/o,u=(r.top+(l&&c?c.offsetTop:0))/i,g=r.width/o,f=r.height/i;return{width:g,height:f,top:u,right:p+g,bottom:u+f,left:p,x:p,y:u}}function Bn(e){var t=at(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Kr(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Hn(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ce(e){return we(e).getComputedStyle(e)}function hi(e){return["table","td","th"].indexOf(Pe(e))>=0}function He(e){return((ze(e)?e.ownerDocument:e.document)||window.document).documentElement}function zt(e){return Pe(e)==="html"?e:e.assignedSlot||e.parentNode||(Hn(e)?e.host:null)||He(e)}function fr(e){return!me(e)||Ce(e).position==="fixed"?null:e.offsetParent}function vi(e){var t=/firefox/i.test(mn()),n=/Trident/i.test(mn());if(n&&me(e)){var r=Ce(e);if(r.position==="fixed")return null}var o=zt(e);for(Hn(o)&&(o=o.host);me(o)&&["html","body"].indexOf(Pe(o))<0;){var i=Ce(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Pt(e){for(var t=we(e),n=fr(e);n&&hi(n)&&Ce(n).position==="static";)n=fr(n);return n&&(Pe(n)==="html"||Pe(n)==="body"&&Ce(n).position==="static")?t:n||vi(e)||t}function Vn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yt(e,t,n){return qe(e,Lt(t,n))}function mi(e,t,n){var r=yt(e,t,n);return r>n?n:r}function Xr(){return{top:0,right:0,bottom:0,left:0}}function Jr(e){return Object.assign({},Xr(),e)}function Qr(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var gi=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Jr(typeof t!="number"?t:Qr(t,St))};function yi(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,c=Ee(n.placement),l=Vn(c),p=[he,xe].indexOf(c)>=0,u=p?"height":"width";if(!(!i||!s)){var g=gi(o.padding,n),f=Bn(i),h=l==="y"?pe:he,v=l==="y"?be:xe,d=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],m=s[l]-n.rects.reference[l],O=Pt(i),j=O?l==="y"?O.clientHeight||0:O.clientWidth||0:0,E=d/2-m/2,w=g[h],b=j-f[u]-g[v],k=j/2-f[u]/2+E,F=yt(w,k,b),W=l;n.modifiersData[r]=(t={},t[W]=F,t.centerOffset=F-k,t)}}function bi(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;if(o!=null&&!(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(me(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!Kr(t.elements.popper,o)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=o}}const xi={name:"arrow",enabled:!0,phase:"main",fn:yi,effect:bi,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function st(e){return e.split("-")[1]}var wi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ei(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:it(t*o)/o||0,y:it(n*o)/o||0}}function dr(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,c=e.position,l=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,g=e.isFixed,f=s.x,h=f===void 0?0:f,v=s.y,d=v===void 0?0:v,m=typeof u=="function"?u({x:h,y:d}):{x:h,y:d};h=m.x,d=m.y;var O=s.hasOwnProperty("x"),j=s.hasOwnProperty("y"),E=he,w=pe,b=window;if(p){var k=Pt(n),F="clientHeight",W="clientWidth";if(k===we(n)&&(k=He(n),Ce(k).position!=="static"&&c==="absolute"&&(F="scrollHeight",W="scrollWidth")),k=k,o===pe||(o===he||o===xe)&&i===Et){w=be;var Y=g&&k===b&&b.visualViewport?b.visualViewport.height:k[F];d-=Y-r.height,d*=l?1:-1}if(o===he||(o===pe||o===be)&&i===Et){E=xe;var G=g&&k===b&&b.visualViewport?b.visualViewport.width:k[W];h-=G-r.width,h*=l?1:-1}}var V=Object.assign({position:c},p&&wi),te=u===!0?Ei({x:h,y:d}):{x:h,y:d};if(h=te.x,d=te.y,l){var J;return Object.assign({},V,(J={},J[w]=j?"0":"",J[E]=O?"0":"",J.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+d+"px)":"translate3d("+h+"px, "+d+"px, 0)",J))}return Object.assign({},V,(t={},t[w]=j?d+"px":"",t[E]=O?h+"px":"",t.transform="",t))}function Ci(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,c=n.roundOffsets,l=c===void 0?!0:c;if(process.env.NODE_ENV!=="production"){var p=Ce(t.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(g){return p.indexOf(g)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),y=require("react"),lt=require("react-dom"),ne=require("@interopio/react-hooks"),Rr=require("@interopio/workspaces-ui-react");function Ir(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Me=Ir(y),Lo=Ir(lt);var Gn=function(t){return t.reduce(function(n,r){var o=r[0],i=r[1];return n[o]=i,n},{})},Yn=typeof window<"u"&&window.document&&window.document.createElement?Me.useLayoutEffect:Me.useEffect,de="top",ye="bottom",be="right",pe="left",Lt="auto",gt=[de,ye,be,pe],Xe="start",mt="end",Fo="clippingParents",Mr="viewport",st="popper",$o="reference",Kn=gt.reduce(function(e,t){return e.concat([t+"-"+Xe,t+"-"+mt])},[]),Dr=[].concat(gt,[Lt]).reduce(function(e,t){return e.concat([t,t+"-"+Xe,t+"-"+mt])},[]),Bo="beforeRead",Ho="read",Vo="afterRead",Uo="beforeMain",Wo="main",Zo="afterMain",qo="beforeWrite",zo="write",Go="afterWrite",tn=[Bo,Ho,Vo,Uo,Wo,Zo,qo,zo,Go];function Se(e){return e?(e.nodeName||"").toLowerCase():null}function xe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ue(e){var t=xe(e).Element;return e instanceof t||e instanceof Element}function me(e){var t=xe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Pn(e){if(typeof ShadowRoot>"u")return!1;var t=xe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Yo(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!me(i)||!Se(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var c=o[a];c===!1?i.removeAttribute(a):i.setAttribute(a,c===!0?"":c)}))})}function Ko(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=a.reduce(function(l,f){return l[f]="",l},{});!me(o)||!Se(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Xo={name:"applyStyles",enabled:!0,phase:"write",fn:Yo,effect:Ko,requires:["computeStyles"]};function we(e){return e.split("-")[0]}var Ve=Math.max,kt=Math.min,Je=Math.round;function nn(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Lr(){return!/^((?!chrome|android).)*safari/i.test(nn())}function Qe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&me(e)&&(o=e.offsetWidth>0&&Je(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Je(r.height)/e.offsetHeight||1);var a=Ue(e)?xe(e):window,c=a.visualViewport,l=!Lr()&&n,f=(r.left+(l&&c?c.offsetLeft:0))/o,p=(r.top+(l&&c?c.offsetTop:0))/i,g=r.width/o,u=r.height/i;return{width:g,height:u,top:p,right:f+g,bottom:p+u,left:f,x:f,y:p}}function kn(e){var t=Qe(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Fr(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Pn(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ce(e){return xe(e).getComputedStyle(e)}function Jo(e){return["table","td","th"].indexOf(Se(e))>=0}function De(e){return((Ue(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ft(e){return Se(e)==="html"?e:e.assignedSlot||e.parentNode||(Pn(e)?e.host:null)||De(e)}function Xn(e){return!me(e)||Ce(e).position==="fixed"?null:e.offsetParent}function Qo(e){var t=/firefox/i.test(nn()),n=/Trident/i.test(nn());if(n&&me(e)){var r=Ce(e);if(r.position==="fixed")return null}var o=Ft(e);for(Pn(o)&&(o=o.host);me(o)&&["html","body"].indexOf(Se(o))<0;){var i=Ce(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function yt(e){for(var t=xe(e),n=Xn(e);n&&Jo(n)&&Ce(n).position==="static";)n=Xn(n);return n&&(Se(n)==="html"||Se(n)==="body"&&Ce(n).position==="static")?t:n||Qo(e)||t}function Tn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function dt(e,t,n){return Ve(e,kt(t,n))}function ei(e,t,n){var r=dt(e,t,n);return r>n?n:r}function $r(){return{top:0,right:0,bottom:0,left:0}}function Br(e){return Object.assign({},$r(),e)}function Hr(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ti=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Br(typeof t!="number"?t:Hr(t,gt))};function ni(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=we(n.placement),l=Tn(c),f=[pe,be].indexOf(c)>=0,p=f?"height":"width";if(!(!i||!a)){var g=ti(o.padding,n),u=kn(i),h=l==="y"?de:pe,m=l==="y"?ye:be,d=n.rects.reference[p]+n.rects.reference[l]-a[l]-n.rects.popper[p],v=a[l]-n.rects.reference[l],E=yt(i),P=E?l==="y"?E.clientHeight||0:E.clientWidth||0:0,O=d/2-v/2,w=g[h],x=P-u[p]-g[m],k=P/2-u[p]/2+O,V=dt(w,k,x),X=l;n.modifiersData[r]=(t={},t[X]=V,t.centerOffset=V-k,t)}}function ri(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;if(o!=null&&!(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(me(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!Fr(t.elements.popper,o)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=o}}const oi={name:"arrow",enabled:!0,phase:"main",fn:ni,effect:ri,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function et(e){return e.split("-")[1]}var ii={top:"auto",right:"auto",bottom:"auto",left:"auto"};function si(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Je(t*o)/o||0,y:Je(n*o)/o||0}}function Jn(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,c=e.position,l=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,g=e.isFixed,u=a.x,h=u===void 0?0:u,m=a.y,d=m===void 0?0:m,v=typeof p=="function"?p({x:h,y:d}):{x:h,y:d};h=v.x,d=v.y;var E=a.hasOwnProperty("x"),P=a.hasOwnProperty("y"),O=pe,w=de,x=window;if(f){var k=yt(n),V="clientHeight",X="clientWidth";if(k===xe(n)&&(k=De(n),Ce(k).position!=="static"&&c==="absolute"&&(V="scrollHeight",X="scrollWidth")),k=k,o===de||(o===pe||o===be)&&i===mt){w=ye;var G=g&&k===x&&x.visualViewport?x.visualViewport.height:k[V];d-=G-r.height,d*=l?1:-1}if(o===pe||(o===de||o===ye)&&i===mt){O=be;var W=g&&k===x&&x.visualViewport?x.visualViewport.width:k[X];h-=W-r.width,h*=l?1:-1}}var H=Object.assign({position:c},f&&ii),te=p===!0?si({x:h,y:d}):{x:h,y:d};if(h=te.x,d=te.y,l){var Q;return Object.assign({},H,(Q={},Q[w]=P?"0":"",Q[O]=E?"0":"",Q.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+d+"px)":"translate3d("+h+"px, "+d+"px, 0)",Q))}return Object.assign({},H,(t={},t[w]=P?d+"px":"",t[O]=E?h+"px":"",t.transform="",t))}function ai(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,c=n.roundOffsets,l=c===void 0?!0:c;if(process.env.NODE_ENV!=="production"){var f=Ce(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some(function(g){return f.indexOf(g)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
2
2
 
3
3
  `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
4
4
 
5
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var u={placement:Ee(t.placement),variation:st(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,dr(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,dr(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Oi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ci,data:{}};var Tt={passive:!0};function ji(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,c=s===void 0?!0:s,l=we(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&p.forEach(function(u){u.addEventListener("scroll",n.update,Tt)}),c&&l.addEventListener("resize",n.update,Tt),function(){i&&p.forEach(function(u){u.removeEventListener("scroll",n.update,Tt)}),c&&l.removeEventListener("resize",n.update,Tt)}}const Si={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ji,data:{}};var Pi={left:"right",right:"left",bottom:"top",top:"bottom"};function It(e){return e.replace(/left|right|bottom|top/g,function(t){return Pi[t]})}var ki={start:"end",end:"start"};function pr(e){return e.replace(/start|end/g,function(t){return ki[t]})}function Un(e){var t=we(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Wn(e){return at(He(e)).left+Un(e).scrollLeft}function _i(e,t){var n=we(e),r=He(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,c=0,l=0;if(o){i=o.width,s=o.height;var p=Yr();(p||!p&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:c+Wn(e),y:l}}function Ni(e){var t,n=He(e),r=Un(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=qe(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=qe(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+Wn(e),l=-r.scrollTop;return Ce(o||n).direction==="rtl"&&(c+=qe(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:c,y:l}}function Gn(e){var t=Ce(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function eo(e){return["html","body","#document"].indexOf(Pe(e))>=0?e.ownerDocument.body:me(e)&&Gn(e)?e:eo(zt(e))}function bt(e,t){var n;t===void 0&&(t=[]);var r=eo(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=we(r),s=o?[i].concat(i.visualViewport||[],Gn(r)?r:[]):r,c=t.concat(s);return o?c:c.concat(bt(zt(s)))}function gn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ti(e,t){var n=at(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function hr(e,t,n){return t===qr?gn(_i(e,n)):ze(t)?Ti(t,n):gn(Ni(He(e)))}function Ai(e){var t=bt(zt(e)),n=["absolute","fixed"].indexOf(Ce(e).position)>=0,r=n&&me(e)?Pt(e):e;return ze(r)?t.filter(function(o){return ze(o)&&Kr(o,r)&&Pe(o)!=="body"}):[]}function Ri(e,t,n,r){var o=t==="clippingParents"?Ai(e):[].concat(t),i=[].concat(o,[n]),s=i[0],c=i.reduce(function(l,p){var u=hr(e,p,r);return l.top=qe(u.top,l.top),l.right=Lt(u.right,l.right),l.bottom=Lt(u.bottom,l.bottom),l.left=qe(u.left,l.left),l},hr(e,s,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function to(e){var t=e.reference,n=e.element,r=e.placement,o=r?Ee(r):null,i=r?st(r):null,s=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,l;switch(o){case pe:l={x:s,y:t.y-n.height};break;case be:l={x:s,y:t.y+t.height};break;case xe:l={x:t.x+t.width,y:c};break;case he:l={x:t.x-n.width,y:c};break;default:l={x:t.x,y:t.y}}var p=o?Vn(o):null;if(p!=null){var u=p==="y"?"height":"width";switch(i){case ot:l[p]=l[p]-(t[u]/2-n[u]/2);break;case Et:l[p]=l[p]+(t[u]/2-n[u]/2);break}}return l}function Ct(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,c=n.boundary,l=c===void 0?ei:c,p=n.rootBoundary,u=p===void 0?qr:p,g=n.elementContext,f=g===void 0?pt:g,h=n.altBoundary,v=h===void 0?!1:h,d=n.padding,m=d===void 0?0:d,O=Jr(typeof m!="number"?m:Qr(m,St)),j=f===pt?ti:pt,E=e.rects.popper,w=e.elements[v?j:f],b=Ri(ze(w)?w:w.contextElement||He(e.elements.popper),l,u,s),k=at(e.elements.reference),F=to({reference:k,element:E,strategy:"absolute",placement:o}),W=gn(Object.assign({},E,F)),Y=f===pt?W:k,G={top:b.top-Y.top+O.top,bottom:Y.bottom-b.bottom+O.bottom,left:b.left-Y.left+O.left,right:Y.right-b.right+O.right},V=e.modifiersData.offset;if(f===pt&&V){var te=V[o];Object.keys(G).forEach(function(J){var re=[xe,be].indexOf(J)>=0?1:-1,ve=[pe,be].indexOf(J)>=0?"y":"x";G[J]+=te[ve]*re})}return G}function Mi(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,c=n.flipVariations,l=n.allowedAutoPlacements,p=l===void 0?zr:l,u=st(r),g=u?c?ur:ur.filter(function(v){return st(v)===u}):St,f=g.filter(function(v){return p.indexOf(v)>=0});f.length===0&&(f=g,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var h=f.reduce(function(v,d){return v[d]=Ct(e,{placement:d,boundary:o,rootBoundary:i,padding:s})[Ee(d)],v},{});return Object.keys(h).sort(function(v,d){return h[v]-h[d]})}function Ii(e){if(Ee(e)===qt)return[];var t=It(e);return[pr(e),t,pr(t)]}function Di(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,c=s===void 0?!0:s,l=n.fallbackPlacements,p=n.padding,u=n.boundary,g=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,d=n.allowedAutoPlacements,m=t.options.placement,O=Ee(m),j=O===m,E=l||(j||!v?[It(m)]:Ii(m)),w=[m].concat(E).reduce(function(_,A){return _.concat(Ee(A)===qt?Mi(t,{placement:A,boundary:u,rootBoundary:g,padding:p,flipVariations:v,allowedAutoPlacements:d}):A)},[]),b=t.rects.reference,k=t.rects.popper,F=new Map,W=!0,Y=w[0],G=0;G<w.length;G++){var V=w[G],te=Ee(V),J=st(V)===ot,re=[pe,be].indexOf(te)>=0,ve=re?"width":"height",K=Ct(t,{placement:V,boundary:u,rootBoundary:g,altBoundary:f,padding:p}),ee=re?J?xe:he:J?be:pe;b[ve]>k[ve]&&(ee=It(ee));var ge=It(ee),ue=[];if(i&&ue.push(K[te]<=0),c&&ue.push(K[ee]<=0,K[ge]<=0),ue.every(function(_){return _})){Y=V,W=!1;break}F.set(V,ue)}if(W)for(var C=v?3:1,P=function(A){var N=w.find(function(M){var L=F.get(M);if(L)return L.slice(0,A).every(function(B){return B})});if(N)return Y=N,"break"},T=C;T>0;T--){var R=P(T);if(R==="break")break}t.placement!==Y&&(t.modifiersData[r]._skip=!0,t.placement=Y,t.reset=!0)}}const Li={name:"flip",enabled:!0,phase:"main",fn:Di,requiresIfExists:["offset"],data:{_skip:!1}};function vr(e,t,n){return n===void 0&&(n={x:0,y:0}),{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 mr(e){return[pe,xe,be,he].some(function(t){return e[t]>=0})}function Fi(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Ct(t,{elementContext:"reference"}),c=Ct(t,{altBoundary:!0}),l=vr(s,r),p=vr(c,o,i),u=mr(l),g=mr(p);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":g})}const $i={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Fi};function Hi(e,t,n){var r=Ee(e),o=[he,pe].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],c=i[1];return s=s||0,c=(c||0)*o,[he,xe].indexOf(r)>=0?{x:c,y:s}:{x:s,y:c}}function Bi(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=zr.reduce(function(u,g){return u[g]=Hi(g,t.rects,i),u},{}),c=s[t.placement],l=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=s}const Vi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Bi};function Ui(e){var t=e.state,n=e.name;t.modifiersData[n]=to({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Wi={name:"popperOffsets",enabled:!0,phase:"read",fn:Ui,data:{}};function Gi(e){return e==="x"?"y":"x"}function Zi(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,c=s===void 0?!1:s,l=n.boundary,p=n.rootBoundary,u=n.altBoundary,g=n.padding,f=n.tether,h=f===void 0?!0:f,v=n.tetherOffset,d=v===void 0?0:v,m=Ct(t,{boundary:l,rootBoundary:p,padding:g,altBoundary:u}),O=Ee(t.placement),j=st(t.placement),E=!j,w=Vn(O),b=Gi(w),k=t.modifiersData.popperOffsets,F=t.rects.reference,W=t.rects.popper,Y=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,G=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,te={x:0,y:0};if(k){if(i){var J,re=w==="y"?pe:he,ve=w==="y"?be:xe,K=w==="y"?"height":"width",ee=k[w],ge=ee+m[re],ue=ee-m[ve],C=h?-W[K]/2:0,P=j===ot?F[K]:W[K],T=j===ot?-W[K]:-F[K],R=t.elements.arrow,_=h&&R?Bn(R):{width:0,height:0},A=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Xr(),N=A[re],M=A[ve],L=yt(0,F[K],_[K]),B=E?F[K]/2-C-L-N-G.mainAxis:P-L-N-G.mainAxis,H=E?-F[K]/2+C+L+M+G.mainAxis:T+L+M+G.mainAxis,ne=t.elements.arrow&&Pt(t.elements.arrow),S=ne?w==="y"?ne.clientTop||0:ne.clientLeft||0:0,le=(J=V?.[w])!=null?J:0,ye=ee+B-le-S,Ye=ee+H-le,Ke=yt(h?Lt(ge,ye):ge,ee,h?qe(ue,Ye):ue);k[w]=Ke,te[w]=Ke-ee}if(c){var Me,dt=w==="x"?pe:he,rn=w==="x"?be:xe,Oe=k[b],Be=b==="y"?"height":"width",de=Oe+m[dt],ke=Oe-m[rn],Ie=[pe,he].indexOf(O)!==-1,$=(Me=V?.[b])!=null?Me:0,U=Ie?de:Oe-F[Be]-W[Be]-$+G.altAxis,I=Ie?Oe+F[Be]+W[Be]-$-G.altAxis:ke,X=h&&Ie?mi(U,Oe,I):yt(h?U:de,Oe,h?I:ke);k[b]=X,te[b]=X-Oe}t.modifiersData[r]=te}}const qi={name:"preventOverflow",enabled:!0,phase:"main",fn:Zi,requiresIfExists:["offset"]};function zi(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Yi(e){return e===we(e)||!me(e)?Un(e):zi(e)}function Ki(e){var t=e.getBoundingClientRect(),n=it(t.width)/e.offsetWidth||1,r=it(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Xi(e,t,n){n===void 0&&(n=!1);var r=me(t),o=me(t)&&Ki(t),i=He(t),s=at(e,o,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Pe(t)!=="body"||Gn(i))&&(c=Yi(t)),me(t)?(l=at(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Wn(i))),{x:s.left+c.scrollLeft-l.x,y:s.top+c.scrollTop-l.y,width:s.width,height:s.height}}function Ji(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(c){if(!n.has(c)){var l=t.get(c);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Qi(e){var t=Ji(e);return vn.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function ea(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Le(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[].concat(n).reduce(function(o,i){return o.replace(/%s/,i)},e)}var Ve='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',ta='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',gr=["name","enabled","phase","fn","effect","requires","options"];function na(e){e.forEach(function(t){[].concat(Object.keys(t),gr).filter(function(n,r,o){return o.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Le(Ve,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Le(Ve,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":vn.indexOf(t.phase)<0&&console.error(Le(Ve,t.name,'"phase"',"either "+vn.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Le(Ve,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Le(Ve,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Le(Ve,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Le(Ve,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+gr.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(r){e.find(function(o){return o.name===r})==null&&console.error(Le(ta,String(t.name),r,r))})})})}function ra(e,t){var n=new Set;return e.filter(function(r){var o=t(r);if(!n.has(o))return n.add(o),!0})}function oa(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var yr="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",ia="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",br={placement:"bottom",modifiers:[],strategy:"absolute"};function xr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function aa(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?br:o;return function(c,l,p){p===void 0&&(p=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},br,i),modifiersData:{},elements:{reference:c,popper:l},attributes:{},styles:{}},g=[],f=!1,h={state:u,setOptions:function(O){var j=typeof O=="function"?O(u.options):O;d(),u.options=Object.assign({},i,u.options,j),u.scrollParents={reference:ze(c)?bt(c):c.contextElement?bt(c.contextElement):[],popper:bt(l)};var E=Qi(oa([].concat(r,u.options.modifiers)));if(u.orderedModifiers=E.filter(function(V){return V.enabled}),process.env.NODE_ENV!=="production"){var w=ra([].concat(E,u.options.modifiers),function(V){var te=V.name;return te});if(na(w),Ee(u.options.placement)===qt){var b=u.orderedModifiers.find(function(V){var te=V.name;return te==="flip"});b||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var k=Ce(l),F=k.marginTop,W=k.marginRight,Y=k.marginBottom,G=k.marginLeft;[F,W,Y,G].some(function(V){return parseFloat(V)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return v(),h.update()},forceUpdate:function(){if(!f){var O=u.elements,j=O.reference,E=O.popper;if(!xr(j,E)){process.env.NODE_ENV!=="production"&&console.error(yr);return}u.rects={reference:Xi(j,Pt(E),u.options.strategy==="fixed"),popper:Bn(E)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(V){return u.modifiersData[V.name]=Object.assign({},V.data)});for(var w=0,b=0;b<u.orderedModifiers.length;b++){if(process.env.NODE_ENV!=="production"&&(w+=1,w>100)){console.error(ia);break}if(u.reset===!0){u.reset=!1,b=-1;continue}var k=u.orderedModifiers[b],F=k.fn,W=k.options,Y=W===void 0?{}:W,G=k.name;typeof F=="function"&&(u=F({state:u,options:Y,name:G,instance:h})||u)}}},update:ea(function(){return new Promise(function(m){h.forceUpdate(),m(u)})}),destroy:function(){d(),f=!0}};if(!xr(c,l))return process.env.NODE_ENV!=="production"&&console.error(yr),h;h.setOptions(p).then(function(m){!f&&p.onFirstUpdate&&p.onFirstUpdate(m)});function v(){u.orderedModifiers.forEach(function(m){var O=m.name,j=m.options,E=j===void 0?{}:j,w=m.effect;if(typeof w=="function"){var b=w({state:u,name:O,instance:h,options:E}),k=function(){};g.push(b||k)}})}function d(){g.forEach(function(m){return m()}),g=[]}return h}}var sa=[Si,Wi,Oi,pi,Vi,Li,qi,xi,$i],ca=aa({defaultModifiers:sa}),la=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ua=typeof Element<"u",fa=typeof Map=="function",da=typeof Set=="function",pa=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Dt(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Dt(e[r],t[r]))return!1;return!0}var i;if(fa&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Dt(r.value[1],t.get(r.value[0])))return!1;return!0}if(da&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(pa&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(ua&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Dt(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var ha=function(t,n){try{return Dt(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},va=[],ma=function(t,n,r){r===void 0&&(r={});var o=Fe.useRef(null),i={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||va},s=Fe.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=s[0],l=s[1],p=Fe.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var v=h.state,d=Object.keys(v.elements);Qo.flushSync(function(){l({styles:cr(d.map(function(m){return[m,v.styles[m]||{}]})),attributes:cr(d.map(function(m){return[m,v.attributes[m]]}))})})},requires:["computeStyles"]}},[]),u=Fe.useMemo(function(){var f={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[p,{name:"applyStyles",enabled:!1}])};return ha(o.current,f)?o.current||f:(o.current=f,f)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,p]),g=Fe.useRef();return lr(function(){g.current&&g.current.setOptions(u)},[u]),lr(function(){if(!(t==null||n==null)){var f=r.createPopper||ca,h=f(t,n,u);return g.current=h,function(){h.destroy(),g.current=null}}},[t,n,r.createPopper]),{state:g.current?g.current.state:null,styles:c.styles,attributes:c.attributes,update:g.current?g.current.update:null,forceUpdate:g.current?g.current.forceUpdate:null}},yn={},ga={get exports(){return yn},set exports(e){yn=e}};/*!
5
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var p={placement:we(t.placement),variation:et(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Jn(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Jn(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ci={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ai,data:{}};var Ot={passive:!0};function li(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,c=a===void 0?!0:a,l=xe(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(p){p.addEventListener("scroll",n.update,Ot)}),c&&l.addEventListener("resize",n.update,Ot),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Ot)}),c&&l.removeEventListener("resize",n.update,Ot)}}const ui={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:li,data:{}};var fi={left:"right",right:"left",bottom:"top",top:"bottom"};function St(e){return e.replace(/left|right|bottom|top/g,function(t){return fi[t]})}var di={start:"end",end:"start"};function Qn(e){return e.replace(/start|end/g,function(t){return di[t]})}function Nn(e){var t=xe(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function An(e){return Qe(De(e)).left+Nn(e).scrollLeft}function pi(e,t){var n=xe(e),r=De(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){i=o.width,a=o.height;var f=Lr();(f||!f&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:c+An(e),y:l}}function hi(e){var t,n=De(e),r=Nn(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ve(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ve(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+An(e),l=-r.scrollTop;return Ce(o||n).direction==="rtl"&&(c+=Ve(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:l}}function _n(e){var t=Ce(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Vr(e){return["html","body","#document"].indexOf(Se(e))>=0?e.ownerDocument.body:me(e)&&_n(e)?e:Vr(Ft(e))}function pt(e,t){var n;t===void 0&&(t=[]);var r=Vr(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=xe(r),a=o?[i].concat(i.visualViewport||[],_n(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(pt(Ft(a)))}function rn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mi(e,t){var n=Qe(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function er(e,t,n){return t===Mr?rn(pi(e,n)):Ue(t)?mi(t,n):rn(hi(De(e)))}function vi(e){var t=pt(Ft(e)),n=["absolute","fixed"].indexOf(Ce(e).position)>=0,r=n&&me(e)?yt(e):e;return Ue(r)?t.filter(function(o){return Ue(o)&&Fr(o,r)&&Se(o)!=="body"}):[]}function gi(e,t,n,r){var o=t==="clippingParents"?vi(e):[].concat(t),i=[].concat(o,[n]),a=i[0],c=i.reduce(function(l,f){var p=er(e,f,r);return l.top=Ve(p.top,l.top),l.right=kt(p.right,l.right),l.bottom=kt(p.bottom,l.bottom),l.left=Ve(p.left,l.left),l},er(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Ur(e){var t=e.reference,n=e.element,r=e.placement,o=r?we(r):null,i=r?et(r):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,l;switch(o){case de:l={x:a,y:t.y-n.height};break;case ye:l={x:a,y:t.y+t.height};break;case be:l={x:t.x+t.width,y:c};break;case pe:l={x:t.x-n.width,y:c};break;default:l={x:t.x,y:t.y}}var f=o?Tn(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case Xe:l[f]=l[f]-(t[p]/2-n[p]/2);break;case mt:l[f]=l[f]+(t[p]/2-n[p]/2);break}}return l}function vt(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,c=n.boundary,l=c===void 0?Fo:c,f=n.rootBoundary,p=f===void 0?Mr:f,g=n.elementContext,u=g===void 0?st:g,h=n.altBoundary,m=h===void 0?!1:h,d=n.padding,v=d===void 0?0:d,E=Br(typeof v!="number"?v:Hr(v,gt)),P=u===st?$o:st,O=e.rects.popper,w=e.elements[m?P:u],x=gi(Ue(w)?w:w.contextElement||De(e.elements.popper),l,p,a),k=Qe(e.elements.reference),V=Ur({reference:k,element:O,strategy:"absolute",placement:o}),X=rn(Object.assign({},O,V)),G=u===st?X:k,W={top:x.top-G.top+E.top,bottom:G.bottom-x.bottom+E.bottom,left:x.left-G.left+E.left,right:G.right-x.right+E.right},H=e.modifiersData.offset;if(u===st&&H){var te=H[o];Object.keys(W).forEach(function(Q){var oe=[be,ye].indexOf(Q)>=0?1:-1,he=[de,ye].indexOf(Q)>=0?"y":"x";W[Q]+=te[he]*oe})}return W}function yi(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,l=n.allowedAutoPlacements,f=l===void 0?Dr:l,p=et(r),g=p?c?Kn:Kn.filter(function(m){return et(m)===p}):gt,u=g.filter(function(m){return f.indexOf(m)>=0});u.length===0&&(u=g,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var h=u.reduce(function(m,d){return m[d]=vt(e,{placement:d,boundary:o,rootBoundary:i,padding:a})[we(d)],m},{});return Object.keys(h).sort(function(m,d){return h[m]-h[d]})}function bi(e){if(we(e)===Lt)return[];var t=St(e);return[Qn(e),t,Qn(t)]}function xi(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!0:a,l=n.fallbackPlacements,f=n.padding,p=n.boundary,g=n.rootBoundary,u=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,d=n.allowedAutoPlacements,v=t.options.placement,E=we(v),P=E===v,O=l||(P||!m?[St(v)]:bi(v)),w=[v].concat(O).reduce(function(T,_){return T.concat(we(_)===Lt?yi(t,{placement:_,boundary:p,rootBoundary:g,padding:f,flipVariations:m,allowedAutoPlacements:d}):_)},[]),x=t.rects.reference,k=t.rects.popper,V=new Map,X=!0,G=w[0],W=0;W<w.length;W++){var H=w[W],te=we(H),Q=et(H)===Xe,oe=[de,ye].indexOf(te)>=0,he=oe?"width":"height",Y=vt(t,{placement:H,boundary:p,rootBoundary:g,altBoundary:u,padding:f}),ee=oe?Q?be:pe:Q?ye:de;x[he]>k[he]&&(ee=St(ee));var ve=St(ee),le=[];if(i&&le.push(Y[te]<=0),c&&le.push(Y[ee]<=0,Y[ve]<=0),le.every(function(T){return T})){G=H,X=!1;break}V.set(H,le)}if(X)for(var C=m?3:1,S=function(_){var N=w.find(function(I){var L=V.get(I);if(L)return L.slice(0,_).every(function(B){return B})});if(N)return G=N,"break"},A=C;A>0;A--){var R=S(A);if(R==="break")break}t.placement!==G&&(t.modifiersData[r]._skip=!0,t.placement=G,t.reset=!0)}}const wi={name:"flip",enabled:!0,phase:"main",fn:xi,requiresIfExists:["offset"],data:{_skip:!1}};function tr(e,t,n){return n===void 0&&(n={x:0,y:0}),{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 nr(e){return[de,be,ye,pe].some(function(t){return e[t]>=0})}function Ci(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=vt(t,{elementContext:"reference"}),c=vt(t,{altBoundary:!0}),l=tr(a,r),f=tr(c,o,i),p=nr(l),g=nr(f);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":g})}const Oi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ci};function Ei(e,t,n){var r=we(e),o=[pe,de].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[pe,be].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function ji(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Dr.reduce(function(p,g){return p[g]=Ei(g,t.rects,i),p},{}),c=a[t.placement],l=c.x,f=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=a}const Si={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ji};function Pi(e){var t=e.state,n=e.name;t.modifiersData[n]=Ur({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ki={name:"popperOffsets",enabled:!0,phase:"read",fn:Pi,data:{}};function Ti(e){return e==="x"?"y":"x"}function Ni(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!1:a,l=n.boundary,f=n.rootBoundary,p=n.altBoundary,g=n.padding,u=n.tether,h=u===void 0?!0:u,m=n.tetherOffset,d=m===void 0?0:m,v=vt(t,{boundary:l,rootBoundary:f,padding:g,altBoundary:p}),E=we(t.placement),P=et(t.placement),O=!P,w=Tn(E),x=Ti(w),k=t.modifiersData.popperOffsets,V=t.rects.reference,X=t.rects.popper,G=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,W=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,te={x:0,y:0};if(k){if(i){var Q,oe=w==="y"?de:pe,he=w==="y"?ye:be,Y=w==="y"?"height":"width",ee=k[w],ve=ee+v[oe],le=ee-v[he],C=h?-X[Y]/2:0,S=P===Xe?V[Y]:X[Y],A=P===Xe?-X[Y]:-V[Y],R=t.elements.arrow,T=h&&R?kn(R):{width:0,height:0},_=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$r(),N=_[oe],I=_[he],L=dt(0,V[Y],T[Y]),B=O?V[Y]/2-C-L-N-W.mainAxis:S-L-N-W.mainAxis,$=O?-V[Y]/2+C+L+I+W.mainAxis:A+L+I+W.mainAxis,re=t.elements.arrow&&yt(t.elements.arrow),j=re?w==="y"?re.clientTop||0:re.clientLeft||0:0,ce=(Q=H?.[w])!=null?Q:0,ge=ee+B-ce-j,We=ee+$-ce,Ze=dt(h?kt(ve,ge):ve,ee,h?Ve(le,We):le);k[w]=Ze,te[w]=Ze-ee}if(c){var Ae,it=w==="x"?de:pe,Zt=w==="x"?ye:be,Oe=k[x],Le=x==="y"?"height":"width",fe=Oe+v[it],Pe=Oe-v[Zt],_e=[de,pe].indexOf(E)!==-1,F=(Ae=H?.[x])!=null?Ae:0,U=_e?fe:Oe-V[Le]-X[Le]-F+W.altAxis,M=_e?Oe+V[Le]+X[Le]-F-W.altAxis:Pe,K=h&&_e?ei(U,Oe,M):dt(h?U:fe,Oe,h?M:Pe);k[x]=K,te[x]=K-Oe}t.modifiersData[r]=te}}const Ai={name:"preventOverflow",enabled:!0,phase:"main",fn:Ni,requiresIfExists:["offset"]};function _i(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ri(e){return e===xe(e)||!me(e)?Nn(e):_i(e)}function Ii(e){var t=e.getBoundingClientRect(),n=Je(t.width)/e.offsetWidth||1,r=Je(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Mi(e,t,n){n===void 0&&(n=!1);var r=me(t),o=me(t)&&Ii(t),i=De(t),a=Qe(e,o,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Se(t)!=="body"||_n(i))&&(c=Ri(t)),me(t)?(l=Qe(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=An(i))),{x:a.left+c.scrollLeft-l.x,y:a.top+c.scrollTop-l.y,width:a.width,height:a.height}}function Di(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var l=t.get(c);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Li(e){var t=Di(e);return tn.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Fi(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ie(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[].concat(n).reduce(function(o,i){return o.replace(/%s/,i)},e)}var Fe='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',$i='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',rr=["name","enabled","phase","fn","effect","requires","options"];function Bi(e){e.forEach(function(t){[].concat(Object.keys(t),rr).filter(function(n,r,o){return o.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Ie(Fe,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Ie(Fe,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":tn.indexOf(t.phase)<0&&console.error(Ie(Fe,t.name,'"phase"',"either "+tn.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Ie(Fe,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Ie(Fe,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Ie(Fe,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Ie(Fe,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+rr.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(r){e.find(function(o){return o.name===r})==null&&console.error(Ie($i,String(t.name),r,r))})})})}function Hi(e,t){var n=new Set;return e.filter(function(r){var o=t(r);if(!n.has(o))return n.add(o),!0})}function Vi(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var or="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Ui="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",ir={placement:"bottom",modifiers:[],strategy:"absolute"};function sr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Wi(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?ir:o;return function(c,l,f){f===void 0&&(f=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},ir,i),modifiersData:{},elements:{reference:c,popper:l},attributes:{},styles:{}},g=[],u=!1,h={state:p,setOptions:function(E){var P=typeof E=="function"?E(p.options):E;d(),p.options=Object.assign({},i,p.options,P),p.scrollParents={reference:Ue(c)?pt(c):c.contextElement?pt(c.contextElement):[],popper:pt(l)};var O=Li(Vi([].concat(r,p.options.modifiers)));if(p.orderedModifiers=O.filter(function(H){return H.enabled}),process.env.NODE_ENV!=="production"){var w=Hi([].concat(O,p.options.modifiers),function(H){var te=H.name;return te});if(Bi(w),we(p.options.placement)===Lt){var x=p.orderedModifiers.find(function(H){var te=H.name;return te==="flip"});x||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var k=Ce(l),V=k.marginTop,X=k.marginRight,G=k.marginBottom,W=k.marginLeft;[V,X,G,W].some(function(H){return parseFloat(H)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return m(),h.update()},forceUpdate:function(){if(!u){var E=p.elements,P=E.reference,O=E.popper;if(!sr(P,O)){process.env.NODE_ENV!=="production"&&console.error(or);return}p.rects={reference:Mi(P,yt(O),p.options.strategy==="fixed"),popper:kn(O)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(H){return p.modifiersData[H.name]=Object.assign({},H.data)});for(var w=0,x=0;x<p.orderedModifiers.length;x++){if(process.env.NODE_ENV!=="production"&&(w+=1,w>100)){console.error(Ui);break}if(p.reset===!0){p.reset=!1,x=-1;continue}var k=p.orderedModifiers[x],V=k.fn,X=k.options,G=X===void 0?{}:X,W=k.name;typeof V=="function"&&(p=V({state:p,options:G,name:W,instance:h})||p)}}},update:Fi(function(){return new Promise(function(v){h.forceUpdate(),v(p)})}),destroy:function(){d(),u=!0}};if(!sr(c,l))return process.env.NODE_ENV!=="production"&&console.error(or),h;h.setOptions(f).then(function(v){!u&&f.onFirstUpdate&&f.onFirstUpdate(v)});function m(){p.orderedModifiers.forEach(function(v){var E=v.name,P=v.options,O=P===void 0?{}:P,w=v.effect;if(typeof w=="function"){var x=w({state:p,name:E,instance:h,options:O}),k=function(){};g.push(x||k)}})}function d(){g.forEach(function(v){return v()}),g=[]}return h}}var Zi=[ui,ki,ci,Xo,Si,wi,Ai,oi,Oi],qi=Wi({defaultModifiers:Zi}),zi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Gi=typeof Element<"u",Yi=typeof Map=="function",Ki=typeof Set=="function",Xi=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Pt(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Pt(e[r],t[r]))return!1;return!0}var i;if(Yi&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Pt(r.value[1],t.get(r.value[0])))return!1;return!0}if(Ki&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Xi&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Gi&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Pt(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var Ji=function(t,n){try{return Pt(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},Qi=[],es=function(t,n,r){r===void 0&&(r={});var o=Me.useRef(null),i={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Qi},a=Me.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=a[0],l=a[1],f=Me.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var m=h.state,d=Object.keys(m.elements);Lo.flushSync(function(){l({styles:Gn(d.map(function(v){return[v,m.styles[v]||{}]})),attributes:Gn(d.map(function(v){return[v,m.attributes[v]]}))})})},requires:["computeStyles"]}},[]),p=Me.useMemo(function(){var u={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[f,{name:"applyStyles",enabled:!1}])};return Ji(o.current,u)?o.current||u:(o.current=u,u)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,f]),g=Me.useRef();return Yn(function(){g.current&&g.current.setOptions(p)},[p]),Yn(function(){if(!(t==null||n==null)){var u=r.createPopper||qi,h=u(t,n,p);return g.current=h,function(){h.destroy(),g.current=null}}},[t,n,r.createPopper]),{state:g.current?g.current.state:null,styles:c.styles,attributes:c.attributes,update:g.current?g.current.update:null,forceUpdate:g.current?g.current.forceUpdate:null}},on={},ts={get exports(){return on},set exports(e){on=e}};/*!
6
6
  Copyright (c) 2018 Jed Watson.
7
7
  Licensed under the MIT License (MIT), see
8
8
  http://jedwatson.github.io/classnames
9
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var s=typeof i;if(s==="string"||s==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var c=n.apply(null,i);c&&r.push(c)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)t.call(i,l)&&i[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ga);const Q=yn;const Zn=e=>e.key==="Enter"||e.key===" ",Yt=(e,t)=>typeof e>"u"?{}:{tabIndex:0,onClick:e,onKeyDown:n=>{Zn(n)&&(n.preventDefault(),e?.(n)),t?.(n)}},no=({event:e,currentIndex:t,moveFocus:n,min:r,max:o,onClose:i})=>{switch(e.key){case"ArrowUp":{n(Math.max(t-1,r));break}case"ArrowDown":{n(Math.min(t+1,o));break}case"Home":{n(r);break}case"End":{n(o);break}case"Escape":{if(i){i();break}return}default:return}e.stopPropagation(),e.preventDefault()},fe=y.forwardRef((e,t)=>{const{name:n,size:r=16,className:o,handleClick:i,...s}=e;return a.jsx("span",{...Yt(i),className:Q(o,"icon",{[`icon-box-${r}`]:r}),ref:t,...s,children:a.jsx("i",{className:Q({[`icon-${n}`]:n})})})}),ro=y.forwardRef((e,t)=>{const{actions:n,className:r,onClose:o,onActionItemClick:i,...s}=e,c=y.useRef({}),[l,p]=y.useState(0),u=g=>{c.current[g]?.focus(),p(g)};return y.useEffect(()=>{c.current[l]?.focus()},[]),a.jsx("ul",{className:Q(r,"g42-context-menu"),ref:t,...s,"data-testid":"context-menu",onKeyDown:g=>no({event:g,currentIndex:l,min:0,max:n.length-1,moveFocus:u,onClose:o}),children:n.map((g,f)=>a.jsx("li",{className:Q("g42-list-item",g.disabled&&"disabled"),...Yt(h=>i(h,g)),ref:h=>c.current[f]=h,tabIndex:-1,children:g.displayName||g.name},g.name))})});function qn(e){const{iconName:t,iconSize:n,actions:r,onActionItemClick:o,isTabStop:i}=e,[s,c]=y.useState(!1),[l,p]=y.useState(null),[u,g]=y.useState(null),{styles:f,attributes:h}=ma(l,u,{placement:"bottom-end"});y.useEffect(()=>{if(!s)return;const m=j=>{l?.contains(j.target)||u?.contains(j.target)||c(!1)},O=()=>{document.activeElement?.nodeName==="IFRAME"&&c(!1)};return document.body.addEventListener("click",m,!0),window.addEventListener("blur",O),()=>{document.body.removeEventListener("click",m,!0),window.removeEventListener("blur",O)}},[u,l,s,c]);const v=m=>{m.stopPropagation(),c(O=>!O),u?.focus()},d=(m,O)=>{m.stopPropagation(),o(m,O),c(!1)};return a.jsxs(a.Fragment,{children:[a.jsx(fe,{tabIndex:i?0:-1,size:n,name:t,handleClick:v,ref:p,"data-testid":"context-menu-icon"}),s&&a.jsx(ro,{actions:r,style:f.popper,ref:g,onActionItemClick:d,onClose:()=>{l?.focus(),c(!1)},...h.popper})]})}const xt=e=>"items"in e,Ne={APPLICATION:"application",WORKSPACE:"workspace",LAYOUT:"layout"},wr={OPEN_IN_NEW_WINDOW:"openInNewWindow",OPEN_IN_NEW_WORKSPACE:"openInNewWorkspace"},Er={OPEN_IN_NEW_FRAME:"openInNewFrame",DELETE:"delete"},At={SET_AS_DEFAULT:"setAsDefault",DELETE:"delete"},oo=[{name:wr.OPEN_IN_NEW_WINDOW,displayName:"Open in New Window"},{name:wr.OPEN_IN_NEW_WORKSPACE,displayName:"Open in New Workspace"}],io=[{name:Er.OPEN_IN_NEW_FRAME,displayName:"Open in New Frame"},{name:Er.DELETE,displayName:"Delete"}],bn=(e,t,n)=>{const r="/",[o,...i]=n.split(r),s=e.findIndex(l=>xt(l)&&l.title===o),c=s!==-1?e[s]:null;return c?[...e.slice(0,s),{...c,items:i.length>0?bn(c.items,t,i.join(r)):[...c.items,t]},...e.slice(s+1)]:[...e,{id:o,title:o,items:i.length>0?bn([],t,i.join(r)):[t]}]},ya=(e,t)=>({id:"applications-section",title:"All Applications",items:e.reduce((r,o)=>{const i={id:o.name,title:o.title||o.name,description:o.caption,type:Ne.APPLICATION,iconSrc:o.icon,isOpen:t[o.name]?.length>0,contextMenuActions:oo},s=o.userProperties.folder;return s?bn(r,i,s):[...r,i]},[])});function zn(e){const{size:t=16,alt:n="Image icon",className:r,...o}=e;return a.jsx("img",{alt:n,className:Q(r,"icon",{[`icon-box-${t}`]:t}),...o})}const ao=e=>{const{className:t,iconSrc:n,iconName:r="folder",title:o,...i}=e;return a.jsxs("h4",{className:Q(t,"g42-list-header"),"data-testid":"base-section-header",...i,children:[n?a.jsx(zn,{src:n,alt:`${o} icon`,size:14,"data-testid":"img-icon"}):a.jsx(fe,{name:r,"data-testid":"icon"}),o]})},ba=()=>{const[e,t]=y.useState([]),n=y.useContext(ce.GlueContext);return y.useEffect(()=>{if(!n)return;const r=n.appManager.onAppAdded(c=>{c.userProperties.hidden||t(l=>[...l,c])}),o=n.appManager.onAppChanged(c=>{t(l=>[...l.filter(p=>p.name!==c.name),c])}),i=n.appManager.onAppRemoved(c=>{t(l=>l.filter(p=>p.name!==c.name))}),s=[r,i,o];return()=>s.forEach(c=>c())},[n]),e},xa=()=>{const[e,t]=y.useState({}),n=y.useContext(ce.GlueContext);return y.useEffect(()=>{if(!n)return;const r=n.appManager.onInstanceStarted(s=>{t(c=>{const l=c[s.application.name]??[];return{...c,[s.application.name]:[...l,s.id]}})}),o=n.appManager.onInstanceStopped(s=>{t(c=>({...c,[s.application.name]:c[s.application.name].filter(l=>l!==s.id)}))}),i=[r,o];return()=>i.forEach(s=>s())},[n]),e},so="interop_home_ui_selected_layout",wa="interop_home_ui_default_layout",Ea="interop_home_ui_favorite_entities",Ft=(e,t,n)=>{const[r,o]=y.useState(()=>{try{const c=window[e].getItem(t);return c?JSON.parse(c):null}catch(c){return console.log(c),null}}),i=`${e}-${t}`;y.useEffect(()=>{const c=l=>{o(l.detail)};return window.addEventListener(i,c),()=>{window.removeEventListener(i,c)}},[i]);const s=y.useCallback(c=>{try{const l=c instanceof Function?c(r):c;if(!l){window[e].removeItem(t),o(null);return}const p=n.run(l);if(!p.ok){console.warn(`Error validating the value to be stored: ${p.error.message}`);return}const u=p.result;o(u),window[e].setItem(t,JSON.stringify(u)),window.dispatchEvent(new CustomEvent(i,{detail:u}))}catch(l){console.log(l)}},[r,t,e,i,n]);return[r,s]};var ae=function(e){return{ok:!0,result:e}},oe=function(e){return{ok:!1,error:e}},Ca=function(e){return e.ok===!0?Promise.resolve(e.result):Promise.reject(e.error)},Oa=function(e,t){return t.ok===!0?t.result:e},ja=function(e){if(e.ok===!0)return e.result;throw e.error},Sa=function(e,t){return t.ok===!0?ae(e(t.result)):t},Cr=function(e,t,n){return t.ok===!1?t:n.ok===!1?n:ae(e(t.result,n.result))},an=function(e,t){return t.ok===!0?t:oe(e(t.error))},Pa=function(e,t){return t.ok===!0?e(t.result):t};/*! *****************************************************************************
9
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var c=n.apply(null,i);c&&r.push(c)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)t.call(i,l)&&i[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ts);const J=on;const Wr=e=>e.key==="Enter"||e.key===" ",tt=(e,t)=>typeof e>"u"?{}:{tabIndex:0,onClick:e,onKeyDown:n=>{Wr(n)&&(n.preventDefault(),e?.(n)),t?.(n)}},Zr=({event:e,currentIndex:t,moveFocus:n,min:r,max:o,onClose:i})=>{switch(e.key){case"ArrowUp":{n(Math.max(t-1,r));break}case"ArrowDown":{n(Math.min(t+1,o));break}case"Home":{n(r);break}case"End":{n(o);break}case"Escape":{if(i){i();break}return}default:return}e.stopPropagation(),e.preventDefault()},ue=y.forwardRef((e,t)=>{const{name:n,size:r=16,className:o,handleClick:i,...a}=e;return s.jsx("span",{...tt(i),className:J(o,"icon",{[`icon-box-${r}`]:r}),ref:t,...a,children:s.jsx("i",{className:J({[`icon-${n}`]:n})})})}),qr=y.forwardRef((e,t)=>{const{actions:n,className:r,onClose:o,onActionItemClick:i,...a}=e,c=y.useRef({}),[l,f]=y.useState(0),p=g=>{c.current[g]?.focus(),f(g)};return y.useEffect(()=>{c.current[l]?.focus()},[]),s.jsx("ul",{className:J(r,"g42-context-menu"),ref:t,...a,"data-testid":"context-menu",onKeyDown:g=>Zr({event:g,currentIndex:l,min:0,max:n.length-1,moveFocus:p,onClose:o}),children:n.map((g,u)=>s.jsx("li",{className:J("g42-list-item",g.disabled&&"disabled"),...tt(h=>i(h,g)),ref:h=>c.current[u]=h,tabIndex:-1,children:g.displayName||g.name},g.name))})});function Rn(e){const{iconName:t,iconSize:n,actions:r,onActionItemClick:o,isTabStop:i}=e,[a,c]=y.useState(!1),[l,f]=y.useState(null),[p,g]=y.useState(null),{styles:u,attributes:h}=es(l,p,{placement:"bottom-end"});y.useEffect(()=>{if(!a)return;const v=P=>{l?.contains(P.target)||p?.contains(P.target)||c(!1)},E=()=>{document.activeElement?.nodeName==="IFRAME"&&c(!1)};return document.body.addEventListener("click",v,!0),window.addEventListener("blur",E),()=>{document.body.removeEventListener("click",v,!0),window.removeEventListener("blur",E)}},[p,l,a,c]);const m=v=>{v.stopPropagation(),c(E=>!E),p?.focus()},d=(v,E)=>{v.stopPropagation(),o(v,E),c(!1)};return s.jsxs(s.Fragment,{children:[s.jsx(ue,{tabIndex:i?0:-1,size:n,name:t,handleClick:m,ref:f,"data-testid":"context-menu-icon"}),a&&s.jsx(qr,{actions:r,style:u.popper,ref:g,onActionItemClick:d,onClose:()=>{l?.focus(),c(!1)},...h.popper})]})}const ht=e=>"items"in e,Te={APPLICATION:"application",WORKSPACE:"workspace",LAYOUT:"layout"},zr=[{name:"openInNewWindow",displayName:"Open in New Window"},{name:"openInNewWorkspace",displayName:"Open in New Workspace"}],Gr=[{name:"openInNewFrame",displayName:"Open in New Frame"},{name:"delete",displayName:"Delete"}],sn=(e,t,n)=>{const r="/",[o,...i]=n.split(r),a=e.findIndex(l=>ht(l)&&l.title===o),c=a!==-1?e[a]:null;return c?[...e.slice(0,a),{...c,items:i.length>0?sn(c.items,t,i.join(r)):[...c.items,t]},...e.slice(a+1)]:[...e,{id:o,title:o,items:i.length>0?sn([],t,i.join(r)):[t]}]},ns=(e,t)=>({id:"applications-section",title:"All Applications",items:e.reduce((r,o)=>{const i={id:o.name,title:o.title||o.name,description:o.caption,type:Te.APPLICATION,iconSrc:o.icon,isOpen:t[o.name]?.length>0,contextMenuActions:zr},a=o.userProperties.folder;return a?sn(r,i,a):[...r,i]},[])});function In(e){const{size:t=16,alt:n="Image icon",className:r,...o}=e;return s.jsx("img",{alt:n,className:J(r,"icon",{[`icon-box-${t}`]:t}),...o})}const Yr=e=>{const{className:t,iconSrc:n,iconName:r="folder",title:o,...i}=e;return s.jsxs("h4",{className:J(t,"g42-list-header"),"data-testid":"base-section-header",...i,children:[n?s.jsx(In,{src:n,alt:`${o} icon`,size:14,"data-testid":"img-icon"}):s.jsx(ue,{name:r,"data-testid":"icon"}),o]})},rs=()=>{const[e,t]=y.useState([]),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=n.appManager.onAppAdded(c=>{c.userProperties.hidden||t(l=>[...l,c])}),o=n.appManager.onAppChanged(c=>{t(l=>[...l.filter(f=>f.name!==c.name),c])}),i=n.appManager.onAppRemoved(c=>{t(l=>l.filter(f=>f.name!==c.name))}),a=[r,i,o];return()=>a.forEach(c=>c())},[n]),e},os=()=>{const[e,t]=y.useState({}),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=n.appManager.onInstanceStarted(a=>{t(c=>{const l=c[a.application.name]??[];return{...c,[a.application.name]:[...l,a.id]}})}),o=n.appManager.onInstanceStopped(a=>{t(c=>({...c,[a.application.name]:c[a.application.name].filter(l=>l!==a.id)}))}),i=[r,o];return()=>i.forEach(a=>a())},[n]),e},Kr="interop_home_ui_selected_layout",is="interop_home_ui_favorite_entities",Mn=(e,t,n)=>{const[r,o]=y.useState(()=>{try{const c=window[e].getItem(t);return c?JSON.parse(c):null}catch(c){return console.log(c),null}}),i=`${e}-${t}`;y.useEffect(()=>{const c=l=>{o(l.detail)};return window.addEventListener(i,c),()=>{window.removeEventListener(i,c)}},[i]);const a=y.useCallback(c=>{try{if(!c){window[e].removeItem(t),o(null);return}const l=n.run(c);if(!l.ok){console.warn(`Error validating the value to be stored: ${l.error.message}`);return}const f=l.result;o(f),window[e].setItem(t,JSON.stringify(f)),window.dispatchEvent(new CustomEvent(i,{detail:f}))}catch(l){console.log(l)}},[t,e,i,n]);return[r,a]};var ae=function(e){return{ok:!0,result:e}},ie=function(e){return{ok:!1,error:e}},ss=function(e){return e.ok===!0?Promise.resolve(e.result):Promise.reject(e.error)},as=function(e,t){return t.ok===!0?t.result:e},cs=function(e){if(e.ok===!0)return e.result;throw e.error},ls=function(e,t){return t.ok===!0?ae(e(t.result)):t},ar=function(e,t,n){return t.ok===!1?t:n.ok===!1?n:ae(e(t.result,n.result))},zt=function(e,t){return t.ok===!0?t:ie(e(t.error))},us=function(e,t){return t.ok===!0?e(t.result):t};/*! *****************************************************************************
10
10
  Copyright (c) Microsoft Corporation.
11
11
 
12
12
  Permission to use, copy, modify, and/or distribute this software for any
@@ -19,25 +19,25 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
19
19
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20
20
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21
21
  PERFORMANCE OF THIS SOFTWARE.
22
- ***************************************************************************** */var xn=function(){return xn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},xn.apply(this,arguments)};function ka(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function wn(e,t){if(e===t||e===null&&t===null)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="object"){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!wn(e[n],t[n]))return!1;return!0}var r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(var n=0;n<r.length;n++)if(!t.hasOwnProperty(r[n])||!wn(e[r[n]],t[r[n]]))return!1;return!0}}var mt=function(e){return Array.isArray(e)},Rt=function(e){return typeof e=="object"&&e!==null&&!mt(e)},_a=function(e){switch(typeof e){case"string":return"a string";case"number":return"a number";case"boolean":return"a boolean";case"undefined":return"undefined";case"object":return e instanceof Array?"an array":e===null?"null":"an object";default:return JSON.stringify(e)}},_e=function(e,t){return"expected "+e+", got "+_a(t)},ht=function(e){return e.map(function(t){return typeof t=="string"?"."+t:"["+t+"]"}).join("")},vt=function(e,t){var n=t.at,r=ka(t,["at"]);return xn({at:e+(n||"")},r)},ie=function(){function e(t){var n=this;this.decode=t,this.run=function(r){return an(function(o){return{kind:"DecoderError",input:r,at:"input"+(o.at||""),message:o.message||""}},n.decode(r))},this.runPromise=function(r){return Ca(n.run(r))},this.runWithException=function(r){return ja(n.run(r))},this.map=function(r){return new e(function(o){return Sa(r,n.decode(o))})},this.andThen=function(r){return new e(function(o){return Pa(function(i){return r(i).decode(o)},n.decode(o))})},this.where=function(r,o){return n.andThen(function(i){return r(i)?e.succeed(i):e.fail(o)})}}return e.string=function(){return new e(function(t){return typeof t=="string"?ae(t):oe({message:_e("a string",t)})})},e.number=function(){return new e(function(t){return typeof t=="number"?ae(t):oe({message:_e("a number",t)})})},e.boolean=function(){return new e(function(t){return typeof t=="boolean"?ae(t):oe({message:_e("a boolean",t)})})},e.constant=function(t){return new e(function(n){return wn(n,t)?ae(t):oe({message:"expected "+JSON.stringify(t)+", got "+JSON.stringify(n)})})},e.object=function(t){return new e(function(n){if(Rt(n)&&t){var r={};for(var o in t)if(t.hasOwnProperty(o)){var i=t[o].decode(n[o]);if(i.ok===!0)i.result!==void 0&&(r[o]=i.result);else return n[o]===void 0?oe({message:"the key '"+o+"' is required but was not present"}):oe(vt("."+o,i.error))}return ae(r)}else return Rt(n)?ae(n):oe({message:_e("an object",n)})})},e.array=function(t){return new e(function(n){if(mt(n)&&t){var r=function(o,i){return an(function(s){return vt("["+i+"]",s)},t.decode(o))};return n.reduce(function(o,i,s){return Cr(function(c,l){return c.concat([l])},o,r(i,s))},ae([]))}else return mt(n)?ae(n):oe({message:_e("an array",n)})})},e.tuple=function(t){return new e(function(n){if(mt(n)){if(n.length!==t.length)return oe({message:"expected a tuple of length "+t.length+", got one of length "+n.length});for(var r=[],o=0;o<t.length;o++){var i=t[o].decode(n[o]);if(i.ok)r[o]=i.result;else return oe(vt("["+o+"]",i.error))}return ae(r)}else return oe({message:_e("a tuple of length "+t.length,n)})})},e.union=function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return e.oneOf.apply(e,[t,n].concat(r))},e.intersection=function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return new e(function(i){return[t,n].concat(r).reduce(function(s,c){return Cr(Object.assign,s,c.decode(i))},ae({}))})},e.anyJson=function(){return new e(function(t){return ae(t)})},e.unknownJson=function(){return new e(function(t){return ae(t)})},e.dict=function(t){return new e(function(n){if(Rt(n)){var r={};for(var o in n)if(n.hasOwnProperty(o)){var i=t.decode(n[o]);if(i.ok===!0)r[o]=i.result;else return oe(vt("."+o,i.error))}return ae(r)}else return oe({message:_e("an object",n)})})},e.optional=function(t){return new e(function(n){return n==null?ae(void 0):t.decode(n)})},e.oneOf=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new e(function(r){for(var o=[],i=0;i<t.length;i++){var s=t[i].decode(r);if(s.ok===!0)return s;o[i]=s.error}var c=o.map(function(l){return"at error"+(l.at||"")+": "+l.message}).join('", "');return oe({message:'expected a value matching one of the decoders, got the errors ["'+c+'"]'})})},e.withDefault=function(t,n){return new e(function(r){return ae(Oa(t,n.decode(r)))})},e.valueAt=function(t,n){return new e(function(r){for(var o=r,i=0;i<t.length;i++){if(o===void 0)return oe({at:ht(t.slice(0,i+1)),message:"path does not exist"});if(typeof t[i]=="string"&&!Rt(o))return oe({at:ht(t.slice(0,i+1)),message:_e("an object",o)});if(typeof t[i]=="number"&&!mt(o))return oe({at:ht(t.slice(0,i+1)),message:_e("an array",o)});o=o[t[i]]}return an(function(s){return o===void 0?{at:ht(t),message:"path does not exist"}:vt(ht(t),s)},n.decode(o))})},e.succeed=function(t){return new e(function(n){return ae(t)})},e.fail=function(t){return new e(function(n){return oe({message:t})})},e.lazy=function(t){return new e(function(n){return t().decode(n)})},e}(),En=ie.string;ie.number;var Na=ie.boolean;ie.anyJson;ie.unknownJson;ie.constant;var Yn=ie.object,co=ie.array;ie.tuple;ie.dict;var tt=ie.optional;ie.oneOf;ie.union;ie.intersection;ie.withDefault;ie.valueAt;ie.succeed;ie.fail;ie.lazy;const Ze=En().where(e=>e.length>0,"Expected a non-empty string"),Ta=Yn({name:Ze,displayName:tt(Ze),disabled:tt(Na())}),Aa=Yn({id:Ze,title:Ze,description:tt(Ze),icon:tt(En()),iconSrc:tt(En()),contextMenuActions:tt(co(Ta)),type:Ze}),Ra=co(Aa),lo=()=>{const[e,t]=Ft("localStorage",Ea,Ra);return{favoriteEntities:e||[],toggleFavorite:({isOpen:r,...o})=>{t(i=>{const s=i||[],c=s.find(l=>l.title===o.title&&l.type===o.type);return c?s.filter(l=>l!==c):[...s,o]})}}},uo=()=>{const[e,t]=y.useState(),n=y.useContext(ce.GlueContext);return y.useEffect(()=>{if(!n)return;const r=Jo.getFrameId();n.workspaces?.waitForFrame(r).then(t).catch(o=>console.error("Failed to get current frame",{error:o}))},[n]),e},Ma=()=>{const e=y.useContext(ce.GlueContext);return async t=>e.interop.methods().every(n=>n.name!==t?.method)?console.error("Interop method not found."):await e.interop.invoke(t.method,t.params,t.target).catch(n=>console.error({error:n}))},fo=()=>{const[e,t]=y.useState([]);return y.useEffect(()=>{const n=({key:i})=>{t(s=>s.includes(i)?s:s.concat(i))},r=i=>{t(s=>s.filter(c=>c!==i.key))},o=()=>{t([])};return document.addEventListener("keydown",n),document.addEventListener("keyup",r),window.addEventListener("blur",o),()=>{document.removeEventListener("keydown",n),document.removeEventListener("keyup",r),window.removeEventListener("blur",o)}},[]),e.length===1?e[0]:null},Kt={CONTROL:"Control",SHIFT:"Shift"},po=()=>{const e=y.useContext(ce.GlueContext),t=uo();return async(n,r)=>{const o=r===Kt.CONTROL?{newFrame:!0}:{frameId:t?.id};return e.workspaces?.restoreWorkspace(n,o)}},Ia=e=>{const[t,n]=y.useState([]),[r,o]=y.useState(!0),i=y.useRef(null),s=y.useContext(ce.GlueContext);return y.useEffect(()=>{if(!s||!s.search)return;const c=[],l=[];return(async u=>{o(!0),n([]);const g=await s.search.query({search:u.trim(),providerLimits:{maxResults:100,maxResultsPerType:5}});if(g===i.current)return;i.current=g;const f=g.onResults(d=>{d.results.forEach(m=>{l.find(j=>j.id===m.id&&j.type.name===m.type.name)||l.push(m)}),o(!1),n([...l])}),h=g.onCompleted(()=>{o(!1)}),v=g.onError(d=>{console.error(`Query failed. Provider: ${d.provider}; Error: ${d.error}`)});c.push(f,h,v)})(e),()=>{c.forEach(u=>u())}},[s,e]),{resultsToRender:t,isLoading:r}},ho=()=>{const e=y.useContext(ce.GlueContext);return async(t,n)=>{const r=await e.workspaces?.getWorkspace(c=>c.isSelected===!0),o=r?.children[0];return n===Kt.CONTROL||!r||o?.type==="window"?await e.appManager.application(t).start():await(o?.type==="group"?o:await(o||r).addGroup()).addWindow({appName:t})}},Da=()=>{const[e,t]=y.useState([]),n=y.useContext(ce.GlueContext);return y.useEffect(()=>{if(!n||!n.workspaces)return;let r=!1;const o=n.workspaces.layouts.onSaved(({name:s})=>{r||t(c=>[...c,{id:s,title:s}])}),i=n.workspaces.layouts.onRemoved(({name:s})=>{r||t(c=>c.filter(({title:l})=>l!==s))});return()=>{r=!0,[o,i].forEach(async s=>{try{(await s)()}catch(c){console.error(c)}})}},[n]),e},La=()=>{const[e,t]=y.useState({}),n=y.useContext(ce.GlueContext);return y.useEffect(()=>{if(!n)return;const r=[];return(async()=>{try{const o=await n.workspaces?.onWorkspaceOpened(s=>t(c=>({...c,[s.title]:[...c[s.title]||[],s.id]})));r.push(o);const i=await n.workspaces?.onWorkspaceClosed(({workspaceId:s})=>t(c=>{const l={...c};for(const p in l)if(l[p].includes(s)){l[p]=l[p].filter(u=>u!==s);break}return l}));r.push(i)}catch(o){console.error(o)}})(),()=>r.forEach(o=>o?.())},[n]),e},Fa=async(e,t)=>{await e.appManager.application(t.id).start()},$a=async(e,t,n)=>{if(!e.workspaces)return;const r={type:"workspace",definition:{frame:n?{reuseFrameId:n.id}:{newFrame:!0}}},o=e.workspaces.getBuilder(r);o.addGroup().addWindow({appName:t.id}),await o.create()},Ha={openInNewWindow:Fa,openInNewWorkspace:$a},vo=()=>{const e=y.useContext(ce.GlueContext),t=uo();return async(n,r)=>{Ha[r](e,n,t)}},Ba=async(e,t)=>{e.workspaces&&e.workspaces.restoreWorkspace(t.id,{newFrame:!0})},Va=async(e,t)=>{e.workspaces&&e.workspaces.layouts.delete(t.id)},Ua={openInNewFrame:Ba,delete:Va},mo=()=>{const e=y.useContext(ce.GlueContext);return async(t,n)=>{Ua[n](e,t)}};var $t={},Wa={get exports(){return $t},set exports(e){$t=e}};(function(e,t){(function(n,r){var o="1.0.35",i="",s="?",c="function",l="undefined",p="object",u="string",g="major",f="model",h="name",v="type",d="vendor",m="version",O="architecture",j="console",E="mobile",w="tablet",b="smarttv",k="wearable",F="embedded",W=350,Y="Amazon",G="Apple",V="ASUS",te="BlackBerry",J="Browser",re="Chrome",ve="Edge",K="Firefox",ee="Google",ge="Huawei",ue="LG",C="Microsoft",P="Motorola",T="Opera",R="Samsung",_="Sharp",A="Sony",N="Xiaomi",M="Zebra",L="Facebook",B="Chromium OS",H="Mac OS",ne=function($,U){var I={};for(var X in $)U[X]&&U[X].length%2===0?I[X]=U[X].concat($[X]):I[X]=$[X];return I},S=function($){for(var U={},I=0;I<$.length;I++)U[$[I].toUpperCase()]=$[I];return U},le=function($,U){return typeof $===u?ye(U).indexOf(ye($))!==-1:!1},ye=function($){return $.toLowerCase()},Ye=function($){return typeof $===u?$.replace(/[^\d\.]/g,i).split(".")[0]:r},Ke=function($,U){if(typeof $===u)return $=$.replace(/^\s\s*/,i),typeof U===l?$:$.substring(0,W)},Me=function($,U){for(var I=0,X,De,je,Z,D,Se;I<U.length&&!D;){var on=U[I],sr=U[I+1];for(X=De=0;X<on.length&&!D&&on[X];)if(D=on[X++].exec($),D)for(je=0;je<sr.length;je++)Se=D[++De],Z=sr[je],typeof Z===p&&Z.length>0?Z.length===2?typeof Z[1]==c?this[Z[0]]=Z[1].call(this,Se):this[Z[0]]=Z[1]:Z.length===3?typeof Z[1]===c&&!(Z[1].exec&&Z[1].test)?this[Z[0]]=Se?Z[1].call(this,Se,Z[2]):r:this[Z[0]]=Se?Se.replace(Z[1],Z[2]):r:Z.length===4&&(this[Z[0]]=Se?Z[3].call(this,Se.replace(Z[1],Z[2])):r):this[Z]=Se||r;I+=2}},dt=function($,U){for(var I in U)if(typeof U[I]===p&&U[I].length>0){for(var X=0;X<U[I].length;X++)if(le(U[I][X],$))return I===s?r:I}else if(le(U[I],$))return I===s?r:I;return $},rn={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Oe={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Be={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,m],[/opios[\/ ]+([\w\.]+)/i],[m,[h,T+" Mini"]],[/\bopr\/([\w\.]+)/i],[m,[h,T]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,m],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[h,"UC"+J]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[m,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[m,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+J],m],[/\bfocus\/([\w\.]+)/i],[m,[h,K+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[h,T+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[h,T+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[h,"MIUI "+J]],[/fxios\/([-\w\.]+)/i],[m,[h,K]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+J]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+J],m],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,m],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,L],m],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[h,re+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,re+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[h,"Android "+J]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[m,dt,rn]],[/(webkit|khtml)\/([\w\.]+)/i],[h,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[h,K+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[h,m],[/(cobalt)\/([\w\.]+)/i],[h,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[O,"amd64"]],[/(ia32(?=;))/i],[[O,ye]],[/((?:i[346]|x)86)[;\)]/i],[[O,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[O,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[O,"armhf"]],[/windows (ce|mobile); ppc;/i],[[O,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[O,/ower/,i,ye]],[/(sun4\w)[;\)]/i],[[O,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[O,ye]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[d,R],[v,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[d,R],[v,E]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[d,G],[v,E]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[d,G],[v,w]],[/(macintosh);/i],[f,[d,G]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[d,_],[v,E]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[d,ge],[v,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[d,ge],[v,E]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[d,N],[v,E]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[d,N],[v,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[d,"OPPO"],[v,E]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[d,"Vivo"],[v,E]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[d,"Realme"],[v,E]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[d,P],[v,E]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[d,P],[v,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[d,ue],[v,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[d,ue],[v,E]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[d,"Lenovo"],[v,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[d,"Nokia"],[v,E]],[/(pixel c)\b/i],[f,[d,ee],[v,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[d,ee],[v,E]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[d,A],[v,E]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[d,A],[v,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[d,"OnePlus"],[v,E]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[d,Y],[v,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[d,Y],[v,E]],[/(playbook);[-\w\),; ]+(rim)/i],[f,d,[v,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[d,te],[v,E]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[d,V],[v,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[d,V],[v,E]],[/(nexus 9)/i],[f,[d,"HTC"],[v,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[f,/_/g," "],[v,E]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[d,"Acer"],[v,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[d,"Meizu"],[v,E]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,f,[v,E]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,f,[v,w]],[/(surface duo)/i],[f,[d,C],[v,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[d,"Fairphone"],[v,E]],[/(u304aa)/i],[f,[d,"AT&T"],[v,E]],[/\bsie-(\w*)/i],[f,[d,"Siemens"],[v,E]],[/\b(rct\w+) b/i],[f,[d,"RCA"],[v,w]],[/\b(venue[\d ]{2,7}) b/i],[f,[d,"Dell"],[v,w]],[/\b(q(?:mv|ta)\w+) b/i],[f,[d,"Verizon"],[v,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[d,"Barnes & Noble"],[v,w]],[/\b(tm\d{3}\w+) b/i],[f,[d,"NuVision"],[v,w]],[/\b(k88) b/i],[f,[d,"ZTE"],[v,w]],[/\b(nx\d{3}j) b/i],[f,[d,"ZTE"],[v,E]],[/\b(gen\d{3}) b.+49h/i],[f,[d,"Swiss"],[v,E]],[/\b(zur\d{3}) b/i],[f,[d,"Swiss"],[v,w]],[/\b((zeki)?tb.*\b) b/i],[f,[d,"Zeki"],[v,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],f,[v,w]],[/\b(ns-?\w{0,9}) b/i],[f,[d,"Insignia"],[v,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[d,"NextBook"],[v,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],f,[v,E]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],f,[v,E]],[/\b(ph-1) /i],[f,[d,"Essential"],[v,E]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[d,"Envizen"],[v,w]],[/\b(trio[-\w\. ]+) b/i],[f,[d,"MachSpeed"],[v,w]],[/\btu_(1491) b/i],[f,[d,"Rotor"],[v,w]],[/(shield[\w ]+) b/i],[f,[d,"Nvidia"],[v,w]],[/(sprint) (\w+)/i],[d,f,[v,E]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[d,C],[v,E]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[d,M],[v,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[d,M],[v,E]],[/smart-tv.+(samsung)/i],[d,[v,b]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[d,R],[v,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,ue],[v,b]],[/(apple) ?tv/i],[d,[f,G+" TV"],[v,b]],[/crkey/i],[[f,re+"cast"],[d,ee],[v,b]],[/droid.+aft(\w)( bui|\))/i],[f,[d,Y],[v,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[d,_],[v,b]],[/(bravia[\w ]+)( bui|\))/i],[f,[d,A],[v,b]],[/(mitv-\w{5}) bui/i],[f,[d,N],[v,b]],[/Hbbtv.*(technisat) (.*);/i],[d,f,[v,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,Ke],[f,Ke],[v,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,f,[v,j]],[/droid.+; (shield) bui/i],[f,[d,"Nvidia"],[v,j]],[/(playstation [345portablevi]+)/i],[f,[d,A],[v,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[d,C],[v,j]],[/((pebble))app/i],[d,f,[v,k]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[d,G],[v,k]],[/droid.+; (glass) \d/i],[f,[d,ee],[v,k]],[/droid.+; (wt63?0{2,3})\)/i],[f,[d,M],[v,k]],[/(quest( 2| pro)?)/i],[f,[d,L],[v,k]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[v,F]],[/(aeobc)\b/i],[f,[d,Y],[v,F]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[v,E]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[v,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[v,E]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[h,ve+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,m],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[m,dt,Oe]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[m,dt,Oe]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,H],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,m],[/\(bb(10);/i],[m,[h,te]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[h,K+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[h,re+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,B],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,m],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,m]]},de=function($,U){if(typeof $===p&&(U=$,$=r),!(this instanceof de))return new de($,U).getResult();var I=typeof n!==l&&n.navigator?n.navigator:r,X=$||(I&&I.userAgent?I.userAgent:i),De=I&&I.userAgentData?I.userAgentData:r,je=U?ne(Be,U):Be,Z=I&&I.userAgent==X;return this.getBrowser=function(){var D={};return D[h]=r,D[m]=r,Me.call(D,X,je.browser),D[g]=Ye(D[m]),Z&&I&&I.brave&&typeof I.brave.isBrave==c&&(D[h]="Brave"),D},this.getCPU=function(){var D={};return D[O]=r,Me.call(D,X,je.cpu),D},this.getDevice=function(){var D={};return D[d]=r,D[f]=r,D[v]=r,Me.call(D,X,je.device),Z&&!D[v]&&De&&De.mobile&&(D[v]=E),Z&&D[f]=="Macintosh"&&I&&typeof I.standalone!==l&&I.maxTouchPoints&&I.maxTouchPoints>2&&(D[f]="iPad",D[v]=w),D},this.getEngine=function(){var D={};return D[h]=r,D[m]=r,Me.call(D,X,je.engine),D},this.getOS=function(){var D={};return D[h]=r,D[m]=r,Me.call(D,X,je.os),Z&&!D[h]&&De&&De.platform!="Unknown"&&(D[h]=De.platform.replace(/chrome os/i,B).replace(/macos/i,H)),D},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return X},this.setUA=function(D){return X=typeof D===u&&D.length>W?Ke(D,W):D,this},this.setUA(X),this};de.VERSION=o,de.BROWSER=S([h,m,g]),de.CPU=S([O]),de.DEVICE=S([f,d,v,j,E,b,w,k,F]),de.ENGINE=de.OS=S([h,m]),e.exports&&(t=e.exports=de),t.UAParser=de;var ke=typeof n!==l&&(n.jQuery||n.Zepto);if(ke&&!ke.ua){var Ie=new de;ke.ua=Ie.getResult(),ke.ua.get=function(){return Ie.getUA()},ke.ua.set=function($){Ie.setUA($);var U=Ie.getResult();for(var I in U)ke.ua[I]=U[I]}}})(typeof window=="object"?window:la)})(Wa,$t);const Ga=new $t.UAParser,go=()=>Fe.useMemo(()=>Ga.getBrowser(),[]),yo=e=>{const{className:t,isFavoritismEnabled:n=!0,item:r,onClick:o,onKeyDown:i,focused:s,...c}=e,{favoriteEntities:l,toggleFavorite:p}=lo(),{description:u,icon:g="application",iconSrc:f,isOpen:h=!1,title:v,contextMenuActions:d}=r,m=n&&l.some(O=>O.type===r.type&&O.title===r.title);return a.jsxs("div",{tabIndex:s?0:-1,className:Q(t,"g42-list-item"),onKeyDown:O=>{if(Zn(O)){o(O),O.preventDefault(),O.stopPropagation();return}i(O)},onClick:o,"data-testid":"base-section-item",...c,children:[a.jsxs("div",{className:"g42-list-row",children:[a.jsx(fe,{size:8,name:h?"check":"","data-testid":"open-check-icon"}),f?a.jsx(zn,{src:f,alt:`${v} icon`,size:14,"data-testid":"img-icon"}):a.jsx(fe,{size:14,name:g,"data-testid":"icon"}),a.jsx("span",{className:"title","data-testid":"title",children:v}),h&&a.jsx("span",{className:"opened","data-testid":"opened-label",children:"Opened"}),d&&d.length>0&&a.jsx(qn,{iconName:"ellipsis",iconSize:16,actions:d,onActionItemClick:o,isTabStop:s}),n&&a.jsx(fe,{tabIndex:s?0:-1,className:Q("favorite",m&&"visible"),name:m?"star-full":"star",handleClick:O=>{O.stopPropagation(),p(r)},size:16,"data-testid":"favorite-icon"})]}),u&&a.jsx("div",{className:"g42-list-row",children:a.jsx("span",{className:"description","data-testid":"description",children:u})})]})},bo=y.createContext(void 0),Kn=()=>{const e=y.useContext(bo);if(e===void 0)throw new Error("useLaunchpadAPI must be used within a LaunchpadAPIProvider");return e},Za=({children:e,setOpen:t,isOpen:n})=>{const r=y.useMemo(()=>({close:()=>t(!1),isOpen:n}),[t,n]);return a.jsx(bo.Provider,{value:r,children:e})},wt="Welcome",qa=5,Xt=e=>{const{config:t,isFavoritismEnabled:n,level:r=1,onItemClick:o}=e,[i,s]=y.useState(1),c=t.displayCount??qa,l=fo(),p=Kn(),[u,g]=y.useState(0),f=y.useRef({}),h=y.useMemo(()=>t.items.filter(j=>xt(j)),[t.items]),v=y.useMemo(()=>t.items.filter(j=>!xt(j)).slice(0,i*c),[t.items,c,i]);y.useEffect(()=>{p.isOpen||s(1)},[p.isOpen]);const d=()=>{s(j=>j+1)},m=[...h,...v],O=j=>{f.current[j]?.querySelector("[tabIndex]")?.focus(),g(j)};return a.jsxs("li",{className:"section",children:[a.jsx(ao,{iconSrc:t.iconSrc,iconName:t.iconName,style:{paddingLeft:`${(r-1)*12+6}px`},title:t.title}),a.jsxs("ul",{children:[m.map((j,E)=>xt(j)?a.jsx(Xt,{config:j,isFavoritismEnabled:n,level:r+1,onItemClick:o},j.id):a.jsx("li",{ref:w=>f.current[E]=w,children:a.jsx(yo,{isFavoritismEnabled:n,item:j,onClick:(w,b)=>o?.(w,{item:j,modifier:l,selectedContextMenuActionName:b?.name}),style:{paddingLeft:`${r*7}px`},onKeyDown:w=>{no({event:w,moveFocus:O,currentIndex:u,min:0,max:m.length-1})},focused:u===E},j.id||E)},j.id||E)),t.items.length-h.length>c*i&&a.jsx("li",{"data-testid":"more-li-element",children:a.jsx("div",{className:"g42-list-item more",style:{paddingLeft:`${r*7+8}px`},role:"button","aria-label":"More",...Yt(d),children:a.jsxs("div",{className:"g42-list-row",children:[a.jsx("span",{className:"title",children:"More..."}),a.jsx(fe,{size:12,name:"chevron-down","data-testid":"more-chevron"})]})})})]})]})},xo=e=>`${e.type}-${e.id}`,za=(e,t)=>wo(e)[t],wo=e=>e.reduce((t,n)=>xt(n)?{...t,...wo(n.items)}:{...t,[xo(n)]:n},{}),Eo=y.createContext(void 0),Ya=()=>{const e=y.useContext(Eo);if(e===void 0)throw new Error("useSection must be used within a SectionProvider");return e},Ka=({children:e})=>{const[t,n]=y.useState(null);return a.jsx(Eo.Provider,{value:[t,n],children:e})},Jt=({config:e,onItemClick:t})=>{const[n,r]=Ya(),o=Kn(),i=fo(),s=(c,l)=>{const{item:p,selectedContextMenuActionName:u}=l;r({itemName:xo(p),selectedContextMenuActionName:u})};return y.useEffect(()=>{if(!t||!n)return;const{itemName:c,selectedContextMenuActionName:l}=n,p=za(e.items,c);p&&(t({item:p,modifier:i,selectedContextMenuActionName:l}),r(null),i!==Kt.SHIFT&&o.close())},[n,e.items,o,t,i,r]),a.jsx(Xt,{config:e,onItemClick:s})};function Co(){const e=ba(),t=xa(),n=ho(),r=vo(),o=ya(e,t),i=s=>{const{item:c,modifier:l,selectedContextMenuActionName:p}=s;if(!p)return n(c.id,l).catch(u=>{console.error("Failed to start application",{error:u})});r(c,p).catch(u=>{console.error("Failed to execute application action",{error:u})})};return a.jsx(Jt,{config:o,onItemClick:i})}function Qt({children:e,className:t,color:n,...r}){return a.jsx("button",{className:Q(t,"g42-btn",n),...r,children:e})}function Ot({className:e,items:t,onItemClick:n}){return a.jsx("div",{className:Q("g42-btn-group",e),children:t.map((r,o)=>{const{onClick:i,...s}=r;return a.jsx(Qt,{onClick:c=>{i&&i(c),n&&n(c,r)},...s},o)})})}const Xa=e=>({id:"favorites-section",title:"Favorites",items:e,iconName:"star"}),Oo=()=>{const{favoriteEntities:e}=lo(),t=Xa(e);return e.length>0?a.jsx(Jt,{config:t}):null},jo=()=>{const e=y.useContext(ce.GlueContext),[t,n]=y.useState([]);y.useEffect(()=>{e&&e.themes?.list().then(o=>n(o)).catch(console.warn)},[e]);const r=async(o,i)=>{i.name&&e.themes?.select(i.name).catch(console.warn)};return a.jsxs("div",{className:"info info-middle",children:[a.jsx("h4",{children:"Settings"}),a.jsxs("div",{className:"flex ai-center",children:[a.jsx("label",{style:{textAlign:"right",width:"40%"},children:"Theme"}),a.jsx("div",{style:{width:"60%",marginLeft:"auto"},children:a.jsx(Ot,{onItemClick:r,items:t.map(({name:o,displayName:i})=>({name:o,children:i}))})})]})]})},Cn=Yn({name:Ze}),So=({title:e,description:t,links:n=[],onLogout:r})=>{const[o,i]=Ft("sessionStorage",so,Cn),s=()=>{i(null),r?.()};return a.jsxs("div",{className:"info info-bottom flex flex-column",children:[a.jsx("h4",{children:e||"Support"}),a.jsx("p",{children:t||"New set of thoughtfully curated items and the ability to configure them."}),a.jsx("ul",{children:n.map(({children:c,...l})=>a.jsx("li",{children:a.jsx("a",{...l,children:c})},l.href))}),a.jsx("div",{children:a.jsx(Qt,{onClick:s,children:"Logout"})})]})},Po=e=>e?.split(" ").map(t=>t[0]?.toUpperCase()).join(""),Ja=({user:e})=>{const t=y.useContext(ce.GlueContext),n=e?.name||"N A";return a.jsxs("div",{className:"flex info info-top",children:[a.jsxs("div",{children:[a.jsx("h4",{children:n}),a.jsxs("p",{children:["PROD"," | ","Version "+t.version]})]}),a.jsx("div",{className:"flex badge",children:Po(n)})]})},ko=({onLogout:e,user:t})=>a.jsxs(a.Fragment,{children:[a.jsx(Ja,{user:t}),a.jsx(jo,{}),a.jsx(So,{onLogout:e})]});function _o({children:e,className:t,mountNode:n,afterClose:r,onClose:o,visible:i,...s}){const c=y.useRef(null),l=y.useRef(!1);i&&(l.current=!0),y.useEffect(()=>{if(i)return;const u=c.current,g=()=>r?.();return u?.addEventListener("animationend",g),()=>u?.removeEventListener("animationend",g)},[i,r]);const p=a.jsxs("div",{className:Q("modal",l.current&&(i?"fadeIn":"fadeOut"),t),ref:c,...s,children:[a.jsx(fe,{onClick:o,className:"btn-close g42-btn g42-btn-icon",size:16,name:"close"}),a.jsx("div",{className:"g42-modal-backdrop-content",children:e})]});return n?et.createPortal(p,n):p}var se=globalThis&&globalThis.__assign||function(){return se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},se.apply(this,arguments)},Qa=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},sn=Symbol("NiceModalId"),Xn={},lt=y.createContext(Xn),No=y.createContext(null),Ae={},jt={},es=0,ut=function(){throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")},ts=function(){return"_nice_modal_"+es++},To=function(e,t){var n,r,o;switch(e===void 0&&(e=Xn),t.type){case"nice-modal/show":{var i=t.payload,s=i.modalId,c=i.args;return se(se({},e),(n={},n[s]=se(se({},e[s]),{id:s,args:c,visible:!!jt[s],delayVisible:!jt[s]}),n))}case"nice-modal/hide":{var s=t.payload.modalId;return e[s]?se(se({},e),(r={},r[s]=se(se({},e[s]),{visible:!1}),r)):e}case"nice-modal/remove":{var s=t.payload.modalId,l=se({},e);return delete l[s],l}case"nice-modal/set-flags":{var p=t.payload,s=p.modalId,u=p.flags;return se(se({},e),(o={},o[s]=se(se({},e[s]),u),o))}default:return e}};function ns(e,t){return{type:"nice-modal/show",payload:{modalId:e,args:t}}}function rs(e,t){return{type:"nice-modal/set-flags",payload:{modalId:e,flags:t}}}function os(e){return{type:"nice-modal/hide",payload:{modalId:e}}}function is(e){return{type:"nice-modal/remove",payload:{modalId:e}}}var Te={},rt={},Jn=function(e){return typeof e=="string"?e:(e[sn]||(e[sn]=ts()),e[sn])};function Ao(e,t){var n=Jn(e);if(typeof e!="string"&&!Ae[n]&&tn(n,e),ut(ns(n,t)),!Te[n]){var r,o,i=new Promise(function(s,c){r=s,o=c});Te[n]={resolve:r,reject:o,promise:i}}return Te[n].promise}function Ro(e){var t=Jn(e);if(ut(os(t)),delete Te[t],!rt[t]){var n,r,o=new Promise(function(i,s){n=i,r=s});rt[t]={resolve:n,reject:r,promise:o}}return rt[t].promise}var Mo=function(e){ut(is(e)),delete Te[e],delete rt[e]},as=function(e,t){ut(rs(e,t))};function en(e,t){var n=y.useContext(lt),r=y.useContext(No),o=null,i=e&&typeof e!="string";if(e?o=Jn(e):o=r,!o)throw new Error("No modal id found in NiceModal.useModal.");var s=o;y.useEffect(function(){i&&!Ae[s]&&tn(s,e,t)},[i,s,e,t]);var c=n[s],l=y.useCallback(function(v){return Ao(s,v)},[s]),p=y.useCallback(function(){return Ro(s)},[s]),u=y.useCallback(function(){return Mo(s)},[s]),g=y.useCallback(function(v){var d;(d=Te[s])===null||d===void 0||d.resolve(v),delete Te[s]},[s]),f=y.useCallback(function(v){var d;(d=Te[s])===null||d===void 0||d.reject(v),delete Te[s]},[s]),h=y.useCallback(function(v){var d;(d=rt[s])===null||d===void 0||d.resolve(v),delete rt[s]},[s]);return{id:s,args:c?.args,visible:!!c?.visible,keepMounted:!!c?.keepMounted,show:l,hide:p,remove:u,resolve:g,reject:f,resolveHide:h}}var ss=function(e){return function(t){var n,r=t.defaultVisible,o=t.keepMounted,i=t.id,s=Qa(t,["defaultVisible","keepMounted","id"]),c=en(i),l=c.args,p=c.show,u=y.useContext(lt),g=!!u[i];y.useEffect(function(){return r&&p(),jt[i]=!0,function(){delete jt[i]}},[i,p,r]),y.useEffect(function(){o&&as(i,{keepMounted:!0})},[i,o]);var f=(n=u[i])===null||n===void 0?void 0:n.delayVisible;return y.useEffect(function(){f&&p(l)},[f,l,p]),g?y.createElement(No.Provider,{value:i},y.createElement(e,se({},s,l))):null}},tn=function(e,t,n){Ae[e]?Ae[e].props=n:Ae[e]={comp:t,props:n}},cs=function(e){delete Ae[e]},Io=function(){var e=y.useContext(lt),t=Object.keys(e).filter(function(r){return!!e[r]});t.forEach(function(r){if(!Ae[r]&&!jt[r]){console.warn("No modal found for id: "+r+". Please check the id or if it is registered or declared via JSX.");return}});var n=t.filter(function(r){return Ae[r]}).map(function(r){return se({id:r},Ae[r])});return y.createElement(y.Fragment,null,n.map(function(r){return y.createElement(r.comp,se({key:r.id,id:r.id},r.props))}))},ls=function(e){var t=e.children,n=y.useReducer(To,Xn),r=n[0];return ut=n[1],y.createElement(lt.Provider,{value:r},t,y.createElement(Io,null))},us=function(e){var t=e.children,n=e.dispatch,r=e.modals;return!n||!r?y.createElement(ls,null,t):(ut=n,y.createElement(lt.Provider,{value:r},t,y.createElement(Io,null)))},fs=function(e){var t=e.id,n=e.component;return y.useEffect(function(){return tn(t,n),function(){cs(t)}},[t,n]),null},ds=function(e){return{visible:e.visible,onOk:function(){return e.hide()},onCancel:function(){return e.hide()},afterClose:function(){e.resolveHide(),e.keepMounted||e.remove()}}},ps=function(e){return{visible:e.visible,onClose:function(){return e.hide()},afterVisibleChange:function(t){t||e.resolveHide(),!t&&!e.keepMounted&&e.remove()}}},hs=function(e){return{open:e.visible,onClose:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},vs=function(e){return{show:e.visible,onHide:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},$e={Provider:us,ModalDef:fs,NiceModalContext:lt,create:ss,register:tn,show:Ao,hide:Ro,remove:Mo,useModal:en,reducer:To,antdModal:ds,antdDrawer:ps,muiDialog:hs,bootstrapDialog:vs};const ms=$e.create(e=>{const{onLogout:t,user:n,...r}=e,o=en();return a.jsx(_o,{...r,visible:o.visible,onClose:()=>{o.hide()},afterClose:()=>{o.remove()},children:a.jsx(ko,{onLogout:t,user:n})})});const Do=({actions:e,className:t=""})=>a.jsx("div",{className:Q("layout-actions",t),children:e.map(({label:n,kind:r,disabled:o,onClick:i})=>a.jsx("button",{onClick:i,disabled:o,className:"g42-btn",children:n},r))}),gs=e=>{const{layout:t,onLayoutItemClick:n,setDefaultLayout:r}=e,o=y.useContext(ce.GlueContext),i=async l=>(l.isDefault&&r({name:wt}),o.layouts.remove("Global",l.name).catch(p=>{console.error("Failed to delete layout: ",p)})),s=async(l,p)=>{if(p.name===At.SET_AS_DEFAULT)return r({name:t.name});if(p.name===At.DELETE)return i(t)},c=[{name:At.SET_AS_DEFAULT,displayName:"Set as Default",disabled:t.isDefault},{name:At.DELETE,displayName:"Delete",disabled:t.id===wt}];return a.jsxs("div",{className:Q("layouts-item flex ai-center",t.isSelected&&"active"),children:[a.jsx("div",{className:"loaded me-8",children:t.isSelected&&a.jsx(fe,{size:12,name:"check"})}),a.jsx("div",{className:Q("name",{bold:t.isSelected}),onClick:()=>n(t),children:t.name}),a.jsxs("div",{className:"type",children:[t.type,t.isDefault?"/Default":""]}),a.jsx(qn,{iconSize:16,iconName:"ellipsis",actions:c,onActionItemClick:s})]},t.id)},Lo=e=>{const{layouts:t,onLayoutItemClick:n,inputValue:r,onInputChange:o,actions:i,setDefaultLayout:s}=e;return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"layouts-settings",children:[a.jsx("input",{className:"g42-input",onChange:c=>o(c.target.value),value:r}),a.jsx(Do,{className:"group",actions:i})]}),a.jsxs("div",{children:[a.jsx("h6",{children:"Available Layouts"}),t.map(c=>a.jsx(gs,{layout:c,onLayoutItemClick:n,setDefaultLayout:s},c.id))]})]})};var x={},Or={get exports(){return x},set exports(e){x=e}},Ht={},ys={get exports(){return Ht},set exports(e){Ht=e}},q={};/** @license React v16.13.1
22
+ ***************************************************************************** */var an=function(){return an=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},an.apply(this,arguments)};function fs(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function cn(e,t){if(e===t||e===null&&t===null)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="object"){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!cn(e[n],t[n]))return!1;return!0}var r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(var n=0;n<r.length;n++)if(!t.hasOwnProperty(r[n])||!cn(e[r[n]],t[r[n]]))return!1;return!0}}var ut=function(e){return Array.isArray(e)},Et=function(e){return typeof e=="object"&&e!==null&&!ut(e)},ds=function(e){switch(typeof e){case"string":return"a string";case"number":return"a number";case"boolean":return"a boolean";case"undefined":return"undefined";case"object":return e instanceof Array?"an array":e===null?"null":"an object";default:return JSON.stringify(e)}},ke=function(e,t){return"expected "+e+", got "+ds(t)},at=function(e){return e.map(function(t){return typeof t=="string"?"."+t:"["+t+"]"}).join("")},ct=function(e,t){var n=t.at,r=fs(t,["at"]);return an({at:e+(n||"")},r)},se=function(){function e(t){var n=this;this.decode=t,this.run=function(r){return zt(function(o){return{kind:"DecoderError",input:r,at:"input"+(o.at||""),message:o.message||""}},n.decode(r))},this.runPromise=function(r){return ss(n.run(r))},this.runWithException=function(r){return cs(n.run(r))},this.map=function(r){return new e(function(o){return ls(r,n.decode(o))})},this.andThen=function(r){return new e(function(o){return us(function(i){return r(i).decode(o)},n.decode(o))})},this.where=function(r,o){return n.andThen(function(i){return r(i)?e.succeed(i):e.fail(o)})}}return e.string=function(){return new e(function(t){return typeof t=="string"?ae(t):ie({message:ke("a string",t)})})},e.number=function(){return new e(function(t){return typeof t=="number"?ae(t):ie({message:ke("a number",t)})})},e.boolean=function(){return new e(function(t){return typeof t=="boolean"?ae(t):ie({message:ke("a boolean",t)})})},e.constant=function(t){return new e(function(n){return cn(n,t)?ae(t):ie({message:"expected "+JSON.stringify(t)+", got "+JSON.stringify(n)})})},e.object=function(t){return new e(function(n){if(Et(n)&&t){var r={};for(var o in t)if(t.hasOwnProperty(o)){var i=t[o].decode(n[o]);if(i.ok===!0)i.result!==void 0&&(r[o]=i.result);else return n[o]===void 0?ie({message:"the key '"+o+"' is required but was not present"}):ie(ct("."+o,i.error))}return ae(r)}else return Et(n)?ae(n):ie({message:ke("an object",n)})})},e.array=function(t){return new e(function(n){if(ut(n)&&t){var r=function(o,i){return zt(function(a){return ct("["+i+"]",a)},t.decode(o))};return n.reduce(function(o,i,a){return ar(function(c,l){return c.concat([l])},o,r(i,a))},ae([]))}else return ut(n)?ae(n):ie({message:ke("an array",n)})})},e.tuple=function(t){return new e(function(n){if(ut(n)){if(n.length!==t.length)return ie({message:"expected a tuple of length "+t.length+", got one of length "+n.length});for(var r=[],o=0;o<t.length;o++){var i=t[o].decode(n[o]);if(i.ok)r[o]=i.result;else return ie(ct("["+o+"]",i.error))}return ae(r)}else return ie({message:ke("a tuple of length "+t.length,n)})})},e.union=function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return e.oneOf.apply(e,[t,n].concat(r))},e.intersection=function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return new e(function(i){return[t,n].concat(r).reduce(function(a,c){return ar(Object.assign,a,c.decode(i))},ae({}))})},e.anyJson=function(){return new e(function(t){return ae(t)})},e.unknownJson=function(){return new e(function(t){return ae(t)})},e.dict=function(t){return new e(function(n){if(Et(n)){var r={};for(var o in n)if(n.hasOwnProperty(o)){var i=t.decode(n[o]);if(i.ok===!0)r[o]=i.result;else return ie(ct("."+o,i.error))}return ae(r)}else return ie({message:ke("an object",n)})})},e.optional=function(t){return new e(function(n){return n==null?ae(void 0):t.decode(n)})},e.oneOf=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new e(function(r){for(var o=[],i=0;i<t.length;i++){var a=t[i].decode(r);if(a.ok===!0)return a;o[i]=a.error}var c=o.map(function(l){return"at error"+(l.at||"")+": "+l.message}).join('", "');return ie({message:'expected a value matching one of the decoders, got the errors ["'+c+'"]'})})},e.withDefault=function(t,n){return new e(function(r){return ae(as(t,n.decode(r)))})},e.valueAt=function(t,n){return new e(function(r){for(var o=r,i=0;i<t.length;i++){if(o===void 0)return ie({at:at(t.slice(0,i+1)),message:"path does not exist"});if(typeof t[i]=="string"&&!Et(o))return ie({at:at(t.slice(0,i+1)),message:ke("an object",o)});if(typeof t[i]=="number"&&!ut(o))return ie({at:at(t.slice(0,i+1)),message:ke("an array",o)});o=o[t[i]]}return zt(function(a){return o===void 0?{at:at(t),message:"path does not exist"}:ct(at(t),a)},n.decode(o))})},e.succeed=function(t){return new e(function(n){return ae(t)})},e.fail=function(t){return new e(function(n){return ie({message:t})})},e.lazy=function(t){return new e(function(n){return t().decode(n)})},e}(),ln=se.string;se.number;var ps=se.boolean;se.anyJson;se.unknownJson;se.constant;var Dn=se.object,Xr=se.array;se.tuple;se.dict;var Ye=se.optional;se.oneOf;se.union;se.intersection;se.withDefault;se.valueAt;se.succeed;se.fail;se.lazy;const He=ln().where(e=>e.length>0,"Expected a non-empty string"),hs=Dn({name:He,displayName:Ye(He),disabled:Ye(ps())}),ms=Dn({id:He,title:He,description:Ye(He),icon:Ye(ln()),iconSrc:Ye(ln()),contextMenuActions:Ye(Xr(hs)),type:He}),vs=Xr(ms),$t=()=>{const[e,t]=Mn("localStorage",is,vs),n=y.useMemo(()=>e||[],[e]);return{favoriteEntities:n,toggleFavorite:({isOpen:i,...a})=>{const c=n.find(f=>f.title===a.title&&f.type===a.type),l=c?n.filter(f=>f!==c):[...n,a];t(l)},removeFavorite:i=>{t(n.filter(a=>a.id!==i))}}},Jr=()=>{const[e,t]=y.useState(),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=Rr.getFrameId();n.workspaces?.waitForFrame(r).then(t).catch(o=>console.error("Failed to get current frame",{error:o}))},[n]),e},gs=()=>{const e=y.useContext(ne.IOConnectContext);return async t=>e.interop.methods().every(n=>n.name!==t?.method)?console.error("Interop method not found."):await e.interop.invoke(t.method,t.params,t.target).catch(n=>console.error({error:n}))},ys=()=>{const[e,t]=y.useState([]),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n)return;let r=!1;const o=n.layouts.onAdded(a=>{if(a.type!=="Global"||r)return;const{name:c,type:l}=a;t(f=>[...f,{name:c,type:l}])}),i=n.layouts.onRemoved(a=>{a.type!=="Global"||r||t(c=>c.filter(l=>l.name!==a.name))});return()=>{r=!0,o(),i()}},[n]),e},Qr=()=>{const[e,t]=y.useState([]),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=n.notifications.onRaised(i=>t(a=>[...a,i])),o=n.notifications.onClosed(i=>t(a=>a.filter(c=>c.id!==i.id)));return n.notifications.list().then(t).catch(console.error),()=>{r(),o()}},[n]),e},Gt=["None","Low","Medium","High","Critical"],bs={None:"#616161",Low:"#7AC70C",Medium:"#E0A900",High:"#E0474C",Critical:"#B8001E"},un={TIMESTAMP:"timestamp",SEVERITY:"severity"},cr={key:un.TIMESTAMP,descending:!0},xs=(e,t)=>[...e].sort((n,r)=>(t?-1:1)*((n.timestamp||0)-(r.timestamp||0))),ws=(e,t)=>{const n=Gt[0];return[...e].sort((r,o)=>{const i=Gt.indexOf(r.severity||n),a=Gt.indexOf(o.severity||n);return(t?-1:1)*(i-a)})},Cs={[un.TIMESTAMP]:xs,[un.SEVERITY]:ws},Os=()=>{const e=Qr(),[t,n]=y.useState(cr),{key:r,descending:o}=t,i=y.useMemo(()=>Cs[r](e,o),[e,r,o]);return{onNotificationsSort:y.useCallback(c=>{n(l=>({key:c,descending:l.key!==c?cr.descending:!l.descending}))},[]),sortedNotifications:i}},eo=()=>{const[e,t]=y.useState([]);return y.useEffect(()=>{const n=({key:i})=>{t(a=>a.includes(i)?a:a.concat(i))},r=i=>{t(a=>a.filter(c=>c!==i.key))},o=()=>{t([])};return document.addEventListener("keydown",n),document.addEventListener("keyup",r),window.addEventListener("blur",o),()=>{document.removeEventListener("keydown",n),document.removeEventListener("keyup",r),window.removeEventListener("blur",o)}},[]),e.length===1?e[0]:null},Bt={CONTROL:"Control",SHIFT:"Shift"},to=()=>{const e=y.useContext(ne.IOConnectContext),t=Jr();return async(n,r)=>{const o=r===Bt.CONTROL?{newFrame:!0}:{frameId:t?.id};return e.workspaces?.restoreWorkspace(n,o)}},Ln=()=>{const e=y.useContext(ne.IOConnectContext);return y.useCallback(async(t,n)=>{if(e)try{await e.layouts.restore({name:t}),n?.({name:t})}catch(r){console.error(r)}},[e])},Es=e=>{const[t,n]=y.useState([]),[r,o]=y.useState(!0),i=y.useRef(null),a=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{const c=a?.search;if(!c)return;const l=[],f=[];return(async g=>{o(!0),n([]);const u=await c.query({search:g.trim(),providerLimits:{maxResults:100,maxResultsPerType:5}});if(u===i.current)return;i.current=u;const h=u.onResults(v=>{v.results.forEach(E=>{f.find(O=>O.id===E.id&&O.type.name===E.type.name)||f.push(E)}),o(!1),n([...f])}),m=u.onCompleted(()=>{o(!1)}),d=u.onError(v=>{console.error(`Query failed. Provider: ${v.provider}; Error: ${v.error}`)});l.push(h,m,d)})(e),()=>{l.forEach(g=>g())}},[a,e]),{resultsToRender:t,isLoading:r}},no=()=>{const e=y.useContext(ne.IOConnectContext);return async(t,n)=>{const r=await e.workspaces?.getWorkspace(c=>c.isSelected===!0),o=r?.children[0];return n===Bt.CONTROL||!r||o?.type==="window"?await e.appManager.application(t).start():await(o?.type==="group"?o:await(o||r).addGroup()).addWindow({appName:t})}},js=()=>{const[e,t]=y.useState([]),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n||!n.workspaces)return;let r=!1;const o=n.workspaces.layouts.onSaved(({name:a})=>{r||e.find(({id:c})=>c===a)||t(c=>[...c,{id:a,title:a}])}),i=n.workspaces.layouts.onRemoved(({name:a})=>{r||t(c=>c.filter(({title:l})=>l!==a))});return()=>{r=!0,[o,i].forEach(async a=>{try{(await a)()}catch(c){console.error(c)}})}},[n,e]),e},Ss=()=>{const[e,t]=y.useState({}),n=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=[];return(async()=>{try{const o=await n.workspaces?.onWorkspaceOpened(a=>t(c=>({...c,[a.title]:[...c[a.title]||[],a.id]})));r.push(o);const i=await n.workspaces?.onWorkspaceClosed(({workspaceId:a})=>t(c=>{const l={...c};for(const f in l)if(l[f].includes(a)){l[f]=l[f].filter(p=>p!==a);break}return l}));r.push(i)}catch(o){console.error(o)}})(),()=>r.forEach(o=>o?.())},[n]),e},Ps=e=>{const{io:t,item:n}=e;t.appManager.application(n.id).start().catch(r=>{console.error("Failed to start application: ",{error:r})})},ks=e=>{const{io:t,item:n,frame:r}=e;if(!t.workspaces)return;const o={type:"workspace",definition:{frame:r?{reuseFrameId:r.id}:{newFrame:!0}}},i=t.workspaces.getBuilder(o);i.addGroup().addWindow({appName:n.id}),i.create().catch(a=>{console.error("Failed to create workspace: ",{error:a})})},Ts={openInNewWindow:Ps,openInNewWorkspace:ks},ro=()=>{const e=y.useContext(ne.IOConnectContext),t=Jr();return(n,r)=>{Ts[r]({io:e,item:n,frame:t})}},Ns=e=>{const{io:t,item:n}=e;t.workspaces&&t.workspaces.restoreWorkspace(n.id,{newFrame:!0}).catch(r=>{console.error("Failed to open workspace in new frame: ",{error:r})})},As=async e=>{const{io:t,item:n,removeFavorite:r}=e;if(t.workspaces)try{await t.workspaces.layouts.delete(n.id),r(n.id)}catch(o){console.error("Failed to delete workspace: ",{error:o})}},_s={openInNewFrame:Ns,delete:As},oo=()=>{const e=y.useContext(ne.IOConnectContext),{removeFavorite:t}=$t();return(n,r)=>{_s[r]({io:e,item:n,removeFavorite:t})}},Rs=e=>{const{layout:t,setDefaultLayout:n}=e;n({name:t.name})},Is=e=>{const{io:t,layout:n}=e;t.layouts.remove("Global",n.name).catch(r=>{console.error("Failed to delete layout: ",{error:r})})},Ms={setAsDefault:Rs,delete:Is},Ds=()=>{const e=y.useContext(ne.IOConnectContext);return y.useCallback((n,r,o)=>{Ms[r]({io:e,layout:n,setDefaultLayout:o})},[e])};var Tt={},Ls={get exports(){return Tt},set exports(e){Tt=e}};(function(e,t){(function(n,r){var o="1.0.35",i="",a="?",c="function",l="undefined",f="object",p="string",g="major",u="model",h="name",m="type",d="vendor",v="version",E="architecture",P="console",O="mobile",w="tablet",x="smarttv",k="wearable",V="embedded",X=350,G="Amazon",W="Apple",H="ASUS",te="BlackBerry",Q="Browser",oe="Chrome",he="Edge",Y="Firefox",ee="Google",ve="Huawei",le="LG",C="Microsoft",S="Motorola",A="Opera",R="Samsung",T="Sharp",_="Sony",N="Xiaomi",I="Zebra",L="Facebook",B="Chromium OS",$="Mac OS",re=function(F,U){var M={};for(var K in F)U[K]&&U[K].length%2===0?M[K]=U[K].concat(F[K]):M[K]=F[K];return M},j=function(F){for(var U={},M=0;M<F.length;M++)U[F[M].toUpperCase()]=F[M];return U},ce=function(F,U){return typeof F===p?ge(U).indexOf(ge(F))!==-1:!1},ge=function(F){return F.toLowerCase()},We=function(F){return typeof F===p?F.replace(/[^\d\.]/g,i).split(".")[0]:r},Ze=function(F,U){if(typeof F===p)return F=F.replace(/^\s\s*/,i),typeof U===l?F:F.substring(0,X)},Ae=function(F,U){for(var M=0,K,Re,Ee,Z,D,je;M<U.length&&!D;){var qt=U[M],zn=U[M+1];for(K=Re=0;K<qt.length&&!D&&qt[K];)if(D=qt[K++].exec(F),D)for(Ee=0;Ee<zn.length;Ee++)je=D[++Re],Z=zn[Ee],typeof Z===f&&Z.length>0?Z.length===2?typeof Z[1]==c?this[Z[0]]=Z[1].call(this,je):this[Z[0]]=Z[1]:Z.length===3?typeof Z[1]===c&&!(Z[1].exec&&Z[1].test)?this[Z[0]]=je?Z[1].call(this,je,Z[2]):r:this[Z[0]]=je?je.replace(Z[1],Z[2]):r:Z.length===4&&(this[Z[0]]=je?Z[3].call(this,je.replace(Z[1],Z[2])):r):this[Z]=je||r;M+=2}},it=function(F,U){for(var M in U)if(typeof U[M]===f&&U[M].length>0){for(var K=0;K<U[M].length;K++)if(ce(U[M][K],F))return M===a?r:M}else if(ce(U[M],F))return M===a?r:M;return F},Zt={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Oe={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Le={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,v],[/opios[\/ ]+([\w\.]+)/i],[v,[h,A+" Mini"]],[/\bopr\/([\w\.]+)/i],[v,[h,A]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,v],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[h,"UC"+Q]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[v,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[v,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+Q],v],[/\bfocus\/([\w\.]+)/i],[v,[h,Y+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[h,A+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[h,A+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[h,"MIUI "+Q]],[/fxios\/([-\w\.]+)/i],[v,[h,Y]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+Q]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+Q],v],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,v],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,L],v],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[h,oe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,oe+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[h,"Android "+Q]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[v,it,Zt]],[/(webkit|khtml)\/([\w\.]+)/i],[h,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[h,Y+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[h,v],[/(cobalt)\/([\w\.]+)/i],[h,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[E,"amd64"]],[/(ia32(?=;))/i],[[E,ge]],[/((?:i[346]|x)86)[;\)]/i],[[E,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[E,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/windows (ce|mobile); ppc;/i],[[E,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[E,/ower/,i,ge]],[/(sun4\w)[;\)]/i],[[E,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[E,ge]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[d,R],[m,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[d,R],[m,O]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[d,W],[m,O]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[d,W],[m,w]],[/(macintosh);/i],[u,[d,W]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[d,T],[m,O]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[d,ve],[m,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[d,ve],[m,O]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[d,N],[m,O]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[d,N],[m,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[d,"OPPO"],[m,O]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[d,"Vivo"],[m,O]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[d,"Realme"],[m,O]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[d,S],[m,O]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[d,S],[m,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[d,le],[m,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[d,le],[m,O]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[d,"Lenovo"],[m,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[d,"Nokia"],[m,O]],[/(pixel c)\b/i],[u,[d,ee],[m,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[d,ee],[m,O]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[d,_],[m,O]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[d,_],[m,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[d,"OnePlus"],[m,O]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[d,G],[m,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[d,G],[m,O]],[/(playbook);[-\w\),; ]+(rim)/i],[u,d,[m,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[d,te],[m,O]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[d,H],[m,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[d,H],[m,O]],[/(nexus 9)/i],[u,[d,"HTC"],[m,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[u,/_/g," "],[m,O]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[d,"Acer"],[m,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[d,"Meizu"],[m,O]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,u,[m,O]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,u,[m,w]],[/(surface duo)/i],[u,[d,C],[m,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[d,"Fairphone"],[m,O]],[/(u304aa)/i],[u,[d,"AT&T"],[m,O]],[/\bsie-(\w*)/i],[u,[d,"Siemens"],[m,O]],[/\b(rct\w+) b/i],[u,[d,"RCA"],[m,w]],[/\b(venue[\d ]{2,7}) b/i],[u,[d,"Dell"],[m,w]],[/\b(q(?:mv|ta)\w+) b/i],[u,[d,"Verizon"],[m,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[d,"Barnes & Noble"],[m,w]],[/\b(tm\d{3}\w+) b/i],[u,[d,"NuVision"],[m,w]],[/\b(k88) b/i],[u,[d,"ZTE"],[m,w]],[/\b(nx\d{3}j) b/i],[u,[d,"ZTE"],[m,O]],[/\b(gen\d{3}) b.+49h/i],[u,[d,"Swiss"],[m,O]],[/\b(zur\d{3}) b/i],[u,[d,"Swiss"],[m,w]],[/\b((zeki)?tb.*\b) b/i],[u,[d,"Zeki"],[m,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],u,[m,w]],[/\b(ns-?\w{0,9}) b/i],[u,[d,"Insignia"],[m,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[d,"NextBook"],[m,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],u,[m,O]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],u,[m,O]],[/\b(ph-1) /i],[u,[d,"Essential"],[m,O]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[d,"Envizen"],[m,w]],[/\b(trio[-\w\. ]+) b/i],[u,[d,"MachSpeed"],[m,w]],[/\btu_(1491) b/i],[u,[d,"Rotor"],[m,w]],[/(shield[\w ]+) b/i],[u,[d,"Nvidia"],[m,w]],[/(sprint) (\w+)/i],[d,u,[m,O]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[d,C],[m,O]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[d,I],[m,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[d,I],[m,O]],[/smart-tv.+(samsung)/i],[d,[m,x]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[d,R],[m,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,le],[m,x]],[/(apple) ?tv/i],[d,[u,W+" TV"],[m,x]],[/crkey/i],[[u,oe+"cast"],[d,ee],[m,x]],[/droid.+aft(\w)( bui|\))/i],[u,[d,G],[m,x]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[d,T],[m,x]],[/(bravia[\w ]+)( bui|\))/i],[u,[d,_],[m,x]],[/(mitv-\w{5}) bui/i],[u,[d,N],[m,x]],[/Hbbtv.*(technisat) (.*);/i],[d,u,[m,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,Ze],[u,Ze],[m,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,x]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,u,[m,P]],[/droid.+; (shield) bui/i],[u,[d,"Nvidia"],[m,P]],[/(playstation [345portablevi]+)/i],[u,[d,_],[m,P]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[d,C],[m,P]],[/((pebble))app/i],[d,u,[m,k]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[d,W],[m,k]],[/droid.+; (glass) \d/i],[u,[d,ee],[m,k]],[/droid.+; (wt63?0{2,3})\)/i],[u,[d,I],[m,k]],[/(quest( 2| pro)?)/i],[u,[d,L],[m,k]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[m,V]],[/(aeobc)\b/i],[u,[d,G],[m,V]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[m,O]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[m,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,O]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[h,he+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,v],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[v,it,Oe]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[v,it,Oe]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,$],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,v],[/\(bb(10);/i],[v,[h,te]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[h,Y+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[h,oe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,B],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,v],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,v]]},fe=function(F,U){if(typeof F===f&&(U=F,F=r),!(this instanceof fe))return new fe(F,U).getResult();var M=typeof n!==l&&n.navigator?n.navigator:r,K=F||(M&&M.userAgent?M.userAgent:i),Re=M&&M.userAgentData?M.userAgentData:r,Ee=U?re(Le,U):Le,Z=M&&M.userAgent==K;return this.getBrowser=function(){var D={};return D[h]=r,D[v]=r,Ae.call(D,K,Ee.browser),D[g]=We(D[v]),Z&&M&&M.brave&&typeof M.brave.isBrave==c&&(D[h]="Brave"),D},this.getCPU=function(){var D={};return D[E]=r,Ae.call(D,K,Ee.cpu),D},this.getDevice=function(){var D={};return D[d]=r,D[u]=r,D[m]=r,Ae.call(D,K,Ee.device),Z&&!D[m]&&Re&&Re.mobile&&(D[m]=O),Z&&D[u]=="Macintosh"&&M&&typeof M.standalone!==l&&M.maxTouchPoints&&M.maxTouchPoints>2&&(D[u]="iPad",D[m]=w),D},this.getEngine=function(){var D={};return D[h]=r,D[v]=r,Ae.call(D,K,Ee.engine),D},this.getOS=function(){var D={};return D[h]=r,D[v]=r,Ae.call(D,K,Ee.os),Z&&!D[h]&&Re&&Re.platform!="Unknown"&&(D[h]=Re.platform.replace(/chrome os/i,B).replace(/macos/i,$)),D},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return K},this.setUA=function(D){return K=typeof D===p&&D.length>X?Ze(D,X):D,this},this.setUA(K),this};fe.VERSION=o,fe.BROWSER=j([h,v,g]),fe.CPU=j([E]),fe.DEVICE=j([u,d,m,P,O,x,w,k,V]),fe.ENGINE=fe.OS=j([h,v]),e.exports&&(t=e.exports=fe),t.UAParser=fe;var Pe=typeof n!==l&&(n.jQuery||n.Zepto);if(Pe&&!Pe.ua){var _e=new fe;Pe.ua=_e.getResult(),Pe.ua.get=function(){return _e.getUA()},Pe.ua.set=function(F){_e.setUA(F);var U=_e.getResult();for(var M in U)Pe.ua[M]=U[M]}}})(typeof window=="object"?window:zi)})(Ls,Tt);const Fs=new Tt.UAParser,io=()=>Me.useMemo(()=>Fs.getBrowser(),[]),so=e=>{const{className:t,isFavoritismEnabled:n=!0,item:r,onClick:o,onKeyDown:i,focused:a,...c}=e,{favoriteEntities:l,toggleFavorite:f}=$t(),{description:p,icon:g="application",iconSrc:u,isOpen:h=!1,title:m,contextMenuActions:d}=r,v=n&&l.some(E=>E.type===r.type&&E.title===r.title);return s.jsxs("div",{tabIndex:a?0:-1,className:J(t,"g42-list-item"),onKeyDown:E=>{if(Wr(E)){o(E),E.preventDefault(),E.stopPropagation();return}i(E)},onClick:o,"data-testid":"base-section-item",...c,children:[s.jsxs("div",{className:"g42-list-row",children:[s.jsx(ue,{size:8,name:h?"check":"","data-testid":"open-check-icon"}),u?s.jsx(In,{src:u,alt:`${m} icon`,size:14,"data-testid":"img-icon"}):s.jsx(ue,{size:14,name:g,"data-testid":"icon"}),s.jsx("span",{className:"title","data-testid":"title",children:m}),h&&s.jsx("span",{className:"opened","data-testid":"opened-label",children:"Opened"}),d&&d.length>0&&s.jsx(Rn,{iconName:"ellipsis",iconSize:16,actions:d,onActionItemClick:o,isTabStop:a}),n&&s.jsx(ue,{tabIndex:a?0:-1,className:J("favorite",v&&"visible"),name:v?"star-full":"star",handleClick:E=>{E.stopPropagation(),f(r)},size:16,"data-testid":"favorite-icon"})]}),p&&s.jsx("div",{className:"g42-list-row",children:s.jsx("span",{className:"description","data-testid":"description",children:p})})]})},ao=Dn({name:He}),co="Welcome",$s=5,Bs=()=>{const[e,t]=y.useState(null),[n,r]=Mn("sessionStorage",Kr,ao),o=y.useRef(!1),i=Ln(),a=y.useContext(ne.IOConnectContext),c=y.useCallback(async({name:l})=>{try{await a.layouts.setDefaultGlobal(l),t({name:l})}catch(f){console.error("Failed to set default layout: ",{error:f})}},[a]);return y.useEffect(()=>{if(!a||o.current)return;(async()=>{o.current=!0;const f=await a.layouts.getDefaultGlobal()||await a.layouts.get(co,"Global");f&&(t({name:f.name}),n||i(f.name,r))})()},[a,n,i,r]),{defaultLayout:e,selectedLayout:n,setDefaultLayout:c,setSelectedLayout:r}},lo=y.createContext(void 0),rt=()=>{const e=y.useContext(lo);if(e===void 0)throw new Error("useLaunchpadAPI must be used within a LaunchpadAPIProvider");return e},Hs=({children:e,setOpen:t,isOpen:n})=>{const{defaultLayout:r,selectedLayout:o,setDefaultLayout:i,setSelectedLayout:a}=Bs(),l={close:y.useCallback(()=>t(!1),[t]),isOpen:n,defaultLayout:r,selectedLayout:o,setDefaultLayout:i,setSelectedLayout:a};return s.jsx(lo.Provider,{value:l,children:e})},Ht=e=>{const{config:t,isFavoritismEnabled:n,level:r=1,onItemClick:o}=e,[i,a]=y.useState(1),c=t.displayCount??$s,l=eo(),f=rt(),[p,g]=y.useState(0),u=y.useRef({}),h=y.useMemo(()=>t.items.filter(P=>ht(P)),[t.items]),m=y.useMemo(()=>t.items.filter(P=>!ht(P)).slice(0,i*c),[t.items,c,i]);y.useEffect(()=>{f.isOpen||a(1)},[f.isOpen]);const d=()=>{a(P=>P+1)},v=[...h,...m],E=P=>{u.current[P]?.querySelector("[tabIndex]")?.focus(),g(P)};return s.jsxs("li",{className:"section",children:[s.jsx(Yr,{iconSrc:t.iconSrc,iconName:t.iconName,style:{paddingLeft:`${(r-1)*12+6}px`},title:t.title}),s.jsxs("ul",{children:[v.map((P,O)=>ht(P)?s.jsx(Ht,{config:P,isFavoritismEnabled:n,level:r+1,onItemClick:o},P.id):s.jsx("li",{ref:w=>u.current[O]=w,children:s.jsx(so,{isFavoritismEnabled:n,item:P,onClick:(w,x)=>o?.(w,{item:P,modifier:l,selectedContextMenuActionName:x?.name}),style:{paddingLeft:`${r*7}px`},onKeyDown:w=>{Zr({event:w,moveFocus:E,currentIndex:p,min:0,max:v.length-1})},focused:p===O},P.id||O)},P.id||O)),t.items.length-h.length>c*i&&s.jsx("li",{"data-testid":"more-li-element",children:s.jsx("div",{className:"g42-list-item more",style:{paddingLeft:`${r*7+8}px`},role:"button","aria-label":"More",...tt(d),children:s.jsxs("div",{className:"g42-list-row",children:[s.jsx("span",{className:"title",children:"More..."}),s.jsx(ue,{size:12,name:"chevron-down","data-testid":"more-chevron"})]})})})]})]})},uo=e=>`${e.type}-${e.id}`,Vs=(e,t)=>fo(e)[t],fo=e=>e.reduce((t,n)=>ht(n)?{...t,...fo(n.items)}:{...t,[uo(n)]:n},{}),po=y.createContext(void 0),Us=()=>{const e=y.useContext(po);if(e===void 0)throw new Error("useSection must be used within a SectionProvider");return e},Ws=({children:e})=>{const[t,n]=y.useState(null);return s.jsx(po.Provider,{value:[t,n],children:e})},Vt=({config:e,onItemClick:t})=>{const[n,r]=Us(),o=rt(),i=eo(),a=(c,l)=>{const{item:f,selectedContextMenuActionName:p}=l;r({itemName:uo(f),selectedContextMenuActionName:p})};return y.useEffect(()=>{if(!t||!n)return;const{itemName:c,selectedContextMenuActionName:l}=n,f=Vs(e.items,c);f&&(t({item:f,modifier:i,selectedContextMenuActionName:l}),r(null),i!==Bt.SHIFT&&o.close())},[n,e.items,o,t,i,r]),s.jsx(Ht,{config:e,onItemClick:a})};function ho(){const e=rs(),t=os(),n=no(),r=ro(),o=ns(e,t),i=a=>{const{item:c,modifier:l,selectedContextMenuActionName:f}=a;if(!f)return n(c.id,l).catch(p=>{console.error("Failed to start application",{error:p})});r(c,f)};return s.jsx(Vt,{config:o,onItemClick:i})}function bt({children:e,className:t,color:n,...r}){return s.jsx("button",{className:J(t,"g42-btn",n),...r,children:e})}function Ut(e){const{className:t,items:n,onItemClick:r,...o}=e;return s.jsx("div",{className:J("g42-btn-group",t),...o,children:n.map((i,a)=>{const{onClick:c,...l}=i;return s.jsx(bt,{onClick:f=>{c&&c(f),r&&r(f,i)},...l},a)})})}const Zs=e=>({id:"favorites-section",title:"Favorites",items:e,iconName:"star"}),mo=()=>{const{favoriteEntities:e}=$t(),t=Zs(e);return e.length>0?s.jsx(Vt,{config:t}):null},vo=e=>{const{initials:t,className:n,...r}=e;return s.jsx("div",{className:J(n,"profile-icon"),...r,children:t})},go=()=>{const e=y.useContext(ne.IOConnectContext),[t,n]=y.useState([]);y.useEffect(()=>{e&&e.themes?.list().then(o=>n(o)).catch(console.warn)},[e]);const r=async(o,i)=>{i.name&&e.themes?.select(i.name).catch(console.warn)};return s.jsxs("div",{className:"info info-middle",children:[s.jsx("h4",{children:"Settings"}),s.jsxs("div",{className:"flex ai-center",children:[s.jsx("label",{style:{textAlign:"right",width:"40%"},children:"Theme"}),s.jsx("div",{style:{width:"60%",marginLeft:"auto"},children:s.jsx(Ut,{onItemClick:r,items:t.map(({name:o,displayName:i})=>({name:o,children:i}))})})]})]})},yo=({title:e,description:t,links:n=[],onLogout:r})=>{const[o,i]=Mn("sessionStorage",Kr,ao),a=()=>{i(null),r?.()};return s.jsxs("div",{className:"info info-bottom flex flex-column",children:[s.jsx("h4",{children:e||"Support"}),s.jsx("p",{children:t||"New set of thoughtfully curated items and the ability to configure them."}),s.jsx("ul",{children:n.map(({children:c,...l})=>s.jsx("li",{children:s.jsx("a",{...l,children:c})},l.href))}),s.jsx("div",{children:s.jsx(bt,{onClick:a,children:"Log Out"})})]})},bo=e=>e?.split(" ").map(t=>t[0]?.toUpperCase()).join(""),qs=({user:e})=>{const t=y.useContext(ne.IOConnectContext),n=e?.name||"N A";return s.jsxs("div",{className:"flex info info-top",children:[s.jsxs("div",{children:[s.jsx("h4",{children:n}),s.jsxs("p",{children:["PROD"," | ","Version "+t.version]})]}),s.jsx("div",{className:"flex badge",children:bo(n)})]})},xo=({onLogout:e,user:t})=>s.jsxs(s.Fragment,{children:[s.jsx(qs,{user:t}),s.jsx(go,{}),s.jsx(yo,{onLogout:e})]});const wo=y.forwardRef((e,t)=>{const{onSearch:n,searchTerm:r,onClear:o}=e,i=y.useContext(ne.IOConnectContext);return y.useEffect(()=>{!i||!i.search||i.search.setDebounceMS(450)},[i]),s.jsxs("div",{className:"search","data-testid":"search-bar",children:[s.jsx("input",{type:"search",ref:t,className:"g42-input",placeholder:"Find anything",value:r,onChange:n}),s.jsx(ue,{name:"delete-left",className:r.length!==0?"active":"",onClick:o,"data-testid":"delete-icon"})]})}),zs=e=>e.reduce((t,n)=>{const{type:r}=n,o=n.id||n.displayName;if(!o||r.name===Te.LAYOUT)return t;let i=[];r.name===Te.APPLICATION?i=zr:r.name===Te.WORKSPACE?i=Gr:n.secondaryActions&&(i=n.secondaryActions.map(({name:f,method:p,params:g,target:u})=>({name:f,interopParams:{method:p,params:g,target:u}})));const a={id:o,title:n.displayName||o,description:n.description,type:r.name,iconSrc:n.iconURL,mainAction:n.action,contextMenuActions:i},c=t.findIndex(({title:f})=>r.displayName?f===r.displayName:f===r.name),l=t[c];return l?[...t.slice(0,c),{...l,items:[...l.items,a]},...t.slice(c+1)]:[...t,{id:r.name,title:r.displayName||r.name,items:[a]}]},[]);function Co(e){const{resultsToRender:t,isLoading:n}=Es(e.searchTerm),r=rt(),o=gs(),i=to(),a=no(),c=zs(t),l=ro(),f=oo(),p=(u,h)=>{const m=u.type===Te.APPLICATION?l:u.type===Te.WORKSPACE?f:null;m&&m(u,h)},g=async(u,h)=>{const{item:m,modifier:d,selectedContextMenuActionName:v}=h,{type:E,id:P,mainAction:O}=m,w=v?m.contextMenuActions?.find(x=>x.name===v):null;w?.interopParams?o(w.interopParams):v?p(m,v):O?o(O):E===Te.APPLICATION?a(P,d).catch(x=>{console.error("Failed to start application",{error:x})}):E===Te.WORKSPACE&&i(P,d).catch(x=>{console.error("Failed to restore workspace",{error:x})}),d!==Bt.SHIFT&&r.close()};return n?s.jsx("p",{style:{padding:"12px 24px"},children:"Loading..."}):t.length===0?s.jsx("p",{style:{padding:"12px 24px"},children:"No results found."}):s.jsx("ul",{children:c.map((u,h)=>s.jsx(Ht,{config:u,isFavoritismEnabled:!1,onItemClick:g},u.id||h))})}const Gs=(e,t)=>({id:"workspaces-section",title:"Workspaces",items:e.map(n=>({...n,type:Te.WORKSPACE,isOpen:t[n.title]?.length>0,contextMenuActions:Gr})).sort((n,r)=>n.title.localeCompare(r.title))}),Oo=()=>{const e=js(),t=Ss(),n=to(),r=oo(),o=Gs(e,t),i=a=>{const{item:c,modifier:l,selectedContextMenuActionName:f}=a;if(!f)return n(c.id,l).catch(p=>{console.error("Failed to restore workspace",{error:p})});r(c,f)};return s.jsx(Vt,{config:o,onItemClick:i})};var b={},lr={get exports(){return b},set exports(e){b=e}},Nt={},Ys={get exports(){return Nt},set exports(e){Nt=e}},q={};/** @license React v16.13.1
23
23
  * react-is.production.min.js
24
24
  *
25
25
  * Copyright (c) Facebook, Inc. and its affiliates.
26
26
  *
27
27
  * This source code is licensed under the MIT license found in the
28
28
  * LICENSE file in the root directory of this source tree.
29
- */var jr;function bs(){if(jr)return q;jr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function E(b){if(typeof b=="object"&&b!==null){var k=b.$$typeof;switch(k){case t:switch(b=b.type,b){case l:case p:case r:case i:case o:case g:return b;default:switch(b=b&&b.$$typeof,b){case c:case u:case v:case h:case s:return b;default:return k}}case n:return k}}}function w(b){return E(b)===p}return q.AsyncMode=l,q.ConcurrentMode=p,q.ContextConsumer=c,q.ContextProvider=s,q.Element=t,q.ForwardRef=u,q.Fragment=r,q.Lazy=v,q.Memo=h,q.Portal=n,q.Profiler=i,q.StrictMode=o,q.Suspense=g,q.isAsyncMode=function(b){return w(b)||E(b)===l},q.isConcurrentMode=w,q.isContextConsumer=function(b){return E(b)===c},q.isContextProvider=function(b){return E(b)===s},q.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},q.isForwardRef=function(b){return E(b)===u},q.isFragment=function(b){return E(b)===r},q.isLazy=function(b){return E(b)===v},q.isMemo=function(b){return E(b)===h},q.isPortal=function(b){return E(b)===n},q.isProfiler=function(b){return E(b)===i},q.isStrictMode=function(b){return E(b)===o},q.isSuspense=function(b){return E(b)===g},q.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===p||b===i||b===o||b===g||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===h||b.$$typeof===s||b.$$typeof===c||b.$$typeof===u||b.$$typeof===m||b.$$typeof===O||b.$$typeof===j||b.$$typeof===d)},q.typeOf=E,q}var z={};/** @license React v16.13.1
29
+ */var ur;function Ks(){if(ur)return q;ur=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function O(x){if(typeof x=="object"&&x!==null){var k=x.$$typeof;switch(k){case t:switch(x=x.type,x){case l:case f:case r:case i:case o:case g:return x;default:switch(x=x&&x.$$typeof,x){case c:case p:case m:case h:case a:return x;default:return k}}case n:return k}}}function w(x){return O(x)===f}return q.AsyncMode=l,q.ConcurrentMode=f,q.ContextConsumer=c,q.ContextProvider=a,q.Element=t,q.ForwardRef=p,q.Fragment=r,q.Lazy=m,q.Memo=h,q.Portal=n,q.Profiler=i,q.StrictMode=o,q.Suspense=g,q.isAsyncMode=function(x){return w(x)||O(x)===l},q.isConcurrentMode=w,q.isContextConsumer=function(x){return O(x)===c},q.isContextProvider=function(x){return O(x)===a},q.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},q.isForwardRef=function(x){return O(x)===p},q.isFragment=function(x){return O(x)===r},q.isLazy=function(x){return O(x)===m},q.isMemo=function(x){return O(x)===h},q.isPortal=function(x){return O(x)===n},q.isProfiler=function(x){return O(x)===i},q.isStrictMode=function(x){return O(x)===o},q.isSuspense=function(x){return O(x)===g},q.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===f||x===i||x===o||x===g||x===u||typeof x=="object"&&x!==null&&(x.$$typeof===m||x.$$typeof===h||x.$$typeof===a||x.$$typeof===c||x.$$typeof===p||x.$$typeof===v||x.$$typeof===E||x.$$typeof===P||x.$$typeof===d)},q.typeOf=O,q}var z={};/** @license React v16.13.1
30
30
  * react-is.development.js
31
31
  *
32
32
  * Copyright (c) Facebook, Inc. and its affiliates.
33
33
  *
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
- */var Sr;function xs(){return Sr||(Sr=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function E(S){return typeof S=="string"||typeof S=="function"||S===r||S===p||S===i||S===o||S===g||S===f||typeof S=="object"&&S!==null&&(S.$$typeof===v||S.$$typeof===h||S.$$typeof===s||S.$$typeof===c||S.$$typeof===u||S.$$typeof===m||S.$$typeof===O||S.$$typeof===j||S.$$typeof===d)}function w(S){if(typeof S=="object"&&S!==null){var le=S.$$typeof;switch(le){case t:var ye=S.type;switch(ye){case l:case p:case r:case i:case o:case g:return ye;default:var Ye=ye&&ye.$$typeof;switch(Ye){case c:case u:case v:case h:case s:return Ye;default:return le}}case n:return le}}}var b=l,k=p,F=c,W=s,Y=t,G=u,V=r,te=v,J=h,re=n,ve=i,K=o,ee=g,ge=!1;function ue(S){return ge||(ge=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),C(S)||w(S)===l}function C(S){return w(S)===p}function P(S){return w(S)===c}function T(S){return w(S)===s}function R(S){return typeof S=="object"&&S!==null&&S.$$typeof===t}function _(S){return w(S)===u}function A(S){return w(S)===r}function N(S){return w(S)===v}function M(S){return w(S)===h}function L(S){return w(S)===n}function B(S){return w(S)===i}function H(S){return w(S)===o}function ne(S){return w(S)===g}z.AsyncMode=b,z.ConcurrentMode=k,z.ContextConsumer=F,z.ContextProvider=W,z.Element=Y,z.ForwardRef=G,z.Fragment=V,z.Lazy=te,z.Memo=J,z.Portal=re,z.Profiler=ve,z.StrictMode=K,z.Suspense=ee,z.isAsyncMode=ue,z.isConcurrentMode=C,z.isContextConsumer=P,z.isContextProvider=T,z.isElement=R,z.isForwardRef=_,z.isFragment=A,z.isLazy=N,z.isMemo=M,z.isPortal=L,z.isProfiler=B,z.isStrictMode=H,z.isSuspense=ne,z.isValidElementType=E,z.typeOf=w}()),z}var Pr;function Fo(){return Pr||(Pr=1,function(e){process.env.NODE_ENV==="production"?e.exports=bs():e.exports=xs()}(ys)),Ht}/*
36
+ */var fr;function Xs(){return fr||(fr=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function O(j){return typeof j=="string"||typeof j=="function"||j===r||j===f||j===i||j===o||j===g||j===u||typeof j=="object"&&j!==null&&(j.$$typeof===m||j.$$typeof===h||j.$$typeof===a||j.$$typeof===c||j.$$typeof===p||j.$$typeof===v||j.$$typeof===E||j.$$typeof===P||j.$$typeof===d)}function w(j){if(typeof j=="object"&&j!==null){var ce=j.$$typeof;switch(ce){case t:var ge=j.type;switch(ge){case l:case f:case r:case i:case o:case g:return ge;default:var We=ge&&ge.$$typeof;switch(We){case c:case p:case m:case h:case a:return We;default:return ce}}case n:return ce}}}var x=l,k=f,V=c,X=a,G=t,W=p,H=r,te=m,Q=h,oe=n,he=i,Y=o,ee=g,ve=!1;function le(j){return ve||(ve=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),C(j)||w(j)===l}function C(j){return w(j)===f}function S(j){return w(j)===c}function A(j){return w(j)===a}function R(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function T(j){return w(j)===p}function _(j){return w(j)===r}function N(j){return w(j)===m}function I(j){return w(j)===h}function L(j){return w(j)===n}function B(j){return w(j)===i}function $(j){return w(j)===o}function re(j){return w(j)===g}z.AsyncMode=x,z.ConcurrentMode=k,z.ContextConsumer=V,z.ContextProvider=X,z.Element=G,z.ForwardRef=W,z.Fragment=H,z.Lazy=te,z.Memo=Q,z.Portal=oe,z.Profiler=he,z.StrictMode=Y,z.Suspense=ee,z.isAsyncMode=le,z.isConcurrentMode=C,z.isContextConsumer=S,z.isContextProvider=A,z.isElement=R,z.isForwardRef=T,z.isFragment=_,z.isLazy=N,z.isMemo=I,z.isPortal=L,z.isProfiler=B,z.isStrictMode=$,z.isSuspense=re,z.isValidElementType=O,z.typeOf=w}()),z}var dr;function Eo(){return dr||(dr=1,function(e){process.env.NODE_ENV==="production"?e.exports=Ks():e.exports=Xs()}(Ys)),Nt}/*
37
37
  object-assign
38
38
  (c) Sindre Sorhus
39
39
  @license MIT
40
- */var cn,kr;function ws(){if(kr)return cn;kr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},c=0;c<10;c++)s["_"+String.fromCharCode(c)]=c;var l=Object.getOwnPropertyNames(s).map(function(u){return s[u]});if(l.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(u){p[u]=u}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return cn=o()?Object.assign:function(i,s){for(var c,l=r(i),p,u=1;u<arguments.length;u++){c=Object(arguments[u]);for(var g in c)t.call(c,g)&&(l[g]=c[g]);if(e){p=e(c);for(var f=0;f<p.length;f++)n.call(c,p[f])&&(l[p[f]]=c[p[f]])}}return l},cn}var ln,_r;function Qn(){if(_r)return ln;_r=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ln=e,ln}var un,Nr;function $o(){return Nr||(Nr=1,un=Function.call.bind(Object.prototype.hasOwnProperty)),un}var fn,Tr;function Es(){if(Tr)return fn;Tr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Qn(),n={},r=$o();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,c,l,p){if(process.env.NODE_ENV!=="production"){for(var u in i)if(r(i,u)){var g;try{if(typeof i[u]!="function"){var f=Error((l||"React class")+": "+c+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}g=i[u](s,u,l,c,null,t)}catch(v){g=v}if(g&&!(g instanceof Error)&&e((l||"React class")+": type specification of "+c+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var h=p?p():"";e("Failed "+c+" type: "+g.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},fn=o,fn}var dn,Ar;function Cs(){if(Ar)return dn;Ar=1;var e=Fo(),t=ws(),n=Qn(),r=$o(),o=Es(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var l="Warning: "+c;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return dn=function(c,l){var p=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function g(C){var P=C&&(p&&C[p]||C[u]);if(typeof P=="function")return P}var f="<<anonymous>>",h={array:O("array"),bigint:O("bigint"),bool:O("boolean"),func:O("function"),number:O("number"),object:O("object"),string:O("string"),symbol:O("symbol"),any:j(),arrayOf:E,element:w(),elementType:b(),instanceOf:k,node:G(),objectOf:W,oneOf:F,oneOfType:Y,shape:te,exact:J};function v(C,P){return C===P?C!==0||1/C===1/P:C!==C&&P!==P}function d(C,P){this.message=C,this.data=P&&typeof P=="object"?P:{},this.stack=""}d.prototype=Error.prototype;function m(C){if(process.env.NODE_ENV!=="production")var P={},T=0;function R(A,N,M,L,B,H,ne){if(L=L||f,H=H||M,ne!==n){if(l){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var le=L+":"+M;!P[le]&&T<3&&(i("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+L+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),P[le]=!0,T++)}}return N[M]==null?A?N[M]===null?new d("The "+B+" `"+H+"` is marked as required "+("in `"+L+"`, but its value is `null`.")):new d("The "+B+" `"+H+"` is marked as required in "+("`"+L+"`, but its value is `undefined`.")):null:C(N,M,L,B,H)}var _=R.bind(null,!1);return _.isRequired=R.bind(null,!0),_}function O(C){function P(T,R,_,A,N,M){var L=T[R],B=K(L);if(B!==C){var H=ee(L);return new d("Invalid "+A+" `"+N+"` of type "+("`"+H+"` supplied to `"+_+"`, expected ")+("`"+C+"`."),{expectedType:C})}return null}return m(P)}function j(){return m(s)}function E(C){function P(T,R,_,A,N){if(typeof C!="function")return new d("Property `"+N+"` of component `"+_+"` has invalid PropType notation inside arrayOf.");var M=T[R];if(!Array.isArray(M)){var L=K(M);return new d("Invalid "+A+" `"+N+"` of type "+("`"+L+"` supplied to `"+_+"`, expected an array."))}for(var B=0;B<M.length;B++){var H=C(M,B,_,A,N+"["+B+"]",n);if(H instanceof Error)return H}return null}return m(P)}function w(){function C(P,T,R,_,A){var N=P[T];if(!c(N)){var M=K(N);return new d("Invalid "+_+" `"+A+"` of type "+("`"+M+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return m(C)}function b(){function C(P,T,R,_,A){var N=P[T];if(!e.isValidElementType(N)){var M=K(N);return new d("Invalid "+_+" `"+A+"` of type "+("`"+M+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return m(C)}function k(C){function P(T,R,_,A,N){if(!(T[R]instanceof C)){var M=C.name||f,L=ue(T[R]);return new d("Invalid "+A+" `"+N+"` of type "+("`"+L+"` supplied to `"+_+"`, expected ")+("instance of `"+M+"`."))}return null}return m(P)}function F(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function P(T,R,_,A,N){for(var M=T[R],L=0;L<C.length;L++)if(v(M,C[L]))return null;var B=JSON.stringify(C,function(ne,S){var le=ee(S);return le==="symbol"?String(S):S});return new d("Invalid "+A+" `"+N+"` of value `"+String(M)+"` "+("supplied to `"+_+"`, expected one of "+B+"."))}return m(P)}function W(C){function P(T,R,_,A,N){if(typeof C!="function")return new d("Property `"+N+"` of component `"+_+"` has invalid PropType notation inside objectOf.");var M=T[R],L=K(M);if(L!=="object")return new d("Invalid "+A+" `"+N+"` of type "+("`"+L+"` supplied to `"+_+"`, expected an object."));for(var B in M)if(r(M,B)){var H=C(M,B,_,A,N+"."+B,n);if(H instanceof Error)return H}return null}return m(P)}function Y(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var P=0;P<C.length;P++){var T=C[P];if(typeof T!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ge(T)+" at index "+P+"."),s}function R(_,A,N,M,L){for(var B=[],H=0;H<C.length;H++){var ne=C[H],S=ne(_,A,N,M,L,n);if(S==null)return null;S.data&&r(S.data,"expectedType")&&B.push(S.data.expectedType)}var le=B.length>0?", expected one of type ["+B.join(", ")+"]":"";return new d("Invalid "+M+" `"+L+"` supplied to "+("`"+N+"`"+le+"."))}return m(R)}function G(){function C(P,T,R,_,A){return re(P[T])?null:new d("Invalid "+_+" `"+A+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return m(C)}function V(C,P,T,R,_){return new d((C||"React class")+": "+P+" type `"+T+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_+"`.")}function te(C){function P(T,R,_,A,N){var M=T[R],L=K(M);if(L!=="object")return new d("Invalid "+A+" `"+N+"` of type `"+L+"` "+("supplied to `"+_+"`, expected `object`."));for(var B in C){var H=C[B];if(typeof H!="function")return V(_,A,N,B,ee(H));var ne=H(M,B,_,A,N+"."+B,n);if(ne)return ne}return null}return m(P)}function J(C){function P(T,R,_,A,N){var M=T[R],L=K(M);if(L!=="object")return new d("Invalid "+A+" `"+N+"` of type `"+L+"` "+("supplied to `"+_+"`, expected `object`."));var B=t({},T[R],C);for(var H in B){var ne=C[H];if(r(C,H)&&typeof ne!="function")return V(_,A,N,H,ee(ne));if(!ne)return new d("Invalid "+A+" `"+N+"` key `"+H+"` supplied to `"+_+"`.\nBad object: "+JSON.stringify(T[R],null," ")+`
41
- Valid keys: `+JSON.stringify(Object.keys(C),null," "));var S=ne(M,H,_,A,N+"."+H,n);if(S)return S}return null}return m(P)}function re(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(re);if(C===null||c(C))return!0;var P=g(C);if(P){var T=P.call(C),R;if(P!==C.entries){for(;!(R=T.next()).done;)if(!re(R.value))return!1}else for(;!(R=T.next()).done;){var _=R.value;if(_&&!re(_[1]))return!1}}else return!1;return!0;default:return!1}}function ve(C,P){return C==="symbol"?!0:P?P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol:!1}function K(C){var P=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":ve(P,C)?"symbol":P}function ee(C){if(typeof C>"u"||C===null)return""+C;var P=K(C);if(P==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return P}function ge(C){var P=ee(C);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function ue(C){return!C.constructor||!C.constructor.name?f:C.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},dn}var pn,Rr;function Os(){if(Rr)return pn;Rr=1;var e=Qn();function t(){}function n(){}return n.resetWarningCache=t,pn=function(){function r(s,c,l,p,u,g){if(g!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},pn}if(process.env.NODE_ENV!=="production"){var js=Fo(),Ss=!0;Or.exports=Cs()(js.isElement,Ss)}else Or.exports=Os()();function On(e){return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}var Ps;function ft(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ps;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function ks(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function _s(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,o,i={};r>0;)r-=1,o=n[r],i[o]=e[o];return i}var Mr={};function Ir(e){Mr[e]||(typeof console<"u"&&console.error(e),Mr[e]=!0)}var Ns=(typeof window>"u"?"undefined":On(window))==="object"&&window.Element||function(){};function Ts(e,t,n){if(!(e[t]instanceof Ns))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}x.oneOfType([x.string,x.func,Ts,x.shape({current:x.any})]);var kt=x.oneOfType([x.func,x.string,x.shape({$$typeof:x.symbol,render:x.func}),x.arrayOf(x.oneOfType([x.func,x.string,x.shape({$$typeof:x.symbol,render:x.func})]))]),As={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},Dr=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Mt={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},Rs=["className","cssModule","variant","innerRef"];function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn.apply(this,arguments)}function Ms(e,t){if(e==null)return{};var n=Is(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Is(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Ds={active:x.bool,"aria-label":x.string,onClick:x.func,variant:x.oneOf(["white"]),className:x.string,cssModule:x.object,innerRef:x.oneOfType([x.object,x.string,x.func])},Ls={"aria-label":"close"};function er(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,o=Ms(e,Rs),i=ft(Q(t,"btn-close",n&&"btn-close-".concat(n)));return y.createElement("button",jn({ref:r,type:"button",className:i},o))}er.propTypes=Ds;er.defaultProps=Ls;var Fs=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function Sn(){return Sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sn.apply(this,arguments)}function $s(e,t){if(e==null)return{};var n=Hs(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hs(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Bs={active:x.bool,"aria-label":x.string,block:x.bool,children:x.node,className:x.string,cssModule:x.object,close:x.bool,color:x.string,disabled:x.bool,innerRef:x.oneOfType([x.object,x.func,x.string]),onClick:x.func,outline:x.bool,size:x.string,tag:kt},Vs={color:"secondary",tag:"button"};function _t(e){var t=y.useCallback(function(m){if(e.disabled){m.preventDefault();return}if(e.onClick)return e.onClick(m)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],o=e.block,i=e.className,s=e.close,c=e.cssModule,l=e.color,p=e.outline,u=e.size,g=e.tag,f=e.innerRef,h=$s(e,Fs);if(s)return y.createElement(er,h);var v="btn".concat(p?"-outline":"","-").concat(l),d=ft(Q(i,"btn",v,u?"btn-".concat(u):!1,o?"d-block w-100":!1,{active:n,disabled:e.disabled}),c);return h.href&&g==="button"&&(g="a"),y.createElement(g,Sn({type:g==="button"&&h.onClick?"button":void 0},h,{className:d,ref:f,onClick:t,"aria-label":r}))}_t.propTypes=Bs;_t.defaultProps=Vs;function Us(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Pn(e,t){return Pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Pn(e,t)}function Ws(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pn(e,t)}const Lr={disabled:!1};var Gs=process.env.NODE_ENV!=="production"?x.oneOfType([x.number,x.shape({enter:x.number,exit:x.number,appear:x.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&x.oneOfType([x.string,x.shape({enter:x.string,exit:x.string,active:x.string}),x.shape({enter:x.string,enterDone:x.string,enterActive:x.string,exit:x.string,exitDone:x.string,exitActive:x.string})]);const Ho=y.createContext(null);var Zs=function(t){return t.scrollTop},gt="unmounted",Ue="exited",We="entering",Qe="entered",kn="exiting",Re=function(e){Ws(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,c=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?c?(l=Ue,i.appearStatus=We):l=Qe:r.unmountOnExit||r.mountOnEnter?l=gt:l=Ue,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===gt?{status:Ue}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==We&&s!==Qe&&(i=We):(s===We||s===Qe)&&(i=kn)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,c;return i=s=c=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,c=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:c}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===We){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:et.findDOMNode(this);s&&Zs(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ue&&this.setState({status:gt})},n.performEnter=function(o){var i=this,s=this.props.enter,c=this.context?this.context.isMounting:o,l=this.props.nodeRef?[c]:[et.findDOMNode(this),c],p=l[0],u=l[1],g=this.getTimeouts(),f=c?g.appear:g.enter;if(!o&&!s||Lr.disabled){this.safeSetState({status:Qe},function(){i.props.onEntered(p)});return}this.props.onEnter(p,u),this.safeSetState({status:We},function(){i.props.onEntering(p,u),i.onTransitionEnd(f,function(){i.safeSetState({status:Qe},function(){i.props.onEntered(p,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),c=this.props.nodeRef?void 0:et.findDOMNode(this);if(!i||Lr.disabled){this.safeSetState({status:Ue},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:kn},function(){o.props.onExiting(c),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Ue},function(){o.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(c){s&&(s=!1,i.nextCallback=null,o(c))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:et.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!s||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],p=l[0],u=l[1];this.props.addEndListener(p,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===gt)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var c=Us(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(Ho.Provider,{value:null},typeof s=="function"?s(o,c):y.cloneElement(y.Children.only(s),c))},t}(y.Component);Re.contextType=Ho;Re.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:x.shape({current:typeof Element>"u"?x.any:function(e,t,n,r,o,i){var s=e[t];return x.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:x.oneOfType([x.func.isRequired,x.element.isRequired]).isRequired,in:x.bool,mountOnEnter:x.bool,unmountOnExit:x.bool,appear:x.bool,enter:x.bool,exit:x.bool,timeout:function(t){var n=Gs;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[t].concat(o))},addEndListener:x.func,onEnter:x.func,onEntering:x.func,onEntered:x.func,onExit:x.func,onExiting:x.func,onExited:x.func}:{};function Xe(){}Re.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xe,onEntering:Xe,onEntered:Xe,onExit:Xe,onExiting:Xe,onExited:Xe};Re.UNMOUNTED=gt;Re.EXITED=Ue;Re.ENTERING=We;Re.ENTERED=Qe;Re.EXITING=kn;const tr=Re;function _n(e){return _n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_n(e)}var qs=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],Je;function Bt(){return Bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bt.apply(this,arguments)}function zs(e,t){if(e==null)return{};var n=Ys(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ys(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ks(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xs(e,t,n){return t&&Fr(e.prototype,t),n&&Fr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Js(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nn(e,t)}function Nn(e,t){return Nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Nn(e,t)}function Qs(e){var t=tc();return function(){var r=Vt(e),o;if(t){var i=Vt(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return ec(this,o)}}function ec(e,t){if(t&&(_n(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bo(e)}function Bo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tc(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vt(e){return Vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vt(e)}function $r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ct(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$r(Object(n),!0).forEach(function(r){nt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nc=ct(ct({},tr.propTypes),{},{horizontal:x.bool,isOpen:x.bool,children:x.oneOfType([x.arrayOf(x.node),x.node]),tag:kt,className:x.node,navbar:x.bool,cssModule:x.object,innerRef:x.shape({current:x.object})}),rc=ct(ct({},tr.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:As.Collapse}),oc=(Je={},nt(Je,Mt.ENTERING,"collapsing"),nt(Je,Mt.ENTERED,"collapse show"),nt(Je,Mt.EXITING,"collapsing"),nt(Je,Mt.EXITED,"collapse"),Je);function ic(e){return oc[e]||"collapse"}var nr=function(e){Js(n,e);var t=Qs(n);function n(r){var o;return Ks(this,n),o=t.call(this,r),o.state={dimension:null},o.nodeRef=r.innerRef||y.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(i){o[i]=o[i].bind(Bo(o))}),o}return Xs(n,[{key:"onEntering",value:function(o,i){var s=this.getNode();this.setState({dimension:this.getDimension(s)}),this.props.onEntering(s,i)}},{key:"onEntered",value:function(o,i){var s=this.getNode();this.setState({dimension:null}),this.props.onEntered(s,i)}},{key:"onExit",value:function(){var o=this.getNode();this.setState({dimension:this.getDimension(o)}),this.props.onExit(o)}},{key:"onExiting",value:function(){var o=this.getNode();this.getDimension(o),this.setState({dimension:0}),this.props.onExiting(o)}},{key:"onExited",value:function(){var o=this.getNode();this.setState({dimension:null}),this.props.onExited(o)}},{key:"getNode",value:function(){return this.nodeRef.current}},{key:"getDimension",value:function(o){return this.props.horizontal?o.scrollWidth:o.scrollHeight}},{key:"render",value:function(){var o=this,i=this.props,s=i.tag,c=i.horizontal,l=i.isOpen,p=i.className,u=i.navbar,g=i.cssModule,f=i.children;i.innerRef;var h=zs(i,qs),v=this.state.dimension,d=_s(h,Dr),m=ks(h,Dr);return y.createElement(tr,Bt({},d,{in:l,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(O){var j=ic(O),E=ft(Q(p,c&&"collapse-horizontal",j,u&&"navbar-collapse"),g),w=v===null?null:nt({},c?"width":"height",v);return y.createElement(s,Bt({},m,{style:ct(ct({},m.style),w),className:E,ref:o.nodeRef}),f)})}}]),n}(y.Component);nr.propTypes=nc;nr.defaultProps=rc;const ac=nr;function Tn(e){return Tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tn(e)}var sc=["className","cssModule","tag","innerRef"];function An(){return An=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},An.apply(this,arguments)}function cc(e,t){if(e==null)return{};var n=lc(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function uc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fc(e,t,n){return t&&Hr(e.prototype,t),n&&Hr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rn(e,t)}function Rn(e,t){return Rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Rn(e,t)}function pc(e){var t=vc();return function(){var r=Ut(e),o;if(t){var i=Ut(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return hc(this,o)}}function hc(e,t){if(t&&(Tn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mn(e)}function Mn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vc(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ut(e){return Ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ut(e)}var mc={children:x.node,tag:kt,innerRef:x.oneOfType([x.object,x.func,x.string]),className:x.string,cssModule:x.object},gc={tag:"form"},rr=function(e){dc(n,e);var t=pc(n);function n(r){var o;return uc(this,n),o=t.call(this,r),o.getRef=o.getRef.bind(Mn(o)),o.submit=o.submit.bind(Mn(o)),o}return fc(n,[{key:"getRef",value:function(o){this.props.innerRef&&this.props.innerRef(o),this.ref=o}},{key:"submit",value:function(){this.ref&&this.ref.submit()}},{key:"render",value:function(){var o=this.props,i=o.className,s=o.cssModule,c=o.tag,l=o.innerRef,p=cc(o,sc),u=ft(i,s);return y.createElement(c,An({},p,{ref:l,className:u}))}}]),n}(y.Component);rr.propTypes=mc;rr.defaultProps=gc;const Vo=rr;var yc=["className","cssModule","row","disabled","check","inline","floating","tag","switch"];function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},In.apply(this,arguments)}function bc(e,t){if(e==null)return{};var n=xc(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var wc={children:x.node,row:x.bool,check:x.bool,switch:x.bool,inline:x.bool,floating:x.bool,disabled:x.bool,tag:kt,className:x.string,cssModule:x.object},Ec={tag:"div"};function Wt(e){var t=e.className,n=e.cssModule,r=e.row,o=e.disabled,i=e.check,s=e.inline,c=e.floating,l=e.tag,p=e.switch,u=bc(e,yc),g=i||p,f=ft(Q(t,r?"row":!1,g?"form-check":"mb-3",p?"form-switch":!1,g&&s?"form-check-inline":!1,g&&o?"disabled":!1,c&&"form-floating"),n);return l==="fieldset"&&(u.disabled=o),y.createElement(l,In({},u,{className:f}))}Wt.propTypes=wc;Wt.defaultProps=Ec;function Dn(e){return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(e)}var Cc=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ln.apply(this,arguments)}function Oc(e,t){if(e==null)return{};var n=jc(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Sc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Br(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pc(e,t,n){return t&&Br(e.prototype,t),n&&Br(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fn(e,t)}function Fn(e,t){return Fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Fn(e,t)}function _c(e){var t=Tc();return function(){var r=Gt(e),o;if(t){var i=Gt(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Nc(this,o)}}function Nc(e,t){if(t&&(Dn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $n(e)}function $n(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tc(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Gt(e){return Gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gt(e)}var Ac={children:x.node,type:x.string,size:x.oneOfType([x.number,x.string]),bsSize:x.string,valid:x.bool,invalid:x.bool,tag:kt,innerRef:x.oneOfType([x.object,x.func,x.string]),plaintext:x.bool,addon:x.bool,className:x.string,cssModule:x.object},Rc={type:"text"},or=function(e){kc(n,e);var t=_c(n);function n(r){var o;return Sc(this,n),o=t.call(this,r),o.getRef=o.getRef.bind($n(o)),o.focus=o.focus.bind($n(o)),o}return Pc(n,[{key:"getRef",value:function(o){this.props.innerRef&&this.props.innerRef(o),this.ref=o}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var o=this.props,i=o.className,s=o.cssModule,c=o.type,l=o.bsSize,p=o.valid,u=o.invalid,g=o.tag,f=o.addon,h=o.plaintext,v=o.innerRef,d=Oc(o,Cc),m=["switch","radio","checkbox"].indexOf(c)>-1,O=/\D/g,j=c==="textarea",E=c==="select",w=c==="range",b=g||(E||j?c:"input"),k="form-control";h?(k="".concat(k,"-plaintext"),b=g||"input"):w?k="form-range":E?k="form-select":m&&(f?k=null:k="form-check-input"),d.size&&O.test(d.size)&&(Ir(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),l=d.size,delete d.size);var F=ft(Q(i,u&&"is-invalid",p&&"is-valid",l?E?"form-select-".concat(l):"form-control-".concat(l):!1,k),s);return(b==="input"||g&&typeof g=="function")&&(d.type=c==="switch"?"checkbox":c),d.children&&!(h||c==="select"||typeof b!="string"||b==="select")&&(Ir('Input with a type of "'.concat(c,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete d.children),y.createElement(b,Ln({},d,{ref:v,className:F,"aria-invalid":u}))}}]),n}(y.Component);or.propTypes=Ac;or.defaultProps=Rc;const Vr=or,Mc=async e=>{const{defaultLayout:t,glue:n,setDefaultLayout:r,restoreLayout:o}=e;t||!n||!await n.layouts.get(wt,"Global")||(await o(wt),r({name:wt}))},Ic={success:"check"},Dc=({className:e,message:t,type:n})=>a.jsxs("div",{className:Q("layout-notification",`layout-notification-${n}`,e),children:[a.jsx(fe,{size:12,name:Ic[n]}),a.jsx("span",{children:t})]}),Uo=()=>{const[e,t]=y.useState(!1),[n,r]=y.useState([]),[o,i]=y.useState(null),[s,c]=Ft("localStorage",wa,Cn),[l,p]=Ft("sessionStorage",so,Cn),u=y.useContext(ce.GlueContext),g=y.useRef(null),f=y.useRef(null),[h,v]=y.useState(l?.name||""),d=y.useCallback(async j=>{if(u)try{await u.layouts.restore({name:j,type:"Global"}),p({name:j})}catch(E){console.error(E)}},[u,p]);y.useEffect(()=>{if(!u)return;let j=!1;const E=u.layouts.onAdded(b=>{if(b.type!=="Global"||j)return;const{name:k,type:F}=b;r(W=>[...W,{name:k,id:k,type:F}])}),w=u.layouts.onRemoved(b=>{b.type!=="Global"||j||r(k=>k.filter(F=>F.name!==b.name))});return()=>{j=!0,E(),w()}},[u]),y.useEffect(()=>{l||!s||d(s.name)},[l,s,d]),y.useEffect(()=>{Mc({glue:u,defaultLayout:s,restoreLayout:d,setDefaultLayout:c}).catch(console.warn)},[u,s,d,c]),y.useEffect(()=>{if(!o)return;const j=setTimeout(()=>i(null),3e3);return()=>clearTimeout(j)},[o]),y.useEffect(()=>{if(!e)return;const j=w=>{f.current?.contains(w.target)||t(!1)},E=()=>{document.activeElement?.nodeName==="IFRAME"&&t(!1)};return document.addEventListener("click",j,!0),window.addEventListener("blur",E,!0),()=>{document.removeEventListener("click",j,!0),window.removeEventListener("blur",E,!0)}},[e]);const m=j=>async E=>{E.stopPropagation();try{await j()}catch(w){console.error("Failed to handle layout action: ",w)}},O={save:{label:"Save",kind:"save",onClick:m(async()=>{await u.layouts.save({name:h,type:"Global"}),p({name:h}),i({message:"Saved",type:"success"})})},restore:{label:"Restore",kind:"restore",disabled:!n.length,onClick:m(()=>{l&&d(l.name)})}};return a.jsxs("footer",{className:"footer",ref:f,children:[a.jsxs("div",{"aria-label":"Layout settings","aria-expanded":e,role:"button",...Yt(()=>{v(l?.name||""),t(j=>!j)}),className:"current-layout flex ai-center",children:[a.jsx("span",{className:Q("name",{hidden:e}),children:l?.name||"No selected layout"}),a.jsxs("div",{className:"flex ai-center",children:[!e&&a.jsx(Do,{actions:[O.save,O.restore]}),a.jsx(fe,{className:Q("ms-8","settings-toggle-button",{"settings-toggle-button-rotated":e}),name:"chevron-up"})]})]}),a.jsx(ac,{isOpen:e,children:a.jsx("div",{ref:g,className:"layouts-container",children:a.jsx(Lo,{layouts:n.sort((j,E)=>j.name.localeCompare(E.name)).map(j=>({...j,isSelected:j.name===l?.name,isDefault:j.name===s?.name})),inputValue:h,onInputChange:v,selectedLayout:l,onLayoutItemClick:({name:j})=>d(j),actions:[O.save,O.restore],setDefaultLayout:c})})}),o?a.jsx(Dc,{className:Q({"ms-8 me-8":e}),message:o.message,type:o.type}):a.jsx("div",{className:"powered-by",children:"Powered by io.Connect Browser"})]})},Wo=y.forwardRef((e,t)=>{const{onSearch:n,searchTerm:r,onClear:o}=e,i=y.useContext(ce.GlueContext);return y.useEffect(()=>{!i||!i.search||i.search.setDebounceMS(450)},[i]),a.jsxs("div",{className:"search","data-testid":"search-bar",children:[a.jsx("input",{type:"search",ref:t,className:"g42-input",placeholder:"Find anything",value:r,onChange:n}),a.jsx(fe,{name:"delete-left",className:r.length!==0?"active":"",onClick:o,"data-testid":"delete-icon"})]})}),Lc=e=>e.reduce((t,n)=>{const{type:r}=n,o=n.id||n.displayName;if(!o||r.name===Ne.LAYOUT)return t;let i=[];r.name===Ne.APPLICATION?i=oo:r.name===Ne.WORKSPACE?i=io:n.secondaryActions&&(i=n.secondaryActions.map(({name:p,method:u,params:g,target:f})=>({name:p,interopParams:{method:u,params:g,target:f}})));const s={id:o,title:n.displayName||o,description:n.description,type:r.name,iconSrc:n.iconURL,mainAction:n.action,contextMenuActions:i},c=t.findIndex(({title:p})=>r.displayName?p===r.displayName:p===r.name),l=t[c];return l?[...t.slice(0,c),{...l,items:[...l.items,s]},...t.slice(c+1)]:[...t,{id:r.name,title:r.displayName||r.name,items:[s]}]},[]);function Go(e){const{resultsToRender:t,isLoading:n}=Ia(e.searchTerm),r=Kn(),o=Ma(),i=po(),s=ho(),c=Lc(t),l=vo(),p=mo(),u=(f,h)=>{const v=f.type===Ne.APPLICATION?l:f.type===Ne.WORKSPACE?p:null;v&&v(f,h).catch(d=>{console.error("Failed to execute action",{error:d})})},g=async(f,h)=>{const{item:v,modifier:d,selectedContextMenuActionName:m}=h,{type:O,id:j,mainAction:E}=v,w=m?v.contextMenuActions?.find(b=>b.name===m):null;w?.interopParams?o(w.interopParams):m?u(v,m):E?o(E):O===Ne.APPLICATION?s(j,d).catch(b=>{console.error("Failed to start application",{error:b})}):O===Ne.WORKSPACE&&i(j,d).catch(b=>{console.error("Failed to restore workspace",{error:b})}),d!==Kt.SHIFT&&r.close()};return n?a.jsx("p",{style:{padding:"12px 24px"},children:"Loading..."}):t.length===0?a.jsx("p",{style:{padding:"12px 24px"},children:"No results found."}):a.jsx("ul",{children:c.map((f,h)=>a.jsx(Xt,{config:f,isFavoritismEnabled:!1,onItemClick:g},f.id||h))})}const Fc="_notification_1ixae_1",$c="_header_1ixae_8",Ge={notification:Fc,header:$c,"header-caption":"_header-caption_1ixae_12","notifications-list":"_notifications-list_1ixae_23","notifications-list-item":"_notifications-list-item_1ixae_30","no-notifications-list-item":"_no-notifications-list-item_1ixae_46","footer-buttons":"_footer-buttons_1ixae_69"},Hc=e=>{const t=new Date(e),n=t.getHours(),r=t.getMinutes(),o=t.getSeconds(),i=n>=12?"PM":"AM",s=t.getMonth()+1,c=t.getDate(),l=t.getFullYear();return`${n%12}:${r}:${o} ${i} ${s}/${c}/${l}`},Bc={Low:"#7AC70C",Medium:"#E0A900",High:"#E0474C",Critical:"#B8001E",None:"#616161"};function Vc(e){const{severity:t="None",onClick:n,onClose:r,onActionClick:o,actions:i,status:s,id:c,body:l,timestamp:p,title:u}=e;return a.jsxs("div",{className:Ge["notifications-list-item"],style:{borderLeftColor:Bc[t]},onClick:()=>n(e),children:[a.jsxs("div",{children:[a.jsx("div",{children:s}),a.jsx(fe,{onClick:g=>{g.stopPropagation(),r(c)},className:"g42-btn",size:16,name:"close"})]}),a.jsx("h4",{children:u}),l&&a.jsx("p",{children:l}),p&&a.jsx("p",{children:Hc(p)}),i&&a.jsx(Ot,{items:i.map(g=>({children:g.title,onClick:async f=>{f.stopPropagation(),await o(c,g)}}))})]},c)}const hn=["None","Low","Medium","High","Critical"],Ur={type:"timestamp",sortDirection:-1},Uc=()=>{const e=y.useRef(Wr()),[t,n]=y.useState(()=>(e.current=Wr(Ur.sortDirection),{type:Ur.type,sortDirection:e.current()}));return{onNotificationsSort:i=>n({type:i,sortDirection:e.current()}),activeSort:t,sortNotifications:i=>{const{type:s,sortDirection:c}=t;if(s==="timestamp")return[...i].sort((l,p)=>l.timestamp&&p.timestamp?c*(l.timestamp-p.timestamp):!l.timestamp&&!p.timestamp?0:c*((l.timestamp||0)-(p.timestamp||0)));if(s==="severity"){const l=hn[0];return[...i].sort((p,u)=>{const g=hn.findIndex(h=>h===(p.severity||l)),f=hn.findIndex(h=>h===(u.severity||l));return c*(g-f)})}return i}}};function Wr(e=1){const t=[-1,0,1];let n=e;return()=>(n=(n+1)%t.length,t[n])}function Zo(){const e=y.useContext(ce.GlueContext),[t,n]=y.useState([]),{onNotificationsSort:r,sortNotifications:o}=Uc(),i=y.useCallback(async u=>{if(e)try{await e.notifications.clear(u)}catch(g){console.error(g)}},[e]);y.useEffect(()=>{if(!e)return;const u=e.notifications.onRaised(f=>n(h=>[...h,f])),g=e.notifications.onClosed(({id:f})=>n(h=>h.filter(v=>v.id!==f)));return(async()=>{try{const f=await e.notifications.list();n(f)}catch(f){console.error(f)}})(),()=>{u(),g()}},[e]);const s=async()=>{try{await e.notifications.clearAll()}catch(u){console.error(u)}},c=async u=>{try{const{clickInterop:g}=u;if(g){const{method:f,arguments:h,target:v}=g;await e.interop.invoke({name:f},h,v)}else e.notifications.click(u.id);await i(u.id)}catch(g){console.error(g)}},l=async(u,g)=>{try{const{interop:f}=g;if(f){const{method:h,arguments:v,target:d}=f;await e.interop.invoke({name:h},v,d)}else await e.notifications.click(u,g.action);await i(u)}catch(f){console.error(f)}},p=console.log;return a.jsxs("div",{className:Ge.notification,children:[a.jsxs("div",{className:Ge.header,children:[a.jsx("div",{className:Ge["header-caption"],children:a.jsxs("div",{children:["Notifications (",t.length,")"]})}),a.jsx(Ot,{items:[{children:"Latest",onClick:()=>r("timestamp")},{children:"By Priority",onClick:()=>r("severity")}]})]}),a.jsx("div",{className:Ge["notifications-list"],children:t.length===0?a.jsx("div",{className:Ge["no-notifications-list-item"],children:"No notifications"}):o(t).map(u=>a.jsx(Vc,{...u,onActionClick:l,onClick:c,onClose:i},u.id))}),a.jsx(Ot,{className:Ge["footer-buttons"],items:[{children:"Clear All",onClick:s},{children:"Clear All Old",onClick:p}]})]})}const Wc=$e.create(e=>{const t=en();return a.jsx(_o,{...e,visible:t.visible,onClose:()=>{t.hide()},afterClose:()=>{t.remove()},children:a.jsx(Zo,{})})}),Gc=(e,t)=>({id:"workspaces-section",title:"Workspaces",items:e.map(n=>({...n,type:Ne.WORKSPACE,isOpen:t[n.title]?.length>0,contextMenuActions:io})).sort((n,r)=>n.title.localeCompare(r.title))}),qo=()=>{const e=Da(),t=La(),n=po(),r=mo(),o=Gc(e,t),i=s=>{const{item:c,modifier:l,selectedContextMenuActionName:p}=s;if(!p)return n(c.id,l).catch(u=>{console.error("Failed to restore workspace",{error:u})});r(c,p).catch(u=>{console.error("Failed to execute workspace action",{error:u})})};return a.jsx(Jt,{config:o,onItemClick:i})};$e.register("user-profile",ms);$e.register("notifications",Wc);function zo(e){const{open:t,setOpen:n,onLogout:r,className:o,components:i,user:s,...c}=e,[l,p]=y.useState(""),u=y.useRef(null);y.useEffect(()=>{if(t){u.current?.focus();return}p(""),$e.hide("user-profile"),$e.hide("notifications")},[t]);const g=m=>m.dataset.modal?m.dataset.modal:m.parentElement?g(m.parentNode):"",f=m=>{m.preventDefault();const O=g(m.target);O&&$e.show(O,O==="user-profile"?{onLogout:r,user:s}:void 0)},h=m=>{p(m.target.value)},v=()=>{p("")},d=a.jsx(Ka,{children:a.jsx("ul",{children:i?.sections||a.jsxs(a.Fragment,{children:[a.jsx(Oo,{}),a.jsx(qo,{}),a.jsx(Co,{})]})})});return a.jsx(Za,{setOpen:n,isOpen:t,children:a.jsx($e.Provider,{children:a.jsxs("div",{className:Q(o),onClick:f,onKeyDown:m=>{Zn(m)&&f(m)},...c,children:[a.jsxs("header",{children:[a.jsx(Wo,{ref:u,searchTerm:l,onSearch:h,onClear:v}),a.jsxs("div",{className:"action-area",children:[a.jsx(fe,{size:24,name:"bell","data-modal":"notifications",tabIndex:0,"aria-label":"Notifications",role:"button"}),s?a.jsx("span",{className:"avatar","data-modal":"user-profile",role:"button",tabIndex:0,"aria-label":"Profile and Settings",children:Po(s.name||"N A")}):null]}),a.jsx(fe,{className:"btn-close g42-btn g42-btn-icon",size:16,name:"close",handleClick:()=>n(!1)})]}),a.jsx("main",{children:l.trim().length<3?d:a.jsx(Go,{searchTerm:l})}),a.jsx(Uo,{})]})})})}const Zc=({email:e,password:t,canSubmit:n,errorMessage:r,onSubmit:o,onChange:i})=>{const s=c=>{c.key==="Enter"&&(c.preventDefault(),o())};return a.jsxs(Vo,{onKeyUp:s,onSubmit:o,children:[a.jsx(Wt,{children:a.jsx(Vr,{autoFocus:!0,autoComplete:"off",type:"text",placeholder:"Email",value:e,onChange:i,className:"g42-input"})}),a.jsx(Wt,{children:a.jsx(Vr,{autoComplete:"off",type:"password",placeholder:"Password",value:t,onChange:i})}),a.jsx("div",{className:"pb-2 login-error-feedback",children:r??""}),a.jsx(_t,{disabled:!n,onClick:o,children:"SIGN IN"})]})},ir=({className:e="welcome-text text-center mb-3",text:t="Making Your Work Flow"})=>a.jsxs(a.Fragment,{children:[a.jsx("h1",{className:e,children:t}),a.jsx("p",{children:"Integrate apps, simplify user experiences and accelerate digital transformation."})]}),qc={value:"data:image/svg+xml,%3Csvg width='5041' height='1232' viewBox='0 0 5041 1232' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_879_362)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M548.6 178H439.6C368.7 178 310 199.5 269.3 244.5C228.6 289.3 206.7 356 206.7 444.3C206.7 532.6 228.6 599.5 269.3 644.2C310.2 689.2 368.7 710.7 439.6 710.7H548.6C619 710.7 677.6 689.2 718.6 644.2C759.5 599.4 781.6 532.6 781.6 444.2C781.6 355.8 759.5 289 718.6 244.2C677.7 199.3 619 177.7 548.6 177.7V178ZM449.5 293.8H538.9C582.2 293.8 611.9 305.2 631.1 328.3C650.5 351.8 660.5 389.2 660.5 444.4C660.5 499.6 650.5 536.7 631.1 560C612 583 582.2 594.1 538.9 594.1H449.5C405.6 594.1 375.9 583 356.9 560C337.6 536.8 327.7 499.7 327.7 444.5C327.7 389.3 337.4 351.9 356.8 328.4C375.9 305.2 405.6 293.8 449.5 293.8Z' fill='white'/%3E%3Cpath d='M0.700195 189.8C0.700195 183.1 6.10017 177.7 12.8002 177.7H108.6C115.3 177.7 120.7 183.1 120.7 189.8V698.6C120.7 705.3 115.3 710.7 108.6 710.7H12.8002C6.10017 710.7 0.700195 705.3 0.700195 698.6V189.8Z' fill='white'/%3E%3Cpath d='M0.700195 11.9002C0.700195 5.7002 5.70018 0.700195 11.9002 0.700195H109.6C115.7 0.700195 120.7 5.7002 120.7 11.9002V109.5C120.7 115.7 115.7 120.7 109.5 120.7H11.9002C5.70018 120.7 0.700195 115.7 0.700195 109.5V11.9002Z' fill='%23007BE5'/%3E%3Cpath d='M827.7 601.9C827.7 595.7 832.7 590.7 838.9 590.7H936.6C942.8 590.7 947.8 595.7 947.8 601.9V699.5C947.8 705.7 942.8 710.7 936.6 710.7H838.9C832.7 710.7 827.7 705.7 827.7 699.5V601.9Z' fill='%23007BE5'/%3E%3Cpath d='M4363.9 293.2C4320.2 293.2 4290.6 304.6 4271.6 327.8C4252.3 351.4 4242.5 388.8 4242.5 444C4242.5 499.2 4252.3 536.4 4271.5 559.7C4290.5 582.6 4320 593.8 4363.8 593.8H4614.7C4622.4 593.8 4628.7 600.1 4628.7 607.8V696.7C4628.7 704.4 4622.4 710.7 4614.7 710.7H4354.1C4283.3 710.7 4224.9 689.1 4184.1 644.1C4143.5 599.3 4121.6 532.4 4121.6 444C4121.6 355.6 4143.5 288.7 4184.1 243.9C4224.8 199 4283.3 177.3 4354.1 177.3H4614.7C4622.4 177.3 4628.7 183.6 4628.7 191.3V279.3C4628.7 287 4622.4 293.3 4614.7 293.3H4363.9V293.2Z' fill='white'/%3E%3Cpath d='M1302.6 165.3C1240.1 165.3 1197 180.9 1169.3 213.3C1141.3 246 1127.4 297.6 1127.4 372.9C1127.4 447.7 1141.1 499 1169 531.6C1196.6 563.9 1239.7 579.5 1302.7 579.5H1552.5C1560.2 579.5 1566.5 585.8 1566.5 593.5V697.1C1566.5 704.8 1560.2 711.1 1552.5 711.1H1302.7C1204.7 711.1 1127.5 683.4 1075 626.4C1022.4 569.7 995.7 484.8 995.7 372.9C995.7 260.5 1022.7 175.4 1075.2 118.4C1127.9 61.3001 1205 33.6001 1302.6 33.6001H1552.4C1560.1 33.6001 1566.4 39.9001 1566.4 47.6001V151.2C1566.4 158.9 1560.1 165.2 1552.4 165.2H1302.6V165.3Z' fill='white'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1953.6 177.7H1844.8C1774 177.7 1715.6 199.3 1674.8 244.3C1634.2 289.1 1612.3 356 1612.3 444.4C1612.3 532.8 1634.2 599.7 1674.8 644.5C1715.5 689.4 1774 711.1 1844.8 711.1H1953.6C2023.9 711.1 2082.4 689.5 2123.2 644.5C2163.9 599.7 2186 532.8 2186 444.3C2186 355.8 2163.9 289 2123.2 244.1C2082.3 199.3 2023.9 177.7 1953.6 177.7ZM1854.6 293.7H1943.8C1987 293.7 2016.6 305.1 2035.8 328.3C2055.2 351.9 2065.2 389.3 2065.2 444.5C2065.2 499.7 2055.2 536.8 2035.8 560.2C2016.7 583.2 1987.1 594.3 1943.8 594.3H1854.6C1810.8 594.3 1781.3 583.1 1762.3 560.2C1743 536.9 1733.3 499.8 1733.3 444.5C1733.3 389.3 1743.1 351.9 1762.4 328.3C1781.3 305 1810.9 293.7 1854.6 293.7Z' fill='white'/%3E%3Cpath d='M2679.7 411.6C2679.7 372.5 2668.5 343.5 2645.4 324C2622.1 304.3 2585.3 293.2 2531.9 293.2H2378.4C2375.5 293.2 2374.9 293.9 2374.8 294C2374.5 294.4 2373.6 295.8 2373.6 299.8V696.7C2373.6 704.4 2367.3 710.7 2359.6 710.7H2267.7C2260 710.7 2253.7 704.4 2253.7 696.7V265.6C2253.7 234.7 2258.8 212 2272.6 197.2C2286.5 182.2 2307.5 177.3 2334.2 177.3H2531.8C2620.7 177.3 2688 198.4 2733.3 238.9C2778.7 279.5 2800.5 338.6 2800.5 411.7V696.7C2800.5 704.4 2794.2 710.7 2786.5 710.7H2693.7C2686 710.7 2679.7 704.4 2679.7 696.7V411.6Z' fill='white'/%3E%3Cpath d='M3304.7 411.6C3304.7 372.5 3293.5 343.5 3270.4 324C3247.1 304.3 3210.3 293.2 3156.9 293.2H3003.4C3000.5 293.2 2999.9 293.9 2999.8 294C2999.5 294.4 2998.6 295.8 2998.6 299.8V696.7C2998.6 704.4 2992.3 710.7 2984.6 710.7H2892.7C2885 710.7 2878.7 704.4 2878.7 696.7V265.6C2878.7 234.7 2883.8 212 2897.6 197.2C2911.5 182.2 2932.5 177.3 2959.2 177.3H3156.8C3245.7 177.3 3313 198.4 3358.3 238.9C3403.7 279.5 3425.5 338.6 3425.5 411.7V696.7C3425.5 704.4 3419.2 710.7 3411.5 710.7H3318.7C3311 710.7 3304.7 704.4 3304.7 696.7V411.6Z' fill='white'/%3E%3Cpath d='M4906.1 292.2C4898.4 292.2 4892.1 298.5 4892.1 306.2V529.2C4892.1 557.5 4897.2 574.3 4906.4 584.1C4915.4 593.8 4930 598.6 4953.7 598.6H5019.2C5026.9 598.6 5033.2 604.9 5033.2 612.6V695.7C5033.2 703.4 5026.9 709.7 5019.2 709.7H4932.1C4877.9 709.7 4836.8 698.8 4809.7 668.6C4782.8 638.6 4771.3 591.5 4771.3 523.4V306.2C4771.3 298.5 4765 292.2 4757.3 292.2H4714.7C4707 292.2 4700.7 285.9 4700.7 278.2V190.2C4700.7 182.5 4707 176.2 4714.7 176.2H4757.3C4765 176.2 4771.3 169.9 4771.3 162.2V67.7002C4771.3 60.0002 4777.6 53.7002 4785.3 53.7002H4878.2C4885.9 53.7002 4892.2 60.0002 4892.2 67.7002V162.2C4892.2 169.9 4898.5 176.2 4906.2 176.2H5021.3C5029 176.2 5035.3 182.5 5035.3 190.2V278.2C5035.3 285.9 5029 292.2 5021.3 292.2H4906.1Z' fill='white'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4024.4 607.2C4024.4 599.5 4018.1 593.2 4010.4 593.2H3699.9C3672.9 593.2 3655.3 586 3644.6 575.2C3633.8 564.4 3628.6 548.8 3628.6 529.7V514.5C3628.6 506.8 3634.9 500.5 3642.6 500.5H3866.6C3931.2 500.5 3977.4 486.9 4007.5 459.6C4037.7 432.2 4050.1 392.3 4050.1 343.5C4050.1 292.2 4036.8 250.1 4006.4 220.9C3976.1 191.7 3930.1 176.8 3867.7 176.8H3700.1C3633.9 176.8 3586.5 195.4 3555.6 227.8C3524.8 260.1 3511.8 305 3511.8 355.3V531.7C3511.8 582 3524.9 626.9 3555.6 659.2C3586.5 691.6 3633.9 710.2 3700.1 710.2H4010.6C4018.3 710.2 4024.6 703.9 4024.6 696.2V607.2H4024.4ZM3863.5 403.1H3642.5C3634.8 403.1 3628.5 396.8 3628.5 389.1V356.2C3628.5 337.6 3633.7 321.9 3644.6 311C3655.4 300.1 3672.9 292.7 3699.9 292.7H3866.5C3890.7 292.7 3906.9 298.8 3916.9 308.2C3926.9 317.5 3932 331.3 3932 349.4C3932 367.1 3927.3 380 3917.4 388.6C3907.4 397.4 3890.5 403.1 3863.5 403.1Z' fill='white'/%3E%3Cpath d='M2918.9 872.3C3001.9 872.3 3036.9 909.9 3036.9 966.3C3036.9 1012.2 3013.9 1036.8 2973.2 1047.2C3014.4 1058.2 3037.9 1083.7 3037.9 1129.7C3037.9 1186.1 3003.5 1224.7 2920.5 1224.7H2755.6C2741.5 1224.7 2734.2 1217.9 2734.2 1203.8V893.2C2734.2 879.1 2741.5 872.3 2755.6 872.3H2918.9ZM2765.4 1033.1H2918.9C2976.8 1033.1 3005 1014.8 3005 970.5C3005 929.8 2979.4 903.7 2919.4 903.7H2771.2C2767.5 903.7 2765.5 905.3 2765.5 909.4V1033.1H2765.4ZM2765.4 1187.6C2765.4 1191.8 2767.5 1193.3 2771.1 1193.3H2921C2979.5 1193.3 3006.1 1168.2 3006.1 1125.4C3006.1 1081 2976.9 1060.2 2921 1060.2H2765.5V1187.6H2765.4Z' fill='white'/%3E%3Cpath d='M3294 956.9V985.6H3182.8C3148.9 985.6 3135.3 1000.7 3135.3 1033.6V1224.6H3106.1V1029.9C3106.1 979.8 3125.4 956.8 3176.6 956.8H3294V956.9Z' fill='white'/%3E%3Cpath d='M3489.1 956.9C3562.2 956.9 3608.6 1001.3 3608.6 1091C3608.6 1181.3 3562.1 1224.6 3489.1 1224.6H3431.2C3357.6 1224.6 3311.7 1181.3 3311.7 1091C3311.7 1001.2 3357.6 956.9 3431.2 956.9H3489.1ZM3433.3 985.6C3374.3 985.6 3340.9 1019 3340.9 1091C3340.9 1163.5 3374.3 1196.4 3433.3 1196.4H3487.1C3546.1 1196.4 3579.5 1163.5 3579.5 1091C3579.5 1019 3546.1 985.6 3487.1 985.6H3433.3Z' fill='white'/%3E%3Cpath d='M3674.4 956.9L3706.8 1176.6C3709.4 1195.4 3716.2 1204.3 3737.1 1204.3C3758.5 1204.3 3767.4 1195.4 3771.5 1180.3L3821.6 995.5C3829.4 966.8 3849.3 951.7 3884.2 951.7C3919.1 951.7 3937.4 966.8 3945.3 995.5L3994.9 1180.3C3999.1 1195.4 4007.9 1204.3 4029.3 1204.3C4050.2 1204.3 4056.4 1195.4 4059.6 1176.6L4093.5 956.9H4125.3L4089.3 1179.8C4084.6 1210.6 4069.5 1231 4028.2 1231C3992.7 1231 3975 1216.4 3966.6 1185.1L3917 1000.9C3912.8 985.2 3900.8 978.5 3883.6 978.5C3865.9 978.5 3854.9 985.3 3850.7 1000.9L3799.6 1185.1C3790.7 1216.4 3773.5 1231 3737.5 1231C3695.2 1231 3682.2 1210.1 3677.5 1179.8L3643.1 956.9H3674.4Z' fill='white'/%3E%3Cpath d='M4417.6 956.9V985.6H4260C4219.8 985.6 4203.6 1003.3 4203.6 1032.1C4203.6 1057.2 4216.1 1077.5 4263.6 1077.5H4338.8C4410.8 1077.5 4428.6 1110.9 4428.6 1149.5C4428.6 1194.9 4404.6 1224.7 4344 1224.7H4178V1196.5H4344C4384.2 1196.5 4399.8 1178.2 4399.8 1149.5C4399.8 1124.4 4387.8 1103.6 4339.8 1103.6H4264.6C4193.1 1103.6 4174.8 1069.2 4174.8 1030C4174.8 985.1 4198.8 956.9 4259.4 956.9H4417.6Z' fill='white'/%3E%3Cpath d='M4685.4 956.9C4749.1 956.9 4775.7 986.6 4775.7 1036.8C4775.7 1084.8 4751.2 1111.4 4684.9 1111.4H4526.2V1135.9C4526.2 1170.3 4545 1196.4 4593.5 1196.4H4762.1V1224.6H4593.5C4524.6 1224.6 4497.5 1187.5 4497.5 1136.4V1045.1C4497.5 995 4524.6 956.9 4593.5 956.9H4685.4ZM4526.2 1087.4H4684.3C4729.7 1087.4 4746.9 1069.7 4746.9 1037.8C4746.9 1005.4 4728.6 985.6 4685.3 985.6H4593.4C4544.9 985.6 4526.1 1011.2 4526.1 1045.6V1087.4H4526.2Z' fill='white'/%3E%3Cpath d='M5040.3 956.9V985.6H4929.1C4895.2 985.6 4881.6 1000.7 4881.6 1033.6V1224.6H4852.4V1029.9C4852.4 979.8 4871.7 956.8 4922.9 956.8H5040.3V956.9Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_879_362'%3E%3Crect width='5041' height='1231' fill='white' transform='translate(0 0.700195)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A"},zc={loginPageLogo:qc},Yc="256px",nn=({logoSrc:e=zc.loginPageLogo.value,width:t=Yc,className:n="logo"})=>a.jsx("img",{width:t,src:e,className:n,alt:"Login logo"}),Kc=(e,t)=>{const n=t.value||"",r=n.includes("@"),o=r||!n.length?void 0:"The provided input is not a valid email";return{value:n,isValid:r,validationError:o}},Xc=(e,t)=>{const n=t.value||"",r=n.trim().length>3,o=r||!n.length?void 0:"The provided does not meet the length requirement";return{value:n,isValid:r,validationError:o}};const Jc=({onLogin:e,loginErrorMessage:t,components:n})=>{const[r,o]=y.useState(!1),[i,s]=y.useReducer(Kc,{value:"",isValid:!1}),[c,l]=y.useReducer(Xc,{value:"",isValid:!1}),{isValid:p}=i,{isValid:u}=c;y.useEffect(()=>{const m=setTimeout(()=>{o(p&&u)},250);return()=>clearTimeout(m)},[p,u]);const g=(m,O)=>{(m.target.type==="password"?l:s)({value:O})},f=m=>g(m,m.target.value),h=()=>{if(!p||!u)return;const m=i.value,O=c.value;e(m,O)},v=n?.Logo||nn,d=n?.Heading||ir;return a.jsxs(a.Fragment,{children:[a.jsx(v,{}),a.jsx(d,{}),a.jsx(Zc,{email:i.value,password:c.value,errorMessage:t??i.validationError??c.validationError,canSubmit:r,onChange:f,onSubmit:h})]})},Qc=({components:e})=>{const t=e?.Logo||nn,n=e?.Heading||ir;return a.jsxs(a.Fragment,{children:[a.jsx(t,{}),a.jsx(n,{}),a.jsx("span",{className:"loader"})]})},el=({components:e,onLogin:t})=>{const n=e?.Logo||nn,r=e?.Heading||ir;return a.jsxs(a.Fragment,{children:[a.jsx(n,{}),a.jsx(r,{}),a.jsx(Vo,{children:a.jsx(Qt,{onClick:t,className:"g42-btn-primary",children:"Log In"})})]})},tl="_workspaceLogo_133yn_1",Gr={workspaceLogo:tl,"launchpad-popup":"_launchpad-popup_133yn_9","slide-in":"_slide-in_133yn_32"},Yo=e=>{const[t,n]=y.useState(!1),r=y.useRef(null),o=y.useRef(null),{icon:i,children:s}=e;return y.useEffect(()=>{if(!t)return;const c=p=>{const u=p.target!==r.current&&!r.current?.contains(p.target);!(p.target===o.current||o.current?.contains(p.target))&&u&&n(!1)},l=()=>{document.activeElement?.nodeName==="IFRAME"&&n(!1)};return document.addEventListener("mouseup",c,!0),window.addEventListener("blur",l,!0),()=>{document.removeEventListener("mouseup",c,!0),window.removeEventListener("blur",l,!0)}},[t]),a.jsxs("div",{ref:r,children:[a.jsx("button",{"aria-label":"Launchpad",onClick:()=>n(c=>!c),className:`g42-logo ${t===!0?"active":""}`,ref:o,children:i}),a.jsx("div",{children:a.jsx("div",{className:Q(Gr["launchpad-popup"],{[Gr["slide-in"]]:t}),children:s({open:t,setOpen:n})})})]})},nl=e=>{const{icon:t,components:n,onLogout:r,user:o}=e;return a.jsx(Yo,{icon:t,children:({open:i,setOpen:s})=>a.jsx(zo,{open:i,setOpen:s,user:o,onLogout:r,components:n})})},rl=e=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:222,height:130,fill:"none",...e,children:[a.jsx("g",{filter:"url(#a)",children:a.jsx("path",{fill:"url(#b)",d:"M16 24h190v98a6 6 0 0 1-6 6H22a6 6 0 0 1-6-6V24Z"})}),a.jsx("path",{fill:"#3C3E3F",d:"M16 24h190V7a6 6 0 0 0-6-6H22a6 6 0 0 0-6 6v17Z"}),a.jsx("path",{stroke:"url(#c)",d:"M16 23.5h189"}),a.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M178.172 15.343a2.171 2.171 0 1 0 0-4.342 2.171 2.171 0 0 0 0 4.342ZM186.258 15.343a2.171 2.171 0 1 0 .001-4.343 2.171 2.171 0 0 0-.001 4.343Z"}),a.jsx("path",{fill:"#F0F6FE",d:"M194.344 15.343a2.171 2.171 0 1 0 .001-4.343 2.171 2.171 0 0 0-.001 4.343Z"}),a.jsx("rect",{width:75,height:75,x:73.5,y:33.5,stroke:"#9DA2A5",strokeDasharray:"1 12",rx:37.5}),a.jsx("rect",{width:69,height:24,x:127,y:64,fill:"#3C3E3F",rx:2}),a.jsx("path",{fill:"#2479E9",d:"M139 72a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"}),a.jsx("rect",{width:39,height:8,x:148,y:72,fill:"#D9D9D9",fillOpacity:.1,rx:4}),a.jsx("rect",{width:69,height:24,x:127,y:92,fill:"#3C3E3F",rx:2}),a.jsx("path",{fill:"#36A86B",d:"M139 100a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"}),a.jsx("rect",{width:11,height:8,x:148,y:100,fill:"#D9D9D9",fillOpacity:.1,rx:4}),a.jsx("rect",{width:18,height:8,x:164,y:100,fill:"#D9D9D9",fillOpacity:.1,rx:4}),a.jsx("rect",{width:66,height:66,x:78,y:38,fill:"#36AA6C",rx:33}),a.jsx("path",{fill:"#fff",d:"M110.25 59.75c0-.375.328-.75.75-.75.375 0 .75.375.75.75v.797c3.75.375 6.75 3.562 6.75 7.453v1.406c0 2.016.797 3.985 2.25 5.438l.141.14c.375.375.609.938.609 1.454a2.1 2.1 0 0 1-2.109 2.109h-16.829c-1.171-.047-2.062-.938-2.062-2.11 0-.562.188-1.078.609-1.453l.094-.14c1.453-1.453 2.297-3.422 2.297-5.438V68a7.484 7.484 0 0 1 6.75-7.453v-.797ZM111 62c-3.328 0-6 2.719-6 6v1.406a9.227 9.227 0 0 1-2.719 6.516l-.14.094a.755.755 0 0 0-.141.421c0 .329.234.563.562.563h16.829c.328 0 .609-.234.609-.563 0-.14-.094-.28-.188-.421l-.14-.094a9.258 9.258 0 0 1-2.719-6.563V68c0-3.281-2.672-6-6-6H111Zm-1.453 18.516c.234.609.797.984 1.453.984.609 0 1.172-.375 1.406-.984.141-.375.563-.61.938-.47.375.141.609.563.468.985A2.99 2.99 0 0 1 111 83c-1.312 0-2.438-.797-2.859-1.969a.785.785 0 0 1 .468-.984c.375-.14.797.094.938.469Z"}),a.jsx("rect",{width:191,height:128,x:15.5,y:.5,stroke:"url(#d)",strokeMiterlimit:10,rx:6.5}),a.jsxs("defs",{children:[a.jsxs("linearGradient",{id:"b",x1:39.152,x2:71.862,y1:30.346,y2:129.753,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#383838"}),a.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),a.jsxs("linearGradient",{id:"c",x1:9.298,x2:205,y1:24,y2:24,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#5F5F5F"}),a.jsx("stop",{offset:1,stopColor:"#5F5F5F",stopOpacity:0})]}),a.jsxs("linearGradient",{id:"d",x1:34.959,x2:127.671,y1:39.954,y2:146.801,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#5F5F5F"}),a.jsx("stop",{offset:0,stopColor:"#575757"}),a.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),a.jsxs("filter",{id:"a",width:222,height:136,x:0,y:15,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[a.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.jsx("feOffset",{dy:7}),a.jsx("feGaussianBlur",{stdDeviation:8}),a.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),a.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_816_102831"}),a.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_816_102831",result:"shape"})]})]})]}),ol=e=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:182,height:121,fill:"none",...e,children:[a.jsx("path",{fill:"url(#a)",d:"M114.092 103.689h-46.36v11.541h46.36v-11.541Z"}),a.jsx("path",{fill:"#828589",d:"M134.371 115.23H47.446v5.771h86.925v-5.771Z"}),a.jsx("rect",{width:180.555,height:103.984,x:.723,fill:"url(#b)",rx:8}),a.jsx("rect",{width:167,height:90,x:7.5,y:7,fill:"#000",fillOpacity:.4,rx:4}),a.jsxs("g",{filter:"url(#c)",children:[a.jsx("rect",{width:102,height:56,x:40,y:24,fill:"url(#d)",rx:6}),a.jsx("rect",{width:86,height:8,x:48,y:44.5,fill:"#D9D9D9",fillOpacity:.1,rx:4}),a.jsx("rect",{width:41,height:8,x:48,y:59.5,fill:"#fff",fillOpacity:.14,rx:4}),a.jsx("rect",{width:41,height:8,x:93,y:59.5,fill:"#fff",fillOpacity:.3,rx:4}),a.jsx("rect",{width:8,height:8,x:126,y:31,fill:"#DE2122",rx:4}),a.jsx("path",{fill:"#fff",d:"m131.878 33.683-1.31 1.31 1.31 1.324a.384.384 0 0 1 0 .561.384.384 0 0 1-.561 0l-1.311-1.31-1.323 1.31a.384.384 0 0 1-.561 0 .384.384 0 0 1 0-.561l1.31-1.323-1.31-1.31a.384.384 0 0 1 0-.562.384.384 0 0 1 .561 0l1.323 1.31 1.311-1.31a.384.384 0 0 1 .561 0 .384.384 0 0 1 0 .561Z"}),a.jsx("rect",{width:101,height:55,x:40.5,y:24.5,stroke:"url(#e)",strokeMiterlimit:10,rx:5.5})]}),a.jsxs("defs",{children:[a.jsxs("linearGradient",{id:"a",x1:90.912,x2:90.912,y1:103.689,y2:115.23,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"gray"}),a.jsx("stop",{offset:1,stopColor:"#56585D"})]}),a.jsxs("linearGradient",{id:"b",x1:91,x2:91,y1:0,y2:103.984,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"gray"}),a.jsx("stop",{offset:1,stopColor:"#56585D"})]}),a.jsxs("linearGradient",{id:"d",x1:52.429,x2:70.085,y1:27.417,y2:80.913,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#313131"}),a.jsx("stop",{offset:1,stopColor:"#1B1B1B"})]}),a.jsxs("linearGradient",{id:"e",x1:50.178,x2:89.211,y1:41.176,y2:95.944,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#5F5F5F"}),a.jsx("stop",{offset:0,stopColor:"#575757"}),a.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),a.jsxs("filter",{id:"c",width:134,height:88,x:24,y:15,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[a.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.jsx("feOffset",{dy:7}),a.jsx("feGaussianBlur",{stdDeviation:8}),a.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),a.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2206_37806"}),a.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2206_37806",result:"shape"})]})]})]}),il=e=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:196,height:130,fill:"none",...e,children:[a.jsx("g",{filter:"url(#a)",children:a.jsx("path",{fill:"url(#b)",d:"M16 52.406h164v70a6 6 0 0 1-6 6H22a6 6 0 0 1-6-6v-70Z"})}),a.jsx("path",{fill:"#3C3E3F",d:"M16 52.406h164v-17a6 6 0 0 0-6-6H22a6 6 0 0 0-6 6v17Z"}),a.jsx("path",{stroke:"url(#c)",d:"M16 51.906h163"}),a.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M152.172 43.75a2.171 2.171 0 1 0 0-4.343 2.171 2.171 0 0 0 0 4.342ZM160.258 43.75a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),a.jsx("path",{fill:"#F0F6FE",d:"M168.344 43.75a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),a.jsx("rect",{width:165.324,height:99.595,x:15.5,y:28.906,stroke:"url(#d)",strokeMiterlimit:10,rx:6.5}),a.jsx("path",{fill:"url(#e)",d:"M96.469 13.858c1.347-2.334 4.717-2.334 6.064 0l58.373 101.105c1.348 2.335-.337 5.253-3.032 5.253H41.128c-2.696 0-4.38-2.918-3.033-5.253L96.47 13.858Z"}),a.jsx("path",{fill:"#fff",d:"M97.705 88.342a1 1 0 0 1-1-.975l-.826-33.968a1 1 0 0 1 1-1.024h6.267a1 1 0 0 1 1 1.024l-.827 33.968a1 1 0 0 1-1 .975h-4.614Zm2.526 15.54c-1.508 0-2.748-.462-3.72-1.386-.925-.973-1.387-2.116-1.387-3.43 0-1.361.462-2.504 1.386-3.428.973-.973 2.213-1.46 3.721-1.46 1.41 0 2.578.487 3.502 1.46.973.924 1.459 2.067 1.459 3.429 0 1.313-.486 2.456-1.459 3.429-.924.924-2.092 1.386-3.502 1.386Z"}),a.jsx("rect",{width:1,height:3,x:55,y:44,fill:"#9DA2A5",rx:.5}),a.jsx("rect",{width:1,height:3,x:55,y:50,fill:"#9DA2A5",rx:.5}),a.jsx("rect",{width:1,height:3,x:55,y:56,fill:"#9DA2A5",rx:.5}),a.jsx("rect",{width:40.255,height:40.255,x:35,fill:"url(#f)",rx:20.128}),a.jsx("path",{fill:"#fff",d:"M61.128 14.127v8h3v-7c0-.531-.469-1-1-1h-2Zm-1 0h-3v4h3v-4Zm-4 0h-2v8h2v-8Zm-3 0h-3v4h3v-4Zm-4 0h-2c-.563 0-1 .469-1 1v7h3v-8Zm-3 9v2c0 .563.437 1 1 1h7.5v-3h-8.5Zm9.5 3h7.5c.531 0 1-.438 1-1v-2h-8.5v3Zm-10.5-11c0-1.094.875-2 2-2h16c1.094 0 2 .906 2 2v10c0 1.125-.906 2-2 2h-16c-1.125 0-2-.875-2-2v-10Zm8 7v-3h-3v3h3Zm7-3h-3v3h3v-3Z"}),a.jsx("rect",{width:15.096,height:15.096,x:62.676,y:26.418,fill:"#DE2122",rx:7.548}),a.jsx("path",{fill:"#fff",d:"m72.102 32.65-1.31 1.31 1.31 1.323a.385.385 0 0 1 0 .562.385.385 0 0 1-.562 0l-1.31-1.31-1.323 1.31a.385.385 0 0 1-.562 0 .385.385 0 0 1 0-.562l1.31-1.322-1.31-1.31a.385.385 0 0 1 0-.563.385.385 0 0 1 .562 0l1.323 1.31 1.31-1.31a.385.385 0 0 1 .562 0 .385.385 0 0 1 0 .562Z"}),a.jsx("rect",{width:40.255,height:40.255,x:35,y:63,fill:"url(#g)",rx:20.128}),a.jsx("path",{fill:"#fff",d:"M54.628 75.627c0-.25.219-.5.5-.5.25 0 .5.25.5.5v.531c2.5.25 4.5 2.375 4.5 4.969v.938c0 1.343.531 2.656 1.5 3.624l.094.094c.25.25.406.625.406.969a1.4 1.4 0 0 1-1.406 1.406h-11.22c-.78-.031-1.374-.625-1.374-1.406 0-.375.125-.719.406-.969l.063-.094c.968-.968 1.53-2.28 1.53-3.624v-.938a4.99 4.99 0 0 1 4.5-4.969v-.531Zm.5 1.5c-2.219 0-4 1.813-4 4v.938a6.152 6.152 0 0 1-1.813 4.343l-.093.063a.504.504 0 0 0-.094.281c0 .219.156.375.375.375h11.219c.218 0 .406-.156.406-.375 0-.094-.063-.188-.125-.281l-.094-.063a6.17 6.17 0 0 1-1.812-4.375v-.906c0-2.188-1.782-4-4-4h.03Zm-.969 12.344c.156.406.531.656.969.656.406 0 .781-.25.937-.656.094-.25.375-.407.625-.313.25.094.407.375.313.656a1.994 1.994 0 0 1-1.875 1.313 2.005 2.005 0 0 1-1.906-1.313.524.524 0 0 1 .312-.656c.25-.094.531.063.625.313Z"}),a.jsx("rect",{width:15.096,height:15.096,x:62.678,y:89.418,fill:"#DE2122",rx:7.548}),a.jsx("path",{fill:"#fff",d:"m72.104 95.65-1.31 1.31 1.31 1.324a.385.385 0 0 1 0 .561.385.385 0 0 1-.562 0l-1.31-1.31-1.323 1.31a.385.385 0 0 1-.562 0 .385.385 0 0 1 0-.561l1.31-1.323-1.31-1.31a.385.385 0 0 1 0-.563.385.385 0 0 1 .562 0l1.323 1.31 1.31-1.31a.385.385 0 0 1 .562 0 .385.385 0 0 1 0 .562Z"}),a.jsxs("defs",{children:[a.jsxs("linearGradient",{id:"b",x1:35.984,x2:56.797,y1:57.043,y2:131.755,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#383838"}),a.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),a.jsxs("linearGradient",{id:"c",x1:10.22,x2:179,y1:52.406,y2:52.406,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#5F5F5F"}),a.jsx("stop",{offset:1,stopColor:"#5F5F5F",stopOpacity:0})]}),a.jsxs("linearGradient",{id:"d",x1:32.397,x2:102.886,y1:59.648,y2:150.147,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#5F5F5F"}),a.jsx("stop",{offset:0,stopColor:"#575757"}),a.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),a.jsxs("linearGradient",{id:"e",x1:99.501,x2:246.864,y1:8.606,y2:161.85,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#F4B40F"}),a.jsx("stop",{offset:1,stopColor:"#EFAA23"})]}),a.jsxs("linearGradient",{id:"f",x1:55.128,x2:55.128,y1:0,y2:40.255,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"gray"}),a.jsx("stop",{offset:1,stopColor:"#56585D"})]}),a.jsxs("linearGradient",{id:"g",x1:55.128,x2:55.128,y1:63,y2:103.255,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"gray"}),a.jsx("stop",{offset:1,stopColor:"#56585D"})]}),a.jsxs("filter",{id:"a",width:196,height:108,x:0,y:43.406,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[a.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.jsx("feOffset",{dy:7}),a.jsx("feGaussianBlur",{stdDeviation:8}),a.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),a.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_834_102897"}),a.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_834_102897",result:"shape"})]})]})]}),al=e=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:247,height:143,fill:"none",...e,children:[a.jsx("path",{fill:"url(#a)",d:"M144.369 125.689h-46.36v11.541h46.36v-11.541Z"}),a.jsx("path",{fill:"#828589",d:"M164.648 137.23H77.724v5.771h86.924v-5.771Z"}),a.jsx("rect",{width:180.555,height:103.984,x:31,y:22,fill:"url(#b)",rx:8}),a.jsx("rect",{width:167,height:90,x:37.777,y:29,fill:"#000",fillOpacity:.4,rx:4}),a.jsxs("g",{filter:"url(#c)",children:[a.jsx("path",{fill:"url(#d)",d:"M187.138 9h-67.22A2.918 2.918 0 0 0 117 11.918v42.756a2.918 2.918 0 0 0 2.918 2.918h67.22a2.918 2.918 0 0 0 2.918-2.918V11.918A2.918 2.918 0 0 0 187.138 9Z"}),a.jsx("path",{stroke:"url(#e)",strokeMiterlimit:10,d:"M119.918 9.5h67.22a2.418 2.418 0 0 1 2.418 2.418v42.756a2.418 2.418 0 0 1-2.418 2.418h-67.22a2.418 2.418 0 0 1-2.418-2.418V11.918a2.418 2.418 0 0 1 2.418-2.418Z"})]}),a.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M161.871 22.42a2.171 2.171 0 1 0 0-4.343 2.171 2.171 0 0 0 0 4.342ZM169.958 22.42a2.171 2.171 0 1 0 0-4.343 2.171 2.171 0 0 0 0 4.342Z"}),a.jsx("path",{fill:"#F0F6FE",d:"M178.043 22.42a2.172 2.172 0 1 0 0-4.345 2.172 2.172 0 0 0 0 4.344Z"}),a.jsx("path",{fill:"#9DA2A5",d:"M153.404 55.547v5.836a.486.486 0 1 1-.972 0v-5.836a.486.486 0 1 1 .972 0ZM152.92 67.827l-3.255-3.255a.486.486 0 0 0-.688.688l3.599 3.6c.191.19.498.19.688 0l3.593-3.594a.485.485 0 1 0-.687-.688l-3.25 3.25ZM153.404 49.322v-5.836a.486.486 0 1 0-.972 0v5.836a.486.486 0 1 0 .972 0Z"}),a.jsx("path",{fill:"#3BB272",d:"M149 35a4 4 0 1 0 8 0 4 4 0 0 0-8 0Z"}),a.jsx("path",{fill:"#fff",fillOpacity:.1,d:"M105.723 39H53.277A2.28 2.28 0 0 0 51 41.282v33.436A2.28 2.28 0 0 0 53.277 77h52.446A2.28 2.28 0 0 0 108 74.718V41.282A2.28 2.28 0 0 0 105.723 39Z"}),a.jsx("path",{stroke:"#C8C8C8",strokeDasharray:"9 9",strokeLinecap:"round",strokeMiterlimit:10,strokeOpacity:.2,d:"M100.853 39a.5.5 0 0 0 .5.5h4.37c.98 0 1.777.797 1.777 1.782v4.18a.5.5 0 0 0 .5.5v7.358a.5.5 0 0 0-.5.5v8.36a.5.5 0 0 0 .5.5v7.358a.5.5 0 0 0-.5.5v4.18a1.78 1.78 0 0 1-1.777 1.782h-4.37a.5.5 0 0 0-.5.5h-7.741a.5.5 0 0 0-.5-.5H83.87a.5.5 0 0 0-.5.5h-7.742a.5.5 0 0 0-.5-.5h-8.74a.5.5 0 0 0-.5.5h-7.742a.5.5 0 0 0-.5-.5h-4.37a1.78 1.78 0 0 1-1.777-1.782v-4.18a.5.5 0 0 0-.5-.5V62.68a.5.5 0 0 0 .5-.5v-8.36a.5.5 0 0 0-.5-.5v-7.358a.5.5 0 0 0 .5-.5v-4.18a1.78 1.78 0 0 1 1.777-1.782h4.37a.5.5 0 0 0 .5-.5h7.741a.5.5 0 0 0 .5.5h8.741a.5.5 0 0 0 .5-.5h7.742a.5.5 0 0 0 .5.5h8.74a.5.5 0 0 0 .5-.5h7.742Z"}),a.jsx("path",{fill:"#fff",fillOpacity:.1,d:"M194.843 75h-49.686A2.16 2.16 0 0 0 143 77.162v31.676a2.16 2.16 0 0 0 2.157 2.162h49.686a2.16 2.16 0 0 0 2.157-2.162V77.162A2.16 2.16 0 0 0 194.843 75Z"}),a.jsx("path",{stroke:"#C8C8C8",strokeDasharray:"9 9",strokeLinecap:"round",strokeMiterlimit:10,strokeOpacity:.2,d:"M190.203 75a.5.5 0 0 0 .5.5h4.14a1.66 1.66 0 0 1 1.657 1.662v3.96a.5.5 0 0 0 .5.5v6.918a.5.5 0 0 0-.5.5v7.92a.5.5 0 0 0 .5.5v6.919a.5.5 0 0 0-.5.5v3.959a1.66 1.66 0 0 1-1.657 1.662h-4.14a.5.5 0 0 0-.5.5h-7.281a.5.5 0 0 0-.5-.5h-8.281a.5.5 0 0 0-.5.5h-7.282a.5.5 0 0 0-.5-.5h-8.281a.5.5 0 0 0-.5.5h-7.281a.5.5 0 0 0-.5-.5h-4.14a1.66 1.66 0 0 1-1.657-1.662v-3.959a.5.5 0 0 0-.5-.5v-6.92a.5.5 0 0 0 .5-.5V89.04a.5.5 0 0 0-.5-.5v-6.919a.5.5 0 0 0 .5-.5v-3.96a1.66 1.66 0 0 1 1.657-1.661h4.14a.5.5 0 0 0 .5-.5h7.281a.5.5 0 0 0 .5.5h8.281a.5.5 0 0 0 .5-.5h7.282a.5.5 0 0 0 .5.5h8.281a.5.5 0 0 0 .5-.5h7.281Z"}),a.jsxs("g",{filter:"url(#f)",children:[a.jsx("path",{fill:"url(#g)",d:"M228.294 65h-53.951a2.342 2.342 0 0 0-2.342 2.342v34.316a2.343 2.343 0 0 0 2.342 2.342h53.951a2.343 2.343 0 0 0 2.342-2.342V67.342A2.342 2.342 0 0 0 228.294 65Z"}),a.jsx("path",{stroke:"url(#h)",strokeMiterlimit:10,d:"M174.343 65.5h53.951c1.017 0 1.842.825 1.842 1.842v34.316a1.842 1.842 0 0 1-1.842 1.842h-53.951a1.842 1.842 0 0 1-1.842-1.842V67.342c0-1.017.825-1.842 1.842-1.842Z"})]}),a.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M208.014 75.77a1.743 1.743 0 1 0 0-3.484 1.743 1.743 0 0 0 0 3.485ZM214.505 75.77a1.743 1.743 0 1 0 0-3.484 1.743 1.743 0 0 0 0 3.485Z"}),a.jsx("path",{fill:"#F0F6FE",d:"M220.995 75.77a1.743 1.743 0 1 0 0-3.486 1.743 1.743 0 0 0 0 3.487Z"}),a.jsx("path",{fill:"#9DA2A5",d:"M172.454 86.568h-5.836a.486.486 0 1 1 0-.972h5.836a.486.486 0 1 1 0 .972ZM160.175 86.084l3.255-3.255a.486.486 0 1 0-.688-.688l-3.599 3.6a.486.486 0 0 0 0 .687l3.593 3.594a.486.486 0 1 0 .688-.688l-3.249-3.25ZM176.486 86.568h5.836a.487.487 0 1 0 0-.972h-5.836a.486.486 0 1 0 0 .972ZM186.486 86.568h5.836a.487.487 0 1 0 0-.972h-5.836a.486.486 0 1 0 0 .972Z"}),a.jsx("path",{fill:"url(#i)",d:"M200.891 82.242a3.89 3.89 0 1 0 0 7.782 3.89 3.89 0 0 0 0-7.782Z"}),a.jsxs("g",{filter:"url(#j)",children:[a.jsx("path",{fill:"url(#k)",d:"M86.138 62h-67.22A2.918 2.918 0 0 0 16 64.918v42.756a2.918 2.918 0 0 0 2.918 2.918h67.22a2.918 2.918 0 0 0 2.918-2.918V64.918A2.918 2.918 0 0 0 86.138 62Z"}),a.jsx("path",{stroke:"url(#l)",strokeMiterlimit:10,d:"M18.918 62.5h67.22a2.418 2.418 0 0 1 2.418 2.418v42.756a2.418 2.418 0 0 1-2.418 2.418h-67.22a2.418 2.418 0 0 1-2.418-2.418V64.918a2.418 2.418 0 0 1 2.418-2.418Z"})]}),a.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M60.87 75.42a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343ZM68.958 75.42a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),a.jsx("path",{fill:"#F0F6FE",d:"M77.043 75.42a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),a.jsx("path",{fill:"#9DA2A5",d:"M101.546 88.596h5.836a.486.486 0 1 1 0 .972h-5.836a.486.486 0 1 1 0-.972ZM80.158 88.596h5.836a.486.486 0 1 1 0 .972h-5.836a.486.486 0 1 1 0-.972ZM96.71 88.596h-5.836a.486.486 0 1 0 0 .972h5.836a.486.486 0 1 0 0-.972ZM59.158 88.596h5.836a.486.486 0 1 1 0 .972h-5.836a.486.486 0 1 1 0-.972ZM113.825 89.08l-3.255 3.255a.486.486 0 1 0 .688.688l3.599-3.6a.486.486 0 0 0 0-.687l-3.593-3.593a.486.486 0 1 0-.688.687l3.249 3.25ZM75.322 88.596h-5.836a.486.486 0 1 0 0 .972h5.836a.486.486 0 1 0 0-.972Z"}),a.jsx("path",{fill:"#2479E9",d:"M50 93a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"}),a.jsxs("defs",{children:[a.jsxs("linearGradient",{id:"a",x1:121.189,x2:121.189,y1:125.689,y2:137.23,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"gray"}),a.jsx("stop",{offset:1,stopColor:"#56585D"})]}),a.jsxs("linearGradient",{id:"b",x1:121.277,x2:121.277,y1:22,y2:125.984,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"gray"}),a.jsx("stop",{offset:1,stopColor:"#56585D"})]}),a.jsxs("linearGradient",{id:"d",x1:125.902,x2:143.647,y1:11.965,y2:56.345,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#383838"}),a.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),a.jsxs("linearGradient",{id:"e",x1:124.29,x2:159.738,y1:23.904,y2:64.958,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#5F5F5F"}),a.jsx("stop",{offset:0,stopColor:"#575757"}),a.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),a.jsxs("linearGradient",{id:"g",x1:179.146,x2:193.388,y1:67.38,y2:102.999,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#383838"}),a.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),a.jsxs("linearGradient",{id:"h",x1:177.852,x2:206.302,y1:76.962,y2:109.912,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#5F5F5F"}),a.jsx("stop",{offset:0,stopColor:"#575757"}),a.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),a.jsxs("linearGradient",{id:"i",x1:200.891,x2:193.185,y1:90.023,y2:82.01,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#F4B40F"}),a.jsx("stop",{offset:1,stopColor:"#EFAA23"})]}),a.jsxs("linearGradient",{id:"k",x1:24.902,x2:42.647,y1:64.965,y2:109.345,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#383838"}),a.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),a.jsxs("linearGradient",{id:"l",x1:23.29,x2:58.738,y1:76.904,y2:117.958,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#5F5F5F"}),a.jsx("stop",{offset:0,stopColor:"#575757"}),a.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),a.jsxs("filter",{id:"c",width:105.056,height:80.592,x:101,y:0,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[a.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.jsx("feOffset",{dy:7}),a.jsx("feGaussianBlur",{stdDeviation:8}),a.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),a.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_807_102718"}),a.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_807_102718",result:"shape"})]}),a.jsxs("filter",{id:"f",width:90.635,height:71,x:156.001,y:56,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[a.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.jsx("feOffset",{dy:7}),a.jsx("feGaussianBlur",{stdDeviation:8}),a.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),a.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_807_102718"}),a.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_807_102718",result:"shape"})]}),a.jsxs("filter",{id:"j",width:105.056,height:80.592,x:0,y:53,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[a.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.jsx("feOffset",{dy:7}),a.jsx("feGaussianBlur",{stdDeviation:8}),a.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),a.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_807_102718"}),a.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_807_102718",result:"shape"})]})]})]}),Zt={"window-management":{heading:"Allow Window Management",description:"io.Connect Browser requires permission to arrange windows on your desktop.",guidelines:{default:"To allow window management, click the icon to the left of the address bar."},label:"Allow window management",Image:al,openPermissionsPrompt:({handleDeferredPermission:e,handlePermissionsPromptClose:t})=>{window.getScreenDetails().catch(async()=>{const{state:n}=await navigator.permissions.query({name:"window-management"});n==="prompt"&&e()}).finally(t)}},notifications:{heading:"Allow Browser Notifications",description:`io.Connect Browser requires permission to send notifications to the desktop.
42
- This won't allow any other browser notifications.`,guidelines:{default:"To allow browser notifications, click the icon to the left of the address bar.",edge:'To allow browser notifications, click the icon to the left of the address bar, or the "Bell" icon to the right of the address bar.'},label:"Allow browser notifications",Image:rl,openPermissionsPrompt:({handleDeferredPermission:e,handlePermissionsPromptClose:t})=>{Notification.requestPermission().then(async()=>{const{state:n}=await navigator.permissions.query({name:"notifications"});n==="prompt"&&e()}).finally(t)}}},sl={edgeNotificationsPermissionTimeout:15e3};const ar=({children:e,description:t,heading:n,Image:r,title:o})=>a.jsxs("div",{className:"permissions-card",children:[o&&a.jsx("h1",{className:"permissions-card-title",children:o}),r&&a.jsx("div",{className:"permissions-card-image",children:a.jsx(r,{})}),n&&a.jsx("h3",{className:"permissions-card-heading",children:n}),a.jsx("p",{className:"permissions-card-description",children:t}),e]}),cl=({isActiveItem:e=()=>!1,permissionStatuses:t})=>a.jsx("ul",{className:"permissions-list",children:Object.entries(Zt).map(([n,r],o)=>{const i=e(n),s=t.find(({name:c})=>c===n);return a.jsxs("li",{className:Q("permissions-list-item",i&&"active"),children:[a.jsx("div",{children:s?.state==="granted"?a.jsx("span",{className:"icon-check"}):a.jsxs(a.Fragment,{children:[a.jsx("span",{className:i?"icon-arrow":""}),a.jsxs("span",{children:[o+1,"."]})]})}),r.label]},n)})}),ll=({onReopenPromptClick:e})=>{const t=a.jsxs(a.Fragment,{children:['Please, click "Allow" when the browser prompt appears.',a.jsx("br",{}),a.jsxs("strong",{children:["If a browser prompt doesn't appear, click the icon to the left of the",a.jsx("br",{}),"address bar to manually grant the permission."]})]});return a.jsx(ar,{description:t,Image:ol,title:"Something went wrong!",children:a.jsx(_t,{className:"g42-btn-primary permissions-prompt-button",onClick:e,children:"Reopen the Prompt"})})},ul=["window-management","notifications"],fl=()=>Promise.all(ul.map(e=>navigator.permissions.query({name:e}))),Ko=y.createContext(void 0),Nt=()=>{const e=y.useContext(Ko);if(e===void 0)throw new Error("useGlue42Home must be used within a Glue42HomeProvider");return e},dl=({children:e})=>{const[t,n]=y.useState([]),r=t.length===0,o={isDenied:!r&&t.some(({state:s})=>s==="denied"),isLoading:r,isSetupCompleted:!r&&t.every(({state:s})=>s==="granted"),statuses:t},i=y.useRef(!1);return y.useEffect(()=>{let s=!1;const c=fl().then(l=>{if(s)return;n(l);const p=[];let u=!1;return l.forEach((g,f)=>{const h=v=>{if(s||!v.target||u)return;const d=v.target;if(d.state==="prompt"||d.state==="denied"&&i.current)return u=!0,window.location.reload();n(O=>[...O.slice(0,f),d,...O.slice(f+1)])};g.addEventListener("change",h),p.push(()=>g.removeEventListener("change",h))}),p});return()=>{s=!0,c.then(l=>{l?.forEach(p=>p())})}},[]),y.useEffect(()=>{i.current=o.isSetupCompleted},[o.isSetupCompleted]),a.jsx(Ko.Provider,{value:{permission:o},children:e})},Xo=({deniedPermissionName:e})=>{const{permission:t}=Nt(),r=go().name?.toLowerCase()||"",o=Object.values(t.statuses).filter(s=>s.name===e||s.state==="denied"),i=a.jsxs(a.Fragment,{children:["The current browser settings block critical functionalities of io.Connect Browser.",a.jsx("br",{}),"To enable io.Connect Browser to operate properly, you must grant browser permissions manually."]});return a.jsx(ar,{description:i,Image:il,title:"Setup Was Unsuccessful",children:a.jsx("ul",{className:"permissions-guidelines-list",children:o.map((s,c)=>a.jsx("li",{children:Zt[s.name].guidelines[r]||Zt[s.name].guidelines.default},c))})})},pl=({edgeNotificationsPermissionTimeout:e,isNotificationsPermissionPromptOpen:t})=>{const{name:n}=go(),{permission:r}=Nt(),[o,i]=y.useState(!1);return y.useEffect(()=>{if(!t||n!=="Edge")return;const s=setTimeout(()=>i(!0),e);return()=>clearTimeout(s)},[n,e,t]),y.useEffect(()=>{if(!o)return;r.statuses.some(({name:c,state:l})=>c==="notifications"&&l==="granted")&&i(!1)},[o,r.statuses]),{hasEdgeNotificationsPermissionError:o}},hl=({settings:e})=>{const{permission:t}=Nt(),[n,r]=y.useState(!1),[o,i]=y.useState(!1),s=t.statuses.find(({state:g})=>g==="prompt"),{hasEdgeNotificationsPermissionError:c}=pl({edgeNotificationsPermissionTimeout:e.edgeNotificationsPermissionTimeout,isNotificationsPermissionPromptOpen:o&&s?.name==="notifications"});if(!s||t.isDenied)throw new Error('The "PermissionSteps" component should not be used in case there is no pending permission or there is a denied permission.');if(c)return a.jsx(Xo,{deniedPermissionName:"notifications"});const l=Zt[s.name],p=()=>{i(!0),l.openPermissionsPrompt({handleDeferredPermission:()=>r(!0),handlePermissionsPromptClose:()=>i(!1)})},u=()=>{r(!1),p()};return n?a.jsx(ll,{onReopenPromptClick:u}):a.jsxs(ar,{description:l.description,heading:l.heading,Image:l.Image,title:"First-Time User Setup",children:[a.jsx(cl,{isActiveItem:g=>g===s.name,permissionStatuses:t.statuses}),a.jsx("p",{className:"mb-12 description",children:'Click "Allow" when the prompt appears.'}),a.jsx(_t,{className:"g42-btn-primary permissions-prompt-button",disabled:o,onClick:p,children:"Open Permission Prompt"}),o&&a.jsx("span",{className:"loader"})]})},vl=({settings:e})=>{const{permission:t}=Nt();return t.isLoading?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"mb-32",children:"Checking browser permissions ..."}),a.jsx("div",{className:"loader"})]}):t.isDenied?a.jsx(Xo,{}):a.jsx(hl,{settings:e})},ml=({components:{Logo:e=nn}={},settings:t={}})=>a.jsx("div",{className:"permissions-setup",children:a.jsxs("div",{className:"permissions-wrapper",children:[a.jsx(e,{className:"mb-32"}),a.jsx(vl,{settings:{...sl,...t}})]})});exports.ApplicationsSection=Co;exports.BaseSection=Xt;exports.BaseSectionHeader=ao;exports.BaseSectionItem=yo;exports.Button=Qt;exports.ButtonGroup=Ot;exports.ContextMenu=ro;exports.DropdownButton=qn;exports.FavoritesSection=Oo;exports.Glue42HomeProvider=dl;exports.Icon=fe;exports.ImgIcon=zn;exports.Launchpad=zo;exports.LaunchpadSlidePanel=nl;exports.LayoutSettings=Lo;exports.LayoutSettingsContainer=Uo;exports.Login=Jc;exports.LoginAuth0=el;exports.LoginLoader=Qc;exports.NotificationsPanel=Zo;exports.PermissionsSetup=ml;exports.ProfileSettings=ko;exports.SearchBar=Wo;exports.SearchResults=Go;exports.Section=Jt;exports.SettingsCard=jo;exports.SlidePanel=Yo;exports.SupportCard=So;exports.WorkspacesSection=qo;exports.useGlue42Home=Nt;
40
+ */var Yt,pr;function Js(){if(pr)return Yt;pr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var l=Object.getOwnPropertyNames(a).map(function(p){return a[p]});if(l.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(p){f[p]=p}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Yt=o()?Object.assign:function(i,a){for(var c,l=r(i),f,p=1;p<arguments.length;p++){c=Object(arguments[p]);for(var g in c)t.call(c,g)&&(l[g]=c[g]);if(e){f=e(c);for(var u=0;u<f.length;u++)n.call(c,f[u])&&(l[f[u]]=c[f[u]])}}return l},Yt}var Kt,hr;function Fn(){if(hr)return Kt;hr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Kt=e,Kt}var Xt,mr;function jo(){return mr||(mr=1,Xt=Function.call.bind(Object.prototype.hasOwnProperty)),Xt}var Jt,vr;function Qs(){if(vr)return Jt;vr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Fn(),n={},r=jo();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,c,l,f){if(process.env.NODE_ENV!=="production"){for(var p in i)if(r(i,p)){var g;try{if(typeof i[p]!="function"){var u=Error((l||"React class")+": "+c+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}g=i[p](a,p,l,c,null,t)}catch(m){g=m}if(g&&!(g instanceof Error)&&e((l||"React class")+": type specification of "+c+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var h=f?f():"";e("Failed "+c+" type: "+g.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Jt=o,Jt}var Qt,gr;function ea(){if(gr)return Qt;gr=1;var e=Eo(),t=Js(),n=Fn(),r=jo(),o=Qs(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var l="Warning: "+c;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return Qt=function(c,l){var f=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function g(C){var S=C&&(f&&C[f]||C[p]);if(typeof S=="function")return S}var u="<<anonymous>>",h={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:P(),arrayOf:O,element:w(),elementType:x(),instanceOf:k,node:W(),objectOf:X,oneOf:V,oneOfType:G,shape:te,exact:Q};function m(C,S){return C===S?C!==0||1/C===1/S:C!==C&&S!==S}function d(C,S){this.message=C,this.data=S&&typeof S=="object"?S:{},this.stack=""}d.prototype=Error.prototype;function v(C){if(process.env.NODE_ENV!=="production")var S={},A=0;function R(_,N,I,L,B,$,re){if(L=L||u,$=$||I,re!==n){if(l){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ce=L+":"+I;!S[ce]&&A<3&&(i("You are manually calling a React.PropTypes validation function for the `"+$+"` prop on `"+L+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),S[ce]=!0,A++)}}return N[I]==null?_?N[I]===null?new d("The "+B+" `"+$+"` is marked as required "+("in `"+L+"`, but its value is `null`.")):new d("The "+B+" `"+$+"` is marked as required in "+("`"+L+"`, but its value is `undefined`.")):null:C(N,I,L,B,$)}var T=R.bind(null,!1);return T.isRequired=R.bind(null,!0),T}function E(C){function S(A,R,T,_,N,I){var L=A[R],B=Y(L);if(B!==C){var $=ee(L);return new d("Invalid "+_+" `"+N+"` of type "+("`"+$+"` supplied to `"+T+"`, expected ")+("`"+C+"`."),{expectedType:C})}return null}return v(S)}function P(){return v(a)}function O(C){function S(A,R,T,_,N){if(typeof C!="function")return new d("Property `"+N+"` of component `"+T+"` has invalid PropType notation inside arrayOf.");var I=A[R];if(!Array.isArray(I)){var L=Y(I);return new d("Invalid "+_+" `"+N+"` of type "+("`"+L+"` supplied to `"+T+"`, expected an array."))}for(var B=0;B<I.length;B++){var $=C(I,B,T,_,N+"["+B+"]",n);if($ instanceof Error)return $}return null}return v(S)}function w(){function C(S,A,R,T,_){var N=S[A];if(!c(N)){var I=Y(N);return new d("Invalid "+T+" `"+_+"` of type "+("`"+I+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return v(C)}function x(){function C(S,A,R,T,_){var N=S[A];if(!e.isValidElementType(N)){var I=Y(N);return new d("Invalid "+T+" `"+_+"` of type "+("`"+I+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return v(C)}function k(C){function S(A,R,T,_,N){if(!(A[R]instanceof C)){var I=C.name||u,L=le(A[R]);return new d("Invalid "+_+" `"+N+"` of type "+("`"+L+"` supplied to `"+T+"`, expected ")+("instance of `"+I+"`."))}return null}return v(S)}function V(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function S(A,R,T,_,N){for(var I=A[R],L=0;L<C.length;L++)if(m(I,C[L]))return null;var B=JSON.stringify(C,function(re,j){var ce=ee(j);return ce==="symbol"?String(j):j});return new d("Invalid "+_+" `"+N+"` of value `"+String(I)+"` "+("supplied to `"+T+"`, expected one of "+B+"."))}return v(S)}function X(C){function S(A,R,T,_,N){if(typeof C!="function")return new d("Property `"+N+"` of component `"+T+"` has invalid PropType notation inside objectOf.");var I=A[R],L=Y(I);if(L!=="object")return new d("Invalid "+_+" `"+N+"` of type "+("`"+L+"` supplied to `"+T+"`, expected an object."));for(var B in I)if(r(I,B)){var $=C(I,B,T,_,N+"."+B,n);if($ instanceof Error)return $}return null}return v(S)}function G(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var S=0;S<C.length;S++){var A=C[S];if(typeof A!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ve(A)+" at index "+S+"."),a}function R(T,_,N,I,L){for(var B=[],$=0;$<C.length;$++){var re=C[$],j=re(T,_,N,I,L,n);if(j==null)return null;j.data&&r(j.data,"expectedType")&&B.push(j.data.expectedType)}var ce=B.length>0?", expected one of type ["+B.join(", ")+"]":"";return new d("Invalid "+I+" `"+L+"` supplied to "+("`"+N+"`"+ce+"."))}return v(R)}function W(){function C(S,A,R,T,_){return oe(S[A])?null:new d("Invalid "+T+" `"+_+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return v(C)}function H(C,S,A,R,T){return new d((C||"React class")+": "+S+" type `"+A+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+T+"`.")}function te(C){function S(A,R,T,_,N){var I=A[R],L=Y(I);if(L!=="object")return new d("Invalid "+_+" `"+N+"` of type `"+L+"` "+("supplied to `"+T+"`, expected `object`."));for(var B in C){var $=C[B];if(typeof $!="function")return H(T,_,N,B,ee($));var re=$(I,B,T,_,N+"."+B,n);if(re)return re}return null}return v(S)}function Q(C){function S(A,R,T,_,N){var I=A[R],L=Y(I);if(L!=="object")return new d("Invalid "+_+" `"+N+"` of type `"+L+"` "+("supplied to `"+T+"`, expected `object`."));var B=t({},A[R],C);for(var $ in B){var re=C[$];if(r(C,$)&&typeof re!="function")return H(T,_,N,$,ee(re));if(!re)return new d("Invalid "+_+" `"+N+"` key `"+$+"` supplied to `"+T+"`.\nBad object: "+JSON.stringify(A[R],null," ")+`
41
+ Valid keys: `+JSON.stringify(Object.keys(C),null," "));var j=re(I,$,T,_,N+"."+$,n);if(j)return j}return null}return v(S)}function oe(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(oe);if(C===null||c(C))return!0;var S=g(C);if(S){var A=S.call(C),R;if(S!==C.entries){for(;!(R=A.next()).done;)if(!oe(R.value))return!1}else for(;!(R=A.next()).done;){var T=R.value;if(T&&!oe(T[1]))return!1}}else return!1;return!0;default:return!1}}function he(C,S){return C==="symbol"?!0:S?S["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&S instanceof Symbol:!1}function Y(C){var S=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":he(S,C)?"symbol":S}function ee(C){if(typeof C>"u"||C===null)return""+C;var S=Y(C);if(S==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return S}function ve(C){var S=ee(C);switch(S){case"array":case"object":return"an "+S;case"boolean":case"date":case"regexp":return"a "+S;default:return S}}function le(C){return!C.constructor||!C.constructor.name?u:C.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},Qt}var en,yr;function ta(){if(yr)return en;yr=1;var e=Fn();function t(){}function n(){}return n.resetWarningCache=t,en=function(){function r(a,c,l,f,p,g){if(g!==e){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},en}if(process.env.NODE_ENV!=="production"){var na=Eo(),ra=!0;lr.exports=ea()(na.isElement,ra)}else lr.exports=ta()();function fn(e){return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}var oa;function ot(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oa;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function ia(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function sa(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,o,i={};r>0;)r-=1,o=n[r],i[o]=e[o];return i}var br={};function xr(e){br[e]||(typeof console<"u"&&console.error(e),br[e]=!0)}var aa=(typeof window>"u"?"undefined":fn(window))==="object"&&window.Element||function(){};function ca(e,t,n){if(!(e[t]instanceof aa))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}b.oneOfType([b.string,b.func,ca,b.shape({current:b.any})]);var xt=b.oneOfType([b.func,b.string,b.shape({$$typeof:b.symbol,render:b.func}),b.arrayOf(b.oneOfType([b.func,b.string,b.shape({$$typeof:b.symbol,render:b.func})]))]),la={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},wr=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],jt={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},ua=["className","cssModule","variant","innerRef"];function dn(){return dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dn.apply(this,arguments)}function fa(e,t){if(e==null)return{};var n=da(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function da(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var pa={active:b.bool,"aria-label":b.string,onClick:b.func,variant:b.oneOf(["white"]),className:b.string,cssModule:b.object,innerRef:b.oneOfType([b.object,b.string,b.func])},ha={"aria-label":"close"};function $n(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,o=fa(e,ua),i=ot(J(t,"btn-close",n&&"btn-close-".concat(n)));return y.createElement("button",dn({ref:r,type:"button",className:i},o))}$n.propTypes=pa;$n.defaultProps=ha;var ma=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pn.apply(this,arguments)}function va(e,t){if(e==null)return{};var n=ga(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ga(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var ya={active:b.bool,"aria-label":b.string,block:b.bool,children:b.node,className:b.string,cssModule:b.object,close:b.bool,color:b.string,disabled:b.bool,innerRef:b.oneOfType([b.object,b.func,b.string]),onClick:b.func,outline:b.bool,size:b.string,tag:xt},ba={color:"secondary",tag:"button"};function wt(e){var t=y.useCallback(function(v){if(e.disabled){v.preventDefault();return}if(e.onClick)return e.onClick(v)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],o=e.block,i=e.className,a=e.close,c=e.cssModule,l=e.color,f=e.outline,p=e.size,g=e.tag,u=e.innerRef,h=va(e,ma);if(a)return y.createElement($n,h);var m="btn".concat(f?"-outline":"","-").concat(l),d=ot(J(i,"btn",m,p?"btn-".concat(p):!1,o?"d-block w-100":!1,{active:n,disabled:e.disabled}),c);return h.href&&g==="button"&&(g="a"),y.createElement(g,pn({type:g==="button"&&h.onClick?"button":void 0},h,{className:d,ref:u,onClick:t,"aria-label":r}))}wt.propTypes=ya;wt.defaultProps=ba;function xa(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function hn(e,t){return hn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},hn(e,t)}function wa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hn(e,t)}const Cr={disabled:!1};var Ca=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.shape({enter:b.number,exit:b.number,appear:b.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&b.oneOfType([b.string,b.shape({enter:b.string,exit:b.string,active:b.string}),b.shape({enter:b.string,enterDone:b.string,enterActive:b.string,exit:b.string,exitDone:b.string,exitActive:b.string})]);const So=y.createContext(null);var Oa=function(t){return t.scrollTop},ft="unmounted",$e="exited",Be="entering",Ge="entered",mn="exiting",Ne=function(e){wa(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,c=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?c?(l=$e,i.appearStatus=Be):l=Ge:r.unmountOnExit||r.mountOnEnter?l=ft:l=$e,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===ft?{status:$e}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Be&&a!==Ge&&(i=Be):(a===Be||a===Ge)&&(i=mn)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,c;return i=a=c=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,c=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:c}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Be){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:lt.findDOMNode(this);a&&Oa(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$e&&this.setState({status:ft})},n.performEnter=function(o){var i=this,a=this.props.enter,c=this.context?this.context.isMounting:o,l=this.props.nodeRef?[c]:[lt.findDOMNode(this),c],f=l[0],p=l[1],g=this.getTimeouts(),u=c?g.appear:g.enter;if(!o&&!a||Cr.disabled){this.safeSetState({status:Ge},function(){i.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:Be},function(){i.props.onEntering(f,p),i.onTransitionEnd(u,function(){i.safeSetState({status:Ge},function(){i.props.onEntered(f,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:lt.findDOMNode(this);if(!i||Cr.disabled){this.safeSetState({status:$e},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:mn},function(){o.props.onExiting(c),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:$e},function(){o.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(c){a&&(a=!1,i.nextCallback=null,o(c))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:lt.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],f=l[0],p=l[1];this.props.addEndListener(f,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===ft)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var c=xa(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(So.Provider,{value:null},typeof a=="function"?a(o,c):y.cloneElement(y.Children.only(a),c))},t}(y.Component);Ne.contextType=So;Ne.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:b.shape({current:typeof Element>"u"?b.any:function(e,t,n,r,o,i){var a=e[t];return b.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:b.oneOfType([b.func.isRequired,b.element.isRequired]).isRequired,in:b.bool,mountOnEnter:b.bool,unmountOnExit:b.bool,appear:b.bool,enter:b.bool,exit:b.bool,timeout:function(t){var n=Ca;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[t].concat(o))},addEndListener:b.func,onEnter:b.func,onEntering:b.func,onEntered:b.func,onExit:b.func,onExiting:b.func,onExited:b.func}:{};function qe(){}Ne.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qe,onEntering:qe,onEntered:qe,onExit:qe,onExiting:qe,onExited:qe};Ne.UNMOUNTED=ft;Ne.EXITED=$e;Ne.ENTERING=Be;Ne.ENTERED=Ge;Ne.EXITING=mn;const Bn=Ne;function vn(e){return vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(e)}var Ea=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],ze;function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},At.apply(this,arguments)}function ja(e,t){if(e==null)return{};var n=Sa(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sa(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Or(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ka(e,t,n){return t&&Or(e.prototype,t),n&&Or(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ta(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gn(e,t)}function gn(e,t){return gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},gn(e,t)}function Na(e){var t=_a();return function(){var r=_t(e),o;if(t){var i=_t(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Aa(this,o)}}function Aa(e,t){if(t&&(vn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Po(e)}function Po(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _a(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _t(e){return _t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_t(e)}function Er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function nt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Er(Object(n),!0).forEach(function(r){Ke(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Er(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ra=nt(nt({},Bn.propTypes),{},{horizontal:b.bool,isOpen:b.bool,children:b.oneOfType([b.arrayOf(b.node),b.node]),tag:xt,className:b.node,navbar:b.bool,cssModule:b.object,innerRef:b.shape({current:b.object})}),Ia=nt(nt({},Bn.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:la.Collapse}),Ma=(ze={},Ke(ze,jt.ENTERING,"collapsing"),Ke(ze,jt.ENTERED,"collapse show"),Ke(ze,jt.EXITING,"collapsing"),Ke(ze,jt.EXITED,"collapse"),ze);function Da(e){return Ma[e]||"collapse"}var Hn=function(e){Ta(n,e);var t=Na(n);function n(r){var o;return Pa(this,n),o=t.call(this,r),o.state={dimension:null},o.nodeRef=r.innerRef||y.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(i){o[i]=o[i].bind(Po(o))}),o}return ka(n,[{key:"onEntering",value:function(o,i){var a=this.getNode();this.setState({dimension:this.getDimension(a)}),this.props.onEntering(a,i)}},{key:"onEntered",value:function(o,i){var a=this.getNode();this.setState({dimension:null}),this.props.onEntered(a,i)}},{key:"onExit",value:function(){var o=this.getNode();this.setState({dimension:this.getDimension(o)}),this.props.onExit(o)}},{key:"onExiting",value:function(){var o=this.getNode();this.getDimension(o),this.setState({dimension:0}),this.props.onExiting(o)}},{key:"onExited",value:function(){var o=this.getNode();this.setState({dimension:null}),this.props.onExited(o)}},{key:"getNode",value:function(){return this.nodeRef.current}},{key:"getDimension",value:function(o){return this.props.horizontal?o.scrollWidth:o.scrollHeight}},{key:"render",value:function(){var o=this,i=this.props,a=i.tag,c=i.horizontal,l=i.isOpen,f=i.className,p=i.navbar,g=i.cssModule,u=i.children;i.innerRef;var h=ja(i,Ea),m=this.state.dimension,d=sa(h,wr),v=ia(h,wr);return y.createElement(Bn,At({},d,{in:l,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(E){var P=Da(E),O=ot(J(f,c&&"collapse-horizontal",P,p&&"navbar-collapse"),g),w=m===null?null:Ke({},c?"width":"height",m);return y.createElement(a,At({},v,{style:nt(nt({},v.style),w),className:O,ref:o.nodeRef}),u)})}}]),n}(y.Component);Hn.propTypes=Ra;Hn.defaultProps=Ia;const La=Hn;function yn(e){return yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yn(e)}var Fa=["className","cssModule","tag","innerRef"];function bn(){return bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bn.apply(this,arguments)}function $a(e,t){if(e==null)return{};var n=Ba(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ba(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Va(e,t,n){return t&&jr(e.prototype,t),n&&jr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ua(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xn(e,t)}function xn(e,t){return xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},xn(e,t)}function Wa(e){var t=qa();return function(){var r=Rt(e),o;if(t){var i=Rt(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Za(this,o)}}function Za(e,t){if(t&&(yn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wn(e)}function wn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qa(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rt(e){return Rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rt(e)}var za={children:b.node,tag:xt,innerRef:b.oneOfType([b.object,b.func,b.string]),className:b.string,cssModule:b.object},Ga={tag:"form"},Vn=function(e){Ua(n,e);var t=Wa(n);function n(r){var o;return Ha(this,n),o=t.call(this,r),o.getRef=o.getRef.bind(wn(o)),o.submit=o.submit.bind(wn(o)),o}return Va(n,[{key:"getRef",value:function(o){this.props.innerRef&&this.props.innerRef(o),this.ref=o}},{key:"submit",value:function(){this.ref&&this.ref.submit()}},{key:"render",value:function(){var o=this.props,i=o.className,a=o.cssModule,c=o.tag,l=o.innerRef,f=$a(o,Fa),p=ot(i,a);return y.createElement(c,bn({},f,{ref:l,className:p}))}}]),n}(y.Component);Vn.propTypes=za;Vn.defaultProps=Ga;const ko=Vn;var Ya=["className","cssModule","row","disabled","check","inline","floating","tag","switch"];function Cn(){return Cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cn.apply(this,arguments)}function Ka(e,t){if(e==null)return{};var n=Xa(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xa(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Ja={children:b.node,row:b.bool,check:b.bool,switch:b.bool,inline:b.bool,floating:b.bool,disabled:b.bool,tag:xt,className:b.string,cssModule:b.object},Qa={tag:"div"};function It(e){var t=e.className,n=e.cssModule,r=e.row,o=e.disabled,i=e.check,a=e.inline,c=e.floating,l=e.tag,f=e.switch,p=Ka(e,Ya),g=i||f,u=ot(J(t,r?"row":!1,g?"form-check":"mb-3",f?"form-switch":!1,g&&a?"form-check-inline":!1,g&&o?"disabled":!1,c&&"form-floating"),n);return l==="fieldset"&&(p.disabled=o),y.createElement(l,Cn({},p,{className:u}))}It.propTypes=Ja;It.defaultProps=Qa;function On(e){return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}var ec=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function En(){return En=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},En.apply(this,arguments)}function tc(e,t){if(e==null)return{};var n=nc(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function rc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oc(e,t,n){return t&&Sr(e.prototype,t),n&&Sr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ic(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jn(e,t)}function jn(e,t){return jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},jn(e,t)}function sc(e){var t=cc();return function(){var r=Mt(e),o;if(t){var i=Mt(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return ac(this,o)}}function ac(e,t){if(t&&(On(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sn(e)}function Sn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cc(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mt(e){return Mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mt(e)}var lc={children:b.node,type:b.string,size:b.oneOfType([b.number,b.string]),bsSize:b.string,valid:b.bool,invalid:b.bool,tag:xt,innerRef:b.oneOfType([b.object,b.func,b.string]),plaintext:b.bool,addon:b.bool,className:b.string,cssModule:b.object},uc={type:"text"},Un=function(e){ic(n,e);var t=sc(n);function n(r){var o;return rc(this,n),o=t.call(this,r),o.getRef=o.getRef.bind(Sn(o)),o.focus=o.focus.bind(Sn(o)),o}return oc(n,[{key:"getRef",value:function(o){this.props.innerRef&&this.props.innerRef(o),this.ref=o}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var o=this.props,i=o.className,a=o.cssModule,c=o.type,l=o.bsSize,f=o.valid,p=o.invalid,g=o.tag,u=o.addon,h=o.plaintext,m=o.innerRef,d=tc(o,ec),v=["switch","radio","checkbox"].indexOf(c)>-1,E=/\D/g,P=c==="textarea",O=c==="select",w=c==="range",x=g||(O||P?c:"input"),k="form-control";h?(k="".concat(k,"-plaintext"),x=g||"input"):w?k="form-range":O?k="form-select":v&&(u?k=null:k="form-check-input"),d.size&&E.test(d.size)&&(xr(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),l=d.size,delete d.size);var V=ot(J(i,p&&"is-invalid",f&&"is-valid",l?O?"form-select-".concat(l):"form-control-".concat(l):!1,k),a);return(x==="input"||g&&typeof g=="function")&&(d.type=c==="switch"?"checkbox":c),d.children&&!(h||c==="select"||typeof x!="string"||x==="select")&&(xr('Input with a type of "'.concat(c,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete d.children),y.createElement(x,En({},d,{ref:m,className:V,"aria-invalid":p}))}}]),n}(y.Component);Un.propTypes=lc;Un.defaultProps=uc;const Pr=Un,fc={success:"check"},kr={SET_AS_DEFAULT:"setAsDefault",DELETE:"delete"},dc=e=>[{name:kr.SET_AS_DEFAULT,displayName:"Set as Default",disabled:e.isDefault},{name:kr.DELETE,displayName:"Delete",disabled:e.name===co||e.isDefault}],Tr=e=>async t=>{t.stopPropagation();try{await e()}catch(n){console.error("Failed to handle layout action: ",n)}},pc=e=>{const{layouts:t}=e,{setSelectedLayout:n,setDefaultLayout:r}=rt(),o=Ds(),i=Ln();return s.jsxs(s.Fragment,{children:[s.jsx("h6",{children:"Available Layouts"}),t.map(a=>s.jsxs("div",{className:J("layouts-item flex ai-center",a.isSelected&&"active"),children:[s.jsx("div",{className:"loaded me-8",children:a.isSelected&&s.jsx(ue,{size:12,name:"check"})}),s.jsx("div",{className:J("name",{bold:a.isSelected}),onClick:()=>{i(a.name,n)},children:a.name}),s.jsxs("div",{className:"type",children:[a.type,a.isDefault?"/Default":""]}),s.jsx(Rn,{iconSize:16,iconName:"ellipsis",actions:dc(a),onActionItemClick:(c,l)=>o(a,l.name,r)})]},a.name))]})},Nr=e=>{const{inputValue:t,setNotification:n,className:r=""}=e,{selectedLayout:o,setSelectedLayout:i}=rt(),a=Ln(),c=y.useContext(ne.IOConnectContext),l=[{label:"Save",type:"save",onClick:Tr(async()=>{await c.layouts.save({name:t,type:"Global"}),i({name:t}),n({message:"Saved",type:"success"})})},{label:"Restore",type:"restore",onClick:Tr(()=>{o&&a(o.name)})}];return s.jsx("div",{className:J("layout-actions",r),children:l.map(({label:f,type:p,disabled:g,onClick:u})=>s.jsx("button",{onClick:u,disabled:g,className:"g42-btn",children:f},p))})},hc=({className:e,message:t,type:n})=>s.jsxs("div",{className:J("layout-notification",`layout-notification-${n}`,e),children:[s.jsx(ue,{size:12,name:fc[n]}),s.jsx("span",{children:t})]}),To=()=>{const e=y.useRef(null),[t,n]=y.useState(!1),[r,o]=y.useState(null),i=ys(),{defaultLayout:a,selectedLayout:c}=rt(),[l,f]=y.useState("");y.useEffect(()=>{if(!t)return;const g=h=>{e.current?.contains(h.target)||n(!1)},u=()=>{document.activeElement?.nodeName==="IFRAME"&&n(!1)};return document.addEventListener("click",g,!0),window.addEventListener("blur",u,!0),()=>{document.removeEventListener("click",g,!0),window.removeEventListener("blur",u,!0)}},[t]),y.useEffect(()=>{if(!r)return;const g=setTimeout(()=>o(null),3e3);return()=>clearTimeout(g)},[r]),y.useEffect(()=>{c&&f(c.name)},[c]);const p=()=>{n(g=>!g),c&&f(c.name)};return s.jsxs("footer",{className:"footer",ref:e,children:[s.jsxs("div",{"aria-label":"Layouts panel","aria-expanded":t,role:"button",...tt(p),className:"selected-layout flex ai-center",children:[s.jsx("span",{className:J("name",{hidden:t}),children:c?.name||"No selected layout"}),s.jsxs("div",{className:"flex ai-center",children:[!t&&s.jsx(Nr,{inputValue:l,setNotification:o}),s.jsx(ue,{className:J("ms-8","layouts-panel-toggle-button",{"layouts-panel-toggle-button-rotated":t}),name:"chevron-up"})]})]}),s.jsx(La,{isOpen:t,children:s.jsxs("div",{className:"layouts-container",children:[s.jsxs("div",{className:"layouts-settings",children:[s.jsx("input",{className:"g42-input",onChange:g=>f(g.target.value),value:l}),s.jsx(Nr,{className:"group",inputValue:l,setNotification:o})]}),s.jsx("div",{children:s.jsx(pc,{layouts:i.map(g=>({...g,isSelected:g.name===c?.name,isDefault:g.name===a?.name}))})})]})}),r?s.jsx(hc,{className:J({"ms-8 me-8":t}),message:r.message,type:r.type}):s.jsx("div",{className:"powered-by",children:"Powered by io.Connect Browser"})]})},mc=e=>{const t=new Date(e),n=t.getHours(),r=t.getMinutes().toString().padStart(2,"0"),o=t.getSeconds().toString().padStart(2,"0"),i=n>=12?"PM":"AM",a=t.getMonth()+1,c=t.getDate(),l=t.getFullYear();return`${n%12}:${r}:${o} ${i} ${a}/${c}/${l}`},No=e=>{const{severity:t="None",id:n,timestamp:r,title:o,body:i,actions:a}=e.notificationData,c=y.useContext(ne.IOConnectContext),l=()=>{c&&c.notifications.clear(n).catch(console.error)},f=async g=>{g.stopPropagation();try{await c.notifications.click(n),l()}catch(u){console.error(u)}},p=a?.map(({action:g,title:u})=>({children:u,onClick:async h=>{h.stopPropagation();try{await c.notifications.click(n,g),l()}catch(m){console.error(m)}}}));return s.jsxs("div",{className:"notifications-list-item",style:{borderLeftColor:bs[t]},onClick:f,"data-testid":"notification-container",children:[s.jsxs("div",{className:"notification-header","data-testid":"notification-header",children:[s.jsx("h4",{children:o}),s.jsx(ue,{onClick:g=>{g.stopPropagation(),l()},className:"g42-btn close-btn",size:16,name:"close","data-testid":"close-icon"})]}),i&&s.jsx("p",{"data-testid":"notification-body",children:i}),r&&s.jsx("p",{"data-testid":"notification-timestamp",children:mc(r)}),p&&s.jsx(Ut,{className:"notification-actions","data-testid":"notification-actions",items:p})]})},Wn=e=>{const{className:t}=e,n=Qr().length;return n>0?s.jsx("span",{className:J("notifications-badge",t),"data-testid":"notifications-badge",children:n<10?n:"9+"}):null},Ao=e=>{const{className:t,iconSize:n=24,...r}=e;return s.jsxs("div",{className:J(t,"notifications-icon"),"data-testid":"notifications-icon",...r,children:[s.jsx(ue,{size:n,name:"bell"}),s.jsx(Wn,{})]})},_o=()=>{const{onNotificationsSort:e,sortedNotifications:t}=Os(),n=y.useContext(ne.IOConnectContext),r=y.useCallback(()=>{n&&n.notifications.clearAll().catch(console.error)},[n]);return s.jsxs("div",{className:"notifications-panel","data-testid":"notifications-panel",children:[s.jsxs("div",{className:"header","data-testid":"notifications-panel-header",children:[s.jsx("div",{className:"header-caption",children:s.jsxs("div",{children:["Notifications (",t.length,")"]})}),s.jsx(Ut,{items:[{children:"Latest",onClick:()=>e("timestamp")},{children:"By Priority",onClick:()=>e("severity")}]})]}),t.length?s.jsx("div",{className:"notifications-list","data-testid":"notifications-list",children:t.map(o=>s.jsx(No,{notificationData:o},o.id))}):s.jsx("div",{className:"no-notifications",children:"No notifications"}),s.jsx("div",{className:"footer","data-testid":"notifications-panel-footer",children:s.jsx(bt,{children:"Clear All",onClick:r})})]})},Ar=({children:e,closeFn:t,open:n=!1,showCloseButton:r=!0})=>{const o=y.useRef(null);return y.useEffect(()=>{n?o.current?.showModal():o.current?.close()},[n]),s.jsx("dialog",{ref:o,onClose:()=>{n&&t()},onClick:i=>{i.target.nodeName==="DIALOG"&&t()},children:s.jsxs("div",{className:"dialog-backer",children:[r&&s.jsx(ue,{onClick:t,className:"btn-close g42-btn g42-btn-icon",size:16,name:"close"}),e]})})};function Ro(e){const{open:t,setOpen:n,onLogout:r,className:o,components:i,user:a,...c}=e,[l,f]=y.useState(""),[p,g]=y.useState(!1),[u,h]=y.useState(!1),m=y.useRef(null);y.useEffect(()=>{if(t){m.current?.focus();return}f("")},[t]);const d=P=>{f(P.target.value)},v=()=>{f("")},E=s.jsx(Ws,{children:s.jsx("ul",{children:i?.sections||s.jsxs(s.Fragment,{children:[s.jsx(mo,{}),s.jsx(Oo,{}),s.jsx(ho,{})]})})});return s.jsxs(Hs,{setOpen:n,isOpen:t,children:[s.jsxs("div",{className:J(o),...c,children:[s.jsxs("header",{children:[s.jsx(wo,{ref:m,searchTerm:l,onSearch:d,onClear:v}),s.jsxs("div",{className:"action-area",children:[s.jsx(Ao,{"aria-label":"Notifications",role:"button",...tt(()=>g(!0))}),a&&s.jsx(vo,{initials:bo(a.name||"N A"),"aria-label":"Profile and Settings",role:"button",...tt(()=>h(!0))})]}),s.jsx(ue,{className:"btn-close g42-btn g42-btn-icon",size:16,name:"close",handleClick:()=>n(!1)})]}),s.jsx("main",{children:l.trim().length<3?E:s.jsx(Co,{searchTerm:l})}),s.jsx(To,{})]}),s.jsx(Ar,{open:p,closeFn:()=>g(!1),children:s.jsx(_o,{})}),s.jsx(Ar,{open:u,closeFn:()=>h(!1),children:s.jsx(xo,{onLogout:r,user:a})})]})}const vc=({email:e,password:t,canSubmit:n,errorMessage:r,onSubmit:o,onChange:i})=>{const a=c=>{c.key==="Enter"&&(c.preventDefault(),o())};return s.jsxs(ko,{onKeyUp:a,onSubmit:o,children:[s.jsx(It,{children:s.jsx(Pr,{autoFocus:!0,autoComplete:"off",type:"text",placeholder:"Email",value:e,onChange:i,className:"g42-input"})}),s.jsx(It,{children:s.jsx(Pr,{autoComplete:"off",type:"password",placeholder:"Password",value:t,onChange:i})}),s.jsx("div",{className:"pb-2 login-error-feedback",children:r??""}),s.jsx(wt,{disabled:!n,onClick:o,children:"SIGN IN"})]})},Zn=({className:e="welcome-text text-center mb-3",text:t="Making Your Work Flow"})=>s.jsxs(s.Fragment,{children:[s.jsx("h1",{className:e,children:t}),s.jsx("p",{children:"Integrate apps, simplify user experiences and accelerate digital transformation."})]}),gc={value:"data:image/svg+xml,%3Csvg width='5041' height='1232' viewBox='0 0 5041 1232' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_879_362)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M548.6 178H439.6C368.7 178 310 199.5 269.3 244.5C228.6 289.3 206.7 356 206.7 444.3C206.7 532.6 228.6 599.5 269.3 644.2C310.2 689.2 368.7 710.7 439.6 710.7H548.6C619 710.7 677.6 689.2 718.6 644.2C759.5 599.4 781.6 532.6 781.6 444.2C781.6 355.8 759.5 289 718.6 244.2C677.7 199.3 619 177.7 548.6 177.7V178ZM449.5 293.8H538.9C582.2 293.8 611.9 305.2 631.1 328.3C650.5 351.8 660.5 389.2 660.5 444.4C660.5 499.6 650.5 536.7 631.1 560C612 583 582.2 594.1 538.9 594.1H449.5C405.6 594.1 375.9 583 356.9 560C337.6 536.8 327.7 499.7 327.7 444.5C327.7 389.3 337.4 351.9 356.8 328.4C375.9 305.2 405.6 293.8 449.5 293.8Z' fill='white'/%3E%3Cpath d='M0.700195 189.8C0.700195 183.1 6.10017 177.7 12.8002 177.7H108.6C115.3 177.7 120.7 183.1 120.7 189.8V698.6C120.7 705.3 115.3 710.7 108.6 710.7H12.8002C6.10017 710.7 0.700195 705.3 0.700195 698.6V189.8Z' fill='white'/%3E%3Cpath d='M0.700195 11.9002C0.700195 5.7002 5.70018 0.700195 11.9002 0.700195H109.6C115.7 0.700195 120.7 5.7002 120.7 11.9002V109.5C120.7 115.7 115.7 120.7 109.5 120.7H11.9002C5.70018 120.7 0.700195 115.7 0.700195 109.5V11.9002Z' fill='%23007BE5'/%3E%3Cpath d='M827.7 601.9C827.7 595.7 832.7 590.7 838.9 590.7H936.6C942.8 590.7 947.8 595.7 947.8 601.9V699.5C947.8 705.7 942.8 710.7 936.6 710.7H838.9C832.7 710.7 827.7 705.7 827.7 699.5V601.9Z' fill='%23007BE5'/%3E%3Cpath d='M4363.9 293.2C4320.2 293.2 4290.6 304.6 4271.6 327.8C4252.3 351.4 4242.5 388.8 4242.5 444C4242.5 499.2 4252.3 536.4 4271.5 559.7C4290.5 582.6 4320 593.8 4363.8 593.8H4614.7C4622.4 593.8 4628.7 600.1 4628.7 607.8V696.7C4628.7 704.4 4622.4 710.7 4614.7 710.7H4354.1C4283.3 710.7 4224.9 689.1 4184.1 644.1C4143.5 599.3 4121.6 532.4 4121.6 444C4121.6 355.6 4143.5 288.7 4184.1 243.9C4224.8 199 4283.3 177.3 4354.1 177.3H4614.7C4622.4 177.3 4628.7 183.6 4628.7 191.3V279.3C4628.7 287 4622.4 293.3 4614.7 293.3H4363.9V293.2Z' fill='white'/%3E%3Cpath d='M1302.6 165.3C1240.1 165.3 1197 180.9 1169.3 213.3C1141.3 246 1127.4 297.6 1127.4 372.9C1127.4 447.7 1141.1 499 1169 531.6C1196.6 563.9 1239.7 579.5 1302.7 579.5H1552.5C1560.2 579.5 1566.5 585.8 1566.5 593.5V697.1C1566.5 704.8 1560.2 711.1 1552.5 711.1H1302.7C1204.7 711.1 1127.5 683.4 1075 626.4C1022.4 569.7 995.7 484.8 995.7 372.9C995.7 260.5 1022.7 175.4 1075.2 118.4C1127.9 61.3001 1205 33.6001 1302.6 33.6001H1552.4C1560.1 33.6001 1566.4 39.9001 1566.4 47.6001V151.2C1566.4 158.9 1560.1 165.2 1552.4 165.2H1302.6V165.3Z' fill='white'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1953.6 177.7H1844.8C1774 177.7 1715.6 199.3 1674.8 244.3C1634.2 289.1 1612.3 356 1612.3 444.4C1612.3 532.8 1634.2 599.7 1674.8 644.5C1715.5 689.4 1774 711.1 1844.8 711.1H1953.6C2023.9 711.1 2082.4 689.5 2123.2 644.5C2163.9 599.7 2186 532.8 2186 444.3C2186 355.8 2163.9 289 2123.2 244.1C2082.3 199.3 2023.9 177.7 1953.6 177.7ZM1854.6 293.7H1943.8C1987 293.7 2016.6 305.1 2035.8 328.3C2055.2 351.9 2065.2 389.3 2065.2 444.5C2065.2 499.7 2055.2 536.8 2035.8 560.2C2016.7 583.2 1987.1 594.3 1943.8 594.3H1854.6C1810.8 594.3 1781.3 583.1 1762.3 560.2C1743 536.9 1733.3 499.8 1733.3 444.5C1733.3 389.3 1743.1 351.9 1762.4 328.3C1781.3 305 1810.9 293.7 1854.6 293.7Z' fill='white'/%3E%3Cpath d='M2679.7 411.6C2679.7 372.5 2668.5 343.5 2645.4 324C2622.1 304.3 2585.3 293.2 2531.9 293.2H2378.4C2375.5 293.2 2374.9 293.9 2374.8 294C2374.5 294.4 2373.6 295.8 2373.6 299.8V696.7C2373.6 704.4 2367.3 710.7 2359.6 710.7H2267.7C2260 710.7 2253.7 704.4 2253.7 696.7V265.6C2253.7 234.7 2258.8 212 2272.6 197.2C2286.5 182.2 2307.5 177.3 2334.2 177.3H2531.8C2620.7 177.3 2688 198.4 2733.3 238.9C2778.7 279.5 2800.5 338.6 2800.5 411.7V696.7C2800.5 704.4 2794.2 710.7 2786.5 710.7H2693.7C2686 710.7 2679.7 704.4 2679.7 696.7V411.6Z' fill='white'/%3E%3Cpath d='M3304.7 411.6C3304.7 372.5 3293.5 343.5 3270.4 324C3247.1 304.3 3210.3 293.2 3156.9 293.2H3003.4C3000.5 293.2 2999.9 293.9 2999.8 294C2999.5 294.4 2998.6 295.8 2998.6 299.8V696.7C2998.6 704.4 2992.3 710.7 2984.6 710.7H2892.7C2885 710.7 2878.7 704.4 2878.7 696.7V265.6C2878.7 234.7 2883.8 212 2897.6 197.2C2911.5 182.2 2932.5 177.3 2959.2 177.3H3156.8C3245.7 177.3 3313 198.4 3358.3 238.9C3403.7 279.5 3425.5 338.6 3425.5 411.7V696.7C3425.5 704.4 3419.2 710.7 3411.5 710.7H3318.7C3311 710.7 3304.7 704.4 3304.7 696.7V411.6Z' fill='white'/%3E%3Cpath d='M4906.1 292.2C4898.4 292.2 4892.1 298.5 4892.1 306.2V529.2C4892.1 557.5 4897.2 574.3 4906.4 584.1C4915.4 593.8 4930 598.6 4953.7 598.6H5019.2C5026.9 598.6 5033.2 604.9 5033.2 612.6V695.7C5033.2 703.4 5026.9 709.7 5019.2 709.7H4932.1C4877.9 709.7 4836.8 698.8 4809.7 668.6C4782.8 638.6 4771.3 591.5 4771.3 523.4V306.2C4771.3 298.5 4765 292.2 4757.3 292.2H4714.7C4707 292.2 4700.7 285.9 4700.7 278.2V190.2C4700.7 182.5 4707 176.2 4714.7 176.2H4757.3C4765 176.2 4771.3 169.9 4771.3 162.2V67.7002C4771.3 60.0002 4777.6 53.7002 4785.3 53.7002H4878.2C4885.9 53.7002 4892.2 60.0002 4892.2 67.7002V162.2C4892.2 169.9 4898.5 176.2 4906.2 176.2H5021.3C5029 176.2 5035.3 182.5 5035.3 190.2V278.2C5035.3 285.9 5029 292.2 5021.3 292.2H4906.1Z' fill='white'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4024.4 607.2C4024.4 599.5 4018.1 593.2 4010.4 593.2H3699.9C3672.9 593.2 3655.3 586 3644.6 575.2C3633.8 564.4 3628.6 548.8 3628.6 529.7V514.5C3628.6 506.8 3634.9 500.5 3642.6 500.5H3866.6C3931.2 500.5 3977.4 486.9 4007.5 459.6C4037.7 432.2 4050.1 392.3 4050.1 343.5C4050.1 292.2 4036.8 250.1 4006.4 220.9C3976.1 191.7 3930.1 176.8 3867.7 176.8H3700.1C3633.9 176.8 3586.5 195.4 3555.6 227.8C3524.8 260.1 3511.8 305 3511.8 355.3V531.7C3511.8 582 3524.9 626.9 3555.6 659.2C3586.5 691.6 3633.9 710.2 3700.1 710.2H4010.6C4018.3 710.2 4024.6 703.9 4024.6 696.2V607.2H4024.4ZM3863.5 403.1H3642.5C3634.8 403.1 3628.5 396.8 3628.5 389.1V356.2C3628.5 337.6 3633.7 321.9 3644.6 311C3655.4 300.1 3672.9 292.7 3699.9 292.7H3866.5C3890.7 292.7 3906.9 298.8 3916.9 308.2C3926.9 317.5 3932 331.3 3932 349.4C3932 367.1 3927.3 380 3917.4 388.6C3907.4 397.4 3890.5 403.1 3863.5 403.1Z' fill='white'/%3E%3Cpath d='M2918.9 872.3C3001.9 872.3 3036.9 909.9 3036.9 966.3C3036.9 1012.2 3013.9 1036.8 2973.2 1047.2C3014.4 1058.2 3037.9 1083.7 3037.9 1129.7C3037.9 1186.1 3003.5 1224.7 2920.5 1224.7H2755.6C2741.5 1224.7 2734.2 1217.9 2734.2 1203.8V893.2C2734.2 879.1 2741.5 872.3 2755.6 872.3H2918.9ZM2765.4 1033.1H2918.9C2976.8 1033.1 3005 1014.8 3005 970.5C3005 929.8 2979.4 903.7 2919.4 903.7H2771.2C2767.5 903.7 2765.5 905.3 2765.5 909.4V1033.1H2765.4ZM2765.4 1187.6C2765.4 1191.8 2767.5 1193.3 2771.1 1193.3H2921C2979.5 1193.3 3006.1 1168.2 3006.1 1125.4C3006.1 1081 2976.9 1060.2 2921 1060.2H2765.5V1187.6H2765.4Z' fill='white'/%3E%3Cpath d='M3294 956.9V985.6H3182.8C3148.9 985.6 3135.3 1000.7 3135.3 1033.6V1224.6H3106.1V1029.9C3106.1 979.8 3125.4 956.8 3176.6 956.8H3294V956.9Z' fill='white'/%3E%3Cpath d='M3489.1 956.9C3562.2 956.9 3608.6 1001.3 3608.6 1091C3608.6 1181.3 3562.1 1224.6 3489.1 1224.6H3431.2C3357.6 1224.6 3311.7 1181.3 3311.7 1091C3311.7 1001.2 3357.6 956.9 3431.2 956.9H3489.1ZM3433.3 985.6C3374.3 985.6 3340.9 1019 3340.9 1091C3340.9 1163.5 3374.3 1196.4 3433.3 1196.4H3487.1C3546.1 1196.4 3579.5 1163.5 3579.5 1091C3579.5 1019 3546.1 985.6 3487.1 985.6H3433.3Z' fill='white'/%3E%3Cpath d='M3674.4 956.9L3706.8 1176.6C3709.4 1195.4 3716.2 1204.3 3737.1 1204.3C3758.5 1204.3 3767.4 1195.4 3771.5 1180.3L3821.6 995.5C3829.4 966.8 3849.3 951.7 3884.2 951.7C3919.1 951.7 3937.4 966.8 3945.3 995.5L3994.9 1180.3C3999.1 1195.4 4007.9 1204.3 4029.3 1204.3C4050.2 1204.3 4056.4 1195.4 4059.6 1176.6L4093.5 956.9H4125.3L4089.3 1179.8C4084.6 1210.6 4069.5 1231 4028.2 1231C3992.7 1231 3975 1216.4 3966.6 1185.1L3917 1000.9C3912.8 985.2 3900.8 978.5 3883.6 978.5C3865.9 978.5 3854.9 985.3 3850.7 1000.9L3799.6 1185.1C3790.7 1216.4 3773.5 1231 3737.5 1231C3695.2 1231 3682.2 1210.1 3677.5 1179.8L3643.1 956.9H3674.4Z' fill='white'/%3E%3Cpath d='M4417.6 956.9V985.6H4260C4219.8 985.6 4203.6 1003.3 4203.6 1032.1C4203.6 1057.2 4216.1 1077.5 4263.6 1077.5H4338.8C4410.8 1077.5 4428.6 1110.9 4428.6 1149.5C4428.6 1194.9 4404.6 1224.7 4344 1224.7H4178V1196.5H4344C4384.2 1196.5 4399.8 1178.2 4399.8 1149.5C4399.8 1124.4 4387.8 1103.6 4339.8 1103.6H4264.6C4193.1 1103.6 4174.8 1069.2 4174.8 1030C4174.8 985.1 4198.8 956.9 4259.4 956.9H4417.6Z' fill='white'/%3E%3Cpath d='M4685.4 956.9C4749.1 956.9 4775.7 986.6 4775.7 1036.8C4775.7 1084.8 4751.2 1111.4 4684.9 1111.4H4526.2V1135.9C4526.2 1170.3 4545 1196.4 4593.5 1196.4H4762.1V1224.6H4593.5C4524.6 1224.6 4497.5 1187.5 4497.5 1136.4V1045.1C4497.5 995 4524.6 956.9 4593.5 956.9H4685.4ZM4526.2 1087.4H4684.3C4729.7 1087.4 4746.9 1069.7 4746.9 1037.8C4746.9 1005.4 4728.6 985.6 4685.3 985.6H4593.4C4544.9 985.6 4526.1 1011.2 4526.1 1045.6V1087.4H4526.2Z' fill='white'/%3E%3Cpath d='M5040.3 956.9V985.6H4929.1C4895.2 985.6 4881.6 1000.7 4881.6 1033.6V1224.6H4852.4V1029.9C4852.4 979.8 4871.7 956.8 4922.9 956.8H5040.3V956.9Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_879_362'%3E%3Crect width='5041' height='1231' fill='white' transform='translate(0 0.700195)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A"},yc={loginPageLogo:gc},bc="256px",Wt=({logoSrc:e=yc.loginPageLogo.value,width:t=bc,className:n="logo"})=>s.jsx("img",{width:t,src:e,className:n,alt:"Login logo"}),xc=(e,t)=>{const n=t.value||"",r=n.includes("@"),o=r||!n.length?void 0:"The provided input is not a valid email";return{value:n,isValid:r,validationError:o}},wc=(e,t)=>{const n=t.value||"",r=n.trim().length>3,o=r||!n.length?void 0:"The provided does not meet the length requirement";return{value:n,isValid:r,validationError:o}};const Cc=({onLogin:e,loginErrorMessage:t,components:n})=>{const[r,o]=y.useState(!1),[i,a]=y.useReducer(xc,{value:"",isValid:!1}),[c,l]=y.useReducer(wc,{value:"",isValid:!1}),{isValid:f}=i,{isValid:p}=c;y.useEffect(()=>{const v=setTimeout(()=>{o(f&&p)},250);return()=>clearTimeout(v)},[f,p]);const g=(v,E)=>{(v.target.type==="password"?l:a)({value:E})},u=v=>g(v,v.target.value),h=()=>{if(!f||!p)return;const v=i.value,E=c.value;e(v,E)},m=n?.Logo||Wt,d=n?.Heading||Zn;return s.jsxs(s.Fragment,{children:[s.jsx(m,{}),s.jsx(d,{}),s.jsx(vc,{email:i.value,password:c.value,errorMessage:t??i.validationError??c.validationError,canSubmit:r,onChange:u,onSubmit:h})]})},Oc=({components:e})=>{const t=e?.Logo||Wt,n=e?.Heading||Zn;return s.jsxs(s.Fragment,{children:[s.jsx(t,{}),s.jsx(n,{}),s.jsx("span",{className:"loader"})]})},Ec=({components:e,onLogin:t})=>{const n=e?.Logo||Wt,r=e?.Heading||Zn;return s.jsxs(s.Fragment,{children:[s.jsx(n,{}),s.jsx(r,{}),s.jsx(ko,{children:s.jsx(bt,{onClick:t,className:"g42-btn-primary",children:"Log In"})})]})},jc=()=>s.jsxs(s.Fragment,{children:[s.jsx(Rr.Logo,{}),s.jsx(Wn,{})]}),Sc="_workspaceLogo_t3m7s_1",_r={workspaceLogo:Sc,"launchpad-popup":"_launchpad-popup_t3m7s_9","slide-in":"_slide-in_t3m7s_32"},Io=e=>{const[t,n]=y.useState(!1),r=y.useRef(null),o=y.useRef(null),{icon:i,children:a}=e;return y.useEffect(()=>{if(!t)return;const c=f=>{const p=f.target!==r.current&&!r.current?.contains(f.target);!(f.target===o.current||o.current?.contains(f.target))&&p&&n(!1)},l=()=>{document.activeElement?.nodeName==="IFRAME"&&n(!1)};return document.addEventListener("mouseup",c,!0),window.addEventListener("blur",l,!0),()=>{document.removeEventListener("mouseup",c,!0),window.removeEventListener("blur",l,!0)}},[t]),s.jsxs("div",{ref:r,children:[s.jsx("button",{"aria-label":"Launchpad",onClick:()=>n(c=>!c),className:`g42-logo ${t===!0?"active":""}`,ref:o,children:s.jsx("div",{className:"logo-wrapper",children:i})}),s.jsx("div",{children:s.jsx("div",{className:J(_r["launchpad-popup"],{[_r["slide-in"]]:t}),children:a({open:t,setOpen:n})})})]})},Pc=e=>{const{icon:t,components:n,onLogout:r,user:o}=e;return s.jsx(Io,{icon:t,children:({open:i,setOpen:a})=>s.jsx(Ro,{open:i,setOpen:a,user:o,onLogout:r,components:n})})},kc=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:222,height:130,fill:"none",...e,children:[s.jsx("g",{filter:"url(#a)",children:s.jsx("path",{fill:"url(#b)",d:"M16 24h190v98a6 6 0 0 1-6 6H22a6 6 0 0 1-6-6V24Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M16 24h190V7a6 6 0 0 0-6-6H22a6 6 0 0 0-6 6v17Z"}),s.jsx("path",{stroke:"url(#c)",d:"M16 23.5h189"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M178.172 15.343a2.171 2.171 0 1 0 0-4.342 2.171 2.171 0 0 0 0 4.342ZM186.258 15.343a2.171 2.171 0 1 0 .001-4.343 2.171 2.171 0 0 0-.001 4.343Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M194.344 15.343a2.171 2.171 0 1 0 .001-4.343 2.171 2.171 0 0 0-.001 4.343Z"}),s.jsx("rect",{width:75,height:75,x:73.5,y:33.5,stroke:"#9DA2A5",strokeDasharray:"1 12",rx:37.5}),s.jsx("rect",{width:69,height:24,x:127,y:64,fill:"#3C3E3F",rx:2}),s.jsx("path",{fill:"#2479E9",d:"M139 72a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"}),s.jsx("rect",{width:39,height:8,x:148,y:72,fill:"#D9D9D9",fillOpacity:.1,rx:4}),s.jsx("rect",{width:69,height:24,x:127,y:92,fill:"#3C3E3F",rx:2}),s.jsx("path",{fill:"#36A86B",d:"M139 100a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"}),s.jsx("rect",{width:11,height:8,x:148,y:100,fill:"#D9D9D9",fillOpacity:.1,rx:4}),s.jsx("rect",{width:18,height:8,x:164,y:100,fill:"#D9D9D9",fillOpacity:.1,rx:4}),s.jsx("rect",{width:66,height:66,x:78,y:38,fill:"#36AA6C",rx:33}),s.jsx("path",{fill:"#fff",d:"M110.25 59.75c0-.375.328-.75.75-.75.375 0 .75.375.75.75v.797c3.75.375 6.75 3.562 6.75 7.453v1.406c0 2.016.797 3.985 2.25 5.438l.141.14c.375.375.609.938.609 1.454a2.1 2.1 0 0 1-2.109 2.109h-16.829c-1.171-.047-2.062-.938-2.062-2.11 0-.562.188-1.078.609-1.453l.094-.14c1.453-1.453 2.297-3.422 2.297-5.438V68a7.484 7.484 0 0 1 6.75-7.453v-.797ZM111 62c-3.328 0-6 2.719-6 6v1.406a9.227 9.227 0 0 1-2.719 6.516l-.14.094a.755.755 0 0 0-.141.421c0 .329.234.563.562.563h16.829c.328 0 .609-.234.609-.563 0-.14-.094-.28-.188-.421l-.14-.094a9.258 9.258 0 0 1-2.719-6.563V68c0-3.281-2.672-6-6-6H111Zm-1.453 18.516c.234.609.797.984 1.453.984.609 0 1.172-.375 1.406-.984.141-.375.563-.61.938-.47.375.141.609.563.468.985A2.99 2.99 0 0 1 111 83c-1.312 0-2.438-.797-2.859-1.969a.785.785 0 0 1 .468-.984c.375-.14.797.094.938.469Z"}),s.jsx("rect",{width:191,height:128,x:15.5,y:.5,stroke:"url(#d)",strokeMiterlimit:10,rx:6.5}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"b",x1:39.152,x2:71.862,y1:30.346,y2:129.753,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#383838"}),s.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),s.jsxs("linearGradient",{id:"c",x1:9.298,x2:205,y1:24,y2:24,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:1,stopColor:"#5F5F5F",stopOpacity:0})]}),s.jsxs("linearGradient",{id:"d",x1:34.959,x2:127.671,y1:39.954,y2:146.801,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:0,stopColor:"#575757"}),s.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),s.jsxs("filter",{id:"a",width:222,height:136,x:0,y:15,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.jsx("feOffset",{dy:7}),s.jsx("feGaussianBlur",{stdDeviation:8}),s.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),s.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_816_102831"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_816_102831",result:"shape"})]})]})]}),Tc=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:182,height:121,fill:"none",...e,children:[s.jsx("path",{fill:"url(#a)",d:"M114.092 103.689h-46.36v11.541h46.36v-11.541Z"}),s.jsx("path",{fill:"#828589",d:"M134.371 115.23H47.446v5.771h86.925v-5.771Z"}),s.jsx("rect",{width:180.555,height:103.984,x:.723,fill:"url(#b)",rx:8}),s.jsx("rect",{width:167,height:90,x:7.5,y:7,fill:"#000",fillOpacity:.4,rx:4}),s.jsxs("g",{filter:"url(#c)",children:[s.jsx("rect",{width:102,height:56,x:40,y:24,fill:"url(#d)",rx:6}),s.jsx("rect",{width:86,height:8,x:48,y:44.5,fill:"#D9D9D9",fillOpacity:.1,rx:4}),s.jsx("rect",{width:41,height:8,x:48,y:59.5,fill:"#fff",fillOpacity:.14,rx:4}),s.jsx("rect",{width:41,height:8,x:93,y:59.5,fill:"#fff",fillOpacity:.3,rx:4}),s.jsx("rect",{width:8,height:8,x:126,y:31,fill:"#DE2122",rx:4}),s.jsx("path",{fill:"#fff",d:"m131.878 33.683-1.31 1.31 1.31 1.324a.384.384 0 0 1 0 .561.384.384 0 0 1-.561 0l-1.311-1.31-1.323 1.31a.384.384 0 0 1-.561 0 .384.384 0 0 1 0-.561l1.31-1.323-1.31-1.31a.384.384 0 0 1 0-.562.384.384 0 0 1 .561 0l1.323 1.31 1.311-1.31a.384.384 0 0 1 .561 0 .384.384 0 0 1 0 .561Z"}),s.jsx("rect",{width:101,height:55,x:40.5,y:24.5,stroke:"url(#e)",strokeMiterlimit:10,rx:5.5})]}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"a",x1:90.912,x2:90.912,y1:103.689,y2:115.23,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsxs("linearGradient",{id:"b",x1:91,x2:91,y1:0,y2:103.984,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsxs("linearGradient",{id:"d",x1:52.429,x2:70.085,y1:27.417,y2:80.913,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#313131"}),s.jsx("stop",{offset:1,stopColor:"#1B1B1B"})]}),s.jsxs("linearGradient",{id:"e",x1:50.178,x2:89.211,y1:41.176,y2:95.944,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:0,stopColor:"#575757"}),s.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),s.jsxs("filter",{id:"c",width:134,height:88,x:24,y:15,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.jsx("feOffset",{dy:7}),s.jsx("feGaussianBlur",{stdDeviation:8}),s.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),s.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2206_37806"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2206_37806",result:"shape"})]})]})]}),Nc=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:196,height:130,fill:"none",...e,children:[s.jsx("g",{filter:"url(#a)",children:s.jsx("path",{fill:"url(#b)",d:"M16 52.406h164v70a6 6 0 0 1-6 6H22a6 6 0 0 1-6-6v-70Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M16 52.406h164v-17a6 6 0 0 0-6-6H22a6 6 0 0 0-6 6v17Z"}),s.jsx("path",{stroke:"url(#c)",d:"M16 51.906h163"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M152.172 43.75a2.171 2.171 0 1 0 0-4.343 2.171 2.171 0 0 0 0 4.342ZM160.258 43.75a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M168.344 43.75a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),s.jsx("rect",{width:165.324,height:99.595,x:15.5,y:28.906,stroke:"url(#d)",strokeMiterlimit:10,rx:6.5}),s.jsx("path",{fill:"url(#e)",d:"M96.469 13.858c1.347-2.334 4.717-2.334 6.064 0l58.373 101.105c1.348 2.335-.337 5.253-3.032 5.253H41.128c-2.696 0-4.38-2.918-3.033-5.253L96.47 13.858Z"}),s.jsx("path",{fill:"#fff",d:"M97.705 88.342a1 1 0 0 1-1-.975l-.826-33.968a1 1 0 0 1 1-1.024h6.267a1 1 0 0 1 1 1.024l-.827 33.968a1 1 0 0 1-1 .975h-4.614Zm2.526 15.54c-1.508 0-2.748-.462-3.72-1.386-.925-.973-1.387-2.116-1.387-3.43 0-1.361.462-2.504 1.386-3.428.973-.973 2.213-1.46 3.721-1.46 1.41 0 2.578.487 3.502 1.46.973.924 1.459 2.067 1.459 3.429 0 1.313-.486 2.456-1.459 3.429-.924.924-2.092 1.386-3.502 1.386Z"}),s.jsx("rect",{width:1,height:3,x:55,y:44,fill:"#9DA2A5",rx:.5}),s.jsx("rect",{width:1,height:3,x:55,y:50,fill:"#9DA2A5",rx:.5}),s.jsx("rect",{width:1,height:3,x:55,y:56,fill:"#9DA2A5",rx:.5}),s.jsx("rect",{width:40.255,height:40.255,x:35,fill:"url(#f)",rx:20.128}),s.jsx("path",{fill:"#fff",d:"M61.128 14.127v8h3v-7c0-.531-.469-1-1-1h-2Zm-1 0h-3v4h3v-4Zm-4 0h-2v8h2v-8Zm-3 0h-3v4h3v-4Zm-4 0h-2c-.563 0-1 .469-1 1v7h3v-8Zm-3 9v2c0 .563.437 1 1 1h7.5v-3h-8.5Zm9.5 3h7.5c.531 0 1-.438 1-1v-2h-8.5v3Zm-10.5-11c0-1.094.875-2 2-2h16c1.094 0 2 .906 2 2v10c0 1.125-.906 2-2 2h-16c-1.125 0-2-.875-2-2v-10Zm8 7v-3h-3v3h3Zm7-3h-3v3h3v-3Z"}),s.jsx("rect",{width:15.096,height:15.096,x:62.676,y:26.418,fill:"#DE2122",rx:7.548}),s.jsx("path",{fill:"#fff",d:"m72.102 32.65-1.31 1.31 1.31 1.323a.385.385 0 0 1 0 .562.385.385 0 0 1-.562 0l-1.31-1.31-1.323 1.31a.385.385 0 0 1-.562 0 .385.385 0 0 1 0-.562l1.31-1.322-1.31-1.31a.385.385 0 0 1 0-.563.385.385 0 0 1 .562 0l1.323 1.31 1.31-1.31a.385.385 0 0 1 .562 0 .385.385 0 0 1 0 .562Z"}),s.jsx("rect",{width:40.255,height:40.255,x:35,y:63,fill:"url(#g)",rx:20.128}),s.jsx("path",{fill:"#fff",d:"M54.628 75.627c0-.25.219-.5.5-.5.25 0 .5.25.5.5v.531c2.5.25 4.5 2.375 4.5 4.969v.938c0 1.343.531 2.656 1.5 3.624l.094.094c.25.25.406.625.406.969a1.4 1.4 0 0 1-1.406 1.406h-11.22c-.78-.031-1.374-.625-1.374-1.406 0-.375.125-.719.406-.969l.063-.094c.968-.968 1.53-2.28 1.53-3.624v-.938a4.99 4.99 0 0 1 4.5-4.969v-.531Zm.5 1.5c-2.219 0-4 1.813-4 4v.938a6.152 6.152 0 0 1-1.813 4.343l-.093.063a.504.504 0 0 0-.094.281c0 .219.156.375.375.375h11.219c.218 0 .406-.156.406-.375 0-.094-.063-.188-.125-.281l-.094-.063a6.17 6.17 0 0 1-1.812-4.375v-.906c0-2.188-1.782-4-4-4h.03Zm-.969 12.344c.156.406.531.656.969.656.406 0 .781-.25.937-.656.094-.25.375-.407.625-.313.25.094.407.375.313.656a1.994 1.994 0 0 1-1.875 1.313 2.005 2.005 0 0 1-1.906-1.313.524.524 0 0 1 .312-.656c.25-.094.531.063.625.313Z"}),s.jsx("rect",{width:15.096,height:15.096,x:62.678,y:89.418,fill:"#DE2122",rx:7.548}),s.jsx("path",{fill:"#fff",d:"m72.104 95.65-1.31 1.31 1.31 1.324a.385.385 0 0 1 0 .561.385.385 0 0 1-.562 0l-1.31-1.31-1.323 1.31a.385.385 0 0 1-.562 0 .385.385 0 0 1 0-.561l1.31-1.323-1.31-1.31a.385.385 0 0 1 0-.563.385.385 0 0 1 .562 0l1.323 1.31 1.31-1.31a.385.385 0 0 1 .562 0 .385.385 0 0 1 0 .562Z"}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"b",x1:35.984,x2:56.797,y1:57.043,y2:131.755,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#383838"}),s.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),s.jsxs("linearGradient",{id:"c",x1:10.22,x2:179,y1:52.406,y2:52.406,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:1,stopColor:"#5F5F5F",stopOpacity:0})]}),s.jsxs("linearGradient",{id:"d",x1:32.397,x2:102.886,y1:59.648,y2:150.147,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:0,stopColor:"#575757"}),s.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),s.jsxs("linearGradient",{id:"e",x1:99.501,x2:246.864,y1:8.606,y2:161.85,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#F4B40F"}),s.jsx("stop",{offset:1,stopColor:"#EFAA23"})]}),s.jsxs("linearGradient",{id:"f",x1:55.128,x2:55.128,y1:0,y2:40.255,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsxs("linearGradient",{id:"g",x1:55.128,x2:55.128,y1:63,y2:103.255,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsxs("filter",{id:"a",width:196,height:108,x:0,y:43.406,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.jsx("feOffset",{dy:7}),s.jsx("feGaussianBlur",{stdDeviation:8}),s.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),s.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_834_102897"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_834_102897",result:"shape"})]})]})]}),Ac=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:247,height:143,fill:"none",...e,children:[s.jsx("path",{fill:"url(#a)",d:"M144.369 125.689h-46.36v11.541h46.36v-11.541Z"}),s.jsx("path",{fill:"#828589",d:"M164.648 137.23H77.724v5.771h86.924v-5.771Z"}),s.jsx("rect",{width:180.555,height:103.984,x:31,y:22,fill:"url(#b)",rx:8}),s.jsx("rect",{width:167,height:90,x:37.777,y:29,fill:"#000",fillOpacity:.4,rx:4}),s.jsxs("g",{filter:"url(#c)",children:[s.jsx("path",{fill:"url(#d)",d:"M187.138 9h-67.22A2.918 2.918 0 0 0 117 11.918v42.756a2.918 2.918 0 0 0 2.918 2.918h67.22a2.918 2.918 0 0 0 2.918-2.918V11.918A2.918 2.918 0 0 0 187.138 9Z"}),s.jsx("path",{stroke:"url(#e)",strokeMiterlimit:10,d:"M119.918 9.5h67.22a2.418 2.418 0 0 1 2.418 2.418v42.756a2.418 2.418 0 0 1-2.418 2.418h-67.22a2.418 2.418 0 0 1-2.418-2.418V11.918a2.418 2.418 0 0 1 2.418-2.418Z"})]}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M161.871 22.42a2.171 2.171 0 1 0 0-4.343 2.171 2.171 0 0 0 0 4.342ZM169.958 22.42a2.171 2.171 0 1 0 0-4.343 2.171 2.171 0 0 0 0 4.342Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M178.043 22.42a2.172 2.172 0 1 0 0-4.345 2.172 2.172 0 0 0 0 4.344Z"}),s.jsx("path",{fill:"#9DA2A5",d:"M153.404 55.547v5.836a.486.486 0 1 1-.972 0v-5.836a.486.486 0 1 1 .972 0ZM152.92 67.827l-3.255-3.255a.486.486 0 0 0-.688.688l3.599 3.6c.191.19.498.19.688 0l3.593-3.594a.485.485 0 1 0-.687-.688l-3.25 3.25ZM153.404 49.322v-5.836a.486.486 0 1 0-.972 0v5.836a.486.486 0 1 0 .972 0Z"}),s.jsx("path",{fill:"#3BB272",d:"M149 35a4 4 0 1 0 8 0 4 4 0 0 0-8 0Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.1,d:"M105.723 39H53.277A2.28 2.28 0 0 0 51 41.282v33.436A2.28 2.28 0 0 0 53.277 77h52.446A2.28 2.28 0 0 0 108 74.718V41.282A2.28 2.28 0 0 0 105.723 39Z"}),s.jsx("path",{stroke:"#C8C8C8",strokeDasharray:"9 9",strokeLinecap:"round",strokeMiterlimit:10,strokeOpacity:.2,d:"M100.853 39a.5.5 0 0 0 .5.5h4.37c.98 0 1.777.797 1.777 1.782v4.18a.5.5 0 0 0 .5.5v7.358a.5.5 0 0 0-.5.5v8.36a.5.5 0 0 0 .5.5v7.358a.5.5 0 0 0-.5.5v4.18a1.78 1.78 0 0 1-1.777 1.782h-4.37a.5.5 0 0 0-.5.5h-7.741a.5.5 0 0 0-.5-.5H83.87a.5.5 0 0 0-.5.5h-7.742a.5.5 0 0 0-.5-.5h-8.74a.5.5 0 0 0-.5.5h-7.742a.5.5 0 0 0-.5-.5h-4.37a1.78 1.78 0 0 1-1.777-1.782v-4.18a.5.5 0 0 0-.5-.5V62.68a.5.5 0 0 0 .5-.5v-8.36a.5.5 0 0 0-.5-.5v-7.358a.5.5 0 0 0 .5-.5v-4.18a1.78 1.78 0 0 1 1.777-1.782h4.37a.5.5 0 0 0 .5-.5h7.741a.5.5 0 0 0 .5.5h8.741a.5.5 0 0 0 .5-.5h7.742a.5.5 0 0 0 .5.5h8.74a.5.5 0 0 0 .5-.5h7.742Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.1,d:"M194.843 75h-49.686A2.16 2.16 0 0 0 143 77.162v31.676a2.16 2.16 0 0 0 2.157 2.162h49.686a2.16 2.16 0 0 0 2.157-2.162V77.162A2.16 2.16 0 0 0 194.843 75Z"}),s.jsx("path",{stroke:"#C8C8C8",strokeDasharray:"9 9",strokeLinecap:"round",strokeMiterlimit:10,strokeOpacity:.2,d:"M190.203 75a.5.5 0 0 0 .5.5h4.14a1.66 1.66 0 0 1 1.657 1.662v3.96a.5.5 0 0 0 .5.5v6.918a.5.5 0 0 0-.5.5v7.92a.5.5 0 0 0 .5.5v6.919a.5.5 0 0 0-.5.5v3.959a1.66 1.66 0 0 1-1.657 1.662h-4.14a.5.5 0 0 0-.5.5h-7.281a.5.5 0 0 0-.5-.5h-8.281a.5.5 0 0 0-.5.5h-7.282a.5.5 0 0 0-.5-.5h-8.281a.5.5 0 0 0-.5.5h-7.281a.5.5 0 0 0-.5-.5h-4.14a1.66 1.66 0 0 1-1.657-1.662v-3.959a.5.5 0 0 0-.5-.5v-6.92a.5.5 0 0 0 .5-.5V89.04a.5.5 0 0 0-.5-.5v-6.919a.5.5 0 0 0 .5-.5v-3.96a1.66 1.66 0 0 1 1.657-1.661h4.14a.5.5 0 0 0 .5-.5h7.281a.5.5 0 0 0 .5.5h8.281a.5.5 0 0 0 .5-.5h7.282a.5.5 0 0 0 .5.5h8.281a.5.5 0 0 0 .5-.5h7.281Z"}),s.jsxs("g",{filter:"url(#f)",children:[s.jsx("path",{fill:"url(#g)",d:"M228.294 65h-53.951a2.342 2.342 0 0 0-2.342 2.342v34.316a2.343 2.343 0 0 0 2.342 2.342h53.951a2.343 2.343 0 0 0 2.342-2.342V67.342A2.342 2.342 0 0 0 228.294 65Z"}),s.jsx("path",{stroke:"url(#h)",strokeMiterlimit:10,d:"M174.343 65.5h53.951c1.017 0 1.842.825 1.842 1.842v34.316a1.842 1.842 0 0 1-1.842 1.842h-53.951a1.842 1.842 0 0 1-1.842-1.842V67.342c0-1.017.825-1.842 1.842-1.842Z"})]}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M208.014 75.77a1.743 1.743 0 1 0 0-3.484 1.743 1.743 0 0 0 0 3.485ZM214.505 75.77a1.743 1.743 0 1 0 0-3.484 1.743 1.743 0 0 0 0 3.485Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M220.995 75.77a1.743 1.743 0 1 0 0-3.486 1.743 1.743 0 0 0 0 3.487Z"}),s.jsx("path",{fill:"#9DA2A5",d:"M172.454 86.568h-5.836a.486.486 0 1 1 0-.972h5.836a.486.486 0 1 1 0 .972ZM160.175 86.084l3.255-3.255a.486.486 0 1 0-.688-.688l-3.599 3.6a.486.486 0 0 0 0 .687l3.593 3.594a.486.486 0 1 0 .688-.688l-3.249-3.25ZM176.486 86.568h5.836a.487.487 0 1 0 0-.972h-5.836a.486.486 0 1 0 0 .972ZM186.486 86.568h5.836a.487.487 0 1 0 0-.972h-5.836a.486.486 0 1 0 0 .972Z"}),s.jsx("path",{fill:"url(#i)",d:"M200.891 82.242a3.89 3.89 0 1 0 0 7.782 3.89 3.89 0 0 0 0-7.782Z"}),s.jsxs("g",{filter:"url(#j)",children:[s.jsx("path",{fill:"url(#k)",d:"M86.138 62h-67.22A2.918 2.918 0 0 0 16 64.918v42.756a2.918 2.918 0 0 0 2.918 2.918h67.22a2.918 2.918 0 0 0 2.918-2.918V64.918A2.918 2.918 0 0 0 86.138 62Z"}),s.jsx("path",{stroke:"url(#l)",strokeMiterlimit:10,d:"M18.918 62.5h67.22a2.418 2.418 0 0 1 2.418 2.418v42.756a2.418 2.418 0 0 1-2.418 2.418h-67.22a2.418 2.418 0 0 1-2.418-2.418V64.918a2.418 2.418 0 0 1 2.418-2.418Z"})]}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M60.87 75.42a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343ZM68.958 75.42a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M77.043 75.42a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),s.jsx("path",{fill:"#9DA2A5",d:"M101.546 88.596h5.836a.486.486 0 1 1 0 .972h-5.836a.486.486 0 1 1 0-.972ZM80.158 88.596h5.836a.486.486 0 1 1 0 .972h-5.836a.486.486 0 1 1 0-.972ZM96.71 88.596h-5.836a.486.486 0 1 0 0 .972h5.836a.486.486 0 1 0 0-.972ZM59.158 88.596h5.836a.486.486 0 1 1 0 .972h-5.836a.486.486 0 1 1 0-.972ZM113.825 89.08l-3.255 3.255a.486.486 0 1 0 .688.688l3.599-3.6a.486.486 0 0 0 0-.687l-3.593-3.593a.486.486 0 1 0-.688.687l3.249 3.25ZM75.322 88.596h-5.836a.486.486 0 1 0 0 .972h5.836a.486.486 0 1 0 0-.972Z"}),s.jsx("path",{fill:"#2479E9",d:"M50 93a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"a",x1:121.189,x2:121.189,y1:125.689,y2:137.23,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsxs("linearGradient",{id:"b",x1:121.277,x2:121.277,y1:22,y2:125.984,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsxs("linearGradient",{id:"d",x1:125.902,x2:143.647,y1:11.965,y2:56.345,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#383838"}),s.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),s.jsxs("linearGradient",{id:"e",x1:124.29,x2:159.738,y1:23.904,y2:64.958,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:0,stopColor:"#575757"}),s.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),s.jsxs("linearGradient",{id:"g",x1:179.146,x2:193.388,y1:67.38,y2:102.999,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#383838"}),s.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),s.jsxs("linearGradient",{id:"h",x1:177.852,x2:206.302,y1:76.962,y2:109.912,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:0,stopColor:"#575757"}),s.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),s.jsxs("linearGradient",{id:"i",x1:200.891,x2:193.185,y1:90.023,y2:82.01,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#F4B40F"}),s.jsx("stop",{offset:1,stopColor:"#EFAA23"})]}),s.jsxs("linearGradient",{id:"k",x1:24.902,x2:42.647,y1:64.965,y2:109.345,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#383838"}),s.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),s.jsxs("linearGradient",{id:"l",x1:23.29,x2:58.738,y1:76.904,y2:117.958,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:0,stopColor:"#575757"}),s.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),s.jsxs("filter",{id:"c",width:105.056,height:80.592,x:101,y:0,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.jsx("feOffset",{dy:7}),s.jsx("feGaussianBlur",{stdDeviation:8}),s.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),s.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_807_102718"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_807_102718",result:"shape"})]}),s.jsxs("filter",{id:"f",width:90.635,height:71,x:156.001,y:56,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.jsx("feOffset",{dy:7}),s.jsx("feGaussianBlur",{stdDeviation:8}),s.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),s.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_807_102718"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_807_102718",result:"shape"})]}),s.jsxs("filter",{id:"j",width:105.056,height:80.592,x:0,y:53,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.jsx("feOffset",{dy:7}),s.jsx("feGaussianBlur",{stdDeviation:8}),s.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),s.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_807_102718"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_807_102718",result:"shape"})]})]})]}),Dt={"window-management":{heading:"Allow Window Management",description:"io.Connect Browser requires permission to arrange windows on your desktop.",guidelines:{default:"To allow window management, click the icon to the left of the address bar."},label:"Allow window management",Image:Ac,openPermissionsPrompt:({handleDeferredPermission:e,handlePermissionsPromptClose:t})=>{window.getScreenDetails().catch(async()=>{const{state:n}=await navigator.permissions.query({name:"window-management"});n==="prompt"&&e()}).finally(t)}},notifications:{heading:"Allow Browser Notifications",description:`io.Connect Browser requires permission to send notifications to the desktop.
42
+ This won't allow any other browser notifications.`,guidelines:{default:"To allow browser notifications, click the icon to the left of the address bar.",edge:'To allow browser notifications, click the icon to the left of the address bar, or the "Bell" icon to the right of the address bar.'},label:"Allow browser notifications",Image:kc,openPermissionsPrompt:({handleDeferredPermission:e,handlePermissionsPromptClose:t})=>{Notification.requestPermission().then(async()=>{const{state:n}=await navigator.permissions.query({name:"notifications"});n==="prompt"&&e()}).finally(t)}}},_c={edgeNotificationsPermissionTimeout:15e3};const qn=({children:e,description:t,heading:n,Image:r,title:o})=>s.jsxs("div",{className:"permissions-card",children:[o&&s.jsx("h1",{className:"permissions-card-title",children:o}),r&&s.jsx("div",{className:"permissions-card-image",children:s.jsx(r,{})}),n&&s.jsx("h3",{className:"permissions-card-heading",children:n}),s.jsx("p",{className:"permissions-card-description",children:t}),e]}),Rc=({isActiveItem:e=()=>!1,permissionStatuses:t})=>s.jsx("ul",{className:"permissions-list",children:Object.entries(Dt).map(([n,r],o)=>{const i=e(n),a=t.find(({name:c})=>c===n);return s.jsxs("li",{className:J("permissions-list-item",i&&"active"),children:[s.jsx("div",{children:a?.state==="granted"?s.jsx("span",{className:"icon-check"}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:i?"icon-arrow":""}),s.jsxs("span",{children:[o+1,"."]})]})}),r.label]},n)})}),Ic=({onReopenPromptClick:e})=>{const t=s.jsxs(s.Fragment,{children:['Please, click "Allow" when the browser prompt appears.',s.jsx("br",{}),s.jsxs("strong",{children:["If a browser prompt doesn't appear, click the icon to the left of the",s.jsx("br",{}),"address bar to manually grant the permission."]})]});return s.jsx(qn,{description:t,Image:Tc,title:"Something went wrong!",children:s.jsx(wt,{className:"g42-btn-primary permissions-prompt-button",onClick:e,children:"Reopen the Prompt"})})},Mc=["window-management","notifications"],Dc=()=>Promise.all(Mc.map(e=>navigator.permissions.query({name:e}))),Mo=y.createContext(void 0),Ct=()=>{const e=y.useContext(Mo);if(e===void 0)throw new Error("useIOConnectHome must be used within an IOConnectHomeProvider");return e},Lc=({children:e})=>{const[t,n]=y.useState([]),r=t.length===0,o={isDenied:!r&&t.some(({state:a})=>a==="denied"),isLoading:r,isSetupCompleted:!r&&t.every(({state:a})=>a==="granted"),statuses:t},i=y.useRef(!1);return y.useEffect(()=>{let a=!1;const c=Dc().then(l=>{if(a)return;n(l);const f=[];let p=!1;return l.forEach((g,u)=>{const h=m=>{if(a||!m.target||p)return;const d=m.target;if(d.state==="prompt"||d.state==="denied"&&i.current)return p=!0,window.location.reload();n(E=>[...E.slice(0,u),d,...E.slice(u+1)])};g.addEventListener("change",h),f.push(()=>g.removeEventListener("change",h))}),f});return()=>{a=!0,c.then(l=>{l?.forEach(f=>f())})}},[]),y.useEffect(()=>{i.current=o.isSetupCompleted},[o.isSetupCompleted]),s.jsx(Mo.Provider,{value:{permission:o},children:e})},Do=({deniedPermissionName:e})=>{const{permission:t}=Ct(),r=io().name?.toLowerCase()||"",o=Object.values(t.statuses).filter(a=>a.name===e||a.state==="denied"),i=s.jsxs(s.Fragment,{children:["The current browser settings block critical functionalities of io.Connect Browser.",s.jsx("br",{}),"To enable io.Connect Browser to operate properly, you must grant browser permissions manually."]});return s.jsx(qn,{description:i,Image:Nc,title:"Setup Was Unsuccessful",children:s.jsx("ul",{className:"permissions-guidelines-list",children:o.map((a,c)=>s.jsx("li",{children:Dt[a.name].guidelines[r]||Dt[a.name].guidelines.default},c))})})},Fc=({edgeNotificationsPermissionTimeout:e,isNotificationsPermissionPromptOpen:t})=>{const{name:n}=io(),{permission:r}=Ct(),[o,i]=y.useState(!1);return y.useEffect(()=>{if(!t||n!=="Edge")return;const a=setTimeout(()=>i(!0),e);return()=>clearTimeout(a)},[n,e,t]),y.useEffect(()=>{if(!o)return;r.statuses.some(({name:c,state:l})=>c==="notifications"&&l==="granted")&&i(!1)},[o,r.statuses]),{hasEdgeNotificationsPermissionError:o}},$c=({settings:e})=>{const{permission:t}=Ct(),[n,r]=y.useState(!1),[o,i]=y.useState(!1),a=t.statuses.find(({state:g})=>g==="prompt"),{hasEdgeNotificationsPermissionError:c}=Fc({edgeNotificationsPermissionTimeout:e.edgeNotificationsPermissionTimeout,isNotificationsPermissionPromptOpen:o&&a?.name==="notifications"});if(!a||t.isDenied)throw new Error('The "PermissionSteps" component should not be used in case there is no pending permission or there is a denied permission.');if(c)return s.jsx(Do,{deniedPermissionName:"notifications"});const l=Dt[a.name],f=()=>{i(!0),l.openPermissionsPrompt({handleDeferredPermission:()=>r(!0),handlePermissionsPromptClose:()=>i(!1)})},p=()=>{r(!1),f()};return n?s.jsx(Ic,{onReopenPromptClick:p}):s.jsxs(qn,{description:l.description,heading:l.heading,Image:l.Image,title:"First-Time User Setup",children:[s.jsx(Rc,{isActiveItem:g=>g===a.name,permissionStatuses:t.statuses}),s.jsx("p",{className:"mb-12 description",children:'Click "Allow" when the prompt appears.'}),s.jsx(wt,{className:"g42-btn-primary permissions-prompt-button",disabled:o,onClick:f,children:"Open Permission Prompt"}),o&&s.jsx("span",{className:"loader"})]})},Bc=({settings:e})=>{const{permission:t}=Ct();return t.isLoading?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"mb-32",children:"Checking browser permissions ..."}),s.jsx("div",{className:"loader"})]}):t.isDenied?s.jsx(Do,{}):s.jsx($c,{settings:e})},Hc=({components:{Logo:e=Wt}={},settings:t={}})=>s.jsx("div",{className:"permissions-setup",children:s.jsxs("div",{className:"permissions-wrapper",children:[s.jsx(e,{className:"mb-32"}),s.jsx(Bc,{settings:{..._c,...t}})]})});exports.ApplicationsSection=ho;exports.BaseSection=Ht;exports.BaseSectionHeader=Yr;exports.BaseSectionItem=so;exports.Button=bt;exports.ButtonGroup=Ut;exports.ContextMenu=qr;exports.DropdownButton=Rn;exports.FavoritesSection=mo;exports.IOConnectHomeProvider=Lc;exports.Icon=ue;exports.ImgIcon=In;exports.Launchpad=Ro;exports.LaunchpadSlidePanel=Pc;exports.LayoutsPanel=To;exports.Login=Cc;exports.LoginAuth0=Ec;exports.LoginLoader=Oc;exports.Logo=jc;exports.Notification=No;exports.NotificationsBadge=Wn;exports.NotificationsIcon=Ao;exports.NotificationsPanel=_o;exports.PermissionsSetup=Hc;exports.ProfileIcon=vo;exports.ProfileSettings=xo;exports.SearchBar=wo;exports.SearchResults=Co;exports.Section=Vt;exports.SettingsCard=go;exports.SlidePanel=Io;exports.SupportCard=yo;exports.WorkspacesSection=Oo;exports.useFavoriteEntities=$t;exports.useIOConnectHome=Ct;
43
43
  //# sourceMappingURL=index.js.map