aiware-js 2.35.0 → 2.36.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/index.esm.css +92 -92
  2. package/index.esm.css.gz +0 -0
  3. package/index.esm.js +1 -1
  4. package/index.esm.js.gz +0 -0
  5. package/index.esm.min.css +92 -92
  6. package/index.esm.min.css.gz +0 -0
  7. package/js-core.esm.js +9 -9
  8. package/js-core.esm.js.gz +0 -0
  9. package/js-core.esm10.js +1 -1
  10. package/js-core.esm10.js.gz +0 -0
  11. package/js-core.esm100.js +1 -0
  12. package/js-core.esm100.js.gz +0 -0
  13. package/js-core.esm11.js +1 -1
  14. package/js-core.esm11.js.gz +0 -0
  15. package/js-core.esm12.js +1 -1
  16. package/js-core.esm12.js.gz +0 -0
  17. package/js-core.esm13.js +1 -1
  18. package/js-core.esm13.js.gz +0 -0
  19. package/js-core.esm14.js +1 -1
  20. package/js-core.esm14.js.gz +0 -0
  21. package/js-core.esm15.js +1 -1
  22. package/js-core.esm15.js.gz +0 -0
  23. package/js-core.esm16.js +1 -1
  24. package/js-core.esm16.js.gz +0 -0
  25. package/js-core.esm17.js +1 -1
  26. package/js-core.esm17.js.gz +0 -0
  27. package/js-core.esm18.js +1 -1
  28. package/js-core.esm18.js.gz +0 -0
  29. package/js-core.esm19.js +1 -240
  30. package/js-core.esm19.js.gz +0 -0
  31. package/js-core.esm2.js.gz +0 -0
  32. package/js-core.esm20.js +1 -20
  33. package/js-core.esm20.js.gz +0 -0
  34. package/js-core.esm21.js +240 -1
  35. package/js-core.esm21.js.gz +0 -0
  36. package/js-core.esm22.js +20 -1
  37. package/js-core.esm22.js.gz +0 -0
  38. package/js-core.esm23.js +1 -1
  39. package/js-core.esm23.js.gz +0 -0
  40. package/js-core.esm24.js +1 -1
  41. package/js-core.esm24.js.gz +0 -0
  42. package/js-core.esm25.js +1 -1
  43. package/js-core.esm25.js.gz +0 -0
  44. package/js-core.esm26.js +1 -1
  45. package/js-core.esm26.js.gz +0 -0
  46. package/js-core.esm27.js +1 -1
  47. package/js-core.esm27.js.gz +0 -0
  48. package/js-core.esm28.js +1 -1
  49. package/js-core.esm28.js.gz +0 -0
  50. package/js-core.esm29.js +1 -1
  51. package/js-core.esm29.js.gz +0 -0
  52. package/js-core.esm3.js.gz +0 -0
  53. package/js-core.esm30.js +1 -1
  54. package/js-core.esm30.js.gz +0 -0
  55. package/js-core.esm31.js +1 -1
  56. package/js-core.esm31.js.gz +0 -0
  57. package/js-core.esm32.js +1 -1
  58. package/js-core.esm32.js.gz +0 -0
  59. package/js-core.esm33.js +1 -1
  60. package/js-core.esm33.js.gz +0 -0
  61. package/js-core.esm34.js +1 -1
  62. package/js-core.esm34.js.gz +0 -0
  63. package/js-core.esm35.js +1 -1
  64. package/js-core.esm35.js.gz +0 -0
  65. package/js-core.esm36.js +1 -1
  66. package/js-core.esm36.js.gz +0 -0
  67. package/js-core.esm37.js +1 -1
  68. package/js-core.esm37.js.gz +0 -0
  69. package/js-core.esm38.js +1 -1
  70. package/js-core.esm38.js.gz +0 -0
  71. package/js-core.esm39.js +1 -1
  72. package/js-core.esm39.js.gz +0 -0
  73. package/js-core.esm4.js +7 -1
  74. package/js-core.esm4.js.gz +0 -0
  75. package/js-core.esm40.js +1 -14
  76. package/js-core.esm40.js.gz +0 -0
  77. package/js-core.esm41.js +14 -12
  78. package/js-core.esm41.js.gz +0 -0
  79. package/js-core.esm42.js +12 -54
  80. package/js-core.esm42.js.gz +0 -0
  81. package/js-core.esm43.js +54 -1
  82. package/js-core.esm43.js.gz +0 -0
  83. package/js-core.esm44.js +1 -1
  84. package/js-core.esm44.js.gz +0 -0
  85. package/js-core.esm45.js +1 -108
  86. package/js-core.esm45.js.gz +0 -0
  87. package/js-core.esm46.js +108 -1
  88. package/js-core.esm46.js.gz +0 -0
  89. package/js-core.esm47.js +1 -214
  90. package/js-core.esm47.js.gz +0 -0
  91. package/js-core.esm48.js +214 -1
  92. package/js-core.esm48.js.gz +0 -0
  93. package/js-core.esm49.js +1 -1
  94. package/js-core.esm49.js.gz +0 -0
  95. package/js-core.esm5.js +1 -65
  96. package/js-core.esm5.js.gz +0 -0
  97. package/js-core.esm50.js +1 -1
  98. package/js-core.esm50.js.gz +0 -0
  99. package/js-core.esm51.js +1 -1
  100. package/js-core.esm51.js.gz +0 -0
  101. package/js-core.esm52.js +1 -37
  102. package/js-core.esm52.js.gz +0 -0
  103. package/js-core.esm53.js +37 -1
  104. package/js-core.esm53.js.gz +0 -0
  105. package/js-core.esm54.js +1 -1
  106. package/js-core.esm54.js.gz +0 -0
  107. package/js-core.esm55.js +1 -1
  108. package/js-core.esm55.js.gz +0 -0
  109. package/js-core.esm56.js +1 -1
  110. package/js-core.esm56.js.gz +0 -0
  111. package/js-core.esm57.js +1 -1
  112. package/js-core.esm57.js.gz +0 -0
  113. package/js-core.esm58.js +1 -31
  114. package/js-core.esm58.js.gz +0 -0
  115. package/js-core.esm59.js +31 -1
  116. package/js-core.esm59.js.gz +0 -0
  117. package/js-core.esm6.js +1 -1
  118. package/js-core.esm6.js.gz +0 -0
  119. package/js-core.esm60.js +1 -85
  120. package/js-core.esm60.js.gz +0 -0
  121. package/js-core.esm61.js +73 -52
  122. package/js-core.esm61.js.gz +0 -0
  123. package/js-core.esm62.js +64 -1
  124. package/js-core.esm62.js.gz +0 -0
  125. package/js-core.esm63.js +1 -1
  126. package/js-core.esm63.js.gz +0 -0
  127. package/js-core.esm64.js +1 -56
  128. package/js-core.esm64.js.gz +0 -0
  129. package/js-core.esm65.js +48 -116
  130. package/js-core.esm65.js.gz +0 -0
  131. package/js-core.esm66.js +107 -150
  132. package/js-core.esm66.js.gz +0 -0
  133. package/js-core.esm67.js +149 -57
  134. package/js-core.esm67.js.gz +0 -0
  135. package/js-core.esm68.js +75 -15
  136. package/js-core.esm68.js.gz +0 -0
  137. package/js-core.esm69.js +15 -1
  138. package/js-core.esm69.js.gz +0 -0
  139. package/js-core.esm7.js +41 -572
  140. package/js-core.esm7.js.gz +0 -0
  141. package/js-core.esm70.js +1 -1
  142. package/js-core.esm70.js.gz +0 -0
  143. package/js-core.esm71.js +1 -121
  144. package/js-core.esm71.js.gz +0 -0
  145. package/js-core.esm72.js +103 -14
  146. package/js-core.esm72.js.gz +0 -0
  147. package/js-core.esm73.js +27 -15
  148. package/js-core.esm73.js.gz +0 -0
  149. package/js-core.esm74.js +19 -13
  150. package/js-core.esm74.js.gz +0 -0
  151. package/js-core.esm75.js +14 -1
  152. package/js-core.esm75.js.gz +0 -0
  153. package/js-core.esm76.js +1 -98
  154. package/js-core.esm76.js.gz +0 -0
  155. package/js-core.esm77.js +1 -75
  156. package/js-core.esm77.js.gz +0 -0
  157. package/js-core.esm78.js +106 -1
  158. package/js-core.esm78.js.gz +0 -0
  159. package/js-core.esm79.js +80 -27
  160. package/js-core.esm79.js.gz +0 -0
  161. package/js-core.esm8.js +1 -1
  162. package/js-core.esm8.js.gz +0 -0
  163. package/js-core.esm80.js +1 -1
  164. package/js-core.esm80.js.gz +0 -0
  165. package/js-core.esm81.js +1 -1
  166. package/js-core.esm81.js.gz +0 -0
  167. package/js-core.esm82.js +35 -1
  168. package/js-core.esm82.js.gz +0 -0
  169. package/js-core.esm83.js +1 -1
  170. package/js-core.esm83.js.gz +0 -0
  171. package/js-core.esm84.js +1 -1
  172. package/js-core.esm84.js.gz +0 -0
  173. package/js-core.esm85.js +1 -1
  174. package/js-core.esm85.js.gz +0 -0
  175. package/js-core.esm86.js +1 -1
  176. package/js-core.esm86.js.gz +0 -0
  177. package/js-core.esm87.js +1 -1
  178. package/js-core.esm87.js.gz +0 -0
  179. package/js-core.esm88.js +1 -1
  180. package/js-core.esm88.js.gz +0 -0
  181. package/js-core.esm89.js +1 -1
  182. package/js-core.esm89.js.gz +0 -0
  183. package/js-core.esm9.js +596 -1
  184. package/js-core.esm9.js.gz +0 -0
  185. package/js-core.esm90.js +1 -1
  186. package/js-core.esm90.js.gz +0 -0
  187. package/js-core.esm91.js +1 -1
  188. package/js-core.esm91.js.gz +0 -0
  189. package/js-core.esm92.js +1 -1
  190. package/js-core.esm92.js.gz +0 -0
  191. package/js-core.esm93.js +1 -1
  192. package/js-core.esm93.js.gz +0 -0
  193. package/js-core.esm94.js +1 -0
  194. package/js-core.esm94.js.gz +0 -0
  195. package/js-core.esm95.js +1 -0
  196. package/js-core.esm95.js.gz +0 -0
  197. package/js-core.esm96.js +1 -0
  198. package/js-core.esm96.js.gz +0 -0
  199. package/js-core.esm97.js +1 -0
  200. package/js-core.esm97.js.gz +0 -0
  201. package/js-core.esm98.js +1 -0
  202. package/js-core.esm98.js.gz +0 -0
  203. package/js-core.esm99.js +1 -0
  204. package/js-core.esm99.js.gz +0 -0
  205. package/js-core.umd.css.gz +0 -0
  206. package/js-core.umd.js +204 -177
  207. package/js-core.umd.js.gz +0 -0
  208. package/js-core.umd.min.css.gz +0 -0
  209. package/locales/en.json +1 -1
  210. package/locales/es.json +1 -1
  211. package/locales/fr.json +1 -1
  212. package/package.json +2 -1
package/js-core.esm.js CHANGED
@@ -2,7 +2,7 @@ function _mergeNamespaces(r,e){return e.forEach(function(n){n&&"string"!=typeof
2
2
  The error may be correlated with this previous error:
3
3
  ${x.current.stack}
4
4
 
5
- `),e}useIsomorphicLayoutEffect$2(()=>{x.current=void 0,g.current=void 0,h.current=C});const $=react.exports.useMemo(()=>React.createElement(S,_extends({},C,{ref:t})),[t,S,C]);return react.exports.useMemo(()=>T?React.createElement(i.Provider,{value:f},$):$,[i,$,f])}const r=React.memo(n);return r.WrappedComponent=S,r.displayName=n.displayName=t,l?((e=React.forwardRef(function(e,t){return React.createElement(r,_extends({},e,{reactReduxForwardedRef:t}))})).displayName=t,e.WrappedComponent=S,hoistNonReactStatics_cjs(e,S)):hoistNonReactStatics_cjs(r,S)}}function Provider$2({store:t,context:e,children:n,serverState:r}){const i=react.exports.useMemo(()=>{var e=createSubscription$1(t);return{store:t,subscription:e,getServerState:r?()=>r:void 0}},[t,r]),o=react.exports.useMemo(()=>t.getState(),[t]);useIsomorphicLayoutEffect$2(()=>{const e=i["subscription"];return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[i,o]);e=e||ReactReduxContext$1;return React.createElement(e.Provider,{value:i},n)}function createStoreHook(e=ReactReduxContext$1){const t=e===ReactReduxContext$1?useReduxContext:()=>react.exports.useContext(e);return function(){var e=t()["store"];return e}}const useStore=createStoreHook();function createDispatchHook(e=ReactReduxContext$1){const t=e===ReactReduxContext$1?useStore:createStoreHook(e);return function(){return t().dispatch}}const useDispatch=createDispatchHook();initializeUseSelector(withSelector.exports.useSyncExternalStoreWithSelector),initializeConnect(shim.exports.useSyncExternalStore),setBatch$1(reactDom.exports.unstable_batchedUpdates);class DynamicModuleLoader extends react.exports.Component{render(){return jsxRuntime.exports.jsx(ReactReduxContext$1.Consumer,{children:e=>jsxRuntime.exports.jsx(DynamicModuleLoaderImpl,Object.assign({},this.props,{reactReduxContext:e}))})}}class DynamicModuleLoaderImpl extends react.exports.Component{constructor(e){var t;if(super(e),this._providerInitializationNeeded=!1,this._cleanup=()=>{this._addedModules&&(this._addedModules.remove(),this._addedModules=void 0)},null==e.reactReduxContext)throw t="Tried to render DynamicModuleLoader, but no ReactReduxContext was provided",console.error(t),new Error(t);this._store=e.reactReduxContext?e.reactReduxContext.store:void 0,this.props.strictMode?this.state={readyToRender:!1}:(this._addModules(),this.state={readyToRender:!0})}render(){return this.state.readyToRender?this._providerInitializationNeeded&&this._store?jsxRuntime.exports.jsx(Provider$2,Object.assign({store:this._store},{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({},this.props))})):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[this._renderLoader(),jsxRuntime.exports.jsx(AddedModulesCleanup,{cleanup:this._cleanup})]}):null}_renderLoader(){return this.props.children?"function"==typeof this.props.children?this.props.children():this.props.children:null}_addModules(){var{createStore:e,modules:t}=this.props;if(this._store)this._addedModules=this._store.addModules(t);else{if(!e)throw new Error("Store could not be resolved from React context");this._store=e(),this._providerInitializationNeeded=!0}}componentDidMount(){this.props.strictMode&&(this._addModules(),this.setState({readyToRender:!0}))}}class AddedModulesCleanup extends react.exports.Component{render(){return null}componentWillUnmount(){this.props.cleanup()}}var lib$2={},ModuleStore={};function symbolObservablePonyfill$1(e){var t,e=e.Symbol;return"function"==typeof e?e.observable?t=e.observable:(t=e("observable"),e.observable=t):t="@@observable",t}var root$b,result=symbolObservablePonyfill$1(root$b="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")()),randomString$2=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes$1={INIT:"@@redux/INIT"+randomString$2(),REPLACE:"@@redux/REPLACE"+randomString$2(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString$2()}};function isPlainObject$2(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function createStore$3(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(createStore$3)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var i=e,o=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(t){if("function"!=typeof t)throw new Error("Expected the listener to be a function.");if(l)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var n=!0;return c(),s.push(t),function(){if(n){if(l)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");n=!1,c();var e=s.indexOf(t);s.splice(e,1),a=null}}}function p(e){if(!isPlainObject$2(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,o=i(o,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])();return e}return p({type:ActionTypes$1.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,p({type:ActionTypes$1.REPLACE})}})[result]=function(){var n=d,e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function t(){e.next&&e.next(u())}return t(),{unsubscribe:n(t)}}};return e[result]=function(){return this},e},r}function getUndefinedStateErrorMessage(e,t){t=t&&t.type;return"Given "+(t&&'action "'+String(t)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function assertReducerShape(n){Object.keys(n).forEach(function(e){var t=n[e];if(void 0===t(void 0,{type:ActionTypes$1.INIT}))throw new Error('Reducer "'+e+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===t(void 0,{type:ActionTypes$1.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+e+"\" returned undefined when probed with a random type. Don't try to handle "+ActionTypes$1.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function combineReducers(e){for(var t=Object.keys(e),c={},n=0;n<t.length;n++){var r=t[n];"function"==typeof e[r]&&(c[r]=e[r])}var u,d=Object.keys(c);try{assertReducerShape(c)}catch(e){u=e}return function(e,t){if(void 0===e&&(e={}),u)throw u;for(var n=!1,r={},i=0;i<d.length;i++){var o,a=d[i],s=c[a],l=e[a],s=s(l,t);if(void 0===s)throw o=getUndefinedStateErrorMessage(a,t),new Error(o);r[a]=s,n=n||s!==l}return(n=n||d.length!==Object.keys(e).length)?r:e}}function bindActionCreator$1(e,t){return function(){return t(e.apply(this,arguments))}}function bindActionCreators$2(e,t){if("function"==typeof e)return bindActionCreator$1(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n,r={};for(n in e){var i=e[n];"function"==typeof i&&(r[n]=bindActionCreator$1(i,t))}return r}function _defineProperty$2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ownKeys$4(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),n=e?n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}):n}function _objectSpread2$1(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys$4(n,!0).forEach(function(e){_defineProperty$2(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys$4(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function compose$5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function applyMiddleware$1(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];return function(i){return function(){var e=i.apply(void 0,arguments),t=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},n={getState:e.getState,dispatch:function(){return t.apply(void 0,arguments)}},r=o.filter(Boolean).map(function(e){return e(n)});return _objectSpread2$1({},e,{dispatch:t=compose$5.apply(void 0,r)(e.dispatch)})}}}var redux=Object.freeze({__proto__:null,__DO_NOT_USE__ActionTypes:ActionTypes$1,applyMiddleware:applyMiddleware$1,bindActionCreators:bindActionCreators$2,combineReducers:combineReducers,compose:compose$5,createStore:createStore$3}),developmentOnly={},compose$4=redux.compose,MiddlewareManager=(developmentOnly.__esModule=!0,developmentOnly.composeWithDevTools=function(){if(0!==arguments.length)return"object"==typeof arguments[0]?compose$4:compose$4.apply(null,arguments)},developmentOnly.devToolsEnhancer=function(){return function(e){return e}},{}),lib$1={__esModule:!0},_redux=(lib$1.createDynamicMiddlewares=lib$1.resetMiddlewares=lib$1.removeMiddleware=lib$1.addMiddleware=void 0,redux),createDynamicMiddlewares=function(){var i=[];return{enhancer:function(r){return function(n){return function(e){var t=i.map(function(e){return e(r)});return _redux.compose.apply(void 0,t)(n)(e)}}},addMiddleware:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];i=[].concat(i,t)},removeMiddleware:function(t){var n=i.findIndex(function(e){return e===t});-1===n?console.error("Middleware does not exist!",t):i=i.filter(function(e,t){return t!==n})},resetMiddlewares:function(){i=[]}}},dynamicMiddlewaresInstance=createDynamicMiddlewares(),addMiddleware=(lib$1.default=dynamicMiddlewaresInstance.enhancer,dynamicMiddlewaresInstance.addMiddleware),removeMiddleware=dynamicMiddlewaresInstance.removeMiddleware,resetMiddlewares=dynamicMiddlewaresInstance.resetMiddlewares,redux_dynamic_middlewares_1=(lib$1.addMiddleware=addMiddleware,lib$1.removeMiddleware=removeMiddleware,lib$1.resetMiddlewares=resetMiddlewares,lib$1.createDynamicMiddlewares=createDynamicMiddlewares,MiddlewareManager.__esModule=!0,lib$1),ModuleManager=(MiddlewareManager.getMiddlewareManager=function(){var t=redux_dynamic_middlewares_1.createDynamicMiddlewares();return{getItems:function(){return[]},enhancer:t.enhancer,add:function(e){return t.addMiddleware.apply(t,e),e},remove:function(e){return e.forEach(t.removeMiddleware),e},dispose:function(){t.resetMiddlewares()}}},{}),ReducerManager={},RefCounter={};function getObjectRefCounter(r,i){r=r||function(e,t){return e===t},i=i||function(){return!1};var o=[],a=[];return{getCount:function(t){var e;return null==t||-1===(e=o.findIndex(function(e){return e&&r(e,t)}))?0:a[e]},add:function(t){var e,n;null!=t&&(-(n=1)===(e=o.findIndex(function(e){return e&&r(e,t)}))?(e=o.length,o.push(t)):n=a[e]+1,i(t)&&(n=1/0),a[e]=n)},remove:function(t){if(!i(t)){var e=o.findIndex(function(e){return e&&r(e,t)});if(-1!==e){if(1===a[e])return delete o[e],delete a[e],!0;a[e]=a[e]-1}}return!1}}}function getStringRefCounter(){var t={};return{getCount:function(e){return null!=e&&t[e]||0},add:function(e){null!=e&&(t[e]?t[e]++:t[e]=1)},remove:function(e){if(null!=e&&t[e]){if(1===t[e])return delete t[e],!0;t[e]--}return!1}}}RefCounter.__esModule=!0,RefCounter.getObjectRefCounter=getObjectRefCounter,RefCounter.getStringRefCounter=getStringRefCounter;var __assign$4=commonjsGlobal$1&&commonjsGlobal$1.__assign||function(){return(__assign$4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},redux_1$1=(ReducerManager.__esModule=!0,redux),RefCounter_1$1=RefCounter;function getRefCountedReducerManager(n){var e,r=RefCounter_1$1.getStringRefCounter();for(e in n.getReducerMap())r.add(e);return{reduce:n.reduce,getReducerMap:n.getReducerMap,add:function(e,t){0===r.getCount(e)&&n.add(e,t),r.add(e)},remove:function(e){r.remove(e),0===r.getCount(e)&&n.remove(e)}}}function getReducerManager(e,n){var i=(n=void 0===n?redux_1$1.combineReducers:n)(e),r=__assign$4({},e),o=[];return{getReducerMap:function(){return r},reduce:function(e,t){if(0<o.length){e=__assign$4({},e);for(var n=0,r=o;n<r.length;n++)delete e[r[n]];o=[]}return i(e=void 0===e?{}:e,t)},add:function(e,t){e&&!r[e]&&(r[e]=t,i=getCombinedReducer(r,n))},remove:function(e){e&&r[e]&&(delete r[e],o.push(e),i=getCombinedReducer(r,n))}}}function getCombinedReducer(e,t){return void 0===t&&(t=redux_1$1.combineReducers),e&&0!==Object.keys(e).length?t(e):function(e,t){return e||null}}ReducerManager.getRefCountedReducerManager=getRefCountedReducerManager,ReducerManager.getReducerManager=getReducerManager;var __spreadArrays$4=commonjsGlobal$1&&commonjsGlobal$1.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},ReducerManager_1=(ModuleManager.__esModule=!0,ReducerManager);function getModuleManager(o,r,a){function s(e){if(e){if(!t)throw new Error("setDispatch should be called on ModuleManager before adding any modules.");e.forEach(t)}}var l,t=null,c=[],u=new Set,e={getReducer:function(e,t){return l?l.reduce(e,t):e||null},setDispatch:function(e){t=e},getItems:function(){return[]},add:function(e){var i;e&&0!==e.length&&(e=e.filter(function(e){return e}),i=[],e.forEach(function(e){if(!u.has(e.id)){u.add(e.id),c.push(e);var t=e.reducerMap;if(t)if(l)for(var n in t)l.add(n,t[n]);else l=ReducerManager_1.getRefCountedReducerManager(ReducerManager_1.getReducerManager(t,a));var r=e.middlewares;r&&(r=r)&&o.add(r),i.push(e)}}),t({type:"@@Internal/ModuleManager/SeedReducers"}),i.forEach(function(t){r.forEach(function(e){e.onModuleAdded&&e.onModuleAdded(t)});var e={type:"@@Internal/ModuleManager/ModuleAdded",payload:t.id};s(t.initialActions?__spreadArrays$4([e],t.initialActions):[e])}))},remove:function(e){e&&(e=e.filter(function(e){return e}).reverse()).forEach(function(t){if(u.has(t.id)){s(t.finalActions);var e=t.reducerMap;if(e&&l)for(var n in e)l.remove(n);(e=t.middlewares)&&o.remove(e),r.forEach(function(e){e.onModuleRemoved&&e.onModuleRemoved(t)}),u.delete(t.id),c=c.filter(function(e){return e.id!==t.id}),s([{type:"@@Internal/ModuleManager/ModuleRemoved",payload:t.id}])}})},dispose:function(){e.remove(c)}};return e}ModuleManager.getModuleManager=getModuleManager;var RefCountedManager={},__assign$3=commonjsGlobal$1&&commonjsGlobal$1.__assign||function(){return(__assign$3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},RefCounter_1=(RefCountedManager.__esModule=!0,RefCounter);function getRefCountedManager(n,e,t){var r=RefCounter_1.getObjectRefCounter(e,t),e=(n.getItems().forEach(function(e){return r.add(e)}),__assign$3({},n));return e.add=function(e){var t;e&&(t=(e=e.filter(function(e){return e})).filter(function(e){return 0===r.getCount(e)}),n.add(t),e.forEach(r.add))},e.remove=function(e){e&&e.forEach(function(e){e&&(r.remove(e),0===r.getCount(e))&&n.remove([e])})},e.dispose=function(){n.dispose()},e}RefCountedManager.getRefCountedManager=getRefCountedManager;var Flatten={},__spreadArrays$3=commonjsGlobal$1&&commonjsGlobal$1.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function flatten(e){if(e){for(var t=e.slice(),n=0;n<t.length;)Array.isArray(t[n])?t.splice.apply(t,__spreadArrays$3([n,1],t[n])):n++;return t}return e}Flatten.__esModule=!0,Flatten.flatten=flatten;var __spreadArrays$2=commonjsGlobal$1&&commonjsGlobal$1.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},redux_1=(ModuleStore.__esModule=!0,redux),developmentOnly_1=developmentOnly,MiddlewareManager_1=MiddlewareManager,ModuleManager_1=ModuleManager,RefCountedManager_1=RefCountedManager,Flatten_1=Flatten;function createStore$2(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];function r(e){var t=Flatten_1.flatten(e);return p.add(t),{remove:function(){p.remove(t)}}}function i(e){return r([e])}var o=e.initialState,o=void 0===o?{}:o,a=e.extensions,s=void 0===a?[]:a,a=e.enhancers,a=void 0===a?[]:a,l=e.advancedComposeEnhancers,l=void 0===l?developmentOnly_1.composeWithDevTools({}):l,c=e.advancedCombineReducers,u=s.reduce(function(e,t){return t.middleware&&e.push.apply(e,t.middleware),e},[]),d=RefCountedManager_1.getRefCountedManager(MiddlewareManager_1.getMiddlewareManager(),function(e,t){return e===t}),l=l.apply(void 0,__spreadArrays$2(a,[redux_1.applyMiddleware.apply(void 0,__spreadArrays$2(u,[d.enhancer]))])),p=RefCountedManager_1.getRefCountedManager(ModuleManager_1.getModuleManager(d,s,c),function(e,t){return e.id===t.id},function(e){return e.retained}),a=redux_1.createStore(p.getReducer,o,l);p.setDispatch(a.dispatch);return s.forEach(function(e){e.onModuleManagerCreated&&e.onModuleManagerCreated({addModule:i,addModules:r})}),a.addModule=i,a.addModules=r,a.dispose=function(){p.dispose(),d.dispose(),s.forEach(function(e){e.dispose&&e.dispose()})},a.addModules(t),a}ModuleStore.createStore=createStore$2;var ComparableMap={};function getMap(r){var i=[],o={};return{keys:i,get:function(t){if(t){var e=i.findIndex(function(e){return e&&r(e,t)});if(-1!==e)return o[e]}},add:function(t,e){t&&-1===i.findIndex(function(e){return e&&r(e,t)})&&(i.push(t),o[i.length-1]=e)},remove:function(t){if(t){var e,n=i.findIndex(function(e){return e&&r(e,t)});if(-1!==n)return delete i[n],e=o[n],delete o[n],e}}}}ComparableMap.__esModule=!0,ComparableMap.getMap=getMap,function(n){function e(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}n.__esModule=!0,e(ModuleStore),e(ComparableMap),e(RefCounter),e(MiddlewareManager),e(RefCountedManager)}(lib$2);var lib={},SagaExtension={},createSymbol=function(e){return"@@redux-saga/"+e},CANCEL$1=createSymbol("CANCEL_PROMISE"),CHANNEL_END_TYPE=createSymbol("CHANNEL_END"),IO=createSymbol("IO"),MATCH$2=createSymbol("MATCH"),MULTICAST=createSymbol("MULTICAST"),SAGA_ACTION=createSymbol("SAGA_ACTION"),SELF_CANCELLATION=createSymbol("SELF_CANCELLATION"),TASK=createSymbol("TASK"),TASK_CANCEL=createSymbol("TASK_CANCEL"),TERMINATE=createSymbol("TERMINATE"),SAGA_LOCATION=createSymbol("LOCATION"),undef=function(e){return null==e},notUndef=function(e){return null!=e},func=function(e){return"function"==typeof e},string$1=function(e){return"string"==typeof e},array$1=Array.isArray,promise$2=function(e){return e&&func(e.then)},iterator=function(e){return e&&func(e.next)&&func(e.throw)},pattern=function e(t){return t&&(string$1(t)||symbol$1(t)||func(t)||array$1(t)&&t.every(e))},channel$2=function(e){return e&&func(e.take)&&func(e.close)},stringableFunc=function(e){return func(e)&&e.hasOwnProperty("toString")},symbol$1=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},multicast=function(e){return channel$2(e)&&e[MULTICAST]},MAX_SIGNED_INT=2147483647;function delayP(t,n){void 0===n&&(n=!0);var r,e=new Promise(function(e){r=setTimeout(e,Math.min(MAX_SIGNED_INT,t),n)});return e[CANCEL$1]=function(){clearTimeout(r)},e}var konst=function(e){return function(){return e}},kTrue=konst(!0),noop$5=function(){},identity$3=function(e){return e},assignWithSymbols=function(t,n){_extends(t,n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(n).forEach(function(e){t[e]=n[e]})},flatMap=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))};function remove$1(e,t){t=e.indexOf(t);0<=t&&e.splice(t,1)}function once(e){var t=!1;return function(){t||(t=!0,e())}}var kThrow=function(e){throw e},kReturn=function(e){return{value:e,done:!0}};function makeIterator(e,t,n){var r={meta:{name:n=void 0===n?"iterator":n},next:e,throw:t=void 0===t?kThrow:t,return:kReturn,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function logError(e,t){t=t.sagaStack;console.error(e),console.error(t)}var createEmptyArray=function(e){return Array.apply(null,new Array(e))},wrapSagaDispatch=function(t){return function(e){return t(Object.defineProperty(e,SAGA_ACTION,{value:!0}))}},shouldTerminate=function(e){return e===TERMINATE},shouldCancel=function(e){return e===TASK_CANCEL},shouldComplete=function(e){return shouldTerminate(e)||shouldCancel(e)};function createAllStyleChildCallbacks(e,r){var i,t=Object.keys(e),o=t.length,a=0,s=array$1(e)?createEmptyArray(o):{},l={};return t.forEach(function(n){function e(e,t){i||(t||shouldComplete(e)?(r.cancel(),r(e,t)):(s[n]=e,++a===o&&(i=!0,r(s))))}e.cancel=noop$5,l[n]=e}),r.cancel=function(){i||(i=!0,t.forEach(function(e){return l[e].cancel()}))},l}function getMetaInfo(e){return{name:e.name||"anonymous",location:getLocation$1(e)}}function getLocation$1(e){return e[SAGA_LOCATION]}var BUFFER_OVERFLOW="Channel's Buffer overflow!",ON_OVERFLOW_THROW=1,ON_OVERFLOW_DROP=2,ON_OVERFLOW_SLIDE=3,ON_OVERFLOW_EXPAND=4,zeroBuffer={isEmpty:kTrue,put:noop$5,take:noop$5};function ringBuffer(n,r){void 0===n&&(n=10);function i(e){a[l]=e,l=(l+1)%n,s++}function t(){var e;if(0!=s)return e=a[c],a[c]=null,s--,c=(c+1)%n,e}function o(){for(var e=[];s;)e.push(t());return e}var a=new Array(n),s=0,l=0,c=0;return{isEmpty:function(){return 0==s},put:function(e){var t;if(s<n)i(e);else switch(r){case ON_OVERFLOW_THROW:throw new Error(BUFFER_OVERFLOW);case ON_OVERFLOW_SLIDE:a[l]=e,c=l=(l+1)%n;break;case ON_OVERFLOW_EXPAND:t=2*n,a=o(),s=a.length,l=a.length,c=0,a.length=t,n=t,i(e)}},take:t,flush:o}}var none=function(){return zeroBuffer},fixed=function(e){return ringBuffer(e,ON_OVERFLOW_THROW)},dropping=function(e){return ringBuffer(e,ON_OVERFLOW_DROP)},sliding=function(e){return ringBuffer(e,ON_OVERFLOW_SLIDE)},expanding=function(e){return ringBuffer(e,ON_OVERFLOW_EXPAND)},buffers=Object.freeze({__proto__:null,none:none,fixed:fixed,dropping:dropping,sliding:sliding,expanding:expanding}),TAKE="TAKE",PUT="PUT",ALL="ALL",RACE="RACE",CALL="CALL",CPS="CPS",FORK="FORK",JOIN="JOIN",CANCEL="CANCEL",SELECT="SELECT",ACTION_CHANNEL="ACTION_CHANNEL",CANCELLED$1="CANCELLED",FLUSH="FLUSH",GET_CONTEXT="GET_CONTEXT",SET_CONTEXT="SET_CONTEXT",makeEffect=function(e,t){var n={};return n[IO]=!0,n.combinator=!1,n.type=e,n.payload=t,n},detach=function(e){return makeEffect(FORK,_extends({},e.payload,{detached:!0}))};function take(e,t){return pattern(e=void 0===e?"*":e)?(notUndef(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),makeEffect(TAKE,{pattern:e})):multicast(e)&&notUndef(t)&&pattern(t)?makeEffect(TAKE,{channel:e,pattern:t}):channel$2(e)?(notUndef(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),makeEffect(TAKE,{channel:e})):void 0}function put(e,t){return undef(t)&&(t=e,e=void 0),makeEffect(PUT,{channel:e,action:t})}function all(e){e=makeEffect(ALL,e);return e.combinator=!0,e}function getFnCallDescriptor(e,t){var n,r=null;return func(e)?n=e:(n=array$1(e)?(r=e[0],e[1]):(r=e.context,e.fn),r&&string$1(n)&&func(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function call$f(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return makeEffect(CALL,getFnCallDescriptor(e,n))}function fork(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return makeEffect(FORK,getFnCallDescriptor(e,n))}function cancel(e){return makeEffect(CANCEL,e=void 0===e?SELF_CANCELLATION:e)}function select(e){void 0===e&&(e=identity$3);for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return makeEffect(SELECT,{selector:e,args:n})}function actionChannel(e,t){return makeEffect(ACTION_CHANNEL,{pattern:e,buffer:t})}function cancelled(){return makeEffect(CANCELLED$1,{})}function flush$3(e){return makeEffect(FLUSH,e)}var delay$1=call$f.bind(null,delayP);function _typeof$4(e){return(_typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _toPrimitive(e,t){if("object"!==_typeof$4(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!==_typeof$4(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"===_typeof$4(e)?e:String(e)}function _defineProperty$1(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ownKeys$3(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function _objectSpread2(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys$3(Object(n),!0).forEach(function(e){_defineProperty$1(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys$3(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var randomString$1=function(){return Math.random().toString(36).substring(7).split("").join(".")};function compose$3(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function deferred(){var n={};return n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n}randomString$1(),randomString$1();var queue$2=[],semaphore=0;function exec$1(e){try{suspend(),e()}finally{release()}}function asap(e){queue$2.push(e),semaphore||(suspend(),flush$2())}function immediately(e){try{return suspend(),e()}finally{flush$2()}}function suspend(){semaphore++}function release(){semaphore--}function flush$2(){var e;for(release();!semaphore&&void 0!==(e=queue$2.shift());)exec$1(e)}var array=function(e){return function(t){return e.some(function(e){return matcher(e)(t)})}},predicate=function(t){return function(e){return t(e)}},string=function(t){return function(e){return e.type===String(t)}},symbol=function(t){return function(e){return e.type===t}},wildcard=function(){return kTrue};function matcher(e){var t="*"===e?wildcard:string$1(e)?string:array$1(e)?array:stringableFunc(e)?string:func(e)?predicate:symbol$1(e)?symbol:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var END={type:CHANNEL_END_TYPE},isEnd=function(e){return e&&e.type===CHANNEL_END_TYPE};function channel$1(t){void 0===t&&(t=expanding());var r=!1,i=[];return{take:function(e){r&&t.isEmpty()?e(END):t.isEmpty()?(i.push(e),e.cancel=function(){remove$1(i,e)}):e(t.take())},put:function(e){if(!r)return 0===i.length?t.put(e):void i.shift()(e)},flush:function(e){r&&t.isEmpty()?e(END):e(t.flush())},close:function(){if(!r){r=!0;var e=i;i=[];for(var t=0,n=e.length;t<n;t++)(0,e[t])(END)}}}}function eventChannel(e,t){void 0===t&&(t=none());function n(){r||(r=!0,func(o)&&o(),i.close())}var r=!1,i=channel$1(t),o=e(function(e){isEnd(e)?n():i.put(e)});return o=once(o),r&&o(),{take:i.take,flush:i.flush,close:n}}function multicastChannel(){function n(){l===s&&(l=s.slice())}function o(){a=!0,s=l,l=[],s.forEach(function(e){e(END)})}var a=!1,s=[],l=s,e={};return e[MULTICAST]=!0,e.put=function(e){if(!a)if(isEnd(e))o();else for(var t=s=l,n=0,r=t.length;n<r;n++){var i=t[n];i[MATCH$2](e)&&(i.cancel(),i(e))}},e.take=function(e,t){void 0===t&&(t=wildcard),a?e(END):(e[MATCH$2]=t,n(),l.push(e),e.cancel=once(function(){n(),remove$1(l,e)}))},e.close=o,e}function stdChannel(){var e=multicastChannel(),t=e.put;return e.put=function(e){e[SAGA_ACTION]?t(e):asap(function(){t(e)})},e}var RUNNING=0,CANCELLED=1,ABORTED=2,DONE=3;function resolvePromise(e,t){var n=e[CANCEL$1];func(n)&&(t.cancel=n),e.then(t,function(e){t(e,!0)})}var _effectRunnerMap,current=0,nextSagaId=function(){return++current};function getIteratorMetaInfo(e,t){return e.isSagaIterator?{name:e.meta.name}:getMetaInfo(t)}function createTaskIterator(e){var t=e.context,n=e.fn,e=e.args;try{var r,i=n.apply(t,e);return iterator(i)?i:(r=!1,makeIterator(function(e){return r?{value:e,done:!0}:(r=!0,{value:i,done:!promise$2(i)})}))}catch(e){return makeIterator(function(){throw e})}}function runPutEffect(t,e,n){var r=e.channel,i=e.action,o=e.resolve;asap(function(){var e;try{e=(r?r.put:t.dispatch)(i)}catch(e){return void n(e,!0)}o&&promise$2(e)?resolvePromise(e,n):n(e)})}function runTakeEffect(e,t,n){function r(e){e instanceof Error?n(e,!0):isEnd(e)&&!o?n(TERMINATE):n(e)}var i=t.channel,e=void 0===i?e.channel:i,i=t.pattern,o=t.maybe;try{e.take(r,notUndef(i)?matcher(i):null)}catch(e){return void n(e,!0)}n.cancel=r.cancel}function runCallEffect(e,t,n,r){var i=t.context,o=t.fn,t=t.args,r=r.task;try{var a=o.apply(i,t);promise$2(a)?resolvePromise(a,n):iterator(a)?proc(e,a,r.context,current,getMetaInfo(o),!1,n):n(a)}catch(e){n(e,!0)}}function runCPSEffect(e,t,n){var r=t.context,i=t.fn,t=t.args;try{function o(e,t){undef(e)?n(t):n(e,!0)}i.apply(r,t.concat(o)),o.cancel&&(n.cancel=o.cancel)}catch(e){n(e,!0)}}function runForkEffect(t,e,n,r){var i=e.context,o=e.fn,a=e.args,s=e.detached,l=r.task,c=createTaskIterator({context:i,fn:o,args:a}),u=getIteratorMetaInfo(c,o);immediately(function(){var e=proc(t,c,l.context,current,u,s,void 0);s?n(e):e.isRunning()?(l.queue.addTask(e),n(e)):e.isAborted()?l.queue.abort(e.error()):n(e)})}function runJoinEffect(e,t,n,r){function i(e,t){var n;e.isRunning()?(n={task:a,cb:t},t.cancel=function(){e.isRunning()&&remove$1(e.joiners,n)},e.joiners.push(n)):e.isAborted()?t(e.error(),!0):t(e.result())}var o,a=r.task;array$1(t)?0===t.length?n([]):(o=createAllStyleChildCallbacks(t,n),t.forEach(function(e,t){i(e,o[t])})):i(t,n)}function cancelSingleTask(e){e.isRunning()&&e.cancel()}function runCancelEffect(e,t,n,r){r=r.task;t===SELF_CANCELLATION?cancelSingleTask(r):array$1(t)?t.forEach(cancelSingleTask):cancelSingleTask(t),n()}function runAllEffect(e,t,n,r){var i,o=r.digestEffect,a=current,r=Object.keys(t);0===r.length?n(array$1(t)?[]:{}):(i=createAllStyleChildCallbacks(t,n),r.forEach(function(e){o(t[e],a,i[e],e)}))}function runRaceEffect(e,t,r,n){var i=n.digestEffect,o=current,a=Object.keys(t),s=array$1(t)?createEmptyArray(a.length):{},l={},c=!1;a.forEach(function(n){function e(e,t){c||(t||shouldComplete(e)?(r.cancel(),r(e,t)):(r.cancel(),c=!0,s[n]=e,r(s)))}e.cancel=noop$5,l[n]=e}),r.cancel=function(){c||(c=!0,a.forEach(function(e){return l[e].cancel()}))},a.forEach(function(e){c||i(t[e],o,l[e],e)})}function runSelectEffect(e,t,n){var r=t.selector,t=t.args;try{n(r.apply(void 0,[e.getState()].concat(t)))}catch(e){n(e,!0)}}function runChannelEffect(t,e,n){function r(e){isEnd(e)||t.channel.take(r,a),o.put(e)}var i=e.pattern,o=channel$1(e.buffer),a=matcher(i),s=o.close;o.close=function(){r.cancel(),s()},t.channel.take(r,a),n(o)}function runCancelledEffect(e,t,n,r){n(r.task.isCancelled())}function runFlushEffect(e,t,n){t.flush(n)}function runGetContextEffect(e,t,n,r){n(r.task.context[t])}function runSetContextEffect(e,t,n,r){r=r.task;assignWithSymbols(r.context,t),n()}(_effectRunnerMap={})[TAKE]=runTakeEffect,_effectRunnerMap[PUT]=runPutEffect,_effectRunnerMap[ALL]=runAllEffect,_effectRunnerMap[RACE]=runRaceEffect,_effectRunnerMap[CALL]=runCallEffect,_effectRunnerMap[CPS]=runCPSEffect,_effectRunnerMap[FORK]=runForkEffect,_effectRunnerMap[JOIN]=runJoinEffect,_effectRunnerMap[CANCEL]=runCancelEffect,_effectRunnerMap[SELECT]=runSelectEffect,_effectRunnerMap[ACTION_CHANNEL]=runChannelEffect,_effectRunnerMap[CANCELLED$1]=runCancelledEffect,_effectRunnerMap[FLUSH]=runFlushEffect,_effectRunnerMap[GET_CONTEXT]=runGetContextEffect,_effectRunnerMap[SET_CONTEXT]=runSetContextEffect;var effectRunnerMap=_effectRunnerMap;function forkQueue(r,t,i){var o,a=[],s=!1;e(r);function l(e){t(),n(),i(e,!0)}function e(n){a.push(n),n.cont=function(e,t){s||(remove$1(a,n),n.cont=noop$5,t?l(e):(n===r&&(o=e),a.length||(s=!0,i(o))))}}function n(){s||(s=!0,a.forEach(function(e){e.cont=noop$5,e.cancel()}),a=[])}return{addTask:e,cancelAll:n,abort:l,getTasks:function(){return a}}}function formatLocation(e,t){return e+"?"+t}function effectLocationAsString(e){e=getLocation$1(e);return e?e.code+" "+formatLocation(e.fileName,e.lineNumber):""}function sagaLocationAsString(e){var t=e.name,e=e.location;return e?t+" "+formatLocation(e.fileName,e.lineNumber):t}function cancelledTasksAsString(e){e=flatMap(function(e){return e.cancelledTasks},e);return e.length?["Tasks cancelled due to error:"].concat(e).join("\n"):""}var crashedEffect=null,sagaStack=[],addSagaFrame=function(e){e.crashedEffect=crashedEffect,sagaStack.push(e)},clear$1=function(){crashedEffect=null,sagaStack.length=0},setCrashedEffect=function(e){crashedEffect=e},toString$8=function(){var e=sagaStack[0],t=sagaStack.slice(1),n=e.crashedEffect?effectLocationAsString(e.crashedEffect):null;return["The above error occurred in task "+sagaLocationAsString(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map(function(e){return" created by "+sagaLocationAsString(e.meta)}),[cancelledTasksAsString(sagaStack)]).join("\n")};function newTask(r,e,t,n,i,o,a){void 0===a&&(a=noop$5);var s,l,c=RUNNING,u=null,d=[],p=Object.create(t),f=forkQueue(e,function(){d.push.apply(d,f.getTasks().map(function(e){return e.meta.name}))},h);function h(t,n){var e;n?(c=ABORTED,addSagaFrame({meta:i,cancelledTasks:d}),m.isRoot&&(e=toString$8(),clear$1(),r.onError(t,{sagaStack:e})),l=t,u&&u.reject(t)):(t===TASK_CANCEL?c=CANCELLED:c!==CANCELLED&&(c=DONE),s=t,u&&u.resolve(t)),m.cont(t,n),m.joiners.forEach(function(e){e.cb(t,n)}),m.joiners=null}(t={})[TASK]=!0,t.id=n,t.meta=i,t.isRoot=o,t.context=p,t.joiners=[],t.queue=f,t.cancel=function(){c===RUNNING&&(c=CANCELLED,f.cancelAll(),h(TASK_CANCEL,!1))},t.cont=a,t.end=h,t.setContext=function(e){assignWithSymbols(p,e)},t.toPromise=function(){return u||(u=deferred(),c===ABORTED?u.reject(l):c!==RUNNING&&u.resolve(s)),u.promise},t.isRunning=function(){return c===RUNNING},t.isCancelled=function(){return c===CANCELLED||c===RUNNING&&e.status===CANCELLED},t.isAborted=function(){return c===ABORTED},t.result=function(){return s},t.error=function(){return l};var m=t;return m}function proc(s,r,e,i,o,t,n){var l=s.finalizeRunEffect(function(e,t,n){promise$2(e)?resolvePromise(e,n):iterator(e)?proc(s,e,c.context,t,o,!1,n):e&&e[IO]?(0,effectRunnerMap[e.type])(s,e.payload,n,u):n(e)}),a=(d.cancel=noop$5,{meta:o,cancel:function(){a.status===RUNNING&&(a.status=CANCELLED,d(TASK_CANCEL))},status:RUNNING}),c=newTask(s,a,e,i,o,t,n),u={task:c,digestEffect:p};return n&&(n.cancel=c.cancel),d(),c;function d(e,t){try{var n;t?(n=r.throw(e),clear$1()):n=shouldCancel(e)?(a.status=CANCELLED,d.cancel(),func(r.return)?r.return(TASK_CANCEL):{done:!0,value:TASK_CANCEL}):shouldTerminate(e)?func(r.return)?r.return():{done:!0}:r.next(e),n.done?(a.status!==CANCELLED&&(a.status=DONE),a.cont(n.value)):p(n.value,i,d)}catch(e){if(a.status===CANCELLED)throw e;a.status=ABORTED,a.cont(e,!0)}}function p(n,e,r,t){void 0===t&&(t="");var i,o=nextSagaId();function a(e,t){i||(i=!0,r.cancel=noop$5,s.sagaMonitor&&(t?s.sagaMonitor.effectRejected(o,e):s.sagaMonitor.effectResolved(o,e)),t&&setCrashedEffect(n),r(e,t))}s.sagaMonitor&&s.sagaMonitor.effectTriggered({effectId:o,parentEffectId:e,label:t,effect:n}),a.cancel=noop$5,r.cancel=function(){i||(i=!0,a.cancel(),a.cancel=noop$5,s.sagaMonitor&&s.sagaMonitor.effectCancelled(o))},l(n,o,a)}}function runSaga$1(e,t){for(var n=e.channel,n=void 0===n?stdChannel():n,r=e.dispatch,i=e.getState,o=e.context,a=void 0===o?{}:o,s=e.sagaMonitor,o=e.effectMiddlewares,l=e.onError,l=void 0===l?logError:l,c=arguments.length,u=new Array(2<c?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];var p,f=t.apply(void 0,u),h=nextSagaId(),m=(s&&(s.rootSagaStarted=s.rootSagaStarted||noop$5,s.effectTriggered=s.effectTriggered||noop$5,s.effectResolved=s.effectResolved||noop$5,s.effectRejected=s.effectRejected||noop$5,s.effectCancelled=s.effectCancelled||noop$5,s.actionDispatched=s.actionDispatched||noop$5,s.rootSagaStarted({effectId:h,saga:t,args:u})),o=o?(p=compose$3.apply(void 0,o),function(r){return function(e,t,n){return p(function(e){return r(e,t,n)})(e)}}):identity$3,{channel:n,dispatch:wrapSagaDispatch(r),getState:i,sagaMonitor:s,onError:l,finalizeRunEffect:o});return immediately(function(){var e=proc(m,f,a,h,getMetaInfo(t),!0,void 0);return s&&s.effectResolved(h,e),e})}function sagaMiddlewareFactory(e){var n,e=void 0===e?{}:e,t=e.context,r=void 0===t?{}:t,t=e.channel,i=void 0===t?stdChannel():t,o=e.sagaMonitor,a=_objectWithoutPropertiesLoose$2(e,["context","channel","sagaMonitor"]);function s(e){var t=e.getState,e=e.dispatch;return n=runSaga$1.bind(null,_extends({},a,{context:r,channel:i,dispatch:e,getState:t,sagaMonitor:o})),function(n){return function(e){o&&o.actionDispatched&&o.actionDispatched(e);var t=n(e);return i.put(e),t}}}return s.run=function(){return n.apply(void 0,arguments)},s.setContext=function(e){assignWithSymbols(r,e)},s}var reduxSagaCoreNpmProxy_esm=Object.freeze({__proto__:null,default:sagaMiddlewareFactory,CANCEL:CANCEL$1,SAGA_LOCATION:SAGA_LOCATION,buffers:buffers,detach:detach,END:END,channel:channel$1,eventChannel:eventChannel,isEnd:isEnd,multicastChannel:multicastChannel,runSaga:runSaga$1,stdChannel:stdChannel}),SagaManager={},SagaComparer={};function sagaEquals(e,t){var n,r;return("function"!=typeof e||"function"!=typeof t)&&e&&t?"function"==typeof e?(n=e)===(r=t).saga&&!r.argument:"function"==typeof t?(n=e).saga===(r=t)&&!n.argument:(n=e).saga===(r=t).saga&&n.argument===r.argument:e===t}SagaComparer.__esModule=!0,SagaComparer.sagaEquals=sagaEquals;var __spreadArrays$1=commonjsGlobal$1&&commonjsGlobal$1.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},SagaComparer_1$1=(SagaManager.__esModule=!0,SagaComparer),redux_dynamic_modules_core_1$1=lib$2;function getSagaManager(t){var n=redux_dynamic_modules_core_1$1.getMap(SagaComparer_1$1.sagaEquals);return{getItems:function(){return __spreadArrays$1(n.keys)},add:function(e){e&&e.forEach(function(e){e&&!n.get(e)&&n.add(e,runSaga(t,e))})},remove:function(e){e&&e.forEach(function(e){n.get(e)&&n.remove(e).cancel()})},dispose:function(){n.keys.forEach(function(e){return n.get(e).cancel()})}}}function runSaga(e,t){var n;return"function"==typeof t?e.run(t):(n=t.saga,t=t.argument,e.run(n,t))}SagaManager.getSagaManager=getSagaManager,SagaExtension.__esModule=!0;var redux_saga_1=reduxSagaCoreNpmProxy_esm,redux_dynamic_modules_core_1=lib$2,SagaManager_1=SagaManager,SagaComparer_1=SagaComparer;function getSagaExtension(t,e){var e=redux_saga_1.default({context:t,sagaMonitor:void 0,onError:e}),n=redux_dynamic_modules_core_1.getRefCountedManager(SagaManager_1.getSagaManager(e),SagaComparer_1.sagaEquals);return{middleware:[e],onModuleManagerCreated:function(e){t&&(t.moduleManager=e)},onModuleAdded:function(e){e.sagas&&n.add(e.sagas)},onModuleRemoved:function(e){e.sagas&&n.remove(e.sagas)},dispose:function(){n.dispose()}}}function createThunkMiddleware(i){return function(e){var n=e.dispatch,r=e.getState;return function(t){return function(e){return"function"==typeof e?e(n,r,i):t(e)}}}}SagaExtension.getSagaExtension=getSagaExtension,function(e){e.__esModule=!0;var t,n=SagaExtension;for(t in n)e.hasOwnProperty(t)||(e[t]=n[t])}(lib);var thunk=createThunkMiddleware(),thunkMiddleware=(thunk.withExtraArgument=createThunkMiddleware,thunk),redux_thunk_1=thunkMiddleware;function getThunkExtension(){return{middleware:[redux_thunk_1.default]}}var getThunkExtension_1=getThunkExtension,compose$2=redux.compose,composeWithDevTools="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?compose$2:compose$2.apply(null,arguments)};const store$4=lib$2.createStore({initialState:{},extensions:[lib.getSagaExtension(),getThunkExtension_1()],enhancers:[],advancedComposeEnhancers:composeWithDevTools({maxAge:500})});function isPlainObject$1(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function deepClone(t){if(!isPlainObject$1(t))return t;const n={};return Object.keys(t).forEach(e=>{n[e]=deepClone(t[e])}),n}function deepmerge(t,n,r={clone:!0}){const i=r.clone?_extends({},t):t;return isPlainObject$1(t)&&isPlainObject$1(n)&&Object.keys(n).forEach(e=>{"__proto__"!==e&&(isPlainObject$1(n[e])&&e in t&&isPlainObject$1(t[e])?i[e]=deepmerge(t[e],n[e],r):r.clone?i[e]=isPlainObject$1(n[e])?deepClone(n[e]):n[e]:i[e]=n[e])}),i}function formatMuiErrorMessage(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function capitalize$2(e){if("string"!=typeof e)throw new Error(formatMuiErrorMessage(7));return e.charAt(0).toUpperCase()+e.slice(1)}function createChainedFunction(...e){return e.reduce((t,n)=>null==n?t:function(...e){t.apply(this,e),n.apply(this,e)},()=>{})}function debounce$1(t,n=166){let r;function e(...e){clearTimeout(r),r=setTimeout(()=>{t.apply(this,e)},n)}return e.clear=()=>{clearTimeout(r)},e}function deprecatedPropType(e,t){return()=>null}function isMuiElement(e,t){return react.exports.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}function ownerDocument(e){return e&&e.ownerDocument||document}function ownerWindow(e){return ownerDocument(e).defaultView||window}function requirePropFactory(e,t){return()=>null}function setRef(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const useEnhancedEffect="undefined"!=typeof window?react.exports.useLayoutEffect:react.exports.useEffect;var useEnhancedEffect$1=useEnhancedEffect;let globalId=0;function useGlobalId(e){const[t,n]=react.exports.useState(e);e=e||t;return react.exports.useEffect(()=>{null==t&&(globalId+=1,n("mui-"+globalId))},[t]),e}const maybeReactUseId=React$1.useId;function useId(e){var t;return void 0!==maybeReactUseId?(t=maybeReactUseId(),null!=e?e:t):useGlobalId(e)}function unsupportedProp(e,t,n,r,i){return null}function useControlled({controlled:e,default:t}){const n=react.exports.useRef(void 0!==e)["current"],[r,i]=react.exports.useState(t);return[n?e:r,react.exports.useCallback(e=>{n||i(e)},[])]}function useEventCallback(e){const t=react.exports.useRef(e);return useEnhancedEffect$1(()=>{t.current=e}),react.exports.useCallback((...e)=>(0,t.current)(...e),[])}function useForkRef(...e){return react.exports.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{setRef(e,t)})},e)}let hadKeyboardEvent=!0,hadFocusVisibleRecently=!1,hadFocusVisibleRecentlyTimeout;const inputTypesWhitelist={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function focusTriggersKeyboardModality(e){var{type:t,tagName:n}=e;return!("INPUT"!==n||!inputTypesWhitelist[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}function handleKeyDown(e){e.metaKey||e.altKey||e.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){"hidden"===this.visibilityState&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function prepare(e){e.addEventListener("keydown",handleKeyDown,!0),e.addEventListener("mousedown",handlePointerDown,!0),e.addEventListener("pointerdown",handlePointerDown,!0),e.addEventListener("touchstart",handlePointerDown,!0),e.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible(e){e=e.target;try{return e.matches(":focus-visible")}catch(e){}return hadKeyboardEvent||focusTriggersKeyboardModality(e)}function useIsFocusVisible(){var e=react.exports.useCallback(e=>{null!=e&&prepare(e.ownerDocument)},[]);const t=react.exports.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!isFocusVisible(e)&&(t.current=!0)},onBlur:function(){return!(!t.current||(hadFocusVisibleRecently=!0,window.clearTimeout(hadFocusVisibleRecentlyTimeout),hadFocusVisibleRecentlyTimeout=window.setTimeout(()=>{hadFocusVisibleRecently=!1},100),t.current=!1))},ref:e}}function getScrollbarSize(e){e=e.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}let cachedType;function detectScrollType(){var e,t;return cachedType||(e=document.createElement("div"),(t=document.createElement("div")).style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),cachedType="reverse",0<e.scrollLeft?cachedType="default":(e.scrollLeft=1,0===e.scrollLeft&&(cachedType="negative")),document.body.removeChild(e)),cachedType}function getNormalizedScrollLeft(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;switch(detectScrollType()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const usePreviousProps=e=>{const t=react.exports.useRef({});return react.exports.useEffect(()=>{t.current=e}),t.current};var usePreviousProps$1=usePreviousProps;function resolveProps(e,i){const o=_extends({},i);return Object.keys(e).forEach(t=>{if(t.toString().match(/^(components|slots)$/))o[t]=_extends({},e[t],o[t]);else if(t.toString().match(/^(componentsProps|slotProps)$/)){const n=e[t]||{},r=i[t];o[t]={},r&&Object.keys(r)?n&&Object.keys(n)?(o[t]=_extends({},r),Object.keys(n).forEach(e=>{o[t][e]=resolveProps(n[e],r[e])})):o[t]=r:o[t]=n}else void 0===o[t]&&(o[t]=e[t])}),o}function composeClasses(t,r,i=void 0){const n={};return Object.keys(t).forEach(e=>{n[e]=t[e].reduce((e,t)=>{var n;return t&&(""!==(n=r(t))&&e.push(n),i)&&i[t]&&e.push(i[t]),e},[]).join(" ")}),n}const defaultGenerator=e=>e,createClassNameGenerator=()=>{let t=defaultGenerator;return{configure(e){t=e},generate(e){return t(e)},reset(){t=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator();var ClassNameGenerator$1=ClassNameGenerator;const globalStateClassesMapping={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function generateUtilityClass(e,t,n="Mui"){var r=globalStateClassesMapping[t];return r?n+"-"+r:ClassNameGenerator$1.generate(e)+"-"+t}function generateUtilityClasses(t,e,n="Mui"){const r={};return e.forEach(e=>{r[e]=generateUtilityClass(t,e,n)}),r}var THEME_ID="$$material";function memoize$4(t){var n=Object.create(null);return function(e){return void 0===n[e]&&(n[e]=t(e)),n[e]}}var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=memoize$4(function(e){return reactPropsRegex.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91});function sheetForTag$3(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function createStyleElement$3(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var StyleSheet$3=function(){function e(e){var n=this;this._insertTag=function(e){var t=0===n.tags.length?n.insertionPoint?n.insertionPoint.nextSibling:n.prepend?n.container.firstChild:n.before:n.tags[n.tags.length-1].nextSibling;n.container.insertBefore(e,t),n.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(createStyleElement$3(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=sheetForTag$3(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),MS$2="-ms-",MOZ$2="-moz-",WEBKIT$2="-webkit-",COMMENT$2="comm",RULESET$2="rule",DECLARATION$2="decl",IMPORT$2="@import",KEYFRAMES$2="@keyframes",abs$2=Math.abs,from$2=String.fromCharCode,assign$4=Object.assign;function hash$4(e,t){return 45^charat$2(e,0)?(((t<<2^charat$2(e,0))<<2^charat$2(e,1))<<2^charat$2(e,2))<<2^charat$2(e,3):0}function trim$2(e){return e.trim()}function match$6(e,t){return(e=t.exec(e))&&e[0]}function replace$2(e,t,n){return e.replace(t,n)}function indexof$2(e,t){return e.indexOf(t)}function charat$2(e,t){return 0|e.charCodeAt(t)}function substr$2(e,t,n){return e.slice(t,n)}function strlen$2(e){return e.length}function sizeof$2(e){return e.length}function append$2(e,t){return t.push(e),e}function combine$3(e,t){return e.map(t).join("")}var line$2=1,column$2=1,length$2=0,position$3=0,character$2=0,characters$2="";function node$3(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:line$2,column:column$2,length:a,return:""}}function copy$2(e,t){return assign$4(node$3("",null,null,"",null,null,0),e,{length:-e.length},t)}function char$2(){return character$2}function prev$2(){return character$2=0<position$3?charat$2(characters$2,--position$3):0,column$2--,10===character$2&&(column$2=1,line$2--),character$2}function next$2(){return character$2=position$3<length$2?charat$2(characters$2,position$3++):0,column$2++,10===character$2&&(column$2=1,line$2++),character$2}function peek$2(){return charat$2(characters$2,position$3)}function caret$2(){return position$3}function slice$6(e,t){return substr$2(characters$2,e,t)}function token$2(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc$2(e){return line$2=column$2=1,length$2=strlen$2(characters$2=e),position$3=0,[]}function dealloc$2(e){return characters$2="",e}function delimit$2(e){return trim$2(slice$6(position$3-1,delimiter$3(91===e?e+2:40===e?e+1:e)))}function whitespace$3(e){for(;(character$2=peek$2())&&character$2<33;)next$2();return 2<token$2(e)||3<token$2(character$2)?"":" "}function escaping$2(e,t){for(;--t&&next$2()&&!(character$2<48||102<character$2||57<character$2&&character$2<65||70<character$2&&character$2<97););return slice$6(e,caret$2()+(t<6&&32==peek$2()&&32==next$2()))}function delimiter$3(e){for(;next$2();)switch(character$2){case e:return position$3;case 34:case 39:34!==e&&39!==e&&delimiter$3(character$2);break;case 40:41===e&&delimiter$3(e);break;case 92:next$2()}return position$3}function commenter$2(e,t){for(;next$2()&&e+character$2!==57&&(e+character$2!==84||47!==peek$2()););return"/*"+slice$6(t,position$3-1)+"*"+from$2(47===e?e:next$2())}function identifier$2(e){for(;!token$2(peek$2());)next$2();return slice$6(e,position$3)}function compile$2(e){return dealloc$2(parse$7("",null,null,null,[""],e=alloc$2(e),0,[0],e))}function parse$7(e,t,n,r,i,o,a,s,l){for(var c,u,d,p=0,f=0,h=a,m=0,g=0,v=1,y=1,x=1,b=0,C="",$=i,S=C;y;)switch(c=b,b=next$2()){case 40:if(108!=c&&58==charat$2(S,h-1)){-1!=indexof$2(S+=replace$2(delimit$2(b),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:S+=delimit$2(b);break;case 9:case 10:case 13:case 32:S+=whitespace$3(c);break;case 92:S+=escaping$2(caret$2()-1,7);continue;case 47:switch(peek$2()){case 42:case 47:append$2(comment$2(commenter$2(next$2(),caret$2()),t,n),l);break;default:S+="/"}break;case 123*v:s[p++]=strlen$2(S)*x;case 125*v:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+f:-1==x&&(S=replace$2(S,/\f/g,"")),0<g&&strlen$2(S)-h&&append$2(32<g?declaration$2(S+";",r,n,h-1):declaration$2(replace$2(S," ","")+";",r,n,h-2),l);break;case 59:S+=";";default:if(append$2(d=ruleset$2(S,t,n,p,f,i,s,C,$=[],u=[],h),o),123===b)if(0===f)parse$7(S,t,d,d,$,o,h,s,u);else switch(99===m&&110===charat$2(S,3)?100:m){case 100:case 109:case 115:parse$7(e,d,d,r&&append$2(ruleset$2(e,d,d,0,0,i,s,C,i,$=[],h),u),i,u,h,s,r?$:u);break;default:parse$7(S,d,d,d,[""],u,0,s,u)}}p=f=g=0,v=x=1,C=S="",h=a;break;case 58:h=1+strlen$2(S),g=c;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==prev$2())continue;switch(S+=from$2(b),b*v){case 38:x=0<f?1:(S+="\f",-1);break;case 44:s[p++]=(strlen$2(S)-1)*x,x=1;break;case 64:45===peek$2()&&(S+=delimit$2(next$2())),m=peek$2(),f=h=strlen$2(C=S+=identifier$2(caret$2())),b++;break;case 45:45===c&&2==strlen$2(S)&&(v=0)}}return o}function ruleset$2(e,t,n,r,i,o,a,s,l,c,u){for(var d,p=i-1,f=0===i?o:[""],h=sizeof$2(f),m=0,g=0;m<r;++m)for(var v,y=0,x=substr$2(e,p+1,p=abs$2(d=a[m]));y<h;++y)(v=trim$2(0<d?f[y]+" "+x:replace$2(x,/&\f/g,f[y])))&&(l[g++]=v);return node$3(e,t,n,0===i?RULESET$2:s,l,c,u)}function comment$2(e,t,n){return node$3(e,t,n,COMMENT$2,from$2(char$2()),substr$2(e,2,-2),0)}function declaration$2(e,t,n,r){return node$3(e,t,n,DECLARATION$2,substr$2(e,0,r),substr$2(e,r+1,-1),r)}function serialize$2(e,t){for(var n="",r=sizeof$2(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function stringify$5(e,t,n,r){switch(e.type){case IMPORT$2:case DECLARATION$2:return e.return=e.return||e.value;case COMMENT$2:return"";case KEYFRAMES$2:return e.return=e.value+"{"+serialize$2(e.children,r)+"}";case RULESET$2:e.value=e.props.join(",")}return strlen$2(n=serialize$2(e.children,r))?e.return=e.value+"{"+n+"}":""}function middleware$2(a){var s=sizeof$2(a);return function(e,t,n,r){for(var i="",o=0;o<s;o++)i+=a[o](e,t,n,r)||"";return i}}function rulesheet$2(t){return function(e){e.root||(e=e.return)&&t(e)}}var weakMemoize=function(n){var r=new WeakMap;return function(e){var t;return r.has(e)?r.get(e):(t=n(e),r.set(e,t),t)}},identifierWithPointTracking$2=function(e,t,n){for(var r,i=0;r=i,i=peek$2(),38===r&&12===i&&(t[n]=1),!token$2(i);)next$2();return slice$6(e,position$3)},toRules$2=function(e,t){var n=-1,r=44;do{switch(token$2(r)){case 0:38===r&&12===peek$2()&&(t[n]=1),e[n]+=identifierWithPointTracking$2(position$3-1,t,n);break;case 2:e[n]+=delimit$2(r);break;case 4:if(44===r){e[++n]=58===peek$2()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=from$2(r)}}while(r=next$2());return e},getRules$2=function(e,t){return dealloc$2(toRules$2(alloc$2(e),t))},fixedElements$2=new WeakMap,compat$2=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fixedElements$2.get(n))&&!r){fixedElements$2.set(e,!0);for(var i=[],o=getRules$2(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},removeLabel$2=function(e){var t;"decl"===e.type&&108===(t=e.value).charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")};function prefix$5(e,t){switch(hash$4(e,t)){case 5103:return WEBKIT$2+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT$2+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT$2+e+MOZ$2+e+MS$2+e+e;case 6828:case 4268:return WEBKIT$2+e+MS$2+e+e;case 6165:return WEBKIT$2+e+MS$2+"flex-"+e+e;case 5187:return WEBKIT$2+e+replace$2(e,/(\w+).+(:[^]+)/,WEBKIT$2+"box-$1$2"+MS$2+"flex-$1$2")+e;case 5443:return WEBKIT$2+e+MS$2+"flex-item-"+replace$2(e,/flex-|-self/,"")+e;case 4675:return WEBKIT$2+e+MS$2+"flex-line-pack"+replace$2(e,/align-content|flex-|-self/,"")+e;case 5548:return WEBKIT$2+e+MS$2+replace$2(e,"shrink","negative")+e;case 5292:return WEBKIT$2+e+MS$2+replace$2(e,"basis","preferred-size")+e;case 6060:return WEBKIT$2+"box-"+replace$2(e,"-grow","")+WEBKIT$2+e+MS$2+replace$2(e,"grow","positive")+e;case 4554:return WEBKIT$2+replace$2(e,/([^-])(transform)/g,"$1"+WEBKIT$2+"$2")+e;case 6187:return replace$2(replace$2(replace$2(e,/(zoom-|grab)/,WEBKIT$2+"$1"),/(image-set)/,WEBKIT$2+"$1"),e,"")+e;case 5495:case 3959:return replace$2(e,/(image-set\([^]*)/,WEBKIT$2+"$1$`$1");case 4968:return replace$2(replace$2(e,/(.+:)(flex-)?(.*)/,WEBKIT$2+"box-pack:$3"+MS$2+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT$2+e+e;case 4095:case 3583:case 4068:case 2532:return replace$2(e,/(.+)-inline(.+)/,WEBKIT$2+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(6<strlen$2(e)-1-t)switch(charat$2(e,t+1)){case 109:if(45!==charat$2(e,t+4))break;case 102:return replace$2(e,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT$2+"$2-$3$1"+MOZ$2+(108==charat$2(e,t+3)?"$3":"$2-$3"))+e;case 115:return~indexof$2(e,"stretch")?prefix$5(replace$2(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==charat$2(e,t+1))break;case 6444:switch(charat$2(e,strlen$2(e)-3-(~indexof$2(e,"!important")&&10))){case 107:return replace$2(e,":",":"+WEBKIT$2)+e;case 101:return replace$2(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT$2+(45===charat$2(e,14)?"inline-":"")+"box$3$1"+WEBKIT$2+"$2$3$1"+MS$2+"$2box$3")+e}break;case 5936:switch(charat$2(e,t+11)){case 114:return WEBKIT$2+e+MS$2+replace$2(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return WEBKIT$2+e+MS$2+replace$2(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return WEBKIT$2+e+MS$2+replace$2(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return WEBKIT$2+e+MS$2+e+e}return e}var prefixer$2=function(t,e,n,r){if(-1<t.length&&!t.return)switch(t.type){case DECLARATION$2:t.return=prefix$5(t.value,t.length);break;case KEYFRAMES$2:return serialize$2([copy$2(t,{value:replace$2(t.value,"@","@"+WEBKIT$2)})],r);case RULESET$2:if(t.length)return combine$3(t.props,function(e){switch(match$6(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize$2([copy$2(t,{props:[replace$2(e,/:(read-\w+)/,":"+MOZ$2+"$1")]})],r);case"::placeholder":return serialize$2([copy$2(t,{props:[replace$2(e,/:(plac\w+)/,":"+WEBKIT$2+"input-$1")]}),copy$2(t,{props:[replace$2(e,/:(plac\w+)/,":"+MOZ$2+"$1")]}),copy$2(t,{props:[replace$2(e,/:(plac\w+)/,MS$2+"input-$1")]})],r)}return""})}},defaultStylisPlugins$2=[prefixer$2],createCache$3=function(e){var i,t=e.key,n=("css"===t&&(n=document.querySelectorAll("style[data-emotion]:not([data-s])"),Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})),e.stylisPlugins||defaultStylisPlugins$2),r={},o=[],a=e.container||document.head,s=(Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)r[t[n]]=!0;o.push(e)}),[compat$2,removeLabel$2]),l=[stringify$5,rulesheet$2(function(e){i.insert(e)})],c=middleware$2(s.concat(n,l)),s=function(e,t,n,r){i=n,serialize$2(compile$2(e?e+"{"+t.styles+"}":t.styles),c),r&&(u.inserted[t.name]=!0)},u={key:t,sheet:new StyleSheet$3({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:r,registered:{},insert:s};return u.sheet.hydrate(o),u},hoistNonReactStatics=function(e,t){return hoistNonReactStatics_cjs(e,t)},hoistNonReactStatics$1=hoistNonReactStatics,isBrowser$2=!0;function getRegisteredStyles$2(t,n,e){var r="";return e.split(" ").forEach(function(e){void 0!==t[e]?n.push(t[e]+";"):r+=e+" "}),r}var registerStyles$2=function(e,t,n){var r=e.key+"-"+t.name;!1!==n&&!1!==isBrowser$2||void 0!==e.registered[r]||(e.registered[r]=t.styles)},insertStyles$2=function(e,t,n){registerStyles$2(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name])for(var i=t;e.insert(t===i?"."+r:"",i,e.sheet,!0),void 0!==(i=i.next););};function murmur2$2(e){for(var t,n=0,r=0,i=e.length;4<=i;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var unitlessKeys$2={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex$2=/[A-Z]|^ms/g,animationRegex$2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty$2=function(e){return 45===e.charCodeAt(1)},isProcessableValue$2=function(e){return null!=e&&"boolean"!=typeof e},processStyleName$2=memoize$4(function(e){return isCustomProperty$2(e)?e:e.replace(hyphenateRegex$2,"-$&").toLowerCase()}),processStyleValue$2=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(animationRegex$2,function(e,t,n){return cursor$2={name:t,styles:n,next:cursor$2},t})}return 1===unitlessKeys$2[e]||isCustomProperty$2(e)||"number"!=typeof t||0===t?t:t+"px"},noComponentSelectorMessage$2="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation$2(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return cursor$2={name:n.name,styles:n.styles,next:cursor$2},n.name;if(void 0===n.styles)return createStringFromObject$2(e,t,n);var r=n.next;if(void 0!==r)for(;void 0!==r;)cursor$2={name:r.name,styles:r.styles,next:cursor$2},r=r.next;return n.styles+";";case"function":var i,o;if(void 0!==e)return i=cursor$2,o=n(e),cursor$2=i,handleInterpolation$2(e,t,o)}var a;return null!=t&&void 0!==(a=t[n])?a:n}function createStringFromObject$2(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=handleInterpolation$2(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":isProcessableValue$2(a)&&(r+=processStyleName$2(o)+":"+processStyleValue$2(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=handleInterpolation$2(e,t,a);switch(o){case"animation":case"animationName":r+=processStyleName$2(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)isProcessableValue$2(a[l])&&(r+=processStyleName$2(o)+":"+processStyleValue$2(o,a[l])+";")}return r}var cursor$2,labelPattern$2=/label:\s*([^\s;\n{]+)\s*(;|$)/g,serializeStyles$2=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="",o=(cursor$2=void 0,e[0]);null==o||void 0===o.raw?(r=!1,i+=handleInterpolation$2(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=handleInterpolation$2(n,t,e[a]),r&&(i+=o[a]);labelPattern$2.lastIndex=0;for(var s,l="";null!==(s=labelPattern$2.exec(i));)l+="-"+s[1];return{name:murmur2$2(i)+l,styles:i,next:cursor$2}},syncFallback=function(e){return e()},useInsertionEffect$1=React$1.useInsertionEffect||!1,useInsertionEffectAlwaysWithSyncFallback=useInsertionEffect$1||syncFallback,useInsertionEffectWithLayoutFallback=useInsertionEffect$1||react.exports.useLayoutEffect,hasOwnProperty$j={}.hasOwnProperty,EmotionCacheContext=react.exports.createContext("undefined"!=typeof HTMLElement?createCache$3({key:"css"}):null),CacheProvider=EmotionCacheContext.Provider,__unsafe_useEmotionCache=function(){return react.exports.useContext(EmotionCacheContext)},withEmotionCache=function(r){return react.exports.forwardRef(function(e,t){var n=react.exports.useContext(EmotionCacheContext);return r(e,n,t)})},ThemeContext$2=react.exports.createContext({}),useTheme$4=function(){return react.exports.useContext(ThemeContext$2)},getTheme=function(e,t){return"function"==typeof t?t(e):_extends({},e,t)},createCacheWithTheme=weakMemoize(function(t){return weakMemoize(function(e){return getTheme(t,e)})}),ThemeProvider$3=function(e){var t=react.exports.useContext(ThemeContext$2);return e.theme!==t&&(t=createCacheWithTheme(t)(e.theme)),react.exports.createElement(ThemeContext$2.Provider,{value:t},e.children)};function withTheme$1(r){var e=r.displayName||r.name||"Component",t=react.exports.forwardRef(function(e,t){var n=react.exports.useContext(ThemeContext$2);return react.exports.createElement(r,_extends({theme:n,ref:t},e))});return t.displayName="WithTheme("+e+")",hoistNonReactStatics$1(t,r)}var typePropName="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",createEmotionProps=function(e,t){var n,r={};for(n in t)hasOwnProperty$j.call(t,n)&&(r[n]=t[n]);return r[typePropName]=e,r},Insertion$2=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return registerStyles$2(t,n,r),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles$2(t,n,r)}),null},Emotion=withEmotionCache(function(e,t,n){var r,i=e.css,o=("string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]),e[typePropName]),i=[i],a="",i=("string"==typeof e.className?a=getRegisteredStyles$2(t.registered,i,e.className):null!=e.className&&(a=e.className+" "),serializeStyles$2(i,void 0,react.exports.useContext(ThemeContext$2))),s=(a+=t.key+"-"+i.name,{});for(r in e)hasOwnProperty$j.call(e,r)&&"css"!==r&&r!==typePropName&&(s[r]=e[r]);return s.ref=n,s.className=a,react.exports.createElement(react.exports.Fragment,null,react.exports.createElement(Insertion$2,{cache:t,serialized:i,isStringTag:"string"==typeof o}),react.exports.createElement(o,s))}),jsx=function(e,t){var n=arguments;if(null==t||!hasOwnProperty$j.call(t,"css"))return react.exports.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=Emotion,i[1]=createEmotionProps(e,t);for(var o=2;o<r;o++)i[o]=n[o];return react.exports.createElement.apply(null,i)},Global=withEmotionCache(function(e,i){var e=e.styles,o=serializeStyles$2([e],void 0,react.exports.useContext(ThemeContext$2)),a=react.exports.useRef();return useInsertionEffectWithLayoutFallback(function(){var e=i.key+"-global",t=new i.sheet.constructor({key:e,nonce:i.sheet.nonce,container:i.sheet.container,speedy:i.sheet.isSpeedy}),n=!1,r=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return i.sheet.tags.length&&(t.before=i.sheet.tags[0]),null!==r&&(n=!0,r.setAttribute("data-emotion",e),t.hydrate([r])),a.current=[t,n],function(){t.flush()}},[i]),useInsertionEffectWithLayoutFallback(function(){var e=a.current,t=e[0];e[1]?e[1]=!1:(void 0!==o.next&&insertStyles$2(i,o.next,!0),t.tags.length&&(e=t.tags[t.tags.length-1].nextElementSibling,t.before=e,t.flush()),i.insert("",o,t,!1))},[i,o.name]),null});function css(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return serializeStyles$2(t)}var keyframes=function(){var e=css.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},classnames$2=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function merge$1(e,t,n){var r=[],e=getRegisteredStyles$2(e,r,n);return r.length<2?n:e+t(r)}var Insertion$1=function(e){var t=e.cache,n=e.serializedArr;return useInsertionEffectAlwaysWithSyncFallback(function(){for(var e=0;e<n.length;e++)insertStyles$2(t,n[e],!1)}),null},ClassNames=withEmotionCache(function(e,i){function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=serializeStyles$2(t,i.registered);return o.push(r),registerStyles$2(i,r,!1),i.key+"-"+r.name}var o=[],t={css:r,cx:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return merge$1(i.registered,r,classnames$2(t))},theme:react.exports.useContext(ThemeContext$2)},e=e.children(t);return react.exports.createElement(react.exports.Fragment,null,react.exports.createElement(Insertion$1,{cache:i,serializedArr:o}),e)}),emotionReact_browser_esm=Object.freeze({__proto__:null,ClassNames:ClassNames,Global:Global,createElement:jsx,css:css,jsx:jsx,keyframes:keyframes,CacheProvider:CacheProvider,ThemeContext:ThemeContext$2,ThemeProvider:ThemeProvider$3,__unsafe_useEmotionCache:__unsafe_useEmotionCache,useTheme:useTheme$4,withEmotionCache:withEmotionCache,withTheme:withTheme$1}),isBrowser$1=!0;function getRegisteredStyles$1(t,n,e){var r="";return e.split(" ").forEach(function(e){void 0!==t[e]?n.push(t[e]+";"):r+=e+" "}),r}var registerStyles$1=function(e,t,n){var r=e.key+"-"+t.name;!1!==n&&!1!==isBrowser$1||void 0!==e.registered[r]||(e.registered[r]=t.styles)},insertStyles$1=function(e,t,n){registerStyles$1(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name])for(var i=t;e.insert(t===i?"."+r:"",i,e.sheet,!0),void 0!==(i=i.next););};function murmur2$1(e){for(var t,n=0,r=0,i=e.length;4<=i;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var unitlessKeys$1={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex$1=/[A-Z]|^ms/g,animationRegex$1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty$1=function(e){return 45===e.charCodeAt(1)},isProcessableValue$1=function(e){return null!=e&&"boolean"!=typeof e},processStyleName$1=memoize$4(function(e){return isCustomProperty$1(e)?e:e.replace(hyphenateRegex$1,"-$&").toLowerCase()}),processStyleValue$1=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(animationRegex$1,function(e,t,n){return cursor$1={name:t,styles:n,next:cursor$1},t})}return 1===unitlessKeys$1[e]||isCustomProperty$1(e)||"number"!=typeof t||0===t?t:t+"px"},noComponentSelectorMessage$1="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation$1(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return cursor$1={name:n.name,styles:n.styles,next:cursor$1},n.name;if(void 0===n.styles)return createStringFromObject$1(e,t,n);var r=n.next;if(void 0!==r)for(;void 0!==r;)cursor$1={name:r.name,styles:r.styles,next:cursor$1},r=r.next;return n.styles+";";case"function":var i,o;if(void 0!==e)return i=cursor$1,o=n(e),cursor$1=i,handleInterpolation$1(e,t,o)}var a;return null!=t&&void 0!==(a=t[n])?a:n}function createStringFromObject$1(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=handleInterpolation$1(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":isProcessableValue$1(a)&&(r+=processStyleName$1(o)+":"+processStyleValue$1(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=handleInterpolation$1(e,t,a);switch(o){case"animation":case"animationName":r+=processStyleName$1(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)isProcessableValue$1(a[l])&&(r+=processStyleName$1(o)+":"+processStyleValue$1(o,a[l])+";")}return r}var cursor$1,labelPattern$1=/label:\s*([^\s;\n{]+)\s*(;|$)/g,serializeStyles$1=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="",o=(cursor$1=void 0,e[0]);null==o||void 0===o.raw?(r=!1,i+=handleInterpolation$1(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=handleInterpolation$1(n,t,e[a]),r&&(i+=o[a]);labelPattern$1.lastIndex=0;for(var s,l="";null!==(s=labelPattern$1.exec(i));)l+="-"+s[1];return{name:murmur2$1(i)+l,styles:i,next:cursor$1}},testOmitPropsOnStringTag=isPropValid,testOmitPropsOnComponent=function(e){return"theme"!==e},getDefaultShouldForwardProp=function(e){return"string"==typeof e&&96<e.charCodeAt(0)?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(t,e,n){var r,i;return e&&(r=e.shouldForwardProp,i=t.__emotion_forwardProp&&r?function(e){return t.__emotion_forwardProp(e)&&r(e)}:r),i="function"!=typeof i&&n?t.__emotion_forwardProp:i},useInsertionEffect=React$1.useInsertionEffect||function(e){e()};function useInsertionEffectMaybe(e){useInsertionEffect(e)}var Insertion=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return registerStyles$1(t,n,r),useInsertionEffectMaybe(function(){return insertStyles$1(t,n,r)}),null},createStyled$1=function i(o,a){var s,p,l=o.__emotion_real===o,f=l&&o.__emotion_base||o,h=(void 0!==a&&(s=a.label,p=a.target),composeShouldForwardProps(o,a,l)),m=h||getDefaultShouldForwardProp(f),g=!m("as");return function(){var e=arguments,d=l&&void 0!==o.__emotion_styles?o.__emotion_styles.slice(0):[];if(void 0!==s&&d.push("label:"+s+";"),null==e[0]||void 0===e[0].raw)d.push.apply(d,e);else{d.push(e[0][0]);for(var t=e.length,n=1;n<t;n++)d.push(e[n],e[0][n])}var r=withEmotionCache(function(e,t,n){var r=g&&e.as||f,i="",o=[],a=e;if(null==e.theme){for(var s in a={},e)a[s]=e[s];a.theme=react.exports.useContext(ThemeContext$2)}"string"==typeof e.className?i=getRegisteredStyles$1(t.registered,o,e.className):null!=e.className&&(i=e.className+" ");var l,o=serializeStyles$1(d.concat(o),t.registered,a),c=(i+=t.key+"-"+o.name,void 0!==p&&(i+=" "+p),g&&void 0===h?getDefaultShouldForwardProp(r):m),u={};for(l in e)g&&"as"===l||c(l)&&(u[l]=e[l]);return u.className=i,u.ref=n,react.exports.createElement(react.exports.Fragment,null,react.exports.createElement(Insertion,{cache:t,serialized:o,isStringTag:"string"==typeof r}),react.exports.createElement(r,u))});return r.displayName=void 0!==s?s:"Styled("+("string"==typeof f?f:f.displayName||f.name||"Component")+")",r.defaultProps=o.defaultProps,(r.__emotion_real=r).__emotion_base=f,r.__emotion_styles=d,r.__emotion_forwardProp=h,Object.defineProperty(r,"toString",{value:function(){return"."+p}}),r.withComponent=function(e,t){return i(e,_extends({},a,t,{shouldForwardProp:composeShouldForwardProps(r,t,!0)})).apply(void 0,d)},r}},tags=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],newStyled=createStyled$1.bind(),emStyled=(tags.forEach(function(e){newStyled[e]=newStyled(e)}),newStyled);function sheetForTag$2(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function createStyleElement$2(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var StyleSheet$2=function(){function e(e){var n=this;this._insertTag=function(e){var t=0===n.tags.length?n.insertionPoint?n.insertionPoint.nextSibling:n.prepend?n.container.firstChild:n.before:n.tags[n.tags.length-1].nextSibling;n.container.insertBefore(e,t),n.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(createStyleElement$2(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=sheetForTag$2(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),MS$1="-ms-",MOZ$1="-moz-",WEBKIT$1="-webkit-",COMMENT$1="comm",RULESET$1="rule",DECLARATION$1="decl",IMPORT$1="@import",KEYFRAMES$1="@keyframes",abs$1=Math.abs,from$1=String.fromCharCode,assign$3=Object.assign;function hash$3(e,t){return 45^charat$1(e,0)?(((t<<2^charat$1(e,0))<<2^charat$1(e,1))<<2^charat$1(e,2))<<2^charat$1(e,3):0}function trim$1(e){return e.trim()}function match$5(e,t){return(e=t.exec(e))&&e[0]}function replace$1(e,t,n){return e.replace(t,n)}function indexof$1(e,t){return e.indexOf(t)}function charat$1(e,t){return 0|e.charCodeAt(t)}function substr$1(e,t,n){return e.slice(t,n)}function strlen$1(e){return e.length}function sizeof$1(e){return e.length}function append$1(e,t){return t.push(e),e}function combine$2(e,t){return e.map(t).join("")}var line$1=1,column$1=1,length$1=0,position$2=0,character$1=0,characters$1="";function node$2(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:line$1,column:column$1,length:a,return:""}}function copy$1(e,t){return assign$3(node$2("",null,null,"",null,null,0),e,{length:-e.length},t)}function char$1(){return character$1}function prev$1(){return character$1=0<position$2?charat$1(characters$1,--position$2):0,column$1--,10===character$1&&(column$1=1,line$1--),character$1}function next$1(){return character$1=position$2<length$1?charat$1(characters$1,position$2++):0,column$1++,10===character$1&&(column$1=1,line$1++),character$1}function peek$1(){return charat$1(characters$1,position$2)}function caret$1(){return position$2}function slice$5(e,t){return substr$1(characters$1,e,t)}function token$1(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc$1(e){return line$1=column$1=1,length$1=strlen$1(characters$1=e),position$2=0,[]}function dealloc$1(e){return characters$1="",e}function delimit$1(e){return trim$1(slice$5(position$2-1,delimiter$2(91===e?e+2:40===e?e+1:e)))}function whitespace$2(e){for(;(character$1=peek$1())&&character$1<33;)next$1();return 2<token$1(e)||3<token$1(character$1)?"":" "}function escaping$1(e,t){for(;--t&&next$1()&&!(character$1<48||102<character$1||57<character$1&&character$1<65||70<character$1&&character$1<97););return slice$5(e,caret$1()+(t<6&&32==peek$1()&&32==next$1()))}function delimiter$2(e){for(;next$1();)switch(character$1){case e:return position$2;case 34:case 39:34!==e&&39!==e&&delimiter$2(character$1);break;case 40:41===e&&delimiter$2(e);break;case 92:next$1()}return position$2}function commenter$1(e,t){for(;next$1()&&e+character$1!==57&&(e+character$1!==84||47!==peek$1()););return"/*"+slice$5(t,position$2-1)+"*"+from$1(47===e?e:next$1())}function identifier$1(e){for(;!token$1(peek$1());)next$1();return slice$5(e,position$2)}function compile$1(e){return dealloc$1(parse$6("",null,null,null,[""],e=alloc$1(e),0,[0],e))}function parse$6(e,t,n,r,i,o,a,s,l){for(var c,u,d,p=0,f=0,h=a,m=0,g=0,v=1,y=1,x=1,b=0,C="",$=i,S=C;y;)switch(c=b,b=next$1()){case 40:if(108!=c&&58==charat$1(S,h-1)){-1!=indexof$1(S+=replace$1(delimit$1(b),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:S+=delimit$1(b);break;case 9:case 10:case 13:case 32:S+=whitespace$2(c);break;case 92:S+=escaping$1(caret$1()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append$1(comment$1(commenter$1(next$1(),caret$1()),t,n),l);break;default:S+="/"}break;case 123*v:s[p++]=strlen$1(S)*x;case 125*v:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+f:-1==x&&(S=replace$1(S,/\f/g,"")),0<g&&strlen$1(S)-h&&append$1(32<g?declaration$1(S+";",r,n,h-1):declaration$1(replace$1(S," ","")+";",r,n,h-2),l);break;case 59:S+=";";default:if(append$1(d=ruleset$1(S,t,n,p,f,i,s,C,$=[],u=[],h),o),123===b)if(0===f)parse$6(S,t,d,d,$,o,h,s,u);else switch(99===m&&110===charat$1(S,3)?100:m){case 100:case 109:case 115:parse$6(e,d,d,r&&append$1(ruleset$1(e,d,d,0,0,i,s,C,i,$=[],h),u),i,u,h,s,r?$:u);break;default:parse$6(S,d,d,d,[""],u,0,s,u)}}p=f=g=0,v=x=1,C=S="",h=a;break;case 58:h=1+strlen$1(S),g=c;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==prev$1())continue;switch(S+=from$1(b),b*v){case 38:x=0<f?1:(S+="\f",-1);break;case 44:s[p++]=(strlen$1(S)-1)*x,x=1;break;case 64:45===peek$1()&&(S+=delimit$1(next$1())),m=peek$1(),f=h=strlen$1(C=S+=identifier$1(caret$1())),b++;break;case 45:45===c&&2==strlen$1(S)&&(v=0)}}return o}function ruleset$1(e,t,n,r,i,o,a,s,l,c,u){for(var d,p=i-1,f=0===i?o:[""],h=sizeof$1(f),m=0,g=0;m<r;++m)for(var v,y=0,x=substr$1(e,p+1,p=abs$1(d=a[m]));y<h;++y)(v=trim$1(0<d?f[y]+" "+x:replace$1(x,/&\f/g,f[y])))&&(l[g++]=v);return node$2(e,t,n,0===i?RULESET$1:s,l,c,u)}function comment$1(e,t,n){return node$2(e,t,n,COMMENT$1,from$1(char$1()),substr$1(e,2,-2),0)}function declaration$1(e,t,n,r){return node$2(e,t,n,DECLARATION$1,substr$1(e,0,r),substr$1(e,r+1,-1),r)}function serialize$1(e,t){for(var n="",r=sizeof$1(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function stringify$4(e,t,n,r){switch(e.type){case IMPORT$1:case DECLARATION$1:return e.return=e.return||e.value;case COMMENT$1:return"";case KEYFRAMES$1:return e.return=e.value+"{"+serialize$1(e.children,r)+"}";case RULESET$1:e.value=e.props.join(",")}return strlen$1(n=serialize$1(e.children,r))?e.return=e.value+"{"+n+"}":""}function middleware$1(a){var s=sizeof$1(a);return function(e,t,n,r){for(var i="",o=0;o<s;o++)i+=a[o](e,t,n,r)||"";return i}}function rulesheet$1(t){return function(e){e.root||(e=e.return)&&t(e)}}var identifierWithPointTracking$1=function(e,t,n){for(var r,i=0;r=i,i=peek$1(),38===r&&12===i&&(t[n]=1),!token$1(i);)next$1();return slice$5(e,position$2)},toRules$1=function(e,t){var n=-1,r=44;do{switch(token$1(r)){case 0:38===r&&12===peek$1()&&(t[n]=1),e[n]+=identifierWithPointTracking$1(position$2-1,t,n);break;case 2:e[n]+=delimit$1(r);break;case 4:if(44===r){e[++n]=58===peek$1()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=from$1(r)}}while(r=next$1());return e},getRules$1=function(e,t){return dealloc$1(toRules$1(alloc$1(e),t))},fixedElements$1=new WeakMap,compat$1=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fixedElements$1.get(n))&&!r){fixedElements$1.set(e,!0);for(var i=[],o=getRules$1(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},removeLabel$1=function(e){var t;"decl"===e.type&&108===(t=e.value).charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")};function prefix$4(e,t){switch(hash$3(e,t)){case 5103:return WEBKIT$1+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT$1+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT$1+e+MOZ$1+e+MS$1+e+e;case 6828:case 4268:return WEBKIT$1+e+MS$1+e+e;case 6165:return WEBKIT$1+e+MS$1+"flex-"+e+e;case 5187:return WEBKIT$1+e+replace$1(e,/(\w+).+(:[^]+)/,WEBKIT$1+"box-$1$2"+MS$1+"flex-$1$2")+e;case 5443:return WEBKIT$1+e+MS$1+"flex-item-"+replace$1(e,/flex-|-self/,"")+e;case 4675:return WEBKIT$1+e+MS$1+"flex-line-pack"+replace$1(e,/align-content|flex-|-self/,"")+e;case 5548:return WEBKIT$1+e+MS$1+replace$1(e,"shrink","negative")+e;case 5292:return WEBKIT$1+e+MS$1+replace$1(e,"basis","preferred-size")+e;case 6060:return WEBKIT$1+"box-"+replace$1(e,"-grow","")+WEBKIT$1+e+MS$1+replace$1(e,"grow","positive")+e;case 4554:return WEBKIT$1+replace$1(e,/([^-])(transform)/g,"$1"+WEBKIT$1+"$2")+e;case 6187:return replace$1(replace$1(replace$1(e,/(zoom-|grab)/,WEBKIT$1+"$1"),/(image-set)/,WEBKIT$1+"$1"),e,"")+e;case 5495:case 3959:return replace$1(e,/(image-set\([^]*)/,WEBKIT$1+"$1$`$1");case 4968:return replace$1(replace$1(e,/(.+:)(flex-)?(.*)/,WEBKIT$1+"box-pack:$3"+MS$1+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT$1+e+e;case 4095:case 3583:case 4068:case 2532:return replace$1(e,/(.+)-inline(.+)/,WEBKIT$1+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(6<strlen$1(e)-1-t)switch(charat$1(e,t+1)){case 109:if(45!==charat$1(e,t+4))break;case 102:return replace$1(e,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT$1+"$2-$3$1"+MOZ$1+(108==charat$1(e,t+3)?"$3":"$2-$3"))+e;case 115:return~indexof$1(e,"stretch")?prefix$4(replace$1(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==charat$1(e,t+1))break;case 6444:switch(charat$1(e,strlen$1(e)-3-(~indexof$1(e,"!important")&&10))){case 107:return replace$1(e,":",":"+WEBKIT$1)+e;case 101:return replace$1(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT$1+(45===charat$1(e,14)?"inline-":"")+"box$3$1"+WEBKIT$1+"$2$3$1"+MS$1+"$2box$3")+e}break;case 5936:switch(charat$1(e,t+11)){case 114:return WEBKIT$1+e+MS$1+replace$1(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return WEBKIT$1+e+MS$1+replace$1(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return WEBKIT$1+e+MS$1+replace$1(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return WEBKIT$1+e+MS$1+e+e}return e}var prefixer$1=function(t,e,n,r){if(-1<t.length&&!t.return)switch(t.type){case DECLARATION$1:t.return=prefix$4(t.value,t.length);break;case KEYFRAMES$1:return serialize$1([copy$1(t,{value:replace$1(t.value,"@","@"+WEBKIT$1)})],r);case RULESET$1:if(t.length)return combine$2(t.props,function(e){switch(match$5(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize$1([copy$1(t,{props:[replace$1(e,/:(read-\w+)/,":"+MOZ$1+"$1")]})],r);case"::placeholder":return serialize$1([copy$1(t,{props:[replace$1(e,/:(plac\w+)/,":"+WEBKIT$1+"input-$1")]}),copy$1(t,{props:[replace$1(e,/:(plac\w+)/,":"+MOZ$1+"$1")]}),copy$1(t,{props:[replace$1(e,/:(plac\w+)/,MS$1+"input-$1")]})],r)}return""})}},defaultStylisPlugins$1=[prefixer$1],createCache$2=function(e){var i,t=e.key,n=("css"===t&&(n=document.querySelectorAll("style[data-emotion]:not([data-s])"),Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})),e.stylisPlugins||defaultStylisPlugins$1),r={},o=[],a=e.container||document.head,s=(Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)r[t[n]]=!0;o.push(e)}),[compat$1,removeLabel$1]),l=[stringify$4,rulesheet$1(function(e){i.insert(e)})],c=middleware$1(s.concat(n,l)),s=function(e,t,n,r){i=n,serialize$1(compile$1(e?e+"{"+t.styles+"}":t.styles),c),r&&(u.inserted[t.name]=!0)},u={key:t,sheet:new StyleSheet$2({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:r,registered:{},insert:s};return u.sheet.hydrate(o),u};let cache$1;function StyledEngineProvider(e){var{injectFirst:e,children:t}=e;return e&&cache$1?jsxRuntime.exports.jsx(CacheProvider,{value:cache$1,children:t}):t}function isEmpty$6(e){return null==e||0===Object.keys(e).length}function GlobalStyles$4(e){const{styles:t,defaultTheme:n={}}=e;e="function"==typeof t?e=>t(isEmpty$6(e)?n:e):t;return jsxRuntime.exports.jsx(Global,{styles:e})}function styled$3(e,t){return emStyled(e,t)}"object"==typeof document&&(cache$1=createCache$2({key:"css",prepend:!0}));const internal_processStyles=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},_excluded$1z=["values","unit","step"],sortBreakpointsValues=t=>{var e=Object.keys(t).map(e=>({key:e,val:t[e]}))||[];return e.sort((e,t)=>e.val-t.val),e.reduce((e,t)=>_extends({},e,{[t.key]:t.val}),{})};function createBreakpoints(e){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:o=5}=e,t=_objectWithoutPropertiesLoose$2(e,_excluded$1z);e=sortBreakpointsValues(r);const a=Object.keys(e);function n(e){return`@media (min-width:${"number"==typeof r[e]?r[e]:e}${i})`}function s(e){return`@media (max-width:${("number"==typeof r[e]?r[e]:e)-o/100}${i})`}function l(e,t){var n=a.indexOf(t);return`@media (min-width:${"number"==typeof r[e]?r[e]:e}${i}) and `+`(max-width:${(-1!==n&&"number"==typeof r[a[n]]?r[a[n]]:t)-o/100}${i})`}return _extends({keys:a,values:e,up:n,down:s,between:l,only:function(e){return a.indexOf(e)+1<a.length?l(e,a[a.indexOf(e)+1]):n(e)},not:function(e){var t=a.indexOf(e);return 0===t?n(a[1]):t===a.length-1?s(a[t]):l(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:i},t)}const shape={borderRadius:4};var shape$1=shape;function merge(e,t){return t?deepmerge(e,t,{clone:!1}):e}const values$3={xs:0,sm:600,md:900,lg:1200,xl:1536},defaultBreakpoints={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${values$3[e]}px)`};function handleBreakpoints(e,r,i){e=e.theme||{};if(Array.isArray(r)){const o=e.breakpoints||defaultBreakpoints;return r.reduce((e,t,n)=>(e[o.up(o.keys[n])]=i(r[n]),e),{})}if("object"!=typeof r)return i(r);{const n=e.breakpoints||defaultBreakpoints;return Object.keys(r).reduce((e,t)=>{return-1!==Object.keys(n.values||values$3).indexOf(t)?e[n.up(t)]=i(r[t],t):e[t]=r[t],e},{})}}function createEmptyBreakpointObject(n={}){var e;return(null==(e=n.keys)?void 0:e.reduce((e,t)=>{return e[n.up(t)]={},e},{}))||{}}function removeUnusedBreakpoints(e,t){return e.reduce((e,t)=>{var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function mergeBreakpointsInOrder(e,...t){e=createEmptyBreakpointObject(e),t=[e,...t].reduce((e,t)=>deepmerge(e,t),{});return removeUnusedBreakpoints(Object.keys(e),t)}function computeBreakpointsBase(n,e){if("object"!=typeof n)return{};const r={};e=Object.keys(e);return Array.isArray(n)?e.forEach((e,t)=>{t<n.length&&(r[e]=!0)}):e.forEach(e=>{null!=n[e]&&(r[e]=!0)}),r}function resolveBreakpointValues({values:r,breakpoints:e,base:t}){t=t||computeBreakpointsBase(r,e),e=Object.keys(t);if(0===e.length)return r;let i;return e.reduce((e,t,n)=>(Array.isArray(r)?(e[t]=null!=r[n]?r[n]:r[i],i=n):"object"==typeof r?(e[t]=null!=r[t]?r[t]:r[i],i=t):e[t]=r,e),{})}function getPath(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){n=("vars."+t).split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function getStyleValue$1(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:getPath(e,n)||r,i=t?t(i,r,e):i}function style$4(e){const{prop:r,cssProperty:i=e.prop,themeKey:o,transform:a}=e;e=e=>{if(null==e[r])return null;var t=e[r];const n=getPath(e.theme,o)||{};return handleBreakpoints(e,t,e=>{let t=getStyleValue$1(n,a,e);return e===t&&"string"==typeof e&&(t=getStyleValue$1(n,a,""+r+("default"===e?"":capitalize$2(e)),e)),!1===i?t:{[i]:t}})};return e.propTypes={},e.filterProps=[r],e}function memoize$3(t){const n={};return e=>(void 0===n[e]&&(n[e]=t(e)),n[e])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize$3(e=>{if(2<e.length){if(!aliases[e])return[e];e=aliases[e]}var[e,t]=e.split("");const n=properties[e];e=directions[t]||"";return Array.isArray(e)?e.map(e=>n+e):[n+e]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function createUnaryUnit(e,t,n,r){const i=null!=(e=getPath(e,t,!1))?e:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function createUnarySpacing(e){return createUnaryUnit(e,"spacing",8)}function getValue$3(e,t){return"string"==typeof t||null==t?t:(e=e(Math.abs(t)),0<=t?e:"number"==typeof e?-e:"-"+e)}function getStyleFromPropValue(e,r){return n=>e.reduce((e,t)=>(e[t]=getValue$3(r,n),e),{})}function resolveCssProperty(e,t,n,r){return-1===t.indexOf(n)?null:(t=getStyleFromPropValue(getCssProperties(n),r),handleBreakpoints(e,e[n],t))}function style$3(t,n){const r=createUnarySpacing(t.theme);return Object.keys(t).map(e=>resolveCssProperty(t,n,e,r)).reduce(merge,{})}function margin(e){return style$3(e,marginKeys)}function padding(e){return style$3(e,paddingKeys)}function createSpacing(e=8){if(e.mui)return e;const t=createUnarySpacing({spacing:e});e=(...e)=>{return(0===e.length?[1]:e).map(e=>{e=t(e);return"number"==typeof e?e+"px":e}).join(" ")};return e.mui=!0,e}function compose$1(...e){const r=e.reduce((t,n)=>(n.filterProps.forEach(e=>{t[e]=n}),t),{});var t=n=>Object.keys(n).reduce((e,t)=>r[t]?merge(e,r[t](n)):e,{});return t.propTypes={},t.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),t}function borderTransform(e){return"number"!=typeof e?e:e+"px solid"}[...marginKeys,...paddingKeys],margin.propTypes={},margin.filterProps=marginKeys,padding.propTypes={},padding.filterProps=paddingKeys;const border=style$4({prop:"border",themeKey:"borders",transform:borderTransform}),borderTop=style$4({prop:"borderTop",themeKey:"borders",transform:borderTransform}),borderRight=style$4({prop:"borderRight",themeKey:"borders",transform:borderTransform}),borderBottom=style$4({prop:"borderBottom",themeKey:"borders",transform:borderTransform}),borderLeft=style$4({prop:"borderLeft",themeKey:"borders",transform:borderTransform}),borderColor=style$4({prop:"borderColor",themeKey:"palette"}),borderTopColor=style$4({prop:"borderTopColor",themeKey:"palette"}),borderRightColor=style$4({prop:"borderRightColor",themeKey:"palette"}),borderBottomColor=style$4({prop:"borderBottomColor",themeKey:"palette"}),borderLeftColor=style$4({prop:"borderLeftColor",themeKey:"palette"}),borderRadius=e=>{if(void 0===e.borderRadius||null===e.borderRadius)return null;{const t=createUnaryUnit(e.theme,"shape.borderRadius",4);return handleBreakpoints(e,e.borderRadius,e=>({borderRadius:getValue$3(t,e)}))}},gap=(borderRadius.propTypes={},borderRadius.filterProps=["borderRadius"],compose$1(border,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius),e=>{if(void 0===e.gap||null===e.gap)return null;{const t=createUnaryUnit(e.theme,"spacing",8);return handleBreakpoints(e,e.gap,e=>({gap:getValue$3(t,e)}))}}),columnGap=(gap.propTypes={},gap.filterProps=["gap"],e=>{if(void 0===e.columnGap||null===e.columnGap)return null;{const t=createUnaryUnit(e.theme,"spacing",8);return handleBreakpoints(e,e.columnGap,e=>({columnGap:getValue$3(t,e)}))}}),rowGap=(columnGap.propTypes={},columnGap.filterProps=["columnGap"],e=>{if(void 0===e.rowGap||null===e.rowGap)return null;{const t=createUnaryUnit(e.theme,"spacing",8);return handleBreakpoints(e,e.rowGap,e=>({rowGap:getValue$3(t,e)}))}}),gridColumn=(rowGap.propTypes={},rowGap.filterProps=["rowGap"],style$4({prop:"gridColumn"})),gridRow=style$4({prop:"gridRow"}),gridAutoFlow=style$4({prop:"gridAutoFlow"}),gridAutoColumns=style$4({prop:"gridAutoColumns"}),gridAutoRows=style$4({prop:"gridAutoRows"}),gridTemplateColumns=style$4({prop:"gridTemplateColumns"}),gridTemplateRows=style$4({prop:"gridTemplateRows"}),gridTemplateAreas=style$4({prop:"gridTemplateAreas"}),gridArea=style$4({prop:"gridArea"});function paletteTransform(e,t){return"grey"===t?t:e}compose$1(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);const color=style$4({prop:"color",themeKey:"palette",transform:paletteTransform}),bgcolor=style$4({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),backgroundColor=style$4({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});function sizingTransform(e){return e<=1&&0!==e?100*e+"%":e}compose$1(color,bgcolor,backgroundColor);const width=style$4({prop:"width",transform:sizingTransform}),maxWidth=n=>{return void 0!==n.maxWidth&&null!==n.maxWidth?handleBreakpoints(n,n.maxWidth,e=>{var t;return{maxWidth:(null==(t=n.theme)||null==(t=t.breakpoints)||null==(t=t.values)?void 0:t[e])||values$3[e]||sizingTransform(e)}}):null},minWidth=(maxWidth.filterProps=["maxWidth"],style$4({prop:"minWidth",transform:sizingTransform})),height=style$4({prop:"height",transform:sizingTransform}),maxHeight=style$4({prop:"maxHeight",transform:sizingTransform}),minHeight=style$4({prop:"minHeight",transform:sizingTransform}),boxSizing=(style$4({prop:"size",cssProperty:"width",transform:sizingTransform}),style$4({prop:"size",cssProperty:"height",transform:sizingTransform}),style$4({prop:"boxSizing"})),defaultSxConfig=(compose$1(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing),{border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:padding},pt:{style:padding},pr:{style:padding},pb:{style:padding},pl:{style:padding},px:{style:padding},py:{style:padding},padding:{style:padding},paddingTop:{style:padding},paddingRight:{style:padding},paddingBottom:{style:padding},paddingLeft:{style:padding},paddingX:{style:padding},paddingY:{style:padding},paddingInline:{style:padding},paddingInlineStart:{style:padding},paddingInlineEnd:{style:padding},paddingBlock:{style:padding},paddingBlockStart:{style:padding},paddingBlockEnd:{style:padding},m:{style:margin},mt:{style:margin},mr:{style:margin},mb:{style:margin},ml:{style:margin},mx:{style:margin},my:{style:margin},margin:{style:margin},marginTop:{style:margin},marginRight:{style:margin},marginBottom:{style:margin},marginLeft:{style:margin},marginX:{style:margin},marginY:{style:margin},marginInline:{style:margin},marginInlineStart:{style:margin},marginInlineEnd:{style:margin},marginBlock:{style:margin},marginBlockStart:{style:margin},marginBlockEnd:{style:margin},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}});var defaultSxConfig$1=defaultSxConfig;function objectsHaveSameKeys(...e){var t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);const n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}function callIfFn(e,t){return"function"==typeof e?e(t):e}function unstable_createStyleFunctionSx(){function l(n,e,t,r){var i={[n]:e,theme:t},r=r[n];if(!r)return{[n]:e};const{cssProperty:o=n,themeKey:a,transform:s,style:l}=r;if(null==e)return null;if("typography"===a&&"inherit"===e)return{[n]:e};const c=getPath(t,a)||{};return l?l(i):handleBreakpoints(i,e,e=>{let t=getStyleValue$1(c,s,e);return e===t&&"string"==typeof e&&(t=getStyleValue$1(c,s,""+n+("default"===e?"":capitalize$2(e)),e)),!1===o?t:{[o]:t}})}return function o(e){const{sx:t,theme:a={}}=e||{};if(!t)return null;const s=null!=(e=a.unstable_sxConfig)?e:defaultSxConfig$1;function n(e){let r=e;if("function"==typeof e)r=e(a);else if("object"!=typeof e)return e;if(!r)return null;var e=createEmptyBreakpointObject(a.breakpoints),t=Object.keys(e);let i=e;return Object.keys(r).forEach(t=>{var e,n=callIfFn(r[t],a);null!=n&&("object"!=typeof n||s[t]?i=merge(i,l(t,n,a,s)):objectsHaveSameKeys(e=handleBreakpoints({theme:a},n,e=>({[t]:e})),n)?i[t]=o({sx:n,theme:a}):i=merge(i,e))}),removeUnusedBreakpoints(t,i)}return Array.isArray(t)?t.map(n):n(t)}}const styleFunctionSx=unstable_createStyleFunctionSx();styleFunctionSx.filterProps=["sx"];var styleFunctionSx$1=styleFunctionSx;const _excluded$1y=["breakpoints","palette","spacing","shape"];function createTheme$1(e={},...t){var{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,e=_objectWithoutPropertiesLoose$2(e,_excluded$1y),n=createBreakpoints(n),i=createSpacing(i),n=deepmerge({breakpoints:n,direction:"ltr",components:{},palette:_extends({mode:"light"},r),spacing:i,shape:_extends({},shape$1,o)},e);return(n=t.reduce((e,t)=>deepmerge(e,t),n)).unstable_sxConfig=_extends({},defaultSxConfig$1,null==e?void 0:e.unstable_sxConfig),n.unstable_sx=function(e){return styleFunctionSx$1({sx:e,theme:this})},n}function isObjectEmpty(e){return 0===Object.keys(e).length}function useTheme$3(e=null){var t=react.exports.useContext(ThemeContext$2);return!t||isObjectEmpty(t)?e:t}const systemDefaultTheme$1=createTheme$1();function useTheme$2(e=systemDefaultTheme$1){return useTheme$3(e)}function GlobalStyles$3({styles:e,themeId:t,defaultTheme:n={}}){n=useTheme$2(n),t="function"==typeof e?e(t&&n[t]||n):e;return jsxRuntime.exports.jsx(GlobalStyles$4,{styles:t})}const _excluded$1x=["sx"],splitProps=t=>{var e;const n={systemProps:{},otherProps:{}},r=null!=(e=null==t||null==(e=t.theme)?void 0:e.unstable_sxConfig)?e:defaultSxConfig$1;return Object.keys(t).forEach(e=>{r[e]?n.systemProps[e]=t[e]:n.otherProps[e]=t[e]}),n};function extendSxProp(e){const t=e["sx"],n=_objectWithoutPropertiesLoose$2(e,_excluded$1x),{systemProps:r,otherProps:i}=splitProps(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{e=t(...e);return isPlainObject$1(e)?_extends({},r,e):r}:_extends({},r,t),_extends({},i,{sx:o})}function r$2(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r$2(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function clsx(){for(var e,t=0,n="";t<arguments.length;)(e=arguments[t++])&&(e=r$2(e))&&(n&&(n+=" "),n+=e);return n}const _excluded$1w=["className","component"];function createBox$1(e={}){const{themeId:o,defaultTheme:a,defaultClassName:s="MuiBox-root",generateClassName:l}=e,c=styled$3("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(styleFunctionSx$1);return react.exports.forwardRef(function(e,t){var n=useTheme$2(a),e=extendSxProp(e),{className:r,component:i="div"}=e,e=_objectWithoutPropertiesLoose$2(e,_excluded$1w);return jsxRuntime.exports.jsx(c,_extends({as:i,ref:t,className:clsx(r,l?"Sdk-"+l(s):s),theme:o&&n[o]||n},e))})}const _excluded$1v=["variant"];function isEmpty$5(e){return 0===e.length}function propsToClassKey(t){var e=t["variant"],n=_objectWithoutPropertiesLoose$2(t,_excluded$1v);let r=e||"";return Object.keys(n).sort().forEach(e=>{r+="color"===e?isEmpty$5(r)?t[e]:capitalize$2(t[e]):""+(isEmpty$5(r)?e:capitalize$2(e))+capitalize$2(t[e].toString())}),r}const _excluded$1u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function isEmpty$4(e){return 0===Object.keys(e).length}function isStringTag(e){return"string"==typeof e&&96<e.charCodeAt(0)}const getStyleOverrides=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,getVariantStyles=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(e=>{var t=propsToClassKey(e.props);r[t]=e.style}),r},variantsResolver=(r,e,t,n)=>{const{ownerState:i={}}=r,o=[];n=null==t||null==(t=t.components)||null==(t=t[n])?void 0:t.variants;return n&&n.forEach(t=>{let n=!0;Object.keys(t.props).forEach(e=>{i[e]!==t.props[e]&&r[e]!==t.props[e]&&(n=!1)}),n&&o.push(e[propsToClassKey(t.props)])}),o};function shouldForwardProp(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const systemDefaultTheme=createTheme$1();function resolveTheme({defaultTheme:e,theme:t,themeId:n}){return isEmpty$4(t)?e:t[n]||t}function createStyled(e={}){const{themeId:p,defaultTheme:f=systemDefaultTheme,rootShouldForwardProp:h=shouldForwardProp,slotShouldForwardProp:m=shouldForwardProp}=e,g=e=>styleFunctionSx$1(_extends({},e,{theme:resolveTheme(_extends({},e,{defaultTheme:f,themeId:p}))}));return g.__mui_systemSx=!0,(i,e={})=>{internal_processStyles(i,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:o,slot:t,skipVariantsResolver:n,skipSx:r,overridesResolver:a}=e,s=_objectWithoutPropertiesLoose$2(e,_excluded$1u),l=void 0!==n?n:t&&"Root"!==t||!1,c=r||!1;let u=shouldForwardProp;"Root"===t?u=h:t?u=m:isStringTag(i)&&(u=void 0);const d=styled$3(i,_extends({shouldForwardProp:u,label:void 0},s));e=(t,...e)=>{var n=e?e.map(t=>"function"==typeof t&&t.__emotion_real!==t?e=>t(_extends({},e,{theme:resolveTheme(_extends({},e,{defaultTheme:f,themeId:p}))})):t):[];let r=t;o&&a&&n.push(n=>{const r=resolveTheme(_extends({},n,{defaultTheme:f,themeId:p}));var e=getStyleOverrides(o,r);if(e){const i={};return Object.entries(e).forEach(([e,t])=>{i[e]="function"==typeof t?t(_extends({},n,{theme:r})):t}),a(n,i)}return null}),o&&!l&&n.push(e=>{var t=resolveTheme(_extends({},e,{defaultTheme:f,themeId:p}));return variantsResolver(e,getVariantStyles(o,t),t,o)}),c||n.push(g);var e=n.length-e.length,e=(Array.isArray(t)&&0<e?(e=new Array(e).fill(""),(r=[...t,...e]).raw=[...t.raw,...e]):"function"==typeof t&&t.__emotion_real!==t&&(r=e=>t(_extends({},e,{theme:resolveTheme(_extends({},e,{defaultTheme:f,themeId:p}))}))),d(r,...n));return i.muiName&&(e.muiName=i.muiName),e};return d.withConfig&&(e.withConfig=d.withConfig),e}}const styled$2=createStyled();var systemStyled=styled$2;function getThemeProps(e){var{theme:e,name:t,props:n}=e;return e&&e.components&&e.components[t]&&e.components[t].defaultProps?resolveProps(e.components[t].defaultProps,n):n}function useThemeProps$1({props:e,name:t,defaultTheme:n,themeId:r}){let i=useTheme$2(n);return getThemeProps({theme:i=r?i[r]||i:i,name:t,props:e})}function clamp(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function hexToRgb(e){e=e.slice(1);var t=new RegExp(`.{1,${6<=e.length?2:1}}`,"g");let n=e.match(t);return(n=n&&1===n[0].length?n.map(e=>e+e):n)?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function intToHex(e){e=e.toString(16);return 1===e.length?"0"+e:e}function decomposeColor(e){if(e.type)return e;if("#"===e.charAt(0))return decomposeColor(hexToRgb(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(formatMuiErrorMessage(9,e));let r=e.substring(t+1,e.length-1),i;if("color"===n){if(r=r.split(" "),i=r.shift(),4===r.length&&"/"===r[3].charAt(0)&&(r[3]=r[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error(formatMuiErrorMessage(10,i))}else r=r.split(",");return{type:n,values:r=r.map(e=>parseFloat(e)),colorSpace:i}}const colorChannel=e=>{const n=decomposeColor(e);return n.values.slice(0,3).map((e,t)=>-1!==n.type.indexOf("hsl")&&0!==t?e+"%":e).join(" ")},private_safeColorChannel=(t,e)=>{try{return colorChannel(t)}catch(e){return t}};function recomposeColor(e){var{type:t,colorSpace:n}=e;let r=e["values"];return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=r[1]+"%",r[2]=r[2]+"%"),r=-1!==t.indexOf("color")?n+" "+r.join(" "):""+r.join(", "),`${t}(${r})`}function rgbToHex(e){return 0===e.indexOf("#")?e:(e=decomposeColor(e)["values"],"#"+e.map((e,t)=>intToHex(3===t?Math.round(255*e):e)).join(""))}function hslToRgb(e){var t=(e=decomposeColor(e))["values"];const n=t[0];var r=t[1]/100;const i=t[2]/100,o=r*Math.min(i,1-i);r=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let a="rgb";r=[Math.round(255*r(0)),Math.round(255*r(8)),Math.round(255*r(4))];return"hsla"===e.type&&(a+="a",r.push(t[3])),recomposeColor({type:a,values:r})}function getLuminance(t){let e=("hsl"===(t=decomposeColor(t)).type||"hsla"===t.type?decomposeColor(hslToRgb(t)):t).values;return e=e.map(e=>("color"!==t.type&&(e/=255),e<=.03928?e/12.92:((e+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function getContrastRatio(e,t){e=getLuminance(e),t=getLuminance(t);return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}function alpha(e,t){return e=decomposeColor(e),t=clamp(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/"+t:e.values[3]=t,recomposeColor(e)}function private_safeAlpha(t,e,n){try{return alpha(t,e)}catch(e){return t}}function darken(t,n){if(t=decomposeColor(t),n=clamp(n),-1!==t.type.indexOf("hsl"))t.values[2]*=1-n;else if(-1!==t.type.indexOf("rgb")||-1!==t.type.indexOf("color"))for(let e=0;e<3;e+=1)t.values[e]*=1-n;return recomposeColor(t)}function private_safeDarken(t,e,n){try{return darken(t,e)}catch(e){return t}}function lighten(t,n){if(t=decomposeColor(t),n=clamp(n),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*n;else if(-1!==t.type.indexOf("rgb"))for(let e=0;e<3;e+=1)t.values[e]+=(255-t.values[e])*n;else if(-1!==t.type.indexOf("color"))for(let e=0;e<3;e+=1)t.values[e]+=(1-t.values[e])*n;return recomposeColor(t)}function private_safeLighten(t,e,n){try{return lighten(t,e)}catch(e){return t}}function emphasize(e,t=.15){return(.5<getLuminance(e)?darken:lighten)(e,t)}function private_safeEmphasize(t,e,n){try{return private_safeEmphasize(t,e)}catch(e){return t}}const ThemeContext=react.exports.createContext(null);var ThemeContext$1=ThemeContext;function useTheme$1(){return react.exports.useContext(ThemeContext$1)}const hasSymbol$1="function"==typeof Symbol&&Symbol.for;var nested=hasSymbol$1?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(e,t){return"function"==typeof t?t(e):_extends({},e,t)}function ThemeProvider$2(e){const{children:t,theme:n}=e,r=useTheme$1();e=react.exports.useMemo(()=>{var e=null===r?n:mergeOuterLocalTheme(r,n);return null!=e&&(e[nested]=null!==r),e},[n,r]);return jsxRuntime.exports.jsx(ThemeContext$1.Provider,{value:e,children:t})}const EMPTY_THEME={};function useThemeScoping(n,r,i,o=!1){return react.exports.useMemo(()=>{var e=n&&r[n]||r;if("function"!=typeof i)return _extends({},r,n?{[n]:i}:i);{e=i(e);const t=n?_extends({},r,{[n]:e}):e;return o?()=>t:t}},[n,r,i,o])}function ThemeProvider$1(e){var{children:e,theme:t,themeId:n}=e,r=useTheme$3(EMPTY_THEME),i=useTheme$1()||EMPTY_THEME,r=useThemeScoping(n,r,t),n=useThemeScoping(n,i,t,!0);return jsxRuntime.exports.jsx(ThemeProvider$2,{theme:n,children:jsxRuntime.exports.jsx(ThemeContext$2.Provider,{value:r,children:e})})}const DEFAULT_MODE_STORAGE_KEY="mode",DEFAULT_COLOR_SCHEME_STORAGE_KEY="color-scheme",DEFAULT_ATTRIBUTE="data-color-scheme";function getInitColorSchemeScript$1(e){var{defaultMode:e="light",defaultLightColorScheme:t="light",defaultDarkColorScheme:n="dark",modeStorageKey:r=DEFAULT_MODE_STORAGE_KEY,colorSchemeStorageKey:i=DEFAULT_COLOR_SCHEME_STORAGE_KEY,attribute:o=DEFAULT_ATTRIBUTE,colorSchemeNode:a="document.documentElement"}=e||{};return jsxRuntime.exports.jsx("script",{dangerouslySetInnerHTML:{__html:`(function() { try {
5
+ `),e}useIsomorphicLayoutEffect$2(()=>{x.current=void 0,g.current=void 0,h.current=C});const $=react.exports.useMemo(()=>React.createElement(S,_extends({},C,{ref:t})),[t,S,C]);return react.exports.useMemo(()=>T?React.createElement(i.Provider,{value:f},$):$,[i,$,f])}const r=React.memo(n);return r.WrappedComponent=S,r.displayName=n.displayName=t,l?((e=React.forwardRef(function(e,t){return React.createElement(r,_extends({},e,{reactReduxForwardedRef:t}))})).displayName=t,e.WrappedComponent=S,hoistNonReactStatics_cjs(e,S)):hoistNonReactStatics_cjs(r,S)}}function Provider$2({store:t,context:e,children:n,serverState:r}){const i=react.exports.useMemo(()=>{var e=createSubscription$1(t);return{store:t,subscription:e,getServerState:r?()=>r:void 0}},[t,r]),o=react.exports.useMemo(()=>t.getState(),[t]);useIsomorphicLayoutEffect$2(()=>{const e=i["subscription"];return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[i,o]);e=e||ReactReduxContext$1;return React.createElement(e.Provider,{value:i},n)}function createStoreHook(e=ReactReduxContext$1){const t=e===ReactReduxContext$1?useReduxContext:()=>react.exports.useContext(e);return function(){var e=t()["store"];return e}}const useStore=createStoreHook();function createDispatchHook(e=ReactReduxContext$1){const t=e===ReactReduxContext$1?useStore:createStoreHook(e);return function(){return t().dispatch}}const useDispatch=createDispatchHook();initializeUseSelector(withSelector.exports.useSyncExternalStoreWithSelector),initializeConnect(shim.exports.useSyncExternalStore),setBatch$1(reactDom.exports.unstable_batchedUpdates);class DynamicModuleLoader extends react.exports.Component{render(){return jsxRuntime.exports.jsx(ReactReduxContext$1.Consumer,{children:e=>jsxRuntime.exports.jsx(DynamicModuleLoaderImpl,Object.assign({},this.props,{reactReduxContext:e}))})}}class DynamicModuleLoaderImpl extends react.exports.Component{constructor(e){var t;if(super(e),this._providerInitializationNeeded=!1,this._cleanup=()=>{this._addedModules&&(this._addedModules.remove(),this._addedModules=void 0)},null==e.reactReduxContext)throw t="Tried to render DynamicModuleLoader, but no ReactReduxContext was provided",console.error(t),new Error(t);this._store=e.reactReduxContext?e.reactReduxContext.store:void 0,this.props.strictMode?this.state={readyToRender:!1}:(this._addModules(),this.state={readyToRender:!0})}render(){return this.state.readyToRender?this._providerInitializationNeeded&&this._store?jsxRuntime.exports.jsx(Provider$2,Object.assign({store:this._store},{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({},this.props))})):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[this._renderLoader(),jsxRuntime.exports.jsx(AddedModulesCleanup,{cleanup:this._cleanup})]}):null}_renderLoader(){return this.props.children?"function"==typeof this.props.children?this.props.children():this.props.children:null}_addModules(){var{createStore:e,modules:t}=this.props;if(this._store)this._addedModules=this._store.addModules(t);else{if(!e)throw new Error("Store could not be resolved from React context");this._store=e(),this._providerInitializationNeeded=!0}}componentDidMount(){this.props.strictMode&&(this._addModules(),this.setState({readyToRender:!0}))}}class AddedModulesCleanup extends react.exports.Component{render(){return null}componentWillUnmount(){this.props.cleanup()}}var lib$2={},ModuleStore={};function symbolObservablePonyfill$1(e){var t,e=e.Symbol;return"function"==typeof e?e.observable?t=e.observable:(t=e("observable"),e.observable=t):t="@@observable",t}var root$b,result=symbolObservablePonyfill$1(root$b="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")()),randomString$2=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes$1={INIT:"@@redux/INIT"+randomString$2(),REPLACE:"@@redux/REPLACE"+randomString$2(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString$2()}};function isPlainObject$2(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function createStore$3(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(createStore$3)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var i=e,o=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(t){if("function"!=typeof t)throw new Error("Expected the listener to be a function.");if(l)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var n=!0;return c(),s.push(t),function(){if(n){if(l)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");n=!1,c();var e=s.indexOf(t);s.splice(e,1),a=null}}}function p(e){if(!isPlainObject$2(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,o=i(o,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])();return e}return p({type:ActionTypes$1.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,p({type:ActionTypes$1.REPLACE})}})[result]=function(){var n=d,e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function t(){e.next&&e.next(u())}return t(),{unsubscribe:n(t)}}};return e[result]=function(){return this},e},r}function getUndefinedStateErrorMessage(e,t){t=t&&t.type;return"Given "+(t&&'action "'+String(t)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function assertReducerShape(n){Object.keys(n).forEach(function(e){var t=n[e];if(void 0===t(void 0,{type:ActionTypes$1.INIT}))throw new Error('Reducer "'+e+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===t(void 0,{type:ActionTypes$1.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+e+"\" returned undefined when probed with a random type. Don't try to handle "+ActionTypes$1.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function combineReducers(e){for(var t=Object.keys(e),c={},n=0;n<t.length;n++){var r=t[n];"function"==typeof e[r]&&(c[r]=e[r])}var u,d=Object.keys(c);try{assertReducerShape(c)}catch(e){u=e}return function(e,t){if(void 0===e&&(e={}),u)throw u;for(var n=!1,r={},i=0;i<d.length;i++){var o,a=d[i],s=c[a],l=e[a],s=s(l,t);if(void 0===s)throw o=getUndefinedStateErrorMessage(a,t),new Error(o);r[a]=s,n=n||s!==l}return(n=n||d.length!==Object.keys(e).length)?r:e}}function bindActionCreator$1(e,t){return function(){return t(e.apply(this,arguments))}}function bindActionCreators$2(e,t){if("function"==typeof e)return bindActionCreator$1(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n,r={};for(n in e){var i=e[n];"function"==typeof i&&(r[n]=bindActionCreator$1(i,t))}return r}function _defineProperty$2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ownKeys$4(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),n=e?n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}):n}function _objectSpread2$1(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys$4(n,!0).forEach(function(e){_defineProperty$2(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys$4(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function compose$5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function applyMiddleware$1(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];return function(i){return function(){var e=i.apply(void 0,arguments),t=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},n={getState:e.getState,dispatch:function(){return t.apply(void 0,arguments)}},r=o.filter(Boolean).map(function(e){return e(n)});return _objectSpread2$1({},e,{dispatch:t=compose$5.apply(void 0,r)(e.dispatch)})}}}var redux=Object.freeze({__proto__:null,__DO_NOT_USE__ActionTypes:ActionTypes$1,applyMiddleware:applyMiddleware$1,bindActionCreators:bindActionCreators$2,combineReducers:combineReducers,compose:compose$5,createStore:createStore$3}),developmentOnly={},compose$4=redux.compose,MiddlewareManager=(developmentOnly.__esModule=!0,developmentOnly.composeWithDevTools=function(){if(0!==arguments.length)return"object"==typeof arguments[0]?compose$4:compose$4.apply(null,arguments)},developmentOnly.devToolsEnhancer=function(){return function(e){return e}},{}),lib$1={__esModule:!0},_redux=(lib$1.createDynamicMiddlewares=lib$1.resetMiddlewares=lib$1.removeMiddleware=lib$1.addMiddleware=void 0,redux),createDynamicMiddlewares=function(){var i=[];return{enhancer:function(r){return function(n){return function(e){var t=i.map(function(e){return e(r)});return _redux.compose.apply(void 0,t)(n)(e)}}},addMiddleware:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];i=[].concat(i,t)},removeMiddleware:function(t){var n=i.findIndex(function(e){return e===t});-1===n?console.error("Middleware does not exist!",t):i=i.filter(function(e,t){return t!==n})},resetMiddlewares:function(){i=[]}}},dynamicMiddlewaresInstance=createDynamicMiddlewares(),addMiddleware=(lib$1.default=dynamicMiddlewaresInstance.enhancer,dynamicMiddlewaresInstance.addMiddleware),removeMiddleware=dynamicMiddlewaresInstance.removeMiddleware,resetMiddlewares=dynamicMiddlewaresInstance.resetMiddlewares,redux_dynamic_middlewares_1=(lib$1.addMiddleware=addMiddleware,lib$1.removeMiddleware=removeMiddleware,lib$1.resetMiddlewares=resetMiddlewares,lib$1.createDynamicMiddlewares=createDynamicMiddlewares,MiddlewareManager.__esModule=!0,lib$1),ModuleManager=(MiddlewareManager.getMiddlewareManager=function(){var t=redux_dynamic_middlewares_1.createDynamicMiddlewares();return{getItems:function(){return[]},enhancer:t.enhancer,add:function(e){return t.addMiddleware.apply(t,e),e},remove:function(e){return e.forEach(t.removeMiddleware),e},dispose:function(){t.resetMiddlewares()}}},{}),ReducerManager={},RefCounter={};function getObjectRefCounter(r,i){r=r||function(e,t){return e===t},i=i||function(){return!1};var o=[],a=[];return{getCount:function(t){var e;return null==t||-1===(e=o.findIndex(function(e){return e&&r(e,t)}))?0:a[e]},add:function(t){var e,n;null!=t&&(-(n=1)===(e=o.findIndex(function(e){return e&&r(e,t)}))?(e=o.length,o.push(t)):n=a[e]+1,i(t)&&(n=1/0),a[e]=n)},remove:function(t){if(!i(t)){var e=o.findIndex(function(e){return e&&r(e,t)});if(-1!==e){if(1===a[e])return delete o[e],delete a[e],!0;a[e]=a[e]-1}}return!1}}}function getStringRefCounter(){var t={};return{getCount:function(e){return null!=e&&t[e]||0},add:function(e){null!=e&&(t[e]?t[e]++:t[e]=1)},remove:function(e){if(null!=e&&t[e]){if(1===t[e])return delete t[e],!0;t[e]--}return!1}}}RefCounter.__esModule=!0,RefCounter.getObjectRefCounter=getObjectRefCounter,RefCounter.getStringRefCounter=getStringRefCounter;var __assign$4=commonjsGlobal$1&&commonjsGlobal$1.__assign||function(){return(__assign$4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},redux_1$1=(ReducerManager.__esModule=!0,redux),RefCounter_1$1=RefCounter;function getRefCountedReducerManager(n){var e,r=RefCounter_1$1.getStringRefCounter();for(e in n.getReducerMap())r.add(e);return{reduce:n.reduce,getReducerMap:n.getReducerMap,add:function(e,t){0===r.getCount(e)&&n.add(e,t),r.add(e)},remove:function(e){r.remove(e),0===r.getCount(e)&&n.remove(e)}}}function getReducerManager(e,n){var i=(n=void 0===n?redux_1$1.combineReducers:n)(e),r=__assign$4({},e),o=[];return{getReducerMap:function(){return r},reduce:function(e,t){if(0<o.length){e=__assign$4({},e);for(var n=0,r=o;n<r.length;n++)delete e[r[n]];o=[]}return i(e=void 0===e?{}:e,t)},add:function(e,t){e&&!r[e]&&(r[e]=t,i=getCombinedReducer(r,n))},remove:function(e){e&&r[e]&&(delete r[e],o.push(e),i=getCombinedReducer(r,n))}}}function getCombinedReducer(e,t){return void 0===t&&(t=redux_1$1.combineReducers),e&&0!==Object.keys(e).length?t(e):function(e,t){return e||null}}ReducerManager.getRefCountedReducerManager=getRefCountedReducerManager,ReducerManager.getReducerManager=getReducerManager;var __spreadArrays$4=commonjsGlobal$1&&commonjsGlobal$1.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},ReducerManager_1=(ModuleManager.__esModule=!0,ReducerManager);function getModuleManager(o,r,a){function s(e){if(e){if(!t)throw new Error("setDispatch should be called on ModuleManager before adding any modules.");e.forEach(t)}}var l,t=null,c=[],u=new Set,e={getReducer:function(e,t){return l?l.reduce(e,t):e||null},setDispatch:function(e){t=e},getItems:function(){return[]},add:function(e){var i;e&&0!==e.length&&(e=e.filter(function(e){return e}),i=[],e.forEach(function(e){if(!u.has(e.id)){u.add(e.id),c.push(e);var t=e.reducerMap;if(t)if(l)for(var n in t)l.add(n,t[n]);else l=ReducerManager_1.getRefCountedReducerManager(ReducerManager_1.getReducerManager(t,a));var r=e.middlewares;r&&(r=r)&&o.add(r),i.push(e)}}),t({type:"@@Internal/ModuleManager/SeedReducers"}),i.forEach(function(t){r.forEach(function(e){e.onModuleAdded&&e.onModuleAdded(t)});var e={type:"@@Internal/ModuleManager/ModuleAdded",payload:t.id};s(t.initialActions?__spreadArrays$4([e],t.initialActions):[e])}))},remove:function(e){e&&(e=e.filter(function(e){return e}).reverse()).forEach(function(t){if(u.has(t.id)){s(t.finalActions);var e=t.reducerMap;if(e&&l)for(var n in e)l.remove(n);(e=t.middlewares)&&o.remove(e),r.forEach(function(e){e.onModuleRemoved&&e.onModuleRemoved(t)}),u.delete(t.id),c=c.filter(function(e){return e.id!==t.id}),s([{type:"@@Internal/ModuleManager/ModuleRemoved",payload:t.id}])}})},dispose:function(){e.remove(c)}};return e}ModuleManager.getModuleManager=getModuleManager;var RefCountedManager={},__assign$3=commonjsGlobal$1&&commonjsGlobal$1.__assign||function(){return(__assign$3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},RefCounter_1=(RefCountedManager.__esModule=!0,RefCounter);function getRefCountedManager(n,e,t){var r=RefCounter_1.getObjectRefCounter(e,t),e=(n.getItems().forEach(function(e){return r.add(e)}),__assign$3({},n));return e.add=function(e){var t;e&&(t=(e=e.filter(function(e){return e})).filter(function(e){return 0===r.getCount(e)}),n.add(t),e.forEach(r.add))},e.remove=function(e){e&&e.forEach(function(e){e&&(r.remove(e),0===r.getCount(e))&&n.remove([e])})},e.dispose=function(){n.dispose()},e}RefCountedManager.getRefCountedManager=getRefCountedManager;var Flatten={},__spreadArrays$3=commonjsGlobal$1&&commonjsGlobal$1.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function flatten(e){if(e){for(var t=e.slice(),n=0;n<t.length;)Array.isArray(t[n])?t.splice.apply(t,__spreadArrays$3([n,1],t[n])):n++;return t}return e}Flatten.__esModule=!0,Flatten.flatten=flatten;var __spreadArrays$2=commonjsGlobal$1&&commonjsGlobal$1.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},redux_1=(ModuleStore.__esModule=!0,redux),developmentOnly_1=developmentOnly,MiddlewareManager_1=MiddlewareManager,ModuleManager_1=ModuleManager,RefCountedManager_1=RefCountedManager,Flatten_1=Flatten;function createStore$2(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];function r(e){var t=Flatten_1.flatten(e);return p.add(t),{remove:function(){p.remove(t)}}}function i(e){return r([e])}var o=e.initialState,o=void 0===o?{}:o,a=e.extensions,s=void 0===a?[]:a,a=e.enhancers,a=void 0===a?[]:a,l=e.advancedComposeEnhancers,l=void 0===l?developmentOnly_1.composeWithDevTools({}):l,c=e.advancedCombineReducers,u=s.reduce(function(e,t){return t.middleware&&e.push.apply(e,t.middleware),e},[]),d=RefCountedManager_1.getRefCountedManager(MiddlewareManager_1.getMiddlewareManager(),function(e,t){return e===t}),l=l.apply(void 0,__spreadArrays$2(a,[redux_1.applyMiddleware.apply(void 0,__spreadArrays$2(u,[d.enhancer]))])),p=RefCountedManager_1.getRefCountedManager(ModuleManager_1.getModuleManager(d,s,c),function(e,t){return e.id===t.id},function(e){return e.retained}),a=redux_1.createStore(p.getReducer,o,l);p.setDispatch(a.dispatch);return s.forEach(function(e){e.onModuleManagerCreated&&e.onModuleManagerCreated({addModule:i,addModules:r})}),a.addModule=i,a.addModules=r,a.dispose=function(){p.dispose(),d.dispose(),s.forEach(function(e){e.dispose&&e.dispose()})},a.addModules(t),a}ModuleStore.createStore=createStore$2;var ComparableMap={};function getMap(r){var i=[],o={};return{keys:i,get:function(t){if(t){var e=i.findIndex(function(e){return e&&r(e,t)});if(-1!==e)return o[e]}},add:function(t,e){t&&-1===i.findIndex(function(e){return e&&r(e,t)})&&(i.push(t),o[i.length-1]=e)},remove:function(t){if(t){var e,n=i.findIndex(function(e){return e&&r(e,t)});if(-1!==n)return delete i[n],e=o[n],delete o[n],e}}}}ComparableMap.__esModule=!0,ComparableMap.getMap=getMap,function(n){function e(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}n.__esModule=!0,e(ModuleStore),e(ComparableMap),e(RefCounter),e(MiddlewareManager),e(RefCountedManager)}(lib$2);var lib={},SagaExtension={},createSymbol=function(e){return"@@redux-saga/"+e},CANCEL$1=createSymbol("CANCEL_PROMISE"),CHANNEL_END_TYPE=createSymbol("CHANNEL_END"),IO=createSymbol("IO"),MATCH$2=createSymbol("MATCH"),MULTICAST=createSymbol("MULTICAST"),SAGA_ACTION=createSymbol("SAGA_ACTION"),SELF_CANCELLATION=createSymbol("SELF_CANCELLATION"),TASK=createSymbol("TASK"),TASK_CANCEL=createSymbol("TASK_CANCEL"),TERMINATE=createSymbol("TERMINATE"),SAGA_LOCATION=createSymbol("LOCATION"),undef=function(e){return null==e},notUndef=function(e){return null!=e},func=function(e){return"function"==typeof e},string$1=function(e){return"string"==typeof e},array$1=Array.isArray,promise$2=function(e){return e&&func(e.then)},iterator=function(e){return e&&func(e.next)&&func(e.throw)},pattern=function e(t){return t&&(string$1(t)||symbol$1(t)||func(t)||array$1(t)&&t.every(e))},channel$2=function(e){return e&&func(e.take)&&func(e.close)},stringableFunc=function(e){return func(e)&&e.hasOwnProperty("toString")},symbol$1=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},multicast=function(e){return channel$2(e)&&e[MULTICAST]},MAX_SIGNED_INT=2147483647;function delayP(t,n){void 0===n&&(n=!0);var r,e=new Promise(function(e){r=setTimeout(e,Math.min(MAX_SIGNED_INT,t),n)});return e[CANCEL$1]=function(){clearTimeout(r)},e}var konst=function(e){return function(){return e}},kTrue=konst(!0),noop$5=function(){},identity$3=function(e){return e},assignWithSymbols=function(t,n){_extends(t,n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(n).forEach(function(e){t[e]=n[e]})},flatMap=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))};function remove$1(e,t){t=e.indexOf(t);0<=t&&e.splice(t,1)}function once(e){var t=!1;return function(){t||(t=!0,e())}}var kThrow=function(e){throw e},kReturn=function(e){return{value:e,done:!0}};function makeIterator(e,t,n){var r={meta:{name:n=void 0===n?"iterator":n},next:e,throw:t=void 0===t?kThrow:t,return:kReturn,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function logError(e,t){t=t.sagaStack;console.error(e),console.error(t)}var createEmptyArray=function(e){return Array.apply(null,new Array(e))},wrapSagaDispatch=function(t){return function(e){return t(Object.defineProperty(e,SAGA_ACTION,{value:!0}))}},shouldTerminate=function(e){return e===TERMINATE},shouldCancel=function(e){return e===TASK_CANCEL},shouldComplete=function(e){return shouldTerminate(e)||shouldCancel(e)};function createAllStyleChildCallbacks(e,r){var i,t=Object.keys(e),o=t.length,a=0,s=array$1(e)?createEmptyArray(o):{},l={};return t.forEach(function(n){function e(e,t){i||(t||shouldComplete(e)?(r.cancel(),r(e,t)):(s[n]=e,++a===o&&(i=!0,r(s))))}e.cancel=noop$5,l[n]=e}),r.cancel=function(){i||(i=!0,t.forEach(function(e){return l[e].cancel()}))},l}function getMetaInfo(e){return{name:e.name||"anonymous",location:getLocation$1(e)}}function getLocation$1(e){return e[SAGA_LOCATION]}var BUFFER_OVERFLOW="Channel's Buffer overflow!",ON_OVERFLOW_THROW=1,ON_OVERFLOW_DROP=2,ON_OVERFLOW_SLIDE=3,ON_OVERFLOW_EXPAND=4,zeroBuffer={isEmpty:kTrue,put:noop$5,take:noop$5};function ringBuffer(n,r){void 0===n&&(n=10);function i(e){a[l]=e,l=(l+1)%n,s++}function t(){var e;if(0!=s)return e=a[c],a[c]=null,s--,c=(c+1)%n,e}function o(){for(var e=[];s;)e.push(t());return e}var a=new Array(n),s=0,l=0,c=0;return{isEmpty:function(){return 0==s},put:function(e){var t;if(s<n)i(e);else switch(r){case ON_OVERFLOW_THROW:throw new Error(BUFFER_OVERFLOW);case ON_OVERFLOW_SLIDE:a[l]=e,c=l=(l+1)%n;break;case ON_OVERFLOW_EXPAND:t=2*n,a=o(),s=a.length,l=a.length,c=0,a.length=t,n=t,i(e)}},take:t,flush:o}}var none=function(){return zeroBuffer},fixed=function(e){return ringBuffer(e,ON_OVERFLOW_THROW)},dropping=function(e){return ringBuffer(e,ON_OVERFLOW_DROP)},sliding=function(e){return ringBuffer(e,ON_OVERFLOW_SLIDE)},expanding=function(e){return ringBuffer(e,ON_OVERFLOW_EXPAND)},buffers=Object.freeze({__proto__:null,none:none,fixed:fixed,dropping:dropping,sliding:sliding,expanding:expanding}),TAKE="TAKE",PUT="PUT",ALL="ALL",RACE="RACE",CALL="CALL",CPS="CPS",FORK="FORK",JOIN="JOIN",CANCEL="CANCEL",SELECT="SELECT",ACTION_CHANNEL="ACTION_CHANNEL",CANCELLED$1="CANCELLED",FLUSH="FLUSH",GET_CONTEXT="GET_CONTEXT",SET_CONTEXT="SET_CONTEXT",makeEffect=function(e,t){var n={};return n[IO]=!0,n.combinator=!1,n.type=e,n.payload=t,n},detach=function(e){return makeEffect(FORK,_extends({},e.payload,{detached:!0}))};function take(e,t){return pattern(e=void 0===e?"*":e)?(notUndef(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),makeEffect(TAKE,{pattern:e})):multicast(e)&&notUndef(t)&&pattern(t)?makeEffect(TAKE,{channel:e,pattern:t}):channel$2(e)?(notUndef(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),makeEffect(TAKE,{channel:e})):void 0}function put(e,t){return undef(t)&&(t=e,e=void 0),makeEffect(PUT,{channel:e,action:t})}function all(e){e=makeEffect(ALL,e);return e.combinator=!0,e}function getFnCallDescriptor(e,t){var n,r=null;return func(e)?n=e:(n=array$1(e)?(r=e[0],e[1]):(r=e.context,e.fn),r&&string$1(n)&&func(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function call$f(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return makeEffect(CALL,getFnCallDescriptor(e,n))}function fork(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return makeEffect(FORK,getFnCallDescriptor(e,n))}function cancel(e){return makeEffect(CANCEL,e=void 0===e?SELF_CANCELLATION:e)}function select(e){void 0===e&&(e=identity$3);for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return makeEffect(SELECT,{selector:e,args:n})}function actionChannel(e,t){return makeEffect(ACTION_CHANNEL,{pattern:e,buffer:t})}function cancelled(){return makeEffect(CANCELLED$1,{})}function flush$3(e){return makeEffect(FLUSH,e)}var delay$1=call$f.bind(null,delayP);function _typeof$4(e){return(_typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _toPrimitive(e,t){if("object"!==_typeof$4(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!==_typeof$4(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"===_typeof$4(e)?e:String(e)}function _defineProperty$1(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ownKeys$3(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function _objectSpread2(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys$3(Object(n),!0).forEach(function(e){_defineProperty$1(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys$3(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var randomString$1=function(){return Math.random().toString(36).substring(7).split("").join(".")};function compose$3(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function deferred(){var n={};return n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n}randomString$1(),randomString$1();var queue$2=[],semaphore=0;function exec$1(e){try{suspend(),e()}finally{release()}}function asap(e){queue$2.push(e),semaphore||(suspend(),flush$2())}function immediately(e){try{return suspend(),e()}finally{flush$2()}}function suspend(){semaphore++}function release(){semaphore--}function flush$2(){var e;for(release();!semaphore&&void 0!==(e=queue$2.shift());)exec$1(e)}var array=function(e){return function(t){return e.some(function(e){return matcher(e)(t)})}},predicate=function(t){return function(e){return t(e)}},string=function(t){return function(e){return e.type===String(t)}},symbol=function(t){return function(e){return e.type===t}},wildcard=function(){return kTrue};function matcher(e){var t="*"===e?wildcard:string$1(e)?string:array$1(e)?array:stringableFunc(e)?string:func(e)?predicate:symbol$1(e)?symbol:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var END={type:CHANNEL_END_TYPE},isEnd=function(e){return e&&e.type===CHANNEL_END_TYPE};function channel$1(t){void 0===t&&(t=expanding());var r=!1,i=[];return{take:function(e){r&&t.isEmpty()?e(END):t.isEmpty()?(i.push(e),e.cancel=function(){remove$1(i,e)}):e(t.take())},put:function(e){if(!r)return 0===i.length?t.put(e):void i.shift()(e)},flush:function(e){r&&t.isEmpty()?e(END):e(t.flush())},close:function(){if(!r){r=!0;var e=i;i=[];for(var t=0,n=e.length;t<n;t++)(0,e[t])(END)}}}}function eventChannel(e,t){void 0===t&&(t=none());function n(){r||(r=!0,func(o)&&o(),i.close())}var r=!1,i=channel$1(t),o=e(function(e){isEnd(e)?n():i.put(e)});return o=once(o),r&&o(),{take:i.take,flush:i.flush,close:n}}function multicastChannel(){function n(){l===s&&(l=s.slice())}function o(){a=!0,s=l,l=[],s.forEach(function(e){e(END)})}var a=!1,s=[],l=s,e={};return e[MULTICAST]=!0,e.put=function(e){if(!a)if(isEnd(e))o();else for(var t=s=l,n=0,r=t.length;n<r;n++){var i=t[n];i[MATCH$2](e)&&(i.cancel(),i(e))}},e.take=function(e,t){void 0===t&&(t=wildcard),a?e(END):(e[MATCH$2]=t,n(),l.push(e),e.cancel=once(function(){n(),remove$1(l,e)}))},e.close=o,e}function stdChannel(){var e=multicastChannel(),t=e.put;return e.put=function(e){e[SAGA_ACTION]?t(e):asap(function(){t(e)})},e}var RUNNING=0,CANCELLED=1,ABORTED=2,DONE=3;function resolvePromise(e,t){var n=e[CANCEL$1];func(n)&&(t.cancel=n),e.then(t,function(e){t(e,!0)})}var _effectRunnerMap,current=0,nextSagaId=function(){return++current};function getIteratorMetaInfo(e,t){return e.isSagaIterator?{name:e.meta.name}:getMetaInfo(t)}function createTaskIterator(e){var t=e.context,n=e.fn,e=e.args;try{var r,i=n.apply(t,e);return iterator(i)?i:(r=!1,makeIterator(function(e){return r?{value:e,done:!0}:(r=!0,{value:i,done:!promise$2(i)})}))}catch(e){return makeIterator(function(){throw e})}}function runPutEffect(t,e,n){var r=e.channel,i=e.action,o=e.resolve;asap(function(){var e;try{e=(r?r.put:t.dispatch)(i)}catch(e){return void n(e,!0)}o&&promise$2(e)?resolvePromise(e,n):n(e)})}function runTakeEffect(e,t,n){function r(e){e instanceof Error?n(e,!0):isEnd(e)&&!o?n(TERMINATE):n(e)}var i=t.channel,e=void 0===i?e.channel:i,i=t.pattern,o=t.maybe;try{e.take(r,notUndef(i)?matcher(i):null)}catch(e){return void n(e,!0)}n.cancel=r.cancel}function runCallEffect(e,t,n,r){var i=t.context,o=t.fn,t=t.args,r=r.task;try{var a=o.apply(i,t);promise$2(a)?resolvePromise(a,n):iterator(a)?proc(e,a,r.context,current,getMetaInfo(o),!1,n):n(a)}catch(e){n(e,!0)}}function runCPSEffect(e,t,n){var r=t.context,i=t.fn,t=t.args;try{function o(e,t){undef(e)?n(t):n(e,!0)}i.apply(r,t.concat(o)),o.cancel&&(n.cancel=o.cancel)}catch(e){n(e,!0)}}function runForkEffect(t,e,n,r){var i=e.context,o=e.fn,a=e.args,s=e.detached,l=r.task,c=createTaskIterator({context:i,fn:o,args:a}),u=getIteratorMetaInfo(c,o);immediately(function(){var e=proc(t,c,l.context,current,u,s,void 0);s?n(e):e.isRunning()?(l.queue.addTask(e),n(e)):e.isAborted()?l.queue.abort(e.error()):n(e)})}function runJoinEffect(e,t,n,r){function i(e,t){var n;e.isRunning()?(n={task:a,cb:t},t.cancel=function(){e.isRunning()&&remove$1(e.joiners,n)},e.joiners.push(n)):e.isAborted()?t(e.error(),!0):t(e.result())}var o,a=r.task;array$1(t)?0===t.length?n([]):(o=createAllStyleChildCallbacks(t,n),t.forEach(function(e,t){i(e,o[t])})):i(t,n)}function cancelSingleTask(e){e.isRunning()&&e.cancel()}function runCancelEffect(e,t,n,r){r=r.task;t===SELF_CANCELLATION?cancelSingleTask(r):array$1(t)?t.forEach(cancelSingleTask):cancelSingleTask(t),n()}function runAllEffect(e,t,n,r){var i,o=r.digestEffect,a=current,r=Object.keys(t);0===r.length?n(array$1(t)?[]:{}):(i=createAllStyleChildCallbacks(t,n),r.forEach(function(e){o(t[e],a,i[e],e)}))}function runRaceEffect(e,t,r,n){var i=n.digestEffect,o=current,a=Object.keys(t),s=array$1(t)?createEmptyArray(a.length):{},l={},c=!1;a.forEach(function(n){function e(e,t){c||(t||shouldComplete(e)?(r.cancel(),r(e,t)):(r.cancel(),c=!0,s[n]=e,r(s)))}e.cancel=noop$5,l[n]=e}),r.cancel=function(){c||(c=!0,a.forEach(function(e){return l[e].cancel()}))},a.forEach(function(e){c||i(t[e],o,l[e],e)})}function runSelectEffect(e,t,n){var r=t.selector,t=t.args;try{n(r.apply(void 0,[e.getState()].concat(t)))}catch(e){n(e,!0)}}function runChannelEffect(t,e,n){function r(e){isEnd(e)||t.channel.take(r,a),o.put(e)}var i=e.pattern,o=channel$1(e.buffer),a=matcher(i),s=o.close;o.close=function(){r.cancel(),s()},t.channel.take(r,a),n(o)}function runCancelledEffect(e,t,n,r){n(r.task.isCancelled())}function runFlushEffect(e,t,n){t.flush(n)}function runGetContextEffect(e,t,n,r){n(r.task.context[t])}function runSetContextEffect(e,t,n,r){r=r.task;assignWithSymbols(r.context,t),n()}(_effectRunnerMap={})[TAKE]=runTakeEffect,_effectRunnerMap[PUT]=runPutEffect,_effectRunnerMap[ALL]=runAllEffect,_effectRunnerMap[RACE]=runRaceEffect,_effectRunnerMap[CALL]=runCallEffect,_effectRunnerMap[CPS]=runCPSEffect,_effectRunnerMap[FORK]=runForkEffect,_effectRunnerMap[JOIN]=runJoinEffect,_effectRunnerMap[CANCEL]=runCancelEffect,_effectRunnerMap[SELECT]=runSelectEffect,_effectRunnerMap[ACTION_CHANNEL]=runChannelEffect,_effectRunnerMap[CANCELLED$1]=runCancelledEffect,_effectRunnerMap[FLUSH]=runFlushEffect,_effectRunnerMap[GET_CONTEXT]=runGetContextEffect,_effectRunnerMap[SET_CONTEXT]=runSetContextEffect;var effectRunnerMap=_effectRunnerMap;function forkQueue(r,t,i){var o,a=[],s=!1;e(r);function l(e){t(),n(),i(e,!0)}function e(n){a.push(n),n.cont=function(e,t){s||(remove$1(a,n),n.cont=noop$5,t?l(e):(n===r&&(o=e),a.length||(s=!0,i(o))))}}function n(){s||(s=!0,a.forEach(function(e){e.cont=noop$5,e.cancel()}),a=[])}return{addTask:e,cancelAll:n,abort:l,getTasks:function(){return a}}}function formatLocation(e,t){return e+"?"+t}function effectLocationAsString(e){e=getLocation$1(e);return e?e.code+" "+formatLocation(e.fileName,e.lineNumber):""}function sagaLocationAsString(e){var t=e.name,e=e.location;return e?t+" "+formatLocation(e.fileName,e.lineNumber):t}function cancelledTasksAsString(e){e=flatMap(function(e){return e.cancelledTasks},e);return e.length?["Tasks cancelled due to error:"].concat(e).join("\n"):""}var crashedEffect=null,sagaStack=[],addSagaFrame=function(e){e.crashedEffect=crashedEffect,sagaStack.push(e)},clear$1=function(){crashedEffect=null,sagaStack.length=0},setCrashedEffect=function(e){crashedEffect=e},toString$8=function(){var e=sagaStack[0],t=sagaStack.slice(1),n=e.crashedEffect?effectLocationAsString(e.crashedEffect):null;return["The above error occurred in task "+sagaLocationAsString(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map(function(e){return" created by "+sagaLocationAsString(e.meta)}),[cancelledTasksAsString(sagaStack)]).join("\n")};function newTask(r,e,t,n,i,o,a){void 0===a&&(a=noop$5);var s,l,c=RUNNING,u=null,d=[],p=Object.create(t),f=forkQueue(e,function(){d.push.apply(d,f.getTasks().map(function(e){return e.meta.name}))},h);function h(t,n){var e;n?(c=ABORTED,addSagaFrame({meta:i,cancelledTasks:d}),m.isRoot&&(e=toString$8(),clear$1(),r.onError(t,{sagaStack:e})),l=t,u&&u.reject(t)):(t===TASK_CANCEL?c=CANCELLED:c!==CANCELLED&&(c=DONE),s=t,u&&u.resolve(t)),m.cont(t,n),m.joiners.forEach(function(e){e.cb(t,n)}),m.joiners=null}(t={})[TASK]=!0,t.id=n,t.meta=i,t.isRoot=o,t.context=p,t.joiners=[],t.queue=f,t.cancel=function(){c===RUNNING&&(c=CANCELLED,f.cancelAll(),h(TASK_CANCEL,!1))},t.cont=a,t.end=h,t.setContext=function(e){assignWithSymbols(p,e)},t.toPromise=function(){return u||(u=deferred(),c===ABORTED?u.reject(l):c!==RUNNING&&u.resolve(s)),u.promise},t.isRunning=function(){return c===RUNNING},t.isCancelled=function(){return c===CANCELLED||c===RUNNING&&e.status===CANCELLED},t.isAborted=function(){return c===ABORTED},t.result=function(){return s},t.error=function(){return l};var m=t;return m}function proc(s,r,e,i,o,t,n){var l=s.finalizeRunEffect(function(e,t,n){promise$2(e)?resolvePromise(e,n):iterator(e)?proc(s,e,c.context,t,o,!1,n):e&&e[IO]?(0,effectRunnerMap[e.type])(s,e.payload,n,u):n(e)}),a=(d.cancel=noop$5,{meta:o,cancel:function(){a.status===RUNNING&&(a.status=CANCELLED,d(TASK_CANCEL))},status:RUNNING}),c=newTask(s,a,e,i,o,t,n),u={task:c,digestEffect:p};return n&&(n.cancel=c.cancel),d(),c;function d(e,t){try{var n;t?(n=r.throw(e),clear$1()):n=shouldCancel(e)?(a.status=CANCELLED,d.cancel(),func(r.return)?r.return(TASK_CANCEL):{done:!0,value:TASK_CANCEL}):shouldTerminate(e)?func(r.return)?r.return():{done:!0}:r.next(e),n.done?(a.status!==CANCELLED&&(a.status=DONE),a.cont(n.value)):p(n.value,i,d)}catch(e){if(a.status===CANCELLED)throw e;a.status=ABORTED,a.cont(e,!0)}}function p(n,e,r,t){void 0===t&&(t="");var i,o=nextSagaId();function a(e,t){i||(i=!0,r.cancel=noop$5,s.sagaMonitor&&(t?s.sagaMonitor.effectRejected(o,e):s.sagaMonitor.effectResolved(o,e)),t&&setCrashedEffect(n),r(e,t))}s.sagaMonitor&&s.sagaMonitor.effectTriggered({effectId:o,parentEffectId:e,label:t,effect:n}),a.cancel=noop$5,r.cancel=function(){i||(i=!0,a.cancel(),a.cancel=noop$5,s.sagaMonitor&&s.sagaMonitor.effectCancelled(o))},l(n,o,a)}}function runSaga$1(e,t){for(var n=e.channel,n=void 0===n?stdChannel():n,r=e.dispatch,i=e.getState,o=e.context,a=void 0===o?{}:o,s=e.sagaMonitor,o=e.effectMiddlewares,l=e.onError,l=void 0===l?logError:l,c=arguments.length,u=new Array(2<c?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];var p,f=t.apply(void 0,u),h=nextSagaId(),m=(s&&(s.rootSagaStarted=s.rootSagaStarted||noop$5,s.effectTriggered=s.effectTriggered||noop$5,s.effectResolved=s.effectResolved||noop$5,s.effectRejected=s.effectRejected||noop$5,s.effectCancelled=s.effectCancelled||noop$5,s.actionDispatched=s.actionDispatched||noop$5,s.rootSagaStarted({effectId:h,saga:t,args:u})),o=o?(p=compose$3.apply(void 0,o),function(r){return function(e,t,n){return p(function(e){return r(e,t,n)})(e)}}):identity$3,{channel:n,dispatch:wrapSagaDispatch(r),getState:i,sagaMonitor:s,onError:l,finalizeRunEffect:o});return immediately(function(){var e=proc(m,f,a,h,getMetaInfo(t),!0,void 0);return s&&s.effectResolved(h,e),e})}function sagaMiddlewareFactory(e){var n,e=void 0===e?{}:e,t=e.context,r=void 0===t?{}:t,t=e.channel,i=void 0===t?stdChannel():t,o=e.sagaMonitor,a=_objectWithoutPropertiesLoose$2(e,["context","channel","sagaMonitor"]);function s(e){var t=e.getState,e=e.dispatch;return n=runSaga$1.bind(null,_extends({},a,{context:r,channel:i,dispatch:e,getState:t,sagaMonitor:o})),function(n){return function(e){o&&o.actionDispatched&&o.actionDispatched(e);var t=n(e);return i.put(e),t}}}return s.run=function(){return n.apply(void 0,arguments)},s.setContext=function(e){assignWithSymbols(r,e)},s}var reduxSagaCoreNpmProxy_esm=Object.freeze({__proto__:null,default:sagaMiddlewareFactory,CANCEL:CANCEL$1,SAGA_LOCATION:SAGA_LOCATION,buffers:buffers,detach:detach,END:END,channel:channel$1,eventChannel:eventChannel,isEnd:isEnd,multicastChannel:multicastChannel,runSaga:runSaga$1,stdChannel:stdChannel}),SagaManager={},SagaComparer={};function sagaEquals(e,t){var n,r;return("function"!=typeof e||"function"!=typeof t)&&e&&t?"function"==typeof e?(n=e)===(r=t).saga&&!r.argument:"function"==typeof t?(n=e).saga===(r=t)&&!n.argument:(n=e).saga===(r=t).saga&&n.argument===r.argument:e===t}SagaComparer.__esModule=!0,SagaComparer.sagaEquals=sagaEquals;var __spreadArrays$1=commonjsGlobal$1&&commonjsGlobal$1.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},SagaComparer_1$1=(SagaManager.__esModule=!0,SagaComparer),redux_dynamic_modules_core_1$1=lib$2;function getSagaManager(t){var n=redux_dynamic_modules_core_1$1.getMap(SagaComparer_1$1.sagaEquals);return{getItems:function(){return __spreadArrays$1(n.keys)},add:function(e){e&&e.forEach(function(e){e&&!n.get(e)&&n.add(e,runSaga(t,e))})},remove:function(e){e&&e.forEach(function(e){n.get(e)&&n.remove(e).cancel()})},dispose:function(){n.keys.forEach(function(e){return n.get(e).cancel()})}}}function runSaga(e,t){var n;return"function"==typeof t?e.run(t):(n=t.saga,t=t.argument,e.run(n,t))}SagaManager.getSagaManager=getSagaManager,SagaExtension.__esModule=!0;var redux_saga_1=reduxSagaCoreNpmProxy_esm,redux_dynamic_modules_core_1=lib$2,SagaManager_1=SagaManager,SagaComparer_1=SagaComparer;function getSagaExtension(t,e){var e=redux_saga_1.default({context:t,sagaMonitor:void 0,onError:e}),n=redux_dynamic_modules_core_1.getRefCountedManager(SagaManager_1.getSagaManager(e),SagaComparer_1.sagaEquals);return{middleware:[e],onModuleManagerCreated:function(e){t&&(t.moduleManager=e)},onModuleAdded:function(e){e.sagas&&n.add(e.sagas)},onModuleRemoved:function(e){e.sagas&&n.remove(e.sagas)},dispose:function(){n.dispose()}}}function createThunkMiddleware(i){return function(e){var n=e.dispatch,r=e.getState;return function(t){return function(e){return"function"==typeof e?e(n,r,i):t(e)}}}}SagaExtension.getSagaExtension=getSagaExtension,function(e){e.__esModule=!0;var t,n=SagaExtension;for(t in n)e.hasOwnProperty(t)||(e[t]=n[t])}(lib);var thunk=createThunkMiddleware(),thunkMiddleware=(thunk.withExtraArgument=createThunkMiddleware,thunk),redux_thunk_1=thunkMiddleware;function getThunkExtension(){return{middleware:[redux_thunk_1.default]}}var getThunkExtension_1=getThunkExtension,compose$2=redux.compose,composeWithDevTools="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?compose$2:compose$2.apply(null,arguments)};const store$4=lib$2.createStore({initialState:{},extensions:[lib.getSagaExtension(),getThunkExtension_1()],enhancers:[],advancedComposeEnhancers:composeWithDevTools({maxAge:500})});function isPlainObject$1(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function deepClone(t){if(!isPlainObject$1(t))return t;const n={};return Object.keys(t).forEach(e=>{n[e]=deepClone(t[e])}),n}function deepmerge(t,n,r={clone:!0}){const i=r.clone?_extends({},t):t;return isPlainObject$1(t)&&isPlainObject$1(n)&&Object.keys(n).forEach(e=>{"__proto__"!==e&&(isPlainObject$1(n[e])&&e in t&&isPlainObject$1(t[e])?i[e]=deepmerge(t[e],n[e],r):r.clone?i[e]=isPlainObject$1(n[e])?deepClone(n[e]):n[e]:i[e]=n[e])}),i}function formatMuiErrorMessage(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function capitalize$2(e){if("string"!=typeof e)throw new Error(formatMuiErrorMessage(7));return e.charAt(0).toUpperCase()+e.slice(1)}function createChainedFunction(...e){return e.reduce((t,n)=>null==n?t:function(...e){t.apply(this,e),n.apply(this,e)},()=>{})}function debounce$1(t,n=166){let r;function e(...e){clearTimeout(r),r=setTimeout(()=>{t.apply(this,e)},n)}return e.clear=()=>{clearTimeout(r)},e}function deprecatedPropType(e,t){return()=>null}function isMuiElement(e,t){return react.exports.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}function ownerDocument(e){return e&&e.ownerDocument||document}function ownerWindow(e){return ownerDocument(e).defaultView||window}function requirePropFactory(e,t){return()=>null}function setRef(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const useEnhancedEffect="undefined"!=typeof window?react.exports.useLayoutEffect:react.exports.useEffect;var useEnhancedEffect$1=useEnhancedEffect;let globalId=0;function useGlobalId(e){const[t,n]=react.exports.useState(e);e=e||t;return react.exports.useEffect(()=>{null==t&&(globalId+=1,n("mui-"+globalId))},[t]),e}const maybeReactUseId=React$1.useId;function useId(e){var t;return void 0!==maybeReactUseId?(t=maybeReactUseId(),null!=e?e:t):useGlobalId(e)}function unsupportedProp(e,t,n,r,i){return null}function useControlled({controlled:e,default:t}){const n=react.exports.useRef(void 0!==e)["current"],[r,i]=react.exports.useState(t);return[n?e:r,react.exports.useCallback(e=>{n||i(e)},[])]}function useEventCallback(e){const t=react.exports.useRef(e);return useEnhancedEffect$1(()=>{t.current=e}),react.exports.useCallback((...e)=>(0,t.current)(...e),[])}function useForkRef(...e){return react.exports.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{setRef(e,t)})},e)}let hadKeyboardEvent=!0,hadFocusVisibleRecently=!1,hadFocusVisibleRecentlyTimeout;const inputTypesWhitelist={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function focusTriggersKeyboardModality(e){var{type:t,tagName:n}=e;return!("INPUT"!==n||!inputTypesWhitelist[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}function handleKeyDown(e){e.metaKey||e.altKey||e.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){"hidden"===this.visibilityState&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function prepare(e){e.addEventListener("keydown",handleKeyDown,!0),e.addEventListener("mousedown",handlePointerDown,!0),e.addEventListener("pointerdown",handlePointerDown,!0),e.addEventListener("touchstart",handlePointerDown,!0),e.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible(e){e=e.target;try{return e.matches(":focus-visible")}catch(e){}return hadKeyboardEvent||focusTriggersKeyboardModality(e)}function useIsFocusVisible(){var e=react.exports.useCallback(e=>{null!=e&&prepare(e.ownerDocument)},[]);const t=react.exports.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!isFocusVisible(e)&&(t.current=!0)},onBlur:function(){return!(!t.current||(hadFocusVisibleRecently=!0,window.clearTimeout(hadFocusVisibleRecentlyTimeout),hadFocusVisibleRecentlyTimeout=window.setTimeout(()=>{hadFocusVisibleRecently=!1},100),t.current=!1))},ref:e}}function getScrollbarSize(e){e=e.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}let cachedType;function detectScrollType(){var e,t;return cachedType||(e=document.createElement("div"),(t=document.createElement("div")).style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),cachedType="reverse",0<e.scrollLeft?cachedType="default":(e.scrollLeft=1,0===e.scrollLeft&&(cachedType="negative")),document.body.removeChild(e)),cachedType}function getNormalizedScrollLeft(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;switch(detectScrollType()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const usePreviousProps=e=>{const t=react.exports.useRef({});return react.exports.useEffect(()=>{t.current=e}),t.current};var usePreviousProps$1=usePreviousProps;function resolveProps(e,i){const o=_extends({},i);return Object.keys(e).forEach(t=>{if(t.toString().match(/^(components|slots)$/))o[t]=_extends({},e[t],o[t]);else if(t.toString().match(/^(componentsProps|slotProps)$/)){const n=e[t]||{},r=i[t];o[t]={},r&&Object.keys(r)?n&&Object.keys(n)?(o[t]=_extends({},r),Object.keys(n).forEach(e=>{o[t][e]=resolveProps(n[e],r[e])})):o[t]=r:o[t]=n}else void 0===o[t]&&(o[t]=e[t])}),o}function composeClasses(t,r,i=void 0){const n={};return Object.keys(t).forEach(e=>{n[e]=t[e].reduce((e,t)=>{var n;return t&&(""!==(n=r(t))&&e.push(n),i)&&i[t]&&e.push(i[t]),e},[]).join(" ")}),n}const defaultGenerator=e=>e,createClassNameGenerator=()=>{let t=defaultGenerator;return{configure(e){t=e},generate(e){return t(e)},reset(){t=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator();var ClassNameGenerator$1=ClassNameGenerator;const globalStateClassesMapping={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function generateUtilityClass(e,t,n="Mui"){var r=globalStateClassesMapping[t];return r?n+"-"+r:ClassNameGenerator$1.generate(e)+"-"+t}function generateUtilityClasses(t,e,n="Mui"){const r={};return e.forEach(e=>{r[e]=generateUtilityClass(t,e,n)}),r}var THEME_ID="$$material";function memoize$4(t){var n=Object.create(null);return function(e){return void 0===n[e]&&(n[e]=t(e)),n[e]}}var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=memoize$4(function(e){return reactPropsRegex.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91});function sheetForTag$3(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function createStyleElement$3(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var StyleSheet$3=function(){function e(e){var n=this;this._insertTag=function(e){var t=0===n.tags.length?n.insertionPoint?n.insertionPoint.nextSibling:n.prepend?n.container.firstChild:n.before:n.tags[n.tags.length-1].nextSibling;n.container.insertBefore(e,t),n.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(createStyleElement$3(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=sheetForTag$3(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),MS$2="-ms-",MOZ$2="-moz-",WEBKIT$2="-webkit-",COMMENT$2="comm",RULESET$2="rule",DECLARATION$2="decl",IMPORT$2="@import",KEYFRAMES$2="@keyframes",abs$2=Math.abs,from$2=String.fromCharCode,assign$4=Object.assign;function hash$4(e,t){return 45^charat$2(e,0)?(((t<<2^charat$2(e,0))<<2^charat$2(e,1))<<2^charat$2(e,2))<<2^charat$2(e,3):0}function trim$2(e){return e.trim()}function match$6(e,t){return(e=t.exec(e))&&e[0]}function replace$2(e,t,n){return e.replace(t,n)}function indexof$2(e,t){return e.indexOf(t)}function charat$2(e,t){return 0|e.charCodeAt(t)}function substr$2(e,t,n){return e.slice(t,n)}function strlen$2(e){return e.length}function sizeof$2(e){return e.length}function append$2(e,t){return t.push(e),e}function combine$3(e,t){return e.map(t).join("")}var line$2=1,column$2=1,length$2=0,position$3=0,character$2=0,characters$2="";function node$3(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:line$2,column:column$2,length:a,return:""}}function copy$2(e,t){return assign$4(node$3("",null,null,"",null,null,0),e,{length:-e.length},t)}function char$2(){return character$2}function prev$2(){return character$2=0<position$3?charat$2(characters$2,--position$3):0,column$2--,10===character$2&&(column$2=1,line$2--),character$2}function next$2(){return character$2=position$3<length$2?charat$2(characters$2,position$3++):0,column$2++,10===character$2&&(column$2=1,line$2++),character$2}function peek$2(){return charat$2(characters$2,position$3)}function caret$2(){return position$3}function slice$6(e,t){return substr$2(characters$2,e,t)}function token$2(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc$2(e){return line$2=column$2=1,length$2=strlen$2(characters$2=e),position$3=0,[]}function dealloc$2(e){return characters$2="",e}function delimit$2(e){return trim$2(slice$6(position$3-1,delimiter$3(91===e?e+2:40===e?e+1:e)))}function whitespace$3(e){for(;(character$2=peek$2())&&character$2<33;)next$2();return 2<token$2(e)||3<token$2(character$2)?"":" "}function escaping$2(e,t){for(;--t&&next$2()&&!(character$2<48||102<character$2||57<character$2&&character$2<65||70<character$2&&character$2<97););return slice$6(e,caret$2()+(t<6&&32==peek$2()&&32==next$2()))}function delimiter$3(e){for(;next$2();)switch(character$2){case e:return position$3;case 34:case 39:34!==e&&39!==e&&delimiter$3(character$2);break;case 40:41===e&&delimiter$3(e);break;case 92:next$2()}return position$3}function commenter$2(e,t){for(;next$2()&&e+character$2!==57&&(e+character$2!==84||47!==peek$2()););return"/*"+slice$6(t,position$3-1)+"*"+from$2(47===e?e:next$2())}function identifier$2(e){for(;!token$2(peek$2());)next$2();return slice$6(e,position$3)}function compile$2(e){return dealloc$2(parse$7("",null,null,null,[""],e=alloc$2(e),0,[0],e))}function parse$7(e,t,n,r,i,o,a,s,l){for(var c,u,d,p=0,f=0,h=a,m=0,g=0,v=1,y=1,x=1,b=0,C="",$=i,S=C;y;)switch(c=b,b=next$2()){case 40:if(108!=c&&58==charat$2(S,h-1)){-1!=indexof$2(S+=replace$2(delimit$2(b),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:S+=delimit$2(b);break;case 9:case 10:case 13:case 32:S+=whitespace$3(c);break;case 92:S+=escaping$2(caret$2()-1,7);continue;case 47:switch(peek$2()){case 42:case 47:append$2(comment$2(commenter$2(next$2(),caret$2()),t,n),l);break;default:S+="/"}break;case 123*v:s[p++]=strlen$2(S)*x;case 125*v:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+f:-1==x&&(S=replace$2(S,/\f/g,"")),0<g&&strlen$2(S)-h&&append$2(32<g?declaration$2(S+";",r,n,h-1):declaration$2(replace$2(S," ","")+";",r,n,h-2),l);break;case 59:S+=";";default:if(append$2(d=ruleset$2(S,t,n,p,f,i,s,C,$=[],u=[],h),o),123===b)if(0===f)parse$7(S,t,d,d,$,o,h,s,u);else switch(99===m&&110===charat$2(S,3)?100:m){case 100:case 109:case 115:parse$7(e,d,d,r&&append$2(ruleset$2(e,d,d,0,0,i,s,C,i,$=[],h),u),i,u,h,s,r?$:u);break;default:parse$7(S,d,d,d,[""],u,0,s,u)}}p=f=g=0,v=x=1,C=S="",h=a;break;case 58:h=1+strlen$2(S),g=c;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==prev$2())continue;switch(S+=from$2(b),b*v){case 38:x=0<f?1:(S+="\f",-1);break;case 44:s[p++]=(strlen$2(S)-1)*x,x=1;break;case 64:45===peek$2()&&(S+=delimit$2(next$2())),m=peek$2(),f=h=strlen$2(C=S+=identifier$2(caret$2())),b++;break;case 45:45===c&&2==strlen$2(S)&&(v=0)}}return o}function ruleset$2(e,t,n,r,i,o,a,s,l,c,u){for(var d,p=i-1,f=0===i?o:[""],h=sizeof$2(f),m=0,g=0;m<r;++m)for(var v,y=0,x=substr$2(e,p+1,p=abs$2(d=a[m]));y<h;++y)(v=trim$2(0<d?f[y]+" "+x:replace$2(x,/&\f/g,f[y])))&&(l[g++]=v);return node$3(e,t,n,0===i?RULESET$2:s,l,c,u)}function comment$2(e,t,n){return node$3(e,t,n,COMMENT$2,from$2(char$2()),substr$2(e,2,-2),0)}function declaration$2(e,t,n,r){return node$3(e,t,n,DECLARATION$2,substr$2(e,0,r),substr$2(e,r+1,-1),r)}function serialize$2(e,t){for(var n="",r=sizeof$2(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function stringify$5(e,t,n,r){switch(e.type){case IMPORT$2:case DECLARATION$2:return e.return=e.return||e.value;case COMMENT$2:return"";case KEYFRAMES$2:return e.return=e.value+"{"+serialize$2(e.children,r)+"}";case RULESET$2:e.value=e.props.join(",")}return strlen$2(n=serialize$2(e.children,r))?e.return=e.value+"{"+n+"}":""}function middleware$2(a){var s=sizeof$2(a);return function(e,t,n,r){for(var i="",o=0;o<s;o++)i+=a[o](e,t,n,r)||"";return i}}function rulesheet$2(t){return function(e){e.root||(e=e.return)&&t(e)}}var weakMemoize=function(n){var r=new WeakMap;return function(e){var t;return r.has(e)?r.get(e):(t=n(e),r.set(e,t),t)}},identifierWithPointTracking$2=function(e,t,n){for(var r,i=0;r=i,i=peek$2(),38===r&&12===i&&(t[n]=1),!token$2(i);)next$2();return slice$6(e,position$3)},toRules$2=function(e,t){var n=-1,r=44;do{switch(token$2(r)){case 0:38===r&&12===peek$2()&&(t[n]=1),e[n]+=identifierWithPointTracking$2(position$3-1,t,n);break;case 2:e[n]+=delimit$2(r);break;case 4:if(44===r){e[++n]=58===peek$2()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=from$2(r)}}while(r=next$2());return e},getRules$2=function(e,t){return dealloc$2(toRules$2(alloc$2(e),t))},fixedElements$2=new WeakMap,compat$2=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fixedElements$2.get(n))&&!r){fixedElements$2.set(e,!0);for(var i=[],o=getRules$2(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},removeLabel$2=function(e){var t;"decl"===e.type&&108===(t=e.value).charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")};function prefix$5(e,t){switch(hash$4(e,t)){case 5103:return WEBKIT$2+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT$2+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT$2+e+MOZ$2+e+MS$2+e+e;case 6828:case 4268:return WEBKIT$2+e+MS$2+e+e;case 6165:return WEBKIT$2+e+MS$2+"flex-"+e+e;case 5187:return WEBKIT$2+e+replace$2(e,/(\w+).+(:[^]+)/,WEBKIT$2+"box-$1$2"+MS$2+"flex-$1$2")+e;case 5443:return WEBKIT$2+e+MS$2+"flex-item-"+replace$2(e,/flex-|-self/,"")+e;case 4675:return WEBKIT$2+e+MS$2+"flex-line-pack"+replace$2(e,/align-content|flex-|-self/,"")+e;case 5548:return WEBKIT$2+e+MS$2+replace$2(e,"shrink","negative")+e;case 5292:return WEBKIT$2+e+MS$2+replace$2(e,"basis","preferred-size")+e;case 6060:return WEBKIT$2+"box-"+replace$2(e,"-grow","")+WEBKIT$2+e+MS$2+replace$2(e,"grow","positive")+e;case 4554:return WEBKIT$2+replace$2(e,/([^-])(transform)/g,"$1"+WEBKIT$2+"$2")+e;case 6187:return replace$2(replace$2(replace$2(e,/(zoom-|grab)/,WEBKIT$2+"$1"),/(image-set)/,WEBKIT$2+"$1"),e,"")+e;case 5495:case 3959:return replace$2(e,/(image-set\([^]*)/,WEBKIT$2+"$1$`$1");case 4968:return replace$2(replace$2(e,/(.+:)(flex-)?(.*)/,WEBKIT$2+"box-pack:$3"+MS$2+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT$2+e+e;case 4095:case 3583:case 4068:case 2532:return replace$2(e,/(.+)-inline(.+)/,WEBKIT$2+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(6<strlen$2(e)-1-t)switch(charat$2(e,t+1)){case 109:if(45!==charat$2(e,t+4))break;case 102:return replace$2(e,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT$2+"$2-$3$1"+MOZ$2+(108==charat$2(e,t+3)?"$3":"$2-$3"))+e;case 115:return~indexof$2(e,"stretch")?prefix$5(replace$2(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==charat$2(e,t+1))break;case 6444:switch(charat$2(e,strlen$2(e)-3-(~indexof$2(e,"!important")&&10))){case 107:return replace$2(e,":",":"+WEBKIT$2)+e;case 101:return replace$2(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT$2+(45===charat$2(e,14)?"inline-":"")+"box$3$1"+WEBKIT$2+"$2$3$1"+MS$2+"$2box$3")+e}break;case 5936:switch(charat$2(e,t+11)){case 114:return WEBKIT$2+e+MS$2+replace$2(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return WEBKIT$2+e+MS$2+replace$2(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return WEBKIT$2+e+MS$2+replace$2(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return WEBKIT$2+e+MS$2+e+e}return e}var prefixer$2=function(t,e,n,r){if(-1<t.length&&!t.return)switch(t.type){case DECLARATION$2:t.return=prefix$5(t.value,t.length);break;case KEYFRAMES$2:return serialize$2([copy$2(t,{value:replace$2(t.value,"@","@"+WEBKIT$2)})],r);case RULESET$2:if(t.length)return combine$3(t.props,function(e){switch(match$6(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize$2([copy$2(t,{props:[replace$2(e,/:(read-\w+)/,":"+MOZ$2+"$1")]})],r);case"::placeholder":return serialize$2([copy$2(t,{props:[replace$2(e,/:(plac\w+)/,":"+WEBKIT$2+"input-$1")]}),copy$2(t,{props:[replace$2(e,/:(plac\w+)/,":"+MOZ$2+"$1")]}),copy$2(t,{props:[replace$2(e,/:(plac\w+)/,MS$2+"input-$1")]})],r)}return""})}},defaultStylisPlugins$2=[prefixer$2],createCache$3=function(e){var i,t=e.key,n=("css"===t&&(n=document.querySelectorAll("style[data-emotion]:not([data-s])"),Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})),e.stylisPlugins||defaultStylisPlugins$2),r={},o=[],a=e.container||document.head,s=(Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)r[t[n]]=!0;o.push(e)}),[compat$2,removeLabel$2]),l=[stringify$5,rulesheet$2(function(e){i.insert(e)})],c=middleware$2(s.concat(n,l)),s=function(e,t,n,r){i=n,serialize$2(compile$2(e?e+"{"+t.styles+"}":t.styles),c),r&&(u.inserted[t.name]=!0)},u={key:t,sheet:new StyleSheet$3({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:r,registered:{},insert:s};return u.sheet.hydrate(o),u},hoistNonReactStatics=function(e,t){return hoistNonReactStatics_cjs(e,t)},hoistNonReactStatics$1=hoistNonReactStatics,isBrowser=!0;function getRegisteredStyles(t,n,e){var r="";return e.split(" ").forEach(function(e){void 0!==t[e]?n.push(t[e]+";"):r+=e+" "}),r}var registerStyles=function(e,t,n){var r=e.key+"-"+t.name;!1!==n&&!1!==isBrowser||void 0!==e.registered[r]||(e.registered[r]=t.styles)},insertStyles=function(e,t,n){registerStyles(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name])for(var i=t;e.insert(t===i?"."+r:"",i,e.sheet,!0),void 0!==(i=i.next););},emotionUtils_browser_esm=Object.freeze({__proto__:null,getRegisteredStyles:getRegisteredStyles,insertStyles:insertStyles,registerStyles:registerStyles});function murmur2(e){for(var t,n=0,r=0,i=e.length;4<=i;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(e){return 45===e.charCodeAt(1)},isProcessableValue=function(e){return null!=e&&"boolean"!=typeof e},processStyleName=memoize$4(function(e){return isCustomProperty(e)?e:e.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(animationRegex,function(e,t,n){return cursor={name:t,styles:n,next:cursor},t})}return 1===unitlessKeys[e]||isCustomProperty(e)||"number"!=typeof t||0===t?t:t+"px"},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return cursor={name:n.name,styles:n.styles,next:cursor},n.name;if(void 0===n.styles)return createStringFromObject(e,t,n);var r=n.next;if(void 0!==r)for(;void 0!==r;)cursor={name:r.name,styles:r.styles,next:cursor},r=r.next;return n.styles+";";case"function":var i,o;if(void 0!==e)return i=cursor,o=n(e),cursor=i,handleInterpolation(e,t,o)}var a;return null!=t&&void 0!==(a=t[n])?a:n}function createStringFromObject(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=handleInterpolation(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":isProcessableValue(a)&&(r+=processStyleName(o)+":"+processStyleValue(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=handleInterpolation(e,t,a);switch(o){case"animation":case"animationName":r+=processStyleName(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)isProcessableValue(a[l])&&(r+=processStyleName(o)+":"+processStyleValue(o,a[l])+";")}return r}var cursor,labelPattern=/label:\s*([^\s;\n{]+)\s*(;|$)/g,serializeStyles=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="",o=(cursor=void 0,e[0]);null==o||void 0===o.raw?(r=!1,i+=handleInterpolation(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=handleInterpolation(n,t,e[a]),r&&(i+=o[a]);labelPattern.lastIndex=0;for(var s,l="";null!==(s=labelPattern.exec(i));)l+="-"+s[1];return{name:murmur2(i)+l,styles:i,next:cursor}},emotionSerialize_browser_esm=Object.freeze({__proto__:null,serializeStyles:serializeStyles}),syncFallback=function(e){return e()},useInsertionEffect$1=React$1.useInsertionEffect||!1,useInsertionEffectAlwaysWithSyncFallback=useInsertionEffect$1||syncFallback,useInsertionEffectWithLayoutFallback=useInsertionEffect$1||react.exports.useLayoutEffect,hasOwnProperty$j={}.hasOwnProperty,EmotionCacheContext=react.exports.createContext("undefined"!=typeof HTMLElement?createCache$3({key:"css"}):null),CacheProvider=EmotionCacheContext.Provider,__unsafe_useEmotionCache=function(){return react.exports.useContext(EmotionCacheContext)},withEmotionCache=function(r){return react.exports.forwardRef(function(e,t){var n=react.exports.useContext(EmotionCacheContext);return r(e,n,t)})},ThemeContext$2=react.exports.createContext({}),useTheme$4=function(){return react.exports.useContext(ThemeContext$2)},getTheme=function(e,t){return"function"==typeof t?t(e):_extends({},e,t)},createCacheWithTheme=weakMemoize(function(t){return weakMemoize(function(e){return getTheme(t,e)})}),ThemeProvider$3=function(e){var t=react.exports.useContext(ThemeContext$2);return e.theme!==t&&(t=createCacheWithTheme(t)(e.theme)),react.exports.createElement(ThemeContext$2.Provider,{value:t},e.children)};function withTheme$1(r){var e=r.displayName||r.name||"Component",t=react.exports.forwardRef(function(e,t){var n=react.exports.useContext(ThemeContext$2);return react.exports.createElement(r,_extends({theme:n,ref:t},e))});return t.displayName="WithTheme("+e+")",hoistNonReactStatics$1(t,r)}var typePropName="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",createEmotionProps=function(e,t){var n,r={};for(n in t)hasOwnProperty$j.call(t,n)&&(r[n]=t[n]);return r[typePropName]=e,r},Insertion$2=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return registerStyles(t,n,r),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(t,n,r)}),null},Emotion=withEmotionCache(function(e,t,n){var r,i=e.css,o=("string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]),e[typePropName]),i=[i],a="",i=("string"==typeof e.className?a=getRegisteredStyles(t.registered,i,e.className):null!=e.className&&(a=e.className+" "),serializeStyles(i,void 0,react.exports.useContext(ThemeContext$2))),s=(a+=t.key+"-"+i.name,{});for(r in e)hasOwnProperty$j.call(e,r)&&"css"!==r&&r!==typePropName&&(s[r]=e[r]);return s.ref=n,s.className=a,react.exports.createElement(react.exports.Fragment,null,react.exports.createElement(Insertion$2,{cache:t,serialized:i,isStringTag:"string"==typeof o}),react.exports.createElement(o,s))}),jsx=function(e,t){var n=arguments;if(null==t||!hasOwnProperty$j.call(t,"css"))return react.exports.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=Emotion,i[1]=createEmotionProps(e,t);for(var o=2;o<r;o++)i[o]=n[o];return react.exports.createElement.apply(null,i)},Global=withEmotionCache(function(e,i){var e=e.styles,o=serializeStyles([e],void 0,react.exports.useContext(ThemeContext$2)),a=react.exports.useRef();return useInsertionEffectWithLayoutFallback(function(){var e=i.key+"-global",t=new i.sheet.constructor({key:e,nonce:i.sheet.nonce,container:i.sheet.container,speedy:i.sheet.isSpeedy}),n=!1,r=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return i.sheet.tags.length&&(t.before=i.sheet.tags[0]),null!==r&&(n=!0,r.setAttribute("data-emotion",e),t.hydrate([r])),a.current=[t,n],function(){t.flush()}},[i]),useInsertionEffectWithLayoutFallback(function(){var e=a.current,t=e[0];e[1]?e[1]=!1:(void 0!==o.next&&insertStyles(i,o.next,!0),t.tags.length&&(e=t.tags[t.tags.length-1].nextElementSibling,t.before=e,t.flush()),i.insert("",o,t,!1))},[i,o.name]),null});function css(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return serializeStyles(t)}var keyframes=function(){var e=css.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},classnames$2=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function merge$1(e,t,n){var r=[],e=getRegisteredStyles(e,r,n);return r.length<2?n:e+t(r)}var Insertion$1=function(e){var t=e.cache,n=e.serializedArr;return useInsertionEffectAlwaysWithSyncFallback(function(){for(var e=0;e<n.length;e++)insertStyles(t,n[e],!1)}),null},ClassNames=withEmotionCache(function(e,i){function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=serializeStyles(t,i.registered);return o.push(r),registerStyles(i,r,!1),i.key+"-"+r.name}var o=[],t={css:r,cx:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return merge$1(i.registered,r,classnames$2(t))},theme:react.exports.useContext(ThemeContext$2)},e=e.children(t);return react.exports.createElement(react.exports.Fragment,null,react.exports.createElement(Insertion$1,{cache:i,serializedArr:o}),e)}),emotionReact_browser_esm=Object.freeze({__proto__:null,ClassNames:ClassNames,Global:Global,createElement:jsx,css:css,jsx:jsx,keyframes:keyframes,CacheProvider:CacheProvider,ThemeContext:ThemeContext$2,ThemeProvider:ThemeProvider$3,__unsafe_useEmotionCache:__unsafe_useEmotionCache,useTheme:useTheme$4,withEmotionCache:withEmotionCache,withTheme:withTheme$1}),testOmitPropsOnStringTag=isPropValid,testOmitPropsOnComponent=function(e){return"theme"!==e},getDefaultShouldForwardProp=function(e){return"string"==typeof e&&96<e.charCodeAt(0)?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(t,e,n){var r,i;return e&&(r=e.shouldForwardProp,i=t.__emotion_forwardProp&&r?function(e){return t.__emotion_forwardProp(e)&&r(e)}:r),i="function"!=typeof i&&n?t.__emotion_forwardProp:i},useInsertionEffect=React$1.useInsertionEffect||function(e){e()};function useInsertionEffectMaybe(e){useInsertionEffect(e)}var Insertion=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return registerStyles(t,n,r),useInsertionEffectMaybe(function(){return insertStyles(t,n,r)}),null},createStyled$1=function i(o,a){var s,p,l=o.__emotion_real===o,f=l&&o.__emotion_base||o,h=(void 0!==a&&(s=a.label,p=a.target),composeShouldForwardProps(o,a,l)),m=h||getDefaultShouldForwardProp(f),g=!m("as");return function(){var e=arguments,d=l&&void 0!==o.__emotion_styles?o.__emotion_styles.slice(0):[];if(void 0!==s&&d.push("label:"+s+";"),null==e[0]||void 0===e[0].raw)d.push.apply(d,e);else{d.push(e[0][0]);for(var t=e.length,n=1;n<t;n++)d.push(e[n],e[0][n])}var r=withEmotionCache(function(e,t,n){var r=g&&e.as||f,i="",o=[],a=e;if(null==e.theme){for(var s in a={},e)a[s]=e[s];a.theme=react.exports.useContext(ThemeContext$2)}"string"==typeof e.className?i=getRegisteredStyles(t.registered,o,e.className):null!=e.className&&(i=e.className+" ");var l,o=serializeStyles(d.concat(o),t.registered,a),c=(i+=t.key+"-"+o.name,void 0!==p&&(i+=" "+p),g&&void 0===h?getDefaultShouldForwardProp(r):m),u={};for(l in e)g&&"as"===l||c(l)&&(u[l]=e[l]);return u.className=i,u.ref=n,react.exports.createElement(react.exports.Fragment,null,react.exports.createElement(Insertion,{cache:t,serialized:o,isStringTag:"string"==typeof r}),react.exports.createElement(r,u))});return r.displayName=void 0!==s?s:"Styled("+("string"==typeof f?f:f.displayName||f.name||"Component")+")",r.defaultProps=o.defaultProps,(r.__emotion_real=r).__emotion_base=f,r.__emotion_styles=d,r.__emotion_forwardProp=h,Object.defineProperty(r,"toString",{value:function(){return"."+p}}),r.withComponent=function(e,t){return i(e,_extends({},a,t,{shouldForwardProp:composeShouldForwardProps(r,t,!0)})).apply(void 0,d)},r}},tags=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],newStyled=createStyled$1.bind(),emStyled=(tags.forEach(function(e){newStyled[e]=newStyled(e)}),newStyled);function sheetForTag$2(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function createStyleElement$2(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var StyleSheet$2=function(){function e(e){var n=this;this._insertTag=function(e){var t=0===n.tags.length?n.insertionPoint?n.insertionPoint.nextSibling:n.prepend?n.container.firstChild:n.before:n.tags[n.tags.length-1].nextSibling;n.container.insertBefore(e,t),n.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(createStyleElement$2(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=sheetForTag$2(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),MS$1="-ms-",MOZ$1="-moz-",WEBKIT$1="-webkit-",COMMENT$1="comm",RULESET$1="rule",DECLARATION$1="decl",IMPORT$1="@import",KEYFRAMES$1="@keyframes",abs$1=Math.abs,from$1=String.fromCharCode,assign$3=Object.assign;function hash$3(e,t){return 45^charat$1(e,0)?(((t<<2^charat$1(e,0))<<2^charat$1(e,1))<<2^charat$1(e,2))<<2^charat$1(e,3):0}function trim$1(e){return e.trim()}function match$5(e,t){return(e=t.exec(e))&&e[0]}function replace$1(e,t,n){return e.replace(t,n)}function indexof$1(e,t){return e.indexOf(t)}function charat$1(e,t){return 0|e.charCodeAt(t)}function substr$1(e,t,n){return e.slice(t,n)}function strlen$1(e){return e.length}function sizeof$1(e){return e.length}function append$1(e,t){return t.push(e),e}function combine$2(e,t){return e.map(t).join("")}var line$1=1,column$1=1,length$1=0,position$2=0,character$1=0,characters$1="";function node$2(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:line$1,column:column$1,length:a,return:""}}function copy$1(e,t){return assign$3(node$2("",null,null,"",null,null,0),e,{length:-e.length},t)}function char$1(){return character$1}function prev$1(){return character$1=0<position$2?charat$1(characters$1,--position$2):0,column$1--,10===character$1&&(column$1=1,line$1--),character$1}function next$1(){return character$1=position$2<length$1?charat$1(characters$1,position$2++):0,column$1++,10===character$1&&(column$1=1,line$1++),character$1}function peek$1(){return charat$1(characters$1,position$2)}function caret$1(){return position$2}function slice$5(e,t){return substr$1(characters$1,e,t)}function token$1(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc$1(e){return line$1=column$1=1,length$1=strlen$1(characters$1=e),position$2=0,[]}function dealloc$1(e){return characters$1="",e}function delimit$1(e){return trim$1(slice$5(position$2-1,delimiter$2(91===e?e+2:40===e?e+1:e)))}function whitespace$2(e){for(;(character$1=peek$1())&&character$1<33;)next$1();return 2<token$1(e)||3<token$1(character$1)?"":" "}function escaping$1(e,t){for(;--t&&next$1()&&!(character$1<48||102<character$1||57<character$1&&character$1<65||70<character$1&&character$1<97););return slice$5(e,caret$1()+(t<6&&32==peek$1()&&32==next$1()))}function delimiter$2(e){for(;next$1();)switch(character$1){case e:return position$2;case 34:case 39:34!==e&&39!==e&&delimiter$2(character$1);break;case 40:41===e&&delimiter$2(e);break;case 92:next$1()}return position$2}function commenter$1(e,t){for(;next$1()&&e+character$1!==57&&(e+character$1!==84||47!==peek$1()););return"/*"+slice$5(t,position$2-1)+"*"+from$1(47===e?e:next$1())}function identifier$1(e){for(;!token$1(peek$1());)next$1();return slice$5(e,position$2)}function compile$1(e){return dealloc$1(parse$6("",null,null,null,[""],e=alloc$1(e),0,[0],e))}function parse$6(e,t,n,r,i,o,a,s,l){for(var c,u,d,p=0,f=0,h=a,m=0,g=0,v=1,y=1,x=1,b=0,C="",$=i,S=C;y;)switch(c=b,b=next$1()){case 40:if(108!=c&&58==charat$1(S,h-1)){-1!=indexof$1(S+=replace$1(delimit$1(b),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:S+=delimit$1(b);break;case 9:case 10:case 13:case 32:S+=whitespace$2(c);break;case 92:S+=escaping$1(caret$1()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append$1(comment$1(commenter$1(next$1(),caret$1()),t,n),l);break;default:S+="/"}break;case 123*v:s[p++]=strlen$1(S)*x;case 125*v:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+f:-1==x&&(S=replace$1(S,/\f/g,"")),0<g&&strlen$1(S)-h&&append$1(32<g?declaration$1(S+";",r,n,h-1):declaration$1(replace$1(S," ","")+";",r,n,h-2),l);break;case 59:S+=";";default:if(append$1(d=ruleset$1(S,t,n,p,f,i,s,C,$=[],u=[],h),o),123===b)if(0===f)parse$6(S,t,d,d,$,o,h,s,u);else switch(99===m&&110===charat$1(S,3)?100:m){case 100:case 109:case 115:parse$6(e,d,d,r&&append$1(ruleset$1(e,d,d,0,0,i,s,C,i,$=[],h),u),i,u,h,s,r?$:u);break;default:parse$6(S,d,d,d,[""],u,0,s,u)}}p=f=g=0,v=x=1,C=S="",h=a;break;case 58:h=1+strlen$1(S),g=c;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==prev$1())continue;switch(S+=from$1(b),b*v){case 38:x=0<f?1:(S+="\f",-1);break;case 44:s[p++]=(strlen$1(S)-1)*x,x=1;break;case 64:45===peek$1()&&(S+=delimit$1(next$1())),m=peek$1(),f=h=strlen$1(C=S+=identifier$1(caret$1())),b++;break;case 45:45===c&&2==strlen$1(S)&&(v=0)}}return o}function ruleset$1(e,t,n,r,i,o,a,s,l,c,u){for(var d,p=i-1,f=0===i?o:[""],h=sizeof$1(f),m=0,g=0;m<r;++m)for(var v,y=0,x=substr$1(e,p+1,p=abs$1(d=a[m]));y<h;++y)(v=trim$1(0<d?f[y]+" "+x:replace$1(x,/&\f/g,f[y])))&&(l[g++]=v);return node$2(e,t,n,0===i?RULESET$1:s,l,c,u)}function comment$1(e,t,n){return node$2(e,t,n,COMMENT$1,from$1(char$1()),substr$1(e,2,-2),0)}function declaration$1(e,t,n,r){return node$2(e,t,n,DECLARATION$1,substr$1(e,0,r),substr$1(e,r+1,-1),r)}function serialize$1(e,t){for(var n="",r=sizeof$1(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function stringify$4(e,t,n,r){switch(e.type){case IMPORT$1:case DECLARATION$1:return e.return=e.return||e.value;case COMMENT$1:return"";case KEYFRAMES$1:return e.return=e.value+"{"+serialize$1(e.children,r)+"}";case RULESET$1:e.value=e.props.join(",")}return strlen$1(n=serialize$1(e.children,r))?e.return=e.value+"{"+n+"}":""}function middleware$1(a){var s=sizeof$1(a);return function(e,t,n,r){for(var i="",o=0;o<s;o++)i+=a[o](e,t,n,r)||"";return i}}function rulesheet$1(t){return function(e){e.root||(e=e.return)&&t(e)}}var identifierWithPointTracking$1=function(e,t,n){for(var r,i=0;r=i,i=peek$1(),38===r&&12===i&&(t[n]=1),!token$1(i);)next$1();return slice$5(e,position$2)},toRules$1=function(e,t){var n=-1,r=44;do{switch(token$1(r)){case 0:38===r&&12===peek$1()&&(t[n]=1),e[n]+=identifierWithPointTracking$1(position$2-1,t,n);break;case 2:e[n]+=delimit$1(r);break;case 4:if(44===r){e[++n]=58===peek$1()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=from$1(r)}}while(r=next$1());return e},getRules$1=function(e,t){return dealloc$1(toRules$1(alloc$1(e),t))},fixedElements$1=new WeakMap,compat$1=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fixedElements$1.get(n))&&!r){fixedElements$1.set(e,!0);for(var i=[],o=getRules$1(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},removeLabel$1=function(e){var t;"decl"===e.type&&108===(t=e.value).charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")};function prefix$4(e,t){switch(hash$3(e,t)){case 5103:return WEBKIT$1+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT$1+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT$1+e+MOZ$1+e+MS$1+e+e;case 6828:case 4268:return WEBKIT$1+e+MS$1+e+e;case 6165:return WEBKIT$1+e+MS$1+"flex-"+e+e;case 5187:return WEBKIT$1+e+replace$1(e,/(\w+).+(:[^]+)/,WEBKIT$1+"box-$1$2"+MS$1+"flex-$1$2")+e;case 5443:return WEBKIT$1+e+MS$1+"flex-item-"+replace$1(e,/flex-|-self/,"")+e;case 4675:return WEBKIT$1+e+MS$1+"flex-line-pack"+replace$1(e,/align-content|flex-|-self/,"")+e;case 5548:return WEBKIT$1+e+MS$1+replace$1(e,"shrink","negative")+e;case 5292:return WEBKIT$1+e+MS$1+replace$1(e,"basis","preferred-size")+e;case 6060:return WEBKIT$1+"box-"+replace$1(e,"-grow","")+WEBKIT$1+e+MS$1+replace$1(e,"grow","positive")+e;case 4554:return WEBKIT$1+replace$1(e,/([^-])(transform)/g,"$1"+WEBKIT$1+"$2")+e;case 6187:return replace$1(replace$1(replace$1(e,/(zoom-|grab)/,WEBKIT$1+"$1"),/(image-set)/,WEBKIT$1+"$1"),e,"")+e;case 5495:case 3959:return replace$1(e,/(image-set\([^]*)/,WEBKIT$1+"$1$`$1");case 4968:return replace$1(replace$1(e,/(.+:)(flex-)?(.*)/,WEBKIT$1+"box-pack:$3"+MS$1+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT$1+e+e;case 4095:case 3583:case 4068:case 2532:return replace$1(e,/(.+)-inline(.+)/,WEBKIT$1+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(6<strlen$1(e)-1-t)switch(charat$1(e,t+1)){case 109:if(45!==charat$1(e,t+4))break;case 102:return replace$1(e,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT$1+"$2-$3$1"+MOZ$1+(108==charat$1(e,t+3)?"$3":"$2-$3"))+e;case 115:return~indexof$1(e,"stretch")?prefix$4(replace$1(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==charat$1(e,t+1))break;case 6444:switch(charat$1(e,strlen$1(e)-3-(~indexof$1(e,"!important")&&10))){case 107:return replace$1(e,":",":"+WEBKIT$1)+e;case 101:return replace$1(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT$1+(45===charat$1(e,14)?"inline-":"")+"box$3$1"+WEBKIT$1+"$2$3$1"+MS$1+"$2box$3")+e}break;case 5936:switch(charat$1(e,t+11)){case 114:return WEBKIT$1+e+MS$1+replace$1(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return WEBKIT$1+e+MS$1+replace$1(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return WEBKIT$1+e+MS$1+replace$1(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return WEBKIT$1+e+MS$1+e+e}return e}var prefixer$1=function(t,e,n,r){if(-1<t.length&&!t.return)switch(t.type){case DECLARATION$1:t.return=prefix$4(t.value,t.length);break;case KEYFRAMES$1:return serialize$1([copy$1(t,{value:replace$1(t.value,"@","@"+WEBKIT$1)})],r);case RULESET$1:if(t.length)return combine$2(t.props,function(e){switch(match$5(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize$1([copy$1(t,{props:[replace$1(e,/:(read-\w+)/,":"+MOZ$1+"$1")]})],r);case"::placeholder":return serialize$1([copy$1(t,{props:[replace$1(e,/:(plac\w+)/,":"+WEBKIT$1+"input-$1")]}),copy$1(t,{props:[replace$1(e,/:(plac\w+)/,":"+MOZ$1+"$1")]}),copy$1(t,{props:[replace$1(e,/:(plac\w+)/,MS$1+"input-$1")]})],r)}return""})}},defaultStylisPlugins$1=[prefixer$1],createCache$2=function(e){var i,t=e.key,n=("css"===t&&(n=document.querySelectorAll("style[data-emotion]:not([data-s])"),Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})),e.stylisPlugins||defaultStylisPlugins$1),r={},o=[],a=e.container||document.head,s=(Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)r[t[n]]=!0;o.push(e)}),[compat$1,removeLabel$1]),l=[stringify$4,rulesheet$1(function(e){i.insert(e)})],c=middleware$1(s.concat(n,l)),s=function(e,t,n,r){i=n,serialize$1(compile$1(e?e+"{"+t.styles+"}":t.styles),c),r&&(u.inserted[t.name]=!0)},u={key:t,sheet:new StyleSheet$2({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:r,registered:{},insert:s};return u.sheet.hydrate(o),u};let cache$1;function StyledEngineProvider(e){var{injectFirst:e,children:t}=e;return e&&cache$1?jsxRuntime.exports.jsx(CacheProvider,{value:cache$1,children:t}):t}function isEmpty$6(e){return null==e||0===Object.keys(e).length}function GlobalStyles$4(e){const{styles:t,defaultTheme:n={}}=e;e="function"==typeof t?e=>t(isEmpty$6(e)?n:e):t;return jsxRuntime.exports.jsx(Global,{styles:e})}function styled$3(e,t){return emStyled(e,t)}"object"==typeof document&&(cache$1=createCache$2({key:"css",prepend:!0}));const internal_processStyles=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},_excluded$1z=["values","unit","step"],sortBreakpointsValues=t=>{var e=Object.keys(t).map(e=>({key:e,val:t[e]}))||[];return e.sort((e,t)=>e.val-t.val),e.reduce((e,t)=>_extends({},e,{[t.key]:t.val}),{})};function createBreakpoints(e){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:o=5}=e,t=_objectWithoutPropertiesLoose$2(e,_excluded$1z);e=sortBreakpointsValues(r);const a=Object.keys(e);function n(e){return`@media (min-width:${"number"==typeof r[e]?r[e]:e}${i})`}function s(e){return`@media (max-width:${("number"==typeof r[e]?r[e]:e)-o/100}${i})`}function l(e,t){var n=a.indexOf(t);return`@media (min-width:${"number"==typeof r[e]?r[e]:e}${i}) and `+`(max-width:${(-1!==n&&"number"==typeof r[a[n]]?r[a[n]]:t)-o/100}${i})`}return _extends({keys:a,values:e,up:n,down:s,between:l,only:function(e){return a.indexOf(e)+1<a.length?l(e,a[a.indexOf(e)+1]):n(e)},not:function(e){var t=a.indexOf(e);return 0===t?n(a[1]):t===a.length-1?s(a[t]):l(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:i},t)}const shape={borderRadius:4};var shape$1=shape;function merge(e,t){return t?deepmerge(e,t,{clone:!1}):e}const values$3={xs:0,sm:600,md:900,lg:1200,xl:1536},defaultBreakpoints={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${values$3[e]}px)`};function handleBreakpoints(e,r,i){e=e.theme||{};if(Array.isArray(r)){const o=e.breakpoints||defaultBreakpoints;return r.reduce((e,t,n)=>(e[o.up(o.keys[n])]=i(r[n]),e),{})}if("object"!=typeof r)return i(r);{const n=e.breakpoints||defaultBreakpoints;return Object.keys(r).reduce((e,t)=>{return-1!==Object.keys(n.values||values$3).indexOf(t)?e[n.up(t)]=i(r[t],t):e[t]=r[t],e},{})}}function createEmptyBreakpointObject(n={}){var e;return(null==(e=n.keys)?void 0:e.reduce((e,t)=>{return e[n.up(t)]={},e},{}))||{}}function removeUnusedBreakpoints(e,t){return e.reduce((e,t)=>{var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function mergeBreakpointsInOrder(e,...t){e=createEmptyBreakpointObject(e),t=[e,...t].reduce((e,t)=>deepmerge(e,t),{});return removeUnusedBreakpoints(Object.keys(e),t)}function computeBreakpointsBase(n,e){if("object"!=typeof n)return{};const r={};e=Object.keys(e);return Array.isArray(n)?e.forEach((e,t)=>{t<n.length&&(r[e]=!0)}):e.forEach(e=>{null!=n[e]&&(r[e]=!0)}),r}function resolveBreakpointValues({values:r,breakpoints:e,base:t}){t=t||computeBreakpointsBase(r,e),e=Object.keys(t);if(0===e.length)return r;let i;return e.reduce((e,t,n)=>(Array.isArray(r)?(e[t]=null!=r[n]?r[n]:r[i],i=n):"object"==typeof r?(e[t]=null!=r[t]?r[t]:r[i],i=t):e[t]=r,e),{})}function getPath(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){n=("vars."+t).split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function getStyleValue$1(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:getPath(e,n)||r,i=t?t(i,r,e):i}function style$4(e){const{prop:r,cssProperty:i=e.prop,themeKey:o,transform:a}=e;e=e=>{if(null==e[r])return null;var t=e[r];const n=getPath(e.theme,o)||{};return handleBreakpoints(e,t,e=>{let t=getStyleValue$1(n,a,e);return e===t&&"string"==typeof e&&(t=getStyleValue$1(n,a,""+r+("default"===e?"":capitalize$2(e)),e)),!1===i?t:{[i]:t}})};return e.propTypes={},e.filterProps=[r],e}function memoize$3(t){const n={};return e=>(void 0===n[e]&&(n[e]=t(e)),n[e])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize$3(e=>{if(2<e.length){if(!aliases[e])return[e];e=aliases[e]}var[e,t]=e.split("");const n=properties[e];e=directions[t]||"";return Array.isArray(e)?e.map(e=>n+e):[n+e]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function createUnaryUnit(e,t,n,r){const i=null!=(e=getPath(e,t,!1))?e:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function createUnarySpacing(e){return createUnaryUnit(e,"spacing",8)}function getValue$3(e,t){return"string"==typeof t||null==t?t:(e=e(Math.abs(t)),0<=t?e:"number"==typeof e?-e:"-"+e)}function getStyleFromPropValue(e,r){return n=>e.reduce((e,t)=>(e[t]=getValue$3(r,n),e),{})}function resolveCssProperty(e,t,n,r){return-1===t.indexOf(n)?null:(t=getStyleFromPropValue(getCssProperties(n),r),handleBreakpoints(e,e[n],t))}function style$3(t,n){const r=createUnarySpacing(t.theme);return Object.keys(t).map(e=>resolveCssProperty(t,n,e,r)).reduce(merge,{})}function margin(e){return style$3(e,marginKeys)}function padding(e){return style$3(e,paddingKeys)}function createSpacing(e=8){if(e.mui)return e;const t=createUnarySpacing({spacing:e});e=(...e)=>{return(0===e.length?[1]:e).map(e=>{e=t(e);return"number"==typeof e?e+"px":e}).join(" ")};return e.mui=!0,e}function compose$1(...e){const r=e.reduce((t,n)=>(n.filterProps.forEach(e=>{t[e]=n}),t),{});var t=n=>Object.keys(n).reduce((e,t)=>r[t]?merge(e,r[t](n)):e,{});return t.propTypes={},t.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),t}function borderTransform(e){return"number"!=typeof e?e:e+"px solid"}[...marginKeys,...paddingKeys],margin.propTypes={},margin.filterProps=marginKeys,padding.propTypes={},padding.filterProps=paddingKeys;const border=style$4({prop:"border",themeKey:"borders",transform:borderTransform}),borderTop=style$4({prop:"borderTop",themeKey:"borders",transform:borderTransform}),borderRight=style$4({prop:"borderRight",themeKey:"borders",transform:borderTransform}),borderBottom=style$4({prop:"borderBottom",themeKey:"borders",transform:borderTransform}),borderLeft=style$4({prop:"borderLeft",themeKey:"borders",transform:borderTransform}),borderColor=style$4({prop:"borderColor",themeKey:"palette"}),borderTopColor=style$4({prop:"borderTopColor",themeKey:"palette"}),borderRightColor=style$4({prop:"borderRightColor",themeKey:"palette"}),borderBottomColor=style$4({prop:"borderBottomColor",themeKey:"palette"}),borderLeftColor=style$4({prop:"borderLeftColor",themeKey:"palette"}),borderRadius=e=>{if(void 0===e.borderRadius||null===e.borderRadius)return null;{const t=createUnaryUnit(e.theme,"shape.borderRadius",4);return handleBreakpoints(e,e.borderRadius,e=>({borderRadius:getValue$3(t,e)}))}},gap=(borderRadius.propTypes={},borderRadius.filterProps=["borderRadius"],compose$1(border,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius),e=>{if(void 0===e.gap||null===e.gap)return null;{const t=createUnaryUnit(e.theme,"spacing",8);return handleBreakpoints(e,e.gap,e=>({gap:getValue$3(t,e)}))}}),columnGap=(gap.propTypes={},gap.filterProps=["gap"],e=>{if(void 0===e.columnGap||null===e.columnGap)return null;{const t=createUnaryUnit(e.theme,"spacing",8);return handleBreakpoints(e,e.columnGap,e=>({columnGap:getValue$3(t,e)}))}}),rowGap=(columnGap.propTypes={},columnGap.filterProps=["columnGap"],e=>{if(void 0===e.rowGap||null===e.rowGap)return null;{const t=createUnaryUnit(e.theme,"spacing",8);return handleBreakpoints(e,e.rowGap,e=>({rowGap:getValue$3(t,e)}))}}),gridColumn=(rowGap.propTypes={},rowGap.filterProps=["rowGap"],style$4({prop:"gridColumn"})),gridRow=style$4({prop:"gridRow"}),gridAutoFlow=style$4({prop:"gridAutoFlow"}),gridAutoColumns=style$4({prop:"gridAutoColumns"}),gridAutoRows=style$4({prop:"gridAutoRows"}),gridTemplateColumns=style$4({prop:"gridTemplateColumns"}),gridTemplateRows=style$4({prop:"gridTemplateRows"}),gridTemplateAreas=style$4({prop:"gridTemplateAreas"}),gridArea=style$4({prop:"gridArea"});function paletteTransform(e,t){return"grey"===t?t:e}compose$1(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);const color=style$4({prop:"color",themeKey:"palette",transform:paletteTransform}),bgcolor=style$4({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),backgroundColor=style$4({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});function sizingTransform(e){return e<=1&&0!==e?100*e+"%":e}compose$1(color,bgcolor,backgroundColor);const width=style$4({prop:"width",transform:sizingTransform}),maxWidth=n=>{return void 0!==n.maxWidth&&null!==n.maxWidth?handleBreakpoints(n,n.maxWidth,e=>{var t;return{maxWidth:(null==(t=n.theme)||null==(t=t.breakpoints)||null==(t=t.values)?void 0:t[e])||values$3[e]||sizingTransform(e)}}):null},minWidth=(maxWidth.filterProps=["maxWidth"],style$4({prop:"minWidth",transform:sizingTransform})),height=style$4({prop:"height",transform:sizingTransform}),maxHeight=style$4({prop:"maxHeight",transform:sizingTransform}),minHeight=style$4({prop:"minHeight",transform:sizingTransform}),boxSizing=(style$4({prop:"size",cssProperty:"width",transform:sizingTransform}),style$4({prop:"size",cssProperty:"height",transform:sizingTransform}),style$4({prop:"boxSizing"})),defaultSxConfig=(compose$1(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing),{border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:padding},pt:{style:padding},pr:{style:padding},pb:{style:padding},pl:{style:padding},px:{style:padding},py:{style:padding},padding:{style:padding},paddingTop:{style:padding},paddingRight:{style:padding},paddingBottom:{style:padding},paddingLeft:{style:padding},paddingX:{style:padding},paddingY:{style:padding},paddingInline:{style:padding},paddingInlineStart:{style:padding},paddingInlineEnd:{style:padding},paddingBlock:{style:padding},paddingBlockStart:{style:padding},paddingBlockEnd:{style:padding},m:{style:margin},mt:{style:margin},mr:{style:margin},mb:{style:margin},ml:{style:margin},mx:{style:margin},my:{style:margin},margin:{style:margin},marginTop:{style:margin},marginRight:{style:margin},marginBottom:{style:margin},marginLeft:{style:margin},marginX:{style:margin},marginY:{style:margin},marginInline:{style:margin},marginInlineStart:{style:margin},marginInlineEnd:{style:margin},marginBlock:{style:margin},marginBlockStart:{style:margin},marginBlockEnd:{style:margin},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}});var defaultSxConfig$1=defaultSxConfig;function objectsHaveSameKeys(...e){var t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);const n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}function callIfFn(e,t){return"function"==typeof e?e(t):e}function unstable_createStyleFunctionSx(){function l(n,e,t,r){var i={[n]:e,theme:t},r=r[n];if(!r)return{[n]:e};const{cssProperty:o=n,themeKey:a,transform:s,style:l}=r;if(null==e)return null;if("typography"===a&&"inherit"===e)return{[n]:e};const c=getPath(t,a)||{};return l?l(i):handleBreakpoints(i,e,e=>{let t=getStyleValue$1(c,s,e);return e===t&&"string"==typeof e&&(t=getStyleValue$1(c,s,""+n+("default"===e?"":capitalize$2(e)),e)),!1===o?t:{[o]:t}})}return function o(e){const{sx:t,theme:a={}}=e||{};if(!t)return null;const s=null!=(e=a.unstable_sxConfig)?e:defaultSxConfig$1;function n(e){let r=e;if("function"==typeof e)r=e(a);else if("object"!=typeof e)return e;if(!r)return null;var e=createEmptyBreakpointObject(a.breakpoints),t=Object.keys(e);let i=e;return Object.keys(r).forEach(t=>{var e,n=callIfFn(r[t],a);null!=n&&("object"!=typeof n||s[t]?i=merge(i,l(t,n,a,s)):objectsHaveSameKeys(e=handleBreakpoints({theme:a},n,e=>({[t]:e})),n)?i[t]=o({sx:n,theme:a}):i=merge(i,e))}),removeUnusedBreakpoints(t,i)}return Array.isArray(t)?t.map(n):n(t)}}const styleFunctionSx=unstable_createStyleFunctionSx();styleFunctionSx.filterProps=["sx"];var styleFunctionSx$1=styleFunctionSx;const _excluded$1y=["breakpoints","palette","spacing","shape"];function createTheme$1(e={},...t){var{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,e=_objectWithoutPropertiesLoose$2(e,_excluded$1y),n=createBreakpoints(n),i=createSpacing(i),n=deepmerge({breakpoints:n,direction:"ltr",components:{},palette:_extends({mode:"light"},r),spacing:i,shape:_extends({},shape$1,o)},e);return(n=t.reduce((e,t)=>deepmerge(e,t),n)).unstable_sxConfig=_extends({},defaultSxConfig$1,null==e?void 0:e.unstable_sxConfig),n.unstable_sx=function(e){return styleFunctionSx$1({sx:e,theme:this})},n}function isObjectEmpty(e){return 0===Object.keys(e).length}function useTheme$3(e=null){var t=react.exports.useContext(ThemeContext$2);return!t||isObjectEmpty(t)?e:t}const systemDefaultTheme$1=createTheme$1();function useTheme$2(e=systemDefaultTheme$1){return useTheme$3(e)}function GlobalStyles$3({styles:e,themeId:t,defaultTheme:n={}}){n=useTheme$2(n),t="function"==typeof e?e(t&&n[t]||n):e;return jsxRuntime.exports.jsx(GlobalStyles$4,{styles:t})}const _excluded$1x=["sx"],splitProps=t=>{var e;const n={systemProps:{},otherProps:{}},r=null!=(e=null==t||null==(e=t.theme)?void 0:e.unstable_sxConfig)?e:defaultSxConfig$1;return Object.keys(t).forEach(e=>{r[e]?n.systemProps[e]=t[e]:n.otherProps[e]=t[e]}),n};function extendSxProp(e){const t=e["sx"],n=_objectWithoutPropertiesLoose$2(e,_excluded$1x),{systemProps:r,otherProps:i}=splitProps(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{e=t(...e);return isPlainObject$1(e)?_extends({},r,e):r}:_extends({},r,t),_extends({},i,{sx:o})}function r$2(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r$2(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function clsx(){for(var e,t=0,n="";t<arguments.length;)(e=arguments[t++])&&(e=r$2(e))&&(n&&(n+=" "),n+=e);return n}const _excluded$1w=["className","component"];function createBox$1(e={}){const{themeId:o,defaultTheme:a,defaultClassName:s="MuiBox-root",generateClassName:l}=e,c=styled$3("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(styleFunctionSx$1);return react.exports.forwardRef(function(e,t){var n=useTheme$2(a),e=extendSxProp(e),{className:r,component:i="div"}=e,e=_objectWithoutPropertiesLoose$2(e,_excluded$1w);return jsxRuntime.exports.jsx(c,_extends({as:i,ref:t,className:clsx(r,l?"Sdk-"+l(s):s),theme:o&&n[o]||n},e))})}const _excluded$1v=["variant"];function isEmpty$5(e){return 0===e.length}function propsToClassKey(t){var e=t["variant"],n=_objectWithoutPropertiesLoose$2(t,_excluded$1v);let r=e||"";return Object.keys(n).sort().forEach(e=>{r+="color"===e?isEmpty$5(r)?t[e]:capitalize$2(t[e]):""+(isEmpty$5(r)?e:capitalize$2(e))+capitalize$2(t[e].toString())}),r}const _excluded$1u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function isEmpty$4(e){return 0===Object.keys(e).length}function isStringTag(e){return"string"==typeof e&&96<e.charCodeAt(0)}const getStyleOverrides=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,getVariantStyles=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(e=>{var t=propsToClassKey(e.props);r[t]=e.style}),r},variantsResolver=(r,e,t,n)=>{const{ownerState:i={}}=r,o=[];n=null==t||null==(t=t.components)||null==(t=t[n])?void 0:t.variants;return n&&n.forEach(t=>{let n=!0;Object.keys(t.props).forEach(e=>{i[e]!==t.props[e]&&r[e]!==t.props[e]&&(n=!1)}),n&&o.push(e[propsToClassKey(t.props)])}),o};function shouldForwardProp(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const systemDefaultTheme=createTheme$1();function resolveTheme({defaultTheme:e,theme:t,themeId:n}){return isEmpty$4(t)?e:t[n]||t}function createStyled(e={}){const{themeId:p,defaultTheme:f=systemDefaultTheme,rootShouldForwardProp:h=shouldForwardProp,slotShouldForwardProp:m=shouldForwardProp}=e,g=e=>styleFunctionSx$1(_extends({},e,{theme:resolveTheme(_extends({},e,{defaultTheme:f,themeId:p}))}));return g.__mui_systemSx=!0,(i,e={})=>{internal_processStyles(i,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:o,slot:t,skipVariantsResolver:n,skipSx:r,overridesResolver:a}=e,s=_objectWithoutPropertiesLoose$2(e,_excluded$1u),l=void 0!==n?n:t&&"Root"!==t||!1,c=r||!1;let u=shouldForwardProp;"Root"===t?u=h:t?u=m:isStringTag(i)&&(u=void 0);const d=styled$3(i,_extends({shouldForwardProp:u,label:void 0},s));e=(t,...e)=>{var n=e?e.map(t=>"function"==typeof t&&t.__emotion_real!==t?e=>t(_extends({},e,{theme:resolveTheme(_extends({},e,{defaultTheme:f,themeId:p}))})):t):[];let r=t;o&&a&&n.push(n=>{const r=resolveTheme(_extends({},n,{defaultTheme:f,themeId:p}));var e=getStyleOverrides(o,r);if(e){const i={};return Object.entries(e).forEach(([e,t])=>{i[e]="function"==typeof t?t(_extends({},n,{theme:r})):t}),a(n,i)}return null}),o&&!l&&n.push(e=>{var t=resolveTheme(_extends({},e,{defaultTheme:f,themeId:p}));return variantsResolver(e,getVariantStyles(o,t),t,o)}),c||n.push(g);var e=n.length-e.length,e=(Array.isArray(t)&&0<e?(e=new Array(e).fill(""),(r=[...t,...e]).raw=[...t.raw,...e]):"function"==typeof t&&t.__emotion_real!==t&&(r=e=>t(_extends({},e,{theme:resolveTheme(_extends({},e,{defaultTheme:f,themeId:p}))}))),d(r,...n));return i.muiName&&(e.muiName=i.muiName),e};return d.withConfig&&(e.withConfig=d.withConfig),e}}const styled$2=createStyled();var systemStyled=styled$2;function getThemeProps(e){var{theme:e,name:t,props:n}=e;return e&&e.components&&e.components[t]&&e.components[t].defaultProps?resolveProps(e.components[t].defaultProps,n):n}function useThemeProps$1({props:e,name:t,defaultTheme:n,themeId:r}){let i=useTheme$2(n);return getThemeProps({theme:i=r?i[r]||i:i,name:t,props:e})}function clamp(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function hexToRgb(e){e=e.slice(1);var t=new RegExp(`.{1,${6<=e.length?2:1}}`,"g");let n=e.match(t);return(n=n&&1===n[0].length?n.map(e=>e+e):n)?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function intToHex(e){e=e.toString(16);return 1===e.length?"0"+e:e}function decomposeColor(e){if(e.type)return e;if("#"===e.charAt(0))return decomposeColor(hexToRgb(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(formatMuiErrorMessage(9,e));let r=e.substring(t+1,e.length-1),i;if("color"===n){if(r=r.split(" "),i=r.shift(),4===r.length&&"/"===r[3].charAt(0)&&(r[3]=r[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error(formatMuiErrorMessage(10,i))}else r=r.split(",");return{type:n,values:r=r.map(e=>parseFloat(e)),colorSpace:i}}const colorChannel=e=>{const n=decomposeColor(e);return n.values.slice(0,3).map((e,t)=>-1!==n.type.indexOf("hsl")&&0!==t?e+"%":e).join(" ")},private_safeColorChannel=(t,e)=>{try{return colorChannel(t)}catch(e){return t}};function recomposeColor(e){var{type:t,colorSpace:n}=e;let r=e["values"];return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=r[1]+"%",r[2]=r[2]+"%"),r=-1!==t.indexOf("color")?n+" "+r.join(" "):""+r.join(", "),`${t}(${r})`}function rgbToHex(e){return 0===e.indexOf("#")?e:(e=decomposeColor(e)["values"],"#"+e.map((e,t)=>intToHex(3===t?Math.round(255*e):e)).join(""))}function hslToRgb(e){var t=(e=decomposeColor(e))["values"];const n=t[0];var r=t[1]/100;const i=t[2]/100,o=r*Math.min(i,1-i);r=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let a="rgb";r=[Math.round(255*r(0)),Math.round(255*r(8)),Math.round(255*r(4))];return"hsla"===e.type&&(a+="a",r.push(t[3])),recomposeColor({type:a,values:r})}function getLuminance(t){let e=("hsl"===(t=decomposeColor(t)).type||"hsla"===t.type?decomposeColor(hslToRgb(t)):t).values;return e=e.map(e=>("color"!==t.type&&(e/=255),e<=.03928?e/12.92:((e+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function getContrastRatio(e,t){e=getLuminance(e),t=getLuminance(t);return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}function alpha(e,t){return e=decomposeColor(e),t=clamp(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/"+t:e.values[3]=t,recomposeColor(e)}function private_safeAlpha(t,e,n){try{return alpha(t,e)}catch(e){return t}}function darken(t,n){if(t=decomposeColor(t),n=clamp(n),-1!==t.type.indexOf("hsl"))t.values[2]*=1-n;else if(-1!==t.type.indexOf("rgb")||-1!==t.type.indexOf("color"))for(let e=0;e<3;e+=1)t.values[e]*=1-n;return recomposeColor(t)}function private_safeDarken(t,e,n){try{return darken(t,e)}catch(e){return t}}function lighten(t,n){if(t=decomposeColor(t),n=clamp(n),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*n;else if(-1!==t.type.indexOf("rgb"))for(let e=0;e<3;e+=1)t.values[e]+=(255-t.values[e])*n;else if(-1!==t.type.indexOf("color"))for(let e=0;e<3;e+=1)t.values[e]+=(1-t.values[e])*n;return recomposeColor(t)}function private_safeLighten(t,e,n){try{return lighten(t,e)}catch(e){return t}}function emphasize(e,t=.15){return(.5<getLuminance(e)?darken:lighten)(e,t)}function private_safeEmphasize(t,e,n){try{return private_safeEmphasize(t,e)}catch(e){return t}}const ThemeContext=react.exports.createContext(null);var ThemeContext$1=ThemeContext;function useTheme$1(){return react.exports.useContext(ThemeContext$1)}const hasSymbol$1="function"==typeof Symbol&&Symbol.for;var nested=hasSymbol$1?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(e,t){return"function"==typeof t?t(e):_extends({},e,t)}function ThemeProvider$2(e){const{children:t,theme:n}=e,r=useTheme$1();e=react.exports.useMemo(()=>{var e=null===r?n:mergeOuterLocalTheme(r,n);return null!=e&&(e[nested]=null!==r),e},[n,r]);return jsxRuntime.exports.jsx(ThemeContext$1.Provider,{value:e,children:t})}const EMPTY_THEME={};function useThemeScoping(n,r,i,o=!1){return react.exports.useMemo(()=>{var e=n&&r[n]||r;if("function"!=typeof i)return _extends({},r,n?{[n]:i}:i);{e=i(e);const t=n?_extends({},r,{[n]:e}):e;return o?()=>t:t}},[n,r,i,o])}function ThemeProvider$1(e){var{children:e,theme:t,themeId:n}=e,r=useTheme$3(EMPTY_THEME),i=useTheme$1()||EMPTY_THEME,r=useThemeScoping(n,r,t),n=useThemeScoping(n,i,t,!0);return jsxRuntime.exports.jsx(ThemeProvider$2,{theme:n,children:jsxRuntime.exports.jsx(ThemeContext$2.Provider,{value:r,children:e})})}const DEFAULT_MODE_STORAGE_KEY="mode",DEFAULT_COLOR_SCHEME_STORAGE_KEY="color-scheme",DEFAULT_ATTRIBUTE="data-color-scheme";function getInitColorSchemeScript$1(e){var{defaultMode:e="light",defaultLightColorScheme:t="light",defaultDarkColorScheme:n="dark",modeStorageKey:r=DEFAULT_MODE_STORAGE_KEY,colorSchemeStorageKey:i=DEFAULT_COLOR_SCHEME_STORAGE_KEY,attribute:o=DEFAULT_ATTRIBUTE,colorSchemeNode:a="document.documentElement"}=e||{};return jsxRuntime.exports.jsx("script",{dangerouslySetInnerHTML:{__html:`(function() { try {
6
6
  var mode = localStorage.getItem('${r}') || '${e}';
7
7
  var cssColorScheme = mode;
8
8
  var colorScheme = '';
@@ -936,7 +936,7 @@ createScheduledJob(input:{
936
936
  }
937
937
  }
938
938
  }
939
- }`,graphEndpoint:i,token:o})).errors||(e=null==(s=null==n?void 0:n.data)?void 0:s.__type)&&(n=e["name"],(n={name:n,fields:[]}).fields=(e.fields||[]).map(e=>({name:e.name,args:e.args.map(e=>({name:e.name,type:this.typeBuilder(e.type)})),type:this.typeBuilder(null==e?void 0:e.type)})),this.types.push(n),e=n),a){const r=[];return null!==e&&void 0!==e&&e.fields.forEach(t=>{a.find(e=>t.name===e)&&r.push(t)}),r}return null===e||void 0===e?void 0:e.fields}})}typeBuilder(e){if(e.name)return e.name;let t="";return t=e.kind&&("NON_NULL"===e.kind&&(t=this.typeBuilder(e.ofType)+"!"),"LIST"===e.kind)?"["+this.typeBuilder(e.ofType)+"]":t}getQueries(){return this.query}getMutations(){return this.mutation}getTypes(){return this.types}isOperationValid(t,e){return e?!!this[e].find(e=>e.name===t):!!this.query.find(e=>e.name===t)||!!this.mutation.find(e=>e.name===t)}indentationChecker(e){let t=0,n=0;for(;" "===e[n];)t+=1,n+=1;return t}nestingChecker(e){let t=0;for(;t<e.length;)"{"===e[t][e[t].length-1]&&e[t+1]&&"}"===e[t+1][e[t+1].length-1]?e.splice(t,2):t+=1;if(2===e.length)throw new Error("Provided operation payload is not supported");return e}recursiveFieldCheck(d,p,f,h,m=[],g,n=1,v=2){var y;return __awaiter$7(this,void 0,void 0,function*(){let e=" ",r="",t=v;for(;t-1;)e+=" ",r+=" ",--t;!this.types.find(e=>e.name===p)&&p&&(yield this.getAvailableFields(f,h,p));let i=n;for(;i<d.length;){let n;const l=d[i].includes("...");l?(n=d[i].split("on")[1].split("{")[0].trim(),yield this.getAvailableFields(f,h,n)):n=d[i].trim().split("(")[0].trim().split("{")[0].trim();let t;t=n.includes(":")?n.split(":")[1]:n;var o=this.types.find(e=>l?e.name===n:e.name===(p||"").replace(/[\[\]!]+/g,""));if(o||"}"===n||l){var a=l?o:null==o?void 0:o.fields.find(e=>e.name===t);if(a||"}"===n){let t="";if(d[i].includes("(")&&a){var s=this.getParameters(d,i),s=this.paramsParser(s,g);if(s.length){const c=[],u=(null==(y=null==o?void 0:o.fields.find(e=>e.name===n))?void 0:y.args)||[];s.forEach(t=>{var e,n=u.find(e=>e.name in t&&t[e.name]===e.type);n&&(-1!==(e=this.params.findIndex(e=>t.field in e))&&(this.params[e].validated=!0),c.push(Object.assign(Object.assign({},n),{field:t.field})))}),c.length&&(t+="(",c.forEach(e=>t+=`${e.name}: ${e.field} `),t+=")")}}if(d[i].includes("{")&&a||l){l?m.push(`${e}... on ${n} ${t}{`):m.push(""+e+n+` ${t}{`);o=l?n:(null==a?void 0:a.type)||null;i=yield this.recursiveFieldCheck(d,o,f,h,m,g,i+1,v+1)}else{if(d[i].includes("}"))return m.push(r+"}"),i===d.length-1?this.nestingChecker(m).join("\n"):i;m.push(""+e+n)}}else if(d[i].includes("{")){let e=1;for(;e;)i+=1,d[i].includes("{")&&(e+=1),d[i].includes("}")&&--e}}i+=1}})}getParameters(e,t){return e[t].split("(")[1].split(")")[0].trim().replace(/:\s/g,":")}paramsParser(e,n){e=e.split(":");const r=[];e.forEach(e=>{e=e.trim();let t;e.includes(" ")&&(t=e.split(" ")),(t=e.includes(",")?e.split(","):t)?t.forEach(e=>r.push(e.trim())):r.push(e)});var i=[];for(let t=0;t<r.length-1;t++){var o=n.find(e=>r[t+1]in e);o&&(o={[r[t]]:o[r[t+1]],field:r[t+1],validated:!1},i.push(o)),t+=1}return i}queryParser(g,v,y){return __awaiter$7(this,void 0,void 0,function*(){this.params=[];try{this.initialized||(yield this.initialize(g,v,!1));var o=y.split("\n");let i,e="",t="";o[0].includes("(")?(1<(i=o[0].split("(")[0].trim()).split(" ").length&&([i,e]=i.split(" ")),(t=(t=(t=(t=this.getParameters(o,0)).includes(",")?t.split(",").join(""):t).split("$")).filter(e=>!!e)).forEach(e=>"$"+e.trim()),this.params=t.map(e=>{var[e,t]=e.split(":");return{["$"+e]:t.trim(),validated:!1}})):i=o[0].split("{")[0].trim(),i=(i=i.includes(" ")?i.split(" ")[0]:i)||"query";var a,n=o[1],s=this.indentationChecker(n),l=[];for(let r=1;r<o.length;r++){let n="";if(s===this.indentationChecker(o[r])){let t;let e;if(o[r].includes("(")?(t=o[r].split("(")[0].trim(),a=o[r].split("(")[1].split(")")[0].trim(),e=this.paramsParser(a,this.params)):t=o[r].split("{")[0].trim(),"}"!==t){const h=this[i].find(e=>e.name===t);if(e){const m=[];e.forEach(t=>{var e,n=h.args.find(e=>e.name in t&&t[e.name]===e.type);n&&(-1!==(e=this.params.findIndex(e=>t.field in e))&&(this.params[e].validated=!0),m.push(Object.assign(Object.assign({},n),{field:t.field})))}),m.length&&(n+="(",m.forEach(e=>n+=`${e.name}: ${e.field} `),n+=")")}l.push({operation:t,line:r,type:null===h||void 0===h?void 0:h.type,args:n})}}}let r="";for(let t=0;t<l.length;t++){var c=(l[t+1]||{}).line||o.length-1,u=l[t].type,d=o.slice(l[t].line,c),p=md5(d.join("").replace(/\s/g,""));let e;if("string"!=typeof(e=this.hashMap[p]?(console.log(`returning ${l[t].operation} from memory`),this.hashMap[p]):yield this.recursiveFieldCheck(d,u,g,v,[` ${l[t].operation} ${l[t].args} {`],this.params)))throw new Error("Introspection utility failed while validating operation");this.hashMap[p]=e,r+="\n"+e+"\n"}if(r){let n="";if(this.params.forEach(e=>{var t;e.validated&&([e,t]=Object.entries(e)[0],n+=e+`: ${t} `)}),this.params.length&&!n)throw new Error("No valid parameters found");n=n&&"("+n+")",r=`${i} ${e} ${n} {`+r+"}";var f=this.params.filter(e=>!e.validated).map(e=>{var{}=e,e=__rest$4(e,["validated"]);return Object.keys(e)[0].replace("$","")});return{query:r,unsupportedArgs:f}}if(this.safety)throw new Error("Instrospection utility failed. Safety is ON");return console.log("Instrospection utility failed. Safety is OFF. Proceeding with original operation payload"),{query:y}}catch(e){if(console.log(e),!this.safety)return{query:y}}})}}var AuthContext,Status,MessageSeverity,gqlIntrospection=new GqlInstrospection;(AuthContext=AuthContext||{}).ResetPassword="ResetPassword",function(e){e.idle="idle",e.loading="loading",e.success="success",e.failure="failure",e.skipped="skipped",e.ready="ready"}(Status=Status||{});const namespace$4$1="auth",initialState$4$1={oAuthToken:"",oAuthStatus:Status.idle,initStatus:Status.idle,userId:"",sessionToken:"",user:{},status:Status.idle,authContext:null,errorMessage:null,userIsActive:!0},authSlice=createSlice({name:namespace$4$1,initialState:initialState$4$1,reducers:{fetchUserRequest(e){e.status=Status.loading},fetchUserSuccess(e,t){var n;e.sessionToken=null==(n=t.payload)?void 0:n.token,e.userId=null==(n=t.payload)?void 0:n.userId,e.user=Object.assign({},t.payload),e.status=Status.success},fetchUserError(e){e.status=Status.failure},updateTokenRequest(e,t){e.status=Status.idle},updateTokenSuccess(e,t){t=t.payload.token;e.sessionToken=t,e.user.token=t,e.oAuthStatus!==Status.success&&e.oAuthStatus!==Status.skipped||(e.status=Status.success)},updateTokenError(e){e.sessionToken="",e.status=Status.failure},updateUserLanguageStart(e,t){e.status=Status.loading},updateUserLanguageSuccess(e,t){e.user.preferredLanguage=t.payload,e.status=Status.success},refreshTokenRequest(e,t){e.status=Status.loading},refreshTokenSuccess(e,t){e.sessionToken=null==(t=null==(t=t.payload)?void 0:t.refreshToken)?void 0:t.token,e.status=Status.success},extendTokenRequest(e,t){e.status=Status.loading},extendTokenSuccess(e,t){e.sessionToken!==t.payload.token&&(e.sessionToken=t.payload.token),e.status=Status.success},setTokenExpiration(e,t){e.user=Object.assign(Object.assign({},e.user),{tokenExpiration:null==(e=t.payload)?void 0:e.expirationTime})},logoutRequest(e,t){e.status=Status.loading},logoutSuccess(e){e.status=Status.success},logoutError(e){e.status=Status.failure},resetPasswordRequest(e,t){e.status=Status.loading,e.errorMessage=null,e.authContext=AuthContext.ResetPassword},resetPasswordError(e,t){t=t.payload;e.status=Status.failure,e.errorMessage=t.message},resetPasswordSuccess(e){e.status=Status.success,e.errorMessage=null},oAuthGrantReadyToStart(e){e.oAuthStatus=Status.ready},oAuthGrantStart(e){e.oAuthStatus=Status.loading},oAuthGrantSkip(e){e.oAuthStatus=Status.skipped},oAuthGrantSuccess(e,t){e.oAuthToken=t.payload,e.oAuthStatus=Status.success},oAuthGrantFailure(e){e.oAuthStatus=Status.failure},sdkInitSuccess(e){e.initStatus=Status.success},sdkInitFailure(e){e.initStatus=Status.failure},updateUserRecentApplicationsStart(e,t){e.status=Status.loading},updateUserRecentApplicationsSuccess(e,t){e.user.recentApplications=t.payload,e.status=Status.success}}}),{fetchUserRequest,fetchUserSuccess,fetchUserError,refreshTokenRequest,refreshTokenSuccess,extendTokenRequest,extendTokenSuccess,setTokenExpiration,logoutRequest,logoutSuccess,logoutError,updateTokenRequest,updateTokenSuccess,updateTokenError,updateUserLanguageStart,updateUserLanguageSuccess,resetPasswordRequest,resetPasswordError,resetPasswordSuccess,oAuthGrantStart,oAuthGrantReadyToStart,oAuthGrantSkip,oAuthGrantSuccess,oAuthGrantFailure,sdkInitSuccess,sdkInitFailure,updateUserRecentApplicationsStart,updateUserRecentApplicationsSuccess}=authSlice.actions,authReducer=authSlice.reducer,namespace$3$1="configs",initialState$3$1={initConfig:{},config:null,status:"idle"},configsSlice=createSlice({name:namespace$3$1,initialState:initialState$3$1,reducers:{getInitConfig(e,t){e.initConfig=t.payload,e.status="loading"},getSessionTimeout(e,t){e.status="loading"},setSessionTimeout(e,t){e.status="success",e.config.sessionTimeout=t.payload},getConfigFail(e){e.status="failure"},getConfigSuccess(e,t){e.status="success",e.config=t.payload},enableBetaFeatures(e){e.initConfig=Object.assign(Object.assign({},e.initConfig),{betaFeatures:!0})},disableBetaFeatures(e){e.initConfig=Object.assign(Object.assign({},e.initConfig),{betaFeatures:!1})}}}),{getInitConfig,getConfigFail,getConfigSuccess,enableBetaFeatures,disableBetaFeatures,getSessionTimeout,setSessionTimeout}=configsSlice.actions,configsReducer=configsSlice.reducer,sessionTokenSelector=e=>{return null==(e=e[namespace$4$1])?void 0:e.sessionToken},authSelector=e=>(null==e?void 0:e[namespace$4$1])||{},userSelector$2=e=>{return null==(e=e[namespace$4$1])?void 0:e.user},selectHasUserCreateRootFolderPermission=e=>{return((null==(e=null==(e=e[namespace$4$1])?void 0:e.user)?void 0:e.myRights)||[]).some(e=>["collections.collections.create","cms.media.create","veritone.superadmin"].includes(e))},selectUserCanAccessResourceCenter=e=>{return((null==(e=null==(e=e[namespace$4$1])?void 0:e.user)?void 0:e.myRights)||[]).some(e=>{var t=["admin.access"].includes(e),n=["developer.engine.update","developer.engine.create","developer.engine.delete","developer.engine.disable","developer.engine.enable"].includes(e),e=["developer.docker.admin"].includes(e);return!(!t||!n&&!e)||!!n||!!e})},selectIsSuperAdmin=e=>{return((null==(e=null==(e=e[namespace$4$1])?void 0:e.user)?void 0:e.myRights)||[]).some(e=>["superadmin","veritone.superadmin"].includes(e))},selectOrgId=e=>{return null==(e=null==(e=null==(e=e[namespace$4$1])?void 0:e.user)?void 0:e.organization)?void 0:e.organizationId},authErrorMessage=e=>{return null==(e=e[namespace$4$1])?void 0:e.errorMessage},selectIsOLPEnabled=e=>{return"enabled"===(null==(e=null==(e=null==(e=null==(e=null==(e=e[namespace$4$1])?void 0:e.user)?void 0:e.organization)?void 0:e.kvp)?void 0:e.features)?void 0:e.enableRBACFeature)},selectUserOrgEdgeVersion=e=>{return null==(e=null==(e=null==(e=null==(e=null==(e=e[namespace$4$1])?void 0:e.user)?void 0:e.organization)?void 0:e.kvp)?void 0:e.features)?void 0:e.edgeVersion},selectUserOrgHideCmsFromAppList=e=>{return!0===(null==(e=null==(e=null==(e=null==(e=null==(e=e[namespace$4$1])?void 0:e.user)?void 0:e.organization)?void 0:e.kvp)?void 0:e.features)?void 0:e.hideCMSFromAppList)},authContextSelector=e=>{return null==(e=e[namespace$4$1])?void 0:e.authContext},authStatusSelector=e=>{return null==(e=e[namespace$4$1])?void 0:e.status},preferredLanguageSelector=e=>{var t;return null!=(t=null==(t=e[namespace$4$1])?void 0:t.user)&&t.preferredLanguage?null==(e=null==(t=e[namespace$4$1])?void 0:t.user)?void 0:e.preferredLanguage:"en"},selectIsUserAdmin=e=>{return null==(e=null==(e=null==(e=e[namespace$4$1])?void 0:e.user)?void 0:e.roles)?void 0:e.includes("superadmin")},oAuthTokenSelector=e=>{return null==(e=null==e?void 0:e[namespace$4$1])?void 0:e.oAuthToken},oAuthStatusSelector=e=>{return null==(e=null==e?void 0:e[namespace$4$1])?void 0:e.oAuthStatus},initStatusSelector=e=>{return null==(e=null==e?void 0:e[namespace$4$1])?void 0:e.initStatus},userRecentApplicationsSelector=e=>{var t;return null!=(t=null==(t=e[namespace$4$1])?void 0:t.user)&&t.recentApplications?JSON.parse(null==(e=null==(t=e[namespace$4$1])?void 0:t.user)?void 0:e.recentApplications):[]},rootApiSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.apiRoot},configSelector=e=>{return null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config},switchApiSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.switchAppUrl},cmsUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.cmsAppUrl},graphEndpointSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.graphEndpoint},loginUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.loginUrl},logoutUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.logoutUrl},hidePasswordResetSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.initConfig)?void 0:e.hidePasswordReset},logoutRedirectUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.initConfig)?void 0:e.logoutRedirectUrl},controllerNodeRedImageSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.controllerNodeRedImage},controllerUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.controllerUrl},automateControllerUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.automateControllerUrl},automateUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.automateUrl},baseUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.initConfig)?void 0:e.baseUrl},initialConfigSelector=e=>{return null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.initConfig},sessionTimeoutSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.sessionTimeout},betaFeaturesSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.initConfig)?void 0:e.betaFeatures},appIdSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.initConfig)?void 0:e.applicationId},oauthRedirectUriSelector=e=>{return(null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.initConfig)?void 0:e.oAuthRedirectUri)||window.location.protocol+"//"+window.location.hostname},selectApiConfigs$1=createSelector$1([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,n)=>({apiRoot:e,graphQLEndpoint:t,token:n})),getAppConfig=(e,t)=>__awaiter$7(void 0,void 0,void 0,function*(){try{return yield baseGraphQLApi({query:`query {
939
+ }`,graphEndpoint:i,token:o})).errors||(e=null==(s=null==n?void 0:n.data)?void 0:s.__type)&&(n=e["name"],(n={name:n,fields:[]}).fields=(e.fields||[]).map(e=>({name:e.name,args:e.args.map(e=>({name:e.name,type:this.typeBuilder(e.type)})),type:this.typeBuilder(null==e?void 0:e.type)})),this.types.push(n),e=n),a){const r=[];return null!==e&&void 0!==e&&e.fields.forEach(t=>{a.find(e=>t.name===e)&&r.push(t)}),r}return null===e||void 0===e?void 0:e.fields}})}typeBuilder(e){if(e.name)return e.name;let t="";return t=e.kind&&("NON_NULL"===e.kind&&(t=this.typeBuilder(e.ofType)+"!"),"LIST"===e.kind)?"["+this.typeBuilder(e.ofType)+"]":t}getQueries(){return this.query}getMutations(){return this.mutation}getTypes(){return this.types}isOperationValid(t,e){return e?!!this[e].find(e=>e.name===t):!!this.query.find(e=>e.name===t)||!!this.mutation.find(e=>e.name===t)}indentationChecker(e){let t=0,n=0;for(;" "===e[n];)t+=1,n+=1;return t}nestingChecker(e){let t=0;for(;t<e.length;)"{"===e[t][e[t].length-1]&&e[t+1]&&"}"===e[t+1][e[t+1].length-1]?e.splice(t,2):t+=1;if(2===e.length)throw new Error("Provided operation payload is not supported");return e}recursiveFieldCheck(d,p,f,h,m=[],g,n=1,v=2){var y;return __awaiter$7(this,void 0,void 0,function*(){let e=" ",r="",t=v;for(;t-1;)e+=" ",r+=" ",--t;!this.types.find(e=>e.name===p)&&p&&(yield this.getAvailableFields(f,h,p));let i=n;for(;i<d.length;){let n;const l=d[i].includes("...");l?(n=d[i].split("on")[1].split("{")[0].trim(),yield this.getAvailableFields(f,h,n)):n=d[i].trim().split("(")[0].trim().split("{")[0].trim();let t;t=n.includes(":")?n.split(":")[1]:n;var o=this.types.find(e=>l?e.name===n:e.name===(p||"").replace(/[\[\]!]+/g,""));if(o||"}"===n||l){var a=l?o:null==o?void 0:o.fields.find(e=>e.name===t);if(a||"}"===n){let t="";if(d[i].includes("(")&&a){var s=this.getParameters(d,i),s=this.paramsParser(s,g);if(s.length){const c=[],u=(null==(y=null==o?void 0:o.fields.find(e=>e.name===n))?void 0:y.args)||[];s.forEach(t=>{var e,n=u.find(e=>e.name in t&&t[e.name]===e.type);n&&(-1!==(e=this.params.findIndex(e=>t.field in e))&&(this.params[e].validated=!0),c.push(Object.assign(Object.assign({},n),{field:t.field})))}),c.length&&(t+="(",c.forEach(e=>t+=`${e.name}: ${e.field} `),t+=")")}}if(d[i].includes("{")&&a||l){l?m.push(`${e}... on ${n} ${t}{`):m.push(""+e+n+` ${t}{`);o=l?n:(null==a?void 0:a.type)||null;i=yield this.recursiveFieldCheck(d,o,f,h,m,g,i+1,v+1)}else{if(d[i].includes("}"))return m.push(r+"}"),i===d.length-1?this.nestingChecker(m).join("\n"):i;m.push(""+e+n)}}else if(d[i].includes("{")){let e=1;for(;e;)i+=1,d[i].includes("{")&&(e+=1),d[i].includes("}")&&--e}}i+=1}})}getParameters(e,t){return e[t].split("(")[1].split(")")[0].trim().replace(/:\s/g,":")}paramsParser(e,n){e=e.split(":");const r=[];e.forEach(e=>{e=e.trim();let t;e.includes(" ")&&(t=e.split(" ")),(t=e.includes(",")?e.split(","):t)?t.forEach(e=>r.push(e.trim())):r.push(e)});var i=[];for(let t=0;t<r.length-1;t++){var o=n.find(e=>r[t+1]in e);o&&(o={[r[t]]:o[r[t+1]],field:r[t+1],validated:!1},i.push(o)),t+=1}return i}queryParser(g,v,y){return __awaiter$7(this,void 0,void 0,function*(){this.params=[];try{this.initialized||(yield this.initialize(g,v,!1));var o=y.split("\n");let i,e="",t="";o[0].includes("(")?(1<(i=o[0].split("(")[0].trim()).split(" ").length&&([i,e]=i.split(" ")),(t=(t=(t=(t=this.getParameters(o,0)).includes(",")?t.split(",").join(""):t).split("$")).filter(e=>!!e)).forEach(e=>"$"+e.trim()),this.params=t.map(e=>{var[e,t]=e.split(":");return{["$"+e]:t.trim(),validated:!1}})):i=o[0].split("{")[0].trim(),i=(i=i.includes(" ")?i.split(" ")[0]:i)||"query";var a,n=o[1],s=this.indentationChecker(n),l=[];for(let r=1;r<o.length;r++){let n="";if(s===this.indentationChecker(o[r])){let t;let e;if(o[r].includes("(")?(t=o[r].split("(")[0].trim(),a=o[r].split("(")[1].split(")")[0].trim(),e=this.paramsParser(a,this.params)):t=o[r].split("{")[0].trim(),"}"!==t){const h=this[i].find(e=>e.name===t);if(e){const m=[];e.forEach(t=>{var e,n=h.args.find(e=>e.name in t&&t[e.name]===e.type);n&&(-1!==(e=this.params.findIndex(e=>t.field in e))&&(this.params[e].validated=!0),m.push(Object.assign(Object.assign({},n),{field:t.field})))}),m.length&&(n+="(",m.forEach(e=>n+=`${e.name}: ${e.field} `),n+=")")}l.push({operation:t,line:r,type:null===h||void 0===h?void 0:h.type,args:n})}}}let r="";for(let t=0;t<l.length;t++){var c=(l[t+1]||{}).line||o.length-1,u=l[t].type,d=o.slice(l[t].line,c),p=md5(d.join("").replace(/\s/g,""));let e;if("string"!=typeof(e=this.hashMap[p]?(console.log(`returning ${l[t].operation} from memory`),this.hashMap[p]):yield this.recursiveFieldCheck(d,u,g,v,[` ${l[t].operation} ${l[t].args} {`],this.params)))throw new Error("Introspection utility failed while validating operation");this.hashMap[p]=e,r+="\n"+e+"\n"}if(r){let n="";if(this.params.forEach(e=>{var t;e.validated&&([e,t]=Object.entries(e)[0],n+=e+`: ${t} `)}),this.params.length&&!n)throw new Error("No valid parameters found");n=n&&"("+n+")",r=`${i} ${e} ${n} {`+r+"}";var f=this.params.filter(e=>!e.validated).map(e=>{var{}=e,e=__rest$4(e,["validated"]);return Object.keys(e)[0].replace("$","")});return{query:r,unsupportedArgs:f}}if(this.safety)throw new Error("Instrospection utility failed. Safety is ON");return console.log("Instrospection utility failed. Safety is OFF. Proceeding with original operation payload"),{query:y}}catch(e){if(console.log(e),!this.safety)return{query:y}}})}}var AuthContext,Status,MessageSeverity,gqlIntrospection=new GqlInstrospection;(AuthContext=AuthContext||{}).ResetPassword="ResetPassword",function(e){e.idle="idle",e.loading="loading",e.success="success",e.failure="failure",e.skipped="skipped",e.ready="ready"}(Status=Status||{});const namespace$4$1="auth",initialState$4$1={oAuthToken:"",oAuthStatus:Status.idle,initStatus:Status.idle,userId:"",sessionToken:"",user:{},status:Status.idle,authContext:null,errorMessage:null,userIsActive:!0},authSlice=createSlice({name:namespace$4$1,initialState:initialState$4$1,reducers:{fetchUserRequest(e){e.status=Status.loading},fetchUserSuccess(e,t){var n;e.sessionToken=(null==(n=t.payload)?void 0:n.token)||"",e.userId=(null==(n=t.payload)?void 0:n.userId)||"",e.user=Object.assign({},t.payload),e.status=Status.success},fetchUserError(e){e.status=Status.failure},updateTokenRequest(e,t){e.status=Status.idle},updateTokenSuccess(e,t){t=t.payload.token;e.sessionToken=t,e.user.token=t,e.oAuthStatus!==Status.success&&e.oAuthStatus!==Status.skipped||(e.status=Status.success)},updateTokenError(e){e.sessionToken="",e.status=Status.failure},updateUserLanguageStart(e,t){e.status=Status.loading},updateUserLanguageSuccess(e,t){e.user.preferredLanguage=t.payload,e.status=Status.success},refreshTokenRequest(e,t){e.status=Status.loading},refreshTokenSuccess(e,t){e.sessionToken=(null==(t=null==(t=t.payload)?void 0:t.refreshToken)?void 0:t.token)||"",e.status=Status.success},extendTokenRequest(e,t){e.status=Status.loading},extendTokenSuccess(e,t){e.sessionToken!==t.payload.token&&(e.sessionToken=t.payload.token),e.status=Status.success},setTokenExpiration(e,t){e.user=Object.assign(Object.assign({},e.user),{tokenExpiration:null==(e=t.payload)?void 0:e.expirationTime})},logoutRequest(e,t){e.status=Status.loading},logoutSuccess(e){e.status=Status.success},logoutError(e){e.status=Status.failure},resetPasswordRequest(e,t){e.status=Status.loading,e.errorMessage=null,e.authContext=AuthContext.ResetPassword},resetPasswordError(e,t){t=t.payload;e.status=Status.failure,e.errorMessage=t.message},resetPasswordSuccess(e){e.status=Status.success,e.errorMessage=null},oAuthGrantReadyToStart(e){e.oAuthStatus=Status.ready},oAuthGrantStart(e){e.oAuthStatus=Status.loading},oAuthGrantSkip(e){e.oAuthStatus=Status.skipped},oAuthGrantSuccess(e,t){e.oAuthToken=t.payload,e.oAuthStatus=Status.success},oAuthGrantFailure(e){e.oAuthStatus=Status.failure},sdkInitSuccess(e){e.initStatus=Status.success},sdkInitFailure(e){e.initStatus=Status.failure},updateUserRecentApplicationsStart(e,t){e.status=Status.loading},updateUserRecentApplicationsSuccess(e,t){e.user.recentApplications=t.payload,e.status=Status.success}}}),{fetchUserRequest,fetchUserSuccess,fetchUserError,refreshTokenRequest,refreshTokenSuccess,extendTokenRequest,extendTokenSuccess,setTokenExpiration,logoutRequest,logoutSuccess,logoutError,updateTokenRequest,updateTokenSuccess,updateTokenError,updateUserLanguageStart,updateUserLanguageSuccess,resetPasswordRequest,resetPasswordError,resetPasswordSuccess,oAuthGrantStart,oAuthGrantReadyToStart,oAuthGrantSkip,oAuthGrantSuccess,oAuthGrantFailure,sdkInitSuccess,sdkInitFailure,updateUserRecentApplicationsStart,updateUserRecentApplicationsSuccess}=authSlice.actions,authReducer=authSlice.reducer,namespace$3$1="configs",initialState$3$1={initConfig:{},config:null,status:"idle"},configsSlice=createSlice({name:namespace$3$1,initialState:initialState$3$1,reducers:{getInitConfig(e,t){e.initConfig=t.payload,e.status="loading"},getSessionTimeout(e,t){e.status="loading"},setSessionTimeout(e,t){e.status="success",e.config.sessionTimeout=t.payload},getConfigFail(e){e.status="failure"},getConfigSuccess(e,t){e.status="success",e.config=t.payload},enableBetaFeatures(e){e.initConfig=Object.assign(Object.assign({},e.initConfig),{betaFeatures:!0})},disableBetaFeatures(e){e.initConfig=Object.assign(Object.assign({},e.initConfig),{betaFeatures:!1})}}}),{getInitConfig,getConfigFail,getConfigSuccess,enableBetaFeatures,disableBetaFeatures,getSessionTimeout,setSessionTimeout}=configsSlice.actions,configsReducer=configsSlice.reducer,sessionTokenSelector=e=>{return null==(e=e[namespace$4$1])?void 0:e.sessionToken},authSelector=e=>(null==e?void 0:e[namespace$4$1])||{},userSelector$2=e=>{return null==(e=e[namespace$4$1])?void 0:e.user},selectHasUserCreateRootFolderPermission=e=>{return((null==(e=null==(e=e[namespace$4$1])?void 0:e.user)?void 0:e.myRights)||[]).some(e=>["collections.collections.create","cms.media.create","veritone.superadmin"].includes(e))},selectUserCanAccessResourceCenter=e=>{return((null==(e=null==(e=e[namespace$4$1])?void 0:e.user)?void 0:e.myRights)||[]).some(e=>{var t=["admin.access"].includes(e),n=["developer.engine.update","developer.engine.create","developer.engine.delete","developer.engine.disable","developer.engine.enable"].includes(e),e=["developer.docker.admin"].includes(e);return!(!t||!n&&!e)||!!n||!!e})},selectIsSuperAdmin=e=>{return((null==(e=null==(e=e[namespace$4$1])?void 0:e.user)?void 0:e.myRights)||[]).some(e=>["superadmin","veritone.superadmin"].includes(e))},selectOrgId=e=>{return null==(e=null==(e=null==(e=e[namespace$4$1])?void 0:e.user)?void 0:e.organization)?void 0:e.organizationId},authErrorMessage=e=>{return null==(e=e[namespace$4$1])?void 0:e.errorMessage},selectIsOLPEnabled=e=>{return"enabled"===(null==(e=null==(e=null==(e=null==(e=null==(e=e[namespace$4$1])?void 0:e.user)?void 0:e.organization)?void 0:e.kvp)?void 0:e.features)?void 0:e.enableRBACFeature)},selectUserOrgEdgeVersion=e=>{return null==(e=null==(e=null==(e=null==(e=null==(e=e[namespace$4$1])?void 0:e.user)?void 0:e.organization)?void 0:e.kvp)?void 0:e.features)?void 0:e.edgeVersion},selectUserOrgHideCmsFromAppList=e=>{return!0===(null==(e=null==(e=null==(e=null==(e=null==(e=e[namespace$4$1])?void 0:e.user)?void 0:e.organization)?void 0:e.kvp)?void 0:e.features)?void 0:e.hideCMSFromAppList)},authContextSelector=e=>{return null==(e=e[namespace$4$1])?void 0:e.authContext},authStatusSelector=e=>{return null==(e=e[namespace$4$1])?void 0:e.status},preferredLanguageSelector=e=>{var t;return null!=(t=null==(t=e[namespace$4$1])?void 0:t.user)&&t.preferredLanguage?null==(e=null==(t=e[namespace$4$1])?void 0:t.user)?void 0:e.preferredLanguage:"en"},selectIsUserAdmin=e=>{return null==(e=null==(e=null==(e=e[namespace$4$1])?void 0:e.user)?void 0:e.roles)?void 0:e.includes("superadmin")},oAuthTokenSelector=e=>{return null==(e=null==e?void 0:e[namespace$4$1])?void 0:e.oAuthToken},oAuthStatusSelector=e=>{return null==(e=null==e?void 0:e[namespace$4$1])?void 0:e.oAuthStatus},initStatusSelector=e=>{return null==(e=null==e?void 0:e[namespace$4$1])?void 0:e.initStatus},userRecentApplicationsSelector=e=>{var t;return null!=(t=null==(t=e[namespace$4$1])?void 0:t.user)&&t.recentApplications?JSON.parse(null==(e=null==(t=e[namespace$4$1])?void 0:t.user)?void 0:e.recentApplications):[]},rootApiSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.apiRoot},configSelector=e=>{return null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config},switchApiSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.switchAppUrl},cmsUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.cmsAppUrl},graphEndpointSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.graphEndpoint},loginUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.loginUrl},logoutUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.logoutUrl},hidePasswordResetSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.initConfig)?void 0:e.hidePasswordReset},logoutRedirectUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.initConfig)?void 0:e.logoutRedirectUrl},controllerNodeRedImageSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.controllerNodeRedImage},controllerUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.controllerUrl},automateControllerUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.automateControllerUrl},automateUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.automateUrl},baseUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.initConfig)?void 0:e.baseUrl},initialConfigSelector=e=>{return null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.initConfig},sessionTimeoutSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.config)?void 0:e.sessionTimeout},betaFeaturesSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.initConfig)?void 0:e.betaFeatures},appIdSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.initConfig)?void 0:e.applicationId},oauthRedirectUriSelector=e=>{return(null==(e=null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.initConfig)?void 0:e.oAuthRedirectUri)||window.location.protocol+"//"+window.location.hostname},selectApiConfigs$1=createSelector$1([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,n)=>({apiRoot:e,graphQLEndpoint:t,token:n})),getAppConfig=(e,t)=>__awaiter$7(void 0,void 0,void 0,function*(){try{return yield baseGraphQLApi({query:`query {
940
940
  staticAppConfig {
941
941
  apiRoot
942
942
  switchAppUrl
@@ -949,14 +949,14 @@ createScheduledJob(input:{
949
949
  automateControllerUrl
950
950
  controllerNodeRedImage
951
951
  }
952
- }`,graphEndpoint:e,token:t})}catch(e){return{success:!1}}}),getEnvironmentConfig=(t="https://api.us-1.veritone.com/v3/graphql")=>{return Object.values(config$2).find(e=>e.graphEndpoint===t)||config$2["prod-us-1"]};function*handleAuth(e){e?yield put(oAuthGrantReadyToStart()):yield put(oAuthGrantSkip())}function*getConfigsSaga(e){var t,n,r=yield select(baseUrlSelector),i=e.payload.authToken,o=yield select(initStatusSelector);if(o!==Status.success){i&&(yield put(updateTokenRequest({token:i})));o=getEnvironmentConfig(r);if(o.graphEndpoint===r)yield put(getConfigSuccess(Object.assign({},o))),yield put(sdkInitSuccess()),yield call$f(handleAuth,!!e.payload.handleAuth);else{yield call$f(handleAuth,!!e.payload.handleAuth);try{var a=yield getAppConfig(r,i);if(null==(t=null==a?void 0:a.data)||!t.staticAppConfig)throw new Error("Failed to get app config from core-graphql");yield put(getConfigSuccess(Object.assign({},null==(n=null==a?void 0:a.data)?void 0:n.staticAppConfig))),yield put(sdkInitSuccess())}catch(e){console.log(e);o=getEnvironmentConfig(r);yield put(getConfigSuccess(Object.assign({},o))),yield put(sdkInitFailure())}}}}function*getSessionTimeoutSaga(e){var t,n;let r=["us-fed-1","us-fed-2","us-gov-1","us-gov-2"].find(e=>window.location.href.includes(e))?15:60;try{var i=yield select(baseUrlSelector),o=e.payload,a=yield getAppConfig(i,o);r=(null==(n=null==(t=null==a?void 0:a.data)?void 0:t.staticAppConfig)?void 0:n.sessionTimeout)||r,yield put(setSessionTimeout(r))}catch(e){console.log(e),yield put(setSessionTimeout(r))}}function*configsSaga(){yield all([takeEvery$1(getInitConfig.type,getConfigsSaga)])}function*watchSessionTimeout(){yield takeLatest$1(getSessionTimeout.type,getSessionTimeoutSaga)}function getConfigModule(){return{id:namespace$3$1,reducerMap:{[namespace$3$1]:configsReducer},sagas:[configsSaga,watchSessionTimeout],initialActions:[]}}const handleFetchUserRequest=(e,t)=>__awaiter$7(void 0,void 0,void 0,function*(){try{return yield(yield fetch(e+"/v1/admin/current-user",{credentials:"include",method:"GET",headers:Object.assign({"Content-Type":"application/json"},t&&{Authorization:"Bearer "+t})})).json()}catch(e){console.error(e)}}),handleRefreshTokenRequest=(t,n)=>__awaiter$7(void 0,void 0,void 0,function*(){var e=`
952
+ }`,graphEndpoint:e,token:t})}catch(e){return{success:!1}}}),getEnvironmentConfig=(t="https://api.us-1.veritone.com/v3/graphql")=>{return Object.values(config$2).find(e=>e.graphEndpoint===t)||config$2["prod-us-1"]};function*handleAuth(e){e?yield put(oAuthGrantReadyToStart()):yield put(oAuthGrantSkip())}function*getConfigsSaga(e){var t,n,r=yield select(baseUrlSelector),i=e.payload.authToken,o=yield select(initStatusSelector);if(o!==Status.success){i&&(yield put(updateTokenRequest({token:i})));o=getEnvironmentConfig(r);if(o.graphEndpoint===r)yield put(getConfigSuccess(Object.assign({},o))),yield put(sdkInitSuccess()),yield call$f(handleAuth,!!e.payload.handleAuth);else{yield call$f(handleAuth,!!e.payload.handleAuth);try{var a=yield getAppConfig(r,i);if(null==(t=null==a?void 0:a.data)||!t.staticAppConfig)throw new Error("Failed to get app config from core-graphql");yield put(getConfigSuccess(Object.assign({},null==(n=null==a?void 0:a.data)?void 0:n.staticAppConfig))),yield put(sdkInitSuccess())}catch(e){console.log(e);o=getEnvironmentConfig(r);yield put(getConfigSuccess(Object.assign({},o))),yield put(sdkInitFailure())}}}}function*getSessionTimeoutSaga(e){var t,n;let r=["us-fed-1","us-fed-2","us-gov-1","us-gov-2"].find(e=>window.location.href.includes(e))?15:60;try{var i=yield select(baseUrlSelector),o=e.payload,a=yield getAppConfig(i,o);r=(null==(n=null==(t=null==a?void 0:a.data)?void 0:t.staticAppConfig)?void 0:n.sessionTimeout)||r,yield put(setSessionTimeout(r))}catch(e){console.log(e),yield put(setSessionTimeout(r))}}function*configsSaga(){yield all([takeEvery$1(getInitConfig.type,getConfigsSaga)])}function*watchSessionTimeout(){yield takeLatest$1(getSessionTimeout.type,getSessionTimeoutSaga)}function getConfigModule(){return{id:namespace$3$1,reducerMap:{[namespace$3$1]:configsReducer},sagas:[configsSaga,watchSessionTimeout],initialActions:[]}}const handleFetchUserRequest=(e,t)=>__awaiter$7(void 0,void 0,void 0,function*(){try{return yield(yield fetch(e+"/v1/admin/current-user",{credentials:"include",method:"GET",headers:Object.assign({"Content-Type":"application/json"},t&&{Authorization:"Bearer "+t})})).json()}catch(e){return console.error(e),{errors:e}}}),handleRefreshTokenRequest=(t,n)=>__awaiter$7(void 0,void 0,void 0,function*(){var e=`
953
953
  mutation {
954
954
  refreshToken(token: "${t}") {
955
955
  apiToken
956
956
  token
957
957
  }
958
958
  }
959
- `;try{return yield baseGraphQLApi({query:e,graphEndpoint:n,token:t})}catch(e){console.error(e)}});class CustomError extends Error{constructor(e,t,n){super(t),this.isAuthErr=e,this.message=t,this.response=n}}const handleExtendTokenRequest=(e,r)=>__awaiter$7(void 0,void 0,void 0,function*(){var t=yield fetch(r+`/v1/admin/token/${e}/extend`,{method:"GET",headers:Object.assign({"Content-Type":"application/json"},e&&{Authorization:"Bearer "+e})});if(t.ok)return t.json();{let e;var n="Could not extend token";throw e=4===Math.trunc(t.status/100)?new CustomError(!0,n,t):new CustomError(!1,n,t)}}),handleResetPasswordApi=(r,{resetToken:i,username:o,password:a,organizationInviteId:s})=>__awaiter$7(void 0,void 0,void 0,function*(){var e=r+"/v1/admin/"+(s?"org-invite/password/reset":"password/reset");try{var t,n=yield fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Object.assign({token:i,userName:o,password:a},s&&{organizationInviteId:s}))});return 204===n.status||n.ok?{success:!0}:(t=yield n.json(),{success:!1,status:n.status,result:t})}catch(e){return console.log(e),{success:!1}}}),handleLogoutRequest=(t,n)=>__awaiter$7(void 0,void 0,void 0,function*(){var e=`
959
+ `;try{return yield baseGraphQLApi({query:e,graphEndpoint:n,token:t})}catch(e){return console.error(e),{errors:e}}});class CustomError extends Error{constructor(e,t,n){super(t),this.isAuthErr=e,this.message=t,this.response=n}}const handleExtendTokenRequest=(e,r)=>__awaiter$7(void 0,void 0,void 0,function*(){var t=yield fetch(r+`/v1/admin/token/${e}/extend`,{method:"GET",headers:Object.assign({"Content-Type":"application/json"},e&&{Authorization:"Bearer "+e})});if(t.ok)return t.json();{let e;var n="Could not extend token";throw e=4===Math.trunc(t.status/100)?new CustomError(!0,n,t):new CustomError(!1,n,t)}}),handleResetPasswordApi=(r,{resetToken:i,username:o,password:a,organizationInviteId:s})=>__awaiter$7(void 0,void 0,void 0,function*(){var e=r+"/v1/admin/"+(s?"org-invite/password/reset":"password/reset");try{var t,n=yield fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Object.assign({token:i,userName:o,password:a},s&&{organizationInviteId:s}))});return 204===n.status||n.ok?{success:!0}:(t=yield n.json(),{success:!1,status:n.status,result:t})}catch(e){return console.log(e),{success:!1}}}),handleLogoutRequest=(t,n)=>__awaiter$7(void 0,void 0,void 0,function*(){var e=`
960
960
  mutation {
961
961
  userLogout(token: "${t}")
962
962
  }
@@ -976,7 +976,7 @@ createScheduledJob(input:{
976
976
  operations
977
977
  }
978
978
  }
979
- `,graphEndpoint:e,token:t})}catch(e){console.error(e)}}),namespace$2$1="events",initialState$2$2={isIdle:!1,callLogout:!1,clickedLogout:!1,callResetIdleTimer:!1,resetIdleTimerCallCounter:0,reloadPage:!1},eventsSlice=createSlice({name:namespace$2$1,initialState:initialState$2$2,reducers:{setIsIdle(e,t){e.isIdle=t.payload},setCallLogout(e,t){e.callLogout=t.payload},setClickedLogout(e,t){e.clickedLogout=t.payload},setCallResetIdleTimer(e,t){e.callResetIdleTimer=t.payload,e.resetIdleTimerCallCounter=t.payload?1:0},setReloadPage(e,t){e.reloadPage=t.payload},postNotificationCommand(e,t){},subscribeToEventsWebsocket(e){}}}),{setIsIdle,setCallLogout,setClickedLogout,setCallResetIdleTimer,setReloadPage,postNotificationCommand,subscribeToEventsWebsocket}=eventsSlice.actions,eventsReducer=eventsSlice.reducer,links={},getMailboxSessionLink=e=>links[e],setMailboxSessionLink=(e,t,n)=>(links[e]={link:t,token:n},links[e]),extractSessionLink=(e,t)=>{var{link:e,token:n}=e;if(t===n||""===t)return e},createSessionLink=(e,t,n)=>new WebSocketLink({uri:e,options:{reconnect:!0,connectionParams:{authorization:"Bearer "+n,mailboxId:t}}}),setSessionLink=(e,t,n)=>{let r;var i=getMailboxSessionLink(t);return r=(r=i?extractSessionLink(i,n):r)||createSessionLink(e,t,n),setMailboxSessionLink(t,r,n)},createApolloClient=e=>new ApolloClient({link:e,cache:new InMemoryCache}),createApolloWs=(e,t,n)=>{return setSessionLink(e,n,t).link};let _authWindow=null,_authWindowListener=null,_OAuthToken=null;const _POLL_TIME=500,cleanupAuthWindow=()=>{_authWindow&&_authWindow.close&&_authWindow.close(),_authWindow=null},removeAuthWindowListener=()=>{_authWindowListener&&(window.removeEventListener("message",_authWindowListener),_authWindowListener=null)},createAuthWindowListener=(e,r,i)=>(removeAuthWindowListener(),function(e){var t,n=new URL(window.location.href);null!=(t=e.origin)&&t.startsWith(n.protocol+"//"+n.hostname)&&(null!=(t=e.data)&&t.error?(removeAuthWindowListener(),cleanupAuthWindow(),i(new Error("Veritone OAuth2 Error: "+t.error))):null!=t&&t.OAuthToken&&(_OAuthToken=t.OAuthToken,removeAuthWindowListener(),cleanupAuthWindow(),r({OAuthToken:_OAuthToken})))}),askOAuthServerForToken=(e,t,n)=>{setTimeout(()=>{_OAuthToken||(_authWindow&&_authWindow.postMessage("getOAuthToken","*"),_authWindow&&!_authWindow.closed?askOAuthServerForToken(e,t,n):_authWindow&&_authWindow.closed?(_authWindow=null,n(new Error("User cancelled OAuth flow"))):(removeAuthWindowListener(),cleanupAuthWindow()))},_POLL_TIME)},login=n=>__awaiter$7(void 0,void 0,void 0,function*(){if(n)return _OAuthToken&&(yield logout$1()),window.location.replace(n),new Promise((e,t)=>{_authWindowListener=createAuthWindowListener(n,e,t),window.addEventListener("message",_authWindowListener),askOAuthServerForToken(n,e,t)});throw new Error("Missing parameter: Need to include the backend OAuth2 URI")}),logout$1=()=>__awaiter$7(void 0,void 0,void 0,function*(){return new Promise(e=>{removeAuthWindowListener(),cleanupAuthWindow(),e(!(_OAuthToken=null))})}),handleImplicitRedirect=(e=window.location.hash||"",t=window.opener)=>{let n,r,i;try{n=e.match(/access_token=(.+)$/)[1].split("&")[0]}catch(e){}if(!n)try{r=e.match(/error=(.+)$/)[1].split("&")[0],i=e.match(/error_description=(.+)$/)[1].split("&")[0]}catch(e){}if(!t)return n;t.postMessage({OAuthToken:n,error:r,errorDescription:i},window.origin)},SESSION_TOKEN_KEY="tkn",SESSION_TOKEN_PREVENT_STASH_VALUE="__stop_stashes__",stashTokenInSession=e=>{var t=window.sessionStorage.getItem(SESSION_TOKEN_KEY);e!==SESSION_TOKEN_PREVENT_STASH_VALUE&&void 0!==e&&t||(e?window.sessionStorage.setItem(SESSION_TOKEN_KEY,e):(t=handleImplicitRedirect(window.location.hash,null),e=window.location.port?":"+window.location.port:"",window.sessionStorage.setItem(SESSION_TOKEN_KEY,t||""),window.location.replace(window.location.protocol+"//"+window.location.hostname+e+window.location.pathname)))},notificationCommands={setIsIdle:"set_is_idle",setCallLogout:"set_call_logout",setClickedLogout:"set_clicked_logout",setCallResetIdleTimer:"set_call_reset_idle_timer",goToLoginPage:"go_to_login_page",refreshPage:"refreshPage"},postNotificationApi=(t,n,r={},i=!1,o="text",a,s)=>__awaiter$7(void 0,void 0,void 0,function*(){var e={body:JSON.stringify(r),userId:n,ephemeral:i,contentType:o,eventType:a};try{return yield baseGraphQLApi({query:`
979
+ `,graphEndpoint:e,token:t})}catch(e){return console.error(e),{errors:e}}}),namespace$2$1="events",initialState$2$2={isIdle:!1,callLogout:!1,clickedLogout:!1,callResetIdleTimer:!1,resetIdleTimerCallCounter:0,reloadPage:!1},eventsSlice=createSlice({name:namespace$2$1,initialState:initialState$2$2,reducers:{setIsIdle(e,t){e.isIdle=t.payload},setCallLogout(e,t){e.callLogout=t.payload},setClickedLogout(e,t){e.clickedLogout=t.payload},setCallResetIdleTimer(e,t){e.callResetIdleTimer=t.payload,e.resetIdleTimerCallCounter=t.payload?1:0},setReloadPage(e,t){e.reloadPage=t.payload},postNotificationCommand(e,t){},subscribeToEventsWebsocket(e){}}}),{setIsIdle,setCallLogout,setClickedLogout,setCallResetIdleTimer,setReloadPage,postNotificationCommand,subscribeToEventsWebsocket}=eventsSlice.actions,eventsReducer=eventsSlice.reducer,links={},getMailboxSessionLink=e=>links[e],setMailboxSessionLink=(e,t,n)=>(links[e]={link:t,token:n},links[e]),extractSessionLink=(e,t)=>{var{link:e,token:n}=e;if(t===n||""===t)return e},createSessionLink=(e,t,n)=>new WebSocketLink({uri:e,options:{reconnect:!0,connectionParams:{authorization:"Bearer "+n,mailboxId:t}}}),setSessionLink=(e,t,n)=>{let r;var i=getMailboxSessionLink(t);return r=(r=i?extractSessionLink(i,n):r)||createSessionLink(e,t,n),setMailboxSessionLink(t,r,n)},createApolloClient=e=>new ApolloClient({link:e,cache:new InMemoryCache}),createApolloWs=(e,t,n)=>{return setSessionLink(e,n,t).link};let _authWindow=null,_authWindowListener=null,_OAuthToken=null;const _POLL_TIME=500,cleanupAuthWindow=()=>{_authWindow&&_authWindow.close&&_authWindow.close(),_authWindow=null},removeAuthWindowListener=()=>{_authWindowListener&&(window.removeEventListener("message",_authWindowListener),_authWindowListener=null)},createAuthWindowListener=(e,r,i)=>(removeAuthWindowListener(),function(e){var t,n=new URL(window.location.href);null!=(t=e.origin)&&t.startsWith(n.protocol+"//"+n.hostname)&&(null!=(t=e.data)&&t.error?(removeAuthWindowListener(),cleanupAuthWindow(),i(new Error("Veritone OAuth2 Error: "+t.error))):null!=t&&t.OAuthToken&&(_OAuthToken=t.OAuthToken,removeAuthWindowListener(),cleanupAuthWindow(),r({OAuthToken:_OAuthToken})))}),askOAuthServerForToken=(e,t,n)=>{setTimeout(()=>{_OAuthToken||(_authWindow&&_authWindow.postMessage("getOAuthToken","*"),_authWindow&&!_authWindow.closed?askOAuthServerForToken(e,t,n):_authWindow&&_authWindow.closed?(_authWindow=null,n(new Error("User cancelled OAuth flow"))):(removeAuthWindowListener(),cleanupAuthWindow()))},_POLL_TIME)},login=n=>__awaiter$7(void 0,void 0,void 0,function*(){if(n)return _OAuthToken&&(yield logout$1()),window.location.replace(n),new Promise((e,t)=>{_authWindowListener=createAuthWindowListener(n,e,t),window.addEventListener("message",_authWindowListener),askOAuthServerForToken(n,e,t)});throw new Error("Missing parameter: Need to include the backend OAuth2 URI")}),logout$1=()=>__awaiter$7(void 0,void 0,void 0,function*(){return new Promise(e=>{removeAuthWindowListener(),cleanupAuthWindow(),e(!(_OAuthToken=null))})}),handleImplicitRedirect=(e=window.location.hash||"",t=window.opener)=>{let n,r,i;try{n=e.match(/access_token=(.+)$/)[1].split("&")[0]}catch(e){}if(!n)try{r=e.match(/error=(.+)$/)[1].split("&")[0],i=e.match(/error_description=(.+)$/)[1].split("&")[0]}catch(e){}if(!t)return n;t.postMessage({OAuthToken:n,error:r,errorDescription:i},window.origin)},SESSION_TOKEN_KEY="tkn",SESSION_TOKEN_PREVENT_STASH_VALUE="__stop_stashes__",stashTokenInSession=e=>{var t=window.sessionStorage.getItem(SESSION_TOKEN_KEY);e!==SESSION_TOKEN_PREVENT_STASH_VALUE&&void 0!==e&&t||(e?window.sessionStorage.setItem(SESSION_TOKEN_KEY,e):(t=handleImplicitRedirect(window.location.hash,null),e=window.location.port?":"+window.location.port:"",window.sessionStorage.setItem(SESSION_TOKEN_KEY,t||""),window.location.replace(window.location.protocol+"//"+window.location.hostname+e+window.location.pathname)))},notificationCommands={setIsIdle:"set_is_idle",setCallLogout:"set_call_logout",setClickedLogout:"set_clicked_logout",setCallResetIdleTimer:"set_call_reset_idle_timer",goToLoginPage:"go_to_login_page",refreshPage:"refreshPage"},postNotificationApi=(t,n,r={},i=!1,o="text",a,s)=>__awaiter$7(void 0,void 0,void 0,function*(){var e={body:JSON.stringify(r),userId:n,ephemeral:i,contentType:o,eventType:a};try{return yield baseGraphQLApi({query:`
980
980
  mutation ($body: String!, $userId: ID!, $ephemeral: Boolean!, $contentType: String!, $eventType: String){
981
981
  notificationPost(
982
982
  input: {
@@ -1072,7 +1072,7 @@ createScheduledJob(input:{
1072
1072
  mutation logout($token: String!) {
1073
1073
  userLogout(token: $token )
1074
1074
  }
1075
- `,variables:e,graphEndpoint:n,token:t})}catch(e){return{success:!1}}}),isTokenJwt=(e="")=>{e=e.split(".");return 3===e.length&&e.reduce((e,t,n)=>{if(2===n)return 0<t.length;try{return window.atob(t.replace(/-/g,"+").replace(/_/g,"/")),!0}catch(e){return!1}},!0)};function*handleFetchUserSaga(){var e=yield select(rootApiSelector);if(e){var t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector),e=yield call$f(handleFetchUserRequest,e,n),t=yield call$f(getUserRightRequest,t,n);if(e)if(null!=e&&e.errors||t.errors)yield put(fetchUserError());else{var r=null==(i=null==(i=null==(i=null==t?void 0:t.data)?void 0:i.me)?void 0:i.roles)?void 0:i.map(e=>e.appName).filter((e,t,n)=>n.indexOf(e)===t);if(r.includes("admin"))for(const a of null==(i=null==(i=null==t?void 0:t.data)?void 0:i.myRights)?void 0:i.operations)if(a.includes("superadmin")){r.push("superadmin");break}var i=null==(i=null==(i=null==t?void 0:t.data)?void 0:i.me)?void 0:i.userSettings.find(e=>"preferredLanguage"===e.key),o=null==(o=null==(o=null==t?void 0:t.data)?void 0:o.me)?void 0:o.userSettings.find(e=>"recentApplications"===e.key),i=null==i?void 0:i.value,o=null==o?void 0:o.value;e.preferredLanguage=i||"en",e.recentApplications=o||"",yield put(fetchUserSuccess(Object.assign(Object.assign({},e),{roles:r,token:e.token||n,myRights:null==(o=null==(i=null==t?void 0:t.data)?void 0:i.myRights)?void 0:o.operations,userSettings:(null==(n=null==(e=null==t?void 0:t.data)?void 0:e.me)?void 0:n.userSettings)||[]}))),yield put(subscribeToEventsWebsocket())}else yield put(fetchUserError()),stashTokenInSession(SESSION_TOKEN_PREVENT_STASH_VALUE)}else yield take(getConfigSuccess.type),yield put(fetchUserRequest())}function*logoutHelper(e){var t=yield select(graphEndpointSelector),n=yield select(authSelector);yield call$f(stashTokenInSession,SESSION_TOKEN_PREVENT_STASH_VALUE),yield call$f(postNotificationApi,t,null==n?void 0:n.userId,{eventType:aiwareEvent,command:null===notificationCommands||void 0===notificationCommands?void 0:notificationCommands.setCallLogout,value:!0,ephemeral:!0,contentType:"json"},!0,"json",aiwareEvent,e)}function*handleRefreshTokenSaga(e){var t=yield select(graphEndpointSelector),e=e.payload["token"];try{var n,r,i=yield call$f(handleRefreshTokenRequest,e,t);null!=i&&i.errors?(n=yield select(preferredLanguageSelector),r=AIWareFormatMessage(n),((null==i?void 0:i.errors)||[]).find(e=>{return((null==(e=null==e?void 0:e.data)?void 0:e.serviceMessage)||"").includes("40")})?(yield put(setDuration(1e4)),yield put(showMessage({content:r({id:"shared-redux.refresh-token-failure.4xx",defaultMessage:[{type:0,value:"Could not refresh session"}]}),severity:MessageSeverity.Error})),yield delay$1(10001),yield*logoutHelper(e)):yield put(showMessage({content:r({id:"shared-redux.refresh-token-failure.non-4xx",defaultMessage:[{type:0,value:"Could not refresh session. Service temporarily unavailable"}]}),severity:MessageSeverity.Error}))):(yield put(refreshTokenSuccess(Object.assign({},i.data))),yield put(fetchUserRequest()))}catch(e){console.log(e)}}function*handleUuidTokenOnlySaga(e,t,n,r,i,o){let a=0,s=!1,l,c,u=e;for(var d;!s&&a<r;)if((d=!isTokenJwt(u))||u===e)if(d)try{c=yield call$f(n,u,t),s=!0}catch(e){l=e,++a<r&&(yield delay$1(5e3))}else try{var p=yield call$f(handleFetchUserRequest,t);"string"==typeof(null==p?void 0:p.token)?(yield put(updateTokenSuccess({token:p.token})),yield call$f(n,p.token,t),u=p.token):(yield put(showMessage({content:i,severity:MessageSeverity.Error})),s=!0)}catch(e){yield put(showMessage({content:i,severity:MessageSeverity.Error})),s=!0}else s=!0;return l&&(yield call$f(o,u,l)),c}const MAX_EXTEND_ATTEMPTS=2;function*handleExtendTokenErrors(e,t){var n=yield select(preferredLanguageSelector),n=AIWareFormatMessage(n);t instanceof CustomError&&t.isAuthErr?(yield put(setDuration(1e4)),yield put(showMessage({content:n({id:"shared-redux.extend-token-failure.4xx",defaultMessage:[{type:0,value:"Could not extend session"}]}),severity:MessageSeverity.Error})),yield delay$1(10001),yield*logoutHelper(e)):(console.log("ERR! Could not extend session. Service temporarily unavailable"),yield put(showMessage({content:n({id:"shared-redux.extend-token-failure.non-4xx",defaultMessage:[{type:0,value:"Could not extend session. Service temporarily unavailable"}]}),severity:MessageSeverity.Error})),yield delay$1(2e3))}function*handleExtendTokenSaga(e){var e=e.payload["token"],t=yield select(rootApiSelector),n=yield select(preferredLanguageSelector),n=AIWareFormatMessage(n)({id:"shared-redux.extend-token-failure.jwt",defaultMessage:[{type:0,value:"Could not extend session. JWT tokens cannot be extended."}]}),e=yield call$f(handleUuidTokenOnlySaga,e,t,handleExtendTokenRequest,MAX_EXTEND_ATTEMPTS,n,handleExtendTokenErrors);e&&!e.errors&&(yield put(extendTokenSuccess({token:e.token})),yield put(setTokenExpiration({expirationTime:e.tokenExpiration})),stashTokenInSession(e.token))}function*handleLogoutSaga(e){var t=yield select(graphEndpointSelector),e=e.payload["token"],e=(yield call$f(stashTokenInSession,SESSION_TOKEN_PREVENT_STASH_VALUE),yield call$f(handleLogoutRequest,e,t));null!=e&&e.errors?yield put(logoutError()):yield put(logoutSuccess())}function*handleUpdateSessionToken(e){e=e.payload.token;e?yield put(updateTokenSuccess({token:e})):yield put(updateTokenError())}function*handleUpdateUserLanguage(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);try{var n,r,i=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector),a=(yield select(userSelector$2))["userId"];a?(n=e.payload,r=yield call$f(updateUserSettingsApi,i,o,a,"preferredLanguage",n),sdkEventManager.dispatch(SdkEvents.languageChange,null,{preferredLanguage:r}),yield put(updateUserLanguageSuccess(r))):(sdkEventManager.dispatch(SdkEvents.languageChange,new SdkError("Changing user preferred language failed, user id is required"),null),yield put(showMessage({content:t({id:"shared-redux.snackbar.languageSelectionError",defaultMessage:[{type:0,value:"Something went wrong while updating preferred language"}]}),severity:MessageSeverity.Error})))}catch(e){sdkEventManager.dispatch(SdkEvents.languageChange,new SdkError("Changing user preferred language failed"),null),yield put(showMessage({content:t({id:"shared-redux.snackbar.languageSelectionChangeError",defaultMessage:[{type:0,value:"Something went wrong while updating preferred language"}]}),severity:MessageSeverity.Error})),console.log(e)}}function*handleResetPasswordSaga(e){var t,n,r=yield select(preferredLanguageSelector),r=AIWareFormatMessage(r);try{var{resetToken:i,password:o,username:a,organizationInviteId:s}=e.payload,l=yield select(rootApiSelector),c=yield call$f(handleResetPasswordApi,l,{resetToken:i,username:a,password:o,organizationInviteId:s});if(null!=c&&c.success)yield put(resetPasswordSuccess());else{let e=r({id:"os-auth.reset-password.internalServerError",defaultMessage:[{type:0,value:"An error has occurred."}]});401===c.status&&"PasswordResetTokenExpired"===(null==(t=c.result)?void 0:t.errorCode)?e=r({id:"os-auth.reset-password.expireMessageDescriptive",defaultMessage:[{type:0,value:'The password reset link you used has expired. Please click the "Forgot Password" link on the login page to generate a new link.'}]}):403===c.status?e=(null==(n=c.result)?void 0:n.message)||e:404===c.status&&(e=r({id:"os-auth.reset-password.expireMessage",defaultMessage:[{type:0,value:"An error has occurred. The reset link might be expired."}]})),yield put(resetPasswordError({message:e}))}}catch(e){console.log(e),yield put(resetPasswordError({message:r({id:"os-auth.reset-password.internalError",defaultMessage:[{type:0,value:"Could not reset your password."}]})}))}}function*requestOAuthGrant(){var e=yield select(appIdSelector),t=(yield select(selectApiConfigs$1))["apiRoot"],n=yield select(sessionTokenSelector),r=yield select(oauthRedirectUriSelector);if(n)yield put(oAuthGrantSuccess(n)),yield put(fetchUserRequest());else try{n=(yield call$f(login,t+`/v1/admin/oauth/authorize?response_type=token&client_id=${e}&redirect_uri=${r}&scope=all`)).OAuthToken;yield put(oAuthGrantSuccess(n)),yield put(fetchUserRequest())}catch(e){console.log("oauth flow error",e),yield put(oAuthGrantFailure())}}function*callSdkInitCompleteCallbackOnError(){var e,t=yield select(initialConfigSelector),n=yield select(preferredLanguageSelector),n=AIWareFormatMessage(n);null!=(e=null==t?void 0:t.onComplete)&&e.call(t,n({id:"shared-redux.auth-saga.sdk-init-error-message",defaultMessage:[{type:0,value:"An error occurred during initialization."}]}))}function*watchOAuthReadiness(){for(;;){yield take([oAuthGrantReadyToStart.type,fetchUserSuccess.type,fetchUserError.type]);var e=yield select(oAuthStatusSelector),t=yield select(authStatusSelector);if(t!==Status.loading&&e===Status.ready)switch(t){case Status.success:yield put(oAuthGrantSkip());break;case Status.failure:yield put(oAuthGrantStart())}}}function*handleUpdateUserRecentApplications(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);try{var n,r,i=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector),a=(yield select(userSelector$2))["userId"],s=yield select(userRecentApplicationsSelector);a?(n=slice$3(uniq([e.payload,...s]),0,6),r=yield call$f(updateUserSettingsApi,i,o,a,"recentApplications",JSON.stringify(n)),yield put(updateUserRecentApplicationsSuccess(r))):yield put(showMessage({content:t({id:"shared-redux.snackbar.updateRecentApplicationsError",defaultMessage:[{type:0,value:"Something went wrong while updating recent applications"}]}),severity:MessageSeverity.Error}))}catch(e){yield put(showMessage({content:t({id:"shared-redux.snackbar.updatingRecentApplicationsChangeError",defaultMessage:[{type:0,value:"Something went wrong while updating recent applications"}]}),severity:MessageSeverity.Error})),console.log(e)}}function*watchInitAndAuthStatus(){for(var e,t,n;;){yield take([oAuthGrantSuccess.type,oAuthGrantSkip.type,oAuthGrantFailure.type,sdkInitSuccess.type,fetchUserSuccess.type,fetchUserError.type]);var r=yield select(initialConfigSelector),i=yield select(oAuthTokenSelector),o=yield select(oAuthStatusSelector),a=yield select(initStatusSelector),s=yield select(authStatusSelector),l=yield select(sessionTokenSelector),c=yield select(preferredLanguageSelector),u=AIWareFormatMessage(c);if(s!==Status.loading)if(s===Status.success)switch(o){case Status.loading:null!=(e=null==r?void 0:r.onComplete)&&e.call(r,null,l),yield put(oAuthGrantSuccess(l));break;case Status.skipped:null!=(e=null==r?void 0:r.onComplete)&&e.call(r,null,l)}else if(a===Status.success)switch(o){case Status.skipped:s===Status.failure?null!=(t=null==r?void 0:r.onComplete)&&t.call(r,u({id:"shared-redux.auth-saga.auth-error-message",defaultMessage:[{type:0,value:"An error occurred during authentication."}]})):null!=(t=null==r?void 0:r.onComplete)&&t.call(r,null,l);break;case Status.success:null!=(n=null==r?void 0:r.onComplete)&&n.call(r,null,i);break;case Status.failure:null!=(n=null==r?void 0:r.onComplete)&&n.call(r,u({id:"shared-redux.auth-saga.oauth-error-message",defaultMessage:[{type:0,value:"An error occurred during authentication."}]}))}}}function*watchTokenChanges(){for(;;){yield take([fetchUserSuccess.type,updateTokenSuccess.type,updateTokenError.type,refreshTokenSuccess.type,setTokenExpiration.type,fetchUserSuccess.type,fetchUserError.type]);var e=yield select(sessionTokenSelector),t=(yield select(userSelector$2))["tokenExpiration"],n=yield select(authStatusSelector),r=yield select(oAuthStatusSelector);n===Status.failure&&r!==Status.ready?sdkEventManager.dispatch(SdkEvents.tokenUpdated,new SdkError("An error occurred during the update of the session token.")):sdkEventManager.dispatch(SdkEvents.tokenUpdated,null,{token:e,tokenExpiration:t})}}function*authSaga(){yield all([takeLatest$1(fetchUserRequest.type,handleFetchUserSaga),takeLatest$1(updateTokenRequest.type,handleUpdateSessionToken),takeLatest$1(resetPasswordRequest.type,handleResetPasswordSaga),takeEvery$1(refreshTokenRequest.type,handleRefreshTokenSaga),takeEvery$1(extendTokenRequest.type,handleExtendTokenSaga),takeEvery$1(logoutRequest.type,handleLogoutSaga),takeEvery$1(updateUserLanguageStart.type,handleUpdateUserLanguage),takeEvery$1(oAuthGrantStart.type,requestOAuthGrant),takeEvery$1(sdkInitFailure.type,callSdkInitCompleteCallbackOnError),takeEvery$1(updateUserRecentApplicationsStart.type,handleUpdateUserRecentApplications),watchOAuthReadiness(),watchInitAndAuthStatus(),watchTokenChanges()])}function getAuthModule(){return{id:namespace$4$1,reducerMap:{[namespace$4$1]:authReducer},sagas:[authSaga],initialActions:[fetchUserRequest()]}}var NotificationFlag,CreateModes,TabId,EUserStatus,AvailableWidgets,AvailablePanels,AvailableComponents,userActivityEvents={records:[{id:"ff9272fe-5e98-4ffb-96b6-5df2918d9b2b",event:"login_succeeded",userId:"10ffa55a-d68b-494b-83df-49ce2d008e6d",userName:"sys_graphql_citest_superadmin@veritone.com",organizationId:"7682",applicationId:"123",createdDateTime:"2020-10-26T06:40:12.928Z",payload:{organizationId:12333,organizationName:"name",userName:"user",userId:"10ffa55a-d68b-494b-83df-49ce2d008e6d"}}]},mockData={userActivityEvents:userActivityEvents};const fakeAPI=()=>new Promise((e,t)=>{setTimeout(()=>e({success:!0,data:mockData}),500)}),getActivityApi=()=>__awaiter$7(void 0,void 0,void 0,function*(){try{var{success:e,data:t}=yield fakeAPI();return e&&t.userActivityEvents?{data:t.userActivityEvents,success:!0}:{success:!1,data:null}}catch(e){return{success:!1,data:null,message:e}}}),getApplicationsApi=(e,t)=>__awaiter$7(void 0,void 0,void 0,function*(){try{return(yield fetch(e+"/v1/admin/current-user/applications",{method:"GET",headers:Object.assign({"Content-Type":"application/json"},t&&{Authorization:"Bearer "+t}),credentials:"include"})).json()}catch(e){console.error(e)}}),getApplicationLogo=(r,i)=>__awaiter$7(void 0,void 0,void 0,function*(){var e=`query ($limit: Int $owned: Boolean) {
1075
+ `,variables:e,graphEndpoint:n,token:t})}catch(e){return{success:!1}}}),MAX_EXTEND_ATTEMPTS=2,MAX_FETCH_USER_ATTEMPTS=3,isTokenJwt=(e="")=>{e=e.split(".");return 3===e.length&&e.reduce((e,t,n)=>{if(2===n)return 0<t.length;try{return window.atob(t.replace(/-/g,"+").replace(/_/g,"/")),!0}catch(e){return!1}},!0)};function*handleRetries(t,n,e,...r){let i=0,o=!1,a={};for(;!o&&i<t;)try{(a=yield call$f(e,...r)).errors?++i<t&&(yield delay$1(n)):o=!0}catch(e){a.errors=e,++i<t&&(yield delay$1(n))}return a}function*handleFetchUserSaga(){var e=yield select(rootApiSelector);if(e){var t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector),r=yield select(preferredLanguageSelector),r=AIWareFormatMessage(r),e=yield call$f(handleRetries,MAX_FETCH_USER_ATTEMPTS,2e3,handleFetchUserRequest,e,n),t=yield call$f(handleRetries,MAX_FETCH_USER_ATTEMPTS,2e3,getUserRightRequest,t,n);if(e.errors||t.errors)yield put(fetchUserError()),stashTokenInSession(SESSION_TOKEN_PREVENT_STASH_VALUE),yield put(showMessage({content:r({id:"shared-redux.fetch-user.failure-message",defaultMessage:[{type:0,value:"It looks like our servers are having issues. Please refresh your page."}]}),severity:MessageSeverity.Error}));else{var i=null==(r=null==(r=null==(r=null==t?void 0:t.data)?void 0:r.me)?void 0:r.roles)?void 0:r.map(e=>e.appName).filter((e,t,n)=>n.indexOf(e)===t);if(null!=i&&i.includes("admin"))for(const a of(null==(r=null==(r=null==t?void 0:t.data)?void 0:r.myRights)?void 0:r.operations)||[])if(a.includes("superadmin")){i.push("superadmin");break}var r=null==(r=null==(r=null==(r=null==t?void 0:t.data)?void 0:r.me)?void 0:r.userSettings)?void 0:r.find(e=>"preferredLanguage"===e.key),o=null==(o=null==(o=null==(o=null==t?void 0:t.data)?void 0:o.me)?void 0:o.userSettings)?void 0:o.find(e=>"recentApplications"===e.key),r=null==r?void 0:r.value,o=null==o?void 0:o.value;e.preferredLanguage=r||"en",e.recentApplications=o||"",yield put(fetchUserSuccess(Object.assign(Object.assign({},e),{roles:i,token:e.token||n,myRights:null==(o=null==(r=null==t?void 0:t.data)?void 0:r.myRights)?void 0:o.operations,userSettings:(null==(n=null==(e=null==t?void 0:t.data)?void 0:e.me)?void 0:n.userSettings)||[]}))),yield put(subscribeToEventsWebsocket())}}else yield take(getConfigSuccess.type),yield put(fetchUserRequest())}function*logoutHelper(e){var t=yield select(graphEndpointSelector),n=yield select(authSelector);yield call$f(stashTokenInSession,SESSION_TOKEN_PREVENT_STASH_VALUE),yield call$f(postNotificationApi,t,null==n?void 0:n.userId,{eventType:aiwareEvent,command:null===notificationCommands||void 0===notificationCommands?void 0:notificationCommands.setCallLogout,value:!0,ephemeral:!0,contentType:"json"},!0,"json",aiwareEvent,e)}function*handleRefreshTokenSaga(e){var t=yield select(graphEndpointSelector),e=e.payload["token"];try{var n,r,i=yield call$f(handleRefreshTokenRequest,e,t);null!=i&&i.errors?(n=yield select(preferredLanguageSelector),r=AIWareFormatMessage(n),((null==i?void 0:i.errors)||[]).find(e=>{return((null==(e=null==e?void 0:e.data)?void 0:e.serviceMessage)||"").includes("40")})?(yield put(setDuration(1e4)),yield put(showMessage({content:r({id:"shared-redux.refresh-token-failure.4xx",defaultMessage:[{type:0,value:"Could not refresh session"}]}),severity:MessageSeverity.Error})),yield delay$1(10001),yield*logoutHelper(e)):yield put(showMessage({content:r({id:"shared-redux.refresh-token-failure.non-4xx",defaultMessage:[{type:0,value:"Could not refresh session. Service temporarily unavailable"}]}),severity:MessageSeverity.Error}))):(yield put(refreshTokenSuccess(Object.assign({},i.data))),yield put(fetchUserRequest()))}catch(e){console.log(e)}}function*handleUuidTokenOnlySaga(e,t,n,r,i,o){let a=0,s=!1,l,c,u=e;for(var d;!s&&a<r;)if((d=!isTokenJwt(u))||u===e)if(d)try{c=yield call$f(n,u,t),s=!0}catch(e){l=e,++a<r&&(yield delay$1(5e3))}else try{var p=yield call$f(handleFetchUserRequest,t);"string"==typeof(null==p?void 0:p.token)?(yield put(updateTokenSuccess({token:p.token})),yield call$f(n,p.token,t),u=p.token):(yield put(showMessage({content:i,severity:MessageSeverity.Error})),s=!0)}catch(e){yield put(showMessage({content:i,severity:MessageSeverity.Error})),s=!0}else s=!0;return l&&(yield call$f(o,u,l)),c}function*handleExtendTokenErrors(e,t){var n=yield select(preferredLanguageSelector),n=AIWareFormatMessage(n);t instanceof CustomError&&t.isAuthErr?(yield put(setDuration(1e4)),yield put(showMessage({content:n({id:"shared-redux.extend-token-failure.4xx",defaultMessage:[{type:0,value:"Could not extend session"}]}),severity:MessageSeverity.Error})),yield delay$1(10001),yield*logoutHelper(e)):(console.log("ERR! Could not extend session. Service temporarily unavailable"),yield put(showMessage({content:n({id:"shared-redux.extend-token-failure.non-4xx",defaultMessage:[{type:0,value:"Could not extend session. Service temporarily unavailable"}]}),severity:MessageSeverity.Error})),yield delay$1(2e3))}function*handleExtendTokenSaga(e){var e=e.payload["token"],t=yield select(rootApiSelector),n=yield select(preferredLanguageSelector),n=AIWareFormatMessage(n)({id:"shared-redux.extend-token-failure.jwt",defaultMessage:[{type:0,value:"Could not extend session. JWT tokens cannot be extended."}]}),e=yield call$f(handleUuidTokenOnlySaga,e,t,handleExtendTokenRequest,MAX_EXTEND_ATTEMPTS,n,handleExtendTokenErrors);e&&!e.errors&&(yield put(extendTokenSuccess({token:e.token})),yield put(setTokenExpiration({expirationTime:e.tokenExpiration})),stashTokenInSession(e.token))}function*handleLogoutSaga(e){var t=yield select(graphEndpointSelector),e=e.payload["token"],e=(yield call$f(stashTokenInSession,SESSION_TOKEN_PREVENT_STASH_VALUE),yield call$f(handleLogoutRequest,e,t));null!=e&&e.errors?yield put(logoutError()):yield put(logoutSuccess())}function*handleUpdateSessionToken(e){e=e.payload.token;e?yield put(updateTokenSuccess({token:e})):yield put(updateTokenError())}function*handleUpdateUserLanguage(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);try{var n,r,i=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector),a=(yield select(userSelector$2))["userId"];a?(n=e.payload,r=yield call$f(updateUserSettingsApi,i,o,a,"preferredLanguage",n),sdkEventManager.dispatch(SdkEvents.languageChange,null,{preferredLanguage:r}),yield put(updateUserLanguageSuccess(r))):(sdkEventManager.dispatch(SdkEvents.languageChange,new SdkError("Changing user preferred language failed, user id is required"),null),yield put(showMessage({content:t({id:"shared-redux.snackbar.languageSelectionError",defaultMessage:[{type:0,value:"Something went wrong while updating preferred language"}]}),severity:MessageSeverity.Error})))}catch(e){sdkEventManager.dispatch(SdkEvents.languageChange,new SdkError("Changing user preferred language failed"),null),yield put(showMessage({content:t({id:"shared-redux.snackbar.languageSelectionChangeError",defaultMessage:[{type:0,value:"Something went wrong while updating preferred language"}]}),severity:MessageSeverity.Error})),console.log(e)}}function*handleResetPasswordSaga(e){var t,n,r=yield select(preferredLanguageSelector),r=AIWareFormatMessage(r);try{var{resetToken:i,password:o,username:a,organizationInviteId:s}=e.payload,l=yield select(rootApiSelector),c=yield call$f(handleResetPasswordApi,l,{resetToken:i,username:a,password:o,organizationInviteId:s});if(null!=c&&c.success)yield put(resetPasswordSuccess());else{let e=r({id:"os-auth.reset-password.internalServerError",defaultMessage:[{type:0,value:"An error has occurred."}]});401===c.status&&"PasswordResetTokenExpired"===(null==(t=c.result)?void 0:t.errorCode)?e=r({id:"os-auth.reset-password.expireMessageDescriptive",defaultMessage:[{type:0,value:'The password reset link you used has expired. Please click the "Forgot Password" link on the login page to generate a new link.'}]}):403===c.status?e=(null==(n=c.result)?void 0:n.message)||e:404===c.status&&(e=r({id:"os-auth.reset-password.expireMessage",defaultMessage:[{type:0,value:"An error has occurred. The reset link might be expired."}]})),yield put(resetPasswordError({message:e}))}}catch(e){console.log(e),yield put(resetPasswordError({message:r({id:"os-auth.reset-password.internalError",defaultMessage:[{type:0,value:"Could not reset your password."}]})}))}}function*requestOAuthGrant(){var e=yield select(appIdSelector),t=(yield select(selectApiConfigs$1))["apiRoot"],n=yield select(sessionTokenSelector),r=yield select(oauthRedirectUriSelector);if(n)yield put(oAuthGrantSuccess(n)),yield put(fetchUserRequest());else try{n=(yield call$f(login,t+`/v1/admin/oauth/authorize?response_type=token&client_id=${e}&redirect_uri=${r}&scope=all`)).OAuthToken;yield put(oAuthGrantSuccess(n)),yield put(fetchUserRequest())}catch(e){console.log("oauth flow error",e),yield put(oAuthGrantFailure())}}function*callSdkInitCompleteCallbackOnError(){var e,t=yield select(initialConfigSelector),n=yield select(preferredLanguageSelector),n=AIWareFormatMessage(n);null!=(e=null==t?void 0:t.onComplete)&&e.call(t,n({id:"shared-redux.auth-saga.sdk-init-error-message",defaultMessage:[{type:0,value:"An error occurred during initialization."}]}))}function*watchOAuthReadiness(){for(;;){yield take([oAuthGrantReadyToStart.type,fetchUserSuccess.type,fetchUserError.type]);var e=yield select(oAuthStatusSelector),t=yield select(authStatusSelector);if(t!==Status.loading&&e===Status.ready)switch(t){case Status.success:yield put(oAuthGrantSkip());break;case Status.failure:yield put(oAuthGrantStart())}}}function*handleUpdateUserRecentApplications(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);try{var n,r,i=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector),a=(yield select(userSelector$2))["userId"],s=yield select(userRecentApplicationsSelector);a?(n=slice$3(uniq([e.payload,...s]),0,6),r=yield call$f(updateUserSettingsApi,i,o,a,"recentApplications",JSON.stringify(n)),yield put(updateUserRecentApplicationsSuccess(r))):yield put(showMessage({content:t({id:"shared-redux.snackbar.updateRecentApplicationsError",defaultMessage:[{type:0,value:"Something went wrong while updating recent applications"}]}),severity:MessageSeverity.Error}))}catch(e){yield put(showMessage({content:t({id:"shared-redux.snackbar.updatingRecentApplicationsChangeError",defaultMessage:[{type:0,value:"Something went wrong while updating recent applications"}]}),severity:MessageSeverity.Error})),console.log(e)}}function*watchInitAndAuthStatus(){for(var e,t,n;;){yield take([oAuthGrantSuccess.type,oAuthGrantSkip.type,oAuthGrantFailure.type,sdkInitSuccess.type,fetchUserSuccess.type,fetchUserError.type]);var r=yield select(initialConfigSelector),i=yield select(oAuthTokenSelector),o=yield select(oAuthStatusSelector),a=yield select(initStatusSelector),s=yield select(authStatusSelector),l=yield select(sessionTokenSelector),c=yield select(preferredLanguageSelector),u=AIWareFormatMessage(c);if(s!==Status.loading)if(s===Status.success)switch(o){case Status.loading:null!=(e=null==r?void 0:r.onComplete)&&e.call(r,null,l),yield put(oAuthGrantSuccess(l));break;case Status.skipped:null!=(e=null==r?void 0:r.onComplete)&&e.call(r,null,l)}else if(a===Status.success)switch(o){case Status.skipped:s===Status.failure?null!=(t=null==r?void 0:r.onComplete)&&t.call(r,u({id:"shared-redux.auth-saga.auth-error-message",defaultMessage:[{type:0,value:"An error occurred during authentication."}]})):null!=(t=null==r?void 0:r.onComplete)&&t.call(r,null,l);break;case Status.success:null!=(n=null==r?void 0:r.onComplete)&&n.call(r,null,i);break;case Status.failure:null!=(n=null==r?void 0:r.onComplete)&&n.call(r,u({id:"shared-redux.auth-saga.oauth-error-message",defaultMessage:[{type:0,value:"An error occurred during authentication."}]}))}}}function*watchTokenChanges(){for(;;){yield take([fetchUserSuccess.type,updateTokenSuccess.type,updateTokenError.type,refreshTokenSuccess.type,setTokenExpiration.type,fetchUserSuccess.type,fetchUserError.type]);var e=yield select(sessionTokenSelector),t=(yield select(userSelector$2))["tokenExpiration"],n=yield select(authStatusSelector),r=yield select(oAuthStatusSelector);n===Status.failure&&r!==Status.ready?sdkEventManager.dispatch(SdkEvents.tokenUpdated,new SdkError("An error occurred during the update of the session token.")):sdkEventManager.dispatch(SdkEvents.tokenUpdated,null,{token:e,tokenExpiration:t})}}function*authSaga(){yield all([takeLatest$1(fetchUserRequest.type,handleFetchUserSaga),takeLatest$1(updateTokenRequest.type,handleUpdateSessionToken),takeLatest$1(resetPasswordRequest.type,handleResetPasswordSaga),takeEvery$1(refreshTokenRequest.type,handleRefreshTokenSaga),takeEvery$1(extendTokenRequest.type,handleExtendTokenSaga),takeEvery$1(logoutRequest.type,handleLogoutSaga),takeEvery$1(updateUserLanguageStart.type,handleUpdateUserLanguage),takeEvery$1(oAuthGrantStart.type,requestOAuthGrant),takeEvery$1(sdkInitFailure.type,callSdkInitCompleteCallbackOnError),takeEvery$1(updateUserRecentApplicationsStart.type,handleUpdateUserRecentApplications),watchOAuthReadiness(),watchInitAndAuthStatus(),watchTokenChanges()])}function getAuthModule(){return{id:namespace$4$1,reducerMap:{[namespace$4$1]:authReducer},sagas:[authSaga],initialActions:[fetchUserRequest()]}}var NotificationFlag,CreateModes,TabId,EUserStatus,AvailableWidgets,AvailablePanels,AvailableComponents,userActivityEvents={records:[{id:"ff9272fe-5e98-4ffb-96b6-5df2918d9b2b",event:"login_succeeded",userId:"10ffa55a-d68b-494b-83df-49ce2d008e6d",userName:"sys_graphql_citest_superadmin@veritone.com",organizationId:"7682",applicationId:"123",createdDateTime:"2020-10-26T06:40:12.928Z",payload:{organizationId:12333,organizationName:"name",userName:"user",userId:"10ffa55a-d68b-494b-83df-49ce2d008e6d"}}]},mockData={userActivityEvents:userActivityEvents};const fakeAPI=()=>new Promise((e,t)=>{setTimeout(()=>e({success:!0,data:mockData}),500)}),getActivityApi=()=>__awaiter$7(void 0,void 0,void 0,function*(){try{var{success:e,data:t}=yield fakeAPI();return e&&t.userActivityEvents?{data:t.userActivityEvents,success:!0}:{success:!1,data:null}}catch(e){return{success:!1,data:null,message:e}}}),getApplicationsApi=(e,t)=>__awaiter$7(void 0,void 0,void 0,function*(){try{return(yield fetch(e+"/v1/admin/current-user/applications",{method:"GET",headers:Object.assign({"Content-Type":"application/json"},t&&{Authorization:"Bearer "+t}),credentials:"include"})).json()}catch(e){console.error(e)}}),getApplicationLogo=(r,i)=>__awaiter$7(void 0,void 0,void 0,function*(){var e=`query ($limit: Int $owned: Boolean) {
1076
1076
  applications (limit: $limit owned: $owned) {
1077
1077
  records {
1078
1078
  id
@@ -1080,7 +1080,7 @@ createScheduledJob(input:{
1080
1080
  signedIconUrl
1081
1081
  }
1082
1082
  }
1083
- }`;let t;var n=yield gqlIntrospection.queryParser(r,i,e);t=n&&null!=n&&n.query?n.query:e;try{return yield baseGraphQLApi({query:t,graphEndpoint:r,token:i,variables:{limit:1e3,owned:!1}})}catch(e){console.error(e)}}),namespace$8="flowCenterDialog",initialState$a={flowCenterDialog:{open:!1,component:"",props:{}}},flowCenterDialogSlice=createSlice({name:namespace$8,initialState:initialState$a,reducers:{flowCenterDialogAction(e,t){e.flowCenterDialog=t.payload}}}),flowCenterDialogSelector=e=>(null==e?void 0:e[namespace$8])||null,flowCenterDialogAction=flowCenterDialogSlice.actions["flowCenterDialogAction"],flowCenterDialogReducer=flowCenterDialogSlice.reducer;function __awaiter$6(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}const AIWareIntlProvider=e=>{const n=useSelector(preferredLanguageSelector)||"en";var t=e.style;const[r,i]=react.exports.useState({});return react.exports.useEffect(()=>{__awaiter$6(void 0,void 0,void 0,function*(){try{if(!r[n]){const t=yield fetchTranslationJson(n);i(e=>Object.assign(Object.assign({},e),{[n]:t}))}}catch(e){console.log(e),i(e=>Object.assign(Object.assign({},e),{[n]:{}}))}})},[n,r]),jsxRuntime.exports.jsx(IntlProvider,Object.assign({messages:r[n],locale:n,defaultLocale:"en"},{children:jsxRuntime.exports.jsx("div",Object.assign({style:t},{children:e.children}))}))},setData=(!function(e){e.unread="unread",e.read="read",e.actionPending="actionPending",e.actionDone="actionDone",e.seen="seen",e.unseen="unseen",e.starred="starred"}(NotificationFlag=NotificationFlag||{}),!function(e){e[e.ADD=0]="ADD",e[e.STACK=1]="STACK",e[e.SLIDE_MORE=2]="SLIDE_MORE",e[e.OVERLAY_OVER_PARENT=3]="OVERLAY_OVER_PARENT"}(CreateModes=CreateModes||{}),!function(e){e.APP_PANEL="APP_PANEL",e.PERSONAL_PANEL="PERSONAL_PANEL",e.ORGANIZATION_PANEL="ORGANIZATION_PANEL",e.MARKET_PANEL="MARKET_PANEL",e.SETTING_PREFERENCE_PANEL="SETTING_PREFERENCE_PANEL",e.ACTIVITY_PANEL="ACTIVITY_PANEL",e.PERFORMANCE_MONITOR="PERFORMANCE_MONITOR",e.CMS_SHORTCUT="CMS_SHORTCUT",e.FLOW_CENTER="FLOW_CENTER",e.ADMIN_SHORTCUT="ADMIN_CENTER_BROWSE",e.DATA_CENTER="DATA_CENTER",e.RESOURCE_CENTER="RESOURCE_CENTER",e.ENGINE_CENTER="ENGINE_CENTER",e.LIBRARY_CENTER="LIBRARY_CENTER",e.MARKETPLACE_CENTER="MARKETPLACE_CENTER",e.PROCESSING_CENTER_BROWSE="PROCESSING_CENTER_BROWSE",e.PROCESSING_CENTER_DAG_BUILDER="PROCESSING_CENTER_DAG_BUILDER",e.INSTANCE_ADMIN_CENTER_BROWSE="INSTANCE_ADMIN_CENTER_BROWSE"}(TabId=TabId||{}),!function(e){e.active="active",e.suspended="suspended",e.deleted="deleted",e.deactivated="deactivated"}(EUserStatus=EUserStatus||{}),!function(e){e.SAMPLE_APP_BAR="SAMPLE_APP_BAR",e.APP_BAR="APP_BAR",e.FLOW_CENTER="FLOW_CENTER",e.FLOW_WIDGET="FLOW_WIDGET",e.ENGINE_CENTER_BROWSE="ENGINE_CENTER_BROWSE",e.APP_CENTER_BROWSE="APP_CENTER_BROWSE",e.RESET_PASSWORD="RESET_PASSWORD"}(AvailableWidgets=AvailableWidgets||{}),!function(e){e.SIMPLE_PANEL="SIMPLE_PANEL",e.APP_BAR_PANEL_TEMPLATE="APP_BAR_PANEL_TEMPLATE",e.APP_BAR_TAB_PANEL_TEMPLATE="APP_BAR_TAB_PANEL_TEMPLATE",e.TAB_TEMPLATE="TAB_TEMPLATE"}(AvailablePanels=AvailablePanels||{}),!function(e){e.TEST_COMPONENT="TEST_COMPONENT",e.TEST_COMPONENT2="TEST_COMPONENT2",e.TEST_COMPONENT3="TEST_COMPONENT3",e.HELP_PANEL="HELP_PANEL",e.NOTIFICATION_PANEL="NOTIFICATION_PANEL",e.USER_APPLICATION_SETTINGS_PANEL="USER_APPLICATION_SETTINGS_PANEL",e.APP_BAR_PANEL="APP_BAR_PANEL",e.NOTIFICATION_DETAIL="NOTIFICATION_DETAIL",e.EDIT_PROFILE_PICTURE="EDIT_PROFILE_PICTURE",e.NOTIFICATION_SETTING="NOTIFICATION_SETTING",e.NOTIFICATION_UTILITY="NOTIFICATION_UTILITY",e.NOTIFICATION_APPLICATION="NOTIFICATION_APPLICATION",e.SETTING_PREFERENCE="SETTING_PREFERENCE",e.ORGANIZATION_PANEL="ORGANIZATION_PANEL",e.DATA_CENTER_BROWSE="DATA_CENTER_BROWSE",e.DATA_CENTER_FOLDERS_AND_FILES="DATA_CENTER_FOLDERS_AND_FILES",e.DATA_CENTER_SELECT_IMPORT_SOURCE="DATA_CENTER_SELECT_IMPORT_SOURCE",e.DATA_CENTER_IMPORTER="DATA_CENTER_IMPORTER",e.DATA_LABELER="DATA_LABELER",e.ADMIN_CENTER_OPEN_ID="ADMIN_CENTER_OPEN_ID",e.ADMIN_CENTER_BROWSE="ADMIN_CENTER_BROWSE",e.RESOURCE_CENTER_BROWSE="RESOURCE_CENTER_BROWSE",e.DATA_CENTER_PROCESS_AI="DATA_CENTER_PROCESS_AI",e.ENGINE_CENTER_NEW="ENGINE_CENTER_NEW",e.ENGINE_CENTER_FILTER="ENGINE_CENTER_FILTER",e.APP_CENTER_FILTER="APP_CENTER_FILTER",e.ENGINE_CENTER_DETAILS="ENGINE_CENTER_DETAILS",e.ENGINE_CENTER_NEW_BUILD="ENGINE_CENTER_NEW_BUILD",e.ENGINE_CENTER_CUSTOM_FIELDS_FORM="ENGINE_CENTER_CUSTOM_FIELDS_FORM",e.ENGINE_CENTER_INPUT_TYPE_FLYOUT="ENGINE_CENTER_INPUT_TYPE_FLYOUT",e.ENGINE_CENTER_EDIT_RELEASE_NOTES="ENGINE_CENTER_EDIT_RELEASE_NOTES",e.ENGINE_CENTER_SCHEMAS_FORM_PANEL="ENGINE_CENTER_SCHEMAS_FORM_PANEL",e.ENGINE_CENTER_VERSION_HISTORY_PANEL="ENGINE_CENTER_VERSION_HISTORY_PANEL",e.SUPPORTED_FILE_TYPES="SUPPORTED_FILE_TYPES",e.EDIT_FILE_METADATA="EDIT_FILE_METADATA",e.APP_CENTER_NEW="APP_CENTER_NEW",e.APP_CENTER_ADD_FLOW_PANEL="APP_CENTER_ADD_FLOW_PANEL",e.APP_CENTER_ADD_SCHEMA_PANEL="APP_CENTER_ADD_SCHEMA_PANEL",e.APP_CENTER_CONFIG_FIELDS_FORM="APP_CENTER_CONFIG_FIELDS_FORM",e.APP_CENTER_CONTEXT_MENU_EXTENSIONS="APP_CENTER_CONTEXT_MENU_EXTENSIONS",e.APP_CENTER_EVENT_PANEL="APP_CENTER_EVENT_PANEL",e.APP_CENTER_AUTOMATE_PALETTE_INTEGRATION_PANEL="APP_CENTER_AUTOMATE_PALETTE_INTEGRATION_PANEL",e.APP_CENTER_BROWSE="APP_CENTER_BROWSE",e.APP_CENTER_DETAILS="APP_CENTER_DETAILS",e.DATA_CENTER_ENGINE_SELECTION="DATA_CENTER_ENGINE_SELECTION",e.INVITE_USERS_PANEL="INVITE_USERS_PANEL",e.INVITE_REQUESTS_PANEL="INVITE_REQUESTS_PANEL",e.REVIEW_ORG_INVITE_PANEL="REVIEW_ORG_INVITE_PANEL",e.ADD_APPLICATIONS="ADD_APPLICATIONS",e.ADMIN_CENTER_NEW_GROUP_PANEL="ADMIN_CENTER_NEW_GROUP_PANEL",e.PERMISSIONS_PANEL="PERMISSIONS_PANEL",e.NEW_PERMISSION_SET_PANEL="NEW_PERMISSION_SET_PANEL",e.DATA_CENTER_MDP_IFRAME_PANEL="DATA_CENTER_MDP_IFRAME_PANEL",e.DATA_CENTER_INGESTION_CREATION_PANEL="DATA_CENTER_INGESTION_CREATION_PANEL",e.DATA_CENTER_SOURCE_CREATION_PANEL="DATA_CENTER_SOURCE_CREATION_PANEL",e.DATA_CENTER_FILE_INFO_PANEL="DATA_CENTER_FILE_INFO_PANEL",e.ADMIN_CENTER_GROUP_DETAILS_PANEL="ADMIN_CENTER_GROUP_DETAILS_PANEL",e.ADMIN_CENTER_ADD_MEMBER_PANEL="ADMIN_CENTER_ADD_MEMBER_PANEL",e.GROUP_INFO_PANEL="GROUP_INFO_PANEL",e.APPLICATION_DETAILS_PANEL="APPLICATION_DETAILS_PANEL",e.PERMISSION_SET_DETAILS_PANEL="PERMISSION_SET_DETAILS_PANEL",e.PROCESSING_CENTER_SOURCES="PROCESSING_CENTER_SOURCES",e.ADD_APPLICATION_USERS_PANEL="ADD_APPLICATION_USERS_PANEL",e.PROCESSING_CENTER_BROWSE="PROCESSING_CENTER_BROWSE",e.PROCESSING_CENTER_JOBS="PROCESSING_CENTER_JOBS",e.JOBS_TABLE_SETTINGS_PANEL="JOBS_TABLE_SETTINGS_PANEL",e.PROCESSING_CENTER_ERROR_DETAIL="PROCESSING_CENTER_ERROR_DETAIL",e.VERSION_PANEL="VERSION_PANEL",e.PROCESSING_CENTER_DAG_BUILDER="PROCESSING_CENTER_DAG_BUILDER",e.PROCESSING_CENTER_INGESTION="PROCESSING_CENTER_INGESTION",e.PROCESSING_CENTER_ADVANCED_SETTINGS="PROCESSING_CENTER_ADVANCED_SETTINGS",e.PROCESSING_CENTER_AFFILIATE_PANEL="PROCESSING_CENTER_AFFILIATE_PANEL",e.JOBS_DETAILS_PANEL="JOBS_DETAILS_PANEL",e.TASKS_TABLE_SETTINGS_PANEL="TASKS_TABLE_SETTINGS_PANEL",e.PACKAGE_DETAILS_PANEL="PACKAGE_DETAILS_PANEL",e.INSTANCE_ADMIN_CENTER_BROWSE="INSTANCE_ADMIN_CENTER_BROWSE",e.USER_DETAILS_PANEL="USER_DETAILS_PANEL",e.MANAGE_GRANTS="MANAGE_GRANTS",e.SCHEMA_DETAILS_PANEL="SCHEMA_DETAILS_PANEL"}(AvailableComponents=AvailableComponents||{}),createAction("Set Data")),logout=createAction("os-app-bar-panel/logout"),logoutUser$1=createAction("os-app-bar-panel/users/logout"),listenLogout=createAction("logoutListener"),updateActivityStatus$1=createAction("os-app-bar-panel/users/updateActivityStatus"),appSwitcherSetupListener=createAction("aiware/set up app switch listener"),appSwitcherHandleClick=createAction("aiware/handle app switch"),appSwitcherHandleClickAppNatively=createAction("aiware/applications/get handle click app"),nameSpace$4="mailbox",mailboxIdSelector=e=>{return null==(e=e[nameSpace$4])?void 0:e.mailBoxIds},unseenNotificationSelector=e=>{e=null==(e=null==e?void 0:e[nameSpace$4])?void 0:e.mailbox;return null==e?void 0:e.reduce((e,t)=>e+t.unseenCount,0)},panelSelector=e=>e.panels||[],SUBSCRIBER_MAILBOX=nameSpace$4+"/SUBSCRIBER_MAILBOX",SUBSCRIBER_MAILBOX_START=nameSpace$4+"/SUBSCRIBER_MAILBOX_START",UPDATE_MAILBOX_DATA=nameSpace$4+"/UPDATE_MAILBOX_DATA",SUBSCRIBING_MAILBOX=nameSpace$4+"/SUBSCRIBING_MAILBOX",SUBSCRIBER_MAILBOX_SUCCESS=nameSpace$4+"/SUBSCRIBER_MAILBOX_SUCCESS",SUBSCRIBER_MAILBOX_ERROR=nameSpace$4+"/SUBSCRIBER_MAILBOX_ERROR",UPDATE_UNSEEN_COUNT=nameSpace$4+"/UPDATE_UNSEEN_COUNT",MARK_ALL_NOTIFICATIONS_SEEN=nameSpace$4+"/MARK_ALL_NOTIFICATIONS_SEEN",MARK_ALL_NOTIFICATIONS_SEEN_REQUEST=nameSpace$4+"/MARK_ALL_NOTIFICATIONS_SEEN_REQUEST",MARK_ALL_NOTIFICATIONS_SEEN_SUCCESS=nameSpace$4+"/MARK_ALL_NOTIFICATIONS_SEEN_SUCCESS",MARK_ALL_NOTIFICATIONS_SEEN_FAIL=nameSpace$4+"/MARK_ALL_NOTIFICATIONS_SEEN_FAIL",SUBSCRIBE_DEFAULT_MAILBOX_REQUEST=nameSpace$4+"/SUBSCRIBE_DEFAULT_MAILBOX_REQUEST",PUSH_NOTIFICATION=nameSpace$4+"/PUSH_NOTIFICATION",PUSH_DEFAULT_MAILBOX=nameSpace$4+"/PUSH_DEFAULT_MAILBOX",requestSubscriber=createAction(SUBSCRIBER_MAILBOX),subscriberStart=createAction(SUBSCRIBER_MAILBOX_START),setMailboxData=createAction(UPDATE_MAILBOX_DATA,function(e){return{payload:e}}),subscriberSuccess=createAction(SUBSCRIBER_MAILBOX_SUCCESS,function(e){return{payload:e}}),subscriberError=createAction(SUBSCRIBER_MAILBOX_ERROR,function(e){return{payload:e}}),subscribing=createAction(SUBSCRIBING_MAILBOX),pushNotification=createAction(PUSH_NOTIFICATION,function(e){return{payload:e}}),pushDefaultMailBox=createAction(PUSH_DEFAULT_MAILBOX,function(e){return{payload:e}}),updateUnseenCount=createAction(UPDATE_UNSEEN_COUNT,function(e){return{payload:e}}),markAllNotificationsSeenRequest=createAction(MARK_ALL_NOTIFICATIONS_SEEN_REQUEST),markAllNotificationsSeenSuccess=createAction(MARK_ALL_NOTIFICATIONS_SEEN_SUCCESS),markAllNotificationsSeenFail=createAction(MARK_ALL_NOTIFICATIONS_SEEN_FAIL),subscribeDefaultMailboxRequest=createAction(SUBSCRIBE_DEFAULT_MAILBOX_REQUEST),initialState$9={mailBoxIds:[],mailbox:[],status:"idle",failureMessage:""},mailboxReducer=createReducer(initialState$9,e=>{e.addCase(subscriberStart,e=>Object.assign(Object.assign({},e),{status:"loading"})).addCase(subscriberSuccess,e=>Object.assign(Object.assign({},e),{status:"subscribing"})).addCase(setMailboxData,(e,t)=>Object.assign(Object.assign({},e),{mailbox:[...t.payload],mailBoxIds:[...t.payload.map(e=>e.id)]})).addCase(subscriberError,(e,t)=>Object.assign(Object.assign({},e),{status:"failure",failureMessage:t.payload})).addCase(updateUnseenCount,(e,n)=>Object.assign(Object.assign({},e),{mailbox:e.mailbox.map(t=>{var e;return Object.assign(Object.assign({},t),{unseenCount:null==(e=null==(e=n.payload.notificationMailboxes)?void 0:e.find(e=>e.id===t.id))?void 0:e.unseenCount})})})).addCase(markAllNotificationsSeenRequest,e=>Object.assign({},e)).addCase(markAllNotificationsSeenSuccess,e=>Object.assign(Object.assign({},e),{mailbox:e.mailbox.map(e=>Object.assign(Object.assign({},e),{unseenCount:0}))})).addCase(markAllNotificationsSeenFail,e=>Object.assign(Object.assign({},e),{status:"failure"}))});function __awaiter$5(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}const getMailboxApi=(e,t)=>__awaiter$5(void 0,void 0,void 0,function*(){try{return yield baseGraphQLApi({query:`
1083
+ }`;let t;var n=yield gqlIntrospection.queryParser(r,i,e);t=n&&null!=n&&n.query?n.query:e;try{return yield baseGraphQLApi({query:t,graphEndpoint:r,token:i,variables:{limit:1e3,owned:!1}})}catch(e){console.error(e)}}),namespace$8="flowCenterDialog",initialState$a={flowCenterDialog:{open:!1,component:"",props:{}}},flowCenterDialogSlice=createSlice({name:namespace$8,initialState:initialState$a,reducers:{flowCenterDialogAction(e,t){e.flowCenterDialog=t.payload}}}),flowCenterDialogSelector=e=>(null==e?void 0:e[namespace$8])||null,flowCenterDialogAction=flowCenterDialogSlice.actions["flowCenterDialogAction"],flowCenterDialogReducer=flowCenterDialogSlice.reducer;function __awaiter$6(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}const AIWareIntlProvider=e=>{const n=useSelector(preferredLanguageSelector)||"en";var t=e.style;const[r,i]=react.exports.useState({});return react.exports.useEffect(()=>{__awaiter$6(void 0,void 0,void 0,function*(){try{if(!r[n]){const t=yield fetchTranslationJson(n);i(e=>Object.assign(Object.assign({},e),{[n]:t}))}}catch(e){console.log(e),i(e=>Object.assign(Object.assign({},e),{[n]:{}}))}})},[n,r]),jsxRuntime.exports.jsx(IntlProvider,Object.assign({messages:r[n],locale:n,defaultLocale:"en"},{children:jsxRuntime.exports.jsx("div",Object.assign({style:t},{children:e.children}))}))},setData=(!function(e){e.unread="unread",e.read="read",e.actionPending="actionPending",e.actionDone="actionDone",e.seen="seen",e.unseen="unseen",e.starred="starred"}(NotificationFlag=NotificationFlag||{}),!function(e){e[e.ADD=0]="ADD",e[e.STACK=1]="STACK",e[e.SLIDE_MORE=2]="SLIDE_MORE",e[e.OVERLAY_OVER_PARENT=3]="OVERLAY_OVER_PARENT"}(CreateModes=CreateModes||{}),!function(e){e.APP_PANEL="APP_PANEL",e.PERSONAL_PANEL="PERSONAL_PANEL",e.ORGANIZATION_PANEL="ORGANIZATION_PANEL",e.MARKET_PANEL="MARKET_PANEL",e.SETTING_PREFERENCE_PANEL="SETTING_PREFERENCE_PANEL",e.ACTIVITY_PANEL="ACTIVITY_PANEL",e.PERFORMANCE_MONITOR="PERFORMANCE_MONITOR",e.CMS_SHORTCUT="CMS_SHORTCUT",e.FLOW_CENTER="FLOW_CENTER",e.ADMIN_SHORTCUT="ADMIN_CENTER_BROWSE",e.DATA_CENTER="DATA_CENTER",e.RESOURCE_CENTER="RESOURCE_CENTER",e.ENGINE_CENTER="ENGINE_CENTER",e.LIBRARY_CENTER="LIBRARY_CENTER",e.MARKETPLACE_CENTER="MARKETPLACE_CENTER",e.PROCESSING_CENTER_BROWSE="PROCESSING_CENTER_BROWSE",e.PROCESSING_CENTER_DAG_BUILDER="PROCESSING_CENTER_DAG_BUILDER",e.INSTANCE_ADMIN_CENTER_BROWSE="INSTANCE_ADMIN_CENTER_BROWSE"}(TabId=TabId||{}),!function(e){e.active="active",e.suspended="suspended",e.deleted="deleted",e.deactivated="deactivated"}(EUserStatus=EUserStatus||{}),!function(e){e.SAMPLE_APP_BAR="SAMPLE_APP_BAR",e.APP_BAR="APP_BAR",e.FLOW_CENTER="FLOW_CENTER",e.FLOW_WIDGET="FLOW_WIDGET",e.ENGINE_CENTER_BROWSE="ENGINE_CENTER_BROWSE",e.APP_CENTER_BROWSE="APP_CENTER_BROWSE",e.RESET_PASSWORD="RESET_PASSWORD"}(AvailableWidgets=AvailableWidgets||{}),!function(e){e.SIMPLE_PANEL="SIMPLE_PANEL",e.APP_BAR_PANEL_TEMPLATE="APP_BAR_PANEL_TEMPLATE",e.APP_BAR_TAB_PANEL_TEMPLATE="APP_BAR_TAB_PANEL_TEMPLATE",e.TAB_TEMPLATE="TAB_TEMPLATE"}(AvailablePanels=AvailablePanels||{}),!function(e){e.TEST_COMPONENT="TEST_COMPONENT",e.TEST_COMPONENT2="TEST_COMPONENT2",e.TEST_COMPONENT3="TEST_COMPONENT3",e.HELP_PANEL="HELP_PANEL",e.NOTIFICATION_PANEL="NOTIFICATION_PANEL",e.USER_APPLICATION_SETTINGS_PANEL="USER_APPLICATION_SETTINGS_PANEL",e.APP_BAR_PANEL="APP_BAR_PANEL",e.NOTIFICATION_DETAIL="NOTIFICATION_DETAIL",e.EDIT_PROFILE_PICTURE="EDIT_PROFILE_PICTURE",e.NOTIFICATION_SETTING="NOTIFICATION_SETTING",e.NOTIFICATION_UTILITY="NOTIFICATION_UTILITY",e.NOTIFICATION_APPLICATION="NOTIFICATION_APPLICATION",e.SETTING_PREFERENCE="SETTING_PREFERENCE",e.ORGANIZATION_PANEL="ORGANIZATION_PANEL",e.DATA_CENTER_BROWSE="DATA_CENTER_BROWSE",e.DATA_CENTER_FOLDERS_AND_FILES="DATA_CENTER_FOLDERS_AND_FILES",e.DATA_CENTER_SELECT_IMPORT_SOURCE="DATA_CENTER_SELECT_IMPORT_SOURCE",e.DATA_CENTER_IMPORTER="DATA_CENTER_IMPORTER",e.DATA_LABELER="DATA_LABELER",e.ADMIN_CENTER_OPEN_ID="ADMIN_CENTER_OPEN_ID",e.ADMIN_CENTER_BROWSE="ADMIN_CENTER_BROWSE",e.RESOURCE_CENTER_BROWSE="RESOURCE_CENTER_BROWSE",e.DATA_CENTER_PROCESS_AI="DATA_CENTER_PROCESS_AI",e.ENGINE_CENTER_NEW="ENGINE_CENTER_NEW",e.ENGINE_CENTER_FILTER="ENGINE_CENTER_FILTER",e.APP_CENTER_FILTER="APP_CENTER_FILTER",e.ENGINE_CENTER_DETAILS="ENGINE_CENTER_DETAILS",e.ENGINE_CENTER_NEW_BUILD="ENGINE_CENTER_NEW_BUILD",e.ENGINE_CENTER_CUSTOM_FIELDS_FORM="ENGINE_CENTER_CUSTOM_FIELDS_FORM",e.ENGINE_CENTER_INPUT_TYPE_FLYOUT="ENGINE_CENTER_INPUT_TYPE_FLYOUT",e.ENGINE_CENTER_EDIT_RELEASE_NOTES="ENGINE_CENTER_EDIT_RELEASE_NOTES",e.ENGINE_CENTER_SCHEMAS_FORM_PANEL="ENGINE_CENTER_SCHEMAS_FORM_PANEL",e.ENGINE_CENTER_VERSION_HISTORY_PANEL="ENGINE_CENTER_VERSION_HISTORY_PANEL",e.SUPPORTED_FILE_TYPES="SUPPORTED_FILE_TYPES",e.EDIT_FILE_METADATA="EDIT_FILE_METADATA",e.APP_CENTER_NEW="APP_CENTER_NEW",e.APP_CENTER_ADD_FLOW_PANEL="APP_CENTER_ADD_FLOW_PANEL",e.APP_CENTER_ADD_SCHEMA_PANEL="APP_CENTER_ADD_SCHEMA_PANEL",e.APP_CENTER_CONFIG_FIELDS_FORM="APP_CENTER_CONFIG_FIELDS_FORM",e.APP_CENTER_CONTEXT_MENU_EXTENSIONS="APP_CENTER_CONTEXT_MENU_EXTENSIONS",e.APP_CENTER_EVENT_PANEL="APP_CENTER_EVENT_PANEL",e.APP_CENTER_AUTOMATE_PALETTE_INTEGRATION_PANEL="APP_CENTER_AUTOMATE_PALETTE_INTEGRATION_PANEL",e.APP_CENTER_BROWSE="APP_CENTER_BROWSE",e.APP_CENTER_DETAILS="APP_CENTER_DETAILS",e.DATA_CENTER_ENGINE_SELECTION="DATA_CENTER_ENGINE_SELECTION",e.INVITE_USERS_PANEL="INVITE_USERS_PANEL",e.INVITE_REQUESTS_PANEL="INVITE_REQUESTS_PANEL",e.REVIEW_ORG_INVITE_PANEL="REVIEW_ORG_INVITE_PANEL",e.ADD_APPLICATIONS="ADD_APPLICATIONS",e.ADMIN_CENTER_NEW_GROUP_PANEL="ADMIN_CENTER_NEW_GROUP_PANEL",e.PERMISSIONS_PANEL="PERMISSIONS_PANEL",e.NEW_PERMISSION_SET_PANEL="NEW_PERMISSION_SET_PANEL",e.DATA_CENTER_MDP_IFRAME_PANEL="DATA_CENTER_MDP_IFRAME_PANEL",e.DATA_CENTER_INGESTION_CREATION_PANEL="DATA_CENTER_INGESTION_CREATION_PANEL",e.DATA_CENTER_SOURCE_CREATION_PANEL="DATA_CENTER_SOURCE_CREATION_PANEL",e.DATA_CENTER_FILE_INFO_PANEL="DATA_CENTER_FILE_INFO_PANEL",e.ADMIN_CENTER_GROUP_DETAILS_PANEL="ADMIN_CENTER_GROUP_DETAILS_PANEL",e.ADMIN_CENTER_ADD_MEMBER_PANEL="ADMIN_CENTER_ADD_MEMBER_PANEL",e.GROUP_INFO_PANEL="GROUP_INFO_PANEL",e.APPLICATION_DETAILS_PANEL="APPLICATION_DETAILS_PANEL",e.PERMISSION_SET_DETAILS_PANEL="PERMISSION_SET_DETAILS_PANEL",e.PROCESSING_CENTER_SOURCES="PROCESSING_CENTER_SOURCES",e.ADD_APPLICATION_USERS_PANEL="ADD_APPLICATION_USERS_PANEL",e.PROCESSING_CENTER_BROWSE="PROCESSING_CENTER_BROWSE",e.PROCESSING_CENTER_JOBS="PROCESSING_CENTER_JOBS",e.JOBS_TABLE_SETTINGS_PANEL="JOBS_TABLE_SETTINGS_PANEL",e.PROCESSING_CENTER_ERROR_DETAIL="PROCESSING_CENTER_ERROR_DETAIL",e.VERSION_PANEL="VERSION_PANEL",e.PROCESSING_CENTER_DAG_BUILDER="PROCESSING_CENTER_DAG_BUILDER",e.PROCESSING_CENTER_INGESTION="PROCESSING_CENTER_INGESTION",e.PROCESSING_CENTER_ADVANCED_SETTINGS="PROCESSING_CENTER_ADVANCED_SETTINGS",e.PROCESSING_CENTER_AFFILIATE_PANEL="PROCESSING_CENTER_AFFILIATE_PANEL",e.JOBS_DETAILS_PANEL="JOBS_DETAILS_PANEL",e.TASKS_TABLE_SETTINGS_PANEL="TASKS_TABLE_SETTINGS_PANEL",e.PACKAGE_DETAILS_PANEL="PACKAGE_DETAILS_PANEL",e.PACKAGE_MANAGER_PANEL="PACKAGE_MANAGER_PANEL",e.INSTANCE_ADMIN_CENTER_BROWSE="INSTANCE_ADMIN_CENTER_BROWSE",e.USER_DETAILS_PANEL="USER_DETAILS_PANEL",e.MANAGE_GRANTS="MANAGE_GRANTS",e.SCHEMA_DETAILS_PANEL="SCHEMA_DETAILS_PANEL"}(AvailableComponents=AvailableComponents||{}),createAction("Set Data")),logout=createAction("os-app-bar-panel/logout"),logoutUser$1=createAction("os-app-bar-panel/users/logout"),listenLogout=createAction("logoutListener"),updateActivityStatus$1=createAction("os-app-bar-panel/users/updateActivityStatus"),appSwitcherSetupListener=createAction("aiware/set up app switch listener"),appSwitcherHandleClick=createAction("aiware/handle app switch"),appSwitcherHandleClickAppNatively=createAction("aiware/applications/get handle click app"),nameSpace$4="mailbox",mailboxIdSelector=e=>{return null==(e=e[nameSpace$4])?void 0:e.mailBoxIds},unseenNotificationSelector=e=>{e=null==(e=null==e?void 0:e[nameSpace$4])?void 0:e.mailbox;return null==e?void 0:e.reduce((e,t)=>e+t.unseenCount,0)},panelSelector=e=>e.panels||[],SUBSCRIBER_MAILBOX=nameSpace$4+"/SUBSCRIBER_MAILBOX",SUBSCRIBER_MAILBOX_START=nameSpace$4+"/SUBSCRIBER_MAILBOX_START",UPDATE_MAILBOX_DATA=nameSpace$4+"/UPDATE_MAILBOX_DATA",SUBSCRIBING_MAILBOX=nameSpace$4+"/SUBSCRIBING_MAILBOX",SUBSCRIBER_MAILBOX_SUCCESS=nameSpace$4+"/SUBSCRIBER_MAILBOX_SUCCESS",SUBSCRIBER_MAILBOX_ERROR=nameSpace$4+"/SUBSCRIBER_MAILBOX_ERROR",UPDATE_UNSEEN_COUNT=nameSpace$4+"/UPDATE_UNSEEN_COUNT",MARK_ALL_NOTIFICATIONS_SEEN=nameSpace$4+"/MARK_ALL_NOTIFICATIONS_SEEN",MARK_ALL_NOTIFICATIONS_SEEN_REQUEST=nameSpace$4+"/MARK_ALL_NOTIFICATIONS_SEEN_REQUEST",MARK_ALL_NOTIFICATIONS_SEEN_SUCCESS=nameSpace$4+"/MARK_ALL_NOTIFICATIONS_SEEN_SUCCESS",MARK_ALL_NOTIFICATIONS_SEEN_FAIL=nameSpace$4+"/MARK_ALL_NOTIFICATIONS_SEEN_FAIL",SUBSCRIBE_DEFAULT_MAILBOX_REQUEST=nameSpace$4+"/SUBSCRIBE_DEFAULT_MAILBOX_REQUEST",PUSH_NOTIFICATION=nameSpace$4+"/PUSH_NOTIFICATION",PUSH_DEFAULT_MAILBOX=nameSpace$4+"/PUSH_DEFAULT_MAILBOX",requestSubscriber=createAction(SUBSCRIBER_MAILBOX),subscriberStart=createAction(SUBSCRIBER_MAILBOX_START),setMailboxData=createAction(UPDATE_MAILBOX_DATA,function(e){return{payload:e}}),subscriberSuccess=createAction(SUBSCRIBER_MAILBOX_SUCCESS,function(e){return{payload:e}}),subscriberError=createAction(SUBSCRIBER_MAILBOX_ERROR,function(e){return{payload:e}}),subscribing=createAction(SUBSCRIBING_MAILBOX),pushNotification=createAction(PUSH_NOTIFICATION,function(e){return{payload:e}}),pushDefaultMailBox=createAction(PUSH_DEFAULT_MAILBOX,function(e){return{payload:e}}),updateUnseenCount=createAction(UPDATE_UNSEEN_COUNT,function(e){return{payload:e}}),markAllNotificationsSeenRequest=createAction(MARK_ALL_NOTIFICATIONS_SEEN_REQUEST),markAllNotificationsSeenSuccess=createAction(MARK_ALL_NOTIFICATIONS_SEEN_SUCCESS),markAllNotificationsSeenFail=createAction(MARK_ALL_NOTIFICATIONS_SEEN_FAIL),subscribeDefaultMailboxRequest=createAction(SUBSCRIBE_DEFAULT_MAILBOX_REQUEST),initialState$9={mailBoxIds:[],mailbox:[],status:"idle",failureMessage:""},mailboxReducer=createReducer(initialState$9,e=>{e.addCase(subscriberStart,e=>Object.assign(Object.assign({},e),{status:"loading"})).addCase(subscriberSuccess,e=>Object.assign(Object.assign({},e),{status:"subscribing"})).addCase(setMailboxData,(e,t)=>Object.assign(Object.assign({},e),{mailbox:[...t.payload],mailBoxIds:[...t.payload.map(e=>e.id)]})).addCase(subscriberError,(e,t)=>Object.assign(Object.assign({},e),{status:"failure",failureMessage:t.payload})).addCase(updateUnseenCount,(e,n)=>Object.assign(Object.assign({},e),{mailbox:e.mailbox.map(t=>{var e;return Object.assign(Object.assign({},t),{unseenCount:null==(e=null==(e=n.payload.notificationMailboxes)?void 0:e.find(e=>e.id===t.id))?void 0:e.unseenCount})})})).addCase(markAllNotificationsSeenRequest,e=>Object.assign({},e)).addCase(markAllNotificationsSeenSuccess,e=>Object.assign(Object.assign({},e),{mailbox:e.mailbox.map(e=>Object.assign(Object.assign({},e),{unseenCount:0}))})).addCase(markAllNotificationsSeenFail,e=>Object.assign(Object.assign({},e),{status:"failure"}))});function __awaiter$5(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}const getMailboxApi=(e,t)=>__awaiter$5(void 0,void 0,void 0,function*(){try{return yield baseGraphQLApi({query:`
1084
1084
  {
1085
1085
  notificationMailboxes {
1086
1086
  id
@@ -1152,7 +1152,7 @@ createScheduledJob(input:{
1152
1152
  title
1153
1153
  contentType
1154
1154
  }
1155
- }`,o),t=createApolloWs(s,a,o);const n=createApolloClient(t),i=n.subscribe({query:e}).subscribe({next(e){var t,n;"json"!==(null==(t=null==(t=null==e?void 0:e.data)?void 0:t.notificationPosted)?void 0:t.contentType)&&({title:t,body:n}=e.data.notificationPosted,t===MARK_ALL_NOTIFICATIONS_SEEN&&n===o?r(markAllNotificationsSeenSuccess()):r(pushDefaultMailBox(e.data.notificationPosted)))}});return()=>{i.unsubscribe(),n.stop()}})}function*websocketSagas(){subscriptionTask&&(yield cancel(subscriptionTask)),subscriptionTask=yield fork(function*(){for(var e=yield call$f(websocketInitChannel);;)yield put(yield take(e))})}function*defaultMailboxSagas(){mailboxSubscription&&(yield cancel(mailboxSubscription)),mailboxSubscription=yield fork(function*(){for(var e=yield call$f(defaultMailboxChannel);;)yield put(yield take(e))})}function*updateMailboxSetting(){yield websocketSagas()}function*updateUnseenCountSaga(e){var t,n=yield select(graphEndpointSelector),r=yield select(sessionTokenSelector),i=(yield select(panelSelector)).find(e=>e.panelId===notificationPanelId);try{i&&(yield delay$1(1e3),yield markAllNotificationsSeenSaga()),yield delay$1(2e3);var o=yield call$f(getUnseenCountApi,n,r),a=e.payload["mailboxId"];yield put(updateUnseenCount({notificationMailboxes:null==(t=null==o?void 0:o.data)?void 0:t.notificationMailboxes,mailboxId:a}))}catch(e){yield put(markAllNotificationsSeenFail())}}function*markAllNotificationsSeenSaga(){var e=yield select(mailboxIdSelector),t=(yield select(userSelector$2))["userId"],n=yield select(graphEndpointSelector),r=yield select(sessionTokenSelector);if(0<(null==e?void 0:e.length))try{(yield call$f(handleMarkAllNotificationsSeen,e,n,r)).error?yield put(markAllNotificationsSeenFail()):(yield put(markAllNotificationsSeenSuccess()),yield call$f(pushDefaultMailboxNotification,t,MARK_ALL_NOTIFICATIONS_SEEN,n,r))}catch(e){yield put(markAllNotificationsSeenFail())}}function*mailboxSaga(){yield all([takeLatest$1(requestSubscriber.type,subscriberSaga),takeLatest$1(setMailboxData.type,websocketSagas),takeLatest$1("UPDATE_MAILBOX_SETTING",updateMailboxSetting),takeEvery$1(pushNotification.type,updateUnseenCountSaga),takeEvery$1(subscribeDefaultMailboxRequest.type,defaultMailboxSagas),takeLatest$1(markAllNotificationsSeenRequest.type,markAllNotificationsSeenSaga)])}function getNotificationModule$1(){return{id:"mailbox-subscription",reducerMap:{[nameSpace$4]:mailboxReducer},sagas:[mailboxSaga],initialActions:[requestSubscriber(),subscribeDefaultMailboxRequest()]}}var mui={},tssReact={},cssAndCx={},classnames$1={},assert$1={};function assert(e,t){if(!e)throw new Error(t)}Object.defineProperty(assert$1,"__esModule",{value:!0}),assert$1.assert=void 0,assert$1.assert=assert;var typeGuard$1={};function typeGuard(e,t){return t}function murmur2(e){for(var t,n=0,r=0,i=e.length;4<=i;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}Object.defineProperty(typeGuard$1,"__esModule",{value:!0}),typeGuard$1.typeGuard=void 0,typeGuard$1.typeGuard=typeGuard,function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.classnames=void 0;const s=assert$1,l=typeGuard$1;a.classnames=e=>{var t=e.length;let n=0,r="";for(;n<t;n++){var i=e[n];if(null!=i){let e;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))e=(0,a.classnames)(i);else{(0,s.assert)(!(0,l.typeGuard)(i,!1)),e="";for(const o in i)i[o]&&o&&(e&&(e+=" "),e+=o)}break;default:e=i}e&&(r&&(r+=" "),r+=e)}}return r}}(classnames$1);var unitlessKeys={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(e){return 45===e.charCodeAt(1)},isProcessableValue=function(e){return null!=e&&"boolean"!=typeof e},processStyleName=memoize$4(function(e){return isCustomProperty(e)?e:e.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(animationRegex,function(e,t,n){return cursor={name:t,styles:n,next:cursor},t})}return 1===unitlessKeys[e]||isCustomProperty(e)||"number"!=typeof t||0===t?t:t+"px"},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return cursor={name:n.name,styles:n.styles,next:cursor},n.name;if(void 0===n.styles)return createStringFromObject(e,t,n);var r=n.next;if(void 0!==r)for(;void 0!==r;)cursor={name:r.name,styles:r.styles,next:cursor},r=r.next;return n.styles+";";case"function":var i,o;if(void 0!==e)return i=cursor,o=n(e),cursor=i,handleInterpolation(e,t,o)}var a;return null!=t&&void 0!==(a=t[n])?a:n}function createStringFromObject(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=handleInterpolation(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":isProcessableValue(a)&&(r+=processStyleName(o)+":"+processStyleValue(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=handleInterpolation(e,t,a);switch(o){case"animation":case"animationName":r+=processStyleName(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)isProcessableValue(a[l])&&(r+=processStyleName(o)+":"+processStyleValue(o,a[l])+";")}return r}var cursor,labelPattern=/label:\s*([^\s;\n{]+)\s*(;|$)/g,serializeStyles=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="",o=(cursor=void 0,e[0]);null==o||void 0===o.raw?(r=!1,i+=handleInterpolation(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=handleInterpolation(n,t,e[a]),r&&(i+=o[a]);labelPattern.lastIndex=0;for(var s,l="";null!==(s=labelPattern.exec(i));)l+="-"+s[1];return{name:murmur2(i)+l,styles:i,next:cursor}},emotionSerialize_browser_esm=Object.freeze({__proto__:null,serializeStyles:serializeStyles}),isBrowser=!0;function getRegisteredStyles(t,n,e){var r="";return e.split(" ").forEach(function(e){void 0!==t[e]?n.push(t[e]+";"):r+=e+" "}),r}var registerStyles=function(e,t,n){var r=e.key+"-"+t.name;!1!==n&&!1!==isBrowser||void 0!==e.registered[r]||(e.registered[r]=t.styles)},insertStyles=function(e,t,n){registerStyles(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name])for(var i=t;e.insert(t===i?"."+r:"",i,e.sheet,!0),void 0!==(i=i.next););},emotionUtils_browser_esm=Object.freeze({__proto__:null,getRegisteredStyles:getRegisteredStyles,insertStyles:insertStyles,registerStyles:registerStyles}),useGuaranteedMemo$1={};Object.defineProperty(useGuaranteedMemo$1,"__esModule",{value:!0}),useGuaranteedMemo$1.useGuaranteedMemo=void 0;const react_1$4=react.exports;function useGuaranteedMemo(e,n){var t=(0,react_1$4.useRef)();return(!t.current||n.length!==t.current.prevDeps.length||0<=t.current.prevDeps.map((e,t)=>e===n[t]).indexOf(!1))&&(t.current={v:e(),prevDeps:[...n]}),t.current.v}useGuaranteedMemo$1.useGuaranteedMemo=useGuaranteedMemo;var cache={};function sheetForTag(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function createStyleElement(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var StyleSheet=function(){function e(e){var n=this;this._insertTag=function(e){var t=0===n.tags.length?n.insertionPoint?n.insertionPoint.nextSibling:n.prepend?n.container.firstChild:n.before:n.tags[n.tags.length-1].nextSibling;n.container.insertBefore(e,t),n.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(createStyleElement(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=sheetForTag(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),MS="-ms-",MOZ="-moz-",WEBKIT="-webkit-",COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",abs=Math.abs,from=String.fromCharCode,assign=Object.assign;function hash(e,t){return 45^charat(e,0)?(((t<<2^charat(e,0))<<2^charat(e,1))<<2^charat(e,2))<<2^charat(e,3):0}function trim(e){return e.trim()}function match$3(e,t){return(e=t.exec(e))&&e[0]}function replace(e,t,n){return e.replace(t,n)}function indexof(e,t){return e.indexOf(t)}function charat(e,t){return 0|e.charCodeAt(t)}function substr(e,t,n){return e.slice(t,n)}function strlen(e){return e.length}function sizeof(e){return e.length}function append(e,t){return t.push(e),e}function combine$1(e,t){return e.map(t).join("")}var line=1,column=1,length=0,position$1=0,character=0,characters="";function node(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:line,column:column,length:a,return:""}}function copy(e,t){return assign(node("",null,null,"",null,null,0),e,{length:-e.length},t)}function char(){return character}function prev(){return character=0<position$1?charat(characters,--position$1):0,column--,10===character&&(column=1,line--),character}function next(){return character=position$1<length?charat(characters,position$1++):0,column++,10===character&&(column=1,line++),character}function peek(){return charat(characters,position$1)}function caret(){return position$1}function slice$2(e,t){return substr(characters,e,t)}function token(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(e){return line=column=1,length=strlen(characters=e),position$1=0,[]}function dealloc(e){return characters="",e}function delimit(e){return trim(slice$2(position$1-1,delimiter(91===e?e+2:40===e?e+1:e)))}function whitespace(e){for(;(character=peek())&&character<33;)next();return 2<token(e)||3<token(character)?"":" "}function escaping(e,t){for(;--t&&next()&&!(character<48||102<character||57<character&&character<65||70<character&&character<97););return slice$2(e,caret()+(t<6&&32==peek()&&32==next()))}function delimiter(e){for(;next();)switch(character){case e:return position$1;case 34:case 39:34!==e&&39!==e&&delimiter(character);break;case 40:41===e&&delimiter(e);break;case 92:next()}return position$1}function commenter(e,t){for(;next()&&e+character!==57&&(e+character!==84||47!==peek()););return"/*"+slice$2(t,position$1-1)+"*"+from(47===e?e:next())}function identifier(e){for(;!token(peek());)next();return slice$2(e,position$1)}function compile(e){return dealloc(parse$3("",null,null,null,[""],e=alloc(e),0,[0],e))}function parse$3(e,t,n,r,i,o,a,s,l){for(var c,u,d,p=0,f=0,h=a,m=0,g=0,v=1,y=1,x=1,b=0,C="",$=i,S=C;y;)switch(c=b,b=next()){case 40:if(108!=c&&58==charat(S,h-1)){-1!=indexof(S+=replace(delimit(b),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:S+=delimit(b);break;case 9:case 10:case 13:case 32:S+=whitespace(c);break;case 92:S+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),t,n),l);break;default:S+="/"}break;case 123*v:s[p++]=strlen(S)*x;case 125*v:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+f:0<g&&strlen(S)-h&&append(32<g?declaration(S+";",r,n,h-1):declaration(replace(S," ","")+";",r,n,h-2),l);break;case 59:S+=";";default:if(append(d=ruleset(S,t,n,p,f,i,s,C,$=[],u=[],h),o),123===b)if(0===f)parse$3(S,t,d,d,$,o,h,s,u);else switch(99===m&&110===charat(S,3)?100:m){case 100:case 109:case 115:parse$3(e,d,d,r&&append(ruleset(e,d,d,0,0,i,s,C,i,$=[],h),u),i,u,h,s,r?$:u);break;default:parse$3(S,d,d,d,[""],u,0,s,u)}}p=f=g=0,v=x=1,C=S="",h=a;break;case 58:h=1+strlen(S),g=c;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==prev())continue;switch(S+=from(b),b*v){case 38:x=0<f?1:(S+="\f",-1);break;case 44:s[p++]=(strlen(S)-1)*x,x=1;break;case 64:45===peek()&&(S+=delimit(next())),m=peek(),f=h=strlen(C=S+=identifier(caret())),b++;break;case 45:45===c&&2==strlen(S)&&(v=0)}}return o}function ruleset(e,t,n,r,i,o,a,s,l,c,u){for(var d,p=i-1,f=0===i?o:[""],h=sizeof(f),m=0,g=0;m<r;++m)for(var v,y=0,x=substr(e,p+1,p=abs(d=a[m]));y<h;++y)(v=trim(0<d?f[y]+" "+x:replace(x,/&\f/g,f[y])))&&(l[g++]=v);return node(e,t,n,0===i?RULESET:s,l,c,u)}function comment(e,t,n){return node(e,t,n,COMMENT,from(char()),substr(e,2,-2),0)}function declaration(e,t,n,r){return node(e,t,n,DECLARATION,substr(e,0,r),substr(e,r+1,-1),r)}function serialize(e,t){for(var n="",r=sizeof(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function stringify$2(e,t,n,r){switch(e.type){case IMPORT:case DECLARATION:return e.return=e.return||e.value;case COMMENT:return"";case KEYFRAMES:return e.return=e.value+"{"+serialize(e.children,r)+"}";case RULESET:e.value=e.props.join(",")}return strlen(n=serialize(e.children,r))?e.return=e.value+"{"+n+"}":""}function middleware(a){var s=sizeof(a);return function(e,t,n,r){for(var i="",o=0;o<s;o++)i+=a[o](e,t,n,r)||"";return i}}function rulesheet(t){return function(e){e.root||(e=e.return)&&t(e)}}var identifierWithPointTracking=function(e,t,n){for(var r,i=0;r=i,i=peek(),38===r&&12===i&&(t[n]=1),!token(i);)next();return slice$2(e,position$1)},toRules=function(e,t){var n=-1,r=44;do{switch(token(r)){case 0:38===r&&12===peek()&&(t[n]=1),e[n]+=identifierWithPointTracking(position$1-1,t,n);break;case 2:e[n]+=delimit(r);break;case 4:if(44===r){e[++n]=58===peek()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=from(r)}}while(r=next());return e},getRules=function(e,t){return dealloc(toRules(alloc(e),t))},fixedElements=new WeakMap,compat=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fixedElements.get(n))&&!r){fixedElements.set(e,!0);for(var i=[],o=getRules(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},removeLabel=function(e){var t;"decl"===e.type&&108===(t=e.value).charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")};function prefix$3(e,t){switch(hash(e,t)){case 5103:return WEBKIT+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+e+MOZ+e+MS+e+e;case 6828:case 4268:return WEBKIT+e+MS+e+e;case 6165:return WEBKIT+e+MS+"flex-"+e+e;case 5187:return WEBKIT+e+replace(e,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+e;case 5443:return WEBKIT+e+MS+"flex-item-"+replace(e,/flex-|-self/,"")+e;case 4675:return WEBKIT+e+MS+"flex-line-pack"+replace(e,/align-content|flex-|-self/,"")+e;case 5548:return WEBKIT+e+MS+replace(e,"shrink","negative")+e;case 5292:return WEBKIT+e+MS+replace(e,"basis","preferred-size")+e;case 6060:return WEBKIT+"box-"+replace(e,"-grow","")+WEBKIT+e+MS+replace(e,"grow","positive")+e;case 4554:return WEBKIT+replace(e,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+e;case 6187:return replace(replace(replace(e,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),e,"")+e;case 5495:case 3959:return replace(e,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace(replace(e,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+e+e;case 4095:case 3583:case 4068:case 2532:return replace(e,/(.+)-inline(.+)/,WEBKIT+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(6<strlen(e)-1-t)switch(charat(e,t+1)){case 109:if(45!==charat(e,t+4))break;case 102:return replace(e,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(108==charat(e,t+3)?"$3":"$2-$3"))+e;case 115:return~indexof(e,"stretch")?prefix$3(replace(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==charat(e,t+1))break;case 6444:switch(charat(e,strlen(e)-3-(~indexof(e,"!important")&&10))){case 107:return replace(e,":",":"+WEBKIT)+e;case 101:return replace(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(45===charat(e,14)?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+e}break;case 5936:switch(charat(e,t+11)){case 114:return WEBKIT+e+MS+replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return WEBKIT+e+MS+replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return WEBKIT+e+MS+replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return WEBKIT+e+MS+e+e}return e}var prefixer=function(t,e,n,r){if(-1<t.length&&!t.return)switch(t.type){case DECLARATION:t.return=prefix$3(t.value,t.length);break;case KEYFRAMES:return serialize([copy(t,{value:replace(t.value,"@","@"+WEBKIT)})],r);case RULESET:if(t.length)return combine$1(t.props,function(e){switch(match$3(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(t,{props:[replace(e,/:(read-\w+)/,":"+MOZ+"$1")]})],r);case"::placeholder":return serialize([copy(t,{props:[replace(e,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(t,{props:[replace(e,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(t,{props:[replace(e,/:(plac\w+)/,MS+"input-$1")]})],r)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(e){var i,t=e.key,n=("css"===t&&(n=document.querySelectorAll("style[data-emotion]:not([data-s])"),Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})),e.stylisPlugins||defaultStylisPlugins),r={},o=[],a=e.container||document.head,s=(Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)r[t[n]]=!0;o.push(e)}),[compat,removeLabel]),l=[stringify$2,rulesheet(function(e){i.insert(e)})],c=middleware(s.concat(n,l)),s=function(e,t,n,r){i=n,serialize(compile(e?e+"{"+t.styles+"}":t.styles),c),r&&(u.inserted[t.name]=!0)},u={key:t,sheet:new StyleSheet({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:r,registered:{},insert:s};return u.sheet.hydrate(o),u},__importDefault=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cache,"__esModule",{value:!0}),cache.TssCacheProvider=cache.useTssEmotionCache=cache.getTssDefaultEmotionCache=cache.getDoExistsTssDefaultEmotionCacheMemoizedValue=void 0;const jsx_runtime_1$2=jsxRuntime.exports,react_1$3=react.exports,cache_1$1=__importDefault(createCache),{getDoExistsTssDefaultEmotionCacheMemoizedValue,getTssDefaultEmotionCache,reactContext}=(()=>{var e,t,n=react_1$3.createContext;let r=n["__tss-react_context"];return void 0===r&&({getTssDefaultEmotionCache:e,getDoExistsTssDefaultEmotionCacheMemoizedValue:t}=(()=>{let t=void 0;return{getTssDefaultEmotionCache:function(e){var{doReset:e=!1}=null!=e?e:{};return t=void 0===(t=e?void 0:t)?(0,cache_1$1.default)({key:"tss"}):t},getDoExistsTssDefaultEmotionCacheMemoizedValue:()=>void 0!==t}})(),r={getTssDefaultEmotionCache:e,getDoExistsTssDefaultEmotionCacheMemoizedValue:t,reactContext:(0,react_1$3.createContext)(void 0)},Object.defineProperty(n,"__tss-react_context",{configurable:!1,enumerable:!1,writable:!1,value:r})),r})();function useTssEmotionCache(){var e=(0,react_1$3.useContext)(reactContext);return null!=e?e:getTssDefaultEmotionCache()}function TssCacheProvider(e){var{children:e,value:t}=e;return(0,jsx_runtime_1$2.jsx)(reactContext.Provider,Object.assign({value:t},{children:e}))}cache.getDoExistsTssDefaultEmotionCacheMemoizedValue=getDoExistsTssDefaultEmotionCacheMemoizedValue,cache.getTssDefaultEmotionCache=getTssDefaultEmotionCache,cache.useTssEmotionCache=useTssEmotionCache,cache.TssCacheProvider=TssCacheProvider;var types={};function matchCSSObject(e){return!(!(e instanceof Object)||"styles"in e||"length"in e||"__emotion_styles"in e)}Object.defineProperty(types,"__esModule",{value:!0}),types.matchCSSObject=void 0,types.matchCSSObject=matchCSSObject,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.useCssAndCx=r.createCssAndCx=void 0;const a=classnames$1,n=emotionSerialize_browser_esm,s=emotionUtils_browser_esm,i=useGuaranteedMemo$1,o=cache,l=types;r.createCssAndCx=function(e){const i=e["cache"],o=(...e)=>{var t=(0,n.serializeStyles)(e,i.registered),t=((0,s.insertStyles)(i,t,!1),i.key+"-"+t.name),e=e[0];return(0,l.matchCSSObject)(e)&&c.saveClassNameCSSObjectMapping(i,t,e),t};return{css:o,cx:(...e)=>{var t,n,r,e=(0,a.classnames)(e),e=c.fixClassName(i,e,o);return t=i.registered,n=o,e=e,r=[],t=(0,s.getRegisteredStyles)(t,r,e),r.length<2?e:t+n(r)}}},r.useCssAndCx=function(){const e=(0,o.useTssEmotionCache)();var{css:t,cx:n}=(0,i.useGuaranteedMemo)(()=>(0,r.createCssAndCx)({cache:e}),[e]);return{css:t,cx:n}};const c=(()=>{const i=new WeakMap;return{saveClassNameCSSObjectMapping:(e,t,n)=>{let r=i.get(e);void 0===r&&(r=new Map,i.set(e,r)),r.set(t,n)},fixClassName:(e,t,n)=>{const r=i.get(e);return(0,a.classnames)(function(e){let i=!1;return e.map(([e,t])=>{if(void 0===t)return e;let n;if(i)n={"&&":t};else{n=e;for(const r in t)if(r.startsWith("@media")){i=!0;break}}return n})}(t.split(" ").map(e=>[e,null===r||void 0===r?void 0:r.get(e)])).map(e=>"string"==typeof e?e:n(e)))}}})()}(cssAndCx);var mergeClasses$1={},objectKeys$1={};function objectKeys(e){return Object.keys(e)}Object.defineProperty(objectKeys$1,"__esModule",{value:!0}),objectKeys$1.objectKeys=void 0,objectKeys$1.objectKeys=objectKeys;var getDependencyArrayRef$1={};function getDependencyArrayRef(e){if(!(e instanceof Object)||"function"==typeof e)return e;var t=[];for(const i in e){var n=e[i],r=typeof n;if("string"!=r&&("number"!=r||isNaN(n))&&"boolean"!=r&&null!=n)return e;t.push(i+`:${r}_`+n)}return"xSqLiJdLMd9s"+t.join("|")}Object.defineProperty(getDependencyArrayRef$1,"__esModule",{value:!0}),getDependencyArrayRef$1.getDependencyArrayRef=void 0,getDependencyArrayRef$1.getDependencyArrayRef=getDependencyArrayRef,Object.defineProperty(mergeClasses$1,"__esModule",{value:!0}),mergeClasses$1.useMergedClasses=mergeClasses$1.mergeClasses=void 0;const objectKeys_1$1=objectKeys$1,getDependencyArrayRef_1$1=getDependencyArrayRef$1,cssAndCx_1$1=cssAndCx,react_1$2=react.exports;function mergeClasses(n,r,t){if(!(r instanceof Object))return n;const i={};return(0,objectKeys_1$1.objectKeys)(n).forEach(e=>i[e]=t(n[e],r[e])),(0,objectKeys_1$1.objectKeys)(r).forEach(e=>{var t;e in n||"string"==typeof(t=r[e])&&(i[e]=t)}),i}function useMergedClasses(e,t){const n=(0,cssAndCx_1$1.useCssAndCx)()["cx"];return(0,react_1$2.useMemo)(()=>mergeClasses(e,t,n),[e,(0,getDependencyArrayRef_1$1.getDependencyArrayRef)(t),n])}mergeClasses$1.mergeClasses=mergeClasses,mergeClasses$1.useMergedClasses=useMergedClasses;var makeStyles$1={},Object_fromEntries={};Object.defineProperty(Object_fromEntries,"__esModule",{value:!0}),Object_fromEntries.objectFromEntries=void 0,Object_fromEntries.objectFromEntries=Object.fromEntries||(n=>{if(!n||!n[Symbol.iterator])throw new Error("Object.fromEntries() requires a single iterable argument");const r={};return Object.keys(n).forEach(e=>{var[e,t]=n[e];r[e]=t}),r}),Object.defineProperty(makeStyles$1,"__esModule",{value:!0}),makeStyles$1.createMakeStyles=void 0;const react_1$1=react.exports,Object_fromEntries_1=Object_fromEntries,objectKeys_1=objectKeys$1,cssAndCx_1=cssAndCx,getDependencyArrayRef_1=getDependencyArrayRef$1,typeGuard_1=typeGuard$1,cache_1=cache,assert_1=assert$1,mergeClasses_1=mergeClasses$1,getCounter=(()=>{let e=0;return()=>e++})();function createMakeStyles(e){const h=e["useTheme"];return{makeStyles:function(e){const f="object"!=typeof(e=(null!=e?e:{}).name)?e:Object.keys(e)[0];return function(e){const d="function"==typeof e?e:()=>e,p=getCounter();return function(i,o){var e,t;const a=h(),{css:s,cx:n}=(0,cssAndCx_1.useCssAndCx)(),l=(0,cache_1.useTssEmotionCache)();let c=(0,react_1$1.useMemo)(()=>{const n={};var e="undefined"!=typeof Proxy&&new Proxy({},{get:(e,t)=>("symbol"==typeof t&&(0,assert_1.assert)(!1),n[t]=`${l.key}-${p}${void 0!==f?"-"+f:""}-${t}-ref`)});const r=d(a,i,e||{}),t=(0,Object_fromEntries_1.objectFromEntries)((0,objectKeys_1.objectKeys)(r).map(e=>{var t=r[e];return t.label||(t.label=(void 0!==f?f+"-":"")+e),[e,""+s(t)+((0,typeGuard_1.typeGuard)(e,e in n)?" "+n[e]:"")]}));return(0,objectKeys_1.objectKeys)(n).forEach(e=>{e in t||(t[e]=n[e])}),t},[l,s,n,a,(0,getDependencyArrayRef_1.getDependencyArrayRef)(i)]);const r=null==o?void 0:o.props.classes;c=(0,react_1$1.useMemo)(()=>(0,mergeClasses_1.mergeClasses)(c,r,n),[c,(0,getDependencyArrayRef_1.getDependencyArrayRef)(r),n]);{let r=void 0;try{r=void 0===f||null==(t=null==(e=a.components)?void 0:e[f])?void 0:t.styleOverrides}catch(e){}const u=(0,react_1$1.useMemo)(()=>{if(r){var e={};for(const n in r){var t=r[n];t instanceof Object&&(e[n]=s("function"==typeof t?t(Object.assign({theme:a,ownerState:null==o?void 0:o.ownerState},null==o?void 0:o.props)):t))}return e}},[void 0===r?void 0:JSON.stringify(r),(0,getDependencyArrayRef_1.getDependencyArrayRef)(null==o?void 0:o.props),(0,getDependencyArrayRef_1.getDependencyArrayRef)(null==o?void 0:o.ownerState),s]);c=(0,react_1$1.useMemo)(()=>(0,mergeClasses_1.mergeClasses)(c,u,n),[c,u,n])}return{classes:c,theme:a,css:s,cx:n}}}},useStyles:function(){var e=h(),{css:t,cx:n}=(0,cssAndCx_1.useCssAndCx)();return{theme:e,css:t,cx:n}}}}makeStyles$1.createMakeStyles=createMakeStyles;var withStyles$1={},capitalize$1={};function capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}Object.defineProperty(capitalize$1,"__esModule",{value:!0}),capitalize$1.capitalize=void 0,capitalize$1.capitalize=capitalize;var __rest$3=commonjsGlobal$1&&commonjsGlobal$1.__rest||function(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};Object.defineProperty(withStyles$1,"__esModule",{value:!0}),withStyles$1.createWithStyles=void 0;const jsx_runtime_1$1=jsxRuntime.exports,react_1=react.exports,makeStyles_1=makeStyles$1,capitalize_1=capitalize$1;function createWithStyles(e){e=e.useTheme;const n=(0,makeStyles_1.createMakeStyles)({useTheme:e})["makeStyles"];return{withStyles:function(o,r,e){const a="string"==typeof o?(()=>{const n=o;function e(e){var t=e["children"],e=__rest$3(e,["children"]);return(0,react_1.createElement)(n,e,t)}return Object.defineProperty(e,"name",{value:(0,capitalize_1.capitalize)(n)}),e})():o;var t="string"==typeof(t=a.name)?t:void 0;const s=n(void 0!==(null==e?void 0:e.name)?e:{name:t})("function"==typeof r?(e,t,n)=>incorporateMediaQueries(r(e,t,n)):incorporateMediaQueries(r));return e=(0,react_1.forwardRef)(function(e,t){var n=e["className"],r=__rest$3(e,["className","classes"]),{classes:e,cx:i}=s(e,{props:e});return(0,jsx_runtime_1$1.jsx)(a,Object.assign({ref:t,className:i(e.root,n)},"string"==typeof o?{}:{classes:e},r))}),void 0!==t&&Object.defineProperty(e,"name",{value:t+"WithStyles"}),e}}}function incorporateMediaQueries(t){const i={},o={};return Object.keys(t).forEach(e=>(e.startsWith("@media")?o:i)[e]=t[e]),Object.keys(o).forEach(n=>{const r=o[n];Object.keys(r).forEach(e=>{var t;return i[e]=Object.assign(Object.assign({},null!=(t=i[e])?t:{}),{[n]:r[e]})})}),i}withStyles$1.createWithStyles=createWithStyles;var makeStyles,withStyles,_a,EApplicationConfigValue,EApplicationConfigLevel,GlobalStyles$1={},__createBinding=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&("get"in i?t.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){e[r=void 0===r?n:r]=t[n]}),__setModuleDefault=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&__createBinding(t,e,n);return __setModuleDefault(t,e),t};Object.defineProperty(GlobalStyles$1,"__esModule",{value:!0}),GlobalStyles$1.GlobalStyles=void 0;const jsx_runtime_1=jsxRuntime.exports,reactEmotion=__importStar(emotionReact_browser_esm);function GlobalStyles(e){e=e.styles;return(0,jsx_runtime_1.jsx)(reactEmotion.Global,{styles:reactEmotion.css(e)})}GlobalStyles$1.GlobalStyles=GlobalStyles,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMakeAndWithStyles=e.TssCacheProvider=e.getTssDefaultEmotionCache=e.GlobalStyles=e.keyframes=e.createWithStyles=e.createMakeStyles=e.useMergedClasses=e.useCssAndCx=void 0;var t=cssAndCx,n=(Object.defineProperty(e,"useCssAndCx",{enumerable:!0,get:function(){return t.useCssAndCx}}),mergeClasses$1);Object.defineProperty(e,"useMergedClasses",{enumerable:!0,get:function(){return n.useMergedClasses}});const r=makeStyles$1,i=(Object.defineProperty(e,"createMakeStyles",{enumerable:!0,get:function(){return r.createMakeStyles}}),withStyles$1);Object.defineProperty(e,"createWithStyles",{enumerable:!0,get:function(){return i.createWithStyles}});var o=emotionReact_browser_esm,a=(Object.defineProperty(e,"keyframes",{enumerable:!0,get:function(){return o.keyframes}}),GlobalStyles$1),s=(Object.defineProperty(e,"GlobalStyles",{enumerable:!0,get:function(){return a.GlobalStyles}}),cache);Object.defineProperty(e,"getTssDefaultEmotionCache",{enumerable:!0,get:function(){return s.getTssDefaultEmotionCache}}),Object.defineProperty(e,"TssCacheProvider",{enumerable:!0,get:function(){return s.TssCacheProvider}}),e.createMakeAndWithStyles=function(e){return Object.assign(Object.assign({},(0,r.createMakeStyles)(e)),(0,i.createWithStyles)(e))}}(tssReact),Object.defineProperty(mui,"__esModule",{value:!0}),mui.useStyles=withStyles=mui.withStyles=makeStyles=mui.makeStyles=void 0;const styles_1=styles$6,index_1=tssReact;function __awaiter$4(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}_a=(0,index_1.createMakeAndWithStyles)({useTheme:styles_1.useTheme}),makeStyles=mui.makeStyles=_a.makeStyles,withStyles=mui.withStyles=_a.withStyles,mui.useStyles=_a.useStyles;const SLICE_NAME="userApplicationSettings",formatLabel=(!function(e){e.String="String",e.Boolean="Boolean",e.Date="Date",e.Integer="Integer",e.JSON="JSON",e.Float="Float"}(EApplicationConfigValue=EApplicationConfigValue||{}),!function(e){e.Organization="Organization",e.User="User"}(EApplicationConfigLevel=EApplicationConfigLevel||{}),(e="")=>lodash.exports.startCase(e)),getFieldErrorMessage=e=>{var{value:e,required:t,configType:n}=e;return t&&lodash.exports.isEmpty(e)?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-admin-center-user-application-settings-empty-error-message",defaultMessage:"Please enter value",description:"Empty error message"}):n===EApplicationConfigValue.Integer&&Number(e)-Math.floor(Number(e))!=0?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-admin-center-user-application-settings-integer-vaue-error-message",defaultMessage:"The value has to to be Integer'",description:"Integer value error message"}):""},useStyles$2$5=makeStyles()(e=>({outerContainer:{margin:"0 30px"},formControlWrapper:{marginTop:15,width:"100%"},inputLabel:{fontFamily:"Nunito",fontWeight:600,display:"block",fontSize:"16px",lineHeight:"22px",color:"#2A323C",marginBottom:4},inputLabelError:{color:e.palette.error.main},description:{fontWeight:400,marginBottom:9}})),useStyles$1$5=makeStyles()(e=>({field:{width:"100%"}})),TxtField=({id:e,type:t,required:n,value:r,onChange:i,error:o=!1,multiline:a=!1})=>{var s=useStyles$1$5()["classes"];return jsxRuntime.exports.jsx(TextField$1,{id:e,"data-testid":e,InputLabelProps:{shrink:!0},autoComplete:"off",required:n,value:r,type:t,rows:4,className:s.field,onChange:i,size:"small",multiline:a,error:o})},ComponentLoader=({fields:e,onChange:l,toggleSaveButton:c})=>{const u=useStyles$2$5()["classes"];return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:null==(e=e)?void 0:e.map((n,e)=>{var t,r=formatLabel(""+(null==n?void 0:n.configKey)||""),i=`configuration-input--${null==n?void 0:n.applicationId}-idx-`+e,o=!!getFieldErrorMessage(n),a=e=>{var t;(null==n?void 0:n.configType)===EApplicationConfigValue.Boolean?(l({fieldName:null==n?void 0:n.configKey,fieldValue:String(e.target.checked)}),c(!1)):(l({fieldName:null==n?void 0:n.configKey,fieldValue:e.target.value}),t=!0,t=!(null==n||!n.required||e.target.value)||""!==getFieldErrorMessage(n),c(t))};let s;switch(null==n?void 0:n.configType){case EApplicationConfigValue.String:s=jsxRuntime.exports.jsx(TxtField,{id:i,label:r,required:null==n?void 0:n.required,type:"text",value:(null==n?void 0:n.value)||"",onChange:a,error:o});break;case EApplicationConfigValue.Boolean:s=jsxRuntime.exports.jsx(Switch$1,{id:i,required:null==n?void 0:n.required,onChange:a,checked:"true"===(null==(t=null==n?void 0:n.value)?void 0:t.toLowerCase())});break;case EApplicationConfigValue.Date:s=jsxRuntime.exports.jsx(TxtField,{id:i,label:r,required:null==n?void 0:n.required,type:"date",value:(null==(t=null==n?void 0:n.value)?void 0:t.substring(0,10))||"",onChange:a,error:o});break;case EApplicationConfigValue.Integer:s=jsxRuntime.exports.jsx(TxtField,{id:i,label:r,required:null==n?void 0:n.required,value:(null==n?void 0:n.value)||"",type:"number",onChange:a,error:o});break;case EApplicationConfigValue.JSON:s=jsxRuntime.exports.jsx(TxtField,{id:i,label:r,required:null==n?void 0:n.required,value:(null==n?void 0:n.value)||"",multiline:!0,type:"text",onChange:a,error:o});break;case EApplicationConfigValue.Float:s=jsxRuntime.exports.jsx(TxtField,{id:i,label:r,required:null==n?void 0:n.required,value:(null==n?void 0:n.value)||"",type:"number",onChange:a,error:o});break;default:return null}return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx("div",Object.assign({className:u.outerContainer},{children:jsxRuntime.exports.jsxs(FormControl$1,Object.assign({error:o,size:"small",className:u.formControlWrapper},{children:[jsxRuntime.exports.jsxs("label",Object.assign({htmlFor:i,className:u.inputLabel+" "+(o&&u.inputLabelError)},{children:[r,null!=n&&n.required?"(Required)":""]})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:u.description,"data-testid":"os-admin-center-user-application-settings-config-description"},{children:null==n?void 0:n.description})),s,o&&jsxRuntime.exports.jsx(FormHelperText$2,{children:getFieldErrorMessage(n)})]}),`${null==n?void 0:n.applicationId}-idx-`+e)})),jsxRuntime.exports.jsx(Divider$1,{sx:{opacity:.9,mt:4}})]})})})},useStyles$j=makeStyles()(e=>({settingsList:{display:"flex",flexDirection:"column",overflow:"scroll",height:"calc(100% - 115px)"},subtitle:{fontWeight:400,margin:"0 30px 15px"},footerBtnContainer:{margin:"0 30px 30px 30px",position:"absolute",right:0,bottom:0,"& button":{flex:1,height:"36px",marginLeft:"20px"}}})),formattedMessages=e=>({cancelButton:e.formatMessage({id:"os-admin-center-user-application-settings-cancel-button-text",defaultMessage:[{type:0,value:"Cancel"}]}),saveSettingsButton:e.formatMessage({id:"os-admin-center-user-application-settings-save-settings-button-text",defaultMessage:[{type:0,value:"Save Settings"}]})}),namespace$1$2="userApplicationSettings",initialState$1$2={applicationConfig:[],status:"idle"},userApplicationSettingsSlice=createSlice({name:SLICE_NAME+"/"+namespace$1$2,initialState:initialState$1$2,reducers:{fetchApplicationConfigStart(e,t){e.status="loading"},fetchApplicationConfigSuccess(e,t){e.status="success",e.applicationConfig=t.payload},fetchApplicationConfigFailure(e){e.status="failure"},updateApplicationConfigStart(e,t){e.status="loading"},updateApplicationConfigSuccess(e,n){e.status="success";var t=e.applicationConfig.map(t=>n.payload.some(({configKey:e})=>e===t.configKey)?Object.assign(Object.assign({},t),n.payload.find(({configKey:e})=>e===t.configKey)):t);e.applicationConfig=t},updateApplicationConfigFailure(e){e.status="failure"}}}),actions$1=userApplicationSettingsSlice.actions;var applicationConfig_state=userApplicationSettingsSlice.reducer;const namespace$7=SLICE_NAME,initialState$8={[namespace$1$2]:initialState$1$2},actions$2={[namespace$1$2]:actions$1},rootReducer=combineReducers({[namespace$1$2]:applicationConfig_state}),selectApplicationConfig=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$1$2])?void 0:e.applicationConfig};function fetchApplicationConfig(n,{appId:r}){return __awaiter$4(this,void 0,void 0,function*(){var e="fetchApplicationConfig",t="applicationConfig";return(yield baseGraphQLApiWithError(Object.assign({query:`
1155
+ }`,o),t=createApolloWs(s,a,o);const n=createApolloClient(t),i=n.subscribe({query:e}).subscribe({next(e){var t,n;"json"!==(null==(t=null==(t=null==e?void 0:e.data)?void 0:t.notificationPosted)?void 0:t.contentType)&&({title:t,body:n}=e.data.notificationPosted,t===MARK_ALL_NOTIFICATIONS_SEEN&&n===o?r(markAllNotificationsSeenSuccess()):r(pushDefaultMailBox(e.data.notificationPosted)))}});return()=>{i.unsubscribe(),n.stop()}})}function*websocketSagas(){subscriptionTask&&(yield cancel(subscriptionTask)),subscriptionTask=yield fork(function*(){for(var e=yield call$f(websocketInitChannel);;)yield put(yield take(e))})}function*defaultMailboxSagas(){mailboxSubscription&&(yield cancel(mailboxSubscription)),mailboxSubscription=yield fork(function*(){for(var e=yield call$f(defaultMailboxChannel);;)yield put(yield take(e))})}function*updateMailboxSetting(){yield websocketSagas()}function*updateUnseenCountSaga(e){var t,n=yield select(graphEndpointSelector),r=yield select(sessionTokenSelector),i=(yield select(panelSelector)).find(e=>e.panelId===notificationPanelId);try{i&&(yield delay$1(1e3),yield markAllNotificationsSeenSaga()),yield delay$1(2e3);var o=yield call$f(getUnseenCountApi,n,r),a=e.payload["mailboxId"];yield put(updateUnseenCount({notificationMailboxes:null==(t=null==o?void 0:o.data)?void 0:t.notificationMailboxes,mailboxId:a}))}catch(e){yield put(markAllNotificationsSeenFail())}}function*markAllNotificationsSeenSaga(){var e=yield select(mailboxIdSelector),t=(yield select(userSelector$2))["userId"],n=yield select(graphEndpointSelector),r=yield select(sessionTokenSelector);if(0<(null==e?void 0:e.length))try{(yield call$f(handleMarkAllNotificationsSeen,e,n,r)).error?yield put(markAllNotificationsSeenFail()):(yield put(markAllNotificationsSeenSuccess()),yield call$f(pushDefaultMailboxNotification,t,MARK_ALL_NOTIFICATIONS_SEEN,n,r))}catch(e){yield put(markAllNotificationsSeenFail())}}function*mailboxSaga(){yield all([takeLatest$1(requestSubscriber.type,subscriberSaga),takeLatest$1(setMailboxData.type,websocketSagas),takeLatest$1("UPDATE_MAILBOX_SETTING",updateMailboxSetting),takeEvery$1(pushNotification.type,updateUnseenCountSaga),takeEvery$1(subscribeDefaultMailboxRequest.type,defaultMailboxSagas),takeLatest$1(markAllNotificationsSeenRequest.type,markAllNotificationsSeenSaga)])}function getNotificationModule$1(){return{id:"mailbox-subscription",reducerMap:{[nameSpace$4]:mailboxReducer},sagas:[mailboxSaga],initialActions:[requestSubscriber(),subscribeDefaultMailboxRequest()]}}var mui={},tssReact={},cssAndCx={},classnames$1={},assert$1={};function assert(e,t){if(!e)throw new Error(t)}Object.defineProperty(assert$1,"__esModule",{value:!0}),assert$1.assert=void 0,assert$1.assert=assert;var typeGuard$1={};function typeGuard(e,t){return t}Object.defineProperty(typeGuard$1,"__esModule",{value:!0}),typeGuard$1.typeGuard=void 0,typeGuard$1.typeGuard=typeGuard,function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.classnames=void 0;const s=assert$1,l=typeGuard$1;a.classnames=e=>{var t=e.length;let n=0,r="";for(;n<t;n++){var i=e[n];if(null!=i){let e;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))e=(0,a.classnames)(i);else{(0,s.assert)(!(0,l.typeGuard)(i,!1)),e="";for(const o in i)i[o]&&o&&(e&&(e+=" "),e+=o)}break;default:e=i}e&&(r&&(r+=" "),r+=e)}}return r}}(classnames$1);var useGuaranteedMemo$1={};Object.defineProperty(useGuaranteedMemo$1,"__esModule",{value:!0}),useGuaranteedMemo$1.useGuaranteedMemo=void 0;const react_1$4=react.exports;function useGuaranteedMemo(e,n){var t=(0,react_1$4.useRef)();return(!t.current||n.length!==t.current.prevDeps.length||0<=t.current.prevDeps.map((e,t)=>e===n[t]).indexOf(!1))&&(t.current={v:e(),prevDeps:[...n]}),t.current.v}useGuaranteedMemo$1.useGuaranteedMemo=useGuaranteedMemo;var cache={};function sheetForTag(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function createStyleElement(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var StyleSheet=function(){function e(e){var n=this;this._insertTag=function(e){var t=0===n.tags.length?n.insertionPoint?n.insertionPoint.nextSibling:n.prepend?n.container.firstChild:n.before:n.tags[n.tags.length-1].nextSibling;n.container.insertBefore(e,t),n.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(createStyleElement(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=sheetForTag(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),MS="-ms-",MOZ="-moz-",WEBKIT="-webkit-",COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",abs=Math.abs,from=String.fromCharCode,assign=Object.assign;function hash(e,t){return 45^charat(e,0)?(((t<<2^charat(e,0))<<2^charat(e,1))<<2^charat(e,2))<<2^charat(e,3):0}function trim(e){return e.trim()}function match$3(e,t){return(e=t.exec(e))&&e[0]}function replace(e,t,n){return e.replace(t,n)}function indexof(e,t){return e.indexOf(t)}function charat(e,t){return 0|e.charCodeAt(t)}function substr(e,t,n){return e.slice(t,n)}function strlen(e){return e.length}function sizeof(e){return e.length}function append(e,t){return t.push(e),e}function combine$1(e,t){return e.map(t).join("")}var line=1,column=1,length=0,position$1=0,character=0,characters="";function node(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:line,column:column,length:a,return:""}}function copy(e,t){return assign(node("",null,null,"",null,null,0),e,{length:-e.length},t)}function char(){return character}function prev(){return character=0<position$1?charat(characters,--position$1):0,column--,10===character&&(column=1,line--),character}function next(){return character=position$1<length?charat(characters,position$1++):0,column++,10===character&&(column=1,line++),character}function peek(){return charat(characters,position$1)}function caret(){return position$1}function slice$2(e,t){return substr(characters,e,t)}function token(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(e){return line=column=1,length=strlen(characters=e),position$1=0,[]}function dealloc(e){return characters="",e}function delimit(e){return trim(slice$2(position$1-1,delimiter(91===e?e+2:40===e?e+1:e)))}function whitespace(e){for(;(character=peek())&&character<33;)next();return 2<token(e)||3<token(character)?"":" "}function escaping(e,t){for(;--t&&next()&&!(character<48||102<character||57<character&&character<65||70<character&&character<97););return slice$2(e,caret()+(t<6&&32==peek()&&32==next()))}function delimiter(e){for(;next();)switch(character){case e:return position$1;case 34:case 39:34!==e&&39!==e&&delimiter(character);break;case 40:41===e&&delimiter(e);break;case 92:next()}return position$1}function commenter(e,t){for(;next()&&e+character!==57&&(e+character!==84||47!==peek()););return"/*"+slice$2(t,position$1-1)+"*"+from(47===e?e:next())}function identifier(e){for(;!token(peek());)next();return slice$2(e,position$1)}function compile(e){return dealloc(parse$3("",null,null,null,[""],e=alloc(e),0,[0],e))}function parse$3(e,t,n,r,i,o,a,s,l){for(var c,u,d,p=0,f=0,h=a,m=0,g=0,v=1,y=1,x=1,b=0,C="",$=i,S=C;y;)switch(c=b,b=next()){case 40:if(108!=c&&58==charat(S,h-1)){-1!=indexof(S+=replace(delimit(b),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:S+=delimit(b);break;case 9:case 10:case 13:case 32:S+=whitespace(c);break;case 92:S+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),t,n),l);break;default:S+="/"}break;case 123*v:s[p++]=strlen(S)*x;case 125*v:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+f:0<g&&strlen(S)-h&&append(32<g?declaration(S+";",r,n,h-1):declaration(replace(S," ","")+";",r,n,h-2),l);break;case 59:S+=";";default:if(append(d=ruleset(S,t,n,p,f,i,s,C,$=[],u=[],h),o),123===b)if(0===f)parse$3(S,t,d,d,$,o,h,s,u);else switch(99===m&&110===charat(S,3)?100:m){case 100:case 109:case 115:parse$3(e,d,d,r&&append(ruleset(e,d,d,0,0,i,s,C,i,$=[],h),u),i,u,h,s,r?$:u);break;default:parse$3(S,d,d,d,[""],u,0,s,u)}}p=f=g=0,v=x=1,C=S="",h=a;break;case 58:h=1+strlen(S),g=c;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==prev())continue;switch(S+=from(b),b*v){case 38:x=0<f?1:(S+="\f",-1);break;case 44:s[p++]=(strlen(S)-1)*x,x=1;break;case 64:45===peek()&&(S+=delimit(next())),m=peek(),f=h=strlen(C=S+=identifier(caret())),b++;break;case 45:45===c&&2==strlen(S)&&(v=0)}}return o}function ruleset(e,t,n,r,i,o,a,s,l,c,u){for(var d,p=i-1,f=0===i?o:[""],h=sizeof(f),m=0,g=0;m<r;++m)for(var v,y=0,x=substr(e,p+1,p=abs(d=a[m]));y<h;++y)(v=trim(0<d?f[y]+" "+x:replace(x,/&\f/g,f[y])))&&(l[g++]=v);return node(e,t,n,0===i?RULESET:s,l,c,u)}function comment(e,t,n){return node(e,t,n,COMMENT,from(char()),substr(e,2,-2),0)}function declaration(e,t,n,r){return node(e,t,n,DECLARATION,substr(e,0,r),substr(e,r+1,-1),r)}function serialize(e,t){for(var n="",r=sizeof(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function stringify$2(e,t,n,r){switch(e.type){case IMPORT:case DECLARATION:return e.return=e.return||e.value;case COMMENT:return"";case KEYFRAMES:return e.return=e.value+"{"+serialize(e.children,r)+"}";case RULESET:e.value=e.props.join(",")}return strlen(n=serialize(e.children,r))?e.return=e.value+"{"+n+"}":""}function middleware(a){var s=sizeof(a);return function(e,t,n,r){for(var i="",o=0;o<s;o++)i+=a[o](e,t,n,r)||"";return i}}function rulesheet(t){return function(e){e.root||(e=e.return)&&t(e)}}var identifierWithPointTracking=function(e,t,n){for(var r,i=0;r=i,i=peek(),38===r&&12===i&&(t[n]=1),!token(i);)next();return slice$2(e,position$1)},toRules=function(e,t){var n=-1,r=44;do{switch(token(r)){case 0:38===r&&12===peek()&&(t[n]=1),e[n]+=identifierWithPointTracking(position$1-1,t,n);break;case 2:e[n]+=delimit(r);break;case 4:if(44===r){e[++n]=58===peek()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=from(r)}}while(r=next());return e},getRules=function(e,t){return dealloc(toRules(alloc(e),t))},fixedElements=new WeakMap,compat=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fixedElements.get(n))&&!r){fixedElements.set(e,!0);for(var i=[],o=getRules(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},removeLabel=function(e){var t;"decl"===e.type&&108===(t=e.value).charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")};function prefix$3(e,t){switch(hash(e,t)){case 5103:return WEBKIT+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+e+MOZ+e+MS+e+e;case 6828:case 4268:return WEBKIT+e+MS+e+e;case 6165:return WEBKIT+e+MS+"flex-"+e+e;case 5187:return WEBKIT+e+replace(e,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+e;case 5443:return WEBKIT+e+MS+"flex-item-"+replace(e,/flex-|-self/,"")+e;case 4675:return WEBKIT+e+MS+"flex-line-pack"+replace(e,/align-content|flex-|-self/,"")+e;case 5548:return WEBKIT+e+MS+replace(e,"shrink","negative")+e;case 5292:return WEBKIT+e+MS+replace(e,"basis","preferred-size")+e;case 6060:return WEBKIT+"box-"+replace(e,"-grow","")+WEBKIT+e+MS+replace(e,"grow","positive")+e;case 4554:return WEBKIT+replace(e,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+e;case 6187:return replace(replace(replace(e,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),e,"")+e;case 5495:case 3959:return replace(e,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace(replace(e,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+e+e;case 4095:case 3583:case 4068:case 2532:return replace(e,/(.+)-inline(.+)/,WEBKIT+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(6<strlen(e)-1-t)switch(charat(e,t+1)){case 109:if(45!==charat(e,t+4))break;case 102:return replace(e,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(108==charat(e,t+3)?"$3":"$2-$3"))+e;case 115:return~indexof(e,"stretch")?prefix$3(replace(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==charat(e,t+1))break;case 6444:switch(charat(e,strlen(e)-3-(~indexof(e,"!important")&&10))){case 107:return replace(e,":",":"+WEBKIT)+e;case 101:return replace(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(45===charat(e,14)?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+e}break;case 5936:switch(charat(e,t+11)){case 114:return WEBKIT+e+MS+replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return WEBKIT+e+MS+replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return WEBKIT+e+MS+replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return WEBKIT+e+MS+e+e}return e}var prefixer=function(t,e,n,r){if(-1<t.length&&!t.return)switch(t.type){case DECLARATION:t.return=prefix$3(t.value,t.length);break;case KEYFRAMES:return serialize([copy(t,{value:replace(t.value,"@","@"+WEBKIT)})],r);case RULESET:if(t.length)return combine$1(t.props,function(e){switch(match$3(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(t,{props:[replace(e,/:(read-\w+)/,":"+MOZ+"$1")]})],r);case"::placeholder":return serialize([copy(t,{props:[replace(e,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(t,{props:[replace(e,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(t,{props:[replace(e,/:(plac\w+)/,MS+"input-$1")]})],r)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(e){var i,t=e.key,n=("css"===t&&(n=document.querySelectorAll("style[data-emotion]:not([data-s])"),Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})),e.stylisPlugins||defaultStylisPlugins),r={},o=[],a=e.container||document.head,s=(Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)r[t[n]]=!0;o.push(e)}),[compat,removeLabel]),l=[stringify$2,rulesheet(function(e){i.insert(e)})],c=middleware(s.concat(n,l)),s=function(e,t,n,r){i=n,serialize(compile(e?e+"{"+t.styles+"}":t.styles),c),r&&(u.inserted[t.name]=!0)},u={key:t,sheet:new StyleSheet({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:r,registered:{},insert:s};return u.sheet.hydrate(o),u},__importDefault=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cache,"__esModule",{value:!0}),cache.TssCacheProvider=cache.useTssEmotionCache=cache.getTssDefaultEmotionCache=cache.getDoExistsTssDefaultEmotionCacheMemoizedValue=void 0;const jsx_runtime_1$2=jsxRuntime.exports,react_1$3=react.exports,cache_1$1=__importDefault(createCache),{getDoExistsTssDefaultEmotionCacheMemoizedValue,getTssDefaultEmotionCache,reactContext}=(()=>{var e,t,n=react_1$3.createContext;let r=n["__tss-react_context"];return void 0===r&&({getTssDefaultEmotionCache:e,getDoExistsTssDefaultEmotionCacheMemoizedValue:t}=(()=>{let t=void 0;return{getTssDefaultEmotionCache:function(e){var{doReset:e=!1}=null!=e?e:{};return t=void 0===(t=e?void 0:t)?(0,cache_1$1.default)({key:"tss"}):t},getDoExistsTssDefaultEmotionCacheMemoizedValue:()=>void 0!==t}})(),r={getTssDefaultEmotionCache:e,getDoExistsTssDefaultEmotionCacheMemoizedValue:t,reactContext:(0,react_1$3.createContext)(void 0)},Object.defineProperty(n,"__tss-react_context",{configurable:!1,enumerable:!1,writable:!1,value:r})),r})();function useTssEmotionCache(){var e=(0,react_1$3.useContext)(reactContext);return null!=e?e:getTssDefaultEmotionCache()}function TssCacheProvider(e){var{children:e,value:t}=e;return(0,jsx_runtime_1$2.jsx)(reactContext.Provider,Object.assign({value:t},{children:e}))}cache.getDoExistsTssDefaultEmotionCacheMemoizedValue=getDoExistsTssDefaultEmotionCacheMemoizedValue,cache.getTssDefaultEmotionCache=getTssDefaultEmotionCache,cache.useTssEmotionCache=useTssEmotionCache,cache.TssCacheProvider=TssCacheProvider;var types={};function matchCSSObject(e){return!(!(e instanceof Object)||"styles"in e||"length"in e||"__emotion_styles"in e)}Object.defineProperty(types,"__esModule",{value:!0}),types.matchCSSObject=void 0,types.matchCSSObject=matchCSSObject,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.useCssAndCx=r.createCssAndCx=void 0;const a=classnames$1,n=emotionSerialize_browser_esm,s=emotionUtils_browser_esm,i=useGuaranteedMemo$1,o=cache,l=types;r.createCssAndCx=function(e){const i=e["cache"],o=(...e)=>{var t=(0,n.serializeStyles)(e,i.registered),t=((0,s.insertStyles)(i,t,!1),i.key+"-"+t.name),e=e[0];return(0,l.matchCSSObject)(e)&&c.saveClassNameCSSObjectMapping(i,t,e),t};return{css:o,cx:(...e)=>{var t,n,r,e=(0,a.classnames)(e),e=c.fixClassName(i,e,o);return t=i.registered,n=o,e=e,r=[],t=(0,s.getRegisteredStyles)(t,r,e),r.length<2?e:t+n(r)}}},r.useCssAndCx=function(){const e=(0,o.useTssEmotionCache)();var{css:t,cx:n}=(0,i.useGuaranteedMemo)(()=>(0,r.createCssAndCx)({cache:e}),[e]);return{css:t,cx:n}};const c=(()=>{const i=new WeakMap;return{saveClassNameCSSObjectMapping:(e,t,n)=>{let r=i.get(e);void 0===r&&(r=new Map,i.set(e,r)),r.set(t,n)},fixClassName:(e,t,n)=>{const r=i.get(e);return(0,a.classnames)(function(e){let i=!1;return e.map(([e,t])=>{if(void 0===t)return e;let n;if(i)n={"&&":t};else{n=e;for(const r in t)if(r.startsWith("@media")){i=!0;break}}return n})}(t.split(" ").map(e=>[e,null===r||void 0===r?void 0:r.get(e)])).map(e=>"string"==typeof e?e:n(e)))}}})()}(cssAndCx);var mergeClasses$1={},objectKeys$1={};function objectKeys(e){return Object.keys(e)}Object.defineProperty(objectKeys$1,"__esModule",{value:!0}),objectKeys$1.objectKeys=void 0,objectKeys$1.objectKeys=objectKeys;var getDependencyArrayRef$1={};function getDependencyArrayRef(e){if(!(e instanceof Object)||"function"==typeof e)return e;var t=[];for(const i in e){var n=e[i],r=typeof n;if("string"!=r&&("number"!=r||isNaN(n))&&"boolean"!=r&&null!=n)return e;t.push(i+`:${r}_`+n)}return"xSqLiJdLMd9s"+t.join("|")}Object.defineProperty(getDependencyArrayRef$1,"__esModule",{value:!0}),getDependencyArrayRef$1.getDependencyArrayRef=void 0,getDependencyArrayRef$1.getDependencyArrayRef=getDependencyArrayRef,Object.defineProperty(mergeClasses$1,"__esModule",{value:!0}),mergeClasses$1.useMergedClasses=mergeClasses$1.mergeClasses=void 0;const objectKeys_1$1=objectKeys$1,getDependencyArrayRef_1$1=getDependencyArrayRef$1,cssAndCx_1$1=cssAndCx,react_1$2=react.exports;function mergeClasses(n,r,t){if(!(r instanceof Object))return n;const i={};return(0,objectKeys_1$1.objectKeys)(n).forEach(e=>i[e]=t(n[e],r[e])),(0,objectKeys_1$1.objectKeys)(r).forEach(e=>{var t;e in n||"string"==typeof(t=r[e])&&(i[e]=t)}),i}function useMergedClasses(e,t){const n=(0,cssAndCx_1$1.useCssAndCx)()["cx"];return(0,react_1$2.useMemo)(()=>mergeClasses(e,t,n),[e,(0,getDependencyArrayRef_1$1.getDependencyArrayRef)(t),n])}mergeClasses$1.mergeClasses=mergeClasses,mergeClasses$1.useMergedClasses=useMergedClasses;var makeStyles$1={},Object_fromEntries={};Object.defineProperty(Object_fromEntries,"__esModule",{value:!0}),Object_fromEntries.objectFromEntries=void 0,Object_fromEntries.objectFromEntries=Object.fromEntries||(n=>{if(!n||!n[Symbol.iterator])throw new Error("Object.fromEntries() requires a single iterable argument");const r={};return Object.keys(n).forEach(e=>{var[e,t]=n[e];r[e]=t}),r}),Object.defineProperty(makeStyles$1,"__esModule",{value:!0}),makeStyles$1.createMakeStyles=void 0;const react_1$1=react.exports,Object_fromEntries_1=Object_fromEntries,objectKeys_1=objectKeys$1,cssAndCx_1=cssAndCx,getDependencyArrayRef_1=getDependencyArrayRef$1,typeGuard_1=typeGuard$1,cache_1=cache,assert_1=assert$1,mergeClasses_1=mergeClasses$1,getCounter=(()=>{let e=0;return()=>e++})();function createMakeStyles(e){const h=e["useTheme"];return{makeStyles:function(e){const f="object"!=typeof(e=(null!=e?e:{}).name)?e:Object.keys(e)[0];return function(e){const d="function"==typeof e?e:()=>e,p=getCounter();return function(i,o){var e,t;const a=h(),{css:s,cx:n}=(0,cssAndCx_1.useCssAndCx)(),l=(0,cache_1.useTssEmotionCache)();let c=(0,react_1$1.useMemo)(()=>{const n={};var e="undefined"!=typeof Proxy&&new Proxy({},{get:(e,t)=>("symbol"==typeof t&&(0,assert_1.assert)(!1),n[t]=`${l.key}-${p}${void 0!==f?"-"+f:""}-${t}-ref`)});const r=d(a,i,e||{}),t=(0,Object_fromEntries_1.objectFromEntries)((0,objectKeys_1.objectKeys)(r).map(e=>{var t=r[e];return t.label||(t.label=(void 0!==f?f+"-":"")+e),[e,""+s(t)+((0,typeGuard_1.typeGuard)(e,e in n)?" "+n[e]:"")]}));return(0,objectKeys_1.objectKeys)(n).forEach(e=>{e in t||(t[e]=n[e])}),t},[l,s,n,a,(0,getDependencyArrayRef_1.getDependencyArrayRef)(i)]);const r=null==o?void 0:o.props.classes;c=(0,react_1$1.useMemo)(()=>(0,mergeClasses_1.mergeClasses)(c,r,n),[c,(0,getDependencyArrayRef_1.getDependencyArrayRef)(r),n]);{let r=void 0;try{r=void 0===f||null==(t=null==(e=a.components)?void 0:e[f])?void 0:t.styleOverrides}catch(e){}const u=(0,react_1$1.useMemo)(()=>{if(r){var e={};for(const n in r){var t=r[n];t instanceof Object&&(e[n]=s("function"==typeof t?t(Object.assign({theme:a,ownerState:null==o?void 0:o.ownerState},null==o?void 0:o.props)):t))}return e}},[void 0===r?void 0:JSON.stringify(r),(0,getDependencyArrayRef_1.getDependencyArrayRef)(null==o?void 0:o.props),(0,getDependencyArrayRef_1.getDependencyArrayRef)(null==o?void 0:o.ownerState),s]);c=(0,react_1$1.useMemo)(()=>(0,mergeClasses_1.mergeClasses)(c,u,n),[c,u,n])}return{classes:c,theme:a,css:s,cx:n}}}},useStyles:function(){var e=h(),{css:t,cx:n}=(0,cssAndCx_1.useCssAndCx)();return{theme:e,css:t,cx:n}}}}makeStyles$1.createMakeStyles=createMakeStyles;var withStyles$1={},capitalize$1={};function capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}Object.defineProperty(capitalize$1,"__esModule",{value:!0}),capitalize$1.capitalize=void 0,capitalize$1.capitalize=capitalize;var __rest$3=commonjsGlobal$1&&commonjsGlobal$1.__rest||function(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};Object.defineProperty(withStyles$1,"__esModule",{value:!0}),withStyles$1.createWithStyles=void 0;const jsx_runtime_1$1=jsxRuntime.exports,react_1=react.exports,makeStyles_1=makeStyles$1,capitalize_1=capitalize$1;function createWithStyles(e){e=e.useTheme;const n=(0,makeStyles_1.createMakeStyles)({useTheme:e})["makeStyles"];return{withStyles:function(o,r,e){const a="string"==typeof o?(()=>{const n=o;function e(e){var t=e["children"],e=__rest$3(e,["children"]);return(0,react_1.createElement)(n,e,t)}return Object.defineProperty(e,"name",{value:(0,capitalize_1.capitalize)(n)}),e})():o;var t="string"==typeof(t=a.name)?t:void 0;const s=n(void 0!==(null==e?void 0:e.name)?e:{name:t})("function"==typeof r?(e,t,n)=>incorporateMediaQueries(r(e,t,n)):incorporateMediaQueries(r));return e=(0,react_1.forwardRef)(function(e,t){var n=e["className"],r=__rest$3(e,["className","classes"]),{classes:e,cx:i}=s(e,{props:e});return(0,jsx_runtime_1$1.jsx)(a,Object.assign({ref:t,className:i(e.root,n)},"string"==typeof o?{}:{classes:e},r))}),void 0!==t&&Object.defineProperty(e,"name",{value:t+"WithStyles"}),e}}}function incorporateMediaQueries(t){const i={},o={};return Object.keys(t).forEach(e=>(e.startsWith("@media")?o:i)[e]=t[e]),Object.keys(o).forEach(n=>{const r=o[n];Object.keys(r).forEach(e=>{var t;return i[e]=Object.assign(Object.assign({},null!=(t=i[e])?t:{}),{[n]:r[e]})})}),i}withStyles$1.createWithStyles=createWithStyles;var makeStyles,withStyles,_a,EApplicationConfigValue,EApplicationConfigLevel,GlobalStyles$1={},__createBinding=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&("get"in i?t.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){e[r=void 0===r?n:r]=t[n]}),__setModuleDefault=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&__createBinding(t,e,n);return __setModuleDefault(t,e),t};Object.defineProperty(GlobalStyles$1,"__esModule",{value:!0}),GlobalStyles$1.GlobalStyles=void 0;const jsx_runtime_1=jsxRuntime.exports,reactEmotion=__importStar(emotionReact_browser_esm);function GlobalStyles(e){e=e.styles;return(0,jsx_runtime_1.jsx)(reactEmotion.Global,{styles:reactEmotion.css(e)})}GlobalStyles$1.GlobalStyles=GlobalStyles,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMakeAndWithStyles=e.TssCacheProvider=e.getTssDefaultEmotionCache=e.GlobalStyles=e.keyframes=e.createWithStyles=e.createMakeStyles=e.useMergedClasses=e.useCssAndCx=void 0;var t=cssAndCx,n=(Object.defineProperty(e,"useCssAndCx",{enumerable:!0,get:function(){return t.useCssAndCx}}),mergeClasses$1);Object.defineProperty(e,"useMergedClasses",{enumerable:!0,get:function(){return n.useMergedClasses}});const r=makeStyles$1,i=(Object.defineProperty(e,"createMakeStyles",{enumerable:!0,get:function(){return r.createMakeStyles}}),withStyles$1);Object.defineProperty(e,"createWithStyles",{enumerable:!0,get:function(){return i.createWithStyles}});var o=emotionReact_browser_esm,a=(Object.defineProperty(e,"keyframes",{enumerable:!0,get:function(){return o.keyframes}}),GlobalStyles$1),s=(Object.defineProperty(e,"GlobalStyles",{enumerable:!0,get:function(){return a.GlobalStyles}}),cache);Object.defineProperty(e,"getTssDefaultEmotionCache",{enumerable:!0,get:function(){return s.getTssDefaultEmotionCache}}),Object.defineProperty(e,"TssCacheProvider",{enumerable:!0,get:function(){return s.TssCacheProvider}}),e.createMakeAndWithStyles=function(e){return Object.assign(Object.assign({},(0,r.createMakeStyles)(e)),(0,i.createWithStyles)(e))}}(tssReact),Object.defineProperty(mui,"__esModule",{value:!0}),mui.useStyles=withStyles=mui.withStyles=makeStyles=mui.makeStyles=void 0;const styles_1=styles$6,index_1=tssReact;function __awaiter$4(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}_a=(0,index_1.createMakeAndWithStyles)({useTheme:styles_1.useTheme}),makeStyles=mui.makeStyles=_a.makeStyles,withStyles=mui.withStyles=_a.withStyles,mui.useStyles=_a.useStyles;const SLICE_NAME="userApplicationSettings",formatLabel=(!function(e){e.String="String",e.Boolean="Boolean",e.Date="Date",e.Integer="Integer",e.JSON="JSON",e.Float="Float"}(EApplicationConfigValue=EApplicationConfigValue||{}),!function(e){e.Organization="Organization",e.User="User"}(EApplicationConfigLevel=EApplicationConfigLevel||{}),(e="")=>lodash.exports.startCase(e)),getFieldErrorMessage=e=>{var{value:e,required:t,configType:n}=e;return t&&lodash.exports.isEmpty(e)?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-admin-center-user-application-settings-empty-error-message",defaultMessage:"Please enter value",description:"Empty error message"}):n===EApplicationConfigValue.Integer&&Number(e)-Math.floor(Number(e))!=0?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-admin-center-user-application-settings-integer-vaue-error-message",defaultMessage:"The value has to to be Integer'",description:"Integer value error message"}):""},useStyles$2$5=makeStyles()(e=>({outerContainer:{margin:"0 30px"},formControlWrapper:{marginTop:15,width:"100%"},inputLabel:{fontFamily:"Nunito",fontWeight:600,display:"block",fontSize:"16px",lineHeight:"22px",color:"#2A323C",marginBottom:4},inputLabelError:{color:e.palette.error.main},description:{fontWeight:400,marginBottom:9}})),useStyles$1$5=makeStyles()(e=>({field:{width:"100%"}})),TxtField=({id:e,type:t,required:n,value:r,onChange:i,error:o=!1,multiline:a=!1})=>{var s=useStyles$1$5()["classes"];return jsxRuntime.exports.jsx(TextField$1,{id:e,"data-testid":e,InputLabelProps:{shrink:!0},autoComplete:"off",required:n,value:r,type:t,rows:4,className:s.field,onChange:i,size:"small",multiline:a,error:o})},ComponentLoader=({fields:e,onChange:l,toggleSaveButton:c})=>{const u=useStyles$2$5()["classes"];return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:null==(e=e)?void 0:e.map((n,e)=>{var t,r=formatLabel(""+(null==n?void 0:n.configKey)||""),i=`configuration-input--${null==n?void 0:n.applicationId}-idx-`+e,o=!!getFieldErrorMessage(n),a=e=>{var t;(null==n?void 0:n.configType)===EApplicationConfigValue.Boolean?(l({fieldName:null==n?void 0:n.configKey,fieldValue:String(e.target.checked)}),c(!1)):(l({fieldName:null==n?void 0:n.configKey,fieldValue:e.target.value}),t=!0,t=!(null==n||!n.required||e.target.value)||""!==getFieldErrorMessage(n),c(t))};let s;switch(null==n?void 0:n.configType){case EApplicationConfigValue.String:s=jsxRuntime.exports.jsx(TxtField,{id:i,label:r,required:null==n?void 0:n.required,type:"text",value:(null==n?void 0:n.value)||"",onChange:a,error:o});break;case EApplicationConfigValue.Boolean:s=jsxRuntime.exports.jsx(Switch$1,{id:i,required:null==n?void 0:n.required,onChange:a,checked:"true"===(null==(t=null==n?void 0:n.value)?void 0:t.toLowerCase())});break;case EApplicationConfigValue.Date:s=jsxRuntime.exports.jsx(TxtField,{id:i,label:r,required:null==n?void 0:n.required,type:"date",value:(null==(t=null==n?void 0:n.value)?void 0:t.substring(0,10))||"",onChange:a,error:o});break;case EApplicationConfigValue.Integer:s=jsxRuntime.exports.jsx(TxtField,{id:i,label:r,required:null==n?void 0:n.required,value:(null==n?void 0:n.value)||"",type:"number",onChange:a,error:o});break;case EApplicationConfigValue.JSON:s=jsxRuntime.exports.jsx(TxtField,{id:i,label:r,required:null==n?void 0:n.required,value:(null==n?void 0:n.value)||"",multiline:!0,type:"text",onChange:a,error:o});break;case EApplicationConfigValue.Float:s=jsxRuntime.exports.jsx(TxtField,{id:i,label:r,required:null==n?void 0:n.required,value:(null==n?void 0:n.value)||"",type:"number",onChange:a,error:o});break;default:return null}return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx("div",Object.assign({className:u.outerContainer},{children:jsxRuntime.exports.jsxs(FormControl$1,Object.assign({error:o,size:"small",className:u.formControlWrapper},{children:[jsxRuntime.exports.jsxs("label",Object.assign({htmlFor:i,className:u.inputLabel+" "+(o&&u.inputLabelError)},{children:[r,null!=n&&n.required?"(Required)":""]})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:u.description,"data-testid":"os-admin-center-user-application-settings-config-description"},{children:null==n?void 0:n.description})),s,o&&jsxRuntime.exports.jsx(FormHelperText$2,{children:getFieldErrorMessage(n)})]}),`${null==n?void 0:n.applicationId}-idx-`+e)})),jsxRuntime.exports.jsx(Divider$1,{sx:{opacity:.9,mt:4}})]})})})},useStyles$j=makeStyles()(e=>({settingsList:{display:"flex",flexDirection:"column",overflow:"scroll",height:"calc(100% - 115px)"},subtitle:{fontWeight:400,margin:"0 30px 15px"},footerBtnContainer:{margin:"0 30px 30px 30px",position:"absolute",right:0,bottom:0,"& button":{flex:1,height:"36px",marginLeft:"20px"}}})),formattedMessages=e=>({cancelButton:e.formatMessage({id:"os-admin-center-user-application-settings-cancel-button-text",defaultMessage:[{type:0,value:"Cancel"}]}),saveSettingsButton:e.formatMessage({id:"os-admin-center-user-application-settings-save-settings-button-text",defaultMessage:[{type:0,value:"Save Settings"}]})}),namespace$1$2="userApplicationSettings",initialState$1$2={applicationConfig:[],status:"idle"},userApplicationSettingsSlice=createSlice({name:SLICE_NAME+"/"+namespace$1$2,initialState:initialState$1$2,reducers:{fetchApplicationConfigStart(e,t){e.status="loading"},fetchApplicationConfigSuccess(e,t){e.status="success",e.applicationConfig=t.payload},fetchApplicationConfigFailure(e){e.status="failure"},updateApplicationConfigStart(e,t){e.status="loading"},updateApplicationConfigSuccess(e,n){e.status="success";var t=e.applicationConfig.map(t=>n.payload.some(({configKey:e})=>e===t.configKey)?Object.assign(Object.assign({},t),n.payload.find(({configKey:e})=>e===t.configKey)):t);e.applicationConfig=t},updateApplicationConfigFailure(e){e.status="failure"}}}),actions$1=userApplicationSettingsSlice.actions;var applicationConfig_state=userApplicationSettingsSlice.reducer;const namespace$7=SLICE_NAME,initialState$8={[namespace$1$2]:initialState$1$2},actions$2={[namespace$1$2]:actions$1},rootReducer=combineReducers({[namespace$1$2]:applicationConfig_state}),selectApplicationConfig=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$1$2])?void 0:e.applicationConfig};function fetchApplicationConfig(n,{appId:r}){return __awaiter$4(this,void 0,void 0,function*(){var e="fetchApplicationConfig",t="applicationConfig";return(yield baseGraphQLApiWithError(Object.assign({query:`
1156
1156
  query ${e} {
1157
1157
  ${t} (
1158
1158
  appId: "${r}",
@@ -1395,4 +1395,4 @@ createScheduledJob(input:{
1395
1395
  }
1396
1396
  }
1397
1397
  }
1398
- `,graphEndpoint:e,token:t})}catch(e){return{success:!1}}});function*getCurrentUserSaga(){var e=yield select(graphEndpointSelector),t=yield select(sessionTokenSelector),e=yield call$f(getCurrentUserApi,e,t);null!=e&&e.errors&&0<(null==e?void 0:e.errors.length)&&(null==(t=e.errors[0].path)||!t.includes("userSettings"))?(console.error("getCurrentUser error"),yield put(getCurrentUserFail())):(t=Object.assign(Object.assign({},null==(t=null==e?void 0:e.data)?void 0:t.me),{organizationRole:{organizationId:get$3(e,"data.me.organization.id","")},organization:Object.assign({},null==(e=null==(t=null==e?void 0:e.data)?void 0:t.me)?void 0:e.organization)}),yield put(getCurrentUserSuccess(t)))}function*getCurrentApplicationInfoSaga(e){var t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector),e=e.payload["applicationId"],e=yield call$f(getApplicationInfo,e,t,n);null!=e&&e.errors&&0<(null==e?void 0:e.errors.length)?console.error("getCurrentApplicationInfo error"):yield put(getCurrentAppIconSuccess(null==(n=null==(t=null==e?void 0:e.data)?void 0:t.application)?void 0:n.iconUrl))}function*userSaga(){yield all([takeEvery$1(GET_CURRENT_USER,getCurrentUserSaga)]),yield all([takeEvery$1(GET_CURRENT_APP_ICON,getCurrentApplicationInfoSaga)])}function*bootFunction(){yield take(BOOTED)}function*booting(){yield takeEvery$1(BOOTING,bootFunction)}function*logoutListener(e){for(var t=e.payload;;)yield call$f(stashTokenInSession,SESSION_TOKEN_PREVENT_STASH_VALUE),yield take(logout),t?null!=t&&t():yield put(logoutUser$1())}function*notificationActionClickedSaga(e){const t=e.payload;yield takeEvery$1(onNotificationActionClicked,function*(e){t&&(yield call$f(t,e.payload))})}function*handleAppSwitchListenerSetup(e){const t=e.payload;yield takeEvery$1(appSwitcherHandleClick,function*(e){e=e.payload;t?t(e):yield put(appSwitcherHandleClickAppNatively(e))})}function*rootSaga(){yield all([fork(userSaga),fork(booting),takeLatest$1(listenLogout,logoutListener),takeLatest$1(appSwitcherSetupListener,handleAppSwitchListenerSetup),takeLatest$1(initNotificationAction,notificationActionClickedSaga)])}function getAppbarModule(){return{id:"os-app-bar",reducerMap:{[nameSpace$1]:userReducer},sagas:[rootSaga],initialActions:[]}}function App(e){var{onLogout:t,onClickNotificationAction:n,onAppSwitch:r,onClickOrgIcon:i,showNotifications:o,applicationId:a,searchBarMountId:s}=e,e=__rest(e,["onLogout","onClickNotificationAction","onAppSwitch","onShowSettingPanel","onClickOrgIcon","onClickHelpIcon","showNotifications","applicationId","searchBarMountId"]);const l=useDispatch(),[c,u]=react.exports.useState(!1),[d,p]=react.exports.useState(!1),[f,h]=react.exports.useState(!1),[m,g]=react.exports.useState(!1),[v,y]=react.exports.useState(!1),[x,b]=react.exports.useState(!1);var C=(useSelector(userSelector)||{})["currentUser"];const{panels:$=[]}=useSelector(rootSelector);var S=useSelector(unseenNotificationSelector);const w=useSelector(notificationStatusSelector);var E=useSelector(betaFeaturesSelector),C=(C||{})["organization"];const T=useSelector(authSelector)["user"];var{application:_=[]}=useSelector(applicationSelector)||{};const[I,j]=react.exports.useState(!1);const R=useSelector(appIdSelector),O=useSelector(selectApplicationConfig),[L,A]=react.exports.useState(!1);var N=useSelector(selectHasUserCreateRootFolderPermission);const P=gqlIntrospection.isOperationValid("fileApplication","mutation")&&N;function M(){u(!1),h(!1),g(!1),p(!1),y(!1),b(!1)}function k(){null!==$&&void 0!==$&&$.forEach(e=>{l(hidePanel$1(e.panelId))})}return react.exports.useEffect(()=>{var e,t=window.location["search"];l(actions$2.userApplicationSettings.fetchApplicationConfigStart({appId:R})),"?panel=invite-requests"!==t||I||(j(!0),t={name:"INVITE_REQUESTS_PANEL",config:{name:"Invite Requests"}},e={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:0,size:"medium",zIndex:1001,parentPanelId:null,dimmed:0,dimmedStatus:"dimParent",header:{title:"INVITE REQUESTS"}},l(mountPanel$1({panelId:"INVITE_REQUESTS_PANEL",microFrontend:t,panelConfig:e})))},[]),react.exports.useEffect(()=>{null!==O&&void 0!==O&&O.length&&A(!0)},[O]),react.exports.useEffect(()=>{"success"===w&&l(markAllNotificationsSeenRequest())},[w,l]),react.exports.useEffect(()=>{l(getCurrentUser()),a&&l(getCurrentAppIcon({applicationId:a}))},[l,a]),react.exports.useEffect(()=>{l({type:listenLogout().type,payload:t})},[l,t]),react.exports.useEffect(()=>{n&&l(initNotificationAction(n))},[l,n]),react.exports.useEffect(()=>{l({type:appSwitcherSetupListener().type,payload:r})},[l,r]),react.exports.useEffect(()=>{l(onBooted())},[l]),react.exports.useEffect(()=>{$&&0!==$.length||M()},[$]),jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getAppbarModule(),getAppbarPanelModule(),getNotificationModule$1(),getEventsModule(),getUserApplicationSettingsModule()]},{children:jsxRuntime.exports.jsx("div",Object.assign({className:"App",id:"aiware-app-bar","data-testid":"aiware-app-bar"},{children:jsxRuntime.exports.jsx(NewAppBar,Object.assign({isEnableOrgPanel:!1,onCloseSetting:function(){k()},onOpenSetting:function(){var e,t;c?(u(!1),k()):(M(),u(!0),k(),e={name:"APP_BAR_PANEL",config:{name:"Veritone",dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:VERITONE_PANEL_ID,type:"TAB_TEMPLATE",marginTop:55,withTab:!0,width:80,zIndex:1004,userRoles:null===T||void 0===T?void 0:T.roles,header:{divider:!0,title:""},footer:{logo:!0},size:"xlarge",fullScreen:!1},l(mountPanel$1({panelId:VERITONE_PANEL_ID,microFrontend:e,panelConfig:t})))},onOpenHelpCenter:function(){var e,t;d?(p(!1),k()):(M(),k(),p(!0),e={name:"HELP_PANEL",config:{name:"Help panel",dataId:"helpDataId",type:"SIMPLE_PANEL"}},t={panelId:HELP_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,size:"large",header:{divider:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.headerTitle.helpCenter",defaultMessage:"Help Center",description:"The header title for the help center."}),actions:[{iconUrl:img$R,action:{type:"OPEN_HELP_LINK"}}]}},l(mountPanel$1({panelId:HELP_PANEL_ID,microFrontend:e,panelConfig:t})))},onOpenNotification:function(){var e,t;null!=o&&o(),v?(y(!1),k()):(M(),k(),y(!0),e={name:"NOTIFICATION_PANEL",config:{name:"Notification Panel",dataId:"notificationDataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:413,header:{divider:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.panel.notifications",defaultMessage:"Notifications Center",description:"Title of the notifications center panel"}),actions:[]}},l(mountPanel$1({panelId:NOTIFICATION_PANEL_ID,microFrontend:e,panelConfig:t})))},onOpenUserApplicationSettings:function(){var e,t;x?(b(!1),k()):(M(),k(),b(!0),e={name:"USER_APPLICATION_SETTINGS_PANEL",config:{name:"User application settings",dataId:"userApplicationSettingsDataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:USER_APPLICATION_SETTINGS_PANEL,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:320,header:{divider:!1,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header.panelTitle.user-application-name-settings",defaultMessage:"Application Settings",description:"Title of user application name settings panel"})}},l(mountPanel$1({panelId:USER_APPLICATION_SETTINGS_PANEL,microFrontend:e,panelConfig:t})))},onDashboardClick:function(){console.log("HANDLE DASHBOARD CLICK!")},organization:C,onClickOrgIcon:function(){var e,t;null!=i&&i(),m?(g(!1),k()):(M(),k(),g(!0),e={name:"ORGANIZATION_PANEL",config:{name:"Veritone",tabId:TabId.ORGANIZATION_PANEL,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:ORGANIZATION_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:420,header:{divider:!0,title:"ORGANIZATIONS"}},l(mountPanel$1({panelId:ORGANIZATION_PANEL_ID,microFrontend:e,panelConfig:t})))},panels:$,searchBarMountId:s,openSetting:{openHelpPanel:!1,openNotificationPanel:!1,openAppSwitchPanel:!1,openOrgSwitchPanel:!1,openVeritonePanel:!1,openUserApplicationSettingsPanel:!1},unseenCount:S,onClickAppSwitchIcon:function(){var e,t;f?(h(!1),k()):(M(),k(),h(!0),e={name:"APP_BAR_PANEL",config:{name:"APP_BAR_PANEL",tabId:TabId.APP_PANEL,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:APPLICATION_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:720,header:{divider:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header.panelTitle-app-switcher",defaultMessage:"App Switcher",description:"Title of applications panel list"}),actions:P?[{action:{type:"user-app-group/createNewAppGroupPlaceholder"},label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header-action.new-app-group",defaultMessage:"New App Group",description:"New App Group action button"}),variant:"contained",size:"large",color:"primary",submit:!0}]:void 0}},l(mountPanel$1({panelId:APPLICATION_PANEL_ID,microFrontend:e,panelConfig:t})))},applications:_,showDashboardIcon:E,userApplicationSettingsIcon:L},e))}))}))})})}const headerBarSelector=e=>null==e?void 0:e.aiWareHeaderBar,registry={[AvailableWidgets.APP_BAR]:App,[AvailableComponents.APP_BAR_PANEL]:SettingPanelComponent},registryLookup=n=>__awaiter$a(void 0,void 0,void 0,function*(){if(registry[n])return registry[n];let e,t=null;switch(n){case AvailableWidgets.SAMPLE_APP_BAR:e=yield import("./js-core.esm2.js"),t=e.SampleAppBar;break;case AvailableWidgets.RESET_PASSWORD:e=yield import("./js-core.esm4.js"),t=e.ResetPassword;break;case AvailableWidgets.FLOW_CENTER:e=yield import("./js-core.esm5.js"),t=e.App;break;case AvailableWidgets.FLOW_WIDGET:e=yield import("./js-core.esm7.js").then(function(e){return e.i}),t=e.App;break;case AvailableWidgets.ENGINE_CENTER_BROWSE:e=yield import("./js-core.esm19.js"),t=e.EngineCenterBrowse;break;case AvailablePanels.SIMPLE_PANEL:e=yield import("./js-core.esm38.js"),t=e.Panel;break;case AvailablePanels.APP_BAR_PANEL_TEMPLATE:e=yield import("./js-core.esm40.js"),t=e.AppbarPanel;break;case AvailablePanels.APP_BAR_TAB_PANEL_TEMPLATE:e=yield import("./js-core.esm40.js"),t=e.AppbarTabPanel;break;case AvailablePanels.TAB_TEMPLATE:e=yield import("./js-core.esm40.js"),t=e.TabPanel;break;case AvailableComponents.NOTIFICATION_PANEL:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationPanel;break;case AvailableComponents.NOTIFICATION_DETAIL:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationDetailPanel;break;case AvailableComponents.NOTIFICATION_SETTING:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationSetting;break;case AvailableComponents.NOTIFICATION_UTILITY:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationUtilityPanel;break;case AvailableComponents.NOTIFICATION_APPLICATION:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationApplication;break;case AvailableComponents.HELP_PANEL:e=yield Promise.resolve().then(function(){return index_esm}),t=e.HelpCenterPanel;break;case AvailableComponents.EDIT_PROFILE_PICTURE:e=yield Promise.resolve().then(function(){return index_esm$1}),t=e.EditProFilePicture;break;case AvailableComponents.TEST_COMPONENT:e=yield import("./js-core.esm38.js"),t=e.SamplePanel1;break;case AvailableComponents.TEST_COMPONENT2:e=yield import("./js-core.esm38.js"),t=e.SamplePanel2;break;case AvailableComponents.TEST_COMPONENT3:e=yield import("./js-core.esm38.js"),t=e.SamplePanel3;break;case AvailableComponents.SETTING_PREFERENCE:e=yield import("./js-core.esm44.js"),t=e.SettingsPreferencesPanel;break;case AvailableComponents.ORGANIZATION_PANEL:e=yield import("./js-core.esm41.js"),t=e.OrganizationPanel;break;case AvailableComponents.INVITE_USERS_PANEL:e=yield import("./js-core.esm41.js"),t=e.InviteUsersPanel;break;case AvailableComponents.INVITE_REQUESTS_PANEL:e=yield import("./js-core.esm41.js"),t=e.InviteRequestsPanel;break;case AvailableComponents.REVIEW_ORG_INVITE_PANEL:e=yield import("./js-core.esm41.js"),t=e.ReviewRequestPanel;break;case AvailableComponents.ADD_APPLICATIONS:e=yield import("./js-core.esm41.js"),t=e.AddApplicationsPanel;break;case AvailableComponents.DATA_CENTER_BROWSE:e=yield import("./js-core.esm45.js"),t=e.DataCenterBrowse;break;case AvailableComponents.DATA_CENTER_FOLDERS_AND_FILES:e=yield import("./js-core.esm45.js"),t=e.FoldersAndFilesPanel;break;case AvailableComponents.DATA_CENTER_FILE_INFO_PANEL:e=yield import("./js-core.esm45.js"),t=e.FileInfoPanel;break;case AvailableComponents.DATA_CENTER_IMPORTER:e=yield import("./js-core.esm55.js"),t=e.DataCenterImporter;break;case AvailableComponents.DATA_LABELER:e=yield import("./js-core.esm57.js"),t=e.DataLabelerPanel;break;case AvailableComponents.ADMIN_CENTER_OPEN_ID:e=yield import("./js-core.esm58.js"),t=e.AdminCenterOpenId;break;case AvailableComponents.ADMIN_CENTER_BROWSE:e=yield import("./js-core.esm59.js"),t=e.AdminCenterBrowse;break;case AvailableComponents.DATA_CENTER_PROCESS_AI:e=yield import("./js-core.esm64.js"),t=e.DataCenterProcessAI;break;case AvailableComponents.ENGINE_CENTER_NEW:e=yield import("./js-core.esm20.js").then(function(e){return e.h}),t=e.EngineCenterNew;break;case AvailableComponents.ENGINE_CENTER_FILTER:e=yield import("./js-core.esm19.js"),t=e.EngineCenterFilter;break;case AvailableComponents.APP_CENTER_FILTER:e=yield import("./js-core.esm65.js"),t=e.AppCenterFilter;break;case AvailableComponents.ENGINE_CENTER_DETAILS:e=yield import("./js-core.esm19.js"),t=e.EngineDetails;break;case AvailableComponents.ENGINE_CENTER_NEW_BUILD:e=yield import("./js-core.esm19.js"),t=e.CreateNewBuildPanel;break;case AvailableComponents.ENGINE_CENTER_CUSTOM_FIELDS_FORM:e=yield import("./js-core.esm20.js").then(function(e){return e.h}),t=e.EngineCenterCustomFieldsForm;break;case AvailableComponents.ENGINE_CENTER_SCHEMAS_FORM_PANEL:e=yield import("./js-core.esm20.js").then(function(e){return e.h}),t=e.SchemasFormPanel;break;case AvailableComponents.ENGINE_CENTER_INPUT_TYPE_FLYOUT:e=yield import("./js-core.esm20.js").then(function(e){return e.h}),t=e.InputTypeFlyout;break;case AvailableComponents.ENGINE_CENTER_EDIT_RELEASE_NOTES:e=yield import("./js-core.esm19.js"),t=e.EditReleaseNotes;break;case AvailableComponents.ENGINE_CENTER_VERSION_HISTORY_PANEL:e=yield import("./js-core.esm19.js"),t=e.VersionHistoryPanel;break;case AvailableComponents.SUPPORTED_FILE_TYPES:e=yield import("./js-core.esm55.js"),t=e.SupportedFileTypes;break;case AvailableComponents.EDIT_FILE_METADATA:e=yield import("./js-core.esm55.js"),t=e.EditFileMetadata;break;case AvailableWidgets.APP_CENTER_BROWSE:e=yield import("./js-core.esm65.js"),t=e.AppCenterBrowse;break;case AvailableComponents.APP_CENTER_NEW:e=yield import("./js-core.esm66.js"),t=e.AppCenterNew;break;case AvailableComponents.APP_CENTER_ADD_FLOW_PANEL:e=yield import("./js-core.esm66.js"),t=e.AppCenterAddFlowPanel;break;case AvailableComponents.APP_CENTER_ADD_SCHEMA_PANEL:e=yield import("./js-core.esm66.js"),t=e.AppCenterAddSchemaPanel;break;case AvailableComponents.APP_CENTER_CONFIG_FIELDS_FORM:e=yield import("./js-core.esm66.js"),t=e.AppCenterConfigFieldsForm;break;case AvailableComponents.APP_CENTER_CONTEXT_MENU_EXTENSIONS:e=yield import("./js-core.esm66.js"),t=e.AppCenterContextMenuExtensionPanel;break;case AvailableComponents.APP_CENTER_EVENT_PANEL:e=yield import("./js-core.esm66.js"),t=e.AppCenterEventPanel;break;case AvailableComponents.APP_CENTER_AUTOMATE_PALETTE_INTEGRATION_PANEL:e=yield import("./js-core.esm66.js"),t=e.AppCenterPaletteIntegrationPanel;break;case AvailableComponents.APP_CENTER_BROWSE:e=yield import("./js-core.esm65.js"),t=e.AppCenterBrowse;break;case AvailableComponents.APP_CENTER_DETAILS:e=yield import("./js-core.esm65.js"),t=e.AppCenterDetails;break;case AvailableComponents.DATA_CENTER_ENGINE_SELECTION:e=yield import("./js-core.esm64.js"),t=e.DataCenterEngineSelection;break;case AvailableComponents.ADMIN_CENTER_NEW_GROUP_PANEL:e=yield import("./js-core.esm52.js"),t=e.NewGroupPanel;break;case AvailableComponents.PERMISSIONS_PANEL:e=yield import("./js-core.esm47.js"),t=e.PermissionsPanel;break;case AvailableComponents.GROUP_INFO_PANEL:e=yield import("./js-core.esm47.js"),t=e.GroupInfoPanel;break;case AvailableComponents.NEW_PERMISSION_SET_PANEL:e=yield import("./js-core.esm47.js"),t=e.NewPermissionSetPanel;break;case AvailableComponents.PERMISSION_SET_DETAILS_PANEL:e=yield import("./js-core.esm47.js"),t=e.PermissionSetDetailsPanel;break;case AvailableComponents.DATA_CENTER_MDP_IFRAME_PANEL:e=yield import("./js-core.esm45.js"),t=e.MediaDetailsPanelIframe;break;case AvailableComponents.DATA_CENTER_INGESTION_CREATION_PANEL:e=yield import("./js-core.esm45.js"),t=e.IngestionCreationPanel;break;case AvailableComponents.DATA_CENTER_SELECT_IMPORT_SOURCE:e=yield import("./js-core.esm45.js"),t=e.SelectImportSource;break;case AvailableComponents.DATA_CENTER_SOURCE_CREATION_PANEL:e=yield import("./js-core.esm45.js"),t=e.SourceCreationPanel;break;case AvailableComponents.ADMIN_CENTER_GROUP_DETAILS_PANEL:e=yield import("./js-core.esm52.js"),t=e.GroupDetailsPanel;break;case AvailableComponents.ADMIN_CENTER_ADD_MEMBER_PANEL:e=yield import("./js-core.esm52.js"),t=e.AddMemberPanel;break;case AvailableComponents.APPLICATION_DETAILS_PANEL:e=yield import("./js-core.esm60.js"),t=e.ApplicationDetailsPanel;break;case AvailableComponents.PROCESSING_CENTER_SOURCES:e=yield import("./js-core.esm67.js"),t=e.ProcessingCenterSources;break;case AvailableComponents.PROCESSING_CENTER_ERROR_DETAIL:e=yield import("./js-core.esm67.js"),t=e.ErrorDetailPanel;break;case AvailableComponents.USER_APPLICATION_SETTINGS_PANEL:e=yield Promise.resolve().then(function(){return index_esm$3}),t=e.UserApplicationSettingsPanel;break;case AvailableComponents.ADD_APPLICATION_USERS_PANEL:e=yield import("./js-core.esm60.js"),t=e.AddUsersPanel;break;case AvailableComponents.PROCESSING_CENTER_BROWSE:e=yield import("./js-core.esm70.js"),t=e.ProcessingCenterBrowse;break;case AvailableComponents.JOBS_TABLE_SETTINGS_PANEL:e=yield import("./js-core.esm71.js"),t=e.JobsTableSettingsPanel;break;case AvailableComponents.VERSION_PANEL:e=yield import("./js-core.esm40.js"),t=e.VersionPanel;break;case AvailableComponents.PROCESSING_CENTER_DAG_BUILDER:e=yield import("./js-core.esm73.js"),t=e.DagBuilder;break;case AvailableComponents.PROCESSING_CENTER_INGESTION:e=yield import("./js-core.esm74.js").then(function(e){return e.aq}),t=e.ProcessingCenterIngestion;break;case AvailableComponents.PROCESSING_CENTER_ADVANCED_SETTINGS:e=yield import("./js-core.esm74.js").then(function(e){return e.aq}),t=e.ProcessingCenterAdvancedSettings;break;case AvailableComponents.PROCESSING_CENTER_AFFILIATE_PANEL:e=yield import("./js-core.esm74.js").then(function(e){return e.aq}),t=e.ProcessingCenterAffiliatePanel;break;case AvailableComponents.JOBS_DETAILS_PANEL:e=yield import("./js-core.esm71.js"),t=e.JobsDetailsPanel;break;case AvailableComponents.TASKS_TABLE_SETTINGS_PANEL:e=yield import("./js-core.esm72.js"),t=e.TasksTableSettingsPanel;break;case AvailableComponents.RESOURCE_CENTER_BROWSE:e=yield import("./js-core.esm75.js"),t=e.ResourceCenterBrowse;break;case AvailableComponents.PACKAGE_DETAILS_PANEL:e=yield import("./js-core.esm78.js"),t=e.PackageDetails;break;case AvailableComponents.INSTANCE_ADMIN_CENTER_BROWSE:e=yield import("./js-core.esm79.js"),t=e.InstanceAdminCenterBrowse;break;case AvailableComponents.MANAGE_GRANTS:e=yield import("./js-core.esm78.js"),t=e.ManageGrantsPanel;break;case AvailableComponents.SCHEMA_DETAILS_PANEL:e=yield import("./js-core.esm80.js"),t=e.SchemaDetailsPanel;break;case AvailableComponents.USER_DETAILS_PANEL:e=yield import("./js-core.esm61.js"),t=e.UserDetailsPanel}return registry[n]=t}),registerComponent=(e,t)=>{registry[e]=t},WIDGETS_FEATURE_KEY="widgets",initialState$1=(!function(e){e.idle="idle",e.mounting="mounting",e.unmounting="unmounting",e.error="error",e.eventing="eventing"}(WidgetsStatus=WidgetsStatus||{}),{value:[],status:WidgetsStatus.idle}),widgetsSelector=e=>e[name].value,callWidgetOnComplete=(e,t)=>{e=e.find(e=>e.widgetName===t);null!=e&&e.onComplete&&e.onComplete()},{name,reducer,actions:{mountWidget:mountWidget$1,mountWidgetSuccess,mountWidgetError,unmountWidget:unmountWidget$1,unmountWidgetSuccess,unmountWidgetFailure,triggerWidgetCallback,triggerWidgetCallbackSuccess}}=createSlice({name:WIDGETS_FEATURE_KEY,initialState:initialState$1,reducers:{mountWidget:(e,t)=>{e.value.push(t.payload),e.status=WidgetsStatus.mounting},mountWidgetSuccess:e=>{e.status=WidgetsStatus.idle},mountWidgetError:e=>{e.status=WidgetsStatus.error},triggerWidgetCallback:(e,t)=>{e.status=WidgetsStatus.eventing},triggerWidgetCallbackSuccess:e=>{e.status=WidgetsStatus.idle},unmountWidget:(e,t)=>{e.status=WidgetsStatus.unmounting},unmountWidgetSuccess:(e,t)=>{e.value=e.value.filter(e=>e.widgetId!==t.payload),e.status=WidgetsStatus.idle},unmountWidgetFailure:e=>{e.status=WidgetsStatus.error}}});function*mountWidgetListenerSaga(){let a;const s={};yield takeEvery$1(mountWidget$1({}).type,function*(e){try{var{widgetConfig:t={},widgetName:n,elementId:r}=null==e?void 0:e.payload,i=(yield call$f(registryLookup,n))||(()=>jsxRuntime.exports.jsx("div",{children:"Component Not Found."})),o=getElement(r,n);o.classList.add("aiware-el"),s[r]?a=s[r]:(a=client$1.createRoot(o),s[r]=a),a.render(jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(i,Object.assign({},t))}))})})),yield put(mountWidgetSuccess())}catch(e){yield put(mountWidgetError())}}),yield takeEvery$1(e=>/\/booted$/.test(e.type),function*(e){var[e]=e.type.split("/");yield put(triggerWidgetCallback(e))}),yield takeEvery$1(unmountWidget$1("").type,function*(t){try{const e=yield select(e=>{return(null==(e=widgetsSelector(e).find(e=>e.widgetId===t.payload))?void 0:e.elementId)||""});setTimeout(()=>{s[e]&&s[e].unmount(),delete s[e]}),yield put(unmountWidgetSuccess(t.payload))}catch(e){yield put(unmountWidgetFailure())}}),yield takeEvery$1(triggerWidgetCallback("").type,function*(e){var t=yield select(widgetsSelector);callWidgetOnComplete(t,e.payload),yield put(triggerWidgetCallbackSuccess())})}function getWidgetsModule(){return{id:name,reducerMap:{[name]:reducer},sagas:[mountWidgetListenerSaga],initialActions:[]}}function getDataModule(){return{id:"data",reducerMap:{data:(e,{type:t,payload:n})=>{return t===setData({}).type?[...e.filter(e=>e.id!==n.id),n]:e||[]}},sagas:[],initialActions:[]}}const useStyles$2=makeStyles()(e=>({sdkSnackbarContainer:{"& svg":{fill:"white"}}}));function CustomSnackbar(){const n=useDispatch(),[e,t]=react.exports.useState([]),[r,i]=react.exports.useState(!1),[o,a]=react.exports.useState(void 0),{message:s,duration:l}=useSelector(snackbarSelector);var c=useStyles$2()["classes"],u=(react.exports.useEffect(()=>{null!==s&&void 0!==s&&s.content&&t(e=>[...e,s])},[s]),react.exports.useEffect(()=>{e.length&&!o?(a(Object.assign({},e[0])),t(e=>e.slice(1)),i(!0)):e.length&&o&&r&&(n(clearMessage()),i(!1))},[e,o,r,n]),(e,t)=>{"clickaway"!==t&&(i(!1),n(clearMessage()))});return jsxRuntime.exports.jsx(Snackbar$1,Object.assign({anchorOrigin:{vertical:"bottom",horizontal:"right"},open:r,autoHideDuration:l||3e3,onClose:u,TransitionProps:{onExited:()=>{a(void 0),n(clearMessage())}},className:c.sdkSnackbarContainer,"data-snackbarid":(null===o||void 0===o?void 0:o.key)||"na","data-testid":"snackbar.message."+((null===o||void 0===o?void 0:o.severity)||"na")},{children:jsxRuntime.exports.jsx(Alert$1,Object.assign({onClose:u,severity:null===o||void 0===o?void 0:o.severity,elevation:6,variant:"filled"},{children:null===o||void 0===o?void 0:o.content}))}),o?o.key:void 0)}function validateConfig(e){return e.applicationId||console.info("@aiware/js: applicationId is required. Go to developer app to find your application id."),e.baseUrl||console.info("@aiware/js: baseUrl is required. It defaults to the US Commercial environment which is https://api.us-1.veritone.com/v3/graphql"),!0}const ID="openSupportChatButton",DATA_ATTR="open-support-chat-button";var SupportCenterPixel=()=>jsxRuntime.exports.jsx(Portal$1,{children:jsxRuntime.exports.jsx("div",{id:ID,"data-veritone-element":DATA_ATTR,style:{width:1,height:1,position:"fixed",right:55,bottom:20}})});const nameSpace="@helpPanel",updateSelectedTab=createAction(nameSpace+"/UPDATE_SELECTED_TAB",function(e,t){return{payload:{selectedTabId:e,tabLink:t}}}),setCustomKnowledgeBaseUrl=createAction(nameSpace+"/SET_CUSTOM_KNOWLEDGE_BASE_URL",function(e){return{payload:{url:e}}}),setCustomDocsUrl=createAction(nameSpace+"/SET_CUSTOM_DOCS_URL",function(e){return{payload:{url:e}}}),initialState={selectedTabId:0,tabLink:"https://support.veritone.com/",customKnowledgeBaseUrl:"",customDocsUrl:""},getTabLinkReducer=createReducer(initialState,e=>{e.addCase(updateSelectedTab,(e,t)=>Object.assign(Object.assign({},e),{tabLink:t.payload.tabLink,selectedTabId:t.payload.selectedTabId})),e.addCase(setCustomKnowledgeBaseUrl,(e,t)=>Object.assign(Object.assign({},e),{customKnowledgeBaseUrl:t.payload.url})),e.addCase(setCustomDocsUrl,(e,t)=>Object.assign(Object.assign({},e),{customDocsUrl:t.payload.url}))});function*helpSaga(){yield takeEvery$1("OPEN_HELP_LINK",function*(){var e=yield select(e=>e.helpPanel.tabLink);yield put(openLinkOnNewTab({url:e}))})}const namespace="helpPanel",helpCenterSelectedTabIdSelector=e=>null!=e&&e[namespace]?e[namespace].selectedTabId:0,customDocsUrlSelector=e=>null!=e&&e[namespace]?e[namespace].customDocsUrl:"",customKnowledgeBaseUrlSelector=e=>null!=e&&e[namespace]?e[namespace].customKnowledgeBaseUrl:"";function getHelpPanelModule(){return{id:"help",reducerMap:{[namespace]:getTabLinkReducer},sagas:[helpSaga],initialActions:[]}}var knowledgeBaseUrl$1="https://docs.veritone.com/help/index.html",documentUrl$1="https://docs.veritone.com",config={knowledgeBaseUrl:knowledgeBaseUrl$1,documentUrl:documentUrl$1};const useStyles$1=makeStyles()(e=>({root:{height:"calc(100% - 110px)",textAlign:"left","& .Sdk-MuiTab-root.Mui-selected":{color:e.palette.text.primary,fontWeight:600}},tabs:{padding:e.spacing(2.4,6,0,6)},tabPanels:{width:"100%",height:"100%"},aiWareIcon:{position:"relative",maxHeight:50,opacity:"inherit",padding:e.spacing(4,3.2,0,3.2),display:"flex",justifyContent:"flex-end"},customTabs:{margin:e.spacing(0,4)},kbRoot:{height:"100%",textAlign:"left"},loadingContainer:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white"},kbToolBarBox:{padding:e.spacing(6,6,1.6,6)},kbTabContent:{height:"calc(100% - 92px)"},kbTabPanel:{padding:e.spacing(6)},dRoot:{height:"100%",width:"100%"},dNavBar:{height:"100%",overflow:"hidden",background:"#F4F4F4"},dTitle:{color:"#2A323C",fontWeight:600,fontSize:"18px",lineHeight:"24px",padding:e.spacing(3.2)},dContent:{height:"100%",width:"100%",position:"relative"},dMenu:{overflowY:"auto",height:"calc(100% - 52px)"},drawerContainer:{display:"flex",height:"100%",background:e.palette.background.default},tabContainer:{borderRight:"0.5px solid #D5DFE9",overflow:"hidden",height:"100%",width:"100%"},tabName:{borderBottom:"0.5px solid #D5DFE9",display:"flex",justifyContent:"space-between",alignItems:"center",height:"64px",padding:e.spacing(0,6)},actionIcons:{margin:e.spacing(-2.4)},tabContent:{height:"calc(100vh - 57px - 60px)",overflowY:"auto",overflowX:"hidden"}})),documentUrl=config.documentUrl,Documentation=({path:e=documentUrl})=>{var t=useStyles$1()["classes"];const[n,r]=react.exports.useState(!0);return jsxRuntime.exports.jsxs("div",Object.assign({className:classNames(t.dRoot,"hide-in-percy")},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),jsxRuntime.exports.jsx("iframe",{"data-cy":"docs-iframe",title:"Document Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){setTimeout(()=>{r(!1)},1e3)}})]}))},knowledgeBaseUrl=config["knowledgeBaseUrl"];function Knowledgebase({path:e=knowledgeBaseUrl}){var t=useStyles$1()["classes"];const[n,r]=react.exports.useState(!0);return jsxRuntime.exports.jsxs("div",Object.assign({className:t.kbRoot},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),jsxRuntime.exports.jsx("iframe",{"data-cy":"knowledgebase-iframe",title:"Knowledgebase Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){r(!1)}})]}))}const defaultLocale="en-us",tabsList=[{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-help-panel.au1+VZ",defaultMessage:"Knowledgebase",description:"Help Panel: Knowledgebase tab label"}),disabled:!1,url:"https://support.veritone.com/"},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-help-panel.8bnkm8",defaultMessage:"Documentation",description:"Help Panel: Documentation tab label"}),disabled:!1,url:"https://docs.veritone.com/#/aiware/"}];function HelpCenter(){var e=useSelector(initialConfigSelector),t=useSelector(customKnowledgeBaseUrlSelector),n=useSelector(customDocsUrlSelector),r=useSelector(helpCenterSelectedTabIdSelector),i=useSelector(e=>null==e?void 0:e.panels),o=useStyles$1()["classes"],[a]=react.exports.useState(defaultLocale);const s=useDispatch();i=null==i?void 0:i.find(e=>"CUSTOM_HELP_PANEL_ID"===e.panelId),t=i&&t?t:e.knowledgeBaseURL,i=i&&n?n:e.docsURL;return jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getHelpPanelModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,Object.assign({locale:a},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.drawerContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({id:"setting-content",className:o.tabContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.tabContent},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.root},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.tabPanels},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:o.customTabs},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:r,onChangeTab:e=>{s(updateSelectedTab(e,tabsList[e].url))},tabsList:tabsList})})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:o.tabPanels},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:0},{children:jsxRuntime.exports.jsx(Knowledgebase,{path:t})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:1},{children:jsxRuntime.exports.jsx(Documentation,{path:i})}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:o.aiWareIcon},{children:jsxRuntime.exports.jsx("img",{src:img$z,alt:"icon",draggable:"false"})}))]}))}))}))}))}))}))}))}var index_esm=Object.freeze({__proto__:null,HelpCenterPanel:HelpCenter,customDocsUrlSelector:customDocsUrlSelector,customKnowledgeBaseUrlSelector:customKnowledgeBaseUrlSelector,helpCenterSelectedTabIdSelector:helpCenterSelectedTabIdSelector,setCustomDocsUrl:setCustomDocsUrl,setCustomKnowledgeBaseUrl:setCustomKnowledgeBaseUrl,updateSelectedTab:updateSelectedTab});const useStyles=makeStyles()(()=>({dialog:{top:"125px",overflowX:"hidden",overflowY:"hidden",display:"flex",alignItems:"center",flexDirection:"column"},container:{borderRadius:"4px",backgroundColor:"#fff",width:"430px",overflow:"hidden",outline:0,boxShadow:"0px 0px 7px rgba(0, 0, 0, .25)"},header:{textTransform:"capitalize"},appListContainer:{width:"100%"},orgName:{fontWeight:"bold"}})),ApplicationDialog=()=>{const[e,t]=react.exports.useState(null),[n,r]=react.exports.useState(0);var i=useSelector(userSelector$2),o=useStyles()["classes"];const a=useSelector(initialConfigSelector),s=a.applicationId,l=useSelector(applicationSelector),c=useSelector(switchApiSelector);var u=(null===l||void 0===l?void 0:l.application)||[],d=null===l||void 0===l?void 0:l.status;var p=[...u].sort(function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}),f=u.findIndex(e=>e.id===s);useInterval(()=>{t(e=>e&&e-1)},e&&n<3?1e3:null),react.exports.useEffect(()=>{"success"!==(null===l||void 0===l?void 0:l.status)||1!==(null===l||void 0===l?void 0:l.application.length)||(null===l||void 0===l?void 0:l.application[0].id)===a.applicationId||e||(0===e?window.open(c+"/"+(null===l||void 0===l?void 0:l.application[0].id),"_self"):t(10))},[a,l,c,e]);return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(s)&&f<0&&"success"===d?jsxRuntime.exports.jsx(Modal$1,Object.assign({className:o.dialog,open:!0},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.container},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"application-dialog-title",className:o.header,variant:"h1",sx:{px:"30px",pt:"30px"}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-title",defaultMessage:"Application Not Available",description:"Title for modal"})})),jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"10px"}},{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message1",defaultMessage:"Looks like you switched organizations, your current application is not available in the current",description:"Description current application not available"})," ",jsxRuntime.exports.jsx("span",Object.assign({className:o.orgName},{children:null!=(f=null==i?void 0:i.organization)&&f.organizationName?i.organization.organizationName:""}))," ",jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message2",defaultMessage:"organization you are viewing.",description:"Description current application not available"})]})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message3",defaultMessage:"Please select from the available applications below to be redirected.",description:"Instructions for current application not available"})})),e&&jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"},onClick:()=>{r(e=>e+1)}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-countdown-message",defaultMessage:"You will be automatically forwarded to {appName} in {timeRemaining} seconds.",description:"Instructions for current application not available",values:{timeRemaining:e,appName:u[0].name}})})),jsxRuntime.exports.jsx("div",Object.assign({className:o.appListContainer},{children:jsxRuntime.exports.jsx(AppList,{title:"",selectedAppId:null,onSelectApplication:e=>{window.open(c+"/"+e,"_self")},applications:p,useGrid:!1,row:3})}))]}))})):null};class RateLimiter{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}}const rateLimiter=new RateLimiter;function SnackbarRenderer(){return jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getSnackbarModule()]},{children:jsxRuntime.exports.jsx(CustomSnackbar,{})}))}))}store$4.addModules([getWidgetsModule(),getPanelsModule(registry,registryLookup),getDataModule(),getConfigModule(),getAuthModule()]);let hasLoaded=!1;const AppBarPreLoader=()=>{var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&!hasLoaded&&(hasLoaded=!0,setTimeout(()=>{store$4.addModules([getAppbarPanelModule()])},0)),null};function ApplicationDialogPreLoader(){var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&hasLoaded?jsxRuntime.exports.jsx(ApplicationDialog,{}):null}const authHelpers={updateToken(e){e?store$4.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{store$4.dispatch(logout())},1e3)):store$4.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&store$4.dispatch(updateActivityStatus$1())}};function PortalRenderer(){return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(SupportCenterPixel,{}),jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(AppBarPreLoader,{})}))]})}function ApplicationDialogRenderer(){return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ApplicationDialogPreLoader,{})})}))})}const ThemeInitializer=()=>(useTheme(),null),root=getElement("aiWARE"),reactDOMroot=(root.classList.add("aiware-el"),client$1.createRoot(root)),mountWidget=("_auth"===window.name?handleImplicitRedirect(window.location.hash,window.opener):reactDOMroot.render(jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsxs(AIWareThemeProvider,{children:[jsxRuntime.exports.jsx(PortalRenderer,{}),jsxRuntime.exports.jsx(SnackbarRenderer,{}),jsxRuntime.exports.jsx(ApplicationDialogRenderer,{}),jsxRuntime.exports.jsx(ThemeInitializer,{})]})})),(e,t)=>{var n=getUniqueID(),{name:e,elementId:r,config:i}=e;return e&&r&&i||console.error("[aiwarejs-error]: `mountWidget` function should include all the following params: name, elementId, config"),store$4.dispatch(mountWidget$1({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n}),unmountWidget=e=>(store$4.dispatch(unmountWidget$1(e)),!0),mountPanel=(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:r}=e;store$4.dispatch(mountPanel$1({microFrontend:e,panelId:n,panelConfig:r}));const i=[...(null==(e=null==r?void 0:r.header)?void 0:e.actions)||[],...(null==(e=null==r?void 0:r.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);r={id:n,sagas:[function*(){yield takeEvery$1(i.map(e=>e.type),function*(){var e=(yield select(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return store$4.addModule(r),n},unmountPanel=e=>(store$4.dispatch(unmountPanel$1(e)),!0),hidePanel=e=>(store$4.dispatch(hidePanel$1(e)),!0),unmountAllPanel=()=>{store$4.dispatch(unmountAllPanel$1(""))};function init(e,t){validateConfig(e)&&store$4.dispatch(getInitConfig(Object.assign(Object.assign({},e),{onComplete:t})))}function helpCenter(){var e=new HelpCenter$2({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}}function dataCenter(){var e=new DataCenter$1;return{openImporterPanel:e.openImporterPanel.bind(e)}}function handleEvents(){function n(e){if(!e||"string"!=typeof e)throw new SdkError("Please provide a valid event name!");if(!SdkEvents[e])throw new SdkError("Unknown event: "+e)}return{on:function(e,t){n(e),sdkEventManager.on.call(sdkEventManager,e,t)},off:function(e){n(e),sdkEventManager.off.call(sdkEventManager,e)}}}const mountPanelForResponse=e=>mountPanelForResponse$1(e,store$4),aiwareEvents=handleEvents();window&&(window.aiWare_initTesting=()=>{window.aiWare_store=store$4,window.aiWare_theme={darkTheme:darkTheme,lightTheme:lightTheme}},window.aiware={init:init,auth:authHelpers,helpCenter:helpCenter(),dataCenter:dataCenter(),on:aiwareEvents.on,off:aiwareEvents.off,hidePanel:hidePanel,unmountPanel:unmountPanel,store:store$4,registry:registry,registerComponent:registerComponent,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,mountPanel:mountPanel,mountPanelForResponse:mountPanelForResponse,unmountWidget:unmountWidget,version:"sdk_release_version",commit:"659c1346f",releaseDate:"sdk_release_date"});export{flowCenterDialogReducer as $,AIWareIntlProvider as A,Box$1 as B,interopRequireDefault as C,createAction as D,createReducer as E,FormattedMessage$1 as F,Grid$1 as G,createSlice as H,ENGINE_OWNER_TYPES as I,ENGINE_FILTER_TYPES as J,DynamicModuleLoader as K,LoadingButton$1 as L,preferredLanguageSelector as M,baseUrlSelector as N,rootApiSelector as O,Provider$2 as P,sessionTokenSelector as Q,graphEndpointSelector as R,Switch$1 as S,Typography$1 as T,controllerNodeRedImageSelector as U,controllerUrlSelector as V,automateControllerUrlSelector as W,flowCenterDialogSelector as X,automateUrlSelector as Y,Portal$1 as Z,_extends as _,generateUtilityClasses as a,img$T as a$,List$2 as a0,ListItem$1 as a1,ListItemIcon$1 as a2,ListItemText$1 as a3,flowCenterDialogAction as a4,all as a5,img$n as a6,img$o as a7,img$q as a8,img$r as a9,img$b as aA,Dialog$1 as aB,setApiEndpoint as aC,TableContainer$1 as aD,Table$1 as aE,TableHead$1 as aF,TableRow$1 as aG,TableCell$1 as aH,TableSortLabel$1 as aI,TableBody$1 as aJ,img$g as aK,Popper$1 as aL,ClickAwayListener as aM,Fade$1 as aN,img$s as aO,img$p as aP,img$P as aQ,img$B as aR,DialogTitle$1 as aS,DialogContent$1 as aT,DialogActions$1 as aU,Select$1 as aV,MenuItem$1 as aW,Snackbar$1 as aX,default_1 as aY,img$i as aZ,img$k as a_,Divider$1 as aa,Tooltip$1 as ab,IconButton$1 as ac,img$h as ad,img$F as ae,Skeleton$1 as af,takeLatest$1 as ag,fetchAllTags as ah,put as ai,select as aj,fetchFlows as ak,call$f as al,fetchTemplateGallery as am,isRevisionsExistOnServerRequest as an,FormLabel$1 as ao,default_1$5 as ap,FormGroup$1 as aq,FormControlLabel$1 as ar,Checkbox$1 as as,fetchTemplateGalleryFallback as at,Button$1 as au,Card$1 as av,img$l as aw,flowStyles as ax,NoResults as ay,CircularProgress$1 as az,styled$1 as b,createSvgIcon$2 as b$,Tabs$1 as b0,Tab$1 as b1,deleteEngine as b2,fetchEngine as b3,img$j as b4,AIWareFormatMessage as b5,FormattedDate as b6,fetchVeritoneGraphQLApi as b7,useTheme as b8,KeyboardArrowRight as b9,AIWareCacheProvider as bA,img$Q as bB,img$d as bC,img$c as bD,isEmpty_1 as bE,Backdrop$1 as bF,getDefaultMiddleware as bG,isNil_1 as bH,UpDown as bI,Icon$1 as bJ,get_1 as bK,map_1 as bL,keys_1 as bM,RadioGroup$1 as bN,Avatar$1 as bO,img$v as bP,baseGraphQLApi as bQ,FormHelperText$2 as bR,img$f as bS,StyledEngineProvider as bT,ThemeProvider as bU,lightTheme as bV,CssBaseline as bW,Hide as bX,showMessage as bY,MessageSeverity as bZ,Radio$2 as b_,KeyboardArrowLeft as ba,useId as bb,InputUnstyled as bc,isHostComponent as bd,getDefaultExportFromNamespaceIfNotNamed as be,commonjsRequire as bf,_typeof$4 as bg,_inheritsLoose$2 as bh,_assertThisInitialized$1 as bi,React as bj,hoistNonReactStatics_cjs as bk,_defineProperty$1 as bl,reactDom as bm,Transition$1 as bn,__awaiter$a as bo,__generator$2 as bp,__spread as bq,TransitionGroup$1 as br,connect$1 as bs,Bookmark as bt,EngineFlagIcons as bu,createAsyncThunk as bv,withStyles as bw,getConfigModule as bx,getAuthModule as by,getSnackbarModule as bz,Paper$1 as c,_isIndex as c$,_hasPath as c0,_createCompounder as c1,_baseIteratee as c2,isArrayLike_1 as c3,toInteger_1 as c4,_toPropertyKey as c5,_setPrototypeOf$3 as c6,commonjsGlobal$1 as c7,combineReducers as c8,createSelector$1 as c9,baseGraphQLApiWithError as cA,VerifiedFilled as cB,Add as cC,ExpandLess as cD,ExpandMore as cE,Collapse$1 as cF,img$15 as cG,Filter$1 as cH,DynamicTable as cI,useTheme$3 as cJ,getThemeProps as cK,useEnhancedEffect$1 as cL,React$1 as cM,_arrayPush as cN,isArray_1 as cO,_baseToString as cP,_baseTrim as cQ,_castSlice as cR,_stringToArray as cS,toString_1 as cT,ReactIs as cU,upperFirst_1 as cV,isString_1 as cW,_baseGet as cX,_baseSlice as cY,_castPath as cZ,_toKey as c_,fork as ca,AIWareThemeProvider as cb,Stack$4 as cc,Close$1 as cd,FullscreenExit as ce,Fullscreen as cf,TabPanel as cg,default_1$2 as ch,InputAdornment$1 as ci,unmountPanel$1 as cj,AvailableComponents as ck,delay$1 as cl,hidePanel$1 as cm,mountPanel$1 as cn,DialogContentText$1 as co,userSelector$2 as cp,MoreVert as cq,Menu$1 as cr,Edit as cs,Upload as ct,Delete as cu,CustomTabs as cv,useBackupImg as cw,img$1y as cx,validate as cy,configSelector as cz,capitalize$2 as d,_baseMap as d$,channel$1 as d0,useIntl as d1,VideoCamera as d2,Image$1 as d3,Sound as d4,Description as d5,toNumber_1 as d6,ProgressStepper as d7,size_1 as d8,take as d9,ClearIcon as dA,ArrowDropDownIcon as dB,createTheme$1 as dC,systemStyled as dD,useThemeProps$1 as dE,isObject_1 as dF,_arrayMap as dG,_baseEach as dH,_arrayFilter as dI,_getNative as dJ,eq_1 as dK,_root as dL,_Uint8Array as dM,_overArg as dN,_isPrototype as dO,isObjectLike_1 as dP,_baseGetTag as dQ,_arrayLikeKeys as dR,isArguments_1 as dS,isBuffer$3 as dT,isFunction_1 as dU,isTypedArray_1 as dV,_Stack as dW,_baseFor as dX,identity_1 as dY,_isIterateeCall as dZ,isSymbol_1 as d_,CurlyBraces as da,UnknownDocument as db,sdkEventManager as dc,SdkEvents as dd,SdkError as de,EngineClassIcons as df,Mode2 as dg,EngineModeIcons as dh,DeploymentModelIcons as di,guid as dj,EditList as dk,forceReflow as dl,getDefaultExportFromCjs as dm,alpha as dn,useTheme$2 as dp,useControlled as dq,useEventCallback as dr,ButtonBase$1 as ds,useForkRef as dt,usePreviousProps$1 as du,setRef as dv,inputClasses$1 as dw,inputBaseClasses$1 as dx,outlinedInputClasses$1 as dy,filledInputClasses$1 as dz,_objectWithoutPropertiesLoose$2 as e,img$L as e$,_baseUnary as e0,memoizeOne as e1,createBox$1 as e2,_Symbol as e3,_Set as e4,_setToArray as e5,_SetCache as e6,_cacheHas as e7,Slide$1 as e8,updatePanelMicroFrontendProps as e9,img$4 as eA,img$z as eB,takeEvery$1 as eC,enableBetaFeatures as eD,Badge$1 as eE,openLinkOnNewTab as eF,orange$1 as eG,deepOrange$1 as eH,authSelector as eI,headerBarSelector as eJ,getSortName as eK,img$8 as eL,InputLabel$1 as eM,ListItemAvatar$1 as eN,OrganizationTabIcon as eO,ScopedCssBaseline$1 as eP,AlarmTwo as eQ,getApplicationsApi as eR,ListItemSecondaryAction$1 as eS,updateTokenSuccess as eT,postNotificationCommand as eU,aiwareEvent as eV,notificationCommands as eW,panelsSelector as eX,css as eY,avatarClasses as eZ,img$M as e_,setData as ea,useIsFocusVisible as eb,ownerDocument as ec,lighten as ed,darken as ee,slotShouldForwardProp as ef,useSlotProps as eg,keyframes as eh,img$1v as ei,createTheme as ej,injectIntl as ek,TabId as el,PersonalProfile$1 as em,Organizations as en,DataCenter as eo,Process as ep,FlowCenter2 as eq,DeveloperCenter as er,Marketplace$1 as es,LibraryCenter as et,AdminCenter as eu,AdminTabIcon as ev,Resources$1 as ew,DagBuilder as ex,img$S as ey,selectUserCanAccessResourceCenter as ez,clsx as f,StepContext$1 as f$,img$1u as f0,img$1t as f1,img$1s as f2,img$J as f3,img$1w as f4,img$I as f5,emphasize as f6,_arraySome as f7,ErrorBoundary$1 as f8,Information as f9,img$u as fA,img$w as fB,img$3 as fC,FilterRemove as fD,CheckCircle as fE,FolderOpen as fF,Voice as fG,useDoubleClick as fH,FolderFilled as fI,Time as fJ,img$x as fK,Undefined as fL,YoutubeSource as fM,PodcastSource as fN,TVSource as fO,RadioSource as fP,selectOrgId as fQ,selectIsUserAdmin as fR,ErrorState$1 as fS,StepConnector$1 as fT,NullState$2 as fU,Group as fV,gqlIntrospection as fW,PermissionChangedAction as fX,Lock as fY,AddGroup as fZ,StepperContext$1 as f_,NewFolder as fa,SpecialFolder as fb,User as fc,Source as fd,Search$1 as fe,selectIsOLPEnabled as ff,getLibraryModule as fg,cmsUrlSelector as fh,betaFeaturesSelector as fi,UserAddFilled as fj,Popover$1 as fk,MenuList$1 as fl,MoveFolder as fm,img$9 as fn,selectApiConfigs$1 as fo,selectPanelByPanelName as fp,FullScreenContainer as fq,EngineCategoryIcons as fr,Settings$2 as fs,Hamburger as ft,List as fu,Download as fv,MoreHor as fw,selectUserOrgEdgeVersion as fx,EditAttributes as fy,ProcessingDetail as fz,generateUtilityClass as g,mountWidget as g$,SvgIcon$1 as g0,initialConfigSelector as g1,ConfirmationModal as g2,EnumHelpers as g3,formatBytes as g4,NotInterested as g5,mountPanelForResponse$1 as g6,Users as g7,ApplicationTabIcon as g8,SecurityGroup as g9,_objectSpread2 as gA,serialize as gB,stringify$2 as gC,compile as gD,Check as gE,FormattedRelativeTime$1 as gF,Folder as gG,Hidden as gH,ArrowUp as gI,ArrowDown as gJ,toFinite_1 as gK,_baseForOwn as gL,_arrayReduce as gM,hasIn_1 as gN,useSyncExternalStoreExports as gO,tabsClasses$1 as gP,Packages as gQ,Engines as gR,PackagesAvatar as gS,actionChannel as gT,cancelled as gU,flush$3 as gV,cancel as gW,registry as gX,registerComponent as gY,AvailableWidgets as gZ,root as g_,Lock2 as ga,NoApps as gb,green$1 as gc,md5 as gd,selectIsSuperAdmin as ge,AddUser as gf,selectors as gg,LibraryDropdown as gh,Remove as gi,Save as gj,Input$3 as gk,Copy as gl,ArrowForward as gm,Modal$1 as gn,_baseIsEqual as go,OutlinedInput$1 as gp,_getSymbols as gq,stubArray_1 as gr,_baseGetAllKeys as gs,_getTag as gt,_nodeUtil as gu,_getAllKeys as gv,_castFunction as gw,Article as gx,Task as gy,View as gz,composeClasses as h,unmountWidget as h0,mountPanel as h1,unmountPanel as h2,hidePanel as h3,unmountAllPanel as h4,init as h5,aiwareEvents as h6,useDispatch as i,jsxRuntime as j,useSelector as k,authStatusSelector as l,makeStyles as m,authContextSelector as n,AuthContext as o,lodash as p,Alert$1 as q,react as r,store$4 as s,authErrorMessage as t,useThemeProps as u,FormControl$1 as v,TextField$1 as w,classNames as x,resetPasswordRequest as y,createSvgIcon$1 as z};
1398
+ `,graphEndpoint:e,token:t})}catch(e){return{success:!1}}});function*getCurrentUserSaga(){var e=yield select(graphEndpointSelector),t=yield select(sessionTokenSelector),e=yield call$f(getCurrentUserApi,e,t);null!=e&&e.errors&&0<(null==e?void 0:e.errors.length)&&(null==(t=e.errors[0].path)||!t.includes("userSettings"))?(console.error("getCurrentUser error"),yield put(getCurrentUserFail())):(t=Object.assign(Object.assign({},null==(t=null==e?void 0:e.data)?void 0:t.me),{organizationRole:{organizationId:get$3(e,"data.me.organization.id","")},organization:Object.assign({},null==(e=null==(t=null==e?void 0:e.data)?void 0:t.me)?void 0:e.organization)}),yield put(getCurrentUserSuccess(t)))}function*getCurrentApplicationInfoSaga(e){var t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector),e=e.payload["applicationId"],e=yield call$f(getApplicationInfo,e,t,n);null!=e&&e.errors&&0<(null==e?void 0:e.errors.length)?console.error("getCurrentApplicationInfo error"):yield put(getCurrentAppIconSuccess(null==(n=null==(t=null==e?void 0:e.data)?void 0:t.application)?void 0:n.iconUrl))}function*userSaga(){yield all([takeEvery$1(GET_CURRENT_USER,getCurrentUserSaga)]),yield all([takeEvery$1(GET_CURRENT_APP_ICON,getCurrentApplicationInfoSaga)])}function*bootFunction(){yield take(BOOTED)}function*booting(){yield takeEvery$1(BOOTING,bootFunction)}function*logoutListener(e){for(var t=e.payload;;)yield call$f(stashTokenInSession,SESSION_TOKEN_PREVENT_STASH_VALUE),yield take(logout),t?null!=t&&t():yield put(logoutUser$1())}function*notificationActionClickedSaga(e){const t=e.payload;yield takeEvery$1(onNotificationActionClicked,function*(e){t&&(yield call$f(t,e.payload))})}function*handleAppSwitchListenerSetup(e){const t=e.payload;yield takeEvery$1(appSwitcherHandleClick,function*(e){e=e.payload;t?t(e):yield put(appSwitcherHandleClickAppNatively(e))})}function*rootSaga(){yield all([fork(userSaga),fork(booting),takeLatest$1(listenLogout,logoutListener),takeLatest$1(appSwitcherSetupListener,handleAppSwitchListenerSetup),takeLatest$1(initNotificationAction,notificationActionClickedSaga)])}function getAppbarModule(){return{id:"os-app-bar",reducerMap:{[nameSpace$1]:userReducer},sagas:[rootSaga],initialActions:[]}}function App(e){var{onLogout:t,onClickNotificationAction:n,onAppSwitch:r,onClickOrgIcon:i,showNotifications:o,applicationId:a,searchBarMountId:s}=e,e=__rest(e,["onLogout","onClickNotificationAction","onAppSwitch","onShowSettingPanel","onClickOrgIcon","onClickHelpIcon","showNotifications","applicationId","searchBarMountId"]);const l=useDispatch(),[c,u]=react.exports.useState(!1),[d,p]=react.exports.useState(!1),[f,h]=react.exports.useState(!1),[m,g]=react.exports.useState(!1),[v,y]=react.exports.useState(!1),[x,b]=react.exports.useState(!1);var C=(useSelector(userSelector)||{})["currentUser"];const{panels:$=[]}=useSelector(rootSelector);var S=useSelector(unseenNotificationSelector);const w=useSelector(notificationStatusSelector);var E=useSelector(betaFeaturesSelector),C=(C||{})["organization"];const T=useSelector(authSelector)["user"];var{application:_=[]}=useSelector(applicationSelector)||{};const[I,j]=react.exports.useState(!1);const R=useSelector(appIdSelector),O=useSelector(selectApplicationConfig),[L,A]=react.exports.useState(!1);var N=useSelector(selectHasUserCreateRootFolderPermission);const P=gqlIntrospection.isOperationValid("fileApplication","mutation")&&N;function M(){u(!1),h(!1),g(!1),p(!1),y(!1),b(!1)}function k(){null!==$&&void 0!==$&&$.forEach(e=>{l(hidePanel$1(e.panelId))})}return react.exports.useEffect(()=>{var e,t=window.location["search"];l(actions$2.userApplicationSettings.fetchApplicationConfigStart({appId:R})),"?panel=invite-requests"!==t||I||(j(!0),t={name:"INVITE_REQUESTS_PANEL",config:{name:"Invite Requests"}},e={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:0,size:"medium",zIndex:1001,parentPanelId:null,dimmed:0,dimmedStatus:"dimParent",header:{title:"INVITE REQUESTS"}},l(mountPanel$1({panelId:"INVITE_REQUESTS_PANEL",microFrontend:t,panelConfig:e})))},[]),react.exports.useEffect(()=>{null!==O&&void 0!==O&&O.length&&A(!0)},[O]),react.exports.useEffect(()=>{"success"===w&&l(markAllNotificationsSeenRequest())},[w,l]),react.exports.useEffect(()=>{l(getCurrentUser()),a&&l(getCurrentAppIcon({applicationId:a}))},[l,a]),react.exports.useEffect(()=>{l({type:listenLogout().type,payload:t})},[l,t]),react.exports.useEffect(()=>{n&&l(initNotificationAction(n))},[l,n]),react.exports.useEffect(()=>{l({type:appSwitcherSetupListener().type,payload:r})},[l,r]),react.exports.useEffect(()=>{l(onBooted())},[l]),react.exports.useEffect(()=>{$&&0!==$.length||M()},[$]),jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getAppbarModule(),getAppbarPanelModule(),getNotificationModule$1(),getEventsModule(),getUserApplicationSettingsModule()]},{children:jsxRuntime.exports.jsx("div",Object.assign({className:"App",id:"aiware-app-bar","data-testid":"aiware-app-bar"},{children:jsxRuntime.exports.jsx(NewAppBar,Object.assign({isEnableOrgPanel:!1,onCloseSetting:function(){k()},onOpenSetting:function(){var e,t;c?(u(!1),k()):(M(),u(!0),k(),e={name:"APP_BAR_PANEL",config:{name:"Veritone",dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:VERITONE_PANEL_ID,type:"TAB_TEMPLATE",marginTop:55,withTab:!0,width:80,zIndex:1004,userRoles:null===T||void 0===T?void 0:T.roles,header:{divider:!0,title:""},footer:{logo:!0},size:"xlarge",fullScreen:!1},l(mountPanel$1({panelId:VERITONE_PANEL_ID,microFrontend:e,panelConfig:t})))},onOpenHelpCenter:function(){var e,t;d?(p(!1),k()):(M(),k(),p(!0),e={name:"HELP_PANEL",config:{name:"Help panel",dataId:"helpDataId",type:"SIMPLE_PANEL"}},t={panelId:HELP_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,size:"large",header:{divider:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.headerTitle.helpCenter",defaultMessage:"Help Center",description:"The header title for the help center."}),actions:[{iconUrl:img$R,action:{type:"OPEN_HELP_LINK"}}]}},l(mountPanel$1({panelId:HELP_PANEL_ID,microFrontend:e,panelConfig:t})))},onOpenNotification:function(){var e,t;null!=o&&o(),v?(y(!1),k()):(M(),k(),y(!0),e={name:"NOTIFICATION_PANEL",config:{name:"Notification Panel",dataId:"notificationDataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:413,header:{divider:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.panel.notifications",defaultMessage:"Notifications Center",description:"Title of the notifications center panel"}),actions:[]}},l(mountPanel$1({panelId:NOTIFICATION_PANEL_ID,microFrontend:e,panelConfig:t})))},onOpenUserApplicationSettings:function(){var e,t;x?(b(!1),k()):(M(),k(),b(!0),e={name:"USER_APPLICATION_SETTINGS_PANEL",config:{name:"User application settings",dataId:"userApplicationSettingsDataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:USER_APPLICATION_SETTINGS_PANEL,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:320,header:{divider:!1,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header.panelTitle.user-application-name-settings",defaultMessage:"Application Settings",description:"Title of user application name settings panel"})}},l(mountPanel$1({panelId:USER_APPLICATION_SETTINGS_PANEL,microFrontend:e,panelConfig:t})))},onDashboardClick:function(){console.log("HANDLE DASHBOARD CLICK!")},organization:C,onClickOrgIcon:function(){var e,t;null!=i&&i(),m?(g(!1),k()):(M(),k(),g(!0),e={name:"ORGANIZATION_PANEL",config:{name:"Veritone",tabId:TabId.ORGANIZATION_PANEL,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:ORGANIZATION_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:420,header:{divider:!0,title:"ORGANIZATIONS"}},l(mountPanel$1({panelId:ORGANIZATION_PANEL_ID,microFrontend:e,panelConfig:t})))},panels:$,searchBarMountId:s,openSetting:{openHelpPanel:!1,openNotificationPanel:!1,openAppSwitchPanel:!1,openOrgSwitchPanel:!1,openVeritonePanel:!1,openUserApplicationSettingsPanel:!1},unseenCount:S,onClickAppSwitchIcon:function(){var e,t;f?(h(!1),k()):(M(),k(),h(!0),e={name:"APP_BAR_PANEL",config:{name:"APP_BAR_PANEL",tabId:TabId.APP_PANEL,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:APPLICATION_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:720,header:{divider:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header.panelTitle-app-switcher",defaultMessage:"App Switcher",description:"Title of applications panel list"}),actions:P?[{action:{type:"user-app-group/createNewAppGroupPlaceholder"},label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header-action.new-app-group",defaultMessage:"New App Group",description:"New App Group action button"}),variant:"contained",size:"large",color:"primary",submit:!0}]:void 0}},l(mountPanel$1({panelId:APPLICATION_PANEL_ID,microFrontend:e,panelConfig:t})))},applications:_,showDashboardIcon:E,userApplicationSettingsIcon:L},e))}))}))})})}const headerBarSelector=e=>null==e?void 0:e.aiWareHeaderBar,registry={[AvailableWidgets.APP_BAR]:App,[AvailableComponents.APP_BAR_PANEL]:SettingPanelComponent},registryLookup=n=>__awaiter$a(void 0,void 0,void 0,function*(){if(registry[n])return registry[n];let e,t=null;switch(n){case AvailableWidgets.SAMPLE_APP_BAR:e=yield import("./js-core.esm2.js"),t=e.SampleAppBar;break;case AvailableWidgets.RESET_PASSWORD:e=yield import("./js-core.esm4.js"),t=e.ResetPassword;break;case AvailableWidgets.FLOW_CENTER:e=yield import("./js-core.esm7.js"),t=e.App;break;case AvailableWidgets.FLOW_WIDGET:e=yield import("./js-core.esm9.js").then(function(e){return e.i}),t=e.App;break;case AvailableWidgets.ENGINE_CENTER_BROWSE:e=yield import("./js-core.esm21.js"),t=e.EngineCenterBrowse;break;case AvailablePanels.SIMPLE_PANEL:e=yield import("./js-core.esm39.js"),t=e.Panel;break;case AvailablePanels.APP_BAR_PANEL_TEMPLATE:e=yield import("./js-core.esm41.js"),t=e.AppbarPanel;break;case AvailablePanels.APP_BAR_TAB_PANEL_TEMPLATE:e=yield import("./js-core.esm41.js"),t=e.AppbarTabPanel;break;case AvailablePanels.TAB_TEMPLATE:e=yield import("./js-core.esm41.js"),t=e.TabPanel;break;case AvailableComponents.NOTIFICATION_PANEL:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationPanel;break;case AvailableComponents.NOTIFICATION_DETAIL:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationDetailPanel;break;case AvailableComponents.NOTIFICATION_SETTING:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationSetting;break;case AvailableComponents.NOTIFICATION_UTILITY:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationUtilityPanel;break;case AvailableComponents.NOTIFICATION_APPLICATION:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationApplication;break;case AvailableComponents.HELP_PANEL:e=yield Promise.resolve().then(function(){return index_esm}),t=e.HelpCenterPanel;break;case AvailableComponents.EDIT_PROFILE_PICTURE:e=yield Promise.resolve().then(function(){return index_esm$1}),t=e.EditProFilePicture;break;case AvailableComponents.TEST_COMPONENT:e=yield import("./js-core.esm39.js"),t=e.SamplePanel1;break;case AvailableComponents.TEST_COMPONENT2:e=yield import("./js-core.esm39.js"),t=e.SamplePanel2;break;case AvailableComponents.TEST_COMPONENT3:e=yield import("./js-core.esm39.js"),t=e.SamplePanel3;break;case AvailableComponents.SETTING_PREFERENCE:e=yield import("./js-core.esm45.js"),t=e.SettingsPreferencesPanel;break;case AvailableComponents.ORGANIZATION_PANEL:e=yield import("./js-core.esm42.js"),t=e.OrganizationPanel;break;case AvailableComponents.INVITE_USERS_PANEL:e=yield import("./js-core.esm42.js"),t=e.InviteUsersPanel;break;case AvailableComponents.INVITE_REQUESTS_PANEL:e=yield import("./js-core.esm42.js"),t=e.InviteRequestsPanel;break;case AvailableComponents.REVIEW_ORG_INVITE_PANEL:e=yield import("./js-core.esm42.js"),t=e.ReviewRequestPanel;break;case AvailableComponents.ADD_APPLICATIONS:e=yield import("./js-core.esm42.js"),t=e.AddApplicationsPanel;break;case AvailableComponents.DATA_CENTER_BROWSE:e=yield import("./js-core.esm46.js"),t=e.DataCenterBrowse;break;case AvailableComponents.DATA_CENTER_FOLDERS_AND_FILES:e=yield import("./js-core.esm46.js"),t=e.FoldersAndFilesPanel;break;case AvailableComponents.DATA_CENTER_FILE_INFO_PANEL:e=yield import("./js-core.esm46.js"),t=e.FileInfoPanel;break;case AvailableComponents.DATA_CENTER_IMPORTER:e=yield import("./js-core.esm56.js"),t=e.DataCenterImporter;break;case AvailableComponents.DATA_LABELER:e=yield import("./js-core.esm58.js"),t=e.DataLabelerPanel;break;case AvailableComponents.ADMIN_CENTER_OPEN_ID:e=yield import("./js-core.esm59.js"),t=e.AdminCenterOpenId;break;case AvailableComponents.ADMIN_CENTER_BROWSE:e=yield import("./js-core.esm60.js"),t=e.AdminCenterBrowse;break;case AvailableComponents.DATA_CENTER_PROCESS_AI:e=yield import("./js-core.esm65.js"),t=e.DataCenterProcessAI;break;case AvailableComponents.ENGINE_CENTER_NEW:e=yield import("./js-core.esm22.js").then(function(e){return e.h}),t=e.EngineCenterNew;break;case AvailableComponents.ENGINE_CENTER_FILTER:e=yield import("./js-core.esm21.js"),t=e.EngineCenterFilter;break;case AvailableComponents.APP_CENTER_FILTER:e=yield import("./js-core.esm66.js"),t=e.AppCenterFilter;break;case AvailableComponents.ENGINE_CENTER_DETAILS:e=yield import("./js-core.esm21.js"),t=e.EngineDetails;break;case AvailableComponents.ENGINE_CENTER_NEW_BUILD:e=yield import("./js-core.esm21.js"),t=e.CreateNewBuildPanel;break;case AvailableComponents.ENGINE_CENTER_CUSTOM_FIELDS_FORM:e=yield import("./js-core.esm22.js").then(function(e){return e.h}),t=e.EngineCenterCustomFieldsForm;break;case AvailableComponents.ENGINE_CENTER_SCHEMAS_FORM_PANEL:e=yield import("./js-core.esm22.js").then(function(e){return e.h}),t=e.SchemasFormPanel;break;case AvailableComponents.ENGINE_CENTER_INPUT_TYPE_FLYOUT:e=yield import("./js-core.esm22.js").then(function(e){return e.h}),t=e.InputTypeFlyout;break;case AvailableComponents.ENGINE_CENTER_EDIT_RELEASE_NOTES:e=yield import("./js-core.esm21.js"),t=e.EditReleaseNotes;break;case AvailableComponents.ENGINE_CENTER_VERSION_HISTORY_PANEL:e=yield import("./js-core.esm21.js"),t=e.VersionHistoryPanel;break;case AvailableComponents.SUPPORTED_FILE_TYPES:e=yield import("./js-core.esm56.js"),t=e.SupportedFileTypes;break;case AvailableComponents.EDIT_FILE_METADATA:e=yield import("./js-core.esm56.js"),t=e.EditFileMetadata;break;case AvailableWidgets.APP_CENTER_BROWSE:e=yield import("./js-core.esm66.js"),t=e.AppCenterBrowse;break;case AvailableComponents.APP_CENTER_NEW:e=yield import("./js-core.esm67.js"),t=e.AppCenterNew;break;case AvailableComponents.APP_CENTER_ADD_FLOW_PANEL:e=yield import("./js-core.esm67.js"),t=e.AppCenterAddFlowPanel;break;case AvailableComponents.APP_CENTER_ADD_SCHEMA_PANEL:e=yield import("./js-core.esm67.js"),t=e.AppCenterAddSchemaPanel;break;case AvailableComponents.APP_CENTER_CONFIG_FIELDS_FORM:e=yield import("./js-core.esm67.js"),t=e.AppCenterConfigFieldsForm;break;case AvailableComponents.APP_CENTER_CONTEXT_MENU_EXTENSIONS:e=yield import("./js-core.esm67.js"),t=e.AppCenterContextMenuExtensionPanel;break;case AvailableComponents.APP_CENTER_EVENT_PANEL:e=yield import("./js-core.esm67.js"),t=e.AppCenterEventPanel;break;case AvailableComponents.APP_CENTER_AUTOMATE_PALETTE_INTEGRATION_PANEL:e=yield import("./js-core.esm67.js"),t=e.AppCenterPaletteIntegrationPanel;break;case AvailableComponents.APP_CENTER_BROWSE:e=yield import("./js-core.esm66.js"),t=e.AppCenterBrowse;break;case AvailableComponents.APP_CENTER_DETAILS:e=yield import("./js-core.esm66.js"),t=e.AppCenterDetails;break;case AvailableComponents.DATA_CENTER_ENGINE_SELECTION:e=yield import("./js-core.esm65.js"),t=e.DataCenterEngineSelection;break;case AvailableComponents.ADMIN_CENTER_NEW_GROUP_PANEL:e=yield import("./js-core.esm53.js"),t=e.NewGroupPanel;break;case AvailableComponents.PERMISSIONS_PANEL:e=yield import("./js-core.esm48.js"),t=e.PermissionsPanel;break;case AvailableComponents.GROUP_INFO_PANEL:e=yield import("./js-core.esm48.js"),t=e.GroupInfoPanel;break;case AvailableComponents.NEW_PERMISSION_SET_PANEL:e=yield import("./js-core.esm48.js"),t=e.NewPermissionSetPanel;break;case AvailableComponents.PERMISSION_SET_DETAILS_PANEL:e=yield import("./js-core.esm48.js"),t=e.PermissionSetDetailsPanel;break;case AvailableComponents.DATA_CENTER_MDP_IFRAME_PANEL:e=yield import("./js-core.esm46.js"),t=e.MediaDetailsPanelIframe;break;case AvailableComponents.DATA_CENTER_INGESTION_CREATION_PANEL:e=yield import("./js-core.esm46.js"),t=e.IngestionCreationPanel;break;case AvailableComponents.DATA_CENTER_SELECT_IMPORT_SOURCE:e=yield import("./js-core.esm46.js"),t=e.SelectImportSource;break;case AvailableComponents.DATA_CENTER_SOURCE_CREATION_PANEL:e=yield import("./js-core.esm46.js"),t=e.SourceCreationPanel;break;case AvailableComponents.ADMIN_CENTER_GROUP_DETAILS_PANEL:e=yield import("./js-core.esm53.js"),t=e.GroupDetailsPanel;break;case AvailableComponents.ADMIN_CENTER_ADD_MEMBER_PANEL:e=yield import("./js-core.esm53.js"),t=e.AddMemberPanel;break;case AvailableComponents.APPLICATION_DETAILS_PANEL:e=yield import("./js-core.esm61.js"),t=e.ApplicationDetailsPanel;break;case AvailableComponents.PROCESSING_CENTER_SOURCES:e=yield import("./js-core.esm68.js"),t=e.ProcessingCenterSources;break;case AvailableComponents.PROCESSING_CENTER_ERROR_DETAIL:e=yield import("./js-core.esm68.js"),t=e.ErrorDetailPanel;break;case AvailableComponents.USER_APPLICATION_SETTINGS_PANEL:e=yield Promise.resolve().then(function(){return index_esm$3}),t=e.UserApplicationSettingsPanel;break;case AvailableComponents.ADD_APPLICATION_USERS_PANEL:e=yield import("./js-core.esm61.js"),t=e.AddUsersPanel;break;case AvailableComponents.PROCESSING_CENTER_BROWSE:e=yield import("./js-core.esm71.js"),t=e.ProcessingCenterBrowse;break;case AvailableComponents.JOBS_TABLE_SETTINGS_PANEL:e=yield import("./js-core.esm72.js"),t=e.JobsTableSettingsPanel;break;case AvailableComponents.VERSION_PANEL:e=yield import("./js-core.esm41.js"),t=e.VersionPanel;break;case AvailableComponents.PROCESSING_CENTER_DAG_BUILDER:e=yield import("./js-core.esm74.js"),t=e.DagBuilder;break;case AvailableComponents.PROCESSING_CENTER_INGESTION:e=yield import("./js-core.esm75.js").then(function(e){return e.at}),t=e.ProcessingCenterIngestion;break;case AvailableComponents.PROCESSING_CENTER_ADVANCED_SETTINGS:e=yield import("./js-core.esm75.js").then(function(e){return e.at}),t=e.ProcessingCenterAdvancedSettings;break;case AvailableComponents.PROCESSING_CENTER_AFFILIATE_PANEL:e=yield import("./js-core.esm75.js").then(function(e){return e.at}),t=e.ProcessingCenterAffiliatePanel;break;case AvailableComponents.JOBS_DETAILS_PANEL:e=yield import("./js-core.esm72.js"),t=e.JobsDetailsPanel;break;case AvailableComponents.TASKS_TABLE_SETTINGS_PANEL:e=yield import("./js-core.esm73.js"),t=e.TasksTableSettingsPanel;break;case AvailableComponents.RESOURCE_CENTER_BROWSE:e=yield import("./js-core.esm77.js"),t=e.ResourceCenterBrowse;break;case AvailableComponents.PACKAGE_DETAILS_PANEL:e=yield import("./js-core.esm80.js"),t=e.PackageDetails;break;case AvailableComponents.PACKAGE_MANAGER_PANEL:e=yield import("./js-core.esm81.js").then(function(e){return e.F}),t=e.PackageManager;break;case AvailableComponents.INSTANCE_ADMIN_CENTER_BROWSE:e=yield import("./js-core.esm82.js"),t=e.InstanceAdminCenterBrowse;break;case AvailableComponents.MANAGE_GRANTS:e=yield import("./js-core.esm80.js"),t=e.ManageGrantsPanel;break;case AvailableComponents.SCHEMA_DETAILS_PANEL:e=yield import("./js-core.esm83.js"),t=e.SchemaDetailsPanel;break;case AvailableComponents.USER_DETAILS_PANEL:e=yield import("./js-core.esm62.js"),t=e.UserDetailsPanel}return registry[n]=t}),registerComponent=(e,t)=>{registry[e]=t},WIDGETS_FEATURE_KEY="widgets",initialState$1=(!function(e){e.idle="idle",e.mounting="mounting",e.unmounting="unmounting",e.error="error",e.eventing="eventing"}(WidgetsStatus=WidgetsStatus||{}),{value:[],status:WidgetsStatus.idle}),widgetsSelector=e=>e[name].value,callWidgetOnComplete=(e,t)=>{e=e.find(e=>e.widgetName===t);null!=e&&e.onComplete&&e.onComplete()},{name,reducer,actions:{mountWidget:mountWidget$1,mountWidgetSuccess,mountWidgetError,unmountWidget:unmountWidget$1,unmountWidgetSuccess,unmountWidgetFailure,triggerWidgetCallback,triggerWidgetCallbackSuccess}}=createSlice({name:WIDGETS_FEATURE_KEY,initialState:initialState$1,reducers:{mountWidget:(e,t)=>{e.value.push(t.payload),e.status=WidgetsStatus.mounting},mountWidgetSuccess:e=>{e.status=WidgetsStatus.idle},mountWidgetError:e=>{e.status=WidgetsStatus.error},triggerWidgetCallback:(e,t)=>{e.status=WidgetsStatus.eventing},triggerWidgetCallbackSuccess:e=>{e.status=WidgetsStatus.idle},unmountWidget:(e,t)=>{e.status=WidgetsStatus.unmounting},unmountWidgetSuccess:(e,t)=>{e.value=e.value.filter(e=>e.widgetId!==t.payload),e.status=WidgetsStatus.idle},unmountWidgetFailure:e=>{e.status=WidgetsStatus.error}}});function*mountWidgetListenerSaga(){let a;const s={};yield takeEvery$1(mountWidget$1({}).type,function*(e){try{var{widgetConfig:t={},widgetName:n,elementId:r}=null==e?void 0:e.payload,i=(yield call$f(registryLookup,n))||(()=>jsxRuntime.exports.jsx("div",{children:"Component Not Found."})),o=getElement(r,n);o.classList.add("aiware-el"),s[r]?a=s[r]:(a=client$1.createRoot(o),s[r]=a),a.render(jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(i,Object.assign({},t))}))})})),yield put(mountWidgetSuccess())}catch(e){yield put(mountWidgetError())}}),yield takeEvery$1(e=>/\/booted$/.test(e.type),function*(e){var[e]=e.type.split("/");yield put(triggerWidgetCallback(e))}),yield takeEvery$1(unmountWidget$1("").type,function*(t){try{const e=yield select(e=>{return(null==(e=widgetsSelector(e).find(e=>e.widgetId===t.payload))?void 0:e.elementId)||""});setTimeout(()=>{s[e]&&s[e].unmount(),delete s[e]}),yield put(unmountWidgetSuccess(t.payload))}catch(e){yield put(unmountWidgetFailure())}}),yield takeEvery$1(triggerWidgetCallback("").type,function*(e){var t=yield select(widgetsSelector);callWidgetOnComplete(t,e.payload),yield put(triggerWidgetCallbackSuccess())})}function getWidgetsModule(){return{id:name,reducerMap:{[name]:reducer},sagas:[mountWidgetListenerSaga],initialActions:[]}}function getDataModule(){return{id:"data",reducerMap:{data:(e,{type:t,payload:n})=>{return t===setData({}).type?[...e.filter(e=>e.id!==n.id),n]:e||[]}},sagas:[],initialActions:[]}}const useStyles$2=makeStyles()(e=>({sdkSnackbarContainer:{"& svg":{fill:"white"}}}));function CustomSnackbar(){const n=useDispatch(),[e,t]=react.exports.useState([]),[r,i]=react.exports.useState(!1),[o,a]=react.exports.useState(void 0),{message:s,duration:l}=useSelector(snackbarSelector);var c=useStyles$2()["classes"],u=(react.exports.useEffect(()=>{null!==s&&void 0!==s&&s.content&&t(e=>[...e,s])},[s]),react.exports.useEffect(()=>{e.length&&!o?(a(Object.assign({},e[0])),t(e=>e.slice(1)),i(!0)):e.length&&o&&r&&(n(clearMessage()),i(!1))},[e,o,r,n]),(e,t)=>{"clickaway"!==t&&(i(!1),n(clearMessage()))});return jsxRuntime.exports.jsx(Snackbar$1,Object.assign({anchorOrigin:{vertical:"bottom",horizontal:"right"},open:r,autoHideDuration:l||3e3,onClose:u,TransitionProps:{onExited:()=>{a(void 0),n(clearMessage())}},className:c.sdkSnackbarContainer,"data-snackbarid":(null===o||void 0===o?void 0:o.key)||"na","data-testid":"snackbar.message."+((null===o||void 0===o?void 0:o.severity)||"na")},{children:jsxRuntime.exports.jsx(Alert$1,Object.assign({onClose:u,severity:null===o||void 0===o?void 0:o.severity,elevation:6,variant:"filled"},{children:null===o||void 0===o?void 0:o.content}))}),o?o.key:void 0)}function validateConfig(e){return e.applicationId||console.info("@aiware/js: applicationId is required. Go to developer app to find your application id."),e.baseUrl||console.info("@aiware/js: baseUrl is required. It defaults to the US Commercial environment which is https://api.us-1.veritone.com/v3/graphql"),!0}const ID="openSupportChatButton",DATA_ATTR="open-support-chat-button";var SupportCenterPixel=()=>jsxRuntime.exports.jsx(Portal$1,{children:jsxRuntime.exports.jsx("div",{id:ID,"data-veritone-element":DATA_ATTR,style:{width:1,height:1,position:"fixed",right:55,bottom:20}})});const nameSpace="@helpPanel",updateSelectedTab=createAction(nameSpace+"/UPDATE_SELECTED_TAB",function(e,t){return{payload:{selectedTabId:e,tabLink:t}}}),setCustomKnowledgeBaseUrl=createAction(nameSpace+"/SET_CUSTOM_KNOWLEDGE_BASE_URL",function(e){return{payload:{url:e}}}),setCustomDocsUrl=createAction(nameSpace+"/SET_CUSTOM_DOCS_URL",function(e){return{payload:{url:e}}}),initialState={selectedTabId:0,tabLink:"https://support.veritone.com/",customKnowledgeBaseUrl:"",customDocsUrl:""},getTabLinkReducer=createReducer(initialState,e=>{e.addCase(updateSelectedTab,(e,t)=>Object.assign(Object.assign({},e),{tabLink:t.payload.tabLink,selectedTabId:t.payload.selectedTabId})),e.addCase(setCustomKnowledgeBaseUrl,(e,t)=>Object.assign(Object.assign({},e),{customKnowledgeBaseUrl:t.payload.url})),e.addCase(setCustomDocsUrl,(e,t)=>Object.assign(Object.assign({},e),{customDocsUrl:t.payload.url}))});function*helpSaga(){yield takeEvery$1("OPEN_HELP_LINK",function*(){var e=yield select(e=>e.helpPanel.tabLink);yield put(openLinkOnNewTab({url:e}))})}const namespace="helpPanel",helpCenterSelectedTabIdSelector=e=>null!=e&&e[namespace]?e[namespace].selectedTabId:0,customDocsUrlSelector=e=>null!=e&&e[namespace]?e[namespace].customDocsUrl:"",customKnowledgeBaseUrlSelector=e=>null!=e&&e[namespace]?e[namespace].customKnowledgeBaseUrl:"";function getHelpPanelModule(){return{id:"help",reducerMap:{[namespace]:getTabLinkReducer},sagas:[helpSaga],initialActions:[]}}var knowledgeBaseUrl$1="https://docs.veritone.com/help/index.html",documentUrl$1="https://docs.veritone.com",config={knowledgeBaseUrl:knowledgeBaseUrl$1,documentUrl:documentUrl$1};const useStyles$1=makeStyles()(e=>({root:{height:"calc(100% - 110px)",textAlign:"left","& .Sdk-MuiTab-root.Mui-selected":{color:e.palette.text.primary,fontWeight:600}},tabs:{padding:e.spacing(2.4,6,0,6)},tabPanels:{width:"100%",height:"100%"},aiWareIcon:{position:"relative",maxHeight:50,opacity:"inherit",padding:e.spacing(4,3.2,0,3.2),display:"flex",justifyContent:"flex-end"},customTabs:{margin:e.spacing(0,4)},kbRoot:{height:"100%",textAlign:"left"},loadingContainer:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white"},kbToolBarBox:{padding:e.spacing(6,6,1.6,6)},kbTabContent:{height:"calc(100% - 92px)"},kbTabPanel:{padding:e.spacing(6)},dRoot:{height:"100%",width:"100%"},dNavBar:{height:"100%",overflow:"hidden",background:"#F4F4F4"},dTitle:{color:"#2A323C",fontWeight:600,fontSize:"18px",lineHeight:"24px",padding:e.spacing(3.2)},dContent:{height:"100%",width:"100%",position:"relative"},dMenu:{overflowY:"auto",height:"calc(100% - 52px)"},drawerContainer:{display:"flex",height:"100%",background:e.palette.background.default},tabContainer:{borderRight:"0.5px solid #D5DFE9",overflow:"hidden",height:"100%",width:"100%"},tabName:{borderBottom:"0.5px solid #D5DFE9",display:"flex",justifyContent:"space-between",alignItems:"center",height:"64px",padding:e.spacing(0,6)},actionIcons:{margin:e.spacing(-2.4)},tabContent:{height:"calc(100vh - 57px - 60px)",overflowY:"auto",overflowX:"hidden"}})),documentUrl=config.documentUrl,Documentation=({path:e=documentUrl})=>{var t=useStyles$1()["classes"];const[n,r]=react.exports.useState(!0);return jsxRuntime.exports.jsxs("div",Object.assign({className:classNames(t.dRoot,"hide-in-percy")},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),jsxRuntime.exports.jsx("iframe",{"data-cy":"docs-iframe",title:"Document Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){setTimeout(()=>{r(!1)},1e3)}})]}))},knowledgeBaseUrl=config["knowledgeBaseUrl"];function Knowledgebase({path:e=knowledgeBaseUrl}){var t=useStyles$1()["classes"];const[n,r]=react.exports.useState(!0);return jsxRuntime.exports.jsxs("div",Object.assign({className:t.kbRoot},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),jsxRuntime.exports.jsx("iframe",{"data-cy":"knowledgebase-iframe",title:"Knowledgebase Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){r(!1)}})]}))}const defaultLocale="en-us",tabsList=[{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-help-panel.au1+VZ",defaultMessage:"Knowledgebase",description:"Help Panel: Knowledgebase tab label"}),disabled:!1,url:"https://support.veritone.com/"},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-help-panel.8bnkm8",defaultMessage:"Documentation",description:"Help Panel: Documentation tab label"}),disabled:!1,url:"https://docs.veritone.com/#/aiware/"}];function HelpCenter(){var e=useSelector(initialConfigSelector),t=useSelector(customKnowledgeBaseUrlSelector),n=useSelector(customDocsUrlSelector),r=useSelector(helpCenterSelectedTabIdSelector),i=useSelector(e=>null==e?void 0:e.panels),o=useStyles$1()["classes"],[a]=react.exports.useState(defaultLocale);const s=useDispatch();i=null==i?void 0:i.find(e=>"CUSTOM_HELP_PANEL_ID"===e.panelId),t=i&&t?t:e.knowledgeBaseURL,i=i&&n?n:e.docsURL;return jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getHelpPanelModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,Object.assign({locale:a},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.drawerContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({id:"setting-content",className:o.tabContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.tabContent},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.root},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.tabPanels},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:o.customTabs},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:r,onChangeTab:e=>{s(updateSelectedTab(e,tabsList[e].url))},tabsList:tabsList})})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:o.tabPanels},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:0},{children:jsxRuntime.exports.jsx(Knowledgebase,{path:t})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:1},{children:jsxRuntime.exports.jsx(Documentation,{path:i})}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:o.aiWareIcon},{children:jsxRuntime.exports.jsx("img",{src:img$z,alt:"icon",draggable:"false"})}))]}))}))}))}))}))}))}))}var index_esm=Object.freeze({__proto__:null,HelpCenterPanel:HelpCenter,customDocsUrlSelector:customDocsUrlSelector,customKnowledgeBaseUrlSelector:customKnowledgeBaseUrlSelector,helpCenterSelectedTabIdSelector:helpCenterSelectedTabIdSelector,setCustomDocsUrl:setCustomDocsUrl,setCustomKnowledgeBaseUrl:setCustomKnowledgeBaseUrl,updateSelectedTab:updateSelectedTab});const useStyles=makeStyles()(()=>({dialog:{top:"125px",overflowX:"hidden",overflowY:"hidden",display:"flex",alignItems:"center",flexDirection:"column"},container:{borderRadius:"4px",backgroundColor:"#fff",width:"430px",overflow:"hidden",outline:0,boxShadow:"0px 0px 7px rgba(0, 0, 0, .25)"},header:{textTransform:"capitalize"},appListContainer:{width:"100%"},orgName:{fontWeight:"bold"}})),ApplicationDialog=()=>{const[e,t]=react.exports.useState(null),[n,r]=react.exports.useState(0);var i=useSelector(userSelector$2),o=useStyles()["classes"];const a=useSelector(initialConfigSelector),s=a.applicationId,l=useSelector(applicationSelector),c=useSelector(switchApiSelector);var u=(null===l||void 0===l?void 0:l.application)||[],d=null===l||void 0===l?void 0:l.status;var p=[...u].sort(function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}),f=u.findIndex(e=>e.id===s);useInterval(()=>{t(e=>e&&e-1)},e&&n<3?1e3:null),react.exports.useEffect(()=>{"success"!==(null===l||void 0===l?void 0:l.status)||1!==(null===l||void 0===l?void 0:l.application.length)||(null===l||void 0===l?void 0:l.application[0].id)===a.applicationId||e||(0===e?window.open(c+"/"+(null===l||void 0===l?void 0:l.application[0].id),"_self"):t(10))},[a,l,c,e]);return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(s)&&f<0&&"success"===d?jsxRuntime.exports.jsx(Modal$1,Object.assign({className:o.dialog,open:!0},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.container},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"application-dialog-title",className:o.header,variant:"h1",sx:{px:"30px",pt:"30px"}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-title",defaultMessage:"Application Not Available",description:"Title for modal"})})),jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"10px"}},{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message1",defaultMessage:"Looks like you switched organizations, your current application is not available in the current",description:"Description current application not available"})," ",jsxRuntime.exports.jsx("span",Object.assign({className:o.orgName},{children:null!=(f=null==i?void 0:i.organization)&&f.organizationName?i.organization.organizationName:""}))," ",jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message2",defaultMessage:"organization you are viewing.",description:"Description current application not available"})]})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message3",defaultMessage:"Please select from the available applications below to be redirected.",description:"Instructions for current application not available"})})),e&&jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"},onClick:()=>{r(e=>e+1)}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-countdown-message",defaultMessage:"You will be automatically forwarded to {appName} in {timeRemaining} seconds.",description:"Instructions for current application not available",values:{timeRemaining:e,appName:u[0].name}})})),jsxRuntime.exports.jsx("div",Object.assign({className:o.appListContainer},{children:jsxRuntime.exports.jsx(AppList,{title:"",selectedAppId:null,onSelectApplication:e=>{window.open(c+"/"+e,"_self")},applications:p,useGrid:!1,row:3})}))]}))})):null};class RateLimiter{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}}const rateLimiter=new RateLimiter;function SnackbarRenderer(){return jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getSnackbarModule()]},{children:jsxRuntime.exports.jsx(CustomSnackbar,{})}))}))}store$4.addModules([getWidgetsModule(),getPanelsModule(registry,registryLookup),getDataModule(),getConfigModule(),getAuthModule()]);let hasLoaded=!1;const AppBarPreLoader=()=>{var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&!hasLoaded&&(hasLoaded=!0,setTimeout(()=>{store$4.addModules([getAppbarPanelModule()])},0)),null};function ApplicationDialogPreLoader(){var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&hasLoaded?jsxRuntime.exports.jsx(ApplicationDialog,{}):null}const authHelpers={updateToken(e){e?store$4.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{store$4.dispatch(logout())},1e3)):store$4.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&store$4.dispatch(updateActivityStatus$1())}};function PortalRenderer(){return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(SupportCenterPixel,{}),jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(AppBarPreLoader,{})}))]})}function ApplicationDialogRenderer(){return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ApplicationDialogPreLoader,{})})}))})}const ThemeInitializer=()=>(useTheme(),null),root=getElement("aiWARE"),reactDOMroot=(root.classList.add("aiware-el"),client$1.createRoot(root)),mountWidget=("_auth"===window.name?handleImplicitRedirect(window.location.hash,window.opener):reactDOMroot.render(jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsxs(AIWareThemeProvider,{children:[jsxRuntime.exports.jsx(PortalRenderer,{}),jsxRuntime.exports.jsx(SnackbarRenderer,{}),jsxRuntime.exports.jsx(ApplicationDialogRenderer,{}),jsxRuntime.exports.jsx(ThemeInitializer,{})]})})),(e,t)=>{var n=getUniqueID(),{name:e,elementId:r,config:i}=e;return e&&r&&i||console.error("[aiwarejs-error]: `mountWidget` function should include all the following params: name, elementId, config"),store$4.dispatch(mountWidget$1({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n}),unmountWidget=e=>(store$4.dispatch(unmountWidget$1(e)),!0),mountPanel=(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:r}=e;store$4.dispatch(mountPanel$1({microFrontend:e,panelId:n,panelConfig:r}));const i=[...(null==(e=null==r?void 0:r.header)?void 0:e.actions)||[],...(null==(e=null==r?void 0:r.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);r={id:n,sagas:[function*(){yield takeEvery$1(i.map(e=>e.type),function*(){var e=(yield select(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return store$4.addModule(r),n},unmountPanel=e=>(store$4.dispatch(unmountPanel$1(e)),!0),hidePanel=e=>(store$4.dispatch(hidePanel$1(e)),!0),unmountAllPanel=()=>{store$4.dispatch(unmountAllPanel$1(""))};function init(e,t){validateConfig(e)&&store$4.dispatch(getInitConfig(Object.assign(Object.assign({},e),{onComplete:t})))}function helpCenter(){var e=new HelpCenter$2({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}}function dataCenter(){var e=new DataCenter$1;return{openImporterPanel:e.openImporterPanel.bind(e)}}function handleEvents(){function n(e){if(!e||"string"!=typeof e)throw new SdkError("Please provide a valid event name!");if(!SdkEvents[e])throw new SdkError("Unknown event: "+e)}return{on:function(e,t){n(e),sdkEventManager.on.call(sdkEventManager,e,t)},off:function(e){n(e),sdkEventManager.off.call(sdkEventManager,e)}}}const mountPanelForResponse=e=>mountPanelForResponse$1(e,store$4),aiwareEvents=handleEvents();window&&(window.aiWare_initTesting=()=>{window.aiWare_store=store$4,window.aiWare_theme={darkTheme:darkTheme,lightTheme:lightTheme}},window.aiware={init:init,auth:authHelpers,helpCenter:helpCenter(),dataCenter:dataCenter(),on:aiwareEvents.on,off:aiwareEvents.off,hidePanel:hidePanel,unmountPanel:unmountPanel,store:store$4,registry:registry,registerComponent:registerComponent,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,mountPanel:mountPanel,mountPanelForResponse:mountPanelForResponse,unmountWidget:unmountWidget,version:"sdk_release_version",commit:"229c9b1dd",releaseDate:"sdk_release_date"});export{DynamicModuleLoader as $,AIWareIntlProvider as A,Box$1 as B,resetPasswordRequest as C,InputAdornment$1 as D,IconButton$1 as E,FormattedMessage$1 as F,Grid$1 as G,Select$1 as H,InputLabel$1 as I,Location as J,Button$1 as K,LoadingButton$1 as L,MenuItem$1 as M,Divider$1 as N,OutlinedInput$1 as O,Provider$2 as P,createTheme$1 as Q,systemStyled as R,Switch$1 as S,Typography$1 as T,useThemeProps$1 as U,createAction as V,createReducer as W,createSlice as X,ENGINE_OWNER_TYPES as Y,ENGINE_FILTER_TYPES as Z,_extends as _,generateUtilityClasses as a,DialogTitle$1 as a$,preferredLanguageSelector as a0,baseUrlSelector as a1,rootApiSelector as a2,sessionTokenSelector as a3,graphEndpointSelector as a4,controllerNodeRedImageSelector as a5,controllerUrlSelector as a6,automateControllerUrlSelector as a7,flowCenterDialogSelector as a8,automateUrlSelector as a9,FormGroup$1 as aA,FormControlLabel$1 as aB,Checkbox$1 as aC,fetchTemplateGalleryFallback as aD,Card$1 as aE,img$l as aF,flowStyles as aG,NoResults as aH,CircularProgress$1 as aI,img$b as aJ,Dialog$1 as aK,setApiEndpoint as aL,TableContainer$1 as aM,Table$1 as aN,TableHead$1 as aO,TableRow$1 as aP,TableCell$1 as aQ,TableSortLabel$1 as aR,TableBody$1 as aS,img$g as aT,Popper$1 as aU,ClickAwayListener as aV,Fade$1 as aW,img$s as aX,img$p as aY,img$P as aZ,img$B as a_,Portal$1 as aa,flowCenterDialogReducer as ab,List$2 as ac,ListItem$1 as ad,ListItemIcon$1 as ae,ListItemText$1 as af,flowCenterDialogAction as ag,all as ah,img$n as ai,img$o as aj,img$q as ak,img$r as al,Tooltip$1 as am,img$h as an,img$F as ao,Skeleton$1 as ap,takeLatest$1 as aq,fetchAllTags as ar,put as as,select as at,fetchFlows as au,call$f as av,fetchTemplateGallery as aw,isRevisionsExistOnServerRequest as ax,FormLabel$1 as ay,default_1$5 as az,styled$1 as b,ThemeProvider as b$,DialogContent$1 as b0,DialogActions$1 as b1,Snackbar$1 as b2,default_1 as b3,img$i as b4,img$k as b5,img$T as b6,Tabs$1 as b7,Tab$1 as b8,deleteEngine as b9,Bookmark as bA,EngineFlagIcons as bB,createAsyncThunk as bC,withStyles as bD,getConfigModule as bE,getAuthModule as bF,getSnackbarModule as bG,AIWareCacheProvider as bH,img$Q as bI,img$d as bJ,img$c as bK,isEmpty_1 as bL,Backdrop$1 as bM,getDefaultMiddleware as bN,isNil_1 as bO,UpDown as bP,Icon$1 as bQ,get_1 as bR,map_1 as bS,keys_1 as bT,RadioGroup$1 as bU,Avatar$1 as bV,img$v as bW,baseGraphQLApi as bX,FormHelperText$2 as bY,img$f as bZ,StyledEngineProvider as b_,fetchEngine as ba,img$j as bb,AIWareFormatMessage as bc,FormattedDate as bd,fetchVeritoneGraphQLApi as be,useTheme as bf,KeyboardArrowRight as bg,KeyboardArrowLeft as bh,useId as bi,InputUnstyled as bj,isHostComponent as bk,getDefaultExportFromNamespaceIfNotNamed as bl,commonjsRequire as bm,_typeof$4 as bn,_inheritsLoose$2 as bo,_assertThisInitialized$1 as bp,React as bq,hoistNonReactStatics_cjs as br,_defineProperty$1 as bs,reactDom as bt,Transition$1 as bu,__awaiter$a as bv,__generator$2 as bw,__spread as bx,TransitionGroup$1 as by,connect$1 as bz,Paper$1 as c,upperFirst_1 as c$,lightTheme as c0,CssBaseline as c1,Hide as c2,showMessage as c3,MessageSeverity as c4,Radio$2 as c5,createSvgIcon$2 as c6,_hasPath as c7,_createCompounder as c8,_baseIteratee as c9,Delete as cA,CustomTabs as cB,useBackupImg as cC,img$1y as cD,validate as cE,configSelector as cF,baseGraphQLApiWithError as cG,VerifiedFilled as cH,Add as cI,ExpandLess as cJ,ExpandMore as cK,Collapse$1 as cL,img$15 as cM,Filter$1 as cN,DynamicTable as cO,useTheme$3 as cP,getThemeProps as cQ,useEnhancedEffect$1 as cR,React$1 as cS,_arrayPush as cT,isArray_1 as cU,_baseToString as cV,_baseTrim as cW,_castSlice as cX,_stringToArray as cY,toString_1 as cZ,ReactIs as c_,isArrayLike_1 as ca,toInteger_1 as cb,_toPropertyKey as cc,_setPrototypeOf$3 as cd,commonjsGlobal$1 as ce,combineReducers as cf,createSelector$1 as cg,fork as ch,AIWareThemeProvider as ci,Stack$4 as cj,Close$1 as ck,FullscreenExit as cl,Fullscreen as cm,TabPanel as cn,default_1$2 as co,unmountPanel$1 as cp,AvailableComponents as cq,delay$1 as cr,hidePanel$1 as cs,mountPanel$1 as ct,DialogContentText$1 as cu,userSelector$2 as cv,MoreVert as cw,Menu$1 as cx,Edit as cy,Upload as cz,capitalize$2 as d,identity_1 as d$,isString_1 as d0,_baseGet as d1,_baseSlice as d2,_castPath as d3,_toKey as d4,_isIndex as d5,channel$1 as d6,useIntl as d7,VideoCamera as d8,Image$1 as d9,usePreviousProps$1 as dA,setRef as dB,inputClasses$1 as dC,inputBaseClasses$1 as dD,outlinedInputClasses$1 as dE,filledInputClasses$1 as dF,ClearIcon as dG,ArrowDropDownIcon as dH,isObject_1 as dI,_arrayMap as dJ,_baseEach as dK,_arrayFilter as dL,_getNative as dM,eq_1 as dN,_root as dO,_Uint8Array as dP,_overArg as dQ,_isPrototype as dR,isObjectLike_1 as dS,_baseGetTag as dT,_arrayLikeKeys as dU,isArguments_1 as dV,isBuffer$3 as dW,isFunction_1 as dX,isTypedArray_1 as dY,_Stack as dZ,_baseFor as d_,Sound as da,Description as db,toNumber_1 as dc,ProgressStepper as dd,size_1 as de,take as df,CurlyBraces as dg,UnknownDocument as dh,sdkEventManager as di,SdkEvents as dj,SdkError as dk,EngineClassIcons as dl,Mode2 as dm,EngineModeIcons as dn,DeploymentModelIcons as dp,guid as dq,EditList as dr,forceReflow as ds,getDefaultExportFromCjs as dt,alpha as du,useTheme$2 as dv,useControlled as dw,useEventCallback as dx,ButtonBase$1 as dy,useForkRef as dz,_objectWithoutPropertiesLoose$2 as e,avatarClasses as e$,_isIterateeCall as e0,isSymbol_1 as e1,_baseMap as e2,_baseUnary as e3,memoizeOne as e4,createBox$1 as e5,_Symbol as e6,_Set as e7,_setToArray as e8,_SetCache as e9,DagBuilder as eA,img$S as eB,selectUserCanAccessResourceCenter as eC,img$4 as eD,img$z as eE,takeEvery$1 as eF,enableBetaFeatures as eG,Badge$1 as eH,openLinkOnNewTab as eI,orange$1 as eJ,deepOrange$1 as eK,authSelector as eL,headerBarSelector as eM,getSortName as eN,img$8 as eO,ListItemAvatar$1 as eP,OrganizationTabIcon as eQ,ScopedCssBaseline$1 as eR,AlarmTwo as eS,getApplicationsApi as eT,ListItemSecondaryAction$1 as eU,updateTokenSuccess as eV,postNotificationCommand as eW,aiwareEvent as eX,notificationCommands as eY,panelsSelector as eZ,css as e_,_cacheHas as ea,Slide$1 as eb,updatePanelMicroFrontendProps as ec,setData as ed,useIsFocusVisible as ee,ownerDocument as ef,lighten as eg,darken as eh,slotShouldForwardProp as ei,useSlotProps as ej,keyframes as ek,img$1v as el,createTheme as em,injectIntl as en,TabId as eo,PersonalProfile$1 as ep,Organizations as eq,DataCenter as er,Process as es,FlowCenter2 as et,DeveloperCenter as eu,Marketplace$1 as ev,LibraryCenter as ew,AdminCenter as ex,AdminTabIcon as ey,Resources$1 as ez,clsx as f,Lock as f$,img$M as f0,img$L as f1,img$1u as f2,img$1t as f3,img$1s as f4,img$J as f5,img$1w as f6,img$I as f7,emphasize as f8,_arraySome as f9,EditAttributes as fA,ProcessingDetail as fB,img$u as fC,img$w as fD,img$3 as fE,FilterRemove as fF,CheckCircle as fG,FolderOpen as fH,Voice as fI,useDoubleClick as fJ,FolderFilled as fK,Time as fL,img$x as fM,Undefined as fN,PodcastSource as fO,YoutubeSource as fP,TVSource as fQ,RadioSource as fR,selectOrgId as fS,selectIsUserAdmin as fT,ErrorState$1 as fU,StepConnector$1 as fV,NullState$2 as fW,Group as fX,gqlIntrospection as fY,PermissionChangedAction as fZ,tabsClasses$1 as f_,ErrorBoundary$1 as fa,Information as fb,NewFolder as fc,SpecialFolder as fd,User as fe,Source as ff,Search$1 as fg,selectIsOLPEnabled as fh,getLibraryModule as fi,cmsUrlSelector as fj,betaFeaturesSelector as fk,UserAddFilled as fl,Popover$1 as fm,MenuList$1 as fn,MoveFolder as fo,img$9 as fp,selectApiConfigs$1 as fq,selectPanelByPanelName as fr,FullScreenContainer as fs,EngineCategoryIcons as ft,Settings$2 as fu,Hamburger as fv,List as fw,Download as fx,MoreHor as fy,selectUserOrgEdgeVersion as fz,generateUtilityClass as g,cancel as g$,AddGroup as g0,StepperContext$1 as g1,StepContext$1 as g2,SvgIcon$1 as g3,initialConfigSelector as g4,ConfirmationModal as g5,EnumHelpers as g6,formatBytes as g7,NotInterested as g8,mountPanelForResponse$1 as g9,Task as gA,View as gB,_objectSpread2 as gC,serialize as gD,stringify$2 as gE,compile as gF,Check as gG,FormattedRelativeTime$1 as gH,BottomQueue as gI,TopQueue as gJ,Pause as gK,Cancel as gL,Folder as gM,Hidden as gN,ArrowUp as gO,ArrowDown as gP,toFinite_1 as gQ,_baseForOwn as gR,_arrayReduce as gS,hasIn_1 as gT,useSyncExternalStoreExports as gU,Packages as gV,Engines as gW,PackagesAvatar as gX,actionChannel as gY,cancelled as gZ,flush$3 as g_,Users as ga,ApplicationTabIcon as gb,SecurityGroup as gc,Lock2 as gd,NoApps as ge,green$1 as gf,md5 as gg,selectIsSuperAdmin as gh,AddUser as gi,selectors as gj,LibraryDropdown as gk,Remove as gl,Save as gm,Input$3 as gn,Copy as go,ArrowForward as gp,Modal$1 as gq,_baseIsEqual as gr,_getSymbols as gs,stubArray_1 as gt,_baseGetAllKeys as gu,_getTag as gv,_nodeUtil as gw,_getAllKeys as gx,_castFunction as gy,Article as gz,composeClasses as h,registry as h0,registerComponent as h1,AvailableWidgets as h2,root as h3,mountWidget as h4,unmountWidget as h5,mountPanel as h6,unmountPanel as h7,hidePanel as h8,unmountAllPanel as h9,init as ha,aiwareEvents as hb,createSvgIcon$1 as i,jsxRuntime as j,interopRequireDefault as k,useDispatch as l,makeStyles as m,useSelector as n,authStatusSelector as o,authContextSelector as p,AuthContext as q,react as r,store$4 as s,lodash as t,useThemeProps as u,Alert$1 as v,authErrorMessage as w,FormControl$1 as x,TextField$1 as y,classNames as z};