@interopio/home-ui-react 1.4.0 → 1.4.1

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.
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),y=require("react"),ee=require("@interopio/react-hooks"),yt=require("@interopio/workspaces-ui-react"),Pt=require("react-dom");function Mo(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Ke=Mo(y),rs=Mo(Pt);const Lt=t=>"items"in t,Ze={APPLICATION:"application",WORKSPACE:"workspace",LAYOUT:"layout"},Do=[{name:"openInNewWindow",displayName:"Open in New Window"},{name:"openInNewWorkspace",displayName:"Open in New Workspace"}],Fo=[{name:"openInNewFrame",displayName:"Open in New Frame"},{name:"delete",displayName:"Delete"}],Dt={ASCENDING:"ascending",DESCENDING:"descending",DISABLED:"disabled"},pn=new Intl.Collator(void 0,{sensitivity:"base"}),Uo=(t,e)=>pn.compare(t.title,e.title),Wo=(t,e)=>pn.compare(e.title,t.title),lr=t=>{const{items:e,sortOrder:n,ascendingCompare:r,descendingCompare:o}=t;if(n===Dt.DISABLED)return e;const i=n===Dt.ASCENDING?r:o;return[...e].sort(i)},Fn=(t,e,n,r)=>{const{isFolderCollapsible:o,...i}=r,c="/",[a,...l]=n.split(c),u=t.findIndex(p=>Lt(p)&&p.title===a),d=u!==-1?t[u]:null;return d?[...t.slice(0,u),{...d,items:l.length>0?Fn(d.items,e,l.join(c),r):[...d.items,e]},...t.slice(u+1)]:[...t,{id:a,title:a,items:l.length>0?Fn([],e,l.join(c),r):[e],isCollapsible:o,...i}]},Zo=t=>t.title||t.name,on=t=>{const e=Zo(t),n=t.userProperties.folder;return n?`${n}/${e}`:e},os=(t,e)=>pn.compare(on(t),on(e)),is=(t,e)=>pn.compare(on(e),on(t)),ss=(t,e,n)=>{const{isSectionCollapsible:r,sortOrder:o=Dt.ASCENDING,...i}=n;return{id:"applications-section",title:"All Applications",items:lr({items:t,sortOrder:o,ascendingCompare:os,descendingCompare:is}).reduce((l,u)=>{const d={id:u.name,title:Zo(u),description:u.caption,type:Ze.APPLICATION,iconSrc:u.icon,isOpen:e[u.name]?.length>0,contextMenuActions:Do},p=u.userProperties.folder;return p?Fn(l,d,p,n):[...l,d]},[]),isCollapsible:r,...i}};var as=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Un={},cs={get exports(){return Un},set exports(t){Un=t}};/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),b=require("react"),ee=require("@interopio/react-hooks"),bt=require("@interopio/workspaces-ui-react"),_t=require("react-dom");function Mo(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Ke=Mo(b),rs=Mo(_t);const Lt=t=>"items"in t,Fe={APPLICATION:"application",WORKSPACE:"workspace",LAYOUT:"layout"},Do=[{name:"openInNewWindow",displayName:"Open in New Window"},{name:"openInNewWorkspace",displayName:"Open in New Workspace"}],Wo=[{name:"openInNewFrame",displayName:"Open in New Frame"},{name:"delete",displayName:"Delete"}],Dt={ASCENDING:"ascending",DESCENDING:"descending",DISABLED:"disabled"},pn=new Intl.Collator(void 0,{sensitivity:"base"}),Ho=(t,e)=>pn.compare(t.title,e.title),Uo=(t,e)=>pn.compare(e.title,t.title),lr=t=>{const{items:e,sortOrder:n,ascendingCompare:r,descendingCompare:o}=t;if(n===Dt.DISABLED)return e;const i=n===Dt.ASCENDING?r:o;return[...e].sort(i)},Wn=(t,e,n,r)=>{const{isFolderCollapsible:o,...i}=r,c="/",[a,...l]=n.split(c),u=t.findIndex(p=>Lt(p)&&p.title===a),d=u!==-1?t[u]:null;return d?[...t.slice(0,u),{...d,items:l.length>0?Wn(d.items,e,l.join(c),r):[...d.items,e]},...t.slice(u+1)]:[...t,{id:a,title:a,items:l.length>0?Wn([],e,l.join(c),r):[e],isCollapsible:o,...i}]},Fo=t=>t.title||t.name,on=t=>{const e=Fo(t),n=t.userProperties.folder;return n?`${n}/${e}`:e},os=(t,e)=>pn.compare(on(t),on(e)),is=(t,e)=>pn.compare(on(e),on(t)),ss=(t,e,n)=>{const{isSectionCollapsible:r,sortOrder:o=Dt.ASCENDING,...i}=n;return{id:"applications-section",title:"All Applications",items:lr({items:t,sortOrder:o,ascendingCompare:os,descendingCompare:is}).reduce((l,u)=>{const d={id:u.name,title:Fo(u),description:u.caption,type:Fe.APPLICATION,iconSrc:u.icon,isOpen:e[u.name]?.length>0,contextMenuActions:Do},p=u.userProperties.folder;return p?Wn(l,d,p,n):[...l,d]},[]),isCollapsible:r,...i}};var as=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Hn={},cs={get exports(){return Hn},set exports(t){Hn=t}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var c=typeof i;if(c==="string"||c==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&r.push(a)}}else if(c==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)e.call(i,l)&&i[l]&&r.push(l)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(cs);const $=Un;const Bo=t=>t.key==="Enter"||t.key===" ",bt=(t,e)=>typeof t>"u"?{}:{tabIndex:0,onClick:t,onKeyDown:n=>{Bo(n)&&(n.preventDefault(),t?.(n)),e?.(n)}},Ho=({event:t,currentIndex:e,moveFocus:n,min:r,max:o,onClose:i})=>{switch(t.key){case"ArrowUp":{n(Math.max(e-1,r));break}case"ArrowDown":{n(Math.min(e+1,o));break}case"Home":{n(r);break}case"End":{n(o);break}case"Escape":{if(i){i();break}return}default:return}t.stopPropagation(),t.preventDefault()},oe=y.forwardRef((t,e)=>{const{name:n,size:r=16,className:o,handleClick:i,...c}=t;return s.jsx("span",{...bt(i),className:$(o,"icon",{[`icon-box-${r}`]:r}),ref:e,...c,children:s.jsx("i",{className:$({[`icon-${n}`]:n})})})});function ur(t){const{size:e=16,alt:n="Image icon",className:r,...o}=t;return s.jsx("img",{alt:n,className:$(r,"icon",{[`icon-box-${e}`]:e}),...o})}const Vo=t=>{const{className:e,iconSrc:n,iconName:r="folder",title:o,isOpen:i,showCollapseIcon:c,showHoverIndicator:a=!1,...l}=t;return s.jsxs("h4",{className:$(e,"io-list-header"),"data-testid":"base-section-header",...l,children:[a&&s.jsx(oe,{size:8,name:""}),n?s.jsx(ur,{className:"section-img-icon",src:n,alt:`${o} icon`,size:14,"data-testid":"img-icon"}):s.jsx(oe,{className:"section-icon",name:r,"data-testid":"icon"}),o,c&&s.jsx(oe,{className:$("collapse-icon",!i&&"collapsed"),name:"chevron-down",size:14,"data-testid":"collapse-icon"})]})},ls=()=>{const[t,e]=y.useState([]),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=n.appManager.onAppAdded(a=>{a.userProperties.hidden||e(l=>[...l,a])}),o=n.appManager.onAppChanged(a=>{e(l=>[...l.filter(u=>u.name!==a.name),a])}),i=n.appManager.onAppRemoved(a=>{e(l=>l.filter(u=>u.name!==a.name))}),c=[r,i,o];return()=>c.forEach(a=>a())},[n]),t},us=()=>{const[t,e]=y.useState({}),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=n.appManager.onInstanceStarted(c=>{e(a=>{const l=a[c.application.name]??[];return{...a,[c.application.name]:[...l,c.id]}})}),o=n.appManager.onInstanceStopped(c=>{e(a=>({...a,[c.application.name]:a[c.application.name].filter(l=>l!==c.id)}))}),i=[r,o];return()=>i.forEach(c=>c())},[n]),t},ds=t=>{y.useEffect(()=>{if(!window.iobrowser?.platformStarted||t)return;const e=n=>{n.preventDefault(),n.returnValue=!0};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[t])},zo="interopio_home_ui_selected_layout",fs="interopio_home_ui_auth0_validation_error",ps="interopio_home_ui_favorite_entities",hs="interopio_home_ui_user",ms="interopio_home_ui_platform_window",Bt="interopio_home_ui_platform_setup",_e=(t,e,n)=>{const[r,o]=y.useState(()=>{try{const a=window[t].getItem(e);return a?JSON.parse(a):null}catch(a){return console.log(a),null}}),i=`${t}-${e}`;y.useEffect(()=>{const a=l=>{o(l.detail)};return window.addEventListener(i,a),()=>{window.removeEventListener(i,a)}},[i]);const c=y.useCallback(a=>{try{if(!a){window[t].removeItem(e),o(null);return}const l=n.run(a);if(!l.ok){console.warn(`Error validating the value to be stored: ${l.error.message}`);return}const u=l.result;o(u),window[t].setItem(e,JSON.stringify(u)),window.dispatchEvent(new CustomEvent(i,{detail:u}))}catch(l){console.log(l)}},[e,t,i,n]);return[r,c]};var fe=function(t){return{ok:!0,result:t}},ue=function(t){return{ok:!1,error:t}},gs=function(t){return t.ok===!0?Promise.resolve(t.result):Promise.reject(t.error)},vs=function(t,e){return e.ok===!0?e.result:t},ys=function(t){if(t.ok===!0)return t.result;throw t.error},bs=function(t,e){return e.ok===!0?fe(t(e.result)):e},Br=function(t,e,n){return e.ok===!1?e:n.ok===!1?n:fe(t(e.result,n.result))},En=function(t,e){return e.ok===!0?e:ue(t(e.error))},ws=function(t,e){return e.ok===!0?t(e.result):e};/*! *****************************************************************************
5
+ */(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var c=typeof i;if(c==="string"||c==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&r.push(a)}}else if(c==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)e.call(i,l)&&i[l]&&r.push(l)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(cs);const G=Hn;const Vo=t=>t.key==="Enter"||t.key===" ",yt=(t,e)=>typeof t>"u"?{}:{tabIndex:0,onClick:t,onKeyDown:n=>{Vo(n)&&(n.preventDefault(),t?.(n)),e?.(n)}},zo=({event:t,currentIndex:e,moveFocus:n,min:r,max:o,onClose:i})=>{switch(t.key){case"ArrowUp":{n(Math.max(e-1,r));break}case"ArrowDown":{n(Math.min(e+1,o));break}case"Home":{n(r);break}case"End":{n(o);break}case"Escape":{if(i){i();break}return}default:return}t.stopPropagation(),t.preventDefault()},oe=b.forwardRef((t,e)=>{const{name:n,size:r=16,className:o,handleClick:i,...c}=t;return s.jsx("span",{...yt(i),className:G(o,"icon",{[`icon-box-${r}`]:r}),ref:e,...c,children:s.jsx("i",{className:G({[`icon-${n}`]:n})})})});function ur(t){const{size:e=16,alt:n="Image icon",className:r,...o}=t;return s.jsx("img",{alt:n,className:G(r,"icon",{[`icon-box-${e}`]:e}),...o})}const Zo=t=>{const{className:e,iconSrc:n,iconName:r="folder",title:o,isOpen:i,showCollapseIcon:c,showHoverIndicator:a=!1,...l}=t;return s.jsxs("h4",{className:G(e,"io-list-header"),"data-testid":"base-section-header",...l,children:[a&&s.jsx(oe,{size:8,name:""}),n?s.jsx(ur,{className:"section-img-icon",src:n,alt:`${o} icon`,size:14,"data-testid":"img-icon"}):s.jsx(oe,{className:"section-icon",name:r,"data-testid":"icon"}),o,c&&s.jsx(oe,{className:G("collapse-icon",!i&&"collapsed"),name:"chevron-down",size:14,"data-testid":"collapse-icon"})]})},ls=()=>{const[t,e]=b.useState([]),n=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{if(!n)return;const r=n.appManager.onAppAdded(a=>{a.userProperties.hidden||e(l=>[...l,a])}),o=n.appManager.onAppChanged(a=>{e(l=>[...l.filter(u=>u.name!==a.name),a])}),i=n.appManager.onAppRemoved(a=>{e(l=>l.filter(u=>u.name!==a.name))}),c=[r,i,o];return()=>c.forEach(a=>a())},[n]),t},us=()=>{const[t,e]=b.useState({}),n=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{if(!n)return;const r=n.appManager.onInstanceStarted(c=>{e(a=>{const l=a[c.application.name]??[];return{...a,[c.application.name]:[...l,c.id]}})}),o=n.appManager.onInstanceStopped(c=>{e(a=>({...a,[c.application.name]:a[c.application.name].filter(l=>l!==c.id)}))}),i=[r,o];return()=>i.forEach(c=>c())},[n]),t},ds=t=>{b.useEffect(()=>{if(!window.iobrowser?.platformStarted||t)return;const e=n=>{n.preventDefault(),n.returnValue=!0};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[t])},Bo="interopio_home_ui_selected_layout",fs="interopio_home_ui_auth0_validation_error",ps="interopio_home_ui_favorite_entities",hs="interopio_home_ui_user",ms="interopio_home_ui_platform_window",Vt="interopio_home_ui_platform_setup",Ie=(t,e,n)=>{const[r,o]=b.useState(()=>{try{const a=window[t].getItem(e);return a?JSON.parse(a):null}catch(a){return console.log(a),null}}),i=`${t}-${e}`;b.useEffect(()=>{const a=l=>{o(l.detail)};return window.addEventListener(i,a),()=>{window.removeEventListener(i,a)}},[i]);const c=b.useCallback(a=>{try{if(!a){window[t].removeItem(e),o(null);return}const l=n.run(a);if(!l.ok){console.warn(`Error validating the value to be stored: ${l.error.message}`);return}const u=l.result;o(u),window[t].setItem(e,JSON.stringify(u)),window.dispatchEvent(new CustomEvent(i,{detail:u}))}catch(l){console.log(l)}},[e,t,i,n]);return[r,c]};var fe=function(t){return{ok:!0,result:t}},ue=function(t){return{ok:!1,error:t}},vs=function(t){return t.ok===!0?Promise.resolve(t.result):Promise.reject(t.error)},gs=function(t,e){return e.ok===!0?e.result:t},bs=function(t){if(t.ok===!0)return t.result;throw t.error},ys=function(t,e){return e.ok===!0?fe(t(e.result)):e},Vr=function(t,e,n){return e.ok===!1?e:n.ok===!1?n:fe(t(e.result,n.result))},Sn=function(t,e){return e.ok===!0?e:ue(t(e.error))},ws=function(t,e){return e.ok===!0?t(e.result):e};/*! *****************************************************************************
6
6
  Copyright (c) Microsoft Corporation.
7
7
 
8
8
  Permission to use, copy, modify, and/or distribute this software for any
@@ -15,40 +15,40 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
15
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
16
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
17
  PERFORMANCE OF THIS SOFTWARE.
18
- ***************************************************************************** */var Wn=function(){return Wn=Object.assign||function(e){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)&&(e[i]=n[i])}return e},Wn.apply(this,arguments)};function xs(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function Zn(t,e){if(t===e||t===null&&e===null)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="object"){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!Zn(t[n],e[n]))return!1;return!0}var r=Object.keys(t);if(r.length!==Object.keys(e).length)return!1;for(var n=0;n<r.length;n++)if(!e.hasOwnProperty(r[n])||!Zn(t[r[n]],e[r[n]]))return!1;return!0}}var Nt=function(t){return Array.isArray(t)},qt=function(t){return typeof t=="object"&&t!==null&&!Nt(t)},Cs=function(t){switch(typeof t){case"string":return"a string";case"number":return"a number";case"boolean":return"a boolean";case"undefined":return"undefined";case"object":return t instanceof Array?"an array":t===null?"null":"an object";default:return JSON.stringify(t)}},Ue=function(t,e){return"expected "+t+", got "+Cs(e)},kt=function(t){return t.map(function(e){return typeof e=="string"?"."+e:"["+e+"]"}).join("")},Tt=function(t,e){var n=e.at,r=xs(e,["at"]);return Wn({at:t+(n||"")},r)},de=function(){function t(e){var n=this;this.decode=e,this.run=function(r){return En(function(o){return{kind:"DecoderError",input:r,at:"input"+(o.at||""),message:o.message||""}},n.decode(r))},this.runPromise=function(r){return gs(n.run(r))},this.runWithException=function(r){return ys(n.run(r))},this.map=function(r){return new t(function(o){return bs(r,n.decode(o))})},this.andThen=function(r){return new t(function(o){return ws(function(i){return r(i).decode(o)},n.decode(o))})},this.where=function(r,o){return n.andThen(function(i){return r(i)?t.succeed(i):t.fail(o)})}}return t.string=function(){return new t(function(e){return typeof e=="string"?fe(e):ue({message:Ue("a string",e)})})},t.number=function(){return new t(function(e){return typeof e=="number"?fe(e):ue({message:Ue("a number",e)})})},t.boolean=function(){return new t(function(e){return typeof e=="boolean"?fe(e):ue({message:Ue("a boolean",e)})})},t.constant=function(e){return new t(function(n){return Zn(n,e)?fe(e):ue({message:"expected "+JSON.stringify(e)+", got "+JSON.stringify(n)})})},t.object=function(e){return new t(function(n){if(qt(n)&&e){var r={};for(var o in e)if(e.hasOwnProperty(o)){var i=e[o].decode(n[o]);if(i.ok===!0)i.result!==void 0&&(r[o]=i.result);else return n[o]===void 0?ue({message:"the key '"+o+"' is required but was not present"}):ue(Tt("."+o,i.error))}return fe(r)}else return qt(n)?fe(n):ue({message:Ue("an object",n)})})},t.array=function(e){return new t(function(n){if(Nt(n)&&e){var r=function(o,i){return En(function(c){return Tt("["+i+"]",c)},e.decode(o))};return n.reduce(function(o,i,c){return Br(function(a,l){return a.concat([l])},o,r(i,c))},fe([]))}else return Nt(n)?fe(n):ue({message:Ue("an array",n)})})},t.tuple=function(e){return new t(function(n){if(Nt(n)){if(n.length!==e.length)return ue({message:"expected a tuple of length "+e.length+", got one of length "+n.length});for(var r=[],o=0;o<e.length;o++){var i=e[o].decode(n[o]);if(i.ok)r[o]=i.result;else return ue(Tt("["+o+"]",i.error))}return fe(r)}else return ue({message:Ue("a tuple of length "+e.length,n)})})},t.union=function(e,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return t.oneOf.apply(t,[e,n].concat(r))},t.intersection=function(e,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return new t(function(i){return[e,n].concat(r).reduce(function(c,a){return Br(Object.assign,c,a.decode(i))},fe({}))})},t.anyJson=function(){return new t(function(e){return fe(e)})},t.unknownJson=function(){return new t(function(e){return fe(e)})},t.dict=function(e){return new t(function(n){if(qt(n)){var r={};for(var o in n)if(n.hasOwnProperty(o)){var i=e.decode(n[o]);if(i.ok===!0)r[o]=i.result;else return ue(Tt("."+o,i.error))}return fe(r)}else return ue({message:Ue("an object",n)})})},t.optional=function(e){return new t(function(n){return n==null?fe(void 0):e.decode(n)})},t.oneOf=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new t(function(r){for(var o=[],i=0;i<e.length;i++){var c=e[i].decode(r);if(c.ok===!0)return c;o[i]=c.error}var a=o.map(function(l){return"at error"+(l.at||"")+": "+l.message}).join('", "');return ue({message:'expected a value matching one of the decoders, got the errors ["'+a+'"]'})})},t.withDefault=function(e,n){return new t(function(r){return fe(vs(e,n.decode(r)))})},t.valueAt=function(e,n){return new t(function(r){for(var o=r,i=0;i<e.length;i++){if(o===void 0)return ue({at:kt(e.slice(0,i+1)),message:"path does not exist"});if(typeof e[i]=="string"&&!qt(o))return ue({at:kt(e.slice(0,i+1)),message:Ue("an object",o)});if(typeof e[i]=="number"&&!Nt(o))return ue({at:kt(e.slice(0,i+1)),message:Ue("an array",o)});o=o[e[i]]}return En(function(c){return o===void 0?{at:kt(e),message:"path does not exist"}:Tt(kt(e),c)},n.decode(o))})},t.succeed=function(e){return new t(function(n){return fe(e)})},t.fail=function(e){return new t(function(n){return ue({message:e})})},t.lazy=function(e){return new t(function(n){return e().decode(n)})},t}(),Bn=de.string,Os=de.number,dr=de.boolean,he=de.anyJson;de.unknownJson;var wt=de.constant,ce=de.object,Go=de.array;de.tuple;de.dict;var H=de.optional,sn=de.oneOf;de.union;de.intersection;de.withDefault;de.valueAt;de.succeed;var js=de.fail;de.lazy;const ae=Bn().where(t=>t.length>0,"Expected a non-empty string"),Es=Os().where(t=>t>=0,"Expected a non-negative number"),xe=(t,e)=>{const n=typeof t;return n==="function"?he():js(`The provided argument as ${e} should be of type function, provided: ${typeof n}`)},Ss=ce({name:ae,displayName:H(ae),disabled:H(dr())}),ks=ce({id:ae,title:ae,description:H(ae),icon:H(Bn()),iconSrc:H(Bn()),contextMenuActions:H(Go(Ss)),type:ae}),Ts=Go(ks),hn=()=>{const[t,e]=_e("localStorage",ps,Ts),n=y.useMemo(()=>t||[],[t]);return{favoriteEntities:n,toggleFavorite:({isOpen:i,...c})=>{const a=n.find(u=>u.title===c.title&&u.type===c.type),l=a?n.filter(u=>u!==a):[c,...n];e(l)},removeFavorite:i=>{e(n.filter(c=>c.id!==i))}}},$o=()=>{const[t,e]=y.useState(),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=yt.getFrameId();n.workspaces?.waitForFrame(r).then(e).catch(o=>console.error("Failed to get current frame",{error:o}))},[n]),t},Is=()=>{const t=y.useContext(ee.IOConnectContext);return async e=>t.interop.methods().every(n=>n.name!==e?.method)?console.error("Interop method not found."):await t.interop.invoke(e.method,e.params,e.target).catch(n=>console.error({error:n}))},_s=()=>{const[t,e]=y.useState(!1),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n)return;let r;return(async()=>{try{r=await n.workspaces?.onWorkspaceOpened(()=>e(!0))}catch(o){console.error(o)}})(),()=>r?.()},[n]),t},Ps=ce({name:ae}),Ht=ce({isCompleted:dr()}),fr=()=>{const[t,e]=_e("sessionStorage",ms,Ps);return{isPlatformWindow:!t||window.name===t.name,setPlatformWindow:e}},Ns=()=>{const[t,e]=y.useState([]),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n)return;let r=!1;const o=n.layouts.onAdded(c=>{if(c.type!=="Global"||r)return;const{name:a,type:l}=c;e(u=>[...u,{name:a,type:l}])}),i=n.layouts.onRemoved(c=>{c.type!=="Global"||r||e(a=>a.filter(l=>l.name!==c.name))});return()=>{r=!0,o(),i()}},[n]),t},Ko=()=>{const[t,e]=y.useState([]),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=n.notifications.onRaised(i=>e(c=>[...c,i])),o=n.notifications.onClosed(i=>e(c=>c.filter(a=>a.id!==i.id)));return n.notifications.list().then(e).catch(console.error),()=>{r(),o()}},[n]),t},Sn=["None","Low","Medium","High","Critical"],As={None:"#616161",Low:"#7AC70C",Medium:"#E0A900",High:"#E0474C",Critical:"#B8001E"},Hn={TIMESTAMP:"timestamp",SEVERITY:"severity"},Hr={key:Hn.TIMESTAMP,descending:!0},Ls=(t,e)=>[...t].sort((n,r)=>(e?-1:1)*((n.timestamp||0)-(r.timestamp||0))),Rs=(t,e)=>{const n=Sn[0];return[...t].sort((r,o)=>{const i=Sn.indexOf(r.severity||n),c=Sn.indexOf(o.severity||n);return(e?-1:1)*(i-c)})},Ms={[Hn.TIMESTAMP]:Ls,[Hn.SEVERITY]:Rs},Ds=()=>{const t=Ko(),[e,n]=y.useState(Hr),{key:r,descending:o}=e,i=y.useMemo(()=>Ms[r](t,o),[t,r,o]);return{onNotificationsSort:y.useCallback(a=>{n(l=>({key:a,descending:l.key!==a?Hr.descending:!l.descending}))},[]),sortedNotifications:i}},qo=()=>{const[t,e]=y.useState([]);return y.useEffect(()=>{const n=({key:i})=>{e(c=>c.includes(i)?c:c.concat(i))},r=i=>{e(c=>c.filter(a=>a!==i.key))},o=()=>{e([])};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)}},[]),t.length===1?t[0]:null},mn={CONTROL:"Control",SHIFT:"Shift"},pr=()=>{const t=y.useContext(ee.IOConnectContext),e=$o();return async({id:n,modifier:r,reuseWorkspaceId:o})=>{const i=r===mn.CONTROL?{newFrame:!0}:{frameId:e?.id,reuseWorkspaceId:o};return t.workspaces?.restoreWorkspace(n,i)}},hr=()=>{const t=y.useContext(ee.IOConnectContext);return y.useCallback(async(e,n)=>{if(t)try{await t.layouts.restore({name:e}),n?.({name:e})}catch(r){console.error(r)}},[t])},Fs=t=>{const[e,n]=y.useState([]),[r,o]=y.useState(!0),i=y.useRef(null),c=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{const a=c?.search;if(!a)return;const l=[],u=[];return(async p=>{o(!0),n([]);const f=await a.query({search:p.trim(),providerLimits:{maxResults:100,maxResultsPerType:5}});if(f===i.current)return;i.current=f;const h=f.onResults(v=>{v.results.forEach(w=>{u.find(O=>O.id===w.id&&O.type.name===w.type.name)||u.push(w)}),o(!1),n([...u])}),m=f.onCompleted(()=>{o(!1)}),g=f.onError(v=>{console.error(`Query failed. Provider: ${v.provider}; Error: ${v.error}`)});l.push(h,m,g)})(t),()=>{l.forEach(p=>p())}},[c,t]),{resultsToRender:e,isLoading:r}},Yo=()=>{const t=y.useContext(ee.IOConnectContext);return async({id:e,modifier:n})=>{const r=await t.workspaces?.getWorkspace(a=>a.isSelected===!0),o=r?.children[0];return n===mn.CONTROL||!r||o?.type==="window"?await t.appManager.application(e).start():await(o?.type==="group"?o:await(o||r).addGroup()).addWindow({appName:e})}},Us=()=>{const[t,e]=y.useState([]),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n||!n.workspaces)return;let r=!1;const o=n.workspaces.layouts.onSaved(({name:c})=>{r||t.find(({id:a})=>a===c)||e(a=>[...a,{id:c,title:c}])}),i=n.workspaces.layouts.onRemoved(({name:c})=>{r||e(a=>a.filter(({title:l})=>l!==c))});return()=>{r=!0,[o,i].forEach(async c=>{try{(await c)()}catch(a){console.error(a)}})}},[n,t]),t},Ws=()=>{const[t,e]=y.useState({}),n=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{if(!n)return;const r=[];return(async()=>{try{const o=await n.workspaces?.onWorkspaceOpened(c=>e(a=>({...a,[c.title]:[...a[c.title]||[],c.id]})));r.push(o);const i=await n.workspaces?.onWorkspaceClosed(({workspaceId:c})=>e(a=>{const l={...a};for(const u in l)if(l[u].includes(c)){l[u]=l[u].filter(d=>d!==c);break}return l}));r.push(i)}catch(o){console.error(o)}})(),()=>r.forEach(o=>o?.())},[n]),t},Zs=t=>{const{io:e,item:n}=t;e.appManager.application(n.id).start().catch(r=>{console.error("Failed to start application: ",{error:r})})},Bs=t=>{const{io:e,item:n,frame:r}=t;if(!e.workspaces)return;const o={type:"workspace",definition:{frame:r?{reuseFrameId:r.id}:{newFrame:!0}}},i=e.workspaces.getBuilder(o);i.addGroup().addWindow({appName:n.id}),i.create().catch(c=>{console.error("Failed to create workspace: ",{error:c})})},Hs={openInNewWindow:Zs,openInNewWorkspace:Bs},Xo=()=>{const t=y.useContext(ee.IOConnectContext),e=$o();return(n,r)=>{Hs[r]({io:t,item:n,frame:e})}},Vs=t=>{const{io:e,item:n}=t;e.workspaces&&e.workspaces.restoreWorkspace(n.id,{newFrame:!0}).catch(r=>{console.error("Failed to open workspace in new frame: ",{error:r})})},zs=async t=>{const{io:e,item:n,removeFavorite:r}=t;if(e.workspaces)try{await e.workspaces.layouts.delete(n.id),r(n.id)}catch(o){console.error("Failed to delete workspace: ",{error:o})}},Gs={openInNewFrame:Vs,delete:zs},Jo=()=>{const t=y.useContext(ee.IOConnectContext),{removeFavorite:e}=hn();return(n,r)=>{Gs[r]({io:t,item:n,removeFavorite:e})}},$s=t=>{const{layout:e,setDefaultLayout:n}=t;n({name:e.name})},Ks=async t=>{const{io:e,layout:n}=t;try{await e.layouts.remove("Global",n.name)}catch(r){console.error("Failed to delete layout: ",{error:r})}},qs={setAsDefault:$s,delete:Ks},Ys=()=>{const t=y.useContext(ee.IOConnectContext);return y.useCallback(async(n,r,o)=>{await qs[r]({io:t,layout:n,setDefaultLayout:o})},[t])},Qo=ce({name:ae}),ei="Welcome",Xs=5,qe={WINDOW_MANAGEMENT:"window-management",NOTIFICATIONS:"notifications"},Vt="getScreenDetails"in window,Js=t=>t.components.reduce((n,r)=>{if(r.type==="workspaceFrame"){const o=r.state.workspaces.map(i=>i.config.name);n.push(...o)}return n},[]),Qs=()=>{const t=Vt?[qe.NOTIFICATIONS,qe.WINDOW_MANAGEMENT]:[qe.NOTIFICATIONS];return Promise.all(t.map(async e=>{const n=await navigator.permissions.query({name:e});return n.stableName=e,n}))},ti=y.createContext(void 0),Be=()=>{const t=y.useContext(ti);if(t===void 0)throw new Error("useIOConnectHome must be used within an IOConnectHomeProvider");return t},ni=({children:t})=>{const[e,n]=_e("localStorage",Bt,Ht),[r,o]=y.useState([]),i=y.useMemo(()=>r.reduce((d,p)=>({...d,[p.stableName]:{state:p.state}}),{}),[r]),c={isLoading:r.length===0,statuses:i},[a,l]=y.useState(!1),u={isLoggingOut:a,setIsLoggingOut:l};return y.useEffect(()=>{let d=!1;const p=Qs().then(f=>{if(d)return;o(f);const h=[];let m=!1;return f.forEach((g,v)=>{const w=j=>{if(d||!j.target||m)return;const O=j.target;if(O.state==="prompt")return n({isCompleted:!1}),m=!0,window.location.reload();o(b=>[...b.slice(0,v),O,...b.slice(v+1)])};g.addEventListener("change",w),h.push(()=>g.removeEventListener("change",w))}),h}).catch(console.warn);return()=>{d=!0,p.then(f=>{f?.forEach(h=>h())})}},[n]),s.jsx(ti.Provider,{value:{permission:c,login:u},children:t})},ea=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:222,height:130,fill:"none",...t,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"})]})]})]}),ta=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none",height:"63",viewBox:"0 0 63 63",width:"63",...t,children:[s.jsxs("linearGradient",{id:"chrome_a",gradientUnits:"userSpaceOnUse",x1:"34.9087",x2:"7.63224",y1:"61.029",y2:"13.7847",children:[s.jsx("stop",{offset:"0",stopColor:"#1e8e3e"}),s.jsx("stop",{offset:"1",stopColor:"#34a853"})]}),s.jsxs("linearGradient",{id:"chrome_b",gradientUnits:"userSpaceOnUse",x1:"26.9043",x2:"54.1808",y1:"63.0788",y2:"15.8345",children:[s.jsx("stop",{offset:"0",stopColor:"#fcc934"}),s.jsx("stop",{offset:"1",stopColor:"#fbbc04"})]}),s.jsxs("linearGradient",{id:"chrome_c",gradientUnits:"userSpaceOnUse",x1:"4.22145",x2:"58.7745",y1:"19.6884",y2:"19.6884",children:[s.jsx("stop",{offset:"0",stopColor:"#d93025"}),s.jsx("stop",{offset:"1",stopColor:"#ea4335"})]}),s.jsx("path",{d:"m31.499 47.2466c8.6985 0 15.75-7.0515 15.75-15.75s-7.0515-15.75-15.75-15.75-15.75 7.0515-15.75 15.75 7.0515 15.75 15.75 15.75z",fill:"#fff"}),s.jsx("path",{d:"m17.8591 39.3751-13.63772-23.6212c-2.76527 4.788-4.22118922 10.2197-4.22137998 15.7489s1.45535998 10.961 4.22028998 15.7492c2.76494 4.7882 6.74181 8.7641 11.53071 11.5279 4.7889 2.7637 10.221 4.2179 15.7502 4.2164l13.6377-23.6212v-.0041c-1.3813 2.3954-3.369 4.3848-5.7632 5.7681s-5.1104 2.1118-7.8755 2.1122-5.4816-.7272-7.8762-2.1099c-2.3945-1.3826-4.3829-3.3714-5.7649-5.7663z",fill:"url(#chrome_a)"}),s.jsx("path",{d:"m45.1379 39.3741-13.6376 23.6212c5.5292.0008 10.9611-1.4542 15.7496-4.2187 4.7885-2.7644 8.7648-6.7408 11.5291-11.5294 2.7642-4.7887 4.219-10.2207 4.2181-15.7499-.001-5.5292-1.4577-10.9606-4.2237-15.7483h-27.2754l-.0034.0021c2.7651-.0014 5.4818.7254 7.8769 2.1071 2.3951 1.3818 4.3841 3.3698 5.767 5.7643 1.3829 2.3944 2.1109 5.1108 2.1109 7.8758-.0001 2.7651-.7283 5.4814-2.1113 7.8758z",fill:"url(#chrome_b)"}),s.jsx("path",{d:"m31.499 43.9688c6.8863 0 12.4688-5.5825 12.4688-12.4688s-5.5825-12.4688-12.4688-12.4688-12.4687 5.5825-12.4687 12.4688 5.5824 12.4688 12.4687 12.4688z",fill:"#1a73e8"}),s.jsx("path",{d:"m31.4991 15.75h27.2754c-2.764-4.7888-6.74-8.76553-11.5283-11.53029-4.7883-2.76475-10.2202-4.22010235-15.7494-4.21970992s-10.9608 1.45650992-15.7487 4.22194992c-4.788 2.76543-8.76341 6.74275-11.52666 11.53185l13.63766 23.6212.0035.0019c-1.3837-2.394-2.1127-5.11-2.1136-7.8751s.7264-5.4817 2.1086-7.8765c1.3821-2.3948 3.3706-4.3835 5.7652-5.7659 2.3947-1.3825 5.1112-2.11 7.8763-2.1094z",fill:"url(#chrome_c)"})]}),na=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...t,children:[s.jsxs("defs",{children:[s.jsxs("radialGradient",{id:"edge_b",cx:161.8,cy:68.9,r:95.4,gradientTransform:"matrix(1 0 0 -.95 0 248.8)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:.7,stopOpacity:0}),s.jsx("stop",{offset:.9,stopOpacity:.5}),s.jsx("stop",{offset:1})]}),s.jsxs("radialGradient",{id:"edge_d",cx:-340.3,cy:63,r:143.2,gradientTransform:"matrix(.15 -.99 -.8 -.12 176.6 -125.4)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:.8,stopOpacity:0}),s.jsx("stop",{offset:.9,stopOpacity:.5}),s.jsx("stop",{offset:1})]}),s.jsxs("radialGradient",{id:"edge_e",cx:113.4,cy:570.2,r:202.4,gradientTransform:"matrix(-.04 1 2.13 .08 -1179.5 -106.7)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#35c1f1"}),s.jsx("stop",{offset:.1,stopColor:"#34c1ed"}),s.jsx("stop",{offset:.2,stopColor:"#2fc2df"}),s.jsx("stop",{offset:.3,stopColor:"#2bc3d2"}),s.jsx("stop",{offset:.7,stopColor:"#36c752"})]}),s.jsxs("radialGradient",{id:"edge_f",cx:376.5,cy:568,r:97.3,gradientTransform:"matrix(.28 .96 .78 -.23 -303.8 -148.5)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#66eb6e"}),s.jsx("stop",{offset:1,stopColor:"#66eb6e",stopOpacity:0})]}),s.jsxs("linearGradient",{id:"edge_a",x1:63.3,x2:241.7,y1:84,y2:84,gradientTransform:"matrix(1 0 0 -1 0 266)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#0c59a4"}),s.jsx("stop",{offset:1,stopColor:"#114a8b"})]}),s.jsxs("linearGradient",{id:"edge_c",x1:157.3,x2:46,y1:161.4,y2:40.1,gradientTransform:"matrix(1 0 0 -1 0 266)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#1b9de2"}),s.jsx("stop",{offset:.2,stopColor:"#1595df"}),s.jsx("stop",{offset:.7,stopColor:"#0680d7"}),s.jsx("stop",{offset:1,stopColor:"#0078d4"})]})]}),s.jsx("path",{d:"M235.7 195.5a93.7 93.7 0 0 1-10.6 4.7 101.9 101.9 0 0 1-35.9 6.4c-47.3 0-88.5-32.5-88.5-74.3a31.5 31.5 0 0 1 16.4-27.3c-42.8 1.8-53.8 46.4-53.8 72.5 0 74 68.1 81.4 82.8 81.4 7.9 0 19.8-2.3 27-4.6l1.3-.4a128.3 128.3 0 0 0 66.6-52.8 4 4 0 0 0-5.3-5.6Z",style:{fill:"url(#edge_a)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M235.7 195.5a93.7 93.7 0 0 1-10.6 4.7 101.9 101.9 0 0 1-35.9 6.4c-47.3 0-88.5-32.5-88.5-74.3a31.5 31.5 0 0 1 16.4-27.3c-42.8 1.8-53.8 46.4-53.8 72.5 0 74 68.1 81.4 82.8 81.4 7.9 0 19.8-2.3 27-4.6l1.3-.4a128.3 128.3 0 0 0 66.6-52.8 4 4 0 0 0-5.3-5.6Z",style:{isolation:"isolate",opacity:.35,fill:"url(#edge_b)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M110.3 246.3A79.2 79.2 0 0 1 87.6 225a80.7 80.7 0 0 1 29.5-120c3.2-1.5 8.5-4.1 15.6-4a32.4 32.4 0 0 1 25.7 13 31.9 31.9 0 0 1 6.3 18.7c0-.2 24.5-79.6-80-79.6-43.9 0-80 41.6-80 78.2a130.2 130.2 0 0 0 12.1 56 128 128 0 0 0 156.4 67 75.5 75.5 0 0 1-62.8-8Z",style:{fill:"url(#edge_c)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M110.3 246.3A79.2 79.2 0 0 1 87.6 225a80.7 80.7 0 0 1 29.5-120c3.2-1.5 8.5-4.1 15.6-4a32.4 32.4 0 0 1 25.7 13 31.9 31.9 0 0 1 6.3 18.7c0-.2 24.5-79.6-80-79.6-43.9 0-80 41.6-80 78.2a130.2 130.2 0 0 0 12.1 56 128 128 0 0 0 156.4 67 75.5 75.5 0 0 1-62.8-8Z",style:{opacity:.41,fill:"url(#edge_d)",isolation:"isolate"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M157 153.8c-.9 1-3.4 2.5-3.4 5.6 0 2.6 1.7 5.2 4.8 7.3 14.3 10 41.4 8.6 41.5 8.6a59.6 59.6 0 0 0 30.3-8.3 61.4 61.4 0 0 0 30.4-52.9c.3-22.4-8-37.3-11.3-43.9C228 28.8 182.3 5 132.6 5a128 128 0 0 0-128 126.2c.5-36.5 36.8-66 80-66 3.5 0 23.5.3 42 10a72.6 72.6 0 0 1 30.9 29.3c6.1 10.6 7.2 24.1 7.2 29.5s-2.7 13.3-7.8 19.9Z",style:{fill:"url(#edge_e)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M157 153.8c-.9 1-3.4 2.5-3.4 5.6 0 2.6 1.7 5.2 4.8 7.3 14.3 10 41.4 8.6 41.5 8.6a59.6 59.6 0 0 0 30.3-8.3 61.4 61.4 0 0 0 30.4-52.9c.3-22.4-8-37.3-11.3-43.9C228 28.8 182.3 5 132.6 5a128 128 0 0 0-128 126.2c.5-36.5 36.8-66 80-66 3.5 0 23.5.3 42 10a72.6 72.6 0 0 1 30.9 29.3c6.1 10.6 7.2 24.1 7.2 29.5s-2.7 13.3-7.8 19.9Z",style:{fill:"url(#edge_f)"},transform:"translate(-4.6 -5)"})]}),ra=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75.591 75.591",...t,children:[s.jsxs("linearGradient",{id:"opera_a",x2:1,gradientTransform:"matrix(0 -54.944 -54.944 0 23.62 79.474)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#ff1b2d"}),s.jsx("stop",{offset:.3,stopColor:"#ff1b2d"}),s.jsx("stop",{offset:.614,stopColor:"#ff1b2d"}),s.jsx("stop",{offset:1,stopColor:"#a70014"})]}),s.jsxs("linearGradient",{id:"opera_b",x2:1,gradientTransform:"matrix(0 -48.595 -48.595 0 37.854 76.235)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#9c0000"}),s.jsx("stop",{offset:.7,stopColor:"#ff4b4b"}),s.jsx("stop",{offset:1,stopColor:"#ff4b4b"})]}),s.jsx("path",{fill:"url(#opera_a)",d:"M28.346 80.398C12.691 80.398 0 67.707 0 52.052 0 36.85 11.968 24.443 26.996 23.739a28.244 28.244 0 0 1 20.241 7.18c-3.322-2.203-7.207-3.47-11.359-3.47-6.75 0-12.796 3.348-16.862 8.629-3.134 3.7-5.164 9.169-5.302 15.307v1.335c.138 6.137 2.168 11.608 5.302 15.307 4.066 5.28 10.112 8.63 16.862 8.63 4.152 0 8.038-1.269 11.36-3.474a28.239 28.239 0 0 1-18.785 7.215l-.108.001z",transform:"matrix(1.3333 0 0 -1.3333 0 107.2)"}),s.jsx("path",{fill:"url(#opera_b)",d:"M19.016 68.025c2.601 3.07 5.96 4.923 9.631 4.923 8.252 0 14.941-9.356 14.941-20.897s-6.69-20.897-14.941-20.897c-3.67 0-7.03 1.85-9.63 4.922 4.066-5.281 10.11-8.63 16.862-8.63 4.152 0 8.036 1.268 11.359 3.472 5.802 5.19 9.455 12.735 9.455 21.133 0 8.397-3.653 15.94-9.453 21.13-3.324 2.206-7.209 3.473-11.361 3.473-6.75 0-12.796-3.348-16.862-8.63",transform:"matrix(1.3333 0 0 -1.3333 0 107.2)"})]}),oa=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:224,height:158,fill:"none",...t,children:[s.jsx("rect",{width:152.465,height:98.251,x:16.383,y:37.25,stroke:"url(#a)",strokeMiterlimit:10,rx:6.5}),s.jsx("path",{fill:"#3C3E3F",d:"M16.883 62.882h151.465V43.75a6 6 0 0 0-6-6H22.883a6 6 0 0 0-6 6v19.132Z"}),s.jsx("g",{filter:"url(#b)",children:s.jsx("path",{fill:"url(#c)",d:"M16.883 62.882h151.465v66.119a6 6 0 0 1-6 6H22.883a6 6 0 0 1-6-6V62.882Z"})}),s.jsx("path",{stroke:"url(#d)",d:"M16.883 62.382h150.203"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M115.823 60.7c1.288 0 2.331-.98 2.331-2.186s-1.043-2.184-2.331-2.184c-1.287 0-2.331.978-2.331 2.184 0 1.207 1.044 2.185 2.331 2.185ZM124.505 60.7c1.287 0 2.331-.98 2.331-2.186s-1.044-2.184-2.331-2.184c-1.288 0-2.331.978-2.331 2.184 0 1.207 1.043 2.185 2.331 2.185Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M133.185 60.7c1.287 0 2.331-.98 2.331-2.186s-1.044-2.184-2.331-2.184c-1.288 0-2.331.978-2.331 2.184 0 1.207 1.043 2.185 2.331 2.185Z"}),s.jsx("rect",{width:138,height:92.553,x:69.615,y:1.31,stroke:"url(#e)",strokeMiterlimit:10,rx:6.5}),s.jsx("g",{filter:"url(#f)",children:s.jsx("path",{fill:"#3C3E3F",d:"M70.115 24.81h137v63a6 6 0 0 1-6 6h-125a6 6 0 0 1-6-6v-63Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M70.115 24.81h137v-17a6 6 0 0 0-6-6h-125a6 6 0 0 0-6 6v17Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M179.287 16.153a2.171 2.171 0 1 0 0-4.343 2.171 2.171 0 0 0 0 4.343ZM187.375 16.153a2.171 2.171 0 1 0 0-4.343 2.171 2.171 0 0 0 0 4.343Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M195.461 16.153a2.171 2.171 0 1 0 0-4.343 2.171 2.171 0 0 0 0 4.343Z"}),s.jsx("rect",{width:104.975,height:8,x:78.74,y:27.944,fill:"#D9D9D9",fillOpacity:.1,rx:4}),s.jsx("rect",{width:68.95,height:8,x:78.74,y:44.031,fill:"#D9D9D9",fillOpacity:.1,rx:4}),s.jsx("rect",{width:33.005,height:8,x:165.873,y:73.28,fill:"#D9D9D9",fillOpacity:.1,rx:4}),s.jsx("g",{filter:"url(#g)",children:s.jsx("path",{fill:"#3C3E3F",d:"M120.814 91.251h35.604l-17.802 17.802-17.802-17.802Z"})}),s.jsx("rect",{width:35.407,height:32.468,x:24.383,y:94.5,fill:"#3C3E3F",rx:4.5}),s.jsx("rect",{width:35.407,height:32.468,x:24.383,y:94.5,stroke:"#535454",strokeMiterlimit:10,rx:4.5}),s.jsx("path",{fill:"#36AA6C",d:"M51.285 104.098a1 1 0 0 0-.898-1.093l-8.957-.881a1 1 0 1 0-.195 1.99l7.961.783-.783 7.962a1 1 0 1 0 1.99.196l.882-8.957Zm-1.63-.871-16.407 13.468 1.27 1.546 16.406-13.468-1.27-1.546Z"}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"a",x1:31.996,x2:102.534,y1:67.579,y2:152.207,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:"c",x1:35.339,x2:55.55,y1:67.283,y2:137.895,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#313131"}),s.jsx("stop",{offset:1,stopColor:"#1B1B1B"})]}),s.jsxs("linearGradient",{id:"d",x1:11.556,x2:167.086,y1:62.882,y2:62.882,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5F5F5F"}),s.jsx("stop",{offset:1,stopColor:"#5F5F5F",stopOpacity:0})]}),s.jsxs("linearGradient",{id:"e",x1:83.785,x2:150.619,y1:29.891,y2:106.931,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:"b",width:183.465,height:104.118,x:.883,y:53.882,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_4214_5662"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_4214_5662",result:"shape"})]}),s.jsxs("filter",{id:"f",width:169,height:101,x:54.115,y:15.81,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_4214_5662"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_4214_5662",result:"shape"})]}),s.jsxs("filter",{id:"g",width:67.603,height:49.802,x:104.814,y:82.251,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_4214_5662"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_4214_5662",result:"shape"})]})]})]}),ia=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:265,height:101,fill:"none",...t,children:[s.jsxs("g",{clipPath:"url(#a)",children:[s.jsx("mask",{id:"c",fill:"#fff",children:s.jsx("path",{d:"M67.371.957h132v12h-132v-12Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M67.371.957h132v12h-132v-12Z"}),s.jsx("path",{fill:"url(#b)",d:"M199.371 11.957h-132v2h132v-2Z",mask:"url(#c)"}),s.jsx("path",{fill:"url(#d)",d:"M0 0h132v76H0z",transform:"translate(67.371 12.957)"}),s.jsx("path",{fill:"#36AA6C",d:"M119.371 34.957h11v2h-11c-1.125 0-2 .938-2 2v18c0 1.125.875 2 2 2h28c1.063 0 2-.875 2-2v-18c0-1.063-.937-2-2-2h-11v-2h11c2.188 0 4 1.813 4 4v18c0 2.25-1.812 4-4 4h-9.375l.688 4h3.687c.5 0 1 .5 1 1 0 .563-.5 1-1 1h-18c-.562 0-1-.438-1-1 0-.5.438-1 1-1h3.625l.688-4h-9.313c-2.25 0-4-1.75-4-4v-18c0-2.188 1.75-4 4-4Zm11.313 26-.688 4h6.688l-.688-4h-5.312Zm3.687-25v13.625l3.25-3.313c.375-.374 1.063-.374 1.438 0 .375.376.375 1.063 0 1.438l-5 5c-.375.375-1.063.375-1.438 0l-5-5c-.375-.375-.375-1.063 0-1.438.375-.374 1.063-.374 1.438 0l3.312 3.313V35.957c0-.5.438-1 1-1 .5 0 1 .5 1 1Z"}),s.jsx("mask",{id:"f",fill:"#fff",children:s.jsx("path",{d:"M67.371 88.957h132v12h-132v-12Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M67.371 88.957h132v12h-132v-12Z"}),s.jsx("path",{fill:"url(#e)",d:"M67.371 89.957h132v-2h-132v2Z",mask:"url(#f)"})]}),s.jsx("rect",{width:131,height:99,x:67.871,y:1.457,stroke:"url(#g)",rx:5.5}),s.jsx("path",{stroke:"#5D5D5D",strokeMiterlimit:10,d:"M222.397 51.815h-34.413l-6.795 11.324"}),s.jsx("mask",{id:"i",fill:"#fff",children:s.jsx("path",{d:"M178.537 65.45a2.83 2.83 0 0 0 4.334-3.637l-.22-.262a2.828 2.828 0 1 0-4.334 3.637l.22.262Z"})}),s.jsx("path",{fill:"#4F5456",d:"M178.537 65.45a2.83 2.83 0 0 0 4.334-3.637l-.22-.262a2.828 2.828 0 1 0-4.334 3.637l.22.262Z"}),s.jsx("path",{fill:"url(#h)",d:"m180.355 67.617 4.335-3.637-4.335 3.637Zm1.654-6.832a2.83 2.83 0 0 0-4.335 3.637l.643.766c-.649-.774-.205-2.215.992-3.22 1.196-1.004 2.693-1.19 3.342-.417l-.642-.766Zm-5.51 2.236 3.856 4.596-3.856-4.596Zm8.191.96-3.857-4.597 3.857 4.596Z",mask:"url(#i)"}),s.jsx("mask",{id:"k",fill:"#fff",children:s.jsx("path",{d:"M225.828 63.016c6.39 7.615 17.744 8.608 25.359 2.218 7.616-6.39 8.609-17.743 2.219-25.358-6.39-7.616-17.744-8.61-25.359-2.22-7.615 6.39-8.609 17.745-2.219 25.36Z"})}),s.jsx("path",{fill:"#4F5456",d:"M225.828 63.016c6.39 7.615 17.744 8.608 25.359 2.218 7.616-6.39 8.609-17.743 2.219-25.358-6.39-7.616-17.744-8.61-25.359-2.22-7.615 6.39-8.609 17.745-2.219 25.36Z"}),s.jsx("path",{fill:"url(#j)",d:"m237.398 76.805 27.578-23.14-27.578 23.14Zm15.365-37.696c-6.39-7.615-17.744-8.608-25.359-2.218-7.615 6.39-8.609 17.744-2.219 25.359l.643.766c-6.035-7.192-4.754-18.203 2.862-24.593 7.615-6.39 18.681-5.74 24.716 1.453l-.643-.767Zm-38.505 10.118 23.14 27.578-23.14-27.578Zm50.718 4.437-23.14-27.577 23.14 27.577Z",mask:"url(#k)"}),s.jsx("path",{fill:"#DDD",d:"M229.711 43.665c.156-.22.5-.282.687-.094l19 15a.467.467 0 0 1 .094.687c-.156.22-.469.25-.687.094l-19-15a.497.497 0 0 1-.094-.687Zm12.344 7.187-1.719-1.375a9.175 9.175 0 0 1 5.625 2.594c.187.219.187.531 0 .719a.53.53 0 0 1-.719 0 7.772 7.772 0 0 0-3.187-1.938Zm-5.938.406a7.527 7.527 0 0 0-2.156 1.532.53.53 0 0 1-.719 0 .491.491 0 0 1 0-.688 9.447 9.447 0 0 1 2-1.531l.875.687Zm-.219-5.25-.937-.75c1.469-.53 3-.812 4.656-.812 3.813 0 7.313 1.562 9.844 4.062.187.188.187.5 0 .72-.188.187-.5.187-.719 0a12.847 12.847 0 0 0-9.125-3.782c-1.312 0-2.531.187-3.719.562Zm-4.781 1.313.813.625c-.532.406-1 .812-1.469 1.281a.53.53 0 0 1-.719 0c-.187-.219-.187-.531 0-.719.438-.437.906-.812 1.375-1.187Zm6.875 10.312a2.015 2.015 0 0 1-.25-2c.313-.656.938-1.125 1.656-1.187a1.97 1.97 0 0 1 1.813.844c.437.593.531 1.343.25 2-.313.656-.938 1.125-1.656 1.187a1.97 1.97 0 0 1-1.813-.844Zm2.625-1.187c0-.531-.469-1-1-1-.562 0-1 .469-1 1 0 .562.438 1 1 1 .531 0 1-.438 1-1Z"}),s.jsx("path",{stroke:"#5D5D5D",strokeMiterlimit:10,d:"M43.076 51.815h34.413l6.794 11.324"}),s.jsx("mask",{id:"m",fill:"#fff",children:s.jsx("path",{d:"M86.936 65.45a2.829 2.829 0 0 1-4.335-3.637l.22-.262a2.829 2.829 0 1 1 4.335 3.637l-.22.262Z"})}),s.jsx("path",{fill:"#4F5456",d:"M86.936 65.45a2.829 2.829 0 0 1-4.335-3.637l.22-.262a2.829 2.829 0 1 1 4.335 3.637l-.22.262Z"}),s.jsx("path",{fill:"url(#l)",d:"m85.117 67.617-4.334-3.637 4.334 3.637Zm-1.653-6.832a2.829 2.829 0 1 1 4.334 3.637l-.642.766c.649-.774.205-2.215-.992-3.22-1.197-1.004-2.693-1.19-3.343-.417l.643-.766Zm5.51 2.236-3.857 4.596 3.857-4.596Zm-8.191.96 3.857-4.597-3.857 4.596Z",mask:"url(#m)"}),s.jsx("mask",{id:"o",fill:"#fff",children:s.jsx("path",{d:"M12.069 63.016c6.39 7.615 17.743 8.608 25.358 2.218 7.616-6.39 8.61-17.743 2.22-25.358-6.39-7.616-17.744-8.61-25.36-2.22-7.615 6.39-8.609 17.745-2.219 25.36Z"})}),s.jsx("path",{fill:"#4F5456",d:"M12.069 63.016c6.39 7.615 17.743 8.608 25.358 2.218 7.616-6.39 8.61-17.743 2.22-25.358-6.39-7.616-17.744-8.61-25.36-2.22-7.615 6.39-8.609 17.745-2.219 25.36Z"}),s.jsx("path",{fill:"url(#n)",d:"m23.639 76.805 27.577-23.14-27.577 23.14Zm15.364-37.696c-6.39-7.615-17.743-8.608-25.359-2.218-7.615 6.39-8.608 17.744-2.218 25.359l.643.766c-6.036-7.192-4.754-18.203 2.86-24.593 7.616-6.39 18.682-5.74 24.717 1.453l-.643-.767ZM.498 49.227l23.14 27.578L.499 49.227Zm50.718 4.437-23.14-27.577 23.14 27.577Z",mask:"url(#o)"}),s.jsx("path",{fill:"#DDD",d:"M25.857 60.696a8.632 8.632 0 0 0 7.54-4.375c1.601-2.695 1.601-6.016 0-8.75-1.563-2.695-4.415-4.375-7.54-4.375a8.73 8.73 0 0 0-7.578 4.375c-1.601 2.734-1.601 6.055 0 8.75 1.563 2.734 4.414 4.375 7.578 4.375Zm0-18.75c3.555 0 6.836 1.914 8.633 5 1.797 3.125 1.797 6.914 0 10a9.925 9.925 0 0 1-8.633 5c-3.593 0-6.875-1.875-8.671-5-1.797-3.086-1.797-6.875 0-10 1.796-3.086 5.078-5 8.671-5Zm.938 3.75c0 .547-.43.937-.938.937-.546 0-.937-.39-.937-.937 0-.508.39-.938.937-.938a.95.95 0 0 1 .938.938Zm-2.188 10c0 .703.547 1.25 1.25 1.25.665 0 1.25-.547 1.25-1.25 0-.664-.585-1.25-1.25-1.25-.703 0-1.25.586-1.25 1.25Zm-1.25 0c0-1.367 1.094-2.5 2.5-2.5.665 0 1.29.273 1.72.742l4.179-2.5a.618.618 0 0 1 .86.195.618.618 0 0 1-.196.86l-4.18 2.5c.078.234.117.468.117.703 0 1.406-1.132 2.5-2.5 2.5a2.468 2.468 0 0 1-2.5-2.5Zm7.813-8.125c0 .547-.43.937-.938.937-.546 0-.937-.39-.937-.937 0-.508.39-.938.937-.938a.95.95 0 0 1 .938.938Zm-11.563 3.437a.95.95 0 0 1 .938.938c0 .547-.43.937-.938.937-.546 0-.937-.39-.937-.937 0-.508.39-.938.937-.938Zm2.813-3.437c0 .547-.43.937-.938.937-.546 0-.937-.39-.937-.937 0-.508.39-.938.937-.938a.95.95 0 0 1 .938.938Z"}),s.jsx("mask",{id:"q",fill:"#fff",children:s.jsx("path",{d:"M209.585 25.392c4.26 5.076 11.829 5.739 16.906 1.479 5.077-4.26 5.739-11.83 1.479-16.906-4.26-5.077-11.829-5.74-16.906-1.48-5.076 4.26-5.739 11.83-1.479 16.907Z"})}),s.jsx("path",{fill:"#4F5456",d:"M209.585 25.392c4.26 5.076 11.829 5.739 16.906 1.479 5.077-4.26 5.739-11.83 1.479-16.906-4.26-5.077-11.829-5.74-16.906-1.48-5.076 4.26-5.739 11.83-1.479 16.907Z"}),s.jsx("path",{fill:"url(#p)",d:"m217.299 34.584 18.385-15.427-18.385 15.427Zm10.029-25.386c-4.26-5.076-11.829-5.739-16.906-1.479-5.077 4.26-5.739 11.83-1.479 16.906l.642.767c-3.905-4.654-2.955-11.88 2.122-16.14s12.358-3.941 16.263.713l-.642-.767Zm-25.456 7 15.427 18.386-15.427-18.385Zm33.812 2.96L220.257.771l15.427 18.385Z",mask:"url(#q)"}),s.jsx("path",{fill:"#DDD",d:"M219.059 13.068a.645.645 0 0 0-.586 0l-4.149 1.758a.634.634 0 0 0-.422.633c0 2.203.914 6.094 4.571 7.852a.645.645 0 0 0 .586 0c3.656-1.758 4.57-5.649 4.593-7.852a.685.685 0 0 0-.445-.633l-4.148-1.758Zm-.868-.703a1.457 1.457 0 0 1 1.172 0l4.125 1.758c.516.234.914.727.914 1.336-.023 2.344-.984 6.586-5.015 8.531a1.441 1.441 0 0 1-1.242 0c-4.032-1.945-4.993-6.187-4.993-8.531-.023-.61.375-1.102.891-1.336l4.148-1.758Z"}),s.jsx("mask",{id:"s",fill:"#fff",children:s.jsx("path",{d:"M38.257 25.392c4.26 5.076 11.83 5.739 16.906 1.479 5.077-4.26 5.74-11.83 1.48-16.906-4.26-5.077-11.83-5.74-16.907-1.48s-5.739 11.83-1.479 16.907Z"})}),s.jsx("path",{fill:"#4F5456",d:"M38.257 25.392c4.26 5.076 11.83 5.739 16.906 1.479 5.077-4.26 5.74-11.83 1.48-16.906-4.26-5.077-11.83-5.74-16.907-1.48s-5.739 11.83-1.479 16.907Z"}),s.jsx("path",{fill:"url(#r)",d:"m45.97 34.584 18.386-15.427L45.97 34.584ZM56 9.198C51.74 4.122 44.17 3.46 39.093 7.72c-5.076 4.26-5.739 11.83-1.479 16.906l.643.767c-3.905-4.654-2.955-11.88 2.122-16.14s12.358-3.941 16.263.713L56 9.198Zm-25.456 7L45.97 34.585 30.544 16.199Zm33.812 2.96L48.929.771l15.427 18.385Z",mask:"url(#s)"}),s.jsx("path",{fill:"#DDD",d:"m46.676 13.068-.328 1.125a.962.962 0 0 1-.516.61c-.188.093-.352.187-.516.281-.21.164-.515.234-.797.164l-1.124-.281H43.3c-.14.164-.258.328-.352.515l-.117.165c-.094.187-.188.374-.258.562 0 .023.024.07.047.094l.82.82c.188.211.282.516.258.773v.586c.024.258-.07.54-.258.75l-.82.844a.178.178 0 0 0-.047.094c.07.187.164.375.258.562l.094.165c.117.164.234.351.351.515h.117l1.126-.281c.28-.07.585 0 .796.14.164.118.328.211.516.305a.962.962 0 0 1 .516.61l.328 1.125c0 .023.023.046.047.07.234.047.468.047.726.047.235 0 .469 0 .703-.047.024-.024.047-.047.047-.07l.328-1.125a.962.962 0 0 1 .516-.61c.188-.094.352-.187.516-.305.234-.14.515-.21.797-.14l1.124.281h.118c.117-.164.234-.351.351-.515l.094-.165c.094-.187.188-.375.258-.562a.178.178 0 0 0-.047-.094l-.82-.844a1.016 1.016 0 0 1-.258-.75c0-.093.023-.187.023-.304 0-.094-.023-.188-.023-.282a1.07 1.07 0 0 1 .258-.773l.82-.82a.178.178 0 0 0 .047-.094c-.07-.188-.164-.375-.258-.563l-.094-.164c-.117-.187-.234-.351-.351-.515h-.117l-1.126.281c-.28.07-.562 0-.796-.14a3.736 3.736 0 0 0-.516-.305.962.962 0 0 1-.516-.61l-.328-1.125a.177.177 0 0 0-.047-.093c-.234-.024-.468-.047-.703-.047-.258 0-.492.023-.726.047a.177.177 0 0 0-.047.093Zm.773-.89c.305 0 .586.023.89.07.048.024.071.024.118.047.211.117.398.328.469.562l.328 1.125c0 .047.047.118.117.141.211.094.422.211.61.352.07.046.14.07.187.046l1.148-.28a.892.892 0 0 1 .727.116l.094.094c.164.188.304.422.445.656l.117.165v.023c.117.234.235.469.328.703.024.047.024.07.024.117a.883.883 0 0 1-.258.703l-.82.844c-.024.024-.047.094-.047.164 0 .117.023.235.023.352 0 .117-.023.234-.023.351 0 .094.023.164.047.188l.82.844a.883.883 0 0 1 .258.703c0 .023 0 .07-.024.117-.093.234-.21.469-.328.703l-.117.188c-.14.234-.281.445-.469.656-.023.047-.047.07-.07.093a.931.931 0 0 1-.75.118l-1.125-.282c-.047-.023-.117 0-.188.047-.187.117-.398.235-.609.352-.07.023-.117.094-.117.14l-.328 1.102a.986.986 0 0 1-.469.586c-.047.023-.07.023-.117.047-.305.023-.586.047-.89.047-.306 0-.61-.024-.915-.047-.047-.024-.07-.024-.117-.047a.986.986 0 0 1-.469-.586l-.328-1.102c0-.046-.047-.117-.117-.14a3.169 3.169 0 0 1-.61-.352c-.07-.047-.14-.047-.187-.047l-1.125.282a.877.877 0 0 1-.727-.117c-.046-.024-.07-.047-.093-.07a4.388 4.388 0 0 1-.469-.68l-.094-.165-.023-.023a9.445 9.445 0 0 1-.328-.703c0-.047-.024-.07-.024-.117 0-.258.07-.516.258-.703l.82-.844c.024-.024.047-.094.047-.188v-.703c0-.07-.023-.14-.047-.164l-.82-.844c-.188-.187-.258-.445-.258-.703 0-.047.024-.07.024-.117.093-.234.21-.469.328-.703l.023-.024.094-.164c.14-.234.305-.468.469-.656a.183.183 0 0 1 .093-.094.877.877 0 0 1 .727-.117l1.125.281c.047.024.117 0 .188-.046.187-.118.398-.258.609-.352.07-.023.117-.094.117-.14l.328-1.126a1.01 1.01 0 0 1 .469-.562c.047-.024.07-.024.117-.047.305-.047.61-.07.914-.07Zm-1.312 6c0 .492.234.914.656 1.148a1.313 1.313 0 0 0 1.313-2.273 1.313 1.313 0 0 0-1.313 0 1.262 1.262 0 0 0-.656 1.125Zm3.375 0c0 .75-.399 1.43-1.032 1.804a2.148 2.148 0 0 1-2.062 0 2.047 2.047 0 0 1-1.031-1.804c0-.727.375-1.407 1.031-1.782a2.148 2.148 0 0 1 2.063 0 2.087 2.087 0 0 1 1.03 1.782Z"}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"b",x1:67.371,x2:199.371,y1:6.957,y2:6.957,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5D5D5D"}),s.jsx("stop",{offset:1,stopColor:"#4A4A4A",stopOpacity:0})]}),s.jsxs("linearGradient",{id:"d",x1:16.084,x2:40.969,y1:4.637,y2:76.534,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#313131"}),s.jsx("stop",{offset:1,stopColor:"#1B1B1B"})]}),s.jsxs("linearGradient",{id:"e",x1:67.371,x2:199.371,y1:94.957,y2:94.957,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#5D5D5D"}),s.jsx("stop",{offset:1,stopColor:"#4A4A4A",stopOpacity:0})]}),s.jsxs("linearGradient",{id:"g",x1:73.039,x2:201.745,y1:3.092,y2:87.293,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:.002,stopColor:"#5F5F5F"}),s.jsx("stop",{offset:1,stopColor:"#5F5F5F",stopOpacity:0})]}),s.jsxs("linearGradient",{id:"h",x1:181.181,x2:181.579,y1:65.615,y2:60.435,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:1,stopColor:"#5F5F5F"}),s.jsx("stop",{offset:1,stopColor:"#5D5D5D"})]}),s.jsxs("linearGradient",{id:"j",x1:242.886,x2:244.401,y1:64.342,y2:32.329,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:1,stopColor:"#5F5F5F"}),s.jsx("stop",{offset:1,stopColor:"#5D5D5D"})]}),s.jsxs("linearGradient",{id:"l",x1:84.291,x2:83.894,y1:65.615,y2:60.435,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:1,stopColor:"#5F5F5F"}),s.jsx("stop",{offset:1,stopColor:"#5D5D5D"})]}),s.jsxs("linearGradient",{id:"n",x1:29.127,x2:30.642,y1:64.342,y2:32.329,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:1,stopColor:"#5F5F5F"}),s.jsx("stop",{offset:1,stopColor:"#5D5D5D"})]}),s.jsxs("linearGradient",{id:"p",x1:220.958,x2:221.967,y1:26.276,y2:4.933,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:1,stopColor:"#5F5F5F"}),s.jsx("stop",{offset:1,stopColor:"#5D5D5D"})]}),s.jsxs("linearGradient",{id:"r",x1:49.629,x2:50.639,y1:26.276,y2:4.933,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:1,stopColor:"#5F5F5F"}),s.jsx("stop",{offset:1,stopColor:"#5D5D5D"})]}),s.jsx("clipPath",{id:"a",children:s.jsx("rect",{width:132,height:100,x:67.371,y:.957,fill:"#fff",rx:6})})]})]}),sa=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:96,height:97,fill:"none",...t,children:[s.jsxs("g",{clipPath:"url(#a)",children:[s.jsx("path",{fill:"#DE2122",d:"M44.884 61.418c1.385-2.398 4.847-2.398 6.232 0l17.138 29.685c1.385 2.399-.346 5.397-3.116 5.397H30.862c-2.77 0-4.501-2.998-3.116-5.397l17.138-29.685Z"}),s.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M46.102 68.477h3.795a1 1 0 0 1 .994 1.113l-1.83 16.095a1 1 0 0 1-.993.887h-.2a1 1 0 0 1-.995-.891l-1.765-16.095a1 1 0 0 1 .994-1.109Zm1.875 20.08a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Z",clipRule:"evenodd"}),s.jsx("path",{fill:"url(#b)",fillRule:"evenodd",d:"m80.962 29.606 1.547 3.745a2 2 0 0 0 1.177 1.121l5.753 2.052a2 2 0 0 1 1.328 1.884v9.717a2 2 0 0 1-1.328 1.884l-5.753 2.052a2 2 0 0 0-1.177 1.121l-1.547 3.746c-.48 1.158-.958 2.316-1.549 3.747a2 2 0 0 0 .043 1.621l2.621 5.512a2 2 0 0 1-.392 2.274l-6.87 6.87a2 2 0 0 1-2.273.392l-6.04-2.873a.698.698 0 0 0-.56-.011.674.674 0 0 1-.842-.292l-6.964-12.062c-.565-.979-.2-2.223.734-2.86 5.113-3.48 8.472-9.348 8.472-16 0-10.66-8.66-19.321-19.342-19.321-10.681 0-19.342 8.64-19.342 19.321 0 6.652 3.359 12.52 8.472 16 .935.637 1.3 1.881.735 2.86L30.9 74.168a.674.674 0 0 1-.843.292.698.698 0 0 0-.56.011l-6.04 2.873a2 2 0 0 1-2.273-.392l-6.87-6.87a2 2 0 0 1-.392-2.273l2.621-5.513a2 2 0 0 0 .043-1.621c-.59-1.431-1.07-2.59-1.549-3.747l-1.547-3.745a2.001 2.001 0 0 0-1.177-1.122L6.56 50.01a2 2 0 0 1-1.328-1.884v-9.717a2 2 0 0 1 1.328-1.884l5.753-2.052c.533-.19.96-.598 1.177-1.121l1.547-3.745c.48-1.158.958-2.316 1.549-3.748a2 2 0 0 0-.043-1.621l-2.621-5.512a2 2 0 0 1 .392-2.273l6.87-6.87a2 2 0 0 1 2.273-.393l5.512 2.622a2 2 0 0 0 1.622.042c1.431-.59 2.59-1.07 3.747-1.548l3.745-1.548a2 2 0 0 0 1.121-1.177l2.053-5.752A2 2 0 0 1 43.14.5h9.718a2 2 0 0 1 1.883 1.328l2.053 5.752a2 2 0 0 0 1.12 1.177c1.431.59 2.589 1.07 3.746 1.548 1.158.479 2.316.958 3.747 1.548a2 2 0 0 0 1.622-.042l5.512-2.622a2 2 0 0 1 2.273.392l6.87 6.87a2 2 0 0 1 .392 2.274l-2.621 5.512a2 2 0 0 0-.043 1.622l1.549 3.747Z",clipRule:"evenodd"})]}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"b",x1:48,x2:48,y1:.5,y2:77.538,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"gray"}),s.jsx("stop",{offset:1,stopColor:"#56585D"})]}),s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 .5h96v96H0z"})})]})]}),aa=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:247,height:143,fill:"none",...t,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"})]})]})]}),ca={edgeNotificationsPermissionTimeout:15e3},re={WINDOW_MANAGEMENT:qe.WINDOW_MANAGEMENT,NOTIFICATIONS:qe.NOTIFICATIONS,POPUPS:"popups",PWA_INSTALL:"pwa-install"},la={name:re.WINDOW_MANAGEMENT,label:`Allow window management${Vt?"":" (not available in your browser)"}`,heading:"Allow Window Management",description:`By granting this permission you will be able to restore layouts containing multiple
18
+ ***************************************************************************** */var Un=function(){return Un=Object.assign||function(e){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)&&(e[i]=n[i])}return e},Un.apply(this,arguments)};function xs(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function Fn(t,e){if(t===e||t===null&&e===null)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="object"){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!Fn(t[n],e[n]))return!1;return!0}var r=Object.keys(t);if(r.length!==Object.keys(e).length)return!1;for(var n=0;n<r.length;n++)if(!e.hasOwnProperty(r[n])||!Fn(t[r[n]],e[r[n]]))return!1;return!0}}var Nt=function(t){return Array.isArray(t)},qt=function(t){return typeof t=="object"&&t!==null&&!Nt(t)},Cs=function(t){switch(typeof t){case"string":return"a string";case"number":return"a number";case"boolean":return"a boolean";case"undefined":return"undefined";case"object":return t instanceof Array?"an array":t===null?"null":"an object";default:return JSON.stringify(t)}},He=function(t,e){return"expected "+t+", got "+Cs(e)},kt=function(t){return t.map(function(e){return typeof e=="string"?"."+e:"["+e+"]"}).join("")},Tt=function(t,e){var n=e.at,r=xs(e,["at"]);return Un({at:t+(n||"")},r)},de=function(){function t(e){var n=this;this.decode=e,this.run=function(r){return Sn(function(o){return{kind:"DecoderError",input:r,at:"input"+(o.at||""),message:o.message||""}},n.decode(r))},this.runPromise=function(r){return vs(n.run(r))},this.runWithException=function(r){return bs(n.run(r))},this.map=function(r){return new t(function(o){return ys(r,n.decode(o))})},this.andThen=function(r){return new t(function(o){return ws(function(i){return r(i).decode(o)},n.decode(o))})},this.where=function(r,o){return n.andThen(function(i){return r(i)?t.succeed(i):t.fail(o)})}}return t.string=function(){return new t(function(e){return typeof e=="string"?fe(e):ue({message:He("a string",e)})})},t.number=function(){return new t(function(e){return typeof e=="number"?fe(e):ue({message:He("a number",e)})})},t.boolean=function(){return new t(function(e){return typeof e=="boolean"?fe(e):ue({message:He("a boolean",e)})})},t.constant=function(e){return new t(function(n){return Fn(n,e)?fe(e):ue({message:"expected "+JSON.stringify(e)+", got "+JSON.stringify(n)})})},t.object=function(e){return new t(function(n){if(qt(n)&&e){var r={};for(var o in e)if(e.hasOwnProperty(o)){var i=e[o].decode(n[o]);if(i.ok===!0)i.result!==void 0&&(r[o]=i.result);else return n[o]===void 0?ue({message:"the key '"+o+"' is required but was not present"}):ue(Tt("."+o,i.error))}return fe(r)}else return qt(n)?fe(n):ue({message:He("an object",n)})})},t.array=function(e){return new t(function(n){if(Nt(n)&&e){var r=function(o,i){return Sn(function(c){return Tt("["+i+"]",c)},e.decode(o))};return n.reduce(function(o,i,c){return Vr(function(a,l){return a.concat([l])},o,r(i,c))},fe([]))}else return Nt(n)?fe(n):ue({message:He("an array",n)})})},t.tuple=function(e){return new t(function(n){if(Nt(n)){if(n.length!==e.length)return ue({message:"expected a tuple of length "+e.length+", got one of length "+n.length});for(var r=[],o=0;o<e.length;o++){var i=e[o].decode(n[o]);if(i.ok)r[o]=i.result;else return ue(Tt("["+o+"]",i.error))}return fe(r)}else return ue({message:He("a tuple of length "+e.length,n)})})},t.union=function(e,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return t.oneOf.apply(t,[e,n].concat(r))},t.intersection=function(e,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return new t(function(i){return[e,n].concat(r).reduce(function(c,a){return Vr(Object.assign,c,a.decode(i))},fe({}))})},t.anyJson=function(){return new t(function(e){return fe(e)})},t.unknownJson=function(){return new t(function(e){return fe(e)})},t.dict=function(e){return new t(function(n){if(qt(n)){var r={};for(var o in n)if(n.hasOwnProperty(o)){var i=e.decode(n[o]);if(i.ok===!0)r[o]=i.result;else return ue(Tt("."+o,i.error))}return fe(r)}else return ue({message:He("an object",n)})})},t.optional=function(e){return new t(function(n){return n==null?fe(void 0):e.decode(n)})},t.oneOf=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new t(function(r){for(var o=[],i=0;i<e.length;i++){var c=e[i].decode(r);if(c.ok===!0)return c;o[i]=c.error}var a=o.map(function(l){return"at error"+(l.at||"")+": "+l.message}).join('", "');return ue({message:'expected a value matching one of the decoders, got the errors ["'+a+'"]'})})},t.withDefault=function(e,n){return new t(function(r){return fe(gs(e,n.decode(r)))})},t.valueAt=function(e,n){return new t(function(r){for(var o=r,i=0;i<e.length;i++){if(o===void 0)return ue({at:kt(e.slice(0,i+1)),message:"path does not exist"});if(typeof e[i]=="string"&&!qt(o))return ue({at:kt(e.slice(0,i+1)),message:He("an object",o)});if(typeof e[i]=="number"&&!Nt(o))return ue({at:kt(e.slice(0,i+1)),message:He("an array",o)});o=o[e[i]]}return Sn(function(c){return o===void 0?{at:kt(e),message:"path does not exist"}:Tt(kt(e),c)},n.decode(o))})},t.succeed=function(e){return new t(function(n){return fe(e)})},t.fail=function(e){return new t(function(n){return ue({message:e})})},t.lazy=function(e){return new t(function(n){return e().decode(n)})},t}(),Vn=de.string,Os=de.number,dr=de.boolean,he=de.anyJson;de.unknownJson;var wt=de.constant,ce=de.object,$o=de.array;de.tuple;de.dict;var z=de.optional,sn=de.oneOf;de.union;de.intersection;de.withDefault;de.valueAt;de.succeed;var Es=de.fail;de.lazy;const ae=Vn().where(t=>t.length>0,"Expected a non-empty string"),Ss=Os().where(t=>t>=0,"Expected a non-negative number"),xe=(t,e)=>{const n=typeof t;return n==="function"?he():Es(`The provided argument as ${e} should be of type function, provided: ${typeof n}`)},js=ce({name:ae,displayName:z(ae),disabled:z(dr())}),ks=ce({id:ae,title:ae,description:z(ae),icon:z(Vn()),iconSrc:z(Vn()),contextMenuActions:z($o(js)),type:ae}),Ts=$o(ks),hn=()=>{const[t,e]=Ie("localStorage",ps,Ts),n=b.useMemo(()=>t||[],[t]);return{favoriteEntities:n,toggleFavorite:({isOpen:i,...c})=>{const a=n.find(u=>u.title===c.title&&u.type===c.type),l=a?n.filter(u=>u!==a):[c,...n];e(l)},removeFavorite:i=>{e(n.filter(c=>c.id!==i))}}},Go=()=>{const[t,e]=b.useState(),n=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{if(!n)return;const r=bt.getFrameId();n.workspaces?.waitForFrame(r).then(e).catch(o=>console.error("Failed to get current frame",{error:o}))},[n]),t},Ps=()=>{const t=b.useContext(ee.IOConnectContext);return async e=>t.interop.methods().every(n=>n.name!==e?.method)?console.error("Interop method not found."):await t.interop.invoke(e.method,e.params,e.target).catch(n=>console.error({error:n}))},Is=()=>{const[t,e]=b.useState(!1),n=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{if(!n)return;let r;return(async()=>{try{r=await n.workspaces?.onWorkspaceOpened(()=>e(!0))}catch(o){console.error(o)}})(),()=>r?.()},[n]),t},_s=ce({name:ae}),zt=ce({isCompleted:dr()}),fr=()=>{const[t,e]=Ie("sessionStorage",ms,_s);return{isPlatformWindow:!t||window.name===t.name,setPlatformWindow:e}},Ns=()=>{const[t,e]=b.useState([]),n=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{if(!n)return;let r=!1;const o=n.layouts.onAdded(c=>{if(c.type!=="Global"||r)return;const{name:a,type:l}=c;e(u=>[...u,{name:a,type:l}])}),i=n.layouts.onRemoved(c=>{c.type!=="Global"||r||e(a=>a.filter(l=>l.name!==c.name))});return()=>{r=!0,o(),i()}},[n]),t},Ko=()=>{const[t,e]=b.useState([]),n=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{if(!n)return;const r=n.notifications.onRaised(i=>e(c=>[...c,i])),o=n.notifications.onClosed(i=>e(c=>c.filter(a=>a.id!==i.id)));return n.notifications.list().then(e).catch(console.error),()=>{r(),o()}},[n]),t},jn=["None","Low","Medium","High","Critical"],As={None:"#616161",Low:"#7AC70C",Medium:"#E0A900",High:"#E0474C",Critical:"#B8001E"},zn={TIMESTAMP:"timestamp",SEVERITY:"severity"},zr={key:zn.TIMESTAMP,descending:!0},Ls=(t,e)=>[...t].sort((n,r)=>(e?-1:1)*((n.timestamp||0)-(r.timestamp||0))),Rs=(t,e)=>{const n=jn[0];return[...t].sort((r,o)=>{const i=jn.indexOf(r.severity||n),c=jn.indexOf(o.severity||n);return(e?-1:1)*(i-c)})},Ms={[zn.TIMESTAMP]:Ls,[zn.SEVERITY]:Rs},Ds=()=>{const t=Ko(),[e,n]=b.useState(zr),{key:r,descending:o}=e,i=b.useMemo(()=>Ms[r](t,o),[t,r,o]);return{onNotificationsSort:b.useCallback(a=>{n(l=>({key:a,descending:l.key!==a?zr.descending:!l.descending}))},[]),sortedNotifications:i}},qo=()=>{const[t,e]=b.useState([]);return b.useEffect(()=>{const n=({key:i})=>{e(c=>c.includes(i)?c:c.concat(i))},r=i=>{e(c=>c.filter(a=>a!==i.key))},o=()=>{e([])};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)}},[]),t.length===1?t[0]:null},mn={CONTROL:"Control",SHIFT:"Shift"},pr=()=>{const t=b.useContext(ee.IOConnectContext),e=Go();return async({id:n,modifier:r,reuseWorkspaceId:o})=>{const i=r===mn.CONTROL?{newFrame:!0}:{frameId:e?.id,reuseWorkspaceId:o};return t.workspaces?.restoreWorkspace(n,i)}},hr=()=>{const t=b.useContext(ee.IOConnectContext);return b.useCallback(async(e,n)=>{if(t)try{await t.layouts.restore({name:e}),n?.({name:e})}catch(r){console.error(r)}},[t])},Ws=t=>{const[e,n]=b.useState([]),[r,o]=b.useState(!0),i=b.useRef(null),c=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{const a=c?.search;if(!a)return;const l=[],u=[];return(async p=>{o(!0),n([]);const f=await a.query({search:p.trim(),providerLimits:{maxResults:100,maxResultsPerType:5}});if(f===i.current)return;i.current=f;const h=f.onResults(g=>{g.results.forEach(w=>{u.find(O=>O.id===w.id&&O.type.name===w.type.name)||u.push(w)}),o(!1),n([...u])}),m=f.onCompleted(()=>{o(!1)}),v=f.onError(g=>{console.error(`Query failed. Provider: ${g.provider}; Error: ${g.error}`)});l.push(h,m,v)})(t),()=>{l.forEach(p=>p())}},[c,t]),{resultsToRender:e,isLoading:r}},Yo=()=>{const t=b.useContext(ee.IOConnectContext);return async({id:e,modifier:n})=>{const r=await t.workspaces?.getWorkspace(a=>a.isSelected===!0),o=r?.children[0];return n===mn.CONTROL||!r||o?.type==="window"?await t.appManager.application(e).start():await(o?.type==="group"?o:await(o||r).addGroup()).addWindow({appName:e})}},Hs=()=>{const[t,e]=b.useState([]),n=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{if(!n||!n.workspaces)return;let r=!1;const o=n.workspaces.layouts.onSaved(({name:c})=>{r||t.find(({id:a})=>a===c)||e(a=>[...a,{id:c,title:c}])}),i=n.workspaces.layouts.onRemoved(({name:c})=>{r||e(a=>a.filter(({title:l})=>l!==c))});return()=>{r=!0,[o,i].forEach(async c=>{try{(await c)()}catch(a){console.error(a)}})}},[n,t]),t},Us=()=>{const[t,e]=b.useState({}),n=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{if(!n)return;const r=[];return(async()=>{try{const o=await n.workspaces?.onWorkspaceOpened(c=>e(a=>({...a,[c.title]:[...a[c.title]||[],c.id]})));r.push(o);const i=await n.workspaces?.onWorkspaceClosed(({workspaceId:c})=>e(a=>{const l={...a};for(const u in l)if(l[u].includes(c)){l[u]=l[u].filter(d=>d!==c);break}return l}));r.push(i)}catch(o){console.error(o)}})(),()=>r.forEach(o=>o?.())},[n]),t},Fs=t=>{const{io:e,item:n}=t;e.appManager.application(n.id).start().catch(r=>{console.error("Failed to start application: ",{error:r})})},Vs=t=>{const{io:e,item:n,frame:r}=t;if(!e.workspaces)return;const o={type:"workspace",definition:{frame:r?{reuseFrameId:r.id}:{newFrame:!0}}},i=e.workspaces.getBuilder(o);i.addGroup().addWindow({appName:n.id}),i.create().catch(c=>{console.error("Failed to create workspace: ",{error:c})})},zs={openInNewWindow:Fs,openInNewWorkspace:Vs},Xo=()=>{const t=b.useContext(ee.IOConnectContext),e=Go();return(n,r)=>{zs[r]({io:t,item:n,frame:e})}},Zs=t=>{const{io:e,item:n}=t;e.workspaces&&e.workspaces.restoreWorkspace(n.id,{newFrame:!0}).catch(r=>{console.error("Failed to open workspace in new frame: ",{error:r})})},Bs=async t=>{const{io:e,item:n,removeFavorite:r}=t;if(e.workspaces)try{await e.workspaces.layouts.delete(n.id),r(n.id)}catch(o){console.error("Failed to delete workspace: ",{error:o})}},$s={openInNewFrame:Zs,delete:Bs},Jo=()=>{const t=b.useContext(ee.IOConnectContext),{removeFavorite:e}=hn();return(n,r)=>{$s[r]({io:t,item:n,removeFavorite:e})}},Gs=t=>{const{layout:e,setDefaultLayout:n}=t;n({name:e.name})},Ks=async t=>{const{io:e,layout:n}=t;try{await e.layouts.remove("Global",n.name)}catch(r){console.error("Failed to delete layout: ",{error:r})}},qs={setAsDefault:Gs,delete:Ks},Ys=()=>{const t=b.useContext(ee.IOConnectContext);return b.useCallback(async(n,r,o)=>{await qs[r]({io:t,layout:n,setDefaultLayout:o})},[t])},Qo=ce({name:ae}),ei="Welcome",Xs=5,qe={WINDOW_MANAGEMENT:"window-management",NOTIFICATIONS:"notifications"},Zt="getScreenDetails"in window,Js=t=>t.components.reduce((n,r)=>{if(r.type==="workspaceFrame"){const o=r.state.workspaces.map(i=>i.config.name);n.push(...o)}return n},[]),Qs=()=>{const t=Zt?[qe.NOTIFICATIONS,qe.WINDOW_MANAGEMENT]:[qe.NOTIFICATIONS];return Promise.all(t.map(async e=>{const n=await navigator.permissions.query({name:e});return n.stableName=e,n}))},ti=b.createContext(void 0),Ve=()=>{const t=b.useContext(ti);if(t===void 0)throw new Error("useIOConnectHome must be used within an IOConnectHomeProvider");return t},ni=({children:t})=>{const[e,n]=Ie("localStorage",Vt,zt),[r,o]=b.useState([]),i=b.useMemo(()=>r.reduce((d,p)=>({...d,[p.stableName]:{state:p.state}}),{}),[r]),c={isLoading:r.length===0,statuses:i},[a,l]=b.useState(!1),u={isLoggingOut:a,setIsLoggingOut:l};return b.useEffect(()=>{let d=!1;const p=Qs().then(f=>{if(d)return;o(f);const h=[];let m=!1;return f.forEach((v,g)=>{const w=E=>{if(d||!E.target||m)return;const O=E.target;if(O.state==="prompt")return n({isCompleted:!1}),m=!0,window.location.reload();o(y=>[...y.slice(0,g),O,...y.slice(g+1)])};v.addEventListener("change",w),h.push(()=>v.removeEventListener("change",w))}),h}).catch(console.warn);return()=>{d=!0,p.then(f=>{f?.forEach(h=>h())})}},[n]),s.jsx(ti.Provider,{value:{permission:c,login:u},children:t})},ea=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none",height:"63",viewBox:"0 0 63 63",width:"63",...t,children:[s.jsxs("linearGradient",{id:"chrome_a",gradientUnits:"userSpaceOnUse",x1:"34.9087",x2:"7.63224",y1:"61.029",y2:"13.7847",children:[s.jsx("stop",{offset:"0",stopColor:"#1e8e3e"}),s.jsx("stop",{offset:"1",stopColor:"#34a853"})]}),s.jsxs("linearGradient",{id:"chrome_b",gradientUnits:"userSpaceOnUse",x1:"26.9043",x2:"54.1808",y1:"63.0788",y2:"15.8345",children:[s.jsx("stop",{offset:"0",stopColor:"#fcc934"}),s.jsx("stop",{offset:"1",stopColor:"#fbbc04"})]}),s.jsxs("linearGradient",{id:"chrome_c",gradientUnits:"userSpaceOnUse",x1:"4.22145",x2:"58.7745",y1:"19.6884",y2:"19.6884",children:[s.jsx("stop",{offset:"0",stopColor:"#d93025"}),s.jsx("stop",{offset:"1",stopColor:"#ea4335"})]}),s.jsx("path",{d:"m31.499 47.2466c8.6985 0 15.75-7.0515 15.75-15.75s-7.0515-15.75-15.75-15.75-15.75 7.0515-15.75 15.75 7.0515 15.75 15.75 15.75z",fill:"#fff"}),s.jsx("path",{d:"m17.8591 39.3751-13.63772-23.6212c-2.76527 4.788-4.22118922 10.2197-4.22137998 15.7489s1.45535998 10.961 4.22028998 15.7492c2.76494 4.7882 6.74181 8.7641 11.53071 11.5279 4.7889 2.7637 10.221 4.2179 15.7502 4.2164l13.6377-23.6212v-.0041c-1.3813 2.3954-3.369 4.3848-5.7632 5.7681s-5.1104 2.1118-7.8755 2.1122-5.4816-.7272-7.8762-2.1099c-2.3945-1.3826-4.3829-3.3714-5.7649-5.7663z",fill:"url(#chrome_a)"}),s.jsx("path",{d:"m45.1379 39.3741-13.6376 23.6212c5.5292.0008 10.9611-1.4542 15.7496-4.2187 4.7885-2.7644 8.7648-6.7408 11.5291-11.5294 2.7642-4.7887 4.219-10.2207 4.2181-15.7499-.001-5.5292-1.4577-10.9606-4.2237-15.7483h-27.2754l-.0034.0021c2.7651-.0014 5.4818.7254 7.8769 2.1071 2.3951 1.3818 4.3841 3.3698 5.767 5.7643 1.3829 2.3944 2.1109 5.1108 2.1109 7.8758-.0001 2.7651-.7283 5.4814-2.1113 7.8758z",fill:"url(#chrome_b)"}),s.jsx("path",{d:"m31.499 43.9688c6.8863 0 12.4688-5.5825 12.4688-12.4688s-5.5825-12.4688-12.4688-12.4688-12.4687 5.5825-12.4687 12.4688 5.5824 12.4688 12.4687 12.4688z",fill:"#1a73e8"}),s.jsx("path",{d:"m31.4991 15.75h27.2754c-2.764-4.7888-6.74-8.76553-11.5283-11.53029-4.7883-2.76475-10.2202-4.22010235-15.7494-4.21970992s-10.9608 1.45650992-15.7487 4.22194992c-4.788 2.76543-8.76341 6.74275-11.52666 11.53185l13.63766 23.6212.0035.0019c-1.3837-2.394-2.1127-5.11-2.1136-7.8751s.7264-5.4817 2.1086-7.8765c1.3821-2.3948 3.3706-4.3835 5.7652-5.7659 2.3947-1.3825 5.1112-2.11 7.8763-2.1094z",fill:"url(#chrome_c)"})]}),ta=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...t,children:[s.jsxs("defs",{children:[s.jsxs("radialGradient",{id:"edge_b",cx:161.8,cy:68.9,r:95.4,gradientTransform:"matrix(1 0 0 -.95 0 248.8)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:.7,stopOpacity:0}),s.jsx("stop",{offset:.9,stopOpacity:.5}),s.jsx("stop",{offset:1})]}),s.jsxs("radialGradient",{id:"edge_d",cx:-340.3,cy:63,r:143.2,gradientTransform:"matrix(.15 -.99 -.8 -.12 176.6 -125.4)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:.8,stopOpacity:0}),s.jsx("stop",{offset:.9,stopOpacity:.5}),s.jsx("stop",{offset:1})]}),s.jsxs("radialGradient",{id:"edge_e",cx:113.4,cy:570.2,r:202.4,gradientTransform:"matrix(-.04 1 2.13 .08 -1179.5 -106.7)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#35c1f1"}),s.jsx("stop",{offset:.1,stopColor:"#34c1ed"}),s.jsx("stop",{offset:.2,stopColor:"#2fc2df"}),s.jsx("stop",{offset:.3,stopColor:"#2bc3d2"}),s.jsx("stop",{offset:.7,stopColor:"#36c752"})]}),s.jsxs("radialGradient",{id:"edge_f",cx:376.5,cy:568,r:97.3,gradientTransform:"matrix(.28 .96 .78 -.23 -303.8 -148.5)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#66eb6e"}),s.jsx("stop",{offset:1,stopColor:"#66eb6e",stopOpacity:0})]}),s.jsxs("linearGradient",{id:"edge_a",x1:63.3,x2:241.7,y1:84,y2:84,gradientTransform:"matrix(1 0 0 -1 0 266)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#0c59a4"}),s.jsx("stop",{offset:1,stopColor:"#114a8b"})]}),s.jsxs("linearGradient",{id:"edge_c",x1:157.3,x2:46,y1:161.4,y2:40.1,gradientTransform:"matrix(1 0 0 -1 0 266)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#1b9de2"}),s.jsx("stop",{offset:.2,stopColor:"#1595df"}),s.jsx("stop",{offset:.7,stopColor:"#0680d7"}),s.jsx("stop",{offset:1,stopColor:"#0078d4"})]})]}),s.jsx("path",{d:"M235.7 195.5a93.7 93.7 0 0 1-10.6 4.7 101.9 101.9 0 0 1-35.9 6.4c-47.3 0-88.5-32.5-88.5-74.3a31.5 31.5 0 0 1 16.4-27.3c-42.8 1.8-53.8 46.4-53.8 72.5 0 74 68.1 81.4 82.8 81.4 7.9 0 19.8-2.3 27-4.6l1.3-.4a128.3 128.3 0 0 0 66.6-52.8 4 4 0 0 0-5.3-5.6Z",style:{fill:"url(#edge_a)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M235.7 195.5a93.7 93.7 0 0 1-10.6 4.7 101.9 101.9 0 0 1-35.9 6.4c-47.3 0-88.5-32.5-88.5-74.3a31.5 31.5 0 0 1 16.4-27.3c-42.8 1.8-53.8 46.4-53.8 72.5 0 74 68.1 81.4 82.8 81.4 7.9 0 19.8-2.3 27-4.6l1.3-.4a128.3 128.3 0 0 0 66.6-52.8 4 4 0 0 0-5.3-5.6Z",style:{isolation:"isolate",opacity:.35,fill:"url(#edge_b)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M110.3 246.3A79.2 79.2 0 0 1 87.6 225a80.7 80.7 0 0 1 29.5-120c3.2-1.5 8.5-4.1 15.6-4a32.4 32.4 0 0 1 25.7 13 31.9 31.9 0 0 1 6.3 18.7c0-.2 24.5-79.6-80-79.6-43.9 0-80 41.6-80 78.2a130.2 130.2 0 0 0 12.1 56 128 128 0 0 0 156.4 67 75.5 75.5 0 0 1-62.8-8Z",style:{fill:"url(#edge_c)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M110.3 246.3A79.2 79.2 0 0 1 87.6 225a80.7 80.7 0 0 1 29.5-120c3.2-1.5 8.5-4.1 15.6-4a32.4 32.4 0 0 1 25.7 13 31.9 31.9 0 0 1 6.3 18.7c0-.2 24.5-79.6-80-79.6-43.9 0-80 41.6-80 78.2a130.2 130.2 0 0 0 12.1 56 128 128 0 0 0 156.4 67 75.5 75.5 0 0 1-62.8-8Z",style:{opacity:.41,fill:"url(#edge_d)",isolation:"isolate"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M157 153.8c-.9 1-3.4 2.5-3.4 5.6 0 2.6 1.7 5.2 4.8 7.3 14.3 10 41.4 8.6 41.5 8.6a59.6 59.6 0 0 0 30.3-8.3 61.4 61.4 0 0 0 30.4-52.9c.3-22.4-8-37.3-11.3-43.9C228 28.8 182.3 5 132.6 5a128 128 0 0 0-128 126.2c.5-36.5 36.8-66 80-66 3.5 0 23.5.3 42 10a72.6 72.6 0 0 1 30.9 29.3c6.1 10.6 7.2 24.1 7.2 29.5s-2.7 13.3-7.8 19.9Z",style:{fill:"url(#edge_e)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M157 153.8c-.9 1-3.4 2.5-3.4 5.6 0 2.6 1.7 5.2 4.8 7.3 14.3 10 41.4 8.6 41.5 8.6a59.6 59.6 0 0 0 30.3-8.3 61.4 61.4 0 0 0 30.4-52.9c.3-22.4-8-37.3-11.3-43.9C228 28.8 182.3 5 132.6 5a128 128 0 0 0-128 126.2c.5-36.5 36.8-66 80-66 3.5 0 23.5.3 42 10a72.6 72.6 0 0 1 30.9 29.3c6.1 10.6 7.2 24.1 7.2 29.5s-2.7 13.3-7.8 19.9Z",style:{fill:"url(#edge_f)"},transform:"translate(-4.6 -5)"})]}),na=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75.591 75.591",...t,children:[s.jsxs("linearGradient",{id:"opera_a",x2:1,gradientTransform:"matrix(0 -54.944 -54.944 0 23.62 79.474)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#ff1b2d"}),s.jsx("stop",{offset:.3,stopColor:"#ff1b2d"}),s.jsx("stop",{offset:.614,stopColor:"#ff1b2d"}),s.jsx("stop",{offset:1,stopColor:"#a70014"})]}),s.jsxs("linearGradient",{id:"opera_b",x2:1,gradientTransform:"matrix(0 -48.595 -48.595 0 37.854 76.235)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#9c0000"}),s.jsx("stop",{offset:.7,stopColor:"#ff4b4b"}),s.jsx("stop",{offset:1,stopColor:"#ff4b4b"})]}),s.jsx("path",{fill:"url(#opera_a)",d:"M28.346 80.398C12.691 80.398 0 67.707 0 52.052 0 36.85 11.968 24.443 26.996 23.739a28.244 28.244 0 0 1 20.241 7.18c-3.322-2.203-7.207-3.47-11.359-3.47-6.75 0-12.796 3.348-16.862 8.629-3.134 3.7-5.164 9.169-5.302 15.307v1.335c.138 6.137 2.168 11.608 5.302 15.307 4.066 5.28 10.112 8.63 16.862 8.63 4.152 0 8.038-1.269 11.36-3.474a28.239 28.239 0 0 1-18.785 7.215l-.108.001z",transform:"matrix(1.3333 0 0 -1.3333 0 107.2)"}),s.jsx("path",{fill:"url(#opera_b)",d:"M19.016 68.025c2.601 3.07 5.96 4.923 9.631 4.923 8.252 0 14.941-9.356 14.941-20.897s-6.69-20.897-14.941-20.897c-3.67 0-7.03 1.85-9.63 4.922 4.066-5.281 10.11-8.63 16.862-8.63 4.152 0 8.036 1.268 11.359 3.472 5.802 5.19 9.455 12.735 9.455 21.133 0 8.397-3.653 15.94-9.453 21.13-3.324 2.206-7.209 3.473-11.361 3.473-6.75 0-12.796-3.348-16.862-8.63",transform:"matrix(1.3333 0 0 -1.3333 0 107.2)"})]}),ra=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:170,height:134,fill:"none",...t,children:[s.jsxs("g",{clipPath:"url(#a)",children:[s.jsxs("g",{clipPath:"url(#b)",children:[s.jsx("path",{fill:"url(#c)",d:"M0 0h170v114H0z"}),s.jsx("rect",{width:42.821,height:15,x:.5,y:-.5,fill:"#3C3E3F",rx:7.5,transform:"matrix(1 0 0 -1 117 103.85)"}),s.jsx("rect",{width:42.821,height:15,x:.5,y:-.5,stroke:"#4B4E4F",strokeMiterlimit:10,rx:7.5,transform:"matrix(1 0 0 -1 117 103.85)"}),s.jsx("path",{fill:"#36A86B",d:"M125.31 100.086c-1.656 0-3-1.41-3-3.149 0-1.74 1.344-3.15 3-3.15 1.657 0 3 1.41 3 3.15s-1.343 3.149-3 3.149Z"}),s.jsx("rect",{width:21.694,height:6.057,fill:"#AAB0B0",rx:3.028,transform:"matrix(1 0 0 -1 132.72 99.844)"}),s.jsx("mask",{id:"d",fill:"#fff",children:s.jsx("path",{d:"M0 114h170v20H0v-20Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M0 114h170v20H0v-20Z"}),s.jsx("path",{fill:"#5D5D5D",d:"M0 115h170v-2H0v2Z",mask:"url(#d)"})]}),s.jsx("rect",{width:169,height:133,x:.5,y:.5,stroke:"#5D5D5D",rx:5.5}),s.jsx("rect",{width:64,height:64,x:53,y:24,fill:"#36AA6C",rx:32}),s.jsx("path",{fill:"#fff",d:"M84.068 42.02c0-.466.408-.932.932-.932.466 0 .932.466.932.932v.99c4.66.467 8.388 4.428 8.388 9.262v1.748a9.57 9.57 0 0 0 2.796 6.756l.174.175c.466.466.758 1.165.758 1.806a2.61 2.61 0 0 1-2.621 2.621H74.514c-1.456-.058-2.563-1.165-2.563-2.621 0-.7.233-1.34.758-1.806l.116-.175c1.806-1.805 2.854-4.252 2.854-6.757v-1.747a9.3 9.3 0 0 1 8.388-9.261v-.99ZM85 44.816c-4.136 0-7.456 3.379-7.456 7.456v1.748c0 3.028-1.223 5.94-3.378 8.096l-.175.117a.94.94 0 0 0-.175.524c0 .408.291.699.7.699h20.91c.408 0 .758-.291.758-.7 0-.174-.117-.349-.233-.523l-.175-.117a11.502 11.502 0 0 1-3.378-8.155v-1.689c0-4.077-3.32-7.456-7.456-7.456H85Zm-1.806 23.008c.291.758.99 1.224 1.806 1.224.757 0 1.456-.466 1.747-1.224.175-.466.7-.757 1.165-.582a.976.976 0 0 1 .583 1.223A3.717 3.717 0 0 1 85 70.912c-1.631 0-3.029-.99-3.553-2.447a.976.976 0 0 1 .582-1.223c.466-.175.99.116 1.165.582Z"}),s.jsx("path",{fill:"#36A86B",d:"M113.791 86.146c-1.922 0-3.48-1.62-3.48-3.62 0-1.999 1.558-3.62 3.48-3.62s3.481 1.621 3.481 3.62c0 2-1.559 3.62-3.481 3.62Z"})]}),s.jsxs("defs",{children:[s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 0h170v134H0z"})}),s.jsx("clipPath",{id:"b",children:s.jsx("rect",{width:170,height:134,fill:"#fff",rx:6})}),s.jsxs("linearGradient",{id:"c",x1:20.715,x2:62.592,y1:6.956,y2:110.839,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#313131"}),s.jsx("stop",{offset:1,stopColor:"#1B1B1B"})]})]})]}),oa=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:170,height:134,fill:"none",...t,children:[s.jsxs("g",{clipPath:"url(#a)",children:[s.jsxs("g",{clipPath:"url(#b)",children:[s.jsx("path",{fill:"url(#c)",d:"M0 0h170v94H0z",transform:"translate(0 20)"}),s.jsx("mask",{id:"d",fill:"#fff",children:s.jsx("path",{d:"M0 114h170v20H0v-20Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M0 114h170v20H0v-20Z"}),s.jsx("path",{fill:"#5D5D5D",d:"M0 115h170v-2H0v2Z",mask:"url(#d)"})]}),s.jsx("rect",{width:169,height:113,x:.5,y:20.5,stroke:"#5D5D5D",rx:5.5}),s.jsx("path",{fill:"#3C3E3F",stroke:"#5D5D5D",strokeMiterlimit:10,d:"M22.338.5h125.324c2.746 0 4.941 2.144 4.941 4.75v76.938c0 2.608-2.195 4.751-4.941 4.751H22.338c-2.746 0-4.94-2.143-4.94-4.75V5.25c0-2.607 2.194-4.751 4.94-4.751Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M116.905 16.552a2.766 2.766 0 1 0 0-5.533 2.766 2.766 0 0 0 0 5.533ZM127.206 16.552a2.766 2.766 0 1 0 0-5.533 2.766 2.766 0 0 0 0 5.533Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M137.505 16.552a2.766 2.766 0 1 0 0-5.533 2.766 2.766 0 0 0 0 5.533Z"}),s.jsx("circle",{cx:46.208,cy:58.882,r:20.294,fill:"#36AA6C"}),s.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M45.501 53.17a1 1 0 0 1 1.414 0l6.364 6.363a1 1 0 0 1-1.414 1.415l-4.657-4.657v48.23a1 1 0 0 1-2 0v-48.23l-4.657 4.657a1 1 0 0 1-1.414-1.415l6.364-6.364Z",clipRule:"evenodd"})]}),s.jsxs("defs",{children:[s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 0h170v134H0z"})}),s.jsx("clipPath",{id:"b",children:s.jsx("rect",{width:170,height:114,y:20,fill:"#fff",rx:6})}),s.jsxs("linearGradient",{id:"c",x1:20.715,x2:50.521,y1:5.735,y2:95.406,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#313131"}),s.jsx("stop",{offset:1,stopColor:"#1B1B1B"})]})]})]}),ia=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:170,height:134,fill:"none",...t,children:[s.jsxs("g",{clipPath:"url(#a)",children:[s.jsxs("g",{clipPath:"url(#b)",children:[s.jsx("path",{fill:"url(#c)",d:"M0 0h170v114H0z"}),s.jsx("mask",{id:"d",fill:"#fff",children:s.jsx("path",{d:"M0 114h170v20H0v-20Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M0 114h170v20H0v-20Z"}),s.jsx("path",{fill:"#5D5D5D",d:"M0 115h170v-2H0v2Z",mask:"url(#d)"})]}),s.jsx("rect",{width:169,height:133,x:.5,y:.5,stroke:"#5D5D5D",rx:5.5}),s.jsx("path",{stroke:"#5D5D5D",strokeDasharray:"2 2",strokeLinejoin:"round",strokeMiterlimit:10,d:"M27.449 103.584a2.008 2.008 0 0 1-1.083-1.083l.462-.191a1.495 1.495 0 0 1-.114-.574v-1.011h-.5v-2.02h.5v-2.021h-.5v-2.021h.5v-2.021h-.5v-2.02h.5V88.6h-.5v-2.02h.5v-2.022h-.5v-2.02h.5v-2.021h-.5v-2.021h.5v-2.02h-.5v-2.022h.5v-2.02h-.5v-2.022h.5v-2.02h-.5V66.37h.5V64.35h-.5v-2.021h.5v-2.02h-.5v-2.022h.5v-2.02h-.5v-2.022h.5v-2.02h-.5v-2.021h.5v-2.021h-.5v-2.021h.5v-2.02h-.5V42.12h.5V40.1h-.5v-2.022h.5v-2.02h-.5v-2.021h.5v-2.021h-.5v-2.02h.5v-2.022h-.5v-2.02h.5v-2.021h-.5v-2.021h.5V19.89h-.5V17.87h.5v-2.021h-.5v-2.02h.5v-1.011c0-.205.04-.398.114-.574l-.462-.192c.203-.489.594-.88 1.083-1.083l.191.462c.176-.073.37-.113.574-.113h1.014v-.5h2.028v.5h2.029v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.029v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.029v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.029v-.5h2.028v.5h2.028v-.5h2.028v.5h1.014c.204 0 .398.04.574.113l.191-.462c.489.203.88.594 1.083 1.083l-.462.192c.073.176.114.37.114.574v1.01h.5v2.021h-.5v2.02h.5v2.022h-.5v2.02h.5v2.021h-.5v2.021h.5v2.021h-.5v2.021h.5v2.02h-.5v2.022h.5v2.02h-.5v2.021h.5V40.1h-.5v2.021h.5v2.021h-.5v2.021h.5v2.02h-.5v2.022h.5v2.02h-.5v2.022h.5v2.02h-.5v2.021h.5v2.021h-.5v2.021h.5v2.02h-.5v2.022h.5v2.02h-.5v2.021h.5v2.021h-.5v2.021h.5v2.021h-.5v2.02h.5v2.022h-.5v2.02h.5v2.021h-.5v2.021h.5V88.6h-.5v2.021h.5v2.021h-.5v2.02h.5v2.022h-.5v2.02h.5v2.021h-.5v1.011c0 .204-.041.398-.114.574l.462.191a2.01 2.01 0 0 1-1.083 1.083l-.191-.462c-.176.073-.37.114-.574.114h-1.014v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.029v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.029v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5H90.07v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5H79.93v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5H69.79v-.5H67.76v.5h-2.028v-.5h-2.028v.5h-2.028v-.5H59.65v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5H47.48v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5H37.34v-.5h-2.029v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-1.014c-.204 0-.398-.041-.574-.114l-.191.462Z"}),s.jsx("path",{fill:"#5A5C5C",d:"M128 83c0 8.284 6.716 15 15 15 8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15Z"}),s.jsx("path",{fill:"#DDD",d:"M143.015 89.758a6.667 6.667 0 0 0 5.823-3.379c1.237-2.082 1.237-4.646 0-6.758-1.207-2.082-3.409-3.38-5.823-3.38a6.742 6.742 0 0 0-5.853 3.38c-1.237 2.112-1.237 4.676 0 6.758 1.207 2.112 3.409 3.38 5.853 3.38Zm0-14.482c2.746 0 5.28 1.479 6.668 3.862 1.388 2.414 1.388 5.34 0 7.724a7.666 7.666 0 0 1-6.668 3.862 7.678 7.678 0 0 1-6.698-3.862c-1.388-2.384-1.388-5.31 0-7.724a7.741 7.741 0 0 1 6.698-3.862Zm.724 2.897a.715.715 0 0 1-.724.724.697.697 0 0 1-.724-.724c0-.392.302-.724.724-.724.392 0 .724.332.724.724Zm-1.689 7.723c0 .543.422.966.965.966a.973.973 0 0 0 .966-.966.993.993 0 0 0-.966-.965.972.972 0 0 0-.965.965Zm-.966 0c0-1.056.845-1.93 1.931-1.93.513 0 .996.21 1.328.573l3.228-1.931a.478.478 0 0 1 .664.15c.15.242.06.544-.151.664l-3.228 1.931c.06.181.09.362.09.543 0 1.087-.875 1.931-1.931 1.931a1.906 1.906 0 0 1-1.931-1.93Zm6.034-6.275a.715.715 0 0 1-.724.724.697.697 0 0 1-.724-.724c0-.392.302-.724.724-.724.392 0 .724.332.724.724Zm-8.93 2.655c.392 0 .724.332.724.724a.715.715 0 0 1-.724.724.697.697 0 0 1-.724-.724c0-.392.301-.724.724-.724Zm2.172-2.655a.715.715 0 0 1-.724.724.697.697 0 0 1-.724-.724c0-.392.302-.724.724-.724.392 0 .724.332.724.724Z"}),s.jsx("path",{fill:"#5A5C5C",d:"M12 83c0 8.284 6.716 15 15 15 8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15Z"}),s.jsx("path",{fill:"#DDD",d:"M27.351 76.62a.804.804 0 0 0-.73 0L21.45 78.81c-.322.117-.556.438-.526.789 0 2.746 1.139 7.596 5.697 9.787a.804.804 0 0 0 .73 0c4.558-2.19 5.697-7.04 5.727-9.787a.855.855 0 0 0-.556-.789l-5.17-2.191Zm-1.08-.877a1.816 1.816 0 0 1 1.46 0l5.142 2.192c.643.292 1.14.905 1.14 1.665-.03 2.922-1.228 8.21-6.253 10.635a1.798 1.798 0 0 1-1.548 0c-5.026-2.425-6.223-7.713-6.223-10.635-.03-.76.467-1.373 1.11-1.665l5.171-2.192Z"}),s.jsx("rect",{width:30,height:30,fill:"#5A5C5C",rx:15,transform:"matrix(1 0 0 -1 12 45.46)"}),s.jsx("path",{fill:"#DDD",d:"M18.653 23.886c.132-.184.422-.237.58-.079l16.033 12.657a.394.394 0 0 1 .08.58c-.133.185-.396.212-.58.08L18.732 24.466a.42.42 0 0 1-.08-.58Zm10.416 6.065-1.45-1.16a7.74 7.74 0 0 1 4.746 2.189c.159.184.159.448 0 .606a.447.447 0 0 1-.606 0 6.555 6.555 0 0 0-2.69-1.635Zm-5.01.343a6.346 6.346 0 0 0-1.82 1.292.447.447 0 0 1-.606 0 .414.414 0 0 1 0-.58 7.975 7.975 0 0 1 1.688-1.292l.738.58Zm-.184-4.43-.791-.633a11.395 11.395 0 0 1 3.928-.686c3.218 0 6.17 1.319 8.307 3.428.158.159.158.422 0 .607-.158.158-.422.158-.607 0a10.84 10.84 0 0 0-7.7-3.19c-1.107 0-2.135.157-3.137.474ZM19.84 26.97l.686.528c-.449.343-.844.685-1.24 1.08a.447.447 0 0 1-.606 0c-.159-.184-.159-.447 0-.606.369-.369.765-.685 1.16-1.002Zm5.801 8.702a1.699 1.699 0 0 1-.21-1.687c.263-.554.79-.95 1.397-1.002a1.662 1.662 0 0 1 1.53.712c.369.5.448 1.134.21 1.687-.263.554-.79.95-1.397 1.002a1.662 1.662 0 0 1-1.53-.712Zm2.215-1.002a.868.868 0 0 0-.844-.843.85.85 0 0 0-.843.843c0 .475.369.844.843.844a.85.85 0 0 0 .844-.844Z"}),s.jsx("path",{fill:"#5A5C5C",d:"M128 30c0 8.284 6.716 15 15 15 8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15Z"}),s.jsx("path",{fill:"#DDD",d:"m142.001 23.885-.424 1.457c-.091.364-.364.637-.668.789-.243.121-.455.242-.667.364a1.232 1.232 0 0 1-1.032.212l-1.456-.364h-.122a3.276 3.276 0 0 0-.455.668l-.152.212a7.838 7.838 0 0 0-.333.728c0 .03.03.091.06.122l1.062 1.061c.243.273.364.668.334 1.002v.758c.03.334-.091.698-.334.971l-1.062 1.092a.231.231 0 0 0-.06.122c.091.242.212.485.333.728l.122.212c.152.213.303.456.455.668h.152l1.456-.364c.364-.091.759 0 1.032.182.212.151.424.273.667.394.304.152.577.425.668.79l.424 1.456c0 .03.031.06.061.09.304.061.607.061.941.061.303 0 .607 0 .91-.06.03-.03.061-.061.061-.091l.424-1.457c.091-.364.364-.637.668-.789a4.79 4.79 0 0 0 .667-.394c.304-.182.668-.273 1.032-.182l1.456.364h.152c.152-.212.304-.455.455-.668l.122-.212c.121-.243.242-.486.333-.728 0-.03-.03-.091-.06-.122l-1.062-1.092a1.316 1.316 0 0 1-.334-.97c0-.122.03-.244.03-.395 0-.122-.03-.243-.03-.364-.03-.334.091-.729.334-1.002l1.062-1.061c.03-.03.06-.092.06-.122a7.838 7.838 0 0 0-.333-.728l-.122-.212a12.155 12.155 0 0 0-.455-.668h-.152l-1.456.364c-.364.091-.728 0-1.032-.182a4.789 4.789 0 0 0-.667-.394c-.304-.152-.577-.425-.668-.79l-.424-1.456a.233.233 0 0 0-.061-.121 9.146 9.146 0 0 0-.91-.06c-.334 0-.637.03-.941.06a.233.233 0 0 0-.061.121Zm1.002-1.153c.394 0 .758.03 1.153.091.06.03.091.03.151.061.273.152.516.425.607.728l.425 1.457c0 .06.061.151.152.182.273.121.546.273.789.455.091.06.182.09.242.06l1.487-.364c.303-.09.668-.03.941.152l.121.122c.212.242.394.546.576.849l.152.212v.03c.152.304.304.608.425.911.03.06.03.091.03.152.031.334-.091.667-.333.91l-1.062 1.092c-.031.03-.061.122-.061.213 0 .151.03.303.03.455 0 .151-.03.303-.03.455 0 .121.03.212.061.243l1.062 1.092c.242.243.364.576.333.91 0 .03 0 .091-.03.152-.121.303-.273.607-.425.91l-.152.243a5.476 5.476 0 0 1-.606.85c-.031.06-.061.09-.091.12a1.206 1.206 0 0 1-.971.152l-1.457-.364c-.06-.03-.151 0-.242.061-.243.152-.516.303-.789.455-.091.03-.152.121-.152.182l-.425 1.426a1.277 1.277 0 0 1-.607.759c-.06.03-.091.03-.151.06-.395.03-.759.061-1.153.061-.395 0-.789-.03-1.184-.06-.06-.03-.091-.03-.151-.061a1.277 1.277 0 0 1-.607-.759l-.425-1.426c0-.06-.061-.151-.152-.182a4.11 4.11 0 0 1-.789-.455c-.091-.06-.182-.06-.242-.06l-1.457.363c-.333.091-.667.03-.94-.151-.061-.03-.091-.06-.122-.091-.242-.273-.424-.577-.606-.88l-.122-.213-.03-.03a11.98 11.98 0 0 1-.425-.91c0-.06-.03-.091-.03-.152 0-.334.091-.667.334-.91l1.061-1.092c.031-.03.061-.122.061-.243v-.91c0-.091-.03-.182-.061-.213l-1.061-1.092c-.243-.243-.334-.576-.334-.91 0-.061.03-.091.03-.152.121-.303.273-.607.425-.91l.03-.03.122-.213a6.09 6.09 0 0 1 .606-.85.24.24 0 0 1 .122-.12c.273-.183.607-.244.94-.153l1.457.364c.06.03.151 0 .242-.06.243-.152.516-.334.789-.455.091-.03.152-.122.152-.182l.425-1.457c.091-.303.334-.576.607-.728.06-.03.091-.03.151-.06.395-.061.789-.092 1.184-.092Zm-1.699 7.768c0 .637.303 1.183.849 1.486.516.304 1.153.304 1.699 0 .516-.303.85-.85.85-1.486 0-.607-.334-1.153-.85-1.457-.546-.303-1.183-.303-1.699 0-.546.304-.849.85-.849 1.457Zm4.369 0c0 .97-.516 1.85-1.335 2.336a2.781 2.781 0 0 1-2.67 0c-.85-.485-1.335-1.365-1.335-2.336 0-.94.485-1.82 1.335-2.306a2.781 2.781 0 0 1 2.67 0 2.702 2.702 0 0 1 1.335 2.306Z"}),s.jsx("circle",{cx:85,cy:57.277,r:32,fill:"#36AA6C"}),s.jsx("path",{fill:"#fff",d:"M72.313 42.777h9.968v1.812h-9.969c-1.019 0-1.812.85-1.812 1.813v16.312a1.79 1.79 0 0 0 1.813 1.813h25.374c.963 0 1.813-.793 1.813-1.813V46.402c0-.963-.85-1.813-1.813-1.813H87.72v-1.812h9.969c1.982 0 3.624 1.642 3.624 3.625v16.312a3.613 3.613 0 0 1-3.624 3.625H89.19l.623 3.625h3.342c.453 0 .906.453.906.907 0 .51-.453.906-.906.906H76.844a.895.895 0 0 1-.906-.906c0-.454.396-.907.906-.907h3.285l.623-3.625h-8.44c-2.039 0-3.624-1.586-3.624-3.625V46.402a3.614 3.614 0 0 1 3.624-3.625Zm10.251 23.562-.623 3.625h6.061l-.623-3.625h-4.815Zm3.342-22.656v12.348l2.946-3.002c.34-.34.962-.34 1.302 0 .34.34.34.963 0 1.302l-4.531 4.532c-.34.34-.963.34-1.303 0l-4.53-4.532c-.34-.34-.34-.962 0-1.302.339-.34.962-.34 1.302 0l3.002 3.002V43.683c0-.453.396-.906.906-.906.453 0 .906.453.906.906Z"})]}),s.jsxs("defs",{children:[s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 0h170v134H0z"})}),s.jsx("clipPath",{id:"b",children:s.jsx("rect",{width:170,height:134,fill:"#fff",rx:6})}),s.jsxs("linearGradient",{id:"c",x1:20.715,x2:62.592,y1:6.956,y2:110.839,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#313131"}),s.jsx("stop",{offset:1,stopColor:"#1B1B1B"})]})]})]}),sa=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:170,height:134,fill:"none",...t,children:[s.jsxs("g",{clipPath:"url(#a)",children:[s.jsxs("g",{clipPath:"url(#b)",children:[s.jsx("path",{fill:"url(#c)",d:"M0 0h170v114H0z"}),s.jsx("path",{stroke:"#5D5D5D",strokeDasharray:"2 2",strokeMiterlimit:10,d:"M27.449 103.138a2.008 2.008 0 0 1-1.083-1.083l.462-.191a1.493 1.493 0 0 1-.114-.574v-1.011h-.5v-2.02h.5v-2.021h-.5v-2.021h.5v-2.021h-.5v-2.02h.5v-2.022h-.5v-2.02h.5v-2.022h-.5v-2.02h.5V80.07h-.5V78.05h.5v-2.021h-.5v-2.02h.5v-2.022h-.5v-2.02h.5v-2.021h-.5v-2.021h.5v-2.021h-.5v-2.021h.5v-2.02h-.5V57.84h.5v-2.02h-.5V53.8h.5v-2.021h-.5v-2.021h.5v-2.021h-.5v-2.021h.5v-2.02h-.5v-2.022h.5v-2.02h-.5v-2.022h.5v-2.02h-.5V33.59h.5V31.57h-.5v-2.021h.5v-2.02h-.5v-2.022h.5v-2.02h-.5v-2.021h.5v-2.021h-.5v-2.021h.5v-2.021h-.5v-2.02h.5v-1.011c0-.205.04-.398.114-.574l-.462-.192c.203-.489.594-.88 1.083-1.083l.191.462c.176-.073.37-.113.574-.113h1.014v-.5h2.028v.5h2.029v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.029v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.029v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.029v-.5h2.028v.5h2.028v-.5h2.028v.5h1.014c.204 0 .398.04.574.113l.191-.462c.489.203.88.594 1.083 1.083l-.462.192c.073.176.114.37.114.574v1.01h.5v2.021h-.5v2.02h.5v2.022h-.5v2.02h.5v2.021h-.5v2.021h.5v2.021h-.5v2.021h.5v2.02h-.5v2.022h.5v2.02h-.5v2.022h.5v2.02h-.5v2.021h.5v2.021h-.5v2.021h.5v2.02h-.5v2.022h.5v2.02h-.5V53.8h.5v2.021h-.5v2.021h.5v2.021h-.5v2.02h.5v2.022h-.5v2.02h.5v2.021h-.5v2.021h.5v2.021h-.5v2.021h.5v2.021h-.5v2.02h.5v2.022h-.5v2.02h.5v2.022h-.5v2.02h.5v2.021h-.5v2.021h.5v2.021h-.5v2.02h.5v2.022h-.5v2.02h.5v2.021h-.5v1.011c0 .204-.041.398-.114.574l.462.191a2.01 2.01 0 0 1-1.083 1.083l-.191-.462c-.176.073-.37.114-.574.114h-1.014v.5h-2.028v-.5h-2.028v.5h-2.029v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.029v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5H90.07v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5H79.93v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5H69.79v-.5H67.76v.5h-2.028v-.5h-2.028v.5h-2.028v-.5H59.65v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5H47.48v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5H37.34v-.5h-2.029v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-1.014c-.204 0-.398-.041-.574-.114l-.191.462Z"}),s.jsx("mask",{id:"d",fill:"#fff",children:s.jsx("path",{d:"M0 114h170v20H0v-20Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M0 114h170v20H0v-20Z"}),s.jsx("path",{fill:"#5D5D5D",d:"M0 115h170v-2H0v2Z",mask:"url(#d)"})]}),s.jsx("rect",{width:169,height:133,x:.5,y:.5,stroke:"#5D5D5D",rx:5.5}),s.jsx("path",{fill:"#36AA6C",d:"M114.756 28.708H55.244c-1.427 0-2.584 1.512-2.584 3.377v49.491c0 1.866 1.157 3.378 2.584 3.378h59.512c1.427 0 2.584-1.512 2.584-3.378v-49.49c0-1.866-1.157-3.378-2.584-3.378Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M98.8 37.185a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833ZM104.076 37.185a1.417 1.417 0 1 0 0-2.834 1.417 1.417 0 0 0 0 2.834Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M109.351 37.185a1.417 1.417 0 1 0 0-2.834 1.417 1.417 0 0 0 0 2.834Z"}),s.jsx("path",{fill:"#3C3E3F",stroke:"#4B4E4F",strokeMiterlimit:10,d:"M10.804 18.367H43.32c.192 0 .409.105.595.358s.316.627.316 1.061v28.126c0 .434-.13.808-.316 1.06-.186.254-.403.36-.595.36H10.803c-.193 0-.41-.106-.595-.36-.186-.252-.317-.626-.317-1.06V19.786c0-.434.13-.808.317-1.06.186-.254.402-.36.595-.36Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M26.192 26.344a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833ZM31.468 26.344a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M36.743 26.344a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833Z"}),s.jsx("path",{fill:"#3C3E3F",stroke:"#4B4E4F",strokeMiterlimit:10,d:"M126.63 18.367h32.517c.192 0 .409.105.595.358s.316.627.316 1.061v28.126c0 .434-.13.808-.316 1.06-.186.254-.403.36-.595.36H126.63c-.193 0-.409-.106-.595-.36-.186-.252-.317-.626-.317-1.06V19.786c0-.434.131-.808.317-1.06.186-.254.402-.36.595-.36Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M142.019 26.344a1.416 1.416 0 1 0 0-2.832 1.416 1.416 0 0 0 0 2.832ZM147.294 26.344a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M152.569 26.344a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833Z"}),s.jsx("path",{fill:"#3C3E3F",stroke:"#4B4E4F",strokeMiterlimit:10,d:"M10.804 63.694H43.32c.192 0 .409.106.595.359s.316.626.316 1.061v28.125c0 .435-.13.808-.316 1.061-.186.254-.403.359-.595.359H10.803c-.193 0-.41-.106-.595-.359-.186-.253-.317-.626-.317-1.06V65.113c0-.435.13-.808.317-1.061.186-.253.402-.358.595-.358Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M27.192 71.672a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833ZM32.468 71.672a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M37.743 71.672a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833Z"}),s.jsx("path",{fill:"#3C3E3F",stroke:"#4B4E4F",strokeMiterlimit:10,d:"M126.63 63.694h32.517c.192 0 .409.106.595.359s.316.626.316 1.061v28.125c0 .435-.13.808-.316 1.061-.186.254-.403.359-.595.359H126.63c-.193 0-.409-.106-.595-.359s-.317-.626-.317-1.06V65.113c0-.435.131-.808.317-1.061.186-.253.402-.358.595-.358Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M143.019 71.672a1.416 1.416 0 1 0 0-2.833 1.416 1.416 0 0 0 0 2.833ZM148.294 71.672a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M153.569 71.672a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833Z"}),s.jsx("path",{fill:"#fff",d:"M49.318 40.488h5.836a.486.486 0 1 0 0-.973h-5.836a.486.486 0 1 0 0 .973Z"}),s.jsx("path",{fill:"#fff",d:"M44.318 40.488h5.836a.486.486 0 1 0 0-.973h-5.836a.486.486 0 1 0 0 .973Z"}),s.jsx("path",{fill:"#fff",d:"M44.482 40.488h-5.836a.486.486 0 1 1 0-.973h5.836a.486.486 0 1 1 0 .973ZM60.597 40.004l-3.255-3.255a.486.486 0 1 1 .688-.688l3.6 3.6c.19.19.19.497 0 .687l-3.594 3.593a.486.486 0 1 1-.688-.688l3.25-3.249Z"}),s.jsx("path",{fill:"#3BB272",d:"M32.147 36.709a3.375 3.375 0 1 1 0 6.75 3.375 3.375 0 0 1 0-6.75Z"}),s.jsx("path",{fill:"#fff",d:"M134.062 65.808v-5.836a.487.487 0 0 0-.973 0v5.836a.486.486 0 1 0 .973 0Z"}),s.jsx("path",{fill:"#fff",d:"M134.062 70.808v-5.836a.487.487 0 0 0-.973 0v5.837a.486.486 0 1 0 .973 0Z"}),s.jsx("path",{fill:"#fff",d:"M134.062 70.644v5.836a.487.487 0 0 1-.973 0v-5.836a.486.486 0 1 1 .973 0ZM133.578 54.529l-3.255 3.255a.487.487 0 0 1-.688-.688l3.599-3.599c.19-.19.498-.19.688 0l3.593 3.593a.486.486 0 1 1-.688.688l-3.249-3.249Z"}),s.jsx("path",{fill:"#AAB0B0",d:"M130.282 82.98a3.376 3.376 0 1 1 6.752 0 3.376 3.376 0 0 1-6.752 0Z"})]}),s.jsxs("defs",{children:[s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 0h170v134H0z"})}),s.jsx("clipPath",{id:"b",children:s.jsx("rect",{width:170,height:134,fill:"#fff",rx:6})}),s.jsxs("linearGradient",{id:"c",x1:20.715,x2:62.592,y1:6.956,y2:110.839,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#313131"}),s.jsx("stop",{offset:1,stopColor:"#1B1B1B"})]})]})]}),aa=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:170,height:134,fill:"none",...t,children:[s.jsxs("g",{clipPath:"url(#a)",children:[s.jsxs("g",{clipPath:"url(#b)",children:[s.jsx("path",{fill:"url(#c)",d:"M0 0h170v114H0z"}),s.jsx("mask",{id:"d",fill:"#fff",children:s.jsx("path",{d:"M0 114h170v20H0v-20Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M0 114h170v20H0v-20Z"}),s.jsx("path",{fill:"#5D5D5D",d:"M0 115h170v-2H0v2Z",mask:"url(#d)"})]}),s.jsx("rect",{width:169,height:133,x:.5,y:.5,stroke:"#5D5D5D",rx:5.5}),s.jsx("path",{fill:"#DE2122",d:"M79.593 28.399c2.403-4.163 8.411-4.163 10.814 0l29.741 51.512c2.403 4.162-.601 9.366-5.407 9.366H55.259c-4.806 0-7.81-5.204-5.407-9.366l29.74-51.512Z"}),s.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M81.84 42.528h6.321a1 1 0 0 1 .994 1.113l-2.691 23.67a1 1 0 0 1-.994.887h-1.033a1 1 0 0 1-.994-.89l-2.596-23.671a1 1 0 0 1 .994-1.11Zm3.128 30.366a3.547 3.547 0 1 0 0 7.093 3.547 3.547 0 0 0 0-7.093Z",clipRule:"evenodd"}),s.jsx("path",{fill:"#5A5C5C",d:"M115.69 27.082 132.459.185l17.514-.151-25.545 24.389 17.858 23.176-25.076 13.678L131.267 47.6 115.69 27.082Z"})]}),s.jsxs("defs",{children:[s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 0h170v134H0z"})}),s.jsx("clipPath",{id:"b",children:s.jsx("rect",{width:170,height:134,fill:"#fff",rx:6})}),s.jsxs("linearGradient",{id:"c",x1:20.715,x2:62.592,y1:6.956,y2:110.839,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#313131"}),s.jsx("stop",{offset:1,stopColor:"#1B1B1B"})]})]})]}),ca={edgeNotificationsPermissionTimeout:15e3},re={WINDOW_MANAGEMENT:qe.WINDOW_MANAGEMENT,NOTIFICATIONS:qe.NOTIFICATIONS,POPUPS:"popups",PWA_INSTALL:"pwa-install"},la={name:re.WINDOW_MANAGEMENT,label:`Allow window management${Zt?"":" (not available in your browser)"}`,heading:"Allow Window Management",description:`By granting this permission you will be able to restore layouts containing multiple
19
19
  windows and share context data between opened windows.`,instructions:{initial:"Click “Allow” when the browser prompt appears.",additional:`It seems that you closed the permission prompt.
20
20
  Click the "Open permissions prompt" button again and grant the Window Management
21
- permission to allow the platform to function properly.`},Image:aa,actionBtnText:"Open permission prompt"},ua={name:re.NOTIFICATIONS,label:"Allow browser notifications",heading:"Allow Browser Notifications",description:`By granting this permission you will be able to receive platform notifications in the notification center of your
21
+ permission to allow the platform to function properly.`},Image:sa,actionBtnText:"Open permission prompt"},ua={name:re.NOTIFICATIONS,label:"Allow browser notifications",heading:"Allow Browser Notifications",description:`By granting this permission you will be able to receive platform notifications in the notification center of your
22
22
  operating system.`,instructions:{initial:"Click “Allow” when the browser prompt appears.",additional:`It seems that you closed the permission prompt or your browser automatically blocks notifications.
23
23
  To allow browser notifications, go to your browser settings or click the "Bell" icon
24
- in the address bar and allow notifications for this site.`},Image:ea,actionBtnText:"Open permission prompt"},da={name:re.POPUPS,label:"Allow pop-ups",heading:"Allow Pop-ups",description:"By granting this permission you will be able to eject apps from workspaces and save them as part of a layout.",instructions:{initial:`Click the "Test Pop-Up Settings" button. It should open two pop-ups in order to test the
24
+ in the address bar and allow notifications for this site.`},Image:ra,actionBtnText:"Open permission prompt"},da={name:re.POPUPS,label:"Allow pop-ups",heading:"Allow Pop-ups",description:"By granting this permission you will be able to eject apps from workspaces and save them as part of a layout.",instructions:{initial:`Click the "Test Pop-Up Settings" button. It should open two pop-ups in order to test the
25
25
  browser pop-up settings.`,additional:`It seems that pop-ups are disabled in your browser.
26
26
  To allow pop-ups, go to your browser settings or click the "Pop-up blocked" icon
27
- in the address bar and allow pop-ups for this site.`},Image:oa,actionBtnText:"Test pop-up settings"},fa={name:re.PWA_INSTALL,label:"Install as a PWA",heading:"Install as a PWA (optional)",description:"By installing the platform as a Progressive Web App you will get a similar experience as with native desktop apps.",instructions:{initial:"If your browser supports Progressive Web Apps, you can now install the platform as a PWA."},Image:ia,actionBtnText:"Continue to the platform"},en=[la,ua,da,fa],Yt={isCompleted:!1,state:"prompt"},pa={[re.WINDOW_MANAGEMENT]:Yt,[re.NOTIFICATIONS]:Yt,[re.POPUPS]:Yt,[re.PWA_INSTALL]:Yt},ha=t=>{const{permission:e}=Be(),n=Vt&&e.statuses[re.WINDOW_MANAGEMENT]?.state==="granted",[r,o]=y.useState(null),[i,c]=_e("sessionStorage",zo,Qo),a=y.useRef(!1),l=hr(),u=pr(),d=y.useContext(ee.IOConnectContext),p=y.useCallback(async({name:f})=>{try{await d.layouts.setDefaultGlobal(f),o({name:f})}catch(h){console.error("Failed to set default layout: ",{error:h})}},[d]);return y.useEffect(()=>{if(!d||!window.iobrowser?.platformStarted||a.current)return;(async()=>{a.current=!0;const h=await d.layouts.getDefaultGlobal()||await d.layouts.get(ei,"Global");if(!h||(o({name:h.name}),i))return;if(t(!0),n){await l(h.name,c),t(!1);return}const m=await d.workspaces?.getWorkspace(v=>v.children.length===0),g=Js(h);Promise.all(g.map((v,w)=>u({id:v,reuseWorkspaceId:w===0?m?.id:void 0}))),c(h),t(!1)})()},[d,i,l,c,t,u,n]),{defaultLayout:r,selectedLayout:i,setDefaultLayout:p,setSelectedLayout:c}},ri=y.createContext(void 0),st=()=>{const t=y.useContext(ri);if(t===void 0)throw new Error("useLaunchpadAPI must be used within a LaunchpadAPIProvider");return t},ma=({children:t,setOpen:e,isOpen:n})=>{const[r,o]=y.useState(!1),{defaultLayout:i,selectedLayout:c,setDefaultLayout:a,setSelectedLayout:l}=ha(o),d={close:y.useCallback(()=>e(!1),[e]),isOpen:n,defaultLayout:i,selectedLayout:c,setDefaultLayout:a,setSelectedLayout:l,isLayoutOperationBlocked:r,setIsLayoutOperationBlocked:o};return s.jsx(ri.Provider,{value:d,children:t})},oi=()=>{const{isLayoutOperationBlocked:t,setIsLayoutOperationBlocked:e}=st();return async n=>{if(!t){e(!0);try{await n()}catch(r){console.error(r)}e(!1)}}};var an={},ga={get exports(){return an},set exports(t){an=t}};(function(t,e){(function(n,r){var o="1.0.35",i="",c="?",a="function",l="undefined",u="object",d="string",p="major",f="model",h="name",m="type",g="vendor",v="version",w="architecture",j="console",O="mobile",x="tablet",b="smarttv",k="wearable",_="embedded",S=350,P="Amazon",L="Apple",Z="ASUS",ie="BlackBerry",te="Browser",le="Chrome",we="Edge",J="Firefox",ne="Google",Oe="Huawei",ge="LG",E="Microsoft",I="Motorola",R="Opera",D="Samsung",N="Sharp",M="Sony",A="Xiaomi",F="Zebra",B="Facebook",G="Chromium OS",z="Mac OS",se=function(V,K){var U={};for(var Q in V)K[Q]&&K[Q].length%2===0?U[Q]=K[Q].concat(V[Q]):U[Q]=V[Q];return U},T=function(V){for(var K={},U=0;U<V.length;U++)K[V[U].toUpperCase()]=V[U];return K},me=function(V,K){return typeof V===d?je(K).indexOf(je(V))!==-1:!1},je=function(V){return V.toLowerCase()},ct=function(V){return typeof V===d?V.replace(/[^\d\.]/g,i).split(".")[0]:r},lt=function(V,K){if(typeof V===d)return V=V.replace(/^\s\s*/,i),typeof K===l?V:V.substring(0,S)},Ve=function(V,K){for(var U=0,Q,Ge,Ae,q,W,Le;U<K.length&&!W;){var jn=K[U],Zr=K[U+1];for(Q=Ge=0;Q<jn.length&&!W&&jn[Q];)if(W=jn[Q++].exec(V),W)for(Ae=0;Ae<Zr.length;Ae++)Le=W[++Ge],q=Zr[Ae],typeof q===u&&q.length>0?q.length===2?typeof q[1]==a?this[q[0]]=q[1].call(this,Le):this[q[0]]=q[1]:q.length===3?typeof q[1]===a&&!(q[1].exec&&q[1].test)?this[q[0]]=Le?q[1].call(this,Le,q[2]):r:this[q[0]]=Le?Le.replace(q[1],q[2]):r:q.length===4&&(this[q[0]]=Le?q[3].call(this,Le.replace(q[1],q[2])):r):this[q]=Le||r;U+=2}},St=function(V,K){for(var U in K)if(typeof K[U]===u&&K[U].length>0){for(var Q=0;Q<K[U].length;Q++)if(me(K[U][Q],V))return U===c?r:U}else if(me(K[U],V))return U===c?r:U;return V},On={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Ne={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"},Je={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,R+" Mini"]],[/\bopr\/([\w\.]+)/i],[v,[h,R]],[/(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"+te]],[/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 "+te],v],[/\bfocus\/([\w\.]+)/i],[v,[h,J+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[h,R+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[h,R+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[h,"MIUI "+te]],[/fxios\/([-\w\.]+)/i],[v,[h,J]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+te]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+te],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,B],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,le+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,le+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[h,"Android "+te]],[/(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,St,On]],[/(webkit|khtml)\/([\w\.]+)/i],[h,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[h,J+" 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],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,je]],[/((?:i[346]|x)86)[;\)]/i],[[w,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[w,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[w,"armhf"]],[/windows (ce|mobile); ppc;/i],[[w,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[w,/ower/,i,je]],[/(sun4\w)[;\)]/i],[[w,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[w,je]]],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,[g,D],[m,x]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[g,D],[m,O]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[g,L],[m,O]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[g,L],[m,x]],[/(macintosh);/i],[f,[g,L]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[g,N],[m,O]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[g,Oe],[m,x]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[g,Oe],[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],[[f,/_/g," "],[g,A],[m,O]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[g,A],[m,x]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[g,"OPPO"],[m,O]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[g,"Vivo"],[m,O]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[g,"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],[f,[g,I],[m,O]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[g,I],[m,x]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[g,ge],[m,x]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[g,ge],[m,O]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[g,"Lenovo"],[m,x]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[g,"Nokia"],[m,O]],[/(pixel c)\b/i],[f,[g,ne],[m,x]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[g,ne],[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],[f,[g,M],[m,O]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[g,M],[m,x]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[g,"OnePlus"],[m,O]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[g,P],[m,x]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[g,P],[m,O]],[/(playbook);[-\w\),; ]+(rim)/i],[f,g,[m,x]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[g,ie],[m,O]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[g,Z],[m,x]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[g,Z],[m,O]],[/(nexus 9)/i],[f,[g,"HTC"],[m,x]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[f,/_/g," "],[m,O]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[g,"Acer"],[m,x]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[g,"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],[g,f,[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],[g,f,[m,x]],[/(surface duo)/i],[f,[g,E],[m,x]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[g,"Fairphone"],[m,O]],[/(u304aa)/i],[f,[g,"AT&T"],[m,O]],[/\bsie-(\w*)/i],[f,[g,"Siemens"],[m,O]],[/\b(rct\w+) b/i],[f,[g,"RCA"],[m,x]],[/\b(venue[\d ]{2,7}) b/i],[f,[g,"Dell"],[m,x]],[/\b(q(?:mv|ta)\w+) b/i],[f,[g,"Verizon"],[m,x]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[g,"Barnes & Noble"],[m,x]],[/\b(tm\d{3}\w+) b/i],[f,[g,"NuVision"],[m,x]],[/\b(k88) b/i],[f,[g,"ZTE"],[m,x]],[/\b(nx\d{3}j) b/i],[f,[g,"ZTE"],[m,O]],[/\b(gen\d{3}) b.+49h/i],[f,[g,"Swiss"],[m,O]],[/\b(zur\d{3}) b/i],[f,[g,"Swiss"],[m,x]],[/\b((zeki)?tb.*\b) b/i],[f,[g,"Zeki"],[m,x]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],f,[m,x]],[/\b(ns-?\w{0,9}) b/i],[f,[g,"Insignia"],[m,x]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[g,"NextBook"],[m,x]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],f,[m,O]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],f,[m,O]],[/\b(ph-1) /i],[f,[g,"Essential"],[m,O]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[g,"Envizen"],[m,x]],[/\b(trio[-\w\. ]+) b/i],[f,[g,"MachSpeed"],[m,x]],[/\btu_(1491) b/i],[f,[g,"Rotor"],[m,x]],[/(shield[\w ]+) b/i],[f,[g,"Nvidia"],[m,x]],[/(sprint) (\w+)/i],[g,f,[m,O]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[g,E],[m,O]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[g,F],[m,x]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[g,F],[m,O]],[/smart-tv.+(samsung)/i],[g,[m,b]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[g,D],[m,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,ge],[m,b]],[/(apple) ?tv/i],[g,[f,L+" TV"],[m,b]],[/crkey/i],[[f,le+"cast"],[g,ne],[m,b]],[/droid.+aft(\w)( bui|\))/i],[f,[g,P],[m,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[g,N],[m,b]],[/(bravia[\w ]+)( bui|\))/i],[f,[g,M],[m,b]],[/(mitv-\w{5}) bui/i],[f,[g,A],[m,b]],[/Hbbtv.*(technisat) (.*);/i],[g,f,[m,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,lt],[f,lt],[m,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,f,[m,j]],[/droid.+; (shield) bui/i],[f,[g,"Nvidia"],[m,j]],[/(playstation [345portablevi]+)/i],[f,[g,M],[m,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[g,E],[m,j]],[/((pebble))app/i],[g,f,[m,k]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[g,L],[m,k]],[/droid.+; (glass) \d/i],[f,[g,ne],[m,k]],[/droid.+; (wt63?0{2,3})\)/i],[f,[g,F],[m,k]],[/(quest( 2| pro)?)/i],[f,[g,B],[m,k]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[m,_]],[/(aeobc)\b/i],[f,[g,P],[m,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[m,O]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[m,x]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,x]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,O]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[h,we+"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,St,Ne]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[v,St,Ne]],[/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,z],[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,ie]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[h,J+" 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,le+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,G],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]]},ve=function(V,K){if(typeof V===u&&(K=V,V=r),!(this instanceof ve))return new ve(V,K).getResult();var U=typeof n!==l&&n.navigator?n.navigator:r,Q=V||(U&&U.userAgent?U.userAgent:i),Ge=U&&U.userAgentData?U.userAgentData:r,Ae=K?se(Je,K):Je,q=U&&U.userAgent==Q;return this.getBrowser=function(){var W={};return W[h]=r,W[v]=r,Ve.call(W,Q,Ae.browser),W[p]=ct(W[v]),q&&U&&U.brave&&typeof U.brave.isBrave==a&&(W[h]="Brave"),W},this.getCPU=function(){var W={};return W[w]=r,Ve.call(W,Q,Ae.cpu),W},this.getDevice=function(){var W={};return W[g]=r,W[f]=r,W[m]=r,Ve.call(W,Q,Ae.device),q&&!W[m]&&Ge&&Ge.mobile&&(W[m]=O),q&&W[f]=="Macintosh"&&U&&typeof U.standalone!==l&&U.maxTouchPoints&&U.maxTouchPoints>2&&(W[f]="iPad",W[m]=x),W},this.getEngine=function(){var W={};return W[h]=r,W[v]=r,Ve.call(W,Q,Ae.engine),W},this.getOS=function(){var W={};return W[h]=r,W[v]=r,Ve.call(W,Q,Ae.os),q&&!W[h]&&Ge&&Ge.platform!="Unknown"&&(W[h]=Ge.platform.replace(/chrome os/i,G).replace(/macos/i,z)),W},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 Q},this.setUA=function(W){return Q=typeof W===d&&W.length>S?lt(W,S):W,this},this.setUA(Q),this};ve.VERSION=o,ve.BROWSER=T([h,v,p]),ve.CPU=T([w]),ve.DEVICE=T([f,g,m,j,O,b,x,k,_]),ve.ENGINE=ve.OS=T([h,v]),t.exports&&(e=t.exports=ve),e.UAParser=ve;var Fe=typeof n!==l&&(n.jQuery||n.Zepto);if(Fe&&!Fe.ua){var ze=new ve;Fe.ua=ze.getResult(),Fe.ua.get=function(){return ze.getUA()},Fe.ua.set=function(V){ze.setUA(V);var K=ze.getResult();for(var U in K)Fe.ua[U]=K[U]}}})(typeof window=="object"?window:as)})(ga,an);const va=new an.UAParser,ya=()=>Ke.useMemo(()=>va.getBrowser(),[]);var Vr=function(e){return e.reduce(function(n,r){var o=r[0],i=r[1];return n[o]=i,n},{})},zr=typeof window<"u"&&window.document&&window.document.createElement?Ke.useLayoutEffect:Ke.useEffect,ye="top",Se="bottom",ke="right",be="left",gn="auto",zt=[ye,Se,ke,be],xt="start",Ft="end",ba="clippingParents",ii="viewport",It="popper",wa="reference",Gr=zt.reduce(function(t,e){return t.concat([e+"-"+xt,e+"-"+Ft])},[]),si=[].concat(zt,[gn]).reduce(function(t,e){return t.concat([e,e+"-"+xt,e+"-"+Ft])},[]),xa="beforeRead",Ca="read",Oa="afterRead",ja="beforeMain",Ea="main",Sa="afterMain",ka="beforeWrite",Ta="write",Ia="afterWrite",Vn=[xa,Ca,Oa,ja,Ea,Sa,ka,Ta,Ia];function De(t){return t?(t.nodeName||"").toLowerCase():null}function Te(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function it(t){var e=Te(t).Element;return t instanceof e||t instanceof Element}function Ce(t){var e=Te(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function mr(t){if(typeof ShadowRoot>"u")return!1;var e=Te(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function _a(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!Ce(i)||!De(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(c){var a=o[c];a===!1?i.removeAttribute(c):i.setAttribute(c,a===!0?"":a)}))})}function Pa(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},c=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=c.reduce(function(l,u){return l[u]="",l},{});!Ce(o)||!De(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Na={name:"applyStyles",enabled:!0,phase:"write",fn:_a,effect:Pa,requires:["computeStyles"]};function Ie(t){return t.split("-")[0]}var ot=Math.max,cn=Math.min,Ct=Math.round;function zn(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ai(){return!/^((?!chrome|android).)*safari/i.test(zn())}function Ot(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&Ce(t)&&(o=t.offsetWidth>0&&Ct(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Ct(r.height)/t.offsetHeight||1);var c=it(t)?Te(t):window,a=c.visualViewport,l=!ai()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,d=(r.top+(l&&a?a.offsetTop:0))/i,p=r.width/o,f=r.height/i;return{width:p,height:f,top:d,right:u+p,bottom:d+f,left:u,x:u,y:d}}function gr(t){var e=Ot(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function ci(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&mr(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pe(t){return Te(t).getComputedStyle(t)}function Aa(t){return["table","td","th"].indexOf(De(t))>=0}function Ye(t){return((it(t)?t.ownerDocument:t.document)||window.document).documentElement}function vn(t){return De(t)==="html"?t:t.assignedSlot||t.parentNode||(mr(t)?t.host:null)||Ye(t)}function $r(t){return!Ce(t)||Pe(t).position==="fixed"?null:t.offsetParent}function La(t){var e=/firefox/i.test(zn()),n=/Trident/i.test(zn());if(n&&Ce(t)){var r=Pe(t);if(r.position==="fixed")return null}var o=vn(t);for(mr(o)&&(o=o.host);Ce(o)&&["html","body"].indexOf(De(o))<0;){var i=Pe(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Gt(t){for(var e=Te(t),n=$r(t);n&&Aa(n)&&Pe(n).position==="static";)n=$r(n);return n&&(De(n)==="html"||De(n)==="body"&&Pe(n).position==="static")?e:n||La(t)||e}function vr(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Rt(t,e,n){return ot(t,cn(e,n))}function Ra(t,e,n){var r=Rt(t,e,n);return r>n?n:r}function li(){return{top:0,right:0,bottom:0,left:0}}function ui(t){return Object.assign({},li(),t)}function di(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Ma=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,ui(typeof e!="number"?e:di(e,zt))};function Da(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,c=n.modifiersData.popperOffsets,a=Ie(n.placement),l=vr(a),u=[be,ke].indexOf(a)>=0,d=u?"height":"width";if(!(!i||!c)){var p=Ma(o.padding,n),f=gr(i),h=l==="y"?ye:be,m=l==="y"?Se:ke,g=n.rects.reference[d]+n.rects.reference[l]-c[l]-n.rects.popper[d],v=c[l]-n.rects.reference[l],w=Gt(i),j=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,O=g/2-v/2,x=p[h],b=j-f[d]-p[m],k=j/2-f[d]/2+O,_=Rt(x,k,b),S=l;n.modifiersData[r]=(e={},e[S]=_,e.centerOffset=_-k,e)}}function Fa(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;if(o!=null&&!(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(Ce(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(" "))),!ci(e.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}e.elements.arrow=o}}const Ua={name:"arrow",enabled:!0,phase:"main",fn:Da,effect:Fa,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jt(t){return t.split("-")[1]}var Wa={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Za(t){var e=t.x,n=t.y,r=window,o=r.devicePixelRatio||1;return{x:Ct(e*o)/o||0,y:Ct(n*o)/o||0}}function Kr(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,c=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,p=t.isFixed,f=c.x,h=f===void 0?0:f,m=c.y,g=m===void 0?0:m,v=typeof d=="function"?d({x:h,y:g}):{x:h,y:g};h=v.x,g=v.y;var w=c.hasOwnProperty("x"),j=c.hasOwnProperty("y"),O=be,x=ye,b=window;if(u){var k=Gt(n),_="clientHeight",S="clientWidth";if(k===Te(n)&&(k=Ye(n),Pe(k).position!=="static"&&a==="absolute"&&(_="scrollHeight",S="scrollWidth")),k=k,o===ye||(o===be||o===ke)&&i===Ft){x=Se;var P=p&&k===b&&b.visualViewport?b.visualViewport.height:k[_];g-=P-r.height,g*=l?1:-1}if(o===be||(o===ye||o===Se)&&i===Ft){O=ke;var L=p&&k===b&&b.visualViewport?b.visualViewport.width:k[S];h-=L-r.width,h*=l?1:-1}}var Z=Object.assign({position:a},u&&Wa),ie=d===!0?Za({x:h,y:g}):{x:h,y:g};if(h=ie.x,g=ie.y,l){var te;return Object.assign({},Z,(te={},te[x]=j?"0":"",te[O]=w?"0":"",te.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",te))}return Object.assign({},Z,(e={},e[x]=j?g+"px":"",e[O]=w?h+"px":"",e.transform="",e))}function Ba(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,c=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a;if(process.env.NODE_ENV!=="production"){var u=Pe(e.elements.popper).transitionProperty||"";c&&["transform","top","right","bottom","left"].some(function(p){return u.indexOf(p)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
27
+ in the address bar and allow pop-ups for this site.`},Image:oa,actionBtnText:"Test pop-up settings"},fa={name:re.PWA_INSTALL,label:"Install as a PWA",heading:"Install as a PWA (optional)",description:"By installing the platform as a Progressive Web App you will get a similar experience as with native desktop apps.",instructions:{initial:"If your browser supports Progressive Web Apps, you can now install the platform as a PWA."},Image:ia,actionBtnText:"Continue to the platform"},en=[la,ua,da,fa],Yt={isCompleted:!1,state:"prompt"},pa={[re.WINDOW_MANAGEMENT]:Yt,[re.NOTIFICATIONS]:Yt,[re.POPUPS]:Yt,[re.PWA_INSTALL]:Yt},ha=t=>{const{permission:e}=Ve(),n=Zt&&e.statuses[re.WINDOW_MANAGEMENT]?.state==="granted",[r,o]=b.useState(null),[i,c]=Ie("sessionStorage",Bo,Qo),a=b.useRef(!1),l=hr(),u=pr(),d=b.useContext(ee.IOConnectContext),p=b.useCallback(async({name:f})=>{try{await d.layouts.setDefaultGlobal(f),o({name:f})}catch(h){console.error("Failed to set default layout: ",{error:h})}},[d]);return b.useEffect(()=>{if(!d||!window.iobrowser?.platformStarted||a.current)return;(async()=>{a.current=!0;const h=await d.layouts.getDefaultGlobal()||await d.layouts.get(ei,"Global");if(!h||(o({name:h.name}),i))return;if(t(!0),n){await l(h.name,c),t(!1);return}const m=await d.workspaces?.getWorkspace(g=>g.children.length===0),v=Js(h);Promise.all(v.map((g,w)=>u({id:g,reuseWorkspaceId:w===0?m?.id:void 0}))),c(h),t(!1)})()},[d,i,l,c,t,u,n]),{defaultLayout:r,selectedLayout:i,setDefaultLayout:p,setSelectedLayout:c}},ri=b.createContext(void 0),st=()=>{const t=b.useContext(ri);if(t===void 0)throw new Error("useLaunchpadAPI must be used within a LaunchpadAPIProvider");return t},ma=({children:t,setOpen:e,isOpen:n})=>{const[r,o]=b.useState(!1),{defaultLayout:i,selectedLayout:c,setDefaultLayout:a,setSelectedLayout:l}=ha(o),d={close:b.useCallback(()=>e(!1),[e]),isOpen:n,defaultLayout:i,selectedLayout:c,setDefaultLayout:a,setSelectedLayout:l,isLayoutOperationBlocked:r,setIsLayoutOperationBlocked:o};return s.jsx(ri.Provider,{value:d,children:t})},oi=()=>{const{isLayoutOperationBlocked:t,setIsLayoutOperationBlocked:e}=st();return async n=>{if(!t){e(!0);try{await n()}catch(r){console.error(r)}e(!1)}}};var an={},va={get exports(){return an},set exports(t){an=t}};(function(t,e){(function(n,r){var o="1.0.35",i="",c="?",a="function",l="undefined",u="object",d="string",p="major",f="model",h="name",m="type",v="vendor",g="version",w="architecture",E="console",O="mobile",x="tablet",y="smarttv",k="wearable",I="embedded",j=350,_="Amazon",L="Apple",F="ASUS",ie="BlackBerry",te="Browser",le="Chrome",we="Edge",J="Firefox",ne="Google",Oe="Huawei",ve="LG",S="Microsoft",P="Motorola",R="Opera",D="Samsung",N="Sharp",M="Sony",A="Xiaomi",W="Zebra",V="Facebook",$="Chromium OS",B="Mac OS",se=function(Z,K){var H={};for(var Q in Z)K[Q]&&K[Q].length%2===0?H[Q]=K[Q].concat(Z[Q]):H[Q]=Z[Q];return H},T=function(Z){for(var K={},H=0;H<Z.length;H++)K[Z[H].toUpperCase()]=Z[H];return K},me=function(Z,K){return typeof Z===d?Ee(K).indexOf(Ee(Z))!==-1:!1},Ee=function(Z){return Z.toLowerCase()},ct=function(Z){return typeof Z===d?Z.replace(/[^\d\.]/g,i).split(".")[0]:r},lt=function(Z,K){if(typeof Z===d)return Z=Z.replace(/^\s\s*/,i),typeof K===l?Z:Z.substring(0,j)},Ze=function(Z,K){for(var H=0,Q,$e,Ae,q,U,Le;H<K.length&&!U;){var En=K[H],Fr=K[H+1];for(Q=$e=0;Q<En.length&&!U&&En[Q];)if(U=En[Q++].exec(Z),U)for(Ae=0;Ae<Fr.length;Ae++)Le=U[++$e],q=Fr[Ae],typeof q===u&&q.length>0?q.length===2?typeof q[1]==a?this[q[0]]=q[1].call(this,Le):this[q[0]]=q[1]:q.length===3?typeof q[1]===a&&!(q[1].exec&&q[1].test)?this[q[0]]=Le?q[1].call(this,Le,q[2]):r:this[q[0]]=Le?Le.replace(q[1],q[2]):r:q.length===4&&(this[q[0]]=Le?q[3].call(this,Le.replace(q[1],q[2])):r):this[q]=Le||r;H+=2}},jt=function(Z,K){for(var H in K)if(typeof K[H]===u&&K[H].length>0){for(var Q=0;Q<K[H].length;Q++)if(me(K[H][Q],Z))return H===c?r:H}else if(me(K[H],Z))return H===c?r:H;return Z},On={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Ne={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"},Je={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,g],[/opios[\/ ]+([\w\.]+)/i],[g,[h,R+" Mini"]],[/\bopr\/([\w\.]+)/i],[g,[h,R]],[/(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,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[h,"UC"+te]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[g,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[g,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+te],g],[/\bfocus\/([\w\.]+)/i],[g,[h,J+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[h,R+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[h,R+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[h,"MIUI "+te]],[/fxios\/([-\w\.]+)/i],[g,[h,J]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+te]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+te],g],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,g],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,V],g],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[h,le+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,le+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[h,"Android "+te]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[g,jt,On]],[/(webkit|khtml)\/([\w\.]+)/i],[h,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[h,J+" 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,g],[/(cobalt)\/([\w\.]+)/i],[h,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,Ee]],[/((?:i[346]|x)86)[;\)]/i],[[w,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[w,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[w,"armhf"]],[/windows (ce|mobile); ppc;/i],[[w,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[w,/ower/,i,Ee]],[/(sun4\w)[;\)]/i],[[w,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[w,Ee]]],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,[v,D],[m,x]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[v,D],[m,O]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[v,L],[m,O]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[v,L],[m,x]],[/(macintosh);/i],[f,[v,L]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[v,N],[m,O]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[v,Oe],[m,x]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[v,Oe],[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],[[f,/_/g," "],[v,A],[m,O]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[v,A],[m,x]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[v,"OPPO"],[m,O]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[v,"Vivo"],[m,O]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[v,"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],[f,[v,P],[m,O]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[v,P],[m,x]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[v,ve],[m,x]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[v,ve],[m,O]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[v,"Lenovo"],[m,x]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[v,"Nokia"],[m,O]],[/(pixel c)\b/i],[f,[v,ne],[m,x]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[v,ne],[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],[f,[v,M],[m,O]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[v,M],[m,x]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[v,"OnePlus"],[m,O]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[v,_],[m,x]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[v,_],[m,O]],[/(playbook);[-\w\),; ]+(rim)/i],[f,v,[m,x]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[v,ie],[m,O]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[v,F],[m,x]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[v,F],[m,O]],[/(nexus 9)/i],[f,[v,"HTC"],[m,x]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[v,[f,/_/g," "],[m,O]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[v,"Acer"],[m,x]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[v,"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],[v,f,[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],[v,f,[m,x]],[/(surface duo)/i],[f,[v,S],[m,x]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[v,"Fairphone"],[m,O]],[/(u304aa)/i],[f,[v,"AT&T"],[m,O]],[/\bsie-(\w*)/i],[f,[v,"Siemens"],[m,O]],[/\b(rct\w+) b/i],[f,[v,"RCA"],[m,x]],[/\b(venue[\d ]{2,7}) b/i],[f,[v,"Dell"],[m,x]],[/\b(q(?:mv|ta)\w+) b/i],[f,[v,"Verizon"],[m,x]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[v,"Barnes & Noble"],[m,x]],[/\b(tm\d{3}\w+) b/i],[f,[v,"NuVision"],[m,x]],[/\b(k88) b/i],[f,[v,"ZTE"],[m,x]],[/\b(nx\d{3}j) b/i],[f,[v,"ZTE"],[m,O]],[/\b(gen\d{3}) b.+49h/i],[f,[v,"Swiss"],[m,O]],[/\b(zur\d{3}) b/i],[f,[v,"Swiss"],[m,x]],[/\b((zeki)?tb.*\b) b/i],[f,[v,"Zeki"],[m,x]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[v,"Dragon Touch"],f,[m,x]],[/\b(ns-?\w{0,9}) b/i],[f,[v,"Insignia"],[m,x]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[v,"NextBook"],[m,x]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[v,"Voice"],f,[m,O]],[/\b(lvtel\-)?(v1[12]) b/i],[[v,"LvTel"],f,[m,O]],[/\b(ph-1) /i],[f,[v,"Essential"],[m,O]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[v,"Envizen"],[m,x]],[/\b(trio[-\w\. ]+) b/i],[f,[v,"MachSpeed"],[m,x]],[/\btu_(1491) b/i],[f,[v,"Rotor"],[m,x]],[/(shield[\w ]+) b/i],[f,[v,"Nvidia"],[m,x]],[/(sprint) (\w+)/i],[v,f,[m,O]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[v,S],[m,O]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[v,W],[m,x]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[v,W],[m,O]],[/smart-tv.+(samsung)/i],[v,[m,y]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[v,D],[m,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[v,ve],[m,y]],[/(apple) ?tv/i],[v,[f,L+" TV"],[m,y]],[/crkey/i],[[f,le+"cast"],[v,ne],[m,y]],[/droid.+aft(\w)( bui|\))/i],[f,[v,_],[m,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[v,N],[m,y]],[/(bravia[\w ]+)( bui|\))/i],[f,[v,M],[m,y]],[/(mitv-\w{5}) bui/i],[f,[v,A],[m,y]],[/Hbbtv.*(technisat) (.*);/i],[v,f,[m,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[v,lt],[f,lt],[m,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[v,f,[m,E]],[/droid.+; (shield) bui/i],[f,[v,"Nvidia"],[m,E]],[/(playstation [345portablevi]+)/i],[f,[v,M],[m,E]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[v,S],[m,E]],[/((pebble))app/i],[v,f,[m,k]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[v,L],[m,k]],[/droid.+; (glass) \d/i],[f,[v,ne],[m,k]],[/droid.+; (wt63?0{2,3})\)/i],[f,[v,W],[m,k]],[/(quest( 2| pro)?)/i],[f,[v,V],[m,k]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[v,[m,I]],[/(aeobc)\b/i],[f,[v,_],[m,I]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[m,O]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[m,x]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,x]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,O]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[v,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[h,we+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[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,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,g],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[g,jt,Ne]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[g,jt,Ne]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,B],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,g],[/\(bb(10);/i],[g,[h,ie]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[h,J+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[h,le+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,$],g],[/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,g],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,g]]},ge=function(Z,K){if(typeof Z===u&&(K=Z,Z=r),!(this instanceof ge))return new ge(Z,K).getResult();var H=typeof n!==l&&n.navigator?n.navigator:r,Q=Z||(H&&H.userAgent?H.userAgent:i),$e=H&&H.userAgentData?H.userAgentData:r,Ae=K?se(Je,K):Je,q=H&&H.userAgent==Q;return this.getBrowser=function(){var U={};return U[h]=r,U[g]=r,Ze.call(U,Q,Ae.browser),U[p]=ct(U[g]),q&&H&&H.brave&&typeof H.brave.isBrave==a&&(U[h]="Brave"),U},this.getCPU=function(){var U={};return U[w]=r,Ze.call(U,Q,Ae.cpu),U},this.getDevice=function(){var U={};return U[v]=r,U[f]=r,U[m]=r,Ze.call(U,Q,Ae.device),q&&!U[m]&&$e&&$e.mobile&&(U[m]=O),q&&U[f]=="Macintosh"&&H&&typeof H.standalone!==l&&H.maxTouchPoints&&H.maxTouchPoints>2&&(U[f]="iPad",U[m]=x),U},this.getEngine=function(){var U={};return U[h]=r,U[g]=r,Ze.call(U,Q,Ae.engine),U},this.getOS=function(){var U={};return U[h]=r,U[g]=r,Ze.call(U,Q,Ae.os),q&&!U[h]&&$e&&$e.platform!="Unknown"&&(U[h]=$e.platform.replace(/chrome os/i,$).replace(/macos/i,B)),U},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 Q},this.setUA=function(U){return Q=typeof U===d&&U.length>j?lt(U,j):U,this},this.setUA(Q),this};ge.VERSION=o,ge.BROWSER=T([h,g,p]),ge.CPU=T([w]),ge.DEVICE=T([f,v,m,E,O,y,x,k,I]),ge.ENGINE=ge.OS=T([h,g]),t.exports&&(e=t.exports=ge),e.UAParser=ge;var We=typeof n!==l&&(n.jQuery||n.Zepto);if(We&&!We.ua){var Be=new ge;We.ua=Be.getResult(),We.ua.get=function(){return Be.getUA()},We.ua.set=function(Z){Be.setUA(Z);var K=Be.getResult();for(var H in K)We.ua[H]=K[H]}}})(typeof window=="object"?window:as)})(va,an);const ga=new an.UAParser,ba=()=>Ke.useMemo(()=>ga.getBrowser(),[]);var Zr=function(e){return e.reduce(function(n,r){var o=r[0],i=r[1];return n[o]=i,n},{})},Br=typeof window<"u"&&window.document&&window.document.createElement?Ke.useLayoutEffect:Ke.useEffect,be="top",je="bottom",ke="right",ye="left",vn="auto",Bt=[be,je,ke,ye],xt="start",Wt="end",ya="clippingParents",ii="viewport",Pt="popper",wa="reference",$r=Bt.reduce(function(t,e){return t.concat([e+"-"+xt,e+"-"+Wt])},[]),si=[].concat(Bt,[vn]).reduce(function(t,e){return t.concat([e,e+"-"+xt,e+"-"+Wt])},[]),xa="beforeRead",Ca="read",Oa="afterRead",Ea="beforeMain",Sa="main",ja="afterMain",ka="beforeWrite",Ta="write",Pa="afterWrite",Zn=[xa,Ca,Oa,Ea,Sa,ja,ka,Ta,Pa];function De(t){return t?(t.nodeName||"").toLowerCase():null}function Te(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function it(t){var e=Te(t).Element;return t instanceof e||t instanceof Element}function Ce(t){var e=Te(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function mr(t){if(typeof ShadowRoot>"u")return!1;var e=Te(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Ia(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!Ce(i)||!De(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(c){var a=o[c];a===!1?i.removeAttribute(c):i.setAttribute(c,a===!0?"":a)}))})}function _a(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},c=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=c.reduce(function(l,u){return l[u]="",l},{});!Ce(o)||!De(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Na={name:"applyStyles",enabled:!0,phase:"write",fn:Ia,effect:_a,requires:["computeStyles"]};function Pe(t){return t.split("-")[0]}var ot=Math.max,cn=Math.min,Ct=Math.round;function Bn(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ai(){return!/^((?!chrome|android).)*safari/i.test(Bn())}function Ot(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&Ce(t)&&(o=t.offsetWidth>0&&Ct(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Ct(r.height)/t.offsetHeight||1);var c=it(t)?Te(t):window,a=c.visualViewport,l=!ai()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,d=(r.top+(l&&a?a.offsetTop:0))/i,p=r.width/o,f=r.height/i;return{width:p,height:f,top:d,right:u+p,bottom:d+f,left:u,x:u,y:d}}function vr(t){var e=Ot(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function ci(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&mr(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _e(t){return Te(t).getComputedStyle(t)}function Aa(t){return["table","td","th"].indexOf(De(t))>=0}function Ye(t){return((it(t)?t.ownerDocument:t.document)||window.document).documentElement}function gn(t){return De(t)==="html"?t:t.assignedSlot||t.parentNode||(mr(t)?t.host:null)||Ye(t)}function Gr(t){return!Ce(t)||_e(t).position==="fixed"?null:t.offsetParent}function La(t){var e=/firefox/i.test(Bn()),n=/Trident/i.test(Bn());if(n&&Ce(t)){var r=_e(t);if(r.position==="fixed")return null}var o=gn(t);for(mr(o)&&(o=o.host);Ce(o)&&["html","body"].indexOf(De(o))<0;){var i=_e(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function $t(t){for(var e=Te(t),n=Gr(t);n&&Aa(n)&&_e(n).position==="static";)n=Gr(n);return n&&(De(n)==="html"||De(n)==="body"&&_e(n).position==="static")?e:n||La(t)||e}function gr(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Rt(t,e,n){return ot(t,cn(e,n))}function Ra(t,e,n){var r=Rt(t,e,n);return r>n?n:r}function li(){return{top:0,right:0,bottom:0,left:0}}function ui(t){return Object.assign({},li(),t)}function di(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Ma=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,ui(typeof e!="number"?e:di(e,Bt))};function Da(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,c=n.modifiersData.popperOffsets,a=Pe(n.placement),l=gr(a),u=[ye,ke].indexOf(a)>=0,d=u?"height":"width";if(!(!i||!c)){var p=Ma(o.padding,n),f=vr(i),h=l==="y"?be:ye,m=l==="y"?je:ke,v=n.rects.reference[d]+n.rects.reference[l]-c[l]-n.rects.popper[d],g=c[l]-n.rects.reference[l],w=$t(i),E=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,O=v/2-g/2,x=p[h],y=E-f[d]-p[m],k=E/2-f[d]/2+O,I=Rt(x,k,y),j=l;n.modifiersData[r]=(e={},e[j]=I,e.centerOffset=I-k,e)}}function Wa(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;if(o!=null&&!(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(Ce(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(" "))),!ci(e.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}e.elements.arrow=o}}const Ha={name:"arrow",enabled:!0,phase:"main",fn:Da,effect:Wa,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Et(t){return t.split("-")[1]}var Ua={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fa(t){var e=t.x,n=t.y,r=window,o=r.devicePixelRatio||1;return{x:Ct(e*o)/o||0,y:Ct(n*o)/o||0}}function Kr(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,c=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,p=t.isFixed,f=c.x,h=f===void 0?0:f,m=c.y,v=m===void 0?0:m,g=typeof d=="function"?d({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var w=c.hasOwnProperty("x"),E=c.hasOwnProperty("y"),O=ye,x=be,y=window;if(u){var k=$t(n),I="clientHeight",j="clientWidth";if(k===Te(n)&&(k=Ye(n),_e(k).position!=="static"&&a==="absolute"&&(I="scrollHeight",j="scrollWidth")),k=k,o===be||(o===ye||o===ke)&&i===Wt){x=je;var _=p&&k===y&&y.visualViewport?y.visualViewport.height:k[I];v-=_-r.height,v*=l?1:-1}if(o===ye||(o===be||o===je)&&i===Wt){O=ke;var L=p&&k===y&&y.visualViewport?y.visualViewport.width:k[j];h-=L-r.width,h*=l?1:-1}}var F=Object.assign({position:a},u&&Ua),ie=d===!0?Fa({x:h,y:v}):{x:h,y:v};if(h=ie.x,v=ie.y,l){var te;return Object.assign({},F,(te={},te[x]=E?"0":"",te[O]=w?"0":"",te.transform=(y.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",te))}return Object.assign({},F,(e={},e[x]=E?v+"px":"",e[O]=w?h+"px":"",e.transform="",e))}function Va(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,c=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a;if(process.env.NODE_ENV!=="production"){var u=_e(e.elements.popper).transitionProperty||"";c&&["transform","top","right","bottom","left"].some(function(p){return u.indexOf(p)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
28
28
 
29
29
  `,'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.",`
30
30
 
31
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var d={placement:Ie(e.placement),variation:jt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Kr(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:c,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Kr(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Ha={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ba,data:{}};var Xt={passive:!0};function Va(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,c=r.resize,a=c===void 0?!0:c,l=Te(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Xt)}),a&&l.addEventListener("resize",n.update,Xt),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Xt)}),a&&l.removeEventListener("resize",n.update,Xt)}}const za={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Va,data:{}};var Ga={left:"right",right:"left",bottom:"top",top:"bottom"};function tn(t){return t.replace(/left|right|bottom|top/g,function(e){return Ga[e]})}var $a={start:"end",end:"start"};function qr(t){return t.replace(/start|end/g,function(e){return $a[e]})}function yr(t){var e=Te(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function br(t){return Ot(Ye(t)).left+yr(t).scrollLeft}function Ka(t,e){var n=Te(t),r=Ye(t),o=n.visualViewport,i=r.clientWidth,c=r.clientHeight,a=0,l=0;if(o){i=o.width,c=o.height;var u=ai();(u||!u&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:c,x:a+br(t),y:l}}function qa(t){var e,n=Ye(t),r=yr(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=ot(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=ot(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+br(t),l=-r.scrollTop;return Pe(o||n).direction==="rtl"&&(a+=ot(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:c,x:a,y:l}}function wr(t){var e=Pe(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function fi(t){return["html","body","#document"].indexOf(De(t))>=0?t.ownerDocument.body:Ce(t)&&wr(t)?t:fi(vn(t))}function Mt(t,e){var n;e===void 0&&(e=[]);var r=fi(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=Te(r),c=o?[i].concat(i.visualViewport||[],wr(r)?r:[]):r,a=e.concat(c);return o?a:a.concat(Mt(vn(c)))}function Gn(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ya(t,e){var n=Ot(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Yr(t,e,n){return e===ii?Gn(Ka(t,n)):it(e)?Ya(e,n):Gn(qa(Ye(t)))}function Xa(t){var e=Mt(vn(t)),n=["absolute","fixed"].indexOf(Pe(t).position)>=0,r=n&&Ce(t)?Gt(t):t;return it(r)?e.filter(function(o){return it(o)&&ci(o,r)&&De(o)!=="body"}):[]}function Ja(t,e,n,r){var o=e==="clippingParents"?Xa(t):[].concat(e),i=[].concat(o,[n]),c=i[0],a=i.reduce(function(l,u){var d=Yr(t,u,r);return l.top=ot(d.top,l.top),l.right=cn(d.right,l.right),l.bottom=cn(d.bottom,l.bottom),l.left=ot(d.left,l.left),l},Yr(t,c,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function pi(t){var e=t.reference,n=t.element,r=t.placement,o=r?Ie(r):null,i=r?jt(r):null,c=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(o){case ye:l={x:c,y:e.y-n.height};break;case Se:l={x:c,y:e.y+e.height};break;case ke:l={x:e.x+e.width,y:a};break;case be:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var u=o?vr(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case xt:l[u]=l[u]-(e[d]/2-n[d]/2);break;case Ft:l[u]=l[u]+(e[d]/2-n[d]/2);break}}return l}function Ut(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,c=i===void 0?t.strategy:i,a=n.boundary,l=a===void 0?ba:a,u=n.rootBoundary,d=u===void 0?ii:u,p=n.elementContext,f=p===void 0?It:p,h=n.altBoundary,m=h===void 0?!1:h,g=n.padding,v=g===void 0?0:g,w=ui(typeof v!="number"?v:di(v,zt)),j=f===It?wa:It,O=t.rects.popper,x=t.elements[m?j:f],b=Ja(it(x)?x:x.contextElement||Ye(t.elements.popper),l,d,c),k=Ot(t.elements.reference),_=pi({reference:k,element:O,strategy:"absolute",placement:o}),S=Gn(Object.assign({},O,_)),P=f===It?S:k,L={top:b.top-P.top+w.top,bottom:P.bottom-b.bottom+w.bottom,left:b.left-P.left+w.left,right:P.right-b.right+w.right},Z=t.modifiersData.offset;if(f===It&&Z){var ie=Z[o];Object.keys(L).forEach(function(te){var le=[ke,Se].indexOf(te)>=0?1:-1,we=[ye,Se].indexOf(te)>=0?"y":"x";L[te]+=ie[we]*le})}return L}function Qa(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,c=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?si:l,d=jt(r),p=d?a?Gr:Gr.filter(function(m){return jt(m)===d}):zt,f=p.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=p,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(m,g){return m[g]=Ut(t,{placement:g,boundary:o,rootBoundary:i,padding:c})[Ie(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function ec(t){if(Ie(t)===gn)return[];var e=tn(t);return[qr(t),e,qr(e)]}function tc(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,c=n.altAxis,a=c===void 0?!0:c,l=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,g=n.allowedAutoPlacements,v=e.options.placement,w=Ie(v),j=w===v,O=l||(j||!m?[tn(v)]:ec(v)),x=[v].concat(O).reduce(function(N,M){return N.concat(Ie(M)===gn?Qa(e,{placement:M,boundary:d,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:g}):M)},[]),b=e.rects.reference,k=e.rects.popper,_=new Map,S=!0,P=x[0],L=0;L<x.length;L++){var Z=x[L],ie=Ie(Z),te=jt(Z)===xt,le=[ye,Se].indexOf(ie)>=0,we=le?"width":"height",J=Ut(e,{placement:Z,boundary:d,rootBoundary:p,altBoundary:f,padding:u}),ne=le?te?ke:be:te?Se:ye;b[we]>k[we]&&(ne=tn(ne));var Oe=tn(ne),ge=[];if(i&&ge.push(J[ie]<=0),a&&ge.push(J[ne]<=0,J[Oe]<=0),ge.every(function(N){return N})){P=Z,S=!1;break}_.set(Z,ge)}if(S)for(var E=m?3:1,I=function(M){var A=x.find(function(F){var B=_.get(F);if(B)return B.slice(0,M).every(function(G){return G})});if(A)return P=A,"break"},R=E;R>0;R--){var D=I(R);if(D==="break")break}e.placement!==P&&(e.modifiersData[r]._skip=!0,e.placement=P,e.reset=!0)}}const nc={name:"flip",enabled:!0,phase:"main",fn:tc,requiresIfExists:["offset"],data:{_skip:!1}};function Xr(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Jr(t){return[ye,ke,Se,be].some(function(e){return t[e]>=0})}function rc(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,c=Ut(e,{elementContext:"reference"}),a=Ut(e,{altBoundary:!0}),l=Xr(c,r),u=Xr(a,o,i),d=Jr(l),p=Jr(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const oc={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rc};function ic(t,e,n){var r=Ie(t),o=[be,ye].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,c=i[0],a=i[1];return c=c||0,a=(a||0)*o,[be,ke].indexOf(r)>=0?{x:a,y:c}:{x:c,y:a}}function sc(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,c=si.reduce(function(d,p){return d[p]=ic(p,e.rects,i),d},{}),a=c[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=c}const ac={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sc};function cc(t){var e=t.state,n=t.name;e.modifiersData[n]=pi({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const lc={name:"popperOffsets",enabled:!0,phase:"read",fn:cc,data:{}};function uc(t){return t==="x"?"y":"x"}function dc(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,c=n.altAxis,a=c===void 0?!1:c,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,f=n.tether,h=f===void 0?!0:f,m=n.tetherOffset,g=m===void 0?0:m,v=Ut(e,{boundary:l,rootBoundary:u,padding:p,altBoundary:d}),w=Ie(e.placement),j=jt(e.placement),O=!j,x=vr(w),b=uc(x),k=e.modifiersData.popperOffsets,_=e.rects.reference,S=e.rects.popper,P=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,L=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),Z=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,ie={x:0,y:0};if(k){if(i){var te,le=x==="y"?ye:be,we=x==="y"?Se:ke,J=x==="y"?"height":"width",ne=k[x],Oe=ne+v[le],ge=ne-v[we],E=h?-S[J]/2:0,I=j===xt?_[J]:S[J],R=j===xt?-S[J]:-_[J],D=e.elements.arrow,N=h&&D?gr(D):{width:0,height:0},M=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:li(),A=M[le],F=M[we],B=Rt(0,_[J],N[J]),G=O?_[J]/2-E-B-A-L.mainAxis:I-B-A-L.mainAxis,z=O?-_[J]/2+E+B+F+L.mainAxis:R+B+F+L.mainAxis,se=e.elements.arrow&&Gt(e.elements.arrow),T=se?x==="y"?se.clientTop||0:se.clientLeft||0:0,me=(te=Z?.[x])!=null?te:0,je=ne+G-me-T,ct=ne+z-me,lt=Rt(h?cn(Oe,je):Oe,ne,h?ot(ge,ct):ge);k[x]=lt,ie[x]=lt-ne}if(a){var Ve,St=x==="x"?ye:be,On=x==="x"?Se:ke,Ne=k[b],Je=b==="y"?"height":"width",ve=Ne+v[St],Fe=Ne-v[On],ze=[ye,be].indexOf(w)!==-1,V=(Ve=Z?.[b])!=null?Ve:0,K=ze?ve:Ne-_[Je]-S[Je]-V+L.altAxis,U=ze?Ne+_[Je]+S[Je]-V-L.altAxis:Fe,Q=h&&ze?Ra(K,Ne,U):Rt(h?K:ve,Ne,h?U:Fe);k[b]=Q,ie[b]=Q-Ne}e.modifiersData[r]=ie}}const fc={name:"preventOverflow",enabled:!0,phase:"main",fn:dc,requiresIfExists:["offset"]};function pc(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function hc(t){return t===Te(t)||!Ce(t)?yr(t):pc(t)}function mc(t){var e=t.getBoundingClientRect(),n=Ct(e.width)/t.offsetWidth||1,r=Ct(e.height)/t.offsetHeight||1;return n!==1||r!==1}function gc(t,e,n){n===void 0&&(n=!1);var r=Ce(e),o=Ce(e)&&mc(e),i=Ye(e),c=Ot(t,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((De(e)!=="body"||wr(i))&&(a=hc(e)),Ce(e)?(l=Ot(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=br(i))),{x:c.left+a.scrollLeft-l.x,y:c.top+a.scrollTop-l.y,width:c.width,height:c.height}}function vc(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var c=[].concat(i.requires||[],i.requiresIfExists||[]);c.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&o(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function yc(t){var e=vc(t);return Vn.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function bc(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function $e(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(o,i){return o.replace(/%s/,i)},t)}var Qe='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',wc='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Qr=["name","enabled","phase","fn","effect","requires","options"];function xc(t){t.forEach(function(e){[].concat(Object.keys(e),Qr).filter(function(n,r,o){return o.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error($e(Qe,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error($e(Qe,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Vn.indexOf(e.phase)<0&&console.error($e(Qe,e.name,'"phase"',"either "+Vn.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error($e(Qe,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error($e(Qe,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error($e(Qe,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error($e(Qe,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+Qr.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(r){t.find(function(o){return o.name===r})==null&&console.error($e(wc,String(e.name),r,r))})})})}function Cc(t,e){var n=new Set;return t.filter(function(r){var o=e(r);if(!n.has(o))return n.add(o),!0})}function Oc(t){var e=t.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(e).map(function(n){return e[n]})}var eo="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",jc="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",to={placement:"bottom",modifiers:[],strategy:"absolute"};function no(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Ec(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?to:o;return function(a,l,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},to,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],f=!1,h={state:d,setOptions:function(w){var j=typeof w=="function"?w(d.options):w;g(),d.options=Object.assign({},i,d.options,j),d.scrollParents={reference:it(a)?Mt(a):a.contextElement?Mt(a.contextElement):[],popper:Mt(l)};var O=yc(Oc([].concat(r,d.options.modifiers)));if(d.orderedModifiers=O.filter(function(Z){return Z.enabled}),process.env.NODE_ENV!=="production"){var x=Cc([].concat(O,d.options.modifiers),function(Z){var ie=Z.name;return ie});if(xc(x),Ie(d.options.placement)===gn){var b=d.orderedModifiers.find(function(Z){var ie=Z.name;return ie==="flip"});b||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var k=Pe(l),_=k.marginTop,S=k.marginRight,P=k.marginBottom,L=k.marginLeft;[_,S,P,L].some(function(Z){return parseFloat(Z)})&&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(!f){var w=d.elements,j=w.reference,O=w.popper;if(!no(j,O)){process.env.NODE_ENV!=="production"&&console.error(eo);return}d.rects={reference:gc(j,Gt(O),d.options.strategy==="fixed"),popper:gr(O)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(Z){return d.modifiersData[Z.name]=Object.assign({},Z.data)});for(var x=0,b=0;b<d.orderedModifiers.length;b++){if(process.env.NODE_ENV!=="production"&&(x+=1,x>100)){console.error(jc);break}if(d.reset===!0){d.reset=!1,b=-1;continue}var k=d.orderedModifiers[b],_=k.fn,S=k.options,P=S===void 0?{}:S,L=k.name;typeof _=="function"&&(d=_({state:d,options:P,name:L,instance:h})||d)}}},update:bc(function(){return new Promise(function(v){h.forceUpdate(),v(d)})}),destroy:function(){g(),f=!0}};if(!no(a,l))return process.env.NODE_ENV!=="production"&&console.error(eo),h;h.setOptions(u).then(function(v){!f&&u.onFirstUpdate&&u.onFirstUpdate(v)});function m(){d.orderedModifiers.forEach(function(v){var w=v.name,j=v.options,O=j===void 0?{}:j,x=v.effect;if(typeof x=="function"){var b=x({state:d,name:w,instance:h,options:O}),k=function(){};p.push(b||k)}})}function g(){p.forEach(function(v){return v()}),p=[]}return h}}var Sc=[za,lc,Ha,Na,ac,nc,fc,Ua,oc],kc=Ec({defaultModifiers:Sc}),Tc=typeof Element<"u",Ic=typeof Map=="function",_c=typeof Set=="function",Pc=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function nn(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,o;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!nn(t[r],e[r]))return!1;return!0}var i;if(Ic&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;for(i=t.entries();!(r=i.next()).done;)if(!nn(r.value[1],e.get(r.value[0])))return!1;return!0}if(_c&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(Pc&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;if(Tc&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&t.$$typeof)&&!nn(t[o[r]],e[o[r]]))return!1;return!0}return t!==t&&e!==e}var Nc=function(e,n){try{return nn(e,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},Ac=[],Lc=function(e,n,r){r===void 0&&(r={});var o=Ke.useRef(null),i={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Ac},c=Ke.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=c[0],l=c[1],u=Ke.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var m=h.state,g=Object.keys(m.elements);rs.flushSync(function(){l({styles:Vr(g.map(function(v){return[v,m.styles[v]||{}]})),attributes:Vr(g.map(function(v){return[v,m.attributes[v]]}))})})},requires:["computeStyles"]}},[]),d=Ke.useMemo(function(){var f={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Nc(o.current,f)?o.current||f:(o.current=f,f)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),p=Ke.useRef();return zr(function(){p.current&&p.current.setOptions(d)},[d]),zr(function(){if(!(e==null||n==null)){var f=r.createPopper||kc,h=f(e,n,d);return p.current=h,function(){h.destroy(),p.current=null}}},[e,n,r.createPopper]),{state:p.current?p.current.state:null,styles:a.styles,attributes:a.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}};const hi=y.forwardRef((t,e)=>{const{actions:n,className:r,onClose:o,onActionItemClick:i,...c}=t,a=y.useRef({}),[l,u]=y.useState(0),d=p=>{a.current[p]?.focus(),u(p)};return y.useEffect(()=>{a.current[l]?.focus()},[]),s.jsx("ul",{className:$(r,"io-dropdown-panel"),ref:e,...c,"data-testid":"context-menu",onKeyDown:p=>Ho({event:p,currentIndex:l,min:0,max:n.length-1,moveFocus:d,onClose:o}),children:n.map((p,f)=>s.jsx("li",{className:$("io-list-item",p.disabled&&"disabled"),...bt(h=>i(h,p)),ref:h=>a.current[f]=h,tabIndex:-1,"data-testid":`context-menu-item-${p.name}`,children:s.jsx("span",{className:"io-list-title",children:p.displayName||p.name})},p.name))})});function xr(t){const{iconName:e,iconSize:n,actions:r,onActionItemClick:o,isTabStop:i}=t,[c,a]=y.useState(!1),[l,u]=y.useState(null),[d,p]=y.useState(null),{styles:f,attributes:h}=Lc(l,d,{placement:"bottom-end"});y.useEffect(()=>{if(!c)return;const v=j=>{l?.contains(j.target)||d?.contains(j.target)||a(!1)},w=()=>{document.activeElement?.nodeName==="IFRAME"&&a(!1)};return document.body.addEventListener("click",v,!0),window.addEventListener("blur",w),()=>{document.body.removeEventListener("click",v,!0),window.removeEventListener("blur",w)}},[d,l,c,a]);const m=v=>{v.stopPropagation(),a(w=>!w),d?.focus()},g=(v,w)=>{v.stopPropagation(),o(v,w),a(!1)};return s.jsxs(s.Fragment,{children:[s.jsx(oe,{tabIndex:i?0:-1,size:n,name:e,handleClick:m,ref:u,"data-testid":"context-menu-icon"}),c&&s.jsx(hi,{actions:r,style:f.popper,ref:p,onActionItemClick:g,onClose:()=>{l?.focus(),a(!1)},...h.popper})]})}const mi=t=>{const{className:e,isFavoritismEnabled:n=!0,item:r,onClick:o,onKeyDown:i,focused:c,...a}=t,{favoriteEntities:l,toggleFavorite:u}=hn(),{description:d,icon:p="application",iconSrc:f,isOpen:h=!1,title:m,contextMenuActions:g}=r,v=n&&l.some(w=>w.type===r.type&&w.title===r.title);return s.jsxs("div",{tabIndex:c?0:-1,className:$(e,"io-list-item"),onKeyDown:w=>{if(Bo(w)){o(w),w.preventDefault(),w.stopPropagation();return}i(w)},onClick:o,"data-testid":"base-section-item",...a,children:[s.jsxs("div",{className:"io-list-row",children:[s.jsx(oe,{size:8,name:h?"check":"","data-testid":"open-check-icon"}),f?s.jsx(ur,{className:"section-img-icon",src:f,alt:`${m} icon`,size:14,"data-testid":"img-icon"}):s.jsx(oe,{className:"section-icon",size:14,name:p,"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"}),g&&g.length>0&&s.jsx(xr,{iconName:"ellipsis",iconSize:16,actions:g,onActionItemClick:o,isTabStop:c}),n&&s.jsx(oe,{tabIndex:c?0:-1,className:$("favorite",v&&"visible"),name:v?"star-full":"star",handleClick:w=>{w.stopPropagation(),u(r)},size:16,"data-testid":"favorite-icon"})]}),d&&s.jsx("div",{className:"io-list-row",children:s.jsx("span",{className:"description","data-testid":"description",children:d})})]})};var C={},ro={get exports(){return C},set exports(t){C=t}},ln={},Rc={get exports(){return ln},set exports(t){ln=t}},Y={};/** @license React v16.13.1
31
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var d={placement:Pe(e.placement),variation:Et(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Kr(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:c,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Kr(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const za={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Va,data:{}};var Xt={passive:!0};function Za(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,c=r.resize,a=c===void 0?!0:c,l=Te(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Xt)}),a&&l.addEventListener("resize",n.update,Xt),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Xt)}),a&&l.removeEventListener("resize",n.update,Xt)}}const Ba={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Za,data:{}};var $a={left:"right",right:"left",bottom:"top",top:"bottom"};function tn(t){return t.replace(/left|right|bottom|top/g,function(e){return $a[e]})}var Ga={start:"end",end:"start"};function qr(t){return t.replace(/start|end/g,function(e){return Ga[e]})}function br(t){var e=Te(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function yr(t){return Ot(Ye(t)).left+br(t).scrollLeft}function Ka(t,e){var n=Te(t),r=Ye(t),o=n.visualViewport,i=r.clientWidth,c=r.clientHeight,a=0,l=0;if(o){i=o.width,c=o.height;var u=ai();(u||!u&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:c,x:a+yr(t),y:l}}function qa(t){var e,n=Ye(t),r=br(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=ot(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=ot(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+yr(t),l=-r.scrollTop;return _e(o||n).direction==="rtl"&&(a+=ot(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:c,x:a,y:l}}function wr(t){var e=_e(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function fi(t){return["html","body","#document"].indexOf(De(t))>=0?t.ownerDocument.body:Ce(t)&&wr(t)?t:fi(gn(t))}function Mt(t,e){var n;e===void 0&&(e=[]);var r=fi(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=Te(r),c=o?[i].concat(i.visualViewport||[],wr(r)?r:[]):r,a=e.concat(c);return o?a:a.concat(Mt(gn(c)))}function $n(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ya(t,e){var n=Ot(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Yr(t,e,n){return e===ii?$n(Ka(t,n)):it(e)?Ya(e,n):$n(qa(Ye(t)))}function Xa(t){var e=Mt(gn(t)),n=["absolute","fixed"].indexOf(_e(t).position)>=0,r=n&&Ce(t)?$t(t):t;return it(r)?e.filter(function(o){return it(o)&&ci(o,r)&&De(o)!=="body"}):[]}function Ja(t,e,n,r){var o=e==="clippingParents"?Xa(t):[].concat(e),i=[].concat(o,[n]),c=i[0],a=i.reduce(function(l,u){var d=Yr(t,u,r);return l.top=ot(d.top,l.top),l.right=cn(d.right,l.right),l.bottom=cn(d.bottom,l.bottom),l.left=ot(d.left,l.left),l},Yr(t,c,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function pi(t){var e=t.reference,n=t.element,r=t.placement,o=r?Pe(r):null,i=r?Et(r):null,c=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(o){case be:l={x:c,y:e.y-n.height};break;case je:l={x:c,y:e.y+e.height};break;case ke:l={x:e.x+e.width,y:a};break;case ye:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var u=o?gr(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case xt:l[u]=l[u]-(e[d]/2-n[d]/2);break;case Wt:l[u]=l[u]+(e[d]/2-n[d]/2);break}}return l}function Ht(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,c=i===void 0?t.strategy:i,a=n.boundary,l=a===void 0?ya:a,u=n.rootBoundary,d=u===void 0?ii:u,p=n.elementContext,f=p===void 0?Pt:p,h=n.altBoundary,m=h===void 0?!1:h,v=n.padding,g=v===void 0?0:v,w=ui(typeof g!="number"?g:di(g,Bt)),E=f===Pt?wa:Pt,O=t.rects.popper,x=t.elements[m?E:f],y=Ja(it(x)?x:x.contextElement||Ye(t.elements.popper),l,d,c),k=Ot(t.elements.reference),I=pi({reference:k,element:O,strategy:"absolute",placement:o}),j=$n(Object.assign({},O,I)),_=f===Pt?j:k,L={top:y.top-_.top+w.top,bottom:_.bottom-y.bottom+w.bottom,left:y.left-_.left+w.left,right:_.right-y.right+w.right},F=t.modifiersData.offset;if(f===Pt&&F){var ie=F[o];Object.keys(L).forEach(function(te){var le=[ke,je].indexOf(te)>=0?1:-1,we=[be,je].indexOf(te)>=0?"y":"x";L[te]+=ie[we]*le})}return L}function Qa(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,c=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?si:l,d=Et(r),p=d?a?$r:$r.filter(function(m){return Et(m)===d}):Bt,f=p.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=p,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(m,v){return m[v]=Ht(t,{placement:v,boundary:o,rootBoundary:i,padding:c})[Pe(v)],m},{});return Object.keys(h).sort(function(m,v){return h[m]-h[v]})}function ec(t){if(Pe(t)===vn)return[];var e=tn(t);return[qr(t),e,qr(e)]}function tc(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,c=n.altAxis,a=c===void 0?!0:c,l=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,v=n.allowedAutoPlacements,g=e.options.placement,w=Pe(g),E=w===g,O=l||(E||!m?[tn(g)]:ec(g)),x=[g].concat(O).reduce(function(N,M){return N.concat(Pe(M)===vn?Qa(e,{placement:M,boundary:d,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:v}):M)},[]),y=e.rects.reference,k=e.rects.popper,I=new Map,j=!0,_=x[0],L=0;L<x.length;L++){var F=x[L],ie=Pe(F),te=Et(F)===xt,le=[be,je].indexOf(ie)>=0,we=le?"width":"height",J=Ht(e,{placement:F,boundary:d,rootBoundary:p,altBoundary:f,padding:u}),ne=le?te?ke:ye:te?je:be;y[we]>k[we]&&(ne=tn(ne));var Oe=tn(ne),ve=[];if(i&&ve.push(J[ie]<=0),a&&ve.push(J[ne]<=0,J[Oe]<=0),ve.every(function(N){return N})){_=F,j=!1;break}I.set(F,ve)}if(j)for(var S=m?3:1,P=function(M){var A=x.find(function(W){var V=I.get(W);if(V)return V.slice(0,M).every(function($){return $})});if(A)return _=A,"break"},R=S;R>0;R--){var D=P(R);if(D==="break")break}e.placement!==_&&(e.modifiersData[r]._skip=!0,e.placement=_,e.reset=!0)}}const nc={name:"flip",enabled:!0,phase:"main",fn:tc,requiresIfExists:["offset"],data:{_skip:!1}};function Xr(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Jr(t){return[be,ke,je,ye].some(function(e){return t[e]>=0})}function rc(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,c=Ht(e,{elementContext:"reference"}),a=Ht(e,{altBoundary:!0}),l=Xr(c,r),u=Xr(a,o,i),d=Jr(l),p=Jr(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const oc={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rc};function ic(t,e,n){var r=Pe(t),o=[ye,be].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,c=i[0],a=i[1];return c=c||0,a=(a||0)*o,[ye,ke].indexOf(r)>=0?{x:a,y:c}:{x:c,y:a}}function sc(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,c=si.reduce(function(d,p){return d[p]=ic(p,e.rects,i),d},{}),a=c[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=c}const ac={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sc};function cc(t){var e=t.state,n=t.name;e.modifiersData[n]=pi({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const lc={name:"popperOffsets",enabled:!0,phase:"read",fn:cc,data:{}};function uc(t){return t==="x"?"y":"x"}function dc(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,c=n.altAxis,a=c===void 0?!1:c,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,f=n.tether,h=f===void 0?!0:f,m=n.tetherOffset,v=m===void 0?0:m,g=Ht(e,{boundary:l,rootBoundary:u,padding:p,altBoundary:d}),w=Pe(e.placement),E=Et(e.placement),O=!E,x=gr(w),y=uc(x),k=e.modifiersData.popperOffsets,I=e.rects.reference,j=e.rects.popper,_=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,L=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),F=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,ie={x:0,y:0};if(k){if(i){var te,le=x==="y"?be:ye,we=x==="y"?je:ke,J=x==="y"?"height":"width",ne=k[x],Oe=ne+g[le],ve=ne-g[we],S=h?-j[J]/2:0,P=E===xt?I[J]:j[J],R=E===xt?-j[J]:-I[J],D=e.elements.arrow,N=h&&D?vr(D):{width:0,height:0},M=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:li(),A=M[le],W=M[we],V=Rt(0,I[J],N[J]),$=O?I[J]/2-S-V-A-L.mainAxis:P-V-A-L.mainAxis,B=O?-I[J]/2+S+V+W+L.mainAxis:R+V+W+L.mainAxis,se=e.elements.arrow&&$t(e.elements.arrow),T=se?x==="y"?se.clientTop||0:se.clientLeft||0:0,me=(te=F?.[x])!=null?te:0,Ee=ne+$-me-T,ct=ne+B-me,lt=Rt(h?cn(Oe,Ee):Oe,ne,h?ot(ve,ct):ve);k[x]=lt,ie[x]=lt-ne}if(a){var Ze,jt=x==="x"?be:ye,On=x==="x"?je:ke,Ne=k[y],Je=y==="y"?"height":"width",ge=Ne+g[jt],We=Ne-g[On],Be=[be,ye].indexOf(w)!==-1,Z=(Ze=F?.[y])!=null?Ze:0,K=Be?ge:Ne-I[Je]-j[Je]-Z+L.altAxis,H=Be?Ne+I[Je]+j[Je]-Z-L.altAxis:We,Q=h&&Be?Ra(K,Ne,H):Rt(h?K:ge,Ne,h?H:We);k[y]=Q,ie[y]=Q-Ne}e.modifiersData[r]=ie}}const fc={name:"preventOverflow",enabled:!0,phase:"main",fn:dc,requiresIfExists:["offset"]};function pc(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function hc(t){return t===Te(t)||!Ce(t)?br(t):pc(t)}function mc(t){var e=t.getBoundingClientRect(),n=Ct(e.width)/t.offsetWidth||1,r=Ct(e.height)/t.offsetHeight||1;return n!==1||r!==1}function vc(t,e,n){n===void 0&&(n=!1);var r=Ce(e),o=Ce(e)&&mc(e),i=Ye(e),c=Ot(t,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((De(e)!=="body"||wr(i))&&(a=hc(e)),Ce(e)?(l=Ot(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=yr(i))),{x:c.left+a.scrollLeft-l.x,y:c.top+a.scrollTop-l.y,width:c.width,height:c.height}}function gc(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var c=[].concat(i.requires||[],i.requiresIfExists||[]);c.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&o(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function bc(t){var e=gc(t);return Zn.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function yc(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Ge(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(o,i){return o.replace(/%s/,i)},t)}var Qe='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',wc='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Qr=["name","enabled","phase","fn","effect","requires","options"];function xc(t){t.forEach(function(e){[].concat(Object.keys(e),Qr).filter(function(n,r,o){return o.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(Ge(Qe,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(Ge(Qe,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Zn.indexOf(e.phase)<0&&console.error(Ge(Qe,e.name,'"phase"',"either "+Zn.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(Ge(Qe,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(Ge(Qe,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(Ge(Qe,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(Ge(Qe,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+Qr.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(r){t.find(function(o){return o.name===r})==null&&console.error(Ge(wc,String(e.name),r,r))})})})}function Cc(t,e){var n=new Set;return t.filter(function(r){var o=e(r);if(!n.has(o))return n.add(o),!0})}function Oc(t){var e=t.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(e).map(function(n){return e[n]})}var eo="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Ec="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",to={placement:"bottom",modifiers:[],strategy:"absolute"};function no(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Sc(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?to:o;return function(a,l,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},to,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],f=!1,h={state:d,setOptions:function(w){var E=typeof w=="function"?w(d.options):w;v(),d.options=Object.assign({},i,d.options,E),d.scrollParents={reference:it(a)?Mt(a):a.contextElement?Mt(a.contextElement):[],popper:Mt(l)};var O=bc(Oc([].concat(r,d.options.modifiers)));if(d.orderedModifiers=O.filter(function(F){return F.enabled}),process.env.NODE_ENV!=="production"){var x=Cc([].concat(O,d.options.modifiers),function(F){var ie=F.name;return ie});if(xc(x),Pe(d.options.placement)===vn){var y=d.orderedModifiers.find(function(F){var ie=F.name;return ie==="flip"});y||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var k=_e(l),I=k.marginTop,j=k.marginRight,_=k.marginBottom,L=k.marginLeft;[I,j,_,L].some(function(F){return parseFloat(F)})&&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(!f){var w=d.elements,E=w.reference,O=w.popper;if(!no(E,O)){process.env.NODE_ENV!=="production"&&console.error(eo);return}d.rects={reference:vc(E,$t(O),d.options.strategy==="fixed"),popper:vr(O)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(F){return d.modifiersData[F.name]=Object.assign({},F.data)});for(var x=0,y=0;y<d.orderedModifiers.length;y++){if(process.env.NODE_ENV!=="production"&&(x+=1,x>100)){console.error(Ec);break}if(d.reset===!0){d.reset=!1,y=-1;continue}var k=d.orderedModifiers[y],I=k.fn,j=k.options,_=j===void 0?{}:j,L=k.name;typeof I=="function"&&(d=I({state:d,options:_,name:L,instance:h})||d)}}},update:yc(function(){return new Promise(function(g){h.forceUpdate(),g(d)})}),destroy:function(){v(),f=!0}};if(!no(a,l))return process.env.NODE_ENV!=="production"&&console.error(eo),h;h.setOptions(u).then(function(g){!f&&u.onFirstUpdate&&u.onFirstUpdate(g)});function m(){d.orderedModifiers.forEach(function(g){var w=g.name,E=g.options,O=E===void 0?{}:E,x=g.effect;if(typeof x=="function"){var y=x({state:d,name:w,instance:h,options:O}),k=function(){};p.push(y||k)}})}function v(){p.forEach(function(g){return g()}),p=[]}return h}}var jc=[Ba,lc,za,Na,ac,nc,fc,Ha,oc],kc=Sc({defaultModifiers:jc}),Tc=typeof Element<"u",Pc=typeof Map=="function",Ic=typeof Set=="function",_c=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function nn(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,o;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!nn(t[r],e[r]))return!1;return!0}var i;if(Pc&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;for(i=t.entries();!(r=i.next()).done;)if(!nn(r.value[1],e.get(r.value[0])))return!1;return!0}if(Ic&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(_c&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;if(Tc&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&t.$$typeof)&&!nn(t[o[r]],e[o[r]]))return!1;return!0}return t!==t&&e!==e}var Nc=function(e,n){try{return nn(e,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},Ac=[],Lc=function(e,n,r){r===void 0&&(r={});var o=Ke.useRef(null),i={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Ac},c=Ke.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=c[0],l=c[1],u=Ke.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var m=h.state,v=Object.keys(m.elements);rs.flushSync(function(){l({styles:Zr(v.map(function(g){return[g,m.styles[g]||{}]})),attributes:Zr(v.map(function(g){return[g,m.attributes[g]]}))})})},requires:["computeStyles"]}},[]),d=Ke.useMemo(function(){var f={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Nc(o.current,f)?o.current||f:(o.current=f,f)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),p=Ke.useRef();return Br(function(){p.current&&p.current.setOptions(d)},[d]),Br(function(){if(!(e==null||n==null)){var f=r.createPopper||kc,h=f(e,n,d);return p.current=h,function(){h.destroy(),p.current=null}}},[e,n,r.createPopper]),{state:p.current?p.current.state:null,styles:a.styles,attributes:a.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}};const hi=b.forwardRef((t,e)=>{const{actions:n,className:r,onClose:o,onActionItemClick:i,...c}=t,a=b.useRef({}),[l,u]=b.useState(0),d=p=>{a.current[p]?.focus(),u(p)};return b.useEffect(()=>{a.current[l]?.focus()},[]),s.jsx("ul",{className:G(r,"io-dropdown-panel"),ref:e,...c,"data-testid":"context-menu",onKeyDown:p=>zo({event:p,currentIndex:l,min:0,max:n.length-1,moveFocus:d,onClose:o}),children:n.map((p,f)=>s.jsx("li",{className:G("io-list-item",p.disabled&&"disabled"),...yt(h=>i(h,p)),ref:h=>a.current[f]=h,tabIndex:-1,"data-testid":`context-menu-item-${p.name}`,children:s.jsx("span",{className:"io-list-title",children:p.displayName||p.name})},p.name))})});function xr(t){const{iconName:e,iconSize:n,actions:r,onActionItemClick:o,isTabStop:i}=t,[c,a]=b.useState(!1),[l,u]=b.useState(null),[d,p]=b.useState(null),{styles:f,attributes:h}=Lc(l,d,{placement:"bottom-end"});b.useEffect(()=>{if(!c)return;const g=E=>{l?.contains(E.target)||d?.contains(E.target)||a(!1)},w=()=>{document.activeElement?.nodeName==="IFRAME"&&a(!1)};return document.body.addEventListener("click",g,!0),window.addEventListener("blur",w),()=>{document.body.removeEventListener("click",g,!0),window.removeEventListener("blur",w)}},[d,l,c,a]);const m=g=>{g.stopPropagation(),a(w=>!w),d?.focus()},v=(g,w)=>{g.stopPropagation(),o(g,w),a(!1)};return s.jsxs(s.Fragment,{children:[s.jsx(oe,{tabIndex:i?0:-1,size:n,name:e,handleClick:m,ref:u,"data-testid":"context-menu-icon"}),c&&s.jsx(hi,{actions:r,style:f.popper,ref:p,onActionItemClick:v,onClose:()=>{l?.focus(),a(!1)},...h.popper})]})}const mi=t=>{const{className:e,isFavoritismEnabled:n=!0,item:r,onClick:o,onKeyDown:i,focused:c,...a}=t,{favoriteEntities:l,toggleFavorite:u}=hn(),{description:d,icon:p="application",iconSrc:f,isOpen:h=!1,title:m,contextMenuActions:v}=r,g=n&&l.some(w=>w.type===r.type&&w.title===r.title);return s.jsxs("div",{tabIndex:c?0:-1,className:G(e,"io-list-item"),onKeyDown:w=>{if(Vo(w)){o(w),w.preventDefault(),w.stopPropagation();return}i(w)},onClick:o,"data-testid":"base-section-item",...a,children:[s.jsxs("div",{className:"io-list-row",children:[s.jsx(oe,{size:8,name:h?"check":"","data-testid":"open-check-icon"}),f?s.jsx(ur,{className:"section-img-icon",src:f,alt:`${m} icon`,size:14,"data-testid":"img-icon"}):s.jsx(oe,{className:"section-icon",size:14,name:p,"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"}),v&&v.length>0&&s.jsx(xr,{iconName:"ellipsis",iconSize:16,actions:v,onActionItemClick:o,isTabStop:c}),n&&s.jsx(oe,{tabIndex:c?0:-1,className:G("favorite",g&&"visible"),name:g?"star-full":"star",handleClick:w=>{w.stopPropagation(),u(r)},size:16,"data-testid":"favorite-icon"})]}),d&&s.jsx("div",{className:"io-list-row",children:s.jsx("span",{className:"description","data-testid":"description",children:d})})]})};var C={},ro={get exports(){return C},set exports(t){C=t}},ln={},Rc={get exports(){return ln},set exports(t){ln=t}},Y={};/** @license React v16.13.1
32
32
  * react-is.production.min.js
33
33
  *
34
34
  * Copyright (c) Facebook, Inc. and its affiliates.
35
35
  *
36
36
  * This source code is licensed under the MIT license found in the
37
37
  * LICENSE file in the root directory of this source tree.
38
- */var oo;function Mc(){if(oo)return Y;oo=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,j=t?Symbol.for("react.scope"):60119;function O(b){if(typeof b=="object"&&b!==null){var k=b.$$typeof;switch(k){case e:switch(b=b.type,b){case l:case u:case r:case i:case o:case p:return b;default:switch(b=b&&b.$$typeof,b){case a:case d:case m:case h:case c:return b;default:return k}}case n:return k}}}function x(b){return O(b)===u}return Y.AsyncMode=l,Y.ConcurrentMode=u,Y.ContextConsumer=a,Y.ContextProvider=c,Y.Element=e,Y.ForwardRef=d,Y.Fragment=r,Y.Lazy=m,Y.Memo=h,Y.Portal=n,Y.Profiler=i,Y.StrictMode=o,Y.Suspense=p,Y.isAsyncMode=function(b){return x(b)||O(b)===l},Y.isConcurrentMode=x,Y.isContextConsumer=function(b){return O(b)===a},Y.isContextProvider=function(b){return O(b)===c},Y.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Y.isForwardRef=function(b){return O(b)===d},Y.isFragment=function(b){return O(b)===r},Y.isLazy=function(b){return O(b)===m},Y.isMemo=function(b){return O(b)===h},Y.isPortal=function(b){return O(b)===n},Y.isProfiler=function(b){return O(b)===i},Y.isStrictMode=function(b){return O(b)===o},Y.isSuspense=function(b){return O(b)===p},Y.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===u||b===i||b===o||b===p||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===h||b.$$typeof===c||b.$$typeof===a||b.$$typeof===d||b.$$typeof===v||b.$$typeof===w||b.$$typeof===j||b.$$typeof===g)},Y.typeOf=O,Y}var X={};/** @license React v16.13.1
38
+ */var oo;function Mc(){if(oo)return Y;oo=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function O(y){if(typeof y=="object"&&y!==null){var k=y.$$typeof;switch(k){case e:switch(y=y.type,y){case l:case u:case r:case i:case o:case p:return y;default:switch(y=y&&y.$$typeof,y){case a:case d:case m:case h:case c:return y;default:return k}}case n:return k}}}function x(y){return O(y)===u}return Y.AsyncMode=l,Y.ConcurrentMode=u,Y.ContextConsumer=a,Y.ContextProvider=c,Y.Element=e,Y.ForwardRef=d,Y.Fragment=r,Y.Lazy=m,Y.Memo=h,Y.Portal=n,Y.Profiler=i,Y.StrictMode=o,Y.Suspense=p,Y.isAsyncMode=function(y){return x(y)||O(y)===l},Y.isConcurrentMode=x,Y.isContextConsumer=function(y){return O(y)===a},Y.isContextProvider=function(y){return O(y)===c},Y.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Y.isForwardRef=function(y){return O(y)===d},Y.isFragment=function(y){return O(y)===r},Y.isLazy=function(y){return O(y)===m},Y.isMemo=function(y){return O(y)===h},Y.isPortal=function(y){return O(y)===n},Y.isProfiler=function(y){return O(y)===i},Y.isStrictMode=function(y){return O(y)===o},Y.isSuspense=function(y){return O(y)===p},Y.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===u||y===i||y===o||y===p||y===f||typeof y=="object"&&y!==null&&(y.$$typeof===m||y.$$typeof===h||y.$$typeof===c||y.$$typeof===a||y.$$typeof===d||y.$$typeof===g||y.$$typeof===w||y.$$typeof===E||y.$$typeof===v)},Y.typeOf=O,Y}var X={};/** @license React v16.13.1
39
39
  * react-is.development.js
40
40
  *
41
41
  * Copyright (c) Facebook, Inc. and its affiliates.
42
42
  *
43
43
  * This source code is licensed under the MIT license found in the
44
44
  * LICENSE file in the root directory of this source tree.
45
- */var io;function Dc(){return io||(io=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,j=t?Symbol.for("react.scope"):60119;function O(T){return typeof T=="string"||typeof T=="function"||T===r||T===u||T===i||T===o||T===p||T===f||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===h||T.$$typeof===c||T.$$typeof===a||T.$$typeof===d||T.$$typeof===v||T.$$typeof===w||T.$$typeof===j||T.$$typeof===g)}function x(T){if(typeof T=="object"&&T!==null){var me=T.$$typeof;switch(me){case e:var je=T.type;switch(je){case l:case u:case r:case i:case o:case p:return je;default:var ct=je&&je.$$typeof;switch(ct){case a:case d:case m:case h:case c:return ct;default:return me}}case n:return me}}}var b=l,k=u,_=a,S=c,P=e,L=d,Z=r,ie=m,te=h,le=n,we=i,J=o,ne=p,Oe=!1;function ge(T){return Oe||(Oe=!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.")),E(T)||x(T)===l}function E(T){return x(T)===u}function I(T){return x(T)===a}function R(T){return x(T)===c}function D(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function N(T){return x(T)===d}function M(T){return x(T)===r}function A(T){return x(T)===m}function F(T){return x(T)===h}function B(T){return x(T)===n}function G(T){return x(T)===i}function z(T){return x(T)===o}function se(T){return x(T)===p}X.AsyncMode=b,X.ConcurrentMode=k,X.ContextConsumer=_,X.ContextProvider=S,X.Element=P,X.ForwardRef=L,X.Fragment=Z,X.Lazy=ie,X.Memo=te,X.Portal=le,X.Profiler=we,X.StrictMode=J,X.Suspense=ne,X.isAsyncMode=ge,X.isConcurrentMode=E,X.isContextConsumer=I,X.isContextProvider=R,X.isElement=D,X.isForwardRef=N,X.isFragment=M,X.isLazy=A,X.isMemo=F,X.isPortal=B,X.isProfiler=G,X.isStrictMode=z,X.isSuspense=se,X.isValidElementType=O,X.typeOf=x}()),X}var so;function gi(){return so||(so=1,function(t){process.env.NODE_ENV==="production"?t.exports=Mc():t.exports=Dc()}(Rc)),ln}/*
45
+ */var io;function Dc(){return io||(io=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function O(T){return typeof T=="string"||typeof T=="function"||T===r||T===u||T===i||T===o||T===p||T===f||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===h||T.$$typeof===c||T.$$typeof===a||T.$$typeof===d||T.$$typeof===g||T.$$typeof===w||T.$$typeof===E||T.$$typeof===v)}function x(T){if(typeof T=="object"&&T!==null){var me=T.$$typeof;switch(me){case e:var Ee=T.type;switch(Ee){case l:case u:case r:case i:case o:case p:return Ee;default:var ct=Ee&&Ee.$$typeof;switch(ct){case a:case d:case m:case h:case c:return ct;default:return me}}case n:return me}}}var y=l,k=u,I=a,j=c,_=e,L=d,F=r,ie=m,te=h,le=n,we=i,J=o,ne=p,Oe=!1;function ve(T){return Oe||(Oe=!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.")),S(T)||x(T)===l}function S(T){return x(T)===u}function P(T){return x(T)===a}function R(T){return x(T)===c}function D(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function N(T){return x(T)===d}function M(T){return x(T)===r}function A(T){return x(T)===m}function W(T){return x(T)===h}function V(T){return x(T)===n}function $(T){return x(T)===i}function B(T){return x(T)===o}function se(T){return x(T)===p}X.AsyncMode=y,X.ConcurrentMode=k,X.ContextConsumer=I,X.ContextProvider=j,X.Element=_,X.ForwardRef=L,X.Fragment=F,X.Lazy=ie,X.Memo=te,X.Portal=le,X.Profiler=we,X.StrictMode=J,X.Suspense=ne,X.isAsyncMode=ve,X.isConcurrentMode=S,X.isContextConsumer=P,X.isContextProvider=R,X.isElement=D,X.isForwardRef=N,X.isFragment=M,X.isLazy=A,X.isMemo=W,X.isPortal=V,X.isProfiler=$,X.isStrictMode=B,X.isSuspense=se,X.isValidElementType=O,X.typeOf=x}()),X}var so;function vi(){return so||(so=1,function(t){process.env.NODE_ENV==="production"?t.exports=Mc():t.exports=Dc()}(Rc)),ln}/*
46
46
  object-assign
47
47
  (c) Sindre Sorhus
48
48
  @license MIT
49
- */var kn,ao;function Fc(){if(ao)return kn;ao=1;var t=Object.getOwnPropertySymbols,e=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 c={},a=0;a<10;a++)c["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(c).map(function(d){return c[d]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return kn=o()?Object.assign:function(i,c){for(var a,l=r(i),u,d=1;d<arguments.length;d++){a=Object(arguments[d]);for(var p in a)e.call(a,p)&&(l[p]=a[p]);if(t){u=t(a);for(var f=0;f<u.length;f++)n.call(a,u[f])&&(l[u[f]]=a[u[f]])}}return l},kn}var Tn,co;function Cr(){if(co)return Tn;co=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Tn=t,Tn}var In,lo;function vi(){return lo||(lo=1,In=Function.call.bind(Object.prototype.hasOwnProperty)),In}var _n,uo;function Uc(){if(uo)return _n;uo=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=Cr(),n={},r=vi();t=function(i){var c="Warning: "+i;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function o(i,c,a,l,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var p;try{if(typeof i[d]!="function"){var f=Error((l||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}p=i[d](c,d,l,a,null,e)}catch(m){p=m}if(p&&!(p instanceof Error)&&t((l||"React class")+": type specification of "+a+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var h=u?u():"";t("Failed "+a+" type: "+p.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},_n=o,_n}var Pn,fo;function Wc(){if(fo)return Pn;fo=1;var t=gi(),e=Fc(),n=Cr(),r=vi(),o=Uc(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function c(){return null}return Pn=function(a,l){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(E){var I=E&&(u&&E[u]||E[d]);if(typeof I=="function")return I}var f="<<anonymous>>",h={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:j(),arrayOf:O,element:x(),elementType:b(),instanceOf:k,node:L(),objectOf:S,oneOf:_,oneOfType:P,shape:ie,exact:te};function m(E,I){return E===I?E!==0||1/E===1/I:E!==E&&I!==I}function g(E,I){this.message=E,this.data=I&&typeof I=="object"?I:{},this.stack=""}g.prototype=Error.prototype;function v(E){if(process.env.NODE_ENV!=="production")var I={},R=0;function D(M,A,F,B,G,z,se){if(B=B||f,z=z||F,se!==n){if(l){var T=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 T.name="Invariant Violation",T}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var me=B+":"+F;!I[me]&&R<3&&(i("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+B+"`. 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."),I[me]=!0,R++)}}return A[F]==null?M?A[F]===null?new g("The "+G+" `"+z+"` is marked as required "+("in `"+B+"`, but its value is `null`.")):new g("The "+G+" `"+z+"` is marked as required in "+("`"+B+"`, but its value is `undefined`.")):null:E(A,F,B,G,z)}var N=D.bind(null,!1);return N.isRequired=D.bind(null,!0),N}function w(E){function I(R,D,N,M,A,F){var B=R[D],G=J(B);if(G!==E){var z=ne(B);return new g("Invalid "+M+" `"+A+"` of type "+("`"+z+"` supplied to `"+N+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return v(I)}function j(){return v(c)}function O(E){function I(R,D,N,M,A){if(typeof E!="function")return new g("Property `"+A+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var F=R[D];if(!Array.isArray(F)){var B=J(F);return new g("Invalid "+M+" `"+A+"` of type "+("`"+B+"` supplied to `"+N+"`, expected an array."))}for(var G=0;G<F.length;G++){var z=E(F,G,N,M,A+"["+G+"]",n);if(z instanceof Error)return z}return null}return v(I)}function x(){function E(I,R,D,N,M){var A=I[R];if(!a(A)){var F=J(A);return new g("Invalid "+N+" `"+M+"` of type "+("`"+F+"` supplied to `"+D+"`, expected a single ReactElement."))}return null}return v(E)}function b(){function E(I,R,D,N,M){var A=I[R];if(!t.isValidElementType(A)){var F=J(A);return new g("Invalid "+N+" `"+M+"` of type "+("`"+F+"` supplied to `"+D+"`, expected a single ReactElement type."))}return null}return v(E)}function k(E){function I(R,D,N,M,A){if(!(R[D]instanceof E)){var F=E.name||f,B=ge(R[D]);return new g("Invalid "+M+" `"+A+"` of type "+("`"+B+"` supplied to `"+N+"`, expected ")+("instance of `"+F+"`."))}return null}return v(I)}function _(E){if(!Array.isArray(E))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.")),c;function I(R,D,N,M,A){for(var F=R[D],B=0;B<E.length;B++)if(m(F,E[B]))return null;var G=JSON.stringify(E,function(se,T){var me=ne(T);return me==="symbol"?String(T):T});return new g("Invalid "+M+" `"+A+"` of value `"+String(F)+"` "+("supplied to `"+N+"`, expected one of "+G+"."))}return v(I)}function S(E){function I(R,D,N,M,A){if(typeof E!="function")return new g("Property `"+A+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var F=R[D],B=J(F);if(B!=="object")return new g("Invalid "+M+" `"+A+"` of type "+("`"+B+"` supplied to `"+N+"`, expected an object."));for(var G in F)if(r(F,G)){var z=E(F,G,N,M,A+"."+G,n);if(z instanceof Error)return z}return null}return v(I)}function P(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var I=0;I<E.length;I++){var R=E[I];if(typeof R!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Oe(R)+" at index "+I+"."),c}function D(N,M,A,F,B){for(var G=[],z=0;z<E.length;z++){var se=E[z],T=se(N,M,A,F,B,n);if(T==null)return null;T.data&&r(T.data,"expectedType")&&G.push(T.data.expectedType)}var me=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new g("Invalid "+F+" `"+B+"` supplied to "+("`"+A+"`"+me+"."))}return v(D)}function L(){function E(I,R,D,N,M){return le(I[R])?null:new g("Invalid "+N+" `"+M+"` supplied to "+("`"+D+"`, expected a ReactNode."))}return v(E)}function Z(E,I,R,D,N){return new g((E||"React class")+": "+I+" type `"+R+"."+D+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function ie(E){function I(R,D,N,M,A){var F=R[D],B=J(F);if(B!=="object")return new g("Invalid "+M+" `"+A+"` of type `"+B+"` "+("supplied to `"+N+"`, expected `object`."));for(var G in E){var z=E[G];if(typeof z!="function")return Z(N,M,A,G,ne(z));var se=z(F,G,N,M,A+"."+G,n);if(se)return se}return null}return v(I)}function te(E){function I(R,D,N,M,A){var F=R[D],B=J(F);if(B!=="object")return new g("Invalid "+M+" `"+A+"` of type `"+B+"` "+("supplied to `"+N+"`, expected `object`."));var G=e({},R[D],E);for(var z in G){var se=E[z];if(r(E,z)&&typeof se!="function")return Z(N,M,A,z,ne(se));if(!se)return new g("Invalid "+M+" `"+A+"` key `"+z+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(R[D],null," ")+`
50
- Valid keys: `+JSON.stringify(Object.keys(E),null," "));var T=se(F,z,N,M,A+"."+z,n);if(T)return T}return null}return v(I)}function le(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(le);if(E===null||a(E))return!0;var I=p(E);if(I){var R=I.call(E),D;if(I!==E.entries){for(;!(D=R.next()).done;)if(!le(D.value))return!1}else for(;!(D=R.next()).done;){var N=D.value;if(N&&!le(N[1]))return!1}}else return!1;return!0;default:return!1}}function we(E,I){return E==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function J(E){var I=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":we(I,E)?"symbol":I}function ne(E){if(typeof E>"u"||E===null)return""+E;var I=J(E);if(I==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return I}function Oe(E){var I=ne(E);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function ge(E){return!E.constructor||!E.constructor.name?f:E.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},Pn}var Nn,po;function Zc(){if(po)return Nn;po=1;var t=Cr();function e(){}function n(){}return n.resetWarningCache=e,Nn=function(){function r(c,a,l,u,d,p){if(p!==t){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:e};return i.PropTypes=i,i},Nn}if(process.env.NODE_ENV!=="production"){var Bc=gi(),Hc=!0;ro.exports=Wc()(Bc.isElement,Hc)}else ro.exports=Zc()();function $n(t){return $n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$n(t)}var Vc;function $t(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vc;return e?t.split(" ").map(function(n){return e[n]||n}).join(" "):t}function zc(t,e){var n={};return Object.keys(t).forEach(function(r){e.indexOf(r)===-1&&(n[r]=t[r])}),n}function Gc(t,e){for(var n=Array.isArray(e)?e:[e],r=n.length,o,i={};r>0;)r-=1,o=n[r],i[o]=t[o];return i}var $c=(typeof window>"u"?"undefined":$n(window))==="object"&&window.Element||function(){};function Kc(t,e,n){if(!(t[e]instanceof $c))return new Error("Invalid prop `"+e+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}C.oneOfType([C.string,C.func,Kc,C.shape({current:C.any})]);var yn=C.oneOfType([C.func,C.string,C.shape({$$typeof:C.symbol,render:C.func}),C.arrayOf(C.oneOfType([C.func,C.string,C.shape({$$typeof:C.symbol,render:C.func})]))]),qc={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},ho=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Jt={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},Yc=["className","cssModule","variant","innerRef"];function Kn(){return Kn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Kn.apply(this,arguments)}function mo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Xc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mo(Object(n),!0).forEach(function(r){Jc(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Jc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qc(t,e){if(t==null)return{};var n=el(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function el(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}var tl={active:C.bool,"aria-label":C.string,onClick:C.func,variant:C.oneOf(["white"]),className:C.string,cssModule:C.object,innerRef:C.oneOfType([C.object,C.string,C.func])};function yi(t){var e=t.className;t.cssModule;var n=t.variant,r=t.innerRef,o=Qc(t,Yc),i=$t($(e,"btn-close",n&&"btn-close-".concat(n)));return y.createElement("button",Kn({ref:r,type:"button",className:i},Xc({"aria-label":"close"},o)))}yi.propTypes=tl;var nl=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function qn(){return qn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},qn.apply(this,arguments)}function rl(t,e){if(t==null)return{};var n=ol(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function ol(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}var il={active:C.bool,"aria-label":C.string,block:C.bool,children:C.node,className:C.string,cssModule:C.object,close:C.bool,color:C.string,disabled:C.bool,innerRef:C.oneOfType([C.object,C.func,C.string]),onClick:C.func,outline:C.bool,size:C.string,tag:yn};function Wt(t){var e=y.useCallback(function(j){if(t.disabled){j.preventDefault();return}if(t.onClick)return t.onClick(j)},[t.onClick,t.disabled]),n=t.active,r=t["aria-label"],o=t.block,i=t.className,c=t.close,a=t.cssModule,l=t.color,u=l===void 0?"secondary":l,d=t.outline,p=t.size,f=t.tag,h=f===void 0?"button":f,m=t.innerRef,g=rl(t,nl);if(c)return y.createElement(yi,g);var v="btn".concat(d?"-outline":"","-").concat(u),w=$t($(i,"btn",v,p?"btn-".concat(p):!1,o?"d-block w-100":!1,{active:n,disabled:t.disabled}),a);return g.href&&h==="button"&&(h="a"),y.createElement(h,qn({type:h==="button"&&g.onClick?"button":void 0},g,{className:w,ref:m,onClick:e,"aria-label":r}))}Wt.propTypes=il;function sl(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Yn(t,e){return Yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Yn(t,e)}function al(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Yn(t,e)}const go={disabled:!1};var cl=process.env.NODE_ENV!=="production"?C.oneOfType([C.number,C.shape({enter:C.number,exit:C.number,appear:C.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&C.oneOfType([C.string,C.shape({enter:C.string,exit:C.string,active:C.string}),C.shape({enter:C.string,enterDone:C.string,enterActive:C.string,exit:C.string,exitDone:C.string,exitActive:C.string})]);const bi=y.createContext(null);var ll=function(e){return e.scrollTop},At="unmounted",et="exited",tt="entering",ht="entered",Xn="exiting",He=function(t){al(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var c=o,a=c&&!c.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=et,i.appearStatus=tt):l=ht:r.unmountOnExit||r.mountOnEnter?l=At:l=et,i.state={status:l},i.nextCallback=null,i}e.getDerivedStateFromProps=function(o,i){var c=o.in;return c&&i.status===At?{status:et}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var c=this.state.status;this.props.in?c!==tt&&c!==ht&&(i=tt):(c===tt||c===ht)&&(i=Xn)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,c,a;return i=c=a=o,o!=null&&typeof o!="number"&&(i=o.exit,c=o.enter,a=o.appear!==void 0?o.appear:c),{exit:i,enter:c,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===tt){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Pt.findDOMNode(this);c&&ll(c)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===et&&this.setState({status:At})},n.performEnter=function(o){var i=this,c=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Pt.findDOMNode(this),a],u=l[0],d=l[1],p=this.getTimeouts(),f=a?p.appear:p.enter;if(!o&&!c||go.disabled){this.safeSetState({status:ht},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:tt},function(){i.props.onEntering(u,d),i.onTransitionEnd(f,function(){i.safeSetState({status:ht},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,c=this.getTimeouts(),a=this.props.nodeRef?void 0:Pt.findDOMNode(this);if(!i||go.disabled){this.safeSetState({status:et},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Xn},function(){o.props.onExiting(a),o.onTransitionEnd(c.exit,function(){o.safeSetState({status:et},function(){o.props.onExited(a)})})})},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,c=!0;return this.nextCallback=function(a){c&&(c=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var c=this.props.nodeRef?this.props.nodeRef.current:Pt.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!c||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===At)return null;var i=this.props,c=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 a=sl(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(bi.Provider,{value:null},typeof c=="function"?c(o,a):y.cloneElement(y.Children.only(c),a))},e}(y.Component);He.contextType=bi;He.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:C.shape({current:typeof Element>"u"?C.any:function(t,e,n,r,o,i){var c=t[e];return C.instanceOf(c&&"ownerDocument"in c?c.ownerDocument.defaultView.Element:Element)(t,e,n,r,o,i)}}),children:C.oneOfType([C.func.isRequired,C.element.isRequired]).isRequired,in:C.bool,mountOnEnter:C.bool,unmountOnExit:C.bool,appear:C.bool,enter:C.bool,exit:C.bool,timeout:function(e){var n=cl;e.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,[e].concat(o))},addEndListener:C.func,onEnter:C.func,onEntering:C.func,onEntered:C.func,onExit:C.func,onExiting:C.func,onExited:C.func}:{};function ut(){}He.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ut,onEntering:ut,onEntered:ut,onExit:ut,onExiting:ut,onExited:ut};He.UNMOUNTED=At;He.EXITED=et;He.ENTERING=tt;He.ENTERED=ht;He.EXITING=Xn;const Or=He;function Jn(t){return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jn(t)}var ul=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],dt;function un(){return un=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},un.apply(this,arguments)}function dl(t,e){if(t==null)return{};var n=fl(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function fl(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function pl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function hl(t,e,n){return e&&vo(t.prototype,e),n&&vo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ml(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qn(t,e)}function Qn(t,e){return Qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Qn(t,e)}function gl(t){var e=yl();return function(){var r=dn(t),o;if(e){var i=dn(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return vl(this,o)}}function vl(t,e){if(e&&(Jn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wi(t)}function wi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yl(){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 dn(t){return dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dn(t)}function yo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Et(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yo(Object(n),!0).forEach(function(r){gt(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function gt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bl=Et(Et({},Or.propTypes),{},{horizontal:C.bool,isOpen:C.bool,children:C.oneOfType([C.arrayOf(C.node),C.node]),tag:yn,className:C.node,navbar:C.bool,cssModule:C.object,innerRef:C.shape({current:C.object})}),wl=Et(Et({},Or.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:qc.Collapse}),xl=(dt={},gt(dt,Jt.ENTERING,"collapsing"),gt(dt,Jt.ENTERED,"collapse show"),gt(dt,Jt.EXITING,"collapsing"),gt(dt,Jt.EXITED,"collapse"),dt);function Cl(t){return xl[t]||"collapse"}var jr=function(t){ml(n,t);var e=gl(n);function n(r){var o;return pl(this,n),o=e.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(wi(o))}),o}return hl(n,[{key:"onEntering",value:function(o,i){var c=this.getNode();this.setState({dimension:this.getDimension(c)}),this.props.onEntering(c,i)}},{key:"onEntered",value:function(o,i){var c=this.getNode();this.setState({dimension:null}),this.props.onEntered(c,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,c=i.tag,a=i.horizontal,l=i.isOpen,u=i.className,d=i.navbar,p=i.cssModule,f=i.children;i.innerRef;var h=dl(i,ul),m=this.state.dimension,g=Gc(h,ho),v=zc(h,ho);return y.createElement(Or,un({},g,{in:l,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(w){var j=Cl(w),O=$t($(u,a&&"collapse-horizontal",j,d&&"navbar-collapse"),p),x=m===null?null:gt({},a?"width":"height",m);return y.createElement(c,un({},v,{style:Et(Et({},v.style),x),className:O,ref:o.nodeRef}),f)})}}]),n}(y.Component);jr.propTypes=bl;jr.defaultProps=wl;const xi=jr;function er(t){return er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},er(t)}var Ol=["className","cssModule","tag","innerRef"];function tr(){return tr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},tr.apply(this,arguments)}function jl(t,e){if(t==null)return{};var n=El(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function El(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Sl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function kl(t,e,n){return e&&bo(t.prototype,e),n&&bo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Tl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nr(t,e)}function nr(t,e){return nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},nr(t,e)}function Il(t){var e=Pl();return function(){var r=fn(t),o;if(e){var i=fn(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return _l(this,o)}}function _l(t,e){if(e&&(er(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rr(t)}function rr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pl(){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 fn(t){return fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fn(t)}var Nl={children:C.node,tag:yn,innerRef:C.oneOfType([C.object,C.func,C.string]),className:C.string,cssModule:C.object},Ci=function(t){Tl(n,t);var e=Il(n);function n(r){var o;return Sl(this,n),o=e.call(this,r),o.getRef=o.getRef.bind(rr(o)),o.submit=o.submit.bind(rr(o)),o}return kl(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,c=o.cssModule,a=o.tag,l=a===void 0?"form":a,u=o.innerRef,d=jl(o,Ol),p=$t(i,c);return y.createElement(l,tr({},d,{ref:u,className:p}))}}]),n}(y.Component);Ci.propTypes=Nl;const Al=Ci;var Ll=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function or(){return or=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},or.apply(this,arguments)}function Rl(t,e){if(t==null)return{};var n=Ml(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Ml(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}var Dl={children:C.node,row:C.bool,check:C.bool,switch:C.bool,inline:C.bool,floating:C.bool,noMargin:C.bool,disabled:C.bool,tag:yn,className:C.string,cssModule:C.object};function ir(t){var e=t.className,n=t.cssModule,r=t.row,o=t.disabled,i=t.check,c=t.inline,a=t.floating,l=t.noMargin,u=t.tag,d=u===void 0?"div":u,p=t.switch,f=Rl(t,Ll),h=i||p,m=$t($(e,r?"row":!1,h?"form-check":!1,p?"form-switch":!1,h||l?!1:"mb-3",h&&c?"form-check-inline":!1,h&&o?"disabled":!1,a&&"form-floating"),n);return d==="fieldset"&&(f.disabled=o),y.createElement(d,or({},f,{className:m}))}ir.propTypes=Dl;const bn=t=>{const{config:e,isFavoritismEnabled:n,level:r=1,onItemClick:o}=t,{isCollapsible:i,showAllItems:c,displayCount:a=Xs}=e,l=st(),u=qo(),[d,p]=y.useState(1),[f,h]=y.useState(0),[m,g]=y.useState(!1),v=y.useRef({}),w=e.items.filter(S=>Lt(S)),j=e.items.filter(S=>!Lt(S)),O=c?j:j.slice(0,d*a);y.useEffect(()=>{l.isOpen||p(1)},[l.isOpen]);const x=()=>{p(S=>S+1)},b=[...w,...O],k=S=>{v.current[S]?.querySelector("[tabIndex]")?.focus(),h(S)},_=()=>{i&&g(S=>!S)};return s.jsxs("li",{className:"section",children:[s.jsx(Vo,{iconSrc:e.iconSrc,iconName:e.iconName,style:{paddingLeft:`${r===1?4:(r-2)*12+6}px`},title:e.title,showCollapseIcon:i,isOpen:m,onClick:_,showHoverIndicator:r!==1}),s.jsxs(xi,{isOpen:i?m:!0,tag:"ul",children:[b.map((S,P)=>Lt(S)?s.jsx(bn,{config:S,isFavoritismEnabled:n,level:r+1,onItemClick:o},S.id):s.jsx("li",{ref:L=>v.current[P]=L,children:s.jsx(mi,{isFavoritismEnabled:n,item:S,onClick:(L,Z)=>o?.(L,{item:S,modifier:u,selectedContextMenuActionName:Z?.name}),style:{paddingLeft:`${r===1?7:r*11}px`},onKeyDown:L=>{Ho({event:L,moveFocus:k,currentIndex:f,min:0,max:b.length-1})},focused:f===P},S.id||P)},S.id||P)),!c&&e.items.length-w.length>a*d&&s.jsx("li",{"data-testid":"more-li-element",children:s.jsx("div",{className:"io-list-item more",style:{paddingLeft:`${(r===1?7:r*11)+8}px`},role:"button","aria-label":"More",...bt(x),children:s.jsxs("div",{className:"io-list-row",children:[s.jsx("span",{className:"title",children:"More..."}),s.jsx(oe,{size:12,name:"chevron-down","data-testid":"more-chevron"})]})})})]})]})},Oi=t=>`${t.type}-${t.id}`,Fl=(t,e)=>ji(t)[e],ji=t=>t.reduce((e,n)=>Lt(n)?{...e,...ji(n.items)}:{...e,[Oi(n)]:n},{}),Ei=y.createContext(void 0),Ul=()=>{const t=y.useContext(Ei);if(t===void 0)throw new Error("useSection must be used within a SectionProvider");return t},Wl=({children:t})=>{const[e,n]=y.useState(null);return s.jsx(Ei.Provider,{value:[e,n],children:t})},wn=({config:t,onItemClick:e})=>{const[n,r]=Ul(),o=st(),i=qo(),c=(a,l)=>{const{item:u,selectedContextMenuActionName:d}=l;r({itemName:Oi(u),selectedContextMenuActionName:d})};return y.useEffect(()=>{if(!e||!n)return;const{itemName:a,selectedContextMenuActionName:l}=n,u=Fl(t.items,a);u&&(e({item:u,modifier:i,selectedContextMenuActionName:l}),r(null),i!==mn.SHIFT&&o.close())},[n,t.items,o,e,i,r]),s.jsx(bn,{config:t,onItemClick:c})};function Si(t){const{displayCount:e,isFolderCollapsible:n,isSectionCollapsible:r,showAllItems:o,sortOrder:i}=t,c=ls(),a=us(),l=Yo(),u=Xo(),d=y.useMemo(()=>ss(c,a,{...{displayCount:e,showAllItems:o},isFolderCollapsible:n,isSectionCollapsible:r,sortOrder:i}),[c,a,e,n,r,o,i]),p=f=>{const{item:h,modifier:m,selectedContextMenuActionName:g}=f;if(!g)return l({id:h.id,modifier:m}).catch(v=>{console.error("Failed to start application",{error:v})});u(h,g)};return s.jsx(wn,{config:d,onItemClick:p})}const Zl={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"},Bl={loginPageLogo:Zl},Hl="200px",at=({logoSrc:t=Bl.loginPageLogo.value,width:e=Hl,className:n="logo"})=>s.jsx("img",{width:e,src:t,className:n,alt:"Login logo"});const Er=({children:t,description:e,heading:n,Image:r,title:o,className:i})=>s.jsxs("div",{className:$("info-card",i),children:[o&&s.jsx("h1",{className:"info-card-title",children:o}),r&&s.jsx("div",{className:"info-card-image",children:s.jsx(r,{})}),n&&s.jsx("h3",{className:"info-card-heading",children:n}),s.jsx("p",{className:"info-card-description",children:e}),t]}),Vl=[{name:"Google Chrome",Image:ta,url:"https://www.google.com/chrome/"},{name:"Microsoft Edge",Image:na,url:"https://www.microsoft.com/en-us/edge/download"},{name:"Opera",Image:ra,url:"https://www.opera.com/browsers/opera"}];const Sr=({className:t,children:e,Logo:n})=>s.jsxs("div",{className:$("info-page-container",t),children:[s.jsx(n,{className:"info-page-logo"}),s.jsx("div",{className:"info-page-wrapper",children:e})]}),zl=({supportEmail:t})=>s.jsxs("p",{className:"additional-information",children:["For more information, visit the io.Connect Browser",s.jsx("br",{}),s.jsx("a",{href:"https://docs.interop.io/browser/getting-started/requirements-compatibility/index.html",target:"_blank",rel:"noopener noreferrer",children:"documentation"}),t?s.jsxs(s.Fragment,{children:[" or ",s.jsx("a",{href:`mailto:${t}?subject=Issue with io.Connect Browser`,children:"contact us"}),"."]}):s.jsxs(s.Fragment,{children:[" or our ",s.jsx("a",{href:"https://support.interop.io",target:"_blank",rel:"noopener noreferrer",children:"help center"}),"."]})]});const Gl=({components:{Logo:t=at}={},supportEmail:e})=>{const n="Hmm… it seems that this browser or device doesn’t support critical io.Connect features.",r="For best experience, we recommend using the latest version of one of the following browsers:";return s.jsxs(Sr,{className:"browser-not-supported",Logo:t,children:[s.jsx(Er,{title:n,description:r}),s.jsx("ul",{className:"browsers-list",children:Vl.map(({Image:o,name:i,url:c})=>s.jsxs("li",{onClick:()=>window.open(c,"_blank","noopener,noreferrer"),children:[s.jsx("div",{className:"browsers-list-image",children:s.jsx(o,{})}),s.jsx("div",{children:i})]},i))}),s.jsx(zl,{supportEmail:e})]})};function Kt({children:t,className:e,color:n,...r}){return s.jsx("button",{className:$(e,"io-btn",n),...r,children:t})}function xn(t){const{className:e,items:n,onItemClick:r,...o}=t;return s.jsx("div",{className:$("io-btn-group",e),...o,children:n.map((i,c)=>{const{onClick:a,...l}=i;return s.jsx(Kt,{onClick:u=>{a&&a(u),r&&r(u,i)},...l},c)})})}const $l=(t,e)=>{const{isSectionCollapsible:n,sortOrder:r=Dt.DISABLED,...o}=e;return{id:"favorites-section",title:"Favorites",items:lr({items:t,sortOrder:r,ascendingCompare:Uo,descendingCompare:Wo}),iconName:"star",isCollapsible:n,...o}},ki=t=>{const{displayCount:e,isSectionCollapsible:n,showAllItems:r,sortOrder:o}=t,{favoriteEntities:i}=hn(),c=y.useMemo(()=>$l(i,{...{displayCount:e,showAllItems:r},isSectionCollapsible:n,sortOrder:o}),[i,e,n,r,o]);return i.length>0?s.jsx(wn,{config:c}):null},kr=y.createContext(void 0),Ti=()=>{const t=y.useContext(kr);if(t===void 0)throw new Error("useWorkspaceComponentsContext must be used within an WorkspaceComponentsContextProvider");return t},Ii=({icon:t})=>{const{user:e,onLogout:n,launchpadComponents:r}=Ti();return s.jsx(Wr,{user:e,onLogout:n,icon:t,components:r})},Kl=t=>{const{onLogout:e,user:n,launchpad:r,icon:o}=t;return s.jsx(Wr,{user:n,onLogout:e,icon:o,components:r?.components})};var sr=function(t,e){return sr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},sr(t,e)};function ql(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");sr(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var pe=function(){return pe=Object.assign||function(e){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)&&(e[i]=n[i])}return e},pe.apply(this,arguments)};function Yl(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function ft(t,e,n,r){function o(i){return i instanceof n?i:new n(function(c){c(i)})}return new(n||(n=Promise))(function(i,c){function a(d){try{u(r.next(d))}catch(p){c(p)}}function l(d){try{u(r.throw(d))}catch(p){c(p)}}function u(d){d.done?i(d.value):o(d.value).then(a,l)}u((r=r.apply(t,e||[])).next())})}function pt(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,c;return c={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(u){return function(d){return l([u,d])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;c&&(c=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Re(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}var vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ir(t,e){return t(e={exports:{}},e.exports),e.exports}var nt=Ir(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function r(){var o=this;this.locked=new Map,this.addToLocked=function(i,c){var a=o.locked.get(i);a===void 0?c===void 0?o.locked.set(i,[]):o.locked.set(i,[c]):c!==void 0&&(a.unshift(c),o.locked.set(i,a))},this.isLocked=function(i){return o.locked.has(i)},this.lock=function(i){return new Promise(function(c,a){o.isLocked(i)?o.addToLocked(i,c):(o.addToLocked(i),c())})},this.unlock=function(i){var c=o.locked.get(i);if(c!==void 0&&c.length!==0){var a=c.pop();o.locked.set(i,c),a!==void 0&&setTimeout(a,0)}else o.locked.delete(i)}}return r.getInstance=function(){return r.instance===void 0&&(r.instance=new r),r.instance},r}();e.default=function(){return n.getInstance()}});Tr(nt);var Xl=Tr(Ir(function(t,e){var n=vt&&vt.__awaiter||function(l,u,d,p){return new(d||(d=Promise))(function(f,h){function m(w){try{v(p.next(w))}catch(j){h(j)}}function g(w){try{v(p.throw(w))}catch(j){h(j)}}function v(w){w.done?f(w.value):new d(function(j){j(w.value)}).then(m,g)}v((p=p.apply(l,u||[])).next())})},r=vt&&vt.__generator||function(l,u){var d,p,f,h,m={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return h={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function g(v){return function(w){return function(j){if(d)throw new TypeError("Generator is already executing.");for(;m;)try{if(d=1,p&&(f=2&j[0]?p.return:j[0]?p.throw||((f=p.return)&&f.call(p),0):p.next)&&!(f=f.call(p,j[1])).done)return f;switch(p=0,f&&(j=[2&j[0],f.value]),j[0]){case 0:case 1:f=j;break;case 4:return m.label++,{value:j[1],done:!1};case 5:m.label++,p=j[1],j=[0];continue;case 7:j=m.ops.pop(),m.trys.pop();continue;default:if(f=m.trys,!((f=f.length>0&&f[f.length-1])||j[0]!==6&&j[0]!==2)){m=0;continue}if(j[0]===3&&(!f||j[1]>f[0]&&j[1]<f[3])){m.label=j[1];break}if(j[0]===6&&m.label<f[1]){m.label=f[1],f=j;break}if(f&&m.label<f[2]){m.label=f[2],m.ops.push(j);break}f[2]&&m.ops.pop(),m.trys.pop();continue}j=u.call(l,m)}catch(O){j=[6,O],p=0}finally{d=f=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}([v,w])}}};Object.defineProperty(e,"__esModule",{value:!0});var o="browser-tabs-lock-key";function i(l){return new Promise(function(u){return setTimeout(u,l)})}function c(l){for(var u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",p=0;p<l;p++)d+=u[Math.floor(Math.random()*u.length)];return d}var a=function(){function l(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+c(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),l.waiters===void 0&&(l.waiters=[])}return l.prototype.acquireLock=function(u,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,function(){var p,f,h,m,g,v;return r(this,function(w){switch(w.label){case 0:p=Date.now()+c(4),f=Date.now()+d,h=o+"-"+u,m=window.localStorage,w.label=1;case 1:return Date.now()<f?[4,i(30)]:[3,8];case 2:return w.sent(),m.getItem(h)!==null?[3,5]:(g=this.id+"-"+u+"-"+p,[4,i(Math.floor(25*Math.random()))]);case 3:return w.sent(),m.setItem(h,JSON.stringify({id:this.id,iat:p,timeoutKey:g,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,i(30)];case 4:return w.sent(),(v=m.getItem(h))!==null&&(v=JSON.parse(v)).id===this.id&&v.iat===p?(this.acquiredIatSet.add(p),this.refreshLockWhileAcquired(h,p),[2,!0]):[3,7];case 5:return l.lockCorrector(),[4,this.waitForSomethingToChange(f)];case 6:w.sent(),w.label=7;case 7:return p=Date.now()+c(4),[3,1];case 8:return[2,!1]}})})},l.prototype.refreshLockWhileAcquired=function(u,d){return n(this,void 0,void 0,function(){var p=this;return r(this,function(f){return setTimeout(function(){return n(p,void 0,void 0,function(){var h,m;return r(this,function(g){switch(g.label){case 0:return[4,nt.default().lock(d)];case 1:return g.sent(),this.acquiredIatSet.has(d)?(h=window.localStorage,(m=h.getItem(u))===null?(nt.default().unlock(d),[2]):((m=JSON.parse(m)).timeRefreshed=Date.now(),h.setItem(u,JSON.stringify(m)),nt.default().unlock(d),this.refreshLockWhileAcquired(u,d),[2])):(nt.default().unlock(d),[2])}})})},1e3),[2]})})},l.prototype.waitForSomethingToChange=function(u){return n(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return[4,new Promise(function(p){var f=!1,h=Date.now(),m=!1;function g(){if(m||(window.removeEventListener("storage",g),l.removeFromWaiting(g),clearTimeout(v),m=!0),!f){f=!0;var w=50-(Date.now()-h);w>0?setTimeout(p,w):p()}}window.addEventListener("storage",g),l.addToWaiting(g);var v=setTimeout(g,Math.max(0,u-Date.now()))})];case 1:return d.sent(),[2]}})})},l.addToWaiting=function(u){this.removeFromWaiting(u),l.waiters!==void 0&&l.waiters.push(u)},l.removeFromWaiting=function(u){l.waiters!==void 0&&(l.waiters=l.waiters.filter(function(d){return d!==u}))},l.notifyWaiters=function(){l.waiters!==void 0&&l.waiters.slice().forEach(function(u){return u()})},l.prototype.releaseLock=function(u){return n(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(u)];case 1:return[2,d.sent()]}})})},l.prototype.releaseLock__private__=function(u){return n(this,void 0,void 0,function(){var d,p,f;return r(this,function(h){switch(h.label){case 0:return d=window.localStorage,p=o+"-"+u,(f=d.getItem(p))===null?[2]:(f=JSON.parse(f)).id!==this.id?[3,2]:[4,nt.default().lock(f.iat)];case 1:h.sent(),this.acquiredIatSet.delete(f.iat),d.removeItem(p),nt.default().unlock(f.iat),l.notifyWaiters(),h.label=2;case 2:return[2]}})})},l.lockCorrector=function(){for(var u=Date.now()-5e3,d=window.localStorage,p=Object.keys(d),f=!1,h=0;h<p.length;h++){var m=p[h];if(m.includes(o)){var g=d.getItem(m);g!==null&&((g=JSON.parse(g)).timeRefreshed===void 0&&g.timeAcquired<u||g.timeRefreshed!==void 0&&g.timeRefreshed<u)&&(d.removeItem(m),f=!0)}}f&&l.notifyWaiters()},l.waiters=void 0,l}();e.default=a}));const Jl={timeoutInSeconds:60},_i={name:"auth0-spa-js",version:"2.0.4"},Pi=()=>Date.now();class Ee extends Error{constructor(e,n){super(n),this.error=e,this.error_description=n,Object.setPrototypeOf(this,Ee.prototype)}static fromPayload({error:e,error_description:n}){return new Ee(e,n)}}class _r extends Ee{constructor(e,n,r,o=null){super(e,n),this.state=r,this.appState=o,Object.setPrototypeOf(this,_r.prototype)}}class Zt extends Ee{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Zt.prototype)}}class Pr extends Zt{constructor(e){super(),this.popup=e,Object.setPrototypeOf(this,Pr.prototype)}}class Nr extends Ee{constructor(e){super("cancelled","Popup closed"),this.popup=e,Object.setPrototypeOf(this,Nr.prototype)}}class Ar extends Ee{constructor(e,n,r){super(e,n),this.mfa_token=r,Object.setPrototypeOf(this,Ar.prototype)}}class Cn extends Ee{constructor(e,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${wo(e,["default"])}', scope: '${wo(n)}')`),this.audience=e,this.scope=n,Object.setPrototypeOf(this,Cn.prototype)}}function wo(t,e=[]){return t&&!e.includes(t)?t:""}const rn=()=>window.crypto,An=()=>{const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let e="";return Array.from(rn().getRandomValues(new Uint8Array(43))).forEach(n=>e+=t[n%t.length]),e},xo=t=>btoa(t),ar=t=>{var{clientId:e}=t,n=Re(t,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter(o=>r[o]!==void 0).reduce((o,i)=>Object.assign(Object.assign({},o),{[i]:r[i]}),{}))(Object.assign({client_id:e},n))).toString()},Co=t=>(e=>decodeURIComponent(atob(e).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(t.replace(/_/g,"/").replace(/-/g,"+")),Ql=async(t,e)=>{const n=await fetch(t,e);return{ok:n.ok,json:await n.json()}},eu=async(t,e,n)=>{const r=new AbortController;let o;return e.signal=r.signal,Promise.race([Ql(t,e),new Promise((i,c)=>{o=setTimeout(()=>{r.abort(),c(new Error("Timeout when executing 'fetch'"))},n)})]).finally(()=>{clearTimeout(o)})},tu=async(t,e,n,r,o,i,c)=>{return a={auth:{audience:e,scope:n},timeout:o,fetchUrl:t,fetchOptions:r,useFormData:c},l=i,new Promise(function(u,d){const p=new MessageChannel;p.port1.onmessage=function(f){f.data.error?d(new Error(f.data.error)):u(f.data),p.port1.close()},l.postMessage(a,[p.port2])});var a,l},nu=async(t,e,n,r,o,i,c=1e4)=>o?tu(t,e,n,r,c,o,i):eu(t,r,c);async function ru(t,e){var{baseUrl:n,timeout:r,audience:o,scope:i,auth0Client:c,useFormData:a}=t,l=Re(t,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=a?ar(l):JSON.stringify(l);return await async function(d,p,f,h,m,g,v){let w,j=null;for(let S=0;S<3;S++)try{w=await nu(d,f,h,m,g,v,p),j=null;break}catch(P){j=P}if(j)throw j;const O=w.json,{error:x,error_description:b}=O,k=Re(O,["error","error_description"]),{ok:_}=w;if(!_){const S=b||`HTTP error. Unable to fetch ${d}`;throw x==="mfa_required"?new Ar(x,S,k.mfa_token):x==="missing_refresh_token"?new Cn(f,h):new Ee(x||"request_error",S)}return k}(`${n}/oauth/token`,r,o||"default",i,{method:"POST",body:u,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(c||_i))}},e,a)}const Qt=(...t)=>{return(e=t.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(e))).join(" ");var e};class Me{constructor(e,n="@@auth0spajs@@",r){this.prefix=n,this.suffix=r,this.clientId=e.clientId,this.scope=e.scope,this.audience=e.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(e){const[n,r,o,i]=e.split("::");return new Me({clientId:r,scope:i,audience:o},n)}static fromCacheEntry(e){const{scope:n,audience:r,client_id:o}=e;return new Me({scope:n,audience:r,clientId:o})}}class ou{set(e,n){localStorage.setItem(e,JSON.stringify(n))}get(e){const n=window.localStorage.getItem(e);if(n)try{return JSON.parse(n)}catch{return}}remove(e){localStorage.removeItem(e)}allKeys(){return Object.keys(window.localStorage).filter(e=>e.startsWith("@@auth0spajs@@"))}}class Ni{constructor(){this.enclosedCache=function(){let e={};return{set(n,r){e[n]=r},get(n){const r=e[n];if(r)return r},remove(n){delete e[n]},allKeys:()=>Object.keys(e)}}()}}class iu{constructor(e,n,r){this.cache=e,this.keyManifest=n,this.nowProvider=r||Pi}async setIdToken(e,n,r){var o;const i=this.getIdTokenCacheKey(e);await this.cache.set(i,{id_token:n,decodedToken:r}),await((o=this.keyManifest)===null||o===void 0?void 0:o.add(i))}async getIdToken(e){const n=await this.cache.get(this.getIdTokenCacheKey(e.clientId));if(!n&&e.scope&&e.audience){const r=await this.get(e);return!r||!r.id_token||!r.decodedToken?void 0:{id_token:r.id_token,decodedToken:r.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(e,n=0){var r;let o=await this.cache.get(e.toKey());if(!o){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(e,a);l&&(o=await this.cache.get(l))}if(!o)return;const i=await this.nowProvider(),c=Math.floor(i/1e3);return o.expiresAt-n<c?o.body.refresh_token?(o.body={refresh_token:o.body.refresh_token},await this.cache.set(e.toKey(),o),o.body):(await this.cache.remove(e.toKey()),void await((r=this.keyManifest)===null||r===void 0?void 0:r.remove(e.toKey()))):o.body}async set(e){var n;const r=new Me({clientId:e.client_id,scope:e.scope,audience:e.audience}),o=await this.wrapCacheEntry(e);await this.cache.set(r.toKey(),o),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(r.toKey()))}async clear(e){var n;const r=await this.getCacheKeys();r&&(await r.filter(o=>!e||o.includes(e)).reduce(async(o,i)=>{await o,await this.cache.remove(i)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(e){const n=await this.nowProvider();return{body:e,expiresAt:Math.floor(n/1e3)+e.expires_in}}async getCacheKeys(){var e;return this.keyManifest?(e=await this.keyManifest.get())===null||e===void 0?void 0:e.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(e){return new Me({clientId:e},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(e,n){return n.filter(r=>{var o;const i=Me.fromKey(r),c=new Set(i.scope&&i.scope.split(" ")),a=((o=e.scope)===null||o===void 0?void 0:o.split(" "))||[],l=i.scope&&a.reduce((u,d)=>u&&c.has(d),!0);return i.prefix==="@@auth0spajs@@"&&i.clientId===e.clientId&&i.audience===e.audience&&l})[0]}}class su{constructor(e,n){this.storage=e,this.clientId=n,this.storageKey=`a0.spajs.txs.${this.clientId}`,this.transaction=this.storage.get(this.storageKey)}create(e){this.transaction=e,this.storage.save(this.storageKey,e,{daysUntilExpire:1})}get(){return this.transaction}remove(){delete this.transaction,this.storage.remove(this.storageKey)}}const _t=t=>typeof t=="number",au=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],cu=t=>{if(!t.id_token)throw new Error("ID token is required but missing");const e=(i=>{const c=i.split("."),[a,l,u]=c;if(c.length!==3||!a||!l||!u)throw new Error("ID token could not be decoded");const d=JSON.parse(Co(l)),p={__raw:i},f={};return Object.keys(d).forEach(h=>{p[h]=d[h],au.includes(h)||(f[h]=d[h])}),{encoded:{header:a,payload:l,signature:u},header:JSON.parse(Co(a)),claims:p,user:f}})(t.id_token);if(!e.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(e.claims.iss!==t.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${t.iss}", found "${e.claims.iss}"`);if(!e.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(e.header.alg!=="RS256")throw new Error(`Signature algorithm of "${e.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!e.claims.aud||typeof e.claims.aud!="string"&&!Array.isArray(e.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(e.claims.aud)){if(!e.claims.aud.includes(t.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${t.aud}" but was not one of "${e.claims.aud.join(", ")}"`);if(e.claims.aud.length>1){if(!e.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(e.claims.azp!==t.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${t.aud}", found "${e.claims.azp}"`)}}else if(e.claims.aud!==t.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${t.aud}" but found "${e.claims.aud}"`);if(t.nonce){if(!e.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(e.claims.nonce!==t.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${t.nonce}", found "${e.claims.nonce}"`)}if(t.max_age&&!_t(e.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(e.claims.exp==null||!_t(e.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!_t(e.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const n=t.leeway||60,r=new Date(t.now||Date.now()),o=new Date(0);if(o.setUTCSeconds(e.claims.exp+n),r>o)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${r}) is after expiration time (${o})`);if(e.claims.nbf!=null&&_t(e.claims.nbf)){const i=new Date(0);if(i.setUTCSeconds(e.claims.nbf-n),r<i)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${r}) is before ${i}`)}if(e.claims.auth_time!=null&&_t(e.claims.auth_time)){const i=new Date(0);if(i.setUTCSeconds(parseInt(e.claims.auth_time)+t.max_age+n),r>i)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${r}) is after last auth at ${i}`)}if(t.organizationId){if(!e.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(t.organizationId!==e.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${t.organizationId}", found "${e.claims.org_id}"`)}return e};var rt=Ir(function(t,e){var n=vt&&vt.__assign||function(){return n=Object.assign||function(l){for(var u,d=1,p=arguments.length;d<p;d++)for(var f in u=arguments[d])Object.prototype.hasOwnProperty.call(u,f)&&(l[f]=u[f]);return l},n.apply(this,arguments)};function r(l,u){if(!u)return"";var d="; "+l;return u===!0?d:d+"="+u}function o(l,u,d){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(u).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(p){if(typeof p.expires=="number"){var f=new Date;f.setMilliseconds(f.getMilliseconds()+864e5*p.expires),p.expires=f}return r("Expires",p.expires?p.expires.toUTCString():"")+r("Domain",p.domain)+r("Path",p.path)+r("Secure",p.secure)+r("SameSite",p.sameSite)}(d)}function i(l){for(var u={},d=l?l.split("; "):[],p=/(%[\dA-F]{2})+/gi,f=0;f<d.length;f++){var h=d[f].split("="),m=h.slice(1).join("=");m.charAt(0)==='"'&&(m=m.slice(1,-1));try{u[h[0].replace(p,decodeURIComponent)]=m.replace(p,decodeURIComponent)}catch{}}return u}function c(){return i(document.cookie)}function a(l,u,d){document.cookie=o(l,u,n({path:"/"},d))}e.__esModule=!0,e.encode=o,e.parse=i,e.getAll=c,e.get=function(l){return c()[l]},e.set=a,e.remove=function(l,u){a(l,"",n(n({},u),{expires:-1}))}});Tr(rt),rt.encode,rt.parse,rt.getAll;var lu=rt.get,Ai=rt.set,Li=rt.remove;const mt={get(t){const e=lu(t);if(e!==void 0)return JSON.parse(e)},save(t,e,n){let r={};window.location.protocol==="https:"&&(r={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Ai(t,JSON.stringify(e),r)},remove(t,e){let n={};e?.cookieDomain&&(n.domain=e.cookieDomain),Li(t,n)}},uu={get(t){return mt.get(t)||mt.get(`_legacy_${t}`)},save(t,e,n){let r={};window.location.protocol==="https:"&&(r={secure:!0}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Ai(`_legacy_${t}`,JSON.stringify(e),r),mt.save(t,e,n)},remove(t,e){let n={};e?.cookieDomain&&(n.domain=e.cookieDomain),Li(t,n),mt.remove(t,e),mt.remove(`_legacy_${t}`,e)}},du={get(t){if(typeof sessionStorage>"u")return;const e=sessionStorage.getItem(t);return e!=null?JSON.parse(e):void 0},save(t,e){sessionStorage.setItem(t,JSON.stringify(e))},remove(t){sessionStorage.removeItem(t)}};function fu(t,e,n){var r=e===void 0?null:e,o=function(l,u){var d=atob(l);if(u){for(var p=new Uint8Array(d.length),f=0,h=d.length;f<h;++f)p[f]=d.charCodeAt(f);return String.fromCharCode.apply(null,new Uint16Array(p.buffer))}return d}(t,n!==void 0&&n),i=o.indexOf(`
51
- `,10)+1,c=o.substring(i)+(r?"//# sourceMappingURL="+r:""),a=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(a)}var Oo,jo,Eo,Ln,pu=(Oo="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==",jo=null,Eo=!1,function(t){return Ln=Ln||fu(Oo,jo,Eo),new Worker(Ln,t)});const Rn={};class hu{constructor(e,n){this.cache=e,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(e){var n;const r=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);r.add(e),await this.cache.set(this.manifestKey,{keys:[...r]})}async remove(e){const n=await this.cache.get(this.manifestKey);if(n){const r=new Set(n.keys);return r.delete(e),r.size>0?await this.cache.set(this.manifestKey,{keys:[...r]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(e){return`@@auth0spajs@@::${e}`}}const mu={memory:()=>new Ni().enclosedCache,localstorage:()=>new ou},So=t=>mu[t],ko=t=>{const{openUrl:e,onRedirect:n}=t,r=Re(t,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:e===!1||e?e:n})},Mn=new Xl;class gu{constructor(e){let n,r;if(this.userCache=new Ni().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Mn.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),e),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),e.authorizationParams)}),typeof window<"u"&&(()=>{if(!rn())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(rn().subtle===void 0)throw new Error(`
49
+ */var kn,ao;function Wc(){if(ao)return kn;ao=1;var t=Object.getOwnPropertySymbols,e=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 c={},a=0;a<10;a++)c["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(c).map(function(d){return c[d]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return kn=o()?Object.assign:function(i,c){for(var a,l=r(i),u,d=1;d<arguments.length;d++){a=Object(arguments[d]);for(var p in a)e.call(a,p)&&(l[p]=a[p]);if(t){u=t(a);for(var f=0;f<u.length;f++)n.call(a,u[f])&&(l[u[f]]=a[u[f]])}}return l},kn}var Tn,co;function Cr(){if(co)return Tn;co=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Tn=t,Tn}var Pn,lo;function gi(){return lo||(lo=1,Pn=Function.call.bind(Object.prototype.hasOwnProperty)),Pn}var In,uo;function Hc(){if(uo)return In;uo=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=Cr(),n={},r=gi();t=function(i){var c="Warning: "+i;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function o(i,c,a,l,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var p;try{if(typeof i[d]!="function"){var f=Error((l||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}p=i[d](c,d,l,a,null,e)}catch(m){p=m}if(p&&!(p instanceof Error)&&t((l||"React class")+": type specification of "+a+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var h=u?u():"";t("Failed "+a+" type: "+p.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},In=o,In}var _n,fo;function Uc(){if(fo)return _n;fo=1;var t=vi(),e=Wc(),n=Cr(),r=gi(),o=Hc(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function c(){return null}return _n=function(a,l){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(S){var P=S&&(u&&S[u]||S[d]);if(typeof P=="function")return P}var f="<<anonymous>>",h={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:E(),arrayOf:O,element:x(),elementType:y(),instanceOf:k,node:L(),objectOf:j,oneOf:I,oneOfType:_,shape:ie,exact:te};function m(S,P){return S===P?S!==0||1/S===1/P:S!==S&&P!==P}function v(S,P){this.message=S,this.data=P&&typeof P=="object"?P:{},this.stack=""}v.prototype=Error.prototype;function g(S){if(process.env.NODE_ENV!=="production")var P={},R=0;function D(M,A,W,V,$,B,se){if(V=V||f,B=B||W,se!==n){if(l){var T=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 T.name="Invariant Violation",T}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var me=V+":"+W;!P[me]&&R<3&&(i("You are manually calling a React.PropTypes validation function for the `"+B+"` prop on `"+V+"`. 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[me]=!0,R++)}}return A[W]==null?M?A[W]===null?new v("The "+$+" `"+B+"` is marked as required "+("in `"+V+"`, but its value is `null`.")):new v("The "+$+" `"+B+"` is marked as required in "+("`"+V+"`, but its value is `undefined`.")):null:S(A,W,V,$,B)}var N=D.bind(null,!1);return N.isRequired=D.bind(null,!0),N}function w(S){function P(R,D,N,M,A,W){var V=R[D],$=J(V);if($!==S){var B=ne(V);return new v("Invalid "+M+" `"+A+"` of type "+("`"+B+"` supplied to `"+N+"`, expected ")+("`"+S+"`."),{expectedType:S})}return null}return g(P)}function E(){return g(c)}function O(S){function P(R,D,N,M,A){if(typeof S!="function")return new v("Property `"+A+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var W=R[D];if(!Array.isArray(W)){var V=J(W);return new v("Invalid "+M+" `"+A+"` of type "+("`"+V+"` supplied to `"+N+"`, expected an array."))}for(var $=0;$<W.length;$++){var B=S(W,$,N,M,A+"["+$+"]",n);if(B instanceof Error)return B}return null}return g(P)}function x(){function S(P,R,D,N,M){var A=P[R];if(!a(A)){var W=J(A);return new v("Invalid "+N+" `"+M+"` of type "+("`"+W+"` supplied to `"+D+"`, expected a single ReactElement."))}return null}return g(S)}function y(){function S(P,R,D,N,M){var A=P[R];if(!t.isValidElementType(A)){var W=J(A);return new v("Invalid "+N+" `"+M+"` of type "+("`"+W+"` supplied to `"+D+"`, expected a single ReactElement type."))}return null}return g(S)}function k(S){function P(R,D,N,M,A){if(!(R[D]instanceof S)){var W=S.name||f,V=ve(R[D]);return new v("Invalid "+M+" `"+A+"` of type "+("`"+V+"` supplied to `"+N+"`, expected ")+("instance of `"+W+"`."))}return null}return g(P)}function I(S){if(!Array.isArray(S))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.")),c;function P(R,D,N,M,A){for(var W=R[D],V=0;V<S.length;V++)if(m(W,S[V]))return null;var $=JSON.stringify(S,function(se,T){var me=ne(T);return me==="symbol"?String(T):T});return new v("Invalid "+M+" `"+A+"` of value `"+String(W)+"` "+("supplied to `"+N+"`, expected one of "+$+"."))}return g(P)}function j(S){function P(R,D,N,M,A){if(typeof S!="function")return new v("Property `"+A+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var W=R[D],V=J(W);if(V!=="object")return new v("Invalid "+M+" `"+A+"` of type "+("`"+V+"` supplied to `"+N+"`, expected an object."));for(var $ in W)if(r(W,$)){var B=S(W,$,N,M,A+"."+$,n);if(B instanceof Error)return B}return null}return g(P)}function _(S){if(!Array.isArray(S))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var P=0;P<S.length;P++){var R=S[P];if(typeof R!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Oe(R)+" at index "+P+"."),c}function D(N,M,A,W,V){for(var $=[],B=0;B<S.length;B++){var se=S[B],T=se(N,M,A,W,V,n);if(T==null)return null;T.data&&r(T.data,"expectedType")&&$.push(T.data.expectedType)}var me=$.length>0?", expected one of type ["+$.join(", ")+"]":"";return new v("Invalid "+W+" `"+V+"` supplied to "+("`"+A+"`"+me+"."))}return g(D)}function L(){function S(P,R,D,N,M){return le(P[R])?null:new v("Invalid "+N+" `"+M+"` supplied to "+("`"+D+"`, expected a ReactNode."))}return g(S)}function F(S,P,R,D,N){return new v((S||"React class")+": "+P+" type `"+R+"."+D+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function ie(S){function P(R,D,N,M,A){var W=R[D],V=J(W);if(V!=="object")return new v("Invalid "+M+" `"+A+"` of type `"+V+"` "+("supplied to `"+N+"`, expected `object`."));for(var $ in S){var B=S[$];if(typeof B!="function")return F(N,M,A,$,ne(B));var se=B(W,$,N,M,A+"."+$,n);if(se)return se}return null}return g(P)}function te(S){function P(R,D,N,M,A){var W=R[D],V=J(W);if(V!=="object")return new v("Invalid "+M+" `"+A+"` of type `"+V+"` "+("supplied to `"+N+"`, expected `object`."));var $=e({},R[D],S);for(var B in $){var se=S[B];if(r(S,B)&&typeof se!="function")return F(N,M,A,B,ne(se));if(!se)return new v("Invalid "+M+" `"+A+"` key `"+B+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(R[D],null," ")+`
50
+ Valid keys: `+JSON.stringify(Object.keys(S),null," "));var T=se(W,B,N,M,A+"."+B,n);if(T)return T}return null}return g(P)}function le(S){switch(typeof S){case"number":case"string":case"undefined":return!0;case"boolean":return!S;case"object":if(Array.isArray(S))return S.every(le);if(S===null||a(S))return!0;var P=p(S);if(P){var R=P.call(S),D;if(P!==S.entries){for(;!(D=R.next()).done;)if(!le(D.value))return!1}else for(;!(D=R.next()).done;){var N=D.value;if(N&&!le(N[1]))return!1}}else return!1;return!0;default:return!1}}function we(S,P){return S==="symbol"?!0:P?P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol:!1}function J(S){var P=typeof S;return Array.isArray(S)?"array":S instanceof RegExp?"object":we(P,S)?"symbol":P}function ne(S){if(typeof S>"u"||S===null)return""+S;var P=J(S);if(P==="object"){if(S instanceof Date)return"date";if(S instanceof RegExp)return"regexp"}return P}function Oe(S){var P=ne(S);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function ve(S){return!S.constructor||!S.constructor.name?f:S.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},_n}var Nn,po;function Fc(){if(po)return Nn;po=1;var t=Cr();function e(){}function n(){}return n.resetWarningCache=e,Nn=function(){function r(c,a,l,u,d,p){if(p!==t){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:e};return i.PropTypes=i,i},Nn}if(process.env.NODE_ENV!=="production"){var Vc=vi(),zc=!0;ro.exports=Uc()(Vc.isElement,zc)}else ro.exports=Fc()();function Gn(t){return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gn(t)}var Zc;function Gt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zc;return e?t.split(" ").map(function(n){return e[n]||n}).join(" "):t}function Bc(t,e){var n={};return Object.keys(t).forEach(function(r){e.indexOf(r)===-1&&(n[r]=t[r])}),n}function $c(t,e){for(var n=Array.isArray(e)?e:[e],r=n.length,o,i={};r>0;)r-=1,o=n[r],i[o]=t[o];return i}var Gc=(typeof window>"u"?"undefined":Gn(window))==="object"&&window.Element||function(){};function Kc(t,e,n){if(!(t[e]instanceof Gc))return new Error("Invalid prop `"+e+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}C.oneOfType([C.string,C.func,Kc,C.shape({current:C.any})]);var bn=C.oneOfType([C.func,C.string,C.shape({$$typeof:C.symbol,render:C.func}),C.arrayOf(C.oneOfType([C.func,C.string,C.shape({$$typeof:C.symbol,render:C.func})]))]),qc={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},ho=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Jt={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},Yc=["className","cssModule","variant","innerRef"];function Kn(){return Kn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Kn.apply(this,arguments)}function mo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Xc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mo(Object(n),!0).forEach(function(r){Jc(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Jc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qc(t,e){if(t==null)return{};var n=el(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function el(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}var tl={active:C.bool,"aria-label":C.string,onClick:C.func,variant:C.oneOf(["white"]),className:C.string,cssModule:C.object,innerRef:C.oneOfType([C.object,C.string,C.func])};function bi(t){var e=t.className;t.cssModule;var n=t.variant,r=t.innerRef,o=Qc(t,Yc),i=Gt(G(e,"btn-close",n&&"btn-close-".concat(n)));return b.createElement("button",Kn({ref:r,type:"button",className:i},Xc({"aria-label":"close"},o)))}bi.propTypes=tl;var nl=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function qn(){return qn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},qn.apply(this,arguments)}function rl(t,e){if(t==null)return{};var n=ol(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function ol(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}var il={active:C.bool,"aria-label":C.string,block:C.bool,children:C.node,className:C.string,cssModule:C.object,close:C.bool,color:C.string,disabled:C.bool,innerRef:C.oneOfType([C.object,C.func,C.string]),onClick:C.func,outline:C.bool,size:C.string,tag:bn};function Ut(t){var e=b.useCallback(function(E){if(t.disabled){E.preventDefault();return}if(t.onClick)return t.onClick(E)},[t.onClick,t.disabled]),n=t.active,r=t["aria-label"],o=t.block,i=t.className,c=t.close,a=t.cssModule,l=t.color,u=l===void 0?"secondary":l,d=t.outline,p=t.size,f=t.tag,h=f===void 0?"button":f,m=t.innerRef,v=rl(t,nl);if(c)return b.createElement(bi,v);var g="btn".concat(d?"-outline":"","-").concat(u),w=Gt(G(i,"btn",g,p?"btn-".concat(p):!1,o?"d-block w-100":!1,{active:n,disabled:t.disabled}),a);return v.href&&h==="button"&&(h="a"),b.createElement(h,qn({type:h==="button"&&v.onClick?"button":void 0},v,{className:w,ref:m,onClick:e,"aria-label":r}))}Ut.propTypes=il;function sl(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Yn(t,e){return Yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Yn(t,e)}function al(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Yn(t,e)}const vo={disabled:!1};var cl=process.env.NODE_ENV!=="production"?C.oneOfType([C.number,C.shape({enter:C.number,exit:C.number,appear:C.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&C.oneOfType([C.string,C.shape({enter:C.string,exit:C.string,active:C.string}),C.shape({enter:C.string,enterDone:C.string,enterActive:C.string,exit:C.string,exitDone:C.string,exitActive:C.string})]);const yi=b.createContext(null);var ll=function(e){return e.scrollTop},At="unmounted",et="exited",tt="entering",ht="entered",Xn="exiting",ze=function(t){al(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var c=o,a=c&&!c.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=et,i.appearStatus=tt):l=ht:r.unmountOnExit||r.mountOnEnter?l=At:l=et,i.state={status:l},i.nextCallback=null,i}e.getDerivedStateFromProps=function(o,i){var c=o.in;return c&&i.status===At?{status:et}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var c=this.state.status;this.props.in?c!==tt&&c!==ht&&(i=tt):(c===tt||c===ht)&&(i=Xn)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,c,a;return i=c=a=o,o!=null&&typeof o!="number"&&(i=o.exit,c=o.enter,a=o.appear!==void 0?o.appear:c),{exit:i,enter:c,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===tt){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:_t.findDOMNode(this);c&&ll(c)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===et&&this.setState({status:At})},n.performEnter=function(o){var i=this,c=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[_t.findDOMNode(this),a],u=l[0],d=l[1],p=this.getTimeouts(),f=a?p.appear:p.enter;if(!o&&!c||vo.disabled){this.safeSetState({status:ht},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:tt},function(){i.props.onEntering(u,d),i.onTransitionEnd(f,function(){i.safeSetState({status:ht},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,c=this.getTimeouts(),a=this.props.nodeRef?void 0:_t.findDOMNode(this);if(!i||vo.disabled){this.safeSetState({status:et},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Xn},function(){o.props.onExiting(a),o.onTransitionEnd(c.exit,function(){o.safeSetState({status:et},function(){o.props.onExited(a)})})})},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,c=!0;return this.nextCallback=function(a){c&&(c=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var c=this.props.nodeRef?this.props.nodeRef.current:_t.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!c||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===At)return null;var i=this.props,c=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 a=sl(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b.createElement(yi.Provider,{value:null},typeof c=="function"?c(o,a):b.cloneElement(b.Children.only(c),a))},e}(b.Component);ze.contextType=yi;ze.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:C.shape({current:typeof Element>"u"?C.any:function(t,e,n,r,o,i){var c=t[e];return C.instanceOf(c&&"ownerDocument"in c?c.ownerDocument.defaultView.Element:Element)(t,e,n,r,o,i)}}),children:C.oneOfType([C.func.isRequired,C.element.isRequired]).isRequired,in:C.bool,mountOnEnter:C.bool,unmountOnExit:C.bool,appear:C.bool,enter:C.bool,exit:C.bool,timeout:function(e){var n=cl;e.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,[e].concat(o))},addEndListener:C.func,onEnter:C.func,onEntering:C.func,onEntered:C.func,onExit:C.func,onExiting:C.func,onExited:C.func}:{};function ut(){}ze.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ut,onEntering:ut,onEntered:ut,onExit:ut,onExiting:ut,onExited:ut};ze.UNMOUNTED=At;ze.EXITED=et;ze.ENTERING=tt;ze.ENTERED=ht;ze.EXITING=Xn;const Or=ze;function Jn(t){return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jn(t)}var ul=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],dt;function un(){return un=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},un.apply(this,arguments)}function dl(t,e){if(t==null)return{};var n=fl(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function fl(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function pl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function go(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function hl(t,e,n){return e&&go(t.prototype,e),n&&go(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ml(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qn(t,e)}function Qn(t,e){return Qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Qn(t,e)}function vl(t){var e=bl();return function(){var r=dn(t),o;if(e){var i=dn(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return gl(this,o)}}function gl(t,e){if(e&&(Jn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wi(t)}function wi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bl(){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 dn(t){return dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dn(t)}function bo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function St(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bo(Object(n),!0).forEach(function(r){vt(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function vt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yl=St(St({},Or.propTypes),{},{horizontal:C.bool,isOpen:C.bool,children:C.oneOfType([C.arrayOf(C.node),C.node]),tag:bn,className:C.node,navbar:C.bool,cssModule:C.object,innerRef:C.shape({current:C.object})}),wl=St(St({},Or.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:qc.Collapse}),xl=(dt={},vt(dt,Jt.ENTERING,"collapsing"),vt(dt,Jt.ENTERED,"collapse show"),vt(dt,Jt.EXITING,"collapsing"),vt(dt,Jt.EXITED,"collapse"),dt);function Cl(t){return xl[t]||"collapse"}var Er=function(t){ml(n,t);var e=vl(n);function n(r){var o;return pl(this,n),o=e.call(this,r),o.state={dimension:null},o.nodeRef=r.innerRef||b.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(i){o[i]=o[i].bind(wi(o))}),o}return hl(n,[{key:"onEntering",value:function(o,i){var c=this.getNode();this.setState({dimension:this.getDimension(c)}),this.props.onEntering(c,i)}},{key:"onEntered",value:function(o,i){var c=this.getNode();this.setState({dimension:null}),this.props.onEntered(c,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,c=i.tag,a=i.horizontal,l=i.isOpen,u=i.className,d=i.navbar,p=i.cssModule,f=i.children;i.innerRef;var h=dl(i,ul),m=this.state.dimension,v=$c(h,ho),g=Bc(h,ho);return b.createElement(Or,un({},v,{in:l,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(w){var E=Cl(w),O=Gt(G(u,a&&"collapse-horizontal",E,d&&"navbar-collapse"),p),x=m===null?null:vt({},a?"width":"height",m);return b.createElement(c,un({},g,{style:St(St({},g.style),x),className:O,ref:o.nodeRef}),f)})}}]),n}(b.Component);Er.propTypes=yl;Er.defaultProps=wl;const xi=Er;function er(t){return er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},er(t)}var Ol=["className","cssModule","tag","innerRef"];function tr(){return tr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},tr.apply(this,arguments)}function El(t,e){if(t==null)return{};var n=Sl(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Sl(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function jl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function kl(t,e,n){return e&&yo(t.prototype,e),n&&yo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Tl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nr(t,e)}function nr(t,e){return nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},nr(t,e)}function Pl(t){var e=_l();return function(){var r=fn(t),o;if(e){var i=fn(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Il(this,o)}}function Il(t,e){if(e&&(er(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rr(t)}function rr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _l(){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 fn(t){return fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fn(t)}var Nl={children:C.node,tag:bn,innerRef:C.oneOfType([C.object,C.func,C.string]),className:C.string,cssModule:C.object},Ci=function(t){Tl(n,t);var e=Pl(n);function n(r){var o;return jl(this,n),o=e.call(this,r),o.getRef=o.getRef.bind(rr(o)),o.submit=o.submit.bind(rr(o)),o}return kl(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,c=o.cssModule,a=o.tag,l=a===void 0?"form":a,u=o.innerRef,d=El(o,Ol),p=Gt(i,c);return b.createElement(l,tr({},d,{ref:u,className:p}))}}]),n}(b.Component);Ci.propTypes=Nl;const Al=Ci;var Ll=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function or(){return or=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},or.apply(this,arguments)}function Rl(t,e){if(t==null)return{};var n=Ml(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Ml(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}var Dl={children:C.node,row:C.bool,check:C.bool,switch:C.bool,inline:C.bool,floating:C.bool,noMargin:C.bool,disabled:C.bool,tag:bn,className:C.string,cssModule:C.object};function ir(t){var e=t.className,n=t.cssModule,r=t.row,o=t.disabled,i=t.check,c=t.inline,a=t.floating,l=t.noMargin,u=t.tag,d=u===void 0?"div":u,p=t.switch,f=Rl(t,Ll),h=i||p,m=Gt(G(e,r?"row":!1,h?"form-check":!1,p?"form-switch":!1,h||l?!1:"mb-3",h&&c?"form-check-inline":!1,h&&o?"disabled":!1,a&&"form-floating"),n);return d==="fieldset"&&(f.disabled=o),b.createElement(d,or({},f,{className:m}))}ir.propTypes=Dl;const yn=t=>{const{config:e,isFavoritismEnabled:n,level:r=1,onItemClick:o}=t,{isCollapsible:i,showAllItems:c,displayCount:a=Xs}=e,l=st(),u=qo(),[d,p]=b.useState(1),[f,h]=b.useState(0),[m,v]=b.useState(!1),g=b.useRef({}),w=e.items.filter(j=>Lt(j)),E=e.items.filter(j=>!Lt(j)),O=c?E:E.slice(0,d*a);b.useEffect(()=>{l.isOpen||p(1)},[l.isOpen]);const x=()=>{p(j=>j+1)},y=[...w,...O],k=j=>{g.current[j]?.querySelector("[tabIndex]")?.focus(),h(j)},I=()=>{i&&v(j=>!j)};return s.jsxs("li",{className:"section",children:[s.jsx(Zo,{iconSrc:e.iconSrc,iconName:e.iconName,style:{paddingLeft:`${r===1?4:(r-2)*12+6}px`},title:e.title,showCollapseIcon:i,isOpen:m,onClick:I,showHoverIndicator:r!==1}),s.jsxs(xi,{isOpen:i?m:!0,tag:"ul",children:[y.map((j,_)=>Lt(j)?s.jsx(yn,{config:j,isFavoritismEnabled:n,level:r+1,onItemClick:o},j.id):s.jsx("li",{ref:L=>g.current[_]=L,children:s.jsx(mi,{isFavoritismEnabled:n,item:j,onClick:(L,F)=>o?.(L,{item:j,modifier:u,selectedContextMenuActionName:F?.name}),style:{paddingLeft:`${r===1?7:r*11}px`},onKeyDown:L=>{zo({event:L,moveFocus:k,currentIndex:f,min:0,max:y.length-1})},focused:f===_},j.id||_)},j.id||_)),!c&&e.items.length-w.length>a*d&&s.jsx("li",{"data-testid":"more-li-element",children:s.jsx("div",{className:"io-list-item more",style:{paddingLeft:`${(r===1?7:r*11)+8}px`},role:"button","aria-label":"More",...yt(x),children:s.jsxs("div",{className:"io-list-row",children:[s.jsx("span",{className:"title",children:"More..."}),s.jsx(oe,{size:12,name:"chevron-down","data-testid":"more-chevron"})]})})})]})]})},Oi=t=>`${t.type}-${t.id}`,Wl=(t,e)=>Ei(t)[e],Ei=t=>t.reduce((e,n)=>Lt(n)?{...e,...Ei(n.items)}:{...e,[Oi(n)]:n},{}),Si=b.createContext(void 0),Hl=()=>{const t=b.useContext(Si);if(t===void 0)throw new Error("useSection must be used within a SectionProvider");return t},Ul=({children:t})=>{const[e,n]=b.useState(null);return s.jsx(Si.Provider,{value:[e,n],children:t})},wn=({config:t,onItemClick:e})=>{const[n,r]=Hl(),o=st(),i=qo(),c=(a,l)=>{const{item:u,selectedContextMenuActionName:d}=l;r({itemName:Oi(u),selectedContextMenuActionName:d})};return b.useEffect(()=>{if(!e||!n)return;const{itemName:a,selectedContextMenuActionName:l}=n,u=Wl(t.items,a);u&&(e({item:u,modifier:i,selectedContextMenuActionName:l}),r(null),i!==mn.SHIFT&&o.close())},[n,t.items,o,e,i,r]),s.jsx(yn,{config:t,onItemClick:c})};function ji(t){const{displayCount:e,isFolderCollapsible:n,isSectionCollapsible:r,showAllItems:o,sortOrder:i}=t,c=ls(),a=us(),l=Yo(),u=Xo(),d=b.useMemo(()=>ss(c,a,{...{displayCount:e,showAllItems:o},isFolderCollapsible:n,isSectionCollapsible:r,sortOrder:i}),[c,a,e,n,r,o,i]),p=f=>{const{item:h,modifier:m,selectedContextMenuActionName:v}=f;if(!v)return l({id:h.id,modifier:m}).catch(g=>{console.error("Failed to start application",{error:g})});u(h,v)};return s.jsx(wn,{config:d,onItemClick:p})}const Fl={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"},Vl={loginPageLogo:Fl},zl="200px",at=({logoSrc:t=Vl.loginPageLogo.value,width:e=zl,className:n="logo"})=>s.jsx("img",{width:e,src:t,className:n,alt:"Login logo"});const Sr=({children:t,description:e,heading:n,Image:r,title:o,className:i})=>s.jsxs("div",{className:G("info-card",i),children:[o&&s.jsx("h1",{className:"info-card-title",children:o}),r&&s.jsx("div",{className:"info-card-image",children:s.jsx(r,{})}),n&&s.jsx("h3",{className:"info-card-heading",children:n}),s.jsx("p",{className:"info-card-description",children:e}),t]}),Zl=[{name:"Google Chrome",Image:ea,url:"https://www.google.com/chrome/"},{name:"Microsoft Edge",Image:ta,url:"https://www.microsoft.com/en-us/edge/download"},{name:"Opera",Image:na,url:"https://www.opera.com/browsers/opera"}];const jr=({className:t,children:e,Logo:n})=>s.jsxs("div",{className:G("info-page-container",t),children:[s.jsx(n,{className:"info-page-logo"}),s.jsx("div",{className:"info-page-wrapper",children:e})]}),Bl=({supportEmail:t})=>s.jsxs("p",{className:"additional-information",children:["For more information, visit the io.Connect Browser",s.jsx("br",{}),s.jsx("a",{href:"https://docs.interop.io/browser/getting-started/requirements-compatibility/index.html",target:"_blank",rel:"noopener noreferrer",children:"documentation"}),t?s.jsxs(s.Fragment,{children:[" or ",s.jsx("a",{href:`mailto:${t}?subject=Issue with io.Connect Browser`,children:"contact us"}),"."]}):s.jsxs(s.Fragment,{children:[" or our ",s.jsx("a",{href:"https://support.interop.io",target:"_blank",rel:"noopener noreferrer",children:"help center"}),"."]})]});const $l=({components:{Logo:t=at}={},supportEmail:e})=>{const n="Hmm… it seems that this browser or device doesn’t support critical io.Connect features.",r="For best experience, we recommend using the latest version of one of the following browsers:";return s.jsxs(jr,{className:"browser-not-supported",Logo:t,children:[s.jsx(Sr,{title:n,description:r}),s.jsx("ul",{className:"browsers-list",children:Zl.map(({Image:o,name:i,url:c})=>s.jsxs("li",{onClick:()=>window.open(c,"_blank","noopener,noreferrer"),children:[s.jsx("div",{className:"browsers-list-image",children:s.jsx(o,{})}),s.jsx("div",{children:i})]},i))}),s.jsx(Bl,{supportEmail:e})]})};function Kt({children:t,className:e,color:n,...r}){return s.jsx("button",{className:G(e,"io-btn",n),...r,children:t})}function xn(t){const{className:e,items:n,onItemClick:r,...o}=t;return s.jsx("div",{className:G("io-btn-group",e),...o,children:n.map((i,c)=>{const{onClick:a,...l}=i;return s.jsx(Kt,{onClick:u=>{a&&a(u),r&&r(u,i)},...l},c)})})}const Gl=(t,e)=>{const{isSectionCollapsible:n,sortOrder:r=Dt.DISABLED,...o}=e;return{id:"favorites-section",title:"Favorites",items:lr({items:t,sortOrder:r,ascendingCompare:Ho,descendingCompare:Uo}),iconName:"star",isCollapsible:n,...o}},ki=t=>{const{displayCount:e,isSectionCollapsible:n,showAllItems:r,sortOrder:o}=t,{favoriteEntities:i}=hn(),c=b.useMemo(()=>Gl(i,{...{displayCount:e,showAllItems:r},isSectionCollapsible:n,sortOrder:o}),[i,e,n,r,o]);return i.length>0?s.jsx(wn,{config:c}):null},kr=b.createContext(void 0),Ti=()=>{const t=b.useContext(kr);if(t===void 0)throw new Error("useWorkspaceComponentsContext must be used within an WorkspaceComponentsContextProvider");return t},Pi=({icon:t})=>{const{user:e,onLogout:n,launchpadComponents:r}=Ti();return s.jsx(Ur,{user:e,onLogout:n,icon:t,components:r})},Kl=t=>{const{onLogout:e,user:n,launchpad:r,icon:o}=t;return s.jsx(Ur,{user:n,onLogout:e,icon:o,components:r?.components})};var sr=function(t,e){return sr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},sr(t,e)};function ql(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");sr(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var pe=function(){return pe=Object.assign||function(e){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)&&(e[i]=n[i])}return e},pe.apply(this,arguments)};function Yl(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function ft(t,e,n,r){function o(i){return i instanceof n?i:new n(function(c){c(i)})}return new(n||(n=Promise))(function(i,c){function a(d){try{u(r.next(d))}catch(p){c(p)}}function l(d){try{u(r.throw(d))}catch(p){c(p)}}function u(d){d.done?i(d.value):o(d.value).then(a,l)}u((r=r.apply(t,e||[])).next())})}function pt(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,c;return c={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(u){return function(d){return l([u,d])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;c&&(c=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Re(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}var gt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Pr(t,e){return t(e={exports:{}},e.exports),e.exports}var nt=Pr(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function r(){var o=this;this.locked=new Map,this.addToLocked=function(i,c){var a=o.locked.get(i);a===void 0?c===void 0?o.locked.set(i,[]):o.locked.set(i,[c]):c!==void 0&&(a.unshift(c),o.locked.set(i,a))},this.isLocked=function(i){return o.locked.has(i)},this.lock=function(i){return new Promise(function(c,a){o.isLocked(i)?o.addToLocked(i,c):(o.addToLocked(i),c())})},this.unlock=function(i){var c=o.locked.get(i);if(c!==void 0&&c.length!==0){var a=c.pop();o.locked.set(i,c),a!==void 0&&setTimeout(a,0)}else o.locked.delete(i)}}return r.getInstance=function(){return r.instance===void 0&&(r.instance=new r),r.instance},r}();e.default=function(){return n.getInstance()}});Tr(nt);var Xl=Tr(Pr(function(t,e){var n=gt&&gt.__awaiter||function(l,u,d,p){return new(d||(d=Promise))(function(f,h){function m(w){try{g(p.next(w))}catch(E){h(E)}}function v(w){try{g(p.throw(w))}catch(E){h(E)}}function g(w){w.done?f(w.value):new d(function(E){E(w.value)}).then(m,v)}g((p=p.apply(l,u||[])).next())})},r=gt&&gt.__generator||function(l,u){var d,p,f,h,m={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return h={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function v(g){return function(w){return function(E){if(d)throw new TypeError("Generator is already executing.");for(;m;)try{if(d=1,p&&(f=2&E[0]?p.return:E[0]?p.throw||((f=p.return)&&f.call(p),0):p.next)&&!(f=f.call(p,E[1])).done)return f;switch(p=0,f&&(E=[2&E[0],f.value]),E[0]){case 0:case 1:f=E;break;case 4:return m.label++,{value:E[1],done:!1};case 5:m.label++,p=E[1],E=[0];continue;case 7:E=m.ops.pop(),m.trys.pop();continue;default:if(f=m.trys,!((f=f.length>0&&f[f.length-1])||E[0]!==6&&E[0]!==2)){m=0;continue}if(E[0]===3&&(!f||E[1]>f[0]&&E[1]<f[3])){m.label=E[1];break}if(E[0]===6&&m.label<f[1]){m.label=f[1],f=E;break}if(f&&m.label<f[2]){m.label=f[2],m.ops.push(E);break}f[2]&&m.ops.pop(),m.trys.pop();continue}E=u.call(l,m)}catch(O){E=[6,O],p=0}finally{d=f=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([g,w])}}};Object.defineProperty(e,"__esModule",{value:!0});var o="browser-tabs-lock-key";function i(l){return new Promise(function(u){return setTimeout(u,l)})}function c(l){for(var u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",p=0;p<l;p++)d+=u[Math.floor(Math.random()*u.length)];return d}var a=function(){function l(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+c(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),l.waiters===void 0&&(l.waiters=[])}return l.prototype.acquireLock=function(u,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,function(){var p,f,h,m,v,g;return r(this,function(w){switch(w.label){case 0:p=Date.now()+c(4),f=Date.now()+d,h=o+"-"+u,m=window.localStorage,w.label=1;case 1:return Date.now()<f?[4,i(30)]:[3,8];case 2:return w.sent(),m.getItem(h)!==null?[3,5]:(v=this.id+"-"+u+"-"+p,[4,i(Math.floor(25*Math.random()))]);case 3:return w.sent(),m.setItem(h,JSON.stringify({id:this.id,iat:p,timeoutKey:v,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,i(30)];case 4:return w.sent(),(g=m.getItem(h))!==null&&(g=JSON.parse(g)).id===this.id&&g.iat===p?(this.acquiredIatSet.add(p),this.refreshLockWhileAcquired(h,p),[2,!0]):[3,7];case 5:return l.lockCorrector(),[4,this.waitForSomethingToChange(f)];case 6:w.sent(),w.label=7;case 7:return p=Date.now()+c(4),[3,1];case 8:return[2,!1]}})})},l.prototype.refreshLockWhileAcquired=function(u,d){return n(this,void 0,void 0,function(){var p=this;return r(this,function(f){return setTimeout(function(){return n(p,void 0,void 0,function(){var h,m;return r(this,function(v){switch(v.label){case 0:return[4,nt.default().lock(d)];case 1:return v.sent(),this.acquiredIatSet.has(d)?(h=window.localStorage,(m=h.getItem(u))===null?(nt.default().unlock(d),[2]):((m=JSON.parse(m)).timeRefreshed=Date.now(),h.setItem(u,JSON.stringify(m)),nt.default().unlock(d),this.refreshLockWhileAcquired(u,d),[2])):(nt.default().unlock(d),[2])}})})},1e3),[2]})})},l.prototype.waitForSomethingToChange=function(u){return n(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return[4,new Promise(function(p){var f=!1,h=Date.now(),m=!1;function v(){if(m||(window.removeEventListener("storage",v),l.removeFromWaiting(v),clearTimeout(g),m=!0),!f){f=!0;var w=50-(Date.now()-h);w>0?setTimeout(p,w):p()}}window.addEventListener("storage",v),l.addToWaiting(v);var g=setTimeout(v,Math.max(0,u-Date.now()))})];case 1:return d.sent(),[2]}})})},l.addToWaiting=function(u){this.removeFromWaiting(u),l.waiters!==void 0&&l.waiters.push(u)},l.removeFromWaiting=function(u){l.waiters!==void 0&&(l.waiters=l.waiters.filter(function(d){return d!==u}))},l.notifyWaiters=function(){l.waiters!==void 0&&l.waiters.slice().forEach(function(u){return u()})},l.prototype.releaseLock=function(u){return n(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(u)];case 1:return[2,d.sent()]}})})},l.prototype.releaseLock__private__=function(u){return n(this,void 0,void 0,function(){var d,p,f;return r(this,function(h){switch(h.label){case 0:return d=window.localStorage,p=o+"-"+u,(f=d.getItem(p))===null?[2]:(f=JSON.parse(f)).id!==this.id?[3,2]:[4,nt.default().lock(f.iat)];case 1:h.sent(),this.acquiredIatSet.delete(f.iat),d.removeItem(p),nt.default().unlock(f.iat),l.notifyWaiters(),h.label=2;case 2:return[2]}})})},l.lockCorrector=function(){for(var u=Date.now()-5e3,d=window.localStorage,p=Object.keys(d),f=!1,h=0;h<p.length;h++){var m=p[h];if(m.includes(o)){var v=d.getItem(m);v!==null&&((v=JSON.parse(v)).timeRefreshed===void 0&&v.timeAcquired<u||v.timeRefreshed!==void 0&&v.timeRefreshed<u)&&(d.removeItem(m),f=!0)}}f&&l.notifyWaiters()},l.waiters=void 0,l}();e.default=a}));const Jl={timeoutInSeconds:60},Ii={name:"auth0-spa-js",version:"2.0.4"},_i=()=>Date.now();class Se extends Error{constructor(e,n){super(n),this.error=e,this.error_description=n,Object.setPrototypeOf(this,Se.prototype)}static fromPayload({error:e,error_description:n}){return new Se(e,n)}}class Ir extends Se{constructor(e,n,r,o=null){super(e,n),this.state=r,this.appState=o,Object.setPrototypeOf(this,Ir.prototype)}}class Ft extends Se{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Ft.prototype)}}class _r extends Ft{constructor(e){super(),this.popup=e,Object.setPrototypeOf(this,_r.prototype)}}class Nr extends Se{constructor(e){super("cancelled","Popup closed"),this.popup=e,Object.setPrototypeOf(this,Nr.prototype)}}class Ar extends Se{constructor(e,n,r){super(e,n),this.mfa_token=r,Object.setPrototypeOf(this,Ar.prototype)}}class Cn extends Se{constructor(e,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${wo(e,["default"])}', scope: '${wo(n)}')`),this.audience=e,this.scope=n,Object.setPrototypeOf(this,Cn.prototype)}}function wo(t,e=[]){return t&&!e.includes(t)?t:""}const rn=()=>window.crypto,An=()=>{const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let e="";return Array.from(rn().getRandomValues(new Uint8Array(43))).forEach(n=>e+=t[n%t.length]),e},xo=t=>btoa(t),ar=t=>{var{clientId:e}=t,n=Re(t,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter(o=>r[o]!==void 0).reduce((o,i)=>Object.assign(Object.assign({},o),{[i]:r[i]}),{}))(Object.assign({client_id:e},n))).toString()},Co=t=>(e=>decodeURIComponent(atob(e).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(t.replace(/_/g,"/").replace(/-/g,"+")),Ql=async(t,e)=>{const n=await fetch(t,e);return{ok:n.ok,json:await n.json()}},eu=async(t,e,n)=>{const r=new AbortController;let o;return e.signal=r.signal,Promise.race([Ql(t,e),new Promise((i,c)=>{o=setTimeout(()=>{r.abort(),c(new Error("Timeout when executing 'fetch'"))},n)})]).finally(()=>{clearTimeout(o)})},tu=async(t,e,n,r,o,i,c)=>{return a={auth:{audience:e,scope:n},timeout:o,fetchUrl:t,fetchOptions:r,useFormData:c},l=i,new Promise(function(u,d){const p=new MessageChannel;p.port1.onmessage=function(f){f.data.error?d(new Error(f.data.error)):u(f.data),p.port1.close()},l.postMessage(a,[p.port2])});var a,l},nu=async(t,e,n,r,o,i,c=1e4)=>o?tu(t,e,n,r,c,o,i):eu(t,r,c);async function ru(t,e){var{baseUrl:n,timeout:r,audience:o,scope:i,auth0Client:c,useFormData:a}=t,l=Re(t,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=a?ar(l):JSON.stringify(l);return await async function(d,p,f,h,m,v,g){let w,E=null;for(let j=0;j<3;j++)try{w=await nu(d,f,h,m,v,g,p),E=null;break}catch(_){E=_}if(E)throw E;const O=w.json,{error:x,error_description:y}=O,k=Re(O,["error","error_description"]),{ok:I}=w;if(!I){const j=y||`HTTP error. Unable to fetch ${d}`;throw x==="mfa_required"?new Ar(x,j,k.mfa_token):x==="missing_refresh_token"?new Cn(f,h):new Se(x||"request_error",j)}return k}(`${n}/oauth/token`,r,o||"default",i,{method:"POST",body:u,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(c||Ii))}},e,a)}const Qt=(...t)=>{return(e=t.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(e))).join(" ");var e};class Me{constructor(e,n="@@auth0spajs@@",r){this.prefix=n,this.suffix=r,this.clientId=e.clientId,this.scope=e.scope,this.audience=e.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(e){const[n,r,o,i]=e.split("::");return new Me({clientId:r,scope:i,audience:o},n)}static fromCacheEntry(e){const{scope:n,audience:r,client_id:o}=e;return new Me({scope:n,audience:r,clientId:o})}}class ou{set(e,n){localStorage.setItem(e,JSON.stringify(n))}get(e){const n=window.localStorage.getItem(e);if(n)try{return JSON.parse(n)}catch{return}}remove(e){localStorage.removeItem(e)}allKeys(){return Object.keys(window.localStorage).filter(e=>e.startsWith("@@auth0spajs@@"))}}class Ni{constructor(){this.enclosedCache=function(){let e={};return{set(n,r){e[n]=r},get(n){const r=e[n];if(r)return r},remove(n){delete e[n]},allKeys:()=>Object.keys(e)}}()}}class iu{constructor(e,n,r){this.cache=e,this.keyManifest=n,this.nowProvider=r||_i}async setIdToken(e,n,r){var o;const i=this.getIdTokenCacheKey(e);await this.cache.set(i,{id_token:n,decodedToken:r}),await((o=this.keyManifest)===null||o===void 0?void 0:o.add(i))}async getIdToken(e){const n=await this.cache.get(this.getIdTokenCacheKey(e.clientId));if(!n&&e.scope&&e.audience){const r=await this.get(e);return!r||!r.id_token||!r.decodedToken?void 0:{id_token:r.id_token,decodedToken:r.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(e,n=0){var r;let o=await this.cache.get(e.toKey());if(!o){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(e,a);l&&(o=await this.cache.get(l))}if(!o)return;const i=await this.nowProvider(),c=Math.floor(i/1e3);return o.expiresAt-n<c?o.body.refresh_token?(o.body={refresh_token:o.body.refresh_token},await this.cache.set(e.toKey(),o),o.body):(await this.cache.remove(e.toKey()),void await((r=this.keyManifest)===null||r===void 0?void 0:r.remove(e.toKey()))):o.body}async set(e){var n;const r=new Me({clientId:e.client_id,scope:e.scope,audience:e.audience}),o=await this.wrapCacheEntry(e);await this.cache.set(r.toKey(),o),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(r.toKey()))}async clear(e){var n;const r=await this.getCacheKeys();r&&(await r.filter(o=>!e||o.includes(e)).reduce(async(o,i)=>{await o,await this.cache.remove(i)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(e){const n=await this.nowProvider();return{body:e,expiresAt:Math.floor(n/1e3)+e.expires_in}}async getCacheKeys(){var e;return this.keyManifest?(e=await this.keyManifest.get())===null||e===void 0?void 0:e.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(e){return new Me({clientId:e},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(e,n){return n.filter(r=>{var o;const i=Me.fromKey(r),c=new Set(i.scope&&i.scope.split(" ")),a=((o=e.scope)===null||o===void 0?void 0:o.split(" "))||[],l=i.scope&&a.reduce((u,d)=>u&&c.has(d),!0);return i.prefix==="@@auth0spajs@@"&&i.clientId===e.clientId&&i.audience===e.audience&&l})[0]}}class su{constructor(e,n){this.storage=e,this.clientId=n,this.storageKey=`a0.spajs.txs.${this.clientId}`,this.transaction=this.storage.get(this.storageKey)}create(e){this.transaction=e,this.storage.save(this.storageKey,e,{daysUntilExpire:1})}get(){return this.transaction}remove(){delete this.transaction,this.storage.remove(this.storageKey)}}const It=t=>typeof t=="number",au=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],cu=t=>{if(!t.id_token)throw new Error("ID token is required but missing");const e=(i=>{const c=i.split("."),[a,l,u]=c;if(c.length!==3||!a||!l||!u)throw new Error("ID token could not be decoded");const d=JSON.parse(Co(l)),p={__raw:i},f={};return Object.keys(d).forEach(h=>{p[h]=d[h],au.includes(h)||(f[h]=d[h])}),{encoded:{header:a,payload:l,signature:u},header:JSON.parse(Co(a)),claims:p,user:f}})(t.id_token);if(!e.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(e.claims.iss!==t.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${t.iss}", found "${e.claims.iss}"`);if(!e.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(e.header.alg!=="RS256")throw new Error(`Signature algorithm of "${e.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!e.claims.aud||typeof e.claims.aud!="string"&&!Array.isArray(e.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(e.claims.aud)){if(!e.claims.aud.includes(t.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${t.aud}" but was not one of "${e.claims.aud.join(", ")}"`);if(e.claims.aud.length>1){if(!e.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(e.claims.azp!==t.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${t.aud}", found "${e.claims.azp}"`)}}else if(e.claims.aud!==t.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${t.aud}" but found "${e.claims.aud}"`);if(t.nonce){if(!e.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(e.claims.nonce!==t.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${t.nonce}", found "${e.claims.nonce}"`)}if(t.max_age&&!It(e.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(e.claims.exp==null||!It(e.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!It(e.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const n=t.leeway||60,r=new Date(t.now||Date.now()),o=new Date(0);if(o.setUTCSeconds(e.claims.exp+n),r>o)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${r}) is after expiration time (${o})`);if(e.claims.nbf!=null&&It(e.claims.nbf)){const i=new Date(0);if(i.setUTCSeconds(e.claims.nbf-n),r<i)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${r}) is before ${i}`)}if(e.claims.auth_time!=null&&It(e.claims.auth_time)){const i=new Date(0);if(i.setUTCSeconds(parseInt(e.claims.auth_time)+t.max_age+n),r>i)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${r}) is after last auth at ${i}`)}if(t.organizationId){if(!e.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(t.organizationId!==e.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${t.organizationId}", found "${e.claims.org_id}"`)}return e};var rt=Pr(function(t,e){var n=gt&&gt.__assign||function(){return n=Object.assign||function(l){for(var u,d=1,p=arguments.length;d<p;d++)for(var f in u=arguments[d])Object.prototype.hasOwnProperty.call(u,f)&&(l[f]=u[f]);return l},n.apply(this,arguments)};function r(l,u){if(!u)return"";var d="; "+l;return u===!0?d:d+"="+u}function o(l,u,d){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(u).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(p){if(typeof p.expires=="number"){var f=new Date;f.setMilliseconds(f.getMilliseconds()+864e5*p.expires),p.expires=f}return r("Expires",p.expires?p.expires.toUTCString():"")+r("Domain",p.domain)+r("Path",p.path)+r("Secure",p.secure)+r("SameSite",p.sameSite)}(d)}function i(l){for(var u={},d=l?l.split("; "):[],p=/(%[\dA-F]{2})+/gi,f=0;f<d.length;f++){var h=d[f].split("="),m=h.slice(1).join("=");m.charAt(0)==='"'&&(m=m.slice(1,-1));try{u[h[0].replace(p,decodeURIComponent)]=m.replace(p,decodeURIComponent)}catch{}}return u}function c(){return i(document.cookie)}function a(l,u,d){document.cookie=o(l,u,n({path:"/"},d))}e.__esModule=!0,e.encode=o,e.parse=i,e.getAll=c,e.get=function(l){return c()[l]},e.set=a,e.remove=function(l,u){a(l,"",n(n({},u),{expires:-1}))}});Tr(rt),rt.encode,rt.parse,rt.getAll;var lu=rt.get,Ai=rt.set,Li=rt.remove;const mt={get(t){const e=lu(t);if(e!==void 0)return JSON.parse(e)},save(t,e,n){let r={};window.location.protocol==="https:"&&(r={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Ai(t,JSON.stringify(e),r)},remove(t,e){let n={};e?.cookieDomain&&(n.domain=e.cookieDomain),Li(t,n)}},uu={get(t){return mt.get(t)||mt.get(`_legacy_${t}`)},save(t,e,n){let r={};window.location.protocol==="https:"&&(r={secure:!0}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Ai(`_legacy_${t}`,JSON.stringify(e),r),mt.save(t,e,n)},remove(t,e){let n={};e?.cookieDomain&&(n.domain=e.cookieDomain),Li(t,n),mt.remove(t,e),mt.remove(`_legacy_${t}`,e)}},du={get(t){if(typeof sessionStorage>"u")return;const e=sessionStorage.getItem(t);return e!=null?JSON.parse(e):void 0},save(t,e){sessionStorage.setItem(t,JSON.stringify(e))},remove(t){sessionStorage.removeItem(t)}};function fu(t,e,n){var r=e===void 0?null:e,o=function(l,u){var d=atob(l);if(u){for(var p=new Uint8Array(d.length),f=0,h=d.length;f<h;++f)p[f]=d.charCodeAt(f);return String.fromCharCode.apply(null,new Uint16Array(p.buffer))}return d}(t,n!==void 0&&n),i=o.indexOf(`
51
+ `,10)+1,c=o.substring(i)+(r?"//# sourceMappingURL="+r:""),a=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(a)}var Oo,Eo,So,Ln,pu=(Oo="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==",Eo=null,So=!1,function(t){return Ln=Ln||fu(Oo,Eo,So),new Worker(Ln,t)});const Rn={};class hu{constructor(e,n){this.cache=e,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(e){var n;const r=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);r.add(e),await this.cache.set(this.manifestKey,{keys:[...r]})}async remove(e){const n=await this.cache.get(this.manifestKey);if(n){const r=new Set(n.keys);return r.delete(e),r.size>0?await this.cache.set(this.manifestKey,{keys:[...r]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(e){return`@@auth0spajs@@::${e}`}}const mu={memory:()=>new Ni().enclosedCache,localstorage:()=>new ou},jo=t=>mu[t],ko=t=>{const{openUrl:e,onRedirect:n}=t,r=Re(t,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:e===!1||e?e:n})},Mn=new Xl;class vu{constructor(e){let n,r;if(this.userCache=new Ni().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Mn.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),e),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),e.authorizationParams)}),typeof window<"u"&&(()=>{if(!rn())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(rn().subtle===void 0)throw new Error(`
52
52
  auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
53
- `)})(),e.cache&&e.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),e.cache)r=e.cache;else{if(n=e.cacheLocation||"memory",!So(n))throw new Error(`Invalid cache location "${n}"`);r=So(n)()}this.httpTimeoutMs=e.httpTimeoutInSeconds?1e3*e.httpTimeoutInSeconds:1e4,this.cookieStorage=e.legacySameSiteCookie===!1?mt:uu,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(c=>`auth0.${c}.is.authenticated`)(this.options.clientId),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;const o=e.useCookiesForTransactions?this.cookieStorage:du;var i;this.scope=Qt("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new su(o,this.options.clientId),this.nowProvider=this.options.nowProvider||Pi,this.cacheManager=new iu(r,r.allKeys?void 0:new hu(r,this.options.clientId),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:`https://${i}`),this.tokenIssuer=((c,a)=>c?c.startsWith("https://")?c:`https://${c}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.worker=new pu)}_url(e){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||_i)));return`${this.domainUrl}${e}&auth0Client=${n}`}_authorizeUrl(e){return this._url(`/authorize?${ar(e)}`)}async _verifyIdToken(e,n,r){const o=await this.nowProvider();return cu({iss:this.tokenIssuer,aud:this.options.clientId,id_token:e,nonce:n,organizationId:r,leeway:this.options.leeway,max_age:(i=this.options.authorizationParams.max_age,typeof i!="string"?i:parseInt(i,10)||void 0),now:o});var i}_processOrgIdHint(e){e?this.cookieStorage.save(this.orgHintCookieName,e,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(e,n,r){const o=xo(An()),i=xo(An()),c=An(),a=(d=>{const p=new Uint8Array(d);return(f=>{const h={"+":"-","/":"_","=":""};return f.replace(/[+/=]/g,m=>h[m])})(window.btoa(String.fromCharCode(...Array.from(p))))})(await(async d=>await rn().subtle.digest({name:"SHA-256"},new TextEncoder().encode(d)))(c)),l=((d,p,f,h,m,g,v,w)=>Object.assign(Object.assign(Object.assign({client_id:d.clientId},d.authorizationParams),f),{scope:Qt(p,f.scope),response_type:"code",response_mode:w||"query",state:h,nonce:m,redirect_uri:v||d.authorizationParams.redirect_uri,code_challenge:g,code_challenge_method:"S256"}))(this.options,this.scope,e,o,i,a,e.redirect_uri||this.options.authorizationParams.redirect_uri||r,n?.response_mode),u=this._authorizeUrl(l);return{nonce:i,code_verifier:c,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:o,url:u}}async loginWithPopup(e,n){var r;if(e=e||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,u=window.screenY+(window.innerHeight-600)/2;return window.open(a,"auth0:authorize:popup",`left=${l},top=${u},width=400,height=600,resizable,scrollbars=yes,status=1`)})(""),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const o=await this._prepareAuthorizeUrl(e.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=o.url;const i=await(a=>new Promise((l,u)=>{let d;const p=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(p),clearTimeout(f),window.removeEventListener("message",d,!1),u(new Nr(a.popup)))},1e3),f=setTimeout(()=>{clearInterval(p),u(new Pr(a.popup)),window.removeEventListener("message",d,!1)},1e3*(a.timeoutInSeconds||60));d=function(h){if(h.data&&h.data.type==="authorization_response"){if(clearTimeout(f),clearInterval(p),window.removeEventListener("message",d,!1),a.popup.close(),h.data.response.error)return u(Ee.fromPayload(h.data.response));l(h.data.response)}},window.addEventListener("message",d)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(o.state!==i.state)throw new Error("Invalid state");const c=((r=e.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:i.code,redirect_uri:o.redirect_uri},{nonceIn:o.nonce,organizationId:c})}async getUser(){var e;const n=await this._getIdTokenFromCache();return(e=n?.decodedToken)===null||e===void 0?void 0:e.user}async getIdTokenClaims(){var e;const n=await this._getIdTokenFromCache();return(e=n?.decodedToken)===null||e===void 0?void 0:e.claims}async loginWithRedirect(e={}){var n;const r=ko(e),{openUrl:o,fragment:i,appState:c}=r,a=Re(r,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,u=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:d}=u,p=Re(u,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},p),{appState:c}),l&&{organizationId:l}));const f=i?`${d}#${i}`:d;o?await o(f):window.location.assign(f)}async handleRedirectCallback(e=window.location.href){const n=e.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:r,code:o,error:i,error_description:c}=(p=>{p.indexOf("#")>-1&&(p=p.substring(0,p.indexOf("#")));const f=new URLSearchParams(p);return{state:f.get("state"),code:f.get("code")||void 0,error:f.get("error")||void 0,error_description:f.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Error("Invalid state");if(this.transactionManager.remove(),i)throw new _r(i,c||i,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new Error("Invalid state");const l=a.organizationId,u=a.nonce,d=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:o},d?{redirect_uri:d}:{}),{nonceIn:u,organizationId:l}),{appState:a.appState}}async checkSession(e){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(e)}catch{}}async getTokenSilently(e={}){var n;const r=Object.assign(Object.assign({cacheMode:"on"},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:Qt(this.scope,(n=e.authorizationParams)===null||n===void 0?void 0:n.scope)})}),o=await((i,c)=>{let a=Rn[c];return a||(a=i().finally(()=>{delete Rn[c],a=null}),Rn[c]=a),a})(()=>this._getTokenSilently(r),`${this.options.clientId}::${r.authorizationParams.audience}::${r.authorizationParams.scope}`);return e.detailedResponse?o:o?.access_token}async _getTokenSilently(e){const{cacheMode:n}=e,r=Re(e,["cacheMode"]);if(n!=="off"){const o=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(o)return o}if(n!=="cache-only"){if(!await(async(o,i=3)=>{for(let c=0;c<i;c++)if(await o())return!0;return!1})(()=>Mn.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Zt;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const u=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(u)return u}const o=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:i,access_token:c,oauthTokenScope:a,expires_in:l}=o;return Object.assign(Object.assign({id_token:i,access_token:c},a?{scope:a}:null),{expires_in:l})}finally{await Mn.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(e={},n={}){var r;const o=Object.assign(Object.assign({},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:Qt(this.scope,(r=e.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},Jl),n),await this.loginWithPopup(o,n),(await this.cacheManager.get(new Me({scope:o.authorizationParams.scope,audience:o.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(e){e.clientId!==null?e.clientId=e.clientId||this.options.clientId:delete e.clientId;const n=e.logoutParams||{},{federated:r}=n,o=Re(n,["federated"]),i=r?"&federated":"";return this._url(`/v2/logout?${ar(Object.assign({clientId:e.clientId},o))}`)+i}async logout(e={}){const n=ko(e),{openUrl:r}=n,o=Re(n,["openUrl"]);e.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(e.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const i=this._buildLogoutUrl(o);r?await r(i):r!==!1&&window.location.assign(i)}async _getTokenFromIFrame(e){const n=Object.assign(Object.assign({},e.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!n.organization&&(n.organization=r);const{url:o,state:i,nonce:c,code_verifier:a,redirect_uri:l,scope:u,audience:d}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Ee("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const p=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,f=await((m,g,v=60)=>new Promise((w,j)=>{const O=window.document.createElement("iframe");O.setAttribute("width","0"),O.setAttribute("height","0"),O.style.display="none";const x=()=>{window.document.body.contains(O)&&(window.document.body.removeChild(O),window.removeEventListener("message",b,!1))};let b;const k=setTimeout(()=>{j(new Zt),x()},1e3*v);b=function(_){if(_.origin!=g||!_.data||_.data.type!=="authorization_response")return;const S=_.source;S&&S.close(),_.data.response.error?j(Ee.fromPayload(_.data.response)):w(_.data.response),clearTimeout(k),window.removeEventListener("message",b,!1),setTimeout(x,2e3)},window.addEventListener("message",b,!1),window.document.body.appendChild(O),O.setAttribute("src",m)}))(o,this.domainUrl,p);if(i!==f.state)throw new Error("Invalid state");const h=await this._requestToken(Object.assign(Object.assign({},e.authorizationParams),{code_verifier:a,code:f.code,grant_type:"authorization_code",redirect_uri:l,timeout:e.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:c});return Object.assign(Object.assign({},h),{scope:u,oauthTokenScope:h.scope,audience:d})}catch(p){throw p.error==="login_required"&&this.logout({openUrl:!1}),p}}async _getTokenUsingRefreshToken(e){const n=await this.cacheManager.get(new Me({scope:e.authorizationParams.scope,audience:e.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw new Cn(e.authorizationParams.audience||"default",e.authorizationParams.scope)}const r=e.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,o=typeof e.timeoutInSeconds=="number"?1e3*e.timeoutInSeconds:null;try{const i=await this._requestToken(Object.assign(Object.assign(Object.assign({},e.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),o&&{timeout:o}));return Object.assign(Object.assign({},i),{scope:e.authorizationParams.scope,oauthTokenScope:i.scope,audience:e.authorizationParams.audience||"default"})}catch(i){if((i.message.indexOf("Missing Refresh Token")>-1||i.message&&i.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw i}}async _saveEntryInCache(e){const{id_token:n,decodedToken:r}=e,o=Re(e,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,e.id_token,e.decodedToken),await this.cacheManager.set(o)}async _getIdTokenFromCache(){const e=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new Me({clientId:this.options.clientId,audience:e,scope:this.scope})),r=this.userCache.get("@@user@@");return n&&n.id_token===r?.id_token?r:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:e,audience:n,clientId:r}){const o=await this.cacheManager.get(new Me({scope:e,audience:n,clientId:r}),60);if(o&&o.access_token){const{access_token:i,oauthTokenScope:c,expires_in:a}=o,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:i},c?{scope:c}:null),{expires_in:a})}}async _requestToken(e,n){const{nonceIn:r,organizationId:o}=n||{},i=await ru(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},e),this.worker),c=await this._verifyIdToken(i.id_token,r,o);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},i),{decodedToken:c,scope:e.scope,audience:e.audience||"default"}),i.scope?{oauthTokenScope:i.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(c.claims.org_id),Object.assign(Object.assign({},i),{decodedToken:c})}}var Ri={isAuthenticated:!1,isLoading:!0},We=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},vu=pe(pe({},Ri),{buildAuthorizeUrl:We,buildLogoutUrl:We,getAccessTokenSilently:We,getAccessTokenWithPopup:We,getIdTokenClaims:We,loginWithRedirect:We,loginWithPopup:We,logout:We,handleRedirectCallback:We}),Mi=y.createContext(vu),yu=function(t){ql(e,t);function e(n,r){var o=t.call(this,r||n)||this;return o.error=n,o.error_description=r,Object.setPrototypeOf(o,e.prototype),o}return e}(Error),bu=/[?&]code=[^&]+/,wu=/[?&]state=[^&]+/,xu=/[?&]error=[^&]+/,Cu=function(t){return t===void 0&&(t=window.location.search),(bu.test(t)||xu.test(t))&&wu.test(t)},Di=function(t){return function(e){return"error"in e?new yu(e.error,e.error_description):e instanceof Error?e:new Error(t)}},To=Di("Login failed"),Dn=Di("Get access token failed"),Fi=function(t){var e;t?.redirectUri&&(console.warn("Using `redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),t.authorizationParams=t.authorizationParams||{},t.authorizationParams.redirect_uri=t.redirectUri,delete t.redirectUri),!((e=t?.authorizationParams)===null||e===void 0)&&e.redirectUri&&(console.warn("Using `authorizationParams.redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `authorizationParams.redirectUri` will be removed in a future version"),t.authorizationParams.redirect_uri=t.authorizationParams.redirectUri,delete t.authorizationParams.redirectUri)},Ou=function(t,e){switch(e.type){case"LOGIN_POPUP_STARTED":return pe(pe({},t),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return pe(pe({},t),{isAuthenticated:!!e.user,user:e.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return t.user===e.user?t:pe(pe({},t),{isAuthenticated:!!e.user,user:e.user});case"LOGOUT":return pe(pe({},t),{isAuthenticated:!1,user:void 0});case"ERROR":return pe(pe({},t),{isLoading:!1,error:e.error})}},ju=function(t){return Fi(t),pe(pe({},t),{auth0Client:{name:"auth0-react",version:"2.0.1"}})},Eu=function(t){window.history.replaceState({},document.title,t?.returnTo||window.location.pathname)},Su=function(t){var e=t.children,n=t.skipRedirectCallback,r=t.onRedirectCallback,o=r===void 0?Eu:r,i=t.context,c=i===void 0?Mi:i,a=Yl(t,["children","skipRedirectCallback","onRedirectCallback","context"]),l=y.useState(function(){return new gu(ju(a))})[0],u=y.useReducer(Ou,Ri),d=u[0],p=u[1],f=y.useRef(!1);y.useEffect(function(){f.current||(f.current=!0,function(){return ft(void 0,void 0,void 0,function(){var b,k,_;return pt(this,function(S){switch(S.label){case 0:return S.trys.push([0,7,,8]),b=void 0,Cu()&&!n?[4,l.handleRedirectCallback()]:[3,3];case 1:return k=S.sent().appState,[4,l.getUser()];case 2:return b=S.sent(),o(k,b),[3,6];case 3:return[4,l.checkSession()];case 4:return S.sent(),[4,l.getUser()];case 5:b=S.sent(),S.label=6;case 6:return p({type:"INITIALISED",user:b}),[3,8];case 7:return _=S.sent(),p({type:"ERROR",error:To(_)}),[3,8];case 8:return[2]}})})}())},[l,o,n]);var h=y.useCallback(function(b){return Fi(b),l.loginWithRedirect(b)},[l]),m=y.useCallback(function(b,k){return ft(void 0,void 0,void 0,function(){var _,S;return pt(this,function(P){switch(P.label){case 0:p({type:"LOGIN_POPUP_STARTED"}),P.label=1;case 1:return P.trys.push([1,3,,4]),[4,l.loginWithPopup(b,k)];case 2:return P.sent(),[3,4];case 3:return _=P.sent(),p({type:"ERROR",error:To(_)}),[2];case 4:return[4,l.getUser()];case 5:return S=P.sent(),p({type:"LOGIN_POPUP_COMPLETE",user:S}),[2]}})})},[l]),g=y.useCallback(function(b){return b===void 0&&(b={}),ft(void 0,void 0,void 0,function(){return pt(this,function(k){switch(k.label){case 0:return[4,l.logout(b)];case 1:return k.sent(),(b.openUrl||b.openUrl===!1)&&p({type:"LOGOUT"}),[2]}})})},[l]),v=y.useCallback(function(b){return ft(void 0,void 0,void 0,function(){var k,_,S,P;return pt(this,function(L){switch(L.label){case 0:return L.trys.push([0,2,3,5]),[4,l.getTokenSilently(b)];case 1:return k=L.sent(),[3,5];case 2:throw _=L.sent(),Dn(_);case 3:return S=p,P={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return S.apply(void 0,[(P.user=L.sent(),P)]),[7];case 5:return[2,k]}})})},[l]),w=y.useCallback(function(b,k){return ft(void 0,void 0,void 0,function(){var _,S,P,L;return pt(this,function(Z){switch(Z.label){case 0:return Z.trys.push([0,2,3,5]),[4,l.getTokenWithPopup(b,k)];case 1:return _=Z.sent(),[3,5];case 2:throw S=Z.sent(),Dn(S);case 3:return P=p,L={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return P.apply(void 0,[(L.user=Z.sent(),L)]),[7];case 5:return[2,_]}})})},[l]),j=y.useCallback(function(){return l.getIdTokenClaims()},[l]),O=y.useCallback(function(b){return ft(void 0,void 0,void 0,function(){var k,_,S;return pt(this,function(P){switch(P.label){case 0:return P.trys.push([0,2,3,5]),[4,l.handleRedirectCallback(b)];case 1:return[2,P.sent()];case 2:throw k=P.sent(),Dn(k);case 3:return _=p,S={type:"HANDLE_REDIRECT_COMPLETE"},[4,l.getUser()];case 4:return _.apply(void 0,[(S.user=P.sent(),S)]),[7];case 5:return[2]}})})},[l]),x=y.useMemo(function(){return pe(pe({},d),{getAccessTokenSilently:v,getAccessTokenWithPopup:w,getIdTokenClaims:j,loginWithRedirect:h,loginWithPopup:m,logout:g,handleRedirectCallback:O})},[d,v,w,j,h,m,g,O]);return y.createElement(c.Provider,{value:x},e)},Ui=function(t){return t===void 0&&(t=Mi),y.useContext(t)};const Lr=()=>s.jsx("span",{className:"spinner"});const Xe=({Logo:t=at,text:e="Loading..."})=>s.jsx("div",{className:"system-loader-overlay",children:s.jsxs("div",{className:"system-loader-container flex flex-column ai-center",children:[s.jsx(t,{}),s.jsx("h1",{className:"system-loader-text text-center mb-8",children:e}),s.jsx(Lr,{})]})}),ku=({activeStepName:t,showWarnIcon:e,stepsStatuses:n})=>s.jsx("ul",{className:"setup-flow-list",children:en.map(({name:r,label:o},i)=>{const c=r===t,a=n[r].state,l=e&&c?s.jsx("span",{className:"icon icon-box-16 icon-warn",children:"!"}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:c?"icon-arrow":""}),s.jsxs("span",{children:[i+1,"."]})]});return s.jsxs("li",{className:$("setup-flow-list-item",c&&"active"),children:[s.jsxs("div",{className:"setup-flow-list-item-icon-wrapper",children:[a==="prompt"&&l,a==="granted"&&s.jsx(oe,{name:"check"}),a==="denied"&&s.jsx(oe,{name:"close"})]}),o]},r)})}),Tu=({edgeNotificationsPermissionTimeout:t,isNotificationsPermissionPromptOpen:e})=>{const{name:n}=ya(),[r,o]=y.useState(!1);return y.useEffect(()=>{if(!e||n!=="Edge")return;const i=setTimeout(()=>o(!0),t);return()=>clearTimeout(i)},[n,t,e]),y.useEffect(()=>{e&&!r||o(!1)},[e,r,o]),{hasEdgeNotificationsPermissionError:r}},Iu=(t,e)=>{const{type:n,payload:r}=e;switch(n){case"completed":return{...t,[r.stepName]:{...t[r.stepName],isCompleted:!0}};case"skipped":return{...t,[r.stepName]:{isCompleted:!0,state:"denied"}};case"stateUpdated":{if(!r.state)throw Error('"stateUpdated" action invoked without state in payload');return{...t,[r.stepName]:{isCompleted:r.stepName===re.POPUPS?r.state==="granted":r.state!=="prompt",state:r.state}}}default:throw Error("Unknown action: "+n)}},_u=t=>{const{handleDeferredStep:e,handleOperationComplete:n}=t;window.getScreenDetails().catch(async()=>{const{state:r}=await navigator.permissions.query({name:qe.WINDOW_MANAGEMENT});r==="prompt"&&e()}).finally(n)},Pu=t=>{const{handleDeferredStep:e,handleOperationComplete:n}=t;Notification.requestPermission().then(async()=>{const{state:r}=await navigator.permissions.query({name:qe.NOTIFICATIONS});r==="prompt"&&e()}).finally(n)},Nu=t=>{const{handleDeferredStep:e,handleOperationComplete:n,dispatchAction:r}=t,o="about:blank",i="popup,width=1,height=1,top=9999,left=9999",c=window.open(o,void 0,i),a=window.open(o,void 0,i);c?.close(),a?.close();const l=!(c&&a);l&&e(),r({type:"stateUpdated",payload:{stepName:re.POPUPS,state:l?"denied":"granted"}}),n()},Au=t=>{const{dispatchAction:e}=t;e({type:"completed",payload:{stepName:re.PWA_INSTALL}})},Lu={[re.WINDOW_MANAGEMENT]:_u,[re.NOTIFICATIONS]:Pu,[re.POPUPS]:Nu,[re.PWA_INSTALL]:Au},Ru=({settings:t})=>{const{permission:e}=Be(),[n,r]=_e("localStorage",Bt,Ht),[o,i]=y.useReducer(Iu,pa),[c,a]=y.useState(!1),[l,u]=y.useState(!1),d=en.find(v=>!o[v.name].isCompleted),p=d.name,f=en[en.length-1].name,{hasEdgeNotificationsPermissionError:h}=Tu({edgeNotificationsPermissionTimeout:t.edgeNotificationsPermissionTimeout,isNotificationsPermissionPromptOpen:l&&p===qe.NOTIFICATIONS}),m=()=>{a(!1),u(!0),Lu[p]({handleDeferredStep:()=>a(!0),handleOperationComplete:()=>u(!1),dispatchAction:v=>i(v)}),p===f&&r({isCompleted:!0})},g=()=>{a(!1),i({type:"skipped",payload:{stepName:p}})};return y.useEffect(()=>{h&&(u(!1),a(!0))},[h]),y.useEffect(()=>{a(!1),i({type:"stateUpdated",payload:{stepName:re.WINDOW_MANAGEMENT,state:Vt?e.statuses[re.WINDOW_MANAGEMENT]?.state:"denied"}}),i({type:"stateUpdated",payload:{stepName:re.NOTIFICATIONS,state:e.statuses[re.NOTIFICATIONS]?.state}})},[e.statuses]),s.jsxs(Er,{className:"setup-flow-info-card",description:d.description,heading:d.heading,Image:d.Image,title:"Platform Setup",children:[s.jsx(ku,{activeStepName:p,showWarnIcon:c&&p!==re.POPUPS,stepsStatuses:o}),s.jsx("p",{className:"setup-flow-instructions",children:c?d.instructions.additional:d.instructions.initial}),s.jsxs("div",{className:"flex setup-flow-btn-group",children:[s.jsx(Wt,{className:"io-btn io-btn-primary setup-flow-btn",disabled:l,onClick:m,children:d.actionBtnText}),p!==f&&s.jsx(Wt,{className:"io-btn io-btn-outline setup-flow-btn",disabled:l||p===re.WINDOW_MANAGEMENT,onClick:g,children:"Skip"})]}),l&&s.jsx(Lr,{})]})};const Rr=({components:{Logo:t=at,Loader:e=Xe}={},settings:n={}})=>{const{permission:r}=Be();return r.isLoading?s.jsx(e,{text:"Checking browser permissions..."}):s.jsx(Sr,{Logo:t,children:s.jsx(Ru,{settings:{...ca,...n}})})};const Mr=({errorMessage:t})=>{const e="https://support.interop.io",n=s.jsxs(s.Fragment,{children:["It seems that the following error prevents io.Connect Browser",s.jsx("br",{}),"from operating properly:",s.jsxs("span",{className:"browser-start-failed-error",children:["“",t,"”"]}),"For further assistance, visit our"," ",s.jsx("a",{className:"help-center-link",href:e,target:"_blank",rel:"noopener noreferrer",children:"help center"}),".",s.jsx("br",{}),s.jsx("p",{className:"thank-you",children:"Thank you for your cooperation."})]});return s.jsx(Sr,{Logo:at,children:s.jsx(Er,{className:"start-failed-card",heading:"Oops! io.Connect Browser couldn't start...",description:n,Image:sa,children:s.jsx(Wt,{className:"io-btn io-btn-primary visit-help-center-button",onClick:()=>window.open(e,"_blank","noopener,noreferrer"),children:"Visit the interop.io Help Center"})})})},Dr=({className:t="text-center mb-3",text:e="Making Your Work Flow"})=>s.jsxs(s.Fragment,{children:[s.jsx("h1",{className:$(t,"login-heading-title"),children:e}),s.jsxs("p",{className:"login-heading-paragraph",children:["Integrate apps, simplify user experiences and accelerate",s.jsx("br",{}),"digital transformation."]})]}),Mu=({components:t})=>{const e=t?.Logo||at,n=t?.Heading||Dr;return s.jsxs(s.Fragment,{children:[s.jsx(e,{}),s.jsx(n,{}),s.jsx(Lr,{})]})},Wi=({Logo:t,children:e,className:n})=>s.jsxs("div",{className:$(n,"login-container flex flex-column ai-center"),children:[s.jsx(t,{}),e]}),Du=({onLogin:t,isLoading:e,validationError:n,components:{Logo:r=at,Heading:o=Dr,Loader:i=Xe}={}})=>e?s.jsx(i,{text:"Verifying credentials..."}):s.jsxs(Wi,{Logo:r,children:[s.jsx(o,{}),s.jsx(Kt,{onClick:t,className:"io-btn-primary login-btn",children:"Log In"}),n&&s.jsxs("div",{className:"login-error-feedback",children:[s.jsx(oe,{name:"close"}),s.jsx("p",{children:n.message})]})]}),Io=(t,e)=>{const n=e.value,r=n.trim().length>3;return{value:n,isValid:r}},Fu=({onLogin:t,setIsLoading:e,loginError:n,setLoginError:r,userInputName:o})=>{const[i,c]=y.useReducer(Io,{value:"",isValid:!1}),[a,l]=y.useReducer(Io,{value:"",isValid:!1}),[u,d]=y.useState(!1),[p,f]=y.useState(!1),{isValid:h}=i,{isValid:m}=a,g=h&&m,v=b=>c({value:b.target.value}),w=b=>l({value:b.target.value}),j=()=>{h||d(!0)},O=()=>{m||f(!0)},x=async b=>{if(b.preventDefault(),!!g){e(!0);try{await t(i.value,a.value)}catch(k){r(k)}e(!1)}};return s.jsxs(Al,{className:"simple-login-form",onSubmit:x,children:[s.jsxs(ir,{className:"io-control-input simple-login-form-group",children:[s.jsx("input",{autoFocus:!0,autoComplete:"off",type:"text",placeholder:`Enter your ${o??"email"}`,value:i.value,onChange:v,onBlur:j,onFocus:()=>d(!1),className:$("io-input simple-login-input",u&&"input-error")}),u&&s.jsxs("div",{className:"simple-login-input-error",children:[s.jsx(oe,{name:"close",className:"error-icon"}),s.jsx("p",{children:`The ${o??"email"} is too short`})]})]}),s.jsxs(ir,{className:"io-control-input simple-login-form-group",children:[s.jsx("input",{autoComplete:"off",type:"password",placeholder:"Enter your password",value:a.value,onChange:w,onBlur:O,onFocus:()=>f(!1),className:$("io-input simple-login-input",p&&"input-error")}),p&&s.jsxs("div",{className:"simple-login-input-error",children:[s.jsx(oe,{name:"close",className:"error-icon"}),s.jsx("p",{children:"The password is too short"})]})]}),s.jsx(Wt,{type:"submit",className:"io-btn-primary io-btn login-btn simple-login-form-btn",children:"Log In"}),n&&s.jsxs("div",{className:"login-error-feedback",children:[s.jsx(oe,{name:"close",className:"error-icon"}),s.jsx("p",{children:n.message})]})]})};const Uu=({onLogin:t,userInputName:e,components:{Logo:n=at,Heading:r=Dr,Loader:o=Xe}={}})=>{const[i,c]=y.useState(!1),[a,l]=y.useState(null);return i?s.jsx(o,{text:"Verifying credentials..."}):s.jsxs(Wi,{Logo:n,children:[s.jsx(r,{}),s.jsx(Fu,{onLogin:t,setIsLoading:c,loginError:a,setLoginError:l,userInputName:e})]})};function Wu(t,e){const[n,r]=y.useState(!0),o=y.useContext(ee.IOConnectContext);return y.useEffect(()=>{let i;return(async()=>{if(!o.workspaces)return;let c;try{c=await o.workspaces.getWorkspaceById(t)}catch(l){console.warn(l);return}const a=c.getAllGroups().find(l=>l.id===e);a&&(i=await a.onLockConfigurationChanged(({showAddWindowButton:l})=>{l!==void 0&&r(l)}),r(!!a.showAddWindowButton))})(),()=>i?.()},[t,e,o.workspaces]),n}const Zu=({groupId:t,workspaceId:e})=>{const n=Wu(e,t),r=y.useCallback(o=>{yt.showAddApplicationPopup({bounds:o,groupId:t,workspaceId:e})},[t,e]);return n&&s.jsx(yt.AddWindowButton,{title:"Add App",visible:n,showPopup:r})},Bu=t=>s.jsx(yt.GroupHeaderButtons,{...t,addWindow:{visible:!1,showPopup:t.addWindow.showPopup}}),Hu=()=>null,Fr=({onLogout:t,user:e,workspaces:n,launchpad:r,Loader:o=Xe})=>{const{setPlatformWindow:i}=fr(),c=n?.HeaderLogoArea??Ii,a=window.iobrowser?.platformStarted,l=_s(),{login:{isLoggingOut:u}}=Be();return ds(u),y.useEffect(()=>{a&&i({name:window.name})},[a,i]),s.jsxs(kr.Provider,{value:{onLogout:t,user:e,launchpadComponents:r?.components},children:[!l&&s.jsx(o,{text:"Loading io.Connect Home..."}),s.jsx(yt,{components:{...n?.components,header:{...n?.components?.header,LogoComponent:a?c:Hu},groupHeader:{AfterTabsComponent:Zu,ButtonsComponent:Bu,...n?.components?.groupHeader}}})]})},Vu=ce({id:ae,username:H(ae),email:H(ae),firstName:H(ae),lastName:H(ae),avatarUrl:H(ae),token:H(ae),password:H(ae)}),zu=({config:t})=>{const{setupFlow:e,login:n,workspaces:r,launchpad:o,getIOConnectConfig:i}=t,[c,a]=_e("localStorage",hs,Vu),[l]=_e("localStorage",Bt,Ht),[u,d]=y.useState(null),{login:{isLoggingOut:p,setIsLoggingOut:f}}=Be(),h=t.components?.SystemLoader??Xe,m=y.useCallback(async(v,w)=>{const j=await n.onLogin(v,w);a(j)},[n,a]),g=y.useCallback(()=>{f(!0),n.onLogout?.(),a(null)},[f,n,a]);return p?s.jsx(h,{text:"Logging out..."}):c?!l?.isCompleted&&e?.enabled!==!1?s.jsx(Rr,{settings:e?.settings,components:{...e?.components,Loader:h}}):u&&!u.message.includes("has already been started")?s.jsx(Mr,{errorMessage:u.message}):s.jsx(ee.IOConnectProvider,{settings:i(c),onInitError:d,fallback:s.jsx(h,{text:"Initializing io.Connect Browser..."}),children:s.jsx(Fr,{workspaces:r,launchpad:o,onLogout:g,user:c,Loader:h})}):s.jsx(Uu,{onLogin:m,userInputName:n.userInputName,components:{...n.components,Loader:h}})},Gu=ce({message:ae}),$u=t=>{const e=Ui(),[n,r]=y.useState(void 0),[o,i]=_e("sessionStorage",fs,Gu),c=y.useMemo(()=>e.user?t?.(e.user)??{ok:!0}:null,[e.user,t]),a=c?.ok===!1,l=e.isLoading||e.isAuthenticated&&!n,u=a||l,d=y.useMemo(()=>c?.ok&&e.user?.email&&n?{username:e.user.name,id:e.user.email,token:n}:null,[e.user,n,c?.ok]);return y.useEffect(()=>{e.isAuthenticated&&e.getAccessTokenSilently().then(r).catch(console.warn)},[e]),y.useEffect(()=>{if(c){if(c.ok){i(null);return}i({message:c.message}),e.logout()}},[e,i,c]),{isLoading:u,validationError:o,user:d}},cr={POPUP:"popup",REDIRECT:"redirect"},Ku=({config:t})=>{const e=Ui(),{setupFlow:n,login:r,launchpad:o,workspaces:i,getIOConnectConfig:c}=t,{isLoading:a,validationError:l,user:u}=$u(r.validateUser),p=(r.loginType??cr.REDIRECT)===cr.REDIRECT?e.loginWithRedirect:e.loginWithPopup,[f]=_e("localStorage",Bt,Ht),[h,m]=y.useState(null),{login:{isLoggingOut:g,setIsLoggingOut:v}}=Be(),w=t.components?.SystemLoader??Xe,j=y.useCallback(()=>{v(!0),e.logout()},[v,e]);return g?s.jsx(w,{text:"Logging out..."}):u?!f?.isCompleted&&n?.enabled!==!1?s.jsx(Rr,{settings:n?.settings,components:{...n?.components,Loader:w}}):h&&!h.message.includes("has already been started")?s.jsx(Mr,{errorMessage:h.message}):s.jsx(ee.IOConnectProvider,{settings:c({...e.user,token:u.token}),onInitError:m,fallback:s.jsx(w,{text:"Initializing the platform..."}),children:s.jsx(Fr,{workspaces:i,launchpad:o,onLogout:j,user:u,Loader:w})}):s.jsx(Du,{onLogin:p,isLoading:a,validationError:l,components:{...r.components,Loader:w}})},_o=({config:t})=>{const{setupFlow:e,launchpad:n,workspaces:r,getIOConnectConfig:o}=t,i=t.components?.SystemLoader??Xe,{onLogout:c,user:a}=t.login??{},{isPlatformWindow:l}=fr(),[u]=_e("localStorage",Bt,Ht),[d,p]=y.useState(null),{login:{isLoggingOut:f,setIsLoggingOut:h}}=Be(),m=y.useCallback(async()=>{c&&(h(!0),c())},[c,h]);return f?s.jsx(i,{text:"Logging out..."}):!u?.isCompleted&&e?.enabled!==!1&&l?s.jsx(Rr,{settings:e?.settings,components:{...e?.components,Loader:i}}):d&&!d.message.includes("has already been started")?s.jsx(Mr,{errorMessage:d.message}):s.jsx(ee.IOConnectProvider,{settings:o(a),onInitError:p,fallback:s.jsx(i,{text:"Initializing io.Connect Browser..."}),children:s.jsx(Fr,{workspaces:r,launchpad:n,onLogout:m,user:a,Loader:i})})},Zi=ce({Logo:H(he().andThen(t=>xe(t,"Logo"))),Heading:H(he().andThen(t=>xe(t,"Heading")))}),qu=sn(...Object.values(cr).map(t=>wt(t))),Yu=ce({type:wt("auth0"),validateUser:H(he().andThen(t=>xe(t,"validateUser"))),loginType:H(qu),providerOptions:he(),components:H(Zi)}),Xu=ce({type:wt("simple"),onLogin:he().andThen(t=>xe(t,"onLogin")),onLogout:H(he().andThen(t=>xe(t,"onLogout"))),userInputName:H(ae),components:H(Zi)}),Ju=ce({id:ae,username:ae}),Qu=ce({type:wt("custom"),onLogout:he().andThen(t=>xe(t,"onLogout")),user:Ju}),ed=sn(Yu,Xu,Qu),td=ce({edgeNotificationsPermissionTimeout:H(Es)}),nd=ce({Logo:H(he().andThen(t=>xe(t,"Logo")))}),rd=ce({enabled:H(dr()),components:H(nd),settings:H(td)}),od=ce({components:H(he()),HeaderLogoArea:H(he().andThen(t=>xe(t,"HeaderLogoArea")))}),id=ce({sections:H(he()),Sections:H(he().andThen(t=>xe(t,"Sections"))),NotificationsPanel:sn(wt(null),H(he().andThen(t=>xe(t,"NotificationsPanel")))),UserPanel:sn(wt(null),H(he().andThen(t=>xe(t,"UserPanel"))))}),sd=ce({components:H(id)}),ad=ce({SystemLoader:H(he().andThen(t=>xe(t,"SystemLoader")))}),cd=ce({getIOConnectConfig:he().andThen(t=>xe(t,"getIOConnectConfig")),login:H(ed),setupFlow:H(rd),workspaces:H(od),launchpad:H(sd),components:H(ad)}),ld=({config:t})=>{const e=y.useMemo(()=>cd.runWithException(t),[t]),n=e.login,r=e.launchpad?.components,{isPlatformWindow:o}=fr();if(r?.sections&&r?.Sections)throw new Error("Launchpad sections are overspecified. Please provide either a JSX element or a React component.");if(!n||!o){const{login:c,...a}=e;return s.jsx(_o,{config:a})}if(n.type==="custom")return s.jsx(_o,{config:e});if(n.type==="simple")return s.jsx(zu,{config:e});const{providerOptions:i}=n;return s.jsx(Su,{...i,authorizationParams:{...i.authorizationParams,redirect_uri:i.authorizationParams?.redirect_uri??window.location.origin},children:s.jsx(Ku,{config:e})})},ud=({config:t})=>s.jsx(ni,{children:s.jsx(ld,{config:t})}),Bi=t=>t?.split(" ").map(e=>e[0]?.toUpperCase()).join(""),Hi=y.forwardRef((t,e)=>{const{onSearch:n,searchTerm:r,onClear:o}=t,i=y.useContext(ee.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:e,className:"io-input",placeholder:"Find anything",value:r,onChange:n}),s.jsx(oe,{name:"delete-left",className:r.length!==0?"active":"",onClick:o,"data-testid":"delete-icon"})]})}),dd=t=>t.reduce((e,n)=>{const{type:r}=n,o=n.id||n.displayName;if(!o||r.name===Ze.LAYOUT)return e;let i=[];r.name===Ze.APPLICATION?i=Do:r.name===Ze.WORKSPACE?i=Fo:n.secondaryActions&&(i=n.secondaryActions.map(({name:u,method:d,params:p,target:f})=>({name:u,interopParams:{method:d,params:p,target:f}})));const c={id:o,title:n.displayName||o,description:n.description,type:r.name,iconSrc:n.iconURL,mainAction:n.action,contextMenuActions:i},a=e.findIndex(({title:u})=>r.displayName?u===r.displayName:u===r.name),l=e[a];return l?[...e.slice(0,a),{...l,items:[...l.items,c]},...e.slice(a+1)]:[...e,{id:r.name,title:r.displayName||r.name,items:[c]}]},[]);function Vi(t){const{resultsToRender:e,isLoading:n}=Fs(t.searchTerm),r=st(),o=Is(),i=pr(),c=Yo(),a=dd(e),l=Xo(),u=Jo(),d=(f,h)=>{const m=f.type===Ze.APPLICATION?l:f.type===Ze.WORKSPACE?u:null;m&&m(f,h)},p=async(f,h)=>{const{item:m,modifier:g,selectedContextMenuActionName:v}=h,{type:w,id:j,mainAction:O}=m,x=v?m.contextMenuActions?.find(b=>b.name===v):null;x?.interopParams?o(x.interopParams):v?d(m,v):O?o(O):w===Ze.APPLICATION?c({id:j,modifier:g}).catch(b=>{console.error("Failed to start application",{error:b})}):w===Ze.WORKSPACE&&i({id:j,modifier:g}).catch(b=>{console.error("Failed to restore workspace",{error:b})}),g!==mn.SHIFT&&r.close()};return n?s.jsx("p",{style:{padding:"12px 24px"},children:"Loading..."}):e.length===0?s.jsx("p",{style:{padding:"12px 24px"},children:"No results found."}):s.jsx("ul",{children:a.map((f,h)=>s.jsx(bn,{config:f,isFavoritismEnabled:!1,onItemClick:p},f.id||h))})}const fd=(t,e,n)=>{const{isSectionCollapsible:r,sortOrder:o=Dt.ASCENDING,...i}=n;return{id:"workspaces-section",title:"Workspaces",items:lr({items:t,sortOrder:o,ascendingCompare:Uo,descendingCompare:Wo}).map(l=>({...l,type:Ze.WORKSPACE,isOpen:e[l.title]?.length>0,contextMenuActions:Fo})),isCollapsible:r,...i}},zi=t=>{const{displayCount:e,isSectionCollapsible:n,showAllItems:r,sortOrder:o}=t,i=Us(),c=Ws(),a=pr(),l=Jo(),u=y.useMemo(()=>fd(i,c,{...{displayCount:e,showAllItems:r},isSectionCollapsible:n,sortOrder:o}),[i,c,e,n,r,o]),d=p=>{const{item:f,modifier:h,selectedContextMenuActionName:m}=p;if(!m)return a({id:f.id,modifier:h}).catch(g=>{console.error("Failed to restore workspace",{error:g})});l(f,m)};return s.jsx(wn,{config:u,onItemClick:d})},pd=()=>s.jsxs(s.Fragment,{children:[s.jsx(ki,{}),s.jsx(zi,{}),s.jsx(Si,{})]}),hd={success:"check"},Po={SET_AS_DEFAULT:"setAsDefault",DELETE:"delete"},md=t=>[{name:Po.SET_AS_DEFAULT,displayName:"Set as Default",disabled:t.isDefault},{name:Po.DELETE,displayName:"Delete",disabled:t.name===ei||t.isDefault}],No=t=>async e=>{e.stopPropagation();try{await t()}catch(n){console.error("Failed to handle layout action: ",n)}},gd=t=>{const{layouts:e}=t,{setSelectedLayout:n,setDefaultLayout:r}=st(),o=Ys(),i=hr(),c=oi(),a=u=>{c(()=>i(u.name,n))},l=(u,d)=>{c(()=>o(u,d.name,r))};return s.jsxs("div",{"data-testid":"available-layouts",children:[s.jsx("h6",{children:"Available Layouts"}),e.map(u=>s.jsxs("div",{className:$("layouts-item flex ai-center",u.isSelected&&"active"),"data-testid":"layout-item",children:[s.jsx("div",{className:"loaded me-8",children:u.isSelected&&s.jsx(oe,{size:12,name:"check"})}),s.jsx("div",{className:$("name",{bold:u.isSelected}),onClick:()=>a(u),children:u.name}),s.jsxs("div",{className:"type",children:[u.type,u.isDefault?"/Default":""]}),s.jsx(xr,{iconSize:16,iconName:"ellipsis",actions:md(u),onActionItemClick:(d,p)=>l(u,p)})]},u.name))]})},Ao=t=>{const{inputValue:e,setNotification:n,className:r=""}=t,{selectedLayout:o,setSelectedLayout:i}=st(),c=hr(),a=oi(),l=y.useContext(ee.IOConnectContext),u=[{label:"Save",type:"save",onClick:No(()=>{a(async()=>{await l.layouts.save({name:e,type:"Global"}),i({name:e}),n({message:"Saved",type:"success"})})}),testId:"save-button"},{label:"Restore",type:"restore",onClick:No(()=>{if(!o)return;a(()=>c(o.name))}),testId:"restore-button"}];return s.jsx("div",{className:$("layout-actions",r),"data-testid":"layout-actions",children:u.map(({label:d,type:p,disabled:f,onClick:h,testId:m})=>s.jsx("button",{onClick:h,disabled:f,className:"io-btn","data-testid":m,children:d},p))})},vd=({className:t,message:e,type:n})=>s.jsxs("div",{className:$("layout-notification",`layout-notification-${n}`,t),"data-testid":"layout-notification",children:[s.jsx(oe,{size:12,name:hd[n]}),s.jsx("span",{"data-testid":"layout-notification-message",children:e})]}),Gi=()=>{const t=y.useRef(null),[e,n]=y.useState(!1),[r,o]=y.useState(null),i=Ns(),{defaultLayout:c,selectedLayout:a}=st(),[l,u]=y.useState("");y.useEffect(()=>{if(!e)return;const p=h=>{t.current?.contains(h.target)||n(!1)},f=()=>{document.activeElement?.nodeName==="IFRAME"&&n(!1)};return document.addEventListener("click",p,!0),window.addEventListener("blur",f,!0),()=>{document.removeEventListener("click",p,!0),window.removeEventListener("blur",f,!0)}},[e]),y.useEffect(()=>{if(!r)return;const p=setTimeout(()=>o(null),3e3);return()=>clearTimeout(p)},[r]),y.useEffect(()=>{a&&u(a.name)},[a]);const d=()=>{n(p=>!p),a&&u(a.name)};return s.jsxs("footer",{className:"footer",ref:t,"data-testid":"layouts-panel",children:[s.jsxs("div",{"aria-label":"Layouts panel","aria-expanded":e,role:"button",...bt(d),className:"selected-layout flex ai-center","data-testid":"selected-layout",children:[s.jsx("span",{className:$("name",{hidden:e}),"data-testid":"selected-layout-name",children:a?.name||"No selected layout"}),s.jsxs("div",{className:"flex ai-center","data-testid":"layout-actions-and-toggle",children:[!e&&s.jsx(Ao,{inputValue:l,setNotification:o}),s.jsx(oe,{className:$("ms-8","layouts-panel-toggle-button",{"layouts-panel-toggle-button-rotated":e}),name:"chevron-up","data-testid":"layouts-panel-toggle"})]})]}),s.jsx(xi,{isOpen:e,children:s.jsxs("div",{className:"layouts-container",children:[s.jsxs("div",{className:"layouts-settings",children:[s.jsx("input",{className:"io-input",onChange:p=>u(p.target.value),value:l,"data-testid":"layout-name-input"}),s.jsx(Ao,{className:"group",inputValue:l,setNotification:o})]}),s.jsx(gd,{layouts:i.map(p=>({...p,isSelected:p.name===a?.name,isDefault:p.name===c?.name}))})]})}),r?s.jsx(vd,{className:$({"ms-8 me-8":e}),message:r.message,type:r.type}):s.jsx("div",{className:"powered-by",children:"Powered by io.Connect Browser"})]})},yd=t=>{const e=new Date(t),n=e.getHours(),r=e.getMinutes().toString().padStart(2,"0"),o=e.getSeconds().toString().padStart(2,"0"),i=n>=12?"PM":"AM",c=e.getMonth()+1,a=e.getDate(),l=e.getFullYear();return`${n%12}:${r}:${o} ${i} ${c}/${a}/${l}`},$i=t=>{const{severity:e="None",id:n,timestamp:r,title:o,body:i,actions:c}=t.notificationData,a=y.useContext(ee.IOConnectContext),l=()=>{a&&a.notifications.clear(n).catch(console.error)},u=async p=>{p.stopPropagation();try{await a.notifications.click(n),l()}catch(f){console.error(f)}},d=c?.map(({action:p,title:f})=>({children:f,onClick:async h=>{h.stopPropagation();try{await a.notifications.click(n,p),l()}catch(m){console.error(m)}}}));return s.jsxs("div",{className:"notifications-list-item",style:{borderLeftColor:As[e]},onClick:u,"data-testid":"notification-container",children:[s.jsxs("div",{className:"notification-header","data-testid":"notification-header",children:[s.jsx("h4",{children:o}),s.jsx(oe,{onClick:p=>{p.stopPropagation(),l()},className:"io-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:yd(r)}),d&&s.jsx(xn,{className:"notification-actions","data-testid":"notification-actions",items:d})]})},Ur=t=>{const{className:e}=t,n=Ko().length;return n>0?s.jsx("span",{className:$("notifications-badge",e),"data-testid":"notifications-badge",children:n<10?n:"9+"}):null},Ki=t=>{const{className:e,iconSize:n=24,...r}=t;return s.jsxs("div",{className:$(e,"notifications-icon"),"data-testid":"notifications-icon",...r,children:[s.jsx(oe,{size:n,name:"bell"}),s.jsx(Ur,{})]})},qi=()=>{const{onNotificationsSort:t,sortedNotifications:e}=Ds(),n=y.useContext(ee.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 (",e.length,")"]})}),s.jsx(xn,{items:[{children:"Latest",onClick:()=>t("timestamp")},{children:"By Priority",onClick:()=>t("severity")}]})]}),e.length?s.jsx("div",{className:"notifications-list","data-testid":"notifications-list",children:e.map(o=>s.jsx($i,{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(Kt,{children:"Clear All",onClick:r})})]})},bd=({user:t})=>{const e=y.useContext(ee.IOConnectContext),n=t?.username||"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 "+e.version]})]}),s.jsx("div",{className:"flex badge",children:Bi(n)})]})},Yi=()=>{const t=y.useContext(ee.IOConnectContext),[e,n]=y.useState([]);y.useEffect(()=>{t&&t.themes?.list().then(o=>n(o)).catch(console.warn)},[t]);const r=async(o,i)=>{i.name&&t.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(xn,{onItemClick:r,items:e.map(({name:o,displayName:i})=>({name:o,children:i}))})})]})]})},Xi=({title:t,description:e,links:n=[],onLogout:r,user:o})=>{const[i,c]=_e("sessionStorage",zo,Qo),a=y.useContext(ee.IOConnectContext),l=async()=>{try{r?.()}catch(u){console.error(u)}c(null),await a.webPlatform?.system.shutdown(),window.location.reload()};return s.jsxs("div",{className:"info info-bottom flex flex-column",children:[s.jsx("h4",{children:t||"Support"}),s.jsx("p",{children:e||"New set of thoughtfully curated items and the ability to configure them."}),s.jsx("ul",{children:n.map(({children:u,...d})=>s.jsx("li",{children:s.jsx("a",{...d,children:u})},d.href))}),o?.id&&s.jsx("div",{children:s.jsx(Kt,{onClick:l,children:"Log Out"})})]})},Ji=({onLogout:t,user:e})=>s.jsxs(s.Fragment,{children:[s.jsx(bd,{user:e}),s.jsx(Yi,{}),s.jsx(Xi,{onLogout:t,user:e})]}),Qi=t=>{const{initials:e,className:n,...r}=t;return s.jsx("div",{className:$(n,"user-panel-icon"),...r,children:e})},Lo=({children:t,closeFn:e,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&&e()},onClick:i=>{i.target.nodeName==="DIALOG"&&e()},children:s.jsxs("div",{className:"dialog-backer",children:[r&&s.jsx(oe,{onClick:e,className:"btn-close io-btn io-btn-icon",size:16,name:"close"}),t]})})};function es(t){const{open:e,setOpen:n,onLogout:r,className:o,components:i={},user:c,...a}=t,[l,u]=y.useState(""),[d,p]=y.useState(!1),[f,h]=y.useState(!1),m=y.useRef(null),{permission:g}=Be(),v=Vt&&g.statuses[re.WINDOW_MANAGEMENT]?.state==="granted",w=i?.NotificationsPanel!==null,j=i?.UserPanel!==null,O=i?.NotificationsPanel??qi,x=i?.UserPanel??Ji;y.useEffect(()=>{if(e){m.current?.focus();return}u("")},[e]);const b=P=>{u(P.target.value)},k=()=>{u("")},_=i.Sections?s.jsx(i.Sections,{}):i.sections,S=s.jsx(Wl,{children:s.jsx("ul",{children:_??s.jsx(pd,{})})});return s.jsxs(ma,{setOpen:n,isOpen:e,children:[s.jsxs("div",{className:$(o),...a,children:[s.jsxs("header",{children:[s.jsx(Hi,{ref:m,searchTerm:l,onSearch:b,onClear:k}),s.jsxs("div",{className:"action-area",children:[w&&s.jsx(Ki,{"aria-label":"Notifications",role:"button",...bt(()=>p(!0))}),j&&s.jsx(Qi,{initials:Bi(c?.username||"N A"),"aria-label":"Profile and Settings",role:"button",...bt(()=>h(!0))})]}),s.jsx(oe,{className:"btn-close io-btn io-btn-icon",size:16,name:"close",handleClick:()=>n(!1)})]}),s.jsx("main",{children:l.trim().length<3?S:s.jsx(Vi,{searchTerm:l})}),v&&s.jsx(Gi,{})]}),w&&s.jsx(Lo,{open:d,closeFn:()=>p(!1),children:s.jsx(O,{})}),j&&s.jsx(Lo,{open:f,closeFn:()=>h(!1),children:s.jsx(x,{onLogout:r,user:c})})]})}const ts=()=>s.jsxs(s.Fragment,{children:[s.jsx(yt.Logo,{frameId:""}),s.jsx(Ur,{})]}),wd="_workspaceLogo_t3m7s_1",Ro={workspaceLogo:wd,"launchpad-popup":"_launchpad-popup_t3m7s_9","slide-in":"_slide-in_t3m7s_32"},ns=t=>{const[e,n]=y.useState(!1),r=y.useRef(null),o=y.useRef(null),{icon:i,children:c}=t;return y.useEffect(()=>{if(!e)return;const a=u=>{const d=u.target!==r.current&&!r.current?.contains(u.target);!(u.target===o.current||o.current?.contains(u.target))&&d&&n(!1)},l=()=>{document.activeElement?.nodeName==="IFRAME"&&n(!1)};return document.addEventListener("mouseup",a,!0),window.addEventListener("blur",l,!0),()=>{document.removeEventListener("mouseup",a,!0),window.removeEventListener("blur",l,!0)}},[e]),s.jsxs("div",{ref:r,children:[s.jsx("button",{"aria-label":"Launchpad",onClick:()=>n(a=>!a),className:`io-logo ${e===!0?"active":""}`,ref:o,children:s.jsx("div",{className:"logo-wrapper",children:i})}),s.jsx("div",{children:s.jsx("div",{className:$(Ro["launchpad-popup"],{[Ro["slide-in"]]:e}),children:c({open:e,setOpen:n})})})]})},Wr=t=>{const{icon:e,components:n,user:r,onLogout:o}=t;return s.jsx(ns,{icon:e??s.jsx(ts,{}),children:({open:i,setOpen:c})=>s.jsx(es,{open:i,setOpen:c,components:n,user:r,onLogout:o})})},xd=()=>"getScreenDetails"in window;exports.ApplicationsSection=Si;exports.BaseSection=bn;exports.BaseSectionHeader=Vo;exports.BaseSectionItem=mi;exports.BrowserNotSupported=Gl;exports.Button=Kt;exports.ButtonGroup=xn;exports.ContextMenu=hi;exports.DropdownButton=xr;exports.FavoritesSection=ki;exports.IOConnectHome=ud;exports.IOConnectHomeProvider=ni;exports.Icon=oe;exports.ImgIcon=ur;exports.Launchpad=es;exports.LaunchpadAccess=Ii;exports.LaunchpadSlidePanel=Wr;exports.LayoutsPanel=Gi;exports.LoginLoader=Mu;exports.Logo=ts;exports.Notification=$i;exports.NotificationsBadge=Ur;exports.NotificationsIcon=Ki;exports.NotificationsPanel=qi;exports.SearchBar=Hi;exports.SearchResults=Vi;exports.Section=wn;exports.SettingsCard=Yi;exports.SlidePanel=ns;exports.SupportCard=Xi;exports.SystemLoader=Xe;exports.UserPanel=Ji;exports.UserPanelIcon=Qi;exports.WorkspaceComponentsContext=kr;exports.WorkspaceLogo=Kl;exports.WorkspacesSection=zi;exports.useFavoriteEntities=hn;exports.useIOConnectHome=Be;exports.useIsBrowserSupported=xd;exports.useWorkspaceComponentsContext=Ti;
53
+ `)})(),e.cache&&e.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),e.cache)r=e.cache;else{if(n=e.cacheLocation||"memory",!jo(n))throw new Error(`Invalid cache location "${n}"`);r=jo(n)()}this.httpTimeoutMs=e.httpTimeoutInSeconds?1e3*e.httpTimeoutInSeconds:1e4,this.cookieStorage=e.legacySameSiteCookie===!1?mt:uu,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(c=>`auth0.${c}.is.authenticated`)(this.options.clientId),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;const o=e.useCookiesForTransactions?this.cookieStorage:du;var i;this.scope=Qt("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new su(o,this.options.clientId),this.nowProvider=this.options.nowProvider||_i,this.cacheManager=new iu(r,r.allKeys?void 0:new hu(r,this.options.clientId),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:`https://${i}`),this.tokenIssuer=((c,a)=>c?c.startsWith("https://")?c:`https://${c}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.worker=new pu)}_url(e){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Ii)));return`${this.domainUrl}${e}&auth0Client=${n}`}_authorizeUrl(e){return this._url(`/authorize?${ar(e)}`)}async _verifyIdToken(e,n,r){const o=await this.nowProvider();return cu({iss:this.tokenIssuer,aud:this.options.clientId,id_token:e,nonce:n,organizationId:r,leeway:this.options.leeway,max_age:(i=this.options.authorizationParams.max_age,typeof i!="string"?i:parseInt(i,10)||void 0),now:o});var i}_processOrgIdHint(e){e?this.cookieStorage.save(this.orgHintCookieName,e,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(e,n,r){const o=xo(An()),i=xo(An()),c=An(),a=(d=>{const p=new Uint8Array(d);return(f=>{const h={"+":"-","/":"_","=":""};return f.replace(/[+/=]/g,m=>h[m])})(window.btoa(String.fromCharCode(...Array.from(p))))})(await(async d=>await rn().subtle.digest({name:"SHA-256"},new TextEncoder().encode(d)))(c)),l=((d,p,f,h,m,v,g,w)=>Object.assign(Object.assign(Object.assign({client_id:d.clientId},d.authorizationParams),f),{scope:Qt(p,f.scope),response_type:"code",response_mode:w||"query",state:h,nonce:m,redirect_uri:g||d.authorizationParams.redirect_uri,code_challenge:v,code_challenge_method:"S256"}))(this.options,this.scope,e,o,i,a,e.redirect_uri||this.options.authorizationParams.redirect_uri||r,n?.response_mode),u=this._authorizeUrl(l);return{nonce:i,code_verifier:c,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:o,url:u}}async loginWithPopup(e,n){var r;if(e=e||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,u=window.screenY+(window.innerHeight-600)/2;return window.open(a,"auth0:authorize:popup",`left=${l},top=${u},width=400,height=600,resizable,scrollbars=yes,status=1`)})(""),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const o=await this._prepareAuthorizeUrl(e.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=o.url;const i=await(a=>new Promise((l,u)=>{let d;const p=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(p),clearTimeout(f),window.removeEventListener("message",d,!1),u(new Nr(a.popup)))},1e3),f=setTimeout(()=>{clearInterval(p),u(new _r(a.popup)),window.removeEventListener("message",d,!1)},1e3*(a.timeoutInSeconds||60));d=function(h){if(h.data&&h.data.type==="authorization_response"){if(clearTimeout(f),clearInterval(p),window.removeEventListener("message",d,!1),a.popup.close(),h.data.response.error)return u(Se.fromPayload(h.data.response));l(h.data.response)}},window.addEventListener("message",d)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(o.state!==i.state)throw new Error("Invalid state");const c=((r=e.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:i.code,redirect_uri:o.redirect_uri},{nonceIn:o.nonce,organizationId:c})}async getUser(){var e;const n=await this._getIdTokenFromCache();return(e=n?.decodedToken)===null||e===void 0?void 0:e.user}async getIdTokenClaims(){var e;const n=await this._getIdTokenFromCache();return(e=n?.decodedToken)===null||e===void 0?void 0:e.claims}async loginWithRedirect(e={}){var n;const r=ko(e),{openUrl:o,fragment:i,appState:c}=r,a=Re(r,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,u=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:d}=u,p=Re(u,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},p),{appState:c}),l&&{organizationId:l}));const f=i?`${d}#${i}`:d;o?await o(f):window.location.assign(f)}async handleRedirectCallback(e=window.location.href){const n=e.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:r,code:o,error:i,error_description:c}=(p=>{p.indexOf("#")>-1&&(p=p.substring(0,p.indexOf("#")));const f=new URLSearchParams(p);return{state:f.get("state"),code:f.get("code")||void 0,error:f.get("error")||void 0,error_description:f.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Error("Invalid state");if(this.transactionManager.remove(),i)throw new Ir(i,c||i,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new Error("Invalid state");const l=a.organizationId,u=a.nonce,d=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:o},d?{redirect_uri:d}:{}),{nonceIn:u,organizationId:l}),{appState:a.appState}}async checkSession(e){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(e)}catch{}}async getTokenSilently(e={}){var n;const r=Object.assign(Object.assign({cacheMode:"on"},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:Qt(this.scope,(n=e.authorizationParams)===null||n===void 0?void 0:n.scope)})}),o=await((i,c)=>{let a=Rn[c];return a||(a=i().finally(()=>{delete Rn[c],a=null}),Rn[c]=a),a})(()=>this._getTokenSilently(r),`${this.options.clientId}::${r.authorizationParams.audience}::${r.authorizationParams.scope}`);return e.detailedResponse?o:o?.access_token}async _getTokenSilently(e){const{cacheMode:n}=e,r=Re(e,["cacheMode"]);if(n!=="off"){const o=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(o)return o}if(n!=="cache-only"){if(!await(async(o,i=3)=>{for(let c=0;c<i;c++)if(await o())return!0;return!1})(()=>Mn.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Ft;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const u=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(u)return u}const o=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:i,access_token:c,oauthTokenScope:a,expires_in:l}=o;return Object.assign(Object.assign({id_token:i,access_token:c},a?{scope:a}:null),{expires_in:l})}finally{await Mn.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(e={},n={}){var r;const o=Object.assign(Object.assign({},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:Qt(this.scope,(r=e.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},Jl),n),await this.loginWithPopup(o,n),(await this.cacheManager.get(new Me({scope:o.authorizationParams.scope,audience:o.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(e){e.clientId!==null?e.clientId=e.clientId||this.options.clientId:delete e.clientId;const n=e.logoutParams||{},{federated:r}=n,o=Re(n,["federated"]),i=r?"&federated":"";return this._url(`/v2/logout?${ar(Object.assign({clientId:e.clientId},o))}`)+i}async logout(e={}){const n=ko(e),{openUrl:r}=n,o=Re(n,["openUrl"]);e.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(e.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const i=this._buildLogoutUrl(o);r?await r(i):r!==!1&&window.location.assign(i)}async _getTokenFromIFrame(e){const n=Object.assign(Object.assign({},e.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!n.organization&&(n.organization=r);const{url:o,state:i,nonce:c,code_verifier:a,redirect_uri:l,scope:u,audience:d}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Se("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const p=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,f=await((m,v,g=60)=>new Promise((w,E)=>{const O=window.document.createElement("iframe");O.setAttribute("width","0"),O.setAttribute("height","0"),O.style.display="none";const x=()=>{window.document.body.contains(O)&&(window.document.body.removeChild(O),window.removeEventListener("message",y,!1))};let y;const k=setTimeout(()=>{E(new Ft),x()},1e3*g);y=function(I){if(I.origin!=v||!I.data||I.data.type!=="authorization_response")return;const j=I.source;j&&j.close(),I.data.response.error?E(Se.fromPayload(I.data.response)):w(I.data.response),clearTimeout(k),window.removeEventListener("message",y,!1),setTimeout(x,2e3)},window.addEventListener("message",y,!1),window.document.body.appendChild(O),O.setAttribute("src",m)}))(o,this.domainUrl,p);if(i!==f.state)throw new Error("Invalid state");const h=await this._requestToken(Object.assign(Object.assign({},e.authorizationParams),{code_verifier:a,code:f.code,grant_type:"authorization_code",redirect_uri:l,timeout:e.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:c});return Object.assign(Object.assign({},h),{scope:u,oauthTokenScope:h.scope,audience:d})}catch(p){throw p.error==="login_required"&&this.logout({openUrl:!1}),p}}async _getTokenUsingRefreshToken(e){const n=await this.cacheManager.get(new Me({scope:e.authorizationParams.scope,audience:e.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw new Cn(e.authorizationParams.audience||"default",e.authorizationParams.scope)}const r=e.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,o=typeof e.timeoutInSeconds=="number"?1e3*e.timeoutInSeconds:null;try{const i=await this._requestToken(Object.assign(Object.assign(Object.assign({},e.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),o&&{timeout:o}));return Object.assign(Object.assign({},i),{scope:e.authorizationParams.scope,oauthTokenScope:i.scope,audience:e.authorizationParams.audience||"default"})}catch(i){if((i.message.indexOf("Missing Refresh Token")>-1||i.message&&i.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw i}}async _saveEntryInCache(e){const{id_token:n,decodedToken:r}=e,o=Re(e,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,e.id_token,e.decodedToken),await this.cacheManager.set(o)}async _getIdTokenFromCache(){const e=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new Me({clientId:this.options.clientId,audience:e,scope:this.scope})),r=this.userCache.get("@@user@@");return n&&n.id_token===r?.id_token?r:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:e,audience:n,clientId:r}){const o=await this.cacheManager.get(new Me({scope:e,audience:n,clientId:r}),60);if(o&&o.access_token){const{access_token:i,oauthTokenScope:c,expires_in:a}=o,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:i},c?{scope:c}:null),{expires_in:a})}}async _requestToken(e,n){const{nonceIn:r,organizationId:o}=n||{},i=await ru(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},e),this.worker),c=await this._verifyIdToken(i.id_token,r,o);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},i),{decodedToken:c,scope:e.scope,audience:e.audience||"default"}),i.scope?{oauthTokenScope:i.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(c.claims.org_id),Object.assign(Object.assign({},i),{decodedToken:c})}}var Ri={isAuthenticated:!1,isLoading:!0},Ue=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},gu=pe(pe({},Ri),{buildAuthorizeUrl:Ue,buildLogoutUrl:Ue,getAccessTokenSilently:Ue,getAccessTokenWithPopup:Ue,getIdTokenClaims:Ue,loginWithRedirect:Ue,loginWithPopup:Ue,logout:Ue,handleRedirectCallback:Ue}),Mi=b.createContext(gu),bu=function(t){ql(e,t);function e(n,r){var o=t.call(this,r||n)||this;return o.error=n,o.error_description=r,Object.setPrototypeOf(o,e.prototype),o}return e}(Error),yu=/[?&]code=[^&]+/,wu=/[?&]state=[^&]+/,xu=/[?&]error=[^&]+/,Cu=function(t){return t===void 0&&(t=window.location.search),(yu.test(t)||xu.test(t))&&wu.test(t)},Di=function(t){return function(e){return"error"in e?new bu(e.error,e.error_description):e instanceof Error?e:new Error(t)}},To=Di("Login failed"),Dn=Di("Get access token failed"),Wi=function(t){var e;t?.redirectUri&&(console.warn("Using `redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),t.authorizationParams=t.authorizationParams||{},t.authorizationParams.redirect_uri=t.redirectUri,delete t.redirectUri),!((e=t?.authorizationParams)===null||e===void 0)&&e.redirectUri&&(console.warn("Using `authorizationParams.redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `authorizationParams.redirectUri` will be removed in a future version"),t.authorizationParams.redirect_uri=t.authorizationParams.redirectUri,delete t.authorizationParams.redirectUri)},Ou=function(t,e){switch(e.type){case"LOGIN_POPUP_STARTED":return pe(pe({},t),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return pe(pe({},t),{isAuthenticated:!!e.user,user:e.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return t.user===e.user?t:pe(pe({},t),{isAuthenticated:!!e.user,user:e.user});case"LOGOUT":return pe(pe({},t),{isAuthenticated:!1,user:void 0});case"ERROR":return pe(pe({},t),{isLoading:!1,error:e.error})}},Eu=function(t){return Wi(t),pe(pe({},t),{auth0Client:{name:"auth0-react",version:"2.0.1"}})},Su=function(t){window.history.replaceState({},document.title,t?.returnTo||window.location.pathname)},ju=function(t){var e=t.children,n=t.skipRedirectCallback,r=t.onRedirectCallback,o=r===void 0?Su:r,i=t.context,c=i===void 0?Mi:i,a=Yl(t,["children","skipRedirectCallback","onRedirectCallback","context"]),l=b.useState(function(){return new vu(Eu(a))})[0],u=b.useReducer(Ou,Ri),d=u[0],p=u[1],f=b.useRef(!1);b.useEffect(function(){f.current||(f.current=!0,function(){return ft(void 0,void 0,void 0,function(){var y,k,I;return pt(this,function(j){switch(j.label){case 0:return j.trys.push([0,7,,8]),y=void 0,Cu()&&!n?[4,l.handleRedirectCallback()]:[3,3];case 1:return k=j.sent().appState,[4,l.getUser()];case 2:return y=j.sent(),o(k,y),[3,6];case 3:return[4,l.checkSession()];case 4:return j.sent(),[4,l.getUser()];case 5:y=j.sent(),j.label=6;case 6:return p({type:"INITIALISED",user:y}),[3,8];case 7:return I=j.sent(),p({type:"ERROR",error:To(I)}),[3,8];case 8:return[2]}})})}())},[l,o,n]);var h=b.useCallback(function(y){return Wi(y),l.loginWithRedirect(y)},[l]),m=b.useCallback(function(y,k){return ft(void 0,void 0,void 0,function(){var I,j;return pt(this,function(_){switch(_.label){case 0:p({type:"LOGIN_POPUP_STARTED"}),_.label=1;case 1:return _.trys.push([1,3,,4]),[4,l.loginWithPopup(y,k)];case 2:return _.sent(),[3,4];case 3:return I=_.sent(),p({type:"ERROR",error:To(I)}),[2];case 4:return[4,l.getUser()];case 5:return j=_.sent(),p({type:"LOGIN_POPUP_COMPLETE",user:j}),[2]}})})},[l]),v=b.useCallback(function(y){return y===void 0&&(y={}),ft(void 0,void 0,void 0,function(){return pt(this,function(k){switch(k.label){case 0:return[4,l.logout(y)];case 1:return k.sent(),(y.openUrl||y.openUrl===!1)&&p({type:"LOGOUT"}),[2]}})})},[l]),g=b.useCallback(function(y){return ft(void 0,void 0,void 0,function(){var k,I,j,_;return pt(this,function(L){switch(L.label){case 0:return L.trys.push([0,2,3,5]),[4,l.getTokenSilently(y)];case 1:return k=L.sent(),[3,5];case 2:throw I=L.sent(),Dn(I);case 3:return j=p,_={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return j.apply(void 0,[(_.user=L.sent(),_)]),[7];case 5:return[2,k]}})})},[l]),w=b.useCallback(function(y,k){return ft(void 0,void 0,void 0,function(){var I,j,_,L;return pt(this,function(F){switch(F.label){case 0:return F.trys.push([0,2,3,5]),[4,l.getTokenWithPopup(y,k)];case 1:return I=F.sent(),[3,5];case 2:throw j=F.sent(),Dn(j);case 3:return _=p,L={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return _.apply(void 0,[(L.user=F.sent(),L)]),[7];case 5:return[2,I]}})})},[l]),E=b.useCallback(function(){return l.getIdTokenClaims()},[l]),O=b.useCallback(function(y){return ft(void 0,void 0,void 0,function(){var k,I,j;return pt(this,function(_){switch(_.label){case 0:return _.trys.push([0,2,3,5]),[4,l.handleRedirectCallback(y)];case 1:return[2,_.sent()];case 2:throw k=_.sent(),Dn(k);case 3:return I=p,j={type:"HANDLE_REDIRECT_COMPLETE"},[4,l.getUser()];case 4:return I.apply(void 0,[(j.user=_.sent(),j)]),[7];case 5:return[2]}})})},[l]),x=b.useMemo(function(){return pe(pe({},d),{getAccessTokenSilently:g,getAccessTokenWithPopup:w,getIdTokenClaims:E,loginWithRedirect:h,loginWithPopup:m,logout:v,handleRedirectCallback:O})},[d,g,w,E,h,m,v,O]);return b.createElement(c.Provider,{value:x},e)},Hi=function(t){return t===void 0&&(t=Mi),b.useContext(t)};const Lr=()=>s.jsx("span",{className:"spinner"});const Xe=({Logo:t=at,text:e="Loading..."})=>s.jsx("div",{className:"system-loader-overlay",children:s.jsxs("div",{className:"system-loader-container flex flex-column ai-center",children:[s.jsx(t,{}),s.jsx("h1",{className:"system-loader-text text-center mb-8",children:e}),s.jsx(Lr,{})]})}),ku=({activeStepName:t,showWarnIcon:e,stepsStatuses:n})=>s.jsx("ul",{className:"setup-flow-list",children:en.map(({name:r,label:o},i)=>{const c=r===t,a=n[r].state,l=e&&c?s.jsx("span",{className:"icon icon-box-16 icon-warn",children:"!"}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:c?"icon-arrow":""}),s.jsxs("span",{children:[i+1,"."]})]});return s.jsxs("li",{className:G("setup-flow-list-item",c&&"active"),children:[s.jsxs("div",{className:"setup-flow-list-item-icon-wrapper",children:[a==="prompt"&&l,a==="granted"&&s.jsx(oe,{name:"check"}),a==="denied"&&s.jsx(oe,{name:"close"})]}),o]},r)})}),Tu=({edgeNotificationsPermissionTimeout:t,isNotificationsPermissionPromptOpen:e})=>{const{name:n}=ba(),[r,o]=b.useState(!1);return b.useEffect(()=>{if(!e||n!=="Edge")return;const i=setTimeout(()=>o(!0),t);return()=>clearTimeout(i)},[n,t,e]),b.useEffect(()=>{e&&!r||o(!1)},[e,r,o]),{hasEdgeNotificationsPermissionError:r}},Pu=(t,e)=>{const{type:n,payload:r}=e;switch(n){case"completed":return{...t,[r.stepName]:{...t[r.stepName],isCompleted:!0}};case"skipped":return{...t,[r.stepName]:{isCompleted:!0,state:"denied"}};case"stateUpdated":{if(!r.state)throw Error('"stateUpdated" action invoked without state in payload');return{...t,[r.stepName]:{isCompleted:r.stepName===re.POPUPS?r.state==="granted":r.state!=="prompt",state:r.state}}}default:throw Error("Unknown action: "+n)}},Iu=t=>{const{handleDeferredStep:e,handleOperationComplete:n}=t;window.getScreenDetails().catch(async()=>{const{state:r}=await navigator.permissions.query({name:qe.WINDOW_MANAGEMENT});r==="prompt"&&e()}).finally(n)},_u=t=>{const{handleDeferredStep:e,handleOperationComplete:n}=t;Notification.requestPermission().then(async()=>{const{state:r}=await navigator.permissions.query({name:qe.NOTIFICATIONS});r==="prompt"&&e()}).finally(n)},Nu=t=>{const{handleDeferredStep:e,handleOperationComplete:n,dispatchAction:r}=t,o="about:blank",i="popup,width=1,height=1,top=9999,left=9999",c=window.open(o,void 0,i),a=window.open(o,void 0,i);c?.close(),a?.close();const l=!(c&&a);l&&e(),r({type:"stateUpdated",payload:{stepName:re.POPUPS,state:l?"denied":"granted"}}),n()},Au=t=>{const{dispatchAction:e}=t;e({type:"completed",payload:{stepName:re.PWA_INSTALL}})},Lu={[re.WINDOW_MANAGEMENT]:Iu,[re.NOTIFICATIONS]:_u,[re.POPUPS]:Nu,[re.PWA_INSTALL]:Au},Ru=({settings:t})=>{const{permission:e}=Ve(),[n,r]=Ie("localStorage",Vt,zt),[o,i]=b.useReducer(Pu,pa),[c,a]=b.useState(!1),[l,u]=b.useState(!1),d=en.find(g=>!o[g.name].isCompleted),p=d.name,f=en[en.length-1].name,{hasEdgeNotificationsPermissionError:h}=Tu({edgeNotificationsPermissionTimeout:t.edgeNotificationsPermissionTimeout,isNotificationsPermissionPromptOpen:l&&p===qe.NOTIFICATIONS}),m=()=>{a(!1),u(!0),Lu[p]({handleDeferredStep:()=>a(!0),handleOperationComplete:()=>u(!1),dispatchAction:g=>i(g)}),p===f&&r({isCompleted:!0})},v=()=>{a(!1),i({type:"skipped",payload:{stepName:p}})};return b.useEffect(()=>{h&&(u(!1),a(!0))},[h]),b.useEffect(()=>{a(!1),i({type:"stateUpdated",payload:{stepName:re.WINDOW_MANAGEMENT,state:Zt?e.statuses[re.WINDOW_MANAGEMENT]?.state:"denied"}}),i({type:"stateUpdated",payload:{stepName:re.NOTIFICATIONS,state:e.statuses[re.NOTIFICATIONS]?.state}})},[e.statuses]),s.jsxs(Sr,{description:d.description,heading:d.heading,Image:d.Image,title:"Platform Setup",children:[s.jsx(ku,{activeStepName:p,showWarnIcon:c&&p!==re.POPUPS,stepsStatuses:o}),s.jsx("p",{className:"setup-flow-instructions",children:c?d.instructions.additional:d.instructions.initial}),s.jsxs("div",{className:"flex setup-flow-btn-group",children:[s.jsx(Ut,{className:"io-btn io-btn-primary setup-flow-btn",disabled:l,onClick:m,children:d.actionBtnText}),p!==f&&s.jsx(Ut,{className:"io-btn io-btn-outline setup-flow-btn",disabled:l||p===re.WINDOW_MANAGEMENT,onClick:v,children:"Skip"})]}),l&&s.jsx(Lr,{})]})};const Rr=({components:{Logo:t=at,Loader:e=Xe}={},settings:n={}})=>{const{permission:r}=Ve();return r.isLoading?s.jsx(e,{text:"Checking browser permissions..."}):s.jsx(jr,{Logo:t,children:s.jsx(Ru,{settings:{...ca,...n}})})};const Mr=({errorMessage:t})=>{const e="https://support.interop.io",n=s.jsxs(s.Fragment,{children:["It seems that the following error prevents io.Connect Browser",s.jsx("br",{}),"from operating properly:",s.jsxs("span",{className:"browser-start-failed-error",children:["“",t,"”"]}),"For further assistance, visit our"," ",s.jsx("a",{className:"help-center-link",href:e,target:"_blank",rel:"noopener noreferrer",children:"help center"}),".",s.jsx("br",{}),s.jsx("p",{className:"thank-you",children:"Thank you for your cooperation."})]});return s.jsx(jr,{Logo:at,children:s.jsx(Sr,{className:"start-failed-card",heading:"Oops! io.Connect Browser couldn't start...",description:n,Image:aa,children:s.jsx(Ut,{className:"io-btn io-btn-primary visit-help-center-button",onClick:()=>window.open(e,"_blank","noopener,noreferrer"),children:"Visit the interop.io Help Center"})})})},Dr=({className:t="text-center mb-3",text:e="Making Your Work Flow"})=>s.jsxs(s.Fragment,{children:[s.jsx("h1",{className:G(t,"login-heading-title"),children:e}),s.jsxs("p",{className:"login-heading-paragraph",children:["Integrate apps, simplify user experiences and accelerate",s.jsx("br",{}),"digital transformation."]})]}),Mu=({components:t})=>{const e=t?.Logo||at,n=t?.Heading||Dr;return s.jsxs(s.Fragment,{children:[s.jsx(e,{}),s.jsx(n,{}),s.jsx(Lr,{})]})},Ui=({Logo:t,children:e,className:n})=>s.jsxs("div",{className:G(n,"login-container flex flex-column ai-center"),children:[s.jsx(t,{}),e]}),Du=({onLogin:t,isLoading:e,validationError:n,components:{Logo:r=at,Heading:o=Dr,Loader:i=Xe}={}})=>e?s.jsx(i,{text:"Verifying credentials..."}):s.jsxs(Ui,{Logo:r,children:[s.jsx(o,{}),s.jsx(Kt,{onClick:t,className:"io-btn-primary login-btn",children:"Log In"}),n&&s.jsxs("div",{className:"login-error-feedback",children:[s.jsx(oe,{name:"close"}),s.jsx("p",{children:n.message})]})]}),Po=(t,e)=>{const n=e.value,r=n.trim().length>3;return{value:n,isValid:r}},Wu=({onLogin:t,setIsLoading:e,loginError:n,setLoginError:r,userInputName:o})=>{const[i,c]=b.useReducer(Po,{value:"",isValid:!1}),[a,l]=b.useReducer(Po,{value:"",isValid:!1}),[u,d]=b.useState(!1),[p,f]=b.useState(!1),{isValid:h}=i,{isValid:m}=a,v=h&&m,g=y=>c({value:y.target.value}),w=y=>l({value:y.target.value}),E=()=>{h||d(!0)},O=()=>{m||f(!0)},x=async y=>{if(y.preventDefault(),!!v){e(!0);try{await t(i.value,a.value)}catch(k){r(k)}e(!1)}};return s.jsxs(Al,{className:"simple-login-form",onSubmit:x,children:[s.jsxs(ir,{className:"io-control-input simple-login-form-group",children:[s.jsx("input",{autoFocus:!0,autoComplete:"off",type:"text",placeholder:`Enter your ${o??"email"}`,value:i.value,onChange:g,onBlur:E,onFocus:()=>d(!1),className:G("io-input simple-login-input",u&&"input-error")}),u&&s.jsxs("div",{className:"simple-login-input-error",children:[s.jsx(oe,{name:"close",className:"error-icon"}),s.jsx("p",{children:`The ${o??"email"} is too short`})]})]}),s.jsxs(ir,{className:"io-control-input simple-login-form-group",children:[s.jsx("input",{autoComplete:"off",type:"password",placeholder:"Enter your password",value:a.value,onChange:w,onBlur:O,onFocus:()=>f(!1),className:G("io-input simple-login-input",p&&"input-error")}),p&&s.jsxs("div",{className:"simple-login-input-error",children:[s.jsx(oe,{name:"close",className:"error-icon"}),s.jsx("p",{children:"The password is too short"})]})]}),s.jsx(Ut,{type:"submit",className:"io-btn-primary io-btn login-btn simple-login-form-btn",children:"Log In"}),n&&s.jsxs("div",{className:"login-error-feedback",children:[s.jsx(oe,{name:"close",className:"error-icon"}),s.jsx("p",{children:n.message})]})]})};const Hu=({onLogin:t,userInputName:e,components:{Logo:n=at,Heading:r=Dr,Loader:o=Xe}={}})=>{const[i,c]=b.useState(!1),[a,l]=b.useState(null);return i?s.jsx(o,{text:"Verifying credentials..."}):s.jsxs(Ui,{Logo:n,children:[s.jsx(r,{}),s.jsx(Wu,{onLogin:t,setIsLoading:c,loginError:a,setLoginError:l,userInputName:e})]})};function Uu(t,e){const[n,r]=b.useState(!0),o=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{let i;return(async()=>{if(!o.workspaces)return;let c;try{c=await o.workspaces.getWorkspaceById(t)}catch(l){console.warn(l);return}const a=c.getAllGroups().find(l=>l.id===e);a&&(i=await a.onLockConfigurationChanged(({showAddWindowButton:l})=>{l!==void 0&&r(l)}),r(!!a.showAddWindowButton))})(),()=>i?.()},[t,e,o.workspaces]),n}const Fu=({groupId:t,workspaceId:e})=>{const n=Uu(e,t),r=b.useCallback(o=>{bt.showAddApplicationPopup({bounds:o,groupId:t,workspaceId:e})},[t,e]);return n&&s.jsx(bt.AddWindowButton,{title:"Add App",visible:n,showPopup:r})},Vu=t=>s.jsx(bt.GroupHeaderButtons,{...t,addWindow:{visible:!1,showPopup:t.addWindow.showPopup}}),zu=()=>null,Wr=({onLogout:t,user:e,workspaces:n,launchpad:r,Loader:o=Xe})=>{const{setPlatformWindow:i}=fr(),c=n?.HeaderLogoArea??Pi,a=window.iobrowser?.platformStarted,l=Is(),{login:{isLoggingOut:u}}=Ve();return ds(u),b.useEffect(()=>{a&&i({name:window.name})},[a,i]),s.jsxs(kr.Provider,{value:{onLogout:t,user:e,launchpadComponents:r?.components},children:[!l&&s.jsx(o,{text:"Loading io.Connect Home..."}),s.jsx(bt,{components:{...n?.components,header:{...n?.components?.header,LogoComponent:a?c:zu},groupHeader:{AfterTabsComponent:Fu,ButtonsComponent:Vu,...n?.components?.groupHeader}}})]})},Zu=ce({id:ae,username:z(ae),email:z(ae),firstName:z(ae),lastName:z(ae),avatarUrl:z(ae),token:z(ae),password:z(ae)}),Bu=({config:t})=>{const{setupFlow:e,login:n,workspaces:r,launchpad:o,getIOConnectConfig:i}=t,[c,a]=Ie("localStorage",hs,Zu),[l]=Ie("localStorage",Vt,zt),[u,d]=b.useState(null),{login:{isLoggingOut:p,setIsLoggingOut:f}}=Ve(),h=t.components?.SystemLoader??Xe,m=b.useCallback(async(g,w)=>{const E=await n.onLogin(g,w);a(E)},[n,a]),v=b.useCallback(()=>{f(!0),n.onLogout?.(),a(null)},[f,n,a]);return p?s.jsx(h,{text:"Logging out..."}):c?!l?.isCompleted&&e?.enabled!==!1?s.jsx(Rr,{settings:e?.settings,components:{...e?.components,Loader:h}}):u&&!u.message.includes("has already been started")?s.jsx(Mr,{errorMessage:u.message}):s.jsx(ee.IOConnectProvider,{settings:i(c),onInitError:d,fallback:s.jsx(h,{text:"Initializing io.Connect Browser..."}),children:s.jsx(Wr,{workspaces:r,launchpad:o,onLogout:v,user:c,Loader:h})}):s.jsx(Hu,{onLogin:m,userInputName:n.userInputName,components:{...n.components,Loader:h}})},$u=ce({message:ae}),Gu=t=>{const e=Hi(),[n,r]=b.useState(void 0),[o,i]=Ie("sessionStorage",fs,$u),c=b.useMemo(()=>e.user?t?.(e.user)??{ok:!0}:null,[e.user,t]),a=c?.ok===!1,l=e.isLoading||e.isAuthenticated&&!n,u=a||l,d=b.useMemo(()=>c?.ok&&e.user?.email&&n?{username:e.user.name,id:e.user.email,token:n}:null,[e.user,n,c?.ok]);return b.useEffect(()=>{e.isAuthenticated&&e.getAccessTokenSilently().then(r).catch(console.warn)},[e]),b.useEffect(()=>{if(c){if(c.ok){i(null);return}i({message:c.message}),e.logout()}},[e,i,c]),{isLoading:u,validationError:o,user:d}},cr={POPUP:"popup",REDIRECT:"redirect"},Ku=({config:t})=>{const e=Hi(),{setupFlow:n,login:r,launchpad:o,workspaces:i,getIOConnectConfig:c}=t,{isLoading:a,validationError:l,user:u}=Gu(r.validateUser),p=(r.loginType??cr.REDIRECT)===cr.REDIRECT?e.loginWithRedirect:e.loginWithPopup,[f]=Ie("localStorage",Vt,zt),[h,m]=b.useState(null),{login:{isLoggingOut:v,setIsLoggingOut:g}}=Ve(),w=t.components?.SystemLoader??Xe,E=b.useCallback(()=>{g(!0),e.logout()},[g,e]);return v?s.jsx(w,{text:"Logging out..."}):u?!f?.isCompleted&&n?.enabled!==!1?s.jsx(Rr,{settings:n?.settings,components:{...n?.components,Loader:w}}):h&&!h.message.includes("has already been started")?s.jsx(Mr,{errorMessage:h.message}):s.jsx(ee.IOConnectProvider,{settings:c({...e.user,token:u.token}),onInitError:m,fallback:s.jsx(w,{text:"Initializing the platform..."}),children:s.jsx(Wr,{workspaces:i,launchpad:o,onLogout:E,user:u,Loader:w})}):s.jsx(Du,{onLogin:p,isLoading:a,validationError:l,components:{...r.components,Loader:w}})},Io=({config:t})=>{const{setupFlow:e,launchpad:n,workspaces:r,getIOConnectConfig:o}=t,i=t.components?.SystemLoader??Xe,{onLogout:c,user:a}=t.login??{},{isPlatformWindow:l}=fr(),[u]=Ie("localStorage",Vt,zt),[d,p]=b.useState(null),{login:{isLoggingOut:f,setIsLoggingOut:h}}=Ve(),m=b.useCallback(async()=>{c&&(h(!0),c())},[c,h]);return f?s.jsx(i,{text:"Logging out..."}):!u?.isCompleted&&e?.enabled!==!1&&l?s.jsx(Rr,{settings:e?.settings,components:{...e?.components,Loader:i}}):d&&!d.message.includes("has already been started")?s.jsx(Mr,{errorMessage:d.message}):s.jsx(ee.IOConnectProvider,{settings:o(a),onInitError:p,fallback:s.jsx(i,{text:"Initializing io.Connect Browser..."}),children:s.jsx(Wr,{workspaces:r,launchpad:n,onLogout:m,user:a,Loader:i})})},Fi=ce({Logo:z(he().andThen(t=>xe(t,"Logo"))),Heading:z(he().andThen(t=>xe(t,"Heading")))}),qu=sn(...Object.values(cr).map(t=>wt(t))),Yu=ce({type:wt("auth0"),validateUser:z(he().andThen(t=>xe(t,"validateUser"))),loginType:z(qu),providerOptions:he(),components:z(Fi)}),Xu=ce({type:wt("simple"),onLogin:he().andThen(t=>xe(t,"onLogin")),onLogout:z(he().andThen(t=>xe(t,"onLogout"))),userInputName:z(ae),components:z(Fi)}),Ju=ce({id:ae,username:ae}),Qu=ce({type:wt("custom"),onLogout:he().andThen(t=>xe(t,"onLogout")),user:Ju}),ed=sn(Yu,Xu,Qu),td=ce({edgeNotificationsPermissionTimeout:z(Ss)}),nd=ce({Logo:z(he().andThen(t=>xe(t,"Logo")))}),rd=ce({enabled:z(dr()),components:z(nd),settings:z(td)}),od=ce({components:z(he()),HeaderLogoArea:z(he().andThen(t=>xe(t,"HeaderLogoArea")))}),id=ce({sections:z(he()),Sections:z(he().andThen(t=>xe(t,"Sections"))),NotificationsPanel:sn(wt(null),z(he().andThen(t=>xe(t,"NotificationsPanel")))),UserPanel:sn(wt(null),z(he().andThen(t=>xe(t,"UserPanel"))))}),sd=ce({components:z(id)}),ad=ce({SystemLoader:z(he().andThen(t=>xe(t,"SystemLoader")))}),cd=ce({getIOConnectConfig:he().andThen(t=>xe(t,"getIOConnectConfig")),login:z(ed),setupFlow:z(rd),workspaces:z(od),launchpad:z(sd),components:z(ad)}),ld=({config:t})=>{const e=b.useMemo(()=>cd.runWithException(t),[t]),n=e.login,r=e.launchpad?.components,{isPlatformWindow:o}=fr();if(r?.sections&&r?.Sections)throw new Error("Launchpad sections are overspecified. Please provide either a JSX element or a React component.");if(!n||!o){const{login:c,...a}=e;return s.jsx(Io,{config:a})}if(n.type==="custom")return s.jsx(Io,{config:e});if(n.type==="simple")return s.jsx(Bu,{config:e});const{providerOptions:i}=n;return s.jsx(ju,{...i,authorizationParams:{...i.authorizationParams,redirect_uri:i.authorizationParams?.redirect_uri??window.location.origin},children:s.jsx(Ku,{config:e})})},ud=({config:t})=>s.jsx(ni,{children:s.jsx(ld,{config:t})}),Vi=t=>t?.split(" ").map(e=>e[0]?.toUpperCase()).join(""),zi=b.forwardRef((t,e)=>{const{onSearch:n,searchTerm:r,onClear:o}=t,i=b.useContext(ee.IOConnectContext);return b.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:e,className:"io-input",placeholder:"Find anything",value:r,onChange:n}),s.jsx(oe,{name:"delete-left",className:r.length!==0?"active":"",onClick:o,"data-testid":"delete-icon"})]})}),dd=t=>t.reduce((e,n)=>{const{type:r}=n,o=n.id||n.displayName;if(!o||r.name===Fe.LAYOUT)return e;let i=[];r.name===Fe.APPLICATION?i=Do:r.name===Fe.WORKSPACE?i=Wo:n.secondaryActions&&(i=n.secondaryActions.map(({name:u,method:d,params:p,target:f})=>({name:u,interopParams:{method:d,params:p,target:f}})));const c={id:o,title:n.displayName||o,description:n.description,type:r.name,iconSrc:n.iconURL,mainAction:n.action,contextMenuActions:i},a=e.findIndex(({title:u})=>r.displayName?u===r.displayName:u===r.name),l=e[a];return l?[...e.slice(0,a),{...l,items:[...l.items,c]},...e.slice(a+1)]:[...e,{id:r.name,title:r.displayName||r.name,items:[c]}]},[]);function Zi(t){const{resultsToRender:e,isLoading:n}=Ws(t.searchTerm),r=st(),o=Ps(),i=pr(),c=Yo(),a=dd(e),l=Xo(),u=Jo(),d=(f,h)=>{const m=f.type===Fe.APPLICATION?l:f.type===Fe.WORKSPACE?u:null;m&&m(f,h)},p=async(f,h)=>{const{item:m,modifier:v,selectedContextMenuActionName:g}=h,{type:w,id:E,mainAction:O}=m,x=g?m.contextMenuActions?.find(y=>y.name===g):null;x?.interopParams?o(x.interopParams):g?d(m,g):O?o(O):w===Fe.APPLICATION?c({id:E,modifier:v}).catch(y=>{console.error("Failed to start application",{error:y})}):w===Fe.WORKSPACE&&i({id:E,modifier:v}).catch(y=>{console.error("Failed to restore workspace",{error:y})}),v!==mn.SHIFT&&r.close()};return n?s.jsx("p",{style:{padding:"12px 24px"},children:"Loading..."}):e.length===0?s.jsx("p",{style:{padding:"12px 24px"},children:"No results found."}):s.jsx("ul",{children:a.map((f,h)=>s.jsx(yn,{config:f,isFavoritismEnabled:!1,onItemClick:p},f.id||h))})}const fd=(t,e,n)=>{const{isSectionCollapsible:r,sortOrder:o=Dt.ASCENDING,...i}=n;return{id:"workspaces-section",title:"Workspaces",items:lr({items:t,sortOrder:o,ascendingCompare:Ho,descendingCompare:Uo}).map(l=>({...l,type:Fe.WORKSPACE,isOpen:e[l.title]?.length>0,contextMenuActions:Wo})),isCollapsible:r,...i}},Bi=t=>{const{displayCount:e,isSectionCollapsible:n,showAllItems:r,sortOrder:o}=t,i=Hs(),c=Us(),a=pr(),l=Jo(),u=b.useMemo(()=>fd(i,c,{...{displayCount:e,showAllItems:r},isSectionCollapsible:n,sortOrder:o}),[i,c,e,n,r,o]),d=p=>{const{item:f,modifier:h,selectedContextMenuActionName:m}=p;if(!m)return a({id:f.id,modifier:h}).catch(v=>{console.error("Failed to restore workspace",{error:v})});l(f,m)};return s.jsx(wn,{config:u,onItemClick:d})},pd=()=>s.jsxs(s.Fragment,{children:[s.jsx(ki,{}),s.jsx(Bi,{}),s.jsx(ji,{})]}),hd={success:"check"},_o={SET_AS_DEFAULT:"setAsDefault",DELETE:"delete"},md=t=>[{name:_o.SET_AS_DEFAULT,displayName:"Set as Default",disabled:t.isDefault},{name:_o.DELETE,displayName:"Delete",disabled:t.name===ei||t.isDefault}],No=t=>async e=>{e.stopPropagation();try{await t()}catch(n){console.error("Failed to handle layout action: ",n)}},vd=t=>{const{layouts:e}=t,{setSelectedLayout:n,setDefaultLayout:r}=st(),o=Ys(),i=hr(),c=oi(),a=u=>{c(()=>i(u.name,n))},l=(u,d)=>{c(()=>o(u,d.name,r))};return s.jsxs("div",{"data-testid":"available-layouts",children:[s.jsx("h6",{children:"Available Layouts"}),e.map(u=>s.jsxs("div",{className:G("layouts-item flex ai-center",u.isSelected&&"active"),"data-testid":"layout-item",children:[s.jsx("div",{className:"loaded me-8",children:u.isSelected&&s.jsx(oe,{size:12,name:"check"})}),s.jsx("div",{className:G("name",{bold:u.isSelected}),onClick:()=>a(u),children:u.name}),s.jsxs("div",{className:"type",children:[u.type,u.isDefault?"/Default":""]}),s.jsx(xr,{iconSize:16,iconName:"ellipsis",actions:md(u),onActionItemClick:(d,p)=>l(u,p)})]},u.name))]})},Ao=t=>{const{inputValue:e,setNotification:n,className:r=""}=t,{selectedLayout:o,setSelectedLayout:i}=st(),c=hr(),a=oi(),l=b.useContext(ee.IOConnectContext),u=[{label:"Save",type:"save",onClick:No(()=>{a(async()=>{await l.layouts.save({name:e,type:"Global"}),i({name:e}),n({message:"Saved",type:"success"})})}),testId:"save-button"},{label:"Restore",type:"restore",onClick:No(()=>{if(!o)return;a(()=>c(o.name))}),testId:"restore-button"}];return s.jsx("div",{className:G("layout-actions",r),"data-testid":"layout-actions",children:u.map(({label:d,type:p,disabled:f,onClick:h,testId:m})=>s.jsx("button",{onClick:h,disabled:f,className:"io-btn","data-testid":m,children:d},p))})},gd=({className:t,message:e,type:n})=>s.jsxs("div",{className:G("layout-notification",`layout-notification-${n}`,t),"data-testid":"layout-notification",children:[s.jsx(oe,{size:12,name:hd[n]}),s.jsx("span",{"data-testid":"layout-notification-message",children:e})]}),$i=()=>{const t=b.useRef(null),[e,n]=b.useState(!1),[r,o]=b.useState(null),i=Ns(),{defaultLayout:c,selectedLayout:a}=st(),[l,u]=b.useState("");b.useEffect(()=>{if(!e)return;const p=h=>{t.current?.contains(h.target)||n(!1)},f=()=>{document.activeElement?.nodeName==="IFRAME"&&n(!1)};return document.addEventListener("click",p,!0),window.addEventListener("blur",f,!0),()=>{document.removeEventListener("click",p,!0),window.removeEventListener("blur",f,!0)}},[e]),b.useEffect(()=>{if(!r)return;const p=setTimeout(()=>o(null),3e3);return()=>clearTimeout(p)},[r]),b.useEffect(()=>{a&&u(a.name)},[a]);const d=()=>{n(p=>!p),a&&u(a.name)};return s.jsxs("footer",{className:"footer",ref:t,"data-testid":"layouts-panel",children:[s.jsxs("div",{"aria-label":"Layouts panel","aria-expanded":e,role:"button",...yt(d),className:"selected-layout flex ai-center","data-testid":"selected-layout",children:[s.jsx("span",{className:G("name",{hidden:e}),"data-testid":"selected-layout-name",children:a?.name||"No selected layout"}),s.jsxs("div",{className:"flex ai-center","data-testid":"layout-actions-and-toggle",children:[!e&&s.jsx(Ao,{inputValue:l,setNotification:o}),s.jsx(oe,{className:G("ms-8","layouts-panel-toggle-button",{"layouts-panel-toggle-button-rotated":e}),name:"chevron-up","data-testid":"layouts-panel-toggle"})]})]}),s.jsx(xi,{isOpen:e,children:s.jsxs("div",{className:"layouts-container",children:[s.jsxs("div",{className:"layouts-settings",children:[s.jsx("input",{className:"io-input",onChange:p=>u(p.target.value),value:l,"data-testid":"layout-name-input"}),s.jsx(Ao,{className:"group",inputValue:l,setNotification:o})]}),s.jsx(vd,{layouts:i.map(p=>({...p,isSelected:p.name===a?.name,isDefault:p.name===c?.name}))})]})}),r?s.jsx(gd,{className:G({"ms-8 me-8":e}),message:r.message,type:r.type}):s.jsx("div",{className:"powered-by",children:"Powered by io.Connect Browser"})]})},bd=t=>{const e=new Date(t),n=e.getHours(),r=e.getMinutes().toString().padStart(2,"0"),o=e.getSeconds().toString().padStart(2,"0"),i=n>=12?"PM":"AM",c=e.getMonth()+1,a=e.getDate(),l=e.getFullYear();return`${n%12}:${r}:${o} ${i} ${c}/${a}/${l}`},Gi=t=>{const{severity:e="None",id:n,timestamp:r,title:o,body:i,actions:c}=t.notificationData,a=b.useContext(ee.IOConnectContext),l=()=>{a&&a.notifications.clear(n).catch(console.error)},u=async p=>{p.stopPropagation();try{await a.notifications.click(n),l()}catch(f){console.error(f)}},d=c?.map(({action:p,title:f})=>({children:f,onClick:async h=>{h.stopPropagation();try{await a.notifications.click(n,p),l()}catch(m){console.error(m)}}}));return s.jsxs("div",{className:"notifications-list-item",style:{borderLeftColor:As[e]},onClick:u,"data-testid":"notification-container",children:[s.jsxs("div",{className:"notification-header","data-testid":"notification-header",children:[s.jsx("h4",{children:o}),s.jsx(oe,{onClick:p=>{p.stopPropagation(),l()},className:"io-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:bd(r)}),d&&s.jsx(xn,{className:"notification-actions","data-testid":"notification-actions",items:d})]})},Hr=t=>{const{className:e}=t,n=Ko().length;return n>0?s.jsx("span",{className:G("notifications-badge",e),"data-testid":"notifications-badge",children:n<10?n:"9+"}):null},Ki=t=>{const{className:e,iconSize:n=24,...r}=t;return s.jsxs("div",{className:G(e,"notifications-icon"),"data-testid":"notifications-icon",...r,children:[s.jsx(oe,{size:n,name:"bell"}),s.jsx(Hr,{})]})},qi=()=>{const{onNotificationsSort:t,sortedNotifications:e}=Ds(),n=b.useContext(ee.IOConnectContext),r=b.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 (",e.length,")"]})}),s.jsx(xn,{items:[{children:"Latest",onClick:()=>t("timestamp")},{children:"By Priority",onClick:()=>t("severity")}]})]}),e.length?s.jsx("div",{className:"notifications-list","data-testid":"notifications-list",children:e.map(o=>s.jsx(Gi,{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(Kt,{children:"Clear All",onClick:r})})]})},yd=({user:t})=>{const e=b.useContext(ee.IOConnectContext),n=t?.username||"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 "+e.version]})]}),s.jsx("div",{className:"flex badge",children:Vi(n)})]})},Yi=()=>{const t=b.useContext(ee.IOConnectContext),[e,n]=b.useState([]);b.useEffect(()=>{t&&t.themes?.list().then(o=>n(o)).catch(console.warn)},[t]);const r=async(o,i)=>{i.name&&t.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(xn,{onItemClick:r,items:e.map(({name:o,displayName:i})=>({name:o,children:i}))})})]})]})},Xi=({title:t,description:e,links:n=[],onLogout:r,user:o})=>{const[i,c]=Ie("sessionStorage",Bo,Qo),a=b.useContext(ee.IOConnectContext),l=async()=>{try{r?.()}catch(u){console.error(u)}c(null),await a.webPlatform?.system.shutdown(),window.location.reload()};return s.jsxs("div",{className:"info info-bottom flex flex-column",children:[s.jsx("h4",{children:t||"Support"}),s.jsx("p",{children:e||"New set of thoughtfully curated items and the ability to configure them."}),s.jsx("ul",{children:n.map(({children:u,...d})=>s.jsx("li",{children:s.jsx("a",{...d,children:u})},d.href))}),o?.id&&s.jsx("div",{children:s.jsx(Kt,{onClick:l,children:"Log Out"})})]})},Ji=({onLogout:t,user:e})=>s.jsxs(s.Fragment,{children:[s.jsx(yd,{user:e}),s.jsx(Yi,{}),s.jsx(Xi,{onLogout:t,user:e})]}),Qi=t=>{const{initials:e,className:n,...r}=t;return s.jsx("div",{className:G(n,"user-panel-icon"),...r,children:e})},Lo=({children:t,closeFn:e,open:n=!1,showCloseButton:r=!0})=>{const o=b.useRef(null);return b.useEffect(()=>{n?o.current?.showModal():o.current?.close()},[n]),s.jsx("dialog",{ref:o,onClose:()=>{n&&e()},onClick:i=>{i.target.nodeName==="DIALOG"&&e()},children:s.jsxs("div",{className:"dialog-backer",children:[r&&s.jsx(oe,{onClick:e,className:"btn-close io-btn io-btn-icon",size:16,name:"close"}),t]})})};function es(t){const{open:e,setOpen:n,onLogout:r,className:o,components:i={},user:c,...a}=t,[l,u]=b.useState(""),[d,p]=b.useState(!1),[f,h]=b.useState(!1),m=b.useRef(null),{permission:v}=Ve(),g=Zt&&v.statuses[re.WINDOW_MANAGEMENT]?.state==="granted",w=i?.NotificationsPanel!==null,E=i?.UserPanel!==null,O=i?.NotificationsPanel??qi,x=i?.UserPanel??Ji;b.useEffect(()=>{if(e){m.current?.focus();return}u("")},[e]);const y=_=>{u(_.target.value)},k=()=>{u("")},I=i.Sections?s.jsx(i.Sections,{}):i.sections,j=s.jsx(Ul,{children:s.jsx("ul",{children:I??s.jsx(pd,{})})});return s.jsxs(ma,{setOpen:n,isOpen:e,children:[s.jsxs("div",{className:G(o),...a,children:[s.jsxs("header",{children:[s.jsx(zi,{ref:m,searchTerm:l,onSearch:y,onClear:k}),s.jsxs("div",{className:"action-area",children:[w&&s.jsx(Ki,{"aria-label":"Notifications",role:"button",...yt(()=>p(!0))}),E&&s.jsx(Qi,{initials:Vi(c?.username||"N A"),"aria-label":"Profile and Settings",role:"button",...yt(()=>h(!0))})]}),s.jsx(oe,{className:"btn-close io-btn io-btn-icon",size:16,name:"close",handleClick:()=>n(!1)})]}),s.jsx("main",{children:l.trim().length<3?j:s.jsx(Zi,{searchTerm:l})}),g&&s.jsx($i,{})]}),w&&s.jsx(Lo,{open:d,closeFn:()=>p(!1),children:s.jsx(O,{})}),E&&s.jsx(Lo,{open:f,closeFn:()=>h(!1),children:s.jsx(x,{onLogout:r,user:c})})]})}const ts=()=>s.jsxs(s.Fragment,{children:[s.jsx(bt.Logo,{frameId:""}),s.jsx(Hr,{})]}),wd="_workspaceLogo_t3m7s_1",Ro={workspaceLogo:wd,"launchpad-popup":"_launchpad-popup_t3m7s_9","slide-in":"_slide-in_t3m7s_32"},ns=t=>{const[e,n]=b.useState(!1),r=b.useRef(null),o=b.useRef(null),{icon:i,children:c}=t;return b.useEffect(()=>{if(!e)return;const a=u=>{const d=u.target!==r.current&&!r.current?.contains(u.target);!(u.target===o.current||o.current?.contains(u.target))&&d&&n(!1)},l=()=>{document.activeElement?.nodeName==="IFRAME"&&n(!1)};return document.addEventListener("mouseup",a,!0),window.addEventListener("blur",l,!0),()=>{document.removeEventListener("mouseup",a,!0),window.removeEventListener("blur",l,!0)}},[e]),s.jsxs("div",{ref:r,children:[s.jsx("button",{"aria-label":"Launchpad",onClick:()=>n(a=>!a),className:`io-logo ${e===!0?"active":""}`,ref:o,children:s.jsx("div",{className:"logo-wrapper",children:i})}),s.jsx("div",{children:s.jsx("div",{className:G(Ro["launchpad-popup"],{[Ro["slide-in"]]:e}),children:c({open:e,setOpen:n})})})]})},Ur=t=>{const{icon:e,components:n,user:r,onLogout:o}=t;return s.jsx(ns,{icon:e??s.jsx(ts,{}),children:({open:i,setOpen:c})=>s.jsx(es,{open:i,setOpen:c,components:n,user:r,onLogout:o})})},xd=()=>"getScreenDetails"in window;exports.ApplicationsSection=ji;exports.BaseSection=yn;exports.BaseSectionHeader=Zo;exports.BaseSectionItem=mi;exports.BrowserNotSupported=$l;exports.Button=Kt;exports.ButtonGroup=xn;exports.ContextMenu=hi;exports.DropdownButton=xr;exports.FavoritesSection=ki;exports.IOConnectHome=ud;exports.IOConnectHomeProvider=ni;exports.Icon=oe;exports.ImgIcon=ur;exports.Launchpad=es;exports.LaunchpadAccess=Pi;exports.LaunchpadSlidePanel=Ur;exports.LayoutsPanel=$i;exports.LoginLoader=Mu;exports.Logo=ts;exports.Notification=Gi;exports.NotificationsBadge=Hr;exports.NotificationsIcon=Ki;exports.NotificationsPanel=qi;exports.SearchBar=zi;exports.SearchResults=Zi;exports.Section=wn;exports.SettingsCard=Yi;exports.SlidePanel=ns;exports.SupportCard=Xi;exports.SystemLoader=Xe;exports.UserPanel=Ji;exports.UserPanelIcon=Qi;exports.WorkspaceComponentsContext=kr;exports.WorkspaceLogo=Kl;exports.WorkspacesSection=Bi;exports.useFavoriteEntities=hn;exports.useIOConnectHome=Ve;exports.useIsBrowserSupported=xd;exports.useWorkspaceComponentsContext=Ti;
54
54
  //# sourceMappingURL=index.js.map