aiware-js 1.0.0-master.1231 → 1.0.0-master.1233

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/js-core.esm18.js CHANGED
@@ -1 +1 @@
1
- import{ao as unmountPanel$1,a1 as hidePanel$1,e9 as unmountAllPanel$1,ea as getUniqueID,ap as mountPanel$1,bO as AvailableWidgets,bM as updatePanelMicroFrontendProps,bN as setData,eb as mountWidget,ec as unmountWidget,ed as updateTokenRequest,b5 as logout,ee as updateActivityStatus,ef as HelpCenter,B as takeEvery$1,eg as mountPanelForResponse$1,eh as DataCenter,C as select}from"./js-core.esm.js";import{setCustomKnowledgeBaseUrl,setCustomDocsUrl,updateSelectedTab}from"./js-core.esm19.js";import"./js-core.esm4.js";import"./js-core.esm6.js";class RateLimiter{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}}const rateLimiter=new RateLimiter,createAuthHelpers=t=>({updateToken(e){e?t.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{t.dispatch(logout())},1e3)):t.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&t.dispatch(updateActivityStatus())}}),helpCenter=()=>{var e=new HelpCenter({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}},dataCenter=()=>{var e=new DataCenter;return{openImporterPanel:e.openImporterPanel.bind(e)}},unmountPanel=t=>e=>(t.dispatch(unmountPanel$1(e)),!0),hidePanel=t=>e=>(t.dispatch(hidePanel$1(e)),!0),unmountAllPanel=e=>()=>{e.dispatch(unmountAllPanel$1(""))},mountPanel=l=>(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:a}=e;l.dispatch(mountPanel$1({microFrontend:e,panelId:n,panelConfig:a}));const o=[...(null==(e=null==a?void 0:a.header)?void 0:e.actions)||[],...(null==(e=null==a?void 0:a.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);a={id:n,sagas:[function*(){yield takeEvery$1(o.map(e=>e.type),function*(){var e=(yield select(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return l.addModule(a),n},mountPanelForResponse=t=>e=>mountPanelForResponse$1(e,t),attachSdkToWindow=e=>{var{init:e,store:t,aiwareEvents:n,bootstrapOptions:a}=e;!window||void 0!==window.aiware&&0!==Object.keys(window.aiware).length||(window.aiware={init:e,store:t,auth:createAuthHelpers(t),helpCenter:helpCenter(),dataCenter:dataCenter(),on:n.on,off:n.off,hidePanel:hidePanel(t),unmountPanel:unmountPanel(t),mountPanel:mountPanel(t),mountPanelForResponse:mountPanelForResponse(t),registry:a.registry,registryLookup:a.registryLookup,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,unmountWidget:unmountWidget,commit:"13d9aa771c"})};export{attachSdkToWindow,hidePanel,mountPanel,unmountAllPanel,unmountPanel};
1
+ import{ao as unmountPanel$1,a1 as hidePanel$1,e9 as unmountAllPanel$1,ea as getUniqueID,ap as mountPanel$1,bO as AvailableWidgets,bM as updatePanelMicroFrontendProps,bN as setData,eb as mountWidget,ec as unmountWidget,ed as updateTokenRequest,b5 as logout,ee as updateActivityStatus,ef as HelpCenter,B as takeEvery$1,eg as mountPanelForResponse$1,eh as DataCenter,C as select}from"./js-core.esm.js";import{setCustomKnowledgeBaseUrl,setCustomDocsUrl,updateSelectedTab}from"./js-core.esm19.js";import"./js-core.esm4.js";import"./js-core.esm6.js";class RateLimiter{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}}const rateLimiter=new RateLimiter,createAuthHelpers=t=>({updateToken(e){e?t.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{t.dispatch(logout())},1e3)):t.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&t.dispatch(updateActivityStatus())}}),helpCenter=()=>{var e=new HelpCenter({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}},dataCenter=()=>{var e=new DataCenter;return{openImporterPanel:e.openImporterPanel.bind(e)}},unmountPanel=t=>e=>(t.dispatch(unmountPanel$1(e)),!0),hidePanel=t=>e=>(t.dispatch(hidePanel$1(e)),!0),unmountAllPanel=e=>()=>{e.dispatch(unmountAllPanel$1(""))},mountPanel=l=>(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:a}=e;l.dispatch(mountPanel$1({microFrontend:e,panelId:n,panelConfig:a}));const o=[...(null==(e=null==a?void 0:a.header)?void 0:e.actions)||[],...(null==(e=null==a?void 0:a.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);a={id:n,sagas:[function*(){yield takeEvery$1(o.map(e=>e.type),function*(){var e=(yield select(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return l.addModule(a),n},mountPanelForResponse=t=>e=>mountPanelForResponse$1(e,t),attachSdkToWindow=e=>{var{init:e,store:t,aiwareEvents:n,bootstrapOptions:a}=e;!window||void 0!==window.aiware&&0!==Object.keys(window.aiware).length||(window.aiware={init:e,store:t,auth:createAuthHelpers(t),helpCenter:helpCenter(),dataCenter:dataCenter(),on:n.on,off:n.off,hidePanel:hidePanel(t),unmountPanel:unmountPanel(t),mountPanel:mountPanel(t),mountPanelForResponse:mountPanelForResponse(t),registry:a.registry,registryLookup:a.registryLookup,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,unmountWidget:unmountWidget,commit:"236a9531c6"})};export{attachSdkToWindow,hidePanel,mountPanel,unmountAllPanel,unmountPanel};
Binary file
package/js-core.esm22.js CHANGED
@@ -1,4 +1,4 @@
1
- import{j as jsxRuntime,X as createSlice,Z as useSelector,ei as authStatusSelector,ej as authContextSelector,r as react,ek as AuthContext,a2 as lodash,V as Box,el as img$a,bk as StyledEngineProvider,em as resetPasswordRequest,bR as ReactExports,en as setUser,z as all,B as takeEvery$1,C as select,F as call$o,G as put,a5 as showMessage,a6 as MessageSeverity}from"./js-core.esm.js";import{k as createSvgIcon,l as interopRequireDefault,F as FormattedMessage,m as makeStyles,A as AIWareIntlProvider,T as Typography,U as Select,bt as Location,V as MenuItem,o as DynamicModuleLoader,g as Button,ag as Fade,r as classNames,h as FormControl,aQ as OutlinedInput,P as Popover,D as Divider,ae as Slide,bu as CheckmarkFilled,bv as Bullet}from"./js-core.esm4.js";import{d as default_1$3}from"./js-core.esm23.js";import{d as default_1$2}from"./js-core.esm24.js";import{m as devErrorLogger,b as Stack,i as LoadingButton,h as InputLabel,u as InputAdornment,I as IconButton,T as TextField,j as Skeleton,O as Close$1}from"./js-core.esm5.js";import{R as Routes,f as Route,u as useNavigate,h as useLocation,i as useSearchParams,d as getAppbarPanelModule,j as useParams,c as applicationSelector,k as logoutUser$1}from"./js-core.esm3.js";import{d as default_1$4}from"./js-core.esm25.js";import{A as Alert}from"./js-core.esm15.js";import{L as LinearProgress}from"./js-core.esm26.js";import{B as Box$1}from"./js-core.esm27.js";import{C as Container}from"./js-core.esm28.js";import{S as Snackbar}from"./js-core.esm14.js";import{A as Autocomplete$1}from"./js-core.esm29.js";import{u as useDispatch}from"./js-core.esm6.js";import"./js-core.esm16.js";var match,version,set$1,get,store,STATE,activeXDocument,Visibility={},_interopRequireDefault$1=interopRequireDefault.exports,default_1$1=(Object.defineProperty(Visibility,"__esModule",{value:!0}),Visibility.default=void 0),_createSvgIcon$1=_interopRequireDefault$1(createSvgIcon),_jsxRuntime$1=jsxRuntime.exports,_default$1=(0,_createSvgIcon$1.default)((0,_jsxRuntime$1.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility"),default_1$1=Visibility.default=_default$1,ArrowBack={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(ArrowBack,"__esModule",{value:!0}),ArrowBack.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack"),default_1=ArrowBack.default=_default,commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math===Math&&e},global$p=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$n=function(e){try{return!!e()}catch(e){return!0}},fails$m=fails$n,descriptors=!fails$n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$l=fails$n,functionBindNative=!fails$n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$n=Function.prototype.call,functionCall=NATIVE_BIND$3?call$n.bind(call$n):function(){return call$n.apply(call$n,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$2&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$5=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$2(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,call$m=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$2&&FunctionPrototype$2.bind.bind(call$m,call$m),functionUncurryThis=NATIVE_BIND$2?uncurryThisWithBind:function(e){return function(){return call$m.apply(e,arguments)}},uncurryThis$p=functionUncurryThis,toString$c=uncurryThis$p({}.toString),stringSlice$9=uncurryThis$p("".slice),classofRaw$2=function(e){return stringSlice$9(toString$c(e),8,-1)},uncurryThis$o=functionUncurryThis,fails$k=fails$n,classof$8=classofRaw$2,$Object$4=Object,split$3=functionUncurryThis("".split),indexedObject=fails$k(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"===classof$8(e)?split$3(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$7=function(e){return null==e},isNullOrUndefined$6=isNullOrUndefined$7,$TypeError$e=TypeError,requireObjectCoercible$9=function(e){if(isNullOrUndefined$6(e))throw new $TypeError$e("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$8=requireObjectCoercible$9,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$8(e))},documentAll="object"==typeof document&&document.all,isCallable$o=void 0===documentAll&&void 0!==documentAll?function(e){return"function"==typeof e||e===documentAll}:function(e){return"function"==typeof e},isCallable$n=isCallable$o,isObject$d=function(e){return"object"==typeof e?null!==e:isCallable$n(e)},global$o=global$p,isCallable$m=isCallable$o,aFunction=function(e){return isCallable$m(e)?e:void 0},getBuiltIn$7=function(e,t){return arguments.length<2?aFunction(global$o[e]):global$o[e]&&global$o[e][t]},uncurryThis$n=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$n=global$p,userAgent$3=engineUserAgent,process$4=global$n.process,Deno$1=global$n.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent$3.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION$1=engineV8Version,fails$j=fails$n,global$m=global$p,$String$5=global$p.String,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$j(function(){var e=Symbol("symbol detection");return!$String$5(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$2=symbolConstructorDetection,useSymbolAsUid=symbolConstructorDetection&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$7,isCallable$l=isCallable$o,isPrototypeOf$5=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$l(t)&&isPrototypeOf$5(t.prototype,$Object$3(e))},$String$4=String,tryToString$4=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$k=isCallable$o,tryToString$3=tryToString$4,$TypeError$d=TypeError,aCallable$8=function(e){if(isCallable$k(e))return e;throw new $TypeError$d(tryToString$3(e)+" is not a function")},aCallable$7=aCallable$8,isNullOrUndefined$5=isNullOrUndefined$7,getMethod$6=function(e,t){e=e[t];return isNullOrUndefined$5(e)?void 0:aCallable$7(e)},call$l=functionCall,isCallable$j=isCallable$o,isObject$c=isObject$d,$TypeError$c=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$j(r=e.toString)&&!isObject$c(n=call$l(r,e)))return n;if(isCallable$j(r=e.valueOf)&&!isObject$c(n=call$l(r,e)))return n;if("string"!==t&&isCallable$j(r=e.toString)&&!isObject$c(n=call$l(r,e)))return n;throw new $TypeError$c("Can't convert object to primitive value")},sharedStore={exports:{}},isPure=!1,global$l=global$p,defineProperty$7=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$7(global$l,t,{value:r,configurable:!0,writable:!0})}catch(e){global$l[t]=r}return r},globalThis$1=global$p,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=sharedStore.exports=globalThis$1[SHARED]||defineGlobalProperty$2(SHARED,{}),store$2=((store$3.versions||(store$3.versions=[])).push({version:"3.37.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"}),sharedStore.exports),shared$4=function(e,t){return store$2[e]||(store$2[e]=t||{})},requireObjectCoercible$7=requireObjectCoercible$9,$Object$2=Object,toObject$5=function(e){return $Object$2(requireObjectCoercible$7(e))},uncurryThis$m=functionUncurryThis,toObject$4=toObject$5,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$4(e),t)},uncurryThis$l=functionUncurryThis,id=0,postfix=Math.random(),toString$b=uncurryThis$l(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$b(++id+postfix,36)},global$k=global$p,shared$3=shared$4,hasOwn$e=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$1=global$p.Symbol,WellKnownSymbolsStore=shared$3("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1.for||Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$l=function(e){return hasOwn$e(WellKnownSymbolsStore,e)||(WellKnownSymbolsStore[e]=NATIVE_SYMBOL$1&&hasOwn$e(Symbol$1,e)?Symbol$1[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},call$k=functionCall,isObject$b=isObject$d,isSymbol$1=isSymbol$2,getMethod$5=getMethod$6,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$k=wellKnownSymbol$l,$TypeError$b=TypeError,TO_PRIMITIVE=wellKnownSymbol$l("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$b(e)||isSymbol$1(e))return e;var r=getMethod$5(e,TO_PRIMITIVE);if(r){if(r=call$k(r,e,t=void 0===t?"default":t),!isObject$b(r)||isSymbol$1(r))return r;throw new $TypeError$b("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$2=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$j=global$p,isObject$a=isObject$d,document$3=global$p.document,EXISTS$1=isObject$a(document$3)&&isObject$a(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$h=descriptors,fails$i=fails$n,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$n(function(){return 7!==Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$g=descriptors,call$j=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$4=createPropertyDescriptor$5,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1=toPropertyKey$2,hasOwn$d=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$g?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$d(e,t))return createPropertyDescriptor$4(!call$j(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$f=descriptors,fails$h=fails$n,v8PrototypeDefineBug=descriptors&&fails$n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$9=isObject$d,$String$3=String,$TypeError$a=TypeError,anObject$h=function(e){if(isObject$9(e))return e;throw new $TypeError$a($String$3(e)+" is not an object")},DESCRIPTORS$e=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$g=anObject$h,toPropertyKey=toPropertyKey$2,$TypeError$9=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$d=(objectDefineProperty.f=DESCRIPTORS$e?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var n;return anObject$g(e),t=toPropertyKey(t),anObject$g(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&(n=$getOwnPropertyDescriptor(e,t))&&n[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:n)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:n)[ENUMERABLE],writable:!1}),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$g(e),t=toPropertyKey(t),anObject$g(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new $TypeError$9("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$4=objectDefineProperty,createPropertyDescriptor$3=createPropertyDescriptor$5,createNonEnumerableProperty$6=DESCRIPTORS$d?function(e,t,r){return definePropertyModule$4.f(e,t,createPropertyDescriptor$3(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$c=descriptors,hasOwn$c=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$c&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$c(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$c||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$k=functionUncurryThis,isCallable$i=isCallable$o,store$1=sharedStore.exports,functionToString=uncurryThis$k(Function.toString),inspectSource$3=(isCallable$i(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$i=global$p,isCallable$h=isCallable$o,WeakMap$1=global$p.WeakMap,weakMapBasicDetection=isCallable$h(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$2=shared$4,uid=uid$2,keys$1=shared$4("keys"),sharedKey$3=function(e){return keys$1[e]||(keys$1[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$h=global$p,isObject$8=isObject$d,createNonEnumerableProperty$5=createNonEnumerableProperty$6,hasOwn$b=hasOwnProperty_1,shared$1=sharedStore.exports,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$4=global$h.TypeError,WeakMap=global$h.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$8(e)&&(e=get(e)).type===t)return e;throw new TypeError$4("Incompatible receiver, "+t+" required")}},has=NATIVE_WEAK_MAP||shared$1.state?((store=shared$1.state||(shared$1.state=new WeakMap)).get=store.get,store.has=store.has,store.set=store.set,set$1=function(e,t){if(store.has(e))throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store.set(e,t),t},get=function(e){return store.get(e)||{}},function(e){return store.has(e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(e,t){if(hasOwn$b(e,STATE))throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$5(e,STATE,t),t},get=function(e){return hasOwn$b(e,STATE)?e[STATE]:{}},function(e){return hasOwn$b(e,STATE)}),internalState={set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor},uncurryThis$j=functionUncurryThis,fails$g=fails$n,isCallable$g=isCallable$o,hasOwn$a=hasOwnProperty_1,DESCRIPTORS$b=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,InternalStateModule$5=internalState,enforceInternalState$1=InternalStateModule$5.enforce,getInternalState$3=InternalStateModule$5.get,$String$2=String,defineProperty$6=Object.defineProperty,stringSlice$8=uncurryThis$j("".slice),replace$8=uncurryThis$j("".replace),join$3=uncurryThis$j([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$b&&!fails$g(function(){return 8!==defineProperty$6(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,r){"Symbol("===stringSlice$8($String$2(t),0,7)&&(t="["+replace$8($String$2(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$a(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$b?defineProperty$6(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$a(r,"arity")&&e.length!==r.arity&&defineProperty$6(e,"length",{value:r.arity});try{r&&hasOwn$a(r,"constructor")&&r.constructor?DESCRIPTORS$b&&defineProperty$6(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState$1(e);return hasOwn$a(r,"source")||(r.source=join$3(TEMPLATE,"string"==typeof t?t:"")),e},isCallable$f=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$g(this)&&getInternalState$3(this).source||inspectSource$2(this)},"toString"),isCallable$o),definePropertyModule$3=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$b=function(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(isCallable$f(r)&&makeBuiltIn$1(r,i,n),n.global)o?e[t]=r:defineGlobalProperty$1(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:definePropertyModule$3.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$4=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor$4:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$4=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$3=toIntegerOrInfinity$4,max$1=Math.max,min$2=Math.min,toAbsoluteIndex$1=function(e,t){e=toIntegerOrInfinity$3(e);return e<0?max$1(e+t,0):min$2(e,t)},toIntegerOrInfinity$2=toIntegerOrInfinity$4,min$1=Math.min,toLength$3=function(e){e=toIntegerOrInfinity$2(e);return 0<e?min$1(e,9007199254740991):0},toLength$2=toLength$3,lengthOfArrayLike$3=function(e){return toLength$2(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike$2=lengthOfArrayLike$3,createMethod$2=function(s){return function(e,t,r){var n=toIndexedObject$3(e),o=lengthOfArrayLike$2(n);if(0!==o){var i,a=toAbsoluteIndex(r,o);if(s&&t!=t){for(;a<o;)if((i=n[a++])!=i)return!0}else for(;a<o;a++)if((s||a in n)&&n[a]===t)return s||a||0}return!s&&-1}},arrayIncludes={includes:createMethod$2(!0),indexOf:createMethod$2(!1)},uncurryThis$i=functionUncurryThis,hasOwn$9=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$4=uncurryThis$i([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$2(e),o=0,i=[];for(r in n)!hasOwn$9(hiddenKeys$2,r)&&hasOwn$9(n,r)&&push$4(i,r);for(;t.length>o;)!hasOwn$9(n,r=t[o++])||~indexOf$1(i,r)||push$4(i,r);return i},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$7),uncurryThis$h=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$f=anObject$h,concat$2=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$f(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$2(t,r(e)):t},hasOwn$8=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$2=objectDefineProperty,copyConstructorProperties$2=function(e,t,r){for(var n=ownKeys(t),o=definePropertyModule$2.f,i=getOwnPropertyDescriptorModule.f,a=0;a<n.length;a++){var s=n[a];hasOwn$8(e,s)||r&&hasOwn$8(r,s)||o(e,s,i(t,s))}},fails$f=fails$n,isCallable$e=isCallable$o,replacement=/#|\.prototype\./,isForced$3=function(e,t){e=data[normalize(e)];return e===POLYFILL||e!==NATIVE&&(isCallable$e(t)?fails$f(t):!!t)},normalize=isForced$3.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$3.data={},NATIVE=isForced$3.NATIVE="N",POLYFILL=isForced$3.POLYFILL="P",isForced_1=isForced$3,global$g=global$p,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$4=createNonEnumerableProperty$6,defineBuiltIn$a=defineBuiltIn$b,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced$2=isForced_1,_export=function(e,t){var r,n,o,i=e.target,a=e.global,s=e.stat,l=a?global$g:s?global$g[i]||defineGlobalProperty(i,{}):global$g[i]&&global$g[i].prototype;if(l)for(r in t){if(n=t[r],o=e.dontCallGetSet?(o=getOwnPropertyDescriptor$1(l,r))&&o.value:l[r],!isForced$2(a?r:i+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof n==typeof o)continue;copyConstructorProperties$1(n,o)}(e.sham||o&&o.sham)&&createNonEnumerableProperty$4(n,"sham",!0),defineBuiltIn$a(l,r,n,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$a=descriptors,uncurryThis$g=functionUncurryThis,call$i=functionCall,fails$e=fails$n,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$3=toObject$5,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$5=Object.defineProperty,concat$1=uncurryThis$g([].concat),objectAssign=!$assign||fails$e(function(){var e,t,r,n;return!(!DESCRIPTORS$a||1===$assign({b:1},$assign(defineProperty$5({},"a",{enumerable:!0,get:function(){defineProperty$5(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},n="abcdefghijklmnopqrst",(e={})[r=Symbol("assign detection")]=7,n.split("").forEach(function(e){t[e]=e}),7!==$assign({},e)[r])||objectKeys$1($assign({},t)).join("")!==n})?function(e,t){for(var r=toObject$3(e),n=arguments.length,o=1,i=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;o<n;)for(var s,l=IndexedObject(arguments[o++]),c=i?concat$1(objectKeys$1(l),i(l)):objectKeys$1(l),u=c.length,p=0;p<u;)s=c[p++],DESCRIPTORS$a&&!call$i(a,l,s)||(r[s]=l[s]);return r}:$assign,$$f=_export,assign$1=objectAssign,objectDefineProperties=(_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$1},{assign:assign$1}),{}),DESCRIPTORS$9=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$1=objectDefineProperty,anObject$e=anObject$h,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$9&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$e(e);for(var r,n=toIndexedObject$1(t),o=objectKeys(t),i=o.length,a=0;a<i;)definePropertyModule$1.f(e,r=o[a++],n[r]);return e},getBuiltIn$7),html$2=getBuiltIn$7("document","documentElement"),anObject$d=anObject$h,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html$1=html$2,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html$1.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$d(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),wellKnownSymbol$j=wellKnownSymbol$l,create$4=objectCreate,defineProperty$4=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$j("unscopables"),ArrayPrototype$1=Array.prototype,addToUnscopables$2=(void 0===ArrayPrototype$1[UNSCOPABLES]&&defineProperty$4(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$4(null)}),function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0}),$$e=_export,$includes=arrayIncludes.includes,fails$d=fails$n,addToUnscopables$1=addToUnscopables$2,BROKEN_ON_SPARSE=fails$n(function(){return!Array(1).includes()}),wellKnownSymbol$i=($$e({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),addToUnscopables$1("includes"),wellKnownSymbol$l),TO_STRING_TAG$2=wellKnownSymbol$l("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$2]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$d=isCallable$o,classofRaw$1=classofRaw$2,wellKnownSymbol$h=wellKnownSymbol$l,TO_STRING_TAG$1=wellKnownSymbol$l("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"===classofRaw$1(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$7=TO_STRING_TAG_SUPPORT?classofRaw$1:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object$1(e),TO_STRING_TAG$1))?t:CORRECT_ARGUMENTS?classofRaw$1(e):"Object"===(t=classofRaw$1(e))&&isCallable$d(e.callee)?"Arguments":t},classof$6=classof$7,$String$1=String,toString$a=function(e){if("Symbol"===classof$6(e))throw new TypeError("Cannot convert a Symbol value to a string");return $String$1(e)},anObject$c=anObject$h,regexpFlags$1=function(){var e=anObject$c(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},fails$c=fails$n,global$f=global$p,$RegExp$2=global$p.RegExp,UNSUPPORTED_Y$2=fails$c(function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),MISSED_STICKY$1=UNSUPPORTED_Y$2||fails$c(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$2||fails$c(function(){var e=$RegExp$2("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),regexpStickyHelpers={BROKEN_CARET:BROKEN_CARET,MISSED_STICKY:MISSED_STICKY$1,UNSUPPORTED_Y:UNSUPPORTED_Y$2},fails$b=fails$n,global$e=global$p,$RegExp$1=global$p.RegExp,regexpUnsupportedDotAll=fails$b(function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),fails$a=fails$n,global$d=global$p,$RegExp=global$p.RegExp,regexpUnsupportedNcg=fails$a(function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),call$h=functionCall,uncurryThis$f=functionUncurryThis,toString$9=toString$a,regexpFlags=regexpFlags$1,stickyHelpers$1=regexpStickyHelpers,shared=shared$4,create$3=objectCreate,getInternalState$2=internalState.get,UNSUPPORTED_DOT_ALL$1=regexpUnsupportedDotAll,UNSUPPORTED_NCG$1=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$7=uncurryThis$f("".charAt),indexOf=uncurryThis$f("".indexOf),replace$7=uncurryThis$f("".replace),stringSlice$7=uncurryThis$f("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call$h(nativeExec,e,"a"),call$h(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y$1=stickyHelpers$1.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y$1||UNSUPPORTED_DOT_ALL$1||UNSUPPORTED_NCG$1,regexpExec$2=patchedExec=PATCH?function(e){var t,r,n,o,i,a,s=this,l=getInternalState$2(s),e=toString$9(e),c=l.raw;if(c)return c.lastIndex=s.lastIndex,p=call$h(patchedExec,c,e),s.lastIndex=c.lastIndex,p;var u=l.groups,c=UNSUPPORTED_Y$1&&s.sticky,p=call$h(regexpFlags,s),l=s.source,d=0,g=e;if(c&&(p=replace$7(p,"y",""),-1===indexOf(p,"g")&&(p+="g"),g=stringSlice$7(e,s.lastIndex),0<s.lastIndex&&(!s.multiline||s.multiline&&"\n"!==charAt$7(e,s.lastIndex-1))&&(l="(?: "+l+")",g=" "+g,d++),t=new RegExp("^(?:"+l+")",p)),NPCG_INCLUDED&&(t=new RegExp("^"+l+"$(?!\\s)",p)),UPDATES_LAST_INDEX_WRONG&&(r=s.lastIndex),n=call$h(nativeExec,c?t:s,g),c?n?(n.input=stringSlice$7(n.input,d),n[0]=stringSlice$7(n[0],d),n.index=s.lastIndex,s.lastIndex+=n[0].length):s.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&n&&(s.lastIndex=s.global?n.index+n[0].length:r),NPCG_INCLUDED&&n&&1<n.length&&call$h(nativeReplace,n[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)}),n&&u)for(n.groups=i=create$3(null),o=0;o<u.length;o++)i[(a=u[o])[0]]=n[a[1]];return n}:patchedExec,$$d=_export,exec$4=regexpExec$2,call$g=(_export({target:"RegExp",proto:!0,forced:/./.exec!==exec$4},{exec:exec$4}),functionCall),hasOwn$7=hasOwnProperty_1,isPrototypeOf$4=objectIsPrototypeOf,regExpFlags=regexpFlags$1,RegExpPrototype$3=RegExp.prototype,regexpGetFlags=function(e){var t=e.flags;return void 0!==t||"flags"in RegExpPrototype$3||hasOwn$7(e,"flags")||!isPrototypeOf$4(RegExpPrototype$3,e)?t:call$g(regExpFlags,e)},PROPER_FUNCTION_NAME$2=functionName.PROPER,defineBuiltIn$9=defineBuiltIn$b,anObject$b=anObject$h,$toString$2=toString$a,fails$9=fails$n,getRegExpFlags$1=regexpGetFlags,TO_STRING="toString",RegExpPrototype$2=RegExp.prototype,nativeToString=RegExpPrototype$2[TO_STRING],NOT_GENERIC=fails$9(function(){return"/a/b"!==nativeToString.call({source:"a",flags:"b"})}),INCORRECT_NAME=PROPER_FUNCTION_NAME$2&&nativeToString.name!==TO_STRING,isObject$7=((NOT_GENERIC||INCORRECT_NAME)&&defineBuiltIn$9(RegExpPrototype$2,TO_STRING,function(){var e=anObject$b(this);return"/"+$toString$2(e.source)+"/"+$toString$2(getRegExpFlags$1(e))},{unsafe:!0}),isObject$d),classof$5=classofRaw$2,wellKnownSymbol$g=wellKnownSymbol$l,MATCH$2=wellKnownSymbol$l("match"),isRegexp=function(e){var t;return isObject$7(e)&&(void 0!==(t=e[MATCH$2])?!!t:"RegExp"===classof$5(e))},isRegExp$1=isRegexp,$TypeError$8=TypeError,notARegexp=function(e){if(isRegExp$1(e))throw new $TypeError$8("The method doesn't accept regular expressions");return e},wellKnownSymbol$f=wellKnownSymbol$l,MATCH$1=wellKnownSymbol$l("match"),correctIsRegexpLogic=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[MATCH$1]=!1,"/./"[t](r)}catch(e){}}return!1},$$c=_export,uncurryThis$e=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible$6=requireObjectCoercible$9,toString$8=toString$a,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf$2=functionUncurryThis("".indexOf),NATIVE_BIND$1=($$c({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf$2(toString$8(requireObjectCoercible$6(this)),toString$8(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}}),functionBindNative),FunctionPrototype=Function.prototype,apply$2=FunctionPrototype.apply,call$f=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$f.bind(apply$2):function(){return call$f.apply(apply$2,arguments)}),call$e=functionCall,defineBuiltIn$8=defineBuiltIn$b,regexpExec$1=regexpExec$2,fails$8=fails$n,wellKnownSymbol$e=wellKnownSymbol$l,createNonEnumerableProperty$3=createNonEnumerableProperty$6,SPECIES$3=wellKnownSymbol$e("species"),RegExpPrototype$1=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(r,e,t,n){var a,o=wellKnownSymbol$e(r),s=!fails$8(function(){var e={};return e[o]=function(){return 7},7!==""[r](e)}),i=s&&!fails$8(function(){var e=!1,t=/a/;return"split"===r&&((t={constructor:{}}).constructor[SPECIES$3]=function(){return t},t.flags="",t[o]=/./[o]),t.exec=function(){return e=!0,null},t[o](""),!e});s&&i&&!t||(a=/./[o],i=e(o,""[r],function(e,t,r,n,o){var i=t.exec;return i===regexpExec$1||i===RegExpPrototype$1.exec?s&&!o?{done:!0,value:call$e(a,t,r,n)}:{done:!0,value:call$e(e,r,t,n)}:{done:!1}}),defineBuiltIn$8(String.prototype,r,i[0]),defineBuiltIn$8(RegExpPrototype$1,o,i[1])),n&&createNonEnumerableProperty$3(RegExpPrototype$1[o],"sham",!0)},uncurryThis$d=functionUncurryThis,toIntegerOrInfinity$1=toIntegerOrInfinity$4,toString$7=toString$a,requireObjectCoercible$5=requireObjectCoercible$9,charAt$6=uncurryThis$d("".charAt),charCodeAt$1=uncurryThis$d("".charCodeAt),stringSlice$6=uncurryThis$d("".slice),createMethod$1=function(o){return function(e,t){var r,e=toString$7(requireObjectCoercible$5(e)),t=toIntegerOrInfinity$1(t),n=e.length;return t<0||n<=t?o?"":void 0:(r=charCodeAt$1(e,t))<55296||56319<r||t+1===n||(n=charCodeAt$1(e,t+1))<56320||57343<n?o?charAt$6(e,t):r:o?stringSlice$6(e,t,t+2):n-56320+(r-55296<<10)+65536}},stringMultibyte={codeAt:createMethod$1(!1),charAt:createMethod$1(!0)},charAt$5=stringMultibyte.charAt,advanceStringIndex$2=function(e,t,r){return t+(r?charAt$5(e,t).length:1)},uncurryThis$c=functionUncurryThis,toObject$2=toObject$5,floor$3=Math.floor,charAt$4=uncurryThis$c("".charAt),replace$6=uncurryThis$c("".replace),stringSlice$5=uncurryThis$c("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(i,a,s,l,c,e){var u=s+i.length,p=l.length,t=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==c&&(c=toObject$2(c),t=SUBSTITUTION_SYMBOLS),replace$6(e,t,function(e,t){var r;switch(charAt$4(t,0)){case"$":return"$";case"&":return i;case"`":return stringSlice$5(a,0,s);case"'":return stringSlice$5(a,u);case"<":r=c[stringSlice$5(t,1,-1)];break;default:var n,o=+t;if(0==o)return e;if(p<o)return 0!==(n=floor$3(o/10))&&n<=p?void 0===l[n-1]?charAt$4(t,1):l[n-1]+charAt$4(t,1):e;r=l[o-1]}return void 0===r?"":r})},call$d=functionCall,anObject$a=anObject$h,isCallable$c=isCallable$o,classof$4=classofRaw$2,regexpExec=regexpExec$2,$TypeError$7=TypeError,regexpExecAbstract=function(e,t){var r=e.exec;if(isCallable$c(r))return null!==(r=call$d(r,e,t))&&anObject$a(r),r;if("RegExp"===classof$4(e))return call$d(regexpExec,e,t);throw new $TypeError$7("RegExp#exec called on incompatible receiver")},apply$1=functionApply,call$c=functionCall,uncurryThis$b=functionUncurryThis,fixRegExpWellKnownSymbolLogic$2=fixRegexpWellKnownSymbolLogic,fails$7=fails$n,anObject$9=anObject$h,isCallable$b=isCallable$o,isNullOrUndefined$4=isNullOrUndefined$7,toIntegerOrInfinity=toIntegerOrInfinity$4,toLength$1=toLength$3,toString$6=toString$a,requireObjectCoercible$4=requireObjectCoercible$9,advanceStringIndex$1=advanceStringIndex$2,getMethod$4=getMethod$6,getSubstitution=getSubstitution$1,regExpExec$2=regexpExecAbstract,wellKnownSymbol$d=wellKnownSymbol$l,REPLACE=wellKnownSymbol$l("replace"),max=Math.max,min=Math.min,concat=uncurryThis$b([].concat),push$3=uncurryThis$b([].push),stringIndexOf$1=uncurryThis$b("".indexOf),stringSlice$4=uncurryThis$b("".slice),maybeToString=function(e){return void 0===e?e:String(e)},REPLACE_KEEPS_$0="$0"==="a".replace(/./,"$0"),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=!!/./[REPLACE]&&""===/./[REPLACE]("a","$0"),REPLACE_SUPPORTS_NAMED_GROUPS=!fails$7(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")});fixRegExpWellKnownSymbolLogic$2("replace",function(e,b,y){var x=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(e,t){var r=requireObjectCoercible$4(this),n=isNullOrUndefined$4(e)?void 0:getMethod$4(e,REPLACE);return n?call$c(n,e,r,t):call$c(b,toString$6(r),e,t)},function(e,t){var r=anObject$9(this),n=toString$6(e);if("string"==typeof t&&-1===stringIndexOf$1(t,x)&&-1===stringIndexOf$1(t,"$<")){e=y(b,r,n,t);if(e.done)return e.value}for(var o,i=isCallable$b(t),a=(i||(t=toString$6(t)),r.global),s=(a&&(o=r.unicode,r.lastIndex=0),[]);null!==(p=regExpExec$2(r,n))&&(push$3(s,p),a);)""===toString$6(p[0])&&(r.lastIndex=advanceStringIndex$1(n,toLength$1(r.lastIndex),o));for(var l="",c=0,u=0;u<s.length;u++){for(var p,d=toString$6((p=s[u])[0]),g=max(min(toIntegerOrInfinity(p.index),n.length),0),$=[],h=1;h<p.length;h++)push$3($,maybeToString(p[h]));var m=p.groups,f=i?(f=concat([d],$,g,n),void 0!==m&&push$3(f,m),toString$6(apply$1(t,void 0,f))):getSubstitution(d,n,g,$,m,t);c<=g&&(l+=stringSlice$4(n,c,g)+f,c=g+d.length)}return l+stringSlice$4(n,c)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);const SHARED_TEXT={resetPasswordTitle:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.title",defaultMessage:"New password required",description:"Title of the reset password widget"}),inviteResetPasswordTitle:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.inviteTitle",defaultMessage:"Please create a password for your aiWARE account.",description:"Title of the reset password widget when resulting from an invite"}),resetPasswordSubHeader:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.subHeader",defaultMessage:"A strong password contains a mix of numbers, letters and symbols. It is hard to guess, does not resemble a real word and is only used for this account.",description:"Description of the reset password widget"}),passwordRequirements:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordRequirements",defaultMessage:"Password requirements",description:"Heading of password requirements"}),resetPasswordSubmitButton:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.submitButton",defaultMessage:"Change Password",description:"Text of submit button for reset password"}),inviteResetPasswordSubmitButton:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.inviteSubmitButton",defaultMessage:"Set Password",description:"Text of submit button for reset password when resulting from an invite"}),createAccountButton:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.sign-up-password.createAccountButton",defaultMessage:"Create Account",description:"Text of create account button for sign up password"}),lengthCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.lengthCheck",defaultMessage:"8 Character minimum",description:"The error message for the lengthCheck."}),pastPasswordCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.pastPasswordCheck",defaultMessage:"Not identical to last 10 passwords",description:"The error message for the pastPasswordCheck."}),userNameCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.userNameCheck",defaultMessage:"Not the same as account email",description:"The error message for the userNameCheck."}),dictionaryCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.dictionaryCheck",defaultMessage:"No dictionary passwords",description:"The error message for the dictionaryCheck."}),passwordsNotMatching:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordsNotMatching",defaultMessage:"Passwords not matching",description:"The error message for the passwords not matching."}),invalidTokenOrUsername:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.invalidTokenOrUsername",defaultMessage:"Error! Missing token or username.",description:"The error message for the missing token or username."}),passwordComplexityCheckSymbols:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordComplexityCheckSymbols",defaultMessage:"Requires 1 lowercase, 1 uppercase, 1 number, and 1 symbol.",description:"The error message for the check symbols error."}),passwordComplexityCheckDays:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordComplexityCheckDays",defaultMessage:"Cannot be changed twice within 10 days.",description:"The error message for the days error."})};var baseUrl$1="https://api.dev.us-1.veritone.com/v3/graphql",hubUrl$1="https://hub.dev.aiware.com/hub/v1",stripePublishableKey$1="pk_test_51No7B2IyHt9R0gSl5J4qqbZvRVLokabSDFw36G58tO1oxXO4mJzXmV0FvszOAfJcb25d5HgqZSlFIyMbL9bTFTb700vr9Fvgb9",stripePricingPlanId$1="prctbl_1No7MMIyHt9R0gSlZV4mqouD",sentryDSN$1="https://fddcba0905af4851ac01fa9f031df814@o57583.ingest.sentry.io/4505172433043456",showEnvironmentSelector$1=!0,switchAppUrl$1="https://api.dev.us-1.veritone.com/api/admin/switch-app",signupUrl$1="https://local.veritone.com:4201/ui/auth/sign-up",instanceUrls$1=[{aiwareInstanceName:"aiWARE US",coreAdminApiUrl:"https://api.dev.us-1.veritone.com/api/admin",coreGraphqlApiUrl:"https://api.dev.us-1.veritone.com/v3/graphql"},{aiwareInstanceName:"aiWARE Kernel",coreAdminApiUrl:"https://data.5f8728.aiware.run:8443/api/admin",coreGraphqlApiUrl:"https://data.5f8728.aiware.run:8443/v3/graphql"}],devConfigs={baseUrl:baseUrl$1,hubUrl:hubUrl$1,stripePublishableKey:stripePublishableKey$1,stripePricingPlanId:stripePricingPlanId$1,sentryDSN:sentryDSN$1,showEnvironmentSelector:showEnvironmentSelector$1,switchAppUrl:switchAppUrl$1,signupUrl:signupUrl$1,instanceUrls:instanceUrls$1},baseUrl="https://api.us-1.veritone.com/v3/graphql",hubUrl="https://hub.aiware.com/hub/v1",stripePublishableKey="pk_live_51NNcicInolL392yPxizaLizsnPFeNfU1QgFBOG7bB44OLhLcQDc7CyH8hlyweN6VDDLr2lB9lLyiUh1KGBaSEjPS00uSQ1sFFP",stripePricingPlanId="prctbl_1Nj36dInolL392yPggkeo88e",sentryDSN="https://fddcba0905af4851ac01fa9f031df814@o57583.ingest.sentry.io/4505172433043456",showEnvironmentSelector=!0,switchAppUrl="https://api.us-1.veritone.com/api/admin/switch-app",signupUrl="",instanceUrls=[{aiwareInstanceName:"aiWARE US",coreAdminApiUrl:"https://api.us-1.veritone.com/api/admin",coreGraphqlApiUrl:"https://api.us-1.veritone.com/v3/graphql"},{aiwareInstanceName:"aiWARE UK",coreAdminApiUrl:"https://api.uk-1.veritone.com/api/admin",coreGraphqlApiUrl:"https://api.uk-1.veritone.com/v3/graphql"},{aiwareInstanceName:"aiWARE CA",coreAdminApiUrl:"https://api.ca-1.veritone.com/api/admin",coreGraphqlApiUrl:"https://api.ca-1.veritone.com/v3/graphql"}],prodConfigs={baseUrl:baseUrl,hubUrl:hubUrl,stripePublishableKey:stripePublishableKey,stripePricingPlanId:stripePricingPlanId,sentryDSN:sentryDSN,showEnvironmentSelector:showEnvironmentSelector,switchAppUrl:switchAppUrl,signupUrl:signupUrl,instanceUrls:instanceUrls};function getConfig(){var e;return"development"===process.env.NODE_ENV?devConfigs:(e=window.aiwareConfig)?JSON.parse(JSON.stringify(e)):prodConfigs}function getRestApiUrlFromConfig(){return getConfig().baseUrl.replace("/v3/graphql","")}function parseToken(e=""){try{var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(atob(t).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(r)}catch(e){return console.log(e),null}}const envChecker=t=>window.location.href.split("://")[1].split(".").find(e=>e===t),envDetector=()=>{return envChecker("local")||envChecker("dev")||window.location.href.includes("localhost")?"dev":envChecker("stage")?"stage":"prod"},getCookie=t=>{var r=document.cookie.split("; ");for(let e=0;e<r.length;e++){var n=r[e].split("=");if(t===decodeURIComponent(n[0]))return decodeURIComponent(n[1])}return null},setCookie=(e,t,r)=>{var n=new Date,r=(n.setTime(n.getTime()+24*r*60*60*1e3),"expires="+n.toUTCString());document.cookie=`${e}=${encodeURIComponent(t)}; ${r}; path=/`},Header=({text:e,subText:t,type:r,sx:n={}})=>jsxRuntime.exports.jsxs(Box,Object.assign({sx:{marginBottom:"30px",textAlign:"center"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({sx:Object.assign({fontFamily:"Nunito",fontSize:"22px",lineHeight:"28px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},n),"data-testid":"os-auth-header-text-"+r},{children:e})),t&&jsxRuntime.exports.jsx(Typography,Object.assign({sx:{fontFamily:"Nunito",fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269",width:"368px"},"data-testid":"os-auth-subheader-text-"+r},{children:t}))]})),useStyles$7=makeStyles()(e=>({title:{textTransform:"initial",fontSize:22,marginBottom:e.spacing(4)},subHeader:{color:"#9CA8B4"},h6:{color:"#27292B"},requirements:{listStyle:"disc",padding:0,marginLeft:e.spacing(5),"& li":{marginBottom:e.spacing(1),color:"#27292B",fontSize:14,fontWeight:400,"&.requirementError":{color:"#D50000"}}},submitButton:{height:55,background:"#214167",fontSize:18,width:"100%",maxWidth:380,textTransform:"uppercase"},text:{fontFamily:"Nunito",fontWeight:400,fontSize:"22px",lineHeight:"18px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},subText:{fontFamily:"'Nunito Sans'",fontWeight:400,fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269"}}));var IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,iterators={},fails$6=fails$n,correctPrototypeGetter=!fails$n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$6=hasOwnProperty_1,isCallable$a=isCallable$o,toObject$1=toObject$5,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object=Object,ObjectPrototype=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(e){var t,e=toObject$1(e);return hasOwn$6(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$a(t)&&e instanceof t?t.prototype:e instanceof $Object?ObjectPrototype:null)},fails$5=fails$n,isCallable$9=isCallable$o,isObject$6=isObject$d,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$7=defineBuiltIn$b,wellKnownSymbol$c=wellKnownSymbol$l,ITERATOR$7=wellKnownSymbol$l("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),!isObject$6(IteratorPrototype$2)||fails$5(function(){var e={};return IteratorPrototype$2[ITERATOR$7].call(e)!==e})),iteratorsCore=(isCallable$9((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$7])||defineBuiltIn$7(IteratorPrototype$2,ITERATOR$7,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$3=objectDefineProperty.f,hasOwn$5=hasOwnProperty_1,wellKnownSymbol$b=wellKnownSymbol$l,TO_STRING_TAG=wellKnownSymbol$l("toStringTag"),setToStringTag$6=function(e,t,r){(e=e&&!r?e.prototype:e)&&!hasOwn$5(e,TO_STRING_TAG)&&defineProperty$3(e,TO_STRING_TAG,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$2=objectCreate,createPropertyDescriptor$2=createPropertyDescriptor$5,setToStringTag$5=setToStringTag$6,Iterators$4=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,r,n){t+=" Iterator";return e.prototype=create$2(IteratorPrototype$1,{next:createPropertyDescriptor$2(+!n,r)}),setToStringTag$5(e,t,!1),Iterators$4[t]=returnThis$1,e},uncurryThis$a=functionUncurryThis,aCallable$6=aCallable$8,functionUncurryThisAccessor=function(e,t,r){try{return uncurryThis$a(aCallable$6(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},isObject$5=isObject$d,isPossiblePrototype$1=function(e){return isObject$5(e)||null===e},isPossiblePrototype=isPossiblePrototype$1,$String=String,$TypeError$6=TypeError,aPossiblePrototype$1=function(e){if(isPossiblePrototype(e))return e;throw new $TypeError$6("Can't set "+$String(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,isObject$4=isObject$d,requireObjectCoercible$3=requireObjectCoercible$9,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=uncurryThisAccessor(Object.prototype,"__proto__","set"))(e,[]),n=e instanceof Array}catch(e){}return function(e,t){return requireObjectCoercible$3(e),aPossiblePrototype(t),isObject$4(e)&&(n?r(e,t):e.__proto__=t),e}}():void 0),$$b=_export,call$b=functionCall,FunctionName=functionName,isCallable$8=isCallable$o,createIteratorConstructor$1=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$2=objectSetPrototypeOf,setToStringTag$4=setToStringTag$6,createNonEnumerableProperty$2=createNonEnumerableProperty$6,defineBuiltIn$6=defineBuiltIn$b,wellKnownSymbol$a=wellKnownSymbol$l,Iterators$3=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME$1=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$6=wellKnownSymbol$a("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,r,n,o,i,a){createIteratorConstructor$1(r,t,n);function s(e){if(e===o&&g)return g;if(!BUGGY_SAFARI_ITERATORS&&e&&e in p)return p[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}}var l,c,n=t+" Iterator",u=!1,p=e.prototype,d=p[ITERATOR$6]||p["@@iterator"]||o&&p[o],g=!BUGGY_SAFARI_ITERATORS&&d||s(o),$="Array"===t&&p.entries||d;if($&&($=getPrototypeOf($.call(new e)))!==Object.prototype&&$.next&&(getPrototypeOf($)!==IteratorPrototype&&(setPrototypeOf$2?setPrototypeOf$2($,IteratorPrototype):isCallable$8($[ITERATOR$6])||defineBuiltIn$6($,ITERATOR$6,returnThis)),setToStringTag$4($,n,!0)),PROPER_FUNCTION_NAME$1&&o===VALUES&&d&&d.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$2(p,"name",VALUES):(u=!0,g=function(){return call$b(d,this)})),o)if(l={values:s(VALUES),keys:i?g:s(KEYS),entries:s(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in p||defineBuiltIn$6(p,c,l[c]);else $$b({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return p[ITERATOR$6]!==g&&defineBuiltIn$6(p,ITERATOR$6,g,{name:o}),Iterators$3[t]=g,l},createIterResultObject$3=function(e,t){return{value:e,done:t}},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$2,Iterators$2=iterators,InternalStateModule$4=internalState,defineProperty$2=objectDefineProperty.f,defineIterator$1=iteratorDefine,createIterResultObject$2=createIterResultObject$3,DESCRIPTORS$8=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$4=InternalStateModule$4.set,getInternalState$1=InternalStateModule$4.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator$1(Array,"Array",function(e,t){setInternalState$4(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState$1(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,createIterResultObject$2(void 0,!0);switch(e.kind){case"keys":return createIterResultObject$2(r,!1);case"values":return createIterResultObject$2(t[r],!1)}return createIterResultObject$2([r,t[r]],!1)},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS$8&&"values"!==values.name)try{defineProperty$2(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement=documentCreateElement$2,classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$c=global$p,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$1=createNonEnumerableProperty$6,setToStringTag$3=setToStringTag$6,wellKnownSymbol$9=wellKnownSymbol$l,ITERATOR$5=wellKnownSymbol$l("iterator"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR$5]!==ArrayValues)try{createNonEnumerableProperty$1(t,ITERATOR$5,ArrayValues)}catch(e){t[ITERATOR$5]=ArrayValues}if(setToStringTag$3(t,e,!0),DOMIterables[e])for(var r in ArrayIteratorMethods)if(t[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty$1(t,r,ArrayIteratorMethods[r])}catch(e){t[r]=ArrayIteratorMethods[r]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$c[COLLECTION_NAME]&&global$c[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");const useStyles$6=makeStyles()((e,{error:t,passwordRequirementsMet:r})=>{let n="auto";return t?n="red":r||(n="rgba(0, 0, 0, 0.26)"),{passwordLabel:{background:"white",padding:"0 3px"},passwordFormMarginTop:{marginTop:"20px"},passwordInput:{width:"368px",maxWidth:"85vw"},confirmPasswordLabel:{color:n,"&.Sdk-Mui-focused":{color:n}}}}),usePasswordRequirementStyles=makeStyles()(()=>({container:{width:"368px",maxWidth:"85vw",display:"flex",alignItems:"center",justifyContent:"center"},barContainer:{display:"flex",width:"100%",justifyContent:"space-between",padding:"15px 0px"},bar:{width:"23%",height:"4px",borderRadius:"20px"},metRequirement:{color:"#9CA8B4",textDecorationLine:"line-through"},unmetRequirement:{color:"#5C6269"},requirement:{display:"flex",alignItems:"center"},bullet:{transform:"translateY(8px)",marginLeft:"5px"},checkMark:{fill:"#0E6EEC",marginRight:"8px",marginLeft:"-3px"}})),DEFAULT_BUTTON_COLOR="#212121",DEFAULT_BUTTON_TEXT_COLOR="#FFFFFF",BlackButton=({onClick:e,text:t,type:r,loading:n,disableButton:o,sx:i={},ref:a,className:s,buttonColor:l,buttonTextColor:c,testId:u=""})=>{var p=l?l+"!important":DEFAULT_BUTTON_COLOR+"!important",c=c?c+"!important":DEFAULT_BUTTON_TEXT_COLOR+"!important",u=u||`os-auth--${r}-btn`;return jsxRuntime.exports.jsx(LoadingButton,Object.assign({color:"primary",variant:"contained",onClick:e,loading:n,ref:a,sx:Object.assign({textTransform:"none",fontSize:"18px",lineHeight:"24px",fontFamily:"Nunito",fontWeight:600,width:"100%",height:"56px",borderRadius:"50px",background:p,backgroundColor:p,color:c,"&.Sdk-MuiButton-root:not(:disabled):not(:hover), .Sdk-MuiButton-root:not(:disabled):not(:hover)":{background:p,backgroundColor:p,color:c},"&:hover":{background:p,backgroundColor:p,color:c,opacity:.9},":disabled":{backgroundColor:"#c3c3c3!important"},border:"1px solid "+l},i),className:s||void 0,"data-testid":u,disabled:o},{children:t}))};var isCallable$7=isCallable$o,isObject$3=isObject$d,setPrototypeOf$1=objectSetPrototypeOf,inheritIfRequired$1=function(e,t,r){return setPrototypeOf$1&&isCallable$7(t=t.constructor)&&t!==r&&isObject$3(t=t.prototype)&&t!==r.prototype&&setPrototypeOf$1(e,t),e},defineProperty$1=objectDefineProperty.f,proxyAccessor$1=function(e,t,r){r in e||defineProperty$1(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},makeBuiltIn=makeBuiltIn$3.exports,defineProperty=objectDefineProperty,defineBuiltInAccessor$4=function(e,t,r){return r.get&&makeBuiltIn(r.get,t,{getter:!0}),r.set&&makeBuiltIn(r.set,t,{setter:!0}),defineProperty.f(e,t,r)},getBuiltIn$3=getBuiltIn$7,defineBuiltInAccessor$3=defineBuiltInAccessor$4,wellKnownSymbol$8=wellKnownSymbol$l,DESCRIPTORS$7=descriptors,SPECIES$2=wellKnownSymbol$l("species"),setSpecies$2=function(e){e=getBuiltIn$3(e);DESCRIPTORS$7&&e&&!e[SPECIES$2]&&defineBuiltInAccessor$3(e,SPECIES$2,{configurable:!0,get:function(){return this}})},DESCRIPTORS$6=descriptors,global$b=global$p,uncurryThis$9=functionUncurryThis,isForced$1=isForced_1,inheritIfRequired=inheritIfRequired$1,createNonEnumerableProperty=createNonEnumerableProperty$6,create$1=objectCreate,getOwnPropertyNames=objectGetOwnPropertyNames.f,isPrototypeOf$3=objectIsPrototypeOf,isRegExp=isRegexp,toString$5=toString$a,getRegExpFlags=regexpGetFlags,stickyHelpers=regexpStickyHelpers,proxyAccessor=proxyAccessor$1,defineBuiltIn$5=defineBuiltIn$b,fails$4=fails$n,hasOwn$4=hasOwnProperty_1,enforceInternalState=internalState.enforce,setSpecies$1=setSpecies$2,wellKnownSymbol$7=wellKnownSymbol$l,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,MATCH=wellKnownSymbol$l("match"),NativeRegExp=global$b.RegExp,RegExpPrototype=NativeRegExp.prototype,SyntaxError=global$b.SyntaxError,exec$3=uncurryThis$9(RegExpPrototype.exec),charAt$3=uncurryThis$9("".charAt),replace$5=uncurryThis$9("".replace),stringIndexOf=uncurryThis$9("".indexOf),stringSlice$3=uncurryThis$9("".slice),IS_NCG=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,re1=/a/g,re2=/a/g,CORRECT_NEW=new NativeRegExp(re1)!==re1,MISSED_STICKY=stickyHelpers.MISSED_STICKY,UNSUPPORTED_Y=stickyHelpers.UNSUPPORTED_Y,BASE_FORCED=DESCRIPTORS$6&&(!CORRECT_NEW||MISSED_STICKY||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG||fails$4(function(){return re2[MATCH]=!1,NativeRegExp(re1)!==re1||NativeRegExp(re2)===re2||"/a/i"!==String(NativeRegExp(re1,"i"))})),handleDotAll=function(e){for(var t,r=e.length,n=0,o="",i=!1;n<=r;n++)"\\"===(t=charAt$3(e,n))?o+=t+charAt$3(e,++n):i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]";return o},handleNCG=function(e){for(var t,r=e.length,n=0,o="",i=[],a=create$1(null),s=!1,l=!1,c=0,u="";n<=r;n++){if("\\"===(t=charAt$3(e,n)))t+=charAt$3(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:exec$3(IS_NCG,stringSlice$3(e,n+1))&&(n+=2,l=!0),o+=t,c++;continue;case">"===t&&l:if(""===u||hasOwn$4(a,u))throw new SyntaxError("Invalid capture group name");a[u]=!0,l=!(i[i.length]=[u,c]),u="";continue}l?u+=t:o+=t}return[o,i]};if(isForced$1("RegExp",BASE_FORCED)){for(var RegExpWrapper=function(e,t){var r,n,o=isPrototypeOf$3(RegExpPrototype,this),i=isRegExp(e),a=void 0===t,s=[],l=e;if(!o&&i&&a&&e.constructor===RegExpWrapper)return e;if((i||isPrototypeOf$3(RegExpPrototype,e))&&(e=e.source,a)&&(t=getRegExpFlags(l)),e=void 0===e?"":toString$5(e),t=void 0===t?"":toString$5(t),l=e,i=t=UNSUPPORTED_DOT_ALL&&"dotAll"in re1&&(r=!!t&&-1<stringIndexOf(t,"s"))?replace$5(t,/s/g,""):t,MISSED_STICKY&&"sticky"in re1&&(n=!!t&&-1<stringIndexOf(t,"y"))&&UNSUPPORTED_Y&&(t=replace$5(t,/y/g,"")),UNSUPPORTED_NCG&&(e=(a=handleNCG(e))[0],s=a[1]),a=inheritIfRequired(NativeRegExp(e,t),o?this:RegExpPrototype,RegExpWrapper),(r||n||s.length)&&(t=enforceInternalState(a),r&&(t.dotAll=!0,t.raw=RegExpWrapper(handleDotAll(e),i)),n&&(t.sticky=!0),s.length)&&(t.groups=s),e!==l)try{createNonEnumerableProperty(a,"source",""===l?"(?:)":l)}catch(e){}return a},keys=getOwnPropertyNames(NativeRegExp),index=0;keys.length>index;)proxyAccessor(RegExpWrapper,NativeRegExp,keys[index++]);(RegExpPrototype.constructor=RegExpWrapper).prototype=RegExpPrototype,defineBuiltIn$5(global$b,"RegExp",RegExpWrapper,{constructor:!0})}setSpecies$1("RegExp");const PasswordRequirements=({password:r,setPasswordRequirementsMet:n})=>{var e=window.innerWidth<=850;const o=usePasswordRequirementStyles()["classes"];const i=[{id:"upperLower",label:"Upper & lower case letters",regex:new RegExp("(?=.*[a-z])(?=.*[A-Z])","g"),met:!1},{id:"length",label:"At least 8 characters",regex:new RegExp(".{8}$"),met:!1},{id:"specialCharacter",label:"A symbol (#$&!)",regex:new RegExp("[^a-zA-Z0-9]"),met:!1}],[a,s]=react.exports.useState(i),l={0:"#FF5722",1:"#FFC107",2:"#00BCD4",3:"#4CAF50"};return react.exports.useEffect(()=>{var e=[...i];for(const t of e)t.regex.test(r)&&(t.met=!0);e.find(e=>!e.met)?n(!1):n(!0),s(e)},[r]),jsxRuntime.exports.jsx(Box$1,Object.assign({className:o.container,"data-testid":"sign-up.password-requirements.pop-up"},{children:jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{boxSizing:"border-box",padding:"15px 20px",width:"100%",marginTop:"10px",marginBottom:"10px",borderRadius:"5px",marginRight:e?void 0:"15px",boxShadow:"0px 2px 10px 0px rgba(0, 0, 0, 0.20)",backgroundColor:"rgb(255, 255,255)","&::before":e?{}:{backgroundColor:"white",content:'""',display:"block",position:"absolute",width:12,height:12,top:"calc(50% - 6px)",transform:"rotate(45deg)",left:"calc(100% - 20px)"}}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1","data-testid":"sign-up.password-requirements.pop-up.message"},{children:r?{0:"Weak Password",1:"Average Password",2:"Good Password",3:"Strong Password 💪"}[a.filter(e=>e.met).length]:"Please set a strong password"})),jsxRuntime.exports.jsx(Box$1,Object.assign({className:o.barContainer},{children:Array.from(Array(4).keys()).map(e=>{var t=a.filter(e=>e.met).length;return jsxRuntime.exports.jsx(Box$1,{className:o.bar,sx:{background:e<=t&&r?l[t]:"#9CA8B4"}},e)})})),jsxRuntime.exports.jsx(Stack,Object.assign({sx:{gap:e?void 0:"13px"}},{children:a.map(e=>jsxRuntime.exports.jsxs(Box$1,Object.assign({className:classNames(o.requirement,e.met?o.metRequirement:o.unmetRequirement)},{children:[e.met?jsxRuntime.exports.jsx(CheckmarkFilled,{className:o.checkMark}):jsxRuntime.exports.jsx(Bullet,{className:o.bullet}),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2"},{children:e.label}))]}),e.id))}))]}))}))};var call$a=functionCall,fixRegExpWellKnownSymbolLogic$1=fixRegexpWellKnownSymbolLogic,anObject$8=anObject$h,isNullOrUndefined$3=isNullOrUndefined$7,toLength=toLength$3,toString$4=toString$a,requireObjectCoercible$2=requireObjectCoercible$9,getMethod$3=getMethod$6,advanceStringIndex=advanceStringIndex$2,regExpExec$1=regexpExecAbstract;fixRegexpWellKnownSymbolLogic("match",function(n,s,l){return[function(e){var t=requireObjectCoercible$2(this),r=isNullOrUndefined$3(e)?void 0:getMethod$3(e,n);return r?call$a(r,e,t):new RegExp(e)[n](toString$4(t))},function(e){var t=anObject$8(this),r=toString$4(e),e=l(s,t,r);if(e.done)return e.value;if(!t.global)return regExpExec$1(t,r);for(var n=t.unicode,o=[],i=t.lastIndex=0;null!==(a=regExpExec$1(t,r));){var a=toString$4(a[0]);""===(o[i]=a)&&(t.lastIndex=advanceStringIndex(r,toLength(t.lastIndex),n)),i++}return 0===i?null:o}]});const SLICE_NAME="signUp",namespace="initStep",initialState={env:"",status:"idle",activeStep:1,1:{email:"",firstName:"",lastName:""},2:{orgName:"",teamSize:"",country:"",industry:""},errors:{1:{email:!1,firstName:!1,lastName:!1},2:{orgName:!1,country:!1}},userUUID:"",userEmail:"",organizationUUID:""};function isKeyOfObject(e,t){return e in t}function validateEmail$1(e){return e.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)}const signUpSlice=createSlice({name:SLICE_NAME+"/"+namespace,initialState:initialState,reducers:{setStep(e,t){e.activeStep=t.payload},setValue(e,t){var{key:t,value:r}=t.payload;isKeyOfObject(t,e[e.activeStep])&&(e[e.activeStep][t]=r,isKeyOfObject(t,e.errors[e.activeStep]))&&(e.errors[e.activeStep][t]=!1)},validate(e){for(var[t,r]of Object.entries(e[e.activeStep]))isKeyOfObject(t,e.errors[e.activeStep])&&!r&&(e.errors[e.activeStep][t]=!0);1!==e.activeStep||validateEmail$1(e[1].email)||(e.errors[1].email=!0)},createUserStart(e){e.status="loading"},createUserSuccess(e){e.status="success"},createUserFailure(e){e.status="failure"},setEnv(e,t){t=t.payload;e.env=`https://hub${"prod"===t?"":"."+t}.aiware.com`},resetState:()=>initialState,activateUserStart(e,t){e.status="loading"},activateUserSuccess(e){e.status="success"},activateUserFailure(e){e.status="failure"}}}),actions=signUpSlice.actions;var signUpSlice$1=signUpSlice.reducer,whitespaces$2="\t\n\v\f\r                 \u2028\u2029\ufeff",uncurryThis$8=functionUncurryThis,requireObjectCoercible$1=requireObjectCoercible$9,toString$3=toString$a,whitespaces$1=whitespaces$2,replace$4=functionUncurryThis("".replace),ltrim=RegExp("^["+whitespaces$1+"]+"),rtrim=RegExp("(^|[^"+whitespaces$1+"])["+whitespaces$1+"]+$"),createMethod=function(t){return function(e){e=toString$3(requireObjectCoercible$1(e));return 1&t&&(e=replace$4(e,ltrim,"")),e=2&t?replace$4(e,rtrim,"$1"):e}},stringTrim={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},PROPER_FUNCTION_NAME=functionName.PROPER,fails$3=fails$n,whitespaces=whitespaces$2,non="​…᠎",stringTrimForced=function(e){return fails$3(function(){return!!whitespaces[e]()||non[e]()!==non||PROPER_FUNCTION_NAME&&whitespaces[e].name!==e})},$$a=_export,$trim=stringTrim.trim,forcedStringTrimMethod=stringTrimForced;$$a({target:"String",proto:!0,forced:stringTrimForced("trim")},{trim:function(){return $trim(this)}});const selectStatus=e=>{return null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e.status},selectActiveStep=e=>{return null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e.activeStep},selectFormValues=e=>{var t;return null==(t=null==e?void 0:e[SLICE_NAME])?void 0:t[null==(t=null==e?void 0:e[SLICE_NAME])?void 0:t.activeStep]},selectErrors=e=>{var t;return null==(t=null==(t=null==e?void 0:e[SLICE_NAME])?void 0:t.errors)?void 0:t[null==(t=null==e?void 0:e[SLICE_NAME])?void 0:t.activeStep]},selectCreateUserPayload=e=>{var{1:{email:e,firstName:t,lastName:r},2:{orgName:n,teamSize:o,country:i,industry:a}}=(null==e?void 0:e[SLICE_NAME])||{1:{},2:{}};return{userFirstName:t.trim(),userLastName:r.trim(),userEmail:e,userPhoneNumber:"",userOccupation:"",userCompany:"",organizationName:n.trim(),salesforceAttributes:JSON.stringify({teamSize:o,country:i,industry:a})}};var $location,defer,channel,port,toggle,node,promise,then,queue,flush,notify$1,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,global$a=global$p,classof$3=classofRaw$2,engineIsNode="process"===classofRaw$2(global$p.process),isPrototypeOf$2=objectIsPrototypeOf,$TypeError$5=TypeError,anInstance$3=function(e,t){if(isPrototypeOf$2(t,e))return e;throw new $TypeError$5("Incorrect invocation")},uncurryThis$7=functionUncurryThis,fails$2=fails$n,isCallable$6=isCallable$o,classof$2=classof$7,getBuiltIn$2=getBuiltIn$7,inspectSource$1=inspectSource$3,noop=function(){},construct=getBuiltIn$7("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$2=uncurryThis$7(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.test(noop),isConstructorModern=function(e){if(!isCallable$6(e))return!1;try{return construct(noop,[],e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$6(e))return!1;switch(classof$2(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$2(constructorRegExp,inspectSource$1(e))}catch(e){return!0}},isConstructor$2=(isConstructorLegacy.sham=!0,!construct||fails$2(function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){e=!0})||e})?isConstructorLegacy:isConstructorModern),isConstructor$1=isConstructor$2,tryToString$2=tryToString$4,$TypeError$4=TypeError,aConstructor$1=function(e){if(isConstructor$1(e))return e;throw new $TypeError$4(tryToString$2(e)+" is not a constructor")},anObject$7=anObject$h,aConstructor=aConstructor$1,isNullOrUndefined$2=isNullOrUndefined$7,wellKnownSymbol$6=wellKnownSymbol$l,SPECIES$1=wellKnownSymbol$l("species"),speciesConstructor$1=function(e,t){var e=anObject$7(e).constructor;return void 0===e||isNullOrUndefined$2(e=anObject$7(e)[SPECIES$1])?t:aConstructor(e)},classofRaw=classofRaw$2,uncurryThis$6=functionUncurryThis,functionUncurryThisClause=function(e){if("Function"===classofRaw(e))return uncurryThis$6(e)},uncurryThis$5=functionUncurryThisClause,aCallable$5=aCallable$8,NATIVE_BIND=functionBindNative,bind$7=functionUncurryThisClause(functionUncurryThisClause.bind),functionBindContext=function(e,t){return aCallable$5(e),void 0===t?e:NATIVE_BIND?bind$7(e,t):function(){return e.apply(t,arguments)}},uncurryThis$4=functionUncurryThis,arraySlice$3=functionUncurryThis([].slice),$TypeError$3=TypeError,validateArgumentsLength$3=function(e,t){if(e<t)throw new $TypeError$3("Not enough arguments");return e},userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$9=global$p,apply=functionApply,bind$6=functionBindContext,isCallable$5=isCallable$o,hasOwn$3=hasOwnProperty_1,fails$1=fails$n,html=html$2,arraySlice$2=arraySlice$3,createElement=documentCreateElement$2,validateArgumentsLength$2=validateArgumentsLength$3,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$9.setImmediate,clear=global$9.clearImmediate,process$3=global$9.process,Dispatch=global$9.Dispatch,Function$1=global$9.Function,MessageChannel=global$9.MessageChannel,String$1=global$9.String,counter=0,queue$2={},ONREADYSTATECHANGE="onreadystatechange",run=(fails$1(function(){$location=global$9.location}),function(e){var t;hasOwn$3(queue$2,e)&&(t=queue$2[e],delete queue$2[e],t())}),runner=function(e){return function(){run(e)}},eventListener=function(e){run(e.data)},globalPostMessageDefer=function(e){global$9.postMessage(String$1(e),$location.protocol+"//"+$location.host)},task$1=(set&&clear||(set=function(e){validateArgumentsLength$2(arguments.length,1);var t=isCallable$5(e)?e:Function$1(e),r=arraySlice$2(arguments,1);return queue$2[++counter]=function(){apply(t,void 0,r)},defer(counter),counter},clear=function(e){delete queue$2[e]},IS_NODE$3?defer=function(e){process$3.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel&&!IS_IOS$1?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=eventListener,defer=bind$6(port.postMessage,port)):global$9.addEventListener&&isCallable$5(global$9.postMessage)&&!global$9.importScripts&&$location&&"file:"!==$location.protocol&&!fails$1(globalPostMessageDefer)?(defer=globalPostMessageDefer,global$9.addEventListener("message",eventListener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)}),{set:set,clear:clear}),global$8=global$p,DESCRIPTORS$5=descriptors,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,safeGetBuiltIn$2=function(e){var t;return DESCRIPTORS$5?(t=getOwnPropertyDescriptor(global$8,e))&&t.value:global$8[e]},Queue$2=function(){this.head=null,this.tail=null},queue$1=(Queue$2.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},Queue$2),userAgent$1=engineUserAgent,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&"undefined"!=typeof Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$7=global$p,safeGetBuiltIn$1=safeGetBuiltIn$2,bind$5=functionBindContext,macrotask=task$1.set,Queue$1=queue$1,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$7.MutationObserver||global$7.WebKitMutationObserver,document$2=global$7.document,process$2=global$7.process,Promise$1=global$7.Promise,microtask$1=safeGetBuiltIn$1("queueMicrotask"),microtask_1=(microtask$1||(queue=new Queue$1,flush=function(){var e,t;for(IS_NODE$2&&(e=process$2.domain)&&e.exit();t=queue.get();)try{t()}catch(e){throw queue.head&&notify$1(),e}e&&e.enter()},notify$1=IS_IOS||IS_NODE$2||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$5(promise.then,promise),function(){then(flush)}):IS_NODE$2?function(){process$2.nextTick(flush)}:(macrotask=bind$5(macrotask,global$7),function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),function(){node.data=toggle=!toggle}),microtask$1=function(e){queue.head||notify$1(),queue.add(e)}),microtask$1),hostReportErrors$1=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},perform$3=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},global$6=global$p,promiseNativeConstructor=global$p.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$1=engineIsNode,engineIsBrowser=!engineIsDeno&&!engineIsNode&&"object"==typeof window&&"object"==typeof document,global$5=global$p,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$4=isCallable$o,isForced=isForced_1,inspectSource=inspectSource$3,wellKnownSymbol$5=wellKnownSymbol$l,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,SPECIES=(NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,wellKnownSymbol$5("species")),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$4(global$5.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",function(){var e=inspectSource(NativePromiseConstructor$3),t=e!==String(NativePromiseConstructor$3);if(!t&&66===V8_VERSION)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){function r(e){e(function(){},function(){})}e=new NativePromiseConstructor$3(function(e){e(1)});if((e.constructor={})[SPECIES]=r,!(SUBCLASSING=e.then(function(){})instanceof r))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$4=aCallable$8,$TypeError$2=TypeError,PromiseCapability=function(e){var r,n;this.promise=new e(function(e,t){if(void 0!==r||void 0!==n)throw new $TypeError$2("Bad Promise constructor");r=e,n=t}),this.resolve=aCallable$4(r),this.reject=aCallable$4(n)},$$9=(newPromiseCapability$2.f=function(e){return new PromiseCapability(e)},_export),IS_NODE=engineIsNode,global$4=global$p,call$9=functionCall,defineBuiltIn$4=defineBuiltIn$b,setPrototypeOf=objectSetPrototypeOf,setToStringTag$2=setToStringTag$6,setSpecies=setSpecies$2,aCallable$3=aCallable$8,isCallable$3=isCallable$o,isObject$2=isObject$d,anInstance$2=anInstance$3,speciesConstructor=speciesConstructor$1,task=task$1.set,microtask=microtask_1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue$1,InternalStateModule$3=internalState,NativePromiseConstructor$2=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule$3.getterFor(PROMISE),setInternalState$3=InternalStateModule$3.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$3=global$4.TypeError,document$1=global$4.document,process$1=global$4.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$4.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$2(e)||!isCallable$3(t=e.then))&&t},callReaction=function(e,t){var r,n,o,i=t.value,a=t.state===FULFILLED,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?r=i:(u&&u.enter(),r=s(i),u&&(u.exit(),o=!0)),r===e.promise?c(new TypeError$3("Promise-chain cycle")):(n=isThenable(r))?call$9(n,r,l,c):l(r)):c(i)}catch(e){u&&!o&&u.exit(),c(e)}},notify=function(r,n){r.notified||(r.notified=!0,microtask(function(){for(var e,t=r.reactions;e=t.get();)callReaction(e,r);r.notified=!1,n&&!r.rejection&&onUnhandled(r)}))},dispatchEvent=function(e,t,r){var n;DISPATCH_EVENT?((n=document$1.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),global$4.dispatchEvent(n)):n={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT&&(t=global$4["on"+e])?t(n):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",r)},onUnhandled=function(n){call$9(task,global$4,function(){var e=n.facade,t=n.value,r=isUnhandled(n);if(r&&(r=perform$2(function(){IS_NODE?process$1.emit("unhandledRejection",t,e):dispatchEvent(UNHANDLED_REJECTION,e,t)}),n.rejection=IS_NODE||isUnhandled(n)?UNHANDLED:HANDLED,r.error))throw r.value})},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(t){call$9(task,global$4,function(){var e=t.facade;IS_NODE?process$1.emit("rejectionHandled",e):dispatchEvent(REJECTION_HANDLED,e,t.value)})},bind$4=function(t,r,n){return function(e){t(r,e,n)}},internalReject=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw new TypeError$3("Promise can't be resolved itself");var n=isThenable(e);n?microtask(function(){var t={done:!1};try{call$9(n,e,bind$4(internalResolve,t,r),bind$4(internalReject,t,r))}catch(e){internalReject(t,e,r)}}):(r.value=e,r.state=FULFILLED,notify(r,!1))}catch(e){internalReject({done:!1},e,r)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance$2(this,PromisePrototype),aCallable$3(e),call$9(Internal,this);var t=getInternalPromiseState(this);try{e(bind$4(internalResolve,t),bind$4(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState$3(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$4(PromisePrototype,"then",function(e,t){var r=getInternalPromiseState(this),n=newPromiseCapability$1(speciesConstructor(this,PromiseConstructor));return r.parent=!0,n.ok=!isCallable$3(e)||e,n.fail=isCallable$3(t)&&t,n.domain=IS_NODE?process$1.domain:void 0,r.state===PENDING?r.reactions.add(n):microtask(function(){callReaction(n,r)}),n.promise}),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$4(internalResolve,t),this.reject=bind$4(internalReject,t)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},isCallable$3(NativePromiseConstructor$2))&&NativePromisePrototype$1!==Object.prototype){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$4(NativePromisePrototype$1,"then",function(e,t){var r=this;return new PromiseConstructor(function(e,t){call$9(nativeThen,r,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch(e){}setPrototypeOf&&setPrototypeOf(NativePromisePrototype$1,PromisePrototype)}$$9({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag$2(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var wellKnownSymbol$4=wellKnownSymbol$l,Iterators$1=iterators,ITERATOR$4=wellKnownSymbol$l("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$2=function(e){return void 0!==e&&(Iterators$1.Array===e||ArrayPrototype[ITERATOR$4]===e)},classof$1=classof$7,getMethod$2=getMethod$6,isNullOrUndefined$1=isNullOrUndefined$7,Iterators=iterators,wellKnownSymbol$3=wellKnownSymbol$l,ITERATOR$3=wellKnownSymbol$l("iterator"),getIteratorMethod$4=function(e){if(!isNullOrUndefined$1(e))return getMethod$2(e,ITERATOR$3)||getMethod$2(e,"@@iterator")||Iterators[classof$1(e)]},call$8=functionCall,aCallable$2=aCallable$8,anObject$6=anObject$h,tryToString$1=tryToString$4,getIteratorMethod$3=getIteratorMethod$4,$TypeError$1=TypeError,getIterator$3=function(e,t){var r=arguments.length<2?getIteratorMethod$3(e):t;if(aCallable$2(r))return anObject$6(call$8(r,e));throw new $TypeError$1(tryToString$1(e)+" is not iterable")},call$7=functionCall,anObject$5=anObject$h,getMethod$1=getMethod$6,iteratorClose$2=function(e,t,r){var n,o;anObject$5(e);try{if(!(n=getMethod$1(e,"return"))){if("throw"===t)throw r;return r}n=call$7(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return anObject$5(n),r},bind$3=functionBindContext,call$6=functionCall,anObject$4=anObject$h,tryToString=tryToString$4,isArrayIteratorMethod$1=isArrayIteratorMethod$2,lengthOfArrayLike$1=lengthOfArrayLike$3,isPrototypeOf$1=objectIsPrototypeOf,getIterator$2=getIterator$3,getIteratorMethod$2=getIteratorMethod$4,iteratorClose$1=iteratorClose$2,$TypeError=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$2=function(e,t,r){function n(e){return i&&iteratorClose$1(i,"normal",e),new Result(!0,e)}function o(e){return d?(anObject$4(e),h?m(e[0],e[1],n):m(e[0],e[1])):h?m(e,n):m(e)}var i,a,s,l,c,u,p=r&&r.that,d=!(!r||!r.AS_ENTRIES),g=!(!r||!r.IS_RECORD),$=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),m=bind$3(t,p);if(g)i=e.iterator;else if($)i=e;else{if(!(r=getIteratorMethod$2(e)))throw new $TypeError(tryToString(e)+" is not iterable");if(isArrayIteratorMethod$1(r)){for(a=0,s=lengthOfArrayLike$1(e);a<s;a++)if((l=o(e[a]))&&isPrototypeOf$1(ResultPrototype,l))return l;return new Result(!1)}i=getIterator$2(e,r)}for(c=(g?e:i).next;!(u=call$6(c,i)).done;){try{l=o(u.value)}catch(e){iteratorClose$1(i,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf$1(ResultPrototype,l))return l}return new Result(!1)},wellKnownSymbol$2=wellKnownSymbol$l,ITERATOR$2=wellKnownSymbol$l("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR$2]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(e){}var method,checkCorrectnessOfIteration$1=function(e,t){try{if(!t&&!SAFE_CLOSING)return!1}catch(e){return!1}var r=!1;try{var n={};n[ITERATOR$2]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},NativePromiseConstructor$1=promiseNativeConstructor,checkCorrectnessOfIteration=checkCorrectnessOfIteration$1,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration(function(e){NativePromiseConstructor$1.all(e).then(void 0,function(){})}),$$8=_export,call$5=functionCall,aCallable$1=aCallable$8,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration,$$7=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{all:function(e){var s=this,t=newPromiseCapabilityModule$2.f(s),l=t.resolve,c=t.reject,r=perform$1(function(){var n=aCallable$1(s.resolve),o=[],i=0,a=1;iterate$1(e,function(e){var t=i++,r=!1;a++,call$5(n,s,e).then(function(e){r||(r=!0,o[t]=e,--a)||l(o)},c)}),--a||l(o)});return r.error&&c(r.value),t.promise}}),_export),FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$7,isCallable$2=isCallable$o,defineBuiltIn$3=defineBuiltIn$b,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,$$6=($$7({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable$2(NativePromiseConstructor)&&(method=getBuiltIn$1("Promise").prototype.catch,NativePromisePrototype.catch!==method)&&defineBuiltIn$3(NativePromisePrototype,"catch",method,{unsafe:!0}),_export),call$4=functionCall,aCallable=aCallable$8,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,$$5=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function(e){var r=this,n=newPromiseCapabilityModule$1.f(r),o=n.reject,t=perform(function(){var t=aCallable(r.resolve);iterate(e,function(e){call$4(t,r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}}),_export),newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR,anObject$3=($$5({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return(0,t.reject)(e),t.promise}}),anObject$h),isObject$1=isObject$d,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(e,t){return anObject$3(e),isObject$1(t)&&t.constructor===e?t:((0,(e=newPromiseCapability.f(e)).resolve)(t),e.promise)},$$4=_export,getBuiltIn=getBuiltIn$7,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;function __awaiter(e,a,s,l){return new(s=s||Promise)(function(r,t){function n(e){try{i(l.next(e))}catch(e){t(e)}}function o(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(n,o)}i((l=l.apply(e,a||[])).next())})}getBuiltIn("Promise"),$$4({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}});const getOrgOpenIdProviders=(n,o)=>__awaiter(void 0,void 0,void 0,function*(){let t=[];var e=(o||getRestApiUrlFromConfig())+"/api/admin/openid/org/"+n;try{var r=yield fetch(e);t=200===r.status?(yield r.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",r),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),linkUserToOidAndLogin=(e,t,r)=>fetch(getRestApiUrlFromConfig()+"/api/admin/openid/linkUserToOid",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({userName:e,password:t,sessionKey:r})}),getUserInstances=r=>__awaiter(void 0,void 0,void 0,function*(){var e=`/aiware_user_instances?email=${r}&limit=1000&offset=0`;try{var t=yield fetch(getConfig().hubUrl+e,{method:"GET",headers:{"Content-Type":"application/json; charset=utf-8"}});if(t.ok)return yield t.json();throw new Error("Something went wrong while loading user instances.")}catch(e){return devErrorLogger(e),null}}),userLoginMutation=(r,n,o)=>__awaiter(void 0,void 0,void 0,function*(){var e=o||getConfig().baseUrl,t={query:`
1
+ import{j as jsxRuntime,X as createSlice,Z as useSelector,ei as authStatusSelector,ej as authContextSelector,r as react,ek as AuthContext,a2 as lodash,V as Box,el as img$a,bk as StyledEngineProvider,em as resetPasswordRequest,bR as ReactExports,en as setUser,z as all,B as takeEvery$1,C as select,F as call$o,G as put,a5 as showMessage,a6 as MessageSeverity}from"./js-core.esm.js";import{k as createSvgIcon,l as interopRequireDefault,F as FormattedMessage,m as makeStyles,A as AIWareIntlProvider,T as Typography,U as Select,bt as Location,V as MenuItem,o as DynamicModuleLoader,g as Button,ag as Fade,r as classNames,h as FormControl,aQ as OutlinedInput,P as Popover,D as Divider,ae as Slide,bu as CheckmarkFilled,bv as Bullet}from"./js-core.esm4.js";import{d as default_1$3}from"./js-core.esm23.js";import{d as default_1$2}from"./js-core.esm24.js";import{m as devErrorLogger,b as Stack,i as LoadingButton,h as InputLabel,u as InputAdornment,I as IconButton,T as TextField,j as Skeleton,O as Close$1}from"./js-core.esm5.js";import{R as Routes,f as Route,u as useNavigate,h as useLocation,i as useSearchParams,d as getAppbarPanelModule,j as useParams,c as applicationSelector,k as logoutUser$1}from"./js-core.esm3.js";import{d as default_1$4}from"./js-core.esm25.js";import{A as Alert}from"./js-core.esm15.js";import{L as LinearProgress}from"./js-core.esm26.js";import{B as Box$1}from"./js-core.esm27.js";import{C as Container}from"./js-core.esm28.js";import{S as Snackbar}from"./js-core.esm14.js";import{A as Autocomplete$1}from"./js-core.esm29.js";import{u as useDispatch}from"./js-core.esm6.js";import"./js-core.esm16.js";var match,version,set$1,get,store,STATE,activeXDocument,Visibility={},_interopRequireDefault$1=interopRequireDefault.exports,default_1$1=(Object.defineProperty(Visibility,"__esModule",{value:!0}),Visibility.default=void 0),_createSvgIcon$1=_interopRequireDefault$1(createSvgIcon),_jsxRuntime$1=jsxRuntime.exports,_default$1=(0,_createSvgIcon$1.default)((0,_jsxRuntime$1.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility"),default_1$1=Visibility.default=_default$1,ArrowBack={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(ArrowBack,"__esModule",{value:!0}),ArrowBack.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack"),default_1=ArrowBack.default=_default,commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math===Math&&e},global$p=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$n=function(e){try{return!!e()}catch(e){return!0}},fails$m=fails$n,descriptors=!fails$n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$l=fails$n,functionBindNative=!fails$n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$n=Function.prototype.call,functionCall=NATIVE_BIND$3?call$n.bind(call$n):function(){return call$n.apply(call$n,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$2&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$5=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$2(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,call$m=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$2&&FunctionPrototype$2.bind.bind(call$m,call$m),functionUncurryThis=NATIVE_BIND$2?uncurryThisWithBind:function(e){return function(){return call$m.apply(e,arguments)}},uncurryThis$p=functionUncurryThis,toString$c=uncurryThis$p({}.toString),stringSlice$9=uncurryThis$p("".slice),classofRaw$2=function(e){return stringSlice$9(toString$c(e),8,-1)},uncurryThis$o=functionUncurryThis,fails$k=fails$n,classof$8=classofRaw$2,$Object$4=Object,split$3=functionUncurryThis("".split),indexedObject=fails$k(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"===classof$8(e)?split$3(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$7=function(e){return null==e},isNullOrUndefined$6=isNullOrUndefined$7,$TypeError$e=TypeError,requireObjectCoercible$9=function(e){if(isNullOrUndefined$6(e))throw new $TypeError$e("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$8=requireObjectCoercible$9,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$8(e))},documentAll="object"==typeof document&&document.all,isCallable$o=void 0===documentAll&&void 0!==documentAll?function(e){return"function"==typeof e||e===documentAll}:function(e){return"function"==typeof e},isCallable$n=isCallable$o,isObject$d=function(e){return"object"==typeof e?null!==e:isCallable$n(e)},global$o=global$p,isCallable$m=isCallable$o,aFunction=function(e){return isCallable$m(e)?e:void 0},getBuiltIn$7=function(e,t){return arguments.length<2?aFunction(global$o[e]):global$o[e]&&global$o[e][t]},uncurryThis$n=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$n=global$p,userAgent$3=engineUserAgent,process$4=global$n.process,Deno$1=global$n.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent$3.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION$1=engineV8Version,fails$j=fails$n,global$m=global$p,$String$5=global$p.String,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$j(function(){var e=Symbol("symbol detection");return!$String$5(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$2=symbolConstructorDetection,useSymbolAsUid=symbolConstructorDetection&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$7,isCallable$l=isCallable$o,isPrototypeOf$5=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$l(t)&&isPrototypeOf$5(t.prototype,$Object$3(e))},$String$4=String,tryToString$4=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$k=isCallable$o,tryToString$3=tryToString$4,$TypeError$d=TypeError,aCallable$8=function(e){if(isCallable$k(e))return e;throw new $TypeError$d(tryToString$3(e)+" is not a function")},aCallable$7=aCallable$8,isNullOrUndefined$5=isNullOrUndefined$7,getMethod$6=function(e,t){e=e[t];return isNullOrUndefined$5(e)?void 0:aCallable$7(e)},call$l=functionCall,isCallable$j=isCallable$o,isObject$c=isObject$d,$TypeError$c=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$j(r=e.toString)&&!isObject$c(n=call$l(r,e)))return n;if(isCallable$j(r=e.valueOf)&&!isObject$c(n=call$l(r,e)))return n;if("string"!==t&&isCallable$j(r=e.toString)&&!isObject$c(n=call$l(r,e)))return n;throw new $TypeError$c("Can't convert object to primitive value")},sharedStore={exports:{}},isPure=!1,global$l=global$p,defineProperty$7=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$7(global$l,t,{value:r,configurable:!0,writable:!0})}catch(e){global$l[t]=r}return r},globalThis$1=global$p,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=sharedStore.exports=globalThis$1[SHARED]||defineGlobalProperty$2(SHARED,{}),store$2=((store$3.versions||(store$3.versions=[])).push({version:"3.37.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"}),sharedStore.exports),shared$4=function(e,t){return store$2[e]||(store$2[e]=t||{})},requireObjectCoercible$7=requireObjectCoercible$9,$Object$2=Object,toObject$5=function(e){return $Object$2(requireObjectCoercible$7(e))},uncurryThis$m=functionUncurryThis,toObject$4=toObject$5,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$4(e),t)},uncurryThis$l=functionUncurryThis,id=0,postfix=Math.random(),toString$b=uncurryThis$l(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$b(++id+postfix,36)},global$k=global$p,shared$3=shared$4,hasOwn$e=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$1=global$p.Symbol,WellKnownSymbolsStore=shared$3("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1.for||Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$l=function(e){return hasOwn$e(WellKnownSymbolsStore,e)||(WellKnownSymbolsStore[e]=NATIVE_SYMBOL$1&&hasOwn$e(Symbol$1,e)?Symbol$1[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},call$k=functionCall,isObject$b=isObject$d,isSymbol$1=isSymbol$2,getMethod$5=getMethod$6,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$k=wellKnownSymbol$l,$TypeError$b=TypeError,TO_PRIMITIVE=wellKnownSymbol$l("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$b(e)||isSymbol$1(e))return e;var r=getMethod$5(e,TO_PRIMITIVE);if(r){if(r=call$k(r,e,t=void 0===t?"default":t),!isObject$b(r)||isSymbol$1(r))return r;throw new $TypeError$b("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$2=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$j=global$p,isObject$a=isObject$d,document$3=global$p.document,EXISTS$1=isObject$a(document$3)&&isObject$a(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$h=descriptors,fails$i=fails$n,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$n(function(){return 7!==Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$g=descriptors,call$j=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$4=createPropertyDescriptor$5,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1=toPropertyKey$2,hasOwn$d=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$g?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$d(e,t))return createPropertyDescriptor$4(!call$j(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$f=descriptors,fails$h=fails$n,v8PrototypeDefineBug=descriptors&&fails$n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$9=isObject$d,$String$3=String,$TypeError$a=TypeError,anObject$h=function(e){if(isObject$9(e))return e;throw new $TypeError$a($String$3(e)+" is not an object")},DESCRIPTORS$e=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$g=anObject$h,toPropertyKey=toPropertyKey$2,$TypeError$9=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$d=(objectDefineProperty.f=DESCRIPTORS$e?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var n;return anObject$g(e),t=toPropertyKey(t),anObject$g(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&(n=$getOwnPropertyDescriptor(e,t))&&n[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:n)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:n)[ENUMERABLE],writable:!1}),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$g(e),t=toPropertyKey(t),anObject$g(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new $TypeError$9("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$4=objectDefineProperty,createPropertyDescriptor$3=createPropertyDescriptor$5,createNonEnumerableProperty$6=DESCRIPTORS$d?function(e,t,r){return definePropertyModule$4.f(e,t,createPropertyDescriptor$3(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$c=descriptors,hasOwn$c=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$c&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$c(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$c||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$k=functionUncurryThis,isCallable$i=isCallable$o,store$1=sharedStore.exports,functionToString=uncurryThis$k(Function.toString),inspectSource$3=(isCallable$i(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$i=global$p,isCallable$h=isCallable$o,WeakMap$1=global$p.WeakMap,weakMapBasicDetection=isCallable$h(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$2=shared$4,uid=uid$2,keys$1=shared$4("keys"),sharedKey$3=function(e){return keys$1[e]||(keys$1[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$h=global$p,isObject$8=isObject$d,createNonEnumerableProperty$5=createNonEnumerableProperty$6,hasOwn$b=hasOwnProperty_1,shared$1=sharedStore.exports,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$4=global$h.TypeError,WeakMap=global$h.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$8(e)&&(e=get(e)).type===t)return e;throw new TypeError$4("Incompatible receiver, "+t+" required")}},has=NATIVE_WEAK_MAP||shared$1.state?((store=shared$1.state||(shared$1.state=new WeakMap)).get=store.get,store.has=store.has,store.set=store.set,set$1=function(e,t){if(store.has(e))throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store.set(e,t),t},get=function(e){return store.get(e)||{}},function(e){return store.has(e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(e,t){if(hasOwn$b(e,STATE))throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$5(e,STATE,t),t},get=function(e){return hasOwn$b(e,STATE)?e[STATE]:{}},function(e){return hasOwn$b(e,STATE)}),internalState={set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor},uncurryThis$j=functionUncurryThis,fails$g=fails$n,isCallable$g=isCallable$o,hasOwn$a=hasOwnProperty_1,DESCRIPTORS$b=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,InternalStateModule$5=internalState,enforceInternalState$1=InternalStateModule$5.enforce,getInternalState$3=InternalStateModule$5.get,$String$2=String,defineProperty$6=Object.defineProperty,stringSlice$8=uncurryThis$j("".slice),replace$8=uncurryThis$j("".replace),join$3=uncurryThis$j([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$b&&!fails$g(function(){return 8!==defineProperty$6(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,r){"Symbol("===stringSlice$8($String$2(t),0,7)&&(t="["+replace$8($String$2(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$a(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$b?defineProperty$6(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$a(r,"arity")&&e.length!==r.arity&&defineProperty$6(e,"length",{value:r.arity});try{r&&hasOwn$a(r,"constructor")&&r.constructor?DESCRIPTORS$b&&defineProperty$6(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState$1(e);return hasOwn$a(r,"source")||(r.source=join$3(TEMPLATE,"string"==typeof t?t:"")),e},isCallable$f=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$g(this)&&getInternalState$3(this).source||inspectSource$2(this)},"toString"),isCallable$o),definePropertyModule$3=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$b=function(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(isCallable$f(r)&&makeBuiltIn$1(r,i,n),n.global)o?e[t]=r:defineGlobalProperty$1(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:definePropertyModule$3.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$4=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor$4:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$4=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$3=toIntegerOrInfinity$4,max$1=Math.max,min$2=Math.min,toAbsoluteIndex$1=function(e,t){e=toIntegerOrInfinity$3(e);return e<0?max$1(e+t,0):min$2(e,t)},toIntegerOrInfinity$2=toIntegerOrInfinity$4,min$1=Math.min,toLength$3=function(e){e=toIntegerOrInfinity$2(e);return 0<e?min$1(e,9007199254740991):0},toLength$2=toLength$3,lengthOfArrayLike$3=function(e){return toLength$2(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike$2=lengthOfArrayLike$3,createMethod$2=function(s){return function(e,t,r){var n=toIndexedObject$3(e),o=lengthOfArrayLike$2(n);if(0!==o){var i,a=toAbsoluteIndex(r,o);if(s&&t!=t){for(;a<o;)if((i=n[a++])!=i)return!0}else for(;a<o;a++)if((s||a in n)&&n[a]===t)return s||a||0}return!s&&-1}},arrayIncludes={includes:createMethod$2(!0),indexOf:createMethod$2(!1)},uncurryThis$i=functionUncurryThis,hasOwn$9=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$4=uncurryThis$i([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$2(e),o=0,i=[];for(r in n)!hasOwn$9(hiddenKeys$2,r)&&hasOwn$9(n,r)&&push$4(i,r);for(;t.length>o;)!hasOwn$9(n,r=t[o++])||~indexOf$1(i,r)||push$4(i,r);return i},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$7),uncurryThis$h=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$f=anObject$h,concat$2=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$f(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$2(t,r(e)):t},hasOwn$8=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$2=objectDefineProperty,copyConstructorProperties$2=function(e,t,r){for(var n=ownKeys(t),o=definePropertyModule$2.f,i=getOwnPropertyDescriptorModule.f,a=0;a<n.length;a++){var s=n[a];hasOwn$8(e,s)||r&&hasOwn$8(r,s)||o(e,s,i(t,s))}},fails$f=fails$n,isCallable$e=isCallable$o,replacement=/#|\.prototype\./,isForced$3=function(e,t){e=data[normalize(e)];return e===POLYFILL||e!==NATIVE&&(isCallable$e(t)?fails$f(t):!!t)},normalize=isForced$3.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$3.data={},NATIVE=isForced$3.NATIVE="N",POLYFILL=isForced$3.POLYFILL="P",isForced_1=isForced$3,global$g=global$p,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$4=createNonEnumerableProperty$6,defineBuiltIn$a=defineBuiltIn$b,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced$2=isForced_1,_export=function(e,t){var r,n,o,i=e.target,a=e.global,s=e.stat,l=a?global$g:s?global$g[i]||defineGlobalProperty(i,{}):global$g[i]&&global$g[i].prototype;if(l)for(r in t){if(n=t[r],o=e.dontCallGetSet?(o=getOwnPropertyDescriptor$1(l,r))&&o.value:l[r],!isForced$2(a?r:i+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof n==typeof o)continue;copyConstructorProperties$1(n,o)}(e.sham||o&&o.sham)&&createNonEnumerableProperty$4(n,"sham",!0),defineBuiltIn$a(l,r,n,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$a=descriptors,uncurryThis$g=functionUncurryThis,call$i=functionCall,fails$e=fails$n,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$3=toObject$5,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$5=Object.defineProperty,concat$1=uncurryThis$g([].concat),objectAssign=!$assign||fails$e(function(){var e,t,r,n;return!(!DESCRIPTORS$a||1===$assign({b:1},$assign(defineProperty$5({},"a",{enumerable:!0,get:function(){defineProperty$5(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},n="abcdefghijklmnopqrst",(e={})[r=Symbol("assign detection")]=7,n.split("").forEach(function(e){t[e]=e}),7!==$assign({},e)[r])||objectKeys$1($assign({},t)).join("")!==n})?function(e,t){for(var r=toObject$3(e),n=arguments.length,o=1,i=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;o<n;)for(var s,l=IndexedObject(arguments[o++]),c=i?concat$1(objectKeys$1(l),i(l)):objectKeys$1(l),u=c.length,p=0;p<u;)s=c[p++],DESCRIPTORS$a&&!call$i(a,l,s)||(r[s]=l[s]);return r}:$assign,$$f=_export,assign$1=objectAssign,objectDefineProperties=(_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$1},{assign:assign$1}),{}),DESCRIPTORS$9=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$1=objectDefineProperty,anObject$e=anObject$h,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$9&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$e(e);for(var r,n=toIndexedObject$1(t),o=objectKeys(t),i=o.length,a=0;a<i;)definePropertyModule$1.f(e,r=o[a++],n[r]);return e},getBuiltIn$7),html$2=getBuiltIn$7("document","documentElement"),anObject$d=anObject$h,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html$1=html$2,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html$1.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$d(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),wellKnownSymbol$j=wellKnownSymbol$l,create$4=objectCreate,defineProperty$4=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$j("unscopables"),ArrayPrototype$1=Array.prototype,addToUnscopables$2=(void 0===ArrayPrototype$1[UNSCOPABLES]&&defineProperty$4(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$4(null)}),function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0}),$$e=_export,$includes=arrayIncludes.includes,fails$d=fails$n,addToUnscopables$1=addToUnscopables$2,BROKEN_ON_SPARSE=fails$n(function(){return!Array(1).includes()}),wellKnownSymbol$i=($$e({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),addToUnscopables$1("includes"),wellKnownSymbol$l),TO_STRING_TAG$2=wellKnownSymbol$l("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$2]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$d=isCallable$o,classofRaw$1=classofRaw$2,wellKnownSymbol$h=wellKnownSymbol$l,TO_STRING_TAG$1=wellKnownSymbol$l("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"===classofRaw$1(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$7=TO_STRING_TAG_SUPPORT?classofRaw$1:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object$1(e),TO_STRING_TAG$1))?t:CORRECT_ARGUMENTS?classofRaw$1(e):"Object"===(t=classofRaw$1(e))&&isCallable$d(e.callee)?"Arguments":t},classof$6=classof$7,$String$1=String,toString$a=function(e){if("Symbol"===classof$6(e))throw new TypeError("Cannot convert a Symbol value to a string");return $String$1(e)},anObject$c=anObject$h,regexpFlags$1=function(){var e=anObject$c(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},fails$c=fails$n,global$f=global$p,$RegExp$2=global$p.RegExp,UNSUPPORTED_Y$2=fails$c(function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),MISSED_STICKY$1=UNSUPPORTED_Y$2||fails$c(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$2||fails$c(function(){var e=$RegExp$2("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),regexpStickyHelpers={BROKEN_CARET:BROKEN_CARET,MISSED_STICKY:MISSED_STICKY$1,UNSUPPORTED_Y:UNSUPPORTED_Y$2},fails$b=fails$n,global$e=global$p,$RegExp$1=global$p.RegExp,regexpUnsupportedDotAll=fails$b(function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),fails$a=fails$n,global$d=global$p,$RegExp=global$p.RegExp,regexpUnsupportedNcg=fails$a(function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),call$h=functionCall,uncurryThis$f=functionUncurryThis,toString$9=toString$a,regexpFlags=regexpFlags$1,stickyHelpers$1=regexpStickyHelpers,shared=shared$4,create$3=objectCreate,getInternalState$2=internalState.get,UNSUPPORTED_DOT_ALL$1=regexpUnsupportedDotAll,UNSUPPORTED_NCG$1=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$7=uncurryThis$f("".charAt),indexOf=uncurryThis$f("".indexOf),replace$7=uncurryThis$f("".replace),stringSlice$7=uncurryThis$f("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call$h(nativeExec,e,"a"),call$h(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y$1=stickyHelpers$1.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y$1||UNSUPPORTED_DOT_ALL$1||UNSUPPORTED_NCG$1,regexpExec$2=patchedExec=PATCH?function(e){var t,r,n,o,i,a,s=this,l=getInternalState$2(s),e=toString$9(e),c=l.raw;if(c)return c.lastIndex=s.lastIndex,p=call$h(patchedExec,c,e),s.lastIndex=c.lastIndex,p;var u=l.groups,c=UNSUPPORTED_Y$1&&s.sticky,p=call$h(regexpFlags,s),l=s.source,d=0,g=e;if(c&&(p=replace$7(p,"y",""),-1===indexOf(p,"g")&&(p+="g"),g=stringSlice$7(e,s.lastIndex),0<s.lastIndex&&(!s.multiline||s.multiline&&"\n"!==charAt$7(e,s.lastIndex-1))&&(l="(?: "+l+")",g=" "+g,d++),t=new RegExp("^(?:"+l+")",p)),NPCG_INCLUDED&&(t=new RegExp("^"+l+"$(?!\\s)",p)),UPDATES_LAST_INDEX_WRONG&&(r=s.lastIndex),n=call$h(nativeExec,c?t:s,g),c?n?(n.input=stringSlice$7(n.input,d),n[0]=stringSlice$7(n[0],d),n.index=s.lastIndex,s.lastIndex+=n[0].length):s.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&n&&(s.lastIndex=s.global?n.index+n[0].length:r),NPCG_INCLUDED&&n&&1<n.length&&call$h(nativeReplace,n[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)}),n&&u)for(n.groups=i=create$3(null),o=0;o<u.length;o++)i[(a=u[o])[0]]=n[a[1]];return n}:patchedExec,$$d=_export,exec$4=regexpExec$2,call$g=(_export({target:"RegExp",proto:!0,forced:/./.exec!==exec$4},{exec:exec$4}),functionCall),hasOwn$7=hasOwnProperty_1,isPrototypeOf$4=objectIsPrototypeOf,regExpFlags=regexpFlags$1,RegExpPrototype$3=RegExp.prototype,regexpGetFlags=function(e){var t=e.flags;return void 0!==t||"flags"in RegExpPrototype$3||hasOwn$7(e,"flags")||!isPrototypeOf$4(RegExpPrototype$3,e)?t:call$g(regExpFlags,e)},PROPER_FUNCTION_NAME$2=functionName.PROPER,defineBuiltIn$9=defineBuiltIn$b,anObject$b=anObject$h,$toString$2=toString$a,fails$9=fails$n,getRegExpFlags$1=regexpGetFlags,TO_STRING="toString",RegExpPrototype$2=RegExp.prototype,nativeToString=RegExpPrototype$2[TO_STRING],NOT_GENERIC=fails$9(function(){return"/a/b"!==nativeToString.call({source:"a",flags:"b"})}),INCORRECT_NAME=PROPER_FUNCTION_NAME$2&&nativeToString.name!==TO_STRING,isObject$7=((NOT_GENERIC||INCORRECT_NAME)&&defineBuiltIn$9(RegExpPrototype$2,TO_STRING,function(){var e=anObject$b(this);return"/"+$toString$2(e.source)+"/"+$toString$2(getRegExpFlags$1(e))},{unsafe:!0}),isObject$d),classof$5=classofRaw$2,wellKnownSymbol$g=wellKnownSymbol$l,MATCH$2=wellKnownSymbol$l("match"),isRegexp=function(e){var t;return isObject$7(e)&&(void 0!==(t=e[MATCH$2])?!!t:"RegExp"===classof$5(e))},isRegExp$1=isRegexp,$TypeError$8=TypeError,notARegexp=function(e){if(isRegExp$1(e))throw new $TypeError$8("The method doesn't accept regular expressions");return e},wellKnownSymbol$f=wellKnownSymbol$l,MATCH$1=wellKnownSymbol$l("match"),correctIsRegexpLogic=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[MATCH$1]=!1,"/./"[t](r)}catch(e){}}return!1},$$c=_export,uncurryThis$e=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible$6=requireObjectCoercible$9,toString$8=toString$a,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf$2=functionUncurryThis("".indexOf),NATIVE_BIND$1=($$c({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf$2(toString$8(requireObjectCoercible$6(this)),toString$8(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}}),functionBindNative),FunctionPrototype=Function.prototype,apply$2=FunctionPrototype.apply,call$f=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$f.bind(apply$2):function(){return call$f.apply(apply$2,arguments)}),call$e=functionCall,defineBuiltIn$8=defineBuiltIn$b,regexpExec$1=regexpExec$2,fails$8=fails$n,wellKnownSymbol$e=wellKnownSymbol$l,createNonEnumerableProperty$3=createNonEnumerableProperty$6,SPECIES$3=wellKnownSymbol$e("species"),RegExpPrototype$1=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(r,e,t,n){var a,o=wellKnownSymbol$e(r),s=!fails$8(function(){var e={};return e[o]=function(){return 7},7!==""[r](e)}),i=s&&!fails$8(function(){var e=!1,t=/a/;return"split"===r&&((t={constructor:{}}).constructor[SPECIES$3]=function(){return t},t.flags="",t[o]=/./[o]),t.exec=function(){return e=!0,null},t[o](""),!e});s&&i&&!t||(a=/./[o],i=e(o,""[r],function(e,t,r,n,o){var i=t.exec;return i===regexpExec$1||i===RegExpPrototype$1.exec?s&&!o?{done:!0,value:call$e(a,t,r,n)}:{done:!0,value:call$e(e,r,t,n)}:{done:!1}}),defineBuiltIn$8(String.prototype,r,i[0]),defineBuiltIn$8(RegExpPrototype$1,o,i[1])),n&&createNonEnumerableProperty$3(RegExpPrototype$1[o],"sham",!0)},uncurryThis$d=functionUncurryThis,toIntegerOrInfinity$1=toIntegerOrInfinity$4,toString$7=toString$a,requireObjectCoercible$5=requireObjectCoercible$9,charAt$6=uncurryThis$d("".charAt),charCodeAt$1=uncurryThis$d("".charCodeAt),stringSlice$6=uncurryThis$d("".slice),createMethod$1=function(o){return function(e,t){var r,e=toString$7(requireObjectCoercible$5(e)),t=toIntegerOrInfinity$1(t),n=e.length;return t<0||n<=t?o?"":void 0:(r=charCodeAt$1(e,t))<55296||56319<r||t+1===n||(n=charCodeAt$1(e,t+1))<56320||57343<n?o?charAt$6(e,t):r:o?stringSlice$6(e,t,t+2):n-56320+(r-55296<<10)+65536}},stringMultibyte={codeAt:createMethod$1(!1),charAt:createMethod$1(!0)},charAt$5=stringMultibyte.charAt,advanceStringIndex$2=function(e,t,r){return t+(r?charAt$5(e,t).length:1)},uncurryThis$c=functionUncurryThis,toObject$2=toObject$5,floor$3=Math.floor,charAt$4=uncurryThis$c("".charAt),replace$6=uncurryThis$c("".replace),stringSlice$5=uncurryThis$c("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(i,a,s,l,c,e){var u=s+i.length,p=l.length,t=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==c&&(c=toObject$2(c),t=SUBSTITUTION_SYMBOLS),replace$6(e,t,function(e,t){var r;switch(charAt$4(t,0)){case"$":return"$";case"&":return i;case"`":return stringSlice$5(a,0,s);case"'":return stringSlice$5(a,u);case"<":r=c[stringSlice$5(t,1,-1)];break;default:var n,o=+t;if(0==o)return e;if(p<o)return 0!==(n=floor$3(o/10))&&n<=p?void 0===l[n-1]?charAt$4(t,1):l[n-1]+charAt$4(t,1):e;r=l[o-1]}return void 0===r?"":r})},call$d=functionCall,anObject$a=anObject$h,isCallable$c=isCallable$o,classof$4=classofRaw$2,regexpExec=regexpExec$2,$TypeError$7=TypeError,regexpExecAbstract=function(e,t){var r=e.exec;if(isCallable$c(r))return null!==(r=call$d(r,e,t))&&anObject$a(r),r;if("RegExp"===classof$4(e))return call$d(regexpExec,e,t);throw new $TypeError$7("RegExp#exec called on incompatible receiver")},apply$1=functionApply,call$c=functionCall,uncurryThis$b=functionUncurryThis,fixRegExpWellKnownSymbolLogic$2=fixRegexpWellKnownSymbolLogic,fails$7=fails$n,anObject$9=anObject$h,isCallable$b=isCallable$o,isNullOrUndefined$4=isNullOrUndefined$7,toIntegerOrInfinity=toIntegerOrInfinity$4,toLength$1=toLength$3,toString$6=toString$a,requireObjectCoercible$4=requireObjectCoercible$9,advanceStringIndex$1=advanceStringIndex$2,getMethod$4=getMethod$6,getSubstitution=getSubstitution$1,regExpExec$2=regexpExecAbstract,wellKnownSymbol$d=wellKnownSymbol$l,REPLACE=wellKnownSymbol$l("replace"),max=Math.max,min=Math.min,concat=uncurryThis$b([].concat),push$3=uncurryThis$b([].push),stringIndexOf$1=uncurryThis$b("".indexOf),stringSlice$4=uncurryThis$b("".slice),maybeToString=function(e){return void 0===e?e:String(e)},REPLACE_KEEPS_$0="$0"==="a".replace(/./,"$0"),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=!!/./[REPLACE]&&""===/./[REPLACE]("a","$0"),REPLACE_SUPPORTS_NAMED_GROUPS=!fails$7(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")});fixRegExpWellKnownSymbolLogic$2("replace",function(e,b,y){var x=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(e,t){var r=requireObjectCoercible$4(this),n=isNullOrUndefined$4(e)?void 0:getMethod$4(e,REPLACE);return n?call$c(n,e,r,t):call$c(b,toString$6(r),e,t)},function(e,t){var r=anObject$9(this),n=toString$6(e);if("string"==typeof t&&-1===stringIndexOf$1(t,x)&&-1===stringIndexOf$1(t,"$<")){e=y(b,r,n,t);if(e.done)return e.value}for(var o,i=isCallable$b(t),a=(i||(t=toString$6(t)),r.global),s=(a&&(o=r.unicode,r.lastIndex=0),[]);null!==(p=regExpExec$2(r,n))&&(push$3(s,p),a);)""===toString$6(p[0])&&(r.lastIndex=advanceStringIndex$1(n,toLength$1(r.lastIndex),o));for(var l="",c=0,u=0;u<s.length;u++){for(var p,d=toString$6((p=s[u])[0]),g=max(min(toIntegerOrInfinity(p.index),n.length),0),$=[],h=1;h<p.length;h++)push$3($,maybeToString(p[h]));var m=p.groups,f=i?(f=concat([d],$,g,n),void 0!==m&&push$3(f,m),toString$6(apply$1(t,void 0,f))):getSubstitution(d,n,g,$,m,t);c<=g&&(l+=stringSlice$4(n,c,g)+f,c=g+d.length)}return l+stringSlice$4(n,c)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);const SHARED_TEXT={resetPasswordTitle:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.title",defaultMessage:"New password required",description:"Title of the reset password widget"}),inviteResetPasswordTitle:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.inviteTitle",defaultMessage:"Please create a password for your aiWARE account.",description:"Title of the reset password widget when resulting from an invite"}),resetPasswordSubHeader:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.subHeader",defaultMessage:"A strong password contains a mix of numbers, letters and symbols. It is hard to guess, does not resemble a real word and is only used for this account.",description:"Description of the reset password widget"}),passwordRequirements:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordRequirements",defaultMessage:"Password requirements",description:"Heading of password requirements"}),resetPasswordSubmitButton:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.submitButton",defaultMessage:"Change Password",description:"Text of submit button for reset password"}),inviteResetPasswordSubmitButton:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.inviteSubmitButton",defaultMessage:"Set Password",description:"Text of submit button for reset password when resulting from an invite"}),createAccountButton:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.sign-up-password.createAccountButton",defaultMessage:"Create Account",description:"Text of create account button for sign up password"}),lengthCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.lengthCheck",defaultMessage:"8 Character minimum",description:"The error message for the lengthCheck."}),pastPasswordCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.pastPasswordCheck",defaultMessage:"Not identical to last 10 passwords",description:"The error message for the pastPasswordCheck."}),userNameCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.userNameCheck",defaultMessage:"Not the same as account email",description:"The error message for the userNameCheck."}),dictionaryCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.dictionaryCheck",defaultMessage:"No dictionary passwords",description:"The error message for the dictionaryCheck."}),passwordsNotMatching:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordsNotMatching",defaultMessage:"Passwords not matching",description:"The error message for the passwords not matching."}),invalidTokenOrUsername:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.invalidTokenOrUsername",defaultMessage:"Error! Missing token or username.",description:"The error message for the missing token or username."}),passwordComplexityCheckSymbols:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordComplexityCheckSymbols",defaultMessage:"Requires 1 lowercase, 1 uppercase, 1 number, and 1 symbol.",description:"The error message for the check symbols error."}),passwordComplexityCheckDays:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordComplexityCheckDays",defaultMessage:"Cannot be changed twice within 10 days.",description:"The error message for the days error."})};var baseUrl$1="https://api.stage.us-1.veritone.com/v3/graphql",hubUrl$1="https://hub.stage.aiware.com/hub/v1",stripePublishableKey$1="pk_test_51No7B2IyHt9R0gSl5J4qqbZvRVLokabSDFw36G58tO1oxXO4mJzXmV0FvszOAfJcb25d5HgqZSlFIyMbL9bTFTb700vr9Fvgb9",stripePricingPlanId$1="prctbl_1No7MMIyHt9R0gSlZV4mqouD",sentryDSN$1="https://fddcba0905af4851ac01fa9f031df814@o57583.ingest.sentry.io/4505172433043456",showEnvironmentSelector$1=!0,switchAppUrl$1="https://api.stage.us-1.veritone.com/api/admin/switch-app",signupUrl$1="https://local.veritone.com:4201/ui/auth/sign-up",instanceUrls$1=[{aiwareInstanceName:"aiWARE US",coreAdminApiUrl:"https://api.stage.us-1.veritone.com/api/admin",coreGraphqlApiUrl:"https://api.stage.us-1.veritone.com/v3/graphql"},{aiwareInstanceName:"aiWARE Kernel",coreAdminApiUrl:"https://data.5f8728.aiware.run:8443/api/admin",coreGraphqlApiUrl:"https://data.5f8728.aiware.run:8443/v3/graphql"}],devConfigs={baseUrl:baseUrl$1,hubUrl:hubUrl$1,stripePublishableKey:stripePublishableKey$1,stripePricingPlanId:stripePricingPlanId$1,sentryDSN:sentryDSN$1,showEnvironmentSelector:showEnvironmentSelector$1,switchAppUrl:switchAppUrl$1,signupUrl:signupUrl$1,instanceUrls:instanceUrls$1},baseUrl="https://api.us-1.veritone.com/v3/graphql",hubUrl="https://hub.aiware.com/hub/v1",stripePublishableKey="pk_live_51NNcicInolL392yPxizaLizsnPFeNfU1QgFBOG7bB44OLhLcQDc7CyH8hlyweN6VDDLr2lB9lLyiUh1KGBaSEjPS00uSQ1sFFP",stripePricingPlanId="prctbl_1Nj36dInolL392yPggkeo88e",sentryDSN="https://fddcba0905af4851ac01fa9f031df814@o57583.ingest.sentry.io/4505172433043456",showEnvironmentSelector=!0,switchAppUrl="https://api.us-1.veritone.com/api/admin/switch-app",signupUrl="",instanceUrls=[{aiwareInstanceName:"aiWARE US",coreAdminApiUrl:"https://api.us-1.veritone.com/api/admin",coreGraphqlApiUrl:"https://api.us-1.veritone.com/v3/graphql"},{aiwareInstanceName:"aiWARE UK",coreAdminApiUrl:"https://api.uk-1.veritone.com/api/admin",coreGraphqlApiUrl:"https://api.uk-1.veritone.com/v3/graphql"},{aiwareInstanceName:"aiWARE CA",coreAdminApiUrl:"https://api.ca-1.veritone.com/api/admin",coreGraphqlApiUrl:"https://api.ca-1.veritone.com/v3/graphql"}],prodConfigs={baseUrl:baseUrl,hubUrl:hubUrl,stripePublishableKey:stripePublishableKey,stripePricingPlanId:stripePricingPlanId,sentryDSN:sentryDSN,showEnvironmentSelector:showEnvironmentSelector,switchAppUrl:switchAppUrl,signupUrl:signupUrl,instanceUrls:instanceUrls};function getConfig(){var e;return"development"===process.env.NODE_ENV?devConfigs:(e=window.aiwareConfig)?JSON.parse(JSON.stringify(e)):prodConfigs}function getRestApiUrlFromConfig(){return getConfig().baseUrl.replace("/v3/graphql","")}function parseToken(e=""){try{var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(atob(t).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(r)}catch(e){return console.log(e),null}}const envChecker=t=>window.location.href.split("://")[1].split(".").find(e=>e===t),envDetector=()=>{return envChecker("local")||envChecker("dev")||window.location.href.includes("localhost")?"dev":envChecker("stage")?"stage":"prod"},getCookie=t=>{var r=document.cookie.split("; ");for(let e=0;e<r.length;e++){var n=r[e].split("=");if(t===decodeURIComponent(n[0]))return decodeURIComponent(n[1])}return null},setCookie=(e,t,r)=>{var n=new Date,r=(n.setTime(n.getTime()+24*r*60*60*1e3),"expires="+n.toUTCString());document.cookie=`${e}=${encodeURIComponent(t)}; ${r}; path=/`},Header=({text:e,subText:t,type:r,sx:n={}})=>jsxRuntime.exports.jsxs(Box,Object.assign({sx:{marginBottom:"30px",textAlign:"center"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({sx:Object.assign({fontFamily:"Nunito",fontSize:"22px",lineHeight:"28px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},n),"data-testid":"os-auth-header-text-"+r},{children:e})),t&&jsxRuntime.exports.jsx(Typography,Object.assign({sx:{fontFamily:"Nunito",fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269",width:"368px"},"data-testid":"os-auth-subheader-text-"+r},{children:t}))]})),useStyles$7=makeStyles()(e=>({title:{textTransform:"initial",fontSize:22,marginBottom:e.spacing(4)},subHeader:{color:"#9CA8B4"},h6:{color:"#27292B"},requirements:{listStyle:"disc",padding:0,marginLeft:e.spacing(5),"& li":{marginBottom:e.spacing(1),color:"#27292B",fontSize:14,fontWeight:400,"&.requirementError":{color:"#D50000"}}},submitButton:{height:55,background:"#214167",fontSize:18,width:"100%",maxWidth:380,textTransform:"uppercase"},text:{fontFamily:"Nunito",fontWeight:400,fontSize:"22px",lineHeight:"18px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},subText:{fontFamily:"'Nunito Sans'",fontWeight:400,fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269"}}));var IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,iterators={},fails$6=fails$n,correctPrototypeGetter=!fails$n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$6=hasOwnProperty_1,isCallable$a=isCallable$o,toObject$1=toObject$5,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object=Object,ObjectPrototype=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(e){var t,e=toObject$1(e);return hasOwn$6(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$a(t)&&e instanceof t?t.prototype:e instanceof $Object?ObjectPrototype:null)},fails$5=fails$n,isCallable$9=isCallable$o,isObject$6=isObject$d,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$7=defineBuiltIn$b,wellKnownSymbol$c=wellKnownSymbol$l,ITERATOR$7=wellKnownSymbol$l("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),!isObject$6(IteratorPrototype$2)||fails$5(function(){var e={};return IteratorPrototype$2[ITERATOR$7].call(e)!==e})),iteratorsCore=(isCallable$9((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$7])||defineBuiltIn$7(IteratorPrototype$2,ITERATOR$7,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$3=objectDefineProperty.f,hasOwn$5=hasOwnProperty_1,wellKnownSymbol$b=wellKnownSymbol$l,TO_STRING_TAG=wellKnownSymbol$l("toStringTag"),setToStringTag$6=function(e,t,r){(e=e&&!r?e.prototype:e)&&!hasOwn$5(e,TO_STRING_TAG)&&defineProperty$3(e,TO_STRING_TAG,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$2=objectCreate,createPropertyDescriptor$2=createPropertyDescriptor$5,setToStringTag$5=setToStringTag$6,Iterators$4=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,r,n){t+=" Iterator";return e.prototype=create$2(IteratorPrototype$1,{next:createPropertyDescriptor$2(+!n,r)}),setToStringTag$5(e,t,!1),Iterators$4[t]=returnThis$1,e},uncurryThis$a=functionUncurryThis,aCallable$6=aCallable$8,functionUncurryThisAccessor=function(e,t,r){try{return uncurryThis$a(aCallable$6(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},isObject$5=isObject$d,isPossiblePrototype$1=function(e){return isObject$5(e)||null===e},isPossiblePrototype=isPossiblePrototype$1,$String=String,$TypeError$6=TypeError,aPossiblePrototype$1=function(e){if(isPossiblePrototype(e))return e;throw new $TypeError$6("Can't set "+$String(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,isObject$4=isObject$d,requireObjectCoercible$3=requireObjectCoercible$9,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=uncurryThisAccessor(Object.prototype,"__proto__","set"))(e,[]),n=e instanceof Array}catch(e){}return function(e,t){return requireObjectCoercible$3(e),aPossiblePrototype(t),isObject$4(e)&&(n?r(e,t):e.__proto__=t),e}}():void 0),$$b=_export,call$b=functionCall,FunctionName=functionName,isCallable$8=isCallable$o,createIteratorConstructor$1=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$2=objectSetPrototypeOf,setToStringTag$4=setToStringTag$6,createNonEnumerableProperty$2=createNonEnumerableProperty$6,defineBuiltIn$6=defineBuiltIn$b,wellKnownSymbol$a=wellKnownSymbol$l,Iterators$3=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME$1=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$6=wellKnownSymbol$a("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,r,n,o,i,a){createIteratorConstructor$1(r,t,n);function s(e){if(e===o&&g)return g;if(!BUGGY_SAFARI_ITERATORS&&e&&e in p)return p[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}}var l,c,n=t+" Iterator",u=!1,p=e.prototype,d=p[ITERATOR$6]||p["@@iterator"]||o&&p[o],g=!BUGGY_SAFARI_ITERATORS&&d||s(o),$="Array"===t&&p.entries||d;if($&&($=getPrototypeOf($.call(new e)))!==Object.prototype&&$.next&&(getPrototypeOf($)!==IteratorPrototype&&(setPrototypeOf$2?setPrototypeOf$2($,IteratorPrototype):isCallable$8($[ITERATOR$6])||defineBuiltIn$6($,ITERATOR$6,returnThis)),setToStringTag$4($,n,!0)),PROPER_FUNCTION_NAME$1&&o===VALUES&&d&&d.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$2(p,"name",VALUES):(u=!0,g=function(){return call$b(d,this)})),o)if(l={values:s(VALUES),keys:i?g:s(KEYS),entries:s(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in p||defineBuiltIn$6(p,c,l[c]);else $$b({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return p[ITERATOR$6]!==g&&defineBuiltIn$6(p,ITERATOR$6,g,{name:o}),Iterators$3[t]=g,l},createIterResultObject$3=function(e,t){return{value:e,done:t}},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$2,Iterators$2=iterators,InternalStateModule$4=internalState,defineProperty$2=objectDefineProperty.f,defineIterator$1=iteratorDefine,createIterResultObject$2=createIterResultObject$3,DESCRIPTORS$8=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$4=InternalStateModule$4.set,getInternalState$1=InternalStateModule$4.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator$1(Array,"Array",function(e,t){setInternalState$4(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState$1(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,createIterResultObject$2(void 0,!0);switch(e.kind){case"keys":return createIterResultObject$2(r,!1);case"values":return createIterResultObject$2(t[r],!1)}return createIterResultObject$2([r,t[r]],!1)},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS$8&&"values"!==values.name)try{defineProperty$2(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement=documentCreateElement$2,classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$c=global$p,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$1=createNonEnumerableProperty$6,setToStringTag$3=setToStringTag$6,wellKnownSymbol$9=wellKnownSymbol$l,ITERATOR$5=wellKnownSymbol$l("iterator"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR$5]!==ArrayValues)try{createNonEnumerableProperty$1(t,ITERATOR$5,ArrayValues)}catch(e){t[ITERATOR$5]=ArrayValues}if(setToStringTag$3(t,e,!0),DOMIterables[e])for(var r in ArrayIteratorMethods)if(t[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty$1(t,r,ArrayIteratorMethods[r])}catch(e){t[r]=ArrayIteratorMethods[r]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$c[COLLECTION_NAME]&&global$c[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");const useStyles$6=makeStyles()((e,{error:t,passwordRequirementsMet:r})=>{let n="auto";return t?n="red":r||(n="rgba(0, 0, 0, 0.26)"),{passwordLabel:{background:"white",padding:"0 3px"},passwordFormMarginTop:{marginTop:"20px"},passwordInput:{width:"368px",maxWidth:"85vw"},confirmPasswordLabel:{color:n,"&.Sdk-Mui-focused":{color:n}}}}),usePasswordRequirementStyles=makeStyles()(()=>({container:{width:"368px",maxWidth:"85vw",display:"flex",alignItems:"center",justifyContent:"center"},barContainer:{display:"flex",width:"100%",justifyContent:"space-between",padding:"15px 0px"},bar:{width:"23%",height:"4px",borderRadius:"20px"},metRequirement:{color:"#9CA8B4",textDecorationLine:"line-through"},unmetRequirement:{color:"#5C6269"},requirement:{display:"flex",alignItems:"center"},bullet:{transform:"translateY(8px)",marginLeft:"5px"},checkMark:{fill:"#0E6EEC",marginRight:"8px",marginLeft:"-3px"}})),DEFAULT_BUTTON_COLOR="#212121",DEFAULT_BUTTON_TEXT_COLOR="#FFFFFF",BlackButton=({onClick:e,text:t,type:r,loading:n,disableButton:o,sx:i={},ref:a,className:s,buttonColor:l,buttonTextColor:c,testId:u=""})=>{var p=l?l+"!important":DEFAULT_BUTTON_COLOR+"!important",c=c?c+"!important":DEFAULT_BUTTON_TEXT_COLOR+"!important",u=u||`os-auth--${r}-btn`;return jsxRuntime.exports.jsx(LoadingButton,Object.assign({color:"primary",variant:"contained",onClick:e,loading:n,ref:a,sx:Object.assign({textTransform:"none",fontSize:"18px",lineHeight:"24px",fontFamily:"Nunito",fontWeight:600,width:"100%",height:"56px",borderRadius:"50px",background:p,backgroundColor:p,color:c,"&.Sdk-MuiButton-root:not(:disabled):not(:hover), .Sdk-MuiButton-root:not(:disabled):not(:hover)":{background:p,backgroundColor:p,color:c},"&:hover":{background:p,backgroundColor:p,color:c,opacity:.9},":disabled":{backgroundColor:"#c3c3c3!important"},border:"1px solid "+l},i),className:s||void 0,"data-testid":u,disabled:o},{children:t}))};var isCallable$7=isCallable$o,isObject$3=isObject$d,setPrototypeOf$1=objectSetPrototypeOf,inheritIfRequired$1=function(e,t,r){return setPrototypeOf$1&&isCallable$7(t=t.constructor)&&t!==r&&isObject$3(t=t.prototype)&&t!==r.prototype&&setPrototypeOf$1(e,t),e},defineProperty$1=objectDefineProperty.f,proxyAccessor$1=function(e,t,r){r in e||defineProperty$1(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},makeBuiltIn=makeBuiltIn$3.exports,defineProperty=objectDefineProperty,defineBuiltInAccessor$4=function(e,t,r){return r.get&&makeBuiltIn(r.get,t,{getter:!0}),r.set&&makeBuiltIn(r.set,t,{setter:!0}),defineProperty.f(e,t,r)},getBuiltIn$3=getBuiltIn$7,defineBuiltInAccessor$3=defineBuiltInAccessor$4,wellKnownSymbol$8=wellKnownSymbol$l,DESCRIPTORS$7=descriptors,SPECIES$2=wellKnownSymbol$l("species"),setSpecies$2=function(e){e=getBuiltIn$3(e);DESCRIPTORS$7&&e&&!e[SPECIES$2]&&defineBuiltInAccessor$3(e,SPECIES$2,{configurable:!0,get:function(){return this}})},DESCRIPTORS$6=descriptors,global$b=global$p,uncurryThis$9=functionUncurryThis,isForced$1=isForced_1,inheritIfRequired=inheritIfRequired$1,createNonEnumerableProperty=createNonEnumerableProperty$6,create$1=objectCreate,getOwnPropertyNames=objectGetOwnPropertyNames.f,isPrototypeOf$3=objectIsPrototypeOf,isRegExp=isRegexp,toString$5=toString$a,getRegExpFlags=regexpGetFlags,stickyHelpers=regexpStickyHelpers,proxyAccessor=proxyAccessor$1,defineBuiltIn$5=defineBuiltIn$b,fails$4=fails$n,hasOwn$4=hasOwnProperty_1,enforceInternalState=internalState.enforce,setSpecies$1=setSpecies$2,wellKnownSymbol$7=wellKnownSymbol$l,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,MATCH=wellKnownSymbol$l("match"),NativeRegExp=global$b.RegExp,RegExpPrototype=NativeRegExp.prototype,SyntaxError=global$b.SyntaxError,exec$3=uncurryThis$9(RegExpPrototype.exec),charAt$3=uncurryThis$9("".charAt),replace$5=uncurryThis$9("".replace),stringIndexOf=uncurryThis$9("".indexOf),stringSlice$3=uncurryThis$9("".slice),IS_NCG=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,re1=/a/g,re2=/a/g,CORRECT_NEW=new NativeRegExp(re1)!==re1,MISSED_STICKY=stickyHelpers.MISSED_STICKY,UNSUPPORTED_Y=stickyHelpers.UNSUPPORTED_Y,BASE_FORCED=DESCRIPTORS$6&&(!CORRECT_NEW||MISSED_STICKY||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG||fails$4(function(){return re2[MATCH]=!1,NativeRegExp(re1)!==re1||NativeRegExp(re2)===re2||"/a/i"!==String(NativeRegExp(re1,"i"))})),handleDotAll=function(e){for(var t,r=e.length,n=0,o="",i=!1;n<=r;n++)"\\"===(t=charAt$3(e,n))?o+=t+charAt$3(e,++n):i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]";return o},handleNCG=function(e){for(var t,r=e.length,n=0,o="",i=[],a=create$1(null),s=!1,l=!1,c=0,u="";n<=r;n++){if("\\"===(t=charAt$3(e,n)))t+=charAt$3(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:exec$3(IS_NCG,stringSlice$3(e,n+1))&&(n+=2,l=!0),o+=t,c++;continue;case">"===t&&l:if(""===u||hasOwn$4(a,u))throw new SyntaxError("Invalid capture group name");a[u]=!0,l=!(i[i.length]=[u,c]),u="";continue}l?u+=t:o+=t}return[o,i]};if(isForced$1("RegExp",BASE_FORCED)){for(var RegExpWrapper=function(e,t){var r,n,o=isPrototypeOf$3(RegExpPrototype,this),i=isRegExp(e),a=void 0===t,s=[],l=e;if(!o&&i&&a&&e.constructor===RegExpWrapper)return e;if((i||isPrototypeOf$3(RegExpPrototype,e))&&(e=e.source,a)&&(t=getRegExpFlags(l)),e=void 0===e?"":toString$5(e),t=void 0===t?"":toString$5(t),l=e,i=t=UNSUPPORTED_DOT_ALL&&"dotAll"in re1&&(r=!!t&&-1<stringIndexOf(t,"s"))?replace$5(t,/s/g,""):t,MISSED_STICKY&&"sticky"in re1&&(n=!!t&&-1<stringIndexOf(t,"y"))&&UNSUPPORTED_Y&&(t=replace$5(t,/y/g,"")),UNSUPPORTED_NCG&&(e=(a=handleNCG(e))[0],s=a[1]),a=inheritIfRequired(NativeRegExp(e,t),o?this:RegExpPrototype,RegExpWrapper),(r||n||s.length)&&(t=enforceInternalState(a),r&&(t.dotAll=!0,t.raw=RegExpWrapper(handleDotAll(e),i)),n&&(t.sticky=!0),s.length)&&(t.groups=s),e!==l)try{createNonEnumerableProperty(a,"source",""===l?"(?:)":l)}catch(e){}return a},keys=getOwnPropertyNames(NativeRegExp),index=0;keys.length>index;)proxyAccessor(RegExpWrapper,NativeRegExp,keys[index++]);(RegExpPrototype.constructor=RegExpWrapper).prototype=RegExpPrototype,defineBuiltIn$5(global$b,"RegExp",RegExpWrapper,{constructor:!0})}setSpecies$1("RegExp");const PasswordRequirements=({password:r,setPasswordRequirementsMet:n})=>{var e=window.innerWidth<=850;const o=usePasswordRequirementStyles()["classes"];const i=[{id:"upperLower",label:"Upper & lower case letters",regex:new RegExp("(?=.*[a-z])(?=.*[A-Z])","g"),met:!1},{id:"length",label:"At least 8 characters",regex:new RegExp(".{8}$"),met:!1},{id:"specialCharacter",label:"A symbol (#$&!)",regex:new RegExp("[^a-zA-Z0-9]"),met:!1}],[a,s]=react.exports.useState(i),l={0:"#FF5722",1:"#FFC107",2:"#00BCD4",3:"#4CAF50"};return react.exports.useEffect(()=>{var e=[...i];for(const t of e)t.regex.test(r)&&(t.met=!0);e.find(e=>!e.met)?n(!1):n(!0),s(e)},[r]),jsxRuntime.exports.jsx(Box$1,Object.assign({className:o.container,"data-testid":"sign-up.password-requirements.pop-up"},{children:jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{boxSizing:"border-box",padding:"15px 20px",width:"100%",marginTop:"10px",marginBottom:"10px",borderRadius:"5px",marginRight:e?void 0:"15px",boxShadow:"0px 2px 10px 0px rgba(0, 0, 0, 0.20)",backgroundColor:"rgb(255, 255,255)","&::before":e?{}:{backgroundColor:"white",content:'""',display:"block",position:"absolute",width:12,height:12,top:"calc(50% - 6px)",transform:"rotate(45deg)",left:"calc(100% - 20px)"}}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1","data-testid":"sign-up.password-requirements.pop-up.message"},{children:r?{0:"Weak Password",1:"Average Password",2:"Good Password",3:"Strong Password 💪"}[a.filter(e=>e.met).length]:"Please set a strong password"})),jsxRuntime.exports.jsx(Box$1,Object.assign({className:o.barContainer},{children:Array.from(Array(4).keys()).map(e=>{var t=a.filter(e=>e.met).length;return jsxRuntime.exports.jsx(Box$1,{className:o.bar,sx:{background:e<=t&&r?l[t]:"#9CA8B4"}},e)})})),jsxRuntime.exports.jsx(Stack,Object.assign({sx:{gap:e?void 0:"13px"}},{children:a.map(e=>jsxRuntime.exports.jsxs(Box$1,Object.assign({className:classNames(o.requirement,e.met?o.metRequirement:o.unmetRequirement)},{children:[e.met?jsxRuntime.exports.jsx(CheckmarkFilled,{className:o.checkMark}):jsxRuntime.exports.jsx(Bullet,{className:o.bullet}),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2"},{children:e.label}))]}),e.id))}))]}))}))};var call$a=functionCall,fixRegExpWellKnownSymbolLogic$1=fixRegexpWellKnownSymbolLogic,anObject$8=anObject$h,isNullOrUndefined$3=isNullOrUndefined$7,toLength=toLength$3,toString$4=toString$a,requireObjectCoercible$2=requireObjectCoercible$9,getMethod$3=getMethod$6,advanceStringIndex=advanceStringIndex$2,regExpExec$1=regexpExecAbstract;fixRegexpWellKnownSymbolLogic("match",function(n,s,l){return[function(e){var t=requireObjectCoercible$2(this),r=isNullOrUndefined$3(e)?void 0:getMethod$3(e,n);return r?call$a(r,e,t):new RegExp(e)[n](toString$4(t))},function(e){var t=anObject$8(this),r=toString$4(e),e=l(s,t,r);if(e.done)return e.value;if(!t.global)return regExpExec$1(t,r);for(var n=t.unicode,o=[],i=t.lastIndex=0;null!==(a=regExpExec$1(t,r));){var a=toString$4(a[0]);""===(o[i]=a)&&(t.lastIndex=advanceStringIndex(r,toLength(t.lastIndex),n)),i++}return 0===i?null:o}]});const SLICE_NAME="signUp",namespace="initStep",initialState={env:"",status:"idle",activeStep:1,1:{email:"",firstName:"",lastName:""},2:{orgName:"",teamSize:"",country:"",industry:""},errors:{1:{email:!1,firstName:!1,lastName:!1},2:{orgName:!1,country:!1}},userUUID:"",userEmail:"",organizationUUID:""};function isKeyOfObject(e,t){return e in t}function validateEmail$1(e){return e.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)}const signUpSlice=createSlice({name:SLICE_NAME+"/"+namespace,initialState:initialState,reducers:{setStep(e,t){e.activeStep=t.payload},setValue(e,t){var{key:t,value:r}=t.payload;isKeyOfObject(t,e[e.activeStep])&&(e[e.activeStep][t]=r,isKeyOfObject(t,e.errors[e.activeStep]))&&(e.errors[e.activeStep][t]=!1)},validate(e){for(var[t,r]of Object.entries(e[e.activeStep]))isKeyOfObject(t,e.errors[e.activeStep])&&!r&&(e.errors[e.activeStep][t]=!0);1!==e.activeStep||validateEmail$1(e[1].email)||(e.errors[1].email=!0)},createUserStart(e){e.status="loading"},createUserSuccess(e){e.status="success"},createUserFailure(e){e.status="failure"},setEnv(e,t){t=t.payload;e.env=`https://hub${"prod"===t?"":"."+t}.aiware.com`},resetState:()=>initialState,activateUserStart(e,t){e.status="loading"},activateUserSuccess(e){e.status="success"},activateUserFailure(e){e.status="failure"}}}),actions=signUpSlice.actions;var signUpSlice$1=signUpSlice.reducer,whitespaces$2="\t\n\v\f\r                 \u2028\u2029\ufeff",uncurryThis$8=functionUncurryThis,requireObjectCoercible$1=requireObjectCoercible$9,toString$3=toString$a,whitespaces$1=whitespaces$2,replace$4=functionUncurryThis("".replace),ltrim=RegExp("^["+whitespaces$1+"]+"),rtrim=RegExp("(^|[^"+whitespaces$1+"])["+whitespaces$1+"]+$"),createMethod=function(t){return function(e){e=toString$3(requireObjectCoercible$1(e));return 1&t&&(e=replace$4(e,ltrim,"")),e=2&t?replace$4(e,rtrim,"$1"):e}},stringTrim={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},PROPER_FUNCTION_NAME=functionName.PROPER,fails$3=fails$n,whitespaces=whitespaces$2,non="​…᠎",stringTrimForced=function(e){return fails$3(function(){return!!whitespaces[e]()||non[e]()!==non||PROPER_FUNCTION_NAME&&whitespaces[e].name!==e})},$$a=_export,$trim=stringTrim.trim,forcedStringTrimMethod=stringTrimForced;$$a({target:"String",proto:!0,forced:stringTrimForced("trim")},{trim:function(){return $trim(this)}});const selectStatus=e=>{return null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e.status},selectActiveStep=e=>{return null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e.activeStep},selectFormValues=e=>{var t;return null==(t=null==e?void 0:e[SLICE_NAME])?void 0:t[null==(t=null==e?void 0:e[SLICE_NAME])?void 0:t.activeStep]},selectErrors=e=>{var t;return null==(t=null==(t=null==e?void 0:e[SLICE_NAME])?void 0:t.errors)?void 0:t[null==(t=null==e?void 0:e[SLICE_NAME])?void 0:t.activeStep]},selectCreateUserPayload=e=>{var{1:{email:e,firstName:t,lastName:r},2:{orgName:n,teamSize:o,country:i,industry:a}}=(null==e?void 0:e[SLICE_NAME])||{1:{},2:{}};return{userFirstName:t.trim(),userLastName:r.trim(),userEmail:e,userPhoneNumber:"",userOccupation:"",userCompany:"",organizationName:n.trim(),salesforceAttributes:JSON.stringify({teamSize:o,country:i,industry:a})}};var $location,defer,channel,port,toggle,node,promise,then,queue,flush,notify$1,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,global$a=global$p,classof$3=classofRaw$2,engineIsNode="process"===classofRaw$2(global$p.process),isPrototypeOf$2=objectIsPrototypeOf,$TypeError$5=TypeError,anInstance$3=function(e,t){if(isPrototypeOf$2(t,e))return e;throw new $TypeError$5("Incorrect invocation")},uncurryThis$7=functionUncurryThis,fails$2=fails$n,isCallable$6=isCallable$o,classof$2=classof$7,getBuiltIn$2=getBuiltIn$7,inspectSource$1=inspectSource$3,noop=function(){},construct=getBuiltIn$7("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$2=uncurryThis$7(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.test(noop),isConstructorModern=function(e){if(!isCallable$6(e))return!1;try{return construct(noop,[],e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$6(e))return!1;switch(classof$2(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$2(constructorRegExp,inspectSource$1(e))}catch(e){return!0}},isConstructor$2=(isConstructorLegacy.sham=!0,!construct||fails$2(function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){e=!0})||e})?isConstructorLegacy:isConstructorModern),isConstructor$1=isConstructor$2,tryToString$2=tryToString$4,$TypeError$4=TypeError,aConstructor$1=function(e){if(isConstructor$1(e))return e;throw new $TypeError$4(tryToString$2(e)+" is not a constructor")},anObject$7=anObject$h,aConstructor=aConstructor$1,isNullOrUndefined$2=isNullOrUndefined$7,wellKnownSymbol$6=wellKnownSymbol$l,SPECIES$1=wellKnownSymbol$l("species"),speciesConstructor$1=function(e,t){var e=anObject$7(e).constructor;return void 0===e||isNullOrUndefined$2(e=anObject$7(e)[SPECIES$1])?t:aConstructor(e)},classofRaw=classofRaw$2,uncurryThis$6=functionUncurryThis,functionUncurryThisClause=function(e){if("Function"===classofRaw(e))return uncurryThis$6(e)},uncurryThis$5=functionUncurryThisClause,aCallable$5=aCallable$8,NATIVE_BIND=functionBindNative,bind$7=functionUncurryThisClause(functionUncurryThisClause.bind),functionBindContext=function(e,t){return aCallable$5(e),void 0===t?e:NATIVE_BIND?bind$7(e,t):function(){return e.apply(t,arguments)}},uncurryThis$4=functionUncurryThis,arraySlice$3=functionUncurryThis([].slice),$TypeError$3=TypeError,validateArgumentsLength$3=function(e,t){if(e<t)throw new $TypeError$3("Not enough arguments");return e},userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$9=global$p,apply=functionApply,bind$6=functionBindContext,isCallable$5=isCallable$o,hasOwn$3=hasOwnProperty_1,fails$1=fails$n,html=html$2,arraySlice$2=arraySlice$3,createElement=documentCreateElement$2,validateArgumentsLength$2=validateArgumentsLength$3,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$9.setImmediate,clear=global$9.clearImmediate,process$3=global$9.process,Dispatch=global$9.Dispatch,Function$1=global$9.Function,MessageChannel=global$9.MessageChannel,String$1=global$9.String,counter=0,queue$2={},ONREADYSTATECHANGE="onreadystatechange",run=(fails$1(function(){$location=global$9.location}),function(e){var t;hasOwn$3(queue$2,e)&&(t=queue$2[e],delete queue$2[e],t())}),runner=function(e){return function(){run(e)}},eventListener=function(e){run(e.data)},globalPostMessageDefer=function(e){global$9.postMessage(String$1(e),$location.protocol+"//"+$location.host)},task$1=(set&&clear||(set=function(e){validateArgumentsLength$2(arguments.length,1);var t=isCallable$5(e)?e:Function$1(e),r=arraySlice$2(arguments,1);return queue$2[++counter]=function(){apply(t,void 0,r)},defer(counter),counter},clear=function(e){delete queue$2[e]},IS_NODE$3?defer=function(e){process$3.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel&&!IS_IOS$1?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=eventListener,defer=bind$6(port.postMessage,port)):global$9.addEventListener&&isCallable$5(global$9.postMessage)&&!global$9.importScripts&&$location&&"file:"!==$location.protocol&&!fails$1(globalPostMessageDefer)?(defer=globalPostMessageDefer,global$9.addEventListener("message",eventListener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)}),{set:set,clear:clear}),global$8=global$p,DESCRIPTORS$5=descriptors,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,safeGetBuiltIn$2=function(e){var t;return DESCRIPTORS$5?(t=getOwnPropertyDescriptor(global$8,e))&&t.value:global$8[e]},Queue$2=function(){this.head=null,this.tail=null},queue$1=(Queue$2.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},Queue$2),userAgent$1=engineUserAgent,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&"undefined"!=typeof Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$7=global$p,safeGetBuiltIn$1=safeGetBuiltIn$2,bind$5=functionBindContext,macrotask=task$1.set,Queue$1=queue$1,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$7.MutationObserver||global$7.WebKitMutationObserver,document$2=global$7.document,process$2=global$7.process,Promise$1=global$7.Promise,microtask$1=safeGetBuiltIn$1("queueMicrotask"),microtask_1=(microtask$1||(queue=new Queue$1,flush=function(){var e,t;for(IS_NODE$2&&(e=process$2.domain)&&e.exit();t=queue.get();)try{t()}catch(e){throw queue.head&&notify$1(),e}e&&e.enter()},notify$1=IS_IOS||IS_NODE$2||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$5(promise.then,promise),function(){then(flush)}):IS_NODE$2?function(){process$2.nextTick(flush)}:(macrotask=bind$5(macrotask,global$7),function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),function(){node.data=toggle=!toggle}),microtask$1=function(e){queue.head||notify$1(),queue.add(e)}),microtask$1),hostReportErrors$1=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},perform$3=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},global$6=global$p,promiseNativeConstructor=global$p.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$1=engineIsNode,engineIsBrowser=!engineIsDeno&&!engineIsNode&&"object"==typeof window&&"object"==typeof document,global$5=global$p,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$4=isCallable$o,isForced=isForced_1,inspectSource=inspectSource$3,wellKnownSymbol$5=wellKnownSymbol$l,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,SPECIES=(NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,wellKnownSymbol$5("species")),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$4(global$5.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",function(){var e=inspectSource(NativePromiseConstructor$3),t=e!==String(NativePromiseConstructor$3);if(!t&&66===V8_VERSION)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){function r(e){e(function(){},function(){})}e=new NativePromiseConstructor$3(function(e){e(1)});if((e.constructor={})[SPECIES]=r,!(SUBCLASSING=e.then(function(){})instanceof r))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$4=aCallable$8,$TypeError$2=TypeError,PromiseCapability=function(e){var r,n;this.promise=new e(function(e,t){if(void 0!==r||void 0!==n)throw new $TypeError$2("Bad Promise constructor");r=e,n=t}),this.resolve=aCallable$4(r),this.reject=aCallable$4(n)},$$9=(newPromiseCapability$2.f=function(e){return new PromiseCapability(e)},_export),IS_NODE=engineIsNode,global$4=global$p,call$9=functionCall,defineBuiltIn$4=defineBuiltIn$b,setPrototypeOf=objectSetPrototypeOf,setToStringTag$2=setToStringTag$6,setSpecies=setSpecies$2,aCallable$3=aCallable$8,isCallable$3=isCallable$o,isObject$2=isObject$d,anInstance$2=anInstance$3,speciesConstructor=speciesConstructor$1,task=task$1.set,microtask=microtask_1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue$1,InternalStateModule$3=internalState,NativePromiseConstructor$2=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule$3.getterFor(PROMISE),setInternalState$3=InternalStateModule$3.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$3=global$4.TypeError,document$1=global$4.document,process$1=global$4.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$4.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$2(e)||!isCallable$3(t=e.then))&&t},callReaction=function(e,t){var r,n,o,i=t.value,a=t.state===FULFILLED,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?r=i:(u&&u.enter(),r=s(i),u&&(u.exit(),o=!0)),r===e.promise?c(new TypeError$3("Promise-chain cycle")):(n=isThenable(r))?call$9(n,r,l,c):l(r)):c(i)}catch(e){u&&!o&&u.exit(),c(e)}},notify=function(r,n){r.notified||(r.notified=!0,microtask(function(){for(var e,t=r.reactions;e=t.get();)callReaction(e,r);r.notified=!1,n&&!r.rejection&&onUnhandled(r)}))},dispatchEvent=function(e,t,r){var n;DISPATCH_EVENT?((n=document$1.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),global$4.dispatchEvent(n)):n={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT&&(t=global$4["on"+e])?t(n):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",r)},onUnhandled=function(n){call$9(task,global$4,function(){var e=n.facade,t=n.value,r=isUnhandled(n);if(r&&(r=perform$2(function(){IS_NODE?process$1.emit("unhandledRejection",t,e):dispatchEvent(UNHANDLED_REJECTION,e,t)}),n.rejection=IS_NODE||isUnhandled(n)?UNHANDLED:HANDLED,r.error))throw r.value})},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(t){call$9(task,global$4,function(){var e=t.facade;IS_NODE?process$1.emit("rejectionHandled",e):dispatchEvent(REJECTION_HANDLED,e,t.value)})},bind$4=function(t,r,n){return function(e){t(r,e,n)}},internalReject=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw new TypeError$3("Promise can't be resolved itself");var n=isThenable(e);n?microtask(function(){var t={done:!1};try{call$9(n,e,bind$4(internalResolve,t,r),bind$4(internalReject,t,r))}catch(e){internalReject(t,e,r)}}):(r.value=e,r.state=FULFILLED,notify(r,!1))}catch(e){internalReject({done:!1},e,r)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance$2(this,PromisePrototype),aCallable$3(e),call$9(Internal,this);var t=getInternalPromiseState(this);try{e(bind$4(internalResolve,t),bind$4(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState$3(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$4(PromisePrototype,"then",function(e,t){var r=getInternalPromiseState(this),n=newPromiseCapability$1(speciesConstructor(this,PromiseConstructor));return r.parent=!0,n.ok=!isCallable$3(e)||e,n.fail=isCallable$3(t)&&t,n.domain=IS_NODE?process$1.domain:void 0,r.state===PENDING?r.reactions.add(n):microtask(function(){callReaction(n,r)}),n.promise}),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$4(internalResolve,t),this.reject=bind$4(internalReject,t)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},isCallable$3(NativePromiseConstructor$2))&&NativePromisePrototype$1!==Object.prototype){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$4(NativePromisePrototype$1,"then",function(e,t){var r=this;return new PromiseConstructor(function(e,t){call$9(nativeThen,r,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch(e){}setPrototypeOf&&setPrototypeOf(NativePromisePrototype$1,PromisePrototype)}$$9({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag$2(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var wellKnownSymbol$4=wellKnownSymbol$l,Iterators$1=iterators,ITERATOR$4=wellKnownSymbol$l("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$2=function(e){return void 0!==e&&(Iterators$1.Array===e||ArrayPrototype[ITERATOR$4]===e)},classof$1=classof$7,getMethod$2=getMethod$6,isNullOrUndefined$1=isNullOrUndefined$7,Iterators=iterators,wellKnownSymbol$3=wellKnownSymbol$l,ITERATOR$3=wellKnownSymbol$l("iterator"),getIteratorMethod$4=function(e){if(!isNullOrUndefined$1(e))return getMethod$2(e,ITERATOR$3)||getMethod$2(e,"@@iterator")||Iterators[classof$1(e)]},call$8=functionCall,aCallable$2=aCallable$8,anObject$6=anObject$h,tryToString$1=tryToString$4,getIteratorMethod$3=getIteratorMethod$4,$TypeError$1=TypeError,getIterator$3=function(e,t){var r=arguments.length<2?getIteratorMethod$3(e):t;if(aCallable$2(r))return anObject$6(call$8(r,e));throw new $TypeError$1(tryToString$1(e)+" is not iterable")},call$7=functionCall,anObject$5=anObject$h,getMethod$1=getMethod$6,iteratorClose$2=function(e,t,r){var n,o;anObject$5(e);try{if(!(n=getMethod$1(e,"return"))){if("throw"===t)throw r;return r}n=call$7(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return anObject$5(n),r},bind$3=functionBindContext,call$6=functionCall,anObject$4=anObject$h,tryToString=tryToString$4,isArrayIteratorMethod$1=isArrayIteratorMethod$2,lengthOfArrayLike$1=lengthOfArrayLike$3,isPrototypeOf$1=objectIsPrototypeOf,getIterator$2=getIterator$3,getIteratorMethod$2=getIteratorMethod$4,iteratorClose$1=iteratorClose$2,$TypeError=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$2=function(e,t,r){function n(e){return i&&iteratorClose$1(i,"normal",e),new Result(!0,e)}function o(e){return d?(anObject$4(e),h?m(e[0],e[1],n):m(e[0],e[1])):h?m(e,n):m(e)}var i,a,s,l,c,u,p=r&&r.that,d=!(!r||!r.AS_ENTRIES),g=!(!r||!r.IS_RECORD),$=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),m=bind$3(t,p);if(g)i=e.iterator;else if($)i=e;else{if(!(r=getIteratorMethod$2(e)))throw new $TypeError(tryToString(e)+" is not iterable");if(isArrayIteratorMethod$1(r)){for(a=0,s=lengthOfArrayLike$1(e);a<s;a++)if((l=o(e[a]))&&isPrototypeOf$1(ResultPrototype,l))return l;return new Result(!1)}i=getIterator$2(e,r)}for(c=(g?e:i).next;!(u=call$6(c,i)).done;){try{l=o(u.value)}catch(e){iteratorClose$1(i,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf$1(ResultPrototype,l))return l}return new Result(!1)},wellKnownSymbol$2=wellKnownSymbol$l,ITERATOR$2=wellKnownSymbol$l("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR$2]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(e){}var method,checkCorrectnessOfIteration$1=function(e,t){try{if(!t&&!SAFE_CLOSING)return!1}catch(e){return!1}var r=!1;try{var n={};n[ITERATOR$2]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},NativePromiseConstructor$1=promiseNativeConstructor,checkCorrectnessOfIteration=checkCorrectnessOfIteration$1,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration(function(e){NativePromiseConstructor$1.all(e).then(void 0,function(){})}),$$8=_export,call$5=functionCall,aCallable$1=aCallable$8,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration,$$7=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{all:function(e){var s=this,t=newPromiseCapabilityModule$2.f(s),l=t.resolve,c=t.reject,r=perform$1(function(){var n=aCallable$1(s.resolve),o=[],i=0,a=1;iterate$1(e,function(e){var t=i++,r=!1;a++,call$5(n,s,e).then(function(e){r||(r=!0,o[t]=e,--a)||l(o)},c)}),--a||l(o)});return r.error&&c(r.value),t.promise}}),_export),FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$7,isCallable$2=isCallable$o,defineBuiltIn$3=defineBuiltIn$b,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,$$6=($$7({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable$2(NativePromiseConstructor)&&(method=getBuiltIn$1("Promise").prototype.catch,NativePromisePrototype.catch!==method)&&defineBuiltIn$3(NativePromisePrototype,"catch",method,{unsafe:!0}),_export),call$4=functionCall,aCallable=aCallable$8,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,$$5=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function(e){var r=this,n=newPromiseCapabilityModule$1.f(r),o=n.reject,t=perform(function(){var t=aCallable(r.resolve);iterate(e,function(e){call$4(t,r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}}),_export),newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR,anObject$3=($$5({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return(0,t.reject)(e),t.promise}}),anObject$h),isObject$1=isObject$d,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(e,t){return anObject$3(e),isObject$1(t)&&t.constructor===e?t:((0,(e=newPromiseCapability.f(e)).resolve)(t),e.promise)},$$4=_export,getBuiltIn=getBuiltIn$7,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;function __awaiter(e,a,s,l){return new(s=s||Promise)(function(r,t){function n(e){try{i(l.next(e))}catch(e){t(e)}}function o(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(n,o)}i((l=l.apply(e,a||[])).next())})}getBuiltIn("Promise"),$$4({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}});const getOrgOpenIdProviders=(n,o)=>__awaiter(void 0,void 0,void 0,function*(){let t=[];var e=(o||getRestApiUrlFromConfig())+"/api/admin/openid/org/"+n;try{var r=yield fetch(e);t=200===r.status?(yield r.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",r),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),linkUserToOidAndLogin=(e,t,r)=>fetch(getRestApiUrlFromConfig()+"/api/admin/openid/linkUserToOid",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({userName:e,password:t,sessionKey:r})}),getUserInstances=r=>__awaiter(void 0,void 0,void 0,function*(){var e=`/aiware_user_instances?email=${r}&limit=1000&offset=0`;try{var t=yield fetch(getConfig().hubUrl+e,{method:"GET",headers:{"Content-Type":"application/json; charset=utf-8"}});if(t.ok)return yield t.json();throw new Error("Something went wrong while loading user instances.")}catch(e){return devErrorLogger(e),null}}),userLoginMutation=(r,n,o)=>__awaiter(void 0,void 0,void 0,function*(){var e=o||getConfig().baseUrl,t={query:`
2
2
  mutation UserLogin($input: UserLogin!) {
3
3
  userLogin(input: $input) {
4
4
  token
Binary file