aiware-js 2.37.0 → 2.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/index.esm.css +92 -92
  2. package/index.esm.css.gz +0 -0
  3. package/index.esm.js.gz +0 -0
  4. package/index.esm.min.css +92 -92
  5. package/index.esm.min.css.gz +0 -0
  6. package/js-core.esm.js +4 -4
  7. package/js-core.esm.js.gz +0 -0
  8. package/js-core.esm10.js.gz +0 -0
  9. package/js-core.esm11.js.gz +0 -0
  10. package/js-core.esm12.js.gz +0 -0
  11. package/js-core.esm13.js.gz +0 -0
  12. package/js-core.esm14.js.gz +0 -0
  13. package/js-core.esm15.js.gz +0 -0
  14. package/js-core.esm16.js.gz +0 -0
  15. package/js-core.esm17.js.gz +0 -0
  16. package/js-core.esm18.js +1 -1
  17. package/js-core.esm18.js.gz +0 -0
  18. package/js-core.esm19.js.gz +0 -0
  19. package/js-core.esm2.js.gz +0 -0
  20. package/js-core.esm20.js +13 -1
  21. package/js-core.esm20.js.gz +0 -0
  22. package/js-core.esm21.js.gz +0 -0
  23. package/js-core.esm22.js.gz +0 -0
  24. package/js-core.esm23.js.gz +0 -0
  25. package/js-core.esm24.js.gz +0 -0
  26. package/js-core.esm25.js.gz +0 -0
  27. package/js-core.esm26.js.gz +0 -0
  28. package/js-core.esm27.js.gz +0 -0
  29. package/js-core.esm28.js.gz +0 -0
  30. package/js-core.esm29.js.gz +0 -0
  31. package/js-core.esm3.js.gz +0 -0
  32. package/js-core.esm30.js.gz +0 -0
  33. package/js-core.esm31.js.gz +0 -0
  34. package/js-core.esm32.js.gz +0 -0
  35. package/js-core.esm33.js +1 -1
  36. package/js-core.esm33.js.gz +0 -0
  37. package/js-core.esm34.js.gz +0 -0
  38. package/js-core.esm35.js.gz +0 -0
  39. package/js-core.esm36.js.gz +0 -0
  40. package/js-core.esm37.js.gz +0 -0
  41. package/js-core.esm38.js +41 -29
  42. package/js-core.esm38.js.gz +0 -0
  43. package/js-core.esm39.js.gz +0 -0
  44. package/js-core.esm4.js +1 -1
  45. package/js-core.esm4.js.gz +0 -0
  46. package/js-core.esm40.js +2 -2
  47. package/js-core.esm40.js.gz +0 -0
  48. package/js-core.esm41.js.gz +0 -0
  49. package/js-core.esm42.js.gz +0 -0
  50. package/js-core.esm43.js.gz +0 -0
  51. package/js-core.esm44.js +2 -2
  52. package/js-core.esm44.js.gz +0 -0
  53. package/js-core.esm45.js +1 -1
  54. package/js-core.esm45.js.gz +0 -0
  55. package/js-core.esm46.js +1 -1
  56. package/js-core.esm46.js.gz +0 -0
  57. package/js-core.esm47.js +31 -1
  58. package/js-core.esm47.js.gz +0 -0
  59. package/js-core.esm48.js +1 -31
  60. package/js-core.esm48.js.gz +0 -0
  61. package/js-core.esm49.js +85 -1
  62. package/js-core.esm49.js.gz +0 -0
  63. package/js-core.esm5.js.gz +0 -0
  64. package/js-core.esm50.js +52 -73
  65. package/js-core.esm50.js.gz +0 -0
  66. package/js-core.esm51.js +7 -63
  67. package/js-core.esm51.js.gz +0 -0
  68. package/js-core.esm52.js +1 -8
  69. package/js-core.esm52.js.gz +0 -0
  70. package/js-core.esm53.js +1 -1
  71. package/js-core.esm53.js.gz +0 -0
  72. package/js-core.esm54.js +56 -1
  73. package/js-core.esm54.js.gz +0 -0
  74. package/js-core.esm55.js +116 -48
  75. package/js-core.esm55.js.gz +0 -0
  76. package/js-core.esm56.js +150 -107
  77. package/js-core.esm56.js.gz +0 -0
  78. package/js-core.esm57.js +57 -149
  79. package/js-core.esm57.js.gz +0 -0
  80. package/js-core.esm58.js +15 -75
  81. package/js-core.esm58.js.gz +0 -0
  82. package/js-core.esm59.js +1 -15
  83. package/js-core.esm59.js.gz +0 -0
  84. package/js-core.esm6.js.gz +0 -0
  85. package/js-core.esm60.js +1 -1
  86. package/js-core.esm60.js.gz +0 -0
  87. package/js-core.esm61.js +121 -1
  88. package/js-core.esm61.js.gz +0 -0
  89. package/js-core.esm62.js +14 -103
  90. package/js-core.esm62.js.gz +0 -0
  91. package/js-core.esm63.js +15 -27
  92. package/js-core.esm63.js.gz +0 -0
  93. package/js-core.esm64.js +13 -19
  94. package/js-core.esm64.js.gz +0 -0
  95. package/js-core.esm65.js +1 -14
  96. package/js-core.esm65.js.gz +0 -0
  97. package/js-core.esm66.js +1 -1
  98. package/js-core.esm66.js.gz +0 -0
  99. package/js-core.esm67.js +61 -1
  100. package/js-core.esm67.js.gz +0 -0
  101. package/js-core.esm68.js +37 -52
  102. package/js-core.esm68.js.gz +0 -0
  103. package/js-core.esm69.js +79 -37
  104. package/js-core.esm69.js.gz +0 -0
  105. package/js-core.esm7.js +1 -1
  106. package/js-core.esm7.js.gz +0 -0
  107. package/js-core.esm70.js +1 -88
  108. package/js-core.esm70.js.gz +0 -0
  109. package/js-core.esm71.js +1 -1
  110. package/js-core.esm71.js.gz +0 -0
  111. package/js-core.esm72.js +35 -1
  112. package/js-core.esm72.js.gz +0 -0
  113. package/js-core.esm73.js +1 -35
  114. package/js-core.esm73.js.gz +0 -0
  115. package/js-core.esm74.js +1 -1
  116. package/js-core.esm74.js.gz +0 -0
  117. package/js-core.esm75.js +1 -1
  118. package/js-core.esm75.js.gz +0 -0
  119. package/js-core.esm76.js +1 -1
  120. package/js-core.esm76.js.gz +0 -0
  121. package/js-core.esm77.js +1 -1
  122. package/js-core.esm77.js.gz +0 -0
  123. package/js-core.esm78.js +1 -1
  124. package/js-core.esm78.js.gz +0 -0
  125. package/js-core.esm79.js +1 -1
  126. package/js-core.esm79.js.gz +0 -0
  127. package/js-core.esm8.js.gz +0 -0
  128. package/js-core.esm80.js +1 -1
  129. package/js-core.esm80.js.gz +0 -0
  130. package/js-core.esm81.js +1 -1
  131. package/js-core.esm81.js.gz +0 -0
  132. package/js-core.esm82.js +1 -1
  133. package/js-core.esm82.js.gz +0 -0
  134. package/js-core.esm83.js +1 -1
  135. package/js-core.esm83.js.gz +0 -0
  136. package/js-core.esm84.js +1 -1
  137. package/js-core.esm84.js.gz +0 -0
  138. package/js-core.esm85.js +1 -1
  139. package/js-core.esm85.js.gz +0 -0
  140. package/js-core.esm86.js +1 -1
  141. package/js-core.esm86.js.gz +0 -0
  142. package/js-core.esm87.js +1 -1
  143. package/js-core.esm87.js.gz +0 -0
  144. package/js-core.esm88.js +1 -1
  145. package/js-core.esm88.js.gz +0 -0
  146. package/js-core.esm89.js +1 -1
  147. package/js-core.esm89.js.gz +0 -0
  148. package/js-core.esm9.js.gz +0 -0
  149. package/js-core.esm90.js +1 -1
  150. package/js-core.esm90.js.gz +0 -0
  151. package/js-core.esm91.js +1 -1
  152. package/js-core.esm91.js.gz +0 -0
  153. package/js-core.umd.css +92 -92
  154. package/js-core.umd.css.gz +0 -0
  155. package/js-core.umd.js +224 -193
  156. package/js-core.umd.js.gz +0 -0
  157. package/js-core.umd.min.css +92 -92
  158. package/js-core.umd.min.css.gz +0 -0
  159. package/locales/en.json +1 -1
  160. package/locales/es.json +1 -1
  161. package/locales/fr.json +1 -1
  162. package/package.json +1 -1
  163. package/js-core.esm92.js +0 -1
  164. package/js-core.esm92.js.gz +0 -0
package/js-core.esm4.js CHANGED
@@ -1,4 +1,4 @@
1
- import{r as react,i as createSvgIcon,k as interopRequireDefault,j as jsxRuntime,F as FormattedMessage,m as makeStyles,A as AIWareIntlProvider,l as useDispatch,n as useSelector,o as authStatusSelector,p as authContextSelector,q as AuthContext,t as lodash,B as Box,T as Typography,v as Alert,w as authErrorMessage,G as Grid,x as FormControl,y as TextField,z as classNames,L as LoadingButton,C as resetPasswordRequest,I as InputLabel,O as OutlinedInput,D as InputAdornment,E as IconButton,H as Select,J as Location,M as MenuItem,K as Button,N as Divider}from"./js-core.esm.js";import{d as default_1$1}from"./js-core.esm5.js";import{C as Container}from"./js-core.esm6.js";function _extends$3(){return(_extends$3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,o=arguments[t];for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var Action,ResultType,DataRouterHook,DataRouterStateHook,AwaitRenderStatus;function invariant(e,t){if(!1===e||null==e)throw new Error(t)}function warning(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function parsePath(e){var t,r={};return e&&(0<=(t=e.indexOf("#"))&&(r.hash=e.substr(t),e=e.substr(0,t)),0<=(t=e.indexOf("?"))&&(r.search=e.substr(t),e=e.substr(0,t)),e)&&(r.pathname=e),r}function matchRoutes(e,t,r){void 0===r&&(r="/");var o=stripBasename(("string"==typeof t?parsePath(t):t).pathname||"/",r);if(null==o)return null;var n=flattenRoutes(e);rankRouteBranches(n);let a=null;for(let e=0;null==a&&e<n.length;++e)a=matchRouteBranch(n[e],safelyDecodeURI(o));return a}function flattenRoutes(e,o,n,a){void 0===o&&(o=[]),void 0===n&&(n=[]),void 0===a&&(a="");let i=(e,t,r)=>{r={relativePath:void 0===r?e.path||"":r,caseSensitive:!0===e.caseSensitive,childrenIndex:t,route:e},r.relativePath.startsWith("/")&&(invariant(r.relativePath.startsWith(a),'Absolute route path "'+r.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),r.relativePath=r.relativePath.slice(a.length)),t=joinPaths([a,r.relativePath]),r=n.concat(r);e.children&&0<e.children.length&&(invariant(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+t+'".'),flattenRoutes(e.children,o,r,t)),null==e.path&&!e.index||o.push({path:t,score:computeScore(t,e.index),routesMeta:r})};return e.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(var o of explodeOptionalSegments(e.path))i(e,t,o);else i(e,t)}),o}function explodeOptionalSegments(t){var e=t.split("/");if(0===e.length)return[];var[e,...r]=e,o=e.endsWith("?");let n=e.replace(/\?$/,"");return 0===r.length?o?[n,""]:[n]:(e=explodeOptionalSegments(r.join("/")),(r=[]).push(...e.map(e=>""===e?n:[n,e].join("/"))),o&&r.push(...e),r.map(e=>t.startsWith("/")&&""===e?"/":e))}function rankRouteBranches(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:compareIndexes(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Action=Action||{}),function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(ResultType=ResultType||{});const paramRe=/^:\w+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=e=>"*"===e;function computeScore(e,t){e=e.split("/");let r=e.length;return e.some(isSplat)&&(r+=splatPenalty),t&&(r+=indexRouteValue),e.filter(e=>!isSplat(e)).reduce((e,t)=>e+(paramRe.test(t)?dynamicSegmentValue:""===t?emptySegmentValue:staticSegmentValue),r)}function compareIndexes(e,r){return e.length===r.length&&e.slice(0,-1).every((e,t)=>e===r[t])?e[e.length-1]-r[r.length-1]:0}function matchRouteBranch(e,t){var r=e["routesMeta"],o={};let n="/";var a=[];for(let e=0;e<r.length;++e){var i=r[e],s=e===r.length-1,l="/"===n?t:t.slice(n.length)||"/",s=matchPath({path:i.relativePath,caseSensitive:i.caseSensitive,end:s},l);if(!s)return null;Object.assign(o,s.params);l=i.route;a.push({params:o,pathname:joinPaths([n,s.pathname]),pathnameBase:normalizePathname(joinPaths([n,s.pathnameBase])),route:l}),"/"!==s.pathnameBase&&(n=joinPaths([n,s.pathnameBase]))}return a}function matchPath(e,t){var[r,o]=compilePath((e="string"==typeof e?{path:e,caseSensitive:!1,end:!0}:e).path,e.caseSensitive,e.end),t=t.match(r);if(!t)return null;let n=t[0],a=n.replace(/(.)\/+$/,"$1"),i=t.slice(1);return{params:o.reduce((e,t,r)=>{var o;return"*"===t&&(o=i[r]||"",a=n.slice(0,n.length-o.length).replace(/(.)\/+$/,"$1")),e[t]=safelyDecodeURIComponent(i[r]||"",t),e},{}),pathname:n,pathnameBase:a,pattern:e}}function compilePath(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),warning("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let o=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(e,t)=>(o.push(t),"/([^\\/]+)"));return e.endsWith("*")?(o.push("*"),n+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?n+="\\/*$":""!==e&&"/"!==e&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),o]}function safelyDecodeURI(t){try{return decodeURI(t)}catch(e){return warning(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function safelyDecodeURIComponent(t,r){try{return decodeURIComponent(t)}catch(e){return warning(!1,'The value for the URL param "'+r+'" will not be decoded because the string "'+t+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function stripBasename(e,t){var r;return"/"===t?e:!e.toLowerCase().startsWith(t.toLowerCase())||(t=t.endsWith("/")?t.length-1:t.length,(r=e.charAt(t))&&"/"!==r)?null:e.slice(t)||"/"}function resolvePath(e,t){void 0===t&&(t="/");var{pathname:e,search:r="",hash:o=""}="string"==typeof e?parsePath(e):e;return{pathname:e?e.startsWith("/")?e:resolvePathname(e,t):t,search:normalizeSearch(r),hash:normalizeHash(o)}}function resolvePathname(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?1<r.length&&r.pop():"."!==e&&r.push(e)}),1<r.length?r.join("/"):"/"}function getInvalidPathError(e,t,r,o){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(o)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function getPathContributingMatches(e){return e.filter((e,t)=>0===t||e.route.path&&0<e.route.path.length)}function resolveTo(e,t,r,o){void 0===o&&(o=!1);let n;"string"==typeof e?n=parsePath(e):(invariant(!(n=_extends$3({},e)).pathname||!n.pathname.includes("?"),getInvalidPathError("?","pathname","search",n)),invariant(!n.pathname||!n.pathname.includes("#"),getInvalidPathError("#","pathname","hash",n)),invariant(!n.search||!n.search.includes("#"),getInvalidPathError("#","search","hash",n)));var e=""===e||""===n.pathname,a=e?"/":n.pathname;let i;if(o||null==a)i=r;else{let e=t.length-1;if(a.startsWith("..")){for(var s=a.split("/");".."===s[0];)s.shift(),--e;n.pathname=s.join("/")}i=0<=e?t[e]:"/"}o=resolvePath(n,i),t=a&&"/"!==a&&a.endsWith("/"),e=(e||"."===a)&&r.endsWith("/");return o.pathname.endsWith("/")||!t&&!e||(o.pathname+="/"),o}const joinPaths=e=>e.join("/").replace(/\/\/+/g,"/"),normalizePathname=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",normalizeHash=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function isRouteErrorResponse(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const validMutationMethodsArr=["post","put","patch","delete"];function _extends$2(){return(_extends$2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,o=arguments[t];for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}[...validMutationMethodsArr];const DataRouterContext=react.exports.createContext(null),DataRouterStateContext=react.exports.createContext(null),NavigationContext=react.exports.createContext(null),LocationContext=react.exports.createContext(null),RouteContext=react.exports.createContext({outlet:null,matches:[],isDataRoute:!1}),RouteErrorContext=react.exports.createContext(null);function useInRouterContext(){return null!=react.exports.useContext(LocationContext)}function useLocation(){return useInRouterContext()||invariant(!1),react.exports.useContext(LocationContext).location}function useIsomorphicLayoutEffect(e){react.exports.useContext(NavigationContext).static||react.exports.useLayoutEffect(e)}function useNavigate(){var e=react.exports.useContext(RouteContext)["isDataRoute"];return(e?useNavigateStable:useNavigateUnstable)()}function useNavigateUnstable(){useInRouterContext()||invariant(!1);let{basename:r,navigator:o}=react.exports.useContext(NavigationContext);var e=react.exports.useContext(RouteContext)["matches"];let n=useLocation()["pathname"],a=JSON.stringify(getPathContributingMatches(e).map(e=>e.pathnameBase)),i=react.exports.useRef(!1);return useIsomorphicLayoutEffect(()=>{i.current=!0}),react.exports.useCallback(function(e,t){void 0===t&&(t={}),i.current&&("number"==typeof e?o.go(e):(e=resolveTo(e,JSON.parse(a),n,"path"===t.relative),"/"!==r&&(e.pathname="/"===e.pathname?r:joinPaths([r,e.pathname])),(t.replace?o.replace:o.push)(e,t.state,t)))},[r,o,a,n])}function useRoutes(e,t){return useRoutesImpl(e,t)}function useRoutesImpl(e,t,r){useInRouterContext()||invariant(!1);let o=react.exports.useContext(NavigationContext)["navigator"];var n=react.exports.useContext(RouteContext)["matches"],a=n[n.length-1];let i=a?a.params:{},s=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;a=useLocation();let l;var c=(l=t?(u="string"==typeof t?parsePath(t):t,"/"===s||null!=(c=u.pathname)&&c.startsWith(s)||invariant(!1),u):a).pathname||"/",u=matchRoutes(e,{pathname:"/"===s?c:c.slice(s.length)||"/"}),a=_renderMatches(u&&u.map(e=>Object.assign({},e,{params:Object.assign({},i,e.params),pathname:joinPaths([s,(o.encodeLocation?o.encodeLocation(e.pathname):e).pathname]),pathnameBase:"/"===e.pathnameBase?s:joinPaths([s,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),n,r);return t&&a?react.exports.createElement(LocationContext.Provider,{value:{location:_extends$2({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:Action.Pop}},a):a}function DefaultErrorComponent(){var e=useRouteError(),t=isRouteErrorResponse(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),e=e instanceof Error?e.stack:null;return react.exports.createElement(react.exports.Fragment,null,react.exports.createElement("h2",null,"Unexpected Application Error!"),react.exports.createElement("h3",{style:{fontStyle:"italic"}},t),e?react.exports.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},e):null,null)}const defaultErrorElement=react.exports.createElement(DefaultErrorComponent,null);class RenderErrorBoundary extends react.exports.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?react.exports.createElement(RouteContext.Provider,{value:this.props.routeContext},react.exports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RenderedRoute(e){var{routeContext:e,match:t,children:r}=e,o=react.exports.useContext(DataRouterContext);return o&&o.static&&o.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=t.route.id),react.exports.createElement(RouteContext.Provider,{value:e},r)}function _renderMatches(e,s,l){if(void 0===s&&(s=[]),void 0===l&&(l=null),null==e){if(null==l||!l.errors)return null;e=l.matches}let c=e,u=null==l?void 0:l.errors;return null!=u&&(0<=(e=c.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id])))||invariant(!1),c=c.slice(0,Math.min(c.length,e+1))),c.reduceRight((t,r,e)=>{let o=r.route.id?null==u?void 0:u[r.route.id]:null,n=null,a=(l&&(n=r.route.errorElement||defaultErrorElement),s.concat(c.slice(0,e+1)));var i=()=>{let e;return e=o?n:r.route.Component?react.exports.createElement(r.route.Component,null):r.route.element||t,react.exports.createElement(RenderedRoute,{match:r,routeContext:{outlet:t,matches:a,isDataRoute:null!=l},children:e})};return l&&(r.route.ErrorBoundary||r.route.errorElement||0===e)?react.exports.createElement(RenderErrorBoundary,{location:l.location,revalidation:l.revalidation,component:n,error:o,children:i(),routeContext:{outlet:null,matches:a,isDataRoute:!0}}):i()},null)}function useDataRouterContext(e){var t=react.exports.useContext(DataRouterContext);return t||invariant(!1),t}function useDataRouterState(e){var t=react.exports.useContext(DataRouterStateContext);return t||invariant(!1),t}function useRouteContext(e){var t=react.exports.useContext(RouteContext);return t||invariant(!1),t}function useCurrentRouteId(e){var t=useRouteContext(),t=t.matches[t.matches.length-1];return t.route.id||invariant(!1),t.route.id}function useRouteError(){var e=react.exports.useContext(RouteErrorContext),t=useDataRouterState(DataRouterStateHook.UseRouteError),r=useCurrentRouteId(DataRouterStateHook.UseRouteError);return e||(null==(e=t.errors)?void 0:e[r])}function useNavigateStable(){let r=useDataRouterContext(DataRouterHook.UseNavigateStable)["router"],o=useCurrentRouteId(DataRouterStateHook.UseNavigateStable),n=react.exports.useRef(!1);return useIsomorphicLayoutEffect(()=>{n.current=!0}),react.exports.useCallback(function(e,t){void 0===t&&(t={}),n.current&&("number"==typeof e?r.navigate(e):r.navigate(e,_extends$2({fromRouteId:o},t)))},[r,o])}function Route(e){invariant(!1)}function Routes(e){var{children:e,location:t}=e;return useRoutes(createRoutesFromChildren(e),t)}function createRoutesFromChildren(e,o){void 0===o&&(o=[]);let n=[];return react.exports.Children.forEach(e,(e,t)=>{var r;react.exports.isValidElement(e)&&(t=[...o,t],e.type===react.exports.Fragment?n.push.apply(n,createRoutesFromChildren(e.props.children,t)):(e.type!==Route&&invariant(!1),e.props.index&&e.props.children&&invariant(!1),r={id:e.props.id||t.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy},e.props.children&&(r.children=createRoutesFromChildren(e.props.children,t)),n.push(r)))}),n}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(DataRouterHook=DataRouterHook||{}),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(DataRouterStateHook=DataRouterStateHook||{}),function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(AwaitRenderStatus=AwaitRenderStatus||{}),new Promise(()=>{});var match,version,store,wmget,wmhas,wmset,set$1,get,has,STATE,activeXDocument,Visibility={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(Visibility,"__esModule",{value:!0}),Visibility.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.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=Visibility.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$o=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$k=function(e){try{return!!e()}catch(e){return!0}},fails$j=fails$k,descriptors=!fails$k(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$i=fails$k,functionBindNative=!fails$k(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$k=Function.prototype.call,functionCall=NATIVE_BIND$3?call$k.bind(call$k):function(){return call$k.apply(call$k,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$3&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$5=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$3(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,bind$6=FunctionPrototype$2.bind,call$j=FunctionPrototype$2.call,uncurryThis$m=NATIVE_BIND$2&&bind$6.bind(call$j,call$j),functionUncurryThis=NATIVE_BIND$2?function(e){return e&&uncurryThis$m(e)}:function(e){return e&&function(){return call$j.apply(e,arguments)}},uncurryThis$l=functionUncurryThis,toString$9=uncurryThis$l({}.toString),stringSlice$6=uncurryThis$l("".slice),classofRaw$1=function(e){return stringSlice$6(toString$9(e),8,-1)},uncurryThis$k=functionUncurryThis,fails$h=fails$k,classof$8=classofRaw$1,$Object$4=Object,split$1=functionUncurryThis("".split),indexedObject=fails$h(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$8(e)?split$1(e,""):$Object$4(e)}:$Object$4,$TypeError$d=TypeError,requireObjectCoercible$7=function(e){if(null==e)throw $TypeError$d("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$6=requireObjectCoercible$7,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$6(e))},isCallable$o=function(e){return"function"==typeof e},isCallable$n=isCallable$o,isObject$9=function(e){return"object"==typeof e?null!==e:isCallable$n(e)},global$n=global$o,isCallable$m=isCallable$o,aFunction=function(e){return isCallable$m(e)?e:void 0},getBuiltIn$8=function(e,t){return arguments.length<2?aFunction(global$n[e]):global$n[e]&&global$n[e][t]},uncurryThis$j=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),getBuiltIn$7=getBuiltIn$8,engineUserAgent=getBuiltIn$8("navigator","userAgent")||"",global$m=global$o,userAgent$3=engineUserAgent,process$3=global$m.process,Deno$1=global$m.Deno,versions=process$3&&process$3.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$g=fails$k,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$g(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$2=nativeSymbol,useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$8,isCallable$l=isCallable$o,isPrototypeOf$3=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$3(t.prototype,$Object$3(e))},$String$3=String,tryToString$4=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$k=isCallable$o,tryToString$3=tryToString$4,$TypeError$c=TypeError,aCallable$7=function(e){if(isCallable$k(e))return e;throw $TypeError$c(tryToString$3(e)+" is not a function")},aCallable$6=aCallable$7,getMethod$6=function(e,t){e=e[t];return null==e?void 0:aCallable$6(e)},call$i=functionCall,isCallable$j=isCallable$o,isObject$8=isObject$9,$TypeError$b=TypeError,ordinaryToPrimitive$1=function(e,t){var r,o;if("string"===t&&isCallable$j(r=e.toString)&&!isObject$8(o=call$i(r,e)))return o;if(isCallable$j(r=e.valueOf)&&!isObject$8(o=call$i(r,e)))return o;if("string"!==t&&isCallable$j(r=e.toString)&&!isObject$8(o=call$i(r,e)))return o;throw $TypeError$b("Can't convert object to primitive value")},shared$4={exports:{}},isPure=!1,global$l=global$o,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$6(global$l,t,{value:r,configurable:!0,writable:!0})}catch(e){global$l[t]=r}return r},global$k=global$o,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$o[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$5=((shared$4.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$7),$Object$2=Object,toObject$4=function(e){return $Object$2(requireObjectCoercible$5(e))},uncurryThis$i=functionUncurryThis,toObject$3=toObject$4,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$3(e),t)},uncurryThis$h=functionUncurryThis,id=0,postfix=Math.random(),toString$8=uncurryThis$h(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$8(++id+postfix,36)},global$j=global$o,shared$3=shared$4.exports,hasOwn$b=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$3("wks"),Symbol$1=global$j.Symbol,symbolFor=Symbol$1&&Symbol$1.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$k=function(e){var t;return hasOwn$b(WellKnownSymbolsStore,e)&&(NATIVE_SYMBOL$1||"string"==typeof WellKnownSymbolsStore[e])||(t="Symbol."+e,NATIVE_SYMBOL$1&&hasOwn$b(Symbol$1,e)?WellKnownSymbolsStore[e]=Symbol$1[e]:WellKnownSymbolsStore[e]=(USE_SYMBOL_AS_UID&&symbolFor?symbolFor:createWellKnownSymbol)(t)),WellKnownSymbolsStore[e]},call$h=functionCall,isObject$7=isObject$9,isSymbol$1=isSymbol$2,getMethod$5=getMethod$6,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$j=wellKnownSymbol$k,$TypeError$a=TypeError,TO_PRIMITIVE=wellKnownSymbol$k("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$7(e)||isSymbol$1(e))return e;var r=getMethod$5(e,TO_PRIMITIVE);if(r){if(r=call$h(r,e,t=void 0===t?"default":t),!isObject$7(r)||isSymbol$1(r))return r;throw $TypeError$a("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$3=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$i=global$o,isObject$6=isObject$9,document$3=global$o.document,EXISTS$1=isObject$6(document$3)&&isObject$6(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$c=descriptors,fails$f=fails$k,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$k(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$b=descriptors,call$g=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$4=createPropertyDescriptor$5,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,hasOwn$a=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$b?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$2(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$a(e,t))return createPropertyDescriptor$4(!call$g(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$a=descriptors,fails$e=fails$k,v8PrototypeDefineBug=descriptors&&fails$k(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$5=isObject$9,$String$2=String,$TypeError$9=TypeError,anObject$g=function(e){if(isObject$5(e))return e;throw $TypeError$9($String$2(e)+" is not an object")},DESCRIPTORS$9=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$f=anObject$g,toPropertyKey$1=toPropertyKey$3,$TypeError$8=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$8=(objectDefineProperty.f=DESCRIPTORS$9?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var o;return anObject$f(e),t=toPropertyKey$1(t),anObject$f(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&(o=$getOwnPropertyDescriptor(e,t))&&o[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:o)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:o)[ENUMERABLE],writable:!1}),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$f(e),t=toPropertyKey$1(t),anObject$f(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$8("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$5=objectDefineProperty,createPropertyDescriptor$3=createPropertyDescriptor$5,createNonEnumerableProperty$5=DESCRIPTORS$8?function(e,t,r){return definePropertyModule$5.f(e,t,createPropertyDescriptor$3(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$2={exports:{}},DESCRIPTORS$7=descriptors,hasOwn$9=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$7&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$9(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$7||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$g=functionUncurryThis,isCallable$i=isCallable$o,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$4=(isCallable$i(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$h=global$o,isCallable$h=isCallable$o,inspectSource$3=inspectSource$4,WeakMap$1=global$o.WeakMap,nativeWeakMap=isCallable$h(WeakMap$1)&&/native code/.test(inspectSource$3(WeakMap$1)),shared$2=shared$4.exports,uid=uid$2,keys=shared$2("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=nativeWeakMap,global$g=global$o,uncurryThis$f=functionUncurryThis,isObject$4=isObject$9,createNonEnumerableProperty$4=createNonEnumerableProperty$5,hasOwn$8=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$3=global$g.TypeError,WeakMap=global$g.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$4(e)&&(e=get(e)).type===t)return e;throw TypeError$3("Incompatible receiver, "+t+" required")}},internalState=(has=NATIVE_WEAK_MAP||shared$1.state?(store=shared$1.state||(shared$1.state=new WeakMap),wmget=uncurryThis$f(store.get),wmhas=uncurryThis$f(store.has),wmset=uncurryThis$f(store.set),set$1=function(e,t){if(wmhas(store,e))throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);return t.facade=e,wmset(store,e,t),t},get=function(e){return wmget(store,e)||{}},function(e){return wmhas(store,e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(e,t){if(hasOwn$8(e,STATE))throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$8(e,STATE)?e[STATE]:{}},function(e){return hasOwn$8(e,STATE)}),{set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor}),fails$d=fails$k,isCallable$g=isCallable$o,hasOwn$7=hasOwnProperty_1,DESCRIPTORS$6=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$4,InternalStateModule$3=internalState,enforceInternalState=InternalStateModule$3.enforce,getInternalState$2=InternalStateModule$3.get,defineProperty$5=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$6&&!fails$d(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$1=makeBuiltIn$2.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$7(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$6?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$7(r,"arity")&&e.length!==r.arity&&defineProperty$5(e,"length",{value:r.arity});try{r&&hasOwn$7(r,"constructor")&&r.constructor?DESCRIPTORS$6&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState(e);return hasOwn$7(r,"source")||(r.source=TEMPLATE.join("string"==typeof t?t:"")),e},isCallable$f=(Function.prototype.toString=makeBuiltIn$1(function(){return isCallable$g(this)&&getInternalState$2(this).source||inspectSource$2(this)},"toString"),isCallable$o),definePropertyModule$4=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$8=function(e,t,r,o){var n=(o=o||{}).enumerable,a=void 0!==o.name?o.name:t;if(isCallable$f(r)&&makeBuiltIn(r,a,o),o.global)n?e[t]=r:defineGlobalProperty$1(t,r);else{try{o.unsafe?e[t]&&(n=!0):delete e[t]}catch(e){}n?e[t]=r:definePropertyModule$4.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$2=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor$2:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$4=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$3=toIntegerOrInfinity$4,max$2=Math.max,min$2=Math.min,toAbsoluteIndex$2=function(e,t){e=toIntegerOrInfinity$3(e);return e<0?max$2(e+t,0):min$2(e,t)},toIntegerOrInfinity$2=toIntegerOrInfinity$4,min$1=Math.min,toLength$3=function(e){return 0<e?min$1(toIntegerOrInfinity$2(e),9007199254740991):0},toLength$2=toLength$3,lengthOfArrayLike$3=function(e){return toLength$2(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$2=lengthOfArrayLike$3,createMethod$1=function(s){return function(e,t,r){var o,n=toIndexedObject$3(e),a=lengthOfArrayLike$2(n),i=toAbsoluteIndex$1(r,a);if(s&&t!=t){for(;i<a;)if((o=n[i++])!=o)return!0}else for(;i<a;i++)if((s||i in n)&&n[i]===t)return s||i||0;return!s&&-1}},arrayIncludes={includes:createMethod$1(!0),indexOf:createMethod$1(!1)},uncurryThis$e=functionUncurryThis,hasOwn$6=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$2=uncurryThis$e([].push),objectKeysInternal=function(e,t){var r,o=toIndexedObject$2(e),n=0,a=[];for(r in o)!hasOwn$6(hiddenKeys$2,r)&&hasOwn$6(o,r)&&push$2(a,r);for(;t.length>n;)!hasOwn$6(o,r=t[n++])||~indexOf$1(a,r)||push$2(a,r);return a},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$8),uncurryThis$d=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$e=anObject$g,concat$2=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$e(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$2(t,r(e)):t},hasOwn$5=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$3=objectDefineProperty,copyConstructorProperties$2=function(e,t,r){for(var o=ownKeys(t),n=definePropertyModule$3.f,a=getOwnPropertyDescriptorModule.f,i=0;i<o.length;i++){var s=o[i];hasOwn$5(e,s)||r&&hasOwn$5(r,s)||n(e,s,a(t,s))}},fails$c=fails$k,isCallable$e=isCallable$o,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$e(t)?fails$c(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,global$f=global$o,getOwnPropertyDescriptor$2=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$3=createNonEnumerableProperty$5,defineBuiltIn$7=defineBuiltIn$8,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced$1=isForced_1,_export=function(e,t){var r,o,n,a=e.target,i=e.global,s=e.stat,l=i?global$f:s?global$f[a]||defineGlobalProperty(a,{}):(global$f[a]||{}).prototype;if(l)for(r in t){if(o=t[r],n=e.dontCallGetSet?(n=getOwnPropertyDescriptor$2(l,r))&&n.value:l[r],!isForced$1(i?r:a+(s?".":"#")+r,e.forced)&&void 0!==n){if(typeof o==typeof n)continue;copyConstructorProperties$1(o,n)}(e.sham||n&&n.sham)&&createNonEnumerableProperty$3(o,"sham",!0),defineBuiltIn$7(l,r,o,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$5=descriptors,uncurryThis$c=functionUncurryThis,call$f=functionCall,fails$b=fails$k,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$2=toObject$4,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat$1=uncurryThis$c([].concat),objectAssign=!$assign||fails$b(function(){var e,t,r,o;return!(!DESCRIPTORS$5||1===$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},o="abcdefghijklmnopqrst",(e={})[r=Symbol()]=7,o.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[r])||objectKeys$1($assign({},t)).join("")!=o})?function(e,t){for(var r=toObject$2(e),o=arguments.length,n=1,a=getOwnPropertySymbolsModule.f,i=propertyIsEnumerableModule.f;n<o;)for(var s,l=IndexedObject(arguments[n++]),c=a?concat$1(objectKeys$1(l),a(l)):objectKeys$1(l),u=c.length,p=0;p<u;)s=c[p++],DESCRIPTORS$5&&!call$f(i,l,s)||(r[s]=l[s]);return r}:$assign,$$c=_export,assign=objectAssign,objectDefineProperties=(_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign}),{}),DESCRIPTORS$4=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$2=objectDefineProperty,anObject$d=anObject$g,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$4&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$d(e);for(var r,o=toIndexedObject$1(t),n=objectKeys(t),a=n.length,i=0;i<a;)definePropertyModule$2.f(e,r=n[i++],o[r]);return e},getBuiltIn$8),html$2=getBuiltIn$8("document","documentElement"),anObject$c=anObject$g,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$c(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),wellKnownSymbol$i=wellKnownSymbol$k,create$3=objectCreate,defineProperty$3=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$i("unscopables"),ArrayPrototype$1=Array.prototype,addToUnscopables$2=(null==ArrayPrototype$1[UNSCOPABLES]&&defineProperty$3(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$3(null)}),function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0}),$$b=_export,$includes=arrayIncludes.includes,fails$a=fails$k,addToUnscopables$1=addToUnscopables$2,BROKEN_ON_SPARSE=fails$k(function(){return!Array(1).includes()}),isObject$3=($$b({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"),isObject$9),classof$7=classofRaw$1,wellKnownSymbol$h=wellKnownSymbol$k,MATCH$1=wellKnownSymbol$k("match"),isRegexp=function(e){var t;return isObject$3(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$7(e))},isRegExp=isRegexp,$TypeError$7=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError$7("The method doesn't accept regular expressions");return e},wellKnownSymbol$g=wellKnownSymbol$k,TO_STRING_TAG$3=wellKnownSymbol$k("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$3]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$d=isCallable$o,classofRaw=classofRaw$1,wellKnownSymbol$f=wellKnownSymbol$k,TO_STRING_TAG$2=wellKnownSymbol$k("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$6=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object$1(e),TO_STRING_TAG$2))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$d(e.callee)?"Arguments":t},classof$5=classof$6,$String$1=String,toString$7=function(e){if("Symbol"===classof$5(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$1(e)},wellKnownSymbol$e=wellKnownSymbol$k,MATCH=wellKnownSymbol$k("match"),correctIsRegexpLogic=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[MATCH]=!1,"/./"[t](r)}catch(e){}}return!1},$$a=_export,uncurryThis$b=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible$4=requireObjectCoercible$7,toString$6=toString$7,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf$1=functionUncurryThis("".indexOf);$$a({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf$1(toString$6(requireObjectCoercible$4(this)),toString$6(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}});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"}),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"}),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."})},generateApiUrlFromHost=(e=!1)=>{var t=window.location.host;if(t.includes("local"))return e?"https://api.stage.us-1.veritone.com/v3/graphql":"https://api.stage.us-1.veritone.com";var t=t.split("."),r=t.findIndex(e=>"dev"===e||"stage"===e);let o="";return o=-1!==r?"veritone"!==t[r+1]?t[r]+"."+t[r+1]:t[r]+".us-1":(r=t.findIndex(e=>"veritone"===e),"aiware2"!==t[r-1]?t[r-1]:"us-1"),e?`https://api.${o}.veritone.com/v3/graphql`:`https://api.${o}.veritone.com`},useStyles$4=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$9=fails$k,correctPrototypeGetter=!fails$k(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$4=hasOwnProperty_1,isCallable$c=isCallable$o,toObject$1=toObject$4,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$4(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$c(t)&&e instanceof t?t.prototype:e instanceof $Object?ObjectPrototype:null)},fails$8=fails$k,isCallable$b=isCallable$o,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$6=defineBuiltIn$8,wellKnownSymbol$d=wellKnownSymbol$k,ITERATOR$7=wellKnownSymbol$k("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),null==IteratorPrototype$2||fails$8(function(){var e={};return IteratorPrototype$2[ITERATOR$7].call(e)!==e})),iteratorsCore=(isCallable$b((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$7])||defineBuiltIn$6(IteratorPrototype$2,ITERATOR$7,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$2=objectDefineProperty.f,hasOwn$3=hasOwnProperty_1,wellKnownSymbol$c=wellKnownSymbol$k,TO_STRING_TAG$1=wellKnownSymbol$k("toStringTag"),setToStringTag$4=function(e,t,r){(e=e&&!r?e.prototype:e)&&!hasOwn$3(e,TO_STRING_TAG$1)&&defineProperty$2(e,TO_STRING_TAG$1,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$2=objectCreate,createPropertyDescriptor$2=createPropertyDescriptor$5,setToStringTag$3=setToStringTag$4,Iterators$4=iterators,returnThis$1=function(){return this},createIteratorConstructor$2=function(e,t,r,o){t+=" Iterator";return e.prototype=create$2(IteratorPrototype$1,{next:createPropertyDescriptor$2(+!o,r)}),setToStringTag$3(e,t,!1),Iterators$4[t]=returnThis$1,e},isCallable$a=isCallable$o,$String=String,$TypeError$6=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$a(e))return e;throw $TypeError$6("Can't set "+$String(e)+" as a prototype")},uncurryThis$a=functionUncurryThis,anObject$b=anObject$g,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=uncurryThis$a(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(e){}return function(e,t){return anObject$b(e),aPossiblePrototype(t),o?r(e,t):e.__proto__=t,e}}():void 0),$$9=_export,call$e=functionCall,FunctionName=functionName,isCallable$9=isCallable$o,createIteratorConstructor$1=createIteratorConstructor$2,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$2=setToStringTag$4,createNonEnumerableProperty$2=createNonEnumerableProperty$5,defineBuiltIn$5=defineBuiltIn$8,wellKnownSymbol$b=wellKnownSymbol$k,Iterators$3=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$6=wellKnownSymbol$b("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator$1=function(e,t,r,o,n,a,i){createIteratorConstructor$1(r,t,o);function s(e){if(e===n&&$)return $;if(!BUGGY_SAFARI_ITERATORS&&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,o=t+" Iterator",u=!1,p=e.prototype,d=p[ITERATOR$6]||p["@@iterator"]||n&&p[n],$=!BUGGY_SAFARI_ITERATORS&&d||s(n),h="Array"==t&&p.entries||d;if(h&&(h=getPrototypeOf(h.call(new e)))!==Object.prototype&&h.next&&(getPrototypeOf(h)!==IteratorPrototype&&(setPrototypeOf$1?setPrototypeOf$1(h,IteratorPrototype):isCallable$9(h[ITERATOR$6])||defineBuiltIn$5(h,ITERATOR$6,returnThis)),setToStringTag$2(h,o,!0)),PROPER_FUNCTION_NAME&&n==VALUES&&d&&d.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$2(p,"name",VALUES):(u=!0,$=function(){return call$e(d,this)})),n)if(l={values:s(VALUES),keys:a?$:s(KEYS),entries:s(ENTRIES)},i)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in p||defineBuiltIn$5(p,c,l[c]);else $$9({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return p[ITERATOR$6]!==$&&defineBuiltIn$5(p,ITERATOR$6,$,{name:n}),Iterators$3[t]=$,l},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$2,Iterators$2=iterators,InternalStateModule$2=internalState,defineProperty$1=objectDefineProperty.f,defineIterator=defineIterator$1,DESCRIPTORS$3=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$2=InternalStateModule$2.set,getInternalState$1=InternalStateModule$2.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState$2(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState$1(this),t=e.target,r=e.kind,o=e.index++;return!t||o>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:o,done:!1}:"values"==r?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS$3&&"values"!==values.name)try{defineProperty$1(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$e=global$o,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$1=createNonEnumerableProperty$5,wellKnownSymbol$a=wellKnownSymbol$k,ITERATOR$5=wellKnownSymbol$a("iterator"),TO_STRING_TAG=wellKnownSymbol$a("toStringTag"),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(t[TO_STRING_TAG]||createNonEnumerableProperty$1(t,TO_STRING_TAG,e),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$e[COLLECTION_NAME]&&global$e[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,symbolToString,symbolValueOf,regexp,replace$3,stringSlice$5,PwdRequirements,$$8=_export,DESCRIPTORS$2=descriptors,global$d=global$o,uncurryThis$9=functionUncurryThis,hasOwn$2=hasOwnProperty_1,isCallable$8=isCallable$o,isPrototypeOf$2=objectIsPrototypeOf,toString$5=toString$7,defineProperty=objectDefineProperty.f,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$d.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;function __rest(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function __awaiter(e,i,s,l){return new(s=s||Promise)(function(r,t){function o(e){try{a(l.next(e))}catch(e){t(e)}}function n(e){try{a(l.throw(e))}catch(e){t(e)}}function a(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(o,n)}a((l=l.apply(e,i||[])).next())})}function ResetPasswordForm({onBtnClick:e,requiresRestriction:t,disableForm:r=!1,columnView:o=!1}){var n=useStyles$4()["classes"],a=useSelector(authStatusSelector);const i=useSelector(authErrorMessage);var s=useSelector(authContextSelector);const[l,c]=react.exports.useState(""),[u,p]=react.exports.useState(""),[d,$]=react.exports.useState({[PwdRequirements.lengthCheck]:null,[PwdRequirements.userNameCheck]:null,[PwdRequirements.dictionaryCheck]:null,[PwdRequirements.pastPasswordCheck]:null,[PwdRequirements.passwordComplexityCheck]:null,[PwdRequirements.passwordChangeFrequencyCheck]:null}),[h,g]=react.exports.useState(null);a="loading"===a&&s===AuthContext.ResetPassword;const m=lodash.exports.isEqual(l,u);s=Object.values(d).includes(!1);react.exports.useEffect(()=>{try{if(i){var e=JSON.parse(i);const t=e["description"],o=__rest(e,["description"]);Object.keys(o).forEach(e=>{var t,r;t=e,r=o[e],$(e=>Object.assign(Object.assign({},e),{[t]:r}))}),g(t)}else g(null)}catch(e){g(i)}finally{p("")}},[i]);var f=[{label:SHARED_TEXT.lengthCheck,error:d[PwdRequirements.lengthCheck]},{label:SHARED_TEXT.pastPasswordCheck,error:d[PwdRequirements.pastPasswordCheck]},{label:SHARED_TEXT.userNameCheck,error:d[PwdRequirements.userNameCheck]},{label:SHARED_TEXT.dictionaryCheck,error:d[PwdRequirements.dictionaryCheck]},...d[PwdRequirements.passwordComplexityCheck]?[{label:SHARED_TEXT.passwordComplexityCheckSymbols,error:!0},{label:SHARED_TEXT.passwordComplexityCheckDays,error:!0}]:[]];return jsxRuntime.exports.jsx("form",Object.assign({onSubmit:e=>{e.preventDefault()}},{children:jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,spacing:6,mt:3},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,sm:o?12:7,xs:12},{children:[jsxRuntime.exports.jsx(FormControl,Object.assign({fullWidth:!0,sx:{mb:6}},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"rp-password-field",required:!0,type:"password",id:"password",label:"Password",variant:"outlined",value:l,onChange:e=>c(e.target.value),error:s,autoComplete:"off",disabled:r})})),jsxRuntime.exports.jsx(FormControl,Object.assign({fullWidth:!0},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"rp-password-confirm-field",required:!0,type:"password",id:"confirm-password",label:"Confirm Password",variant:"outlined",value:u,onChange:e=>p(e.target.value),autoComplete:"off",error:!m&&!!u,helperText:!m&&u&&SHARED_TEXT.passwordsNotMatching,disabled:r})})),h&&jsxRuntime.exports.jsx(Alert,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:h}))]})),t&&jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,sm:o?12:5,xs:12},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",className:n.h6},{children:SHARED_TEXT.passwordRequirements})),jsxRuntime.exports.jsx("ul",Object.assign({className:n.requirements,"data-testid":"rp-requirements-list"},{children:f.map((e,t)=>jsxRuntime.exports.jsx("li",Object.assign({className:classNames({requirementError:!0===e.error})},{children:e.label}),"pwd-requirement-"+t))}))]})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12,justifyContent:"center",display:"flex"},{children:jsxRuntime.exports.jsx(LoadingButton,Object.assign({"data-testid":"rp-password-submit-button",variant:"contained",disableElevation:!0,size:"large",className:n.submitButton,onClick:()=>{lodash.exports.isEmpty(l)||lodash.exports.isEmpty(u)||!m||e(l)},loading:a,disabled:r},{children:SHARED_TEXT.resetPasswordSubmitButton}))}))]}))}))}!DESCRIPTORS$2||!isCallable$8(NativeSymbol)||"description"in SymbolPrototype&&void 0===NativeSymbol().description||(EmptyStringDescriptionStore={},copyConstructorProperties(SymbolWrapper=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:toString$5(arguments[0]),t=isPrototypeOf$2(SymbolPrototype,this)?new NativeSymbol(e):void 0===e?NativeSymbol():NativeSymbol(e);return""===e&&(EmptyStringDescriptionStore[t]=!0),t},NativeSymbol),(SymbolWrapper.prototype=SymbolPrototype).constructor=SymbolWrapper,NATIVE_SYMBOL="Symbol(test)"==String(NativeSymbol("test")),symbolToString=uncurryThis$9(SymbolPrototype.toString),symbolValueOf=uncurryThis$9(SymbolPrototype.valueOf),regexp=/^Symbol\((.*)\)[^)]+$/,replace$3=uncurryThis$9("".replace),stringSlice$5=uncurryThis$9("".slice),defineProperty(SymbolPrototype,"description",{configurable:!0,get:function(){var e=symbolValueOf(this),t=symbolToString(e);return hasOwn$2(EmptyStringDescriptionStore,e)?"":""===(e=NATIVE_SYMBOL?stringSlice$5(t,7,-1):replace$3(t,regexp,"$1"))?void 0:e}}),$$8({global:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper})),function(e){e.lengthCheck="lengthCheck",e.userNameCheck="userNameCheck",e.dictionaryCheck="dictionaryCheck",e.pastPasswordCheck="pastPasswordCheck",e.passwordComplexityCheck="passwordComplexityCheck",e.passwordChangeFrequencyCheck="passwordChangeFrequencyCheck"}(PwdRequirements=PwdRequirements||{});const DEFAULT_CONTAINER_WIDTH=740,CONTAINER_WIDTH_BREAKPOINT=400;function ResetPasswordWidget({resetToken:t,username:r,requiresPasswordRestriction:e=!1,onSuccess:o,organizationInviteId:n,containerWidth:a=DEFAULT_CONTAINER_WIDTH}){var i=useStyles$4()["classes"];const s=useDispatch(),l=useSelector(authStatusSelector),c=useSelector(authContextSelector);react.exports.useEffect(()=>{"success"===l&&c===AuthContext.ResetPassword&&null!=o&&o()},[l,c]);var u=lodash.exports.isEmpty(t)||lodash.exports.isEmpty(r),p=a<=CONTAINER_WIDTH_BREAKPOINT||!e;return jsxRuntime.exports.jsxs(Box,Object.assign({p:4,id:"reset-password-widget",width:a},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1",className:i.title},{children:SHARED_TEXT.resetPasswordTitle})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2"},{children:SHARED_TEXT.resetPasswordSubHeader})),u&&jsxRuntime.exports.jsx(Alert,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:SHARED_TEXT.invalidTokenOrUsername})),jsxRuntime.exports.jsx(ResetPasswordForm,{onBtnClick:e=>{s(resetPasswordRequest({resetToken:t,username:r,password:e,organizationInviteId:n}))},requiresRestriction:e,disableForm:u,columnView:p})]}))}const ResetPassword=e=>jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ResetPasswordWidget,Object.assign({},e))});var headersHas,headersSet,wrapRequestOptions,RequestConstructor,_g,_defs,fails$7=fails$k,wellKnownSymbol$9=wellKnownSymbol$k,IS_PURE=isPure,ITERATOR$4=wellKnownSymbol$k("iterator"),nativeUrl=!fails$7(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),r=e.searchParams,o="";return e.pathname="c%20d",r.forEach(function(e,t){r.delete("b"),o+=t+e}),IS_PURE&&!e.toJSON||!r.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==r.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!r[ITERATOR$4]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==o||"x"!==new URL("http://x",void 0).host}),defineBuiltIn$4=defineBuiltIn$8,defineBuiltIns$1=function(e,t,r){for(var o in t)defineBuiltIn$4(e,o,t[o],r);return e},isPrototypeOf$1=objectIsPrototypeOf,$TypeError$5=TypeError,anInstance$2=function(e,t){if(isPrototypeOf$1(t,e))return e;throw $TypeError$5("Incorrect invocation")},uncurryThis$8=functionUncurryThis,aCallable$5=aCallable$7,NATIVE_BIND$1=functionBindNative,bind$5=functionUncurryThis(functionUncurryThis.bind),functionBindContext=function(e,t){return aCallable$5(e),void 0===t?e:NATIVE_BIND$1?bind$5(e,t):function(){return e.apply(t,arguments)}},classof$4=classof$6,getMethod$4=getMethod$6,Iterators$1=iterators,wellKnownSymbol$8=wellKnownSymbol$k,ITERATOR$3=wellKnownSymbol$k("iterator"),getIteratorMethod$3=function(e){if(null!=e)return getMethod$4(e,ITERATOR$3)||getMethod$4(e,"@@iterator")||Iterators$1[classof$4(e)]},call$d=functionCall,aCallable$4=aCallable$7,anObject$a=anObject$g,tryToString$2=tryToString$4,getIteratorMethod$2=getIteratorMethod$3,$TypeError$4=TypeError,getIterator$2=function(e,t){var r=arguments.length<2?getIteratorMethod$2(e):t;if(aCallable$4(r))return anObject$a(call$d(r,e));throw $TypeError$4(tryToString$2(e)+" is not iterable")},$TypeError$3=TypeError,validateArgumentsLength$2=function(e,t){if(e<t)throw $TypeError$3("Not enough arguments");return e},toPropertyKey=toPropertyKey$3,definePropertyModule$1=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$5,createProperty$1=function(e,t,r){t=toPropertyKey(t);t in e?definePropertyModule$1.f(e,t,createPropertyDescriptor$1(0,r)):e[t]=r},toAbsoluteIndex=toAbsoluteIndex$2,lengthOfArrayLike$1=lengthOfArrayLike$3,createProperty=createProperty$1,$Array=Array,max$1=Math.max,arraySliceSimple=function(e,t,r){for(var o=lengthOfArrayLike$1(e),n=toAbsoluteIndex(t,o),a=toAbsoluteIndex(void 0===r?o:r,o),i=$Array(max$1(a-n,0)),s=0;n<a;n++,s++)createProperty(i,s,e[n]);return i.length=s,i},arraySlice$2=arraySliceSimple,floor$1=Math.floor,mergeSort=function(e,t){var r=e.length,o=floor$1(r/2);return r<8?insertionSort(e,t):merge(e,mergeSort(arraySlice$2(e,0,o),t),mergeSort(arraySlice$2(e,o),t),t)},insertionSort=function(e,t){for(var r,o,n=e.length,a=1;a<n;){for(r=e[o=a];o&&0<t(e[o-1],r);)e[o]=e[--o];o!==a++&&(e[o]=r)}return e},merge=function(e,t,r,o){for(var n=t.length,a=r.length,i=0,s=0;i<n||s<a;)e[i+s]=i<n&&s<a?o(t[i],r[s])<=0?t[i++]:r[s++]:i<n?t[i++]:r[s++];return e},arraySort$1=mergeSort,$$7=_export,global$c=global$o,call$c=functionCall,uncurryThis$7=functionUncurryThis,DESCRIPTORS$1=descriptors,USE_NATIVE_URL=nativeUrl,defineBuiltIn$3=defineBuiltIn$8,defineBuiltIns=defineBuiltIns$1,setToStringTag$1=setToStringTag$4,createIteratorConstructor=createIteratorConstructor$2,InternalStateModule$1=internalState,anInstance$1=anInstance$2,isCallable$7=isCallable$o,hasOwn$1=hasOwnProperty_1,bind$4=functionBindContext,classof$3=classof$6,anObject$9=anObject$g,isObject$2=isObject$9,$toString=toString$7,create$1=objectCreate,createPropertyDescriptor=createPropertyDescriptor$5,getIterator$1=getIterator$2,getIteratorMethod$1=getIteratorMethod$3,validateArgumentsLength$1=validateArgumentsLength$2,wellKnownSymbol$7=wellKnownSymbol$k,arraySort=mergeSort,ITERATOR$2=wellKnownSymbol$k("iterator"),URL_SEARCH_PARAMS="URLSearchParams",URL_SEARCH_PARAMS_ITERATOR=URL_SEARCH_PARAMS+"Iterator",setInternalState$1=InternalStateModule$1.set,getInternalParamsState=InternalStateModule$1.getterFor(URL_SEARCH_PARAMS),getInternalIteratorState=InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR),getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,safeGetBuiltIn=function(e){var t;return DESCRIPTORS$1?(t=getOwnPropertyDescriptor$1(global$c,e))&&t.value:global$c[e]},nativeFetch=safeGetBuiltIn("fetch"),NativeRequest=safeGetBuiltIn("Request"),Headers$1=safeGetBuiltIn("Headers"),RequestPrototype=NativeRequest&&NativeRequest.prototype,HeadersPrototype=Headers$1&&Headers$1.prototype,RegExp$1=global$c.RegExp,TypeError$2=global$c.TypeError,decodeURIComponent$1=global$c.decodeURIComponent,encodeURIComponent=global$c.encodeURIComponent,charAt$4=uncurryThis$7("".charAt),join=uncurryThis$7([].join),push$1=uncurryThis$7([].push),replace$2=uncurryThis$7("".replace),shift=uncurryThis$7([].shift),splice=uncurryThis$7([].splice),split=uncurryThis$7("".split),stringSlice$4=uncurryThis$7("".slice),plus=/\+/g,sequences=Array(4),percentSequence=function(e){return sequences[e-1]||(sequences[e-1]=RegExp$1("((?:%[\\da-f]{2}){"+e+"})","gi"))},percentDecode=function(t){try{return decodeURIComponent$1(t)}catch(e){return t}},deserialize=function(e){var t=replace$2(e,plus," "),r=4;try{return decodeURIComponent$1(t)}catch(e){for(;r;)t=replace$2(t,percentSequence(r--),percentDecode);return t}},find=/[!'()~]|%20/g,replacements={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(e){return replacements[e]},serialize=function(e){return replace$2(encodeURIComponent(e),find,replacer)},URLSearchParamsIterator=createIteratorConstructor(function(e,t){setInternalState$1(this,{type:URL_SEARCH_PARAMS_ITERATOR,iterator:getIterator$1(getInternalParamsState(e).entries),kind:t})},"Iterator",function(){var e=getInternalIteratorState(this),t=e.kind,e=e.iterator.next(),r=e.value;return e.done||(e.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),e},!0),URLSearchParamsState=function(e){this.entries=[],this.url=null,void 0!==e&&(isObject$2(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===charAt$4(e,0)?stringSlice$4(e,1):e:$toString(e)))},URLSearchParamsConstructor=(URLSearchParamsState.prototype={type:URL_SEARCH_PARAMS,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,o,n,a,i,s=getIteratorMethod$1(e);if(s)for(r=(t=getIterator$1(e,s)).next;!(o=call$c(r,t)).done;){if(n=(o=getIterator$1(anObject$9(o.value))).next,(a=call$c(n,o)).done||(i=call$c(n,o)).done||!call$c(n,o).done)throw TypeError$2("Expected sequence with length 2");push$1(this.entries,{key:$toString(a.value),value:$toString(i.value)})}else for(var l in e)hasOwn$1(e,l)&&push$1(this.entries,{key:l,value:$toString(e[l])})},parseQuery:function(e){if(e)for(var t,r=split(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(t=split(t,"="),push$1(this.entries,{key:deserialize(shift(t)),value:deserialize(join(t,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],o=0;o<t.length;)e=t[o++],push$1(r,serialize(e.key)+"="+serialize(e.value));return join(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}},function(){anInstance$1(this,URLSearchParamsPrototype),setInternalState$1(this,new URLSearchParamsState(0<arguments.length?arguments[0]:void 0))}),URLSearchParamsPrototype=URLSearchParamsConstructor.prototype,anObject$8=(defineBuiltIns(URLSearchParamsPrototype,{append:function(e,t){validateArgumentsLength$1(arguments.length,2);var r=getInternalParamsState(this);push$1(r.entries,{key:$toString(e),value:$toString(t)}),r.updateURL()},delete:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this),r=t.entries,o=$toString(e),n=0;n<r.length;)r[n].key===o?splice(r,n,1):n++;t.updateURL()},get:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),o=0;o<t.length;o++)if(t[o].key===r)return t[o].value;return null},getAll:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),o=[],n=0;n<t.length;n++)t[n].key===r&&push$1(o,t[n].value);return o},has:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),o=0;o<t.length;)if(t[o++].key===r)return!0;return!1},set:function(e,t){validateArgumentsLength$1(arguments.length,1);for(var r,o=getInternalParamsState(this),n=o.entries,a=!1,i=$toString(e),s=$toString(t),l=0;l<n.length;l++)(r=n[l]).key===i&&(a?splice(n,l--,1):(a=!0,r.value=s));a||push$1(n,{key:i,value:s}),o.updateURL()},sort:function(){var e=getInternalParamsState(this);arraySort(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=getInternalParamsState(this).entries,o=bind$4(e,1<arguments.length?arguments[1]:void 0),n=0;n<r.length;)o((t=r[n++]).value,t.key,this)},keys:function(){return new URLSearchParamsIterator(this,"keys")},values:function(){return new URLSearchParamsIterator(this,"values")},entries:function(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0}),defineBuiltIn$3(URLSearchParamsPrototype,ITERATOR$2,URLSearchParamsPrototype.entries,{name:"entries"}),defineBuiltIn$3(URLSearchParamsPrototype,"toString",function(){return getInternalParamsState(this).serialize()},{enumerable:!0}),setToStringTag$1(URLSearchParamsConstructor,URL_SEARCH_PARAMS),$$7({global:!0,constructor:!0,forced:!USE_NATIVE_URL},{URLSearchParams:URLSearchParamsConstructor}),!USE_NATIVE_URL&&isCallable$7(Headers$1)&&(headersHas=uncurryThis$7(HeadersPrototype.has),headersSet=uncurryThis$7(HeadersPrototype.set),wrapRequestOptions=function(e){if(isObject$2(e)){var t,r=e.body;if(classof$3(r)===URL_SEARCH_PARAMS)return t=e.headers?new Headers$1(e.headers):new Headers$1,headersHas(t,"content-type")||headersSet(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),create$1(e,{body:createPropertyDescriptor(0,$toString(r)),headers:createPropertyDescriptor(0,t)})}return e},isCallable$7(nativeFetch)&&$$7({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return nativeFetch(e,1<arguments.length?wrapRequestOptions(arguments[1]):{})}}),isCallable$7(NativeRequest))&&((RequestPrototype.constructor=RequestConstructor=function(e){return anInstance$1(this,RequestPrototype),new NativeRequest(e,1<arguments.length?wrapRequestOptions(arguments[1]):{})}).prototype=RequestPrototype,$$7({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:RequestConstructor})),anObject$g),regexpFlags$1=function(){var e=anObject$8(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$6=fails$k,global$b=global$o,$RegExp$2=global$o.RegExp,UNSUPPORTED_Y$1=fails$6(function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),MISSED_STICKY=UNSUPPORTED_Y$1||fails$6(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$1||fails$6(function(){var e=$RegExp$2("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),regexpStickyHelpers={BROKEN_CARET:BROKEN_CARET,MISSED_STICKY:MISSED_STICKY,UNSUPPORTED_Y:UNSUPPORTED_Y$1},fails$5=fails$k,global$a=global$o,$RegExp$1=global$o.RegExp,regexpUnsupportedDotAll=fails$5(function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),fails$4=fails$k,global$9=global$o,$RegExp=global$o.RegExp,regexpUnsupportedNcg=fails$4(function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),call$b=functionCall,uncurryThis$6=functionUncurryThis,toString$4=toString$7,regexpFlags=regexpFlags$1,stickyHelpers=regexpStickyHelpers,shared=shared$4.exports,create=objectCreate,getInternalState=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$3=uncurryThis$6("".charAt),indexOf=uncurryThis$6("".indexOf),replace$1=uncurryThis$6("".replace),stringSlice$3=uncurryThis$6("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call$b(nativeExec,e,"a"),call$b(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y=stickyHelpers.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG,regexpExec$2=patchedExec=PATCH?function(e){var t,r,o,n,a,i,s=this,l=getInternalState(s),e=toString$4(e),c=l.raw;if(c)return c.lastIndex=s.lastIndex,p=call$b(patchedExec,c,e),s.lastIndex=c.lastIndex,p;var u=l.groups,c=UNSUPPORTED_Y&&s.sticky,p=call$b(regexpFlags,s),l=s.source,d=0,$=e;if(c&&(p=replace$1(p,"y",""),-1===indexOf(p,"g")&&(p+="g"),$=stringSlice$3(e,s.lastIndex),0<s.lastIndex&&(!s.multiline||s.multiline&&"\n"!==charAt$3(e,s.lastIndex-1))&&(l="(?: "+l+")",$=" "+$,d++),t=new RegExp("^(?:"+l+")",p)),NPCG_INCLUDED&&(t=new RegExp("^"+l+"$(?!\\s)",p)),UPDATES_LAST_INDEX_WRONG&&(r=s.lastIndex),o=call$b(nativeExec,c?t:s,$),c?o?(o.input=stringSlice$3(o.input,d),o[0]=stringSlice$3(o[0],d),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),NPCG_INCLUDED&&o&&1<o.length&&call$b(nativeReplace,o[0],t,function(){for(n=1;n<arguments.length-2;n++)void 0===arguments[n]&&(o[n]=void 0)}),o&&u)for(o.groups=a=create(null),n=0;n<u.length;n++)a[(i=u[n])[0]]=o[i[1]];return o}:patchedExec,$$6=_export,exec$1=regexpExec$2,uncurryThis$5=(_export({target:"RegExp",proto:!0,forced:/./.exec!==exec$1},{exec:exec$1}),functionUncurryThis),defineBuiltIn$2=defineBuiltIn$8,regexpExec$1=regexpExec$2,fails$3=fails$k,wellKnownSymbol$6=wellKnownSymbol$k,createNonEnumerableProperty=createNonEnumerableProperty$5,SPECIES$3=wellKnownSymbol$6("species"),RegExpPrototype=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(r,e,t,o){var i,n=wellKnownSymbol$6(r),s=!fails$3(function(){var e={};return e[n]=function(){return 7},7!=""[r](e)}),a=s&&!fails$3(function(){var e=!1,t=/a/;return"split"===r&&((t={constructor:{}}).constructor[SPECIES$3]=function(){return t},t.flags="",t[n]=/./[n]),t.exec=function(){return e=!0,null},t[n](""),!e});s&&a&&!t||(i=uncurryThis$5(/./[n]),a=e(n,""[r],function(e,t,r,o,n){var e=uncurryThis$5(e),a=t.exec;return a===regexpExec$1||a===RegExpPrototype.exec?s&&!n?{done:!0,value:i(t,r,o)}:{done:!0,value:e(r,t,o)}:{done:!1}}),defineBuiltIn$2(String.prototype,r,a[0]),defineBuiltIn$2(RegExpPrototype,n,a[1])),o&&createNonEnumerableProperty(RegExpPrototype[n],"sham",!0)},sameValue$1=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},call$a=functionCall,anObject$7=anObject$g,isCallable$6=isCallable$o,classof$2=classofRaw$1,regexpExec=regexpExec$2,$TypeError$2=TypeError,regexpExecAbstract=function(e,t){var r=e.exec;if(isCallable$6(r))return null!==(r=call$a(r,e,t))&&anObject$7(r),r;if("RegExp"===classof$2(e))return call$a(regexpExec,e,t);throw $TypeError$2("RegExp#exec called on incompatible receiver")},call$9=functionCall,fixRegExpWellKnownSymbolLogic$2=fixRegexpWellKnownSymbolLogic,anObject$6=anObject$g,requireObjectCoercible$3=requireObjectCoercible$7,sameValue=sameValue$1,toString$3=toString$7,getMethod$3=getMethod$6,regExpExec$2=regexpExecAbstract,NATIVE_BIND=(fixRegexpWellKnownSymbolLogic("search",function(o,n,a){return[function(e){var t=requireObjectCoercible$3(this),r=null==e?void 0:getMethod$3(e,o);return r?call$9(r,e,t):new RegExp(e)[o](toString$3(t))},function(e){var t=anObject$6(this),e=toString$3(e),r=a(n,t,e);return r.done?r.value:(r=t.lastIndex,sameValue(r,0)||(t.lastIndex=0),e=regExpExec$2(t,e),sameValue(t.lastIndex,r)||(t.lastIndex=r),null===e?-1:e.index)}]}),functionBindNative),FunctionPrototype=Function.prototype,apply$2=FunctionPrototype.apply,call$8=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND?call$8.bind(apply$2):function(){return call$8.apply(apply$2,arguments)}),uncurryThis$4=functionUncurryThis,toIntegerOrInfinity$1=toIntegerOrInfinity$4,toString$2=toString$7,requireObjectCoercible$2=requireObjectCoercible$7,charAt$2=uncurryThis$4("".charAt),charCodeAt=uncurryThis$4("".charCodeAt),stringSlice$2=uncurryThis$4("".slice),createMethod=function(n){return function(e,t){var r,e=toString$2(requireObjectCoercible$2(e)),t=toIntegerOrInfinity$1(t),o=e.length;return t<0||o<=t?n?"":void 0:(r=charCodeAt(e,t))<55296||56319<r||t+1===o||(o=charCodeAt(e,t+1))<56320||57343<o?n?charAt$2(e,t):r:n?stringSlice$2(e,t,t+2):o-56320+(r-55296<<10)+65536}},stringMultibyte={codeAt:createMethod(!1),charAt:createMethod(!0)},charAt$1=stringMultibyte.charAt,advanceStringIndex$2=function(e,t,r){return t+(r?charAt$1(e,t).length:1)},uncurryThis$3=functionUncurryThis,toObject=toObject$4,floor=Math.floor,charAt=uncurryThis$3("".charAt),replace=uncurryThis$3("".replace),stringSlice$1=uncurryThis$3("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(a,i,s,l,c,e){var u=s+a.length,p=l.length,t=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==c&&(c=toObject(c),t=SUBSTITUTION_SYMBOLS),replace(e,t,function(e,t){var r;switch(charAt(t,0)){case"$":return"$";case"&":return a;case"`":return stringSlice$1(i,0,s);case"'":return stringSlice$1(i,u);case"<":r=c[stringSlice$1(t,1,-1)];break;default:var o,n=+t;if(0==n)return e;if(p<n)return 0!==(o=floor(n/10))&&o<=p?void 0===l[o-1]?charAt(t,1):l[o-1]+charAt(t,1):e;r=l[n-1]}return void 0===r?"":r})},apply$1=functionApply,call$7=functionCall,uncurryThis$2=functionUncurryThis,fixRegExpWellKnownSymbolLogic$1=fixRegexpWellKnownSymbolLogic,fails$2=fails$k,anObject$5=anObject$g,isCallable$5=isCallable$o,toIntegerOrInfinity=toIntegerOrInfinity$4,toLength$1=toLength$3,toString$1=toString$7,requireObjectCoercible$1=requireObjectCoercible$7,advanceStringIndex$1=advanceStringIndex$2,getMethod$2=getMethod$6,getSubstitution=getSubstitution$1,regExpExec$1=regexpExecAbstract,wellKnownSymbol$5=wellKnownSymbol$k,REPLACE=wellKnownSymbol$k("replace"),max=Math.max,min=Math.min,concat=uncurryThis$2([].concat),push=uncurryThis$2([].push),stringIndexOf=uncurryThis$2("".indexOf),stringSlice=uncurryThis$2("".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$2(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),call$6=(fixRegExpWellKnownSymbolLogic$1("replace",function(e,y,b){var x=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(e,t){var r=requireObjectCoercible$1(this),o=null==e?void 0:getMethod$2(e,REPLACE);return o?call$7(o,e,r,t):call$7(y,toString$1(r),e,t)},function(e,t){var r=anObject$5(this),o=toString$1(e);if("string"==typeof t&&-1===stringIndexOf(t,x)&&-1===stringIndexOf(t,"$<")){e=b(y,r,o,t);if(e.done)return e.value}for(var n,a=isCallable$5(t),i=(a||(t=toString$1(t)),r.global),s=(i&&(n=r.unicode,r.lastIndex=0),[]);null!==(p=regExpExec$1(r,o))&&(push(s,p),i);)""===toString$1(p[0])&&(r.lastIndex=advanceStringIndex$1(o,toLength$1(r.lastIndex),n));for(var l="",c=0,u=0;u<s.length;u++){for(var p,d=toString$1((p=s[u])[0]),$=max(min(toIntegerOrInfinity(p.index),o.length),0),h=[],g=1;g<p.length;g++)push(h,maybeToString(p[g]));var m=p.groups,f=a?(f=concat([d],h,$,o),void 0!==m&&push(f,m),toString$1(apply$1(t,void 0,f))):getSubstitution(d,o,$,h,m,t);c<=$&&(l+=stringSlice(o,c,$)+f,c=$+d.length)}return l+stringSlice(o,c)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE),functionCall),fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,anObject$4=anObject$g,toLength=toLength$3,toString=toString$7,requireObjectCoercible=requireObjectCoercible$7,getMethod$1=getMethod$6,advanceStringIndex=advanceStringIndex$2,regExpExec=regexpExecAbstract;fixRegexpWellKnownSymbolLogic("match",function(o,s,l){return[function(e){var t=requireObjectCoercible(this),r=null==e?void 0:getMethod$1(e,o);return r?call$6(r,e,t):new RegExp(e)[o](toString(t))},function(e){var t=anObject$4(this),r=toString(e),e=l(s,t,r);if(e.done)return e.value;if(!t.global)return regExpExec(t,r);for(var o=t.unicode,n=[],a=t.lastIndex=0;null!==(i=regExpExec(t,r));){var i=toString(i[0]);""===(n[a]=i)&&(t.lastIndex=advanceStringIndex(r,toLength(t.lastIndex),o)),a++}return 0===a?null:n}]});const EmailSharedText={emailLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-email-input-label",defaultMessage:"Email",description:"Label Email"}),continueLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-email-continue-button",defaultMessage:"Continue",description:"Continue Button"}),emailErrorState:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-email-input-field-error-state-label",defaultMessage:"This is an invalid email",description:"Email error state label"}),emptyEmailErrorMsg:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-empty-email-input-field-error-state-label",defaultMessage:"Email is required",description:"Empty email error state label"})},useStyles$3=makeStyles()(()=>({emailWrapper:{display:"flex",flexDirection:"column",alignItems:"center",fontFamily:"Nunito","& button":{textTransform:"none",marginTop:"20px",fontSize:"18px",lineHeight:"24px",fontFamily:"Nunito",fontWeight:"600"},"& input":{fontFamily:"Nunito",lineHeight:"22px",color:"#2A323C"},"& .Sdk-MuiOutlinedInput-root":{"&:hover fieldset":{border:"1px solid #DADFE8"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8"},"&.Mui-error.Mui-focused fieldset":{borderColor:"#d32f2f"}},"& .Sdk-MuiFormControl-root .MuiInputLabel-root.Mui-focused":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiInputLabel-outlined":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiFormLabel-root .MuiInputLabel-root":{color:"#9CA8B4"},"& .Sdk-Mui-focused .MuiInputLabel-outlined":{color:"#9CA8B4"},"& .Sdk-Mui-error":{color:"#d32f2f !important"}},emailField:{width:"368px",height:"52px"},continueBtn:{width:"368px",height:"56px"}})),EmailInput=({onNextStep:e,email:t,setEmail:r,isLoading:o,buttonText:n})=>{var a=useStyles$3()["classes"];const[i,s]=react.exports.useState(!1);var{emailLabel:l,emailErrorState:c,emptyEmailErrorMsg:u}=EmailSharedText,c=i?t?c:u:l;const p=()=>{d(t)&&e?(s(!1),e()):s(!0)};const d=e=>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,}))$/);return jsxRuntime.exports.jsxs(Box,Object.assign({className:a.emailWrapper},{children:[jsxRuntime.exports.jsx(TextField,{id:"os-auth-email-input-field","data-testid":"os-auth-email-input-field",label:c,InputProps:{type:"email"},variant:"outlined",value:t,autoComplete:"email",autoFocus:!0,className:a.emailField,error:i,onChange:e=>{e=e.target.value;i&&s(!1),r(e)},onKeyDown:e=>{"Enter"===e.key&&p()}}),n&&jsxRuntime.exports.jsx(LoadingButton,Object.assign({color:"primary",variant:"contained",onClick:p,className:a.continueBtn,"data-testid":"os-auth-email-continue-btn",loading:o},{children:n}))]}))},useStyles$2=makeStyles()(()=>({passwordWrapper:{fontFamily:"Nunito","& input":{fontFamily:"Nunito",lineHeight:"22px",color:"#2A323C"},"& .Sdk-MuiOutlinedInput-root":{"&:hover fieldset":{border:"1px solid #DADFE8"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8"}},"& .Sdk-MuiFormControl-root .MuiInputLabel-root.Mui-focused":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiInputLabel-outlined":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiFormLabel-root .MuiInputLabel-rootd":{color:"#9CA8B4"}}})),PasswordInput=({password:e,onPasswordChange:t,errorMessage:r,onPressEnter:o,autoFocus:n=!0})=>{var a=useStyles$2()["classes"];const[i,s]=react.exports.useState(!1),[l,c]=react.exports.useState("Password");react.exports.useEffect(()=>{r?c(r):c("Password")},[r]);return jsxRuntime.exports.jsx(Box,Object.assign({className:a.passwordWrapper},{children:jsxRuntime.exports.jsxs(FormControl,Object.assign({sx:{width:"100%"},variant:"outlined"},{children:[jsxRuntime.exports.jsx(InputLabel,Object.assign({htmlFor:"outlined-adornment-password",style:{color:r?"#d32f2f":"#9CA8B4"}},{children:l})),jsxRuntime.exports.jsx(OutlinedInput,{id:"outlined-adornment-password","data-testid":"os-auth-password-input-field",type:i?"text":"password",onChange:e=>{e=e.target.value;t(e)},value:e,autoFocus:n,autoComplete:"password",endAdornment:jsxRuntime.exports.jsx(InputAdornment,Object.assign({position:"end"},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({"aria-label":"toggle password visibility",onClick:()=>s(e=>!e),onMouseDown:e=>{e.preventDefault()},edge:"end"},{children:i?jsxRuntime.exports.jsx(default_1$1,{}):jsxRuntime.exports.jsx(default_1,{})}))})),error:!!r,label:l,onKeyDown:e=>{"Enter"===e.key&&o()}})]}))}))},useStyles$1=makeStyles()(e=>({selectWrapper:{position:"absolute",right:"40px",top:"26px"},selectMenu:{marginTop:e.spacing(1),width:"164px",borderRadius:"10px !important",ul:{padding:"5px"},li:{padding:"10px 8px",borderRadius:"4px"}}})),destination=[{label:"aiWARE - US",value:"https://aiware2.us-1.veritone.com/ui/auth/login"},{label:"aiWARE - CA",value:"https://aiware2.ca-1.veritone.com/ui/auth/login"},{label:"aiWARE - UK",value:"https://aiware2.uk-1.veritone.com/ui/auth/login"},{label:"aiWARE - US Gov 1",value:"https://aiware2.us-gov-1.veritone.com/ui/auth/login"},{label:"aiWARE - US Gov 2",value:"https://aiware2.us-gov-2.veritone.com/ui/auth/login"},{label:"aiWARE - Deloitte",value:"https://aiware2.us-2.veritone.com/ui/auth/login"}],DestinationDropdown=({handleDestination:t})=>{var e=useStyles$1()["classes"];const[r,o]=react.exports.useState(destination[0].value);return jsxRuntime.exports.jsx(Box,Object.assign({className:e.selectWrapper},{children:jsxRuntime.exports.jsx(Select,Object.assign({name:"destination-dropdown",value:r,onChange:e=>{e=e.target.value;o(e),t(e)},renderValue:e=>{return jsxRuntime.exports.jsxs(Box,Object.assign({sx:{display:"flex",alignItems:"center",gap:.2}},{children:[jsxRuntime.exports.jsx(Location,{sx:{width:"18px",height:"18px",color:"#555F7C"}}),jsxRuntime.exports.jsx("span",{children:(t=e,null==(e=destination.find(e=>e.value===t))?void 0:e.label)})]}));var t},sx:{color:"#2A323C",fontFamily:"Nunito",fontSize:"12px",lineHeight:"16px",fontWeight:"400",width:"164px",height:"36px","& .Sdk-MuiSelect-select":{paddingLeft:"8px"},"&.MuiOutlinedInput-root":{"& fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"},"&:hover fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"}}},MenuProps:{classes:{paper:e.selectMenu}}},{children:destination.map(e=>jsxRuntime.exports.jsx(MenuItem,Object.assign({value:e.value,sx:{color:"#2A323C",fontFamily:"Nunito",fontSize:"12px",lineHeight:"16px",fontWeight:"400",letterSpacing:"-1.30385e-09px"}},{children:e.label}),e.label))}))}))};function _extends$1(){return(_extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,o=arguments[t];for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var _path,_path2,_path3,SvgAiwareLogo=function(e){return react.exports.createElement("svg",_extends$1({width:270,height:48,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),_g=_g||react.exports.createElement("g",{clipPath:"url(#aiware_logo_svg__a)"},react.exports.createElement("path",{d:"M0 30.967c0-.99.173-1.906.52-2.751a7.888 7.888 0 0 1 1.453-2.28 6.677 6.677 0 0 1 2.18-1.521 6.167 6.167 0 0 1 2.63-.58h17.583v-7.457H6.897V9.247H27.591l1.126 2.238 1.267 2.356 1.2 2.537V47.8h-6.818V40.67l-.857 1.883-1.267 2.798-1.126 2.45H6.784c-.923 0-1.8-.18-2.63-.543a7.49 7.49 0 0 1-2.181-1.52 7.888 7.888 0 0 1-1.454-2.28A7.463 7.463 0 0 1 0 40.669v-9.702Zm6.784 9.702h17.582v-9.702H6.784v9.702ZM49.735 11.603V47.8h-6.818V11.603h6.818ZM42.57 0h7.51v7.421h-7.51V0Z",fill:"#307FE2"}),react.exports.createElement("path",{d:"M0 30.967c0-.99.173-1.906.52-2.751a7.888 7.888 0 0 1 1.453-2.28 6.677 6.677 0 0 1 2.18-1.521 6.167 6.167 0 0 1 2.63-.58h17.583v-7.457H6.897V9.247H27.591l1.126 2.238 1.267 2.356 1.2 2.537V47.8h-6.818V40.67l-.857 1.883-1.267 2.798-1.126 2.45H6.784c-.923 0-1.8-.18-2.63-.543a7.49 7.49 0 0 1-2.181-1.52 7.888 7.888 0 0 1-1.454-2.28A7.463 7.463 0 0 1 0 40.669v-9.702Zm6.784 9.702h17.582v-9.702H6.784v9.702ZM49.735 11.603V47.8h-6.818V11.603h6.818ZM42.57 0h7.51v7.421h-7.51V0Z",fill:"#307FE2"}),react.exports.createElement("path",{d:"M74.734 47.837 61.658 0h6.538l10.142 38.063L88.448 0h6.539l10.11 38.063L115.239 0h6.538l-13.076 47.837h-7.176l-9.791-35.861-9.823 35.86h-7.177ZM147.26 0l17.637 47.837h-6.538l-2.025-5.505-2.025-5.504-2.52-6.838-2.54 6.838h-15.575l-4.051 11.009h-6.538L140.722 0h6.538Zm-11.099 29.99h15.628l-7.782-21.083-7.846 21.083ZM208.879 17.08c0 6.672-2.722 10.474-8.165 11.409l8.611 19.348h-7.24l-8.483-19.115h-14.321v19.115h-6.538V0h25.037c7.399 0 11.099 3.88 11.099 11.642v5.438Zm-29.598 4.803h18.148c1.743 0 2.998-.4 3.763-1.2.766-.801 1.149-2.113 1.149-3.937v-4.77c0-1.824-.383-3.136-1.149-3.937-.765-.8-2.02-1.2-3.763-1.2h-18.148v15.044ZM219.818 0h33.329v6.839h-26.791v13.677h22.868v6.838h-22.868v13.644h26.791v6.839h-33.329V0ZM257.019 41.225h4.73v.884h-1.942v5.302h-.845v-5.302h-1.943v-.884Zm8.797 6.186-2.206-4.534v4.534h-.846v-6.186h.924l2.252 4.659 2.256-4.659h.919v6.186h-.841v-4.534l-2.207 4.534h-.251Z",fill:"#333F48"})),_defs=_defs||react.exports.createElement("defs",null,react.exports.createElement("clipPath",{id:"aiware_logo_svg__a"},react.exports.createElement("path",{fill:"#fff",d:"M0 0h270v48H0z"}))))};function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,o=arguments[t];for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var SvgVeritoneLogo=function(e){return react.exports.createElement("svg",_extends({width:180,height:34,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),_path=_path||react.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.626 0 0 13.076 12.175 34h13.319L5.626 0ZM21.703 0l5.164 8.86L32.044 0h-10.34Z",fill:"#728FBE"}),_path2=_path2||react.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.044 0 12.176 34h13.318L37.67 13.076 32.044 0Z",fill:"#325491"}),_path3=_path3||react.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M161.768 10.063v6.02h9.982v1.979h-9.982v6.046h11.175v1.952h-13.21V8.111h13.21v1.952h-11.175Zm-5.114-1.952V26.06h-2.36L143.2 10.904V26.06h-2.034V8.111h2.36l11.094 15.102V8.111h2.034Zm-27.569 16.187c2.133 0 3.86-.696 5.181-2.088 1.265-1.338 1.898-3.046 1.898-5.124 0-2.08-.633-3.787-1.898-5.125-1.321-1.392-3.048-2.088-5.181-2.088-2.134 0-3.861.696-5.181 2.088-1.266 1.338-1.899 3.046-1.899 5.125s.633 3.786 1.899 5.124c1.32 1.392 3.047 2.088 5.181 2.088Zm0-16.404c2.676 0 4.873.895 6.591 2.684 1.682 1.736 2.523 3.905 2.523 6.508 0 2.602-.841 4.772-2.523 6.507-1.718 1.79-3.915 2.684-6.591 2.684-2.677 0-4.874-.895-6.592-2.684-1.681-1.735-2.522-3.905-2.522-6.507 0-2.603.841-4.772 2.522-6.508 1.718-1.79 3.915-2.684 6.592-2.684Zm-9.676 2.17h-6.266V26.06h-2.034V10.063h-6.266V8.111h14.566v1.952ZM99.663 26.06h2.035V8.11h-2.035v17.95ZM84.701 16.97V9.955h4.963c2.743 0 4.134 1.18 4.134 3.507 0 2.326-1.39 3.506-4.135 3.506h-4.962Zm6.956 1.647.193-.05c1.255-.334 2.256-.95 2.974-1.833.717-.882 1.08-1.983 1.08-3.271 0-1.638-.568-2.954-1.688-3.91-1.127-.959-2.65-1.445-4.525-1.445H82.71v17.95H84.7v-7.24h4.726l5.13 7.24h2.364l-5.264-7.44ZM68.577 10.063v6.02h9.982v1.979h-9.982v6.046h11.175v1.952h-13.21V8.111h13.21v1.952H68.577ZM63.942 8.111l-7.687 17.95h-2.333L46.236 8.11h2.224l6.629 15.645L61.717 8.11h2.225ZM176.505 24.727h.236c.276 0 .499-.092.499-.315 0-.197-.144-.328-.459-.328-.132 0-.224.013-.276.026v.617Zm-.013 1.207h-.499v-2.152c.197-.026.472-.066.827-.066.407 0 .591.066.735.171a.54.54 0 0 1 .224.46c0 .262-.197.432-.447.511v.026c.21.066.315.237.381.526.066.328.118.446.157.524h-.525c-.065-.078-.105-.262-.171-.524-.039-.224-.17-.329-.446-.329h-.236v.854Zm-1.327-1.115c0 .958.723 1.72 1.681 1.72.933.012 1.641-.762 1.641-1.707 0-.958-.708-1.732-1.667-1.732-.932 0-1.655.774-1.655 1.719Zm3.874 0c0 1.207-.972 2.165-2.206 2.165s-2.219-.958-2.219-2.165.985-2.152 2.232-2.152c1.221 0 2.193.944 2.193 2.152Z",fill:"#142E44"}))};const Footer=()=>jsxRuntime.exports.jsxs(Box,Object.assign({sx:{textAlign:"center"}},{children:[jsxRuntime.exports.jsx(SvgVeritoneLogo,{}),jsxRuntime.exports.jsxs(Typography,Object.assign({sx:{marginBottom:"18px",marginTop:"50px",fontFamily:"Nunito",fontSize:"10px",lineHeight:"16px",color:"#5C6269"}},{children:["© ",(new Date).getFullYear()," AiWARE, All Rights Reserved."," ",jsxRuntime.exports.jsxs("a",Object.assign({href:"https://www.veritone.com/terms",style:{color:"#0C53B0",textDecoration:"none"}},{children:["Terms of Service"," "]}))]}))]})),PageContainer=({children:e})=>jsxRuntime.exports.jsx(Container,{children:jsxRuntime.exports.jsxs(Box,Object.assign({sx:{display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"space-between",height:"100vh"}},{children:[jsxRuntime.exports.jsxs(Box,{children:[jsxRuntime.exports.jsx(Box,Object.assign({sx:{marginTop:"178px",marginBottom:"50px",textAlign:"center"}},{children:jsxRuntime.exports.jsx(SvgAiwareLogo,{})})),e]}),jsxRuntime.exports.jsx(Footer,{})]}))}),Header=({text:e,subText:t})=>jsxRuntime.exports.jsxs(Box,Object.assign({sx:{marginBottom:"30px",textAlign:"center"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({sx:{fontFamily:"Nunito",fontSize:"22px",lineHeight:"18px",letterSpacing:"-1.30385e-09px",color:"#2A323C"}},{children:e})),t&&jsxRuntime.exports.jsx(Typography,Object.assign({sx:{fontFamily:"Nunito",fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269",marginTop:"10px",width:"368px"}},{children:t}))]})),useStyles=makeStyles()(()=>({btnWrapper:{display:"flex",alignItems:"center",width:"100%",justifyContent:"center",flexDirection:"column"},openIdLogo:{width:"24px",height:"24px",marginRight:"8px"},openIdBtn:{"&.MuiButton-root":{width:"368px",marginTop:"20px",height:"56px",border:"1px solid #DADFE8",borderRadius:"4px",fontFamily:"Nunito",fontStyle:"normal",fontWeight:"600",fontSize:"18px",lineHeight:"24px",letterSpacing:"-1.30385e-09px",textTransform:"none","&:hover, &:focus":{border:"1px solid #DADFE8",color:"#2A323C"}}}})),OpenID=({openIdItems:e})=>{const r=useStyles()["classes"];return jsxRuntime.exports.jsx(Box,Object.assign({className:r.btnWrapper},{children:jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:e&&e.map(t=>jsxRuntime.exports.jsxs(Button,Object.assign({variant:"outlined","data-testid":"os-auth-openId-button",className:r.openIdBtn,onClick:()=>{var e;e=t.loginUrl,window.location.href=e},sx:{backgroundColor:t.loginButtonStyle&&t.loginButtonStyle.btnColor?t.loginButtonStyle.btnColor:"#FFFFFF","&:hover, &:focus":{backgroundColor:t.loginButtonStyle&&t.loginButtonStyle.btnColor?t.loginButtonStyle.btnColor:"#FFFFFF"}}},{children:[t.loginButtonStyle&&t.loginButtonStyle.btnLogo&&jsxRuntime.exports.jsx("img",{className:r.openIdLogo,alt:"icon",src:t.loginButtonStyle.btnLogo}),jsxRuntime.exports.jsx("span",Object.assign({style:{marginTop:"3px",color:t.loginButtonStyle&&t.loginButtonStyle.btnTextColor?t.loginButtonStyle.btnTextColor:"#2A323C"}},{children:t.name}))]}),t.connectId))})}))};var location,defer,channel,port,classof$1=classofRaw$1,global$8=global$o,engineIsNode="process"==classofRaw$1(global$o.process),getBuiltIn$3=getBuiltIn$8,definePropertyModule=objectDefineProperty,wellKnownSymbol$4=wellKnownSymbol$k,DESCRIPTORS=descriptors,SPECIES$2=wellKnownSymbol$k("species"),setSpecies$1=function(e){var e=getBuiltIn$3(e),t=definePropertyModule.f;DESCRIPTORS&&e&&!e[SPECIES$2]&&t(e,SPECIES$2,{configurable:!0,get:function(){return this}})},uncurryThis$1=functionUncurryThis,fails$1=fails$k,isCallable$4=isCallable$o,classof=classof$6,getBuiltIn$2=getBuiltIn$8,inspectSource$1=inspectSource$4,noop=function(){},empty=[],construct=getBuiltIn$8("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis$1(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$4(e))return!1;try{return construct(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$4(e))return!1;switch(classof(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec(constructorRegExp,inspectSource$1(e))}catch(e){return!0}},isConstructor$1=(isConstructorLegacy.sham=!0,!construct||fails$1(function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){e=!0})||e})?isConstructorLegacy:isConstructorModern),isConstructor=isConstructor$1,tryToString$1=tryToString$4,$TypeError$1=TypeError,aConstructor$1=function(e){if(isConstructor(e))return e;throw $TypeError$1(tryToString$1(e)+" is not a constructor")},anObject$3=anObject$g,aConstructor=aConstructor$1,wellKnownSymbol$3=wellKnownSymbol$k,SPECIES$1=wellKnownSymbol$k("species"),speciesConstructor$1=function(e,t){var e=anObject$3(e).constructor;return void 0===e||null==(e=anObject$3(e)[SPECIES$1])?t:aConstructor(e)},uncurryThis=functionUncurryThis,arraySlice$1=functionUncurryThis([].slice),userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$7=global$o,apply=functionApply,bind$3=functionBindContext,isCallable$3=isCallable$o,hasOwn=hasOwnProperty_1,fails=fails$k,html=html$2,arraySlice=arraySlice$1,createElement=documentCreateElement$2,validateArgumentsLength=validateArgumentsLength$2,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$7.setImmediate,clear=global$7.clearImmediate,process$2=global$7.process,Dispatch=global$7.Dispatch,Function$1=global$7.Function,MessageChannel=global$7.MessageChannel,String$1=global$7.String,counter=0,queue$1={},ONREADYSTATECHANGE="onreadystatechange";try{location=global$7.location}catch(e){}var flush,head,last,notify$1,toggle,node,promise,then,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,run=function(e){var t;hasOwn(queue$1,e)&&(t=queue$1[e],delete queue$1[e],t())},runner=function(e){return function(){run(e)}},listener=function(e){run(e.data)},post=function(e){global$7.postMessage(String$1(e),location.protocol+"//"+location.host)},task$1=(set&&clear||(set=function(e){validateArgumentsLength(arguments.length,1);var t=isCallable$3(e)?e:Function$1(e),r=arraySlice(arguments,1);return queue$1[++counter]=function(){apply(t,void 0,r)},defer(counter),counter},clear=function(e){delete queue$1[e]},IS_NODE$3?defer=function(e){process$2.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=listener,defer=bind$3(port.postMessage,port)):global$7.addEventListener&&isCallable$3(global$7.postMessage)&&!global$7.importScripts&&location&&"file:"!==location.protocol&&!fails(post)?(defer=post,global$7.addEventListener("message",listener,!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}),userAgent$1=engineUserAgent,global$6=global$o,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&void 0!==global$6.Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$5=global$o,bind$2=functionBindContext,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$5.MutationObserver||global$5.WebKitMutationObserver,document$2=global$5.document,process$1=global$5.process,Promise$1=global$5.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor(global$5,"queueMicrotask"),queueMicrotask=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value,microtask$1=(queueMicrotask||(flush=function(){var e,t;for(IS_NODE$2&&(e=process$1.domain)&&e.exit();head;){t=head.fn,head=head.next;try{t()}catch(e){throw head?notify$1():last=void 0,e}}last=void 0,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$2(promise.then,promise),function(){then(flush)}):IS_NODE$2?function(){process$1.nextTick(flush)}:(macrotask=bind$2(macrotask,global$5),function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),function(){node.data=toggle=!toggle})),queueMicrotask||function(e){e={fn:e,next:void 0};last&&(last.next=e),head||(head=e,notify$1()),last=e}),global$4=global$o,hostReportErrors$1=function(e,t){var r=global$4.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))},perform$3=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Queue$1=function(){this.head=null,this.tail=null},queue=(Queue$1.prototype={add:function(e){e={item:e,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},Queue$1),global$3=global$o,promiseNativeConstructor=global$o.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$2=global$o,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$2=isCallable$o,isForced=isForced_1,inspectSource=inspectSource$4,wellKnownSymbol$2=wellKnownSymbol$k,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,SPECIES=(NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,wellKnownSymbol$2("species")),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$2(global$2.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$3=aCallable$7,PromiseCapability=function(e){var r,o;this.promise=new e(function(e,t){if(void 0!==r||void 0!==o)throw TypeError("Bad Promise constructor");r=e,o=t}),this.resolve=aCallable$3(r),this.reject=aCallable$3(o)},$$5=(newPromiseCapability$2.f=function(e){return new PromiseCapability(e)},_export),IS_NODE=engineIsNode,global$1=global$o,call$5=functionCall,defineBuiltIn$1=defineBuiltIn$8,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$4,setSpecies=setSpecies$1,aCallable$2=aCallable$7,isCallable$1=isCallable$o,isObject$1=isObject$9,anInstance=anInstance$2,speciesConstructor=speciesConstructor$1,task=task$1.set,microtask=microtask$1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue,InternalStateModule=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.getterFor(PROMISE),setInternalState=InternalStateModule.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$1=global$1.TypeError,document$1=global$1.document,process=global$1.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$1.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$1(e)||!isCallable$1(t=e.then))&&t},callReaction=function(e,t){var r,o,n,a=t.value,i=t.state==FULFILLED,s=i?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(i||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?r=a:(u&&u.enter(),r=s(a),u&&(u.exit(),n=!0)),r===e.promise?c(TypeError$1("Promise-chain cycle")):(o=isThenable(r))?call$5(o,r,l,c):l(r)):c(a)}catch(e){u&&!n&&u.exit(),c(e)}},notify=function(r,o){r.notified||(r.notified=!0,microtask(function(){for(var e,t=r.reactions;e=t.get();)callReaction(e,r);r.notified=!1,o&&!r.rejection&&onUnhandled(r)}))},dispatchEvent=function(e,t,r){var o;DISPATCH_EVENT?((o=document$1.createEvent("Event")).promise=t,o.reason=r,o.initEvent(e,!1,!0),global$1.dispatchEvent(o)):o={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT&&(t=global$1["on"+e])?t(o):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",r)},onUnhandled=function(o){call$5(task,global$1,function(){var e=o.facade,t=o.value,r=isUnhandled(o);if(r&&(r=perform$2(function(){IS_NODE?process.emit("unhandledRejection",t,e):dispatchEvent(UNHANDLED_REJECTION,e,t)}),o.rejection=IS_NODE||isUnhandled(o)?UNHANDLED:HANDLED,r.error))throw r.value})},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(t){call$5(task,global$1,function(){var e=t.facade;IS_NODE?process.emit("rejectionHandled",e):dispatchEvent(REJECTION_HANDLED,e,t.value)})},bind$1=function(t,r,o){return function(e){t(r,e,o)}},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 TypeError$1("Promise can't be resolved itself");var o=isThenable(e);o?microtask(function(){var t={done:!1};try{call$5(o,e,bind$1(internalResolve,t,r),bind$1(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(this,PromisePrototype),aCallable$2(e),call$5(Internal,this);var t=getInternalPromiseState(this);try{e(bind$1(internalResolve,t),bind$1(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$1(PromisePrototype,"then",function(e,t){var r=getInternalPromiseState(this),o=newPromiseCapability$1(speciesConstructor(this,PromiseConstructor));return r.parent=!0,o.ok=!isCallable$1(e)||e,o.fail=isCallable$1(t)&&t,o.domain=IS_NODE?process.domain:void 0,r.state==PENDING?r.reactions.add(o):microtask(function(){callReaction(o,r)}),o.promise}),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$1(internalResolve,t),this.reject=bind$1(internalReject,t)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},isCallable$1(NativePromiseConstructor$2))&&NativePromisePrototype$1!==Object.prototype){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$1(NativePromisePrototype$1,"then",function(e,t){var r=this;return new PromiseConstructor(function(e,t){call$5(nativeThen,r,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch(e){}setPrototypeOf&&setPrototypeOf(NativePromisePrototype$1,PromisePrototype)}$$5({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var wellKnownSymbol$1=wellKnownSymbol$k,Iterators=iterators,ITERATOR$1=wellKnownSymbol$k("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$1=function(e){return void 0!==e&&(Iterators.Array===e||ArrayPrototype[ITERATOR$1]===e)},call$4=functionCall,anObject$2=anObject$g,getMethod=getMethod$6,iteratorClose$1=function(e,t,r){var o,n;anObject$2(e);try{if(!(o=getMethod(e,"return"))){if("throw"===t)throw r;return r}o=call$4(o,e)}catch(e){n=!0,o=e}if("throw"===t)throw r;if(n)throw o;return anObject$2(o),r},bind=functionBindContext,call$3=functionCall,anObject$1=anObject$g,tryToString=tryToString$4,isArrayIteratorMethod=isArrayIteratorMethod$1,lengthOfArrayLike=lengthOfArrayLike$3,isPrototypeOf=objectIsPrototypeOf,getIterator=getIterator$2,getIteratorMethod=getIteratorMethod$3,iteratorClose=iteratorClose$1,$TypeError=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$2=function(e,t,r){function o(e){return a&&iteratorClose(a,"normal",e),new Result(!0,e)}function n(e){return d?(anObject$1(e),g?m(e[0],e[1],o):m(e[0],e[1])):g?m(e,o):m(e)}var a,i,s,l,c,u,p=r&&r.that,d=!(!r||!r.AS_ENTRIES),$=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),g=!(!r||!r.INTERRUPTED),m=bind(t,p);if($)a=e.iterator;else if(h)a=e;else{if(!(r=getIteratorMethod(e)))throw $TypeError(tryToString(e)+" is not iterable");if(isArrayIteratorMethod(r)){for(i=0,s=lengthOfArrayLike(e);i<s;i++)if((l=n(e[i]))&&isPrototypeOf(ResultPrototype,l))return l;return new Result(!1)}a=getIterator(e,r)}for(c=($?e:a).next;!(u=call$3(c,a)).done;){try{l=n(u.value)}catch(e){iteratorClose(a,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf(ResultPrototype,l))return l}return new Result(!1)},wellKnownSymbol=wellKnownSymbol$k,ITERATOR=wellKnownSymbol$k("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(e){}var method,checkCorrectnessOfIteration$1=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var r=!1;try{var o={};o[ITERATOR]=function(){return{next:function(){return{done:r=!0}}}},e(o)}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(){})}),$$4=_export,call$2=functionCall,aCallable$1=aCallable$7,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration,$$3=(_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 o=aCallable$1(s.resolve),n=[],a=0,i=1;iterate$1(e,function(e){var t=a++,r=!1;i++,call$2(o,s,e).then(function(e){r||(r=!0,n[t]=e,--i)||l(n)},c)}),--i||l(n)});return r.error&&c(r.value),t.promise}}),_export),FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$8,isCallable=isCallable$o,defineBuiltIn=defineBuiltIn$8,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,$$2=($$3({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable(NativePromiseConstructor)&&(method=getBuiltIn$1("Promise").prototype.catch,NativePromisePrototype.catch!==method)&&defineBuiltIn(NativePromisePrototype,"catch",method,{unsafe:!0}),_export),call$1=functionCall,aCallable=aCallable$7,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,$$1=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function(e){var r=this,o=newPromiseCapabilityModule$1.f(r),n=o.reject,t=perform(function(){var t=aCallable(r.resolve);iterate(e,function(e){call$1(t,r,e).then(o.resolve,n)})});return t.error&&n(t.value),o.promise}}),_export),call=functionCall,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR,anObject=($$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return call(t.reject,void 0,e),t.promise}}),anObject$g),isObject=isObject$9,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(e,t){return anObject(e),isObject(t)&&t.constructor===e?t:((0,(e=newPromiseCapability.f(e)).resolve)(t),e.promise)},$=_export,getBuiltIn=getBuiltIn$8,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;getBuiltIn("Promise"),$({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}});const getGlobalProviders=()=>__awaiter(void 0,void 0,void 0,function*(){let t=[];try{var e=yield fetch(generateApiUrlFromHost()+"/api/admin/openid");t=200===e.status?(yield e.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",e),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),getOrgOpenIdProviders=r=>__awaiter(void 0,void 0,void 0,function*(){let t=[];try{var e=yield fetch(generateApiUrlFromHost()+"/api/admin/openid/org/"+r);t=200===e.status?(yield e.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",e),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),linkUserToOidAndLogin=(e,t,r)=>fetch(generateApiUrlFromHost()+"/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})}),userLoginMutation=(r,o)=>__awaiter(void 0,void 0,void 0,function*(){var e=generateApiUrlFromHost(!0),t={query:`
1
+ import{r as react,i as createSvgIcon,k as interopRequireDefault,j as jsxRuntime,F as FormattedMessage,m as makeStyles,A as AIWareIntlProvider,l as useDispatch,n as useSelector,o as authStatusSelector,p as authContextSelector,q as AuthContext,t as lodash,B as Box,T as Typography,v as Alert,w as authErrorMessage,G as Grid,x as FormControl,y as TextField,z as classNames,L as LoadingButton,C as resetPasswordRequest,I as InputLabel,O as OutlinedInput,D as InputAdornment,E as IconButton,H as Select,J as Location,M as MenuItem,K as Button,N as Divider}from"./js-core.esm.js";import{d as default_1$1}from"./js-core.esm5.js";import{C as Container}from"./js-core.esm6.js";function _extends$3(){return(_extends$3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,o=arguments[t];for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var Action,ResultType,DataRouterHook,DataRouterStateHook,AwaitRenderStatus;function invariant(e,t){if(!1===e||null==e)throw new Error(t)}function warning(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function parsePath(e){var t,r={};return e&&(0<=(t=e.indexOf("#"))&&(r.hash=e.substr(t),e=e.substr(0,t)),0<=(t=e.indexOf("?"))&&(r.search=e.substr(t),e=e.substr(0,t)),e)&&(r.pathname=e),r}function matchRoutes(e,t,r){void 0===r&&(r="/");var o=stripBasename(("string"==typeof t?parsePath(t):t).pathname||"/",r);if(null==o)return null;var n=flattenRoutes(e);rankRouteBranches(n);let a=null;for(let e=0;null==a&&e<n.length;++e)a=matchRouteBranch(n[e],safelyDecodeURI(o));return a}function flattenRoutes(e,o,n,a){void 0===o&&(o=[]),void 0===n&&(n=[]),void 0===a&&(a="");let i=(e,t,r)=>{r={relativePath:void 0===r?e.path||"":r,caseSensitive:!0===e.caseSensitive,childrenIndex:t,route:e},r.relativePath.startsWith("/")&&(invariant(r.relativePath.startsWith(a),'Absolute route path "'+r.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),r.relativePath=r.relativePath.slice(a.length)),t=joinPaths([a,r.relativePath]),r=n.concat(r);e.children&&0<e.children.length&&(invariant(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+t+'".'),flattenRoutes(e.children,o,r,t)),null==e.path&&!e.index||o.push({path:t,score:computeScore(t,e.index),routesMeta:r})};return e.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(var o of explodeOptionalSegments(e.path))i(e,t,o);else i(e,t)}),o}function explodeOptionalSegments(t){var e=t.split("/");if(0===e.length)return[];var[e,...r]=e,o=e.endsWith("?");let n=e.replace(/\?$/,"");return 0===r.length?o?[n,""]:[n]:(e=explodeOptionalSegments(r.join("/")),(r=[]).push(...e.map(e=>""===e?n:[n,e].join("/"))),o&&r.push(...e),r.map(e=>t.startsWith("/")&&""===e?"/":e))}function rankRouteBranches(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:compareIndexes(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Action=Action||{}),function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(ResultType=ResultType||{});const paramRe=/^:\w+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=e=>"*"===e;function computeScore(e,t){e=e.split("/");let r=e.length;return e.some(isSplat)&&(r+=splatPenalty),t&&(r+=indexRouteValue),e.filter(e=>!isSplat(e)).reduce((e,t)=>e+(paramRe.test(t)?dynamicSegmentValue:""===t?emptySegmentValue:staticSegmentValue),r)}function compareIndexes(e,r){return e.length===r.length&&e.slice(0,-1).every((e,t)=>e===r[t])?e[e.length-1]-r[r.length-1]:0}function matchRouteBranch(e,t){var r=e["routesMeta"],o={};let n="/";var a=[];for(let e=0;e<r.length;++e){var i=r[e],s=e===r.length-1,l="/"===n?t:t.slice(n.length)||"/",s=matchPath({path:i.relativePath,caseSensitive:i.caseSensitive,end:s},l);if(!s)return null;Object.assign(o,s.params);l=i.route;a.push({params:o,pathname:joinPaths([n,s.pathname]),pathnameBase:normalizePathname(joinPaths([n,s.pathnameBase])),route:l}),"/"!==s.pathnameBase&&(n=joinPaths([n,s.pathnameBase]))}return a}function matchPath(e,t){var[r,o]=compilePath((e="string"==typeof e?{path:e,caseSensitive:!1,end:!0}:e).path,e.caseSensitive,e.end),t=t.match(r);if(!t)return null;let n=t[0],a=n.replace(/(.)\/+$/,"$1"),i=t.slice(1);return{params:o.reduce((e,t,r)=>{var o;return"*"===t&&(o=i[r]||"",a=n.slice(0,n.length-o.length).replace(/(.)\/+$/,"$1")),e[t]=safelyDecodeURIComponent(i[r]||"",t),e},{}),pathname:n,pathnameBase:a,pattern:e}}function compilePath(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),warning("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let o=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(e,t)=>(o.push(t),"/([^\\/]+)"));return e.endsWith("*")?(o.push("*"),n+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?n+="\\/*$":""!==e&&"/"!==e&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),o]}function safelyDecodeURI(t){try{return decodeURI(t)}catch(e){return warning(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function safelyDecodeURIComponent(t,r){try{return decodeURIComponent(t)}catch(e){return warning(!1,'The value for the URL param "'+r+'" will not be decoded because the string "'+t+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function stripBasename(e,t){var r;return"/"===t?e:!e.toLowerCase().startsWith(t.toLowerCase())||(t=t.endsWith("/")?t.length-1:t.length,(r=e.charAt(t))&&"/"!==r)?null:e.slice(t)||"/"}function resolvePath(e,t){void 0===t&&(t="/");var{pathname:e,search:r="",hash:o=""}="string"==typeof e?parsePath(e):e;return{pathname:e?e.startsWith("/")?e:resolvePathname(e,t):t,search:normalizeSearch(r),hash:normalizeHash(o)}}function resolvePathname(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?1<r.length&&r.pop():"."!==e&&r.push(e)}),1<r.length?r.join("/"):"/"}function getInvalidPathError(e,t,r,o){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(o)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function getPathContributingMatches(e){return e.filter((e,t)=>0===t||e.route.path&&0<e.route.path.length)}function resolveTo(e,t,r,o){void 0===o&&(o=!1);let n;"string"==typeof e?n=parsePath(e):(invariant(!(n=_extends$3({},e)).pathname||!n.pathname.includes("?"),getInvalidPathError("?","pathname","search",n)),invariant(!n.pathname||!n.pathname.includes("#"),getInvalidPathError("#","pathname","hash",n)),invariant(!n.search||!n.search.includes("#"),getInvalidPathError("#","search","hash",n)));var e=""===e||""===n.pathname,a=e?"/":n.pathname;let i;if(o||null==a)i=r;else{let e=t.length-1;if(a.startsWith("..")){for(var s=a.split("/");".."===s[0];)s.shift(),--e;n.pathname=s.join("/")}i=0<=e?t[e]:"/"}o=resolvePath(n,i),t=a&&"/"!==a&&a.endsWith("/"),e=(e||"."===a)&&r.endsWith("/");return o.pathname.endsWith("/")||!t&&!e||(o.pathname+="/"),o}const joinPaths=e=>e.join("/").replace(/\/\/+/g,"/"),normalizePathname=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",normalizeHash=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function isRouteErrorResponse(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const validMutationMethodsArr=["post","put","patch","delete"];function _extends$2(){return(_extends$2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,o=arguments[t];for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}[...validMutationMethodsArr];const DataRouterContext=react.exports.createContext(null),DataRouterStateContext=react.exports.createContext(null),NavigationContext=react.exports.createContext(null),LocationContext=react.exports.createContext(null),RouteContext=react.exports.createContext({outlet:null,matches:[],isDataRoute:!1}),RouteErrorContext=react.exports.createContext(null);function useInRouterContext(){return null!=react.exports.useContext(LocationContext)}function useLocation(){return useInRouterContext()||invariant(!1),react.exports.useContext(LocationContext).location}function useIsomorphicLayoutEffect(e){react.exports.useContext(NavigationContext).static||react.exports.useLayoutEffect(e)}function useNavigate(){var e=react.exports.useContext(RouteContext)["isDataRoute"];return(e?useNavigateStable:useNavigateUnstable)()}function useNavigateUnstable(){useInRouterContext()||invariant(!1);let{basename:r,navigator:o}=react.exports.useContext(NavigationContext);var e=react.exports.useContext(RouteContext)["matches"];let n=useLocation()["pathname"],a=JSON.stringify(getPathContributingMatches(e).map(e=>e.pathnameBase)),i=react.exports.useRef(!1);return useIsomorphicLayoutEffect(()=>{i.current=!0}),react.exports.useCallback(function(e,t){void 0===t&&(t={}),i.current&&("number"==typeof e?o.go(e):(e=resolveTo(e,JSON.parse(a),n,"path"===t.relative),"/"!==r&&(e.pathname="/"===e.pathname?r:joinPaths([r,e.pathname])),(t.replace?o.replace:o.push)(e,t.state,t)))},[r,o,a,n])}function useRoutes(e,t){return useRoutesImpl(e,t)}function useRoutesImpl(e,t,r){useInRouterContext()||invariant(!1);let o=react.exports.useContext(NavigationContext)["navigator"];var n=react.exports.useContext(RouteContext)["matches"],a=n[n.length-1];let i=a?a.params:{},s=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;a=useLocation();let l;var c=(l=t?(u="string"==typeof t?parsePath(t):t,"/"===s||null!=(c=u.pathname)&&c.startsWith(s)||invariant(!1),u):a).pathname||"/",u=matchRoutes(e,{pathname:"/"===s?c:c.slice(s.length)||"/"}),a=_renderMatches(u&&u.map(e=>Object.assign({},e,{params:Object.assign({},i,e.params),pathname:joinPaths([s,(o.encodeLocation?o.encodeLocation(e.pathname):e).pathname]),pathnameBase:"/"===e.pathnameBase?s:joinPaths([s,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),n,r);return t&&a?react.exports.createElement(LocationContext.Provider,{value:{location:_extends$2({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:Action.Pop}},a):a}function DefaultErrorComponent(){var e=useRouteError(),t=isRouteErrorResponse(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),e=e instanceof Error?e.stack:null;return react.exports.createElement(react.exports.Fragment,null,react.exports.createElement("h2",null,"Unexpected Application Error!"),react.exports.createElement("h3",{style:{fontStyle:"italic"}},t),e?react.exports.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},e):null,null)}const defaultErrorElement=react.exports.createElement(DefaultErrorComponent,null);class RenderErrorBoundary extends react.exports.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?react.exports.createElement(RouteContext.Provider,{value:this.props.routeContext},react.exports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RenderedRoute(e){var{routeContext:e,match:t,children:r}=e,o=react.exports.useContext(DataRouterContext);return o&&o.static&&o.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=t.route.id),react.exports.createElement(RouteContext.Provider,{value:e},r)}function _renderMatches(e,s,l){if(void 0===s&&(s=[]),void 0===l&&(l=null),null==e){if(null==l||!l.errors)return null;e=l.matches}let c=e,u=null==l?void 0:l.errors;return null!=u&&(0<=(e=c.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id])))||invariant(!1),c=c.slice(0,Math.min(c.length,e+1))),c.reduceRight((t,r,e)=>{let o=r.route.id?null==u?void 0:u[r.route.id]:null,n=null,a=(l&&(n=r.route.errorElement||defaultErrorElement),s.concat(c.slice(0,e+1)));var i=()=>{let e;return e=o?n:r.route.Component?react.exports.createElement(r.route.Component,null):r.route.element||t,react.exports.createElement(RenderedRoute,{match:r,routeContext:{outlet:t,matches:a,isDataRoute:null!=l},children:e})};return l&&(r.route.ErrorBoundary||r.route.errorElement||0===e)?react.exports.createElement(RenderErrorBoundary,{location:l.location,revalidation:l.revalidation,component:n,error:o,children:i(),routeContext:{outlet:null,matches:a,isDataRoute:!0}}):i()},null)}function useDataRouterContext(e){var t=react.exports.useContext(DataRouterContext);return t||invariant(!1),t}function useDataRouterState(e){var t=react.exports.useContext(DataRouterStateContext);return t||invariant(!1),t}function useRouteContext(e){var t=react.exports.useContext(RouteContext);return t||invariant(!1),t}function useCurrentRouteId(e){var t=useRouteContext(),t=t.matches[t.matches.length-1];return t.route.id||invariant(!1),t.route.id}function useRouteError(){var e=react.exports.useContext(RouteErrorContext),t=useDataRouterState(DataRouterStateHook.UseRouteError),r=useCurrentRouteId(DataRouterStateHook.UseRouteError);return e||(null==(e=t.errors)?void 0:e[r])}function useNavigateStable(){let r=useDataRouterContext(DataRouterHook.UseNavigateStable)["router"],o=useCurrentRouteId(DataRouterStateHook.UseNavigateStable),n=react.exports.useRef(!1);return useIsomorphicLayoutEffect(()=>{n.current=!0}),react.exports.useCallback(function(e,t){void 0===t&&(t={}),n.current&&("number"==typeof e?r.navigate(e):r.navigate(e,_extends$2({fromRouteId:o},t)))},[r,o])}function Route(e){invariant(!1)}function Routes(e){var{children:e,location:t}=e;return useRoutes(createRoutesFromChildren(e),t)}function createRoutesFromChildren(e,o){void 0===o&&(o=[]);let n=[];return react.exports.Children.forEach(e,(e,t)=>{var r;react.exports.isValidElement(e)&&(t=[...o,t],e.type===react.exports.Fragment?n.push.apply(n,createRoutesFromChildren(e.props.children,t)):(e.type!==Route&&invariant(!1),e.props.index&&e.props.children&&invariant(!1),r={id:e.props.id||t.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy},e.props.children&&(r.children=createRoutesFromChildren(e.props.children,t)),n.push(r)))}),n}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(DataRouterHook=DataRouterHook||{}),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(DataRouterStateHook=DataRouterStateHook||{}),function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(AwaitRenderStatus=AwaitRenderStatus||{}),new Promise(()=>{});var match,version,store,wmget,wmhas,wmset,set$1,get,has,STATE,activeXDocument,Visibility={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(Visibility,"__esModule",{value:!0}),Visibility.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.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=Visibility.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$o=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$k=function(e){try{return!!e()}catch(e){return!0}},fails$j=fails$k,descriptors=!fails$k(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$i=fails$k,functionBindNative=!fails$k(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$k=Function.prototype.call,functionCall=NATIVE_BIND$3?call$k.bind(call$k):function(){return call$k.apply(call$k,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$3&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$5=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$3(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,bind$6=FunctionPrototype$2.bind,call$j=FunctionPrototype$2.call,uncurryThis$m=NATIVE_BIND$2&&bind$6.bind(call$j,call$j),functionUncurryThis=NATIVE_BIND$2?function(e){return e&&uncurryThis$m(e)}:function(e){return e&&function(){return call$j.apply(e,arguments)}},uncurryThis$l=functionUncurryThis,toString$9=uncurryThis$l({}.toString),stringSlice$6=uncurryThis$l("".slice),classofRaw$1=function(e){return stringSlice$6(toString$9(e),8,-1)},uncurryThis$k=functionUncurryThis,fails$h=fails$k,classof$8=classofRaw$1,$Object$4=Object,split$1=functionUncurryThis("".split),indexedObject=fails$h(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$8(e)?split$1(e,""):$Object$4(e)}:$Object$4,$TypeError$d=TypeError,requireObjectCoercible$7=function(e){if(null==e)throw $TypeError$d("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$6=requireObjectCoercible$7,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$6(e))},isCallable$o=function(e){return"function"==typeof e},isCallable$n=isCallable$o,isObject$9=function(e){return"object"==typeof e?null!==e:isCallable$n(e)},global$n=global$o,isCallable$m=isCallable$o,aFunction=function(e){return isCallable$m(e)?e:void 0},getBuiltIn$8=function(e,t){return arguments.length<2?aFunction(global$n[e]):global$n[e]&&global$n[e][t]},uncurryThis$j=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),getBuiltIn$7=getBuiltIn$8,engineUserAgent=getBuiltIn$8("navigator","userAgent")||"",global$m=global$o,userAgent$3=engineUserAgent,process$3=global$m.process,Deno$1=global$m.Deno,versions=process$3&&process$3.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$g=fails$k,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$g(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$2=nativeSymbol,useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$8,isCallable$l=isCallable$o,isPrototypeOf$3=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$3(t.prototype,$Object$3(e))},$String$3=String,tryToString$4=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$k=isCallable$o,tryToString$3=tryToString$4,$TypeError$c=TypeError,aCallable$7=function(e){if(isCallable$k(e))return e;throw $TypeError$c(tryToString$3(e)+" is not a function")},aCallable$6=aCallable$7,getMethod$6=function(e,t){e=e[t];return null==e?void 0:aCallable$6(e)},call$i=functionCall,isCallable$j=isCallable$o,isObject$8=isObject$9,$TypeError$b=TypeError,ordinaryToPrimitive$1=function(e,t){var r,o;if("string"===t&&isCallable$j(r=e.toString)&&!isObject$8(o=call$i(r,e)))return o;if(isCallable$j(r=e.valueOf)&&!isObject$8(o=call$i(r,e)))return o;if("string"!==t&&isCallable$j(r=e.toString)&&!isObject$8(o=call$i(r,e)))return o;throw $TypeError$b("Can't convert object to primitive value")},shared$4={exports:{}},isPure=!1,global$l=global$o,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$6(global$l,t,{value:r,configurable:!0,writable:!0})}catch(e){global$l[t]=r}return r},global$k=global$o,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$o[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$5=((shared$4.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$7),$Object$2=Object,toObject$4=function(e){return $Object$2(requireObjectCoercible$5(e))},uncurryThis$i=functionUncurryThis,toObject$3=toObject$4,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$3(e),t)},uncurryThis$h=functionUncurryThis,id=0,postfix=Math.random(),toString$8=uncurryThis$h(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$8(++id+postfix,36)},global$j=global$o,shared$3=shared$4.exports,hasOwn$b=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$3("wks"),Symbol$1=global$j.Symbol,symbolFor=Symbol$1&&Symbol$1.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$k=function(e){var t;return hasOwn$b(WellKnownSymbolsStore,e)&&(NATIVE_SYMBOL$1||"string"==typeof WellKnownSymbolsStore[e])||(t="Symbol."+e,NATIVE_SYMBOL$1&&hasOwn$b(Symbol$1,e)?WellKnownSymbolsStore[e]=Symbol$1[e]:WellKnownSymbolsStore[e]=(USE_SYMBOL_AS_UID&&symbolFor?symbolFor:createWellKnownSymbol)(t)),WellKnownSymbolsStore[e]},call$h=functionCall,isObject$7=isObject$9,isSymbol$1=isSymbol$2,getMethod$5=getMethod$6,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$j=wellKnownSymbol$k,$TypeError$a=TypeError,TO_PRIMITIVE=wellKnownSymbol$k("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$7(e)||isSymbol$1(e))return e;var r=getMethod$5(e,TO_PRIMITIVE);if(r){if(r=call$h(r,e,t=void 0===t?"default":t),!isObject$7(r)||isSymbol$1(r))return r;throw $TypeError$a("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$3=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$i=global$o,isObject$6=isObject$9,document$3=global$o.document,EXISTS$1=isObject$6(document$3)&&isObject$6(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$c=descriptors,fails$f=fails$k,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$k(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$b=descriptors,call$g=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$4=createPropertyDescriptor$5,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,hasOwn$a=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$b?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$2(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$a(e,t))return createPropertyDescriptor$4(!call$g(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$a=descriptors,fails$e=fails$k,v8PrototypeDefineBug=descriptors&&fails$k(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$5=isObject$9,$String$2=String,$TypeError$9=TypeError,anObject$g=function(e){if(isObject$5(e))return e;throw $TypeError$9($String$2(e)+" is not an object")},DESCRIPTORS$9=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$f=anObject$g,toPropertyKey$1=toPropertyKey$3,$TypeError$8=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$8=(objectDefineProperty.f=DESCRIPTORS$9?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var o;return anObject$f(e),t=toPropertyKey$1(t),anObject$f(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&(o=$getOwnPropertyDescriptor(e,t))&&o[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:o)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:o)[ENUMERABLE],writable:!1}),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$f(e),t=toPropertyKey$1(t),anObject$f(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$8("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$5=objectDefineProperty,createPropertyDescriptor$3=createPropertyDescriptor$5,createNonEnumerableProperty$5=DESCRIPTORS$8?function(e,t,r){return definePropertyModule$5.f(e,t,createPropertyDescriptor$3(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$2={exports:{}},DESCRIPTORS$7=descriptors,hasOwn$9=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$7&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$9(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$7||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$g=functionUncurryThis,isCallable$i=isCallable$o,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$4=(isCallable$i(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$h=global$o,isCallable$h=isCallable$o,inspectSource$3=inspectSource$4,WeakMap$1=global$o.WeakMap,nativeWeakMap=isCallable$h(WeakMap$1)&&/native code/.test(inspectSource$3(WeakMap$1)),shared$2=shared$4.exports,uid=uid$2,keys=shared$2("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=nativeWeakMap,global$g=global$o,uncurryThis$f=functionUncurryThis,isObject$4=isObject$9,createNonEnumerableProperty$4=createNonEnumerableProperty$5,hasOwn$8=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$3=global$g.TypeError,WeakMap=global$g.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$4(e)&&(e=get(e)).type===t)return e;throw TypeError$3("Incompatible receiver, "+t+" required")}},internalState=(has=NATIVE_WEAK_MAP||shared$1.state?(store=shared$1.state||(shared$1.state=new WeakMap),wmget=uncurryThis$f(store.get),wmhas=uncurryThis$f(store.has),wmset=uncurryThis$f(store.set),set$1=function(e,t){if(wmhas(store,e))throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);return t.facade=e,wmset(store,e,t),t},get=function(e){return wmget(store,e)||{}},function(e){return wmhas(store,e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(e,t){if(hasOwn$8(e,STATE))throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$8(e,STATE)?e[STATE]:{}},function(e){return hasOwn$8(e,STATE)}),{set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor}),fails$d=fails$k,isCallable$g=isCallable$o,hasOwn$7=hasOwnProperty_1,DESCRIPTORS$6=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$4,InternalStateModule$3=internalState,enforceInternalState=InternalStateModule$3.enforce,getInternalState$2=InternalStateModule$3.get,defineProperty$5=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$6&&!fails$d(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$1=makeBuiltIn$2.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$7(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$6?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$7(r,"arity")&&e.length!==r.arity&&defineProperty$5(e,"length",{value:r.arity});try{r&&hasOwn$7(r,"constructor")&&r.constructor?DESCRIPTORS$6&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState(e);return hasOwn$7(r,"source")||(r.source=TEMPLATE.join("string"==typeof t?t:"")),e},isCallable$f=(Function.prototype.toString=makeBuiltIn$1(function(){return isCallable$g(this)&&getInternalState$2(this).source||inspectSource$2(this)},"toString"),isCallable$o),definePropertyModule$4=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$8=function(e,t,r,o){var n=(o=o||{}).enumerable,a=void 0!==o.name?o.name:t;if(isCallable$f(r)&&makeBuiltIn(r,a,o),o.global)n?e[t]=r:defineGlobalProperty$1(t,r);else{try{o.unsafe?e[t]&&(n=!0):delete e[t]}catch(e){}n?e[t]=r:definePropertyModule$4.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$2=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor$2:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$4=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$3=toIntegerOrInfinity$4,max$2=Math.max,min$2=Math.min,toAbsoluteIndex$2=function(e,t){e=toIntegerOrInfinity$3(e);return e<0?max$2(e+t,0):min$2(e,t)},toIntegerOrInfinity$2=toIntegerOrInfinity$4,min$1=Math.min,toLength$3=function(e){return 0<e?min$1(toIntegerOrInfinity$2(e),9007199254740991):0},toLength$2=toLength$3,lengthOfArrayLike$3=function(e){return toLength$2(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$2=lengthOfArrayLike$3,createMethod$1=function(s){return function(e,t,r){var o,n=toIndexedObject$3(e),a=lengthOfArrayLike$2(n),i=toAbsoluteIndex$1(r,a);if(s&&t!=t){for(;i<a;)if((o=n[i++])!=o)return!0}else for(;i<a;i++)if((s||i in n)&&n[i]===t)return s||i||0;return!s&&-1}},arrayIncludes={includes:createMethod$1(!0),indexOf:createMethod$1(!1)},uncurryThis$e=functionUncurryThis,hasOwn$6=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$2=uncurryThis$e([].push),objectKeysInternal=function(e,t){var r,o=toIndexedObject$2(e),n=0,a=[];for(r in o)!hasOwn$6(hiddenKeys$2,r)&&hasOwn$6(o,r)&&push$2(a,r);for(;t.length>n;)!hasOwn$6(o,r=t[n++])||~indexOf$1(a,r)||push$2(a,r);return a},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$8),uncurryThis$d=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$e=anObject$g,concat$2=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$e(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$2(t,r(e)):t},hasOwn$5=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$3=objectDefineProperty,copyConstructorProperties$2=function(e,t,r){for(var o=ownKeys(t),n=definePropertyModule$3.f,a=getOwnPropertyDescriptorModule.f,i=0;i<o.length;i++){var s=o[i];hasOwn$5(e,s)||r&&hasOwn$5(r,s)||n(e,s,a(t,s))}},fails$c=fails$k,isCallable$e=isCallable$o,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$e(t)?fails$c(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,global$f=global$o,getOwnPropertyDescriptor$2=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$3=createNonEnumerableProperty$5,defineBuiltIn$7=defineBuiltIn$8,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced$1=isForced_1,_export=function(e,t){var r,o,n,a=e.target,i=e.global,s=e.stat,l=i?global$f:s?global$f[a]||defineGlobalProperty(a,{}):(global$f[a]||{}).prototype;if(l)for(r in t){if(o=t[r],n=e.dontCallGetSet?(n=getOwnPropertyDescriptor$2(l,r))&&n.value:l[r],!isForced$1(i?r:a+(s?".":"#")+r,e.forced)&&void 0!==n){if(typeof o==typeof n)continue;copyConstructorProperties$1(o,n)}(e.sham||n&&n.sham)&&createNonEnumerableProperty$3(o,"sham",!0),defineBuiltIn$7(l,r,o,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$5=descriptors,uncurryThis$c=functionUncurryThis,call$f=functionCall,fails$b=fails$k,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$2=toObject$4,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat$1=uncurryThis$c([].concat),objectAssign=!$assign||fails$b(function(){var e,t,r,o;return!(!DESCRIPTORS$5||1===$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},o="abcdefghijklmnopqrst",(e={})[r=Symbol()]=7,o.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[r])||objectKeys$1($assign({},t)).join("")!=o})?function(e,t){for(var r=toObject$2(e),o=arguments.length,n=1,a=getOwnPropertySymbolsModule.f,i=propertyIsEnumerableModule.f;n<o;)for(var s,l=IndexedObject(arguments[n++]),c=a?concat$1(objectKeys$1(l),a(l)):objectKeys$1(l),u=c.length,p=0;p<u;)s=c[p++],DESCRIPTORS$5&&!call$f(i,l,s)||(r[s]=l[s]);return r}:$assign,$$c=_export,assign=objectAssign,objectDefineProperties=(_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign}),{}),DESCRIPTORS$4=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$2=objectDefineProperty,anObject$d=anObject$g,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$4&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$d(e);for(var r,o=toIndexedObject$1(t),n=objectKeys(t),a=n.length,i=0;i<a;)definePropertyModule$2.f(e,r=n[i++],o[r]);return e},getBuiltIn$8),html$2=getBuiltIn$8("document","documentElement"),anObject$c=anObject$g,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$c(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),wellKnownSymbol$i=wellKnownSymbol$k,create$3=objectCreate,defineProperty$3=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$i("unscopables"),ArrayPrototype$1=Array.prototype,addToUnscopables$2=(null==ArrayPrototype$1[UNSCOPABLES]&&defineProperty$3(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$3(null)}),function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0}),$$b=_export,$includes=arrayIncludes.includes,fails$a=fails$k,addToUnscopables$1=addToUnscopables$2,BROKEN_ON_SPARSE=fails$k(function(){return!Array(1).includes()}),isObject$3=($$b({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"),isObject$9),classof$7=classofRaw$1,wellKnownSymbol$h=wellKnownSymbol$k,MATCH$1=wellKnownSymbol$k("match"),isRegexp=function(e){var t;return isObject$3(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$7(e))},isRegExp=isRegexp,$TypeError$7=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError$7("The method doesn't accept regular expressions");return e},wellKnownSymbol$g=wellKnownSymbol$k,TO_STRING_TAG$3=wellKnownSymbol$k("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$3]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$d=isCallable$o,classofRaw=classofRaw$1,wellKnownSymbol$f=wellKnownSymbol$k,TO_STRING_TAG$2=wellKnownSymbol$k("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$6=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object$1(e),TO_STRING_TAG$2))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$d(e.callee)?"Arguments":t},classof$5=classof$6,$String$1=String,toString$7=function(e){if("Symbol"===classof$5(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$1(e)},wellKnownSymbol$e=wellKnownSymbol$k,MATCH=wellKnownSymbol$k("match"),correctIsRegexpLogic=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[MATCH]=!1,"/./"[t](r)}catch(e){}}return!1},$$a=_export,uncurryThis$b=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible$4=requireObjectCoercible$7,toString$6=toString$7,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf$1=functionUncurryThis("".indexOf);$$a({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf$1(toString$6(requireObjectCoercible$4(this)),toString$6(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}});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"}),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"}),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."})},generateApiUrlFromHost=(e=!1)=>{var t=window.location.host;if(t.includes("local"))return e?"https://api.stage.us-1.veritone.com/v3/graphql":"https://api.stage.us-1.veritone.com";var t=t.split("."),r=t.findIndex(e=>"dev"===e||"stage"===e);let o="";return o=-1!==r?"veritone"!==t[r+1]?t[r]+"."+t[r+1]:t[r]+".us-1":(r=t.findIndex(e=>"veritone"===e),"aiware2"!==t[r-1]?t[r-1]:"us-1"),e?`https://api.${o}.veritone.com/v3/graphql`:`https://api.${o}.veritone.com`},useStyles$4=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$9=fails$k,correctPrototypeGetter=!fails$k(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$4=hasOwnProperty_1,isCallable$c=isCallable$o,toObject$1=toObject$4,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$4(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$c(t)&&e instanceof t?t.prototype:e instanceof $Object?ObjectPrototype:null)},fails$8=fails$k,isCallable$b=isCallable$o,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$6=defineBuiltIn$8,wellKnownSymbol$d=wellKnownSymbol$k,ITERATOR$7=wellKnownSymbol$k("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),null==IteratorPrototype$2||fails$8(function(){var e={};return IteratorPrototype$2[ITERATOR$7].call(e)!==e})),iteratorsCore=(isCallable$b((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$7])||defineBuiltIn$6(IteratorPrototype$2,ITERATOR$7,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$2=objectDefineProperty.f,hasOwn$3=hasOwnProperty_1,wellKnownSymbol$c=wellKnownSymbol$k,TO_STRING_TAG$1=wellKnownSymbol$k("toStringTag"),setToStringTag$4=function(e,t,r){(e=e&&!r?e.prototype:e)&&!hasOwn$3(e,TO_STRING_TAG$1)&&defineProperty$2(e,TO_STRING_TAG$1,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$2=objectCreate,createPropertyDescriptor$2=createPropertyDescriptor$5,setToStringTag$3=setToStringTag$4,Iterators$4=iterators,returnThis$1=function(){return this},createIteratorConstructor$2=function(e,t,r,o){t+=" Iterator";return e.prototype=create$2(IteratorPrototype$1,{next:createPropertyDescriptor$2(+!o,r)}),setToStringTag$3(e,t,!1),Iterators$4[t]=returnThis$1,e},isCallable$a=isCallable$o,$String=String,$TypeError$6=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$a(e))return e;throw $TypeError$6("Can't set "+$String(e)+" as a prototype")},uncurryThis$a=functionUncurryThis,anObject$b=anObject$g,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=uncurryThis$a(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(e){}return function(e,t){return anObject$b(e),aPossiblePrototype(t),o?r(e,t):e.__proto__=t,e}}():void 0),$$9=_export,call$e=functionCall,FunctionName=functionName,isCallable$9=isCallable$o,createIteratorConstructor$1=createIteratorConstructor$2,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$2=setToStringTag$4,createNonEnumerableProperty$2=createNonEnumerableProperty$5,defineBuiltIn$5=defineBuiltIn$8,wellKnownSymbol$b=wellKnownSymbol$k,Iterators$3=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$6=wellKnownSymbol$b("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator$1=function(e,t,r,o,n,a,i){createIteratorConstructor$1(r,t,o);function s(e){if(e===n&&$)return $;if(!BUGGY_SAFARI_ITERATORS&&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,o=t+" Iterator",u=!1,p=e.prototype,d=p[ITERATOR$6]||p["@@iterator"]||n&&p[n],$=!BUGGY_SAFARI_ITERATORS&&d||s(n),h="Array"==t&&p.entries||d;if(h&&(h=getPrototypeOf(h.call(new e)))!==Object.prototype&&h.next&&(getPrototypeOf(h)!==IteratorPrototype&&(setPrototypeOf$1?setPrototypeOf$1(h,IteratorPrototype):isCallable$9(h[ITERATOR$6])||defineBuiltIn$5(h,ITERATOR$6,returnThis)),setToStringTag$2(h,o,!0)),PROPER_FUNCTION_NAME&&n==VALUES&&d&&d.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$2(p,"name",VALUES):(u=!0,$=function(){return call$e(d,this)})),n)if(l={values:s(VALUES),keys:a?$:s(KEYS),entries:s(ENTRIES)},i)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in p||defineBuiltIn$5(p,c,l[c]);else $$9({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return p[ITERATOR$6]!==$&&defineBuiltIn$5(p,ITERATOR$6,$,{name:n}),Iterators$3[t]=$,l},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$2,Iterators$2=iterators,InternalStateModule$2=internalState,defineProperty$1=objectDefineProperty.f,defineIterator=defineIterator$1,DESCRIPTORS$3=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$2=InternalStateModule$2.set,getInternalState$1=InternalStateModule$2.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState$2(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState$1(this),t=e.target,r=e.kind,o=e.index++;return!t||o>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:o,done:!1}:"values"==r?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS$3&&"values"!==values.name)try{defineProperty$1(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$e=global$o,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$1=createNonEnumerableProperty$5,wellKnownSymbol$a=wellKnownSymbol$k,ITERATOR$5=wellKnownSymbol$a("iterator"),TO_STRING_TAG=wellKnownSymbol$a("toStringTag"),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(t[TO_STRING_TAG]||createNonEnumerableProperty$1(t,TO_STRING_TAG,e),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$e[COLLECTION_NAME]&&global$e[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,symbolToString,symbolValueOf,regexp,replace$3,stringSlice$5,PwdRequirements,$$8=_export,DESCRIPTORS$2=descriptors,global$d=global$o,uncurryThis$9=functionUncurryThis,hasOwn$2=hasOwnProperty_1,isCallable$8=isCallable$o,isPrototypeOf$2=objectIsPrototypeOf,toString$5=toString$7,defineProperty=objectDefineProperty.f,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$d.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;function __rest(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function __awaiter(e,i,s,l){return new(s=s||Promise)(function(r,t){function o(e){try{a(l.next(e))}catch(e){t(e)}}function n(e){try{a(l.throw(e))}catch(e){t(e)}}function a(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(o,n)}a((l=l.apply(e,i||[])).next())})}function ResetPasswordForm({onBtnClick:e,requiresRestriction:t,disableForm:r=!1,columnView:o=!1}){var n=useStyles$4()["classes"],a=useSelector(authStatusSelector);const i=useSelector(authErrorMessage);var s=useSelector(authContextSelector);const[l,c]=react.exports.useState(""),[u,p]=react.exports.useState(""),[d,$]=react.exports.useState({[PwdRequirements.lengthCheck]:null,[PwdRequirements.userNameCheck]:null,[PwdRequirements.dictionaryCheck]:null,[PwdRequirements.pastPasswordCheck]:null,[PwdRequirements.passwordComplexityCheck]:null,[PwdRequirements.passwordChangeFrequencyCheck]:null}),[h,g]=react.exports.useState(null);a="loading"===a&&s===AuthContext.ResetPassword;const m=lodash.exports.isEqual(l,u);s=Object.values(d).includes(!1);react.exports.useEffect(()=>{try{if(i){var e=JSON.parse(i);const t=e["description"],o=__rest(e,["description"]);Object.keys(o).forEach(e=>{var t,r;t=e,r=o[e],$(e=>Object.assign(Object.assign({},e),{[t]:r}))}),g(t)}else g(null)}catch(e){g(i)}finally{p("")}},[i]);var f=[{label:SHARED_TEXT.lengthCheck,error:d[PwdRequirements.lengthCheck]},{label:SHARED_TEXT.pastPasswordCheck,error:d[PwdRequirements.pastPasswordCheck]},{label:SHARED_TEXT.userNameCheck,error:d[PwdRequirements.userNameCheck]},{label:SHARED_TEXT.dictionaryCheck,error:d[PwdRequirements.dictionaryCheck]},...d[PwdRequirements.passwordComplexityCheck]?[{label:SHARED_TEXT.passwordComplexityCheckSymbols,error:!0},{label:SHARED_TEXT.passwordComplexityCheckDays,error:!0}]:[]];return jsxRuntime.exports.jsx("form",Object.assign({onSubmit:e=>{e.preventDefault()}},{children:jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,spacing:6,mt:3},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,sm:o?12:7,xs:12},{children:[jsxRuntime.exports.jsx(FormControl,Object.assign({fullWidth:!0,sx:{mb:6}},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"rp-password-field",required:!0,type:"password",id:"password",label:"Password",variant:"outlined",value:l,onChange:e=>c(e.target.value),error:s,autoComplete:"off",disabled:r})})),jsxRuntime.exports.jsx(FormControl,Object.assign({fullWidth:!0},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"rp-password-confirm-field",required:!0,type:"password",id:"confirm-password",label:"Confirm Password",variant:"outlined",value:u,onChange:e=>p(e.target.value),autoComplete:"off",error:!m&&!!u,helperText:!m&&u&&SHARED_TEXT.passwordsNotMatching,disabled:r})})),h&&jsxRuntime.exports.jsx(Alert,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:h}))]})),t&&jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,sm:o?12:5,xs:12},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",className:n.h6},{children:SHARED_TEXT.passwordRequirements})),jsxRuntime.exports.jsx("ul",Object.assign({className:n.requirements,"data-testid":"rp-requirements-list"},{children:f.map((e,t)=>jsxRuntime.exports.jsx("li",Object.assign({className:classNames({requirementError:!0===e.error})},{children:e.label}),"pwd-requirement-"+t))}))]})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12,justifyContent:"center",display:"flex"},{children:jsxRuntime.exports.jsx(LoadingButton,Object.assign({"data-testid":"rp-password-submit-button",variant:"contained",disableElevation:!0,size:"large",className:n.submitButton,onClick:()=>{lodash.exports.isEmpty(l)||lodash.exports.isEmpty(u)||!m||e(l)},loading:a,disabled:r},{children:SHARED_TEXT.resetPasswordSubmitButton}))}))]}))}))}!DESCRIPTORS$2||!isCallable$8(NativeSymbol)||"description"in SymbolPrototype&&void 0===NativeSymbol().description||(EmptyStringDescriptionStore={},copyConstructorProperties(SymbolWrapper=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:toString$5(arguments[0]),t=isPrototypeOf$2(SymbolPrototype,this)?new NativeSymbol(e):void 0===e?NativeSymbol():NativeSymbol(e);return""===e&&(EmptyStringDescriptionStore[t]=!0),t},NativeSymbol),(SymbolWrapper.prototype=SymbolPrototype).constructor=SymbolWrapper,NATIVE_SYMBOL="Symbol(test)"==String(NativeSymbol("test")),symbolToString=uncurryThis$9(SymbolPrototype.toString),symbolValueOf=uncurryThis$9(SymbolPrototype.valueOf),regexp=/^Symbol\((.*)\)[^)]+$/,replace$3=uncurryThis$9("".replace),stringSlice$5=uncurryThis$9("".slice),defineProperty(SymbolPrototype,"description",{configurable:!0,get:function(){var e=symbolValueOf(this),t=symbolToString(e);return hasOwn$2(EmptyStringDescriptionStore,e)?"":""===(e=NATIVE_SYMBOL?stringSlice$5(t,7,-1):replace$3(t,regexp,"$1"))?void 0:e}}),$$8({global:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper})),function(e){e.lengthCheck="lengthCheck",e.userNameCheck="userNameCheck",e.dictionaryCheck="dictionaryCheck",e.pastPasswordCheck="pastPasswordCheck",e.passwordComplexityCheck="passwordComplexityCheck",e.passwordChangeFrequencyCheck="passwordChangeFrequencyCheck"}(PwdRequirements=PwdRequirements||{});const DEFAULT_CONTAINER_WIDTH=740,CONTAINER_WIDTH_BREAKPOINT=400;function ResetPasswordWidget({resetToken:t,username:r,requiresPasswordRestriction:e=!1,onSuccess:o,organizationInviteId:n,containerWidth:a=DEFAULT_CONTAINER_WIDTH}){var i=useStyles$4()["classes"];const s=useDispatch(),l=useSelector(authStatusSelector),c=useSelector(authContextSelector);react.exports.useEffect(()=>{"success"===l&&c===AuthContext.ResetPassword&&null!=o&&o()},[l,c]);var u=lodash.exports.isEmpty(t)||lodash.exports.isEmpty(r),p=a<=CONTAINER_WIDTH_BREAKPOINT||!e;return jsxRuntime.exports.jsxs(Box,Object.assign({p:4,id:"reset-password-widget",width:a},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1",className:i.title},{children:SHARED_TEXT.resetPasswordTitle})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2"},{children:SHARED_TEXT.resetPasswordSubHeader})),u&&jsxRuntime.exports.jsx(Alert,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:SHARED_TEXT.invalidTokenOrUsername})),jsxRuntime.exports.jsx(ResetPasswordForm,{onBtnClick:e=>{s(resetPasswordRequest({resetToken:t,username:r,password:e,organizationInviteId:n}))},requiresRestriction:e,disableForm:u,columnView:p})]}))}const ResetPassword=e=>jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ResetPasswordWidget,Object.assign({},e))});var headersHas,headersSet,wrapRequestOptions,RequestConstructor,_g,_defs,fails$7=fails$k,wellKnownSymbol$9=wellKnownSymbol$k,IS_PURE=isPure,ITERATOR$4=wellKnownSymbol$k("iterator"),nativeUrl=!fails$7(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),r=e.searchParams,o="";return e.pathname="c%20d",r.forEach(function(e,t){r.delete("b"),o+=t+e}),IS_PURE&&!e.toJSON||!r.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==r.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!r[ITERATOR$4]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==o||"x"!==new URL("http://x",void 0).host}),defineBuiltIn$4=defineBuiltIn$8,defineBuiltIns$1=function(e,t,r){for(var o in t)defineBuiltIn$4(e,o,t[o],r);return e},isPrototypeOf$1=objectIsPrototypeOf,$TypeError$5=TypeError,anInstance$2=function(e,t){if(isPrototypeOf$1(t,e))return e;throw $TypeError$5("Incorrect invocation")},uncurryThis$8=functionUncurryThis,aCallable$5=aCallable$7,NATIVE_BIND$1=functionBindNative,bind$5=functionUncurryThis(functionUncurryThis.bind),functionBindContext=function(e,t){return aCallable$5(e),void 0===t?e:NATIVE_BIND$1?bind$5(e,t):function(){return e.apply(t,arguments)}},classof$4=classof$6,getMethod$4=getMethod$6,Iterators$1=iterators,wellKnownSymbol$8=wellKnownSymbol$k,ITERATOR$3=wellKnownSymbol$k("iterator"),getIteratorMethod$3=function(e){if(null!=e)return getMethod$4(e,ITERATOR$3)||getMethod$4(e,"@@iterator")||Iterators$1[classof$4(e)]},call$d=functionCall,aCallable$4=aCallable$7,anObject$a=anObject$g,tryToString$2=tryToString$4,getIteratorMethod$2=getIteratorMethod$3,$TypeError$4=TypeError,getIterator$2=function(e,t){var r=arguments.length<2?getIteratorMethod$2(e):t;if(aCallable$4(r))return anObject$a(call$d(r,e));throw $TypeError$4(tryToString$2(e)+" is not iterable")},$TypeError$3=TypeError,validateArgumentsLength$2=function(e,t){if(e<t)throw $TypeError$3("Not enough arguments");return e},toPropertyKey=toPropertyKey$3,definePropertyModule$1=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$5,createProperty$1=function(e,t,r){t=toPropertyKey(t);t in e?definePropertyModule$1.f(e,t,createPropertyDescriptor$1(0,r)):e[t]=r},toAbsoluteIndex=toAbsoluteIndex$2,lengthOfArrayLike$1=lengthOfArrayLike$3,createProperty=createProperty$1,$Array=Array,max$1=Math.max,arraySliceSimple=function(e,t,r){for(var o=lengthOfArrayLike$1(e),n=toAbsoluteIndex(t,o),a=toAbsoluteIndex(void 0===r?o:r,o),i=$Array(max$1(a-n,0)),s=0;n<a;n++,s++)createProperty(i,s,e[n]);return i.length=s,i},arraySlice$2=arraySliceSimple,floor$1=Math.floor,mergeSort=function(e,t){var r=e.length,o=floor$1(r/2);return r<8?insertionSort(e,t):merge(e,mergeSort(arraySlice$2(e,0,o),t),mergeSort(arraySlice$2(e,o),t),t)},insertionSort=function(e,t){for(var r,o,n=e.length,a=1;a<n;){for(r=e[o=a];o&&0<t(e[o-1],r);)e[o]=e[--o];o!==a++&&(e[o]=r)}return e},merge=function(e,t,r,o){for(var n=t.length,a=r.length,i=0,s=0;i<n||s<a;)e[i+s]=i<n&&s<a?o(t[i],r[s])<=0?t[i++]:r[s++]:i<n?t[i++]:r[s++];return e},arraySort$1=mergeSort,$$7=_export,global$c=global$o,call$c=functionCall,uncurryThis$7=functionUncurryThis,DESCRIPTORS$1=descriptors,USE_NATIVE_URL=nativeUrl,defineBuiltIn$3=defineBuiltIn$8,defineBuiltIns=defineBuiltIns$1,setToStringTag$1=setToStringTag$4,createIteratorConstructor=createIteratorConstructor$2,InternalStateModule$1=internalState,anInstance$1=anInstance$2,isCallable$7=isCallable$o,hasOwn$1=hasOwnProperty_1,bind$4=functionBindContext,classof$3=classof$6,anObject$9=anObject$g,isObject$2=isObject$9,$toString=toString$7,create$1=objectCreate,createPropertyDescriptor=createPropertyDescriptor$5,getIterator$1=getIterator$2,getIteratorMethod$1=getIteratorMethod$3,validateArgumentsLength$1=validateArgumentsLength$2,wellKnownSymbol$7=wellKnownSymbol$k,arraySort=mergeSort,ITERATOR$2=wellKnownSymbol$k("iterator"),URL_SEARCH_PARAMS="URLSearchParams",URL_SEARCH_PARAMS_ITERATOR=URL_SEARCH_PARAMS+"Iterator",setInternalState$1=InternalStateModule$1.set,getInternalParamsState=InternalStateModule$1.getterFor(URL_SEARCH_PARAMS),getInternalIteratorState=InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR),getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,safeGetBuiltIn=function(e){var t;return DESCRIPTORS$1?(t=getOwnPropertyDescriptor$1(global$c,e))&&t.value:global$c[e]},nativeFetch=safeGetBuiltIn("fetch"),NativeRequest=safeGetBuiltIn("Request"),Headers$1=safeGetBuiltIn("Headers"),RequestPrototype=NativeRequest&&NativeRequest.prototype,HeadersPrototype=Headers$1&&Headers$1.prototype,RegExp$1=global$c.RegExp,TypeError$2=global$c.TypeError,decodeURIComponent$1=global$c.decodeURIComponent,encodeURIComponent=global$c.encodeURIComponent,charAt$4=uncurryThis$7("".charAt),join=uncurryThis$7([].join),push$1=uncurryThis$7([].push),replace$2=uncurryThis$7("".replace),shift=uncurryThis$7([].shift),splice=uncurryThis$7([].splice),split=uncurryThis$7("".split),stringSlice$4=uncurryThis$7("".slice),plus=/\+/g,sequences=Array(4),percentSequence=function(e){return sequences[e-1]||(sequences[e-1]=RegExp$1("((?:%[\\da-f]{2}){"+e+"})","gi"))},percentDecode=function(t){try{return decodeURIComponent$1(t)}catch(e){return t}},deserialize=function(e){var t=replace$2(e,plus," "),r=4;try{return decodeURIComponent$1(t)}catch(e){for(;r;)t=replace$2(t,percentSequence(r--),percentDecode);return t}},find=/[!'()~]|%20/g,replacements={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(e){return replacements[e]},serialize=function(e){return replace$2(encodeURIComponent(e),find,replacer)},URLSearchParamsIterator=createIteratorConstructor(function(e,t){setInternalState$1(this,{type:URL_SEARCH_PARAMS_ITERATOR,iterator:getIterator$1(getInternalParamsState(e).entries),kind:t})},"Iterator",function(){var e=getInternalIteratorState(this),t=e.kind,e=e.iterator.next(),r=e.value;return e.done||(e.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),e},!0),URLSearchParamsState=function(e){this.entries=[],this.url=null,void 0!==e&&(isObject$2(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===charAt$4(e,0)?stringSlice$4(e,1):e:$toString(e)))},URLSearchParamsConstructor=(URLSearchParamsState.prototype={type:URL_SEARCH_PARAMS,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,o,n,a,i,s=getIteratorMethod$1(e);if(s)for(r=(t=getIterator$1(e,s)).next;!(o=call$c(r,t)).done;){if(n=(o=getIterator$1(anObject$9(o.value))).next,(a=call$c(n,o)).done||(i=call$c(n,o)).done||!call$c(n,o).done)throw TypeError$2("Expected sequence with length 2");push$1(this.entries,{key:$toString(a.value),value:$toString(i.value)})}else for(var l in e)hasOwn$1(e,l)&&push$1(this.entries,{key:l,value:$toString(e[l])})},parseQuery:function(e){if(e)for(var t,r=split(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(t=split(t,"="),push$1(this.entries,{key:deserialize(shift(t)),value:deserialize(join(t,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],o=0;o<t.length;)e=t[o++],push$1(r,serialize(e.key)+"="+serialize(e.value));return join(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}},function(){anInstance$1(this,URLSearchParamsPrototype),setInternalState$1(this,new URLSearchParamsState(0<arguments.length?arguments[0]:void 0))}),URLSearchParamsPrototype=URLSearchParamsConstructor.prototype,anObject$8=(defineBuiltIns(URLSearchParamsPrototype,{append:function(e,t){validateArgumentsLength$1(arguments.length,2);var r=getInternalParamsState(this);push$1(r.entries,{key:$toString(e),value:$toString(t)}),r.updateURL()},delete:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this),r=t.entries,o=$toString(e),n=0;n<r.length;)r[n].key===o?splice(r,n,1):n++;t.updateURL()},get:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),o=0;o<t.length;o++)if(t[o].key===r)return t[o].value;return null},getAll:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),o=[],n=0;n<t.length;n++)t[n].key===r&&push$1(o,t[n].value);return o},has:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),o=0;o<t.length;)if(t[o++].key===r)return!0;return!1},set:function(e,t){validateArgumentsLength$1(arguments.length,1);for(var r,o=getInternalParamsState(this),n=o.entries,a=!1,i=$toString(e),s=$toString(t),l=0;l<n.length;l++)(r=n[l]).key===i&&(a?splice(n,l--,1):(a=!0,r.value=s));a||push$1(n,{key:i,value:s}),o.updateURL()},sort:function(){var e=getInternalParamsState(this);arraySort(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=getInternalParamsState(this).entries,o=bind$4(e,1<arguments.length?arguments[1]:void 0),n=0;n<r.length;)o((t=r[n++]).value,t.key,this)},keys:function(){return new URLSearchParamsIterator(this,"keys")},values:function(){return new URLSearchParamsIterator(this,"values")},entries:function(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0}),defineBuiltIn$3(URLSearchParamsPrototype,ITERATOR$2,URLSearchParamsPrototype.entries,{name:"entries"}),defineBuiltIn$3(URLSearchParamsPrototype,"toString",function(){return getInternalParamsState(this).serialize()},{enumerable:!0}),setToStringTag$1(URLSearchParamsConstructor,URL_SEARCH_PARAMS),$$7({global:!0,constructor:!0,forced:!USE_NATIVE_URL},{URLSearchParams:URLSearchParamsConstructor}),!USE_NATIVE_URL&&isCallable$7(Headers$1)&&(headersHas=uncurryThis$7(HeadersPrototype.has),headersSet=uncurryThis$7(HeadersPrototype.set),wrapRequestOptions=function(e){if(isObject$2(e)){var t,r=e.body;if(classof$3(r)===URL_SEARCH_PARAMS)return t=e.headers?new Headers$1(e.headers):new Headers$1,headersHas(t,"content-type")||headersSet(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),create$1(e,{body:createPropertyDescriptor(0,$toString(r)),headers:createPropertyDescriptor(0,t)})}return e},isCallable$7(nativeFetch)&&$$7({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return nativeFetch(e,1<arguments.length?wrapRequestOptions(arguments[1]):{})}}),isCallable$7(NativeRequest))&&((RequestPrototype.constructor=RequestConstructor=function(e){return anInstance$1(this,RequestPrototype),new NativeRequest(e,1<arguments.length?wrapRequestOptions(arguments[1]):{})}).prototype=RequestPrototype,$$7({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:RequestConstructor})),anObject$g),regexpFlags$1=function(){var e=anObject$8(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$6=fails$k,global$b=global$o,$RegExp$2=global$o.RegExp,UNSUPPORTED_Y$1=fails$6(function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),MISSED_STICKY=UNSUPPORTED_Y$1||fails$6(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$1||fails$6(function(){var e=$RegExp$2("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),regexpStickyHelpers={BROKEN_CARET:BROKEN_CARET,MISSED_STICKY:MISSED_STICKY,UNSUPPORTED_Y:UNSUPPORTED_Y$1},fails$5=fails$k,global$a=global$o,$RegExp$1=global$o.RegExp,regexpUnsupportedDotAll=fails$5(function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),fails$4=fails$k,global$9=global$o,$RegExp=global$o.RegExp,regexpUnsupportedNcg=fails$4(function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),call$b=functionCall,uncurryThis$6=functionUncurryThis,toString$4=toString$7,regexpFlags=regexpFlags$1,stickyHelpers=regexpStickyHelpers,shared=shared$4.exports,create=objectCreate,getInternalState=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$3=uncurryThis$6("".charAt),indexOf=uncurryThis$6("".indexOf),replace$1=uncurryThis$6("".replace),stringSlice$3=uncurryThis$6("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call$b(nativeExec,e,"a"),call$b(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y=stickyHelpers.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG,regexpExec$2=patchedExec=PATCH?function(e){var t,r,o,n,a,i,s=this,l=getInternalState(s),e=toString$4(e),c=l.raw;if(c)return c.lastIndex=s.lastIndex,p=call$b(patchedExec,c,e),s.lastIndex=c.lastIndex,p;var u=l.groups,c=UNSUPPORTED_Y&&s.sticky,p=call$b(regexpFlags,s),l=s.source,d=0,$=e;if(c&&(p=replace$1(p,"y",""),-1===indexOf(p,"g")&&(p+="g"),$=stringSlice$3(e,s.lastIndex),0<s.lastIndex&&(!s.multiline||s.multiline&&"\n"!==charAt$3(e,s.lastIndex-1))&&(l="(?: "+l+")",$=" "+$,d++),t=new RegExp("^(?:"+l+")",p)),NPCG_INCLUDED&&(t=new RegExp("^"+l+"$(?!\\s)",p)),UPDATES_LAST_INDEX_WRONG&&(r=s.lastIndex),o=call$b(nativeExec,c?t:s,$),c?o?(o.input=stringSlice$3(o.input,d),o[0]=stringSlice$3(o[0],d),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),NPCG_INCLUDED&&o&&1<o.length&&call$b(nativeReplace,o[0],t,function(){for(n=1;n<arguments.length-2;n++)void 0===arguments[n]&&(o[n]=void 0)}),o&&u)for(o.groups=a=create(null),n=0;n<u.length;n++)a[(i=u[n])[0]]=o[i[1]];return o}:patchedExec,$$6=_export,exec$1=regexpExec$2,uncurryThis$5=(_export({target:"RegExp",proto:!0,forced:/./.exec!==exec$1},{exec:exec$1}),functionUncurryThis),defineBuiltIn$2=defineBuiltIn$8,regexpExec$1=regexpExec$2,fails$3=fails$k,wellKnownSymbol$6=wellKnownSymbol$k,createNonEnumerableProperty=createNonEnumerableProperty$5,SPECIES$3=wellKnownSymbol$6("species"),RegExpPrototype=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(r,e,t,o){var i,n=wellKnownSymbol$6(r),s=!fails$3(function(){var e={};return e[n]=function(){return 7},7!=""[r](e)}),a=s&&!fails$3(function(){var e=!1,t=/a/;return"split"===r&&((t={constructor:{}}).constructor[SPECIES$3]=function(){return t},t.flags="",t[n]=/./[n]),t.exec=function(){return e=!0,null},t[n](""),!e});s&&a&&!t||(i=uncurryThis$5(/./[n]),a=e(n,""[r],function(e,t,r,o,n){var e=uncurryThis$5(e),a=t.exec;return a===regexpExec$1||a===RegExpPrototype.exec?s&&!n?{done:!0,value:i(t,r,o)}:{done:!0,value:e(r,t,o)}:{done:!1}}),defineBuiltIn$2(String.prototype,r,a[0]),defineBuiltIn$2(RegExpPrototype,n,a[1])),o&&createNonEnumerableProperty(RegExpPrototype[n],"sham",!0)},sameValue$1=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},call$a=functionCall,anObject$7=anObject$g,isCallable$6=isCallable$o,classof$2=classofRaw$1,regexpExec=regexpExec$2,$TypeError$2=TypeError,regexpExecAbstract=function(e,t){var r=e.exec;if(isCallable$6(r))return null!==(r=call$a(r,e,t))&&anObject$7(r),r;if("RegExp"===classof$2(e))return call$a(regexpExec,e,t);throw $TypeError$2("RegExp#exec called on incompatible receiver")},call$9=functionCall,fixRegExpWellKnownSymbolLogic$2=fixRegexpWellKnownSymbolLogic,anObject$6=anObject$g,requireObjectCoercible$3=requireObjectCoercible$7,sameValue=sameValue$1,toString$3=toString$7,getMethod$3=getMethod$6,regExpExec$2=regexpExecAbstract,NATIVE_BIND=(fixRegexpWellKnownSymbolLogic("search",function(o,n,a){return[function(e){var t=requireObjectCoercible$3(this),r=null==e?void 0:getMethod$3(e,o);return r?call$9(r,e,t):new RegExp(e)[o](toString$3(t))},function(e){var t=anObject$6(this),e=toString$3(e),r=a(n,t,e);return r.done?r.value:(r=t.lastIndex,sameValue(r,0)||(t.lastIndex=0),e=regExpExec$2(t,e),sameValue(t.lastIndex,r)||(t.lastIndex=r),null===e?-1:e.index)}]}),functionBindNative),FunctionPrototype=Function.prototype,apply$2=FunctionPrototype.apply,call$8=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND?call$8.bind(apply$2):function(){return call$8.apply(apply$2,arguments)}),uncurryThis$4=functionUncurryThis,toIntegerOrInfinity$1=toIntegerOrInfinity$4,toString$2=toString$7,requireObjectCoercible$2=requireObjectCoercible$7,charAt$2=uncurryThis$4("".charAt),charCodeAt=uncurryThis$4("".charCodeAt),stringSlice$2=uncurryThis$4("".slice),createMethod=function(n){return function(e,t){var r,e=toString$2(requireObjectCoercible$2(e)),t=toIntegerOrInfinity$1(t),o=e.length;return t<0||o<=t?n?"":void 0:(r=charCodeAt(e,t))<55296||56319<r||t+1===o||(o=charCodeAt(e,t+1))<56320||57343<o?n?charAt$2(e,t):r:n?stringSlice$2(e,t,t+2):o-56320+(r-55296<<10)+65536}},stringMultibyte={codeAt:createMethod(!1),charAt:createMethod(!0)},charAt$1=stringMultibyte.charAt,advanceStringIndex$2=function(e,t,r){return t+(r?charAt$1(e,t).length:1)},uncurryThis$3=functionUncurryThis,toObject=toObject$4,floor=Math.floor,charAt=uncurryThis$3("".charAt),replace=uncurryThis$3("".replace),stringSlice$1=uncurryThis$3("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(a,i,s,l,c,e){var u=s+a.length,p=l.length,t=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==c&&(c=toObject(c),t=SUBSTITUTION_SYMBOLS),replace(e,t,function(e,t){var r;switch(charAt(t,0)){case"$":return"$";case"&":return a;case"`":return stringSlice$1(i,0,s);case"'":return stringSlice$1(i,u);case"<":r=c[stringSlice$1(t,1,-1)];break;default:var o,n=+t;if(0==n)return e;if(p<n)return 0!==(o=floor(n/10))&&o<=p?void 0===l[o-1]?charAt(t,1):l[o-1]+charAt(t,1):e;r=l[n-1]}return void 0===r?"":r})},apply$1=functionApply,call$7=functionCall,uncurryThis$2=functionUncurryThis,fixRegExpWellKnownSymbolLogic$1=fixRegexpWellKnownSymbolLogic,fails$2=fails$k,anObject$5=anObject$g,isCallable$5=isCallable$o,toIntegerOrInfinity=toIntegerOrInfinity$4,toLength$1=toLength$3,toString$1=toString$7,requireObjectCoercible$1=requireObjectCoercible$7,advanceStringIndex$1=advanceStringIndex$2,getMethod$2=getMethod$6,getSubstitution=getSubstitution$1,regExpExec$1=regexpExecAbstract,wellKnownSymbol$5=wellKnownSymbol$k,REPLACE=wellKnownSymbol$k("replace"),max=Math.max,min=Math.min,concat=uncurryThis$2([].concat),push=uncurryThis$2([].push),stringIndexOf=uncurryThis$2("".indexOf),stringSlice=uncurryThis$2("".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$2(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),call$6=(fixRegExpWellKnownSymbolLogic$1("replace",function(e,y,b){var x=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(e,t){var r=requireObjectCoercible$1(this),o=null==e?void 0:getMethod$2(e,REPLACE);return o?call$7(o,e,r,t):call$7(y,toString$1(r),e,t)},function(e,t){var r=anObject$5(this),o=toString$1(e);if("string"==typeof t&&-1===stringIndexOf(t,x)&&-1===stringIndexOf(t,"$<")){e=b(y,r,o,t);if(e.done)return e.value}for(var n,a=isCallable$5(t),i=(a||(t=toString$1(t)),r.global),s=(i&&(n=r.unicode,r.lastIndex=0),[]);null!==(p=regExpExec$1(r,o))&&(push(s,p),i);)""===toString$1(p[0])&&(r.lastIndex=advanceStringIndex$1(o,toLength$1(r.lastIndex),n));for(var l="",c=0,u=0;u<s.length;u++){for(var p,d=toString$1((p=s[u])[0]),$=max(min(toIntegerOrInfinity(p.index),o.length),0),h=[],g=1;g<p.length;g++)push(h,maybeToString(p[g]));var m=p.groups,f=a?(f=concat([d],h,$,o),void 0!==m&&push(f,m),toString$1(apply$1(t,void 0,f))):getSubstitution(d,o,$,h,m,t);c<=$&&(l+=stringSlice(o,c,$)+f,c=$+d.length)}return l+stringSlice(o,c)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE),functionCall),fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,anObject$4=anObject$g,toLength=toLength$3,toString=toString$7,requireObjectCoercible=requireObjectCoercible$7,getMethod$1=getMethod$6,advanceStringIndex=advanceStringIndex$2,regExpExec=regexpExecAbstract;fixRegexpWellKnownSymbolLogic("match",function(o,s,l){return[function(e){var t=requireObjectCoercible(this),r=null==e?void 0:getMethod$1(e,o);return r?call$6(r,e,t):new RegExp(e)[o](toString(t))},function(e){var t=anObject$4(this),r=toString(e),e=l(s,t,r);if(e.done)return e.value;if(!t.global)return regExpExec(t,r);for(var o=t.unicode,n=[],a=t.lastIndex=0;null!==(i=regExpExec(t,r));){var i=toString(i[0]);""===(n[a]=i)&&(t.lastIndex=advanceStringIndex(r,toLength(t.lastIndex),o)),a++}return 0===a?null:n}]});const EmailSharedText={emailLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-email-input-label",defaultMessage:"Email",description:"Label Email"}),continueLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-email-continue-button",defaultMessage:"Continue",description:"Continue Button"}),emailErrorState:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-email-input-field-error-state-label",defaultMessage:"This is an invalid email",description:"Email error state label"}),emptyEmailErrorMsg:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-empty-email-input-field-error-state-label",defaultMessage:"Email is required",description:"Empty email error state label"})},useStyles$3=makeStyles()(()=>({emailWrapper:{display:"flex",flexDirection:"column",alignItems:"center",fontFamily:"Nunito","& button":{textTransform:"none",marginTop:"20px",fontSize:"18px",lineHeight:"24px",fontFamily:"Nunito",fontWeight:"600"},"& input":{fontFamily:"Nunito",lineHeight:"22px",color:"#2A323C"},"& .Sdk-MuiOutlinedInput-root":{"&:hover fieldset":{border:"1px solid #DADFE8"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8"},"&.Mui-error.Mui-focused fieldset":{borderColor:"#d32f2f"}},"& .Sdk-MuiFormControl-root .MuiInputLabel-root.Mui-focused":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiInputLabel-outlined":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiFormLabel-root .MuiInputLabel-root":{color:"#9CA8B4"},"& .Sdk-Mui-focused .MuiInputLabel-outlined":{color:"#9CA8B4"},"& .Sdk-Mui-error":{color:"#d32f2f !important"}},emailField:{width:"368px",height:"52px"},continueBtn:{width:"368px",height:"56px"}})),EmailInput=({onNextStep:e,email:t,setEmail:r,isLoading:o,buttonText:n})=>{var a=useStyles$3()["classes"];const[i,s]=react.exports.useState(!1);var{emailLabel:l,emailErrorState:c,emptyEmailErrorMsg:u}=EmailSharedText,c=i?t?c:u:l;const p=()=>{d(t)&&e?(s(!1),e()):s(!0)};const d=e=>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,}))$/);return jsxRuntime.exports.jsxs(Box,Object.assign({className:a.emailWrapper},{children:[jsxRuntime.exports.jsx(TextField,{id:"os-auth-email-input-field","data-testid":"os-auth-email-input-field",label:c,InputProps:{type:"email"},variant:"outlined",value:t,autoComplete:"email",autoFocus:!0,className:a.emailField,error:i,onChange:e=>{e=e.target.value;i&&s(!1),r(e)},onKeyDown:e=>{"Enter"===e.key&&p()}}),n&&jsxRuntime.exports.jsx(LoadingButton,Object.assign({color:"primary",variant:"contained",onClick:p,className:a.continueBtn,"data-testid":"os-auth-email-continue-btn",loading:o},{children:n}))]}))},useStyles$2=makeStyles()(()=>({passwordWrapper:{fontFamily:"Nunito","& input":{fontFamily:"Nunito",lineHeight:"22px",color:"#2A323C"},"& .Sdk-MuiOutlinedInput-root":{"&:hover fieldset":{border:"1px solid #DADFE8"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8"}},"& .Sdk-MuiFormControl-root .MuiInputLabel-root.Mui-focused":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiInputLabel-outlined":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiFormLabel-root .MuiInputLabel-rootd":{color:"#9CA8B4"}}})),PasswordInput=({password:e,onPasswordChange:t,errorMessage:r,onPressEnter:o,autoFocus:n=!0})=>{var a=useStyles$2()["classes"];const[i,s]=react.exports.useState(!1),[l,c]=react.exports.useState("Password");react.exports.useEffect(()=>{r?c(r):c("Password")},[r]);return jsxRuntime.exports.jsx(Box,Object.assign({className:a.passwordWrapper},{children:jsxRuntime.exports.jsxs(FormControl,Object.assign({sx:{width:"100%"},variant:"outlined"},{children:[jsxRuntime.exports.jsx(InputLabel,Object.assign({htmlFor:"outlined-adornment-password",style:{color:r?"#d32f2f":"#9CA8B4"}},{children:l})),jsxRuntime.exports.jsx(OutlinedInput,{id:"outlined-adornment-password","data-testid":"os-auth-password-input-field",type:i?"text":"password",onChange:e=>{e=e.target.value;t(e)},value:e,autoFocus:n,autoComplete:"password",endAdornment:jsxRuntime.exports.jsx(InputAdornment,Object.assign({position:"end"},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({"aria-label":"toggle password visibility",onClick:()=>s(e=>!e),onMouseDown:e=>{e.preventDefault()},edge:"end"},{children:i?jsxRuntime.exports.jsx(default_1$1,{}):jsxRuntime.exports.jsx(default_1,{})}))})),error:!!r,label:l,onKeyDown:e=>{"Enter"===e.key&&o()}})]}))}))},useStyles$1=makeStyles()(e=>({selectWrapper:{position:"absolute",right:"40px",top:"26px"},selectMenu:{marginTop:e.spacing(1),width:"164px",borderRadius:"10px !important",ul:{padding:"5px"},li:{padding:"10px 8px",borderRadius:"4px"}}})),destination=[{label:"aiWARE - US",value:"https://aiware2.us-1.veritone.com/ui/auth/login"},{label:"aiWARE - CA",value:"https://aiware2.ca-1.veritone.com/ui/auth/login"},{label:"aiWARE - UK",value:"https://aiware2.uk-1.veritone.com/ui/auth/login"},{label:"aiWARE - US Gov 1",value:"https://aiware2.us-gov-1.veritone.com/ui/auth/login"},{label:"aiWARE - US Gov 2",value:"https://aiware2.us-gov-2.veritone.com/ui/auth/login"},{label:"aiWARE - Deloitte",value:"https://aiware2.us-2.veritone.com/ui/auth/login"}],DestinationDropdown=({handleDestination:t})=>{var e=useStyles$1()["classes"];const[r,o]=react.exports.useState(destination[0].value);return jsxRuntime.exports.jsx(Box,Object.assign({className:e.selectWrapper},{children:jsxRuntime.exports.jsx(Select,Object.assign({name:"destination-dropdown",value:r,onChange:e=>{e=e.target.value;o(e),t(e)},renderValue:e=>{return jsxRuntime.exports.jsxs(Box,Object.assign({sx:{display:"flex",alignItems:"center",gap:.2}},{children:[jsxRuntime.exports.jsx(Location,{sx:{width:"18px",height:"18px",color:"#555F7C"}}),jsxRuntime.exports.jsx("span",{children:(t=e,null==(e=destination.find(e=>e.value===t))?void 0:e.label)})]}));var t},sx:{color:"#2A323C",fontFamily:"Nunito",fontSize:"12px",lineHeight:"16px",fontWeight:"400",width:"164px",height:"36px","& .Sdk-MuiSelect-select":{paddingLeft:"8px"},"&.MuiOutlinedInput-root":{"& fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"},"&:hover fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"}}},MenuProps:{classes:{paper:e.selectMenu}}},{children:destination.map(e=>jsxRuntime.exports.jsx(MenuItem,Object.assign({value:e.value,sx:{color:"#2A323C",fontFamily:"Nunito",fontSize:"12px",lineHeight:"16px",fontWeight:"400",letterSpacing:"-1.30385e-09px"}},{children:e.label}),e.label))}))}))};function _extends$1(){return(_extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,o=arguments[t];for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var _path,_path2,_path3,SvgAiwareLogo=function(e){return react.exports.createElement("svg",_extends$1({width:270,height:48,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),_g=_g||react.exports.createElement("g",{clipPath:"url(#aiware_logo_svg__a)"},react.exports.createElement("path",{d:"M0 30.967c0-.99.173-1.906.52-2.751a7.888 7.888 0 0 1 1.453-2.28 6.677 6.677 0 0 1 2.18-1.521 6.167 6.167 0 0 1 2.63-.58h17.583v-7.457H6.897V9.247H27.591l1.126 2.238 1.267 2.356 1.2 2.537V47.8h-6.818V40.67l-.857 1.883-1.267 2.798-1.126 2.45H6.784c-.923 0-1.8-.18-2.63-.543a7.49 7.49 0 0 1-2.181-1.52 7.888 7.888 0 0 1-1.454-2.28A7.463 7.463 0 0 1 0 40.669v-9.702Zm6.784 9.702h17.582v-9.702H6.784v9.702ZM49.735 11.603V47.8h-6.818V11.603h6.818ZM42.57 0h7.51v7.421h-7.51V0Z",fill:"#307FE2"}),react.exports.createElement("path",{d:"M0 30.967c0-.99.173-1.906.52-2.751a7.888 7.888 0 0 1 1.453-2.28 6.677 6.677 0 0 1 2.18-1.521 6.167 6.167 0 0 1 2.63-.58h17.583v-7.457H6.897V9.247H27.591l1.126 2.238 1.267 2.356 1.2 2.537V47.8h-6.818V40.67l-.857 1.883-1.267 2.798-1.126 2.45H6.784c-.923 0-1.8-.18-2.63-.543a7.49 7.49 0 0 1-2.181-1.52 7.888 7.888 0 0 1-1.454-2.28A7.463 7.463 0 0 1 0 40.669v-9.702Zm6.784 9.702h17.582v-9.702H6.784v9.702ZM49.735 11.603V47.8h-6.818V11.603h6.818ZM42.57 0h7.51v7.421h-7.51V0Z",fill:"#307FE2"}),react.exports.createElement("path",{d:"M74.734 47.837 61.658 0h6.538l10.142 38.063L88.448 0h6.539l10.11 38.063L115.239 0h6.538l-13.076 47.837h-7.176l-9.791-35.861-9.823 35.86h-7.177ZM147.26 0l17.637 47.837h-6.538l-2.025-5.505-2.025-5.504-2.52-6.838-2.54 6.838h-15.575l-4.051 11.009h-6.538L140.722 0h6.538Zm-11.099 29.99h15.628l-7.782-21.083-7.846 21.083ZM208.879 17.08c0 6.672-2.722 10.474-8.165 11.409l8.611 19.348h-7.24l-8.483-19.115h-14.321v19.115h-6.538V0h25.037c7.399 0 11.099 3.88 11.099 11.642v5.438Zm-29.598 4.803h18.148c1.743 0 2.998-.4 3.763-1.2.766-.801 1.149-2.113 1.149-3.937v-4.77c0-1.824-.383-3.136-1.149-3.937-.765-.8-2.02-1.2-3.763-1.2h-18.148v15.044ZM219.818 0h33.329v6.839h-26.791v13.677h22.868v6.838h-22.868v13.644h26.791v6.839h-33.329V0ZM257.019 41.225h4.73v.884h-1.942v5.302h-.845v-5.302h-1.943v-.884Zm8.797 6.186-2.206-4.534v4.534h-.846v-6.186h.924l2.252 4.659 2.256-4.659h.919v6.186h-.841v-4.534l-2.207 4.534h-.251Z",fill:"#333F48"})),_defs=_defs||react.exports.createElement("defs",null,react.exports.createElement("clipPath",{id:"aiware_logo_svg__a"},react.exports.createElement("path",{fill:"#fff",d:"M0 0h270v48H0z"}))))};function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,o=arguments[t];for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var SvgVeritoneLogo=function(e){return react.exports.createElement("svg",_extends({width:180,height:34,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),_path=_path||react.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.626 0 0 13.076 12.175 34h13.319L5.626 0ZM21.703 0l5.164 8.86L32.044 0h-10.34Z",fill:"#728FBE"}),_path2=_path2||react.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.044 0 12.176 34h13.318L37.67 13.076 32.044 0Z",fill:"#325491"}),_path3=_path3||react.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M161.768 10.063v6.02h9.982v1.979h-9.982v6.046h11.175v1.952h-13.21V8.111h13.21v1.952h-11.175Zm-5.114-1.952V26.06h-2.36L143.2 10.904V26.06h-2.034V8.111h2.36l11.094 15.102V8.111h2.034Zm-27.569 16.187c2.133 0 3.86-.696 5.181-2.088 1.265-1.338 1.898-3.046 1.898-5.124 0-2.08-.633-3.787-1.898-5.125-1.321-1.392-3.048-2.088-5.181-2.088-2.134 0-3.861.696-5.181 2.088-1.266 1.338-1.899 3.046-1.899 5.125s.633 3.786 1.899 5.124c1.32 1.392 3.047 2.088 5.181 2.088Zm0-16.404c2.676 0 4.873.895 6.591 2.684 1.682 1.736 2.523 3.905 2.523 6.508 0 2.602-.841 4.772-2.523 6.507-1.718 1.79-3.915 2.684-6.591 2.684-2.677 0-4.874-.895-6.592-2.684-1.681-1.735-2.522-3.905-2.522-6.507 0-2.603.841-4.772 2.522-6.508 1.718-1.79 3.915-2.684 6.592-2.684Zm-9.676 2.17h-6.266V26.06h-2.034V10.063h-6.266V8.111h14.566v1.952ZM99.663 26.06h2.035V8.11h-2.035v17.95ZM84.701 16.97V9.955h4.963c2.743 0 4.134 1.18 4.134 3.507 0 2.326-1.39 3.506-4.135 3.506h-4.962Zm6.956 1.647.193-.05c1.255-.334 2.256-.95 2.974-1.833.717-.882 1.08-1.983 1.08-3.271 0-1.638-.568-2.954-1.688-3.91-1.127-.959-2.65-1.445-4.525-1.445H82.71v17.95H84.7v-7.24h4.726l5.13 7.24h2.364l-5.264-7.44ZM68.577 10.063v6.02h9.982v1.979h-9.982v6.046h11.175v1.952h-13.21V8.111h13.21v1.952H68.577ZM63.942 8.111l-7.687 17.95h-2.333L46.236 8.11h2.224l6.629 15.645L61.717 8.11h2.225ZM176.505 24.727h.236c.276 0 .499-.092.499-.315 0-.197-.144-.328-.459-.328-.132 0-.224.013-.276.026v.617Zm-.013 1.207h-.499v-2.152c.197-.026.472-.066.827-.066.407 0 .591.066.735.171a.54.54 0 0 1 .224.46c0 .262-.197.432-.447.511v.026c.21.066.315.237.381.526.066.328.118.446.157.524h-.525c-.065-.078-.105-.262-.171-.524-.039-.224-.17-.329-.446-.329h-.236v.854Zm-1.327-1.115c0 .958.723 1.72 1.681 1.72.933.012 1.641-.762 1.641-1.707 0-.958-.708-1.732-1.667-1.732-.932 0-1.655.774-1.655 1.719Zm3.874 0c0 1.207-.972 2.165-2.206 2.165s-2.219-.958-2.219-2.165.985-2.152 2.232-2.152c1.221 0 2.193.944 2.193 2.152Z",fill:"#142E44"}))};const Footer=()=>jsxRuntime.exports.jsxs(Box,Object.assign({sx:{textAlign:"center"}},{children:[jsxRuntime.exports.jsx(SvgVeritoneLogo,{}),jsxRuntime.exports.jsxs(Typography,Object.assign({sx:{marginBottom:"18px",marginTop:"50px",fontFamily:"Nunito",fontSize:"10px",lineHeight:"16px",color:"#5C6269"}},{children:["© ",(new Date).getFullYear()," AiWARE, All Rights Reserved."," ",jsxRuntime.exports.jsxs("a",Object.assign({href:"https://www.veritone.com/terms",style:{color:"#0C53B0",textDecoration:"none"}},{children:["Terms of Service"," "]}))]}))]})),PageContainer=({children:e})=>jsxRuntime.exports.jsx(Container,{children:jsxRuntime.exports.jsxs(Box,Object.assign({sx:{display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"space-between",height:"100vh"}},{children:[jsxRuntime.exports.jsxs(Box,{children:[jsxRuntime.exports.jsx(Box,Object.assign({sx:{marginTop:"178px",marginBottom:"50px",textAlign:"center"}},{children:jsxRuntime.exports.jsx(SvgAiwareLogo,{})})),e]}),jsxRuntime.exports.jsx(Footer,{})]}))}),Header=({text:e,subText:t})=>jsxRuntime.exports.jsxs(Box,Object.assign({sx:{marginBottom:"30px",textAlign:"center"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({sx:{fontFamily:"Nunito",fontSize:"22px",lineHeight:"18px",letterSpacing:"-1.30385e-09px",color:"#2A323C"}},{children:e})),t&&jsxRuntime.exports.jsx(Typography,Object.assign({sx:{fontFamily:"Nunito",fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269",marginTop:"10px",width:"368px"}},{children:t}))]})),useStyles=makeStyles()(()=>({btnWrapper:{display:"flex",alignItems:"center",width:"100%",justifyContent:"center",flexDirection:"column"},openIdLogo:{width:"24px",height:"24px",marginRight:"8px"},openIdBtn:{"&.MuiButton-root":{width:"368px",marginTop:"20px",height:"56px",border:"1px solid #DADFE8",borderRadius:"4px",fontFamily:"Nunito",fontStyle:"normal",fontWeight:"600",fontSize:"18px",lineHeight:"24px",letterSpacing:"-1.30385e-09px",textTransform:"none","&:hover, &:focus":{border:"1px solid #DADFE8",color:"#2A323C"}}}})),OpenID=({openIdItems:e})=>{const r=useStyles()["classes"];return jsxRuntime.exports.jsx(Box,Object.assign({className:r.btnWrapper},{children:jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:e&&e.map((t,e)=>jsxRuntime.exports.jsxs(Button,Object.assign({variant:"outlined","data-testid":"os-auth-openId-button-"+e,className:r.openIdBtn,onClick:()=>{var e;e=t.loginUrl,window.location.href=e},sx:{backgroundColor:t.loginButtonStyle&&t.loginButtonStyle.btnColor?t.loginButtonStyle.btnColor:"#FFFFFF","&:hover, &:focus":{backgroundColor:t.loginButtonStyle&&t.loginButtonStyle.btnColor?t.loginButtonStyle.btnColor:"#FFFFFF"}}},{children:[t.loginButtonStyle&&t.loginButtonStyle.btnLogo&&jsxRuntime.exports.jsx("img",{className:r.openIdLogo,alt:"icon",src:t.loginButtonStyle.btnLogo,"data-testid":"os-auth-openId-image-"+e}),jsxRuntime.exports.jsx("span",Object.assign({"data-testid":"os-auth-openId-name-"+e,style:{marginTop:"3px",color:t.loginButtonStyle&&t.loginButtonStyle.btnTextColor?t.loginButtonStyle.btnTextColor:"#2A323C"}},{children:t.name}))]}),t.connectId))})}))};var location,defer,channel,port,classof$1=classofRaw$1,global$8=global$o,engineIsNode="process"==classofRaw$1(global$o.process),getBuiltIn$3=getBuiltIn$8,definePropertyModule=objectDefineProperty,wellKnownSymbol$4=wellKnownSymbol$k,DESCRIPTORS=descriptors,SPECIES$2=wellKnownSymbol$k("species"),setSpecies$1=function(e){var e=getBuiltIn$3(e),t=definePropertyModule.f;DESCRIPTORS&&e&&!e[SPECIES$2]&&t(e,SPECIES$2,{configurable:!0,get:function(){return this}})},uncurryThis$1=functionUncurryThis,fails$1=fails$k,isCallable$4=isCallable$o,classof=classof$6,getBuiltIn$2=getBuiltIn$8,inspectSource$1=inspectSource$4,noop=function(){},empty=[],construct=getBuiltIn$8("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis$1(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$4(e))return!1;try{return construct(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$4(e))return!1;switch(classof(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec(constructorRegExp,inspectSource$1(e))}catch(e){return!0}},isConstructor$1=(isConstructorLegacy.sham=!0,!construct||fails$1(function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){e=!0})||e})?isConstructorLegacy:isConstructorModern),isConstructor=isConstructor$1,tryToString$1=tryToString$4,$TypeError$1=TypeError,aConstructor$1=function(e){if(isConstructor(e))return e;throw $TypeError$1(tryToString$1(e)+" is not a constructor")},anObject$3=anObject$g,aConstructor=aConstructor$1,wellKnownSymbol$3=wellKnownSymbol$k,SPECIES$1=wellKnownSymbol$k("species"),speciesConstructor$1=function(e,t){var e=anObject$3(e).constructor;return void 0===e||null==(e=anObject$3(e)[SPECIES$1])?t:aConstructor(e)},uncurryThis=functionUncurryThis,arraySlice$1=functionUncurryThis([].slice),userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$7=global$o,apply=functionApply,bind$3=functionBindContext,isCallable$3=isCallable$o,hasOwn=hasOwnProperty_1,fails=fails$k,html=html$2,arraySlice=arraySlice$1,createElement=documentCreateElement$2,validateArgumentsLength=validateArgumentsLength$2,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$7.setImmediate,clear=global$7.clearImmediate,process$2=global$7.process,Dispatch=global$7.Dispatch,Function$1=global$7.Function,MessageChannel=global$7.MessageChannel,String$1=global$7.String,counter=0,queue$1={},ONREADYSTATECHANGE="onreadystatechange";try{location=global$7.location}catch(e){}var flush,head,last,notify$1,toggle,node,promise,then,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,run=function(e){var t;hasOwn(queue$1,e)&&(t=queue$1[e],delete queue$1[e],t())},runner=function(e){return function(){run(e)}},listener=function(e){run(e.data)},post=function(e){global$7.postMessage(String$1(e),location.protocol+"//"+location.host)},task$1=(set&&clear||(set=function(e){validateArgumentsLength(arguments.length,1);var t=isCallable$3(e)?e:Function$1(e),r=arraySlice(arguments,1);return queue$1[++counter]=function(){apply(t,void 0,r)},defer(counter),counter},clear=function(e){delete queue$1[e]},IS_NODE$3?defer=function(e){process$2.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=listener,defer=bind$3(port.postMessage,port)):global$7.addEventListener&&isCallable$3(global$7.postMessage)&&!global$7.importScripts&&location&&"file:"!==location.protocol&&!fails(post)?(defer=post,global$7.addEventListener("message",listener,!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}),userAgent$1=engineUserAgent,global$6=global$o,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&void 0!==global$6.Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$5=global$o,bind$2=functionBindContext,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$5.MutationObserver||global$5.WebKitMutationObserver,document$2=global$5.document,process$1=global$5.process,Promise$1=global$5.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor(global$5,"queueMicrotask"),queueMicrotask=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value,microtask$1=(queueMicrotask||(flush=function(){var e,t;for(IS_NODE$2&&(e=process$1.domain)&&e.exit();head;){t=head.fn,head=head.next;try{t()}catch(e){throw head?notify$1():last=void 0,e}}last=void 0,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$2(promise.then,promise),function(){then(flush)}):IS_NODE$2?function(){process$1.nextTick(flush)}:(macrotask=bind$2(macrotask,global$5),function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),function(){node.data=toggle=!toggle})),queueMicrotask||function(e){e={fn:e,next:void 0};last&&(last.next=e),head||(head=e,notify$1()),last=e}),global$4=global$o,hostReportErrors$1=function(e,t){var r=global$4.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))},perform$3=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Queue$1=function(){this.head=null,this.tail=null},queue=(Queue$1.prototype={add:function(e){e={item:e,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},Queue$1),global$3=global$o,promiseNativeConstructor=global$o.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$2=global$o,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$2=isCallable$o,isForced=isForced_1,inspectSource=inspectSource$4,wellKnownSymbol$2=wellKnownSymbol$k,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,SPECIES=(NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,wellKnownSymbol$2("species")),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$2(global$2.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$3=aCallable$7,PromiseCapability=function(e){var r,o;this.promise=new e(function(e,t){if(void 0!==r||void 0!==o)throw TypeError("Bad Promise constructor");r=e,o=t}),this.resolve=aCallable$3(r),this.reject=aCallable$3(o)},$$5=(newPromiseCapability$2.f=function(e){return new PromiseCapability(e)},_export),IS_NODE=engineIsNode,global$1=global$o,call$5=functionCall,defineBuiltIn$1=defineBuiltIn$8,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$4,setSpecies=setSpecies$1,aCallable$2=aCallable$7,isCallable$1=isCallable$o,isObject$1=isObject$9,anInstance=anInstance$2,speciesConstructor=speciesConstructor$1,task=task$1.set,microtask=microtask$1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue,InternalStateModule=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.getterFor(PROMISE),setInternalState=InternalStateModule.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$1=global$1.TypeError,document$1=global$1.document,process=global$1.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$1.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$1(e)||!isCallable$1(t=e.then))&&t},callReaction=function(e,t){var r,o,n,a=t.value,i=t.state==FULFILLED,s=i?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(i||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?r=a:(u&&u.enter(),r=s(a),u&&(u.exit(),n=!0)),r===e.promise?c(TypeError$1("Promise-chain cycle")):(o=isThenable(r))?call$5(o,r,l,c):l(r)):c(a)}catch(e){u&&!n&&u.exit(),c(e)}},notify=function(r,o){r.notified||(r.notified=!0,microtask(function(){for(var e,t=r.reactions;e=t.get();)callReaction(e,r);r.notified=!1,o&&!r.rejection&&onUnhandled(r)}))},dispatchEvent=function(e,t,r){var o;DISPATCH_EVENT?((o=document$1.createEvent("Event")).promise=t,o.reason=r,o.initEvent(e,!1,!0),global$1.dispatchEvent(o)):o={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT&&(t=global$1["on"+e])?t(o):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",r)},onUnhandled=function(o){call$5(task,global$1,function(){var e=o.facade,t=o.value,r=isUnhandled(o);if(r&&(r=perform$2(function(){IS_NODE?process.emit("unhandledRejection",t,e):dispatchEvent(UNHANDLED_REJECTION,e,t)}),o.rejection=IS_NODE||isUnhandled(o)?UNHANDLED:HANDLED,r.error))throw r.value})},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(t){call$5(task,global$1,function(){var e=t.facade;IS_NODE?process.emit("rejectionHandled",e):dispatchEvent(REJECTION_HANDLED,e,t.value)})},bind$1=function(t,r,o){return function(e){t(r,e,o)}},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 TypeError$1("Promise can't be resolved itself");var o=isThenable(e);o?microtask(function(){var t={done:!1};try{call$5(o,e,bind$1(internalResolve,t,r),bind$1(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(this,PromisePrototype),aCallable$2(e),call$5(Internal,this);var t=getInternalPromiseState(this);try{e(bind$1(internalResolve,t),bind$1(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$1(PromisePrototype,"then",function(e,t){var r=getInternalPromiseState(this),o=newPromiseCapability$1(speciesConstructor(this,PromiseConstructor));return r.parent=!0,o.ok=!isCallable$1(e)||e,o.fail=isCallable$1(t)&&t,o.domain=IS_NODE?process.domain:void 0,r.state==PENDING?r.reactions.add(o):microtask(function(){callReaction(o,r)}),o.promise}),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$1(internalResolve,t),this.reject=bind$1(internalReject,t)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},isCallable$1(NativePromiseConstructor$2))&&NativePromisePrototype$1!==Object.prototype){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$1(NativePromisePrototype$1,"then",function(e,t){var r=this;return new PromiseConstructor(function(e,t){call$5(nativeThen,r,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch(e){}setPrototypeOf&&setPrototypeOf(NativePromisePrototype$1,PromisePrototype)}$$5({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var wellKnownSymbol$1=wellKnownSymbol$k,Iterators=iterators,ITERATOR$1=wellKnownSymbol$k("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$1=function(e){return void 0!==e&&(Iterators.Array===e||ArrayPrototype[ITERATOR$1]===e)},call$4=functionCall,anObject$2=anObject$g,getMethod=getMethod$6,iteratorClose$1=function(e,t,r){var o,n;anObject$2(e);try{if(!(o=getMethod(e,"return"))){if("throw"===t)throw r;return r}o=call$4(o,e)}catch(e){n=!0,o=e}if("throw"===t)throw r;if(n)throw o;return anObject$2(o),r},bind=functionBindContext,call$3=functionCall,anObject$1=anObject$g,tryToString=tryToString$4,isArrayIteratorMethod=isArrayIteratorMethod$1,lengthOfArrayLike=lengthOfArrayLike$3,isPrototypeOf=objectIsPrototypeOf,getIterator=getIterator$2,getIteratorMethod=getIteratorMethod$3,iteratorClose=iteratorClose$1,$TypeError=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$2=function(e,t,r){function o(e){return a&&iteratorClose(a,"normal",e),new Result(!0,e)}function n(e){return d?(anObject$1(e),g?m(e[0],e[1],o):m(e[0],e[1])):g?m(e,o):m(e)}var a,i,s,l,c,u,p=r&&r.that,d=!(!r||!r.AS_ENTRIES),$=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),g=!(!r||!r.INTERRUPTED),m=bind(t,p);if($)a=e.iterator;else if(h)a=e;else{if(!(r=getIteratorMethod(e)))throw $TypeError(tryToString(e)+" is not iterable");if(isArrayIteratorMethod(r)){for(i=0,s=lengthOfArrayLike(e);i<s;i++)if((l=n(e[i]))&&isPrototypeOf(ResultPrototype,l))return l;return new Result(!1)}a=getIterator(e,r)}for(c=($?e:a).next;!(u=call$3(c,a)).done;){try{l=n(u.value)}catch(e){iteratorClose(a,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf(ResultPrototype,l))return l}return new Result(!1)},wellKnownSymbol=wellKnownSymbol$k,ITERATOR=wellKnownSymbol$k("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(e){}var method,checkCorrectnessOfIteration$1=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var r=!1;try{var o={};o[ITERATOR]=function(){return{next:function(){return{done:r=!0}}}},e(o)}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(){})}),$$4=_export,call$2=functionCall,aCallable$1=aCallable$7,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration,$$3=(_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 o=aCallable$1(s.resolve),n=[],a=0,i=1;iterate$1(e,function(e){var t=a++,r=!1;i++,call$2(o,s,e).then(function(e){r||(r=!0,n[t]=e,--i)||l(n)},c)}),--i||l(n)});return r.error&&c(r.value),t.promise}}),_export),FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$8,isCallable=isCallable$o,defineBuiltIn=defineBuiltIn$8,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,$$2=($$3({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable(NativePromiseConstructor)&&(method=getBuiltIn$1("Promise").prototype.catch,NativePromisePrototype.catch!==method)&&defineBuiltIn(NativePromisePrototype,"catch",method,{unsafe:!0}),_export),call$1=functionCall,aCallable=aCallable$7,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,$$1=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function(e){var r=this,o=newPromiseCapabilityModule$1.f(r),n=o.reject,t=perform(function(){var t=aCallable(r.resolve);iterate(e,function(e){call$1(t,r,e).then(o.resolve,n)})});return t.error&&n(t.value),o.promise}}),_export),call=functionCall,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR,anObject=($$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return call(t.reject,void 0,e),t.promise}}),anObject$g),isObject=isObject$9,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(e,t){return anObject(e),isObject(t)&&t.constructor===e?t:((0,(e=newPromiseCapability.f(e)).resolve)(t),e.promise)},$=_export,getBuiltIn=getBuiltIn$8,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;getBuiltIn("Promise"),$({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}});const getGlobalProviders=()=>__awaiter(void 0,void 0,void 0,function*(){let t=[];try{var e=yield fetch(generateApiUrlFromHost()+"/api/admin/openid");t=200===e.status?(yield e.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",e),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),getOrgOpenIdProviders=r=>__awaiter(void 0,void 0,void 0,function*(){let t=[];try{var e=yield fetch(generateApiUrlFromHost()+"/api/admin/openid/org/"+r);t=200===e.status?(yield e.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",e),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),linkUserToOidAndLogin=(e,t,r)=>fetch(generateApiUrlFromHost()+"/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})}),userLoginMutation=(r,o)=>__awaiter(void 0,void 0,void 0,function*(){var e=generateApiUrlFromHost(!0),t={query:`
2
2
  mutation UserLogin($input: UserLogin!) {
3
3
  userLogin(input: $input) {
4
4
  token